From 67df41bbe31985941a3545fec9198949bf24b212 Mon Sep 17 00:00:00 2001 From: qdsang Date: Sat, 8 Feb 2025 10:55:28 +0000 Subject: [PATCH] deploy: be58ac019bea849c1cc863d16c8ca700e22aefb8 --- ...{index-B-ztEy-c.css => index-DAmN28dN.css} | 4 +- assets/index-DJjU1qX2.js | 111 + assets/index-dk1x7_5a.js | 3901 ----------------- assets/three-smIoJFTG.js | 3827 ++++++++++++++++ assets/uplot-C0BbzL7s.js | 3 + assets/utils-BiyqmwP6.js | 45 - assets/utils-nI0tli1P.js | 45 + assets/vendor-Bqkqt8ok.js | 17 - assets/vue-C3Yyspzm.js | 21 + .../{xterm-ks5DzpfX.js => xterm-BZdChWd0.js} | 8 +- index.html | 13 +- manifest.json | 16 + sw.js | 4 +- 13 files changed, 4040 insertions(+), 3975 deletions(-) rename assets/{index-B-ztEy-c.css => index-DAmN28dN.css} (96%) create mode 100644 assets/index-DJjU1qX2.js delete mode 100644 assets/index-dk1x7_5a.js create mode 100644 assets/three-smIoJFTG.js create mode 100644 assets/uplot-C0BbzL7s.js delete mode 100644 assets/utils-BiyqmwP6.js create mode 100644 assets/utils-nI0tli1P.js delete mode 100644 assets/vendor-Bqkqt8ok.js create mode 100644 assets/vue-C3Yyspzm.js rename assets/{xterm-ks5DzpfX.js => xterm-BZdChWd0.js} (92%) create mode 100644 manifest.json diff --git a/assets/index-B-ztEy-c.css b/assets/index-DAmN28dN.css similarity index 96% rename from assets/index-B-ztEy-c.css rename to assets/index-DAmN28dN.css index 8f004ce..e0ec849 100644 --- a/assets/index-B-ztEy-c.css +++ b/assets/index-DAmN28dN.css @@ -1,4 +1,4 @@ -@charset "UTF-8";:root{--el-color-white:#ffffff;--el-color-black:#000000;--el-color-primary-rgb:64,158,255;--el-color-success-rgb:103,194,58;--el-color-warning-rgb:230,162,60;--el-color-danger-rgb:245,108,108;--el-color-error-rgb:245,108,108;--el-color-info-rgb:144,147,153;--el-font-size-extra-large:20px;--el-font-size-large:18px;--el-font-size-medium:16px;--el-font-size-base:14px;--el-font-size-small:13px;--el-font-size-extra-small:12px;--el-font-family:"Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","微软雅黑",Arial,sans-serif;--el-font-weight-primary:500;--el-font-line-height-primary:24px;--el-index-normal:1;--el-index-top:1000;--el-index-popper:2000;--el-border-radius-base:4px;--el-border-radius-small:2px;--el-border-radius-round:20px;--el-border-radius-circle:100%;--el-transition-duration:.3s;--el-transition-duration-fast:.2s;--el-transition-function-ease-in-out-bezier:cubic-bezier(.645,.045,.355,1);--el-transition-function-fast-bezier:cubic-bezier(.23,1,.32,1);--el-transition-all:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);--el-transition-fade:opacity var(--el-transition-duration) var(--el-transition-function-fast-bezier);--el-transition-md-fade:transform var(--el-transition-duration) var(--el-transition-function-fast-bezier),opacity var(--el-transition-duration) var(--el-transition-function-fast-bezier);--el-transition-fade-linear:opacity var(--el-transition-duration-fast) linear;--el-transition-border:border-color var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-transition-box-shadow:box-shadow var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-transition-color:color var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-component-size-large:40px;--el-component-size:32px;--el-component-size-small:24px;color-scheme:light;--el-color-primary:#409eff;--el-color-primary-light-3:rgb(121.3,187.1,255);--el-color-primary-light-5:rgb(159.5,206.5,255);--el-color-primary-light-7:rgb(197.7,225.9,255);--el-color-primary-light-8:rgb(216.8,235.6,255);--el-color-primary-light-9:rgb(235.9,245.3,255);--el-color-primary-dark-2:rgb(51.2,126.4,204);--el-color-success:#67c23a;--el-color-success-light-3:rgb(148.6,212.3,117.1);--el-color-success-light-5:rgb(179,224.5,156.5);--el-color-success-light-7:rgb(209.4,236.7,195.9);--el-color-success-light-8:rgb(224.6,242.8,215.6);--el-color-success-light-9:rgb(239.8,248.9,235.3);--el-color-success-dark-2:rgb(82.4,155.2,46.4);--el-color-warning:#e6a23c;--el-color-warning-light-3:rgb(237.5,189.9,118.5);--el-color-warning-light-5:rgb(242.5,208.5,157.5);--el-color-warning-light-7:rgb(247.5,227.1,196.5);--el-color-warning-light-8:rgb(250,236.4,216);--el-color-warning-light-9:rgb(252.5,245.7,235.5);--el-color-warning-dark-2:rgb(184,129.6,48);--el-color-danger:#f56c6c;--el-color-danger-light-3:rgb(248,152.1,152.1);--el-color-danger-light-5:rgb(250,181.5,181.5);--el-color-danger-light-7:rgb(252,210.9,210.9);--el-color-danger-light-8:rgb(253,225.6,225.6);--el-color-danger-light-9:rgb(254,240.3,240.3);--el-color-danger-dark-2:rgb(196,86.4,86.4);--el-color-error:#f56c6c;--el-color-error-light-3:rgb(248,152.1,152.1);--el-color-error-light-5:rgb(250,181.5,181.5);--el-color-error-light-7:rgb(252,210.9,210.9);--el-color-error-light-8:rgb(253,225.6,225.6);--el-color-error-light-9:rgb(254,240.3,240.3);--el-color-error-dark-2:rgb(196,86.4,86.4);--el-color-info:#909399;--el-color-info-light-3:rgb(177.3,179.4,183.6);--el-color-info-light-5:rgb(199.5,201,204);--el-color-info-light-7:rgb(221.7,222.6,224.4);--el-color-info-light-8:rgb(232.8,233.4,234.6);--el-color-info-light-9:rgb(243.9,244.2,244.8);--el-color-info-dark-2:rgb(115.2,117.6,122.4);--el-bg-color:#ffffff;--el-bg-color-page:#f2f3f5;--el-bg-color-overlay:#ffffff;--el-text-color-primary:#303133;--el-text-color-regular:#606266;--el-text-color-secondary:#909399;--el-text-color-placeholder:#a8abb2;--el-text-color-disabled:#c0c4cc;--el-border-color:#dcdfe6;--el-border-color-light:#e4e7ed;--el-border-color-lighter:#ebeef5;--el-border-color-extra-light:#f2f6fc;--el-border-color-dark:#d4d7de;--el-border-color-darker:#cdd0d6;--el-fill-color:#f0f2f5;--el-fill-color-light:#f5f7fa;--el-fill-color-lighter:#fafafa;--el-fill-color-extra-light:#fafcff;--el-fill-color-dark:#ebedf0;--el-fill-color-darker:#e6e8eb;--el-fill-color-blank:#ffffff;--el-box-shadow:0px 12px 32px 4px rgba(0,0,0,.04),0px 8px 20px rgba(0,0,0,.08);--el-box-shadow-light:0px 0px 12px rgba(0,0,0,.12);--el-box-shadow-lighter:0px 0px 6px rgba(0,0,0,.12);--el-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);--el-disabled-bg-color:var(--el-fill-color-light);--el-disabled-text-color:var(--el-text-color-placeholder);--el-disabled-border-color:var(--el-border-color-light);--el-overlay-color:rgba(0,0,0,.8);--el-overlay-color-light:rgba(0,0,0,.7);--el-overlay-color-lighter:rgba(0,0,0,.5);--el-mask-color:rgba(255,255,255,.9);--el-mask-color-extra-light:rgba(255,255,255,.3);--el-border-width:1px;--el-border-style:solid;--el-border-color-hover:var(--el-text-color-disabled);--el-border:var(--el-border-width) var(--el-border-style) var(--el-border-color);--el-svg-monochrome-grey:var(--el-border-color)}.fade-in-linear-enter-active,.fade-in-linear-leave-active{transition:var(--el-transition-fade-linear)}.fade-in-linear-enter-from,.fade-in-linear-leave-to{opacity:0}.el-fade-in-linear-enter-active,.el-fade-in-linear-leave-active{transition:var(--el-transition-fade-linear)}.el-fade-in-linear-enter-from,.el-fade-in-linear-leave-to{opacity:0}.el-fade-in-enter-active,.el-fade-in-leave-active{transition:all var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-fade-in-enter-from,.el-fade-in-leave-active{opacity:0}.el-zoom-in-center-enter-active,.el-zoom-in-center-leave-active{transition:all var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-zoom-in-center-enter-from,.el-zoom-in-center-leave-active{opacity:0;transform:scaleX(0)}.el-zoom-in-top-enter-active,.el-zoom-in-top-leave-active{opacity:1;transform:scaleY(1);transform-origin:center top;transition:var(--el-transition-md-fade)}.el-zoom-in-top-enter-active[data-popper-placement^=top],.el-zoom-in-top-leave-active[data-popper-placement^=top]{transform-origin:center bottom}.el-zoom-in-top-enter-from,.el-zoom-in-top-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-bottom-enter-active,.el-zoom-in-bottom-leave-active{opacity:1;transform:scaleY(1);transform-origin:center bottom;transition:var(--el-transition-md-fade)}.el-zoom-in-bottom-enter-from,.el-zoom-in-bottom-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-left-enter-active,.el-zoom-in-left-leave-active{opacity:1;transform:scale(1);transform-origin:top left;transition:var(--el-transition-md-fade)}.el-zoom-in-left-enter-from,.el-zoom-in-left-leave-active{opacity:0;transform:scale(.45)}.collapse-transition{transition:var(--el-transition-duration) height ease-in-out,var(--el-transition-duration) padding-top ease-in-out,var(--el-transition-duration) padding-bottom ease-in-out}.el-collapse-transition-enter-active,.el-collapse-transition-leave-active{transition:var(--el-transition-duration) max-height ease-in-out,var(--el-transition-duration) padding-top ease-in-out,var(--el-transition-duration) padding-bottom ease-in-out}.horizontal-collapse-transition{transition:var(--el-transition-duration) width ease-in-out,var(--el-transition-duration) padding-left ease-in-out,var(--el-transition-duration) padding-right ease-in-out}.el-list-enter-active,.el-list-leave-active{transition:all 1s}.el-list-enter-from,.el-list-leave-to{opacity:0;transform:translateY(-30px)}.el-list-leave-active{position:absolute!important}.el-opacity-transition{transition:opacity var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-icon-loading{animation:rotating 2s linear infinite}.el-icon--right{margin-left:5px}.el-icon--left{margin-right:5px}@keyframes rotating{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.el-icon{--color:inherit;align-items:center;display:inline-flex;height:1em;justify-content:center;line-height:1em;position:relative;width:1em;fill:currentColor;color:var(--color);font-size:inherit}.el-icon.is-loading{animation:rotating 2s linear infinite}.el-icon svg{height:1em;width:1em}.el-affix--fixed{position:fixed}.el-alert{--el-alert-padding:8px 16px;--el-alert-border-radius-base:var(--el-border-radius-base);--el-alert-title-font-size:14px;--el-alert-title-with-description-font-size:16px;--el-alert-description-font-size:14px;--el-alert-close-font-size:16px;--el-alert-close-customed-font-size:14px;--el-alert-icon-size:16px;--el-alert-icon-large-size:28px;align-items:center;background-color:var(--el-color-white);border-radius:var(--el-alert-border-radius-base);box-sizing:border-box;display:flex;margin:0;opacity:1;overflow:hidden;padding:var(--el-alert-padding);position:relative;transition:opacity var(--el-transition-duration-fast);width:100%}.el-alert.is-light .el-alert__close-btn{color:var(--el-text-color-placeholder)}.el-alert.is-dark .el-alert__close-btn,.el-alert.is-dark .el-alert__description{color:var(--el-color-white)}.el-alert.is-center{justify-content:center}.el-alert--success{--el-alert-bg-color:var(--el-color-success-light-9)}.el-alert--success.is-light{background-color:var(--el-alert-bg-color)}.el-alert--success.is-light,.el-alert--success.is-light .el-alert__description{color:var(--el-color-success)}.el-alert--success.is-dark{background-color:var(--el-color-success);color:var(--el-color-white)}.el-alert--info{--el-alert-bg-color:var(--el-color-info-light-9)}.el-alert--info.is-light{background-color:var(--el-alert-bg-color)}.el-alert--info.is-light,.el-alert--info.is-light .el-alert__description{color:var(--el-color-info)}.el-alert--info.is-dark{background-color:var(--el-color-info);color:var(--el-color-white)}.el-alert--warning{--el-alert-bg-color:var(--el-color-warning-light-9)}.el-alert--warning.is-light{background-color:var(--el-alert-bg-color)}.el-alert--warning.is-light,.el-alert--warning.is-light .el-alert__description{color:var(--el-color-warning)}.el-alert--warning.is-dark{background-color:var(--el-color-warning);color:var(--el-color-white)}.el-alert--error{--el-alert-bg-color:var(--el-color-error-light-9)}.el-alert--error.is-light{background-color:var(--el-alert-bg-color)}.el-alert--error.is-light,.el-alert--error.is-light .el-alert__description{color:var(--el-color-error)}.el-alert--error.is-dark{background-color:var(--el-color-error);color:var(--el-color-white)}.el-alert__content{display:flex;flex-direction:column;gap:4px}.el-alert .el-alert__icon{font-size:var(--el-alert-icon-size);margin-right:8px;width:var(--el-alert-icon-size)}.el-alert .el-alert__icon.is-big{font-size:var(--el-alert-icon-large-size);margin-right:12px;width:var(--el-alert-icon-large-size)}.el-alert__title{font-size:var(--el-alert-title-font-size);line-height:24px}.el-alert__title.with-description{font-size:var(--el-alert-title-with-description-font-size)}.el-alert .el-alert__description{font-size:var(--el-alert-description-font-size);margin:0}.el-alert .el-alert__close-btn{cursor:pointer;font-size:var(--el-alert-close-font-size);opacity:1;position:absolute;right:16px;top:12px}.el-alert .el-alert__close-btn.is-customed{font-size:var(--el-alert-close-customed-font-size);font-style:normal;line-height:24px;top:8px}.el-alert-fade-enter-from,.el-alert-fade-leave-active{opacity:0}.el-aside{box-sizing:border-box;flex-shrink:0;overflow:auto;width:var(--el-aside-width,300px)}.el-autocomplete{--el-input-text-color:var(--el-text-color-regular);--el-input-border:var(--el-border);--el-input-hover-border:var(--el-border-color-hover);--el-input-focus-border:var(--el-color-primary);--el-input-transparent-border:0 0 0 1px transparent inset;--el-input-border-color:var(--el-border-color);--el-input-border-radius:var(--el-border-radius-base);--el-input-bg-color:var(--el-fill-color-blank);--el-input-icon-color:var(--el-text-color-placeholder);--el-input-placeholder-color:var(--el-text-color-placeholder);--el-input-hover-border-color:var(--el-border-color-hover);--el-input-clear-hover-color:var(--el-text-color-secondary);--el-input-focus-border-color:var(--el-color-primary);--el-input-width:100%;display:inline-block;position:relative;width:var(--el-input-width)}.el-autocomplete__popper.el-popper{background:var(--el-bg-color-overlay);box-shadow:var(--el-box-shadow-light)}.el-autocomplete__popper.el-popper,.el-autocomplete__popper.el-popper .el-popper__arrow:before{border:1px solid var(--el-border-color-light)}.el-autocomplete__popper.el-popper[data-popper-placement^=top] .el-popper__arrow:before{border-left-color:transparent;border-top-color:transparent}.el-autocomplete__popper.el-popper[data-popper-placement^=bottom] .el-popper__arrow:before{border-bottom-color:transparent;border-right-color:transparent}.el-autocomplete__popper.el-popper[data-popper-placement^=left] .el-popper__arrow:before{border-bottom-color:transparent;border-left-color:transparent}.el-autocomplete__popper.el-popper[data-popper-placement^=right] .el-popper__arrow:before{border-right-color:transparent;border-top-color:transparent}.el-autocomplete-suggestion{border-radius:var(--el-border-radius-base);box-sizing:border-box}.el-autocomplete-suggestion__wrap{box-sizing:border-box;max-height:280px;padding:10px 0}.el-autocomplete-suggestion__list{margin:0;padding:0}.el-autocomplete-suggestion li{color:var(--el-text-color-regular);cursor:pointer;font-size:var(--el-font-size-base);line-height:34px;list-style:none;margin:0;overflow:hidden;padding:0 20px;text-align:left;text-overflow:ellipsis;white-space:nowrap}.el-autocomplete-suggestion li.highlighted,.el-autocomplete-suggestion li:hover{background-color:var(--el-fill-color-light)}.el-autocomplete-suggestion li.divider{border-top:1px solid var(--el-color-black);margin-top:6px}.el-autocomplete-suggestion li.divider:last-child{margin-bottom:-6px}.el-autocomplete-suggestion.is-loading li{color:var(--el-text-color-secondary);font-size:20px;height:100px;line-height:100px;text-align:center}.el-autocomplete-suggestion.is-loading li:after{content:"";display:inline-block;height:100%;vertical-align:middle}.el-autocomplete-suggestion.is-loading li:hover{background-color:var(--el-bg-color-overlay)}.el-autocomplete-suggestion.is-loading .el-icon-loading{vertical-align:middle}.el-avatar{--el-avatar-text-color:var(--el-color-white);--el-avatar-bg-color:var(--el-text-color-disabled);--el-avatar-text-size:14px;--el-avatar-icon-size:18px;--el-avatar-border-radius:var(--el-border-radius-base);--el-avatar-size-large:56px;--el-avatar-size-small:24px;--el-avatar-size:40px;align-items:center;background:var(--el-avatar-bg-color);box-sizing:border-box;color:var(--el-avatar-text-color);display:inline-flex;font-size:var(--el-avatar-text-size);height:var(--el-avatar-size);justify-content:center;outline:none;overflow:hidden;text-align:center;width:var(--el-avatar-size)}.el-avatar>img{display:block;height:100%;width:100%}.el-avatar--circle{border-radius:50%}.el-avatar--square{border-radius:var(--el-avatar-border-radius)}.el-avatar--icon{font-size:var(--el-avatar-icon-size)}.el-avatar--small{--el-avatar-size:24px}.el-avatar--large{--el-avatar-size:56px}.el-backtop{--el-backtop-bg-color:var(--el-bg-color-overlay);--el-backtop-text-color:var(--el-color-primary);--el-backtop-hover-bg-color:var(--el-border-color-extra-light);align-items:center;background-color:var(--el-backtop-bg-color);border-radius:50%;box-shadow:var(--el-box-shadow-lighter);color:var(--el-backtop-text-color);cursor:pointer;display:flex;font-size:20px;height:40px;justify-content:center;position:fixed;width:40px;z-index:5}.el-backtop:hover{background-color:var(--el-backtop-hover-bg-color)}.el-backtop__icon{font-size:20px}.el-badge{--el-badge-bg-color:var(--el-color-danger);--el-badge-radius:10px;--el-badge-font-size:12px;--el-badge-padding:6px;--el-badge-size:18px;display:inline-block;position:relative;vertical-align:middle;width:-moz-fit-content;width:fit-content}.el-badge__content{align-items:center;background-color:var(--el-badge-bg-color);border:1px solid var(--el-bg-color);border-radius:var(--el-badge-radius);color:var(--el-color-white);display:inline-flex;font-size:var(--el-badge-font-size);height:var(--el-badge-size);justify-content:center;padding:0 var(--el-badge-padding);white-space:nowrap}.el-badge__content.is-fixed{position:absolute;right:calc(1px + var(--el-badge-size)/2);top:0;transform:translateY(-50%) translate(100%);z-index:var(--el-index-normal)}.el-badge__content.is-fixed.is-dot{right:5px}.el-badge__content.is-dot{border-radius:50%;height:8px;padding:0;right:0;width:8px}.el-badge__content.is-hide-zero{display:none}.el-badge__content--primary{background-color:var(--el-color-primary)}.el-badge__content--success{background-color:var(--el-color-success)}.el-badge__content--warning{background-color:var(--el-color-warning)}.el-badge__content--info{background-color:var(--el-color-info)}.el-badge__content--danger{background-color:var(--el-color-danger)}.el-breadcrumb{font-size:14px;line-height:1}.el-breadcrumb:after,.el-breadcrumb:before{content:"";display:table}.el-breadcrumb:after{clear:both}.el-breadcrumb__separator{color:var(--el-text-color-placeholder);font-weight:700;margin:0 9px}.el-breadcrumb__separator.el-icon{font-weight:400;margin:0 6px}.el-breadcrumb__separator.el-icon svg{vertical-align:middle}.el-breadcrumb__item{align-items:center;display:inline-flex;float:left}.el-breadcrumb__inner{color:var(--el-text-color-regular)}.el-breadcrumb__inner a,.el-breadcrumb__inner.is-link{color:var(--el-text-color-primary);font-weight:700;text-decoration:none;transition:var(--el-transition-color)}.el-breadcrumb__inner a:hover,.el-breadcrumb__inner.is-link:hover{color:var(--el-color-primary);cursor:pointer}.el-breadcrumb__item:last-child .el-breadcrumb__inner,.el-breadcrumb__item:last-child .el-breadcrumb__inner a,.el-breadcrumb__item:last-child .el-breadcrumb__inner a:hover,.el-breadcrumb__item:last-child .el-breadcrumb__inner:hover{color:var(--el-text-color-regular);cursor:text;font-weight:400}.el-breadcrumb__item:last-child .el-breadcrumb__separator{display:none}.el-button-group{display:inline-block;vertical-align:middle}.el-button-group:after,.el-button-group:before{content:"";display:table}.el-button-group:after{clear:both}.el-button-group>.el-button{float:left;position:relative}.el-button-group>.el-button+.el-button{margin-left:0}.el-button-group>.el-button:first-child{border-bottom-right-radius:0;border-top-right-radius:0}.el-button-group>.el-button:last-child{border-bottom-left-radius:0;border-top-left-radius:0}.el-button-group>.el-button:first-child:last-child{border-bottom-left-radius:var(--el-border-radius-base);border-bottom-right-radius:var(--el-border-radius-base);border-top-left-radius:var(--el-border-radius-base);border-top-right-radius:var(--el-border-radius-base)}.el-button-group>.el-button:first-child:last-child.is-round{border-radius:var(--el-border-radius-round)}.el-button-group>.el-button:first-child:last-child.is-circle{border-radius:50%}.el-button-group>.el-button:not(:first-child):not(:last-child){border-radius:0}.el-button-group>.el-button:not(:last-child){margin-right:-1px}.el-button-group>.el-button.is-active,.el-button-group>.el-button:active,.el-button-group>.el-button:focus,.el-button-group>.el-button:hover{z-index:1}.el-button-group>.el-dropdown>.el-button{border-bottom-left-radius:0;border-left-color:var(--el-button-divide-border-color);border-top-left-radius:0}.el-button-group .el-button--primary:first-child{border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--primary:last-child{border-left-color:var(--el-button-divide-border-color)}.el-button-group .el-button--primary:not(:first-child):not(:last-child){border-left-color:var(--el-button-divide-border-color);border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--success:first-child{border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--success:last-child{border-left-color:var(--el-button-divide-border-color)}.el-button-group .el-button--success:not(:first-child):not(:last-child){border-left-color:var(--el-button-divide-border-color);border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--warning:first-child{border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--warning:last-child{border-left-color:var(--el-button-divide-border-color)}.el-button-group .el-button--warning:not(:first-child):not(:last-child){border-left-color:var(--el-button-divide-border-color);border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--danger:first-child{border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--danger:last-child{border-left-color:var(--el-button-divide-border-color)}.el-button-group .el-button--danger:not(:first-child):not(:last-child){border-left-color:var(--el-button-divide-border-color);border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--info:first-child{border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--info:last-child{border-left-color:var(--el-button-divide-border-color)}.el-button-group .el-button--info:not(:first-child):not(:last-child){border-left-color:var(--el-button-divide-border-color);border-right-color:var(--el-button-divide-border-color)}.el-button{--el-button-font-weight:var(--el-font-weight-primary);--el-button-border-color:var(--el-border-color);--el-button-bg-color:var(--el-fill-color-blank);--el-button-text-color:var(--el-text-color-regular);--el-button-disabled-text-color:var(--el-disabled-text-color);--el-button-disabled-bg-color:var(--el-fill-color-blank);--el-button-disabled-border-color:var(--el-border-color-light);--el-button-divide-border-color:rgba(255,255,255,.5);--el-button-hover-text-color:var(--el-color-primary);--el-button-hover-bg-color:var(--el-color-primary-light-9);--el-button-hover-border-color:var(--el-color-primary-light-7);--el-button-active-text-color:var(--el-button-hover-text-color);--el-button-active-border-color:var(--el-color-primary);--el-button-active-bg-color:var(--el-button-hover-bg-color);--el-button-outline-color:var(--el-color-primary-light-5);--el-button-hover-link-text-color:var(--el-text-color-secondary);--el-button-active-color:var(--el-text-color-primary);align-items:center;-webkit-appearance:none;background-color:var(--el-button-bg-color);border:var(--el-border);border-color:var(--el-button-border-color);box-sizing:border-box;color:var(--el-button-text-color);cursor:pointer;display:inline-flex;font-weight:var(--el-button-font-weight);height:32px;justify-content:center;line-height:1;outline:none;text-align:center;transition:.1s;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;white-space:nowrap}.el-button:hover{background-color:var(--el-button-hover-bg-color);border-color:var(--el-button-hover-border-color);color:var(--el-button-hover-text-color);outline:none}.el-button:active{background-color:var(--el-button-active-bg-color);border-color:var(--el-button-active-border-color);color:var(--el-button-active-text-color);outline:none}.el-button:focus-visible{outline:2px solid var(--el-button-outline-color);outline-offset:1px;transition:outline-offset 0s,outline 0s}.el-button>span{align-items:center;display:inline-flex}.el-button+.el-button{margin-left:12px}.el-button{border-radius:var(--el-border-radius-base);font-size:var(--el-font-size-base)}.el-button,.el-button.is-round{padding:8px 15px}.el-button::-moz-focus-inner{border:0}.el-button [class*=el-icon]+span{margin-left:6px}.el-button [class*=el-icon] svg{vertical-align:bottom}.el-button.is-plain{--el-button-hover-text-color:var(--el-color-primary);--el-button-hover-bg-color:var(--el-fill-color-blank);--el-button-hover-border-color:var(--el-color-primary)}.el-button.is-active{background-color:var(--el-button-active-bg-color);border-color:var(--el-button-active-border-color);color:var(--el-button-active-text-color);outline:none}.el-button.is-disabled,.el-button.is-disabled:hover{background-color:var(--el-button-disabled-bg-color);background-image:none;border-color:var(--el-button-disabled-border-color);color:var(--el-button-disabled-text-color);cursor:not-allowed}.el-button.is-loading{pointer-events:none;position:relative}.el-button.is-loading:before{background-color:var(--el-mask-color-extra-light);border-radius:inherit;bottom:-1px;content:"";left:-1px;pointer-events:none;position:absolute;right:-1px;top:-1px;z-index:1}.el-button.is-round{border-radius:var(--el-border-radius-round)}.el-button.is-circle{border-radius:50%;padding:8px;width:32px}.el-button.is-text{background-color:transparent;border:0 solid transparent;color:var(--el-button-text-color)}.el-button.is-text.is-disabled{background-color:transparent!important;color:var(--el-button-disabled-text-color)}.el-button.is-text:not(.is-disabled):hover{background-color:var(--el-fill-color-light)}.el-button.is-text:not(.is-disabled):focus-visible{outline:2px solid var(--el-button-outline-color);outline-offset:1px;transition:outline-offset 0s,outline 0s}.el-button.is-text:not(.is-disabled):active{background-color:var(--el-fill-color)}.el-button.is-text:not(.is-disabled).is-has-bg{background-color:var(--el-fill-color-light)}.el-button.is-text:not(.is-disabled).is-has-bg:hover{background-color:var(--el-fill-color)}.el-button.is-text:not(.is-disabled).is-has-bg:active{background-color:var(--el-fill-color-dark)}.el-button__text--expand{letter-spacing:.3em;margin-right:-.3em}.el-button.is-link{background:transparent;border-color:transparent;color:var(--el-button-text-color);height:auto;padding:2px}.el-button.is-link:hover{color:var(--el-button-hover-link-text-color)}.el-button.is-link.is-disabled{background-color:transparent!important;border-color:transparent!important;color:var(--el-button-disabled-text-color)}.el-button.is-link:not(.is-disabled):active,.el-button.is-link:not(.is-disabled):hover{background-color:transparent;border-color:transparent}.el-button.is-link:not(.is-disabled):active{color:var(--el-button-active-color)}.el-button--text{background:transparent;border-color:transparent;color:var(--el-color-primary);padding-left:0;padding-right:0}.el-button--text.is-disabled{background-color:transparent!important;border-color:transparent!important;color:var(--el-button-disabled-text-color)}.el-button--text:not(.is-disabled):hover{background-color:transparent;border-color:transparent;color:var(--el-color-primary-light-3)}.el-button--text:not(.is-disabled):active{background-color:transparent;border-color:transparent;color:var(--el-color-primary-dark-2)}.el-button__link--expand{letter-spacing:.3em;margin-right:-.3em}.el-button--primary{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-primary);--el-button-border-color:var(--el-color-primary);--el-button-outline-color:var(--el-color-primary-light-5);--el-button-active-color:var(--el-color-primary-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-primary-light-5);--el-button-hover-bg-color:var(--el-color-primary-light-3);--el-button-hover-border-color:var(--el-color-primary-light-3);--el-button-active-bg-color:var(--el-color-primary-dark-2);--el-button-active-border-color:var(--el-color-primary-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-primary-light-5);--el-button-disabled-border-color:var(--el-color-primary-light-5)}.el-button--primary.is-link,.el-button--primary.is-plain,.el-button--primary.is-text{--el-button-text-color:var(--el-color-primary);--el-button-bg-color:var(--el-color-primary-light-9);--el-button-border-color:var(--el-color-primary-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-primary);--el-button-hover-border-color:var(--el-color-primary);--el-button-active-text-color:var(--el-color-white)}.el-button--primary.is-link.is-disabled,.el-button--primary.is-link.is-disabled:active,.el-button--primary.is-link.is-disabled:focus,.el-button--primary.is-link.is-disabled:hover,.el-button--primary.is-plain.is-disabled,.el-button--primary.is-plain.is-disabled:active,.el-button--primary.is-plain.is-disabled:focus,.el-button--primary.is-plain.is-disabled:hover,.el-button--primary.is-text.is-disabled,.el-button--primary.is-text.is-disabled:active,.el-button--primary.is-text.is-disabled:focus,.el-button--primary.is-text.is-disabled:hover{background-color:var(--el-color-primary-light-9);border-color:var(--el-color-primary-light-8);color:var(--el-color-primary-light-5)}.el-button--success{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-success);--el-button-border-color:var(--el-color-success);--el-button-outline-color:var(--el-color-success-light-5);--el-button-active-color:var(--el-color-success-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-success-light-5);--el-button-hover-bg-color:var(--el-color-success-light-3);--el-button-hover-border-color:var(--el-color-success-light-3);--el-button-active-bg-color:var(--el-color-success-dark-2);--el-button-active-border-color:var(--el-color-success-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-success-light-5);--el-button-disabled-border-color:var(--el-color-success-light-5)}.el-button--success.is-link,.el-button--success.is-plain,.el-button--success.is-text{--el-button-text-color:var(--el-color-success);--el-button-bg-color:var(--el-color-success-light-9);--el-button-border-color:var(--el-color-success-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-success);--el-button-hover-border-color:var(--el-color-success);--el-button-active-text-color:var(--el-color-white)}.el-button--success.is-link.is-disabled,.el-button--success.is-link.is-disabled:active,.el-button--success.is-link.is-disabled:focus,.el-button--success.is-link.is-disabled:hover,.el-button--success.is-plain.is-disabled,.el-button--success.is-plain.is-disabled:active,.el-button--success.is-plain.is-disabled:focus,.el-button--success.is-plain.is-disabled:hover,.el-button--success.is-text.is-disabled,.el-button--success.is-text.is-disabled:active,.el-button--success.is-text.is-disabled:focus,.el-button--success.is-text.is-disabled:hover{background-color:var(--el-color-success-light-9);border-color:var(--el-color-success-light-8);color:var(--el-color-success-light-5)}.el-button--warning{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-warning);--el-button-border-color:var(--el-color-warning);--el-button-outline-color:var(--el-color-warning-light-5);--el-button-active-color:var(--el-color-warning-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-warning-light-5);--el-button-hover-bg-color:var(--el-color-warning-light-3);--el-button-hover-border-color:var(--el-color-warning-light-3);--el-button-active-bg-color:var(--el-color-warning-dark-2);--el-button-active-border-color:var(--el-color-warning-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-warning-light-5);--el-button-disabled-border-color:var(--el-color-warning-light-5)}.el-button--warning.is-link,.el-button--warning.is-plain,.el-button--warning.is-text{--el-button-text-color:var(--el-color-warning);--el-button-bg-color:var(--el-color-warning-light-9);--el-button-border-color:var(--el-color-warning-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-warning);--el-button-hover-border-color:var(--el-color-warning);--el-button-active-text-color:var(--el-color-white)}.el-button--warning.is-link.is-disabled,.el-button--warning.is-link.is-disabled:active,.el-button--warning.is-link.is-disabled:focus,.el-button--warning.is-link.is-disabled:hover,.el-button--warning.is-plain.is-disabled,.el-button--warning.is-plain.is-disabled:active,.el-button--warning.is-plain.is-disabled:focus,.el-button--warning.is-plain.is-disabled:hover,.el-button--warning.is-text.is-disabled,.el-button--warning.is-text.is-disabled:active,.el-button--warning.is-text.is-disabled:focus,.el-button--warning.is-text.is-disabled:hover{background-color:var(--el-color-warning-light-9);border-color:var(--el-color-warning-light-8);color:var(--el-color-warning-light-5)}.el-button--danger{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-danger);--el-button-border-color:var(--el-color-danger);--el-button-outline-color:var(--el-color-danger-light-5);--el-button-active-color:var(--el-color-danger-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-danger-light-5);--el-button-hover-bg-color:var(--el-color-danger-light-3);--el-button-hover-border-color:var(--el-color-danger-light-3);--el-button-active-bg-color:var(--el-color-danger-dark-2);--el-button-active-border-color:var(--el-color-danger-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-danger-light-5);--el-button-disabled-border-color:var(--el-color-danger-light-5)}.el-button--danger.is-link,.el-button--danger.is-plain,.el-button--danger.is-text{--el-button-text-color:var(--el-color-danger);--el-button-bg-color:var(--el-color-danger-light-9);--el-button-border-color:var(--el-color-danger-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-danger);--el-button-hover-border-color:var(--el-color-danger);--el-button-active-text-color:var(--el-color-white)}.el-button--danger.is-link.is-disabled,.el-button--danger.is-link.is-disabled:active,.el-button--danger.is-link.is-disabled:focus,.el-button--danger.is-link.is-disabled:hover,.el-button--danger.is-plain.is-disabled,.el-button--danger.is-plain.is-disabled:active,.el-button--danger.is-plain.is-disabled:focus,.el-button--danger.is-plain.is-disabled:hover,.el-button--danger.is-text.is-disabled,.el-button--danger.is-text.is-disabled:active,.el-button--danger.is-text.is-disabled:focus,.el-button--danger.is-text.is-disabled:hover{background-color:var(--el-color-danger-light-9);border-color:var(--el-color-danger-light-8);color:var(--el-color-danger-light-5)}.el-button--info{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-info);--el-button-border-color:var(--el-color-info);--el-button-outline-color:var(--el-color-info-light-5);--el-button-active-color:var(--el-color-info-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-info-light-5);--el-button-hover-bg-color:var(--el-color-info-light-3);--el-button-hover-border-color:var(--el-color-info-light-3);--el-button-active-bg-color:var(--el-color-info-dark-2);--el-button-active-border-color:var(--el-color-info-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-info-light-5);--el-button-disabled-border-color:var(--el-color-info-light-5)}.el-button--info.is-link,.el-button--info.is-plain,.el-button--info.is-text{--el-button-text-color:var(--el-color-info);--el-button-bg-color:var(--el-color-info-light-9);--el-button-border-color:var(--el-color-info-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-info);--el-button-hover-border-color:var(--el-color-info);--el-button-active-text-color:var(--el-color-white)}.el-button--info.is-link.is-disabled,.el-button--info.is-link.is-disabled:active,.el-button--info.is-link.is-disabled:focus,.el-button--info.is-link.is-disabled:hover,.el-button--info.is-plain.is-disabled,.el-button--info.is-plain.is-disabled:active,.el-button--info.is-plain.is-disabled:focus,.el-button--info.is-plain.is-disabled:hover,.el-button--info.is-text.is-disabled,.el-button--info.is-text.is-disabled:active,.el-button--info.is-text.is-disabled:focus,.el-button--info.is-text.is-disabled:hover{background-color:var(--el-color-info-light-9);border-color:var(--el-color-info-light-8);color:var(--el-color-info-light-5)}.el-button--large{--el-button-size:40px;height:var(--el-button-size)}.el-button--large [class*=el-icon]+span{margin-left:8px}.el-button--large{border-radius:var(--el-border-radius-base);font-size:var(--el-font-size-base);padding:12px 19px}.el-button--large.is-round{padding:12px 19px}.el-button--large.is-circle{padding:12px;width:var(--el-button-size)}.el-button--small{--el-button-size:24px;height:var(--el-button-size)}.el-button--small [class*=el-icon]+span{margin-left:4px}.el-button--small{border-radius:calc(var(--el-border-radius-base) - 1px);font-size:12px;padding:5px 11px}.el-button--small.is-round{padding:5px 11px}.el-button--small.is-circle{padding:5px;width:var(--el-button-size)}.el-calendar{--el-calendar-border:var(--el-table-border,1px solid var(--el-border-color-lighter));--el-calendar-header-border-bottom:var(--el-calendar-border);--el-calendar-selected-bg-color:var(--el-color-primary-light-9);--el-calendar-cell-width:85px;background-color:var(--el-fill-color-blank)}.el-calendar__header{border-bottom:var(--el-calendar-header-border-bottom);display:flex;justify-content:space-between;padding:12px 20px}.el-calendar__title{align-self:center;color:var(--el-text-color)}.el-calendar__body{padding:12px 20px 35px}.el-calendar-table{table-layout:fixed;width:100%}.el-calendar-table thead th{color:var(--el-text-color-regular);font-weight:400;padding:12px 0}.el-calendar-table:not(.is-range) td.next,.el-calendar-table:not(.is-range) td.prev{color:var(--el-text-color-placeholder)}.el-calendar-table td{border-bottom:var(--el-calendar-border);border-right:var(--el-calendar-border);transition:background-color var(--el-transition-duration-fast) ease;vertical-align:top}.el-calendar-table td.is-selected{background-color:var(--el-calendar-selected-bg-color)}.el-calendar-table td.is-today{color:var(--el-color-primary)}.el-calendar-table tr:first-child td{border-top:var(--el-calendar-border)}.el-calendar-table tr td:first-child{border-left:var(--el-calendar-border)}.el-calendar-table tr.el-calendar-table__row--hide-border td{border-top:none}.el-calendar-table .el-calendar-day{box-sizing:border-box;height:var(--el-calendar-cell-width);padding:8px}.el-calendar-table .el-calendar-day:hover{background-color:var(--el-calendar-selected-bg-color);cursor:pointer}.el-card{--el-card-border-color:var(--el-border-color-light);--el-card-border-radius:4px;--el-card-padding:20px;--el-card-bg-color:var(--el-fill-color-blank);background-color:var(--el-card-bg-color);border:1px solid var(--el-card-border-color);border-radius:var(--el-card-border-radius);color:var(--el-text-color-primary);overflow:hidden;transition:var(--el-transition-duration)}.el-card.is-always-shadow,.el-card.is-hover-shadow:focus,.el-card.is-hover-shadow:hover{box-shadow:var(--el-box-shadow-light)}.el-card__header{border-bottom:1px solid var(--el-card-border-color);box-sizing:border-box;padding:calc(var(--el-card-padding) - 2px) var(--el-card-padding)}.el-card__body{padding:var(--el-card-padding)}.el-card__footer{border-top:1px solid var(--el-card-border-color);box-sizing:border-box;padding:calc(var(--el-card-padding) - 2px) var(--el-card-padding)}.el-carousel__item{display:inline-block;height:100%;left:0;overflow:hidden;position:absolute;top:0;width:100%}.el-carousel__item,.el-carousel__item.is-active{z-index:calc(var(--el-index-normal) - 1)}.el-carousel__item--card,.el-carousel__item.is-animating{transition:transform .4s ease-in-out}.el-carousel__item--card{width:50%}.el-carousel__item--card.is-in-stage{cursor:pointer;z-index:var(--el-index-normal)}.el-carousel__item--card.is-in-stage.is-hover .el-carousel__mask,.el-carousel__item--card.is-in-stage:hover .el-carousel__mask{opacity:.12}.el-carousel__item--card.is-active{z-index:calc(var(--el-index-normal) + 1)}.el-carousel__item--card-vertical{height:50%;width:100%}.el-carousel__mask{background-color:var(--el-color-white);height:100%;left:0;opacity:.24;position:absolute;top:0;transition:var(--el-transition-duration-fast);width:100%}.el-carousel{--el-carousel-arrow-font-size:12px;--el-carousel-arrow-size:36px;--el-carousel-arrow-background:rgba(31,45,61,.11);--el-carousel-arrow-hover-background:rgba(31,45,61,.23);--el-carousel-indicator-width:30px;--el-carousel-indicator-height:2px;--el-carousel-indicator-padding-horizontal:4px;--el-carousel-indicator-padding-vertical:12px;--el-carousel-indicator-out-color:var(--el-border-color-hover);position:relative}.el-carousel--horizontal,.el-carousel--vertical{overflow:hidden}.el-carousel__container{height:300px;position:relative}.el-carousel__arrow{align-items:center;background-color:var(--el-carousel-arrow-background);border:none;border-radius:50%;color:#fff;cursor:pointer;display:inline-flex;font-size:var(--el-carousel-arrow-font-size);height:var(--el-carousel-arrow-size);justify-content:center;margin:0;outline:none;padding:0;position:absolute;text-align:center;top:50%;transform:translateY(-50%);transition:var(--el-transition-duration);width:var(--el-carousel-arrow-size);z-index:10}.el-carousel__arrow--left{left:16px}.el-carousel__arrow--right{right:16px}.el-carousel__arrow:hover{background-color:var(--el-carousel-arrow-hover-background)}.el-carousel__arrow i{cursor:pointer}.el-carousel__indicators{list-style:none;margin:0;padding:0;position:absolute;z-index:calc(var(--el-index-normal) + 1)}.el-carousel__indicators--horizontal{bottom:0;left:50%;transform:translate(-50%)}.el-carousel__indicators--vertical{right:0;top:50%;transform:translateY(-50%)}.el-carousel__indicators--outside{bottom:calc(var(--el-carousel-indicator-height) + var(--el-carousel-indicator-padding-vertical)*2);position:static;text-align:center;transform:none}.el-carousel__indicators--outside .el-carousel__indicator:hover button{opacity:.64}.el-carousel__indicators--outside button{background-color:var(--el-carousel-indicator-out-color);opacity:.24}.el-carousel__indicators--right{right:0}.el-carousel__indicators--labels{left:0;right:0;text-align:center;transform:none}.el-carousel__indicators--labels .el-carousel__button{color:#000;font-size:12px;height:auto;padding:2px 18px;width:auto}.el-carousel__indicators--labels .el-carousel__indicator{padding:6px 4px}.el-carousel__indicator{background-color:transparent;cursor:pointer}.el-carousel__indicator:hover button{opacity:.72}.el-carousel__indicator--horizontal{display:inline-block;padding:var(--el-carousel-indicator-padding-vertical) var(--el-carousel-indicator-padding-horizontal)}.el-carousel__indicator--vertical{padding:var(--el-carousel-indicator-padding-horizontal) var(--el-carousel-indicator-padding-vertical)}.el-carousel__indicator--vertical .el-carousel__button{height:calc(var(--el-carousel-indicator-width)/2);width:var(--el-carousel-indicator-height)}.el-carousel__indicator.is-active button{opacity:1}.el-carousel__button{background-color:#fff;border:none;cursor:pointer;display:block;height:var(--el-carousel-indicator-height);margin:0;opacity:.48;outline:none;padding:0;transition:var(--el-transition-duration);width:var(--el-carousel-indicator-width)}.carousel-arrow-left-enter-from,.carousel-arrow-left-leave-active{opacity:0;transform:translateY(-50%) translate(-10px)}.carousel-arrow-right-enter-from,.carousel-arrow-right-leave-active{opacity:0;transform:translateY(-50%) translate(10px)}.el-transitioning{filter:url(#elCarouselHorizontal)}.el-transitioning-vertical{filter:url(#elCarouselVertical)}.el-cascader-panel{--el-cascader-menu-text-color:var(--el-text-color-regular);--el-cascader-menu-selected-text-color:var(--el-color-primary);--el-cascader-menu-fill:var(--el-bg-color-overlay);--el-cascader-menu-font-size:var(--el-font-size-base);--el-cascader-menu-radius:var(--el-border-radius-base);--el-cascader-menu-border:solid 1px var(--el-border-color-light);--el-cascader-menu-shadow:var(--el-box-shadow-light);--el-cascader-node-background-hover:var(--el-fill-color-light);--el-cascader-node-color-disabled:var(--el-text-color-placeholder);--el-cascader-color-empty:var(--el-text-color-placeholder);--el-cascader-tag-background:var(--el-fill-color);border-radius:var(--el-cascader-menu-radius);display:flex;font-size:var(--el-cascader-menu-font-size)}.el-cascader-panel.is-bordered{border:var(--el-cascader-menu-border);border-radius:var(--el-cascader-menu-radius)}.el-cascader-menu{border-right:var(--el-cascader-menu-border);box-sizing:border-box;color:var(--el-cascader-menu-text-color);min-width:180px}.el-cascader-menu:last-child{border-right:none}.el-cascader-menu:last-child .el-cascader-node{padding-right:20px}.el-cascader-menu__wrap.el-scrollbar__wrap{height:204px}.el-cascader-menu__list{box-sizing:border-box;list-style:none;margin:0;min-height:100%;padding:6px 0;position:relative}.el-cascader-menu__hover-zone{height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.el-cascader-menu__empty-text{align-items:center;color:var(--el-cascader-color-empty);display:flex;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.el-cascader-menu__empty-text .is-loading{margin-right:2px}.el-cascader-node{align-items:center;display:flex;height:34px;line-height:34px;outline:none;padding:0 30px 0 20px;position:relative}.el-cascader-node.is-selectable.in-active-path{color:var(--el-cascader-menu-text-color)}.el-cascader-node.in-active-path,.el-cascader-node.is-active,.el-cascader-node.is-selectable.in-checked-path{color:var(--el-cascader-menu-selected-text-color);font-weight:700}.el-cascader-node:not(.is-disabled){cursor:pointer}.el-cascader-node:not(.is-disabled):focus,.el-cascader-node:not(.is-disabled):hover{background:var(--el-cascader-node-background-hover)}.el-cascader-node.is-disabled{color:var(--el-cascader-node-color-disabled);cursor:not-allowed}.el-cascader-node__prefix{left:10px;position:absolute}.el-cascader-node__postfix{position:absolute;right:10px}.el-cascader-node__label{flex:1;overflow:hidden;padding:0 8px;text-align:left;text-overflow:ellipsis;white-space:nowrap}.el-cascader-node>.el-checkbox,.el-cascader-node>.el-radio{margin-right:0}.el-cascader-node>.el-radio .el-radio__label{padding-left:0}.el-cascader{--el-cascader-menu-text-color:var(--el-text-color-regular);--el-cascader-menu-selected-text-color:var(--el-color-primary);--el-cascader-menu-fill:var(--el-bg-color-overlay);--el-cascader-menu-font-size:var(--el-font-size-base);--el-cascader-menu-radius:var(--el-border-radius-base);--el-cascader-menu-border:solid 1px var(--el-border-color-light);--el-cascader-menu-shadow:var(--el-box-shadow-light);--el-cascader-node-background-hover:var(--el-fill-color-light);--el-cascader-node-color-disabled:var(--el-text-color-placeholder);--el-cascader-color-empty:var(--el-text-color-placeholder);--el-cascader-tag-background:var(--el-fill-color);display:inline-block;font-size:var(--el-font-size-base);line-height:32px;outline:none;position:relative;vertical-align:middle}.el-cascader:not(.is-disabled):hover .el-input__wrapper{box-shadow:0 0 0 1px var(--el-input-hover-border-color) inset;cursor:pointer}.el-cascader .el-input{cursor:pointer;display:flex}.el-cascader .el-input .el-input__inner{cursor:pointer;text-overflow:ellipsis}.el-cascader .el-input .el-input__suffix-inner .el-icon{height:calc(100% - 2px)}.el-cascader .el-input .el-input__suffix-inner .el-icon svg{vertical-align:middle}.el-cascader .el-input .icon-arrow-down{font-size:14px;transition:transform var(--el-transition-duration)}.el-cascader .el-input .icon-arrow-down.is-reverse{transform:rotate(180deg)}.el-cascader .el-input .icon-circle-close:hover{color:var(--el-input-clear-hover-color,var(--el-text-color-secondary))}.el-cascader .el-input.is-focus .el-input__wrapper{box-shadow:0 0 0 1px var(--el-input-focus-border-color,var(--el-color-primary)) inset}.el-cascader--large{font-size:14px;line-height:40px}.el-cascader--large .el-cascader__tags{gap:6px;padding:8px}.el-cascader--large .el-cascader__search-input{height:24px;margin-left:7px}.el-cascader--small{font-size:12px;line-height:24px}.el-cascader--small .el-cascader__tags{gap:4px;padding:2px}.el-cascader--small .el-cascader__search-input{height:20px;margin-left:5px}.el-cascader.is-disabled .el-cascader__label{color:var(--el-disabled-text-color);z-index:calc(var(--el-index-normal) + 1)}.el-cascader__dropdown{--el-cascader-menu-text-color:var(--el-text-color-regular);--el-cascader-menu-selected-text-color:var(--el-color-primary);--el-cascader-menu-fill:var(--el-bg-color-overlay);--el-cascader-menu-font-size:var(--el-font-size-base);--el-cascader-menu-radius:var(--el-border-radius-base);--el-cascader-menu-border:solid 1px var(--el-border-color-light);--el-cascader-menu-shadow:var(--el-box-shadow-light);--el-cascader-node-background-hover:var(--el-fill-color-light);--el-cascader-node-color-disabled:var(--el-text-color-placeholder);--el-cascader-color-empty:var(--el-text-color-placeholder);--el-cascader-tag-background:var(--el-fill-color);border-radius:var(--el-cascader-menu-radius);font-size:var(--el-cascader-menu-font-size)}.el-cascader__dropdown.el-popper{background:var(--el-cascader-menu-fill)}.el-cascader__dropdown.el-popper,.el-cascader__dropdown.el-popper .el-popper__arrow:before{border:var(--el-cascader-menu-border)}.el-cascader__dropdown.el-popper[data-popper-placement^=top] .el-popper__arrow:before{border-left-color:transparent;border-top-color:transparent}.el-cascader__dropdown.el-popper[data-popper-placement^=bottom] .el-popper__arrow:before{border-bottom-color:transparent;border-right-color:transparent}.el-cascader__dropdown.el-popper[data-popper-placement^=left] .el-popper__arrow:before{border-bottom-color:transparent;border-left-color:transparent}.el-cascader__dropdown.el-popper[data-popper-placement^=right] .el-popper__arrow:before{border-right-color:transparent;border-top-color:transparent}.el-cascader__dropdown.el-popper{box-shadow:var(--el-cascader-menu-shadow)}.el-cascader__tags{box-sizing:border-box;display:flex;flex-wrap:wrap;gap:6px;left:0;line-height:normal;padding:4px;position:absolute;right:30px;text-align:left;top:50%;transform:translateY(-50%)}.el-cascader__tags .el-tag{align-items:center;background:var(--el-cascader-tag-background);display:inline-flex;max-width:100%;text-overflow:ellipsis}.el-cascader__tags .el-tag.el-tag--dark,.el-cascader__tags .el-tag.el-tag--plain{background-color:var(--el-tag-bg-color)}.el-cascader__tags .el-tag:not(.is-hit){border-color:transparent}.el-cascader__tags .el-tag:not(.is-hit).el-tag--dark,.el-cascader__tags .el-tag:not(.is-hit).el-tag--plain{border-color:var(--el-tag-border-color)}.el-cascader__tags .el-tag>span{flex:1;overflow:hidden;text-overflow:ellipsis}.el-cascader__tags .el-tag .el-icon-close{background-color:var(--el-text-color-placeholder);color:var(--el-color-white);flex:none}.el-cascader__tags .el-tag .el-icon-close:hover{background-color:var(--el-text-color-secondary)}.el-cascader__tags .el-tag+input{margin-left:0}.el-cascader__tags.is-validate{right:55px}.el-cascader__collapse-tags{white-space:normal;z-index:var(--el-index-normal)}.el-cascader__collapse-tags .el-tag{align-items:center;background:var(--el-fill-color);display:inline-flex;max-width:100%;text-overflow:ellipsis}.el-cascader__collapse-tags .el-tag.el-tag--dark,.el-cascader__collapse-tags .el-tag.el-tag--plain{background-color:var(--el-tag-bg-color)}.el-cascader__collapse-tags .el-tag:not(.is-hit){border-color:transparent}.el-cascader__collapse-tags .el-tag:not(.is-hit).el-tag--dark,.el-cascader__collapse-tags .el-tag:not(.is-hit).el-tag--plain{border-color:var(--el-tag-border-color)}.el-cascader__collapse-tags .el-tag>span{flex:1;overflow:hidden;text-overflow:ellipsis}.el-cascader__collapse-tags .el-tag .el-icon-close{background-color:var(--el-text-color-placeholder);color:var(--el-color-white);flex:none}.el-cascader__collapse-tags .el-tag .el-icon-close:hover{background-color:var(--el-text-color-secondary)}.el-cascader__collapse-tags .el-tag+input{margin-left:0}.el-cascader__suggestion-panel{border-radius:var(--el-cascader-menu-radius)}.el-cascader__suggestion-list{color:var(--el-cascader-menu-text-color);font-size:var(--el-font-size-base);margin:0;max-height:204px;padding:6px 0;text-align:center}.el-cascader__suggestion-item{align-items:center;cursor:pointer;display:flex;height:34px;justify-content:space-between;outline:none;padding:0 15px;text-align:left}.el-cascader__suggestion-item:focus,.el-cascader__suggestion-item:hover{background:var(--el-cascader-node-background-hover)}.el-cascader__suggestion-item.is-checked{color:var(--el-cascader-menu-selected-text-color);font-weight:700}.el-cascader__suggestion-item>span{margin-right:10px}.el-cascader__empty-text{color:var(--el-cascader-color-empty);margin:10px 0}.el-cascader__search-input{background:transparent;border:none;box-sizing:border-box;color:var(--el-cascader-menu-text-color);flex:1;height:24px;margin-left:7px;min-width:60px;outline:none;padding:0}.el-cascader__search-input::-moz-placeholder{color:transparent}.el-cascader__search-input::placeholder{color:transparent}.el-check-tag{background-color:var(--el-color-info-light-9);border-radius:var(--el-border-radius-base);color:var(--el-color-info);cursor:pointer;display:inline-block;font-size:var(--el-font-size-base);font-weight:700;line-height:var(--el-font-size-base);padding:7px 15px;transition:var(--el-transition-all)}.el-check-tag:hover{background-color:var(--el-color-info-light-7)}.el-check-tag.el-check-tag--primary.is-checked{background-color:var(--el-color-primary-light-8);color:var(--el-color-primary)}.el-check-tag.el-check-tag--primary.is-checked:hover{background-color:var(--el-color-primary-light-7)}.el-check-tag.el-check-tag--primary.is-checked.is-disabled{background-color:var(--el-color-primary-light-8);color:var(--el-disabled-text-color);cursor:not-allowed}.el-check-tag.el-check-tag--primary.is-checked.is-disabled:hover{background-color:var(--el-color-primary-light-8)}.el-check-tag.el-check-tag--primary.is-disabled{background-color:var(--el-color-info-light-9);color:var(--el-disabled-text-color);cursor:not-allowed}.el-check-tag.el-check-tag--primary.is-disabled:hover{background-color:var(--el-color-info-light-9)}.el-check-tag.el-check-tag--success.is-checked{background-color:var(--el-color-success-light-8);color:var(--el-color-success)}.el-check-tag.el-check-tag--success.is-checked:hover{background-color:var(--el-color-success-light-7)}.el-check-tag.el-check-tag--success.is-checked.is-disabled{background-color:var(--el-color-success-light-8);color:var(--el-disabled-text-color);cursor:not-allowed}.el-check-tag.el-check-tag--success.is-checked.is-disabled:hover{background-color:var(--el-color-success-light-8)}.el-check-tag.el-check-tag--success.is-disabled{color:var(--el-disabled-text-color);cursor:not-allowed}.el-check-tag.el-check-tag--success.is-disabled,.el-check-tag.el-check-tag--success.is-disabled:hover{background-color:var(--el-color-success-light-9)}.el-check-tag.el-check-tag--warning.is-checked{background-color:var(--el-color-warning-light-8);color:var(--el-color-warning)}.el-check-tag.el-check-tag--warning.is-checked:hover{background-color:var(--el-color-warning-light-7)}.el-check-tag.el-check-tag--warning.is-checked.is-disabled{background-color:var(--el-color-warning-light-8);color:var(--el-disabled-text-color);cursor:not-allowed}.el-check-tag.el-check-tag--warning.is-checked.is-disabled:hover{background-color:var(--el-color-warning-light-8)}.el-check-tag.el-check-tag--warning.is-disabled{color:var(--el-disabled-text-color);cursor:not-allowed}.el-check-tag.el-check-tag--warning.is-disabled,.el-check-tag.el-check-tag--warning.is-disabled:hover{background-color:var(--el-color-warning-light-9)}.el-check-tag.el-check-tag--danger.is-checked{background-color:var(--el-color-danger-light-8);color:var(--el-color-danger)}.el-check-tag.el-check-tag--danger.is-checked:hover{background-color:var(--el-color-danger-light-7)}.el-check-tag.el-check-tag--danger.is-checked.is-disabled{background-color:var(--el-color-danger-light-8);color:var(--el-disabled-text-color);cursor:not-allowed}.el-check-tag.el-check-tag--danger.is-checked.is-disabled:hover{background-color:var(--el-color-danger-light-8)}.el-check-tag.el-check-tag--danger.is-disabled{color:var(--el-disabled-text-color);cursor:not-allowed}.el-check-tag.el-check-tag--danger.is-disabled,.el-check-tag.el-check-tag--danger.is-disabled:hover{background-color:var(--el-color-danger-light-9)}.el-check-tag.el-check-tag--error.is-checked{background-color:var(--el-color-error-light-8);color:var(--el-color-error)}.el-check-tag.el-check-tag--error.is-checked:hover{background-color:var(--el-color-error-light-7)}.el-check-tag.el-check-tag--error.is-checked.is-disabled{background-color:var(--el-color-error-light-8);color:var(--el-disabled-text-color);cursor:not-allowed}.el-check-tag.el-check-tag--error.is-checked.is-disabled:hover{background-color:var(--el-color-error-light-8)}.el-check-tag.el-check-tag--error.is-disabled{color:var(--el-disabled-text-color);cursor:not-allowed}.el-check-tag.el-check-tag--error.is-disabled,.el-check-tag.el-check-tag--error.is-disabled:hover{background-color:var(--el-color-error-light-9)}.el-check-tag.el-check-tag--info.is-checked{background-color:var(--el-color-info-light-8);color:var(--el-color-info)}.el-check-tag.el-check-tag--info.is-checked:hover{background-color:var(--el-color-info-light-7)}.el-check-tag.el-check-tag--info.is-checked.is-disabled{background-color:var(--el-color-info-light-8);color:var(--el-disabled-text-color);cursor:not-allowed}.el-check-tag.el-check-tag--info.is-checked.is-disabled:hover{background-color:var(--el-color-info-light-8)}.el-check-tag.el-check-tag--info.is-disabled{color:var(--el-disabled-text-color);cursor:not-allowed}.el-check-tag.el-check-tag--info.is-disabled,.el-check-tag.el-check-tag--info.is-disabled:hover{background-color:var(--el-color-info-light-9)}.el-checkbox-button{--el-checkbox-button-checked-bg-color:var(--el-color-primary);--el-checkbox-button-checked-text-color:var(--el-color-white);--el-checkbox-button-checked-border-color:var(--el-color-primary);display:inline-block;position:relative}.el-checkbox-button__inner{-webkit-appearance:none;background:var(--el-button-bg-color,var(--el-fill-color-blank));border:var(--el-border);border-left-color:transparent;border-radius:0;box-sizing:border-box;color:var(--el-button-text-color,var(--el-text-color-regular));cursor:pointer;display:inline-block;font-size:var(--el-font-size-base);font-weight:var(--el-checkbox-font-weight);line-height:1;margin:0;outline:none;padding:8px 15px;position:relative;text-align:center;transition:var(--el-transition-all);-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;white-space:nowrap}.el-checkbox-button__inner.is-round{padding:8px 15px}.el-checkbox-button__inner:hover{color:var(--el-color-primary)}.el-checkbox-button__inner [class*=el-icon-]{line-height:.9}.el-checkbox-button__inner [class*=el-icon-]+span{margin-left:5px}.el-checkbox-button__original{margin:0;opacity:0;outline:none;position:absolute;z-index:-1}.el-checkbox-button.is-checked .el-checkbox-button__inner{background-color:var(--el-checkbox-button-checked-bg-color);border-color:var(--el-checkbox-button-checked-border-color);box-shadow:-1px 0 0 0 var(--el-color-primary-light-7);color:var(--el-checkbox-button-checked-text-color)}.el-checkbox-button.is-checked:first-child .el-checkbox-button__inner{border-left-color:var(--el-checkbox-button-checked-border-color)}.el-checkbox-button.is-disabled .el-checkbox-button__inner{background-color:var(--el-button-disabled-bg-color,var(--el-fill-color-blank));background-image:none;border-color:var(--el-button-disabled-border-color,var(--el-border-color-light));box-shadow:none;color:var(--el-disabled-text-color);cursor:not-allowed}.el-checkbox-button.is-disabled:first-child .el-checkbox-button__inner{border-left-color:var(--el-button-disabled-border-color,var(--el-border-color-light))}.el-checkbox-button:first-child .el-checkbox-button__inner{border-bottom-left-radius:var(--el-border-radius-base);border-left:var(--el-border);border-top-left-radius:var(--el-border-radius-base);box-shadow:none!important}.el-checkbox-button.is-focus .el-checkbox-button__inner{border-color:var(--el-checkbox-button-checked-border-color)}.el-checkbox-button:last-child .el-checkbox-button__inner{border-bottom-right-radius:var(--el-border-radius-base);border-top-right-radius:var(--el-border-radius-base)}.el-checkbox-button--large .el-checkbox-button__inner{border-radius:0;font-size:var(--el-font-size-base);padding:12px 19px}.el-checkbox-button--large .el-checkbox-button__inner.is-round{padding:12px 19px}.el-checkbox-button--small .el-checkbox-button__inner{border-radius:0;font-size:12px;padding:5px 11px}.el-checkbox-button--small .el-checkbox-button__inner.is-round{padding:5px 11px}.el-checkbox-group{font-size:0;line-height:0}.el-checkbox{--el-checkbox-font-size:14px;--el-checkbox-font-weight:var(--el-font-weight-primary);--el-checkbox-text-color:var(--el-text-color-regular);--el-checkbox-input-height:14px;--el-checkbox-input-width:14px;--el-checkbox-border-radius:var(--el-border-radius-small);--el-checkbox-bg-color:var(--el-fill-color-blank);--el-checkbox-input-border:var(--el-border);--el-checkbox-disabled-border-color:var(--el-border-color);--el-checkbox-disabled-input-fill:var(--el-fill-color-light);--el-checkbox-disabled-icon-color:var(--el-text-color-placeholder);--el-checkbox-disabled-checked-input-fill:var(--el-border-color-extra-light);--el-checkbox-disabled-checked-input-border-color:var(--el-border-color);--el-checkbox-disabled-checked-icon-color:var(--el-text-color-placeholder);--el-checkbox-checked-text-color:var(--el-color-primary);--el-checkbox-checked-input-border-color:var(--el-color-primary);--el-checkbox-checked-bg-color:var(--el-color-primary);--el-checkbox-checked-icon-color:var(--el-color-white);--el-checkbox-input-border-color-hover:var(--el-color-primary);align-items:center;color:var(--el-checkbox-text-color);cursor:pointer;display:inline-flex;font-size:var(--el-font-size-base);font-weight:var(--el-checkbox-font-weight);height:var(--el-checkbox-height,32px);margin-right:30px;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}.el-checkbox.is-disabled{cursor:not-allowed}.el-checkbox.is-bordered{border:var(--el-border);border-radius:var(--el-border-radius-base);box-sizing:border-box;padding:0 15px 0 9px}.el-checkbox.is-bordered.is-checked{border-color:var(--el-color-primary)}.el-checkbox.is-bordered.is-disabled{border-color:var(--el-border-color-lighter)}.el-checkbox.is-bordered.el-checkbox--large{border-radius:var(--el-border-radius-base);padding:0 19px 0 11px}.el-checkbox.is-bordered.el-checkbox--large .el-checkbox__label{font-size:var(--el-font-size-base)}.el-checkbox.is-bordered.el-checkbox--large .el-checkbox__inner{height:14px;width:14px}.el-checkbox.is-bordered.el-checkbox--small{border-radius:calc(var(--el-border-radius-base) - 1px);padding:0 11px 0 7px}.el-checkbox.is-bordered.el-checkbox--small .el-checkbox__label{font-size:12px}.el-checkbox.is-bordered.el-checkbox--small .el-checkbox__inner{height:12px;width:12px}.el-checkbox.is-bordered.el-checkbox--small .el-checkbox__inner:after{height:6px;width:2px}.el-checkbox input:focus-visible+.el-checkbox__inner{border-radius:var(--el-checkbox-border-radius);outline:2px solid var(--el-checkbox-input-border-color-hover);outline-offset:1px}.el-checkbox__input{cursor:pointer;display:inline-flex;outline:none;position:relative;white-space:nowrap}.el-checkbox__input.is-disabled .el-checkbox__inner{background-color:var(--el-checkbox-disabled-input-fill);border-color:var(--el-checkbox-disabled-border-color);cursor:not-allowed}.el-checkbox__input.is-disabled .el-checkbox__inner:after{border-color:var(--el-checkbox-disabled-icon-color);cursor:not-allowed}.el-checkbox__input.is-disabled.is-checked .el-checkbox__inner{background-color:var(--el-checkbox-disabled-checked-input-fill);border-color:var(--el-checkbox-disabled-checked-input-border-color)}.el-checkbox__input.is-disabled.is-checked .el-checkbox__inner:after{border-color:var(--el-checkbox-disabled-checked-icon-color)}.el-checkbox__input.is-disabled.is-indeterminate .el-checkbox__inner{background-color:var(--el-checkbox-disabled-checked-input-fill);border-color:var(--el-checkbox-disabled-checked-input-border-color)}.el-checkbox__input.is-disabled.is-indeterminate .el-checkbox__inner:before{background-color:var(--el-checkbox-disabled-checked-icon-color);border-color:var(--el-checkbox-disabled-checked-icon-color)}.el-checkbox__input.is-disabled+span.el-checkbox__label{color:var(--el-disabled-text-color);cursor:not-allowed}.el-checkbox__input.is-checked .el-checkbox__inner{background-color:var(--el-checkbox-checked-bg-color);border-color:var(--el-checkbox-checked-input-border-color)}.el-checkbox__input.is-checked .el-checkbox__inner:after{border-color:var(--el-checkbox-checked-icon-color);transform:rotate(45deg) scaleY(1)}.el-checkbox__input.is-checked+.el-checkbox__label{color:var(--el-checkbox-checked-text-color)}.el-checkbox__input.is-focus:not(.is-checked) .el-checkbox__original:not(:focus-visible){border-color:var(--el-checkbox-input-border-color-hover)}.el-checkbox__input.is-indeterminate .el-checkbox__inner{background-color:var(--el-checkbox-checked-bg-color);border-color:var(--el-checkbox-checked-input-border-color)}.el-checkbox__input.is-indeterminate .el-checkbox__inner:before{background-color:var(--el-checkbox-checked-icon-color);content:"";display:block;height:2px;left:0;position:absolute;right:0;top:5px;transform:scale(.5)}.el-checkbox__input.is-indeterminate .el-checkbox__inner:after{display:none}.el-checkbox__inner{background-color:var(--el-checkbox-bg-color);border:var(--el-checkbox-input-border);border-radius:var(--el-checkbox-border-radius);box-sizing:border-box;display:inline-block;height:var(--el-checkbox-input-height);position:relative;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);width:var(--el-checkbox-input-width);z-index:var(--el-index-normal)}.el-checkbox__inner:hover{border-color:var(--el-checkbox-input-border-color-hover)}.el-checkbox__inner:after{border:1px solid transparent;border-left:0;border-top:0;box-sizing:content-box;content:"";height:7px;left:4px;position:absolute;top:1px;transform:rotate(45deg) scaleY(0);transform-origin:center;transition:transform .15s ease-in .05s;width:3px}.el-checkbox__original{height:0;margin:0;opacity:0;outline:none;position:absolute;width:0;z-index:-1}.el-checkbox__label{display:inline-block;font-size:var(--el-checkbox-font-size);line-height:1;padding-left:8px}.el-checkbox.el-checkbox--large{height:40px}.el-checkbox.el-checkbox--large .el-checkbox__label{font-size:14px}.el-checkbox.el-checkbox--large .el-checkbox__inner{height:14px;width:14px}.el-checkbox.el-checkbox--small{height:24px}.el-checkbox.el-checkbox--small .el-checkbox__label{font-size:12px}.el-checkbox.el-checkbox--small .el-checkbox__inner{height:12px;width:12px}.el-checkbox.el-checkbox--small .el-checkbox__input.is-indeterminate .el-checkbox__inner:before{top:4px}.el-checkbox.el-checkbox--small .el-checkbox__inner:after{height:6px;width:2px}.el-checkbox:last-of-type{margin-right:0}[class*=el-col-]{box-sizing:border-box}[class*=el-col-].is-guttered{display:block;min-height:1px}.el-col-0{flex:0 0 0%;max-width:0}.el-col-0,.el-col-0.is-guttered{display:none}.el-col-offset-0{margin-left:0}.el-col-pull-0{position:relative;right:0}.el-col-push-0{left:0;position:relative}.el-col-1{flex:0 0 4.1666666667%;max-width:4.1666666667%}.el-col-1,.el-col-1.is-guttered{display:block}.el-col-offset-1{margin-left:4.1666666667%}.el-col-pull-1{position:relative;right:4.1666666667%}.el-col-push-1{left:4.1666666667%;position:relative}.el-col-2{flex:0 0 8.3333333333%;max-width:8.3333333333%}.el-col-2,.el-col-2.is-guttered{display:block}.el-col-offset-2{margin-left:8.3333333333%}.el-col-pull-2{position:relative;right:8.3333333333%}.el-col-push-2{left:8.3333333333%;position:relative}.el-col-3{flex:0 0 12.5%;max-width:12.5%}.el-col-3,.el-col-3.is-guttered{display:block}.el-col-offset-3{margin-left:12.5%}.el-col-pull-3{position:relative;right:12.5%}.el-col-push-3{left:12.5%;position:relative}.el-col-4{flex:0 0 16.6666666667%;max-width:16.6666666667%}.el-col-4,.el-col-4.is-guttered{display:block}.el-col-offset-4{margin-left:16.6666666667%}.el-col-pull-4{position:relative;right:16.6666666667%}.el-col-push-4{left:16.6666666667%;position:relative}.el-col-5{flex:0 0 20.8333333333%;max-width:20.8333333333%}.el-col-5,.el-col-5.is-guttered{display:block}.el-col-offset-5{margin-left:20.8333333333%}.el-col-pull-5{position:relative;right:20.8333333333%}.el-col-push-5{left:20.8333333333%;position:relative}.el-col-6{flex:0 0 25%;max-width:25%}.el-col-6,.el-col-6.is-guttered{display:block}.el-col-offset-6{margin-left:25%}.el-col-pull-6{position:relative;right:25%}.el-col-push-6{left:25%;position:relative}.el-col-7{flex:0 0 29.1666666667%;max-width:29.1666666667%}.el-col-7,.el-col-7.is-guttered{display:block}.el-col-offset-7{margin-left:29.1666666667%}.el-col-pull-7{position:relative;right:29.1666666667%}.el-col-push-7{left:29.1666666667%;position:relative}.el-col-8{flex:0 0 33.3333333333%;max-width:33.3333333333%}.el-col-8,.el-col-8.is-guttered{display:block}.el-col-offset-8{margin-left:33.3333333333%}.el-col-pull-8{position:relative;right:33.3333333333%}.el-col-push-8{left:33.3333333333%;position:relative}.el-col-9{flex:0 0 37.5%;max-width:37.5%}.el-col-9,.el-col-9.is-guttered{display:block}.el-col-offset-9{margin-left:37.5%}.el-col-pull-9{position:relative;right:37.5%}.el-col-push-9{left:37.5%;position:relative}.el-col-10{flex:0 0 41.6666666667%;max-width:41.6666666667%}.el-col-10,.el-col-10.is-guttered{display:block}.el-col-offset-10{margin-left:41.6666666667%}.el-col-pull-10{position:relative;right:41.6666666667%}.el-col-push-10{left:41.6666666667%;position:relative}.el-col-11{flex:0 0 45.8333333333%;max-width:45.8333333333%}.el-col-11,.el-col-11.is-guttered{display:block}.el-col-offset-11{margin-left:45.8333333333%}.el-col-pull-11{position:relative;right:45.8333333333%}.el-col-push-11{left:45.8333333333%;position:relative}.el-col-12{flex:0 0 50%;max-width:50%}.el-col-12,.el-col-12.is-guttered{display:block}.el-col-offset-12{margin-left:50%}.el-col-pull-12{position:relative;right:50%}.el-col-push-12{left:50%;position:relative}.el-col-13{flex:0 0 54.1666666667%;max-width:54.1666666667%}.el-col-13,.el-col-13.is-guttered{display:block}.el-col-offset-13{margin-left:54.1666666667%}.el-col-pull-13{position:relative;right:54.1666666667%}.el-col-push-13{left:54.1666666667%;position:relative}.el-col-14{flex:0 0 58.3333333333%;max-width:58.3333333333%}.el-col-14,.el-col-14.is-guttered{display:block}.el-col-offset-14{margin-left:58.3333333333%}.el-col-pull-14{position:relative;right:58.3333333333%}.el-col-push-14{left:58.3333333333%;position:relative}.el-col-15{flex:0 0 62.5%;max-width:62.5%}.el-col-15,.el-col-15.is-guttered{display:block}.el-col-offset-15{margin-left:62.5%}.el-col-pull-15{position:relative;right:62.5%}.el-col-push-15{left:62.5%;position:relative}.el-col-16{flex:0 0 66.6666666667%;max-width:66.6666666667%}.el-col-16,.el-col-16.is-guttered{display:block}.el-col-offset-16{margin-left:66.6666666667%}.el-col-pull-16{position:relative;right:66.6666666667%}.el-col-push-16{left:66.6666666667%;position:relative}.el-col-17{flex:0 0 70.8333333333%;max-width:70.8333333333%}.el-col-17,.el-col-17.is-guttered{display:block}.el-col-offset-17{margin-left:70.8333333333%}.el-col-pull-17{position:relative;right:70.8333333333%}.el-col-push-17{left:70.8333333333%;position:relative}.el-col-18{flex:0 0 75%;max-width:75%}.el-col-18,.el-col-18.is-guttered{display:block}.el-col-offset-18{margin-left:75%}.el-col-pull-18{position:relative;right:75%}.el-col-push-18{left:75%;position:relative}.el-col-19{flex:0 0 79.1666666667%;max-width:79.1666666667%}.el-col-19,.el-col-19.is-guttered{display:block}.el-col-offset-19{margin-left:79.1666666667%}.el-col-pull-19{position:relative;right:79.1666666667%}.el-col-push-19{left:79.1666666667%;position:relative}.el-col-20{flex:0 0 83.3333333333%;max-width:83.3333333333%}.el-col-20,.el-col-20.is-guttered{display:block}.el-col-offset-20{margin-left:83.3333333333%}.el-col-pull-20{position:relative;right:83.3333333333%}.el-col-push-20{left:83.3333333333%;position:relative}.el-col-21{flex:0 0 87.5%;max-width:87.5%}.el-col-21,.el-col-21.is-guttered{display:block}.el-col-offset-21{margin-left:87.5%}.el-col-pull-21{position:relative;right:87.5%}.el-col-push-21{left:87.5%;position:relative}.el-col-22{flex:0 0 91.6666666667%;max-width:91.6666666667%}.el-col-22,.el-col-22.is-guttered{display:block}.el-col-offset-22{margin-left:91.6666666667%}.el-col-pull-22{position:relative;right:91.6666666667%}.el-col-push-22{left:91.6666666667%;position:relative}.el-col-23{flex:0 0 95.8333333333%;max-width:95.8333333333%}.el-col-23,.el-col-23.is-guttered{display:block}.el-col-offset-23{margin-left:95.8333333333%}.el-col-pull-23{position:relative;right:95.8333333333%}.el-col-push-23{left:95.8333333333%;position:relative}.el-col-24{flex:0 0 100%;max-width:100%}.el-col-24,.el-col-24.is-guttered{display:block}.el-col-offset-24{margin-left:100%}.el-col-pull-24{position:relative;right:100%}.el-col-push-24{left:100%;position:relative}@media only screen and (max-width:767px){.el-col-xs-0{display:none;flex:0 0 0%;max-width:0}.el-col-xs-0.is-guttered{display:none}.el-col-xs-offset-0{margin-left:0}.el-col-xs-pull-0{position:relative;right:0}.el-col-xs-push-0{left:0;position:relative}.el-col-xs-1{flex:0 0 4.1666666667%;max-width:4.1666666667%}.el-col-xs-1,.el-col-xs-1.is-guttered{display:block}.el-col-xs-offset-1{margin-left:4.1666666667%}.el-col-xs-pull-1{position:relative;right:4.1666666667%}.el-col-xs-push-1{left:4.1666666667%;position:relative}.el-col-xs-2{flex:0 0 8.3333333333%;max-width:8.3333333333%}.el-col-xs-2,.el-col-xs-2.is-guttered{display:block}.el-col-xs-offset-2{margin-left:8.3333333333%}.el-col-xs-pull-2{position:relative;right:8.3333333333%}.el-col-xs-push-2{left:8.3333333333%;position:relative}.el-col-xs-3{flex:0 0 12.5%;max-width:12.5%}.el-col-xs-3,.el-col-xs-3.is-guttered{display:block}.el-col-xs-offset-3{margin-left:12.5%}.el-col-xs-pull-3{position:relative;right:12.5%}.el-col-xs-push-3{left:12.5%;position:relative}.el-col-xs-4{flex:0 0 16.6666666667%;max-width:16.6666666667%}.el-col-xs-4,.el-col-xs-4.is-guttered{display:block}.el-col-xs-offset-4{margin-left:16.6666666667%}.el-col-xs-pull-4{position:relative;right:16.6666666667%}.el-col-xs-push-4{left:16.6666666667%;position:relative}.el-col-xs-5{flex:0 0 20.8333333333%;max-width:20.8333333333%}.el-col-xs-5,.el-col-xs-5.is-guttered{display:block}.el-col-xs-offset-5{margin-left:20.8333333333%}.el-col-xs-pull-5{position:relative;right:20.8333333333%}.el-col-xs-push-5{left:20.8333333333%;position:relative}.el-col-xs-6{flex:0 0 25%;max-width:25%}.el-col-xs-6,.el-col-xs-6.is-guttered{display:block}.el-col-xs-offset-6{margin-left:25%}.el-col-xs-pull-6{position:relative;right:25%}.el-col-xs-push-6{left:25%;position:relative}.el-col-xs-7{flex:0 0 29.1666666667%;max-width:29.1666666667%}.el-col-xs-7,.el-col-xs-7.is-guttered{display:block}.el-col-xs-offset-7{margin-left:29.1666666667%}.el-col-xs-pull-7{position:relative;right:29.1666666667%}.el-col-xs-push-7{left:29.1666666667%;position:relative}.el-col-xs-8{flex:0 0 33.3333333333%;max-width:33.3333333333%}.el-col-xs-8,.el-col-xs-8.is-guttered{display:block}.el-col-xs-offset-8{margin-left:33.3333333333%}.el-col-xs-pull-8{position:relative;right:33.3333333333%}.el-col-xs-push-8{left:33.3333333333%;position:relative}.el-col-xs-9{flex:0 0 37.5%;max-width:37.5%}.el-col-xs-9,.el-col-xs-9.is-guttered{display:block}.el-col-xs-offset-9{margin-left:37.5%}.el-col-xs-pull-9{position:relative;right:37.5%}.el-col-xs-push-9{left:37.5%;position:relative}.el-col-xs-10{display:block;flex:0 0 41.6666666667%;max-width:41.6666666667%}.el-col-xs-10.is-guttered{display:block}.el-col-xs-offset-10{margin-left:41.6666666667%}.el-col-xs-pull-10{position:relative;right:41.6666666667%}.el-col-xs-push-10{left:41.6666666667%;position:relative}.el-col-xs-11{display:block;flex:0 0 45.8333333333%;max-width:45.8333333333%}.el-col-xs-11.is-guttered{display:block}.el-col-xs-offset-11{margin-left:45.8333333333%}.el-col-xs-pull-11{position:relative;right:45.8333333333%}.el-col-xs-push-11{left:45.8333333333%;position:relative}.el-col-xs-12{display:block;flex:0 0 50%;max-width:50%}.el-col-xs-12.is-guttered{display:block}.el-col-xs-offset-12{margin-left:50%}.el-col-xs-pull-12{position:relative;right:50%}.el-col-xs-push-12{left:50%;position:relative}.el-col-xs-13{display:block;flex:0 0 54.1666666667%;max-width:54.1666666667%}.el-col-xs-13.is-guttered{display:block}.el-col-xs-offset-13{margin-left:54.1666666667%}.el-col-xs-pull-13{position:relative;right:54.1666666667%}.el-col-xs-push-13{left:54.1666666667%;position:relative}.el-col-xs-14{display:block;flex:0 0 58.3333333333%;max-width:58.3333333333%}.el-col-xs-14.is-guttered{display:block}.el-col-xs-offset-14{margin-left:58.3333333333%}.el-col-xs-pull-14{position:relative;right:58.3333333333%}.el-col-xs-push-14{left:58.3333333333%;position:relative}.el-col-xs-15{display:block;flex:0 0 62.5%;max-width:62.5%}.el-col-xs-15.is-guttered{display:block}.el-col-xs-offset-15{margin-left:62.5%}.el-col-xs-pull-15{position:relative;right:62.5%}.el-col-xs-push-15{left:62.5%;position:relative}.el-col-xs-16{display:block;flex:0 0 66.6666666667%;max-width:66.6666666667%}.el-col-xs-16.is-guttered{display:block}.el-col-xs-offset-16{margin-left:66.6666666667%}.el-col-xs-pull-16{position:relative;right:66.6666666667%}.el-col-xs-push-16{left:66.6666666667%;position:relative}.el-col-xs-17{display:block;flex:0 0 70.8333333333%;max-width:70.8333333333%}.el-col-xs-17.is-guttered{display:block}.el-col-xs-offset-17{margin-left:70.8333333333%}.el-col-xs-pull-17{position:relative;right:70.8333333333%}.el-col-xs-push-17{left:70.8333333333%;position:relative}.el-col-xs-18{display:block;flex:0 0 75%;max-width:75%}.el-col-xs-18.is-guttered{display:block}.el-col-xs-offset-18{margin-left:75%}.el-col-xs-pull-18{position:relative;right:75%}.el-col-xs-push-18{left:75%;position:relative}.el-col-xs-19{display:block;flex:0 0 79.1666666667%;max-width:79.1666666667%}.el-col-xs-19.is-guttered{display:block}.el-col-xs-offset-19{margin-left:79.1666666667%}.el-col-xs-pull-19{position:relative;right:79.1666666667%}.el-col-xs-push-19{left:79.1666666667%;position:relative}.el-col-xs-20{display:block;flex:0 0 83.3333333333%;max-width:83.3333333333%}.el-col-xs-20.is-guttered{display:block}.el-col-xs-offset-20{margin-left:83.3333333333%}.el-col-xs-pull-20{position:relative;right:83.3333333333%}.el-col-xs-push-20{left:83.3333333333%;position:relative}.el-col-xs-21{display:block;flex:0 0 87.5%;max-width:87.5%}.el-col-xs-21.is-guttered{display:block}.el-col-xs-offset-21{margin-left:87.5%}.el-col-xs-pull-21{position:relative;right:87.5%}.el-col-xs-push-21{left:87.5%;position:relative}.el-col-xs-22{display:block;flex:0 0 91.6666666667%;max-width:91.6666666667%}.el-col-xs-22.is-guttered{display:block}.el-col-xs-offset-22{margin-left:91.6666666667%}.el-col-xs-pull-22{position:relative;right:91.6666666667%}.el-col-xs-push-22{left:91.6666666667%;position:relative}.el-col-xs-23{display:block;flex:0 0 95.8333333333%;max-width:95.8333333333%}.el-col-xs-23.is-guttered{display:block}.el-col-xs-offset-23{margin-left:95.8333333333%}.el-col-xs-pull-23{position:relative;right:95.8333333333%}.el-col-xs-push-23{left:95.8333333333%;position:relative}.el-col-xs-24{display:block;flex:0 0 100%;max-width:100%}.el-col-xs-24.is-guttered{display:block}.el-col-xs-offset-24{margin-left:100%}.el-col-xs-pull-24{position:relative;right:100%}.el-col-xs-push-24{left:100%;position:relative}}@media only screen and (min-width:768px){.el-col-sm-0{display:none;flex:0 0 0%;max-width:0}.el-col-sm-0.is-guttered{display:none}.el-col-sm-offset-0{margin-left:0}.el-col-sm-pull-0{position:relative;right:0}.el-col-sm-push-0{left:0;position:relative}.el-col-sm-1{flex:0 0 4.1666666667%;max-width:4.1666666667%}.el-col-sm-1,.el-col-sm-1.is-guttered{display:block}.el-col-sm-offset-1{margin-left:4.1666666667%}.el-col-sm-pull-1{position:relative;right:4.1666666667%}.el-col-sm-push-1{left:4.1666666667%;position:relative}.el-col-sm-2{flex:0 0 8.3333333333%;max-width:8.3333333333%}.el-col-sm-2,.el-col-sm-2.is-guttered{display:block}.el-col-sm-offset-2{margin-left:8.3333333333%}.el-col-sm-pull-2{position:relative;right:8.3333333333%}.el-col-sm-push-2{left:8.3333333333%;position:relative}.el-col-sm-3{flex:0 0 12.5%;max-width:12.5%}.el-col-sm-3,.el-col-sm-3.is-guttered{display:block}.el-col-sm-offset-3{margin-left:12.5%}.el-col-sm-pull-3{position:relative;right:12.5%}.el-col-sm-push-3{left:12.5%;position:relative}.el-col-sm-4{flex:0 0 16.6666666667%;max-width:16.6666666667%}.el-col-sm-4,.el-col-sm-4.is-guttered{display:block}.el-col-sm-offset-4{margin-left:16.6666666667%}.el-col-sm-pull-4{position:relative;right:16.6666666667%}.el-col-sm-push-4{left:16.6666666667%;position:relative}.el-col-sm-5{flex:0 0 20.8333333333%;max-width:20.8333333333%}.el-col-sm-5,.el-col-sm-5.is-guttered{display:block}.el-col-sm-offset-5{margin-left:20.8333333333%}.el-col-sm-pull-5{position:relative;right:20.8333333333%}.el-col-sm-push-5{left:20.8333333333%;position:relative}.el-col-sm-6{flex:0 0 25%;max-width:25%}.el-col-sm-6,.el-col-sm-6.is-guttered{display:block}.el-col-sm-offset-6{margin-left:25%}.el-col-sm-pull-6{position:relative;right:25%}.el-col-sm-push-6{left:25%;position:relative}.el-col-sm-7{flex:0 0 29.1666666667%;max-width:29.1666666667%}.el-col-sm-7,.el-col-sm-7.is-guttered{display:block}.el-col-sm-offset-7{margin-left:29.1666666667%}.el-col-sm-pull-7{position:relative;right:29.1666666667%}.el-col-sm-push-7{left:29.1666666667%;position:relative}.el-col-sm-8{flex:0 0 33.3333333333%;max-width:33.3333333333%}.el-col-sm-8,.el-col-sm-8.is-guttered{display:block}.el-col-sm-offset-8{margin-left:33.3333333333%}.el-col-sm-pull-8{position:relative;right:33.3333333333%}.el-col-sm-push-8{left:33.3333333333%;position:relative}.el-col-sm-9{flex:0 0 37.5%;max-width:37.5%}.el-col-sm-9,.el-col-sm-9.is-guttered{display:block}.el-col-sm-offset-9{margin-left:37.5%}.el-col-sm-pull-9{position:relative;right:37.5%}.el-col-sm-push-9{left:37.5%;position:relative}.el-col-sm-10{display:block;flex:0 0 41.6666666667%;max-width:41.6666666667%}.el-col-sm-10.is-guttered{display:block}.el-col-sm-offset-10{margin-left:41.6666666667%}.el-col-sm-pull-10{position:relative;right:41.6666666667%}.el-col-sm-push-10{left:41.6666666667%;position:relative}.el-col-sm-11{display:block;flex:0 0 45.8333333333%;max-width:45.8333333333%}.el-col-sm-11.is-guttered{display:block}.el-col-sm-offset-11{margin-left:45.8333333333%}.el-col-sm-pull-11{position:relative;right:45.8333333333%}.el-col-sm-push-11{left:45.8333333333%;position:relative}.el-col-sm-12{display:block;flex:0 0 50%;max-width:50%}.el-col-sm-12.is-guttered{display:block}.el-col-sm-offset-12{margin-left:50%}.el-col-sm-pull-12{position:relative;right:50%}.el-col-sm-push-12{left:50%;position:relative}.el-col-sm-13{display:block;flex:0 0 54.1666666667%;max-width:54.1666666667%}.el-col-sm-13.is-guttered{display:block}.el-col-sm-offset-13{margin-left:54.1666666667%}.el-col-sm-pull-13{position:relative;right:54.1666666667%}.el-col-sm-push-13{left:54.1666666667%;position:relative}.el-col-sm-14{display:block;flex:0 0 58.3333333333%;max-width:58.3333333333%}.el-col-sm-14.is-guttered{display:block}.el-col-sm-offset-14{margin-left:58.3333333333%}.el-col-sm-pull-14{position:relative;right:58.3333333333%}.el-col-sm-push-14{left:58.3333333333%;position:relative}.el-col-sm-15{display:block;flex:0 0 62.5%;max-width:62.5%}.el-col-sm-15.is-guttered{display:block}.el-col-sm-offset-15{margin-left:62.5%}.el-col-sm-pull-15{position:relative;right:62.5%}.el-col-sm-push-15{left:62.5%;position:relative}.el-col-sm-16{display:block;flex:0 0 66.6666666667%;max-width:66.6666666667%}.el-col-sm-16.is-guttered{display:block}.el-col-sm-offset-16{margin-left:66.6666666667%}.el-col-sm-pull-16{position:relative;right:66.6666666667%}.el-col-sm-push-16{left:66.6666666667%;position:relative}.el-col-sm-17{display:block;flex:0 0 70.8333333333%;max-width:70.8333333333%}.el-col-sm-17.is-guttered{display:block}.el-col-sm-offset-17{margin-left:70.8333333333%}.el-col-sm-pull-17{position:relative;right:70.8333333333%}.el-col-sm-push-17{left:70.8333333333%;position:relative}.el-col-sm-18{display:block;flex:0 0 75%;max-width:75%}.el-col-sm-18.is-guttered{display:block}.el-col-sm-offset-18{margin-left:75%}.el-col-sm-pull-18{position:relative;right:75%}.el-col-sm-push-18{left:75%;position:relative}.el-col-sm-19{display:block;flex:0 0 79.1666666667%;max-width:79.1666666667%}.el-col-sm-19.is-guttered{display:block}.el-col-sm-offset-19{margin-left:79.1666666667%}.el-col-sm-pull-19{position:relative;right:79.1666666667%}.el-col-sm-push-19{left:79.1666666667%;position:relative}.el-col-sm-20{display:block;flex:0 0 83.3333333333%;max-width:83.3333333333%}.el-col-sm-20.is-guttered{display:block}.el-col-sm-offset-20{margin-left:83.3333333333%}.el-col-sm-pull-20{position:relative;right:83.3333333333%}.el-col-sm-push-20{left:83.3333333333%;position:relative}.el-col-sm-21{display:block;flex:0 0 87.5%;max-width:87.5%}.el-col-sm-21.is-guttered{display:block}.el-col-sm-offset-21{margin-left:87.5%}.el-col-sm-pull-21{position:relative;right:87.5%}.el-col-sm-push-21{left:87.5%;position:relative}.el-col-sm-22{display:block;flex:0 0 91.6666666667%;max-width:91.6666666667%}.el-col-sm-22.is-guttered{display:block}.el-col-sm-offset-22{margin-left:91.6666666667%}.el-col-sm-pull-22{position:relative;right:91.6666666667%}.el-col-sm-push-22{left:91.6666666667%;position:relative}.el-col-sm-23{display:block;flex:0 0 95.8333333333%;max-width:95.8333333333%}.el-col-sm-23.is-guttered{display:block}.el-col-sm-offset-23{margin-left:95.8333333333%}.el-col-sm-pull-23{position:relative;right:95.8333333333%}.el-col-sm-push-23{left:95.8333333333%;position:relative}.el-col-sm-24{display:block;flex:0 0 100%;max-width:100%}.el-col-sm-24.is-guttered{display:block}.el-col-sm-offset-24{margin-left:100%}.el-col-sm-pull-24{position:relative;right:100%}.el-col-sm-push-24{left:100%;position:relative}}@media only screen and (min-width:992px){.el-col-md-0{display:none;flex:0 0 0%;max-width:0}.el-col-md-0.is-guttered{display:none}.el-col-md-offset-0{margin-left:0}.el-col-md-pull-0{position:relative;right:0}.el-col-md-push-0{left:0;position:relative}.el-col-md-1{flex:0 0 4.1666666667%;max-width:4.1666666667%}.el-col-md-1,.el-col-md-1.is-guttered{display:block}.el-col-md-offset-1{margin-left:4.1666666667%}.el-col-md-pull-1{position:relative;right:4.1666666667%}.el-col-md-push-1{left:4.1666666667%;position:relative}.el-col-md-2{flex:0 0 8.3333333333%;max-width:8.3333333333%}.el-col-md-2,.el-col-md-2.is-guttered{display:block}.el-col-md-offset-2{margin-left:8.3333333333%}.el-col-md-pull-2{position:relative;right:8.3333333333%}.el-col-md-push-2{left:8.3333333333%;position:relative}.el-col-md-3{flex:0 0 12.5%;max-width:12.5%}.el-col-md-3,.el-col-md-3.is-guttered{display:block}.el-col-md-offset-3{margin-left:12.5%}.el-col-md-pull-3{position:relative;right:12.5%}.el-col-md-push-3{left:12.5%;position:relative}.el-col-md-4{flex:0 0 16.6666666667%;max-width:16.6666666667%}.el-col-md-4,.el-col-md-4.is-guttered{display:block}.el-col-md-offset-4{margin-left:16.6666666667%}.el-col-md-pull-4{position:relative;right:16.6666666667%}.el-col-md-push-4{left:16.6666666667%;position:relative}.el-col-md-5{flex:0 0 20.8333333333%;max-width:20.8333333333%}.el-col-md-5,.el-col-md-5.is-guttered{display:block}.el-col-md-offset-5{margin-left:20.8333333333%}.el-col-md-pull-5{position:relative;right:20.8333333333%}.el-col-md-push-5{left:20.8333333333%;position:relative}.el-col-md-6{flex:0 0 25%;max-width:25%}.el-col-md-6,.el-col-md-6.is-guttered{display:block}.el-col-md-offset-6{margin-left:25%}.el-col-md-pull-6{position:relative;right:25%}.el-col-md-push-6{left:25%;position:relative}.el-col-md-7{flex:0 0 29.1666666667%;max-width:29.1666666667%}.el-col-md-7,.el-col-md-7.is-guttered{display:block}.el-col-md-offset-7{margin-left:29.1666666667%}.el-col-md-pull-7{position:relative;right:29.1666666667%}.el-col-md-push-7{left:29.1666666667%;position:relative}.el-col-md-8{flex:0 0 33.3333333333%;max-width:33.3333333333%}.el-col-md-8,.el-col-md-8.is-guttered{display:block}.el-col-md-offset-8{margin-left:33.3333333333%}.el-col-md-pull-8{position:relative;right:33.3333333333%}.el-col-md-push-8{left:33.3333333333%;position:relative}.el-col-md-9{flex:0 0 37.5%;max-width:37.5%}.el-col-md-9,.el-col-md-9.is-guttered{display:block}.el-col-md-offset-9{margin-left:37.5%}.el-col-md-pull-9{position:relative;right:37.5%}.el-col-md-push-9{left:37.5%;position:relative}.el-col-md-10{display:block;flex:0 0 41.6666666667%;max-width:41.6666666667%}.el-col-md-10.is-guttered{display:block}.el-col-md-offset-10{margin-left:41.6666666667%}.el-col-md-pull-10{position:relative;right:41.6666666667%}.el-col-md-push-10{left:41.6666666667%;position:relative}.el-col-md-11{display:block;flex:0 0 45.8333333333%;max-width:45.8333333333%}.el-col-md-11.is-guttered{display:block}.el-col-md-offset-11{margin-left:45.8333333333%}.el-col-md-pull-11{position:relative;right:45.8333333333%}.el-col-md-push-11{left:45.8333333333%;position:relative}.el-col-md-12{display:block;flex:0 0 50%;max-width:50%}.el-col-md-12.is-guttered{display:block}.el-col-md-offset-12{margin-left:50%}.el-col-md-pull-12{position:relative;right:50%}.el-col-md-push-12{left:50%;position:relative}.el-col-md-13{display:block;flex:0 0 54.1666666667%;max-width:54.1666666667%}.el-col-md-13.is-guttered{display:block}.el-col-md-offset-13{margin-left:54.1666666667%}.el-col-md-pull-13{position:relative;right:54.1666666667%}.el-col-md-push-13{left:54.1666666667%;position:relative}.el-col-md-14{display:block;flex:0 0 58.3333333333%;max-width:58.3333333333%}.el-col-md-14.is-guttered{display:block}.el-col-md-offset-14{margin-left:58.3333333333%}.el-col-md-pull-14{position:relative;right:58.3333333333%}.el-col-md-push-14{left:58.3333333333%;position:relative}.el-col-md-15{display:block;flex:0 0 62.5%;max-width:62.5%}.el-col-md-15.is-guttered{display:block}.el-col-md-offset-15{margin-left:62.5%}.el-col-md-pull-15{position:relative;right:62.5%}.el-col-md-push-15{left:62.5%;position:relative}.el-col-md-16{display:block;flex:0 0 66.6666666667%;max-width:66.6666666667%}.el-col-md-16.is-guttered{display:block}.el-col-md-offset-16{margin-left:66.6666666667%}.el-col-md-pull-16{position:relative;right:66.6666666667%}.el-col-md-push-16{left:66.6666666667%;position:relative}.el-col-md-17{display:block;flex:0 0 70.8333333333%;max-width:70.8333333333%}.el-col-md-17.is-guttered{display:block}.el-col-md-offset-17{margin-left:70.8333333333%}.el-col-md-pull-17{position:relative;right:70.8333333333%}.el-col-md-push-17{left:70.8333333333%;position:relative}.el-col-md-18{display:block;flex:0 0 75%;max-width:75%}.el-col-md-18.is-guttered{display:block}.el-col-md-offset-18{margin-left:75%}.el-col-md-pull-18{position:relative;right:75%}.el-col-md-push-18{left:75%;position:relative}.el-col-md-19{display:block;flex:0 0 79.1666666667%;max-width:79.1666666667%}.el-col-md-19.is-guttered{display:block}.el-col-md-offset-19{margin-left:79.1666666667%}.el-col-md-pull-19{position:relative;right:79.1666666667%}.el-col-md-push-19{left:79.1666666667%;position:relative}.el-col-md-20{display:block;flex:0 0 83.3333333333%;max-width:83.3333333333%}.el-col-md-20.is-guttered{display:block}.el-col-md-offset-20{margin-left:83.3333333333%}.el-col-md-pull-20{position:relative;right:83.3333333333%}.el-col-md-push-20{left:83.3333333333%;position:relative}.el-col-md-21{display:block;flex:0 0 87.5%;max-width:87.5%}.el-col-md-21.is-guttered{display:block}.el-col-md-offset-21{margin-left:87.5%}.el-col-md-pull-21{position:relative;right:87.5%}.el-col-md-push-21{left:87.5%;position:relative}.el-col-md-22{display:block;flex:0 0 91.6666666667%;max-width:91.6666666667%}.el-col-md-22.is-guttered{display:block}.el-col-md-offset-22{margin-left:91.6666666667%}.el-col-md-pull-22{position:relative;right:91.6666666667%}.el-col-md-push-22{left:91.6666666667%;position:relative}.el-col-md-23{display:block;flex:0 0 95.8333333333%;max-width:95.8333333333%}.el-col-md-23.is-guttered{display:block}.el-col-md-offset-23{margin-left:95.8333333333%}.el-col-md-pull-23{position:relative;right:95.8333333333%}.el-col-md-push-23{left:95.8333333333%;position:relative}.el-col-md-24{display:block;flex:0 0 100%;max-width:100%}.el-col-md-24.is-guttered{display:block}.el-col-md-offset-24{margin-left:100%}.el-col-md-pull-24{position:relative;right:100%}.el-col-md-push-24{left:100%;position:relative}}@media only screen and (min-width:1200px){.el-col-lg-0{display:none;flex:0 0 0%;max-width:0}.el-col-lg-0.is-guttered{display:none}.el-col-lg-offset-0{margin-left:0}.el-col-lg-pull-0{position:relative;right:0}.el-col-lg-push-0{left:0;position:relative}.el-col-lg-1{flex:0 0 4.1666666667%;max-width:4.1666666667%}.el-col-lg-1,.el-col-lg-1.is-guttered{display:block}.el-col-lg-offset-1{margin-left:4.1666666667%}.el-col-lg-pull-1{position:relative;right:4.1666666667%}.el-col-lg-push-1{left:4.1666666667%;position:relative}.el-col-lg-2{flex:0 0 8.3333333333%;max-width:8.3333333333%}.el-col-lg-2,.el-col-lg-2.is-guttered{display:block}.el-col-lg-offset-2{margin-left:8.3333333333%}.el-col-lg-pull-2{position:relative;right:8.3333333333%}.el-col-lg-push-2{left:8.3333333333%;position:relative}.el-col-lg-3{flex:0 0 12.5%;max-width:12.5%}.el-col-lg-3,.el-col-lg-3.is-guttered{display:block}.el-col-lg-offset-3{margin-left:12.5%}.el-col-lg-pull-3{position:relative;right:12.5%}.el-col-lg-push-3{left:12.5%;position:relative}.el-col-lg-4{flex:0 0 16.6666666667%;max-width:16.6666666667%}.el-col-lg-4,.el-col-lg-4.is-guttered{display:block}.el-col-lg-offset-4{margin-left:16.6666666667%}.el-col-lg-pull-4{position:relative;right:16.6666666667%}.el-col-lg-push-4{left:16.6666666667%;position:relative}.el-col-lg-5{flex:0 0 20.8333333333%;max-width:20.8333333333%}.el-col-lg-5,.el-col-lg-5.is-guttered{display:block}.el-col-lg-offset-5{margin-left:20.8333333333%}.el-col-lg-pull-5{position:relative;right:20.8333333333%}.el-col-lg-push-5{left:20.8333333333%;position:relative}.el-col-lg-6{flex:0 0 25%;max-width:25%}.el-col-lg-6,.el-col-lg-6.is-guttered{display:block}.el-col-lg-offset-6{margin-left:25%}.el-col-lg-pull-6{position:relative;right:25%}.el-col-lg-push-6{left:25%;position:relative}.el-col-lg-7{flex:0 0 29.1666666667%;max-width:29.1666666667%}.el-col-lg-7,.el-col-lg-7.is-guttered{display:block}.el-col-lg-offset-7{margin-left:29.1666666667%}.el-col-lg-pull-7{position:relative;right:29.1666666667%}.el-col-lg-push-7{left:29.1666666667%;position:relative}.el-col-lg-8{flex:0 0 33.3333333333%;max-width:33.3333333333%}.el-col-lg-8,.el-col-lg-8.is-guttered{display:block}.el-col-lg-offset-8{margin-left:33.3333333333%}.el-col-lg-pull-8{position:relative;right:33.3333333333%}.el-col-lg-push-8{left:33.3333333333%;position:relative}.el-col-lg-9{flex:0 0 37.5%;max-width:37.5%}.el-col-lg-9,.el-col-lg-9.is-guttered{display:block}.el-col-lg-offset-9{margin-left:37.5%}.el-col-lg-pull-9{position:relative;right:37.5%}.el-col-lg-push-9{left:37.5%;position:relative}.el-col-lg-10{display:block;flex:0 0 41.6666666667%;max-width:41.6666666667%}.el-col-lg-10.is-guttered{display:block}.el-col-lg-offset-10{margin-left:41.6666666667%}.el-col-lg-pull-10{position:relative;right:41.6666666667%}.el-col-lg-push-10{left:41.6666666667%;position:relative}.el-col-lg-11{display:block;flex:0 0 45.8333333333%;max-width:45.8333333333%}.el-col-lg-11.is-guttered{display:block}.el-col-lg-offset-11{margin-left:45.8333333333%}.el-col-lg-pull-11{position:relative;right:45.8333333333%}.el-col-lg-push-11{left:45.8333333333%;position:relative}.el-col-lg-12{display:block;flex:0 0 50%;max-width:50%}.el-col-lg-12.is-guttered{display:block}.el-col-lg-offset-12{margin-left:50%}.el-col-lg-pull-12{position:relative;right:50%}.el-col-lg-push-12{left:50%;position:relative}.el-col-lg-13{display:block;flex:0 0 54.1666666667%;max-width:54.1666666667%}.el-col-lg-13.is-guttered{display:block}.el-col-lg-offset-13{margin-left:54.1666666667%}.el-col-lg-pull-13{position:relative;right:54.1666666667%}.el-col-lg-push-13{left:54.1666666667%;position:relative}.el-col-lg-14{display:block;flex:0 0 58.3333333333%;max-width:58.3333333333%}.el-col-lg-14.is-guttered{display:block}.el-col-lg-offset-14{margin-left:58.3333333333%}.el-col-lg-pull-14{position:relative;right:58.3333333333%}.el-col-lg-push-14{left:58.3333333333%;position:relative}.el-col-lg-15{display:block;flex:0 0 62.5%;max-width:62.5%}.el-col-lg-15.is-guttered{display:block}.el-col-lg-offset-15{margin-left:62.5%}.el-col-lg-pull-15{position:relative;right:62.5%}.el-col-lg-push-15{left:62.5%;position:relative}.el-col-lg-16{display:block;flex:0 0 66.6666666667%;max-width:66.6666666667%}.el-col-lg-16.is-guttered{display:block}.el-col-lg-offset-16{margin-left:66.6666666667%}.el-col-lg-pull-16{position:relative;right:66.6666666667%}.el-col-lg-push-16{left:66.6666666667%;position:relative}.el-col-lg-17{display:block;flex:0 0 70.8333333333%;max-width:70.8333333333%}.el-col-lg-17.is-guttered{display:block}.el-col-lg-offset-17{margin-left:70.8333333333%}.el-col-lg-pull-17{position:relative;right:70.8333333333%}.el-col-lg-push-17{left:70.8333333333%;position:relative}.el-col-lg-18{display:block;flex:0 0 75%;max-width:75%}.el-col-lg-18.is-guttered{display:block}.el-col-lg-offset-18{margin-left:75%}.el-col-lg-pull-18{position:relative;right:75%}.el-col-lg-push-18{left:75%;position:relative}.el-col-lg-19{display:block;flex:0 0 79.1666666667%;max-width:79.1666666667%}.el-col-lg-19.is-guttered{display:block}.el-col-lg-offset-19{margin-left:79.1666666667%}.el-col-lg-pull-19{position:relative;right:79.1666666667%}.el-col-lg-push-19{left:79.1666666667%;position:relative}.el-col-lg-20{display:block;flex:0 0 83.3333333333%;max-width:83.3333333333%}.el-col-lg-20.is-guttered{display:block}.el-col-lg-offset-20{margin-left:83.3333333333%}.el-col-lg-pull-20{position:relative;right:83.3333333333%}.el-col-lg-push-20{left:83.3333333333%;position:relative}.el-col-lg-21{display:block;flex:0 0 87.5%;max-width:87.5%}.el-col-lg-21.is-guttered{display:block}.el-col-lg-offset-21{margin-left:87.5%}.el-col-lg-pull-21{position:relative;right:87.5%}.el-col-lg-push-21{left:87.5%;position:relative}.el-col-lg-22{display:block;flex:0 0 91.6666666667%;max-width:91.6666666667%}.el-col-lg-22.is-guttered{display:block}.el-col-lg-offset-22{margin-left:91.6666666667%}.el-col-lg-pull-22{position:relative;right:91.6666666667%}.el-col-lg-push-22{left:91.6666666667%;position:relative}.el-col-lg-23{display:block;flex:0 0 95.8333333333%;max-width:95.8333333333%}.el-col-lg-23.is-guttered{display:block}.el-col-lg-offset-23{margin-left:95.8333333333%}.el-col-lg-pull-23{position:relative;right:95.8333333333%}.el-col-lg-push-23{left:95.8333333333%;position:relative}.el-col-lg-24{display:block;flex:0 0 100%;max-width:100%}.el-col-lg-24.is-guttered{display:block}.el-col-lg-offset-24{margin-left:100%}.el-col-lg-pull-24{position:relative;right:100%}.el-col-lg-push-24{left:100%;position:relative}}@media only screen and (min-width:1920px){.el-col-xl-0{display:none;flex:0 0 0%;max-width:0}.el-col-xl-0.is-guttered{display:none}.el-col-xl-offset-0{margin-left:0}.el-col-xl-pull-0{position:relative;right:0}.el-col-xl-push-0{left:0;position:relative}.el-col-xl-1{flex:0 0 4.1666666667%;max-width:4.1666666667%}.el-col-xl-1,.el-col-xl-1.is-guttered{display:block}.el-col-xl-offset-1{margin-left:4.1666666667%}.el-col-xl-pull-1{position:relative;right:4.1666666667%}.el-col-xl-push-1{left:4.1666666667%;position:relative}.el-col-xl-2{flex:0 0 8.3333333333%;max-width:8.3333333333%}.el-col-xl-2,.el-col-xl-2.is-guttered{display:block}.el-col-xl-offset-2{margin-left:8.3333333333%}.el-col-xl-pull-2{position:relative;right:8.3333333333%}.el-col-xl-push-2{left:8.3333333333%;position:relative}.el-col-xl-3{flex:0 0 12.5%;max-width:12.5%}.el-col-xl-3,.el-col-xl-3.is-guttered{display:block}.el-col-xl-offset-3{margin-left:12.5%}.el-col-xl-pull-3{position:relative;right:12.5%}.el-col-xl-push-3{left:12.5%;position:relative}.el-col-xl-4{flex:0 0 16.6666666667%;max-width:16.6666666667%}.el-col-xl-4,.el-col-xl-4.is-guttered{display:block}.el-col-xl-offset-4{margin-left:16.6666666667%}.el-col-xl-pull-4{position:relative;right:16.6666666667%}.el-col-xl-push-4{left:16.6666666667%;position:relative}.el-col-xl-5{flex:0 0 20.8333333333%;max-width:20.8333333333%}.el-col-xl-5,.el-col-xl-5.is-guttered{display:block}.el-col-xl-offset-5{margin-left:20.8333333333%}.el-col-xl-pull-5{position:relative;right:20.8333333333%}.el-col-xl-push-5{left:20.8333333333%;position:relative}.el-col-xl-6{flex:0 0 25%;max-width:25%}.el-col-xl-6,.el-col-xl-6.is-guttered{display:block}.el-col-xl-offset-6{margin-left:25%}.el-col-xl-pull-6{position:relative;right:25%}.el-col-xl-push-6{left:25%;position:relative}.el-col-xl-7{flex:0 0 29.1666666667%;max-width:29.1666666667%}.el-col-xl-7,.el-col-xl-7.is-guttered{display:block}.el-col-xl-offset-7{margin-left:29.1666666667%}.el-col-xl-pull-7{position:relative;right:29.1666666667%}.el-col-xl-push-7{left:29.1666666667%;position:relative}.el-col-xl-8{flex:0 0 33.3333333333%;max-width:33.3333333333%}.el-col-xl-8,.el-col-xl-8.is-guttered{display:block}.el-col-xl-offset-8{margin-left:33.3333333333%}.el-col-xl-pull-8{position:relative;right:33.3333333333%}.el-col-xl-push-8{left:33.3333333333%;position:relative}.el-col-xl-9{flex:0 0 37.5%;max-width:37.5%}.el-col-xl-9,.el-col-xl-9.is-guttered{display:block}.el-col-xl-offset-9{margin-left:37.5%}.el-col-xl-pull-9{position:relative;right:37.5%}.el-col-xl-push-9{left:37.5%;position:relative}.el-col-xl-10{display:block;flex:0 0 41.6666666667%;max-width:41.6666666667%}.el-col-xl-10.is-guttered{display:block}.el-col-xl-offset-10{margin-left:41.6666666667%}.el-col-xl-pull-10{position:relative;right:41.6666666667%}.el-col-xl-push-10{left:41.6666666667%;position:relative}.el-col-xl-11{display:block;flex:0 0 45.8333333333%;max-width:45.8333333333%}.el-col-xl-11.is-guttered{display:block}.el-col-xl-offset-11{margin-left:45.8333333333%}.el-col-xl-pull-11{position:relative;right:45.8333333333%}.el-col-xl-push-11{left:45.8333333333%;position:relative}.el-col-xl-12{display:block;flex:0 0 50%;max-width:50%}.el-col-xl-12.is-guttered{display:block}.el-col-xl-offset-12{margin-left:50%}.el-col-xl-pull-12{position:relative;right:50%}.el-col-xl-push-12{left:50%;position:relative}.el-col-xl-13{display:block;flex:0 0 54.1666666667%;max-width:54.1666666667%}.el-col-xl-13.is-guttered{display:block}.el-col-xl-offset-13{margin-left:54.1666666667%}.el-col-xl-pull-13{position:relative;right:54.1666666667%}.el-col-xl-push-13{left:54.1666666667%;position:relative}.el-col-xl-14{display:block;flex:0 0 58.3333333333%;max-width:58.3333333333%}.el-col-xl-14.is-guttered{display:block}.el-col-xl-offset-14{margin-left:58.3333333333%}.el-col-xl-pull-14{position:relative;right:58.3333333333%}.el-col-xl-push-14{left:58.3333333333%;position:relative}.el-col-xl-15{display:block;flex:0 0 62.5%;max-width:62.5%}.el-col-xl-15.is-guttered{display:block}.el-col-xl-offset-15{margin-left:62.5%}.el-col-xl-pull-15{position:relative;right:62.5%}.el-col-xl-push-15{left:62.5%;position:relative}.el-col-xl-16{display:block;flex:0 0 66.6666666667%;max-width:66.6666666667%}.el-col-xl-16.is-guttered{display:block}.el-col-xl-offset-16{margin-left:66.6666666667%}.el-col-xl-pull-16{position:relative;right:66.6666666667%}.el-col-xl-push-16{left:66.6666666667%;position:relative}.el-col-xl-17{display:block;flex:0 0 70.8333333333%;max-width:70.8333333333%}.el-col-xl-17.is-guttered{display:block}.el-col-xl-offset-17{margin-left:70.8333333333%}.el-col-xl-pull-17{position:relative;right:70.8333333333%}.el-col-xl-push-17{left:70.8333333333%;position:relative}.el-col-xl-18{display:block;flex:0 0 75%;max-width:75%}.el-col-xl-18.is-guttered{display:block}.el-col-xl-offset-18{margin-left:75%}.el-col-xl-pull-18{position:relative;right:75%}.el-col-xl-push-18{left:75%;position:relative}.el-col-xl-19{display:block;flex:0 0 79.1666666667%;max-width:79.1666666667%}.el-col-xl-19.is-guttered{display:block}.el-col-xl-offset-19{margin-left:79.1666666667%}.el-col-xl-pull-19{position:relative;right:79.1666666667%}.el-col-xl-push-19{left:79.1666666667%;position:relative}.el-col-xl-20{display:block;flex:0 0 83.3333333333%;max-width:83.3333333333%}.el-col-xl-20.is-guttered{display:block}.el-col-xl-offset-20{margin-left:83.3333333333%}.el-col-xl-pull-20{position:relative;right:83.3333333333%}.el-col-xl-push-20{left:83.3333333333%;position:relative}.el-col-xl-21{display:block;flex:0 0 87.5%;max-width:87.5%}.el-col-xl-21.is-guttered{display:block}.el-col-xl-offset-21{margin-left:87.5%}.el-col-xl-pull-21{position:relative;right:87.5%}.el-col-xl-push-21{left:87.5%;position:relative}.el-col-xl-22{display:block;flex:0 0 91.6666666667%;max-width:91.6666666667%}.el-col-xl-22.is-guttered{display:block}.el-col-xl-offset-22{margin-left:91.6666666667%}.el-col-xl-pull-22{position:relative;right:91.6666666667%}.el-col-xl-push-22{left:91.6666666667%;position:relative}.el-col-xl-23{display:block;flex:0 0 95.8333333333%;max-width:95.8333333333%}.el-col-xl-23.is-guttered{display:block}.el-col-xl-offset-23{margin-left:95.8333333333%}.el-col-xl-pull-23{position:relative;right:95.8333333333%}.el-col-xl-push-23{left:95.8333333333%;position:relative}.el-col-xl-24{display:block;flex:0 0 100%;max-width:100%}.el-col-xl-24.is-guttered{display:block}.el-col-xl-offset-24{margin-left:100%}.el-col-xl-pull-24{position:relative;right:100%}.el-col-xl-push-24{left:100%;position:relative}}.el-collapse{--el-collapse-border-color:var(--el-border-color-lighter);--el-collapse-header-height:48px;--el-collapse-header-bg-color:var(--el-fill-color-blank);--el-collapse-header-text-color:var(--el-text-color-primary);--el-collapse-header-font-size:13px;--el-collapse-content-bg-color:var(--el-fill-color-blank);--el-collapse-content-font-size:13px;--el-collapse-content-text-color:var(--el-text-color-primary);border-bottom:1px solid var(--el-collapse-border-color);border-top:1px solid var(--el-collapse-border-color)}.el-collapse-item.is-disabled .el-collapse-item__header{color:var(--el-text-color-disabled);cursor:not-allowed}.el-collapse-item__header{align-items:center;background-color:var(--el-collapse-header-bg-color);border:none;border-bottom:1px solid var(--el-collapse-border-color);color:var(--el-collapse-header-text-color);cursor:pointer;display:flex;font-size:var(--el-collapse-header-font-size);font-weight:500;height:var(--el-collapse-header-height);line-height:var(--el-collapse-header-height);outline:none;padding:0;transition:border-bottom-color var(--el-transition-duration);width:100%}.el-collapse-item__arrow{font-weight:300;margin:0 8px 0 auto;transition:transform var(--el-transition-duration)}.el-collapse-item__arrow.is-active{transform:rotate(90deg)}.el-collapse-item__header.focusing:focus:not(:hover){color:var(--el-color-primary)}.el-collapse-item__header.is-active{border-bottom-color:transparent}.el-collapse-item__wrap{background-color:var(--el-collapse-content-bg-color);border-bottom:1px solid var(--el-collapse-border-color);box-sizing:border-box;overflow:hidden;will-change:height}.el-collapse-item__content{color:var(--el-collapse-content-text-color);font-size:var(--el-collapse-content-font-size);line-height:1.7692307692;padding-bottom:25px}.el-collapse-item:last-child{margin-bottom:-1px}.el-color-predefine{display:flex;font-size:12px;margin-top:8px;width:280px}.el-color-predefine__colors{display:flex;flex:1;flex-wrap:wrap}.el-color-predefine__color-selector{border-radius:4px;cursor:pointer;height:20px;margin:0 0 8px 8px;width:20px}.el-color-predefine__color-selector:nth-child(10n+1){margin-left:0}.el-color-predefine__color-selector.selected{box-shadow:0 0 3px 2px var(--el-color-primary)}.el-color-predefine__color-selector>div{border-radius:3px;display:flex;height:100%}.el-color-predefine__color-selector.is-alpha{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==)}.el-color-hue-slider{background-color:red;box-sizing:border-box;float:right;height:12px;padding:0 2px;position:relative;width:280px}.el-color-hue-slider__bar{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff,#00f 67%,#f0f 83%,red);height:100%;position:relative}.el-color-hue-slider__thumb{background:#fff;border:1px solid var(--el-border-color-lighter);border-radius:1px;box-shadow:0 0 2px #0009;box-sizing:border-box;cursor:pointer;height:100%;left:0;position:absolute;top:0;width:4px;z-index:1}.el-color-hue-slider__thumb:focus-visible{outline:2px solid var(--el-color-primary);outline-offset:1px}.el-color-hue-slider.is-vertical{height:180px;padding:2px 0;width:12px}.el-color-hue-slider.is-vertical .el-color-hue-slider__bar{background:linear-gradient(180deg,red 0,#ff0 17%,#0f0 33%,#0ff,#00f 67%,#f0f 83%,red)}.el-color-hue-slider.is-vertical .el-color-hue-slider__thumb{height:4px;left:0;top:0;width:100%}.el-color-svpanel{height:180px;position:relative;width:280px}.el-color-svpanel__black,.el-color-svpanel__white{bottom:0;left:0;position:absolute;right:0;top:0}.el-color-svpanel__white{background:linear-gradient(90deg,#fff,#fff0)}.el-color-svpanel__black{background:linear-gradient(0deg,#000,#0000)}.el-color-svpanel__cursor{position:absolute}.el-color-svpanel__cursor>div{border-radius:50%;box-shadow:0 0 0 1.5px #fff,inset 0 0 1px 1px #0000004d,0 0 1px 2px #0006;cursor:head;height:4px;transform:translate(-2px,-2px);width:4px}.el-color-alpha-slider{background-image:linear-gradient(45deg,var(--el-color-picker-alpha-bg-a) 25%,var(--el-color-picker-alpha-bg-b) 25%),linear-gradient(135deg,var(--el-color-picker-alpha-bg-a) 25%,var(--el-color-picker-alpha-bg-b) 25%),linear-gradient(45deg,var(--el-color-picker-alpha-bg-b) 75%,var(--el-color-picker-alpha-bg-a) 75%),linear-gradient(135deg,var(--el-color-picker-alpha-bg-b) 75%,var(--el-color-picker-alpha-bg-a) 75%);background-position:0 0,6px 0,6px -6px,0 6px;background-size:12px 12px;box-sizing:border-box;height:12px;position:relative;width:280px}.el-color-alpha-slider__bar{background:linear-gradient(to right,rgba(255,255,255,0) 0,var(--el-bg-color) 100%);height:100%;position:relative}.el-color-alpha-slider__thumb{background:#fff;border:1px solid var(--el-border-color-lighter);border-radius:1px;box-shadow:0 0 2px #0009;box-sizing:border-box;cursor:pointer;height:100%;left:0;position:absolute;top:0;width:4px;z-index:1}.el-color-alpha-slider__thumb:focus-visible{outline:2px solid var(--el-color-primary);outline-offset:1px}.el-color-alpha-slider.is-vertical{height:180px;width:20px}.el-color-alpha-slider.is-vertical .el-color-alpha-slider__bar{background:linear-gradient(180deg,#fff0 0,#fff)}.el-color-alpha-slider.is-vertical .el-color-alpha-slider__thumb{height:4px;left:0;top:0;width:100%}.el-color-dropdown{width:300px}.el-color-dropdown__main-wrapper{margin-bottom:6px}.el-color-dropdown__main-wrapper:after{clear:both;content:"";display:table}.el-color-dropdown__btns{margin-top:12px;text-align:right}.el-color-dropdown__value{color:#000;float:left;font-size:12px;line-height:26px;width:160px}.el-color-picker{display:inline-block;line-height:normal;outline:none;position:relative}.el-color-picker:hover:not(.is-disabled,.is-focused) .el-color-picker__trigger{border-color:var(--el-border-color-hover)}.el-color-picker:focus-visible:not(.is-disabled) .el-color-picker__trigger{outline:2px solid var(--el-color-primary);outline-offset:1px}.el-color-picker.is-focused .el-color-picker__trigger{border-color:var(--el-color-primary)}.el-color-picker.is-disabled{pointer-events:none}.el-color-picker.is-disabled .el-color-picker__trigger{cursor:not-allowed}.el-color-picker--large{height:40px}.el-color-picker--large .el-color-picker__trigger{height:40px;width:40px}.el-color-picker--large .el-color-picker__mask{height:38px;width:38px}.el-color-picker--small{height:24px}.el-color-picker--small .el-color-picker__trigger{height:24px;width:24px}.el-color-picker--small .el-color-picker__mask{height:22px;width:22px}.el-color-picker--small .el-color-picker__empty,.el-color-picker--small .el-color-picker__icon{transform:scale(.8)}.el-color-picker__mask{background-color:#ffffffb3;border-radius:4px;cursor:not-allowed;height:30px;left:1px;position:absolute;top:1px;width:30px;z-index:1}.el-color-picker__trigger{align-items:center;border:1px solid var(--el-border-color);border-radius:4px;box-sizing:border-box;cursor:pointer;display:inline-flex;font-size:0;height:32px;justify-content:center;padding:4px;position:relative;width:32px}.el-color-picker__color{border:1px solid var(--el-text-color-secondary);border-radius:var(--el-border-radius-small);box-sizing:border-box;display:block;height:100%;position:relative;text-align:center;width:100%}.el-color-picker__color.is-alpha{background-image:linear-gradient(45deg,var(--el-color-picker-alpha-bg-a) 25%,var(--el-color-picker-alpha-bg-b) 25%),linear-gradient(135deg,var(--el-color-picker-alpha-bg-a) 25%,var(--el-color-picker-alpha-bg-b) 25%),linear-gradient(45deg,var(--el-color-picker-alpha-bg-b) 75%,var(--el-color-picker-alpha-bg-a) 75%),linear-gradient(135deg,var(--el-color-picker-alpha-bg-b) 75%,var(--el-color-picker-alpha-bg-a) 75%);background-position:0 0,6px 0,6px -6px,0 6px;background-size:12px 12px}.el-color-picker__color-inner{align-items:center;display:inline-flex;height:100%;justify-content:center;width:100%}.el-color-picker .el-color-picker__empty{color:var(--el-text-color-secondary);font-size:12px}.el-color-picker .el-color-picker__icon{align-items:center;color:#fff;display:inline-flex;font-size:12px;justify-content:center}.el-color-picker__panel{background-color:#fff;border-radius:var(--el-border-radius-base);box-shadow:var(--el-box-shadow-light);box-sizing:content-box;padding:6px;position:absolute;z-index:10}.el-color-picker__panel.el-popper{border:1px solid var(--el-border-color-lighter)}.el-color-picker,.el-color-picker__panel{--el-color-picker-alpha-bg-a:#ccc;--el-color-picker-alpha-bg-b:transparent}.dark .el-color-picker,.dark .el-color-picker__panel{--el-color-picker-alpha-bg-a:#333333}.el-container{box-sizing:border-box;display:flex;flex:1;flex-basis:auto;flex-direction:row;min-width:0}.el-container.is-vertical{flex-direction:column}.el-date-table{font-size:12px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.el-date-table.is-week-mode .el-date-table__row:hover .el-date-table-cell{background-color:var(--el-datepicker-inrange-bg-color)}.el-date-table.is-week-mode .el-date-table__row:hover td.available:hover{color:var(--el-datepicker-text-color)}.el-date-table.is-week-mode .el-date-table__row:hover td:first-child .el-date-table-cell{border-bottom-left-radius:15px;border-top-left-radius:15px;margin-left:5px}.el-date-table.is-week-mode .el-date-table__row:hover td:last-child .el-date-table-cell{border-bottom-right-radius:15px;border-top-right-radius:15px;margin-right:5px}.el-date-table.is-week-mode .el-date-table__row.current .el-date-table-cell{background-color:var(--el-datepicker-inrange-bg-color)}.el-date-table td{box-sizing:border-box;cursor:pointer;height:30px;padding:4px 0;position:relative;text-align:center;width:32px}.el-date-table td .el-date-table-cell{box-sizing:border-box;height:30px;padding:3px 0}.el-date-table td .el-date-table-cell .el-date-table-cell__text{border-radius:50%;display:block;height:24px;left:50%;line-height:24px;margin:0 auto;position:absolute;transform:translate(-50%);width:24px}.el-date-table td.next-month,.el-date-table td.prev-month{color:var(--el-datepicker-off-text-color)}.el-date-table td.today{position:relative}.el-date-table td.today .el-date-table-cell__text{color:var(--el-color-primary);font-weight:700}.el-date-table td.today.end-date .el-date-table-cell__text,.el-date-table td.today.start-date .el-date-table-cell__text{color:#fff}.el-date-table td.available:hover{color:var(--el-datepicker-hover-text-color)}.el-date-table td.in-range .el-date-table-cell{background-color:var(--el-datepicker-inrange-bg-color)}.el-date-table td.in-range .el-date-table-cell:hover{background-color:var(--el-datepicker-inrange-hover-bg-color)}.el-date-table td.current:not(.disabled) .el-date-table-cell__text{background-color:var(--el-datepicker-active-color);color:#fff}.el-date-table td.current:not(.disabled):focus-visible .el-date-table-cell__text{outline:2px solid var(--el-datepicker-active-color);outline-offset:1px}.el-date-table td.end-date .el-date-table-cell,.el-date-table td.start-date .el-date-table-cell{color:#fff}.el-date-table td.end-date .el-date-table-cell__text,.el-date-table td.start-date .el-date-table-cell__text{background-color:var(--el-datepicker-active-color)}.el-date-table td.start-date .el-date-table-cell{border-bottom-left-radius:15px;border-top-left-radius:15px;margin-left:5px}.el-date-table td.end-date .el-date-table-cell{border-bottom-right-radius:15px;border-top-right-radius:15px;margin-right:5px}.el-date-table td.disabled .el-date-table-cell{background-color:var(--el-fill-color-light);color:var(--el-text-color-placeholder);cursor:not-allowed;opacity:1}.el-date-table td.selected .el-date-table-cell{border-radius:15px;margin-left:5px;margin-right:5px}.el-date-table td.selected .el-date-table-cell__text{background-color:var(--el-datepicker-active-color);border-radius:15px;color:#fff}.el-date-table td.week{color:var(--el-datepicker-header-text-color);font-size:80%}.el-date-table td:focus{outline:none}.el-date-table th{border-bottom:1px solid var(--el-border-color-lighter);color:var(--el-datepicker-header-text-color);font-weight:400;padding:5px}.el-month-table{border-collapse:collapse;font-size:12px;margin:-1px}.el-month-table td{cursor:pointer;padding:8px 0;position:relative;text-align:center;width:68px}.el-month-table td .el-date-table-cell{box-sizing:border-box;height:48px;padding:6px 0}.el-month-table td.today .el-date-table-cell__text{color:var(--el-color-primary);font-weight:700}.el-month-table td.today.end-date .el-date-table-cell__text,.el-month-table td.today.start-date .el-date-table-cell__text{color:#fff}.el-month-table td.disabled .el-date-table-cell__text{background-color:var(--el-fill-color-light);color:var(--el-text-color-placeholder);cursor:not-allowed}.el-month-table td.disabled .el-date-table-cell__text:hover{color:var(--el-text-color-placeholder)}.el-month-table td .el-date-table-cell__text{border-radius:18px;color:var(--el-datepicker-text-color);display:block;height:36px;left:50%;line-height:36px;margin:0 auto;position:absolute;transform:translate(-50%);width:54px}.el-month-table td .el-date-table-cell__text:hover{color:var(--el-datepicker-hover-text-color)}.el-month-table td.in-range .el-date-table-cell{background-color:var(--el-datepicker-inrange-bg-color)}.el-month-table td.in-range .el-date-table-cell:hover{background-color:var(--el-datepicker-inrange-hover-bg-color)}.el-month-table td.end-date .el-date-table-cell,.el-month-table td.start-date .el-date-table-cell{color:#fff}.el-month-table td.end-date .el-date-table-cell__text,.el-month-table td.start-date .el-date-table-cell__text{background-color:var(--el-datepicker-active-color);color:#fff}.el-month-table td.start-date .el-date-table-cell{border-bottom-left-radius:24px;border-top-left-radius:24px;margin-left:3px}.el-month-table td.end-date .el-date-table-cell{border-bottom-right-radius:24px;border-top-right-radius:24px;margin-right:3px}.el-month-table td.current:not(.disabled) .el-date-table-cell{border-radius:24px;margin-left:3px;margin-right:3px}.el-month-table td.current:not(.disabled) .el-date-table-cell__text{background-color:var(--el-datepicker-active-color);color:#fff}.el-month-table td:focus-visible{outline:none}.el-month-table td:focus-visible .el-date-table-cell__text{outline:2px solid var(--el-datepicker-active-color);outline-offset:1px}.el-year-table{border-collapse:collapse;font-size:12px;margin:-1px}.el-year-table .el-icon{color:var(--el-datepicker-icon-color)}.el-year-table td{cursor:pointer;padding:8px 0;position:relative;text-align:center;width:68px}.el-year-table td .el-date-table-cell{box-sizing:border-box;height:48px;padding:6px 0}.el-year-table td.today .el-date-table-cell__text{color:var(--el-color-primary);font-weight:700}.el-year-table td.today.end-date .el-date-table-cell__text,.el-year-table td.today.start-date .el-date-table-cell__text{color:#fff}.el-year-table td.disabled .el-date-table-cell__text{background-color:var(--el-fill-color-light);color:var(--el-text-color-placeholder);cursor:not-allowed}.el-year-table td.disabled .el-date-table-cell__text:hover{color:var(--el-text-color-placeholder)}.el-year-table td .el-date-table-cell__text{border-radius:18px;color:var(--el-datepicker-text-color);display:block;height:36px;left:50%;line-height:36px;margin:0 auto;position:absolute;transform:translate(-50%);width:60px}.el-year-table td .el-date-table-cell__text:hover{color:var(--el-datepicker-hover-text-color)}.el-year-table td.in-range .el-date-table-cell{background-color:var(--el-datepicker-inrange-bg-color)}.el-year-table td.in-range .el-date-table-cell:hover{background-color:var(--el-datepicker-inrange-hover-bg-color)}.el-year-table td.end-date .el-date-table-cell,.el-year-table td.start-date .el-date-table-cell{color:#fff}.el-year-table td.end-date .el-date-table-cell__text,.el-year-table td.start-date .el-date-table-cell__text{background-color:var(--el-datepicker-active-color);color:#fff}.el-year-table td.start-date .el-date-table-cell{border-bottom-left-radius:24px;border-top-left-radius:24px}.el-year-table td.end-date .el-date-table-cell{border-bottom-right-radius:24px;border-top-right-radius:24px}.el-year-table td.current:not(.disabled) .el-date-table-cell__text{background-color:var(--el-datepicker-active-color);color:#fff}.el-year-table td:focus-visible{outline:none}.el-year-table td:focus-visible .el-date-table-cell__text{outline:2px solid var(--el-datepicker-active-color);outline-offset:1px}.el-time-spinner.has-seconds .el-time-spinner__wrapper{width:33.3%}.el-time-spinner__wrapper{display:inline-block;max-height:192px;overflow:auto;position:relative;vertical-align:top;width:50%}.el-time-spinner__wrapper.el-scrollbar__wrap:not(.el-scrollbar__wrap--hidden-default){padding-bottom:15px}.el-time-spinner__wrapper.is-arrow{box-sizing:border-box;overflow:hidden;text-align:center}.el-time-spinner__wrapper.is-arrow .el-time-spinner__list{transform:translateY(-32px)}.el-time-spinner__wrapper.is-arrow .el-time-spinner__item:hover:not(.is-disabled):not(.is-active){background:var(--el-fill-color-light);cursor:default}.el-time-spinner__arrow{color:var(--el-text-color-secondary);cursor:pointer;font-size:12px;height:30px;left:0;line-height:30px;position:absolute;text-align:center;width:100%;z-index:var(--el-index-normal)}.el-time-spinner__arrow:hover{color:var(--el-color-primary)}.el-time-spinner__arrow.arrow-up{top:10px}.el-time-spinner__arrow.arrow-down{bottom:10px}.el-time-spinner__input.el-input{width:70%}.el-time-spinner__input.el-input .el-input__inner,.el-time-spinner__list{padding:0;text-align:center}.el-time-spinner__list{list-style:none;margin:0}.el-time-spinner__list:after,.el-time-spinner__list:before{content:"";display:block;height:80px;width:100%}.el-time-spinner__item{color:var(--el-text-color-regular);font-size:12px;height:32px;line-height:32px}.el-time-spinner__item:hover:not(.is-disabled):not(.is-active){background:var(--el-fill-color-light);cursor:pointer}.el-time-spinner__item.is-active:not(.is-disabled){color:var(--el-text-color-primary);font-weight:700}.el-time-spinner__item.is-disabled{color:var(--el-text-color-placeholder);cursor:not-allowed}.el-picker__popper{--el-datepicker-border-color:var(--el-disabled-border-color)}.el-picker__popper.el-popper{background:var(--el-bg-color-overlay);box-shadow:var(--el-box-shadow-light)}.el-picker__popper.el-popper,.el-picker__popper.el-popper .el-popper__arrow:before{border:1px solid var(--el-datepicker-border-color)}.el-picker__popper.el-popper[data-popper-placement^=top] .el-popper__arrow:before{border-left-color:transparent;border-top-color:transparent}.el-picker__popper.el-popper[data-popper-placement^=bottom] .el-popper__arrow:before{border-bottom-color:transparent;border-right-color:transparent}.el-picker__popper.el-popper[data-popper-placement^=left] .el-popper__arrow:before{border-bottom-color:transparent;border-left-color:transparent}.el-picker__popper.el-popper[data-popper-placement^=right] .el-popper__arrow:before{border-right-color:transparent;border-top-color:transparent}.el-date-editor{--el-date-editor-width:220px;--el-date-editor-monthrange-width:300px;--el-date-editor-daterange-width:350px;--el-date-editor-datetimerange-width:400px;--el-input-text-color:var(--el-text-color-regular);--el-input-border:var(--el-border);--el-input-hover-border:var(--el-border-color-hover);--el-input-focus-border:var(--el-color-primary);--el-input-transparent-border:0 0 0 1px transparent inset;--el-input-border-color:var(--el-border-color);--el-input-border-radius:var(--el-border-radius-base);--el-input-bg-color:var(--el-fill-color-blank);--el-input-icon-color:var(--el-text-color-placeholder);--el-input-placeholder-color:var(--el-text-color-placeholder);--el-input-hover-border-color:var(--el-border-color-hover);--el-input-clear-hover-color:var(--el-text-color-secondary);--el-input-focus-border-color:var(--el-color-primary);--el-input-width:100%;position:relative;text-align:left;vertical-align:middle}.el-date-editor.el-input__wrapper{box-shadow:0 0 0 1px var(--el-input-border-color,var(--el-border-color)) inset}.el-date-editor.el-input__wrapper:hover{box-shadow:0 0 0 1px var(--el-input-hover-border-color) inset}.el-date-editor.el-input,.el-date-editor.el-input__wrapper{height:var(--el-input-height,var(--el-component-size));width:var(--el-date-editor-width)}.el-date-editor--monthrange{--el-date-editor-width:var(--el-date-editor-monthrange-width)}.el-date-editor--daterange,.el-date-editor--timerange{--el-date-editor-width:var(--el-date-editor-daterange-width)}.el-date-editor--datetimerange{--el-date-editor-width:var(--el-date-editor-datetimerange-width)}.el-date-editor--dates .el-input__wrapper{text-overflow:ellipsis;white-space:nowrap}.el-date-editor .clear-icon,.el-date-editor .close-icon{cursor:pointer}.el-date-editor .clear-icon:hover{color:var(--el-text-color-secondary)}.el-date-editor .el-range__icon{color:var(--el-text-color-placeholder);float:left;font-size:14px;height:inherit}.el-date-editor .el-range__icon svg{vertical-align:middle}.el-date-editor .el-range-input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border:none;color:var(--el-text-color-regular);display:inline-block;font-size:var(--el-font-size-base);height:30px;line-height:30px;margin:0;outline:none;padding:0;text-align:center;width:39%}.el-date-editor .el-range-input::-moz-placeholder{color:var(--el-text-color-placeholder)}.el-date-editor .el-range-input::placeholder{color:var(--el-text-color-placeholder)}.el-date-editor .el-range-separator{align-items:center;color:var(--el-text-color-primary);display:inline-flex;flex:1;font-size:14px;height:100%;justify-content:center;margin:0;overflow-wrap:break-word;padding:0 5px}.el-date-editor .el-range__close-icon{color:var(--el-text-color-placeholder);cursor:pointer;font-size:14px;height:inherit;width:unset}.el-date-editor .el-range__close-icon:hover{color:var(--el-text-color-secondary)}.el-date-editor .el-range__close-icon svg{vertical-align:middle}.el-date-editor .el-range__close-icon--hidden{opacity:0;visibility:hidden}.el-range-editor.el-input__wrapper{align-items:center;display:inline-flex;padding:0 10px;vertical-align:middle}.el-range-editor.is-active,.el-range-editor.is-active:hover{box-shadow:0 0 0 1px var(--el-input-focus-border-color) inset}.el-range-editor--large{line-height:var(--el-component-size-large)}.el-range-editor--large.el-input__wrapper{height:var(--el-component-size-large)}.el-range-editor--large .el-range-separator{font-size:14px;line-height:40px}.el-range-editor--large .el-range-input{font-size:14px;height:38px;line-height:38px}.el-range-editor--small{line-height:var(--el-component-size-small)}.el-range-editor--small.el-input__wrapper{height:var(--el-component-size-small)}.el-range-editor--small .el-range-separator{font-size:12px;line-height:24px}.el-range-editor--small .el-range-input{font-size:12px;height:22px;line-height:22px}.el-range-editor.is-disabled{background-color:var(--el-disabled-bg-color);color:var(--el-disabled-text-color);cursor:not-allowed;pointer-events:none}.el-range-editor.is-disabled,.el-range-editor.is-disabled:focus,.el-range-editor.is-disabled:hover{border-color:var(--el-disabled-border-color)}.el-range-editor.is-disabled input{background-color:var(--el-disabled-bg-color);color:var(--el-disabled-text-color);cursor:not-allowed}.el-range-editor.is-disabled input::-moz-placeholder{color:var(--el-text-color-placeholder)}.el-range-editor.is-disabled input::placeholder{color:var(--el-text-color-placeholder)}.el-range-editor.is-disabled .el-range-separator{color:var(--el-disabled-text-color)}.el-picker-panel{background:var(--el-bg-color-overlay);border-radius:var(--el-border-radius-base);color:var(--el-text-color-regular);line-height:30px}.el-picker-panel .el-time-panel{background-color:var(--el-bg-color-overlay);border:1px solid var(--el-datepicker-border-color);box-shadow:var(--el-box-shadow-light);margin:5px 0}.el-picker-panel__body-wrapper:after,.el-picker-panel__body:after{clear:both;content:"";display:table}.el-picker-panel__content{margin:15px;position:relative}.el-picker-panel__footer{background-color:var(--el-bg-color-overlay);border-top:1px solid var(--el-datepicker-inner-border-color);font-size:0;padding:4px 12px;position:relative;text-align:right}.el-picker-panel__shortcut{background-color:transparent;border:0;color:var(--el-datepicker-text-color);cursor:pointer;display:block;font-size:14px;line-height:28px;outline:none;padding-left:12px;text-align:left;width:100%}.el-picker-panel__shortcut:hover{color:var(--el-datepicker-hover-text-color)}.el-picker-panel__shortcut.active{background-color:#e6f1fe;color:var(--el-datepicker-active-color)}.el-picker-panel__btn{background-color:transparent;border:1px solid var(--el-fill-color-darker);border-radius:2px;color:var(--el-text-color-primary);cursor:pointer;font-size:12px;line-height:24px;outline:none;padding:0 20px}.el-picker-panel__btn[disabled]{color:var(--el-text-color-disabled);cursor:not-allowed}.el-picker-panel__icon-btn{background:transparent;border:0;color:var(--el-datepicker-icon-color);cursor:pointer;font-size:12px;margin-top:8px;outline:none}.el-picker-panel__icon-btn:hover{color:var(--el-datepicker-hover-text-color)}.el-picker-panel__icon-btn:focus-visible{color:var(--el-datepicker-hover-text-color)}.el-picker-panel__icon-btn.is-disabled{color:var(--el-text-color-disabled)}.el-picker-panel__icon-btn.is-disabled:hover{cursor:not-allowed}.el-picker-panel__icon-btn .el-icon{cursor:pointer;font-size:inherit}.el-picker-panel__link-btn{vertical-align:middle}.el-picker-panel [slot=sidebar],.el-picker-panel__sidebar{background-color:var(--el-bg-color-overlay);border-right:1px solid var(--el-datepicker-inner-border-color);bottom:0;box-sizing:border-box;overflow:auto;padding-top:6px;position:absolute;top:0;width:110px}.el-picker-panel [slot=sidebar]+.el-picker-panel__body,.el-picker-panel__sidebar+.el-picker-panel__body{margin-left:110px}.el-date-picker{--el-datepicker-text-color:var(--el-text-color-regular);--el-datepicker-off-text-color:var(--el-text-color-placeholder);--el-datepicker-header-text-color:var(--el-text-color-regular);--el-datepicker-icon-color:var(--el-text-color-primary);--el-datepicker-border-color:var(--el-disabled-border-color);--el-datepicker-inner-border-color:var(--el-border-color-light);--el-datepicker-inrange-bg-color:var(--el-border-color-extra-light);--el-datepicker-inrange-hover-bg-color:var(--el-border-color-extra-light);--el-datepicker-active-color:var(--el-color-primary);--el-datepicker-hover-text-color:var(--el-color-primary);width:322px}.el-date-picker.has-sidebar.has-time{width:434px}.el-date-picker.has-sidebar{width:438px}.el-date-picker.has-time .el-picker-panel__body-wrapper{position:relative}.el-date-picker .el-picker-panel__content{width:292px}.el-date-picker table{table-layout:fixed;width:100%}.el-date-picker__editor-wrap{display:table-cell;padding:0 5px;position:relative}.el-date-picker__time-header{border-bottom:1px solid var(--el-datepicker-inner-border-color);box-sizing:border-box;display:table;font-size:12px;padding:8px 5px 5px;position:relative;width:100%}.el-date-picker__header{padding:12px 12px 0;text-align:center}.el-date-picker__header--bordered{border-bottom:1px solid var(--el-border-color-lighter);margin-bottom:0;padding-bottom:12px}.el-date-picker__header--bordered+.el-picker-panel__content{margin-top:0}.el-date-picker__header-label{color:var(--el-text-color-regular);cursor:pointer;font-size:16px;font-weight:500;line-height:22px;padding:0 5px;text-align:center}.el-date-picker__header-label:hover{color:var(--el-datepicker-hover-text-color)}.el-date-picker__header-label:focus-visible{color:var(--el-datepicker-hover-text-color);outline:none}.el-date-picker__header-label.active{color:var(--el-datepicker-active-color)}.el-date-picker__prev-btn{float:left}.el-date-picker__next-btn{float:right}.el-date-picker__time-wrap{padding:10px;text-align:center}.el-date-picker__time-label{cursor:pointer;float:left;line-height:30px;margin-left:10px}.el-date-picker .el-time-panel{position:absolute}.el-date-range-picker{--el-datepicker-text-color:var(--el-text-color-regular);--el-datepicker-off-text-color:var(--el-text-color-placeholder);--el-datepicker-header-text-color:var(--el-text-color-regular);--el-datepicker-icon-color:var(--el-text-color-primary);--el-datepicker-border-color:var(--el-disabled-border-color);--el-datepicker-inner-border-color:var(--el-border-color-light);--el-datepicker-inrange-bg-color:var(--el-border-color-extra-light);--el-datepicker-inrange-hover-bg-color:var(--el-border-color-extra-light);--el-datepicker-active-color:var(--el-color-primary);--el-datepicker-hover-text-color:var(--el-color-primary);width:646px}.el-date-range-picker.has-sidebar{width:756px}.el-date-range-picker.has-time .el-picker-panel__body-wrapper{position:relative}.el-date-range-picker table{table-layout:fixed;width:100%}.el-date-range-picker .el-picker-panel__body{min-width:513px}.el-date-range-picker .el-picker-panel__content{margin:0}.el-date-range-picker__header{height:28px;position:relative;text-align:center}.el-date-range-picker__header [class*=arrow-left]{float:left}.el-date-range-picker__header [class*=arrow-right]{float:right}.el-date-range-picker__header div{font-size:16px;font-weight:500;margin-right:50px}.el-date-range-picker__content{box-sizing:border-box;float:left;margin:0;padding:16px;width:50%}.el-date-range-picker__content.is-left{border-right:1px solid var(--el-datepicker-inner-border-color)}.el-date-range-picker__content .el-date-range-picker__header div{margin-left:50px;margin-right:50px}.el-date-range-picker__editors-wrap{box-sizing:border-box;display:table-cell}.el-date-range-picker__editors-wrap.is-right{text-align:right}.el-date-range-picker__time-header{border-bottom:1px solid var(--el-datepicker-inner-border-color);box-sizing:border-box;display:table;font-size:12px;padding:8px 5px 5px;position:relative;width:100%}.el-date-range-picker__time-header>.el-icon-arrow-right{color:var(--el-datepicker-icon-color);display:table-cell;font-size:20px;vertical-align:middle}.el-date-range-picker__time-picker-wrap{display:table-cell;padding:0 5px;position:relative}.el-date-range-picker__time-picker-wrap .el-picker-panel{background:#fff;position:absolute;right:0;top:13px;z-index:1}.el-date-range-picker__time-picker-wrap .el-time-panel{position:absolute}.el-time-range-picker{overflow:visible;width:354px}.el-time-range-picker__content{padding:10px;position:relative;text-align:center;z-index:1}.el-time-range-picker__cell{box-sizing:border-box;display:inline-block;margin:0;padding:4px 7px 7px;width:50%}.el-time-range-picker__header{font-size:14px;margin-bottom:5px;text-align:center}.el-time-range-picker__body{border:1px solid var(--el-datepicker-border-color);border-radius:2px}.el-time-panel{border-radius:2px;box-sizing:content-box;left:0;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:180px;z-index:var(--el-index-top)}.el-time-panel__content{font-size:0;overflow:hidden;position:relative}.el-time-panel__content:after,.el-time-panel__content:before{box-sizing:border-box;content:"";height:32px;left:0;margin-top:-16px;padding-top:6px;position:absolute;right:0;text-align:left;top:50%;z-index:-1}.el-time-panel__content:after{left:50%;margin-left:12%;margin-right:12%}.el-time-panel__content:before{border-bottom:1px solid var(--el-border-color-light);border-top:1px solid var(--el-border-color-light);margin-left:12%;margin-right:12%;padding-left:50%}.el-time-panel__content.has-seconds:after{left:66.6666666667%}.el-time-panel__content.has-seconds:before{padding-left:33.3333333333%}.el-time-panel__footer{border-top:1px solid var(--el-timepicker-inner-border-color,var(--el-border-color-light));box-sizing:border-box;height:36px;line-height:25px;padding:4px;text-align:right}.el-time-panel__btn{background-color:transparent;border:none;color:var(--el-text-color-primary);cursor:pointer;font-size:12px;line-height:28px;margin:0 5px;outline:none;padding:0 5px}.el-time-panel__btn.confirm{color:var(--el-timepicker-active-color,var(--el-color-primary));font-weight:800}.el-descriptions{--el-descriptions-table-border:1px solid var(--el-border-color-lighter);--el-descriptions-item-bordered-label-background:var(--el-fill-color-light);box-sizing:border-box;color:var(--el-text-color-primary);font-size:var(--el-font-size-base)}.el-descriptions__header{align-items:center;display:flex;justify-content:space-between;margin-bottom:16px}.el-descriptions__title{color:var(--el-text-color-primary);font-size:16px;font-weight:700}.el-descriptions__body{background-color:var(--el-fill-color-blank)}.el-descriptions__body .el-descriptions__table{border-collapse:collapse;width:100%}.el-descriptions__body .el-descriptions__table .el-descriptions__cell{box-sizing:border-box;font-size:14px;font-weight:400;line-height:23px;text-align:left}.el-descriptions__body .el-descriptions__table .el-descriptions__cell.is-left{text-align:left}.el-descriptions__body .el-descriptions__table .el-descriptions__cell.is-center{text-align:center}.el-descriptions__body .el-descriptions__table .el-descriptions__cell.is-right{text-align:right}.el-descriptions__body .el-descriptions__table.is-bordered .el-descriptions__cell{border:var(--el-descriptions-table-border);padding:8px 11px}.el-descriptions__body .el-descriptions__table:not(.is-bordered) .el-descriptions__cell{padding-bottom:12px}.el-descriptions--large{font-size:14px}.el-descriptions--large .el-descriptions__header{margin-bottom:20px}.el-descriptions--large .el-descriptions__header .el-descriptions__title{font-size:16px}.el-descriptions--large .el-descriptions__body .el-descriptions__table .el-descriptions__cell{font-size:14px}.el-descriptions--large .el-descriptions__body .el-descriptions__table.is-bordered .el-descriptions__cell{padding:12px 15px}.el-descriptions--large .el-descriptions__body .el-descriptions__table:not(.is-bordered) .el-descriptions__cell{padding-bottom:16px}.el-descriptions--small{font-size:12px}.el-descriptions--small .el-descriptions__header{margin-bottom:12px}.el-descriptions--small .el-descriptions__header .el-descriptions__title{font-size:14px}.el-descriptions--small .el-descriptions__body .el-descriptions__table .el-descriptions__cell{font-size:12px}.el-descriptions--small .el-descriptions__body .el-descriptions__table.is-bordered .el-descriptions__cell{padding:4px 7px}.el-descriptions--small .el-descriptions__body .el-descriptions__table:not(.is-bordered) .el-descriptions__cell{padding-bottom:8px}.el-descriptions__label.el-descriptions__cell.is-bordered-label{background:var(--el-descriptions-item-bordered-label-background);color:var(--el-text-color-regular);font-weight:700}.el-descriptions__label:not(.is-bordered-label){color:var(--el-text-color-primary);margin-right:16px}.el-descriptions__label.el-descriptions__cell:not(.is-bordered-label).is-vertical-label{padding-bottom:6px}.el-descriptions__content.el-descriptions__cell.is-bordered-content{color:var(--el-text-color-primary)}.el-descriptions__content:not(.is-bordered-label){color:var(--el-text-color-regular)}.el-descriptions--large .el-descriptions__label:not(.is-bordered-label){margin-right:16px}.el-descriptions--large .el-descriptions__label.el-descriptions__cell:not(.is-bordered-label).is-vertical-label{padding-bottom:8px}.el-descriptions--small .el-descriptions__label:not(.is-bordered-label){margin-right:12px}.el-descriptions--small .el-descriptions__label.el-descriptions__cell:not(.is-bordered-label).is-vertical-label{padding-bottom:4px}:root{--el-popup-modal-bg-color:var(--el-color-black);--el-popup-modal-opacity:.5}.v-modal-enter{animation:v-modal-in var(--el-transition-duration-fast) ease}.v-modal-leave{animation:v-modal-out var(--el-transition-duration-fast) ease forwards}@keyframes v-modal-in{0%{opacity:0}}@keyframes v-modal-out{to{opacity:0}}.v-modal{background:var(--el-popup-modal-bg-color);height:100%;left:0;opacity:var(--el-popup-modal-opacity);position:fixed;top:0;width:100%}.el-popup-parent--hidden{overflow:hidden}.el-dialog{--el-dialog-width:50%;--el-dialog-margin-top:15vh;--el-dialog-bg-color:var(--el-bg-color);--el-dialog-box-shadow:var(--el-box-shadow);--el-dialog-title-font-size:var(--el-font-size-large);--el-dialog-content-font-size:14px;--el-dialog-font-line-height:var(--el-font-line-height-primary);--el-dialog-padding-primary:16px;--el-dialog-border-radius:var(--el-border-radius-base);background:var(--el-dialog-bg-color);border-radius:var(--el-dialog-border-radius);box-shadow:var(--el-dialog-box-shadow);box-sizing:border-box;margin:var(--el-dialog-margin-top,15vh) auto 50px;overflow-wrap:break-word;padding:var(--el-dialog-padding-primary);position:relative;width:var(--el-dialog-width,50%)}.el-dialog:focus{outline:none!important}.el-dialog.is-align-center{margin:auto}.el-dialog.is-fullscreen{--el-dialog-width:100%;--el-dialog-margin-top:0;border-radius:0;height:100%;margin-bottom:0;overflow:auto}.el-dialog__wrapper{bottom:0;left:0;margin:0;overflow:auto;position:fixed;right:0;top:0}.el-dialog.is-draggable .el-dialog__header{cursor:move;-webkit-user-select:none;-moz-user-select:none;user-select:none}.el-dialog__header{padding-bottom:var(--el-dialog-padding-primary)}.el-dialog__header.show-close{padding-right:calc(var(--el-dialog-padding-primary) + var(--el-message-close-size, 16px))}.el-dialog__headerbtn{background:transparent;border:none;cursor:pointer;font-size:var(--el-message-close-size,16px);height:48px;outline:none;padding:0;position:absolute;right:0;top:0;width:48px}.el-dialog__headerbtn .el-dialog__close{color:var(--el-color-info);font-size:inherit}.el-dialog__headerbtn:focus .el-dialog__close,.el-dialog__headerbtn:hover .el-dialog__close{color:var(--el-color-primary)}.el-dialog__title{color:var(--el-text-color-primary);font-size:var(--el-dialog-title-font-size);line-height:var(--el-dialog-font-line-height)}.el-dialog__body{color:var(--el-text-color-regular);font-size:var(--el-dialog-content-font-size)}.el-dialog__footer{box-sizing:border-box;padding-top:var(--el-dialog-padding-primary);text-align:right}.el-dialog--center{text-align:center}.el-dialog--center .el-dialog__body{text-align:initial}.el-dialog--center .el-dialog__footer{text-align:inherit}.el-overlay-dialog{bottom:0;left:0;overflow:auto;position:fixed;right:0;top:0}.dialog-fade-enter-active{animation:modal-fade-in var(--el-transition-duration)}.dialog-fade-enter-active .el-overlay-dialog{animation:dialog-fade-in var(--el-transition-duration)}.dialog-fade-leave-active{animation:modal-fade-out var(--el-transition-duration)}.dialog-fade-leave-active .el-overlay-dialog{animation:dialog-fade-out var(--el-transition-duration)}@keyframes dialog-fade-in{0%{opacity:0;transform:translate3d(0,-20px,0)}to{opacity:1;transform:translateZ(0)}}@keyframes dialog-fade-out{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(0,-20px,0)}}@keyframes modal-fade-in{0%{opacity:0}to{opacity:1}}@keyframes modal-fade-out{0%{opacity:1}to{opacity:0}}.el-divider{position:relative}.el-divider--horizontal{border-top:1px var(--el-border-color) var(--el-border-style);display:block;height:1px;margin:24px 0;width:100%}.el-divider--vertical{border-left:1px var(--el-border-color) var(--el-border-style);display:inline-block;height:1em;margin:0 8px;position:relative;vertical-align:middle;width:1px}.el-divider__text{background-color:var(--el-bg-color);color:var(--el-text-color-primary);font-size:14px;font-weight:500;padding:0 20px;position:absolute}.el-divider__text.is-left{left:20px;transform:translateY(-50%)}.el-divider__text.is-center{left:50%;transform:translate(-50%) translateY(-50%)}.el-divider__text.is-right{right:20px;transform:translateY(-50%)}.el-drawer{--el-drawer-bg-color:var(--el-dialog-bg-color,var(--el-bg-color));--el-drawer-padding-primary:var(--el-dialog-padding-primary,20px);background-color:var(--el-drawer-bg-color);box-shadow:var(--el-box-shadow-dark);box-sizing:border-box;display:flex;flex-direction:column;overflow:hidden;position:absolute;transition:all var(--el-transition-duration)}.el-drawer .btt,.el-drawer .ltr,.el-drawer .rtl,.el-drawer .ttb{transform:translate(0)}.el-drawer__sr-focus:focus{outline:none!important}.el-drawer__header{align-items:center;color:#72767b;display:flex;margin-bottom:32px;padding:var(--el-drawer-padding-primary);padding-bottom:0}.el-drawer__header>:first-child{flex:1}.el-drawer__title{flex:1;font-size:16px;line-height:inherit;margin:0}.el-drawer__footer{padding:var(--el-drawer-padding-primary);padding-top:10px;text-align:right}.el-drawer__close-btn{background-color:transparent;border:none;color:inherit;cursor:pointer;display:inline-flex;font-size:var(--el-font-size-extra-large);outline:none}.el-drawer__close-btn:focus i,.el-drawer__close-btn:hover i{color:var(--el-color-primary)}.el-drawer__body{flex:1;overflow:auto;padding:var(--el-drawer-padding-primary)}.el-drawer__body>*{box-sizing:border-box}.el-drawer.ltr,.el-drawer.rtl{bottom:0;height:100%;top:0}.el-drawer.btt,.el-drawer.ttb{left:0;right:0;width:100%}.el-drawer.ltr{left:0}.el-drawer.rtl{right:0}.el-drawer.ttb{top:0}.el-drawer.btt{bottom:0}.el-drawer-fade-enter-active,.el-drawer-fade-leave-active{transition:all var(--el-transition-duration)}.el-drawer-fade-enter-active,.el-drawer-fade-enter-from,.el-drawer-fade-enter-to,.el-drawer-fade-leave-active,.el-drawer-fade-leave-from,.el-drawer-fade-leave-to{overflow:hidden!important}.el-drawer-fade-enter-from,.el-drawer-fade-leave-to{background-color:transparent!important}.el-drawer-fade-enter-from .rtl,.el-drawer-fade-leave-to .rtl{transform:translate(100%)}.el-drawer-fade-enter-from .ltr,.el-drawer-fade-leave-to .ltr{transform:translate(-100%)}.el-drawer-fade-enter-from .ttb,.el-drawer-fade-leave-to .ttb{transform:translateY(-100%)}.el-drawer-fade-enter-from .btt,.el-drawer-fade-leave-to .btt{transform:translateY(100%)}.el-dropdown{--el-dropdown-menu-box-shadow:var(--el-box-shadow-light);--el-dropdown-menuItem-hover-fill:var(--el-color-primary-light-9);--el-dropdown-menuItem-hover-color:var(--el-color-primary);--el-dropdown-menu-index:10;color:var(--el-text-color-regular);display:inline-flex;font-size:var(--el-font-size-base);line-height:1;position:relative;vertical-align:top}.el-dropdown.is-disabled{color:var(--el-text-color-placeholder);cursor:not-allowed}.el-dropdown__popper{--el-dropdown-menu-box-shadow:var(--el-box-shadow-light);--el-dropdown-menuItem-hover-fill:var(--el-color-primary-light-9);--el-dropdown-menuItem-hover-color:var(--el-color-primary);--el-dropdown-menu-index:10}.el-dropdown__popper.el-popper{background:var(--el-bg-color-overlay);box-shadow:var(--el-dropdown-menu-box-shadow)}.el-dropdown__popper.el-popper,.el-dropdown__popper.el-popper .el-popper__arrow:before{border:1px solid var(--el-border-color-light)}.el-dropdown__popper.el-popper[data-popper-placement^=top] .el-popper__arrow:before{border-left-color:transparent;border-top-color:transparent}.el-dropdown__popper.el-popper[data-popper-placement^=bottom] .el-popper__arrow:before{border-bottom-color:transparent;border-right-color:transparent}.el-dropdown__popper.el-popper[data-popper-placement^=left] .el-popper__arrow:before{border-bottom-color:transparent;border-left-color:transparent}.el-dropdown__popper.el-popper[data-popper-placement^=right] .el-popper__arrow:before{border-right-color:transparent;border-top-color:transparent}.el-dropdown__popper .el-dropdown-menu{border:none}.el-dropdown__popper .el-dropdown__popper-selfdefine{outline:none}.el-dropdown__popper .el-scrollbar__bar{z-index:calc(var(--el-dropdown-menu-index) + 1)}.el-dropdown__popper .el-dropdown__list{box-sizing:border-box;list-style:none;margin:0;padding:0}.el-dropdown .el-dropdown__caret-button{align-items:center;border-left:none;display:inline-flex;justify-content:center;padding-left:0;padding-right:0;width:32px}.el-dropdown .el-dropdown__caret-button>span{display:inline-flex}.el-dropdown .el-dropdown__caret-button:before{background:var(--el-overlay-color-lighter);bottom:-1px;content:"";display:block;left:0;position:absolute;top:-1px;width:1px}.el-dropdown .el-dropdown__caret-button.el-button:before{background:var(--el-border-color);opacity:.5}.el-dropdown .el-dropdown__caret-button .el-dropdown__icon{font-size:inherit;padding-left:0}.el-dropdown .el-dropdown-selfdefine{outline:none}.el-dropdown--large .el-dropdown__caret-button{width:40px}.el-dropdown--small .el-dropdown__caret-button{width:24px}.el-dropdown-menu{background-color:var(--el-bg-color-overlay);border:none;border-radius:var(--el-border-radius-base);box-shadow:none;left:0;list-style:none;margin:0;padding:5px 0;position:relative;top:0;z-index:var(--el-dropdown-menu-index)}.el-dropdown-menu__item{align-items:center;color:var(--el-text-color-regular);cursor:pointer;display:flex;font-size:var(--el-font-size-base);line-height:22px;list-style:none;margin:0;outline:none;padding:5px 16px;white-space:nowrap}.el-dropdown-menu__item:not(.is-disabled):focus,.el-dropdown-menu__item:not(.is-disabled):hover{background-color:var(--el-dropdown-menuItem-hover-fill);color:var(--el-dropdown-menuItem-hover-color)}.el-dropdown-menu__item i{margin-right:5px}.el-dropdown-menu__item--divided{border-top:1px solid var(--el-border-color-lighter);margin:6px 0}.el-dropdown-menu__item.is-disabled{color:var(--el-text-color-disabled);cursor:not-allowed}.el-dropdown-menu--large{padding:7px 0}.el-dropdown-menu--large .el-dropdown-menu__item{font-size:14px;line-height:22px;padding:7px 20px}.el-dropdown-menu--large .el-dropdown-menu__item--divided{margin:8px 0}.el-dropdown-menu--small{padding:3px 0}.el-dropdown-menu--small .el-dropdown-menu__item{font-size:12px;line-height:20px;padding:2px 12px}.el-dropdown-menu--small .el-dropdown-menu__item--divided{margin:4px 0}.el-empty{--el-empty-padding:40px 0;--el-empty-image-width:160px;--el-empty-description-margin-top:20px;--el-empty-bottom-margin-top:20px;--el-empty-fill-color-0:var(--el-color-white);--el-empty-fill-color-1:#fcfcfd;--el-empty-fill-color-2:#f8f9fb;--el-empty-fill-color-3:#f7f8fc;--el-empty-fill-color-4:#eeeff3;--el-empty-fill-color-5:#edeef2;--el-empty-fill-color-6:#e9ebef;--el-empty-fill-color-7:#e5e7e9;--el-empty-fill-color-8:#e0e3e9;--el-empty-fill-color-9:#d5d7de;align-items:center;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;padding:var(--el-empty-padding);text-align:center}.el-empty__image{width:var(--el-empty-image-width)}.el-empty__image img{height:100%;-o-object-fit:contain;object-fit:contain;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:top;width:100%}.el-empty__image svg{color:var(--el-svg-monochrome-grey);fill:currentColor;height:100%;vertical-align:top;width:100%}.el-empty__description{margin-top:var(--el-empty-description-margin-top)}.el-empty__description p{color:var(--el-text-color-secondary);font-size:var(--el-font-size-base);margin:0}.el-empty__bottom{margin-top:var(--el-empty-bottom-margin-top)}.el-footer{--el-footer-padding:0 20px;--el-footer-height:60px;box-sizing:border-box;flex-shrink:0;height:var(--el-footer-height);padding:var(--el-footer-padding)}.el-form{--el-form-label-font-size:var(--el-font-size-base);--el-form-inline-content-width:220px}.el-form--inline .el-form-item{display:inline-flex;margin-right:32px;vertical-align:middle}.el-form--inline.el-form--label-top{display:flex;flex-wrap:wrap}.el-form--inline.el-form--label-top .el-form-item{display:block}.el-form-item{display:flex;--font-size:14px;margin-bottom:18px}.el-form-item .el-form-item{margin-bottom:0}.el-form-item .el-input__validateIcon{display:none}.el-form-item--large{--font-size:14px;--el-form-label-font-size:var(--font-size);margin-bottom:22px}.el-form-item--large .el-form-item__label{height:40px;line-height:40px}.el-form-item--large .el-form-item__content{line-height:40px}.el-form-item--large .el-form-item__error{padding-top:4px}.el-form-item--default{--font-size:14px;--el-form-label-font-size:var(--font-size);margin-bottom:18px}.el-form-item--default .el-form-item__label{height:32px;line-height:32px}.el-form-item--default .el-form-item__content{line-height:32px}.el-form-item--default .el-form-item__error{padding-top:2px}.el-form-item--small{--font-size:12px;--el-form-label-font-size:var(--font-size);margin-bottom:18px}.el-form-item--small .el-form-item__label{height:24px;line-height:24px}.el-form-item--small .el-form-item__content{line-height:24px}.el-form-item--small .el-form-item__error{padding-top:2px}.el-form-item--label-left .el-form-item__label{justify-content:flex-start}.el-form-item--label-top{display:block}.el-form-item--label-top .el-form-item__label{display:inline-block;height:auto;line-height:22px;margin-bottom:8px;text-align:left;vertical-align:middle}.el-form-item__label-wrap{display:flex}.el-form-item__label{align-items:flex-start;box-sizing:border-box;color:var(--el-text-color-regular);display:inline-flex;flex:0 0 auto;font-size:var(--el-form-label-font-size);height:32px;justify-content:flex-end;line-height:32px;padding:0 12px 0 0}.el-form-item__content{align-items:center;display:flex;flex:1;flex-wrap:wrap;font-size:var(--font-size);line-height:32px;min-width:0;position:relative}.el-form-item__content .el-input-group{vertical-align:top}.el-form-item__error{color:var(--el-color-danger);font-size:12px;left:0;line-height:1;padding-top:2px;position:absolute;top:100%}.el-form-item__error--inline{display:inline-block;left:auto;margin-left:10px;position:relative;top:auto}.el-form-item.is-required:not(.is-no-asterisk).asterisk-left>.el-form-item__label-wrap>.el-form-item__label:before,.el-form-item.is-required:not(.is-no-asterisk).asterisk-left>.el-form-item__label:before{color:var(--el-color-danger);content:"*";margin-right:4px}.el-form-item.is-required:not(.is-no-asterisk).asterisk-right>.el-form-item__label-wrap>.el-form-item__label:after,.el-form-item.is-required:not(.is-no-asterisk).asterisk-right>.el-form-item__label:after{color:var(--el-color-danger);content:"*";margin-left:4px}.el-form-item.is-error .el-input-tag__wrapper,.el-form-item.is-error .el-input-tag__wrapper.is-focus,.el-form-item.is-error .el-input-tag__wrapper:focus,.el-form-item.is-error .el-input-tag__wrapper:hover,.el-form-item.is-error .el-input__wrapper,.el-form-item.is-error .el-input__wrapper.is-focus,.el-form-item.is-error .el-input__wrapper:focus,.el-form-item.is-error .el-input__wrapper:hover,.el-form-item.is-error .el-select__wrapper,.el-form-item.is-error .el-select__wrapper.is-focus,.el-form-item.is-error .el-select__wrapper:focus,.el-form-item.is-error .el-select__wrapper:hover,.el-form-item.is-error .el-textarea__inner,.el-form-item.is-error .el-textarea__inner.is-focus,.el-form-item.is-error .el-textarea__inner:focus,.el-form-item.is-error .el-textarea__inner:hover{box-shadow:0 0 0 1px var(--el-color-danger) inset}.el-form-item.is-error .el-input-group__append .el-input__wrapper,.el-form-item.is-error .el-input-group__prepend .el-input__wrapper{box-shadow:inset 0 0 0 1px transparent}.el-form-item.is-error .el-input-group__append .el-input__validateIcon,.el-form-item.is-error .el-input-group__prepend .el-input__validateIcon{display:none}.el-form-item.is-error .el-input__validateIcon{color:var(--el-color-danger)}.el-form-item--feedback .el-input__validateIcon{display:inline-flex}.el-header{--el-header-padding:0 20px;--el-header-height:60px;box-sizing:border-box;flex-shrink:0;height:var(--el-header-height);padding:var(--el-header-padding)}.el-image-viewer__wrapper{bottom:0;left:0;position:fixed;right:0;top:0}.el-image-viewer__wrapper:focus{outline:none!important}.el-image-viewer__btn{align-items:center;border-radius:50%;box-sizing:border-box;cursor:pointer;display:flex;justify-content:center;opacity:.8;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;z-index:1}.el-image-viewer__btn .el-icon{cursor:pointer;font-size:inherit}.el-image-viewer__close{font-size:40px;height:40px;right:40px;top:40px;width:40px}.el-image-viewer__canvas{align-items:center;display:flex;height:100%;justify-content:center;position:static;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}.el-image-viewer__actions{background-color:var(--el-text-color-regular);border-color:#fff;border-radius:22px;bottom:30px;height:44px;left:50%;padding:0 23px;transform:translate(-50%);width:282px}.el-image-viewer__actions__inner{align-items:center;color:#fff;cursor:default;display:flex;font-size:23px;height:100%;justify-content:space-around;width:100%}.el-image-viewer__prev{left:40px}.el-image-viewer__next,.el-image-viewer__prev{background-color:var(--el-text-color-regular);border-color:#fff;color:#fff;font-size:24px;height:44px;top:50%;transform:translateY(-50%);width:44px}.el-image-viewer__next{right:40px;text-indent:2px}.el-image-viewer__close{background-color:var(--el-text-color-regular);border-color:#fff;color:#fff;font-size:24px;height:44px;width:44px}.el-image-viewer__mask{background:#000;height:100%;left:0;opacity:.5;position:absolute;top:0;width:100%}.viewer-fade-enter-active{animation:viewer-fade-in var(--el-transition-duration)}.viewer-fade-leave-active{animation:viewer-fade-out var(--el-transition-duration)}@keyframes viewer-fade-in{0%{opacity:0;transform:translate3d(0,-20px,0)}to{opacity:1;transform:translateZ(0)}}@keyframes viewer-fade-out{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(0,-20px,0)}}.el-image__error,.el-image__inner,.el-image__placeholder,.el-image__wrapper{height:100%;width:100%}.el-image{display:inline-block;overflow:hidden;position:relative}.el-image__inner{opacity:1;vertical-align:top}.el-image__inner.is-loading{opacity:0}.el-image__wrapper{left:0;position:absolute;top:0}.el-image__error,.el-image__placeholder{background:var(--el-fill-color-light)}.el-image__error{align-items:center;color:var(--el-text-color-placeholder);display:flex;font-size:14px;justify-content:center;vertical-align:middle}.el-image__preview{cursor:pointer}.el-textarea{--el-input-text-color:var(--el-text-color-regular);--el-input-border:var(--el-border);--el-input-hover-border:var(--el-border-color-hover);--el-input-focus-border:var(--el-color-primary);--el-input-transparent-border:0 0 0 1px transparent inset;--el-input-border-color:var(--el-border-color);--el-input-border-radius:var(--el-border-radius-base);--el-input-bg-color:var(--el-fill-color-blank);--el-input-icon-color:var(--el-text-color-placeholder);--el-input-placeholder-color:var(--el-text-color-placeholder);--el-input-hover-border-color:var(--el-border-color-hover);--el-input-clear-hover-color:var(--el-text-color-secondary);--el-input-focus-border-color:var(--el-color-primary);--el-input-width:100%;display:inline-block;font-size:var(--el-font-size-base);position:relative;vertical-align:bottom;width:100%}.el-textarea__inner{-webkit-appearance:none;background-color:var(--el-input-bg-color,var(--el-fill-color-blank));background-image:none;border:none;border-radius:var(--el-input-border-radius,var(--el-border-radius-base));box-shadow:0 0 0 1px var(--el-input-border-color,var(--el-border-color)) inset;box-sizing:border-box;color:var(--el-input-text-color,var(--el-text-color-regular));display:block;font-family:inherit;font-size:inherit;line-height:1.5;padding:5px 11px;position:relative;resize:vertical;transition:var(--el-transition-box-shadow);width:100%}.el-textarea__inner::-moz-placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-textarea__inner::placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-textarea__inner:hover{box-shadow:0 0 0 1px var(--el-input-hover-border-color) inset}.el-textarea__inner:focus{box-shadow:0 0 0 1px var(--el-input-focus-border-color) inset;outline:none}.el-textarea .el-input__count{background:var(--el-fill-color-blank);bottom:5px;color:var(--el-color-info);font-size:12px;line-height:14px;position:absolute;right:10px}.el-textarea.is-disabled .el-textarea__inner{background-color:var(--el-disabled-bg-color);box-shadow:0 0 0 1px var(--el-disabled-border-color) inset;color:var(--el-disabled-text-color);cursor:not-allowed}.el-textarea.is-disabled .el-textarea__inner::-moz-placeholder{color:var(--el-text-color-placeholder)}.el-textarea.is-disabled .el-textarea__inner::placeholder{color:var(--el-text-color-placeholder)}.el-textarea.is-exceed .el-textarea__inner{box-shadow:0 0 0 1px var(--el-color-danger) inset}.el-textarea.is-exceed .el-input__count{color:var(--el-color-danger)}.el-input{--el-input-text-color:var(--el-text-color-regular);--el-input-border:var(--el-border);--el-input-hover-border:var(--el-border-color-hover);--el-input-focus-border:var(--el-color-primary);--el-input-transparent-border:0 0 0 1px transparent inset;--el-input-border-color:var(--el-border-color);--el-input-border-radius:var(--el-border-radius-base);--el-input-bg-color:var(--el-fill-color-blank);--el-input-icon-color:var(--el-text-color-placeholder);--el-input-placeholder-color:var(--el-text-color-placeholder);--el-input-hover-border-color:var(--el-border-color-hover);--el-input-clear-hover-color:var(--el-text-color-secondary);--el-input-focus-border-color:var(--el-color-primary);--el-input-width:100%;--el-input-height:var(--el-component-size);box-sizing:border-box;display:inline-flex;font-size:var(--el-font-size-base);line-height:var(--el-input-height);position:relative;vertical-align:middle;width:var(--el-input-width)}.el-input::-webkit-scrollbar{width:6px;z-index:11}.el-input::-webkit-scrollbar:horizontal{height:6px}.el-input::-webkit-scrollbar-thumb{background:var(--el-text-color-disabled);border-radius:5px;width:6px}.el-input::-webkit-scrollbar-corner,.el-input::-webkit-scrollbar-track{background:var(--el-fill-color-blank)}.el-input::-webkit-scrollbar-track-piece{background:var(--el-fill-color-blank);width:6px}.el-input .el-input__clear,.el-input .el-input__password{color:var(--el-input-icon-color);cursor:pointer;font-size:14px}.el-input .el-input__clear:hover,.el-input .el-input__password:hover{color:var(--el-input-clear-hover-color)}.el-input .el-input__count{align-items:center;color:var(--el-color-info);display:inline-flex;font-size:12px;height:100%}.el-input .el-input__count .el-input__count-inner{background:var(--el-fill-color-blank);display:inline-block;line-height:normal;padding-left:8px}.el-input__wrapper{align-items:center;background-color:var(--el-input-bg-color,var(--el-fill-color-blank));background-image:none;border-radius:var(--el-input-border-radius,var(--el-border-radius-base));box-shadow:0 0 0 1px var(--el-input-border-color,var(--el-border-color)) inset;cursor:text;display:inline-flex;flex-grow:1;justify-content:center;padding:1px 11px;transform:translateZ(0);transition:var(--el-transition-box-shadow)}.el-input__wrapper:hover{box-shadow:0 0 0 1px var(--el-input-hover-border-color) inset}.el-input__wrapper.is-focus{box-shadow:0 0 0 1px var(--el-input-focus-border-color) inset}.el-input{--el-input-inner-height:calc(var(--el-input-height, 32px) - 2px)}.el-input__inner{-webkit-appearance:none;background:none;border:none;box-sizing:border-box;color:var(--el-input-text-color,var(--el-text-color-regular));flex-grow:1;font-size:inherit;height:var(--el-input-inner-height);line-height:var(--el-input-inner-height);outline:none;padding:0;width:100%}.el-input__inner:focus{outline:none}.el-input__inner::-moz-placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-input__inner::placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-input__inner[type=password]::-ms-reveal{display:none}.el-input__inner[type=number]{line-height:1}.el-input__prefix{color:var(--el-input-icon-color,var(--el-text-color-placeholder));display:inline-flex;flex-shrink:0;flex-wrap:nowrap;height:100%;line-height:var(--el-input-inner-height);pointer-events:none;text-align:center;transition:all var(--el-transition-duration);white-space:nowrap}.el-input__prefix-inner{align-items:center;display:inline-flex;justify-content:center;pointer-events:all}.el-input__prefix-inner>:last-child{margin-right:8px}.el-input__prefix-inner>:first-child,.el-input__prefix-inner>:first-child.el-input__icon{margin-left:0}.el-input__suffix{color:var(--el-input-icon-color,var(--el-text-color-placeholder));display:inline-flex;flex-shrink:0;flex-wrap:nowrap;height:100%;line-height:var(--el-input-inner-height);pointer-events:none;text-align:center;transition:all var(--el-transition-duration);white-space:nowrap}.el-input__suffix-inner{align-items:center;display:inline-flex;justify-content:center;pointer-events:all}.el-input__suffix-inner>:first-child{margin-left:8px}.el-input .el-input__icon{align-items:center;display:flex;height:inherit;justify-content:center;line-height:inherit;margin-left:8px;transition:all var(--el-transition-duration)}.el-input__validateIcon{pointer-events:none}.el-input.is-active .el-input__wrapper{box-shadow:0 0 0 1px var(--el-input-focus-color, ) inset}.el-input.is-disabled{cursor:not-allowed}.el-input.is-disabled .el-input__wrapper{background-color:var(--el-disabled-bg-color);box-shadow:0 0 0 1px var(--el-disabled-border-color) inset;cursor:not-allowed;pointer-events:none}.el-input.is-disabled .el-input__inner{color:var(--el-disabled-text-color);-webkit-text-fill-color:var(--el-disabled-text-color);cursor:not-allowed}.el-input.is-disabled .el-input__inner::-moz-placeholder{color:var(--el-text-color-placeholder)}.el-input.is-disabled .el-input__inner::placeholder{color:var(--el-text-color-placeholder)}.el-input.is-disabled .el-input__icon{cursor:not-allowed}.el-input.is-exceed .el-input__wrapper{box-shadow:0 0 0 1px var(--el-color-danger) inset}.el-input.is-exceed .el-input__suffix .el-input__count{color:var(--el-color-danger)}.el-input--large{--el-input-height:var(--el-component-size-large);font-size:14px}.el-input--large .el-input__wrapper{padding:1px 15px}.el-input--large{--el-input-inner-height:calc(var(--el-input-height, 40px) - 2px)}.el-input--small{--el-input-height:var(--el-component-size-small);font-size:12px}.el-input--small .el-input__wrapper{padding:1px 7px}.el-input--small{--el-input-inner-height:calc(var(--el-input-height, 24px) - 2px)}.el-input-group{align-items:stretch;display:inline-flex;width:100%}.el-input-group__append,.el-input-group__prepend{align-items:center;background-color:var(--el-fill-color-light);border-radius:var(--el-input-border-radius);color:var(--el-color-info);display:inline-flex;justify-content:center;min-height:100%;padding:0 20px;position:relative;white-space:nowrap}.el-input-group__append:focus,.el-input-group__prepend:focus{outline:none}.el-input-group__append .el-button,.el-input-group__append .el-select,.el-input-group__prepend .el-button,.el-input-group__prepend .el-select{display:inline-block;margin:0 -20px}.el-input-group__append button.el-button,.el-input-group__append button.el-button:hover,.el-input-group__append div.el-select .el-select__wrapper,.el-input-group__append div.el-select:hover .el-select__wrapper,.el-input-group__prepend button.el-button,.el-input-group__prepend button.el-button:hover,.el-input-group__prepend div.el-select .el-select__wrapper,.el-input-group__prepend div.el-select:hover .el-select__wrapper{background-color:transparent;border-color:transparent;color:inherit}.el-input-group__append .el-button,.el-input-group__append .el-input,.el-input-group__prepend .el-button,.el-input-group__prepend .el-input{font-size:inherit}.el-input-group__prepend{border-bottom-right-radius:0;border-right:0;border-top-right-radius:0;box-shadow:1px 0 0 0 var(--el-input-border-color) inset,0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset}.el-input-group__append{border-left:0;box-shadow:0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset,-1px 0 0 0 var(--el-input-border-color) inset}.el-input-group--prepend>.el-input__wrapper,.el-input-group__append{border-bottom-left-radius:0;border-top-left-radius:0}.el-input-group--prepend .el-input-group__prepend .el-select .el-select__wrapper{border-bottom-right-radius:0;border-top-right-radius:0;box-shadow:1px 0 0 0 var(--el-input-border-color) inset,0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset}.el-input-group--append>.el-input__wrapper{border-bottom-right-radius:0;border-top-right-radius:0}.el-input-group--append .el-input-group__append .el-select .el-select__wrapper{border-bottom-left-radius:0;border-top-left-radius:0;box-shadow:0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset,-1px 0 0 0 var(--el-input-border-color) inset}.el-input-hidden{display:none!important}.el-input-number{display:inline-flex;line-height:30px;position:relative;vertical-align:middle;width:150px}.el-input-number .el-input__wrapper{padding-left:42px;padding-right:42px}.el-input-number .el-input__inner{-webkit-appearance:none;-moz-appearance:textfield;line-height:1;text-align:center}.el-input-number .el-input__inner::-webkit-inner-spin-button,.el-input-number .el-input__inner::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.el-input-number__decrease,.el-input-number__increase{align-items:center;background:var(--el-fill-color-light);bottom:1px;color:var(--el-text-color-regular);cursor:pointer;display:flex;font-size:13px;height:auto;justify-content:center;position:absolute;top:1px;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:32px;z-index:1}.el-input-number__decrease:hover,.el-input-number__increase:hover{color:var(--el-color-primary)}.el-input-number__decrease:hover~.el-input:not(.is-disabled) .el-input__wrapper,.el-input-number__increase:hover~.el-input:not(.is-disabled) .el-input__wrapper{box-shadow:0 0 0 1px var(--el-input-focus-border-color,var(--el-color-primary)) inset}.el-input-number__decrease.is-disabled,.el-input-number__increase.is-disabled{color:var(--el-disabled-text-color);cursor:not-allowed}.el-input-number__increase{border-left:var(--el-border);border-radius:0 var(--el-border-radius-base) var(--el-border-radius-base) 0;right:1px}.el-input-number__decrease{border-radius:var(--el-border-radius-base) 0 0 var(--el-border-radius-base);border-right:var(--el-border);left:1px}.el-input-number.is-disabled .el-input-number__decrease,.el-input-number.is-disabled .el-input-number__increase{border-color:var(--el-disabled-border-color);color:var(--el-disabled-border-color)}.el-input-number.is-disabled .el-input-number__decrease:hover,.el-input-number.is-disabled .el-input-number__increase:hover{color:var(--el-disabled-border-color);cursor:not-allowed}.el-input-number--large{line-height:38px;width:180px}.el-input-number--large .el-input-number__decrease,.el-input-number--large .el-input-number__increase{font-size:14px;width:40px}.el-input-number--large.is-controls-right .el-input--large .el-input__wrapper{padding-right:47px}.el-input-number--large .el-input--large .el-input__wrapper{padding-left:47px;padding-right:47px}.el-input-number--small{line-height:22px;width:120px}.el-input-number--small .el-input-number__decrease,.el-input-number--small .el-input-number__increase{font-size:12px;width:24px}.el-input-number--small.is-controls-right .el-input--small .el-input__wrapper{padding-right:31px}.el-input-number--small .el-input--small .el-input__wrapper{padding-left:31px;padding-right:31px}.el-input-number--small .el-input-number__decrease [class*=el-icon],.el-input-number--small .el-input-number__increase [class*=el-icon]{transform:scale(.9)}.el-input-number.is-without-controls .el-input__wrapper{padding-left:15px;padding-right:15px}.el-input-number.is-controls-right .el-input__wrapper{padding-left:15px;padding-right:42px}.el-input-number.is-controls-right .el-input-number__decrease,.el-input-number.is-controls-right .el-input-number__increase{--el-input-number-controls-height:15px;height:var(--el-input-number-controls-height);line-height:var(--el-input-number-controls-height)}.el-input-number.is-controls-right .el-input-number__decrease [class*=el-icon],.el-input-number.is-controls-right .el-input-number__increase [class*=el-icon]{transform:scale(.8)}.el-input-number.is-controls-right .el-input-number__increase{border-bottom:var(--el-border);border-radius:0 var(--el-border-radius-base) 0 0;bottom:auto;left:auto}.el-input-number.is-controls-right .el-input-number__decrease{border-left:var(--el-border);border-radius:0 0 var(--el-border-radius-base) 0;border-right:none;left:auto;right:1px;top:auto}.el-input-number.is-controls-right[class*=large] [class*=decrease],.el-input-number.is-controls-right[class*=large] [class*=increase]{--el-input-number-controls-height:19px}.el-input-number.is-controls-right[class*=small] [class*=decrease],.el-input-number.is-controls-right[class*=small] [class*=increase]{--el-input-number-controls-height:11px}.el-input-tag{--el-input-tag-border-color-hover:var(--el-border-color-hover);--el-input-tag-placeholder-color:var(--el-text-color-placeholder);--el-input-tag-disabled-color:var(--el-disabled-text-color);--el-input-tag-disabled-border:var(--el-disabled-border-color);--el-input-tag-font-size:var(--el-font-size-base);--el-input-tag-close-hover-color:var(--el-text-color-secondary);--el-input-tag-text-color:var(--el-text-color-regular);--el-input-tag-input-focus-border-color:var(--el-color-primary);--el-input-tag-width:100%;--el-input-tag-mini-height:var(--el-component-size);--el-input-tag-gap:6px;--el-input-tag-padding:4px;--el-input-tag-inner-padding:8px;--el-input-tag-line-height:24px;align-items:center;background-color:var(--el-fill-color-blank);border-radius:var(--el-border-radius-base);box-shadow:0 0 0 1px var(--el-border-color) inset;box-sizing:border-box;cursor:pointer;display:flex;font-size:var(--el-input-tag-font-size);line-height:var(--el-input-tag-line-height);min-height:var(--el-input-tag-mini-height);padding:var(--el-input-tag-padding);transform:translateZ(0);transition:var(--el-transition-duration);width:var(--el-input-tag-width)}.el-input-tag.is-focused{box-shadow:0 0 0 1px var(--el-color-primary) inset}.el-input-tag.is-hovering:not(.is-focused){box-shadow:0 0 0 1px var(--el-border-color-hover) inset}.el-input-tag.is-disabled{background-color:var(--el-fill-color-light);cursor:not-allowed;pointer-events:none}.el-input-tag.is-disabled,.el-input-tag.is-disabled:hover{box-shadow:0 0 0 1px var(--el-input-tag-disabled-border) inset}.el-input-tag.is-disabled.is-focus{box-shadow:0 0 0 1px var(--el-input-focus-border-color) inset}.el-input-tag.is-disabled .el-input-tag__inner .el-input-tag__input,.el-input-tag.is-disabled .el-input-tag__inner .el-tag{cursor:not-allowed}.el-input-tag__prefix,.el-input-tag__suffix{align-items:center;color:var(--el-input-icon-color,var(--el-text-color-placeholder));display:flex;flex-shrink:0;padding:0 var(--el-input-tag-inner-padding)}.el-input-tag__suffix{gap:8px}.el-input-tag__inner{align-items:center;display:flex;flex:1;flex-wrap:wrap;gap:var(--el-input-tag-gap);max-width:100%;min-width:0;position:relative}.el-input-tag__inner.is-left-space{margin-left:var(--el-input-tag-inner-padding)}.el-input-tag__inner.is-right-space{margin-right:var(--el-input-tag-inner-padding)}.el-input-tag__inner.is-draggable .el-tag{cursor:move;-webkit-user-select:none;-moz-user-select:none;user-select:none}.el-input-tag__drop-indicator{background-color:var(--el-color-primary);height:var(--el-input-tag-line-height);position:absolute;top:0;width:1px}.el-input-tag__inner .el-tag{border-color:transparent;cursor:pointer;max-width:100%}.el-input-tag__inner .el-tag.el-tag--plain{border-color:var(--el-tag-border-color)}.el-input-tag__inner .el-tag .el-tag__content{line-height:normal;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.el-input-tag__input-wrapper{flex:1}.el-input-tag__input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border:none;color:var(--el-input-tag-text-color);font-family:inherit;font-size:inherit;line-height:inherit;outline:none;padding:0;width:100%}.el-input-tag__input::-moz-placeholder{color:var(--el-input-tag-placeholder-color)}.el-input-tag__input::placeholder{color:var(--el-input-tag-placeholder-color)}.el-input-tag__input-calculator{left:0;max-width:100%;overflow:hidden;position:absolute;top:0;visibility:hidden;white-space:pre}.el-input-tag--large{--el-input-tag-gap:6px;--el-input-tag-padding:8px;--el-input-tag-padding-left:8px;--el-input-tag-font-size:14px}.el-input-tag--small{--el-input-tag-gap:4px;--el-input-tag-padding:2px;--el-input-tag-padding-left:6px;--el-input-tag-font-size:12px;--el-input-tag-line-height:20px;--el-input-tag-mini-height:var(--el-component-size-small)}.el-link{--el-link-font-size:var(--el-font-size-base);--el-link-font-weight:var(--el-font-weight-primary);--el-link-text-color:var(--el-text-color-regular);--el-link-hover-text-color:var(--el-color-primary);--el-link-disabled-text-color:var(--el-text-color-placeholder);align-items:center;color:var(--el-link-text-color);cursor:pointer;display:inline-flex;flex-direction:row;font-size:var(--el-link-font-size);font-weight:var(--el-link-font-weight);justify-content:center;outline:none;padding:0;position:relative;text-decoration:none;vertical-align:middle}.el-link:hover{color:var(--el-link-hover-text-color)}.el-link.is-underline:hover:after{border-bottom:1px solid var(--el-link-hover-text-color);bottom:0;content:"";height:0;left:0;position:absolute;right:0}.el-link.is-disabled{color:var(--el-link-disabled-text-color);cursor:not-allowed}.el-link [class*=el-icon-]+span{margin-left:5px}.el-link.el-link--default:after{border-color:var(--el-link-hover-text-color)}.el-link__inner{align-items:center;display:inline-flex;justify-content:center}.el-link.el-link--primary{--el-link-text-color:var(--el-color-primary);--el-link-hover-text-color:var(--el-color-primary-light-3);--el-link-disabled-text-color:var(--el-color-primary-light-5)}.el-link.el-link--primary.is-underline:hover:after,.el-link.el-link--primary:after{border-color:var(--el-link-text-color)}.el-link.el-link--success{--el-link-text-color:var(--el-color-success);--el-link-hover-text-color:var(--el-color-success-light-3);--el-link-disabled-text-color:var(--el-color-success-light-5)}.el-link.el-link--success.is-underline:hover:after,.el-link.el-link--success:after{border-color:var(--el-link-text-color)}.el-link.el-link--warning{--el-link-text-color:var(--el-color-warning);--el-link-hover-text-color:var(--el-color-warning-light-3);--el-link-disabled-text-color:var(--el-color-warning-light-5)}.el-link.el-link--warning.is-underline:hover:after,.el-link.el-link--warning:after{border-color:var(--el-link-text-color)}.el-link.el-link--danger{--el-link-text-color:var(--el-color-danger);--el-link-hover-text-color:var(--el-color-danger-light-3);--el-link-disabled-text-color:var(--el-color-danger-light-5)}.el-link.el-link--danger.is-underline:hover:after,.el-link.el-link--danger:after{border-color:var(--el-link-text-color)}.el-link.el-link--error{--el-link-text-color:var(--el-color-error);--el-link-hover-text-color:var(--el-color-error-light-3);--el-link-disabled-text-color:var(--el-color-error-light-5)}.el-link.el-link--error.is-underline:hover:after,.el-link.el-link--error:after{border-color:var(--el-link-text-color)}.el-link.el-link--info{--el-link-text-color:var(--el-color-info);--el-link-hover-text-color:var(--el-color-info-light-3);--el-link-disabled-text-color:var(--el-color-info-light-5)}.el-link.el-link--info.is-underline:hover:after,.el-link.el-link--info:after{border-color:var(--el-link-text-color)}:root{--el-loading-spinner-size:42px;--el-loading-fullscreen-spinner-size:50px}.el-loading-parent--relative{position:relative!important}.el-loading-parent--hidden{overflow:hidden!important}.el-loading-mask{background-color:var(--el-mask-color);bottom:0;left:0;margin:0;position:absolute;right:0;top:0;transition:opacity var(--el-transition-duration);z-index:2000}.el-loading-mask.is-fullscreen{position:fixed}.el-loading-mask.is-fullscreen .el-loading-spinner{margin-top:calc((0px - var(--el-loading-fullscreen-spinner-size))/2)}.el-loading-mask.is-fullscreen .el-loading-spinner .circular{height:var(--el-loading-fullscreen-spinner-size);width:var(--el-loading-fullscreen-spinner-size)}.el-loading-spinner{margin-top:calc((0px - var(--el-loading-spinner-size))/2);position:absolute;text-align:center;top:50%;width:100%}.el-loading-spinner .el-loading-text{color:var(--el-color-primary);font-size:14px;margin:3px 0}.el-loading-spinner .circular{animation:loading-rotate 2s linear infinite;display:inline;height:var(--el-loading-spinner-size);width:var(--el-loading-spinner-size)}.el-loading-spinner .path{animation:loading-dash 1.5s ease-in-out infinite;stroke-dasharray:90,150;stroke-dashoffset:0;stroke-width:2;stroke:var(--el-color-primary);stroke-linecap:round}.el-loading-spinner i{color:var(--el-color-primary)}.el-loading-fade-enter-from,.el-loading-fade-leave-to{opacity:0}@keyframes loading-rotate{to{transform:rotate(1turn)}}@keyframes loading-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-40px}to{stroke-dasharray:90,150;stroke-dashoffset:-120px}}.el-main{--el-main-padding:20px;box-sizing:border-box;display:block;flex:1;flex-basis:auto;overflow:auto;padding:var(--el-main-padding)}:root{--el-menu-active-color:var(--el-color-primary);--el-menu-text-color:var(--el-text-color-primary);--el-menu-hover-text-color:var(--el-color-primary);--el-menu-bg-color:var(--el-fill-color-blank);--el-menu-hover-bg-color:var(--el-color-primary-light-9);--el-menu-item-height:56px;--el-menu-sub-item-height:calc(var(--el-menu-item-height) - 6px);--el-menu-horizontal-height:60px;--el-menu-horizontal-sub-item-height:36px;--el-menu-item-font-size:var(--el-font-size-base);--el-menu-item-hover-fill:var(--el-color-primary-light-9);--el-menu-border-color:var(--el-border-color);--el-menu-base-level-padding:20px;--el-menu-level-padding:20px;--el-menu-icon-width:24px}.el-menu{background-color:var(--el-menu-bg-color);border-right:1px solid var(--el-menu-border-color);box-sizing:border-box;list-style:none;margin:0;padding-left:0;position:relative}.el-menu--vertical:not(.el-menu--collapse):not(.el-menu--popup-container) .el-menu-item,.el-menu--vertical:not(.el-menu--collapse):not(.el-menu--popup-container) .el-menu-item-group__title,.el-menu--vertical:not(.el-menu--collapse):not(.el-menu--popup-container) .el-sub-menu__title{padding-left:calc(var(--el-menu-base-level-padding) + var(--el-menu-level)*var(--el-menu-level-padding));white-space:nowrap}.el-menu:not(.el-menu--collapse) .el-sub-menu__title{padding-right:calc(var(--el-menu-base-level-padding) + var(--el-menu-icon-width))}.el-menu--horizontal{border-right:none;display:flex;flex-wrap:nowrap;height:var(--el-menu-horizontal-height)}.el-menu--horizontal.el-menu--popup-container{height:unset}.el-menu--horizontal.el-menu{border-bottom:1px solid var(--el-menu-border-color)}.el-menu--horizontal>.el-menu-item{align-items:center;border-bottom:2px solid transparent;color:var(--el-menu-text-color);display:inline-flex;height:100%;justify-content:center;margin:0}.el-menu--horizontal>.el-menu-item a,.el-menu--horizontal>.el-menu-item a:hover{color:inherit}.el-menu--horizontal>.el-sub-menu:focus,.el-menu--horizontal>.el-sub-menu:hover{outline:none}.el-menu--horizontal>.el-sub-menu:hover .el-sub-menu__title{color:var(--el-menu-hover-text-color)}.el-menu--horizontal>.el-sub-menu.is-active .el-sub-menu__title{border-bottom:2px solid var(--el-menu-active-color);color:var(--el-menu-active-color)}.el-menu--horizontal>.el-sub-menu .el-sub-menu__title{border-bottom:2px solid transparent;color:var(--el-menu-text-color);height:100%}.el-menu--horizontal>.el-sub-menu .el-sub-menu__title:hover{background-color:var(--el-menu-bg-color)}.el-menu--horizontal .el-menu .el-menu-item,.el-menu--horizontal .el-menu .el-sub-menu__title{align-items:center;background-color:var(--el-menu-bg-color);color:var(--el-menu-text-color);display:flex;height:var(--el-menu-horizontal-sub-item-height);line-height:var(--el-menu-horizontal-sub-item-height);padding:0 10px}.el-menu--horizontal .el-menu .el-sub-menu__title{padding-right:40px}.el-menu--horizontal .el-menu .el-menu-item.is-active,.el-menu--horizontal .el-menu .el-sub-menu.is-active>.el-sub-menu__title{color:var(--el-menu-active-color)}.el-menu--horizontal .el-menu-item:not(.is-disabled):focus,.el-menu--horizontal .el-menu-item:not(.is-disabled):hover{background-color:var(--el-menu-hover-bg-color);color:var(--el-menu-hover-text-color);outline:none}.el-menu--horizontal>.el-menu-item.is-active{border-bottom:2px solid var(--el-menu-active-color);color:var(--el-menu-active-color)!important}.el-menu--collapse{width:calc(var(--el-menu-icon-width) + var(--el-menu-base-level-padding)*2)}.el-menu--collapse>.el-menu-item [class^=el-icon],.el-menu--collapse>.el-menu-item-group>ul>.el-sub-menu>.el-sub-menu__title [class^=el-icon],.el-menu--collapse>.el-sub-menu>.el-sub-menu__title [class^=el-icon]{margin:0;text-align:center;vertical-align:middle;width:var(--el-menu-icon-width)}.el-menu--collapse>.el-menu-item .el-sub-menu__icon-arrow,.el-menu--collapse>.el-menu-item-group>ul>.el-sub-menu>.el-sub-menu__title .el-sub-menu__icon-arrow,.el-menu--collapse>.el-sub-menu>.el-sub-menu__title .el-sub-menu__icon-arrow{display:none}.el-menu--collapse>.el-menu-item-group>ul>.el-sub-menu>.el-sub-menu__title>span,.el-menu--collapse>.el-menu-item>span,.el-menu--collapse>.el-sub-menu>.el-sub-menu__title>span{display:inline-block;height:0;overflow:hidden;visibility:hidden;width:0}.el-menu--collapse>.el-menu-item.is-active i{color:inherit}.el-menu--collapse .el-menu .el-sub-menu{min-width:200px}.el-menu--collapse .el-sub-menu.is-active .el-sub-menu__title{color:var(--el-menu-active-color)}.el-menu--popup{border:none;border-radius:var(--el-border-radius-small);box-shadow:var(--el-box-shadow-light);min-width:200px;padding:5px 0;z-index:100}.el-menu .el-icon{flex-shrink:0}.el-menu-item{align-items:center;box-sizing:border-box;color:var(--el-menu-text-color);cursor:pointer;display:flex;font-size:var(--el-menu-item-font-size);height:var(--el-menu-item-height);line-height:var(--el-menu-item-height);list-style:none;padding:0 var(--el-menu-base-level-padding);position:relative;transition:border-color var(--el-transition-duration),background-color var(--el-transition-duration),color var(--el-transition-duration);white-space:nowrap}.el-menu-item *{vertical-align:bottom}.el-menu-item i{color:inherit}.el-menu-item:focus,.el-menu-item:hover{outline:none}.el-menu-item:hover{background-color:var(--el-menu-hover-bg-color)}.el-menu-item.is-disabled{background:none!important;cursor:not-allowed;opacity:.25}.el-menu-item [class^=el-icon]{font-size:18px;margin-right:5px;text-align:center;vertical-align:middle;width:var(--el-menu-icon-width)}.el-menu-item.is-active{color:var(--el-menu-active-color)}.el-menu-item.is-active i{color:inherit}.el-menu-item .el-menu-tooltip__trigger{align-items:center;box-sizing:border-box;display:inline-flex;height:100%;left:0;padding:0 var(--el-menu-base-level-padding);position:absolute;top:0;width:100%}.el-sub-menu{list-style:none;margin:0;padding-left:0}.el-sub-menu__title{align-items:center;box-sizing:border-box;color:var(--el-menu-text-color);cursor:pointer;display:flex;font-size:var(--el-menu-item-font-size);height:var(--el-menu-item-height);line-height:var(--el-menu-item-height);list-style:none;padding:0 var(--el-menu-base-level-padding);position:relative;transition:border-color var(--el-transition-duration),background-color var(--el-transition-duration),color var(--el-transition-duration);white-space:nowrap}.el-sub-menu__title *{vertical-align:bottom}.el-sub-menu__title i{color:inherit}.el-sub-menu__title:focus,.el-sub-menu__title:hover{outline:none}.el-sub-menu__title.is-disabled{background:none!important;cursor:not-allowed;opacity:.25}.el-sub-menu__title:hover{background-color:var(--el-menu-hover-bg-color)}.el-sub-menu .el-menu{border:none}.el-sub-menu .el-menu-item{height:var(--el-menu-sub-item-height);line-height:var(--el-menu-sub-item-height)}.el-sub-menu__hide-arrow .el-sub-menu__icon-arrow{display:none!important}.el-sub-menu.is-active .el-sub-menu__title{border-bottom-color:var(--el-menu-active-color)}.el-sub-menu.is-disabled .el-menu-item,.el-sub-menu.is-disabled .el-sub-menu__title{background:none!important;cursor:not-allowed;opacity:.25}.el-sub-menu .el-icon{font-size:18px;margin-right:5px;text-align:center;vertical-align:middle;width:var(--el-menu-icon-width)}.el-sub-menu .el-icon.el-sub-menu__icon-more{margin-right:0!important}.el-sub-menu .el-sub-menu__icon-arrow{font-size:12px;margin-right:0;margin-top:-6px;position:absolute;right:var(--el-menu-base-level-padding);top:50%;transition:transform var(--el-transition-duration);width:inherit}.el-menu-item-group>ul{padding:0}.el-menu-item-group__title{color:var(--el-text-color-secondary);font-size:12px;line-height:normal;padding:7px 0 7px var(--el-menu-base-level-padding)}.horizontal-collapse-transition .el-sub-menu__title .el-sub-menu__icon-arrow{opacity:0;transition:var(--el-transition-duration-fast)}.el-message-box{--el-messagebox-title-color:var(--el-text-color-primary);--el-messagebox-width:420px;--el-messagebox-border-radius:4px;--el-messagebox-box-shadow:var(--el-box-shadow);--el-messagebox-font-size:var(--el-font-size-large);--el-messagebox-content-font-size:var(--el-font-size-base);--el-messagebox-content-color:var(--el-text-color-regular);--el-messagebox-error-font-size:12px;--el-messagebox-padding-primary:12px;--el-messagebox-font-line-height:var(--el-font-line-height-primary);backface-visibility:hidden;background-color:var(--el-bg-color);border-radius:var(--el-messagebox-border-radius);box-shadow:var(--el-messagebox-box-shadow);box-sizing:border-box;display:inline-block;font-size:var(--el-messagebox-font-size);max-width:var(--el-messagebox-width);overflow:hidden;overflow-wrap:break-word;padding:var(--el-messagebox-padding-primary);position:relative;text-align:left;vertical-align:middle;width:100%}.el-message-box:focus{outline:none!important}.el-overlay.is-message-box .el-overlay-message-box{bottom:0;left:0;overflow:auto;padding:16px;position:fixed;right:0;text-align:center;top:0}.el-overlay.is-message-box .el-overlay-message-box:after{content:"";display:inline-block;height:100%;vertical-align:middle;width:0}.el-message-box.is-draggable .el-message-box__header{cursor:move;-webkit-user-select:none;-moz-user-select:none;user-select:none}.el-message-box__header{padding-bottom:var(--el-messagebox-padding-primary)}.el-message-box__header.show-close{padding-right:calc(var(--el-messagebox-padding-primary) + var(--el-message-close-size, 16px))}.el-message-box__title{color:var(--el-messagebox-title-color);font-size:var(--el-messagebox-font-size);line-height:var(--el-messagebox-font-line-height)}.el-message-box__headerbtn{background:transparent;border:none;cursor:pointer;font-size:var(--el-message-close-size,16px);height:40px;outline:none;padding:0;position:absolute;right:0;top:0;width:40px}.el-message-box__headerbtn .el-message-box__close{color:var(--el-color-info);font-size:inherit}.el-message-box__headerbtn:focus .el-message-box__close,.el-message-box__headerbtn:hover .el-message-box__close{color:var(--el-color-primary)}.el-message-box__content{color:var(--el-messagebox-content-color);font-size:var(--el-messagebox-content-font-size)}.el-message-box__container{align-items:center;display:flex;gap:12px}.el-message-box__input{padding-top:12px}.el-message-box__input div.invalid>input,.el-message-box__input div.invalid>input:focus{border-color:var(--el-color-error)}.el-message-box__status{font-size:24px}.el-message-box__status.el-message-box-icon--success{--el-messagebox-color:var(--el-color-success);color:var(--el-messagebox-color)}.el-message-box__status.el-message-box-icon--info{--el-messagebox-color:var(--el-color-info);color:var(--el-messagebox-color)}.el-message-box__status.el-message-box-icon--warning{--el-messagebox-color:var(--el-color-warning);color:var(--el-messagebox-color)}.el-message-box__status.el-message-box-icon--error{--el-messagebox-color:var(--el-color-error);color:var(--el-messagebox-color)}.el-message-box__message{margin:0}.el-message-box__message p{line-height:var(--el-messagebox-font-line-height);margin:0}.el-message-box__errormsg{color:var(--el-color-error);font-size:var(--el-messagebox-error-font-size);line-height:var(--el-messagebox-font-line-height)}.el-message-box__btns{align-items:center;display:flex;flex-wrap:wrap;justify-content:flex-end;padding-top:var(--el-messagebox-padding-primary)}.el-message-box--center .el-message-box__title{align-items:center;display:flex;gap:6px;justify-content:center}.el-message-box--center .el-message-box__status{font-size:inherit}.el-message-box--center .el-message-box__btns,.el-message-box--center .el-message-box__container{justify-content:center}.fade-in-linear-enter-active .el-overlay-message-box{animation:msgbox-fade-in var(--el-transition-duration)}.fade-in-linear-leave-active .el-overlay-message-box{animation:msgbox-fade-in var(--el-transition-duration) reverse}@keyframes msgbox-fade-in{0%{opacity:0;transform:translate3d(0,-20px,0)}to{opacity:1;transform:translateZ(0)}}.el-message{--el-message-bg-color:var(--el-color-info-light-9);--el-message-border-color:var(--el-border-color-lighter);--el-message-padding:11px 15px;--el-message-close-size:16px;--el-message-close-icon-color:var(--el-text-color-placeholder);--el-message-close-hover-color:var(--el-text-color-secondary);align-items:center;background-color:var(--el-message-bg-color);border-color:var(--el-message-border-color);border-radius:var(--el-border-radius-base);border-style:var(--el-border-style);border-width:var(--el-border-width);box-sizing:border-box;display:flex;gap:8px;left:50%;max-width:calc(100% - 32px);padding:var(--el-message-padding);position:fixed;top:20px;transform:translate(-50%);transition:opacity var(--el-transition-duration),transform .4s,top .4s;width:-moz-fit-content;width:fit-content}.el-message.is-center{justify-content:center}.el-message.is-plain{background-color:var(--el-bg-color-overlay);border-color:var(--el-bg-color-overlay);box-shadow:var(--el-box-shadow-light)}.el-message p{margin:0}.el-message--success{--el-message-bg-color:var(--el-color-success-light-9);--el-message-border-color:var(--el-color-success-light-8);--el-message-text-color:var(--el-color-success)}.el-message--success .el-message__content{color:var(--el-message-text-color);overflow-wrap:break-word}.el-message .el-message-icon--success{color:var(--el-message-text-color)}.el-message--info{--el-message-bg-color:var(--el-color-info-light-9);--el-message-border-color:var(--el-color-info-light-8);--el-message-text-color:var(--el-color-info)}.el-message--info .el-message__content{color:var(--el-message-text-color);overflow-wrap:break-word}.el-message .el-message-icon--info{color:var(--el-message-text-color)}.el-message--warning{--el-message-bg-color:var(--el-color-warning-light-9);--el-message-border-color:var(--el-color-warning-light-8);--el-message-text-color:var(--el-color-warning)}.el-message--warning .el-message__content{color:var(--el-message-text-color);overflow-wrap:break-word}.el-message .el-message-icon--warning{color:var(--el-message-text-color)}.el-message--error{--el-message-bg-color:var(--el-color-error-light-9);--el-message-border-color:var(--el-color-error-light-8);--el-message-text-color:var(--el-color-error)}.el-message--error .el-message__content{color:var(--el-message-text-color);overflow-wrap:break-word}.el-message .el-message-icon--error{color:var(--el-message-text-color)}.el-message .el-message__badge{position:absolute;right:-8px;top:-8px}.el-message__content{font-size:14px;line-height:1;padding:0}.el-message__content:focus{outline-width:0}.el-message .el-message__closeBtn{color:var(--el-message-close-icon-color);cursor:pointer;font-size:var(--el-message-close-size)}.el-message .el-message__closeBtn:focus{outline-width:0}.el-message .el-message__closeBtn:hover{color:var(--el-message-close-hover-color)}.el-message-fade-enter-from,.el-message-fade-leave-to{opacity:0;transform:translate(-50%,-100%)}.el-notification{--el-notification-width:330px;--el-notification-padding:14px 26px 14px 13px;--el-notification-radius:8px;--el-notification-shadow:var(--el-box-shadow-light);--el-notification-border-color:var(--el-border-color-lighter);--el-notification-icon-size:24px;--el-notification-close-font-size:var(--el-message-close-size,16px);--el-notification-group-margin-left:13px;--el-notification-group-margin-right:8px;--el-notification-content-font-size:var(--el-font-size-base);--el-notification-content-color:var(--el-text-color-regular);--el-notification-title-font-size:16px;--el-notification-title-color:var(--el-text-color-primary);--el-notification-close-color:var(--el-text-color-secondary);--el-notification-close-hover-color:var(--el-text-color-regular);background-color:var(--el-bg-color-overlay);border:1px solid var(--el-notification-border-color);border-radius:var(--el-notification-radius);box-shadow:var(--el-notification-shadow);box-sizing:border-box;display:flex;overflow:hidden;overflow-wrap:break-word;padding:var(--el-notification-padding);position:fixed;transition:opacity var(--el-transition-duration),transform var(--el-transition-duration),left var(--el-transition-duration),right var(--el-transition-duration),top .4s,bottom var(--el-transition-duration);width:var(--el-notification-width);z-index:9999}.el-notification.right{right:16px}.el-notification.left{left:16px}.el-notification__group{flex:1;margin-left:var(--el-notification-group-margin-left);margin-right:var(--el-notification-group-margin-right);min-width:0}.el-notification__title{color:var(--el-notification-title-color);font-size:var(--el-notification-title-font-size);font-weight:700;line-height:var(--el-notification-icon-size);margin:0}.el-notification__content{color:var(--el-notification-content-color);font-size:var(--el-notification-content-font-size);line-height:24px;margin:6px 0 0}.el-notification__content p{margin:0}.el-notification .el-notification__icon{flex-shrink:0;font-size:var(--el-notification-icon-size);height:var(--el-notification-icon-size);width:var(--el-notification-icon-size)}.el-notification .el-notification__closeBtn{color:var(--el-notification-close-color);cursor:pointer;font-size:var(--el-notification-close-font-size);position:absolute;right:15px;top:18px}.el-notification .el-notification__closeBtn:hover{color:var(--el-notification-close-hover-color)}.el-notification .el-notification--success{--el-notification-icon-color:var(--el-color-success);color:var(--el-notification-icon-color)}.el-notification .el-notification--info{--el-notification-icon-color:var(--el-color-info);color:var(--el-notification-icon-color)}.el-notification .el-notification--warning{--el-notification-icon-color:var(--el-color-warning);color:var(--el-notification-icon-color)}.el-notification .el-notification--error{--el-notification-icon-color:var(--el-color-error);color:var(--el-notification-icon-color)}.el-notification-fade-enter-from.right{right:0;transform:translate(100%)}.el-notification-fade-enter-from.left{left:0;transform:translate(-100%)}.el-notification-fade-leave-to{opacity:0}.el-overlay{background-color:var(--el-overlay-color-lighter);bottom:0;height:100%;left:0;overflow:auto;position:fixed;right:0;top:0;z-index:2000}.el-overlay .el-overlay-root{height:0}.el-page-header.is-contentful .el-page-header__main{border-top:1px solid var(--el-border-color-light);margin-top:16px}.el-page-header__header{align-items:center;display:flex;justify-content:space-between;line-height:24px}.el-page-header__left{align-items:center;display:flex;margin-right:40px;position:relative}.el-page-header__back{align-items:center;cursor:pointer;display:flex}.el-page-header__left .el-divider--vertical{margin:0 16px}.el-page-header__icon{align-items:center;display:flex;font-size:16px;margin-right:10px}.el-page-header__icon .el-icon{font-size:inherit}.el-page-header__title{font-size:14px;font-weight:500}.el-page-header__content{color:var(--el-text-color-primary);font-size:18px}.el-page-header__breadcrumb{margin-bottom:16px}.el-pagination{--el-pagination-font-size:14px;--el-pagination-bg-color:var(--el-fill-color-blank);--el-pagination-text-color:var(--el-text-color-primary);--el-pagination-border-radius:2px;--el-pagination-button-color:var(--el-text-color-primary);--el-pagination-button-width:32px;--el-pagination-button-height:32px;--el-pagination-button-disabled-color:var(--el-text-color-placeholder);--el-pagination-button-disabled-bg-color:var(--el-fill-color-blank);--el-pagination-button-bg-color:var(--el-fill-color);--el-pagination-hover-color:var(--el-color-primary);--el-pagination-font-size-small:12px;--el-pagination-button-width-small:24px;--el-pagination-button-height-small:24px;--el-pagination-button-width-large:40px;--el-pagination-button-height-large:40px;--el-pagination-item-gap:16px;align-items:center;color:var(--el-pagination-text-color);display:flex;font-size:var(--el-pagination-font-size);font-weight:400;white-space:nowrap}.el-pagination .el-input__inner{-moz-appearance:textfield;text-align:center}.el-pagination .el-select{width:128px}.el-pagination button{align-items:center;background:var(--el-pagination-bg-color);border:none;border-radius:var(--el-pagination-border-radius);box-sizing:border-box;color:var(--el-pagination-button-color);cursor:pointer;display:flex;font-size:var(--el-pagination-font-size);height:var(--el-pagination-button-height);justify-content:center;line-height:var(--el-pagination-button-height);min-width:var(--el-pagination-button-width);padding:0 4px;text-align:center}.el-pagination button *{pointer-events:none}.el-pagination button:focus{outline:none}.el-pagination button.is-active,.el-pagination button:hover{color:var(--el-pagination-hover-color)}.el-pagination button.is-active{cursor:default;font-weight:700}.el-pagination button.is-active.is-disabled{color:var(--el-text-color-secondary);font-weight:700}.el-pagination button.is-disabled,.el-pagination button:disabled{background-color:var(--el-pagination-button-disabled-bg-color);color:var(--el-pagination-button-disabled-color);cursor:not-allowed}.el-pagination button:focus-visible{outline:1px solid var(--el-pagination-hover-color);outline-offset:-1px}.el-pagination .btn-next .el-icon,.el-pagination .btn-prev .el-icon{display:block;font-size:12px;font-weight:700;width:inherit}.el-pagination>.is-first{margin-left:0!important}.el-pagination>.is-last{margin-right:0!important}.el-pagination .btn-prev{margin-left:var(--el-pagination-item-gap)}.el-pagination__sizes,.el-pagination__total{color:var(--el-text-color-regular);font-weight:400;margin-left:var(--el-pagination-item-gap)}.el-pagination__total[disabled=true]{color:var(--el-text-color-placeholder)}.el-pagination__jump{align-items:center;color:var(--el-text-color-regular);display:flex;font-weight:400;margin-left:var(--el-pagination-item-gap)}.el-pagination__jump[disabled=true]{color:var(--el-text-color-placeholder)}.el-pagination__goto{margin-right:8px}.el-pagination__editor{box-sizing:border-box;text-align:center}.el-pagination__editor.el-input{width:56px}.el-pagination__editor .el-input__inner::-webkit-inner-spin-button,.el-pagination__editor .el-input__inner::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.el-pagination__classifier{margin-left:8px}.el-pagination__rightwrapper{align-items:center;display:flex;flex:1;justify-content:flex-end}.el-pagination.is-background .btn-next,.el-pagination.is-background .btn-prev,.el-pagination.is-background .el-pager li{background-color:var(--el-pagination-button-bg-color);margin:0 4px}.el-pagination.is-background .btn-next.is-active,.el-pagination.is-background .btn-prev.is-active,.el-pagination.is-background .el-pager li.is-active{background-color:var(--el-color-primary);color:var(--el-color-white)}.el-pagination.is-background .btn-next.is-disabled,.el-pagination.is-background .btn-next:disabled,.el-pagination.is-background .btn-prev.is-disabled,.el-pagination.is-background .btn-prev:disabled,.el-pagination.is-background .el-pager li.is-disabled,.el-pagination.is-background .el-pager li:disabled{background-color:var(--el-disabled-bg-color);color:var(--el-text-color-placeholder)}.el-pagination.is-background .btn-next.is-disabled.is-active,.el-pagination.is-background .btn-next:disabled.is-active,.el-pagination.is-background .btn-prev.is-disabled.is-active,.el-pagination.is-background .btn-prev:disabled.is-active,.el-pagination.is-background .el-pager li.is-disabled.is-active,.el-pagination.is-background .el-pager li:disabled.is-active{background-color:var(--el-fill-color-dark);color:var(--el-text-color-secondary)}.el-pagination.is-background .btn-prev{margin-left:var(--el-pagination-item-gap)}.el-pagination--small .btn-next,.el-pagination--small .btn-prev,.el-pagination--small .el-pager li{font-size:var(--el-pagination-font-size-small);height:var(--el-pagination-button-height-small);line-height:var(--el-pagination-button-height-small);min-width:var(--el-pagination-button-width-small)}.el-pagination--small button,.el-pagination--small span:not([class*=suffix]){font-size:var(--el-pagination-font-size-small)}.el-pagination--small .el-select{width:100px}.el-pagination--large .btn-next,.el-pagination--large .btn-prev,.el-pagination--large .el-pager li{height:var(--el-pagination-button-height-large);line-height:var(--el-pagination-button-height-large);min-width:var(--el-pagination-button-width-large)}.el-pagination--large .el-select .el-input{width:160px}.el-pager{font-size:0;list-style:none;margin:0;padding:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.el-pager,.el-pager li{align-items:center;display:flex}.el-pager li{background:var(--el-pagination-bg-color);border:none;border-radius:var(--el-pagination-border-radius);box-sizing:border-box;color:var(--el-pagination-button-color);cursor:pointer;font-size:var(--el-pagination-font-size);height:var(--el-pagination-button-height);justify-content:center;line-height:var(--el-pagination-button-height);min-width:var(--el-pagination-button-width);padding:0 4px;text-align:center}.el-pager li *{pointer-events:none}.el-pager li:focus{outline:none}.el-pager li.is-active,.el-pager li:hover{color:var(--el-pagination-hover-color)}.el-pager li.is-active{cursor:default;font-weight:700}.el-pager li.is-active.is-disabled{color:var(--el-text-color-secondary);font-weight:700}.el-pager li.is-disabled,.el-pager li:disabled{background-color:var(--el-pagination-button-disabled-bg-color);color:var(--el-pagination-button-disabled-color);cursor:not-allowed}.el-pager li:focus-visible{outline:1px solid var(--el-pagination-hover-color);outline-offset:-1px}.el-popconfirm__main{align-items:center;display:flex}.el-popconfirm__icon{margin-right:5px}.el-popconfirm__action{margin-top:8px;text-align:right}.el-popover{--el-popover-bg-color:var(--el-bg-color-overlay);--el-popover-font-size:var(--el-font-size-base);--el-popover-border-color:var(--el-border-color-lighter);--el-popover-padding:12px;--el-popover-padding-large:18px 20px;--el-popover-title-font-size:16px;--el-popover-title-text-color:var(--el-text-color-primary);--el-popover-border-radius:4px}.el-popover.el-popper{background:var(--el-popover-bg-color);border:1px solid var(--el-popover-border-color);border-radius:var(--el-popover-border-radius);box-shadow:var(--el-box-shadow-light);box-sizing:border-box;color:var(--el-text-color-regular);font-size:var(--el-popover-font-size);line-height:1.4;min-width:150px;overflow-wrap:break-word;padding:var(--el-popover-padding);z-index:var(--el-index-popper)}.el-popover.el-popper--plain{padding:var(--el-popover-padding-large)}.el-popover__title{color:var(--el-popover-title-text-color);font-size:var(--el-popover-title-font-size);line-height:1;margin-bottom:12px}.el-popover__reference:focus:hover,.el-popover__reference:focus:not(.focusing){outline-width:0}.el-popover.el-popper.is-dark{--el-popover-bg-color:var(--el-text-color-primary);--el-popover-border-color:var(--el-text-color-primary);--el-popover-title-text-color:var(--el-bg-color);color:var(--el-bg-color)}.el-popover.el-popper:focus,.el-popover.el-popper:focus:active{outline-width:0}.el-progress{align-items:center;display:flex;line-height:1;position:relative}.el-progress__text{color:var(--el-text-color-regular);font-size:14px;line-height:1;margin-left:5px;min-width:50px}.el-progress__text i{display:block;vertical-align:middle}.el-progress--circle,.el-progress--dashboard{display:inline-block}.el-progress--circle .el-progress__text,.el-progress--dashboard .el-progress__text{left:0;margin:0;position:absolute;text-align:center;top:50%;transform:translateY(-50%);width:100%}.el-progress--circle .el-progress__text i,.el-progress--dashboard .el-progress__text i{display:inline-block;vertical-align:middle}.el-progress--without-text .el-progress__text{display:none}.el-progress--without-text .el-progress-bar{display:block;margin-right:0;padding-right:0}.el-progress--text-inside .el-progress-bar{margin-right:0;padding-right:0}.el-progress.is-success .el-progress-bar__inner{background-color:var(--el-color-success)}.el-progress.is-success .el-progress__text{color:var(--el-color-success)}.el-progress.is-warning .el-progress-bar__inner{background-color:var(--el-color-warning)}.el-progress.is-warning .el-progress__text{color:var(--el-color-warning)}.el-progress.is-exception .el-progress-bar__inner{background-color:var(--el-color-danger)}.el-progress.is-exception .el-progress__text{color:var(--el-color-danger)}.el-progress-bar{box-sizing:border-box;flex-grow:1}.el-progress-bar__outer{background-color:var(--el-border-color-lighter);border-radius:100px;height:6px;overflow:hidden;position:relative;vertical-align:middle}.el-progress-bar__inner{background-color:var(--el-color-primary);border-radius:100px;height:100%;left:0;line-height:1;position:absolute;text-align:right;top:0;transition:width .6s ease;white-space:nowrap}.el-progress-bar__inner:after{content:"";display:inline-block;height:100%;vertical-align:middle}.el-progress-bar__inner--indeterminate{animation:indeterminate 3s infinite;transform:translateZ(0)}.el-progress-bar__inner--striped{background-image:linear-gradient(45deg,rgba(0,0,0,.1) 25%,transparent 0,transparent 50%,rgba(0,0,0,.1) 0,rgba(0,0,0,.1) 75%,transparent 0,transparent);background-size:1.25em 1.25em}.el-progress-bar__inner--striped.el-progress-bar__inner--striped-flow{animation:striped-flow 3s linear infinite}.el-progress-bar__innerText{color:#fff;display:inline-block;font-size:12px;margin:0 5px;vertical-align:middle}@keyframes progress{0%{background-position:0 0}to{background-position:32px 0}}@keyframes indeterminate{0%{left:-100%}to{left:100%}}@keyframes striped-flow{0%{background-position:-100%}to{background-position:100%}}.el-radio-button{--el-radio-button-checked-bg-color:var(--el-color-primary);--el-radio-button-checked-text-color:var(--el-color-white);--el-radio-button-checked-border-color:var(--el-color-primary);--el-radio-button-disabled-checked-fill:var(--el-border-color-extra-light)}.el-radio-button,.el-radio-button__inner{display:inline-block;outline:none;position:relative}.el-radio-button__inner{-webkit-appearance:none;background:var(--el-button-bg-color,var(--el-fill-color-blank));border:var(--el-border);border-left:0;border-radius:0;box-sizing:border-box;color:var(--el-button-text-color,var(--el-text-color-regular));cursor:pointer;font-size:var(--el-font-size-base);font-weight:var(--el-button-font-weight,var(--el-font-weight-primary));line-height:1;margin:0;padding:8px 15px;text-align:center;transition:var(--el-transition-all);-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;white-space:nowrap}.el-radio-button__inner.is-round{padding:8px 15px}.el-radio-button__inner:hover{color:var(--el-color-primary)}.el-radio-button__inner [class*=el-icon-]{line-height:.9}.el-radio-button__inner [class*=el-icon-]+span{margin-left:5px}.el-radio-button:first-child .el-radio-button__inner{border-left:var(--el-border);border-radius:var(--el-border-radius-base) 0 0 var(--el-border-radius-base);box-shadow:none!important}.el-radio-button.is-active .el-radio-button__original-radio:not(:disabled)+.el-radio-button__inner{background-color:var(--el-radio-button-checked-bg-color,var(--el-color-primary));border-color:var(--el-radio-button-checked-border-color,var(--el-color-primary));box-shadow:-1px 0 0 0 var(--el-radio-button-checked-border-color,var(--el-color-primary));color:var(--el-radio-button-checked-text-color,var(--el-color-white))}.el-radio-button__original-radio{opacity:0;outline:none;position:absolute;z-index:-1}.el-radio-button__original-radio:focus-visible+.el-radio-button__inner{border-left:var(--el-border);border-left-color:var(--el-radio-button-checked-border-color,var(--el-color-primary));border-radius:var(--el-border-radius-base);box-shadow:none;outline:2px solid var(--el-radio-button-checked-border-color);outline-offset:1px;z-index:2}.el-radio-button__original-radio:disabled+.el-radio-button__inner{background-color:var(--el-button-disabled-bg-color,var(--el-fill-color-blank));background-image:none;border-color:var(--el-button-disabled-border-color,var(--el-border-color-light));box-shadow:none;color:var(--el-disabled-text-color);cursor:not-allowed}.el-radio-button__original-radio:disabled:checked+.el-radio-button__inner{background-color:var(--el-radio-button-disabled-checked-fill)}.el-radio-button:last-child .el-radio-button__inner{border-radius:0 var(--el-border-radius-base) var(--el-border-radius-base) 0}.el-radio-button:first-child:last-child .el-radio-button__inner{border-radius:var(--el-border-radius-base)}.el-radio-button--large .el-radio-button__inner{border-radius:0;font-size:var(--el-font-size-base);padding:12px 19px}.el-radio-button--large .el-radio-button__inner.is-round{padding:12px 19px}.el-radio-button--small .el-radio-button__inner{border-radius:0;font-size:12px;padding:5px 11px}.el-radio-button--small .el-radio-button__inner.is-round{padding:5px 11px}.el-radio-group{align-items:center;display:inline-flex;flex-wrap:wrap;font-size:0}.el-radio{--el-radio-font-size:var(--el-font-size-base);--el-radio-text-color:var(--el-text-color-regular);--el-radio-font-weight:var(--el-font-weight-primary);--el-radio-input-height:14px;--el-radio-input-width:14px;--el-radio-input-border-radius:var(--el-border-radius-circle);--el-radio-input-bg-color:var(--el-fill-color-blank);--el-radio-input-border:var(--el-border);--el-radio-input-border-color:var(--el-border-color);--el-radio-input-border-color-hover:var(--el-color-primary);align-items:center;color:var(--el-radio-text-color);cursor:pointer;display:inline-flex;font-size:var(--el-font-size-base);font-weight:var(--el-radio-font-weight);height:32px;margin-right:30px;outline:none;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}.el-radio.el-radio--large{height:40px}.el-radio.el-radio--small{height:24px}.el-radio.is-bordered{border:var(--el-border);border-radius:var(--el-border-radius-base);box-sizing:border-box;padding:0 15px 0 9px}.el-radio.is-bordered.is-checked{border-color:var(--el-color-primary)}.el-radio.is-bordered.is-disabled{border-color:var(--el-border-color-lighter);cursor:not-allowed}.el-radio.is-bordered.el-radio--large{border-radius:var(--el-border-radius-base);padding:0 19px 0 11px}.el-radio.is-bordered.el-radio--large .el-radio__label{font-size:var(--el-font-size-base)}.el-radio.is-bordered.el-radio--large .el-radio__inner{height:14px;width:14px}.el-radio.is-bordered.el-radio--small{border-radius:var(--el-border-radius-base);padding:0 11px 0 7px}.el-radio.is-bordered.el-radio--small .el-radio__label{font-size:12px}.el-radio.is-bordered.el-radio--small .el-radio__inner{height:12px;width:12px}.el-radio:last-child{margin-right:0}.el-radio__input{cursor:pointer;display:inline-flex;outline:none;position:relative;vertical-align:middle;white-space:nowrap}.el-radio__input.is-disabled .el-radio__inner{border-color:var(--el-disabled-border-color)}.el-radio__input.is-disabled .el-radio__inner,.el-radio__input.is-disabled .el-radio__inner:after{background-color:var(--el-disabled-bg-color);cursor:not-allowed}.el-radio__input.is-disabled .el-radio__inner+.el-radio__label{cursor:not-allowed}.el-radio__input.is-disabled.is-checked .el-radio__inner{background-color:var(--el-disabled-bg-color);border-color:var(--el-disabled-border-color)}.el-radio__input.is-disabled.is-checked .el-radio__inner:after{background-color:var(--el-text-color-placeholder)}.el-radio__input.is-disabled+span.el-radio__label{color:var(--el-text-color-placeholder);cursor:not-allowed}.el-radio__input.is-checked .el-radio__inner{background:var(--el-color-primary);border-color:var(--el-color-primary)}.el-radio__input.is-checked .el-radio__inner:after{transform:translate(-50%,-50%) scale(1)}.el-radio__input.is-checked+.el-radio__label{color:var(--el-color-primary)}.el-radio__input.is-focus .el-radio__inner{border-color:var(--el-radio-input-border-color-hover)}.el-radio__inner{background-color:var(--el-radio-input-bg-color);border:var(--el-radio-input-border);border-radius:var(--el-radio-input-border-radius);box-sizing:border-box;cursor:pointer;display:inline-block;height:var(--el-radio-input-height);position:relative;width:var(--el-radio-input-width)}.el-radio__inner:hover{border-color:var(--el-radio-input-border-color-hover)}.el-radio__inner:after{background-color:var(--el-color-white);border-radius:var(--el-radio-input-border-radius);content:"";height:4px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%) scale(0);transition:transform .15s ease-in;width:4px}.el-radio__original{bottom:0;left:0;margin:0;opacity:0;outline:none;position:absolute;right:0;top:0;z-index:-1}.el-radio__original:focus-visible+.el-radio__inner{border-radius:var(--el-radio-input-border-radius);outline:2px solid var(--el-radio-input-border-color-hover);outline-offset:1px}.el-radio:focus:not(:focus-visible):not(.is-focus):not(:active):not(.is-disabled) .el-radio__inner{box-shadow:0 0 2px 2px var(--el-radio-input-border-color-hover)}.el-radio__label{font-size:var(--el-radio-font-size);padding-left:8px}.el-radio.el-radio--large .el-radio__label{font-size:14px}.el-radio.el-radio--large .el-radio__inner{height:14px;width:14px}.el-radio.el-radio--small .el-radio__label{font-size:12px}.el-radio.el-radio--small .el-radio__inner{height:12px;width:12px}.el-rate{--el-rate-height:20px;--el-rate-font-size:var(--el-font-size-base);--el-rate-icon-size:18px;--el-rate-icon-margin:6px;--el-rate-void-color:var(--el-border-color-darker);--el-rate-fill-color:#f7ba2a;--el-rate-disabled-void-color:var(--el-fill-color);--el-rate-text-color:var(--el-text-color-primary);align-items:center;display:inline-flex;height:32px}.el-rate:active,.el-rate:focus{outline:none}.el-rate__item{color:var(--el-rate-void-color);cursor:pointer;display:inline-block;font-size:0;line-height:normal;position:relative;vertical-align:middle}.el-rate .el-rate__icon{display:inline-block;font-size:var(--el-rate-icon-size);margin-right:var(--el-rate-icon-margin);position:relative;transition:var(--el-transition-duration)}.el-rate .el-rate__icon.hover{transform:scale(1.15)}.el-rate .el-rate__icon .path2{left:0;position:absolute;top:0}.el-rate .el-rate__icon.is-active{color:var(--el-rate-fill-color)}.el-rate__decimal{color:var(--el-rate-fill-color);display:inline-block;overflow:hidden}.el-rate__decimal,.el-rate__decimal--box{left:0;position:absolute;top:0}.el-rate__text{color:var(--el-rate-text-color);font-size:var(--el-rate-font-size);vertical-align:middle}.el-rate--large{height:40px}.el-rate--small{height:24px}.el-rate--small .el-rate__icon{font-size:14px}.el-rate.is-disabled .el-rate__item{color:var(--el-rate-disabled-void-color);cursor:auto}.el-result{--el-result-padding:40px 30px;--el-result-icon-font-size:64px;--el-result-title-font-size:20px;--el-result-title-margin-top:20px;--el-result-subtitle-margin-top:10px;--el-result-extra-margin-top:30px;align-items:center;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;padding:var(--el-result-padding);text-align:center}.el-result__icon svg{height:var(--el-result-icon-font-size);width:var(--el-result-icon-font-size)}.el-result__title{margin-top:var(--el-result-title-margin-top)}.el-result__title p{color:var(--el-text-color-primary);font-size:var(--el-result-title-font-size);line-height:1.3;margin:0}.el-result__subtitle{margin-top:var(--el-result-subtitle-margin-top)}.el-result__subtitle p{color:var(--el-text-color-regular);font-size:var(--el-font-size-base);line-height:1.3;margin:0}.el-result__extra{margin-top:var(--el-result-extra-margin-top)}.el-result .icon-primary{--el-result-color:var(--el-color-primary);color:var(--el-result-color)}.el-result .icon-success{--el-result-color:var(--el-color-success);color:var(--el-result-color)}.el-result .icon-warning{--el-result-color:var(--el-color-warning);color:var(--el-result-color)}.el-result .icon-danger{--el-result-color:var(--el-color-danger);color:var(--el-result-color)}.el-result .icon-error{--el-result-color:var(--el-color-error);color:var(--el-result-color)}.el-result .icon-info{--el-result-color:var(--el-color-info);color:var(--el-result-color)}.el-row{box-sizing:border-box;display:flex;flex-wrap:wrap;position:relative}.el-row.is-justify-center{justify-content:center}.el-row.is-justify-end{justify-content:flex-end}.el-row.is-justify-space-between{justify-content:space-between}.el-row.is-justify-space-around{justify-content:space-around}.el-row.is-justify-space-evenly{justify-content:space-evenly}.el-row.is-align-top{align-items:flex-start}.el-row.is-align-middle{align-items:center}.el-row.is-align-bottom{align-items:flex-end}.el-scrollbar{--el-scrollbar-opacity:.3;--el-scrollbar-bg-color:var(--el-text-color-secondary);--el-scrollbar-hover-opacity:.5;--el-scrollbar-hover-bg-color:var(--el-text-color-secondary);height:100%;overflow:hidden;position:relative}.el-scrollbar__wrap{height:100%;overflow:auto}.el-scrollbar__wrap--hidden-default{scrollbar-width:none}.el-scrollbar__wrap--hidden-default::-webkit-scrollbar{display:none}.el-scrollbar__thumb{background-color:var(--el-scrollbar-bg-color,var(--el-text-color-secondary));border-radius:inherit;cursor:pointer;display:block;height:0;opacity:var(--el-scrollbar-opacity,.3);position:relative;transition:var(--el-transition-duration) background-color;width:0}.el-scrollbar__thumb:hover{background-color:var(--el-scrollbar-hover-bg-color,var(--el-text-color-secondary));opacity:var(--el-scrollbar-hover-opacity,.5)}.el-scrollbar__bar{border-radius:4px;bottom:2px;position:absolute;right:2px;z-index:1}.el-scrollbar__bar.is-vertical{top:2px;width:6px}.el-scrollbar__bar.is-vertical>div{width:100%}.el-scrollbar__bar.is-horizontal{height:6px;left:2px}.el-scrollbar__bar.is-horizontal>div{height:100%}.el-scrollbar-fade-enter-active{transition:opacity .34s ease-out}.el-scrollbar-fade-leave-active{transition:opacity .12s ease-out}.el-scrollbar-fade-enter-from,.el-scrollbar-fade-leave-active{opacity:0}.el-select-dropdown{border-radius:var(--el-border-radius-base);box-sizing:border-box;z-index:calc(var(--el-index-top) + 1)}.el-select-dropdown .el-scrollbar.is-empty .el-select-dropdown__list{padding:0}.el-select-dropdown__empty,.el-select-dropdown__loading{color:var(--el-text-color-secondary);font-size:var(--el-select-font-size);margin:0;padding:10px 0;text-align:center}.el-select-dropdown__wrap{max-height:274px}.el-select-dropdown__list{box-sizing:border-box;list-style:none;margin:0;padding:6px 0}.el-select-dropdown__list.el-vl__window{margin:6px 0;padding:0}.el-select-dropdown__header{border-bottom:1px solid var(--el-border-color-light);padding:10px}.el-select-dropdown__footer{border-top:1px solid var(--el-border-color-light);padding:10px}.el-select-dropdown__item{box-sizing:border-box;color:var(--el-text-color-regular);cursor:pointer;font-size:var(--el-font-size-base);height:34px;line-height:34px;overflow:hidden;padding:0 32px 0 20px;position:relative;text-overflow:ellipsis;white-space:nowrap}.el-select-dropdown__item.is-hovering{background-color:var(--el-fill-color-light)}.el-select-dropdown__item.is-selected{color:var(--el-color-primary);font-weight:700}.el-select-dropdown__item.is-disabled{background-color:unset;color:var(--el-text-color-placeholder);cursor:not-allowed}.el-select-dropdown.is-multiple .el-select-dropdown__item.is-selected:after{background-color:var(--el-color-primary);background-position:50%;background-repeat:no-repeat;border-right:none;border-top:none;content:"";height:12px;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%;position:absolute;right:20px;top:50%;transform:translateY(-50%);width:12px}.el-select-dropdown.is-multiple .el-select-dropdown__item.is-disabled:after{background-color:var(--el-text-color-placeholder)}.el-select-group{margin:0;padding:0}.el-select-group__wrap{list-style:none;margin:0;padding:0;position:relative}.el-select-group__title{box-sizing:border-box;color:var(--el-color-info);font-size:12px;line-height:34px;overflow:hidden;padding:0 20px;text-overflow:ellipsis;white-space:nowrap}.el-select-group .el-select-dropdown__item{padding-left:20px}.el-select{--el-select-border-color-hover:var(--el-border-color-hover);--el-select-disabled-color:var(--el-disabled-text-color);--el-select-disabled-border:var(--el-disabled-border-color);--el-select-font-size:var(--el-font-size-base);--el-select-close-hover-color:var(--el-text-color-secondary);--el-select-input-color:var(--el-text-color-placeholder);--el-select-multiple-input-color:var(--el-text-color-regular);--el-select-input-focus-border-color:var(--el-color-primary);--el-select-input-font-size:14px;--el-select-width:100%;display:inline-block;position:relative;vertical-align:middle;width:var(--el-select-width)}.el-select__wrapper{align-items:center;background-color:var(--el-fill-color-blank);border-radius:var(--el-border-radius-base);box-shadow:0 0 0 1px var(--el-border-color) inset;box-sizing:border-box;cursor:pointer;display:flex;font-size:14px;gap:6px;line-height:24px;min-height:32px;padding:4px 12px;position:relative;text-align:left;transform:translateZ(0);transition:var(--el-transition-duration)}.el-select__wrapper.is-filterable{cursor:text}.el-select__wrapper.is-focused{box-shadow:0 0 0 1px var(--el-color-primary) inset}.el-select__wrapper.is-hovering:not(.is-focused){box-shadow:0 0 0 1px var(--el-border-color-hover) inset}.el-select__wrapper.is-disabled{background-color:var(--el-fill-color-light);color:var(--el-text-color-placeholder);cursor:not-allowed;pointer-events:none}.el-select__wrapper.is-disabled,.el-select__wrapper.is-disabled:hover{box-shadow:0 0 0 1px var(--el-select-disabled-border) inset}.el-select__wrapper.is-disabled.is-focus{box-shadow:0 0 0 1px var(--el-input-focus-border-color) inset}.el-select__wrapper.is-disabled .el-select__selected-item{color:var(--el-select-disabled-color)}.el-select__wrapper.is-disabled .el-select__caret,.el-select__wrapper.is-disabled .el-tag{cursor:not-allowed}.el-select__prefix,.el-select__suffix{align-items:center;color:var(--el-input-icon-color,var(--el-text-color-placeholder));display:flex;flex-shrink:0;gap:6px}.el-select__caret{color:var(--el-select-input-color);cursor:pointer;font-size:var(--el-select-input-font-size);transform:rotate(0);transition:var(--el-transition-duration)}.el-select__caret.is-reverse{transform:rotate(180deg)}.el-select__selection{align-items:center;display:flex;flex:1;flex-wrap:wrap;gap:6px;min-width:0;position:relative}.el-select__selection.is-near{margin-left:-8px}.el-select__selection .el-tag{border-color:transparent;cursor:pointer}.el-select__selection .el-tag.el-tag--plain{border-color:var(--el-tag-border-color)}.el-select__selection .el-tag .el-tag__content{min-width:0}.el-select__selected-item{display:flex;flex-wrap:wrap;-webkit-user-select:none;-moz-user-select:none;user-select:none}.el-select__tags-text{line-height:normal}.el-select__placeholder,.el-select__tags-text{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.el-select__placeholder{color:var(--el-input-text-color,var(--el-text-color-regular));position:absolute;top:50%;transform:translateY(-50%);width:100%;z-index:-1}.el-select__placeholder.is-transparent{color:var(--el-text-color-placeholder);-webkit-user-select:none;-moz-user-select:none;user-select:none}.el-select__popper.el-popper{background:var(--el-bg-color-overlay);box-shadow:var(--el-box-shadow-light)}.el-select__popper.el-popper,.el-select__popper.el-popper .el-popper__arrow:before{border:1px solid var(--el-border-color-light)}.el-select__popper.el-popper[data-popper-placement^=top] .el-popper__arrow:before{border-left-color:transparent;border-top-color:transparent}.el-select__popper.el-popper[data-popper-placement^=bottom] .el-popper__arrow:before{border-bottom-color:transparent;border-right-color:transparent}.el-select__popper.el-popper[data-popper-placement^=left] .el-popper__arrow:before{border-bottom-color:transparent;border-left-color:transparent}.el-select__popper.el-popper[data-popper-placement^=right] .el-popper__arrow:before{border-right-color:transparent;border-top-color:transparent}.el-select__input-wrapper{flex:1}.el-select__input-wrapper.is-hidden{opacity:0;position:absolute;z-index:-1}.el-select__input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border:none;color:var(--el-select-multiple-input-color);font-family:inherit;font-size:inherit;height:24px;outline:none;padding:0;width:100%}.el-select__input.is-disabled{cursor:not-allowed}.el-select__input-calculator{left:0;max-width:100%;overflow:hidden;position:absolute;top:0;visibility:hidden;white-space:pre}.el-select--large .el-select__wrapper{font-size:14px;gap:6px;line-height:24px;min-height:40px;padding:8px 16px}.el-select--large .el-select__selection{gap:6px}.el-select--large .el-select__selection.is-near{margin-left:-8px}.el-select--large .el-select__prefix,.el-select--large .el-select__suffix{gap:6px}.el-select--large .el-select__input{height:24px}.el-select--small .el-select__wrapper{font-size:12px;gap:4px;line-height:20px;min-height:24px;padding:2px 8px}.el-select--small .el-select__selection{gap:4px}.el-select--small .el-select__selection.is-near{margin-left:-6px}.el-select--small .el-select__prefix,.el-select--small .el-select__suffix{gap:4px}.el-select--small .el-select__input{height:20px}.el-skeleton{--el-skeleton-circle-size:var(--el-avatar-size)}.el-skeleton__item{background:var(--el-skeleton-color);border-radius:var(--el-border-radius-base);display:inline-block;height:16px;width:100%}.el-skeleton__circle{border-radius:50%;height:var(--el-skeleton-circle-size);line-height:var(--el-skeleton-circle-size);width:var(--el-skeleton-circle-size)}.el-skeleton__button{border-radius:4px;height:40px;width:64px}.el-skeleton__p{width:100%}.el-skeleton__p.is-last{width:61%}.el-skeleton__p.is-first{width:33%}.el-skeleton__text{height:var(--el-font-size-small);width:100%}.el-skeleton__caption{height:var(--el-font-size-extra-small)}.el-skeleton__h1{height:var(--el-font-size-extra-large)}.el-skeleton__h3{height:var(--el-font-size-large)}.el-skeleton__h5{height:var(--el-font-size-medium)}.el-skeleton__image{align-items:center;border-radius:0;display:flex;justify-content:center;width:unset}.el-skeleton__image svg{color:var(--el-svg-monochrome-grey);fill:currentColor;height:22%;width:22%}.el-skeleton{--el-skeleton-color:var(--el-fill-color);--el-skeleton-to-color:var(--el-fill-color-darker)}@keyframes el-skeleton-loading{0%{background-position:100% 50%}to{background-position:0 50%}}.el-skeleton{width:100%}.el-skeleton__first-line,.el-skeleton__paragraph{background:var(--el-skeleton-color);height:16px;margin-top:16px}.el-skeleton.is-animated .el-skeleton__item{animation:el-skeleton-loading 1.4s ease infinite;background:linear-gradient(90deg,var(--el-skeleton-color) 25%,var(--el-skeleton-to-color) 37%,var(--el-skeleton-color) 63%);background-size:400% 100%}.el-slider{--el-slider-main-bg-color:var(--el-color-primary);--el-slider-runway-bg-color:var(--el-border-color-light);--el-slider-stop-bg-color:var(--el-color-white);--el-slider-disabled-color:var(--el-text-color-placeholder);--el-slider-border-radius:3px;--el-slider-height:6px;--el-slider-button-size:20px;--el-slider-button-wrapper-size:36px;--el-slider-button-wrapper-offset:-15px;align-items:center;display:flex;height:32px;width:100%}.el-slider__runway{background-color:var(--el-slider-runway-bg-color);border-radius:var(--el-slider-border-radius);cursor:pointer;flex:1;height:var(--el-slider-height);position:relative}.el-slider__runway.show-input{margin-right:30px;width:auto}.el-slider__runway.is-disabled{cursor:default}.el-slider__runway.is-disabled .el-slider__bar{background-color:var(--el-slider-disabled-color)}.el-slider__runway.is-disabled .el-slider__button{border-color:var(--el-slider-disabled-color)}.el-slider__runway.is-disabled .el-slider__button-wrapper.dragging,.el-slider__runway.is-disabled .el-slider__button-wrapper.hover,.el-slider__runway.is-disabled .el-slider__button-wrapper:hover{cursor:not-allowed}.el-slider__runway.is-disabled .el-slider__button.dragging,.el-slider__runway.is-disabled .el-slider__button.hover,.el-slider__runway.is-disabled .el-slider__button:hover{transform:scale(1)}.el-slider__runway.is-disabled .el-slider__button.dragging,.el-slider__runway.is-disabled .el-slider__button.hover,.el-slider__runway.is-disabled .el-slider__button:hover{cursor:not-allowed}.el-slider__input{flex-shrink:0;width:130px}.el-slider__bar{background-color:var(--el-slider-main-bg-color);border-bottom-left-radius:var(--el-slider-border-radius);border-top-left-radius:var(--el-slider-border-radius);height:var(--el-slider-height);position:absolute}.el-slider__button-wrapper{background-color:transparent;height:var(--el-slider-button-wrapper-size);line-height:normal;outline:none;position:absolute;text-align:center;top:var(--el-slider-button-wrapper-offset);transform:translate(-50%);-webkit-user-select:none;-moz-user-select:none;user-select:none;width:var(--el-slider-button-wrapper-size);z-index:1}.el-slider__button-wrapper:after{content:"";display:inline-block;height:100%;vertical-align:middle}.el-slider__button-wrapper.hover,.el-slider__button-wrapper:hover{cursor:grab}.el-slider__button-wrapper.dragging{cursor:grabbing}.el-slider__button{background-color:var(--el-color-white);border:2px solid var(--el-slider-main-bg-color);border-radius:50%;box-sizing:border-box;display:inline-block;height:var(--el-slider-button-size);transition:var(--el-transition-duration-fast);-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;width:var(--el-slider-button-size)}.el-slider__button.dragging,.el-slider__button.hover,.el-slider__button:hover{transform:scale(1.2)}.el-slider__button.hover,.el-slider__button:hover{cursor:grab}.el-slider__button.dragging{cursor:grabbing}.el-slider__stop{background-color:var(--el-slider-stop-bg-color);border-radius:var(--el-border-radius-circle);height:var(--el-slider-height);position:absolute;transform:translate(-50%);width:var(--el-slider-height)}.el-slider__marks{height:100%;left:12px;top:0;width:18px}.el-slider__marks-text{color:var(--el-color-info);font-size:14px;margin-top:15px;position:absolute;transform:translate(-50%);white-space:pre}.el-slider.is-vertical{display:inline-flex;flex:0;height:100%;position:relative;width:auto}.el-slider.is-vertical .el-slider__runway{height:100%;margin:0 16px;width:var(--el-slider-height)}.el-slider.is-vertical .el-slider__bar{border-radius:0 0 3px 3px;height:auto;width:var(--el-slider-height)}.el-slider.is-vertical .el-slider__button-wrapper{left:var(--el-slider-button-wrapper-offset);top:auto;transform:translateY(50%)}.el-slider.is-vertical .el-slider__stop{transform:translateY(50%)}.el-slider.is-vertical .el-slider__marks-text{left:15px;margin-top:0;transform:translateY(50%)}.el-slider--large{height:40px}.el-slider--small{height:24px}.el-space{display:inline-flex;vertical-align:top}.el-space__item{display:flex;flex-wrap:wrap}.el-space__item>*{flex:1}.el-space--vertical{flex-direction:column}.el-time-spinner{white-space:nowrap;width:100%}.el-spinner{display:inline-block;vertical-align:middle}.el-spinner-inner{animation:rotate 2s linear infinite;height:50px;width:50px}.el-spinner-inner .path{stroke:var(--el-border-color-lighter);stroke-linecap:round;animation:dash 1.5s ease-in-out infinite}@keyframes rotate{to{transform:rotate(1turn)}}@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}to{stroke-dasharray:90,150;stroke-dashoffset:-124}}.el-step{flex-shrink:1;position:relative}.el-step:last-of-type .el-step__line{display:none}.el-step:last-of-type.is-flex{flex-basis:auto!important;flex-grow:0;flex-shrink:0}.el-step:last-of-type .el-step__description,.el-step:last-of-type .el-step__main{padding-right:0}.el-step__head{position:relative;width:100%}.el-step__head.is-process{border-color:var(--el-text-color-primary);color:var(--el-text-color-primary)}.el-step__head.is-wait{border-color:var(--el-text-color-placeholder);color:var(--el-text-color-placeholder)}.el-step__head.is-success{border-color:var(--el-color-success);color:var(--el-color-success)}.el-step__head.is-error{border-color:var(--el-color-danger);color:var(--el-color-danger)}.el-step__head.is-finish{border-color:var(--el-color-primary);color:var(--el-color-primary)}.el-step__icon{align-items:center;background:var(--el-bg-color);box-sizing:border-box;display:inline-flex;font-size:14px;height:24px;justify-content:center;position:relative;transition:.15s ease-out;width:24px;z-index:1}.el-step__icon.is-text{border:2px solid;border-color:inherit;border-radius:50%}.el-step__icon.is-icon{width:40px}.el-step__icon-inner{color:inherit;display:inline-block;font-weight:700;line-height:1;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none}.el-step__icon-inner[class*=el-icon]:not(.is-status){font-size:25px;font-weight:400}.el-step__icon-inner.is-status{transform:translateY(1px)}.el-step__line{background-color:var(--el-text-color-placeholder);border-color:inherit;position:absolute}.el-step__line-inner{border:1px solid;border-color:inherit;box-sizing:border-box;display:block;height:0;transition:.15s ease-out;width:0}.el-step__main{text-align:left;white-space:normal}.el-step__title{font-size:16px;line-height:38px}.el-step__title.is-process{color:var(--el-text-color-primary);font-weight:700}.el-step__title.is-wait{color:var(--el-text-color-placeholder)}.el-step__title.is-success{color:var(--el-color-success)}.el-step__title.is-error{color:var(--el-color-danger)}.el-step__title.is-finish{color:var(--el-color-primary)}.el-step__description{font-size:12px;font-weight:400;line-height:20px;margin-top:-5px;padding-right:10%}.el-step__description.is-process{color:var(--el-text-color-primary)}.el-step__description.is-wait{color:var(--el-text-color-placeholder)}.el-step__description.is-success{color:var(--el-color-success)}.el-step__description.is-error{color:var(--el-color-danger)}.el-step__description.is-finish{color:var(--el-color-primary)}.el-step.is-horizontal{display:inline-block}.el-step.is-horizontal .el-step__line{height:2px;left:0;right:0;top:11px}.el-step.is-vertical{display:flex}.el-step.is-vertical .el-step__head{flex-grow:0;width:24px}.el-step.is-vertical .el-step__main{flex-grow:1;padding-left:10px}.el-step.is-vertical .el-step__title{line-height:24px;padding-bottom:8px}.el-step.is-vertical .el-step__line{bottom:0;left:11px;top:0;width:2px}.el-step.is-vertical .el-step__icon.is-icon{width:24px}.el-step.is-center .el-step__head,.el-step.is-center .el-step__main{text-align:center}.el-step.is-center .el-step__description{padding-left:20%;padding-right:20%}.el-step.is-center .el-step__line{left:50%;right:-50%}.el-step.is-simple{align-items:center;display:flex}.el-step.is-simple .el-step__head{font-size:0;padding-right:10px;width:auto}.el-step.is-simple .el-step__icon{background:transparent;font-size:12px;height:16px;width:16px}.el-step.is-simple .el-step__icon-inner[class*=el-icon]:not(.is-status){font-size:18px}.el-step.is-simple .el-step__icon-inner.is-status{transform:scale(.8) translateY(1px)}.el-step.is-simple .el-step__main{align-items:stretch;display:flex;flex-grow:1;position:relative}.el-step.is-simple .el-step__title{font-size:16px;line-height:20px}.el-step.is-simple:not(:last-of-type) .el-step__title{max-width:50%;overflow-wrap:break-word}.el-step.is-simple .el-step__arrow{align-items:center;display:flex;flex-grow:1;justify-content:center}.el-step.is-simple .el-step__arrow:after,.el-step.is-simple .el-step__arrow:before{background:var(--el-text-color-placeholder);content:"";display:inline-block;height:15px;position:absolute;width:1px}.el-step.is-simple .el-step__arrow:before{transform:rotate(-45deg) translateY(-4px);transform-origin:0 0}.el-step.is-simple .el-step__arrow:after{transform:rotate(45deg) translateY(4px);transform-origin:100% 100%}.el-step.is-simple:last-of-type .el-step__arrow{display:none}.el-steps{display:flex}.el-steps--simple{background:var(--el-fill-color-light);border-radius:4px;padding:13px 8%}.el-steps--horizontal{white-space:nowrap}.el-steps--vertical{flex-flow:column;height:100%}.el-switch{--el-switch-on-color:var(--el-color-primary);--el-switch-off-color:var(--el-border-color);align-items:center;display:inline-flex;font-size:14px;height:32px;line-height:20px;position:relative;vertical-align:middle}.el-switch.is-disabled .el-switch__core,.el-switch.is-disabled .el-switch__label{cursor:not-allowed}.el-switch__label{color:var(--el-text-color-primary);cursor:pointer;display:inline-block;font-size:14px;font-weight:500;height:20px;transition:var(--el-transition-duration-fast);vertical-align:middle}.el-switch__label.is-active{color:var(--el-color-primary)}.el-switch__label--left{margin-right:10px}.el-switch__label--right{margin-left:10px}.el-switch__label *{display:inline-block;font-size:14px;line-height:1}.el-switch__label .el-icon{height:inherit}.el-switch__label .el-icon svg{vertical-align:middle}.el-switch__input{height:0;margin:0;opacity:0;position:absolute;width:0}.el-switch__input:focus-visible~.el-switch__core{outline:2px solid var(--el-switch-on-color);outline-offset:1px}.el-switch__core{align-items:center;background:var(--el-switch-off-color);border:1px solid var(--el-switch-border-color,var(--el-switch-off-color));border-radius:10px;box-sizing:border-box;cursor:pointer;display:inline-flex;height:20px;min-width:40px;outline:none;position:relative;transition:border-color var(--el-transition-duration),background-color var(--el-transition-duration)}.el-switch__core .el-switch__inner{align-items:center;display:flex;height:16px;justify-content:center;overflow:hidden;padding:0 4px 0 18px;transition:all var(--el-transition-duration);width:100%}.el-switch__core .el-switch__inner .is-icon,.el-switch__core .el-switch__inner .is-text{color:var(--el-color-white);font-size:12px;overflow:hidden;text-overflow:ellipsis;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}.el-switch__core .el-switch__action{align-items:center;background-color:var(--el-color-white);border-radius:var(--el-border-radius-circle);color:var(--el-switch-off-color);display:flex;height:16px;justify-content:center;left:1px;position:absolute;transition:all var(--el-transition-duration);width:16px}.el-switch.is-checked .el-switch__core{background-color:var(--el-switch-on-color);border-color:var(--el-switch-border-color,var(--el-switch-on-color))}.el-switch.is-checked .el-switch__core .el-switch__action{color:var(--el-switch-on-color);left:calc(100% - 17px)}.el-switch.is-checked .el-switch__core .el-switch__inner{padding:0 18px 0 4px}.el-switch.is-disabled{opacity:.6}.el-switch--wide .el-switch__label.el-switch__label--left span{left:10px}.el-switch--wide .el-switch__label.el-switch__label--right span{right:10px}.el-switch .label-fade-enter-from,.el-switch .label-fade-leave-active{opacity:0}.el-switch--large{font-size:14px;height:40px;line-height:24px}.el-switch--large .el-switch__label{font-size:14px;height:24px}.el-switch--large .el-switch__label *{font-size:14px}.el-switch--large .el-switch__core{border-radius:12px;height:24px;min-width:50px}.el-switch--large .el-switch__core .el-switch__inner{height:20px;padding:0 6px 0 22px}.el-switch--large .el-switch__core .el-switch__action{height:20px;width:20px}.el-switch--large.is-checked .el-switch__core .el-switch__action{left:calc(100% - 21px)}.el-switch--large.is-checked .el-switch__core .el-switch__inner{padding:0 22px 0 6px}.el-switch--small{font-size:12px;height:24px;line-height:16px}.el-switch--small .el-switch__label{font-size:12px;height:16px}.el-switch--small .el-switch__label *{font-size:12px}.el-switch--small .el-switch__core{border-radius:8px;height:16px;min-width:30px}.el-switch--small .el-switch__core .el-switch__inner{height:12px;padding:0 2px 0 14px}.el-switch--small .el-switch__core .el-switch__action{height:12px;width:12px}.el-switch--small.is-checked .el-switch__core .el-switch__action{left:calc(100% - 13px)}.el-switch--small.is-checked .el-switch__core .el-switch__inner{padding:0 14px 0 2px}.el-table-column--selection .cell{padding-left:14px;padding-right:14px}.el-table-filter{background-color:#fff;border:1px solid var(--el-border-color-lighter);border-radius:2px;box-shadow:var(--el-box-shadow-light);box-sizing:border-box}.el-table-filter__list{list-style:none;margin:0;min-width:100px;padding:5px 0}.el-table-filter__list-item{cursor:pointer;font-size:var(--el-font-size-base);line-height:36px;padding:0 10px}.el-table-filter__list-item:hover{background-color:var(--el-color-primary-light-9);color:var(--el-color-primary)}.el-table-filter__list-item.is-active{background-color:var(--el-color-primary);color:#fff}.el-table-filter__content{min-width:100px}.el-table-filter__bottom{border-top:1px solid var(--el-border-color-lighter);padding:8px}.el-table-filter__bottom button{background:transparent;border:none;color:var(--el-text-color-regular);cursor:pointer;font-size:var(--el-font-size-small);padding:0 3px}.el-table-filter__bottom button:hover{color:var(--el-color-primary)}.el-table-filter__bottom button:focus{outline:none}.el-table-filter__bottom button.is-disabled{color:var(--el-disabled-text-color);cursor:not-allowed}.el-table-filter__wrap{max-height:280px}.el-table-filter__checkbox-group{padding:10px}.el-table-filter__checkbox-group label.el-checkbox{align-items:center;display:flex;height:unset;margin-bottom:12px;margin-left:5px;margin-right:5px}.el-table-filter__checkbox-group .el-checkbox:last-child{margin-bottom:0}.el-table{--el-table-border-color:var(--el-border-color-lighter);--el-table-border:1px solid var(--el-table-border-color);--el-table-text-color:var(--el-text-color-regular);--el-table-header-text-color:var(--el-text-color-secondary);--el-table-row-hover-bg-color:var(--el-fill-color-light);--el-table-current-row-bg-color:var(--el-color-primary-light-9);--el-table-header-bg-color:var(--el-bg-color);--el-table-fixed-box-shadow:var(--el-box-shadow-light);--el-table-bg-color:var(--el-fill-color-blank);--el-table-tr-bg-color:var(--el-bg-color);--el-table-expanded-cell-bg-color:var(--el-fill-color-blank);--el-table-fixed-left-column:inset 10px 0 10px -10px rgba(0,0,0,.15);--el-table-fixed-right-column:inset -10px 0 10px -10px rgba(0,0,0,.15);--el-table-index:var(--el-index-normal);background-color:var(--el-table-bg-color);box-sizing:border-box;color:var(--el-table-text-color);font-size:var(--el-font-size-base);height:-moz-fit-content;height:fit-content;max-width:100%;overflow:hidden;position:relative;width:100%}.el-table__inner-wrapper{display:flex;flex-direction:column;height:100%;position:relative}.el-table__inner-wrapper:before{bottom:0;height:1px;left:0}.el-table tbody:focus-visible{outline:none}.el-table.has-footer.el-table--fluid-height tr:last-child td.el-table__cell,.el-table.has-footer.el-table--scrollable-y tr:last-child td.el-table__cell{border-bottom-color:transparent}.el-table__empty-block{align-items:center;display:flex;justify-content:center;left:0;min-height:60px;position:sticky;text-align:center;width:100%}.el-table__empty-text{color:var(--el-text-color-secondary);line-height:60px;width:50%}.el-table__expand-column .cell{padding:0;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none}.el-table__expand-icon{color:var(--el-text-color-regular);cursor:pointer;font-size:12px;height:20px;position:relative;transition:transform var(--el-transition-duration-fast) ease-in-out}.el-table__expand-icon--expanded{transform:rotate(90deg)}.el-table__expand-icon>.el-icon{font-size:12px}.el-table__expanded-cell{background-color:var(--el-table-expanded-cell-bg-color)}.el-table__expanded-cell[class*=cell]{padding:20px 50px}.el-table__expanded-cell:hover{background-color:transparent!important}.el-table__placeholder{display:inline-block;width:20px}.el-table__append-wrapper{overflow:hidden}.el-table--fit{border-bottom:0;border-right:0}.el-table--fit .el-table__cell.gutter{border-right-width:1px}.el-table--fit .el-table__inner-wrapper:before{width:100%}.el-table thead{color:var(--el-table-header-text-color)}.el-table thead th{font-weight:600}.el-table thead.is-group th.el-table__cell{background:var(--el-fill-color-light)}.el-table .el-table__cell{box-sizing:border-box;min-width:0;padding:8px 0;position:relative;text-align:left;text-overflow:ellipsis;vertical-align:middle;z-index:var(--el-table-index)}.el-table .el-table__cell.is-center{text-align:center}.el-table .el-table__cell.is-right{text-align:right}.el-table .el-table__cell.gutter{border-bottom-width:0;border-right-width:0;padding:0;width:15px}.el-table .el-table__cell.is-hidden>*{visibility:hidden}.el-table .cell{box-sizing:border-box;line-height:23px;overflow:hidden;overflow-wrap:break-word;padding:0 12px;text-overflow:ellipsis;white-space:normal}.el-table .cell.el-tooltip{min-width:50px;white-space:nowrap}.el-table--large{font-size:var(--el-font-size-base)}.el-table--large .el-table__cell{padding:12px 0}.el-table--large .cell{padding:0 16px}.el-table--default{font-size:var(--el-font-size-base)}.el-table--default .el-table__cell{padding:8px 0}.el-table--default .cell{padding:0 12px}.el-table--small{font-size:var(--el-font-size-extra-small)}.el-table--small .el-table__cell{padding:4px 0}.el-table--small .cell{padding:0 8px}.el-table tr{background-color:var(--el-table-tr-bg-color)}.el-table tr input[type=checkbox]{margin:0}.el-table td.el-table__cell,.el-table th.el-table__cell.is-leaf{border-bottom:var(--el-table-border)}.el-table th.el-table__cell.is-sortable{cursor:pointer}.el-table th.el-table__cell{background-color:var(--el-table-header-bg-color)}.el-table th.el-table__cell>.cell.highlight{color:var(--el-color-primary)}.el-table th.el-table__cell.required>div:before{background:#ff4d51;border-radius:50%;content:"";display:inline-block;height:8px;margin-right:5px;vertical-align:middle;width:8px}.el-table td.el-table__cell div{box-sizing:border-box}.el-table td.el-table__cell.gutter{width:0}.el-table--border .el-table__inner-wrapper:after,.el-table--border:after,.el-table--border:before,.el-table__inner-wrapper:before{background-color:var(--el-table-border-color);content:"";position:absolute;z-index:calc(var(--el-table-index) + 2)}.el-table--border .el-table__inner-wrapper:after{height:1px;left:0;top:0;width:100%;z-index:calc(var(--el-table-index) + 2)}.el-table--border:before{height:100%;left:0;top:-1px;width:1px}.el-table--border:after{height:100%;right:0;top:-1px;width:1px}.el-table--border .el-table__inner-wrapper{border-bottom:none;border-right:none}.el-table--border .el-table__footer-wrapper{flex-shrink:0;position:relative}.el-table--border .el-table__cell{border-right:var(--el-table-border)}.el-table--border th.el-table__cell.gutter:last-of-type{border-bottom:var(--el-table-border);border-bottom-width:1px}.el-table--border th.el-table__cell{border-bottom:var(--el-table-border)}.el-table--hidden{visibility:hidden}.el-table__body-wrapper,.el-table__footer-wrapper,.el-table__header-wrapper{width:100%}.el-table__body-wrapper tr td.el-table-fixed-column--left,.el-table__body-wrapper tr td.el-table-fixed-column--right,.el-table__body-wrapper tr th.el-table-fixed-column--left,.el-table__body-wrapper tr th.el-table-fixed-column--right,.el-table__footer-wrapper tr td.el-table-fixed-column--left,.el-table__footer-wrapper tr td.el-table-fixed-column--right,.el-table__footer-wrapper tr th.el-table-fixed-column--left,.el-table__footer-wrapper tr th.el-table-fixed-column--right,.el-table__header-wrapper tr td.el-table-fixed-column--left,.el-table__header-wrapper tr td.el-table-fixed-column--right,.el-table__header-wrapper tr th.el-table-fixed-column--left,.el-table__header-wrapper tr th.el-table-fixed-column--right{background:inherit;position:sticky!important;z-index:calc(var(--el-table-index) + 1)}.el-table__body-wrapper tr td.el-table-fixed-column--left.is-first-column:before,.el-table__body-wrapper tr td.el-table-fixed-column--left.is-last-column:before,.el-table__body-wrapper tr td.el-table-fixed-column--right.is-first-column:before,.el-table__body-wrapper tr td.el-table-fixed-column--right.is-last-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--left.is-first-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--left.is-last-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--right.is-first-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--right.is-last-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--left.is-first-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--left.is-last-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--right.is-first-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--right.is-last-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--left.is-first-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--left.is-last-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--right.is-first-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--right.is-last-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--left.is-first-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--left.is-last-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--right.is-first-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--right.is-last-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--left.is-first-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--left.is-last-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--right.is-first-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--right.is-last-column:before{bottom:-1px;box-shadow:none;content:"";overflow-x:hidden;overflow-y:hidden;pointer-events:none;position:absolute;top:0;touch-action:none;width:10px}.el-table__body-wrapper tr td.el-table-fixed-column--left.is-first-column:before,.el-table__body-wrapper tr td.el-table-fixed-column--right.is-first-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--left.is-first-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--right.is-first-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--left.is-first-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--right.is-first-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--left.is-first-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--right.is-first-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--left.is-first-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--right.is-first-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--left.is-first-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--right.is-first-column:before{left:-10px}.el-table__body-wrapper tr td.el-table-fixed-column--left.is-last-column:before,.el-table__body-wrapper tr td.el-table-fixed-column--right.is-last-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--left.is-last-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--right.is-last-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--left.is-last-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--right.is-last-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--left.is-last-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--right.is-last-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--left.is-last-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--right.is-last-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--left.is-last-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--right.is-last-column:before{box-shadow:none;right:-10px}.el-table__body-wrapper tr td.el-table__fixed-right-patch,.el-table__body-wrapper tr th.el-table__fixed-right-patch,.el-table__footer-wrapper tr td.el-table__fixed-right-patch,.el-table__footer-wrapper tr th.el-table__fixed-right-patch,.el-table__header-wrapper tr td.el-table__fixed-right-patch,.el-table__header-wrapper tr th.el-table__fixed-right-patch{background:#fff;position:sticky!important;right:0;z-index:calc(var(--el-table-index) + 1)}.el-table__header-wrapper{flex-shrink:0}.el-table__header-wrapper tr th.el-table-fixed-column--left,.el-table__header-wrapper tr th.el-table-fixed-column--right{background-color:var(--el-table-header-bg-color)}.el-table__body,.el-table__footer,.el-table__header{border-collapse:separate;table-layout:fixed}.el-table__header-wrapper{overflow:hidden}.el-table__header-wrapper tbody td.el-table__cell{background-color:var(--el-table-row-hover-bg-color);color:var(--el-table-text-color)}.el-table__footer-wrapper{flex-shrink:0;overflow:hidden}.el-table__footer-wrapper tfoot td.el-table__cell{background-color:var(--el-table-row-hover-bg-color);color:var(--el-table-text-color)}.el-table__body-wrapper .el-table-column--selection>.cell,.el-table__header-wrapper .el-table-column--selection>.cell{align-items:center;display:inline-flex;height:23px}.el-table__body-wrapper .el-table-column--selection .el-checkbox,.el-table__header-wrapper .el-table-column--selection .el-checkbox{height:unset}.el-table.is-scrolling-left .el-table-fixed-column--right.is-first-column:before{box-shadow:var(--el-table-fixed-right-column)}.el-table.is-scrolling-left.el-table--border .el-table-fixed-column--left.is-last-column.el-table__cell{border-right:var(--el-table-border)}.el-table.is-scrolling-left th.el-table-fixed-column--left{background-color:var(--el-table-header-bg-color)}.el-table.is-scrolling-right .el-table-fixed-column--left.is-last-column:before{box-shadow:var(--el-table-fixed-left-column)}.el-table.is-scrolling-right .el-table-fixed-column--left.is-last-column.el-table__cell{border-right:none}.el-table.is-scrolling-right th.el-table-fixed-column--right{background-color:var(--el-table-header-bg-color)}.el-table.is-scrolling-middle .el-table-fixed-column--left.is-last-column.el-table__cell{border-right:none}.el-table.is-scrolling-middle .el-table-fixed-column--right.is-first-column:before{box-shadow:var(--el-table-fixed-right-column)}.el-table.is-scrolling-middle .el-table-fixed-column--left.is-last-column:before{box-shadow:var(--el-table-fixed-left-column)}.el-table.is-scrolling-none .el-table-fixed-column--left.is-first-column:before,.el-table.is-scrolling-none .el-table-fixed-column--left.is-last-column:before,.el-table.is-scrolling-none .el-table-fixed-column--right.is-first-column:before,.el-table.is-scrolling-none .el-table-fixed-column--right.is-last-column:before{box-shadow:none}.el-table.is-scrolling-none th.el-table-fixed-column--left,.el-table.is-scrolling-none th.el-table-fixed-column--right{background-color:var(--el-table-header-bg-color)}.el-table__body-wrapper{flex:1;overflow:hidden;position:relative}.el-table__body-wrapper .el-scrollbar__bar{z-index:calc(var(--el-table-index) + 2)}.el-table .caret-wrapper{align-items:center;cursor:pointer;display:inline-flex;flex-direction:column;height:14px;overflow:initial;position:relative;vertical-align:middle;width:24px}.el-table .sort-caret{border:5px solid transparent;height:0;left:7px;position:absolute;width:0}.el-table .sort-caret.ascending{border-bottom-color:var(--el-text-color-placeholder);top:-5px}.el-table .sort-caret.descending{border-top-color:var(--el-text-color-placeholder);bottom:-3px}.el-table .ascending .sort-caret.ascending{border-bottom-color:var(--el-color-primary)}.el-table .descending .sort-caret.descending{border-top-color:var(--el-color-primary)}.el-table .hidden-columns{position:absolute;visibility:hidden;z-index:-1}.el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell{background:var(--el-fill-color-lighter)}.el-table--striped .el-table__body tr.el-table__row--striped.current-row td.el-table__cell{background-color:var(--el-table-current-row-bg-color)}.el-table__body tr.hover-row.current-row>td.el-table__cell,.el-table__body tr.hover-row.el-table__row--striped.current-row>td.el-table__cell,.el-table__body tr.hover-row.el-table__row--striped>td.el-table__cell,.el-table__body tr.hover-row>td.el-table__cell,.el-table__body tr>td.hover-cell{background-color:var(--el-table-row-hover-bg-color)}.el-table__body tr.current-row>td.el-table__cell{background-color:var(--el-table-current-row-bg-color)}.el-table.el-table--scrollable-y .el-table__body-header{position:sticky;top:0;z-index:calc(var(--el-table-index) + 2)}.el-table.el-table--scrollable-y .el-table__body-footer{bottom:0;position:sticky;z-index:calc(var(--el-table-index) + 2)}.el-table__column-resize-proxy{border-left:var(--el-table-border);bottom:0;left:200px;position:absolute;top:0;width:0;z-index:calc(var(--el-table-index) + 9)}.el-table__column-filter-trigger{cursor:pointer;display:inline-block}.el-table__column-filter-trigger i{color:var(--el-color-info);font-size:14px;vertical-align:middle}.el-table__border-left-patch{height:100%;top:0;width:1px}.el-table__border-bottom-patch,.el-table__border-left-patch{background-color:var(--el-table-border-color);left:0;position:absolute;z-index:calc(var(--el-table-index) + 2)}.el-table__border-bottom-patch{height:1px}.el-table__border-right-patch{background-color:var(--el-table-border-color);height:100%;position:absolute;top:0;width:1px;z-index:calc(var(--el-table-index) + 2)}.el-table--enable-row-transition .el-table__body td.el-table__cell{transition:background-color .25s ease}.el-table--enable-row-hover .el-table__body tr:hover>td.el-table__cell{background-color:var(--el-table-row-hover-bg-color)}.el-table [class*=el-table__row--level] .el-table__expand-icon{display:inline-block;height:12px;line-height:12px;margin-right:8px;text-align:center;width:12px}.el-table .el-table.el-table--border .el-table__cell{border-right:var(--el-table-border)}.el-table:not(.el-table--border) .el-table__cell{border-right:none}.el-table:not(.el-table--border)>.el-table__inner-wrapper:after{content:none}.el-table-v2{--el-table-border-color:var(--el-border-color-lighter);--el-table-border:1px solid var(--el-table-border-color);--el-table-text-color:var(--el-text-color-regular);--el-table-header-text-color:var(--el-text-color-secondary);--el-table-row-hover-bg-color:var(--el-fill-color-light);--el-table-current-row-bg-color:var(--el-color-primary-light-9);--el-table-header-bg-color:var(--el-bg-color);--el-table-fixed-box-shadow:var(--el-box-shadow-light);--el-table-bg-color:var(--el-fill-color-blank);--el-table-tr-bg-color:var(--el-bg-color);--el-table-expanded-cell-bg-color:var(--el-fill-color-blank);--el-table-fixed-left-column:inset 10px 0 10px -10px rgba(0,0,0,.15);--el-table-fixed-right-column:inset -10px 0 10px -10px rgba(0,0,0,.15);--el-table-index:var(--el-index-normal);font-size:var(--el-font-size-base)}.el-table-v2 *{box-sizing:border-box}.el-table-v2__root{position:relative}.el-table-v2__root:hover .el-table-v2__main .el-virtual-scrollbar{opacity:1}.el-table-v2__main{background-color:var(--el-bg-color);display:flex;flex-direction:column-reverse;left:0;overflow:hidden;position:absolute;top:0}.el-table-v2__main .el-vl__horizontal,.el-table-v2__main .el-vl__vertical{z-index:2}.el-table-v2__left{background-color:var(--el-bg-color);box-shadow:2px 0 4px #0000000f;display:flex;flex-direction:column-reverse;left:0;overflow:hidden;position:absolute;top:0}.el-table-v2__left .el-virtual-scrollbar{opacity:0}.el-table-v2__left .el-vl__horizontal,.el-table-v2__left .el-vl__vertical{z-index:-1}.el-table-v2__right{background-color:var(--el-bg-color);box-shadow:-2px 0 4px #0000000f;display:flex;flex-direction:column-reverse;overflow:hidden;position:absolute;right:0;top:0}.el-table-v2__right .el-virtual-scrollbar{opacity:0}.el-table-v2__right .el-vl__horizontal,.el-table-v2__right .el-vl__vertical{z-index:-1}.el-table-v2__header-row,.el-table-v2__row{padding-inline-end:var(--el-table-scrollbar-size)}.el-table-v2__header-wrapper{overflow:hidden}.el-table-v2__header{overflow:hidden;position:relative}.el-table-v2__header .el-checkbox{z-index:0}.el-table-v2__footer{bottom:0;overflow:hidden;right:0}.el-table-v2__empty,.el-table-v2__footer,.el-table-v2__overlay{left:0;position:absolute}.el-table-v2__overlay{bottom:0;right:0;top:0;z-index:9999}.el-table-v2__header-row{border-bottom:var(--el-table-border);display:flex}.el-table-v2__header-cell{align-items:center;background-color:var(--el-table-header-bg-color);color:var(--el-table-header-text-color);display:flex;font-weight:700;height:100%;overflow:hidden;padding:0 8px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.el-table-v2__header-cell.is-align-center{justify-content:center;text-align:center}.el-table-v2__header-cell.is-align-right{justify-content:flex-end;text-align:right}.el-table-v2__header-cell.is-sortable{cursor:pointer}.el-table-v2__header-cell:hover .el-icon{display:block}.el-table-v2__sort-icon{display:none;opacity:.6;transition:opacity,display var(--el-transition-duration)}.el-table-v2__sort-icon.is-sorting{display:block;opacity:1}.el-table-v2__row{align-items:center;border-bottom:var(--el-table-border);display:flex;transition:background-color var(--el-transition-duration)}.el-table-v2__row.is-hovered,.el-table-v2__row:hover{background-color:var(--el-table-row-hover-bg-color)}.el-table-v2__row-cell{align-items:center;display:flex;height:100%;overflow:hidden;padding:0 8px}.el-table-v2__row-cell.is-align-center{justify-content:center;text-align:center}.el-table-v2__row-cell.is-align-right{justify-content:flex-end;text-align:right}.el-table-v2__expand-icon{cursor:pointer;margin:0 4px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.el-table-v2__expand-icon svg{transition:transform var(--el-transition-duration)}.el-table-v2__expand-icon.is-expanded svg{transform:rotate(90deg)}.el-table-v2:not(.is-dynamic) .el-table-v2__cell-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.el-table-v2.is-dynamic .el-table-v2__row{align-items:stretch;overflow:hidden}.el-table-v2.is-dynamic .el-table-v2__row .el-table-v2__row-cell{overflow-wrap:break-word}.el-tabs{--el-tabs-header-height:40px;display:flex}.el-tabs__header{align-items:center;display:flex;justify-content:space-between;margin:0 0 15px;padding:0;position:relative}.el-tabs__header-vertical{flex-direction:column}.el-tabs__active-bar{background-color:var(--el-color-primary);bottom:0;height:2px;left:0;list-style:none;position:absolute;transition:width var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier),transform var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);z-index:1}.el-tabs__new-tab{align-items:center;border:1px solid var(--el-border-color);border-radius:3px;color:var(--el-text-color-primary);cursor:pointer;display:flex;font-size:12px;height:20px;justify-content:center;line-height:20px;margin:10px 0 10px 10px;text-align:center;transition:all .15s;width:20px}.el-tabs__new-tab .is-icon-plus{height:inherit;transform:scale(.8);width:inherit}.el-tabs__new-tab .is-icon-plus svg{vertical-align:middle}.el-tabs__new-tab:hover{color:var(--el-color-primary)}.el-tabs__new-tab-vertical{margin-left:0}.el-tabs__nav-wrap{flex:1 auto;margin-bottom:-1px;overflow:hidden;position:relative}.el-tabs__nav-wrap:after{background-color:var(--el-border-color-light);bottom:0;content:"";height:2px;left:0;position:absolute;width:100%;z-index:var(--el-index-normal)}.el-tabs__nav-wrap.is-scrollable{box-sizing:border-box;padding:0 20px}.el-tabs__nav-scroll{overflow:hidden}.el-tabs__nav-next,.el-tabs__nav-prev{color:var(--el-text-color-secondary);cursor:pointer;font-size:12px;line-height:44px;position:absolute;text-align:center;width:20px}.el-tabs__nav-next{right:0}.el-tabs__nav-prev{left:0}.el-tabs__nav{display:flex;float:left;position:relative;transition:transform var(--el-transition-duration);white-space:nowrap;z-index:calc(var(--el-index-normal) + 1)}.el-tabs__nav.is-stretch{display:flex;min-width:100%}.el-tabs__nav.is-stretch>*{flex:1;text-align:center}.el-tabs__item{align-items:center;box-sizing:border-box;color:var(--el-text-color-primary);display:flex;font-size:var(--el-font-size-base);font-weight:500;height:var(--el-tabs-header-height);justify-content:center;list-style:none;padding:0 20px;position:relative}.el-tabs__item:focus,.el-tabs__item:focus:active{outline:none}.el-tabs__item:focus-visible{border-radius:3px;box-shadow:0 0 2px 2px var(--el-color-primary) inset}.el-tabs__item .is-icon-close{border-radius:50%;margin-left:5px;text-align:center;transition:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier)}.el-tabs__item .is-icon-close:before{display:inline-block;transform:scale(.9)}.el-tabs__item .is-icon-close:hover{background-color:var(--el-text-color-placeholder);color:#fff}.el-tabs__item.is-active,.el-tabs__item:hover{color:var(--el-color-primary)}.el-tabs__item:hover{cursor:pointer}.el-tabs__item.is-disabled{color:var(--el-disabled-text-color);cursor:not-allowed}.el-tabs__content{flex-grow:1;overflow:hidden;position:relative}.el-tabs--bottom>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top>.el-tabs__header .el-tabs__item:nth-child(2){padding-left:0}.el-tabs--bottom>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top>.el-tabs__header .el-tabs__item:last-child{padding-right:0}.el-tabs--bottom.el-tabs--border-card>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--bottom.el-tabs--card>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top.el-tabs--border-card>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item:nth-child(2){padding-left:20px}.el-tabs--bottom.el-tabs--border-card>.el-tabs__header .el-tabs__item:last-child,.el-tabs--bottom.el-tabs--card>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top.el-tabs--border-card>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item:last-child{padding-right:20px}.el-tabs--card>.el-tabs__header{border-bottom:1px solid var(--el-border-color-light);height:var(--el-tabs-header-height)}.el-tabs--card>.el-tabs__header .el-tabs__nav-wrap:after{content:none}.el-tabs--card>.el-tabs__header .el-tabs__nav{border:1px solid var(--el-border-color-light);border-bottom:none;border-radius:4px 4px 0 0;box-sizing:border-box}.el-tabs--card>.el-tabs__header .el-tabs__active-bar{display:none}.el-tabs--card>.el-tabs__header .el-tabs__item .is-icon-close{font-size:12px;height:14px;overflow:hidden;position:relative;right:-2px;transform-origin:100% 50%;width:0}.el-tabs--card>.el-tabs__header .el-tabs__item{border-bottom:1px solid transparent;border-left:1px solid var(--el-border-color-light);transition:color var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier),padding var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier)}.el-tabs--card>.el-tabs__header .el-tabs__item:first-child{border-left:none}.el-tabs--card>.el-tabs__header .el-tabs__item.is-closable:hover{padding-left:13px;padding-right:13px}.el-tabs--card>.el-tabs__header .el-tabs__item.is-closable:hover .is-icon-close{width:14px}.el-tabs--card>.el-tabs__header .el-tabs__item.is-active{border-bottom-color:var(--el-bg-color)}.el-tabs--card>.el-tabs__header .el-tabs__item.is-active.is-closable{padding-left:20px;padding-right:20px}.el-tabs--card>.el-tabs__header .el-tabs__item.is-active.is-closable .is-icon-close{width:14px}.el-tabs--border-card{background:var(--el-bg-color-overlay);border:1px solid var(--el-border-color)}.el-tabs--border-card>.el-tabs__content{padding:15px}.el-tabs--border-card>.el-tabs__header{background-color:var(--el-fill-color-light);border-bottom:1px solid var(--el-border-color-light);margin:0}.el-tabs--border-card>.el-tabs__header .el-tabs__nav-wrap:after{content:none}.el-tabs--border-card>.el-tabs__header .el-tabs__item{border:1px solid transparent;color:var(--el-text-color-secondary);margin-top:-1px;transition:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier)}.el-tabs--border-card>.el-tabs__header .el-tabs__item+.el-tabs__item,.el-tabs--border-card>.el-tabs__header .el-tabs__item:first-child{margin-left:-1px}.el-tabs--border-card>.el-tabs__header .el-tabs__item.is-active{background-color:var(--el-bg-color-overlay);border-left-color:var(--el-border-color);border-right-color:var(--el-border-color);color:var(--el-color-primary)}.el-tabs--border-card>.el-tabs__header .el-tabs__item:not(.is-disabled):hover{color:var(--el-color-primary)}.el-tabs--border-card>.el-tabs__header .el-tabs__item.is-disabled{color:var(--el-disabled-text-color)}.el-tabs--border-card>.el-tabs__header .is-scrollable .el-tabs__item:first-child{margin-left:0}.el-tabs--bottom{flex-direction:column}.el-tabs--bottom .el-tabs__header.is-bottom{margin-bottom:0;margin-top:10px}.el-tabs--bottom.el-tabs--border-card .el-tabs__header.is-bottom{border-bottom:0;border-top:1px solid var(--el-border-color)}.el-tabs--bottom.el-tabs--border-card .el-tabs__nav-wrap.is-bottom{margin-bottom:0;margin-top:-1px}.el-tabs--bottom.el-tabs--border-card .el-tabs__item.is-bottom:not(.is-active){border:1px solid transparent}.el-tabs--bottom.el-tabs--border-card .el-tabs__item.is-bottom{margin:0 -1px -1px}.el-tabs--left,.el-tabs--right{overflow:hidden}.el-tabs--left .el-tabs__header.is-left,.el-tabs--left .el-tabs__header.is-right,.el-tabs--left .el-tabs__nav-scroll,.el-tabs--left .el-tabs__nav-wrap.is-left,.el-tabs--left .el-tabs__nav-wrap.is-right,.el-tabs--right .el-tabs__header.is-left,.el-tabs--right .el-tabs__header.is-right,.el-tabs--right .el-tabs__nav-scroll,.el-tabs--right .el-tabs__nav-wrap.is-left,.el-tabs--right .el-tabs__nav-wrap.is-right{height:100%}.el-tabs--left .el-tabs__active-bar.is-left,.el-tabs--left .el-tabs__active-bar.is-right,.el-tabs--right .el-tabs__active-bar.is-left,.el-tabs--right .el-tabs__active-bar.is-right{bottom:auto;height:auto;top:0;width:2px}.el-tabs--left .el-tabs__nav-wrap.is-left,.el-tabs--left .el-tabs__nav-wrap.is-right,.el-tabs--right .el-tabs__nav-wrap.is-left,.el-tabs--right .el-tabs__nav-wrap.is-right{margin-bottom:0}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-next,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev{cursor:pointer;height:30px;line-height:30px;text-align:center;width:100%}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-next i,.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev i,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-next i,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev i,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-next i,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev i,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-next i,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev i{transform:rotate(90deg)}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev{left:auto;top:0}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-next{bottom:0;right:auto}.el-tabs--left .el-tabs__nav-wrap.is-left.is-scrollable,.el-tabs--left .el-tabs__nav-wrap.is-right.is-scrollable,.el-tabs--right .el-tabs__nav-wrap.is-left.is-scrollable,.el-tabs--right .el-tabs__nav-wrap.is-right.is-scrollable{padding:30px 0}.el-tabs--left .el-tabs__nav-wrap.is-left:after,.el-tabs--left .el-tabs__nav-wrap.is-right:after,.el-tabs--right .el-tabs__nav-wrap.is-left:after,.el-tabs--right .el-tabs__nav-wrap.is-right:after{bottom:auto;height:100%;top:0;width:2px}.el-tabs--left .el-tabs__nav.is-left,.el-tabs--left .el-tabs__nav.is-right,.el-tabs--right .el-tabs__nav.is-left,.el-tabs--right .el-tabs__nav.is-right{flex-direction:column}.el-tabs--left .el-tabs__item.is-left,.el-tabs--right .el-tabs__item.is-left{justify-content:flex-end}.el-tabs--left .el-tabs__item.is-right,.el-tabs--right .el-tabs__item.is-right{justify-content:flex-start}.el-tabs--left{flex-direction:row-reverse}.el-tabs--left .el-tabs__header.is-left{margin-bottom:0;margin-right:10px}.el-tabs--left .el-tabs__nav-wrap.is-left{margin-right:-1px}.el-tabs--left .el-tabs__active-bar.is-left,.el-tabs--left .el-tabs__nav-wrap.is-left:after{left:auto;right:0}.el-tabs--left .el-tabs__item.is-left{text-align:right}.el-tabs--left.el-tabs--card .el-tabs__active-bar.is-left{display:none}.el-tabs--left.el-tabs--card .el-tabs__item.is-left{border-bottom:none;border-left:none;border-right:1px solid var(--el-border-color-light);border-top:1px solid var(--el-border-color-light);text-align:left}.el-tabs--left.el-tabs--card .el-tabs__item.is-left:first-child{border-right:1px solid var(--el-border-color-light);border-top:none}.el-tabs--left.el-tabs--card .el-tabs__item.is-left.is-active{border:1px solid var(--el-border-color-light);border-bottom:none;border-left:none;border-right:1px solid #fff}.el-tabs--left.el-tabs--card .el-tabs__item.is-left.is-active:first-child{border-top:none}.el-tabs--left.el-tabs--card .el-tabs__item.is-left.is-active:last-child{border-bottom:none}.el-tabs--left.el-tabs--card .el-tabs__nav{border-bottom:1px solid var(--el-border-color-light);border-radius:4px 0 0 4px;border-right:none}.el-tabs--left.el-tabs--card .el-tabs__new-tab{float:none}.el-tabs--left.el-tabs--border-card .el-tabs__header.is-left{border-right:1px solid var(--el-border-color)}.el-tabs--left.el-tabs--border-card .el-tabs__item.is-left{border:1px solid transparent;margin:-1px 0 -1px -1px}.el-tabs--left.el-tabs--border-card .el-tabs__item.is-left.is-active{border-color:rgb(209,219,229) transparent}.el-tabs--right .el-tabs__header.is-right{margin-bottom:0;margin-left:10px}.el-tabs--right .el-tabs__nav-wrap.is-right{margin-left:-1px}.el-tabs--right .el-tabs__nav-wrap.is-right:after{left:0;right:auto}.el-tabs--right .el-tabs__active-bar.is-right{left:0}.el-tabs--right.el-tabs--card .el-tabs__active-bar.is-right{display:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right{border-bottom:none;border-top:1px solid var(--el-border-color-light)}.el-tabs--right.el-tabs--card .el-tabs__item.is-right:first-child{border-left:1px solid var(--el-border-color-light);border-top:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right.is-active{border:1px solid var(--el-border-color-light);border-bottom:none;border-left:1px solid #fff;border-right:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right.is-active:first-child{border-top:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right.is-active:last-child{border-bottom:none}.el-tabs--right.el-tabs--card .el-tabs__nav{border-bottom:1px solid var(--el-border-color-light);border-left:none;border-radius:0 4px 4px 0}.el-tabs--right.el-tabs--border-card .el-tabs__header.is-right{border-left:1px solid var(--el-border-color)}.el-tabs--right.el-tabs--border-card .el-tabs__item.is-right{border:1px solid transparent;margin:-1px -1px -1px 0}.el-tabs--right.el-tabs--border-card .el-tabs__item.is-right.is-active{border-color:rgb(209,219,229) transparent}.el-tabs--top{flex-direction:column-reverse}.slideInLeft-transition,.slideInRight-transition{display:inline-block}.slideInRight-enter{animation:slideInRight-enter var(--el-transition-duration)}.slideInRight-leave{animation:slideInRight-leave var(--el-transition-duration);left:0;position:absolute;right:0}.slideInLeft-enter{animation:slideInLeft-enter var(--el-transition-duration)}.slideInLeft-leave{animation:slideInLeft-leave var(--el-transition-duration);left:0;position:absolute;right:0}@keyframes slideInRight-enter{0%{opacity:0;transform:translate(100%);transform-origin:0 0}to{opacity:1;transform:translate(0);transform-origin:0 0}}@keyframes slideInRight-leave{0%{opacity:1;transform:translate(0);transform-origin:0 0}to{opacity:0;transform:translate(100%);transform-origin:0 0}}@keyframes slideInLeft-enter{0%{opacity:0;transform:translate(-100%);transform-origin:0 0}to{opacity:1;transform:translate(0);transform-origin:0 0}}@keyframes slideInLeft-leave{0%{opacity:1;transform:translate(0);transform-origin:0 0}to{opacity:0;transform:translate(-100%);transform-origin:0 0}}.el-tag{--el-tag-font-size:12px;--el-tag-border-radius:4px;--el-tag-border-radius-rounded:9999px;align-items:center;background-color:var(--el-tag-bg-color);border-color:var(--el-tag-border-color);border-radius:var(--el-tag-border-radius);border-style:solid;border-width:1px;box-sizing:border-box;color:var(--el-tag-text-color);display:inline-flex;font-size:var(--el-tag-font-size);height:24px;justify-content:center;line-height:1;padding:0 9px;vertical-align:middle;white-space:nowrap;--el-icon-size:14px}.el-tag,.el-tag.el-tag--primary{--el-tag-bg-color:var(--el-color-primary-light-9);--el-tag-border-color:var(--el-color-primary-light-8);--el-tag-hover-color:var(--el-color-primary)}.el-tag.el-tag--success{--el-tag-bg-color:var(--el-color-success-light-9);--el-tag-border-color:var(--el-color-success-light-8);--el-tag-hover-color:var(--el-color-success)}.el-tag.el-tag--warning{--el-tag-bg-color:var(--el-color-warning-light-9);--el-tag-border-color:var(--el-color-warning-light-8);--el-tag-hover-color:var(--el-color-warning)}.el-tag.el-tag--danger{--el-tag-bg-color:var(--el-color-danger-light-9);--el-tag-border-color:var(--el-color-danger-light-8);--el-tag-hover-color:var(--el-color-danger)}.el-tag.el-tag--error{--el-tag-bg-color:var(--el-color-error-light-9);--el-tag-border-color:var(--el-color-error-light-8);--el-tag-hover-color:var(--el-color-error)}.el-tag.el-tag--info{--el-tag-bg-color:var(--el-color-info-light-9);--el-tag-border-color:var(--el-color-info-light-8);--el-tag-hover-color:var(--el-color-info)}.el-tag.is-hit{border-color:var(--el-color-primary)}.el-tag.is-round{border-radius:var(--el-tag-border-radius-rounded)}.el-tag .el-tag__close{color:var(--el-tag-text-color);flex-shrink:0}.el-tag .el-tag__close:hover{background-color:var(--el-tag-hover-color);color:var(--el-color-white)}.el-tag.el-tag--primary{--el-tag-text-color:var(--el-color-primary)}.el-tag.el-tag--success{--el-tag-text-color:var(--el-color-success)}.el-tag.el-tag--warning{--el-tag-text-color:var(--el-color-warning)}.el-tag.el-tag--danger{--el-tag-text-color:var(--el-color-danger)}.el-tag.el-tag--error{--el-tag-text-color:var(--el-color-error)}.el-tag.el-tag--info{--el-tag-text-color:var(--el-color-info)}.el-tag .el-icon{border-radius:50%;cursor:pointer;font-size:calc(var(--el-icon-size) - 2px);height:var(--el-icon-size);width:var(--el-icon-size)}.el-tag .el-tag__close{margin-left:6px}.el-tag--dark{--el-tag-text-color:var(--el-color-white)}.el-tag--dark,.el-tag--dark.el-tag--primary{--el-tag-bg-color:var(--el-color-primary);--el-tag-border-color:var(--el-color-primary);--el-tag-hover-color:var(--el-color-primary-light-3)}.el-tag--dark.el-tag--success{--el-tag-bg-color:var(--el-color-success);--el-tag-border-color:var(--el-color-success);--el-tag-hover-color:var(--el-color-success-light-3)}.el-tag--dark.el-tag--warning{--el-tag-bg-color:var(--el-color-warning);--el-tag-border-color:var(--el-color-warning);--el-tag-hover-color:var(--el-color-warning-light-3)}.el-tag--dark.el-tag--danger{--el-tag-bg-color:var(--el-color-danger);--el-tag-border-color:var(--el-color-danger);--el-tag-hover-color:var(--el-color-danger-light-3)}.el-tag--dark.el-tag--error{--el-tag-bg-color:var(--el-color-error);--el-tag-border-color:var(--el-color-error);--el-tag-hover-color:var(--el-color-error-light-3)}.el-tag--dark.el-tag--info{--el-tag-bg-color:var(--el-color-info);--el-tag-border-color:var(--el-color-info);--el-tag-hover-color:var(--el-color-info-light-3)}.el-tag--dark.el-tag--danger,.el-tag--dark.el-tag--error,.el-tag--dark.el-tag--info,.el-tag--dark.el-tag--primary,.el-tag--dark.el-tag--success,.el-tag--dark.el-tag--warning{--el-tag-text-color:var(--el-color-white)}.el-tag--plain,.el-tag--plain.el-tag--primary{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-primary-light-5);--el-tag-hover-color:var(--el-color-primary)}.el-tag--plain.el-tag--success{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-success-light-5);--el-tag-hover-color:var(--el-color-success)}.el-tag--plain.el-tag--warning{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-warning-light-5);--el-tag-hover-color:var(--el-color-warning)}.el-tag--plain.el-tag--danger{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-danger-light-5);--el-tag-hover-color:var(--el-color-danger)}.el-tag--plain.el-tag--error{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-error-light-5);--el-tag-hover-color:var(--el-color-error)}.el-tag--plain.el-tag--info{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-info-light-5);--el-tag-hover-color:var(--el-color-info)}.el-tag.is-closable{padding-right:5px}.el-tag--large{height:32px;padding:0 11px;--el-icon-size:16px}.el-tag--large .el-tag__close{margin-left:8px}.el-tag--large.is-closable{padding-right:7px}.el-tag--small{height:20px;padding:0 7px;--el-icon-size:12px}.el-tag--small .el-tag__close{margin-left:4px}.el-tag--small.is-closable{padding-right:3px}.el-tag--small .el-icon-close{transform:scale(.8)}.el-tag.el-tag--primary.is-hit{border-color:var(--el-color-primary)}.el-tag.el-tag--success.is-hit{border-color:var(--el-color-success)}.el-tag.el-tag--warning.is-hit{border-color:var(--el-color-warning)}.el-tag.el-tag--danger.is-hit{border-color:var(--el-color-danger)}.el-tag.el-tag--error.is-hit{border-color:var(--el-color-error)}.el-tag.el-tag--info.is-hit{border-color:var(--el-color-info)}.el-text{--el-text-font-size:var(--el-font-size-base);--el-text-color:var(--el-text-color-regular);align-self:center;color:var(--el-text-color);font-size:var(--el-text-font-size);margin:0;overflow-wrap:break-word;padding:0}.el-text.is-truncated{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.el-text.is-line-clamp{display:-webkit-inline-box;-webkit-box-orient:vertical;overflow:hidden}.el-text--large{--el-text-font-size:var(--el-font-size-medium)}.el-text--default{--el-text-font-size:var(--el-font-size-base)}.el-text--small{--el-text-font-size:var(--el-font-size-extra-small)}.el-text.el-text--primary{--el-text-color:var(--el-color-primary)}.el-text.el-text--success{--el-text-color:var(--el-color-success)}.el-text.el-text--warning{--el-text-color:var(--el-color-warning)}.el-text.el-text--danger{--el-text-color:var(--el-color-danger)}.el-text.el-text--error{--el-text-color:var(--el-color-error)}.el-text.el-text--info{--el-text-color:var(--el-color-info)}.el-text>.el-icon{vertical-align:-2px}.time-select{margin:5px 0;min-width:0}.time-select .el-picker-panel__content{margin:0;max-height:200px}.time-select-item{font-size:14px;line-height:20px;padding:8px 10px}.time-select-item.disabled{color:var(--el-datepicker-border-color);cursor:not-allowed}.time-select-item:hover{background-color:var(--el-fill-color-light);cursor:pointer;font-weight:700}.time-select .time-select-item.selected:not(.disabled){color:var(--el-color-primary);font-weight:700}.el-timeline-item{padding-bottom:20px;position:relative}.el-timeline-item__wrapper{padding-left:28px;position:relative;top:-3px}.el-timeline-item__tail{border-left:2px solid var(--el-timeline-node-color);height:100%;left:4px;position:absolute}.el-timeline-item .el-timeline-item__icon{color:var(--el-color-white);font-size:var(--el-font-size-small)}.el-timeline-item__node{align-items:center;background-color:var(--el-timeline-node-color);border-color:var(--el-timeline-node-color);border-radius:50%;box-sizing:border-box;display:flex;justify-content:center;position:absolute}.el-timeline-item__node--normal{height:var(--el-timeline-node-size-normal);left:-1px;width:var(--el-timeline-node-size-normal)}.el-timeline-item__node--large{height:var(--el-timeline-node-size-large);left:-2px;width:var(--el-timeline-node-size-large)}.el-timeline-item__node.is-hollow{background:var(--el-color-white);border-style:solid;border-width:2px}.el-timeline-item__node--primary{background-color:var(--el-color-primary);border-color:var(--el-color-primary)}.el-timeline-item__node--success{background-color:var(--el-color-success);border-color:var(--el-color-success)}.el-timeline-item__node--warning{background-color:var(--el-color-warning);border-color:var(--el-color-warning)}.el-timeline-item__node--danger{background-color:var(--el-color-danger);border-color:var(--el-color-danger)}.el-timeline-item__node--info{background-color:var(--el-color-info);border-color:var(--el-color-info)}.el-timeline-item__dot{align-items:center;display:flex;justify-content:center;position:absolute}.el-timeline-item__content{color:var(--el-text-color-primary)}.el-timeline-item__timestamp{color:var(--el-text-color-secondary);font-size:var(--el-font-size-small);line-height:1}.el-timeline-item__timestamp.is-top{margin-bottom:8px;padding-top:4px}.el-timeline-item__timestamp.is-bottom{margin-top:8px}.el-timeline{--el-timeline-node-size-normal:12px;--el-timeline-node-size-large:14px;--el-timeline-node-color:var(--el-border-color-light);font-size:var(--el-font-size-base);list-style:none;margin:0}.el-timeline .el-timeline-item:last-child .el-timeline-item__tail{display:none}.el-timeline .el-timeline-item__center{align-items:center;display:flex}.el-timeline .el-timeline-item__center .el-timeline-item__wrapper{width:100%}.el-timeline .el-timeline-item__center .el-timeline-item__tail{top:0}.el-timeline .el-timeline-item__center:first-child .el-timeline-item__tail{height:calc(50% + 10px);top:calc(50% - 10px)}.el-timeline .el-timeline-item__center:last-child .el-timeline-item__tail{display:block;height:calc(50% - 10px)}.el-tooltip-v2__content{--el-tooltip-v2-padding:5px 10px;--el-tooltip-v2-border-radius:4px;--el-tooltip-v2-border-color:var(--el-border-color);background-color:var(--el-color-white);border:1px solid var(--el-border-color);border-radius:var(--el-tooltip-v2-border-radius);color:var(--el-color-black);padding:var(--el-tooltip-v2-padding)}.el-tooltip-v2__arrow{color:var(--el-color-white);height:var(--el-tooltip-v2-arrow-height);left:var(--el-tooltip-v2-arrow-x);pointer-events:none;position:absolute;top:var(--el-tooltip-v2-arrow-y);width:var(--el-tooltip-v2-arrow-width)}.el-tooltip-v2__arrow:after,.el-tooltip-v2__arrow:before{border:var(--el-tooltip-v2-arrow-border-width) solid transparent;content:"";height:0;position:absolute;width:0}.el-tooltip-v2__content[data-side^=top] .el-tooltip-v2__arrow{bottom:0}.el-tooltip-v2__content[data-side^=top] .el-tooltip-v2__arrow:before{border-bottom:0;border-top-color:var(--el-color-white);border-top-width:var(--el-tooltip-v2-arrow-border-width);top:calc(100% - 1px)}.el-tooltip-v2__content[data-side^=top] .el-tooltip-v2__arrow:after{border-bottom:0;border-top-color:var(--el-border-color);border-top-width:var(--el-tooltip-v2-arrow-border-width);top:100%;z-index:-1}.el-tooltip-v2__content[data-side^=bottom] .el-tooltip-v2__arrow{top:0}.el-tooltip-v2__content[data-side^=bottom] .el-tooltip-v2__arrow:before{border-bottom-color:var(--el-color-white);border-bottom-width:var(--el-tooltip-v2-arrow-border-width);border-top:0;bottom:calc(100% - 1px)}.el-tooltip-v2__content[data-side^=bottom] .el-tooltip-v2__arrow:after{border-bottom-color:var(--el-border-color);border-bottom-width:var(--el-tooltip-v2-arrow-border-width);border-top:0;bottom:100%;z-index:-1}.el-tooltip-v2__content[data-side^=left] .el-tooltip-v2__arrow{right:0}.el-tooltip-v2__content[data-side^=left] .el-tooltip-v2__arrow:before{border-left-color:var(--el-color-white);border-left-width:var(--el-tooltip-v2-arrow-border-width);border-right:0;left:calc(100% - 1px)}.el-tooltip-v2__content[data-side^=left] .el-tooltip-v2__arrow:after{border-left-color:var(--el-border-color);border-left-width:var(--el-tooltip-v2-arrow-border-width);border-right:0;left:100%;z-index:-1}.el-tooltip-v2__content[data-side^=right] .el-tooltip-v2__arrow{left:0}.el-tooltip-v2__content[data-side^=right] .el-tooltip-v2__arrow:before{border-left:0;border-right-color:var(--el-color-white);border-right-width:var(--el-tooltip-v2-arrow-border-width);right:calc(100% - 1px)}.el-tooltip-v2__content[data-side^=right] .el-tooltip-v2__arrow:after{border-left:0;border-right-color:var(--el-border-color);border-right-width:var(--el-tooltip-v2-arrow-border-width);right:100%;z-index:-1}.el-tooltip-v2__content.is-dark{--el-tooltip-v2-border-color:transparent;color:var(--el-color-white)}.el-tooltip-v2__content.is-dark,.el-tooltip-v2__content.is-dark .el-tooltip-v2__arrow{background-color:var(--el-color-black);border-color:transparent}.el-transfer{--el-transfer-border-color:var(--el-border-color-lighter);--el-transfer-border-radius:var(--el-border-radius-base);--el-transfer-panel-width:200px;--el-transfer-panel-header-height:40px;--el-transfer-panel-header-bg-color:var(--el-fill-color-light);--el-transfer-panel-footer-height:40px;--el-transfer-panel-body-height:278px;--el-transfer-item-height:30px;--el-transfer-filter-height:32px;font-size:var(--el-font-size-base)}.el-transfer__buttons{display:inline-block;padding:0 30px;vertical-align:middle}.el-transfer__button{vertical-align:top}.el-transfer__button:nth-child(2){margin:0 0 0 10px}.el-transfer__button i,.el-transfer__button span{font-size:14px}.el-transfer__button .el-icon+span{margin-left:0}.el-transfer-panel{background:var(--el-bg-color-overlay);box-sizing:border-box;display:inline-block;max-height:100%;overflow:hidden;position:relative;text-align:left;vertical-align:middle;width:var(--el-transfer-panel-width)}.el-transfer-panel__body{border-bottom:1px solid var(--el-transfer-border-color);border-bottom-left-radius:var(--el-transfer-border-radius);border-bottom-right-radius:var(--el-transfer-border-radius);border-left:1px solid var(--el-transfer-border-color);border-right:1px solid var(--el-transfer-border-color);height:var(--el-transfer-panel-body-height);overflow:hidden}.el-transfer-panel__body.is-with-footer{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.el-transfer-panel__list{box-sizing:border-box;height:var(--el-transfer-panel-body-height);list-style:none;margin:0;overflow:auto;padding:6px 0}.el-transfer-panel__list.is-filterable{height:calc(100% - var(--el-transfer-filter-height) - 30px);padding-top:0}.el-transfer-panel__item{display:block!important;height:var(--el-transfer-item-height);line-height:var(--el-transfer-item-height);padding-left:15px}.el-transfer-panel__item+.el-transfer-panel__item{margin-left:0}.el-transfer-panel__item.el-checkbox{color:var(--el-text-color-regular)}.el-transfer-panel__item:hover{color:var(--el-color-primary)}.el-transfer-panel__item.el-checkbox .el-checkbox__label{box-sizing:border-box;display:block;line-height:var(--el-transfer-item-height);overflow:hidden;padding-left:22px;text-overflow:ellipsis;white-space:nowrap;width:100%}.el-transfer-panel__item .el-checkbox__input{position:absolute;top:8px}.el-transfer-panel__filter{box-sizing:border-box;padding:15px;text-align:center}.el-transfer-panel__filter .el-input__inner{box-sizing:border-box;display:inline-block;font-size:12px;height:var(--el-transfer-filter-height);width:100%}.el-transfer-panel__filter .el-icon-circle-close{cursor:pointer}.el-transfer-panel .el-transfer-panel__header{align-items:center;background:var(--el-transfer-panel-header-bg-color);border:1px solid var(--el-transfer-border-color);border-top-left-radius:var(--el-transfer-border-radius);border-top-right-radius:var(--el-transfer-border-radius);box-sizing:border-box;color:var(--el-color-black);display:flex;height:var(--el-transfer-panel-header-height);margin:0;padding-left:15px}.el-transfer-panel .el-transfer-panel__header .el-checkbox{align-items:center;display:flex;position:relative;width:100%}.el-transfer-panel .el-transfer-panel__header .el-checkbox .el-checkbox__label{color:var(--el-text-color-primary);font-size:16px;font-weight:400}.el-transfer-panel .el-transfer-panel__header .el-checkbox .el-checkbox__label span{color:var(--el-text-color-secondary);font-size:12px;font-weight:400;position:absolute;right:15px;top:50%;transform:translate3d(0,-50%,0)}.el-transfer-panel .el-transfer-panel__footer{background:var(--el-bg-color-overlay);border:1px solid var(--el-transfer-border-color);border-bottom-left-radius:var(--el-transfer-border-radius);border-bottom-right-radius:var(--el-transfer-border-radius);height:var(--el-transfer-panel-footer-height);margin:0;padding:0}.el-transfer-panel .el-transfer-panel__footer:after{content:"";display:inline-block;height:100%;vertical-align:middle}.el-transfer-panel .el-transfer-panel__footer .el-checkbox{color:var(--el-text-color-regular);padding-left:20px}.el-transfer-panel .el-transfer-panel__empty{color:var(--el-text-color-secondary);height:var(--el-transfer-item-height);line-height:var(--el-transfer-item-height);margin:0;padding:6px 15px 0;text-align:center}.el-transfer-panel .el-checkbox__label{padding-left:8px}.el-transfer-panel .el-checkbox__inner{border-radius:3px;height:14px;width:14px}.el-transfer-panel .el-checkbox__inner:after{height:6px;left:4px;width:3px}.el-tree{--el-tree-node-content-height:26px;--el-tree-node-hover-bg-color:var(--el-fill-color-light);--el-tree-text-color:var(--el-text-color-regular);--el-tree-expand-icon-color:var(--el-text-color-placeholder);background:var(--el-fill-color-blank);color:var(--el-tree-text-color);cursor:default;font-size:var(--el-font-size-base);position:relative}.el-tree__empty-block{height:100%;min-height:60px;position:relative;text-align:center;width:100%}.el-tree__empty-text{color:var(--el-text-color-secondary);font-size:var(--el-font-size-base);left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.el-tree__drop-indicator{background-color:var(--el-color-primary);height:1px;left:0;position:absolute;right:0}.el-tree-node{outline:none;white-space:nowrap}.el-tree-node:focus>.el-tree-node__content{background-color:var(--el-tree-node-hover-bg-color)}.el-tree-node.is-drop-inner>.el-tree-node__content .el-tree-node__label{background-color:var(--el-color-primary);color:#fff}.el-tree-node__content{--el-checkbox-height:var(--el-tree-node-content-height);align-items:center;cursor:pointer;display:flex;height:var(--el-tree-node-content-height)}.el-tree-node__content>.el-tree-node__expand-icon{box-sizing:content-box;padding:6px}.el-tree-node__content>label.el-checkbox{margin-right:8px}.el-tree-node__content:hover{background-color:var(--el-tree-node-hover-bg-color)}.el-tree.is-dragging .el-tree-node__content{cursor:move}.el-tree.is-dragging .el-tree-node__content *{pointer-events:none}.el-tree.is-dragging.is-drop-not-allow .el-tree-node__content{cursor:not-allowed}.el-tree-node__expand-icon{color:var(--el-tree-expand-icon-color);cursor:pointer;font-size:12px;transform:rotate(0);transition:transform var(--el-transition-duration) ease-in-out}.el-tree-node__expand-icon.expanded{transform:rotate(90deg)}.el-tree-node__expand-icon.is-leaf{color:transparent;cursor:default;visibility:hidden}.el-tree-node__expand-icon.is-hidden{visibility:hidden}.el-tree-node__loading-icon{color:var(--el-tree-expand-icon-color);font-size:var(--el-font-size-base);margin-right:8px}.el-tree-node>.el-tree-node__children{background-color:transparent;overflow:hidden}.el-tree-node.is-expanded>.el-tree-node__children{display:block}.el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content{background-color:var(--el-color-primary-light-9)}.el-tree-select{--el-tree-node-content-height:26px;--el-tree-node-hover-bg-color:var(--el-fill-color-light);--el-tree-text-color:var(--el-text-color-regular);--el-tree-expand-icon-color:var(--el-text-color-placeholder)}.el-tree-select__popper .el-tree-node__expand-icon{margin-left:8px}.el-tree-select__popper .el-tree-node.is-checked>.el-tree-node__content .el-select-dropdown__item.selected:after{content:none}.el-tree-select__popper .el-select-dropdown__list>.el-select-dropdown__item{padding-left:32px}.el-tree-select__popper .el-select-dropdown__item{background:transparent!important;flex:1;height:20px;line-height:20px;padding-left:0}.el-upload{--el-upload-dragger-padding-horizontal:40px;--el-upload-dragger-padding-vertical:10px;align-items:center;cursor:pointer;display:inline-flex;justify-content:center;outline:none}.el-upload.is-disabled{cursor:not-allowed}.el-upload.is-disabled:focus{color:inherit}.el-upload.is-disabled:focus,.el-upload.is-disabled:focus .el-upload-dragger{border-color:var(--el-border-color-darker)}.el-upload.is-disabled .el-upload-dragger{background-color:var(--el-disabled-bg-color);cursor:not-allowed}.el-upload.is-disabled .el-upload-dragger .el-upload__text{color:var(--el-text-color-placeholder)}.el-upload.is-disabled .el-upload-dragger .el-upload__text em{color:var(--el-disabled-text-color)}.el-upload.is-disabled .el-upload-dragger:hover{border-color:var(--el-border-color-darker)}.el-upload__input{display:none}.el-upload__tip{color:var(--el-text-color-regular);font-size:12px;margin-top:7px}.el-upload iframe{filter:alpha(opacity=0);left:0;opacity:0;position:absolute;top:0;z-index:-1}.el-upload--picture-card{--el-upload-picture-card-size:148px;align-items:center;background-color:var(--el-fill-color-lighter);border:1px dashed var(--el-border-color-darker);border-radius:6px;box-sizing:border-box;cursor:pointer;display:inline-flex;height:var(--el-upload-picture-card-size);justify-content:center;vertical-align:top;width:var(--el-upload-picture-card-size)}.el-upload--picture-card>i{color:var(--el-text-color-secondary);font-size:28px}.el-upload--picture-card:hover{border-color:var(--el-color-primary);color:var(--el-color-primary)}.el-upload.is-drag{display:block}.el-upload:focus{color:var(--el-color-primary)}.el-upload:focus,.el-upload:focus .el-upload-dragger{border-color:var(--el-color-primary)}.el-upload-dragger{background-color:var(--el-fill-color-blank);border:1px dashed var(--el-border-color);border-radius:6px;box-sizing:border-box;cursor:pointer;overflow:hidden;padding:var(--el-upload-dragger-padding-horizontal) var(--el-upload-dragger-padding-vertical);position:relative;text-align:center}.el-upload-dragger .el-icon--upload{color:var(--el-text-color-placeholder);font-size:67px;line-height:50px;margin-bottom:16px}.el-upload-dragger+.el-upload__tip{text-align:center}.el-upload-dragger~.el-upload__files{border-top:var(--el-border);margin-top:7px;padding-top:5px}.el-upload-dragger .el-upload__text{color:var(--el-text-color-regular);font-size:14px;text-align:center}.el-upload-dragger .el-upload__text em{color:var(--el-color-primary);font-style:normal}.el-upload-dragger:hover{border-color:var(--el-color-primary)}.el-upload-dragger.is-dragover{background-color:var(--el-color-primary-light-9);border:2px dashed var(--el-color-primary);padding:calc(var(--el-upload-dragger-padding-horizontal) - 1px) calc(var(--el-upload-dragger-padding-vertical) - 1px)}.el-upload-list{list-style:none;margin:10px 0 0;padding:0;position:relative}.el-upload-list__item{border-radius:4px;box-sizing:border-box;color:var(--el-text-color-regular);font-size:14px;margin-bottom:5px;position:relative;transition:all .5s cubic-bezier(.55,0,.1,1);width:100%}.el-upload-list__item .el-progress{position:absolute;top:20px;width:100%}.el-upload-list__item .el-progress__text{position:absolute;right:0;top:-13px}.el-upload-list__item .el-progress-bar{margin-right:0;padding-right:0}.el-upload-list__item .el-icon--upload-success{color:var(--el-color-success)}.el-upload-list__item .el-icon--close{color:var(--el-text-color-regular);cursor:pointer;display:none;opacity:.75;position:absolute;right:5px;top:50%;transform:translateY(-50%);transition:opacity var(--el-transition-duration)}.el-upload-list__item .el-icon--close:hover{color:var(--el-color-primary);opacity:1}.el-upload-list__item .el-icon--close-tip{color:var(--el-color-primary);cursor:pointer;display:none;font-size:12px;font-style:normal;opacity:1;position:absolute;right:5px;top:1px}.el-upload-list__item:hover{background-color:var(--el-fill-color-light)}.el-upload-list__item:hover .el-icon--close{display:inline-flex}.el-upload-list__item:hover .el-progress__text{display:none}.el-upload-list__item .el-upload-list__item-info{display:inline-flex;flex-direction:column;justify-content:center;margin-left:4px;width:calc(100% - 30px)}.el-upload-list__item.is-success .el-upload-list__item-status-label{display:inline-flex}.el-upload-list__item.is-success .el-upload-list__item-name:focus,.el-upload-list__item.is-success .el-upload-list__item-name:hover{color:var(--el-color-primary);cursor:pointer}.el-upload-list__item.is-success:focus:not(:hover) .el-icon--close-tip{display:inline-block}.el-upload-list__item.is-success:active,.el-upload-list__item.is-success:not(.focusing):focus{outline-width:0}.el-upload-list__item.is-success:active .el-icon--close-tip,.el-upload-list__item.is-success:not(.focusing):focus .el-icon--close-tip{display:none}.el-upload-list__item.is-success:focus .el-upload-list__item-status-label,.el-upload-list__item.is-success:hover .el-upload-list__item-status-label{display:none;opacity:0}.el-upload-list__item-name{align-items:center;color:var(--el-text-color-regular);display:inline-flex;font-size:var(--el-font-size-base);padding:0 4px;text-align:center;transition:color var(--el-transition-duration)}.el-upload-list__item-name .el-icon{color:var(--el-text-color-secondary);margin-right:6px}.el-upload-list__item-file-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.el-upload-list__item-status-label{align-items:center;display:none;height:100%;justify-content:center;line-height:inherit;position:absolute;right:5px;top:0;transition:opacity var(--el-transition-duration)}.el-upload-list__item-delete{color:var(--el-text-color-regular);display:none;font-size:12px;position:absolute;right:10px;top:0}.el-upload-list__item-delete:hover{color:var(--el-color-primary)}.el-upload-list--picture-card{--el-upload-list-picture-card-size:148px;display:inline-flex;flex-wrap:wrap;margin:0}.el-upload-list--picture-card .el-upload-list__item{background-color:var(--el-fill-color-blank);border:1px solid var(--el-border-color);border-radius:6px;box-sizing:border-box;display:inline-flex;height:var(--el-upload-list-picture-card-size);margin:0 8px 8px 0;overflow:hidden;padding:0;width:var(--el-upload-list-picture-card-size)}.el-upload-list--picture-card .el-upload-list__item .el-icon--check,.el-upload-list--picture-card .el-upload-list__item .el-icon--circle-check{color:#fff}.el-upload-list--picture-card .el-upload-list__item .el-icon--close{display:none}.el-upload-list--picture-card .el-upload-list__item:hover .el-upload-list__item-status-label{display:block;opacity:0}.el-upload-list--picture-card .el-upload-list__item:hover .el-progress__text{display:block}.el-upload-list--picture-card .el-upload-list__item .el-upload-list__item-name{display:none}.el-upload-list--picture-card .el-upload-list__item-thumbnail{height:100%;-o-object-fit:contain;object-fit:contain;width:100%}.el-upload-list--picture-card .el-upload-list__item-status-label{background:var(--el-color-success);height:24px;right:-15px;text-align:center;top:-6px;transform:rotate(45deg);width:40px}.el-upload-list--picture-card .el-upload-list__item-status-label i{font-size:12px;margin-top:11px;transform:rotate(-45deg)}.el-upload-list--picture-card .el-upload-list__item-actions{align-items:center;background-color:var(--el-overlay-color-lighter);color:#fff;cursor:default;display:inline-flex;font-size:20px;height:100%;justify-content:center;left:0;opacity:0;position:absolute;top:0;transition:opacity var(--el-transition-duration);width:100%}.el-upload-list--picture-card .el-upload-list__item-actions span{cursor:pointer;display:none}.el-upload-list--picture-card .el-upload-list__item-actions span+span{margin-left:16px}.el-upload-list--picture-card .el-upload-list__item-actions .el-upload-list__item-delete{color:inherit;font-size:inherit;position:static}.el-upload-list--picture-card .el-upload-list__item-actions:hover{opacity:1}.el-upload-list--picture-card .el-upload-list__item-actions:hover span{display:inline-flex}.el-upload-list--picture-card .el-progress{bottom:auto;left:50%;top:50%;transform:translate(-50%,-50%);width:126px}.el-upload-list--picture-card .el-progress .el-progress__text{top:50%}.el-upload-list--picture .el-upload-list__item{align-items:center;background-color:var(--el-fill-color-blank);border:1px solid var(--el-border-color);border-radius:6px;box-sizing:border-box;display:flex;margin-top:10px;overflow:hidden;padding:10px;z-index:0}.el-upload-list--picture .el-upload-list__item .el-icon--check,.el-upload-list--picture .el-upload-list__item .el-icon--circle-check{color:#fff}.el-upload-list--picture .el-upload-list__item:hover .el-upload-list__item-status-label{display:inline-flex;opacity:0}.el-upload-list--picture .el-upload-list__item:hover .el-progress__text{display:block}.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name i{display:none}.el-upload-list--picture .el-upload-list__item .el-icon--close{top:5px;transform:translateY(0)}.el-upload-list--picture .el-upload-list__item-thumbnail{align-items:center;background-color:var(--el-color-white);display:inline-flex;height:70px;justify-content:center;-o-object-fit:contain;object-fit:contain;position:relative;width:70px;z-index:1}.el-upload-list--picture .el-upload-list__item-status-label{background:var(--el-color-success);height:26px;position:absolute;right:-17px;text-align:center;top:-7px;transform:rotate(45deg);width:46px}.el-upload-list--picture .el-upload-list__item-status-label i{font-size:12px;margin-top:12px;transform:rotate(-45deg)}.el-upload-list--picture .el-progress{position:relative;top:-7px}.el-upload-cover{cursor:default;height:100%;left:0;overflow:hidden;position:absolute;top:0;width:100%;z-index:10}.el-upload-cover:after{content:"";display:inline-block;height:100%;vertical-align:middle}.el-upload-cover img{display:block;height:100%;width:100%}.el-upload-cover__label{background:var(--el-color-success);height:24px;right:-15px;text-align:center;top:-6px;transform:rotate(45deg);width:40px}.el-upload-cover__label i{color:#fff;font-size:12px;margin-top:11px;transform:rotate(-45deg)}.el-upload-cover__progress{display:inline-block;position:static;vertical-align:middle;width:243px}.el-upload-cover__progress+.el-upload__inner{opacity:0}.el-upload-cover__content{height:100%;left:0;position:absolute;top:0;width:100%}.el-upload-cover__interact{background-color:var(--el-overlay-color-light);bottom:0;height:100%;left:0;position:absolute;text-align:center;width:100%}.el-upload-cover__interact .btn{color:#fff;cursor:pointer;display:inline-block;font-size:14px;margin-top:60px;transition:var(--el-transition-md-fade);vertical-align:middle}.el-upload-cover__interact .btn i{margin-top:0}.el-upload-cover__interact .btn span{opacity:0;transition:opacity .15s linear}.el-upload-cover__interact .btn:not(:first-child){margin-left:35px}.el-upload-cover__interact .btn:hover{transform:translateY(-13px)}.el-upload-cover__interact .btn:hover span{opacity:1}.el-upload-cover__interact .btn i{color:#fff;display:block;font-size:24px;line-height:inherit;margin:0 auto 5px}.el-upload-cover__title{background-color:#fff;bottom:0;color:var(--el-text-color-primary);font-size:14px;font-weight:400;height:36px;left:0;line-height:36px;margin:0;overflow:hidden;padding:0 10px;position:absolute;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:100%}.el-upload-cover+.el-upload__inner{opacity:0;position:relative;z-index:1}.el-vl__wrapper{position:relative}.el-vl__wrapper.always-on .el-virtual-scrollbar,.el-vl__wrapper:hover .el-virtual-scrollbar{opacity:1}.el-vl__window{scrollbar-width:none}.el-vl__window::-webkit-scrollbar{display:none}.el-virtual-scrollbar{opacity:0;transition:opacity .34s ease-out}.el-virtual-scrollbar.always-on{opacity:1}.el-vg__wrapper{position:relative}.el-popper{--el-popper-border-radius:var(--el-popover-border-radius,4px);border-radius:var(--el-popper-border-radius);font-size:12px;line-height:20px;min-width:10px;overflow-wrap:break-word;padding:5px 11px;position:absolute;visibility:visible;z-index:2000}.el-popper.is-dark{color:var(--el-bg-color)}.el-popper.is-dark,.el-popper.is-dark>.el-popper__arrow:before{background:var(--el-text-color-primary);border:1px solid var(--el-text-color-primary)}.el-popper.is-dark>.el-popper__arrow:before{right:0}.el-popper.is-light,.el-popper.is-light>.el-popper__arrow:before{background:var(--el-bg-color-overlay);border:1px solid var(--el-border-color-light)}.el-popper.is-light>.el-popper__arrow:before{right:0}.el-popper.is-pure{padding:0}.el-popper__arrow,.el-popper__arrow:before{height:10px;position:absolute;width:10px;z-index:-1}.el-popper__arrow:before{background:var(--el-text-color-primary);box-sizing:border-box;content:" ";transform:rotate(45deg)}.el-popper[data-popper-placement^=top]>.el-popper__arrow{bottom:-5px}.el-popper[data-popper-placement^=top]>.el-popper__arrow:before{border-bottom-right-radius:2px}.el-popper[data-popper-placement^=bottom]>.el-popper__arrow{top:-5px}.el-popper[data-popper-placement^=bottom]>.el-popper__arrow:before{border-top-left-radius:2px}.el-popper[data-popper-placement^=left]>.el-popper__arrow{right:-5px}.el-popper[data-popper-placement^=left]>.el-popper__arrow:before{border-top-right-radius:2px}.el-popper[data-popper-placement^=right]>.el-popper__arrow{left:-5px}.el-popper[data-popper-placement^=right]>.el-popper__arrow:before{border-bottom-left-radius:2px}.el-popper[data-popper-placement^=top]>.el-popper__arrow:before{border-left-color:transparent!important;border-top-color:transparent!important}.el-popper[data-popper-placement^=bottom]>.el-popper__arrow:before{border-bottom-color:transparent!important;border-right-color:transparent!important}.el-popper[data-popper-placement^=left]>.el-popper__arrow:before{border-bottom-color:transparent!important;border-left-color:transparent!important}.el-popper[data-popper-placement^=right]>.el-popper__arrow:before{border-right-color:transparent!important;border-top-color:transparent!important}.el-statistic{--el-statistic-title-font-weight:400;--el-statistic-title-font-size:var(--el-font-size-extra-small);--el-statistic-title-color:var(--el-text-color-regular);--el-statistic-content-font-weight:400;--el-statistic-content-font-size:var(--el-font-size-extra-large);--el-statistic-content-color:var(--el-text-color-primary)}.el-statistic__head{color:var(--el-statistic-title-color);font-size:var(--el-statistic-title-font-size);font-weight:var(--el-statistic-title-font-weight);line-height:20px;margin-bottom:4px}.el-statistic__content{color:var(--el-statistic-content-color);font-size:var(--el-statistic-content-font-size);font-weight:var(--el-statistic-content-font-weight)}.el-statistic__value{display:inline-block}.el-statistic__prefix{display:inline-block;margin-right:4px}.el-statistic__suffix{display:inline-block;margin-left:4px}.el-tour{--el-tour-width:520px;--el-tour-padding-primary:12px;--el-tour-font-line-height:var(--el-font-line-height-primary);--el-tour-title-font-size:16px;--el-tour-title-text-color:var(--el-text-color-primary);--el-tour-title-font-weight:400;--el-tour-close-color:var(--el-color-info);--el-tour-font-size:14px;--el-tour-color:var(--el-text-color-primary);--el-tour-bg-color:var(--el-bg-color);--el-tour-border-radius:4px}.el-tour__hollow{transition:all var(--el-transition-duration) ease}.el-tour__content{border-radius:var(--el-tour-border-radius);box-shadow:var(--el-box-shadow-light);outline:none;overflow-wrap:break-word;padding:var(--el-tour-padding-primary);width:var(--el-tour-width)}.el-tour__arrow,.el-tour__content{background:var(--el-tour-bg-color);box-sizing:border-box}.el-tour__arrow{height:10px;pointer-events:none;position:absolute;transform:rotate(45deg);width:10px}.el-tour__content[data-side^=top] .el-tour__arrow{border-left-color:transparent;border-top-color:transparent}.el-tour__content[data-side^=bottom] .el-tour__arrow{border-bottom-color:transparent;border-right-color:transparent}.el-tour__content[data-side^=left] .el-tour__arrow{border-bottom-color:transparent;border-left-color:transparent}.el-tour__content[data-side^=right] .el-tour__arrow{border-right-color:transparent;border-top-color:transparent}.el-tour__content[data-side^=top] .el-tour__arrow{bottom:-5px}.el-tour__content[data-side^=bottom] .el-tour__arrow{top:-5px}.el-tour__content[data-side^=left] .el-tour__arrow{right:-5px}.el-tour__content[data-side^=right] .el-tour__arrow{left:-5px}.el-tour__closebtn{background:transparent;border:none;cursor:pointer;font-size:var(--el-message-close-size,16px);height:40px;outline:none;padding:0;position:absolute;right:0;top:0;width:40px}.el-tour__closebtn .el-tour__close{color:var(--el-tour-close-color);font-size:inherit}.el-tour__closebtn:focus .el-tour__close,.el-tour__closebtn:hover .el-tour__close{color:var(--el-color-primary)}.el-tour__header{padding-bottom:var(--el-tour-padding-primary)}.el-tour__header.show-close{padding-right:calc(var(--el-tour-padding-primary) + var(--el-message-close-size, 16px))}.el-tour__title{color:var(--el-tour-title-text-color);font-size:var(--el-tour-title-font-size);font-weight:var(--el-tour-title-font-weight);line-height:var(--el-tour-font-line-height)}.el-tour__body{color:var(--el-tour-text-color);font-size:var(--el-tour-font-size)}.el-tour__body img,.el-tour__body video{max-width:100%}.el-tour__footer{box-sizing:border-box;display:flex;justify-content:space-between;padding-top:var(--el-tour-padding-primary)}.el-tour__content .el-tour-indicators{display:inline-block;flex:1}.el-tour__content .el-tour-indicator{background:var(--el-color-info-light-9);border-radius:50%;display:inline-block;height:6px;margin-right:6px;width:6px}.el-tour__content .el-tour-indicator.is-active{background:var(--el-color-primary)}.el-tour.el-tour--primary{--el-tour-title-text-color:#fff;--el-tour-text-color:#fff;--el-tour-bg-color:var(--el-color-primary);--el-tour-close-color:#fff}.el-tour.el-tour--primary .el-tour__closebtn:focus .el-tour__close,.el-tour.el-tour--primary .el-tour__closebtn:hover .el-tour__close{color:var(--el-tour-title-text-color)}.el-tour.el-tour--primary .el-button--default{background:#fff;border-color:var(--el-color-primary);color:var(--el-color-primary)}.el-tour.el-tour--primary .el-button--primary{border-color:#fff}.el-tour.el-tour--primary .el-tour-indicator{background:#ffffff26}.el-tour.el-tour--primary .el-tour-indicator.is-active{background:#fff}.el-tour-parent--hidden{overflow:hidden}.el-anchor{--el-anchor-bg-color:var(--el-bg-color);--el-anchor-padding-indent:14px;--el-anchor-line-height:22px;--el-anchor-font-size:12px;--el-anchor-color:var(--el-text-color-secondary);--el-anchor-active-color:var(--el-color-primary);--el-anchor-marker-bg-color:var(--el-color-primary);background-color:var(--el-anchor-bg-color);position:relative}.el-anchor__marker{background-color:var(--el-anchor-marker-bg-color);border-radius:4px;opacity:0;position:absolute;z-index:0}.el-anchor.el-anchor--vertical .el-anchor__marker{height:14px;left:0;top:8px;transition:top .25s ease-in-out,opacity .25s;width:4px}.el-anchor.el-anchor--vertical .el-anchor__list{padding-left:var(--el-anchor-padding-indent)}.el-anchor.el-anchor--vertical.el-anchor--underline:before{background-color:#0505050f;content:"";height:100%;left:0;position:absolute;width:2px}.el-anchor.el-anchor--vertical.el-anchor--underline .el-anchor__marker{border-radius:unset;width:2px}.el-anchor.el-anchor--horizontal .el-anchor__marker{bottom:0;height:2px;transition:left .25s ease-in-out,opacity .25s,width .25s;width:20px}.el-anchor.el-anchor--horizontal .el-anchor__list{display:flex;padding-bottom:4px}.el-anchor.el-anchor--horizontal .el-anchor__list .el-anchor__item{padding-left:16px}.el-anchor.el-anchor--horizontal .el-anchor__list .el-anchor__item:first-child{padding-left:0}.el-anchor.el-anchor--horizontal.el-anchor--underline:before{background-color:#0505050f;bottom:0;content:"";height:2px;position:absolute;width:100%}.el-anchor.el-anchor--horizontal.el-anchor--underline .el-anchor__marker{border-radius:unset;height:2px}.el-anchor__item{display:flex;flex-direction:column;overflow:hidden}.el-anchor__link{cursor:pointer;font-size:var(--el-anchor-font-size);line-height:var(--el-anchor-line-height);max-width:100%;outline:none;overflow:hidden;padding:4px 0;text-decoration:none;text-overflow:ellipsis;transition:color var(--el-transition-duration);white-space:nowrap}.el-anchor__link,.el-anchor__link:focus,.el-anchor__link:hover{color:var(--el-anchor-color)}.el-anchor__link.is-active{color:var(--el-anchor-active-color)}.el-anchor .el-anchor__list .el-anchor__item a{display:inline-block}.el-segmented--vertical{flex-direction:column}.el-segmented--vertical .el-segmented__item{padding:11px}.el-segmented{--el-segmented-color:var(--el-text-color-regular);--el-segmented-bg-color:var(--el-fill-color-light);--el-segmented-padding:2px;--el-segmented-item-selected-color:var(--el-color-white);--el-segmented-item-selected-bg-color:var(--el-color-primary);--el-segmented-item-selected-disabled-bg-color:var(--el-color-primary-light-5);--el-segmented-item-hover-color:var(--el-text-color-primary);--el-segmented-item-hover-bg-color:var(--el-fill-color-dark);--el-segmented-item-active-bg-color:var(--el-fill-color-darker);--el-segmented-item-disabled-color:var(--el-text-color-placeholder);align-items:stretch;background:var(--el-segmented-bg-color);border-radius:var(--el-border-radius-base);box-sizing:border-box;color:var(--el-segmented-color);display:inline-flex;font-size:14px;min-height:32px;padding:var(--el-segmented-padding)}.el-segmented__group{align-items:stretch;display:flex;position:relative;width:100%}.el-segmented__item-selected{background:var(--el-segmented-item-selected-bg-color);border-radius:calc(var(--el-border-radius-base) - 2px);height:100%;left:0;pointer-events:none;position:absolute;top:0;transition:all .3s;width:10px}.el-segmented__item-selected.is-disabled{background:var(--el-segmented-item-selected-disabled-bg-color)}.el-segmented__item-selected.is-focus-visible:before{border-radius:inherit;content:"";top:0;right:0;bottom:0;left:0;outline:2px solid var(--el-segmented-item-selected-bg-color);outline-offset:1px;position:absolute}.el-segmented__item{align-items:center;border-radius:calc(var(--el-border-radius-base) - 2px);cursor:pointer;display:flex;flex:1;padding:0 11px}.el-segmented__item:not(.is-disabled):not(.is-selected):hover{background:var(--el-segmented-item-hover-bg-color);color:var(--el-segmented-item-hover-color)}.el-segmented__item:not(.is-disabled):not(.is-selected):active{background:var(--el-segmented-item-active-bg-color)}.el-segmented__item.is-selected,.el-segmented__item.is-selected.is-disabled{color:var(--el-segmented-item-selected-color)}.el-segmented__item.is-disabled{color:var(--el-segmented-item-disabled-color);cursor:not-allowed}.el-segmented__item-input{height:0;margin:0;opacity:0;pointer-events:none;position:absolute;width:0}.el-segmented__item-label{flex:1;line-height:normal;overflow:hidden;text-align:center;text-overflow:ellipsis;transition:color .3s;white-space:nowrap;z-index:1}.el-segmented.is-block{display:flex}.el-segmented.is-block .el-segmented__item{min-width:0}.el-segmented--large{border-radius:var(--el-border-radius-base);font-size:16px;min-height:40px}.el-segmented--large .el-segmented__item-selected{border-radius:calc(var(--el-border-radius-base) - 2px)}.el-segmented--large .el-segmented--vertical .el-segmented__item{padding:11px}.el-segmented--large .el-segmented__item{border-radius:calc(var(--el-border-radius-base) - 2px);padding:0 11px}.el-segmented--small{border-radius:calc(var(--el-border-radius-base) - 1px);font-size:14px;min-height:24px}.el-segmented--small .el-segmented__item-selected{border-radius:calc(var(--el-border-radius-base) - 3px)}.el-segmented--small .el-segmented--vertical .el-segmented__item{padding:7px}.el-segmented--small .el-segmented__item{border-radius:calc(var(--el-border-radius-base) - 3px);padding:0 7px}.el-mention{position:relative;width:100%}.el-mention__popper.el-popper{background:var(--el-bg-color-overlay);box-shadow:var(--el-box-shadow-light)}.el-mention__popper.el-popper,.el-mention__popper.el-popper .el-popper__arrow:before{border:1px solid var(--el-border-color-light)}.el-mention__popper.el-popper[data-popper-placement^=top] .el-popper__arrow:before{border-left-color:transparent;border-top-color:transparent}.el-mention__popper.el-popper[data-popper-placement^=bottom] .el-popper__arrow:before{border-bottom-color:transparent;border-right-color:transparent}.el-mention__popper.el-popper[data-popper-placement^=left] .el-popper__arrow:before{border-bottom-color:transparent;border-left-color:transparent}.el-mention__popper.el-popper[data-popper-placement^=right] .el-popper__arrow:before{border-right-color:transparent;border-top-color:transparent}.el-mention.is-disabled{pointer-events:none}.el-mention-dropdown{--el-mention-font-size:var(--el-font-size-base);--el-mention-bg-color:var(--el-bg-color-overlay);--el-mention-shadow:var(--el-box-shadow-light);--el-mention-border:1px solid var(--el-border-color-light);--el-mention-option-color:var(--el-text-color-regular);--el-mention-option-height:34px;--el-mention-option-min-width:100px;--el-mention-option-hover-background:var(--el-fill-color-light);--el-mention-option-selected-color:var(--el-color-primary);--el-mention-option-disabled-color:var(--el-text-color-placeholder);--el-mention-option-loading-color:var(--el-text-color-secondary);--el-mention-option-loading-padding:10px 0;--el-mention-max-height:174px;--el-mention-padding:6px 0;--el-mention-header-padding:10px;--el-mention-footer-padding:10px}.el-mention-dropdown__item{box-sizing:border-box;color:var(--el-mention-option-color);cursor:pointer;font-size:var(--el-mention-font-size);height:var(--el-mention-option-height);line-height:var(--el-mention-option-height);min-width:var(--el-mention-option-min-width);overflow:hidden;padding:0 20px;position:relative;text-overflow:ellipsis;white-space:nowrap}.el-mention-dropdown__item.is-hovering{background-color:var(--el-mention-option-hover-background)}.el-mention-dropdown__item.is-selected{color:var(--el-mention-option-selected-color);font-weight:700}.el-mention-dropdown__item.is-disabled{background-color:unset;color:var(--el-mention-option-disabled-color);cursor:not-allowed}.el-mention-dropdown{border-radius:var(--el-border-radius-base);box-sizing:border-box;z-index:calc(var(--el-index-top) + 1)}.el-mention-dropdown__loading{color:var(--el-mention-option-loading-color);font-size:12px;margin:0;min-width:var(--el-mention-option-min-width);padding:10px 0;text-align:center}.el-mention-dropdown__wrap{max-height:var(--el-mention-max-height)}.el-mention-dropdown__list{box-sizing:border-box;list-style:none;margin:0;padding:var(--el-mention-padding)}.el-mention-dropdown__header{border-bottom:var(--el-mention-border);padding:var(--el-mention-header-padding)}.el-mention-dropdown__footer{border-top:var(--el-mention-border);padding:var(--el-mention-footer-padding)}html.dark{color-scheme:dark;--el-color-primary:#409eff;--el-color-primary-light-3:rgb(50.8,116.6,184.5);--el-color-primary-light-5:rgb(42,89,137.5);--el-color-primary-light-7:rgb(33.2,61.4,90.5);--el-color-primary-light-8:rgb(28.8,47.6,67);--el-color-primary-light-9:rgb(24.4,33.8,43.5);--el-color-primary-dark-2:rgb(102.2,177.4,255);--el-color-success:#67c23a;--el-color-success-light-3:rgb(78.1,141.8,46.6);--el-color-success-light-5:rgb(61.5,107,39);--el-color-success-light-7:rgb(44.9,72.2,31.4);--el-color-success-light-8:rgb(36.6,54.8,27.6);--el-color-success-light-9:rgb(28.3,37.4,23.8);--el-color-success-dark-2:rgb(133.4,206.2,97.4);--el-color-warning:#e6a23c;--el-color-warning-light-3:rgb(167,119.4,48);--el-color-warning-light-5:#7d5b28;--el-color-warning-light-7:rgb(83,62.6,32);--el-color-warning-light-8:rgb(62,48.4,28);--el-color-warning-light-9:rgb(41,34.2,24);--el-color-warning-dark-2:rgb(235,180.6,99);--el-color-danger:#f56c6c;--el-color-danger-light-3:rgb(177.5,81.6,81.6);--el-color-danger-light-5:rgb(132.5,64,64);--el-color-danger-light-7:rgb(87.5,46.4,46.4);--el-color-danger-light-8:rgb(65,37.6,37.6);--el-color-danger-light-9:rgb(42.5,28.8,28.8);--el-color-danger-dark-2:rgb(247,137.4,137.4);--el-color-error:#f56c6c;--el-color-error-light-3:rgb(177.5,81.6,81.6);--el-color-error-light-5:rgb(132.5,64,64);--el-color-error-light-7:rgb(87.5,46.4,46.4);--el-color-error-light-8:rgb(65,37.6,37.6);--el-color-error-light-9:rgb(42.5,28.8,28.8);--el-color-error-dark-2:rgb(247,137.4,137.4);--el-color-info:#909399;--el-color-info-light-3:rgb(106.8,108.9,113.1);--el-color-info-light-5:rgb(82,83.5,86.5);--el-color-info-light-7:rgb(57.2,58.1,59.9);--el-color-info-light-8:rgb(44.8,45.4,46.6);--el-color-info-light-9:rgb(32.4,32.7,33.3);--el-color-info-dark-2:rgb(166.2,168.6,173.4);--el-box-shadow:0px 12px 32px 4px rgba(0,0,0,.36),0px 8px 20px rgba(0,0,0,.72);--el-box-shadow-light:0px 0px 12px rgba(0,0,0,.72);--el-box-shadow-lighter:0px 0px 6px rgba(0,0,0,.72);--el-box-shadow-dark:0px 16px 48px 16px rgba(0,0,0,.72),0px 12px 32px #000000,0px 8px 16px -8px #000000;--el-bg-color-page:#0a0a0a;--el-bg-color:#141414;--el-bg-color-overlay:#1d1e1f;--el-text-color-primary:#E5EAF3;--el-text-color-regular:#CFD3DC;--el-text-color-secondary:#A3A6AD;--el-text-color-placeholder:#8D9095;--el-text-color-disabled:#6C6E72;--el-border-color-darker:#636466;--el-border-color-dark:#58585B;--el-border-color:#4C4D4F;--el-border-color-light:#414243;--el-border-color-lighter:#363637;--el-border-color-extra-light:#2B2B2C;--el-fill-color-darker:#424243;--el-fill-color-dark:#39393A;--el-fill-color:#303030;--el-fill-color-light:#262727;--el-fill-color-lighter:#1D1D1D;--el-fill-color-extra-light:#191919;--el-fill-color-blank:transparent;--el-mask-color:rgba(0,0,0,.8);--el-mask-color-extra-light:rgba(0,0,0,.3)}html.dark .el-button{--el-button-disabled-text-color:rgba(255,255,255,.5)}html.dark .el-card{--el-card-bg-color:var(--el-bg-color-overlay)}html.dark .el-empty{--el-empty-fill-color-0:var(--el-color-black);--el-empty-fill-color-1:#4b4b52;--el-empty-fill-color-2:#36383d;--el-empty-fill-color-3:#1e1e20;--el-empty-fill-color-4:#262629;--el-empty-fill-color-5:#202124;--el-empty-fill-color-6:#212224;--el-empty-fill-color-7:#1b1c1f;--el-empty-fill-color-8:#1c1d1f;--el-empty-fill-color-9:#18181a}:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex}h1{font-size:3.2em;line-height:1.1}.card{padding:2em}#app{width:100%;margin:0 auto}.el-checkbox__label{padding-left:4px}.serial-config[data-v-3ee89321]{margin:0}.config-container[data-v-3ee89321]{display:flex;flex-direction:row;gap:15px;align-items:center}.port-section[data-v-3ee89321]{display:flex;align-items:center;gap:10px;white-space:nowrap}.port-list[data-v-3ee89321]{width:120px}.config-section[data-v-3ee89321]{display:flex;flex-wrap:nowrap;margin:0}.el-form--inline .el-form-item[data-v-3ee89321]{margin-right:8px;margin-bottom:0}[data-v-3ee89321] .el-form-item__label{padding-right:4px}[data-v-3ee89321] .el-input__wrapper{padding:0 8px}/** +@charset "UTF-8";:root{--el-color-white:#ffffff;--el-color-black:#000000;--el-color-primary-rgb:64,158,255;--el-color-success-rgb:103,194,58;--el-color-warning-rgb:230,162,60;--el-color-danger-rgb:245,108,108;--el-color-error-rgb:245,108,108;--el-color-info-rgb:144,147,153;--el-font-size-extra-large:20px;--el-font-size-large:18px;--el-font-size-medium:16px;--el-font-size-base:14px;--el-font-size-small:13px;--el-font-size-extra-small:12px;--el-font-family:"Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","微软雅黑",Arial,sans-serif;--el-font-weight-primary:500;--el-font-line-height-primary:24px;--el-index-normal:1;--el-index-top:1000;--el-index-popper:2000;--el-border-radius-base:4px;--el-border-radius-small:2px;--el-border-radius-round:20px;--el-border-radius-circle:100%;--el-transition-duration:.3s;--el-transition-duration-fast:.2s;--el-transition-function-ease-in-out-bezier:cubic-bezier(.645,.045,.355,1);--el-transition-function-fast-bezier:cubic-bezier(.23,1,.32,1);--el-transition-all:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);--el-transition-fade:opacity var(--el-transition-duration) var(--el-transition-function-fast-bezier);--el-transition-md-fade:transform var(--el-transition-duration) var(--el-transition-function-fast-bezier),opacity var(--el-transition-duration) var(--el-transition-function-fast-bezier);--el-transition-fade-linear:opacity var(--el-transition-duration-fast) linear;--el-transition-border:border-color var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-transition-box-shadow:box-shadow var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-transition-color:color var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-component-size-large:40px;--el-component-size:32px;--el-component-size-small:24px;color-scheme:light;--el-color-primary:#409eff;--el-color-primary-light-3:rgb(121.3,187.1,255);--el-color-primary-light-5:rgb(159.5,206.5,255);--el-color-primary-light-7:rgb(197.7,225.9,255);--el-color-primary-light-8:rgb(216.8,235.6,255);--el-color-primary-light-9:rgb(235.9,245.3,255);--el-color-primary-dark-2:rgb(51.2,126.4,204);--el-color-success:#67c23a;--el-color-success-light-3:rgb(148.6,212.3,117.1);--el-color-success-light-5:rgb(179,224.5,156.5);--el-color-success-light-7:rgb(209.4,236.7,195.9);--el-color-success-light-8:rgb(224.6,242.8,215.6);--el-color-success-light-9:rgb(239.8,248.9,235.3);--el-color-success-dark-2:rgb(82.4,155.2,46.4);--el-color-warning:#e6a23c;--el-color-warning-light-3:rgb(237.5,189.9,118.5);--el-color-warning-light-5:rgb(242.5,208.5,157.5);--el-color-warning-light-7:rgb(247.5,227.1,196.5);--el-color-warning-light-8:rgb(250,236.4,216);--el-color-warning-light-9:rgb(252.5,245.7,235.5);--el-color-warning-dark-2:rgb(184,129.6,48);--el-color-danger:#f56c6c;--el-color-danger-light-3:rgb(248,152.1,152.1);--el-color-danger-light-5:rgb(250,181.5,181.5);--el-color-danger-light-7:rgb(252,210.9,210.9);--el-color-danger-light-8:rgb(253,225.6,225.6);--el-color-danger-light-9:rgb(254,240.3,240.3);--el-color-danger-dark-2:rgb(196,86.4,86.4);--el-color-error:#f56c6c;--el-color-error-light-3:rgb(248,152.1,152.1);--el-color-error-light-5:rgb(250,181.5,181.5);--el-color-error-light-7:rgb(252,210.9,210.9);--el-color-error-light-8:rgb(253,225.6,225.6);--el-color-error-light-9:rgb(254,240.3,240.3);--el-color-error-dark-2:rgb(196,86.4,86.4);--el-color-info:#909399;--el-color-info-light-3:rgb(177.3,179.4,183.6);--el-color-info-light-5:rgb(199.5,201,204);--el-color-info-light-7:rgb(221.7,222.6,224.4);--el-color-info-light-8:rgb(232.8,233.4,234.6);--el-color-info-light-9:rgb(243.9,244.2,244.8);--el-color-info-dark-2:rgb(115.2,117.6,122.4);--el-bg-color:#ffffff;--el-bg-color-page:#f2f3f5;--el-bg-color-overlay:#ffffff;--el-text-color-primary:#303133;--el-text-color-regular:#606266;--el-text-color-secondary:#909399;--el-text-color-placeholder:#a8abb2;--el-text-color-disabled:#c0c4cc;--el-border-color:#dcdfe6;--el-border-color-light:#e4e7ed;--el-border-color-lighter:#ebeef5;--el-border-color-extra-light:#f2f6fc;--el-border-color-dark:#d4d7de;--el-border-color-darker:#cdd0d6;--el-fill-color:#f0f2f5;--el-fill-color-light:#f5f7fa;--el-fill-color-lighter:#fafafa;--el-fill-color-extra-light:#fafcff;--el-fill-color-dark:#ebedf0;--el-fill-color-darker:#e6e8eb;--el-fill-color-blank:#ffffff;--el-box-shadow:0px 12px 32px 4px rgba(0,0,0,.04),0px 8px 20px rgba(0,0,0,.08);--el-box-shadow-light:0px 0px 12px rgba(0,0,0,.12);--el-box-shadow-lighter:0px 0px 6px rgba(0,0,0,.12);--el-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);--el-disabled-bg-color:var(--el-fill-color-light);--el-disabled-text-color:var(--el-text-color-placeholder);--el-disabled-border-color:var(--el-border-color-light);--el-overlay-color:rgba(0,0,0,.8);--el-overlay-color-light:rgba(0,0,0,.7);--el-overlay-color-lighter:rgba(0,0,0,.5);--el-mask-color:rgba(255,255,255,.9);--el-mask-color-extra-light:rgba(255,255,255,.3);--el-border-width:1px;--el-border-style:solid;--el-border-color-hover:var(--el-text-color-disabled);--el-border:var(--el-border-width) var(--el-border-style) var(--el-border-color);--el-svg-monochrome-grey:var(--el-border-color)}.fade-in-linear-enter-active,.fade-in-linear-leave-active{transition:var(--el-transition-fade-linear)}.fade-in-linear-enter-from,.fade-in-linear-leave-to{opacity:0}.el-fade-in-linear-enter-active,.el-fade-in-linear-leave-active{transition:var(--el-transition-fade-linear)}.el-fade-in-linear-enter-from,.el-fade-in-linear-leave-to{opacity:0}.el-fade-in-enter-active,.el-fade-in-leave-active{transition:all var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-fade-in-enter-from,.el-fade-in-leave-active{opacity:0}.el-zoom-in-center-enter-active,.el-zoom-in-center-leave-active{transition:all var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-zoom-in-center-enter-from,.el-zoom-in-center-leave-active{opacity:0;transform:scaleX(0)}.el-zoom-in-top-enter-active,.el-zoom-in-top-leave-active{opacity:1;transform:scaleY(1);transform-origin:center top;transition:var(--el-transition-md-fade)}.el-zoom-in-top-enter-active[data-popper-placement^=top],.el-zoom-in-top-leave-active[data-popper-placement^=top]{transform-origin:center bottom}.el-zoom-in-top-enter-from,.el-zoom-in-top-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-bottom-enter-active,.el-zoom-in-bottom-leave-active{opacity:1;transform:scaleY(1);transform-origin:center bottom;transition:var(--el-transition-md-fade)}.el-zoom-in-bottom-enter-from,.el-zoom-in-bottom-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-left-enter-active,.el-zoom-in-left-leave-active{opacity:1;transform:scale(1);transform-origin:top left;transition:var(--el-transition-md-fade)}.el-zoom-in-left-enter-from,.el-zoom-in-left-leave-active{opacity:0;transform:scale(.45)}.collapse-transition{transition:var(--el-transition-duration) height ease-in-out,var(--el-transition-duration) padding-top ease-in-out,var(--el-transition-duration) padding-bottom ease-in-out}.el-collapse-transition-enter-active,.el-collapse-transition-leave-active{transition:var(--el-transition-duration) max-height ease-in-out,var(--el-transition-duration) padding-top ease-in-out,var(--el-transition-duration) padding-bottom ease-in-out}.horizontal-collapse-transition{transition:var(--el-transition-duration) width ease-in-out,var(--el-transition-duration) padding-left ease-in-out,var(--el-transition-duration) padding-right ease-in-out}.el-list-enter-active,.el-list-leave-active{transition:all 1s}.el-list-enter-from,.el-list-leave-to{opacity:0;transform:translateY(-30px)}.el-list-leave-active{position:absolute!important}.el-opacity-transition{transition:opacity var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-icon-loading{animation:rotating 2s linear infinite}.el-icon--right{margin-left:5px}.el-icon--left{margin-right:5px}@keyframes rotating{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.el-icon{--color:inherit;align-items:center;display:inline-flex;height:1em;justify-content:center;line-height:1em;position:relative;width:1em;fill:currentColor;color:var(--color);font-size:inherit}.el-icon.is-loading{animation:rotating 2s linear infinite}.el-icon svg{height:1em;width:1em}.el-affix--fixed{position:fixed}.el-alert{--el-alert-padding:8px 16px;--el-alert-border-radius-base:var(--el-border-radius-base);--el-alert-title-font-size:14px;--el-alert-title-with-description-font-size:16px;--el-alert-description-font-size:14px;--el-alert-close-font-size:16px;--el-alert-close-customed-font-size:14px;--el-alert-icon-size:16px;--el-alert-icon-large-size:28px;align-items:center;background-color:var(--el-color-white);border-radius:var(--el-alert-border-radius-base);box-sizing:border-box;display:flex;margin:0;opacity:1;overflow:hidden;padding:var(--el-alert-padding);position:relative;transition:opacity var(--el-transition-duration-fast);width:100%}.el-alert.is-light .el-alert__close-btn{color:var(--el-text-color-placeholder)}.el-alert.is-dark .el-alert__close-btn,.el-alert.is-dark .el-alert__description{color:var(--el-color-white)}.el-alert.is-center{justify-content:center}.el-alert--success{--el-alert-bg-color:var(--el-color-success-light-9)}.el-alert--success.is-light{background-color:var(--el-alert-bg-color)}.el-alert--success.is-light,.el-alert--success.is-light .el-alert__description{color:var(--el-color-success)}.el-alert--success.is-dark{background-color:var(--el-color-success);color:var(--el-color-white)}.el-alert--info{--el-alert-bg-color:var(--el-color-info-light-9)}.el-alert--info.is-light{background-color:var(--el-alert-bg-color)}.el-alert--info.is-light,.el-alert--info.is-light .el-alert__description{color:var(--el-color-info)}.el-alert--info.is-dark{background-color:var(--el-color-info);color:var(--el-color-white)}.el-alert--warning{--el-alert-bg-color:var(--el-color-warning-light-9)}.el-alert--warning.is-light{background-color:var(--el-alert-bg-color)}.el-alert--warning.is-light,.el-alert--warning.is-light .el-alert__description{color:var(--el-color-warning)}.el-alert--warning.is-dark{background-color:var(--el-color-warning);color:var(--el-color-white)}.el-alert--error{--el-alert-bg-color:var(--el-color-error-light-9)}.el-alert--error.is-light{background-color:var(--el-alert-bg-color)}.el-alert--error.is-light,.el-alert--error.is-light .el-alert__description{color:var(--el-color-error)}.el-alert--error.is-dark{background-color:var(--el-color-error);color:var(--el-color-white)}.el-alert__content{display:flex;flex-direction:column;gap:4px}.el-alert .el-alert__icon{font-size:var(--el-alert-icon-size);margin-right:8px;width:var(--el-alert-icon-size)}.el-alert .el-alert__icon.is-big{font-size:var(--el-alert-icon-large-size);margin-right:12px;width:var(--el-alert-icon-large-size)}.el-alert__title{font-size:var(--el-alert-title-font-size);line-height:24px}.el-alert__title.with-description{font-size:var(--el-alert-title-with-description-font-size)}.el-alert .el-alert__description{font-size:var(--el-alert-description-font-size);margin:0}.el-alert .el-alert__close-btn{cursor:pointer;font-size:var(--el-alert-close-font-size);opacity:1;position:absolute;right:16px;top:12px}.el-alert .el-alert__close-btn.is-customed{font-size:var(--el-alert-close-customed-font-size);font-style:normal;line-height:24px;top:8px}.el-alert-fade-enter-from,.el-alert-fade-leave-active{opacity:0}.el-aside{box-sizing:border-box;flex-shrink:0;overflow:auto;width:var(--el-aside-width,300px)}.el-autocomplete{--el-input-text-color:var(--el-text-color-regular);--el-input-border:var(--el-border);--el-input-hover-border:var(--el-border-color-hover);--el-input-focus-border:var(--el-color-primary);--el-input-transparent-border:0 0 0 1px transparent inset;--el-input-border-color:var(--el-border-color);--el-input-border-radius:var(--el-border-radius-base);--el-input-bg-color:var(--el-fill-color-blank);--el-input-icon-color:var(--el-text-color-placeholder);--el-input-placeholder-color:var(--el-text-color-placeholder);--el-input-hover-border-color:var(--el-border-color-hover);--el-input-clear-hover-color:var(--el-text-color-secondary);--el-input-focus-border-color:var(--el-color-primary);--el-input-width:100%;display:inline-block;position:relative;width:var(--el-input-width)}.el-autocomplete__popper.el-popper{background:var(--el-bg-color-overlay);box-shadow:var(--el-box-shadow-light)}.el-autocomplete__popper.el-popper,.el-autocomplete__popper.el-popper .el-popper__arrow:before{border:1px solid var(--el-border-color-light)}.el-autocomplete__popper.el-popper[data-popper-placement^=top] .el-popper__arrow:before{border-left-color:transparent;border-top-color:transparent}.el-autocomplete__popper.el-popper[data-popper-placement^=bottom] .el-popper__arrow:before{border-bottom-color:transparent;border-right-color:transparent}.el-autocomplete__popper.el-popper[data-popper-placement^=left] .el-popper__arrow:before{border-bottom-color:transparent;border-left-color:transparent}.el-autocomplete__popper.el-popper[data-popper-placement^=right] .el-popper__arrow:before{border-right-color:transparent;border-top-color:transparent}.el-autocomplete-suggestion{border-radius:var(--el-border-radius-base);box-sizing:border-box}.el-autocomplete-suggestion__wrap{box-sizing:border-box;max-height:280px;padding:10px 0}.el-autocomplete-suggestion__list{margin:0;padding:0}.el-autocomplete-suggestion li{color:var(--el-text-color-regular);cursor:pointer;font-size:var(--el-font-size-base);line-height:34px;list-style:none;margin:0;overflow:hidden;padding:0 20px;text-align:left;text-overflow:ellipsis;white-space:nowrap}.el-autocomplete-suggestion li.highlighted,.el-autocomplete-suggestion li:hover{background-color:var(--el-fill-color-light)}.el-autocomplete-suggestion li.divider{border-top:1px solid var(--el-color-black);margin-top:6px}.el-autocomplete-suggestion li.divider:last-child{margin-bottom:-6px}.el-autocomplete-suggestion.is-loading li{color:var(--el-text-color-secondary);font-size:20px;height:100px;line-height:100px;text-align:center}.el-autocomplete-suggestion.is-loading li:after{content:"";display:inline-block;height:100%;vertical-align:middle}.el-autocomplete-suggestion.is-loading li:hover{background-color:var(--el-bg-color-overlay)}.el-autocomplete-suggestion.is-loading .el-icon-loading{vertical-align:middle}.el-avatar{--el-avatar-text-color:var(--el-color-white);--el-avatar-bg-color:var(--el-text-color-disabled);--el-avatar-text-size:14px;--el-avatar-icon-size:18px;--el-avatar-border-radius:var(--el-border-radius-base);--el-avatar-size-large:56px;--el-avatar-size-small:24px;--el-avatar-size:40px;align-items:center;background:var(--el-avatar-bg-color);box-sizing:border-box;color:var(--el-avatar-text-color);display:inline-flex;font-size:var(--el-avatar-text-size);height:var(--el-avatar-size);justify-content:center;outline:none;overflow:hidden;text-align:center;width:var(--el-avatar-size)}.el-avatar>img{display:block;height:100%;width:100%}.el-avatar--circle{border-radius:50%}.el-avatar--square{border-radius:var(--el-avatar-border-radius)}.el-avatar--icon{font-size:var(--el-avatar-icon-size)}.el-avatar--small{--el-avatar-size:24px}.el-avatar--large{--el-avatar-size:56px}.el-backtop{--el-backtop-bg-color:var(--el-bg-color-overlay);--el-backtop-text-color:var(--el-color-primary);--el-backtop-hover-bg-color:var(--el-border-color-extra-light);align-items:center;background-color:var(--el-backtop-bg-color);border-radius:50%;box-shadow:var(--el-box-shadow-lighter);color:var(--el-backtop-text-color);cursor:pointer;display:flex;font-size:20px;height:40px;justify-content:center;position:fixed;width:40px;z-index:5}.el-backtop:hover{background-color:var(--el-backtop-hover-bg-color)}.el-backtop__icon{font-size:20px}.el-badge{--el-badge-bg-color:var(--el-color-danger);--el-badge-radius:10px;--el-badge-font-size:12px;--el-badge-padding:6px;--el-badge-size:18px;display:inline-block;position:relative;vertical-align:middle;width:-moz-fit-content;width:fit-content}.el-badge__content{align-items:center;background-color:var(--el-badge-bg-color);border:1px solid var(--el-bg-color);border-radius:var(--el-badge-radius);color:var(--el-color-white);display:inline-flex;font-size:var(--el-badge-font-size);height:var(--el-badge-size);justify-content:center;padding:0 var(--el-badge-padding);white-space:nowrap}.el-badge__content.is-fixed{position:absolute;right:calc(1px + var(--el-badge-size)/2);top:0;transform:translateY(-50%) translate(100%);z-index:var(--el-index-normal)}.el-badge__content.is-fixed.is-dot{right:5px}.el-badge__content.is-dot{border-radius:50%;height:8px;padding:0;right:0;width:8px}.el-badge__content.is-hide-zero{display:none}.el-badge__content--primary{background-color:var(--el-color-primary)}.el-badge__content--success{background-color:var(--el-color-success)}.el-badge__content--warning{background-color:var(--el-color-warning)}.el-badge__content--info{background-color:var(--el-color-info)}.el-badge__content--danger{background-color:var(--el-color-danger)}.el-breadcrumb{font-size:14px;line-height:1}.el-breadcrumb:after,.el-breadcrumb:before{content:"";display:table}.el-breadcrumb:after{clear:both}.el-breadcrumb__separator{color:var(--el-text-color-placeholder);font-weight:700;margin:0 9px}.el-breadcrumb__separator.el-icon{font-weight:400;margin:0 6px}.el-breadcrumb__separator.el-icon svg{vertical-align:middle}.el-breadcrumb__item{align-items:center;display:inline-flex;float:left}.el-breadcrumb__inner{color:var(--el-text-color-regular)}.el-breadcrumb__inner a,.el-breadcrumb__inner.is-link{color:var(--el-text-color-primary);font-weight:700;text-decoration:none;transition:var(--el-transition-color)}.el-breadcrumb__inner a:hover,.el-breadcrumb__inner.is-link:hover{color:var(--el-color-primary);cursor:pointer}.el-breadcrumb__item:last-child .el-breadcrumb__inner,.el-breadcrumb__item:last-child .el-breadcrumb__inner a,.el-breadcrumb__item:last-child .el-breadcrumb__inner a:hover,.el-breadcrumb__item:last-child .el-breadcrumb__inner:hover{color:var(--el-text-color-regular);cursor:text;font-weight:400}.el-breadcrumb__item:last-child .el-breadcrumb__separator{display:none}.el-button-group{display:inline-block;vertical-align:middle}.el-button-group:after,.el-button-group:before{content:"";display:table}.el-button-group:after{clear:both}.el-button-group>.el-button{float:left;position:relative}.el-button-group>.el-button+.el-button{margin-left:0}.el-button-group>.el-button:first-child{border-bottom-right-radius:0;border-top-right-radius:0}.el-button-group>.el-button:last-child{border-bottom-left-radius:0;border-top-left-radius:0}.el-button-group>.el-button:first-child:last-child{border-bottom-left-radius:var(--el-border-radius-base);border-bottom-right-radius:var(--el-border-radius-base);border-top-left-radius:var(--el-border-radius-base);border-top-right-radius:var(--el-border-radius-base)}.el-button-group>.el-button:first-child:last-child.is-round{border-radius:var(--el-border-radius-round)}.el-button-group>.el-button:first-child:last-child.is-circle{border-radius:50%}.el-button-group>.el-button:not(:first-child):not(:last-child){border-radius:0}.el-button-group>.el-button:not(:last-child){margin-right:-1px}.el-button-group>.el-button.is-active,.el-button-group>.el-button:active,.el-button-group>.el-button:focus,.el-button-group>.el-button:hover{z-index:1}.el-button-group>.el-dropdown>.el-button{border-bottom-left-radius:0;border-left-color:var(--el-button-divide-border-color);border-top-left-radius:0}.el-button-group .el-button--primary:first-child{border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--primary:last-child{border-left-color:var(--el-button-divide-border-color)}.el-button-group .el-button--primary:not(:first-child):not(:last-child){border-left-color:var(--el-button-divide-border-color);border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--success:first-child{border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--success:last-child{border-left-color:var(--el-button-divide-border-color)}.el-button-group .el-button--success:not(:first-child):not(:last-child){border-left-color:var(--el-button-divide-border-color);border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--warning:first-child{border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--warning:last-child{border-left-color:var(--el-button-divide-border-color)}.el-button-group .el-button--warning:not(:first-child):not(:last-child){border-left-color:var(--el-button-divide-border-color);border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--danger:first-child{border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--danger:last-child{border-left-color:var(--el-button-divide-border-color)}.el-button-group .el-button--danger:not(:first-child):not(:last-child){border-left-color:var(--el-button-divide-border-color);border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--info:first-child{border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--info:last-child{border-left-color:var(--el-button-divide-border-color)}.el-button-group .el-button--info:not(:first-child):not(:last-child){border-left-color:var(--el-button-divide-border-color);border-right-color:var(--el-button-divide-border-color)}.el-button{--el-button-font-weight:var(--el-font-weight-primary);--el-button-border-color:var(--el-border-color);--el-button-bg-color:var(--el-fill-color-blank);--el-button-text-color:var(--el-text-color-regular);--el-button-disabled-text-color:var(--el-disabled-text-color);--el-button-disabled-bg-color:var(--el-fill-color-blank);--el-button-disabled-border-color:var(--el-border-color-light);--el-button-divide-border-color:rgba(255,255,255,.5);--el-button-hover-text-color:var(--el-color-primary);--el-button-hover-bg-color:var(--el-color-primary-light-9);--el-button-hover-border-color:var(--el-color-primary-light-7);--el-button-active-text-color:var(--el-button-hover-text-color);--el-button-active-border-color:var(--el-color-primary);--el-button-active-bg-color:var(--el-button-hover-bg-color);--el-button-outline-color:var(--el-color-primary-light-5);--el-button-hover-link-text-color:var(--el-text-color-secondary);--el-button-active-color:var(--el-text-color-primary);align-items:center;-webkit-appearance:none;background-color:var(--el-button-bg-color);border:var(--el-border);border-color:var(--el-button-border-color);box-sizing:border-box;color:var(--el-button-text-color);cursor:pointer;display:inline-flex;font-weight:var(--el-button-font-weight);height:32px;justify-content:center;line-height:1;outline:none;text-align:center;transition:.1s;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;white-space:nowrap}.el-button:hover{background-color:var(--el-button-hover-bg-color);border-color:var(--el-button-hover-border-color);color:var(--el-button-hover-text-color);outline:none}.el-button:active{background-color:var(--el-button-active-bg-color);border-color:var(--el-button-active-border-color);color:var(--el-button-active-text-color);outline:none}.el-button:focus-visible{outline:2px solid var(--el-button-outline-color);outline-offset:1px;transition:outline-offset 0s,outline 0s}.el-button>span{align-items:center;display:inline-flex}.el-button+.el-button{margin-left:12px}.el-button{border-radius:var(--el-border-radius-base);font-size:var(--el-font-size-base)}.el-button,.el-button.is-round{padding:8px 15px}.el-button::-moz-focus-inner{border:0}.el-button [class*=el-icon]+span{margin-left:6px}.el-button [class*=el-icon] svg{vertical-align:bottom}.el-button.is-plain{--el-button-hover-text-color:var(--el-color-primary);--el-button-hover-bg-color:var(--el-fill-color-blank);--el-button-hover-border-color:var(--el-color-primary)}.el-button.is-active{background-color:var(--el-button-active-bg-color);border-color:var(--el-button-active-border-color);color:var(--el-button-active-text-color);outline:none}.el-button.is-disabled,.el-button.is-disabled:hover{background-color:var(--el-button-disabled-bg-color);background-image:none;border-color:var(--el-button-disabled-border-color);color:var(--el-button-disabled-text-color);cursor:not-allowed}.el-button.is-loading{pointer-events:none;position:relative}.el-button.is-loading:before{background-color:var(--el-mask-color-extra-light);border-radius:inherit;bottom:-1px;content:"";left:-1px;pointer-events:none;position:absolute;right:-1px;top:-1px;z-index:1}.el-button.is-round{border-radius:var(--el-border-radius-round)}.el-button.is-circle{border-radius:50%;padding:8px;width:32px}.el-button.is-text{background-color:transparent;border:0 solid transparent;color:var(--el-button-text-color)}.el-button.is-text.is-disabled{background-color:transparent!important;color:var(--el-button-disabled-text-color)}.el-button.is-text:not(.is-disabled):hover{background-color:var(--el-fill-color-light)}.el-button.is-text:not(.is-disabled):focus-visible{outline:2px solid var(--el-button-outline-color);outline-offset:1px;transition:outline-offset 0s,outline 0s}.el-button.is-text:not(.is-disabled):active{background-color:var(--el-fill-color)}.el-button.is-text:not(.is-disabled).is-has-bg{background-color:var(--el-fill-color-light)}.el-button.is-text:not(.is-disabled).is-has-bg:hover{background-color:var(--el-fill-color)}.el-button.is-text:not(.is-disabled).is-has-bg:active{background-color:var(--el-fill-color-dark)}.el-button__text--expand{letter-spacing:.3em;margin-right:-.3em}.el-button.is-link{background:transparent;border-color:transparent;color:var(--el-button-text-color);height:auto;padding:2px}.el-button.is-link:hover{color:var(--el-button-hover-link-text-color)}.el-button.is-link.is-disabled{background-color:transparent!important;border-color:transparent!important;color:var(--el-button-disabled-text-color)}.el-button.is-link:not(.is-disabled):active,.el-button.is-link:not(.is-disabled):hover{background-color:transparent;border-color:transparent}.el-button.is-link:not(.is-disabled):active{color:var(--el-button-active-color)}.el-button--text{background:transparent;border-color:transparent;color:var(--el-color-primary);padding-left:0;padding-right:0}.el-button--text.is-disabled{background-color:transparent!important;border-color:transparent!important;color:var(--el-button-disabled-text-color)}.el-button--text:not(.is-disabled):hover{background-color:transparent;border-color:transparent;color:var(--el-color-primary-light-3)}.el-button--text:not(.is-disabled):active{background-color:transparent;border-color:transparent;color:var(--el-color-primary-dark-2)}.el-button__link--expand{letter-spacing:.3em;margin-right:-.3em}.el-button--primary{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-primary);--el-button-border-color:var(--el-color-primary);--el-button-outline-color:var(--el-color-primary-light-5);--el-button-active-color:var(--el-color-primary-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-primary-light-5);--el-button-hover-bg-color:var(--el-color-primary-light-3);--el-button-hover-border-color:var(--el-color-primary-light-3);--el-button-active-bg-color:var(--el-color-primary-dark-2);--el-button-active-border-color:var(--el-color-primary-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-primary-light-5);--el-button-disabled-border-color:var(--el-color-primary-light-5)}.el-button--primary.is-link,.el-button--primary.is-plain,.el-button--primary.is-text{--el-button-text-color:var(--el-color-primary);--el-button-bg-color:var(--el-color-primary-light-9);--el-button-border-color:var(--el-color-primary-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-primary);--el-button-hover-border-color:var(--el-color-primary);--el-button-active-text-color:var(--el-color-white)}.el-button--primary.is-link.is-disabled,.el-button--primary.is-link.is-disabled:active,.el-button--primary.is-link.is-disabled:focus,.el-button--primary.is-link.is-disabled:hover,.el-button--primary.is-plain.is-disabled,.el-button--primary.is-plain.is-disabled:active,.el-button--primary.is-plain.is-disabled:focus,.el-button--primary.is-plain.is-disabled:hover,.el-button--primary.is-text.is-disabled,.el-button--primary.is-text.is-disabled:active,.el-button--primary.is-text.is-disabled:focus,.el-button--primary.is-text.is-disabled:hover{background-color:var(--el-color-primary-light-9);border-color:var(--el-color-primary-light-8);color:var(--el-color-primary-light-5)}.el-button--success{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-success);--el-button-border-color:var(--el-color-success);--el-button-outline-color:var(--el-color-success-light-5);--el-button-active-color:var(--el-color-success-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-success-light-5);--el-button-hover-bg-color:var(--el-color-success-light-3);--el-button-hover-border-color:var(--el-color-success-light-3);--el-button-active-bg-color:var(--el-color-success-dark-2);--el-button-active-border-color:var(--el-color-success-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-success-light-5);--el-button-disabled-border-color:var(--el-color-success-light-5)}.el-button--success.is-link,.el-button--success.is-plain,.el-button--success.is-text{--el-button-text-color:var(--el-color-success);--el-button-bg-color:var(--el-color-success-light-9);--el-button-border-color:var(--el-color-success-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-success);--el-button-hover-border-color:var(--el-color-success);--el-button-active-text-color:var(--el-color-white)}.el-button--success.is-link.is-disabled,.el-button--success.is-link.is-disabled:active,.el-button--success.is-link.is-disabled:focus,.el-button--success.is-link.is-disabled:hover,.el-button--success.is-plain.is-disabled,.el-button--success.is-plain.is-disabled:active,.el-button--success.is-plain.is-disabled:focus,.el-button--success.is-plain.is-disabled:hover,.el-button--success.is-text.is-disabled,.el-button--success.is-text.is-disabled:active,.el-button--success.is-text.is-disabled:focus,.el-button--success.is-text.is-disabled:hover{background-color:var(--el-color-success-light-9);border-color:var(--el-color-success-light-8);color:var(--el-color-success-light-5)}.el-button--warning{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-warning);--el-button-border-color:var(--el-color-warning);--el-button-outline-color:var(--el-color-warning-light-5);--el-button-active-color:var(--el-color-warning-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-warning-light-5);--el-button-hover-bg-color:var(--el-color-warning-light-3);--el-button-hover-border-color:var(--el-color-warning-light-3);--el-button-active-bg-color:var(--el-color-warning-dark-2);--el-button-active-border-color:var(--el-color-warning-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-warning-light-5);--el-button-disabled-border-color:var(--el-color-warning-light-5)}.el-button--warning.is-link,.el-button--warning.is-plain,.el-button--warning.is-text{--el-button-text-color:var(--el-color-warning);--el-button-bg-color:var(--el-color-warning-light-9);--el-button-border-color:var(--el-color-warning-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-warning);--el-button-hover-border-color:var(--el-color-warning);--el-button-active-text-color:var(--el-color-white)}.el-button--warning.is-link.is-disabled,.el-button--warning.is-link.is-disabled:active,.el-button--warning.is-link.is-disabled:focus,.el-button--warning.is-link.is-disabled:hover,.el-button--warning.is-plain.is-disabled,.el-button--warning.is-plain.is-disabled:active,.el-button--warning.is-plain.is-disabled:focus,.el-button--warning.is-plain.is-disabled:hover,.el-button--warning.is-text.is-disabled,.el-button--warning.is-text.is-disabled:active,.el-button--warning.is-text.is-disabled:focus,.el-button--warning.is-text.is-disabled:hover{background-color:var(--el-color-warning-light-9);border-color:var(--el-color-warning-light-8);color:var(--el-color-warning-light-5)}.el-button--danger{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-danger);--el-button-border-color:var(--el-color-danger);--el-button-outline-color:var(--el-color-danger-light-5);--el-button-active-color:var(--el-color-danger-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-danger-light-5);--el-button-hover-bg-color:var(--el-color-danger-light-3);--el-button-hover-border-color:var(--el-color-danger-light-3);--el-button-active-bg-color:var(--el-color-danger-dark-2);--el-button-active-border-color:var(--el-color-danger-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-danger-light-5);--el-button-disabled-border-color:var(--el-color-danger-light-5)}.el-button--danger.is-link,.el-button--danger.is-plain,.el-button--danger.is-text{--el-button-text-color:var(--el-color-danger);--el-button-bg-color:var(--el-color-danger-light-9);--el-button-border-color:var(--el-color-danger-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-danger);--el-button-hover-border-color:var(--el-color-danger);--el-button-active-text-color:var(--el-color-white)}.el-button--danger.is-link.is-disabled,.el-button--danger.is-link.is-disabled:active,.el-button--danger.is-link.is-disabled:focus,.el-button--danger.is-link.is-disabled:hover,.el-button--danger.is-plain.is-disabled,.el-button--danger.is-plain.is-disabled:active,.el-button--danger.is-plain.is-disabled:focus,.el-button--danger.is-plain.is-disabled:hover,.el-button--danger.is-text.is-disabled,.el-button--danger.is-text.is-disabled:active,.el-button--danger.is-text.is-disabled:focus,.el-button--danger.is-text.is-disabled:hover{background-color:var(--el-color-danger-light-9);border-color:var(--el-color-danger-light-8);color:var(--el-color-danger-light-5)}.el-button--info{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-info);--el-button-border-color:var(--el-color-info);--el-button-outline-color:var(--el-color-info-light-5);--el-button-active-color:var(--el-color-info-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-info-light-5);--el-button-hover-bg-color:var(--el-color-info-light-3);--el-button-hover-border-color:var(--el-color-info-light-3);--el-button-active-bg-color:var(--el-color-info-dark-2);--el-button-active-border-color:var(--el-color-info-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-info-light-5);--el-button-disabled-border-color:var(--el-color-info-light-5)}.el-button--info.is-link,.el-button--info.is-plain,.el-button--info.is-text{--el-button-text-color:var(--el-color-info);--el-button-bg-color:var(--el-color-info-light-9);--el-button-border-color:var(--el-color-info-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-info);--el-button-hover-border-color:var(--el-color-info);--el-button-active-text-color:var(--el-color-white)}.el-button--info.is-link.is-disabled,.el-button--info.is-link.is-disabled:active,.el-button--info.is-link.is-disabled:focus,.el-button--info.is-link.is-disabled:hover,.el-button--info.is-plain.is-disabled,.el-button--info.is-plain.is-disabled:active,.el-button--info.is-plain.is-disabled:focus,.el-button--info.is-plain.is-disabled:hover,.el-button--info.is-text.is-disabled,.el-button--info.is-text.is-disabled:active,.el-button--info.is-text.is-disabled:focus,.el-button--info.is-text.is-disabled:hover{background-color:var(--el-color-info-light-9);border-color:var(--el-color-info-light-8);color:var(--el-color-info-light-5)}.el-button--large{--el-button-size:40px;height:var(--el-button-size)}.el-button--large [class*=el-icon]+span{margin-left:8px}.el-button--large{border-radius:var(--el-border-radius-base);font-size:var(--el-font-size-base);padding:12px 19px}.el-button--large.is-round{padding:12px 19px}.el-button--large.is-circle{padding:12px;width:var(--el-button-size)}.el-button--small{--el-button-size:24px;height:var(--el-button-size)}.el-button--small [class*=el-icon]+span{margin-left:4px}.el-button--small{border-radius:calc(var(--el-border-radius-base) - 1px);font-size:12px;padding:5px 11px}.el-button--small.is-round{padding:5px 11px}.el-button--small.is-circle{padding:5px;width:var(--el-button-size)}.el-calendar{--el-calendar-border:var(--el-table-border,1px solid var(--el-border-color-lighter));--el-calendar-header-border-bottom:var(--el-calendar-border);--el-calendar-selected-bg-color:var(--el-color-primary-light-9);--el-calendar-cell-width:85px;background-color:var(--el-fill-color-blank)}.el-calendar__header{border-bottom:var(--el-calendar-header-border-bottom);display:flex;justify-content:space-between;padding:12px 20px}.el-calendar__title{align-self:center;color:var(--el-text-color)}.el-calendar__body{padding:12px 20px 35px}.el-calendar-table{table-layout:fixed;width:100%}.el-calendar-table thead th{color:var(--el-text-color-regular);font-weight:400;padding:12px 0}.el-calendar-table:not(.is-range) td.next,.el-calendar-table:not(.is-range) td.prev{color:var(--el-text-color-placeholder)}.el-calendar-table td{border-bottom:var(--el-calendar-border);border-right:var(--el-calendar-border);transition:background-color var(--el-transition-duration-fast) ease;vertical-align:top}.el-calendar-table td.is-selected{background-color:var(--el-calendar-selected-bg-color)}.el-calendar-table td.is-today{color:var(--el-color-primary)}.el-calendar-table tr:first-child td{border-top:var(--el-calendar-border)}.el-calendar-table tr td:first-child{border-left:var(--el-calendar-border)}.el-calendar-table tr.el-calendar-table__row--hide-border td{border-top:none}.el-calendar-table .el-calendar-day{box-sizing:border-box;height:var(--el-calendar-cell-width);padding:8px}.el-calendar-table .el-calendar-day:hover{background-color:var(--el-calendar-selected-bg-color);cursor:pointer}.el-card{--el-card-border-color:var(--el-border-color-light);--el-card-border-radius:4px;--el-card-padding:20px;--el-card-bg-color:var(--el-fill-color-blank);background-color:var(--el-card-bg-color);border:1px solid var(--el-card-border-color);border-radius:var(--el-card-border-radius);color:var(--el-text-color-primary);overflow:hidden;transition:var(--el-transition-duration)}.el-card.is-always-shadow,.el-card.is-hover-shadow:focus,.el-card.is-hover-shadow:hover{box-shadow:var(--el-box-shadow-light)}.el-card__header{border-bottom:1px solid var(--el-card-border-color);box-sizing:border-box;padding:calc(var(--el-card-padding) - 2px) var(--el-card-padding)}.el-card__body{padding:var(--el-card-padding)}.el-card__footer{border-top:1px solid var(--el-card-border-color);box-sizing:border-box;padding:calc(var(--el-card-padding) - 2px) var(--el-card-padding)}.el-carousel__item{display:inline-block;height:100%;left:0;overflow:hidden;position:absolute;top:0;width:100%}.el-carousel__item,.el-carousel__item.is-active{z-index:calc(var(--el-index-normal) - 1)}.el-carousel__item--card,.el-carousel__item.is-animating{transition:transform .4s ease-in-out}.el-carousel__item--card{width:50%}.el-carousel__item--card.is-in-stage{cursor:pointer;z-index:var(--el-index-normal)}.el-carousel__item--card.is-in-stage.is-hover .el-carousel__mask,.el-carousel__item--card.is-in-stage:hover .el-carousel__mask{opacity:.12}.el-carousel__item--card.is-active{z-index:calc(var(--el-index-normal) + 1)}.el-carousel__item--card-vertical{height:50%;width:100%}.el-carousel__mask{background-color:var(--el-color-white);height:100%;left:0;opacity:.24;position:absolute;top:0;transition:var(--el-transition-duration-fast);width:100%}.el-carousel{--el-carousel-arrow-font-size:12px;--el-carousel-arrow-size:36px;--el-carousel-arrow-background:rgba(31,45,61,.11);--el-carousel-arrow-hover-background:rgba(31,45,61,.23);--el-carousel-indicator-width:30px;--el-carousel-indicator-height:2px;--el-carousel-indicator-padding-horizontal:4px;--el-carousel-indicator-padding-vertical:12px;--el-carousel-indicator-out-color:var(--el-border-color-hover);position:relative}.el-carousel--horizontal,.el-carousel--vertical{overflow:hidden}.el-carousel__container{height:300px;position:relative}.el-carousel__arrow{align-items:center;background-color:var(--el-carousel-arrow-background);border:none;border-radius:50%;color:#fff;cursor:pointer;display:inline-flex;font-size:var(--el-carousel-arrow-font-size);height:var(--el-carousel-arrow-size);justify-content:center;margin:0;outline:none;padding:0;position:absolute;text-align:center;top:50%;transform:translateY(-50%);transition:var(--el-transition-duration);width:var(--el-carousel-arrow-size);z-index:10}.el-carousel__arrow--left{left:16px}.el-carousel__arrow--right{right:16px}.el-carousel__arrow:hover{background-color:var(--el-carousel-arrow-hover-background)}.el-carousel__arrow i{cursor:pointer}.el-carousel__indicators{list-style:none;margin:0;padding:0;position:absolute;z-index:calc(var(--el-index-normal) + 1)}.el-carousel__indicators--horizontal{bottom:0;left:50%;transform:translate(-50%)}.el-carousel__indicators--vertical{right:0;top:50%;transform:translateY(-50%)}.el-carousel__indicators--outside{bottom:calc(var(--el-carousel-indicator-height) + var(--el-carousel-indicator-padding-vertical)*2);position:static;text-align:center;transform:none}.el-carousel__indicators--outside .el-carousel__indicator:hover button{opacity:.64}.el-carousel__indicators--outside button{background-color:var(--el-carousel-indicator-out-color);opacity:.24}.el-carousel__indicators--right{right:0}.el-carousel__indicators--labels{left:0;right:0;text-align:center;transform:none}.el-carousel__indicators--labels .el-carousel__button{color:#000;font-size:12px;height:auto;padding:2px 18px;width:auto}.el-carousel__indicators--labels .el-carousel__indicator{padding:6px 4px}.el-carousel__indicator{background-color:transparent;cursor:pointer}.el-carousel__indicator:hover button{opacity:.72}.el-carousel__indicator--horizontal{display:inline-block;padding:var(--el-carousel-indicator-padding-vertical) var(--el-carousel-indicator-padding-horizontal)}.el-carousel__indicator--vertical{padding:var(--el-carousel-indicator-padding-horizontal) var(--el-carousel-indicator-padding-vertical)}.el-carousel__indicator--vertical .el-carousel__button{height:calc(var(--el-carousel-indicator-width)/2);width:var(--el-carousel-indicator-height)}.el-carousel__indicator.is-active button{opacity:1}.el-carousel__button{background-color:#fff;border:none;cursor:pointer;display:block;height:var(--el-carousel-indicator-height);margin:0;opacity:.48;outline:none;padding:0;transition:var(--el-transition-duration);width:var(--el-carousel-indicator-width)}.carousel-arrow-left-enter-from,.carousel-arrow-left-leave-active{opacity:0;transform:translateY(-50%) translate(-10px)}.carousel-arrow-right-enter-from,.carousel-arrow-right-leave-active{opacity:0;transform:translateY(-50%) translate(10px)}.el-transitioning{filter:url(#elCarouselHorizontal)}.el-transitioning-vertical{filter:url(#elCarouselVertical)}.el-cascader-panel{--el-cascader-menu-text-color:var(--el-text-color-regular);--el-cascader-menu-selected-text-color:var(--el-color-primary);--el-cascader-menu-fill:var(--el-bg-color-overlay);--el-cascader-menu-font-size:var(--el-font-size-base);--el-cascader-menu-radius:var(--el-border-radius-base);--el-cascader-menu-border:solid 1px var(--el-border-color-light);--el-cascader-menu-shadow:var(--el-box-shadow-light);--el-cascader-node-background-hover:var(--el-fill-color-light);--el-cascader-node-color-disabled:var(--el-text-color-placeholder);--el-cascader-color-empty:var(--el-text-color-placeholder);--el-cascader-tag-background:var(--el-fill-color);border-radius:var(--el-cascader-menu-radius);display:flex;font-size:var(--el-cascader-menu-font-size)}.el-cascader-panel.is-bordered{border:var(--el-cascader-menu-border);border-radius:var(--el-cascader-menu-radius)}.el-cascader-menu{border-right:var(--el-cascader-menu-border);box-sizing:border-box;color:var(--el-cascader-menu-text-color);min-width:180px}.el-cascader-menu:last-child{border-right:none}.el-cascader-menu:last-child .el-cascader-node{padding-right:20px}.el-cascader-menu__wrap.el-scrollbar__wrap{height:204px}.el-cascader-menu__list{box-sizing:border-box;list-style:none;margin:0;min-height:100%;padding:6px 0;position:relative}.el-cascader-menu__hover-zone{height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.el-cascader-menu__empty-text{align-items:center;color:var(--el-cascader-color-empty);display:flex;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.el-cascader-menu__empty-text .is-loading{margin-right:2px}.el-cascader-node{align-items:center;display:flex;height:34px;line-height:34px;outline:none;padding:0 30px 0 20px;position:relative}.el-cascader-node.is-selectable.in-active-path{color:var(--el-cascader-menu-text-color)}.el-cascader-node.in-active-path,.el-cascader-node.is-active,.el-cascader-node.is-selectable.in-checked-path{color:var(--el-cascader-menu-selected-text-color);font-weight:700}.el-cascader-node:not(.is-disabled){cursor:pointer}.el-cascader-node:not(.is-disabled):focus,.el-cascader-node:not(.is-disabled):hover{background:var(--el-cascader-node-background-hover)}.el-cascader-node.is-disabled{color:var(--el-cascader-node-color-disabled);cursor:not-allowed}.el-cascader-node__prefix{left:10px;position:absolute}.el-cascader-node__postfix{position:absolute;right:10px}.el-cascader-node__label{flex:1;overflow:hidden;padding:0 8px;text-align:left;text-overflow:ellipsis;white-space:nowrap}.el-cascader-node>.el-checkbox,.el-cascader-node>.el-radio{margin-right:0}.el-cascader-node>.el-radio .el-radio__label{padding-left:0}.el-cascader{--el-cascader-menu-text-color:var(--el-text-color-regular);--el-cascader-menu-selected-text-color:var(--el-color-primary);--el-cascader-menu-fill:var(--el-bg-color-overlay);--el-cascader-menu-font-size:var(--el-font-size-base);--el-cascader-menu-radius:var(--el-border-radius-base);--el-cascader-menu-border:solid 1px var(--el-border-color-light);--el-cascader-menu-shadow:var(--el-box-shadow-light);--el-cascader-node-background-hover:var(--el-fill-color-light);--el-cascader-node-color-disabled:var(--el-text-color-placeholder);--el-cascader-color-empty:var(--el-text-color-placeholder);--el-cascader-tag-background:var(--el-fill-color);display:inline-block;font-size:var(--el-font-size-base);line-height:32px;outline:none;position:relative;vertical-align:middle}.el-cascader:not(.is-disabled):hover .el-input__wrapper{box-shadow:0 0 0 1px var(--el-input-hover-border-color) inset;cursor:pointer}.el-cascader .el-input{cursor:pointer;display:flex}.el-cascader .el-input .el-input__inner{cursor:pointer;text-overflow:ellipsis}.el-cascader .el-input .el-input__suffix-inner .el-icon{height:calc(100% - 2px)}.el-cascader .el-input .el-input__suffix-inner .el-icon svg{vertical-align:middle}.el-cascader .el-input .icon-arrow-down{font-size:14px;transition:transform var(--el-transition-duration)}.el-cascader .el-input .icon-arrow-down.is-reverse{transform:rotate(180deg)}.el-cascader .el-input .icon-circle-close:hover{color:var(--el-input-clear-hover-color,var(--el-text-color-secondary))}.el-cascader .el-input.is-focus .el-input__wrapper{box-shadow:0 0 0 1px var(--el-input-focus-border-color,var(--el-color-primary)) inset}.el-cascader--large{font-size:14px;line-height:40px}.el-cascader--large .el-cascader__tags{gap:6px;padding:8px}.el-cascader--large .el-cascader__search-input{height:24px;margin-left:7px}.el-cascader--small{font-size:12px;line-height:24px}.el-cascader--small .el-cascader__tags{gap:4px;padding:2px}.el-cascader--small .el-cascader__search-input{height:20px;margin-left:5px}.el-cascader.is-disabled .el-cascader__label{color:var(--el-disabled-text-color);z-index:calc(var(--el-index-normal) + 1)}.el-cascader__dropdown{--el-cascader-menu-text-color:var(--el-text-color-regular);--el-cascader-menu-selected-text-color:var(--el-color-primary);--el-cascader-menu-fill:var(--el-bg-color-overlay);--el-cascader-menu-font-size:var(--el-font-size-base);--el-cascader-menu-radius:var(--el-border-radius-base);--el-cascader-menu-border:solid 1px var(--el-border-color-light);--el-cascader-menu-shadow:var(--el-box-shadow-light);--el-cascader-node-background-hover:var(--el-fill-color-light);--el-cascader-node-color-disabled:var(--el-text-color-placeholder);--el-cascader-color-empty:var(--el-text-color-placeholder);--el-cascader-tag-background:var(--el-fill-color);border-radius:var(--el-cascader-menu-radius);font-size:var(--el-cascader-menu-font-size)}.el-cascader__dropdown.el-popper{background:var(--el-cascader-menu-fill)}.el-cascader__dropdown.el-popper,.el-cascader__dropdown.el-popper .el-popper__arrow:before{border:var(--el-cascader-menu-border)}.el-cascader__dropdown.el-popper[data-popper-placement^=top] .el-popper__arrow:before{border-left-color:transparent;border-top-color:transparent}.el-cascader__dropdown.el-popper[data-popper-placement^=bottom] .el-popper__arrow:before{border-bottom-color:transparent;border-right-color:transparent}.el-cascader__dropdown.el-popper[data-popper-placement^=left] .el-popper__arrow:before{border-bottom-color:transparent;border-left-color:transparent}.el-cascader__dropdown.el-popper[data-popper-placement^=right] .el-popper__arrow:before{border-right-color:transparent;border-top-color:transparent}.el-cascader__dropdown.el-popper{box-shadow:var(--el-cascader-menu-shadow)}.el-cascader__tags{box-sizing:border-box;display:flex;flex-wrap:wrap;gap:6px;left:0;line-height:normal;padding:4px;position:absolute;right:30px;text-align:left;top:50%;transform:translateY(-50%)}.el-cascader__tags .el-tag{align-items:center;background:var(--el-cascader-tag-background);display:inline-flex;max-width:100%;text-overflow:ellipsis}.el-cascader__tags .el-tag.el-tag--dark,.el-cascader__tags .el-tag.el-tag--plain{background-color:var(--el-tag-bg-color)}.el-cascader__tags .el-tag:not(.is-hit){border-color:transparent}.el-cascader__tags .el-tag:not(.is-hit).el-tag--dark,.el-cascader__tags .el-tag:not(.is-hit).el-tag--plain{border-color:var(--el-tag-border-color)}.el-cascader__tags .el-tag>span{flex:1;overflow:hidden;text-overflow:ellipsis}.el-cascader__tags .el-tag .el-icon-close{background-color:var(--el-text-color-placeholder);color:var(--el-color-white);flex:none}.el-cascader__tags .el-tag .el-icon-close:hover{background-color:var(--el-text-color-secondary)}.el-cascader__tags .el-tag+input{margin-left:0}.el-cascader__tags.is-validate{right:55px}.el-cascader__collapse-tags{white-space:normal;z-index:var(--el-index-normal)}.el-cascader__collapse-tags .el-tag{align-items:center;background:var(--el-fill-color);display:inline-flex;max-width:100%;text-overflow:ellipsis}.el-cascader__collapse-tags .el-tag.el-tag--dark,.el-cascader__collapse-tags .el-tag.el-tag--plain{background-color:var(--el-tag-bg-color)}.el-cascader__collapse-tags .el-tag:not(.is-hit){border-color:transparent}.el-cascader__collapse-tags .el-tag:not(.is-hit).el-tag--dark,.el-cascader__collapse-tags .el-tag:not(.is-hit).el-tag--plain{border-color:var(--el-tag-border-color)}.el-cascader__collapse-tags .el-tag>span{flex:1;overflow:hidden;text-overflow:ellipsis}.el-cascader__collapse-tags .el-tag .el-icon-close{background-color:var(--el-text-color-placeholder);color:var(--el-color-white);flex:none}.el-cascader__collapse-tags .el-tag .el-icon-close:hover{background-color:var(--el-text-color-secondary)}.el-cascader__collapse-tags .el-tag+input{margin-left:0}.el-cascader__suggestion-panel{border-radius:var(--el-cascader-menu-radius)}.el-cascader__suggestion-list{color:var(--el-cascader-menu-text-color);font-size:var(--el-font-size-base);margin:0;max-height:204px;padding:6px 0;text-align:center}.el-cascader__suggestion-item{align-items:center;cursor:pointer;display:flex;height:34px;justify-content:space-between;outline:none;padding:0 15px;text-align:left}.el-cascader__suggestion-item:focus,.el-cascader__suggestion-item:hover{background:var(--el-cascader-node-background-hover)}.el-cascader__suggestion-item.is-checked{color:var(--el-cascader-menu-selected-text-color);font-weight:700}.el-cascader__suggestion-item>span{margin-right:10px}.el-cascader__empty-text{color:var(--el-cascader-color-empty);margin:10px 0}.el-cascader__search-input{background:transparent;border:none;box-sizing:border-box;color:var(--el-cascader-menu-text-color);flex:1;height:24px;margin-left:7px;min-width:60px;outline:none;padding:0}.el-cascader__search-input::-moz-placeholder{color:transparent}.el-cascader__search-input::placeholder{color:transparent}.el-check-tag{background-color:var(--el-color-info-light-9);border-radius:var(--el-border-radius-base);color:var(--el-color-info);cursor:pointer;display:inline-block;font-size:var(--el-font-size-base);font-weight:700;line-height:var(--el-font-size-base);padding:7px 15px;transition:var(--el-transition-all)}.el-check-tag:hover{background-color:var(--el-color-info-light-7)}.el-check-tag.el-check-tag--primary.is-checked{background-color:var(--el-color-primary-light-8);color:var(--el-color-primary)}.el-check-tag.el-check-tag--primary.is-checked:hover{background-color:var(--el-color-primary-light-7)}.el-check-tag.el-check-tag--primary.is-checked.is-disabled{background-color:var(--el-color-primary-light-8);color:var(--el-disabled-text-color);cursor:not-allowed}.el-check-tag.el-check-tag--primary.is-checked.is-disabled:hover{background-color:var(--el-color-primary-light-8)}.el-check-tag.el-check-tag--primary.is-disabled{background-color:var(--el-color-info-light-9);color:var(--el-disabled-text-color);cursor:not-allowed}.el-check-tag.el-check-tag--primary.is-disabled:hover{background-color:var(--el-color-info-light-9)}.el-check-tag.el-check-tag--success.is-checked{background-color:var(--el-color-success-light-8);color:var(--el-color-success)}.el-check-tag.el-check-tag--success.is-checked:hover{background-color:var(--el-color-success-light-7)}.el-check-tag.el-check-tag--success.is-checked.is-disabled{background-color:var(--el-color-success-light-8);color:var(--el-disabled-text-color);cursor:not-allowed}.el-check-tag.el-check-tag--success.is-checked.is-disabled:hover{background-color:var(--el-color-success-light-8)}.el-check-tag.el-check-tag--success.is-disabled{color:var(--el-disabled-text-color);cursor:not-allowed}.el-check-tag.el-check-tag--success.is-disabled,.el-check-tag.el-check-tag--success.is-disabled:hover{background-color:var(--el-color-success-light-9)}.el-check-tag.el-check-tag--warning.is-checked{background-color:var(--el-color-warning-light-8);color:var(--el-color-warning)}.el-check-tag.el-check-tag--warning.is-checked:hover{background-color:var(--el-color-warning-light-7)}.el-check-tag.el-check-tag--warning.is-checked.is-disabled{background-color:var(--el-color-warning-light-8);color:var(--el-disabled-text-color);cursor:not-allowed}.el-check-tag.el-check-tag--warning.is-checked.is-disabled:hover{background-color:var(--el-color-warning-light-8)}.el-check-tag.el-check-tag--warning.is-disabled{color:var(--el-disabled-text-color);cursor:not-allowed}.el-check-tag.el-check-tag--warning.is-disabled,.el-check-tag.el-check-tag--warning.is-disabled:hover{background-color:var(--el-color-warning-light-9)}.el-check-tag.el-check-tag--danger.is-checked{background-color:var(--el-color-danger-light-8);color:var(--el-color-danger)}.el-check-tag.el-check-tag--danger.is-checked:hover{background-color:var(--el-color-danger-light-7)}.el-check-tag.el-check-tag--danger.is-checked.is-disabled{background-color:var(--el-color-danger-light-8);color:var(--el-disabled-text-color);cursor:not-allowed}.el-check-tag.el-check-tag--danger.is-checked.is-disabled:hover{background-color:var(--el-color-danger-light-8)}.el-check-tag.el-check-tag--danger.is-disabled{color:var(--el-disabled-text-color);cursor:not-allowed}.el-check-tag.el-check-tag--danger.is-disabled,.el-check-tag.el-check-tag--danger.is-disabled:hover{background-color:var(--el-color-danger-light-9)}.el-check-tag.el-check-tag--error.is-checked{background-color:var(--el-color-error-light-8);color:var(--el-color-error)}.el-check-tag.el-check-tag--error.is-checked:hover{background-color:var(--el-color-error-light-7)}.el-check-tag.el-check-tag--error.is-checked.is-disabled{background-color:var(--el-color-error-light-8);color:var(--el-disabled-text-color);cursor:not-allowed}.el-check-tag.el-check-tag--error.is-checked.is-disabled:hover{background-color:var(--el-color-error-light-8)}.el-check-tag.el-check-tag--error.is-disabled{color:var(--el-disabled-text-color);cursor:not-allowed}.el-check-tag.el-check-tag--error.is-disabled,.el-check-tag.el-check-tag--error.is-disabled:hover{background-color:var(--el-color-error-light-9)}.el-check-tag.el-check-tag--info.is-checked{background-color:var(--el-color-info-light-8);color:var(--el-color-info)}.el-check-tag.el-check-tag--info.is-checked:hover{background-color:var(--el-color-info-light-7)}.el-check-tag.el-check-tag--info.is-checked.is-disabled{background-color:var(--el-color-info-light-8);color:var(--el-disabled-text-color);cursor:not-allowed}.el-check-tag.el-check-tag--info.is-checked.is-disabled:hover{background-color:var(--el-color-info-light-8)}.el-check-tag.el-check-tag--info.is-disabled{color:var(--el-disabled-text-color);cursor:not-allowed}.el-check-tag.el-check-tag--info.is-disabled,.el-check-tag.el-check-tag--info.is-disabled:hover{background-color:var(--el-color-info-light-9)}.el-checkbox-button{--el-checkbox-button-checked-bg-color:var(--el-color-primary);--el-checkbox-button-checked-text-color:var(--el-color-white);--el-checkbox-button-checked-border-color:var(--el-color-primary);display:inline-block;position:relative}.el-checkbox-button__inner{-webkit-appearance:none;background:var(--el-button-bg-color,var(--el-fill-color-blank));border:var(--el-border);border-left-color:transparent;border-radius:0;box-sizing:border-box;color:var(--el-button-text-color,var(--el-text-color-regular));cursor:pointer;display:inline-block;font-size:var(--el-font-size-base);font-weight:var(--el-checkbox-font-weight);line-height:1;margin:0;outline:none;padding:8px 15px;position:relative;text-align:center;transition:var(--el-transition-all);-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;white-space:nowrap}.el-checkbox-button__inner.is-round{padding:8px 15px}.el-checkbox-button__inner:hover{color:var(--el-color-primary)}.el-checkbox-button__inner [class*=el-icon-]{line-height:.9}.el-checkbox-button__inner [class*=el-icon-]+span{margin-left:5px}.el-checkbox-button__original{margin:0;opacity:0;outline:none;position:absolute;z-index:-1}.el-checkbox-button.is-checked .el-checkbox-button__inner{background-color:var(--el-checkbox-button-checked-bg-color);border-color:var(--el-checkbox-button-checked-border-color);box-shadow:-1px 0 0 0 var(--el-color-primary-light-7);color:var(--el-checkbox-button-checked-text-color)}.el-checkbox-button.is-checked:first-child .el-checkbox-button__inner{border-left-color:var(--el-checkbox-button-checked-border-color)}.el-checkbox-button.is-disabled .el-checkbox-button__inner{background-color:var(--el-button-disabled-bg-color,var(--el-fill-color-blank));background-image:none;border-color:var(--el-button-disabled-border-color,var(--el-border-color-light));box-shadow:none;color:var(--el-disabled-text-color);cursor:not-allowed}.el-checkbox-button.is-disabled:first-child .el-checkbox-button__inner{border-left-color:var(--el-button-disabled-border-color,var(--el-border-color-light))}.el-checkbox-button:first-child .el-checkbox-button__inner{border-bottom-left-radius:var(--el-border-radius-base);border-left:var(--el-border);border-top-left-radius:var(--el-border-radius-base);box-shadow:none!important}.el-checkbox-button.is-focus .el-checkbox-button__inner{border-color:var(--el-checkbox-button-checked-border-color)}.el-checkbox-button:last-child .el-checkbox-button__inner{border-bottom-right-radius:var(--el-border-radius-base);border-top-right-radius:var(--el-border-radius-base)}.el-checkbox-button--large .el-checkbox-button__inner{border-radius:0;font-size:var(--el-font-size-base);padding:12px 19px}.el-checkbox-button--large .el-checkbox-button__inner.is-round{padding:12px 19px}.el-checkbox-button--small .el-checkbox-button__inner{border-radius:0;font-size:12px;padding:5px 11px}.el-checkbox-button--small .el-checkbox-button__inner.is-round{padding:5px 11px}.el-checkbox-group{font-size:0;line-height:0}.el-checkbox{--el-checkbox-font-size:14px;--el-checkbox-font-weight:var(--el-font-weight-primary);--el-checkbox-text-color:var(--el-text-color-regular);--el-checkbox-input-height:14px;--el-checkbox-input-width:14px;--el-checkbox-border-radius:var(--el-border-radius-small);--el-checkbox-bg-color:var(--el-fill-color-blank);--el-checkbox-input-border:var(--el-border);--el-checkbox-disabled-border-color:var(--el-border-color);--el-checkbox-disabled-input-fill:var(--el-fill-color-light);--el-checkbox-disabled-icon-color:var(--el-text-color-placeholder);--el-checkbox-disabled-checked-input-fill:var(--el-border-color-extra-light);--el-checkbox-disabled-checked-input-border-color:var(--el-border-color);--el-checkbox-disabled-checked-icon-color:var(--el-text-color-placeholder);--el-checkbox-checked-text-color:var(--el-color-primary);--el-checkbox-checked-input-border-color:var(--el-color-primary);--el-checkbox-checked-bg-color:var(--el-color-primary);--el-checkbox-checked-icon-color:var(--el-color-white);--el-checkbox-input-border-color-hover:var(--el-color-primary);align-items:center;color:var(--el-checkbox-text-color);cursor:pointer;display:inline-flex;font-size:var(--el-font-size-base);font-weight:var(--el-checkbox-font-weight);height:var(--el-checkbox-height,32px);margin-right:30px;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}.el-checkbox.is-disabled{cursor:not-allowed}.el-checkbox.is-bordered{border:var(--el-border);border-radius:var(--el-border-radius-base);box-sizing:border-box;padding:0 15px 0 9px}.el-checkbox.is-bordered.is-checked{border-color:var(--el-color-primary)}.el-checkbox.is-bordered.is-disabled{border-color:var(--el-border-color-lighter)}.el-checkbox.is-bordered.el-checkbox--large{border-radius:var(--el-border-radius-base);padding:0 19px 0 11px}.el-checkbox.is-bordered.el-checkbox--large .el-checkbox__label{font-size:var(--el-font-size-base)}.el-checkbox.is-bordered.el-checkbox--large .el-checkbox__inner{height:14px;width:14px}.el-checkbox.is-bordered.el-checkbox--small{border-radius:calc(var(--el-border-radius-base) - 1px);padding:0 11px 0 7px}.el-checkbox.is-bordered.el-checkbox--small .el-checkbox__label{font-size:12px}.el-checkbox.is-bordered.el-checkbox--small .el-checkbox__inner{height:12px;width:12px}.el-checkbox.is-bordered.el-checkbox--small .el-checkbox__inner:after{height:6px;width:2px}.el-checkbox input:focus-visible+.el-checkbox__inner{border-radius:var(--el-checkbox-border-radius);outline:2px solid var(--el-checkbox-input-border-color-hover);outline-offset:1px}.el-checkbox__input{cursor:pointer;display:inline-flex;outline:none;position:relative;white-space:nowrap}.el-checkbox__input.is-disabled .el-checkbox__inner{background-color:var(--el-checkbox-disabled-input-fill);border-color:var(--el-checkbox-disabled-border-color);cursor:not-allowed}.el-checkbox__input.is-disabled .el-checkbox__inner:after{border-color:var(--el-checkbox-disabled-icon-color);cursor:not-allowed}.el-checkbox__input.is-disabled.is-checked .el-checkbox__inner{background-color:var(--el-checkbox-disabled-checked-input-fill);border-color:var(--el-checkbox-disabled-checked-input-border-color)}.el-checkbox__input.is-disabled.is-checked .el-checkbox__inner:after{border-color:var(--el-checkbox-disabled-checked-icon-color)}.el-checkbox__input.is-disabled.is-indeterminate .el-checkbox__inner{background-color:var(--el-checkbox-disabled-checked-input-fill);border-color:var(--el-checkbox-disabled-checked-input-border-color)}.el-checkbox__input.is-disabled.is-indeterminate .el-checkbox__inner:before{background-color:var(--el-checkbox-disabled-checked-icon-color);border-color:var(--el-checkbox-disabled-checked-icon-color)}.el-checkbox__input.is-disabled+span.el-checkbox__label{color:var(--el-disabled-text-color);cursor:not-allowed}.el-checkbox__input.is-checked .el-checkbox__inner{background-color:var(--el-checkbox-checked-bg-color);border-color:var(--el-checkbox-checked-input-border-color)}.el-checkbox__input.is-checked .el-checkbox__inner:after{border-color:var(--el-checkbox-checked-icon-color);transform:rotate(45deg) scaleY(1)}.el-checkbox__input.is-checked+.el-checkbox__label{color:var(--el-checkbox-checked-text-color)}.el-checkbox__input.is-focus:not(.is-checked) .el-checkbox__original:not(:focus-visible){border-color:var(--el-checkbox-input-border-color-hover)}.el-checkbox__input.is-indeterminate .el-checkbox__inner{background-color:var(--el-checkbox-checked-bg-color);border-color:var(--el-checkbox-checked-input-border-color)}.el-checkbox__input.is-indeterminate .el-checkbox__inner:before{background-color:var(--el-checkbox-checked-icon-color);content:"";display:block;height:2px;left:0;position:absolute;right:0;top:5px;transform:scale(.5)}.el-checkbox__input.is-indeterminate .el-checkbox__inner:after{display:none}.el-checkbox__inner{background-color:var(--el-checkbox-bg-color);border:var(--el-checkbox-input-border);border-radius:var(--el-checkbox-border-radius);box-sizing:border-box;display:inline-block;height:var(--el-checkbox-input-height);position:relative;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);width:var(--el-checkbox-input-width);z-index:var(--el-index-normal)}.el-checkbox__inner:hover{border-color:var(--el-checkbox-input-border-color-hover)}.el-checkbox__inner:after{border:1px solid transparent;border-left:0;border-top:0;box-sizing:content-box;content:"";height:7px;left:4px;position:absolute;top:1px;transform:rotate(45deg) scaleY(0);transform-origin:center;transition:transform .15s ease-in .05s;width:3px}.el-checkbox__original{height:0;margin:0;opacity:0;outline:none;position:absolute;width:0;z-index:-1}.el-checkbox__label{display:inline-block;font-size:var(--el-checkbox-font-size);line-height:1;padding-left:8px}.el-checkbox.el-checkbox--large{height:40px}.el-checkbox.el-checkbox--large .el-checkbox__label{font-size:14px}.el-checkbox.el-checkbox--large .el-checkbox__inner{height:14px;width:14px}.el-checkbox.el-checkbox--small{height:24px}.el-checkbox.el-checkbox--small .el-checkbox__label{font-size:12px}.el-checkbox.el-checkbox--small .el-checkbox__inner{height:12px;width:12px}.el-checkbox.el-checkbox--small .el-checkbox__input.is-indeterminate .el-checkbox__inner:before{top:4px}.el-checkbox.el-checkbox--small .el-checkbox__inner:after{height:6px;width:2px}.el-checkbox:last-of-type{margin-right:0}[class*=el-col-]{box-sizing:border-box}[class*=el-col-].is-guttered{display:block;min-height:1px}.el-col-0{flex:0 0 0%;max-width:0}.el-col-0,.el-col-0.is-guttered{display:none}.el-col-offset-0{margin-left:0}.el-col-pull-0{position:relative;right:0}.el-col-push-0{left:0;position:relative}.el-col-1{flex:0 0 4.1666666667%;max-width:4.1666666667%}.el-col-1,.el-col-1.is-guttered{display:block}.el-col-offset-1{margin-left:4.1666666667%}.el-col-pull-1{position:relative;right:4.1666666667%}.el-col-push-1{left:4.1666666667%;position:relative}.el-col-2{flex:0 0 8.3333333333%;max-width:8.3333333333%}.el-col-2,.el-col-2.is-guttered{display:block}.el-col-offset-2{margin-left:8.3333333333%}.el-col-pull-2{position:relative;right:8.3333333333%}.el-col-push-2{left:8.3333333333%;position:relative}.el-col-3{flex:0 0 12.5%;max-width:12.5%}.el-col-3,.el-col-3.is-guttered{display:block}.el-col-offset-3{margin-left:12.5%}.el-col-pull-3{position:relative;right:12.5%}.el-col-push-3{left:12.5%;position:relative}.el-col-4{flex:0 0 16.6666666667%;max-width:16.6666666667%}.el-col-4,.el-col-4.is-guttered{display:block}.el-col-offset-4{margin-left:16.6666666667%}.el-col-pull-4{position:relative;right:16.6666666667%}.el-col-push-4{left:16.6666666667%;position:relative}.el-col-5{flex:0 0 20.8333333333%;max-width:20.8333333333%}.el-col-5,.el-col-5.is-guttered{display:block}.el-col-offset-5{margin-left:20.8333333333%}.el-col-pull-5{position:relative;right:20.8333333333%}.el-col-push-5{left:20.8333333333%;position:relative}.el-col-6{flex:0 0 25%;max-width:25%}.el-col-6,.el-col-6.is-guttered{display:block}.el-col-offset-6{margin-left:25%}.el-col-pull-6{position:relative;right:25%}.el-col-push-6{left:25%;position:relative}.el-col-7{flex:0 0 29.1666666667%;max-width:29.1666666667%}.el-col-7,.el-col-7.is-guttered{display:block}.el-col-offset-7{margin-left:29.1666666667%}.el-col-pull-7{position:relative;right:29.1666666667%}.el-col-push-7{left:29.1666666667%;position:relative}.el-col-8{flex:0 0 33.3333333333%;max-width:33.3333333333%}.el-col-8,.el-col-8.is-guttered{display:block}.el-col-offset-8{margin-left:33.3333333333%}.el-col-pull-8{position:relative;right:33.3333333333%}.el-col-push-8{left:33.3333333333%;position:relative}.el-col-9{flex:0 0 37.5%;max-width:37.5%}.el-col-9,.el-col-9.is-guttered{display:block}.el-col-offset-9{margin-left:37.5%}.el-col-pull-9{position:relative;right:37.5%}.el-col-push-9{left:37.5%;position:relative}.el-col-10{flex:0 0 41.6666666667%;max-width:41.6666666667%}.el-col-10,.el-col-10.is-guttered{display:block}.el-col-offset-10{margin-left:41.6666666667%}.el-col-pull-10{position:relative;right:41.6666666667%}.el-col-push-10{left:41.6666666667%;position:relative}.el-col-11{flex:0 0 45.8333333333%;max-width:45.8333333333%}.el-col-11,.el-col-11.is-guttered{display:block}.el-col-offset-11{margin-left:45.8333333333%}.el-col-pull-11{position:relative;right:45.8333333333%}.el-col-push-11{left:45.8333333333%;position:relative}.el-col-12{flex:0 0 50%;max-width:50%}.el-col-12,.el-col-12.is-guttered{display:block}.el-col-offset-12{margin-left:50%}.el-col-pull-12{position:relative;right:50%}.el-col-push-12{left:50%;position:relative}.el-col-13{flex:0 0 54.1666666667%;max-width:54.1666666667%}.el-col-13,.el-col-13.is-guttered{display:block}.el-col-offset-13{margin-left:54.1666666667%}.el-col-pull-13{position:relative;right:54.1666666667%}.el-col-push-13{left:54.1666666667%;position:relative}.el-col-14{flex:0 0 58.3333333333%;max-width:58.3333333333%}.el-col-14,.el-col-14.is-guttered{display:block}.el-col-offset-14{margin-left:58.3333333333%}.el-col-pull-14{position:relative;right:58.3333333333%}.el-col-push-14{left:58.3333333333%;position:relative}.el-col-15{flex:0 0 62.5%;max-width:62.5%}.el-col-15,.el-col-15.is-guttered{display:block}.el-col-offset-15{margin-left:62.5%}.el-col-pull-15{position:relative;right:62.5%}.el-col-push-15{left:62.5%;position:relative}.el-col-16{flex:0 0 66.6666666667%;max-width:66.6666666667%}.el-col-16,.el-col-16.is-guttered{display:block}.el-col-offset-16{margin-left:66.6666666667%}.el-col-pull-16{position:relative;right:66.6666666667%}.el-col-push-16{left:66.6666666667%;position:relative}.el-col-17{flex:0 0 70.8333333333%;max-width:70.8333333333%}.el-col-17,.el-col-17.is-guttered{display:block}.el-col-offset-17{margin-left:70.8333333333%}.el-col-pull-17{position:relative;right:70.8333333333%}.el-col-push-17{left:70.8333333333%;position:relative}.el-col-18{flex:0 0 75%;max-width:75%}.el-col-18,.el-col-18.is-guttered{display:block}.el-col-offset-18{margin-left:75%}.el-col-pull-18{position:relative;right:75%}.el-col-push-18{left:75%;position:relative}.el-col-19{flex:0 0 79.1666666667%;max-width:79.1666666667%}.el-col-19,.el-col-19.is-guttered{display:block}.el-col-offset-19{margin-left:79.1666666667%}.el-col-pull-19{position:relative;right:79.1666666667%}.el-col-push-19{left:79.1666666667%;position:relative}.el-col-20{flex:0 0 83.3333333333%;max-width:83.3333333333%}.el-col-20,.el-col-20.is-guttered{display:block}.el-col-offset-20{margin-left:83.3333333333%}.el-col-pull-20{position:relative;right:83.3333333333%}.el-col-push-20{left:83.3333333333%;position:relative}.el-col-21{flex:0 0 87.5%;max-width:87.5%}.el-col-21,.el-col-21.is-guttered{display:block}.el-col-offset-21{margin-left:87.5%}.el-col-pull-21{position:relative;right:87.5%}.el-col-push-21{left:87.5%;position:relative}.el-col-22{flex:0 0 91.6666666667%;max-width:91.6666666667%}.el-col-22,.el-col-22.is-guttered{display:block}.el-col-offset-22{margin-left:91.6666666667%}.el-col-pull-22{position:relative;right:91.6666666667%}.el-col-push-22{left:91.6666666667%;position:relative}.el-col-23{flex:0 0 95.8333333333%;max-width:95.8333333333%}.el-col-23,.el-col-23.is-guttered{display:block}.el-col-offset-23{margin-left:95.8333333333%}.el-col-pull-23{position:relative;right:95.8333333333%}.el-col-push-23{left:95.8333333333%;position:relative}.el-col-24{flex:0 0 100%;max-width:100%}.el-col-24,.el-col-24.is-guttered{display:block}.el-col-offset-24{margin-left:100%}.el-col-pull-24{position:relative;right:100%}.el-col-push-24{left:100%;position:relative}@media only screen and (max-width:767px){.el-col-xs-0{display:none;flex:0 0 0%;max-width:0}.el-col-xs-0.is-guttered{display:none}.el-col-xs-offset-0{margin-left:0}.el-col-xs-pull-0{position:relative;right:0}.el-col-xs-push-0{left:0;position:relative}.el-col-xs-1{flex:0 0 4.1666666667%;max-width:4.1666666667%}.el-col-xs-1,.el-col-xs-1.is-guttered{display:block}.el-col-xs-offset-1{margin-left:4.1666666667%}.el-col-xs-pull-1{position:relative;right:4.1666666667%}.el-col-xs-push-1{left:4.1666666667%;position:relative}.el-col-xs-2{flex:0 0 8.3333333333%;max-width:8.3333333333%}.el-col-xs-2,.el-col-xs-2.is-guttered{display:block}.el-col-xs-offset-2{margin-left:8.3333333333%}.el-col-xs-pull-2{position:relative;right:8.3333333333%}.el-col-xs-push-2{left:8.3333333333%;position:relative}.el-col-xs-3{flex:0 0 12.5%;max-width:12.5%}.el-col-xs-3,.el-col-xs-3.is-guttered{display:block}.el-col-xs-offset-3{margin-left:12.5%}.el-col-xs-pull-3{position:relative;right:12.5%}.el-col-xs-push-3{left:12.5%;position:relative}.el-col-xs-4{flex:0 0 16.6666666667%;max-width:16.6666666667%}.el-col-xs-4,.el-col-xs-4.is-guttered{display:block}.el-col-xs-offset-4{margin-left:16.6666666667%}.el-col-xs-pull-4{position:relative;right:16.6666666667%}.el-col-xs-push-4{left:16.6666666667%;position:relative}.el-col-xs-5{flex:0 0 20.8333333333%;max-width:20.8333333333%}.el-col-xs-5,.el-col-xs-5.is-guttered{display:block}.el-col-xs-offset-5{margin-left:20.8333333333%}.el-col-xs-pull-5{position:relative;right:20.8333333333%}.el-col-xs-push-5{left:20.8333333333%;position:relative}.el-col-xs-6{flex:0 0 25%;max-width:25%}.el-col-xs-6,.el-col-xs-6.is-guttered{display:block}.el-col-xs-offset-6{margin-left:25%}.el-col-xs-pull-6{position:relative;right:25%}.el-col-xs-push-6{left:25%;position:relative}.el-col-xs-7{flex:0 0 29.1666666667%;max-width:29.1666666667%}.el-col-xs-7,.el-col-xs-7.is-guttered{display:block}.el-col-xs-offset-7{margin-left:29.1666666667%}.el-col-xs-pull-7{position:relative;right:29.1666666667%}.el-col-xs-push-7{left:29.1666666667%;position:relative}.el-col-xs-8{flex:0 0 33.3333333333%;max-width:33.3333333333%}.el-col-xs-8,.el-col-xs-8.is-guttered{display:block}.el-col-xs-offset-8{margin-left:33.3333333333%}.el-col-xs-pull-8{position:relative;right:33.3333333333%}.el-col-xs-push-8{left:33.3333333333%;position:relative}.el-col-xs-9{flex:0 0 37.5%;max-width:37.5%}.el-col-xs-9,.el-col-xs-9.is-guttered{display:block}.el-col-xs-offset-9{margin-left:37.5%}.el-col-xs-pull-9{position:relative;right:37.5%}.el-col-xs-push-9{left:37.5%;position:relative}.el-col-xs-10{display:block;flex:0 0 41.6666666667%;max-width:41.6666666667%}.el-col-xs-10.is-guttered{display:block}.el-col-xs-offset-10{margin-left:41.6666666667%}.el-col-xs-pull-10{position:relative;right:41.6666666667%}.el-col-xs-push-10{left:41.6666666667%;position:relative}.el-col-xs-11{display:block;flex:0 0 45.8333333333%;max-width:45.8333333333%}.el-col-xs-11.is-guttered{display:block}.el-col-xs-offset-11{margin-left:45.8333333333%}.el-col-xs-pull-11{position:relative;right:45.8333333333%}.el-col-xs-push-11{left:45.8333333333%;position:relative}.el-col-xs-12{display:block;flex:0 0 50%;max-width:50%}.el-col-xs-12.is-guttered{display:block}.el-col-xs-offset-12{margin-left:50%}.el-col-xs-pull-12{position:relative;right:50%}.el-col-xs-push-12{left:50%;position:relative}.el-col-xs-13{display:block;flex:0 0 54.1666666667%;max-width:54.1666666667%}.el-col-xs-13.is-guttered{display:block}.el-col-xs-offset-13{margin-left:54.1666666667%}.el-col-xs-pull-13{position:relative;right:54.1666666667%}.el-col-xs-push-13{left:54.1666666667%;position:relative}.el-col-xs-14{display:block;flex:0 0 58.3333333333%;max-width:58.3333333333%}.el-col-xs-14.is-guttered{display:block}.el-col-xs-offset-14{margin-left:58.3333333333%}.el-col-xs-pull-14{position:relative;right:58.3333333333%}.el-col-xs-push-14{left:58.3333333333%;position:relative}.el-col-xs-15{display:block;flex:0 0 62.5%;max-width:62.5%}.el-col-xs-15.is-guttered{display:block}.el-col-xs-offset-15{margin-left:62.5%}.el-col-xs-pull-15{position:relative;right:62.5%}.el-col-xs-push-15{left:62.5%;position:relative}.el-col-xs-16{display:block;flex:0 0 66.6666666667%;max-width:66.6666666667%}.el-col-xs-16.is-guttered{display:block}.el-col-xs-offset-16{margin-left:66.6666666667%}.el-col-xs-pull-16{position:relative;right:66.6666666667%}.el-col-xs-push-16{left:66.6666666667%;position:relative}.el-col-xs-17{display:block;flex:0 0 70.8333333333%;max-width:70.8333333333%}.el-col-xs-17.is-guttered{display:block}.el-col-xs-offset-17{margin-left:70.8333333333%}.el-col-xs-pull-17{position:relative;right:70.8333333333%}.el-col-xs-push-17{left:70.8333333333%;position:relative}.el-col-xs-18{display:block;flex:0 0 75%;max-width:75%}.el-col-xs-18.is-guttered{display:block}.el-col-xs-offset-18{margin-left:75%}.el-col-xs-pull-18{position:relative;right:75%}.el-col-xs-push-18{left:75%;position:relative}.el-col-xs-19{display:block;flex:0 0 79.1666666667%;max-width:79.1666666667%}.el-col-xs-19.is-guttered{display:block}.el-col-xs-offset-19{margin-left:79.1666666667%}.el-col-xs-pull-19{position:relative;right:79.1666666667%}.el-col-xs-push-19{left:79.1666666667%;position:relative}.el-col-xs-20{display:block;flex:0 0 83.3333333333%;max-width:83.3333333333%}.el-col-xs-20.is-guttered{display:block}.el-col-xs-offset-20{margin-left:83.3333333333%}.el-col-xs-pull-20{position:relative;right:83.3333333333%}.el-col-xs-push-20{left:83.3333333333%;position:relative}.el-col-xs-21{display:block;flex:0 0 87.5%;max-width:87.5%}.el-col-xs-21.is-guttered{display:block}.el-col-xs-offset-21{margin-left:87.5%}.el-col-xs-pull-21{position:relative;right:87.5%}.el-col-xs-push-21{left:87.5%;position:relative}.el-col-xs-22{display:block;flex:0 0 91.6666666667%;max-width:91.6666666667%}.el-col-xs-22.is-guttered{display:block}.el-col-xs-offset-22{margin-left:91.6666666667%}.el-col-xs-pull-22{position:relative;right:91.6666666667%}.el-col-xs-push-22{left:91.6666666667%;position:relative}.el-col-xs-23{display:block;flex:0 0 95.8333333333%;max-width:95.8333333333%}.el-col-xs-23.is-guttered{display:block}.el-col-xs-offset-23{margin-left:95.8333333333%}.el-col-xs-pull-23{position:relative;right:95.8333333333%}.el-col-xs-push-23{left:95.8333333333%;position:relative}.el-col-xs-24{display:block;flex:0 0 100%;max-width:100%}.el-col-xs-24.is-guttered{display:block}.el-col-xs-offset-24{margin-left:100%}.el-col-xs-pull-24{position:relative;right:100%}.el-col-xs-push-24{left:100%;position:relative}}@media only screen and (min-width:768px){.el-col-sm-0{display:none;flex:0 0 0%;max-width:0}.el-col-sm-0.is-guttered{display:none}.el-col-sm-offset-0{margin-left:0}.el-col-sm-pull-0{position:relative;right:0}.el-col-sm-push-0{left:0;position:relative}.el-col-sm-1{flex:0 0 4.1666666667%;max-width:4.1666666667%}.el-col-sm-1,.el-col-sm-1.is-guttered{display:block}.el-col-sm-offset-1{margin-left:4.1666666667%}.el-col-sm-pull-1{position:relative;right:4.1666666667%}.el-col-sm-push-1{left:4.1666666667%;position:relative}.el-col-sm-2{flex:0 0 8.3333333333%;max-width:8.3333333333%}.el-col-sm-2,.el-col-sm-2.is-guttered{display:block}.el-col-sm-offset-2{margin-left:8.3333333333%}.el-col-sm-pull-2{position:relative;right:8.3333333333%}.el-col-sm-push-2{left:8.3333333333%;position:relative}.el-col-sm-3{flex:0 0 12.5%;max-width:12.5%}.el-col-sm-3,.el-col-sm-3.is-guttered{display:block}.el-col-sm-offset-3{margin-left:12.5%}.el-col-sm-pull-3{position:relative;right:12.5%}.el-col-sm-push-3{left:12.5%;position:relative}.el-col-sm-4{flex:0 0 16.6666666667%;max-width:16.6666666667%}.el-col-sm-4,.el-col-sm-4.is-guttered{display:block}.el-col-sm-offset-4{margin-left:16.6666666667%}.el-col-sm-pull-4{position:relative;right:16.6666666667%}.el-col-sm-push-4{left:16.6666666667%;position:relative}.el-col-sm-5{flex:0 0 20.8333333333%;max-width:20.8333333333%}.el-col-sm-5,.el-col-sm-5.is-guttered{display:block}.el-col-sm-offset-5{margin-left:20.8333333333%}.el-col-sm-pull-5{position:relative;right:20.8333333333%}.el-col-sm-push-5{left:20.8333333333%;position:relative}.el-col-sm-6{flex:0 0 25%;max-width:25%}.el-col-sm-6,.el-col-sm-6.is-guttered{display:block}.el-col-sm-offset-6{margin-left:25%}.el-col-sm-pull-6{position:relative;right:25%}.el-col-sm-push-6{left:25%;position:relative}.el-col-sm-7{flex:0 0 29.1666666667%;max-width:29.1666666667%}.el-col-sm-7,.el-col-sm-7.is-guttered{display:block}.el-col-sm-offset-7{margin-left:29.1666666667%}.el-col-sm-pull-7{position:relative;right:29.1666666667%}.el-col-sm-push-7{left:29.1666666667%;position:relative}.el-col-sm-8{flex:0 0 33.3333333333%;max-width:33.3333333333%}.el-col-sm-8,.el-col-sm-8.is-guttered{display:block}.el-col-sm-offset-8{margin-left:33.3333333333%}.el-col-sm-pull-8{position:relative;right:33.3333333333%}.el-col-sm-push-8{left:33.3333333333%;position:relative}.el-col-sm-9{flex:0 0 37.5%;max-width:37.5%}.el-col-sm-9,.el-col-sm-9.is-guttered{display:block}.el-col-sm-offset-9{margin-left:37.5%}.el-col-sm-pull-9{position:relative;right:37.5%}.el-col-sm-push-9{left:37.5%;position:relative}.el-col-sm-10{display:block;flex:0 0 41.6666666667%;max-width:41.6666666667%}.el-col-sm-10.is-guttered{display:block}.el-col-sm-offset-10{margin-left:41.6666666667%}.el-col-sm-pull-10{position:relative;right:41.6666666667%}.el-col-sm-push-10{left:41.6666666667%;position:relative}.el-col-sm-11{display:block;flex:0 0 45.8333333333%;max-width:45.8333333333%}.el-col-sm-11.is-guttered{display:block}.el-col-sm-offset-11{margin-left:45.8333333333%}.el-col-sm-pull-11{position:relative;right:45.8333333333%}.el-col-sm-push-11{left:45.8333333333%;position:relative}.el-col-sm-12{display:block;flex:0 0 50%;max-width:50%}.el-col-sm-12.is-guttered{display:block}.el-col-sm-offset-12{margin-left:50%}.el-col-sm-pull-12{position:relative;right:50%}.el-col-sm-push-12{left:50%;position:relative}.el-col-sm-13{display:block;flex:0 0 54.1666666667%;max-width:54.1666666667%}.el-col-sm-13.is-guttered{display:block}.el-col-sm-offset-13{margin-left:54.1666666667%}.el-col-sm-pull-13{position:relative;right:54.1666666667%}.el-col-sm-push-13{left:54.1666666667%;position:relative}.el-col-sm-14{display:block;flex:0 0 58.3333333333%;max-width:58.3333333333%}.el-col-sm-14.is-guttered{display:block}.el-col-sm-offset-14{margin-left:58.3333333333%}.el-col-sm-pull-14{position:relative;right:58.3333333333%}.el-col-sm-push-14{left:58.3333333333%;position:relative}.el-col-sm-15{display:block;flex:0 0 62.5%;max-width:62.5%}.el-col-sm-15.is-guttered{display:block}.el-col-sm-offset-15{margin-left:62.5%}.el-col-sm-pull-15{position:relative;right:62.5%}.el-col-sm-push-15{left:62.5%;position:relative}.el-col-sm-16{display:block;flex:0 0 66.6666666667%;max-width:66.6666666667%}.el-col-sm-16.is-guttered{display:block}.el-col-sm-offset-16{margin-left:66.6666666667%}.el-col-sm-pull-16{position:relative;right:66.6666666667%}.el-col-sm-push-16{left:66.6666666667%;position:relative}.el-col-sm-17{display:block;flex:0 0 70.8333333333%;max-width:70.8333333333%}.el-col-sm-17.is-guttered{display:block}.el-col-sm-offset-17{margin-left:70.8333333333%}.el-col-sm-pull-17{position:relative;right:70.8333333333%}.el-col-sm-push-17{left:70.8333333333%;position:relative}.el-col-sm-18{display:block;flex:0 0 75%;max-width:75%}.el-col-sm-18.is-guttered{display:block}.el-col-sm-offset-18{margin-left:75%}.el-col-sm-pull-18{position:relative;right:75%}.el-col-sm-push-18{left:75%;position:relative}.el-col-sm-19{display:block;flex:0 0 79.1666666667%;max-width:79.1666666667%}.el-col-sm-19.is-guttered{display:block}.el-col-sm-offset-19{margin-left:79.1666666667%}.el-col-sm-pull-19{position:relative;right:79.1666666667%}.el-col-sm-push-19{left:79.1666666667%;position:relative}.el-col-sm-20{display:block;flex:0 0 83.3333333333%;max-width:83.3333333333%}.el-col-sm-20.is-guttered{display:block}.el-col-sm-offset-20{margin-left:83.3333333333%}.el-col-sm-pull-20{position:relative;right:83.3333333333%}.el-col-sm-push-20{left:83.3333333333%;position:relative}.el-col-sm-21{display:block;flex:0 0 87.5%;max-width:87.5%}.el-col-sm-21.is-guttered{display:block}.el-col-sm-offset-21{margin-left:87.5%}.el-col-sm-pull-21{position:relative;right:87.5%}.el-col-sm-push-21{left:87.5%;position:relative}.el-col-sm-22{display:block;flex:0 0 91.6666666667%;max-width:91.6666666667%}.el-col-sm-22.is-guttered{display:block}.el-col-sm-offset-22{margin-left:91.6666666667%}.el-col-sm-pull-22{position:relative;right:91.6666666667%}.el-col-sm-push-22{left:91.6666666667%;position:relative}.el-col-sm-23{display:block;flex:0 0 95.8333333333%;max-width:95.8333333333%}.el-col-sm-23.is-guttered{display:block}.el-col-sm-offset-23{margin-left:95.8333333333%}.el-col-sm-pull-23{position:relative;right:95.8333333333%}.el-col-sm-push-23{left:95.8333333333%;position:relative}.el-col-sm-24{display:block;flex:0 0 100%;max-width:100%}.el-col-sm-24.is-guttered{display:block}.el-col-sm-offset-24{margin-left:100%}.el-col-sm-pull-24{position:relative;right:100%}.el-col-sm-push-24{left:100%;position:relative}}@media only screen and (min-width:992px){.el-col-md-0{display:none;flex:0 0 0%;max-width:0}.el-col-md-0.is-guttered{display:none}.el-col-md-offset-0{margin-left:0}.el-col-md-pull-0{position:relative;right:0}.el-col-md-push-0{left:0;position:relative}.el-col-md-1{flex:0 0 4.1666666667%;max-width:4.1666666667%}.el-col-md-1,.el-col-md-1.is-guttered{display:block}.el-col-md-offset-1{margin-left:4.1666666667%}.el-col-md-pull-1{position:relative;right:4.1666666667%}.el-col-md-push-1{left:4.1666666667%;position:relative}.el-col-md-2{flex:0 0 8.3333333333%;max-width:8.3333333333%}.el-col-md-2,.el-col-md-2.is-guttered{display:block}.el-col-md-offset-2{margin-left:8.3333333333%}.el-col-md-pull-2{position:relative;right:8.3333333333%}.el-col-md-push-2{left:8.3333333333%;position:relative}.el-col-md-3{flex:0 0 12.5%;max-width:12.5%}.el-col-md-3,.el-col-md-3.is-guttered{display:block}.el-col-md-offset-3{margin-left:12.5%}.el-col-md-pull-3{position:relative;right:12.5%}.el-col-md-push-3{left:12.5%;position:relative}.el-col-md-4{flex:0 0 16.6666666667%;max-width:16.6666666667%}.el-col-md-4,.el-col-md-4.is-guttered{display:block}.el-col-md-offset-4{margin-left:16.6666666667%}.el-col-md-pull-4{position:relative;right:16.6666666667%}.el-col-md-push-4{left:16.6666666667%;position:relative}.el-col-md-5{flex:0 0 20.8333333333%;max-width:20.8333333333%}.el-col-md-5,.el-col-md-5.is-guttered{display:block}.el-col-md-offset-5{margin-left:20.8333333333%}.el-col-md-pull-5{position:relative;right:20.8333333333%}.el-col-md-push-5{left:20.8333333333%;position:relative}.el-col-md-6{flex:0 0 25%;max-width:25%}.el-col-md-6,.el-col-md-6.is-guttered{display:block}.el-col-md-offset-6{margin-left:25%}.el-col-md-pull-6{position:relative;right:25%}.el-col-md-push-6{left:25%;position:relative}.el-col-md-7{flex:0 0 29.1666666667%;max-width:29.1666666667%}.el-col-md-7,.el-col-md-7.is-guttered{display:block}.el-col-md-offset-7{margin-left:29.1666666667%}.el-col-md-pull-7{position:relative;right:29.1666666667%}.el-col-md-push-7{left:29.1666666667%;position:relative}.el-col-md-8{flex:0 0 33.3333333333%;max-width:33.3333333333%}.el-col-md-8,.el-col-md-8.is-guttered{display:block}.el-col-md-offset-8{margin-left:33.3333333333%}.el-col-md-pull-8{position:relative;right:33.3333333333%}.el-col-md-push-8{left:33.3333333333%;position:relative}.el-col-md-9{flex:0 0 37.5%;max-width:37.5%}.el-col-md-9,.el-col-md-9.is-guttered{display:block}.el-col-md-offset-9{margin-left:37.5%}.el-col-md-pull-9{position:relative;right:37.5%}.el-col-md-push-9{left:37.5%;position:relative}.el-col-md-10{display:block;flex:0 0 41.6666666667%;max-width:41.6666666667%}.el-col-md-10.is-guttered{display:block}.el-col-md-offset-10{margin-left:41.6666666667%}.el-col-md-pull-10{position:relative;right:41.6666666667%}.el-col-md-push-10{left:41.6666666667%;position:relative}.el-col-md-11{display:block;flex:0 0 45.8333333333%;max-width:45.8333333333%}.el-col-md-11.is-guttered{display:block}.el-col-md-offset-11{margin-left:45.8333333333%}.el-col-md-pull-11{position:relative;right:45.8333333333%}.el-col-md-push-11{left:45.8333333333%;position:relative}.el-col-md-12{display:block;flex:0 0 50%;max-width:50%}.el-col-md-12.is-guttered{display:block}.el-col-md-offset-12{margin-left:50%}.el-col-md-pull-12{position:relative;right:50%}.el-col-md-push-12{left:50%;position:relative}.el-col-md-13{display:block;flex:0 0 54.1666666667%;max-width:54.1666666667%}.el-col-md-13.is-guttered{display:block}.el-col-md-offset-13{margin-left:54.1666666667%}.el-col-md-pull-13{position:relative;right:54.1666666667%}.el-col-md-push-13{left:54.1666666667%;position:relative}.el-col-md-14{display:block;flex:0 0 58.3333333333%;max-width:58.3333333333%}.el-col-md-14.is-guttered{display:block}.el-col-md-offset-14{margin-left:58.3333333333%}.el-col-md-pull-14{position:relative;right:58.3333333333%}.el-col-md-push-14{left:58.3333333333%;position:relative}.el-col-md-15{display:block;flex:0 0 62.5%;max-width:62.5%}.el-col-md-15.is-guttered{display:block}.el-col-md-offset-15{margin-left:62.5%}.el-col-md-pull-15{position:relative;right:62.5%}.el-col-md-push-15{left:62.5%;position:relative}.el-col-md-16{display:block;flex:0 0 66.6666666667%;max-width:66.6666666667%}.el-col-md-16.is-guttered{display:block}.el-col-md-offset-16{margin-left:66.6666666667%}.el-col-md-pull-16{position:relative;right:66.6666666667%}.el-col-md-push-16{left:66.6666666667%;position:relative}.el-col-md-17{display:block;flex:0 0 70.8333333333%;max-width:70.8333333333%}.el-col-md-17.is-guttered{display:block}.el-col-md-offset-17{margin-left:70.8333333333%}.el-col-md-pull-17{position:relative;right:70.8333333333%}.el-col-md-push-17{left:70.8333333333%;position:relative}.el-col-md-18{display:block;flex:0 0 75%;max-width:75%}.el-col-md-18.is-guttered{display:block}.el-col-md-offset-18{margin-left:75%}.el-col-md-pull-18{position:relative;right:75%}.el-col-md-push-18{left:75%;position:relative}.el-col-md-19{display:block;flex:0 0 79.1666666667%;max-width:79.1666666667%}.el-col-md-19.is-guttered{display:block}.el-col-md-offset-19{margin-left:79.1666666667%}.el-col-md-pull-19{position:relative;right:79.1666666667%}.el-col-md-push-19{left:79.1666666667%;position:relative}.el-col-md-20{display:block;flex:0 0 83.3333333333%;max-width:83.3333333333%}.el-col-md-20.is-guttered{display:block}.el-col-md-offset-20{margin-left:83.3333333333%}.el-col-md-pull-20{position:relative;right:83.3333333333%}.el-col-md-push-20{left:83.3333333333%;position:relative}.el-col-md-21{display:block;flex:0 0 87.5%;max-width:87.5%}.el-col-md-21.is-guttered{display:block}.el-col-md-offset-21{margin-left:87.5%}.el-col-md-pull-21{position:relative;right:87.5%}.el-col-md-push-21{left:87.5%;position:relative}.el-col-md-22{display:block;flex:0 0 91.6666666667%;max-width:91.6666666667%}.el-col-md-22.is-guttered{display:block}.el-col-md-offset-22{margin-left:91.6666666667%}.el-col-md-pull-22{position:relative;right:91.6666666667%}.el-col-md-push-22{left:91.6666666667%;position:relative}.el-col-md-23{display:block;flex:0 0 95.8333333333%;max-width:95.8333333333%}.el-col-md-23.is-guttered{display:block}.el-col-md-offset-23{margin-left:95.8333333333%}.el-col-md-pull-23{position:relative;right:95.8333333333%}.el-col-md-push-23{left:95.8333333333%;position:relative}.el-col-md-24{display:block;flex:0 0 100%;max-width:100%}.el-col-md-24.is-guttered{display:block}.el-col-md-offset-24{margin-left:100%}.el-col-md-pull-24{position:relative;right:100%}.el-col-md-push-24{left:100%;position:relative}}@media only screen and (min-width:1200px){.el-col-lg-0{display:none;flex:0 0 0%;max-width:0}.el-col-lg-0.is-guttered{display:none}.el-col-lg-offset-0{margin-left:0}.el-col-lg-pull-0{position:relative;right:0}.el-col-lg-push-0{left:0;position:relative}.el-col-lg-1{flex:0 0 4.1666666667%;max-width:4.1666666667%}.el-col-lg-1,.el-col-lg-1.is-guttered{display:block}.el-col-lg-offset-1{margin-left:4.1666666667%}.el-col-lg-pull-1{position:relative;right:4.1666666667%}.el-col-lg-push-1{left:4.1666666667%;position:relative}.el-col-lg-2{flex:0 0 8.3333333333%;max-width:8.3333333333%}.el-col-lg-2,.el-col-lg-2.is-guttered{display:block}.el-col-lg-offset-2{margin-left:8.3333333333%}.el-col-lg-pull-2{position:relative;right:8.3333333333%}.el-col-lg-push-2{left:8.3333333333%;position:relative}.el-col-lg-3{flex:0 0 12.5%;max-width:12.5%}.el-col-lg-3,.el-col-lg-3.is-guttered{display:block}.el-col-lg-offset-3{margin-left:12.5%}.el-col-lg-pull-3{position:relative;right:12.5%}.el-col-lg-push-3{left:12.5%;position:relative}.el-col-lg-4{flex:0 0 16.6666666667%;max-width:16.6666666667%}.el-col-lg-4,.el-col-lg-4.is-guttered{display:block}.el-col-lg-offset-4{margin-left:16.6666666667%}.el-col-lg-pull-4{position:relative;right:16.6666666667%}.el-col-lg-push-4{left:16.6666666667%;position:relative}.el-col-lg-5{flex:0 0 20.8333333333%;max-width:20.8333333333%}.el-col-lg-5,.el-col-lg-5.is-guttered{display:block}.el-col-lg-offset-5{margin-left:20.8333333333%}.el-col-lg-pull-5{position:relative;right:20.8333333333%}.el-col-lg-push-5{left:20.8333333333%;position:relative}.el-col-lg-6{flex:0 0 25%;max-width:25%}.el-col-lg-6,.el-col-lg-6.is-guttered{display:block}.el-col-lg-offset-6{margin-left:25%}.el-col-lg-pull-6{position:relative;right:25%}.el-col-lg-push-6{left:25%;position:relative}.el-col-lg-7{flex:0 0 29.1666666667%;max-width:29.1666666667%}.el-col-lg-7,.el-col-lg-7.is-guttered{display:block}.el-col-lg-offset-7{margin-left:29.1666666667%}.el-col-lg-pull-7{position:relative;right:29.1666666667%}.el-col-lg-push-7{left:29.1666666667%;position:relative}.el-col-lg-8{flex:0 0 33.3333333333%;max-width:33.3333333333%}.el-col-lg-8,.el-col-lg-8.is-guttered{display:block}.el-col-lg-offset-8{margin-left:33.3333333333%}.el-col-lg-pull-8{position:relative;right:33.3333333333%}.el-col-lg-push-8{left:33.3333333333%;position:relative}.el-col-lg-9{flex:0 0 37.5%;max-width:37.5%}.el-col-lg-9,.el-col-lg-9.is-guttered{display:block}.el-col-lg-offset-9{margin-left:37.5%}.el-col-lg-pull-9{position:relative;right:37.5%}.el-col-lg-push-9{left:37.5%;position:relative}.el-col-lg-10{display:block;flex:0 0 41.6666666667%;max-width:41.6666666667%}.el-col-lg-10.is-guttered{display:block}.el-col-lg-offset-10{margin-left:41.6666666667%}.el-col-lg-pull-10{position:relative;right:41.6666666667%}.el-col-lg-push-10{left:41.6666666667%;position:relative}.el-col-lg-11{display:block;flex:0 0 45.8333333333%;max-width:45.8333333333%}.el-col-lg-11.is-guttered{display:block}.el-col-lg-offset-11{margin-left:45.8333333333%}.el-col-lg-pull-11{position:relative;right:45.8333333333%}.el-col-lg-push-11{left:45.8333333333%;position:relative}.el-col-lg-12{display:block;flex:0 0 50%;max-width:50%}.el-col-lg-12.is-guttered{display:block}.el-col-lg-offset-12{margin-left:50%}.el-col-lg-pull-12{position:relative;right:50%}.el-col-lg-push-12{left:50%;position:relative}.el-col-lg-13{display:block;flex:0 0 54.1666666667%;max-width:54.1666666667%}.el-col-lg-13.is-guttered{display:block}.el-col-lg-offset-13{margin-left:54.1666666667%}.el-col-lg-pull-13{position:relative;right:54.1666666667%}.el-col-lg-push-13{left:54.1666666667%;position:relative}.el-col-lg-14{display:block;flex:0 0 58.3333333333%;max-width:58.3333333333%}.el-col-lg-14.is-guttered{display:block}.el-col-lg-offset-14{margin-left:58.3333333333%}.el-col-lg-pull-14{position:relative;right:58.3333333333%}.el-col-lg-push-14{left:58.3333333333%;position:relative}.el-col-lg-15{display:block;flex:0 0 62.5%;max-width:62.5%}.el-col-lg-15.is-guttered{display:block}.el-col-lg-offset-15{margin-left:62.5%}.el-col-lg-pull-15{position:relative;right:62.5%}.el-col-lg-push-15{left:62.5%;position:relative}.el-col-lg-16{display:block;flex:0 0 66.6666666667%;max-width:66.6666666667%}.el-col-lg-16.is-guttered{display:block}.el-col-lg-offset-16{margin-left:66.6666666667%}.el-col-lg-pull-16{position:relative;right:66.6666666667%}.el-col-lg-push-16{left:66.6666666667%;position:relative}.el-col-lg-17{display:block;flex:0 0 70.8333333333%;max-width:70.8333333333%}.el-col-lg-17.is-guttered{display:block}.el-col-lg-offset-17{margin-left:70.8333333333%}.el-col-lg-pull-17{position:relative;right:70.8333333333%}.el-col-lg-push-17{left:70.8333333333%;position:relative}.el-col-lg-18{display:block;flex:0 0 75%;max-width:75%}.el-col-lg-18.is-guttered{display:block}.el-col-lg-offset-18{margin-left:75%}.el-col-lg-pull-18{position:relative;right:75%}.el-col-lg-push-18{left:75%;position:relative}.el-col-lg-19{display:block;flex:0 0 79.1666666667%;max-width:79.1666666667%}.el-col-lg-19.is-guttered{display:block}.el-col-lg-offset-19{margin-left:79.1666666667%}.el-col-lg-pull-19{position:relative;right:79.1666666667%}.el-col-lg-push-19{left:79.1666666667%;position:relative}.el-col-lg-20{display:block;flex:0 0 83.3333333333%;max-width:83.3333333333%}.el-col-lg-20.is-guttered{display:block}.el-col-lg-offset-20{margin-left:83.3333333333%}.el-col-lg-pull-20{position:relative;right:83.3333333333%}.el-col-lg-push-20{left:83.3333333333%;position:relative}.el-col-lg-21{display:block;flex:0 0 87.5%;max-width:87.5%}.el-col-lg-21.is-guttered{display:block}.el-col-lg-offset-21{margin-left:87.5%}.el-col-lg-pull-21{position:relative;right:87.5%}.el-col-lg-push-21{left:87.5%;position:relative}.el-col-lg-22{display:block;flex:0 0 91.6666666667%;max-width:91.6666666667%}.el-col-lg-22.is-guttered{display:block}.el-col-lg-offset-22{margin-left:91.6666666667%}.el-col-lg-pull-22{position:relative;right:91.6666666667%}.el-col-lg-push-22{left:91.6666666667%;position:relative}.el-col-lg-23{display:block;flex:0 0 95.8333333333%;max-width:95.8333333333%}.el-col-lg-23.is-guttered{display:block}.el-col-lg-offset-23{margin-left:95.8333333333%}.el-col-lg-pull-23{position:relative;right:95.8333333333%}.el-col-lg-push-23{left:95.8333333333%;position:relative}.el-col-lg-24{display:block;flex:0 0 100%;max-width:100%}.el-col-lg-24.is-guttered{display:block}.el-col-lg-offset-24{margin-left:100%}.el-col-lg-pull-24{position:relative;right:100%}.el-col-lg-push-24{left:100%;position:relative}}@media only screen and (min-width:1920px){.el-col-xl-0{display:none;flex:0 0 0%;max-width:0}.el-col-xl-0.is-guttered{display:none}.el-col-xl-offset-0{margin-left:0}.el-col-xl-pull-0{position:relative;right:0}.el-col-xl-push-0{left:0;position:relative}.el-col-xl-1{flex:0 0 4.1666666667%;max-width:4.1666666667%}.el-col-xl-1,.el-col-xl-1.is-guttered{display:block}.el-col-xl-offset-1{margin-left:4.1666666667%}.el-col-xl-pull-1{position:relative;right:4.1666666667%}.el-col-xl-push-1{left:4.1666666667%;position:relative}.el-col-xl-2{flex:0 0 8.3333333333%;max-width:8.3333333333%}.el-col-xl-2,.el-col-xl-2.is-guttered{display:block}.el-col-xl-offset-2{margin-left:8.3333333333%}.el-col-xl-pull-2{position:relative;right:8.3333333333%}.el-col-xl-push-2{left:8.3333333333%;position:relative}.el-col-xl-3{flex:0 0 12.5%;max-width:12.5%}.el-col-xl-3,.el-col-xl-3.is-guttered{display:block}.el-col-xl-offset-3{margin-left:12.5%}.el-col-xl-pull-3{position:relative;right:12.5%}.el-col-xl-push-3{left:12.5%;position:relative}.el-col-xl-4{flex:0 0 16.6666666667%;max-width:16.6666666667%}.el-col-xl-4,.el-col-xl-4.is-guttered{display:block}.el-col-xl-offset-4{margin-left:16.6666666667%}.el-col-xl-pull-4{position:relative;right:16.6666666667%}.el-col-xl-push-4{left:16.6666666667%;position:relative}.el-col-xl-5{flex:0 0 20.8333333333%;max-width:20.8333333333%}.el-col-xl-5,.el-col-xl-5.is-guttered{display:block}.el-col-xl-offset-5{margin-left:20.8333333333%}.el-col-xl-pull-5{position:relative;right:20.8333333333%}.el-col-xl-push-5{left:20.8333333333%;position:relative}.el-col-xl-6{flex:0 0 25%;max-width:25%}.el-col-xl-6,.el-col-xl-6.is-guttered{display:block}.el-col-xl-offset-6{margin-left:25%}.el-col-xl-pull-6{position:relative;right:25%}.el-col-xl-push-6{left:25%;position:relative}.el-col-xl-7{flex:0 0 29.1666666667%;max-width:29.1666666667%}.el-col-xl-7,.el-col-xl-7.is-guttered{display:block}.el-col-xl-offset-7{margin-left:29.1666666667%}.el-col-xl-pull-7{position:relative;right:29.1666666667%}.el-col-xl-push-7{left:29.1666666667%;position:relative}.el-col-xl-8{flex:0 0 33.3333333333%;max-width:33.3333333333%}.el-col-xl-8,.el-col-xl-8.is-guttered{display:block}.el-col-xl-offset-8{margin-left:33.3333333333%}.el-col-xl-pull-8{position:relative;right:33.3333333333%}.el-col-xl-push-8{left:33.3333333333%;position:relative}.el-col-xl-9{flex:0 0 37.5%;max-width:37.5%}.el-col-xl-9,.el-col-xl-9.is-guttered{display:block}.el-col-xl-offset-9{margin-left:37.5%}.el-col-xl-pull-9{position:relative;right:37.5%}.el-col-xl-push-9{left:37.5%;position:relative}.el-col-xl-10{display:block;flex:0 0 41.6666666667%;max-width:41.6666666667%}.el-col-xl-10.is-guttered{display:block}.el-col-xl-offset-10{margin-left:41.6666666667%}.el-col-xl-pull-10{position:relative;right:41.6666666667%}.el-col-xl-push-10{left:41.6666666667%;position:relative}.el-col-xl-11{display:block;flex:0 0 45.8333333333%;max-width:45.8333333333%}.el-col-xl-11.is-guttered{display:block}.el-col-xl-offset-11{margin-left:45.8333333333%}.el-col-xl-pull-11{position:relative;right:45.8333333333%}.el-col-xl-push-11{left:45.8333333333%;position:relative}.el-col-xl-12{display:block;flex:0 0 50%;max-width:50%}.el-col-xl-12.is-guttered{display:block}.el-col-xl-offset-12{margin-left:50%}.el-col-xl-pull-12{position:relative;right:50%}.el-col-xl-push-12{left:50%;position:relative}.el-col-xl-13{display:block;flex:0 0 54.1666666667%;max-width:54.1666666667%}.el-col-xl-13.is-guttered{display:block}.el-col-xl-offset-13{margin-left:54.1666666667%}.el-col-xl-pull-13{position:relative;right:54.1666666667%}.el-col-xl-push-13{left:54.1666666667%;position:relative}.el-col-xl-14{display:block;flex:0 0 58.3333333333%;max-width:58.3333333333%}.el-col-xl-14.is-guttered{display:block}.el-col-xl-offset-14{margin-left:58.3333333333%}.el-col-xl-pull-14{position:relative;right:58.3333333333%}.el-col-xl-push-14{left:58.3333333333%;position:relative}.el-col-xl-15{display:block;flex:0 0 62.5%;max-width:62.5%}.el-col-xl-15.is-guttered{display:block}.el-col-xl-offset-15{margin-left:62.5%}.el-col-xl-pull-15{position:relative;right:62.5%}.el-col-xl-push-15{left:62.5%;position:relative}.el-col-xl-16{display:block;flex:0 0 66.6666666667%;max-width:66.6666666667%}.el-col-xl-16.is-guttered{display:block}.el-col-xl-offset-16{margin-left:66.6666666667%}.el-col-xl-pull-16{position:relative;right:66.6666666667%}.el-col-xl-push-16{left:66.6666666667%;position:relative}.el-col-xl-17{display:block;flex:0 0 70.8333333333%;max-width:70.8333333333%}.el-col-xl-17.is-guttered{display:block}.el-col-xl-offset-17{margin-left:70.8333333333%}.el-col-xl-pull-17{position:relative;right:70.8333333333%}.el-col-xl-push-17{left:70.8333333333%;position:relative}.el-col-xl-18{display:block;flex:0 0 75%;max-width:75%}.el-col-xl-18.is-guttered{display:block}.el-col-xl-offset-18{margin-left:75%}.el-col-xl-pull-18{position:relative;right:75%}.el-col-xl-push-18{left:75%;position:relative}.el-col-xl-19{display:block;flex:0 0 79.1666666667%;max-width:79.1666666667%}.el-col-xl-19.is-guttered{display:block}.el-col-xl-offset-19{margin-left:79.1666666667%}.el-col-xl-pull-19{position:relative;right:79.1666666667%}.el-col-xl-push-19{left:79.1666666667%;position:relative}.el-col-xl-20{display:block;flex:0 0 83.3333333333%;max-width:83.3333333333%}.el-col-xl-20.is-guttered{display:block}.el-col-xl-offset-20{margin-left:83.3333333333%}.el-col-xl-pull-20{position:relative;right:83.3333333333%}.el-col-xl-push-20{left:83.3333333333%;position:relative}.el-col-xl-21{display:block;flex:0 0 87.5%;max-width:87.5%}.el-col-xl-21.is-guttered{display:block}.el-col-xl-offset-21{margin-left:87.5%}.el-col-xl-pull-21{position:relative;right:87.5%}.el-col-xl-push-21{left:87.5%;position:relative}.el-col-xl-22{display:block;flex:0 0 91.6666666667%;max-width:91.6666666667%}.el-col-xl-22.is-guttered{display:block}.el-col-xl-offset-22{margin-left:91.6666666667%}.el-col-xl-pull-22{position:relative;right:91.6666666667%}.el-col-xl-push-22{left:91.6666666667%;position:relative}.el-col-xl-23{display:block;flex:0 0 95.8333333333%;max-width:95.8333333333%}.el-col-xl-23.is-guttered{display:block}.el-col-xl-offset-23{margin-left:95.8333333333%}.el-col-xl-pull-23{position:relative;right:95.8333333333%}.el-col-xl-push-23{left:95.8333333333%;position:relative}.el-col-xl-24{display:block;flex:0 0 100%;max-width:100%}.el-col-xl-24.is-guttered{display:block}.el-col-xl-offset-24{margin-left:100%}.el-col-xl-pull-24{position:relative;right:100%}.el-col-xl-push-24{left:100%;position:relative}}.el-collapse{--el-collapse-border-color:var(--el-border-color-lighter);--el-collapse-header-height:48px;--el-collapse-header-bg-color:var(--el-fill-color-blank);--el-collapse-header-text-color:var(--el-text-color-primary);--el-collapse-header-font-size:13px;--el-collapse-content-bg-color:var(--el-fill-color-blank);--el-collapse-content-font-size:13px;--el-collapse-content-text-color:var(--el-text-color-primary);border-bottom:1px solid var(--el-collapse-border-color);border-top:1px solid var(--el-collapse-border-color)}.el-collapse-item.is-disabled .el-collapse-item__header{color:var(--el-text-color-disabled);cursor:not-allowed}.el-collapse-item__header{align-items:center;background-color:var(--el-collapse-header-bg-color);border:none;border-bottom:1px solid var(--el-collapse-border-color);color:var(--el-collapse-header-text-color);cursor:pointer;display:flex;font-size:var(--el-collapse-header-font-size);font-weight:500;height:var(--el-collapse-header-height);line-height:var(--el-collapse-header-height);outline:none;padding:0;transition:border-bottom-color var(--el-transition-duration);width:100%}.el-collapse-item__arrow{font-weight:300;margin:0 8px 0 auto;transition:transform var(--el-transition-duration)}.el-collapse-item__arrow.is-active{transform:rotate(90deg)}.el-collapse-item__header.focusing:focus:not(:hover){color:var(--el-color-primary)}.el-collapse-item__header.is-active{border-bottom-color:transparent}.el-collapse-item__wrap{background-color:var(--el-collapse-content-bg-color);border-bottom:1px solid var(--el-collapse-border-color);box-sizing:border-box;overflow:hidden;will-change:height}.el-collapse-item__content{color:var(--el-collapse-content-text-color);font-size:var(--el-collapse-content-font-size);line-height:1.7692307692;padding-bottom:25px}.el-collapse-item:last-child{margin-bottom:-1px}.el-color-predefine{display:flex;font-size:12px;margin-top:8px;width:280px}.el-color-predefine__colors{display:flex;flex:1;flex-wrap:wrap}.el-color-predefine__color-selector{border-radius:4px;cursor:pointer;height:20px;margin:0 0 8px 8px;width:20px}.el-color-predefine__color-selector:nth-child(10n+1){margin-left:0}.el-color-predefine__color-selector.selected{box-shadow:0 0 3px 2px var(--el-color-primary)}.el-color-predefine__color-selector>div{border-radius:3px;display:flex;height:100%}.el-color-predefine__color-selector.is-alpha{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==)}.el-color-hue-slider{background-color:red;box-sizing:border-box;float:right;height:12px;padding:0 2px;position:relative;width:280px}.el-color-hue-slider__bar{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff,#00f 67%,#f0f 83%,red);height:100%;position:relative}.el-color-hue-slider__thumb{background:#fff;border:1px solid var(--el-border-color-lighter);border-radius:1px;box-shadow:0 0 2px #0009;box-sizing:border-box;cursor:pointer;height:100%;left:0;position:absolute;top:0;width:4px;z-index:1}.el-color-hue-slider__thumb:focus-visible{outline:2px solid var(--el-color-primary);outline-offset:1px}.el-color-hue-slider.is-vertical{height:180px;padding:2px 0;width:12px}.el-color-hue-slider.is-vertical .el-color-hue-slider__bar{background:linear-gradient(180deg,red 0,#ff0 17%,#0f0 33%,#0ff,#00f 67%,#f0f 83%,red)}.el-color-hue-slider.is-vertical .el-color-hue-slider__thumb{height:4px;left:0;top:0;width:100%}.el-color-svpanel{height:180px;position:relative;width:280px}.el-color-svpanel__black,.el-color-svpanel__white{bottom:0;left:0;position:absolute;right:0;top:0}.el-color-svpanel__white{background:linear-gradient(90deg,#fff,#fff0)}.el-color-svpanel__black{background:linear-gradient(0deg,#000,#0000)}.el-color-svpanel__cursor{position:absolute}.el-color-svpanel__cursor>div{border-radius:50%;box-shadow:0 0 0 1.5px #fff,inset 0 0 1px 1px #0000004d,0 0 1px 2px #0006;cursor:head;height:4px;transform:translate(-2px,-2px);width:4px}.el-color-alpha-slider{background-image:linear-gradient(45deg,var(--el-color-picker-alpha-bg-a) 25%,var(--el-color-picker-alpha-bg-b) 25%),linear-gradient(135deg,var(--el-color-picker-alpha-bg-a) 25%,var(--el-color-picker-alpha-bg-b) 25%),linear-gradient(45deg,var(--el-color-picker-alpha-bg-b) 75%,var(--el-color-picker-alpha-bg-a) 75%),linear-gradient(135deg,var(--el-color-picker-alpha-bg-b) 75%,var(--el-color-picker-alpha-bg-a) 75%);background-position:0 0,6px 0,6px -6px,0 6px;background-size:12px 12px;box-sizing:border-box;height:12px;position:relative;width:280px}.el-color-alpha-slider__bar{background:linear-gradient(to right,rgba(255,255,255,0) 0,var(--el-bg-color) 100%);height:100%;position:relative}.el-color-alpha-slider__thumb{background:#fff;border:1px solid var(--el-border-color-lighter);border-radius:1px;box-shadow:0 0 2px #0009;box-sizing:border-box;cursor:pointer;height:100%;left:0;position:absolute;top:0;width:4px;z-index:1}.el-color-alpha-slider__thumb:focus-visible{outline:2px solid var(--el-color-primary);outline-offset:1px}.el-color-alpha-slider.is-vertical{height:180px;width:20px}.el-color-alpha-slider.is-vertical .el-color-alpha-slider__bar{background:linear-gradient(180deg,#fff0 0,#fff)}.el-color-alpha-slider.is-vertical .el-color-alpha-slider__thumb{height:4px;left:0;top:0;width:100%}.el-color-dropdown{width:300px}.el-color-dropdown__main-wrapper{margin-bottom:6px}.el-color-dropdown__main-wrapper:after{clear:both;content:"";display:table}.el-color-dropdown__btns{margin-top:12px;text-align:right}.el-color-dropdown__value{color:#000;float:left;font-size:12px;line-height:26px;width:160px}.el-color-picker{display:inline-block;line-height:normal;outline:none;position:relative}.el-color-picker:hover:not(.is-disabled,.is-focused) .el-color-picker__trigger{border-color:var(--el-border-color-hover)}.el-color-picker:focus-visible:not(.is-disabled) .el-color-picker__trigger{outline:2px solid var(--el-color-primary);outline-offset:1px}.el-color-picker.is-focused .el-color-picker__trigger{border-color:var(--el-color-primary)}.el-color-picker.is-disabled{pointer-events:none}.el-color-picker.is-disabled .el-color-picker__trigger{cursor:not-allowed}.el-color-picker--large{height:40px}.el-color-picker--large .el-color-picker__trigger{height:40px;width:40px}.el-color-picker--large .el-color-picker__mask{height:38px;width:38px}.el-color-picker--small{height:24px}.el-color-picker--small .el-color-picker__trigger{height:24px;width:24px}.el-color-picker--small .el-color-picker__mask{height:22px;width:22px}.el-color-picker--small .el-color-picker__empty,.el-color-picker--small .el-color-picker__icon{transform:scale(.8)}.el-color-picker__mask{background-color:#ffffffb3;border-radius:4px;cursor:not-allowed;height:30px;left:1px;position:absolute;top:1px;width:30px;z-index:1}.el-color-picker__trigger{align-items:center;border:1px solid var(--el-border-color);border-radius:4px;box-sizing:border-box;cursor:pointer;display:inline-flex;font-size:0;height:32px;justify-content:center;padding:4px;position:relative;width:32px}.el-color-picker__color{border:1px solid var(--el-text-color-secondary);border-radius:var(--el-border-radius-small);box-sizing:border-box;display:block;height:100%;position:relative;text-align:center;width:100%}.el-color-picker__color.is-alpha{background-image:linear-gradient(45deg,var(--el-color-picker-alpha-bg-a) 25%,var(--el-color-picker-alpha-bg-b) 25%),linear-gradient(135deg,var(--el-color-picker-alpha-bg-a) 25%,var(--el-color-picker-alpha-bg-b) 25%),linear-gradient(45deg,var(--el-color-picker-alpha-bg-b) 75%,var(--el-color-picker-alpha-bg-a) 75%),linear-gradient(135deg,var(--el-color-picker-alpha-bg-b) 75%,var(--el-color-picker-alpha-bg-a) 75%);background-position:0 0,6px 0,6px -6px,0 6px;background-size:12px 12px}.el-color-picker__color-inner{align-items:center;display:inline-flex;height:100%;justify-content:center;width:100%}.el-color-picker .el-color-picker__empty{color:var(--el-text-color-secondary);font-size:12px}.el-color-picker .el-color-picker__icon{align-items:center;color:#fff;display:inline-flex;font-size:12px;justify-content:center}.el-color-picker__panel{background-color:#fff;border-radius:var(--el-border-radius-base);box-shadow:var(--el-box-shadow-light);box-sizing:content-box;padding:6px;position:absolute;z-index:10}.el-color-picker__panel.el-popper{border:1px solid var(--el-border-color-lighter)}.el-color-picker,.el-color-picker__panel{--el-color-picker-alpha-bg-a:#ccc;--el-color-picker-alpha-bg-b:transparent}.dark .el-color-picker,.dark .el-color-picker__panel{--el-color-picker-alpha-bg-a:#333333}.el-container{box-sizing:border-box;display:flex;flex:1;flex-basis:auto;flex-direction:row;min-width:0}.el-container.is-vertical{flex-direction:column}.el-date-table{font-size:12px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.el-date-table.is-week-mode .el-date-table__row:hover .el-date-table-cell{background-color:var(--el-datepicker-inrange-bg-color)}.el-date-table.is-week-mode .el-date-table__row:hover td.available:hover{color:var(--el-datepicker-text-color)}.el-date-table.is-week-mode .el-date-table__row:hover td:first-child .el-date-table-cell{border-bottom-left-radius:15px;border-top-left-radius:15px;margin-left:5px}.el-date-table.is-week-mode .el-date-table__row:hover td:last-child .el-date-table-cell{border-bottom-right-radius:15px;border-top-right-radius:15px;margin-right:5px}.el-date-table.is-week-mode .el-date-table__row.current .el-date-table-cell{background-color:var(--el-datepicker-inrange-bg-color)}.el-date-table td{box-sizing:border-box;cursor:pointer;height:30px;padding:4px 0;position:relative;text-align:center;width:32px}.el-date-table td .el-date-table-cell{box-sizing:border-box;height:30px;padding:3px 0}.el-date-table td .el-date-table-cell .el-date-table-cell__text{border-radius:50%;display:block;height:24px;left:50%;line-height:24px;margin:0 auto;position:absolute;transform:translate(-50%);width:24px}.el-date-table td.next-month,.el-date-table td.prev-month{color:var(--el-datepicker-off-text-color)}.el-date-table td.today{position:relative}.el-date-table td.today .el-date-table-cell__text{color:var(--el-color-primary);font-weight:700}.el-date-table td.today.end-date .el-date-table-cell__text,.el-date-table td.today.start-date .el-date-table-cell__text{color:#fff}.el-date-table td.available:hover{color:var(--el-datepicker-hover-text-color)}.el-date-table td.in-range .el-date-table-cell{background-color:var(--el-datepicker-inrange-bg-color)}.el-date-table td.in-range .el-date-table-cell:hover{background-color:var(--el-datepicker-inrange-hover-bg-color)}.el-date-table td.current:not(.disabled) .el-date-table-cell__text{background-color:var(--el-datepicker-active-color);color:#fff}.el-date-table td.current:not(.disabled):focus-visible .el-date-table-cell__text{outline:2px solid var(--el-datepicker-active-color);outline-offset:1px}.el-date-table td.end-date .el-date-table-cell,.el-date-table td.start-date .el-date-table-cell{color:#fff}.el-date-table td.end-date .el-date-table-cell__text,.el-date-table td.start-date .el-date-table-cell__text{background-color:var(--el-datepicker-active-color)}.el-date-table td.start-date .el-date-table-cell{border-bottom-left-radius:15px;border-top-left-radius:15px;margin-left:5px}.el-date-table td.end-date .el-date-table-cell{border-bottom-right-radius:15px;border-top-right-radius:15px;margin-right:5px}.el-date-table td.disabled .el-date-table-cell{background-color:var(--el-fill-color-light);color:var(--el-text-color-placeholder);cursor:not-allowed;opacity:1}.el-date-table td.selected .el-date-table-cell{border-radius:15px;margin-left:5px;margin-right:5px}.el-date-table td.selected .el-date-table-cell__text{background-color:var(--el-datepicker-active-color);border-radius:15px;color:#fff}.el-date-table td.week{color:var(--el-datepicker-header-text-color);font-size:80%}.el-date-table td:focus{outline:none}.el-date-table th{border-bottom:1px solid var(--el-border-color-lighter);color:var(--el-datepicker-header-text-color);font-weight:400;padding:5px}.el-month-table{border-collapse:collapse;font-size:12px;margin:-1px}.el-month-table td{cursor:pointer;padding:8px 0;position:relative;text-align:center;width:68px}.el-month-table td .el-date-table-cell{box-sizing:border-box;height:48px;padding:6px 0}.el-month-table td.today .el-date-table-cell__text{color:var(--el-color-primary);font-weight:700}.el-month-table td.today.end-date .el-date-table-cell__text,.el-month-table td.today.start-date .el-date-table-cell__text{color:#fff}.el-month-table td.disabled .el-date-table-cell__text{background-color:var(--el-fill-color-light);color:var(--el-text-color-placeholder);cursor:not-allowed}.el-month-table td.disabled .el-date-table-cell__text:hover{color:var(--el-text-color-placeholder)}.el-month-table td .el-date-table-cell__text{border-radius:18px;color:var(--el-datepicker-text-color);display:block;height:36px;left:50%;line-height:36px;margin:0 auto;position:absolute;transform:translate(-50%);width:54px}.el-month-table td .el-date-table-cell__text:hover{color:var(--el-datepicker-hover-text-color)}.el-month-table td.in-range .el-date-table-cell{background-color:var(--el-datepicker-inrange-bg-color)}.el-month-table td.in-range .el-date-table-cell:hover{background-color:var(--el-datepicker-inrange-hover-bg-color)}.el-month-table td.end-date .el-date-table-cell,.el-month-table td.start-date .el-date-table-cell{color:#fff}.el-month-table td.end-date .el-date-table-cell__text,.el-month-table td.start-date .el-date-table-cell__text{background-color:var(--el-datepicker-active-color);color:#fff}.el-month-table td.start-date .el-date-table-cell{border-bottom-left-radius:24px;border-top-left-radius:24px;margin-left:3px}.el-month-table td.end-date .el-date-table-cell{border-bottom-right-radius:24px;border-top-right-radius:24px;margin-right:3px}.el-month-table td.current:not(.disabled) .el-date-table-cell{border-radius:24px;margin-left:3px;margin-right:3px}.el-month-table td.current:not(.disabled) .el-date-table-cell__text{background-color:var(--el-datepicker-active-color);color:#fff}.el-month-table td:focus-visible{outline:none}.el-month-table td:focus-visible .el-date-table-cell__text{outline:2px solid var(--el-datepicker-active-color);outline-offset:1px}.el-year-table{border-collapse:collapse;font-size:12px;margin:-1px}.el-year-table .el-icon{color:var(--el-datepicker-icon-color)}.el-year-table td{cursor:pointer;padding:8px 0;position:relative;text-align:center;width:68px}.el-year-table td .el-date-table-cell{box-sizing:border-box;height:48px;padding:6px 0}.el-year-table td.today .el-date-table-cell__text{color:var(--el-color-primary);font-weight:700}.el-year-table td.today.end-date .el-date-table-cell__text,.el-year-table td.today.start-date .el-date-table-cell__text{color:#fff}.el-year-table td.disabled .el-date-table-cell__text{background-color:var(--el-fill-color-light);color:var(--el-text-color-placeholder);cursor:not-allowed}.el-year-table td.disabled .el-date-table-cell__text:hover{color:var(--el-text-color-placeholder)}.el-year-table td .el-date-table-cell__text{border-radius:18px;color:var(--el-datepicker-text-color);display:block;height:36px;left:50%;line-height:36px;margin:0 auto;position:absolute;transform:translate(-50%);width:60px}.el-year-table td .el-date-table-cell__text:hover{color:var(--el-datepicker-hover-text-color)}.el-year-table td.in-range .el-date-table-cell{background-color:var(--el-datepicker-inrange-bg-color)}.el-year-table td.in-range .el-date-table-cell:hover{background-color:var(--el-datepicker-inrange-hover-bg-color)}.el-year-table td.end-date .el-date-table-cell,.el-year-table td.start-date .el-date-table-cell{color:#fff}.el-year-table td.end-date .el-date-table-cell__text,.el-year-table td.start-date .el-date-table-cell__text{background-color:var(--el-datepicker-active-color);color:#fff}.el-year-table td.start-date .el-date-table-cell{border-bottom-left-radius:24px;border-top-left-radius:24px}.el-year-table td.end-date .el-date-table-cell{border-bottom-right-radius:24px;border-top-right-radius:24px}.el-year-table td.current:not(.disabled) .el-date-table-cell__text{background-color:var(--el-datepicker-active-color);color:#fff}.el-year-table td:focus-visible{outline:none}.el-year-table td:focus-visible .el-date-table-cell__text{outline:2px solid var(--el-datepicker-active-color);outline-offset:1px}.el-time-spinner.has-seconds .el-time-spinner__wrapper{width:33.3%}.el-time-spinner__wrapper{display:inline-block;max-height:192px;overflow:auto;position:relative;vertical-align:top;width:50%}.el-time-spinner__wrapper.el-scrollbar__wrap:not(.el-scrollbar__wrap--hidden-default){padding-bottom:15px}.el-time-spinner__wrapper.is-arrow{box-sizing:border-box;overflow:hidden;text-align:center}.el-time-spinner__wrapper.is-arrow .el-time-spinner__list{transform:translateY(-32px)}.el-time-spinner__wrapper.is-arrow .el-time-spinner__item:hover:not(.is-disabled):not(.is-active){background:var(--el-fill-color-light);cursor:default}.el-time-spinner__arrow{color:var(--el-text-color-secondary);cursor:pointer;font-size:12px;height:30px;left:0;line-height:30px;position:absolute;text-align:center;width:100%;z-index:var(--el-index-normal)}.el-time-spinner__arrow:hover{color:var(--el-color-primary)}.el-time-spinner__arrow.arrow-up{top:10px}.el-time-spinner__arrow.arrow-down{bottom:10px}.el-time-spinner__input.el-input{width:70%}.el-time-spinner__input.el-input .el-input__inner,.el-time-spinner__list{padding:0;text-align:center}.el-time-spinner__list{list-style:none;margin:0}.el-time-spinner__list:after,.el-time-spinner__list:before{content:"";display:block;height:80px;width:100%}.el-time-spinner__item{color:var(--el-text-color-regular);font-size:12px;height:32px;line-height:32px}.el-time-spinner__item:hover:not(.is-disabled):not(.is-active){background:var(--el-fill-color-light);cursor:pointer}.el-time-spinner__item.is-active:not(.is-disabled){color:var(--el-text-color-primary);font-weight:700}.el-time-spinner__item.is-disabled{color:var(--el-text-color-placeholder);cursor:not-allowed}.el-picker__popper{--el-datepicker-border-color:var(--el-disabled-border-color)}.el-picker__popper.el-popper{background:var(--el-bg-color-overlay);box-shadow:var(--el-box-shadow-light)}.el-picker__popper.el-popper,.el-picker__popper.el-popper .el-popper__arrow:before{border:1px solid var(--el-datepicker-border-color)}.el-picker__popper.el-popper[data-popper-placement^=top] .el-popper__arrow:before{border-left-color:transparent;border-top-color:transparent}.el-picker__popper.el-popper[data-popper-placement^=bottom] .el-popper__arrow:before{border-bottom-color:transparent;border-right-color:transparent}.el-picker__popper.el-popper[data-popper-placement^=left] .el-popper__arrow:before{border-bottom-color:transparent;border-left-color:transparent}.el-picker__popper.el-popper[data-popper-placement^=right] .el-popper__arrow:before{border-right-color:transparent;border-top-color:transparent}.el-date-editor{--el-date-editor-width:220px;--el-date-editor-monthrange-width:300px;--el-date-editor-daterange-width:350px;--el-date-editor-datetimerange-width:400px;--el-input-text-color:var(--el-text-color-regular);--el-input-border:var(--el-border);--el-input-hover-border:var(--el-border-color-hover);--el-input-focus-border:var(--el-color-primary);--el-input-transparent-border:0 0 0 1px transparent inset;--el-input-border-color:var(--el-border-color);--el-input-border-radius:var(--el-border-radius-base);--el-input-bg-color:var(--el-fill-color-blank);--el-input-icon-color:var(--el-text-color-placeholder);--el-input-placeholder-color:var(--el-text-color-placeholder);--el-input-hover-border-color:var(--el-border-color-hover);--el-input-clear-hover-color:var(--el-text-color-secondary);--el-input-focus-border-color:var(--el-color-primary);--el-input-width:100%;position:relative;text-align:left;vertical-align:middle}.el-date-editor.el-input__wrapper{box-shadow:0 0 0 1px var(--el-input-border-color,var(--el-border-color)) inset}.el-date-editor.el-input__wrapper:hover{box-shadow:0 0 0 1px var(--el-input-hover-border-color) inset}.el-date-editor.el-input,.el-date-editor.el-input__wrapper{height:var(--el-input-height,var(--el-component-size));width:var(--el-date-editor-width)}.el-date-editor--monthrange{--el-date-editor-width:var(--el-date-editor-monthrange-width)}.el-date-editor--daterange,.el-date-editor--timerange{--el-date-editor-width:var(--el-date-editor-daterange-width)}.el-date-editor--datetimerange{--el-date-editor-width:var(--el-date-editor-datetimerange-width)}.el-date-editor--dates .el-input__wrapper{text-overflow:ellipsis;white-space:nowrap}.el-date-editor .clear-icon,.el-date-editor .close-icon{cursor:pointer}.el-date-editor .clear-icon:hover{color:var(--el-text-color-secondary)}.el-date-editor .el-range__icon{color:var(--el-text-color-placeholder);float:left;font-size:14px;height:inherit}.el-date-editor .el-range__icon svg{vertical-align:middle}.el-date-editor .el-range-input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border:none;color:var(--el-text-color-regular);display:inline-block;font-size:var(--el-font-size-base);height:30px;line-height:30px;margin:0;outline:none;padding:0;text-align:center;width:39%}.el-date-editor .el-range-input::-moz-placeholder{color:var(--el-text-color-placeholder)}.el-date-editor .el-range-input::placeholder{color:var(--el-text-color-placeholder)}.el-date-editor .el-range-separator{align-items:center;color:var(--el-text-color-primary);display:inline-flex;flex:1;font-size:14px;height:100%;justify-content:center;margin:0;overflow-wrap:break-word;padding:0 5px}.el-date-editor .el-range__close-icon{color:var(--el-text-color-placeholder);cursor:pointer;font-size:14px;height:inherit;width:unset}.el-date-editor .el-range__close-icon:hover{color:var(--el-text-color-secondary)}.el-date-editor .el-range__close-icon svg{vertical-align:middle}.el-date-editor .el-range__close-icon--hidden{opacity:0;visibility:hidden}.el-range-editor.el-input__wrapper{align-items:center;display:inline-flex;padding:0 10px;vertical-align:middle}.el-range-editor.is-active,.el-range-editor.is-active:hover{box-shadow:0 0 0 1px var(--el-input-focus-border-color) inset}.el-range-editor--large{line-height:var(--el-component-size-large)}.el-range-editor--large.el-input__wrapper{height:var(--el-component-size-large)}.el-range-editor--large .el-range-separator{font-size:14px;line-height:40px}.el-range-editor--large .el-range-input{font-size:14px;height:38px;line-height:38px}.el-range-editor--small{line-height:var(--el-component-size-small)}.el-range-editor--small.el-input__wrapper{height:var(--el-component-size-small)}.el-range-editor--small .el-range-separator{font-size:12px;line-height:24px}.el-range-editor--small .el-range-input{font-size:12px;height:22px;line-height:22px}.el-range-editor.is-disabled{background-color:var(--el-disabled-bg-color);color:var(--el-disabled-text-color);cursor:not-allowed;pointer-events:none}.el-range-editor.is-disabled,.el-range-editor.is-disabled:focus,.el-range-editor.is-disabled:hover{border-color:var(--el-disabled-border-color)}.el-range-editor.is-disabled input{background-color:var(--el-disabled-bg-color);color:var(--el-disabled-text-color);cursor:not-allowed}.el-range-editor.is-disabled input::-moz-placeholder{color:var(--el-text-color-placeholder)}.el-range-editor.is-disabled input::placeholder{color:var(--el-text-color-placeholder)}.el-range-editor.is-disabled .el-range-separator{color:var(--el-disabled-text-color)}.el-picker-panel{background:var(--el-bg-color-overlay);border-radius:var(--el-border-radius-base);color:var(--el-text-color-regular);line-height:30px}.el-picker-panel .el-time-panel{background-color:var(--el-bg-color-overlay);border:1px solid var(--el-datepicker-border-color);box-shadow:var(--el-box-shadow-light);margin:5px 0}.el-picker-panel__body-wrapper:after,.el-picker-panel__body:after{clear:both;content:"";display:table}.el-picker-panel__content{margin:15px;position:relative}.el-picker-panel__footer{background-color:var(--el-bg-color-overlay);border-top:1px solid var(--el-datepicker-inner-border-color);font-size:0;padding:4px 12px;position:relative;text-align:right}.el-picker-panel__shortcut{background-color:transparent;border:0;color:var(--el-datepicker-text-color);cursor:pointer;display:block;font-size:14px;line-height:28px;outline:none;padding-left:12px;text-align:left;width:100%}.el-picker-panel__shortcut:hover{color:var(--el-datepicker-hover-text-color)}.el-picker-panel__shortcut.active{background-color:#e6f1fe;color:var(--el-datepicker-active-color)}.el-picker-panel__btn{background-color:transparent;border:1px solid var(--el-fill-color-darker);border-radius:2px;color:var(--el-text-color-primary);cursor:pointer;font-size:12px;line-height:24px;outline:none;padding:0 20px}.el-picker-panel__btn[disabled]{color:var(--el-text-color-disabled);cursor:not-allowed}.el-picker-panel__icon-btn{background:transparent;border:0;color:var(--el-datepicker-icon-color);cursor:pointer;font-size:12px;margin-top:8px;outline:none}.el-picker-panel__icon-btn:hover{color:var(--el-datepicker-hover-text-color)}.el-picker-panel__icon-btn:focus-visible{color:var(--el-datepicker-hover-text-color)}.el-picker-panel__icon-btn.is-disabled{color:var(--el-text-color-disabled)}.el-picker-panel__icon-btn.is-disabled:hover{cursor:not-allowed}.el-picker-panel__icon-btn .el-icon{cursor:pointer;font-size:inherit}.el-picker-panel__link-btn{vertical-align:middle}.el-picker-panel [slot=sidebar],.el-picker-panel__sidebar{background-color:var(--el-bg-color-overlay);border-right:1px solid var(--el-datepicker-inner-border-color);bottom:0;box-sizing:border-box;overflow:auto;padding-top:6px;position:absolute;top:0;width:110px}.el-picker-panel [slot=sidebar]+.el-picker-panel__body,.el-picker-panel__sidebar+.el-picker-panel__body{margin-left:110px}.el-date-picker{--el-datepicker-text-color:var(--el-text-color-regular);--el-datepicker-off-text-color:var(--el-text-color-placeholder);--el-datepicker-header-text-color:var(--el-text-color-regular);--el-datepicker-icon-color:var(--el-text-color-primary);--el-datepicker-border-color:var(--el-disabled-border-color);--el-datepicker-inner-border-color:var(--el-border-color-light);--el-datepicker-inrange-bg-color:var(--el-border-color-extra-light);--el-datepicker-inrange-hover-bg-color:var(--el-border-color-extra-light);--el-datepicker-active-color:var(--el-color-primary);--el-datepicker-hover-text-color:var(--el-color-primary);width:322px}.el-date-picker.has-sidebar.has-time{width:434px}.el-date-picker.has-sidebar{width:438px}.el-date-picker.has-time .el-picker-panel__body-wrapper{position:relative}.el-date-picker .el-picker-panel__content{width:292px}.el-date-picker table{table-layout:fixed;width:100%}.el-date-picker__editor-wrap{display:table-cell;padding:0 5px;position:relative}.el-date-picker__time-header{border-bottom:1px solid var(--el-datepicker-inner-border-color);box-sizing:border-box;display:table;font-size:12px;padding:8px 5px 5px;position:relative;width:100%}.el-date-picker__header{padding:12px 12px 0;text-align:center}.el-date-picker__header--bordered{border-bottom:1px solid var(--el-border-color-lighter);margin-bottom:0;padding-bottom:12px}.el-date-picker__header--bordered+.el-picker-panel__content{margin-top:0}.el-date-picker__header-label{color:var(--el-text-color-regular);cursor:pointer;font-size:16px;font-weight:500;line-height:22px;padding:0 5px;text-align:center}.el-date-picker__header-label:hover{color:var(--el-datepicker-hover-text-color)}.el-date-picker__header-label:focus-visible{color:var(--el-datepicker-hover-text-color);outline:none}.el-date-picker__header-label.active{color:var(--el-datepicker-active-color)}.el-date-picker__prev-btn{float:left}.el-date-picker__next-btn{float:right}.el-date-picker__time-wrap{padding:10px;text-align:center}.el-date-picker__time-label{cursor:pointer;float:left;line-height:30px;margin-left:10px}.el-date-picker .el-time-panel{position:absolute}.el-date-range-picker{--el-datepicker-text-color:var(--el-text-color-regular);--el-datepicker-off-text-color:var(--el-text-color-placeholder);--el-datepicker-header-text-color:var(--el-text-color-regular);--el-datepicker-icon-color:var(--el-text-color-primary);--el-datepicker-border-color:var(--el-disabled-border-color);--el-datepicker-inner-border-color:var(--el-border-color-light);--el-datepicker-inrange-bg-color:var(--el-border-color-extra-light);--el-datepicker-inrange-hover-bg-color:var(--el-border-color-extra-light);--el-datepicker-active-color:var(--el-color-primary);--el-datepicker-hover-text-color:var(--el-color-primary);width:646px}.el-date-range-picker.has-sidebar{width:756px}.el-date-range-picker.has-time .el-picker-panel__body-wrapper{position:relative}.el-date-range-picker table{table-layout:fixed;width:100%}.el-date-range-picker .el-picker-panel__body{min-width:513px}.el-date-range-picker .el-picker-panel__content{margin:0}.el-date-range-picker__header{height:28px;position:relative;text-align:center}.el-date-range-picker__header [class*=arrow-left]{float:left}.el-date-range-picker__header [class*=arrow-right]{float:right}.el-date-range-picker__header div{font-size:16px;font-weight:500;margin-right:50px}.el-date-range-picker__content{box-sizing:border-box;float:left;margin:0;padding:16px;width:50%}.el-date-range-picker__content.is-left{border-right:1px solid var(--el-datepicker-inner-border-color)}.el-date-range-picker__content .el-date-range-picker__header div{margin-left:50px;margin-right:50px}.el-date-range-picker__editors-wrap{box-sizing:border-box;display:table-cell}.el-date-range-picker__editors-wrap.is-right{text-align:right}.el-date-range-picker__time-header{border-bottom:1px solid var(--el-datepicker-inner-border-color);box-sizing:border-box;display:table;font-size:12px;padding:8px 5px 5px;position:relative;width:100%}.el-date-range-picker__time-header>.el-icon-arrow-right{color:var(--el-datepicker-icon-color);display:table-cell;font-size:20px;vertical-align:middle}.el-date-range-picker__time-picker-wrap{display:table-cell;padding:0 5px;position:relative}.el-date-range-picker__time-picker-wrap .el-picker-panel{background:#fff;position:absolute;right:0;top:13px;z-index:1}.el-date-range-picker__time-picker-wrap .el-time-panel{position:absolute}.el-time-range-picker{overflow:visible;width:354px}.el-time-range-picker__content{padding:10px;position:relative;text-align:center;z-index:1}.el-time-range-picker__cell{box-sizing:border-box;display:inline-block;margin:0;padding:4px 7px 7px;width:50%}.el-time-range-picker__header{font-size:14px;margin-bottom:5px;text-align:center}.el-time-range-picker__body{border:1px solid var(--el-datepicker-border-color);border-radius:2px}.el-time-panel{border-radius:2px;box-sizing:content-box;left:0;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:180px;z-index:var(--el-index-top)}.el-time-panel__content{font-size:0;overflow:hidden;position:relative}.el-time-panel__content:after,.el-time-panel__content:before{box-sizing:border-box;content:"";height:32px;left:0;margin-top:-16px;padding-top:6px;position:absolute;right:0;text-align:left;top:50%;z-index:-1}.el-time-panel__content:after{left:50%;margin-left:12%;margin-right:12%}.el-time-panel__content:before{border-bottom:1px solid var(--el-border-color-light);border-top:1px solid var(--el-border-color-light);margin-left:12%;margin-right:12%;padding-left:50%}.el-time-panel__content.has-seconds:after{left:66.6666666667%}.el-time-panel__content.has-seconds:before{padding-left:33.3333333333%}.el-time-panel__footer{border-top:1px solid var(--el-timepicker-inner-border-color,var(--el-border-color-light));box-sizing:border-box;height:36px;line-height:25px;padding:4px;text-align:right}.el-time-panel__btn{background-color:transparent;border:none;color:var(--el-text-color-primary);cursor:pointer;font-size:12px;line-height:28px;margin:0 5px;outline:none;padding:0 5px}.el-time-panel__btn.confirm{color:var(--el-timepicker-active-color,var(--el-color-primary));font-weight:800}.el-descriptions{--el-descriptions-table-border:1px solid var(--el-border-color-lighter);--el-descriptions-item-bordered-label-background:var(--el-fill-color-light);box-sizing:border-box;color:var(--el-text-color-primary);font-size:var(--el-font-size-base)}.el-descriptions__header{align-items:center;display:flex;justify-content:space-between;margin-bottom:16px}.el-descriptions__title{color:var(--el-text-color-primary);font-size:16px;font-weight:700}.el-descriptions__body{background-color:var(--el-fill-color-blank)}.el-descriptions__body .el-descriptions__table{border-collapse:collapse;width:100%}.el-descriptions__body .el-descriptions__table .el-descriptions__cell{box-sizing:border-box;font-size:14px;font-weight:400;line-height:23px;text-align:left}.el-descriptions__body .el-descriptions__table .el-descriptions__cell.is-left{text-align:left}.el-descriptions__body .el-descriptions__table .el-descriptions__cell.is-center{text-align:center}.el-descriptions__body .el-descriptions__table .el-descriptions__cell.is-right{text-align:right}.el-descriptions__body .el-descriptions__table.is-bordered .el-descriptions__cell{border:var(--el-descriptions-table-border);padding:8px 11px}.el-descriptions__body .el-descriptions__table:not(.is-bordered) .el-descriptions__cell{padding-bottom:12px}.el-descriptions--large{font-size:14px}.el-descriptions--large .el-descriptions__header{margin-bottom:20px}.el-descriptions--large .el-descriptions__header .el-descriptions__title{font-size:16px}.el-descriptions--large .el-descriptions__body .el-descriptions__table .el-descriptions__cell{font-size:14px}.el-descriptions--large .el-descriptions__body .el-descriptions__table.is-bordered .el-descriptions__cell{padding:12px 15px}.el-descriptions--large .el-descriptions__body .el-descriptions__table:not(.is-bordered) .el-descriptions__cell{padding-bottom:16px}.el-descriptions--small{font-size:12px}.el-descriptions--small .el-descriptions__header{margin-bottom:12px}.el-descriptions--small .el-descriptions__header .el-descriptions__title{font-size:14px}.el-descriptions--small .el-descriptions__body .el-descriptions__table .el-descriptions__cell{font-size:12px}.el-descriptions--small .el-descriptions__body .el-descriptions__table.is-bordered .el-descriptions__cell{padding:4px 7px}.el-descriptions--small .el-descriptions__body .el-descriptions__table:not(.is-bordered) .el-descriptions__cell{padding-bottom:8px}.el-descriptions__label.el-descriptions__cell.is-bordered-label{background:var(--el-descriptions-item-bordered-label-background);color:var(--el-text-color-regular);font-weight:700}.el-descriptions__label:not(.is-bordered-label){color:var(--el-text-color-primary);margin-right:16px}.el-descriptions__label.el-descriptions__cell:not(.is-bordered-label).is-vertical-label{padding-bottom:6px}.el-descriptions__content.el-descriptions__cell.is-bordered-content{color:var(--el-text-color-primary)}.el-descriptions__content:not(.is-bordered-label){color:var(--el-text-color-regular)}.el-descriptions--large .el-descriptions__label:not(.is-bordered-label){margin-right:16px}.el-descriptions--large .el-descriptions__label.el-descriptions__cell:not(.is-bordered-label).is-vertical-label{padding-bottom:8px}.el-descriptions--small .el-descriptions__label:not(.is-bordered-label){margin-right:12px}.el-descriptions--small .el-descriptions__label.el-descriptions__cell:not(.is-bordered-label).is-vertical-label{padding-bottom:4px}:root{--el-popup-modal-bg-color:var(--el-color-black);--el-popup-modal-opacity:.5}.v-modal-enter{animation:v-modal-in var(--el-transition-duration-fast) ease}.v-modal-leave{animation:v-modal-out var(--el-transition-duration-fast) ease forwards}@keyframes v-modal-in{0%{opacity:0}}@keyframes v-modal-out{to{opacity:0}}.v-modal{background:var(--el-popup-modal-bg-color);height:100%;left:0;opacity:var(--el-popup-modal-opacity);position:fixed;top:0;width:100%}.el-popup-parent--hidden{overflow:hidden}.el-dialog{--el-dialog-width:50%;--el-dialog-margin-top:15vh;--el-dialog-bg-color:var(--el-bg-color);--el-dialog-box-shadow:var(--el-box-shadow);--el-dialog-title-font-size:var(--el-font-size-large);--el-dialog-content-font-size:14px;--el-dialog-font-line-height:var(--el-font-line-height-primary);--el-dialog-padding-primary:16px;--el-dialog-border-radius:var(--el-border-radius-base);background:var(--el-dialog-bg-color);border-radius:var(--el-dialog-border-radius);box-shadow:var(--el-dialog-box-shadow);box-sizing:border-box;margin:var(--el-dialog-margin-top,15vh) auto 50px;overflow-wrap:break-word;padding:var(--el-dialog-padding-primary);position:relative;width:var(--el-dialog-width,50%)}.el-dialog:focus{outline:none!important}.el-dialog.is-align-center{margin:auto}.el-dialog.is-fullscreen{--el-dialog-width:100%;--el-dialog-margin-top:0;border-radius:0;height:100%;margin-bottom:0;overflow:auto}.el-dialog__wrapper{bottom:0;left:0;margin:0;overflow:auto;position:fixed;right:0;top:0}.el-dialog.is-draggable .el-dialog__header{cursor:move;-webkit-user-select:none;-moz-user-select:none;user-select:none}.el-dialog__header{padding-bottom:var(--el-dialog-padding-primary)}.el-dialog__header.show-close{padding-right:calc(var(--el-dialog-padding-primary) + var(--el-message-close-size, 16px))}.el-dialog__headerbtn{background:transparent;border:none;cursor:pointer;font-size:var(--el-message-close-size,16px);height:48px;outline:none;padding:0;position:absolute;right:0;top:0;width:48px}.el-dialog__headerbtn .el-dialog__close{color:var(--el-color-info);font-size:inherit}.el-dialog__headerbtn:focus .el-dialog__close,.el-dialog__headerbtn:hover .el-dialog__close{color:var(--el-color-primary)}.el-dialog__title{color:var(--el-text-color-primary);font-size:var(--el-dialog-title-font-size);line-height:var(--el-dialog-font-line-height)}.el-dialog__body{color:var(--el-text-color-regular);font-size:var(--el-dialog-content-font-size)}.el-dialog__footer{box-sizing:border-box;padding-top:var(--el-dialog-padding-primary);text-align:right}.el-dialog--center{text-align:center}.el-dialog--center .el-dialog__body{text-align:initial}.el-dialog--center .el-dialog__footer{text-align:inherit}.el-overlay-dialog{bottom:0;left:0;overflow:auto;position:fixed;right:0;top:0}.dialog-fade-enter-active{animation:modal-fade-in var(--el-transition-duration)}.dialog-fade-enter-active .el-overlay-dialog{animation:dialog-fade-in var(--el-transition-duration)}.dialog-fade-leave-active{animation:modal-fade-out var(--el-transition-duration)}.dialog-fade-leave-active .el-overlay-dialog{animation:dialog-fade-out var(--el-transition-duration)}@keyframes dialog-fade-in{0%{opacity:0;transform:translate3d(0,-20px,0)}to{opacity:1;transform:translateZ(0)}}@keyframes dialog-fade-out{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(0,-20px,0)}}@keyframes modal-fade-in{0%{opacity:0}to{opacity:1}}@keyframes modal-fade-out{0%{opacity:1}to{opacity:0}}.el-divider{position:relative}.el-divider--horizontal{border-top:1px var(--el-border-color) var(--el-border-style);display:block;height:1px;margin:24px 0;width:100%}.el-divider--vertical{border-left:1px var(--el-border-color) var(--el-border-style);display:inline-block;height:1em;margin:0 8px;position:relative;vertical-align:middle;width:1px}.el-divider__text{background-color:var(--el-bg-color);color:var(--el-text-color-primary);font-size:14px;font-weight:500;padding:0 20px;position:absolute}.el-divider__text.is-left{left:20px;transform:translateY(-50%)}.el-divider__text.is-center{left:50%;transform:translate(-50%) translateY(-50%)}.el-divider__text.is-right{right:20px;transform:translateY(-50%)}.el-drawer{--el-drawer-bg-color:var(--el-dialog-bg-color,var(--el-bg-color));--el-drawer-padding-primary:var(--el-dialog-padding-primary,20px);background-color:var(--el-drawer-bg-color);box-shadow:var(--el-box-shadow-dark);box-sizing:border-box;display:flex;flex-direction:column;overflow:hidden;position:absolute;transition:all var(--el-transition-duration)}.el-drawer .btt,.el-drawer .ltr,.el-drawer .rtl,.el-drawer .ttb{transform:translate(0)}.el-drawer__sr-focus:focus{outline:none!important}.el-drawer__header{align-items:center;color:#72767b;display:flex;margin-bottom:32px;padding:var(--el-drawer-padding-primary);padding-bottom:0}.el-drawer__header>:first-child{flex:1}.el-drawer__title{flex:1;font-size:16px;line-height:inherit;margin:0}.el-drawer__footer{padding:var(--el-drawer-padding-primary);padding-top:10px;text-align:right}.el-drawer__close-btn{background-color:transparent;border:none;color:inherit;cursor:pointer;display:inline-flex;font-size:var(--el-font-size-extra-large);outline:none}.el-drawer__close-btn:focus i,.el-drawer__close-btn:hover i{color:var(--el-color-primary)}.el-drawer__body{flex:1;overflow:auto;padding:var(--el-drawer-padding-primary)}.el-drawer__body>*{box-sizing:border-box}.el-drawer.ltr,.el-drawer.rtl{bottom:0;height:100%;top:0}.el-drawer.btt,.el-drawer.ttb{left:0;right:0;width:100%}.el-drawer.ltr{left:0}.el-drawer.rtl{right:0}.el-drawer.ttb{top:0}.el-drawer.btt{bottom:0}.el-drawer-fade-enter-active,.el-drawer-fade-leave-active{transition:all var(--el-transition-duration)}.el-drawer-fade-enter-active,.el-drawer-fade-enter-from,.el-drawer-fade-enter-to,.el-drawer-fade-leave-active,.el-drawer-fade-leave-from,.el-drawer-fade-leave-to{overflow:hidden!important}.el-drawer-fade-enter-from,.el-drawer-fade-leave-to{background-color:transparent!important}.el-drawer-fade-enter-from .rtl,.el-drawer-fade-leave-to .rtl{transform:translate(100%)}.el-drawer-fade-enter-from .ltr,.el-drawer-fade-leave-to .ltr{transform:translate(-100%)}.el-drawer-fade-enter-from .ttb,.el-drawer-fade-leave-to .ttb{transform:translateY(-100%)}.el-drawer-fade-enter-from .btt,.el-drawer-fade-leave-to .btt{transform:translateY(100%)}.el-dropdown{--el-dropdown-menu-box-shadow:var(--el-box-shadow-light);--el-dropdown-menuItem-hover-fill:var(--el-color-primary-light-9);--el-dropdown-menuItem-hover-color:var(--el-color-primary);--el-dropdown-menu-index:10;color:var(--el-text-color-regular);display:inline-flex;font-size:var(--el-font-size-base);line-height:1;position:relative;vertical-align:top}.el-dropdown.is-disabled{color:var(--el-text-color-placeholder);cursor:not-allowed}.el-dropdown__popper{--el-dropdown-menu-box-shadow:var(--el-box-shadow-light);--el-dropdown-menuItem-hover-fill:var(--el-color-primary-light-9);--el-dropdown-menuItem-hover-color:var(--el-color-primary);--el-dropdown-menu-index:10}.el-dropdown__popper.el-popper{background:var(--el-bg-color-overlay);box-shadow:var(--el-dropdown-menu-box-shadow)}.el-dropdown__popper.el-popper,.el-dropdown__popper.el-popper .el-popper__arrow:before{border:1px solid var(--el-border-color-light)}.el-dropdown__popper.el-popper[data-popper-placement^=top] .el-popper__arrow:before{border-left-color:transparent;border-top-color:transparent}.el-dropdown__popper.el-popper[data-popper-placement^=bottom] .el-popper__arrow:before{border-bottom-color:transparent;border-right-color:transparent}.el-dropdown__popper.el-popper[data-popper-placement^=left] .el-popper__arrow:before{border-bottom-color:transparent;border-left-color:transparent}.el-dropdown__popper.el-popper[data-popper-placement^=right] .el-popper__arrow:before{border-right-color:transparent;border-top-color:transparent}.el-dropdown__popper .el-dropdown-menu{border:none}.el-dropdown__popper .el-dropdown__popper-selfdefine{outline:none}.el-dropdown__popper .el-scrollbar__bar{z-index:calc(var(--el-dropdown-menu-index) + 1)}.el-dropdown__popper .el-dropdown__list{box-sizing:border-box;list-style:none;margin:0;padding:0}.el-dropdown .el-dropdown__caret-button{align-items:center;border-left:none;display:inline-flex;justify-content:center;padding-left:0;padding-right:0;width:32px}.el-dropdown .el-dropdown__caret-button>span{display:inline-flex}.el-dropdown .el-dropdown__caret-button:before{background:var(--el-overlay-color-lighter);bottom:-1px;content:"";display:block;left:0;position:absolute;top:-1px;width:1px}.el-dropdown .el-dropdown__caret-button.el-button:before{background:var(--el-border-color);opacity:.5}.el-dropdown .el-dropdown__caret-button .el-dropdown__icon{font-size:inherit;padding-left:0}.el-dropdown .el-dropdown-selfdefine{outline:none}.el-dropdown--large .el-dropdown__caret-button{width:40px}.el-dropdown--small .el-dropdown__caret-button{width:24px}.el-dropdown-menu{background-color:var(--el-bg-color-overlay);border:none;border-radius:var(--el-border-radius-base);box-shadow:none;left:0;list-style:none;margin:0;padding:5px 0;position:relative;top:0;z-index:var(--el-dropdown-menu-index)}.el-dropdown-menu__item{align-items:center;color:var(--el-text-color-regular);cursor:pointer;display:flex;font-size:var(--el-font-size-base);line-height:22px;list-style:none;margin:0;outline:none;padding:5px 16px;white-space:nowrap}.el-dropdown-menu__item:not(.is-disabled):focus,.el-dropdown-menu__item:not(.is-disabled):hover{background-color:var(--el-dropdown-menuItem-hover-fill);color:var(--el-dropdown-menuItem-hover-color)}.el-dropdown-menu__item i{margin-right:5px}.el-dropdown-menu__item--divided{border-top:1px solid var(--el-border-color-lighter);margin:6px 0}.el-dropdown-menu__item.is-disabled{color:var(--el-text-color-disabled);cursor:not-allowed}.el-dropdown-menu--large{padding:7px 0}.el-dropdown-menu--large .el-dropdown-menu__item{font-size:14px;line-height:22px;padding:7px 20px}.el-dropdown-menu--large .el-dropdown-menu__item--divided{margin:8px 0}.el-dropdown-menu--small{padding:3px 0}.el-dropdown-menu--small .el-dropdown-menu__item{font-size:12px;line-height:20px;padding:2px 12px}.el-dropdown-menu--small .el-dropdown-menu__item--divided{margin:4px 0}.el-empty{--el-empty-padding:40px 0;--el-empty-image-width:160px;--el-empty-description-margin-top:20px;--el-empty-bottom-margin-top:20px;--el-empty-fill-color-0:var(--el-color-white);--el-empty-fill-color-1:#fcfcfd;--el-empty-fill-color-2:#f8f9fb;--el-empty-fill-color-3:#f7f8fc;--el-empty-fill-color-4:#eeeff3;--el-empty-fill-color-5:#edeef2;--el-empty-fill-color-6:#e9ebef;--el-empty-fill-color-7:#e5e7e9;--el-empty-fill-color-8:#e0e3e9;--el-empty-fill-color-9:#d5d7de;align-items:center;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;padding:var(--el-empty-padding);text-align:center}.el-empty__image{width:var(--el-empty-image-width)}.el-empty__image img{height:100%;-o-object-fit:contain;object-fit:contain;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:top;width:100%}.el-empty__image svg{color:var(--el-svg-monochrome-grey);fill:currentColor;height:100%;vertical-align:top;width:100%}.el-empty__description{margin-top:var(--el-empty-description-margin-top)}.el-empty__description p{color:var(--el-text-color-secondary);font-size:var(--el-font-size-base);margin:0}.el-empty__bottom{margin-top:var(--el-empty-bottom-margin-top)}.el-footer{--el-footer-padding:0 20px;--el-footer-height:60px;box-sizing:border-box;flex-shrink:0;height:var(--el-footer-height);padding:var(--el-footer-padding)}.el-form{--el-form-label-font-size:var(--el-font-size-base);--el-form-inline-content-width:220px}.el-form--inline .el-form-item{display:inline-flex;margin-right:32px;vertical-align:middle}.el-form--inline.el-form--label-top{display:flex;flex-wrap:wrap}.el-form--inline.el-form--label-top .el-form-item{display:block}.el-form-item{display:flex;--font-size:14px;margin-bottom:18px}.el-form-item .el-form-item{margin-bottom:0}.el-form-item .el-input__validateIcon{display:none}.el-form-item--large{--font-size:14px;--el-form-label-font-size:var(--font-size);margin-bottom:22px}.el-form-item--large .el-form-item__label{height:40px;line-height:40px}.el-form-item--large .el-form-item__content{line-height:40px}.el-form-item--large .el-form-item__error{padding-top:4px}.el-form-item--default{--font-size:14px;--el-form-label-font-size:var(--font-size);margin-bottom:18px}.el-form-item--default .el-form-item__label{height:32px;line-height:32px}.el-form-item--default .el-form-item__content{line-height:32px}.el-form-item--default .el-form-item__error{padding-top:2px}.el-form-item--small{--font-size:12px;--el-form-label-font-size:var(--font-size);margin-bottom:18px}.el-form-item--small .el-form-item__label{height:24px;line-height:24px}.el-form-item--small .el-form-item__content{line-height:24px}.el-form-item--small .el-form-item__error{padding-top:2px}.el-form-item--label-left .el-form-item__label{justify-content:flex-start}.el-form-item--label-top{display:block}.el-form-item--label-top .el-form-item__label{display:inline-block;height:auto;line-height:22px;margin-bottom:8px;text-align:left;vertical-align:middle}.el-form-item__label-wrap{display:flex}.el-form-item__label{align-items:flex-start;box-sizing:border-box;color:var(--el-text-color-regular);display:inline-flex;flex:0 0 auto;font-size:var(--el-form-label-font-size);height:32px;justify-content:flex-end;line-height:32px;padding:0 12px 0 0}.el-form-item__content{align-items:center;display:flex;flex:1;flex-wrap:wrap;font-size:var(--font-size);line-height:32px;min-width:0;position:relative}.el-form-item__content .el-input-group{vertical-align:top}.el-form-item__error{color:var(--el-color-danger);font-size:12px;left:0;line-height:1;padding-top:2px;position:absolute;top:100%}.el-form-item__error--inline{display:inline-block;left:auto;margin-left:10px;position:relative;top:auto}.el-form-item.is-required:not(.is-no-asterisk).asterisk-left>.el-form-item__label-wrap>.el-form-item__label:before,.el-form-item.is-required:not(.is-no-asterisk).asterisk-left>.el-form-item__label:before{color:var(--el-color-danger);content:"*";margin-right:4px}.el-form-item.is-required:not(.is-no-asterisk).asterisk-right>.el-form-item__label-wrap>.el-form-item__label:after,.el-form-item.is-required:not(.is-no-asterisk).asterisk-right>.el-form-item__label:after{color:var(--el-color-danger);content:"*";margin-left:4px}.el-form-item.is-error .el-input-tag__wrapper,.el-form-item.is-error .el-input-tag__wrapper.is-focus,.el-form-item.is-error .el-input-tag__wrapper:focus,.el-form-item.is-error .el-input-tag__wrapper:hover,.el-form-item.is-error .el-input__wrapper,.el-form-item.is-error .el-input__wrapper.is-focus,.el-form-item.is-error .el-input__wrapper:focus,.el-form-item.is-error .el-input__wrapper:hover,.el-form-item.is-error .el-select__wrapper,.el-form-item.is-error .el-select__wrapper.is-focus,.el-form-item.is-error .el-select__wrapper:focus,.el-form-item.is-error .el-select__wrapper:hover,.el-form-item.is-error .el-textarea__inner,.el-form-item.is-error .el-textarea__inner.is-focus,.el-form-item.is-error .el-textarea__inner:focus,.el-form-item.is-error .el-textarea__inner:hover{box-shadow:0 0 0 1px var(--el-color-danger) inset}.el-form-item.is-error .el-input-group__append .el-input__wrapper,.el-form-item.is-error .el-input-group__prepend .el-input__wrapper{box-shadow:inset 0 0 0 1px transparent}.el-form-item.is-error .el-input-group__append .el-input__validateIcon,.el-form-item.is-error .el-input-group__prepend .el-input__validateIcon{display:none}.el-form-item.is-error .el-input__validateIcon{color:var(--el-color-danger)}.el-form-item--feedback .el-input__validateIcon{display:inline-flex}.el-header{--el-header-padding:0 20px;--el-header-height:60px;box-sizing:border-box;flex-shrink:0;height:var(--el-header-height);padding:var(--el-header-padding)}.el-image-viewer__wrapper{bottom:0;left:0;position:fixed;right:0;top:0}.el-image-viewer__wrapper:focus{outline:none!important}.el-image-viewer__btn{align-items:center;border-radius:50%;box-sizing:border-box;cursor:pointer;display:flex;justify-content:center;opacity:.8;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;z-index:1}.el-image-viewer__btn .el-icon{cursor:pointer;font-size:inherit}.el-image-viewer__close{font-size:40px;height:40px;right:40px;top:40px;width:40px}.el-image-viewer__canvas{align-items:center;display:flex;height:100%;justify-content:center;position:static;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}.el-image-viewer__actions{background-color:var(--el-text-color-regular);border-color:#fff;border-radius:22px;bottom:30px;height:44px;left:50%;padding:0 23px;transform:translate(-50%);width:282px}.el-image-viewer__actions__inner{align-items:center;color:#fff;cursor:default;display:flex;font-size:23px;height:100%;justify-content:space-around;width:100%}.el-image-viewer__prev{left:40px}.el-image-viewer__next,.el-image-viewer__prev{background-color:var(--el-text-color-regular);border-color:#fff;color:#fff;font-size:24px;height:44px;top:50%;transform:translateY(-50%);width:44px}.el-image-viewer__next{right:40px;text-indent:2px}.el-image-viewer__close{background-color:var(--el-text-color-regular);border-color:#fff;color:#fff;font-size:24px;height:44px;width:44px}.el-image-viewer__mask{background:#000;height:100%;left:0;opacity:.5;position:absolute;top:0;width:100%}.viewer-fade-enter-active{animation:viewer-fade-in var(--el-transition-duration)}.viewer-fade-leave-active{animation:viewer-fade-out var(--el-transition-duration)}@keyframes viewer-fade-in{0%{opacity:0;transform:translate3d(0,-20px,0)}to{opacity:1;transform:translateZ(0)}}@keyframes viewer-fade-out{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(0,-20px,0)}}.el-image__error,.el-image__inner,.el-image__placeholder,.el-image__wrapper{height:100%;width:100%}.el-image{display:inline-block;overflow:hidden;position:relative}.el-image__inner{opacity:1;vertical-align:top}.el-image__inner.is-loading{opacity:0}.el-image__wrapper{left:0;position:absolute;top:0}.el-image__error,.el-image__placeholder{background:var(--el-fill-color-light)}.el-image__error{align-items:center;color:var(--el-text-color-placeholder);display:flex;font-size:14px;justify-content:center;vertical-align:middle}.el-image__preview{cursor:pointer}.el-textarea{--el-input-text-color:var(--el-text-color-regular);--el-input-border:var(--el-border);--el-input-hover-border:var(--el-border-color-hover);--el-input-focus-border:var(--el-color-primary);--el-input-transparent-border:0 0 0 1px transparent inset;--el-input-border-color:var(--el-border-color);--el-input-border-radius:var(--el-border-radius-base);--el-input-bg-color:var(--el-fill-color-blank);--el-input-icon-color:var(--el-text-color-placeholder);--el-input-placeholder-color:var(--el-text-color-placeholder);--el-input-hover-border-color:var(--el-border-color-hover);--el-input-clear-hover-color:var(--el-text-color-secondary);--el-input-focus-border-color:var(--el-color-primary);--el-input-width:100%;display:inline-block;font-size:var(--el-font-size-base);position:relative;vertical-align:bottom;width:100%}.el-textarea__inner{-webkit-appearance:none;background-color:var(--el-input-bg-color,var(--el-fill-color-blank));background-image:none;border:none;border-radius:var(--el-input-border-radius,var(--el-border-radius-base));box-shadow:0 0 0 1px var(--el-input-border-color,var(--el-border-color)) inset;box-sizing:border-box;color:var(--el-input-text-color,var(--el-text-color-regular));display:block;font-family:inherit;font-size:inherit;line-height:1.5;padding:5px 11px;position:relative;resize:vertical;transition:var(--el-transition-box-shadow);width:100%}.el-textarea__inner::-moz-placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-textarea__inner::placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-textarea__inner:hover{box-shadow:0 0 0 1px var(--el-input-hover-border-color) inset}.el-textarea__inner:focus{box-shadow:0 0 0 1px var(--el-input-focus-border-color) inset;outline:none}.el-textarea .el-input__count{background:var(--el-fill-color-blank);bottom:5px;color:var(--el-color-info);font-size:12px;line-height:14px;position:absolute;right:10px}.el-textarea.is-disabled .el-textarea__inner{background-color:var(--el-disabled-bg-color);box-shadow:0 0 0 1px var(--el-disabled-border-color) inset;color:var(--el-disabled-text-color);cursor:not-allowed}.el-textarea.is-disabled .el-textarea__inner::-moz-placeholder{color:var(--el-text-color-placeholder)}.el-textarea.is-disabled .el-textarea__inner::placeholder{color:var(--el-text-color-placeholder)}.el-textarea.is-exceed .el-textarea__inner{box-shadow:0 0 0 1px var(--el-color-danger) inset}.el-textarea.is-exceed .el-input__count{color:var(--el-color-danger)}.el-input{--el-input-text-color:var(--el-text-color-regular);--el-input-border:var(--el-border);--el-input-hover-border:var(--el-border-color-hover);--el-input-focus-border:var(--el-color-primary);--el-input-transparent-border:0 0 0 1px transparent inset;--el-input-border-color:var(--el-border-color);--el-input-border-radius:var(--el-border-radius-base);--el-input-bg-color:var(--el-fill-color-blank);--el-input-icon-color:var(--el-text-color-placeholder);--el-input-placeholder-color:var(--el-text-color-placeholder);--el-input-hover-border-color:var(--el-border-color-hover);--el-input-clear-hover-color:var(--el-text-color-secondary);--el-input-focus-border-color:var(--el-color-primary);--el-input-width:100%;--el-input-height:var(--el-component-size);box-sizing:border-box;display:inline-flex;font-size:var(--el-font-size-base);line-height:var(--el-input-height);position:relative;vertical-align:middle;width:var(--el-input-width)}.el-input::-webkit-scrollbar{width:6px;z-index:11}.el-input::-webkit-scrollbar:horizontal{height:6px}.el-input::-webkit-scrollbar-thumb{background:var(--el-text-color-disabled);border-radius:5px;width:6px}.el-input::-webkit-scrollbar-corner,.el-input::-webkit-scrollbar-track{background:var(--el-fill-color-blank)}.el-input::-webkit-scrollbar-track-piece{background:var(--el-fill-color-blank);width:6px}.el-input .el-input__clear,.el-input .el-input__password{color:var(--el-input-icon-color);cursor:pointer;font-size:14px}.el-input .el-input__clear:hover,.el-input .el-input__password:hover{color:var(--el-input-clear-hover-color)}.el-input .el-input__count{align-items:center;color:var(--el-color-info);display:inline-flex;font-size:12px;height:100%}.el-input .el-input__count .el-input__count-inner{background:var(--el-fill-color-blank);display:inline-block;line-height:normal;padding-left:8px}.el-input__wrapper{align-items:center;background-color:var(--el-input-bg-color,var(--el-fill-color-blank));background-image:none;border-radius:var(--el-input-border-radius,var(--el-border-radius-base));box-shadow:0 0 0 1px var(--el-input-border-color,var(--el-border-color)) inset;cursor:text;display:inline-flex;flex-grow:1;justify-content:center;padding:1px 11px;transform:translateZ(0);transition:var(--el-transition-box-shadow)}.el-input__wrapper:hover{box-shadow:0 0 0 1px var(--el-input-hover-border-color) inset}.el-input__wrapper.is-focus{box-shadow:0 0 0 1px var(--el-input-focus-border-color) inset}.el-input{--el-input-inner-height:calc(var(--el-input-height, 32px) - 2px)}.el-input__inner{-webkit-appearance:none;background:none;border:none;box-sizing:border-box;color:var(--el-input-text-color,var(--el-text-color-regular));flex-grow:1;font-size:inherit;height:var(--el-input-inner-height);line-height:var(--el-input-inner-height);outline:none;padding:0;width:100%}.el-input__inner:focus{outline:none}.el-input__inner::-moz-placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-input__inner::placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-input__inner[type=password]::-ms-reveal{display:none}.el-input__inner[type=number]{line-height:1}.el-input__prefix{color:var(--el-input-icon-color,var(--el-text-color-placeholder));display:inline-flex;flex-shrink:0;flex-wrap:nowrap;height:100%;line-height:var(--el-input-inner-height);pointer-events:none;text-align:center;transition:all var(--el-transition-duration);white-space:nowrap}.el-input__prefix-inner{align-items:center;display:inline-flex;justify-content:center;pointer-events:all}.el-input__prefix-inner>:last-child{margin-right:8px}.el-input__prefix-inner>:first-child,.el-input__prefix-inner>:first-child.el-input__icon{margin-left:0}.el-input__suffix{color:var(--el-input-icon-color,var(--el-text-color-placeholder));display:inline-flex;flex-shrink:0;flex-wrap:nowrap;height:100%;line-height:var(--el-input-inner-height);pointer-events:none;text-align:center;transition:all var(--el-transition-duration);white-space:nowrap}.el-input__suffix-inner{align-items:center;display:inline-flex;justify-content:center;pointer-events:all}.el-input__suffix-inner>:first-child{margin-left:8px}.el-input .el-input__icon{align-items:center;display:flex;height:inherit;justify-content:center;line-height:inherit;margin-left:8px;transition:all var(--el-transition-duration)}.el-input__validateIcon{pointer-events:none}.el-input.is-active .el-input__wrapper{box-shadow:0 0 0 1px var(--el-input-focus-color, ) inset}.el-input.is-disabled{cursor:not-allowed}.el-input.is-disabled .el-input__wrapper{background-color:var(--el-disabled-bg-color);box-shadow:0 0 0 1px var(--el-disabled-border-color) inset;cursor:not-allowed;pointer-events:none}.el-input.is-disabled .el-input__inner{color:var(--el-disabled-text-color);-webkit-text-fill-color:var(--el-disabled-text-color);cursor:not-allowed}.el-input.is-disabled .el-input__inner::-moz-placeholder{color:var(--el-text-color-placeholder)}.el-input.is-disabled .el-input__inner::placeholder{color:var(--el-text-color-placeholder)}.el-input.is-disabled .el-input__icon{cursor:not-allowed}.el-input.is-exceed .el-input__wrapper{box-shadow:0 0 0 1px var(--el-color-danger) inset}.el-input.is-exceed .el-input__suffix .el-input__count{color:var(--el-color-danger)}.el-input--large{--el-input-height:var(--el-component-size-large);font-size:14px}.el-input--large .el-input__wrapper{padding:1px 15px}.el-input--large{--el-input-inner-height:calc(var(--el-input-height, 40px) - 2px)}.el-input--small{--el-input-height:var(--el-component-size-small);font-size:12px}.el-input--small .el-input__wrapper{padding:1px 7px}.el-input--small{--el-input-inner-height:calc(var(--el-input-height, 24px) - 2px)}.el-input-group{align-items:stretch;display:inline-flex;width:100%}.el-input-group__append,.el-input-group__prepend{align-items:center;background-color:var(--el-fill-color-light);border-radius:var(--el-input-border-radius);color:var(--el-color-info);display:inline-flex;justify-content:center;min-height:100%;padding:0 20px;position:relative;white-space:nowrap}.el-input-group__append:focus,.el-input-group__prepend:focus{outline:none}.el-input-group__append .el-button,.el-input-group__append .el-select,.el-input-group__prepend .el-button,.el-input-group__prepend .el-select{display:inline-block;margin:0 -20px}.el-input-group__append button.el-button,.el-input-group__append button.el-button:hover,.el-input-group__append div.el-select .el-select__wrapper,.el-input-group__append div.el-select:hover .el-select__wrapper,.el-input-group__prepend button.el-button,.el-input-group__prepend button.el-button:hover,.el-input-group__prepend div.el-select .el-select__wrapper,.el-input-group__prepend div.el-select:hover .el-select__wrapper{background-color:transparent;border-color:transparent;color:inherit}.el-input-group__append .el-button,.el-input-group__append .el-input,.el-input-group__prepend .el-button,.el-input-group__prepend .el-input{font-size:inherit}.el-input-group__prepend{border-bottom-right-radius:0;border-right:0;border-top-right-radius:0;box-shadow:1px 0 0 0 var(--el-input-border-color) inset,0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset}.el-input-group__append{border-left:0;box-shadow:0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset,-1px 0 0 0 var(--el-input-border-color) inset}.el-input-group--prepend>.el-input__wrapper,.el-input-group__append{border-bottom-left-radius:0;border-top-left-radius:0}.el-input-group--prepend .el-input-group__prepend .el-select .el-select__wrapper{border-bottom-right-radius:0;border-top-right-radius:0;box-shadow:1px 0 0 0 var(--el-input-border-color) inset,0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset}.el-input-group--append>.el-input__wrapper{border-bottom-right-radius:0;border-top-right-radius:0}.el-input-group--append .el-input-group__append .el-select .el-select__wrapper{border-bottom-left-radius:0;border-top-left-radius:0;box-shadow:0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset,-1px 0 0 0 var(--el-input-border-color) inset}.el-input-hidden{display:none!important}.el-input-number{display:inline-flex;line-height:30px;position:relative;vertical-align:middle;width:150px}.el-input-number .el-input__wrapper{padding-left:42px;padding-right:42px}.el-input-number .el-input__inner{-webkit-appearance:none;-moz-appearance:textfield;line-height:1;text-align:center}.el-input-number .el-input__inner::-webkit-inner-spin-button,.el-input-number .el-input__inner::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.el-input-number__decrease,.el-input-number__increase{align-items:center;background:var(--el-fill-color-light);bottom:1px;color:var(--el-text-color-regular);cursor:pointer;display:flex;font-size:13px;height:auto;justify-content:center;position:absolute;top:1px;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:32px;z-index:1}.el-input-number__decrease:hover,.el-input-number__increase:hover{color:var(--el-color-primary)}.el-input-number__decrease:hover~.el-input:not(.is-disabled) .el-input__wrapper,.el-input-number__increase:hover~.el-input:not(.is-disabled) .el-input__wrapper{box-shadow:0 0 0 1px var(--el-input-focus-border-color,var(--el-color-primary)) inset}.el-input-number__decrease.is-disabled,.el-input-number__increase.is-disabled{color:var(--el-disabled-text-color);cursor:not-allowed}.el-input-number__increase{border-left:var(--el-border);border-radius:0 var(--el-border-radius-base) var(--el-border-radius-base) 0;right:1px}.el-input-number__decrease{border-radius:var(--el-border-radius-base) 0 0 var(--el-border-radius-base);border-right:var(--el-border);left:1px}.el-input-number.is-disabled .el-input-number__decrease,.el-input-number.is-disabled .el-input-number__increase{border-color:var(--el-disabled-border-color);color:var(--el-disabled-border-color)}.el-input-number.is-disabled .el-input-number__decrease:hover,.el-input-number.is-disabled .el-input-number__increase:hover{color:var(--el-disabled-border-color);cursor:not-allowed}.el-input-number--large{line-height:38px;width:180px}.el-input-number--large .el-input-number__decrease,.el-input-number--large .el-input-number__increase{font-size:14px;width:40px}.el-input-number--large.is-controls-right .el-input--large .el-input__wrapper{padding-right:47px}.el-input-number--large .el-input--large .el-input__wrapper{padding-left:47px;padding-right:47px}.el-input-number--small{line-height:22px;width:120px}.el-input-number--small .el-input-number__decrease,.el-input-number--small .el-input-number__increase{font-size:12px;width:24px}.el-input-number--small.is-controls-right .el-input--small .el-input__wrapper{padding-right:31px}.el-input-number--small .el-input--small .el-input__wrapper{padding-left:31px;padding-right:31px}.el-input-number--small .el-input-number__decrease [class*=el-icon],.el-input-number--small .el-input-number__increase [class*=el-icon]{transform:scale(.9)}.el-input-number.is-without-controls .el-input__wrapper{padding-left:15px;padding-right:15px}.el-input-number.is-controls-right .el-input__wrapper{padding-left:15px;padding-right:42px}.el-input-number.is-controls-right .el-input-number__decrease,.el-input-number.is-controls-right .el-input-number__increase{--el-input-number-controls-height:15px;height:var(--el-input-number-controls-height);line-height:var(--el-input-number-controls-height)}.el-input-number.is-controls-right .el-input-number__decrease [class*=el-icon],.el-input-number.is-controls-right .el-input-number__increase [class*=el-icon]{transform:scale(.8)}.el-input-number.is-controls-right .el-input-number__increase{border-bottom:var(--el-border);border-radius:0 var(--el-border-radius-base) 0 0;bottom:auto;left:auto}.el-input-number.is-controls-right .el-input-number__decrease{border-left:var(--el-border);border-radius:0 0 var(--el-border-radius-base) 0;border-right:none;left:auto;right:1px;top:auto}.el-input-number.is-controls-right[class*=large] [class*=decrease],.el-input-number.is-controls-right[class*=large] [class*=increase]{--el-input-number-controls-height:19px}.el-input-number.is-controls-right[class*=small] [class*=decrease],.el-input-number.is-controls-right[class*=small] [class*=increase]{--el-input-number-controls-height:11px}.el-input-tag{--el-input-tag-border-color-hover:var(--el-border-color-hover);--el-input-tag-placeholder-color:var(--el-text-color-placeholder);--el-input-tag-disabled-color:var(--el-disabled-text-color);--el-input-tag-disabled-border:var(--el-disabled-border-color);--el-input-tag-font-size:var(--el-font-size-base);--el-input-tag-close-hover-color:var(--el-text-color-secondary);--el-input-tag-text-color:var(--el-text-color-regular);--el-input-tag-input-focus-border-color:var(--el-color-primary);--el-input-tag-width:100%;--el-input-tag-mini-height:var(--el-component-size);--el-input-tag-gap:6px;--el-input-tag-padding:4px;--el-input-tag-inner-padding:8px;--el-input-tag-line-height:24px;align-items:center;background-color:var(--el-fill-color-blank);border-radius:var(--el-border-radius-base);box-shadow:0 0 0 1px var(--el-border-color) inset;box-sizing:border-box;cursor:pointer;display:flex;font-size:var(--el-input-tag-font-size);line-height:var(--el-input-tag-line-height);min-height:var(--el-input-tag-mini-height);padding:var(--el-input-tag-padding);transform:translateZ(0);transition:var(--el-transition-duration);width:var(--el-input-tag-width)}.el-input-tag.is-focused{box-shadow:0 0 0 1px var(--el-color-primary) inset}.el-input-tag.is-hovering:not(.is-focused){box-shadow:0 0 0 1px var(--el-border-color-hover) inset}.el-input-tag.is-disabled{background-color:var(--el-fill-color-light);cursor:not-allowed;pointer-events:none}.el-input-tag.is-disabled,.el-input-tag.is-disabled:hover{box-shadow:0 0 0 1px var(--el-input-tag-disabled-border) inset}.el-input-tag.is-disabled.is-focus{box-shadow:0 0 0 1px var(--el-input-focus-border-color) inset}.el-input-tag.is-disabled .el-input-tag__inner .el-input-tag__input,.el-input-tag.is-disabled .el-input-tag__inner .el-tag{cursor:not-allowed}.el-input-tag__prefix,.el-input-tag__suffix{align-items:center;color:var(--el-input-icon-color,var(--el-text-color-placeholder));display:flex;flex-shrink:0;padding:0 var(--el-input-tag-inner-padding)}.el-input-tag__suffix{gap:8px}.el-input-tag__inner{align-items:center;display:flex;flex:1;flex-wrap:wrap;gap:var(--el-input-tag-gap);max-width:100%;min-width:0;position:relative}.el-input-tag__inner.is-left-space{margin-left:var(--el-input-tag-inner-padding)}.el-input-tag__inner.is-right-space{margin-right:var(--el-input-tag-inner-padding)}.el-input-tag__inner.is-draggable .el-tag{cursor:move;-webkit-user-select:none;-moz-user-select:none;user-select:none}.el-input-tag__drop-indicator{background-color:var(--el-color-primary);height:var(--el-input-tag-line-height);position:absolute;top:0;width:1px}.el-input-tag__inner .el-tag{border-color:transparent;cursor:pointer;max-width:100%}.el-input-tag__inner .el-tag.el-tag--plain{border-color:var(--el-tag-border-color)}.el-input-tag__inner .el-tag .el-tag__content{line-height:normal;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.el-input-tag__input-wrapper{flex:1}.el-input-tag__input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border:none;color:var(--el-input-tag-text-color);font-family:inherit;font-size:inherit;line-height:inherit;outline:none;padding:0;width:100%}.el-input-tag__input::-moz-placeholder{color:var(--el-input-tag-placeholder-color)}.el-input-tag__input::placeholder{color:var(--el-input-tag-placeholder-color)}.el-input-tag__input-calculator{left:0;max-width:100%;overflow:hidden;position:absolute;top:0;visibility:hidden;white-space:pre}.el-input-tag--large{--el-input-tag-gap:6px;--el-input-tag-padding:8px;--el-input-tag-padding-left:8px;--el-input-tag-font-size:14px}.el-input-tag--small{--el-input-tag-gap:4px;--el-input-tag-padding:2px;--el-input-tag-padding-left:6px;--el-input-tag-font-size:12px;--el-input-tag-line-height:20px;--el-input-tag-mini-height:var(--el-component-size-small)}.el-link{--el-link-font-size:var(--el-font-size-base);--el-link-font-weight:var(--el-font-weight-primary);--el-link-text-color:var(--el-text-color-regular);--el-link-hover-text-color:var(--el-color-primary);--el-link-disabled-text-color:var(--el-text-color-placeholder);align-items:center;color:var(--el-link-text-color);cursor:pointer;display:inline-flex;flex-direction:row;font-size:var(--el-link-font-size);font-weight:var(--el-link-font-weight);justify-content:center;outline:none;padding:0;position:relative;text-decoration:none;vertical-align:middle}.el-link:hover{color:var(--el-link-hover-text-color)}.el-link.is-underline:hover:after{border-bottom:1px solid var(--el-link-hover-text-color);bottom:0;content:"";height:0;left:0;position:absolute;right:0}.el-link.is-disabled{color:var(--el-link-disabled-text-color);cursor:not-allowed}.el-link [class*=el-icon-]+span{margin-left:5px}.el-link.el-link--default:after{border-color:var(--el-link-hover-text-color)}.el-link__inner{align-items:center;display:inline-flex;justify-content:center}.el-link.el-link--primary{--el-link-text-color:var(--el-color-primary);--el-link-hover-text-color:var(--el-color-primary-light-3);--el-link-disabled-text-color:var(--el-color-primary-light-5)}.el-link.el-link--primary.is-underline:hover:after,.el-link.el-link--primary:after{border-color:var(--el-link-text-color)}.el-link.el-link--success{--el-link-text-color:var(--el-color-success);--el-link-hover-text-color:var(--el-color-success-light-3);--el-link-disabled-text-color:var(--el-color-success-light-5)}.el-link.el-link--success.is-underline:hover:after,.el-link.el-link--success:after{border-color:var(--el-link-text-color)}.el-link.el-link--warning{--el-link-text-color:var(--el-color-warning);--el-link-hover-text-color:var(--el-color-warning-light-3);--el-link-disabled-text-color:var(--el-color-warning-light-5)}.el-link.el-link--warning.is-underline:hover:after,.el-link.el-link--warning:after{border-color:var(--el-link-text-color)}.el-link.el-link--danger{--el-link-text-color:var(--el-color-danger);--el-link-hover-text-color:var(--el-color-danger-light-3);--el-link-disabled-text-color:var(--el-color-danger-light-5)}.el-link.el-link--danger.is-underline:hover:after,.el-link.el-link--danger:after{border-color:var(--el-link-text-color)}.el-link.el-link--error{--el-link-text-color:var(--el-color-error);--el-link-hover-text-color:var(--el-color-error-light-3);--el-link-disabled-text-color:var(--el-color-error-light-5)}.el-link.el-link--error.is-underline:hover:after,.el-link.el-link--error:after{border-color:var(--el-link-text-color)}.el-link.el-link--info{--el-link-text-color:var(--el-color-info);--el-link-hover-text-color:var(--el-color-info-light-3);--el-link-disabled-text-color:var(--el-color-info-light-5)}.el-link.el-link--info.is-underline:hover:after,.el-link.el-link--info:after{border-color:var(--el-link-text-color)}:root{--el-loading-spinner-size:42px;--el-loading-fullscreen-spinner-size:50px}.el-loading-parent--relative{position:relative!important}.el-loading-parent--hidden{overflow:hidden!important}.el-loading-mask{background-color:var(--el-mask-color);bottom:0;left:0;margin:0;position:absolute;right:0;top:0;transition:opacity var(--el-transition-duration);z-index:2000}.el-loading-mask.is-fullscreen{position:fixed}.el-loading-mask.is-fullscreen .el-loading-spinner{margin-top:calc((0px - var(--el-loading-fullscreen-spinner-size))/2)}.el-loading-mask.is-fullscreen .el-loading-spinner .circular{height:var(--el-loading-fullscreen-spinner-size);width:var(--el-loading-fullscreen-spinner-size)}.el-loading-spinner{margin-top:calc((0px - var(--el-loading-spinner-size))/2);position:absolute;text-align:center;top:50%;width:100%}.el-loading-spinner .el-loading-text{color:var(--el-color-primary);font-size:14px;margin:3px 0}.el-loading-spinner .circular{animation:loading-rotate 2s linear infinite;display:inline;height:var(--el-loading-spinner-size);width:var(--el-loading-spinner-size)}.el-loading-spinner .path{animation:loading-dash 1.5s ease-in-out infinite;stroke-dasharray:90,150;stroke-dashoffset:0;stroke-width:2;stroke:var(--el-color-primary);stroke-linecap:round}.el-loading-spinner i{color:var(--el-color-primary)}.el-loading-fade-enter-from,.el-loading-fade-leave-to{opacity:0}@keyframes loading-rotate{to{transform:rotate(1turn)}}@keyframes loading-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-40px}to{stroke-dasharray:90,150;stroke-dashoffset:-120px}}.el-main{--el-main-padding:20px;box-sizing:border-box;display:block;flex:1;flex-basis:auto;overflow:auto;padding:var(--el-main-padding)}:root{--el-menu-active-color:var(--el-color-primary);--el-menu-text-color:var(--el-text-color-primary);--el-menu-hover-text-color:var(--el-color-primary);--el-menu-bg-color:var(--el-fill-color-blank);--el-menu-hover-bg-color:var(--el-color-primary-light-9);--el-menu-item-height:56px;--el-menu-sub-item-height:calc(var(--el-menu-item-height) - 6px);--el-menu-horizontal-height:60px;--el-menu-horizontal-sub-item-height:36px;--el-menu-item-font-size:var(--el-font-size-base);--el-menu-item-hover-fill:var(--el-color-primary-light-9);--el-menu-border-color:var(--el-border-color);--el-menu-base-level-padding:20px;--el-menu-level-padding:20px;--el-menu-icon-width:24px}.el-menu{background-color:var(--el-menu-bg-color);border-right:1px solid var(--el-menu-border-color);box-sizing:border-box;list-style:none;margin:0;padding-left:0;position:relative}.el-menu--vertical:not(.el-menu--collapse):not(.el-menu--popup-container) .el-menu-item,.el-menu--vertical:not(.el-menu--collapse):not(.el-menu--popup-container) .el-menu-item-group__title,.el-menu--vertical:not(.el-menu--collapse):not(.el-menu--popup-container) .el-sub-menu__title{padding-left:calc(var(--el-menu-base-level-padding) + var(--el-menu-level)*var(--el-menu-level-padding));white-space:nowrap}.el-menu:not(.el-menu--collapse) .el-sub-menu__title{padding-right:calc(var(--el-menu-base-level-padding) + var(--el-menu-icon-width))}.el-menu--horizontal{border-right:none;display:flex;flex-wrap:nowrap;height:var(--el-menu-horizontal-height)}.el-menu--horizontal.el-menu--popup-container{height:unset}.el-menu--horizontal.el-menu{border-bottom:1px solid var(--el-menu-border-color)}.el-menu--horizontal>.el-menu-item{align-items:center;border-bottom:2px solid transparent;color:var(--el-menu-text-color);display:inline-flex;height:100%;justify-content:center;margin:0}.el-menu--horizontal>.el-menu-item a,.el-menu--horizontal>.el-menu-item a:hover{color:inherit}.el-menu--horizontal>.el-sub-menu:focus,.el-menu--horizontal>.el-sub-menu:hover{outline:none}.el-menu--horizontal>.el-sub-menu:hover .el-sub-menu__title{color:var(--el-menu-hover-text-color)}.el-menu--horizontal>.el-sub-menu.is-active .el-sub-menu__title{border-bottom:2px solid var(--el-menu-active-color);color:var(--el-menu-active-color)}.el-menu--horizontal>.el-sub-menu .el-sub-menu__title{border-bottom:2px solid transparent;color:var(--el-menu-text-color);height:100%}.el-menu--horizontal>.el-sub-menu .el-sub-menu__title:hover{background-color:var(--el-menu-bg-color)}.el-menu--horizontal .el-menu .el-menu-item,.el-menu--horizontal .el-menu .el-sub-menu__title{align-items:center;background-color:var(--el-menu-bg-color);color:var(--el-menu-text-color);display:flex;height:var(--el-menu-horizontal-sub-item-height);line-height:var(--el-menu-horizontal-sub-item-height);padding:0 10px}.el-menu--horizontal .el-menu .el-sub-menu__title{padding-right:40px}.el-menu--horizontal .el-menu .el-menu-item.is-active,.el-menu--horizontal .el-menu .el-sub-menu.is-active>.el-sub-menu__title{color:var(--el-menu-active-color)}.el-menu--horizontal .el-menu-item:not(.is-disabled):focus,.el-menu--horizontal .el-menu-item:not(.is-disabled):hover{background-color:var(--el-menu-hover-bg-color);color:var(--el-menu-hover-text-color);outline:none}.el-menu--horizontal>.el-menu-item.is-active{border-bottom:2px solid var(--el-menu-active-color);color:var(--el-menu-active-color)!important}.el-menu--collapse{width:calc(var(--el-menu-icon-width) + var(--el-menu-base-level-padding)*2)}.el-menu--collapse>.el-menu-item [class^=el-icon],.el-menu--collapse>.el-menu-item-group>ul>.el-sub-menu>.el-sub-menu__title [class^=el-icon],.el-menu--collapse>.el-sub-menu>.el-sub-menu__title [class^=el-icon]{margin:0;text-align:center;vertical-align:middle;width:var(--el-menu-icon-width)}.el-menu--collapse>.el-menu-item .el-sub-menu__icon-arrow,.el-menu--collapse>.el-menu-item-group>ul>.el-sub-menu>.el-sub-menu__title .el-sub-menu__icon-arrow,.el-menu--collapse>.el-sub-menu>.el-sub-menu__title .el-sub-menu__icon-arrow{display:none}.el-menu--collapse>.el-menu-item-group>ul>.el-sub-menu>.el-sub-menu__title>span,.el-menu--collapse>.el-menu-item>span,.el-menu--collapse>.el-sub-menu>.el-sub-menu__title>span{display:inline-block;height:0;overflow:hidden;visibility:hidden;width:0}.el-menu--collapse>.el-menu-item.is-active i{color:inherit}.el-menu--collapse .el-menu .el-sub-menu{min-width:200px}.el-menu--collapse .el-sub-menu.is-active .el-sub-menu__title{color:var(--el-menu-active-color)}.el-menu--popup{border:none;border-radius:var(--el-border-radius-small);box-shadow:var(--el-box-shadow-light);min-width:200px;padding:5px 0;z-index:100}.el-menu .el-icon{flex-shrink:0}.el-menu-item{align-items:center;box-sizing:border-box;color:var(--el-menu-text-color);cursor:pointer;display:flex;font-size:var(--el-menu-item-font-size);height:var(--el-menu-item-height);line-height:var(--el-menu-item-height);list-style:none;padding:0 var(--el-menu-base-level-padding);position:relative;transition:border-color var(--el-transition-duration),background-color var(--el-transition-duration),color var(--el-transition-duration);white-space:nowrap}.el-menu-item *{vertical-align:bottom}.el-menu-item i{color:inherit}.el-menu-item:focus,.el-menu-item:hover{outline:none}.el-menu-item:hover{background-color:var(--el-menu-hover-bg-color)}.el-menu-item.is-disabled{background:none!important;cursor:not-allowed;opacity:.25}.el-menu-item [class^=el-icon]{font-size:18px;margin-right:5px;text-align:center;vertical-align:middle;width:var(--el-menu-icon-width)}.el-menu-item.is-active{color:var(--el-menu-active-color)}.el-menu-item.is-active i{color:inherit}.el-menu-item .el-menu-tooltip__trigger{align-items:center;box-sizing:border-box;display:inline-flex;height:100%;left:0;padding:0 var(--el-menu-base-level-padding);position:absolute;top:0;width:100%}.el-sub-menu{list-style:none;margin:0;padding-left:0}.el-sub-menu__title{align-items:center;box-sizing:border-box;color:var(--el-menu-text-color);cursor:pointer;display:flex;font-size:var(--el-menu-item-font-size);height:var(--el-menu-item-height);line-height:var(--el-menu-item-height);list-style:none;padding:0 var(--el-menu-base-level-padding);position:relative;transition:border-color var(--el-transition-duration),background-color var(--el-transition-duration),color var(--el-transition-duration);white-space:nowrap}.el-sub-menu__title *{vertical-align:bottom}.el-sub-menu__title i{color:inherit}.el-sub-menu__title:focus,.el-sub-menu__title:hover{outline:none}.el-sub-menu__title.is-disabled{background:none!important;cursor:not-allowed;opacity:.25}.el-sub-menu__title:hover{background-color:var(--el-menu-hover-bg-color)}.el-sub-menu .el-menu{border:none}.el-sub-menu .el-menu-item{height:var(--el-menu-sub-item-height);line-height:var(--el-menu-sub-item-height)}.el-sub-menu__hide-arrow .el-sub-menu__icon-arrow{display:none!important}.el-sub-menu.is-active .el-sub-menu__title{border-bottom-color:var(--el-menu-active-color)}.el-sub-menu.is-disabled .el-menu-item,.el-sub-menu.is-disabled .el-sub-menu__title{background:none!important;cursor:not-allowed;opacity:.25}.el-sub-menu .el-icon{font-size:18px;margin-right:5px;text-align:center;vertical-align:middle;width:var(--el-menu-icon-width)}.el-sub-menu .el-icon.el-sub-menu__icon-more{margin-right:0!important}.el-sub-menu .el-sub-menu__icon-arrow{font-size:12px;margin-right:0;margin-top:-6px;position:absolute;right:var(--el-menu-base-level-padding);top:50%;transition:transform var(--el-transition-duration);width:inherit}.el-menu-item-group>ul{padding:0}.el-menu-item-group__title{color:var(--el-text-color-secondary);font-size:12px;line-height:normal;padding:7px 0 7px var(--el-menu-base-level-padding)}.horizontal-collapse-transition .el-sub-menu__title .el-sub-menu__icon-arrow{opacity:0;transition:var(--el-transition-duration-fast)}.el-message-box{--el-messagebox-title-color:var(--el-text-color-primary);--el-messagebox-width:420px;--el-messagebox-border-radius:4px;--el-messagebox-box-shadow:var(--el-box-shadow);--el-messagebox-font-size:var(--el-font-size-large);--el-messagebox-content-font-size:var(--el-font-size-base);--el-messagebox-content-color:var(--el-text-color-regular);--el-messagebox-error-font-size:12px;--el-messagebox-padding-primary:12px;--el-messagebox-font-line-height:var(--el-font-line-height-primary);backface-visibility:hidden;background-color:var(--el-bg-color);border-radius:var(--el-messagebox-border-radius);box-shadow:var(--el-messagebox-box-shadow);box-sizing:border-box;display:inline-block;font-size:var(--el-messagebox-font-size);max-width:var(--el-messagebox-width);overflow:hidden;overflow-wrap:break-word;padding:var(--el-messagebox-padding-primary);position:relative;text-align:left;vertical-align:middle;width:100%}.el-message-box:focus{outline:none!important}.el-overlay.is-message-box .el-overlay-message-box{bottom:0;left:0;overflow:auto;padding:16px;position:fixed;right:0;text-align:center;top:0}.el-overlay.is-message-box .el-overlay-message-box:after{content:"";display:inline-block;height:100%;vertical-align:middle;width:0}.el-message-box.is-draggable .el-message-box__header{cursor:move;-webkit-user-select:none;-moz-user-select:none;user-select:none}.el-message-box__header{padding-bottom:var(--el-messagebox-padding-primary)}.el-message-box__header.show-close{padding-right:calc(var(--el-messagebox-padding-primary) + var(--el-message-close-size, 16px))}.el-message-box__title{color:var(--el-messagebox-title-color);font-size:var(--el-messagebox-font-size);line-height:var(--el-messagebox-font-line-height)}.el-message-box__headerbtn{background:transparent;border:none;cursor:pointer;font-size:var(--el-message-close-size,16px);height:40px;outline:none;padding:0;position:absolute;right:0;top:0;width:40px}.el-message-box__headerbtn .el-message-box__close{color:var(--el-color-info);font-size:inherit}.el-message-box__headerbtn:focus .el-message-box__close,.el-message-box__headerbtn:hover .el-message-box__close{color:var(--el-color-primary)}.el-message-box__content{color:var(--el-messagebox-content-color);font-size:var(--el-messagebox-content-font-size)}.el-message-box__container{align-items:center;display:flex;gap:12px}.el-message-box__input{padding-top:12px}.el-message-box__input div.invalid>input,.el-message-box__input div.invalid>input:focus{border-color:var(--el-color-error)}.el-message-box__status{font-size:24px}.el-message-box__status.el-message-box-icon--success{--el-messagebox-color:var(--el-color-success);color:var(--el-messagebox-color)}.el-message-box__status.el-message-box-icon--info{--el-messagebox-color:var(--el-color-info);color:var(--el-messagebox-color)}.el-message-box__status.el-message-box-icon--warning{--el-messagebox-color:var(--el-color-warning);color:var(--el-messagebox-color)}.el-message-box__status.el-message-box-icon--error{--el-messagebox-color:var(--el-color-error);color:var(--el-messagebox-color)}.el-message-box__message{margin:0}.el-message-box__message p{line-height:var(--el-messagebox-font-line-height);margin:0}.el-message-box__errormsg{color:var(--el-color-error);font-size:var(--el-messagebox-error-font-size);line-height:var(--el-messagebox-font-line-height)}.el-message-box__btns{align-items:center;display:flex;flex-wrap:wrap;justify-content:flex-end;padding-top:var(--el-messagebox-padding-primary)}.el-message-box--center .el-message-box__title{align-items:center;display:flex;gap:6px;justify-content:center}.el-message-box--center .el-message-box__status{font-size:inherit}.el-message-box--center .el-message-box__btns,.el-message-box--center .el-message-box__container{justify-content:center}.fade-in-linear-enter-active .el-overlay-message-box{animation:msgbox-fade-in var(--el-transition-duration)}.fade-in-linear-leave-active .el-overlay-message-box{animation:msgbox-fade-in var(--el-transition-duration) reverse}@keyframes msgbox-fade-in{0%{opacity:0;transform:translate3d(0,-20px,0)}to{opacity:1;transform:translateZ(0)}}.el-message{--el-message-bg-color:var(--el-color-info-light-9);--el-message-border-color:var(--el-border-color-lighter);--el-message-padding:11px 15px;--el-message-close-size:16px;--el-message-close-icon-color:var(--el-text-color-placeholder);--el-message-close-hover-color:var(--el-text-color-secondary);align-items:center;background-color:var(--el-message-bg-color);border-color:var(--el-message-border-color);border-radius:var(--el-border-radius-base);border-style:var(--el-border-style);border-width:var(--el-border-width);box-sizing:border-box;display:flex;gap:8px;left:50%;max-width:calc(100% - 32px);padding:var(--el-message-padding);position:fixed;top:20px;transform:translate(-50%);transition:opacity var(--el-transition-duration),transform .4s,top .4s;width:-moz-fit-content;width:fit-content}.el-message.is-center{justify-content:center}.el-message.is-plain{background-color:var(--el-bg-color-overlay);border-color:var(--el-bg-color-overlay);box-shadow:var(--el-box-shadow-light)}.el-message p{margin:0}.el-message--success{--el-message-bg-color:var(--el-color-success-light-9);--el-message-border-color:var(--el-color-success-light-8);--el-message-text-color:var(--el-color-success)}.el-message--success .el-message__content{color:var(--el-message-text-color);overflow-wrap:break-word}.el-message .el-message-icon--success{color:var(--el-message-text-color)}.el-message--info{--el-message-bg-color:var(--el-color-info-light-9);--el-message-border-color:var(--el-color-info-light-8);--el-message-text-color:var(--el-color-info)}.el-message--info .el-message__content{color:var(--el-message-text-color);overflow-wrap:break-word}.el-message .el-message-icon--info{color:var(--el-message-text-color)}.el-message--warning{--el-message-bg-color:var(--el-color-warning-light-9);--el-message-border-color:var(--el-color-warning-light-8);--el-message-text-color:var(--el-color-warning)}.el-message--warning .el-message__content{color:var(--el-message-text-color);overflow-wrap:break-word}.el-message .el-message-icon--warning{color:var(--el-message-text-color)}.el-message--error{--el-message-bg-color:var(--el-color-error-light-9);--el-message-border-color:var(--el-color-error-light-8);--el-message-text-color:var(--el-color-error)}.el-message--error .el-message__content{color:var(--el-message-text-color);overflow-wrap:break-word}.el-message .el-message-icon--error{color:var(--el-message-text-color)}.el-message .el-message__badge{position:absolute;right:-8px;top:-8px}.el-message__content{font-size:14px;line-height:1;padding:0}.el-message__content:focus{outline-width:0}.el-message .el-message__closeBtn{color:var(--el-message-close-icon-color);cursor:pointer;font-size:var(--el-message-close-size)}.el-message .el-message__closeBtn:focus{outline-width:0}.el-message .el-message__closeBtn:hover{color:var(--el-message-close-hover-color)}.el-message-fade-enter-from,.el-message-fade-leave-to{opacity:0;transform:translate(-50%,-100%)}.el-notification{--el-notification-width:330px;--el-notification-padding:14px 26px 14px 13px;--el-notification-radius:8px;--el-notification-shadow:var(--el-box-shadow-light);--el-notification-border-color:var(--el-border-color-lighter);--el-notification-icon-size:24px;--el-notification-close-font-size:var(--el-message-close-size,16px);--el-notification-group-margin-left:13px;--el-notification-group-margin-right:8px;--el-notification-content-font-size:var(--el-font-size-base);--el-notification-content-color:var(--el-text-color-regular);--el-notification-title-font-size:16px;--el-notification-title-color:var(--el-text-color-primary);--el-notification-close-color:var(--el-text-color-secondary);--el-notification-close-hover-color:var(--el-text-color-regular);background-color:var(--el-bg-color-overlay);border:1px solid var(--el-notification-border-color);border-radius:var(--el-notification-radius);box-shadow:var(--el-notification-shadow);box-sizing:border-box;display:flex;overflow:hidden;overflow-wrap:break-word;padding:var(--el-notification-padding);position:fixed;transition:opacity var(--el-transition-duration),transform var(--el-transition-duration),left var(--el-transition-duration),right var(--el-transition-duration),top .4s,bottom var(--el-transition-duration);width:var(--el-notification-width);z-index:9999}.el-notification.right{right:16px}.el-notification.left{left:16px}.el-notification__group{flex:1;margin-left:var(--el-notification-group-margin-left);margin-right:var(--el-notification-group-margin-right);min-width:0}.el-notification__title{color:var(--el-notification-title-color);font-size:var(--el-notification-title-font-size);font-weight:700;line-height:var(--el-notification-icon-size);margin:0}.el-notification__content{color:var(--el-notification-content-color);font-size:var(--el-notification-content-font-size);line-height:24px;margin:6px 0 0}.el-notification__content p{margin:0}.el-notification .el-notification__icon{flex-shrink:0;font-size:var(--el-notification-icon-size);height:var(--el-notification-icon-size);width:var(--el-notification-icon-size)}.el-notification .el-notification__closeBtn{color:var(--el-notification-close-color);cursor:pointer;font-size:var(--el-notification-close-font-size);position:absolute;right:15px;top:18px}.el-notification .el-notification__closeBtn:hover{color:var(--el-notification-close-hover-color)}.el-notification .el-notification--success{--el-notification-icon-color:var(--el-color-success);color:var(--el-notification-icon-color)}.el-notification .el-notification--info{--el-notification-icon-color:var(--el-color-info);color:var(--el-notification-icon-color)}.el-notification .el-notification--warning{--el-notification-icon-color:var(--el-color-warning);color:var(--el-notification-icon-color)}.el-notification .el-notification--error{--el-notification-icon-color:var(--el-color-error);color:var(--el-notification-icon-color)}.el-notification-fade-enter-from.right{right:0;transform:translate(100%)}.el-notification-fade-enter-from.left{left:0;transform:translate(-100%)}.el-notification-fade-leave-to{opacity:0}.el-overlay{background-color:var(--el-overlay-color-lighter);bottom:0;height:100%;left:0;overflow:auto;position:fixed;right:0;top:0;z-index:2000}.el-overlay .el-overlay-root{height:0}.el-page-header.is-contentful .el-page-header__main{border-top:1px solid var(--el-border-color-light);margin-top:16px}.el-page-header__header{align-items:center;display:flex;justify-content:space-between;line-height:24px}.el-page-header__left{align-items:center;display:flex;margin-right:40px;position:relative}.el-page-header__back{align-items:center;cursor:pointer;display:flex}.el-page-header__left .el-divider--vertical{margin:0 16px}.el-page-header__icon{align-items:center;display:flex;font-size:16px;margin-right:10px}.el-page-header__icon .el-icon{font-size:inherit}.el-page-header__title{font-size:14px;font-weight:500}.el-page-header__content{color:var(--el-text-color-primary);font-size:18px}.el-page-header__breadcrumb{margin-bottom:16px}.el-pagination{--el-pagination-font-size:14px;--el-pagination-bg-color:var(--el-fill-color-blank);--el-pagination-text-color:var(--el-text-color-primary);--el-pagination-border-radius:2px;--el-pagination-button-color:var(--el-text-color-primary);--el-pagination-button-width:32px;--el-pagination-button-height:32px;--el-pagination-button-disabled-color:var(--el-text-color-placeholder);--el-pagination-button-disabled-bg-color:var(--el-fill-color-blank);--el-pagination-button-bg-color:var(--el-fill-color);--el-pagination-hover-color:var(--el-color-primary);--el-pagination-font-size-small:12px;--el-pagination-button-width-small:24px;--el-pagination-button-height-small:24px;--el-pagination-button-width-large:40px;--el-pagination-button-height-large:40px;--el-pagination-item-gap:16px;align-items:center;color:var(--el-pagination-text-color);display:flex;font-size:var(--el-pagination-font-size);font-weight:400;white-space:nowrap}.el-pagination .el-input__inner{-moz-appearance:textfield;text-align:center}.el-pagination .el-select{width:128px}.el-pagination button{align-items:center;background:var(--el-pagination-bg-color);border:none;border-radius:var(--el-pagination-border-radius);box-sizing:border-box;color:var(--el-pagination-button-color);cursor:pointer;display:flex;font-size:var(--el-pagination-font-size);height:var(--el-pagination-button-height);justify-content:center;line-height:var(--el-pagination-button-height);min-width:var(--el-pagination-button-width);padding:0 4px;text-align:center}.el-pagination button *{pointer-events:none}.el-pagination button:focus{outline:none}.el-pagination button.is-active,.el-pagination button:hover{color:var(--el-pagination-hover-color)}.el-pagination button.is-active{cursor:default;font-weight:700}.el-pagination button.is-active.is-disabled{color:var(--el-text-color-secondary);font-weight:700}.el-pagination button.is-disabled,.el-pagination button:disabled{background-color:var(--el-pagination-button-disabled-bg-color);color:var(--el-pagination-button-disabled-color);cursor:not-allowed}.el-pagination button:focus-visible{outline:1px solid var(--el-pagination-hover-color);outline-offset:-1px}.el-pagination .btn-next .el-icon,.el-pagination .btn-prev .el-icon{display:block;font-size:12px;font-weight:700;width:inherit}.el-pagination>.is-first{margin-left:0!important}.el-pagination>.is-last{margin-right:0!important}.el-pagination .btn-prev{margin-left:var(--el-pagination-item-gap)}.el-pagination__sizes,.el-pagination__total{color:var(--el-text-color-regular);font-weight:400;margin-left:var(--el-pagination-item-gap)}.el-pagination__total[disabled=true]{color:var(--el-text-color-placeholder)}.el-pagination__jump{align-items:center;color:var(--el-text-color-regular);display:flex;font-weight:400;margin-left:var(--el-pagination-item-gap)}.el-pagination__jump[disabled=true]{color:var(--el-text-color-placeholder)}.el-pagination__goto{margin-right:8px}.el-pagination__editor{box-sizing:border-box;text-align:center}.el-pagination__editor.el-input{width:56px}.el-pagination__editor .el-input__inner::-webkit-inner-spin-button,.el-pagination__editor .el-input__inner::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.el-pagination__classifier{margin-left:8px}.el-pagination__rightwrapper{align-items:center;display:flex;flex:1;justify-content:flex-end}.el-pagination.is-background .btn-next,.el-pagination.is-background .btn-prev,.el-pagination.is-background .el-pager li{background-color:var(--el-pagination-button-bg-color);margin:0 4px}.el-pagination.is-background .btn-next.is-active,.el-pagination.is-background .btn-prev.is-active,.el-pagination.is-background .el-pager li.is-active{background-color:var(--el-color-primary);color:var(--el-color-white)}.el-pagination.is-background .btn-next.is-disabled,.el-pagination.is-background .btn-next:disabled,.el-pagination.is-background .btn-prev.is-disabled,.el-pagination.is-background .btn-prev:disabled,.el-pagination.is-background .el-pager li.is-disabled,.el-pagination.is-background .el-pager li:disabled{background-color:var(--el-disabled-bg-color);color:var(--el-text-color-placeholder)}.el-pagination.is-background .btn-next.is-disabled.is-active,.el-pagination.is-background .btn-next:disabled.is-active,.el-pagination.is-background .btn-prev.is-disabled.is-active,.el-pagination.is-background .btn-prev:disabled.is-active,.el-pagination.is-background .el-pager li.is-disabled.is-active,.el-pagination.is-background .el-pager li:disabled.is-active{background-color:var(--el-fill-color-dark);color:var(--el-text-color-secondary)}.el-pagination.is-background .btn-prev{margin-left:var(--el-pagination-item-gap)}.el-pagination--small .btn-next,.el-pagination--small .btn-prev,.el-pagination--small .el-pager li{font-size:var(--el-pagination-font-size-small);height:var(--el-pagination-button-height-small);line-height:var(--el-pagination-button-height-small);min-width:var(--el-pagination-button-width-small)}.el-pagination--small button,.el-pagination--small span:not([class*=suffix]){font-size:var(--el-pagination-font-size-small)}.el-pagination--small .el-select{width:100px}.el-pagination--large .btn-next,.el-pagination--large .btn-prev,.el-pagination--large .el-pager li{height:var(--el-pagination-button-height-large);line-height:var(--el-pagination-button-height-large);min-width:var(--el-pagination-button-width-large)}.el-pagination--large .el-select .el-input{width:160px}.el-pager{font-size:0;list-style:none;margin:0;padding:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.el-pager,.el-pager li{align-items:center;display:flex}.el-pager li{background:var(--el-pagination-bg-color);border:none;border-radius:var(--el-pagination-border-radius);box-sizing:border-box;color:var(--el-pagination-button-color);cursor:pointer;font-size:var(--el-pagination-font-size);height:var(--el-pagination-button-height);justify-content:center;line-height:var(--el-pagination-button-height);min-width:var(--el-pagination-button-width);padding:0 4px;text-align:center}.el-pager li *{pointer-events:none}.el-pager li:focus{outline:none}.el-pager li.is-active,.el-pager li:hover{color:var(--el-pagination-hover-color)}.el-pager li.is-active{cursor:default;font-weight:700}.el-pager li.is-active.is-disabled{color:var(--el-text-color-secondary);font-weight:700}.el-pager li.is-disabled,.el-pager li:disabled{background-color:var(--el-pagination-button-disabled-bg-color);color:var(--el-pagination-button-disabled-color);cursor:not-allowed}.el-pager li:focus-visible{outline:1px solid var(--el-pagination-hover-color);outline-offset:-1px}.el-popconfirm__main{align-items:center;display:flex}.el-popconfirm__icon{margin-right:5px}.el-popconfirm__action{margin-top:8px;text-align:right}.el-popover{--el-popover-bg-color:var(--el-bg-color-overlay);--el-popover-font-size:var(--el-font-size-base);--el-popover-border-color:var(--el-border-color-lighter);--el-popover-padding:12px;--el-popover-padding-large:18px 20px;--el-popover-title-font-size:16px;--el-popover-title-text-color:var(--el-text-color-primary);--el-popover-border-radius:4px}.el-popover.el-popper{background:var(--el-popover-bg-color);border:1px solid var(--el-popover-border-color);border-radius:var(--el-popover-border-radius);box-shadow:var(--el-box-shadow-light);box-sizing:border-box;color:var(--el-text-color-regular);font-size:var(--el-popover-font-size);line-height:1.4;min-width:150px;overflow-wrap:break-word;padding:var(--el-popover-padding);z-index:var(--el-index-popper)}.el-popover.el-popper--plain{padding:var(--el-popover-padding-large)}.el-popover__title{color:var(--el-popover-title-text-color);font-size:var(--el-popover-title-font-size);line-height:1;margin-bottom:12px}.el-popover__reference:focus:hover,.el-popover__reference:focus:not(.focusing){outline-width:0}.el-popover.el-popper.is-dark{--el-popover-bg-color:var(--el-text-color-primary);--el-popover-border-color:var(--el-text-color-primary);--el-popover-title-text-color:var(--el-bg-color);color:var(--el-bg-color)}.el-popover.el-popper:focus,.el-popover.el-popper:focus:active{outline-width:0}.el-progress{align-items:center;display:flex;line-height:1;position:relative}.el-progress__text{color:var(--el-text-color-regular);font-size:14px;line-height:1;margin-left:5px;min-width:50px}.el-progress__text i{display:block;vertical-align:middle}.el-progress--circle,.el-progress--dashboard{display:inline-block}.el-progress--circle .el-progress__text,.el-progress--dashboard .el-progress__text{left:0;margin:0;position:absolute;text-align:center;top:50%;transform:translateY(-50%);width:100%}.el-progress--circle .el-progress__text i,.el-progress--dashboard .el-progress__text i{display:inline-block;vertical-align:middle}.el-progress--without-text .el-progress__text{display:none}.el-progress--without-text .el-progress-bar{display:block;margin-right:0;padding-right:0}.el-progress--text-inside .el-progress-bar{margin-right:0;padding-right:0}.el-progress.is-success .el-progress-bar__inner{background-color:var(--el-color-success)}.el-progress.is-success .el-progress__text{color:var(--el-color-success)}.el-progress.is-warning .el-progress-bar__inner{background-color:var(--el-color-warning)}.el-progress.is-warning .el-progress__text{color:var(--el-color-warning)}.el-progress.is-exception .el-progress-bar__inner{background-color:var(--el-color-danger)}.el-progress.is-exception .el-progress__text{color:var(--el-color-danger)}.el-progress-bar{box-sizing:border-box;flex-grow:1}.el-progress-bar__outer{background-color:var(--el-border-color-lighter);border-radius:100px;height:6px;overflow:hidden;position:relative;vertical-align:middle}.el-progress-bar__inner{background-color:var(--el-color-primary);border-radius:100px;height:100%;left:0;line-height:1;position:absolute;text-align:right;top:0;transition:width .6s ease;white-space:nowrap}.el-progress-bar__inner:after{content:"";display:inline-block;height:100%;vertical-align:middle}.el-progress-bar__inner--indeterminate{animation:indeterminate 3s infinite;transform:translateZ(0)}.el-progress-bar__inner--striped{background-image:linear-gradient(45deg,rgba(0,0,0,.1) 25%,transparent 0,transparent 50%,rgba(0,0,0,.1) 0,rgba(0,0,0,.1) 75%,transparent 0,transparent);background-size:1.25em 1.25em}.el-progress-bar__inner--striped.el-progress-bar__inner--striped-flow{animation:striped-flow 3s linear infinite}.el-progress-bar__innerText{color:#fff;display:inline-block;font-size:12px;margin:0 5px;vertical-align:middle}@keyframes progress{0%{background-position:0 0}to{background-position:32px 0}}@keyframes indeterminate{0%{left:-100%}to{left:100%}}@keyframes striped-flow{0%{background-position:-100%}to{background-position:100%}}.el-radio-button{--el-radio-button-checked-bg-color:var(--el-color-primary);--el-radio-button-checked-text-color:var(--el-color-white);--el-radio-button-checked-border-color:var(--el-color-primary);--el-radio-button-disabled-checked-fill:var(--el-border-color-extra-light)}.el-radio-button,.el-radio-button__inner{display:inline-block;outline:none;position:relative}.el-radio-button__inner{-webkit-appearance:none;background:var(--el-button-bg-color,var(--el-fill-color-blank));border:var(--el-border);border-left:0;border-radius:0;box-sizing:border-box;color:var(--el-button-text-color,var(--el-text-color-regular));cursor:pointer;font-size:var(--el-font-size-base);font-weight:var(--el-button-font-weight,var(--el-font-weight-primary));line-height:1;margin:0;padding:8px 15px;text-align:center;transition:var(--el-transition-all);-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;white-space:nowrap}.el-radio-button__inner.is-round{padding:8px 15px}.el-radio-button__inner:hover{color:var(--el-color-primary)}.el-radio-button__inner [class*=el-icon-]{line-height:.9}.el-radio-button__inner [class*=el-icon-]+span{margin-left:5px}.el-radio-button:first-child .el-radio-button__inner{border-left:var(--el-border);border-radius:var(--el-border-radius-base) 0 0 var(--el-border-radius-base);box-shadow:none!important}.el-radio-button.is-active .el-radio-button__original-radio:not(:disabled)+.el-radio-button__inner{background-color:var(--el-radio-button-checked-bg-color,var(--el-color-primary));border-color:var(--el-radio-button-checked-border-color,var(--el-color-primary));box-shadow:-1px 0 0 0 var(--el-radio-button-checked-border-color,var(--el-color-primary));color:var(--el-radio-button-checked-text-color,var(--el-color-white))}.el-radio-button__original-radio{opacity:0;outline:none;position:absolute;z-index:-1}.el-radio-button__original-radio:focus-visible+.el-radio-button__inner{border-left:var(--el-border);border-left-color:var(--el-radio-button-checked-border-color,var(--el-color-primary));border-radius:var(--el-border-radius-base);box-shadow:none;outline:2px solid var(--el-radio-button-checked-border-color);outline-offset:1px;z-index:2}.el-radio-button__original-radio:disabled+.el-radio-button__inner{background-color:var(--el-button-disabled-bg-color,var(--el-fill-color-blank));background-image:none;border-color:var(--el-button-disabled-border-color,var(--el-border-color-light));box-shadow:none;color:var(--el-disabled-text-color);cursor:not-allowed}.el-radio-button__original-radio:disabled:checked+.el-radio-button__inner{background-color:var(--el-radio-button-disabled-checked-fill)}.el-radio-button:last-child .el-radio-button__inner{border-radius:0 var(--el-border-radius-base) var(--el-border-radius-base) 0}.el-radio-button:first-child:last-child .el-radio-button__inner{border-radius:var(--el-border-radius-base)}.el-radio-button--large .el-radio-button__inner{border-radius:0;font-size:var(--el-font-size-base);padding:12px 19px}.el-radio-button--large .el-radio-button__inner.is-round{padding:12px 19px}.el-radio-button--small .el-radio-button__inner{border-radius:0;font-size:12px;padding:5px 11px}.el-radio-button--small .el-radio-button__inner.is-round{padding:5px 11px}.el-radio-group{align-items:center;display:inline-flex;flex-wrap:wrap;font-size:0}.el-radio{--el-radio-font-size:var(--el-font-size-base);--el-radio-text-color:var(--el-text-color-regular);--el-radio-font-weight:var(--el-font-weight-primary);--el-radio-input-height:14px;--el-radio-input-width:14px;--el-radio-input-border-radius:var(--el-border-radius-circle);--el-radio-input-bg-color:var(--el-fill-color-blank);--el-radio-input-border:var(--el-border);--el-radio-input-border-color:var(--el-border-color);--el-radio-input-border-color-hover:var(--el-color-primary);align-items:center;color:var(--el-radio-text-color);cursor:pointer;display:inline-flex;font-size:var(--el-font-size-base);font-weight:var(--el-radio-font-weight);height:32px;margin-right:30px;outline:none;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}.el-radio.el-radio--large{height:40px}.el-radio.el-radio--small{height:24px}.el-radio.is-bordered{border:var(--el-border);border-radius:var(--el-border-radius-base);box-sizing:border-box;padding:0 15px 0 9px}.el-radio.is-bordered.is-checked{border-color:var(--el-color-primary)}.el-radio.is-bordered.is-disabled{border-color:var(--el-border-color-lighter);cursor:not-allowed}.el-radio.is-bordered.el-radio--large{border-radius:var(--el-border-radius-base);padding:0 19px 0 11px}.el-radio.is-bordered.el-radio--large .el-radio__label{font-size:var(--el-font-size-base)}.el-radio.is-bordered.el-radio--large .el-radio__inner{height:14px;width:14px}.el-radio.is-bordered.el-radio--small{border-radius:var(--el-border-radius-base);padding:0 11px 0 7px}.el-radio.is-bordered.el-radio--small .el-radio__label{font-size:12px}.el-radio.is-bordered.el-radio--small .el-radio__inner{height:12px;width:12px}.el-radio:last-child{margin-right:0}.el-radio__input{cursor:pointer;display:inline-flex;outline:none;position:relative;vertical-align:middle;white-space:nowrap}.el-radio__input.is-disabled .el-radio__inner{border-color:var(--el-disabled-border-color)}.el-radio__input.is-disabled .el-radio__inner,.el-radio__input.is-disabled .el-radio__inner:after{background-color:var(--el-disabled-bg-color);cursor:not-allowed}.el-radio__input.is-disabled .el-radio__inner+.el-radio__label{cursor:not-allowed}.el-radio__input.is-disabled.is-checked .el-radio__inner{background-color:var(--el-disabled-bg-color);border-color:var(--el-disabled-border-color)}.el-radio__input.is-disabled.is-checked .el-radio__inner:after{background-color:var(--el-text-color-placeholder)}.el-radio__input.is-disabled+span.el-radio__label{color:var(--el-text-color-placeholder);cursor:not-allowed}.el-radio__input.is-checked .el-radio__inner{background:var(--el-color-primary);border-color:var(--el-color-primary)}.el-radio__input.is-checked .el-radio__inner:after{transform:translate(-50%,-50%) scale(1)}.el-radio__input.is-checked+.el-radio__label{color:var(--el-color-primary)}.el-radio__input.is-focus .el-radio__inner{border-color:var(--el-radio-input-border-color-hover)}.el-radio__inner{background-color:var(--el-radio-input-bg-color);border:var(--el-radio-input-border);border-radius:var(--el-radio-input-border-radius);box-sizing:border-box;cursor:pointer;display:inline-block;height:var(--el-radio-input-height);position:relative;width:var(--el-radio-input-width)}.el-radio__inner:hover{border-color:var(--el-radio-input-border-color-hover)}.el-radio__inner:after{background-color:var(--el-color-white);border-radius:var(--el-radio-input-border-radius);content:"";height:4px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%) scale(0);transition:transform .15s ease-in;width:4px}.el-radio__original{bottom:0;left:0;margin:0;opacity:0;outline:none;position:absolute;right:0;top:0;z-index:-1}.el-radio__original:focus-visible+.el-radio__inner{border-radius:var(--el-radio-input-border-radius);outline:2px solid var(--el-radio-input-border-color-hover);outline-offset:1px}.el-radio:focus:not(:focus-visible):not(.is-focus):not(:active):not(.is-disabled) .el-radio__inner{box-shadow:0 0 2px 2px var(--el-radio-input-border-color-hover)}.el-radio__label{font-size:var(--el-radio-font-size);padding-left:8px}.el-radio.el-radio--large .el-radio__label{font-size:14px}.el-radio.el-radio--large .el-radio__inner{height:14px;width:14px}.el-radio.el-radio--small .el-radio__label{font-size:12px}.el-radio.el-radio--small .el-radio__inner{height:12px;width:12px}.el-rate{--el-rate-height:20px;--el-rate-font-size:var(--el-font-size-base);--el-rate-icon-size:18px;--el-rate-icon-margin:6px;--el-rate-void-color:var(--el-border-color-darker);--el-rate-fill-color:#f7ba2a;--el-rate-disabled-void-color:var(--el-fill-color);--el-rate-text-color:var(--el-text-color-primary);align-items:center;display:inline-flex;height:32px}.el-rate:active,.el-rate:focus{outline:none}.el-rate__item{color:var(--el-rate-void-color);cursor:pointer;display:inline-block;font-size:0;line-height:normal;position:relative;vertical-align:middle}.el-rate .el-rate__icon{display:inline-block;font-size:var(--el-rate-icon-size);margin-right:var(--el-rate-icon-margin);position:relative;transition:var(--el-transition-duration)}.el-rate .el-rate__icon.hover{transform:scale(1.15)}.el-rate .el-rate__icon .path2{left:0;position:absolute;top:0}.el-rate .el-rate__icon.is-active{color:var(--el-rate-fill-color)}.el-rate__decimal{color:var(--el-rate-fill-color);display:inline-block;overflow:hidden}.el-rate__decimal,.el-rate__decimal--box{left:0;position:absolute;top:0}.el-rate__text{color:var(--el-rate-text-color);font-size:var(--el-rate-font-size);vertical-align:middle}.el-rate--large{height:40px}.el-rate--small{height:24px}.el-rate--small .el-rate__icon{font-size:14px}.el-rate.is-disabled .el-rate__item{color:var(--el-rate-disabled-void-color);cursor:auto}.el-result{--el-result-padding:40px 30px;--el-result-icon-font-size:64px;--el-result-title-font-size:20px;--el-result-title-margin-top:20px;--el-result-subtitle-margin-top:10px;--el-result-extra-margin-top:30px;align-items:center;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;padding:var(--el-result-padding);text-align:center}.el-result__icon svg{height:var(--el-result-icon-font-size);width:var(--el-result-icon-font-size)}.el-result__title{margin-top:var(--el-result-title-margin-top)}.el-result__title p{color:var(--el-text-color-primary);font-size:var(--el-result-title-font-size);line-height:1.3;margin:0}.el-result__subtitle{margin-top:var(--el-result-subtitle-margin-top)}.el-result__subtitle p{color:var(--el-text-color-regular);font-size:var(--el-font-size-base);line-height:1.3;margin:0}.el-result__extra{margin-top:var(--el-result-extra-margin-top)}.el-result .icon-primary{--el-result-color:var(--el-color-primary);color:var(--el-result-color)}.el-result .icon-success{--el-result-color:var(--el-color-success);color:var(--el-result-color)}.el-result .icon-warning{--el-result-color:var(--el-color-warning);color:var(--el-result-color)}.el-result .icon-danger{--el-result-color:var(--el-color-danger);color:var(--el-result-color)}.el-result .icon-error{--el-result-color:var(--el-color-error);color:var(--el-result-color)}.el-result .icon-info{--el-result-color:var(--el-color-info);color:var(--el-result-color)}.el-row{box-sizing:border-box;display:flex;flex-wrap:wrap;position:relative}.el-row.is-justify-center{justify-content:center}.el-row.is-justify-end{justify-content:flex-end}.el-row.is-justify-space-between{justify-content:space-between}.el-row.is-justify-space-around{justify-content:space-around}.el-row.is-justify-space-evenly{justify-content:space-evenly}.el-row.is-align-top{align-items:flex-start}.el-row.is-align-middle{align-items:center}.el-row.is-align-bottom{align-items:flex-end}.el-scrollbar{--el-scrollbar-opacity:.3;--el-scrollbar-bg-color:var(--el-text-color-secondary);--el-scrollbar-hover-opacity:.5;--el-scrollbar-hover-bg-color:var(--el-text-color-secondary);height:100%;overflow:hidden;position:relative}.el-scrollbar__wrap{height:100%;overflow:auto}.el-scrollbar__wrap--hidden-default{scrollbar-width:none}.el-scrollbar__wrap--hidden-default::-webkit-scrollbar{display:none}.el-scrollbar__thumb{background-color:var(--el-scrollbar-bg-color,var(--el-text-color-secondary));border-radius:inherit;cursor:pointer;display:block;height:0;opacity:var(--el-scrollbar-opacity,.3);position:relative;transition:var(--el-transition-duration) background-color;width:0}.el-scrollbar__thumb:hover{background-color:var(--el-scrollbar-hover-bg-color,var(--el-text-color-secondary));opacity:var(--el-scrollbar-hover-opacity,.5)}.el-scrollbar__bar{border-radius:4px;bottom:2px;position:absolute;right:2px;z-index:1}.el-scrollbar__bar.is-vertical{top:2px;width:6px}.el-scrollbar__bar.is-vertical>div{width:100%}.el-scrollbar__bar.is-horizontal{height:6px;left:2px}.el-scrollbar__bar.is-horizontal>div{height:100%}.el-scrollbar-fade-enter-active{transition:opacity .34s ease-out}.el-scrollbar-fade-leave-active{transition:opacity .12s ease-out}.el-scrollbar-fade-enter-from,.el-scrollbar-fade-leave-active{opacity:0}.el-select-dropdown{border-radius:var(--el-border-radius-base);box-sizing:border-box;z-index:calc(var(--el-index-top) + 1)}.el-select-dropdown .el-scrollbar.is-empty .el-select-dropdown__list{padding:0}.el-select-dropdown__empty,.el-select-dropdown__loading{color:var(--el-text-color-secondary);font-size:var(--el-select-font-size);margin:0;padding:10px 0;text-align:center}.el-select-dropdown__wrap{max-height:274px}.el-select-dropdown__list{box-sizing:border-box;list-style:none;margin:0;padding:6px 0}.el-select-dropdown__list.el-vl__window{margin:6px 0;padding:0}.el-select-dropdown__header{border-bottom:1px solid var(--el-border-color-light);padding:10px}.el-select-dropdown__footer{border-top:1px solid var(--el-border-color-light);padding:10px}.el-select-dropdown__item{box-sizing:border-box;color:var(--el-text-color-regular);cursor:pointer;font-size:var(--el-font-size-base);height:34px;line-height:34px;overflow:hidden;padding:0 32px 0 20px;position:relative;text-overflow:ellipsis;white-space:nowrap}.el-select-dropdown__item.is-hovering{background-color:var(--el-fill-color-light)}.el-select-dropdown__item.is-selected{color:var(--el-color-primary);font-weight:700}.el-select-dropdown__item.is-disabled{background-color:unset;color:var(--el-text-color-placeholder);cursor:not-allowed}.el-select-dropdown.is-multiple .el-select-dropdown__item.is-selected:after{background-color:var(--el-color-primary);background-position:50%;background-repeat:no-repeat;border-right:none;border-top:none;content:"";height:12px;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%;position:absolute;right:20px;top:50%;transform:translateY(-50%);width:12px}.el-select-dropdown.is-multiple .el-select-dropdown__item.is-disabled:after{background-color:var(--el-text-color-placeholder)}.el-select-group{margin:0;padding:0}.el-select-group__wrap{list-style:none;margin:0;padding:0;position:relative}.el-select-group__title{box-sizing:border-box;color:var(--el-color-info);font-size:12px;line-height:34px;overflow:hidden;padding:0 20px;text-overflow:ellipsis;white-space:nowrap}.el-select-group .el-select-dropdown__item{padding-left:20px}.el-select{--el-select-border-color-hover:var(--el-border-color-hover);--el-select-disabled-color:var(--el-disabled-text-color);--el-select-disabled-border:var(--el-disabled-border-color);--el-select-font-size:var(--el-font-size-base);--el-select-close-hover-color:var(--el-text-color-secondary);--el-select-input-color:var(--el-text-color-placeholder);--el-select-multiple-input-color:var(--el-text-color-regular);--el-select-input-focus-border-color:var(--el-color-primary);--el-select-input-font-size:14px;--el-select-width:100%;display:inline-block;position:relative;vertical-align:middle;width:var(--el-select-width)}.el-select__wrapper{align-items:center;background-color:var(--el-fill-color-blank);border-radius:var(--el-border-radius-base);box-shadow:0 0 0 1px var(--el-border-color) inset;box-sizing:border-box;cursor:pointer;display:flex;font-size:14px;gap:6px;line-height:24px;min-height:32px;padding:4px 12px;position:relative;text-align:left;transform:translateZ(0);transition:var(--el-transition-duration)}.el-select__wrapper.is-filterable{cursor:text}.el-select__wrapper.is-focused{box-shadow:0 0 0 1px var(--el-color-primary) inset}.el-select__wrapper.is-hovering:not(.is-focused){box-shadow:0 0 0 1px var(--el-border-color-hover) inset}.el-select__wrapper.is-disabled{background-color:var(--el-fill-color-light);color:var(--el-text-color-placeholder);cursor:not-allowed;pointer-events:none}.el-select__wrapper.is-disabled,.el-select__wrapper.is-disabled:hover{box-shadow:0 0 0 1px var(--el-select-disabled-border) inset}.el-select__wrapper.is-disabled.is-focus{box-shadow:0 0 0 1px var(--el-input-focus-border-color) inset}.el-select__wrapper.is-disabled .el-select__selected-item{color:var(--el-select-disabled-color)}.el-select__wrapper.is-disabled .el-select__caret,.el-select__wrapper.is-disabled .el-tag{cursor:not-allowed}.el-select__prefix,.el-select__suffix{align-items:center;color:var(--el-input-icon-color,var(--el-text-color-placeholder));display:flex;flex-shrink:0;gap:6px}.el-select__caret{color:var(--el-select-input-color);cursor:pointer;font-size:var(--el-select-input-font-size);transform:rotate(0);transition:var(--el-transition-duration)}.el-select__caret.is-reverse{transform:rotate(180deg)}.el-select__selection{align-items:center;display:flex;flex:1;flex-wrap:wrap;gap:6px;min-width:0;position:relative}.el-select__selection.is-near{margin-left:-8px}.el-select__selection .el-tag{border-color:transparent;cursor:pointer}.el-select__selection .el-tag.el-tag--plain{border-color:var(--el-tag-border-color)}.el-select__selection .el-tag .el-tag__content{min-width:0}.el-select__selected-item{display:flex;flex-wrap:wrap;-webkit-user-select:none;-moz-user-select:none;user-select:none}.el-select__tags-text{line-height:normal}.el-select__placeholder,.el-select__tags-text{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.el-select__placeholder{color:var(--el-input-text-color,var(--el-text-color-regular));position:absolute;top:50%;transform:translateY(-50%);width:100%;z-index:-1}.el-select__placeholder.is-transparent{color:var(--el-text-color-placeholder);-webkit-user-select:none;-moz-user-select:none;user-select:none}.el-select__popper.el-popper{background:var(--el-bg-color-overlay);box-shadow:var(--el-box-shadow-light)}.el-select__popper.el-popper,.el-select__popper.el-popper .el-popper__arrow:before{border:1px solid var(--el-border-color-light)}.el-select__popper.el-popper[data-popper-placement^=top] .el-popper__arrow:before{border-left-color:transparent;border-top-color:transparent}.el-select__popper.el-popper[data-popper-placement^=bottom] .el-popper__arrow:before{border-bottom-color:transparent;border-right-color:transparent}.el-select__popper.el-popper[data-popper-placement^=left] .el-popper__arrow:before{border-bottom-color:transparent;border-left-color:transparent}.el-select__popper.el-popper[data-popper-placement^=right] .el-popper__arrow:before{border-right-color:transparent;border-top-color:transparent}.el-select__input-wrapper{flex:1}.el-select__input-wrapper.is-hidden{opacity:0;position:absolute;z-index:-1}.el-select__input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border:none;color:var(--el-select-multiple-input-color);font-family:inherit;font-size:inherit;height:24px;outline:none;padding:0;width:100%}.el-select__input.is-disabled{cursor:not-allowed}.el-select__input-calculator{left:0;max-width:100%;overflow:hidden;position:absolute;top:0;visibility:hidden;white-space:pre}.el-select--large .el-select__wrapper{font-size:14px;gap:6px;line-height:24px;min-height:40px;padding:8px 16px}.el-select--large .el-select__selection{gap:6px}.el-select--large .el-select__selection.is-near{margin-left:-8px}.el-select--large .el-select__prefix,.el-select--large .el-select__suffix{gap:6px}.el-select--large .el-select__input{height:24px}.el-select--small .el-select__wrapper{font-size:12px;gap:4px;line-height:20px;min-height:24px;padding:2px 8px}.el-select--small .el-select__selection{gap:4px}.el-select--small .el-select__selection.is-near{margin-left:-6px}.el-select--small .el-select__prefix,.el-select--small .el-select__suffix{gap:4px}.el-select--small .el-select__input{height:20px}.el-skeleton{--el-skeleton-circle-size:var(--el-avatar-size)}.el-skeleton__item{background:var(--el-skeleton-color);border-radius:var(--el-border-radius-base);display:inline-block;height:16px;width:100%}.el-skeleton__circle{border-radius:50%;height:var(--el-skeleton-circle-size);line-height:var(--el-skeleton-circle-size);width:var(--el-skeleton-circle-size)}.el-skeleton__button{border-radius:4px;height:40px;width:64px}.el-skeleton__p{width:100%}.el-skeleton__p.is-last{width:61%}.el-skeleton__p.is-first{width:33%}.el-skeleton__text{height:var(--el-font-size-small);width:100%}.el-skeleton__caption{height:var(--el-font-size-extra-small)}.el-skeleton__h1{height:var(--el-font-size-extra-large)}.el-skeleton__h3{height:var(--el-font-size-large)}.el-skeleton__h5{height:var(--el-font-size-medium)}.el-skeleton__image{align-items:center;border-radius:0;display:flex;justify-content:center;width:unset}.el-skeleton__image svg{color:var(--el-svg-monochrome-grey);fill:currentColor;height:22%;width:22%}.el-skeleton{--el-skeleton-color:var(--el-fill-color);--el-skeleton-to-color:var(--el-fill-color-darker)}@keyframes el-skeleton-loading{0%{background-position:100% 50%}to{background-position:0 50%}}.el-skeleton{width:100%}.el-skeleton__first-line,.el-skeleton__paragraph{background:var(--el-skeleton-color);height:16px;margin-top:16px}.el-skeleton.is-animated .el-skeleton__item{animation:el-skeleton-loading 1.4s ease infinite;background:linear-gradient(90deg,var(--el-skeleton-color) 25%,var(--el-skeleton-to-color) 37%,var(--el-skeleton-color) 63%);background-size:400% 100%}.el-slider{--el-slider-main-bg-color:var(--el-color-primary);--el-slider-runway-bg-color:var(--el-border-color-light);--el-slider-stop-bg-color:var(--el-color-white);--el-slider-disabled-color:var(--el-text-color-placeholder);--el-slider-border-radius:3px;--el-slider-height:6px;--el-slider-button-size:20px;--el-slider-button-wrapper-size:36px;--el-slider-button-wrapper-offset:-15px;align-items:center;display:flex;height:32px;width:100%}.el-slider__runway{background-color:var(--el-slider-runway-bg-color);border-radius:var(--el-slider-border-radius);cursor:pointer;flex:1;height:var(--el-slider-height);position:relative}.el-slider__runway.show-input{margin-right:30px;width:auto}.el-slider__runway.is-disabled{cursor:default}.el-slider__runway.is-disabled .el-slider__bar{background-color:var(--el-slider-disabled-color)}.el-slider__runway.is-disabled .el-slider__button{border-color:var(--el-slider-disabled-color)}.el-slider__runway.is-disabled .el-slider__button-wrapper.dragging,.el-slider__runway.is-disabled .el-slider__button-wrapper.hover,.el-slider__runway.is-disabled .el-slider__button-wrapper:hover{cursor:not-allowed}.el-slider__runway.is-disabled .el-slider__button.dragging,.el-slider__runway.is-disabled .el-slider__button.hover,.el-slider__runway.is-disabled .el-slider__button:hover{transform:scale(1)}.el-slider__runway.is-disabled .el-slider__button.dragging,.el-slider__runway.is-disabled .el-slider__button.hover,.el-slider__runway.is-disabled .el-slider__button:hover{cursor:not-allowed}.el-slider__input{flex-shrink:0;width:130px}.el-slider__bar{background-color:var(--el-slider-main-bg-color);border-bottom-left-radius:var(--el-slider-border-radius);border-top-left-radius:var(--el-slider-border-radius);height:var(--el-slider-height);position:absolute}.el-slider__button-wrapper{background-color:transparent;height:var(--el-slider-button-wrapper-size);line-height:normal;outline:none;position:absolute;text-align:center;top:var(--el-slider-button-wrapper-offset);transform:translate(-50%);-webkit-user-select:none;-moz-user-select:none;user-select:none;width:var(--el-slider-button-wrapper-size);z-index:1}.el-slider__button-wrapper:after{content:"";display:inline-block;height:100%;vertical-align:middle}.el-slider__button-wrapper.hover,.el-slider__button-wrapper:hover{cursor:grab}.el-slider__button-wrapper.dragging{cursor:grabbing}.el-slider__button{background-color:var(--el-color-white);border:2px solid var(--el-slider-main-bg-color);border-radius:50%;box-sizing:border-box;display:inline-block;height:var(--el-slider-button-size);transition:var(--el-transition-duration-fast);-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;width:var(--el-slider-button-size)}.el-slider__button.dragging,.el-slider__button.hover,.el-slider__button:hover{transform:scale(1.2)}.el-slider__button.hover,.el-slider__button:hover{cursor:grab}.el-slider__button.dragging{cursor:grabbing}.el-slider__stop{background-color:var(--el-slider-stop-bg-color);border-radius:var(--el-border-radius-circle);height:var(--el-slider-height);position:absolute;transform:translate(-50%);width:var(--el-slider-height)}.el-slider__marks{height:100%;left:12px;top:0;width:18px}.el-slider__marks-text{color:var(--el-color-info);font-size:14px;margin-top:15px;position:absolute;transform:translate(-50%);white-space:pre}.el-slider.is-vertical{display:inline-flex;flex:0;height:100%;position:relative;width:auto}.el-slider.is-vertical .el-slider__runway{height:100%;margin:0 16px;width:var(--el-slider-height)}.el-slider.is-vertical .el-slider__bar{border-radius:0 0 3px 3px;height:auto;width:var(--el-slider-height)}.el-slider.is-vertical .el-slider__button-wrapper{left:var(--el-slider-button-wrapper-offset);top:auto;transform:translateY(50%)}.el-slider.is-vertical .el-slider__stop{transform:translateY(50%)}.el-slider.is-vertical .el-slider__marks-text{left:15px;margin-top:0;transform:translateY(50%)}.el-slider--large{height:40px}.el-slider--small{height:24px}.el-space{display:inline-flex;vertical-align:top}.el-space__item{display:flex;flex-wrap:wrap}.el-space__item>*{flex:1}.el-space--vertical{flex-direction:column}.el-time-spinner{white-space:nowrap;width:100%}.el-spinner{display:inline-block;vertical-align:middle}.el-spinner-inner{animation:rotate 2s linear infinite;height:50px;width:50px}.el-spinner-inner .path{stroke:var(--el-border-color-lighter);stroke-linecap:round;animation:dash 1.5s ease-in-out infinite}@keyframes rotate{to{transform:rotate(1turn)}}@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}to{stroke-dasharray:90,150;stroke-dashoffset:-124}}.el-step{flex-shrink:1;position:relative}.el-step:last-of-type .el-step__line{display:none}.el-step:last-of-type.is-flex{flex-basis:auto!important;flex-grow:0;flex-shrink:0}.el-step:last-of-type .el-step__description,.el-step:last-of-type .el-step__main{padding-right:0}.el-step__head{position:relative;width:100%}.el-step__head.is-process{border-color:var(--el-text-color-primary);color:var(--el-text-color-primary)}.el-step__head.is-wait{border-color:var(--el-text-color-placeholder);color:var(--el-text-color-placeholder)}.el-step__head.is-success{border-color:var(--el-color-success);color:var(--el-color-success)}.el-step__head.is-error{border-color:var(--el-color-danger);color:var(--el-color-danger)}.el-step__head.is-finish{border-color:var(--el-color-primary);color:var(--el-color-primary)}.el-step__icon{align-items:center;background:var(--el-bg-color);box-sizing:border-box;display:inline-flex;font-size:14px;height:24px;justify-content:center;position:relative;transition:.15s ease-out;width:24px;z-index:1}.el-step__icon.is-text{border:2px solid;border-color:inherit;border-radius:50%}.el-step__icon.is-icon{width:40px}.el-step__icon-inner{color:inherit;display:inline-block;font-weight:700;line-height:1;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none}.el-step__icon-inner[class*=el-icon]:not(.is-status){font-size:25px;font-weight:400}.el-step__icon-inner.is-status{transform:translateY(1px)}.el-step__line{background-color:var(--el-text-color-placeholder);border-color:inherit;position:absolute}.el-step__line-inner{border:1px solid;border-color:inherit;box-sizing:border-box;display:block;height:0;transition:.15s ease-out;width:0}.el-step__main{text-align:left;white-space:normal}.el-step__title{font-size:16px;line-height:38px}.el-step__title.is-process{color:var(--el-text-color-primary);font-weight:700}.el-step__title.is-wait{color:var(--el-text-color-placeholder)}.el-step__title.is-success{color:var(--el-color-success)}.el-step__title.is-error{color:var(--el-color-danger)}.el-step__title.is-finish{color:var(--el-color-primary)}.el-step__description{font-size:12px;font-weight:400;line-height:20px;margin-top:-5px;padding-right:10%}.el-step__description.is-process{color:var(--el-text-color-primary)}.el-step__description.is-wait{color:var(--el-text-color-placeholder)}.el-step__description.is-success{color:var(--el-color-success)}.el-step__description.is-error{color:var(--el-color-danger)}.el-step__description.is-finish{color:var(--el-color-primary)}.el-step.is-horizontal{display:inline-block}.el-step.is-horizontal .el-step__line{height:2px;left:0;right:0;top:11px}.el-step.is-vertical{display:flex}.el-step.is-vertical .el-step__head{flex-grow:0;width:24px}.el-step.is-vertical .el-step__main{flex-grow:1;padding-left:10px}.el-step.is-vertical .el-step__title{line-height:24px;padding-bottom:8px}.el-step.is-vertical .el-step__line{bottom:0;left:11px;top:0;width:2px}.el-step.is-vertical .el-step__icon.is-icon{width:24px}.el-step.is-center .el-step__head,.el-step.is-center .el-step__main{text-align:center}.el-step.is-center .el-step__description{padding-left:20%;padding-right:20%}.el-step.is-center .el-step__line{left:50%;right:-50%}.el-step.is-simple{align-items:center;display:flex}.el-step.is-simple .el-step__head{font-size:0;padding-right:10px;width:auto}.el-step.is-simple .el-step__icon{background:transparent;font-size:12px;height:16px;width:16px}.el-step.is-simple .el-step__icon-inner[class*=el-icon]:not(.is-status){font-size:18px}.el-step.is-simple .el-step__icon-inner.is-status{transform:scale(.8) translateY(1px)}.el-step.is-simple .el-step__main{align-items:stretch;display:flex;flex-grow:1;position:relative}.el-step.is-simple .el-step__title{font-size:16px;line-height:20px}.el-step.is-simple:not(:last-of-type) .el-step__title{max-width:50%;overflow-wrap:break-word}.el-step.is-simple .el-step__arrow{align-items:center;display:flex;flex-grow:1;justify-content:center}.el-step.is-simple .el-step__arrow:after,.el-step.is-simple .el-step__arrow:before{background:var(--el-text-color-placeholder);content:"";display:inline-block;height:15px;position:absolute;width:1px}.el-step.is-simple .el-step__arrow:before{transform:rotate(-45deg) translateY(-4px);transform-origin:0 0}.el-step.is-simple .el-step__arrow:after{transform:rotate(45deg) translateY(4px);transform-origin:100% 100%}.el-step.is-simple:last-of-type .el-step__arrow{display:none}.el-steps{display:flex}.el-steps--simple{background:var(--el-fill-color-light);border-radius:4px;padding:13px 8%}.el-steps--horizontal{white-space:nowrap}.el-steps--vertical{flex-flow:column;height:100%}.el-switch{--el-switch-on-color:var(--el-color-primary);--el-switch-off-color:var(--el-border-color);align-items:center;display:inline-flex;font-size:14px;height:32px;line-height:20px;position:relative;vertical-align:middle}.el-switch.is-disabled .el-switch__core,.el-switch.is-disabled .el-switch__label{cursor:not-allowed}.el-switch__label{color:var(--el-text-color-primary);cursor:pointer;display:inline-block;font-size:14px;font-weight:500;height:20px;transition:var(--el-transition-duration-fast);vertical-align:middle}.el-switch__label.is-active{color:var(--el-color-primary)}.el-switch__label--left{margin-right:10px}.el-switch__label--right{margin-left:10px}.el-switch__label *{display:inline-block;font-size:14px;line-height:1}.el-switch__label .el-icon{height:inherit}.el-switch__label .el-icon svg{vertical-align:middle}.el-switch__input{height:0;margin:0;opacity:0;position:absolute;width:0}.el-switch__input:focus-visible~.el-switch__core{outline:2px solid var(--el-switch-on-color);outline-offset:1px}.el-switch__core{align-items:center;background:var(--el-switch-off-color);border:1px solid var(--el-switch-border-color,var(--el-switch-off-color));border-radius:10px;box-sizing:border-box;cursor:pointer;display:inline-flex;height:20px;min-width:40px;outline:none;position:relative;transition:border-color var(--el-transition-duration),background-color var(--el-transition-duration)}.el-switch__core .el-switch__inner{align-items:center;display:flex;height:16px;justify-content:center;overflow:hidden;padding:0 4px 0 18px;transition:all var(--el-transition-duration);width:100%}.el-switch__core .el-switch__inner .is-icon,.el-switch__core .el-switch__inner .is-text{color:var(--el-color-white);font-size:12px;overflow:hidden;text-overflow:ellipsis;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}.el-switch__core .el-switch__action{align-items:center;background-color:var(--el-color-white);border-radius:var(--el-border-radius-circle);color:var(--el-switch-off-color);display:flex;height:16px;justify-content:center;left:1px;position:absolute;transition:all var(--el-transition-duration);width:16px}.el-switch.is-checked .el-switch__core{background-color:var(--el-switch-on-color);border-color:var(--el-switch-border-color,var(--el-switch-on-color))}.el-switch.is-checked .el-switch__core .el-switch__action{color:var(--el-switch-on-color);left:calc(100% - 17px)}.el-switch.is-checked .el-switch__core .el-switch__inner{padding:0 18px 0 4px}.el-switch.is-disabled{opacity:.6}.el-switch--wide .el-switch__label.el-switch__label--left span{left:10px}.el-switch--wide .el-switch__label.el-switch__label--right span{right:10px}.el-switch .label-fade-enter-from,.el-switch .label-fade-leave-active{opacity:0}.el-switch--large{font-size:14px;height:40px;line-height:24px}.el-switch--large .el-switch__label{font-size:14px;height:24px}.el-switch--large .el-switch__label *{font-size:14px}.el-switch--large .el-switch__core{border-radius:12px;height:24px;min-width:50px}.el-switch--large .el-switch__core .el-switch__inner{height:20px;padding:0 6px 0 22px}.el-switch--large .el-switch__core .el-switch__action{height:20px;width:20px}.el-switch--large.is-checked .el-switch__core .el-switch__action{left:calc(100% - 21px)}.el-switch--large.is-checked .el-switch__core .el-switch__inner{padding:0 22px 0 6px}.el-switch--small{font-size:12px;height:24px;line-height:16px}.el-switch--small .el-switch__label{font-size:12px;height:16px}.el-switch--small .el-switch__label *{font-size:12px}.el-switch--small .el-switch__core{border-radius:8px;height:16px;min-width:30px}.el-switch--small .el-switch__core .el-switch__inner{height:12px;padding:0 2px 0 14px}.el-switch--small .el-switch__core .el-switch__action{height:12px;width:12px}.el-switch--small.is-checked .el-switch__core .el-switch__action{left:calc(100% - 13px)}.el-switch--small.is-checked .el-switch__core .el-switch__inner{padding:0 14px 0 2px}.el-table-column--selection .cell{padding-left:14px;padding-right:14px}.el-table-filter{background-color:#fff;border:1px solid var(--el-border-color-lighter);border-radius:2px;box-shadow:var(--el-box-shadow-light);box-sizing:border-box}.el-table-filter__list{list-style:none;margin:0;min-width:100px;padding:5px 0}.el-table-filter__list-item{cursor:pointer;font-size:var(--el-font-size-base);line-height:36px;padding:0 10px}.el-table-filter__list-item:hover{background-color:var(--el-color-primary-light-9);color:var(--el-color-primary)}.el-table-filter__list-item.is-active{background-color:var(--el-color-primary);color:#fff}.el-table-filter__content{min-width:100px}.el-table-filter__bottom{border-top:1px solid var(--el-border-color-lighter);padding:8px}.el-table-filter__bottom button{background:transparent;border:none;color:var(--el-text-color-regular);cursor:pointer;font-size:var(--el-font-size-small);padding:0 3px}.el-table-filter__bottom button:hover{color:var(--el-color-primary)}.el-table-filter__bottom button:focus{outline:none}.el-table-filter__bottom button.is-disabled{color:var(--el-disabled-text-color);cursor:not-allowed}.el-table-filter__wrap{max-height:280px}.el-table-filter__checkbox-group{padding:10px}.el-table-filter__checkbox-group label.el-checkbox{align-items:center;display:flex;height:unset;margin-bottom:12px;margin-left:5px;margin-right:5px}.el-table-filter__checkbox-group .el-checkbox:last-child{margin-bottom:0}.el-table{--el-table-border-color:var(--el-border-color-lighter);--el-table-border:1px solid var(--el-table-border-color);--el-table-text-color:var(--el-text-color-regular);--el-table-header-text-color:var(--el-text-color-secondary);--el-table-row-hover-bg-color:var(--el-fill-color-light);--el-table-current-row-bg-color:var(--el-color-primary-light-9);--el-table-header-bg-color:var(--el-bg-color);--el-table-fixed-box-shadow:var(--el-box-shadow-light);--el-table-bg-color:var(--el-fill-color-blank);--el-table-tr-bg-color:var(--el-bg-color);--el-table-expanded-cell-bg-color:var(--el-fill-color-blank);--el-table-fixed-left-column:inset 10px 0 10px -10px rgba(0,0,0,.15);--el-table-fixed-right-column:inset -10px 0 10px -10px rgba(0,0,0,.15);--el-table-index:var(--el-index-normal);background-color:var(--el-table-bg-color);box-sizing:border-box;color:var(--el-table-text-color);font-size:var(--el-font-size-base);height:-moz-fit-content;height:fit-content;max-width:100%;overflow:hidden;position:relative;width:100%}.el-table__inner-wrapper{display:flex;flex-direction:column;height:100%;position:relative}.el-table__inner-wrapper:before{bottom:0;height:1px;left:0}.el-table tbody:focus-visible{outline:none}.el-table.has-footer.el-table--fluid-height tr:last-child td.el-table__cell,.el-table.has-footer.el-table--scrollable-y tr:last-child td.el-table__cell{border-bottom-color:transparent}.el-table__empty-block{align-items:center;display:flex;justify-content:center;left:0;min-height:60px;position:sticky;text-align:center;width:100%}.el-table__empty-text{color:var(--el-text-color-secondary);line-height:60px;width:50%}.el-table__expand-column .cell{padding:0;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none}.el-table__expand-icon{color:var(--el-text-color-regular);cursor:pointer;font-size:12px;height:20px;position:relative;transition:transform var(--el-transition-duration-fast) ease-in-out}.el-table__expand-icon--expanded{transform:rotate(90deg)}.el-table__expand-icon>.el-icon{font-size:12px}.el-table__expanded-cell{background-color:var(--el-table-expanded-cell-bg-color)}.el-table__expanded-cell[class*=cell]{padding:20px 50px}.el-table__expanded-cell:hover{background-color:transparent!important}.el-table__placeholder{display:inline-block;width:20px}.el-table__append-wrapper{overflow:hidden}.el-table--fit{border-bottom:0;border-right:0}.el-table--fit .el-table__cell.gutter{border-right-width:1px}.el-table--fit .el-table__inner-wrapper:before{width:100%}.el-table thead{color:var(--el-table-header-text-color)}.el-table thead th{font-weight:600}.el-table thead.is-group th.el-table__cell{background:var(--el-fill-color-light)}.el-table .el-table__cell{box-sizing:border-box;min-width:0;padding:8px 0;position:relative;text-align:left;text-overflow:ellipsis;vertical-align:middle;z-index:var(--el-table-index)}.el-table .el-table__cell.is-center{text-align:center}.el-table .el-table__cell.is-right{text-align:right}.el-table .el-table__cell.gutter{border-bottom-width:0;border-right-width:0;padding:0;width:15px}.el-table .el-table__cell.is-hidden>*{visibility:hidden}.el-table .cell{box-sizing:border-box;line-height:23px;overflow:hidden;overflow-wrap:break-word;padding:0 12px;text-overflow:ellipsis;white-space:normal}.el-table .cell.el-tooltip{min-width:50px;white-space:nowrap}.el-table--large{font-size:var(--el-font-size-base)}.el-table--large .el-table__cell{padding:12px 0}.el-table--large .cell{padding:0 16px}.el-table--default{font-size:var(--el-font-size-base)}.el-table--default .el-table__cell{padding:8px 0}.el-table--default .cell{padding:0 12px}.el-table--small{font-size:var(--el-font-size-extra-small)}.el-table--small .el-table__cell{padding:4px 0}.el-table--small .cell{padding:0 8px}.el-table tr{background-color:var(--el-table-tr-bg-color)}.el-table tr input[type=checkbox]{margin:0}.el-table td.el-table__cell,.el-table th.el-table__cell.is-leaf{border-bottom:var(--el-table-border)}.el-table th.el-table__cell.is-sortable{cursor:pointer}.el-table th.el-table__cell{background-color:var(--el-table-header-bg-color)}.el-table th.el-table__cell>.cell.highlight{color:var(--el-color-primary)}.el-table th.el-table__cell.required>div:before{background:#ff4d51;border-radius:50%;content:"";display:inline-block;height:8px;margin-right:5px;vertical-align:middle;width:8px}.el-table td.el-table__cell div{box-sizing:border-box}.el-table td.el-table__cell.gutter{width:0}.el-table--border .el-table__inner-wrapper:after,.el-table--border:after,.el-table--border:before,.el-table__inner-wrapper:before{background-color:var(--el-table-border-color);content:"";position:absolute;z-index:calc(var(--el-table-index) + 2)}.el-table--border .el-table__inner-wrapper:after{height:1px;left:0;top:0;width:100%;z-index:calc(var(--el-table-index) + 2)}.el-table--border:before{height:100%;left:0;top:-1px;width:1px}.el-table--border:after{height:100%;right:0;top:-1px;width:1px}.el-table--border .el-table__inner-wrapper{border-bottom:none;border-right:none}.el-table--border .el-table__footer-wrapper{flex-shrink:0;position:relative}.el-table--border .el-table__cell{border-right:var(--el-table-border)}.el-table--border th.el-table__cell.gutter:last-of-type{border-bottom:var(--el-table-border);border-bottom-width:1px}.el-table--border th.el-table__cell{border-bottom:var(--el-table-border)}.el-table--hidden{visibility:hidden}.el-table__body-wrapper,.el-table__footer-wrapper,.el-table__header-wrapper{width:100%}.el-table__body-wrapper tr td.el-table-fixed-column--left,.el-table__body-wrapper tr td.el-table-fixed-column--right,.el-table__body-wrapper tr th.el-table-fixed-column--left,.el-table__body-wrapper tr th.el-table-fixed-column--right,.el-table__footer-wrapper tr td.el-table-fixed-column--left,.el-table__footer-wrapper tr td.el-table-fixed-column--right,.el-table__footer-wrapper tr th.el-table-fixed-column--left,.el-table__footer-wrapper tr th.el-table-fixed-column--right,.el-table__header-wrapper tr td.el-table-fixed-column--left,.el-table__header-wrapper tr td.el-table-fixed-column--right,.el-table__header-wrapper tr th.el-table-fixed-column--left,.el-table__header-wrapper tr th.el-table-fixed-column--right{background:inherit;position:sticky!important;z-index:calc(var(--el-table-index) + 1)}.el-table__body-wrapper tr td.el-table-fixed-column--left.is-first-column:before,.el-table__body-wrapper tr td.el-table-fixed-column--left.is-last-column:before,.el-table__body-wrapper tr td.el-table-fixed-column--right.is-first-column:before,.el-table__body-wrapper tr td.el-table-fixed-column--right.is-last-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--left.is-first-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--left.is-last-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--right.is-first-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--right.is-last-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--left.is-first-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--left.is-last-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--right.is-first-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--right.is-last-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--left.is-first-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--left.is-last-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--right.is-first-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--right.is-last-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--left.is-first-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--left.is-last-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--right.is-first-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--right.is-last-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--left.is-first-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--left.is-last-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--right.is-first-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--right.is-last-column:before{bottom:-1px;box-shadow:none;content:"";overflow-x:hidden;overflow-y:hidden;pointer-events:none;position:absolute;top:0;touch-action:none;width:10px}.el-table__body-wrapper tr td.el-table-fixed-column--left.is-first-column:before,.el-table__body-wrapper tr td.el-table-fixed-column--right.is-first-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--left.is-first-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--right.is-first-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--left.is-first-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--right.is-first-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--left.is-first-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--right.is-first-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--left.is-first-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--right.is-first-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--left.is-first-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--right.is-first-column:before{left:-10px}.el-table__body-wrapper tr td.el-table-fixed-column--left.is-last-column:before,.el-table__body-wrapper tr td.el-table-fixed-column--right.is-last-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--left.is-last-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--right.is-last-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--left.is-last-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--right.is-last-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--left.is-last-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--right.is-last-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--left.is-last-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--right.is-last-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--left.is-last-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--right.is-last-column:before{box-shadow:none;right:-10px}.el-table__body-wrapper tr td.el-table__fixed-right-patch,.el-table__body-wrapper tr th.el-table__fixed-right-patch,.el-table__footer-wrapper tr td.el-table__fixed-right-patch,.el-table__footer-wrapper tr th.el-table__fixed-right-patch,.el-table__header-wrapper tr td.el-table__fixed-right-patch,.el-table__header-wrapper tr th.el-table__fixed-right-patch{background:#fff;position:sticky!important;right:0;z-index:calc(var(--el-table-index) + 1)}.el-table__header-wrapper{flex-shrink:0}.el-table__header-wrapper tr th.el-table-fixed-column--left,.el-table__header-wrapper tr th.el-table-fixed-column--right{background-color:var(--el-table-header-bg-color)}.el-table__body,.el-table__footer,.el-table__header{border-collapse:separate;table-layout:fixed}.el-table__header-wrapper{overflow:hidden}.el-table__header-wrapper tbody td.el-table__cell{background-color:var(--el-table-row-hover-bg-color);color:var(--el-table-text-color)}.el-table__footer-wrapper{flex-shrink:0;overflow:hidden}.el-table__footer-wrapper tfoot td.el-table__cell{background-color:var(--el-table-row-hover-bg-color);color:var(--el-table-text-color)}.el-table__body-wrapper .el-table-column--selection>.cell,.el-table__header-wrapper .el-table-column--selection>.cell{align-items:center;display:inline-flex;height:23px}.el-table__body-wrapper .el-table-column--selection .el-checkbox,.el-table__header-wrapper .el-table-column--selection .el-checkbox{height:unset}.el-table.is-scrolling-left .el-table-fixed-column--right.is-first-column:before{box-shadow:var(--el-table-fixed-right-column)}.el-table.is-scrolling-left.el-table--border .el-table-fixed-column--left.is-last-column.el-table__cell{border-right:var(--el-table-border)}.el-table.is-scrolling-left th.el-table-fixed-column--left{background-color:var(--el-table-header-bg-color)}.el-table.is-scrolling-right .el-table-fixed-column--left.is-last-column:before{box-shadow:var(--el-table-fixed-left-column)}.el-table.is-scrolling-right .el-table-fixed-column--left.is-last-column.el-table__cell{border-right:none}.el-table.is-scrolling-right th.el-table-fixed-column--right{background-color:var(--el-table-header-bg-color)}.el-table.is-scrolling-middle .el-table-fixed-column--left.is-last-column.el-table__cell{border-right:none}.el-table.is-scrolling-middle .el-table-fixed-column--right.is-first-column:before{box-shadow:var(--el-table-fixed-right-column)}.el-table.is-scrolling-middle .el-table-fixed-column--left.is-last-column:before{box-shadow:var(--el-table-fixed-left-column)}.el-table.is-scrolling-none .el-table-fixed-column--left.is-first-column:before,.el-table.is-scrolling-none .el-table-fixed-column--left.is-last-column:before,.el-table.is-scrolling-none .el-table-fixed-column--right.is-first-column:before,.el-table.is-scrolling-none .el-table-fixed-column--right.is-last-column:before{box-shadow:none}.el-table.is-scrolling-none th.el-table-fixed-column--left,.el-table.is-scrolling-none th.el-table-fixed-column--right{background-color:var(--el-table-header-bg-color)}.el-table__body-wrapper{flex:1;overflow:hidden;position:relative}.el-table__body-wrapper .el-scrollbar__bar{z-index:calc(var(--el-table-index) + 2)}.el-table .caret-wrapper{align-items:center;cursor:pointer;display:inline-flex;flex-direction:column;height:14px;overflow:initial;position:relative;vertical-align:middle;width:24px}.el-table .sort-caret{border:5px solid transparent;height:0;left:7px;position:absolute;width:0}.el-table .sort-caret.ascending{border-bottom-color:var(--el-text-color-placeholder);top:-5px}.el-table .sort-caret.descending{border-top-color:var(--el-text-color-placeholder);bottom:-3px}.el-table .ascending .sort-caret.ascending{border-bottom-color:var(--el-color-primary)}.el-table .descending .sort-caret.descending{border-top-color:var(--el-color-primary)}.el-table .hidden-columns{position:absolute;visibility:hidden;z-index:-1}.el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell{background:var(--el-fill-color-lighter)}.el-table--striped .el-table__body tr.el-table__row--striped.current-row td.el-table__cell{background-color:var(--el-table-current-row-bg-color)}.el-table__body tr.hover-row.current-row>td.el-table__cell,.el-table__body tr.hover-row.el-table__row--striped.current-row>td.el-table__cell,.el-table__body tr.hover-row.el-table__row--striped>td.el-table__cell,.el-table__body tr.hover-row>td.el-table__cell,.el-table__body tr>td.hover-cell{background-color:var(--el-table-row-hover-bg-color)}.el-table__body tr.current-row>td.el-table__cell{background-color:var(--el-table-current-row-bg-color)}.el-table.el-table--scrollable-y .el-table__body-header{position:sticky;top:0;z-index:calc(var(--el-table-index) + 2)}.el-table.el-table--scrollable-y .el-table__body-footer{bottom:0;position:sticky;z-index:calc(var(--el-table-index) + 2)}.el-table__column-resize-proxy{border-left:var(--el-table-border);bottom:0;left:200px;position:absolute;top:0;width:0;z-index:calc(var(--el-table-index) + 9)}.el-table__column-filter-trigger{cursor:pointer;display:inline-block}.el-table__column-filter-trigger i{color:var(--el-color-info);font-size:14px;vertical-align:middle}.el-table__border-left-patch{height:100%;top:0;width:1px}.el-table__border-bottom-patch,.el-table__border-left-patch{background-color:var(--el-table-border-color);left:0;position:absolute;z-index:calc(var(--el-table-index) + 2)}.el-table__border-bottom-patch{height:1px}.el-table__border-right-patch{background-color:var(--el-table-border-color);height:100%;position:absolute;top:0;width:1px;z-index:calc(var(--el-table-index) + 2)}.el-table--enable-row-transition .el-table__body td.el-table__cell{transition:background-color .25s ease}.el-table--enable-row-hover .el-table__body tr:hover>td.el-table__cell{background-color:var(--el-table-row-hover-bg-color)}.el-table [class*=el-table__row--level] .el-table__expand-icon{display:inline-block;height:12px;line-height:12px;margin-right:8px;text-align:center;width:12px}.el-table .el-table.el-table--border .el-table__cell{border-right:var(--el-table-border)}.el-table:not(.el-table--border) .el-table__cell{border-right:none}.el-table:not(.el-table--border)>.el-table__inner-wrapper:after{content:none}.el-table-v2{--el-table-border-color:var(--el-border-color-lighter);--el-table-border:1px solid var(--el-table-border-color);--el-table-text-color:var(--el-text-color-regular);--el-table-header-text-color:var(--el-text-color-secondary);--el-table-row-hover-bg-color:var(--el-fill-color-light);--el-table-current-row-bg-color:var(--el-color-primary-light-9);--el-table-header-bg-color:var(--el-bg-color);--el-table-fixed-box-shadow:var(--el-box-shadow-light);--el-table-bg-color:var(--el-fill-color-blank);--el-table-tr-bg-color:var(--el-bg-color);--el-table-expanded-cell-bg-color:var(--el-fill-color-blank);--el-table-fixed-left-column:inset 10px 0 10px -10px rgba(0,0,0,.15);--el-table-fixed-right-column:inset -10px 0 10px -10px rgba(0,0,0,.15);--el-table-index:var(--el-index-normal);font-size:var(--el-font-size-base)}.el-table-v2 *{box-sizing:border-box}.el-table-v2__root{position:relative}.el-table-v2__root:hover .el-table-v2__main .el-virtual-scrollbar{opacity:1}.el-table-v2__main{background-color:var(--el-bg-color);display:flex;flex-direction:column-reverse;left:0;overflow:hidden;position:absolute;top:0}.el-table-v2__main .el-vl__horizontal,.el-table-v2__main .el-vl__vertical{z-index:2}.el-table-v2__left{background-color:var(--el-bg-color);box-shadow:2px 0 4px #0000000f;display:flex;flex-direction:column-reverse;left:0;overflow:hidden;position:absolute;top:0}.el-table-v2__left .el-virtual-scrollbar{opacity:0}.el-table-v2__left .el-vl__horizontal,.el-table-v2__left .el-vl__vertical{z-index:-1}.el-table-v2__right{background-color:var(--el-bg-color);box-shadow:-2px 0 4px #0000000f;display:flex;flex-direction:column-reverse;overflow:hidden;position:absolute;right:0;top:0}.el-table-v2__right .el-virtual-scrollbar{opacity:0}.el-table-v2__right .el-vl__horizontal,.el-table-v2__right .el-vl__vertical{z-index:-1}.el-table-v2__header-row,.el-table-v2__row{padding-inline-end:var(--el-table-scrollbar-size)}.el-table-v2__header-wrapper{overflow:hidden}.el-table-v2__header{overflow:hidden;position:relative}.el-table-v2__header .el-checkbox{z-index:0}.el-table-v2__footer{bottom:0;overflow:hidden;right:0}.el-table-v2__empty,.el-table-v2__footer,.el-table-v2__overlay{left:0;position:absolute}.el-table-v2__overlay{bottom:0;right:0;top:0;z-index:9999}.el-table-v2__header-row{border-bottom:var(--el-table-border);display:flex}.el-table-v2__header-cell{align-items:center;background-color:var(--el-table-header-bg-color);color:var(--el-table-header-text-color);display:flex;font-weight:700;height:100%;overflow:hidden;padding:0 8px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.el-table-v2__header-cell.is-align-center{justify-content:center;text-align:center}.el-table-v2__header-cell.is-align-right{justify-content:flex-end;text-align:right}.el-table-v2__header-cell.is-sortable{cursor:pointer}.el-table-v2__header-cell:hover .el-icon{display:block}.el-table-v2__sort-icon{display:none;opacity:.6;transition:opacity,display var(--el-transition-duration)}.el-table-v2__sort-icon.is-sorting{display:block;opacity:1}.el-table-v2__row{align-items:center;border-bottom:var(--el-table-border);display:flex;transition:background-color var(--el-transition-duration)}.el-table-v2__row.is-hovered,.el-table-v2__row:hover{background-color:var(--el-table-row-hover-bg-color)}.el-table-v2__row-cell{align-items:center;display:flex;height:100%;overflow:hidden;padding:0 8px}.el-table-v2__row-cell.is-align-center{justify-content:center;text-align:center}.el-table-v2__row-cell.is-align-right{justify-content:flex-end;text-align:right}.el-table-v2__expand-icon{cursor:pointer;margin:0 4px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.el-table-v2__expand-icon svg{transition:transform var(--el-transition-duration)}.el-table-v2__expand-icon.is-expanded svg{transform:rotate(90deg)}.el-table-v2:not(.is-dynamic) .el-table-v2__cell-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.el-table-v2.is-dynamic .el-table-v2__row{align-items:stretch;overflow:hidden}.el-table-v2.is-dynamic .el-table-v2__row .el-table-v2__row-cell{overflow-wrap:break-word}.el-tabs{--el-tabs-header-height:40px;display:flex}.el-tabs__header{align-items:center;display:flex;justify-content:space-between;margin:0 0 15px;padding:0;position:relative}.el-tabs__header-vertical{flex-direction:column}.el-tabs__active-bar{background-color:var(--el-color-primary);bottom:0;height:2px;left:0;list-style:none;position:absolute;transition:width var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier),transform var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);z-index:1}.el-tabs__new-tab{align-items:center;border:1px solid var(--el-border-color);border-radius:3px;color:var(--el-text-color-primary);cursor:pointer;display:flex;font-size:12px;height:20px;justify-content:center;line-height:20px;margin:10px 0 10px 10px;text-align:center;transition:all .15s;width:20px}.el-tabs__new-tab .is-icon-plus{height:inherit;transform:scale(.8);width:inherit}.el-tabs__new-tab .is-icon-plus svg{vertical-align:middle}.el-tabs__new-tab:hover{color:var(--el-color-primary)}.el-tabs__new-tab-vertical{margin-left:0}.el-tabs__nav-wrap{flex:1 auto;margin-bottom:-1px;overflow:hidden;position:relative}.el-tabs__nav-wrap:after{background-color:var(--el-border-color-light);bottom:0;content:"";height:2px;left:0;position:absolute;width:100%;z-index:var(--el-index-normal)}.el-tabs__nav-wrap.is-scrollable{box-sizing:border-box;padding:0 20px}.el-tabs__nav-scroll{overflow:hidden}.el-tabs__nav-next,.el-tabs__nav-prev{color:var(--el-text-color-secondary);cursor:pointer;font-size:12px;line-height:44px;position:absolute;text-align:center;width:20px}.el-tabs__nav-next{right:0}.el-tabs__nav-prev{left:0}.el-tabs__nav{display:flex;float:left;position:relative;transition:transform var(--el-transition-duration);white-space:nowrap;z-index:calc(var(--el-index-normal) + 1)}.el-tabs__nav.is-stretch{display:flex;min-width:100%}.el-tabs__nav.is-stretch>*{flex:1;text-align:center}.el-tabs__item{align-items:center;box-sizing:border-box;color:var(--el-text-color-primary);display:flex;font-size:var(--el-font-size-base);font-weight:500;height:var(--el-tabs-header-height);justify-content:center;list-style:none;padding:0 20px;position:relative}.el-tabs__item:focus,.el-tabs__item:focus:active{outline:none}.el-tabs__item:focus-visible{border-radius:3px;box-shadow:0 0 2px 2px var(--el-color-primary) inset}.el-tabs__item .is-icon-close{border-radius:50%;margin-left:5px;text-align:center;transition:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier)}.el-tabs__item .is-icon-close:before{display:inline-block;transform:scale(.9)}.el-tabs__item .is-icon-close:hover{background-color:var(--el-text-color-placeholder);color:#fff}.el-tabs__item.is-active,.el-tabs__item:hover{color:var(--el-color-primary)}.el-tabs__item:hover{cursor:pointer}.el-tabs__item.is-disabled{color:var(--el-disabled-text-color);cursor:not-allowed}.el-tabs__content{flex-grow:1;overflow:hidden;position:relative}.el-tabs--bottom>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top>.el-tabs__header .el-tabs__item:nth-child(2){padding-left:0}.el-tabs--bottom>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top>.el-tabs__header .el-tabs__item:last-child{padding-right:0}.el-tabs--bottom.el-tabs--border-card>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--bottom.el-tabs--card>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top.el-tabs--border-card>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item:nth-child(2){padding-left:20px}.el-tabs--bottom.el-tabs--border-card>.el-tabs__header .el-tabs__item:last-child,.el-tabs--bottom.el-tabs--card>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top.el-tabs--border-card>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item:last-child{padding-right:20px}.el-tabs--card>.el-tabs__header{border-bottom:1px solid var(--el-border-color-light);height:var(--el-tabs-header-height)}.el-tabs--card>.el-tabs__header .el-tabs__nav-wrap:after{content:none}.el-tabs--card>.el-tabs__header .el-tabs__nav{border:1px solid var(--el-border-color-light);border-bottom:none;border-radius:4px 4px 0 0;box-sizing:border-box}.el-tabs--card>.el-tabs__header .el-tabs__active-bar{display:none}.el-tabs--card>.el-tabs__header .el-tabs__item .is-icon-close{font-size:12px;height:14px;overflow:hidden;position:relative;right:-2px;transform-origin:100% 50%;width:0}.el-tabs--card>.el-tabs__header .el-tabs__item{border-bottom:1px solid transparent;border-left:1px solid var(--el-border-color-light);transition:color var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier),padding var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier)}.el-tabs--card>.el-tabs__header .el-tabs__item:first-child{border-left:none}.el-tabs--card>.el-tabs__header .el-tabs__item.is-closable:hover{padding-left:13px;padding-right:13px}.el-tabs--card>.el-tabs__header .el-tabs__item.is-closable:hover .is-icon-close{width:14px}.el-tabs--card>.el-tabs__header .el-tabs__item.is-active{border-bottom-color:var(--el-bg-color)}.el-tabs--card>.el-tabs__header .el-tabs__item.is-active.is-closable{padding-left:20px;padding-right:20px}.el-tabs--card>.el-tabs__header .el-tabs__item.is-active.is-closable .is-icon-close{width:14px}.el-tabs--border-card{background:var(--el-bg-color-overlay);border:1px solid var(--el-border-color)}.el-tabs--border-card>.el-tabs__content{padding:15px}.el-tabs--border-card>.el-tabs__header{background-color:var(--el-fill-color-light);border-bottom:1px solid var(--el-border-color-light);margin:0}.el-tabs--border-card>.el-tabs__header .el-tabs__nav-wrap:after{content:none}.el-tabs--border-card>.el-tabs__header .el-tabs__item{border:1px solid transparent;color:var(--el-text-color-secondary);margin-top:-1px;transition:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier)}.el-tabs--border-card>.el-tabs__header .el-tabs__item+.el-tabs__item,.el-tabs--border-card>.el-tabs__header .el-tabs__item:first-child{margin-left:-1px}.el-tabs--border-card>.el-tabs__header .el-tabs__item.is-active{background-color:var(--el-bg-color-overlay);border-left-color:var(--el-border-color);border-right-color:var(--el-border-color);color:var(--el-color-primary)}.el-tabs--border-card>.el-tabs__header .el-tabs__item:not(.is-disabled):hover{color:var(--el-color-primary)}.el-tabs--border-card>.el-tabs__header .el-tabs__item.is-disabled{color:var(--el-disabled-text-color)}.el-tabs--border-card>.el-tabs__header .is-scrollable .el-tabs__item:first-child{margin-left:0}.el-tabs--bottom{flex-direction:column}.el-tabs--bottom .el-tabs__header.is-bottom{margin-bottom:0;margin-top:10px}.el-tabs--bottom.el-tabs--border-card .el-tabs__header.is-bottom{border-bottom:0;border-top:1px solid var(--el-border-color)}.el-tabs--bottom.el-tabs--border-card .el-tabs__nav-wrap.is-bottom{margin-bottom:0;margin-top:-1px}.el-tabs--bottom.el-tabs--border-card .el-tabs__item.is-bottom:not(.is-active){border:1px solid transparent}.el-tabs--bottom.el-tabs--border-card .el-tabs__item.is-bottom{margin:0 -1px -1px}.el-tabs--left,.el-tabs--right{overflow:hidden}.el-tabs--left .el-tabs__header.is-left,.el-tabs--left .el-tabs__header.is-right,.el-tabs--left .el-tabs__nav-scroll,.el-tabs--left .el-tabs__nav-wrap.is-left,.el-tabs--left .el-tabs__nav-wrap.is-right,.el-tabs--right .el-tabs__header.is-left,.el-tabs--right .el-tabs__header.is-right,.el-tabs--right .el-tabs__nav-scroll,.el-tabs--right .el-tabs__nav-wrap.is-left,.el-tabs--right .el-tabs__nav-wrap.is-right{height:100%}.el-tabs--left .el-tabs__active-bar.is-left,.el-tabs--left .el-tabs__active-bar.is-right,.el-tabs--right .el-tabs__active-bar.is-left,.el-tabs--right .el-tabs__active-bar.is-right{bottom:auto;height:auto;top:0;width:2px}.el-tabs--left .el-tabs__nav-wrap.is-left,.el-tabs--left .el-tabs__nav-wrap.is-right,.el-tabs--right .el-tabs__nav-wrap.is-left,.el-tabs--right .el-tabs__nav-wrap.is-right{margin-bottom:0}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-next,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev{cursor:pointer;height:30px;line-height:30px;text-align:center;width:100%}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-next i,.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev i,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-next i,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev i,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-next i,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev i,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-next i,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev i{transform:rotate(90deg)}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev{left:auto;top:0}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-next{bottom:0;right:auto}.el-tabs--left .el-tabs__nav-wrap.is-left.is-scrollable,.el-tabs--left .el-tabs__nav-wrap.is-right.is-scrollable,.el-tabs--right .el-tabs__nav-wrap.is-left.is-scrollable,.el-tabs--right .el-tabs__nav-wrap.is-right.is-scrollable{padding:30px 0}.el-tabs--left .el-tabs__nav-wrap.is-left:after,.el-tabs--left .el-tabs__nav-wrap.is-right:after,.el-tabs--right .el-tabs__nav-wrap.is-left:after,.el-tabs--right .el-tabs__nav-wrap.is-right:after{bottom:auto;height:100%;top:0;width:2px}.el-tabs--left .el-tabs__nav.is-left,.el-tabs--left .el-tabs__nav.is-right,.el-tabs--right .el-tabs__nav.is-left,.el-tabs--right .el-tabs__nav.is-right{flex-direction:column}.el-tabs--left .el-tabs__item.is-left,.el-tabs--right .el-tabs__item.is-left{justify-content:flex-end}.el-tabs--left .el-tabs__item.is-right,.el-tabs--right .el-tabs__item.is-right{justify-content:flex-start}.el-tabs--left{flex-direction:row-reverse}.el-tabs--left .el-tabs__header.is-left{margin-bottom:0;margin-right:10px}.el-tabs--left .el-tabs__nav-wrap.is-left{margin-right:-1px}.el-tabs--left .el-tabs__active-bar.is-left,.el-tabs--left .el-tabs__nav-wrap.is-left:after{left:auto;right:0}.el-tabs--left .el-tabs__item.is-left{text-align:right}.el-tabs--left.el-tabs--card .el-tabs__active-bar.is-left{display:none}.el-tabs--left.el-tabs--card .el-tabs__item.is-left{border-bottom:none;border-left:none;border-right:1px solid var(--el-border-color-light);border-top:1px solid var(--el-border-color-light);text-align:left}.el-tabs--left.el-tabs--card .el-tabs__item.is-left:first-child{border-right:1px solid var(--el-border-color-light);border-top:none}.el-tabs--left.el-tabs--card .el-tabs__item.is-left.is-active{border:1px solid var(--el-border-color-light);border-bottom:none;border-left:none;border-right:1px solid #fff}.el-tabs--left.el-tabs--card .el-tabs__item.is-left.is-active:first-child{border-top:none}.el-tabs--left.el-tabs--card .el-tabs__item.is-left.is-active:last-child{border-bottom:none}.el-tabs--left.el-tabs--card .el-tabs__nav{border-bottom:1px solid var(--el-border-color-light);border-radius:4px 0 0 4px;border-right:none}.el-tabs--left.el-tabs--card .el-tabs__new-tab{float:none}.el-tabs--left.el-tabs--border-card .el-tabs__header.is-left{border-right:1px solid var(--el-border-color)}.el-tabs--left.el-tabs--border-card .el-tabs__item.is-left{border:1px solid transparent;margin:-1px 0 -1px -1px}.el-tabs--left.el-tabs--border-card .el-tabs__item.is-left.is-active{border-color:rgb(209,219,229) transparent}.el-tabs--right .el-tabs__header.is-right{margin-bottom:0;margin-left:10px}.el-tabs--right .el-tabs__nav-wrap.is-right{margin-left:-1px}.el-tabs--right .el-tabs__nav-wrap.is-right:after{left:0;right:auto}.el-tabs--right .el-tabs__active-bar.is-right{left:0}.el-tabs--right.el-tabs--card .el-tabs__active-bar.is-right{display:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right{border-bottom:none;border-top:1px solid var(--el-border-color-light)}.el-tabs--right.el-tabs--card .el-tabs__item.is-right:first-child{border-left:1px solid var(--el-border-color-light);border-top:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right.is-active{border:1px solid var(--el-border-color-light);border-bottom:none;border-left:1px solid #fff;border-right:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right.is-active:first-child{border-top:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right.is-active:last-child{border-bottom:none}.el-tabs--right.el-tabs--card .el-tabs__nav{border-bottom:1px solid var(--el-border-color-light);border-left:none;border-radius:0 4px 4px 0}.el-tabs--right.el-tabs--border-card .el-tabs__header.is-right{border-left:1px solid var(--el-border-color)}.el-tabs--right.el-tabs--border-card .el-tabs__item.is-right{border:1px solid transparent;margin:-1px -1px -1px 0}.el-tabs--right.el-tabs--border-card .el-tabs__item.is-right.is-active{border-color:rgb(209,219,229) transparent}.el-tabs--top{flex-direction:column-reverse}.slideInLeft-transition,.slideInRight-transition{display:inline-block}.slideInRight-enter{animation:slideInRight-enter var(--el-transition-duration)}.slideInRight-leave{animation:slideInRight-leave var(--el-transition-duration);left:0;position:absolute;right:0}.slideInLeft-enter{animation:slideInLeft-enter var(--el-transition-duration)}.slideInLeft-leave{animation:slideInLeft-leave var(--el-transition-duration);left:0;position:absolute;right:0}@keyframes slideInRight-enter{0%{opacity:0;transform:translate(100%);transform-origin:0 0}to{opacity:1;transform:translate(0);transform-origin:0 0}}@keyframes slideInRight-leave{0%{opacity:1;transform:translate(0);transform-origin:0 0}to{opacity:0;transform:translate(100%);transform-origin:0 0}}@keyframes slideInLeft-enter{0%{opacity:0;transform:translate(-100%);transform-origin:0 0}to{opacity:1;transform:translate(0);transform-origin:0 0}}@keyframes slideInLeft-leave{0%{opacity:1;transform:translate(0);transform-origin:0 0}to{opacity:0;transform:translate(-100%);transform-origin:0 0}}.el-tag{--el-tag-font-size:12px;--el-tag-border-radius:4px;--el-tag-border-radius-rounded:9999px;align-items:center;background-color:var(--el-tag-bg-color);border-color:var(--el-tag-border-color);border-radius:var(--el-tag-border-radius);border-style:solid;border-width:1px;box-sizing:border-box;color:var(--el-tag-text-color);display:inline-flex;font-size:var(--el-tag-font-size);height:24px;justify-content:center;line-height:1;padding:0 9px;vertical-align:middle;white-space:nowrap;--el-icon-size:14px}.el-tag,.el-tag.el-tag--primary{--el-tag-bg-color:var(--el-color-primary-light-9);--el-tag-border-color:var(--el-color-primary-light-8);--el-tag-hover-color:var(--el-color-primary)}.el-tag.el-tag--success{--el-tag-bg-color:var(--el-color-success-light-9);--el-tag-border-color:var(--el-color-success-light-8);--el-tag-hover-color:var(--el-color-success)}.el-tag.el-tag--warning{--el-tag-bg-color:var(--el-color-warning-light-9);--el-tag-border-color:var(--el-color-warning-light-8);--el-tag-hover-color:var(--el-color-warning)}.el-tag.el-tag--danger{--el-tag-bg-color:var(--el-color-danger-light-9);--el-tag-border-color:var(--el-color-danger-light-8);--el-tag-hover-color:var(--el-color-danger)}.el-tag.el-tag--error{--el-tag-bg-color:var(--el-color-error-light-9);--el-tag-border-color:var(--el-color-error-light-8);--el-tag-hover-color:var(--el-color-error)}.el-tag.el-tag--info{--el-tag-bg-color:var(--el-color-info-light-9);--el-tag-border-color:var(--el-color-info-light-8);--el-tag-hover-color:var(--el-color-info)}.el-tag.is-hit{border-color:var(--el-color-primary)}.el-tag.is-round{border-radius:var(--el-tag-border-radius-rounded)}.el-tag .el-tag__close{color:var(--el-tag-text-color);flex-shrink:0}.el-tag .el-tag__close:hover{background-color:var(--el-tag-hover-color);color:var(--el-color-white)}.el-tag.el-tag--primary{--el-tag-text-color:var(--el-color-primary)}.el-tag.el-tag--success{--el-tag-text-color:var(--el-color-success)}.el-tag.el-tag--warning{--el-tag-text-color:var(--el-color-warning)}.el-tag.el-tag--danger{--el-tag-text-color:var(--el-color-danger)}.el-tag.el-tag--error{--el-tag-text-color:var(--el-color-error)}.el-tag.el-tag--info{--el-tag-text-color:var(--el-color-info)}.el-tag .el-icon{border-radius:50%;cursor:pointer;font-size:calc(var(--el-icon-size) - 2px);height:var(--el-icon-size);width:var(--el-icon-size)}.el-tag .el-tag__close{margin-left:6px}.el-tag--dark{--el-tag-text-color:var(--el-color-white)}.el-tag--dark,.el-tag--dark.el-tag--primary{--el-tag-bg-color:var(--el-color-primary);--el-tag-border-color:var(--el-color-primary);--el-tag-hover-color:var(--el-color-primary-light-3)}.el-tag--dark.el-tag--success{--el-tag-bg-color:var(--el-color-success);--el-tag-border-color:var(--el-color-success);--el-tag-hover-color:var(--el-color-success-light-3)}.el-tag--dark.el-tag--warning{--el-tag-bg-color:var(--el-color-warning);--el-tag-border-color:var(--el-color-warning);--el-tag-hover-color:var(--el-color-warning-light-3)}.el-tag--dark.el-tag--danger{--el-tag-bg-color:var(--el-color-danger);--el-tag-border-color:var(--el-color-danger);--el-tag-hover-color:var(--el-color-danger-light-3)}.el-tag--dark.el-tag--error{--el-tag-bg-color:var(--el-color-error);--el-tag-border-color:var(--el-color-error);--el-tag-hover-color:var(--el-color-error-light-3)}.el-tag--dark.el-tag--info{--el-tag-bg-color:var(--el-color-info);--el-tag-border-color:var(--el-color-info);--el-tag-hover-color:var(--el-color-info-light-3)}.el-tag--dark.el-tag--danger,.el-tag--dark.el-tag--error,.el-tag--dark.el-tag--info,.el-tag--dark.el-tag--primary,.el-tag--dark.el-tag--success,.el-tag--dark.el-tag--warning{--el-tag-text-color:var(--el-color-white)}.el-tag--plain,.el-tag--plain.el-tag--primary{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-primary-light-5);--el-tag-hover-color:var(--el-color-primary)}.el-tag--plain.el-tag--success{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-success-light-5);--el-tag-hover-color:var(--el-color-success)}.el-tag--plain.el-tag--warning{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-warning-light-5);--el-tag-hover-color:var(--el-color-warning)}.el-tag--plain.el-tag--danger{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-danger-light-5);--el-tag-hover-color:var(--el-color-danger)}.el-tag--plain.el-tag--error{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-error-light-5);--el-tag-hover-color:var(--el-color-error)}.el-tag--plain.el-tag--info{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-info-light-5);--el-tag-hover-color:var(--el-color-info)}.el-tag.is-closable{padding-right:5px}.el-tag--large{height:32px;padding:0 11px;--el-icon-size:16px}.el-tag--large .el-tag__close{margin-left:8px}.el-tag--large.is-closable{padding-right:7px}.el-tag--small{height:20px;padding:0 7px;--el-icon-size:12px}.el-tag--small .el-tag__close{margin-left:4px}.el-tag--small.is-closable{padding-right:3px}.el-tag--small .el-icon-close{transform:scale(.8)}.el-tag.el-tag--primary.is-hit{border-color:var(--el-color-primary)}.el-tag.el-tag--success.is-hit{border-color:var(--el-color-success)}.el-tag.el-tag--warning.is-hit{border-color:var(--el-color-warning)}.el-tag.el-tag--danger.is-hit{border-color:var(--el-color-danger)}.el-tag.el-tag--error.is-hit{border-color:var(--el-color-error)}.el-tag.el-tag--info.is-hit{border-color:var(--el-color-info)}.el-text{--el-text-font-size:var(--el-font-size-base);--el-text-color:var(--el-text-color-regular);align-self:center;color:var(--el-text-color);font-size:var(--el-text-font-size);margin:0;overflow-wrap:break-word;padding:0}.el-text.is-truncated{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.el-text.is-line-clamp{display:-webkit-inline-box;-webkit-box-orient:vertical;overflow:hidden}.el-text--large{--el-text-font-size:var(--el-font-size-medium)}.el-text--default{--el-text-font-size:var(--el-font-size-base)}.el-text--small{--el-text-font-size:var(--el-font-size-extra-small)}.el-text.el-text--primary{--el-text-color:var(--el-color-primary)}.el-text.el-text--success{--el-text-color:var(--el-color-success)}.el-text.el-text--warning{--el-text-color:var(--el-color-warning)}.el-text.el-text--danger{--el-text-color:var(--el-color-danger)}.el-text.el-text--error{--el-text-color:var(--el-color-error)}.el-text.el-text--info{--el-text-color:var(--el-color-info)}.el-text>.el-icon{vertical-align:-2px}.time-select{margin:5px 0;min-width:0}.time-select .el-picker-panel__content{margin:0;max-height:200px}.time-select-item{font-size:14px;line-height:20px;padding:8px 10px}.time-select-item.disabled{color:var(--el-datepicker-border-color);cursor:not-allowed}.time-select-item:hover{background-color:var(--el-fill-color-light);cursor:pointer;font-weight:700}.time-select .time-select-item.selected:not(.disabled){color:var(--el-color-primary);font-weight:700}.el-timeline-item{padding-bottom:20px;position:relative}.el-timeline-item__wrapper{padding-left:28px;position:relative;top:-3px}.el-timeline-item__tail{border-left:2px solid var(--el-timeline-node-color);height:100%;left:4px;position:absolute}.el-timeline-item .el-timeline-item__icon{color:var(--el-color-white);font-size:var(--el-font-size-small)}.el-timeline-item__node{align-items:center;background-color:var(--el-timeline-node-color);border-color:var(--el-timeline-node-color);border-radius:50%;box-sizing:border-box;display:flex;justify-content:center;position:absolute}.el-timeline-item__node--normal{height:var(--el-timeline-node-size-normal);left:-1px;width:var(--el-timeline-node-size-normal)}.el-timeline-item__node--large{height:var(--el-timeline-node-size-large);left:-2px;width:var(--el-timeline-node-size-large)}.el-timeline-item__node.is-hollow{background:var(--el-color-white);border-style:solid;border-width:2px}.el-timeline-item__node--primary{background-color:var(--el-color-primary);border-color:var(--el-color-primary)}.el-timeline-item__node--success{background-color:var(--el-color-success);border-color:var(--el-color-success)}.el-timeline-item__node--warning{background-color:var(--el-color-warning);border-color:var(--el-color-warning)}.el-timeline-item__node--danger{background-color:var(--el-color-danger);border-color:var(--el-color-danger)}.el-timeline-item__node--info{background-color:var(--el-color-info);border-color:var(--el-color-info)}.el-timeline-item__dot{align-items:center;display:flex;justify-content:center;position:absolute}.el-timeline-item__content{color:var(--el-text-color-primary)}.el-timeline-item__timestamp{color:var(--el-text-color-secondary);font-size:var(--el-font-size-small);line-height:1}.el-timeline-item__timestamp.is-top{margin-bottom:8px;padding-top:4px}.el-timeline-item__timestamp.is-bottom{margin-top:8px}.el-timeline{--el-timeline-node-size-normal:12px;--el-timeline-node-size-large:14px;--el-timeline-node-color:var(--el-border-color-light);font-size:var(--el-font-size-base);list-style:none;margin:0}.el-timeline .el-timeline-item:last-child .el-timeline-item__tail{display:none}.el-timeline .el-timeline-item__center{align-items:center;display:flex}.el-timeline .el-timeline-item__center .el-timeline-item__wrapper{width:100%}.el-timeline .el-timeline-item__center .el-timeline-item__tail{top:0}.el-timeline .el-timeline-item__center:first-child .el-timeline-item__tail{height:calc(50% + 10px);top:calc(50% - 10px)}.el-timeline .el-timeline-item__center:last-child .el-timeline-item__tail{display:block;height:calc(50% - 10px)}.el-tooltip-v2__content{--el-tooltip-v2-padding:5px 10px;--el-tooltip-v2-border-radius:4px;--el-tooltip-v2-border-color:var(--el-border-color);background-color:var(--el-color-white);border:1px solid var(--el-border-color);border-radius:var(--el-tooltip-v2-border-radius);color:var(--el-color-black);padding:var(--el-tooltip-v2-padding)}.el-tooltip-v2__arrow{color:var(--el-color-white);height:var(--el-tooltip-v2-arrow-height);left:var(--el-tooltip-v2-arrow-x);pointer-events:none;position:absolute;top:var(--el-tooltip-v2-arrow-y);width:var(--el-tooltip-v2-arrow-width)}.el-tooltip-v2__arrow:after,.el-tooltip-v2__arrow:before{border:var(--el-tooltip-v2-arrow-border-width) solid transparent;content:"";height:0;position:absolute;width:0}.el-tooltip-v2__content[data-side^=top] .el-tooltip-v2__arrow{bottom:0}.el-tooltip-v2__content[data-side^=top] .el-tooltip-v2__arrow:before{border-bottom:0;border-top-color:var(--el-color-white);border-top-width:var(--el-tooltip-v2-arrow-border-width);top:calc(100% - 1px)}.el-tooltip-v2__content[data-side^=top] .el-tooltip-v2__arrow:after{border-bottom:0;border-top-color:var(--el-border-color);border-top-width:var(--el-tooltip-v2-arrow-border-width);top:100%;z-index:-1}.el-tooltip-v2__content[data-side^=bottom] .el-tooltip-v2__arrow{top:0}.el-tooltip-v2__content[data-side^=bottom] .el-tooltip-v2__arrow:before{border-bottom-color:var(--el-color-white);border-bottom-width:var(--el-tooltip-v2-arrow-border-width);border-top:0;bottom:calc(100% - 1px)}.el-tooltip-v2__content[data-side^=bottom] .el-tooltip-v2__arrow:after{border-bottom-color:var(--el-border-color);border-bottom-width:var(--el-tooltip-v2-arrow-border-width);border-top:0;bottom:100%;z-index:-1}.el-tooltip-v2__content[data-side^=left] .el-tooltip-v2__arrow{right:0}.el-tooltip-v2__content[data-side^=left] .el-tooltip-v2__arrow:before{border-left-color:var(--el-color-white);border-left-width:var(--el-tooltip-v2-arrow-border-width);border-right:0;left:calc(100% - 1px)}.el-tooltip-v2__content[data-side^=left] .el-tooltip-v2__arrow:after{border-left-color:var(--el-border-color);border-left-width:var(--el-tooltip-v2-arrow-border-width);border-right:0;left:100%;z-index:-1}.el-tooltip-v2__content[data-side^=right] .el-tooltip-v2__arrow{left:0}.el-tooltip-v2__content[data-side^=right] .el-tooltip-v2__arrow:before{border-left:0;border-right-color:var(--el-color-white);border-right-width:var(--el-tooltip-v2-arrow-border-width);right:calc(100% - 1px)}.el-tooltip-v2__content[data-side^=right] .el-tooltip-v2__arrow:after{border-left:0;border-right-color:var(--el-border-color);border-right-width:var(--el-tooltip-v2-arrow-border-width);right:100%;z-index:-1}.el-tooltip-v2__content.is-dark{--el-tooltip-v2-border-color:transparent;color:var(--el-color-white)}.el-tooltip-v2__content.is-dark,.el-tooltip-v2__content.is-dark .el-tooltip-v2__arrow{background-color:var(--el-color-black);border-color:transparent}.el-transfer{--el-transfer-border-color:var(--el-border-color-lighter);--el-transfer-border-radius:var(--el-border-radius-base);--el-transfer-panel-width:200px;--el-transfer-panel-header-height:40px;--el-transfer-panel-header-bg-color:var(--el-fill-color-light);--el-transfer-panel-footer-height:40px;--el-transfer-panel-body-height:278px;--el-transfer-item-height:30px;--el-transfer-filter-height:32px;font-size:var(--el-font-size-base)}.el-transfer__buttons{display:inline-block;padding:0 30px;vertical-align:middle}.el-transfer__button{vertical-align:top}.el-transfer__button:nth-child(2){margin:0 0 0 10px}.el-transfer__button i,.el-transfer__button span{font-size:14px}.el-transfer__button .el-icon+span{margin-left:0}.el-transfer-panel{background:var(--el-bg-color-overlay);box-sizing:border-box;display:inline-block;max-height:100%;overflow:hidden;position:relative;text-align:left;vertical-align:middle;width:var(--el-transfer-panel-width)}.el-transfer-panel__body{border-bottom:1px solid var(--el-transfer-border-color);border-bottom-left-radius:var(--el-transfer-border-radius);border-bottom-right-radius:var(--el-transfer-border-radius);border-left:1px solid var(--el-transfer-border-color);border-right:1px solid var(--el-transfer-border-color);height:var(--el-transfer-panel-body-height);overflow:hidden}.el-transfer-panel__body.is-with-footer{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.el-transfer-panel__list{box-sizing:border-box;height:var(--el-transfer-panel-body-height);list-style:none;margin:0;overflow:auto;padding:6px 0}.el-transfer-panel__list.is-filterable{height:calc(100% - var(--el-transfer-filter-height) - 30px);padding-top:0}.el-transfer-panel__item{display:block!important;height:var(--el-transfer-item-height);line-height:var(--el-transfer-item-height);padding-left:15px}.el-transfer-panel__item+.el-transfer-panel__item{margin-left:0}.el-transfer-panel__item.el-checkbox{color:var(--el-text-color-regular)}.el-transfer-panel__item:hover{color:var(--el-color-primary)}.el-transfer-panel__item.el-checkbox .el-checkbox__label{box-sizing:border-box;display:block;line-height:var(--el-transfer-item-height);overflow:hidden;padding-left:22px;text-overflow:ellipsis;white-space:nowrap;width:100%}.el-transfer-panel__item .el-checkbox__input{position:absolute;top:8px}.el-transfer-panel__filter{box-sizing:border-box;padding:15px;text-align:center}.el-transfer-panel__filter .el-input__inner{box-sizing:border-box;display:inline-block;font-size:12px;height:var(--el-transfer-filter-height);width:100%}.el-transfer-panel__filter .el-icon-circle-close{cursor:pointer}.el-transfer-panel .el-transfer-panel__header{align-items:center;background:var(--el-transfer-panel-header-bg-color);border:1px solid var(--el-transfer-border-color);border-top-left-radius:var(--el-transfer-border-radius);border-top-right-radius:var(--el-transfer-border-radius);box-sizing:border-box;color:var(--el-color-black);display:flex;height:var(--el-transfer-panel-header-height);margin:0;padding-left:15px}.el-transfer-panel .el-transfer-panel__header .el-checkbox{align-items:center;display:flex;position:relative;width:100%}.el-transfer-panel .el-transfer-panel__header .el-checkbox .el-checkbox__label{color:var(--el-text-color-primary);font-size:16px;font-weight:400}.el-transfer-panel .el-transfer-panel__header .el-checkbox .el-checkbox__label span{color:var(--el-text-color-secondary);font-size:12px;font-weight:400;position:absolute;right:15px;top:50%;transform:translate3d(0,-50%,0)}.el-transfer-panel .el-transfer-panel__footer{background:var(--el-bg-color-overlay);border:1px solid var(--el-transfer-border-color);border-bottom-left-radius:var(--el-transfer-border-radius);border-bottom-right-radius:var(--el-transfer-border-radius);height:var(--el-transfer-panel-footer-height);margin:0;padding:0}.el-transfer-panel .el-transfer-panel__footer:after{content:"";display:inline-block;height:100%;vertical-align:middle}.el-transfer-panel .el-transfer-panel__footer .el-checkbox{color:var(--el-text-color-regular);padding-left:20px}.el-transfer-panel .el-transfer-panel__empty{color:var(--el-text-color-secondary);height:var(--el-transfer-item-height);line-height:var(--el-transfer-item-height);margin:0;padding:6px 15px 0;text-align:center}.el-transfer-panel .el-checkbox__label{padding-left:8px}.el-transfer-panel .el-checkbox__inner{border-radius:3px;height:14px;width:14px}.el-transfer-panel .el-checkbox__inner:after{height:6px;left:4px;width:3px}.el-tree{--el-tree-node-content-height:26px;--el-tree-node-hover-bg-color:var(--el-fill-color-light);--el-tree-text-color:var(--el-text-color-regular);--el-tree-expand-icon-color:var(--el-text-color-placeholder);background:var(--el-fill-color-blank);color:var(--el-tree-text-color);cursor:default;font-size:var(--el-font-size-base);position:relative}.el-tree__empty-block{height:100%;min-height:60px;position:relative;text-align:center;width:100%}.el-tree__empty-text{color:var(--el-text-color-secondary);font-size:var(--el-font-size-base);left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.el-tree__drop-indicator{background-color:var(--el-color-primary);height:1px;left:0;position:absolute;right:0}.el-tree-node{outline:none;white-space:nowrap}.el-tree-node:focus>.el-tree-node__content{background-color:var(--el-tree-node-hover-bg-color)}.el-tree-node.is-drop-inner>.el-tree-node__content .el-tree-node__label{background-color:var(--el-color-primary);color:#fff}.el-tree-node__content{--el-checkbox-height:var(--el-tree-node-content-height);align-items:center;cursor:pointer;display:flex;height:var(--el-tree-node-content-height)}.el-tree-node__content>.el-tree-node__expand-icon{box-sizing:content-box;padding:6px}.el-tree-node__content>label.el-checkbox{margin-right:8px}.el-tree-node__content:hover{background-color:var(--el-tree-node-hover-bg-color)}.el-tree.is-dragging .el-tree-node__content{cursor:move}.el-tree.is-dragging .el-tree-node__content *{pointer-events:none}.el-tree.is-dragging.is-drop-not-allow .el-tree-node__content{cursor:not-allowed}.el-tree-node__expand-icon{color:var(--el-tree-expand-icon-color);cursor:pointer;font-size:12px;transform:rotate(0);transition:transform var(--el-transition-duration) ease-in-out}.el-tree-node__expand-icon.expanded{transform:rotate(90deg)}.el-tree-node__expand-icon.is-leaf{color:transparent;cursor:default;visibility:hidden}.el-tree-node__expand-icon.is-hidden{visibility:hidden}.el-tree-node__loading-icon{color:var(--el-tree-expand-icon-color);font-size:var(--el-font-size-base);margin-right:8px}.el-tree-node>.el-tree-node__children{background-color:transparent;overflow:hidden}.el-tree-node.is-expanded>.el-tree-node__children{display:block}.el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content{background-color:var(--el-color-primary-light-9)}.el-tree-select{--el-tree-node-content-height:26px;--el-tree-node-hover-bg-color:var(--el-fill-color-light);--el-tree-text-color:var(--el-text-color-regular);--el-tree-expand-icon-color:var(--el-text-color-placeholder)}.el-tree-select__popper .el-tree-node__expand-icon{margin-left:8px}.el-tree-select__popper .el-tree-node.is-checked>.el-tree-node__content .el-select-dropdown__item.selected:after{content:none}.el-tree-select__popper .el-select-dropdown__list>.el-select-dropdown__item{padding-left:32px}.el-tree-select__popper .el-select-dropdown__item{background:transparent!important;flex:1;height:20px;line-height:20px;padding-left:0}.el-upload{--el-upload-dragger-padding-horizontal:40px;--el-upload-dragger-padding-vertical:10px;align-items:center;cursor:pointer;display:inline-flex;justify-content:center;outline:none}.el-upload.is-disabled{cursor:not-allowed}.el-upload.is-disabled:focus{color:inherit}.el-upload.is-disabled:focus,.el-upload.is-disabled:focus .el-upload-dragger{border-color:var(--el-border-color-darker)}.el-upload.is-disabled .el-upload-dragger{background-color:var(--el-disabled-bg-color);cursor:not-allowed}.el-upload.is-disabled .el-upload-dragger .el-upload__text{color:var(--el-text-color-placeholder)}.el-upload.is-disabled .el-upload-dragger .el-upload__text em{color:var(--el-disabled-text-color)}.el-upload.is-disabled .el-upload-dragger:hover{border-color:var(--el-border-color-darker)}.el-upload__input{display:none}.el-upload__tip{color:var(--el-text-color-regular);font-size:12px;margin-top:7px}.el-upload iframe{filter:alpha(opacity=0);left:0;opacity:0;position:absolute;top:0;z-index:-1}.el-upload--picture-card{--el-upload-picture-card-size:148px;align-items:center;background-color:var(--el-fill-color-lighter);border:1px dashed var(--el-border-color-darker);border-radius:6px;box-sizing:border-box;cursor:pointer;display:inline-flex;height:var(--el-upload-picture-card-size);justify-content:center;vertical-align:top;width:var(--el-upload-picture-card-size)}.el-upload--picture-card>i{color:var(--el-text-color-secondary);font-size:28px}.el-upload--picture-card:hover{border-color:var(--el-color-primary);color:var(--el-color-primary)}.el-upload.is-drag{display:block}.el-upload:focus{color:var(--el-color-primary)}.el-upload:focus,.el-upload:focus .el-upload-dragger{border-color:var(--el-color-primary)}.el-upload-dragger{background-color:var(--el-fill-color-blank);border:1px dashed var(--el-border-color);border-radius:6px;box-sizing:border-box;cursor:pointer;overflow:hidden;padding:var(--el-upload-dragger-padding-horizontal) var(--el-upload-dragger-padding-vertical);position:relative;text-align:center}.el-upload-dragger .el-icon--upload{color:var(--el-text-color-placeholder);font-size:67px;line-height:50px;margin-bottom:16px}.el-upload-dragger+.el-upload__tip{text-align:center}.el-upload-dragger~.el-upload__files{border-top:var(--el-border);margin-top:7px;padding-top:5px}.el-upload-dragger .el-upload__text{color:var(--el-text-color-regular);font-size:14px;text-align:center}.el-upload-dragger .el-upload__text em{color:var(--el-color-primary);font-style:normal}.el-upload-dragger:hover{border-color:var(--el-color-primary)}.el-upload-dragger.is-dragover{background-color:var(--el-color-primary-light-9);border:2px dashed var(--el-color-primary);padding:calc(var(--el-upload-dragger-padding-horizontal) - 1px) calc(var(--el-upload-dragger-padding-vertical) - 1px)}.el-upload-list{list-style:none;margin:10px 0 0;padding:0;position:relative}.el-upload-list__item{border-radius:4px;box-sizing:border-box;color:var(--el-text-color-regular);font-size:14px;margin-bottom:5px;position:relative;transition:all .5s cubic-bezier(.55,0,.1,1);width:100%}.el-upload-list__item .el-progress{position:absolute;top:20px;width:100%}.el-upload-list__item .el-progress__text{position:absolute;right:0;top:-13px}.el-upload-list__item .el-progress-bar{margin-right:0;padding-right:0}.el-upload-list__item .el-icon--upload-success{color:var(--el-color-success)}.el-upload-list__item .el-icon--close{color:var(--el-text-color-regular);cursor:pointer;display:none;opacity:.75;position:absolute;right:5px;top:50%;transform:translateY(-50%);transition:opacity var(--el-transition-duration)}.el-upload-list__item .el-icon--close:hover{color:var(--el-color-primary);opacity:1}.el-upload-list__item .el-icon--close-tip{color:var(--el-color-primary);cursor:pointer;display:none;font-size:12px;font-style:normal;opacity:1;position:absolute;right:5px;top:1px}.el-upload-list__item:hover{background-color:var(--el-fill-color-light)}.el-upload-list__item:hover .el-icon--close{display:inline-flex}.el-upload-list__item:hover .el-progress__text{display:none}.el-upload-list__item .el-upload-list__item-info{display:inline-flex;flex-direction:column;justify-content:center;margin-left:4px;width:calc(100% - 30px)}.el-upload-list__item.is-success .el-upload-list__item-status-label{display:inline-flex}.el-upload-list__item.is-success .el-upload-list__item-name:focus,.el-upload-list__item.is-success .el-upload-list__item-name:hover{color:var(--el-color-primary);cursor:pointer}.el-upload-list__item.is-success:focus:not(:hover) .el-icon--close-tip{display:inline-block}.el-upload-list__item.is-success:active,.el-upload-list__item.is-success:not(.focusing):focus{outline-width:0}.el-upload-list__item.is-success:active .el-icon--close-tip,.el-upload-list__item.is-success:not(.focusing):focus .el-icon--close-tip{display:none}.el-upload-list__item.is-success:focus .el-upload-list__item-status-label,.el-upload-list__item.is-success:hover .el-upload-list__item-status-label{display:none;opacity:0}.el-upload-list__item-name{align-items:center;color:var(--el-text-color-regular);display:inline-flex;font-size:var(--el-font-size-base);padding:0 4px;text-align:center;transition:color var(--el-transition-duration)}.el-upload-list__item-name .el-icon{color:var(--el-text-color-secondary);margin-right:6px}.el-upload-list__item-file-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.el-upload-list__item-status-label{align-items:center;display:none;height:100%;justify-content:center;line-height:inherit;position:absolute;right:5px;top:0;transition:opacity var(--el-transition-duration)}.el-upload-list__item-delete{color:var(--el-text-color-regular);display:none;font-size:12px;position:absolute;right:10px;top:0}.el-upload-list__item-delete:hover{color:var(--el-color-primary)}.el-upload-list--picture-card{--el-upload-list-picture-card-size:148px;display:inline-flex;flex-wrap:wrap;margin:0}.el-upload-list--picture-card .el-upload-list__item{background-color:var(--el-fill-color-blank);border:1px solid var(--el-border-color);border-radius:6px;box-sizing:border-box;display:inline-flex;height:var(--el-upload-list-picture-card-size);margin:0 8px 8px 0;overflow:hidden;padding:0;width:var(--el-upload-list-picture-card-size)}.el-upload-list--picture-card .el-upload-list__item .el-icon--check,.el-upload-list--picture-card .el-upload-list__item .el-icon--circle-check{color:#fff}.el-upload-list--picture-card .el-upload-list__item .el-icon--close{display:none}.el-upload-list--picture-card .el-upload-list__item:hover .el-upload-list__item-status-label{display:block;opacity:0}.el-upload-list--picture-card .el-upload-list__item:hover .el-progress__text{display:block}.el-upload-list--picture-card .el-upload-list__item .el-upload-list__item-name{display:none}.el-upload-list--picture-card .el-upload-list__item-thumbnail{height:100%;-o-object-fit:contain;object-fit:contain;width:100%}.el-upload-list--picture-card .el-upload-list__item-status-label{background:var(--el-color-success);height:24px;right:-15px;text-align:center;top:-6px;transform:rotate(45deg);width:40px}.el-upload-list--picture-card .el-upload-list__item-status-label i{font-size:12px;margin-top:11px;transform:rotate(-45deg)}.el-upload-list--picture-card .el-upload-list__item-actions{align-items:center;background-color:var(--el-overlay-color-lighter);color:#fff;cursor:default;display:inline-flex;font-size:20px;height:100%;justify-content:center;left:0;opacity:0;position:absolute;top:0;transition:opacity var(--el-transition-duration);width:100%}.el-upload-list--picture-card .el-upload-list__item-actions span{cursor:pointer;display:none}.el-upload-list--picture-card .el-upload-list__item-actions span+span{margin-left:16px}.el-upload-list--picture-card .el-upload-list__item-actions .el-upload-list__item-delete{color:inherit;font-size:inherit;position:static}.el-upload-list--picture-card .el-upload-list__item-actions:hover{opacity:1}.el-upload-list--picture-card .el-upload-list__item-actions:hover span{display:inline-flex}.el-upload-list--picture-card .el-progress{bottom:auto;left:50%;top:50%;transform:translate(-50%,-50%);width:126px}.el-upload-list--picture-card .el-progress .el-progress__text{top:50%}.el-upload-list--picture .el-upload-list__item{align-items:center;background-color:var(--el-fill-color-blank);border:1px solid var(--el-border-color);border-radius:6px;box-sizing:border-box;display:flex;margin-top:10px;overflow:hidden;padding:10px;z-index:0}.el-upload-list--picture .el-upload-list__item .el-icon--check,.el-upload-list--picture .el-upload-list__item .el-icon--circle-check{color:#fff}.el-upload-list--picture .el-upload-list__item:hover .el-upload-list__item-status-label{display:inline-flex;opacity:0}.el-upload-list--picture .el-upload-list__item:hover .el-progress__text{display:block}.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name i{display:none}.el-upload-list--picture .el-upload-list__item .el-icon--close{top:5px;transform:translateY(0)}.el-upload-list--picture .el-upload-list__item-thumbnail{align-items:center;background-color:var(--el-color-white);display:inline-flex;height:70px;justify-content:center;-o-object-fit:contain;object-fit:contain;position:relative;width:70px;z-index:1}.el-upload-list--picture .el-upload-list__item-status-label{background:var(--el-color-success);height:26px;position:absolute;right:-17px;text-align:center;top:-7px;transform:rotate(45deg);width:46px}.el-upload-list--picture .el-upload-list__item-status-label i{font-size:12px;margin-top:12px;transform:rotate(-45deg)}.el-upload-list--picture .el-progress{position:relative;top:-7px}.el-upload-cover{cursor:default;height:100%;left:0;overflow:hidden;position:absolute;top:0;width:100%;z-index:10}.el-upload-cover:after{content:"";display:inline-block;height:100%;vertical-align:middle}.el-upload-cover img{display:block;height:100%;width:100%}.el-upload-cover__label{background:var(--el-color-success);height:24px;right:-15px;text-align:center;top:-6px;transform:rotate(45deg);width:40px}.el-upload-cover__label i{color:#fff;font-size:12px;margin-top:11px;transform:rotate(-45deg)}.el-upload-cover__progress{display:inline-block;position:static;vertical-align:middle;width:243px}.el-upload-cover__progress+.el-upload__inner{opacity:0}.el-upload-cover__content{height:100%;left:0;position:absolute;top:0;width:100%}.el-upload-cover__interact{background-color:var(--el-overlay-color-light);bottom:0;height:100%;left:0;position:absolute;text-align:center;width:100%}.el-upload-cover__interact .btn{color:#fff;cursor:pointer;display:inline-block;font-size:14px;margin-top:60px;transition:var(--el-transition-md-fade);vertical-align:middle}.el-upload-cover__interact .btn i{margin-top:0}.el-upload-cover__interact .btn span{opacity:0;transition:opacity .15s linear}.el-upload-cover__interact .btn:not(:first-child){margin-left:35px}.el-upload-cover__interact .btn:hover{transform:translateY(-13px)}.el-upload-cover__interact .btn:hover span{opacity:1}.el-upload-cover__interact .btn i{color:#fff;display:block;font-size:24px;line-height:inherit;margin:0 auto 5px}.el-upload-cover__title{background-color:#fff;bottom:0;color:var(--el-text-color-primary);font-size:14px;font-weight:400;height:36px;left:0;line-height:36px;margin:0;overflow:hidden;padding:0 10px;position:absolute;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:100%}.el-upload-cover+.el-upload__inner{opacity:0;position:relative;z-index:1}.el-vl__wrapper{position:relative}.el-vl__wrapper.always-on .el-virtual-scrollbar,.el-vl__wrapper:hover .el-virtual-scrollbar{opacity:1}.el-vl__window{scrollbar-width:none}.el-vl__window::-webkit-scrollbar{display:none}.el-virtual-scrollbar{opacity:0;transition:opacity .34s ease-out}.el-virtual-scrollbar.always-on{opacity:1}.el-vg__wrapper{position:relative}.el-popper{--el-popper-border-radius:var(--el-popover-border-radius,4px);border-radius:var(--el-popper-border-radius);font-size:12px;line-height:20px;min-width:10px;overflow-wrap:break-word;padding:5px 11px;position:absolute;visibility:visible;z-index:2000}.el-popper.is-dark{color:var(--el-bg-color)}.el-popper.is-dark,.el-popper.is-dark>.el-popper__arrow:before{background:var(--el-text-color-primary);border:1px solid var(--el-text-color-primary)}.el-popper.is-dark>.el-popper__arrow:before{right:0}.el-popper.is-light,.el-popper.is-light>.el-popper__arrow:before{background:var(--el-bg-color-overlay);border:1px solid var(--el-border-color-light)}.el-popper.is-light>.el-popper__arrow:before{right:0}.el-popper.is-pure{padding:0}.el-popper__arrow,.el-popper__arrow:before{height:10px;position:absolute;width:10px;z-index:-1}.el-popper__arrow:before{background:var(--el-text-color-primary);box-sizing:border-box;content:" ";transform:rotate(45deg)}.el-popper[data-popper-placement^=top]>.el-popper__arrow{bottom:-5px}.el-popper[data-popper-placement^=top]>.el-popper__arrow:before{border-bottom-right-radius:2px}.el-popper[data-popper-placement^=bottom]>.el-popper__arrow{top:-5px}.el-popper[data-popper-placement^=bottom]>.el-popper__arrow:before{border-top-left-radius:2px}.el-popper[data-popper-placement^=left]>.el-popper__arrow{right:-5px}.el-popper[data-popper-placement^=left]>.el-popper__arrow:before{border-top-right-radius:2px}.el-popper[data-popper-placement^=right]>.el-popper__arrow{left:-5px}.el-popper[data-popper-placement^=right]>.el-popper__arrow:before{border-bottom-left-radius:2px}.el-popper[data-popper-placement^=top]>.el-popper__arrow:before{border-left-color:transparent!important;border-top-color:transparent!important}.el-popper[data-popper-placement^=bottom]>.el-popper__arrow:before{border-bottom-color:transparent!important;border-right-color:transparent!important}.el-popper[data-popper-placement^=left]>.el-popper__arrow:before{border-bottom-color:transparent!important;border-left-color:transparent!important}.el-popper[data-popper-placement^=right]>.el-popper__arrow:before{border-right-color:transparent!important;border-top-color:transparent!important}.el-statistic{--el-statistic-title-font-weight:400;--el-statistic-title-font-size:var(--el-font-size-extra-small);--el-statistic-title-color:var(--el-text-color-regular);--el-statistic-content-font-weight:400;--el-statistic-content-font-size:var(--el-font-size-extra-large);--el-statistic-content-color:var(--el-text-color-primary)}.el-statistic__head{color:var(--el-statistic-title-color);font-size:var(--el-statistic-title-font-size);font-weight:var(--el-statistic-title-font-weight);line-height:20px;margin-bottom:4px}.el-statistic__content{color:var(--el-statistic-content-color);font-size:var(--el-statistic-content-font-size);font-weight:var(--el-statistic-content-font-weight)}.el-statistic__value{display:inline-block}.el-statistic__prefix{display:inline-block;margin-right:4px}.el-statistic__suffix{display:inline-block;margin-left:4px}.el-tour{--el-tour-width:520px;--el-tour-padding-primary:12px;--el-tour-font-line-height:var(--el-font-line-height-primary);--el-tour-title-font-size:16px;--el-tour-title-text-color:var(--el-text-color-primary);--el-tour-title-font-weight:400;--el-tour-close-color:var(--el-color-info);--el-tour-font-size:14px;--el-tour-color:var(--el-text-color-primary);--el-tour-bg-color:var(--el-bg-color);--el-tour-border-radius:4px}.el-tour__hollow{transition:all var(--el-transition-duration) ease}.el-tour__content{border-radius:var(--el-tour-border-radius);box-shadow:var(--el-box-shadow-light);outline:none;overflow-wrap:break-word;padding:var(--el-tour-padding-primary);width:var(--el-tour-width)}.el-tour__arrow,.el-tour__content{background:var(--el-tour-bg-color);box-sizing:border-box}.el-tour__arrow{height:10px;pointer-events:none;position:absolute;transform:rotate(45deg);width:10px}.el-tour__content[data-side^=top] .el-tour__arrow{border-left-color:transparent;border-top-color:transparent}.el-tour__content[data-side^=bottom] .el-tour__arrow{border-bottom-color:transparent;border-right-color:transparent}.el-tour__content[data-side^=left] .el-tour__arrow{border-bottom-color:transparent;border-left-color:transparent}.el-tour__content[data-side^=right] .el-tour__arrow{border-right-color:transparent;border-top-color:transparent}.el-tour__content[data-side^=top] .el-tour__arrow{bottom:-5px}.el-tour__content[data-side^=bottom] .el-tour__arrow{top:-5px}.el-tour__content[data-side^=left] .el-tour__arrow{right:-5px}.el-tour__content[data-side^=right] .el-tour__arrow{left:-5px}.el-tour__closebtn{background:transparent;border:none;cursor:pointer;font-size:var(--el-message-close-size,16px);height:40px;outline:none;padding:0;position:absolute;right:0;top:0;width:40px}.el-tour__closebtn .el-tour__close{color:var(--el-tour-close-color);font-size:inherit}.el-tour__closebtn:focus .el-tour__close,.el-tour__closebtn:hover .el-tour__close{color:var(--el-color-primary)}.el-tour__header{padding-bottom:var(--el-tour-padding-primary)}.el-tour__header.show-close{padding-right:calc(var(--el-tour-padding-primary) + var(--el-message-close-size, 16px))}.el-tour__title{color:var(--el-tour-title-text-color);font-size:var(--el-tour-title-font-size);font-weight:var(--el-tour-title-font-weight);line-height:var(--el-tour-font-line-height)}.el-tour__body{color:var(--el-tour-text-color);font-size:var(--el-tour-font-size)}.el-tour__body img,.el-tour__body video{max-width:100%}.el-tour__footer{box-sizing:border-box;display:flex;justify-content:space-between;padding-top:var(--el-tour-padding-primary)}.el-tour__content .el-tour-indicators{display:inline-block;flex:1}.el-tour__content .el-tour-indicator{background:var(--el-color-info-light-9);border-radius:50%;display:inline-block;height:6px;margin-right:6px;width:6px}.el-tour__content .el-tour-indicator.is-active{background:var(--el-color-primary)}.el-tour.el-tour--primary{--el-tour-title-text-color:#fff;--el-tour-text-color:#fff;--el-tour-bg-color:var(--el-color-primary);--el-tour-close-color:#fff}.el-tour.el-tour--primary .el-tour__closebtn:focus .el-tour__close,.el-tour.el-tour--primary .el-tour__closebtn:hover .el-tour__close{color:var(--el-tour-title-text-color)}.el-tour.el-tour--primary .el-button--default{background:#fff;border-color:var(--el-color-primary);color:var(--el-color-primary)}.el-tour.el-tour--primary .el-button--primary{border-color:#fff}.el-tour.el-tour--primary .el-tour-indicator{background:#ffffff26}.el-tour.el-tour--primary .el-tour-indicator.is-active{background:#fff}.el-tour-parent--hidden{overflow:hidden}.el-anchor{--el-anchor-bg-color:var(--el-bg-color);--el-anchor-padding-indent:14px;--el-anchor-line-height:22px;--el-anchor-font-size:12px;--el-anchor-color:var(--el-text-color-secondary);--el-anchor-active-color:var(--el-color-primary);--el-anchor-marker-bg-color:var(--el-color-primary);background-color:var(--el-anchor-bg-color);position:relative}.el-anchor__marker{background-color:var(--el-anchor-marker-bg-color);border-radius:4px;opacity:0;position:absolute;z-index:0}.el-anchor.el-anchor--vertical .el-anchor__marker{height:14px;left:0;top:8px;transition:top .25s ease-in-out,opacity .25s;width:4px}.el-anchor.el-anchor--vertical .el-anchor__list{padding-left:var(--el-anchor-padding-indent)}.el-anchor.el-anchor--vertical.el-anchor--underline:before{background-color:#0505050f;content:"";height:100%;left:0;position:absolute;width:2px}.el-anchor.el-anchor--vertical.el-anchor--underline .el-anchor__marker{border-radius:unset;width:2px}.el-anchor.el-anchor--horizontal .el-anchor__marker{bottom:0;height:2px;transition:left .25s ease-in-out,opacity .25s,width .25s;width:20px}.el-anchor.el-anchor--horizontal .el-anchor__list{display:flex;padding-bottom:4px}.el-anchor.el-anchor--horizontal .el-anchor__list .el-anchor__item{padding-left:16px}.el-anchor.el-anchor--horizontal .el-anchor__list .el-anchor__item:first-child{padding-left:0}.el-anchor.el-anchor--horizontal.el-anchor--underline:before{background-color:#0505050f;bottom:0;content:"";height:2px;position:absolute;width:100%}.el-anchor.el-anchor--horizontal.el-anchor--underline .el-anchor__marker{border-radius:unset;height:2px}.el-anchor__item{display:flex;flex-direction:column;overflow:hidden}.el-anchor__link{cursor:pointer;font-size:var(--el-anchor-font-size);line-height:var(--el-anchor-line-height);max-width:100%;outline:none;overflow:hidden;padding:4px 0;text-decoration:none;text-overflow:ellipsis;transition:color var(--el-transition-duration);white-space:nowrap}.el-anchor__link,.el-anchor__link:focus,.el-anchor__link:hover{color:var(--el-anchor-color)}.el-anchor__link.is-active{color:var(--el-anchor-active-color)}.el-anchor .el-anchor__list .el-anchor__item a{display:inline-block}.el-segmented--vertical{flex-direction:column}.el-segmented--vertical .el-segmented__item{padding:11px}.el-segmented{--el-segmented-color:var(--el-text-color-regular);--el-segmented-bg-color:var(--el-fill-color-light);--el-segmented-padding:2px;--el-segmented-item-selected-color:var(--el-color-white);--el-segmented-item-selected-bg-color:var(--el-color-primary);--el-segmented-item-selected-disabled-bg-color:var(--el-color-primary-light-5);--el-segmented-item-hover-color:var(--el-text-color-primary);--el-segmented-item-hover-bg-color:var(--el-fill-color-dark);--el-segmented-item-active-bg-color:var(--el-fill-color-darker);--el-segmented-item-disabled-color:var(--el-text-color-placeholder);align-items:stretch;background:var(--el-segmented-bg-color);border-radius:var(--el-border-radius-base);box-sizing:border-box;color:var(--el-segmented-color);display:inline-flex;font-size:14px;min-height:32px;padding:var(--el-segmented-padding)}.el-segmented__group{align-items:stretch;display:flex;position:relative;width:100%}.el-segmented__item-selected{background:var(--el-segmented-item-selected-bg-color);border-radius:calc(var(--el-border-radius-base) - 2px);height:100%;left:0;pointer-events:none;position:absolute;top:0;transition:all .3s;width:10px}.el-segmented__item-selected.is-disabled{background:var(--el-segmented-item-selected-disabled-bg-color)}.el-segmented__item-selected.is-focus-visible:before{border-radius:inherit;content:"";top:0;right:0;bottom:0;left:0;outline:2px solid var(--el-segmented-item-selected-bg-color);outline-offset:1px;position:absolute}.el-segmented__item{align-items:center;border-radius:calc(var(--el-border-radius-base) - 2px);cursor:pointer;display:flex;flex:1;padding:0 11px}.el-segmented__item:not(.is-disabled):not(.is-selected):hover{background:var(--el-segmented-item-hover-bg-color);color:var(--el-segmented-item-hover-color)}.el-segmented__item:not(.is-disabled):not(.is-selected):active{background:var(--el-segmented-item-active-bg-color)}.el-segmented__item.is-selected,.el-segmented__item.is-selected.is-disabled{color:var(--el-segmented-item-selected-color)}.el-segmented__item.is-disabled{color:var(--el-segmented-item-disabled-color);cursor:not-allowed}.el-segmented__item-input{height:0;margin:0;opacity:0;pointer-events:none;position:absolute;width:0}.el-segmented__item-label{flex:1;line-height:normal;overflow:hidden;text-align:center;text-overflow:ellipsis;transition:color .3s;white-space:nowrap;z-index:1}.el-segmented.is-block{display:flex}.el-segmented.is-block .el-segmented__item{min-width:0}.el-segmented--large{border-radius:var(--el-border-radius-base);font-size:16px;min-height:40px}.el-segmented--large .el-segmented__item-selected{border-radius:calc(var(--el-border-radius-base) - 2px)}.el-segmented--large .el-segmented--vertical .el-segmented__item{padding:11px}.el-segmented--large .el-segmented__item{border-radius:calc(var(--el-border-radius-base) - 2px);padding:0 11px}.el-segmented--small{border-radius:calc(var(--el-border-radius-base) - 1px);font-size:14px;min-height:24px}.el-segmented--small .el-segmented__item-selected{border-radius:calc(var(--el-border-radius-base) - 3px)}.el-segmented--small .el-segmented--vertical .el-segmented__item{padding:7px}.el-segmented--small .el-segmented__item{border-radius:calc(var(--el-border-radius-base) - 3px);padding:0 7px}.el-mention{position:relative;width:100%}.el-mention__popper.el-popper{background:var(--el-bg-color-overlay);box-shadow:var(--el-box-shadow-light)}.el-mention__popper.el-popper,.el-mention__popper.el-popper .el-popper__arrow:before{border:1px solid var(--el-border-color-light)}.el-mention__popper.el-popper[data-popper-placement^=top] .el-popper__arrow:before{border-left-color:transparent;border-top-color:transparent}.el-mention__popper.el-popper[data-popper-placement^=bottom] .el-popper__arrow:before{border-bottom-color:transparent;border-right-color:transparent}.el-mention__popper.el-popper[data-popper-placement^=left] .el-popper__arrow:before{border-bottom-color:transparent;border-left-color:transparent}.el-mention__popper.el-popper[data-popper-placement^=right] .el-popper__arrow:before{border-right-color:transparent;border-top-color:transparent}.el-mention.is-disabled{pointer-events:none}.el-mention-dropdown{--el-mention-font-size:var(--el-font-size-base);--el-mention-bg-color:var(--el-bg-color-overlay);--el-mention-shadow:var(--el-box-shadow-light);--el-mention-border:1px solid var(--el-border-color-light);--el-mention-option-color:var(--el-text-color-regular);--el-mention-option-height:34px;--el-mention-option-min-width:100px;--el-mention-option-hover-background:var(--el-fill-color-light);--el-mention-option-selected-color:var(--el-color-primary);--el-mention-option-disabled-color:var(--el-text-color-placeholder);--el-mention-option-loading-color:var(--el-text-color-secondary);--el-mention-option-loading-padding:10px 0;--el-mention-max-height:174px;--el-mention-padding:6px 0;--el-mention-header-padding:10px;--el-mention-footer-padding:10px}.el-mention-dropdown__item{box-sizing:border-box;color:var(--el-mention-option-color);cursor:pointer;font-size:var(--el-mention-font-size);height:var(--el-mention-option-height);line-height:var(--el-mention-option-height);min-width:var(--el-mention-option-min-width);overflow:hidden;padding:0 20px;position:relative;text-overflow:ellipsis;white-space:nowrap}.el-mention-dropdown__item.is-hovering{background-color:var(--el-mention-option-hover-background)}.el-mention-dropdown__item.is-selected{color:var(--el-mention-option-selected-color);font-weight:700}.el-mention-dropdown__item.is-disabled{background-color:unset;color:var(--el-mention-option-disabled-color);cursor:not-allowed}.el-mention-dropdown{border-radius:var(--el-border-radius-base);box-sizing:border-box;z-index:calc(var(--el-index-top) + 1)}.el-mention-dropdown__loading{color:var(--el-mention-option-loading-color);font-size:12px;margin:0;min-width:var(--el-mention-option-min-width);padding:10px 0;text-align:center}.el-mention-dropdown__wrap{max-height:var(--el-mention-max-height)}.el-mention-dropdown__list{box-sizing:border-box;list-style:none;margin:0;padding:var(--el-mention-padding)}.el-mention-dropdown__header{border-bottom:var(--el-mention-border);padding:var(--el-mention-header-padding)}.el-mention-dropdown__footer{border-top:var(--el-mention-border);padding:var(--el-mention-footer-padding)}html.dark{color-scheme:dark;--el-color-primary:#409eff;--el-color-primary-light-3:rgb(50.8,116.6,184.5);--el-color-primary-light-5:rgb(42,89,137.5);--el-color-primary-light-7:rgb(33.2,61.4,90.5);--el-color-primary-light-8:rgb(28.8,47.6,67);--el-color-primary-light-9:rgb(24.4,33.8,43.5);--el-color-primary-dark-2:rgb(102.2,177.4,255);--el-color-success:#67c23a;--el-color-success-light-3:rgb(78.1,141.8,46.6);--el-color-success-light-5:rgb(61.5,107,39);--el-color-success-light-7:rgb(44.9,72.2,31.4);--el-color-success-light-8:rgb(36.6,54.8,27.6);--el-color-success-light-9:rgb(28.3,37.4,23.8);--el-color-success-dark-2:rgb(133.4,206.2,97.4);--el-color-warning:#e6a23c;--el-color-warning-light-3:rgb(167,119.4,48);--el-color-warning-light-5:#7d5b28;--el-color-warning-light-7:rgb(83,62.6,32);--el-color-warning-light-8:rgb(62,48.4,28);--el-color-warning-light-9:rgb(41,34.2,24);--el-color-warning-dark-2:rgb(235,180.6,99);--el-color-danger:#f56c6c;--el-color-danger-light-3:rgb(177.5,81.6,81.6);--el-color-danger-light-5:rgb(132.5,64,64);--el-color-danger-light-7:rgb(87.5,46.4,46.4);--el-color-danger-light-8:rgb(65,37.6,37.6);--el-color-danger-light-9:rgb(42.5,28.8,28.8);--el-color-danger-dark-2:rgb(247,137.4,137.4);--el-color-error:#f56c6c;--el-color-error-light-3:rgb(177.5,81.6,81.6);--el-color-error-light-5:rgb(132.5,64,64);--el-color-error-light-7:rgb(87.5,46.4,46.4);--el-color-error-light-8:rgb(65,37.6,37.6);--el-color-error-light-9:rgb(42.5,28.8,28.8);--el-color-error-dark-2:rgb(247,137.4,137.4);--el-color-info:#909399;--el-color-info-light-3:rgb(106.8,108.9,113.1);--el-color-info-light-5:rgb(82,83.5,86.5);--el-color-info-light-7:rgb(57.2,58.1,59.9);--el-color-info-light-8:rgb(44.8,45.4,46.6);--el-color-info-light-9:rgb(32.4,32.7,33.3);--el-color-info-dark-2:rgb(166.2,168.6,173.4);--el-box-shadow:0px 12px 32px 4px rgba(0,0,0,.36),0px 8px 20px rgba(0,0,0,.72);--el-box-shadow-light:0px 0px 12px rgba(0,0,0,.72);--el-box-shadow-lighter:0px 0px 6px rgba(0,0,0,.72);--el-box-shadow-dark:0px 16px 48px 16px rgba(0,0,0,.72),0px 12px 32px #000000,0px 8px 16px -8px #000000;--el-bg-color-page:#0a0a0a;--el-bg-color:#141414;--el-bg-color-overlay:#1d1e1f;--el-text-color-primary:#E5EAF3;--el-text-color-regular:#CFD3DC;--el-text-color-secondary:#A3A6AD;--el-text-color-placeholder:#8D9095;--el-text-color-disabled:#6C6E72;--el-border-color-darker:#636466;--el-border-color-dark:#58585B;--el-border-color:#4C4D4F;--el-border-color-light:#414243;--el-border-color-lighter:#363637;--el-border-color-extra-light:#2B2B2C;--el-fill-color-darker:#424243;--el-fill-color-dark:#39393A;--el-fill-color:#303030;--el-fill-color-light:#262727;--el-fill-color-lighter:#1D1D1D;--el-fill-color-extra-light:#191919;--el-fill-color-blank:transparent;--el-mask-color:rgba(0,0,0,.8);--el-mask-color-extra-light:rgba(0,0,0,.3)}html.dark .el-button{--el-button-disabled-text-color:rgba(255,255,255,.5)}html.dark .el-card{--el-card-bg-color:var(--el-bg-color-overlay)}html.dark .el-empty{--el-empty-fill-color-0:var(--el-color-black);--el-empty-fill-color-1:#4b4b52;--el-empty-fill-color-2:#36383d;--el-empty-fill-color-3:#1e1e20;--el-empty-fill-color-4:#262629;--el-empty-fill-color-5:#202124;--el-empty-fill-color-6:#212224;--el-empty-fill-color-7:#1b1c1f;--el-empty-fill-color-8:#1c1d1f;--el-empty-fill-color-9:#18181a}:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex}h1{font-size:3.2em;line-height:1.1}.card{padding:2em}#app{width:100%;margin:0 auto}.el-checkbox__label{padding-left:4px}.serial-config[data-v-7f94fe21]{margin:0}.config-container[data-v-7f94fe21]{display:flex;flex-direction:row;flex-wrap:wrap;gap:15px;align-items:center}.port-section[data-v-7f94fe21]{display:flex;align-items:center;gap:10px;white-space:nowrap}.port-list[data-v-7f94fe21]{width:120px}.config-section[data-v-7f94fe21]{display:flex;flex-wrap:wrap;margin:0}.el-form--inline .el-form-item[data-v-7f94fe21]{margin-right:8px;margin-bottom:0}[data-v-7f94fe21] .el-form-item__label{padding-right:4px}[data-v-7f94fe21] .el-input__wrapper{padding:0 8px}/** * Copyright (c) 2014 The xterm.js authors. All rights reserved. * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License) * https://github.com/chjj/term.js @@ -29,4 +29,4 @@ * The original design remains. The terminal itself * has been extended to include xterm CSI codes, among * other features. - */.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility,.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent;pointer-events:none}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{text-decoration:double underline}.xterm-underline-3{text-decoration:wavy underline}.xterm-underline-4{text-decoration:dotted underline}.xterm-underline-5{text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{text-decoration:overline double underline}.xterm-overline.xterm-underline-3{text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}.serial-log[data-v-850c3318]{display:flex;flex-direction:column}.serial-log[data-v-850c3318] .el-card__body{flex:1;overflow:hidden}.controls[data-v-850c3318]{display:flex;align-items:center;padding:10px}.terminal-container[data-v-850c3318],#terminal[data-v-850c3318]{height:100%}.me-2[data-v-850c3318]{margin-right:8px}.controls[data-v-b8924903]{display:flex;align-items:center;gap:12px;padding:10px;border-top:1px solid var(--el-border-color-light)}.me-2[data-v-b8924903]{margin-right:0}.serial-log[data-v-9a1e85ef]{display:flex;flex-direction:column;height:100%}.serial-term[data-v-9a1e85ef]{flex:1}.chart-3d-container[data-v-ff4dfa3f]{position:relative;width:100%;height:100%}.canvas-container[data-v-ff4dfa3f]{width:100%;height:100%}.data-panel[data-v-ff4dfa3f]{position:absolute;top:20px;right:20px;background:linear-gradient(135deg,#3c3c3ccc,#1e1e1ecc);color:#fff;padding:15px;border-radius:8px;font-family:SF Mono,Monaco,Menlo,Consolas,monospace;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:0 4px 6px #0000001a;border:1px solid rgba(255,255,255,.1)}.data-panel div[data-v-ff4dfa3f]{margin:5px 0}.model-controls[data-v-ff4dfa3f]{margin-top:10px;display:flex;gap:8px}.model-switch[data-v-ff4dfa3f],.model-upload[data-v-ff4dfa3f]{flex:1}.data-table-container[data-v-e0351c0e]{height:100%;overflow:auto}.operation-buttons[data-v-e0351c0e]{display:flex;gap:8px}.quick-send[data-v-3fa9948f]{margin:10px}.quick-send-actions[data-v-3fa9948f]{margin:8px 0}.action-group[data-v-3fa9948f]{display:flex;align-items:center;gap:8px}.compact-btn[data-v-3fa9948f]{padding:6px 8px!important}[data-v-3fa9948f] .el-button-group .el-button--small{padding:6px 8px}[data-v-3fa9948f] .el-input-number.el-input-number--small{width:120px}.card-header[data-v-3fa9948f]{display:flex;justify-content:space-between;align-items:center;padding:4px 8px}.group-select[data-v-3fa9948f]{display:flex;align-items:center;gap:4px}.item-header[data-v-3fa9948f]{display:flex;justify-content:space-between;align-items:center;gap:8px}.item-content[data-v-3fa9948f]{display:grid;grid-template-columns:1fr;gap:4px}.quick-send-list[data-v-3fa9948f]{display:flex;flex-direction:column;gap:8px}.item-row[data-v-3fa9948f]{display:flex;align-items:center;gap:8px}.flex-grow[data-v-3fa9948f]{flex:1}.item-settings[data-v-3fa9948f]{padding:8px}.setting-row[data-v-3fa9948f]{display:flex;align-items:center;gap:8px;margin-bottom:8px}.setting-row[data-v-3fa9948f]:last-child{margin-bottom:0}.ms-2[data-v-3fa9948f]{margin-left:4px}.mb-2[data-v-3fa9948f]{margin-bottom:4px}.mt-2[data-v-3fa9948f]{margin-top:4px}.me-2[data-v-3fa9948f]{margin-right:4px}.serial-script[data-v-f56f7820]{margin:10px}.script-select[data-v-f56f7820]{display:flex;align-items:center;gap:8px}.script-editor[data-v-f56f7820]{padding:8px 0}.script-name-container[data-v-f56f7820]{display:flex;align-items:center;gap:8px;margin-bottom:8px}.script-name-input[data-v-f56f7820]{flex:1}.run-button[data-v-f56f7820]{flex-shrink:0}.ms-2[data-v-f56f7820]{margin-left:8px}[data-v-f56f7820] .CodeMirror{height:800px;border:1px solid #dcdfe6;border-radius:4px}[data-v-f56f7820] .CodeMirror-focused{border-color:#409eff}.splitpanes{display:flex;width:100%;height:100%}.splitpanes--vertical{flex-direction:row}.splitpanes--horizontal{flex-direction:column}.splitpanes--dragging *{-webkit-user-select:none;user-select:none}.splitpanes__pane{width:100%;height:100%;overflow:hidden}.splitpanes--vertical .splitpanes__pane{transition:width .2s ease-out}.splitpanes--horizontal .splitpanes__pane{transition:height .2s ease-out}.splitpanes--dragging .splitpanes__pane{transition:none}.splitpanes__splitter{touch-action:none}.splitpanes--vertical>.splitpanes__splitter{min-width:1px;cursor:col-resize}.splitpanes--horizontal>.splitpanes__splitter{min-height:1px;cursor:row-resize}.splitpanes.default-theme .splitpanes__pane{background-color:#f2f2f2}.splitpanes.default-theme .splitpanes__splitter{background-color:#fff;box-sizing:border-box;position:relative;flex-shrink:0}.splitpanes.default-theme .splitpanes__splitter:before,.splitpanes.default-theme .splitpanes__splitter:after{content:"";position:absolute;top:50%;left:50%;background-color:#00000026;transition:background-color .3s}.splitpanes.default-theme .splitpanes__splitter:hover:before,.splitpanes.default-theme .splitpanes__splitter:hover:after{background-color:#00000040}.splitpanes.default-theme .splitpanes__splitter:first-child{cursor:auto}.default-theme.splitpanes .splitpanes .splitpanes__splitter{z-index:1}.default-theme.splitpanes--vertical>.splitpanes__splitter,.default-theme .splitpanes--vertical>.splitpanes__splitter{width:7px;border-left:1px solid #eee;margin-left:-1px}.default-theme.splitpanes--vertical>.splitpanes__splitter:before,.default-theme.splitpanes--vertical>.splitpanes__splitter:after,.default-theme .splitpanes--vertical>.splitpanes__splitter:before,.default-theme .splitpanes--vertical>.splitpanes__splitter:after{transform:translateY(-50%);width:1px;height:30px}.default-theme.splitpanes--vertical>.splitpanes__splitter:before,.default-theme .splitpanes--vertical>.splitpanes__splitter:before{margin-left:-2px}.default-theme.splitpanes--vertical>.splitpanes__splitter:after,.default-theme .splitpanes--vertical>.splitpanes__splitter:after{margin-left:1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter,.default-theme .splitpanes--horizontal>.splitpanes__splitter{height:7px;border-top:1px solid #eee;margin-top:-1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:before,.default-theme.splitpanes--horizontal>.splitpanes__splitter:after,.default-theme .splitpanes--horizontal>.splitpanes__splitter:before,.default-theme .splitpanes--horizontal>.splitpanes__splitter:after{transform:translate(-50%);width:30px;height:1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:before,.default-theme .splitpanes--horizontal>.splitpanes__splitter:before{margin-top:-2px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:after,.default-theme .splitpanes--horizontal>.splitpanes__splitter:after{margin-top:1px}.app-container[data-v-1d7d755e]{height:100vh}.app-header[data-v-1d7d755e]{background-color:var(--el-bg-color-overlay);padding:0 20px;border-bottom:1px solid var(--el-border-color-light)}.header-content[data-v-1d7d755e]{height:100%;display:flex;align-items:center;justify-content:space-between}.header-left[data-v-1d7d755e]{display:flex;align-items:center;gap:20px}.header-content h1[data-v-1d7d755e]{color:var(--el-text-color-primary);font-size:1.5rem;font-weight:600;margin:0;background:linear-gradient(120deg,#6366f1,#2dd4bf);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;text-fill-color:transparent}.header-serial-config[data-v-1d7d755e]{margin:0}.header-serial-config[data-v-1d7d755e] .el-card{background:transparent;border:none;color:var(--el-text-color-primary)}.header-serial-config[data-v-1d7d755e] .el-card .el-form{display:flex;gap:10px}.header-serial-config[data-v-1d7d755e] .el-form-item__label{color:var(--el-text-color-primary)}.header-serial-config[data-v-1d7d755e] .el-input__wrapper,.header-serial-config[data-v-1d7d755e] .el-select .el-input__wrapper{background-color:var(--el-bg-color);box-shadow:none}.header-links[data-v-1d7d755e]{display:flex;align-items:center;gap:12px}.header-links a[data-v-1d7d755e]{color:var(--el-text-color-primary);text-decoration:none}.header-links a[data-v-1d7d755e]:hover{color:var(--el-color-primary)}.main-container[data-v-1d7d755e]{width:100%;height:calc(100vh - 60px);background-color:var(--el-bg-color-overlay)}.fullscreen-toggle[data-v-1d7d755e]{margin-left:0}.lv-card[data-v-1d7d755e]{height:100%}.lv-card[data-v-1d7d755e] .el-tab-pane{height:100%;overflow:auto}[data-v-1d7d755e] .splitpanes__splitter{background-color:var(--el-border-color)!important;border:none}[data-v-1d7d755e] .splitpanes__pane{background-color:transparent}.w75[data-v-1d7d755e]{width:75%}.w25[data-v-1d7d755e]{width:25%}html{background-color:var(--el-bg-color-overlay)}html.dark .el-button{--el-button-divide-border-color: rgba(0, 0, 0, .5)}.lv-tabs .el-tabs__content{flex:1;overflow-y:auto}.lv-tabs.el-tabs.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__nav{border:0 none}.lv-tabs.el-tabs.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item{font-size:12px;border:0 none;border-radius:4px;margin:8px 0 0 8px;padding:0 6px;height:24px}.lv-tabs.el-tabs.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item.is-active{background-color:#f5f5f5;color:#191919}.lv-tabs .el-tabs__item.is-top{border:0 none}.lv-tabs .el-tabs__item:hover{color:#999}.lv-tabs .el-tabs__header{margin:0;align-items:flex-start}.lv-tabs .el-tab-pane{height:100%}.dark .dash-tabs.el-tabs.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item.is-active{background-color:#383838;color:#fff}.el-card{--el-card-padding: 12px}.splitpanes.default-theme .splitpanes__pane{background-color:var(--el-bg-color-overlay)}.dark .default-theme.splitpanes--vertical>.splitpanes__splitter,.dark .default-theme .splitpanes--vertical>.splitpanes__splitter{border-color:#333} + */.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility,.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent;pointer-events:none}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{text-decoration:double underline}.xterm-underline-3{text-decoration:wavy underline}.xterm-underline-4{text-decoration:dotted underline}.xterm-underline-5{text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{text-decoration:overline double underline}.xterm-overline.xterm-underline-3{text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}.serial-log[data-v-713d405d]{display:flex;flex-direction:column}.serial-log[data-v-713d405d] .el-card__body{flex:1;overflow:hidden}.controls[data-v-713d405d]{display:flex;align-items:center;padding:10px}.terminal-container[data-v-713d405d],#terminal[data-v-713d405d]{height:100%}.me-2[data-v-713d405d]{margin-right:8px}.controls[data-v-b8924903]{display:flex;align-items:center;gap:12px;padding:10px;border-top:1px solid var(--el-border-color-light)}.me-2[data-v-b8924903]{margin-right:0}.serial-log[data-v-9a1e85ef]{display:flex;flex-direction:column;height:100%}.serial-term[data-v-9a1e85ef]{flex:1}.chart-3d-container[data-v-b7827acd]{position:relative;width:100%;height:100%}.canvas-container[data-v-b7827acd]{width:100%;height:100%}.data-panel[data-v-b7827acd]{position:absolute;top:20px;right:20px;background:linear-gradient(135deg,#3c3c3ccc,#1e1e1ecc);color:#fff;padding:15px;border-radius:8px;font-family:SF Mono,Monaco,Menlo,Consolas,monospace;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:0 4px 6px #0000001a;border:1px solid rgba(255,255,255,.1)}.data-panel div[data-v-b7827acd]{margin:5px 0}.model-controls[data-v-b7827acd]{margin-top:10px;display:flex;gap:8px}.model-switch[data-v-b7827acd],.model-upload[data-v-b7827acd]{flex:1}.uplot,.uplot *,.uplot *:before,.uplot *:after{box-sizing:border-box}.uplot{font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";line-height:1.5;width:min-content}.u-title{text-align:center;font-size:18px;font-weight:700}.u-wrap{position:relative;-webkit-user-select:none;user-select:none}.u-over,.u-under{position:absolute}.u-under{overflow:hidden}.uplot canvas{display:block;position:relative;width:100%;height:100%}.u-axis{position:absolute}.u-legend{font-size:14px;margin:auto;text-align:center}.u-inline{display:block}.u-inline *{display:inline-block}.u-inline tr{margin-right:16px}.u-legend th{font-weight:600}.u-legend th>*{vertical-align:middle;display:inline-block}.u-legend .u-marker{width:1em;height:1em;margin-right:4px;background-clip:padding-box!important}.u-inline.u-live th:after{content:":";vertical-align:middle}.u-inline:not(.u-live) .u-value{display:none}.u-series>*{padding:4px}.u-series th{cursor:pointer}.u-legend .u-off>*{opacity:.3}.u-select{background:#00000012;position:absolute;pointer-events:none}.u-cursor-x,.u-cursor-y{position:absolute;left:0;top:0;pointer-events:none;will-change:transform}.u-hz .u-cursor-x,.u-vt .u-cursor-y{height:100%;border-right:1px dashed #607D8B}.u-hz .u-cursor-y,.u-vt .u-cursor-x{width:100%;border-bottom:1px dashed #607D8B}.u-cursor-pt{position:absolute;top:0;left:0;border-radius:50%;border:0 solid;pointer-events:none;will-change:transform;background-clip:padding-box!important}.u-axis.u-off,.u-select.u-off,.u-cursor-x.u-off,.u-cursor-y.u-off,.u-cursor-pt.u-off{display:none}.chart-panel[data-v-3dcd0481]{height:100%;display:flex;flex-direction:column;padding:16px}.chart-controls[data-v-3dcd0481]{margin-bottom:16px}.charts-container[data-v-3dcd0481]{flex:1}.chart-item[data-v-3dcd0481]{background:var(--el-bg-color);border-radius:8px;padding:16px;margin-bottom:16px;box-shadow:0 2px 12px #0000001a}.chart-header[data-v-3dcd0481]{display:flex;align-items:center;gap:8px;margin-bottom:16px}.chart-name-input[data-v-3dcd0481]{max-width:200px}.chart-content[data-v-3dcd0481]{display:flex;flex-direction:column;gap:10px;padding-bottom:20px}.fields-list[data-v-3dcd0481]{display:flex;flex-wrap:wrap;gap:8px}.field-tag[data-v-3dcd0481]{margin-right:8px}.chart-container[data-v-3dcd0481]{width:100%;height:300px}.field-selector[data-v-3dcd0481]{display:flex;flex-direction:column;gap:8px}.data-table-container[data-v-ede5c30e]{height:100%;display:flex;flex-direction:column}.table-toolbar[data-v-ede5c30e]{padding:16px;display:flex;justify-content:space-between;align-items:center}.import-export-buttons[data-v-ede5c30e],.operation-buttons[data-v-ede5c30e]{display:flex;gap:8px}.quick-send[data-v-3fa9948f]{margin:10px}.quick-send-actions[data-v-3fa9948f]{margin:8px 0}.action-group[data-v-3fa9948f]{display:flex;align-items:center;gap:8px}.compact-btn[data-v-3fa9948f]{padding:6px 8px!important}[data-v-3fa9948f] .el-button-group .el-button--small{padding:6px 8px}[data-v-3fa9948f] .el-input-number.el-input-number--small{width:120px}.card-header[data-v-3fa9948f]{display:flex;justify-content:space-between;align-items:center;padding:4px 8px}.group-select[data-v-3fa9948f]{display:flex;align-items:center;gap:4px}.item-header[data-v-3fa9948f]{display:flex;justify-content:space-between;align-items:center;gap:8px}.item-content[data-v-3fa9948f]{display:grid;grid-template-columns:1fr;gap:4px}.quick-send-list[data-v-3fa9948f]{display:flex;flex-direction:column;gap:8px}.item-row[data-v-3fa9948f]{display:flex;align-items:center;gap:8px}.flex-grow[data-v-3fa9948f]{flex:1}.item-settings[data-v-3fa9948f]{padding:8px}.setting-row[data-v-3fa9948f]{display:flex;align-items:center;gap:8px;margin-bottom:8px}.setting-row[data-v-3fa9948f]:last-child{margin-bottom:0}.ms-2[data-v-3fa9948f]{margin-left:4px}.mb-2[data-v-3fa9948f]{margin-bottom:4px}.mt-2[data-v-3fa9948f]{margin-top:4px}.me-2[data-v-3fa9948f]{margin-right:4px}.serial-script[data-v-27c7c557]{margin:10px}.script-select[data-v-27c7c557]{display:flex;align-items:center;gap:8px}.script-editor[data-v-27c7c557]{padding:8px 0}.script-name-container[data-v-27c7c557]{display:flex;align-items:center;gap:8px;margin-bottom:8px}.script-name-input[data-v-27c7c557]{flex:1}.run-button[data-v-27c7c557]{flex-shrink:0}.ms-2[data-v-27c7c557]{margin-left:8px}[data-v-27c7c557] .CodeMirror{height:800px;border:1px solid #dcdfe6;border-radius:4px}[data-v-27c7c557] .CodeMirror-focused{border-color:#409eff}.splitpanes{display:flex;width:100%;height:100%}.splitpanes--vertical{flex-direction:row}.splitpanes--horizontal{flex-direction:column}.splitpanes--dragging *{-webkit-user-select:none;user-select:none}.splitpanes__pane{width:100%;height:100%;overflow:hidden}.splitpanes--vertical .splitpanes__pane{transition:width .2s ease-out}.splitpanes--horizontal .splitpanes__pane{transition:height .2s ease-out}.splitpanes--dragging .splitpanes__pane{transition:none}.splitpanes__splitter{touch-action:none}.splitpanes--vertical>.splitpanes__splitter{min-width:1px;cursor:col-resize}.splitpanes--horizontal>.splitpanes__splitter{min-height:1px;cursor:row-resize}.splitpanes.default-theme .splitpanes__pane{background-color:#f2f2f2}.splitpanes.default-theme .splitpanes__splitter{background-color:#fff;box-sizing:border-box;position:relative;flex-shrink:0}.splitpanes.default-theme .splitpanes__splitter:before,.splitpanes.default-theme .splitpanes__splitter:after{content:"";position:absolute;top:50%;left:50%;background-color:#00000026;transition:background-color .3s}.splitpanes.default-theme .splitpanes__splitter:hover:before,.splitpanes.default-theme .splitpanes__splitter:hover:after{background-color:#00000040}.splitpanes.default-theme .splitpanes__splitter:first-child{cursor:auto}.default-theme.splitpanes .splitpanes .splitpanes__splitter{z-index:1}.default-theme.splitpanes--vertical>.splitpanes__splitter,.default-theme .splitpanes--vertical>.splitpanes__splitter{width:7px;border-left:1px solid #eee;margin-left:-1px}.default-theme.splitpanes--vertical>.splitpanes__splitter:before,.default-theme.splitpanes--vertical>.splitpanes__splitter:after,.default-theme .splitpanes--vertical>.splitpanes__splitter:before,.default-theme .splitpanes--vertical>.splitpanes__splitter:after{transform:translateY(-50%);width:1px;height:30px}.default-theme.splitpanes--vertical>.splitpanes__splitter:before,.default-theme .splitpanes--vertical>.splitpanes__splitter:before{margin-left:-2px}.default-theme.splitpanes--vertical>.splitpanes__splitter:after,.default-theme .splitpanes--vertical>.splitpanes__splitter:after{margin-left:1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter,.default-theme .splitpanes--horizontal>.splitpanes__splitter{height:7px;border-top:1px solid #eee;margin-top:-1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:before,.default-theme.splitpanes--horizontal>.splitpanes__splitter:after,.default-theme .splitpanes--horizontal>.splitpanes__splitter:before,.default-theme .splitpanes--horizontal>.splitpanes__splitter:after{transform:translate(-50%);width:30px;height:1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:before,.default-theme .splitpanes--horizontal>.splitpanes__splitter:before{margin-top:-2px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:after,.default-theme .splitpanes--horizontal>.splitpanes__splitter:after{margin-top:1px}.app-container[data-v-df95f1d4]{height:100vh}.app-header[data-v-df95f1d4]{background-color:var(--el-bg-color-overlay);padding:0 20px;border-bottom:1px solid var(--el-border-color-light)}.header-content[data-v-df95f1d4]{height:100%;display:flex;align-items:center;justify-content:space-between}.header-left[data-v-df95f1d4]{display:flex;align-items:center;gap:20px}.header-content h1[data-v-df95f1d4]{color:var(--el-text-color-primary);font-size:1.5rem;font-weight:600;margin:0;background:linear-gradient(120deg,#6366f1,#2dd4bf);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;text-fill-color:transparent}.header-serial-config[data-v-df95f1d4]{margin:0}.header-serial-config[data-v-df95f1d4] .el-card{background:transparent;border:none;color:var(--el-text-color-primary)}.header-serial-config[data-v-df95f1d4] .el-card .el-form{display:flex;gap:10px}.header-serial-config[data-v-df95f1d4] .el-form-item__label{color:var(--el-text-color-primary)}.header-serial-config[data-v-df95f1d4] .el-input__wrapper,.header-serial-config[data-v-df95f1d4] .el-select .el-input__wrapper{background-color:var(--el-bg-color);box-shadow:none}.header-links[data-v-df95f1d4]{display:flex;align-items:center;gap:12px}.header-links a[data-v-df95f1d4]{color:var(--el-text-color-primary);text-decoration:none}.header-links a[data-v-df95f1d4]:hover{color:var(--el-color-primary)}.main-container[data-v-df95f1d4]{width:100%;height:calc(100vh - 60px);background-color:var(--el-bg-color-overlay)}.fullscreen-toggle[data-v-df95f1d4]{margin-left:0}.lv-card[data-v-df95f1d4]{height:100%}.lv-card[data-v-df95f1d4] .el-tab-pane{height:100%;overflow:auto}[data-v-df95f1d4] .splitpanes__splitter{background-color:var(--el-border-color)!important;border:none}[data-v-df95f1d4] .splitpanes__pane{background-color:transparent}.w75[data-v-df95f1d4]{width:75%}.w25[data-v-df95f1d4]{width:25%}html{background-color:var(--el-bg-color-overlay)}html.dark .el-button{--el-button-divide-border-color: rgba(0, 0, 0, .5)}.lv-tabs .el-tabs__content{flex:1;overflow-y:auto}.lv-tabs.el-tabs.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__nav{border:0 none}.lv-tabs.el-tabs.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item{font-size:12px;border:0 none;border-radius:4px;margin:8px 0 0 8px;padding:0 6px;height:24px;transition:all .1s;-webkit-user-select:none;user-select:none}.lv-tabs.el-tabs.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item.is-active{background-color:#f5f5f5;color:#191919}.lv-tabs .el-tabs__item.is-top{border:0 none}.lv-tabs .el-tabs__item:hover{color:#999}.lv-tabs .el-tabs__header{margin:0;align-items:flex-start}.lv-tabs .el-tab-pane{height:100%}.dark .dash-tabs.el-tabs.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item.is-active{background-color:#383838;color:#fff}.el-card{--el-card-padding: 12px}.splitpanes.default-theme .splitpanes__pane{background-color:var(--el-bg-color-overlay)}.dark .default-theme.splitpanes--vertical>.splitpanes__splitter,.dark .default-theme .splitpanes--vertical>.splitpanes__splitter{border-color:#333} diff --git a/assets/index-DJjU1qX2.js b/assets/index-DJjU1qX2.js new file mode 100644 index 0000000..1c0ac0d --- /dev/null +++ b/assets/index-DJjU1qX2.js @@ -0,0 +1,111 @@ +var Jc=Object.defineProperty;var eu=(s,e,t)=>e in s?Jc(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var xe=(s,e,t)=>eu(s,typeof e!="symbol"?e+"":e,t);import{r as ie,w as yi,x as pt,j as $i,S as cn,ag as R,y as he,z as q,A as E,G as ue,P as x,H as v,O as Le,a6 as Xe,L as J,M as _e,u as M,aw as un,c as Ji,ax as $l,J as yt,ay as tu,at as iu,az as nu}from"./vue-C3Yyspzm.js";import{E as ae,M as su,g as Ao,a as ru,i as ou}from"./utils-nI0tli1P.js";import{r as au,a as lu,b as hu}from"./xterm-BZdChWd0.js";import{C as cu,V as fe,M as ci,T as oi,Q as Fn,S as Zo,a as Be,R as uu,P as fu,b as qi,c as du,d as sr,e as Tl,L as _l,f as zi,F as io,h as Ot,i as Pt,j as vt,k as bi,l as pu,m as Al,D as rr,n as Hn,I as Ou,o as mu,O as Zl,p as gu,q as yu,B as _s,r as bu,s as Rl,N as Su,t as xu,u as wu,v as or,w as Cl,x as ar,y as Qu,z as ku,A as Di,E as Wi,G as Dn,H as Gi,J as Pu,K as ji,U as vu,W as lr,X as $u,Y as ui,Z as hr,_ as Tu,$ as _u,a0 as jn,a1 as fi,a2 as Ml,a3 as Au,a4 as Zu,a5 as Ru,a6 as Cu,a7 as Mu,a8 as El,a9 as Eu,aa as Ro,ab as Co,ac as Mo,ad as Eo,ae as Lo,af as Lu,ag as Xu,ah as Du,ai as ju,aj as si,ak as Iu,al as Vu,g as Bu,am as Nu,an as Uu,ao as qu,ap as zu,aq as Wu,ar as Xo}from"./three-smIoJFTG.js";import{u as Gu}from"./uplot-C0BbzL7s.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))i(n);new MutationObserver(n=>{for(const r of n)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function t(n){const r={};return n.integrity&&(r.integrity=n.integrity),n.referrerPolicy&&(r.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?r.credentials="include":n.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function i(n){if(n.ep)return;n.ep=!0;const r=t(n);fetch(n.href,r)}})();const yn={serial:{baudRate:115200,dataBits:8,stopBits:1,parity:"none",flowControl:"none"},display:{showTime:!0,showMs:!1,showHex:!0,showText:!0,showNewline:!0,autoScroll:!1,timeOut:20},send:{isHexSend:!1,addCRLF:!1,addCRLFType:` +`,autoSend:!1,autoSendInterval:1e3,addChecksum:!1,content:"",history:[],historyMaxLength:100},layout:{splitPaneSize:75,leftActiveTab:"0",rightActiveTab:"0"},charts:{list:[{id:1,name:"Chart 1",fields:["pitch","roll","yaw"]}]}},Ut=class Ut{constructor(){xe(this,"configs",{});this.loadAllConfigs()}static getInstance(){return Ut.instance||(Ut.instance=new Ut),Ut.instance}loadAllConfigs(){for(const[e,t]of Object.entries(yn)){const i=localStorage.getItem(`config.${e}`);this.configs[e]=i?{...t,...JSON.parse(i)}:t}}getConfig(e){return this.configs[e]||yn[e]}setConfig(e,t){this.configs[e]={...this.configs[e],...t},localStorage.setItem(`config.${e}`,JSON.stringify(this.configs[e]))}useConfig(e){const t=ie(this.getConfig(e));return yi(t,i=>{this.setConfig(e,i)},{deep:!0}),t}resetConfig(e){this.configs[e]={...yn[e]},localStorage.setItem(`config.${e}`,JSON.stringify(this.configs[e]))}resetAllConfigs(){Object.keys(yn).forEach(e=>{this.resetConfig(e)})}};xe(Ut,"instance");let Ht=Ut;const qt=class qt{constructor(){xe(this,"textEncoder");xe(this,"textDecoder");xe(this,"isConnected",!1);xe(this,"sendQueue",[]);xe(this,"maxQueueSize",1e3);xe(this,"processingQueue",!1);this.textEncoder=new TextEncoder,this.textDecoder=new TextDecoder}static getInstance(){return qt.instance||(qt.instance=new qt),qt.instance}setConnected(e){this.isConnected=e,e||this.clearSendQueue()}isSerialConnected(){return this.isConnected}validateHexString(e){return/^[0-9A-Fa-f\s]*$/.test(e)&&e.replace(/\s/g,"").length%2===0}stringToUint8Array(e,t=!1){if(t){if(!this.validateHexString(e))throw new Error("无效的HEX格式字符串");const i=e.replace(/[^0-9A-Fa-f]/g,""),n=new Uint8Array(i.length/2);for(let r=0;rt.toString(16).padStart(2,"0").toUpperCase()).join(" ")}uint8ArrayToString(e){try{return this.textDecoder.decode(e)}catch(t){return console.error("解码数据时出错:",t),""}}formatLogMessage(e,t){try{const i=new Date,n=[];if(t.showTime){const o=i.toLocaleTimeString();if(t.showMs){const a=i.getMilliseconds().toString().padStart(3,"0");n.push(`[${o}.${a}]`)}else n.push(`[${o}]`)}if(t.showHex){const o=this.uint8ArrayToHexString(e);n.push(o)}if(t.showText){const o=this.uint8ArrayToString(e);t.showHex?n.push(`| ${o}`):n.push(o)}return t.showNewline?n.push(` +`):n.push(""),n.join(" ")}catch(i){return console.error("格式化日志消息时出错:",i),`[${new Date().toLocaleTimeString()}] 错误: 无法格式化消息 +`}}async addToSendQueue(e){if(!this.isConnected)throw new Error("串口未连接");if(this.sendQueue.length>=this.maxQueueSize)throw new Error("发送队列已满");this.sendQueue.push(e),this.processingQueue||await this.processSendQueue()}clearSendQueue(){this.sendQueue=[],this.processingQueue=!1}async processSendQueue(){if(!(this.processingQueue||this.sendQueue.length===0)){for(this.processingQueue=!0;this.sendQueue.length>0&&this.isConnected;){const e=this.sendQueue.shift();if(e)try{window.dispatchEvent(new CustomEvent("serial-send",{detail:e})),await new Promise(t=>setTimeout(t,10))}catch(t){console.error("发送数据时出错:",t)}}this.processingQueue=!1}}calculateChecksum(e){return e.reduce((t,i)=>t^i,0)}appendChecksum(e){const t=this.calculateChecksum(e),i=new Uint8Array(e.length+1);return i.set(e),i[e.length]=t,i}verifyChecksum(e){if(e.length<1)return!1;const t=e[e.length-1],i=this.calculateChecksum(e.slice(0,-1));return t===i}};xe(qt,"instance");let Si=qt;const Yu=` +// 处理接收的数据 数据格式:"pitch:-0.13,roll:0.00,yaw:0.07\\n" +let cache = ''; +async function DataReceiver(data) { + cache += uint8ArrayToString(data); + + if (cache.indexOf('\\n') !== -1) { + const lines = cache.split('\\n'); + cache = lines.pop() || ''; + for (const line of lines) { + let files = line.split(',') + let data = {}; + files.map((str) => { + let s2 = str.split(':') + if (s2.length === 2) { + data[s2[0]] = parseFloat(s2[1]) + } + }) + updateDataTable(data); + } + } + return data; +} + +// 处理发送的数据 +async function DataSender(data) { + await sleep(100); + return data; +} + +// 定时发送数据 +setInterval(async () => { + const bytes = new Uint8Array(3); + // sendHex(bytes); +}, 1000); + +// stringToUint8Array(); +// uint8ArrayToHexString(); +// uint8ArrayToString(); + +`,zt=class zt{constructor(){xe(this,"scripts",[]);xe(this,"currentScript",{id:Date.now(),name:"新建脚本",code:"",isRunning:!1});xe(this,"serialHelper",Si.getInstance());xe(this,"runtimer",{DataReceiverInterface:null,DataSenderInterface:null});xe(this,"RuntimerTimerIntervals",[]);xe(this,"RuntimerTimerouts",[]);this.loadScripts()}static getInstance(){return zt.instance||(zt.instance=new zt),zt.instance}getScripts(){return this.scripts}getCurrentScript(){return this.currentScript}setCurrentScript(e){this.currentScript=e}addScript(){const e={id:Date.now(),name:"新建脚本",code:Yu,isRunning:!1};return this.scripts.push(e),this.currentScript=e,this.saveScripts(),e}removeScript(e){const t=this.scripts.findIndex(i=>i.id===e);t>-1&&(this.scripts.splice(t,1),this.currentScript.id===e&&(this.scripts.length===0&&this.addScript(),this.currentScript=this.scripts[0]),this.saveScripts())}async runScript(){let e=this.currentScript;if(!e.isRunning){e.isRunning=!0;try{const t={stringToUint8Array:this.serialHelper.stringToUint8Array.bind(this.serialHelper),uint8ArrayToHexString:this.serialHelper.uint8ArrayToHexString.bind(this.serialHelper),uint8ArrayToString:this.serialHelper.uint8ArrayToString.bind(this.serialHelper),sendText:r=>{const o=this.serialHelper.stringToUint8Array(r);window.dispatchEvent(new CustomEvent("serial-send",{detail:o}))},sendHex:r=>{let o=r;typeof r=="string"&&(o=this.serialHelper.stringToUint8Array(r,!0)),window.dispatchEvent(new CustomEvent("serial-send",{detail:o}))},updateDataTable:r=>{window.dispatchEvent(new CustomEvent("data-update",{detail:r}))},sleep:r=>new Promise(o=>setTimeout(o,r)),setTimeout:(r,o)=>{const a=setTimeout(r,o);return this.RuntimerTimerouts.push(a),a},setInterval:(r,o)=>{const a=setInterval(r,o);return this.RuntimerTimerIntervals.push(a),a}},i=` +return (async function() { + ${e.code} + + + let DataReceiverInterface = typeof DataReceiver == 'undefined' ? null : DataReceiver; + let DataSenderInterface = typeof DataSender == 'undefined'? null : DataSender; + return { DataReceiverInterface, DataSenderInterface }; +})() + `,n=new Function("context",`with(context) { ${i} }`);this.runtimer=await n(t)}catch(t){console.error("脚本执行错误:",t),window.dispatchEvent(new CustomEvent("script-error",{detail:{error:t instanceof Error?t.message:"未知错误"}})),this.stopScript()}}}stopScript(){this.currentScript.isRunning=!1,this.RuntimerTimerouts.forEach(clearTimeout),this.RuntimerTimerouts=[],this.RuntimerTimerIntervals.forEach(clearInterval),this.RuntimerTimerIntervals=[]}async getRuntimer(){return this.currentScript.isRunning||await this.runScript(),this.runtimer}saveScripts(){localStorage.setItem("serialScripts",JSON.stringify(this.scripts))}loadScripts(){const e=localStorage.getItem("serialScripts");if(e)try{this.scripts=JSON.parse(e)}catch(t){console.error("加载脚本失败:",t)}this.scripts.length===0&&this.addScript(),this.currentScript=this.scripts[0]||this.currentScript}};xe(zt,"instance");let Kn=zt;const Fu={class:"serial-config"},Hu={class:"config-container"},Ku={class:"port-section"},Ju={class:"port-list"},ef=pt({__name:"SerialConfig",setup(s){const t=Ht.getInstance().useConfig("serial"),i=Kn.getInstance(),n=ie(null),r=ie(null),o=ie(null),a=ie(!1),l=ie([]),h=ie(""),c=[1200,2400,4800,9600,19200,38400,57600,115200,230400,460800,921600];yi(t,async()=>{if(a.value&&n.value)try{await Q(),await y(n.value),ae.success("串口参数已更新")}catch(T){ae.error("更新串口参数失败:"+T)}},{deep:!0});const f=T=>{var G;const B="serialport_"+(((G=T.getInfo().usbProductId)==null?void 0:G.toString())||""),X=l.value.find(Te=>Te.id===B);if(X)return X;const F={id:B,title:V(T),type:"serialport",port:T};return l.value.push(F),F},d=T=>{const B="usb_"+T.serialNumber,X=l.value.find(G=>G.id===B);if(X)return X;const F={id:B,title:oe(T),type:"usb",port:T};return l.value.push(F),F},p=T=>{const B="bluetooth_"+T.id,X=l.value.find(G=>G.id===B);if(X)return X;const F={id:B,title:Ce(T),type:"bluetooth",port:T};return l.value.push(F),F},O=async T=>{const B=await i.getRuntimer();B.DataReceiverInterface&&(T=await B.DataReceiverInterface(T)),window.dispatchEvent(new CustomEvent("serial-data",{detail:T}))},m=async()=>{try{const T=await navigator.serial.requestPort();await y(T)}catch(T){T.message!="Failed to execute 'requestPort' on 'Serial': No port selected by the user."&&ae.error("串口连接失败:"+T),console.error(T),h.value=""}},g=async()=>{try{const T=await navigator.usb.requestDevice({filters:[]});d(T),ae.success("WebUSB设备已授权")}catch(T){ae.error("WebUSB设备授权失败:"+T),console.error(T),h.value=""}},k=async()=>{try{const T=await navigator.bluetooth.requestDevice({acceptAllDevices:!0});p(T),ae.success("蓝牙设备已授权")}catch(T){ae.error("蓝牙设备授权失败:"+T),console.error(T),h.value=""}},P=()=>{switch(j(),h.value){case"authorizedSerial":m();break;case"authorizedUSB":g();break;case"authorizedBluetooth":k();break;case"websocket":break;case"webstlink":case"script":ae.warning("该设备类型开发中"),h.value="";break;case"mock":D();break;default:const T=l.value.find(B=>B.id===h.value);if(T)if(T.type==="serialport"){y(T.port);return}else{if(T.type==="usb")return;if(T.type==="bluetooth")return}}},y=async T=>{try{f(T),await T.open(t.value),n.value=T,r.value=T.writable.getWriter(),o.value=T.readable.getReader(),a.value=!0,ae.success("串口连接成功"),S()}catch(B){ae.error("串口连接失败:"+B)}},Q=async()=>{j();try{o.value&&(await o.value.cancel(),o.value.releaseLock()),r.value&&(await r.value.close(),r.value.releaseLock())}catch(T){console.log(T)}try{n.value&&await n.value.close(),ae.success("设备已断开")}catch(T){ae.error("断开设备失败:"+T),console.log(T)}a.value=!1,h.value=""},S=async()=>{for(;a.value&&o.value;)try{const{value:T,done:B}=await o.value.read();if(B)break;O(T)}catch(T){ae.error("读取串口数据失败:"+T);break}},w=async T=>{if(!a.value||!r.value){ae.error("串口未连接");return}let B=T.detail;const X=await i.getRuntimer();X.DataSenderInterface&&(B=await X.DataSenderInterface(B));try{await r.value.write(B)}catch(F){ae.error("发送数据失败:"+F)}},A=ie({url:"",history:[]}),$=T=>{T&&(A.value.url=T,A.value.history.includes(T)||(A.value.history.push(T),localStorage.setItem("wsConfig",JSON.stringify(A.value))))};$i(()=>{var T,B;window.addEventListener("serial-send",X=>w(X)),(T=navigator.serial)==null||T.getPorts().then(X=>{X.map(f)}),(B=navigator.usb)==null||B.getDevices().then(X=>{X.map(d)})}),cn(()=>{window.removeEventListener("serial-send",T=>w(T))});const N=ie(!1);let U=null;const D=()=>{N.value=!0,a.value=!0;const{writable:T,readable:B}=new TransformStream({transform(Te,qe){qe.enqueue(Te)}});let X=0,F=0,G=0;U=window.setInterval(()=>{X+=Math.random()*.4-.2,F+=Math.random()*.4-.1,G+=Math.random()*.4-0;let Te=`pitch:${X.toFixed(2)},roll:${F.toFixed(2)},yaw:${G.toFixed(2)} +`;const qe=new TextEncoder().encode(Te);O(qe)},50),r.value=T.getWriter(),o.value=B.getReader(),S()},j=()=>{U&&(clearInterval(U),U=null,a.value=!1)},L=[{name:"Arduino UNO",vendorId:"2341",productId:"0043"},{name:"Arduino Mega",vendorId:"2341",productId:"0010"},{name:"Arduino Nano",vendorId:"0403",productId:"6001"},{name:"ATmega32U4",vendorId:"2341",productId:"8036"},{name:"CP2102/CP2102N",vendorId:"10c4",productId:"ea60"},{name:"FT2232H",vendorId:"0403",productId:"6010"},{name:"FTDI Basic",vendorId:"0403",productId:"6001"},{name:"CH340",vendorId:"1a86",productId:"7523"},{name:"CH9102",vendorId:"1a86",productId:"55d4"},{name:"PL2303",vendorId:"067b",productId:"2303"},{name:"PL2303HX",vendorId:"067b",productId:"2303"},{name:"ESP USB_SERIAL_JTAG",vendorId:"303a",productId:"1001"},{name:"ESP USB Bridge",vendorId:"303a",productId:"1002"},{name:"ESP32-S2 USB CDC",vendorId:"303a",productId:"0002"},{name:"ESP32-S3 USB CDC",vendorId:"303a",productId:"0009"},{name:"CH9102F",vendorId:"1a86",productId:"55d4"},{name:"CH340G",vendorId:"1a86",productId:"7523"},{name:"STM32 Virtual COM Port",vendorId:"0483",productId:"5740"},{name:"STM32 USB CDC",vendorId:"0483",productId:"5740"}],V=T=>{if(!T.getInfo().usbProductId)return"串口设备";const B=(T.getInfo().usbVendorId||0).toString(16).padStart(4,"0"),X=(T.getInfo().usbProductId||0).toString(16).padStart(4,"0"),F=L.find(G=>G.vendorId.toLowerCase()===B.toLowerCase()&&G.productId.toLowerCase()===X.toLowerCase());return F?`${F.name} (VID:${B} PID:${X})`:`未知设备 (VID:${B} PID:${X})`},oe=T=>"未知设备"+T,Ce=T=>"未知设备"+T,Je=()=>{a.value?Q():y(n.value)};return(T,B)=>{const X=R("el-option"),F=R("el-option-group"),G=R("el-select"),Te=R("el-button"),qe=R("el-button-group"),et=R("el-form-item"),Ai=R("el-form");return q(),he("div",Fu,[E("div",Hu,[E("div",Ku,[E("div",Ju,[x(G,{modelValue:h.value,"onUpdate:modelValue":B[0]||(B[0]=W=>h.value=W),onChange:P,placeholder:"选择设备",size:"small"},{default:v(()=>[x(X,{label:"选择设备",value:""}),x(F,{label:"串口设备"},{default:v(()=>[x(X,{label:"授权串口设备",value:"authorizedSerial"}),(q(!0),he(Le,null,Xe(l.value.filter(W=>W.type=="serialport"),W=>(q(),ue(X,{key:W.id,label:W.title,value:W.id},null,8,["label","value"]))),128))]),_:1}),x(F,{label:"WebUSB设备"},{default:v(()=>[x(X,{label:"授权WebUSB设备",value:"authorizedUSB"}),(q(!0),he(Le,null,Xe(l.value.filter(W=>W.type=="usb"),W=>(q(),ue(X,{key:W.id,label:W.title,value:W.id},null,8,["label","value"]))),128))]),_:1}),x(F,{label:"蓝牙设备"},{default:v(()=>[x(X,{label:"授权蓝牙设备",value:"authorizedBluetooth"}),(q(!0),he(Le,null,Xe(l.value.filter(W=>W.type=="bluetooth"),W=>(q(),ue(X,{key:W.id,label:W.title,value:W.id},null,8,["label","value"]))),128))]),_:1}),x(F,{label:"其他"},{default:v(()=>[x(X,{label:"WebSocket",value:"websocket"}),x(X,{label:"脚本",value:"script"}),x(X,{label:"Stlink",value:"webstlink"}),x(X,{label:"Mock",value:"mock"})]),_:1})]),_:1},8,["modelValue"])]),x(qe,null,{default:v(()=>[x(Te,{type:a.value?"danger":"primary",onClick:Je,size:"small"},{default:v(()=>[J(_e(a.value?"断开":"连接"),1)]),_:1},8,["type"])]),_:1})]),h.value=="websocket"?(q(),ue(Ai,{key:0,model:A.value,inline:!0,size:"small",class:"config-section"},{default:v(()=>[x(et,{label:"ws"},{default:v(()=>[x(G,{modelValue:A.value.url,"onUpdate:modelValue":B[1]||(B[1]=W=>A.value.url=W),filterable:"","allow-create":"",onChange:$,style:{width:"300px"}},{default:v(()=>[(q(!0),he(Le,null,Xe(A.value.history,W=>(q(),ue(X,{key:W,label:W,value:W},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"])):(q(),ue(Ai,{key:1,model:M(t),inline:!0,size:"small",class:"config-section"},{default:v(()=>[x(et,{label:"波特率"},{default:v(()=>[x(G,{modelValue:M(t).baudRate,"onUpdate:modelValue":B[2]||(B[2]=W=>M(t).baudRate=W),style:{width:"80px"}},{default:v(()=>[(q(),he(Le,null,Xe(c,W=>x(X,{key:W,value:W},null,8,["value"])),64))]),_:1},8,["modelValue"])]),_:1}),x(et,{label:"数据位"},{default:v(()=>[x(G,{modelValue:M(t).dataBits,"onUpdate:modelValue":B[3]||(B[3]=W=>M(t).dataBits=W),style:{width:"50px"}},{default:v(()=>[(q(),he(Le,null,Xe([8,7,6,5],W=>x(X,{key:W,value:W},null,8,["value"])),64))]),_:1},8,["modelValue"])]),_:1}),x(et,{label:"停止位"},{default:v(()=>[x(G,{modelValue:M(t).stopBits,"onUpdate:modelValue":B[4]||(B[4]=W=>M(t).stopBits=W),style:{width:"50px"}},{default:v(()=>[(q(),he(Le,null,Xe([1,2],W=>x(X,{key:W,value:W},null,8,["value"])),64))]),_:1},8,["modelValue"])]),_:1}),x(et,{label:"校验位"},{default:v(()=>[x(G,{modelValue:M(t).parity,"onUpdate:modelValue":B[5]||(B[5]=W=>M(t).parity=W),style:{width:"60px"}},{default:v(()=>[x(X,{label:"无",value:"none"}),x(X,{label:"奇校验",value:"odd"}),x(X,{label:"偶校验",value:"even"})]),_:1},8,["modelValue"])]),_:1}),x(et,{label:"流控制"},{default:v(()=>[x(G,{modelValue:M(t).flowControl,"onUpdate:modelValue":B[6]||(B[6]=W=>M(t).flowControl=W),style:{width:"60px"}},{default:v(()=>[x(X,{label:"无",value:"none"}),x(X,{label:"硬件流控",value:"hardware"})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"]))])])}}}),mt=(s,e)=>{const t=s.__vccOpts||s;for(const[i,n]of e)t[i]=n;return t},tf=mt(ef,[["__scopeId","data-v-7f94fe21"]]);var nf=au(),sf=lu(),rf=hu();const of={class:"serial-log"},af={class:"controls"},lf=pt({__name:"SerialLogTerm",setup(s){const t=Ht.getInstance().useConfig("display"),i=un(),n=ie(t.value),r=Si.getInstance();let o=[],a=new Uint8Array,l=null,h=null,c=null;const u=()=>{h&&h.clear(),o=[]},f=P=>{window.dispatchEvent(new CustomEvent("serial-send",{detail:new TextEncoder().encode(P)}))},d=P=>P?{background:"#1e1e1e",foreground:"#d4d4d4",selectionBackground:"#3a3a3a"}:{background:"#ffffff",foreground:"#000000",selectionBackground:"#d4d4d4"},p=()=>{h=new nf.Terminal({cursorBlink:!0,convertEol:!0,fontFamily:"Consolas,Liberation Mono,Menlo,Courier,monospace",fontSize:14,theme:d(i.value),scrollback:1e4});const P=new rf.SearchAddon;h.loadAddon(P),c=new sf.FitAddon,h.loadAddon(c),h.onData(f);const y=document.getElementById("terminal");y&&(h.open(y),h.write(` +\x1B[36m _ _ _ ____ _ _ + | | | | | | / ___| (_) | | + | | | | ___| |__ \\___ \\ ___ _ __ _ __ _| | + | |/\\| |/ _ \\ '_ \\___) / _ \\ '__| |/ _\` | | + \\ /\\ / __/ |_) |__/ / __/ | | | (_| | | + \\/ \\/ \\___|_.__/|____/\\___|_| |_|\\__,_|_| +\x1B[0m +\x1B[35m=== Web Serial Debug Tool ===\x1B[0m +\x1B[32m版本: v1.5.0\x1B[0m +\x1B[0m +功能特点: +- 🔌 支持串口和WebUSB设备连接 +- 📝 实时数据收发显示 +- 🎨 支持文本和HEX格式数据发送 +- 📜 支持自定义脚本编写和执行 +- 🎯 快捷发送功能 +- ⚙️ 可配置的显示选项 +- 🌙 暗色主题支持 + +\x1B[33m开始使用: +1. 点击顶部的连接按钮选择串口设备 +2. 配置串口参数(波特率等) +3. 开始接收/发送数据\x1B[0m + +`)),setTimeout(()=>{c==null||c.fit()},120)},O=P=>{P in n.value&&(n.value[P]=!n.value[P])},m=P=>{a=new Uint8Array([...a,...P]),l&&clearTimeout(l),l=window.setTimeout(()=>{const y=r.formatLogMessage(a,n.value);h&&(h.write(y),n.value.autoScroll&&h.scrollToBottom(),o.push(y)),a=new Uint8Array},n.value.timeOut)};yi(i,P=>{h&&(h.options.theme=d(P))});const g=()=>{setTimeout(()=>{c==null||c.fit()},120)};$i(()=>{p(),window.addEventListener("serial-data",P=>{m(P.detail)}),window.addEventListener("resize",g)}),cn(()=>{window.removeEventListener("serial-data",P=>{m(P.detail)}),window.removeEventListener("resize",g),l&&clearTimeout(l),h&&h.dispose()});const k=()=>{if(!h)return;const y=`serial-log-${new Date().toISOString().replace(/[:.]/g,"-")}.txt`,Q=o.join(` +`),S=new Blob([Q],{type:"text/plain;charset=utf-8"}),w=URL.createObjectURL(S),A=document.createElement("a");A.href=w,A.download=y,document.body.appendChild(A),A.click(),document.body.removeChild(A),URL.revokeObjectURL(w)};return(P,y)=>{const Q=R("el-button"),S=R("el-button-group"),w=R("el-input-number"),A=R("el-tooltip");return q(),he("div",of,[E("div",af,[x(S,{class:"me-2"},{default:v(()=>[x(Q,{type:n.value.showTime?"primary":"default",size:"small",onClick:y[0]||(y[0]=$=>O("showTime"))},{default:v(()=>y[7]||(y[7]=[J(" 时间 ")])),_:1},8,["type"]),x(Q,{type:n.value.showMs?"primary":"default",size:"small",onClick:y[1]||(y[1]=$=>O("showMs"))},{default:v(()=>y[8]||(y[8]=[J(" 毫秒 ")])),_:1},8,["type"]),x(Q,{type:n.value.showHex?"primary":"default",size:"small",onClick:y[2]||(y[2]=$=>O("showHex"))},{default:v(()=>y[9]||(y[9]=[J(" HEX ")])),_:1},8,["type"]),x(Q,{type:n.value.showText?"primary":"default",size:"small",onClick:y[3]||(y[3]=$=>O("showText"))},{default:v(()=>y[10]||(y[10]=[J(" TEXT ")])),_:1},8,["type"]),x(Q,{type:n.value.showNewline?"primary":"default",size:"small",onClick:y[4]||(y[4]=$=>O("showNewline"))},{default:v(()=>y[11]||(y[11]=[J(" 换行 ")])),_:1},8,["type"])]),_:1}),x(S,{class:"me-2",style:{"white-space":"nowrap"}},{default:v(()=>[x(Q,{type:n.value.autoScroll?"primary":"default",size:"small",onClick:y[5]||(y[5]=$=>O("autoScroll"))},{default:v(()=>y[12]||(y[12]=[J(" 自动滚动 ")])),_:1},8,["type"]),x(Q,{type:"danger",size:"small",onClick:u},{default:v(()=>y[13]||(y[13]=[J(" 清空 ")])),_:1}),x(Q,{type:"primary",size:"small",onClick:k},{default:v(()=>y[14]||(y[14]=[J(" 导出 ")])),_:1})]),_:1}),x(A,{class:"box-item",effect:"dark",content:"分包超时时间(ms)",placement:"bottom"},{default:v(()=>[x(w,{modelValue:n.value.timeOut,"onUpdate:modelValue":y[6]||(y[6]=$=>n.value.timeOut=$),min:0,max:3e3,step:5,size:"small"},{prefix:v(()=>y[15]||(y[15]=[])),suffix:v(()=>y[16]||(y[16]=[E("span",null,"ms",-1)])),_:1},8,["modelValue"])]),_:1})]),y[17]||(y[17]=E("div",{class:"terminal-container"},[E("div",{id:"terminal"})],-1))])}}}),hf=mt(lf,[["__scopeId","data-v-713d405d"]]),cf={class:"serial-send"},uf={class:"controls"},ff={class:"me-2",style:{display:"inline-block"}},df={class:"send-content"},pf=pt({__name:"SerialSend",setup(s){const t=Ht.getInstance().useConfig("send");let i=null;const n=Si.getInstance(),r=()=>{try{let c=t.value.content;t.value.addCRLF&&(c+=t.value.addCRLFType);let u=n.stringToUint8Array(c,t.value.isHexSend);t.value.addChecksum&&(u=n.appendChecksum(u)),window.dispatchEvent(new CustomEvent("serial-send",{detail:u})),c&&!t.value.history.includes(t.value.content)&&(t.value.history.unshift(t.value.content),t.value.history.length>t.value.historyMaxLength&&t.value.history.pop())}catch(c){console.error("发送数据时出错:",c),window.dispatchEvent(new CustomEvent("serial-error",{detail:{message:c instanceof Error?c.message:"发送数据时出错"}}))}},o=()=>{t.value.autoSend?i=window.setInterval(r,t.value.autoSendInterval):i&&(clearInterval(i),i=null)},a=c=>{t.value.autoSendInterval=c,t.value.autoSend&&i&&(clearInterval(i),i=window.setInterval(r,c))};let l=-1;const h=c=>{if((c.metaKey||c.ctrlKey)&&c.key==="Enter"){r(),l=-1;return}const u=c.target,f=u.selectionStart,p=!t.value.content.slice(0,f).includes(` +`);(c.key==="ArrowUp"||c.key==="ArrowDown")&&!p||(c.key==="ArrowUp"?(c.preventDefault(),l===-1&&t.value.content.trim()&&!t.value.history.includes(t.value.content)&&(t.value.history.unshift(t.value.content),t.value.history.length>t.value.historyMaxLength&&t.value.history.pop()),t.value.history.length>0&&(l=Math.min(l+1,t.value.history.length-1),t.value.content=t.value.history[l],u.selectionStart=u.selectionEnd=0)):c.key==="ArrowDown"&&(c.preventDefault(),l>-1&&(l--,t.value.content=l===-1?"":t.value.history[l],u.selectionStart=u.selectionEnd=0)))};return(c,u)=>{const f=R("el-switch"),d=R("el-checkbox"),p=R("el-option"),O=R("el-select"),m=R("el-input-number"),g=R("el-button"),k=R("el-input");return q(),he("div",cf,[E("div",uf,[x(f,{modelValue:M(t).isHexSend,"onUpdate:modelValue":u[0]||(u[0]=P=>M(t).isHexSend=P),"active-text":"HEX","inactive-text":"TEXT",class:"me-2"},null,8,["modelValue"]),E("div",ff,[x(d,{modelValue:M(t).addCRLF,"onUpdate:modelValue":u[1]||(u[1]=P=>M(t).addCRLF=P),label:"",class:"",style:{"vertical-align":"middle"}},null,8,["modelValue"]),x(O,{modelValue:M(t).addCRLFType,"onUpdate:modelValue":u[2]||(u[2]=P=>M(t).addCRLFType=P),size:"small",style:{width:"80px"}},{default:v(()=>[x(p,{value:`\r +`,label:"CRLF(\\r\\n)"}),x(p,{value:"\r",label:"CR(\\r)"}),x(p,{value:` +`,label:"LF(\\n)"})]),_:1},8,["modelValue"])]),x(d,{modelValue:M(t).addChecksum,"onUpdate:modelValue":u[3]||(u[3]=P=>M(t).addChecksum=P),label:"校验和",class:"me-2"},null,8,["modelValue"]),x(d,{modelValue:M(t).autoSend,"onUpdate:modelValue":u[4]||(u[4]=P=>M(t).autoSend=P),onChange:o,label:"自动发送",class:"me-2"},null,8,["modelValue"]),x(m,{modelValue:M(t).autoSendInterval,"onUpdate:modelValue":u[5]||(u[5]=P=>M(t).autoSendInterval=P),min:100,max:1e4,step:100,onChange:a,size:"small",class:"me-2"},null,8,["modelValue"]),u[8]||(u[8]=E("span",null,"ms",-1)),x(g,{type:"primary",onClick:r,class:"me-2"},{default:v(()=>u[7]||(u[7]=[J("发送")])),_:1})]),E("div",df,[x(k,{modelValue:M(t).content,"onUpdate:modelValue":u[6]||(u[6]=P=>M(t).content=P),type:"textarea",rows:5,placeholder:M(t).isHexSend?"请输入HEX格式数据,如:49 54 4C 44 47":"请输入要发送的文本",onKeydown:h},null,8,["modelValue","placeholder"])])])}}}),Of=mt(pf,[["__scopeId","data-v-b8924903"]]),mf={class:"serial-log"},gf=pt({__name:"SerialLog",setup(s){return(e,t)=>(q(),he("div",mf,[x(hf,{class:"serial-term"}),x(Of,{class:"serial-send"})]))}}),yf=mt(gf,[["__scopeId","data-v-9a1e85ef"]]),Do={type:"change"},no={type:"start"},Ll={type:"end"},bn=new uu,jo=new fu,bf=Math.cos(70*qi.DEG2RAD),ge=new fe,Me=2*Math.PI,ne={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6},As=1e-6;class Sf extends cu{constructor(e,t=null){super(e,t),this.state=ne.NONE,this.enabled=!0,this.target=new fe,this.cursor=new fe,this.minDistance=0,this.maxDistance=1/0,this.minZoom=0,this.maxZoom=1/0,this.minTargetRadius=0,this.maxTargetRadius=1/0,this.minPolarAngle=0,this.maxPolarAngle=Math.PI,this.minAzimuthAngle=-1/0,this.maxAzimuthAngle=1/0,this.enableDamping=!1,this.dampingFactor=.05,this.enableZoom=!0,this.zoomSpeed=1,this.enableRotate=!0,this.rotateSpeed=1,this.keyRotateSpeed=1,this.enablePan=!0,this.panSpeed=1,this.screenSpacePanning=!0,this.keyPanSpeed=7,this.zoomToCursor=!1,this.autoRotate=!1,this.autoRotateSpeed=2,this.keys={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"},this.mouseButtons={LEFT:ci.ROTATE,MIDDLE:ci.DOLLY,RIGHT:ci.PAN},this.touches={ONE:oi.ROTATE,TWO:oi.DOLLY_PAN},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this._domElementKeyEvents=null,this._lastPosition=new fe,this._lastQuaternion=new Fn,this._lastTargetPosition=new fe,this._quat=new Fn().setFromUnitVectors(e.up,new fe(0,1,0)),this._quatInverse=this._quat.clone().invert(),this._spherical=new Zo,this._sphericalDelta=new Zo,this._scale=1,this._panOffset=new fe,this._rotateStart=new Be,this._rotateEnd=new Be,this._rotateDelta=new Be,this._panStart=new Be,this._panEnd=new Be,this._panDelta=new Be,this._dollyStart=new Be,this._dollyEnd=new Be,this._dollyDelta=new Be,this._dollyDirection=new fe,this._mouse=new Be,this._performCursorZoom=!1,this._pointers=[],this._pointerPositions={},this._controlActive=!1,this._onPointerMove=wf.bind(this),this._onPointerDown=xf.bind(this),this._onPointerUp=Qf.bind(this),this._onContextMenu=Af.bind(this),this._onMouseWheel=vf.bind(this),this._onKeyDown=$f.bind(this),this._onTouchStart=Tf.bind(this),this._onTouchMove=_f.bind(this),this._onMouseDown=kf.bind(this),this._onMouseMove=Pf.bind(this),this._interceptControlDown=Zf.bind(this),this._interceptControlUp=Rf.bind(this),this.domElement!==null&&this.connect(),this.update()}connect(){this.domElement.addEventListener("pointerdown",this._onPointerDown),this.domElement.addEventListener("pointercancel",this._onPointerUp),this.domElement.addEventListener("contextmenu",this._onContextMenu),this.domElement.addEventListener("wheel",this._onMouseWheel,{passive:!1}),this.domElement.getRootNode().addEventListener("keydown",this._interceptControlDown,{passive:!0,capture:!0}),this.domElement.style.touchAction="none"}disconnect(){this.domElement.removeEventListener("pointerdown",this._onPointerDown),this.domElement.removeEventListener("pointermove",this._onPointerMove),this.domElement.removeEventListener("pointerup",this._onPointerUp),this.domElement.removeEventListener("pointercancel",this._onPointerUp),this.domElement.removeEventListener("wheel",this._onMouseWheel),this.domElement.removeEventListener("contextmenu",this._onContextMenu),this.stopListenToKeyEvents(),this.domElement.getRootNode().removeEventListener("keydown",this._interceptControlDown,{capture:!0}),this.domElement.style.touchAction="auto"}dispose(){this.disconnect()}getPolarAngle(){return this._spherical.phi}getAzimuthalAngle(){return this._spherical.theta}getDistance(){return this.object.position.distanceTo(this.target)}listenToKeyEvents(e){e.addEventListener("keydown",this._onKeyDown),this._domElementKeyEvents=e}stopListenToKeyEvents(){this._domElementKeyEvents!==null&&(this._domElementKeyEvents.removeEventListener("keydown",this._onKeyDown),this._domElementKeyEvents=null)}saveState(){this.target0.copy(this.target),this.position0.copy(this.object.position),this.zoom0=this.object.zoom}reset(){this.target.copy(this.target0),this.object.position.copy(this.position0),this.object.zoom=this.zoom0,this.object.updateProjectionMatrix(),this.dispatchEvent(Do),this.update(),this.state=ne.NONE}update(e=null){const t=this.object.position;ge.copy(t).sub(this.target),ge.applyQuaternion(this._quat),this._spherical.setFromVector3(ge),this.autoRotate&&this.state===ne.NONE&&this._rotateLeft(this._getAutoRotationAngle(e)),this.enableDamping?(this._spherical.theta+=this._sphericalDelta.theta*this.dampingFactor,this._spherical.phi+=this._sphericalDelta.phi*this.dampingFactor):(this._spherical.theta+=this._sphericalDelta.theta,this._spherical.phi+=this._sphericalDelta.phi);let i=this.minAzimuthAngle,n=this.maxAzimuthAngle;isFinite(i)&&isFinite(n)&&(i<-Math.PI?i+=Me:i>Math.PI&&(i-=Me),n<-Math.PI?n+=Me:n>Math.PI&&(n-=Me),i<=n?this._spherical.theta=Math.max(i,Math.min(n,this._spherical.theta)):this._spherical.theta=this._spherical.theta>(i+n)/2?Math.max(i,this._spherical.theta):Math.min(n,this._spherical.theta)),this._spherical.phi=Math.max(this.minPolarAngle,Math.min(this.maxPolarAngle,this._spherical.phi)),this._spherical.makeSafe(),this.enableDamping===!0?this.target.addScaledVector(this._panOffset,this.dampingFactor):this.target.add(this._panOffset),this.target.sub(this.cursor),this.target.clampLength(this.minTargetRadius,this.maxTargetRadius),this.target.add(this.cursor);let r=!1;if(this.zoomToCursor&&this._performCursorZoom||this.object.isOrthographicCamera)this._spherical.radius=this._clampDistance(this._spherical.radius);else{const o=this._spherical.radius;this._spherical.radius=this._clampDistance(this._spherical.radius*this._scale),r=o!=this._spherical.radius}if(ge.setFromSpherical(this._spherical),ge.applyQuaternion(this._quatInverse),t.copy(this.target).add(ge),this.object.lookAt(this.target),this.enableDamping===!0?(this._sphericalDelta.theta*=1-this.dampingFactor,this._sphericalDelta.phi*=1-this.dampingFactor,this._panOffset.multiplyScalar(1-this.dampingFactor)):(this._sphericalDelta.set(0,0,0),this._panOffset.set(0,0,0)),this.zoomToCursor&&this._performCursorZoom){let o=null;if(this.object.isPerspectiveCamera){const a=ge.length();o=this._clampDistance(a*this._scale);const l=a-o;this.object.position.addScaledVector(this._dollyDirection,l),this.object.updateMatrixWorld(),r=!!l}else if(this.object.isOrthographicCamera){const a=new fe(this._mouse.x,this._mouse.y,0);a.unproject(this.object);const l=this.object.zoom;this.object.zoom=Math.max(this.minZoom,Math.min(this.maxZoom,this.object.zoom/this._scale)),this.object.updateProjectionMatrix(),r=l!==this.object.zoom;const h=new fe(this._mouse.x,this._mouse.y,0);h.unproject(this.object),this.object.position.sub(h).add(a),this.object.updateMatrixWorld(),o=ge.length()}else console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."),this.zoomToCursor=!1;o!==null&&(this.screenSpacePanning?this.target.set(0,0,-1).transformDirection(this.object.matrix).multiplyScalar(o).add(this.object.position):(bn.origin.copy(this.object.position),bn.direction.set(0,0,-1).transformDirection(this.object.matrix),Math.abs(this.object.up.dot(bn.direction))As||8*(1-this._lastQuaternion.dot(this.object.quaternion))>As||this._lastTargetPosition.distanceToSquared(this.target)>As?(this.dispatchEvent(Do),this._lastPosition.copy(this.object.position),this._lastQuaternion.copy(this.object.quaternion),this._lastTargetPosition.copy(this.target),!0):!1}_getAutoRotationAngle(e){return e!==null?Me/60*this.autoRotateSpeed*e:Me/60/60*this.autoRotateSpeed}_getZoomScale(e){const t=Math.abs(e*.01);return Math.pow(.95,this.zoomSpeed*t)}_rotateLeft(e){this._sphericalDelta.theta-=e}_rotateUp(e){this._sphericalDelta.phi-=e}_panLeft(e,t){ge.setFromMatrixColumn(t,0),ge.multiplyScalar(-e),this._panOffset.add(ge)}_panUp(e,t){this.screenSpacePanning===!0?ge.setFromMatrixColumn(t,1):(ge.setFromMatrixColumn(t,0),ge.crossVectors(this.object.up,ge)),ge.multiplyScalar(e),this._panOffset.add(ge)}_pan(e,t){const i=this.domElement;if(this.object.isPerspectiveCamera){const n=this.object.position;ge.copy(n).sub(this.target);let r=ge.length();r*=Math.tan(this.object.fov/2*Math.PI/180),this._panLeft(2*e*r/i.clientHeight,this.object.matrix),this._panUp(2*t*r/i.clientHeight,this.object.matrix)}else this.object.isOrthographicCamera?(this._panLeft(e*(this.object.right-this.object.left)/this.object.zoom/i.clientWidth,this.object.matrix),this._panUp(t*(this.object.top-this.object.bottom)/this.object.zoom/i.clientHeight,this.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),this.enablePan=!1)}_dollyOut(e){this.object.isPerspectiveCamera||this.object.isOrthographicCamera?this._scale/=e:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),this.enableZoom=!1)}_dollyIn(e){this.object.isPerspectiveCamera||this.object.isOrthographicCamera?this._scale*=e:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),this.enableZoom=!1)}_updateZoomParameters(e,t){if(!this.zoomToCursor)return;this._performCursorZoom=!0;const i=this.domElement.getBoundingClientRect(),n=e-i.left,r=t-i.top,o=i.width,a=i.height;this._mouse.x=n/o*2-1,this._mouse.y=-(r/a)*2+1,this._dollyDirection.set(this._mouse.x,this._mouse.y,1).unproject(this.object).sub(this.object.position).normalize()}_clampDistance(e){return Math.max(this.minDistance,Math.min(this.maxDistance,e))}_handleMouseDownRotate(e){this._rotateStart.set(e.clientX,e.clientY)}_handleMouseDownDolly(e){this._updateZoomParameters(e.clientX,e.clientX),this._dollyStart.set(e.clientX,e.clientY)}_handleMouseDownPan(e){this._panStart.set(e.clientX,e.clientY)}_handleMouseMoveRotate(e){this._rotateEnd.set(e.clientX,e.clientY),this._rotateDelta.subVectors(this._rotateEnd,this._rotateStart).multiplyScalar(this.rotateSpeed);const t=this.domElement;this._rotateLeft(Me*this._rotateDelta.x/t.clientHeight),this._rotateUp(Me*this._rotateDelta.y/t.clientHeight),this._rotateStart.copy(this._rotateEnd),this.update()}_handleMouseMoveDolly(e){this._dollyEnd.set(e.clientX,e.clientY),this._dollyDelta.subVectors(this._dollyEnd,this._dollyStart),this._dollyDelta.y>0?this._dollyOut(this._getZoomScale(this._dollyDelta.y)):this._dollyDelta.y<0&&this._dollyIn(this._getZoomScale(this._dollyDelta.y)),this._dollyStart.copy(this._dollyEnd),this.update()}_handleMouseMovePan(e){this._panEnd.set(e.clientX,e.clientY),this._panDelta.subVectors(this._panEnd,this._panStart).multiplyScalar(this.panSpeed),this._pan(this._panDelta.x,this._panDelta.y),this._panStart.copy(this._panEnd),this.update()}_handleMouseWheel(e){this._updateZoomParameters(e.clientX,e.clientY),e.deltaY<0?this._dollyIn(this._getZoomScale(e.deltaY)):e.deltaY>0&&this._dollyOut(this._getZoomScale(e.deltaY)),this.update()}_handleKeyDown(e){let t=!1;switch(e.code){case this.keys.UP:e.ctrlKey||e.metaKey||e.shiftKey?this.enableRotate&&this._rotateUp(Me*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(0,this.keyPanSpeed),t=!0;break;case this.keys.BOTTOM:e.ctrlKey||e.metaKey||e.shiftKey?this.enableRotate&&this._rotateUp(-Me*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(0,-this.keyPanSpeed),t=!0;break;case this.keys.LEFT:e.ctrlKey||e.metaKey||e.shiftKey?this.enableRotate&&this._rotateLeft(Me*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(this.keyPanSpeed,0),t=!0;break;case this.keys.RIGHT:e.ctrlKey||e.metaKey||e.shiftKey?this.enableRotate&&this._rotateLeft(-Me*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(-this.keyPanSpeed,0),t=!0;break}t&&(e.preventDefault(),this.update())}_handleTouchStartRotate(e){if(this._pointers.length===1)this._rotateStart.set(e.pageX,e.pageY);else{const t=this._getSecondPointerPosition(e),i=.5*(e.pageX+t.x),n=.5*(e.pageY+t.y);this._rotateStart.set(i,n)}}_handleTouchStartPan(e){if(this._pointers.length===1)this._panStart.set(e.pageX,e.pageY);else{const t=this._getSecondPointerPosition(e),i=.5*(e.pageX+t.x),n=.5*(e.pageY+t.y);this._panStart.set(i,n)}}_handleTouchStartDolly(e){const t=this._getSecondPointerPosition(e),i=e.pageX-t.x,n=e.pageY-t.y,r=Math.sqrt(i*i+n*n);this._dollyStart.set(0,r)}_handleTouchStartDollyPan(e){this.enableZoom&&this._handleTouchStartDolly(e),this.enablePan&&this._handleTouchStartPan(e)}_handleTouchStartDollyRotate(e){this.enableZoom&&this._handleTouchStartDolly(e),this.enableRotate&&this._handleTouchStartRotate(e)}_handleTouchMoveRotate(e){if(this._pointers.length==1)this._rotateEnd.set(e.pageX,e.pageY);else{const i=this._getSecondPointerPosition(e),n=.5*(e.pageX+i.x),r=.5*(e.pageY+i.y);this._rotateEnd.set(n,r)}this._rotateDelta.subVectors(this._rotateEnd,this._rotateStart).multiplyScalar(this.rotateSpeed);const t=this.domElement;this._rotateLeft(Me*this._rotateDelta.x/t.clientHeight),this._rotateUp(Me*this._rotateDelta.y/t.clientHeight),this._rotateStart.copy(this._rotateEnd)}_handleTouchMovePan(e){if(this._pointers.length===1)this._panEnd.set(e.pageX,e.pageY);else{const t=this._getSecondPointerPosition(e),i=.5*(e.pageX+t.x),n=.5*(e.pageY+t.y);this._panEnd.set(i,n)}this._panDelta.subVectors(this._panEnd,this._panStart).multiplyScalar(this.panSpeed),this._pan(this._panDelta.x,this._panDelta.y),this._panStart.copy(this._panEnd)}_handleTouchMoveDolly(e){const t=this._getSecondPointerPosition(e),i=e.pageX-t.x,n=e.pageY-t.y,r=Math.sqrt(i*i+n*n);this._dollyEnd.set(0,r),this._dollyDelta.set(0,Math.pow(this._dollyEnd.y/this._dollyStart.y,this.zoomSpeed)),this._dollyOut(this._dollyDelta.y),this._dollyStart.copy(this._dollyEnd);const o=(e.pageX+t.x)*.5,a=(e.pageY+t.y)*.5;this._updateZoomParameters(o,a)}_handleTouchMoveDollyPan(e){this.enableZoom&&this._handleTouchMoveDolly(e),this.enablePan&&this._handleTouchMovePan(e)}_handleTouchMoveDollyRotate(e){this.enableZoom&&this._handleTouchMoveDolly(e),this.enableRotate&&this._handleTouchMoveRotate(e)}_addPointer(e){this._pointers.push(e.pointerId)}_removePointer(e){delete this._pointerPositions[e.pointerId];for(let t=0;t=2.0 are supported."));return}const h=new fd(r,{path:t||this.resourcePath||"",crossOrigin:this.crossOrigin,requestHeader:this.requestHeader,manager:this.manager,ktx2Loader:this.ktx2Loader,meshoptDecoder:this.meshoptDecoder});h.fileLoader.setRequestHeader(this.requestHeader);for(let c=0;c=0&&a[u]===void 0&&console.warn('THREE.GLTFLoader: Unknown extension "'+u+'".')}}h.setExtensions(o),h.setPlugins(a),h.parse(i,n)}parseAsync(e,t){const i=this;return new Promise(function(n,r){i.parse(e,t,n,r)})}}function Mf(){let s={};return{get:function(e){return s[e]},add:function(e,t){s[e]=t},remove:function(e){delete s[e]},removeAll:function(){s={}}}}const H={KHR_BINARY_GLTF:"KHR_binary_glTF",KHR_DRACO_MESH_COMPRESSION:"KHR_draco_mesh_compression",KHR_LIGHTS_PUNCTUAL:"KHR_lights_punctual",KHR_MATERIALS_CLEARCOAT:"KHR_materials_clearcoat",KHR_MATERIALS_DISPERSION:"KHR_materials_dispersion",KHR_MATERIALS_IOR:"KHR_materials_ior",KHR_MATERIALS_SHEEN:"KHR_materials_sheen",KHR_MATERIALS_SPECULAR:"KHR_materials_specular",KHR_MATERIALS_TRANSMISSION:"KHR_materials_transmission",KHR_MATERIALS_IRIDESCENCE:"KHR_materials_iridescence",KHR_MATERIALS_ANISOTROPY:"KHR_materials_anisotropy",KHR_MATERIALS_UNLIT:"KHR_materials_unlit",KHR_MATERIALS_VOLUME:"KHR_materials_volume",KHR_TEXTURE_BASISU:"KHR_texture_basisu",KHR_TEXTURE_TRANSFORM:"KHR_texture_transform",KHR_MESH_QUANTIZATION:"KHR_mesh_quantization",KHR_MATERIALS_EMISSIVE_STRENGTH:"KHR_materials_emissive_strength",EXT_MATERIALS_BUMP:"EXT_materials_bump",EXT_TEXTURE_WEBP:"EXT_texture_webp",EXT_TEXTURE_AVIF:"EXT_texture_avif",EXT_MESHOPT_COMPRESSION:"EXT_meshopt_compression",EXT_MESH_GPU_INSTANCING:"EXT_mesh_gpu_instancing"};class Ef{constructor(e){this.parser=e,this.name=H.KHR_LIGHTS_PUNCTUAL,this.cache={refs:{},uses:{}}}_markDefs(){const e=this.parser,t=this.parser.json.nodes||[];for(let i=0,n=t.length;i=0)throw new Error("THREE.GLTFLoader: setKTX2Loader must be called before loading KTX2 textures");return null}return t.loadTextureImage(e,r.source,o)}}class Yf{constructor(e){this.parser=e,this.name=H.EXT_TEXTURE_WEBP,this.isSupported=null}loadTexture(e){const t=this.name,i=this.parser,n=i.json,r=n.textures[e];if(!r.extensions||!r.extensions[t])return null;const o=r.extensions[t],a=n.images[o.source];let l=i.textureLoader;if(a.uri){const h=i.options.manager.getHandler(a.uri);h!==null&&(l=h)}return this.detectSupport().then(function(h){if(h)return i.loadTextureImage(e,o.source,l);if(n.extensionsRequired&&n.extensionsRequired.indexOf(t)>=0)throw new Error("THREE.GLTFLoader: WebP required by asset but unsupported.");return i.loadTexture(e)})}detectSupport(){return this.isSupported||(this.isSupported=new Promise(function(e){const t=new Image;t.src="data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",t.onload=t.onerror=function(){e(t.height===1)}})),this.isSupported}}class Ff{constructor(e){this.parser=e,this.name=H.EXT_TEXTURE_AVIF,this.isSupported=null}loadTexture(e){const t=this.name,i=this.parser,n=i.json,r=n.textures[e];if(!r.extensions||!r.extensions[t])return null;const o=r.extensions[t],a=n.images[o.source];let l=i.textureLoader;if(a.uri){const h=i.options.manager.getHandler(a.uri);h!==null&&(l=h)}return this.detectSupport().then(function(h){if(h)return i.loadTextureImage(e,o.source,l);if(n.extensionsRequired&&n.extensionsRequired.indexOf(t)>=0)throw new Error("THREE.GLTFLoader: AVIF required by asset but unsupported.");return i.loadTexture(e)})}detectSupport(){return this.isSupported||(this.isSupported=new Promise(function(e){const t=new Image;t.src="data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAABcAAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAEAAAABAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQAMAAAAABNjb2xybmNseAACAAIABoAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAAB9tZGF0EgAKCBgABogQEDQgMgkQAAAAB8dSLfI=",t.onload=t.onerror=function(){e(t.height===1)}})),this.isSupported}}class Hf{constructor(e){this.name=H.EXT_MESHOPT_COMPRESSION,this.parser=e}loadBufferView(e){const t=this.parser.json,i=t.bufferViews[e];if(i.extensions&&i.extensions[this.name]){const n=i.extensions[this.name],r=this.parser.getDependency("buffer",n.buffer),o=this.parser.options.meshoptDecoder;if(!o||!o.supported){if(t.extensionsRequired&&t.extensionsRequired.indexOf(this.name)>=0)throw new Error("THREE.GLTFLoader: setMeshoptDecoder must be called before loading compressed files");return null}return r.then(function(a){const l=n.byteOffset||0,h=n.byteLength||0,c=n.count,u=n.byteStride,f=new Uint8Array(a,l,h);return o.decodeGltfBufferAsync?o.decodeGltfBufferAsync(c,u,f,n.mode,n.filter).then(function(d){return d.buffer}):o.ready.then(function(){const d=new ArrayBuffer(c*u);return o.decodeGltfBuffer(new Uint8Array(d),c,u,f,n.mode,n.filter),d})})}else return null}}class Kf{constructor(e){this.name=H.EXT_MESH_GPU_INSTANCING,this.parser=e}createNodeMesh(e){const t=this.parser.json,i=t.nodes[e];if(!i.extensions||!i.extensions[this.name]||i.mesh===void 0)return null;const n=t.meshes[i.mesh];for(const h of n.primitives)if(h.mode!==We.TRIANGLES&&h.mode!==We.TRIANGLE_STRIP&&h.mode!==We.TRIANGLE_FAN&&h.mode!==void 0)return null;const o=i.extensions[this.name].attributes,a=[],l={};for(const h in o)a.push(this.parser.getDependency("accessor",o[h]).then(c=>(l[h]=c,l[h])));return a.length<1?null:(a.push(this.parser.createNodeMesh(e)),Promise.all(a).then(h=>{const c=h.pop(),u=c.isGroup?c.children:[c],f=h[0].count,d=[];for(const p of u){const O=new Hn,m=new fe,g=new Fn,k=new fe(1,1,1),P=new Ou(p.geometry,p.material,f);for(let y=0;y0||s.search(/^data\:image\/jpeg/)===0?"image/jpeg":s.search(/\.webp($|\?)/i)>0||s.search(/^data\:image\/webp/)===0?"image/webp":s.search(/\.ktx2($|\?)/i)>0||s.search(/^data\:image\/ktx2/)===0?"image/ktx2":"image/png"}const ud=new Hn;class fd{constructor(e={},t={}){this.json=e,this.extensions={},this.plugins={},this.options=t,this.cache=new Mf,this.associations=new Map,this.primitiveCache={},this.nodeCache={},this.meshCache={refs:{},uses:{}},this.cameraCache={refs:{},uses:{}},this.lightCache={refs:{},uses:{}},this.sourceCache={},this.textureCache={},this.nodeNamesUsed={};let i=!1,n=-1,r=!1,o=-1;if(typeof navigator<"u"){const a=navigator.userAgent;i=/^((?!chrome|android).)*safari/i.test(a)===!0;const l=a.match(/Version\/(\d+)/);n=i&&l?parseInt(l[1],10):-1,r=a.indexOf("Firefox")>-1,o=r?a.match(/Firefox\/([0-9]+)\./)[1]:-1}typeof createImageBitmap>"u"||i&&n<17||r&&o<98?this.textureLoader=new gu(this.options.manager):this.textureLoader=new yu(this.options.manager),this.textureLoader.setCrossOrigin(this.options.crossOrigin),this.textureLoader.setRequestHeader(this.options.requestHeader),this.fileLoader=new io(this.options.manager),this.fileLoader.setResponseType("arraybuffer"),this.options.crossOrigin==="use-credentials"&&this.fileLoader.setWithCredentials(!0)}setExtensions(e){this.extensions=e}setPlugins(e){this.plugins=e}parse(e,t){const i=this,n=this.json,r=this.extensions;this.cache.removeAll(),this.nodeCache={},this._invokeAll(function(o){return o._markDefs&&o._markDefs()}),Promise.all(this._invokeAll(function(o){return o.beforeRoot&&o.beforeRoot()})).then(function(){return Promise.all([i.getDependencies("scene"),i.getDependencies("animation"),i.getDependencies("camera")])}).then(function(o){const a={scene:o[0][n.scene||0],scenes:o[0],animations:o[1],cameras:o[2],asset:n.asset,parser:i,userData:{}};return Vt(r,a,n),bt(a,n),Promise.all(i._invokeAll(function(l){return l.afterRoot&&l.afterRoot(a)})).then(function(){for(const l of a.scenes)l.updateMatrixWorld();e(a)})}).catch(t)}_markDefs(){const e=this.json.nodes||[],t=this.json.skins||[],i=this.json.meshes||[];for(let n=0,r=t.length;n{const l=this.associations.get(o);l!=null&&this.associations.set(a,l);for(const[h,c]of o.children.entries())r(c,a.children[h])};return r(i,n),n.name+="_instance_"+e.uses[t]++,n}_invokeOne(e){const t=Object.values(this.plugins);t.push(this);for(let i=0;i=2&&m.setY($,S[w*l+1]),l>=3&&m.setZ($,S[w*l+2]),l>=4&&m.setW($,S[w*l+3]),l>=5)throw new Error("THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.")}m.normalized=p}return m})}loadTexture(e){const t=this.json,i=this.options,r=t.textures[e].source,o=t.images[r];let a=this.textureLoader;if(o.uri){const l=i.manager.getHandler(o.uri);l!==null&&(a=l)}return this.loadTextureImage(e,r,a)}loadTextureImage(e,t,i){const n=this,r=this.json,o=r.textures[e],a=r.images[t],l=(a.uri||a.bufferView)+":"+o.sampler;if(this.textureCache[l])return this.textureCache[l];const h=this.loadImageSource(t,i).then(function(c){c.flipY=!1,c.name=o.name||a.name||"",c.name===""&&typeof a.uri=="string"&&a.uri.startsWith("data:image/")===!1&&(c.name=a.uri);const f=(r.samplers||{})[o.sampler]||{};return c.magFilter=Bo[f.magFilter]||or,c.minFilter=Bo[f.minFilter]||Rl,c.wrapS=No[f.wrapS]||ar,c.wrapT=No[f.wrapT]||ar,c.generateMipmaps=!c.isCompressedTexture&&c.minFilter!==Cl&&c.minFilter!==or,n.associations.set(c,{textures:e}),c}).catch(function(){return null});return this.textureCache[l]=h,h}loadImageSource(e,t){const i=this,n=this.json,r=this.options;if(this.sourceCache[e]!==void 0)return this.sourceCache[e].then(u=>u.clone());const o=n.images[e],a=self.URL||self.webkitURL;let l=o.uri||"",h=!1;if(o.bufferView!==void 0)l=i.getDependency("bufferView",o.bufferView).then(function(u){h=!0;const f=new Blob([u],{type:o.mimeType});return l=a.createObjectURL(f),l});else if(o.uri===void 0)throw new Error("THREE.GLTFLoader: Image "+e+" is missing URI and bufferView");const c=Promise.resolve(l).then(function(u){return new Promise(function(f,d){let p=f;t.isImageBitmapLoader===!0&&(p=function(O){const m=new Ro(O);m.needsUpdate=!0,f(m)}),t.load(zi.resolveURL(u,r.path),p,void 0,d)})}).then(function(u){return h===!0&&a.revokeObjectURL(l),bt(u,o),u.userData.mimeType=o.mimeType||cd(o.uri),u}).catch(function(u){throw console.error("THREE.GLTFLoader: Couldn't load texture",l),u});return this.sourceCache[e]=c,c}assignTexture(e,t,i,n){const r=this;return this.getDependency("texture",i.index).then(function(o){if(!o)return null;if(i.texCoord!==void 0&&i.texCoord>0&&(o=o.clone(),o.channel=i.texCoord),r.extensions[H.KHR_TEXTURE_TRANSFORM]){const a=i.extensions!==void 0?i.extensions[H.KHR_TEXTURE_TRANSFORM]:void 0;if(a){const l=r.associations.get(o);o=r.extensions[H.KHR_TEXTURE_TRANSFORM].extendTexture(o,a),r.associations.set(o,l)}}return n!==void 0&&(o.colorSpace=n),e[t]=o,o})}assignFinalMaterial(e){const t=e.geometry;let i=e.material;const n=t.attributes.tangent===void 0,r=t.attributes.color!==void 0,o=t.attributes.normal===void 0;if(e.isPoints){const a="PointsMaterial:"+i.uuid;let l=this.cache.get(a);l||(l=new Di,Wi.prototype.copy.call(l,i),l.color.copy(i.color),l.map=i.map,l.sizeAttenuation=!1,this.cache.add(a,l)),i=l}else if(e.isLine){const a="LineBasicMaterial:"+i.uuid;let l=this.cache.get(a);l||(l=new Dn,Wi.prototype.copy.call(l,i),l.color.copy(i.color),l.map=i.map,this.cache.add(a,l)),i=l}if(n||r||o){let a="ClonedMaterial:"+i.uuid+":";n&&(a+="derivative-tangents:"),r&&(a+="vertex-colors:"),o&&(a+="flat-shading:");let l=this.cache.get(a);l||(l=i.clone(),r&&(l.vertexColors=!0),o&&(l.flatShading=!0),n&&(l.normalScale&&(l.normalScale.y*=-1),l.clearcoatNormalScale&&(l.clearcoatNormalScale.y*=-1)),this.cache.add(a,l),this.associations.set(l,this.associations.get(i))),i=l}e.material=i}getMaterialType(){return Gi}loadMaterial(e){const t=this,i=this.json,n=this.extensions,r=i.materials[e];let o;const a={},l=r.extensions||{},h=[];if(l[H.KHR_MATERIALS_UNLIT]){const u=n[H.KHR_MATERIALS_UNLIT];o=u.getMaterialType(),h.push(u.extendParams(a,r,t))}else{const u=r.pbrMetallicRoughness||{};if(a.color=new Pt(1,1,1),a.opacity=1,Array.isArray(u.baseColorFactor)){const f=u.baseColorFactor;a.color.setRGB(f[0],f[1],f[2],vt),a.opacity=f[3]}u.baseColorTexture!==void 0&&h.push(t.assignTexture(a,"map",u.baseColorTexture,bi)),a.metalness=u.metallicFactor!==void 0?u.metallicFactor:1,a.roughness=u.roughnessFactor!==void 0?u.roughnessFactor:1,u.metallicRoughnessTexture!==void 0&&(h.push(t.assignTexture(a,"metalnessMap",u.metallicRoughnessTexture)),h.push(t.assignTexture(a,"roughnessMap",u.metallicRoughnessTexture))),o=this._invokeOne(function(f){return f.getMaterialType&&f.getMaterialType(e)}),h.push(Promise.all(this._invokeAll(function(f){return f.extendMaterialParams&&f.extendMaterialParams(e,a)})))}r.doubleSided===!0&&(a.side=Pu);const c=r.alphaMode||Rs.OPAQUE;if(c===Rs.BLEND?(a.transparent=!0,a.depthWrite=!1):(a.transparent=!1,c===Rs.MASK&&(a.alphaTest=r.alphaCutoff!==void 0?r.alphaCutoff:.5)),r.normalTexture!==void 0&&o!==ji&&(h.push(t.assignTexture(a,"normalMap",r.normalTexture)),a.normalScale=new Be(1,1),r.normalTexture.scale!==void 0)){const u=r.normalTexture.scale;a.normalScale.set(u,u)}if(r.occlusionTexture!==void 0&&o!==ji&&(h.push(t.assignTexture(a,"aoMap",r.occlusionTexture)),r.occlusionTexture.strength!==void 0&&(a.aoMapIntensity=r.occlusionTexture.strength)),r.emissiveFactor!==void 0&&o!==ji){const u=r.emissiveFactor;a.emissive=new Pt().setRGB(u[0],u[1],u[2],vt)}return r.emissiveTexture!==void 0&&o!==ji&&h.push(t.assignTexture(a,"emissiveMap",r.emissiveTexture,bi)),Promise.all(h).then(function(){const u=new o(a);return r.name&&(u.name=r.name),bt(u,r),t.associations.set(u,{materials:e}),r.extensions&&Vt(n,u,r),u})}createUniqueName(e){const t=vu.sanitizeNodeName(e||"");return t in this.nodeNamesUsed?t+"_"+ ++this.nodeNamesUsed[t]:(this.nodeNamesUsed[t]=0,t)}loadGeometries(e){const t=this,i=this.extensions,n=this.primitiveCache;function r(a){return i[H.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(a,t).then(function(l){return Uo(l,a,t)})}const o=[];for(let a=0,l=e.length;a0&&ld(g,r),g.name=t.createUniqueName(r.name||"mesh_"+e),bt(g,r),m.extensions&&Vt(n,g,m),t.assignFinalMaterial(g),u.push(g)}for(let d=0,p=u.length;d1?c=new fi:h.length===1?c=h[0]:c=new Zl,c!==h[0])for(let u=0,f=h.length;u{const u=new Map;for(const[f,d]of n.associations)(f instanceof Wi||f instanceof Ro)&&u.set(f,d);return c.traverse(f=>{const d=n.associations.get(f);d!=null&&u.set(f,d)}),u};return n.associations=h(r),r})}_createAnimationTracks(e,t,i,n,r){const o=[],a=e.name?e.name:e.uuid,l=[];Tt[r.path]===Tt.weights?e.traverse(function(f){f.morphTargetInfluences&&l.push(f.name?f.name:f.uuid)}):l.push(a);let h;switch(Tt[r.path]){case Tt.weights:h=Mo;break;case Tt.rotation:h=Eo;break;case Tt.position:case Tt.scale:h=Co;break;default:switch(i.itemSize){case 1:h=Mo;break;case 2:case 3:default:h=Co;break}break}const c=n.interpolation!==void 0?rd[n.interpolation]:El,u=this._getArrayFromAccessor(i);for(let f=0,d=l.length;f0?r[r.length-1]:"",smooth:o!==void 0?o.smooth:this.smooth,groupStart:o!==void 0?o.groupEnd:0,groupEnd:-1,groupCount:-1,inherited:!1,clone:function(l){const h={index:typeof l=="number"?l:this.index,name:this.name,mtllib:this.mtllib,smooth:this.smooth,groupStart:0,groupEnd:-1,groupCount:-1,inherited:!1};return h.clone=this.clone.bind(h),h}};return this.materials.push(a),a},currentMaterial:function(){if(this.materials.length>0)return this.materials[this.materials.length-1]},_finalize:function(n){const r=this.currentMaterial();if(r&&r.groupEnd===-1&&(r.groupEnd=this.geometry.vertices.length/3,r.groupCount=r.groupEnd-r.groupStart,r.inherited=!1),n&&this.materials.length>1)for(let o=this.materials.length-1;o>=0;o--)this.materials[o].groupCount<=0&&this.materials.splice(o,1);return n&&this.materials.length===0&&this.materials.push({name:"",smooth:this.smooth}),r}},i&&i.name&&typeof i.clone=="function"){const n=i.clone(0);n.inherited=!0,this.object.materials.push(n)}this.objects.push(this.object)},finalize:function(){this.object&&typeof this.object._finalize=="function"&&this.object._finalize(!0)},parseVertexIndex:function(e,t){const i=parseInt(e,10);return(i>=0?i-1:i+t/3)*3},parseNormalIndex:function(e,t){const i=parseInt(e,10);return(i>=0?i-1:i+t/3)*3},parseUVIndex:function(e,t){const i=parseInt(e,10);return(i>=0?i-1:i+t/2)*2},addVertex:function(e,t,i){const n=this.vertices,r=this.object.geometry.vertices;r.push(n[e+0],n[e+1],n[e+2]),r.push(n[t+0],n[t+1],n[t+2]),r.push(n[i+0],n[i+1],n[i+2])},addVertexPoint:function(e){const t=this.vertices;this.object.geometry.vertices.push(t[e+0],t[e+1],t[e+2])},addVertexLine:function(e){const t=this.vertices;this.object.geometry.vertices.push(t[e+0],t[e+1],t[e+2])},addNormal:function(e,t,i){const n=this.normals,r=this.object.geometry.normals;r.push(n[e+0],n[e+1],n[e+2]),r.push(n[t+0],n[t+1],n[t+2]),r.push(n[i+0],n[i+1],n[i+2])},addFaceNormal:function(e,t,i){const n=this.vertices,r=this.object.geometry.normals;zo.fromArray(n,e),Ms.fromArray(n,t),Wo.fromArray(n,i),ze.subVectors(Wo,Ms),Go.subVectors(zo,Ms),ze.cross(Go),ze.normalize(),r.push(ze.x,ze.y,ze.z),r.push(ze.x,ze.y,ze.z),r.push(ze.x,ze.y,ze.z)},addColor:function(e,t,i){const n=this.colors,r=this.object.geometry.colors;n[e]!==void 0&&r.push(n[e+0],n[e+1],n[e+2]),n[t]!==void 0&&r.push(n[t+0],n[t+1],n[t+2]),n[i]!==void 0&&r.push(n[i+0],n[i+1],n[i+2])},addUV:function(e,t,i){const n=this.uvs,r=this.object.geometry.uvs;r.push(n[e+0],n[e+1]),r.push(n[t+0],n[t+1]),r.push(n[i+0],n[i+1])},addDefaultUV:function(){const e=this.object.geometry.uvs;e.push(0,0),e.push(0,0),e.push(0,0)},addUVLine:function(e){const t=this.uvs;this.object.geometry.uvs.push(t[e+0],t[e+1])},addFace:function(e,t,i,n,r,o,a,l,h){const c=this.vertices.length;let u=this.parseVertexIndex(e,c),f=this.parseVertexIndex(t,c),d=this.parseVertexIndex(i,c);if(this.addVertex(u,f,d),this.addColor(u,f,d),a!==void 0&&a!==""){const p=this.normals.length;u=this.parseNormalIndex(a,p),f=this.parseNormalIndex(l,p),d=this.parseNormalIndex(h,p),this.addNormal(u,f,d)}else this.addFaceNormal(u,f,d);if(n!==void 0&&n!==""){const p=this.uvs.length;u=this.parseUVIndex(n,p),f=this.parseUVIndex(r,p),d=this.parseUVIndex(o,p),this.addUV(u,f,d),this.object.geometry.hasUVIndices=!0}else this.addDefaultUV()},addPointGeometry:function(e){this.object.geometry.type="Points";const t=this.vertices.length;for(let i=0,n=e.length;i=7?(Sn.setRGB(parseFloat(u[4]),parseFloat(u[5]),parseFloat(u[6]),bi),t.colors.push(Sn.r,Sn.g,Sn.b)):t.colors.push(void 0,void 0,void 0);break;case"vn":t.normals.push(parseFloat(u[1]),parseFloat(u[2]),parseFloat(u[3]));break;case"vt":t.uvs.push(parseFloat(u[1]),parseFloat(u[2]));break}}else if(c==="f"){const f=h.slice(1).trim().split(qo),d=[];for(let O=0,m=f.length;O0){const k=g.split("/");d.push(k)}}const p=d[0];for(let O=1,m=d.length-1;O1){const f=n[1].trim().toLowerCase();t.object.smooth=f!=="0"&&f!=="off"}else t.object.smooth=!0;const u=t.object.currentMaterial();u&&(u.smooth=t.object.smooth)}else{if(h==="\0")continue;console.warn('THREE.OBJLoader: Unexpected line: "'+h+'"')}}t.finalize();const r=new fi;if(r.materialLibraries=[].concat(t.materialLibraries),!(t.objects.length===1&&t.objects[0].geometry.vertices.length===0)===!0)for(let a=0,l=t.objects.length;a0&&O.setAttribute("normal",new si(c.normals,3)),c.colors.length>0&&(p=!0,O.setAttribute("color",new si(c.colors,3))),c.hasUVIndices===!0&&O.setAttribute("uv",new si(c.uvs,2));const m=[];for(let k=0,P=u.length;k1){for(let k=0,P=u.length;k0){const a=new Di({size:1,sizeAttenuation:!1}),l=new lr;l.setAttribute("position",new si(t.vertices,3)),t.colors.length>0&&t.colors[0]!==void 0&&(l.setAttribute("color",new si(t.colors,3)),a.vertexColors=!0);const h=new jn(l,a);r.add(h)}return r}}var Sd=Vu();const xd=Bu(Sd),wd={class:"chart-3d-container"},Qd={class:"data-panel"},kd={class:"model-controls"},Pd=pt({__name:"Chart3D",setup(s){const e=ie(null),t=ie(0),i=ie(0),n=ie(0),r=ie("arrow"),o=ie(null),a=ie(null),l=un(),h=Ji(()=>l.value?1710618:15790320),c=Ji(()=>l.value?4890367:3368703);let u,f,d,p,O,m,g;const k=()=>{u=new Nu,u.background=new Pt(h.value);const j=new Uu(5);u.add(j),g=new xd,g.showPanel(0),g.dom.style.position="absolute",g.dom.style.left="0px",g.dom.style.top="0px",e.value.appendChild(g.dom),f=new Ml(75,e.value.clientWidth/e.value.clientHeight,.1,1e3),f.position.set(2,2,2),f.lookAt(0,0,0),d=new qu({antialias:!0}),d.setSize(e.value.clientWidth,e.value.clientHeight),e.value.appendChild(d.domElement),O=new Sf(f,d.domElement),O.enableDamping=!0,Q(r.value),w()},P=()=>{const j=new fi,L=new Wu(.5,1.4,12),V=new Gi({color:c.value,metalness:.6,roughness:.3,envMapIntensity:1.2}),oe=new ui(L,V);oe.position.set(0,0,-.6),oe.rotation.x=-Math.PI/2,j.add(oe);const Ce=new Xo(.4,.4,1),Je=new Gi({color:c.value,metalness:.6,roughness:.3,envMapIntensity:1.2}),T=new ui(Ce,Je);return T.position.set(0,0,.3),j.add(T),j},y=()=>{const j=new fi,L=new Xo(1,1,1),V=new Gi({color:c.value,metalness:.7,roughness:.3,envMapIntensity:1}),oe=new ui(L,V);return j.add(oe),j},Q=j=>{switch(p&&u.remove(p),j){case"arrow":p=P();break;case"cube":p=y();break;case"custom":o?p=o.value:p=P();break;default:p=P()}u.add(p)},S=j=>{var Ce,Je;const L=(Ce=j.target.files)==null?void 0:Ce[0];if(!L)return;const V=(Je=L.name.split(".").pop())==null?void 0:Je.toLowerCase(),oe=new FileReader;oe.onload=T=>{var X;const B=(X=T.target)==null?void 0:X.result;if(B)if(V==="gltf"||V==="glb")new Cf().parse(B,"",G=>{o.value=G.scene,r.value="custom",Q("custom")},G=>{ae.error("加载模型失败:"+G.message)});else if(V==="obj"){const F=new bd;try{const G=F.parse(B);o.value=G,r.value="custom",Q("custom")}catch(G){ae.error("加载模型失败:"+G.message)}}else ae.error("不支持的文件格式,请使用.gltf、.glb或.obj格式的3D模型文件")},oe.readAsText(L)},w=()=>{const j=new zu(16777215,6);u.add(j);const L=new rr(16777215,12);L.position.set(5,5,10),u.add(L);const V=new rr(16777215,1);V.position.set(-5,3,-5),u.add(V);const oe=new Al(4890367,1,10);oe.position.set(2,2,2),u.add(oe)},A=()=>{m=requestAnimationFrame(A),g.begin(),p&&p.rotation.set(qi.degToRad(i.value),qi.degToRad(n.value),qi.degToRad(t.value)),O.update(),d.render(u,f),g.end()},$=()=>{e.value&&f&&d&&(f.aspect=e.value.clientWidth/e.value.clientHeight,f.updateProjectionMatrix(),d.setSize(e.value.clientWidth,e.value.clientHeight))},N=j=>{const L=j.detail;if(!L||typeof L.pitch!="number")return;const{pitch:V,roll:oe,yaw:Ce}=L;t.value=V,i.value=oe,n.value=Ce},U=()=>{r.value==="arrow"?r.value="cube":(r.value,r.value="arrow"),Q(r.value)},D=()=>{var j;(j=a.value)==null||j.click()};return $i(()=>{k(),A(),window.addEventListener("resize",$),window.addEventListener("data-update",N)}),cn(()=>{m&&cancelAnimationFrame(m),window.removeEventListener("resize",$),window.removeEventListener("data-update",N),d.dispose()}),(j,L)=>{const V=R("el-button");return q(),he("div",wd,[E("div",{ref_key:"container",ref:e,class:"canvas-container"},null,512),E("div",Qd,[E("div",null,"Pitch: "+_e(t.value.toFixed(2))+"°",1),E("div",null,"Roll: "+_e(i.value.toFixed(2))+"°",1),E("div",null,"Yaw: "+_e(n.value.toFixed(2))+"°",1),E("div",kd,[x(V,{class:"model-switch",onClick:U,size:"small"},{default:v(()=>L[0]||(L[0]=[J(" 切换模型 ")])),_:1}),x(V,{class:"model-upload",onClick:D,size:"small"},{default:v(()=>L[1]||(L[1]=[J(" 导入模型 ")])),_:1}),E("input",{ref_key:"fileInput",ref:a,type:"file",accept:".gltf,.glb,.obj",style:{display:"none"},onChange:S},null,544)])])])}}}),vd=mt(Pd,[["__scopeId","data-v-b7827acd"]]),jl=$l("field",{state:()=>({fields:[],nextId:1,columnVisibility:{key:!0,name:!1,dataType:!0,description:!1,value:!0,min:!1,max:!1,lastUpdate:!0,updateCount:!0}}),actions:{createField(s,e,t){const i={id:this.nextId++,key:s,name:s,description:"",value:e,dataType:t||"number",min:typeof e=="number"?e:null,max:typeof e=="number"?e:null,lastUpdate:Date.now(),updateCount:1,isEditing:!1};return this.fields.push(i),this.saveToLocalStorage(),i},initDefaultFields(){this.fields.length===0&&(this.createField("pitch",0,"number"),this.createField("roll",0,"number"),this.createField("yaw",0,"number"))},updateField(s,e){s.value=e,s.lastUpdate=Date.now(),s.updateCount++,typeof e=="number"&&((s.min===null||es.max)&&(s.max=e)),this.saveToLocalStorage()},deleteField(s){const e=this.fields.findIndex(t=>t.id===s);e!==-1&&(this.fields.splice(e,1),this.saveToLocalStorage())},toggleColumnVisibility(){localStorage.setItem("columnVisibility",JSON.stringify(this.columnVisibility))},saveToLocalStorage(){localStorage.setItem("fields",JSON.stringify(this.fields)),localStorage.setItem("nextId",String(this.nextId))},loadFromLocalStorage(){const s=localStorage.getItem("fields"),e=localStorage.getItem("nextId"),t=localStorage.getItem("columnVisibility");s&&(this.fields=JSON.parse(s)),e&&(this.nextId=parseInt(e,10)),t&&(this.columnVisibility=JSON.parse(t)),this.initDefaultFields()},exportData(){const s=JSON.stringify(this.fields,null,2),e=new Blob([s],{type:"application/json"}),t=URL.createObjectURL(e),i=document.createElement("a");i.href=t,i.download=`data-export-${new Date().toISOString()}.json`,i.click(),URL.revokeObjectURL(t)},async importData(s){try{const e=await s.text(),t=JSON.parse(e);return this.fields=t,this.saveToLocalStorage(),!0}catch(e){return console.error("导入数据失败:",e),!1}}}}),$d={class:"chart-panel"},Td={class:"chart-controls"},_d={class:"charts-container"},Ad={class:"chart-header"},Zd={class:"field-selector"},Rd={class:"chart-content"},Cd={class:"fields-list"},Md=pt({__name:"ChartPanel",setup(s){const e=jl(),i=Ht.getInstance().useConfig("charts"),n=ie([]);let r=Ji(()=>n.value.reduce((S,w)=>Math.max(S,w.id),0)+1);const o=un(),a={background:"#1e1e1e",gridColor:"#2c2c2c",textColor:"#d4d4d4",lineColors:["#4a9eff","#ff4a4a","#4aff4a","#ffd700","#ff4aff","#4affff"]},l={background:"#ffffff",gridColor:"#f0f0f0",textColor:"#333333",lineColors:["#3366ff","#ff3333","#33ff33","#ffcc00","#ff33ff","#33ffff"]},h=Ji(()=>o.value?a:l),c=Q=>{const S={id:r.value,name:Q,fields:[],data:[[]],timestamps:[],uplot:null,container:null};return n.value.push(S),f(),S},u=Q=>{const S=n.value.find(w=>w.id===Q);S&&(S.data=[[]],S.timestamps=[],S.fields.forEach(()=>S.data.push([])),S.uplot&&S.uplot.setData(S.data))},f=()=>{const Q=n.value.map(S=>({id:S.id,name:S.name,fields:S.fields}));i.value.list=Q},d=()=>{const Q=i.value.list||[];Array.isArray(Q)&&Q.forEach(S=>{const w=c(S.name);w.id=S.id,S.fields.forEach(A=>g(w.id,A))})},p=(Q,S)=>{const w={width:S.clientWidth||200,height:300,series:[{label:"Time",value:(A,$)=>{if(!$)return"--";let N=new Date($*1e3);return N.toLocaleString()+"."+N.getMilliseconds()}},...Q.fields.map((A,$)=>({label:A,stroke:h.value.lineColors[$%h.value.lineColors.length]}))],axes:[{stroke:h.value.textColor,grid:{stroke:h.value.gridColor}},{stroke:h.value.textColor,grid:{stroke:h.value.gridColor}}],scales:{x:{time:!0}}};Q.uplot=new Gu(w,Q.data,S),Q.container=S},O=Q=>{const S=Q.detail;if(typeof S!="object"||S===null)return;const w=Date.now();n.value.forEach(A=>{if(A.fields.length===0)return;A.timestamps.push(w/1e3);let $=0;const N=[A.timestamps,...A.fields.map((U,D)=>{const j=S[U];let L=null;return typeof j=="number"&&($++,L=j),A.data[D+1].push(L),A.data[D+1]})];$!=0&&(A.uplot&&A.uplot.setData(N),A.data=N)})},m=()=>{f()},g=(Q,S)=>{const w=n.value.find(A=>A.id===Q);if(w){if(w.fields.includes(S)){ae.warning("该字段已添加到图表中");return}w.fields.push(S),w.data.push([]),f(),w.uplot&&(w.uplot.destroy(),w.container&&p(w,w.container))}},k=(Q,S)=>{const w=n.value.find($=>$.id===Q);if(!w)return;const A=w.fields.indexOf(S);A!==-1&&(w.fields.splice(A,1),w.data.splice(A+1,1),f(),w.uplot&&(w.uplot.destroy(),w.container&&p(w,w.container)))},P=Q=>{const S=n.value.findIndex(A=>A.id===Q);if(S===-1)return;const w=n.value[S];w.uplot&&w.uplot.destroy(),n.value.splice(S,1),f()},y=()=>{n.value.forEach(Q=>{if(Q.uplot&&Q.container){let S=Q.container.clientWidth;S&&Q.uplot.setSize({width:S,height:Q.uplot.height})}})};return $i(()=>{d(),window.addEventListener("data-update",O),window.addEventListener("resize",y)}),cn(()=>{window.removeEventListener("data-update",O),window.removeEventListener("resize",y),n.value.forEach(Q=>{Q.uplot&&Q.uplot.destroy()})}),(Q,S)=>{const w=R("el-button"),A=R("el-input"),$=R("el-popover"),N=R("Delete"),U=R("el-icon"),D=R("RefreshRight"),j=R("el-tag");return q(),he("div",$d,[E("div",Td,[x(w,{onClick:S[0]||(S[0]=L=>c("新图表")),type:"primary",size:"small"},{default:v(()=>S[1]||(S[1]=[J(" 添加图表 ")])),_:1})]),E("div",_d,[(q(!0),he(Le,null,Xe(n.value,L=>(q(),he("div",{key:L.id,class:"chart-item"},[E("div",Ad,[x(A,{modelValue:L.name,"onUpdate:modelValue":V=>L.name=V,size:"small",placeholder:"图表名称",class:"chart-name-input",onChange:m},null,8,["modelValue","onUpdate:modelValue"]),x($,{placement:"bottom",width:200,trigger:"click"},{reference:v(()=>[x(w,{type:"primary",size:"small"},{default:v(()=>S[2]||(S[2]=[J(" 添加字段 ")])),_:1})]),default:v(()=>[E("div",Zd,[(q(!0),he(Le,null,Xe(M(e).fields.map(V=>V.key),V=>(q(),ue(w,{key:V,onClick:oe=>g(L.id,V),size:"small",text:""},{default:v(()=>[J(_e(V),1)]),_:2},1032,["onClick"]))),128))])]),_:2},1024),x(w,{onClick:V=>P(L.id),type:"danger",size:"small",circle:""},{default:v(()=>[x(U,null,{default:v(()=>[x(N)]),_:1})]),_:2},1032,["onClick"]),x(w,{onClick:V=>u(L.id),type:"warning",size:"small",circle:""},{default:v(()=>[x(U,null,{default:v(()=>[x(D)]),_:1})]),_:2},1032,["onClick"])]),E("div",Rd,[E("div",Cd,[(q(!0),he(Le,null,Xe(L.fields,V=>(q(),ue(j,{key:V,closable:"",onClose:oe=>k(L.id,V),class:"field-tag"},{default:v(()=>[J(_e(V),1)]),_:2},1032,["onClose"]))),128))]),E("div",{ref_for:!0,ref:V=>{V&&!L.uplot&&p(L,V)},class:"chart-container"},null,512)])]))),128))])])}}}),Ed=mt(Md,[["__scopeId","data-v-3dcd0481"]]),Ld={class:"data-table-container"},Xd={class:"table-toolbar"},Dd={class:"import-export-buttons"},jd={class:"operation-buttons"},Id=pt({__name:"DataTable",setup(s){const e=jl(),t=o=>{const a=o.detail;typeof a!="object"||a===null||Object.entries(a).forEach(([l,h])=>{const c=e.fields.find(u=>u.key===l);c?e.updateField(c,h):e.fields.push(e.createField(l,h))})},i=()=>{e.createField("new_field","")},n=()=>{e.saveToLocalStorage()},r=()=>{e.fields.forEach(o=>{o.value="",o.min=null,o.max=null,o.updateCount=0,o.lastUpdate=0}),e.saveToLocalStorage()};return $i(()=>{e.loadFromLocalStorage(),window.addEventListener("data-update",t)}),cn(()=>{window.removeEventListener("data-update",t)}),(o,a)=>{const l=R("arrow-down"),h=R("el-icon"),c=R("el-button"),u=R("el-checkbox"),f=R("el-dropdown-item"),d=R("el-dropdown-menu"),p=R("el-dropdown"),O=R("Delete"),m=R("el-table-column"),g=R("el-input"),k=R("el-option"),P=R("el-select"),y=R("el-tooltip"),Q=R("el-table");return q(),he("div",Ld,[E("div",Xd,[x(p,{trigger:"click"},{dropdown:v(()=>[x(d,null,{default:v(()=>[(q(!0),he(Le,null,Xe(M(e).columnVisibility,(S,w)=>(q(),ue(f,{key:w},{default:v(()=>[x(u,{modelValue:M(e).columnVisibility[w],"onUpdate:modelValue":A=>M(e).columnVisibility[w]=A,onChange:a[0]||(a[0]=A=>M(e).toggleColumnVisibility())},{default:v(()=>[J(_e(w==="key"?"Key":w==="name"?"字段名":w==="dataType"?"类型":w==="description"?"描述":w==="value"?"当前值":w==="min"?"最小值":w==="max"?"最大值":w==="lastUpdate"?"最后更新":w==="updateCount"?"更新次数":w),1)]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:2},1024))),128))]),_:1})]),default:v(()=>[x(c,{type:"primary",size:"small"},{default:v(()=>[a[3]||(a[3]=J(" 显示/隐藏列 ")),x(h,{class:"el-icon--right"},{default:v(()=>[x(l)]),_:1})]),_:1})]),_:1}),E("div",Dd,[x(c,{type:"primary",size:"small",onClick:i},{default:v(()=>a[4]||(a[4]=[J("添加")])),_:1}),x(c,{type:"primary",size:"small",onClick:M(e).exportData},{default:v(()=>a[5]||(a[5]=[J("导出数据")])),_:1},8,["onClick"]),x(c,{type:"primary",size:"small",onClick:a[1]||(a[1]=S=>o.$refs.fileInput.click())},{default:v(()=>a[6]||(a[6]=[J("导入数据")])),_:1}),x(c,{type:"warning",size:"small",onClick:r},{default:v(()=>a[7]||(a[7]=[J("重置数据")])),_:1}),E("input",{ref:"fileInput",type:"file",accept:".json",style:{display:"none"},onChange:a[2]||(a[2]=S=>{var A;const w=(A=S.target.files)==null?void 0:A[0];w&&M(e).importData(w)})},null,544)])]),x(Q,{data:M(e).fields,border:"",stripe:""},{default:v(()=>[x(m,{label:"操作",width:"50",fixed:"left"},{default:v(({row:S})=>[E("div",jd,[x(c,{onClick:w=>M(e).deleteField(S.id),type:"danger",size:"small",circle:""},{default:v(()=>[x(h,null,{default:v(()=>[x(O)]),_:1})]),_:2},1032,["onClick"])])]),_:1}),M(e).columnVisibility.key?(q(),ue(m,{key:0,label:"Key","min-width":"100"},{default:v(({row:S})=>[x(g,{modelValue:S.key,"onUpdate:modelValue":w=>S.key=w,size:"small",onChange:n},null,8,["modelValue","onUpdate:modelValue"])]),_:1})):yt("",!0),M(e).columnVisibility.name?(q(),ue(m,{key:1,label:"字段名","min-width":"100"},{default:v(({row:S})=>[x(g,{modelValue:S.name,"onUpdate:modelValue":w=>S.name=w,size:"small",onChange:n},null,8,["modelValue","onUpdate:modelValue"])]),_:1})):yt("",!0),M(e).columnVisibility.dataType?(q(),ue(m,{key:2,label:"数据类型","min-width":"80"},{default:v(({row:S})=>[x(P,{modelValue:S.dataType,"onUpdate:modelValue":w=>S.dataType=w,size:"small",onChange:n},{default:v(()=>[x(k,{label:"数字",value:"number"}),x(k,{label:"字符串",value:"string"}),x(k,{label:"布尔值",value:"boolean"}),x(k,{label:"对象",value:"object"})]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1})):yt("",!0),M(e).columnVisibility.description?(q(),ue(m,{key:3,label:"描述","min-width":"150"},{default:v(({row:S})=>[x(g,{modelValue:S.description,"onUpdate:modelValue":w=>S.description=w,size:"small",onChange:n},null,8,["modelValue","onUpdate:modelValue"])]),_:1})):yt("",!0),M(e).columnVisibility.value?(q(),ue(m,{key:4,label:"当前值","min-width":"100"},{default:v(({row:S})=>[E("span",null,_e(S.value),1)]),_:1})):yt("",!0),M(e).columnVisibility.min?(q(),ue(m,{key:5,label:"最小值","min-width":"100"},{default:v(({row:S})=>[E("span",null,_e(S.min??"-"),1)]),_:1})):yt("",!0),M(e).columnVisibility.max?(q(),ue(m,{key:6,label:"最大值","min-width":"100"},{default:v(({row:S})=>[E("span",null,_e(S.max??"-"),1)]),_:1})):yt("",!0),M(e).columnVisibility.lastUpdate?(q(),ue(m,{key:7,label:"最后更新","min-width":"120"},{default:v(({row:S})=>[x(y,{content:new Date(S.lastUpdate).toLocaleString(),placement:"top",effect:"dark"},{default:v(()=>[E("span",null,_e(new Date(S.lastUpdate).toLocaleTimeString()+"."+String(new Date(S.lastUpdate).getMilliseconds()).padStart(3,"0")),1)]),_:2},1032,["content"])]),_:1})):yt("",!0),M(e).columnVisibility.updateCount?(q(),ue(m,{key:8,label:"更新次数",width:"100"},{default:v(({row:S})=>[E("span",null,_e(S.updateCount),1)]),_:1})):yt("",!0)]),_:1},8,["data"])])}}}),Vd=mt(Id,[["__scopeId","data-v-ede5c30e"]]),Bd=$l("quickSend",()=>{const s=Si.getInstance(),e=ie([]),t=ie(0),i=Ji(()=>e.value.find(y=>y.id===t.value)||e.value[0]),n=ie({}),r=ie(1e3),o=y=>/^[0-9A-Fa-f\s]*$/.test(y),a=y=>{if(!y.content){ae.warning("发送内容不能为空");return}if(y.type==="hex"&&!o(y.content)){ae.error("HEX格式数据不合法");return}const Q=s.stringToUint8Array(y.content,y.type==="hex");window.dispatchEvent(new CustomEvent("serial-send",{detail:Q}))},l=y=>{const Q=n.value[y.id];Q?(clearInterval(Q),delete n.value[y.id]):n.value[y.id]=window.setInterval(()=>a(y),r.value)},h=()=>{i.value.items.push({id:Date.now(),name:"新建项目",content:"",type:"text"})},c=y=>{const Q=i.value.items.findIndex(S=>S.id===y);Q>-1&&i.value.items.splice(Q,1)},u=y=>{y&&e.value.push({id:Date.now(),name:y,items:[]})},f=()=>{if(e.value.length<=1){ae.warning("至少保留一个分组");return}const y=e.value.findIndex(Q=>Q.id===i.value.id);y>-1&&(e.value.splice(y,1),e.value.length==0&&u("默认分组"),p(e.value[0]))},d=y=>{y&&(i.value.name=y)},p=y=>{t.value=y.id},O=y=>{console.log("切换分组",y,e),t.value=y},m=y=>{try{if(!Array.isArray(y)||!y.every(Q=>typeof Q=="object"&&typeof Q.id=="number"&&typeof Q.name=="string"&&Array.isArray(Q.items)))throw new Error("配置文件格式错误");e.value=y,p(e.value[0]),ae.success("导入成功")}catch(Q){ae.error(`导入失败:${Q instanceof Error?Q.message:"无效的配置文件"}`)}},g=()=>JSON.stringify(e.value,null,2),k=()=>{localStorage.setItem("quickSendGroups",JSON.stringify(e.value))},P=()=>{const y=localStorage.getItem("quickSendGroups");if(y)try{e.value=JSON.parse(y)}catch{ae.error("加载配置失败")}e.value.length==0&&(e.value=[{id:1,name:"默认分组",items:[{id:1,name:"查询版本",content:`AT+VERSION?\r +`,type:"text"},{id:2,name:"重启设备",content:`AT+RESET\r +`,type:"text"},{id:3,name:"查询状态",content:`AT+STATUS?\r +`,type:"text"},{id:4,name:"16进制测试",content:"48 45 4C 4C 4F",type:"hex"}]}]),p(e.value[0])};return yi([e,i],()=>{k()},{deep:!0}),P(),{groups:e,currentGroupId:t,currentGroup:i,autoSendIntervals:n,autoSendInterval:r,sendData:a,toggleAutoSend:l,addItem:h,removeItem:c,addGroup:u,removeGroup:f,renameGroup:d,handleGroupChange:O,importConfig:m,exportConfig:g}}),Nd={class:"quick-send"},Ud={class:"group-select"},qd={class:"quick-send-actions"},zd={class:"action-group"},Wd={class:"quick-send-list"},Gd={class:"item-row"},Yd={class:"item-settings"},Fd={class:"setting-row"},Hd={class:"setting-row"},Kd={class:"setting-row"},Jd=pt({__name:"SerialQuickSend",setup(s){const e=Bd(),t=ie(null),i=a=>{const l=a.target;if(l.files&&l.files[0]){const h=new FileReader;h.onload=c=>{var u;try{const f=JSON.parse((u=c.target)==null?void 0:u.result);e.importConfig(f)}catch{}},h.readAsText(l.files[0])}},n=()=>{const a=e.exportConfig(),l=new Blob([a],{type:"application/json"}),h=URL.createObjectURL(l),c=document.createElement("a");c.href=h,c.download="quick-send-config.json",c.click(),URL.revokeObjectURL(h)},r=()=>{const a=prompt("请输入分组名称");a&&e.addGroup(a)},o=()=>{const a=prompt("请输入新的分组名称",e.currentGroup.name);a&&e.renameGroup(a)};return(a,l)=>{const h=R("el-option"),c=R("el-select"),u=R("el-button"),f=R("el-button-group"),d=R("Plus"),p=R("el-icon"),O=R("FolderAdd"),m=R("FolderOpened"),g=R("el-input"),k=R("Setting"),P=R("el-radio-button"),y=R("el-radio-group"),Q=R("el-input-number"),S=R("el-tooltip"),w=R("el-popover"),A=R("Delete");return q(),he("div",Nd,[E("div",Ud,[x(c,{size:"small",modelValue:M(e).currentGroupId,"onUpdate:modelValue":l[0]||(l[0]=$=>M(e).currentGroupId=$),onChange:M(e).handleGroupChange},{default:v(()=>[(q(!0),he(Le,null,Xe(M(e).groups,$=>(q(),ue(h,{key:$.id,label:$.name,value:$.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"]),x(f,{style:{width:"240px"}},{default:v(()=>[x(u,{size:"small",onClick:r,class:"compact-btn"},{default:v(()=>l[3]||(l[3]=[J("新增")])),_:1}),x(u,{size:"small",onClick:o,class:"compact-btn"},{default:v(()=>l[4]||(l[4]=[J("改名")])),_:1}),x(u,{size:"small",onClick:M(e).removeGroup,class:"compact-btn"},{default:v(()=>l[5]||(l[5]=[J("删除")])),_:1},8,["onClick"])]),_:1})]),E("div",qd,[E("div",zd,[x(u,{size:"small",onClick:M(e).addItem,class:"add-item-btn"},{default:v(()=>[x(p,null,{default:v(()=>[x(d)]),_:1}),l[6]||(l[6]=J(" 增加一条 "))]),_:1},8,["onClick"]),E("input",{type:"file",ref_key:"importInput",ref:t,style:{display:"none"},accept:"application/json",onChange:i},null,544),x(f,null,{default:v(()=>[x(u,{size:"small",onClick:l[1]||(l[1]=$=>a.$refs.importInput.click()),class:"compact-btn"},{default:v(()=>[x(p,null,{default:v(()=>[x(O)]),_:1})]),_:1}),x(u,{size:"small",onClick:n,class:"compact-btn"},{default:v(()=>[x(p,null,{default:v(()=>[x(m)]),_:1})]),_:1})]),_:1})])]),E("div",Wd,[(q(!0),he(Le,null,Xe(M(e).currentGroup.items,$=>(q(),he("div",{key:$.id,class:"mb-2 quick-send-item"},[E("div",Gd,[x(u,{size:"small",type:"primary",onClick:N=>M(e).sendData($)},{default:v(()=>[J(_e($.name),1)]),_:2},1032,["onClick"]),x(g,{modelValue:$.content,"onUpdate:modelValue":N=>$.content=N,size:"small",placeholder:"请输入发送内容",class:"flex-grow"},null,8,["modelValue","onUpdate:modelValue"]),x(f,null,{default:v(()=>[x(w,{placement:"bottom",width:300,trigger:"click"},{reference:v(()=>[x(u,{size:"small"},{default:v(()=>[x(p,null,{default:v(()=>[x(k)]),_:1})]),_:1})]),default:v(()=>[E("div",Yd,[E("div",Fd,[l[7]||(l[7]=E("span",null,"指令名称:",-1)),x(g,{modelValue:$.name,"onUpdate:modelValue":N=>$.name=N,placeholder:"名称",size:"small",style:{width:"120px"}},null,8,["modelValue","onUpdate:modelValue"])]),E("div",Hd,[l[10]||(l[10]=E("span",null,"数据类型:",-1)),x(y,{modelValue:$.type,"onUpdate:modelValue":N=>$.type=N,size:"small"},{default:v(()=>[x(P,{value:"text"},{default:v(()=>l[8]||(l[8]=[J("文本")])),_:1}),x(P,{value:"hex"},{default:v(()=>l[9]||(l[9]=[J("HEX")])),_:1})]),_:2},1032,["modelValue","onUpdate:modelValue"])]),E("div",Kd,[l[11]||(l[11]=E("span",null,"定时发送:",-1)),x(S,{class:"box-item",effect:"dark",content:"间隔(ms)",placement:"bottom"},{default:v(()=>[x(Q,{modelValue:M(e).autoSendInterval,"onUpdate:modelValue":l[2]||(l[2]=N=>M(e).autoSendInterval=N),min:100,max:1e4,size:"small",style:{width:"120px"},class:"me-2"},null,8,["modelValue"])]),_:1}),x(u,{size:"small",type:M(e).autoSendIntervals[$.id]?"success":"default",onClick:N=>M(e).toggleAutoSend($)},{default:v(()=>[J(_e(M(e).autoSendIntervals[$.id]?"停止":"开始"),1)]),_:2},1032,["type","onClick"])])])]),_:2},1024),x(u,{size:"small",type:"danger",onClick:N=>M(e).removeItem($.id)},{default:v(()=>[x(p,null,{default:v(()=>[x(A)]),_:1})]),_:2},1032,["onClick"])]),_:2},1024)])]))),128))])])}}}),ep=mt(Jd,[["__scopeId","data-v-3fa9948f"]]);let fr=[],Il=[];(()=>{let s="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=0,t=0;e>1;if(s=Il[i])e=i+1;else return!0;if(e==t)return!1}}function Yo(s){return s>=127462&&s<=127487}const Fo=8205;function ip(s,e,t=!0,i=!0){return(t?Vl:np)(s,e,i)}function Vl(s,e,t){if(e==s.length)return e;e&&Bl(s.charCodeAt(e))&&Nl(s.charCodeAt(e-1))&&e--;let i=Es(s,e);for(e+=Ho(i);e=0&&Yo(Es(s,o));)r++,o-=2;if(r%2==0)break;e+=2}else break}return e}function np(s,e,t){for(;e>0;){let i=Vl(s,e-2,t);if(i=56320&&s<57344}function Nl(s){return s>=55296&&s<56320}function Ho(s){return s<65536?1:2}class K{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,i){[e,t]=xi(this,e,t);let n=[];return this.decompose(0,e,n,2),i.length&&i.decompose(0,i.length,n,3),this.decompose(t,this.length,n,1),ht.from(n,this.length-(t-e)+i.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=xi(this,e,t);let i=[];return this.decompose(e,t,i,0),ht.from(i,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),i=this.length-this.scanIdentical(e,-1),n=new Yi(this),r=new Yi(e);for(let o=t,a=t;;){if(n.next(o),r.next(o),o=0,n.lineBreak!=r.lineBreak||n.done!=r.done||n.value!=r.value)return!1;if(a+=n.value.length,n.done||a>=i)return!0}}iter(e=1){return new Yi(this,e)}iterRange(e,t=this.length){return new Ul(this,e,t)}iterLines(e,t){let i;if(e==null)i=this.iter();else{t==null&&(t=this.lines+1);let n=this.line(e).from;i=this.iterRange(n,Math.max(n,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new ql(i)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?K.empty:e.length<=32?new de(e):ht.from(de.split(e,[]))}}class de extends K{constructor(e,t=sp(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,i,n){for(let r=0;;r++){let o=this.text[r],a=n+o.length;if((t?i:a)>=e)return new rp(n,a,i,o);n=a+1,i++}}decompose(e,t,i,n){let r=e<=0&&t>=this.length?this:new de(Ko(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(n&1){let o=i.pop(),a=In(r.text,o.text.slice(),0,r.length);if(a.length<=32)i.push(new de(a,o.length+r.length));else{let l=a.length>>1;i.push(new de(a.slice(0,l)),new de(a.slice(l)))}}else i.push(r)}replace(e,t,i){if(!(i instanceof de))return super.replace(e,t,i);[e,t]=xi(this,e,t);let n=In(this.text,In(i.text,Ko(this.text,0,e)),t),r=this.length+i.length-(t-e);return n.length<=32?new de(n,r):ht.from(de.split(n,[]),r)}sliceString(e,t=this.length,i=` +`){[e,t]=xi(this,e,t);let n="";for(let r=0,o=0;r<=t&&oe&&o&&(n+=i),er&&(n+=a.slice(Math.max(0,e-r),t-r)),r=l+1}return n}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let i=[],n=-1;for(let r of e)i.push(r),n+=r.length+1,i.length==32&&(t.push(new de(i,n)),i=[],n=-1);return n>-1&&t.push(new de(i,n)),t}}class ht extends K{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let i of e)this.lines+=i.lines}lineInner(e,t,i,n){for(let r=0;;r++){let o=this.children[r],a=n+o.length,l=i+o.lines-1;if((t?l:a)>=e)return o.lineInner(e,t,i,n);n=a+1,i=l+1}}decompose(e,t,i,n){for(let r=0,o=0;o<=t&&r=o){let h=n&((o<=e?1:0)|(l>=t?2:0));o>=e&&l<=t&&!h?i.push(a):a.decompose(e-o,t-o,i,h)}o=l+1}}replace(e,t,i){if([e,t]=xi(this,e,t),i.lines=r&&t<=a){let l=o.replace(e-r,t-r,i),h=this.lines-o.lines+l.lines;if(l.lines>4&&l.lines>h>>6){let c=this.children.slice();return c[n]=l,new ht(c,this.length-(t-e)+i.length)}return super.replace(r,a,l)}r=a+1}return super.replace(e,t,i)}sliceString(e,t=this.length,i=` +`){[e,t]=xi(this,e,t);let n="";for(let r=0,o=0;re&&r&&(n+=i),eo&&(n+=a.sliceString(e-o,t-o,i)),o=l+1}return n}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof ht))return 0;let i=0,[n,r,o,a]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;n+=t,r+=t){if(n==o||r==a)return i;let l=this.children[n],h=e.children[r];if(l!=h)return i+l.scanIdentical(h,t);i+=l.length+1}}static from(e,t=e.reduce((i,n)=>i+n.length+1,-1)){let i=0;for(let d of e)i+=d.lines;if(i<32){let d=[];for(let p of e)p.flatten(d);return new de(d,t)}let n=Math.max(32,i>>5),r=n<<1,o=n>>1,a=[],l=0,h=-1,c=[];function u(d){let p;if(d.lines>r&&d instanceof ht)for(let O of d.children)u(O);else d.lines>o&&(l>o||!l)?(f(),a.push(d)):d instanceof de&&l&&(p=c[c.length-1])instanceof de&&d.lines+p.lines<=32?(l+=d.lines,h+=d.length+1,c[c.length-1]=new de(p.text.concat(d.text),p.length+1+d.length)):(l+d.lines>n&&f(),l+=d.lines,h+=d.length+1,c.push(d))}function f(){l!=0&&(a.push(c.length==1?c[0]:ht.from(c,h)),h=-1,l=c.length=0)}for(let d of e)u(d);return f(),a.length==1?a[0]:new ht(a,t)}}K.empty=new de([""],0);function sp(s){let e=-1;for(let t of s)e+=t.length+1;return e}function In(s,e,t=0,i=1e9){for(let n=0,r=0,o=!0;r=t&&(l>i&&(a=a.slice(0,i-n)),n0?1:(e instanceof de?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let i=this.nodes.length-1,n=this.nodes[i],r=this.offsets[i],o=r>>1,a=n instanceof de?n.text.length:n.children.length;if(o==(t>0?a:0)){if(i==0)return this.done=!0,this.value="",this;t>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((r&1)==(t>0?0:1)){if(this.offsets[i]+=t,e==0)return this.lineBreak=!0,this.value=` +`,this;e--}else if(n instanceof de){let l=n.text[o+(t<0?-1:0)];if(this.offsets[i]+=t,l.length>Math.max(0,e))return this.value=e==0?l:t>0?l.slice(e):l.slice(0,l.length-e),this;e-=l.length}else{let l=n.children[o+(t<0?-1:0)];e>l.length?(e-=l.length,this.offsets[i]+=t):(t<0&&this.offsets[i]--,this.nodes.push(l),this.offsets.push(t>0?1:(l instanceof de?l.text.length:l.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class Ul{constructor(e,t,i){this.value="",this.done=!1,this.cursor=new Yi(e,t>i?-1:1),this.pos=t>i?e.length:0,this.from=Math.min(t,i),this.to=Math.max(t,i)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let i=t<0?this.pos-this.from:this.to-this.pos;e>i&&(e=i),i-=e;let{value:n}=this.cursor.next(e);return this.pos+=(n.length+e)*t,this.value=n.length<=i?n:t<0?n.slice(n.length-i):n.slice(0,i),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class ql{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:i,value:n}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):i?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=n,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(K.prototype[Symbol.iterator]=function(){return this.iter()},Yi.prototype[Symbol.iterator]=Ul.prototype[Symbol.iterator]=ql.prototype[Symbol.iterator]=function(){return this});class rp{constructor(e,t,i,n){this.from=e,this.to=t,this.number=i,this.text=n}get length(){return this.to-this.from}}function xi(s,e,t){return e=Math.max(0,Math.min(s.length,e)),[e,Math.max(e,Math.min(s.length,t))]}function Ze(s,e,t=!0,i=!0){return ip(s,e,t,i)}function op(s){return s>=56320&&s<57344}function ap(s){return s>=55296&&s<56320}function lp(s,e){let t=s.charCodeAt(e);if(!ap(t)||e+1==s.length)return t;let i=s.charCodeAt(e+1);return op(i)?(t-55296<<10)+(i-56320)+65536:t}function hp(s){return s<65536?1:2}const dr=/\r\n?|\n/;var Ae=function(s){return s[s.Simple=0]="Simple",s[s.TrackDel=1]="TrackDel",s[s.TrackBefore=2]="TrackBefore",s[s.TrackAfter=3]="TrackAfter",s}(Ae||(Ae={}));class Qt{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;te)return r+(e-n);r+=a}else{if(i!=Ae.Simple&&h>=e&&(i==Ae.TrackDel&&ne||i==Ae.TrackBefore&&ne))return null;if(h>e||h==e&&t<0&&!a)return e==n||t<0?r:r+l;r+=l}n=h}if(e>n)throw new RangeError(`Position ${e} is out of range for changeset of length ${n}`);return r}touchesRange(e,t=e){for(let i=0,n=0;i=0&&n<=t&&a>=e)return nt?"cover":!0;n=a}return!1}toString(){let e="";for(let t=0;t=0?":"+n:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(t=>typeof t!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new Qt(e)}static create(e){return new Qt(e)}}class Se extends Qt{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return pr(this,(t,i,n,r,o)=>e=e.replace(n,n+(i-t),o),!1),e}mapDesc(e,t=!1){return Or(this,e,t,!0)}invert(e){let t=this.sections.slice(),i=[];for(let n=0,r=0;n=0){t[n]=a,t[n+1]=o;let l=n>>1;for(;i.length0&&Rt(i,t,r.text),r.forward(c),a+=c}let h=e[o++];for(;a>1].toJSON()))}return e}static of(e,t,i){let n=[],r=[],o=0,a=null;function l(c=!1){if(!c&&!n.length)return;of||u<0||f>t)throw new RangeError(`Invalid change range ${u} to ${f} (in doc of length ${t})`);let p=d?typeof d=="string"?K.of(d.split(i||dr)):d:K.empty,O=p.length;if(u==f&&O==0)return;uo&&Pe(n,u-o,-1),Pe(n,f-u,O),Rt(r,n,p),o=f}}return h(e),l(!a),a}static empty(e){return new Se(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],i=[];for(let n=0;na&&typeof o!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(r.length==1)t.push(r[0],0);else{for(;i.length=0&&t<=0&&t==s[n+1]?s[n]+=e:n>=0&&e==0&&s[n]==0?s[n+1]+=t:i?(s[n]+=e,s[n+1]+=t):s.push(e,t)}function Rt(s,e,t){if(t.length==0)return;let i=e.length-2>>1;if(i>1])),!(t||o==s.sections.length||s.sections[o+1]<0);)a=s.sections[o++],l=s.sections[o++];e(n,h,r,c,u),n=h,r=c}}}function Or(s,e,t,i=!1){let n=[],r=i?[]:null,o=new en(s),a=new en(e);for(let l=-1;;){if(o.done&&a.len||a.done&&o.len)throw new Error("Mismatched change set lengths");if(o.ins==-1&&a.ins==-1){let h=Math.min(o.len,a.len);Pe(n,h,-1),o.forward(h),a.forward(h)}else if(a.ins>=0&&(o.ins<0||l==o.i||o.off==0&&(a.len=0&&l=0){let h=0,c=o.len;for(;c;)if(a.ins==-1){let u=Math.min(c,a.len);h+=u,c-=u,a.forward(u)}else if(a.ins==0&&a.lenl||o.ins>=0&&o.len>l)&&(a||i.length>h),r.forward2(l),o.forward(l)}}}}class en{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i>1;return t>=e.length?K.empty:e[t]}textBit(e){let{inserted:t}=this.set,i=this.i-2>>1;return i>=t.length&&!e?K.empty:t[i].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class Wt{constructor(e,t,i){this.from=e,this.to=t,this.flags=i}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(e,t=-1){let i,n;return this.empty?i=n=e.mapPos(this.from,t):(i=e.mapPos(this.from,1),n=e.mapPos(this.to,-1)),i==this.from&&n==this.to?this:new Wt(i,n,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return _.range(e,t);let i=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return _.range(this.anchor,i)}eq(e,t=!1){return this.anchor==e.anchor&&this.head==e.head&&(!t||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return _.range(e.anchor,e.head)}static create(e,t,i){return new Wt(e,t,i)}}class _{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:_.create(this.ranges.map(i=>i.map(e,t)),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let i=0;ie.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new _(e.ranges.map(t=>Wt.fromJSON(t)),e.main)}static single(e,t=e){return new _([_.range(e,t)],0)}static create(e,t=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let i=0,n=0;ne?8:0)|r)}static normalized(e,t=0){let i=e[t];e.sort((n,r)=>n.from-r.from),t=e.indexOf(i);for(let n=1;nr.head?_.range(l,a):_.range(a,l))}}return new _(e,t)}}function Wl(s,e){for(let t of s.ranges)if(t.to>e)throw new RangeError("Selection points outside of document")}let so=0;class I{constructor(e,t,i,n,r){this.combine=e,this.compareInput=t,this.compare=i,this.isStatic=n,this.id=so++,this.default=e([]),this.extensions=typeof r=="function"?r(this):r}get reader(){return this}static define(e={}){return new I(e.combine||(t=>t),e.compareInput||((t,i)=>t===i),e.compare||(e.combine?(t,i)=>t===i:ro),!!e.static,e.enables)}of(e){return new Vn([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Vn(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Vn(e,this,2,t)}from(e,t){return t||(t=i=>i),this.compute([e],i=>t(i.field(e)))}}function ro(s,e){return s==e||s.length==e.length&&s.every((t,i)=>t===e[i])}class Vn{constructor(e,t,i,n){this.dependencies=e,this.facet=t,this.type=i,this.value=n,this.id=so++}dynamicSlot(e){var t;let i=this.value,n=this.facet.compareInput,r=this.id,o=e[r]>>1,a=this.type==2,l=!1,h=!1,c=[];for(let u of this.dependencies)u=="doc"?l=!0:u=="selection"?h=!0:((t=e[u.id])!==null&&t!==void 0?t:1)&1||c.push(e[u.id]);return{create(u){return u.values[o]=i(u),1},update(u,f){if(l&&f.docChanged||h&&(f.docChanged||f.selection)||mr(u,c)){let d=i(u);if(a?!Jo(d,u.values[o],n):!n(d,u.values[o]))return u.values[o]=d,1}return 0},reconfigure:(u,f)=>{let d,p=f.config.address[r];if(p!=null){let O=es(f,p);if(this.dependencies.every(m=>m instanceof I?f.facet(m)===u.facet(m):m instanceof jt?f.field(m,!1)==u.field(m,!1):!0)||(a?Jo(d=i(u),O,n):n(d=i(u),O)))return u.values[o]=O,0}else d=i(u);return u.values[o]=d,1}}}}function Jo(s,e,t){if(s.length!=e.length)return!1;for(let i=0;is[l.id]),n=t.map(l=>l.type),r=i.filter(l=>!(l&1)),o=s[e.id]>>1;function a(l){let h=[];for(let c=0;ci===n),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(xn).find(i=>i.field==this);return((t==null?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:i=>(i.values[t]=this.create(i),1),update:(i,n)=>{let r=i.values[t],o=this.updateF(r,n);return this.compareF(r,o)?0:(i.values[t]=o,1)},reconfigure:(i,n)=>{let r=i.facet(xn),o=n.facet(xn),a;return(a=r.find(l=>l.field==this))&&a!=o.find(l=>l.field==this)?(i.values[t]=a.create(i),1):n.config.address[this.id]!=null?(i.values[t]=n.field(this),0):(i.values[t]=this.create(i),1)}}}init(e){return[this,xn.of({field:this,create:e})]}get extension(){return this}}const Nt={lowest:4,low:3,default:2,high:1,highest:0};function Ri(s){return e=>new Gl(e,s)}const ms={highest:Ri(Nt.highest),high:Ri(Nt.high),default:Ri(Nt.default),low:Ri(Nt.low),lowest:Ri(Nt.lowest)};class Gl{constructor(e,t){this.inner=e,this.prec=t}}class gs{of(e){return new gr(this,e)}reconfigure(e){return gs.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class gr{constructor(e,t){this.compartment=e,this.inner=t}}class Jn{constructor(e,t,i,n,r,o){for(this.base=e,this.compartments=t,this.dynamicSlots=i,this.address=n,this.staticValues=r,this.facets=o,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(e,t,i){let n=[],r=Object.create(null),o=new Map;for(let f of up(e,t,o))f instanceof jt?n.push(f):(r[f.facet.id]||(r[f.facet.id]=[])).push(f);let a=Object.create(null),l=[],h=[];for(let f of n)a[f.id]=h.length<<1,h.push(d=>f.slot(d));let c=i==null?void 0:i.config.facets;for(let f in r){let d=r[f],p=d[0].facet,O=c&&c[f]||[];if(d.every(m=>m.type==0))if(a[p.id]=l.length<<1|1,ro(O,d))l.push(i.facet(p));else{let m=p.combine(d.map(g=>g.value));l.push(i&&p.compare(m,i.facet(p))?i.facet(p):m)}else{for(let m of d)m.type==0?(a[m.id]=l.length<<1|1,l.push(m.value)):(a[m.id]=h.length<<1,h.push(g=>m.dynamicSlot(g)));a[p.id]=h.length<<1,h.push(m=>cp(m,p,d))}}let u=h.map(f=>f(a));return new Jn(e,o,u,a,l,r)}}function up(s,e,t){let i=[[],[],[],[],[]],n=new Map;function r(o,a){let l=n.get(o);if(l!=null){if(l<=a)return;let h=i[l].indexOf(o);h>-1&&i[l].splice(h,1),o instanceof gr&&t.delete(o.compartment)}if(n.set(o,a),Array.isArray(o))for(let h of o)r(h,a);else if(o instanceof gr){if(t.has(o.compartment))throw new RangeError("Duplicate use of compartment in extensions");let h=e.get(o.compartment)||o.inner;t.set(o.compartment,h),r(h,a)}else if(o instanceof Gl)r(o.inner,o.prec);else if(o instanceof jt)i[a].push(o),o.provides&&r(o.provides,a);else if(o instanceof Vn)i[a].push(o),o.facet.extensions&&r(o.facet.extensions,Nt.default);else{let h=o.extension;if(!h)throw new Error(`Unrecognized extension value in extension set (${o}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);r(h,a)}}return r(s,Nt.default),i.reduce((o,a)=>o.concat(a))}function Fi(s,e){if(e&1)return 2;let t=e>>1,i=s.status[t];if(i==4)throw new Error("Cyclic dependency between fields and/or facets");if(i&2)return i;s.status[t]=4;let n=s.computeSlot(s,s.config.dynamicSlots[t]);return s.status[t]=2|n}function es(s,e){return e&1?s.config.staticValues[e>>1]:s.values[e>>1]}const Yl=I.define(),yr=I.define({combine:s=>s.some(e=>e),static:!0}),Fl=I.define({combine:s=>s.length?s[0]:void 0,static:!0}),Hl=I.define(),Kl=I.define(),Jl=I.define(),eh=I.define({combine:s=>s.length?s[0]:!1});class ni{constructor(e,t){this.type=e,this.value=t}static define(){return new fp}}class fp{of(e){return new ni(this,e)}}class dp{constructor(e){this.map=e}of(e){return new ce(this,e)}}class ce{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return t===void 0?void 0:t==this.value?this:new ce(this.type,t)}is(e){return this.type==e}static define(e={}){return new dp(e.map||(t=>t))}static mapEffects(e,t){if(!e.length)return e;let i=[];for(let n of e){let r=n.map(t);r&&i.push(r)}return i}}ce.reconfigure=ce.define();ce.appendConfig=ce.define();class ke{constructor(e,t,i,n,r,o){this.startState=e,this.changes=t,this.selection=i,this.effects=n,this.annotations=r,this.scrollIntoView=o,this._doc=null,this._state=null,i&&Wl(i,t.newLength),r.some(a=>a.type==ke.time)||(this.annotations=r.concat(ke.time.of(Date.now())))}static create(e,t,i,n,r,o){return new ke(e,t,i,n,r,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(ke.userEvent);return!!(t&&(t==e||t.length>e.length&&t.slice(0,e.length)==e&&t[e.length]=="."))}}ke.time=ni.define();ke.userEvent=ni.define();ke.addToHistory=ni.define();ke.remote=ni.define();function pp(s,e){let t=[];for(let i=0,n=0;;){let r,o;if(i=s[i]))r=s[i++],o=s[i++];else if(n=0;n--){let r=i[n](s);r instanceof ke?s=r:Array.isArray(r)&&r.length==1&&r[0]instanceof ke?s=r[0]:s=ih(e,pi(r),!1)}return s}function mp(s){let e=s.startState,t=e.facet(Jl),i=s;for(let n=t.length-1;n>=0;n--){let r=t[n](s);r&&Object.keys(r).length&&(i=th(i,br(e,r,s.changes.newLength),!0))}return i==s?s:ke.create(e,s.changes,s.selection,i.effects,i.annotations,i.scrollIntoView)}const gp=[];function pi(s){return s==null?gp:Array.isArray(s)?s:[s]}var wt=function(s){return s[s.Word=0]="Word",s[s.Space=1]="Space",s[s.Other=2]="Other",s}(wt||(wt={}));const yp=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let Sr;try{Sr=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function bp(s){if(Sr)return Sr.test(s);for(let e=0;e"€"&&(t.toUpperCase()!=t.toLowerCase()||yp.test(t)))return!0}return!1}function Sp(s){return e=>{if(!/\S/.test(e))return wt.Space;if(bp(e))return wt.Word;for(let t=0;t-1)return wt.Word;return wt.Other}}class ee{constructor(e,t,i,n,r,o){this.config=e,this.doc=t,this.selection=i,this.values=n,this.status=e.statusTemplate.slice(),this.computeSlot=r,o&&(o._state=this);for(let a=0;an.set(h,l)),t=null),n.set(a.value.compartment,a.value.extension)):a.is(ce.reconfigure)?(t=null,i=a.value):a.is(ce.appendConfig)&&(t=null,i=pi(i).concat(a.value));let r;t?r=e.startState.values.slice():(t=Jn.resolve(i,n,this),r=new ee(t,this.doc,this.selection,t.dynamicSlots.map(()=>null),(l,h)=>h.reconfigure(l,this),null).values);let o=e.startState.facet(yr)?e.newSelection:e.newSelection.asSingle();new ee(t,e.newDoc,o,r,(a,l)=>l.update(a,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:_.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,i=e(t.ranges[0]),n=this.changes(i.changes),r=[i.range],o=pi(i.effects);for(let a=1;ao.spec.fromJSON(a,l)))}}return ee.create({doc:e.doc,selection:_.fromJSON(e.selection),extensions:t.extensions?n.concat([t.extensions]):n})}static create(e={}){let t=Jn.resolve(e.extensions||[],new Map),i=e.doc instanceof K?e.doc:K.of((e.doc||"").split(t.staticFacet(ee.lineSeparator)||dr)),n=e.selection?e.selection instanceof _?e.selection:_.single(e.selection.anchor,e.selection.head):_.single(0);return Wl(n,i.length),t.staticFacet(yr)||(n=n.asSingle()),new ee(t,i,n,t.dynamicSlots.map(()=>null),(r,o)=>o.create(r),null)}get tabSize(){return this.facet(ee.tabSize)}get lineBreak(){return this.facet(ee.lineSeparator)||` +`}get readOnly(){return this.facet(eh)}phrase(e,...t){for(let i of this.facet(ee.phrases))if(Object.prototype.hasOwnProperty.call(i,e)){e=i[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,(i,n)=>{if(n=="$")return"$";let r=+(n||1);return!r||r>t.length?i:t[r-1]})),e}languageDataAt(e,t,i=-1){let n=[];for(let r of this.facet(Yl))for(let o of r(this,t,i))Object.prototype.hasOwnProperty.call(o,e)&&n.push(o[e]);return n}charCategorizer(e){return Sp(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:t,from:i,length:n}=this.doc.lineAt(e),r=this.charCategorizer(e),o=e-i,a=e-i;for(;o>0;){let l=Ze(t,o,!1);if(r(t.slice(l,o))!=wt.Word)break;o=l}for(;as.length?s[0]:4});ee.lineSeparator=Fl;ee.readOnly=eh;ee.phrases=I.define({compare(s,e){let t=Object.keys(s),i=Object.keys(e);return t.length==i.length&&t.every(n=>s[n]==e[n])}});ee.languageData=Yl;ee.changeFilter=Hl;ee.transactionFilter=Kl;ee.transactionExtender=Jl;gs.reconfigure=ce.define();function xp(s,e,t={}){let i={};for(let n of s)for(let r of Object.keys(n)){let o=n[r],a=i[r];if(a===void 0)i[r]=o;else if(!(a===o||o===void 0))if(Object.hasOwnProperty.call(t,r))i[r]=t[r](a,o);else throw new Error("Config merge conflict for field "+r)}for(let n in e)i[n]===void 0&&(i[n]=e[n]);return i}class Kt{eq(e){return this==e}range(e,t=e){return xr.create(e,t,this)}}Kt.prototype.startSide=Kt.prototype.endSide=0;Kt.prototype.point=!1;Kt.prototype.mapMode=Ae.TrackDel;let xr=class nh{constructor(e,t,i){this.from=e,this.to=t,this.value=i}static create(e,t,i){return new nh(e,t,i)}};function wr(s,e){return s.from-e.from||s.value.startSide-e.value.startSide}class oo{constructor(e,t,i,n){this.from=e,this.to=t,this.value=i,this.maxPoint=n}get length(){return this.to[this.to.length-1]}findIndex(e,t,i,n=0){let r=i?this.to:this.from;for(let o=n,a=r.length;;){if(o==a)return o;let l=o+a>>1,h=r[l]-e||(i?this.value[l].endSide:this.value[l].startSide)-t;if(l==o)return h>=0?o:a;h>=0?a=l:o=l+1}}between(e,t,i,n){for(let r=this.findIndex(t,-1e9,!0),o=this.findIndex(i,1e9,!1,r);rd||f==d&&h.startSide>0&&h.endSide<=0)continue;(d-f||h.endSide-h.startSide)<0||(o<0&&(o=f),h.point&&(a=Math.max(a,d-f)),i.push(h),n.push(f-o),r.push(d-o))}return{mapped:i.length?new oo(n,r,i,a):null,pos:o}}}class te{constructor(e,t,i,n){this.chunkPos=e,this.chunk=t,this.nextLayer=i,this.maxPoint=n}static create(e,t,i,n){return new te(e,t,i,n)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:i=!1,filterFrom:n=0,filterTo:r=this.length}=e,o=e.filter;if(t.length==0&&!o)return this;if(i&&(t=t.slice().sort(wr)),this.isEmpty)return t.length?te.of(t):this;let a=new sh(this,null,-1).goto(0),l=0,h=[],c=new tn;for(;a.value||l=0){let u=t[l++];c.addInner(u.from,u.to,u.value)||h.push(u)}else a.rangeIndex==1&&a.chunkIndexthis.chunkEnd(a.chunkIndex)||ra.to||r=r&&e<=r+o.length&&o.between(r,e-r,t-r,i)===!1)return}this.nextLayer.between(e,t,i)}}iter(e=0){return nn.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return nn.from(e).goto(t)}static compare(e,t,i,n,r=-1){let o=e.filter(u=>u.maxPoint>0||!u.isEmpty&&u.maxPoint>=r),a=t.filter(u=>u.maxPoint>0||!u.isEmpty&&u.maxPoint>=r),l=ea(o,a,i),h=new Ci(o,l,r),c=new Ci(a,l,r);i.iterGaps((u,f,d)=>ta(h,u,c,f,d,n)),i.empty&&i.length==0&&ta(h,0,c,0,0,n)}static eq(e,t,i=0,n){n==null&&(n=999999999);let r=e.filter(c=>!c.isEmpty&&t.indexOf(c)<0),o=t.filter(c=>!c.isEmpty&&e.indexOf(c)<0);if(r.length!=o.length)return!1;if(!r.length)return!0;let a=ea(r,o),l=new Ci(r,a,0).goto(i),h=new Ci(o,a,0).goto(i);for(;;){if(l.to!=h.to||!Qr(l.active,h.active)||l.point&&(!h.point||!l.point.eq(h.point)))return!1;if(l.to>n)return!0;l.next(),h.next()}}static spans(e,t,i,n,r=-1){let o=new Ci(e,null,r).goto(t),a=t,l=o.openStart;for(;;){let h=Math.min(o.to,i);if(o.point){let c=o.activeForPoint(o.to),u=o.pointFroma&&(n.span(a,h,o.active,l),l=o.openEnd(h));if(o.to>i)return l+(o.point&&o.to>i?1:0);a=o.to,o.next()}}static of(e,t=!1){let i=new tn;for(let n of e instanceof xr?[e]:t?wp(e):e)i.add(n.from,n.to,n.value);return i.finish()}static join(e){if(!e.length)return te.empty;let t=e[e.length-1];for(let i=e.length-2;i>=0;i--)for(let n=e[i];n!=te.empty;n=n.nextLayer)t=new te(n.chunkPos,n.chunk,t,Math.max(n.maxPoint,t.maxPoint));return t}}te.empty=new te([],[],null,-1);function wp(s){if(s.length>1)for(let e=s[0],t=1;t0)return s.slice().sort(wr);e=i}return s}te.empty.nextLayer=te.empty;class tn{finishChunk(e){this.chunks.push(new oo(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,t,i){this.addInner(e,t,i)||(this.nextLayer||(this.nextLayer=new tn)).add(e,t,i)}addInner(e,t,i){let n=e-this.lastTo||i.startSide-this.last.endSide;if(n<=0&&(e-this.lastFrom||i.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return n<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=i,this.lastFrom=e,this.lastTo=t,this.value.push(i),i.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),!0)}addChunk(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let i=t.value.length-1;return this.last=t.value[i],this.lastFrom=t.from[i]+e,this.lastTo=t.to[i]+e,!0}finish(){return this.finishInner(te.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return e;let t=te.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function ea(s,e,t){let i=new Map;for(let r of s)for(let o=0;o=this.minPoint)break}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=i&&n.push(new sh(o,t,i,r));return n.length==1?n[0]:new nn(n)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let i of this.heap)i.goto(e,t);for(let i=this.heap.length>>1;i>=0;i--)Ls(this.heap,i);return this.next(),this}forward(e,t){for(let i of this.heap)i.forward(e,t);for(let i=this.heap.length>>1;i>=0;i--)Ls(this.heap,i);(this.to-e||this.value.endSide-t)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),Ls(this.heap,0)}}}function Ls(s,e){for(let t=s[e];;){let i=(e<<1)+1;if(i>=s.length)break;let n=s[i];if(i+1=0&&(n=s[i+1],i++),t.compare(n)<0)break;s[i]=t,s[e]=n,e=i}}class Ci{constructor(e,t,i){this.minPoint=i,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=nn.from(e,t,i)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){wn(this.active,e),wn(this.activeTo,e),wn(this.activeRank,e),this.minActive=ia(this.active,this.activeTo)}addActive(e){let t=0,{value:i,to:n,rank:r}=this.cursor;for(;t0;)t++;Qn(this.active,t,i),Qn(this.activeTo,t,n),Qn(this.activeRank,t,r),e&&Qn(e,t,this.cursor.from),this.minActive=ia(this.active,this.activeTo)}next(){let e=this.to,t=this.point;this.point=null;let i=this.openStart<0?[]:null;for(;;){let n=this.minActive;if(n>-1&&(this.activeTo[n]-this.cursor.from||this.active[n].endSide-this.cursor.startSide)<0){if(this.activeTo[n]>e){this.to=this.activeTo[n],this.endSide=this.active[n].endSide;break}this.removeActive(n),i&&wn(i,n)}else if(this.cursor.value)if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let r=this.cursor.value;if(!r.point)this.addActive(i),this.cursor.next();else if(t&&this.cursor.to==this.to&&this.cursor.from=0&&i[n]=0&&!(this.activeRank[i]e||this.activeTo[i]==e&&this.active[i].endSide>=this.point.endSide)&&t.push(this.active[i]);return t.reverse()}openEnd(e){let t=0;for(let i=this.activeTo.length-1;i>=0&&this.activeTo[i]>e;i--)t++;return t}}function ta(s,e,t,i,n,r){s.goto(e),t.goto(i);let o=i+n,a=i,l=i-e;for(;;){let h=s.to+l-t.to,c=h||s.endSide-t.endSide,u=c<0?s.to+l:t.to,f=Math.min(u,o);if(s.point||t.point?s.point&&t.point&&(s.point==t.point||s.point.eq(t.point))&&Qr(s.activeForPoint(s.to),t.activeForPoint(t.to))||r.comparePoint(a,f,s.point,t.point):f>a&&!Qr(s.active,t.active)&&r.compareRange(a,f,s.active,t.active),u>o)break;(h||s.openEnd!=t.openEnd)&&r.boundChange&&r.boundChange(u),a=u,c<=0&&s.next(),c>=0&&t.next()}}function Qr(s,e){if(s.length!=e.length)return!1;for(let t=0;t=e;i--)s[i+1]=s[i];s[e]=t}function ia(s,e){let t=-1,i=1e9;for(let n=0;n=e)return n;if(n==s.length)break;r+=s.charCodeAt(n)==9?t-r%t:1,n=Ze(s,n)}return s.length}const kr="ͼ",na=typeof Symbol>"u"?"__"+kr:Symbol.for(kr),Pr=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),sa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class Mt{constructor(e,t){this.rules=[];let{finish:i}=t||{};function n(o){return/^@/.test(o)?[o]:o.split(/,\s*/)}function r(o,a,l,h){let c=[],u=/^@(\w+)\b/.exec(o[0]),f=u&&u[1]=="keyframes";if(u&&a==null)return l.push(o[0]+";");for(let d in a){let p=a[d];if(/&/.test(d))r(d.split(/,\s*/).map(O=>o.map(m=>O.replace(/&/,m))).reduce((O,m)=>O.concat(m)),p,l);else if(p&&typeof p=="object"){if(!u)throw new RangeError("The value of a property ("+d+") should be a primitive value.");r(n(d),p,c,f)}else p!=null&&c.push(d.replace(/_.*/,"").replace(/[A-Z]/g,O=>"-"+O.toLowerCase())+": "+p+";")}(c.length||f)&&l.push((i&&!u&&!h?o.map(i):o).join(", ")+" {"+c.join(" ")+"}")}for(let o in e)r(n(o),e[o],this.rules)}getRules(){return this.rules.join(` +`)}static newName(){let e=sa[na]||1;return sa[na]=e+1,kr+e.toString(36)}static mount(e,t,i){let n=e[Pr],r=i&&i.nonce;n?r&&n.setNonce(r):n=new kp(e,r),n.mount(Array.isArray(t)?t:[t],e)}}let ra=new Map;class kp{constructor(e,t){let i=e.ownerDocument||e,n=i.defaultView;if(!e.head&&e.adoptedStyleSheets&&n.CSSStyleSheet){let r=ra.get(i);if(r)return e[Pr]=r;this.sheet=new n.CSSStyleSheet,ra.set(i,this)}else this.styleTag=i.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);this.modules=[],e[Pr]=this}mount(e,t){let i=this.sheet,n=0,r=0;for(let o=0;o-1&&(this.modules.splice(l,1),r--,l=-1),l==-1){if(this.modules.splice(r++,0,a),i)for(let h=0;h",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Pp=typeof navigator<"u"&&/Mac/.test(navigator.platform),vp=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var Qe=0;Qe<10;Qe++)Et[48+Qe]=Et[96+Qe]=String(Qe);for(var Qe=1;Qe<=24;Qe++)Et[Qe+111]="F"+Qe;for(var Qe=65;Qe<=90;Qe++)Et[Qe]=String.fromCharCode(Qe+32),sn[Qe]=String.fromCharCode(Qe);for(var Xs in Et)sn.hasOwnProperty(Xs)||(sn[Xs]=Et[Xs]);function $p(s){var e=Pp&&s.metaKey&&s.shiftKey&&!s.ctrlKey&&!s.altKey||vp&&s.shiftKey&&s.key&&s.key.length==1||s.key=="Unidentified",t=!e&&s.key||(s.shiftKey?sn:Et)[s.keyCode]||s.key||"Unidentified";return t=="Esc"&&(t="Escape"),t=="Del"&&(t="Delete"),t=="Left"&&(t="ArrowLeft"),t=="Up"&&(t="ArrowUp"),t=="Right"&&(t="ArrowRight"),t=="Down"&&(t="ArrowDown"),t}function rn(s){let e;return s.nodeType==11?e=s.getSelection?s:s.ownerDocument:e=s,e.getSelection()}function vr(s,e){return e?s==e||s.contains(e.nodeType!=1?e.parentNode:e):!1}function Bn(s,e){if(!e.anchorNode)return!1;try{return vr(s,e.anchorNode)}catch{return!1}}function on(s){return s.nodeType==3?ei(s,0,s.nodeValue.length).getClientRects():s.nodeType==1?s.getClientRects():[]}function Hi(s,e,t,i){return t?oa(s,e,t,i,-1)||oa(s,e,t,i,1):!1}function Jt(s){for(var e=0;;e++)if(s=s.previousSibling,!s)return e}function ts(s){return s.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(s.nodeName)}function oa(s,e,t,i,n){for(;;){if(s==t&&e==i)return!0;if(e==(n<0?0:dt(s))){if(s.nodeName=="DIV")return!1;let r=s.parentNode;if(!r||r.nodeType!=1)return!1;e=Jt(s)+(n<0?0:1),s=r}else if(s.nodeType==1){if(s=s.childNodes[e+(n<0?-1:0)],s.nodeType==1&&s.contentEditable=="false")return!1;e=n<0?dt(s):0}else return!1}}function dt(s){return s.nodeType==3?s.nodeValue.length:s.childNodes.length}function bs(s,e){let t=e?s.left:s.right;return{left:t,right:t,top:s.top,bottom:s.bottom}}function Tp(s){let e=s.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:s.innerWidth,top:0,bottom:s.innerHeight}}function rh(s,e){let t=e.width/s.offsetWidth,i=e.height/s.offsetHeight;return(t>.995&&t<1.005||!isFinite(t)||Math.abs(e.width-s.offsetWidth)<1)&&(t=1),(i>.995&&i<1.005||!isFinite(i)||Math.abs(e.height-s.offsetHeight)<1)&&(i=1),{scaleX:t,scaleY:i}}function _p(s,e,t,i,n,r,o,a){let l=s.ownerDocument,h=l.defaultView||window;for(let c=s,u=!1;c&&!u;)if(c.nodeType==1){let f,d=c==l.body,p=1,O=1;if(d)f=Tp(h);else{if(/^(fixed|sticky)$/.test(getComputedStyle(c).position)&&(u=!0),c.scrollHeight<=c.clientHeight&&c.scrollWidth<=c.clientWidth){c=c.assignedSlot||c.parentNode;continue}let k=c.getBoundingClientRect();({scaleX:p,scaleY:O}=rh(c,k)),f={left:k.left,right:k.left+c.clientWidth*p,top:k.top,bottom:k.top+c.clientHeight*O}}let m=0,g=0;if(n=="nearest")e.top0&&e.bottom>f.bottom+g&&(g=e.bottom-f.bottom+g+o)):e.bottom>f.bottom&&(g=e.bottom-f.bottom+o,t<0&&e.top-g0&&e.right>f.right+m&&(m=e.right-f.right+m+r)):e.right>f.right&&(m=e.right-f.right+r,t<0&&e.leftn.clientHeight&&(i=n),!t&&n.scrollWidth>n.clientWidth&&(t=n),n=n.assignedSlot||n.parentNode;else if(n.nodeType==11)n=n.host;else break;return{x:t,y:i}}class Zp{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:t,focusNode:i}=e;this.set(t,Math.min(e.anchorOffset,t?dt(t):0),i,Math.min(e.focusOffset,i?dt(i):0))}set(e,t,i,n){this.anchorNode=e,this.anchorOffset=t,this.focusNode=i,this.focusOffset=n}}let ri=null;function oh(s){if(s.setActive)return s.setActive();if(ri)return s.focus(ri);let e=[];for(let t=s;t&&(e.push(t,t.scrollTop,t.scrollLeft),t!=t.ownerDocument);t=t.parentNode);if(s.focus(ri==null?{get preventScroll(){return ri={preventScroll:!0},!0}}:void 0),!ri){ri=!1;for(let t=0;tMath.max(1,s.scrollHeight-s.clientHeight-4)}function hh(s,e){for(let t=s,i=e;;){if(t.nodeType==3&&i>0)return{node:t,offset:i};if(t.nodeType==1&&i>0){if(t.contentEditable=="false")return null;t=t.childNodes[i-1],i=dt(t)}else if(t.parentNode&&!ts(t))i=Jt(t),t=t.parentNode;else return null}}function ch(s,e){for(let t=s,i=e;;){if(t.nodeType==3&&it)return u.domBoundsAround(e,t,h);if(f>=e&&n==-1&&(n=l,r=h),h>t&&u.dom.parentNode==this.dom){o=l,a=c;break}c=f,h=f+u.breakAfter}return{from:r,to:a<0?i+this.length:a,startDOM:(n?this.children[n-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:o=0?this.children[o].dom:null}}markDirty(e=!1){this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let t=this.parent;t;t=t.parent){if(e&&(t.flags|=2),t.flags&1)return;t.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,this.flags&7&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let t=e.parent;if(!t)return e;e=t}}replaceChildren(e,t,i=ao){this.markDirty();for(let n=e;nthis.pos||e==this.pos&&(t>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let i=this.children[--this.i];this.pos-=i.length+i.breakAfter}}}function fh(s,e,t,i,n,r,o,a,l){let{children:h}=s,c=h.length?h[e]:null,u=r.length?r[r.length-1]:null,f=u?u.breakAfter:o;if(!(e==i&&c&&!o&&!f&&r.length<2&&c.merge(t,n,r.length?u:null,t==0,a,l))){if(i0&&(!o&&r.length&&c.merge(t,c.length,r[0],!1,a,0)?c.breakAfter=r.shift().breakAfter:(t2);var C={mac:ua||/Mac/.test(De.platform),windows:/Win/.test(De.platform),linux:/Linux|X11/.test(De.platform),ie:Ss,ie_version:ph?$r.documentMode||6:_r?+_r[1]:Tr?+Tr[1]:0,gecko:ha,gecko_version:ha?+(/Firefox\/(\d+)/.exec(De.userAgent)||[0,0])[1]:0,chrome:!!Ds,chrome_version:Ds?+Ds[1]:0,ios:ua,android:/Android\b/.test(De.userAgent),webkit:ca,safari:Oh,webkit_version:ca?+(/\bAppleWebKit\/(\d+)/.exec(De.userAgent)||[0,0])[1]:0,tabSize:$r.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const Mp=256;class it extends re{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,t){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(t&&t.node==this.dom&&(t.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){e.nodeType==3&&this.createDOM(e)}merge(e,t,i){return this.flags&8||i&&(!(i instanceof it)||this.length-(t-e)+i.length>Mp||i.flags&8)?!1:(this.text=this.text.slice(0,e)+(i?i.text:"")+this.text.slice(t),this.markDirty(),!0)}split(e){let t=new it(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),t.flags|=this.flags&8,t}localPosFromDOM(e,t){return e==this.dom?t:t?this.text.length:0}domAtPos(e){return new ve(this.dom,e)}domBoundsAround(e,t,i){return{from:i,to:i+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,t){return Ep(this.dom,e,t)}}class $t extends re{constructor(e,t=[],i=0){super(),this.mark=e,this.children=t,this.length=i;for(let n of t)n.setParent(this)}setAttrs(e){if(ah(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let t in this.mark.attrs)e.setAttribute(t,this.mark.attrs[t]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!((this.flags|e.flags)&8)}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,t){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,t)}merge(e,t,i,n,r,o){return i&&(!(i instanceof $t&&i.mark.eq(this.mark))||e&&r<=0||te&&t.push(i=e&&(n=r),i=l,r++}let o=this.length-e;return this.length=e,n>-1&&(this.children.length=n,this.markDirty()),new $t(this.mark,t,o)}domAtPos(e){return mh(this,e)}coordsAt(e,t){return yh(this,e,t)}}function Ep(s,e,t){let i=s.nodeValue.length;e>i&&(e=i);let n=e,r=e,o=0;e==0&&t<0||e==i&&t>=0?C.chrome||C.gecko||(e?(n--,o=1):r=0)?0:a.length-1];return C.safari&&!o&&l.width==0&&(l=Array.prototype.find.call(a,h=>h.width)||l),o?bs(l,o<0):l||null}class Gt extends re{static create(e,t,i){return new Gt(e,t,i)}constructor(e,t,i){super(),this.widget=e,this.length=t,this.side=i,this.prevWidget=null}split(e){let t=Gt.create(this.widget,this.length-e,this.side);return this.length-=e,t}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(e,t,i,n,r,o){return i&&(!(i instanceof Gt)||!this.widget.compare(i.widget)||e>0&&r<=0||t0)?ve.before(this.dom):ve.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,t){let i=this.widget.coordsAt(this.dom,e,t);if(i)return i;let n=this.dom.getClientRects(),r=null;if(!n.length)return null;let o=this.side?this.side<0:e>0;for(let a=o?n.length-1:0;r=n[a],!(e>0?a==0:a==n.length-1||r.top0?ve.before(this.dom):ve.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return K.empty}get isHidden(){return!0}}it.prototype.children=Gt.prototype.children=wi.prototype.children=ao;function mh(s,e){let t=s.dom,{children:i}=s,n=0;for(let r=0;nr&&e0;r--){let o=i[r-1];if(o.dom.parentNode==t)return o.domAtPos(o.length)}for(let r=n;r0&&e instanceof $t&&n.length&&(i=n[n.length-1])instanceof $t&&i.mark.eq(e.mark)?gh(i,e.children[0],t-1):(n.push(e),e.setParent(s)),s.length+=e.length}function yh(s,e,t){let i=null,n=-1,r=null,o=-1;function a(h,c){for(let u=0,f=0;u=c&&(d.children.length?a(d,c-f):(!r||r.isHidden&&t>0)&&(p>c||f==p&&d.getSide()>0)?(r=d,o=c-f):(f-1?1:0)!=n.length-(t&&n.indexOf(t)>-1?1:0))return!1;for(let r of i)if(r!=t&&(n.indexOf(r)==-1||s[r]!==e[r]))return!1;return!0}function Zr(s,e,t){let i=!1;if(e)for(let n in e)t&&n in t||(i=!0,n=="style"?s.style.cssText="":s.removeAttribute(n));if(t)for(let n in t)e&&e[n]==t[n]||(i=!0,n=="style"?s.style.cssText=t[n]:s.setAttribute(n,t[n]));return i}function Xp(s){let e=Object.create(null);for(let t=0;t0?3e8:-4e8:t>0?1e8:-1e8,new Lt(e,t,t,i,e.widget||null,!1)}static replace(e){let t=!!e.block,i,n;if(e.isBlockGap)i=-5e8,n=4e8;else{let{start:r,end:o}=bh(e,t);i=(r?t?-3e8:-1:5e8)-1,n=(o?t?2e8:1:-6e8)+1}return new Lt(e,i,n,t,e.widget||null,!0)}static line(e){return new dn(e)}static set(e,t=!1){return te.of(e,t)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}pe.none=te.empty;class fn extends pe{constructor(e){let{start:t,end:i}=bh(e);super(t?-1:5e8,i?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var t,i;return this==e||e instanceof fn&&this.tagName==e.tagName&&(this.class||((t=this.attrs)===null||t===void 0?void 0:t.class))==(e.class||((i=e.attrs)===null||i===void 0?void 0:i.class))&&is(this.attrs,e.attrs,"class")}range(e,t=e){if(e>=t)throw new RangeError("Mark decorations may not be empty");return super.range(e,t)}}fn.prototype.point=!1;class dn extends pe{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof dn&&this.spec.class==e.spec.class&&is(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}}dn.prototype.mapMode=Ae.TrackBefore;dn.prototype.point=!0;class Lt extends pe{constructor(e,t,i,n,r,o){super(t,i,r,e),this.block=n,this.isReplace=o,this.mapMode=n?t<=0?Ae.TrackBefore:Ae.TrackAfter:Ae.TrackDel}get type(){return this.startSide!=this.endSide?Ye.WidgetRange:this.startSide<=0?Ye.WidgetBefore:Ye.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof Lt&&Dp(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}}Lt.prototype.point=!0;function bh(s,e=!1){let{inclusiveStart:t,inclusiveEnd:i}=s;return t==null&&(t=s.inclusive),i==null&&(i=s.inclusive),{start:t??e,end:i??e}}function Dp(s,e){return s==e||!!(s&&e&&s.compare(e))}function Nn(s,e,t,i=0){let n=t.length-1;n>=0&&t[n]+i>=s?t[n]=Math.max(t[n],e):t.push(s,e)}class Oe extends re{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(e,t,i,n,r,o){if(i){if(!(i instanceof Oe))return!1;this.dom||i.transferDOM(this)}return n&&this.setDeco(i?i.attrs:null),dh(this,e,t,i?i.children.slice():[],r,o),!0}split(e){let t=new Oe;if(t.breakAfter=this.breakAfter,this.length==0)return t;let{i,off:n}=this.childPos(e);n&&(t.append(this.children[i].split(n),0),this.children[i].merge(n,this.children[i].length,null,!1,0,0),i++);for(let r=i;r0&&this.children[i-1].length==0;)this.children[--i].destroy();return this.children.length=i,this.markDirty(),this.length=e,t}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){is(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,t){gh(this,e,t)}addLineDeco(e){let t=e.spec.attributes,i=e.spec.class;t&&(this.attrs=Ar(t,this.attrs||{})),i&&(this.attrs=Ar({class:i},this.attrs||{}))}domAtPos(e){return mh(this,e)}reuseDOM(e){e.nodeName=="DIV"&&(this.setDOM(e),this.flags|=6)}sync(e,t){var i;this.dom?this.flags&4&&(ah(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&(Zr(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,t);let n=this.dom.lastChild;for(;n&&re.get(n)instanceof $t;)n=n.lastChild;if(!n||!this.length||n.nodeName!="BR"&&((i=re.get(n))===null||i===void 0?void 0:i.isEditable)==!1&&(!C.ios||!this.children.some(r=>r instanceof it))){let r=document.createElement("BR");r.cmIgnore=!0,this.dom.appendChild(r)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let e=0,t;for(let i of this.children){if(!(i instanceof it)||/[^ -~]/.test(i.text))return null;let n=on(i.dom);if(n.length!=1)return null;e+=n[0].width,t=n[0].height}return e?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length,textHeight:t}:null}coordsAt(e,t){let i=yh(this,e,t);if(!this.children.length&&i&&this.parent){let{heightOracle:n}=this.parent.view.viewState,r=i.bottom-i.top;if(Math.abs(r-n.lineHeight)<2&&n.textHeight=t){if(r instanceof Oe)return r;if(o>t)break}n=o+r.breakAfter}return null}}class kt extends re{constructor(e,t,i){super(),this.widget=e,this.length=t,this.deco=i,this.breakAfter=0,this.prevWidget=null}merge(e,t,i,n,r,o){return i&&(!(i instanceof kt)||!this.widget.compare(i.widget)||e>0&&r<=0||t0}}class Rr extends xs{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return e.className="cm-gap",this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}}class Ki{constructor(e,t,i,n){this.doc=e,this.pos=t,this.end=i,this.disallowBlockEffectsFor=n,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=t}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof kt&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new Oe),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(kn(new wi(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(e&&this.content.length&&this.content[this.content.length-1]instanceof kt)&&this.getLine()}buildText(e,t,i){for(;e>0;){if(this.textOff==this.text.length){let{value:r,lineBreak:o,done:a}=this.cursor.next(this.skip);if(this.skip=0,a)throw new Error("Ran out of text content when drawing inline views");if(o){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}else this.text=r,this.textOff=0}let n=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(t.slice(t.length-i)),this.getLine().append(kn(new it(this.text.slice(this.textOff,this.textOff+n)),t),i),this.atCursorPos=!0,this.textOff+=n,e-=n,i=0}}span(e,t,i,n){this.buildText(t-e,i,n),this.pos=t,this.openStart<0&&(this.openStart=n)}point(e,t,i,n,r,o){if(this.disallowBlockEffectsFor[o]&&i instanceof Lt){if(i.block)throw new RangeError("Block decorations may not be specified via plugins");if(t>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let a=t-e;if(i instanceof Lt)if(i.block)i.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new kt(i.widget||Qi.block,a,i));else{let l=Gt.create(i.widget||Qi.inline,a,a?0:i.startSide),h=this.atCursorPos&&!l.isEditable&&r<=n.length&&(e0),c=!l.isEditable&&(en.length||i.startSide<=0),u=this.getLine();this.pendingBuffer==2&&!h&&!l.isEditable&&(this.pendingBuffer=0),this.flushBuffer(n),h&&(u.append(kn(new wi(1),n),r),r=n.length+Math.max(0,r-n.length)),u.append(kn(l,n),r),this.atCursorPos=c,this.pendingBuffer=c?en.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=n.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(i);a&&(this.textOff+a<=this.text.length?this.textOff+=a:(this.skip+=a-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=t),this.openStart<0&&(this.openStart=r)}static build(e,t,i,n,r){let o=new Ki(e,t,i,r);return o.openEnd=te.spans(n,t,i,o),o.openStart<0&&(o.openStart=o.openEnd),o.finish(o.openEnd),o}}function kn(s,e){for(let t of e)s=new $t(t,[s],s.length);return s}class Qi extends xs{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}Qi.inline=new Qi("span");Qi.block=new Qi("div");var be=function(s){return s[s.LTR=0]="LTR",s[s.RTL=1]="RTL",s}(be||(be={}));const ti=be.LTR,lo=be.RTL;function Sh(s){let e=[];for(let t=0;t=t){if(a.level==i)return o;(r<0||(n!=0?n<0?a.fromt:e[r].level>a.level))&&(r=o)}}if(r<0)throw new RangeError("Index out of range");return r}}function wh(s,e){if(s.length!=e.length)return!1;for(let t=0;t=0;O-=3)if(rt[O+1]==-d){let m=rt[O+2],g=m&2?n:m&4?m&1?r:n:0;g&&(se[u]=se[rt[O]]=g),a=O;break}}else{if(rt.length==189)break;rt[a++]=u,rt[a++]=f,rt[a++]=l}else if((p=se[u])==2||p==1){let O=p==n;l=O?0:1;for(let m=a-3;m>=0;m-=3){let g=rt[m+2];if(g&2)break;if(O)rt[m+2]|=2;else{if(g&4)break;rt[m+2]|=4}}}}}function Up(s,e,t,i){for(let n=0,r=i;n<=t.length;n++){let o=n?t[n-1].to:s,a=nl;)p==m&&(p=t[--O].from,m=O?t[O-1].to:s),se[--p]=d;l=c}else r=h,l++}}}function Mr(s,e,t,i,n,r,o){let a=i%2?2:1;if(i%2==n%2)for(let l=e,h=0;ll&&o.push(new Ct(l,O.from,d));let m=O.direction==ti!=!(d%2);Er(s,m?i+1:i,n,O.inner,O.from,O.to,o),l=O.to}p=O.to}else{if(p==t||(c?se[p]!=a:se[p]==a))break;p++}f?Mr(s,l,p,i+1,n,f,o):le;){let c=!0,u=!1;if(!h||l>r[h-1].to){let O=se[l-1];O!=a&&(c=!1,u=O==16)}let f=!c&&a==1?[]:null,d=c?i:i+1,p=l;e:for(;;)if(h&&p==r[h-1].to){if(u)break e;let O=r[--h];if(!c)for(let m=O.from,g=h;;){if(m==e)break e;if(g&&r[g-1].to==m)m=r[--g].from;else{if(se[m-1]==a)break e;break}}if(f)f.push(O);else{O.tose.length;)se[se.length]=256;let i=[],n=e==ti?0:1;return Er(s,n,n,t,0,s.length,i),i}function Qh(s){return[new Ct(0,s,0)]}let kh="";function zp(s,e,t,i,n){var r;let o=i.head-s.from,a=Ct.find(e,o,(r=i.bidiLevel)!==null&&r!==void 0?r:-1,i.assoc),l=e[a],h=l.side(n,t);if(o==h){let f=a+=n?1:-1;if(f<0||f>=e.length)return null;l=e[a=f],o=l.side(!n,t),h=l.side(n,t)}let c=Ze(s.text,o,l.forward(n,t));(cl.to)&&(c=h),kh=s.text.slice(Math.min(o,c),Math.max(o,c));let u=a==(n?e.length-1:0)?null:e[a+(n?1:-1)];return u&&c==h&&u.level+(n?0:1)s.some(e=>e)}),Gp=I.define({combine:s=>s.some(e=>e)}),Rh=I.define();class mi{constructor(e,t="nearest",i="nearest",n=5,r=5,o=!1){this.range=e,this.y=t,this.x=i,this.yMargin=n,this.xMargin=r,this.isSnapshot=o}map(e){return e.empty?this:new mi(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new mi(_.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const Pn=ce.define({map:(s,e)=>s.map(e)}),Ch=ce.define();function ut(s,e,t){let i=s.facet(Th);i.length?i[0](e):window.onerror?window.onerror(String(e),t,void 0,void 0,e):t?console.error(t+":",e):console.error(e)}const xt=I.define({combine:s=>s.length?s[0]:!0});let Yp=0;const Ii=I.define();class Xt{constructor(e,t,i,n,r){this.id=e,this.create=t,this.domEventHandlers=i,this.domEventObservers=n,this.extension=r(this)}static define(e,t){const{eventHandlers:i,eventObservers:n,provide:r,decorations:o}=t||{};return new Xt(Yp++,e,i,n,a=>{let l=[Ii.of(a)];return o&&l.push(an.of(h=>{let c=h.plugin(a);return c?o(c):pe.none})),r&&l.push(r(a)),l})}static fromClass(e,t){return Xt.define(i=>new e(i),t)}}class js{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let t=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(t)}catch(i){if(ut(t.state,i,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(t){ut(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(!((t=this.value)===null||t===void 0)&&t.destroy)try{this.value.destroy()}catch(i){ut(e.state,i,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const Mh=I.define(),uo=I.define(),an=I.define(),Eh=I.define(),fo=I.define(),Lh=I.define();function da(s,e){let t=s.state.facet(Lh);if(!t.length)return t;let i=t.map(r=>r instanceof Function?r(s):r),n=[];return te.spans(i,e.from,e.to,{point(){},span(r,o,a,l){let h=r-e.from,c=o-e.from,u=n;for(let f=a.length-1;f>=0;f--,l--){let d=a[f].spec.bidiIsolate,p;if(d==null&&(d=Wp(e.text,h,c)),l>0&&u.length&&(p=u[u.length-1]).to==h&&p.direction==d)p.to=c,u=p.inner;else{let O={from:h,to:c,direction:d,inner:[]};u.push(O),u=O.inner}}}}),n}const Xh=I.define();function Dh(s){let e=0,t=0,i=0,n=0;for(let r of s.state.facet(Xh)){let o=r(s);o&&(o.left!=null&&(e=Math.max(e,o.left)),o.right!=null&&(t=Math.max(t,o.right)),o.top!=null&&(i=Math.max(i,o.top)),o.bottom!=null&&(n=Math.max(n,o.bottom)))}return{left:e,right:t,top:i,bottom:n}}const Vi=I.define();class Fe{constructor(e,t,i,n){this.fromA=e,this.toA=t,this.fromB=i,this.toB=n}join(e){return new Fe(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,i=this;for(;t>0;t--){let n=e[t-1];if(!(n.fromA>i.toA)){if(n.toAc)break;r+=2}if(!l)return i;new Fe(l.fromA,l.toA,l.fromB,l.toB).addToSet(i),o=l.toA,a=l.toB}}}class ns{constructor(e,t,i){this.view=e,this.state=t,this.transactions=i,this.flags=0,this.startState=e.state,this.changes=Se.empty(this.startState.doc.length);for(let r of i)this.changes=this.changes.compose(r.changes);let n=[];this.changes.iterChangedRanges((r,o,a,l)=>n.push(new Fe(r,o,a,l))),this.changedRanges=n}static create(e,t,i){return new ns(e,t,i)}get viewportChanged(){return(this.flags&4)>0}get viewportMoved(){return(this.flags&8)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&18)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}class pa extends re{get length(){return this.view.state.doc.length}constructor(e){super(),this.view=e,this.decorations=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.editContextFormatting=pe.none,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(e.contentDOM),this.children=[new Oe],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new Fe(0,0,0,e.state.doc.length)],0,null)}update(e){var t;let i=e.changedRanges;this.minWidth>0&&i.length&&(i.every(({fromA:h,toA:c})=>cthis.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(e);let n=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&(!((t=this.domChanged)===null||t===void 0)&&t.newSel?n=this.domChanged.newSel.head:!iO(e.changes,this.hasComposition)&&!e.selectionSet&&(n=e.state.selection.main.head));let r=n>-1?Hp(this.view,e.changes,n):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:h,to:c}=this.hasComposition;i=new Fe(h,c,e.changes.mapPos(h,-1),e.changes.mapPos(c,1)).addToSet(i.slice())}this.hasComposition=r?{from:r.range.fromB,to:r.range.toB}:null,(C.ie||C.chrome)&&!r&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let o=this.decorations,a=this.updateDeco(),l=eO(o,a,e.changes);return i=Fe.extendWithRanges(i,l),!(this.flags&7)&&i.length==0?!1:(this.updateInner(i,e.startState.doc.length,r),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,t,i){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,t,i);let{observer:n}=this.view;n.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let o=C.chrome||C.ios?{node:n.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,o),this.flags&=-8,o&&(o.written||n.selectionRange.focusNode!=o.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(o=>o.flags&=-9);let r=[];if(this.view.viewport.from||this.view.viewport.to=0?n[o]:null;if(!a)break;let{fromA:l,toA:h,fromB:c,toB:u}=a,f,d,p,O;if(i&&i.range.fromBc){let y=Ki.build(this.view.state.doc,c,i.range.fromB,this.decorations,this.dynamicDecorationMap),Q=Ki.build(this.view.state.doc,i.range.toB,u,this.decorations,this.dynamicDecorationMap);d=y.breakAtStart,p=y.openStart,O=Q.openEnd;let S=this.compositionView(i);Q.breakAtStart?S.breakAfter=1:Q.content.length&&S.merge(S.length,S.length,Q.content[0],!1,Q.openStart,0)&&(S.breakAfter=Q.content[0].breakAfter,Q.content.shift()),y.content.length&&S.merge(0,0,y.content[y.content.length-1],!0,0,y.openEnd)&&y.content.pop(),f=y.content.concat(S).concat(Q.content)}else({content:f,breakAtStart:d,openStart:p,openEnd:O}=Ki.build(this.view.state.doc,c,u,this.decorations,this.dynamicDecorationMap));let{i:m,off:g}=r.findPos(h,1),{i:k,off:P}=r.findPos(l,-1);fh(this,k,P,m,g,f,d,p,O)}i&&this.fixCompositionDOM(i)}updateEditContextFormatting(e){this.editContextFormatting=this.editContextFormatting.map(e.changes);for(let t of e.transactions)for(let i of t.effects)i.is(Ch)&&(this.editContextFormatting=i.value)}compositionView(e){let t=new it(e.text.nodeValue);t.flags|=8;for(let{deco:n}of e.marks)t=new $t(n,[t],t.length);let i=new Oe;return i.append(t,0),i}fixCompositionDOM(e){let t=(r,o)=>{o.flags|=8|(o.children.some(l=>l.flags&7)?1:0),this.markedForComposition.add(o);let a=re.get(r);a&&a!=o&&(a.dom=null),o.setDOM(r)},i=this.childPos(e.range.fromB,1),n=this.children[i.i];t(e.line,n);for(let r=e.marks.length-1;r>=-1;r--)i=n.childPos(i.off,1),n=n.children[i.i],t(r>=0?e.marks[r].node:e.text,n)}updateSelection(e=!1,t=!1){(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let i=this.view.root.activeElement,n=i==this.dom,r=!n&&!(this.view.state.facet(xt)||this.dom.tabIndex>-1)&&Bn(this.dom,this.view.observer.selectionRange)&&!(i&&this.dom.contains(i));if(!(n||t||r))return;let o=this.forceSelection;this.forceSelection=!1;let a=this.view.state.selection.main,l=this.moveToLine(this.domAtPos(a.anchor)),h=a.empty?l:this.moveToLine(this.domAtPos(a.head));if(C.gecko&&a.empty&&!this.hasComposition&&Fp(l)){let u=document.createTextNode("");this.view.observer.ignore(()=>l.node.insertBefore(u,l.node.childNodes[l.offset]||null)),l=h=new ve(u,0),o=!0}let c=this.view.observer.selectionRange;(o||!c.focusNode||(!Hi(l.node,l.offset,c.anchorNode,c.anchorOffset)||!Hi(h.node,h.offset,c.focusNode,c.focusOffset))&&!this.suppressWidgetCursorChange(c,a))&&(this.view.observer.ignore(()=>{C.android&&C.chrome&&this.dom.contains(c.focusNode)&&tO(c.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let u=rn(this.view.root);if(u)if(a.empty){if(C.gecko){let f=Kp(l.node,l.offset);if(f&&f!=3){let d=(f==1?hh:ch)(l.node,l.offset);d&&(l=new ve(d.node,d.offset))}}u.collapse(l.node,l.offset),a.bidiLevel!=null&&u.caretBidiLevel!==void 0&&(u.caretBidiLevel=a.bidiLevel)}else if(u.extend){u.collapse(l.node,l.offset);try{u.extend(h.node,h.offset)}catch{}}else{let f=document.createRange();a.anchor>a.head&&([l,h]=[h,l]),f.setEnd(h.node,h.offset),f.setStart(l.node,l.offset),u.removeAllRanges(),u.addRange(f)}r&&this.view.root.activeElement==this.dom&&(this.dom.blur(),i&&i.focus())}),this.view.observer.setSelectionRange(l,h)),this.impreciseAnchor=l.precise?null:new ve(c.anchorNode,c.anchorOffset),this.impreciseHead=h.precise?null:new ve(c.focusNode,c.focusOffset)}suppressWidgetCursorChange(e,t){return this.hasComposition&&t.empty&&Hi(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==t.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,t=e.state.selection.main,i=rn(e.root),{anchorNode:n,anchorOffset:r}=e.observer.selectionRange;if(!i||!t.empty||!t.assoc||!i.modify)return;let o=Oe.find(this,t.head);if(!o)return;let a=o.posAtStart;if(t.head==a||t.head==a+o.length)return;let l=this.coordsAt(t.head,-1),h=this.coordsAt(t.head,1);if(!l||!h||l.bottom>h.top)return;let c=this.domAtPos(t.head+t.assoc);i.collapse(c.node,c.offset),i.modify("move",t.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let u=e.observer.selectionRange;e.docView.posFromDOM(u.anchorNode,u.anchorOffset)!=t.from&&i.collapse(n,r)}moveToLine(e){let t=this.dom,i;if(e.node!=t)return e;for(let n=e.offset;!i&&n=0;n--){let r=re.get(t.childNodes[n]);r instanceof Oe&&(i=r.domAtPos(r.length))}return i?new ve(i.node,i.offset,!0):e}nearest(e){for(let t=e;t;){let i=re.get(t);if(i&&i.rootView==this)return i;t=t.parentNode}return null}posFromDOM(e,t){let i=this.nearest(e);if(!i)throw new RangeError("Trying to find position for a DOM position outside of the document");return i.localPosFromDOM(e,t)+i.posAtStart}domAtPos(e){let{i:t,off:i}=this.childCursor().findPos(e,-1);for(;t=0;o--){let a=this.children[o],l=r-a.breakAfter,h=l-a.length;if(le||a.covers(1))&&(!i||a instanceof Oe&&!(i instanceof Oe&&t>=0)))i=a,n=h;else if(i&&h==e&&l==e&&a instanceof kt&&Math.abs(t)<2){if(a.deco.startSide<0)break;o&&(i=null)}r=h}return i?i.coordsAt(e-n,t):null}coordsForChar(e){let{i:t,off:i}=this.childPos(e,1),n=this.children[t];if(!(n instanceof Oe))return null;for(;n.children.length;){let{i:a,off:l}=n.childPos(i,1);for(;;a++){if(a==n.children.length)return null;if((n=n.children[a]).length)break}i=l}if(!(n instanceof it))return null;let r=Ze(n.text,i);if(r==i)return null;let o=ei(n.dom,i,r).getClientRects();for(let a=0;aMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,a=-1,l=this.view.textDirection==be.LTR;for(let h=0,c=0;cn)break;if(h>=i){let d=u.dom.getBoundingClientRect();if(t.push(d.height),o){let p=u.dom.lastChild,O=p?on(p):[];if(O.length){let m=O[O.length-1],g=l?m.right-d.left:d.right-m.left;g>a&&(a=g,this.minWidth=r,this.minWidthFrom=h,this.minWidthTo=f)}}}h=f+u.breakAfter}return t}textDirectionAt(e){let{i:t}=this.childPos(e,1);return getComputedStyle(this.children[t].dom).direction=="rtl"?be.RTL:be.LTR}measureTextSize(){for(let r of this.children)if(r instanceof Oe){let o=r.measureTextSize();if(o)return o}let e=document.createElement("div"),t,i,n;return e.className="cm-line",e.style.width="99999px",e.style.position="absolute",e.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(e);let r=on(e.firstChild)[0];t=e.getBoundingClientRect().height,i=r?r.width/27:7,n=r?r.height:t,e.remove()}),{lineHeight:t,charWidth:i,textHeight:n}}childCursor(e=this.length){let t=this.children.length;return t&&(e-=this.children[--t].length),new uh(this.children,e,t)}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let i=0,n=0;;n++){let r=n==t.viewports.length?null:t.viewports[n],o=r?r.from-1:this.length;if(o>i){let a=(t.lineBlockAt(o).bottom-t.lineBlockAt(i).top)/this.view.scaleY;e.push(pe.replace({widget:new Rr(a),block:!0,inclusive:!0,isBlockGap:!0}).range(i,o))}if(!r)break;i=r.to+1}return pe.set(e)}updateDeco(){let e=1,t=this.view.state.facet(an).map(r=>(this.dynamicDecorationMap[e++]=typeof r=="function")?r(this.view):r),i=!1,n=this.view.state.facet(Eh).map((r,o)=>{let a=typeof r=="function";return a&&(i=!0),a?r(this.view):r});for(n.length&&(this.dynamicDecorationMap[e++]=i,t.push(te.join(n))),this.decorations=[this.editContextFormatting,...t,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];et.anchor?-1:1),n;if(!i)return;!t.empty&&(n=this.coordsAt(t.anchor,t.anchor>t.head?-1:1))&&(i={left:Math.min(i.left,n.left),top:Math.min(i.top,n.top),right:Math.max(i.right,n.right),bottom:Math.max(i.bottom,n.bottom)});let r=Dh(this.view),o={left:i.left-r.left,top:i.top-r.top,right:i.right+r.right,bottom:i.bottom+r.bottom},{offsetWidth:a,offsetHeight:l}=this.view.scrollDOM;_p(this.view.scrollDOM,o,t.head{ie.from&&(t=!0)}),t}function nO(s,e,t=1){let i=s.charCategorizer(e),n=s.doc.lineAt(e),r=e-n.from;if(n.length==0)return _.cursor(e);r==0?t=1:r==n.length&&(t=-1);let o=r,a=r;t<0?o=Ze(n.text,r,!1):a=Ze(n.text,r);let l=i(n.text.slice(o,a));for(;o>0;){let h=Ze(n.text,o,!1);if(i(n.text.slice(h,o))!=l)break;o=h}for(;as?e.left-s:Math.max(0,s-e.right)}function rO(s,e){return e.top>s?e.top-s:Math.max(0,s-e.bottom)}function Is(s,e){return s.tope.top+1}function Oa(s,e){return es.bottom?{top:s.top,left:s.left,right:s.right,bottom:e}:s}function Xr(s,e,t){let i,n,r,o,a=!1,l,h,c,u;for(let p=s.firstChild;p;p=p.nextSibling){let O=on(p);for(let m=0;mP||o==P&&r>k){i=p,n=g,r=k,o=P;let y=P?t0?m0)}k==0?t>g.bottom&&(!c||c.bottomg.top)&&(h=p,u=g):c&&Is(c,g)?c=ma(c,g.bottom):u&&Is(u,g)&&(u=Oa(u,g.top))}}if(c&&c.bottom>=t?(i=l,n=c):u&&u.top<=t&&(i=h,n=u),!i)return{node:s,offset:0};let f=Math.max(n.left,Math.min(n.right,e));if(i.nodeType==3)return ga(i,f,t);if(a&&i.contentEditable!="false")return Xr(i,f,t);let d=Array.prototype.indexOf.call(s.childNodes,i)+(e>=(n.left+n.right)/2?1:0);return{node:s,offset:d}}function ga(s,e,t){let i=s.nodeValue.length,n=-1,r=1e9,o=0;for(let a=0;at?c.top-t:t-c.bottom)-1;if(c.left-1<=e&&c.right+1>=e&&u=(c.left+c.right)/2,d=f;if((C.chrome||C.gecko)&&ei(s,a).getBoundingClientRect().left==c.right&&(d=!f),u<=0)return{node:s,offset:a+(d?1:0)};n=a+(d?1:0),r=u}}}return{node:s,offset:n>-1?n:o>0?s.nodeValue.length:0}}function Ih(s,e,t,i=-1){var n,r;let o=s.contentDOM.getBoundingClientRect(),a=o.top+s.viewState.paddingTop,l,{docHeight:h}=s.viewState,{x:c,y:u}=e,f=u-a;if(f<0)return 0;if(f>h)return s.state.doc.length;for(let y=s.viewState.heightOracle.textHeight/2,Q=!1;l=s.elementAtHeight(f),l.type!=Ye.Text;)for(;f=i>0?l.bottom+y:l.top-y,!(f>=0&&f<=h);){if(Q)return t?null:0;Q=!0,i=-i}u=a+f;let d=l.from;if(ds.viewport.to)return s.viewport.to==s.state.doc.length?s.state.doc.length:t?null:ya(s,o,l,c,u);let p=s.dom.ownerDocument,O=s.root.elementFromPoint?s.root:p,m=O.elementFromPoint(c,u);m&&!s.contentDOM.contains(m)&&(m=null),m||(c=Math.max(o.left+1,Math.min(o.right-1,c)),m=O.elementFromPoint(c,u),m&&!s.contentDOM.contains(m)&&(m=null));let g,k=-1;if(m&&((n=s.docView.nearest(m))===null||n===void 0?void 0:n.isEditable)!=!1){if(p.caretPositionFromPoint){let y=p.caretPositionFromPoint(c,u);y&&({offsetNode:g,offset:k}=y)}else if(p.caretRangeFromPoint){let y=p.caretRangeFromPoint(c,u);y&&({startContainer:g,startOffset:k}=y,(!s.contentDOM.contains(g)||C.safari&&oO(g,k,c)||C.chrome&&aO(g,k,c))&&(g=void 0))}g&&(k=Math.min(dt(g),k))}if(!g||!s.docView.dom.contains(g)){let y=Oe.find(s.docView,d);if(!y)return f>l.top+l.height/2?l.to:l.from;({node:g,offset:k}=Xr(y.dom,c,u))}let P=s.docView.nearest(g);if(!P)return null;if(P.isWidget&&((r=P.dom)===null||r===void 0?void 0:r.nodeType)==1){let y=P.dom.getBoundingClientRect();return e.ys.defaultLineHeight*1.5){let a=s.viewState.heightOracle.textHeight,l=Math.floor((n-t.top-(s.defaultLineHeight-a)*.5)/a);r+=l*s.viewState.heightOracle.lineLength}let o=s.state.sliceDoc(t.from,t.to);return t.from+Qp(o,r,s.state.tabSize)}function oO(s,e,t){let i;if(s.nodeType!=3||e!=(i=s.nodeValue.length))return!1;for(let n=s.nextSibling;n;n=n.nextSibling)if(n.nodeType!=1||n.nodeName!="BR")return!1;return ei(s,i-1,i).getBoundingClientRect().left>t}function aO(s,e,t){if(e!=0)return!1;for(let n=s;;){let r=n.parentNode;if(!r||r.nodeType!=1||r.firstChild!=n)return!1;if(r.classList.contains("cm-line"))break;n=r}let i=s.nodeType==1?s.getBoundingClientRect():ei(s,0,Math.max(s.nodeValue.length,1)).getBoundingClientRect();return t-i.left>5}function lO(s,e){let t=s.lineBlockAt(e);if(Array.isArray(t.type)){for(let i of t.type)if(i.to>e||i.to==e&&(i.to==t.to||i.type==Ye.Text))return i}return t}function hO(s,e,t,i){let n=lO(s,e.head),r=!i||n.type!=Ye.Text||!(s.lineWrapping||n.widgetLineBreaks)?null:s.coordsAtPos(e.assoc<0&&e.head>n.from?e.head-1:e.head);if(r){let o=s.dom.getBoundingClientRect(),a=s.textDirectionAt(n.from),l=s.posAtCoords({x:t==(a==be.LTR)?o.right-1:o.left+1,y:(r.top+r.bottom)/2});if(l!=null)return _.cursor(l,t?-1:1)}return _.cursor(t?n.to:n.from,t?-1:1)}function ba(s,e,t,i){let n=s.state.doc.lineAt(e.head),r=s.bidiSpans(n),o=s.textDirectionAt(n.from);for(let a=e,l=null;;){let h=zp(n,r,o,a,t),c=kh;if(!h){if(n.number==(t?s.state.doc.lines:1))return a;c=` +`,n=s.state.doc.line(n.number+(t?1:-1)),r=s.bidiSpans(n),h=s.visualLineSide(n,!t)}if(l){if(!l(c))return a}else{if(!i)return h;l=i(c)}a=h}}function cO(s,e,t){let i=s.state.charCategorizer(e),n=i(t);return r=>{let o=i(r);return n==wt.Space&&(n=o),n==o}}function uO(s,e,t,i){let n=e.head,r=t?1:-1;if(n==(t?s.state.doc.length:0))return _.cursor(n,e.assoc);let o=e.goalColumn,a,l=s.contentDOM.getBoundingClientRect(),h=s.coordsAtPos(n,e.assoc||-1),c=s.documentTop;if(h)o==null&&(o=h.left-l.left),a=r<0?h.top:h.bottom;else{let d=s.viewState.lineBlockAt(n);o==null&&(o=Math.min(l.right-l.left,s.defaultCharacterWidth*(n-d.from))),a=(r<0?d.top:d.bottom)+c}let u=l.left+o,f=i??s.viewState.heightOracle.textHeight>>1;for(let d=0;;d+=10){let p=a+(f+d)*r,O=Ih(s,{x:u,y:p},!1,r);if(pl.bottom||(r<0?On)){let m=s.docView.coordsForChar(O),g=!m||p{if(e>r&&en(s)),t.from,e.head>t.from?-1:1);return i==t.from?t:_.cursor(i,ir)&&this.lineBreak(),n=o}return this.findPointBefore(i,t),this}readTextNode(e){let t=e.nodeValue;for(let i of this.points)i.node==e&&(i.pos=this.text.length+Math.min(i.offset,t.length));for(let i=0,n=this.lineSeparator?null:/\r\n?|\n/g;;){let r=-1,o=1,a;if(this.lineSeparator?(r=t.indexOf(this.lineSeparator,i),o=this.lineSeparator.length):(a=n.exec(t))&&(r=a.index,o=a[0].length),this.append(t.slice(i,r<0?t.length:r)),r<0)break;if(this.lineBreak(),o>1)for(let l of this.points)l.node==e&&l.pos>this.text.length&&(l.pos-=o-1);i=r+o}}readNode(e){if(e.cmIgnore)return;let t=re.get(e),i=t&&t.overrideDOMText;if(i!=null){this.findPointInside(e,i.length);for(let n=i.iter();!n.next().done;)n.lineBreak?this.lineBreak():this.append(n.value)}else e.nodeType==3?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():e.nodeType==1&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let i of this.points)i.node==e&&e.childNodes[i.offset]==t&&(i.pos=this.text.length)}findPointInside(e,t){for(let i of this.points)(e.nodeType==3?i.node==e:e.contains(i.node))&&(i.pos=this.text.length+(dO(e,i.node,i.offset)?t:0))}}function dO(s,e,t){for(;;){if(!e||t-1;let{impreciseHead:r,impreciseAnchor:o}=e.docView;if(e.state.readOnly&&t>-1)this.newSel=null;else if(t>-1&&(this.bounds=e.docView.domBoundsAround(t,i,0))){let a=r||o?[]:gO(e),l=new fO(a,e.state);l.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=l.text,this.newSel=yO(a,this.bounds.from)}else{let a=e.observer.selectionRange,l=r&&r.node==a.focusNode&&r.offset==a.focusOffset||!vr(e.contentDOM,a.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(a.focusNode,a.focusOffset),h=o&&o.node==a.anchorNode&&o.offset==a.anchorOffset||!vr(e.contentDOM,a.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(a.anchorNode,a.anchorOffset),c=e.viewport;if((C.ios||C.chrome)&&e.state.selection.main.empty&&l!=h&&(c.from>0||c.toDate.now()-100?s.inputState.lastKeyCode:-1;if(e.bounds){let{from:o,to:a}=e.bounds,l=n.from,h=null;(r===8||C.android&&e.text.length=n.from&&t.to<=n.to&&(t.from!=n.from||t.to!=n.to)&&n.to-n.from-(t.to-t.from)<=4?t={from:n.from,to:n.to,insert:s.state.doc.slice(n.from,t.from).append(t.insert).append(s.state.doc.slice(t.to,n.to))}:C.chrome&&t&&t.from==t.to&&t.from==n.head&&t.insert.toString()==` + `&&s.lineWrapping&&(i&&(i=_.single(i.main.anchor-1,i.main.head-1)),t={from:n.from,to:n.to,insert:K.of([" "])}),t)return po(s,t,i,r);if(i&&!i.main.eq(n)){let o=!1,a="select";return s.inputState.lastSelectionTime>Date.now()-50&&(s.inputState.lastSelectionOrigin=="select"&&(o=!0),a=s.inputState.lastSelectionOrigin),s.dispatch({selection:i,scrollIntoView:o,userEvent:a}),!0}else return!1}function po(s,e,t,i=-1){if(C.ios&&s.inputState.flushIOSKey(e))return!0;let n=s.state.selection.main;if(C.android&&(e.to==n.to&&(e.from==n.from||e.from==n.from-1&&s.state.sliceDoc(e.from,n.from)==" ")&&e.insert.length==1&&e.insert.lines==2&&Oi(s.contentDOM,"Enter",13)||(e.from==n.from-1&&e.to==n.to&&e.insert.length==0||i==8&&e.insert.lengthn.head)&&Oi(s.contentDOM,"Backspace",8)||e.from==n.from&&e.to==n.to+1&&e.insert.length==0&&Oi(s.contentDOM,"Delete",46)))return!0;let r=e.insert.toString();s.inputState.composing>=0&&s.inputState.composing++;let o,a=()=>o||(o=OO(s,e,t));return s.state.facet(_h).some(l=>l(s,e.from,e.to,r,a))||s.dispatch(a()),!0}function OO(s,e,t){let i,n=s.state,r=n.selection.main;if(e.from>=r.from&&e.to<=r.to&&e.to-e.from>=(r.to-r.from)/3&&(!t||t.main.empty&&t.main.from==e.from+e.insert.length)&&s.inputState.composing<0){let a=r.frome.to?n.sliceDoc(e.to,r.to):"";i=n.replaceSelection(s.state.toText(a+e.insert.sliceString(0,void 0,s.state.lineBreak)+l))}else{let a=n.changes(e),l=t&&t.main.to<=a.newLength?t.main:void 0;if(n.selection.ranges.length>1&&s.inputState.composing>=0&&e.to<=r.to&&e.to>=r.to-10){let h=s.state.sliceDoc(e.from,e.to),c,u=t&&jh(s,t.main.head);if(u){let p=e.insert.length-(e.to-e.from);c={from:u.from,to:u.to-p}}else c=s.state.doc.lineAt(r.head);let f=r.to-e.to,d=r.to-r.from;i=n.changeByRange(p=>{if(p.from==r.from&&p.to==r.to)return{changes:a,range:l||p.map(a)};let O=p.to-f,m=O-h.length;if(p.to-p.from!=d||s.state.sliceDoc(m,O)!=h||p.to>=c.from&&p.from<=c.to)return{range:p};let g=n.changes({from:m,to:O,insert:e.insert}),k=p.to-r.to;return{changes:g,range:l?_.range(Math.max(0,l.anchor+k),Math.max(0,l.head+k)):p.map(g)}})}else i={changes:a,selection:l&&n.selection.replaceRange(l)}}let o="input.type";return(s.composing||s.inputState.compositionPendingChange&&s.inputState.compositionEndedAt>Date.now()-50)&&(s.inputState.compositionPendingChange=!1,o+=".compose",s.inputState.compositionFirstChange&&(o+=".start",s.inputState.compositionFirstChange=!1)),n.update(i,{userEvent:o,scrollIntoView:!0})}function mO(s,e,t,i){let n=Math.min(s.length,e.length),r=0;for(;r0&&a>0&&s.charCodeAt(o-1)==e.charCodeAt(a-1);)o--,a--;if(i=="end"){let l=Math.max(0,r-Math.min(o,a));t-=o+l-r}if(o=o?r-t:0;r-=l,a=r+(a-o),o=r}else if(a=a?r-t:0;r-=l,o=r+(o-a),a=r}return{from:r,toA:o,toB:a}}function gO(s){let e=[];if(s.root.activeElement!=s.contentDOM)return e;let{anchorNode:t,anchorOffset:i,focusNode:n,focusOffset:r}=s.observer.selectionRange;return t&&(e.push(new Sa(t,i)),(n!=t||r!=i)&&e.push(new Sa(n,r))),e}function yO(s,e){if(s.length==0)return null;let t=s[0].pos,i=s.length==2?s[1].pos:t;return t>-1&&i>-1?_.single(t+e,i+e):null}class bO{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,C.safari&&e.contentDOM.addEventListener("input",()=>null),C.gecko&&EO(e.contentDOM.ownerDocument)}handleEvent(e){!$O(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||this.runHandlers(e.type,e)}runHandlers(e,t){let i=this.handlers[e];if(i){for(let n of i.observers)n(this.view,t);for(let n of i.handlers){if(t.defaultPrevented)break;if(n(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=SO(e),i=this.handlers,n=this.view.contentDOM;for(let r in t)if(r!="scroll"){let o=!t[r].handlers.length,a=i[r];a&&o!=!a.handlers.length&&(n.removeEventListener(r,this.handleEvent),a=null),a||n.addEventListener(r,this.handleEvent,{passive:o})}for(let r in i)r!="scroll"&&!t[r]&&n.removeEventListener(r,this.handleEvent);this.handlers=t}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return!0;if(this.tabFocusMode>0&&e.keyCode!=27&&Nh.indexOf(e.keyCode)<0&&(this.tabFocusMode=-1),C.android&&C.chrome&&!e.synthetic&&(e.keyCode==13||e.keyCode==8))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;let t;return C.ios&&!e.synthetic&&!e.altKey&&!e.metaKey&&((t=Bh.find(i=>i.keyCode==e.keyCode))&&!e.ctrlKey||xO.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(this.pendingIOSKey=t||e,setTimeout(()=>this.flushIOSKey(),250),!0):(e.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(e){let t=this.pendingIOSKey;return!t||t.key=="Enter"&&e&&e.from0?!0:C.safari&&!C.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.view.observer.update(e),this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function xa(s,e){return(t,i)=>{try{return e.call(s,i,t)}catch(n){ut(t.state,n)}}}function SO(s){let e=Object.create(null);function t(i){return e[i]||(e[i]={observers:[],handlers:[]})}for(let i of s){let n=i.spec;if(n&&n.domEventHandlers)for(let r in n.domEventHandlers){let o=n.domEventHandlers[r];o&&t(r).handlers.push(xa(i.value,o))}if(n&&n.domEventObservers)for(let r in n.domEventObservers){let o=n.domEventObservers[r];o&&t(r).observers.push(xa(i.value,o))}}for(let i in nt)t(i).handlers.push(nt[i]);for(let i in He)t(i).observers.push(He[i]);return e}const Bh=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],xO="dthko",Nh=[16,17,18,20,91,92,224,225],vn=6;function $n(s){return Math.max(0,s)*.7+8}function wO(s,e){return Math.max(Math.abs(s.clientX-e.clientX),Math.abs(s.clientY-e.clientY))}class QO{constructor(e,t,i,n){this.view=e,this.startEvent=t,this.style=i,this.mustSelect=n,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=t,this.scrollParents=Ap(e.contentDOM),this.atoms=e.state.facet(fo).map(o=>o(e));let r=e.contentDOM.ownerDocument;r.addEventListener("mousemove",this.move=this.move.bind(this)),r.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(ee.allowMultipleSelections)&&kO(e,t),this.dragging=vO(e,t)&&zh(t)==1?null:!1}start(e){this.dragging===!1&&this.select(e)}move(e){if(e.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&wO(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let t=0,i=0,n=0,r=0,o=this.view.win.innerWidth,a=this.view.win.innerHeight;this.scrollParents.x&&({left:n,right:o}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:r,bottom:a}=this.scrollParents.y.getBoundingClientRect());let l=Dh(this.view);e.clientX-l.left<=n+vn?t=-$n(n-e.clientX):e.clientX+l.right>=o-vn&&(t=$n(e.clientX-o)),e.clientY-l.top<=r+vn?i=-$n(r-e.clientY):e.clientY+l.bottom>=a-vn&&(i=$n(e.clientY-a)),this.setScrollSpeed(t,i)}up(e){this.dragging==null&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,t){this.scrollSpeed={x:e,y:t},e||t?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){let{x:e,y:t}=this.scrollSpeed;e&&this.scrollParents.x&&(this.scrollParents.x.scrollLeft+=e,e=0),t&&this.scrollParents.y&&(this.scrollParents.y.scrollTop+=t,t=0),(e||t)&&this.view.win.scrollBy(e,t),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(e){let t=null;for(let i=0;it.isUserEvent("input.type"))?this.destroy():this.style.update(e)&&setTimeout(()=>this.select(this.lastEvent),20)}}function kO(s,e){let t=s.state.facet(Ph);return t.length?t[0](e):C.mac?e.metaKey:e.ctrlKey}function PO(s,e){let t=s.state.facet(vh);return t.length?t[0](e):C.mac?!e.altKey:!e.ctrlKey}function vO(s,e){let{main:t}=s.state.selection;if(t.empty)return!1;let i=rn(s.root);if(!i||i.rangeCount==0)return!0;let n=i.getRangeAt(0).getClientRects();for(let r=0;r=e.clientX&&o.top<=e.clientY&&o.bottom>=e.clientY)return!0}return!1}function $O(s,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let t=e.target,i;t!=s.contentDOM;t=t.parentNode)if(!t||t.nodeType==11||(i=re.get(t))&&i.ignoreEvent(e))return!1;return!0}const nt=Object.create(null),He=Object.create(null),Uh=C.ie&&C.ie_version<15||C.ios&&C.webkit_version<604;function TO(s){let e=s.dom.parentNode;if(!e)return;let t=e.appendChild(document.createElement("textarea"));t.style.cssText="position: fixed; left: -10000px; top: 10px",t.focus(),setTimeout(()=>{s.focus(),t.remove(),qh(s,t.value)},50)}function ws(s,e,t){for(let i of s.facet(e))t=i(t,s);return t}function qh(s,e){e=ws(s.state,ho,e);let{state:t}=s,i,n=1,r=t.toText(e),o=r.lines==t.selection.ranges.length;if(Dr!=null&&t.selection.ranges.every(l=>l.empty)&&Dr==r.toString()){let l=-1;i=t.changeByRange(h=>{let c=t.doc.lineAt(h.from);if(c.from==l)return{range:h};l=c.from;let u=t.toText((o?r.line(n++).text:e)+t.lineBreak);return{changes:{from:c.from,insert:u},range:_.cursor(h.from+u.length)}})}else o?i=t.changeByRange(l=>{let h=r.line(n++);return{changes:{from:l.from,to:l.to,insert:h.text},range:_.cursor(l.from+h.length)}}):i=t.replaceSelection(r);s.dispatch(i,{userEvent:"input.paste",scrollIntoView:!0})}He.scroll=s=>{s.inputState.lastScrollTop=s.scrollDOM.scrollTop,s.inputState.lastScrollLeft=s.scrollDOM.scrollLeft};nt.keydown=(s,e)=>(s.inputState.setSelectionOrigin("select"),e.keyCode==27&&s.inputState.tabFocusMode!=0&&(s.inputState.tabFocusMode=Date.now()+2e3),!1);He.touchstart=(s,e)=>{s.inputState.lastTouchTime=Date.now(),s.inputState.setSelectionOrigin("select.pointer")};He.touchmove=s=>{s.inputState.setSelectionOrigin("select.pointer")};nt.mousedown=(s,e)=>{if(s.observer.flush(),s.inputState.lastTouchTime>Date.now()-2e3)return!1;let t=null;for(let i of s.state.facet($h))if(t=i(s,e),t)break;if(!t&&e.button==0&&(t=ZO(s,e)),t){let i=!s.hasFocus;s.inputState.startMouseSelection(new QO(s,e,t,i)),i&&s.observer.ignore(()=>{oh(s.contentDOM);let r=s.root.activeElement;r&&!r.contains(s.contentDOM)&&r.blur()});let n=s.inputState.mouseSelection;if(n)return n.start(e),n.dragging===!1}return!1};function wa(s,e,t,i){if(i==1)return _.cursor(e,t);if(i==2)return nO(s.state,e,t);{let n=Oe.find(s.docView,e),r=s.state.doc.lineAt(n?n.posAtEnd:e),o=n?n.posAtStart:r.from,a=n?n.posAtEnd:r.to;return ae>=t.top&&e<=t.bottom&&s>=t.left&&s<=t.right;function _O(s,e,t,i){let n=Oe.find(s.docView,e);if(!n)return 1;let r=e-n.posAtStart;if(r==0)return 1;if(r==n.length)return-1;let o=n.coordsAt(r,-1);if(o&&Qa(t,i,o))return-1;let a=n.coordsAt(r,1);return a&&Qa(t,i,a)?1:o&&o.bottom>=i?-1:1}function ka(s,e){let t=s.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:t,bias:_O(s,t,e.clientX,e.clientY)}}const AO=C.ie&&C.ie_version<=11;let Pa=null,va=0,$a=0;function zh(s){if(!AO)return s.detail;let e=Pa,t=$a;return Pa=s,$a=Date.now(),va=!e||t>Date.now()-400&&Math.abs(e.clientX-s.clientX)<2&&Math.abs(e.clientY-s.clientY)<2?(va+1)%3:1}function ZO(s,e){let t=ka(s,e),i=zh(e),n=s.state.selection;return{update(r){r.docChanged&&(t.pos=r.changes.mapPos(t.pos),n=n.map(r.changes))},get(r,o,a){let l=ka(s,r),h,c=wa(s,l.pos,l.bias,i);if(t.pos!=l.pos&&!o){let u=wa(s,t.pos,t.bias,i),f=Math.min(u.from,c.from),d=Math.max(u.to,c.to);c=f1&&(h=RO(n,l.pos))?h:a?n.addRange(c):_.create([c])}}}function RO(s,e){for(let t=0;t=e)return _.create(s.ranges.slice(0,t).concat(s.ranges.slice(t+1)),s.mainIndex==t?0:s.mainIndex-(s.mainIndex>t?1:0))}return null}nt.dragstart=(s,e)=>{let{selection:{main:t}}=s.state;if(e.target.draggable){let n=s.docView.nearest(e.target);if(n&&n.isWidget){let r=n.posAtStart,o=r+n.length;(r>=t.to||o<=t.from)&&(t=_.range(r,o))}}let{inputState:i}=s;return i.mouseSelection&&(i.mouseSelection.dragging=!0),i.draggedContent=t,e.dataTransfer&&(e.dataTransfer.setData("Text",ws(s.state,co,s.state.sliceDoc(t.from,t.to))),e.dataTransfer.effectAllowed="copyMove"),!1};nt.dragend=s=>(s.inputState.draggedContent=null,!1);function Ta(s,e,t,i){if(t=ws(s.state,ho,t),!t)return;let n=s.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:r}=s.inputState,o=i&&r&&PO(s,e)?{from:r.from,to:r.to}:null,a={from:n,insert:t},l=s.state.changes(o?[o,a]:a);s.focus(),s.dispatch({changes:l,selection:{anchor:l.mapPos(n,-1),head:l.mapPos(n,1)},userEvent:o?"move.drop":"input.drop"}),s.inputState.draggedContent=null}nt.drop=(s,e)=>{if(!e.dataTransfer)return!1;if(s.state.readOnly)return!0;let t=e.dataTransfer.files;if(t&&t.length){let i=Array(t.length),n=0,r=()=>{++n==t.length&&Ta(s,e,i.filter(o=>o!=null).join(s.state.lineBreak),!1)};for(let o=0;o{/[\x00-\x08\x0e-\x1f]{2}/.test(a.result)||(i[o]=a.result),r()},a.readAsText(t[o])}return!0}else{let i=e.dataTransfer.getData("Text");if(i)return Ta(s,e,i,!0),!0}return!1};nt.paste=(s,e)=>{if(s.state.readOnly)return!0;s.observer.flush();let t=Uh?null:e.clipboardData;return t?(qh(s,t.getData("text/plain")||t.getData("text/uri-list")),!0):(TO(s),!1)};function CO(s,e){let t=s.dom.parentNode;if(!t)return;let i=t.appendChild(document.createElement("textarea"));i.style.cssText="position: fixed; left: -10000px; top: 10px",i.value=e,i.focus(),i.selectionEnd=e.length,i.selectionStart=0,setTimeout(()=>{i.remove(),s.focus()},50)}function MO(s){let e=[],t=[],i=!1;for(let n of s.selection.ranges)n.empty||(e.push(s.sliceDoc(n.from,n.to)),t.push(n));if(!e.length){let n=-1;for(let{from:r}of s.selection.ranges){let o=s.doc.lineAt(r);o.number>n&&(e.push(o.text),t.push({from:o.from,to:Math.min(s.doc.length,o.to+1)})),n=o.number}i=!0}return{text:ws(s,co,e.join(s.lineBreak)),ranges:t,linewise:i}}let Dr=null;nt.copy=nt.cut=(s,e)=>{let{text:t,ranges:i,linewise:n}=MO(s.state);if(!t&&!n)return!1;Dr=n?t:null,e.type=="cut"&&!s.state.readOnly&&s.dispatch({changes:i,scrollIntoView:!0,userEvent:"delete.cut"});let r=Uh?null:e.clipboardData;return r?(r.clearData(),r.setData("text/plain",t),!0):(CO(s,t),!1)};const Wh=ni.define();function Gh(s,e){let t=[];for(let i of s.facet(Ah)){let n=i(s,e);n&&t.push(n)}return t?s.update({effects:t,annotations:Wh.of(!0)}):null}function Yh(s){setTimeout(()=>{let e=s.hasFocus;if(e!=s.inputState.notifiedFocused){let t=Gh(s.state,e);t?s.dispatch(t):s.update([])}},10)}He.focus=s=>{s.inputState.lastFocusTime=Date.now(),!s.scrollDOM.scrollTop&&(s.inputState.lastScrollTop||s.inputState.lastScrollLeft)&&(s.scrollDOM.scrollTop=s.inputState.lastScrollTop,s.scrollDOM.scrollLeft=s.inputState.lastScrollLeft),Yh(s)};He.blur=s=>{s.observer.clearSelectionRange(),Yh(s)};He.compositionstart=He.compositionupdate=s=>{s.observer.editContext||(s.inputState.compositionFirstChange==null&&(s.inputState.compositionFirstChange=!0),s.inputState.composing<0&&(s.inputState.composing=0))};He.compositionend=s=>{s.observer.editContext||(s.inputState.composing=-1,s.inputState.compositionEndedAt=Date.now(),s.inputState.compositionPendingKey=!0,s.inputState.compositionPendingChange=s.observer.pendingRecords().length>0,s.inputState.compositionFirstChange=null,C.chrome&&C.android?s.observer.flushSoon():s.inputState.compositionPendingChange?Promise.resolve().then(()=>s.observer.flush()):setTimeout(()=>{s.inputState.composing<0&&s.docView.hasComposition&&s.update([])},50))};He.contextmenu=s=>{s.inputState.lastContextMenu=Date.now()};nt.beforeinput=(s,e)=>{var t,i;if(e.inputType=="insertReplacementText"&&s.observer.editContext){let r=(t=e.dataTransfer)===null||t===void 0?void 0:t.getData("text/plain"),o=e.getTargetRanges();if(r&&o.length){let a=o[0],l=s.posAtDOM(a.startContainer,a.startOffset),h=s.posAtDOM(a.endContainer,a.endOffset);return po(s,{from:l,to:h,insert:s.state.toText(r)},null),!0}}let n;if(C.chrome&&C.android&&(n=Bh.find(r=>r.inputType==e.inputType))&&(s.observer.delayAndroidKey(n.key,n.keyCode),n.key=="Backspace"||n.key=="Delete")){let r=((i=window.visualViewport)===null||i===void 0?void 0:i.height)||0;setTimeout(()=>{var o;(((o=window.visualViewport)===null||o===void 0?void 0:o.height)||0)>r+10&&s.hasFocus&&(s.contentDOM.blur(),s.focus())},100)}return C.ios&&e.inputType=="deleteContentForward"&&s.observer.flushSoon(),C.safari&&e.inputType=="insertText"&&s.inputState.composing>=0&&setTimeout(()=>He.compositionend(s,e),20),!1};const _a=new Set;function EO(s){_a.has(s)||(_a.add(s),s.addEventListener("copy",()=>{}),s.addEventListener("cut",()=>{}))}const Aa=["pre-wrap","normal","pre-line","break-spaces"];let ki=!1;function Za(){ki=!1}class LO{constructor(e){this.lineWrapping=e,this.doc=K.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30}heightForGap(e,t){let i=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(i+=Math.max(0,Math.ceil((t-e-i*this.lineLength*.5)/this.lineLength))),this.lineHeight*i}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return Aa.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let i=0;i-1,l=Math.round(t)!=Math.round(this.lineHeight)||this.lineWrapping!=a;if(this.lineWrapping=a,this.lineHeight=t,this.charWidth=i,this.textHeight=n,this.lineLength=r,l){this.heightSamples={};for(let h=0;h0}set outdated(e){this.flags=(e?2:0)|this.flags&-3}setHeight(e){this.height!=e&&(Math.abs(this.height-e)>qn&&(ki=!0),this.height=e)}replace(e,t,i){return Re.of(i)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,i,n){let r=this,o=i.doc;for(let a=n.length-1;a>=0;a--){let{fromA:l,toA:h,fromB:c,toB:u}=n[a],f=r.lineAt(l,le.ByPosNoHeight,i.setDoc(t),0,0),d=f.to>=h?f:r.lineAt(h,le.ByPosNoHeight,i,0,0);for(u+=d.to-h,h=d.to;a>0&&f.from<=n[a-1].toA;)l=n[a-1].fromA,c=n[a-1].fromB,a--,lr*2){let a=e[t-1];a.break?e.splice(--t,1,a.left,null,a.right):e.splice(--t,1,a.left,a.right),i+=1+a.break,n-=a.size}else if(r>n*2){let a=e[i];a.break?e.splice(i,1,a.left,null,a.right):e.splice(i,1,a.left,a.right),i+=2+a.break,r-=a.size}else break;else if(n=r&&o(this.blockAt(0,i,n,r))}updateHeight(e,t=0,i=!1,n){return n&&n.from<=t&&n.more&&this.setHeight(n.heights[n.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class Ne extends Fh{constructor(e,t){super(e,t,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,t,i,n){return new ct(n,this.length,i,this.height,this.breaks)}replace(e,t,i){let n=i[0];return i.length==1&&(n instanceof Ne||n instanceof we&&n.flags&4)&&Math.abs(this.length-n.length)<10?(n instanceof we?n=new Ne(n.length,this.height):n.height=this.height,this.outdated||(n.outdated=!1),n):Re.of(i)}updateHeight(e,t=0,i=!1,n){return n&&n.from<=t&&n.more?this.setHeight(n.heights[n.index++]):(i||this.outdated)&&this.setHeight(Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class we extends Re{constructor(e){super(e,0)}heightMetrics(e,t){let i=e.doc.lineAt(t).number,n=e.doc.lineAt(t+this.length).number,r=n-i+1,o,a=0;if(e.lineWrapping){let l=Math.min(this.height,e.lineHeight*r);o=l/r,this.length>r+1&&(a=(this.height-l)/(this.length-r-1))}else o=this.height/r;return{firstLine:i,lastLine:n,perLine:o,perChar:a}}blockAt(e,t,i,n){let{firstLine:r,lastLine:o,perLine:a,perChar:l}=this.heightMetrics(t,n);if(t.lineWrapping){let h=n+(e0){let r=i[i.length-1];r instanceof we?i[i.length-1]=new we(r.length+n):i.push(null,new we(n-1))}if(e>0){let r=i[0];r instanceof we?i[0]=new we(e+r.length):i.unshift(new we(e-1),null)}return Re.of(i)}decomposeLeft(e,t){t.push(new we(e-1),null)}decomposeRight(e,t){t.push(null,new we(this.length-e-1))}updateHeight(e,t=0,i=!1,n){let r=t+this.length;if(n&&n.from<=t+this.length&&n.more){let o=[],a=Math.max(t,n.from),l=-1;for(n.from>t&&o.push(new we(n.from-t-1).updateHeight(e,t));a<=r&&n.more;){let c=e.doc.lineAt(a).length;o.length&&o.push(null);let u=n.heights[n.index++];l==-1?l=u:Math.abs(u-l)>=qn&&(l=-2);let f=new Ne(c,u);f.outdated=!1,o.push(f),a+=c+1}a<=r&&o.push(null,new we(r-a).updateHeight(e,a));let h=Re.of(o);return(l<0||Math.abs(h.height-this.height)>=qn||Math.abs(l-this.heightMetrics(e,t).perLine)>=qn)&&(ki=!0),ss(this,h)}else(i||this.outdated)&&(this.setHeight(e.heightForGap(t,t+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class DO extends Re{constructor(e,t,i){super(e.length+t+i.length,e.height+i.height,t|(e.outdated||i.outdated?2:0)),this.left=e,this.right=i,this.size=e.size+i.size}get break(){return this.flags&1}blockAt(e,t,i,n){let r=i+this.left.height;return ea))return h;let c=t==le.ByPosNoHeight?le.ByPosNoHeight:le.ByPos;return l?h.join(this.right.lineAt(a,c,i,o,a)):this.left.lineAt(a,c,i,n,r).join(h)}forEachLine(e,t,i,n,r,o){let a=n+this.left.height,l=r+this.left.length+this.break;if(this.break)e=l&&this.right.forEachLine(e,t,i,a,l,o);else{let h=this.lineAt(l,le.ByPos,i,n,r);e=e&&h.from<=t&&o(h),t>h.to&&this.right.forEachLine(h.to+1,t,i,a,l,o)}}replace(e,t,i){let n=this.left.length+this.break;if(tthis.left.length)return this.balanced(this.left,this.right.replace(e-n,t-n,i));let r=[];e>0&&this.decomposeLeft(e,r);let o=r.length;for(let a of i)r.push(a);if(e>0&&Ra(r,o-1),t=i&&t.push(null)),e>i&&this.right.decomposeLeft(e-i,t)}decomposeRight(e,t){let i=this.left.length,n=i+this.break;if(e>=n)return this.right.decomposeRight(e-n,t);e2*t.size||t.size>2*e.size?Re.of(this.break?[e,null,t]:[e,t]):(this.left=ss(this.left,e),this.right=ss(this.right,t),this.setHeight(e.height+t.height),this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,i=!1,n){let{left:r,right:o}=this,a=t+r.length+this.break,l=null;return n&&n.from<=t+r.length&&n.more?l=r=r.updateHeight(e,t,i,n):r.updateHeight(e,t,i),n&&n.from<=a+o.length&&n.more?l=o=o.updateHeight(e,a,i,n):o.updateHeight(e,a,i),l?this.balanced(r,o):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function Ra(s,e){let t,i;s[e]==null&&(t=s[e-1])instanceof we&&(i=s[e+1])instanceof we&&s.splice(e-1,3,new we(t.length+1+i.length))}const jO=5;class Oo{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let i=Math.min(t,this.lineEnd),n=this.nodes[this.nodes.length-1];n instanceof Ne?n.length+=i-this.pos:(i>this.pos||!this.isCovered)&&this.nodes.push(new Ne(i-this.pos,-1)),this.writtenTo=i,t>i&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,i){if(e=jO)&&this.addLineDeco(n,r,o)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenToe&&this.nodes.push(new Ne(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,t){let i=new we(t-e);return this.oracle.doc.lineAt(e).to==t&&(i.flags|=4),i}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof Ne)return e;let t=new Ne(0,-1);return this.nodes.push(t),t}addBlock(e){this.enterLine();let t=e.deco;t&&t.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,t&&t.endSide>0&&(this.covering=e)}addLineDeco(e,t,i){let n=this.ensureLine();n.length+=i,n.collapsed+=i,n.widgetHeight=Math.max(n.widgetHeight,e),n.breaks+=t,this.writtenTo=this.pos=this.pos+i}finish(e){let t=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(t instanceof Ne)&&!this.isCovered?this.nodes.push(new Ne(0,-1)):(this.writtenToc.clientHeight||c.scrollWidth>c.clientWidth)&&u.overflow!="visible"){let f=c.getBoundingClientRect();r=Math.max(r,f.left),o=Math.min(o,f.right),a=Math.max(a,f.top),l=Math.min(h==s.parentNode?n.innerHeight:l,f.bottom)}h=u.position=="absolute"||u.position=="fixed"?c.offsetParent:c.parentNode}else if(h.nodeType==11)h=h.host;else break;return{left:r-t.left,right:Math.max(r,o)-t.left,top:a-(t.top+e),bottom:Math.max(a,l)-(t.top+e)}}function NO(s){let e=s.getBoundingClientRect(),t=s.ownerDocument.defaultView||window;return e.left0&&e.top0}function UO(s,e){let t=s.getBoundingClientRect();return{left:0,right:t.right-t.left,top:e,bottom:t.bottom-(t.top+e)}}class Bs{constructor(e,t,i,n){this.from=e,this.to=t,this.size=i,this.displaySize=n}static same(e,t){if(e.length!=t.length)return!1;for(let i=0;itypeof i!="function"&&i.class=="cm-lineWrapping");this.heightOracle=new LO(t),this.stateDeco=e.facet(an).filter(i=>typeof i!="function"),this.heightMap=Re.empty().applyChanges(this.stateDeco,K.empty,this.heightOracle.setDoc(e.doc),[new Fe(0,0,0,e.doc.length)]);for(let i=0;i<2&&(this.viewport=this.getViewport(0,null),!!this.updateForViewport());i++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=pe.set(this.lineGaps.map(i=>i.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let i=0;i<=1;i++){let n=i?t.head:t.anchor;if(!e.some(({from:r,to:o})=>n>=r&&n<=o)){let{from:r,to:o}=this.lineBlockAt(n);e.push(new Tn(r,o))}}return this.viewports=e.sort((i,n)=>i.from-n.from),this.updateScaler()}updateScaler(){let e=this.scaler;return this.scaler=this.heightMap.height<=7e6?Ma:new mo(this.heightOracle,this.heightMap,this.viewports),e.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(Ni(e,this.scaler))})}update(e,t=null){this.state=e.state;let i=this.stateDeco;this.stateDeco=this.state.facet(an).filter(c=>typeof c!="function");let n=e.changedRanges,r=Fe.extendWithRanges(n,IO(i,this.stateDeco,e?e.changes:Se.empty(this.state.doc.length))),o=this.heightMap.height,a=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);Za(),this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),r),(this.heightMap.height!=o||ki)&&(e.flags|=2),a?(this.scrollAnchorPos=e.changes.mapPos(a.from,-1),this.scrollAnchorHeight=a.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let l=r.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.headl.to)||!this.viewportIsAppropriate(l))&&(l=this.getViewport(0,t));let h=l.from!=this.viewport.from||l.to!=this.viewport.to;this.viewport=l,e.flags|=this.updateForViewport(),(h||!e.changes.empty||e.flags&2)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(e.changes),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(Gp)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let t=e.contentDOM,i=window.getComputedStyle(t),n=this.heightOracle,r=i.whiteSpace;this.defaultTextDirection=i.direction=="rtl"?be.RTL:be.LTR;let o=this.heightOracle.mustRefreshForWrapping(r),a=t.getBoundingClientRect(),l=o||this.mustMeasureContent||this.contentDOMHeight!=a.height;this.contentDOMHeight=a.height,this.mustMeasureContent=!1;let h=0,c=0;if(a.width&&a.height){let{scaleX:y,scaleY:Q}=rh(t,a);(y>.005&&Math.abs(this.scaleX-y)>.005||Q>.005&&Math.abs(this.scaleY-Q)>.005)&&(this.scaleX=y,this.scaleY=Q,h|=16,o=l=!0)}let u=(parseInt(i.paddingTop)||0)*this.scaleY,f=(parseInt(i.paddingBottom)||0)*this.scaleY;(this.paddingTop!=u||this.paddingBottom!=f)&&(this.paddingTop=u,this.paddingBottom=f,h|=18),this.editorWidth!=e.scrollDOM.clientWidth&&(n.lineWrapping&&(l=!0),this.editorWidth=e.scrollDOM.clientWidth,h|=16);let d=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=d&&(this.scrollAnchorHeight=-1,this.scrollTop=d),this.scrolledToBottom=lh(e.scrollDOM);let p=(this.printing?UO:BO)(t,this.paddingTop),O=p.top-this.pixelViewport.top,m=p.bottom-this.pixelViewport.bottom;this.pixelViewport=p;let g=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(g!=this.inView&&(this.inView=g,g&&(l=!0)),!this.inView&&!this.scrollTarget&&!NO(e.dom))return 0;let k=a.width;if((this.contentDOMWidth!=k||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=a.width,this.editorHeight=e.scrollDOM.clientHeight,h|=16),l){let y=e.docView.measureVisibleLineHeights(this.viewport);if(n.mustRefreshForHeights(y)&&(o=!0),o||n.lineWrapping&&Math.abs(k-this.contentDOMWidth)>n.charWidth){let{lineHeight:Q,charWidth:S,textHeight:w}=e.docView.measureTextSize();o=Q>0&&n.refresh(r,Q,S,w,k/S,y),o&&(e.docView.minWidth=0,h|=16)}O>0&&m>0?c=Math.max(O,m):O<0&&m<0&&(c=Math.min(O,m)),Za();for(let Q of this.viewports){let S=Q.from==this.viewport.from?y:e.docView.measureVisibleLineHeights(Q);this.heightMap=(o?Re.empty().applyChanges(this.stateDeco,K.empty,this.heightOracle,[new Fe(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(n,0,o,new XO(Q.from,S))}ki&&(h|=2)}let P=!this.viewportIsAppropriate(this.viewport,c)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return P&&(h&2&&(h|=this.updateScaler()),this.viewport=this.getViewport(c,this.scrollTarget),h|=this.updateForViewport()),(h&2||P)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(o?[]:this.lineGaps,e)),h|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),h}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let i=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),n=this.heightMap,r=this.heightOracle,{visibleTop:o,visibleBottom:a}=this,l=new Tn(n.lineAt(o-i*1e3,le.ByHeight,r,0,0).from,n.lineAt(a+(1-i)*1e3,le.ByHeight,r,0,0).to);if(t){let{head:h}=t.range;if(hl.to){let c=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),u=n.lineAt(h,le.ByPos,r,0,0),f;t.y=="center"?f=(u.top+u.bottom)/2-c/2:t.y=="start"||t.y=="nearest"&&h=a+Math.max(10,Math.min(i,250)))&&n>o-2*1e3&&r>1,o=n<<1;if(this.defaultTextDirection!=be.LTR&&!i)return[];let a=[],l=(c,u,f,d)=>{if(u-cc&&gg.from>=f.from&&g.to<=f.to&&Math.abs(g.from-c)g.fromk));if(!m){if(uP.from<=u&&P.to>=u)){let P=t.moveToLineBoundary(_.cursor(u),!1,!0).head;P>c&&(u=P)}let g=this.gapSize(f,c,u,d),k=i||g<2e6?g:2e6;m=new Bs(c,u,g,k)}a.push(m)},h=c=>{if(c.length2e6)for(let S of e)S.from>=c.from&&S.fromc.from&&l(c.from,d,c,u),pt.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(e){let t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));let i=[];te.spans(t,this.viewport.from,this.viewport.to,{span(r,o){i.push({from:r,to:o})},point(){}},20);let n=0;if(i.length!=this.visibleRanges.length)n=12;else for(let r=0;r=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(t=>t.from<=e&&t.to>=e)||Ni(this.heightMap.lineAt(e,le.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return e>=this.viewportLines[0].top&&e<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find(t=>t.top<=e&&t.bottom>=e)||Ni(this.heightMap.lineAt(this.scaler.fromDOM(e),le.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let t=this.lineBlockAtHeight(e+8);return t.from>=this.viewport.from||this.viewportLines[0].top-e>200?t:this.viewportLines[0]}elementAtHeight(e){return Ni(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class Tn{constructor(e,t){this.from=e,this.to=t}}function zO(s,e,t){let i=[],n=s,r=0;return te.spans(t,s,e,{span(){},point(o,a){o>n&&(i.push({from:n,to:o}),r+=o-n),n=a}},20),n=1)return e[e.length-1].to;let i=Math.floor(s*t);for(let n=0;;n++){let{from:r,to:o}=e[n],a=o-r;if(i<=a)return r+i;i-=a}}function An(s,e){let t=0;for(let{from:i,to:n}of s.ranges){if(e<=n){t+=e-i;break}t+=n-i}return t/s.total}function WO(s,e){for(let t of s)if(e(t))return t}const Ma={toDOM(s){return s},fromDOM(s){return s},scale:1,eq(s){return s==this}};class mo{constructor(e,t,i){let n=0,r=0,o=0;this.viewports=i.map(({from:a,to:l})=>{let h=t.lineAt(a,le.ByPos,e,0,0).top,c=t.lineAt(l,le.ByPos,e,0,0).bottom;return n+=c-h,{from:a,to:l,top:h,bottom:c,domTop:0,domBottom:0}}),this.scale=(7e6-n)/(t.height-n);for(let a of this.viewports)a.domTop=o+(a.top-r)*this.scale,o=a.domBottom=a.domTop+(a.bottom-a.top),r=a.bottom}toDOM(e){for(let t=0,i=0,n=0;;t++){let r=tt.from==e.viewports[i].from&&t.to==e.viewports[i].to):!1}}function Ni(s,e){if(e.scale==1)return s;let t=e.toDOM(s.top),i=e.toDOM(s.bottom);return new ct(s.from,s.length,t,i-t,Array.isArray(s._content)?s._content.map(n=>Ni(n,e)):s._content)}const Zn=I.define({combine:s=>s.join(" ")}),jr=I.define({combine:s=>s.indexOf(!0)>-1}),Ir=Mt.newName(),Hh=Mt.newName(),Kh=Mt.newName(),Jh={"&light":"."+Hh,"&dark":"."+Kh};function Vr(s,e,t){return new Mt(e,{finish(i){return/&/.test(i)?i.replace(/&\w*/,n=>{if(n=="&")return s;if(!t||!t[n])throw new RangeError(`Unsupported selector: ${n}`);return t[n]}):s+" "+i}})}const GO=Vr("."+Ir,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0,overflowAnchor:"none"},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#ddd"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0,zIndex:300},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace":{backgroundImage:"radial-gradient(circle at 50% 55%, #aaa 20%, transparent 5%)",backgroundPosition:"center"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},Jh),YO={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},Ns=C.ie&&C.ie_version<=11;class FO{constructor(e){this.view=e,this.active=!1,this.editContext=null,this.selectionRange=new Zp,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(t=>{for(let i of t)this.queue.push(i);(C.ie&&C.ie_version<=11||C.ios&&e.composing)&&t.some(i=>i.type=="childList"&&i.removedNodes.length||i.type=="characterData"&&i.oldValue.length>i.target.nodeValue.length)?this.flushSoon():this.flush()}),window.EditContext&&e.constructor.EDIT_CONTEXT!==!1&&!(C.chrome&&C.chrome_version<126)&&(this.editContext=new KO(e),e.state.facet(xt)&&(e.contentDOM.editContext=this.editContext.editContext)),Ns&&(this.onCharData=t=>{this.queue.push({target:t.target,type:"characterData",oldValue:t.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var t;((t=this.view.docView)===null||t===void 0?void 0:t.lastUpdate){this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),t.length>0&&t[t.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(t=>{t.length>0&&t[t.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(e){(e.type=="change"||!e.type)&&!e.matches||(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((t,i)=>t!=e[i]))){this.gapIntersection.disconnect();for(let t of e)this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){let t=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:i}=this,n=this.selectionRange;if(i.state.facet(xt)?i.root.activeElement!=this.dom:!Bn(this.dom,n))return;let r=n.anchorNode&&i.docView.nearest(n.anchorNode);if(r&&r.ignoreEvent(e)){t||(this.selectionChanged=!1);return}(C.ie&&C.ie_version<=11||C.android&&C.chrome)&&!i.state.selection.main.empty&&n.focusNode&&Hi(n.focusNode,n.focusOffset,n.anchorNode,n.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,t=rn(e.root);if(!t)return!1;let i=C.safari&&e.root.nodeType==11&&e.root.activeElement==this.dom&&HO(this.view,t)||t;if(!i||this.selectionRange.eq(i))return!1;let n=Bn(this.dom,i);return n&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime{let r=this.delayedAndroidKey;r&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=r.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&r.force&&Oi(this.dom,r.key,r.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(n)}(!this.delayedAndroidKey||e=="Enter")&&(this.delayedAndroidKey={key:e,keyCode:t,force:this.lastChange{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let t=-1,i=-1,n=!1;for(let r of e){let o=this.readMutation(r);o&&(o.typeOver&&(n=!0),t==-1?{from:t,to:i}=o:(t=Math.min(o.from,t),i=Math.max(o.to,i)))}return{from:t,to:i,typeOver:n}}readChange(){let{from:e,to:t,typeOver:i}=this.processRecords(),n=this.selectionChanged&&Bn(this.dom,this.selectionRange);if(e<0&&!n)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let r=new pO(this.view,e,t,i);return this.view.docView.domChanged={newSel:r.newSel?r.newSel.main:null},r}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let t=this.readChange();if(!t)return this.view.requestMeasure(),!1;let i=this.view.state,n=Vh(this.view,t);return this.view.state==i&&(t.domChanged||t.newSel&&!t.newSel.main.eq(this.view.state.selection.main))&&this.view.update([]),n}readMutation(e){let t=this.view.docView.nearest(e.target);if(!t||t.ignoreMutation(e))return null;if(t.markDirty(e.type=="attributes"),e.type=="attributes"&&(t.flags|=4),e.type=="childList"){let i=Ea(t,e.previousSibling||e.target.previousSibling,-1),n=Ea(t,e.nextSibling||e.target.nextSibling,1);return{from:i?t.posAfter(i):t.posAtStart,to:n?t.posBefore(n):t.posAtEnd,typeOver:!1}}else return e.type=="characterData"?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener?this.printQuery.addEventListener("change",this.onPrint):this.printQuery.addListener(this.onPrint):e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener?this.printQuery.removeEventListener("change",this.onPrint):this.printQuery.removeListener(this.onPrint):e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}update(e){this.editContext&&(this.editContext.update(e),e.startState.facet(xt)!=e.state.facet(xt)&&(e.view.contentDOM.editContext=e.state.facet(xt)?this.editContext.editContext:null))}destroy(){var e,t,i;this.stop(),(e=this.intersection)===null||e===void 0||e.disconnect(),(t=this.gapIntersection)===null||t===void 0||t.disconnect(),(i=this.resizeScroll)===null||i===void 0||i.disconnect();for(let n of this.scrollTargets)n.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey),this.editContext&&(this.view.contentDOM.editContext=null,this.editContext.destroy())}}function Ea(s,e,t){for(;e;){let i=re.get(e);if(i&&i.parent==s)return i;let n=e.parentNode;e=n!=s.dom?n:t>0?e.nextSibling:e.previousSibling}return null}function La(s,e){let t=e.startContainer,i=e.startOffset,n=e.endContainer,r=e.endOffset,o=s.docView.domAtPos(s.state.selection.main.anchor);return Hi(o.node,o.offset,n,r)&&([t,i,n,r]=[n,r,t,i]),{anchorNode:t,anchorOffset:i,focusNode:n,focusOffset:r}}function HO(s,e){if(e.getComposedRanges){let n=e.getComposedRanges(s.root)[0];if(n)return La(s,n)}let t=null;function i(n){n.preventDefault(),n.stopImmediatePropagation(),t=n.getTargetRanges()[0]}return s.contentDOM.addEventListener("beforeinput",i,!0),s.dom.ownerDocument.execCommand("indent"),s.contentDOM.removeEventListener("beforeinput",i,!0),t?La(s,t):null}class KO{constructor(e){this.from=0,this.to=0,this.pendingContextChange=null,this.handlers=Object.create(null),this.composing=null,this.resetRange(e.state);let t=this.editContext=new window.EditContext({text:e.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,e.state.selection.main.anchor))),selectionEnd:this.toContextPos(e.state.selection.main.head)});this.handlers.textupdate=i=>{let n=e.state.selection.main,{anchor:r,head:o}=n,a=this.toEditorPos(i.updateRangeStart),l=this.toEditorPos(i.updateRangeEnd);e.inputState.composing>=0&&!this.composing&&(this.composing={contextBase:i.updateRangeStart,editorBase:a,drifted:!1});let h={from:a,to:l,insert:K.of(i.text.split(` +`))};if(h.from==this.from&&rthis.to&&(h.to=r),h.from==h.to&&!h.insert.length){let c=_.single(this.toEditorPos(i.selectionStart),this.toEditorPos(i.selectionEnd));c.main.eq(n)||e.dispatch({selection:c,userEvent:"select"});return}if((C.mac||C.android)&&h.from==o-1&&/^\. ?$/.test(i.text)&&e.contentDOM.getAttribute("autocorrect")=="off"&&(h={from:a,to:l,insert:K.of([i.text.replace("."," ")])}),this.pendingContextChange=h,!e.state.readOnly){let c=this.to-this.from+(h.to-h.from+h.insert.length);po(e,h,_.single(this.toEditorPos(i.selectionStart,c),this.toEditorPos(i.selectionEnd,c)))}this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state))},this.handlers.characterboundsupdate=i=>{let n=[],r=null;for(let o=this.toEditorPos(i.rangeStart),a=this.toEditorPos(i.rangeEnd);o{let n=[];for(let r of i.getTextFormats()){let o=r.underlineStyle,a=r.underlineThickness;if(o!="None"&&a!="None"){let l=this.toEditorPos(r.rangeStart),h=this.toEditorPos(r.rangeEnd);if(l{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{if(e.inputState.composing=-1,e.inputState.compositionFirstChange=null,this.composing){let{drifted:i}=this.composing;this.composing=null,i&&this.reset(e.state)}};for(let i in this.handlers)t.addEventListener(i,this.handlers[i]);this.measureReq={read:i=>{this.editContext.updateControlBounds(i.contentDOM.getBoundingClientRect());let n=rn(i.root);n&&n.rangeCount&&this.editContext.updateSelectionBounds(n.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let t=0,i=!1,n=this.pendingContextChange;return e.changes.iterChanges((r,o,a,l,h)=>{if(i)return;let c=h.length-(o-r);if(n&&o>=n.to)if(n.from==r&&n.to==o&&n.insert.eq(h)){n=this.pendingContextChange=null,t+=c,this.to+=c;return}else n=null,this.revertPending(e.state);if(r+=t,o+=t,o<=this.from)this.from+=c,this.to+=c;else if(rthis.to||this.to-this.from+h.length>3e4){i=!0;return}this.editContext.updateText(this.toContextPos(r),this.toContextPos(o),h.toString()),this.to+=c}t+=c}),n&&!i&&this.revertPending(e.state),!i}update(e){let t=this.pendingContextChange;this.composing&&(this.composing.drifted||e.transactions.some(i=>!i.isUserEvent("input.type")&&i.changes.touchesRange(this.from,this.to)))?(this.composing.drifted=!0,this.composing.editorBase=e.changes.mapPos(this.composing.editorBase)):!this.applyEdits(e)||!this.rangeIsValid(e.state)?(this.pendingContextChange=null,this.reset(e.state)):(e.docChanged||e.selectionSet||t)&&this.setSelection(e.state),(e.geometryChanged||e.docChanged||e.selectionSet)&&e.view.requestMeasure(this.measureReq)}resetRange(e){let{head:t}=e.selection.main;this.from=Math.max(0,t-1e4),this.to=Math.min(e.doc.length,t+1e4)}reset(e){this.resetRange(e),this.editContext.updateText(0,this.editContext.text.length,e.doc.sliceString(this.from,this.to)),this.setSelection(e)}revertPending(e){let t=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(t.from),this.toContextPos(t.from+t.insert.length),e.doc.sliceString(t.from,t.to))}setSelection(e){let{main:t}=e.selection,i=this.toContextPos(Math.max(this.from,Math.min(this.to,t.anchor))),n=this.toContextPos(t.head);(this.editContext.selectionStart!=i||this.editContext.selectionEnd!=n)&&this.editContext.updateSelection(i,n)}rangeIsValid(e){let{head:t}=e.selection.main;return!(this.from>0&&t-this.from<500||this.to1e4*3)}toEditorPos(e,t=this.to-this.from){e=Math.min(e,t);let i=this.composing;return i&&i.drifted?i.editorBase+(e-i.contextBase):e+this.from}toContextPos(e){let t=this.composing;return t&&t.drifted?t.contextBase+(e-t.editorBase):e-this.from}destroy(){for(let e in this.handlers)this.editContext.removeEventListener(e,this.handlers[e])}}class z{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){var t;this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:i}=e;this.dispatchTransactions=e.dispatchTransactions||i&&(n=>n.forEach(r=>i(r,this)))||(n=>this.update(n)),this.dispatch=this.dispatch.bind(this),this._root=e.root||Rp(e.parent)||document,this.viewState=new Ca(e.state||ee.create(e)),e.scrollTo&&e.scrollTo.is(Pn)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(Ii).map(n=>new js(n));for(let n of this.plugins)n.update(this);this.observer=new FO(this),this.inputState=new bO(this),this.inputState.ensureHandlers(this.plugins),this.docView=new pa(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),!((t=document.fonts)===null||t===void 0)&&t.ready&&document.fonts.ready.then(()=>this.requestMeasure())}dispatch(...e){let t=e.length==1&&e[0]instanceof ke?e:e.length==1&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(t,this)}update(e){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let t=!1,i=!1,n,r=this.state;for(let f of e){if(f.startState!=r)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");r=f.state}if(this.destroyed){this.viewState.state=r;return}let o=this.hasFocus,a=0,l=null;e.some(f=>f.annotation(Wh))?(this.inputState.notifiedFocused=o,a=1):o!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=o,l=Gh(r,o),l||(a=1));let h=this.observer.delayedAndroidKey,c=null;if(h?(this.observer.clearDelayedAndroidKey(),c=this.observer.readChange(),(c&&!this.state.doc.eq(r.doc)||!this.state.selection.eq(r.selection))&&(c=null)):this.observer.clear(),r.facet(ee.phrases)!=this.state.facet(ee.phrases))return this.setState(r);n=ns.create(this,r,e),n.flags|=a;let u=this.viewState.scrollTarget;try{this.updateState=2;for(let f of e){if(u&&(u=u.map(f.changes)),f.scrollIntoView){let{main:d}=f.state.selection;u=new mi(d.empty?d:_.cursor(d.head,d.head>d.anchor?-1:1))}for(let d of f.effects)d.is(Pn)&&(u=d.value.clip(this.state))}this.viewState.update(n,u),this.bidiCache=rs.update(this.bidiCache,n.changes),n.empty||(this.updatePlugins(n),this.inputState.update(n)),t=this.docView.update(n),this.state.facet(Vi)!=this.styleModules&&this.mountStyles(),i=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(t,e.some(f=>f.isUserEvent("select.pointer")))}finally{this.updateState=0}if(n.startState.facet(Zn)!=n.state.facet(Zn)&&(this.viewState.mustMeasureContent=!0),(t||i||u||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),t&&this.docViewUpdate(),!n.empty)for(let f of this.state.facet(Lr))try{f(n)}catch(d){ut(this.state,d,"update listener")}(l||c)&&Promise.resolve().then(()=>{l&&this.state==l.startState&&this.dispatch(l),c&&!Vh(this,c)&&h.force&&Oi(this.contentDOM,h.key,h.keyCode)})}setState(e){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let t=this.hasFocus;try{for(let i of this.plugins)i.destroy(this);this.viewState=new Ca(e),this.plugins=e.facet(Ii).map(i=>new js(i)),this.pluginMap.clear();for(let i of this.plugins)i.update(this);this.docView.destroy(),this.docView=new pa(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet(Ii),i=e.state.facet(Ii);if(t!=i){let n=[];for(let r of i){let o=t.indexOf(r);if(o<0)n.push(new js(r));else{let a=this.plugins[o];a.mustUpdate=e,n.push(a)}}for(let r of this.plugins)r.mustUpdate!=e&&r.destroy(this);this.plugins=n,this.pluginMap.clear()}else for(let n of this.plugins)n.mustUpdate=e;for(let n=0;n-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,e&&this.observer.forceFlush();let t=null,i=this.scrollDOM,n=i.scrollTop*this.scaleY,{scrollAnchorPos:r,scrollAnchorHeight:o}=this.viewState;Math.abs(n-this.viewState.scrollTop)>1&&(o=-1),this.viewState.scrollAnchorHeight=-1;try{for(let a=0;;a++){if(o<0)if(lh(i))r=-1,o=this.viewState.heightMap.height;else{let d=this.viewState.scrollAnchorAt(n);r=d.from,o=d.top}this.updateState=1;let l=this.viewState.measure(this);if(!l&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(a>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let h=[];l&4||([this.measureRequests,h]=[h,this.measureRequests]);let c=h.map(d=>{try{return d.read(this)}catch(p){return ut(this.state,p),Xa}}),u=ns.create(this,this.state,[]),f=!1;u.flags|=l,t?t.flags|=l:t=u,this.updateState=2,u.empty||(this.updatePlugins(u),this.inputState.update(u),this.updateAttrs(),f=this.docView.update(u),f&&this.docViewUpdate());for(let d=0;d1||p<-1){n=n+p,i.scrollTop=n/this.scaleY,o=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(t&&!t.empty)for(let a of this.state.facet(Lr))a(t)}get themeClasses(){return Ir+" "+(this.state.facet(jr)?Kh:Hh)+" "+this.state.facet(Zn)}updateAttrs(){let e=Da(this,Mh,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",writingsuggestions:"false",translate:"no",contenteditable:this.state.facet(xt)?"true":"false",class:"cm-content",style:`${C.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(t["aria-readonly"]="true"),Da(this,uo,t);let i=this.observer.ignore(()=>{let n=Zr(this.contentDOM,this.contentAttrs,t),r=Zr(this.dom,this.editorAttrs,e);return n||r});return this.editorAttrs=e,this.contentAttrs=t,i}showAnnouncements(e){let t=!0;for(let i of e)for(let n of i.effects)if(n.is(z.announce)){t&&(this.announceDOM.textContent=""),t=!1;let r=this.announceDOM.appendChild(document.createElement("div"));r.textContent=n.value}}mountStyles(){this.styleModules=this.state.facet(Vi);let e=this.state.facet(z.cspNonce);Mt.mount(this.root,this.styleModules.concat(GO).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(e.key!=null){for(let t=0;ti.spec==e)||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,i){return Vs(this,e,ba(this,e,t,i))}moveByGroup(e,t){return Vs(this,e,ba(this,e,t,i=>cO(this,e.head,i)))}visualLineSide(e,t){let i=this.bidiSpans(e),n=this.textDirectionAt(e.from),r=i[t?i.length-1:0];return _.cursor(r.side(t,n)+e.from,r.forward(!t,n)?1:-1)}moveToLineBoundary(e,t,i=!0){return hO(this,e,t,i)}moveVertically(e,t,i){return Vs(this,e,uO(this,e,t,i))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,t=0){return this.docView.posFromDOM(e,t)}posAtCoords(e,t=!0){return this.readMeasured(),Ih(this,e,t)}coordsAtPos(e,t=1){this.readMeasured();let i=this.docView.coordsAt(e,t);if(!i||i.left==i.right)return i;let n=this.state.doc.lineAt(e),r=this.bidiSpans(n),o=r[Ct.find(r,e-n.from,-1,t)];return bs(i,o.dir==be.LTR==t>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(Zh)||ethis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>JO)return Qh(e.length);let t=this.textDirectionAt(e.from),i;for(let r of this.bidiCache)if(r.from==e.from&&r.dir==t&&(r.fresh||wh(r.isolates,i=da(this,e))))return r.order;i||(i=da(this,e));let n=qp(e.text,t,i);return this.bidiCache.push(new rs(e.from,e.to,t,i,!0,n)),n}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||C.safari&&((e=this.inputState)===null||e===void 0?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{oh(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((e.nodeType==9?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){this.root.activeElement==this.contentDOM&&this.contentDOM.blur();for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,t={}){return Pn.of(new mi(typeof e=="number"?_.cursor(e):e,t.y,t.x,t.yMargin,t.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:t}=this.scrollDOM,i=this.viewState.scrollAnchorAt(e);return Pn.of(new mi(_.cursor(i.from),"start","start",i.top-e,t,!0))}setTabFocusMode(e){e==null?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:typeof e=="boolean"?this.inputState.tabFocusMode=e?0:-1:this.inputState.tabFocusMode!=0&&(this.inputState.tabFocusMode=Date.now()+e)}static domEventHandlers(e){return Xt.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return Xt.define(()=>({}),{eventObservers:e})}static theme(e,t){let i=Mt.newName(),n=[Zn.of(i),Vi.of(Vr(`.${i}`,e))];return t&&t.dark&&n.push(jr.of(!0)),n}static baseTheme(e){return ms.lowest(Vi.of(Vr("."+Ir,e,Jh)))}static findFromDOM(e){var t;let i=e.querySelector(".cm-content"),n=i&&re.get(i)||re.get(e);return((t=n==null?void 0:n.rootView)===null||t===void 0?void 0:t.view)||null}}z.styleModule=Vi;z.inputHandler=_h;z.clipboardInputFilter=ho;z.clipboardOutputFilter=co;z.scrollHandler=Rh;z.focusChangeEffect=Ah;z.perLineTextDirection=Zh;z.exceptionSink=Th;z.updateListener=Lr;z.editable=xt;z.mouseSelectionStyle=$h;z.dragMovesSelection=vh;z.clickAddsSelectionRange=Ph;z.decorations=an;z.outerDecorations=Eh;z.atomicRanges=fo;z.bidiIsolatedRanges=Lh;z.scrollMargins=Xh;z.darkTheme=jr;z.cspNonce=I.define({combine:s=>s.length?s[0]:""});z.contentAttributes=uo;z.editorAttributes=Mh;z.lineWrapping=z.contentAttributes.of({class:"cm-lineWrapping"});z.announce=ce.define();const JO=4096,Xa={};class rs{constructor(e,t,i,n,r,o){this.from=e,this.to=t,this.dir=i,this.isolates=n,this.fresh=r,this.order=o}static update(e,t){if(t.empty&&!e.some(r=>r.fresh))return e;let i=[],n=e.length?e[e.length-1].dir:be.LTR;for(let r=Math.max(0,e.length-10);r=0;n--){let r=i[n],o=typeof r=="function"?r(s):r;o&&Ar(o,t)}return t}const em=C.mac?"mac":C.windows?"win":C.linux?"linux":"key";function tm(s,e){const t=s.split(/-(?!$)/);let i=t[t.length-1];i=="Space"&&(i=" ");let n,r,o,a;for(let l=0;li.concat(n),[]))),t}let Zt=null;const sm=4e3;function rm(s,e=em){let t=Object.create(null),i=Object.create(null),n=(o,a)=>{let l=i[o];if(l==null)i[o]=a;else if(l!=a)throw new Error("Key binding "+o+" is used both as a regular binding and as a multi-stroke prefix")},r=(o,a,l,h,c)=>{var u,f;let d=t[o]||(t[o]=Object.create(null)),p=a.split(/ (?!$)/).map(g=>tm(g,e));for(let g=1;g{let y=Zt={view:P,prefix:k,scope:o};return setTimeout(()=>{Zt==y&&(Zt=null)},sm),!0}]})}let O=p.join(" ");n(O,!1);let m=d[O]||(d[O]={preventDefault:!1,stopPropagation:!1,run:((f=(u=d._any)===null||u===void 0?void 0:u.run)===null||f===void 0?void 0:f.slice())||[]});l&&m.run.push(l),h&&(m.preventDefault=!0),c&&(m.stopPropagation=!0)};for(let o of s){let a=o.scope?o.scope.split(" "):["editor"];if(o.any)for(let h of a){let c=t[h]||(t[h]=Object.create(null));c._any||(c._any={preventDefault:!1,stopPropagation:!1,run:[]});let{any:u}=o;for(let f in c)c[f].run.push(d=>u(d,Br))}let l=o[e]||o.key;if(l)for(let h of a)r(h,l,o.run,o.preventDefault,o.stopPropagation),o.shift&&r(h,"Shift-"+l,o.shift,o.preventDefault,o.stopPropagation)}return t}let Br=null;function om(s,e,t,i){Br=e;let n=$p(e),r=lp(n,0),o=hp(r)==n.length&&n!=" ",a="",l=!1,h=!1,c=!1;Zt&&Zt.view==t&&Zt.scope==i&&(a=Zt.prefix+" ",Nh.indexOf(e.keyCode)<0&&(h=!0,Zt=null));let u=new Set,f=m=>{if(m){for(let g of m.run)if(!u.has(g)&&(u.add(g),g(t)))return m.stopPropagation&&(c=!0),!0;m.preventDefault&&(m.stopPropagation&&(c=!0),h=!0)}return!1},d=s[i],p,O;return d&&(f(d[a+Rn(n,e,!o)])?l=!0:o&&(e.altKey||e.metaKey||e.ctrlKey)&&!(C.windows&&e.ctrlKey&&e.altKey)&&(p=Et[e.keyCode])&&p!=n?(f(d[a+Rn(p,e,!0)])||e.shiftKey&&(O=sn[e.keyCode])!=n&&O!=p&&f(d[a+Rn(O,e,!1)]))&&(l=!0):o&&e.shiftKey&&f(d[a+Rn(n,e,!0)])&&(l=!0),!l&&f(d._any)&&(l=!0)),h&&(l=!0),l&&c&&e.stopPropagation(),Br=null,l}const am=!(C.ios&&C.webkit&&C.webkit_version<534),Ia={".cm-line":{},".cm-content":{}};am&&(Ia[".cm-line"].caretColor=Ia[".cm-content"].caretColor="transparent !important");class ii extends Kt{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}ii.prototype.elementClass="";ii.prototype.toDOM=void 0;ii.prototype.mapMode=Ae.TrackBefore;ii.prototype.startSide=ii.prototype.endSide=-1;ii.prototype.point=!0;const Us=I.define(),lm=I.define(),zn=I.define(),Va=I.define({combine:s=>s.some(e=>e)});function hm(s){return[cm]}const cm=Xt.fromClass(class{constructor(s){this.view=s,this.prevViewport=s.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=s.state.facet(zn).map(e=>new Na(s,e));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!s.state.facet(Va),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),s.scrollDOM.insertBefore(this.dom,s.contentDOM)}update(s){if(this.updateGutters(s)){let e=this.prevViewport,t=s.view.viewport,i=Math.min(e.to,t.to)-Math.max(e.from,t.from);this.syncGutters(i<(t.to-t.from)*.8)}s.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px"),this.view.state.facet(Va)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=s.view.viewport}syncGutters(s){let e=this.dom.nextSibling;s&&this.dom.remove();let t=te.iter(this.view.state.facet(Us),this.view.viewport.from),i=[],n=this.gutters.map(r=>new um(r,this.view.viewport,-this.view.documentPadding.top));for(let r of this.view.viewportLineBlocks)if(i.length&&(i=[]),Array.isArray(r.type)){let o=!0;for(let a of r.type)if(a.type==Ye.Text&&o){Nr(t,i,a.from);for(let l of n)l.line(this.view,a,i);o=!1}else if(a.widget)for(let l of n)l.widget(this.view,a)}else if(r.type==Ye.Text){Nr(t,i,r.from);for(let o of n)o.line(this.view,r,i)}else if(r.widget)for(let o of n)o.widget(this.view,r);for(let r of n)r.finish();s&&this.view.scrollDOM.insertBefore(this.dom,e)}updateGutters(s){let e=s.startState.facet(zn),t=s.state.facet(zn),i=s.docChanged||s.heightChanged||s.viewportChanged||!te.eq(s.startState.facet(Us),s.state.facet(Us),s.view.viewport.from,s.view.viewport.to);if(e==t)for(let n of this.gutters)n.update(s)&&(i=!0);else{i=!0;let n=[];for(let r of t){let o=e.indexOf(r);o<0?n.push(new Na(this.view,r)):(this.gutters[o].update(s),n.push(this.gutters[o]))}for(let r of this.gutters)r.dom.remove(),n.indexOf(r)<0&&r.destroy();for(let r of n)this.dom.appendChild(r.dom);this.gutters=n}return i}destroy(){for(let s of this.gutters)s.destroy();this.dom.remove()}},{provide:s=>z.scrollMargins.of(e=>{let t=e.plugin(s);return!t||t.gutters.length==0||!t.fixed?null:e.textDirection==be.LTR?{left:t.dom.offsetWidth*e.scaleX}:{right:t.dom.offsetWidth*e.scaleX}})});function Ba(s){return Array.isArray(s)?s:[s]}function Nr(s,e,t){for(;s.value&&s.from<=t;)s.from==t&&e.push(s.value),s.next()}class um{constructor(e,t,i){this.gutter=e,this.height=i,this.i=0,this.cursor=te.iter(e.markers,t.from)}addElement(e,t,i){let{gutter:n}=this,r=(t.top-this.height)/e.scaleY,o=t.height/e.scaleY;if(this.i==n.elements.length){let a=new ec(e,o,r,i);n.elements.push(a),n.dom.appendChild(a.dom)}else n.elements[this.i].update(e,o,r,i);this.height=t.bottom,this.i++}line(e,t,i){let n=[];Nr(this.cursor,n,t.from),i.length&&(n=n.concat(i));let r=this.gutter.config.lineMarker(e,t,n);r&&n.unshift(r);let o=this.gutter;n.length==0&&!o.config.renderEmptyElements||this.addElement(e,t,n)}widget(e,t){let i=this.gutter.config.widgetMarker(e,t.widget,t),n=i?[i]:null;for(let r of e.state.facet(lm)){let o=r(e,t.widget,t);o&&(n||(n=[])).push(o)}n&&this.addElement(e,t,n)}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}}class Na{constructor(e,t){this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let i in t.domEventHandlers)this.dom.addEventListener(i,n=>{let r=n.target,o;if(r!=this.dom&&this.dom.contains(r)){for(;r.parentNode!=this.dom;)r=r.parentNode;let l=r.getBoundingClientRect();o=(l.top+l.bottom)/2}else o=n.clientY;let a=e.lineBlockAtHeight(o-e.documentTop);t.domEventHandlers[i](e,a,n)&&n.preventDefault()});this.markers=Ba(t.markers(e)),t.initialSpacer&&(this.spacer=new ec(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let t=this.markers;if(this.markers=Ba(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let n=this.config.updateSpacer(this.spacer.markers[0],e);n!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[n])}let i=e.view.viewport;return!te.eq(this.markers,t,i.from,i.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(e):!1)}destroy(){for(let e of this.elements)e.destroy()}}class ec{constructor(e,t,i,n){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,t,i,n)}update(e,t,i,n){this.height!=t&&(this.height=t,this.dom.style.height=t+"px"),this.above!=i&&(this.dom.style.marginTop=(this.above=i)?i+"px":""),fm(this.markers,n)||this.setMarkers(e,n)}setMarkers(e,t){let i="cm-gutterElement",n=this.dom.firstChild;for(let r=0,o=0;;){let a=o,l=rr(a,l,h)||o(a,l,h):o}return i}})}});class qs extends ii{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function zs(s,e){return s.state.facet(ai).formatNumber(e,s.state)}const Om=zn.compute([ai],s=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(e){return e.state.facet(dm)},lineMarker(e,t,i){return i.some(n=>n.toDOM)?null:new qs(zs(e,e.state.doc.lineAt(t.from).number))},widgetMarker:(e,t,i)=>{for(let n of e.state.facet(pm)){let r=n(e,t,i);if(r)return r}return null},lineMarkerChange:e=>e.startState.facet(ai)!=e.state.facet(ai),initialSpacer(e){return new qs(zs(e,Ua(e.state.doc.lines)))},updateSpacer(e,t){let i=zs(t.view,Ua(t.view.state.doc.lines));return i==e.number?e:new qs(i)},domEventHandlers:s.facet(ai).domEventHandlers}));function mm(s={}){return[ai.of(s),hm(),Om]}function Ua(s){let e=9;for(;e{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=Ie.match(e)),t=>{let i=e(t);return i===void 0?null:[this,i]}}}Y.closedBy=new Y({deserialize:s=>s.split(" ")});Y.openedBy=new Y({deserialize:s=>s.split(" ")});Y.group=new Y({deserialize:s=>s.split(" ")});Y.isolate=new Y({deserialize:s=>{if(s&&s!="rtl"&&s!="ltr"&&s!="auto")throw new RangeError("Invalid value for isolate: "+s);return s||"auto"}});Y.contextHash=new Y({perNode:!0});Y.lookAhead=new Y({perNode:!0});Y.mounted=new Y({perNode:!0});class os{constructor(e,t,i){this.tree=e,this.overlay=t,this.parser=i}static get(e){return e&&e.props&&e.props[Y.mounted.id]}}const ym=Object.create(null);class Ie{constructor(e,t,i,n=0){this.name=e,this.props=t,this.id=i,this.flags=n}static define(e){let t=e.props&&e.props.length?Object.create(null):ym,i=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),n=new Ie(e.name||"",t,e.id,i);if(e.props){for(let r of e.props)if(Array.isArray(r)||(r=r(n)),r){if(r[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[r[0].id]=r[1]}}return n}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let t=this.prop(Y.group);return t?t.indexOf(e)>-1:!1}return this.id==e}static match(e){let t=Object.create(null);for(let i in e)for(let n of i.split(" "))t[n]=e[i];return i=>{for(let n=i.prop(Y.group),r=-1;r<(n?n.length:0);r++){let o=t[r<0?i.name:n[r]];if(o)return o}}}}Ie.none=new Ie("",Object.create(null),0,8);class yo{constructor(e){this.types=e;for(let t=0;t0;for(let l=this.cursor(o|ye.IncludeAnonymous);;){let h=!1;if(l.from<=r&&l.to>=n&&(!a&&l.type.isAnonymous||t(l)!==!1)){if(l.firstChild())continue;h=!0}for(;h&&i&&(a||!l.type.isAnonymous)&&i(l),!l.nextSibling();){if(!l.parent())return;h=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:xo(Ie.none,this.children,this.positions,0,this.children.length,0,this.length,(t,i,n)=>new me(this.type,t,i,n,this.propValues),e.makeTree||((t,i,n)=>new me(Ie.none,t,i,n)))}static build(e){return wm(e)}}me.empty=new me(Ie.none,[],[],0);class bo{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new bo(this.buffer,this.index)}}class Dt{constructor(e,t,i){this.buffer=e,this.length=t,this.set=i}get type(){return Ie.none}toString(){let e=[];for(let t=0;t0));l=o[l+3]);return a}slice(e,t,i){let n=this.buffer,r=new Uint16Array(t-e),o=0;for(let a=e,l=0;a=e&&te;case 1:return t<=e&&i>e;case 2:return i>e;case 4:return!0}}function ln(s,e,t,i){for(var n;s.from==s.to||(t<1?s.from>=e:s.from>e)||(t>-1?s.to<=e:s.to0?a.length:-1;e!=h;e+=t){let c=a[e],u=l[e]+o.from;if(ic(n,i,u,u+c.length)){if(c instanceof Dt){if(r&ye.ExcludeBuffers)continue;let f=c.findChild(0,c.buffer.length,t,i-u,n);if(f>-1)return new ft(new bm(o,c,e,u),null,f)}else if(r&ye.IncludeAnonymous||!c.type.isAnonymous||So(c)){let f;if(!(r&ye.IgnoreMounts)&&(f=os.get(c))&&!f.overlay)return new je(f.tree,u,e,o);let d=new je(c,u,e,o);return r&ye.IncludeAnonymous||!d.type.isAnonymous?d:d.nextChild(t<0?c.children.length-1:0,t,i,n)}}}if(r&ye.IncludeAnonymous||!o.type.isAnonymous||(o.index>=0?e=o.index+t:e=t<0?-1:o._parent._tree.children.length,o=o._parent,!o))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,t,i=0){let n;if(!(i&ye.IgnoreOverlays)&&(n=os.get(this._tree))&&n.overlay){let r=e-this.from;for(let{from:o,to:a}of n.overlay)if((t>0?o<=r:o=r:a>r))return new je(n.tree,n.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,i)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function za(s,e,t,i){let n=s.cursor(),r=[];if(!n.firstChild())return r;if(t!=null){for(let o=!1;!o;)if(o=n.type.is(t),!n.nextSibling())return r}for(;;){if(i!=null&&n.type.is(i))return r;if(n.type.is(e)&&r.push(n.node),!n.nextSibling())return i==null?r:[]}}function Ur(s,e,t=e.length-1){for(let i=s;t>=0;i=i.parent){if(!i)return!1;if(!i.type.isAnonymous){if(e[t]&&e[t]!=i.name)return!1;t--}}return!0}class bm{constructor(e,t,i,n){this.parent=e,this.buffer=t,this.index=i,this.start=n}}class ft extends nc{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,i){super(),this.context=e,this._parent=t,this.index=i,this.type=e.buffer.set.types[e.buffer.buffer[i]]}child(e,t,i){let{buffer:n}=this.context,r=n.findChild(this.index+4,n.buffer[this.index+3],e,t-this.context.start,i);return r<0?null:new ft(this.context,this,r)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,t,i=0){if(i&ye.ExcludeBuffers)return null;let{buffer:n}=this.context,r=n.findChild(this.index+4,n.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return r<0?null:new ft(this.context,this,r)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new ft(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new ft(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:i}=this.context,n=this.index+4,r=i.buffer[this.index+3];if(r>n){let o=i.buffer[this.index+1];e.push(i.slice(n,r,o)),t.push(0)}return new me(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function sc(s){if(!s.length)return null;let e=0,t=s[0];for(let r=1;rt.from||o.to=e){let a=new je(o.tree,o.overlay[0].from+r.from,-1,r);(n||(n=[i])).push(ln(a,e,t,!1))}}return n?sc(n):i}class qr{get name(){return this.type.name}constructor(e,t=0){if(this.mode=t,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof je)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let i=e._parent;i;i=i._parent)this.stack.unshift(i.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,t){this.index=e;let{start:i,buffer:n}=this.buffer;return this.type=t||n.set.types[n.buffer[e]],this.from=i+n.buffer[e+1],this.to=i+n.buffer[e+2],!0}yield(e){return e?e instanceof je?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,i){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,i,this.mode));let{buffer:n}=this.buffer,r=n.findChild(this.index+4,n.buffer[this.index+3],e,t-this.buffer.start,i);return r<0?!1:(this.stack.push(this.index),this.yieldBuf(r))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,i=this.mode){return this.buffer?i&ye.ExcludeBuffers?!1:this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,i))}parent(){if(!this.buffer)return this.yieldNode(this.mode&ye.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&ye.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:t}=this.buffer,i=this.stack.length-1;if(e<0){let n=i<0?0:this.stack[i]+4;if(this.index!=n)return this.yieldBuf(t.findChild(n,this.index,-1,0,4))}else{let n=t.buffer[this.index+3];if(n<(i<0?t.buffer.length:t.buffer[this.stack[i]+3]))return this.yieldBuf(n)}return i<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,i,{buffer:n}=this;if(n){if(e>0){if(this.index-1)for(let r=t+e,o=e<0?-1:i._tree.children.length;r!=o;r+=e){let a=i._tree.children[r];if(this.mode&ye.IncludeAnonymous||a instanceof Dt||!a.type.isAnonymous||So(a))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to=0;){for(let o=e;o;o=o._parent)if(o.index==n){if(n==this.index)return o;t=o,i=r+1;break e}n=this.stack[--r]}for(let n=i;n=0;r--){if(r<0)return Ur(this._tree,e,n);let o=i[t.buffer[this.stack[r]]];if(!o.isAnonymous){if(e[n]&&e[n]!=o.name)return!1;n--}}return!0}}function So(s){return s.children.some(e=>e instanceof Dt||!e.type.isAnonymous||So(e))}function wm(s){var e;let{buffer:t,nodeSet:i,maxBufferLength:n=tc,reused:r=[],minRepeatType:o=i.types.length}=s,a=Array.isArray(t)?new bo(t,t.length):t,l=i.types,h=0,c=0;function u(Q,S,w,A,$,N){let{id:U,start:D,end:j,size:L}=a,V=c,oe=h;for(;L<0;)if(a.next(),L==-1){let X=r[U];w.push(X),A.push(D-Q);return}else if(L==-3){h=U;return}else if(L==-4){c=U;return}else throw new RangeError(`Unrecognized record size: ${L}`);let Ce=l[U],Je,T,B=D-Q;if(j-D<=n&&(T=m(a.pos-S,$))){let X=new Uint16Array(T.size-T.skip),F=a.pos-T.size,G=X.length;for(;a.pos>F;)G=g(T.start,X,G);Je=new Dt(X,j-T.start,i),B=T.start-Q}else{let X=a.pos-L;a.next();let F=[],G=[],Te=U>=o?U:-1,qe=0,et=j;for(;a.pos>X;)Te>=0&&a.id==Te&&a.size>=0?(a.end<=et-n&&(p(F,G,D,qe,a.end,et,Te,V,oe),qe=F.length,et=a.end),a.next()):N>2500?f(D,X,F,G):u(D,X,F,G,Te,N+1);if(Te>=0&&qe>0&&qe-1&&qe>0){let Ai=d(Ce,oe);Je=xo(Ce,F,G,0,F.length,0,j-D,Ai,Ai)}else Je=O(Ce,F,G,j-D,V-j,oe)}w.push(Je),A.push(B)}function f(Q,S,w,A){let $=[],N=0,U=-1;for(;a.pos>S;){let{id:D,start:j,end:L,size:V}=a;if(V>4)a.next();else{if(U>-1&&j=0;L-=3)D[V++]=$[L],D[V++]=$[L+1]-j,D[V++]=$[L+2]-j,D[V++]=V;w.push(new Dt(D,$[2]-j,i)),A.push(j-Q)}}function d(Q,S){return(w,A,$)=>{let N=0,U=w.length-1,D,j;if(U>=0&&(D=w[U])instanceof me){if(!U&&D.type==Q&&D.length==$)return D;(j=D.prop(Y.lookAhead))&&(N=A[U]+D.length+j)}return O(Q,w,A,$,N,S)}}function p(Q,S,w,A,$,N,U,D,j){let L=[],V=[];for(;Q.length>A;)L.push(Q.pop()),V.push(S.pop()+w-$);Q.push(O(i.types[U],L,V,N-$,D-N,j)),S.push($-w)}function O(Q,S,w,A,$,N,U){if(N){let D=[Y.contextHash,N];U=U?[D].concat(U):[D]}if($>25){let D=[Y.lookAhead,$];U=U?[D].concat(U):[D]}return new me(Q,S,w,A,U)}function m(Q,S){let w=a.fork(),A=0,$=0,N=0,U=w.end-n,D={size:0,start:0,skip:0};e:for(let j=w.pos-Q;w.pos>j;){let L=w.size;if(w.id==S&&L>=0){D.size=A,D.start=$,D.skip=N,N+=4,A+=4,w.next();continue}let V=w.pos-L;if(L<0||V=o?4:0,Ce=w.start;for(w.next();w.pos>V;){if(w.size<0)if(w.size==-3)oe+=4;else break e;else w.id>=o&&(oe+=4);w.next()}$=Ce,A+=L,N+=oe}return(S<0||A==Q)&&(D.size=A,D.start=$,D.skip=N),D.size>4?D:void 0}function g(Q,S,w){let{id:A,start:$,end:N,size:U}=a;if(a.next(),U>=0&&A4){let j=a.pos-(U-4);for(;a.pos>j;)w=g(Q,S,w)}S[--w]=D,S[--w]=N-Q,S[--w]=$-Q,S[--w]=A}else U==-3?h=A:U==-4&&(c=A);return w}let k=[],P=[];for(;a.pos>0;)u(s.start||0,s.bufferStart||0,k,P,-1,0);let y=(e=s.length)!==null&&e!==void 0?e:k.length?P[0]+k[0].length:0;return new me(l[s.topID],k.reverse(),P.reverse(),y)}const Wa=new WeakMap;function Wn(s,e){if(!s.isAnonymous||e instanceof Dt||e.type!=s)return 1;let t=Wa.get(e);if(t==null){t=1;for(let i of e.children){if(i.type!=s||!(i instanceof me)){t=1;break}t+=Wn(s,i)}Wa.set(e,t)}return t}function xo(s,e,t,i,n,r,o,a,l){let h=0;for(let p=i;p=c)break;S+=w}if(P==y+1){if(S>c){let w=p[y];d(w.children,w.positions,0,w.children.length,O[y]+k);continue}u.push(p[y])}else{let w=O[P-1]+p[P-1].length-Q;u.push(xo(s,p,O,y,P,Q,w,null,l))}f.push(Q+k-r)}}return d(e,t,i,n,0),(a||l)(u,f,o)}class Qm{constructor(){this.map=new WeakMap}setBuffer(e,t,i){let n=this.map.get(e);n||this.map.set(e,n=new Map),n.set(t,i)}getBuffer(e,t){let i=this.map.get(e);return i&&i.get(t)}set(e,t){e instanceof ft?this.setBuffer(e.context.buffer,e.index,t):e instanceof je&&this.map.set(e.tree,t)}get(e){return e instanceof ft?this.getBuffer(e.context.buffer,e.index):e instanceof je?this.map.get(e.tree):void 0}cursorSet(e,t){e.buffer?this.setBuffer(e.buffer.buffer,e.index,t):this.map.set(e.tree,t)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class Yt{constructor(e,t,i,n,r=!1,o=!1){this.from=e,this.to=t,this.tree=i,this.offset=n,this.open=(r?1:0)|(o?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(e,t=[],i=!1){let n=[new Yt(0,e.length,e,0,!1,i)];for(let r of t)r.to>e.length&&n.push(r);return n}static applyChanges(e,t,i=128){if(!t.length)return e;let n=[],r=1,o=e.length?e[0]:null;for(let a=0,l=0,h=0;;a++){let c=a=i)for(;o&&o.from=f.from||u<=f.to||h){let d=Math.max(f.from,l)-h,p=Math.min(f.to,u)-h;f=d>=p?null:new Yt(d,p,f.tree,f.offset+h,a>0,!!c)}if(f&&n.push(f),o.to>u)break;o=rnew Ws(n.from,n.to)):[new Ws(0,0)]:[new Ws(0,e.length)],this.createParse(e,t||[],i)}parse(e,t,i){let n=this.startParse(e,t,i);for(;;){let r=n.advance();if(r)return r}}}class km{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}new Y({perNode:!0});let Pm=0;class Ge{constructor(e,t,i,n){this.name=e,this.set=t,this.base=i,this.modified=n,this.id=Pm++}toString(){let{name:e}=this;for(let t of this.modified)t.name&&(e=`${t.name}(${e})`);return e}static define(e,t){let i=typeof e=="string"?e:"?";if(e instanceof Ge&&(t=e),t!=null&&t.base)throw new Error("Can not derive from a modified tag");let n=new Ge(i,[],null,[]);if(n.set.push(n),t)for(let r of t.set)n.set.push(r);return n}static defineModifier(e){let t=new as(e);return i=>i.modified.indexOf(t)>-1?i:as.get(i.base||i,i.modified.concat(t).sort((n,r)=>n.id-r.id))}}let vm=0;class as{constructor(e){this.name=e,this.instances=[],this.id=vm++}static get(e,t){if(!t.length)return e;let i=t[0].instances.find(a=>a.base==e&&$m(t,a.modified));if(i)return i;let n=[],r=new Ge(e.name,n,e,t);for(let a of t)a.instances.push(r);let o=Tm(t);for(let a of e.set)if(!a.modified.length)for(let l of o)n.push(as.get(a,l));return r}}function $m(s,e){return s.length==e.length&&s.every((t,i)=>t==e[i])}function Tm(s){let e=[[]];for(let t=0;ti.length-t.length)}function oc(s){let e=Object.create(null);for(let t in s){let i=s[t];Array.isArray(i)||(i=[i]);for(let n of t.split(" "))if(n){let r=[],o=2,a=n;for(let u=0;;){if(a=="..."&&u>0&&u+3==n.length){o=1;break}let f=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(a);if(!f)throw new RangeError("Invalid path: "+n);if(r.push(f[0]=="*"?"":f[0][0]=='"'?JSON.parse(f[0]):f[0]),u+=f[0].length,u==n.length)break;let d=n[u++];if(u==n.length&&d=="!"){o=0;break}if(d!="/")throw new RangeError("Invalid path: "+n);a=n.slice(u)}let l=r.length-1,h=r[l];if(!h)throw new RangeError("Invalid path: "+n);let c=new ls(i,o,l>0?r.slice(0,l):null);e[h]=c.sort(e[h])}}return ac.add(e)}const ac=new Y;class ls{constructor(e,t,i,n){this.tags=e,this.mode=t,this.context=i,this.next=n}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth{let o=n;for(let a of r)for(let l of a.set){let h=t[l.id];if(h){o=o?o+" "+h:h;break}}return o},scope:i}}function _m(s,e){let t=null;for(let i of s){let n=i.style(e);n&&(t=t?t+" "+n:n)}return t}function Am(s,e,t,i=0,n=s.length){let r=new Zm(i,Array.isArray(e)?e:[e],t);r.highlightRange(s.cursor(),i,n,"",r.highlighters),r.flush(n)}class Zm{constructor(e,t,i){this.at=e,this.highlighters=t,this.span=i,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,i,n,r){let{type:o,from:a,to:l}=e;if(a>=i||l<=t)return;o.isTop&&(r=this.highlighters.filter(d=>!d.scope||d.scope(o)));let h=n,c=Rm(e)||ls.empty,u=_m(r,c.tags);if(u&&(h&&(h+=" "),h+=u,c.mode==1&&(n+=(n?" ":"")+u)),this.startSpan(Math.max(t,a),h),c.opaque)return;let f=e.tree&&e.tree.prop(Y.mounted);if(f&&f.overlay){let d=e.node.enter(f.overlay[0].from+a,1),p=this.highlighters.filter(m=>!m.scope||m.scope(f.tree.type)),O=e.firstChild();for(let m=0,g=a;;m++){let k=m=P||!e.nextSibling())););if(!k||P>i)break;g=k.to+a,g>t&&(this.highlightRange(d.cursor(),Math.max(t,k.from+a),Math.min(i,g),"",p),this.startSpan(Math.min(i,g),h))}O&&e.parent()}else if(e.firstChild()){f&&(n="");do if(!(e.to<=t)){if(e.from>=i)break;this.highlightRange(e,t,i,n,r),this.startSpan(Math.min(i,e.to),h)}while(e.nextSibling());e.parent()}}}function Rm(s){let e=s.type.prop(ac);for(;e&&e.context&&!s.matchContext(e.context);)e=e.next;return e||null}const Z=Ge.define,Mn=Z(),_t=Z(),Ga=Z(_t),Ya=Z(_t),At=Z(),En=Z(At),Gs=Z(At),lt=Z(),Bt=Z(lt),ot=Z(),at=Z(),zr=Z(),Mi=Z(zr),Ln=Z(),b={comment:Mn,lineComment:Z(Mn),blockComment:Z(Mn),docComment:Z(Mn),name:_t,variableName:Z(_t),typeName:Ga,tagName:Z(Ga),propertyName:Ya,attributeName:Z(Ya),className:Z(_t),labelName:Z(_t),namespace:Z(_t),macroName:Z(_t),literal:At,string:En,docString:Z(En),character:Z(En),attributeValue:Z(En),number:Gs,integer:Z(Gs),float:Z(Gs),bool:Z(At),regexp:Z(At),escape:Z(At),color:Z(At),url:Z(At),keyword:ot,self:Z(ot),null:Z(ot),atom:Z(ot),unit:Z(ot),modifier:Z(ot),operatorKeyword:Z(ot),controlKeyword:Z(ot),definitionKeyword:Z(ot),moduleKeyword:Z(ot),operator:at,derefOperator:Z(at),arithmeticOperator:Z(at),logicOperator:Z(at),bitwiseOperator:Z(at),compareOperator:Z(at),updateOperator:Z(at),definitionOperator:Z(at),typeOperator:Z(at),controlOperator:Z(at),punctuation:zr,separator:Z(zr),bracket:Mi,angleBracket:Z(Mi),squareBracket:Z(Mi),paren:Z(Mi),brace:Z(Mi),content:lt,heading:Bt,heading1:Z(Bt),heading2:Z(Bt),heading3:Z(Bt),heading4:Z(Bt),heading5:Z(Bt),heading6:Z(Bt),contentSeparator:Z(lt),list:Z(lt),quote:Z(lt),emphasis:Z(lt),strong:Z(lt),link:Z(lt),monospace:Z(lt),strikethrough:Z(lt),inserted:Z(),deleted:Z(),changed:Z(),invalid:Z(),meta:Ln,documentMeta:Z(Ln),annotation:Z(Ln),processingInstruction:Z(Ln),definition:Ge.defineModifier("definition"),constant:Ge.defineModifier("constant"),function:Ge.defineModifier("function"),standard:Ge.defineModifier("standard"),local:Ge.defineModifier("local"),special:Ge.defineModifier("special")};for(let s in b){let e=b[s];e instanceof Ge&&(e.name=s)}lc([{tag:b.link,class:"tok-link"},{tag:b.heading,class:"tok-heading"},{tag:b.emphasis,class:"tok-emphasis"},{tag:b.strong,class:"tok-strong"},{tag:b.keyword,class:"tok-keyword"},{tag:b.atom,class:"tok-atom"},{tag:b.bool,class:"tok-bool"},{tag:b.url,class:"tok-url"},{tag:b.labelName,class:"tok-labelName"},{tag:b.inserted,class:"tok-inserted"},{tag:b.deleted,class:"tok-deleted"},{tag:b.literal,class:"tok-literal"},{tag:b.string,class:"tok-string"},{tag:b.number,class:"tok-number"},{tag:[b.regexp,b.escape,b.special(b.string)],class:"tok-string2"},{tag:b.variableName,class:"tok-variableName"},{tag:b.local(b.variableName),class:"tok-variableName tok-local"},{tag:b.definition(b.variableName),class:"tok-variableName tok-definition"},{tag:b.special(b.variableName),class:"tok-variableName2"},{tag:b.definition(b.propertyName),class:"tok-propertyName tok-definition"},{tag:b.typeName,class:"tok-typeName"},{tag:b.namespace,class:"tok-namespace"},{tag:b.className,class:"tok-className"},{tag:b.macroName,class:"tok-macroName"},{tag:b.propertyName,class:"tok-propertyName"},{tag:b.operator,class:"tok-operator"},{tag:b.comment,class:"tok-comment"},{tag:b.meta,class:"tok-meta"},{tag:b.invalid,class:"tok-invalid"},{tag:b.punctuation,class:"tok-punctuation"}]);var Ys;const li=new Y;function hc(s){return I.define({combine:s?e=>e.concat(s):void 0})}const wo=new Y;class tt{constructor(e,t,i=[],n=""){this.data=e,this.name=n,ee.prototype.hasOwnProperty("tree")||Object.defineProperty(ee.prototype,"tree",{get(){return Ue(this)}}),this.parser=t,this.extension=[vi.of(this),ee.languageData.of((r,o,a)=>{let l=Fa(r,o,a),h=l.type.prop(li);if(!h)return[];let c=r.facet(h),u=l.type.prop(wo);if(u){let f=l.resolve(o-l.from,a);for(let d of u)if(d.test(f,r)){let p=r.facet(d.facet);return d.type=="replace"?p:p.concat(c)}}return c})].concat(i)}isActiveAt(e,t,i=-1){return Fa(e,t,i).type.prop(li)==this.data}findRegions(e){let t=e.facet(vi);if((t==null?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let i=[],n=(r,o)=>{if(r.prop(li)==this.data){i.push({from:o,to:o+r.length});return}let a=r.prop(Y.mounted);if(a){if(a.tree.prop(li)==this.data){if(a.overlay)for(let l of a.overlay)i.push({from:l.from+o,to:l.to+o});else i.push({from:o,to:o+r.length});return}else if(a.overlay){let l=i.length;if(n(a.tree,a.overlay[0].from+o),i.length>l)return}}for(let l=0;li.isTop?t:void 0)]}),e.name)}configure(e,t){return new hs(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function Ue(s){let e=s.field(tt.state,!1);return e?e.tree:me.empty}class Cm{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let i=this.cursorPos-this.string.length;return e=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-i,t-i)}}let Ei=null;class cs{constructor(e,t,i=[],n,r,o,a,l){this.parser=e,this.state=t,this.fragments=i,this.tree=n,this.treeLen=r,this.viewport=o,this.skipped=a,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}static create(e,t,i){return new cs(e,t,[],me.empty,0,i,[],null)}startParse(){return this.parser.startParse(new Cm(this.state.doc),this.fragments)}work(e,t){return t!=null&&t>=this.state.doc.length&&(t=void 0),this.tree!=me.empty&&this.isDone(t??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var i;if(typeof e=="number"){let n=Date.now()+e;e=()=>Date.now()>n}for(this.parse||(this.parse=this.startParse()),t!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>t)&&t=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(t=this.parse.advance()););}),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(Yt.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=Ei;Ei=this;try{return e()}finally{Ei=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=Ha(e,t.from,t.to);return e}changes(e,t){let{fragments:i,tree:n,treeLen:r,viewport:o,skipped:a}=this;if(this.takeTree(),!e.empty){let l=[];if(e.iterChangedRanges((h,c,u,f)=>l.push({fromA:h,toA:c,fromB:u,toB:f})),i=Yt.applyChanges(i,l),n=me.empty,r=0,o={from:e.mapPos(o.from,-1),to:e.mapPos(o.to,1)},this.skipped.length){a=[];for(let h of this.skipped){let c=e.mapPos(h.from,1),u=e.mapPos(h.to,-1);ce.from&&(this.fragments=Ha(this.fragments,n,r),this.skipped.splice(i--,1))}return this.skipped.length>=t?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends rc{createParse(t,i,n){let r=n[0].from,o=n[n.length-1].to;return{parsedPos:r,advance(){let l=Ei;if(l){for(let h of n)l.tempSkipped.push(h);e&&(l.scheduleOn=l.scheduleOn?Promise.all([l.scheduleOn,e]):e)}return this.parsedPos=o,new me(Ie.none,[],[],o-r)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&t[0].from==0&&t[0].to>=e}static get(){return Ei}}function Ha(s,e,t){return Yt.applyChanges(s,[{fromA:e,toA:t,fromB:e,toB:t}])}class Pi{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),i=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,i)||t.takeTree(),new Pi(t)}static init(e){let t=Math.min(3e3,e.doc.length),i=cs.create(e.facet(vi).parser,e,{from:0,to:t});return i.work(20,t)||i.takeTree(),new Pi(i)}}tt.state=jt.define({create:Pi.init,update(s,e){for(let t of e.effects)if(t.is(tt.setState))return t.value;return e.startState.facet(vi)!=e.state.facet(vi)?Pi.init(e.state):s.apply(e)}});let cc=s=>{let e=setTimeout(()=>s(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(cc=s=>{let e=-1,t=setTimeout(()=>{e=requestIdleCallback(s,{timeout:400})},100);return()=>e<0?clearTimeout(t):cancelIdleCallback(e)});const Fs=typeof navigator<"u"&&(!((Ys=navigator.scheduling)===null||Ys===void 0)&&Ys.isInputPending)?()=>navigator.scheduling.isInputPending():null,Mm=Xt.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(tt.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(tt.state);(t.tree!=t.context.tree||!t.context.isDone(e.doc.length))&&(this.working=cc(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEndn+1e3,l=r.context.work(()=>Fs&&Fs()||Date.now()>o,n+(a?0:1e5));this.chunkBudget-=Date.now()-t,(l||this.chunkBudget<=0)&&(r.context.takeTree(),this.view.dispatch({effects:tt.setState.of(new Pi(r.context))})),this.chunkBudget>0&&!(l&&!a)&&this.scheduleWork(),this.checkAsyncSchedule(r.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(t=>ut(this.view.state,t)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),vi=I.define({combine(s){return s.length?s[0]:null},enables:s=>[tt.state,Mm,z.contentAttributes.compute([s],e=>{let t=e.facet(s);return t&&t.name?{"data-language":t.name}:{}})]});class Em{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}}const Lm=I.define(),Qs=I.define({combine:s=>{if(!s.length)return" ";let e=s[0];if(!e||/\S/.test(e)||Array.from(e).some(t=>t!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(s[0]));return e}});function us(s){let e=s.facet(Qs);return e.charCodeAt(0)==9?s.tabSize*e.length:e.length}function fs(s,e){let t="",i=s.tabSize,n=s.facet(Qs)[0];if(n==" "){for(;e>=i;)t+=" ",e-=i;n=" "}for(let r=0;r=e?Xm(s,t,e):null}class ks{constructor(e,t={}){this.state=e,this.options=t,this.unit=us(e)}lineAt(e,t=1){let i=this.state.doc.lineAt(e),{simulateBreak:n,simulateDoubleBreak:r}=this.options;return n!=null&&n>=i.from&&n<=i.to?r&&n==e?{text:"",from:e}:(t<0?n-1&&(r+=o-this.countColumn(i,i.search(/\S|$/))),r}countColumn(e,t=e.length){return ys(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:i,from:n}=this.lineAt(e,t),r=this.options.overrideIndentation;if(r){let o=r(n);if(o>-1)return o}return this.countColumn(i,i.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const fc=new Y;function Xm(s,e,t){let i=e.resolveStack(t),n=e.resolveInner(t,-1).resolve(t,0).enterUnfinishedNodesBefore(t);if(n!=i.node){let r=[];for(let o=n;o&&!(o.from==i.node.from&&o.type==i.node.type);o=o.parent)r.push(o);for(let o=r.length-1;o>=0;o--)i={node:r[o],next:i}}return dc(i,s,t)}function dc(s,e,t){for(let i=s;i;i=i.next){let n=jm(i.node);if(n)return n(Qo.create(e,t,i))}return 0}function Dm(s){return s.pos==s.options.simulateBreak&&s.options.simulateDoubleBreak}function jm(s){let e=s.type.prop(fc);if(e)return e;let t=s.firstChild,i;if(t&&(i=t.type.prop(Y.closedBy))){let n=s.lastChild,r=n&&i.indexOf(n.name)>-1;return o=>pc(o,!0,1,void 0,r&&!Dm(o)?n.from:void 0)}return s.parent==null?Im:null}function Im(){return 0}class Qo extends ks{constructor(e,t,i){super(e.state,e.options),this.base=e,this.pos=t,this.context=i}get node(){return this.context.node}static create(e,t,i){return new Qo(e,t,i)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let i=e.resolve(t.from);for(;i.parent&&i.parent.from==i.from;)i=i.parent;if(Vm(i,e))break;t=this.state.doc.lineAt(i.from)}return this.lineIndent(t.from)}continue(){return dc(this.context.next,this.base,this.pos)}}function Vm(s,e){for(let t=e;t;t=t.parent)if(s==t)return!0;return!1}function Bm(s){let e=s.node,t=e.childAfter(e.from),i=e.lastChild;if(!t)return null;let n=s.options.simulateBreak,r=s.state.doc.lineAt(t.from),o=n==null||n<=r.from?r.to:Math.min(r.to,n);for(let a=t.to;;){let l=e.childAfter(a);if(!l||l==i)return null;if(!l.type.isSkipped){if(l.from>=o)return null;let h=/^ */.exec(r.text.slice(t.to-r.from))[0].length;return{from:t.from,to:t.to+h}}a=l.to}}function Nm({closing:s,align:e=!0,units:t=1}){return i=>pc(i,e,t,s)}function pc(s,e,t,i,n){let r=s.textAfter,o=r.match(/^\s*/)[0].length,a=i&&r.slice(o,o+i.length)==i||n==s.pos+o,l=e?Bm(s):null;return l?a?s.column(l.from):s.column(l.to):s.baseIndent+(a?0:s.unit*t)}const Um=s=>s.baseIndent;function Hs({except:s,units:e=1}={}){return t=>{let i=s&&s.test(t.textAfter);return t.baseIndent+(i?0:e*t.unit)}}const qm=new Y;function zm(s){let e=s.firstChild,t=s.lastChild;return e&&e.toa.prop(li)==o.data:o?a=>a==o:void 0,this.style=lc(e.map(a=>({tag:a.tag,class:a.class||n(Object.assign({},a,{tag:null}))})),{all:r}).style,this.module=i?new Mt(i):null,this.themeType=t.themeType}static define(e,t){return new pn(e,t||{})}}const Wr=I.define(),Wm=I.define({combine(s){return s.length?[s[0]]:null}});function Ks(s){let e=s.facet(Wr);return e.length?e:s.facet(Wm)}function Oc(s,e){let t=[Ym],i;return s instanceof pn&&(s.module&&t.push(z.styleModule.of(s.module)),i=s.themeType),i?t.push(Wr.computeN([z.darkTheme],n=>n.facet(z.darkTheme)==(i=="dark")?[s]:[])):t.push(Wr.of(s)),t}class Gm{constructor(e){this.markCache=Object.create(null),this.tree=Ue(e.state),this.decorations=this.buildDeco(e,Ks(e.state)),this.decoratedTo=e.viewport.to}update(e){let t=Ue(e.state),i=Ks(e.state),n=i!=Ks(e.startState),{viewport:r}=e.view,o=e.changes.mapPos(this.decoratedTo,1);t.length=r.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=o):(t!=this.tree||e.viewportChanged||n)&&(this.tree=t,this.decorations=this.buildDeco(e.view,i),this.decoratedTo=r.to)}buildDeco(e,t){if(!t||!this.tree.length)return pe.none;let i=new tn;for(let{from:n,to:r}of e.visibleRanges)Am(this.tree,t,(o,a,l)=>{i.add(o,a,this.markCache[l]||(this.markCache[l]=pe.mark({class:l})))},n,r);return i.finish()}}const Ym=ms.high(Xt.fromClass(Gm,{decorations:s=>s.decorations})),Fm=pn.define([{tag:b.meta,color:"#404740"},{tag:b.link,textDecoration:"underline"},{tag:b.heading,textDecoration:"underline",fontWeight:"bold"},{tag:b.emphasis,fontStyle:"italic"},{tag:b.strong,fontWeight:"bold"},{tag:b.strikethrough,textDecoration:"line-through"},{tag:b.keyword,color:"#708"},{tag:[b.atom,b.bool,b.url,b.contentSeparator,b.labelName],color:"#219"},{tag:[b.literal,b.inserted],color:"#164"},{tag:[b.string,b.deleted],color:"#a11"},{tag:[b.regexp,b.escape,b.special(b.string)],color:"#e40"},{tag:b.definition(b.variableName),color:"#00f"},{tag:b.local(b.variableName),color:"#30a"},{tag:[b.typeName,b.namespace],color:"#085"},{tag:b.className,color:"#167"},{tag:[b.special(b.variableName),b.macroName],color:"#256"},{tag:b.definition(b.propertyName),color:"#00c"},{tag:b.comment,color:"#940"},{tag:b.invalid,color:"#f00"}]),Hm=1e4,Km="()[]{}",Jm=new Y;function Gr(s,e,t){let i=s.prop(e<0?Y.openedBy:Y.closedBy);if(i)return i;if(s.name.length==1){let n=t.indexOf(s.name);if(n>-1&&n%2==(e<0?1:0))return[t[n+e]]}return null}function Yr(s){let e=s.type.prop(Jm);return e?e(s.node):s}function hi(s,e,t,i={}){let n=i.maxScanDistance||Hm,r=i.brackets||Km,o=Ue(s),a=o.resolveInner(e,t);for(let l=a;l;l=l.parent){let h=Gr(l.type,t,r);if(h&&l.from0?e>=c.from&&ec.from&&e<=c.to))return eg(s,e,t,l,c,h,r)}}return tg(s,e,t,o,a.type,n,r)}function eg(s,e,t,i,n,r,o){let a=i.parent,l={from:n.from,to:n.to},h=0,c=a==null?void 0:a.cursor();if(c&&(t<0?c.childBefore(i.from):c.childAfter(i.to)))do if(t<0?c.to<=i.from:c.from>=i.to){if(h==0&&r.indexOf(c.type.name)>-1&&c.from0)return null;let h={from:t<0?e-1:e,to:t>0?e+1:e},c=s.doc.iterRange(e,t>0?s.doc.length:0),u=0;for(let f=0;!c.next().done&&f<=r;){let d=c.value;t<0&&(f+=d.length);let p=e+f*t;for(let O=t>0?0:d.length-1,m=t>0?d.length:-1;O!=m;O+=t){let g=o.indexOf(d[O]);if(!(g<0||i.resolveInner(p+O,1).type!=n))if(g%2==0==t>0)u++;else{if(u==1)return{start:h,end:{from:p+O,to:p+O+1},matched:g>>1==l>>1};u--}}t>0&&(f+=d.length)}return c.done?{start:h,matched:!1}:null}const ig=Object.create(null),Ka=[Ie.none],Ja=[],el=Object.create(null),ng=Object.create(null);for(let[s,e]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])ng[s]=sg(ig,e);function Js(s,e){Ja.indexOf(s)>-1||(Ja.push(s),console.warn(e))}function sg(s,e){let t=[];for(let a of e.split(" ")){let l=[];for(let h of a.split(".")){let c=s[h]||b[h];c?typeof c=="function"?l.length?l=l.map(c):Js(h,`Modifier ${h} used at start of tag`):l.length?Js(h,`Tag ${h} used as modifier`):l=Array.isArray(c)?c:[c]:Js(h,`Unknown highlighting tag ${h}`)}for(let h of l)t.push(h)}if(!t.length)return 0;let i=e.replace(/ /g,"_"),n=i+" "+t.map(a=>a.id),r=el[n];if(r)return r.id;let o=el[n]=Ie.define({id:Ka.length,name:i,props:[oc({[i]:t})]});return Ka.push(o),o.id}be.RTL,be.LTR;const rg=s=>{let{state:e}=s,t=e.doc.lineAt(e.selection.main.from),i=Po(s.state,t.from);return i.line?og(s):i.block?lg(s):!1};function ko(s,e){return({state:t,dispatch:i})=>{if(t.readOnly)return!1;let n=s(e,t);return n?(i(t.update(n)),!0):!1}}const og=ko(ug,0),ag=ko(mc,0),lg=ko((s,e)=>mc(s,e,cg(e)),0);function Po(s,e){let t=s.languageDataAt("commentTokens",e);return t.length?t[0]:{}}const Li=50;function hg(s,{open:e,close:t},i,n){let r=s.sliceDoc(i-Li,i),o=s.sliceDoc(n,n+Li),a=/\s*$/.exec(r)[0].length,l=/^\s*/.exec(o)[0].length,h=r.length-a;if(r.slice(h-e.length,h)==e&&o.slice(l,l+t.length)==t)return{open:{pos:i-a,margin:a&&1},close:{pos:n+l,margin:l&&1}};let c,u;n-i<=2*Li?c=u=s.sliceDoc(i,n):(c=s.sliceDoc(i,i+Li),u=s.sliceDoc(n-Li,n));let f=/^\s*/.exec(c)[0].length,d=/\s*$/.exec(u)[0].length,p=u.length-d-t.length;return c.slice(f,f+e.length)==e&&u.slice(p,p+t.length)==t?{open:{pos:i+f+e.length,margin:/\s/.test(c.charAt(f+e.length))?1:0},close:{pos:n-d-t.length,margin:/\s/.test(u.charAt(p-1))?1:0}}:null}function cg(s){let e=[];for(let t of s.selection.ranges){let i=s.doc.lineAt(t.from),n=t.to<=i.to?i:s.doc.lineAt(t.to);n.from>i.from&&n.from==t.to&&(n=t.to==i.to+1?i:s.doc.lineAt(t.to-1));let r=e.length-1;r>=0&&e[r].to>i.from?e[r].to=n.to:e.push({from:i.from+/^\s*/.exec(i.text)[0].length,to:n.to})}return e}function mc(s,e,t=e.selection.ranges){let i=t.map(r=>Po(e,r.from).block);if(!i.every(r=>r))return null;let n=t.map((r,o)=>hg(e,i[o],r.from,r.to));if(s!=2&&!n.every(r=>r))return{changes:e.changes(t.map((r,o)=>n[o]?[]:[{from:r.from,insert:i[o].open+" "},{from:r.to,insert:" "+i[o].close}]))};if(s!=1&&n.some(r=>r)){let r=[];for(let o=0,a;on&&(r==o||o>u.from)){n=u.from;let f=/^\s*/.exec(u.text)[0].length,d=f==u.length,p=u.text.slice(f,f+h.length)==h?f:-1;fr.comment<0&&(!r.empty||r.single))){let r=[];for(let{line:a,token:l,indent:h,empty:c,single:u}of i)(u||!c)&&r.push({from:a.from+h,insert:l+" "});let o=e.changes(r);return{changes:o,selection:e.selection.map(o,1)}}else if(s!=1&&i.some(r=>r.comment>=0)){let r=[];for(let{line:o,comment:a,token:l}of i)if(a>=0){let h=o.from+a,c=h+l.length;o.text[c-o.from]==" "&&c++,r.push({from:h,to:c})}return{changes:r}}return null}function Ti(s,e){return _.create(s.ranges.map(e),s.mainIndex)}function gt(s,e){return s.update({selection:e,scrollIntoView:!0,userEvent:"select"})}function st({state:s,dispatch:e},t){let i=Ti(s.selection,t);return i.eq(s.selection,!0)?!1:(e(gt(s,i)),!0)}function Ps(s,e){return _.cursor(e?s.to:s.from)}function gc(s,e){return st(s,t=>t.empty?s.moveByChar(t,e):Ps(t,e))}function $e(s){return s.textDirectionAt(s.state.selection.main.head)==be.LTR}const yc=s=>gc(s,!$e(s)),bc=s=>gc(s,$e(s));function Sc(s,e){return st(s,t=>t.empty?s.moveByGroup(t,e):Ps(t,e))}const fg=s=>Sc(s,!$e(s)),dg=s=>Sc(s,$e(s));function pg(s,e,t){if(e.type.prop(t))return!0;let i=e.to-e.from;return i&&(i>2||/[^\s,.;:]/.test(s.sliceDoc(e.from,e.to)))||e.firstChild}function vs(s,e,t){let i=Ue(s).resolveInner(e.head),n=t?Y.closedBy:Y.openedBy;for(let l=e.head;;){let h=t?i.childAfter(l):i.childBefore(l);if(!h)break;pg(s,h,n)?i=h:l=t?h.to:h.from}let r=i.type.prop(n),o,a;return r&&(o=t?hi(s,i.from,1):hi(s,i.to,-1))&&o.matched?a=t?o.end.to:o.end.from:a=t?i.to:i.from,_.cursor(a,t?-1:1)}const Og=s=>st(s,e=>vs(s.state,e,!$e(s))),mg=s=>st(s,e=>vs(s.state,e,$e(s)));function xc(s,e){return st(s,t=>{if(!t.empty)return Ps(t,e);let i=s.moveVertically(t,e);return i.head!=t.head?i:s.moveToLineBoundary(t,e)})}const wc=s=>xc(s,!1),Qc=s=>xc(s,!0);function kc(s){let e=s.scrollDOM.clientHeighto.empty?s.moveVertically(o,e,t.height):Ps(o,e));if(n.eq(i.selection))return!1;let r;if(t.selfScroll){let o=s.coordsAtPos(i.selection.main.head),a=s.scrollDOM.getBoundingClientRect(),l=a.top+t.marginTop,h=a.bottom-t.marginBottom;o&&o.top>l&&o.bottomPc(s,!1),Fr=s=>Pc(s,!0);function It(s,e,t){let i=s.lineBlockAt(e.head),n=s.moveToLineBoundary(e,t);if(n.head==e.head&&n.head!=(t?i.to:i.from)&&(n=s.moveToLineBoundary(e,t,!1)),!t&&n.head==i.from&&i.length){let r=/^\s*/.exec(s.state.sliceDoc(i.from,Math.min(i.from+100,i.to)))[0].length;r&&e.head!=i.from+r&&(n=_.cursor(i.from+r))}return n}const gg=s=>st(s,e=>It(s,e,!0)),yg=s=>st(s,e=>It(s,e,!1)),bg=s=>st(s,e=>It(s,e,!$e(s))),Sg=s=>st(s,e=>It(s,e,$e(s))),xg=s=>st(s,e=>_.cursor(s.lineBlockAt(e.head).from,1)),wg=s=>st(s,e=>_.cursor(s.lineBlockAt(e.head).to,-1));function Qg(s,e,t){let i=!1,n=Ti(s.selection,r=>{let o=hi(s,r.head,-1)||hi(s,r.head,1)||r.head>0&&hi(s,r.head-1,1)||r.headQg(s,e);function Ke(s,e){let t=Ti(s.state.selection,i=>{let n=e(i);return _.range(i.anchor,n.head,n.goalColumn,n.bidiLevel||void 0)});return t.eq(s.state.selection)?!1:(s.dispatch(gt(s.state,t)),!0)}function vc(s,e){return Ke(s,t=>s.moveByChar(t,e))}const $c=s=>vc(s,!$e(s)),Tc=s=>vc(s,$e(s));function _c(s,e){return Ke(s,t=>s.moveByGroup(t,e))}const Pg=s=>_c(s,!$e(s)),vg=s=>_c(s,$e(s)),$g=s=>Ke(s,e=>vs(s.state,e,!$e(s))),Tg=s=>Ke(s,e=>vs(s.state,e,$e(s)));function Ac(s,e){return Ke(s,t=>s.moveVertically(t,e))}const Zc=s=>Ac(s,!1),Rc=s=>Ac(s,!0);function Cc(s,e){return Ke(s,t=>s.moveVertically(t,e,kc(s).height))}const il=s=>Cc(s,!1),nl=s=>Cc(s,!0),_g=s=>Ke(s,e=>It(s,e,!0)),Ag=s=>Ke(s,e=>It(s,e,!1)),Zg=s=>Ke(s,e=>It(s,e,!$e(s))),Rg=s=>Ke(s,e=>It(s,e,$e(s))),Cg=s=>Ke(s,e=>_.cursor(s.lineBlockAt(e.head).from)),Mg=s=>Ke(s,e=>_.cursor(s.lineBlockAt(e.head).to)),sl=({state:s,dispatch:e})=>(e(gt(s,{anchor:0})),!0),rl=({state:s,dispatch:e})=>(e(gt(s,{anchor:s.doc.length})),!0),ol=({state:s,dispatch:e})=>(e(gt(s,{anchor:s.selection.main.anchor,head:0})),!0),al=({state:s,dispatch:e})=>(e(gt(s,{anchor:s.selection.main.anchor,head:s.doc.length})),!0),Eg=({state:s,dispatch:e})=>(e(s.update({selection:{anchor:0,head:s.doc.length},userEvent:"select"})),!0),Lg=({state:s,dispatch:e})=>{let t=$s(s).map(({from:i,to:n})=>_.range(i,Math.min(n+1,s.doc.length)));return e(s.update({selection:_.create(t),userEvent:"select"})),!0},Xg=({state:s,dispatch:e})=>{let t=Ti(s.selection,i=>{let n=Ue(s),r=n.resolveStack(i.from,1);if(i.empty){let o=n.resolveStack(i.from,-1);o.node.from>=r.node.from&&o.node.to<=r.node.to&&(r=o)}for(let o=r;o;o=o.next){let{node:a}=o;if((a.from=i.to||a.to>i.to&&a.from<=i.from)&&o.next)return _.range(a.to,a.from)}return i});return t.eq(s.selection)?!1:(e(gt(s,t)),!0)},Dg=({state:s,dispatch:e})=>{let t=s.selection,i=null;return t.ranges.length>1?i=_.create([t.main]):t.main.empty||(i=_.create([_.cursor(t.main.head)])),i?(e(gt(s,i)),!0):!1};function On(s,e){if(s.state.readOnly)return!1;let t="delete.selection",{state:i}=s,n=i.changeByRange(r=>{let{from:o,to:a}=r;if(o==a){let l=e(r);lo&&(t="delete.forward",l=Xn(s,l,!0)),o=Math.min(o,l),a=Math.max(a,l)}else o=Xn(s,o,!1),a=Xn(s,a,!0);return o==a?{range:r}:{changes:{from:o,to:a},range:_.cursor(o,on(s)))i.between(e,e,(n,r)=>{ne&&(e=t?r:n)});return e}const Mc=(s,e,t)=>On(s,i=>{let n=i.from,{state:r}=s,o=r.doc.lineAt(n),a,l;if(t&&!e&&n>o.from&&nMc(s,!1,!0),Ec=s=>Mc(s,!0,!1),Lc=(s,e)=>On(s,t=>{let i=t.head,{state:n}=s,r=n.doc.lineAt(i),o=n.charCategorizer(i);for(let a=null;;){if(i==(e?r.to:r.from)){i==t.head&&r.number!=(e?n.doc.lines:1)&&(i+=e?1:-1);break}let l=Ze(r.text,i-r.from,e)+r.from,h=r.text.slice(Math.min(i,l)-r.from,Math.max(i,l)-r.from),c=o(h);if(a!=null&&c!=a)break;(h!=" "||i!=t.head)&&(a=c),i=l}return i}),Xc=s=>Lc(s,!1),jg=s=>Lc(s,!0),Ig=s=>On(s,e=>{let t=s.lineBlockAt(e.head).to;return e.headOn(s,e=>{let t=s.moveToLineBoundary(e,!1).head;return e.head>t?t:Math.max(0,e.head-1)}),Bg=s=>On(s,e=>{let t=s.moveToLineBoundary(e,!0).head;return e.head{if(s.readOnly)return!1;let t=s.changeByRange(i=>({changes:{from:i.from,to:i.to,insert:K.of(["",""])},range:_.cursor(i.from)}));return e(s.update(t,{scrollIntoView:!0,userEvent:"input"})),!0},Ug=({state:s,dispatch:e})=>{if(s.readOnly)return!1;let t=s.changeByRange(i=>{if(!i.empty||i.from==0||i.from==s.doc.length)return{range:i};let n=i.from,r=s.doc.lineAt(n),o=n==r.from?n-1:Ze(r.text,n-r.from,!1)+r.from,a=n==r.to?n+1:Ze(r.text,n-r.from,!0)+r.from;return{changes:{from:o,to:a,insert:s.doc.slice(n,a).append(s.doc.slice(o,n))},range:_.cursor(a)}});return t.changes.empty?!1:(e(s.update(t,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function $s(s){let e=[],t=-1;for(let i of s.selection.ranges){let n=s.doc.lineAt(i.from),r=s.doc.lineAt(i.to);if(!i.empty&&i.to==r.from&&(r=s.doc.lineAt(i.to-1)),t>=n.number){let o=e[e.length-1];o.to=r.to,o.ranges.push(i)}else e.push({from:n.from,to:r.to,ranges:[i]});t=r.number+1}return e}function Dc(s,e,t){if(s.readOnly)return!1;let i=[],n=[];for(let r of $s(s)){if(t?r.to==s.doc.length:r.from==0)continue;let o=s.doc.lineAt(t?r.to+1:r.from-1),a=o.length+1;if(t){i.push({from:r.to,to:o.to},{from:r.from,insert:o.text+s.lineBreak});for(let l of r.ranges)n.push(_.range(Math.min(s.doc.length,l.anchor+a),Math.min(s.doc.length,l.head+a)))}else{i.push({from:o.from,to:r.from},{from:r.to,insert:s.lineBreak+o.text});for(let l of r.ranges)n.push(_.range(l.anchor-a,l.head-a))}}return i.length?(e(s.update({changes:i,scrollIntoView:!0,selection:_.create(n,s.selection.mainIndex),userEvent:"move.line"})),!0):!1}const qg=({state:s,dispatch:e})=>Dc(s,e,!1),zg=({state:s,dispatch:e})=>Dc(s,e,!0);function jc(s,e,t){if(s.readOnly)return!1;let i=[];for(let n of $s(s))t?i.push({from:n.from,insert:s.doc.slice(n.from,n.to)+s.lineBreak}):i.push({from:n.to,insert:s.lineBreak+s.doc.slice(n.from,n.to)});return e(s.update({changes:i,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const Wg=({state:s,dispatch:e})=>jc(s,e,!1),Gg=({state:s,dispatch:e})=>jc(s,e,!0),Yg=s=>{if(s.state.readOnly)return!1;let{state:e}=s,t=e.changes($s(e).map(({from:n,to:r})=>(n>0?n--:r{let r;if(s.lineWrapping){let o=s.lineBlockAt(n.head),a=s.coordsAtPos(n.head,n.assoc||1);a&&(r=o.bottom+s.documentTop-a.bottom+s.defaultLineHeight/2)}return s.moveVertically(n,!0,r)}).map(t);return s.dispatch({changes:t,selection:i,scrollIntoView:!0,userEvent:"delete.line"}),!0};function Fg(s,e){if(/\(\)|\[\]|\{\}/.test(s.sliceDoc(e-1,e+1)))return{from:e,to:e};let t=Ue(s).resolveInner(e),i=t.childBefore(e),n=t.childAfter(e),r;return i&&n&&i.to<=e&&n.from>=e&&(r=i.type.prop(Y.closedBy))&&r.indexOf(n.name)>-1&&s.doc.lineAt(i.to).from==s.doc.lineAt(n.from).from&&!/\S/.test(s.sliceDoc(i.to,n.from))?{from:i.to,to:n.from}:null}const ll=Ic(!1),Hg=Ic(!0);function Ic(s){return({state:e,dispatch:t})=>{if(e.readOnly)return!1;let i=e.changeByRange(n=>{let{from:r,to:o}=n,a=e.doc.lineAt(r),l=!s&&r==o&&Fg(e,r);s&&(r=o=(o<=a.to?a:e.doc.lineAt(o)).to);let h=new ks(e,{simulateBreak:r,simulateDoubleBreak:!!l}),c=uc(h,r);for(c==null&&(c=ys(/^\s*/.exec(e.doc.lineAt(r).text)[0],e.tabSize));oa.from&&r{let n=[];for(let o=i.from;o<=i.to;){let a=s.doc.lineAt(o);a.number>t&&(i.empty||i.to>a.from)&&(e(a,n,i),t=a.number),o=a.to+1}let r=s.changes(n);return{changes:n,range:_.range(r.mapPos(i.anchor,1),r.mapPos(i.head,1))}})}const Kg=({state:s,dispatch:e})=>{if(s.readOnly)return!1;let t=Object.create(null),i=new ks(s,{overrideIndentation:r=>{let o=t[r];return o??-1}}),n=vo(s,(r,o,a)=>{let l=uc(i,r.from);if(l==null)return;/\S/.test(r.text)||(l=0);let h=/^\s*/.exec(r.text)[0],c=fs(s,l);(h!=c||a.froms.readOnly?!1:(e(s.update(vo(s,(t,i)=>{i.push({from:t.from,insert:s.facet(Qs)})}),{userEvent:"input.indent"})),!0),e0=({state:s,dispatch:e})=>s.readOnly?!1:(e(s.update(vo(s,(t,i)=>{let n=/^\s*/.exec(t.text)[0];if(!n)return;let r=ys(n,s.tabSize),o=0,a=fs(s,Math.max(0,r-us(s)));for(;o(s.setTabFocusMode(),!0),i0=[{key:"Ctrl-b",run:yc,shift:$c,preventDefault:!0},{key:"Ctrl-f",run:bc,shift:Tc},{key:"Ctrl-p",run:wc,shift:Zc},{key:"Ctrl-n",run:Qc,shift:Rc},{key:"Ctrl-a",run:xg,shift:Cg},{key:"Ctrl-e",run:wg,shift:Mg},{key:"Ctrl-d",run:Ec},{key:"Ctrl-h",run:Hr},{key:"Ctrl-k",run:Ig},{key:"Ctrl-Alt-h",run:Xc},{key:"Ctrl-o",run:Ng},{key:"Ctrl-t",run:Ug},{key:"Ctrl-v",run:Fr}],n0=[{key:"ArrowLeft",run:yc,shift:$c,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:fg,shift:Pg,preventDefault:!0},{mac:"Cmd-ArrowLeft",run:bg,shift:Zg,preventDefault:!0},{key:"ArrowRight",run:bc,shift:Tc,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:dg,shift:vg,preventDefault:!0},{mac:"Cmd-ArrowRight",run:Sg,shift:Rg,preventDefault:!0},{key:"ArrowUp",run:wc,shift:Zc,preventDefault:!0},{mac:"Cmd-ArrowUp",run:sl,shift:ol},{mac:"Ctrl-ArrowUp",run:tl,shift:il},{key:"ArrowDown",run:Qc,shift:Rc,preventDefault:!0},{mac:"Cmd-ArrowDown",run:rl,shift:al},{mac:"Ctrl-ArrowDown",run:Fr,shift:nl},{key:"PageUp",run:tl,shift:il},{key:"PageDown",run:Fr,shift:nl},{key:"Home",run:yg,shift:Ag,preventDefault:!0},{key:"Mod-Home",run:sl,shift:ol},{key:"End",run:gg,shift:_g,preventDefault:!0},{key:"Mod-End",run:rl,shift:al},{key:"Enter",run:ll,shift:ll},{key:"Mod-a",run:Eg},{key:"Backspace",run:Hr,shift:Hr},{key:"Delete",run:Ec},{key:"Mod-Backspace",mac:"Alt-Backspace",run:Xc},{key:"Mod-Delete",mac:"Alt-Delete",run:jg},{mac:"Mod-Backspace",run:Vg},{mac:"Mod-Delete",run:Bg}].concat(i0.map(s=>({mac:s.key,run:s.run,shift:s.shift}))),s0=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:Og,shift:$g},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:mg,shift:Tg},{key:"Alt-ArrowUp",run:qg},{key:"Shift-Alt-ArrowUp",run:Wg},{key:"Alt-ArrowDown",run:zg},{key:"Shift-Alt-ArrowDown",run:Gg},{key:"Escape",run:Dg},{key:"Mod-Enter",run:Hg},{key:"Alt-l",mac:"Ctrl-l",run:Lg},{key:"Mod-i",run:Xg,preventDefault:!0},{key:"Mod-[",run:e0},{key:"Mod-]",run:Jg},{key:"Mod-Alt-\\",run:Kg},{key:"Shift-Mod-k",run:Yg},{key:"Shift-Mod-\\",run:kg},{key:"Mod-/",run:rg},{key:"Alt-A",run:ag},{key:"Ctrl-m",mac:"Shift-Alt-m",run:t0}].concat(n0);var hl={};class ds{constructor(e,t,i,n,r,o,a,l,h,c=0,u){this.p=e,this.stack=t,this.state=i,this.reducePos=n,this.pos=r,this.score=o,this.buffer=a,this.bufferBase=l,this.curContext=h,this.lookAhead=c,this.parent=u}toString(){return`[${this.stack.filter((e,t)=>t%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,t,i=0){let n=e.parser.context;return new ds(e,[],t,i,i,0,[],0,n?new cl(n,n.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var t;let i=e>>19,n=e&65535,{parser:r}=this.p,o=this.reducePos=2e3&&!(!((t=this.p.parser.nodeSet.types[n])===null||t===void 0)&&t.isAnonymous)&&(h==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=c):this.p.lastBigReductionSizel;)this.stack.pop();this.reduceContext(n,h)}storeNode(e,t,i,n=4,r=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]0&&o.buffer[a-4]==0&&o.buffer[a-1]>-1){if(t==i)return;if(o.buffer[a-2]>=t){o.buffer[a-2]=i;return}}}if(!r||this.pos==i)this.buffer.push(e,t,i,n);else{let o=this.buffer.length;if(o>0&&this.buffer[o-4]!=0){let a=!1;for(let l=o;l>0&&this.buffer[l-2]>i;l-=4)if(this.buffer[l-1]>=0){a=!0;break}if(a)for(;o>0&&this.buffer[o-2]>i;)this.buffer[o]=this.buffer[o-4],this.buffer[o+1]=this.buffer[o-3],this.buffer[o+2]=this.buffer[o-2],this.buffer[o+3]=this.buffer[o-1],o-=4,n>4&&(n-=4)}this.buffer[o]=e,this.buffer[o+1]=t,this.buffer[o+2]=i,this.buffer[o+3]=n}}shift(e,t,i,n){if(e&131072)this.pushState(e&65535,this.pos);else if(e&262144)this.pos=n,this.shiftContext(t,i),t<=this.p.parser.maxNode&&this.buffer.push(t,i,n,4);else{let r=e,{parser:o}=this.p;(n>this.pos||t<=o.maxNode)&&(this.pos=n,o.stateFlag(r,1)||(this.reducePos=n)),this.pushState(r,i),this.shiftContext(t,i),t<=o.maxNode&&this.buffer.push(t,i,n,4)}}apply(e,t,i,n){e&65536?this.reduce(e):this.shift(e,t,i,n)}useNode(e,t){let i=this.p.reused.length-1;(i<0||this.p.reused[i]!=e)&&(this.p.reused.push(e),i++);let n=this.pos;this.reducePos=this.pos=n+e.length,this.pushState(t,n),this.buffer.push(i,n,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,t=e.buffer.length;for(;t>0&&e.buffer[t-2]>e.reducePos;)t-=4;let i=e.buffer.slice(t),n=e.bufferBase+t;for(;e&&n==e.bufferBase;)e=e.parent;return new ds(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,i,n,this.curContext,this.lookAhead,e)}recoverByDelete(e,t){let i=e<=this.p.parser.maxNode;i&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,i?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new r0(this);;){let i=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(i==0)return!1;if(!(i&65536))return!0;t.reduce(i)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let n=[];for(let r=0,o;rl&1&&a==o)||n.push(t[r],o)}t=n}let i=[];for(let n=0;n>19,n=t&65535,r=this.stack.length-i*3;if(r<0||e.getGoto(this.stack[r],n,!1)<0){let o=this.findForcedReduction();if(o==null)return!1;t=o}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}findForcedReduction(){let{parser:e}=this.p,t=[],i=(n,r)=>{if(!t.includes(n))return t.push(n),e.allActions(n,o=>{if(!(o&393216))if(o&65536){let a=(o>>19)-r;if(a>1){let l=o&65535,h=this.stack.length-a*3;if(h>=0&&e.getGoto(this.stack[h],l,!1)>=0)return a<<19|65536|l}}else{let a=i(o,r+1);if(a!=null)return a}})};return i(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:e}=this.p;return e.data[e.stateSlot(this.state,1)]==65535&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let t=0;tthis.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class cl{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}}class r0{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=e&65535,i=e>>19;i==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(i-1)*3;let n=this.start.p.parser.getGoto(this.stack[this.base-3],t,!0);this.state=n}}class ps{constructor(e,t,i){this.stack=e,this.pos=t,this.index=i,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(e,t=e.bufferBase+e.buffer.length){return new ps(e,t,t-e.bufferBase)}maybeNext(){let e=this.stack.parent;e!=null&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new ps(this.stack,this.pos,this.index)}}function Ui(s,e=Uint16Array){if(typeof s!="string")return s;let t=null;for(let i=0,n=0;i=92&&o--,o>=34&&o--;let l=o-32;if(l>=46&&(l-=46,a=!0),r+=l,a)break;r*=46}t?t[n++]=r:t=new e(r)}return t}class Gn{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const ul=new Gn;class o0{constructor(e,t){this.input=e,this.ranges=t,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=ul,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let i=this.range,n=this.rangeIndex,r=this.pos+e;for(;ri.to:r>=i.to;){if(n==this.ranges.length-1)return null;let o=this.ranges[++n];r+=o.from-i.to,i=o}return r}clipPos(e){if(e>=this.range.from&&ee)return Math.max(e,t.from);return this.end}peek(e){let t=this.chunkOff+e,i,n;if(t>=0&&t=this.chunk2Pos&&ia.to&&(this.chunk2=this.chunk2.slice(0,a.to-i)),n=this.chunk2.charCodeAt(0)}}return i>=this.token.lookAhead&&(this.token.lookAhead=i+1),n}acceptToken(e,t=0){let i=t?this.resolveOffset(t,-1):this.pos;if(i==null||i=this.chunk2Pos&&this.posthis.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=ul,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let i="";for(let n of this.ranges){if(n.from>=t)break;n.to>e&&(i+=this.input.read(Math.max(n.from,e),Math.min(n.to,t)))}return i}}class gi{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:i}=t.p;Vc(this.data,e,t,this.id,i.data,i.tokenPrecTable)}}gi.prototype.contextual=gi.prototype.fallback=gi.prototype.extend=!1;class Kr{constructor(e,t,i){this.precTable=t,this.elseToken=i,this.data=typeof e=="string"?Ui(e):e}token(e,t){let i=e.pos,n=0;for(;;){let r=e.next<0,o=e.resolveOffset(1,1);if(Vc(this.data,e,t,0,this.data,this.precTable),e.token.value>-1)break;if(this.elseToken==null)return;if(r||n++,o==null)break;e.reset(o,e.token)}n&&(e.reset(i,e.token),e.acceptToken(this.elseToken,n))}}Kr.prototype.contextual=gi.prototype.fallback=gi.prototype.extend=!1;class mn{constructor(e,t={}){this.token=e,this.contextual=!!t.contextual,this.fallback=!!t.fallback,this.extend=!!t.extend}}function Vc(s,e,t,i,n,r){let o=0,a=1<0){let p=s[d];if(l.allows(p)&&(e.token.value==-1||e.token.value==p||a0(p,e.token.value,n,r))){e.acceptToken(p);break}}let c=e.next,u=0,f=s[o+2];if(e.next<0&&f>u&&s[h+f*3-3]==65535){o=s[h+f*3-1];continue e}for(;u>1,p=h+d+(d<<1),O=s[p],m=s[p+1]||65536;if(c=m)u=d+1;else{o=s[p+2],e.advance();continue e}}break}}function fl(s,e,t){for(let i=e,n;(n=s[i])!=65535;i++)if(n==t)return i-e;return-1}function a0(s,e,t,i){let n=fl(t,i,e);return n<0||fl(t,i,s)e)&&!i.type.isError)return t<0?Math.max(0,Math.min(i.to-1,e-25)):Math.min(s.length,Math.max(i.from+1,e+25));if(t<0?i.prevSibling():i.nextSibling())break;if(!i.parent())return t<0?0:s.length}}class l0{constructor(e,t){this.fragments=e,this.nodeSet=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?dl(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?dl(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(ee)return this.nextStart=o,null;if(r instanceof me){if(o==e){if(o=Math.max(this.safeFrom,e)&&(this.trees.push(r),this.start.push(o),this.index.push(0))}else this.index[t]++,this.nextStart=o+r.length}}}class h0{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(i=>new Gn)}getActions(e){let t=0,i=null,{parser:n}=e.p,{tokenizers:r}=n,o=n.stateSlot(e.state,3),a=e.curContext?e.curContext.hash:0,l=0;for(let h=0;hu.end+25&&(l=Math.max(u.lookAhead,l)),u.value!=0)){let f=t;if(u.extended>-1&&(t=this.addActions(e,u.extended,u.end,t)),t=this.addActions(e,u.value,u.end,t),!c.extend&&(i=u,t>f))break}}for(;this.actions.length>t;)this.actions.pop();return l&&e.setLookAhead(l),!i&&e.pos==this.stream.end&&(i=new Gn,i.value=e.p.parser.eofTerm,i.start=i.end=e.pos,t=this.addActions(e,i.value,i.end,t)),this.mainToken=i,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new Gn,{pos:i,p:n}=e;return t.start=i,t.end=Math.min(i+1,n.stream.end),t.value=i==n.stream.end?n.parser.eofTerm:0,t}updateCachedToken(e,t,i){let n=this.stream.clipPos(i.pos);if(t.token(this.stream.reset(n,e),i),e.value>-1){let{parser:r}=i.p;for(let o=0;o=0&&i.p.parser.dialect.allows(a>>1)){a&1?e.extended=a>>1:e.value=a>>1;break}}}else e.value=0,e.end=this.stream.clipPos(n+1)}putAction(e,t,i,n){for(let r=0;re.bufferLength*4?new l0(i,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,t=this.minStackPos,i=this.stacks=[],n,r;if(this.bigReductionCount>300&&e.length==1){let[o]=e;for(;o.forceReduce()&&o.stack.length&&o.stack[o.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let o=0;ot)i.push(a);else{if(this.advanceStack(a,i,e))continue;{n||(n=[],r=[]),n.push(a);let l=this.tokens.getMainToken(a);r.push(l.value,l.end)}}break}}if(!i.length){let o=n&&d0(n);if(o)return Ve&&console.log("Finish with "+this.stackID(o)),this.stackToTree(o);if(this.parser.strict)throw Ve&&n&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+t);this.recovering||(this.recovering=5)}if(this.recovering&&n){let o=this.stoppedAt!=null&&n[0].pos>this.stoppedAt?n[0]:this.runRecovery(n,r,i);if(o)return Ve&&console.log("Force-finish "+this.stackID(o)),this.stackToTree(o.forceAll())}if(this.recovering){let o=this.recovering==1?1:this.recovering*3;if(i.length>o)for(i.sort((a,l)=>l.score-a.score);i.length>o;)i.pop();i.some(a=>a.reducePos>t)&&this.recovering--}else if(i.length>1){e:for(let o=0;o500&&h.buffer.length>500)if((a.score-h.score||a.buffer.length-h.buffer.length)>0)i.splice(l--,1);else{i.splice(o--,1);continue e}}}i.length>12&&i.splice(12,i.length-12)}this.minStackPos=i[0].pos;for(let o=1;o ":"";if(this.stoppedAt!=null&&n>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let h=e.curContext&&e.curContext.tracker.strict,c=h?e.curContext.hash:0;for(let u=this.fragments.nodeAt(n);u;){let f=this.parser.nodeSet.types[u.type.id]==u.type?r.getGoto(e.state,u.type.id):-1;if(f>-1&&u.length&&(!h||(u.prop(Y.contextHash)||0)==c))return e.useNode(u,f),Ve&&console.log(o+this.stackID(e)+` (via reuse of ${r.getName(u.type.id)})`),!0;if(!(u instanceof me)||u.children.length==0||u.positions[0]>0)break;let d=u.children[0];if(d instanceof me&&u.positions[0]==0)u=d;else break}}let a=r.stateSlot(e.state,4);if(a>0)return e.reduce(a),Ve&&console.log(o+this.stackID(e)+` (via always-reduce ${r.getName(a&65535)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let l=this.tokens.getActions(e);for(let h=0;hn?t.push(p):i.push(p)}return!1}advanceFully(e,t){let i=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>i)return pl(e,t),!0}}runRecovery(e,t,i){let n=null,r=!1;for(let o=0;o ":"";if(a.deadEnd&&(r||(r=!0,a.restart(),Ve&&console.log(c+this.stackID(a)+" (restarted)"),this.advanceFully(a,i))))continue;let u=a.split(),f=c;for(let d=0;u.forceReduce()&&d<10&&(Ve&&console.log(f+this.stackID(u)+" (via force-reduce)"),!this.advanceFully(u,i));d++)Ve&&(f=this.stackID(u)+" -> ");for(let d of a.recoverByInsert(l))Ve&&console.log(c+this.stackID(d)+" (via recover-insert)"),this.advanceFully(d,i);this.stream.end>a.pos?(h==a.pos&&(h++,l=0),a.recoverByDelete(l,h),Ve&&console.log(c+this.stackID(a)+` (via recover-delete ${this.parser.getName(l)})`),pl(a,i)):(!n||n.scores;class f0{constructor(e){this.start=e.start,this.shift=e.shift||tr,this.reduce=e.reduce||tr,this.reuse=e.reuse||tr,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}}class Os extends rc{constructor(e){if(super(),this.wrappers=[],e.version!=14)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let t=e.nodeNames.split(" ");this.minRepeatTerm=t.length;for(let a=0;ae.topRules[a][1]),n=[];for(let a=0;a=0)r(c,l,a[h++]);else{let u=a[h+-c];for(let f=-c;f>0;f--)r(a[h++],l,u);h++}}}this.nodeSet=new yo(t.map((a,l)=>Ie.define({name:l>=this.minRepeatTerm?void 0:a,id:l,props:n[l],top:i.indexOf(l)>-1,error:l==0,skipped:e.skippedNodes&&e.skippedNodes.indexOf(l)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=tc;let o=Ui(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let a=0;atypeof a=="number"?new gi(o,a):a),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,i){let n=new c0(this,e,t,i);for(let r of this.wrappers)n=r(n,e,t,i);return n}getGoto(e,t,i=!1){let n=this.goto;if(t>=n[0])return-1;for(let r=n[t+1];;){let o=n[r++],a=o&1,l=n[r++];if(a&&i)return l;for(let h=r+(o>>1);r0}validAction(e,t){return!!this.allActions(e,i=>i==t?!0:null)}allActions(e,t){let i=this.stateSlot(e,4),n=i?t(i):void 0;for(let r=this.stateSlot(e,1);n==null;r+=3){if(this.data[r]==65535)if(this.data[r+1]==1)r=St(this.data,r+2);else break;n=t(St(this.data,r+1))}return n}nextStates(e){let t=[];for(let i=this.stateSlot(e,1);;i+=3){if(this.data[i]==65535)if(this.data[i+1]==1)i=St(this.data,i+2);else break;if(!(this.data[i+2]&1)){let n=this.data[i+1];t.some((r,o)=>o&1&&r==n)||t.push(this.data[i],n)}}return t}configure(e){let t=Object.assign(Object.create(Os.prototype),this);if(e.props&&(t.nodeSet=this.nodeSet.extend(...e.props)),e.top){let i=this.topRules[e.top];if(!i)throw new RangeError(`Invalid top rule name ${e.top}`);t.top=i}return e.tokenizers&&(t.tokenizers=this.tokenizers.map(i=>{let n=e.tokenizers.find(r=>r.from==i);return n?n.to:i})),e.specializers&&(t.specializers=this.specializers.slice(),t.specializerSpecs=this.specializerSpecs.map((i,n)=>{let r=e.specializers.find(a=>a.from==i.external);if(!r)return i;let o=Object.assign(Object.assign({},i),{external:r.to});return t.specializers[n]=Ol(o),o})),e.contextTracker&&(t.context=e.contextTracker),e.dialect&&(t.dialect=this.parseDialect(e.dialect)),e.strict!=null&&(t.strict=e.strict),e.wrap&&(t.wrappers=t.wrappers.concat(e.wrap)),e.bufferLength!=null&&(t.bufferLength=e.bufferLength),t}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return t==null?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),i=t.map(()=>!1);if(e)for(let r of e.split(" ")){let o=t.indexOf(r);o>=0&&(i[o]=!0)}let n=null;for(let r=0;ri)&&t.p.parser.stateFlag(t.state,2)&&(!e||e.scores.external(t,i)<<1|e}return s.get}const p0=314,O0=315,ml=1,m0=2,g0=3,y0=4,b0=316,S0=318,x0=319,w0=5,Q0=6,k0=0,Jr=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],Bc=125,P0=59,eo=47,v0=42,$0=43,T0=45,_0=60,A0=44,Z0=63,R0=46,C0=91,M0=new f0({start:!1,shift(s,e){return e==w0||e==Q0||e==S0?s:e==x0},strict:!1}),E0=new mn((s,e)=>{let{next:t}=s;(t==Bc||t==-1||e.context)&&s.acceptToken(b0)},{contextual:!0,fallback:!0}),L0=new mn((s,e)=>{let{next:t}=s,i;Jr.indexOf(t)>-1||t==eo&&((i=s.peek(1))==eo||i==v0)||t!=Bc&&t!=P0&&t!=-1&&!e.context&&s.acceptToken(p0)},{contextual:!0}),X0=new mn((s,e)=>{s.next==C0&&!e.context&&s.acceptToken(O0)},{contextual:!0}),D0=new mn((s,e)=>{let{next:t}=s;if(t==$0||t==T0){if(s.advance(),t==s.next){s.advance();let i=!e.context&&e.canShift(ml);s.acceptToken(i?ml:m0)}}else t==Z0&&s.peek(1)==R0&&(s.advance(),s.advance(),(s.next<48||s.next>57)&&s.acceptToken(g0))},{contextual:!0});function ir(s,e){return s>=65&&s<=90||s>=97&&s<=122||s==95||s>=192||!e&&s>=48&&s<=57}const j0=new mn((s,e)=>{if(s.next!=_0||!e.dialectEnabled(k0)||(s.advance(),s.next==eo))return;let t=0;for(;Jr.indexOf(s.next)>-1;)s.advance(),t++;if(ir(s.next,!0)){for(s.advance(),t++;ir(s.next,!1);)s.advance(),t++;for(;Jr.indexOf(s.next)>-1;)s.advance(),t++;if(s.next==A0)return;for(let i=0;;i++){if(i==7){if(!ir(s.next,!0))return;break}if(s.next!="extends".charCodeAt(i))break;s.advance(),t++}}s.acceptToken(y0,-t)}),I0=oc({"get set async static":b.modifier,"for while do if else switch try catch finally return throw break continue default case":b.controlKeyword,"in of await yield void typeof delete instanceof":b.operatorKeyword,"let var const using function class extends":b.definitionKeyword,"import export from":b.moduleKeyword,"with debugger as new":b.keyword,TemplateString:b.special(b.string),super:b.atom,BooleanLiteral:b.bool,this:b.self,null:b.null,Star:b.modifier,VariableName:b.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":b.function(b.variableName),VariableDefinition:b.definition(b.variableName),Label:b.labelName,PropertyName:b.propertyName,PrivatePropertyName:b.special(b.propertyName),"CallExpression/MemberExpression/PropertyName":b.function(b.propertyName),"FunctionDeclaration/VariableDefinition":b.function(b.definition(b.variableName)),"ClassDeclaration/VariableDefinition":b.definition(b.className),"NewExpression/VariableName":b.className,PropertyDefinition:b.definition(b.propertyName),PrivatePropertyDefinition:b.definition(b.special(b.propertyName)),UpdateOp:b.updateOperator,"LineComment Hashbang":b.lineComment,BlockComment:b.blockComment,Number:b.number,String:b.string,Escape:b.escape,ArithOp:b.arithmeticOperator,LogicOp:b.logicOperator,BitOp:b.bitwiseOperator,CompareOp:b.compareOperator,RegExp:b.regexp,Equals:b.definitionOperator,Arrow:b.function(b.punctuation),": Spread":b.punctuation,"( )":b.paren,"[ ]":b.squareBracket,"{ }":b.brace,"InterpolationStart InterpolationEnd":b.special(b.brace),".":b.derefOperator,", ;":b.separator,"@":b.meta,TypeName:b.typeName,TypeDefinition:b.definition(b.typeName),"type enum interface implements namespace module declare":b.definitionKeyword,"abstract global Privacy readonly override":b.modifier,"is keyof unique infer asserts":b.operatorKeyword,JSXAttributeValue:b.attributeValue,JSXText:b.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":b.angleBracket,"JSXIdentifier JSXNameSpacedName":b.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":b.attributeName,"JSXBuiltin/JSXIdentifier":b.standard(b.tagName)}),V0={__proto__:null,export:20,as:25,from:33,default:36,async:41,function:42,const:52,extends:56,this:60,true:68,false:68,null:80,void:84,typeof:88,super:104,new:138,delete:150,yield:159,await:163,class:168,public:231,private:231,protected:231,readonly:233,instanceof:252,satisfies:255,in:256,import:290,keyof:347,unique:351,infer:357,asserts:393,is:395,abstract:415,implements:417,type:419,let:422,var:424,using:427,interface:433,enum:437,namespace:443,module:445,declare:449,global:453,for:472,of:481,while:484,with:488,do:492,if:496,else:498,switch:502,case:508,try:514,catch:518,finally:522,return:526,throw:530,break:534,continue:538,debugger:542},B0={__proto__:null,async:125,get:127,set:129,declare:191,public:193,private:193,protected:193,static:195,abstract:197,override:199,readonly:205,accessor:207,new:399},N0={__proto__:null,"<":189},U0=Os.deserialize({version:14,states:"$EOQ%TQlOOO%[QlOOO'_QpOOP(lO`OOO*zQ!0MxO'#CiO+RO#tO'#CjO+aO&jO'#CjO+oO#@ItO'#D_O.QQlO'#DeO.bQlO'#DpO%[QlO'#DxO0fQlO'#EQOOQ!0Lf'#EY'#EYO1PQ`O'#EVOOQO'#En'#EnOOQO'#Ij'#IjO1XQ`O'#GrO1dQ`O'#EmO1iQ`O'#EmO3hQ!0MxO'#JpO6[Q!0MxO'#JqO6uQ`O'#F[O6zQ,UO'#FsOOQ!0Lf'#Fe'#FeO7VO7dO'#FeO7eQMhO'#F{O9UQ`O'#FzOOQ!0Lf'#Jq'#JqOOQ!0Lb'#Jp'#JpO9ZQ`O'#GvOOQ['#K]'#K]O9fQ`O'#IWO9kQ!0LrO'#IXOOQ['#J^'#J^OOQ['#I]'#I]Q`QlOOQ`QlOOO9sQ!L^O'#DtO9zQlO'#D|O:RQlO'#EOO9aQ`O'#GrO:YQMhO'#CoO:hQ`O'#ElO:sQ`O'#EwO:xQMhO'#FdO;gQ`O'#GrOOQO'#K^'#K^O;lQ`O'#K^O;zQ`O'#GzO;zQ`O'#G{O;zQ`O'#G}O9aQ`O'#HQOYQ`O'#CeO>jQ`O'#HaO>rQ`O'#HgO>rQ`O'#HiO`QlO'#HkO>rQ`O'#HmO>rQ`O'#HpO>wQ`O'#HvO>|Q!0LsO'#H|O%[QlO'#IOO?XQ!0LsO'#IQO?dQ!0LsO'#ISO9kQ!0LrO'#IUO?oQ!0MxO'#CiO@qQpO'#DjQOQ`OOO%[QlO'#EOOAXQ`O'#ERO:YQMhO'#ElOAdQ`O'#ElOAoQ!bO'#FdOOQ['#Cg'#CgOOQ!0Lb'#Do'#DoOOQ!0Lb'#Jt'#JtO%[QlO'#JtOOQO'#Jw'#JwOOQO'#If'#IfOBoQpO'#EeOOQ!0Lb'#Ed'#EdOOQ!0Lb'#J{'#J{OCkQ!0MSO'#EeOCuQpO'#EUOOQO'#Jv'#JvODZQpO'#JwOEhQpO'#EUOCuQpO'#EePEuO&2DjO'#CbPOOO)CD{)CD{OOOO'#I^'#I^OFQO#tO,59UOOQ!0Lh,59U,59UOOOO'#I_'#I_OF`O&jO,59UOFnQ!L^O'#DaOOOO'#Ia'#IaOFuO#@ItO,59yOOQ!0Lf,59y,59yOGTQlO'#IbOGhQ`O'#JrOIgQ!fO'#JrO+}QlO'#JrOInQ`O,5:POJUQ`O'#EnOJcQ`O'#KROJnQ`O'#KQOJnQ`O'#KQOJvQ`O,5;[OJ{Q`O'#KPOOQ!0Ln,5:[,5:[OKSQlO,5:[OMQQ!0MxO,5:dOMqQ`O,5:lON[Q!0LrO'#KOONcQ`O'#J}O9ZQ`O'#J}ONwQ`O'#J}O! PQ`O,5;ZO! UQ`O'#J}O!#ZQ!fO'#JqOOQ!0Lh'#Ci'#CiO%[QlO'#EQO!#yQ!fO,5:qOOQS'#Jx'#JxOOQO-ErOOQ['#Jf'#JfOOQ[,5>s,5>sOOQ[-EbQ!0MxO,5:hO%[QlO,5:hO!@xQ!0MxO,5:jOOQO,5@x,5@xO!AiQMhO,5=^O!AwQ!0LrO'#JgO9UQ`O'#JgO!BYQ!0LrO,59ZO!BeQpO,59ZO!BmQMhO,59ZO:YQMhO,59ZO!BxQ`O,5;XO!CQQ`O'#H`O!CfQ`O'#KbO%[QlO,5;|O!9lQpO,5wQ`O'#HVO9aQ`O'#HXO!D}Q`O'#HXO:YQMhO'#HZO!ESQ`O'#HZOOQ[,5=o,5=oO!EXQ`O'#H[O!EjQ`O'#CoO!EoQ`O,59PO!EyQ`O,59PO!HOQlO,59POOQ[,59P,59PO!H`Q!0LrO,59PO%[QlO,59PO!JkQlO'#HcOOQ['#Hd'#HdOOQ['#He'#HeO`QlO,5={O!KRQ`O,5={O`QlO,5>RO`QlO,5>TO!KWQ`O,5>VO`QlO,5>XO!K]Q`O,5>[O!KbQlO,5>bOOQ[,5>h,5>hO%[QlO,5>hO9kQ!0LrO,5>jOOQ[,5>l,5>lO# lQ`O,5>lOOQ[,5>n,5>nO# lQ`O,5>nOOQ[,5>p,5>pO#!YQpO'#D]O%[QlO'#JtO#!{QpO'#JtO##VQpO'#DkO##hQpO'#DkO#%yQlO'#DkO#&QQ`O'#JsO#&YQ`O,5:UO#&_Q`O'#ErO#&mQ`O'#KSO#&uQ`O,5;]O#&zQpO'#DkO#'XQpO'#ETOOQ!0Lf,5:m,5:mO%[QlO,5:mO#'`Q`O,5:mO>wQ`O,5;WO!BeQpO,5;WO!BmQMhO,5;WO:YQMhO,5;WO#'hQ`O,5@`O#'mQ07dO,5:qOOQO-E|O+}QlO,5>|OOQO,5?S,5?SO#*uQlO'#IbOOQO-E<`-E<`O#+SQ`O,5@^O#+[Q!fO,5@^O#+cQ`O,5@lOOQ!0Lf1G/k1G/kO%[QlO,5@mO#+kQ`O'#IhOOQO-ErQ`O1G3qO$4rQlO1G3sO$8vQlO'#HrOOQ[1G3v1G3vO$9TQ`O'#HxO>wQ`O'#HzOOQ[1G3|1G3|O$9]QlO1G3|O9kQ!0LrO1G4SOOQ[1G4U1G4UOOQ!0Lb'#G^'#G^O9kQ!0LrO1G4WO9kQ!0LrO1G4YO$=dQ`O,5@`O!(yQlO,5;^O9ZQ`O,5;^O>wQ`O,5:VO!(yQlO,5:VO!BeQpO,5:VO$=iQ?MtO,5:VOOQO,5;^,5;^O$=sQpO'#IcO$>ZQ`O,5@_OOQ!0Lf1G/p1G/pO$>cQpO'#IiO$>mQ`O,5@nOOQ!0Lb1G0w1G0wO##hQpO,5:VOOQO'#Ie'#IeO$>uQpO,5:oOOQ!0Ln,5:o,5:oO#'cQ`O1G0XOOQ!0Lf1G0X1G0XO%[QlO1G0XOOQ!0Lf1G0r1G0rO>wQ`O1G0rO!BeQpO1G0rO!BmQMhO1G0rOOQ!0Lb1G5z1G5zO!BYQ!0LrO1G0[OOQO1G0k1G0kO%[QlO1G0kO$>|Q!0LrO1G0kO$?XQ!0LrO1G0kO!BeQpO1G0[OCuQpO1G0[O$?gQ!0LrO1G0kOOQO1G0[1G0[O$?{Q!0MxO1G0kPOOO-E|O$@iQ`O1G5xO$@qQ`O1G6WO$@yQ!fO1G6XO9ZQ`O,5?SO$ATQ!0MxO1G6UO%[QlO1G6UO$AeQ!0LrO1G6UO$AvQ`O1G6TO$AvQ`O1G6TO9ZQ`O1G6TO$BOQ`O,5?VO9ZQ`O,5?VOOQO,5?V,5?VO$BdQ`O,5?VO$)iQ`O,5?VOOQO-E^OOQ[,5>^,5>^O%[QlO'#HsO%=zQ`O'#HuOOQ[,5>d,5>dO9ZQ`O,5>dOOQ[,5>f,5>fOOQ[7+)h7+)hOOQ[7+)n7+)nOOQ[7+)r7+)rOOQ[7+)t7+)tO%>PQpO1G5zO%>kQ?MtO1G0xO%>uQ`O1G0xOOQO1G/q1G/qO%?QQ?MtO1G/qO>wQ`O1G/qO!(yQlO'#DkOOQO,5>},5>}OOQO-EwQ`O7+&^O!BeQpO7+&^OOQO7+%v7+%vO$?{Q!0MxO7+&VOOQO7+&V7+&VO%[QlO7+&VO%?[Q!0LrO7+&VO!BYQ!0LrO7+%vO!BeQpO7+%vO%?gQ!0LrO7+&VO%?uQ!0MxO7++pO%[QlO7++pO%@VQ`O7++oO%@VQ`O7++oOOQO1G4q1G4qO9ZQ`O1G4qO%@_Q`O1G4qOOQS7+%{7+%{O#'cQ`O<_OOQ[,5>a,5>aO&=aQ`O1G4OO9ZQ`O7+&dO!(yQlO7+&dOOQO7+%]7+%]O&=fQ?MtO1G6XO>wQ`O7+%]OOQ!0Lf<wQ`O<]Q`O<= ZOOQO7+*]7+*]O9ZQ`O7+*]OOQ[ANAjANAjO&>eQ!fOANAjO!&iQMhOANAjO#'cQ`OANAjO4UQ!fOANAjO&>lQ`OANAjO%[QlOANAjO&>tQ!0MzO7+'yO&AVQ!0MzO,5?_O&CbQ!0MzO,5?aO&EmQ!0MzO7+'{O&HOQ!fO1G4jO&HYQ?MtO7+&_O&J^Q?MvO,5=WO&LeQ?MvO,5=YO&LuQ?MvO,5=WO&MVQ?MvO,5=YO&MgQ?MvO,59sO' mQ?MvO,5wQ`O7+)jO'-]Q`O<|AN>|O%[QlOAN?]OOQO<PPPP!>XHwPPPPPPPPPP!AhP!BuPPHw!DWPHwPHwHwHwHwHwPHw!EjP!HtP!KzP!LO!LY!L^!L^P!HqP!Lb!LbP# hP# lHwPHw# r#$wCV@yP@yP@y@yP#&U@y@y#(h@y#+`@y#-l@y@y#.[#0p#0p#0u#1O#0p#1ZPP#0pP@y#1s@y#5r@y@y6aPPP#9wPPP#:b#:bP#:bP#:x#:bPP#;OP#:uP#:u#;c#:u#;}#R#>X#>c#>i#>s#>y#?Z#?a#@R#@e#@k#@q#AP#Af#CZ#Ci#Cp#E[#Ej#G[#Gj#Gp#Gv#G|#HW#H^#Hd#Hn#IQ#IWPPPPPPPPPPP#I^PPPPPPP#JR#MY#Nr#Ny$ RPPP$&mP$&v$)o$0Y$0]$0`$1_$1b$1i$1qP$1w$1zP$2h$2l$3d$4r$4w$5_PP$5d$5j$5n$5q$5u$5y$6u$7^$7u$7y$7|$8P$8V$8Y$8^$8bR!|RoqOXst!Z#d%l&p&r&s&u,n,s2S2VY!vQ'^-`1g5qQ%svQ%{yQ&S|Q&h!VS'U!e-WQ'd!iS'j!r!yU*h$|*X*lQ+l%|Q+y&UQ,_&bQ-^']Q-h'eQ-p'kQ0U*nQ1q,`R < TypeParamList const TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewTarget new NewExpression ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression TypeArgList CompareOp < declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression InstantiationExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast < ArrowFunction TypeParamList SequenceExpression InstantiationExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate asserts is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:378,context:M0,nodeProps:[["isolate",-8,5,6,14,35,37,49,51,53,""],["group",-26,9,17,19,66,206,210,214,215,217,220,223,233,235,241,243,245,247,250,256,262,264,266,268,270,272,273,"Statement",-34,13,14,30,33,34,40,49,52,53,55,60,68,70,74,78,80,82,83,108,109,118,119,135,138,140,141,142,143,144,146,147,166,168,170,"Expression",-23,29,31,35,39,41,43,172,174,176,177,179,180,181,183,184,185,187,188,189,200,202,204,205,"Type",-3,86,101,107,"ClassItem"],["openedBy",23,"<",36,"InterpolationStart",54,"[",58,"{",71,"(",159,"JSXStartCloseTag"],["closedBy",-2,24,167,">",38,"InterpolationEnd",48,"]",59,"}",72,")",164,"JSXEndTag"]],propSources:[I0],skippedNodes:[0,5,6,276],repeatNodeCount:37,tokenData:"$Fq07[R!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#:O!R![#<_![!]#I_!]!^#Jk!^!_#Ku!_!`$![!`!a$$v!a!b$*T!b!c$,r!c!}Er!}#O$-|#O#P$/W#P#Q$4o#Q#R$5y#R#SEr#S#T$7W#T#o$8b#o#p$x#r#s$@U#s$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$I|Er$I|$I}$Dk$I}$JO$Dk$JO$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr(n%d_$h&j(Up(X!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$h&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$h&j(X!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU(X!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$h&j(UpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rp)wU(UpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX(Up(X!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z07[+rq$h&j(Up(X!b'z0/lOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;'S%Z;'S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z07[.ST(V#S$h&j'{0/lO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c07[.n_$h&j(Up(X!b'{0/lOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)3p/x`$h&j!n),Q(Up(X!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW1V`#u(Ch$h&j(Up(X!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW2d_#u(Ch$h&j(Up(X!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'At3l_(T':f$h&j(X!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k(^4r_$h&j(X!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k&z5vX$h&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q&z6jT$c`$h&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c`6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y`7bO$c``7eP;=`<%l6y&z7kP;=`<%l5q(^7w]$c`$h&j(X!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!r8uZ(X!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p!r9oU$c`(X!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!r:UP;=`<%l8p(^:[P;=`<%l4k%9[:hh$h&j(Up(X!bOY%ZYZ&cZq%Zqr`#P#o`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXWS$h&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSWSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWWS(X!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]WS$h&j(UpOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWWS(UpOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYWS(Up(X!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%l^!Q^$h&j!V7`OY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@c!_!}!=y!}#O!CW#O#P!Dy#P#o!=y#o#p!@c#p;'S!=y;'S;=`!Ek<%lO!=y|#X#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#k!>|#k#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&c7`!@hX!V7`OY!@cZ!P!@c!P!Q!AT!Q!}!@c!}#O!Ar#O#P!Bq#P;'S!@c;'S;=`!CQ<%lO!@c7`!AYW!V7`#W#X!AT#Z#[!AT#]#^!AT#a#b!AT#g#h!AT#i#j!AT#j#k!AT#m#n!AT7`!AuVOY!ArZ#O!Ar#O#P!B[#P#Q!@c#Q;'S!Ar;'S;=`!Bk<%lO!Ar7`!B_SOY!ArZ;'S!Ar;'S;=`!Bk<%lO!Ar7`!BnP;=`<%l!Ar7`!BtSOY!@cZ;'S!@c;'S;=`!CQ<%lO!@c7`!CTP;=`<%l!@c^!Ezl$h&j(X!b!V7`OY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#W&}#W#X!Eq#X#Z&}#Z#[!Eq#[#]&}#]#^!Eq#^#a&}#a#b!Eq#b#g&}#g#h!Eq#h#i&}#i#j!Eq#j#k!Eq#k#m&}#m#n!Eq#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}8r!GyZ(X!b!V7`OY!GrZw!Grwx!@cx!P!Gr!P!Q!Hl!Q!}!Gr!}#O!JU#O#P!Bq#P;'S!Gr;'S;=`!J|<%lO!Gr8r!Hse(X!b!V7`OY'}Zw'}x#O'}#P#W'}#W#X!Hl#X#Z'}#Z#[!Hl#[#]'}#]#^!Hl#^#a'}#a#b!Hl#b#g'}#g#h!Hl#h#i'}#i#j!Hl#j#k!Hl#k#m'}#m#n!Hl#n;'S'};'S;=`(f<%lO'}8r!JZX(X!bOY!JUZw!JUwx!Arx#O!JU#O#P!B[#P#Q!Gr#Q;'S!JU;'S;=`!Jv<%lO!JU8r!JyP;=`<%l!JU8r!KPP;=`<%l!Gr>^!KZ^$h&j(X!bOY!KSYZ&cZw!KSwx!CWx!^!KS!^!_!JU!_#O!KS#O#P!DR#P#Q!^!LYP;=`<%l!KS>^!L`P;=`<%l!_#c#d#Bq#d#l%Z#l#m#Es#m#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#>j_$h&j(Up(X!bq'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#?rd$h&j(Up(X!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#A]f$h&j(Up(X!bq'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Bzc$h&j(Up(X!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Dbe$h&j(Up(X!bq'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#E|g$h&j(Up(X!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Gpi$h&j(Up(X!bq'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z*)x#Il_!e$b$h&j#})Lv(Up(X!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)[#Jv_al$h&j(Up(X!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z04f#LS^h#)`#P-v$?V_![(CdtBr$h&j(Up(X!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z?O$@a_!o7`$h&j(Up(X!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[$Aq|$h&j(Up(X!b'z0/l$[#t(R,2j(c$I[OX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr07[$D|k$h&j(Up(X!b'{0/l$[#t(R,2j(c$I[OY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr",tokenizers:[L0,X0,D0,j0,2,3,4,5,6,7,8,9,10,11,12,13,14,E0,new Kr("$S~RRtu[#O#Pg#S#T#|~_P#o#pb~gOv~~jVO#i!P#i#j!U#j#l!P#l#m!q#m;'S!P;'S;=`#v<%lO!P~!UO!S~~!XS!Q![!e!c!i!e#T#Z!e#o#p#Z~!hR!Q![!q!c!i!q#T#Z!q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO(a~~",141,338),new Kr("j~RQYZXz{^~^O(O~~aP!P!Qd~iO(P~~",25,321)],topRules:{Script:[0,7],SingleExpression:[1,274],SingleClassItem:[2,275]},dialects:{jsx:0,ts:15091},dynamicPrecedences:{78:1,80:1,92:1,168:1,198:1},specialized:[{term:325,get:s=>V0[s]||-1},{term:341,get:s=>B0[s]||-1},{term:93,get:s=>N0[s]||-1}],tokenPrec:15116});function gl(s){let e=Object.keys(s).join(""),t=/\w/.test(e);return t&&(e=e.replace(/\w/g,"")),`[${t?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function q0(s){let e=Object.create(null),t=Object.create(null);for(let{label:n}of s){e[n[0]]=!0;for(let r=1;rtypeof n=="string"?{label:n}:n),[t,i]=e.every(n=>/^\w+$/.test(n.label))?[/\w*$/,/\w+$/]:q0(e);return n=>{let r=n.matchBefore(i);return r||n.explicit?{from:r?r.from:n.pos,options:e,validFor:t}:null}}function W0(s,e){return t=>{for(let i=Ue(t.state).resolveInner(t.pos,-1);i;i=i.parent){if(s.indexOf(i.name)>-1)return null;if(i.type.isTop)break}return e(t)}}const G0=ni.define(),Y0=z.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box",whiteSpace:"pre-line"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class F0{constructor(e,t,i,n){this.field=e,this.line=t,this.from=i,this.to=n}}class $o{constructor(e,t,i){this.field=e,this.from=t,this.to=i}map(e){let t=e.mapPos(this.from,-1,Ae.TrackDel),i=e.mapPos(this.to,1,Ae.TrackDel);return t==null||i==null?null:new $o(this.field,t,i)}}class To{constructor(e,t){this.lines=e,this.fieldPositions=t}instantiate(e,t){let i=[],n=[t],r=e.doc.lineAt(t),o=/^\s*/.exec(r.text)[0];for(let l of this.lines){if(i.length){let h=o,c=/^\t*/.exec(l)[0].length;for(let u=0;unew $o(l.field,n[l.line]+l.from,n[l.line]+l.to));return{text:i,ranges:a}}static parse(e){let t=[],i=[],n=[],r;for(let o of e.split(/\r\n?|\n/)){for(;r=/[#$]\{(?:(\d+)(?::([^}]*))?|((?:\\[{}]|[^}])*))\}/.exec(o);){let a=r[1]?+r[1]:null,l=r[2]||r[3]||"",h=-1,c=l.replace(/\\[{}]/g,u=>u[1]);for(let u=0;u=h&&f.field++}n.push(new F0(h,i.length,r.index,r.index+c.length)),o=o.slice(0,r.index)+l+o.slice(r.index+r[0].length)}o=o.replace(/\\([{}])/g,(a,l,h)=>{for(let c of n)c.line==i.length&&c.from>h&&(c.from--,c.to--);return l}),i.push(o)}return new To(i,n)}}let H0=pe.widget({widget:new class extends xs{toDOM(){let s=document.createElement("span");return s.className="cm-snippetFieldPosition",s}ignoreEvent(){return!1}}}),K0=pe.mark({class:"cm-snippetField"});class _i{constructor(e,t){this.ranges=e,this.active=t,this.deco=pe.set(e.map(i=>(i.from==i.to?H0:K0).range(i.from,i.to)))}map(e){let t=[];for(let i of this.ranges){let n=i.map(e);if(!n)return null;t.push(n)}return new _i(t,this.active)}selectionInsideField(e){return e.ranges.every(t=>this.ranges.some(i=>i.field==this.active&&i.from<=t.from&&i.to>=t.to))}}const gn=ce.define({map(s,e){return s&&s.map(e)}}),J0=ce.define(),hn=jt.define({create(){return null},update(s,e){for(let t of e.effects){if(t.is(gn))return t.value;if(t.is(J0)&&s)return new _i(s.ranges,t.value)}return s&&e.docChanged&&(s=s.map(e.changes)),s&&e.selection&&!s.selectionInsideField(e.selection)&&(s=null),s},provide:s=>z.decorations.from(s,e=>e?e.deco:pe.none)});function _o(s,e){return _.create(s.filter(t=>t.field==e).map(t=>_.range(t.from,t.to)))}function ey(s){let e=To.parse(s);return(t,i,n,r)=>{let{text:o,ranges:a}=e.instantiate(t.state,n),{main:l}=t.state.selection,h={changes:{from:n,to:r==l.from?l.to:r,insert:K.of(o)},scrollIntoView:!0,annotations:i?[G0.of(i),ke.userEvent.of("input.complete")]:void 0};if(a.length&&(h.selection=_o(a,0)),a.some(c=>c.field>0)){let c=new _i(a,0),u=h.effects=[gn.of(c)];t.state.field(hn,!1)===void 0&&u.push(ce.appendConfig.of([hn,ry,oy,Y0]))}t.dispatch(t.state.update(h))}}function Nc(s){return({state:e,dispatch:t})=>{let i=e.field(hn,!1);if(!i||s<0&&i.active==0)return!1;let n=i.active+s,r=s>0&&!i.ranges.some(o=>o.field==n+s);return t(e.update({selection:_o(i.ranges,n),effects:gn.of(r?null:new _i(i.ranges,n)),scrollIntoView:!0})),!0}}const ty=({state:s,dispatch:e})=>s.field(hn,!1)?(e(s.update({effects:gn.of(null)})),!0):!1,iy=Nc(1),ny=Nc(-1),sy=[{key:"Tab",run:iy,shift:ny},{key:"Escape",run:ty}],yl=I.define({combine(s){return s.length?s[0]:sy}}),ry=ms.highest(go.compute([yl],s=>s.facet(yl)));function Ee(s,e){return Object.assign(Object.assign({},e),{apply:ey(s)})}const oy=z.domEventHandlers({mousedown(s,e){let t=e.state.field(hn,!1),i;if(!t||(i=e.posAtCoords({x:s.clientX,y:s.clientY}))==null)return!1;let n=t.ranges.find(r=>r.from<=i&&r.to>=i);return!n||n.field==t.active?!1:(e.dispatch({selection:_o(t.ranges,n.field),effects:gn.of(t.ranges.some(r=>r.field>n.field)?new _i(t.ranges,n.field):null),scrollIntoView:!0}),!0)}}),Uc=new class extends Kt{};Uc.startSide=1;Uc.endSide=-1;const qc=[Ee("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),Ee("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),Ee("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),Ee("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),Ee("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),Ee(`try { + \${} +} catch (\${error}) { + \${} +}`,{label:"try",detail:"/ catch block",type:"keyword"}),Ee("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),Ee(`if (\${}) { + \${} +} else { + \${} +}`,{label:"if",detail:"/ else block",type:"keyword"}),Ee(`class \${name} { + constructor(\${params}) { + \${} + } +}`,{label:"class",detail:"definition",type:"keyword"}),Ee('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),Ee('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],ay=qc.concat([Ee("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),Ee("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),Ee("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),bl=new Qm,zc=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function Xi(s){return(e,t)=>{let i=e.node.getChild("VariableDefinition");return i&&t(i,s),!0}}const ly=["FunctionDeclaration"],hy={FunctionDeclaration:Xi("function"),ClassDeclaration:Xi("class"),ClassExpression:()=>!0,EnumDeclaration:Xi("constant"),TypeAliasDeclaration:Xi("type"),NamespaceDeclaration:Xi("namespace"),VariableDefinition(s,e){s.matchContext(ly)||e(s,"variable")},TypeDefinition(s,e){e(s,"type")},__proto__:null};function Wc(s,e){let t=bl.get(e);if(t)return t;let i=[],n=!0;function r(o,a){let l=s.sliceString(o.from,o.to);i.push({label:l,type:a})}return e.cursor(ye.IncludeAnonymous).iterate(o=>{if(n)n=!1;else if(o.name){let a=hy[o.name];if(a&&a(o,r)||zc.has(o.name))return!1}else if(o.to-o.from>8192){for(let a of Wc(s,o.node))i.push(a);return!1}}),bl.set(e,i),i}const Sl=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,Gc=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function cy(s){let e=Ue(s.state).resolveInner(s.pos,-1);if(Gc.indexOf(e.name)>-1)return null;let t=e.name=="VariableName"||e.to-e.from<20&&Sl.test(s.state.sliceDoc(e.from,e.to));if(!t&&!s.explicit)return null;let i=[];for(let n=e;n;n=n.parent)zc.has(n.name)&&(i=i.concat(Wc(s.state.doc,n)));return{options:i,from:t?e.from:s.pos,validFor:Sl}}const Ft=hs.define({name:"javascript",parser:U0.configure({props:[fc.add({IfStatement:Hs({except:/^\s*({|else\b)/}),TryStatement:Hs({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:Um,SwitchBody:s=>{let e=s.textAfter,t=/^\s*\}/.test(e),i=/^\s*(case|default)\b/.test(e);return s.baseIndent+(t?0:i?1:2)*s.unit},Block:Nm({closing:"}"}),ArrowFunction:s=>s.baseIndent+s.unit,"TemplateString BlockComment":()=>null,"Statement Property":Hs({except:/^{/}),JSXElement(s){let e=/^\s*<\//.test(s.textAfter);return s.lineIndent(s.node.from)+(e?0:s.unit)},JSXEscape(s){let e=/\s*\}/.test(s.textAfter);return s.lineIndent(s.node.from)+(e?0:s.unit)},"JSXOpenTag JSXSelfClosingTag"(s){return s.column(s.node.from)+s.unit}}),qm.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":zm,BlockComment(s){return{from:s.from+2,to:s.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),Yc={test:s=>/^JSX/.test(s.name),facet:hc({commentTokens:{block:{open:"{/*",close:"*/}"}}})},uy=Ft.configure({dialect:"ts"},"typescript"),fy=Ft.configure({dialect:"jsx",props:[wo.add(s=>s.isTop?[Yc]:void 0)]}),dy=Ft.configure({dialect:"jsx ts",props:[wo.add(s=>s.isTop?[Yc]:void 0)]},"typescript");let Fc=s=>({label:s,type:"keyword"});const Hc="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(Fc),py=Hc.concat(["declare","implements","private","protected","public"].map(Fc));function Oy(s={}){let e=s.jsx?s.typescript?dy:fy:s.typescript?uy:Ft,t=s.typescript?ay.concat(py):qc.concat(Hc);return new Em(e,[Ft.data.of({autocomplete:W0(Gc,z0(t))}),Ft.data.of({autocomplete:cy}),s.jsx?yy:[]])}function my(s){for(;;){if(s.name=="JSXOpenTag"||s.name=="JSXSelfClosingTag"||s.name=="JSXFragmentTag")return s;if(s.name=="JSXEscape"||!s.parent)return null;s=s.parent}}function xl(s,e,t=s.length){for(let i=e==null?void 0:e.firstChild;i;i=i.nextSibling)if(i.name=="JSXIdentifier"||i.name=="JSXBuiltin"||i.name=="JSXNamespacedName"||i.name=="JSXMemberExpression")return s.sliceString(i.from,Math.min(i.to,t));return""}const gy=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),yy=z.inputHandler.of((s,e,t,i,n)=>{if((gy?s.composing:s.compositionStarted)||s.state.readOnly||e!=t||i!=">"&&i!="/"||!Ft.isActiveAt(s.state,e,-1))return!1;let r=n(),{state:o}=r,a=o.changeByRange(l=>{var h;let{head:c}=l,u=Ue(o).resolveInner(c-1,-1),f;if(u.name=="JSXStartTag"&&(u=u.parent),!(o.doc.sliceString(c-1,c)!=i||u.name=="JSXAttributeValue"&&u.to>c)){if(i==">"&&u.name=="JSXFragmentTag")return{range:l,changes:{from:c,insert:""}};if(i=="/"&&u.name=="JSXStartCloseTag"){let d=u.parent,p=d.parent;if(p&&d.from==c-2&&((f=xl(o.doc,p.firstChild,c))||((h=p.firstChild)===null||h===void 0?void 0:h.name)=="JSXFragmentTag")){let O=`${f}>`;return{range:_.cursor(c+O.length,-1),changes:{from:c,insert:O}}}}else if(i==">"){let d=my(u);if(d&&d.name=="JSXOpenTag"&&!/^\/?>|^<\//.test(o.doc.sliceString(c,c+2))&&(f=xl(o.doc,d,c)))return{range:l,changes:{from:c,insert:``}}}}return{range:l}});return a.changes.empty?!1:(s.dispatch([r,o.update(a,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),by="#e5c07b",wl="#e06c75",Sy="#56b6c2",xy="#ffffff",Yn="#abb2bf",to="#7d8799",wy="#61afef",Qy="#98c379",Ql="#d19a66",ky="#c678dd",Py="#21252b",kl="#2c313a",Pl="#282c34",nr="#353a42",vy="#3E4451",vl="#528bff",$y=z.theme({"&":{color:Yn,backgroundColor:Pl},".cm-content":{caretColor:vl},".cm-cursor, .cm-dropCursor":{borderLeftColor:vl},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:vy},".cm-panels":{backgroundColor:Py,color:Yn},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:Pl,color:to,border:"none"},".cm-activeLineGutter":{backgroundColor:kl},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:nr},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:nr,borderBottomColor:nr},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:kl,color:Yn}}},{dark:!0}),Kc=pn.define([{tag:b.keyword,color:ky},{tag:[b.name,b.deleted,b.character,b.propertyName,b.macroName],color:wl},{tag:[b.function(b.variableName),b.labelName],color:wy},{tag:[b.color,b.constant(b.name),b.standard(b.name)],color:Ql},{tag:[b.definition(b.name),b.separator],color:Yn},{tag:[b.typeName,b.className,b.number,b.changed,b.annotation,b.modifier,b.self,b.namespace],color:by},{tag:[b.operator,b.operatorKeyword,b.url,b.escape,b.regexp,b.link,b.special(b.string)],color:Sy},{tag:[b.meta,b.comment],color:to},{tag:b.strong,fontWeight:"bold"},{tag:b.emphasis,fontStyle:"italic"},{tag:b.strikethrough,textDecoration:"line-through"},{tag:b.link,color:to,textDecoration:"underline"},{tag:b.heading,fontWeight:"bold",color:wl},{tag:[b.atom,b.bool,b.special(b.variableName)],color:Ql},{tag:[b.processingInstruction,b.string,b.inserted],color:Qy},{tag:b.invalid,color:xy}]),Ty=[$y,Oc(Kc)],_y={class:"serial-script"},Ay={class:"script-select"},Zy={class:"script-editor"},Ry={class:"script-name-container"},Cy=pt({__name:"SerialScript",setup(s){const e=Kn.getInstance(),t=ie(e.getScripts()),i=ie(e.getCurrentScript()),n=ie(i.value.id),r=ie(null),o=un(),a=p=>{r.value&&r.value.dispatch({changes:{from:0,to:r.value.state.doc.length,insert:p}})},l=p=>{e.setCurrentScript(p),i.value=p,a(p.code),n.value=i.value.id},h=()=>{const p=e.addScript();t.value=e.getScripts(),l(p)},c=p=>{e.removeScript(p),t.value=e.getScripts(),t.value.length==0&&h(),l(t.value[0])},u=async()=>{i.value.isRunning?await e.stopScript():await e.runScript()},f=()=>{const p=t.value.find(O=>O.id===n.value);p&&l(p)},d=()=>{const p=document.getElementById("script-editor-container");if(p){const O=ee.create({doc:i.value.code,extensions:[go.of(s0),Oc(o.value?Kc:Fm),Oy(),o.value?Ty:[],mm(),z.updateListener.of(m=>{m.docChanged&&(i.value.code=m.state.doc.toString())})]});r.value=new z({state:O,parent:p})}};return $i(()=>{d()}),yi(o,()=>{r.value&&(r.value.destroy(),d())}),yi(t,()=>{e.saveScripts()},{deep:!0}),(p,O)=>{const m=R("el-option"),g=R("el-select"),k=R("Plus"),P=R("el-icon"),y=R("el-button"),Q=R("el-button-group"),S=R("el-input"),w=R("Compass"),A=R("el-tooltip");return q(),he("div",_y,[E("div",Ay,[x(g,{size:"small",modelValue:n.value,"onUpdate:modelValue":O[0]||(O[0]=$=>n.value=$),onChange:f,placeholder:"选择脚本"},{default:v(()=>[(q(!0),he(Le,null,Xe(t.value,$=>(q(),ue(m,{key:$.id,label:$.name,value:$.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),x(Q,{class:"ms-2",style:{width:"250px"}},{default:v(()=>[x(y,{size:"small",onClick:h},{default:v(()=>[x(P,null,{default:v(()=>[x(k)]),_:1}),O[4]||(O[4]=J(" 新建 "))]),_:1}),x(y,{size:"small",type:"danger",onClick:O[1]||(O[1]=$=>c(i.value.id))},{default:v(()=>O[5]||(O[5]=[J("删除")])),_:1})]),_:1})]),E("div",Zy,[E("div",Ry,[x(S,{size:"small",modelValue:i.value.name,"onUpdate:modelValue":O[2]||(O[2]=$=>i.value.name=$),placeholder:"脚本名称",class:"script-name-input"},null,8,["modelValue"]),x(y,{type:i.value.isRunning?"success":"primary",size:"small",onClick:O[3]||(O[3]=$=>u()),class:"run-button"},{default:v(()=>[J(_e(i.value.isRunning?"停止":"运行"),1)]),_:1},8,["type"]),x(A,{effect:"dark",placement:"bottom"},{content:v(()=>O[6]||(O[6]=[E("p",null,"可用的API:",-1),E("ul",null,[E("li",null,"sendText(text) - 发送文本数据"),E("li",null,"sendHex(hex) - 发送HEX格式数据"),E("li",null,"sleep(ms) - 延时指定毫秒数"),E("li",null,"updateDataTable({pitch: 1.0, roll: 1.0, yaw: 1.0}); 更新IMU数据")],-1)])),default:v(()=>[x(y,{size:"small",style:{"margin-left":"0"}},{default:v(()=>[x(P,null,{default:v(()=>[x(w)]),_:1})]),_:1})]),_:1})]),O[7]||(O[7]=E("div",{id:"script-editor-container",class:"editor-container"},null,-1))])])}}}),My=mt(Cy,[["__scopeId","data-v-27c7c557"]]),Ey={class:"header-content"},Ly={class:"header-left"},Xy={class:"header-links"},Dy=pt({__name:"App",setup(s){const t=Ht.getInstance().useConfig("layout"),i=un({initialValue:"dark",storage:localStorage}),n=tu(i),r=ie(!1),o=()=>{document.fullscreenElement?(document.exitFullscreen(),r.value=!1):(document.documentElement.requestFullscreen(),r.value=!0)},a=u=>{t.value.splitPaneSize=u[0].size,c()},l=()=>{c()};let h;const c=()=>{clearTimeout(h),h=setTimeout(()=>{window.dispatchEvent(new CustomEvent("resize",{}))},100)};return c(),(u,f)=>{const d=R("el-button"),p=R("el-header"),O=R("el-tab-pane"),m=R("el-tabs"),g=R("el-container");return q(),ue(g,{class:"app-container"},{default:v(()=>[x(p,{class:"app-header"},{default:v(()=>[E("div",Ey,[E("div",Ly,[f[4]||(f[4]=E("h1",null,[E("a",{href:"https://github.com/qdsang/web-serial-debug",target:"_blank"},"Web Serial")],-1)),x(tf,{class:"header-serial-config"})]),E("div",Xy,[x(d,{class:"theme-toggle",icon:M(i)?"Sunny":"Moon",circle:"",onClick:f[0]||(f[0]=k=>M(n)())},null,8,["icon"]),x(d,{class:"fullscreen-toggle",icon:"FullScreen",circle:"",onClick:f[1]||(f[1]=k=>o())})])])]),_:1}),x(g,{class:"main-container"},{default:v(()=>[x(M(su),{class:"default-theme",onResize:a},{default:v(()=>[x(M(Ao),{size:M(t).splitPaneSize,class:"w75"},{default:v(()=>[x(m,{type:"card",class:"lv-card lv-tabs",modelValue:M(t).leftActiveTab,"onUpdate:modelValue":f[2]||(f[2]=k=>M(t).leftActiveTab=k),onTabClick:l},{default:v(()=>[x(O,{label:"日志",lazy:""},{default:v(()=>[x(yf)]),_:1}),x(O,{label:"可视化",lazy:""},{default:v(()=>[x(Ed)]),_:1}),x(O,{label:"姿态",lazy:""},{default:v(()=>[x(vd)]),_:1}),x(O,{label:"数据表"},{default:v(()=>[x(Vd)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["size"]),x(M(Ao),{class:"w25"},{default:v(()=>[x(m,{type:"card",class:"lv-card lv-tabs",modelValue:M(t).rightActiveTab,"onUpdate:modelValue":f[3]||(f[3]=k=>M(t).rightActiveTab=k)},{default:v(()=>[x(O,{label:"快捷发送"},{default:v(()=>[x(ep)]),_:1}),x(O,{label:"脚本"},{default:v(()=>[x(My)]),_:1}),x(O,{label:"设置"})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1})}}}),jy=mt(Dy,[["__scopeId","data-v-df95f1d4"]]),Ts=iu(jy),Iy=nu();for(const[s,e]of Object.entries(ru))Ts.component(s,e);Ts.use(Iy);Ts.use(ou);Ts.mount("#app");"serviceWorker"in navigator&&window.addEventListener("load",()=>{navigator.serviceWorker.register("./sw.js").then(s=>{console.log("ServiceWorker registration successful")}).catch(s=>{console.error("ServiceWorker registration failed:",s)})}); diff --git a/assets/index-dk1x7_5a.js b/assets/index-dk1x7_5a.js deleted file mode 100644 index 9d97a94..0000000 --- a/assets/index-dk1x7_5a.js +++ /dev/null @@ -1,3901 +0,0 @@ -var D_=Object.defineProperty;var I_=(s,e,t)=>e in s?D_(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var Kt=(s,e,t)=>I_(s,typeof e!="symbol"?e+"":e,t);import{ao as Mg,r as at,an as wg,i as U_,ax as N_,X as Q_,l as Vo,ay as Tg,ab as B_,e as F_,o as $_,w as Xs,n as V_,ad as z_,c as Tl,x as Wi,j as ia,S as ql,ag as Me,y as Dt,z as tt,A as Ae,G as kn,P as G,H as te,O as Ii,a6 as Ui,L as Et,M as fn,u as Ie,at as Z_}from"./vendor-Bqkqt8ok.js";import{E as vt,u as Yl,d as dd,a as G_,M as X_,g as pd,b as H_,i as W_}from"./utils-BiyqmwP6.js";import{r as j_,a as q_,b as Y_}from"./xterm-ks5DzpfX.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const r of i)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function t(i){const r={};return i.integrity&&(r.integrity=i.integrity),i.referrerPolicy&&(r.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?r.credentials="include":i.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function n(i){if(i.ep)return;i.ep=!0;const r=t(i);fetch(i.href,r)}})();/*! - * pinia v2.3.1 - * (c) 2025 Eduardo San Martin Morote - * @license MIT - */let Eg;const Kl=s=>Eg=s,Ag=Symbol();function Th(s){return s&&typeof s=="object"&&Object.prototype.toString.call(s)==="[object Object]"&&typeof s.toJSON!="function"}var ko;(function(s){s.direct="direct",s.patchObject="patch object",s.patchFunction="patch function"})(ko||(ko={}));function K_(){const s=Mg(!0),e=s.run(()=>at({}));let t=[],n=[];const i=wg({install(r){Kl(i),i._a=r,r.provide(Ag,i),r.config.globalProperties.$pinia=i,n.forEach(o=>t.push(o)),n=[]},use(r){return this._a?t.push(r):n.push(r),this},_p:t,_a:null,_e:s,_s:new Map,state:e});return i}const Pg=()=>{};function md(s,e,t,n=Pg){s.push(e);const i=()=>{const r=s.indexOf(e);r>-1&&(s.splice(r,1),n())};return!t&&F_()&&$_(i),i}function rr(s,...e){s.slice().forEach(t=>{t(...e)})}const J_=s=>s(),gd=Symbol(),_c=Symbol();function Eh(s,e){s instanceof Map&&e instanceof Map?e.forEach((t,n)=>s.set(n,t)):s instanceof Set&&e instanceof Set&&e.forEach(s.add,s);for(const t in e){if(!e.hasOwnProperty(t))continue;const n=e[t],i=s[t];Th(i)&&Th(n)&&s.hasOwnProperty(t)&&!Vo(n)&&!Tg(n)?s[t]=Eh(i,n):s[t]=n}return s}const ex=Symbol();function tx(s){return!Th(s)||!s.hasOwnProperty(ex)}const{assign:ss}=Object;function nx(s){return!!(Vo(s)&&s.effect)}function ix(s,e,t,n){const{state:i,actions:r,getters:o}=e,a=t.state.value[s];let l;function c(){a||(t.state.value[s]=i?i():{});const h=z_(t.state.value[s]);return ss(h,r,Object.keys(o||{}).reduce((u,f)=>(u[f]=wg(Tl(()=>{Kl(t);const d=t._s.get(s);return o[f].call(d,d)})),u),{}))}return l=Rg(s,c,e,t,n,!0),l}function Rg(s,e,t={},n,i,r){let o;const a=ss({actions:{}},t),l={deep:!0};let c,h,u=[],f=[],d;const p=n.state.value[s];!r&&!p&&(n.state.value[s]={}),at({});let O;function g(P){let y;c=h=!1,typeof P=="function"?(P(n.state.value[s]),y={type:ko.patchFunction,storeId:s,events:d}):(Eh(n.state.value[s],P),y={type:ko.patchObject,payload:P,storeId:s,events:d});const S=O=Symbol();V_().then(()=>{O===S&&(c=!0)}),h=!0,rr(u,y,n.state.value[s])}const m=r?function(){const{state:y}=t,S=y?y():{};this.$patch(R=>{ss(R,S)})}:Pg;function b(){o.stop(),u=[],f=[],n._s.delete(s)}const x=(P,y="")=>{if(gd in P)return P[_c]=y,P;const S=function(){Kl(n);const R=Array.from(arguments),k=[],I=[];function $(z){k.push(z)}function H(z){I.push(z)}rr(f,{args:R,name:S[_c],store:w,after:$,onError:H});let L;try{L=P.apply(this&&this.$id===s?this:w,R)}catch(z){throw rr(I,z),z}return L instanceof Promise?L.then(z=>(rr(k,z),z)).catch(z=>(rr(I,z),Promise.reject(z))):(rr(k,L),L)};return S[gd]=!0,S[_c]=y,S},_={_p:n,$id:s,$onAction:md.bind(null,f),$patch:g,$reset:m,$subscribe(P,y={}){const S=md(u,P,y.detached,()=>R()),R=o.run(()=>Xs(()=>n.state.value[s],k=>{(y.flush==="sync"?h:c)&&P({storeId:s,type:ko.direct,events:d},k)},ss({},l,y)));return S},$dispose:b},w=Q_(_);n._s.set(s,w);const E=(n._a&&n._a.runWithContext||J_)(()=>n._e.run(()=>(o=Mg()).run(()=>e({action:x}))));for(const P in E){const y=E[P];if(Vo(y)&&!nx(y)||Tg(y))r||(p&&tx(y)&&(Vo(y)?y.value=p[P]:Eh(y,p[P])),n.state.value[s][P]=y);else if(typeof y=="function"){const S=x(y,P);E[P]=S,a.actions[P]=y}}return ss(w,E),ss(B_(w),E),Object.defineProperty(w,"$state",{get:()=>n.state.value[s],set:P=>{g(y=>{ss(y,P)})}}),n._p.forEach(P=>{ss(w,o.run(()=>P({store:w,app:n._a,pinia:n,options:a})))}),p&&r&&t.hydrate&&t.hydrate(w.$state,p),c=!0,h=!0,w}/*! #__NO_SIDE_EFFECTS__ */function sx(s,e,t){let n,i;const r=typeof e=="function";n=s,i=r?t:e;function o(a,l){const c=N_();return a=a||(c?U_(Ag,null):null),a&&Kl(a),a=Eg,a._s.has(n)||(r?Rg(n,e,i,a):ix(n,i,a)),a._s.get(n)}return o.$id=n,o}const ma={serial:{baudRate:115200,dataBits:8,stopBits:1,parity:"none",flowControl:"none"},display:{showTime:!0,showMs:!1,showHex:!0,showText:!0,showNewline:!0,autoScroll:!1,timeOut:50},send:{isHexSend:!1,addCRLF:!1,addCRLFType:` -`,autoSend:!1,autoSendInterval:1e3,addChecksum:!1,content:"",history:[],historyMaxLength:100}},Qs=class Qs{constructor(){Kt(this,"configs",{});this.loadAllConfigs()}static getInstance(){return Qs.instance||(Qs.instance=new Qs),Qs.instance}loadAllConfigs(){for(const[e,t]of Object.entries(ma)){const n=localStorage.getItem(`config.${e}`);this.configs[e]=n?{...t,...JSON.parse(n)}:t}}getConfig(e){return this.configs[e]||ma[e]}setConfig(e,t){this.configs[e]={...this.configs[e],...t},localStorage.setItem(`config.${e}`,JSON.stringify(this.configs[e]))}useConfig(e){const t=at(this.getConfig(e));return Xs(t,n=>{this.setConfig(e,n)},{deep:!0}),t}resetConfig(e){this.configs[e]={...ma[e]},localStorage.setItem(`config.${e}`,JSON.stringify(this.configs[e]))}resetAllConfigs(){Object.keys(ma).forEach(e=>{this.resetConfig(e)})}};Kt(Qs,"instance");let zo=Qs;const Bs=class Bs{constructor(){Kt(this,"textEncoder");Kt(this,"textDecoder");Kt(this,"isConnected",!1);Kt(this,"sendQueue",[]);Kt(this,"maxQueueSize",1e3);Kt(this,"processingQueue",!1);this.textEncoder=new TextEncoder,this.textDecoder=new TextDecoder}static getInstance(){return Bs.instance||(Bs.instance=new Bs),Bs.instance}setConnected(e){this.isConnected=e,e||this.clearSendQueue()}isSerialConnected(){return this.isConnected}validateHexString(e){return/^[0-9A-Fa-f\s]*$/.test(e)&&e.replace(/\s/g,"").length%2===0}stringToUint8Array(e,t=!1){if(t){if(!this.validateHexString(e))throw new Error("无效的HEX格式字符串");const n=e.replace(/[^0-9A-Fa-f]/g,""),i=new Uint8Array(n.length/2);for(let r=0;rt.toString(16).padStart(2,"0").toUpperCase()).join(" ")}uint8ArrayToString(e){try{return this.textDecoder.decode(e)}catch(t){return console.error("解码数据时出错:",t),""}}formatLogMessage(e,t){try{const n=new Date,i=[];if(t.showTime){const o=n.toLocaleTimeString();if(t.showMs){const a=n.getMilliseconds().toString().padStart(3,"0");i.push(`[${o}.${a}]`)}else i.push(`[${o}]`)}if(t.showHex){const o=this.uint8ArrayToHexString(e);i.push(o)}if(t.showText){const o=this.uint8ArrayToString(e);t.showHex?i.push(`| ${o}`):i.push(o)}return t.showNewline?i.push(` -`):i.push(""),i.join(" ")}catch(n){return console.error("格式化日志消息时出错:",n),`[${new Date().toLocaleTimeString()}] 错误: 无法格式化消息 -`}}async addToSendQueue(e){if(!this.isConnected)throw new Error("串口未连接");if(this.sendQueue.length>=this.maxQueueSize)throw new Error("发送队列已满");this.sendQueue.push(e),this.processingQueue||await this.processSendQueue()}clearSendQueue(){this.sendQueue=[],this.processingQueue=!1}async processSendQueue(){if(!(this.processingQueue||this.sendQueue.length===0)){for(this.processingQueue=!0;this.sendQueue.length>0&&this.isConnected;){const e=this.sendQueue.shift();if(e)try{window.dispatchEvent(new CustomEvent("serial-send",{detail:e})),await new Promise(t=>setTimeout(t,10))}catch(t){console.error("发送数据时出错:",t)}}this.processingQueue=!1}}calculateChecksum(e){return e.reduce((t,n)=>t^n,0)}appendChecksum(e){const t=this.calculateChecksum(e),n=new Uint8Array(e.length+1);return n.set(e),n[e.length]=t,n}verifyChecksum(e){if(e.length<1)return!1;const t=e[e.length-1],n=this.calculateChecksum(e.slice(0,-1));return t===n}};Kt(Bs,"instance");let Br=Bs;const Fs=class Fs{constructor(){Kt(this,"scripts",[]);Kt(this,"currentScript",{id:Date.now(),name:"新建脚本",code:"",isRunning:!1});Kt(this,"serialHelper",Br.getInstance());Kt(this,"runtimer",{DataReceiverInterface:null,DataSenderInterface:null});Kt(this,"RuntimerTimerIntervals",[]);Kt(this,"RuntimerTimerouts",[]);this.loadScripts()}static getInstance(){return Fs.instance||(Fs.instance=new Fs),Fs.instance}getScripts(){return this.scripts}getCurrentScript(){return this.currentScript}setCurrentScript(e){this.currentScript=e}addScript(){const e={id:Date.now(),name:"新建脚本",code:` -// 处理接收的数据 -async function DataReceiver(data) { - return data; -} - -// 处理发送的数据 -async function DataSender(data) { - await sleep(100); - return data; -} - -// 定时发送数据 -setInterval(async () => { - // sendHex([0x11, 0x11, 0x11]); -}, 1000); - -// 更新IMU数据 -let pitch = 0.0, roll = 0.0, yaw = 0.0; -setInterval(() => { - pitch += Math.random()*0.4 - 0.2; - roll += Math.random()*0.4 - 0.1; - yaw += Math.random()*0.4 - 0; - updateIMU({pitch, roll, yaw}); -}, 10); - -`,isRunning:!1};return this.scripts.push(e),this.currentScript=e,this.saveScripts(),e}removeScript(e){const t=this.scripts.findIndex(n=>n.id===e);t>-1&&(this.scripts.splice(t,1),this.currentScript.id===e&&(this.scripts.length===0&&this.addScript(),this.currentScript=this.scripts[0]),this.saveScripts())}async runScript(){let e=this.currentScript;if(!e.isRunning){e.isRunning=!0;try{const t={sendText:r=>{const o=this.serialHelper.stringToUint8Array(r);window.dispatchEvent(new CustomEvent("serial-send",{detail:o}))},sendHex:r=>{let o=r;typeof r=="string"&&(o=this.serialHelper.stringToUint8Array(r,!0)),window.dispatchEvent(new CustomEvent("serial-send",{detail:o}))},updateIMU:r=>{window.dispatchEvent(new CustomEvent("data-imu",{detail:r}))},sleep:r=>new Promise(o=>setTimeout(o,r)),setTimeout:(r,o)=>{const a=setTimeout(r,o);return this.RuntimerTimerouts.push(a),a},setInterval:(r,o)=>{const a=setInterval(r,o);return this.RuntimerTimerIntervals.push(a),a}},n=` -return (async function() { - ${e.code} - - - let DataReceiverInterface = typeof DataReceiver == 'undefined' ? null : DataReceiver; - let DataSenderInterface = typeof DataSender == 'undefined'? null : DataSender; - return { DataReceiverInterface, DataSenderInterface }; -})() - `,i=new Function("context",`with(context) { ${n} }`);this.runtimer=await i(t)}catch(t){console.error("脚本执行错误:",t),window.dispatchEvent(new CustomEvent("script-error",{detail:{error:t instanceof Error?t.message:"未知错误"}})),this.stopScript()}}}stopScript(){this.currentScript.isRunning=!1,this.RuntimerTimerouts.forEach(clearTimeout),this.RuntimerTimerouts=[],this.RuntimerTimerIntervals.forEach(clearInterval),this.RuntimerTimerIntervals=[]}async getRuntimer(){return this.currentScript.isRunning||await this.runScript(),this.runtimer}saveScripts(){localStorage.setItem("serialScripts",JSON.stringify(this.scripts))}loadScripts(){const e=localStorage.getItem("serialScripts");if(e)try{this.scripts=JSON.parse(e)}catch(t){console.error("加载脚本失败:",t)}this.scripts.length===0&&this.addScript(),this.currentScript=this.scripts[0]||this.currentScript}};Kt(Fs,"instance");let El=Fs;const rx={class:"serial-config"},ox={class:"config-container"},ax={class:"port-section"},lx={class:"port-list"},cx=Wi({__name:"SerialConfig",setup(s){const t=zo.getInstance().useConfig("serial"),n=El.getInstance(),i=at(null),r=at(null),o=at(null),a=at(!1),l=at([]),c=at([]),h=at([]),u=at(""),f=[1200,2400,4800,9600,19200,38400,57600,115200,230400,460800,921600];Xs(t,async()=>{if(a.value&&i.value)try{await _(),await x(i.value),vt.success("串口参数已更新")}catch(L){vt.error("更新串口参数失败:"+L)}},{deep:!0});const p=async L=>{const z=await n.getRuntimer();z.DataReceiverInterface&&(L=await z.DataReceiverInterface(L)),window.dispatchEvent(new CustomEvent("serial-data",{detail:L}))},O=async()=>{try{const L=await navigator.serial.requestPort();await x(L)}catch(L){vt.error("串口连接失败:"+L),u.value=""}},g=async()=>{try{const L=await navigator.usb.requestDevice({filters:[]});c.value.some(z=>z.serialNumber===L.serialNumber)||c.value.push(L),vt.success("WebUSB设备已授权")}catch(L){vt.error("WebUSB设备授权失败:"+L),u.value=""}},m=async()=>{try{const L=await navigator.bluetooth.requestDevice({acceptAllDevices:!0});h.value.some(z=>z.id===L.id)||h.value.push(L),vt.success("蓝牙设备已授权")}catch(L){vt.error("蓝牙设备授权失败:"+L),u.value=""}},b=()=>{switch(S(),u.value){case"authorizedSerial":O();break;case"authorizedUSB":g();break;case"authorizedBluetooth":m();break;case"websocket":break;case"webstlink":case"script":vt.warning("该设备类型开发中"),u.value="";break;case"mock":y();break;default:const L=l.value.find(ee=>{var se;return((se=ee.getInfo().usbProductId)==null?void 0:se.toString())===u.value});if(L){x(L);return}if(c.value.find(ee=>ee.serialNumber===u.value)||h.value.find(ee=>ee.id===u.value))return}},x=async L=>{try{await L.open(t.value),i.value=L,console.log(L),r.value=L.writable.getWriter(),o.value=L.readable.getReader(),a.value=!0,l.value.includes(L)||l.value.push(L),vt.success("串口连接成功"),w()}catch(z){vt.error("串口连接失败:"+z)}},_=async()=>{S();try{o.value&&(await o.value.cancel(),o.value.releaseLock()),r.value&&(await r.value.close(),r.value.releaseLock()),i.value&&await i.value.close(),a.value=!1,vt.success("串口已断开")}catch(L){vt.error("断开串口失败:"+L)}},w=async()=>{for(;a.value&&o.value;)try{const{value:L,done:z}=await o.value.read();if(z)break;p(L)}catch(L){vt.error("读取串口数据失败:"+L);break}},T=async L=>{if(!a.value||!r.value){vt.error("串口未连接");return}let z=L.detail;const B=await n.getRuntimer();B.DataSenderInterface&&(z=await B.DataSenderInterface(z));try{await r.value.write(z)}catch(ee){vt.error("发送数据失败:"+ee)}};ia(()=>{var L,z;window.addEventListener("serial-send",B=>T(B)),(L=navigator.serial)==null||L.getPorts().then(B=>{l.value=B}),(z=navigator.usb)==null||z.getDevices().then(B=>{c.value=B})}),ql(()=>{window.removeEventListener("serial-send",L=>T(L))});const E=at(!1);let P=null;const y=()=>{E.value=!0,a.value=!0;const{writable:L,readable:z}=new TransformStream({transform(B,ee){ee.enqueue(B)}});P=window.setInterval(()=>{const B=Math.floor(Math.random()*100)+1,ee=new Uint8Array(B);for(let se=0;se{P&&(clearInterval(P),P=null,a.value=!1)},R=[{name:"Arduino UNO",vendorId:"2341",productId:"0043"},{name:"Arduino Mega",vendorId:"2341",productId:"0010"},{name:"Arduino Nano",vendorId:"0403",productId:"6001"},{name:"ATmega32U4",vendorId:"2341",productId:"8036"},{name:"CP2102/CP2102N",vendorId:"10c4",productId:"ea60"},{name:"FT2232H",vendorId:"0403",productId:"6010"},{name:"FTDI Basic",vendorId:"0403",productId:"6001"},{name:"CH340",vendorId:"1a86",productId:"7523"},{name:"CH9102",vendorId:"1a86",productId:"55d4"},{name:"PL2303",vendorId:"067b",productId:"2303"},{name:"PL2303HX",vendorId:"067b",productId:"2303"},{name:"ESP USB_SERIAL_JTAG",vendorId:"303a",productId:"1001"},{name:"ESP USB Bridge",vendorId:"303a",productId:"1002"},{name:"ESP32-S2 USB CDC",vendorId:"303a",productId:"0002"},{name:"ESP32-S3 USB CDC",vendorId:"303a",productId:"0009"},{name:"CH9102F",vendorId:"1a86",productId:"55d4"},{name:"CH340G",vendorId:"1a86",productId:"7523"},{name:"STM32 Virtual COM Port",vendorId:"0483",productId:"5740"},{name:"STM32 USB CDC",vendorId:"0483",productId:"5740"}],k=L=>{if(!L.getInfo().usbProductId)return"串口设备";const z=(L.getInfo().usbVendorId||0).toString(16).padStart(4,"0"),B=(L.getInfo().usbProductId||0).toString(16).padStart(4,"0"),ee=R.find(se=>se.vendorId.toLowerCase()===z.toLowerCase()&&se.productId.toLowerCase()===B.toLowerCase());return ee?`${ee.name} (VID:${z} PID:${B})`:`未知设备 (VID:${z} PID:${B})`},I=L=>"未知设备"+L,$=L=>"未知设备"+L,H=()=>{a?_():x(i.value)};return(L,z)=>{const B=Me("el-option"),ee=Me("el-option-group"),se=Me("el-select"),ge=Me("el-button"),be=Me("el-button-group"),Be=Me("el-form-item"),j=Me("el-form");return tt(),Dt("div",rx,[Ae("div",ox,[Ae("div",ax,[Ae("div",lx,[G(se,{modelValue:u.value,"onUpdate:modelValue":z[0]||(z[0]=q=>u.value=q),onChange:b,placeholder:"选择设备",size:"small"},{default:te(()=>[G(B,{label:"选择设备",value:""}),G(ee,{label:"串口设备"},{default:te(()=>[G(B,{label:"授权串口设备",value:"authorizedSerial"}),(tt(!0),Dt(Ii,null,Ui(l.value,q=>{var Oe;return tt(),kn(B,{key:q.getInfo().usbVendorId,label:k(q),value:((Oe=q.getInfo().usbProductId)==null?void 0:Oe.toString())||""},null,8,["label","value"])}),128))]),_:1}),G(ee,{label:"WebUSB设备"},{default:te(()=>[G(B,{label:"授权WebUSB设备",value:"authorizedUSB"}),(tt(!0),Dt(Ii,null,Ui(c.value,q=>(tt(),kn(B,{key:q.serialNumber,label:I(q),value:q.serialNumber},null,8,["label","value"]))),128))]),_:1}),G(ee,{label:"蓝牙设备"},{default:te(()=>[G(B,{label:"授权蓝牙设备",value:"authorizedBluetooth"}),(tt(!0),Dt(Ii,null,Ui(h.value,q=>(tt(),kn(B,{key:q.id,label:$(q),value:q.id},null,8,["label","value"]))),128))]),_:1}),G(ee,{label:"其他"},{default:te(()=>[G(B,{label:"WebSocket",value:"websocket"}),G(B,{label:"脚本",value:"script"}),G(B,{label:"Stlink",value:"webstlink"}),G(B,{label:"Mock",value:"mock"})]),_:1})]),_:1},8,["modelValue"])]),G(be,null,{default:te(()=>[G(ge,{type:a.value?"danger":"primary",onClick:H,size:"small"},{default:te(()=>[Et(fn(a.value?"断开":"连接"),1)]),_:1},8,["type"])]),_:1})]),u.value!="websocket"?(tt(),kn(j,{key:0,model:Ie(t),inline:!0,size:"small",class:"config-section"},{default:te(()=>[G(Be,{label:"波特率"},{default:te(()=>[G(se,{modelValue:Ie(t).baudRate,"onUpdate:modelValue":z[1]||(z[1]=q=>Ie(t).baudRate=q),style:{width:"80px"}},{default:te(()=>[(tt(),Dt(Ii,null,Ui(f,q=>G(B,{key:q,value:q},null,8,["value"])),64))]),_:1},8,["modelValue"])]),_:1}),G(Be,{label:"数据位"},{default:te(()=>[G(se,{modelValue:Ie(t).dataBits,"onUpdate:modelValue":z[2]||(z[2]=q=>Ie(t).dataBits=q),style:{width:"50px"}},{default:te(()=>[(tt(),Dt(Ii,null,Ui([8,7,6,5],q=>G(B,{key:q,value:q},null,8,["value"])),64))]),_:1},8,["modelValue"])]),_:1}),G(Be,{label:"停止位"},{default:te(()=>[G(se,{modelValue:Ie(t).stopBits,"onUpdate:modelValue":z[3]||(z[3]=q=>Ie(t).stopBits=q),style:{width:"50px"}},{default:te(()=>[(tt(),Dt(Ii,null,Ui([1,2],q=>G(B,{key:q,value:q},null,8,["value"])),64))]),_:1},8,["modelValue"])]),_:1}),G(Be,{label:"校验位"},{default:te(()=>[G(se,{modelValue:Ie(t).parity,"onUpdate:modelValue":z[4]||(z[4]=q=>Ie(t).parity=q),style:{width:"60px"}},{default:te(()=>[G(B,{label:"无",value:"none"}),G(B,{label:"奇校验",value:"odd"}),G(B,{label:"偶校验",value:"even"})]),_:1},8,["modelValue"])]),_:1}),G(Be,{label:"流控制"},{default:te(()=>[G(se,{modelValue:Ie(t).flowControl,"onUpdate:modelValue":z[5]||(z[5]=q=>Ie(t).flowControl=q),style:{width:"60px"}},{default:te(()=>[G(B,{label:"无",value:"none"}),G(B,{label:"硬件流控",value:"hardware"})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"])):(tt(),kn(j,{key:1,model:Ie(t),inline:!0,size:"small",class:"config-section"},{default:te(()=>[G(Be,{label:"ws"},{default:te(()=>[G(se,{modelValue:Ie(t),"onUpdate:modelValue":z[6]||(z[6]=q=>Vo(t)?t.value=q:null),style:{width:"300px"}},null,8,["modelValue"])]),_:1})]),_:1},8,["model"]))])])}}}),ji=(s,e)=>{const t=s.__vccOpts||s;for(const[n,i]of e)t[n]=i;return t},hx=ji(cx,[["__scopeId","data-v-3ee89321"]]);var ux=j_(),fx=q_(),dx=Y_();const px={class:"serial-log"},mx={class:"controls"},gx=Wi({__name:"SerialLogTerm",setup(s){const t=zo.getInstance().useConfig("display"),n=Yl(),i=at(t.value),r=at(t.value.timeOut),o=Br.getInstance();let a=new Uint8Array,l=null,c=null,h=null;const u=()=>{c&&c.clear()},f=x=>{window.dispatchEvent(new CustomEvent("serial-send",{detail:new TextEncoder().encode(x)}))},d=x=>x?{background:"#1e1e1e",foreground:"#d4d4d4",selectionBackground:"#3a3a3a"}:{background:"#ffffff",foreground:"#000000",selectionBackground:"#d4d4d4"},p=()=>{c=new ux.Terminal({cursorBlink:!0,convertEol:!0,fontFamily:"Consolas,Liberation Mono,Menlo,Courier,monospace",fontSize:14,theme:d(n.value)});const x=new dx.SearchAddon;c.loadAddon(x),h=new fx.FitAddon,c.loadAddon(h),c.onData(f);const _=document.getElementById("terminal");_&&c.open(_),setTimeout(()=>{h==null||h.fit()},120)},O=x=>{r.value=x},g=x=>{x in i.value&&(i.value[x]=!i.value[x])},m=x=>{a=new Uint8Array([...a,...x]),l&&clearTimeout(l),l=window.setTimeout(()=>{const _=o.formatLogMessage(a,i.value);c&&(c.write(_),i.value.autoScroll&&c.scrollToBottom()),a=new Uint8Array},r.value)};Xs(n,x=>{c&&(c.options.theme=d(x))}),ia(()=>{p(),window.addEventListener("serial-data",x=>{m(x.detail)})}),ql(()=>{window.removeEventListener("serial-data",x=>{m(x.detail)}),l&&clearTimeout(l),c&&c.dispose()});const b=()=>{if(!c)return;const _=`serial-log-${new Date().toISOString().replace(/[:.]/g,"-")}.txt`,T=c.buffer.active.getLines().map(S=>S==null?void 0:S.translateToString()).filter(Boolean).join(` -`),E=new Blob([T],{type:"text/plain;charset=utf-8"}),P=URL.createObjectURL(E),y=document.createElement("a");y.href=P,y.download=_,document.body.appendChild(y),y.click(),document.body.removeChild(y),URL.revokeObjectURL(P)};return(x,_)=>{const w=Me("el-button"),T=Me("el-button-group"),E=Me("el-input-number"),P=Me("el-tooltip");return tt(),Dt("div",px,[Ae("div",mx,[G(T,{class:"me-2"},{default:te(()=>[G(w,{type:i.value.showTime?"primary":"default",size:"small",onClick:_[0]||(_[0]=y=>g("showTime"))},{default:te(()=>_[7]||(_[7]=[Et(" 时间 ")])),_:1},8,["type"]),G(w,{type:i.value.showMs?"primary":"default",size:"small",onClick:_[1]||(_[1]=y=>g("showMs"))},{default:te(()=>_[8]||(_[8]=[Et(" 毫秒 ")])),_:1},8,["type"]),G(w,{type:i.value.showHex?"primary":"default",size:"small",onClick:_[2]||(_[2]=y=>g("showHex"))},{default:te(()=>_[9]||(_[9]=[Et(" HEX ")])),_:1},8,["type"]),G(w,{type:i.value.showText?"primary":"default",size:"small",onClick:_[3]||(_[3]=y=>g("showText"))},{default:te(()=>_[10]||(_[10]=[Et(" TEXT ")])),_:1},8,["type"]),G(w,{type:i.value.showNewline?"primary":"default",size:"small",onClick:_[4]||(_[4]=y=>g("showNewline"))},{default:te(()=>_[11]||(_[11]=[Et(" 换行 ")])),_:1},8,["type"])]),_:1}),G(T,{class:"me-2",style:{"white-space":"nowrap"}},{default:te(()=>[G(w,{type:i.value.autoScroll?"primary":"default",size:"small",onClick:_[5]||(_[5]=y=>g("autoScroll"))},{default:te(()=>_[12]||(_[12]=[Et(" 自动滚动 ")])),_:1},8,["type"]),G(w,{type:"danger",size:"small",onClick:u},{default:te(()=>_[13]||(_[13]=[Et(" 清空 ")])),_:1}),G(w,{type:"primary",size:"small",onClick:b},{default:te(()=>_[14]||(_[14]=[Et(" 导出 ")])),_:1})]),_:1}),G(P,{class:"box-item",effect:"dark",content:"分包超时时间 ms",placement:"bottom"},{default:te(()=>[G(E,{modelValue:r.value,"onUpdate:modelValue":_[6]||(_[6]=y=>r.value=y),min:1,max:3e3,step:5,size:"small",onChange:O},{prefix:te(()=>_[15]||(_[15]=[])),suffix:te(()=>_[16]||(_[16]=[Ae("span",null,"ms",-1)])),_:1},8,["modelValue"])]),_:1})]),_[17]||(_[17]=Ae("div",{class:"terminal-container"},[Ae("div",{id:"terminal"})],-1))])}}}),Ox=ji(gx,[["__scopeId","data-v-850c3318"]]),_x={class:"serial-send"},xx={class:"controls"},yx={class:"me-2",style:{display:"inline-block"}},Sx={class:"send-content"},vx=Wi({__name:"SerialSend",setup(s){const t=zo.getInstance().useConfig("send");let n=null;const i=Br.getInstance(),r=()=>{try{let h=t.value.content;t.value.addCRLF&&(h+=t.value.addCRLFType);let u=i.stringToUint8Array(h,t.value.isHexSend);t.value.addChecksum&&(u=i.appendChecksum(u)),window.dispatchEvent(new CustomEvent("serial-send",{detail:u})),h&&!t.value.history.includes(t.value.content)&&(t.value.history.unshift(t.value.content),t.value.history.length>t.value.historyMaxLength&&t.value.history.pop())}catch(h){console.error("发送数据时出错:",h),window.dispatchEvent(new CustomEvent("serial-error",{detail:{message:h instanceof Error?h.message:"发送数据时出错"}}))}},o=()=>{t.value.autoSend?n=window.setInterval(r,t.value.autoSendInterval):n&&(clearInterval(n),n=null)},a=h=>{t.value.autoSendInterval=h,t.value.autoSend&&n&&(clearInterval(n),n=window.setInterval(r,h))};let l=-1;const c=h=>{if((h.metaKey||h.ctrlKey)&&h.key==="Enter"){r(),l=-1;return}const u=h.target,f=u.selectionStart,p=!t.value.content.slice(0,f).includes(` -`);(h.key==="ArrowUp"||h.key==="ArrowDown")&&!p||(h.key==="ArrowUp"?(h.preventDefault(),l===-1&&t.value.content.trim()&&!t.value.history.includes(t.value.content)&&(t.value.history.unshift(t.value.content),t.value.history.length>t.value.historyMaxLength&&t.value.history.pop()),t.value.history.length>0&&(l=Math.min(l+1,t.value.history.length-1),t.value.content=t.value.history[l],u.selectionStart=u.selectionEnd=0)):h.key==="ArrowDown"&&(h.preventDefault(),l>-1&&(l--,t.value.content=l===-1?"":t.value.history[l],u.selectionStart=u.selectionEnd=0)))};return(h,u)=>{const f=Me("el-switch"),d=Me("el-checkbox"),p=Me("el-option"),O=Me("el-select"),g=Me("el-input-number"),m=Me("el-button"),b=Me("el-input");return tt(),Dt("div",_x,[Ae("div",xx,[G(f,{modelValue:Ie(t).isHexSend,"onUpdate:modelValue":u[0]||(u[0]=x=>Ie(t).isHexSend=x),"active-text":"HEX","inactive-text":"TEXT",class:"me-2"},null,8,["modelValue"]),Ae("div",yx,[G(d,{modelValue:Ie(t).addCRLF,"onUpdate:modelValue":u[1]||(u[1]=x=>Ie(t).addCRLF=x),label:"",class:"",style:{"vertical-align":"middle"}},null,8,["modelValue"]),G(O,{modelValue:Ie(t).addCRLFType,"onUpdate:modelValue":u[2]||(u[2]=x=>Ie(t).addCRLFType=x),size:"small",style:{width:"80px"}},{default:te(()=>[G(p,{value:`\r -`,label:"CRLF(\\r\\n)"}),G(p,{value:"\r",label:"CR(\\r)"}),G(p,{value:` -`,label:"LF(\\n)"})]),_:1},8,["modelValue"])]),G(d,{modelValue:Ie(t).addChecksum,"onUpdate:modelValue":u[3]||(u[3]=x=>Ie(t).addChecksum=x),label:"校验和",class:"me-2"},null,8,["modelValue"]),G(d,{modelValue:Ie(t).autoSend,"onUpdate:modelValue":u[4]||(u[4]=x=>Ie(t).autoSend=x),onChange:o,label:"自动发送",class:"me-2"},null,8,["modelValue"]),G(g,{modelValue:Ie(t).autoSendInterval,"onUpdate:modelValue":u[5]||(u[5]=x=>Ie(t).autoSendInterval=x),min:100,max:1e4,step:100,onChange:a,size:"small",class:"me-2"},null,8,["modelValue"]),u[8]||(u[8]=Ae("span",null,"ms",-1)),G(m,{type:"primary",onClick:r,class:"me-2"},{default:te(()=>u[7]||(u[7]=[Et("发送")])),_:1})]),Ae("div",Sx,[G(b,{modelValue:Ie(t).content,"onUpdate:modelValue":u[6]||(u[6]=x=>Ie(t).content=x),type:"textarea",rows:5,placeholder:Ie(t).isHexSend?"请输入HEX格式数据,如:49 54 4C 44 47":"请输入要发送的文本",onKeydown:c},null,8,["modelValue","placeholder"])])])}}}),bx=ji(vx,[["__scopeId","data-v-b8924903"]]),Mx={class:"serial-log"},wx=Wi({__name:"SerialLog",setup(s){return(e,t)=>(tt(),Dt("div",Mx,[G(Ox,{class:"serial-term"}),G(bx,{class:"serial-send"})]))}}),Tx=ji(wx,[["__scopeId","data-v-9a1e85ef"]]);/** - * @license - * Copyright 2010-2025 Three.js Authors - * SPDX-License-Identifier: MIT - */const uf="173",Pr={ROTATE:0,DOLLY:1,PAN:2},br={ROTATE:0,PAN:1,DOLLY_PAN:2,DOLLY_ROTATE:3},Ex=0,Od=1,Ax=2,Cg=1,Px=2,Li=3,Gi=0,Mn=1,pi=2,ps=0,Rr=1,_d=2,xd=3,yd=4,Rx=5,Is=100,Cx=101,kx=102,Lx=103,Dx=104,Ix=200,Ux=201,Nx=202,Qx=203,Ah=204,Ph=205,Bx=206,Fx=207,$x=208,Vx=209,zx=210,Zx=211,Gx=212,Xx=213,Hx=214,Rh=0,Ch=1,kh=2,Fr=3,Lh=4,Dh=5,Ih=6,Uh=7,ff=0,Wx=1,jx=2,ms=0,qx=1,Yx=2,Kx=3,Jx=4,ey=5,ty=6,ny=7,Sd="attached",iy="detached",kg=300,$r=301,Vr=302,Nh=303,Qh=304,Jl=306,zr=1e3,hs=1001,Al=1002,gn=1003,Lg=1004,wo=1005,Ln=1006,ll=1007,Bi=1008,Xi=1009,Dg=1010,Ig=1011,Zo=1012,df=1013,Hs=1014,ni=1015,sa=1016,pf=1017,mf=1018,Zr=1020,Ug=35902,Ng=1021,Qg=1022,Zn=1023,Bg=1024,Fg=1025,Cr=1026,Gr=1027,gf=1028,Of=1029,$g=1030,_f=1031,xf=1033,cl=33776,hl=33777,ul=33778,fl=33779,Bh=35840,Fh=35841,$h=35842,Vh=35843,zh=36196,Zh=37492,Gh=37496,Xh=37808,Hh=37809,Wh=37810,jh=37811,qh=37812,Yh=37813,Kh=37814,Jh=37815,eu=37816,tu=37817,nu=37818,iu=37819,su=37820,ru=37821,dl=36492,ou=36494,au=36495,Vg=36283,lu=36284,cu=36285,hu=36286,Go=2300,Xo=2301,xc=2302,vd=2400,bd=2401,Md=2402,sy=2500,ry=0,zg=1,uu=2,oy=3200,ay=3201,yf=0,ly=1,ls="",Xt="srgb",xn="srgb-linear",Pl="linear",Ot="srgb",or=7680,wd=519,cy=512,hy=513,uy=514,Zg=515,fy=516,dy=517,py=518,my=519,fu=35044,Td="300 es",Fi=2e3,Rl=2001;class tr{addEventListener(e,t){this._listeners===void 0&&(this._listeners={});const n=this._listeners;n[e]===void 0&&(n[e]=[]),n[e].indexOf(t)===-1&&n[e].push(t)}hasEventListener(e,t){const n=this._listeners;return n===void 0?!1:n[e]!==void 0&&n[e].indexOf(t)!==-1}removeEventListener(e,t){const n=this._listeners;if(n===void 0)return;const i=n[e];if(i!==void 0){const r=i.indexOf(t);r!==-1&&i.splice(r,1)}}dispatchEvent(e){const t=this._listeners;if(t===void 0)return;const n=t[e.type];if(n!==void 0){e.target=this;const i=n.slice(0);for(let r=0,o=i.length;r>8&255]+sn[s>>16&255]+sn[s>>24&255]+"-"+sn[e&255]+sn[e>>8&255]+"-"+sn[e>>16&15|64]+sn[e>>24&255]+"-"+sn[t&63|128]+sn[t>>8&255]+"-"+sn[t>>16&255]+sn[t>>24&255]+sn[n&255]+sn[n>>8&255]+sn[n>>16&255]+sn[n>>24&255]).toLowerCase()}function We(s,e,t){return Math.max(e,Math.min(t,s))}function Sf(s,e){return(s%e+e)%e}function gy(s,e,t,n,i){return n+(s-e)*(i-n)/(t-e)}function Oy(s,e,t){return s!==e?(t-s)/(e-s):0}function Do(s,e,t){return(1-t)*s+t*e}function _y(s,e,t,n){return Do(s,e,1-Math.exp(-t*n))}function xy(s,e=1){return e-Math.abs(Sf(s,e*2)-e)}function yy(s,e,t){return s<=e?0:s>=t?1:(s=(s-e)/(t-e),s*s*(3-2*s))}function Sy(s,e,t){return s<=e?0:s>=t?1:(s=(s-e)/(t-e),s*s*s*(s*(s*6-15)+10))}function vy(s,e){return s+Math.floor(Math.random()*(e-s+1))}function by(s,e){return s+Math.random()*(e-s)}function My(s){return s*(.5-Math.random())}function wy(s){s!==void 0&&(Ed=s);let e=Ed+=1831565813;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}function Ty(s){return s*Lo}function Ey(s){return s*Xr}function Ay(s){return(s&s-1)===0&&s!==0}function Py(s){return Math.pow(2,Math.ceil(Math.log(s)/Math.LN2))}function Ry(s){return Math.pow(2,Math.floor(Math.log(s)/Math.LN2))}function Cy(s,e,t,n,i){const r=Math.cos,o=Math.sin,a=r(t/2),l=o(t/2),c=r((e+n)/2),h=o((e+n)/2),u=r((e-n)/2),f=o((e-n)/2),d=r((n-e)/2),p=o((n-e)/2);switch(i){case"XYX":s.set(a*h,l*u,l*f,a*c);break;case"YZY":s.set(l*f,a*h,l*u,a*c);break;case"ZXZ":s.set(l*u,l*f,a*h,a*c);break;case"XZX":s.set(a*h,l*p,l*d,a*c);break;case"YXY":s.set(l*d,a*h,l*p,a*c);break;case"ZYZ":s.set(l*p,l*d,a*h,a*c);break;default:console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+i)}}function ei(s,e){switch(e.constructor){case Float32Array:return s;case Uint32Array:return s/4294967295;case Uint16Array:return s/65535;case Uint8Array:return s/255;case Int32Array:return Math.max(s/2147483647,-1);case Int16Array:return Math.max(s/32767,-1);case Int8Array:return Math.max(s/127,-1);default:throw new Error("Invalid component type.")}}function pt(s,e){switch(e.constructor){case Float32Array:return s;case Uint32Array:return Math.round(s*4294967295);case Uint16Array:return Math.round(s*65535);case Uint8Array:return Math.round(s*255);case Int32Array:return Math.round(s*2147483647);case Int16Array:return Math.round(s*32767);case Int8Array:return Math.round(s*127);default:throw new Error("Invalid component type.")}}const Io={DEG2RAD:Lo,RAD2DEG:Xr,generateUUID:si,clamp:We,euclideanModulo:Sf,mapLinear:gy,inverseLerp:Oy,lerp:Do,damp:_y,pingpong:xy,smoothstep:yy,smootherstep:Sy,randInt:vy,randFloat:by,randFloatSpread:My,seededRandom:wy,degToRad:Ty,radToDeg:Ey,isPowerOfTwo:Ay,ceilPowerOfTwo:Py,floorPowerOfTwo:Ry,setQuaternionFromProperEuler:Cy,normalize:pt,denormalize:ei};class Ue{constructor(e=0,t=0){Ue.prototype.isVector2=!0,this.x=e,this.y=t}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,t){return this.x=e,this.y=t,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){const t=this.x,n=this.y,i=e.elements;return this.x=i[0]*t+i[3]*n+i[6],this.y=i[1]*t+i[4]*n+i[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,t){return this.x=We(this.x,e.x,t.x),this.y=We(this.y,e.y,t.y),this}clampScalar(e,t){return this.x=We(this.x,e,t),this.y=We(this.y,e,t),this}clampLength(e,t){const n=this.length();return this.divideScalar(n||1).multiplyScalar(We(n,e,t))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;const n=this.dot(e)/t;return Math.acos(We(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,n=this.y-e.y;return t*t+n*n}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this}rotateAround(e,t){const n=Math.cos(t),i=Math.sin(t),r=this.x-e.x,o=this.y-e.y;return this.x=r*n-o*i+e.x,this.y=r*i+o*n+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}class Ze{constructor(e,t,n,i,r,o,a,l,c){Ze.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],e!==void 0&&this.set(e,t,n,i,r,o,a,l,c)}set(e,t,n,i,r,o,a,l,c){const h=this.elements;return h[0]=e,h[1]=i,h[2]=a,h[3]=t,h[4]=r,h[5]=l,h[6]=n,h[7]=o,h[8]=c,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){const t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],this}extractBasis(e,t,n){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),n.setFromMatrix3Column(this,2),this}setFromMatrix4(e){const t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const n=e.elements,i=t.elements,r=this.elements,o=n[0],a=n[3],l=n[6],c=n[1],h=n[4],u=n[7],f=n[2],d=n[5],p=n[8],O=i[0],g=i[3],m=i[6],b=i[1],x=i[4],_=i[7],w=i[2],T=i[5],E=i[8];return r[0]=o*O+a*b+l*w,r[3]=o*g+a*x+l*T,r[6]=o*m+a*_+l*E,r[1]=c*O+h*b+u*w,r[4]=c*g+h*x+u*T,r[7]=c*m+h*_+u*E,r[2]=f*O+d*b+p*w,r[5]=f*g+d*x+p*T,r[8]=f*m+d*_+p*E,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this}determinant(){const e=this.elements,t=e[0],n=e[1],i=e[2],r=e[3],o=e[4],a=e[5],l=e[6],c=e[7],h=e[8];return t*o*h-t*a*c-n*r*h+n*a*l+i*r*c-i*o*l}invert(){const e=this.elements,t=e[0],n=e[1],i=e[2],r=e[3],o=e[4],a=e[5],l=e[6],c=e[7],h=e[8],u=h*o-a*c,f=a*l-h*r,d=c*r-o*l,p=t*u+n*f+i*d;if(p===0)return this.set(0,0,0,0,0,0,0,0,0);const O=1/p;return e[0]=u*O,e[1]=(i*c-h*n)*O,e[2]=(a*n-i*o)*O,e[3]=f*O,e[4]=(h*t-i*l)*O,e[5]=(i*r-a*t)*O,e[6]=d*O,e[7]=(n*l-c*t)*O,e[8]=(o*t-n*r)*O,this}transpose(){let e;const t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){const t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}setUvTransform(e,t,n,i,r,o,a){const l=Math.cos(r),c=Math.sin(r);return this.set(n*l,n*c,-n*(l*o+c*a)+o+e,-i*c,i*l,-i*(-c*o+l*a)+a+t,0,0,1),this}scale(e,t){return this.premultiply(yc.makeScale(e,t)),this}rotate(e){return this.premultiply(yc.makeRotation(-e)),this}translate(e,t){return this.premultiply(yc.makeTranslation(e,t)),this}makeTranslation(e,t){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,t,0,0,1),this}makeRotation(e){const t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,n,t,0,0,0,1),this}makeScale(e,t){return this.set(e,0,0,0,t,0,0,0,1),this}equals(e){const t=this.elements,n=e.elements;for(let i=0;i<9;i++)if(t[i]!==n[i])return!1;return!0}fromArray(e,t=0){for(let n=0;n<9;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){const n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e}clone(){return new this.constructor().fromArray(this.elements)}}const yc=new Ze;function Gg(s){for(let e=s.length-1;e>=0;--e)if(s[e]>=65535)return!0;return!1}function Ho(s){return document.createElementNS("http://www.w3.org/1999/xhtml",s)}function ky(){const s=Ho("canvas");return s.style.display="block",s}const Ad={};function vr(s){s in Ad||(Ad[s]=!0,console.warn(s))}function Ly(s,e,t){return new Promise(function(n,i){function r(){switch(s.clientWaitSync(e,s.SYNC_FLUSH_COMMANDS_BIT,0)){case s.WAIT_FAILED:i();break;case s.TIMEOUT_EXPIRED:setTimeout(r,t);break;default:n()}}setTimeout(r,t)})}function Dy(s){const e=s.elements;e[2]=.5*e[2]+.5*e[3],e[6]=.5*e[6]+.5*e[7],e[10]=.5*e[10]+.5*e[11],e[14]=.5*e[14]+.5*e[15]}function Iy(s){const e=s.elements;e[11]===-1?(e[10]=-e[10]-1,e[14]=-e[14]):(e[10]=-e[10],e[14]=-e[14]+1)}const Pd=new Ze().set(.4123908,.3575843,.1804808,.212639,.7151687,.0721923,.0193308,.1191948,.9505322),Rd=new Ze().set(3.2409699,-1.5373832,-.4986108,-.9692436,1.8759675,.0415551,.0556301,-.203977,1.0569715);function Uy(){const s={enabled:!0,workingColorSpace:xn,spaces:{},convert:function(i,r,o){return this.enabled===!1||r===o||!r||!o||(this.spaces[r].transfer===Ot&&(i.r=Vi(i.r),i.g=Vi(i.g),i.b=Vi(i.b)),this.spaces[r].primaries!==this.spaces[o].primaries&&(i.applyMatrix3(this.spaces[r].toXYZ),i.applyMatrix3(this.spaces[o].fromXYZ)),this.spaces[o].transfer===Ot&&(i.r=kr(i.r),i.g=kr(i.g),i.b=kr(i.b))),i},fromWorkingColorSpace:function(i,r){return this.convert(i,this.workingColorSpace,r)},toWorkingColorSpace:function(i,r){return this.convert(i,r,this.workingColorSpace)},getPrimaries:function(i){return this.spaces[i].primaries},getTransfer:function(i){return i===ls?Pl:this.spaces[i].transfer},getLuminanceCoefficients:function(i,r=this.workingColorSpace){return i.fromArray(this.spaces[r].luminanceCoefficients)},define:function(i){Object.assign(this.spaces,i)},_getMatrix:function(i,r,o){return i.copy(this.spaces[r].toXYZ).multiply(this.spaces[o].fromXYZ)},_getDrawingBufferColorSpace:function(i){return this.spaces[i].outputColorSpaceConfig.drawingBufferColorSpace},_getUnpackColorSpace:function(i=this.workingColorSpace){return this.spaces[i].workingColorSpaceConfig.unpackColorSpace}},e=[.64,.33,.3,.6,.15,.06],t=[.2126,.7152,.0722],n=[.3127,.329];return s.define({[xn]:{primaries:e,whitePoint:n,transfer:Pl,toXYZ:Pd,fromXYZ:Rd,luminanceCoefficients:t,workingColorSpaceConfig:{unpackColorSpace:Xt},outputColorSpaceConfig:{drawingBufferColorSpace:Xt}},[Xt]:{primaries:e,whitePoint:n,transfer:Ot,toXYZ:Pd,fromXYZ:Rd,luminanceCoefficients:t,outputColorSpaceConfig:{drawingBufferColorSpace:Xt}}}),s}const nt=Uy();function Vi(s){return s<.04045?s*.0773993808:Math.pow(s*.9478672986+.0521327014,2.4)}function kr(s){return s<.0031308?s*12.92:1.055*Math.pow(s,.41666)-.055}let ar;class Ny{static getDataURL(e){if(/^data:/i.test(e.src)||typeof HTMLCanvasElement>"u")return e.src;let t;if(e instanceof HTMLCanvasElement)t=e;else{ar===void 0&&(ar=Ho("canvas")),ar.width=e.width,ar.height=e.height;const n=ar.getContext("2d");e instanceof ImageData?n.putImageData(e,0,0):n.drawImage(e,0,0,e.width,e.height),t=ar}return t.toDataURL("image/png")}static sRGBToLinear(e){if(typeof HTMLImageElement<"u"&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&e instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&e instanceof ImageBitmap){const t=Ho("canvas");t.width=e.width,t.height=e.height;const n=t.getContext("2d");n.drawImage(e,0,0,e.width,e.height);const i=n.getImageData(0,0,e.width,e.height),r=i.data;for(let o=0;o0&&(n.userData=this.userData),t||(e.textures[this.uuid]=n),n}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(e){if(this.mapping!==kg)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case zr:e.x=e.x-Math.floor(e.x);break;case hs:e.x=e.x<0?0:1;break;case Al:Math.abs(Math.floor(e.x)%2)===1?e.x=Math.ceil(e.x)-e.x:e.x=e.x-Math.floor(e.x);break}if(e.y<0||e.y>1)switch(this.wrapT){case zr:e.y=e.y-Math.floor(e.y);break;case hs:e.y=e.y<0?0:1;break;case Al:Math.abs(Math.floor(e.y)%2)===1?e.y=Math.ceil(e.y)-e.y:e.y=e.y-Math.floor(e.y);break}return this.flipY&&(e.y=1-e.y),e}set needsUpdate(e){e===!0&&(this.version++,this.source.needsUpdate=!0)}set needsPMREMUpdate(e){e===!0&&this.pmremVersion++}}qt.DEFAULT_IMAGE=null;qt.DEFAULT_MAPPING=kg;qt.DEFAULT_ANISOTROPY=1;class ct{constructor(e=0,t=0,n=0,i=1){ct.prototype.isVector4=!0,this.x=e,this.y=t,this.z=n,this.w=i}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,t,n,i){return this.x=e,this.y=t,this.z=n,this.w=i,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=e.w!==void 0?e.w:1,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.w,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){const t=this.x,n=this.y,i=this.z,r=this.w,o=e.elements;return this.x=o[0]*t+o[4]*n+o[8]*i+o[12]*r,this.y=o[1]*t+o[5]*n+o[9]*i+o[13]*r,this.z=o[2]*t+o[6]*n+o[10]*i+o[14]*r,this.w=o[3]*t+o[7]*n+o[11]*i+o[15]*r,this}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this.w/=e.w,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);const t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this}setAxisAngleFromRotationMatrix(e){let t,n,i,r;const l=e.elements,c=l[0],h=l[4],u=l[8],f=l[1],d=l[5],p=l[9],O=l[2],g=l[6],m=l[10];if(Math.abs(h-f)<.01&&Math.abs(u-O)<.01&&Math.abs(p-g)<.01){if(Math.abs(h+f)<.1&&Math.abs(u+O)<.1&&Math.abs(p+g)<.1&&Math.abs(c+d+m-3)<.1)return this.set(1,0,0,0),this;t=Math.PI;const x=(c+1)/2,_=(d+1)/2,w=(m+1)/2,T=(h+f)/4,E=(u+O)/4,P=(p+g)/4;return x>_&&x>w?x<.01?(n=0,i=.707106781,r=.707106781):(n=Math.sqrt(x),i=T/n,r=E/n):_>w?_<.01?(n=.707106781,i=0,r=.707106781):(i=Math.sqrt(_),n=T/i,r=P/i):w<.01?(n=.707106781,i=.707106781,r=0):(r=Math.sqrt(w),n=E/r,i=P/r),this.set(n,i,r,t),this}let b=Math.sqrt((g-p)*(g-p)+(u-O)*(u-O)+(f-h)*(f-h));return Math.abs(b)<.001&&(b=1),this.x=(g-p)/b,this.y=(u-O)/b,this.z=(f-h)/b,this.w=Math.acos((c+d+m-1)/2),this}setFromMatrixPosition(e){const t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this.w=t[15],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this.w=Math.min(this.w,e.w),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this.w=Math.max(this.w,e.w),this}clamp(e,t){return this.x=We(this.x,e.x,t.x),this.y=We(this.y,e.y,t.y),this.z=We(this.z,e.z,t.z),this.w=We(this.w,e.w,t.w),this}clampScalar(e,t){return this.x=We(this.x,e,t),this.y=We(this.y,e,t),this.z=We(this.z,e,t),this.w=We(this.w,e,t),this}clampLength(e,t){const n=this.length();return this.divideScalar(n||1).multiplyScalar(We(n,e,t))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this.w=Math.trunc(this.w),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z+this.w*e.w}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this.w+=(e.w-this.w)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this.w=e.w+(t.w-e.w)*n,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z&&e.w===this.w}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this.w=e[t+3],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e[t+3]=this.w,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this.w=e.getW(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z,yield this.w}}class Fy extends tr{constructor(e=1,t=1,n={}){super(),this.isRenderTarget=!0,this.width=e,this.height=t,this.depth=1,this.scissor=new ct(0,0,e,t),this.scissorTest=!1,this.viewport=new ct(0,0,e,t);const i={width:e,height:t,depth:1};n=Object.assign({generateMipmaps:!1,internalFormat:null,minFilter:Ln,depthBuffer:!0,stencilBuffer:!1,resolveDepthBuffer:!0,resolveStencilBuffer:!0,depthTexture:null,samples:0,count:1},n);const r=new qt(i,n.mapping,n.wrapS,n.wrapT,n.magFilter,n.minFilter,n.format,n.type,n.anisotropy,n.colorSpace);r.flipY=!1,r.generateMipmaps=n.generateMipmaps,r.internalFormat=n.internalFormat,this.textures=[];const o=n.count;for(let a=0;a=0?1:-1,x=1-m*m;if(x>Number.EPSILON){const w=Math.sqrt(x),T=Math.atan2(w,m*b);g=Math.sin(g*T)/w,a=Math.sin(a*T)/w}const _=a*b;if(l=l*g+f*_,c=c*g+d*_,h=h*g+p*_,u=u*g+O*_,g===1-a){const w=1/Math.sqrt(l*l+c*c+h*h+u*u);l*=w,c*=w,h*=w,u*=w}}e[t]=l,e[t+1]=c,e[t+2]=h,e[t+3]=u}static multiplyQuaternionsFlat(e,t,n,i,r,o){const a=n[i],l=n[i+1],c=n[i+2],h=n[i+3],u=r[o],f=r[o+1],d=r[o+2],p=r[o+3];return e[t]=a*p+h*u+l*d-c*f,e[t+1]=l*p+h*f+c*u-a*d,e[t+2]=c*p+h*d+a*f-l*u,e[t+3]=h*p-a*u-l*f-c*d,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,t,n,i){return this._x=e,this._y=t,this._z=n,this._w=i,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,t=!0){const n=e._x,i=e._y,r=e._z,o=e._order,a=Math.cos,l=Math.sin,c=a(n/2),h=a(i/2),u=a(r/2),f=l(n/2),d=l(i/2),p=l(r/2);switch(o){case"XYZ":this._x=f*h*u+c*d*p,this._y=c*d*u-f*h*p,this._z=c*h*p+f*d*u,this._w=c*h*u-f*d*p;break;case"YXZ":this._x=f*h*u+c*d*p,this._y=c*d*u-f*h*p,this._z=c*h*p-f*d*u,this._w=c*h*u+f*d*p;break;case"ZXY":this._x=f*h*u-c*d*p,this._y=c*d*u+f*h*p,this._z=c*h*p+f*d*u,this._w=c*h*u-f*d*p;break;case"ZYX":this._x=f*h*u-c*d*p,this._y=c*d*u+f*h*p,this._z=c*h*p-f*d*u,this._w=c*h*u+f*d*p;break;case"YZX":this._x=f*h*u+c*d*p,this._y=c*d*u+f*h*p,this._z=c*h*p-f*d*u,this._w=c*h*u-f*d*p;break;case"XZY":this._x=f*h*u-c*d*p,this._y=c*d*u-f*h*p,this._z=c*h*p+f*d*u,this._w=c*h*u+f*d*p;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+o)}return t===!0&&this._onChangeCallback(),this}setFromAxisAngle(e,t){const n=t/2,i=Math.sin(n);return this._x=e.x*i,this._y=e.y*i,this._z=e.z*i,this._w=Math.cos(n),this._onChangeCallback(),this}setFromRotationMatrix(e){const t=e.elements,n=t[0],i=t[4],r=t[8],o=t[1],a=t[5],l=t[9],c=t[2],h=t[6],u=t[10],f=n+a+u;if(f>0){const d=.5/Math.sqrt(f+1);this._w=.25/d,this._x=(h-l)*d,this._y=(r-c)*d,this._z=(o-i)*d}else if(n>a&&n>u){const d=2*Math.sqrt(1+n-a-u);this._w=(h-l)/d,this._x=.25*d,this._y=(i+o)/d,this._z=(r+c)/d}else if(a>u){const d=2*Math.sqrt(1+a-n-u);this._w=(r-c)/d,this._x=(i+o)/d,this._y=.25*d,this._z=(l+h)/d}else{const d=2*Math.sqrt(1+u-n-a);this._w=(o-i)/d,this._x=(r+c)/d,this._y=(l+h)/d,this._z=.25*d}return this._onChangeCallback(),this}setFromUnitVectors(e,t){let n=e.dot(t)+1;return nMath.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=n):(this._x=0,this._y=-e.z,this._z=e.y,this._w=n)):(this._x=e.y*t.z-e.z*t.y,this._y=e.z*t.x-e.x*t.z,this._z=e.x*t.y-e.y*t.x,this._w=n),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(We(this.dot(e),-1,1)))}rotateTowards(e,t){const n=this.angleTo(e);if(n===0)return this;const i=Math.min(1,t/n);return this.slerp(e,i),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return e===0?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x=this._x*e,this._y=this._y*e,this._z=this._z*e,this._w=this._w*e),this._onChangeCallback(),this}multiply(e){return this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,t){const n=e._x,i=e._y,r=e._z,o=e._w,a=t._x,l=t._y,c=t._z,h=t._w;return this._x=n*h+o*a+i*c-r*l,this._y=i*h+o*l+r*a-n*c,this._z=r*h+o*c+n*l-i*a,this._w=o*h-n*a-i*l-r*c,this._onChangeCallback(),this}slerp(e,t){if(t===0)return this;if(t===1)return this.copy(e);const n=this._x,i=this._y,r=this._z,o=this._w;let a=o*e._w+n*e._x+i*e._y+r*e._z;if(a<0?(this._w=-e._w,this._x=-e._x,this._y=-e._y,this._z=-e._z,a=-a):this.copy(e),a>=1)return this._w=o,this._x=n,this._y=i,this._z=r,this;const l=1-a*a;if(l<=Number.EPSILON){const d=1-t;return this._w=d*o+t*this._w,this._x=d*n+t*this._x,this._y=d*i+t*this._y,this._z=d*r+t*this._z,this.normalize(),this}const c=Math.sqrt(l),h=Math.atan2(c,a),u=Math.sin((1-t)*h)/c,f=Math.sin(t*h)/c;return this._w=o*u+this._w*f,this._x=n*u+this._x*f,this._y=i*u+this._y*f,this._z=r*u+this._z*f,this._onChangeCallback(),this}slerpQuaternions(e,t,n){return this.copy(e).slerp(t,n)}random(){const e=2*Math.PI*Math.random(),t=2*Math.PI*Math.random(),n=Math.random(),i=Math.sqrt(1-n),r=Math.sqrt(n);return this.set(i*Math.sin(e),i*Math.cos(e),r*Math.sin(t),r*Math.cos(t))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,t=0){return this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e}fromBufferAttribute(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),this._onChangeCallback(),this}toJSON(){return this.toArray()}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class U{constructor(e=0,t=0,n=0){U.prototype.isVector3=!0,this.x=e,this.y=t,this.z=n}set(e,t,n){return n===void 0&&(n=this.z),this.x=e,this.y=t,this.z=n,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}applyEuler(e){return this.applyQuaternion(Cd.setFromEuler(e))}applyAxisAngle(e,t){return this.applyQuaternion(Cd.setFromAxisAngle(e,t))}applyMatrix3(e){const t=this.x,n=this.y,i=this.z,r=e.elements;return this.x=r[0]*t+r[3]*n+r[6]*i,this.y=r[1]*t+r[4]*n+r[7]*i,this.z=r[2]*t+r[5]*n+r[8]*i,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){const t=this.x,n=this.y,i=this.z,r=e.elements,o=1/(r[3]*t+r[7]*n+r[11]*i+r[15]);return this.x=(r[0]*t+r[4]*n+r[8]*i+r[12])*o,this.y=(r[1]*t+r[5]*n+r[9]*i+r[13])*o,this.z=(r[2]*t+r[6]*n+r[10]*i+r[14])*o,this}applyQuaternion(e){const t=this.x,n=this.y,i=this.z,r=e.x,o=e.y,a=e.z,l=e.w,c=2*(o*i-a*n),h=2*(a*t-r*i),u=2*(r*n-o*t);return this.x=t+l*c+o*u-a*h,this.y=n+l*h+a*c-r*u,this.z=i+l*u+r*h-o*c,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){const t=this.x,n=this.y,i=this.z,r=e.elements;return this.x=r[0]*t+r[4]*n+r[8]*i,this.y=r[1]*t+r[5]*n+r[9]*i,this.z=r[2]*t+r[6]*n+r[10]*i,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,t){return this.x=We(this.x,e.x,t.x),this.y=We(this.y,e.y,t.y),this.z=We(this.z,e.z,t.z),this}clampScalar(e,t){return this.x=We(this.x,e,t),this.y=We(this.y,e,t),this.z=We(this.z,e,t),this}clampLength(e,t){const n=this.length();return this.divideScalar(n||1).multiplyScalar(We(n,e,t))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,t){const n=e.x,i=e.y,r=e.z,o=t.x,a=t.y,l=t.z;return this.x=i*l-r*a,this.y=r*o-n*l,this.z=n*a-i*o,this}projectOnVector(e){const t=e.lengthSq();if(t===0)return this.set(0,0,0);const n=e.dot(this)/t;return this.copy(e).multiplyScalar(n)}projectOnPlane(e){return vc.copy(this).projectOnVector(e),this.sub(vc)}reflect(e){return this.sub(vc.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;const n=this.dot(e)/t;return Math.acos(We(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,n=this.y-e.y,i=this.z-e.z;return t*t+n*n+i*i}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,t,n){const i=Math.sin(t)*e;return this.x=i*Math.sin(n),this.y=Math.cos(t)*e,this.z=i*Math.cos(n),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,t,n){return this.x=e*Math.sin(t),this.y=n,this.z=e*Math.cos(t),this}setFromMatrixPosition(e){const t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}setFromMatrixScale(e){const t=this.setFromMatrixColumn(e,0).length(),n=this.setFromMatrixColumn(e,1).length(),i=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=n,this.z=i,this}setFromMatrixColumn(e,t){return this.fromArray(e.elements,t*4)}setFromMatrix3Column(e,t){return this.fromArray(e.elements,t*3)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}setFromColor(e){return this.x=e.r,this.y=e.g,this.z=e.b,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const e=Math.random()*Math.PI*2,t=Math.random()*2-1,n=Math.sqrt(1-t*t);return this.x=n*Math.cos(e),this.y=t,this.z=n*Math.sin(e),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const vc=new U,Cd=new yi;class qi{constructor(e=new U(1/0,1/0,1/0),t=new U(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=e,this.max=t}set(e,t){return this.min.copy(e),this.max.copy(t),this}setFromArray(e){this.makeEmpty();for(let t=0,n=e.length;t=this.min.x&&e.x<=this.max.x&&e.y>=this.min.y&&e.y<=this.max.y&&e.z>=this.min.z&&e.z<=this.max.z}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(e){return e.max.x>=this.min.x&&e.min.x<=this.max.x&&e.max.y>=this.min.y&&e.min.y<=this.max.y&&e.max.z>=this.min.z&&e.min.z<=this.max.z}intersectsSphere(e){return this.clampPoint(e.center,Yn),Yn.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let t,n;return e.normal.x>0?(t=e.normal.x*this.min.x,n=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,n=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,n+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,n+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,n+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,n+=e.normal.z*this.min.z),t<=-e.constant&&n>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(co),Oa.subVectors(this.max,co),lr.subVectors(e.a,co),cr.subVectors(e.b,co),hr.subVectors(e.c,co),Yi.subVectors(cr,lr),Ki.subVectors(hr,cr),Ts.subVectors(lr,hr);let t=[0,-Yi.z,Yi.y,0,-Ki.z,Ki.y,0,-Ts.z,Ts.y,Yi.z,0,-Yi.x,Ki.z,0,-Ki.x,Ts.z,0,-Ts.x,-Yi.y,Yi.x,0,-Ki.y,Ki.x,0,-Ts.y,Ts.x,0];return!bc(t,lr,cr,hr,Oa)||(t=[1,0,0,0,1,0,0,0,1],!bc(t,lr,cr,hr,Oa))?!1:(_a.crossVectors(Yi,Ki),t=[_a.x,_a.y,_a.z],bc(t,lr,cr,hr,Oa))}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,Yn).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=this.getSize(Yn).length()*.5),e}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}applyMatrix4(e){return this.isEmpty()?this:(Ei[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),Ei[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),Ei[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),Ei[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),Ei[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),Ei[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),Ei[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),Ei[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(Ei),this)}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}const Ei=[new U,new U,new U,new U,new U,new U,new U,new U],Yn=new U,ga=new qi,lr=new U,cr=new U,hr=new U,Yi=new U,Ki=new U,Ts=new U,co=new U,Oa=new U,_a=new U,Es=new U;function bc(s,e,t,n,i){for(let r=0,o=s.length-3;r<=o;r+=3){Es.fromArray(s,r);const a=i.x*Math.abs(Es.x)+i.y*Math.abs(Es.y)+i.z*Math.abs(Es.z),l=e.dot(Es),c=t.dot(Es),h=n.dot(Es);if(Math.max(-Math.max(l,c,h),Math.min(l,c,h))>a)return!1}return!0}const Vy=new qi,ho=new U,Mc=new U;class vi{constructor(e=new U,t=-1){this.isSphere=!0,this.center=e,this.radius=t}set(e,t){return this.center.copy(e),this.radius=t,this}setFromPoints(e,t){const n=this.center;t!==void 0?n.copy(t):Vy.setFromPoints(e).getCenter(n);let i=0;for(let r=0,o=e.length;rthis.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}getBoundingBox(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius=this.radius*e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){if(this.isEmpty())return this.center.copy(e),this.radius=0,this;ho.subVectors(e,this.center);const t=ho.lengthSq();if(t>this.radius*this.radius){const n=Math.sqrt(t),i=(n-this.radius)*.5;this.center.addScaledVector(ho,i/n),this.radius+=i}return this}union(e){return e.isEmpty()?this:this.isEmpty()?(this.copy(e),this):(this.center.equals(e.center)===!0?this.radius=Math.max(this.radius,e.radius):(Mc.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(ho.copy(e.center).add(Mc)),this.expandByPoint(ho.copy(e.center).sub(Mc))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return new this.constructor().copy(this)}}const Ai=new U,wc=new U,xa=new U,Ji=new U,Tc=new U,ya=new U,Ec=new U;class ra{constructor(e=new U,t=new U(0,0,-1)){this.origin=e,this.direction=t}set(e,t){return this.origin.copy(e),this.direction.copy(t),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,t){return t.copy(this.origin).addScaledVector(this.direction,e)}lookAt(e){return this.direction.copy(e).sub(this.origin).normalize(),this}recast(e){return this.origin.copy(this.at(e,Ai)),this}closestPointToPoint(e,t){t.subVectors(e,this.origin);const n=t.dot(this.direction);return n<0?t.copy(this.origin):t.copy(this.origin).addScaledVector(this.direction,n)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){const t=Ai.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(Ai.copy(this.origin).addScaledVector(this.direction,t),Ai.distanceToSquared(e))}distanceSqToSegment(e,t,n,i){wc.copy(e).add(t).multiplyScalar(.5),xa.copy(t).sub(e).normalize(),Ji.copy(this.origin).sub(wc);const r=e.distanceTo(t)*.5,o=-this.direction.dot(xa),a=Ji.dot(this.direction),l=-Ji.dot(xa),c=Ji.lengthSq(),h=Math.abs(1-o*o);let u,f,d,p;if(h>0)if(u=o*l-a,f=o*a-l,p=r*h,u>=0)if(f>=-p)if(f<=p){const O=1/h;u*=O,f*=O,d=u*(u+o*f+2*a)+f*(o*u+f+2*l)+c}else f=r,u=Math.max(0,-(o*f+a)),d=-u*u+f*(f+2*l)+c;else f=-r,u=Math.max(0,-(o*f+a)),d=-u*u+f*(f+2*l)+c;else f<=-p?(u=Math.max(0,-(-o*r+a)),f=u>0?-r:Math.min(Math.max(-r,-l),r),d=-u*u+f*(f+2*l)+c):f<=p?(u=0,f=Math.min(Math.max(-r,-l),r),d=f*(f+2*l)+c):(u=Math.max(0,-(o*r+a)),f=u>0?r:Math.min(Math.max(-r,-l),r),d=-u*u+f*(f+2*l)+c);else f=o>0?-r:r,u=Math.max(0,-(o*f+a)),d=-u*u+f*(f+2*l)+c;return n&&n.copy(this.origin).addScaledVector(this.direction,u),i&&i.copy(wc).addScaledVector(xa,f),d}intersectSphere(e,t){Ai.subVectors(e.center,this.origin);const n=Ai.dot(this.direction),i=Ai.dot(Ai)-n*n,r=e.radius*e.radius;if(i>r)return null;const o=Math.sqrt(r-i),a=n-o,l=n+o;return l<0?null:a<0?this.at(l,t):this.at(a,t)}intersectsSphere(e){return this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){const t=e.normal.dot(this.direction);if(t===0)return e.distanceToPoint(this.origin)===0?0:null;const n=-(this.origin.dot(e.normal)+e.constant)/t;return n>=0?n:null}intersectPlane(e,t){const n=this.distanceToPlane(e);return n===null?null:this.at(n,t)}intersectsPlane(e){const t=e.distanceToPoint(this.origin);return t===0||e.normal.dot(this.direction)*t<0}intersectBox(e,t){let n,i,r,o,a,l;const c=1/this.direction.x,h=1/this.direction.y,u=1/this.direction.z,f=this.origin;return c>=0?(n=(e.min.x-f.x)*c,i=(e.max.x-f.x)*c):(n=(e.max.x-f.x)*c,i=(e.min.x-f.x)*c),h>=0?(r=(e.min.y-f.y)*h,o=(e.max.y-f.y)*h):(r=(e.max.y-f.y)*h,o=(e.min.y-f.y)*h),n>o||r>i||((r>n||isNaN(n))&&(n=r),(o=0?(a=(e.min.z-f.z)*u,l=(e.max.z-f.z)*u):(a=(e.max.z-f.z)*u,l=(e.min.z-f.z)*u),n>l||a>i)||((a>n||n!==n)&&(n=a),(l=0?n:i,t)}intersectsBox(e){return this.intersectBox(e,Ai)!==null}intersectTriangle(e,t,n,i,r){Tc.subVectors(t,e),ya.subVectors(n,e),Ec.crossVectors(Tc,ya);let o=this.direction.dot(Ec),a;if(o>0){if(i)return null;a=1}else if(o<0)a=-1,o=-o;else return null;Ji.subVectors(this.origin,e);const l=a*this.direction.dot(ya.crossVectors(Ji,ya));if(l<0)return null;const c=a*this.direction.dot(Tc.cross(Ji));if(c<0||l+c>o)return null;const h=-a*Ji.dot(Ec);return h<0?null:this.at(h/o,r)}applyMatrix4(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}equals(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}clone(){return new this.constructor().copy(this)}}class Ge{constructor(e,t,n,i,r,o,a,l,c,h,u,f,d,p,O,g){Ge.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],e!==void 0&&this.set(e,t,n,i,r,o,a,l,c,h,u,f,d,p,O,g)}set(e,t,n,i,r,o,a,l,c,h,u,f,d,p,O,g){const m=this.elements;return m[0]=e,m[4]=t,m[8]=n,m[12]=i,m[1]=r,m[5]=o,m[9]=a,m[13]=l,m[2]=c,m[6]=h,m[10]=u,m[14]=f,m[3]=d,m[7]=p,m[11]=O,m[15]=g,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return new Ge().fromArray(this.elements)}copy(e){const t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],this}copyPosition(e){const t=this.elements,n=e.elements;return t[12]=n[12],t[13]=n[13],t[14]=n[14],this}setFromMatrix3(e){const t=e.elements;return this.set(t[0],t[3],t[6],0,t[1],t[4],t[7],0,t[2],t[5],t[8],0,0,0,0,1),this}extractBasis(e,t,n){return e.setFromMatrixColumn(this,0),t.setFromMatrixColumn(this,1),n.setFromMatrixColumn(this,2),this}makeBasis(e,t,n){return this.set(e.x,t.x,n.x,0,e.y,t.y,n.y,0,e.z,t.z,n.z,0,0,0,0,1),this}extractRotation(e){const t=this.elements,n=e.elements,i=1/ur.setFromMatrixColumn(e,0).length(),r=1/ur.setFromMatrixColumn(e,1).length(),o=1/ur.setFromMatrixColumn(e,2).length();return t[0]=n[0]*i,t[1]=n[1]*i,t[2]=n[2]*i,t[3]=0,t[4]=n[4]*r,t[5]=n[5]*r,t[6]=n[6]*r,t[7]=0,t[8]=n[8]*o,t[9]=n[9]*o,t[10]=n[10]*o,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromEuler(e){const t=this.elements,n=e.x,i=e.y,r=e.z,o=Math.cos(n),a=Math.sin(n),l=Math.cos(i),c=Math.sin(i),h=Math.cos(r),u=Math.sin(r);if(e.order==="XYZ"){const f=o*h,d=o*u,p=a*h,O=a*u;t[0]=l*h,t[4]=-l*u,t[8]=c,t[1]=d+p*c,t[5]=f-O*c,t[9]=-a*l,t[2]=O-f*c,t[6]=p+d*c,t[10]=o*l}else if(e.order==="YXZ"){const f=l*h,d=l*u,p=c*h,O=c*u;t[0]=f+O*a,t[4]=p*a-d,t[8]=o*c,t[1]=o*u,t[5]=o*h,t[9]=-a,t[2]=d*a-p,t[6]=O+f*a,t[10]=o*l}else if(e.order==="ZXY"){const f=l*h,d=l*u,p=c*h,O=c*u;t[0]=f-O*a,t[4]=-o*u,t[8]=p+d*a,t[1]=d+p*a,t[5]=o*h,t[9]=O-f*a,t[2]=-o*c,t[6]=a,t[10]=o*l}else if(e.order==="ZYX"){const f=o*h,d=o*u,p=a*h,O=a*u;t[0]=l*h,t[4]=p*c-d,t[8]=f*c+O,t[1]=l*u,t[5]=O*c+f,t[9]=d*c-p,t[2]=-c,t[6]=a*l,t[10]=o*l}else if(e.order==="YZX"){const f=o*l,d=o*c,p=a*l,O=a*c;t[0]=l*h,t[4]=O-f*u,t[8]=p*u+d,t[1]=u,t[5]=o*h,t[9]=-a*h,t[2]=-c*h,t[6]=d*u+p,t[10]=f-O*u}else if(e.order==="XZY"){const f=o*l,d=o*c,p=a*l,O=a*c;t[0]=l*h,t[4]=-u,t[8]=c*h,t[1]=f*u+O,t[5]=o*h,t[9]=d*u-p,t[2]=p*u-d,t[6]=a*h,t[10]=O*u+f}return t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromQuaternion(e){return this.compose(zy,e,Zy)}lookAt(e,t,n){const i=this.elements;return An.subVectors(e,t),An.lengthSq()===0&&(An.z=1),An.normalize(),es.crossVectors(n,An),es.lengthSq()===0&&(Math.abs(n.z)===1?An.x+=1e-4:An.z+=1e-4,An.normalize(),es.crossVectors(n,An)),es.normalize(),Sa.crossVectors(An,es),i[0]=es.x,i[4]=Sa.x,i[8]=An.x,i[1]=es.y,i[5]=Sa.y,i[9]=An.y,i[2]=es.z,i[6]=Sa.z,i[10]=An.z,this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const n=e.elements,i=t.elements,r=this.elements,o=n[0],a=n[4],l=n[8],c=n[12],h=n[1],u=n[5],f=n[9],d=n[13],p=n[2],O=n[6],g=n[10],m=n[14],b=n[3],x=n[7],_=n[11],w=n[15],T=i[0],E=i[4],P=i[8],y=i[12],S=i[1],R=i[5],k=i[9],I=i[13],$=i[2],H=i[6],L=i[10],z=i[14],B=i[3],ee=i[7],se=i[11],ge=i[15];return r[0]=o*T+a*S+l*$+c*B,r[4]=o*E+a*R+l*H+c*ee,r[8]=o*P+a*k+l*L+c*se,r[12]=o*y+a*I+l*z+c*ge,r[1]=h*T+u*S+f*$+d*B,r[5]=h*E+u*R+f*H+d*ee,r[9]=h*P+u*k+f*L+d*se,r[13]=h*y+u*I+f*z+d*ge,r[2]=p*T+O*S+g*$+m*B,r[6]=p*E+O*R+g*H+m*ee,r[10]=p*P+O*k+g*L+m*se,r[14]=p*y+O*I+g*z+m*ge,r[3]=b*T+x*S+_*$+w*B,r[7]=b*E+x*R+_*H+w*ee,r[11]=b*P+x*k+_*L+w*se,r[15]=b*y+x*I+_*z+w*ge,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[4]*=e,t[8]*=e,t[12]*=e,t[1]*=e,t[5]*=e,t[9]*=e,t[13]*=e,t[2]*=e,t[6]*=e,t[10]*=e,t[14]*=e,t[3]*=e,t[7]*=e,t[11]*=e,t[15]*=e,this}determinant(){const e=this.elements,t=e[0],n=e[4],i=e[8],r=e[12],o=e[1],a=e[5],l=e[9],c=e[13],h=e[2],u=e[6],f=e[10],d=e[14],p=e[3],O=e[7],g=e[11],m=e[15];return p*(+r*l*u-i*c*u-r*a*f+n*c*f+i*a*d-n*l*d)+O*(+t*l*d-t*c*f+r*o*f-i*o*d+i*c*h-r*l*h)+g*(+t*c*u-t*a*d-r*o*u+n*o*d+r*a*h-n*c*h)+m*(-i*a*h-t*l*u+t*a*f+i*o*u-n*o*f+n*l*h)}transpose(){const e=this.elements;let t;return t=e[1],e[1]=e[4],e[4]=t,t=e[2],e[2]=e[8],e[8]=t,t=e[6],e[6]=e[9],e[9]=t,t=e[3],e[3]=e[12],e[12]=t,t=e[7],e[7]=e[13],e[13]=t,t=e[11],e[11]=e[14],e[14]=t,this}setPosition(e,t,n){const i=this.elements;return e.isVector3?(i[12]=e.x,i[13]=e.y,i[14]=e.z):(i[12]=e,i[13]=t,i[14]=n),this}invert(){const e=this.elements,t=e[0],n=e[1],i=e[2],r=e[3],o=e[4],a=e[5],l=e[6],c=e[7],h=e[8],u=e[9],f=e[10],d=e[11],p=e[12],O=e[13],g=e[14],m=e[15],b=u*g*c-O*f*c+O*l*d-a*g*d-u*l*m+a*f*m,x=p*f*c-h*g*c-p*l*d+o*g*d+h*l*m-o*f*m,_=h*O*c-p*u*c+p*a*d-o*O*d-h*a*m+o*u*m,w=p*u*l-h*O*l-p*a*f+o*O*f+h*a*g-o*u*g,T=t*b+n*x+i*_+r*w;if(T===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const E=1/T;return e[0]=b*E,e[1]=(O*f*r-u*g*r-O*i*d+n*g*d+u*i*m-n*f*m)*E,e[2]=(a*g*r-O*l*r+O*i*c-n*g*c-a*i*m+n*l*m)*E,e[3]=(u*l*r-a*f*r-u*i*c+n*f*c+a*i*d-n*l*d)*E,e[4]=x*E,e[5]=(h*g*r-p*f*r+p*i*d-t*g*d-h*i*m+t*f*m)*E,e[6]=(p*l*r-o*g*r-p*i*c+t*g*c+o*i*m-t*l*m)*E,e[7]=(o*f*r-h*l*r+h*i*c-t*f*c-o*i*d+t*l*d)*E,e[8]=_*E,e[9]=(p*u*r-h*O*r-p*n*d+t*O*d+h*n*m-t*u*m)*E,e[10]=(o*O*r-p*a*r+p*n*c-t*O*c-o*n*m+t*a*m)*E,e[11]=(h*a*r-o*u*r-h*n*c+t*u*c+o*n*d-t*a*d)*E,e[12]=w*E,e[13]=(h*O*i-p*u*i+p*n*f-t*O*f-h*n*g+t*u*g)*E,e[14]=(p*a*i-o*O*i-p*n*l+t*O*l+o*n*g-t*a*g)*E,e[15]=(o*u*i-h*a*i+h*n*l-t*u*l-o*n*f+t*a*f)*E,this}scale(e){const t=this.elements,n=e.x,i=e.y,r=e.z;return t[0]*=n,t[4]*=i,t[8]*=r,t[1]*=n,t[5]*=i,t[9]*=r,t[2]*=n,t[6]*=i,t[10]*=r,t[3]*=n,t[7]*=i,t[11]*=r,this}getMaxScaleOnAxis(){const e=this.elements,t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],n=e[4]*e[4]+e[5]*e[5]+e[6]*e[6],i=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(t,n,i))}makeTranslation(e,t,n){return e.isVector3?this.set(1,0,0,e.x,0,1,0,e.y,0,0,1,e.z,0,0,0,1):this.set(1,0,0,e,0,1,0,t,0,0,1,n,0,0,0,1),this}makeRotationX(e){const t=Math.cos(e),n=Math.sin(e);return this.set(1,0,0,0,0,t,-n,0,0,n,t,0,0,0,0,1),this}makeRotationY(e){const t=Math.cos(e),n=Math.sin(e);return this.set(t,0,n,0,0,1,0,0,-n,0,t,0,0,0,0,1),this}makeRotationZ(e){const t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,0,n,t,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(e,t){const n=Math.cos(t),i=Math.sin(t),r=1-n,o=e.x,a=e.y,l=e.z,c=r*o,h=r*a;return this.set(c*o+n,c*a-i*l,c*l+i*a,0,c*a+i*l,h*a+n,h*l-i*o,0,c*l-i*a,h*l+i*o,r*l*l+n,0,0,0,0,1),this}makeScale(e,t,n){return this.set(e,0,0,0,0,t,0,0,0,0,n,0,0,0,0,1),this}makeShear(e,t,n,i,r,o){return this.set(1,n,r,0,e,1,o,0,t,i,1,0,0,0,0,1),this}compose(e,t,n){const i=this.elements,r=t._x,o=t._y,a=t._z,l=t._w,c=r+r,h=o+o,u=a+a,f=r*c,d=r*h,p=r*u,O=o*h,g=o*u,m=a*u,b=l*c,x=l*h,_=l*u,w=n.x,T=n.y,E=n.z;return i[0]=(1-(O+m))*w,i[1]=(d+_)*w,i[2]=(p-x)*w,i[3]=0,i[4]=(d-_)*T,i[5]=(1-(f+m))*T,i[6]=(g+b)*T,i[7]=0,i[8]=(p+x)*E,i[9]=(g-b)*E,i[10]=(1-(f+O))*E,i[11]=0,i[12]=e.x,i[13]=e.y,i[14]=e.z,i[15]=1,this}decompose(e,t,n){const i=this.elements;let r=ur.set(i[0],i[1],i[2]).length();const o=ur.set(i[4],i[5],i[6]).length(),a=ur.set(i[8],i[9],i[10]).length();this.determinant()<0&&(r=-r),e.x=i[12],e.y=i[13],e.z=i[14],Kn.copy(this);const c=1/r,h=1/o,u=1/a;return Kn.elements[0]*=c,Kn.elements[1]*=c,Kn.elements[2]*=c,Kn.elements[4]*=h,Kn.elements[5]*=h,Kn.elements[6]*=h,Kn.elements[8]*=u,Kn.elements[9]*=u,Kn.elements[10]*=u,t.setFromRotationMatrix(Kn),n.x=r,n.y=o,n.z=a,this}makePerspective(e,t,n,i,r,o,a=Fi){const l=this.elements,c=2*r/(t-e),h=2*r/(n-i),u=(t+e)/(t-e),f=(n+i)/(n-i);let d,p;if(a===Fi)d=-(o+r)/(o-r),p=-2*o*r/(o-r);else if(a===Rl)d=-o/(o-r),p=-o*r/(o-r);else throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+a);return l[0]=c,l[4]=0,l[8]=u,l[12]=0,l[1]=0,l[5]=h,l[9]=f,l[13]=0,l[2]=0,l[6]=0,l[10]=d,l[14]=p,l[3]=0,l[7]=0,l[11]=-1,l[15]=0,this}makeOrthographic(e,t,n,i,r,o,a=Fi){const l=this.elements,c=1/(t-e),h=1/(n-i),u=1/(o-r),f=(t+e)*c,d=(n+i)*h;let p,O;if(a===Fi)p=(o+r)*u,O=-2*u;else if(a===Rl)p=r*u,O=-1*u;else throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+a);return l[0]=2*c,l[4]=0,l[8]=0,l[12]=-f,l[1]=0,l[5]=2*h,l[9]=0,l[13]=-d,l[2]=0,l[6]=0,l[10]=O,l[14]=-p,l[3]=0,l[7]=0,l[11]=0,l[15]=1,this}equals(e){const t=this.elements,n=e.elements;for(let i=0;i<16;i++)if(t[i]!==n[i])return!1;return!0}fromArray(e,t=0){for(let n=0;n<16;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){const n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e[t+9]=n[9],e[t+10]=n[10],e[t+11]=n[11],e[t+12]=n[12],e[t+13]=n[13],e[t+14]=n[14],e[t+15]=n[15],e}}const ur=new U,Kn=new Ge,zy=new U(0,0,0),Zy=new U(1,1,1),es=new U,Sa=new U,An=new U,kd=new Ge,Ld=new yi;class ri{constructor(e=0,t=0,n=0,i=ri.DEFAULT_ORDER){this.isEuler=!0,this._x=e,this._y=t,this._z=n,this._order=i}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get order(){return this._order}set order(e){this._order=e,this._onChangeCallback()}set(e,t,n,i=this._order){return this._x=e,this._y=t,this._z=n,this._order=i,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this._onChangeCallback(),this}setFromRotationMatrix(e,t=this._order,n=!0){const i=e.elements,r=i[0],o=i[4],a=i[8],l=i[1],c=i[5],h=i[9],u=i[2],f=i[6],d=i[10];switch(t){case"XYZ":this._y=Math.asin(We(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(-h,d),this._z=Math.atan2(-o,r)):(this._x=Math.atan2(f,c),this._z=0);break;case"YXZ":this._x=Math.asin(-We(h,-1,1)),Math.abs(h)<.9999999?(this._y=Math.atan2(a,d),this._z=Math.atan2(l,c)):(this._y=Math.atan2(-u,r),this._z=0);break;case"ZXY":this._x=Math.asin(We(f,-1,1)),Math.abs(f)<.9999999?(this._y=Math.atan2(-u,d),this._z=Math.atan2(-o,c)):(this._y=0,this._z=Math.atan2(l,r));break;case"ZYX":this._y=Math.asin(-We(u,-1,1)),Math.abs(u)<.9999999?(this._x=Math.atan2(f,d),this._z=Math.atan2(l,r)):(this._x=0,this._z=Math.atan2(-o,c));break;case"YZX":this._z=Math.asin(We(l,-1,1)),Math.abs(l)<.9999999?(this._x=Math.atan2(-h,c),this._y=Math.atan2(-u,r)):(this._x=0,this._y=Math.atan2(a,d));break;case"XZY":this._z=Math.asin(-We(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(f,c),this._y=Math.atan2(a,r)):(this._x=Math.atan2(-h,d),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+t)}return this._order=t,n===!0&&this._onChangeCallback(),this}setFromQuaternion(e,t,n){return kd.makeRotationFromQuaternion(e),this.setFromRotationMatrix(kd,t,n)}setFromVector3(e,t=this._order){return this.set(e.x,e.y,e.z,t)}reorder(e){return Ld.setFromEuler(this),this.setFromQuaternion(Ld,e)}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._order===this._order}fromArray(e){return this._x=e[0],this._y=e[1],this._z=e[2],e[3]!==void 0&&(this._order=e[3]),this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._order,e}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}}ri.DEFAULT_ORDER="XYZ";class Wg{constructor(){this.mask=1}set(e){this.mask=(1<>>0}enable(e){this.mask|=1<1){for(let t=0;t1){for(let n=0;n0&&(i.userData=this.userData),i.layers=this.layers.mask,i.matrix=this.matrix.toArray(),i.up=this.up.toArray(),this.matrixAutoUpdate===!1&&(i.matrixAutoUpdate=!1),this.isInstancedMesh&&(i.type="InstancedMesh",i.count=this.count,i.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(i.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(i.type="BatchedMesh",i.perObjectFrustumCulled=this.perObjectFrustumCulled,i.sortObjects=this.sortObjects,i.drawRanges=this._drawRanges,i.reservedRanges=this._reservedRanges,i.visibility=this._visibility,i.active=this._active,i.bounds=this._bounds.map(a=>({boxInitialized:a.boxInitialized,boxMin:a.box.min.toArray(),boxMax:a.box.max.toArray(),sphereInitialized:a.sphereInitialized,sphereRadius:a.sphere.radius,sphereCenter:a.sphere.center.toArray()})),i.maxInstanceCount=this._maxInstanceCount,i.maxVertexCount=this._maxVertexCount,i.maxIndexCount=this._maxIndexCount,i.geometryInitialized=this._geometryInitialized,i.geometryCount=this._geometryCount,i.matricesTexture=this._matricesTexture.toJSON(e),this._colorsTexture!==null&&(i.colorsTexture=this._colorsTexture.toJSON(e)),this.boundingSphere!==null&&(i.boundingSphere={center:i.boundingSphere.center.toArray(),radius:i.boundingSphere.radius}),this.boundingBox!==null&&(i.boundingBox={min:i.boundingBox.min.toArray(),max:i.boundingBox.max.toArray()}));function r(a,l){return a[l.uuid]===void 0&&(a[l.uuid]=l.toJSON(e)),l.uuid}if(this.isScene)this.background&&(this.background.isColor?i.background=this.background.toJSON():this.background.isTexture&&(i.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(i.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){i.geometry=r(e.geometries,this.geometry);const a=this.geometry.parameters;if(a!==void 0&&a.shapes!==void 0){const l=a.shapes;if(Array.isArray(l))for(let c=0,h=l.length;c0){i.children=[];for(let a=0;a0){i.animations=[];for(let a=0;a0&&(n.geometries=a),l.length>0&&(n.materials=l),c.length>0&&(n.textures=c),h.length>0&&(n.images=h),u.length>0&&(n.shapes=u),f.length>0&&(n.skeletons=f),d.length>0&&(n.animations=d),p.length>0&&(n.nodes=p)}return n.object=i,n;function o(a){const l=[];for(const c in a){const h=a[c];delete h.metadata,l.push(h)}return l}}clone(e){return new this.constructor().copy(this,e)}copy(e,t=!0){if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldAutoUpdate=e.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.animations=e.animations.slice(),this.userData=JSON.parse(JSON.stringify(e.userData)),t===!0)for(let n=0;n0?i.multiplyScalar(1/Math.sqrt(r)):i.set(0,0,0)}static getBarycoord(e,t,n,i,r){Jn.subVectors(i,t),Ri.subVectors(n,t),Pc.subVectors(e,t);const o=Jn.dot(Jn),a=Jn.dot(Ri),l=Jn.dot(Pc),c=Ri.dot(Ri),h=Ri.dot(Pc),u=o*c-a*a;if(u===0)return r.set(0,0,0),null;const f=1/u,d=(c*l-a*h)*f,p=(o*h-a*l)*f;return r.set(1-d-p,p,d)}static containsPoint(e,t,n,i){return this.getBarycoord(e,t,n,i,Ci)===null?!1:Ci.x>=0&&Ci.y>=0&&Ci.x+Ci.y<=1}static getInterpolation(e,t,n,i,r,o,a,l){return this.getBarycoord(e,t,n,i,Ci)===null?(l.x=0,l.y=0,"z"in l&&(l.z=0),"w"in l&&(l.w=0),null):(l.setScalar(0),l.addScaledVector(r,Ci.x),l.addScaledVector(o,Ci.y),l.addScaledVector(a,Ci.z),l)}static getInterpolatedAttribute(e,t,n,i,r,o){return Lc.setScalar(0),Dc.setScalar(0),Ic.setScalar(0),Lc.fromBufferAttribute(e,t),Dc.fromBufferAttribute(e,n),Ic.fromBufferAttribute(e,i),o.setScalar(0),o.addScaledVector(Lc,r.x),o.addScaledVector(Dc,r.y),o.addScaledVector(Ic,r.z),o}static isFrontFacing(e,t,n,i){return Jn.subVectors(n,t),Ri.subVectors(e,t),Jn.cross(Ri).dot(i)<0}set(e,t,n){return this.a.copy(e),this.b.copy(t),this.c.copy(n),this}setFromPointsAndIndices(e,t,n,i){return this.a.copy(e[t]),this.b.copy(e[n]),this.c.copy(e[i]),this}setFromAttributeAndIndices(e,t,n,i){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,n),this.c.fromBufferAttribute(e,i),this}clone(){return new this.constructor().copy(this)}copy(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}getArea(){return Jn.subVectors(this.c,this.b),Ri.subVectors(this.a,this.b),Jn.cross(Ri).length()*.5}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(e){return ti.getNormal(this.a,this.b,this.c,e)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(e,t){return ti.getBarycoord(e,this.a,this.b,this.c,t)}getInterpolation(e,t,n,i,r){return ti.getInterpolation(e,this.a,this.b,this.c,t,n,i,r)}containsPoint(e){return ti.containsPoint(e,this.a,this.b,this.c)}isFrontFacing(e){return ti.isFrontFacing(this.a,this.b,this.c,e)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,t){const n=this.a,i=this.b,r=this.c;let o,a;pr.subVectors(i,n),mr.subVectors(r,n),Rc.subVectors(e,n);const l=pr.dot(Rc),c=mr.dot(Rc);if(l<=0&&c<=0)return t.copy(n);Cc.subVectors(e,i);const h=pr.dot(Cc),u=mr.dot(Cc);if(h>=0&&u<=h)return t.copy(i);const f=l*u-h*c;if(f<=0&&l>=0&&h<=0)return o=l/(l-h),t.copy(n).addScaledVector(pr,o);kc.subVectors(e,r);const d=pr.dot(kc),p=mr.dot(kc);if(p>=0&&d<=p)return t.copy(r);const O=d*c-l*p;if(O<=0&&c>=0&&p<=0)return a=c/(c-p),t.copy(n).addScaledVector(mr,a);const g=h*p-d*u;if(g<=0&&u-h>=0&&d-p>=0)return Bd.subVectors(r,i),a=(u-h)/(u-h+(d-p)),t.copy(i).addScaledVector(Bd,a);const m=1/(g+O+f);return o=O*m,a=f*m,t.copy(n).addScaledVector(pr,o).addScaledVector(mr,a)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}}const jg={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},ts={h:0,s:0,l:0},ba={h:0,s:0,l:0};function Uc(s,e,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?s+(e-s)*6*t:t<1/2?e:t<2/3?s+(e-s)*6*(2/3-t):s}class De{constructor(e,t,n){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,t,n)}set(e,t,n){if(t===void 0&&n===void 0){const i=e;i&&i.isColor?this.copy(i):typeof i=="number"?this.setHex(i):typeof i=="string"&&this.setStyle(i)}else this.setRGB(e,t,n);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,t=Xt){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(e&255)/255,nt.toWorkingColorSpace(this,t),this}setRGB(e,t,n,i=nt.workingColorSpace){return this.r=e,this.g=t,this.b=n,nt.toWorkingColorSpace(this,i),this}setHSL(e,t,n,i=nt.workingColorSpace){if(e=Sf(e,1),t=We(t,0,1),n=We(n,0,1),t===0)this.r=this.g=this.b=n;else{const r=n<=.5?n*(1+t):n+t-n*t,o=2*n-r;this.r=Uc(o,r,e+1/3),this.g=Uc(o,r,e),this.b=Uc(o,r,e-1/3)}return nt.toWorkingColorSpace(this,i),this}setStyle(e,t=Xt){function n(r){r!==void 0&&parseFloat(r)<1&&console.warn("THREE.Color: Alpha component of "+e+" will be ignored.")}let i;if(i=/^(\w+)\(([^\)]*)\)/.exec(e)){let r;const o=i[1],a=i[2];switch(o){case"rgb":case"rgba":if(r=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return n(r[4]),this.setRGB(Math.min(255,parseInt(r[1],10))/255,Math.min(255,parseInt(r[2],10))/255,Math.min(255,parseInt(r[3],10))/255,t);if(r=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return n(r[4]),this.setRGB(Math.min(100,parseInt(r[1],10))/100,Math.min(100,parseInt(r[2],10))/100,Math.min(100,parseInt(r[3],10))/100,t);break;case"hsl":case"hsla":if(r=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return n(r[4]),this.setHSL(parseFloat(r[1])/360,parseFloat(r[2])/100,parseFloat(r[3])/100,t);break;default:console.warn("THREE.Color: Unknown color model "+e)}}else if(i=/^\#([A-Fa-f\d]+)$/.exec(e)){const r=i[1],o=r.length;if(o===3)return this.setRGB(parseInt(r.charAt(0),16)/15,parseInt(r.charAt(1),16)/15,parseInt(r.charAt(2),16)/15,t);if(o===6)return this.setHex(parseInt(r,16),t);console.warn("THREE.Color: Invalid hex color "+e)}else if(e&&e.length>0)return this.setColorName(e,t);return this}setColorName(e,t=Xt){const n=jg[e.toLowerCase()];return n!==void 0?this.setHex(n,t):console.warn("THREE.Color: Unknown color "+e),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=Vi(e.r),this.g=Vi(e.g),this.b=Vi(e.b),this}copyLinearToSRGB(e){return this.r=kr(e.r),this.g=kr(e.g),this.b=kr(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=Xt){return nt.fromWorkingColorSpace(rn.copy(this),e),Math.round(We(rn.r*255,0,255))*65536+Math.round(We(rn.g*255,0,255))*256+Math.round(We(rn.b*255,0,255))}getHexString(e=Xt){return("000000"+this.getHex(e).toString(16)).slice(-6)}getHSL(e,t=nt.workingColorSpace){nt.fromWorkingColorSpace(rn.copy(this),t);const n=rn.r,i=rn.g,r=rn.b,o=Math.max(n,i,r),a=Math.min(n,i,r);let l,c;const h=(a+o)/2;if(a===o)l=0,c=0;else{const u=o-a;switch(c=h<=.5?u/(o+a):u/(2-o-a),o){case n:l=(i-r)/u+(i0!=e>0&&this.version++,this._alphaTest=e}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(e!==void 0)for(const t in e){const n=e[t];if(n===void 0){console.warn(`THREE.Material: parameter '${t}' has value of undefined.`);continue}const i=this[t];if(i===void 0){console.warn(`THREE.Material: '${t}' is not a property of THREE.${this.type}.`);continue}i&&i.isColor?i.set(n):i&&i.isVector3&&n&&n.isVector3?i.copy(n):this[t]=n}}toJSON(e){const t=e===void 0||typeof e=="string";t&&(e={textures:{},images:{}});const n={metadata:{version:4.6,type:"Material",generator:"Material.toJSON"}};n.uuid=this.uuid,n.type=this.type,this.name!==""&&(n.name=this.name),this.color&&this.color.isColor&&(n.color=this.color.getHex()),this.roughness!==void 0&&(n.roughness=this.roughness),this.metalness!==void 0&&(n.metalness=this.metalness),this.sheen!==void 0&&(n.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(n.sheenColor=this.sheenColor.getHex()),this.sheenRoughness!==void 0&&(n.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(n.emissive=this.emissive.getHex()),this.emissiveIntensity!==void 0&&this.emissiveIntensity!==1&&(n.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(n.specular=this.specular.getHex()),this.specularIntensity!==void 0&&(n.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(n.specularColor=this.specularColor.getHex()),this.shininess!==void 0&&(n.shininess=this.shininess),this.clearcoat!==void 0&&(n.clearcoat=this.clearcoat),this.clearcoatRoughness!==void 0&&(n.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(n.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(n.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(n.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,n.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.dispersion!==void 0&&(n.dispersion=this.dispersion),this.iridescence!==void 0&&(n.iridescence=this.iridescence),this.iridescenceIOR!==void 0&&(n.iridescenceIOR=this.iridescenceIOR),this.iridescenceThicknessRange!==void 0&&(n.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(n.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(n.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),this.anisotropy!==void 0&&(n.anisotropy=this.anisotropy),this.anisotropyRotation!==void 0&&(n.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(n.anisotropyMap=this.anisotropyMap.toJSON(e).uuid),this.map&&this.map.isTexture&&(n.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(n.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(n.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(n.lightMap=this.lightMap.toJSON(e).uuid,n.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(n.aoMap=this.aoMap.toJSON(e).uuid,n.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(n.bumpMap=this.bumpMap.toJSON(e).uuid,n.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(n.normalMap=this.normalMap.toJSON(e).uuid,n.normalMapType=this.normalMapType,n.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(n.displacementMap=this.displacementMap.toJSON(e).uuid,n.displacementScale=this.displacementScale,n.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(n.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(n.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(n.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(n.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(n.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(n.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(n.envMap=this.envMap.toJSON(e).uuid,this.combine!==void 0&&(n.combine=this.combine)),this.envMapRotation!==void 0&&(n.envMapRotation=this.envMapRotation.toArray()),this.envMapIntensity!==void 0&&(n.envMapIntensity=this.envMapIntensity),this.reflectivity!==void 0&&(n.reflectivity=this.reflectivity),this.refractionRatio!==void 0&&(n.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(n.gradientMap=this.gradientMap.toJSON(e).uuid),this.transmission!==void 0&&(n.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(n.transmissionMap=this.transmissionMap.toJSON(e).uuid),this.thickness!==void 0&&(n.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(n.thicknessMap=this.thicknessMap.toJSON(e).uuid),this.attenuationDistance!==void 0&&this.attenuationDistance!==1/0&&(n.attenuationDistance=this.attenuationDistance),this.attenuationColor!==void 0&&(n.attenuationColor=this.attenuationColor.getHex()),this.size!==void 0&&(n.size=this.size),this.shadowSide!==null&&(n.shadowSide=this.shadowSide),this.sizeAttenuation!==void 0&&(n.sizeAttenuation=this.sizeAttenuation),this.blending!==Rr&&(n.blending=this.blending),this.side!==Gi&&(n.side=this.side),this.vertexColors===!0&&(n.vertexColors=!0),this.opacity<1&&(n.opacity=this.opacity),this.transparent===!0&&(n.transparent=!0),this.blendSrc!==Ah&&(n.blendSrc=this.blendSrc),this.blendDst!==Ph&&(n.blendDst=this.blendDst),this.blendEquation!==Is&&(n.blendEquation=this.blendEquation),this.blendSrcAlpha!==null&&(n.blendSrcAlpha=this.blendSrcAlpha),this.blendDstAlpha!==null&&(n.blendDstAlpha=this.blendDstAlpha),this.blendEquationAlpha!==null&&(n.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(n.blendColor=this.blendColor.getHex()),this.blendAlpha!==0&&(n.blendAlpha=this.blendAlpha),this.depthFunc!==Fr&&(n.depthFunc=this.depthFunc),this.depthTest===!1&&(n.depthTest=this.depthTest),this.depthWrite===!1&&(n.depthWrite=this.depthWrite),this.colorWrite===!1&&(n.colorWrite=this.colorWrite),this.stencilWriteMask!==255&&(n.stencilWriteMask=this.stencilWriteMask),this.stencilFunc!==wd&&(n.stencilFunc=this.stencilFunc),this.stencilRef!==0&&(n.stencilRef=this.stencilRef),this.stencilFuncMask!==255&&(n.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==or&&(n.stencilFail=this.stencilFail),this.stencilZFail!==or&&(n.stencilZFail=this.stencilZFail),this.stencilZPass!==or&&(n.stencilZPass=this.stencilZPass),this.stencilWrite===!0&&(n.stencilWrite=this.stencilWrite),this.rotation!==void 0&&this.rotation!==0&&(n.rotation=this.rotation),this.polygonOffset===!0&&(n.polygonOffset=!0),this.polygonOffsetFactor!==0&&(n.polygonOffsetFactor=this.polygonOffsetFactor),this.polygonOffsetUnits!==0&&(n.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth!==void 0&&this.linewidth!==1&&(n.linewidth=this.linewidth),this.dashSize!==void 0&&(n.dashSize=this.dashSize),this.gapSize!==void 0&&(n.gapSize=this.gapSize),this.scale!==void 0&&(n.scale=this.scale),this.dithering===!0&&(n.dithering=!0),this.alphaTest>0&&(n.alphaTest=this.alphaTest),this.alphaHash===!0&&(n.alphaHash=!0),this.alphaToCoverage===!0&&(n.alphaToCoverage=!0),this.premultipliedAlpha===!0&&(n.premultipliedAlpha=!0),this.forceSinglePass===!0&&(n.forceSinglePass=!0),this.wireframe===!0&&(n.wireframe=!0),this.wireframeLinewidth>1&&(n.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!=="round"&&(n.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!=="round"&&(n.wireframeLinejoin=this.wireframeLinejoin),this.flatShading===!0&&(n.flatShading=!0),this.visible===!1&&(n.visible=!1),this.toneMapped===!1&&(n.toneMapped=!1),this.fog===!1&&(n.fog=!1),Object.keys(this.userData).length>0&&(n.userData=this.userData);function i(r){const o=[];for(const a in r){const l=r[a];delete l.metadata,o.push(l)}return o}if(t){const r=i(e.textures),o=i(e.images);r.length>0&&(n.textures=r),o.length>0&&(n.images=o)}return n}clone(){return new this.constructor().copy(this)}copy(e){this.name=e.name,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.blendColor.copy(e.blendColor),this.blendAlpha=e.blendAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;const t=e.clippingPlanes;let n=null;if(t!==null){const i=t.length;n=new Array(i);for(let r=0;r!==i;++r)n[r]=t[r].clone()}return this.clippingPlanes=n,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipShadows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.alphaHash=e.alphaHash,this.alphaToCoverage=e.alphaToCoverage,this.premultipliedAlpha=e.premultipliedAlpha,this.forceSinglePass=e.forceSinglePass,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(e){e===!0&&this.version++}onBuild(){console.warn("Material: onBuild() has been removed.")}}class $s extends Dn{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new De(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new ri,this.combine=ff,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}}const Nt=new U,Ma=new Ue;let qy=0;class On{constructor(e,t,n=!1){if(Array.isArray(e))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,Object.defineProperty(this,"id",{value:qy++}),this.name="",this.array=e,this.itemSize=t,this.count=e!==void 0?e.length/t:0,this.normalized=n,this.usage=fu,this.updateRanges=[],this.gpuType=ni,this.version=0}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this.gpuType=e.gpuType,this}copyAt(e,t,n){e*=this.itemSize,n*=t.itemSize;for(let i=0,r=this.itemSize;it.count&&console.warn("THREE.BufferGeometry: Buffer size too small for points data. Use .dispose() and create a new geometry."),t.needsUpdate=!0}return this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new qi);const e=this.attributes.position,t=this.morphAttributes.position;if(e&&e.isGLBufferAttribute){console.error("THREE.BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box.",this),this.boundingBox.set(new U(-1/0,-1/0,-1/0),new U(1/0,1/0,1/0));return}if(e!==void 0){if(this.boundingBox.setFromBufferAttribute(e),t)for(let n=0,i=t.length;n0&&(e.userData=this.userData),this.parameters!==void 0){const l=this.parameters;for(const c in l)l[c]!==void 0&&(e[c]=l[c]);return e}e.data={attributes:{}};const t=this.index;t!==null&&(e.data.index={type:t.array.constructor.name,array:Array.prototype.slice.call(t.array)});const n=this.attributes;for(const l in n){const c=n[l];e.data.attributes[l]=c.toJSON(e.data)}const i={};let r=!1;for(const l in this.morphAttributes){const c=this.morphAttributes[l],h=[];for(let u=0,f=c.length;u0&&(i[l]=h,r=!0)}r&&(e.data.morphAttributes=i,e.data.morphTargetsRelative=this.morphTargetsRelative);const o=this.groups;o.length>0&&(e.data.groups=JSON.parse(JSON.stringify(o)));const a=this.boundingSphere;return a!==null&&(e.data.boundingSphere={center:a.center.toArray(),radius:a.radius}),e}clone(){return new this.constructor().copy(this)}copy(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;const t={};this.name=e.name;const n=e.index;n!==null&&this.setIndex(n.clone(t));const i=e.attributes;for(const c in i){const h=i[c];this.setAttribute(c,h.clone(t))}const r=e.morphAttributes;for(const c in r){const h=[],u=r[c];for(let f=0,d=u.length;f0){const i=t[n[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let r=0,o=i.length;r(e.far-e.near)**2))&&(Fd.copy(r).invert(),As.copy(e.ray).applyMatrix4(Fd),!(n.boundingBox!==null&&As.intersectsBox(n.boundingBox)===!1)&&this._computeIntersections(e,t,As)))}_computeIntersections(e,t,n){let i;const r=this.geometry,o=this.material,a=r.index,l=r.attributes.position,c=r.attributes.uv,h=r.attributes.uv1,u=r.attributes.normal,f=r.groups,d=r.drawRange;if(a!==null)if(Array.isArray(o))for(let p=0,O=f.length;pt.far?null:{distance:c,point:Ra.clone(),object:s}}function Ca(s,e,t,n,i,r,o,a,l,c){s.getVertexPosition(a,Ta),s.getVertexPosition(l,Ea),s.getVertexPosition(c,Aa);const h=Ky(s,e,t,n,Ta,Ea,Aa,Vd);if(h){const u=new U;ti.getBarycoord(Vd,Ta,Ea,Aa,u),i&&(h.uv=ti.getInterpolatedAttribute(i,a,l,c,u,new Ue)),r&&(h.uv1=ti.getInterpolatedAttribute(r,a,l,c,u,new Ue)),o&&(h.normal=ti.getInterpolatedAttribute(o,a,l,c,u,new U),h.normal.dot(n.direction)>0&&h.normal.multiplyScalar(-1));const f={a,b:l,c,normal:new U,materialIndex:0};ti.getNormal(Ta,Ea,Aa,f.normal),h.face=f,h.barycoord=u}return h}class js extends In{constructor(e=1,t=1,n=1,i=1,r=1,o=1){super(),this.type="BoxGeometry",this.parameters={width:e,height:t,depth:n,widthSegments:i,heightSegments:r,depthSegments:o};const a=this;i=Math.floor(i),r=Math.floor(r),o=Math.floor(o);const l=[],c=[],h=[],u=[];let f=0,d=0;p("z","y","x",-1,-1,n,t,e,o,r,0),p("z","y","x",1,-1,n,t,-e,o,r,1),p("x","z","y",1,1,e,n,t,i,o,2),p("x","z","y",1,-1,e,n,-t,i,o,3),p("x","y","z",1,-1,e,t,n,i,r,4),p("x","y","z",-1,-1,e,t,-n,i,r,5),this.setIndex(l),this.setAttribute("position",new Wt(c,3)),this.setAttribute("normal",new Wt(h,3)),this.setAttribute("uv",new Wt(u,2));function p(O,g,m,b,x,_,w,T,E,P,y){const S=_/E,R=w/P,k=_/2,I=w/2,$=T/2,H=E+1,L=P+1;let z=0,B=0;const ee=new U;for(let se=0;se0?1:-1,h.push(ee.x,ee.y,ee.z),u.push(be/E),u.push(1-se/P),z+=1}}for(let se=0;se0&&(t.defines=this.defines),t.vertexShader=this.vertexShader,t.fragmentShader=this.fragmentShader,t.lights=this.lights,t.clipping=this.clipping;const n={};for(const i in this.extensions)this.extensions[i]===!0&&(n[i]=!0);return Object.keys(n).length>0&&(t.extensions=n),t}}class Jg extends At{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new Ge,this.projectionMatrix=new Ge,this.projectionMatrixInverse=new Ge,this.coordinateSystem=Fi}copy(e,t){return super.copy(e,t),this.matrixWorldInverse.copy(e.matrixWorldInverse),this.projectionMatrix.copy(e.projectionMatrix),this.projectionMatrixInverse.copy(e.projectionMatrixInverse),this.coordinateSystem=e.coordinateSystem,this}getWorldDirection(e){return super.getWorldDirection(e).negate()}updateMatrixWorld(e){super.updateMatrixWorld(e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(e,t){super.updateWorldMatrix(e,t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return new this.constructor().copy(this)}}const ns=new U,zd=new Ue,Zd=new Ue;class dn extends Jg{constructor(e=50,t=1,n=.1,i=2e3){super(),this.isPerspectiveCamera=!0,this.type="PerspectiveCamera",this.fov=e,this.zoom=1,this.near=n,this.far=i,this.focus=10,this.aspect=t,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.fov=e.fov,this.zoom=e.zoom,this.near=e.near,this.far=e.far,this.focus=e.focus,this.aspect=e.aspect,this.view=e.view===null?null:Object.assign({},e.view),this.filmGauge=e.filmGauge,this.filmOffset=e.filmOffset,this}setFocalLength(e){const t=.5*this.getFilmHeight()/e;this.fov=Xr*2*Math.atan(t),this.updateProjectionMatrix()}getFocalLength(){const e=Math.tan(Lo*.5*this.fov);return .5*this.getFilmHeight()/e}getEffectiveFOV(){return Xr*2*Math.atan(Math.tan(Lo*.5*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}getViewBounds(e,t,n){ns.set(-1,-1,.5).applyMatrix4(this.projectionMatrixInverse),t.set(ns.x,ns.y).multiplyScalar(-e/ns.z),ns.set(1,1,.5).applyMatrix4(this.projectionMatrixInverse),n.set(ns.x,ns.y).multiplyScalar(-e/ns.z)}getViewSize(e,t){return this.getViewBounds(e,zd,Zd),t.subVectors(Zd,zd)}setViewOffset(e,t,n,i,r,o){this.aspect=e/t,this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=n,this.view.offsetY=i,this.view.width=r,this.view.height=o,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=this.near;let t=e*Math.tan(Lo*.5*this.fov)/this.zoom,n=2*t,i=this.aspect*n,r=-.5*i;const o=this.view;if(this.view!==null&&this.view.enabled){const l=o.fullWidth,c=o.fullHeight;r+=o.offsetX*i/l,t-=o.offsetY*n/c,i*=o.width/l,n*=o.height/c}const a=this.filmOffset;a!==0&&(r+=e*a/this.getFilmWidth()),this.projectionMatrix.makePerspective(r,r+i,t,t-n,e,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.fov=this.fov,t.object.zoom=this.zoom,t.object.near=this.near,t.object.far=this.far,t.object.focus=this.focus,t.object.aspect=this.aspect,this.view!==null&&(t.object.view=Object.assign({},this.view)),t.object.filmGauge=this.filmGauge,t.object.filmOffset=this.filmOffset,t}}const Or=-90,_r=1;class iS extends At{constructor(e,t,n){super(),this.type="CubeCamera",this.renderTarget=n,this.coordinateSystem=null,this.activeMipmapLevel=0;const i=new dn(Or,_r,e,t);i.layers=this.layers,this.add(i);const r=new dn(Or,_r,e,t);r.layers=this.layers,this.add(r);const o=new dn(Or,_r,e,t);o.layers=this.layers,this.add(o);const a=new dn(Or,_r,e,t);a.layers=this.layers,this.add(a);const l=new dn(Or,_r,e,t);l.layers=this.layers,this.add(l);const c=new dn(Or,_r,e,t);c.layers=this.layers,this.add(c)}updateCoordinateSystem(){const e=this.coordinateSystem,t=this.children.concat(),[n,i,r,o,a,l]=t;for(const c of t)this.remove(c);if(e===Fi)n.up.set(0,1,0),n.lookAt(1,0,0),i.up.set(0,1,0),i.lookAt(-1,0,0),r.up.set(0,0,-1),r.lookAt(0,1,0),o.up.set(0,0,1),o.lookAt(0,-1,0),a.up.set(0,1,0),a.lookAt(0,0,1),l.up.set(0,1,0),l.lookAt(0,0,-1);else if(e===Rl)n.up.set(0,-1,0),n.lookAt(-1,0,0),i.up.set(0,-1,0),i.lookAt(1,0,0),r.up.set(0,0,1),r.lookAt(0,1,0),o.up.set(0,0,-1),o.lookAt(0,-1,0),a.up.set(0,-1,0),a.lookAt(0,0,1),l.up.set(0,-1,0),l.lookAt(0,0,-1);else throw new Error("THREE.CubeCamera.updateCoordinateSystem(): Invalid coordinate system: "+e);for(const c of t)this.add(c),c.updateMatrixWorld()}update(e,t){this.parent===null&&this.updateMatrixWorld();const{renderTarget:n,activeMipmapLevel:i}=this;this.coordinateSystem!==e.coordinateSystem&&(this.coordinateSystem=e.coordinateSystem,this.updateCoordinateSystem());const[r,o,a,l,c,h]=this.children,u=e.getRenderTarget(),f=e.getActiveCubeFace(),d=e.getActiveMipmapLevel(),p=e.xr.enabled;e.xr.enabled=!1;const O=n.texture.generateMipmaps;n.texture.generateMipmaps=!1,e.setRenderTarget(n,0,i),e.render(t,r),e.setRenderTarget(n,1,i),e.render(t,o),e.setRenderTarget(n,2,i),e.render(t,a),e.setRenderTarget(n,3,i),e.render(t,l),e.setRenderTarget(n,4,i),e.render(t,c),n.texture.generateMipmaps=O,e.setRenderTarget(n,5,i),e.render(t,h),e.setRenderTarget(u,f,d),e.xr.enabled=p,n.texture.needsPMREMUpdate=!0}}class eO extends qt{constructor(e,t,n,i,r,o,a,l,c,h){e=e!==void 0?e:[],t=t!==void 0?t:$r,super(e,t,n,i,r,o,a,l,c,h),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}}class sS extends Ws{constructor(e=1,t={}){super(e,e,t),this.isWebGLCubeRenderTarget=!0;const n={width:e,height:e,depth:1},i=[n,n,n,n,n,n];this.texture=new eO(i,t.mapping,t.wrapS,t.wrapT,t.magFilter,t.minFilter,t.format,t.type,t.anisotropy,t.colorSpace),this.texture.isRenderTargetTexture=!0,this.texture.generateMipmaps=t.generateMipmaps!==void 0?t.generateMipmaps:!1,this.texture.minFilter=t.minFilter!==void 0?t.minFilter:Ln}fromEquirectangularTexture(e,t){this.texture.type=t.type,this.texture.colorSpace=t.colorSpace,this.texture.generateMipmaps=t.generateMipmaps,this.texture.minFilter=t.minFilter,this.texture.magFilter=t.magFilter;const n={uniforms:{tEquirect:{value:null}},vertexShader:` - - varying vec3 vWorldDirection; - - vec3 transformDirection( in vec3 dir, in mat4 matrix ) { - - return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz ); - - } - - void main() { - - vWorldDirection = transformDirection( position, modelMatrix ); - - #include - #include - - } - `,fragmentShader:` - - uniform sampler2D tEquirect; - - varying vec3 vWorldDirection; - - #include - - void main() { - - vec3 direction = normalize( vWorldDirection ); - - vec2 sampleUV = equirectUv( direction ); - - gl_FragColor = texture2D( tEquirect, sampleUV ); - - } - `},i=new js(5,5,5),r=new gs({name:"CubemapFromEquirect",uniforms:Hr(n.uniforms),vertexShader:n.vertexShader,fragmentShader:n.fragmentShader,side:Mn,blending:ps});r.uniforms.tEquirect.value=t;const o=new jt(i,r),a=t.minFilter;return t.minFilter===Bi&&(t.minFilter=Ln),new iS(1,10,this).update(e,o),t.minFilter=a,o.geometry.dispose(),o.material.dispose(),this}clear(e,t,n,i){const r=e.getRenderTarget();for(let o=0;o<6;o++)e.setRenderTarget(this,o),e.clear(t,n,i);e.setRenderTarget(r)}}class Oi extends At{constructor(){super(),this.isGroup=!0,this.type="Group"}}const rS={type:"move"};class Bc{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return this._hand===null&&(this._hand=new Oi,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints={},this._hand.inputState={pinching:!1}),this._hand}getTargetRaySpace(){return this._targetRay===null&&(this._targetRay=new Oi,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new U,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new U),this._targetRay}getGripSpace(){return this._grip===null&&(this._grip=new Oi,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new U,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new U),this._grip}dispatchEvent(e){return this._targetRay!==null&&this._targetRay.dispatchEvent(e),this._grip!==null&&this._grip.dispatchEvent(e),this._hand!==null&&this._hand.dispatchEvent(e),this}connect(e){if(e&&e.hand){const t=this._hand;if(t)for(const n of e.hand.values())this._getHandJoint(t,n)}return this.dispatchEvent({type:"connected",data:e}),this}disconnect(e){return this.dispatchEvent({type:"disconnected",data:e}),this._targetRay!==null&&(this._targetRay.visible=!1),this._grip!==null&&(this._grip.visible=!1),this._hand!==null&&(this._hand.visible=!1),this}update(e,t,n){let i=null,r=null,o=null;const a=this._targetRay,l=this._grip,c=this._hand;if(e&&t.session.visibilityState!=="visible-blurred"){if(c&&e.hand){o=!0;for(const O of e.hand.values()){const g=t.getJointPose(O,n),m=this._getHandJoint(c,O);g!==null&&(m.matrix.fromArray(g.transform.matrix),m.matrix.decompose(m.position,m.rotation,m.scale),m.matrixWorldNeedsUpdate=!0,m.jointRadius=g.radius),m.visible=g!==null}const h=c.joints["index-finger-tip"],u=c.joints["thumb-tip"],f=h.position.distanceTo(u.position),d=.02,p=.005;c.inputState.pinching&&f>d+p?(c.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!c.inputState.pinching&&f<=d-p&&(c.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else l!==null&&e.gripSpace&&(r=t.getPose(e.gripSpace,n),r!==null&&(l.matrix.fromArray(r.transform.matrix),l.matrix.decompose(l.position,l.rotation,l.scale),l.matrixWorldNeedsUpdate=!0,r.linearVelocity?(l.hasLinearVelocity=!0,l.linearVelocity.copy(r.linearVelocity)):l.hasLinearVelocity=!1,r.angularVelocity?(l.hasAngularVelocity=!0,l.angularVelocity.copy(r.angularVelocity)):l.hasAngularVelocity=!1));a!==null&&(i=t.getPose(e.targetRaySpace,n),i===null&&r!==null&&(i=r),i!==null&&(a.matrix.fromArray(i.transform.matrix),a.matrix.decompose(a.position,a.rotation,a.scale),a.matrixWorldNeedsUpdate=!0,i.linearVelocity?(a.hasLinearVelocity=!0,a.linearVelocity.copy(i.linearVelocity)):a.hasLinearVelocity=!1,i.angularVelocity?(a.hasAngularVelocity=!0,a.angularVelocity.copy(i.angularVelocity)):a.hasAngularVelocity=!1,this.dispatchEvent(rS)))}return a!==null&&(a.visible=i!==null),l!==null&&(l.visible=r!==null),c!==null&&(c.visible=o!==null),this}_getHandJoint(e,t){if(e.joints[t.jointName]===void 0){const n=new Oi;n.matrixAutoUpdate=!1,n.visible=!1,e.joints[t.jointName]=n,e.add(n)}return e.joints[t.jointName]}}class oS extends At{constructor(){super(),this.isScene=!0,this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.backgroundBlurriness=0,this.backgroundIntensity=1,this.backgroundRotation=new ri,this.environmentIntensity=1,this.environmentRotation=new ri,this.overrideMaterial=null,typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(e,t){return super.copy(e,t),e.background!==null&&(this.background=e.background.clone()),e.environment!==null&&(this.environment=e.environment.clone()),e.fog!==null&&(this.fog=e.fog.clone()),this.backgroundBlurriness=e.backgroundBlurriness,this.backgroundIntensity=e.backgroundIntensity,this.backgroundRotation.copy(e.backgroundRotation),this.environmentIntensity=e.environmentIntensity,this.environmentRotation.copy(e.environmentRotation),e.overrideMaterial!==null&&(this.overrideMaterial=e.overrideMaterial.clone()),this.matrixAutoUpdate=e.matrixAutoUpdate,this}toJSON(e){const t=super.toJSON(e);return this.fog!==null&&(t.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(t.object.backgroundBlurriness=this.backgroundBlurriness),this.backgroundIntensity!==1&&(t.object.backgroundIntensity=this.backgroundIntensity),t.object.backgroundRotation=this.backgroundRotation.toArray(),this.environmentIntensity!==1&&(t.object.environmentIntensity=this.environmentIntensity),t.object.environmentRotation=this.environmentRotation.toArray(),t}}class aS{constructor(e,t){this.isInterleavedBuffer=!0,this.array=e,this.stride=t,this.count=e!==void 0?e.length/t:0,this.usage=fu,this.updateRanges=[],this.version=0,this.uuid=si()}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.array=new e.array.constructor(e.array),this.count=e.count,this.stride=e.stride,this.usage=e.usage,this}copyAt(e,t,n){e*=this.stride,n*=t.stride;for(let i=0,r=this.stride;i1?null:t.copy(e.start).addScaledVector(n,r)}intersectsLine(e){const t=this.distanceToPoint(e.start),n=this.distanceToPoint(e.end);return t<0&&n>0||n<0&&t>0}intersectsBox(e){return e.intersectsPlane(this)}intersectsSphere(e){return e.intersectsPlane(this)}coplanarPoint(e){return e.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(e,t){const n=t||pS.getNormalMatrix(e),i=this.coplanarPoint(Vc).applyMatrix4(e),r=this.normal.applyMatrix3(n).normalize();return this.constant=-i.dot(r),this}translate(e){return this.constant-=e.dot(this.normal),this}equals(e){return e.normal.equals(this.normal)&&e.constant===this.constant}clone(){return new this.constructor().copy(this)}}const Ps=new vi,Da=new U;class Mf{constructor(e=new rs,t=new rs,n=new rs,i=new rs,r=new rs,o=new rs){this.planes=[e,t,n,i,r,o]}set(e,t,n,i,r,o){const a=this.planes;return a[0].copy(e),a[1].copy(t),a[2].copy(n),a[3].copy(i),a[4].copy(r),a[5].copy(o),this}copy(e){const t=this.planes;for(let n=0;n<6;n++)t[n].copy(e.planes[n]);return this}setFromProjectionMatrix(e,t=Fi){const n=this.planes,i=e.elements,r=i[0],o=i[1],a=i[2],l=i[3],c=i[4],h=i[5],u=i[6],f=i[7],d=i[8],p=i[9],O=i[10],g=i[11],m=i[12],b=i[13],x=i[14],_=i[15];if(n[0].setComponents(l-r,f-c,g-d,_-m).normalize(),n[1].setComponents(l+r,f+c,g+d,_+m).normalize(),n[2].setComponents(l+o,f+h,g+p,_+b).normalize(),n[3].setComponents(l-o,f-h,g-p,_-b).normalize(),n[4].setComponents(l-a,f-u,g-O,_-x).normalize(),t===Fi)n[5].setComponents(l+a,f+u,g+O,_+x).normalize();else if(t===Rl)n[5].setComponents(a,u,O,x).normalize();else throw new Error("THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: "+t);return this}intersectsObject(e){if(e.boundingSphere!==void 0)e.boundingSphere===null&&e.computeBoundingSphere(),Ps.copy(e.boundingSphere).applyMatrix4(e.matrixWorld);else{const t=e.geometry;t.boundingSphere===null&&t.computeBoundingSphere(),Ps.copy(t.boundingSphere).applyMatrix4(e.matrixWorld)}return this.intersectsSphere(Ps)}intersectsSprite(e){return Ps.center.set(0,0,0),Ps.radius=.7071067811865476,Ps.applyMatrix4(e.matrixWorld),this.intersectsSphere(Ps)}intersectsSphere(e){const t=this.planes,n=e.center,i=-e.radius;for(let r=0;r<6;r++)if(t[r].distanceToPoint(n)0?e.max.x:e.min.x,Da.y=i.normal.y>0?e.max.y:e.min.y,Da.z=i.normal.z>0?e.max.z:e.min.z,i.distanceToPoint(Da)<0)return!1}return!0}containsPoint(e){const t=this.planes;for(let n=0;n<6;n++)if(t[n].distanceToPoint(e)<0)return!1;return!0}clone(){return new this.constructor().copy(this)}}class Uo extends Dn{constructor(e){super(),this.isLineBasicMaterial=!0,this.type="LineBasicMaterial",this.color=new De(16777215),this.map=null,this.linewidth=1,this.linecap="round",this.linejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.linewidth=e.linewidth,this.linecap=e.linecap,this.linejoin=e.linejoin,this.fog=e.fog,this}}const Cl=new U,kl=new U,Jd=new Ge,go=new ra,Ia=new vi,zc=new U,ep=new U;let wf=class extends At{constructor(e=new In,t=new Uo){super(),this.isLine=!0,this.type="Line",this.geometry=e,this.material=t,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}computeLineDistances(){const e=this.geometry;if(e.index===null){const t=e.attributes.position,n=[0];for(let i=1,r=t.count;i0){const i=t[n[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let r=0,o=i.length;rn)return;zc.applyMatrix4(s.matrixWorld);const c=e.ray.origin.distanceTo(zc);if(!(ce.far))return{distance:c,point:ep.clone().applyMatrix4(s.matrixWorld),index:o,face:null,faceIndex:null,barycoord:null,object:s}}const tp=new U,np=new U;class pu extends wf{constructor(e,t){super(e,t),this.isLineSegments=!0,this.type="LineSegments"}computeLineDistances(){const e=this.geometry;if(e.index===null){const t=e.attributes.position,n=[];for(let i=0,r=t.count;i0){const i=t[n[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let r=0,o=i.length;ri.far)return;r.push({distance:c,distanceToRay:Math.sqrt(a),point:l,index:e,face:null,faceIndex:null,barycoord:null,object:o})}}class iO extends qt{constructor(e,t,n,i,r,o,a,l,c,h=Cr){if(h!==Cr&&h!==Gr)throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");n===void 0&&h===Cr&&(n=Hs),n===void 0&&h===Gr&&(n=Zr),super(null,i,r,o,a,l,h,n,c),this.isDepthTexture=!0,this.image={width:e,height:t},this.magFilter=a!==void 0?a:gn,this.minFilter=l!==void 0?l:gn,this.flipY=!1,this.generateMipmaps=!1,this.compareFunction=null}copy(e){return super.copy(e),this.compareFunction=e.compareFunction,this}toJSON(e){const t=super.toJSON(e);return this.compareFunction!==null&&(t.compareFunction=this.compareFunction),t}}class Tf extends In{constructor(e=1,t=1,n=1,i=32,r=1,o=!1,a=0,l=Math.PI*2){super(),this.type="CylinderGeometry",this.parameters={radiusTop:e,radiusBottom:t,height:n,radialSegments:i,heightSegments:r,openEnded:o,thetaStart:a,thetaLength:l};const c=this;i=Math.floor(i),r=Math.floor(r);const h=[],u=[],f=[],d=[];let p=0;const O=[],g=n/2;let m=0;b(),o===!1&&(e>0&&x(!0),t>0&&x(!1)),this.setIndex(h),this.setAttribute("position",new Wt(u,3)),this.setAttribute("normal",new Wt(f,3)),this.setAttribute("uv",new Wt(d,2));function b(){const _=new U,w=new U;let T=0;const E=(t-e)/n;for(let P=0;P<=r;P++){const y=[],S=P/r,R=S*(t-e)+e;for(let k=0;k<=i;k++){const I=k/i,$=I*l+a,H=Math.sin($),L=Math.cos($);w.x=R*H,w.y=-S*n+g,w.z=R*L,u.push(w.x,w.y,w.z),_.set(H,E,L).normalize(),f.push(_.x,_.y,_.z),d.push(I,1-S),y.push(p++)}O.push(y)}for(let P=0;P0||y!==0)&&(h.push(S,R,I),T+=3),(t>0||y!==r-1)&&(h.push(R,k,I),T+=3)}c.addGroup(m,T,0),m+=T}function x(_){const w=p,T=new Ue,E=new U;let P=0;const y=_===!0?e:t,S=_===!0?1:-1;for(let k=1;k<=i;k++)u.push(0,g*S,0),f.push(0,S,0),d.push(.5,.5),p++;const R=p;for(let k=0;k<=i;k++){const $=k/i*l+a,H=Math.cos($),L=Math.sin($);E.x=y*L,E.y=g*S,E.z=y*H,u.push(E.x,E.y,E.z),f.push(0,S,0),T.x=H*.5+.5,T.y=L*.5*S+.5,d.push(T.x,T.y),p++}for(let k=0;k0!=e>0&&this.version++,this._anisotropy=e}get clearcoat(){return this._clearcoat}set clearcoat(e){this._clearcoat>0!=e>0&&this.version++,this._clearcoat=e}get iridescence(){return this._iridescence}set iridescence(e){this._iridescence>0!=e>0&&this.version++,this._iridescence=e}get dispersion(){return this._dispersion}set dispersion(e){this._dispersion>0!=e>0&&this.version++,this._dispersion=e}get sheen(){return this._sheen}set sheen(e){this._sheen>0!=e>0&&this.version++,this._sheen=e}get transmission(){return this._transmission}set transmission(e){this._transmission>0!=e>0&&this.version++,this._transmission=e}copy(e){return super.copy(e),this.defines={STANDARD:"",PHYSICAL:""},this.anisotropy=e.anisotropy,this.anisotropyRotation=e.anisotropyRotation,this.anisotropyMap=e.anisotropyMap,this.clearcoat=e.clearcoat,this.clearcoatMap=e.clearcoatMap,this.clearcoatRoughness=e.clearcoatRoughness,this.clearcoatRoughnessMap=e.clearcoatRoughnessMap,this.clearcoatNormalMap=e.clearcoatNormalMap,this.clearcoatNormalScale.copy(e.clearcoatNormalScale),this.dispersion=e.dispersion,this.ior=e.ior,this.iridescence=e.iridescence,this.iridescenceMap=e.iridescenceMap,this.iridescenceIOR=e.iridescenceIOR,this.iridescenceThicknessRange=[...e.iridescenceThicknessRange],this.iridescenceThicknessMap=e.iridescenceThicknessMap,this.sheen=e.sheen,this.sheenColor.copy(e.sheenColor),this.sheenColorMap=e.sheenColorMap,this.sheenRoughness=e.sheenRoughness,this.sheenRoughnessMap=e.sheenRoughnessMap,this.transmission=e.transmission,this.transmissionMap=e.transmissionMap,this.thickness=e.thickness,this.thicknessMap=e.thicknessMap,this.attenuationDistance=e.attenuationDistance,this.attenuationColor.copy(e.attenuationColor),this.specularIntensity=e.specularIntensity,this.specularIntensityMap=e.specularIntensityMap,this.specularColor.copy(e.specularColor),this.specularColorMap=e.specularColorMap,this}}class gS extends Dn{constructor(e){super(),this.isMeshPhongMaterial=!0,this.type="MeshPhongMaterial",this.color=new De(16777215),this.specular=new De(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new De(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=yf,this.normalScale=new Ue(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new ri,this.combine=ff,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.specular.copy(e.specular),this.shininess=e.shininess,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}}class OS extends Dn{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type="MeshDepthMaterial",this.depthPacking=oy,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(e)}copy(e){return super.copy(e),this.depthPacking=e.depthPacking,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this}}class _S extends Dn{constructor(e){super(),this.isMeshDistanceMaterial=!0,this.type="MeshDistanceMaterial",this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.setValues(e)}copy(e){return super.copy(e),this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this}}function Ba(s,e,t){return!s||!t&&s.constructor===e?s:typeof e.BYTES_PER_ELEMENT=="number"?new e(s):Array.prototype.slice.call(s)}function xS(s){return ArrayBuffer.isView(s)&&!(s instanceof DataView)}function yS(s){function e(i,r){return s[i]-s[r]}const t=s.length,n=new Array(t);for(let i=0;i!==t;++i)n[i]=i;return n.sort(e),n}function rp(s,e,t){const n=s.length,i=new s.constructor(n);for(let r=0,o=0;o!==n;++r){const a=t[r]*e;for(let l=0;l!==e;++l)i[o++]=s[a+l]}return i}function sO(s,e,t,n){let i=1,r=s[0];for(;r!==void 0&&r[n]===void 0;)r=s[i++];if(r===void 0)return;let o=r[n];if(o!==void 0)if(Array.isArray(o))do o=r[n],o!==void 0&&(e.push(r.time),t.push.apply(t,o)),r=s[i++];while(r!==void 0);else if(o.toArray!==void 0)do o=r[n],o!==void 0&&(e.push(r.time),o.toArray(t,t.length)),r=s[i++];while(r!==void 0);else do o=r[n],o!==void 0&&(e.push(r.time),t.push(o)),r=s[i++];while(r!==void 0)}class oa{constructor(e,t,n,i){this.parameterPositions=e,this._cachedIndex=0,this.resultBuffer=i!==void 0?i:new t.constructor(n),this.sampleValues=t,this.valueSize=n,this.settings=null,this.DefaultSettings_={}}evaluate(e){const t=this.parameterPositions;let n=this._cachedIndex,i=t[n],r=t[n-1];e:{t:{let o;n:{i:if(!(e=r)){const a=t[1];e=r)break t}o=n,n=0;break n}break e}for(;n>>1;et;)--o;if(++o,r!==0||o!==i){r>=o&&(o=Math.max(o,1),r=o-1);const a=this.getValueSize();this.times=n.slice(r,o),this.values=this.values.slice(r*a,o*a)}return this}validate(){let e=!0;const t=this.getValueSize();t-Math.floor(t)!==0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),e=!1);const n=this.times,i=this.values,r=n.length;r===0&&(console.error("THREE.KeyframeTrack: Track is empty.",this),e=!1);let o=null;for(let a=0;a!==r;a++){const l=n[a];if(typeof l=="number"&&isNaN(l)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,a,l),e=!1;break}if(o!==null&&o>l){console.error("THREE.KeyframeTrack: Out of order keys.",this,a,l,o),e=!1;break}o=l}if(i!==void 0&&xS(i))for(let a=0,l=i.length;a!==l;++a){const c=i[a];if(isNaN(c)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,a,c),e=!1;break}}return e}optimize(){const e=this.times.slice(),t=this.values.slice(),n=this.getValueSize(),i=this.getInterpolation()===xc,r=e.length-1;let o=1;for(let a=1;a0){e[o]=e[r];for(let a=r*n,l=o*n,c=0;c!==n;++c)t[l+c]=t[a+c];++o}return o!==e.length?(this.times=e.slice(0,o),this.values=t.slice(0,o*n)):(this.times=e,this.values=t),this}clone(){const e=this.times.slice(),t=this.values.slice(),n=this.constructor,i=new n(this.name,e,t);return i.createInterpolant=this.createInterpolant,i}}Mi.prototype.TimeBufferType=Float32Array;Mi.prototype.ValueBufferType=Float32Array;Mi.prototype.DefaultInterpolation=Xo;class io extends Mi{constructor(e,t,n){super(e,t,n)}}io.prototype.ValueTypeName="bool";io.prototype.ValueBufferType=Array;io.prototype.DefaultInterpolation=Go;io.prototype.InterpolantFactoryMethodLinear=void 0;io.prototype.InterpolantFactoryMethodSmooth=void 0;class rO extends Mi{}rO.prototype.ValueTypeName="color";class Wr extends Mi{}Wr.prototype.ValueTypeName="number";class MS extends oa{constructor(e,t,n,i){super(e,t,n,i)}interpolate_(e,t,n,i){const r=this.resultBuffer,o=this.sampleValues,a=this.valueSize,l=(n-t)/(i-t);let c=e*a;for(let h=c+a;c!==h;c+=4)yi.slerpFlat(r,0,o,c-a,o,c,l);return r}}class jr extends Mi{InterpolantFactoryMethodLinear(e){return new MS(this.times,this.values,this.getValueSize(),e)}}jr.prototype.ValueTypeName="quaternion";jr.prototype.InterpolantFactoryMethodSmooth=void 0;class so extends Mi{constructor(e,t,n){super(e,t,n)}}so.prototype.ValueTypeName="string";so.prototype.ValueBufferType=Array;so.prototype.DefaultInterpolation=Go;so.prototype.InterpolantFactoryMethodLinear=void 0;so.prototype.InterpolantFactoryMethodSmooth=void 0;class qr extends Mi{}qr.prototype.ValueTypeName="vector";class wS{constructor(e="",t=-1,n=[],i=sy){this.name=e,this.tracks=n,this.duration=t,this.blendMode=i,this.uuid=si(),this.duration<0&&this.resetDuration()}static parse(e){const t=[],n=e.tracks,i=1/(e.fps||1);for(let o=0,a=n.length;o!==a;++o)t.push(ES(n[o]).scale(i));const r=new this(e.name,e.duration,t,e.blendMode);return r.uuid=e.uuid,r}static toJSON(e){const t=[],n=e.tracks,i={name:e.name,duration:e.duration,tracks:t,uuid:e.uuid,blendMode:e.blendMode};for(let r=0,o=n.length;r!==o;++r)t.push(Mi.toJSON(n[r]));return i}static CreateFromMorphTargetSequence(e,t,n,i){const r=t.length,o=[];for(let a=0;a1){const u=h[1];let f=i[u];f||(i[u]=f=[]),f.push(c)}}const o=[];for(const a in i)o.push(this.CreateFromMorphTargetSequence(a,i[a],t,n));return o}static parseAnimation(e,t){if(!e)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;const n=function(u,f,d,p,O){if(d.length!==0){const g=[],m=[];sO(d,g,m,p),g.length!==0&&O.push(new u(f,g,m))}},i=[],r=e.name||"default",o=e.fps||30,a=e.blendMode;let l=e.length||-1;const c=e.hierarchy||[];for(let u=0;u{t&&t(r),this.manager.itemEnd(e)},0),r;if(ki[e]!==void 0){ki[e].push({onLoad:t,onProgress:n,onError:i});return}ki[e]=[],ki[e].push({onLoad:t,onProgress:n,onError:i});const o=new Request(e,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?"include":"same-origin"}),a=this.mimeType,l=this.responseType;fetch(o).then(c=>{if(c.status===200||c.status===0){if(c.status===0&&console.warn("THREE.FileLoader: HTTP Status 0 received."),typeof ReadableStream>"u"||c.body===void 0||c.body.getReader===void 0)return c;const h=ki[e],u=c.body.getReader(),f=c.headers.get("X-File-Size")||c.headers.get("Content-Length"),d=f?parseInt(f):0,p=d!==0;let O=0;const g=new ReadableStream({start(m){b();function b(){u.read().then(({done:x,value:_})=>{if(x)m.close();else{O+=_.byteLength;const w=new ProgressEvent("progress",{lengthComputable:p,loaded:O,total:d});for(let T=0,E=h.length;T{m.error(x)})}}});return new Response(g)}else throw new RS(`fetch for "${c.url}" responded with ${c.status}: ${c.statusText}`,c)}).then(c=>{switch(l){case"arraybuffer":return c.arrayBuffer();case"blob":return c.blob();case"document":return c.text().then(h=>new DOMParser().parseFromString(h,a));case"json":return c.json();default:if(a===void 0)return c.text();{const u=/charset="?([^;"\s]*)"?/i.exec(a),f=u&&u[1]?u[1].toLowerCase():void 0,d=new TextDecoder(f);return c.arrayBuffer().then(p=>d.decode(p))}}}).then(c=>{us.add(e,c);const h=ki[e];delete ki[e];for(let u=0,f=h.length;u{const h=ki[e];if(h===void 0)throw this.manager.itemError(e),c;delete ki[e];for(let u=0,f=h.length;u{this.manager.itemEnd(e)}),this.manager.itemStart(e)}setResponseType(e){return this.responseType=e,this}setMimeType(e){return this.mimeType=e,this}}class CS extends nr{constructor(e){super(e)}load(e,t,n,i){this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);const r=this,o=us.get(e);if(o!==void 0)return r.manager.itemStart(e),setTimeout(function(){t&&t(o),r.manager.itemEnd(e)},0),o;const a=Ho("img");function l(){h(),us.add(e,this),t&&t(this),r.manager.itemEnd(e)}function c(u){h(),i&&i(u),r.manager.itemError(e),r.manager.itemEnd(e)}function h(){a.removeEventListener("load",l,!1),a.removeEventListener("error",c,!1)}return a.addEventListener("load",l,!1),a.addEventListener("error",c,!1),e.slice(0,5)!=="data:"&&this.crossOrigin!==void 0&&(a.crossOrigin=this.crossOrigin),r.manager.itemStart(e),a.src=e,a}}class kS extends nr{constructor(e){super(e)}load(e,t,n,i){const r=new qt,o=new CS(this.manager);return o.setCrossOrigin(this.crossOrigin),o.setPath(this.path),o.load(e,function(a){r.image=a,r.needsUpdate=!0,t!==void 0&&t(r)},n,i),r}}class tc extends At{constructor(e,t=1){super(),this.isLight=!0,this.type="Light",this.color=new De(e),this.intensity=t}dispose(){}copy(e,t){return super.copy(e,t),this.color.copy(e.color),this.intensity=e.intensity,this}toJSON(e){const t=super.toJSON(e);return t.object.color=this.color.getHex(),t.object.intensity=this.intensity,this.groundColor!==void 0&&(t.object.groundColor=this.groundColor.getHex()),this.distance!==void 0&&(t.object.distance=this.distance),this.angle!==void 0&&(t.object.angle=this.angle),this.decay!==void 0&&(t.object.decay=this.decay),this.penumbra!==void 0&&(t.object.penumbra=this.penumbra),this.shadow!==void 0&&(t.object.shadow=this.shadow.toJSON()),this.target!==void 0&&(t.object.target=this.target.uuid),t}}const Zc=new Ge,op=new U,ap=new U;class Pf{constructor(e){this.camera=e,this.intensity=1,this.bias=0,this.normalBias=0,this.radius=1,this.blurSamples=8,this.mapSize=new Ue(512,512),this.map=null,this.mapPass=null,this.matrix=new Ge,this.autoUpdate=!0,this.needsUpdate=!1,this._frustum=new Mf,this._frameExtents=new Ue(1,1),this._viewportCount=1,this._viewports=[new ct(0,0,1,1)]}getViewportCount(){return this._viewportCount}getFrustum(){return this._frustum}updateMatrices(e){const t=this.camera,n=this.matrix;op.setFromMatrixPosition(e.matrixWorld),t.position.copy(op),ap.setFromMatrixPosition(e.target.matrixWorld),t.lookAt(ap),t.updateMatrixWorld(),Zc.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),this._frustum.setFromProjectionMatrix(Zc),n.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),n.multiply(Zc)}getViewport(e){return this._viewports[e]}getFrameExtents(){return this._frameExtents}dispose(){this.map&&this.map.dispose(),this.mapPass&&this.mapPass.dispose()}copy(e){return this.camera=e.camera.clone(),this.intensity=e.intensity,this.bias=e.bias,this.radius=e.radius,this.mapSize.copy(e.mapSize),this}clone(){return new this.constructor().copy(this)}toJSON(){const e={};return this.intensity!==1&&(e.intensity=this.intensity),this.bias!==0&&(e.bias=this.bias),this.normalBias!==0&&(e.normalBias=this.normalBias),this.radius!==1&&(e.radius=this.radius),(this.mapSize.x!==512||this.mapSize.y!==512)&&(e.mapSize=this.mapSize.toArray()),e.camera=this.camera.toJSON(!1).object,delete e.camera.matrix,e}}class LS extends Pf{constructor(){super(new dn(50,1,.5,500)),this.isSpotLightShadow=!0,this.focus=1}updateMatrices(e){const t=this.camera,n=Xr*2*e.angle*this.focus,i=this.mapSize.width/this.mapSize.height,r=e.distance||t.far;(n!==t.fov||i!==t.aspect||r!==t.far)&&(t.fov=n,t.aspect=i,t.far=r,t.updateProjectionMatrix()),super.updateMatrices(e)}copy(e){return super.copy(e),this.focus=e.focus,this}}class DS extends tc{constructor(e,t,n=0,i=Math.PI/3,r=0,o=2){super(e,t),this.isSpotLight=!0,this.type="SpotLight",this.position.copy(At.DEFAULT_UP),this.updateMatrix(),this.target=new At,this.distance=n,this.angle=i,this.penumbra=r,this.decay=o,this.map=null,this.shadow=new LS}get power(){return this.intensity*Math.PI}set power(e){this.intensity=e/Math.PI}dispose(){this.shadow.dispose()}copy(e,t){return super.copy(e,t),this.distance=e.distance,this.angle=e.angle,this.penumbra=e.penumbra,this.decay=e.decay,this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}const lp=new Ge,Oo=new U,Gc=new U;class IS extends Pf{constructor(){super(new dn(90,1,.5,500)),this.isPointLightShadow=!0,this._frameExtents=new Ue(4,2),this._viewportCount=6,this._viewports=[new ct(2,1,1,1),new ct(0,1,1,1),new ct(3,1,1,1),new ct(1,1,1,1),new ct(3,0,1,1),new ct(1,0,1,1)],this._cubeDirections=[new U(1,0,0),new U(-1,0,0),new U(0,0,1),new U(0,0,-1),new U(0,1,0),new U(0,-1,0)],this._cubeUps=[new U(0,1,0),new U(0,1,0),new U(0,1,0),new U(0,1,0),new U(0,0,1),new U(0,0,-1)]}updateMatrices(e,t=0){const n=this.camera,i=this.matrix,r=e.distance||n.far;r!==n.far&&(n.far=r,n.updateProjectionMatrix()),Oo.setFromMatrixPosition(e.matrixWorld),n.position.copy(Oo),Gc.copy(n.position),Gc.add(this._cubeDirections[t]),n.up.copy(this._cubeUps[t]),n.lookAt(Gc),n.updateMatrixWorld(),i.makeTranslation(-Oo.x,-Oo.y,-Oo.z),lp.multiplyMatrices(n.projectionMatrix,n.matrixWorldInverse),this._frustum.setFromProjectionMatrix(lp)}}class oO extends tc{constructor(e,t,n=0,i=2){super(e,t),this.isPointLight=!0,this.type="PointLight",this.distance=n,this.decay=i,this.shadow=new IS}get power(){return this.intensity*4*Math.PI}set power(e){this.intensity=e/(4*Math.PI)}dispose(){this.shadow.dispose()}copy(e,t){return super.copy(e,t),this.distance=e.distance,this.decay=e.decay,this.shadow=e.shadow.clone(),this}}class Rf extends Jg{constructor(e=-1,t=1,n=1,i=-1,r=.1,o=2e3){super(),this.isOrthographicCamera=!0,this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=e,this.right=t,this.top=n,this.bottom=i,this.near=r,this.far=o,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.near=e.near,this.far=e.far,this.zoom=e.zoom,this.view=e.view===null?null:Object.assign({},e.view),this}setViewOffset(e,t,n,i,r,o){this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=n,this.view.offsetY=i,this.view.width=r,this.view.height=o,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=(this.right-this.left)/(2*this.zoom),t=(this.top-this.bottom)/(2*this.zoom),n=(this.right+this.left)/2,i=(this.top+this.bottom)/2;let r=n-e,o=n+e,a=i+t,l=i-t;if(this.view!==null&&this.view.enabled){const c=(this.right-this.left)/this.view.fullWidth/this.zoom,h=(this.top-this.bottom)/this.view.fullHeight/this.zoom;r+=c*this.view.offsetX,o=r+c*this.view.width,a-=h*this.view.offsetY,l=a-h*this.view.height}this.projectionMatrix.makeOrthographic(r,o,a,l,this.near,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.zoom=this.zoom,t.object.left=this.left,t.object.right=this.right,t.object.top=this.top,t.object.bottom=this.bottom,t.object.near=this.near,t.object.far=this.far,this.view!==null&&(t.object.view=Object.assign({},this.view)),t}}class US extends Pf{constructor(){super(new Rf(-5,5,5,-5,.5,500)),this.isDirectionalLightShadow=!0}}class gu extends tc{constructor(e,t){super(e,t),this.isDirectionalLight=!0,this.type="DirectionalLight",this.position.copy(At.DEFAULT_UP),this.updateMatrix(),this.target=new At,this.shadow=new US}dispose(){this.shadow.dispose()}copy(e){return super.copy(e),this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}class NS extends tc{constructor(e,t){super(e,t),this.isAmbientLight=!0,this.type="AmbientLight"}}class No{static decodeText(e){if(console.warn("THREE.LoaderUtils: decodeText() has been deprecated with r165 and will be removed with r175. Use TextDecoder instead."),typeof TextDecoder<"u")return new TextDecoder().decode(e);let t="";for(let n=0,i=e.length;n"u"&&console.warn("THREE.ImageBitmapLoader: createImageBitmap() not supported."),typeof fetch>"u"&&console.warn("THREE.ImageBitmapLoader: fetch() not supported."),this.options={premultiplyAlpha:"none"}}setOptions(e){return this.options=e,this}load(e,t,n,i){e===void 0&&(e=""),this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);const r=this,o=us.get(e);if(o!==void 0){if(r.manager.itemStart(e),o.then){o.then(c=>{t&&t(c),r.manager.itemEnd(e)}).catch(c=>{i&&i(c)});return}return setTimeout(function(){t&&t(o),r.manager.itemEnd(e)},0),o}const a={};a.credentials=this.crossOrigin==="anonymous"?"same-origin":"include",a.headers=this.requestHeader;const l=fetch(e,a).then(function(c){return c.blob()}).then(function(c){return createImageBitmap(c,Object.assign(r.options,{colorSpaceConversion:"none"}))}).then(function(c){return us.add(e,c),t&&t(c),r.manager.itemEnd(e),c}).catch(function(c){i&&i(c),us.remove(e),r.manager.itemError(e),r.manager.itemEnd(e)});us.add(e,l),r.manager.itemStart(e)}}class BS extends dn{constructor(e=[]){super(),this.isArrayCamera=!0,this.cameras=e,this.index=0}}const Cf="\\[\\]\\.:\\/",FS=new RegExp("["+Cf+"]","g"),kf="[^"+Cf+"]",$S="[^"+Cf.replace("\\.","")+"]",VS=/((?:WC+[\/:])*)/.source.replace("WC",kf),zS=/(WCOD+)?/.source.replace("WCOD",$S),ZS=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",kf),GS=/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",kf),XS=new RegExp("^"+VS+zS+ZS+GS+"$"),HS=["material","materials","bones","map"];class WS{constructor(e,t,n){const i=n||mt.parseTrackName(t);this._targetGroup=e,this._bindings=e.subscribe_(t,i)}getValue(e,t){this.bind();const n=this._targetGroup.nCachedObjects_,i=this._bindings[n];i!==void 0&&i.getValue(e,t)}setValue(e,t){const n=this._bindings;for(let i=this._targetGroup.nCachedObjects_,r=n.length;i!==r;++i)n[i].setValue(e,t)}bind(){const e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].bind()}unbind(){const e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].unbind()}}class mt{constructor(e,t,n){this.path=t,this.parsedPath=n||mt.parseTrackName(t),this.node=mt.findNode(e,this.parsedPath.nodeName),this.rootNode=e,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(e,t,n){return e&&e.isAnimationObjectGroup?new mt.Composite(e,t,n):new mt(e,t,n)}static sanitizeNodeName(e){return e.replace(/\s/g,"_").replace(FS,"")}static parseTrackName(e){const t=XS.exec(e);if(t===null)throw new Error("PropertyBinding: Cannot parse trackName: "+e);const n={nodeName:t[2],objectName:t[3],objectIndex:t[4],propertyName:t[5],propertyIndex:t[6]},i=n.nodeName&&n.nodeName.lastIndexOf(".");if(i!==void 0&&i!==-1){const r=n.nodeName.substring(i+1);HS.indexOf(r)!==-1&&(n.nodeName=n.nodeName.substring(0,i),n.objectName=r)}if(n.propertyName===null||n.propertyName.length===0)throw new Error("PropertyBinding: can not parse propertyName from trackName: "+e);return n}static findNode(e,t){if(t===void 0||t===""||t==="."||t===-1||t===e.name||t===e.uuid)return e;if(e.skeleton){const n=e.skeleton.getBoneByName(t);if(n!==void 0)return n}if(e.children){const n=function(r){for(let o=0;od.start-p.start);let f=0;for(let d=1;d 0 - vec4 plane; - #ifdef ALPHA_TO_COVERAGE - float distanceToPlane, distanceGradient; - float clipOpacity = 1.0; - #pragma unroll_loop_start - for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) { - plane = clippingPlanes[ i ]; - distanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w; - distanceGradient = fwidth( distanceToPlane ) / 2.0; - clipOpacity *= smoothstep( - distanceGradient, distanceGradient, distanceToPlane ); - if ( clipOpacity == 0.0 ) discard; - } - #pragma unroll_loop_end - #if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES - float unionClipOpacity = 1.0; - #pragma unroll_loop_start - for ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) { - plane = clippingPlanes[ i ]; - distanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w; - distanceGradient = fwidth( distanceToPlane ) / 2.0; - unionClipOpacity *= 1.0 - smoothstep( - distanceGradient, distanceGradient, distanceToPlane ); - } - #pragma unroll_loop_end - clipOpacity *= 1.0 - unionClipOpacity; - #endif - diffuseColor.a *= clipOpacity; - if ( diffuseColor.a == 0.0 ) discard; - #else - #pragma unroll_loop_start - for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) { - plane = clippingPlanes[ i ]; - if ( dot( vClipPosition, plane.xyz ) > plane.w ) discard; - } - #pragma unroll_loop_end - #if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES - bool clipped = true; - #pragma unroll_loop_start - for ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) { - plane = clippingPlanes[ i ]; - clipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped; - } - #pragma unroll_loop_end - if ( clipped ) discard; - #endif - #endif -#endif`,pv=`#if NUM_CLIPPING_PLANES > 0 - varying vec3 vClipPosition; - uniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ]; -#endif`,mv=`#if NUM_CLIPPING_PLANES > 0 - varying vec3 vClipPosition; -#endif`,gv=`#if NUM_CLIPPING_PLANES > 0 - vClipPosition = - mvPosition.xyz; -#endif`,Ov=`#if defined( USE_COLOR_ALPHA ) - diffuseColor *= vColor; -#elif defined( USE_COLOR ) - diffuseColor.rgb *= vColor; -#endif`,_v=`#if defined( USE_COLOR_ALPHA ) - varying vec4 vColor; -#elif defined( USE_COLOR ) - varying vec3 vColor; -#endif`,xv=`#if defined( USE_COLOR_ALPHA ) - varying vec4 vColor; -#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) || defined( USE_BATCHING_COLOR ) - varying vec3 vColor; -#endif`,yv=`#if defined( USE_COLOR_ALPHA ) - vColor = vec4( 1.0 ); -#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) || defined( USE_BATCHING_COLOR ) - vColor = vec3( 1.0 ); -#endif -#ifdef USE_COLOR - vColor *= color; -#endif -#ifdef USE_INSTANCING_COLOR - vColor.xyz *= instanceColor.xyz; -#endif -#ifdef USE_BATCHING_COLOR - vec3 batchingColor = getBatchingColor( getIndirectIndex( gl_DrawID ) ); - vColor.xyz *= batchingColor.xyz; -#endif`,Sv=`#define PI 3.141592653589793 -#define PI2 6.283185307179586 -#define PI_HALF 1.5707963267948966 -#define RECIPROCAL_PI 0.3183098861837907 -#define RECIPROCAL_PI2 0.15915494309189535 -#define EPSILON 1e-6 -#ifndef saturate -#define saturate( a ) clamp( a, 0.0, 1.0 ) -#endif -#define whiteComplement( a ) ( 1.0 - saturate( a ) ) -float pow2( const in float x ) { return x*x; } -vec3 pow2( const in vec3 x ) { return x*x; } -float pow3( const in float x ) { return x*x*x; } -float pow4( const in float x ) { float x2 = x*x; return x2*x2; } -float max3( const in vec3 v ) { return max( max( v.x, v.y ), v.z ); } -float average( const in vec3 v ) { return dot( v, vec3( 0.3333333 ) ); } -highp float rand( const in vec2 uv ) { - const highp float a = 12.9898, b = 78.233, c = 43758.5453; - highp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI ); - return fract( sin( sn ) * c ); -} -#ifdef HIGH_PRECISION - float precisionSafeLength( vec3 v ) { return length( v ); } -#else - float precisionSafeLength( vec3 v ) { - float maxComponent = max3( abs( v ) ); - return length( v / maxComponent ) * maxComponent; - } -#endif -struct IncidentLight { - vec3 color; - vec3 direction; - bool visible; -}; -struct ReflectedLight { - vec3 directDiffuse; - vec3 directSpecular; - vec3 indirectDiffuse; - vec3 indirectSpecular; -}; -#ifdef USE_ALPHAHASH - varying vec3 vPosition; -#endif -vec3 transformDirection( in vec3 dir, in mat4 matrix ) { - return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz ); -} -vec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) { - return normalize( ( vec4( dir, 0.0 ) * matrix ).xyz ); -} -mat3 transposeMat3( const in mat3 m ) { - mat3 tmp; - tmp[ 0 ] = vec3( m[ 0 ].x, m[ 1 ].x, m[ 2 ].x ); - tmp[ 1 ] = vec3( m[ 0 ].y, m[ 1 ].y, m[ 2 ].y ); - tmp[ 2 ] = vec3( m[ 0 ].z, m[ 1 ].z, m[ 2 ].z ); - return tmp; -} -bool isPerspectiveMatrix( mat4 m ) { - return m[ 2 ][ 3 ] == - 1.0; -} -vec2 equirectUv( in vec3 dir ) { - float u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5; - float v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5; - return vec2( u, v ); -} -vec3 BRDF_Lambert( const in vec3 diffuseColor ) { - return RECIPROCAL_PI * diffuseColor; -} -vec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) { - float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH ); - return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel ); -} -float F_Schlick( const in float f0, const in float f90, const in float dotVH ) { - float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH ); - return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel ); -} // validated`,vv=`#ifdef ENVMAP_TYPE_CUBE_UV - #define cubeUV_minMipLevel 4.0 - #define cubeUV_minTileSize 16.0 - float getFace( vec3 direction ) { - vec3 absDirection = abs( direction ); - float face = - 1.0; - if ( absDirection.x > absDirection.z ) { - if ( absDirection.x > absDirection.y ) - face = direction.x > 0.0 ? 0.0 : 3.0; - else - face = direction.y > 0.0 ? 1.0 : 4.0; - } else { - if ( absDirection.z > absDirection.y ) - face = direction.z > 0.0 ? 2.0 : 5.0; - else - face = direction.y > 0.0 ? 1.0 : 4.0; - } - return face; - } - vec2 getUV( vec3 direction, float face ) { - vec2 uv; - if ( face == 0.0 ) { - uv = vec2( direction.z, direction.y ) / abs( direction.x ); - } else if ( face == 1.0 ) { - uv = vec2( - direction.x, - direction.z ) / abs( direction.y ); - } else if ( face == 2.0 ) { - uv = vec2( - direction.x, direction.y ) / abs( direction.z ); - } else if ( face == 3.0 ) { - uv = vec2( - direction.z, direction.y ) / abs( direction.x ); - } else if ( face == 4.0 ) { - uv = vec2( - direction.x, direction.z ) / abs( direction.y ); - } else { - uv = vec2( direction.x, direction.y ) / abs( direction.z ); - } - return 0.5 * ( uv + 1.0 ); - } - vec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) { - float face = getFace( direction ); - float filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 ); - mipInt = max( mipInt, cubeUV_minMipLevel ); - float faceSize = exp2( mipInt ); - highp vec2 uv = getUV( direction, face ) * ( faceSize - 2.0 ) + 1.0; - if ( face > 2.0 ) { - uv.y += faceSize; - face -= 3.0; - } - uv.x += face * faceSize; - uv.x += filterInt * 3.0 * cubeUV_minTileSize; - uv.y += 4.0 * ( exp2( CUBEUV_MAX_MIP ) - faceSize ); - uv.x *= CUBEUV_TEXEL_WIDTH; - uv.y *= CUBEUV_TEXEL_HEIGHT; - #ifdef texture2DGradEXT - return texture2DGradEXT( envMap, uv, vec2( 0.0 ), vec2( 0.0 ) ).rgb; - #else - return texture2D( envMap, uv ).rgb; - #endif - } - #define cubeUV_r0 1.0 - #define cubeUV_m0 - 2.0 - #define cubeUV_r1 0.8 - #define cubeUV_m1 - 1.0 - #define cubeUV_r4 0.4 - #define cubeUV_m4 2.0 - #define cubeUV_r5 0.305 - #define cubeUV_m5 3.0 - #define cubeUV_r6 0.21 - #define cubeUV_m6 4.0 - float roughnessToMip( float roughness ) { - float mip = 0.0; - if ( roughness >= cubeUV_r1 ) { - mip = ( cubeUV_r0 - roughness ) * ( cubeUV_m1 - cubeUV_m0 ) / ( cubeUV_r0 - cubeUV_r1 ) + cubeUV_m0; - } else if ( roughness >= cubeUV_r4 ) { - mip = ( cubeUV_r1 - roughness ) * ( cubeUV_m4 - cubeUV_m1 ) / ( cubeUV_r1 - cubeUV_r4 ) + cubeUV_m1; - } else if ( roughness >= cubeUV_r5 ) { - mip = ( cubeUV_r4 - roughness ) * ( cubeUV_m5 - cubeUV_m4 ) / ( cubeUV_r4 - cubeUV_r5 ) + cubeUV_m4; - } else if ( roughness >= cubeUV_r6 ) { - mip = ( cubeUV_r5 - roughness ) * ( cubeUV_m6 - cubeUV_m5 ) / ( cubeUV_r5 - cubeUV_r6 ) + cubeUV_m5; - } else { - mip = - 2.0 * log2( 1.16 * roughness ); } - return mip; - } - vec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) { - float mip = clamp( roughnessToMip( roughness ), cubeUV_m0, CUBEUV_MAX_MIP ); - float mipF = fract( mip ); - float mipInt = floor( mip ); - vec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt ); - if ( mipF == 0.0 ) { - return vec4( color0, 1.0 ); - } else { - vec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 ); - return vec4( mix( color0, color1, mipF ), 1.0 ); - } - } -#endif`,bv=`vec3 transformedNormal = objectNormal; -#ifdef USE_TANGENT - vec3 transformedTangent = objectTangent; -#endif -#ifdef USE_BATCHING - mat3 bm = mat3( batchingMatrix ); - transformedNormal /= vec3( dot( bm[ 0 ], bm[ 0 ] ), dot( bm[ 1 ], bm[ 1 ] ), dot( bm[ 2 ], bm[ 2 ] ) ); - transformedNormal = bm * transformedNormal; - #ifdef USE_TANGENT - transformedTangent = bm * transformedTangent; - #endif -#endif -#ifdef USE_INSTANCING - mat3 im = mat3( instanceMatrix ); - transformedNormal /= vec3( dot( im[ 0 ], im[ 0 ] ), dot( im[ 1 ], im[ 1 ] ), dot( im[ 2 ], im[ 2 ] ) ); - transformedNormal = im * transformedNormal; - #ifdef USE_TANGENT - transformedTangent = im * transformedTangent; - #endif -#endif -transformedNormal = normalMatrix * transformedNormal; -#ifdef FLIP_SIDED - transformedNormal = - transformedNormal; -#endif -#ifdef USE_TANGENT - transformedTangent = ( modelViewMatrix * vec4( transformedTangent, 0.0 ) ).xyz; - #ifdef FLIP_SIDED - transformedTangent = - transformedTangent; - #endif -#endif`,Mv=`#ifdef USE_DISPLACEMENTMAP - uniform sampler2D displacementMap; - uniform float displacementScale; - uniform float displacementBias; -#endif`,wv=`#ifdef USE_DISPLACEMENTMAP - transformed += normalize( objectNormal ) * ( texture2D( displacementMap, vDisplacementMapUv ).x * displacementScale + displacementBias ); -#endif`,Tv=`#ifdef USE_EMISSIVEMAP - vec4 emissiveColor = texture2D( emissiveMap, vEmissiveMapUv ); - #ifdef DECODE_VIDEO_TEXTURE_EMISSIVE - emissiveColor = sRGBTransferEOTF( emissiveColor ); - #endif - totalEmissiveRadiance *= emissiveColor.rgb; -#endif`,Ev=`#ifdef USE_EMISSIVEMAP - uniform sampler2D emissiveMap; -#endif`,Av="gl_FragColor = linearToOutputTexel( gl_FragColor );",Pv=`vec4 LinearTransferOETF( in vec4 value ) { - return value; -} -vec4 sRGBTransferEOTF( in vec4 value ) { - return vec4( mix( pow( value.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), value.rgb * 0.0773993808, vec3( lessThanEqual( value.rgb, vec3( 0.04045 ) ) ) ), value.a ); -} -vec4 sRGBTransferOETF( in vec4 value ) { - return vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a ); -}`,Rv=`#ifdef USE_ENVMAP - #ifdef ENV_WORLDPOS - vec3 cameraToFrag; - if ( isOrthographic ) { - cameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) ); - } else { - cameraToFrag = normalize( vWorldPosition - cameraPosition ); - } - vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); - #ifdef ENVMAP_MODE_REFLECTION - vec3 reflectVec = reflect( cameraToFrag, worldNormal ); - #else - vec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio ); - #endif - #else - vec3 reflectVec = vReflect; - #endif - #ifdef ENVMAP_TYPE_CUBE - vec4 envColor = textureCube( envMap, envMapRotation * vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) ); - #else - vec4 envColor = vec4( 0.0 ); - #endif - #ifdef ENVMAP_BLENDING_MULTIPLY - outgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity ); - #elif defined( ENVMAP_BLENDING_MIX ) - outgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity ); - #elif defined( ENVMAP_BLENDING_ADD ) - outgoingLight += envColor.xyz * specularStrength * reflectivity; - #endif -#endif`,Cv=`#ifdef USE_ENVMAP - uniform float envMapIntensity; - uniform float flipEnvMap; - uniform mat3 envMapRotation; - #ifdef ENVMAP_TYPE_CUBE - uniform samplerCube envMap; - #else - uniform sampler2D envMap; - #endif - -#endif`,kv=`#ifdef USE_ENVMAP - uniform float reflectivity; - #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT ) - #define ENV_WORLDPOS - #endif - #ifdef ENV_WORLDPOS - varying vec3 vWorldPosition; - uniform float refractionRatio; - #else - varying vec3 vReflect; - #endif -#endif`,Lv=`#ifdef USE_ENVMAP - #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT ) - #define ENV_WORLDPOS - #endif - #ifdef ENV_WORLDPOS - - varying vec3 vWorldPosition; - #else - varying vec3 vReflect; - uniform float refractionRatio; - #endif -#endif`,Dv=`#ifdef USE_ENVMAP - #ifdef ENV_WORLDPOS - vWorldPosition = worldPosition.xyz; - #else - vec3 cameraToVertex; - if ( isOrthographic ) { - cameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) ); - } else { - cameraToVertex = normalize( worldPosition.xyz - cameraPosition ); - } - vec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix ); - #ifdef ENVMAP_MODE_REFLECTION - vReflect = reflect( cameraToVertex, worldNormal ); - #else - vReflect = refract( cameraToVertex, worldNormal, refractionRatio ); - #endif - #endif -#endif`,Iv=`#ifdef USE_FOG - vFogDepth = - mvPosition.z; -#endif`,Uv=`#ifdef USE_FOG - varying float vFogDepth; -#endif`,Nv=`#ifdef USE_FOG - #ifdef FOG_EXP2 - float fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth ); - #else - float fogFactor = smoothstep( fogNear, fogFar, vFogDepth ); - #endif - gl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor ); -#endif`,Qv=`#ifdef USE_FOG - uniform vec3 fogColor; - varying float vFogDepth; - #ifdef FOG_EXP2 - uniform float fogDensity; - #else - uniform float fogNear; - uniform float fogFar; - #endif -#endif`,Bv=`#ifdef USE_GRADIENTMAP - uniform sampler2D gradientMap; -#endif -vec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) { - float dotNL = dot( normal, lightDirection ); - vec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 ); - #ifdef USE_GRADIENTMAP - return vec3( texture2D( gradientMap, coord ).r ); - #else - vec2 fw = fwidth( coord ) * 0.5; - return mix( vec3( 0.7 ), vec3( 1.0 ), smoothstep( 0.7 - fw.x, 0.7 + fw.x, coord.x ) ); - #endif -}`,Fv=`#ifdef USE_LIGHTMAP - uniform sampler2D lightMap; - uniform float lightMapIntensity; -#endif`,$v=`LambertMaterial material; -material.diffuseColor = diffuseColor.rgb; -material.specularStrength = specularStrength;`,Vv=`varying vec3 vViewPosition; -struct LambertMaterial { - vec3 diffuseColor; - float specularStrength; -}; -void RE_Direct_Lambert( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) { - float dotNL = saturate( dot( geometryNormal, directLight.direction ) ); - vec3 irradiance = dotNL * directLight.color; - reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); -} -void RE_IndirectDiffuse_Lambert( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) { - reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); -} -#define RE_Direct RE_Direct_Lambert -#define RE_IndirectDiffuse RE_IndirectDiffuse_Lambert`,zv=`uniform bool receiveShadow; -uniform vec3 ambientLightColor; -#if defined( USE_LIGHT_PROBES ) - uniform vec3 lightProbe[ 9 ]; -#endif -vec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) { - float x = normal.x, y = normal.y, z = normal.z; - vec3 result = shCoefficients[ 0 ] * 0.886227; - result += shCoefficients[ 1 ] * 2.0 * 0.511664 * y; - result += shCoefficients[ 2 ] * 2.0 * 0.511664 * z; - result += shCoefficients[ 3 ] * 2.0 * 0.511664 * x; - result += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y; - result += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z; - result += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 ); - result += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z; - result += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y ); - return result; -} -vec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in vec3 normal ) { - vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); - vec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe ); - return irradiance; -} -vec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) { - vec3 irradiance = ambientLightColor; - return irradiance; -} -float getDistanceAttenuation( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) { - float distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 ); - if ( cutoffDistance > 0.0 ) { - distanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) ); - } - return distanceFalloff; -} -float getSpotAttenuation( const in float coneCosine, const in float penumbraCosine, const in float angleCosine ) { - return smoothstep( coneCosine, penumbraCosine, angleCosine ); -} -#if NUM_DIR_LIGHTS > 0 - struct DirectionalLight { - vec3 direction; - vec3 color; - }; - uniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ]; - void getDirectionalLightInfo( const in DirectionalLight directionalLight, out IncidentLight light ) { - light.color = directionalLight.color; - light.direction = directionalLight.direction; - light.visible = true; - } -#endif -#if NUM_POINT_LIGHTS > 0 - struct PointLight { - vec3 position; - vec3 color; - float distance; - float decay; - }; - uniform PointLight pointLights[ NUM_POINT_LIGHTS ]; - void getPointLightInfo( const in PointLight pointLight, const in vec3 geometryPosition, out IncidentLight light ) { - vec3 lVector = pointLight.position - geometryPosition; - light.direction = normalize( lVector ); - float lightDistance = length( lVector ); - light.color = pointLight.color; - light.color *= getDistanceAttenuation( lightDistance, pointLight.distance, pointLight.decay ); - light.visible = ( light.color != vec3( 0.0 ) ); - } -#endif -#if NUM_SPOT_LIGHTS > 0 - struct SpotLight { - vec3 position; - vec3 direction; - vec3 color; - float distance; - float decay; - float coneCos; - float penumbraCos; - }; - uniform SpotLight spotLights[ NUM_SPOT_LIGHTS ]; - void getSpotLightInfo( const in SpotLight spotLight, const in vec3 geometryPosition, out IncidentLight light ) { - vec3 lVector = spotLight.position - geometryPosition; - light.direction = normalize( lVector ); - float angleCos = dot( light.direction, spotLight.direction ); - float spotAttenuation = getSpotAttenuation( spotLight.coneCos, spotLight.penumbraCos, angleCos ); - if ( spotAttenuation > 0.0 ) { - float lightDistance = length( lVector ); - light.color = spotLight.color * spotAttenuation; - light.color *= getDistanceAttenuation( lightDistance, spotLight.distance, spotLight.decay ); - light.visible = ( light.color != vec3( 0.0 ) ); - } else { - light.color = vec3( 0.0 ); - light.visible = false; - } - } -#endif -#if NUM_RECT_AREA_LIGHTS > 0 - struct RectAreaLight { - vec3 color; - vec3 position; - vec3 halfWidth; - vec3 halfHeight; - }; - uniform sampler2D ltc_1; uniform sampler2D ltc_2; - uniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ]; -#endif -#if NUM_HEMI_LIGHTS > 0 - struct HemisphereLight { - vec3 direction; - vec3 skyColor; - vec3 groundColor; - }; - uniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ]; - vec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in vec3 normal ) { - float dotNL = dot( normal, hemiLight.direction ); - float hemiDiffuseWeight = 0.5 * dotNL + 0.5; - vec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight ); - return irradiance; - } -#endif`,Zv=`#ifdef USE_ENVMAP - vec3 getIBLIrradiance( const in vec3 normal ) { - #ifdef ENVMAP_TYPE_CUBE_UV - vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); - vec4 envMapColor = textureCubeUV( envMap, envMapRotation * worldNormal, 1.0 ); - return PI * envMapColor.rgb * envMapIntensity; - #else - return vec3( 0.0 ); - #endif - } - vec3 getIBLRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness ) { - #ifdef ENVMAP_TYPE_CUBE_UV - vec3 reflectVec = reflect( - viewDir, normal ); - reflectVec = normalize( mix( reflectVec, normal, roughness * roughness) ); - reflectVec = inverseTransformDirection( reflectVec, viewMatrix ); - vec4 envMapColor = textureCubeUV( envMap, envMapRotation * reflectVec, roughness ); - return envMapColor.rgb * envMapIntensity; - #else - return vec3( 0.0 ); - #endif - } - #ifdef USE_ANISOTROPY - vec3 getIBLAnisotropyRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness, const in vec3 bitangent, const in float anisotropy ) { - #ifdef ENVMAP_TYPE_CUBE_UV - vec3 bentNormal = cross( bitangent, viewDir ); - bentNormal = normalize( cross( bentNormal, bitangent ) ); - bentNormal = normalize( mix( bentNormal, normal, pow2( pow2( 1.0 - anisotropy * ( 1.0 - roughness ) ) ) ) ); - return getIBLRadiance( viewDir, bentNormal, roughness ); - #else - return vec3( 0.0 ); - #endif - } - #endif -#endif`,Gv=`ToonMaterial material; -material.diffuseColor = diffuseColor.rgb;`,Xv=`varying vec3 vViewPosition; -struct ToonMaterial { - vec3 diffuseColor; -}; -void RE_Direct_Toon( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) { - vec3 irradiance = getGradientIrradiance( geometryNormal, directLight.direction ) * directLight.color; - reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); -} -void RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) { - reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); -} -#define RE_Direct RE_Direct_Toon -#define RE_IndirectDiffuse RE_IndirectDiffuse_Toon`,Hv=`BlinnPhongMaterial material; -material.diffuseColor = diffuseColor.rgb; -material.specularColor = specular; -material.specularShininess = shininess; -material.specularStrength = specularStrength;`,Wv=`varying vec3 vViewPosition; -struct BlinnPhongMaterial { - vec3 diffuseColor; - vec3 specularColor; - float specularShininess; - float specularStrength; -}; -void RE_Direct_BlinnPhong( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) { - float dotNL = saturate( dot( geometryNormal, directLight.direction ) ); - vec3 irradiance = dotNL * directLight.color; - reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); - reflectedLight.directSpecular += irradiance * BRDF_BlinnPhong( directLight.direction, geometryViewDir, geometryNormal, material.specularColor, material.specularShininess ) * material.specularStrength; -} -void RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) { - reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); -} -#define RE_Direct RE_Direct_BlinnPhong -#define RE_IndirectDiffuse RE_IndirectDiffuse_BlinnPhong`,jv=`PhysicalMaterial material; -material.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor ); -vec3 dxy = max( abs( dFdx( nonPerturbedNormal ) ), abs( dFdy( nonPerturbedNormal ) ) ); -float geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z ); -material.roughness = max( roughnessFactor, 0.0525 );material.roughness += geometryRoughness; -material.roughness = min( material.roughness, 1.0 ); -#ifdef IOR - material.ior = ior; - #ifdef USE_SPECULAR - float specularIntensityFactor = specularIntensity; - vec3 specularColorFactor = specularColor; - #ifdef USE_SPECULAR_COLORMAP - specularColorFactor *= texture2D( specularColorMap, vSpecularColorMapUv ).rgb; - #endif - #ifdef USE_SPECULAR_INTENSITYMAP - specularIntensityFactor *= texture2D( specularIntensityMap, vSpecularIntensityMapUv ).a; - #endif - material.specularF90 = mix( specularIntensityFactor, 1.0, metalnessFactor ); - #else - float specularIntensityFactor = 1.0; - vec3 specularColorFactor = vec3( 1.0 ); - material.specularF90 = 1.0; - #endif - material.specularColor = mix( min( pow2( ( material.ior - 1.0 ) / ( material.ior + 1.0 ) ) * specularColorFactor, vec3( 1.0 ) ) * specularIntensityFactor, diffuseColor.rgb, metalnessFactor ); -#else - material.specularColor = mix( vec3( 0.04 ), diffuseColor.rgb, metalnessFactor ); - material.specularF90 = 1.0; -#endif -#ifdef USE_CLEARCOAT - material.clearcoat = clearcoat; - material.clearcoatRoughness = clearcoatRoughness; - material.clearcoatF0 = vec3( 0.04 ); - material.clearcoatF90 = 1.0; - #ifdef USE_CLEARCOATMAP - material.clearcoat *= texture2D( clearcoatMap, vClearcoatMapUv ).x; - #endif - #ifdef USE_CLEARCOAT_ROUGHNESSMAP - material.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vClearcoatRoughnessMapUv ).y; - #endif - material.clearcoat = saturate( material.clearcoat ); material.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 ); - material.clearcoatRoughness += geometryRoughness; - material.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 ); -#endif -#ifdef USE_DISPERSION - material.dispersion = dispersion; -#endif -#ifdef USE_IRIDESCENCE - material.iridescence = iridescence; - material.iridescenceIOR = iridescenceIOR; - #ifdef USE_IRIDESCENCEMAP - material.iridescence *= texture2D( iridescenceMap, vIridescenceMapUv ).r; - #endif - #ifdef USE_IRIDESCENCE_THICKNESSMAP - material.iridescenceThickness = (iridescenceThicknessMaximum - iridescenceThicknessMinimum) * texture2D( iridescenceThicknessMap, vIridescenceThicknessMapUv ).g + iridescenceThicknessMinimum; - #else - material.iridescenceThickness = iridescenceThicknessMaximum; - #endif -#endif -#ifdef USE_SHEEN - material.sheenColor = sheenColor; - #ifdef USE_SHEEN_COLORMAP - material.sheenColor *= texture2D( sheenColorMap, vSheenColorMapUv ).rgb; - #endif - material.sheenRoughness = clamp( sheenRoughness, 0.07, 1.0 ); - #ifdef USE_SHEEN_ROUGHNESSMAP - material.sheenRoughness *= texture2D( sheenRoughnessMap, vSheenRoughnessMapUv ).a; - #endif -#endif -#ifdef USE_ANISOTROPY - #ifdef USE_ANISOTROPYMAP - mat2 anisotropyMat = mat2( anisotropyVector.x, anisotropyVector.y, - anisotropyVector.y, anisotropyVector.x ); - vec3 anisotropyPolar = texture2D( anisotropyMap, vAnisotropyMapUv ).rgb; - vec2 anisotropyV = anisotropyMat * normalize( 2.0 * anisotropyPolar.rg - vec2( 1.0 ) ) * anisotropyPolar.b; - #else - vec2 anisotropyV = anisotropyVector; - #endif - material.anisotropy = length( anisotropyV ); - if( material.anisotropy == 0.0 ) { - anisotropyV = vec2( 1.0, 0.0 ); - } else { - anisotropyV /= material.anisotropy; - material.anisotropy = saturate( material.anisotropy ); - } - material.alphaT = mix( pow2( material.roughness ), 1.0, pow2( material.anisotropy ) ); - material.anisotropyT = tbn[ 0 ] * anisotropyV.x + tbn[ 1 ] * anisotropyV.y; - material.anisotropyB = tbn[ 1 ] * anisotropyV.x - tbn[ 0 ] * anisotropyV.y; -#endif`,qv=`struct PhysicalMaterial { - vec3 diffuseColor; - float roughness; - vec3 specularColor; - float specularF90; - float dispersion; - #ifdef USE_CLEARCOAT - float clearcoat; - float clearcoatRoughness; - vec3 clearcoatF0; - float clearcoatF90; - #endif - #ifdef USE_IRIDESCENCE - float iridescence; - float iridescenceIOR; - float iridescenceThickness; - vec3 iridescenceFresnel; - vec3 iridescenceF0; - #endif - #ifdef USE_SHEEN - vec3 sheenColor; - float sheenRoughness; - #endif - #ifdef IOR - float ior; - #endif - #ifdef USE_TRANSMISSION - float transmission; - float transmissionAlpha; - float thickness; - float attenuationDistance; - vec3 attenuationColor; - #endif - #ifdef USE_ANISOTROPY - float anisotropy; - float alphaT; - vec3 anisotropyT; - vec3 anisotropyB; - #endif -}; -vec3 clearcoatSpecularDirect = vec3( 0.0 ); -vec3 clearcoatSpecularIndirect = vec3( 0.0 ); -vec3 sheenSpecularDirect = vec3( 0.0 ); -vec3 sheenSpecularIndirect = vec3(0.0 ); -vec3 Schlick_to_F0( const in vec3 f, const in float f90, const in float dotVH ) { - float x = clamp( 1.0 - dotVH, 0.0, 1.0 ); - float x2 = x * x; - float x5 = clamp( x * x2 * x2, 0.0, 0.9999 ); - return ( f - vec3( f90 ) * x5 ) / ( 1.0 - x5 ); -} -float V_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) { - float a2 = pow2( alpha ); - float gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) ); - float gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) ); - return 0.5 / max( gv + gl, EPSILON ); -} -float D_GGX( const in float alpha, const in float dotNH ) { - float a2 = pow2( alpha ); - float denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0; - return RECIPROCAL_PI * a2 / pow2( denom ); -} -#ifdef USE_ANISOTROPY - float V_GGX_SmithCorrelated_Anisotropic( const in float alphaT, const in float alphaB, const in float dotTV, const in float dotBV, const in float dotTL, const in float dotBL, const in float dotNV, const in float dotNL ) { - float gv = dotNL * length( vec3( alphaT * dotTV, alphaB * dotBV, dotNV ) ); - float gl = dotNV * length( vec3( alphaT * dotTL, alphaB * dotBL, dotNL ) ); - float v = 0.5 / ( gv + gl ); - return saturate(v); - } - float D_GGX_Anisotropic( const in float alphaT, const in float alphaB, const in float dotNH, const in float dotTH, const in float dotBH ) { - float a2 = alphaT * alphaB; - highp vec3 v = vec3( alphaB * dotTH, alphaT * dotBH, a2 * dotNH ); - highp float v2 = dot( v, v ); - float w2 = a2 / v2; - return RECIPROCAL_PI * a2 * pow2 ( w2 ); - } -#endif -#ifdef USE_CLEARCOAT - vec3 BRDF_GGX_Clearcoat( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material) { - vec3 f0 = material.clearcoatF0; - float f90 = material.clearcoatF90; - float roughness = material.clearcoatRoughness; - float alpha = pow2( roughness ); - vec3 halfDir = normalize( lightDir + viewDir ); - float dotNL = saturate( dot( normal, lightDir ) ); - float dotNV = saturate( dot( normal, viewDir ) ); - float dotNH = saturate( dot( normal, halfDir ) ); - float dotVH = saturate( dot( viewDir, halfDir ) ); - vec3 F = F_Schlick( f0, f90, dotVH ); - float V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV ); - float D = D_GGX( alpha, dotNH ); - return F * ( V * D ); - } -#endif -vec3 BRDF_GGX( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material ) { - vec3 f0 = material.specularColor; - float f90 = material.specularF90; - float roughness = material.roughness; - float alpha = pow2( roughness ); - vec3 halfDir = normalize( lightDir + viewDir ); - float dotNL = saturate( dot( normal, lightDir ) ); - float dotNV = saturate( dot( normal, viewDir ) ); - float dotNH = saturate( dot( normal, halfDir ) ); - float dotVH = saturate( dot( viewDir, halfDir ) ); - vec3 F = F_Schlick( f0, f90, dotVH ); - #ifdef USE_IRIDESCENCE - F = mix( F, material.iridescenceFresnel, material.iridescence ); - #endif - #ifdef USE_ANISOTROPY - float dotTL = dot( material.anisotropyT, lightDir ); - float dotTV = dot( material.anisotropyT, viewDir ); - float dotTH = dot( material.anisotropyT, halfDir ); - float dotBL = dot( material.anisotropyB, lightDir ); - float dotBV = dot( material.anisotropyB, viewDir ); - float dotBH = dot( material.anisotropyB, halfDir ); - float V = V_GGX_SmithCorrelated_Anisotropic( material.alphaT, alpha, dotTV, dotBV, dotTL, dotBL, dotNV, dotNL ); - float D = D_GGX_Anisotropic( material.alphaT, alpha, dotNH, dotTH, dotBH ); - #else - float V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV ); - float D = D_GGX( alpha, dotNH ); - #endif - return F * ( V * D ); -} -vec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) { - const float LUT_SIZE = 64.0; - const float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE; - const float LUT_BIAS = 0.5 / LUT_SIZE; - float dotNV = saturate( dot( N, V ) ); - vec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) ); - uv = uv * LUT_SCALE + LUT_BIAS; - return uv; -} -float LTC_ClippedSphereFormFactor( const in vec3 f ) { - float l = length( f ); - return max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 ); -} -vec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) { - float x = dot( v1, v2 ); - float y = abs( x ); - float a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y; - float b = 3.4175940 + ( 4.1616724 + y ) * y; - float v = a / b; - float theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v; - return cross( v1, v2 ) * theta_sintheta; -} -vec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) { - vec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ]; - vec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ]; - vec3 lightNormal = cross( v1, v2 ); - if( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 ); - vec3 T1, T2; - T1 = normalize( V - N * dot( V, N ) ); - T2 = - cross( N, T1 ); - mat3 mat = mInv * transposeMat3( mat3( T1, T2, N ) ); - vec3 coords[ 4 ]; - coords[ 0 ] = mat * ( rectCoords[ 0 ] - P ); - coords[ 1 ] = mat * ( rectCoords[ 1 ] - P ); - coords[ 2 ] = mat * ( rectCoords[ 2 ] - P ); - coords[ 3 ] = mat * ( rectCoords[ 3 ] - P ); - coords[ 0 ] = normalize( coords[ 0 ] ); - coords[ 1 ] = normalize( coords[ 1 ] ); - coords[ 2 ] = normalize( coords[ 2 ] ); - coords[ 3 ] = normalize( coords[ 3 ] ); - vec3 vectorFormFactor = vec3( 0.0 ); - vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] ); - vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] ); - vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] ); - vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] ); - float result = LTC_ClippedSphereFormFactor( vectorFormFactor ); - return vec3( result ); -} -#if defined( USE_SHEEN ) -float D_Charlie( float roughness, float dotNH ) { - float alpha = pow2( roughness ); - float invAlpha = 1.0 / alpha; - float cos2h = dotNH * dotNH; - float sin2h = max( 1.0 - cos2h, 0.0078125 ); - return ( 2.0 + invAlpha ) * pow( sin2h, invAlpha * 0.5 ) / ( 2.0 * PI ); -} -float V_Neubelt( float dotNV, float dotNL ) { - return saturate( 1.0 / ( 4.0 * ( dotNL + dotNV - dotNL * dotNV ) ) ); -} -vec3 BRDF_Sheen( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, vec3 sheenColor, const in float sheenRoughness ) { - vec3 halfDir = normalize( lightDir + viewDir ); - float dotNL = saturate( dot( normal, lightDir ) ); - float dotNV = saturate( dot( normal, viewDir ) ); - float dotNH = saturate( dot( normal, halfDir ) ); - float D = D_Charlie( sheenRoughness, dotNH ); - float V = V_Neubelt( dotNV, dotNL ); - return sheenColor * ( D * V ); -} -#endif -float IBLSheenBRDF( const in vec3 normal, const in vec3 viewDir, const in float roughness ) { - float dotNV = saturate( dot( normal, viewDir ) ); - float r2 = roughness * roughness; - float a = roughness < 0.25 ? -339.2 * r2 + 161.4 * roughness - 25.9 : -8.48 * r2 + 14.3 * roughness - 9.95; - float b = roughness < 0.25 ? 44.0 * r2 - 23.7 * roughness + 3.26 : 1.97 * r2 - 3.27 * roughness + 0.72; - float DG = exp( a * dotNV + b ) + ( roughness < 0.25 ? 0.0 : 0.1 * ( roughness - 0.25 ) ); - return saturate( DG * RECIPROCAL_PI ); -} -vec2 DFGApprox( const in vec3 normal, const in vec3 viewDir, const in float roughness ) { - float dotNV = saturate( dot( normal, viewDir ) ); - const vec4 c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 ); - const vec4 c1 = vec4( 1, 0.0425, 1.04, - 0.04 ); - vec4 r = roughness * c0 + c1; - float a004 = min( r.x * r.x, exp2( - 9.28 * dotNV ) ) * r.x + r.y; - vec2 fab = vec2( - 1.04, 1.04 ) * a004 + r.zw; - return fab; -} -vec3 EnvironmentBRDF( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness ) { - vec2 fab = DFGApprox( normal, viewDir, roughness ); - return specularColor * fab.x + specularF90 * fab.y; -} -#ifdef USE_IRIDESCENCE -void computeMultiscatteringIridescence( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float iridescence, const in vec3 iridescenceF0, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) { -#else -void computeMultiscattering( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) { -#endif - vec2 fab = DFGApprox( normal, viewDir, roughness ); - #ifdef USE_IRIDESCENCE - vec3 Fr = mix( specularColor, iridescenceF0, iridescence ); - #else - vec3 Fr = specularColor; - #endif - vec3 FssEss = Fr * fab.x + specularF90 * fab.y; - float Ess = fab.x + fab.y; - float Ems = 1.0 - Ess; - vec3 Favg = Fr + ( 1.0 - Fr ) * 0.047619; vec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg ); - singleScatter += FssEss; - multiScatter += Fms * Ems; -} -#if NUM_RECT_AREA_LIGHTS > 0 - void RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) { - vec3 normal = geometryNormal; - vec3 viewDir = geometryViewDir; - vec3 position = geometryPosition; - vec3 lightPos = rectAreaLight.position; - vec3 halfWidth = rectAreaLight.halfWidth; - vec3 halfHeight = rectAreaLight.halfHeight; - vec3 lightColor = rectAreaLight.color; - float roughness = material.roughness; - vec3 rectCoords[ 4 ]; - rectCoords[ 0 ] = lightPos + halfWidth - halfHeight; rectCoords[ 1 ] = lightPos - halfWidth - halfHeight; - rectCoords[ 2 ] = lightPos - halfWidth + halfHeight; - rectCoords[ 3 ] = lightPos + halfWidth + halfHeight; - vec2 uv = LTC_Uv( normal, viewDir, roughness ); - vec4 t1 = texture2D( ltc_1, uv ); - vec4 t2 = texture2D( ltc_2, uv ); - mat3 mInv = mat3( - vec3( t1.x, 0, t1.y ), - vec3( 0, 1, 0 ), - vec3( t1.z, 0, t1.w ) - ); - vec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y ); - reflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords ); - reflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords ); - } -#endif -void RE_Direct_Physical( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) { - float dotNL = saturate( dot( geometryNormal, directLight.direction ) ); - vec3 irradiance = dotNL * directLight.color; - #ifdef USE_CLEARCOAT - float dotNLcc = saturate( dot( geometryClearcoatNormal, directLight.direction ) ); - vec3 ccIrradiance = dotNLcc * directLight.color; - clearcoatSpecularDirect += ccIrradiance * BRDF_GGX_Clearcoat( directLight.direction, geometryViewDir, geometryClearcoatNormal, material ); - #endif - #ifdef USE_SHEEN - sheenSpecularDirect += irradiance * BRDF_Sheen( directLight.direction, geometryViewDir, geometryNormal, material.sheenColor, material.sheenRoughness ); - #endif - reflectedLight.directSpecular += irradiance * BRDF_GGX( directLight.direction, geometryViewDir, geometryNormal, material ); - reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); -} -void RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) { - reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); -} -void RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) { - #ifdef USE_CLEARCOAT - clearcoatSpecularIndirect += clearcoatRadiance * EnvironmentBRDF( geometryClearcoatNormal, geometryViewDir, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness ); - #endif - #ifdef USE_SHEEN - sheenSpecularIndirect += irradiance * material.sheenColor * IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness ); - #endif - vec3 singleScattering = vec3( 0.0 ); - vec3 multiScattering = vec3( 0.0 ); - vec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI; - #ifdef USE_IRIDESCENCE - computeMultiscatteringIridescence( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.iridescence, material.iridescenceFresnel, material.roughness, singleScattering, multiScattering ); - #else - computeMultiscattering( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.roughness, singleScattering, multiScattering ); - #endif - vec3 totalScattering = singleScattering + multiScattering; - vec3 diffuse = material.diffuseColor * ( 1.0 - max( max( totalScattering.r, totalScattering.g ), totalScattering.b ) ); - reflectedLight.indirectSpecular += radiance * singleScattering; - reflectedLight.indirectSpecular += multiScattering * cosineWeightedIrradiance; - reflectedLight.indirectDiffuse += diffuse * cosineWeightedIrradiance; -} -#define RE_Direct RE_Direct_Physical -#define RE_Direct_RectArea RE_Direct_RectArea_Physical -#define RE_IndirectDiffuse RE_IndirectDiffuse_Physical -#define RE_IndirectSpecular RE_IndirectSpecular_Physical -float computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) { - return saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion ); -}`,Yv=` -vec3 geometryPosition = - vViewPosition; -vec3 geometryNormal = normal; -vec3 geometryViewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition ); -vec3 geometryClearcoatNormal = vec3( 0.0 ); -#ifdef USE_CLEARCOAT - geometryClearcoatNormal = clearcoatNormal; -#endif -#ifdef USE_IRIDESCENCE - float dotNVi = saturate( dot( normal, geometryViewDir ) ); - if ( material.iridescenceThickness == 0.0 ) { - material.iridescence = 0.0; - } else { - material.iridescence = saturate( material.iridescence ); - } - if ( material.iridescence > 0.0 ) { - material.iridescenceFresnel = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.specularColor ); - material.iridescenceF0 = Schlick_to_F0( material.iridescenceFresnel, 1.0, dotNVi ); - } -#endif -IncidentLight directLight; -#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct ) - PointLight pointLight; - #if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0 - PointLightShadow pointLightShadow; - #endif - #pragma unroll_loop_start - for ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) { - pointLight = pointLights[ i ]; - getPointLightInfo( pointLight, geometryPosition, directLight ); - #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS ) - pointLightShadow = pointLightShadows[ i ]; - directLight.color *= ( directLight.visible && receiveShadow ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowIntensity, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0; - #endif - RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); - } - #pragma unroll_loop_end -#endif -#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct ) - SpotLight spotLight; - vec4 spotColor; - vec3 spotLightCoord; - bool inSpotLightMap; - #if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0 - SpotLightShadow spotLightShadow; - #endif - #pragma unroll_loop_start - for ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) { - spotLight = spotLights[ i ]; - getSpotLightInfo( spotLight, geometryPosition, directLight ); - #if ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS ) - #define SPOT_LIGHT_MAP_INDEX UNROLLED_LOOP_INDEX - #elif ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS ) - #define SPOT_LIGHT_MAP_INDEX NUM_SPOT_LIGHT_MAPS - #else - #define SPOT_LIGHT_MAP_INDEX ( UNROLLED_LOOP_INDEX - NUM_SPOT_LIGHT_SHADOWS + NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS ) - #endif - #if ( SPOT_LIGHT_MAP_INDEX < NUM_SPOT_LIGHT_MAPS ) - spotLightCoord = vSpotLightCoord[ i ].xyz / vSpotLightCoord[ i ].w; - inSpotLightMap = all( lessThan( abs( spotLightCoord * 2. - 1. ), vec3( 1.0 ) ) ); - spotColor = texture2D( spotLightMap[ SPOT_LIGHT_MAP_INDEX ], spotLightCoord.xy ); - directLight.color = inSpotLightMap ? directLight.color * spotColor.rgb : directLight.color; - #endif - #undef SPOT_LIGHT_MAP_INDEX - #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS ) - spotLightShadow = spotLightShadows[ i ]; - directLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowIntensity, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotLightCoord[ i ] ) : 1.0; - #endif - RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); - } - #pragma unroll_loop_end -#endif -#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct ) - DirectionalLight directionalLight; - #if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0 - DirectionalLightShadow directionalLightShadow; - #endif - #pragma unroll_loop_start - for ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) { - directionalLight = directionalLights[ i ]; - getDirectionalLightInfo( directionalLight, directLight ); - #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS ) - directionalLightShadow = directionalLightShadows[ i ]; - directLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowIntensity, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0; - #endif - RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); - } - #pragma unroll_loop_end -#endif -#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea ) - RectAreaLight rectAreaLight; - #pragma unroll_loop_start - for ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) { - rectAreaLight = rectAreaLights[ i ]; - RE_Direct_RectArea( rectAreaLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); - } - #pragma unroll_loop_end -#endif -#if defined( RE_IndirectDiffuse ) - vec3 iblIrradiance = vec3( 0.0 ); - vec3 irradiance = getAmbientLightIrradiance( ambientLightColor ); - #if defined( USE_LIGHT_PROBES ) - irradiance += getLightProbeIrradiance( lightProbe, geometryNormal ); - #endif - #if ( NUM_HEMI_LIGHTS > 0 ) - #pragma unroll_loop_start - for ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) { - irradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometryNormal ); - } - #pragma unroll_loop_end - #endif -#endif -#if defined( RE_IndirectSpecular ) - vec3 radiance = vec3( 0.0 ); - vec3 clearcoatRadiance = vec3( 0.0 ); -#endif`,Kv=`#if defined( RE_IndirectDiffuse ) - #ifdef USE_LIGHTMAP - vec4 lightMapTexel = texture2D( lightMap, vLightMapUv ); - vec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity; - irradiance += lightMapIrradiance; - #endif - #if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV ) - iblIrradiance += getIBLIrradiance( geometryNormal ); - #endif -#endif -#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular ) - #ifdef USE_ANISOTROPY - radiance += getIBLAnisotropyRadiance( geometryViewDir, geometryNormal, material.roughness, material.anisotropyB, material.anisotropy ); - #else - radiance += getIBLRadiance( geometryViewDir, geometryNormal, material.roughness ); - #endif - #ifdef USE_CLEARCOAT - clearcoatRadiance += getIBLRadiance( geometryViewDir, geometryClearcoatNormal, material.clearcoatRoughness ); - #endif -#endif`,Jv=`#if defined( RE_IndirectDiffuse ) - RE_IndirectDiffuse( irradiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); -#endif -#if defined( RE_IndirectSpecular ) - RE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); -#endif`,eb=`#if defined( USE_LOGDEPTHBUF ) - gl_FragDepth = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5; -#endif`,tb=`#if defined( USE_LOGDEPTHBUF ) - uniform float logDepthBufFC; - varying float vFragDepth; - varying float vIsPerspective; -#endif`,nb=`#ifdef USE_LOGDEPTHBUF - varying float vFragDepth; - varying float vIsPerspective; -#endif`,ib=`#ifdef USE_LOGDEPTHBUF - vFragDepth = 1.0 + gl_Position.w; - vIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) ); -#endif`,sb=`#ifdef USE_MAP - vec4 sampledDiffuseColor = texture2D( map, vMapUv ); - #ifdef DECODE_VIDEO_TEXTURE - sampledDiffuseColor = sRGBTransferEOTF( sampledDiffuseColor ); - #endif - diffuseColor *= sampledDiffuseColor; -#endif`,rb=`#ifdef USE_MAP - uniform sampler2D map; -#endif`,ob=`#if defined( USE_MAP ) || defined( USE_ALPHAMAP ) - #if defined( USE_POINTS_UV ) - vec2 uv = vUv; - #else - vec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy; - #endif -#endif -#ifdef USE_MAP - diffuseColor *= texture2D( map, uv ); -#endif -#ifdef USE_ALPHAMAP - diffuseColor.a *= texture2D( alphaMap, uv ).g; -#endif`,ab=`#if defined( USE_POINTS_UV ) - varying vec2 vUv; -#else - #if defined( USE_MAP ) || defined( USE_ALPHAMAP ) - uniform mat3 uvTransform; - #endif -#endif -#ifdef USE_MAP - uniform sampler2D map; -#endif -#ifdef USE_ALPHAMAP - uniform sampler2D alphaMap; -#endif`,lb=`float metalnessFactor = metalness; -#ifdef USE_METALNESSMAP - vec4 texelMetalness = texture2D( metalnessMap, vMetalnessMapUv ); - metalnessFactor *= texelMetalness.b; -#endif`,cb=`#ifdef USE_METALNESSMAP - uniform sampler2D metalnessMap; -#endif`,hb=`#ifdef USE_INSTANCING_MORPH - float morphTargetInfluences[ MORPHTARGETS_COUNT ]; - float morphTargetBaseInfluence = texelFetch( morphTexture, ivec2( 0, gl_InstanceID ), 0 ).r; - for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { - morphTargetInfluences[i] = texelFetch( morphTexture, ivec2( i + 1, gl_InstanceID ), 0 ).r; - } -#endif`,ub=`#if defined( USE_MORPHCOLORS ) - vColor *= morphTargetBaseInfluence; - for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { - #if defined( USE_COLOR_ALPHA ) - if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ) * morphTargetInfluences[ i ]; - #elif defined( USE_COLOR ) - if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ]; - #endif - } -#endif`,fb=`#ifdef USE_MORPHNORMALS - objectNormal *= morphTargetBaseInfluence; - for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { - if ( morphTargetInfluences[ i ] != 0.0 ) objectNormal += getMorph( gl_VertexID, i, 1 ).xyz * morphTargetInfluences[ i ]; - } -#endif`,db=`#ifdef USE_MORPHTARGETS - #ifndef USE_INSTANCING_MORPH - uniform float morphTargetBaseInfluence; - uniform float morphTargetInfluences[ MORPHTARGETS_COUNT ]; - #endif - uniform sampler2DArray morphTargetsTexture; - uniform ivec2 morphTargetsTextureSize; - vec4 getMorph( const in int vertexIndex, const in int morphTargetIndex, const in int offset ) { - int texelIndex = vertexIndex * MORPHTARGETS_TEXTURE_STRIDE + offset; - int y = texelIndex / morphTargetsTextureSize.x; - int x = texelIndex - y * morphTargetsTextureSize.x; - ivec3 morphUV = ivec3( x, y, morphTargetIndex ); - return texelFetch( morphTargetsTexture, morphUV, 0 ); - } -#endif`,pb=`#ifdef USE_MORPHTARGETS - transformed *= morphTargetBaseInfluence; - for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { - if ( morphTargetInfluences[ i ] != 0.0 ) transformed += getMorph( gl_VertexID, i, 0 ).xyz * morphTargetInfluences[ i ]; - } -#endif`,mb=`float faceDirection = gl_FrontFacing ? 1.0 : - 1.0; -#ifdef FLAT_SHADED - vec3 fdx = dFdx( vViewPosition ); - vec3 fdy = dFdy( vViewPosition ); - vec3 normal = normalize( cross( fdx, fdy ) ); -#else - vec3 normal = normalize( vNormal ); - #ifdef DOUBLE_SIDED - normal *= faceDirection; - #endif -#endif -#if defined( USE_NORMALMAP_TANGENTSPACE ) || defined( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) - #ifdef USE_TANGENT - mat3 tbn = mat3( normalize( vTangent ), normalize( vBitangent ), normal ); - #else - mat3 tbn = getTangentFrame( - vViewPosition, normal, - #if defined( USE_NORMALMAP ) - vNormalMapUv - #elif defined( USE_CLEARCOAT_NORMALMAP ) - vClearcoatNormalMapUv - #else - vUv - #endif - ); - #endif - #if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED ) - tbn[0] *= faceDirection; - tbn[1] *= faceDirection; - #endif -#endif -#ifdef USE_CLEARCOAT_NORMALMAP - #ifdef USE_TANGENT - mat3 tbn2 = mat3( normalize( vTangent ), normalize( vBitangent ), normal ); - #else - mat3 tbn2 = getTangentFrame( - vViewPosition, normal, vClearcoatNormalMapUv ); - #endif - #if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED ) - tbn2[0] *= faceDirection; - tbn2[1] *= faceDirection; - #endif -#endif -vec3 nonPerturbedNormal = normal;`,gb=`#ifdef USE_NORMALMAP_OBJECTSPACE - normal = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0; - #ifdef FLIP_SIDED - normal = - normal; - #endif - #ifdef DOUBLE_SIDED - normal = normal * faceDirection; - #endif - normal = normalize( normalMatrix * normal ); -#elif defined( USE_NORMALMAP_TANGENTSPACE ) - vec3 mapN = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0; - mapN.xy *= normalScale; - normal = normalize( tbn * mapN ); -#elif defined( USE_BUMPMAP ) - normal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection ); -#endif`,Ob=`#ifndef FLAT_SHADED - varying vec3 vNormal; - #ifdef USE_TANGENT - varying vec3 vTangent; - varying vec3 vBitangent; - #endif -#endif`,_b=`#ifndef FLAT_SHADED - varying vec3 vNormal; - #ifdef USE_TANGENT - varying vec3 vTangent; - varying vec3 vBitangent; - #endif -#endif`,xb=`#ifndef FLAT_SHADED - vNormal = normalize( transformedNormal ); - #ifdef USE_TANGENT - vTangent = normalize( transformedTangent ); - vBitangent = normalize( cross( vNormal, vTangent ) * tangent.w ); - #endif -#endif`,yb=`#ifdef USE_NORMALMAP - uniform sampler2D normalMap; - uniform vec2 normalScale; -#endif -#ifdef USE_NORMALMAP_OBJECTSPACE - uniform mat3 normalMatrix; -#endif -#if ! defined ( USE_TANGENT ) && ( defined ( USE_NORMALMAP_TANGENTSPACE ) || defined ( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) ) - mat3 getTangentFrame( vec3 eye_pos, vec3 surf_norm, vec2 uv ) { - vec3 q0 = dFdx( eye_pos.xyz ); - vec3 q1 = dFdy( eye_pos.xyz ); - vec2 st0 = dFdx( uv.st ); - vec2 st1 = dFdy( uv.st ); - vec3 N = surf_norm; - vec3 q1perp = cross( q1, N ); - vec3 q0perp = cross( N, q0 ); - vec3 T = q1perp * st0.x + q0perp * st1.x; - vec3 B = q1perp * st0.y + q0perp * st1.y; - float det = max( dot( T, T ), dot( B, B ) ); - float scale = ( det == 0.0 ) ? 0.0 : inversesqrt( det ); - return mat3( T * scale, B * scale, N ); - } -#endif`,Sb=`#ifdef USE_CLEARCOAT - vec3 clearcoatNormal = nonPerturbedNormal; -#endif`,vb=`#ifdef USE_CLEARCOAT_NORMALMAP - vec3 clearcoatMapN = texture2D( clearcoatNormalMap, vClearcoatNormalMapUv ).xyz * 2.0 - 1.0; - clearcoatMapN.xy *= clearcoatNormalScale; - clearcoatNormal = normalize( tbn2 * clearcoatMapN ); -#endif`,bb=`#ifdef USE_CLEARCOATMAP - uniform sampler2D clearcoatMap; -#endif -#ifdef USE_CLEARCOAT_NORMALMAP - uniform sampler2D clearcoatNormalMap; - uniform vec2 clearcoatNormalScale; -#endif -#ifdef USE_CLEARCOAT_ROUGHNESSMAP - uniform sampler2D clearcoatRoughnessMap; -#endif`,Mb=`#ifdef USE_IRIDESCENCEMAP - uniform sampler2D iridescenceMap; -#endif -#ifdef USE_IRIDESCENCE_THICKNESSMAP - uniform sampler2D iridescenceThicknessMap; -#endif`,wb=`#ifdef OPAQUE -diffuseColor.a = 1.0; -#endif -#ifdef USE_TRANSMISSION -diffuseColor.a *= material.transmissionAlpha; -#endif -gl_FragColor = vec4( outgoingLight, diffuseColor.a );`,Tb=`vec3 packNormalToRGB( const in vec3 normal ) { - return normalize( normal ) * 0.5 + 0.5; -} -vec3 unpackRGBToNormal( const in vec3 rgb ) { - return 2.0 * rgb.xyz - 1.0; -} -const float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.;const float ShiftRight8 = 1. / 256.; -const float Inv255 = 1. / 255.; -const vec4 PackFactors = vec4( 1.0, 256.0, 256.0 * 256.0, 256.0 * 256.0 * 256.0 ); -const vec2 UnpackFactors2 = vec2( UnpackDownscale, 1.0 / PackFactors.g ); -const vec3 UnpackFactors3 = vec3( UnpackDownscale / PackFactors.rg, 1.0 / PackFactors.b ); -const vec4 UnpackFactors4 = vec4( UnpackDownscale / PackFactors.rgb, 1.0 / PackFactors.a ); -vec4 packDepthToRGBA( const in float v ) { - if( v <= 0.0 ) - return vec4( 0., 0., 0., 0. ); - if( v >= 1.0 ) - return vec4( 1., 1., 1., 1. ); - float vuf; - float af = modf( v * PackFactors.a, vuf ); - float bf = modf( vuf * ShiftRight8, vuf ); - float gf = modf( vuf * ShiftRight8, vuf ); - return vec4( vuf * Inv255, gf * PackUpscale, bf * PackUpscale, af ); -} -vec3 packDepthToRGB( const in float v ) { - if( v <= 0.0 ) - return vec3( 0., 0., 0. ); - if( v >= 1.0 ) - return vec3( 1., 1., 1. ); - float vuf; - float bf = modf( v * PackFactors.b, vuf ); - float gf = modf( vuf * ShiftRight8, vuf ); - return vec3( vuf * Inv255, gf * PackUpscale, bf ); -} -vec2 packDepthToRG( const in float v ) { - if( v <= 0.0 ) - return vec2( 0., 0. ); - if( v >= 1.0 ) - return vec2( 1., 1. ); - float vuf; - float gf = modf( v * 256., vuf ); - return vec2( vuf * Inv255, gf ); -} -float unpackRGBAToDepth( const in vec4 v ) { - return dot( v, UnpackFactors4 ); -} -float unpackRGBToDepth( const in vec3 v ) { - return dot( v, UnpackFactors3 ); -} -float unpackRGToDepth( const in vec2 v ) { - return v.r * UnpackFactors2.r + v.g * UnpackFactors2.g; -} -vec4 pack2HalfToRGBA( const in vec2 v ) { - vec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ) ); - return vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w ); -} -vec2 unpackRGBATo2Half( const in vec4 v ) { - return vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) ); -} -float viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) { - return ( viewZ + near ) / ( near - far ); -} -float orthographicDepthToViewZ( const in float depth, const in float near, const in float far ) { - return depth * ( near - far ) - near; -} -float viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) { - return ( ( near + viewZ ) * far ) / ( ( far - near ) * viewZ ); -} -float perspectiveDepthToViewZ( const in float depth, const in float near, const in float far ) { - return ( near * far ) / ( ( far - near ) * depth - far ); -}`,Eb=`#ifdef PREMULTIPLIED_ALPHA - gl_FragColor.rgb *= gl_FragColor.a; -#endif`,Ab=`vec4 mvPosition = vec4( transformed, 1.0 ); -#ifdef USE_BATCHING - mvPosition = batchingMatrix * mvPosition; -#endif -#ifdef USE_INSTANCING - mvPosition = instanceMatrix * mvPosition; -#endif -mvPosition = modelViewMatrix * mvPosition; -gl_Position = projectionMatrix * mvPosition;`,Pb=`#ifdef DITHERING - gl_FragColor.rgb = dithering( gl_FragColor.rgb ); -#endif`,Rb=`#ifdef DITHERING - vec3 dithering( vec3 color ) { - float grid_position = rand( gl_FragCoord.xy ); - vec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 ); - dither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position ); - return color + dither_shift_RGB; - } -#endif`,Cb=`float roughnessFactor = roughness; -#ifdef USE_ROUGHNESSMAP - vec4 texelRoughness = texture2D( roughnessMap, vRoughnessMapUv ); - roughnessFactor *= texelRoughness.g; -#endif`,kb=`#ifdef USE_ROUGHNESSMAP - uniform sampler2D roughnessMap; -#endif`,Lb=`#if NUM_SPOT_LIGHT_COORDS > 0 - varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ]; -#endif -#if NUM_SPOT_LIGHT_MAPS > 0 - uniform sampler2D spotLightMap[ NUM_SPOT_LIGHT_MAPS ]; -#endif -#ifdef USE_SHADOWMAP - #if NUM_DIR_LIGHT_SHADOWS > 0 - uniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ]; - varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ]; - struct DirectionalLightShadow { - float shadowIntensity; - float shadowBias; - float shadowNormalBias; - float shadowRadius; - vec2 shadowMapSize; - }; - uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ]; - #endif - #if NUM_SPOT_LIGHT_SHADOWS > 0 - uniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ]; - struct SpotLightShadow { - float shadowIntensity; - float shadowBias; - float shadowNormalBias; - float shadowRadius; - vec2 shadowMapSize; - }; - uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ]; - #endif - #if NUM_POINT_LIGHT_SHADOWS > 0 - uniform sampler2D pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ]; - varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ]; - struct PointLightShadow { - float shadowIntensity; - float shadowBias; - float shadowNormalBias; - float shadowRadius; - vec2 shadowMapSize; - float shadowCameraNear; - float shadowCameraFar; - }; - uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ]; - #endif - float texture2DCompare( sampler2D depths, vec2 uv, float compare ) { - return step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) ); - } - vec2 texture2DDistribution( sampler2D shadow, vec2 uv ) { - return unpackRGBATo2Half( texture2D( shadow, uv ) ); - } - float VSMShadow (sampler2D shadow, vec2 uv, float compare ){ - float occlusion = 1.0; - vec2 distribution = texture2DDistribution( shadow, uv ); - float hard_shadow = step( compare , distribution.x ); - if (hard_shadow != 1.0 ) { - float distance = compare - distribution.x ; - float variance = max( 0.00000, distribution.y * distribution.y ); - float softness_probability = variance / (variance + distance * distance ); softness_probability = clamp( ( softness_probability - 0.3 ) / ( 0.95 - 0.3 ), 0.0, 1.0 ); occlusion = clamp( max( hard_shadow, softness_probability ), 0.0, 1.0 ); - } - return occlusion; - } - float getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord ) { - float shadow = 1.0; - shadowCoord.xyz /= shadowCoord.w; - shadowCoord.z += shadowBias; - bool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0; - bool frustumTest = inFrustum && shadowCoord.z <= 1.0; - if ( frustumTest ) { - #if defined( SHADOWMAP_TYPE_PCF ) - vec2 texelSize = vec2( 1.0 ) / shadowMapSize; - float dx0 = - texelSize.x * shadowRadius; - float dy0 = - texelSize.y * shadowRadius; - float dx1 = + texelSize.x * shadowRadius; - float dy1 = + texelSize.y * shadowRadius; - float dx2 = dx0 / 2.0; - float dy2 = dy0 / 2.0; - float dx3 = dx1 / 2.0; - float dy3 = dy1 / 2.0; - shadow = ( - texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) + - texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) + - texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) + - texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy2 ), shadowCoord.z ) + - texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy2 ), shadowCoord.z ) + - texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy2 ), shadowCoord.z ) + - texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) + - texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, 0.0 ), shadowCoord.z ) + - texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) + - texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, 0.0 ), shadowCoord.z ) + - texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) + - texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy3 ), shadowCoord.z ) + - texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy3 ), shadowCoord.z ) + - texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy3 ), shadowCoord.z ) + - texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) + - texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) + - texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z ) - ) * ( 1.0 / 17.0 ); - #elif defined( SHADOWMAP_TYPE_PCF_SOFT ) - vec2 texelSize = vec2( 1.0 ) / shadowMapSize; - float dx = texelSize.x; - float dy = texelSize.y; - vec2 uv = shadowCoord.xy; - vec2 f = fract( uv * shadowMapSize + 0.5 ); - uv -= f * texelSize; - shadow = ( - texture2DCompare( shadowMap, uv, shadowCoord.z ) + - texture2DCompare( shadowMap, uv + vec2( dx, 0.0 ), shadowCoord.z ) + - texture2DCompare( shadowMap, uv + vec2( 0.0, dy ), shadowCoord.z ) + - texture2DCompare( shadowMap, uv + texelSize, shadowCoord.z ) + - mix( texture2DCompare( shadowMap, uv + vec2( -dx, 0.0 ), shadowCoord.z ), - texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 0.0 ), shadowCoord.z ), - f.x ) + - mix( texture2DCompare( shadowMap, uv + vec2( -dx, dy ), shadowCoord.z ), - texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, dy ), shadowCoord.z ), - f.x ) + - mix( texture2DCompare( shadowMap, uv + vec2( 0.0, -dy ), shadowCoord.z ), - texture2DCompare( shadowMap, uv + vec2( 0.0, 2.0 * dy ), shadowCoord.z ), - f.y ) + - mix( texture2DCompare( shadowMap, uv + vec2( dx, -dy ), shadowCoord.z ), - texture2DCompare( shadowMap, uv + vec2( dx, 2.0 * dy ), shadowCoord.z ), - f.y ) + - mix( mix( texture2DCompare( shadowMap, uv + vec2( -dx, -dy ), shadowCoord.z ), - texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, -dy ), shadowCoord.z ), - f.x ), - mix( texture2DCompare( shadowMap, uv + vec2( -dx, 2.0 * dy ), shadowCoord.z ), - texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 2.0 * dy ), shadowCoord.z ), - f.x ), - f.y ) - ) * ( 1.0 / 9.0 ); - #elif defined( SHADOWMAP_TYPE_VSM ) - shadow = VSMShadow( shadowMap, shadowCoord.xy, shadowCoord.z ); - #else - shadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ); - #endif - } - return mix( 1.0, shadow, shadowIntensity ); - } - vec2 cubeToUV( vec3 v, float texelSizeY ) { - vec3 absV = abs( v ); - float scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) ); - absV *= scaleToCube; - v *= scaleToCube * ( 1.0 - 2.0 * texelSizeY ); - vec2 planar = v.xy; - float almostATexel = 1.5 * texelSizeY; - float almostOne = 1.0 - almostATexel; - if ( absV.z >= almostOne ) { - if ( v.z > 0.0 ) - planar.x = 4.0 - v.x; - } else if ( absV.x >= almostOne ) { - float signX = sign( v.x ); - planar.x = v.z * signX + 2.0 * signX; - } else if ( absV.y >= almostOne ) { - float signY = sign( v.y ); - planar.x = v.x + 2.0 * signY + 2.0; - planar.y = v.z * signY - 2.0; - } - return vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 ); - } - float getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) { - float shadow = 1.0; - vec3 lightToPosition = shadowCoord.xyz; - - float lightToPositionLength = length( lightToPosition ); - if ( lightToPositionLength - shadowCameraFar <= 0.0 && lightToPositionLength - shadowCameraNear >= 0.0 ) { - float dp = ( lightToPositionLength - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear ); dp += shadowBias; - vec3 bd3D = normalize( lightToPosition ); - vec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) ); - #if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT ) || defined( SHADOWMAP_TYPE_VSM ) - vec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y; - shadow = ( - texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) + - texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) + - texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) + - texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) + - texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) + - texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) + - texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) + - texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) + - texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp ) - ) * ( 1.0 / 9.0 ); - #else - shadow = texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ); - #endif - } - return mix( 1.0, shadow, shadowIntensity ); - } -#endif`,Db=`#if NUM_SPOT_LIGHT_COORDS > 0 - uniform mat4 spotLightMatrix[ NUM_SPOT_LIGHT_COORDS ]; - varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ]; -#endif -#ifdef USE_SHADOWMAP - #if NUM_DIR_LIGHT_SHADOWS > 0 - uniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ]; - varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ]; - struct DirectionalLightShadow { - float shadowIntensity; - float shadowBias; - float shadowNormalBias; - float shadowRadius; - vec2 shadowMapSize; - }; - uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ]; - #endif - #if NUM_SPOT_LIGHT_SHADOWS > 0 - struct SpotLightShadow { - float shadowIntensity; - float shadowBias; - float shadowNormalBias; - float shadowRadius; - vec2 shadowMapSize; - }; - uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ]; - #endif - #if NUM_POINT_LIGHT_SHADOWS > 0 - uniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ]; - varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ]; - struct PointLightShadow { - float shadowIntensity; - float shadowBias; - float shadowNormalBias; - float shadowRadius; - vec2 shadowMapSize; - float shadowCameraNear; - float shadowCameraFar; - }; - uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ]; - #endif -#endif`,Ib=`#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 ) - vec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix ); - vec4 shadowWorldPosition; -#endif -#if defined( USE_SHADOWMAP ) - #if NUM_DIR_LIGHT_SHADOWS > 0 - #pragma unroll_loop_start - for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) { - shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 ); - vDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition; - } - #pragma unroll_loop_end - #endif - #if NUM_POINT_LIGHT_SHADOWS > 0 - #pragma unroll_loop_start - for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) { - shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 ); - vPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition; - } - #pragma unroll_loop_end - #endif -#endif -#if NUM_SPOT_LIGHT_COORDS > 0 - #pragma unroll_loop_start - for ( int i = 0; i < NUM_SPOT_LIGHT_COORDS; i ++ ) { - shadowWorldPosition = worldPosition; - #if ( defined( USE_SHADOWMAP ) && UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS ) - shadowWorldPosition.xyz += shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias; - #endif - vSpotLightCoord[ i ] = spotLightMatrix[ i ] * shadowWorldPosition; - } - #pragma unroll_loop_end -#endif`,Ub=`float getShadowMask() { - float shadow = 1.0; - #ifdef USE_SHADOWMAP - #if NUM_DIR_LIGHT_SHADOWS > 0 - DirectionalLightShadow directionalLight; - #pragma unroll_loop_start - for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) { - directionalLight = directionalLightShadows[ i ]; - shadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowIntensity, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0; - } - #pragma unroll_loop_end - #endif - #if NUM_SPOT_LIGHT_SHADOWS > 0 - SpotLightShadow spotLight; - #pragma unroll_loop_start - for ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) { - spotLight = spotLightShadows[ i ]; - shadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowIntensity, spotLight.shadowBias, spotLight.shadowRadius, vSpotLightCoord[ i ] ) : 1.0; - } - #pragma unroll_loop_end - #endif - #if NUM_POINT_LIGHT_SHADOWS > 0 - PointLightShadow pointLight; - #pragma unroll_loop_start - for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) { - pointLight = pointLightShadows[ i ]; - shadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowIntensity, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0; - } - #pragma unroll_loop_end - #endif - #endif - return shadow; -}`,Nb=`#ifdef USE_SKINNING - mat4 boneMatX = getBoneMatrix( skinIndex.x ); - mat4 boneMatY = getBoneMatrix( skinIndex.y ); - mat4 boneMatZ = getBoneMatrix( skinIndex.z ); - mat4 boneMatW = getBoneMatrix( skinIndex.w ); -#endif`,Qb=`#ifdef USE_SKINNING - uniform mat4 bindMatrix; - uniform mat4 bindMatrixInverse; - uniform highp sampler2D boneTexture; - mat4 getBoneMatrix( const in float i ) { - int size = textureSize( boneTexture, 0 ).x; - int j = int( i ) * 4; - int x = j % size; - int y = j / size; - vec4 v1 = texelFetch( boneTexture, ivec2( x, y ), 0 ); - vec4 v2 = texelFetch( boneTexture, ivec2( x + 1, y ), 0 ); - vec4 v3 = texelFetch( boneTexture, ivec2( x + 2, y ), 0 ); - vec4 v4 = texelFetch( boneTexture, ivec2( x + 3, y ), 0 ); - return mat4( v1, v2, v3, v4 ); - } -#endif`,Bb=`#ifdef USE_SKINNING - vec4 skinVertex = bindMatrix * vec4( transformed, 1.0 ); - vec4 skinned = vec4( 0.0 ); - skinned += boneMatX * skinVertex * skinWeight.x; - skinned += boneMatY * skinVertex * skinWeight.y; - skinned += boneMatZ * skinVertex * skinWeight.z; - skinned += boneMatW * skinVertex * skinWeight.w; - transformed = ( bindMatrixInverse * skinned ).xyz; -#endif`,Fb=`#ifdef USE_SKINNING - mat4 skinMatrix = mat4( 0.0 ); - skinMatrix += skinWeight.x * boneMatX; - skinMatrix += skinWeight.y * boneMatY; - skinMatrix += skinWeight.z * boneMatZ; - skinMatrix += skinWeight.w * boneMatW; - skinMatrix = bindMatrixInverse * skinMatrix * bindMatrix; - objectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz; - #ifdef USE_TANGENT - objectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz; - #endif -#endif`,$b=`float specularStrength; -#ifdef USE_SPECULARMAP - vec4 texelSpecular = texture2D( specularMap, vSpecularMapUv ); - specularStrength = texelSpecular.r; -#else - specularStrength = 1.0; -#endif`,Vb=`#ifdef USE_SPECULARMAP - uniform sampler2D specularMap; -#endif`,zb=`#if defined( TONE_MAPPING ) - gl_FragColor.rgb = toneMapping( gl_FragColor.rgb ); -#endif`,Zb=`#ifndef saturate -#define saturate( a ) clamp( a, 0.0, 1.0 ) -#endif -uniform float toneMappingExposure; -vec3 LinearToneMapping( vec3 color ) { - return saturate( toneMappingExposure * color ); -} -vec3 ReinhardToneMapping( vec3 color ) { - color *= toneMappingExposure; - return saturate( color / ( vec3( 1.0 ) + color ) ); -} -vec3 CineonToneMapping( vec3 color ) { - color *= toneMappingExposure; - color = max( vec3( 0.0 ), color - 0.004 ); - return pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) ); -} -vec3 RRTAndODTFit( vec3 v ) { - vec3 a = v * ( v + 0.0245786 ) - 0.000090537; - vec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081; - return a / b; -} -vec3 ACESFilmicToneMapping( vec3 color ) { - const mat3 ACESInputMat = mat3( - vec3( 0.59719, 0.07600, 0.02840 ), vec3( 0.35458, 0.90834, 0.13383 ), - vec3( 0.04823, 0.01566, 0.83777 ) - ); - const mat3 ACESOutputMat = mat3( - vec3( 1.60475, -0.10208, -0.00327 ), vec3( -0.53108, 1.10813, -0.07276 ), - vec3( -0.07367, -0.00605, 1.07602 ) - ); - color *= toneMappingExposure / 0.6; - color = ACESInputMat * color; - color = RRTAndODTFit( color ); - color = ACESOutputMat * color; - return saturate( color ); -} -const mat3 LINEAR_REC2020_TO_LINEAR_SRGB = mat3( - vec3( 1.6605, - 0.1246, - 0.0182 ), - vec3( - 0.5876, 1.1329, - 0.1006 ), - vec3( - 0.0728, - 0.0083, 1.1187 ) -); -const mat3 LINEAR_SRGB_TO_LINEAR_REC2020 = mat3( - vec3( 0.6274, 0.0691, 0.0164 ), - vec3( 0.3293, 0.9195, 0.0880 ), - vec3( 0.0433, 0.0113, 0.8956 ) -); -vec3 agxDefaultContrastApprox( vec3 x ) { - vec3 x2 = x * x; - vec3 x4 = x2 * x2; - return + 15.5 * x4 * x2 - - 40.14 * x4 * x - + 31.96 * x4 - - 6.868 * x2 * x - + 0.4298 * x2 - + 0.1191 * x - - 0.00232; -} -vec3 AgXToneMapping( vec3 color ) { - const mat3 AgXInsetMatrix = mat3( - vec3( 0.856627153315983, 0.137318972929847, 0.11189821299995 ), - vec3( 0.0951212405381588, 0.761241990602591, 0.0767994186031903 ), - vec3( 0.0482516061458583, 0.101439036467562, 0.811302368396859 ) - ); - const mat3 AgXOutsetMatrix = mat3( - vec3( 1.1271005818144368, - 0.1413297634984383, - 0.14132976349843826 ), - vec3( - 0.11060664309660323, 1.157823702216272, - 0.11060664309660294 ), - vec3( - 0.016493938717834573, - 0.016493938717834257, 1.2519364065950405 ) - ); - const float AgxMinEv = - 12.47393; const float AgxMaxEv = 4.026069; - color *= toneMappingExposure; - color = LINEAR_SRGB_TO_LINEAR_REC2020 * color; - color = AgXInsetMatrix * color; - color = max( color, 1e-10 ); color = log2( color ); - color = ( color - AgxMinEv ) / ( AgxMaxEv - AgxMinEv ); - color = clamp( color, 0.0, 1.0 ); - color = agxDefaultContrastApprox( color ); - color = AgXOutsetMatrix * color; - color = pow( max( vec3( 0.0 ), color ), vec3( 2.2 ) ); - color = LINEAR_REC2020_TO_LINEAR_SRGB * color; - color = clamp( color, 0.0, 1.0 ); - return color; -} -vec3 NeutralToneMapping( vec3 color ) { - const float StartCompression = 0.8 - 0.04; - const float Desaturation = 0.15; - color *= toneMappingExposure; - float x = min( color.r, min( color.g, color.b ) ); - float offset = x < 0.08 ? x - 6.25 * x * x : 0.04; - color -= offset; - float peak = max( color.r, max( color.g, color.b ) ); - if ( peak < StartCompression ) return color; - float d = 1. - StartCompression; - float newPeak = 1. - d * d / ( peak + d - StartCompression ); - color *= newPeak / peak; - float g = 1. - 1. / ( Desaturation * ( peak - newPeak ) + 1. ); - return mix( color, vec3( newPeak ), g ); -} -vec3 CustomToneMapping( vec3 color ) { return color; }`,Gb=`#ifdef USE_TRANSMISSION - material.transmission = transmission; - material.transmissionAlpha = 1.0; - material.thickness = thickness; - material.attenuationDistance = attenuationDistance; - material.attenuationColor = attenuationColor; - #ifdef USE_TRANSMISSIONMAP - material.transmission *= texture2D( transmissionMap, vTransmissionMapUv ).r; - #endif - #ifdef USE_THICKNESSMAP - material.thickness *= texture2D( thicknessMap, vThicknessMapUv ).g; - #endif - vec3 pos = vWorldPosition; - vec3 v = normalize( cameraPosition - pos ); - vec3 n = inverseTransformDirection( normal, viewMatrix ); - vec4 transmitted = getIBLVolumeRefraction( - n, v, material.roughness, material.diffuseColor, material.specularColor, material.specularF90, - pos, modelMatrix, viewMatrix, projectionMatrix, material.dispersion, material.ior, material.thickness, - material.attenuationColor, material.attenuationDistance ); - material.transmissionAlpha = mix( material.transmissionAlpha, transmitted.a, material.transmission ); - totalDiffuse = mix( totalDiffuse, transmitted.rgb, material.transmission ); -#endif`,Xb=`#ifdef USE_TRANSMISSION - uniform float transmission; - uniform float thickness; - uniform float attenuationDistance; - uniform vec3 attenuationColor; - #ifdef USE_TRANSMISSIONMAP - uniform sampler2D transmissionMap; - #endif - #ifdef USE_THICKNESSMAP - uniform sampler2D thicknessMap; - #endif - uniform vec2 transmissionSamplerSize; - uniform sampler2D transmissionSamplerMap; - uniform mat4 modelMatrix; - uniform mat4 projectionMatrix; - varying vec3 vWorldPosition; - float w0( float a ) { - return ( 1.0 / 6.0 ) * ( a * ( a * ( - a + 3.0 ) - 3.0 ) + 1.0 ); - } - float w1( float a ) { - return ( 1.0 / 6.0 ) * ( a * a * ( 3.0 * a - 6.0 ) + 4.0 ); - } - float w2( float a ){ - return ( 1.0 / 6.0 ) * ( a * ( a * ( - 3.0 * a + 3.0 ) + 3.0 ) + 1.0 ); - } - float w3( float a ) { - return ( 1.0 / 6.0 ) * ( a * a * a ); - } - float g0( float a ) { - return w0( a ) + w1( a ); - } - float g1( float a ) { - return w2( a ) + w3( a ); - } - float h0( float a ) { - return - 1.0 + w1( a ) / ( w0( a ) + w1( a ) ); - } - float h1( float a ) { - return 1.0 + w3( a ) / ( w2( a ) + w3( a ) ); - } - vec4 bicubic( sampler2D tex, vec2 uv, vec4 texelSize, float lod ) { - uv = uv * texelSize.zw + 0.5; - vec2 iuv = floor( uv ); - vec2 fuv = fract( uv ); - float g0x = g0( fuv.x ); - float g1x = g1( fuv.x ); - float h0x = h0( fuv.x ); - float h1x = h1( fuv.x ); - float h0y = h0( fuv.y ); - float h1y = h1( fuv.y ); - vec2 p0 = ( vec2( iuv.x + h0x, iuv.y + h0y ) - 0.5 ) * texelSize.xy; - vec2 p1 = ( vec2( iuv.x + h1x, iuv.y + h0y ) - 0.5 ) * texelSize.xy; - vec2 p2 = ( vec2( iuv.x + h0x, iuv.y + h1y ) - 0.5 ) * texelSize.xy; - vec2 p3 = ( vec2( iuv.x + h1x, iuv.y + h1y ) - 0.5 ) * texelSize.xy; - return g0( fuv.y ) * ( g0x * textureLod( tex, p0, lod ) + g1x * textureLod( tex, p1, lod ) ) + - g1( fuv.y ) * ( g0x * textureLod( tex, p2, lod ) + g1x * textureLod( tex, p3, lod ) ); - } - vec4 textureBicubic( sampler2D sampler, vec2 uv, float lod ) { - vec2 fLodSize = vec2( textureSize( sampler, int( lod ) ) ); - vec2 cLodSize = vec2( textureSize( sampler, int( lod + 1.0 ) ) ); - vec2 fLodSizeInv = 1.0 / fLodSize; - vec2 cLodSizeInv = 1.0 / cLodSize; - vec4 fSample = bicubic( sampler, uv, vec4( fLodSizeInv, fLodSize ), floor( lod ) ); - vec4 cSample = bicubic( sampler, uv, vec4( cLodSizeInv, cLodSize ), ceil( lod ) ); - return mix( fSample, cSample, fract( lod ) ); - } - vec3 getVolumeTransmissionRay( const in vec3 n, const in vec3 v, const in float thickness, const in float ior, const in mat4 modelMatrix ) { - vec3 refractionVector = refract( - v, normalize( n ), 1.0 / ior ); - vec3 modelScale; - modelScale.x = length( vec3( modelMatrix[ 0 ].xyz ) ); - modelScale.y = length( vec3( modelMatrix[ 1 ].xyz ) ); - modelScale.z = length( vec3( modelMatrix[ 2 ].xyz ) ); - return normalize( refractionVector ) * thickness * modelScale; - } - float applyIorToRoughness( const in float roughness, const in float ior ) { - return roughness * clamp( ior * 2.0 - 2.0, 0.0, 1.0 ); - } - vec4 getTransmissionSample( const in vec2 fragCoord, const in float roughness, const in float ior ) { - float lod = log2( transmissionSamplerSize.x ) * applyIorToRoughness( roughness, ior ); - return textureBicubic( transmissionSamplerMap, fragCoord.xy, lod ); - } - vec3 volumeAttenuation( const in float transmissionDistance, const in vec3 attenuationColor, const in float attenuationDistance ) { - if ( isinf( attenuationDistance ) ) { - return vec3( 1.0 ); - } else { - vec3 attenuationCoefficient = -log( attenuationColor ) / attenuationDistance; - vec3 transmittance = exp( - attenuationCoefficient * transmissionDistance ); return transmittance; - } - } - vec4 getIBLVolumeRefraction( const in vec3 n, const in vec3 v, const in float roughness, const in vec3 diffuseColor, - const in vec3 specularColor, const in float specularF90, const in vec3 position, const in mat4 modelMatrix, - const in mat4 viewMatrix, const in mat4 projMatrix, const in float dispersion, const in float ior, const in float thickness, - const in vec3 attenuationColor, const in float attenuationDistance ) { - vec4 transmittedLight; - vec3 transmittance; - #ifdef USE_DISPERSION - float halfSpread = ( ior - 1.0 ) * 0.025 * dispersion; - vec3 iors = vec3( ior - halfSpread, ior, ior + halfSpread ); - for ( int i = 0; i < 3; i ++ ) { - vec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, iors[ i ], modelMatrix ); - vec3 refractedRayExit = position + transmissionRay; - vec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 ); - vec2 refractionCoords = ndcPos.xy / ndcPos.w; - refractionCoords += 1.0; - refractionCoords /= 2.0; - vec4 transmissionSample = getTransmissionSample( refractionCoords, roughness, iors[ i ] ); - transmittedLight[ i ] = transmissionSample[ i ]; - transmittedLight.a += transmissionSample.a; - transmittance[ i ] = diffuseColor[ i ] * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance )[ i ]; - } - transmittedLight.a /= 3.0; - #else - vec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, ior, modelMatrix ); - vec3 refractedRayExit = position + transmissionRay; - vec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 ); - vec2 refractionCoords = ndcPos.xy / ndcPos.w; - refractionCoords += 1.0; - refractionCoords /= 2.0; - transmittedLight = getTransmissionSample( refractionCoords, roughness, ior ); - transmittance = diffuseColor * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance ); - #endif - vec3 attenuatedColor = transmittance * transmittedLight.rgb; - vec3 F = EnvironmentBRDF( n, v, specularColor, specularF90, roughness ); - float transmittanceFactor = ( transmittance.r + transmittance.g + transmittance.b ) / 3.0; - return vec4( ( 1.0 - F ) * attenuatedColor, 1.0 - ( 1.0 - transmittedLight.a ) * transmittanceFactor ); - } -#endif`,Hb=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) - varying vec2 vUv; -#endif -#ifdef USE_MAP - varying vec2 vMapUv; -#endif -#ifdef USE_ALPHAMAP - varying vec2 vAlphaMapUv; -#endif -#ifdef USE_LIGHTMAP - varying vec2 vLightMapUv; -#endif -#ifdef USE_AOMAP - varying vec2 vAoMapUv; -#endif -#ifdef USE_BUMPMAP - varying vec2 vBumpMapUv; -#endif -#ifdef USE_NORMALMAP - varying vec2 vNormalMapUv; -#endif -#ifdef USE_EMISSIVEMAP - varying vec2 vEmissiveMapUv; -#endif -#ifdef USE_METALNESSMAP - varying vec2 vMetalnessMapUv; -#endif -#ifdef USE_ROUGHNESSMAP - varying vec2 vRoughnessMapUv; -#endif -#ifdef USE_ANISOTROPYMAP - varying vec2 vAnisotropyMapUv; -#endif -#ifdef USE_CLEARCOATMAP - varying vec2 vClearcoatMapUv; -#endif -#ifdef USE_CLEARCOAT_NORMALMAP - varying vec2 vClearcoatNormalMapUv; -#endif -#ifdef USE_CLEARCOAT_ROUGHNESSMAP - varying vec2 vClearcoatRoughnessMapUv; -#endif -#ifdef USE_IRIDESCENCEMAP - varying vec2 vIridescenceMapUv; -#endif -#ifdef USE_IRIDESCENCE_THICKNESSMAP - varying vec2 vIridescenceThicknessMapUv; -#endif -#ifdef USE_SHEEN_COLORMAP - varying vec2 vSheenColorMapUv; -#endif -#ifdef USE_SHEEN_ROUGHNESSMAP - varying vec2 vSheenRoughnessMapUv; -#endif -#ifdef USE_SPECULARMAP - varying vec2 vSpecularMapUv; -#endif -#ifdef USE_SPECULAR_COLORMAP - varying vec2 vSpecularColorMapUv; -#endif -#ifdef USE_SPECULAR_INTENSITYMAP - varying vec2 vSpecularIntensityMapUv; -#endif -#ifdef USE_TRANSMISSIONMAP - uniform mat3 transmissionMapTransform; - varying vec2 vTransmissionMapUv; -#endif -#ifdef USE_THICKNESSMAP - uniform mat3 thicknessMapTransform; - varying vec2 vThicknessMapUv; -#endif`,Wb=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) - varying vec2 vUv; -#endif -#ifdef USE_MAP - uniform mat3 mapTransform; - varying vec2 vMapUv; -#endif -#ifdef USE_ALPHAMAP - uniform mat3 alphaMapTransform; - varying vec2 vAlphaMapUv; -#endif -#ifdef USE_LIGHTMAP - uniform mat3 lightMapTransform; - varying vec2 vLightMapUv; -#endif -#ifdef USE_AOMAP - uniform mat3 aoMapTransform; - varying vec2 vAoMapUv; -#endif -#ifdef USE_BUMPMAP - uniform mat3 bumpMapTransform; - varying vec2 vBumpMapUv; -#endif -#ifdef USE_NORMALMAP - uniform mat3 normalMapTransform; - varying vec2 vNormalMapUv; -#endif -#ifdef USE_DISPLACEMENTMAP - uniform mat3 displacementMapTransform; - varying vec2 vDisplacementMapUv; -#endif -#ifdef USE_EMISSIVEMAP - uniform mat3 emissiveMapTransform; - varying vec2 vEmissiveMapUv; -#endif -#ifdef USE_METALNESSMAP - uniform mat3 metalnessMapTransform; - varying vec2 vMetalnessMapUv; -#endif -#ifdef USE_ROUGHNESSMAP - uniform mat3 roughnessMapTransform; - varying vec2 vRoughnessMapUv; -#endif -#ifdef USE_ANISOTROPYMAP - uniform mat3 anisotropyMapTransform; - varying vec2 vAnisotropyMapUv; -#endif -#ifdef USE_CLEARCOATMAP - uniform mat3 clearcoatMapTransform; - varying vec2 vClearcoatMapUv; -#endif -#ifdef USE_CLEARCOAT_NORMALMAP - uniform mat3 clearcoatNormalMapTransform; - varying vec2 vClearcoatNormalMapUv; -#endif -#ifdef USE_CLEARCOAT_ROUGHNESSMAP - uniform mat3 clearcoatRoughnessMapTransform; - varying vec2 vClearcoatRoughnessMapUv; -#endif -#ifdef USE_SHEEN_COLORMAP - uniform mat3 sheenColorMapTransform; - varying vec2 vSheenColorMapUv; -#endif -#ifdef USE_SHEEN_ROUGHNESSMAP - uniform mat3 sheenRoughnessMapTransform; - varying vec2 vSheenRoughnessMapUv; -#endif -#ifdef USE_IRIDESCENCEMAP - uniform mat3 iridescenceMapTransform; - varying vec2 vIridescenceMapUv; -#endif -#ifdef USE_IRIDESCENCE_THICKNESSMAP - uniform mat3 iridescenceThicknessMapTransform; - varying vec2 vIridescenceThicknessMapUv; -#endif -#ifdef USE_SPECULARMAP - uniform mat3 specularMapTransform; - varying vec2 vSpecularMapUv; -#endif -#ifdef USE_SPECULAR_COLORMAP - uniform mat3 specularColorMapTransform; - varying vec2 vSpecularColorMapUv; -#endif -#ifdef USE_SPECULAR_INTENSITYMAP - uniform mat3 specularIntensityMapTransform; - varying vec2 vSpecularIntensityMapUv; -#endif -#ifdef USE_TRANSMISSIONMAP - uniform mat3 transmissionMapTransform; - varying vec2 vTransmissionMapUv; -#endif -#ifdef USE_THICKNESSMAP - uniform mat3 thicknessMapTransform; - varying vec2 vThicknessMapUv; -#endif`,jb=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) - vUv = vec3( uv, 1 ).xy; -#endif -#ifdef USE_MAP - vMapUv = ( mapTransform * vec3( MAP_UV, 1 ) ).xy; -#endif -#ifdef USE_ALPHAMAP - vAlphaMapUv = ( alphaMapTransform * vec3( ALPHAMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_LIGHTMAP - vLightMapUv = ( lightMapTransform * vec3( LIGHTMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_AOMAP - vAoMapUv = ( aoMapTransform * vec3( AOMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_BUMPMAP - vBumpMapUv = ( bumpMapTransform * vec3( BUMPMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_NORMALMAP - vNormalMapUv = ( normalMapTransform * vec3( NORMALMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_DISPLACEMENTMAP - vDisplacementMapUv = ( displacementMapTransform * vec3( DISPLACEMENTMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_EMISSIVEMAP - vEmissiveMapUv = ( emissiveMapTransform * vec3( EMISSIVEMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_METALNESSMAP - vMetalnessMapUv = ( metalnessMapTransform * vec3( METALNESSMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_ROUGHNESSMAP - vRoughnessMapUv = ( roughnessMapTransform * vec3( ROUGHNESSMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_ANISOTROPYMAP - vAnisotropyMapUv = ( anisotropyMapTransform * vec3( ANISOTROPYMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_CLEARCOATMAP - vClearcoatMapUv = ( clearcoatMapTransform * vec3( CLEARCOATMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_CLEARCOAT_NORMALMAP - vClearcoatNormalMapUv = ( clearcoatNormalMapTransform * vec3( CLEARCOAT_NORMALMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_CLEARCOAT_ROUGHNESSMAP - vClearcoatRoughnessMapUv = ( clearcoatRoughnessMapTransform * vec3( CLEARCOAT_ROUGHNESSMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_IRIDESCENCEMAP - vIridescenceMapUv = ( iridescenceMapTransform * vec3( IRIDESCENCEMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_IRIDESCENCE_THICKNESSMAP - vIridescenceThicknessMapUv = ( iridescenceThicknessMapTransform * vec3( IRIDESCENCE_THICKNESSMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_SHEEN_COLORMAP - vSheenColorMapUv = ( sheenColorMapTransform * vec3( SHEEN_COLORMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_SHEEN_ROUGHNESSMAP - vSheenRoughnessMapUv = ( sheenRoughnessMapTransform * vec3( SHEEN_ROUGHNESSMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_SPECULARMAP - vSpecularMapUv = ( specularMapTransform * vec3( SPECULARMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_SPECULAR_COLORMAP - vSpecularColorMapUv = ( specularColorMapTransform * vec3( SPECULAR_COLORMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_SPECULAR_INTENSITYMAP - vSpecularIntensityMapUv = ( specularIntensityMapTransform * vec3( SPECULAR_INTENSITYMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_TRANSMISSIONMAP - vTransmissionMapUv = ( transmissionMapTransform * vec3( TRANSMISSIONMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_THICKNESSMAP - vThicknessMapUv = ( thicknessMapTransform * vec3( THICKNESSMAP_UV, 1 ) ).xy; -#endif`,qb=`#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0 - vec4 worldPosition = vec4( transformed, 1.0 ); - #ifdef USE_BATCHING - worldPosition = batchingMatrix * worldPosition; - #endif - #ifdef USE_INSTANCING - worldPosition = instanceMatrix * worldPosition; - #endif - worldPosition = modelMatrix * worldPosition; -#endif`;const Yb=`varying vec2 vUv; -uniform mat3 uvTransform; -void main() { - vUv = ( uvTransform * vec3( uv, 1 ) ).xy; - gl_Position = vec4( position.xy, 1.0, 1.0 ); -}`,Kb=`uniform sampler2D t2D; -uniform float backgroundIntensity; -varying vec2 vUv; -void main() { - vec4 texColor = texture2D( t2D, vUv ); - #ifdef DECODE_VIDEO_TEXTURE - texColor = vec4( mix( pow( texColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), texColor.rgb * 0.0773993808, vec3( lessThanEqual( texColor.rgb, vec3( 0.04045 ) ) ) ), texColor.w ); - #endif - texColor.rgb *= backgroundIntensity; - gl_FragColor = texColor; - #include - #include -}`,Jb=`varying vec3 vWorldDirection; -#include -void main() { - vWorldDirection = transformDirection( position, modelMatrix ); - #include - #include - gl_Position.z = gl_Position.w; -}`,eM=`#ifdef ENVMAP_TYPE_CUBE - uniform samplerCube envMap; -#elif defined( ENVMAP_TYPE_CUBE_UV ) - uniform sampler2D envMap; -#endif -uniform float flipEnvMap; -uniform float backgroundBlurriness; -uniform float backgroundIntensity; -uniform mat3 backgroundRotation; -varying vec3 vWorldDirection; -#include -void main() { - #ifdef ENVMAP_TYPE_CUBE - vec4 texColor = textureCube( envMap, backgroundRotation * vec3( flipEnvMap * vWorldDirection.x, vWorldDirection.yz ) ); - #elif defined( ENVMAP_TYPE_CUBE_UV ) - vec4 texColor = textureCubeUV( envMap, backgroundRotation * vWorldDirection, backgroundBlurriness ); - #else - vec4 texColor = vec4( 0.0, 0.0, 0.0, 1.0 ); - #endif - texColor.rgb *= backgroundIntensity; - gl_FragColor = texColor; - #include - #include -}`,tM=`varying vec3 vWorldDirection; -#include -void main() { - vWorldDirection = transformDirection( position, modelMatrix ); - #include - #include - gl_Position.z = gl_Position.w; -}`,nM=`uniform samplerCube tCube; -uniform float tFlip; -uniform float opacity; -varying vec3 vWorldDirection; -void main() { - vec4 texColor = textureCube( tCube, vec3( tFlip * vWorldDirection.x, vWorldDirection.yz ) ); - gl_FragColor = texColor; - gl_FragColor.a *= opacity; - #include - #include -}`,iM=`#include -#include -#include -#include -#include -#include -#include -#include -varying vec2 vHighPrecisionZW; -void main() { - #include - #include - #include - #include - #ifdef USE_DISPLACEMENTMAP - #include - #include - #include - #endif - #include - #include - #include - #include - #include - #include - #include - vHighPrecisionZW = gl_Position.zw; -}`,sM=`#if DEPTH_PACKING == 3200 - uniform float opacity; -#endif -#include -#include -#include -#include -#include -#include -#include -#include -#include -varying vec2 vHighPrecisionZW; -void main() { - vec4 diffuseColor = vec4( 1.0 ); - #include - #if DEPTH_PACKING == 3200 - diffuseColor.a = opacity; - #endif - #include - #include - #include - #include - #include - float fragCoordZ = 0.5 * vHighPrecisionZW[0] / vHighPrecisionZW[1] + 0.5; - #if DEPTH_PACKING == 3200 - gl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity ); - #elif DEPTH_PACKING == 3201 - gl_FragColor = packDepthToRGBA( fragCoordZ ); - #elif DEPTH_PACKING == 3202 - gl_FragColor = vec4( packDepthToRGB( fragCoordZ ), 1.0 ); - #elif DEPTH_PACKING == 3203 - gl_FragColor = vec4( packDepthToRG( fragCoordZ ), 0.0, 1.0 ); - #endif -}`,rM=`#define DISTANCE -varying vec3 vWorldPosition; -#include -#include -#include -#include -#include -#include -#include -void main() { - #include - #include - #include - #include - #ifdef USE_DISPLACEMENTMAP - #include - #include - #include - #endif - #include - #include - #include - #include - #include - #include - #include - vWorldPosition = worldPosition.xyz; -}`,oM=`#define DISTANCE -uniform vec3 referencePosition; -uniform float nearDistance; -uniform float farDistance; -varying vec3 vWorldPosition; -#include -#include -#include -#include -#include -#include -#include -#include -void main () { - vec4 diffuseColor = vec4( 1.0 ); - #include - #include - #include - #include - #include - float dist = length( vWorldPosition - referencePosition ); - dist = ( dist - nearDistance ) / ( farDistance - nearDistance ); - dist = saturate( dist ); - gl_FragColor = packDepthToRGBA( dist ); -}`,aM=`varying vec3 vWorldDirection; -#include -void main() { - vWorldDirection = transformDirection( position, modelMatrix ); - #include - #include -}`,lM=`uniform sampler2D tEquirect; -varying vec3 vWorldDirection; -#include -void main() { - vec3 direction = normalize( vWorldDirection ); - vec2 sampleUV = equirectUv( direction ); - gl_FragColor = texture2D( tEquirect, sampleUV ); - #include - #include -}`,cM=`uniform float scale; -attribute float lineDistance; -varying float vLineDistance; -#include -#include -#include -#include -#include -#include -#include -void main() { - vLineDistance = scale * lineDistance; - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include -}`,hM=`uniform vec3 diffuse; -uniform float opacity; -uniform float dashSize; -uniform float totalSize; -varying float vLineDistance; -#include -#include -#include -#include -#include -#include -#include -void main() { - vec4 diffuseColor = vec4( diffuse, opacity ); - #include - if ( mod( vLineDistance, totalSize ) > dashSize ) { - discard; - } - vec3 outgoingLight = vec3( 0.0 ); - #include - #include - #include - outgoingLight = diffuseColor.rgb; - #include - #include - #include - #include - #include -}`,uM=`#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - #include - #include - #include - #include - #include - #if defined ( USE_ENVMAP ) || defined ( USE_SKINNING ) - #include - #include - #include - #include - #include - #endif - #include - #include - #include - #include - #include - #include - #include - #include - #include -}`,fM=`uniform vec3 diffuse; -uniform float opacity; -#ifndef FLAT_SHADED - varying vec3 vNormal; -#endif -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - vec4 diffuseColor = vec4( diffuse, opacity ); - #include - #include - #include - #include - #include - #include - #include - #include - ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); - #ifdef USE_LIGHTMAP - vec4 lightMapTexel = texture2D( lightMap, vLightMapUv ); - reflectedLight.indirectDiffuse += lightMapTexel.rgb * lightMapIntensity * RECIPROCAL_PI; - #else - reflectedLight.indirectDiffuse += vec3( 1.0 ); - #endif - #include - reflectedLight.indirectDiffuse *= diffuseColor.rgb; - vec3 outgoingLight = reflectedLight.indirectDiffuse; - #include - #include - #include - #include - #include - #include - #include -}`,dM=`#define LAMBERT -varying vec3 vViewPosition; -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - vViewPosition = - mvPosition.xyz; - #include - #include - #include - #include -}`,pM=`#define LAMBERT -uniform vec3 diffuse; -uniform vec3 emissive; -uniform float opacity; -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - vec4 diffuseColor = vec4( diffuse, opacity ); - #include - ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); - vec3 totalEmissiveRadiance = emissive; - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance; - #include - #include - #include - #include - #include - #include - #include -}`,mM=`#define MATCAP -varying vec3 vViewPosition; -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - vViewPosition = - mvPosition.xyz; -}`,gM=`#define MATCAP -uniform vec3 diffuse; -uniform float opacity; -uniform sampler2D matcap; -varying vec3 vViewPosition; -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - vec4 diffuseColor = vec4( diffuse, opacity ); - #include - #include - #include - #include - #include - #include - #include - #include - #include - vec3 viewDir = normalize( vViewPosition ); - vec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) ); - vec3 y = cross( viewDir, x ); - vec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5; - #ifdef USE_MATCAP - vec4 matcapColor = texture2D( matcap, uv ); - #else - vec4 matcapColor = vec4( vec3( mix( 0.2, 0.8, uv.y ) ), 1.0 ); - #endif - vec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb; - #include - #include - #include - #include - #include - #include -}`,OM=`#define NORMAL -#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) - varying vec3 vViewPosition; -#endif -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include -#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) - vViewPosition = - mvPosition.xyz; -#endif -}`,_M=`#define NORMAL -uniform float opacity; -#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) - varying vec3 vViewPosition; -#endif -#include -#include -#include -#include -#include -#include -#include -void main() { - vec4 diffuseColor = vec4( 0.0, 0.0, 0.0, opacity ); - #include - #include - #include - #include - gl_FragColor = vec4( packNormalToRGB( normal ), diffuseColor.a ); - #ifdef OPAQUE - gl_FragColor.a = 1.0; - #endif -}`,xM=`#define PHONG -varying vec3 vViewPosition; -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - vViewPosition = - mvPosition.xyz; - #include - #include - #include - #include -}`,yM=`#define PHONG -uniform vec3 diffuse; -uniform vec3 emissive; -uniform vec3 specular; -uniform float shininess; -uniform float opacity; -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - vec4 diffuseColor = vec4( diffuse, opacity ); - #include - ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); - vec3 totalEmissiveRadiance = emissive; - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance; - #include - #include - #include - #include - #include - #include - #include -}`,SM=`#define STANDARD -varying vec3 vViewPosition; -#ifdef USE_TRANSMISSION - varying vec3 vWorldPosition; -#endif -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - vViewPosition = - mvPosition.xyz; - #include - #include - #include -#ifdef USE_TRANSMISSION - vWorldPosition = worldPosition.xyz; -#endif -}`,vM=`#define STANDARD -#ifdef PHYSICAL - #define IOR - #define USE_SPECULAR -#endif -uniform vec3 diffuse; -uniform vec3 emissive; -uniform float roughness; -uniform float metalness; -uniform float opacity; -#ifdef IOR - uniform float ior; -#endif -#ifdef USE_SPECULAR - uniform float specularIntensity; - uniform vec3 specularColor; - #ifdef USE_SPECULAR_COLORMAP - uniform sampler2D specularColorMap; - #endif - #ifdef USE_SPECULAR_INTENSITYMAP - uniform sampler2D specularIntensityMap; - #endif -#endif -#ifdef USE_CLEARCOAT - uniform float clearcoat; - uniform float clearcoatRoughness; -#endif -#ifdef USE_DISPERSION - uniform float dispersion; -#endif -#ifdef USE_IRIDESCENCE - uniform float iridescence; - uniform float iridescenceIOR; - uniform float iridescenceThicknessMinimum; - uniform float iridescenceThicknessMaximum; -#endif -#ifdef USE_SHEEN - uniform vec3 sheenColor; - uniform float sheenRoughness; - #ifdef USE_SHEEN_COLORMAP - uniform sampler2D sheenColorMap; - #endif - #ifdef USE_SHEEN_ROUGHNESSMAP - uniform sampler2D sheenRoughnessMap; - #endif -#endif -#ifdef USE_ANISOTROPY - uniform vec2 anisotropyVector; - #ifdef USE_ANISOTROPYMAP - uniform sampler2D anisotropyMap; - #endif -#endif -varying vec3 vViewPosition; -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - vec4 diffuseColor = vec4( diffuse, opacity ); - #include - ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); - vec3 totalEmissiveRadiance = emissive; - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - vec3 totalDiffuse = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse; - vec3 totalSpecular = reflectedLight.directSpecular + reflectedLight.indirectSpecular; - #include - vec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance; - #ifdef USE_SHEEN - float sheenEnergyComp = 1.0 - 0.157 * max3( material.sheenColor ); - outgoingLight = outgoingLight * sheenEnergyComp + sheenSpecularDirect + sheenSpecularIndirect; - #endif - #ifdef USE_CLEARCOAT - float dotNVcc = saturate( dot( geometryClearcoatNormal, geometryViewDir ) ); - vec3 Fcc = F_Schlick( material.clearcoatF0, material.clearcoatF90, dotNVcc ); - outgoingLight = outgoingLight * ( 1.0 - material.clearcoat * Fcc ) + ( clearcoatSpecularDirect + clearcoatSpecularIndirect ) * material.clearcoat; - #endif - #include - #include - #include - #include - #include - #include -}`,bM=`#define TOON -varying vec3 vViewPosition; -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - vViewPosition = - mvPosition.xyz; - #include - #include - #include -}`,MM=`#define TOON -uniform vec3 diffuse; -uniform vec3 emissive; -uniform float opacity; -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - vec4 diffuseColor = vec4( diffuse, opacity ); - #include - ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); - vec3 totalEmissiveRadiance = emissive; - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance; - #include - #include - #include - #include - #include - #include -}`,wM=`uniform float size; -uniform float scale; -#include -#include -#include -#include -#include -#include -#ifdef USE_POINTS_UV - varying vec2 vUv; - uniform mat3 uvTransform; -#endif -void main() { - #ifdef USE_POINTS_UV - vUv = ( uvTransform * vec3( uv, 1 ) ).xy; - #endif - #include - #include - #include - #include - #include - #include - gl_PointSize = size; - #ifdef USE_SIZEATTENUATION - bool isPerspective = isPerspectiveMatrix( projectionMatrix ); - if ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z ); - #endif - #include - #include - #include - #include -}`,TM=`uniform vec3 diffuse; -uniform float opacity; -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - vec4 diffuseColor = vec4( diffuse, opacity ); - #include - vec3 outgoingLight = vec3( 0.0 ); - #include - #include - #include - #include - #include - outgoingLight = diffuseColor.rgb; - #include - #include - #include - #include - #include -}`,EM=`#include -#include -#include -#include -#include -#include -#include -void main() { - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include -}`,AM=`uniform vec3 color; -uniform float opacity; -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - #include - gl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) ); - #include - #include - #include -}`,PM=`uniform float rotation; -uniform vec2 center; -#include -#include -#include -#include -#include -void main() { - #include - vec4 mvPosition = modelViewMatrix[ 3 ]; - vec2 scale = vec2( length( modelMatrix[ 0 ].xyz ), length( modelMatrix[ 1 ].xyz ) ); - #ifndef USE_SIZEATTENUATION - bool isPerspective = isPerspectiveMatrix( projectionMatrix ); - if ( isPerspective ) scale *= - mvPosition.z; - #endif - vec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale; - vec2 rotatedPosition; - rotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y; - rotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y; - mvPosition.xy += rotatedPosition; - gl_Position = projectionMatrix * mvPosition; - #include - #include - #include -}`,RM=`uniform vec3 diffuse; -uniform float opacity; -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - vec4 diffuseColor = vec4( diffuse, opacity ); - #include - vec3 outgoingLight = vec3( 0.0 ); - #include - #include - #include - #include - #include - outgoingLight = diffuseColor.rgb; - #include - #include - #include - #include -}`,He={alphahash_fragment:KS,alphahash_pars_fragment:JS,alphamap_fragment:ev,alphamap_pars_fragment:tv,alphatest_fragment:nv,alphatest_pars_fragment:iv,aomap_fragment:sv,aomap_pars_fragment:rv,batching_pars_vertex:ov,batching_vertex:av,begin_vertex:lv,beginnormal_vertex:cv,bsdfs:hv,iridescence_fragment:uv,bumpmap_pars_fragment:fv,clipping_planes_fragment:dv,clipping_planes_pars_fragment:pv,clipping_planes_pars_vertex:mv,clipping_planes_vertex:gv,color_fragment:Ov,color_pars_fragment:_v,color_pars_vertex:xv,color_vertex:yv,common:Sv,cube_uv_reflection_fragment:vv,defaultnormal_vertex:bv,displacementmap_pars_vertex:Mv,displacementmap_vertex:wv,emissivemap_fragment:Tv,emissivemap_pars_fragment:Ev,colorspace_fragment:Av,colorspace_pars_fragment:Pv,envmap_fragment:Rv,envmap_common_pars_fragment:Cv,envmap_pars_fragment:kv,envmap_pars_vertex:Lv,envmap_physical_pars_fragment:Zv,envmap_vertex:Dv,fog_vertex:Iv,fog_pars_vertex:Uv,fog_fragment:Nv,fog_pars_fragment:Qv,gradientmap_pars_fragment:Bv,lightmap_pars_fragment:Fv,lights_lambert_fragment:$v,lights_lambert_pars_fragment:Vv,lights_pars_begin:zv,lights_toon_fragment:Gv,lights_toon_pars_fragment:Xv,lights_phong_fragment:Hv,lights_phong_pars_fragment:Wv,lights_physical_fragment:jv,lights_physical_pars_fragment:qv,lights_fragment_begin:Yv,lights_fragment_maps:Kv,lights_fragment_end:Jv,logdepthbuf_fragment:eb,logdepthbuf_pars_fragment:tb,logdepthbuf_pars_vertex:nb,logdepthbuf_vertex:ib,map_fragment:sb,map_pars_fragment:rb,map_particle_fragment:ob,map_particle_pars_fragment:ab,metalnessmap_fragment:lb,metalnessmap_pars_fragment:cb,morphinstance_vertex:hb,morphcolor_vertex:ub,morphnormal_vertex:fb,morphtarget_pars_vertex:db,morphtarget_vertex:pb,normal_fragment_begin:mb,normal_fragment_maps:gb,normal_pars_fragment:Ob,normal_pars_vertex:_b,normal_vertex:xb,normalmap_pars_fragment:yb,clearcoat_normal_fragment_begin:Sb,clearcoat_normal_fragment_maps:vb,clearcoat_pars_fragment:bb,iridescence_pars_fragment:Mb,opaque_fragment:wb,packing:Tb,premultiplied_alpha_fragment:Eb,project_vertex:Ab,dithering_fragment:Pb,dithering_pars_fragment:Rb,roughnessmap_fragment:Cb,roughnessmap_pars_fragment:kb,shadowmap_pars_fragment:Lb,shadowmap_pars_vertex:Db,shadowmap_vertex:Ib,shadowmask_pars_fragment:Ub,skinbase_vertex:Nb,skinning_pars_vertex:Qb,skinning_vertex:Bb,skinnormal_vertex:Fb,specularmap_fragment:$b,specularmap_pars_fragment:Vb,tonemapping_fragment:zb,tonemapping_pars_fragment:Zb,transmission_fragment:Gb,transmission_pars_fragment:Xb,uv_pars_fragment:Hb,uv_pars_vertex:Wb,uv_vertex:jb,worldpos_vertex:qb,background_vert:Yb,background_frag:Kb,backgroundCube_vert:Jb,backgroundCube_frag:eM,cube_vert:tM,cube_frag:nM,depth_vert:iM,depth_frag:sM,distanceRGBA_vert:rM,distanceRGBA_frag:oM,equirect_vert:aM,equirect_frag:lM,linedashed_vert:cM,linedashed_frag:hM,meshbasic_vert:uM,meshbasic_frag:fM,meshlambert_vert:dM,meshlambert_frag:pM,meshmatcap_vert:mM,meshmatcap_frag:gM,meshnormal_vert:OM,meshnormal_frag:_M,meshphong_vert:xM,meshphong_frag:yM,meshphysical_vert:SM,meshphysical_frag:vM,meshtoon_vert:bM,meshtoon_frag:MM,points_vert:wM,points_frag:TM,shadow_vert:EM,shadow_frag:AM,sprite_vert:PM,sprite_frag:RM},le={common:{diffuse:{value:new De(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new Ze},alphaMap:{value:null},alphaMapTransform:{value:new Ze},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new Ze}},envmap:{envMap:{value:null},envMapRotation:{value:new Ze},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new Ze}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new Ze}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new Ze},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new Ze},normalScale:{value:new Ue(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new Ze},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new Ze}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new Ze}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new Ze}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new De(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotShadowMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new De(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new Ze},alphaTest:{value:0},uvTransform:{value:new Ze}},sprite:{diffuse:{value:new De(16777215)},opacity:{value:1},center:{value:new Ue(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new Ze},alphaMap:{value:null},alphaMapTransform:{value:new Ze},alphaTest:{value:0}}},di={basic:{uniforms:un([le.common,le.specularmap,le.envmap,le.aomap,le.lightmap,le.fog]),vertexShader:He.meshbasic_vert,fragmentShader:He.meshbasic_frag},lambert:{uniforms:un([le.common,le.specularmap,le.envmap,le.aomap,le.lightmap,le.emissivemap,le.bumpmap,le.normalmap,le.displacementmap,le.fog,le.lights,{emissive:{value:new De(0)}}]),vertexShader:He.meshlambert_vert,fragmentShader:He.meshlambert_frag},phong:{uniforms:un([le.common,le.specularmap,le.envmap,le.aomap,le.lightmap,le.emissivemap,le.bumpmap,le.normalmap,le.displacementmap,le.fog,le.lights,{emissive:{value:new De(0)},specular:{value:new De(1118481)},shininess:{value:30}}]),vertexShader:He.meshphong_vert,fragmentShader:He.meshphong_frag},standard:{uniforms:un([le.common,le.envmap,le.aomap,le.lightmap,le.emissivemap,le.bumpmap,le.normalmap,le.displacementmap,le.roughnessmap,le.metalnessmap,le.fog,le.lights,{emissive:{value:new De(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:He.meshphysical_vert,fragmentShader:He.meshphysical_frag},toon:{uniforms:un([le.common,le.aomap,le.lightmap,le.emissivemap,le.bumpmap,le.normalmap,le.displacementmap,le.gradientmap,le.fog,le.lights,{emissive:{value:new De(0)}}]),vertexShader:He.meshtoon_vert,fragmentShader:He.meshtoon_frag},matcap:{uniforms:un([le.common,le.bumpmap,le.normalmap,le.displacementmap,le.fog,{matcap:{value:null}}]),vertexShader:He.meshmatcap_vert,fragmentShader:He.meshmatcap_frag},points:{uniforms:un([le.points,le.fog]),vertexShader:He.points_vert,fragmentShader:He.points_frag},dashed:{uniforms:un([le.common,le.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:He.linedashed_vert,fragmentShader:He.linedashed_frag},depth:{uniforms:un([le.common,le.displacementmap]),vertexShader:He.depth_vert,fragmentShader:He.depth_frag},normal:{uniforms:un([le.common,le.bumpmap,le.normalmap,le.displacementmap,{opacity:{value:1}}]),vertexShader:He.meshnormal_vert,fragmentShader:He.meshnormal_frag},sprite:{uniforms:un([le.sprite,le.fog]),vertexShader:He.sprite_vert,fragmentShader:He.sprite_frag},background:{uniforms:{uvTransform:{value:new Ze},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:He.background_vert,fragmentShader:He.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1},backgroundRotation:{value:new Ze}},vertexShader:He.backgroundCube_vert,fragmentShader:He.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:He.cube_vert,fragmentShader:He.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:He.equirect_vert,fragmentShader:He.equirect_frag},distanceRGBA:{uniforms:un([le.common,le.displacementmap,{referencePosition:{value:new U},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:He.distanceRGBA_vert,fragmentShader:He.distanceRGBA_frag},shadow:{uniforms:un([le.lights,le.fog,{color:{value:new De(0)},opacity:{value:1}}]),vertexShader:He.shadow_vert,fragmentShader:He.shadow_frag}};di.physical={uniforms:un([di.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new Ze},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new Ze},clearcoatNormalScale:{value:new Ue(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new Ze},dispersion:{value:0},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new Ze},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new Ze},sheen:{value:0},sheenColor:{value:new De(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new Ze},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new Ze},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new Ze},transmissionSamplerSize:{value:new Ue},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new Ze},attenuationDistance:{value:0},attenuationColor:{value:new De(0)},specularColor:{value:new De(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new Ze},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new Ze},anisotropyVector:{value:new Ue},anisotropyMap:{value:null},anisotropyMapTransform:{value:new Ze}}]),vertexShader:He.meshphysical_vert,fragmentShader:He.meshphysical_frag};const Fa={r:0,b:0,g:0},Rs=new ri,CM=new Ge;function kM(s,e,t,n,i,r,o){const a=new De(0);let l=r===!0?0:1,c,h,u=null,f=0,d=null;function p(x){let _=x.isScene===!0?x.background:null;return _&&_.isTexture&&(_=(x.backgroundBlurriness>0?t:e).get(_)),_}function O(x){let _=!1;const w=p(x);w===null?m(a,l):w&&w.isColor&&(m(w,1),_=!0);const T=s.xr.getEnvironmentBlendMode();T==="additive"?n.buffers.color.setClear(0,0,0,1,o):T==="alpha-blend"&&n.buffers.color.setClear(0,0,0,0,o),(s.autoClear||_)&&(n.buffers.depth.setTest(!0),n.buffers.depth.setMask(!0),n.buffers.color.setMask(!0),s.clear(s.autoClearColor,s.autoClearDepth,s.autoClearStencil))}function g(x,_){const w=p(_);w&&(w.isCubeTexture||w.mapping===Jl)?(h===void 0&&(h=new jt(new js(1,1,1),new gs({name:"BackgroundCubeMaterial",uniforms:Hr(di.backgroundCube.uniforms),vertexShader:di.backgroundCube.vertexShader,fragmentShader:di.backgroundCube.fragmentShader,side:Mn,depthTest:!1,depthWrite:!1,fog:!1})),h.geometry.deleteAttribute("normal"),h.geometry.deleteAttribute("uv"),h.onBeforeRender=function(T,E,P){this.matrixWorld.copyPosition(P.matrixWorld)},Object.defineProperty(h.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),i.update(h)),Rs.copy(_.backgroundRotation),Rs.x*=-1,Rs.y*=-1,Rs.z*=-1,w.isCubeTexture&&w.isRenderTargetTexture===!1&&(Rs.y*=-1,Rs.z*=-1),h.material.uniforms.envMap.value=w,h.material.uniforms.flipEnvMap.value=w.isCubeTexture&&w.isRenderTargetTexture===!1?-1:1,h.material.uniforms.backgroundBlurriness.value=_.backgroundBlurriness,h.material.uniforms.backgroundIntensity.value=_.backgroundIntensity,h.material.uniforms.backgroundRotation.value.setFromMatrix4(CM.makeRotationFromEuler(Rs)),h.material.toneMapped=nt.getTransfer(w.colorSpace)!==Ot,(u!==w||f!==w.version||d!==s.toneMapping)&&(h.material.needsUpdate=!0,u=w,f=w.version,d=s.toneMapping),h.layers.enableAll(),x.unshift(h,h.geometry,h.material,0,0,null)):w&&w.isTexture&&(c===void 0&&(c=new jt(new ec(2,2),new gs({name:"BackgroundMaterial",uniforms:Hr(di.background.uniforms),vertexShader:di.background.vertexShader,fragmentShader:di.background.fragmentShader,side:Gi,depthTest:!1,depthWrite:!1,fog:!1})),c.geometry.deleteAttribute("normal"),Object.defineProperty(c.material,"map",{get:function(){return this.uniforms.t2D.value}}),i.update(c)),c.material.uniforms.t2D.value=w,c.material.uniforms.backgroundIntensity.value=_.backgroundIntensity,c.material.toneMapped=nt.getTransfer(w.colorSpace)!==Ot,w.matrixAutoUpdate===!0&&w.updateMatrix(),c.material.uniforms.uvTransform.value.copy(w.matrix),(u!==w||f!==w.version||d!==s.toneMapping)&&(c.material.needsUpdate=!0,u=w,f=w.version,d=s.toneMapping),c.layers.enableAll(),x.unshift(c,c.geometry,c.material,0,0,null))}function m(x,_){x.getRGB(Fa,Kg(s)),n.buffers.color.setClear(Fa.r,Fa.g,Fa.b,_,o)}function b(){h!==void 0&&(h.geometry.dispose(),h.material.dispose(),h=void 0),c!==void 0&&(c.geometry.dispose(),c.material.dispose(),c=void 0)}return{getClearColor:function(){return a},setClearColor:function(x,_=1){a.set(x),l=_,m(a,l)},getClearAlpha:function(){return l},setClearAlpha:function(x){l=x,m(a,l)},render:O,addToRenderList:g,dispose:b}}function LM(s,e){const t=s.getParameter(s.MAX_VERTEX_ATTRIBS),n={},i=f(null);let r=i,o=!1;function a(S,R,k,I,$){let H=!1;const L=u(I,k,R);r!==L&&(r=L,c(r.object)),H=d(S,I,k,$),H&&p(S,I,k,$),$!==null&&e.update($,s.ELEMENT_ARRAY_BUFFER),(H||o)&&(o=!1,_(S,R,k,I),$!==null&&s.bindBuffer(s.ELEMENT_ARRAY_BUFFER,e.get($).buffer))}function l(){return s.createVertexArray()}function c(S){return s.bindVertexArray(S)}function h(S){return s.deleteVertexArray(S)}function u(S,R,k){const I=k.wireframe===!0;let $=n[S.id];$===void 0&&($={},n[S.id]=$);let H=$[R.id];H===void 0&&(H={},$[R.id]=H);let L=H[I];return L===void 0&&(L=f(l()),H[I]=L),L}function f(S){const R=[],k=[],I=[];for(let $=0;$=0){const se=$[B];let ge=H[B];if(ge===void 0&&(B==="instanceMatrix"&&S.instanceMatrix&&(ge=S.instanceMatrix),B==="instanceColor"&&S.instanceColor&&(ge=S.instanceColor)),se===void 0||se.attribute!==ge||ge&&se.data!==ge.data)return!0;L++}return r.attributesNum!==L||r.index!==I}function p(S,R,k,I){const $={},H=R.attributes;let L=0;const z=k.getAttributes();for(const B in z)if(z[B].location>=0){let se=H[B];se===void 0&&(B==="instanceMatrix"&&S.instanceMatrix&&(se=S.instanceMatrix),B==="instanceColor"&&S.instanceColor&&(se=S.instanceColor));const ge={};ge.attribute=se,se&&se.data&&(ge.data=se.data),$[B]=ge,L++}r.attributes=$,r.attributesNum=L,r.index=I}function O(){const S=r.newAttributes;for(let R=0,k=S.length;R=0){let ee=$[z];if(ee===void 0&&(z==="instanceMatrix"&&S.instanceMatrix&&(ee=S.instanceMatrix),z==="instanceColor"&&S.instanceColor&&(ee=S.instanceColor)),ee!==void 0){const se=ee.normalized,ge=ee.itemSize,be=e.get(ee);if(be===void 0)continue;const Be=be.buffer,j=be.type,q=be.bytesPerElement,Oe=j===s.INT||j===s.UNSIGNED_INT||ee.gpuType===df;if(ee.isInterleavedBufferAttribute){const ce=ee.data,Le=ce.stride,lt=ee.offset;if(ce.isInstancedInterleavedBuffer){for(let Ne=0;Ne0&&s.getShaderPrecisionFormat(s.FRAGMENT_SHADER,s.HIGH_FLOAT).precision>0)return"highp";E="mediump"}return E==="mediump"&&s.getShaderPrecisionFormat(s.VERTEX_SHADER,s.MEDIUM_FLOAT).precision>0&&s.getShaderPrecisionFormat(s.FRAGMENT_SHADER,s.MEDIUM_FLOAT).precision>0?"mediump":"lowp"}let c=t.precision!==void 0?t.precision:"highp";const h=l(c);h!==c&&(console.warn("THREE.WebGLRenderer:",c,"not supported, using",h,"instead."),c=h);const u=t.logarithmicDepthBuffer===!0,f=t.reverseDepthBuffer===!0&&e.has("EXT_clip_control"),d=s.getParameter(s.MAX_TEXTURE_IMAGE_UNITS),p=s.getParameter(s.MAX_VERTEX_TEXTURE_IMAGE_UNITS),O=s.getParameter(s.MAX_TEXTURE_SIZE),g=s.getParameter(s.MAX_CUBE_MAP_TEXTURE_SIZE),m=s.getParameter(s.MAX_VERTEX_ATTRIBS),b=s.getParameter(s.MAX_VERTEX_UNIFORM_VECTORS),x=s.getParameter(s.MAX_VARYING_VECTORS),_=s.getParameter(s.MAX_FRAGMENT_UNIFORM_VECTORS),w=p>0,T=s.getParameter(s.MAX_SAMPLES);return{isWebGL2:!0,getMaxAnisotropy:r,getMaxPrecision:l,textureFormatReadable:o,textureTypeReadable:a,precision:c,logarithmicDepthBuffer:u,reverseDepthBuffer:f,maxTextures:d,maxVertexTextures:p,maxTextureSize:O,maxCubemapSize:g,maxAttributes:m,maxVertexUniforms:b,maxVaryings:x,maxFragmentUniforms:_,vertexTextures:w,maxSamples:T}}function UM(s){const e=this;let t=null,n=0,i=!1,r=!1;const o=new rs,a=new Ze,l={value:null,needsUpdate:!1};this.uniform=l,this.numPlanes=0,this.numIntersection=0,this.init=function(u,f){const d=u.length!==0||f||n!==0||i;return i=f,n=u.length,d},this.beginShadows=function(){r=!0,h(null)},this.endShadows=function(){r=!1},this.setGlobalState=function(u,f){t=h(u,f,0)},this.setState=function(u,f,d){const p=u.clippingPlanes,O=u.clipIntersection,g=u.clipShadows,m=s.get(u);if(!i||p===null||p.length===0||r&&!g)r?h(null):c();else{const b=r?0:n,x=b*4;let _=m.clippingState||null;l.value=_,_=h(p,f,x,d);for(let w=0;w!==x;++w)_[w]=t[w];m.clippingState=_,this.numIntersection=O?this.numPlanes:0,this.numPlanes+=b}};function c(){l.value!==t&&(l.value=t,l.needsUpdate=n>0),e.numPlanes=n,e.numIntersection=0}function h(u,f,d,p){const O=u!==null?u.length:0;let g=null;if(O!==0){if(g=l.value,p!==!0||g===null){const m=d+O*4,b=f.matrixWorldInverse;a.getNormalMatrix(b),(g===null||g.length0){const c=new sS(l.height);return c.fromEquirectangularTexture(s,o),e.set(o,c),o.addEventListener("dispose",i),t(c.texture,o.mapping)}else return null}}return o}function i(o){const a=o.target;a.removeEventListener("dispose",i);const l=e.get(a);l!==void 0&&(e.delete(a),l.dispose())}function r(){e=new WeakMap}return{get:n,dispose:r}}const wr=4,up=[.125,.215,.35,.446,.526,.582],Us=20,Xc=new Rf,fp=new De;let Hc=null,Wc=0,jc=0,qc=!1;const Ds=(1+Math.sqrt(5))/2,yr=1/Ds,dp=[new U(-Ds,yr,0),new U(Ds,yr,0),new U(-yr,0,Ds),new U(yr,0,Ds),new U(0,Ds,-yr),new U(0,Ds,yr),new U(-1,1,-1),new U(1,1,-1),new U(-1,1,1),new U(1,1,1)];class pp{constructor(e){this._renderer=e,this._pingPongRenderTarget=null,this._lodMax=0,this._cubeSize=0,this._lodPlanes=[],this._sizeLods=[],this._sigmas=[],this._blurMaterial=null,this._cubemapMaterial=null,this._equirectMaterial=null,this._compileMaterial(this._blurMaterial)}fromScene(e,t=0,n=.1,i=100){Hc=this._renderer.getRenderTarget(),Wc=this._renderer.getActiveCubeFace(),jc=this._renderer.getActiveMipmapLevel(),qc=this._renderer.xr.enabled,this._renderer.xr.enabled=!1,this._setSize(256);const r=this._allocateTargets();return r.depthBuffer=!0,this._sceneToCubeUV(e,n,i,r),t>0&&this._blur(r,0,0,t),this._applyPMREM(r),this._cleanup(r),r}fromEquirectangular(e,t=null){return this._fromTexture(e,t)}fromCubemap(e,t=null){return this._fromTexture(e,t)}compileCubemapShader(){this._cubemapMaterial===null&&(this._cubemapMaterial=Op(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){this._equirectMaterial===null&&(this._equirectMaterial=gp(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),this._cubemapMaterial!==null&&this._cubemapMaterial.dispose(),this._equirectMaterial!==null&&this._equirectMaterial.dispose()}_setSize(e){this._lodMax=Math.floor(Math.log2(e)),this._cubeSize=Math.pow(2,this._lodMax)}_dispose(){this._blurMaterial!==null&&this._blurMaterial.dispose(),this._pingPongRenderTarget!==null&&this._pingPongRenderTarget.dispose();for(let e=0;e2?x:0,x,x),h.setRenderTarget(i),O&&h.render(p,a),h.render(e,a)}p.geometry.dispose(),p.material.dispose(),h.toneMapping=f,h.autoClear=u,e.background=g}_textureToCubeUV(e,t){const n=this._renderer,i=e.mapping===$r||e.mapping===Vr;i?(this._cubemapMaterial===null&&(this._cubemapMaterial=Op()),this._cubemapMaterial.uniforms.flipEnvMap.value=e.isRenderTargetTexture===!1?-1:1):this._equirectMaterial===null&&(this._equirectMaterial=gp());const r=i?this._cubemapMaterial:this._equirectMaterial,o=new jt(this._lodPlanes[0],r),a=r.uniforms;a.envMap.value=e;const l=this._cubeSize;$a(t,0,0,3*l,2*l),n.setRenderTarget(t),n.render(o,Xc)}_applyPMREM(e){const t=this._renderer,n=t.autoClear;t.autoClear=!1;const i=this._lodPlanes.length;for(let r=1;rUs&&console.warn(`sigmaRadians, ${r}, is too large and will clip, as it requested ${g} samples when the maximum is set to ${Us}`);const m=[];let b=0;for(let E=0;Ex-wr?i-x+wr:0),T=4*(this._cubeSize-_);$a(t,w,T,3*_,2*_),l.setRenderTarget(t),l.render(u,Xc)}}function QM(s){const e=[],t=[],n=[];let i=s;const r=s-wr+1+up.length;for(let o=0;os-wr?l=up[o-s+wr-1]:o===0&&(l=0),n.push(l);const c=1/(a-2),h=-c,u=1+c,f=[h,h,u,h,u,u,h,h,u,u,h,u],d=6,p=6,O=3,g=2,m=1,b=new Float32Array(O*p*d),x=new Float32Array(g*p*d),_=new Float32Array(m*p*d);for(let T=0;T2?0:-1,y=[E,P,0,E+2/3,P,0,E+2/3,P+1,0,E,P,0,E+2/3,P+1,0,E,P+1,0];b.set(y,O*p*T),x.set(f,g*p*T);const S=[T,T,T,T,T,T];_.set(S,m*p*T)}const w=new In;w.setAttribute("position",new On(b,O)),w.setAttribute("uv",new On(x,g)),w.setAttribute("faceIndex",new On(_,m)),e.push(w),i>wr&&i--}return{lodPlanes:e,sizeLods:t,sigmas:n}}function mp(s,e,t){const n=new Ws(s,e,t);return n.texture.mapping=Jl,n.texture.name="PMREM.cubeUv",n.scissorTest=!0,n}function $a(s,e,t,n,i){s.viewport.set(e,t,n,i),s.scissor.set(e,t,n,i)}function BM(s,e,t){const n=new Float32Array(Us),i=new U(0,1,0);return new gs({name:"SphericalGaussianBlur",defines:{n:Us,CUBEUV_TEXEL_WIDTH:1/e,CUBEUV_TEXEL_HEIGHT:1/t,CUBEUV_MAX_MIP:`${s}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:n},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:i}},vertexShader:Lf(),fragmentShader:` - - precision mediump float; - precision mediump int; - - varying vec3 vOutputDirection; - - uniform sampler2D envMap; - uniform int samples; - uniform float weights[ n ]; - uniform bool latitudinal; - uniform float dTheta; - uniform float mipInt; - uniform vec3 poleAxis; - - #define ENVMAP_TYPE_CUBE_UV - #include - - vec3 getSample( float theta, vec3 axis ) { - - float cosTheta = cos( theta ); - // Rodrigues' axis-angle rotation - vec3 sampleDirection = vOutputDirection * cosTheta - + cross( axis, vOutputDirection ) * sin( theta ) - + axis * dot( axis, vOutputDirection ) * ( 1.0 - cosTheta ); - - return bilinearCubeUV( envMap, sampleDirection, mipInt ); - - } - - void main() { - - vec3 axis = latitudinal ? poleAxis : cross( poleAxis, vOutputDirection ); - - if ( all( equal( axis, vec3( 0.0 ) ) ) ) { - - axis = vec3( vOutputDirection.z, 0.0, - vOutputDirection.x ); - - } - - axis = normalize( axis ); - - gl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 ); - gl_FragColor.rgb += weights[ 0 ] * getSample( 0.0, axis ); - - for ( int i = 1; i < n; i++ ) { - - if ( i >= samples ) { - - break; - - } - - float theta = dTheta * float( i ); - gl_FragColor.rgb += weights[ i ] * getSample( -1.0 * theta, axis ); - gl_FragColor.rgb += weights[ i ] * getSample( theta, axis ); - - } - - } - `,blending:ps,depthTest:!1,depthWrite:!1})}function gp(){return new gs({name:"EquirectangularToCubeUV",uniforms:{envMap:{value:null}},vertexShader:Lf(),fragmentShader:` - - precision mediump float; - precision mediump int; - - varying vec3 vOutputDirection; - - uniform sampler2D envMap; - - #include - - void main() { - - vec3 outputDirection = normalize( vOutputDirection ); - vec2 uv = equirectUv( outputDirection ); - - gl_FragColor = vec4( texture2D ( envMap, uv ).rgb, 1.0 ); - - } - `,blending:ps,depthTest:!1,depthWrite:!1})}function Op(){return new gs({name:"CubemapToCubeUV",uniforms:{envMap:{value:null},flipEnvMap:{value:-1}},vertexShader:Lf(),fragmentShader:` - - precision mediump float; - precision mediump int; - - uniform float flipEnvMap; - - varying vec3 vOutputDirection; - - uniform samplerCube envMap; - - void main() { - - gl_FragColor = textureCube( envMap, vec3( flipEnvMap * vOutputDirection.x, vOutputDirection.yz ) ); - - } - `,blending:ps,depthTest:!1,depthWrite:!1})}function Lf(){return` - - precision mediump float; - precision mediump int; - - attribute float faceIndex; - - varying vec3 vOutputDirection; - - // RH coordinate system; PMREM face-indexing convention - vec3 getDirection( vec2 uv, float face ) { - - uv = 2.0 * uv - 1.0; - - vec3 direction = vec3( uv, 1.0 ); - - if ( face == 0.0 ) { - - direction = direction.zyx; // ( 1, v, u ) pos x - - } else if ( face == 1.0 ) { - - direction = direction.xzy; - direction.xz *= -1.0; // ( -u, 1, -v ) pos y - - } else if ( face == 2.0 ) { - - direction.x *= -1.0; // ( -u, v, 1 ) pos z - - } else if ( face == 3.0 ) { - - direction = direction.zyx; - direction.xz *= -1.0; // ( -1, v, -u ) neg x - - } else if ( face == 4.0 ) { - - direction = direction.xzy; - direction.xy *= -1.0; // ( -u, -1, v ) neg y - - } else if ( face == 5.0 ) { - - direction.z *= -1.0; // ( u, v, -1 ) neg z - - } - - return direction; - - } - - void main() { - - vOutputDirection = getDirection( uv, faceIndex ); - gl_Position = vec4( position, 1.0 ); - - } - `}function FM(s){let e=new WeakMap,t=null;function n(a){if(a&&a.isTexture){const l=a.mapping,c=l===Nh||l===Qh,h=l===$r||l===Vr;if(c||h){let u=e.get(a);const f=u!==void 0?u.texture.pmremVersion:0;if(a.isRenderTargetTexture&&a.pmremVersion!==f)return t===null&&(t=new pp(s)),u=c?t.fromEquirectangular(a,u):t.fromCubemap(a,u),u.texture.pmremVersion=a.pmremVersion,e.set(a,u),u.texture;if(u!==void 0)return u.texture;{const d=a.image;return c&&d&&d.height>0||h&&d&&i(d)?(t===null&&(t=new pp(s)),u=c?t.fromEquirectangular(a):t.fromCubemap(a),u.texture.pmremVersion=a.pmremVersion,e.set(a,u),a.addEventListener("dispose",r),u.texture):null}}}return a}function i(a){let l=0;const c=6;for(let h=0;he.maxTextureSize&&(w=Math.ceil(_/e.maxTextureSize),_=e.maxTextureSize);const T=new Float32Array(_*w*4*u),E=new Hg(T,_,w,u);E.type=ni,E.needsUpdate=!0;const P=x*4;for(let S=0;S0)return s;const i=e*t;let r=xp[i];if(r===void 0&&(r=new Float32Array(i),xp[i]=r),e!==0){n.toArray(r,0);for(let o=1,a=0;o!==e;++o)a+=t,s[o].toArray(r,a)}return r}function zt(s,e){if(s.length!==e.length)return!1;for(let t=0,n=s.length;t":" "} ${a}: ${t[o]}`)}return n.join(` -`)}const Tp=new Ze;function Fw(s){nt._getMatrix(Tp,nt.workingColorSpace,s);const e=`mat3( ${Tp.elements.map(t=>t.toFixed(4))} )`;switch(nt.getTransfer(s)){case Pl:return[e,"LinearTransferOETF"];case Ot:return[e,"sRGBTransferOETF"];default:return console.warn("THREE.WebGLProgram: Unsupported color space: ",s),[e,"LinearTransferOETF"]}}function Ep(s,e,t){const n=s.getShaderParameter(e,s.COMPILE_STATUS),i=s.getShaderInfoLog(e).trim();if(n&&i==="")return"";const r=/ERROR: 0:(\d+)/.exec(i);if(r){const o=parseInt(r[1]);return t.toUpperCase()+` - -`+i+` - -`+Bw(s.getShaderSource(e),o)}else return i}function $w(s,e){const t=Fw(e);return[`vec4 ${s}( vec4 value ) {`,` return ${t[1]}( vec4( value.rgb * ${t[0]}, value.a ) );`,"}"].join(` -`)}function Vw(s,e){let t;switch(e){case qx:t="Linear";break;case Yx:t="Reinhard";break;case Kx:t="Cineon";break;case Jx:t="ACESFilmic";break;case ty:t="AgX";break;case ny:t="Neutral";break;case ey:t="Custom";break;default:console.warn("THREE.WebGLProgram: Unsupported toneMapping:",e),t="Linear"}return"vec3 "+s+"( vec3 color ) { return "+t+"ToneMapping( color ); }"}const Va=new U;function zw(){nt.getLuminanceCoefficients(Va);const s=Va.x.toFixed(4),e=Va.y.toFixed(4),t=Va.z.toFixed(4);return["float luminance( const in vec3 rgb ) {",` const vec3 weights = vec3( ${s}, ${e}, ${t} );`," return dot( weights, rgb );","}"].join(` -`)}function Zw(s){return[s.extensionClipCullDistance?"#extension GL_ANGLE_clip_cull_distance : require":"",s.extensionMultiDraw?"#extension GL_ANGLE_multi_draw : require":""].filter(To).join(` -`)}function Gw(s){const e=[];for(const t in s){const n=s[t];n!==!1&&e.push("#define "+t+" "+n)}return e.join(` -`)}function Xw(s,e){const t={},n=s.getProgramParameter(e,s.ACTIVE_ATTRIBUTES);for(let i=0;i/gm;function Ou(s){return s.replace(Hw,jw)}const Ww=new Map;function jw(s,e){let t=He[e];if(t===void 0){const n=Ww.get(e);if(n!==void 0)t=He[n],console.warn('THREE.WebGLRenderer: Shader chunk "%s" has been deprecated. Use "%s" instead.',e,n);else throw new Error("Can not resolve #include <"+e+">")}return Ou(t)}const qw=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function Rp(s){return s.replace(qw,Yw)}function Yw(s,e,t,n){let i="";for(let r=parseInt(e);r0&&(g+=` -`),m=["#define SHADER_TYPE "+t.shaderType,"#define SHADER_NAME "+t.shaderName,p].filter(To).join(` -`),m.length>0&&(m+=` -`)):(g=[Cp(t),"#define SHADER_TYPE "+t.shaderType,"#define SHADER_NAME "+t.shaderName,p,t.extensionClipCullDistance?"#define USE_CLIP_DISTANCE":"",t.batching?"#define USE_BATCHING":"",t.batchingColor?"#define USE_BATCHING_COLOR":"",t.instancing?"#define USE_INSTANCING":"",t.instancingColor?"#define USE_INSTANCING_COLOR":"",t.instancingMorph?"#define USE_INSTANCING_MORPH":"",t.useFog&&t.fog?"#define USE_FOG":"",t.useFog&&t.fogExp2?"#define FOG_EXP2":"",t.map?"#define USE_MAP":"",t.envMap?"#define USE_ENVMAP":"",t.envMap?"#define "+h:"",t.lightMap?"#define USE_LIGHTMAP":"",t.aoMap?"#define USE_AOMAP":"",t.bumpMap?"#define USE_BUMPMAP":"",t.normalMap?"#define USE_NORMALMAP":"",t.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",t.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",t.displacementMap?"#define USE_DISPLACEMENTMAP":"",t.emissiveMap?"#define USE_EMISSIVEMAP":"",t.anisotropy?"#define USE_ANISOTROPY":"",t.anisotropyMap?"#define USE_ANISOTROPYMAP":"",t.clearcoatMap?"#define USE_CLEARCOATMAP":"",t.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",t.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",t.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",t.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",t.specularMap?"#define USE_SPECULARMAP":"",t.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",t.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",t.roughnessMap?"#define USE_ROUGHNESSMAP":"",t.metalnessMap?"#define USE_METALNESSMAP":"",t.alphaMap?"#define USE_ALPHAMAP":"",t.alphaHash?"#define USE_ALPHAHASH":"",t.transmission?"#define USE_TRANSMISSION":"",t.transmissionMap?"#define USE_TRANSMISSIONMAP":"",t.thicknessMap?"#define USE_THICKNESSMAP":"",t.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",t.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",t.mapUv?"#define MAP_UV "+t.mapUv:"",t.alphaMapUv?"#define ALPHAMAP_UV "+t.alphaMapUv:"",t.lightMapUv?"#define LIGHTMAP_UV "+t.lightMapUv:"",t.aoMapUv?"#define AOMAP_UV "+t.aoMapUv:"",t.emissiveMapUv?"#define EMISSIVEMAP_UV "+t.emissiveMapUv:"",t.bumpMapUv?"#define BUMPMAP_UV "+t.bumpMapUv:"",t.normalMapUv?"#define NORMALMAP_UV "+t.normalMapUv:"",t.displacementMapUv?"#define DISPLACEMENTMAP_UV "+t.displacementMapUv:"",t.metalnessMapUv?"#define METALNESSMAP_UV "+t.metalnessMapUv:"",t.roughnessMapUv?"#define ROUGHNESSMAP_UV "+t.roughnessMapUv:"",t.anisotropyMapUv?"#define ANISOTROPYMAP_UV "+t.anisotropyMapUv:"",t.clearcoatMapUv?"#define CLEARCOATMAP_UV "+t.clearcoatMapUv:"",t.clearcoatNormalMapUv?"#define CLEARCOAT_NORMALMAP_UV "+t.clearcoatNormalMapUv:"",t.clearcoatRoughnessMapUv?"#define CLEARCOAT_ROUGHNESSMAP_UV "+t.clearcoatRoughnessMapUv:"",t.iridescenceMapUv?"#define IRIDESCENCEMAP_UV "+t.iridescenceMapUv:"",t.iridescenceThicknessMapUv?"#define IRIDESCENCE_THICKNESSMAP_UV "+t.iridescenceThicknessMapUv:"",t.sheenColorMapUv?"#define SHEEN_COLORMAP_UV "+t.sheenColorMapUv:"",t.sheenRoughnessMapUv?"#define SHEEN_ROUGHNESSMAP_UV "+t.sheenRoughnessMapUv:"",t.specularMapUv?"#define SPECULARMAP_UV "+t.specularMapUv:"",t.specularColorMapUv?"#define SPECULAR_COLORMAP_UV "+t.specularColorMapUv:"",t.specularIntensityMapUv?"#define SPECULAR_INTENSITYMAP_UV "+t.specularIntensityMapUv:"",t.transmissionMapUv?"#define TRANSMISSIONMAP_UV "+t.transmissionMapUv:"",t.thicknessMapUv?"#define THICKNESSMAP_UV "+t.thicknessMapUv:"",t.vertexTangents&&t.flatShading===!1?"#define USE_TANGENT":"",t.vertexColors?"#define USE_COLOR":"",t.vertexAlphas?"#define USE_COLOR_ALPHA":"",t.vertexUv1s?"#define USE_UV1":"",t.vertexUv2s?"#define USE_UV2":"",t.vertexUv3s?"#define USE_UV3":"",t.pointsUvs?"#define USE_POINTS_UV":"",t.flatShading?"#define FLAT_SHADED":"",t.skinning?"#define USE_SKINNING":"",t.morphTargets?"#define USE_MORPHTARGETS":"",t.morphNormals&&t.flatShading===!1?"#define USE_MORPHNORMALS":"",t.morphColors?"#define USE_MORPHCOLORS":"",t.morphTargetsCount>0?"#define MORPHTARGETS_TEXTURE_STRIDE "+t.morphTextureStride:"",t.morphTargetsCount>0?"#define MORPHTARGETS_COUNT "+t.morphTargetsCount:"",t.doubleSided?"#define DOUBLE_SIDED":"",t.flipSided?"#define FLIP_SIDED":"",t.shadowMapEnabled?"#define USE_SHADOWMAP":"",t.shadowMapEnabled?"#define "+l:"",t.sizeAttenuation?"#define USE_SIZEATTENUATION":"",t.numLightProbes>0?"#define USE_LIGHT_PROBES":"",t.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",t.reverseDepthBuffer?"#define USE_REVERSEDEPTHBUF":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;","#ifdef USE_INSTANCING"," attribute mat4 instanceMatrix;","#endif","#ifdef USE_INSTANCING_COLOR"," attribute vec3 instanceColor;","#endif","#ifdef USE_INSTANCING_MORPH"," uniform sampler2D morphTexture;","#endif","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_UV1"," attribute vec2 uv1;","#endif","#ifdef USE_UV2"," attribute vec2 uv2;","#endif","#ifdef USE_UV3"," attribute vec2 uv3;","#endif","#ifdef USE_TANGENT"," attribute vec4 tangent;","#endif","#if defined( USE_COLOR_ALPHA )"," attribute vec4 color;","#elif defined( USE_COLOR )"," attribute vec3 color;","#endif","#ifdef USE_SKINNING"," attribute vec4 skinIndex;"," attribute vec4 skinWeight;","#endif",` -`].filter(To).join(` -`),m=[Cp(t),"#define SHADER_TYPE "+t.shaderType,"#define SHADER_NAME "+t.shaderName,p,t.useFog&&t.fog?"#define USE_FOG":"",t.useFog&&t.fogExp2?"#define FOG_EXP2":"",t.alphaToCoverage?"#define ALPHA_TO_COVERAGE":"",t.map?"#define USE_MAP":"",t.matcap?"#define USE_MATCAP":"",t.envMap?"#define USE_ENVMAP":"",t.envMap?"#define "+c:"",t.envMap?"#define "+h:"",t.envMap?"#define "+u:"",f?"#define CUBEUV_TEXEL_WIDTH "+f.texelWidth:"",f?"#define CUBEUV_TEXEL_HEIGHT "+f.texelHeight:"",f?"#define CUBEUV_MAX_MIP "+f.maxMip+".0":"",t.lightMap?"#define USE_LIGHTMAP":"",t.aoMap?"#define USE_AOMAP":"",t.bumpMap?"#define USE_BUMPMAP":"",t.normalMap?"#define USE_NORMALMAP":"",t.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",t.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",t.emissiveMap?"#define USE_EMISSIVEMAP":"",t.anisotropy?"#define USE_ANISOTROPY":"",t.anisotropyMap?"#define USE_ANISOTROPYMAP":"",t.clearcoat?"#define USE_CLEARCOAT":"",t.clearcoatMap?"#define USE_CLEARCOATMAP":"",t.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",t.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",t.dispersion?"#define USE_DISPERSION":"",t.iridescence?"#define USE_IRIDESCENCE":"",t.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",t.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",t.specularMap?"#define USE_SPECULARMAP":"",t.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",t.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",t.roughnessMap?"#define USE_ROUGHNESSMAP":"",t.metalnessMap?"#define USE_METALNESSMAP":"",t.alphaMap?"#define USE_ALPHAMAP":"",t.alphaTest?"#define USE_ALPHATEST":"",t.alphaHash?"#define USE_ALPHAHASH":"",t.sheen?"#define USE_SHEEN":"",t.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",t.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",t.transmission?"#define USE_TRANSMISSION":"",t.transmissionMap?"#define USE_TRANSMISSIONMAP":"",t.thicknessMap?"#define USE_THICKNESSMAP":"",t.vertexTangents&&t.flatShading===!1?"#define USE_TANGENT":"",t.vertexColors||t.instancingColor||t.batchingColor?"#define USE_COLOR":"",t.vertexAlphas?"#define USE_COLOR_ALPHA":"",t.vertexUv1s?"#define USE_UV1":"",t.vertexUv2s?"#define USE_UV2":"",t.vertexUv3s?"#define USE_UV3":"",t.pointsUvs?"#define USE_POINTS_UV":"",t.gradientMap?"#define USE_GRADIENTMAP":"",t.flatShading?"#define FLAT_SHADED":"",t.doubleSided?"#define DOUBLE_SIDED":"",t.flipSided?"#define FLIP_SIDED":"",t.shadowMapEnabled?"#define USE_SHADOWMAP":"",t.shadowMapEnabled?"#define "+l:"",t.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",t.numLightProbes>0?"#define USE_LIGHT_PROBES":"",t.decodeVideoTexture?"#define DECODE_VIDEO_TEXTURE":"",t.decodeVideoTextureEmissive?"#define DECODE_VIDEO_TEXTURE_EMISSIVE":"",t.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",t.reverseDepthBuffer?"#define USE_REVERSEDEPTHBUF":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",t.toneMapping!==ms?"#define TONE_MAPPING":"",t.toneMapping!==ms?He.tonemapping_pars_fragment:"",t.toneMapping!==ms?Vw("toneMapping",t.toneMapping):"",t.dithering?"#define DITHERING":"",t.opaque?"#define OPAQUE":"",He.colorspace_pars_fragment,$w("linearToOutputTexel",t.outputColorSpace),zw(),t.useDepthPacking?"#define DEPTH_PACKING "+t.depthPacking:"",` -`].filter(To).join(` -`)),o=Ou(o),o=Ap(o,t),o=Pp(o,t),a=Ou(a),a=Ap(a,t),a=Pp(a,t),o=Rp(o),a=Rp(a),t.isRawShaderMaterial!==!0&&(b=`#version 300 es -`,g=[d,"#define attribute in","#define varying out","#define texture2D texture"].join(` -`)+` -`+g,m=["#define varying in",t.glslVersion===Td?"":"layout(location = 0) out highp vec4 pc_fragColor;",t.glslVersion===Td?"":"#define gl_FragColor pc_fragColor","#define gl_FragDepthEXT gl_FragDepth","#define texture2D texture","#define textureCube texture","#define texture2DProj textureProj","#define texture2DLodEXT textureLod","#define texture2DProjLodEXT textureProjLod","#define textureCubeLodEXT textureLod","#define texture2DGradEXT textureGrad","#define texture2DProjGradEXT textureProjGrad","#define textureCubeGradEXT textureGrad"].join(` -`)+` -`+m);const x=b+g+o,_=b+m+a,w=wp(i,i.VERTEX_SHADER,x),T=wp(i,i.FRAGMENT_SHADER,_);i.attachShader(O,w),i.attachShader(O,T),t.index0AttributeName!==void 0?i.bindAttribLocation(O,0,t.index0AttributeName):t.morphTargets===!0&&i.bindAttribLocation(O,0,"position"),i.linkProgram(O);function E(R){if(s.debug.checkShaderErrors){const k=i.getProgramInfoLog(O).trim(),I=i.getShaderInfoLog(w).trim(),$=i.getShaderInfoLog(T).trim();let H=!0,L=!0;if(i.getProgramParameter(O,i.LINK_STATUS)===!1)if(H=!1,typeof s.debug.onShaderError=="function")s.debug.onShaderError(i,O,w,T);else{const z=Ep(i,w,"vertex"),B=Ep(i,T,"fragment");console.error("THREE.WebGLProgram: Shader Error "+i.getError()+" - VALIDATE_STATUS "+i.getProgramParameter(O,i.VALIDATE_STATUS)+` - -Material Name: `+R.name+` -Material Type: `+R.type+` - -Program Info Log: `+k+` -`+z+` -`+B)}else k!==""?console.warn("THREE.WebGLProgram: Program Info Log:",k):(I===""||$==="")&&(L=!1);L&&(R.diagnostics={runnable:H,programLog:k,vertexShader:{log:I,prefix:g},fragmentShader:{log:$,prefix:m}})}i.deleteShader(w),i.deleteShader(T),P=new ml(i,O),y=Xw(i,O)}let P;this.getUniforms=function(){return P===void 0&&E(this),P};let y;this.getAttributes=function(){return y===void 0&&E(this),y};let S=t.rendererExtensionParallelShaderCompile===!1;return this.isReady=function(){return S===!1&&(S=i.getProgramParameter(O,Nw)),S},this.destroy=function(){n.releaseStatesOfProgram(this),i.deleteProgram(O),this.program=void 0},this.type=t.shaderType,this.name=t.shaderName,this.id=Qw++,this.cacheKey=e,this.usedTimes=1,this.program=O,this.vertexShader=w,this.fragmentShader=T,this}let s1=0;class r1{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e){const t=e.vertexShader,n=e.fragmentShader,i=this._getShaderStage(t),r=this._getShaderStage(n),o=this._getShaderCacheForMaterial(e);return o.has(i)===!1&&(o.add(i),i.usedTimes++),o.has(r)===!1&&(o.add(r),r.usedTimes++),this}remove(e){const t=this.materialCache.get(e);for(const n of t)n.usedTimes--,n.usedTimes===0&&this.shaderCache.delete(n.code);return this.materialCache.delete(e),this}getVertexShaderID(e){return this._getShaderStage(e.vertexShader).id}getFragmentShaderID(e){return this._getShaderStage(e.fragmentShader).id}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(e){const t=this.materialCache;let n=t.get(e);return n===void 0&&(n=new Set,t.set(e,n)),n}_getShaderStage(e){const t=this.shaderCache;let n=t.get(e);return n===void 0&&(n=new o1(e),t.set(e,n)),n}}class o1{constructor(e){this.id=s1++,this.code=e,this.usedTimes=0}}function a1(s,e,t,n,i,r,o){const a=new Wg,l=new r1,c=new Set,h=[],u=i.logarithmicDepthBuffer,f=i.vertexTextures;let d=i.precision;const p={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"toon",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"};function O(y){return c.add(y),y===0?"uv":`uv${y}`}function g(y,S,R,k,I){const $=k.fog,H=I.geometry,L=y.isMeshStandardMaterial?k.environment:null,z=(y.isMeshStandardMaterial?t:e).get(y.envMap||L),B=z&&z.mapping===Jl?z.image.height:null,ee=p[y.type];y.precision!==null&&(d=i.getMaxPrecision(y.precision),d!==y.precision&&console.warn("THREE.WebGLProgram.getParameters:",y.precision,"not supported, using",d,"instead."));const se=H.morphAttributes.position||H.morphAttributes.normal||H.morphAttributes.color,ge=se!==void 0?se.length:0;let be=0;H.morphAttributes.position!==void 0&&(be=1),H.morphAttributes.normal!==void 0&&(be=2),H.morphAttributes.color!==void 0&&(be=3);let Be,j,q,Oe;if(ee){const dt=di[ee];Be=dt.vertexShader,j=dt.fragmentShader}else Be=y.vertexShader,j=y.fragmentShader,l.update(y),q=l.getVertexShaderID(y),Oe=l.getFragmentShaderID(y);const ce=s.getRenderTarget(),Le=s.state.buffers.depth.getReversed(),lt=I.isInstancedMesh===!0,Ne=I.isBatchedMesh===!0,kt=!!y.map,Tt=!!y.matcap,Ye=!!z,C=!!y.aoMap,Nn=!!y.lightMap,Ke=!!y.bumpMap,Je=!!y.normalMap,Ee=!!y.displacementMap,bt=!!y.emissiveMap,Te=!!y.metalnessMap,A=!!y.roughnessMap,v=y.anisotropy>0,V=y.clearcoat>0,K=y.dispersion>0,ne=y.iridescence>0,Y=y.sheen>0,we=y.transmission>0,fe=v&&!!y.anisotropyMap,xe=V&&!!y.clearcoatMap,st=V&&!!y.clearcoatNormalMap,re=V&&!!y.clearcoatRoughnessMap,ye=ne&&!!y.iridescenceMap,ke=ne&&!!y.iridescenceThicknessMap,Fe=Y&&!!y.sheenColorMap,Se=Y&&!!y.sheenRoughnessMap,et=!!y.specularMap,Xe=!!y.specularColorMap,St=!!y.specularIntensityMap,N=we&&!!y.transmissionMap,he=we&&!!y.thicknessMap,W=!!y.gradientMap,J=!!y.alphaMap,pe=y.alphaTest>0,de=!!y.alphaHash,ze=!!y.extensions;let Pt=ms;y.toneMapped&&(ce===null||ce.isXRRenderTarget===!0)&&(Pt=s.toneMapping);const nn={shaderID:ee,shaderType:y.type,shaderName:y.name,vertexShader:Be,fragmentShader:j,defines:y.defines,customVertexShaderID:q,customFragmentShaderID:Oe,isRawShaderMaterial:y.isRawShaderMaterial===!0,glslVersion:y.glslVersion,precision:d,batching:Ne,batchingColor:Ne&&I._colorsTexture!==null,instancing:lt,instancingColor:lt&&I.instanceColor!==null,instancingMorph:lt&&I.morphTexture!==null,supportsVertexTextures:f,outputColorSpace:ce===null?s.outputColorSpace:ce.isXRRenderTarget===!0?ce.texture.colorSpace:xn,alphaToCoverage:!!y.alphaToCoverage,map:kt,matcap:Tt,envMap:Ye,envMapMode:Ye&&z.mapping,envMapCubeUVHeight:B,aoMap:C,lightMap:Nn,bumpMap:Ke,normalMap:Je,displacementMap:f&&Ee,emissiveMap:bt,normalMapObjectSpace:Je&&y.normalMapType===ly,normalMapTangentSpace:Je&&y.normalMapType===yf,metalnessMap:Te,roughnessMap:A,anisotropy:v,anisotropyMap:fe,clearcoat:V,clearcoatMap:xe,clearcoatNormalMap:st,clearcoatRoughnessMap:re,dispersion:K,iridescence:ne,iridescenceMap:ye,iridescenceThicknessMap:ke,sheen:Y,sheenColorMap:Fe,sheenRoughnessMap:Se,specularMap:et,specularColorMap:Xe,specularIntensityMap:St,transmission:we,transmissionMap:N,thicknessMap:he,gradientMap:W,opaque:y.transparent===!1&&y.blending===Rr&&y.alphaToCoverage===!1,alphaMap:J,alphaTest:pe,alphaHash:de,combine:y.combine,mapUv:kt&&O(y.map.channel),aoMapUv:C&&O(y.aoMap.channel),lightMapUv:Nn&&O(y.lightMap.channel),bumpMapUv:Ke&&O(y.bumpMap.channel),normalMapUv:Je&&O(y.normalMap.channel),displacementMapUv:Ee&&O(y.displacementMap.channel),emissiveMapUv:bt&&O(y.emissiveMap.channel),metalnessMapUv:Te&&O(y.metalnessMap.channel),roughnessMapUv:A&&O(y.roughnessMap.channel),anisotropyMapUv:fe&&O(y.anisotropyMap.channel),clearcoatMapUv:xe&&O(y.clearcoatMap.channel),clearcoatNormalMapUv:st&&O(y.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:re&&O(y.clearcoatRoughnessMap.channel),iridescenceMapUv:ye&&O(y.iridescenceMap.channel),iridescenceThicknessMapUv:ke&&O(y.iridescenceThicknessMap.channel),sheenColorMapUv:Fe&&O(y.sheenColorMap.channel),sheenRoughnessMapUv:Se&&O(y.sheenRoughnessMap.channel),specularMapUv:et&&O(y.specularMap.channel),specularColorMapUv:Xe&&O(y.specularColorMap.channel),specularIntensityMapUv:St&&O(y.specularIntensityMap.channel),transmissionMapUv:N&&O(y.transmissionMap.channel),thicknessMapUv:he&&O(y.thicknessMap.channel),alphaMapUv:J&&O(y.alphaMap.channel),vertexTangents:!!H.attributes.tangent&&(Je||v),vertexColors:y.vertexColors,vertexAlphas:y.vertexColors===!0&&!!H.attributes.color&&H.attributes.color.itemSize===4,pointsUvs:I.isPoints===!0&&!!H.attributes.uv&&(kt||J),fog:!!$,useFog:y.fog===!0,fogExp2:!!$&&$.isFogExp2,flatShading:y.flatShading===!0,sizeAttenuation:y.sizeAttenuation===!0,logarithmicDepthBuffer:u,reverseDepthBuffer:Le,skinning:I.isSkinnedMesh===!0,morphTargets:H.morphAttributes.position!==void 0,morphNormals:H.morphAttributes.normal!==void 0,morphColors:H.morphAttributes.color!==void 0,morphTargetsCount:ge,morphTextureStride:be,numDirLights:S.directional.length,numPointLights:S.point.length,numSpotLights:S.spot.length,numSpotLightMaps:S.spotLightMap.length,numRectAreaLights:S.rectArea.length,numHemiLights:S.hemi.length,numDirLightShadows:S.directionalShadowMap.length,numPointLightShadows:S.pointShadowMap.length,numSpotLightShadows:S.spotShadowMap.length,numSpotLightShadowsWithMaps:S.numSpotLightShadowsWithMaps,numLightProbes:S.numLightProbes,numClippingPlanes:o.numPlanes,numClipIntersection:o.numIntersection,dithering:y.dithering,shadowMapEnabled:s.shadowMap.enabled&&R.length>0,shadowMapType:s.shadowMap.type,toneMapping:Pt,decodeVideoTexture:kt&&y.map.isVideoTexture===!0&&nt.getTransfer(y.map.colorSpace)===Ot,decodeVideoTextureEmissive:bt&&y.emissiveMap.isVideoTexture===!0&&nt.getTransfer(y.emissiveMap.colorSpace)===Ot,premultipliedAlpha:y.premultipliedAlpha,doubleSided:y.side===pi,flipSided:y.side===Mn,useDepthPacking:y.depthPacking>=0,depthPacking:y.depthPacking||0,index0AttributeName:y.index0AttributeName,extensionClipCullDistance:ze&&y.extensions.clipCullDistance===!0&&n.has("WEBGL_clip_cull_distance"),extensionMultiDraw:(ze&&y.extensions.multiDraw===!0||Ne)&&n.has("WEBGL_multi_draw"),rendererExtensionParallelShaderCompile:n.has("KHR_parallel_shader_compile"),customProgramCacheKey:y.customProgramCacheKey()};return nn.vertexUv1s=c.has(1),nn.vertexUv2s=c.has(2),nn.vertexUv3s=c.has(3),c.clear(),nn}function m(y){const S=[];if(y.shaderID?S.push(y.shaderID):(S.push(y.customVertexShaderID),S.push(y.customFragmentShaderID)),y.defines!==void 0)for(const R in y.defines)S.push(R),S.push(y.defines[R]);return y.isRawShaderMaterial===!1&&(b(S,y),x(S,y),S.push(s.outputColorSpace)),S.push(y.customProgramCacheKey),S.join()}function b(y,S){y.push(S.precision),y.push(S.outputColorSpace),y.push(S.envMapMode),y.push(S.envMapCubeUVHeight),y.push(S.mapUv),y.push(S.alphaMapUv),y.push(S.lightMapUv),y.push(S.aoMapUv),y.push(S.bumpMapUv),y.push(S.normalMapUv),y.push(S.displacementMapUv),y.push(S.emissiveMapUv),y.push(S.metalnessMapUv),y.push(S.roughnessMapUv),y.push(S.anisotropyMapUv),y.push(S.clearcoatMapUv),y.push(S.clearcoatNormalMapUv),y.push(S.clearcoatRoughnessMapUv),y.push(S.iridescenceMapUv),y.push(S.iridescenceThicknessMapUv),y.push(S.sheenColorMapUv),y.push(S.sheenRoughnessMapUv),y.push(S.specularMapUv),y.push(S.specularColorMapUv),y.push(S.specularIntensityMapUv),y.push(S.transmissionMapUv),y.push(S.thicknessMapUv),y.push(S.combine),y.push(S.fogExp2),y.push(S.sizeAttenuation),y.push(S.morphTargetsCount),y.push(S.morphAttributeCount),y.push(S.numDirLights),y.push(S.numPointLights),y.push(S.numSpotLights),y.push(S.numSpotLightMaps),y.push(S.numHemiLights),y.push(S.numRectAreaLights),y.push(S.numDirLightShadows),y.push(S.numPointLightShadows),y.push(S.numSpotLightShadows),y.push(S.numSpotLightShadowsWithMaps),y.push(S.numLightProbes),y.push(S.shadowMapType),y.push(S.toneMapping),y.push(S.numClippingPlanes),y.push(S.numClipIntersection),y.push(S.depthPacking)}function x(y,S){a.disableAll(),S.supportsVertexTextures&&a.enable(0),S.instancing&&a.enable(1),S.instancingColor&&a.enable(2),S.instancingMorph&&a.enable(3),S.matcap&&a.enable(4),S.envMap&&a.enable(5),S.normalMapObjectSpace&&a.enable(6),S.normalMapTangentSpace&&a.enable(7),S.clearcoat&&a.enable(8),S.iridescence&&a.enable(9),S.alphaTest&&a.enable(10),S.vertexColors&&a.enable(11),S.vertexAlphas&&a.enable(12),S.vertexUv1s&&a.enable(13),S.vertexUv2s&&a.enable(14),S.vertexUv3s&&a.enable(15),S.vertexTangents&&a.enable(16),S.anisotropy&&a.enable(17),S.alphaHash&&a.enable(18),S.batching&&a.enable(19),S.dispersion&&a.enable(20),S.batchingColor&&a.enable(21),y.push(a.mask),a.disableAll(),S.fog&&a.enable(0),S.useFog&&a.enable(1),S.flatShading&&a.enable(2),S.logarithmicDepthBuffer&&a.enable(3),S.reverseDepthBuffer&&a.enable(4),S.skinning&&a.enable(5),S.morphTargets&&a.enable(6),S.morphNormals&&a.enable(7),S.morphColors&&a.enable(8),S.premultipliedAlpha&&a.enable(9),S.shadowMapEnabled&&a.enable(10),S.doubleSided&&a.enable(11),S.flipSided&&a.enable(12),S.useDepthPacking&&a.enable(13),S.dithering&&a.enable(14),S.transmission&&a.enable(15),S.sheen&&a.enable(16),S.opaque&&a.enable(17),S.pointsUvs&&a.enable(18),S.decodeVideoTexture&&a.enable(19),S.decodeVideoTextureEmissive&&a.enable(20),S.alphaToCoverage&&a.enable(21),y.push(a.mask)}function _(y){const S=p[y.type];let R;if(S){const k=di[S];R=eS.clone(k.uniforms)}else R=y.uniforms;return R}function w(y,S){let R;for(let k=0,I=h.length;k0?n.push(m):d.transparent===!0?i.push(m):t.push(m)}function l(u,f,d,p,O,g){const m=o(u,f,d,p,O,g);d.transmission>0?n.unshift(m):d.transparent===!0?i.unshift(m):t.unshift(m)}function c(u,f){t.length>1&&t.sort(u||c1),n.length>1&&n.sort(f||kp),i.length>1&&i.sort(f||kp)}function h(){for(let u=e,f=s.length;u=r.length?(o=new Lp,r.push(o)):o=r[i],o}function t(){s=new WeakMap}return{get:e,dispose:t}}function u1(){const s={};return{get:function(e){if(s[e.id]!==void 0)return s[e.id];let t;switch(e.type){case"DirectionalLight":t={direction:new U,color:new De};break;case"SpotLight":t={position:new U,direction:new U,color:new De,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":t={position:new U,color:new De,distance:0,decay:0};break;case"HemisphereLight":t={direction:new U,skyColor:new De,groundColor:new De};break;case"RectAreaLight":t={color:new De,position:new U,halfWidth:new U,halfHeight:new U};break}return s[e.id]=t,t}}}function f1(){const s={};return{get:function(e){if(s[e.id]!==void 0)return s[e.id];let t;switch(e.type){case"DirectionalLight":t={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Ue};break;case"SpotLight":t={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Ue};break;case"PointLight":t={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Ue,shadowCameraNear:1,shadowCameraFar:1e3};break}return s[e.id]=t,t}}}let d1=0;function p1(s,e){return(e.castShadow?2:0)-(s.castShadow?2:0)+(e.map?1:0)-(s.map?1:0)}function m1(s){const e=new u1,t=f1(),n={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1,numLightProbes:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0,numLightProbes:0};for(let c=0;c<9;c++)n.probe.push(new U);const i=new U,r=new Ge,o=new Ge;function a(c){let h=0,u=0,f=0;for(let y=0;y<9;y++)n.probe[y].set(0,0,0);let d=0,p=0,O=0,g=0,m=0,b=0,x=0,_=0,w=0,T=0,E=0;c.sort(p1);for(let y=0,S=c.length;y0&&(s.has("OES_texture_float_linear")===!0?(n.rectAreaLTC1=le.LTC_FLOAT_1,n.rectAreaLTC2=le.LTC_FLOAT_2):(n.rectAreaLTC1=le.LTC_HALF_1,n.rectAreaLTC2=le.LTC_HALF_2)),n.ambient[0]=h,n.ambient[1]=u,n.ambient[2]=f;const P=n.hash;(P.directionalLength!==d||P.pointLength!==p||P.spotLength!==O||P.rectAreaLength!==g||P.hemiLength!==m||P.numDirectionalShadows!==b||P.numPointShadows!==x||P.numSpotShadows!==_||P.numSpotMaps!==w||P.numLightProbes!==E)&&(n.directional.length=d,n.spot.length=O,n.rectArea.length=g,n.point.length=p,n.hemi.length=m,n.directionalShadow.length=b,n.directionalShadowMap.length=b,n.pointShadow.length=x,n.pointShadowMap.length=x,n.spotShadow.length=_,n.spotShadowMap.length=_,n.directionalShadowMatrix.length=b,n.pointShadowMatrix.length=x,n.spotLightMatrix.length=_+w-T,n.spotLightMap.length=w,n.numSpotLightShadowsWithMaps=T,n.numLightProbes=E,P.directionalLength=d,P.pointLength=p,P.spotLength=O,P.rectAreaLength=g,P.hemiLength=m,P.numDirectionalShadows=b,P.numPointShadows=x,P.numSpotShadows=_,P.numSpotMaps=w,P.numLightProbes=E,n.version=d1++)}function l(c,h){let u=0,f=0,d=0,p=0,O=0;const g=h.matrixWorldInverse;for(let m=0,b=c.length;m=o.length?(a=new Dp(s),o.push(a)):a=o[r],a}function n(){e=new WeakMap}return{get:t,dispose:n}}const O1=`void main() { - gl_Position = vec4( position, 1.0 ); -}`,_1=`uniform sampler2D shadow_pass; -uniform vec2 resolution; -uniform float radius; -#include -void main() { - const float samples = float( VSM_SAMPLES ); - float mean = 0.0; - float squared_mean = 0.0; - float uvStride = samples <= 1.0 ? 0.0 : 2.0 / ( samples - 1.0 ); - float uvStart = samples <= 1.0 ? 0.0 : - 1.0; - for ( float i = 0.0; i < samples; i ++ ) { - float uvOffset = uvStart + i * uvStride; - #ifdef HORIZONTAL_PASS - vec2 distribution = unpackRGBATo2Half( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( uvOffset, 0.0 ) * radius ) / resolution ) ); - mean += distribution.x; - squared_mean += distribution.y * distribution.y + distribution.x * distribution.x; - #else - float depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, uvOffset ) * radius ) / resolution ) ); - mean += depth; - squared_mean += depth * depth; - #endif - } - mean = mean / samples; - squared_mean = squared_mean / samples; - float std_dev = sqrt( squared_mean - mean * mean ); - gl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) ); -}`;function x1(s,e,t){let n=new Mf;const i=new Ue,r=new Ue,o=new ct,a=new OS({depthPacking:ay}),l=new _S,c={},h=t.maxTextureSize,u={[Gi]:Mn,[Mn]:Gi,[pi]:pi},f=new gs({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new Ue},radius:{value:4}},vertexShader:O1,fragmentShader:_1}),d=f.clone();d.defines.HORIZONTAL_PASS=1;const p=new In;p.setAttribute("position",new On(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const O=new jt(p,f),g=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=Cg;let m=this.type;this.render=function(T,E,P){if(g.enabled===!1||g.autoUpdate===!1&&g.needsUpdate===!1||T.length===0)return;const y=s.getRenderTarget(),S=s.getActiveCubeFace(),R=s.getActiveMipmapLevel(),k=s.state;k.setBlending(ps),k.buffers.color.setClear(1,1,1,1),k.buffers.depth.setTest(!0),k.setScissorTest(!1);const I=m!==Li&&this.type===Li,$=m===Li&&this.type!==Li;for(let H=0,L=T.length;Hh||i.y>h)&&(i.x>h&&(r.x=Math.floor(h/ee.x),i.x=r.x*ee.x,B.mapSize.x=r.x),i.y>h&&(r.y=Math.floor(h/ee.y),i.y=r.y*ee.y,B.mapSize.y=r.y)),B.map===null||I===!0||$===!0){const ge=this.type!==Li?{minFilter:gn,magFilter:gn}:{};B.map!==null&&B.map.dispose(),B.map=new Ws(i.x,i.y,ge),B.map.texture.name=z.name+".shadowMap",B.camera.updateProjectionMatrix()}s.setRenderTarget(B.map),s.clear();const se=B.getViewportCount();for(let ge=0;ge0||E.map&&E.alphaTest>0){const k=S.uuid,I=E.uuid;let $=c[k];$===void 0&&($={},c[k]=$);let H=$[I];H===void 0&&(H=S.clone(),$[I]=H,E.addEventListener("dispose",w)),S=H}if(S.visible=E.visible,S.wireframe=E.wireframe,y===Li?S.side=E.shadowSide!==null?E.shadowSide:E.side:S.side=E.shadowSide!==null?E.shadowSide:u[E.side],S.alphaMap=E.alphaMap,S.alphaTest=E.alphaTest,S.map=E.map,S.clipShadows=E.clipShadows,S.clippingPlanes=E.clippingPlanes,S.clipIntersection=E.clipIntersection,S.displacementMap=E.displacementMap,S.displacementScale=E.displacementScale,S.displacementBias=E.displacementBias,S.wireframeLinewidth=E.wireframeLinewidth,S.linewidth=E.linewidth,P.isPointLight===!0&&S.isMeshDistanceMaterial===!0){const k=s.properties.get(S);k.light=P}return S}function _(T,E,P,y,S){if(T.visible===!1)return;if(T.layers.test(E.layers)&&(T.isMesh||T.isLine||T.isPoints)&&(T.castShadow||T.receiveShadow&&S===Li)&&(!T.frustumCulled||n.intersectsObject(T))){T.modelViewMatrix.multiplyMatrices(P.matrixWorldInverse,T.matrixWorld);const I=e.update(T),$=T.material;if(Array.isArray($)){const H=I.groups;for(let L=0,z=H.length;L=1):B.indexOf("OpenGL ES")!==-1&&(z=parseFloat(/^OpenGL ES (\d)/.exec(B)[1]),L=z>=2);let ee=null,se={};const ge=s.getParameter(s.SCISSOR_BOX),be=s.getParameter(s.VIEWPORT),Be=new ct().fromArray(ge),j=new ct().fromArray(be);function q(N,he,W,J){const pe=new Uint8Array(4),de=s.createTexture();s.bindTexture(N,de),s.texParameteri(N,s.TEXTURE_MIN_FILTER,s.NEAREST),s.texParameteri(N,s.TEXTURE_MAG_FILTER,s.NEAREST);for(let ze=0;ze"u"?!1:/OculusBrowser/g.test(navigator.userAgent),c=new Ue,h=new WeakMap;let u;const f=new WeakMap;let d=!1;try{d=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")!==null}catch{}function p(A,v){return d?new OffscreenCanvas(A,v):Ho("canvas")}function O(A,v,V){let K=1;const ne=Te(A);if((ne.width>V||ne.height>V)&&(K=V/Math.max(ne.width,ne.height)),K<1)if(typeof HTMLImageElement<"u"&&A instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&A instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&A instanceof ImageBitmap||typeof VideoFrame<"u"&&A instanceof VideoFrame){const Y=Math.floor(K*ne.width),we=Math.floor(K*ne.height);u===void 0&&(u=p(Y,we));const fe=v?p(Y,we):u;return fe.width=Y,fe.height=we,fe.getContext("2d").drawImage(A,0,0,Y,we),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+ne.width+"x"+ne.height+") to ("+Y+"x"+we+")."),fe}else return"data"in A&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+ne.width+"x"+ne.height+")."),A;return A}function g(A){return A.generateMipmaps}function m(A){s.generateMipmap(A)}function b(A){return A.isWebGLCubeRenderTarget?s.TEXTURE_CUBE_MAP:A.isWebGL3DRenderTarget?s.TEXTURE_3D:A.isWebGLArrayRenderTarget||A.isCompressedArrayTexture?s.TEXTURE_2D_ARRAY:s.TEXTURE_2D}function x(A,v,V,K,ne=!1){if(A!==null){if(s[A]!==void 0)return s[A];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+A+"'")}let Y=v;if(v===s.RED&&(V===s.FLOAT&&(Y=s.R32F),V===s.HALF_FLOAT&&(Y=s.R16F),V===s.UNSIGNED_BYTE&&(Y=s.R8)),v===s.RED_INTEGER&&(V===s.UNSIGNED_BYTE&&(Y=s.R8UI),V===s.UNSIGNED_SHORT&&(Y=s.R16UI),V===s.UNSIGNED_INT&&(Y=s.R32UI),V===s.BYTE&&(Y=s.R8I),V===s.SHORT&&(Y=s.R16I),V===s.INT&&(Y=s.R32I)),v===s.RG&&(V===s.FLOAT&&(Y=s.RG32F),V===s.HALF_FLOAT&&(Y=s.RG16F),V===s.UNSIGNED_BYTE&&(Y=s.RG8)),v===s.RG_INTEGER&&(V===s.UNSIGNED_BYTE&&(Y=s.RG8UI),V===s.UNSIGNED_SHORT&&(Y=s.RG16UI),V===s.UNSIGNED_INT&&(Y=s.RG32UI),V===s.BYTE&&(Y=s.RG8I),V===s.SHORT&&(Y=s.RG16I),V===s.INT&&(Y=s.RG32I)),v===s.RGB_INTEGER&&(V===s.UNSIGNED_BYTE&&(Y=s.RGB8UI),V===s.UNSIGNED_SHORT&&(Y=s.RGB16UI),V===s.UNSIGNED_INT&&(Y=s.RGB32UI),V===s.BYTE&&(Y=s.RGB8I),V===s.SHORT&&(Y=s.RGB16I),V===s.INT&&(Y=s.RGB32I)),v===s.RGBA_INTEGER&&(V===s.UNSIGNED_BYTE&&(Y=s.RGBA8UI),V===s.UNSIGNED_SHORT&&(Y=s.RGBA16UI),V===s.UNSIGNED_INT&&(Y=s.RGBA32UI),V===s.BYTE&&(Y=s.RGBA8I),V===s.SHORT&&(Y=s.RGBA16I),V===s.INT&&(Y=s.RGBA32I)),v===s.RGB&&V===s.UNSIGNED_INT_5_9_9_9_REV&&(Y=s.RGB9_E5),v===s.RGBA){const we=ne?Pl:nt.getTransfer(K);V===s.FLOAT&&(Y=s.RGBA32F),V===s.HALF_FLOAT&&(Y=s.RGBA16F),V===s.UNSIGNED_BYTE&&(Y=we===Ot?s.SRGB8_ALPHA8:s.RGBA8),V===s.UNSIGNED_SHORT_4_4_4_4&&(Y=s.RGBA4),V===s.UNSIGNED_SHORT_5_5_5_1&&(Y=s.RGB5_A1)}return(Y===s.R16F||Y===s.R32F||Y===s.RG16F||Y===s.RG32F||Y===s.RGBA16F||Y===s.RGBA32F)&&e.get("EXT_color_buffer_float"),Y}function _(A,v){let V;return A?v===null||v===Hs||v===Zr?V=s.DEPTH24_STENCIL8:v===ni?V=s.DEPTH32F_STENCIL8:v===Zo&&(V=s.DEPTH24_STENCIL8,console.warn("DepthTexture: 16 bit depth attachment is not supported with stencil. Using 24-bit attachment.")):v===null||v===Hs||v===Zr?V=s.DEPTH_COMPONENT24:v===ni?V=s.DEPTH_COMPONENT32F:v===Zo&&(V=s.DEPTH_COMPONENT16),V}function w(A,v){return g(A)===!0||A.isFramebufferTexture&&A.minFilter!==gn&&A.minFilter!==Ln?Math.log2(Math.max(v.width,v.height))+1:A.mipmaps!==void 0&&A.mipmaps.length>0?A.mipmaps.length:A.isCompressedTexture&&Array.isArray(A.image)?v.mipmaps.length:1}function T(A){const v=A.target;v.removeEventListener("dispose",T),P(v),v.isVideoTexture&&h.delete(v)}function E(A){const v=A.target;v.removeEventListener("dispose",E),S(v)}function P(A){const v=n.get(A);if(v.__webglInit===void 0)return;const V=A.source,K=f.get(V);if(K){const ne=K[v.__cacheKey];ne.usedTimes--,ne.usedTimes===0&&y(A),Object.keys(K).length===0&&f.delete(V)}n.remove(A)}function y(A){const v=n.get(A);s.deleteTexture(v.__webglTexture);const V=A.source,K=f.get(V);delete K[v.__cacheKey],o.memory.textures--}function S(A){const v=n.get(A);if(A.depthTexture&&(A.depthTexture.dispose(),n.remove(A.depthTexture)),A.isWebGLCubeRenderTarget)for(let K=0;K<6;K++){if(Array.isArray(v.__webglFramebuffer[K]))for(let ne=0;ne=i.maxTextures&&console.warn("THREE.WebGLTextures: Trying to use "+A+" texture units while this GPU supports only "+i.maxTextures),R+=1,A}function $(A){const v=[];return v.push(A.wrapS),v.push(A.wrapT),v.push(A.wrapR||0),v.push(A.magFilter),v.push(A.minFilter),v.push(A.anisotropy),v.push(A.internalFormat),v.push(A.format),v.push(A.type),v.push(A.generateMipmaps),v.push(A.premultiplyAlpha),v.push(A.flipY),v.push(A.unpackAlignment),v.push(A.colorSpace),v.join()}function H(A,v){const V=n.get(A);if(A.isVideoTexture&&Ee(A),A.isRenderTargetTexture===!1&&A.version>0&&V.__version!==A.version){const K=A.image;if(K===null)console.warn("THREE.WebGLRenderer: Texture marked for update but no image data found.");else if(K.complete===!1)console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete");else{j(V,A,v);return}}t.bindTexture(s.TEXTURE_2D,V.__webglTexture,s.TEXTURE0+v)}function L(A,v){const V=n.get(A);if(A.version>0&&V.__version!==A.version){j(V,A,v);return}t.bindTexture(s.TEXTURE_2D_ARRAY,V.__webglTexture,s.TEXTURE0+v)}function z(A,v){const V=n.get(A);if(A.version>0&&V.__version!==A.version){j(V,A,v);return}t.bindTexture(s.TEXTURE_3D,V.__webglTexture,s.TEXTURE0+v)}function B(A,v){const V=n.get(A);if(A.version>0&&V.__version!==A.version){q(V,A,v);return}t.bindTexture(s.TEXTURE_CUBE_MAP,V.__webglTexture,s.TEXTURE0+v)}const ee={[zr]:s.REPEAT,[hs]:s.CLAMP_TO_EDGE,[Al]:s.MIRRORED_REPEAT},se={[gn]:s.NEAREST,[Lg]:s.NEAREST_MIPMAP_NEAREST,[wo]:s.NEAREST_MIPMAP_LINEAR,[Ln]:s.LINEAR,[ll]:s.LINEAR_MIPMAP_NEAREST,[Bi]:s.LINEAR_MIPMAP_LINEAR},ge={[cy]:s.NEVER,[my]:s.ALWAYS,[hy]:s.LESS,[Zg]:s.LEQUAL,[uy]:s.EQUAL,[py]:s.GEQUAL,[fy]:s.GREATER,[dy]:s.NOTEQUAL};function be(A,v){if(v.type===ni&&e.has("OES_texture_float_linear")===!1&&(v.magFilter===Ln||v.magFilter===ll||v.magFilter===wo||v.magFilter===Bi||v.minFilter===Ln||v.minFilter===ll||v.minFilter===wo||v.minFilter===Bi)&&console.warn("THREE.WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device."),s.texParameteri(A,s.TEXTURE_WRAP_S,ee[v.wrapS]),s.texParameteri(A,s.TEXTURE_WRAP_T,ee[v.wrapT]),(A===s.TEXTURE_3D||A===s.TEXTURE_2D_ARRAY)&&s.texParameteri(A,s.TEXTURE_WRAP_R,ee[v.wrapR]),s.texParameteri(A,s.TEXTURE_MAG_FILTER,se[v.magFilter]),s.texParameteri(A,s.TEXTURE_MIN_FILTER,se[v.minFilter]),v.compareFunction&&(s.texParameteri(A,s.TEXTURE_COMPARE_MODE,s.COMPARE_REF_TO_TEXTURE),s.texParameteri(A,s.TEXTURE_COMPARE_FUNC,ge[v.compareFunction])),e.has("EXT_texture_filter_anisotropic")===!0){if(v.magFilter===gn||v.minFilter!==wo&&v.minFilter!==Bi||v.type===ni&&e.has("OES_texture_float_linear")===!1)return;if(v.anisotropy>1||n.get(v).__currentAnisotropy){const V=e.get("EXT_texture_filter_anisotropic");s.texParameterf(A,V.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(v.anisotropy,i.getMaxAnisotropy())),n.get(v).__currentAnisotropy=v.anisotropy}}}function Be(A,v){let V=!1;A.__webglInit===void 0&&(A.__webglInit=!0,v.addEventListener("dispose",T));const K=v.source;let ne=f.get(K);ne===void 0&&(ne={},f.set(K,ne));const Y=$(v);if(Y!==A.__cacheKey){ne[Y]===void 0&&(ne[Y]={texture:s.createTexture(),usedTimes:0},o.memory.textures++,V=!0),ne[Y].usedTimes++;const we=ne[A.__cacheKey];we!==void 0&&(ne[A.__cacheKey].usedTimes--,we.usedTimes===0&&y(v)),A.__cacheKey=Y,A.__webglTexture=ne[Y].texture}return V}function j(A,v,V){let K=s.TEXTURE_2D;(v.isDataArrayTexture||v.isCompressedArrayTexture)&&(K=s.TEXTURE_2D_ARRAY),v.isData3DTexture&&(K=s.TEXTURE_3D);const ne=Be(A,v),Y=v.source;t.bindTexture(K,A.__webglTexture,s.TEXTURE0+V);const we=n.get(Y);if(Y.version!==we.__version||ne===!0){t.activeTexture(s.TEXTURE0+V);const fe=nt.getPrimaries(nt.workingColorSpace),xe=v.colorSpace===ls?null:nt.getPrimaries(v.colorSpace),st=v.colorSpace===ls||fe===xe?s.NONE:s.BROWSER_DEFAULT_WEBGL;s.pixelStorei(s.UNPACK_FLIP_Y_WEBGL,v.flipY),s.pixelStorei(s.UNPACK_PREMULTIPLY_ALPHA_WEBGL,v.premultiplyAlpha),s.pixelStorei(s.UNPACK_ALIGNMENT,v.unpackAlignment),s.pixelStorei(s.UNPACK_COLORSPACE_CONVERSION_WEBGL,st);let re=O(v.image,!1,i.maxTextureSize);re=bt(v,re);const ye=r.convert(v.format,v.colorSpace),ke=r.convert(v.type);let Fe=x(v.internalFormat,ye,ke,v.colorSpace,v.isVideoTexture);be(K,v);let Se;const et=v.mipmaps,Xe=v.isVideoTexture!==!0,St=we.__version===void 0||ne===!0,N=Y.dataReady,he=w(v,re);if(v.isDepthTexture)Fe=_(v.format===Gr,v.type),St&&(Xe?t.texStorage2D(s.TEXTURE_2D,1,Fe,re.width,re.height):t.texImage2D(s.TEXTURE_2D,0,Fe,re.width,re.height,0,ye,ke,null));else if(v.isDataTexture)if(et.length>0){Xe&&St&&t.texStorage2D(s.TEXTURE_2D,he,Fe,et[0].width,et[0].height);for(let W=0,J=et.length;W0){const pe=hp(Se.width,Se.height,v.format,v.type);for(const de of v.layerUpdates){const ze=Se.data.subarray(de*pe/Se.data.BYTES_PER_ELEMENT,(de+1)*pe/Se.data.BYTES_PER_ELEMENT);t.compressedTexSubImage3D(s.TEXTURE_2D_ARRAY,W,0,0,de,Se.width,Se.height,1,ye,ze)}v.clearLayerUpdates()}else t.compressedTexSubImage3D(s.TEXTURE_2D_ARRAY,W,0,0,0,Se.width,Se.height,re.depth,ye,Se.data)}else t.compressedTexImage3D(s.TEXTURE_2D_ARRAY,W,Fe,Se.width,Se.height,re.depth,0,Se.data,0,0);else console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()");else Xe?N&&t.texSubImage3D(s.TEXTURE_2D_ARRAY,W,0,0,0,Se.width,Se.height,re.depth,ye,ke,Se.data):t.texImage3D(s.TEXTURE_2D_ARRAY,W,Fe,Se.width,Se.height,re.depth,0,ye,ke,Se.data)}else{Xe&&St&&t.texStorage2D(s.TEXTURE_2D,he,Fe,et[0].width,et[0].height);for(let W=0,J=et.length;W0){const W=hp(re.width,re.height,v.format,v.type);for(const J of v.layerUpdates){const pe=re.data.subarray(J*W/re.data.BYTES_PER_ELEMENT,(J+1)*W/re.data.BYTES_PER_ELEMENT);t.texSubImage3D(s.TEXTURE_2D_ARRAY,0,0,0,J,re.width,re.height,1,ye,ke,pe)}v.clearLayerUpdates()}else t.texSubImage3D(s.TEXTURE_2D_ARRAY,0,0,0,0,re.width,re.height,re.depth,ye,ke,re.data)}else t.texImage3D(s.TEXTURE_2D_ARRAY,0,Fe,re.width,re.height,re.depth,0,ye,ke,re.data);else if(v.isData3DTexture)Xe?(St&&t.texStorage3D(s.TEXTURE_3D,he,Fe,re.width,re.height,re.depth),N&&t.texSubImage3D(s.TEXTURE_3D,0,0,0,0,re.width,re.height,re.depth,ye,ke,re.data)):t.texImage3D(s.TEXTURE_3D,0,Fe,re.width,re.height,re.depth,0,ye,ke,re.data);else if(v.isFramebufferTexture){if(St)if(Xe)t.texStorage2D(s.TEXTURE_2D,he,Fe,re.width,re.height);else{let W=re.width,J=re.height;for(let pe=0;pe>=1,J>>=1}}else if(et.length>0){if(Xe&&St){const W=Te(et[0]);t.texStorage2D(s.TEXTURE_2D,he,Fe,W.width,W.height)}for(let W=0,J=et.length;W0&&he++;const J=Te(ye[0]);t.texStorage2D(s.TEXTURE_CUBE_MAP,he,et,J.width,J.height)}for(let J=0;J<6;J++)if(re){Xe?N&&t.texSubImage2D(s.TEXTURE_CUBE_MAP_POSITIVE_X+J,0,0,0,ye[J].width,ye[J].height,Fe,Se,ye[J].data):t.texImage2D(s.TEXTURE_CUBE_MAP_POSITIVE_X+J,0,et,ye[J].width,ye[J].height,0,Fe,Se,ye[J].data);for(let pe=0;pe>Y),ke=Math.max(1,v.height>>Y);ne===s.TEXTURE_3D||ne===s.TEXTURE_2D_ARRAY?t.texImage3D(ne,Y,xe,ye,ke,v.depth,0,we,fe,null):t.texImage2D(ne,Y,xe,ye,ke,0,we,fe,null)}t.bindFramebuffer(s.FRAMEBUFFER,A),Je(v)?a.framebufferTexture2DMultisampleEXT(s.FRAMEBUFFER,K,ne,re.__webglTexture,0,Ke(v)):(ne===s.TEXTURE_2D||ne>=s.TEXTURE_CUBE_MAP_POSITIVE_X&&ne<=s.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&s.framebufferTexture2D(s.FRAMEBUFFER,K,ne,re.__webglTexture,Y),t.bindFramebuffer(s.FRAMEBUFFER,null)}function ce(A,v,V){if(s.bindRenderbuffer(s.RENDERBUFFER,A),v.depthBuffer){const K=v.depthTexture,ne=K&&K.isDepthTexture?K.type:null,Y=_(v.stencilBuffer,ne),we=v.stencilBuffer?s.DEPTH_STENCIL_ATTACHMENT:s.DEPTH_ATTACHMENT,fe=Ke(v);Je(v)?a.renderbufferStorageMultisampleEXT(s.RENDERBUFFER,fe,Y,v.width,v.height):V?s.renderbufferStorageMultisample(s.RENDERBUFFER,fe,Y,v.width,v.height):s.renderbufferStorage(s.RENDERBUFFER,Y,v.width,v.height),s.framebufferRenderbuffer(s.FRAMEBUFFER,we,s.RENDERBUFFER,A)}else{const K=v.textures;for(let ne=0;ne{delete v.__boundDepthTexture,delete v.__depthDisposeCallback,K.removeEventListener("dispose",ne)};K.addEventListener("dispose",ne),v.__depthDisposeCallback=ne}v.__boundDepthTexture=K}if(A.depthTexture&&!v.__autoAllocateDepthBuffer){if(V)throw new Error("target.depthTexture not supported in Cube render targets");Le(v.__webglFramebuffer,A)}else if(V){v.__webglDepthbuffer=[];for(let K=0;K<6;K++)if(t.bindFramebuffer(s.FRAMEBUFFER,v.__webglFramebuffer[K]),v.__webglDepthbuffer[K]===void 0)v.__webglDepthbuffer[K]=s.createRenderbuffer(),ce(v.__webglDepthbuffer[K],A,!1);else{const ne=A.stencilBuffer?s.DEPTH_STENCIL_ATTACHMENT:s.DEPTH_ATTACHMENT,Y=v.__webglDepthbuffer[K];s.bindRenderbuffer(s.RENDERBUFFER,Y),s.framebufferRenderbuffer(s.FRAMEBUFFER,ne,s.RENDERBUFFER,Y)}}else if(t.bindFramebuffer(s.FRAMEBUFFER,v.__webglFramebuffer),v.__webglDepthbuffer===void 0)v.__webglDepthbuffer=s.createRenderbuffer(),ce(v.__webglDepthbuffer,A,!1);else{const K=A.stencilBuffer?s.DEPTH_STENCIL_ATTACHMENT:s.DEPTH_ATTACHMENT,ne=v.__webglDepthbuffer;s.bindRenderbuffer(s.RENDERBUFFER,ne),s.framebufferRenderbuffer(s.FRAMEBUFFER,K,s.RENDERBUFFER,ne)}t.bindFramebuffer(s.FRAMEBUFFER,null)}function Ne(A,v,V){const K=n.get(A);v!==void 0&&Oe(K.__webglFramebuffer,A,A.texture,s.COLOR_ATTACHMENT0,s.TEXTURE_2D,0),V!==void 0&<(A)}function kt(A){const v=A.texture,V=n.get(A),K=n.get(v);A.addEventListener("dispose",E);const ne=A.textures,Y=A.isWebGLCubeRenderTarget===!0,we=ne.length>1;if(we||(K.__webglTexture===void 0&&(K.__webglTexture=s.createTexture()),K.__version=v.version,o.memory.textures++),Y){V.__webglFramebuffer=[];for(let fe=0;fe<6;fe++)if(v.mipmaps&&v.mipmaps.length>0){V.__webglFramebuffer[fe]=[];for(let xe=0;xe0){V.__webglFramebuffer=[];for(let fe=0;fe0&&Je(A)===!1){V.__webglMultisampledFramebuffer=s.createFramebuffer(),V.__webglColorRenderbuffer=[],t.bindFramebuffer(s.FRAMEBUFFER,V.__webglMultisampledFramebuffer);for(let fe=0;fe0)for(let xe=0;xe0)for(let xe=0;xe0){if(Je(A)===!1){const v=A.textures,V=A.width,K=A.height;let ne=s.COLOR_BUFFER_BIT;const Y=A.stencilBuffer?s.DEPTH_STENCIL_ATTACHMENT:s.DEPTH_ATTACHMENT,we=n.get(A),fe=v.length>1;if(fe)for(let xe=0;xe0&&e.has("WEBGL_multisampled_render_to_texture")===!0&&v.__useRenderToTexture!==!1}function Ee(A){const v=o.render.frame;h.get(A)!==v&&(h.set(A,v),A.update())}function bt(A,v){const V=A.colorSpace,K=A.format,ne=A.type;return A.isCompressedTexture===!0||A.isVideoTexture===!0||V!==xn&&V!==ls&&(nt.getTransfer(V)===Ot?(K!==Zn||ne!==Xi)&&console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType."):console.error("THREE.WebGLTextures: Unsupported texture color space:",V)),v}function Te(A){return typeof HTMLImageElement<"u"&&A instanceof HTMLImageElement?(c.width=A.naturalWidth||A.width,c.height=A.naturalHeight||A.height):typeof VideoFrame<"u"&&A instanceof VideoFrame?(c.width=A.displayWidth,c.height=A.displayHeight):(c.width=A.width,c.height=A.height),c}this.allocateTextureUnit=I,this.resetTextureUnits=k,this.setTexture2D=H,this.setTexture2DArray=L,this.setTexture3D=z,this.setTextureCube=B,this.rebindTextures=Ne,this.setupRenderTarget=kt,this.updateRenderTargetMipmap=Tt,this.updateMultisampleRenderTarget=Nn,this.setupDepthRenderbuffer=lt,this.setupFrameBufferTexture=Oe,this.useMultisampledRTT=Je}function b1(s,e){function t(n,i=ls){let r;const o=nt.getTransfer(i);if(n===Xi)return s.UNSIGNED_BYTE;if(n===pf)return s.UNSIGNED_SHORT_4_4_4_4;if(n===mf)return s.UNSIGNED_SHORT_5_5_5_1;if(n===Ug)return s.UNSIGNED_INT_5_9_9_9_REV;if(n===Dg)return s.BYTE;if(n===Ig)return s.SHORT;if(n===Zo)return s.UNSIGNED_SHORT;if(n===df)return s.INT;if(n===Hs)return s.UNSIGNED_INT;if(n===ni)return s.FLOAT;if(n===sa)return s.HALF_FLOAT;if(n===Ng)return s.ALPHA;if(n===Qg)return s.RGB;if(n===Zn)return s.RGBA;if(n===Bg)return s.LUMINANCE;if(n===Fg)return s.LUMINANCE_ALPHA;if(n===Cr)return s.DEPTH_COMPONENT;if(n===Gr)return s.DEPTH_STENCIL;if(n===gf)return s.RED;if(n===Of)return s.RED_INTEGER;if(n===$g)return s.RG;if(n===_f)return s.RG_INTEGER;if(n===xf)return s.RGBA_INTEGER;if(n===cl||n===hl||n===ul||n===fl)if(o===Ot)if(r=e.get("WEBGL_compressed_texture_s3tc_srgb"),r!==null){if(n===cl)return r.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(n===hl)return r.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(n===ul)return r.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(n===fl)return r.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else return null;else if(r=e.get("WEBGL_compressed_texture_s3tc"),r!==null){if(n===cl)return r.COMPRESSED_RGB_S3TC_DXT1_EXT;if(n===hl)return r.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(n===ul)return r.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(n===fl)return r.COMPRESSED_RGBA_S3TC_DXT5_EXT}else return null;if(n===Bh||n===Fh||n===$h||n===Vh)if(r=e.get("WEBGL_compressed_texture_pvrtc"),r!==null){if(n===Bh)return r.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(n===Fh)return r.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(n===$h)return r.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(n===Vh)return r.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}else return null;if(n===zh||n===Zh||n===Gh)if(r=e.get("WEBGL_compressed_texture_etc"),r!==null){if(n===zh||n===Zh)return o===Ot?r.COMPRESSED_SRGB8_ETC2:r.COMPRESSED_RGB8_ETC2;if(n===Gh)return o===Ot?r.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:r.COMPRESSED_RGBA8_ETC2_EAC}else return null;if(n===Xh||n===Hh||n===Wh||n===jh||n===qh||n===Yh||n===Kh||n===Jh||n===eu||n===tu||n===nu||n===iu||n===su||n===ru)if(r=e.get("WEBGL_compressed_texture_astc"),r!==null){if(n===Xh)return o===Ot?r.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:r.COMPRESSED_RGBA_ASTC_4x4_KHR;if(n===Hh)return o===Ot?r.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:r.COMPRESSED_RGBA_ASTC_5x4_KHR;if(n===Wh)return o===Ot?r.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:r.COMPRESSED_RGBA_ASTC_5x5_KHR;if(n===jh)return o===Ot?r.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:r.COMPRESSED_RGBA_ASTC_6x5_KHR;if(n===qh)return o===Ot?r.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:r.COMPRESSED_RGBA_ASTC_6x6_KHR;if(n===Yh)return o===Ot?r.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:r.COMPRESSED_RGBA_ASTC_8x5_KHR;if(n===Kh)return o===Ot?r.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:r.COMPRESSED_RGBA_ASTC_8x6_KHR;if(n===Jh)return o===Ot?r.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:r.COMPRESSED_RGBA_ASTC_8x8_KHR;if(n===eu)return o===Ot?r.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:r.COMPRESSED_RGBA_ASTC_10x5_KHR;if(n===tu)return o===Ot?r.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:r.COMPRESSED_RGBA_ASTC_10x6_KHR;if(n===nu)return o===Ot?r.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:r.COMPRESSED_RGBA_ASTC_10x8_KHR;if(n===iu)return o===Ot?r.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:r.COMPRESSED_RGBA_ASTC_10x10_KHR;if(n===su)return o===Ot?r.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:r.COMPRESSED_RGBA_ASTC_12x10_KHR;if(n===ru)return o===Ot?r.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:r.COMPRESSED_RGBA_ASTC_12x12_KHR}else return null;if(n===dl||n===ou||n===au)if(r=e.get("EXT_texture_compression_bptc"),r!==null){if(n===dl)return o===Ot?r.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:r.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(n===ou)return r.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(n===au)return r.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}else return null;if(n===Vg||n===lu||n===cu||n===hu)if(r=e.get("EXT_texture_compression_rgtc"),r!==null){if(n===dl)return r.COMPRESSED_RED_RGTC1_EXT;if(n===lu)return r.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(n===cu)return r.COMPRESSED_RED_GREEN_RGTC2_EXT;if(n===hu)return r.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}else return null;return n===Zr?s.UNSIGNED_INT_24_8:s[n]!==void 0?s[n]:null}return{convert:t}}const M1=` -void main() { - - gl_Position = vec4( position, 1.0 ); - -}`,w1=` -uniform sampler2DArray depthColor; -uniform float depthWidth; -uniform float depthHeight; - -void main() { - - vec2 coord = vec2( gl_FragCoord.x / depthWidth, gl_FragCoord.y / depthHeight ); - - if ( coord.x >= 1.0 ) { - - gl_FragDepth = texture( depthColor, vec3( coord.x - 1.0, coord.y, 1 ) ).r; - - } else { - - gl_FragDepth = texture( depthColor, vec3( coord.x, coord.y, 0 ) ).r; - - } - -}`;class T1{constructor(){this.texture=null,this.mesh=null,this.depthNear=0,this.depthFar=0}init(e,t,n){if(this.texture===null){const i=new qt,r=e.properties.get(i);r.__webglTexture=t.texture,(t.depthNear!==n.depthNear||t.depthFar!==n.depthFar)&&(this.depthNear=t.depthNear,this.depthFar=t.depthFar),this.texture=i}}getMesh(e){if(this.texture!==null&&this.mesh===null){const t=e.cameras[0].viewport,n=new gs({vertexShader:M1,fragmentShader:w1,uniforms:{depthColor:{value:this.texture},depthWidth:{value:t.z},depthHeight:{value:t.w}}});this.mesh=new jt(new ec(20,20),n)}return this.mesh}reset(){this.texture=null,this.mesh=null}getDepthTexture(){return this.texture}}class E1 extends tr{constructor(e,t){super();const n=this;let i=null,r=1,o=null,a="local-floor",l=1,c=null,h=null,u=null,f=null,d=null,p=null;const O=new T1,g=t.getContextAttributes();let m=null,b=null;const x=[],_=[],w=new Ue;let T=null;const E=new dn;E.viewport=new ct;const P=new dn;P.viewport=new ct;const y=[E,P],S=new BS;let R=null,k=null;this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(j){let q=x[j];return q===void 0&&(q=new Bc,x[j]=q),q.getTargetRaySpace()},this.getControllerGrip=function(j){let q=x[j];return q===void 0&&(q=new Bc,x[j]=q),q.getGripSpace()},this.getHand=function(j){let q=x[j];return q===void 0&&(q=new Bc,x[j]=q),q.getHandSpace()};function I(j){const q=_.indexOf(j.inputSource);if(q===-1)return;const Oe=x[q];Oe!==void 0&&(Oe.update(j.inputSource,j.frame,c||o),Oe.dispatchEvent({type:j.type,data:j.inputSource}))}function $(){i.removeEventListener("select",I),i.removeEventListener("selectstart",I),i.removeEventListener("selectend",I),i.removeEventListener("squeeze",I),i.removeEventListener("squeezestart",I),i.removeEventListener("squeezeend",I),i.removeEventListener("end",$),i.removeEventListener("inputsourceschange",H);for(let j=0;j=0&&(_[ce]=null,x[ce].disconnect(Oe))}for(let q=0;q=_.length){_.push(Oe),ce=lt;break}else if(_[lt]===null){_[lt]=Oe,ce=lt;break}if(ce===-1)break}const Le=x[ce];Le&&Le.connect(Oe)}}const L=new U,z=new U;function B(j,q,Oe){L.setFromMatrixPosition(q.matrixWorld),z.setFromMatrixPosition(Oe.matrixWorld);const ce=L.distanceTo(z),Le=q.projectionMatrix.elements,lt=Oe.projectionMatrix.elements,Ne=Le[14]/(Le[10]-1),kt=Le[14]/(Le[10]+1),Tt=(Le[9]+1)/Le[5],Ye=(Le[9]-1)/Le[5],C=(Le[8]-1)/Le[0],Nn=(lt[8]+1)/lt[0],Ke=Ne*C,Je=Ne*Nn,Ee=ce/(-C+Nn),bt=Ee*-C;if(q.matrixWorld.decompose(j.position,j.quaternion,j.scale),j.translateX(bt),j.translateZ(Ee),j.matrixWorld.compose(j.position,j.quaternion,j.scale),j.matrixWorldInverse.copy(j.matrixWorld).invert(),Le[10]===-1)j.projectionMatrix.copy(q.projectionMatrix),j.projectionMatrixInverse.copy(q.projectionMatrixInverse);else{const Te=Ne+Ee,A=kt+Ee,v=Ke-bt,V=Je+(ce-bt),K=Tt*kt/A*Te,ne=Ye*kt/A*Te;j.projectionMatrix.makePerspective(v,V,K,ne,Te,A),j.projectionMatrixInverse.copy(j.projectionMatrix).invert()}}function ee(j,q){q===null?j.matrixWorld.copy(j.matrix):j.matrixWorld.multiplyMatrices(q.matrixWorld,j.matrix),j.matrixWorldInverse.copy(j.matrixWorld).invert()}this.updateCamera=function(j){if(i===null)return;let q=j.near,Oe=j.far;O.texture!==null&&(O.depthNear>0&&(q=O.depthNear),O.depthFar>0&&(Oe=O.depthFar)),S.near=P.near=E.near=q,S.far=P.far=E.far=Oe,(R!==S.near||k!==S.far)&&(i.updateRenderState({depthNear:S.near,depthFar:S.far}),R=S.near,k=S.far),E.layers.mask=j.layers.mask|2,P.layers.mask=j.layers.mask|4,S.layers.mask=E.layers.mask|P.layers.mask;const ce=j.parent,Le=S.cameras;ee(S,ce);for(let lt=0;lt0&&(g.alphaTest.value=m.alphaTest);const b=e.get(m),x=b.envMap,_=b.envMapRotation;x&&(g.envMap.value=x,Cs.copy(_),Cs.x*=-1,Cs.y*=-1,Cs.z*=-1,x.isCubeTexture&&x.isRenderTargetTexture===!1&&(Cs.y*=-1,Cs.z*=-1),g.envMapRotation.value.setFromMatrix4(A1.makeRotationFromEuler(Cs)),g.flipEnvMap.value=x.isCubeTexture&&x.isRenderTargetTexture===!1?-1:1,g.reflectivity.value=m.reflectivity,g.ior.value=m.ior,g.refractionRatio.value=m.refractionRatio),m.lightMap&&(g.lightMap.value=m.lightMap,g.lightMapIntensity.value=m.lightMapIntensity,t(m.lightMap,g.lightMapTransform)),m.aoMap&&(g.aoMap.value=m.aoMap,g.aoMapIntensity.value=m.aoMapIntensity,t(m.aoMap,g.aoMapTransform))}function o(g,m){g.diffuse.value.copy(m.color),g.opacity.value=m.opacity,m.map&&(g.map.value=m.map,t(m.map,g.mapTransform))}function a(g,m){g.dashSize.value=m.dashSize,g.totalSize.value=m.dashSize+m.gapSize,g.scale.value=m.scale}function l(g,m,b,x){g.diffuse.value.copy(m.color),g.opacity.value=m.opacity,g.size.value=m.size*b,g.scale.value=x*.5,m.map&&(g.map.value=m.map,t(m.map,g.uvTransform)),m.alphaMap&&(g.alphaMap.value=m.alphaMap,t(m.alphaMap,g.alphaMapTransform)),m.alphaTest>0&&(g.alphaTest.value=m.alphaTest)}function c(g,m){g.diffuse.value.copy(m.color),g.opacity.value=m.opacity,g.rotation.value=m.rotation,m.map&&(g.map.value=m.map,t(m.map,g.mapTransform)),m.alphaMap&&(g.alphaMap.value=m.alphaMap,t(m.alphaMap,g.alphaMapTransform)),m.alphaTest>0&&(g.alphaTest.value=m.alphaTest)}function h(g,m){g.specular.value.copy(m.specular),g.shininess.value=Math.max(m.shininess,1e-4)}function u(g,m){m.gradientMap&&(g.gradientMap.value=m.gradientMap)}function f(g,m){g.metalness.value=m.metalness,m.metalnessMap&&(g.metalnessMap.value=m.metalnessMap,t(m.metalnessMap,g.metalnessMapTransform)),g.roughness.value=m.roughness,m.roughnessMap&&(g.roughnessMap.value=m.roughnessMap,t(m.roughnessMap,g.roughnessMapTransform)),m.envMap&&(g.envMapIntensity.value=m.envMapIntensity)}function d(g,m,b){g.ior.value=m.ior,m.sheen>0&&(g.sheenColor.value.copy(m.sheenColor).multiplyScalar(m.sheen),g.sheenRoughness.value=m.sheenRoughness,m.sheenColorMap&&(g.sheenColorMap.value=m.sheenColorMap,t(m.sheenColorMap,g.sheenColorMapTransform)),m.sheenRoughnessMap&&(g.sheenRoughnessMap.value=m.sheenRoughnessMap,t(m.sheenRoughnessMap,g.sheenRoughnessMapTransform))),m.clearcoat>0&&(g.clearcoat.value=m.clearcoat,g.clearcoatRoughness.value=m.clearcoatRoughness,m.clearcoatMap&&(g.clearcoatMap.value=m.clearcoatMap,t(m.clearcoatMap,g.clearcoatMapTransform)),m.clearcoatRoughnessMap&&(g.clearcoatRoughnessMap.value=m.clearcoatRoughnessMap,t(m.clearcoatRoughnessMap,g.clearcoatRoughnessMapTransform)),m.clearcoatNormalMap&&(g.clearcoatNormalMap.value=m.clearcoatNormalMap,t(m.clearcoatNormalMap,g.clearcoatNormalMapTransform),g.clearcoatNormalScale.value.copy(m.clearcoatNormalScale),m.side===Mn&&g.clearcoatNormalScale.value.negate())),m.dispersion>0&&(g.dispersion.value=m.dispersion),m.iridescence>0&&(g.iridescence.value=m.iridescence,g.iridescenceIOR.value=m.iridescenceIOR,g.iridescenceThicknessMinimum.value=m.iridescenceThicknessRange[0],g.iridescenceThicknessMaximum.value=m.iridescenceThicknessRange[1],m.iridescenceMap&&(g.iridescenceMap.value=m.iridescenceMap,t(m.iridescenceMap,g.iridescenceMapTransform)),m.iridescenceThicknessMap&&(g.iridescenceThicknessMap.value=m.iridescenceThicknessMap,t(m.iridescenceThicknessMap,g.iridescenceThicknessMapTransform))),m.transmission>0&&(g.transmission.value=m.transmission,g.transmissionSamplerMap.value=b.texture,g.transmissionSamplerSize.value.set(b.width,b.height),m.transmissionMap&&(g.transmissionMap.value=m.transmissionMap,t(m.transmissionMap,g.transmissionMapTransform)),g.thickness.value=m.thickness,m.thicknessMap&&(g.thicknessMap.value=m.thicknessMap,t(m.thicknessMap,g.thicknessMapTransform)),g.attenuationDistance.value=m.attenuationDistance,g.attenuationColor.value.copy(m.attenuationColor)),m.anisotropy>0&&(g.anisotropyVector.value.set(m.anisotropy*Math.cos(m.anisotropyRotation),m.anisotropy*Math.sin(m.anisotropyRotation)),m.anisotropyMap&&(g.anisotropyMap.value=m.anisotropyMap,t(m.anisotropyMap,g.anisotropyMapTransform))),g.specularIntensity.value=m.specularIntensity,g.specularColor.value.copy(m.specularColor),m.specularColorMap&&(g.specularColorMap.value=m.specularColorMap,t(m.specularColorMap,g.specularColorMapTransform)),m.specularIntensityMap&&(g.specularIntensityMap.value=m.specularIntensityMap,t(m.specularIntensityMap,g.specularIntensityMapTransform))}function p(g,m){m.matcap&&(g.matcap.value=m.matcap)}function O(g,m){const b=e.get(m).light;g.referencePosition.value.setFromMatrixPosition(b.matrixWorld),g.nearDistance.value=b.shadow.camera.near,g.farDistance.value=b.shadow.camera.far}return{refreshFogUniforms:n,refreshMaterialUniforms:i}}function R1(s,e,t,n){let i={},r={},o=[];const a=s.getParameter(s.MAX_UNIFORM_BUFFER_BINDINGS);function l(b,x){const _=x.program;n.uniformBlockBinding(b,_)}function c(b,x){let _=i[b.id];_===void 0&&(p(b),_=h(b),i[b.id]=_,b.addEventListener("dispose",g));const w=x.program;n.updateUBOMapping(b,w);const T=e.render.frame;r[b.id]!==T&&(f(b),r[b.id]=T)}function h(b){const x=u();b.__bindingPointIndex=x;const _=s.createBuffer(),w=b.__size,T=b.usage;return s.bindBuffer(s.UNIFORM_BUFFER,_),s.bufferData(s.UNIFORM_BUFFER,w,T),s.bindBuffer(s.UNIFORM_BUFFER,null),s.bindBufferBase(s.UNIFORM_BUFFER,x,_),_}function u(){for(let b=0;b0&&(_+=w-T),b.__size=_,b.__cache={},this}function O(b){const x={boundary:0,storage:0};return typeof b=="number"||typeof b=="boolean"?(x.boundary=4,x.storage=4):b.isVector2?(x.boundary=8,x.storage=8):b.isVector3||b.isColor?(x.boundary=16,x.storage=12):b.isVector4?(x.boundary=16,x.storage=16):b.isMatrix3?(x.boundary=48,x.storage=48):b.isMatrix4?(x.boundary=64,x.storage=64):b.isTexture?console.warn("THREE.WebGLRenderer: Texture samplers can not be part of an uniforms group."):console.warn("THREE.WebGLRenderer: Unsupported uniform value type.",b),x}function g(b){const x=b.target;x.removeEventListener("dispose",g);const _=o.indexOf(x.__bindingPointIndex);o.splice(_,1),s.deleteBuffer(i[x.id]),delete i[x.id],delete r[x.id]}function m(){for(const b in i)s.deleteBuffer(i[b]);o=[],i={},r={}}return{bind:l,update:c,dispose:m}}class C1{constructor(e={}){const{canvas:t=ky(),context:n=null,depth:i=!0,stencil:r=!1,alpha:o=!1,antialias:a=!1,premultipliedAlpha:l=!0,preserveDrawingBuffer:c=!1,powerPreference:h="default",failIfMajorPerformanceCaveat:u=!1,reverseDepthBuffer:f=!1}=e;this.isWebGLRenderer=!0;let d;if(n!==null){if(typeof WebGLRenderingContext<"u"&&n instanceof WebGLRenderingContext)throw new Error("THREE.WebGLRenderer: WebGL 1 is not supported since r163.");d=n.getContextAttributes().alpha}else d=o;const p=new Uint32Array(4),O=new Int32Array(4);let g=null,m=null;const b=[],x=[];this.domElement=t,this.debug={checkShaderErrors:!0,onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this._outputColorSpace=Xt,this.toneMapping=ms,this.toneMappingExposure=1;const _=this;let w=!1,T=0,E=0,P=null,y=-1,S=null;const R=new ct,k=new ct;let I=null;const $=new De(0);let H=0,L=t.width,z=t.height,B=1,ee=null,se=null;const ge=new ct(0,0,L,z),be=new ct(0,0,L,z);let Be=!1;const j=new Mf;let q=!1,Oe=!1;this.transmissionResolutionScale=1;const ce=new Ge,Le=new Ge,lt=new U,Ne=new ct,kt={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};let Tt=!1;function Ye(){return P===null?B:1}let C=n;function Nn(M,Q){return t.getContext(M,Q)}try{const M={alpha:!0,depth:i,stencil:r,antialias:a,premultipliedAlpha:l,preserveDrawingBuffer:c,powerPreference:h,failIfMajorPerformanceCaveat:u};if("setAttribute"in t&&t.setAttribute("data-engine",`three.js r${uf}`),t.addEventListener("webglcontextlost",J,!1),t.addEventListener("webglcontextrestored",pe,!1),t.addEventListener("webglcontextcreationerror",de,!1),C===null){const Q="webgl2";if(C=Nn(Q,M),C===null)throw Nn(Q)?new Error("Error creating WebGL context with your selected attributes."):new Error("Error creating WebGL context.")}}catch(M){throw console.error("THREE.WebGLRenderer: "+M.message),M}let Ke,Je,Ee,bt,Te,A,v,V,K,ne,Y,we,fe,xe,st,re,ye,ke,Fe,Se,et,Xe,St,N;function he(){Ke=new $M(C),Ke.init(),Xe=new b1(C,Ke),Je=new IM(C,Ke,e,Xe),Ee=new S1(C,Ke),Je.reverseDepthBuffer&&f&&Ee.buffers.depth.setReversed(!0),bt=new ZM(C),Te=new l1,A=new v1(C,Ke,Ee,Te,Je,Xe,bt),v=new NM(_),V=new FM(_),K=new YS(C),St=new LM(C,K),ne=new VM(C,K,bt,St),Y=new XM(C,ne,K,bt),Fe=new GM(C,Je,A),re=new UM(Te),we=new a1(_,v,V,Ke,Je,St,re),fe=new P1(_,Te),xe=new h1,st=new g1(Ke),ke=new kM(_,v,V,Ee,Y,d,l),ye=new x1(_,Y,Je),N=new R1(C,bt,Je,Ee),Se=new DM(C,Ke,bt),et=new zM(C,Ke,bt),bt.programs=we.programs,_.capabilities=Je,_.extensions=Ke,_.properties=Te,_.renderLists=xe,_.shadowMap=ye,_.state=Ee,_.info=bt}he();const W=new E1(_,C);this.xr=W,this.getContext=function(){return C},this.getContextAttributes=function(){return C.getContextAttributes()},this.forceContextLoss=function(){const M=Ke.get("WEBGL_lose_context");M&&M.loseContext()},this.forceContextRestore=function(){const M=Ke.get("WEBGL_lose_context");M&&M.restoreContext()},this.getPixelRatio=function(){return B},this.setPixelRatio=function(M){M!==void 0&&(B=M,this.setSize(L,z,!1))},this.getSize=function(M){return M.set(L,z)},this.setSize=function(M,Q,Z=!0){if(W.isPresenting){console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting.");return}L=M,z=Q,t.width=Math.floor(M*B),t.height=Math.floor(Q*B),Z===!0&&(t.style.width=M+"px",t.style.height=Q+"px"),this.setViewport(0,0,M,Q)},this.getDrawingBufferSize=function(M){return M.set(L*B,z*B).floor()},this.setDrawingBufferSize=function(M,Q,Z){L=M,z=Q,B=Z,t.width=Math.floor(M*Z),t.height=Math.floor(Q*Z),this.setViewport(0,0,M,Q)},this.getCurrentViewport=function(M){return M.copy(R)},this.getViewport=function(M){return M.copy(ge)},this.setViewport=function(M,Q,Z,X){M.isVector4?ge.set(M.x,M.y,M.z,M.w):ge.set(M,Q,Z,X),Ee.viewport(R.copy(ge).multiplyScalar(B).round())},this.getScissor=function(M){return M.copy(be)},this.setScissor=function(M,Q,Z,X){M.isVector4?be.set(M.x,M.y,M.z,M.w):be.set(M,Q,Z,X),Ee.scissor(k.copy(be).multiplyScalar(B).round())},this.getScissorTest=function(){return Be},this.setScissorTest=function(M){Ee.setScissorTest(Be=M)},this.setOpaqueSort=function(M){ee=M},this.setTransparentSort=function(M){se=M},this.getClearColor=function(M){return M.copy(ke.getClearColor())},this.setClearColor=function(){ke.setClearColor.apply(ke,arguments)},this.getClearAlpha=function(){return ke.getClearAlpha()},this.setClearAlpha=function(){ke.setClearAlpha.apply(ke,arguments)},this.clear=function(M=!0,Q=!0,Z=!0){let X=0;if(M){let F=!1;if(P!==null){const ie=P.texture.format;F=ie===xf||ie===_f||ie===Of}if(F){const ie=P.texture.type,ue=ie===Xi||ie===Hs||ie===Zo||ie===Zr||ie===pf||ie===mf,_e=ke.getClearColor(),ve=ke.getClearAlpha(),$e=_e.r,Ve=_e.g,Re=_e.b;ue?(p[0]=$e,p[1]=Ve,p[2]=Re,p[3]=ve,C.clearBufferuiv(C.COLOR,0,p)):(O[0]=$e,O[1]=Ve,O[2]=Re,O[3]=ve,C.clearBufferiv(C.COLOR,0,O))}else X|=C.COLOR_BUFFER_BIT}Q&&(X|=C.DEPTH_BUFFER_BIT),Z&&(X|=C.STENCIL_BUFFER_BIT,this.state.buffers.stencil.setMask(4294967295)),C.clear(X)},this.clearColor=function(){this.clear(!0,!1,!1)},this.clearDepth=function(){this.clear(!1,!0,!1)},this.clearStencil=function(){this.clear(!1,!1,!0)},this.dispose=function(){t.removeEventListener("webglcontextlost",J,!1),t.removeEventListener("webglcontextrestored",pe,!1),t.removeEventListener("webglcontextcreationerror",de,!1),ke.dispose(),xe.dispose(),st.dispose(),Te.dispose(),v.dispose(),V.dispose(),Y.dispose(),St.dispose(),N.dispose(),we.dispose(),W.dispose(),W.removeEventListener("sessionstart",od),W.removeEventListener("sessionend",ad),Ms.stop()};function J(M){M.preventDefault(),console.log("THREE.WebGLRenderer: Context Lost."),w=!0}function pe(){console.log("THREE.WebGLRenderer: Context Restored."),w=!1;const M=bt.autoReset,Q=ye.enabled,Z=ye.autoUpdate,X=ye.needsUpdate,F=ye.type;he(),bt.autoReset=M,ye.enabled=Q,ye.autoUpdate=Z,ye.needsUpdate=X,ye.type=F}function de(M){console.error("THREE.WebGLRenderer: A WebGL context could not be created. Reason: ",M.statusMessage)}function ze(M){const Q=M.target;Q.removeEventListener("dispose",ze),Pt(Q)}function Pt(M){nn(M),Te.remove(M)}function nn(M){const Q=Te.get(M).programs;Q!==void 0&&(Q.forEach(function(Z){we.releaseProgram(Z)}),M.isShaderMaterial&&we.releaseShaderCache(M))}this.renderBufferDirect=function(M,Q,Z,X,F,ie){Q===null&&(Q=kt);const ue=F.isMesh&&F.matrixWorld.determinant()<0,_e=A_(M,Q,Z,X,F);Ee.setMaterial(X,ue);let ve=Z.index,$e=1;if(X.wireframe===!0){if(ve=ne.getWireframeAttribute(Z),ve===void 0)return;$e=2}const Ve=Z.drawRange,Re=Z.attributes.position;let rt=Ve.start*$e,ht=(Ve.start+Ve.count)*$e;ie!==null&&(rt=Math.max(rt,ie.start*$e),ht=Math.min(ht,(ie.start+ie.count)*$e)),ve!==null?(rt=Math.max(rt,0),ht=Math.min(ht,ve.count)):Re!=null&&(rt=Math.max(rt,0),ht=Math.min(ht,Re.count));const Ut=ht-rt;if(Ut<0||Ut===1/0)return;St.setup(F,X,_e,Z,ve);let Rt,ot=Se;if(ve!==null&&(Rt=K.get(ve),ot=et,ot.setIndex(Rt)),F.isMesh)X.wireframe===!0?(Ee.setLineWidth(X.wireframeLinewidth*Ye()),ot.setMode(C.LINES)):ot.setMode(C.TRIANGLES);else if(F.isLine){let Ce=X.linewidth;Ce===void 0&&(Ce=1),Ee.setLineWidth(Ce*Ye()),F.isLineSegments?ot.setMode(C.LINES):F.isLineLoop?ot.setMode(C.LINE_LOOP):ot.setMode(C.LINE_STRIP)}else F.isPoints?ot.setMode(C.POINTS):F.isSprite&&ot.setMode(C.TRIANGLES);if(F.isBatchedMesh)if(F._multiDrawInstances!==null)ot.renderMultiDrawInstances(F._multiDrawStarts,F._multiDrawCounts,F._multiDrawCount,F._multiDrawInstances);else if(Ke.get("WEBGL_multi_draw"))ot.renderMultiDraw(F._multiDrawStarts,F._multiDrawCounts,F._multiDrawCount);else{const Ce=F._multiDrawStarts,Yt=F._multiDrawCounts,ut=F._multiDrawCount,qn=ve?K.get(ve).bytesPerElement:1,sr=Te.get(X).currentProgram.getUniforms();for(let En=0;En{function ie(){if(X.forEach(function(ue){Te.get(ue).currentProgram.isReady()&&X.delete(ue)}),X.size===0){F(M);return}setTimeout(ie,10)}Ke.get("KHR_parallel_shader_compile")!==null?ie():setTimeout(ie,10)})};let jn=null;function Ti(M){jn&&jn(M)}function od(){Ms.stop()}function ad(){Ms.start()}const Ms=new aO;Ms.setAnimationLoop(Ti),typeof self<"u"&&Ms.setContext(self),this.setAnimationLoop=function(M){jn=M,W.setAnimationLoop(M),M===null?Ms.stop():Ms.start()},W.addEventListener("sessionstart",od),W.addEventListener("sessionend",ad),this.render=function(M,Q){if(Q!==void 0&&Q.isCamera!==!0){console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");return}if(w===!0)return;if(M.matrixWorldAutoUpdate===!0&&M.updateMatrixWorld(),Q.parent===null&&Q.matrixWorldAutoUpdate===!0&&Q.updateMatrixWorld(),W.enabled===!0&&W.isPresenting===!0&&(W.cameraAutoUpdate===!0&&W.updateCamera(Q),Q=W.getCamera()),M.isScene===!0&&M.onBeforeRender(_,M,Q,P),m=st.get(M,x.length),m.init(Q),x.push(m),Le.multiplyMatrices(Q.projectionMatrix,Q.matrixWorldInverse),j.setFromProjectionMatrix(Le),Oe=this.localClippingEnabled,q=re.init(this.clippingPlanes,Oe),g=xe.get(M,b.length),g.init(),b.push(g),W.enabled===!0&&W.isPresenting===!0){const ie=_.xr.getDepthSensingMesh();ie!==null&&gc(ie,Q,-1/0,_.sortObjects)}gc(M,Q,0,_.sortObjects),g.finish(),_.sortObjects===!0&&g.sort(ee,se),Tt=W.enabled===!1||W.isPresenting===!1||W.hasDepthSensing()===!1,Tt&&ke.addToRenderList(g,M),this.info.render.frame++,q===!0&&re.beginShadows();const Z=m.state.shadowsArray;ye.render(Z,M,Q),q===!0&&re.endShadows(),this.info.autoReset===!0&&this.info.reset();const X=g.opaque,F=g.transmissive;if(m.setupLights(),Q.isArrayCamera){const ie=Q.cameras;if(F.length>0)for(let ue=0,_e=ie.length;ue<_e;ue++){const ve=ie[ue];cd(X,F,M,ve)}Tt&&ke.render(M);for(let ue=0,_e=ie.length;ue<_e;ue++){const ve=ie[ue];ld(g,M,ve,ve.viewport)}}else F.length>0&&cd(X,F,M,Q),Tt&&ke.render(M),ld(g,M,Q);P!==null&&E===0&&(A.updateMultisampleRenderTarget(P),A.updateRenderTargetMipmap(P)),M.isScene===!0&&M.onAfterRender(_,M,Q),St.resetDefaultState(),y=-1,S=null,x.pop(),x.length>0?(m=x[x.length-1],q===!0&&re.setGlobalState(_.clippingPlanes,m.state.camera)):m=null,b.pop(),b.length>0?g=b[b.length-1]:g=null};function gc(M,Q,Z,X){if(M.visible===!1)return;if(M.layers.test(Q.layers)){if(M.isGroup)Z=M.renderOrder;else if(M.isLOD)M.autoUpdate===!0&&M.update(Q);else if(M.isLight)m.pushLight(M),M.castShadow&&m.pushShadow(M);else if(M.isSprite){if(!M.frustumCulled||j.intersectsSprite(M)){X&&Ne.setFromMatrixPosition(M.matrixWorld).applyMatrix4(Le);const ue=Y.update(M),_e=M.material;_e.visible&&g.push(M,ue,_e,Z,Ne.z,null)}}else if((M.isMesh||M.isLine||M.isPoints)&&(!M.frustumCulled||j.intersectsObject(M))){const ue=Y.update(M),_e=M.material;if(X&&(M.boundingSphere!==void 0?(M.boundingSphere===null&&M.computeBoundingSphere(),Ne.copy(M.boundingSphere.center)):(ue.boundingSphere===null&&ue.computeBoundingSphere(),Ne.copy(ue.boundingSphere.center)),Ne.applyMatrix4(M.matrixWorld).applyMatrix4(Le)),Array.isArray(_e)){const ve=ue.groups;for(let $e=0,Ve=ve.length;$e0&&da(F,Q,Z),ie.length>0&&da(ie,Q,Z),ue.length>0&&da(ue,Q,Z),Ee.buffers.depth.setTest(!0),Ee.buffers.depth.setMask(!0),Ee.buffers.color.setMask(!0),Ee.setPolygonOffset(!1)}function cd(M,Q,Z,X){if((Z.isScene===!0?Z.overrideMaterial:null)!==null)return;m.state.transmissionRenderTarget[X.id]===void 0&&(m.state.transmissionRenderTarget[X.id]=new Ws(1,1,{generateMipmaps:!0,type:Ke.has("EXT_color_buffer_half_float")||Ke.has("EXT_color_buffer_float")?sa:Xi,minFilter:Bi,samples:4,stencilBuffer:r,resolveDepthBuffer:!1,resolveStencilBuffer:!1,colorSpace:nt.workingColorSpace}));const ie=m.state.transmissionRenderTarget[X.id],ue=X.viewport||R;ie.setSize(ue.z*_.transmissionResolutionScale,ue.w*_.transmissionResolutionScale);const _e=_.getRenderTarget();_.setRenderTarget(ie),_.getClearColor($),H=_.getClearAlpha(),H<1&&_.setClearColor(16777215,.5),_.clear(),Tt&&ke.render(Z);const ve=_.toneMapping;_.toneMapping=ms;const $e=X.viewport;if(X.viewport!==void 0&&(X.viewport=void 0),m.setupLightsView(X),q===!0&&re.setGlobalState(_.clippingPlanes,X),da(M,Z,X),A.updateMultisampleRenderTarget(ie),A.updateRenderTargetMipmap(ie),Ke.has("WEBGL_multisampled_render_to_texture")===!1){let Ve=!1;for(let Re=0,rt=Q.length;Re0),Re=!!Z.morphAttributes.position,rt=!!Z.morphAttributes.normal,ht=!!Z.morphAttributes.color;let Ut=ms;X.toneMapped&&(P===null||P.isXRRenderTarget===!0)&&(Ut=_.toneMapping);const Rt=Z.morphAttributes.position||Z.morphAttributes.normal||Z.morphAttributes.color,ot=Rt!==void 0?Rt.length:0,Ce=Te.get(X),Yt=m.state.lights;if(q===!0&&(Oe===!0||M!==S)){const cn=M===S&&X.id===y;re.setState(X,M,cn)}let ut=!1;X.version===Ce.__version?(Ce.needsLights&&Ce.lightsStateVersion!==Yt.state.version||Ce.outputColorSpace!==_e||F.isBatchedMesh&&Ce.batching===!1||!F.isBatchedMesh&&Ce.batching===!0||F.isBatchedMesh&&Ce.batchingColor===!0&&F.colorTexture===null||F.isBatchedMesh&&Ce.batchingColor===!1&&F.colorTexture!==null||F.isInstancedMesh&&Ce.instancing===!1||!F.isInstancedMesh&&Ce.instancing===!0||F.isSkinnedMesh&&Ce.skinning===!1||!F.isSkinnedMesh&&Ce.skinning===!0||F.isInstancedMesh&&Ce.instancingColor===!0&&F.instanceColor===null||F.isInstancedMesh&&Ce.instancingColor===!1&&F.instanceColor!==null||F.isInstancedMesh&&Ce.instancingMorph===!0&&F.morphTexture===null||F.isInstancedMesh&&Ce.instancingMorph===!1&&F.morphTexture!==null||Ce.envMap!==ve||X.fog===!0&&Ce.fog!==ie||Ce.numClippingPlanes!==void 0&&(Ce.numClippingPlanes!==re.numPlanes||Ce.numIntersection!==re.numIntersection)||Ce.vertexAlphas!==$e||Ce.vertexTangents!==Ve||Ce.morphTargets!==Re||Ce.morphNormals!==rt||Ce.morphColors!==ht||Ce.toneMapping!==Ut||Ce.morphTargetsCount!==ot)&&(ut=!0):(ut=!0,Ce.__version=X.version);let qn=Ce.currentProgram;ut===!0&&(qn=pa(X,Q,F));let sr=!1,En=!1,lo=!1;const wt=qn.getUniforms(),Qn=Ce.uniforms;if(Ee.useProgram(qn.program)&&(sr=!0,En=!0,lo=!0),X.id!==y&&(y=X.id,En=!0),sr||S!==M){Ee.buffers.depth.getReversed()?(ce.copy(M.projectionMatrix),Dy(ce),Iy(ce),wt.setValue(C,"projectionMatrix",ce)):wt.setValue(C,"projectionMatrix",M.projectionMatrix),wt.setValue(C,"viewMatrix",M.matrixWorldInverse);const yn=wt.map.cameraPosition;yn!==void 0&&yn.setValue(C,lt.setFromMatrixPosition(M.matrixWorld)),Je.logarithmicDepthBuffer&&wt.setValue(C,"logDepthBufFC",2/(Math.log(M.far+1)/Math.LN2)),(X.isMeshPhongMaterial||X.isMeshToonMaterial||X.isMeshLambertMaterial||X.isMeshBasicMaterial||X.isMeshStandardMaterial||X.isShaderMaterial)&&wt.setValue(C,"isOrthographic",M.isOrthographicCamera===!0),S!==M&&(S=M,En=!0,lo=!0)}if(F.isSkinnedMesh){wt.setOptional(C,F,"bindMatrix"),wt.setOptional(C,F,"bindMatrixInverse");const cn=F.skeleton;cn&&(cn.boneTexture===null&&cn.computeBoneTexture(),wt.setValue(C,"boneTexture",cn.boneTexture,A))}F.isBatchedMesh&&(wt.setOptional(C,F,"batchingTexture"),wt.setValue(C,"batchingTexture",F._matricesTexture,A),wt.setOptional(C,F,"batchingIdTexture"),wt.setValue(C,"batchingIdTexture",F._indirectTexture,A),wt.setOptional(C,F,"batchingColorTexture"),F._colorsTexture!==null&&wt.setValue(C,"batchingColorTexture",F._colorsTexture,A));const Bn=Z.morphAttributes;if((Bn.position!==void 0||Bn.normal!==void 0||Bn.color!==void 0)&&Fe.update(F,Z,qn),(En||Ce.receiveShadow!==F.receiveShadow)&&(Ce.receiveShadow=F.receiveShadow,wt.setValue(C,"receiveShadow",F.receiveShadow)),X.isMeshGouraudMaterial&&X.envMap!==null&&(Qn.envMap.value=ve,Qn.flipEnvMap.value=ve.isCubeTexture&&ve.isRenderTargetTexture===!1?-1:1),X.isMeshStandardMaterial&&X.envMap===null&&Q.environment!==null&&(Qn.envMapIntensity.value=Q.environmentIntensity),En&&(wt.setValue(C,"toneMappingExposure",_.toneMappingExposure),Ce.needsLights&&P_(Qn,lo),ie&&X.fog===!0&&fe.refreshFogUniforms(Qn,ie),fe.refreshMaterialUniforms(Qn,X,B,z,m.state.transmissionRenderTarget[M.id]),ml.upload(C,ud(Ce),Qn,A)),X.isShaderMaterial&&X.uniformsNeedUpdate===!0&&(ml.upload(C,ud(Ce),Qn,A),X.uniformsNeedUpdate=!1),X.isSpriteMaterial&&wt.setValue(C,"center",F.center),wt.setValue(C,"modelViewMatrix",F.modelViewMatrix),wt.setValue(C,"normalMatrix",F.normalMatrix),wt.setValue(C,"modelMatrix",F.matrixWorld),X.isShaderMaterial||X.isRawShaderMaterial){const cn=X.uniformsGroups;for(let yn=0,Oc=cn.length;yn0&&A.useMultisampledRTT(M)===!1?F=Te.get(M).__webglMultisampledFramebuffer:Array.isArray(Ve)?F=Ve[Z]:F=Ve,R.copy(M.viewport),k.copy(M.scissor),I=M.scissorTest}else R.copy(ge).multiplyScalar(B).floor(),k.copy(be).multiplyScalar(B).floor(),I=Be;if(Z!==0&&(F=C_),Ee.bindFramebuffer(C.FRAMEBUFFER,F)&&X&&Ee.drawBuffers(M,F),Ee.viewport(R),Ee.scissor(k),Ee.setScissorTest(I),ie){const ve=Te.get(M.texture);C.framebufferTexture2D(C.FRAMEBUFFER,C.COLOR_ATTACHMENT0,C.TEXTURE_CUBE_MAP_POSITIVE_X+Q,ve.__webglTexture,Z)}else if(ue){const ve=Te.get(M.texture),$e=Q;C.framebufferTextureLayer(C.FRAMEBUFFER,C.COLOR_ATTACHMENT0,ve.__webglTexture,Z,$e)}else if(M!==null&&Z!==0){const ve=Te.get(M.texture);C.framebufferTexture2D(C.FRAMEBUFFER,C.COLOR_ATTACHMENT0,C.TEXTURE_2D,ve.__webglTexture,Z)}y=-1},this.readRenderTargetPixels=function(M,Q,Z,X,F,ie,ue){if(!(M&&M.isWebGLRenderTarget)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");return}let _e=Te.get(M).__webglFramebuffer;if(M.isWebGLCubeRenderTarget&&ue!==void 0&&(_e=_e[ue]),_e){Ee.bindFramebuffer(C.FRAMEBUFFER,_e);try{const ve=M.texture,$e=ve.format,Ve=ve.type;if(!Je.textureFormatReadable($e)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");return}if(!Je.textureTypeReadable(Ve)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");return}Q>=0&&Q<=M.width-X&&Z>=0&&Z<=M.height-F&&C.readPixels(Q,Z,X,F,Xe.convert($e),Xe.convert(Ve),ie)}finally{const ve=P!==null?Te.get(P).__webglFramebuffer:null;Ee.bindFramebuffer(C.FRAMEBUFFER,ve)}}},this.readRenderTargetPixelsAsync=async function(M,Q,Z,X,F,ie,ue){if(!(M&&M.isWebGLRenderTarget))throw new Error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");let _e=Te.get(M).__webglFramebuffer;if(M.isWebGLCubeRenderTarget&&ue!==void 0&&(_e=_e[ue]),_e){const ve=M.texture,$e=ve.format,Ve=ve.type;if(!Je.textureFormatReadable($e))throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in RGBA or implementation defined format.");if(!Je.textureTypeReadable(Ve))throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in UnsignedByteType or implementation defined type.");if(Q>=0&&Q<=M.width-X&&Z>=0&&Z<=M.height-F){Ee.bindFramebuffer(C.FRAMEBUFFER,_e);const Re=C.createBuffer();C.bindBuffer(C.PIXEL_PACK_BUFFER,Re),C.bufferData(C.PIXEL_PACK_BUFFER,ie.byteLength,C.STREAM_READ),C.readPixels(Q,Z,X,F,Xe.convert($e),Xe.convert(Ve),0);const rt=P!==null?Te.get(P).__webglFramebuffer:null;Ee.bindFramebuffer(C.FRAMEBUFFER,rt);const ht=C.fenceSync(C.SYNC_GPU_COMMANDS_COMPLETE,0);return C.flush(),await Ly(C,ht,4),C.bindBuffer(C.PIXEL_PACK_BUFFER,Re),C.getBufferSubData(C.PIXEL_PACK_BUFFER,0,ie),C.deleteBuffer(Re),C.deleteSync(ht),ie}else throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: requested read bounds are out of range.")}},this.copyFramebufferToTexture=function(M,Q=null,Z=0){M.isTexture!==!0&&(vr("WebGLRenderer: copyFramebufferToTexture function signature has changed."),Q=arguments[0]||null,M=arguments[1]);const X=Math.pow(2,-Z),F=Math.floor(M.image.width*X),ie=Math.floor(M.image.height*X),ue=Q!==null?Q.x:0,_e=Q!==null?Q.y:0;A.setTexture2D(M,0),C.copyTexSubImage2D(C.TEXTURE_2D,Z,0,0,ue,_e,F,ie),Ee.unbindTexture()};const k_=C.createFramebuffer(),L_=C.createFramebuffer();this.copyTextureToTexture=function(M,Q,Z=null,X=null,F=0,ie=null){M.isTexture!==!0&&(vr("WebGLRenderer: copyTextureToTexture function signature has changed."),X=arguments[0]||null,M=arguments[1],Q=arguments[2],ie=arguments[3]||0,Z=null),ie===null&&(F!==0?(vr("WebGLRenderer: copyTextureToTexture function signature has changed to support src and dst mipmap levels."),ie=F,F=0):ie=0);let ue,_e,ve,$e,Ve,Re,rt,ht,Ut;const Rt=M.isCompressedTexture?M.mipmaps[ie]:M.image;if(Z!==null)ue=Z.max.x-Z.min.x,_e=Z.max.y-Z.min.y,ve=Z.isBox3?Z.max.z-Z.min.z:1,$e=Z.min.x,Ve=Z.min.y,Re=Z.isBox3?Z.min.z:0;else{const Bn=Math.pow(2,-F);ue=Math.floor(Rt.width*Bn),_e=Math.floor(Rt.height*Bn),M.isDataArrayTexture?ve=Rt.depth:M.isData3DTexture?ve=Math.floor(Rt.depth*Bn):ve=1,$e=0,Ve=0,Re=0}X!==null?(rt=X.x,ht=X.y,Ut=X.z):(rt=0,ht=0,Ut=0);const ot=Xe.convert(Q.format),Ce=Xe.convert(Q.type);let Yt;Q.isData3DTexture?(A.setTexture3D(Q,0),Yt=C.TEXTURE_3D):Q.isDataArrayTexture||Q.isCompressedArrayTexture?(A.setTexture2DArray(Q,0),Yt=C.TEXTURE_2D_ARRAY):(A.setTexture2D(Q,0),Yt=C.TEXTURE_2D),C.pixelStorei(C.UNPACK_FLIP_Y_WEBGL,Q.flipY),C.pixelStorei(C.UNPACK_PREMULTIPLY_ALPHA_WEBGL,Q.premultiplyAlpha),C.pixelStorei(C.UNPACK_ALIGNMENT,Q.unpackAlignment);const ut=C.getParameter(C.UNPACK_ROW_LENGTH),qn=C.getParameter(C.UNPACK_IMAGE_HEIGHT),sr=C.getParameter(C.UNPACK_SKIP_PIXELS),En=C.getParameter(C.UNPACK_SKIP_ROWS),lo=C.getParameter(C.UNPACK_SKIP_IMAGES);C.pixelStorei(C.UNPACK_ROW_LENGTH,Rt.width),C.pixelStorei(C.UNPACK_IMAGE_HEIGHT,Rt.height),C.pixelStorei(C.UNPACK_SKIP_PIXELS,$e),C.pixelStorei(C.UNPACK_SKIP_ROWS,Ve),C.pixelStorei(C.UNPACK_SKIP_IMAGES,Re);const wt=M.isDataArrayTexture||M.isData3DTexture,Qn=Q.isDataArrayTexture||Q.isData3DTexture;if(M.isDepthTexture){const Bn=Te.get(M),cn=Te.get(Q),yn=Te.get(Bn.__renderTarget),Oc=Te.get(cn.__renderTarget);Ee.bindFramebuffer(C.READ_FRAMEBUFFER,yn.__webglFramebuffer),Ee.bindFramebuffer(C.DRAW_FRAMEBUFFER,Oc.__webglFramebuffer);for(let ws=0;wsMath.PI&&(n-=Sn),i<-Math.PI?i+=Sn:i>Math.PI&&(i-=Sn),n<=i?this._spherical.theta=Math.max(n,Math.min(i,this._spherical.theta)):this._spherical.theta=this._spherical.theta>(n+i)/2?Math.max(n,this._spherical.theta):Math.min(i,this._spherical.theta)),this._spherical.phi=Math.max(this.minPolarAngle,Math.min(this.maxPolarAngle,this._spherical.phi)),this._spherical.makeSafe(),this.enableDamping===!0?this.target.addScaledVector(this._panOffset,this.dampingFactor):this.target.add(this._panOffset),this.target.sub(this.cursor),this.target.clampLength(this.minTargetRadius,this.maxTargetRadius),this.target.add(this.cursor);let r=!1;if(this.zoomToCursor&&this._performCursorZoom||this.object.isOrthographicCamera)this._spherical.radius=this._clampDistance(this._spherical.radius);else{const o=this._spherical.radius;this._spherical.radius=this._clampDistance(this._spherical.radius*this._scale),r=o!=this._spherical.radius}if(Ft.setFromSpherical(this._spherical),Ft.applyQuaternion(this._quatInverse),t.copy(this.target).add(Ft),this.object.lookAt(this.target),this.enableDamping===!0?(this._sphericalDelta.theta*=1-this.dampingFactor,this._sphericalDelta.phi*=1-this.dampingFactor,this._panOffset.multiplyScalar(1-this.dampingFactor)):(this._sphericalDelta.set(0,0,0),this._panOffset.set(0,0,0)),this.zoomToCursor&&this._performCursorZoom){let o=null;if(this.object.isPerspectiveCamera){const a=Ft.length();o=this._clampDistance(a*this._scale);const l=a-o;this.object.position.addScaledVector(this._dollyDirection,l),this.object.updateMatrixWorld(),r=!!l}else if(this.object.isOrthographicCamera){const a=new U(this._mouse.x,this._mouse.y,0);a.unproject(this.object);const l=this.object.zoom;this.object.zoom=Math.max(this.minZoom,Math.min(this.maxZoom,this.object.zoom/this._scale)),this.object.updateProjectionMatrix(),r=l!==this.object.zoom;const c=new U(this._mouse.x,this._mouse.y,0);c.unproject(this.object),this.object.position.sub(c).add(a),this.object.updateMatrixWorld(),o=Ft.length()}else console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."),this.zoomToCursor=!1;o!==null&&(this.screenSpacePanning?this.target.set(0,0,-1).transformDirection(this.object.matrix).multiplyScalar(o).add(this.object.position):(za.origin.copy(this.object.position),za.direction.set(0,0,-1).transformDirection(this.object.matrix),Math.abs(this.object.up.dot(za.direction))Kc||8*(1-this._lastQuaternion.dot(this.object.quaternion))>Kc||this._lastTargetPosition.distanceToSquared(this.target)>Kc?(this.dispatchEvent(Ip),this._lastPosition.copy(this.object.position),this._lastQuaternion.copy(this.object.quaternion),this._lastTargetPosition.copy(this.target),!0):!1}_getAutoRotationAngle(e){return e!==null?Sn/60*this.autoRotateSpeed*e:Sn/60/60*this.autoRotateSpeed}_getZoomScale(e){const t=Math.abs(e*.01);return Math.pow(.95,this.zoomSpeed*t)}_rotateLeft(e){this._sphericalDelta.theta-=e}_rotateUp(e){this._sphericalDelta.phi-=e}_panLeft(e,t){Ft.setFromMatrixColumn(t,0),Ft.multiplyScalar(-e),this._panOffset.add(Ft)}_panUp(e,t){this.screenSpacePanning===!0?Ft.setFromMatrixColumn(t,1):(Ft.setFromMatrixColumn(t,0),Ft.crossVectors(this.object.up,Ft)),Ft.multiplyScalar(e),this._panOffset.add(Ft)}_pan(e,t){const n=this.domElement;if(this.object.isPerspectiveCamera){const i=this.object.position;Ft.copy(i).sub(this.target);let r=Ft.length();r*=Math.tan(this.object.fov/2*Math.PI/180),this._panLeft(2*e*r/n.clientHeight,this.object.matrix),this._panUp(2*t*r/n.clientHeight,this.object.matrix)}else this.object.isOrthographicCamera?(this._panLeft(e*(this.object.right-this.object.left)/this.object.zoom/n.clientWidth,this.object.matrix),this._panUp(t*(this.object.top-this.object.bottom)/this.object.zoom/n.clientHeight,this.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),this.enablePan=!1)}_dollyOut(e){this.object.isPerspectiveCamera||this.object.isOrthographicCamera?this._scale/=e:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),this.enableZoom=!1)}_dollyIn(e){this.object.isPerspectiveCamera||this.object.isOrthographicCamera?this._scale*=e:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),this.enableZoom=!1)}_updateZoomParameters(e,t){if(!this.zoomToCursor)return;this._performCursorZoom=!0;const n=this.domElement.getBoundingClientRect(),i=e-n.left,r=t-n.top,o=n.width,a=n.height;this._mouse.x=i/o*2-1,this._mouse.y=-(r/a)*2+1,this._dollyDirection.set(this._mouse.x,this._mouse.y,1).unproject(this.object).sub(this.object.position).normalize()}_clampDistance(e){return Math.max(this.minDistance,Math.min(this.maxDistance,e))}_handleMouseDownRotate(e){this._rotateStart.set(e.clientX,e.clientY)}_handleMouseDownDolly(e){this._updateZoomParameters(e.clientX,e.clientX),this._dollyStart.set(e.clientX,e.clientY)}_handleMouseDownPan(e){this._panStart.set(e.clientX,e.clientY)}_handleMouseMoveRotate(e){this._rotateEnd.set(e.clientX,e.clientY),this._rotateDelta.subVectors(this._rotateEnd,this._rotateStart).multiplyScalar(this.rotateSpeed);const t=this.domElement;this._rotateLeft(Sn*this._rotateDelta.x/t.clientHeight),this._rotateUp(Sn*this._rotateDelta.y/t.clientHeight),this._rotateStart.copy(this._rotateEnd),this.update()}_handleMouseMoveDolly(e){this._dollyEnd.set(e.clientX,e.clientY),this._dollyDelta.subVectors(this._dollyEnd,this._dollyStart),this._dollyDelta.y>0?this._dollyOut(this._getZoomScale(this._dollyDelta.y)):this._dollyDelta.y<0&&this._dollyIn(this._getZoomScale(this._dollyDelta.y)),this._dollyStart.copy(this._dollyEnd),this.update()}_handleMouseMovePan(e){this._panEnd.set(e.clientX,e.clientY),this._panDelta.subVectors(this._panEnd,this._panStart).multiplyScalar(this.panSpeed),this._pan(this._panDelta.x,this._panDelta.y),this._panStart.copy(this._panEnd),this.update()}_handleMouseWheel(e){this._updateZoomParameters(e.clientX,e.clientY),e.deltaY<0?this._dollyIn(this._getZoomScale(e.deltaY)):e.deltaY>0&&this._dollyOut(this._getZoomScale(e.deltaY)),this.update()}_handleKeyDown(e){let t=!1;switch(e.code){case this.keys.UP:e.ctrlKey||e.metaKey||e.shiftKey?this.enableRotate&&this._rotateUp(Sn*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(0,this.keyPanSpeed),t=!0;break;case this.keys.BOTTOM:e.ctrlKey||e.metaKey||e.shiftKey?this.enableRotate&&this._rotateUp(-Sn*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(0,-this.keyPanSpeed),t=!0;break;case this.keys.LEFT:e.ctrlKey||e.metaKey||e.shiftKey?this.enableRotate&&this._rotateLeft(Sn*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(this.keyPanSpeed,0),t=!0;break;case this.keys.RIGHT:e.ctrlKey||e.metaKey||e.shiftKey?this.enableRotate&&this._rotateLeft(-Sn*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(-this.keyPanSpeed,0),t=!0;break}t&&(e.preventDefault(),this.update())}_handleTouchStartRotate(e){if(this._pointers.length===1)this._rotateStart.set(e.pageX,e.pageY);else{const t=this._getSecondPointerPosition(e),n=.5*(e.pageX+t.x),i=.5*(e.pageY+t.y);this._rotateStart.set(n,i)}}_handleTouchStartPan(e){if(this._pointers.length===1)this._panStart.set(e.pageX,e.pageY);else{const t=this._getSecondPointerPosition(e),n=.5*(e.pageX+t.x),i=.5*(e.pageY+t.y);this._panStart.set(n,i)}}_handleTouchStartDolly(e){const t=this._getSecondPointerPosition(e),n=e.pageX-t.x,i=e.pageY-t.y,r=Math.sqrt(n*n+i*i);this._dollyStart.set(0,r)}_handleTouchStartDollyPan(e){this.enableZoom&&this._handleTouchStartDolly(e),this.enablePan&&this._handleTouchStartPan(e)}_handleTouchStartDollyRotate(e){this.enableZoom&&this._handleTouchStartDolly(e),this.enableRotate&&this._handleTouchStartRotate(e)}_handleTouchMoveRotate(e){if(this._pointers.length==1)this._rotateEnd.set(e.pageX,e.pageY);else{const n=this._getSecondPointerPosition(e),i=.5*(e.pageX+n.x),r=.5*(e.pageY+n.y);this._rotateEnd.set(i,r)}this._rotateDelta.subVectors(this._rotateEnd,this._rotateStart).multiplyScalar(this.rotateSpeed);const t=this.domElement;this._rotateLeft(Sn*this._rotateDelta.x/t.clientHeight),this._rotateUp(Sn*this._rotateDelta.y/t.clientHeight),this._rotateStart.copy(this._rotateEnd)}_handleTouchMovePan(e){if(this._pointers.length===1)this._panEnd.set(e.pageX,e.pageY);else{const t=this._getSecondPointerPosition(e),n=.5*(e.pageX+t.x),i=.5*(e.pageY+t.y);this._panEnd.set(n,i)}this._panDelta.subVectors(this._panEnd,this._panStart).multiplyScalar(this.panSpeed),this._pan(this._panDelta.x,this._panDelta.y),this._panStart.copy(this._panEnd)}_handleTouchMoveDolly(e){const t=this._getSecondPointerPosition(e),n=e.pageX-t.x,i=e.pageY-t.y,r=Math.sqrt(n*n+i*i);this._dollyEnd.set(0,r),this._dollyDelta.set(0,Math.pow(this._dollyEnd.y/this._dollyStart.y,this.zoomSpeed)),this._dollyOut(this._dollyDelta.y),this._dollyStart.copy(this._dollyEnd);const o=(e.pageX+t.x)*.5,a=(e.pageY+t.y)*.5;this._updateZoomParameters(o,a)}_handleTouchMoveDollyPan(e){this.enableZoom&&this._handleTouchMoveDolly(e),this.enablePan&&this._handleTouchMovePan(e)}_handleTouchMoveDollyRotate(e){this.enableZoom&&this._handleTouchMoveDolly(e),this.enableRotate&&this._handleTouchMoveRotate(e)}_addPointer(e){this._pointers.push(e.pointerId)}_removePointer(e){delete this._pointerPositions[e.pointerId];for(let t=0;t=2.0 are supported."));return}const c=new wT(r,{path:t||this.resourcePath||"",crossOrigin:this.crossOrigin,requestHeader:this.requestHeader,manager:this.manager,ktx2Loader:this.ktx2Loader,meshoptDecoder:this.meshoptDecoder});c.fileLoader.setRequestHeader(this.requestHeader);for(let h=0;h=0&&a[u]===void 0&&console.warn('THREE.GLTFLoader: Unknown extension "'+u+'".')}}c.setExtensions(o),c.setPlugins(a),c.parse(n,i)}parseAsync(e,t){const n=this;return new Promise(function(i,r){n.parse(e,t,i,r)})}}function H1(){let s={};return{get:function(e){return s[e]},add:function(e,t){s[e]=t},remove:function(e){delete s[e]},removeAll:function(){s={}}}}const qe={KHR_BINARY_GLTF:"KHR_binary_glTF",KHR_DRACO_MESH_COMPRESSION:"KHR_draco_mesh_compression",KHR_LIGHTS_PUNCTUAL:"KHR_lights_punctual",KHR_MATERIALS_CLEARCOAT:"KHR_materials_clearcoat",KHR_MATERIALS_DISPERSION:"KHR_materials_dispersion",KHR_MATERIALS_IOR:"KHR_materials_ior",KHR_MATERIALS_SHEEN:"KHR_materials_sheen",KHR_MATERIALS_SPECULAR:"KHR_materials_specular",KHR_MATERIALS_TRANSMISSION:"KHR_materials_transmission",KHR_MATERIALS_IRIDESCENCE:"KHR_materials_iridescence",KHR_MATERIALS_ANISOTROPY:"KHR_materials_anisotropy",KHR_MATERIALS_UNLIT:"KHR_materials_unlit",KHR_MATERIALS_VOLUME:"KHR_materials_volume",KHR_TEXTURE_BASISU:"KHR_texture_basisu",KHR_TEXTURE_TRANSFORM:"KHR_texture_transform",KHR_MESH_QUANTIZATION:"KHR_mesh_quantization",KHR_MATERIALS_EMISSIVE_STRENGTH:"KHR_materials_emissive_strength",EXT_MATERIALS_BUMP:"EXT_materials_bump",EXT_TEXTURE_WEBP:"EXT_texture_webp",EXT_TEXTURE_AVIF:"EXT_texture_avif",EXT_MESHOPT_COMPRESSION:"EXT_meshopt_compression",EXT_MESH_GPU_INSTANCING:"EXT_mesh_gpu_instancing"};class W1{constructor(e){this.parser=e,this.name=qe.KHR_LIGHTS_PUNCTUAL,this.cache={refs:{},uses:{}}}_markDefs(){const e=this.parser,t=this.parser.json.nodes||[];for(let n=0,i=t.length;n=0)throw new Error("THREE.GLTFLoader: setKTX2Loader must be called before loading KTX2 textures");return null}return t.loadTextureImage(e,r.source,o)}}class lT{constructor(e){this.parser=e,this.name=qe.EXT_TEXTURE_WEBP,this.isSupported=null}loadTexture(e){const t=this.name,n=this.parser,i=n.json,r=i.textures[e];if(!r.extensions||!r.extensions[t])return null;const o=r.extensions[t],a=i.images[o.source];let l=n.textureLoader;if(a.uri){const c=n.options.manager.getHandler(a.uri);c!==null&&(l=c)}return this.detectSupport().then(function(c){if(c)return n.loadTextureImage(e,o.source,l);if(i.extensionsRequired&&i.extensionsRequired.indexOf(t)>=0)throw new Error("THREE.GLTFLoader: WebP required by asset but unsupported.");return n.loadTexture(e)})}detectSupport(){return this.isSupported||(this.isSupported=new Promise(function(e){const t=new Image;t.src="data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",t.onload=t.onerror=function(){e(t.height===1)}})),this.isSupported}}class cT{constructor(e){this.parser=e,this.name=qe.EXT_TEXTURE_AVIF,this.isSupported=null}loadTexture(e){const t=this.name,n=this.parser,i=n.json,r=i.textures[e];if(!r.extensions||!r.extensions[t])return null;const o=r.extensions[t],a=i.images[o.source];let l=n.textureLoader;if(a.uri){const c=n.options.manager.getHandler(a.uri);c!==null&&(l=c)}return this.detectSupport().then(function(c){if(c)return n.loadTextureImage(e,o.source,l);if(i.extensionsRequired&&i.extensionsRequired.indexOf(t)>=0)throw new Error("THREE.GLTFLoader: AVIF required by asset but unsupported.");return n.loadTexture(e)})}detectSupport(){return this.isSupported||(this.isSupported=new Promise(function(e){const t=new Image;t.src="data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAABcAAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAEAAAABAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQAMAAAAABNjb2xybmNseAACAAIABoAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAAB9tZGF0EgAKCBgABogQEDQgMgkQAAAAB8dSLfI=",t.onload=t.onerror=function(){e(t.height===1)}})),this.isSupported}}class hT{constructor(e){this.name=qe.EXT_MESHOPT_COMPRESSION,this.parser=e}loadBufferView(e){const t=this.parser.json,n=t.bufferViews[e];if(n.extensions&&n.extensions[this.name]){const i=n.extensions[this.name],r=this.parser.getDependency("buffer",i.buffer),o=this.parser.options.meshoptDecoder;if(!o||!o.supported){if(t.extensionsRequired&&t.extensionsRequired.indexOf(this.name)>=0)throw new Error("THREE.GLTFLoader: setMeshoptDecoder must be called before loading compressed files");return null}return r.then(function(a){const l=i.byteOffset||0,c=i.byteLength||0,h=i.count,u=i.byteStride,f=new Uint8Array(a,l,c);return o.decodeGltfBufferAsync?o.decodeGltfBufferAsync(h,u,f,i.mode,i.filter).then(function(d){return d.buffer}):o.ready.then(function(){const d=new ArrayBuffer(h*u);return o.decodeGltfBuffer(new Uint8Array(d),h,u,f,i.mode,i.filter),d})})}else return null}}class uT{constructor(e){this.name=qe.EXT_MESH_GPU_INSTANCING,this.parser=e}createNodeMesh(e){const t=this.parser.json,n=t.nodes[e];if(!n.extensions||!n.extensions[this.name]||n.mesh===void 0)return null;const i=t.meshes[n.mesh];for(const c of i.primitives)if(c.mode!==Vn.TRIANGLES&&c.mode!==Vn.TRIANGLE_STRIP&&c.mode!==Vn.TRIANGLE_FAN&&c.mode!==void 0)return null;const o=n.extensions[this.name].attributes,a=[],l={};for(const c in o)a.push(this.parser.getDependency("accessor",o[c]).then(h=>(l[c]=h,l[c])));return a.length<1?null:(a.push(this.parser.createNodeMesh(e)),Promise.all(a).then(c=>{const h=c.pop(),u=h.isGroup?h.children:[h],f=c[0].count,d=[];for(const p of u){const O=new Ge,g=new U,m=new yi,b=new U(1,1,1),x=new fS(p.geometry,p.material,f);for(let _=0;_0||s.search(/^data\:image\/jpeg/)===0?"image/jpeg":s.search(/\.webp($|\?)/i)>0||s.search(/^data\:image\/webp/)===0?"image/webp":s.search(/\.ktx2($|\?)/i)>0||s.search(/^data\:image\/ktx2/)===0?"image/ktx2":"image/png"}const MT=new Ge;class wT{constructor(e={},t={}){this.json=e,this.extensions={},this.plugins={},this.options=t,this.cache=new H1,this.associations=new Map,this.primitiveCache={},this.nodeCache={},this.meshCache={refs:{},uses:{}},this.cameraCache={refs:{},uses:{}},this.lightCache={refs:{},uses:{}},this.sourceCache={},this.textureCache={},this.nodeNamesUsed={};let n=!1,i=-1,r=!1,o=-1;if(typeof navigator<"u"){const a=navigator.userAgent;n=/^((?!chrome|android).)*safari/i.test(a)===!0;const l=a.match(/Version\/(\d+)/);i=n&&l?parseInt(l[1],10):-1,r=a.indexOf("Firefox")>-1,o=r?a.match(/Firefox\/([0-9]+)\./)[1]:-1}typeof createImageBitmap>"u"||n&&i<17||r&&o<98?this.textureLoader=new kS(this.options.manager):this.textureLoader=new QS(this.options.manager),this.textureLoader.setCrossOrigin(this.options.crossOrigin),this.textureLoader.setRequestHeader(this.options.requestHeader),this.fileLoader=new Af(this.options.manager),this.fileLoader.setResponseType("arraybuffer"),this.options.crossOrigin==="use-credentials"&&this.fileLoader.setWithCredentials(!0)}setExtensions(e){this.extensions=e}setPlugins(e){this.plugins=e}parse(e,t){const n=this,i=this.json,r=this.extensions;this.cache.removeAll(),this.nodeCache={},this._invokeAll(function(o){return o._markDefs&&o._markDefs()}),Promise.all(this._invokeAll(function(o){return o.beforeRoot&&o.beforeRoot()})).then(function(){return Promise.all([n.getDependencies("scene"),n.getDependencies("animation"),n.getDependencies("camera")])}).then(function(o){const a={scene:o[0][i.scene||0],scenes:o[0],animations:o[1],cameras:o[2],asset:i.asset,parser:n,userData:{}};return ks(r,a,i),Di(a,i),Promise.all(n._invokeAll(function(l){return l.afterRoot&&l.afterRoot(a)})).then(function(){for(const l of a.scenes)l.updateMatrixWorld();e(a)})}).catch(t)}_markDefs(){const e=this.json.nodes||[],t=this.json.skins||[],n=this.json.meshes||[];for(let i=0,r=t.length;i{const l=this.associations.get(o);l!=null&&this.associations.set(a,l);for(const[c,h]of o.children.entries())r(h,a.children[c])};return r(n,i),i.name+="_instance_"+e.uses[t]++,i}_invokeOne(e){const t=Object.values(this.plugins);t.push(this);for(let n=0;n=2&&g.setY(y,T[E*l+1]),l>=3&&g.setZ(y,T[E*l+2]),l>=4&&g.setW(y,T[E*l+3]),l>=5)throw new Error("THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.")}g.normalized=p}return g})}loadTexture(e){const t=this.json,n=this.options,r=t.textures[e].source,o=t.images[r];let a=this.textureLoader;if(o.uri){const l=n.manager.getHandler(o.uri);l!==null&&(a=l)}return this.loadTextureImage(e,r,a)}loadTextureImage(e,t,n){const i=this,r=this.json,o=r.textures[e],a=r.images[t],l=(a.uri||a.bufferView)+":"+o.sampler;if(this.textureCache[l])return this.textureCache[l];const c=this.loadImageSource(t,n).then(function(h){h.flipY=!1,h.name=o.name||a.name||"",h.name===""&&typeof a.uri=="string"&&a.uri.startsWith("data:image/")===!1&&(h.name=a.uri);const f=(r.samplers||{})[o.sampler]||{};return h.magFilter=Bp[f.magFilter]||Ln,h.minFilter=Bp[f.minFilter]||Bi,h.wrapS=Fp[f.wrapS]||zr,h.wrapT=Fp[f.wrapT]||zr,h.generateMipmaps=!h.isCompressedTexture&&h.minFilter!==gn&&h.minFilter!==Ln,i.associations.set(h,{textures:e}),h}).catch(function(){return null});return this.textureCache[l]=c,c}loadImageSource(e,t){const n=this,i=this.json,r=this.options;if(this.sourceCache[e]!==void 0)return this.sourceCache[e].then(u=>u.clone());const o=i.images[e],a=self.URL||self.webkitURL;let l=o.uri||"",c=!1;if(o.bufferView!==void 0)l=n.getDependency("bufferView",o.bufferView).then(function(u){c=!0;const f=new Blob([u],{type:o.mimeType});return l=a.createObjectURL(f),l});else if(o.uri===void 0)throw new Error("THREE.GLTFLoader: Image "+e+" is missing URI and bufferView");const h=Promise.resolve(l).then(function(u){return new Promise(function(f,d){let p=f;t.isImageBitmapLoader===!0&&(p=function(O){const g=new qt(O);g.needsUpdate=!0,f(g)}),t.load(No.resolveURL(u,r.path),p,void 0,d)})}).then(function(u){return c===!0&&a.revokeObjectURL(l),Di(u,o),u.userData.mimeType=o.mimeType||bT(o.uri),u}).catch(function(u){throw console.error("THREE.GLTFLoader: Couldn't load texture",l),u});return this.sourceCache[e]=h,h}assignTexture(e,t,n,i){const r=this;return this.getDependency("texture",n.index).then(function(o){if(!o)return null;if(n.texCoord!==void 0&&n.texCoord>0&&(o=o.clone(),o.channel=n.texCoord),r.extensions[qe.KHR_TEXTURE_TRANSFORM]){const a=n.extensions!==void 0?n.extensions[qe.KHR_TEXTURE_TRANSFORM]:void 0;if(a){const l=r.associations.get(o);o=r.extensions[qe.KHR_TEXTURE_TRANSFORM].extendTexture(o,a),r.associations.set(o,l)}}return i!==void 0&&(o.colorSpace=i),e[t]=o,o})}assignFinalMaterial(e){const t=e.geometry;let n=e.material;const i=t.attributes.tangent===void 0,r=t.attributes.color!==void 0,o=t.attributes.normal===void 0;if(e.isPoints){const a="PointsMaterial:"+n.uuid;let l=this.cache.get(a);l||(l=new Mr,Dn.prototype.copy.call(l,n),l.color.copy(n.color),l.map=n.map,l.sizeAttenuation=!1,this.cache.add(a,l)),n=l}else if(e.isLine){const a="LineBasicMaterial:"+n.uuid;let l=this.cache.get(a);l||(l=new Uo,Dn.prototype.copy.call(l,n),l.color.copy(n.color),l.map=n.map,this.cache.add(a,l)),n=l}if(i||r||o){let a="ClonedMaterial:"+n.uuid+":";i&&(a+="derivative-tangents:"),r&&(a+="vertex-colors:"),o&&(a+="flat-shading:");let l=this.cache.get(a);l||(l=n.clone(),r&&(l.vertexColors=!0),o&&(l.flatShading=!0),i&&(l.normalScale&&(l.normalScale.y*=-1),l.clearcoatNormalScale&&(l.clearcoatNormalScale.y*=-1)),this.cache.add(a,l),this.associations.set(l,this.associations.get(n))),n=l}e.material=n}getMaterialType(){return Lr}loadMaterial(e){const t=this,n=this.json,i=this.extensions,r=n.materials[e];let o;const a={},l=r.extensions||{},c=[];if(l[qe.KHR_MATERIALS_UNLIT]){const u=i[qe.KHR_MATERIALS_UNLIT];o=u.getMaterialType(),c.push(u.extendParams(a,r,t))}else{const u=r.pbrMetallicRoughness||{};if(a.color=new De(1,1,1),a.opacity=1,Array.isArray(u.baseColorFactor)){const f=u.baseColorFactor;a.color.setRGB(f[0],f[1],f[2],xn),a.opacity=f[3]}u.baseColorTexture!==void 0&&c.push(t.assignTexture(a,"map",u.baseColorTexture,Xt)),a.metalness=u.metallicFactor!==void 0?u.metallicFactor:1,a.roughness=u.roughnessFactor!==void 0?u.roughnessFactor:1,u.metallicRoughnessTexture!==void 0&&(c.push(t.assignTexture(a,"metalnessMap",u.metallicRoughnessTexture)),c.push(t.assignTexture(a,"roughnessMap",u.metallicRoughnessTexture))),o=this._invokeOne(function(f){return f.getMaterialType&&f.getMaterialType(e)}),c.push(Promise.all(this._invokeAll(function(f){return f.extendMaterialParams&&f.extendMaterialParams(e,a)})))}r.doubleSided===!0&&(a.side=pi);const h=r.alphaMode||eh.OPAQUE;if(h===eh.BLEND?(a.transparent=!0,a.depthWrite=!1):(a.transparent=!1,h===eh.MASK&&(a.alphaTest=r.alphaCutoff!==void 0?r.alphaCutoff:.5)),r.normalTexture!==void 0&&o!==$s&&(c.push(t.assignTexture(a,"normalMap",r.normalTexture)),a.normalScale=new Ue(1,1),r.normalTexture.scale!==void 0)){const u=r.normalTexture.scale;a.normalScale.set(u,u)}if(r.occlusionTexture!==void 0&&o!==$s&&(c.push(t.assignTexture(a,"aoMap",r.occlusionTexture)),r.occlusionTexture.strength!==void 0&&(a.aoMapIntensity=r.occlusionTexture.strength)),r.emissiveFactor!==void 0&&o!==$s){const u=r.emissiveFactor;a.emissive=new De().setRGB(u[0],u[1],u[2],xn)}return r.emissiveTexture!==void 0&&o!==$s&&c.push(t.assignTexture(a,"emissiveMap",r.emissiveTexture,Xt)),Promise.all(c).then(function(){const u=new o(a);return r.name&&(u.name=r.name),Di(u,r),t.associations.set(u,{materials:e}),r.extensions&&ks(i,u,r),u})}createUniqueName(e){const t=mt.sanitizeNodeName(e||"");return t in this.nodeNamesUsed?t+"_"+ ++this.nodeNamesUsed[t]:(this.nodeNamesUsed[t]=0,t)}loadGeometries(e){const t=this,n=this.extensions,i=this.primitiveCache;function r(a){return n[qe.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(a,t).then(function(l){return $p(l,a,t)})}const o=[];for(let a=0,l=e.length;a0&&ST(m,r),m.name=t.createUniqueName(r.name||"mesh_"+e),Di(m,r),g.extensions&&ks(i,m,g),t.assignFinalMaterial(m),u.push(m)}for(let d=0,p=u.length;d1?h=new Oi:c.length===1?h=c[0]:h=new At,h!==c[0])for(let u=0,f=c.length;u{const u=new Map;for(const[f,d]of i.associations)(f instanceof Dn||f instanceof qt)&&u.set(f,d);return h.traverse(f=>{const d=i.associations.get(f);d!=null&&u.set(f,d)}),u};return i.associations=c(r),r})}_createAnimationTracks(e,t,n,i,r){const o=[],a=e.name?e.name:e.uuid,l=[];is[r.path]===is.weights?e.traverse(function(f){f.morphTargetInfluences&&l.push(f.name?f.name:f.uuid)}):l.push(a);let c;switch(is[r.path]){case is.weights:c=Wr;break;case is.rotation:c=jr;break;case is.position:case is.scale:c=qr;break;default:switch(n.itemSize){case 1:c=Wr;break;case 2:case 3:default:c=qr;break}break}const h=i.interpolation!==void 0?_T[i.interpolation]:Xo,u=this._getArrayFromAccessor(n);for(let f=0,d=l.length;f0?r[r.length-1]:"",smooth:o!==void 0?o.smooth:this.smooth,groupStart:o!==void 0?o.groupEnd:0,groupEnd:-1,groupCount:-1,inherited:!1,clone:function(l){const c={index:typeof l=="number"?l:this.index,name:this.name,mtllib:this.mtllib,smooth:this.smooth,groupStart:0,groupEnd:-1,groupCount:-1,inherited:!1};return c.clone=this.clone.bind(c),c}};return this.materials.push(a),a},currentMaterial:function(){if(this.materials.length>0)return this.materials[this.materials.length-1]},_finalize:function(i){const r=this.currentMaterial();if(r&&r.groupEnd===-1&&(r.groupEnd=this.geometry.vertices.length/3,r.groupCount=r.groupEnd-r.groupStart,r.inherited=!1),i&&this.materials.length>1)for(let o=this.materials.length-1;o>=0;o--)this.materials[o].groupCount<=0&&this.materials.splice(o,1);return i&&this.materials.length===0&&this.materials.push({name:"",smooth:this.smooth}),r}},n&&n.name&&typeof n.clone=="function"){const i=n.clone(0);i.inherited=!0,this.object.materials.push(i)}this.objects.push(this.object)},finalize:function(){this.object&&typeof this.object._finalize=="function"&&this.object._finalize(!0)},parseVertexIndex:function(e,t){const n=parseInt(e,10);return(n>=0?n-1:n+t/3)*3},parseNormalIndex:function(e,t){const n=parseInt(e,10);return(n>=0?n-1:n+t/3)*3},parseUVIndex:function(e,t){const n=parseInt(e,10);return(n>=0?n-1:n+t/2)*2},addVertex:function(e,t,n){const i=this.vertices,r=this.object.geometry.vertices;r.push(i[e+0],i[e+1],i[e+2]),r.push(i[t+0],i[t+1],i[t+2]),r.push(i[n+0],i[n+1],i[n+2])},addVertexPoint:function(e){const t=this.vertices;this.object.geometry.vertices.push(t[e+0],t[e+1],t[e+2])},addVertexLine:function(e){const t=this.vertices;this.object.geometry.vertices.push(t[e+0],t[e+1],t[e+2])},addNormal:function(e,t,n){const i=this.normals,r=this.object.geometry.normals;r.push(i[e+0],i[e+1],i[e+2]),r.push(i[t+0],i[t+1],i[t+2]),r.push(i[n+0],i[n+1],i[n+2])},addFaceNormal:function(e,t,n){const i=this.vertices,r=this.object.geometry.normals;zp.fromArray(i,e),nh.fromArray(i,t),Zp.fromArray(i,n),$n.subVectors(Zp,nh),Gp.subVectors(zp,nh),$n.cross(Gp),$n.normalize(),r.push($n.x,$n.y,$n.z),r.push($n.x,$n.y,$n.z),r.push($n.x,$n.y,$n.z)},addColor:function(e,t,n){const i=this.colors,r=this.object.geometry.colors;i[e]!==void 0&&r.push(i[e+0],i[e+1],i[e+2]),i[t]!==void 0&&r.push(i[t+0],i[t+1],i[t+2]),i[n]!==void 0&&r.push(i[n+0],i[n+1],i[n+2])},addUV:function(e,t,n){const i=this.uvs,r=this.object.geometry.uvs;r.push(i[e+0],i[e+1]),r.push(i[t+0],i[t+1]),r.push(i[n+0],i[n+1])},addDefaultUV:function(){const e=this.object.geometry.uvs;e.push(0,0),e.push(0,0),e.push(0,0)},addUVLine:function(e){const t=this.uvs;this.object.geometry.uvs.push(t[e+0],t[e+1])},addFace:function(e,t,n,i,r,o,a,l,c){const h=this.vertices.length;let u=this.parseVertexIndex(e,h),f=this.parseVertexIndex(t,h),d=this.parseVertexIndex(n,h);if(this.addVertex(u,f,d),this.addColor(u,f,d),a!==void 0&&a!==""){const p=this.normals.length;u=this.parseNormalIndex(a,p),f=this.parseNormalIndex(l,p),d=this.parseNormalIndex(c,p),this.addNormal(u,f,d)}else this.addFaceNormal(u,f,d);if(i!==void 0&&i!==""){const p=this.uvs.length;u=this.parseUVIndex(i,p),f=this.parseUVIndex(r,p),d=this.parseUVIndex(o,p),this.addUV(u,f,d),this.object.geometry.hasUVIndices=!0}else this.addDefaultUV()},addPointGeometry:function(e){this.object.geometry.type="Points";const t=this.vertices.length;for(let n=0,i=e.length;n=7?(Za.setRGB(parseFloat(u[4]),parseFloat(u[5]),parseFloat(u[6]),Xt),t.colors.push(Za.r,Za.g,Za.b)):t.colors.push(void 0,void 0,void 0);break;case"vn":t.normals.push(parseFloat(u[1]),parseFloat(u[2]),parseFloat(u[3]));break;case"vt":t.uvs.push(parseFloat(u[1]),parseFloat(u[2]));break}}else if(h==="f"){const f=c.slice(1).trim().split(Vp),d=[];for(let O=0,g=f.length;O0){const b=m.split("/");d.push(b)}}const p=d[0];for(let O=1,g=d.length-1;O1){const f=i[1].trim().toLowerCase();t.object.smooth=f!=="0"&&f!=="off"}else t.object.smooth=!0;const u=t.object.currentMaterial();u&&(u.smooth=t.object.smooth)}else{if(c==="\0")continue;console.warn('THREE.OBJLoader: Unexpected line: "'+c+'"')}}t.finalize();const r=new Oi;if(r.materialLibraries=[].concat(t.materialLibraries),!(t.objects.length===1&&t.objects[0].geometry.vertices.length===0)===!0)for(let a=0,l=t.objects.length;a0&&O.setAttribute("normal",new Wt(h.normals,3)),h.colors.length>0&&(p=!0,O.setAttribute("color",new Wt(h.colors,3))),h.hasUVIndices===!0&&O.setAttribute("uv",new Wt(h.uvs,2));const g=[];for(let b=0,x=u.length;b1){for(let b=0,x=u.length;b0){const a=new Mr({size:1,sizeAttenuation:!1}),l=new In;l.setAttribute("position",new Wt(t.vertices,3)),t.colors.length>0&&t.colors[0]!==void 0&&(l.setAttribute("color",new Wt(t.colors,3)),a.vertexColors=!0);const c=new pl(l,a);r.add(c)}return r}}const LT={class:"chart-3d-container"},DT={class:"data-panel"},IT={class:"model-controls"},UT=Wi({__name:"Chart3D",setup(s){const e=at(null),t=at(0),n=at(0),i=at(0),r=at("arrow"),o=at(null),a=at(null),l=Yl(),c=Tl(()=>l.value?1710618:15790320),h=Tl(()=>l.value?4890367:3368703);let u,f,d,p,O,g;const m=()=>{u=new oS,u.background=new De(c.value),f=new dn(75,e.value.clientWidth/e.value.clientHeight,.1,1e3),f.position.set(2,2,2),f.lookAt(0,0,0),d=new C1({antialias:!0}),d.setSize(e.value.clientWidth,e.value.clientHeight),e.value.appendChild(d.domElement),O=new L1(f,d.domElement),O.enableDamping=!0,_(r.value),T()},b=()=>{const k=new Oi,I=new Ef(.5,1.4,12),$=new Lr({color:h.value,metalness:.6,roughness:.3,envMapIntensity:1.2}),H=new jt(I,$);H.position.set(0,0,-.6),H.rotation.x=-Math.PI/2,k.add(H);const L=new js(.4,.4,1),z=new Lr({color:h.value,metalness:.6,roughness:.3,envMapIntensity:1.2}),B=new jt(L,z);return B.position.set(0,0,.3),k.add(B),k},x=()=>{const k=new Oi,I=new js(1,1,1),$=new Lr({color:h.value,metalness:.7,roughness:.3,envMapIntensity:1}),H=new jt(I,$);return k.add(H),k},_=k=>{switch(p&&u.remove(p),k){case"arrow":p=b();break;case"cube":p=x();break;case"custom":o?p=o.value:p=b();break;default:p=b()}u.add(p)},w=k=>{var L,z;const I=(L=k.target.files)==null?void 0:L[0];if(!I)return;const $=(z=I.name.split(".").pop())==null?void 0:z.toLowerCase(),H=new FileReader;H.onload=B=>{var se;const ee=(se=B.target)==null?void 0:se.result;if(ee)if($==="gltf"||$==="glb")new X1().parse(ee,"",be=>{o.value=be.scene,r.value="custom",_("custom")},be=>{vt.error("加载模型失败:"+be.message)});else if($==="obj"){const ge=new kT;try{const be=ge.parse(ee);o.value=be,r.value="custom",_("custom")}catch(be){vt.error("加载模型失败:"+be.message)}}else vt.error("不支持的文件格式,请使用.gltf、.glb或.obj格式的3D模型文件")},H.readAsText(I)},T=()=>{const k=new NS(16777215,6);u.add(k);const I=new gu(16777215,12);I.position.set(5,5,10),u.add(I);const $=new gu(16777215,1);$.position.set(-5,3,-5),u.add($);const H=new oO(4890367,1,10);H.position.set(2,2,2),u.add(H)},E=()=>{g=requestAnimationFrame(E),p&&p.rotation.set(Io.degToRad(n.value),Io.degToRad(i.value),Io.degToRad(t.value)),O.update(),d.render(u,f)},P=()=>{e.value&&f&&d&&(f.aspect=e.value.clientWidth/e.value.clientHeight,f.updateProjectionMatrix(),d.setSize(e.value.clientWidth,e.value.clientHeight))},y=k=>{const{pitch:I,roll:$,yaw:H}=k.detail;t.value=I,n.value=$,i.value=H},S=()=>{r.value==="arrow"?r.value="cube":(r.value,r.value="arrow"),_(r.value)},R=()=>{var k;(k=a.value)==null||k.click()};return ia(()=>{m(),E(),window.addEventListener("resize",P),window.addEventListener("data-imu",y)}),ql(()=>{g&&cancelAnimationFrame(g),window.removeEventListener("resize",P),window.removeEventListener("data-imu",y),d.dispose()}),(k,I)=>{const $=Me("el-button");return tt(),Dt("div",LT,[Ae("div",{ref_key:"container",ref:e,class:"canvas-container"},null,512),Ae("div",DT,[Ae("div",null,"Pitch: "+fn(t.value.toFixed(2))+"°",1),Ae("div",null,"Roll: "+fn(n.value.toFixed(2))+"°",1),Ae("div",null,"Yaw: "+fn(i.value.toFixed(2))+"°",1),Ae("div",IT,[G($,{class:"model-switch",onClick:S,size:"small"},{default:te(()=>I[0]||(I[0]=[Et(" 切换模型 ")])),_:1}),G($,{class:"model-upload",onClick:R,size:"small"},{default:te(()=>I[1]||(I[1]=[Et(" 导入模型 ")])),_:1}),Ae("input",{ref_key:"fileInput",ref:a,type:"file",accept:".gltf,.glb,.obj",style:{display:"none"},onChange:w},null,544)])])])}}}),NT=ji(UT,[["__scopeId","data-v-ff4dfa3f"]]),QT={class:"data-table-container"},BT={class:"operation-buttons"},FT={key:1},$T={key:1},VT={key:1},zT=Wi({__name:"DataTable",setup(s){const e=at([]);let t=1;const n=(c,h)=>({id:t++,key:c,name:c,description:"",value:h,min:typeof h=="number"?h:null,max:typeof h=="number"?h:null,lastUpdate:dd().format("YYYY-MM-DD HH:mm:ss.SSS"),updateCount:1,isEditing:!1}),i=(c,h)=>{c.value=h,c.lastUpdate=dd().format("YYYY-MM-DD HH:mm:ss.SSS"),c.updateCount++,typeof h=="number"&&((c.min===null||hc.max)&&(c.max=h))},r=c=>{const h=c.detail;typeof h!="object"||h===null||Object.entries(h).forEach(([u,f])=>{const d=e.value.find(p=>p.key===u);d?i(d,f):e.value.push(n(u,f))})},o=c=>{c.isEditing=!0},a=c=>{if(!c.key.trim()){vt.error("字段名不能为空");return}if(e.value.find(u=>u.id!==c.id&&u.key===c.key)){vt.error("字段名已存在");return}c.isEditing=!1},l=c=>{const h=e.value.findIndex(u=>u.id===c);h!==-1&&e.value.splice(h,1)};return ia(()=>{window.addEventListener("data-key",r)}),ql(()=>{window.removeEventListener("data-key",r)}),(c,h)=>{const u=Me("Edit"),f=Me("el-icon"),d=Me("el-button"),p=Me("Check"),O=Me("Delete"),g=Me("el-table-column"),m=Me("el-input"),b=Me("el-table");return tt(),Dt("div",QT,[G(b,{data:e.value,border:"",stripe:""},{default:te(()=>[G(g,{label:"操作",width:"100"},{default:te(({row:x})=>[Ae("div",BT,[x.isEditing?(tt(),kn(d,{key:1,onClick:_=>a(x),type:"success",size:"small",circle:""},{default:te(()=>[G(f,null,{default:te(()=>[G(p)]),_:1})]),_:2},1032,["onClick"])):(tt(),kn(d,{key:0,onClick:_=>o(x),type:"primary",size:"small",circle:""},{default:te(()=>[G(f,null,{default:te(()=>[G(u)]),_:1})]),_:2},1032,["onClick"])),G(d,{onClick:_=>l(x.id),type:"danger",size:"small",circle:""},{default:te(()=>[G(f,null,{default:te(()=>[G(O)]),_:1})]),_:2},1032,["onClick"])])]),_:1}),G(g,{label:"Key","min-width":"120"},{default:te(({row:x})=>[x.isEditing?(tt(),kn(m,{key:0,modelValue:x.key,"onUpdate:modelValue":_=>x.key=_,size:"small"},null,8,["modelValue","onUpdate:modelValue"])):(tt(),Dt("span",FT,fn(x.key),1))]),_:1}),G(g,{label:"字段名","min-width":"120"},{default:te(({row:x})=>[x.isEditing?(tt(),kn(m,{key:0,modelValue:x.name,"onUpdate:modelValue":_=>x.name=_,size:"small"},null,8,["modelValue","onUpdate:modelValue"])):(tt(),Dt("span",$T,fn(x.name),1))]),_:1}),G(g,{label:"描述","min-width":"150"},{default:te(({row:x})=>[x.isEditing?(tt(),kn(m,{key:0,modelValue:x.description,"onUpdate:modelValue":_=>x.description=_,size:"small"},null,8,["modelValue","onUpdate:modelValue"])):(tt(),Dt("span",VT,fn(x.description||"-"),1))]),_:1}),G(g,{label:"当前值","min-width":"100"},{default:te(({row:x})=>[Ae("span",null,fn(x.value),1)]),_:1}),G(g,{label:"最小值","min-width":"100"},{default:te(({row:x})=>[Ae("span",null,fn(x.min??"-"),1)]),_:1}),G(g,{label:"最大值","min-width":"100"},{default:te(({row:x})=>[Ae("span",null,fn(x.max??"-"),1)]),_:1}),G(g,{label:"最后更新","min-width":"180"},{default:te(({row:x})=>[Ae("span",null,fn(x.lastUpdate),1)]),_:1}),G(g,{label:"更新次数",width:"100"},{default:te(({row:x})=>[Ae("span",null,fn(x.updateCount),1)]),_:1})]),_:1},8,["data"])])}}}),ZT=ji(zT,[["__scopeId","data-v-e0351c0e"]]),GT=sx("quickSend",()=>{const s=Br.getInstance(),e=at([]),t=at(0),n=Tl(()=>e.value.find(_=>_.id===t.value)||e.value[0]),i=at({}),r=at(1e3),o=_=>/^[0-9A-Fa-f\s]*$/.test(_),a=_=>{if(!_.content){vt.warning("发送内容不能为空");return}if(_.type==="hex"&&!o(_.content)){vt.error("HEX格式数据不合法");return}const w=s.stringToUint8Array(_.content,_.type==="hex");window.dispatchEvent(new CustomEvent("serial-send",{detail:w}))},l=_=>{const w=i.value[_.id];w?(clearInterval(w),delete i.value[_.id]):i.value[_.id]=window.setInterval(()=>a(_),r.value)},c=()=>{n.value.items.push({id:Date.now(),name:"新建项目",content:"",type:"text"})},h=_=>{const w=n.value.items.findIndex(T=>T.id===_);w>-1&&n.value.items.splice(w,1)},u=_=>{_&&e.value.push({id:Date.now(),name:_,items:[]})},f=()=>{if(e.value.length<=1){vt.warning("至少保留一个分组");return}const _=e.value.findIndex(w=>w.id===n.value.id);_>-1&&(e.value.splice(_,1),e.value.length==0&&u("默认分组"),p(e.value[0]))},d=_=>{_&&(n.value.name=_)},p=_=>{t.value=_.id},O=_=>{console.log("切换分组",_,e),t.value=_},g=_=>{try{if(!Array.isArray(_)||!_.every(w=>typeof w=="object"&&typeof w.id=="number"&&typeof w.name=="string"&&Array.isArray(w.items)))throw new Error("配置文件格式错误");e.value=_,p(e.value[0]),vt.success("导入成功")}catch(w){vt.error(`导入失败:${w instanceof Error?w.message:"无效的配置文件"}`)}},m=()=>JSON.stringify(e.value,null,2),b=()=>{localStorage.setItem("quickSendGroups",JSON.stringify(e.value))},x=()=>{const _=localStorage.getItem("quickSendGroups");if(_)try{e.value=JSON.parse(_)}catch{vt.error("加载配置失败")}e.value.length==0&&(e.value=[{id:1,name:"默认分组",items:[{id:1,name:"查询版本",content:`AT+VERSION?\r -`,type:"text"},{id:2,name:"重启设备",content:`AT+RESET\r -`,type:"text"},{id:3,name:"查询状态",content:`AT+STATUS?\r -`,type:"text"},{id:4,name:"16进制测试",content:"48 45 4C 4C 4F",type:"hex"}]}]),p(e.value[0])};return Xs([e,n],()=>{b()},{deep:!0}),x(),{groups:e,currentGroupId:t,currentGroup:n,autoSendIntervals:i,autoSendInterval:r,sendData:a,toggleAutoSend:l,addItem:c,removeItem:h,addGroup:u,removeGroup:f,renameGroup:d,handleGroupChange:O,importConfig:g,exportConfig:m}}),XT={class:"quick-send"},HT={class:"group-select"},WT={class:"quick-send-actions"},jT={class:"action-group"},qT={class:"quick-send-list"},YT={class:"item-row"},KT={class:"item-settings"},JT={class:"setting-row"},eE={class:"setting-row"},tE={class:"setting-row"},nE=Wi({__name:"SerialQuickSend",setup(s){const e=GT(),t=at(null),n=a=>{const l=a.target;if(l.files&&l.files[0]){const c=new FileReader;c.onload=h=>{var u;try{const f=JSON.parse((u=h.target)==null?void 0:u.result);e.importConfig(f)}catch{}},c.readAsText(l.files[0])}},i=()=>{const a=e.exportConfig(),l=new Blob([a],{type:"application/json"}),c=URL.createObjectURL(l),h=document.createElement("a");h.href=c,h.download="quick-send-config.json",h.click(),URL.revokeObjectURL(c)},r=()=>{const a=prompt("请输入分组名称");a&&e.addGroup(a)},o=()=>{const a=prompt("请输入新的分组名称",e.currentGroup.name);a&&e.renameGroup(a)};return(a,l)=>{const c=Me("el-option"),h=Me("el-select"),u=Me("el-button"),f=Me("el-button-group"),d=Me("Plus"),p=Me("el-icon"),O=Me("FolderAdd"),g=Me("FolderOpened"),m=Me("el-input"),b=Me("Setting"),x=Me("el-radio-button"),_=Me("el-radio-group"),w=Me("el-input-number"),T=Me("el-tooltip"),E=Me("el-popover"),P=Me("Delete");return tt(),Dt("div",XT,[Ae("div",HT,[G(h,{size:"small",modelValue:Ie(e).currentGroupId,"onUpdate:modelValue":l[0]||(l[0]=y=>Ie(e).currentGroupId=y),onChange:Ie(e).handleGroupChange},{default:te(()=>[(tt(!0),Dt(Ii,null,Ui(Ie(e).groups,y=>(tt(),kn(c,{key:y.id,label:y.name,value:y.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"]),G(f,{style:{width:"240px"}},{default:te(()=>[G(u,{size:"small",onClick:r,class:"compact-btn"},{default:te(()=>l[3]||(l[3]=[Et("新增")])),_:1}),G(u,{size:"small",onClick:o,class:"compact-btn"},{default:te(()=>l[4]||(l[4]=[Et("改名")])),_:1}),G(u,{size:"small",onClick:Ie(e).removeGroup,class:"compact-btn"},{default:te(()=>l[5]||(l[5]=[Et("删除")])),_:1},8,["onClick"])]),_:1})]),Ae("div",WT,[Ae("div",jT,[G(u,{size:"small",onClick:Ie(e).addItem,class:"add-item-btn"},{default:te(()=>[G(p,null,{default:te(()=>[G(d)]),_:1}),l[6]||(l[6]=Et(" 增加一条 "))]),_:1},8,["onClick"]),Ae("input",{type:"file",ref_key:"importInput",ref:t,style:{display:"none"},accept:"application/json",onChange:n},null,544),G(f,null,{default:te(()=>[G(u,{size:"small",onClick:l[1]||(l[1]=y=>a.$refs.importInput.click()),class:"compact-btn"},{default:te(()=>[G(p,null,{default:te(()=>[G(O)]),_:1})]),_:1}),G(u,{size:"small",onClick:i,class:"compact-btn"},{default:te(()=>[G(p,null,{default:te(()=>[G(g)]),_:1})]),_:1})]),_:1})])]),Ae("div",qT,[(tt(!0),Dt(Ii,null,Ui(Ie(e).currentGroup.items,y=>(tt(),Dt("div",{key:y.id,class:"mb-2 quick-send-item"},[Ae("div",YT,[G(u,{size:"small",type:"primary",onClick:S=>Ie(e).sendData(y)},{default:te(()=>[Et(fn(y.name),1)]),_:2},1032,["onClick"]),G(m,{modelValue:y.content,"onUpdate:modelValue":S=>y.content=S,size:"small",placeholder:"请输入发送内容",class:"flex-grow"},null,8,["modelValue","onUpdate:modelValue"]),G(f,null,{default:te(()=>[G(E,{placement:"bottom",width:300,trigger:"click"},{reference:te(()=>[G(u,{size:"small"},{default:te(()=>[G(p,null,{default:te(()=>[G(b)]),_:1})]),_:1})]),default:te(()=>[Ae("div",KT,[Ae("div",JT,[l[7]||(l[7]=Ae("span",null,"指令名称:",-1)),G(m,{modelValue:y.name,"onUpdate:modelValue":S=>y.name=S,placeholder:"名称",size:"small",style:{width:"120px"}},null,8,["modelValue","onUpdate:modelValue"])]),Ae("div",eE,[l[10]||(l[10]=Ae("span",null,"数据类型:",-1)),G(_,{modelValue:y.type,"onUpdate:modelValue":S=>y.type=S,size:"small"},{default:te(()=>[G(x,{value:"text"},{default:te(()=>l[8]||(l[8]=[Et("文本")])),_:1}),G(x,{value:"hex"},{default:te(()=>l[9]||(l[9]=[Et("HEX")])),_:1})]),_:2},1032,["modelValue","onUpdate:modelValue"])]),Ae("div",tE,[l[11]||(l[11]=Ae("span",null,"定时发送:",-1)),G(T,{class:"box-item",effect:"dark",content:"间隔(ms)",placement:"bottom"},{default:te(()=>[G(w,{modelValue:Ie(e).autoSendInterval,"onUpdate:modelValue":l[2]||(l[2]=S=>Ie(e).autoSendInterval=S),min:100,max:1e4,size:"small",style:{width:"120px"},class:"me-2"},null,8,["modelValue"])]),_:1}),G(u,{size:"small",type:Ie(e).autoSendIntervals[y.id]?"success":"default",onClick:S=>Ie(e).toggleAutoSend(y)},{default:te(()=>[Et(fn(Ie(e).autoSendIntervals[y.id]?"停止":"开始"),1)]),_:2},1032,["type","onClick"])])])]),_:2},1024),G(u,{size:"small",type:"danger",onClick:S=>Ie(e).removeItem(y.id)},{default:te(()=>[G(p,null,{default:te(()=>[G(P)]),_:1})]),_:2},1032,["onClick"])]),_:2},1024)])]))),128))])])}}}),iE=ji(nE,[["__scopeId","data-v-3fa9948f"]]);let yu=[],mO=[];(()=>{let s="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=0,t=0;e>1;if(s=mO[n])e=n+1;else return!0;if(e==t)return!1}}function Xp(s){return s>=127462&&s<=127487}const Hp=8205;function rE(s,e,t=!0,n=!0){return(t?gO:oE)(s,e,n)}function gO(s,e,t){if(e==s.length)return e;e&&OO(s.charCodeAt(e))&&_O(s.charCodeAt(e-1))&&e--;let n=ih(s,e);for(e+=Wp(n);e=0&&Xp(ih(s,o));)r++,o-=2;if(r%2==0)break;e+=2}else break}return e}function oE(s,e,t){for(;e>0;){let n=gO(s,e-2,t);if(n=56320&&s<57344}function _O(s){return s>=55296&&s<56320}function Wp(s){return s<65536?1:2}class it{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,n){[e,t]=Yr(this,e,t);let i=[];return this.decompose(0,e,i,2),n.length&&n.decompose(0,n.length,i,3),this.decompose(t,this.length,i,1),mi.from(i,this.length-(t-e)+n.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=Yr(this,e,t);let n=[];return this.decompose(e,t,n,0),mi.from(n,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),i=new Qo(this),r=new Qo(e);for(let o=t,a=t;;){if(i.next(o),r.next(o),o=0,i.lineBreak!=r.lineBreak||i.done!=r.done||i.value!=r.value)return!1;if(a+=i.value.length,i.done||a>=n)return!0}}iter(e=1){return new Qo(this,e)}iterRange(e,t=this.length){return new xO(this,e,t)}iterLines(e,t){let n;if(e==null)n=this.iter();else{t==null&&(t=this.lines+1);let i=this.line(e).from;n=this.iterRange(i,Math.max(i,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new yO(n)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?it.empty:e.length<=32?new Lt(e):mi.from(Lt.split(e,[]))}}class Lt extends it{constructor(e,t=aE(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,n,i){for(let r=0;;r++){let o=this.text[r],a=i+o.length;if((t?n:a)>=e)return new lE(i,a,n,o);i=a+1,n++}}decompose(e,t,n,i){let r=e<=0&&t>=this.length?this:new Lt(jp(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(i&1){let o=n.pop(),a=gl(r.text,o.text.slice(),0,r.length);if(a.length<=32)n.push(new Lt(a,o.length+r.length));else{let l=a.length>>1;n.push(new Lt(a.slice(0,l)),new Lt(a.slice(l)))}}else n.push(r)}replace(e,t,n){if(!(n instanceof Lt))return super.replace(e,t,n);[e,t]=Yr(this,e,t);let i=gl(this.text,gl(n.text,jp(this.text,0,e)),t),r=this.length+n.length-(t-e);return i.length<=32?new Lt(i,r):mi.from(Lt.split(i,[]),r)}sliceString(e,t=this.length,n=` -`){[e,t]=Yr(this,e,t);let i="";for(let r=0,o=0;r<=t&&oe&&o&&(i+=n),er&&(i+=a.slice(Math.max(0,e-r),t-r)),r=l+1}return i}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let n=[],i=-1;for(let r of e)n.push(r),i+=r.length+1,n.length==32&&(t.push(new Lt(n,i)),n=[],i=-1);return i>-1&&t.push(new Lt(n,i)),t}}class mi extends it{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let n of e)this.lines+=n.lines}lineInner(e,t,n,i){for(let r=0;;r++){let o=this.children[r],a=i+o.length,l=n+o.lines-1;if((t?l:a)>=e)return o.lineInner(e,t,n,i);i=a+1,n=l+1}}decompose(e,t,n,i){for(let r=0,o=0;o<=t&&r=o){let c=i&((o<=e?1:0)|(l>=t?2:0));o>=e&&l<=t&&!c?n.push(a):a.decompose(e-o,t-o,n,c)}o=l+1}}replace(e,t,n){if([e,t]=Yr(this,e,t),n.lines=r&&t<=a){let l=o.replace(e-r,t-r,n),c=this.lines-o.lines+l.lines;if(l.lines>4&&l.lines>c>>6){let h=this.children.slice();return h[i]=l,new mi(h,this.length-(t-e)+n.length)}return super.replace(r,a,l)}r=a+1}return super.replace(e,t,n)}sliceString(e,t=this.length,n=` -`){[e,t]=Yr(this,e,t);let i="";for(let r=0,o=0;re&&r&&(i+=n),eo&&(i+=a.sliceString(e-o,t-o,n)),o=l+1}return i}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof mi))return 0;let n=0,[i,r,o,a]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;i+=t,r+=t){if(i==o||r==a)return n;let l=this.children[i],c=e.children[r];if(l!=c)return n+l.scanIdentical(c,t);n+=l.length+1}}static from(e,t=e.reduce((n,i)=>n+i.length+1,-1)){let n=0;for(let d of e)n+=d.lines;if(n<32){let d=[];for(let p of e)p.flatten(d);return new Lt(d,t)}let i=Math.max(32,n>>5),r=i<<1,o=i>>1,a=[],l=0,c=-1,h=[];function u(d){let p;if(d.lines>r&&d instanceof mi)for(let O of d.children)u(O);else d.lines>o&&(l>o||!l)?(f(),a.push(d)):d instanceof Lt&&l&&(p=h[h.length-1])instanceof Lt&&d.lines+p.lines<=32?(l+=d.lines,c+=d.length+1,h[h.length-1]=new Lt(p.text.concat(d.text),p.length+1+d.length)):(l+d.lines>i&&f(),l+=d.lines,c+=d.length+1,h.push(d))}function f(){l!=0&&(a.push(h.length==1?h[0]:mi.from(h,c)),c=-1,l=h.length=0)}for(let d of e)u(d);return f(),a.length==1?a[0]:new mi(a,t)}}it.empty=new Lt([""],0);function aE(s){let e=-1;for(let t of s)e+=t.length+1;return e}function gl(s,e,t=0,n=1e9){for(let i=0,r=0,o=!0;r=t&&(l>n&&(a=a.slice(0,n-i)),i0?1:(e instanceof Lt?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,i=this.nodes[n],r=this.offsets[n],o=r>>1,a=i instanceof Lt?i.text.length:i.children.length;if(o==(t>0?a:0)){if(n==0)return this.done=!0,this.value="",this;t>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((r&1)==(t>0?0:1)){if(this.offsets[n]+=t,e==0)return this.lineBreak=!0,this.value=` -`,this;e--}else if(i instanceof Lt){let l=i.text[o+(t<0?-1:0)];if(this.offsets[n]+=t,l.length>Math.max(0,e))return this.value=e==0?l:t>0?l.slice(e):l.slice(0,l.length-e),this;e-=l.length}else{let l=i.children[o+(t<0?-1:0)];e>l.length?(e-=l.length,this.offsets[n]+=t):(t<0&&this.offsets[n]--,this.nodes.push(l),this.offsets.push(t>0?1:(l instanceof Lt?l.text.length:l.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class xO{constructor(e,t,n){this.value="",this.done=!1,this.cursor=new Qo(e,t>n?-1:1),this.pos=t>n?e.length:0,this.from=Math.min(t,n),this.to=Math.max(t,n)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let n=t<0?this.pos-this.from:this.to-this.pos;e>n&&(e=n),n-=e;let{value:i}=this.cursor.next(e);return this.pos+=(i.length+e)*t,this.value=i.length<=n?i:t<0?i.slice(i.length-n):i.slice(0,n),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class yO{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:n,value:i}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):n?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=i,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(it.prototype[Symbol.iterator]=function(){return this.iter()},Qo.prototype[Symbol.iterator]=xO.prototype[Symbol.iterator]=yO.prototype[Symbol.iterator]=function(){return this});class lE{constructor(e,t,n,i){this.from=e,this.to=t,this.number=n,this.text=i}get length(){return this.to-this.from}}function Yr(s,e,t){return e=Math.max(0,Math.min(s.length,e)),[e,Math.max(e,Math.min(s.length,t))]}function mn(s,e,t=!0,n=!0){return rE(s,e,t,n)}function cE(s){return s>=56320&&s<57344}function hE(s){return s>=55296&&s<56320}function uE(s,e){let t=s.charCodeAt(e);if(!hE(t)||e+1==s.length)return t;let n=s.charCodeAt(e+1);return cE(n)?(t-55296<<10)+(n-56320)+65536:t}function fE(s){return s<65536?1:2}const Su=/\r\n?|\n/;var pn=function(s){return s[s.Simple=0]="Simple",s[s.TrackDel=1]="TrackDel",s[s.TrackBefore=2]="TrackBefore",s[s.TrackAfter=3]="TrackAfter",s}(pn||(pn={}));class zi{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;te)return r+(e-i);r+=a}else{if(n!=pn.Simple&&c>=e&&(n==pn.TrackDel&&ie||n==pn.TrackBefore&&ie))return null;if(c>e||c==e&&t<0&&!a)return e==i||t<0?r:r+l;r+=l}i=c}if(e>i)throw new RangeError(`Position ${e} is out of range for changeset of length ${i}`);return r}touchesRange(e,t=e){for(let n=0,i=0;n=0&&i<=t&&a>=e)return it?"cover":!0;i=a}return!1}toString(){let e="";for(let t=0;t=0?":"+i:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(t=>typeof t!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new zi(e)}static create(e){return new zi(e)}}class Ht extends zi{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return vu(this,(t,n,i,r,o)=>e=e.replace(i,i+(n-t),o),!1),e}mapDesc(e,t=!1){return bu(this,e,t,!0)}invert(e){let t=this.sections.slice(),n=[];for(let i=0,r=0;i=0){t[i]=a,t[i+1]=o;let l=i>>1;for(;n.length0&&fs(n,t,r.text),r.forward(h),a+=h}let c=e[o++];for(;a>1].toJSON()))}return e}static of(e,t,n){let i=[],r=[],o=0,a=null;function l(h=!1){if(!h&&!i.length)return;of||u<0||f>t)throw new RangeError(`Invalid change range ${u} to ${f} (in doc of length ${t})`);let p=d?typeof d=="string"?it.of(d.split(n||Su)):d:it.empty,O=p.length;if(u==f&&O==0)return;uo&&on(i,u-o,-1),on(i,f-u,O),fs(r,i,p),o=f}}return c(e),l(!a),a}static empty(e){return new Ht(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],n=[];for(let i=0;ia&&typeof o!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(r.length==1)t.push(r[0],0);else{for(;n.length=0&&t<=0&&t==s[i+1]?s[i]+=e:i>=0&&e==0&&s[i]==0?s[i+1]+=t:n?(s[i]+=e,s[i+1]+=t):s.push(e,t)}function fs(s,e,t){if(t.length==0)return;let n=e.length-2>>1;if(n>1])),!(t||o==s.sections.length||s.sections[o+1]<0);)a=s.sections[o++],l=s.sections[o++];e(i,c,r,h,u),i=c,r=h}}}function bu(s,e,t,n=!1){let i=[],r=n?[]:null,o=new Wo(s),a=new Wo(e);for(let l=-1;;){if(o.done&&a.len||a.done&&o.len)throw new Error("Mismatched change set lengths");if(o.ins==-1&&a.ins==-1){let c=Math.min(o.len,a.len);on(i,c,-1),o.forward(c),a.forward(c)}else if(a.ins>=0&&(o.ins<0||l==o.i||o.off==0&&(a.len=0&&l=0){let c=0,h=o.len;for(;h;)if(a.ins==-1){let u=Math.min(h,a.len);c+=u,h-=u,a.forward(u)}else if(a.ins==0&&a.lenl||o.ins>=0&&o.len>l)&&(a||n.length>c),r.forward2(l),o.forward(l)}}}}class Wo{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i>1;return t>=e.length?it.empty:e[t]}textBit(e){let{inserted:t}=this.set,n=this.i-2>>1;return n>=t.length&&!e?it.empty:t[n].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class Vs{constructor(e,t,n){this.from=e,this.to=t,this.flags=n}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(e,t=-1){let n,i;return this.empty?n=i=e.mapPos(this.from,t):(n=e.mapPos(this.from,1),i=e.mapPos(this.to,-1)),n==this.from&&i==this.to?this:new Vs(n,i,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return oe.range(e,t);let n=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return oe.range(this.anchor,n)}eq(e,t=!1){return this.anchor==e.anchor&&this.head==e.head&&(!t||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return oe.range(e.anchor,e.head)}static create(e,t,n){return new Vs(e,t,n)}}class oe{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:oe.create(this.ranges.map(n=>n.map(e,t)),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let n=0;ne.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new oe(e.ranges.map(t=>Vs.fromJSON(t)),e.main)}static single(e,t=e){return new oe([oe.range(e,t)],0)}static create(e,t=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let n=0,i=0;ie?8:0)|r)}static normalized(e,t=0){let n=e[t];e.sort((i,r)=>i.from-r.from),t=e.indexOf(n);for(let i=1;ir.head?oe.range(l,a):oe.range(a,l))}}return new oe(e,t)}}function vO(s,e){for(let t of s.ranges)if(t.to>e)throw new RangeError("Selection points outside of document")}let If=0;class Pe{constructor(e,t,n,i,r){this.combine=e,this.compareInput=t,this.compare=n,this.isStatic=i,this.id=If++,this.default=e([]),this.extensions=typeof r=="function"?r(this):r}get reader(){return this}static define(e={}){return new Pe(e.combine||(t=>t),e.compareInput||((t,n)=>t===n),e.compare||(e.combine?(t,n)=>t===n:Uf),!!e.static,e.enables)}of(e){return new Ol([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Ol(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Ol(e,this,2,t)}from(e,t){return t||(t=n=>n),this.compute([e],n=>t(n.field(e)))}}function Uf(s,e){return s==e||s.length==e.length&&s.every((t,n)=>t===e[n])}class Ol{constructor(e,t,n,i){this.dependencies=e,this.facet=t,this.type=n,this.value=i,this.id=If++}dynamicSlot(e){var t;let n=this.value,i=this.facet.compareInput,r=this.id,o=e[r]>>1,a=this.type==2,l=!1,c=!1,h=[];for(let u of this.dependencies)u=="doc"?l=!0:u=="selection"?c=!0:((t=e[u.id])!==null&&t!==void 0?t:1)&1||h.push(e[u.id]);return{create(u){return u.values[o]=n(u),1},update(u,f){if(l&&f.docChanged||c&&(f.docChanged||f.selection)||Mu(u,h)){let d=n(u);if(a?!qp(d,u.values[o],i):!i(d,u.values[o]))return u.values[o]=d,1}return 0},reconfigure:(u,f)=>{let d,p=f.config.address[r];if(p!=null){let O=Dl(f,p);if(this.dependencies.every(g=>g instanceof Pe?f.facet(g)===u.facet(g):g instanceof vs?f.field(g,!1)==u.field(g,!1):!0)||(a?qp(d=n(u),O,i):i(d=n(u),O)))return u.values[o]=O,0}else d=n(u);return u.values[o]=d,1}}}}function qp(s,e,t){if(s.length!=e.length)return!1;for(let n=0;ns[l.id]),i=t.map(l=>l.type),r=n.filter(l=>!(l&1)),o=s[e.id]>>1;function a(l){let c=[];for(let h=0;hn===i),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(Ga).find(n=>n.field==this);return((t==null?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:n=>(n.values[t]=this.create(n),1),update:(n,i)=>{let r=n.values[t],o=this.updateF(r,i);return this.compareF(r,o)?0:(n.values[t]=o,1)},reconfigure:(n,i)=>{let r=n.facet(Ga),o=i.facet(Ga),a;return(a=r.find(l=>l.field==this))&&a!=o.find(l=>l.field==this)?(n.values[t]=a.create(n),1):i.config.address[this.id]!=null?(n.values[t]=i.field(this),0):(n.values[t]=this.create(n),1)}}}init(e){return[this,Ga.of({field:this,create:e})]}get extension(){return this}}const Ns={lowest:4,low:3,default:2,high:1,highest:0};function xo(s){return e=>new bO(e,s)}const ic={highest:xo(Ns.highest),high:xo(Ns.high),default:xo(Ns.default),low:xo(Ns.low),lowest:xo(Ns.lowest)};class bO{constructor(e,t){this.inner=e,this.prec=t}}class sc{of(e){return new wu(this,e)}reconfigure(e){return sc.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class wu{constructor(e,t){this.compartment=e,this.inner=t}}class Ll{constructor(e,t,n,i,r,o){for(this.base=e,this.compartments=t,this.dynamicSlots=n,this.address=i,this.staticValues=r,this.facets=o,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(e,t,n){let i=[],r=Object.create(null),o=new Map;for(let f of pE(e,t,o))f instanceof vs?i.push(f):(r[f.facet.id]||(r[f.facet.id]=[])).push(f);let a=Object.create(null),l=[],c=[];for(let f of i)a[f.id]=c.length<<1,c.push(d=>f.slot(d));let h=n==null?void 0:n.config.facets;for(let f in r){let d=r[f],p=d[0].facet,O=h&&h[f]||[];if(d.every(g=>g.type==0))if(a[p.id]=l.length<<1|1,Uf(O,d))l.push(n.facet(p));else{let g=p.combine(d.map(m=>m.value));l.push(n&&p.compare(g,n.facet(p))?n.facet(p):g)}else{for(let g of d)g.type==0?(a[g.id]=l.length<<1|1,l.push(g.value)):(a[g.id]=c.length<<1,c.push(m=>g.dynamicSlot(m)));a[p.id]=c.length<<1,c.push(g=>dE(g,p,d))}}let u=c.map(f=>f(a));return new Ll(e,o,u,a,l,r)}}function pE(s,e,t){let n=[[],[],[],[],[]],i=new Map;function r(o,a){let l=i.get(o);if(l!=null){if(l<=a)return;let c=n[l].indexOf(o);c>-1&&n[l].splice(c,1),o instanceof wu&&t.delete(o.compartment)}if(i.set(o,a),Array.isArray(o))for(let c of o)r(c,a);else if(o instanceof wu){if(t.has(o.compartment))throw new RangeError("Duplicate use of compartment in extensions");let c=e.get(o.compartment)||o.inner;t.set(o.compartment,c),r(c,a)}else if(o instanceof bO)r(o.inner,o.prec);else if(o instanceof vs)n[a].push(o),o.provides&&r(o.provides,a);else if(o instanceof Ol)n[a].push(o),o.facet.extensions&&r(o.facet.extensions,Ns.default);else{let c=o.extension;if(!c)throw new Error(`Unrecognized extension value in extension set (${o}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);r(c,a)}}return r(s,Ns.default),n.reduce((o,a)=>o.concat(a))}function Bo(s,e){if(e&1)return 2;let t=e>>1,n=s.status[t];if(n==4)throw new Error("Cyclic dependency between fields and/or facets");if(n&2)return n;s.status[t]=4;let i=s.computeSlot(s,s.config.dynamicSlots[t]);return s.status[t]=2|i}function Dl(s,e){return e&1?s.config.staticValues[e>>1]:s.values[e>>1]}const MO=Pe.define(),Tu=Pe.define({combine:s=>s.some(e=>e),static:!0}),wO=Pe.define({combine:s=>s.length?s[0]:void 0,static:!0}),TO=Pe.define(),EO=Pe.define(),AO=Pe.define(),PO=Pe.define({combine:s=>s.length?s[0]:!1});class ir{constructor(e,t){this.type=e,this.value=t}static define(){return new mE}}class mE{of(e){return new ir(this,e)}}class gE{constructor(e){this.map=e}of(e){return new Ct(this,e)}}class Ct{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return t===void 0?void 0:t==this.value?this:new Ct(this.type,t)}is(e){return this.type==e}static define(e={}){return new gE(e.map||(t=>t))}static mapEffects(e,t){if(!e.length)return e;let n=[];for(let i of e){let r=i.map(t);r&&n.push(r)}return n}}Ct.reconfigure=Ct.define();Ct.appendConfig=Ct.define();class tn{constructor(e,t,n,i,r,o){this.startState=e,this.changes=t,this.selection=n,this.effects=i,this.annotations=r,this.scrollIntoView=o,this._doc=null,this._state=null,n&&vO(n,t.newLength),r.some(a=>a.type==tn.time)||(this.annotations=r.concat(tn.time.of(Date.now())))}static create(e,t,n,i,r,o){return new tn(e,t,n,i,r,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(tn.userEvent);return!!(t&&(t==e||t.length>e.length&&t.slice(0,e.length)==e&&t[e.length]=="."))}}tn.time=ir.define();tn.userEvent=ir.define();tn.addToHistory=ir.define();tn.remote=ir.define();function OE(s,e){let t=[];for(let n=0,i=0;;){let r,o;if(n=s[n]))r=s[n++],o=s[n++];else if(i=0;i--){let r=n[i](s);r instanceof tn?s=r:Array.isArray(r)&&r.length==1&&r[0]instanceof tn?s=r[0]:s=CO(e,Ir(r),!1)}return s}function xE(s){let e=s.startState,t=e.facet(AO),n=s;for(let i=t.length-1;i>=0;i--){let r=t[i](s);r&&Object.keys(r).length&&(n=RO(n,Eu(e,r,s.changes.newLength),!0))}return n==s?s:tn.create(e,s.changes,s.selection,n.effects,n.annotations,n.scrollIntoView)}const yE=[];function Ir(s){return s==null?yE:Array.isArray(s)?s:[s]}var $i=function(s){return s[s.Word=0]="Word",s[s.Space=1]="Space",s[s.Other=2]="Other",s}($i||($i={}));const SE=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let Au;try{Au=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function vE(s){if(Au)return Au.test(s);for(let e=0;e"€"&&(t.toUpperCase()!=t.toLowerCase()||SE.test(t)))return!0}return!1}function bE(s){return e=>{if(!/\S/.test(e))return $i.Space;if(vE(e))return $i.Word;for(let t=0;t-1)return $i.Word;return $i.Other}}class ft{constructor(e,t,n,i,r,o){this.config=e,this.doc=t,this.selection=n,this.values=i,this.status=e.statusTemplate.slice(),this.computeSlot=r,o&&(o._state=this);for(let a=0;ai.set(c,l)),t=null),i.set(a.value.compartment,a.value.extension)):a.is(Ct.reconfigure)?(t=null,n=a.value):a.is(Ct.appendConfig)&&(t=null,n=Ir(n).concat(a.value));let r;t?r=e.startState.values.slice():(t=Ll.resolve(n,i,this),r=new ft(t,this.doc,this.selection,t.dynamicSlots.map(()=>null),(l,c)=>c.reconfigure(l,this),null).values);let o=e.startState.facet(Tu)?e.newSelection:e.newSelection.asSingle();new ft(t,e.newDoc,o,r,(a,l)=>l.update(a,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:oe.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,n=e(t.ranges[0]),i=this.changes(n.changes),r=[n.range],o=Ir(n.effects);for(let a=1;ao.spec.fromJSON(a,l)))}}return ft.create({doc:e.doc,selection:oe.fromJSON(e.selection),extensions:t.extensions?i.concat([t.extensions]):i})}static create(e={}){let t=Ll.resolve(e.extensions||[],new Map),n=e.doc instanceof it?e.doc:it.of((e.doc||"").split(t.staticFacet(ft.lineSeparator)||Su)),i=e.selection?e.selection instanceof oe?e.selection:oe.single(e.selection.anchor,e.selection.head):oe.single(0);return vO(i,n.length),t.staticFacet(Tu)||(i=i.asSingle()),new ft(t,n,i,t.dynamicSlots.map(()=>null),(r,o)=>o.create(r),null)}get tabSize(){return this.facet(ft.tabSize)}get lineBreak(){return this.facet(ft.lineSeparator)||` -`}get readOnly(){return this.facet(PO)}phrase(e,...t){for(let n of this.facet(ft.phrases))if(Object.prototype.hasOwnProperty.call(n,e)){e=n[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,(n,i)=>{if(i=="$")return"$";let r=+(i||1);return!r||r>t.length?n:t[r-1]})),e}languageDataAt(e,t,n=-1){let i=[];for(let r of this.facet(MO))for(let o of r(this,t,n))Object.prototype.hasOwnProperty.call(o,e)&&i.push(o[e]);return i}charCategorizer(e){return bE(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:t,from:n,length:i}=this.doc.lineAt(e),r=this.charCategorizer(e),o=e-n,a=e-n;for(;o>0;){let l=mn(t,o,!1);if(r(t.slice(l,o))!=$i.Word)break;o=l}for(;as.length?s[0]:4});ft.lineSeparator=wO;ft.readOnly=PO;ft.phrases=Pe.define({compare(s,e){let t=Object.keys(s),n=Object.keys(e);return t.length==n.length&&t.every(i=>s[i]==e[i])}});ft.languageData=MO;ft.changeFilter=TO;ft.transactionFilter=EO;ft.transactionExtender=AO;sc.reconfigure=Ct.define();function ME(s,e,t={}){let n={};for(let i of s)for(let r of Object.keys(i)){let o=i[r],a=n[r];if(a===void 0)n[r]=o;else if(!(a===o||o===void 0))if(Object.hasOwnProperty.call(t,r))n[r]=t[r](a,o);else throw new Error("Config merge conflict for field "+r)}for(let i in e)n[i]===void 0&&(n[i]=e[i]);return n}class qs{eq(e){return this==e}range(e,t=e){return Pu.create(e,t,this)}}qs.prototype.startSide=qs.prototype.endSide=0;qs.prototype.point=!1;qs.prototype.mapMode=pn.TrackDel;let Pu=class kO{constructor(e,t,n){this.from=e,this.to=t,this.value=n}static create(e,t,n){return new kO(e,t,n)}};function Ru(s,e){return s.from-e.from||s.value.startSide-e.value.startSide}class Nf{constructor(e,t,n,i){this.from=e,this.to=t,this.value=n,this.maxPoint=i}get length(){return this.to[this.to.length-1]}findIndex(e,t,n,i=0){let r=n?this.to:this.from;for(let o=i,a=r.length;;){if(o==a)return o;let l=o+a>>1,c=r[l]-e||(n?this.value[l].endSide:this.value[l].startSide)-t;if(l==o)return c>=0?o:a;c>=0?a=l:o=l+1}}between(e,t,n,i){for(let r=this.findIndex(t,-1e9,!0),o=this.findIndex(n,1e9,!1,r);rd||f==d&&c.startSide>0&&c.endSide<=0)continue;(d-f||c.endSide-c.startSide)<0||(o<0&&(o=f),c.point&&(a=Math.max(a,d-f)),n.push(c),i.push(f-o),r.push(d-o))}return{mapped:n.length?new Nf(i,r,n,a):null,pos:o}}}class gt{constructor(e,t,n,i){this.chunkPos=e,this.chunk=t,this.nextLayer=n,this.maxPoint=i}static create(e,t,n,i){return new gt(e,t,n,i)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:n=!1,filterFrom:i=0,filterTo:r=this.length}=e,o=e.filter;if(t.length==0&&!o)return this;if(n&&(t=t.slice().sort(Ru)),this.isEmpty)return t.length?gt.of(t):this;let a=new LO(this,null,-1).goto(0),l=0,c=[],h=new jo;for(;a.value||l=0){let u=t[l++];h.addInner(u.from,u.to,u.value)||c.push(u)}else a.rangeIndex==1&&a.chunkIndexthis.chunkEnd(a.chunkIndex)||ra.to||r=r&&e<=r+o.length&&o.between(r,e-r,t-r,n)===!1)return}this.nextLayer.between(e,t,n)}}iter(e=0){return qo.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return qo.from(e).goto(t)}static compare(e,t,n,i,r=-1){let o=e.filter(u=>u.maxPoint>0||!u.isEmpty&&u.maxPoint>=r),a=t.filter(u=>u.maxPoint>0||!u.isEmpty&&u.maxPoint>=r),l=Yp(o,a,n),c=new yo(o,l,r),h=new yo(a,l,r);n.iterGaps((u,f,d)=>Kp(c,u,h,f,d,i)),n.empty&&n.length==0&&Kp(c,0,h,0,0,i)}static eq(e,t,n=0,i){i==null&&(i=999999999);let r=e.filter(h=>!h.isEmpty&&t.indexOf(h)<0),o=t.filter(h=>!h.isEmpty&&e.indexOf(h)<0);if(r.length!=o.length)return!1;if(!r.length)return!0;let a=Yp(r,o),l=new yo(r,a,0).goto(n),c=new yo(o,a,0).goto(n);for(;;){if(l.to!=c.to||!Cu(l.active,c.active)||l.point&&(!c.point||!l.point.eq(c.point)))return!1;if(l.to>i)return!0;l.next(),c.next()}}static spans(e,t,n,i,r=-1){let o=new yo(e,null,r).goto(t),a=t,l=o.openStart;for(;;){let c=Math.min(o.to,n);if(o.point){let h=o.activeForPoint(o.to),u=o.pointFroma&&(i.span(a,c,o.active,l),l=o.openEnd(c));if(o.to>n)return l+(o.point&&o.to>n?1:0);a=o.to,o.next()}}static of(e,t=!1){let n=new jo;for(let i of e instanceof Pu?[e]:t?wE(e):e)n.add(i.from,i.to,i.value);return n.finish()}static join(e){if(!e.length)return gt.empty;let t=e[e.length-1];for(let n=e.length-2;n>=0;n--)for(let i=e[n];i!=gt.empty;i=i.nextLayer)t=new gt(i.chunkPos,i.chunk,t,Math.max(i.maxPoint,t.maxPoint));return t}}gt.empty=new gt([],[],null,-1);function wE(s){if(s.length>1)for(let e=s[0],t=1;t0)return s.slice().sort(Ru);e=n}return s}gt.empty.nextLayer=gt.empty;class jo{finishChunk(e){this.chunks.push(new Nf(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,t,n){this.addInner(e,t,n)||(this.nextLayer||(this.nextLayer=new jo)).add(e,t,n)}addInner(e,t,n){let i=e-this.lastTo||n.startSide-this.last.endSide;if(i<=0&&(e-this.lastFrom||n.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return i<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=n,this.lastFrom=e,this.lastTo=t,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),!0)}addChunk(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let n=t.value.length-1;return this.last=t.value[n],this.lastFrom=t.from[n]+e,this.lastTo=t.to[n]+e,!0}finish(){return this.finishInner(gt.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return e;let t=gt.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function Yp(s,e,t){let n=new Map;for(let r of s)for(let o=0;o=this.minPoint)break}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=n&&i.push(new LO(o,t,n,r));return i.length==1?i[0]:new qo(i)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let n of this.heap)n.goto(e,t);for(let n=this.heap.length>>1;n>=0;n--)sh(this.heap,n);return this.next(),this}forward(e,t){for(let n of this.heap)n.forward(e,t);for(let n=this.heap.length>>1;n>=0;n--)sh(this.heap,n);(this.to-e||this.value.endSide-t)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),sh(this.heap,0)}}}function sh(s,e){for(let t=s[e];;){let n=(e<<1)+1;if(n>=s.length)break;let i=s[n];if(n+1=0&&(i=s[n+1],n++),t.compare(i)<0)break;s[n]=t,s[e]=i,e=n}}class yo{constructor(e,t,n){this.minPoint=n,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=qo.from(e,t,n)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){Xa(this.active,e),Xa(this.activeTo,e),Xa(this.activeRank,e),this.minActive=Jp(this.active,this.activeTo)}addActive(e){let t=0,{value:n,to:i,rank:r}=this.cursor;for(;t0;)t++;Ha(this.active,t,n),Ha(this.activeTo,t,i),Ha(this.activeRank,t,r),e&&Ha(e,t,this.cursor.from),this.minActive=Jp(this.active,this.activeTo)}next(){let e=this.to,t=this.point;this.point=null;let n=this.openStart<0?[]:null;for(;;){let i=this.minActive;if(i>-1&&(this.activeTo[i]-this.cursor.from||this.active[i].endSide-this.cursor.startSide)<0){if(this.activeTo[i]>e){this.to=this.activeTo[i],this.endSide=this.active[i].endSide;break}this.removeActive(i),n&&Xa(n,i)}else if(this.cursor.value)if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let r=this.cursor.value;if(!r.point)this.addActive(n),this.cursor.next();else if(t&&this.cursor.to==this.to&&this.cursor.from=0&&n[i]=0&&!(this.activeRank[n]e||this.activeTo[n]==e&&this.active[n].endSide>=this.point.endSide)&&t.push(this.active[n]);return t.reverse()}openEnd(e){let t=0;for(let n=this.activeTo.length-1;n>=0&&this.activeTo[n]>e;n--)t++;return t}}function Kp(s,e,t,n,i,r){s.goto(e),t.goto(n);let o=n+i,a=n,l=n-e;for(;;){let c=s.to+l-t.to,h=c||s.endSide-t.endSide,u=h<0?s.to+l:t.to,f=Math.min(u,o);if(s.point||t.point?s.point&&t.point&&(s.point==t.point||s.point.eq(t.point))&&Cu(s.activeForPoint(s.to),t.activeForPoint(t.to))||r.comparePoint(a,f,s.point,t.point):f>a&&!Cu(s.active,t.active)&&r.compareRange(a,f,s.active,t.active),u>o)break;(c||s.openEnd!=t.openEnd)&&r.boundChange&&r.boundChange(u),a=u,h<=0&&s.next(),h>=0&&t.next()}}function Cu(s,e){if(s.length!=e.length)return!1;for(let t=0;t=e;n--)s[n+1]=s[n];s[e]=t}function Jp(s,e){let t=-1,n=1e9;for(let i=0;i=e)return i;if(i==s.length)break;r+=s.charCodeAt(i)==9?t-r%t:1,i=mn(s,i)}return s.length}const ku="ͼ",em=typeof Symbol>"u"?"__"+ku:Symbol.for(ku),Lu=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),tm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class Os{constructor(e,t){this.rules=[];let{finish:n}=t||{};function i(o){return/^@/.test(o)?[o]:o.split(/,\s*/)}function r(o,a,l,c){let h=[],u=/^@(\w+)\b/.exec(o[0]),f=u&&u[1]=="keyframes";if(u&&a==null)return l.push(o[0]+";");for(let d in a){let p=a[d];if(/&/.test(d))r(d.split(/,\s*/).map(O=>o.map(g=>O.replace(/&/,g))).reduce((O,g)=>O.concat(g)),p,l);else if(p&&typeof p=="object"){if(!u)throw new RangeError("The value of a property ("+d+") should be a primitive value.");r(i(d),p,h,f)}else p!=null&&h.push(d.replace(/_.*/,"").replace(/[A-Z]/g,O=>"-"+O.toLowerCase())+": "+p+";")}(h.length||f)&&l.push((n&&!u&&!c?o.map(n):o).join(", ")+" {"+h.join(" ")+"}")}for(let o in e)r(i(o),e[o],this.rules)}getRules(){return this.rules.join(` -`)}static newName(){let e=tm[em]||1;return tm[em]=e+1,ku+e.toString(36)}static mount(e,t,n){let i=e[Lu],r=n&&n.nonce;i?r&&i.setNonce(r):i=new EE(e,r),i.mount(Array.isArray(t)?t:[t],e)}}let nm=new Map;class EE{constructor(e,t){let n=e.ownerDocument||e,i=n.defaultView;if(!e.head&&e.adoptedStyleSheets&&i.CSSStyleSheet){let r=nm.get(n);if(r)return e[Lu]=r;this.sheet=new i.CSSStyleSheet,nm.set(n,this)}else this.styleTag=n.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);this.modules=[],e[Lu]=this}mount(e,t){let n=this.sheet,i=0,r=0;for(let o=0;o-1&&(this.modules.splice(l,1),r--,l=-1),l==-1){if(this.modules.splice(r++,0,a),n)for(let c=0;c",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},AE=typeof navigator<"u"&&/Mac/.test(navigator.platform),PE=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var en=0;en<10;en++)_s[48+en]=_s[96+en]=String(en);for(var en=1;en<=24;en++)_s[en+111]="F"+en;for(var en=65;en<=90;en++)_s[en]=String.fromCharCode(en+32),Yo[en]=String.fromCharCode(en);for(var rh in _s)Yo.hasOwnProperty(rh)||(Yo[rh]=_s[rh]);function RE(s){var e=AE&&s.metaKey&&s.shiftKey&&!s.ctrlKey&&!s.altKey||PE&&s.shiftKey&&s.key&&s.key.length==1||s.key=="Unidentified",t=!e&&s.key||(s.shiftKey?Yo:_s)[s.keyCode]||s.key||"Unidentified";return t=="Esc"&&(t="Escape"),t=="Del"&&(t="Delete"),t=="Left"&&(t="ArrowLeft"),t=="Up"&&(t="ArrowUp"),t=="Right"&&(t="ArrowRight"),t=="Down"&&(t="ArrowDown"),t}function Ko(s){let e;return s.nodeType==11?e=s.getSelection?s:s.ownerDocument:e=s,e.getSelection()}function Du(s,e){return e?s==e||s.contains(e.nodeType!=1?e.parentNode:e):!1}function _l(s,e){if(!e.anchorNode)return!1;try{return Du(s,e.anchorNode)}catch{return!1}}function Jo(s){return s.nodeType==3?Ks(s,0,s.nodeValue.length).getClientRects():s.nodeType==1?s.getClientRects():[]}function Fo(s,e,t,n){return t?im(s,e,t,n,-1)||im(s,e,t,n,1):!1}function Ys(s){for(var e=0;;e++)if(s=s.previousSibling,!s)return e}function Il(s){return s.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(s.nodeName)}function im(s,e,t,n,i){for(;;){if(s==t&&e==n)return!0;if(e==(i<0?0:Si(s))){if(s.nodeName=="DIV")return!1;let r=s.parentNode;if(!r||r.nodeType!=1)return!1;e=Ys(s)+(i<0?0:1),s=r}else if(s.nodeType==1){if(s=s.childNodes[e+(i<0?-1:0)],s.nodeType==1&&s.contentEditable=="false")return!1;e=i<0?Si(s):0}else return!1}}function Si(s){return s.nodeType==3?s.nodeValue.length:s.childNodes.length}function oc(s,e){let t=e?s.left:s.right;return{left:t,right:t,top:s.top,bottom:s.bottom}}function CE(s){let e=s.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:s.innerWidth,top:0,bottom:s.innerHeight}}function DO(s,e){let t=e.width/s.offsetWidth,n=e.height/s.offsetHeight;return(t>.995&&t<1.005||!isFinite(t)||Math.abs(e.width-s.offsetWidth)<1)&&(t=1),(n>.995&&n<1.005||!isFinite(n)||Math.abs(e.height-s.offsetHeight)<1)&&(n=1),{scaleX:t,scaleY:n}}function kE(s,e,t,n,i,r,o,a){let l=s.ownerDocument,c=l.defaultView||window;for(let h=s,u=!1;h&&!u;)if(h.nodeType==1){let f,d=h==l.body,p=1,O=1;if(d)f=CE(c);else{if(/^(fixed|sticky)$/.test(getComputedStyle(h).position)&&(u=!0),h.scrollHeight<=h.clientHeight&&h.scrollWidth<=h.clientWidth){h=h.assignedSlot||h.parentNode;continue}let b=h.getBoundingClientRect();({scaleX:p,scaleY:O}=DO(h,b)),f={left:b.left,right:b.left+h.clientWidth*p,top:b.top,bottom:b.top+h.clientHeight*O}}let g=0,m=0;if(i=="nearest")e.top0&&e.bottom>f.bottom+m&&(m=e.bottom-f.bottom+m+o)):e.bottom>f.bottom&&(m=e.bottom-f.bottom+o,t<0&&e.top-m0&&e.right>f.right+g&&(g=e.right-f.right+g+r)):e.right>f.right&&(g=e.right-f.right+r,t<0&&e.lefti.clientHeight&&(n=i),!t&&i.scrollWidth>i.clientWidth&&(t=i),i=i.assignedSlot||i.parentNode;else if(i.nodeType==11)i=i.host;else break;return{x:t,y:n}}class DE{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:t,focusNode:n}=e;this.set(t,Math.min(e.anchorOffset,t?Si(t):0),n,Math.min(e.focusOffset,n?Si(n):0))}set(e,t,n,i){this.anchorNode=e,this.anchorOffset=t,this.focusNode=n,this.focusOffset=i}}let Sr=null;function IO(s){if(s.setActive)return s.setActive();if(Sr)return s.focus(Sr);let e=[];for(let t=s;t&&(e.push(t,t.scrollTop,t.scrollLeft),t!=t.ownerDocument);t=t.parentNode);if(s.focus(Sr==null?{get preventScroll(){return Sr={preventScroll:!0},!0}}:void 0),!Sr){Sr=!1;for(let t=0;tMath.max(1,s.scrollHeight-s.clientHeight-4)}function QO(s,e){for(let t=s,n=e;;){if(t.nodeType==3&&n>0)return{node:t,offset:n};if(t.nodeType==1&&n>0){if(t.contentEditable=="false")return null;t=t.childNodes[n-1],n=Si(t)}else if(t.parentNode&&!Il(t))n=Ys(t),t=t.parentNode;else return null}}function BO(s,e){for(let t=s,n=e;;){if(t.nodeType==3&&nt)return u.domBoundsAround(e,t,c);if(f>=e&&i==-1&&(i=l,r=c),c>t&&u.dom.parentNode==this.dom){o=l,a=h;break}h=f,c=f+u.breakAfter}return{from:r,to:a<0?n+this.length:a,startDOM:(i?this.children[i-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:o=0?this.children[o].dom:null}}markDirty(e=!1){this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let t=this.parent;t;t=t.parent){if(e&&(t.flags|=2),t.flags&1)return;t.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,this.flags&7&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let t=e.parent;if(!t)return e;e=t}}replaceChildren(e,t,n=Qf){this.markDirty();for(let i=e;ithis.pos||e==this.pos&&(t>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let n=this.children[--this.i];this.pos-=n.length+n.breakAfter}}}function $O(s,e,t,n,i,r,o,a,l){let{children:c}=s,h=c.length?c[e]:null,u=r.length?r[r.length-1]:null,f=u?u.breakAfter:o;if(!(e==n&&h&&!o&&!f&&r.length<2&&h.merge(t,i,r.length?u:null,t==0,a,l))){if(n0&&(!o&&r.length&&h.merge(t,h.length,r[0],!1,a,0)?h.breakAfter=r.shift().breakAfter:(t2);var me={mac:lm||/Mac/.test(bn.platform),windows:/Win/.test(bn.platform),linux:/Linux|X11/.test(bn.platform),ie:ac,ie_version:zO?Iu.documentMode||6:Nu?+Nu[1]:Uu?+Uu[1]:0,gecko:om,gecko_version:om?+(/Firefox\/(\d+)/.exec(bn.userAgent)||[0,0])[1]:0,chrome:!!oh,chrome_version:oh?+oh[1]:0,ios:lm,android:/Android\b/.test(bn.userAgent),webkit:am,safari:ZO,webkit_version:am?+(/\bAppleWebKit\/(\d+)/.exec(bn.userAgent)||[0,0])[1]:0,tabSize:Iu.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const NE=256;class oi extends yt{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,t){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(t&&t.node==this.dom&&(t.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){e.nodeType==3&&this.createDOM(e)}merge(e,t,n){return this.flags&8||n&&(!(n instanceof oi)||this.length-(t-e)+n.length>NE||n.flags&8)?!1:(this.text=this.text.slice(0,e)+(n?n.text:"")+this.text.slice(t),this.markDirty(),!0)}split(e){let t=new oi(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),t.flags|=this.flags&8,t}localPosFromDOM(e,t){return e==this.dom?t:t?this.text.length:0}domAtPos(e){return new an(this.dom,e)}domBoundsAround(e,t,n){return{from:n,to:n+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,t){return QE(this.dom,e,t)}}class Hi extends yt{constructor(e,t=[],n=0){super(),this.mark=e,this.children=t,this.length=n;for(let i of t)i.setParent(this)}setAttrs(e){if(UO(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let t in this.mark.attrs)e.setAttribute(t,this.mark.attrs[t]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!((this.flags|e.flags)&8)}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,t){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,t)}merge(e,t,n,i,r,o){return n&&(!(n instanceof Hi&&n.mark.eq(this.mark))||e&&r<=0||te&&t.push(n=e&&(i=r),n=l,r++}let o=this.length-e;return this.length=e,i>-1&&(this.children.length=i,this.markDirty()),new Hi(this.mark,t,o)}domAtPos(e){return GO(this,e)}coordsAt(e,t){return HO(this,e,t)}}function QE(s,e,t){let n=s.nodeValue.length;e>n&&(e=n);let i=e,r=e,o=0;e==0&&t<0||e==n&&t>=0?me.chrome||me.gecko||(e?(i--,o=1):r=0)?0:a.length-1];return me.safari&&!o&&l.width==0&&(l=Array.prototype.find.call(a,c=>c.width)||l),o?oc(l,o<0):l||null}class zs extends yt{static create(e,t,n){return new zs(e,t,n)}constructor(e,t,n){super(),this.widget=e,this.length=t,this.side=n,this.prevWidget=null}split(e){let t=zs.create(this.widget,this.length-e,this.side);return this.length-=e,t}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(e,t,n,i,r,o){return n&&(!(n instanceof zs)||!this.widget.compare(n.widget)||e>0&&r<=0||t0)?an.before(this.dom):an.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,t){let n=this.widget.coordsAt(this.dom,e,t);if(n)return n;let i=this.dom.getClientRects(),r=null;if(!i.length)return null;let o=this.side?this.side<0:e>0;for(let a=o?i.length-1:0;r=i[a],!(e>0?a==0:a==i.length-1||r.top0?an.before(this.dom):an.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return it.empty}get isHidden(){return!0}}oi.prototype.children=zs.prototype.children=Kr.prototype.children=Qf;function GO(s,e){let t=s.dom,{children:n}=s,i=0;for(let r=0;ir&&e0;r--){let o=n[r-1];if(o.dom.parentNode==t)return o.domAtPos(o.length)}for(let r=i;r0&&e instanceof Hi&&i.length&&(n=i[i.length-1])instanceof Hi&&n.mark.eq(e.mark)?XO(n,e.children[0],t-1):(i.push(e),e.setParent(s)),s.length+=e.length}function HO(s,e,t){let n=null,i=-1,r=null,o=-1;function a(c,h){for(let u=0,f=0;u=h&&(d.children.length?a(d,h-f):(!r||r.isHidden&&t>0)&&(p>h||f==p&&d.getSide()>0)?(r=d,o=h-f):(f-1?1:0)!=i.length-(t&&i.indexOf(t)>-1?1:0))return!1;for(let r of n)if(r!=t&&(i.indexOf(r)==-1||s[r]!==e[r]))return!1;return!0}function Bu(s,e,t){let n=!1;if(e)for(let i in e)t&&i in t||(n=!0,i=="style"?s.style.cssText="":s.removeAttribute(i));if(t)for(let i in t)e&&e[i]==t[i]||(n=!0,i=="style"?s.style.cssText=t[i]:s.setAttribute(i,t[i]));return n}function FE(s){let e=Object.create(null);for(let t=0;t0?3e8:-4e8:t>0?1e8:-1e8,new xs(e,t,t,n,e.widget||null,!1)}static replace(e){let t=!!e.block,n,i;if(e.isBlockGap)n=-5e8,i=4e8;else{let{start:r,end:o}=WO(e,t);n=(r?t?-3e8:-1:5e8)-1,i=(o?t?2e8:1:-6e8)+1}return new xs(e,n,i,t,e.widget||null,!0)}static line(e){return new la(e)}static set(e,t=!1){return gt.of(e,t)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}It.none=gt.empty;class aa extends It{constructor(e){let{start:t,end:n}=WO(e);super(t?-1:5e8,n?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var t,n;return this==e||e instanceof aa&&this.tagName==e.tagName&&(this.class||((t=this.attrs)===null||t===void 0?void 0:t.class))==(e.class||((n=e.attrs)===null||n===void 0?void 0:n.class))&&Ul(this.attrs,e.attrs,"class")}range(e,t=e){if(e>=t)throw new RangeError("Mark decorations may not be empty");return super.range(e,t)}}aa.prototype.point=!1;class la extends It{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof la&&this.spec.class==e.spec.class&&Ul(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}}la.prototype.mapMode=pn.TrackBefore;la.prototype.point=!0;class xs extends It{constructor(e,t,n,i,r,o){super(t,n,r,e),this.block=i,this.isReplace=o,this.mapMode=i?t<=0?pn.TrackBefore:pn.TrackAfter:pn.TrackDel}get type(){return this.startSide!=this.endSide?Gn.WidgetRange:this.startSide<=0?Gn.WidgetBefore:Gn.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof xs&&$E(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}}xs.prototype.point=!0;function WO(s,e=!1){let{inclusiveStart:t,inclusiveEnd:n}=s;return t==null&&(t=s.inclusive),n==null&&(n=s.inclusive),{start:t??e,end:n??e}}function $E(s,e){return s==e||!!(s&&e&&s.compare(e))}function xl(s,e,t,n=0){let i=t.length-1;i>=0&&t[i]+n>=s?t[i]=Math.max(t[i],e):t.push(s,e)}class Qt extends yt{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(e,t,n,i,r,o){if(n){if(!(n instanceof Qt))return!1;this.dom||n.transferDOM(this)}return i&&this.setDeco(n?n.attrs:null),VO(this,e,t,n?n.children.slice():[],r,o),!0}split(e){let t=new Qt;if(t.breakAfter=this.breakAfter,this.length==0)return t;let{i:n,off:i}=this.childPos(e);i&&(t.append(this.children[n].split(i),0),this.children[n].merge(i,this.children[n].length,null,!1,0,0),n++);for(let r=n;r0&&this.children[n-1].length==0;)this.children[--n].destroy();return this.children.length=n,this.markDirty(),this.length=e,t}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){Ul(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,t){XO(this,e,t)}addLineDeco(e){let t=e.spec.attributes,n=e.spec.class;t&&(this.attrs=Qu(t,this.attrs||{})),n&&(this.attrs=Qu({class:n},this.attrs||{}))}domAtPos(e){return GO(this,e)}reuseDOM(e){e.nodeName=="DIV"&&(this.setDOM(e),this.flags|=6)}sync(e,t){var n;this.dom?this.flags&4&&(UO(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&(Bu(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,t);let i=this.dom.lastChild;for(;i&&yt.get(i)instanceof Hi;)i=i.lastChild;if(!i||!this.length||i.nodeName!="BR"&&((n=yt.get(i))===null||n===void 0?void 0:n.isEditable)==!1&&(!me.ios||!this.children.some(r=>r instanceof oi))){let r=document.createElement("BR");r.cmIgnore=!0,this.dom.appendChild(r)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let e=0,t;for(let n of this.children){if(!(n instanceof oi)||/[^ -~]/.test(n.text))return null;let i=Jo(n.dom);if(i.length!=1)return null;e+=i[0].width,t=i[0].height}return e?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length,textHeight:t}:null}coordsAt(e,t){let n=HO(this,e,t);if(!this.children.length&&n&&this.parent){let{heightOracle:i}=this.parent.view.viewState,r=n.bottom-n.top;if(Math.abs(r-i.lineHeight)<2&&i.textHeight=t){if(r instanceof Qt)return r;if(o>t)break}i=o+r.breakAfter}return null}}class Zi extends yt{constructor(e,t,n){super(),this.widget=e,this.length=t,this.deco=n,this.breakAfter=0,this.prevWidget=null}merge(e,t,n,i,r,o){return n&&(!(n instanceof Zi)||!this.widget.compare(n.widget)||e>0&&r<=0||t0}}class Fu extends lc{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return e.className="cm-gap",this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}}class $o{constructor(e,t,n,i){this.doc=e,this.pos=t,this.end=n,this.disallowBlockEffectsFor=i,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=t}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof Zi&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new Qt),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(Wa(new Kr(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(e&&this.content.length&&this.content[this.content.length-1]instanceof Zi)&&this.getLine()}buildText(e,t,n){for(;e>0;){if(this.textOff==this.text.length){let{value:r,lineBreak:o,done:a}=this.cursor.next(this.skip);if(this.skip=0,a)throw new Error("Ran out of text content when drawing inline views");if(o){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}else this.text=r,this.textOff=0}let i=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(t.slice(t.length-n)),this.getLine().append(Wa(new oi(this.text.slice(this.textOff,this.textOff+i)),t),n),this.atCursorPos=!0,this.textOff+=i,e-=i,n=0}}span(e,t,n,i){this.buildText(t-e,n,i),this.pos=t,this.openStart<0&&(this.openStart=i)}point(e,t,n,i,r,o){if(this.disallowBlockEffectsFor[o]&&n instanceof xs){if(n.block)throw new RangeError("Block decorations may not be specified via plugins");if(t>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let a=t-e;if(n instanceof xs)if(n.block)n.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new Zi(n.widget||Jr.block,a,n));else{let l=zs.create(n.widget||Jr.inline,a,a?0:n.startSide),c=this.atCursorPos&&!l.isEditable&&r<=i.length&&(e0),h=!l.isEditable&&(ei.length||n.startSide<=0),u=this.getLine();this.pendingBuffer==2&&!c&&!l.isEditable&&(this.pendingBuffer=0),this.flushBuffer(i),c&&(u.append(Wa(new Kr(1),i),r),r=i.length+Math.max(0,r-i.length)),u.append(Wa(l,i),r),this.atCursorPos=h,this.pendingBuffer=h?ei.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=i.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(n);a&&(this.textOff+a<=this.text.length?this.textOff+=a:(this.skip+=a-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=t),this.openStart<0&&(this.openStart=r)}static build(e,t,n,i,r){let o=new $o(e,t,n,r);return o.openEnd=gt.spans(i,t,n,o),o.openStart<0&&(o.openStart=o.openEnd),o.finish(o.openEnd),o}}function Wa(s,e){for(let t of e)s=new Hi(t,[s],s.length);return s}class Jr extends lc{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}Jr.inline=new Jr("span");Jr.block=new Jr("div");var Vt=function(s){return s[s.LTR=0]="LTR",s[s.RTL=1]="RTL",s}(Vt||(Vt={}));const Js=Vt.LTR,Bf=Vt.RTL;function jO(s){let e=[];for(let t=0;t=t){if(a.level==n)return o;(r<0||(i!=0?i<0?a.fromt:e[r].level>a.level))&&(r=o)}}if(r<0)throw new RangeError("Index out of range");return r}}function YO(s,e){if(s.length!=e.length)return!1;for(let t=0;t=0;O-=3)if(ci[O+1]==-d){let g=ci[O+2],m=g&2?i:g&4?g&1?r:i:0;m&&(xt[u]=xt[ci[O]]=m),a=O;break}}else{if(ci.length==189)break;ci[a++]=u,ci[a++]=f,ci[a++]=l}else if((p=xt[u])==2||p==1){let O=p==i;l=O?0:1;for(let g=a-3;g>=0;g-=3){let m=ci[g+2];if(m&2)break;if(O)ci[g+2]|=2;else{if(m&4)break;ci[g+2]|=4}}}}}function HE(s,e,t,n){for(let i=0,r=n;i<=t.length;i++){let o=i?t[i-1].to:s,a=il;)p==g&&(p=t[--O].from,g=O?t[O-1].to:s),xt[--p]=d;l=h}else r=c,l++}}}function Vu(s,e,t,n,i,r,o){let a=n%2?2:1;if(n%2==i%2)for(let l=e,c=0;ll&&o.push(new ds(l,O.from,d));let g=O.direction==Js!=!(d%2);zu(s,g?n+1:n,i,O.inner,O.from,O.to,o),l=O.to}p=O.to}else{if(p==t||(h?xt[p]!=a:xt[p]==a))break;p++}f?Vu(s,l,p,n+1,i,f,o):le;){let h=!0,u=!1;if(!c||l>r[c-1].to){let O=xt[l-1];O!=a&&(h=!1,u=O==16)}let f=!h&&a==1?[]:null,d=h?n:n+1,p=l;e:for(;;)if(c&&p==r[c-1].to){if(u)break e;let O=r[--c];if(!h)for(let g=O.from,m=c;;){if(g==e)break e;if(m&&r[m-1].to==g)g=r[--m].from;else{if(xt[g-1]==a)break e;break}}if(f)f.push(O);else{O.toxt.length;)xt[xt.length]=256;let n=[],i=e==Js?0:1;return zu(s,i,i,t,0,s.length,n),n}function KO(s){return[new ds(0,s,0)]}let JO="";function jE(s,e,t,n,i){var r;let o=n.head-s.from,a=ds.find(e,o,(r=n.bidiLevel)!==null&&r!==void 0?r:-1,n.assoc),l=e[a],c=l.side(i,t);if(o==c){let f=a+=i?1:-1;if(f<0||f>=e.length)return null;l=e[a=f],o=l.side(!i,t),c=l.side(i,t)}let h=mn(s.text,o,l.forward(i,t));(hl.to)&&(h=c),JO=s.text.slice(Math.min(o,h),Math.max(o,h));let u=a==(i?e.length-1:0)?null:e[a+(i?1:-1)];return u&&h==c&&u.level+(i?0:1)s.some(e=>e)}),YE=Pe.define({combine:s=>s.some(e=>e)}),a0=Pe.define();class Nr{constructor(e,t="nearest",n="nearest",i=5,r=5,o=!1){this.range=e,this.y=t,this.x=n,this.yMargin=i,this.xMargin=r,this.isSnapshot=o}map(e){return e.empty?this:new Nr(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new Nr(oe.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const ja=Ct.define({map:(s,e)=>s.map(e)}),l0=Ct.define();function _i(s,e,t){let n=s.facet(i0);n.length?n[0](e):window.onerror?window.onerror(String(e),t,void 0,void 0,e):t?console.error(t+":",e):console.error(e)}const Qi=Pe.define({combine:s=>s.length?s[0]:!0});let KE=0;const Eo=Pe.define();class ys{constructor(e,t,n,i,r){this.id=e,this.create=t,this.domEventHandlers=n,this.domEventObservers=i,this.extension=r(this)}static define(e,t){const{eventHandlers:n,eventObservers:i,provide:r,decorations:o}=t||{};return new ys(KE++,e,n,i,a=>{let l=[Eo.of(a)];return o&&l.push(ea.of(c=>{let h=c.plugin(a);return h?o(h):It.none})),r&&l.push(r(a)),l})}static fromClass(e,t){return ys.define(n=>new e(n),t)}}class ah{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let t=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(t)}catch(n){if(_i(t.state,n,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(t){_i(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(!((t=this.value)===null||t===void 0)&&t.destroy)try{this.value.destroy()}catch(n){_i(e.state,n,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const c0=Pe.define(),Vf=Pe.define(),ea=Pe.define(),h0=Pe.define(),zf=Pe.define(),u0=Pe.define();function hm(s,e){let t=s.state.facet(u0);if(!t.length)return t;let n=t.map(r=>r instanceof Function?r(s):r),i=[];return gt.spans(n,e.from,e.to,{point(){},span(r,o,a,l){let c=r-e.from,h=o-e.from,u=i;for(let f=a.length-1;f>=0;f--,l--){let d=a[f].spec.bidiIsolate,p;if(d==null&&(d=qE(e.text,c,h)),l>0&&u.length&&(p=u[u.length-1]).to==c&&p.direction==d)p.to=h,u=p.inner;else{let O={from:c,to:h,direction:d,inner:[]};u.push(O),u=O.inner}}}}),i}const f0=Pe.define();function d0(s){let e=0,t=0,n=0,i=0;for(let r of s.state.facet(f0)){let o=r(s);o&&(o.left!=null&&(e=Math.max(e,o.left)),o.right!=null&&(t=Math.max(t,o.right)),o.top!=null&&(n=Math.max(n,o.top)),o.bottom!=null&&(i=Math.max(i,o.bottom)))}return{left:e,right:t,top:n,bottom:i}}const Ao=Pe.define();class Xn{constructor(e,t,n,i){this.fromA=e,this.toA=t,this.fromB=n,this.toB=i}join(e){return new Xn(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,n=this;for(;t>0;t--){let i=e[t-1];if(!(i.fromA>n.toA)){if(i.toAh)break;r+=2}if(!l)return n;new Xn(l.fromA,l.toA,l.fromB,l.toB).addToSet(n),o=l.toA,a=l.toB}}}class Nl{constructor(e,t,n){this.view=e,this.state=t,this.transactions=n,this.flags=0,this.startState=e.state,this.changes=Ht.empty(this.startState.doc.length);for(let r of n)this.changes=this.changes.compose(r.changes);let i=[];this.changes.iterChangedRanges((r,o,a,l)=>i.push(new Xn(r,o,a,l))),this.changedRanges=i}static create(e,t,n){return new Nl(e,t,n)}get viewportChanged(){return(this.flags&4)>0}get viewportMoved(){return(this.flags&8)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&18)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}class um extends yt{get length(){return this.view.state.doc.length}constructor(e){super(),this.view=e,this.decorations=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.editContextFormatting=It.none,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(e.contentDOM),this.children=[new Qt],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new Xn(0,0,0,e.state.doc.length)],0,null)}update(e){var t;let n=e.changedRanges;this.minWidth>0&&n.length&&(n.every(({fromA:c,toA:h})=>hthis.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(e);let i=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&(!((t=this.domChanged)===null||t===void 0)&&t.newSel?i=this.domChanged.newSel.head:!rA(e.changes,this.hasComposition)&&!e.selectionSet&&(i=e.state.selection.main.head));let r=i>-1?eA(this.view,e.changes,i):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:c,to:h}=this.hasComposition;n=new Xn(c,h,e.changes.mapPos(c,-1),e.changes.mapPos(h,1)).addToSet(n.slice())}this.hasComposition=r?{from:r.range.fromB,to:r.range.toB}:null,(me.ie||me.chrome)&&!r&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let o=this.decorations,a=this.updateDeco(),l=iA(o,a,e.changes);return n=Xn.extendWithRanges(n,l),!(this.flags&7)&&n.length==0?!1:(this.updateInner(n,e.startState.doc.length,r),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,t,n){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,t,n);let{observer:i}=this.view;i.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let o=me.chrome||me.ios?{node:i.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,o),this.flags&=-8,o&&(o.written||i.selectionRange.focusNode!=o.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(o=>o.flags&=-9);let r=[];if(this.view.viewport.from||this.view.viewport.to=0?i[o]:null;if(!a)break;let{fromA:l,toA:c,fromB:h,toB:u}=a,f,d,p,O;if(n&&n.range.fromBh){let _=$o.build(this.view.state.doc,h,n.range.fromB,this.decorations,this.dynamicDecorationMap),w=$o.build(this.view.state.doc,n.range.toB,u,this.decorations,this.dynamicDecorationMap);d=_.breakAtStart,p=_.openStart,O=w.openEnd;let T=this.compositionView(n);w.breakAtStart?T.breakAfter=1:w.content.length&&T.merge(T.length,T.length,w.content[0],!1,w.openStart,0)&&(T.breakAfter=w.content[0].breakAfter,w.content.shift()),_.content.length&&T.merge(0,0,_.content[_.content.length-1],!0,0,_.openEnd)&&_.content.pop(),f=_.content.concat(T).concat(w.content)}else({content:f,breakAtStart:d,openStart:p,openEnd:O}=$o.build(this.view.state.doc,h,u,this.decorations,this.dynamicDecorationMap));let{i:g,off:m}=r.findPos(c,1),{i:b,off:x}=r.findPos(l,-1);$O(this,b,x,g,m,f,d,p,O)}n&&this.fixCompositionDOM(n)}updateEditContextFormatting(e){this.editContextFormatting=this.editContextFormatting.map(e.changes);for(let t of e.transactions)for(let n of t.effects)n.is(l0)&&(this.editContextFormatting=n.value)}compositionView(e){let t=new oi(e.text.nodeValue);t.flags|=8;for(let{deco:i}of e.marks)t=new Hi(i,[t],t.length);let n=new Qt;return n.append(t,0),n}fixCompositionDOM(e){let t=(r,o)=>{o.flags|=8|(o.children.some(l=>l.flags&7)?1:0),this.markedForComposition.add(o);let a=yt.get(r);a&&a!=o&&(a.dom=null),o.setDOM(r)},n=this.childPos(e.range.fromB,1),i=this.children[n.i];t(e.line,i);for(let r=e.marks.length-1;r>=-1;r--)n=i.childPos(n.off,1),i=i.children[n.i],t(r>=0?e.marks[r].node:e.text,i)}updateSelection(e=!1,t=!1){(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let n=this.view.root.activeElement,i=n==this.dom,r=!i&&!(this.view.state.facet(Qi)||this.dom.tabIndex>-1)&&_l(this.dom,this.view.observer.selectionRange)&&!(n&&this.dom.contains(n));if(!(i||t||r))return;let o=this.forceSelection;this.forceSelection=!1;let a=this.view.state.selection.main,l=this.moveToLine(this.domAtPos(a.anchor)),c=a.empty?l:this.moveToLine(this.domAtPos(a.head));if(me.gecko&&a.empty&&!this.hasComposition&&JE(l)){let u=document.createTextNode("");this.view.observer.ignore(()=>l.node.insertBefore(u,l.node.childNodes[l.offset]||null)),l=c=new an(u,0),o=!0}let h=this.view.observer.selectionRange;(o||!h.focusNode||(!Fo(l.node,l.offset,h.anchorNode,h.anchorOffset)||!Fo(c.node,c.offset,h.focusNode,h.focusOffset))&&!this.suppressWidgetCursorChange(h,a))&&(this.view.observer.ignore(()=>{me.android&&me.chrome&&this.dom.contains(h.focusNode)&&sA(h.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let u=Ko(this.view.root);if(u)if(a.empty){if(me.gecko){let f=tA(l.node,l.offset);if(f&&f!=3){let d=(f==1?QO:BO)(l.node,l.offset);d&&(l=new an(d.node,d.offset))}}u.collapse(l.node,l.offset),a.bidiLevel!=null&&u.caretBidiLevel!==void 0&&(u.caretBidiLevel=a.bidiLevel)}else if(u.extend){u.collapse(l.node,l.offset);try{u.extend(c.node,c.offset)}catch{}}else{let f=document.createRange();a.anchor>a.head&&([l,c]=[c,l]),f.setEnd(c.node,c.offset),f.setStart(l.node,l.offset),u.removeAllRanges(),u.addRange(f)}r&&this.view.root.activeElement==this.dom&&(this.dom.blur(),n&&n.focus())}),this.view.observer.setSelectionRange(l,c)),this.impreciseAnchor=l.precise?null:new an(h.anchorNode,h.anchorOffset),this.impreciseHead=c.precise?null:new an(h.focusNode,h.focusOffset)}suppressWidgetCursorChange(e,t){return this.hasComposition&&t.empty&&Fo(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==t.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,t=e.state.selection.main,n=Ko(e.root),{anchorNode:i,anchorOffset:r}=e.observer.selectionRange;if(!n||!t.empty||!t.assoc||!n.modify)return;let o=Qt.find(this,t.head);if(!o)return;let a=o.posAtStart;if(t.head==a||t.head==a+o.length)return;let l=this.coordsAt(t.head,-1),c=this.coordsAt(t.head,1);if(!l||!c||l.bottom>c.top)return;let h=this.domAtPos(t.head+t.assoc);n.collapse(h.node,h.offset),n.modify("move",t.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let u=e.observer.selectionRange;e.docView.posFromDOM(u.anchorNode,u.anchorOffset)!=t.from&&n.collapse(i,r)}moveToLine(e){let t=this.dom,n;if(e.node!=t)return e;for(let i=e.offset;!n&&i=0;i--){let r=yt.get(t.childNodes[i]);r instanceof Qt&&(n=r.domAtPos(r.length))}return n?new an(n.node,n.offset,!0):e}nearest(e){for(let t=e;t;){let n=yt.get(t);if(n&&n.rootView==this)return n;t=t.parentNode}return null}posFromDOM(e,t){let n=this.nearest(e);if(!n)throw new RangeError("Trying to find position for a DOM position outside of the document");return n.localPosFromDOM(e,t)+n.posAtStart}domAtPos(e){let{i:t,off:n}=this.childCursor().findPos(e,-1);for(;t=0;o--){let a=this.children[o],l=r-a.breakAfter,c=l-a.length;if(le||a.covers(1))&&(!n||a instanceof Qt&&!(n instanceof Qt&&t>=0)))n=a,i=c;else if(n&&c==e&&l==e&&a instanceof Zi&&Math.abs(t)<2){if(a.deco.startSide<0)break;o&&(n=null)}r=c}return n?n.coordsAt(e-i,t):null}coordsForChar(e){let{i:t,off:n}=this.childPos(e,1),i=this.children[t];if(!(i instanceof Qt))return null;for(;i.children.length;){let{i:a,off:l}=i.childPos(n,1);for(;;a++){if(a==i.children.length)return null;if((i=i.children[a]).length)break}n=l}if(!(i instanceof oi))return null;let r=mn(i.text,n);if(r==n)return null;let o=Ks(i.dom,n,r).getClientRects();for(let a=0;aMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,a=-1,l=this.view.textDirection==Vt.LTR;for(let c=0,h=0;hi)break;if(c>=n){let d=u.dom.getBoundingClientRect();if(t.push(d.height),o){let p=u.dom.lastChild,O=p?Jo(p):[];if(O.length){let g=O[O.length-1],m=l?g.right-d.left:d.right-g.left;m>a&&(a=m,this.minWidth=r,this.minWidthFrom=c,this.minWidthTo=f)}}}c=f+u.breakAfter}return t}textDirectionAt(e){let{i:t}=this.childPos(e,1);return getComputedStyle(this.children[t].dom).direction=="rtl"?Vt.RTL:Vt.LTR}measureTextSize(){for(let r of this.children)if(r instanceof Qt){let o=r.measureTextSize();if(o)return o}let e=document.createElement("div"),t,n,i;return e.className="cm-line",e.style.width="99999px",e.style.position="absolute",e.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(e);let r=Jo(e.firstChild)[0];t=e.getBoundingClientRect().height,n=r?r.width/27:7,i=r?r.height:t,e.remove()}),{lineHeight:t,charWidth:n,textHeight:i}}childCursor(e=this.length){let t=this.children.length;return t&&(e-=this.children[--t].length),new FO(this.children,e,t)}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let n=0,i=0;;i++){let r=i==t.viewports.length?null:t.viewports[i],o=r?r.from-1:this.length;if(o>n){let a=(t.lineBlockAt(o).bottom-t.lineBlockAt(n).top)/this.view.scaleY;e.push(It.replace({widget:new Fu(a),block:!0,inclusive:!0,isBlockGap:!0}).range(n,o))}if(!r)break;n=r.to+1}return It.set(e)}updateDeco(){let e=1,t=this.view.state.facet(ea).map(r=>(this.dynamicDecorationMap[e++]=typeof r=="function")?r(this.view):r),n=!1,i=this.view.state.facet(h0).map((r,o)=>{let a=typeof r=="function";return a&&(n=!0),a?r(this.view):r});for(i.length&&(this.dynamicDecorationMap[e++]=n,t.push(gt.join(i))),this.decorations=[this.editContextFormatting,...t,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];et.anchor?-1:1),i;if(!n)return;!t.empty&&(i=this.coordsAt(t.anchor,t.anchor>t.head?-1:1))&&(n={left:Math.min(n.left,i.left),top:Math.min(n.top,i.top),right:Math.max(n.right,i.right),bottom:Math.max(n.bottom,i.bottom)});let r=d0(this.view),o={left:n.left-r.left,top:n.top-r.top,right:n.right+r.right,bottom:n.bottom+r.bottom},{offsetWidth:a,offsetHeight:l}=this.view.scrollDOM;kE(this.view.scrollDOM,o,t.head{ne.from&&(t=!0)}),t}function oA(s,e,t=1){let n=s.charCategorizer(e),i=s.doc.lineAt(e),r=e-i.from;if(i.length==0)return oe.cursor(e);r==0?t=1:r==i.length&&(t=-1);let o=r,a=r;t<0?o=mn(i.text,r,!1):a=mn(i.text,r);let l=n(i.text.slice(o,a));for(;o>0;){let c=mn(i.text,o,!1);if(n(i.text.slice(c,o))!=l)break;o=c}for(;as?e.left-s:Math.max(0,s-e.right)}function lA(s,e){return e.top>s?e.top-s:Math.max(0,s-e.bottom)}function lh(s,e){return s.tope.top+1}function fm(s,e){return es.bottom?{top:s.top,left:s.left,right:s.right,bottom:e}:s}function Gu(s,e,t){let n,i,r,o,a=!1,l,c,h,u;for(let p=s.firstChild;p;p=p.nextSibling){let O=Jo(p);for(let g=0;gx||o==x&&r>b){n=p,i=m,r=b,o=x;let _=x?t0?g0)}b==0?t>m.bottom&&(!h||h.bottomm.top)&&(c=p,u=m):h&&lh(h,m)?h=dm(h,m.bottom):u&&lh(u,m)&&(u=fm(u,m.top))}}if(h&&h.bottom>=t?(n=l,i=h):u&&u.top<=t&&(n=c,i=u),!n)return{node:s,offset:0};let f=Math.max(i.left,Math.min(i.right,e));if(n.nodeType==3)return pm(n,f,t);if(a&&n.contentEditable!="false")return Gu(n,f,t);let d=Array.prototype.indexOf.call(s.childNodes,n)+(e>=(i.left+i.right)/2?1:0);return{node:s,offset:d}}function pm(s,e,t){let n=s.nodeValue.length,i=-1,r=1e9,o=0;for(let a=0;at?h.top-t:t-h.bottom)-1;if(h.left-1<=e&&h.right+1>=e&&u=(h.left+h.right)/2,d=f;if((me.chrome||me.gecko)&&Ks(s,a).getBoundingClientRect().left==h.right&&(d=!f),u<=0)return{node:s,offset:a+(d?1:0)};i=a+(d?1:0),r=u}}}return{node:s,offset:i>-1?i:o>0?s.nodeValue.length:0}}function m0(s,e,t,n=-1){var i,r;let o=s.contentDOM.getBoundingClientRect(),a=o.top+s.viewState.paddingTop,l,{docHeight:c}=s.viewState,{x:h,y:u}=e,f=u-a;if(f<0)return 0;if(f>c)return s.state.doc.length;for(let _=s.viewState.heightOracle.textHeight/2,w=!1;l=s.elementAtHeight(f),l.type!=Gn.Text;)for(;f=n>0?l.bottom+_:l.top-_,!(f>=0&&f<=c);){if(w)return t?null:0;w=!0,n=-n}u=a+f;let d=l.from;if(ds.viewport.to)return s.viewport.to==s.state.doc.length?s.state.doc.length:t?null:mm(s,o,l,h,u);let p=s.dom.ownerDocument,O=s.root.elementFromPoint?s.root:p,g=O.elementFromPoint(h,u);g&&!s.contentDOM.contains(g)&&(g=null),g||(h=Math.max(o.left+1,Math.min(o.right-1,h)),g=O.elementFromPoint(h,u),g&&!s.contentDOM.contains(g)&&(g=null));let m,b=-1;if(g&&((i=s.docView.nearest(g))===null||i===void 0?void 0:i.isEditable)!=!1){if(p.caretPositionFromPoint){let _=p.caretPositionFromPoint(h,u);_&&({offsetNode:m,offset:b}=_)}else if(p.caretRangeFromPoint){let _=p.caretRangeFromPoint(h,u);_&&({startContainer:m,startOffset:b}=_,(!s.contentDOM.contains(m)||me.safari&&cA(m,b,h)||me.chrome&&hA(m,b,h))&&(m=void 0))}m&&(b=Math.min(Si(m),b))}if(!m||!s.docView.dom.contains(m)){let _=Qt.find(s.docView,d);if(!_)return f>l.top+l.height/2?l.to:l.from;({node:m,offset:b}=Gu(_.dom,h,u))}let x=s.docView.nearest(m);if(!x)return null;if(x.isWidget&&((r=x.dom)===null||r===void 0?void 0:r.nodeType)==1){let _=x.dom.getBoundingClientRect();return e.y<_.top||e.y<=_.bottom&&e.x<=(_.left+_.right)/2?x.posAtStart:x.posAtEnd}else return x.localPosFromDOM(m,b)+x.posAtStart}function mm(s,e,t,n,i){let r=Math.round((n-e.left)*s.defaultCharacterWidth);if(s.lineWrapping&&t.height>s.defaultLineHeight*1.5){let a=s.viewState.heightOracle.textHeight,l=Math.floor((i-t.top-(s.defaultLineHeight-a)*.5)/a);r+=l*s.viewState.heightOracle.lineLength}let o=s.state.sliceDoc(t.from,t.to);return t.from+TE(o,r,s.state.tabSize)}function cA(s,e,t){let n;if(s.nodeType!=3||e!=(n=s.nodeValue.length))return!1;for(let i=s.nextSibling;i;i=i.nextSibling)if(i.nodeType!=1||i.nodeName!="BR")return!1;return Ks(s,n-1,n).getBoundingClientRect().left>t}function hA(s,e,t){if(e!=0)return!1;for(let i=s;;){let r=i.parentNode;if(!r||r.nodeType!=1||r.firstChild!=i)return!1;if(r.classList.contains("cm-line"))break;i=r}let n=s.nodeType==1?s.getBoundingClientRect():Ks(s,0,Math.max(s.nodeValue.length,1)).getBoundingClientRect();return t-n.left>5}function uA(s,e){let t=s.lineBlockAt(e);if(Array.isArray(t.type)){for(let n of t.type)if(n.to>e||n.to==e&&(n.to==t.to||n.type==Gn.Text))return n}return t}function fA(s,e,t,n){let i=uA(s,e.head),r=!n||i.type!=Gn.Text||!(s.lineWrapping||i.widgetLineBreaks)?null:s.coordsAtPos(e.assoc<0&&e.head>i.from?e.head-1:e.head);if(r){let o=s.dom.getBoundingClientRect(),a=s.textDirectionAt(i.from),l=s.posAtCoords({x:t==(a==Vt.LTR)?o.right-1:o.left+1,y:(r.top+r.bottom)/2});if(l!=null)return oe.cursor(l,t?-1:1)}return oe.cursor(t?i.to:i.from,t?-1:1)}function gm(s,e,t,n){let i=s.state.doc.lineAt(e.head),r=s.bidiSpans(i),o=s.textDirectionAt(i.from);for(let a=e,l=null;;){let c=jE(i,r,o,a,t),h=JO;if(!c){if(i.number==(t?s.state.doc.lines:1))return a;h=` -`,i=s.state.doc.line(i.number+(t?1:-1)),r=s.bidiSpans(i),c=s.visualLineSide(i,!t)}if(l){if(!l(h))return a}else{if(!n)return c;l=n(h)}a=c}}function dA(s,e,t){let n=s.state.charCategorizer(e),i=n(t);return r=>{let o=n(r);return i==$i.Space&&(i=o),i==o}}function pA(s,e,t,n){let i=e.head,r=t?1:-1;if(i==(t?s.state.doc.length:0))return oe.cursor(i,e.assoc);let o=e.goalColumn,a,l=s.contentDOM.getBoundingClientRect(),c=s.coordsAtPos(i,e.assoc||-1),h=s.documentTop;if(c)o==null&&(o=c.left-l.left),a=r<0?c.top:c.bottom;else{let d=s.viewState.lineBlockAt(i);o==null&&(o=Math.min(l.right-l.left,s.defaultCharacterWidth*(i-d.from))),a=(r<0?d.top:d.bottom)+h}let u=l.left+o,f=n??s.viewState.heightOracle.textHeight>>1;for(let d=0;;d+=10){let p=a+(f+d)*r,O=m0(s,{x:u,y:p},!1,r);if(pl.bottom||(r<0?Oi)){let g=s.docView.coordsForChar(O),m=!g||p{if(e>r&&ei(s)),t.from,e.head>t.from?-1:1);return n==t.from?t:oe.cursor(n,nr)&&this.lineBreak(),i=o}return this.findPointBefore(n,t),this}readTextNode(e){let t=e.nodeValue;for(let n of this.points)n.node==e&&(n.pos=this.text.length+Math.min(n.offset,t.length));for(let n=0,i=this.lineSeparator?null:/\r\n?|\n/g;;){let r=-1,o=1,a;if(this.lineSeparator?(r=t.indexOf(this.lineSeparator,n),o=this.lineSeparator.length):(a=i.exec(t))&&(r=a.index,o=a[0].length),this.append(t.slice(n,r<0?t.length:r)),r<0)break;if(this.lineBreak(),o>1)for(let l of this.points)l.node==e&&l.pos>this.text.length&&(l.pos-=o-1);n=r+o}}readNode(e){if(e.cmIgnore)return;let t=yt.get(e),n=t&&t.overrideDOMText;if(n!=null){this.findPointInside(e,n.length);for(let i=n.iter();!i.next().done;)i.lineBreak?this.lineBreak():this.append(i.value)}else e.nodeType==3?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():e.nodeType==1&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let n of this.points)n.node==e&&e.childNodes[n.offset]==t&&(n.pos=this.text.length)}findPointInside(e,t){for(let n of this.points)(e.nodeType==3?n.node==e:e.contains(n.node))&&(n.pos=this.text.length+(gA(e,n.node,n.offset)?t:0))}}function gA(s,e,t){for(;;){if(!e||t-1;let{impreciseHead:r,impreciseAnchor:o}=e.docView;if(e.state.readOnly&&t>-1)this.newSel=null;else if(t>-1&&(this.bounds=e.docView.domBoundsAround(t,n,0))){let a=r||o?[]:yA(e),l=new mA(a,e.state);l.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=l.text,this.newSel=SA(a,this.bounds.from)}else{let a=e.observer.selectionRange,l=r&&r.node==a.focusNode&&r.offset==a.focusOffset||!Du(e.contentDOM,a.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(a.focusNode,a.focusOffset),c=o&&o.node==a.anchorNode&&o.offset==a.anchorOffset||!Du(e.contentDOM,a.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(a.anchorNode,a.anchorOffset),h=e.viewport;if((me.ios||me.chrome)&&e.state.selection.main.empty&&l!=c&&(h.from>0||h.toDate.now()-100?s.inputState.lastKeyCode:-1;if(e.bounds){let{from:o,to:a}=e.bounds,l=i.from,c=null;(r===8||me.android&&e.text.length=i.from&&t.to<=i.to&&(t.from!=i.from||t.to!=i.to)&&i.to-i.from-(t.to-t.from)<=4?t={from:i.from,to:i.to,insert:s.state.doc.slice(i.from,t.from).append(t.insert).append(s.state.doc.slice(t.to,i.to))}:me.chrome&&t&&t.from==t.to&&t.from==i.head&&t.insert.toString()==` - `&&s.lineWrapping&&(n&&(n=oe.single(n.main.anchor-1,n.main.head-1)),t={from:i.from,to:i.to,insert:it.of([" "])}),t)return Zf(s,t,n,r);if(n&&!n.main.eq(i)){let o=!1,a="select";return s.inputState.lastSelectionTime>Date.now()-50&&(s.inputState.lastSelectionOrigin=="select"&&(o=!0),a=s.inputState.lastSelectionOrigin),s.dispatch({selection:n,scrollIntoView:o,userEvent:a}),!0}else return!1}function Zf(s,e,t,n=-1){if(me.ios&&s.inputState.flushIOSKey(e))return!0;let i=s.state.selection.main;if(me.android&&(e.to==i.to&&(e.from==i.from||e.from==i.from-1&&s.state.sliceDoc(e.from,i.from)==" ")&&e.insert.length==1&&e.insert.lines==2&&Ur(s.contentDOM,"Enter",13)||(e.from==i.from-1&&e.to==i.to&&e.insert.length==0||n==8&&e.insert.lengthi.head)&&Ur(s.contentDOM,"Backspace",8)||e.from==i.from&&e.to==i.to+1&&e.insert.length==0&&Ur(s.contentDOM,"Delete",46)))return!0;let r=e.insert.toString();s.inputState.composing>=0&&s.inputState.composing++;let o,a=()=>o||(o=_A(s,e,t));return s.state.facet(s0).some(l=>l(s,e.from,e.to,r,a))||s.dispatch(a()),!0}function _A(s,e,t){let n,i=s.state,r=i.selection.main;if(e.from>=r.from&&e.to<=r.to&&e.to-e.from>=(r.to-r.from)/3&&(!t||t.main.empty&&t.main.from==e.from+e.insert.length)&&s.inputState.composing<0){let a=r.frome.to?i.sliceDoc(e.to,r.to):"";n=i.replaceSelection(s.state.toText(a+e.insert.sliceString(0,void 0,s.state.lineBreak)+l))}else{let a=i.changes(e),l=t&&t.main.to<=a.newLength?t.main:void 0;if(i.selection.ranges.length>1&&s.inputState.composing>=0&&e.to<=r.to&&e.to>=r.to-10){let c=s.state.sliceDoc(e.from,e.to),h,u=t&&p0(s,t.main.head);if(u){let p=e.insert.length-(e.to-e.from);h={from:u.from,to:u.to-p}}else h=s.state.doc.lineAt(r.head);let f=r.to-e.to,d=r.to-r.from;n=i.changeByRange(p=>{if(p.from==r.from&&p.to==r.to)return{changes:a,range:l||p.map(a)};let O=p.to-f,g=O-c.length;if(p.to-p.from!=d||s.state.sliceDoc(g,O)!=c||p.to>=h.from&&p.from<=h.to)return{range:p};let m=i.changes({from:g,to:O,insert:e.insert}),b=p.to-r.to;return{changes:m,range:l?oe.range(Math.max(0,l.anchor+b),Math.max(0,l.head+b)):p.map(m)}})}else n={changes:a,selection:l&&i.selection.replaceRange(l)}}let o="input.type";return(s.composing||s.inputState.compositionPendingChange&&s.inputState.compositionEndedAt>Date.now()-50)&&(s.inputState.compositionPendingChange=!1,o+=".compose",s.inputState.compositionFirstChange&&(o+=".start",s.inputState.compositionFirstChange=!1)),i.update(n,{userEvent:o,scrollIntoView:!0})}function xA(s,e,t,n){let i=Math.min(s.length,e.length),r=0;for(;r0&&a>0&&s.charCodeAt(o-1)==e.charCodeAt(a-1);)o--,a--;if(n=="end"){let l=Math.max(0,r-Math.min(o,a));t-=o+l-r}if(o=o?r-t:0;r-=l,a=r+(a-o),o=r}else if(a=a?r-t:0;r-=l,o=r+(o-a),a=r}return{from:r,toA:o,toB:a}}function yA(s){let e=[];if(s.root.activeElement!=s.contentDOM)return e;let{anchorNode:t,anchorOffset:n,focusNode:i,focusOffset:r}=s.observer.selectionRange;return t&&(e.push(new Om(t,n)),(i!=t||r!=n)&&e.push(new Om(i,r))),e}function SA(s,e){if(s.length==0)return null;let t=s[0].pos,n=s.length==2?s[1].pos:t;return t>-1&&n>-1?oe.single(t+e,n+e):null}class vA{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,me.safari&&e.contentDOM.addEventListener("input",()=>null),me.gecko&&QA(e.contentDOM.ownerDocument)}handleEvent(e){!RA(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||this.runHandlers(e.type,e)}runHandlers(e,t){let n=this.handlers[e];if(n){for(let i of n.observers)i(this.view,t);for(let i of n.handlers){if(t.defaultPrevented)break;if(i(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=bA(e),n=this.handlers,i=this.view.contentDOM;for(let r in t)if(r!="scroll"){let o=!t[r].handlers.length,a=n[r];a&&o!=!a.handlers.length&&(i.removeEventListener(r,this.handleEvent),a=null),a||i.addEventListener(r,this.handleEvent,{passive:o})}for(let r in n)r!="scroll"&&!t[r]&&i.removeEventListener(r,this.handleEvent);this.handlers=t}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return!0;if(this.tabFocusMode>0&&e.keyCode!=27&&_0.indexOf(e.keyCode)<0&&(this.tabFocusMode=-1),me.android&&me.chrome&&!e.synthetic&&(e.keyCode==13||e.keyCode==8))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;let t;return me.ios&&!e.synthetic&&!e.altKey&&!e.metaKey&&((t=O0.find(n=>n.keyCode==e.keyCode))&&!e.ctrlKey||MA.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(this.pendingIOSKey=t||e,setTimeout(()=>this.flushIOSKey(),250),!0):(e.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(e){let t=this.pendingIOSKey;return!t||t.key=="Enter"&&e&&e.from0?!0:me.safari&&!me.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.view.observer.update(e),this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function _m(s,e){return(t,n)=>{try{return e.call(s,n,t)}catch(i){_i(t.state,i)}}}function bA(s){let e=Object.create(null);function t(n){return e[n]||(e[n]={observers:[],handlers:[]})}for(let n of s){let i=n.spec;if(i&&i.domEventHandlers)for(let r in i.domEventHandlers){let o=i.domEventHandlers[r];o&&t(r).handlers.push(_m(n.value,o))}if(i&&i.domEventObservers)for(let r in i.domEventObservers){let o=i.domEventObservers[r];o&&t(r).observers.push(_m(n.value,o))}}for(let n in ai)t(n).handlers.push(ai[n]);for(let n in Hn)t(n).observers.push(Hn[n]);return e}const O0=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],MA="dthko",_0=[16,17,18,20,91,92,224,225],qa=6;function Ya(s){return Math.max(0,s)*.7+8}function wA(s,e){return Math.max(Math.abs(s.clientX-e.clientX),Math.abs(s.clientY-e.clientY))}class TA{constructor(e,t,n,i){this.view=e,this.startEvent=t,this.style=n,this.mustSelect=i,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=t,this.scrollParents=LE(e.contentDOM),this.atoms=e.state.facet(zf).map(o=>o(e));let r=e.contentDOM.ownerDocument;r.addEventListener("mousemove",this.move=this.move.bind(this)),r.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(ft.allowMultipleSelections)&&EA(e,t),this.dragging=PA(e,t)&&S0(t)==1?null:!1}start(e){this.dragging===!1&&this.select(e)}move(e){if(e.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&wA(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let t=0,n=0,i=0,r=0,o=this.view.win.innerWidth,a=this.view.win.innerHeight;this.scrollParents.x&&({left:i,right:o}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:r,bottom:a}=this.scrollParents.y.getBoundingClientRect());let l=d0(this.view);e.clientX-l.left<=i+qa?t=-Ya(i-e.clientX):e.clientX+l.right>=o-qa&&(t=Ya(e.clientX-o)),e.clientY-l.top<=r+qa?n=-Ya(r-e.clientY):e.clientY+l.bottom>=a-qa&&(n=Ya(e.clientY-a)),this.setScrollSpeed(t,n)}up(e){this.dragging==null&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,t){this.scrollSpeed={x:e,y:t},e||t?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){let{x:e,y:t}=this.scrollSpeed;e&&this.scrollParents.x&&(this.scrollParents.x.scrollLeft+=e,e=0),t&&this.scrollParents.y&&(this.scrollParents.y.scrollTop+=t,t=0),(e||t)&&this.view.win.scrollBy(e,t),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(e){let t=null;for(let n=0;nt.isUserEvent("input.type"))?this.destroy():this.style.update(e)&&setTimeout(()=>this.select(this.lastEvent),20)}}function EA(s,e){let t=s.state.facet(e0);return t.length?t[0](e):me.mac?e.metaKey:e.ctrlKey}function AA(s,e){let t=s.state.facet(t0);return t.length?t[0](e):me.mac?!e.altKey:!e.ctrlKey}function PA(s,e){let{main:t}=s.state.selection;if(t.empty)return!1;let n=Ko(s.root);if(!n||n.rangeCount==0)return!0;let i=n.getRangeAt(0).getClientRects();for(let r=0;r=e.clientX&&o.top<=e.clientY&&o.bottom>=e.clientY)return!0}return!1}function RA(s,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let t=e.target,n;t!=s.contentDOM;t=t.parentNode)if(!t||t.nodeType==11||(n=yt.get(t))&&n.ignoreEvent(e))return!1;return!0}const ai=Object.create(null),Hn=Object.create(null),x0=me.ie&&me.ie_version<15||me.ios&&me.webkit_version<604;function CA(s){let e=s.dom.parentNode;if(!e)return;let t=e.appendChild(document.createElement("textarea"));t.style.cssText="position: fixed; left: -10000px; top: 10px",t.focus(),setTimeout(()=>{s.focus(),t.remove(),y0(s,t.value)},50)}function cc(s,e,t){for(let n of s.facet(e))t=n(t,s);return t}function y0(s,e){e=cc(s.state,Ff,e);let{state:t}=s,n,i=1,r=t.toText(e),o=r.lines==t.selection.ranges.length;if(Xu!=null&&t.selection.ranges.every(l=>l.empty)&&Xu==r.toString()){let l=-1;n=t.changeByRange(c=>{let h=t.doc.lineAt(c.from);if(h.from==l)return{range:c};l=h.from;let u=t.toText((o?r.line(i++).text:e)+t.lineBreak);return{changes:{from:h.from,insert:u},range:oe.cursor(c.from+u.length)}})}else o?n=t.changeByRange(l=>{let c=r.line(i++);return{changes:{from:l.from,to:l.to,insert:c.text},range:oe.cursor(l.from+c.length)}}):n=t.replaceSelection(r);s.dispatch(n,{userEvent:"input.paste",scrollIntoView:!0})}Hn.scroll=s=>{s.inputState.lastScrollTop=s.scrollDOM.scrollTop,s.inputState.lastScrollLeft=s.scrollDOM.scrollLeft};ai.keydown=(s,e)=>(s.inputState.setSelectionOrigin("select"),e.keyCode==27&&s.inputState.tabFocusMode!=0&&(s.inputState.tabFocusMode=Date.now()+2e3),!1);Hn.touchstart=(s,e)=>{s.inputState.lastTouchTime=Date.now(),s.inputState.setSelectionOrigin("select.pointer")};Hn.touchmove=s=>{s.inputState.setSelectionOrigin("select.pointer")};ai.mousedown=(s,e)=>{if(s.observer.flush(),s.inputState.lastTouchTime>Date.now()-2e3)return!1;let t=null;for(let n of s.state.facet(n0))if(t=n(s,e),t)break;if(!t&&e.button==0&&(t=DA(s,e)),t){let n=!s.hasFocus;s.inputState.startMouseSelection(new TA(s,e,t,n)),n&&s.observer.ignore(()=>{IO(s.contentDOM);let r=s.root.activeElement;r&&!r.contains(s.contentDOM)&&r.blur()});let i=s.inputState.mouseSelection;if(i)return i.start(e),i.dragging===!1}return!1};function xm(s,e,t,n){if(n==1)return oe.cursor(e,t);if(n==2)return oA(s.state,e,t);{let i=Qt.find(s.docView,e),r=s.state.doc.lineAt(i?i.posAtEnd:e),o=i?i.posAtStart:r.from,a=i?i.posAtEnd:r.to;return ae>=t.top&&e<=t.bottom&&s>=t.left&&s<=t.right;function kA(s,e,t,n){let i=Qt.find(s.docView,e);if(!i)return 1;let r=e-i.posAtStart;if(r==0)return 1;if(r==i.length)return-1;let o=i.coordsAt(r,-1);if(o&&ym(t,n,o))return-1;let a=i.coordsAt(r,1);return a&&ym(t,n,a)?1:o&&o.bottom>=n?-1:1}function Sm(s,e){let t=s.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:t,bias:kA(s,t,e.clientX,e.clientY)}}const LA=me.ie&&me.ie_version<=11;let vm=null,bm=0,Mm=0;function S0(s){if(!LA)return s.detail;let e=vm,t=Mm;return vm=s,Mm=Date.now(),bm=!e||t>Date.now()-400&&Math.abs(e.clientX-s.clientX)<2&&Math.abs(e.clientY-s.clientY)<2?(bm+1)%3:1}function DA(s,e){let t=Sm(s,e),n=S0(e),i=s.state.selection;return{update(r){r.docChanged&&(t.pos=r.changes.mapPos(t.pos),i=i.map(r.changes))},get(r,o,a){let l=Sm(s,r),c,h=xm(s,l.pos,l.bias,n);if(t.pos!=l.pos&&!o){let u=xm(s,t.pos,t.bias,n),f=Math.min(u.from,h.from),d=Math.max(u.to,h.to);h=f1&&(c=IA(i,l.pos))?c:a?i.addRange(h):oe.create([h])}}}function IA(s,e){for(let t=0;t=e)return oe.create(s.ranges.slice(0,t).concat(s.ranges.slice(t+1)),s.mainIndex==t?0:s.mainIndex-(s.mainIndex>t?1:0))}return null}ai.dragstart=(s,e)=>{let{selection:{main:t}}=s.state;if(e.target.draggable){let i=s.docView.nearest(e.target);if(i&&i.isWidget){let r=i.posAtStart,o=r+i.length;(r>=t.to||o<=t.from)&&(t=oe.range(r,o))}}let{inputState:n}=s;return n.mouseSelection&&(n.mouseSelection.dragging=!0),n.draggedContent=t,e.dataTransfer&&(e.dataTransfer.setData("Text",cc(s.state,$f,s.state.sliceDoc(t.from,t.to))),e.dataTransfer.effectAllowed="copyMove"),!1};ai.dragend=s=>(s.inputState.draggedContent=null,!1);function wm(s,e,t,n){if(t=cc(s.state,Ff,t),!t)return;let i=s.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:r}=s.inputState,o=n&&r&&AA(s,e)?{from:r.from,to:r.to}:null,a={from:i,insert:t},l=s.state.changes(o?[o,a]:a);s.focus(),s.dispatch({changes:l,selection:{anchor:l.mapPos(i,-1),head:l.mapPos(i,1)},userEvent:o?"move.drop":"input.drop"}),s.inputState.draggedContent=null}ai.drop=(s,e)=>{if(!e.dataTransfer)return!1;if(s.state.readOnly)return!0;let t=e.dataTransfer.files;if(t&&t.length){let n=Array(t.length),i=0,r=()=>{++i==t.length&&wm(s,e,n.filter(o=>o!=null).join(s.state.lineBreak),!1)};for(let o=0;o{/[\x00-\x08\x0e-\x1f]{2}/.test(a.result)||(n[o]=a.result),r()},a.readAsText(t[o])}return!0}else{let n=e.dataTransfer.getData("Text");if(n)return wm(s,e,n,!0),!0}return!1};ai.paste=(s,e)=>{if(s.state.readOnly)return!0;s.observer.flush();let t=x0?null:e.clipboardData;return t?(y0(s,t.getData("text/plain")||t.getData("text/uri-list")),!0):(CA(s),!1)};function UA(s,e){let t=s.dom.parentNode;if(!t)return;let n=t.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.value=e,n.focus(),n.selectionEnd=e.length,n.selectionStart=0,setTimeout(()=>{n.remove(),s.focus()},50)}function NA(s){let e=[],t=[],n=!1;for(let i of s.selection.ranges)i.empty||(e.push(s.sliceDoc(i.from,i.to)),t.push(i));if(!e.length){let i=-1;for(let{from:r}of s.selection.ranges){let o=s.doc.lineAt(r);o.number>i&&(e.push(o.text),t.push({from:o.from,to:Math.min(s.doc.length,o.to+1)})),i=o.number}n=!0}return{text:cc(s,$f,e.join(s.lineBreak)),ranges:t,linewise:n}}let Xu=null;ai.copy=ai.cut=(s,e)=>{let{text:t,ranges:n,linewise:i}=NA(s.state);if(!t&&!i)return!1;Xu=i?t:null,e.type=="cut"&&!s.state.readOnly&&s.dispatch({changes:n,scrollIntoView:!0,userEvent:"delete.cut"});let r=x0?null:e.clipboardData;return r?(r.clearData(),r.setData("text/plain",t),!0):(UA(s,t),!1)};const v0=ir.define();function b0(s,e){let t=[];for(let n of s.facet(r0)){let i=n(s,e);i&&t.push(i)}return t?s.update({effects:t,annotations:v0.of(!0)}):null}function M0(s){setTimeout(()=>{let e=s.hasFocus;if(e!=s.inputState.notifiedFocused){let t=b0(s.state,e);t?s.dispatch(t):s.update([])}},10)}Hn.focus=s=>{s.inputState.lastFocusTime=Date.now(),!s.scrollDOM.scrollTop&&(s.inputState.lastScrollTop||s.inputState.lastScrollLeft)&&(s.scrollDOM.scrollTop=s.inputState.lastScrollTop,s.scrollDOM.scrollLeft=s.inputState.lastScrollLeft),M0(s)};Hn.blur=s=>{s.observer.clearSelectionRange(),M0(s)};Hn.compositionstart=Hn.compositionupdate=s=>{s.observer.editContext||(s.inputState.compositionFirstChange==null&&(s.inputState.compositionFirstChange=!0),s.inputState.composing<0&&(s.inputState.composing=0))};Hn.compositionend=s=>{s.observer.editContext||(s.inputState.composing=-1,s.inputState.compositionEndedAt=Date.now(),s.inputState.compositionPendingKey=!0,s.inputState.compositionPendingChange=s.observer.pendingRecords().length>0,s.inputState.compositionFirstChange=null,me.chrome&&me.android?s.observer.flushSoon():s.inputState.compositionPendingChange?Promise.resolve().then(()=>s.observer.flush()):setTimeout(()=>{s.inputState.composing<0&&s.docView.hasComposition&&s.update([])},50))};Hn.contextmenu=s=>{s.inputState.lastContextMenu=Date.now()};ai.beforeinput=(s,e)=>{var t,n;if(e.inputType=="insertReplacementText"&&s.observer.editContext){let r=(t=e.dataTransfer)===null||t===void 0?void 0:t.getData("text/plain"),o=e.getTargetRanges();if(r&&o.length){let a=o[0],l=s.posAtDOM(a.startContainer,a.startOffset),c=s.posAtDOM(a.endContainer,a.endOffset);return Zf(s,{from:l,to:c,insert:s.state.toText(r)},null),!0}}let i;if(me.chrome&&me.android&&(i=O0.find(r=>r.inputType==e.inputType))&&(s.observer.delayAndroidKey(i.key,i.keyCode),i.key=="Backspace"||i.key=="Delete")){let r=((n=window.visualViewport)===null||n===void 0?void 0:n.height)||0;setTimeout(()=>{var o;(((o=window.visualViewport)===null||o===void 0?void 0:o.height)||0)>r+10&&s.hasFocus&&(s.contentDOM.blur(),s.focus())},100)}return me.ios&&e.inputType=="deleteContentForward"&&s.observer.flushSoon(),me.safari&&e.inputType=="insertText"&&s.inputState.composing>=0&&setTimeout(()=>Hn.compositionend(s,e),20),!1};const Tm=new Set;function QA(s){Tm.has(s)||(Tm.add(s),s.addEventListener("copy",()=>{}),s.addEventListener("cut",()=>{}))}const Em=["pre-wrap","normal","pre-line","break-spaces"];let eo=!1;function Am(){eo=!1}class BA{constructor(e){this.lineWrapping=e,this.doc=it.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30}heightForGap(e,t){let n=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(n+=Math.max(0,Math.ceil((t-e-n*this.lineLength*.5)/this.lineLength))),this.lineHeight*n}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return Em.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let n=0;n-1,l=Math.round(t)!=Math.round(this.lineHeight)||this.lineWrapping!=a;if(this.lineWrapping=a,this.lineHeight=t,this.charWidth=n,this.textHeight=i,this.lineLength=r,l){this.heightSamples={};for(let c=0;c0}set outdated(e){this.flags=(e?2:0)|this.flags&-3}setHeight(e){this.height!=e&&(Math.abs(this.height-e)>Sl&&(eo=!0),this.height=e)}replace(e,t,n){return _n.of(n)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,n,i){let r=this,o=n.doc;for(let a=i.length-1;a>=0;a--){let{fromA:l,toA:c,fromB:h,toB:u}=i[a],f=r.lineAt(l,Mt.ByPosNoHeight,n.setDoc(t),0,0),d=f.to>=c?f:r.lineAt(c,Mt.ByPosNoHeight,n,0,0);for(u+=d.to-c,c=d.to;a>0&&f.from<=i[a-1].toA;)l=i[a-1].fromA,h=i[a-1].fromB,a--,lr*2){let a=e[t-1];a.break?e.splice(--t,1,a.left,null,a.right):e.splice(--t,1,a.left,a.right),n+=1+a.break,i-=a.size}else if(r>i*2){let a=e[n];a.break?e.splice(n,1,a.left,null,a.right):e.splice(n,1,a.left,a.right),n+=2+a.break,r-=a.size}else break;else if(i=r&&o(this.blockAt(0,n,i,r))}updateHeight(e,t=0,n=!1,i){return i&&i.from<=t&&i.more&&this.setHeight(i.heights[i.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class Cn extends w0{constructor(e,t){super(e,t,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,t,n,i){return new gi(i,this.length,n,this.height,this.breaks)}replace(e,t,n){let i=n[0];return n.length==1&&(i instanceof Cn||i instanceof Jt&&i.flags&4)&&Math.abs(this.length-i.length)<10?(i instanceof Jt?i=new Cn(i.length,this.height):i.height=this.height,this.outdated||(i.outdated=!1),i):_n.of(n)}updateHeight(e,t=0,n=!1,i){return i&&i.from<=t&&i.more?this.setHeight(i.heights[i.index++]):(n||this.outdated)&&this.setHeight(Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class Jt extends _n{constructor(e){super(e,0)}heightMetrics(e,t){let n=e.doc.lineAt(t).number,i=e.doc.lineAt(t+this.length).number,r=i-n+1,o,a=0;if(e.lineWrapping){let l=Math.min(this.height,e.lineHeight*r);o=l/r,this.length>r+1&&(a=(this.height-l)/(this.length-r-1))}else o=this.height/r;return{firstLine:n,lastLine:i,perLine:o,perChar:a}}blockAt(e,t,n,i){let{firstLine:r,lastLine:o,perLine:a,perChar:l}=this.heightMetrics(t,i);if(t.lineWrapping){let c=i+(e0){let r=n[n.length-1];r instanceof Jt?n[n.length-1]=new Jt(r.length+i):n.push(null,new Jt(i-1))}if(e>0){let r=n[0];r instanceof Jt?n[0]=new Jt(e+r.length):n.unshift(new Jt(e-1),null)}return _n.of(n)}decomposeLeft(e,t){t.push(new Jt(e-1),null)}decomposeRight(e,t){t.push(null,new Jt(this.length-e-1))}updateHeight(e,t=0,n=!1,i){let r=t+this.length;if(i&&i.from<=t+this.length&&i.more){let o=[],a=Math.max(t,i.from),l=-1;for(i.from>t&&o.push(new Jt(i.from-t-1).updateHeight(e,t));a<=r&&i.more;){let h=e.doc.lineAt(a).length;o.length&&o.push(null);let u=i.heights[i.index++];l==-1?l=u:Math.abs(u-l)>=Sl&&(l=-2);let f=new Cn(h,u);f.outdated=!1,o.push(f),a+=h+1}a<=r&&o.push(null,new Jt(r-a).updateHeight(e,a));let c=_n.of(o);return(l<0||Math.abs(c.height-this.height)>=Sl||Math.abs(l-this.heightMetrics(e,t).perLine)>=Sl)&&(eo=!0),Ql(this,c)}else(n||this.outdated)&&(this.setHeight(e.heightForGap(t,t+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class $A extends _n{constructor(e,t,n){super(e.length+t+n.length,e.height+n.height,t|(e.outdated||n.outdated?2:0)),this.left=e,this.right=n,this.size=e.size+n.size}get break(){return this.flags&1}blockAt(e,t,n,i){let r=n+this.left.height;return ea))return c;let h=t==Mt.ByPosNoHeight?Mt.ByPosNoHeight:Mt.ByPos;return l?c.join(this.right.lineAt(a,h,n,o,a)):this.left.lineAt(a,h,n,i,r).join(c)}forEachLine(e,t,n,i,r,o){let a=i+this.left.height,l=r+this.left.length+this.break;if(this.break)e=l&&this.right.forEachLine(e,t,n,a,l,o);else{let c=this.lineAt(l,Mt.ByPos,n,i,r);e=e&&c.from<=t&&o(c),t>c.to&&this.right.forEachLine(c.to+1,t,n,a,l,o)}}replace(e,t,n){let i=this.left.length+this.break;if(tthis.left.length)return this.balanced(this.left,this.right.replace(e-i,t-i,n));let r=[];e>0&&this.decomposeLeft(e,r);let o=r.length;for(let a of n)r.push(a);if(e>0&&Pm(r,o-1),t=n&&t.push(null)),e>n&&this.right.decomposeLeft(e-n,t)}decomposeRight(e,t){let n=this.left.length,i=n+this.break;if(e>=i)return this.right.decomposeRight(e-i,t);e2*t.size||t.size>2*e.size?_n.of(this.break?[e,null,t]:[e,t]):(this.left=Ql(this.left,e),this.right=Ql(this.right,t),this.setHeight(e.height+t.height),this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,n=!1,i){let{left:r,right:o}=this,a=t+r.length+this.break,l=null;return i&&i.from<=t+r.length&&i.more?l=r=r.updateHeight(e,t,n,i):r.updateHeight(e,t,n),i&&i.from<=a+o.length&&i.more?l=o=o.updateHeight(e,a,n,i):o.updateHeight(e,a,n),l?this.balanced(r,o):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function Pm(s,e){let t,n;s[e]==null&&(t=s[e-1])instanceof Jt&&(n=s[e+1])instanceof Jt&&s.splice(e-1,3,new Jt(t.length+1+n.length))}const VA=5;class Gf{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let n=Math.min(t,this.lineEnd),i=this.nodes[this.nodes.length-1];i instanceof Cn?i.length+=n-this.pos:(n>this.pos||!this.isCovered)&&this.nodes.push(new Cn(n-this.pos,-1)),this.writtenTo=n,t>n&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,n){if(e=VA)&&this.addLineDeco(i,r,o)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenToe&&this.nodes.push(new Cn(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,t){let n=new Jt(t-e);return this.oracle.doc.lineAt(e).to==t&&(n.flags|=4),n}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof Cn)return e;let t=new Cn(0,-1);return this.nodes.push(t),t}addBlock(e){this.enterLine();let t=e.deco;t&&t.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,t&&t.endSide>0&&(this.covering=e)}addLineDeco(e,t,n){let i=this.ensureLine();i.length+=n,i.collapsed+=n,i.widgetHeight=Math.max(i.widgetHeight,e),i.breaks+=t,this.writtenTo=this.pos=this.pos+n}finish(e){let t=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(t instanceof Cn)&&!this.isCovered?this.nodes.push(new Cn(0,-1)):(this.writtenToh.clientHeight||h.scrollWidth>h.clientWidth)&&u.overflow!="visible"){let f=h.getBoundingClientRect();r=Math.max(r,f.left),o=Math.min(o,f.right),a=Math.max(a,f.top),l=Math.min(c==s.parentNode?i.innerHeight:l,f.bottom)}c=u.position=="absolute"||u.position=="fixed"?h.offsetParent:h.parentNode}else if(c.nodeType==11)c=c.host;else break;return{left:r-t.left,right:Math.max(r,o)-t.left,top:a-(t.top+e),bottom:Math.max(a,l)-(t.top+e)}}function XA(s){let e=s.getBoundingClientRect(),t=s.ownerDocument.defaultView||window;return e.left0&&e.top0}function HA(s,e){let t=s.getBoundingClientRect();return{left:0,right:t.right-t.left,top:e,bottom:t.bottom-(t.top+e)}}class hh{constructor(e,t,n,i){this.from=e,this.to=t,this.size=n,this.displaySize=i}static same(e,t){if(e.length!=t.length)return!1;for(let n=0;ntypeof n!="function"&&n.class=="cm-lineWrapping");this.heightOracle=new BA(t),this.stateDeco=e.facet(ea).filter(n=>typeof n!="function"),this.heightMap=_n.empty().applyChanges(this.stateDeco,it.empty,this.heightOracle.setDoc(e.doc),[new Xn(0,0,0,e.doc.length)]);for(let n=0;n<2&&(this.viewport=this.getViewport(0,null),!!this.updateForViewport());n++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=It.set(this.lineGaps.map(n=>n.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let n=0;n<=1;n++){let i=n?t.head:t.anchor;if(!e.some(({from:r,to:o})=>i>=r&&i<=o)){let{from:r,to:o}=this.lineBlockAt(i);e.push(new Ka(r,o))}}return this.viewports=e.sort((n,i)=>n.from-i.from),this.updateScaler()}updateScaler(){let e=this.scaler;return this.scaler=this.heightMap.height<=7e6?Cm:new Xf(this.heightOracle,this.heightMap,this.viewports),e.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(Ro(e,this.scaler))})}update(e,t=null){this.state=e.state;let n=this.stateDeco;this.stateDeco=this.state.facet(ea).filter(h=>typeof h!="function");let i=e.changedRanges,r=Xn.extendWithRanges(i,zA(n,this.stateDeco,e?e.changes:Ht.empty(this.state.doc.length))),o=this.heightMap.height,a=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);Am(),this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),r),(this.heightMap.height!=o||eo)&&(e.flags|=2),a?(this.scrollAnchorPos=e.changes.mapPos(a.from,-1),this.scrollAnchorHeight=a.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let l=r.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.headl.to)||!this.viewportIsAppropriate(l))&&(l=this.getViewport(0,t));let c=l.from!=this.viewport.from||l.to!=this.viewport.to;this.viewport=l,e.flags|=this.updateForViewport(),(c||!e.changes.empty||e.flags&2)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(e.changes),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(YE)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let t=e.contentDOM,n=window.getComputedStyle(t),i=this.heightOracle,r=n.whiteSpace;this.defaultTextDirection=n.direction=="rtl"?Vt.RTL:Vt.LTR;let o=this.heightOracle.mustRefreshForWrapping(r),a=t.getBoundingClientRect(),l=o||this.mustMeasureContent||this.contentDOMHeight!=a.height;this.contentDOMHeight=a.height,this.mustMeasureContent=!1;let c=0,h=0;if(a.width&&a.height){let{scaleX:_,scaleY:w}=DO(t,a);(_>.005&&Math.abs(this.scaleX-_)>.005||w>.005&&Math.abs(this.scaleY-w)>.005)&&(this.scaleX=_,this.scaleY=w,c|=16,o=l=!0)}let u=(parseInt(n.paddingTop)||0)*this.scaleY,f=(parseInt(n.paddingBottom)||0)*this.scaleY;(this.paddingTop!=u||this.paddingBottom!=f)&&(this.paddingTop=u,this.paddingBottom=f,c|=18),this.editorWidth!=e.scrollDOM.clientWidth&&(i.lineWrapping&&(l=!0),this.editorWidth=e.scrollDOM.clientWidth,c|=16);let d=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=d&&(this.scrollAnchorHeight=-1,this.scrollTop=d),this.scrolledToBottom=NO(e.scrollDOM);let p=(this.printing?HA:GA)(t,this.paddingTop),O=p.top-this.pixelViewport.top,g=p.bottom-this.pixelViewport.bottom;this.pixelViewport=p;let m=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(m!=this.inView&&(this.inView=m,m&&(l=!0)),!this.inView&&!this.scrollTarget&&!XA(e.dom))return 0;let b=a.width;if((this.contentDOMWidth!=b||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=a.width,this.editorHeight=e.scrollDOM.clientHeight,c|=16),l){let _=e.docView.measureVisibleLineHeights(this.viewport);if(i.mustRefreshForHeights(_)&&(o=!0),o||i.lineWrapping&&Math.abs(b-this.contentDOMWidth)>i.charWidth){let{lineHeight:w,charWidth:T,textHeight:E}=e.docView.measureTextSize();o=w>0&&i.refresh(r,w,T,E,b/T,_),o&&(e.docView.minWidth=0,c|=16)}O>0&&g>0?h=Math.max(O,g):O<0&&g<0&&(h=Math.min(O,g)),Am();for(let w of this.viewports){let T=w.from==this.viewport.from?_:e.docView.measureVisibleLineHeights(w);this.heightMap=(o?_n.empty().applyChanges(this.stateDeco,it.empty,this.heightOracle,[new Xn(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(i,0,o,new FA(w.from,T))}eo&&(c|=2)}let x=!this.viewportIsAppropriate(this.viewport,h)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return x&&(c&2&&(c|=this.updateScaler()),this.viewport=this.getViewport(h,this.scrollTarget),c|=this.updateForViewport()),(c&2||x)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(o?[]:this.lineGaps,e)),c|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),c}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let n=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),i=this.heightMap,r=this.heightOracle,{visibleTop:o,visibleBottom:a}=this,l=new Ka(i.lineAt(o-n*1e3,Mt.ByHeight,r,0,0).from,i.lineAt(a+(1-n)*1e3,Mt.ByHeight,r,0,0).to);if(t){let{head:c}=t.range;if(cl.to){let h=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),u=i.lineAt(c,Mt.ByPos,r,0,0),f;t.y=="center"?f=(u.top+u.bottom)/2-h/2:t.y=="start"||t.y=="nearest"&&c=a+Math.max(10,Math.min(n,250)))&&i>o-2*1e3&&r>1,o=i<<1;if(this.defaultTextDirection!=Vt.LTR&&!n)return[];let a=[],l=(h,u,f,d)=>{if(u-hh&&mm.from>=f.from&&m.to<=f.to&&Math.abs(m.from-h)m.fromb));if(!g){if(ux.from<=u&&x.to>=u)){let x=t.moveToLineBoundary(oe.cursor(u),!1,!0).head;x>h&&(u=x)}let m=this.gapSize(f,h,u,d),b=n||m<2e6?m:2e6;g=new hh(h,u,m,b)}a.push(g)},c=h=>{if(h.length2e6)for(let T of e)T.from>=h.from&&T.fromh.from&&l(h.from,d,h,u),pt.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(e){let t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));let n=[];gt.spans(t,this.viewport.from,this.viewport.to,{span(r,o){n.push({from:r,to:o})},point(){}},20);let i=0;if(n.length!=this.visibleRanges.length)i=12;else for(let r=0;r=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(t=>t.from<=e&&t.to>=e)||Ro(this.heightMap.lineAt(e,Mt.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return e>=this.viewportLines[0].top&&e<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find(t=>t.top<=e&&t.bottom>=e)||Ro(this.heightMap.lineAt(this.scaler.fromDOM(e),Mt.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let t=this.lineBlockAtHeight(e+8);return t.from>=this.viewport.from||this.viewportLines[0].top-e>200?t:this.viewportLines[0]}elementAtHeight(e){return Ro(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class Ka{constructor(e,t){this.from=e,this.to=t}}function jA(s,e,t){let n=[],i=s,r=0;return gt.spans(t,s,e,{span(){},point(o,a){o>i&&(n.push({from:i,to:o}),r+=o-i),i=a}},20),i=1)return e[e.length-1].to;let n=Math.floor(s*t);for(let i=0;;i++){let{from:r,to:o}=e[i],a=o-r;if(n<=a)return r+n;n-=a}}function el(s,e){let t=0;for(let{from:n,to:i}of s.ranges){if(e<=i){t+=e-n;break}t+=i-n}return t/s.total}function qA(s,e){for(let t of s)if(e(t))return t}const Cm={toDOM(s){return s},fromDOM(s){return s},scale:1,eq(s){return s==this}};class Xf{constructor(e,t,n){let i=0,r=0,o=0;this.viewports=n.map(({from:a,to:l})=>{let c=t.lineAt(a,Mt.ByPos,e,0,0).top,h=t.lineAt(l,Mt.ByPos,e,0,0).bottom;return i+=h-c,{from:a,to:l,top:c,bottom:h,domTop:0,domBottom:0}}),this.scale=(7e6-i)/(t.height-i);for(let a of this.viewports)a.domTop=o+(a.top-r)*this.scale,o=a.domBottom=a.domTop+(a.bottom-a.top),r=a.bottom}toDOM(e){for(let t=0,n=0,i=0;;t++){let r=tt.from==e.viewports[n].from&&t.to==e.viewports[n].to):!1}}function Ro(s,e){if(e.scale==1)return s;let t=e.toDOM(s.top),n=e.toDOM(s.bottom);return new gi(s.from,s.length,t,n-t,Array.isArray(s._content)?s._content.map(i=>Ro(i,e)):s._content)}const tl=Pe.define({combine:s=>s.join(" ")}),Hu=Pe.define({combine:s=>s.indexOf(!0)>-1}),Wu=Os.newName(),T0=Os.newName(),E0=Os.newName(),A0={"&light":"."+T0,"&dark":"."+E0};function ju(s,e,t){return new Os(e,{finish(n){return/&/.test(n)?n.replace(/&\w*/,i=>{if(i=="&")return s;if(!t||!t[i])throw new RangeError(`Unsupported selector: ${i}`);return t[i]}):s+" "+n}})}const YA=ju("."+Wu,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0,overflowAnchor:"none"},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#ddd"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0,zIndex:300},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace":{backgroundImage:"radial-gradient(circle at 50% 55%, #aaa 20%, transparent 5%)",backgroundPosition:"center"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},A0),KA={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},uh=me.ie&&me.ie_version<=11;class JA{constructor(e){this.view=e,this.active=!1,this.editContext=null,this.selectionRange=new DE,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(t=>{for(let n of t)this.queue.push(n);(me.ie&&me.ie_version<=11||me.ios&&e.composing)&&t.some(n=>n.type=="childList"&&n.removedNodes.length||n.type=="characterData"&&n.oldValue.length>n.target.nodeValue.length)?this.flushSoon():this.flush()}),window.EditContext&&e.constructor.EDIT_CONTEXT!==!1&&!(me.chrome&&me.chrome_version<126)&&(this.editContext=new tP(e),e.state.facet(Qi)&&(e.contentDOM.editContext=this.editContext.editContext)),uh&&(this.onCharData=t=>{this.queue.push({target:t.target,type:"characterData",oldValue:t.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var t;((t=this.view.docView)===null||t===void 0?void 0:t.lastUpdate){this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),t.length>0&&t[t.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(t=>{t.length>0&&t[t.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(e){(e.type=="change"||!e.type)&&!e.matches||(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((t,n)=>t!=e[n]))){this.gapIntersection.disconnect();for(let t of e)this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){let t=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:n}=this,i=this.selectionRange;if(n.state.facet(Qi)?n.root.activeElement!=this.dom:!_l(this.dom,i))return;let r=i.anchorNode&&n.docView.nearest(i.anchorNode);if(r&&r.ignoreEvent(e)){t||(this.selectionChanged=!1);return}(me.ie&&me.ie_version<=11||me.android&&me.chrome)&&!n.state.selection.main.empty&&i.focusNode&&Fo(i.focusNode,i.focusOffset,i.anchorNode,i.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,t=Ko(e.root);if(!t)return!1;let n=me.safari&&e.root.nodeType==11&&e.root.activeElement==this.dom&&eP(this.view,t)||t;if(!n||this.selectionRange.eq(n))return!1;let i=_l(this.dom,n);return i&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime{let r=this.delayedAndroidKey;r&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=r.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&r.force&&Ur(this.dom,r.key,r.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(i)}(!this.delayedAndroidKey||e=="Enter")&&(this.delayedAndroidKey={key:e,keyCode:t,force:this.lastChange{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let t=-1,n=-1,i=!1;for(let r of e){let o=this.readMutation(r);o&&(o.typeOver&&(i=!0),t==-1?{from:t,to:n}=o:(t=Math.min(o.from,t),n=Math.max(o.to,n)))}return{from:t,to:n,typeOver:i}}readChange(){let{from:e,to:t,typeOver:n}=this.processRecords(),i=this.selectionChanged&&_l(this.dom,this.selectionRange);if(e<0&&!i)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let r=new OA(this.view,e,t,n);return this.view.docView.domChanged={newSel:r.newSel?r.newSel.main:null},r}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let t=this.readChange();if(!t)return this.view.requestMeasure(),!1;let n=this.view.state,i=g0(this.view,t);return this.view.state==n&&(t.domChanged||t.newSel&&!t.newSel.main.eq(this.view.state.selection.main))&&this.view.update([]),i}readMutation(e){let t=this.view.docView.nearest(e.target);if(!t||t.ignoreMutation(e))return null;if(t.markDirty(e.type=="attributes"),e.type=="attributes"&&(t.flags|=4),e.type=="childList"){let n=km(t,e.previousSibling||e.target.previousSibling,-1),i=km(t,e.nextSibling||e.target.nextSibling,1);return{from:n?t.posAfter(n):t.posAtStart,to:i?t.posBefore(i):t.posAtEnd,typeOver:!1}}else return e.type=="characterData"?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener?this.printQuery.addEventListener("change",this.onPrint):this.printQuery.addListener(this.onPrint):e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener?this.printQuery.removeEventListener("change",this.onPrint):this.printQuery.removeListener(this.onPrint):e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}update(e){this.editContext&&(this.editContext.update(e),e.startState.facet(Qi)!=e.state.facet(Qi)&&(e.view.contentDOM.editContext=e.state.facet(Qi)?this.editContext.editContext:null))}destroy(){var e,t,n;this.stop(),(e=this.intersection)===null||e===void 0||e.disconnect(),(t=this.gapIntersection)===null||t===void 0||t.disconnect(),(n=this.resizeScroll)===null||n===void 0||n.disconnect();for(let i of this.scrollTargets)i.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey),this.editContext&&(this.view.contentDOM.editContext=null,this.editContext.destroy())}}function km(s,e,t){for(;e;){let n=yt.get(e);if(n&&n.parent==s)return n;let i=e.parentNode;e=i!=s.dom?i:t>0?e.nextSibling:e.previousSibling}return null}function Lm(s,e){let t=e.startContainer,n=e.startOffset,i=e.endContainer,r=e.endOffset,o=s.docView.domAtPos(s.state.selection.main.anchor);return Fo(o.node,o.offset,i,r)&&([t,n,i,r]=[i,r,t,n]),{anchorNode:t,anchorOffset:n,focusNode:i,focusOffset:r}}function eP(s,e){if(e.getComposedRanges){let i=e.getComposedRanges(s.root)[0];if(i)return Lm(s,i)}let t=null;function n(i){i.preventDefault(),i.stopImmediatePropagation(),t=i.getTargetRanges()[0]}return s.contentDOM.addEventListener("beforeinput",n,!0),s.dom.ownerDocument.execCommand("indent"),s.contentDOM.removeEventListener("beforeinput",n,!0),t?Lm(s,t):null}class tP{constructor(e){this.from=0,this.to=0,this.pendingContextChange=null,this.handlers=Object.create(null),this.composing=null,this.resetRange(e.state);let t=this.editContext=new window.EditContext({text:e.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,e.state.selection.main.anchor))),selectionEnd:this.toContextPos(e.state.selection.main.head)});this.handlers.textupdate=n=>{let i=e.state.selection.main,{anchor:r,head:o}=i,a=this.toEditorPos(n.updateRangeStart),l=this.toEditorPos(n.updateRangeEnd);e.inputState.composing>=0&&!this.composing&&(this.composing={contextBase:n.updateRangeStart,editorBase:a,drifted:!1});let c={from:a,to:l,insert:it.of(n.text.split(` -`))};if(c.from==this.from&&rthis.to&&(c.to=r),c.from==c.to&&!c.insert.length){let h=oe.single(this.toEditorPos(n.selectionStart),this.toEditorPos(n.selectionEnd));h.main.eq(i)||e.dispatch({selection:h,userEvent:"select"});return}if((me.mac||me.android)&&c.from==o-1&&/^\. ?$/.test(n.text)&&e.contentDOM.getAttribute("autocorrect")=="off"&&(c={from:a,to:l,insert:it.of([n.text.replace("."," ")])}),this.pendingContextChange=c,!e.state.readOnly){let h=this.to-this.from+(c.to-c.from+c.insert.length);Zf(e,c,oe.single(this.toEditorPos(n.selectionStart,h),this.toEditorPos(n.selectionEnd,h)))}this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state))},this.handlers.characterboundsupdate=n=>{let i=[],r=null;for(let o=this.toEditorPos(n.rangeStart),a=this.toEditorPos(n.rangeEnd);o{let i=[];for(let r of n.getTextFormats()){let o=r.underlineStyle,a=r.underlineThickness;if(o!="None"&&a!="None"){let l=this.toEditorPos(r.rangeStart),c=this.toEditorPos(r.rangeEnd);if(l{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{if(e.inputState.composing=-1,e.inputState.compositionFirstChange=null,this.composing){let{drifted:n}=this.composing;this.composing=null,n&&this.reset(e.state)}};for(let n in this.handlers)t.addEventListener(n,this.handlers[n]);this.measureReq={read:n=>{this.editContext.updateControlBounds(n.contentDOM.getBoundingClientRect());let i=Ko(n.root);i&&i.rangeCount&&this.editContext.updateSelectionBounds(i.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let t=0,n=!1,i=this.pendingContextChange;return e.changes.iterChanges((r,o,a,l,c)=>{if(n)return;let h=c.length-(o-r);if(i&&o>=i.to)if(i.from==r&&i.to==o&&i.insert.eq(c)){i=this.pendingContextChange=null,t+=h,this.to+=h;return}else i=null,this.revertPending(e.state);if(r+=t,o+=t,o<=this.from)this.from+=h,this.to+=h;else if(rthis.to||this.to-this.from+c.length>3e4){n=!0;return}this.editContext.updateText(this.toContextPos(r),this.toContextPos(o),c.toString()),this.to+=h}t+=h}),i&&!n&&this.revertPending(e.state),!n}update(e){let t=this.pendingContextChange;this.composing&&(this.composing.drifted||e.transactions.some(n=>!n.isUserEvent("input.type")&&n.changes.touchesRange(this.from,this.to)))?(this.composing.drifted=!0,this.composing.editorBase=e.changes.mapPos(this.composing.editorBase)):!this.applyEdits(e)||!this.rangeIsValid(e.state)?(this.pendingContextChange=null,this.reset(e.state)):(e.docChanged||e.selectionSet||t)&&this.setSelection(e.state),(e.geometryChanged||e.docChanged||e.selectionSet)&&e.view.requestMeasure(this.measureReq)}resetRange(e){let{head:t}=e.selection.main;this.from=Math.max(0,t-1e4),this.to=Math.min(e.doc.length,t+1e4)}reset(e){this.resetRange(e),this.editContext.updateText(0,this.editContext.text.length,e.doc.sliceString(this.from,this.to)),this.setSelection(e)}revertPending(e){let t=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(t.from),this.toContextPos(t.from+t.insert.length),e.doc.sliceString(t.from,t.to))}setSelection(e){let{main:t}=e.selection,n=this.toContextPos(Math.max(this.from,Math.min(this.to,t.anchor))),i=this.toContextPos(t.head);(this.editContext.selectionStart!=n||this.editContext.selectionEnd!=i)&&this.editContext.updateSelection(n,i)}rangeIsValid(e){let{head:t}=e.selection.main;return!(this.from>0&&t-this.from<500||this.to1e4*3)}toEditorPos(e,t=this.to-this.from){e=Math.min(e,t);let n=this.composing;return n&&n.drifted?n.editorBase+(e-n.contextBase):e+this.from}toContextPos(e){let t=this.composing;return t&&t.drifted?t.contextBase+(e-t.editorBase):e-this.from}destroy(){for(let e in this.handlers)this.editContext.removeEventListener(e,this.handlers[e])}}class Qe{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){var t;this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:n}=e;this.dispatchTransactions=e.dispatchTransactions||n&&(i=>i.forEach(r=>n(r,this)))||(i=>this.update(i)),this.dispatch=this.dispatch.bind(this),this._root=e.root||IE(e.parent)||document,this.viewState=new Rm(e.state||ft.create(e)),e.scrollTo&&e.scrollTo.is(ja)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(Eo).map(i=>new ah(i));for(let i of this.plugins)i.update(this);this.observer=new JA(this),this.inputState=new vA(this),this.inputState.ensureHandlers(this.plugins),this.docView=new um(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),!((t=document.fonts)===null||t===void 0)&&t.ready&&document.fonts.ready.then(()=>this.requestMeasure())}dispatch(...e){let t=e.length==1&&e[0]instanceof tn?e:e.length==1&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(t,this)}update(e){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let t=!1,n=!1,i,r=this.state;for(let f of e){if(f.startState!=r)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");r=f.state}if(this.destroyed){this.viewState.state=r;return}let o=this.hasFocus,a=0,l=null;e.some(f=>f.annotation(v0))?(this.inputState.notifiedFocused=o,a=1):o!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=o,l=b0(r,o),l||(a=1));let c=this.observer.delayedAndroidKey,h=null;if(c?(this.observer.clearDelayedAndroidKey(),h=this.observer.readChange(),(h&&!this.state.doc.eq(r.doc)||!this.state.selection.eq(r.selection))&&(h=null)):this.observer.clear(),r.facet(ft.phrases)!=this.state.facet(ft.phrases))return this.setState(r);i=Nl.create(this,r,e),i.flags|=a;let u=this.viewState.scrollTarget;try{this.updateState=2;for(let f of e){if(u&&(u=u.map(f.changes)),f.scrollIntoView){let{main:d}=f.state.selection;u=new Nr(d.empty?d:oe.cursor(d.head,d.head>d.anchor?-1:1))}for(let d of f.effects)d.is(ja)&&(u=d.value.clip(this.state))}this.viewState.update(i,u),this.bidiCache=Bl.update(this.bidiCache,i.changes),i.empty||(this.updatePlugins(i),this.inputState.update(i)),t=this.docView.update(i),this.state.facet(Ao)!=this.styleModules&&this.mountStyles(),n=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(t,e.some(f=>f.isUserEvent("select.pointer")))}finally{this.updateState=0}if(i.startState.facet(tl)!=i.state.facet(tl)&&(this.viewState.mustMeasureContent=!0),(t||n||u||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),t&&this.docViewUpdate(),!i.empty)for(let f of this.state.facet(Zu))try{f(i)}catch(d){_i(this.state,d,"update listener")}(l||h)&&Promise.resolve().then(()=>{l&&this.state==l.startState&&this.dispatch(l),h&&!g0(this,h)&&c.force&&Ur(this.contentDOM,c.key,c.keyCode)})}setState(e){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let t=this.hasFocus;try{for(let n of this.plugins)n.destroy(this);this.viewState=new Rm(e),this.plugins=e.facet(Eo).map(n=>new ah(n)),this.pluginMap.clear();for(let n of this.plugins)n.update(this);this.docView.destroy(),this.docView=new um(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet(Eo),n=e.state.facet(Eo);if(t!=n){let i=[];for(let r of n){let o=t.indexOf(r);if(o<0)i.push(new ah(r));else{let a=this.plugins[o];a.mustUpdate=e,i.push(a)}}for(let r of this.plugins)r.mustUpdate!=e&&r.destroy(this);this.plugins=i,this.pluginMap.clear()}else for(let i of this.plugins)i.mustUpdate=e;for(let i=0;i-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,e&&this.observer.forceFlush();let t=null,n=this.scrollDOM,i=n.scrollTop*this.scaleY,{scrollAnchorPos:r,scrollAnchorHeight:o}=this.viewState;Math.abs(i-this.viewState.scrollTop)>1&&(o=-1),this.viewState.scrollAnchorHeight=-1;try{for(let a=0;;a++){if(o<0)if(NO(n))r=-1,o=this.viewState.heightMap.height;else{let d=this.viewState.scrollAnchorAt(i);r=d.from,o=d.top}this.updateState=1;let l=this.viewState.measure(this);if(!l&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(a>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let c=[];l&4||([this.measureRequests,c]=[c,this.measureRequests]);let h=c.map(d=>{try{return d.read(this)}catch(p){return _i(this.state,p),Dm}}),u=Nl.create(this,this.state,[]),f=!1;u.flags|=l,t?t.flags|=l:t=u,this.updateState=2,u.empty||(this.updatePlugins(u),this.inputState.update(u),this.updateAttrs(),f=this.docView.update(u),f&&this.docViewUpdate());for(let d=0;d1||p<-1){i=i+p,n.scrollTop=i/this.scaleY,o=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(t&&!t.empty)for(let a of this.state.facet(Zu))a(t)}get themeClasses(){return Wu+" "+(this.state.facet(Hu)?E0:T0)+" "+this.state.facet(tl)}updateAttrs(){let e=Im(this,c0,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",writingsuggestions:"false",translate:"no",contenteditable:this.state.facet(Qi)?"true":"false",class:"cm-content",style:`${me.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(t["aria-readonly"]="true"),Im(this,Vf,t);let n=this.observer.ignore(()=>{let i=Bu(this.contentDOM,this.contentAttrs,t),r=Bu(this.dom,this.editorAttrs,e);return i||r});return this.editorAttrs=e,this.contentAttrs=t,n}showAnnouncements(e){let t=!0;for(let n of e)for(let i of n.effects)if(i.is(Qe.announce)){t&&(this.announceDOM.textContent=""),t=!1;let r=this.announceDOM.appendChild(document.createElement("div"));r.textContent=i.value}}mountStyles(){this.styleModules=this.state.facet(Ao);let e=this.state.facet(Qe.cspNonce);Os.mount(this.root,this.styleModules.concat(YA).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(e.key!=null){for(let t=0;tn.spec==e)||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,n){return ch(this,e,gm(this,e,t,n))}moveByGroup(e,t){return ch(this,e,gm(this,e,t,n=>dA(this,e.head,n)))}visualLineSide(e,t){let n=this.bidiSpans(e),i=this.textDirectionAt(e.from),r=n[t?n.length-1:0];return oe.cursor(r.side(t,i)+e.from,r.forward(!t,i)?1:-1)}moveToLineBoundary(e,t,n=!0){return fA(this,e,t,n)}moveVertically(e,t,n){return ch(this,e,pA(this,e,t,n))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,t=0){return this.docView.posFromDOM(e,t)}posAtCoords(e,t=!0){return this.readMeasured(),m0(this,e,t)}coordsAtPos(e,t=1){this.readMeasured();let n=this.docView.coordsAt(e,t);if(!n||n.left==n.right)return n;let i=this.state.doc.lineAt(e),r=this.bidiSpans(i),o=r[ds.find(r,e-i.from,-1,t)];return oc(n,o.dir==Vt.LTR==t>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(o0)||ethis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>nP)return KO(e.length);let t=this.textDirectionAt(e.from),n;for(let r of this.bidiCache)if(r.from==e.from&&r.dir==t&&(r.fresh||YO(r.isolates,n=hm(this,e))))return r.order;n||(n=hm(this,e));let i=WE(e.text,t,n);return this.bidiCache.push(new Bl(e.from,e.to,t,n,!0,i)),i}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||me.safari&&((e=this.inputState)===null||e===void 0?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{IO(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((e.nodeType==9?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){this.root.activeElement==this.contentDOM&&this.contentDOM.blur();for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,t={}){return ja.of(new Nr(typeof e=="number"?oe.cursor(e):e,t.y,t.x,t.yMargin,t.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:t}=this.scrollDOM,n=this.viewState.scrollAnchorAt(e);return ja.of(new Nr(oe.cursor(n.from),"start","start",n.top-e,t,!0))}setTabFocusMode(e){e==null?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:typeof e=="boolean"?this.inputState.tabFocusMode=e?0:-1:this.inputState.tabFocusMode!=0&&(this.inputState.tabFocusMode=Date.now()+e)}static domEventHandlers(e){return ys.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return ys.define(()=>({}),{eventObservers:e})}static theme(e,t){let n=Os.newName(),i=[tl.of(n),Ao.of(ju(`.${n}`,e))];return t&&t.dark&&i.push(Hu.of(!0)),i}static baseTheme(e){return ic.lowest(Ao.of(ju("."+Wu,e,A0)))}static findFromDOM(e){var t;let n=e.querySelector(".cm-content"),i=n&&yt.get(n)||yt.get(e);return((t=i==null?void 0:i.rootView)===null||t===void 0?void 0:t.view)||null}}Qe.styleModule=Ao;Qe.inputHandler=s0;Qe.clipboardInputFilter=Ff;Qe.clipboardOutputFilter=$f;Qe.scrollHandler=a0;Qe.focusChangeEffect=r0;Qe.perLineTextDirection=o0;Qe.exceptionSink=i0;Qe.updateListener=Zu;Qe.editable=Qi;Qe.mouseSelectionStyle=n0;Qe.dragMovesSelection=t0;Qe.clickAddsSelectionRange=e0;Qe.decorations=ea;Qe.outerDecorations=h0;Qe.atomicRanges=zf;Qe.bidiIsolatedRanges=u0;Qe.scrollMargins=f0;Qe.darkTheme=Hu;Qe.cspNonce=Pe.define({combine:s=>s.length?s[0]:""});Qe.contentAttributes=Vf;Qe.editorAttributes=c0;Qe.lineWrapping=Qe.contentAttributes.of({class:"cm-lineWrapping"});Qe.announce=Ct.define();const nP=4096,Dm={};class Bl{constructor(e,t,n,i,r,o){this.from=e,this.to=t,this.dir=n,this.isolates=i,this.fresh=r,this.order=o}static update(e,t){if(t.empty&&!e.some(r=>r.fresh))return e;let n=[],i=e.length?e[e.length-1].dir:Vt.LTR;for(let r=Math.max(0,e.length-10);r=0;i--){let r=n[i],o=typeof r=="function"?r(s):r;o&&Qu(o,t)}return t}const iP=me.mac?"mac":me.windows?"win":me.linux?"linux":"key";function sP(s,e){const t=s.split(/-(?!$)/);let n=t[t.length-1];n=="Space"&&(n=" ");let i,r,o,a;for(let l=0;ln.concat(i),[]))),t}let cs=null;const aP=4e3;function lP(s,e=iP){let t=Object.create(null),n=Object.create(null),i=(o,a)=>{let l=n[o];if(l==null)n[o]=a;else if(l!=a)throw new Error("Key binding "+o+" is used both as a regular binding and as a multi-stroke prefix")},r=(o,a,l,c,h)=>{var u,f;let d=t[o]||(t[o]=Object.create(null)),p=a.split(/ (?!$)/).map(m=>sP(m,e));for(let m=1;m{let _=cs={view:x,prefix:b,scope:o};return setTimeout(()=>{cs==_&&(cs=null)},aP),!0}]})}let O=p.join(" ");i(O,!1);let g=d[O]||(d[O]={preventDefault:!1,stopPropagation:!1,run:((f=(u=d._any)===null||u===void 0?void 0:u.run)===null||f===void 0?void 0:f.slice())||[]});l&&g.run.push(l),c&&(g.preventDefault=!0),h&&(g.stopPropagation=!0)};for(let o of s){let a=o.scope?o.scope.split(" "):["editor"];if(o.any)for(let c of a){let h=t[c]||(t[c]=Object.create(null));h._any||(h._any={preventDefault:!1,stopPropagation:!1,run:[]});let{any:u}=o;for(let f in h)h[f].run.push(d=>u(d,qu))}let l=o[e]||o.key;if(l)for(let c of a)r(c,l,o.run,o.preventDefault,o.stopPropagation),o.shift&&r(c,"Shift-"+l,o.shift,o.preventDefault,o.stopPropagation)}return t}let qu=null;function cP(s,e,t,n){qu=e;let i=RE(e),r=uE(i,0),o=fE(r)==i.length&&i!=" ",a="",l=!1,c=!1,h=!1;cs&&cs.view==t&&cs.scope==n&&(a=cs.prefix+" ",_0.indexOf(e.keyCode)<0&&(c=!0,cs=null));let u=new Set,f=g=>{if(g){for(let m of g.run)if(!u.has(m)&&(u.add(m),m(t)))return g.stopPropagation&&(h=!0),!0;g.preventDefault&&(g.stopPropagation&&(h=!0),c=!0)}return!1},d=s[n],p,O;return d&&(f(d[a+nl(i,e,!o)])?l=!0:o&&(e.altKey||e.metaKey||e.ctrlKey)&&!(me.windows&&e.ctrlKey&&e.altKey)&&(p=_s[e.keyCode])&&p!=i?(f(d[a+nl(p,e,!0)])||e.shiftKey&&(O=Yo[e.keyCode])!=i&&O!=p&&f(d[a+nl(O,e,!1)]))&&(l=!0):o&&e.shiftKey&&f(d[a+nl(i,e,!0)])&&(l=!0),!l&&f(d._any)&&(l=!0)),c&&(l=!0),l&&h&&e.stopPropagation(),qu=null,l}const hP=!(me.ios&&me.webkit&&me.webkit_version<534),Nm={".cm-line":{},".cm-content":{}};hP&&(Nm[".cm-line"].caretColor=Nm[".cm-content"].caretColor="transparent !important");class er extends qs{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}er.prototype.elementClass="";er.prototype.toDOM=void 0;er.prototype.mapMode=pn.TrackBefore;er.prototype.startSide=er.prototype.endSide=-1;er.prototype.point=!0;const fh=Pe.define(),uP=Pe.define(),vl=Pe.define(),Qm=Pe.define({combine:s=>s.some(e=>e)});function fP(s){return[dP]}const dP=ys.fromClass(class{constructor(s){this.view=s,this.prevViewport=s.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=s.state.facet(vl).map(e=>new Fm(s,e));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!s.state.facet(Qm),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),s.scrollDOM.insertBefore(this.dom,s.contentDOM)}update(s){if(this.updateGutters(s)){let e=this.prevViewport,t=s.view.viewport,n=Math.min(e.to,t.to)-Math.max(e.from,t.from);this.syncGutters(n<(t.to-t.from)*.8)}s.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px"),this.view.state.facet(Qm)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=s.view.viewport}syncGutters(s){let e=this.dom.nextSibling;s&&this.dom.remove();let t=gt.iter(this.view.state.facet(fh),this.view.viewport.from),n=[],i=this.gutters.map(r=>new pP(r,this.view.viewport,-this.view.documentPadding.top));for(let r of this.view.viewportLineBlocks)if(n.length&&(n=[]),Array.isArray(r.type)){let o=!0;for(let a of r.type)if(a.type==Gn.Text&&o){Yu(t,n,a.from);for(let l of i)l.line(this.view,a,n);o=!1}else if(a.widget)for(let l of i)l.widget(this.view,a)}else if(r.type==Gn.Text){Yu(t,n,r.from);for(let o of i)o.line(this.view,r,n)}else if(r.widget)for(let o of i)o.widget(this.view,r);for(let r of i)r.finish();s&&this.view.scrollDOM.insertBefore(this.dom,e)}updateGutters(s){let e=s.startState.facet(vl),t=s.state.facet(vl),n=s.docChanged||s.heightChanged||s.viewportChanged||!gt.eq(s.startState.facet(fh),s.state.facet(fh),s.view.viewport.from,s.view.viewport.to);if(e==t)for(let i of this.gutters)i.update(s)&&(n=!0);else{n=!0;let i=[];for(let r of t){let o=e.indexOf(r);o<0?i.push(new Fm(this.view,r)):(this.gutters[o].update(s),i.push(this.gutters[o]))}for(let r of this.gutters)r.dom.remove(),i.indexOf(r)<0&&r.destroy();for(let r of i)this.dom.appendChild(r.dom);this.gutters=i}return n}destroy(){for(let s of this.gutters)s.destroy();this.dom.remove()}},{provide:s=>Qe.scrollMargins.of(e=>{let t=e.plugin(s);return!t||t.gutters.length==0||!t.fixed?null:e.textDirection==Vt.LTR?{left:t.dom.offsetWidth*e.scaleX}:{right:t.dom.offsetWidth*e.scaleX}})});function Bm(s){return Array.isArray(s)?s:[s]}function Yu(s,e,t){for(;s.value&&s.from<=t;)s.from==t&&e.push(s.value),s.next()}class pP{constructor(e,t,n){this.gutter=e,this.height=n,this.i=0,this.cursor=gt.iter(e.markers,t.from)}addElement(e,t,n){let{gutter:i}=this,r=(t.top-this.height)/e.scaleY,o=t.height/e.scaleY;if(this.i==i.elements.length){let a=new P0(e,o,r,n);i.elements.push(a),i.dom.appendChild(a.dom)}else i.elements[this.i].update(e,o,r,n);this.height=t.bottom,this.i++}line(e,t,n){let i=[];Yu(this.cursor,i,t.from),n.length&&(i=i.concat(n));let r=this.gutter.config.lineMarker(e,t,i);r&&i.unshift(r);let o=this.gutter;i.length==0&&!o.config.renderEmptyElements||this.addElement(e,t,i)}widget(e,t){let n=this.gutter.config.widgetMarker(e,t.widget,t),i=n?[n]:null;for(let r of e.state.facet(uP)){let o=r(e,t.widget,t);o&&(i||(i=[])).push(o)}i&&this.addElement(e,t,i)}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}}class Fm{constructor(e,t){this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let n in t.domEventHandlers)this.dom.addEventListener(n,i=>{let r=i.target,o;if(r!=this.dom&&this.dom.contains(r)){for(;r.parentNode!=this.dom;)r=r.parentNode;let l=r.getBoundingClientRect();o=(l.top+l.bottom)/2}else o=i.clientY;let a=e.lineBlockAtHeight(o-e.documentTop);t.domEventHandlers[n](e,a,i)&&i.preventDefault()});this.markers=Bm(t.markers(e)),t.initialSpacer&&(this.spacer=new P0(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let t=this.markers;if(this.markers=Bm(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let i=this.config.updateSpacer(this.spacer.markers[0],e);i!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[i])}let n=e.view.viewport;return!gt.eq(this.markers,t,n.from,n.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(e):!1)}destroy(){for(let e of this.elements)e.destroy()}}class P0{constructor(e,t,n,i){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,t,n,i)}update(e,t,n,i){this.height!=t&&(this.height=t,this.dom.style.height=t+"px"),this.above!=n&&(this.dom.style.marginTop=(this.above=n)?n+"px":""),mP(this.markers,i)||this.setMarkers(e,i)}setMarkers(e,t){let n="cm-gutterElement",i=this.dom.firstChild;for(let r=0,o=0;;){let a=o,l=rr(a,l,c)||o(a,l,c):o}return n}})}});class dh extends er{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function ph(s,e){return s.state.facet(Tr).formatNumber(e,s.state)}const _P=vl.compute([Tr],s=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(e){return e.state.facet(gP)},lineMarker(e,t,n){return n.some(i=>i.toDOM)?null:new dh(ph(e,e.state.doc.lineAt(t.from).number))},widgetMarker:(e,t,n)=>{for(let i of e.state.facet(OP)){let r=i(e,t,n);if(r)return r}return null},lineMarkerChange:e=>e.startState.facet(Tr)!=e.state.facet(Tr),initialSpacer(e){return new dh(ph(e,$m(e.state.doc.lines)))},updateSpacer(e,t){let n=ph(t.view,$m(t.view.state.doc.lines));return n==e.number?e:new dh(n)},domEventHandlers:s.facet(Tr).domEventHandlers}));function xP(s={}){return[Tr.of(s),fP(),_P]}function $m(s){let e=9;for(;e{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=Tn.match(e)),t=>{let n=e(t);return n===void 0?null:[this,n]}}}je.closedBy=new je({deserialize:s=>s.split(" ")});je.openedBy=new je({deserialize:s=>s.split(" ")});je.group=new je({deserialize:s=>s.split(" ")});je.isolate=new je({deserialize:s=>{if(s&&s!="rtl"&&s!="ltr"&&s!="auto")throw new RangeError("Invalid value for isolate: "+s);return s||"auto"}});je.contextHash=new je({perNode:!0});je.lookAhead=new je({perNode:!0});je.mounted=new je({perNode:!0});class Fl{constructor(e,t,n){this.tree=e,this.overlay=t,this.parser=n}static get(e){return e&&e.props&&e.props[je.mounted.id]}}const SP=Object.create(null);class Tn{constructor(e,t,n,i=0){this.name=e,this.props=t,this.id=n,this.flags=i}static define(e){let t=e.props&&e.props.length?Object.create(null):SP,n=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),i=new Tn(e.name||"",t,e.id,n);if(e.props){for(let r of e.props)if(Array.isArray(r)||(r=r(i)),r){if(r[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[r[0].id]=r[1]}}return i}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let t=this.prop(je.group);return t?t.indexOf(e)>-1:!1}return this.id==e}static match(e){let t=Object.create(null);for(let n in e)for(let i of n.split(" "))t[i]=e[n];return n=>{for(let i=n.prop(je.group),r=-1;r<(i?i.length:0);r++){let o=t[r<0?n.name:i[r]];if(o)return o}}}}Tn.none=new Tn("",Object.create(null),0,8);class Wf{constructor(e){this.types=e;for(let t=0;t0;for(let l=this.cursor(o|$t.IncludeAnonymous);;){let c=!1;if(l.from<=r&&l.to>=i&&(!a&&l.type.isAnonymous||t(l)!==!1)){if(l.firstChild())continue;c=!0}for(;c&&n&&(a||!l.type.isAnonymous)&&n(l),!l.nextSibling();){if(!l.parent())return;c=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:Yf(Tn.none,this.children,this.positions,0,this.children.length,0,this.length,(t,n,i)=>new Bt(this.type,t,n,i,this.propValues),e.makeTree||((t,n,i)=>new Bt(Tn.none,t,n,i)))}static build(e){return wP(e)}}Bt.empty=new Bt(Tn.none,[],[],0);class jf{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new jf(this.buffer,this.index)}}class Ss{constructor(e,t,n){this.buffer=e,this.length=t,this.set=n}get type(){return Tn.none}toString(){let e=[];for(let t=0;t0));l=o[l+3]);return a}slice(e,t,n){let i=this.buffer,r=new Uint16Array(t-e),o=0;for(let a=e,l=0;a=e&&te;case 1:return t<=e&&n>e;case 2:return n>e;case 4:return!0}}function ta(s,e,t,n){for(var i;s.from==s.to||(t<1?s.from>=e:s.from>e)||(t>-1?s.to<=e:s.to0?a.length:-1;e!=c;e+=t){let h=a[e],u=l[e]+o.from;if(C0(i,n,u,u+h.length)){if(h instanceof Ss){if(r&$t.ExcludeBuffers)continue;let f=h.findChild(0,h.buffer.length,t,n-u,i);if(f>-1)return new xi(new vP(o,h,e,u),null,f)}else if(r&$t.IncludeAnonymous||!h.type.isAnonymous||qf(h)){let f;if(!(r&$t.IgnoreMounts)&&(f=Fl.get(h))&&!f.overlay)return new wn(f.tree,u,e,o);let d=new wn(h,u,e,o);return r&$t.IncludeAnonymous||!d.type.isAnonymous?d:d.nextChild(t<0?h.children.length-1:0,t,n,i)}}}if(r&$t.IncludeAnonymous||!o.type.isAnonymous||(o.index>=0?e=o.index+t:e=t<0?-1:o._parent._tree.children.length,o=o._parent,!o))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,t,n=0){let i;if(!(n&$t.IgnoreOverlays)&&(i=Fl.get(this._tree))&&i.overlay){let r=e-this.from;for(let{from:o,to:a}of i.overlay)if((t>0?o<=r:o=r:a>r))return new wn(i.tree,i.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,n)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function zm(s,e,t,n){let i=s.cursor(),r=[];if(!i.firstChild())return r;if(t!=null){for(let o=!1;!o;)if(o=i.type.is(t),!i.nextSibling())return r}for(;;){if(n!=null&&i.type.is(n))return r;if(i.type.is(e)&&r.push(i.node),!i.nextSibling())return n==null?r:[]}}function Ku(s,e,t=e.length-1){for(let n=s;t>=0;n=n.parent){if(!n)return!1;if(!n.type.isAnonymous){if(e[t]&&e[t]!=n.name)return!1;t--}}return!0}class vP{constructor(e,t,n,i){this.parent=e,this.buffer=t,this.index=n,this.start=i}}class xi extends k0{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,n){super(),this.context=e,this._parent=t,this.index=n,this.type=e.buffer.set.types[e.buffer.buffer[n]]}child(e,t,n){let{buffer:i}=this.context,r=i.findChild(this.index+4,i.buffer[this.index+3],e,t-this.context.start,n);return r<0?null:new xi(this.context,this,r)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,t,n=0){if(n&$t.ExcludeBuffers)return null;let{buffer:i}=this.context,r=i.findChild(this.index+4,i.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return r<0?null:new xi(this.context,this,r)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new xi(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new xi(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:n}=this.context,i=this.index+4,r=n.buffer[this.index+3];if(r>i){let o=n.buffer[this.index+1];e.push(n.slice(i,r,o)),t.push(0)}return new Bt(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function L0(s){if(!s.length)return null;let e=0,t=s[0];for(let r=1;rt.from||o.to=e){let a=new wn(o.tree,o.overlay[0].from+r.from,-1,r);(i||(i=[n])).push(ta(a,e,t,!1))}}return i?L0(i):n}class Ju{get name(){return this.type.name}constructor(e,t=0){if(this.mode=t,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof wn)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let n=e._parent;n;n=n._parent)this.stack.unshift(n.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,t){this.index=e;let{start:n,buffer:i}=this.buffer;return this.type=t||i.set.types[i.buffer[e]],this.from=n+i.buffer[e+1],this.to=n+i.buffer[e+2],!0}yield(e){return e?e instanceof wn?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,n){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,n,this.mode));let{buffer:i}=this.buffer,r=i.findChild(this.index+4,i.buffer[this.index+3],e,t-this.buffer.start,n);return r<0?!1:(this.stack.push(this.index),this.yieldBuf(r))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,n=this.mode){return this.buffer?n&$t.ExcludeBuffers?!1:this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,n))}parent(){if(!this.buffer)return this.yieldNode(this.mode&$t.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&$t.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:t}=this.buffer,n=this.stack.length-1;if(e<0){let i=n<0?0:this.stack[n]+4;if(this.index!=i)return this.yieldBuf(t.findChild(i,this.index,-1,0,4))}else{let i=t.buffer[this.index+3];if(i<(n<0?t.buffer.length:t.buffer[this.stack[n]+3]))return this.yieldBuf(i)}return n<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,n,{buffer:i}=this;if(i){if(e>0){if(this.index-1)for(let r=t+e,o=e<0?-1:n._tree.children.length;r!=o;r+=e){let a=n._tree.children[r];if(this.mode&$t.IncludeAnonymous||a instanceof Ss||!a.type.isAnonymous||qf(a))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to=0;){for(let o=e;o;o=o._parent)if(o.index==i){if(i==this.index)return o;t=o,n=r+1;break e}i=this.stack[--r]}for(let i=n;i=0;r--){if(r<0)return Ku(this._tree,e,i);let o=n[t.buffer[this.stack[r]]];if(!o.isAnonymous){if(e[i]&&e[i]!=o.name)return!1;i--}}return!0}}function qf(s){return s.children.some(e=>e instanceof Ss||!e.type.isAnonymous||qf(e))}function wP(s){var e;let{buffer:t,nodeSet:n,maxBufferLength:i=R0,reused:r=[],minRepeatType:o=n.types.length}=s,a=Array.isArray(t)?new jf(t,t.length):t,l=n.types,c=0,h=0;function u(w,T,E,P,y,S){let{id:R,start:k,end:I,size:$}=a,H=h,L=c;for(;$<0;)if(a.next(),$==-1){let ge=r[R];E.push(ge),P.push(k-w);return}else if($==-3){c=R;return}else if($==-4){h=R;return}else throw new RangeError(`Unrecognized record size: ${$}`);let z=l[R],B,ee,se=k-w;if(I-k<=i&&(ee=g(a.pos-T,y))){let ge=new Uint16Array(ee.size-ee.skip),be=a.pos-ee.size,Be=ge.length;for(;a.pos>be;)Be=m(ee.start,ge,Be);B=new Ss(ge,I-ee.start,n),se=ee.start-w}else{let ge=a.pos-$;a.next();let be=[],Be=[],j=R>=o?R:-1,q=0,Oe=I;for(;a.pos>ge;)j>=0&&a.id==j&&a.size>=0?(a.end<=Oe-i&&(p(be,Be,k,q,a.end,Oe,j,H,L),q=be.length,Oe=a.end),a.next()):S>2500?f(k,ge,be,Be):u(k,ge,be,Be,j,S+1);if(j>=0&&q>0&&q-1&&q>0){let ce=d(z,L);B=Yf(z,be,Be,0,be.length,0,I-k,ce,ce)}else B=O(z,be,Be,I-k,H-I,L)}E.push(B),P.push(se)}function f(w,T,E,P){let y=[],S=0,R=-1;for(;a.pos>T;){let{id:k,start:I,end:$,size:H}=a;if(H>4)a.next();else{if(R>-1&&I=0;$-=3)k[H++]=y[$],k[H++]=y[$+1]-I,k[H++]=y[$+2]-I,k[H++]=H;E.push(new Ss(k,y[2]-I,n)),P.push(I-w)}}function d(w,T){return(E,P,y)=>{let S=0,R=E.length-1,k,I;if(R>=0&&(k=E[R])instanceof Bt){if(!R&&k.type==w&&k.length==y)return k;(I=k.prop(je.lookAhead))&&(S=P[R]+k.length+I)}return O(w,E,P,y,S,T)}}function p(w,T,E,P,y,S,R,k,I){let $=[],H=[];for(;w.length>P;)$.push(w.pop()),H.push(T.pop()+E-y);w.push(O(n.types[R],$,H,S-y,k-S,I)),T.push(y-E)}function O(w,T,E,P,y,S,R){if(S){let k=[je.contextHash,S];R=R?[k].concat(R):[k]}if(y>25){let k=[je.lookAhead,y];R=R?[k].concat(R):[k]}return new Bt(w,T,E,P,R)}function g(w,T){let E=a.fork(),P=0,y=0,S=0,R=E.end-i,k={size:0,start:0,skip:0};e:for(let I=E.pos-w;E.pos>I;){let $=E.size;if(E.id==T&&$>=0){k.size=P,k.start=y,k.skip=S,S+=4,P+=4,E.next();continue}let H=E.pos-$;if($<0||H=o?4:0,z=E.start;for(E.next();E.pos>H;){if(E.size<0)if(E.size==-3)L+=4;else break e;else E.id>=o&&(L+=4);E.next()}y=z,P+=$,S+=L}return(T<0||P==w)&&(k.size=P,k.start=y,k.skip=S),k.size>4?k:void 0}function m(w,T,E){let{id:P,start:y,end:S,size:R}=a;if(a.next(),R>=0&&P4){let I=a.pos-(R-4);for(;a.pos>I;)E=m(w,T,E)}T[--E]=k,T[--E]=S-w,T[--E]=y-w,T[--E]=P}else R==-3?c=P:R==-4&&(h=P);return E}let b=[],x=[];for(;a.pos>0;)u(s.start||0,s.bufferStart||0,b,x,-1,0);let _=(e=s.length)!==null&&e!==void 0?e:b.length?x[0]+b[0].length:0;return new Bt(l[s.topID],b.reverse(),x.reverse(),_)}const Zm=new WeakMap;function bl(s,e){if(!s.isAnonymous||e instanceof Ss||e.type!=s)return 1;let t=Zm.get(e);if(t==null){t=1;for(let n of e.children){if(n.type!=s||!(n instanceof Bt)){t=1;break}t+=bl(s,n)}Zm.set(e,t)}return t}function Yf(s,e,t,n,i,r,o,a,l){let c=0;for(let p=n;p=h)break;T+=E}if(x==_+1){if(T>h){let E=p[_];d(E.children,E.positions,0,E.children.length,O[_]+b);continue}u.push(p[_])}else{let E=O[x-1]+p[x-1].length-w;u.push(Yf(s,p,O,_,x,w,E,null,l))}f.push(w+b-r)}}return d(e,t,n,i,0),(a||l)(u,f,o)}class TP{constructor(){this.map=new WeakMap}setBuffer(e,t,n){let i=this.map.get(e);i||this.map.set(e,i=new Map),i.set(t,n)}getBuffer(e,t){let n=this.map.get(e);return n&&n.get(t)}set(e,t){e instanceof xi?this.setBuffer(e.context.buffer,e.index,t):e instanceof wn&&this.map.set(e.tree,t)}get(e){return e instanceof xi?this.getBuffer(e.context.buffer,e.index):e instanceof wn?this.map.get(e.tree):void 0}cursorSet(e,t){e.buffer?this.setBuffer(e.buffer.buffer,e.index,t):this.map.set(e.tree,t)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class Zs{constructor(e,t,n,i,r=!1,o=!1){this.from=e,this.to=t,this.tree=n,this.offset=i,this.open=(r?1:0)|(o?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(e,t=[],n=!1){let i=[new Zs(0,e.length,e,0,!1,n)];for(let r of t)r.to>e.length&&i.push(r);return i}static applyChanges(e,t,n=128){if(!t.length)return e;let i=[],r=1,o=e.length?e[0]:null;for(let a=0,l=0,c=0;;a++){let h=a=n)for(;o&&o.from=f.from||u<=f.to||c){let d=Math.max(f.from,l)-c,p=Math.min(f.to,u)-c;f=d>=p?null:new Zs(d,p,f.tree,f.offset+c,a>0,!!h)}if(f&&i.push(f),o.to>u)break;o=rnew mh(i.from,i.to)):[new mh(0,0)]:[new mh(0,e.length)],this.createParse(e,t||[],n)}parse(e,t,n){let i=this.startParse(e,t,n);for(;;){let r=i.advance();if(r)return r}}}class EP{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}new je({perNode:!0});let AP=0;class zn{constructor(e,t,n,i){this.name=e,this.set=t,this.base=n,this.modified=i,this.id=AP++}toString(){let{name:e}=this;for(let t of this.modified)t.name&&(e=`${t.name}(${e})`);return e}static define(e,t){let n=typeof e=="string"?e:"?";if(e instanceof zn&&(t=e),t!=null&&t.base)throw new Error("Can not derive from a modified tag");let i=new zn(n,[],null,[]);if(i.set.push(i),t)for(let r of t.set)i.set.push(r);return i}static defineModifier(e){let t=new $l(e);return n=>n.modified.indexOf(t)>-1?n:$l.get(n.base||n,n.modified.concat(t).sort((i,r)=>i.id-r.id))}}let PP=0;class $l{constructor(e){this.name=e,this.instances=[],this.id=PP++}static get(e,t){if(!t.length)return e;let n=t[0].instances.find(a=>a.base==e&&RP(t,a.modified));if(n)return n;let i=[],r=new zn(e.name,i,e,t);for(let a of t)a.instances.push(r);let o=CP(t);for(let a of e.set)if(!a.modified.length)for(let l of o)i.push($l.get(a,l));return r}}function RP(s,e){return s.length==e.length&&s.every((t,n)=>t==e[n])}function CP(s){let e=[[]];for(let t=0;tn.length-t.length)}function I0(s){let e=Object.create(null);for(let t in s){let n=s[t];Array.isArray(n)||(n=[n]);for(let i of t.split(" "))if(i){let r=[],o=2,a=i;for(let u=0;;){if(a=="..."&&u>0&&u+3==i.length){o=1;break}let f=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(a);if(!f)throw new RangeError("Invalid path: "+i);if(r.push(f[0]=="*"?"":f[0][0]=='"'?JSON.parse(f[0]):f[0]),u+=f[0].length,u==i.length)break;let d=i[u++];if(u==i.length&&d=="!"){o=0;break}if(d!="/")throw new RangeError("Invalid path: "+i);a=i.slice(u)}let l=r.length-1,c=r[l];if(!c)throw new RangeError("Invalid path: "+i);let h=new Vl(n,o,l>0?r.slice(0,l):null);e[c]=h.sort(e[c])}}return U0.add(e)}const U0=new je;class Vl{constructor(e,t,n,i){this.tags=e,this.mode=t,this.context=n,this.next=i}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth{let o=i;for(let a of r)for(let l of a.set){let c=t[l.id];if(c){o=o?o+" "+c:c;break}}return o},scope:n}}function kP(s,e){let t=null;for(let n of s){let i=n.style(e);i&&(t=t?t+" "+i:i)}return t}function LP(s,e,t,n=0,i=s.length){let r=new DP(n,Array.isArray(e)?e:[e],t);r.highlightRange(s.cursor(),n,i,"",r.highlighters),r.flush(i)}class DP{constructor(e,t,n){this.at=e,this.highlighters=t,this.span=n,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,n,i,r){let{type:o,from:a,to:l}=e;if(a>=n||l<=t)return;o.isTop&&(r=this.highlighters.filter(d=>!d.scope||d.scope(o)));let c=i,h=IP(e)||Vl.empty,u=kP(r,h.tags);if(u&&(c&&(c+=" "),c+=u,h.mode==1&&(i+=(i?" ":"")+u)),this.startSpan(Math.max(t,a),c),h.opaque)return;let f=e.tree&&e.tree.prop(je.mounted);if(f&&f.overlay){let d=e.node.enter(f.overlay[0].from+a,1),p=this.highlighters.filter(g=>!g.scope||g.scope(f.tree.type)),O=e.firstChild();for(let g=0,m=a;;g++){let b=g=x||!e.nextSibling())););if(!b||x>n)break;m=b.to+a,m>t&&(this.highlightRange(d.cursor(),Math.max(t,b.from+a),Math.min(n,m),"",p),this.startSpan(Math.min(n,m),c))}O&&e.parent()}else if(e.firstChild()){f&&(i="");do if(!(e.to<=t)){if(e.from>=n)break;this.highlightRange(e,t,n,i,r),this.startSpan(Math.min(n,e.to),c)}while(e.nextSibling());e.parent()}}}function IP(s){let e=s.type.prop(U0);for(;e&&e.context&&!s.matchContext(e.context);)e=e.next;return e||null}const ae=zn.define,sl=ae(),os=ae(),Gm=ae(os),Xm=ae(os),as=ae(),rl=ae(as),gh=ae(as),fi=ae(),Ls=ae(fi),hi=ae(),ui=ae(),ef=ae(),So=ae(ef),ol=ae(),D={comment:sl,lineComment:ae(sl),blockComment:ae(sl),docComment:ae(sl),name:os,variableName:ae(os),typeName:Gm,tagName:ae(Gm),propertyName:Xm,attributeName:ae(Xm),className:ae(os),labelName:ae(os),namespace:ae(os),macroName:ae(os),literal:as,string:rl,docString:ae(rl),character:ae(rl),attributeValue:ae(rl),number:gh,integer:ae(gh),float:ae(gh),bool:ae(as),regexp:ae(as),escape:ae(as),color:ae(as),url:ae(as),keyword:hi,self:ae(hi),null:ae(hi),atom:ae(hi),unit:ae(hi),modifier:ae(hi),operatorKeyword:ae(hi),controlKeyword:ae(hi),definitionKeyword:ae(hi),moduleKeyword:ae(hi),operator:ui,derefOperator:ae(ui),arithmeticOperator:ae(ui),logicOperator:ae(ui),bitwiseOperator:ae(ui),compareOperator:ae(ui),updateOperator:ae(ui),definitionOperator:ae(ui),typeOperator:ae(ui),controlOperator:ae(ui),punctuation:ef,separator:ae(ef),bracket:So,angleBracket:ae(So),squareBracket:ae(So),paren:ae(So),brace:ae(So),content:fi,heading:Ls,heading1:ae(Ls),heading2:ae(Ls),heading3:ae(Ls),heading4:ae(Ls),heading5:ae(Ls),heading6:ae(Ls),contentSeparator:ae(fi),list:ae(fi),quote:ae(fi),emphasis:ae(fi),strong:ae(fi),link:ae(fi),monospace:ae(fi),strikethrough:ae(fi),inserted:ae(),deleted:ae(),changed:ae(),invalid:ae(),meta:ol,documentMeta:ae(ol),annotation:ae(ol),processingInstruction:ae(ol),definition:zn.defineModifier("definition"),constant:zn.defineModifier("constant"),function:zn.defineModifier("function"),standard:zn.defineModifier("standard"),local:zn.defineModifier("local"),special:zn.defineModifier("special")};for(let s in D){let e=D[s];e instanceof zn&&(e.name=s)}N0([{tag:D.link,class:"tok-link"},{tag:D.heading,class:"tok-heading"},{tag:D.emphasis,class:"tok-emphasis"},{tag:D.strong,class:"tok-strong"},{tag:D.keyword,class:"tok-keyword"},{tag:D.atom,class:"tok-atom"},{tag:D.bool,class:"tok-bool"},{tag:D.url,class:"tok-url"},{tag:D.labelName,class:"tok-labelName"},{tag:D.inserted,class:"tok-inserted"},{tag:D.deleted,class:"tok-deleted"},{tag:D.literal,class:"tok-literal"},{tag:D.string,class:"tok-string"},{tag:D.number,class:"tok-number"},{tag:[D.regexp,D.escape,D.special(D.string)],class:"tok-string2"},{tag:D.variableName,class:"tok-variableName"},{tag:D.local(D.variableName),class:"tok-variableName tok-local"},{tag:D.definition(D.variableName),class:"tok-variableName tok-definition"},{tag:D.special(D.variableName),class:"tok-variableName2"},{tag:D.definition(D.propertyName),class:"tok-propertyName tok-definition"},{tag:D.typeName,class:"tok-typeName"},{tag:D.namespace,class:"tok-namespace"},{tag:D.className,class:"tok-className"},{tag:D.macroName,class:"tok-macroName"},{tag:D.propertyName,class:"tok-propertyName"},{tag:D.operator,class:"tok-operator"},{tag:D.comment,class:"tok-comment"},{tag:D.meta,class:"tok-meta"},{tag:D.invalid,class:"tok-invalid"},{tag:D.punctuation,class:"tok-punctuation"}]);var Oh;const Er=new je;function Q0(s){return Pe.define({combine:s?e=>e.concat(s):void 0})}const Kf=new je;class ii{constructor(e,t,n=[],i=""){this.data=e,this.name=i,ft.prototype.hasOwnProperty("tree")||Object.defineProperty(ft.prototype,"tree",{get(){return Un(this)}}),this.parser=t,this.extension=[no.of(this),ft.languageData.of((r,o,a)=>{let l=Hm(r,o,a),c=l.type.prop(Er);if(!c)return[];let h=r.facet(c),u=l.type.prop(Kf);if(u){let f=l.resolve(o-l.from,a);for(let d of u)if(d.test(f,r)){let p=r.facet(d.facet);return d.type=="replace"?p:p.concat(h)}}return h})].concat(n)}isActiveAt(e,t,n=-1){return Hm(e,t,n).type.prop(Er)==this.data}findRegions(e){let t=e.facet(no);if((t==null?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let n=[],i=(r,o)=>{if(r.prop(Er)==this.data){n.push({from:o,to:o+r.length});return}let a=r.prop(je.mounted);if(a){if(a.tree.prop(Er)==this.data){if(a.overlay)for(let l of a.overlay)n.push({from:l.from+o,to:l.to+o});else n.push({from:o,to:o+r.length});return}else if(a.overlay){let l=n.length;if(i(a.tree,a.overlay[0].from+o),n.length>l)return}}for(let l=0;ln.isTop?t:void 0)]}),e.name)}configure(e,t){return new zl(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function Un(s){let e=s.field(ii.state,!1);return e?e.tree:Bt.empty}class UP{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let n=this.cursorPos-this.string.length;return e=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-n,t-n)}}let vo=null;class Zl{constructor(e,t,n=[],i,r,o,a,l){this.parser=e,this.state=t,this.fragments=n,this.tree=i,this.treeLen=r,this.viewport=o,this.skipped=a,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}static create(e,t,n){return new Zl(e,t,[],Bt.empty,0,n,[],null)}startParse(){return this.parser.startParse(new UP(this.state.doc),this.fragments)}work(e,t){return t!=null&&t>=this.state.doc.length&&(t=void 0),this.tree!=Bt.empty&&this.isDone(t??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var n;if(typeof e=="number"){let i=Date.now()+e;e=()=>Date.now()>i}for(this.parse||(this.parse=this.startParse()),t!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>t)&&t=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(t=this.parse.advance()););}),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(Zs.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=vo;vo=this;try{return e()}finally{vo=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=Wm(e,t.from,t.to);return e}changes(e,t){let{fragments:n,tree:i,treeLen:r,viewport:o,skipped:a}=this;if(this.takeTree(),!e.empty){let l=[];if(e.iterChangedRanges((c,h,u,f)=>l.push({fromA:c,toA:h,fromB:u,toB:f})),n=Zs.applyChanges(n,l),i=Bt.empty,r=0,o={from:e.mapPos(o.from,-1),to:e.mapPos(o.to,1)},this.skipped.length){a=[];for(let c of this.skipped){let h=e.mapPos(c.from,1),u=e.mapPos(c.to,-1);he.from&&(this.fragments=Wm(this.fragments,i,r),this.skipped.splice(n--,1))}return this.skipped.length>=t?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends D0{createParse(t,n,i){let r=i[0].from,o=i[i.length-1].to;return{parsedPos:r,advance(){let l=vo;if(l){for(let c of i)l.tempSkipped.push(c);e&&(l.scheduleOn=l.scheduleOn?Promise.all([l.scheduleOn,e]):e)}return this.parsedPos=o,new Bt(Tn.none,[],[],o-r)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&t[0].from==0&&t[0].to>=e}static get(){return vo}}function Wm(s,e,t){return Zs.applyChanges(s,[{fromA:e,toA:t,fromB:e,toB:t}])}class to{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),n=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,n)||t.takeTree(),new to(t)}static init(e){let t=Math.min(3e3,e.doc.length),n=Zl.create(e.facet(no).parser,e,{from:0,to:t});return n.work(20,t)||n.takeTree(),new to(n)}}ii.state=vs.define({create:to.init,update(s,e){for(let t of e.effects)if(t.is(ii.setState))return t.value;return e.startState.facet(no)!=e.state.facet(no)?to.init(e.state):s.apply(e)}});let B0=s=>{let e=setTimeout(()=>s(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(B0=s=>{let e=-1,t=setTimeout(()=>{e=requestIdleCallback(s,{timeout:400})},100);return()=>e<0?clearTimeout(t):cancelIdleCallback(e)});const _h=typeof navigator<"u"&&(!((Oh=navigator.scheduling)===null||Oh===void 0)&&Oh.isInputPending)?()=>navigator.scheduling.isInputPending():null,NP=ys.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(ii.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(ii.state);(t.tree!=t.context.tree||!t.context.isDone(e.doc.length))&&(this.working=B0(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEndi+1e3,l=r.context.work(()=>_h&&_h()||Date.now()>o,i+(a?0:1e5));this.chunkBudget-=Date.now()-t,(l||this.chunkBudget<=0)&&(r.context.takeTree(),this.view.dispatch({effects:ii.setState.of(new to(r.context))})),this.chunkBudget>0&&!(l&&!a)&&this.scheduleWork(),this.checkAsyncSchedule(r.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(t=>_i(this.view.state,t)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),no=Pe.define({combine(s){return s.length?s[0]:null},enables:s=>[ii.state,NP,Qe.contentAttributes.compute([s],e=>{let t=e.facet(s);return t&&t.name?{"data-language":t.name}:{}})]});class QP{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}}const BP=Pe.define(),hc=Pe.define({combine:s=>{if(!s.length)return" ";let e=s[0];if(!e||/\S/.test(e)||Array.from(e).some(t=>t!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(s[0]));return e}});function Gl(s){let e=s.facet(hc);return e.charCodeAt(0)==9?s.tabSize*e.length:e.length}function Xl(s,e){let t="",n=s.tabSize,i=s.facet(hc)[0];if(i==" "){for(;e>=n;)t+=" ",e-=n;i=" "}for(let r=0;r=e?FP(s,t,e):null}class uc{constructor(e,t={}){this.state=e,this.options=t,this.unit=Gl(e)}lineAt(e,t=1){let n=this.state.doc.lineAt(e),{simulateBreak:i,simulateDoubleBreak:r}=this.options;return i!=null&&i>=n.from&&i<=n.to?r&&i==e?{text:"",from:e}:(t<0?i-1&&(r+=o-this.countColumn(n,n.search(/\S|$/))),r}countColumn(e,t=e.length){return rc(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:n,from:i}=this.lineAt(e,t),r=this.options.overrideIndentation;if(r){let o=r(i);if(o>-1)return o}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const $0=new je;function FP(s,e,t){let n=e.resolveStack(t),i=e.resolveInner(t,-1).resolve(t,0).enterUnfinishedNodesBefore(t);if(i!=n.node){let r=[];for(let o=i;o&&!(o.from==n.node.from&&o.type==n.node.type);o=o.parent)r.push(o);for(let o=r.length-1;o>=0;o--)n={node:r[o],next:n}}return V0(n,s,t)}function V0(s,e,t){for(let n=s;n;n=n.next){let i=VP(n.node);if(i)return i(Jf.create(e,t,n))}return 0}function $P(s){return s.pos==s.options.simulateBreak&&s.options.simulateDoubleBreak}function VP(s){let e=s.type.prop($0);if(e)return e;let t=s.firstChild,n;if(t&&(n=t.type.prop(je.closedBy))){let i=s.lastChild,r=i&&n.indexOf(i.name)>-1;return o=>z0(o,!0,1,void 0,r&&!$P(o)?i.from:void 0)}return s.parent==null?zP:null}function zP(){return 0}class Jf extends uc{constructor(e,t,n){super(e.state,e.options),this.base=e,this.pos=t,this.context=n}get node(){return this.context.node}static create(e,t,n){return new Jf(e,t,n)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let n=e.resolve(t.from);for(;n.parent&&n.parent.from==n.from;)n=n.parent;if(ZP(n,e))break;t=this.state.doc.lineAt(n.from)}return this.lineIndent(t.from)}continue(){return V0(this.context.next,this.base,this.pos)}}function ZP(s,e){for(let t=e;t;t=t.parent)if(s==t)return!0;return!1}function GP(s){let e=s.node,t=e.childAfter(e.from),n=e.lastChild;if(!t)return null;let i=s.options.simulateBreak,r=s.state.doc.lineAt(t.from),o=i==null||i<=r.from?r.to:Math.min(r.to,i);for(let a=t.to;;){let l=e.childAfter(a);if(!l||l==n)return null;if(!l.type.isSkipped){if(l.from>=o)return null;let c=/^ */.exec(r.text.slice(t.to-r.from))[0].length;return{from:t.from,to:t.to+c}}a=l.to}}function XP({closing:s,align:e=!0,units:t=1}){return n=>z0(n,e,t,s)}function z0(s,e,t,n,i){let r=s.textAfter,o=r.match(/^\s*/)[0].length,a=n&&r.slice(o,o+n.length)==n||i==s.pos+o,l=e?GP(s):null;return l?a?s.column(l.from):s.column(l.to):s.baseIndent+(a?0:s.unit*t)}const HP=s=>s.baseIndent;function xh({except:s,units:e=1}={}){return t=>{let n=s&&s.test(t.textAfter);return t.baseIndent+(n?0:e*t.unit)}}const WP=new je;function jP(s){let e=s.firstChild,t=s.lastChild;return e&&e.toa.prop(Er)==o.data:o?a=>a==o:void 0,this.style=N0(e.map(a=>({tag:a.tag,class:a.class||i(Object.assign({},a,{tag:null}))})),{all:r}).style,this.module=n?new Os(n):null,this.themeType=t.themeType}static define(e,t){return new ca(e,t||{})}}const tf=Pe.define(),qP=Pe.define({combine(s){return s.length?[s[0]]:null}});function yh(s){let e=s.facet(tf);return e.length?e:s.facet(qP)}function Z0(s,e){let t=[KP],n;return s instanceof ca&&(s.module&&t.push(Qe.styleModule.of(s.module)),n=s.themeType),n?t.push(tf.computeN([Qe.darkTheme],i=>i.facet(Qe.darkTheme)==(n=="dark")?[s]:[])):t.push(tf.of(s)),t}class YP{constructor(e){this.markCache=Object.create(null),this.tree=Un(e.state),this.decorations=this.buildDeco(e,yh(e.state)),this.decoratedTo=e.viewport.to}update(e){let t=Un(e.state),n=yh(e.state),i=n!=yh(e.startState),{viewport:r}=e.view,o=e.changes.mapPos(this.decoratedTo,1);t.length=r.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=o):(t!=this.tree||e.viewportChanged||i)&&(this.tree=t,this.decorations=this.buildDeco(e.view,n),this.decoratedTo=r.to)}buildDeco(e,t){if(!t||!this.tree.length)return It.none;let n=new jo;for(let{from:i,to:r}of e.visibleRanges)LP(this.tree,t,(o,a,l)=>{n.add(o,a,this.markCache[l]||(this.markCache[l]=It.mark({class:l})))},i,r);return n.finish()}}const KP=ic.high(ys.fromClass(YP,{decorations:s=>s.decorations})),JP=ca.define([{tag:D.meta,color:"#404740"},{tag:D.link,textDecoration:"underline"},{tag:D.heading,textDecoration:"underline",fontWeight:"bold"},{tag:D.emphasis,fontStyle:"italic"},{tag:D.strong,fontWeight:"bold"},{tag:D.strikethrough,textDecoration:"line-through"},{tag:D.keyword,color:"#708"},{tag:[D.atom,D.bool,D.url,D.contentSeparator,D.labelName],color:"#219"},{tag:[D.literal,D.inserted],color:"#164"},{tag:[D.string,D.deleted],color:"#a11"},{tag:[D.regexp,D.escape,D.special(D.string)],color:"#e40"},{tag:D.definition(D.variableName),color:"#00f"},{tag:D.local(D.variableName),color:"#30a"},{tag:[D.typeName,D.namespace],color:"#085"},{tag:D.className,color:"#167"},{tag:[D.special(D.variableName),D.macroName],color:"#256"},{tag:D.definition(D.propertyName),color:"#00c"},{tag:D.comment,color:"#940"},{tag:D.invalid,color:"#f00"}]),eR=1e4,tR="()[]{}",nR=new je;function nf(s,e,t){let n=s.prop(e<0?je.openedBy:je.closedBy);if(n)return n;if(s.name.length==1){let i=t.indexOf(s.name);if(i>-1&&i%2==(e<0?1:0))return[t[i+e]]}return null}function sf(s){let e=s.type.prop(nR);return e?e(s.node):s}function Ar(s,e,t,n={}){let i=n.maxScanDistance||eR,r=n.brackets||tR,o=Un(s),a=o.resolveInner(e,t);for(let l=a;l;l=l.parent){let c=nf(l.type,t,r);if(c&&l.from0?e>=h.from&&eh.from&&e<=h.to))return iR(s,e,t,l,h,c,r)}}return sR(s,e,t,o,a.type,i,r)}function iR(s,e,t,n,i,r,o){let a=n.parent,l={from:i.from,to:i.to},c=0,h=a==null?void 0:a.cursor();if(h&&(t<0?h.childBefore(n.from):h.childAfter(n.to)))do if(t<0?h.to<=n.from:h.from>=n.to){if(c==0&&r.indexOf(h.type.name)>-1&&h.from0)return null;let c={from:t<0?e-1:e,to:t>0?e+1:e},h=s.doc.iterRange(e,t>0?s.doc.length:0),u=0;for(let f=0;!h.next().done&&f<=r;){let d=h.value;t<0&&(f+=d.length);let p=e+f*t;for(let O=t>0?0:d.length-1,g=t>0?d.length:-1;O!=g;O+=t){let m=o.indexOf(d[O]);if(!(m<0||n.resolveInner(p+O,1).type!=i))if(m%2==0==t>0)u++;else{if(u==1)return{start:c,end:{from:p+O,to:p+O+1},matched:m>>1==l>>1};u--}}t>0&&(f+=d.length)}return h.done?{start:c,matched:!1}:null}const rR=Object.create(null),jm=[Tn.none],qm=[],Ym=Object.create(null),oR=Object.create(null);for(let[s,e]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])oR[s]=aR(rR,e);function Sh(s,e){qm.indexOf(s)>-1||(qm.push(s),console.warn(e))}function aR(s,e){let t=[];for(let a of e.split(" ")){let l=[];for(let c of a.split(".")){let h=s[c]||D[c];h?typeof h=="function"?l.length?l=l.map(h):Sh(c,`Modifier ${c} used at start of tag`):l.length?Sh(c,`Tag ${c} used as modifier`):l=Array.isArray(h)?h:[h]:Sh(c,`Unknown highlighting tag ${c}`)}for(let c of l)t.push(c)}if(!t.length)return 0;let n=e.replace(/ /g,"_"),i=n+" "+t.map(a=>a.id),r=Ym[i];if(r)return r.id;let o=Ym[i]=Tn.define({id:jm.length,name:n,props:[I0({[n]:t})]});return jm.push(o),o.id}Vt.RTL,Vt.LTR;const lR=s=>{let{state:e}=s,t=e.doc.lineAt(e.selection.main.from),n=td(s.state,t.from);return n.line?cR(s):n.block?uR(s):!1};function ed(s,e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let i=s(e,t);return i?(n(t.update(i)),!0):!1}}const cR=ed(pR,0),hR=ed(G0,0),uR=ed((s,e)=>G0(s,e,dR(e)),0);function td(s,e){let t=s.languageDataAt("commentTokens",e);return t.length?t[0]:{}}const bo=50;function fR(s,{open:e,close:t},n,i){let r=s.sliceDoc(n-bo,n),o=s.sliceDoc(i,i+bo),a=/\s*$/.exec(r)[0].length,l=/^\s*/.exec(o)[0].length,c=r.length-a;if(r.slice(c-e.length,c)==e&&o.slice(l,l+t.length)==t)return{open:{pos:n-a,margin:a&&1},close:{pos:i+l,margin:l&&1}};let h,u;i-n<=2*bo?h=u=s.sliceDoc(n,i):(h=s.sliceDoc(n,n+bo),u=s.sliceDoc(i-bo,i));let f=/^\s*/.exec(h)[0].length,d=/\s*$/.exec(u)[0].length,p=u.length-d-t.length;return h.slice(f,f+e.length)==e&&u.slice(p,p+t.length)==t?{open:{pos:n+f+e.length,margin:/\s/.test(h.charAt(f+e.length))?1:0},close:{pos:i-d-t.length,margin:/\s/.test(u.charAt(p-1))?1:0}}:null}function dR(s){let e=[];for(let t of s.selection.ranges){let n=s.doc.lineAt(t.from),i=t.to<=n.to?n:s.doc.lineAt(t.to);i.from>n.from&&i.from==t.to&&(i=t.to==n.to+1?n:s.doc.lineAt(t.to-1));let r=e.length-1;r>=0&&e[r].to>n.from?e[r].to=i.to:e.push({from:n.from+/^\s*/.exec(n.text)[0].length,to:i.to})}return e}function G0(s,e,t=e.selection.ranges){let n=t.map(r=>td(e,r.from).block);if(!n.every(r=>r))return null;let i=t.map((r,o)=>fR(e,n[o],r.from,r.to));if(s!=2&&!i.every(r=>r))return{changes:e.changes(t.map((r,o)=>i[o]?[]:[{from:r.from,insert:n[o].open+" "},{from:r.to,insert:" "+n[o].close}]))};if(s!=1&&i.some(r=>r)){let r=[];for(let o=0,a;oi&&(r==o||o>u.from)){i=u.from;let f=/^\s*/.exec(u.text)[0].length,d=f==u.length,p=u.text.slice(f,f+c.length)==c?f:-1;fr.comment<0&&(!r.empty||r.single))){let r=[];for(let{line:a,token:l,indent:c,empty:h,single:u}of n)(u||!h)&&r.push({from:a.from+c,insert:l+" "});let o=e.changes(r);return{changes:o,selection:e.selection.map(o,1)}}else if(s!=1&&n.some(r=>r.comment>=0)){let r=[];for(let{line:o,comment:a,token:l}of n)if(a>=0){let c=o.from+a,h=c+l.length;o.text[h-o.from]==" "&&h++,r.push({from:c,to:h})}return{changes:r}}return null}function oo(s,e){return oe.create(s.ranges.map(e),s.mainIndex)}function wi(s,e){return s.update({selection:e,scrollIntoView:!0,userEvent:"select"})}function li({state:s,dispatch:e},t){let n=oo(s.selection,t);return n.eq(s.selection,!0)?!1:(e(wi(s,n)),!0)}function fc(s,e){return oe.cursor(e?s.to:s.from)}function X0(s,e){return li(s,t=>t.empty?s.moveByChar(t,e):fc(t,e))}function ln(s){return s.textDirectionAt(s.state.selection.main.head)==Vt.LTR}const H0=s=>X0(s,!ln(s)),W0=s=>X0(s,ln(s));function j0(s,e){return li(s,t=>t.empty?s.moveByGroup(t,e):fc(t,e))}const mR=s=>j0(s,!ln(s)),gR=s=>j0(s,ln(s));function OR(s,e,t){if(e.type.prop(t))return!0;let n=e.to-e.from;return n&&(n>2||/[^\s,.;:]/.test(s.sliceDoc(e.from,e.to)))||e.firstChild}function dc(s,e,t){let n=Un(s).resolveInner(e.head),i=t?je.closedBy:je.openedBy;for(let l=e.head;;){let c=t?n.childAfter(l):n.childBefore(l);if(!c)break;OR(s,c,i)?n=c:l=t?c.to:c.from}let r=n.type.prop(i),o,a;return r&&(o=t?Ar(s,n.from,1):Ar(s,n.to,-1))&&o.matched?a=t?o.end.to:o.end.from:a=t?n.to:n.from,oe.cursor(a,t?-1:1)}const _R=s=>li(s,e=>dc(s.state,e,!ln(s))),xR=s=>li(s,e=>dc(s.state,e,ln(s)));function q0(s,e){return li(s,t=>{if(!t.empty)return fc(t,e);let n=s.moveVertically(t,e);return n.head!=t.head?n:s.moveToLineBoundary(t,e)})}const Y0=s=>q0(s,!1),K0=s=>q0(s,!0);function J0(s){let e=s.scrollDOM.clientHeighto.empty?s.moveVertically(o,e,t.height):fc(o,e));if(i.eq(n.selection))return!1;let r;if(t.selfScroll){let o=s.coordsAtPos(n.selection.main.head),a=s.scrollDOM.getBoundingClientRect(),l=a.top+t.marginTop,c=a.bottom-t.marginBottom;o&&o.top>l&&o.bottome_(s,!1),rf=s=>e_(s,!0);function bs(s,e,t){let n=s.lineBlockAt(e.head),i=s.moveToLineBoundary(e,t);if(i.head==e.head&&i.head!=(t?n.to:n.from)&&(i=s.moveToLineBoundary(e,t,!1)),!t&&i.head==n.from&&n.length){let r=/^\s*/.exec(s.state.sliceDoc(n.from,Math.min(n.from+100,n.to)))[0].length;r&&e.head!=n.from+r&&(i=oe.cursor(n.from+r))}return i}const yR=s=>li(s,e=>bs(s,e,!0)),SR=s=>li(s,e=>bs(s,e,!1)),vR=s=>li(s,e=>bs(s,e,!ln(s))),bR=s=>li(s,e=>bs(s,e,ln(s))),MR=s=>li(s,e=>oe.cursor(s.lineBlockAt(e.head).from,1)),wR=s=>li(s,e=>oe.cursor(s.lineBlockAt(e.head).to,-1));function TR(s,e,t){let n=!1,i=oo(s.selection,r=>{let o=Ar(s,r.head,-1)||Ar(s,r.head,1)||r.head>0&&Ar(s,r.head-1,1)||r.headTR(s,e);function Wn(s,e){let t=oo(s.state.selection,n=>{let i=e(n);return oe.range(n.anchor,i.head,i.goalColumn,i.bidiLevel||void 0)});return t.eq(s.state.selection)?!1:(s.dispatch(wi(s.state,t)),!0)}function t_(s,e){return Wn(s,t=>s.moveByChar(t,e))}const n_=s=>t_(s,!ln(s)),i_=s=>t_(s,ln(s));function s_(s,e){return Wn(s,t=>s.moveByGroup(t,e))}const AR=s=>s_(s,!ln(s)),PR=s=>s_(s,ln(s)),RR=s=>Wn(s,e=>dc(s.state,e,!ln(s))),CR=s=>Wn(s,e=>dc(s.state,e,ln(s)));function r_(s,e){return Wn(s,t=>s.moveVertically(t,e))}const o_=s=>r_(s,!1),a_=s=>r_(s,!0);function l_(s,e){return Wn(s,t=>s.moveVertically(t,e,J0(s).height))}const Jm=s=>l_(s,!1),eg=s=>l_(s,!0),kR=s=>Wn(s,e=>bs(s,e,!0)),LR=s=>Wn(s,e=>bs(s,e,!1)),DR=s=>Wn(s,e=>bs(s,e,!ln(s))),IR=s=>Wn(s,e=>bs(s,e,ln(s))),UR=s=>Wn(s,e=>oe.cursor(s.lineBlockAt(e.head).from)),NR=s=>Wn(s,e=>oe.cursor(s.lineBlockAt(e.head).to)),tg=({state:s,dispatch:e})=>(e(wi(s,{anchor:0})),!0),ng=({state:s,dispatch:e})=>(e(wi(s,{anchor:s.doc.length})),!0),ig=({state:s,dispatch:e})=>(e(wi(s,{anchor:s.selection.main.anchor,head:0})),!0),sg=({state:s,dispatch:e})=>(e(wi(s,{anchor:s.selection.main.anchor,head:s.doc.length})),!0),QR=({state:s,dispatch:e})=>(e(s.update({selection:{anchor:0,head:s.doc.length},userEvent:"select"})),!0),BR=({state:s,dispatch:e})=>{let t=pc(s).map(({from:n,to:i})=>oe.range(n,Math.min(i+1,s.doc.length)));return e(s.update({selection:oe.create(t),userEvent:"select"})),!0},FR=({state:s,dispatch:e})=>{let t=oo(s.selection,n=>{let i=Un(s),r=i.resolveStack(n.from,1);if(n.empty){let o=i.resolveStack(n.from,-1);o.node.from>=r.node.from&&o.node.to<=r.node.to&&(r=o)}for(let o=r;o;o=o.next){let{node:a}=o;if((a.from=n.to||a.to>n.to&&a.from<=n.from)&&o.next)return oe.range(a.to,a.from)}return n});return t.eq(s.selection)?!1:(e(wi(s,t)),!0)},$R=({state:s,dispatch:e})=>{let t=s.selection,n=null;return t.ranges.length>1?n=oe.create([t.main]):t.main.empty||(n=oe.create([oe.cursor(t.main.head)])),n?(e(wi(s,n)),!0):!1};function ha(s,e){if(s.state.readOnly)return!1;let t="delete.selection",{state:n}=s,i=n.changeByRange(r=>{let{from:o,to:a}=r;if(o==a){let l=e(r);lo&&(t="delete.forward",l=al(s,l,!0)),o=Math.min(o,l),a=Math.max(a,l)}else o=al(s,o,!1),a=al(s,a,!0);return o==a?{range:r}:{changes:{from:o,to:a},range:oe.cursor(o,oi(s)))n.between(e,e,(i,r)=>{ie&&(e=t?r:i)});return e}const c_=(s,e,t)=>ha(s,n=>{let i=n.from,{state:r}=s,o=r.doc.lineAt(i),a,l;if(t&&!e&&i>o.from&&ic_(s,!1,!0),h_=s=>c_(s,!0,!1),u_=(s,e)=>ha(s,t=>{let n=t.head,{state:i}=s,r=i.doc.lineAt(n),o=i.charCategorizer(n);for(let a=null;;){if(n==(e?r.to:r.from)){n==t.head&&r.number!=(e?i.doc.lines:1)&&(n+=e?1:-1);break}let l=mn(r.text,n-r.from,e)+r.from,c=r.text.slice(Math.min(n,l)-r.from,Math.max(n,l)-r.from),h=o(c);if(a!=null&&h!=a)break;(c!=" "||n!=t.head)&&(a=h),n=l}return n}),f_=s=>u_(s,!1),VR=s=>u_(s,!0),zR=s=>ha(s,e=>{let t=s.lineBlockAt(e.head).to;return e.headha(s,e=>{let t=s.moveToLineBoundary(e,!1).head;return e.head>t?t:Math.max(0,e.head-1)}),GR=s=>ha(s,e=>{let t=s.moveToLineBoundary(e,!0).head;return e.head{if(s.readOnly)return!1;let t=s.changeByRange(n=>({changes:{from:n.from,to:n.to,insert:it.of(["",""])},range:oe.cursor(n.from)}));return e(s.update(t,{scrollIntoView:!0,userEvent:"input"})),!0},HR=({state:s,dispatch:e})=>{if(s.readOnly)return!1;let t=s.changeByRange(n=>{if(!n.empty||n.from==0||n.from==s.doc.length)return{range:n};let i=n.from,r=s.doc.lineAt(i),o=i==r.from?i-1:mn(r.text,i-r.from,!1)+r.from,a=i==r.to?i+1:mn(r.text,i-r.from,!0)+r.from;return{changes:{from:o,to:a,insert:s.doc.slice(i,a).append(s.doc.slice(o,i))},range:oe.cursor(a)}});return t.changes.empty?!1:(e(s.update(t,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function pc(s){let e=[],t=-1;for(let n of s.selection.ranges){let i=s.doc.lineAt(n.from),r=s.doc.lineAt(n.to);if(!n.empty&&n.to==r.from&&(r=s.doc.lineAt(n.to-1)),t>=i.number){let o=e[e.length-1];o.to=r.to,o.ranges.push(n)}else e.push({from:i.from,to:r.to,ranges:[n]});t=r.number+1}return e}function d_(s,e,t){if(s.readOnly)return!1;let n=[],i=[];for(let r of pc(s)){if(t?r.to==s.doc.length:r.from==0)continue;let o=s.doc.lineAt(t?r.to+1:r.from-1),a=o.length+1;if(t){n.push({from:r.to,to:o.to},{from:r.from,insert:o.text+s.lineBreak});for(let l of r.ranges)i.push(oe.range(Math.min(s.doc.length,l.anchor+a),Math.min(s.doc.length,l.head+a)))}else{n.push({from:o.from,to:r.from},{from:r.to,insert:s.lineBreak+o.text});for(let l of r.ranges)i.push(oe.range(l.anchor-a,l.head-a))}}return n.length?(e(s.update({changes:n,scrollIntoView:!0,selection:oe.create(i,s.selection.mainIndex),userEvent:"move.line"})),!0):!1}const WR=({state:s,dispatch:e})=>d_(s,e,!1),jR=({state:s,dispatch:e})=>d_(s,e,!0);function p_(s,e,t){if(s.readOnly)return!1;let n=[];for(let i of pc(s))t?n.push({from:i.from,insert:s.doc.slice(i.from,i.to)+s.lineBreak}):n.push({from:i.to,insert:s.lineBreak+s.doc.slice(i.from,i.to)});return e(s.update({changes:n,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const qR=({state:s,dispatch:e})=>p_(s,e,!1),YR=({state:s,dispatch:e})=>p_(s,e,!0),KR=s=>{if(s.state.readOnly)return!1;let{state:e}=s,t=e.changes(pc(e).map(({from:i,to:r})=>(i>0?i--:r{let r;if(s.lineWrapping){let o=s.lineBlockAt(i.head),a=s.coordsAtPos(i.head,i.assoc||1);a&&(r=o.bottom+s.documentTop-a.bottom+s.defaultLineHeight/2)}return s.moveVertically(i,!0,r)}).map(t);return s.dispatch({changes:t,selection:n,scrollIntoView:!0,userEvent:"delete.line"}),!0};function JR(s,e){if(/\(\)|\[\]|\{\}/.test(s.sliceDoc(e-1,e+1)))return{from:e,to:e};let t=Un(s).resolveInner(e),n=t.childBefore(e),i=t.childAfter(e),r;return n&&i&&n.to<=e&&i.from>=e&&(r=n.type.prop(je.closedBy))&&r.indexOf(i.name)>-1&&s.doc.lineAt(n.to).from==s.doc.lineAt(i.from).from&&!/\S/.test(s.sliceDoc(n.to,i.from))?{from:n.to,to:i.from}:null}const rg=m_(!1),eC=m_(!0);function m_(s){return({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(i=>{let{from:r,to:o}=i,a=e.doc.lineAt(r),l=!s&&r==o&&JR(e,r);s&&(r=o=(o<=a.to?a:e.doc.lineAt(o)).to);let c=new uc(e,{simulateBreak:r,simulateDoubleBreak:!!l}),h=F0(c,r);for(h==null&&(h=rc(/^\s*/.exec(e.doc.lineAt(r).text)[0],e.tabSize));oa.from&&r{let i=[];for(let o=n.from;o<=n.to;){let a=s.doc.lineAt(o);a.number>t&&(n.empty||n.to>a.from)&&(e(a,i,n),t=a.number),o=a.to+1}let r=s.changes(i);return{changes:i,range:oe.range(r.mapPos(n.anchor,1),r.mapPos(n.head,1))}})}const tC=({state:s,dispatch:e})=>{if(s.readOnly)return!1;let t=Object.create(null),n=new uc(s,{overrideIndentation:r=>{let o=t[r];return o??-1}}),i=nd(s,(r,o,a)=>{let l=F0(n,r.from);if(l==null)return;/\S/.test(r.text)||(l=0);let c=/^\s*/.exec(r.text)[0],h=Xl(s,l);(c!=h||a.froms.readOnly?!1:(e(s.update(nd(s,(t,n)=>{n.push({from:t.from,insert:s.facet(hc)})}),{userEvent:"input.indent"})),!0),iC=({state:s,dispatch:e})=>s.readOnly?!1:(e(s.update(nd(s,(t,n)=>{let i=/^\s*/.exec(t.text)[0];if(!i)return;let r=rc(i,s.tabSize),o=0,a=Xl(s,Math.max(0,r-Gl(s)));for(;o(s.setTabFocusMode(),!0),rC=[{key:"Ctrl-b",run:H0,shift:n_,preventDefault:!0},{key:"Ctrl-f",run:W0,shift:i_},{key:"Ctrl-p",run:Y0,shift:o_},{key:"Ctrl-n",run:K0,shift:a_},{key:"Ctrl-a",run:MR,shift:UR},{key:"Ctrl-e",run:wR,shift:NR},{key:"Ctrl-d",run:h_},{key:"Ctrl-h",run:of},{key:"Ctrl-k",run:zR},{key:"Ctrl-Alt-h",run:f_},{key:"Ctrl-o",run:XR},{key:"Ctrl-t",run:HR},{key:"Ctrl-v",run:rf}],oC=[{key:"ArrowLeft",run:H0,shift:n_,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:mR,shift:AR,preventDefault:!0},{mac:"Cmd-ArrowLeft",run:vR,shift:DR,preventDefault:!0},{key:"ArrowRight",run:W0,shift:i_,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:gR,shift:PR,preventDefault:!0},{mac:"Cmd-ArrowRight",run:bR,shift:IR,preventDefault:!0},{key:"ArrowUp",run:Y0,shift:o_,preventDefault:!0},{mac:"Cmd-ArrowUp",run:tg,shift:ig},{mac:"Ctrl-ArrowUp",run:Km,shift:Jm},{key:"ArrowDown",run:K0,shift:a_,preventDefault:!0},{mac:"Cmd-ArrowDown",run:ng,shift:sg},{mac:"Ctrl-ArrowDown",run:rf,shift:eg},{key:"PageUp",run:Km,shift:Jm},{key:"PageDown",run:rf,shift:eg},{key:"Home",run:SR,shift:LR,preventDefault:!0},{key:"Mod-Home",run:tg,shift:ig},{key:"End",run:yR,shift:kR,preventDefault:!0},{key:"Mod-End",run:ng,shift:sg},{key:"Enter",run:rg,shift:rg},{key:"Mod-a",run:QR},{key:"Backspace",run:of,shift:of},{key:"Delete",run:h_},{key:"Mod-Backspace",mac:"Alt-Backspace",run:f_},{key:"Mod-Delete",mac:"Alt-Delete",run:VR},{mac:"Mod-Backspace",run:ZR},{mac:"Mod-Delete",run:GR}].concat(rC.map(s=>({mac:s.key,run:s.run,shift:s.shift}))),aC=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:_R,shift:RR},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:xR,shift:CR},{key:"Alt-ArrowUp",run:WR},{key:"Shift-Alt-ArrowUp",run:qR},{key:"Alt-ArrowDown",run:jR},{key:"Shift-Alt-ArrowDown",run:YR},{key:"Escape",run:$R},{key:"Mod-Enter",run:eC},{key:"Alt-l",mac:"Ctrl-l",run:BR},{key:"Mod-i",run:FR,preventDefault:!0},{key:"Mod-[",run:iC},{key:"Mod-]",run:nC},{key:"Mod-Alt-\\",run:tC},{key:"Shift-Mod-k",run:KR},{key:"Shift-Mod-\\",run:ER},{key:"Mod-/",run:lR},{key:"Alt-A",run:hR},{key:"Ctrl-m",mac:"Shift-Alt-m",run:sC}].concat(oC);var og={};class Hl{constructor(e,t,n,i,r,o,a,l,c,h=0,u){this.p=e,this.stack=t,this.state=n,this.reducePos=i,this.pos=r,this.score=o,this.buffer=a,this.bufferBase=l,this.curContext=c,this.lookAhead=h,this.parent=u}toString(){return`[${this.stack.filter((e,t)=>t%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,t,n=0){let i=e.parser.context;return new Hl(e,[],t,n,n,0,[],0,i?new ag(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var t;let n=e>>19,i=e&65535,{parser:r}=this.p,o=this.reducePos=2e3&&!(!((t=this.p.parser.nodeSet.types[i])===null||t===void 0)&&t.isAnonymous)&&(c==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=h):this.p.lastBigReductionSizel;)this.stack.pop();this.reduceContext(i,c)}storeNode(e,t,n,i=4,r=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]0&&o.buffer[a-4]==0&&o.buffer[a-1]>-1){if(t==n)return;if(o.buffer[a-2]>=t){o.buffer[a-2]=n;return}}}if(!r||this.pos==n)this.buffer.push(e,t,n,i);else{let o=this.buffer.length;if(o>0&&this.buffer[o-4]!=0){let a=!1;for(let l=o;l>0&&this.buffer[l-2]>n;l-=4)if(this.buffer[l-1]>=0){a=!0;break}if(a)for(;o>0&&this.buffer[o-2]>n;)this.buffer[o]=this.buffer[o-4],this.buffer[o+1]=this.buffer[o-3],this.buffer[o+2]=this.buffer[o-2],this.buffer[o+3]=this.buffer[o-1],o-=4,i>4&&(i-=4)}this.buffer[o]=e,this.buffer[o+1]=t,this.buffer[o+2]=n,this.buffer[o+3]=i}}shift(e,t,n,i){if(e&131072)this.pushState(e&65535,this.pos);else if(e&262144)this.pos=i,this.shiftContext(t,n),t<=this.p.parser.maxNode&&this.buffer.push(t,n,i,4);else{let r=e,{parser:o}=this.p;(i>this.pos||t<=o.maxNode)&&(this.pos=i,o.stateFlag(r,1)||(this.reducePos=i)),this.pushState(r,n),this.shiftContext(t,n),t<=o.maxNode&&this.buffer.push(t,n,i,4)}}apply(e,t,n,i){e&65536?this.reduce(e):this.shift(e,t,n,i)}useNode(e,t){let n=this.p.reused.length-1;(n<0||this.p.reused[n]!=e)&&(this.p.reused.push(e),n++);let i=this.pos;this.reducePos=this.pos=i+e.length,this.pushState(t,i),this.buffer.push(n,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,t=e.buffer.length;for(;t>0&&e.buffer[t-2]>e.reducePos;)t-=4;let n=e.buffer.slice(t),i=e.bufferBase+t;for(;e&&i==e.bufferBase;)e=e.parent;return new Hl(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,n,i,this.curContext,this.lookAhead,e)}recoverByDelete(e,t){let n=e<=this.p.parser.maxNode;n&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,n?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new lC(this);;){let n=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(n==0)return!1;if(!(n&65536))return!0;t.reduce(n)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let i=[];for(let r=0,o;rl&1&&a==o)||i.push(t[r],o)}t=i}let n=[];for(let i=0;i>19,i=t&65535,r=this.stack.length-n*3;if(r<0||e.getGoto(this.stack[r],i,!1)<0){let o=this.findForcedReduction();if(o==null)return!1;t=o}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}findForcedReduction(){let{parser:e}=this.p,t=[],n=(i,r)=>{if(!t.includes(i))return t.push(i),e.allActions(i,o=>{if(!(o&393216))if(o&65536){let a=(o>>19)-r;if(a>1){let l=o&65535,c=this.stack.length-a*3;if(c>=0&&e.getGoto(this.stack[c],l,!1)>=0)return a<<19|65536|l}}else{let a=n(o,r+1);if(a!=null)return a}})};return n(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:e}=this.p;return e.data[e.stateSlot(this.state,1)]==65535&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let t=0;tthis.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class ag{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}}class lC{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=e&65535,n=e>>19;n==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(n-1)*3;let i=this.start.p.parser.getGoto(this.stack[this.base-3],t,!0);this.state=i}}class Wl{constructor(e,t,n){this.stack=e,this.pos=t,this.index=n,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(e,t=e.bufferBase+e.buffer.length){return new Wl(e,t,t-e.bufferBase)}maybeNext(){let e=this.stack.parent;e!=null&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new Wl(this.stack,this.pos,this.index)}}function Co(s,e=Uint16Array){if(typeof s!="string")return s;let t=null;for(let n=0,i=0;n=92&&o--,o>=34&&o--;let l=o-32;if(l>=46&&(l-=46,a=!0),r+=l,a)break;r*=46}t?t[i++]=r:t=new e(r)}return t}class Ml{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const lg=new Ml;class cC{constructor(e,t){this.input=e,this.ranges=t,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=lg,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let n=this.range,i=this.rangeIndex,r=this.pos+e;for(;rn.to:r>=n.to;){if(i==this.ranges.length-1)return null;let o=this.ranges[++i];r+=o.from-n.to,n=o}return r}clipPos(e){if(e>=this.range.from&&ee)return Math.max(e,t.from);return this.end}peek(e){let t=this.chunkOff+e,n,i;if(t>=0&&t=this.chunk2Pos&&na.to&&(this.chunk2=this.chunk2.slice(0,a.to-n)),i=this.chunk2.charCodeAt(0)}}return n>=this.token.lookAhead&&(this.token.lookAhead=n+1),i}acceptToken(e,t=0){let n=t?this.resolveOffset(t,-1):this.pos;if(n==null||n=this.chunk2Pos&&this.posthis.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=lg,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let n="";for(let i of this.ranges){if(i.from>=t)break;i.to>e&&(n+=this.input.read(Math.max(i.from,e),Math.min(i.to,t)))}return n}}class Qr{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:n}=t.p;g_(this.data,e,t,this.id,n.data,n.tokenPrecTable)}}Qr.prototype.contextual=Qr.prototype.fallback=Qr.prototype.extend=!1;class af{constructor(e,t,n){this.precTable=t,this.elseToken=n,this.data=typeof e=="string"?Co(e):e}token(e,t){let n=e.pos,i=0;for(;;){let r=e.next<0,o=e.resolveOffset(1,1);if(g_(this.data,e,t,0,this.data,this.precTable),e.token.value>-1)break;if(this.elseToken==null)return;if(r||i++,o==null)break;e.reset(o,e.token)}i&&(e.reset(n,e.token),e.acceptToken(this.elseToken,i))}}af.prototype.contextual=Qr.prototype.fallback=Qr.prototype.extend=!1;class ua{constructor(e,t={}){this.token=e,this.contextual=!!t.contextual,this.fallback=!!t.fallback,this.extend=!!t.extend}}function g_(s,e,t,n,i,r){let o=0,a=1<0){let p=s[d];if(l.allows(p)&&(e.token.value==-1||e.token.value==p||hC(p,e.token.value,i,r))){e.acceptToken(p);break}}let h=e.next,u=0,f=s[o+2];if(e.next<0&&f>u&&s[c+f*3-3]==65535){o=s[c+f*3-1];continue e}for(;u>1,p=c+d+(d<<1),O=s[p],g=s[p+1]||65536;if(h=g)u=d+1;else{o=s[p+2],e.advance();continue e}}break}}function cg(s,e,t){for(let n=e,i;(i=s[n])!=65535;n++)if(i==t)return n-e;return-1}function hC(s,e,t,n){let i=cg(t,n,e);return i<0||cg(t,n,s)e)&&!n.type.isError)return t<0?Math.max(0,Math.min(n.to-1,e-25)):Math.min(s.length,Math.max(n.from+1,e+25));if(t<0?n.prevSibling():n.nextSibling())break;if(!n.parent())return t<0?0:s.length}}class uC{constructor(e,t){this.fragments=e,this.nodeSet=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?hg(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?hg(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(ee)return this.nextStart=o,null;if(r instanceof Bt){if(o==e){if(o=Math.max(this.safeFrom,e)&&(this.trees.push(r),this.start.push(o),this.index.push(0))}else this.index[t]++,this.nextStart=o+r.length}}}class fC{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(n=>new Ml)}getActions(e){let t=0,n=null,{parser:i}=e.p,{tokenizers:r}=i,o=i.stateSlot(e.state,3),a=e.curContext?e.curContext.hash:0,l=0;for(let c=0;cu.end+25&&(l=Math.max(u.lookAhead,l)),u.value!=0)){let f=t;if(u.extended>-1&&(t=this.addActions(e,u.extended,u.end,t)),t=this.addActions(e,u.value,u.end,t),!h.extend&&(n=u,t>f))break}}for(;this.actions.length>t;)this.actions.pop();return l&&e.setLookAhead(l),!n&&e.pos==this.stream.end&&(n=new Ml,n.value=e.p.parser.eofTerm,n.start=n.end=e.pos,t=this.addActions(e,n.value,n.end,t)),this.mainToken=n,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new Ml,{pos:n,p:i}=e;return t.start=n,t.end=Math.min(n+1,i.stream.end),t.value=n==i.stream.end?i.parser.eofTerm:0,t}updateCachedToken(e,t,n){let i=this.stream.clipPos(n.pos);if(t.token(this.stream.reset(i,e),n),e.value>-1){let{parser:r}=n.p;for(let o=0;o=0&&n.p.parser.dialect.allows(a>>1)){a&1?e.extended=a>>1:e.value=a>>1;break}}}else e.value=0,e.end=this.stream.clipPos(i+1)}putAction(e,t,n,i){for(let r=0;re.bufferLength*4?new uC(n,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,t=this.minStackPos,n=this.stacks=[],i,r;if(this.bigReductionCount>300&&e.length==1){let[o]=e;for(;o.forceReduce()&&o.stack.length&&o.stack[o.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let o=0;ot)n.push(a);else{if(this.advanceStack(a,n,e))continue;{i||(i=[],r=[]),i.push(a);let l=this.tokens.getMainToken(a);r.push(l.value,l.end)}}break}}if(!n.length){let o=i&&gC(i);if(o)return Rn&&console.log("Finish with "+this.stackID(o)),this.stackToTree(o);if(this.parser.strict)throw Rn&&i&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+t);this.recovering||(this.recovering=5)}if(this.recovering&&i){let o=this.stoppedAt!=null&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,r,n);if(o)return Rn&&console.log("Force-finish "+this.stackID(o)),this.stackToTree(o.forceAll())}if(this.recovering){let o=this.recovering==1?1:this.recovering*3;if(n.length>o)for(n.sort((a,l)=>l.score-a.score);n.length>o;)n.pop();n.some(a=>a.reducePos>t)&&this.recovering--}else if(n.length>1){e:for(let o=0;o500&&c.buffer.length>500)if((a.score-c.score||a.buffer.length-c.buffer.length)>0)n.splice(l--,1);else{n.splice(o--,1);continue e}}}n.length>12&&n.splice(12,n.length-12)}this.minStackPos=n[0].pos;for(let o=1;o ":"";if(this.stoppedAt!=null&&i>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let c=e.curContext&&e.curContext.tracker.strict,h=c?e.curContext.hash:0;for(let u=this.fragments.nodeAt(i);u;){let f=this.parser.nodeSet.types[u.type.id]==u.type?r.getGoto(e.state,u.type.id):-1;if(f>-1&&u.length&&(!c||(u.prop(je.contextHash)||0)==h))return e.useNode(u,f),Rn&&console.log(o+this.stackID(e)+` (via reuse of ${r.getName(u.type.id)})`),!0;if(!(u instanceof Bt)||u.children.length==0||u.positions[0]>0)break;let d=u.children[0];if(d instanceof Bt&&u.positions[0]==0)u=d;else break}}let a=r.stateSlot(e.state,4);if(a>0)return e.reduce(a),Rn&&console.log(o+this.stackID(e)+` (via always-reduce ${r.getName(a&65535)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let l=this.tokens.getActions(e);for(let c=0;ci?t.push(p):n.push(p)}return!1}advanceFully(e,t){let n=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>n)return ug(e,t),!0}}runRecovery(e,t,n){let i=null,r=!1;for(let o=0;o ":"";if(a.deadEnd&&(r||(r=!0,a.restart(),Rn&&console.log(h+this.stackID(a)+" (restarted)"),this.advanceFully(a,n))))continue;let u=a.split(),f=h;for(let d=0;u.forceReduce()&&d<10&&(Rn&&console.log(f+this.stackID(u)+" (via force-reduce)"),!this.advanceFully(u,n));d++)Rn&&(f=this.stackID(u)+" -> ");for(let d of a.recoverByInsert(l))Rn&&console.log(h+this.stackID(d)+" (via recover-insert)"),this.advanceFully(d,n);this.stream.end>a.pos?(c==a.pos&&(c++,l=0),a.recoverByDelete(l,c),Rn&&console.log(h+this.stackID(a)+` (via recover-delete ${this.parser.getName(l)})`),ug(a,n)):(!i||i.scores;class mC{constructor(e){this.start=e.start,this.shift=e.shift||bh,this.reduce=e.reduce||bh,this.reuse=e.reuse||bh,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}}class jl extends D0{constructor(e){if(super(),this.wrappers=[],e.version!=14)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let t=e.nodeNames.split(" ");this.minRepeatTerm=t.length;for(let a=0;ae.topRules[a][1]),i=[];for(let a=0;a=0)r(h,l,a[c++]);else{let u=a[c+-h];for(let f=-h;f>0;f--)r(a[c++],l,u);c++}}}this.nodeSet=new Wf(t.map((a,l)=>Tn.define({name:l>=this.minRepeatTerm?void 0:a,id:l,props:i[l],top:n.indexOf(l)>-1,error:l==0,skipped:e.skippedNodes&&e.skippedNodes.indexOf(l)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=R0;let o=Co(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let a=0;atypeof a=="number"?new Qr(o,a):a),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,n){let i=new dC(this,e,t,n);for(let r of this.wrappers)i=r(i,e,t,n);return i}getGoto(e,t,n=!1){let i=this.goto;if(t>=i[0])return-1;for(let r=i[t+1];;){let o=i[r++],a=o&1,l=i[r++];if(a&&n)return l;for(let c=r+(o>>1);r0}validAction(e,t){return!!this.allActions(e,n=>n==t?!0:null)}allActions(e,t){let n=this.stateSlot(e,4),i=n?t(n):void 0;for(let r=this.stateSlot(e,1);i==null;r+=3){if(this.data[r]==65535)if(this.data[r+1]==1)r=Ni(this.data,r+2);else break;i=t(Ni(this.data,r+1))}return i}nextStates(e){let t=[];for(let n=this.stateSlot(e,1);;n+=3){if(this.data[n]==65535)if(this.data[n+1]==1)n=Ni(this.data,n+2);else break;if(!(this.data[n+2]&1)){let i=this.data[n+1];t.some((r,o)=>o&1&&r==i)||t.push(this.data[n],i)}}return t}configure(e){let t=Object.assign(Object.create(jl.prototype),this);if(e.props&&(t.nodeSet=this.nodeSet.extend(...e.props)),e.top){let n=this.topRules[e.top];if(!n)throw new RangeError(`Invalid top rule name ${e.top}`);t.top=n}return e.tokenizers&&(t.tokenizers=this.tokenizers.map(n=>{let i=e.tokenizers.find(r=>r.from==n);return i?i.to:n})),e.specializers&&(t.specializers=this.specializers.slice(),t.specializerSpecs=this.specializerSpecs.map((n,i)=>{let r=e.specializers.find(a=>a.from==n.external);if(!r)return n;let o=Object.assign(Object.assign({},n),{external:r.to});return t.specializers[i]=fg(o),o})),e.contextTracker&&(t.context=e.contextTracker),e.dialect&&(t.dialect=this.parseDialect(e.dialect)),e.strict!=null&&(t.strict=e.strict),e.wrap&&(t.wrappers=t.wrappers.concat(e.wrap)),e.bufferLength!=null&&(t.bufferLength=e.bufferLength),t}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return t==null?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),n=t.map(()=>!1);if(e)for(let r of e.split(" ")){let o=t.indexOf(r);o>=0&&(n[o]=!0)}let i=null;for(let r=0;rn)&&t.p.parser.stateFlag(t.state,2)&&(!e||e.scores.external(t,n)<<1|e}return s.get}const OC=314,_C=315,dg=1,xC=2,yC=3,SC=4,vC=316,bC=318,MC=319,wC=5,TC=6,EC=0,lf=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],O_=125,AC=59,cf=47,PC=42,RC=43,CC=45,kC=60,LC=44,DC=63,IC=46,UC=91,NC=new mC({start:!1,shift(s,e){return e==wC||e==TC||e==bC?s:e==MC},strict:!1}),QC=new ua((s,e)=>{let{next:t}=s;(t==O_||t==-1||e.context)&&s.acceptToken(vC)},{contextual:!0,fallback:!0}),BC=new ua((s,e)=>{let{next:t}=s,n;lf.indexOf(t)>-1||t==cf&&((n=s.peek(1))==cf||n==PC)||t!=O_&&t!=AC&&t!=-1&&!e.context&&s.acceptToken(OC)},{contextual:!0}),FC=new ua((s,e)=>{s.next==UC&&!e.context&&s.acceptToken(_C)},{contextual:!0}),$C=new ua((s,e)=>{let{next:t}=s;if(t==RC||t==CC){if(s.advance(),t==s.next){s.advance();let n=!e.context&&e.canShift(dg);s.acceptToken(n?dg:xC)}}else t==DC&&s.peek(1)==IC&&(s.advance(),s.advance(),(s.next<48||s.next>57)&&s.acceptToken(yC))},{contextual:!0});function Mh(s,e){return s>=65&&s<=90||s>=97&&s<=122||s==95||s>=192||!e&&s>=48&&s<=57}const VC=new ua((s,e)=>{if(s.next!=kC||!e.dialectEnabled(EC)||(s.advance(),s.next==cf))return;let t=0;for(;lf.indexOf(s.next)>-1;)s.advance(),t++;if(Mh(s.next,!0)){for(s.advance(),t++;Mh(s.next,!1);)s.advance(),t++;for(;lf.indexOf(s.next)>-1;)s.advance(),t++;if(s.next==LC)return;for(let n=0;;n++){if(n==7){if(!Mh(s.next,!0))return;break}if(s.next!="extends".charCodeAt(n))break;s.advance(),t++}}s.acceptToken(SC,-t)}),zC=I0({"get set async static":D.modifier,"for while do if else switch try catch finally return throw break continue default case":D.controlKeyword,"in of await yield void typeof delete instanceof":D.operatorKeyword,"let var const using function class extends":D.definitionKeyword,"import export from":D.moduleKeyword,"with debugger as new":D.keyword,TemplateString:D.special(D.string),super:D.atom,BooleanLiteral:D.bool,this:D.self,null:D.null,Star:D.modifier,VariableName:D.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":D.function(D.variableName),VariableDefinition:D.definition(D.variableName),Label:D.labelName,PropertyName:D.propertyName,PrivatePropertyName:D.special(D.propertyName),"CallExpression/MemberExpression/PropertyName":D.function(D.propertyName),"FunctionDeclaration/VariableDefinition":D.function(D.definition(D.variableName)),"ClassDeclaration/VariableDefinition":D.definition(D.className),"NewExpression/VariableName":D.className,PropertyDefinition:D.definition(D.propertyName),PrivatePropertyDefinition:D.definition(D.special(D.propertyName)),UpdateOp:D.updateOperator,"LineComment Hashbang":D.lineComment,BlockComment:D.blockComment,Number:D.number,String:D.string,Escape:D.escape,ArithOp:D.arithmeticOperator,LogicOp:D.logicOperator,BitOp:D.bitwiseOperator,CompareOp:D.compareOperator,RegExp:D.regexp,Equals:D.definitionOperator,Arrow:D.function(D.punctuation),": Spread":D.punctuation,"( )":D.paren,"[ ]":D.squareBracket,"{ }":D.brace,"InterpolationStart InterpolationEnd":D.special(D.brace),".":D.derefOperator,", ;":D.separator,"@":D.meta,TypeName:D.typeName,TypeDefinition:D.definition(D.typeName),"type enum interface implements namespace module declare":D.definitionKeyword,"abstract global Privacy readonly override":D.modifier,"is keyof unique infer asserts":D.operatorKeyword,JSXAttributeValue:D.attributeValue,JSXText:D.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":D.angleBracket,"JSXIdentifier JSXNameSpacedName":D.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":D.attributeName,"JSXBuiltin/JSXIdentifier":D.standard(D.tagName)}),ZC={__proto__:null,export:20,as:25,from:33,default:36,async:41,function:42,const:52,extends:56,this:60,true:68,false:68,null:80,void:84,typeof:88,super:104,new:138,delete:150,yield:159,await:163,class:168,public:231,private:231,protected:231,readonly:233,instanceof:252,satisfies:255,in:256,import:290,keyof:347,unique:351,infer:357,asserts:393,is:395,abstract:415,implements:417,type:419,let:422,var:424,using:427,interface:433,enum:437,namespace:443,module:445,declare:449,global:453,for:472,of:481,while:484,with:488,do:492,if:496,else:498,switch:502,case:508,try:514,catch:518,finally:522,return:526,throw:530,break:534,continue:538,debugger:542},GC={__proto__:null,async:125,get:127,set:129,declare:191,public:193,private:193,protected:193,static:195,abstract:197,override:199,readonly:205,accessor:207,new:399},XC={__proto__:null,"<":189},HC=jl.deserialize({version:14,states:"$EOQ%TQlOOO%[QlOOO'_QpOOP(lO`OOO*zQ!0MxO'#CiO+RO#tO'#CjO+aO&jO'#CjO+oO#@ItO'#D_O.QQlO'#DeO.bQlO'#DpO%[QlO'#DxO0fQlO'#EQOOQ!0Lf'#EY'#EYO1PQ`O'#EVOOQO'#En'#EnOOQO'#Ij'#IjO1XQ`O'#GrO1dQ`O'#EmO1iQ`O'#EmO3hQ!0MxO'#JpO6[Q!0MxO'#JqO6uQ`O'#F[O6zQ,UO'#FsOOQ!0Lf'#Fe'#FeO7VO7dO'#FeO7eQMhO'#F{O9UQ`O'#FzOOQ!0Lf'#Jq'#JqOOQ!0Lb'#Jp'#JpO9ZQ`O'#GvOOQ['#K]'#K]O9fQ`O'#IWO9kQ!0LrO'#IXOOQ['#J^'#J^OOQ['#I]'#I]Q`QlOOQ`QlOOO9sQ!L^O'#DtO9zQlO'#D|O:RQlO'#EOO9aQ`O'#GrO:YQMhO'#CoO:hQ`O'#ElO:sQ`O'#EwO:xQMhO'#FdO;gQ`O'#GrOOQO'#K^'#K^O;lQ`O'#K^O;zQ`O'#GzO;zQ`O'#G{O;zQ`O'#G}O9aQ`O'#HQOYQ`O'#CeO>jQ`O'#HaO>rQ`O'#HgO>rQ`O'#HiO`QlO'#HkO>rQ`O'#HmO>rQ`O'#HpO>wQ`O'#HvO>|Q!0LsO'#H|O%[QlO'#IOO?XQ!0LsO'#IQO?dQ!0LsO'#ISO9kQ!0LrO'#IUO?oQ!0MxO'#CiO@qQpO'#DjQOQ`OOO%[QlO'#EOOAXQ`O'#ERO:YQMhO'#ElOAdQ`O'#ElOAoQ!bO'#FdOOQ['#Cg'#CgOOQ!0Lb'#Do'#DoOOQ!0Lb'#Jt'#JtO%[QlO'#JtOOQO'#Jw'#JwOOQO'#If'#IfOBoQpO'#EeOOQ!0Lb'#Ed'#EdOOQ!0Lb'#J{'#J{OCkQ!0MSO'#EeOCuQpO'#EUOOQO'#Jv'#JvODZQpO'#JwOEhQpO'#EUOCuQpO'#EePEuO&2DjO'#CbPOOO)CD{)CD{OOOO'#I^'#I^OFQO#tO,59UOOQ!0Lh,59U,59UOOOO'#I_'#I_OF`O&jO,59UOFnQ!L^O'#DaOOOO'#Ia'#IaOFuO#@ItO,59yOOQ!0Lf,59y,59yOGTQlO'#IbOGhQ`O'#JrOIgQ!fO'#JrO+}QlO'#JrOInQ`O,5:POJUQ`O'#EnOJcQ`O'#KROJnQ`O'#KQOJnQ`O'#KQOJvQ`O,5;[OJ{Q`O'#KPOOQ!0Ln,5:[,5:[OKSQlO,5:[OMQQ!0MxO,5:dOMqQ`O,5:lON[Q!0LrO'#KOONcQ`O'#J}O9ZQ`O'#J}ONwQ`O'#J}O! PQ`O,5;ZO! UQ`O'#J}O!#ZQ!fO'#JqOOQ!0Lh'#Ci'#CiO%[QlO'#EQO!#yQ!fO,5:qOOQS'#Jx'#JxOOQO-ErOOQ['#Jf'#JfOOQ[,5>s,5>sOOQ[-EbQ!0MxO,5:hO%[QlO,5:hO!@xQ!0MxO,5:jOOQO,5@x,5@xO!AiQMhO,5=^O!AwQ!0LrO'#JgO9UQ`O'#JgO!BYQ!0LrO,59ZO!BeQpO,59ZO!BmQMhO,59ZO:YQMhO,59ZO!BxQ`O,5;XO!CQQ`O'#H`O!CfQ`O'#KbO%[QlO,5;|O!9lQpO,5wQ`O'#HVO9aQ`O'#HXO!D}Q`O'#HXO:YQMhO'#HZO!ESQ`O'#HZOOQ[,5=o,5=oO!EXQ`O'#H[O!EjQ`O'#CoO!EoQ`O,59PO!EyQ`O,59PO!HOQlO,59POOQ[,59P,59PO!H`Q!0LrO,59PO%[QlO,59PO!JkQlO'#HcOOQ['#Hd'#HdOOQ['#He'#HeO`QlO,5={O!KRQ`O,5={O`QlO,5>RO`QlO,5>TO!KWQ`O,5>VO`QlO,5>XO!K]Q`O,5>[O!KbQlO,5>bOOQ[,5>h,5>hO%[QlO,5>hO9kQ!0LrO,5>jOOQ[,5>l,5>lO# lQ`O,5>lOOQ[,5>n,5>nO# lQ`O,5>nOOQ[,5>p,5>pO#!YQpO'#D]O%[QlO'#JtO#!{QpO'#JtO##VQpO'#DkO##hQpO'#DkO#%yQlO'#DkO#&QQ`O'#JsO#&YQ`O,5:UO#&_Q`O'#ErO#&mQ`O'#KSO#&uQ`O,5;]O#&zQpO'#DkO#'XQpO'#ETOOQ!0Lf,5:m,5:mO%[QlO,5:mO#'`Q`O,5:mO>wQ`O,5;WO!BeQpO,5;WO!BmQMhO,5;WO:YQMhO,5;WO#'hQ`O,5@`O#'mQ07dO,5:qOOQO-E|O+}QlO,5>|OOQO,5?S,5?SO#*uQlO'#IbOOQO-E<`-E<`O#+SQ`O,5@^O#+[Q!fO,5@^O#+cQ`O,5@lOOQ!0Lf1G/k1G/kO%[QlO,5@mO#+kQ`O'#IhOOQO-ErQ`O1G3qO$4rQlO1G3sO$8vQlO'#HrOOQ[1G3v1G3vO$9TQ`O'#HxO>wQ`O'#HzOOQ[1G3|1G3|O$9]QlO1G3|O9kQ!0LrO1G4SOOQ[1G4U1G4UOOQ!0Lb'#G^'#G^O9kQ!0LrO1G4WO9kQ!0LrO1G4YO$=dQ`O,5@`O!(yQlO,5;^O9ZQ`O,5;^O>wQ`O,5:VO!(yQlO,5:VO!BeQpO,5:VO$=iQ?MtO,5:VOOQO,5;^,5;^O$=sQpO'#IcO$>ZQ`O,5@_OOQ!0Lf1G/p1G/pO$>cQpO'#IiO$>mQ`O,5@nOOQ!0Lb1G0w1G0wO##hQpO,5:VOOQO'#Ie'#IeO$>uQpO,5:oOOQ!0Ln,5:o,5:oO#'cQ`O1G0XOOQ!0Lf1G0X1G0XO%[QlO1G0XOOQ!0Lf1G0r1G0rO>wQ`O1G0rO!BeQpO1G0rO!BmQMhO1G0rOOQ!0Lb1G5z1G5zO!BYQ!0LrO1G0[OOQO1G0k1G0kO%[QlO1G0kO$>|Q!0LrO1G0kO$?XQ!0LrO1G0kO!BeQpO1G0[OCuQpO1G0[O$?gQ!0LrO1G0kOOQO1G0[1G0[O$?{Q!0MxO1G0kPOOO-E|O$@iQ`O1G5xO$@qQ`O1G6WO$@yQ!fO1G6XO9ZQ`O,5?SO$ATQ!0MxO1G6UO%[QlO1G6UO$AeQ!0LrO1G6UO$AvQ`O1G6TO$AvQ`O1G6TO9ZQ`O1G6TO$BOQ`O,5?VO9ZQ`O,5?VOOQO,5?V,5?VO$BdQ`O,5?VO$)iQ`O,5?VOOQO-E^OOQ[,5>^,5>^O%[QlO'#HsO%=zQ`O'#HuOOQ[,5>d,5>dO9ZQ`O,5>dOOQ[,5>f,5>fOOQ[7+)h7+)hOOQ[7+)n7+)nOOQ[7+)r7+)rOOQ[7+)t7+)tO%>PQpO1G5zO%>kQ?MtO1G0xO%>uQ`O1G0xOOQO1G/q1G/qO%?QQ?MtO1G/qO>wQ`O1G/qO!(yQlO'#DkOOQO,5>},5>}OOQO-EwQ`O7+&^O!BeQpO7+&^OOQO7+%v7+%vO$?{Q!0MxO7+&VOOQO7+&V7+&VO%[QlO7+&VO%?[Q!0LrO7+&VO!BYQ!0LrO7+%vO!BeQpO7+%vO%?gQ!0LrO7+&VO%?uQ!0MxO7++pO%[QlO7++pO%@VQ`O7++oO%@VQ`O7++oOOQO1G4q1G4qO9ZQ`O1G4qO%@_Q`O1G4qOOQS7+%{7+%{O#'cQ`O<_OOQ[,5>a,5>aO&=aQ`O1G4OO9ZQ`O7+&dO!(yQlO7+&dOOQO7+%]7+%]O&=fQ?MtO1G6XO>wQ`O7+%]OOQ!0Lf<wQ`O<]Q`O<= ZOOQO7+*]7+*]O9ZQ`O7+*]OOQ[ANAjANAjO&>eQ!fOANAjO!&iQMhOANAjO#'cQ`OANAjO4UQ!fOANAjO&>lQ`OANAjO%[QlOANAjO&>tQ!0MzO7+'yO&AVQ!0MzO,5?_O&CbQ!0MzO,5?aO&EmQ!0MzO7+'{O&HOQ!fO1G4jO&HYQ?MtO7+&_O&J^Q?MvO,5=WO&LeQ?MvO,5=YO&LuQ?MvO,5=WO&MVQ?MvO,5=YO&MgQ?MvO,59sO' mQ?MvO,5wQ`O7+)jO'-]Q`O<|AN>|O%[QlOAN?]OOQO<PPPP!>XHwPPPPPPPPPP!AhP!BuPPHw!DWPHwPHwHwHwHwHwPHw!EjP!HtP!KzP!LO!LY!L^!L^P!HqP!Lb!LbP# hP# lHwPHw# r#$wCV@yP@yP@y@yP#&U@y@y#(h@y#+`@y#-l@y@y#.[#0p#0p#0u#1O#0p#1ZPP#0pP@y#1s@y#5r@y@y6aPPP#9wPPP#:b#:bP#:bP#:x#:bPP#;OP#:uP#:u#;c#:u#;}#R#>X#>c#>i#>s#>y#?Z#?a#@R#@e#@k#@q#AP#Af#CZ#Ci#Cp#E[#Ej#G[#Gj#Gp#Gv#G|#HW#H^#Hd#Hn#IQ#IWPPPPPPPPPPP#I^PPPPPPP#JR#MY#Nr#Ny$ RPPP$&mP$&v$)o$0Y$0]$0`$1_$1b$1i$1qP$1w$1zP$2h$2l$3d$4r$4w$5_PP$5d$5j$5n$5q$5u$5y$6u$7^$7u$7y$7|$8P$8V$8Y$8^$8bR!|RoqOXst!Z#d%l&p&r&s&u,n,s2S2VY!vQ'^-`1g5qQ%svQ%{yQ&S|Q&h!VS'U!e-WQ'd!iS'j!r!yU*h$|*X*lQ+l%|Q+y&UQ,_&bQ-^']Q-h'eQ-p'kQ0U*nQ1q,`R < TypeParamList const TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewTarget new NewExpression ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression TypeArgList CompareOp < declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression InstantiationExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast < ArrowFunction TypeParamList SequenceExpression InstantiationExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate asserts is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:378,context:NC,nodeProps:[["isolate",-8,5,6,14,35,37,49,51,53,""],["group",-26,9,17,19,66,206,210,214,215,217,220,223,233,235,241,243,245,247,250,256,262,264,266,268,270,272,273,"Statement",-34,13,14,30,33,34,40,49,52,53,55,60,68,70,74,78,80,82,83,108,109,118,119,135,138,140,141,142,143,144,146,147,166,168,170,"Expression",-23,29,31,35,39,41,43,172,174,176,177,179,180,181,183,184,185,187,188,189,200,202,204,205,"Type",-3,86,101,107,"ClassItem"],["openedBy",23,"<",36,"InterpolationStart",54,"[",58,"{",71,"(",159,"JSXStartCloseTag"],["closedBy",-2,24,167,">",38,"InterpolationEnd",48,"]",59,"}",72,")",164,"JSXEndTag"]],propSources:[zC],skippedNodes:[0,5,6,276],repeatNodeCount:37,tokenData:"$Fq07[R!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#:O!R![#<_![!]#I_!]!^#Jk!^!_#Ku!_!`$![!`!a$$v!a!b$*T!b!c$,r!c!}Er!}#O$-|#O#P$/W#P#Q$4o#Q#R$5y#R#SEr#S#T$7W#T#o$8b#o#p$x#r#s$@U#s$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$I|Er$I|$I}$Dk$I}$JO$Dk$JO$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr(n%d_$h&j(Up(X!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$h&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$h&j(X!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU(X!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$h&j(UpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rp)wU(UpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX(Up(X!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z07[+rq$h&j(Up(X!b'z0/lOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;'S%Z;'S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z07[.ST(V#S$h&j'{0/lO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c07[.n_$h&j(Up(X!b'{0/lOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)3p/x`$h&j!n),Q(Up(X!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW1V`#u(Ch$h&j(Up(X!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW2d_#u(Ch$h&j(Up(X!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'At3l_(T':f$h&j(X!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k(^4r_$h&j(X!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k&z5vX$h&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q&z6jT$c`$h&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c`6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y`7bO$c``7eP;=`<%l6y&z7kP;=`<%l5q(^7w]$c`$h&j(X!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!r8uZ(X!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p!r9oU$c`(X!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!r:UP;=`<%l8p(^:[P;=`<%l4k%9[:hh$h&j(Up(X!bOY%ZYZ&cZq%Zqr`#P#o`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXWS$h&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSWSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWWS(X!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]WS$h&j(UpOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWWS(UpOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYWS(Up(X!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%l^!Q^$h&j!V7`OY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@c!_!}!=y!}#O!CW#O#P!Dy#P#o!=y#o#p!@c#p;'S!=y;'S;=`!Ek<%lO!=y|#X#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#k!>|#k#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&c7`!@hX!V7`OY!@cZ!P!@c!P!Q!AT!Q!}!@c!}#O!Ar#O#P!Bq#P;'S!@c;'S;=`!CQ<%lO!@c7`!AYW!V7`#W#X!AT#Z#[!AT#]#^!AT#a#b!AT#g#h!AT#i#j!AT#j#k!AT#m#n!AT7`!AuVOY!ArZ#O!Ar#O#P!B[#P#Q!@c#Q;'S!Ar;'S;=`!Bk<%lO!Ar7`!B_SOY!ArZ;'S!Ar;'S;=`!Bk<%lO!Ar7`!BnP;=`<%l!Ar7`!BtSOY!@cZ;'S!@c;'S;=`!CQ<%lO!@c7`!CTP;=`<%l!@c^!Ezl$h&j(X!b!V7`OY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#W&}#W#X!Eq#X#Z&}#Z#[!Eq#[#]&}#]#^!Eq#^#a&}#a#b!Eq#b#g&}#g#h!Eq#h#i&}#i#j!Eq#j#k!Eq#k#m&}#m#n!Eq#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}8r!GyZ(X!b!V7`OY!GrZw!Grwx!@cx!P!Gr!P!Q!Hl!Q!}!Gr!}#O!JU#O#P!Bq#P;'S!Gr;'S;=`!J|<%lO!Gr8r!Hse(X!b!V7`OY'}Zw'}x#O'}#P#W'}#W#X!Hl#X#Z'}#Z#[!Hl#[#]'}#]#^!Hl#^#a'}#a#b!Hl#b#g'}#g#h!Hl#h#i'}#i#j!Hl#j#k!Hl#k#m'}#m#n!Hl#n;'S'};'S;=`(f<%lO'}8r!JZX(X!bOY!JUZw!JUwx!Arx#O!JU#O#P!B[#P#Q!Gr#Q;'S!JU;'S;=`!Jv<%lO!JU8r!JyP;=`<%l!JU8r!KPP;=`<%l!Gr>^!KZ^$h&j(X!bOY!KSYZ&cZw!KSwx!CWx!^!KS!^!_!JU!_#O!KS#O#P!DR#P#Q!^!LYP;=`<%l!KS>^!L`P;=`<%l!_#c#d#Bq#d#l%Z#l#m#Es#m#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#>j_$h&j(Up(X!bq'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#?rd$h&j(Up(X!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#A]f$h&j(Up(X!bq'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Bzc$h&j(Up(X!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Dbe$h&j(Up(X!bq'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#E|g$h&j(Up(X!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Gpi$h&j(Up(X!bq'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z*)x#Il_!e$b$h&j#})Lv(Up(X!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)[#Jv_al$h&j(Up(X!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z04f#LS^h#)`#P-v$?V_![(CdtBr$h&j(Up(X!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z?O$@a_!o7`$h&j(Up(X!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[$Aq|$h&j(Up(X!b'z0/l$[#t(R,2j(c$I[OX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr07[$D|k$h&j(Up(X!b'{0/l$[#t(R,2j(c$I[OY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr",tokenizers:[BC,FC,$C,VC,2,3,4,5,6,7,8,9,10,11,12,13,14,QC,new af("$S~RRtu[#O#Pg#S#T#|~_P#o#pb~gOv~~jVO#i!P#i#j!U#j#l!P#l#m!q#m;'S!P;'S;=`#v<%lO!P~!UO!S~~!XS!Q![!e!c!i!e#T#Z!e#o#p#Z~!hR!Q![!q!c!i!q#T#Z!q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO(a~~",141,338),new af("j~RQYZXz{^~^O(O~~aP!P!Qd~iO(P~~",25,321)],topRules:{Script:[0,7],SingleExpression:[1,274],SingleClassItem:[2,275]},dialects:{jsx:0,ts:15091},dynamicPrecedences:{78:1,80:1,92:1,168:1,198:1},specialized:[{term:325,get:s=>ZC[s]||-1},{term:341,get:s=>GC[s]||-1},{term:93,get:s=>XC[s]||-1}],tokenPrec:15116});function pg(s){let e=Object.keys(s).join(""),t=/\w/.test(e);return t&&(e=e.replace(/\w/g,"")),`[${t?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function WC(s){let e=Object.create(null),t=Object.create(null);for(let{label:i}of s){e[i[0]]=!0;for(let r=1;rtypeof i=="string"?{label:i}:i),[t,n]=e.every(i=>/^\w+$/.test(i.label))?[/\w*$/,/\w+$/]:WC(e);return i=>{let r=i.matchBefore(n);return r||i.explicit?{from:r?r.from:i.pos,options:e,validFor:t}:null}}function qC(s,e){return t=>{for(let n=Un(t.state).resolveInner(t.pos,-1);n;n=n.parent){if(s.indexOf(n.name)>-1)return null;if(n.type.isTop)break}return e(t)}}const YC=ir.define(),KC=Qe.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box",whiteSpace:"pre-line"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class JC{constructor(e,t,n,i){this.field=e,this.line=t,this.from=n,this.to=i}}class id{constructor(e,t,n){this.field=e,this.from=t,this.to=n}map(e){let t=e.mapPos(this.from,-1,pn.TrackDel),n=e.mapPos(this.to,1,pn.TrackDel);return t==null||n==null?null:new id(this.field,t,n)}}class sd{constructor(e,t){this.lines=e,this.fieldPositions=t}instantiate(e,t){let n=[],i=[t],r=e.doc.lineAt(t),o=/^\s*/.exec(r.text)[0];for(let l of this.lines){if(n.length){let c=o,h=/^\t*/.exec(l)[0].length;for(let u=0;unew id(l.field,i[l.line]+l.from,i[l.line]+l.to));return{text:n,ranges:a}}static parse(e){let t=[],n=[],i=[],r;for(let o of e.split(/\r\n?|\n/)){for(;r=/[#$]\{(?:(\d+)(?::([^}]*))?|((?:\\[{}]|[^}])*))\}/.exec(o);){let a=r[1]?+r[1]:null,l=r[2]||r[3]||"",c=-1,h=l.replace(/\\[{}]/g,u=>u[1]);for(let u=0;u=c&&f.field++}i.push(new JC(c,n.length,r.index,r.index+h.length)),o=o.slice(0,r.index)+l+o.slice(r.index+r[0].length)}o=o.replace(/\\([{}])/g,(a,l,c)=>{for(let h of i)h.line==n.length&&h.from>c&&(h.from--,h.to--);return l}),n.push(o)}return new sd(n,i)}}let e2=It.widget({widget:new class extends lc{toDOM(){let s=document.createElement("span");return s.className="cm-snippetFieldPosition",s}ignoreEvent(){return!1}}}),t2=It.mark({class:"cm-snippetField"});class ao{constructor(e,t){this.ranges=e,this.active=t,this.deco=It.set(e.map(n=>(n.from==n.to?e2:t2).range(n.from,n.to)))}map(e){let t=[];for(let n of this.ranges){let i=n.map(e);if(!i)return null;t.push(i)}return new ao(t,this.active)}selectionInsideField(e){return e.ranges.every(t=>this.ranges.some(n=>n.field==this.active&&n.from<=t.from&&n.to>=t.to))}}const fa=Ct.define({map(s,e){return s&&s.map(e)}}),n2=Ct.define(),na=vs.define({create(){return null},update(s,e){for(let t of e.effects){if(t.is(fa))return t.value;if(t.is(n2)&&s)return new ao(s.ranges,t.value)}return s&&e.docChanged&&(s=s.map(e.changes)),s&&e.selection&&!s.selectionInsideField(e.selection)&&(s=null),s},provide:s=>Qe.decorations.from(s,e=>e?e.deco:It.none)});function rd(s,e){return oe.create(s.filter(t=>t.field==e).map(t=>oe.range(t.from,t.to)))}function i2(s){let e=sd.parse(s);return(t,n,i,r)=>{let{text:o,ranges:a}=e.instantiate(t.state,i),{main:l}=t.state.selection,c={changes:{from:i,to:r==l.from?l.to:r,insert:it.of(o)},scrollIntoView:!0,annotations:n?[YC.of(n),tn.userEvent.of("input.complete")]:void 0};if(a.length&&(c.selection=rd(a,0)),a.some(h=>h.field>0)){let h=new ao(a,0),u=c.effects=[fa.of(h)];t.state.field(na,!1)===void 0&&u.push(Ct.appendConfig.of([na,l2,c2,KC]))}t.dispatch(t.state.update(c))}}function __(s){return({state:e,dispatch:t})=>{let n=e.field(na,!1);if(!n||s<0&&n.active==0)return!1;let i=n.active+s,r=s>0&&!n.ranges.some(o=>o.field==i+s);return t(e.update({selection:rd(n.ranges,i),effects:fa.of(r?null:new ao(n.ranges,i)),scrollIntoView:!0})),!0}}const s2=({state:s,dispatch:e})=>s.field(na,!1)?(e(s.update({effects:fa.of(null)})),!0):!1,r2=__(1),o2=__(-1),a2=[{key:"Tab",run:r2,shift:o2},{key:"Escape",run:s2}],mg=Pe.define({combine(s){return s.length?s[0]:a2}}),l2=ic.highest(Hf.compute([mg],s=>s.facet(mg)));function vn(s,e){return Object.assign(Object.assign({},e),{apply:i2(s)})}const c2=Qe.domEventHandlers({mousedown(s,e){let t=e.state.field(na,!1),n;if(!t||(n=e.posAtCoords({x:s.clientX,y:s.clientY}))==null)return!1;let i=t.ranges.find(r=>r.from<=n&&r.to>=n);return!i||i.field==t.active?!1:(e.dispatch({selection:rd(t.ranges,i.field),effects:fa.of(t.ranges.some(r=>r.field>i.field)?new ao(t.ranges,i.field):null),scrollIntoView:!0}),!0)}}),x_=new class extends qs{};x_.startSide=1;x_.endSide=-1;const y_=[vn("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),vn("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),vn("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),vn("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),vn("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),vn(`try { - \${} -} catch (\${error}) { - \${} -}`,{label:"try",detail:"/ catch block",type:"keyword"}),vn("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),vn(`if (\${}) { - \${} -} else { - \${} -}`,{label:"if",detail:"/ else block",type:"keyword"}),vn(`class \${name} { - constructor(\${params}) { - \${} - } -}`,{label:"class",detail:"definition",type:"keyword"}),vn('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),vn('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],h2=y_.concat([vn("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),vn("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),vn("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),gg=new TP,S_=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function Mo(s){return(e,t)=>{let n=e.node.getChild("VariableDefinition");return n&&t(n,s),!0}}const u2=["FunctionDeclaration"],f2={FunctionDeclaration:Mo("function"),ClassDeclaration:Mo("class"),ClassExpression:()=>!0,EnumDeclaration:Mo("constant"),TypeAliasDeclaration:Mo("type"),NamespaceDeclaration:Mo("namespace"),VariableDefinition(s,e){s.matchContext(u2)||e(s,"variable")},TypeDefinition(s,e){e(s,"type")},__proto__:null};function v_(s,e){let t=gg.get(e);if(t)return t;let n=[],i=!0;function r(o,a){let l=s.sliceString(o.from,o.to);n.push({label:l,type:a})}return e.cursor($t.IncludeAnonymous).iterate(o=>{if(i)i=!1;else if(o.name){let a=f2[o.name];if(a&&a(o,r)||S_.has(o.name))return!1}else if(o.to-o.from>8192){for(let a of v_(s,o.node))n.push(a);return!1}}),gg.set(e,n),n}const Og=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,b_=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function d2(s){let e=Un(s.state).resolveInner(s.pos,-1);if(b_.indexOf(e.name)>-1)return null;let t=e.name=="VariableName"||e.to-e.from<20&&Og.test(s.state.sliceDoc(e.from,e.to));if(!t&&!s.explicit)return null;let n=[];for(let i=e;i;i=i.parent)S_.has(i.name)&&(n=n.concat(v_(s.state.doc,i)));return{options:n,from:t?e.from:s.pos,validFor:Og}}const Gs=zl.define({name:"javascript",parser:HC.configure({props:[$0.add({IfStatement:xh({except:/^\s*({|else\b)/}),TryStatement:xh({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:HP,SwitchBody:s=>{let e=s.textAfter,t=/^\s*\}/.test(e),n=/^\s*(case|default)\b/.test(e);return s.baseIndent+(t?0:n?1:2)*s.unit},Block:XP({closing:"}"}),ArrowFunction:s=>s.baseIndent+s.unit,"TemplateString BlockComment":()=>null,"Statement Property":xh({except:/^{/}),JSXElement(s){let e=/^\s*<\//.test(s.textAfter);return s.lineIndent(s.node.from)+(e?0:s.unit)},JSXEscape(s){let e=/\s*\}/.test(s.textAfter);return s.lineIndent(s.node.from)+(e?0:s.unit)},"JSXOpenTag JSXSelfClosingTag"(s){return s.column(s.node.from)+s.unit}}),WP.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":jP,BlockComment(s){return{from:s.from+2,to:s.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),M_={test:s=>/^JSX/.test(s.name),facet:Q0({commentTokens:{block:{open:"{/*",close:"*/}"}}})},p2=Gs.configure({dialect:"ts"},"typescript"),m2=Gs.configure({dialect:"jsx",props:[Kf.add(s=>s.isTop?[M_]:void 0)]}),g2=Gs.configure({dialect:"jsx ts",props:[Kf.add(s=>s.isTop?[M_]:void 0)]},"typescript");let w_=s=>({label:s,type:"keyword"});const T_="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(w_),O2=T_.concat(["declare","implements","private","protected","public"].map(w_));function _2(s={}){let e=s.jsx?s.typescript?g2:m2:s.typescript?p2:Gs,t=s.typescript?h2.concat(O2):y_.concat(T_);return new QP(e,[Gs.data.of({autocomplete:qC(b_,jC(t))}),Gs.data.of({autocomplete:d2}),s.jsx?S2:[]])}function x2(s){for(;;){if(s.name=="JSXOpenTag"||s.name=="JSXSelfClosingTag"||s.name=="JSXFragmentTag")return s;if(s.name=="JSXEscape"||!s.parent)return null;s=s.parent}}function _g(s,e,t=s.length){for(let n=e==null?void 0:e.firstChild;n;n=n.nextSibling)if(n.name=="JSXIdentifier"||n.name=="JSXBuiltin"||n.name=="JSXNamespacedName"||n.name=="JSXMemberExpression")return s.sliceString(n.from,Math.min(n.to,t));return""}const y2=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),S2=Qe.inputHandler.of((s,e,t,n,i)=>{if((y2?s.composing:s.compositionStarted)||s.state.readOnly||e!=t||n!=">"&&n!="/"||!Gs.isActiveAt(s.state,e,-1))return!1;let r=i(),{state:o}=r,a=o.changeByRange(l=>{var c;let{head:h}=l,u=Un(o).resolveInner(h-1,-1),f;if(u.name=="JSXStartTag"&&(u=u.parent),!(o.doc.sliceString(h-1,h)!=n||u.name=="JSXAttributeValue"&&u.to>h)){if(n==">"&&u.name=="JSXFragmentTag")return{range:l,changes:{from:h,insert:""}};if(n=="/"&&u.name=="JSXStartCloseTag"){let d=u.parent,p=d.parent;if(p&&d.from==h-2&&((f=_g(o.doc,p.firstChild,h))||((c=p.firstChild)===null||c===void 0?void 0:c.name)=="JSXFragmentTag")){let O=`${f}>`;return{range:oe.cursor(h+O.length,-1),changes:{from:h,insert:O}}}}else if(n==">"){let d=x2(u);if(d&&d.name=="JSXOpenTag"&&!/^\/?>|^<\//.test(o.doc.sliceString(h,h+2))&&(f=_g(o.doc,d,h)))return{range:l,changes:{from:h,insert:``}}}}return{range:l}});return a.changes.empty?!1:(s.dispatch([r,o.update(a,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),v2="#e5c07b",xg="#e06c75",b2="#56b6c2",M2="#ffffff",wl="#abb2bf",hf="#7d8799",w2="#61afef",T2="#98c379",yg="#d19a66",E2="#c678dd",A2="#21252b",Sg="#2c313a",vg="#282c34",wh="#353a42",P2="#3E4451",bg="#528bff",R2=Qe.theme({"&":{color:wl,backgroundColor:vg},".cm-content":{caretColor:bg},".cm-cursor, .cm-dropCursor":{borderLeftColor:bg},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:P2},".cm-panels":{backgroundColor:A2,color:wl},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:vg,color:hf,border:"none"},".cm-activeLineGutter":{backgroundColor:Sg},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:wh},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:wh,borderBottomColor:wh},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:Sg,color:wl}}},{dark:!0}),E_=ca.define([{tag:D.keyword,color:E2},{tag:[D.name,D.deleted,D.character,D.propertyName,D.macroName],color:xg},{tag:[D.function(D.variableName),D.labelName],color:w2},{tag:[D.color,D.constant(D.name),D.standard(D.name)],color:yg},{tag:[D.definition(D.name),D.separator],color:wl},{tag:[D.typeName,D.className,D.number,D.changed,D.annotation,D.modifier,D.self,D.namespace],color:v2},{tag:[D.operator,D.operatorKeyword,D.url,D.escape,D.regexp,D.link,D.special(D.string)],color:b2},{tag:[D.meta,D.comment],color:hf},{tag:D.strong,fontWeight:"bold"},{tag:D.emphasis,fontStyle:"italic"},{tag:D.strikethrough,textDecoration:"line-through"},{tag:D.link,color:hf,textDecoration:"underline"},{tag:D.heading,fontWeight:"bold",color:xg},{tag:[D.atom,D.bool,D.special(D.variableName)],color:yg},{tag:[D.processingInstruction,D.string,D.inserted],color:T2},{tag:D.invalid,color:M2}]),C2=[R2,Z0(E_)],k2={class:"serial-script"},L2={class:"script-select"},D2={class:"script-editor"},I2={class:"script-name-container"},U2=Wi({__name:"SerialScript",setup(s){const e=El.getInstance(),t=at(e.getScripts()),n=at(e.getCurrentScript()),i=at(n.value.id),r=at(null),o=Yl(),a=p=>{r.value&&r.value.dispatch({changes:{from:0,to:r.value.state.doc.length,insert:p}})},l=p=>{e.setCurrentScript(p),n.value=p,a(p.code),i.value=n.value.id},c=()=>{const p=e.addScript();t.value=e.getScripts(),l(p)},h=p=>{e.removeScript(p),t.value=e.getScripts(),t.value.length==0&&c(),l(t.value[0])},u=async()=>{n.value.isRunning?await e.stopScript():await e.runScript()},f=()=>{const p=t.value.find(O=>O.id===i.value);p&&l(p)},d=()=>{const p=document.getElementById("script-editor-container");if(p){const O=ft.create({doc:n.value.code,extensions:[Hf.of(aC),Z0(o.value?E_:JP),_2(),o.value?C2:[],xP(),Qe.updateListener.of(g=>{g.docChanged&&(n.value.code=g.state.doc.toString())})]});r.value=new Qe({state:O,parent:p})}};return ia(()=>{d()}),Xs(o,()=>{r.value&&(r.value.destroy(),d())}),Xs(t,()=>{e.saveScripts()},{deep:!0}),(p,O)=>{const g=Me("el-option"),m=Me("el-select"),b=Me("Plus"),x=Me("el-icon"),_=Me("el-button"),w=Me("el-button-group"),T=Me("el-input"),E=Me("Compass"),P=Me("el-tooltip");return tt(),Dt("div",k2,[Ae("div",L2,[G(m,{size:"small",modelValue:i.value,"onUpdate:modelValue":O[0]||(O[0]=y=>i.value=y),onChange:f,placeholder:"选择脚本"},{default:te(()=>[(tt(!0),Dt(Ii,null,Ui(t.value,y=>(tt(),kn(g,{key:y.id,label:y.name,value:y.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),G(w,{class:"ms-2",style:{width:"250px"}},{default:te(()=>[G(_,{size:"small",onClick:c},{default:te(()=>[G(x,null,{default:te(()=>[G(b)]),_:1}),O[4]||(O[4]=Et(" 新建 "))]),_:1}),G(_,{size:"small",type:"danger",onClick:O[1]||(O[1]=y=>h(n.value.id))},{default:te(()=>O[5]||(O[5]=[Et("删除")])),_:1})]),_:1})]),Ae("div",D2,[Ae("div",I2,[G(T,{size:"small",modelValue:n.value.name,"onUpdate:modelValue":O[2]||(O[2]=y=>n.value.name=y),placeholder:"脚本名称",class:"script-name-input"},null,8,["modelValue"]),G(_,{type:n.value.isRunning?"success":"primary",size:"small",onClick:O[3]||(O[3]=y=>u()),class:"run-button"},{default:te(()=>[Et(fn(n.value.isRunning?"停止":"运行"),1)]),_:1},8,["type"]),G(P,{effect:"dark",placement:"bottom"},{content:te(()=>O[6]||(O[6]=[Ae("p",null,"可用的API:",-1),Ae("ul",null,[Ae("li",null,"sendText(text) - 发送文本数据"),Ae("li",null,"sendHex(hex) - 发送HEX格式数据"),Ae("li",null,"sleep(ms) - 延时指定毫秒数"),Ae("li",null,"updateIMU({pitch: 1.0, roll: 1.0, yaw: 1.0}); 更新IMU数据")],-1)])),default:te(()=>[G(_,{size:"small",style:{"margin-left":"0"}},{default:te(()=>[G(x,null,{default:te(()=>[G(E)]),_:1})]),_:1})]),_:1})]),O[7]||(O[7]=Ae("div",{id:"script-editor-container",class:"editor-container"},null,-1))])])}}}),N2=ji(U2,[["__scopeId","data-v-f56f7820"]]),Q2={class:"header-content"},B2={class:"header-left"},F2={class:"header-links"},$2=Wi({__name:"App",setup(s){const e=Yl({initialValue:"dark",storage:localStorage}),t=G_(e),n=at(!1),i=()=>{document.fullscreenElement?(document.exitFullscreen(),n.value=!1):(document.documentElement.requestFullscreen(),n.value=!0)};return(r,o)=>{const a=Me("el-button"),l=Me("el-header"),c=Me("el-tab-pane"),h=Me("el-tabs"),u=Me("el-container");return tt(),kn(u,{class:"app-container"},{default:te(()=>[G(l,{class:"app-header"},{default:te(()=>[Ae("div",Q2,[Ae("div",B2,[o[2]||(o[2]=Ae("h1",null,[Ae("a",{href:"https://github.com/qdsang/web-serial",target:"_blank"},"Web Serial")],-1)),G(hx,{class:"header-serial-config"})]),Ae("div",F2,[G(a,{class:"theme-toggle",icon:Ie(e)?"Sunny":"Moon",circle:"",onClick:o[0]||(o[0]=f=>Ie(t)())},null,8,["icon"]),G(a,{class:"fullscreen-toggle",icon:"FullScreen",circle:"",onClick:o[1]||(o[1]=f=>i())}),o[3]||(o[3]=Ae("a",{href:"https://github.com/qdsang/web-serial",target:"_blank"},"Github",-1))])])]),_:1}),G(u,{class:"main-container"},{default:te(()=>[G(Ie(X_),{class:"default-theme"},{default:te(()=>[G(Ie(pd),{size:75,class:"w75"},{default:te(()=>[G(h,{type:"card",class:"lv-card lv-tabs"},{default:te(()=>[G(c,{label:"日志"},{default:te(()=>[G(Tx)]),_:1}),G(c,{label:"图表",lazy:""},{default:te(()=>[G(NT)]),_:1}),G(c,{label:"数据表"},{default:te(()=>[G(ZT)]),_:1})]),_:1})]),_:1}),G(Ie(pd),{size:25,"min-size":10,"max-size":80,class:"w25"},{default:te(()=>[G(h,{type:"card",class:"lv-card lv-tabs"},{default:te(()=>[G(c,{label:"快捷发送"},{default:te(()=>[G(iE)]),_:1}),G(c,{label:"脚本"},{default:te(()=>[G(N2)]),_:1}),G(c,{label:"设置"})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})}}}),V2=ji($2,[["__scopeId","data-v-1d7d755e"]]),mc=Z_(V2),z2=K_();for(const[s,e]of Object.entries(H_))mc.component(s,e);mc.use(z2);mc.use(W_);mc.mount("#app");"serviceWorker"in navigator&&window.addEventListener("load",()=>{navigator.serviceWorker.register("./sw.js").then(s=>{console.log("ServiceWorker registration successful")}).catch(s=>{console.error("ServiceWorker registration failed:",s)})}); diff --git a/assets/three-smIoJFTG.js b/assets/three-smIoJFTG.js new file mode 100644 index 0000000..d07de7f --- /dev/null +++ b/assets/three-smIoJFTG.js @@ -0,0 +1,3827 @@ +function zm(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}/** + * @license + * Copyright 2010-2025 Three.js Authors + * SPDX-License-Identifier: MIT + */const oa="173",Vm={ROTATE:0,DOLLY:1,PAN:2},Hm={ROTATE:0,PAN:1,DOLLY_PAN:2,DOLLY_ROTATE:3},Hl=0,La=1,kl=2,jo=1,Gl=2,sn=3,Sn=0,yt=1,an=2,xn=0,ai=1,Da=2,Ia=3,Ua=4,Wl=5,Nn=100,Xl=101,ql=102,Yl=103,Kl=104,Zl=200,$l=201,jl=202,Jl=203,vs=204,xs=205,Ql=206,ec=207,tc=208,nc=209,ic=210,rc=211,sc=212,ac=213,oc=214,Ms=0,Ss=1,ys=2,ci=3,Es=4,Ts=5,bs=6,As=7,la=0,lc=1,cc=2,Mn=0,hc=1,uc=2,dc=3,fc=4,pc=5,mc=6,gc=7,Na="attached",_c="detached",Jo=300,hi=301,ui=302,ws=303,Rs=304,Cr=306,Cs=1e3,On=1001,Ps=1002,Rt=1003,vc=1004,Vi=1005,Zt=1006,Br=1007,Bn=1008,cn=1009,Qo=1010,el=1011,Ii=1012,ca=1013,zn=1014,Wt=1015,Ni=1016,ha=1017,ua=1018,di=1020,tl=35902,nl=1021,il=1022,Ut=1023,rl=1024,sl=1025,oi=1026,fi=1027,da=1028,fa=1029,al=1030,pa=1031,ma=1033,mr=33776,gr=33777,_r=33778,vr=33779,Ls=35840,Ds=35841,Is=35842,Us=35843,Ns=36196,Fs=37492,Os=37496,Bs=37808,zs=37809,Vs=37810,Hs=37811,ks=37812,Gs=37813,Ws=37814,Xs=37815,qs=37816,Ys=37817,Ks=37818,Zs=37819,$s=37820,js=37821,xr=36492,Js=36494,Qs=36495,ol=36283,ea=36284,ta=36285,na=36286,yr=2300,ia=2301,zr=2302,Fa=2400,Oa=2401,Ba=2402,xc=2500,km=0,Gm=1,Wm=2,Mc=3200,Sc=3201,ga=0,yc=1,_n="",It="srgb",pi="srgb-linear",Er="linear",je="srgb",Gn=7680,za=519,Ec=512,Tc=513,bc=514,ll=515,Ac=516,wc=517,Rc=518,Cc=519,ra=35044,Va="300 es",on=2e3,Tr=2001;class Hn{addEventListener(e,t){this._listeners===void 0&&(this._listeners={});const n=this._listeners;n[e]===void 0&&(n[e]=[]),n[e].indexOf(t)===-1&&n[e].push(t)}hasEventListener(e,t){const n=this._listeners;return n===void 0?!1:n[e]!==void 0&&n[e].indexOf(t)!==-1}removeEventListener(e,t){const n=this._listeners;if(n===void 0)return;const r=n[e];if(r!==void 0){const s=r.indexOf(t);s!==-1&&r.splice(s,1)}}dispatchEvent(e){const t=this._listeners;if(t===void 0)return;const n=t[e.type];if(n!==void 0){e.target=this;const r=n.slice(0);for(let s=0,a=r.length;s>8&255]+mt[i>>16&255]+mt[i>>24&255]+"-"+mt[e&255]+mt[e>>8&255]+"-"+mt[e>>16&15|64]+mt[e>>24&255]+"-"+mt[t&63|128]+mt[t>>8&255]+"-"+mt[t>>16&255]+mt[t>>24&255]+mt[n&255]+mt[n>>8&255]+mt[n>>16&255]+mt[n>>24&255]).toLowerCase()}function Ie(i,e,t){return Math.max(e,Math.min(t,i))}function _a(i,e){return(i%e+e)%e}function Pc(i,e,t,n,r){return n+(i-e)*(r-n)/(t-e)}function Lc(i,e,t){return i!==e?(t-i)/(e-i):0}function Di(i,e,t){return(1-t)*i+t*e}function Dc(i,e,t,n){return Di(i,e,1-Math.exp(-t*n))}function Ic(i,e=1){return e-Math.abs(_a(i,e*2)-e)}function Uc(i,e,t){return i<=e?0:i>=t?1:(i=(i-e)/(t-e),i*i*(3-2*i))}function Nc(i,e,t){return i<=e?0:i>=t?1:(i=(i-e)/(t-e),i*i*i*(i*(i*6-15)+10))}function Fc(i,e){return i+Math.floor(Math.random()*(e-i+1))}function Oc(i,e){return i+Math.random()*(e-i)}function Bc(i){return i*(.5-Math.random())}function zc(i){i!==void 0&&(Ha=i);let e=Ha+=1831565813;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}function Vc(i){return i*Li}function Hc(i){return i*mi}function kc(i){return(i&i-1)===0&&i!==0}function Gc(i){return Math.pow(2,Math.ceil(Math.log(i)/Math.LN2))}function Wc(i){return Math.pow(2,Math.floor(Math.log(i)/Math.LN2))}function Xc(i,e,t,n,r){const s=Math.cos,a=Math.sin,o=s(t/2),c=a(t/2),l=s((e+n)/2),h=a((e+n)/2),f=s((e-n)/2),d=a((e-n)/2),p=s((n-e)/2),g=a((n-e)/2);switch(r){case"XYX":i.set(o*h,c*f,c*d,o*l);break;case"YZY":i.set(c*d,o*h,c*f,o*l);break;case"ZXZ":i.set(c*f,c*d,o*h,o*l);break;case"XZX":i.set(o*h,c*g,c*p,o*l);break;case"YXY":i.set(c*p,o*h,c*g,o*l);break;case"ZYZ":i.set(c*g,c*p,o*h,o*l);break;default:console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+r)}}function kt(i,e){switch(e.constructor){case Float32Array:return i;case Uint32Array:return i/4294967295;case Uint16Array:return i/65535;case Uint8Array:return i/255;case Int32Array:return Math.max(i/2147483647,-1);case Int16Array:return Math.max(i/32767,-1);case Int8Array:return Math.max(i/127,-1);default:throw new Error("Invalid component type.")}}function $e(i,e){switch(e.constructor){case Float32Array:return i;case Uint32Array:return Math.round(i*4294967295);case Uint16Array:return Math.round(i*65535);case Uint8Array:return Math.round(i*255);case Int32Array:return Math.round(i*2147483647);case Int16Array:return Math.round(i*32767);case Int8Array:return Math.round(i*127);default:throw new Error("Invalid component type.")}}const Xm={DEG2RAD:Li,RAD2DEG:mi,generateUUID:Xt,clamp:Ie,euclideanModulo:_a,mapLinear:Pc,inverseLerp:Lc,lerp:Di,damp:Dc,pingpong:Ic,smoothstep:Uc,smootherstep:Nc,randInt:Fc,randFloat:Oc,randFloatSpread:Bc,seededRandom:zc,degToRad:Vc,radToDeg:Hc,isPowerOfTwo:kc,ceilPowerOfTwo:Gc,floorPowerOfTwo:Wc,setQuaternionFromProperEuler:Xc,normalize:$e,denormalize:kt};class Ve{constructor(e=0,t=0){Ve.prototype.isVector2=!0,this.x=e,this.y=t}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,t){return this.x=e,this.y=t,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){const t=this.x,n=this.y,r=e.elements;return this.x=r[0]*t+r[3]*n+r[6],this.y=r[1]*t+r[4]*n+r[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,t){return this.x=Ie(this.x,e.x,t.x),this.y=Ie(this.y,e.y,t.y),this}clampScalar(e,t){return this.x=Ie(this.x,e,t),this.y=Ie(this.y,e,t),this}clampLength(e,t){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Ie(n,e,t))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;const n=this.dot(e)/t;return Math.acos(Ie(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,n=this.y-e.y;return t*t+n*n}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this}rotateAround(e,t){const n=Math.cos(t),r=Math.sin(t),s=this.x-e.x,a=this.y-e.y;return this.x=s*n-a*r+e.x,this.y=s*r+a*n+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}class Ce{constructor(e,t,n,r,s,a,o,c,l){Ce.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],e!==void 0&&this.set(e,t,n,r,s,a,o,c,l)}set(e,t,n,r,s,a,o,c,l){const h=this.elements;return h[0]=e,h[1]=r,h[2]=o,h[3]=t,h[4]=s,h[5]=c,h[6]=n,h[7]=a,h[8]=l,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){const t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],this}extractBasis(e,t,n){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),n.setFromMatrix3Column(this,2),this}setFromMatrix4(e){const t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const n=e.elements,r=t.elements,s=this.elements,a=n[0],o=n[3],c=n[6],l=n[1],h=n[4],f=n[7],d=n[2],p=n[5],g=n[8],v=r[0],m=r[3],u=r[6],b=r[1],T=r[4],y=r[7],D=r[2],w=r[5],R=r[8];return s[0]=a*v+o*b+c*D,s[3]=a*m+o*T+c*w,s[6]=a*u+o*y+c*R,s[1]=l*v+h*b+f*D,s[4]=l*m+h*T+f*w,s[7]=l*u+h*y+f*R,s[2]=d*v+p*b+g*D,s[5]=d*m+p*T+g*w,s[8]=d*u+p*y+g*R,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this}determinant(){const e=this.elements,t=e[0],n=e[1],r=e[2],s=e[3],a=e[4],o=e[5],c=e[6],l=e[7],h=e[8];return t*a*h-t*o*l-n*s*h+n*o*c+r*s*l-r*a*c}invert(){const e=this.elements,t=e[0],n=e[1],r=e[2],s=e[3],a=e[4],o=e[5],c=e[6],l=e[7],h=e[8],f=h*a-o*l,d=o*c-h*s,p=l*s-a*c,g=t*f+n*d+r*p;if(g===0)return this.set(0,0,0,0,0,0,0,0,0);const v=1/g;return e[0]=f*v,e[1]=(r*l-h*n)*v,e[2]=(o*n-r*a)*v,e[3]=d*v,e[4]=(h*t-r*c)*v,e[5]=(r*s-o*t)*v,e[6]=p*v,e[7]=(n*c-l*t)*v,e[8]=(a*t-n*s)*v,this}transpose(){let e;const t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){const t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}setUvTransform(e,t,n,r,s,a,o){const c=Math.cos(s),l=Math.sin(s);return this.set(n*c,n*l,-n*(c*a+l*o)+a+e,-r*l,r*c,-r*(-l*a+c*o)+o+t,0,0,1),this}scale(e,t){return this.premultiply(Vr.makeScale(e,t)),this}rotate(e){return this.premultiply(Vr.makeRotation(-e)),this}translate(e,t){return this.premultiply(Vr.makeTranslation(e,t)),this}makeTranslation(e,t){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,t,0,0,1),this}makeRotation(e){const t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,n,t,0,0,0,1),this}makeScale(e,t){return this.set(e,0,0,0,t,0,0,0,1),this}equals(e){const t=this.elements,n=e.elements;for(let r=0;r<9;r++)if(t[r]!==n[r])return!1;return!0}fromArray(e,t=0){for(let n=0;n<9;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){const n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e}clone(){return new this.constructor().fromArray(this.elements)}}const Vr=new Ce;function cl(i){for(let e=i.length-1;e>=0;--e)if(i[e]>=65535)return!0;return!1}function Ui(i){return document.createElementNS("http://www.w3.org/1999/xhtml",i)}function qc(){const i=Ui("canvas");return i.style.display="block",i}const ka={};function ri(i){i in ka||(ka[i]=!0,console.warn(i))}function Yc(i,e,t){return new Promise(function(n,r){function s(){switch(i.clientWaitSync(e,i.SYNC_FLUSH_COMMANDS_BIT,0)){case i.WAIT_FAILED:r();break;case i.TIMEOUT_EXPIRED:setTimeout(s,t);break;default:n()}}setTimeout(s,t)})}function Kc(i){const e=i.elements;e[2]=.5*e[2]+.5*e[3],e[6]=.5*e[6]+.5*e[7],e[10]=.5*e[10]+.5*e[11],e[14]=.5*e[14]+.5*e[15]}function Zc(i){const e=i.elements;e[11]===-1?(e[10]=-e[10]-1,e[14]=-e[14]):(e[10]=-e[10],e[14]=-e[14]+1)}const Ga=new Ce().set(.4123908,.3575843,.1804808,.212639,.7151687,.0721923,.0193308,.1191948,.9505322),Wa=new Ce().set(3.2409699,-1.5373832,-.4986108,-.9692436,1.8759675,.0415551,.0556301,-.203977,1.0569715);function $c(){const i={enabled:!0,workingColorSpace:pi,spaces:{},convert:function(r,s,a){return this.enabled===!1||s===a||!s||!a||(this.spaces[s].transfer===je&&(r.r=ln(r.r),r.g=ln(r.g),r.b=ln(r.b)),this.spaces[s].primaries!==this.spaces[a].primaries&&(r.applyMatrix3(this.spaces[s].toXYZ),r.applyMatrix3(this.spaces[a].fromXYZ)),this.spaces[a].transfer===je&&(r.r=li(r.r),r.g=li(r.g),r.b=li(r.b))),r},fromWorkingColorSpace:function(r,s){return this.convert(r,this.workingColorSpace,s)},toWorkingColorSpace:function(r,s){return this.convert(r,s,this.workingColorSpace)},getPrimaries:function(r){return this.spaces[r].primaries},getTransfer:function(r){return r===_n?Er:this.spaces[r].transfer},getLuminanceCoefficients:function(r,s=this.workingColorSpace){return r.fromArray(this.spaces[s].luminanceCoefficients)},define:function(r){Object.assign(this.spaces,r)},_getMatrix:function(r,s,a){return r.copy(this.spaces[s].toXYZ).multiply(this.spaces[a].fromXYZ)},_getDrawingBufferColorSpace:function(r){return this.spaces[r].outputColorSpaceConfig.drawingBufferColorSpace},_getUnpackColorSpace:function(r=this.workingColorSpace){return this.spaces[r].workingColorSpaceConfig.unpackColorSpace}},e=[.64,.33,.3,.6,.15,.06],t=[.2126,.7152,.0722],n=[.3127,.329];return i.define({[pi]:{primaries:e,whitePoint:n,transfer:Er,toXYZ:Ga,fromXYZ:Wa,luminanceCoefficients:t,workingColorSpaceConfig:{unpackColorSpace:It},outputColorSpaceConfig:{drawingBufferColorSpace:It}},[It]:{primaries:e,whitePoint:n,transfer:je,toXYZ:Ga,fromXYZ:Wa,luminanceCoefficients:t,outputColorSpaceConfig:{drawingBufferColorSpace:It}}}),i}const We=$c();function ln(i){return i<.04045?i*.0773993808:Math.pow(i*.9478672986+.0521327014,2.4)}function li(i){return i<.0031308?i*12.92:1.055*Math.pow(i,.41666)-.055}let Wn;class jc{static getDataURL(e){if(/^data:/i.test(e.src)||typeof HTMLCanvasElement>"u")return e.src;let t;if(e instanceof HTMLCanvasElement)t=e;else{Wn===void 0&&(Wn=Ui("canvas")),Wn.width=e.width,Wn.height=e.height;const n=Wn.getContext("2d");e instanceof ImageData?n.putImageData(e,0,0):n.drawImage(e,0,0,e.width,e.height),t=Wn}return t.toDataURL("image/png")}static sRGBToLinear(e){if(typeof HTMLImageElement<"u"&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&e instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&e instanceof ImageBitmap){const t=Ui("canvas");t.width=e.width,t.height=e.height;const n=t.getContext("2d");n.drawImage(e,0,0,e.width,e.height);const r=n.getImageData(0,0,e.width,e.height),s=r.data;for(let a=0;a0&&(n.userData=this.userData),t||(e.textures[this.uuid]=n),n}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(e){if(this.mapping!==Jo)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case Cs:e.x=e.x-Math.floor(e.x);break;case On:e.x=e.x<0?0:1;break;case Ps:Math.abs(Math.floor(e.x)%2)===1?e.x=Math.ceil(e.x)-e.x:e.x=e.x-Math.floor(e.x);break}if(e.y<0||e.y>1)switch(this.wrapT){case Cs:e.y=e.y-Math.floor(e.y);break;case On:e.y=e.y<0?0:1;break;case Ps:Math.abs(Math.floor(e.y)%2)===1?e.y=Math.ceil(e.y)-e.y:e.y=e.y-Math.floor(e.y);break}return this.flipY&&(e.y=1-e.y),e}set needsUpdate(e){e===!0&&(this.version++,this.source.needsUpdate=!0)}set needsPMREMUpdate(e){e===!0&&this.pmremVersion++}}_t.DEFAULT_IMAGE=null;_t.DEFAULT_MAPPING=Jo;_t.DEFAULT_ANISOTROPY=1;class qe{constructor(e=0,t=0,n=0,r=1){qe.prototype.isVector4=!0,this.x=e,this.y=t,this.z=n,this.w=r}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,t,n,r){return this.x=e,this.y=t,this.z=n,this.w=r,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=e.w!==void 0?e.w:1,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.w,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){const t=this.x,n=this.y,r=this.z,s=this.w,a=e.elements;return this.x=a[0]*t+a[4]*n+a[8]*r+a[12]*s,this.y=a[1]*t+a[5]*n+a[9]*r+a[13]*s,this.z=a[2]*t+a[6]*n+a[10]*r+a[14]*s,this.w=a[3]*t+a[7]*n+a[11]*r+a[15]*s,this}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this.w/=e.w,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);const t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this}setAxisAngleFromRotationMatrix(e){let t,n,r,s;const c=e.elements,l=c[0],h=c[4],f=c[8],d=c[1],p=c[5],g=c[9],v=c[2],m=c[6],u=c[10];if(Math.abs(h-d)<.01&&Math.abs(f-v)<.01&&Math.abs(g-m)<.01){if(Math.abs(h+d)<.1&&Math.abs(f+v)<.1&&Math.abs(g+m)<.1&&Math.abs(l+p+u-3)<.1)return this.set(1,0,0,0),this;t=Math.PI;const T=(l+1)/2,y=(p+1)/2,D=(u+1)/2,w=(h+d)/4,R=(f+v)/4,U=(g+m)/4;return T>y&&T>D?T<.01?(n=0,r=.707106781,s=.707106781):(n=Math.sqrt(T),r=w/n,s=R/n):y>D?y<.01?(n=.707106781,r=0,s=.707106781):(r=Math.sqrt(y),n=w/r,s=U/r):D<.01?(n=.707106781,r=.707106781,s=0):(s=Math.sqrt(D),n=R/s,r=U/s),this.set(n,r,s,t),this}let b=Math.sqrt((m-g)*(m-g)+(f-v)*(f-v)+(d-h)*(d-h));return Math.abs(b)<.001&&(b=1),this.x=(m-g)/b,this.y=(f-v)/b,this.z=(d-h)/b,this.w=Math.acos((l+p+u-1)/2),this}setFromMatrixPosition(e){const t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this.w=t[15],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this.w=Math.min(this.w,e.w),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this.w=Math.max(this.w,e.w),this}clamp(e,t){return this.x=Ie(this.x,e.x,t.x),this.y=Ie(this.y,e.y,t.y),this.z=Ie(this.z,e.z,t.z),this.w=Ie(this.w,e.w,t.w),this}clampScalar(e,t){return this.x=Ie(this.x,e,t),this.y=Ie(this.y,e,t),this.z=Ie(this.z,e,t),this.w=Ie(this.w,e,t),this}clampLength(e,t){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Ie(n,e,t))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this.w=Math.trunc(this.w),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z+this.w*e.w}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this.w+=(e.w-this.w)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this.w=e.w+(t.w-e.w)*n,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z&&e.w===this.w}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this.w=e[t+3],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e[t+3]=this.w,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this.w=e.getW(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z,yield this.w}}class eh extends Hn{constructor(e=1,t=1,n={}){super(),this.isRenderTarget=!0,this.width=e,this.height=t,this.depth=1,this.scissor=new qe(0,0,e,t),this.scissorTest=!1,this.viewport=new qe(0,0,e,t);const r={width:e,height:t,depth:1};n=Object.assign({generateMipmaps:!1,internalFormat:null,minFilter:Zt,depthBuffer:!0,stencilBuffer:!1,resolveDepthBuffer:!0,resolveStencilBuffer:!0,depthTexture:null,samples:0,count:1},n);const s=new _t(r,n.mapping,n.wrapS,n.wrapT,n.magFilter,n.minFilter,n.format,n.type,n.anisotropy,n.colorSpace);s.flipY=!1,s.generateMipmaps=n.generateMipmaps,s.internalFormat=n.internalFormat,this.textures=[];const a=n.count;for(let o=0;o=0?1:-1,T=1-u*u;if(T>Number.EPSILON){const D=Math.sqrt(T),w=Math.atan2(D,u*b);m=Math.sin(m*w)/D,o=Math.sin(o*w)/D}const y=o*b;if(c=c*m+d*y,l=l*m+p*y,h=h*m+g*y,f=f*m+v*y,m===1-o){const D=1/Math.sqrt(c*c+l*l+h*h+f*f);c*=D,l*=D,h*=D,f*=D}}e[t]=c,e[t+1]=l,e[t+2]=h,e[t+3]=f}static multiplyQuaternionsFlat(e,t,n,r,s,a){const o=n[r],c=n[r+1],l=n[r+2],h=n[r+3],f=s[a],d=s[a+1],p=s[a+2],g=s[a+3];return e[t]=o*g+h*f+c*p-l*d,e[t+1]=c*g+h*d+l*f-o*p,e[t+2]=l*g+h*p+o*d-c*f,e[t+3]=h*g-o*f-c*d-l*p,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,t,n,r){return this._x=e,this._y=t,this._z=n,this._w=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,t=!0){const n=e._x,r=e._y,s=e._z,a=e._order,o=Math.cos,c=Math.sin,l=o(n/2),h=o(r/2),f=o(s/2),d=c(n/2),p=c(r/2),g=c(s/2);switch(a){case"XYZ":this._x=d*h*f+l*p*g,this._y=l*p*f-d*h*g,this._z=l*h*g+d*p*f,this._w=l*h*f-d*p*g;break;case"YXZ":this._x=d*h*f+l*p*g,this._y=l*p*f-d*h*g,this._z=l*h*g-d*p*f,this._w=l*h*f+d*p*g;break;case"ZXY":this._x=d*h*f-l*p*g,this._y=l*p*f+d*h*g,this._z=l*h*g+d*p*f,this._w=l*h*f-d*p*g;break;case"ZYX":this._x=d*h*f-l*p*g,this._y=l*p*f+d*h*g,this._z=l*h*g-d*p*f,this._w=l*h*f+d*p*g;break;case"YZX":this._x=d*h*f+l*p*g,this._y=l*p*f+d*h*g,this._z=l*h*g-d*p*f,this._w=l*h*f-d*p*g;break;case"XZY":this._x=d*h*f-l*p*g,this._y=l*p*f-d*h*g,this._z=l*h*g+d*p*f,this._w=l*h*f+d*p*g;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+a)}return t===!0&&this._onChangeCallback(),this}setFromAxisAngle(e,t){const n=t/2,r=Math.sin(n);return this._x=e.x*r,this._y=e.y*r,this._z=e.z*r,this._w=Math.cos(n),this._onChangeCallback(),this}setFromRotationMatrix(e){const t=e.elements,n=t[0],r=t[4],s=t[8],a=t[1],o=t[5],c=t[9],l=t[2],h=t[6],f=t[10],d=n+o+f;if(d>0){const p=.5/Math.sqrt(d+1);this._w=.25/p,this._x=(h-c)*p,this._y=(s-l)*p,this._z=(a-r)*p}else if(n>o&&n>f){const p=2*Math.sqrt(1+n-o-f);this._w=(h-c)/p,this._x=.25*p,this._y=(r+a)/p,this._z=(s+l)/p}else if(o>f){const p=2*Math.sqrt(1+o-n-f);this._w=(s-l)/p,this._x=(r+a)/p,this._y=.25*p,this._z=(c+h)/p}else{const p=2*Math.sqrt(1+f-n-o);this._w=(a-r)/p,this._x=(s+l)/p,this._y=(c+h)/p,this._z=.25*p}return this._onChangeCallback(),this}setFromUnitVectors(e,t){let n=e.dot(t)+1;return nMath.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=n):(this._x=0,this._y=-e.z,this._z=e.y,this._w=n)):(this._x=e.y*t.z-e.z*t.y,this._y=e.z*t.x-e.x*t.z,this._z=e.x*t.y-e.y*t.x,this._w=n),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(Ie(this.dot(e),-1,1)))}rotateTowards(e,t){const n=this.angleTo(e);if(n===0)return this;const r=Math.min(1,t/n);return this.slerp(e,r),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return e===0?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x=this._x*e,this._y=this._y*e,this._z=this._z*e,this._w=this._w*e),this._onChangeCallback(),this}multiply(e){return this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,t){const n=e._x,r=e._y,s=e._z,a=e._w,o=t._x,c=t._y,l=t._z,h=t._w;return this._x=n*h+a*o+r*l-s*c,this._y=r*h+a*c+s*o-n*l,this._z=s*h+a*l+n*c-r*o,this._w=a*h-n*o-r*c-s*l,this._onChangeCallback(),this}slerp(e,t){if(t===0)return this;if(t===1)return this.copy(e);const n=this._x,r=this._y,s=this._z,a=this._w;let o=a*e._w+n*e._x+r*e._y+s*e._z;if(o<0?(this._w=-e._w,this._x=-e._x,this._y=-e._y,this._z=-e._z,o=-o):this.copy(e),o>=1)return this._w=a,this._x=n,this._y=r,this._z=s,this;const c=1-o*o;if(c<=Number.EPSILON){const p=1-t;return this._w=p*a+t*this._w,this._x=p*n+t*this._x,this._y=p*r+t*this._y,this._z=p*s+t*this._z,this.normalize(),this}const l=Math.sqrt(c),h=Math.atan2(l,o),f=Math.sin((1-t)*h)/l,d=Math.sin(t*h)/l;return this._w=a*f+this._w*d,this._x=n*f+this._x*d,this._y=r*f+this._y*d,this._z=s*f+this._z*d,this._onChangeCallback(),this}slerpQuaternions(e,t,n){return this.copy(e).slerp(t,n)}random(){const e=2*Math.PI*Math.random(),t=2*Math.PI*Math.random(),n=Math.random(),r=Math.sqrt(1-n),s=Math.sqrt(n);return this.set(r*Math.sin(e),r*Math.cos(e),s*Math.sin(t),s*Math.cos(t))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,t=0){return this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e}fromBufferAttribute(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),this._onChangeCallback(),this}toJSON(){return this.toArray()}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class N{constructor(e=0,t=0,n=0){N.prototype.isVector3=!0,this.x=e,this.y=t,this.z=n}set(e,t,n){return n===void 0&&(n=this.z),this.x=e,this.y=t,this.z=n,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}applyEuler(e){return this.applyQuaternion(Xa.setFromEuler(e))}applyAxisAngle(e,t){return this.applyQuaternion(Xa.setFromAxisAngle(e,t))}applyMatrix3(e){const t=this.x,n=this.y,r=this.z,s=e.elements;return this.x=s[0]*t+s[3]*n+s[6]*r,this.y=s[1]*t+s[4]*n+s[7]*r,this.z=s[2]*t+s[5]*n+s[8]*r,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){const t=this.x,n=this.y,r=this.z,s=e.elements,a=1/(s[3]*t+s[7]*n+s[11]*r+s[15]);return this.x=(s[0]*t+s[4]*n+s[8]*r+s[12])*a,this.y=(s[1]*t+s[5]*n+s[9]*r+s[13])*a,this.z=(s[2]*t+s[6]*n+s[10]*r+s[14])*a,this}applyQuaternion(e){const t=this.x,n=this.y,r=this.z,s=e.x,a=e.y,o=e.z,c=e.w,l=2*(a*r-o*n),h=2*(o*t-s*r),f=2*(s*n-a*t);return this.x=t+c*l+a*f-o*h,this.y=n+c*h+o*l-s*f,this.z=r+c*f+s*h-a*l,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){const t=this.x,n=this.y,r=this.z,s=e.elements;return this.x=s[0]*t+s[4]*n+s[8]*r,this.y=s[1]*t+s[5]*n+s[9]*r,this.z=s[2]*t+s[6]*n+s[10]*r,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,t){return this.x=Ie(this.x,e.x,t.x),this.y=Ie(this.y,e.y,t.y),this.z=Ie(this.z,e.z,t.z),this}clampScalar(e,t){return this.x=Ie(this.x,e,t),this.y=Ie(this.y,e,t),this.z=Ie(this.z,e,t),this}clampLength(e,t){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Ie(n,e,t))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,t){const n=e.x,r=e.y,s=e.z,a=t.x,o=t.y,c=t.z;return this.x=r*c-s*o,this.y=s*a-n*c,this.z=n*o-r*a,this}projectOnVector(e){const t=e.lengthSq();if(t===0)return this.set(0,0,0);const n=e.dot(this)/t;return this.copy(e).multiplyScalar(n)}projectOnPlane(e){return kr.copy(this).projectOnVector(e),this.sub(kr)}reflect(e){return this.sub(kr.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;const n=this.dot(e)/t;return Math.acos(Ie(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,n=this.y-e.y,r=this.z-e.z;return t*t+n*n+r*r}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,t,n){const r=Math.sin(t)*e;return this.x=r*Math.sin(n),this.y=Math.cos(t)*e,this.z=r*Math.cos(n),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,t,n){return this.x=e*Math.sin(t),this.y=n,this.z=e*Math.cos(t),this}setFromMatrixPosition(e){const t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}setFromMatrixScale(e){const t=this.setFromMatrixColumn(e,0).length(),n=this.setFromMatrixColumn(e,1).length(),r=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=n,this.z=r,this}setFromMatrixColumn(e,t){return this.fromArray(e.elements,t*4)}setFromMatrix3Column(e,t){return this.fromArray(e.elements,t*3)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}setFromColor(e){return this.x=e.r,this.y=e.g,this.z=e.b,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const e=Math.random()*Math.PI*2,t=Math.random()*2-1,n=Math.sqrt(1-t*t);return this.x=n*Math.cos(e),this.y=t,this.z=n*Math.sin(e),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const kr=new N,Xa=new _i;class En{constructor(e=new N(1/0,1/0,1/0),t=new N(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=e,this.max=t}set(e,t){return this.min.copy(e),this.max.copy(t),this}setFromArray(e){this.makeEmpty();for(let t=0,n=e.length;t=this.min.x&&e.x<=this.max.x&&e.y>=this.min.y&&e.y<=this.max.y&&e.z>=this.min.z&&e.z<=this.max.z}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(e){return e.max.x>=this.min.x&&e.min.x<=this.max.x&&e.max.y>=this.min.y&&e.min.y<=this.max.y&&e.max.z>=this.min.z&&e.min.z<=this.max.z}intersectsSphere(e){return this.clampPoint(e.center,zt),zt.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let t,n;return e.normal.x>0?(t=e.normal.x*this.min.x,n=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,n=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,n+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,n+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,n+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,n+=e.normal.z*this.min.z),t<=-e.constant&&n>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(yi),ki.subVectors(this.max,yi),Xn.subVectors(e.a,yi),qn.subVectors(e.b,yi),Yn.subVectors(e.c,yi),un.subVectors(qn,Xn),dn.subVectors(Yn,qn),wn.subVectors(Xn,Yn);let t=[0,-un.z,un.y,0,-dn.z,dn.y,0,-wn.z,wn.y,un.z,0,-un.x,dn.z,0,-dn.x,wn.z,0,-wn.x,-un.y,un.x,0,-dn.y,dn.x,0,-wn.y,wn.x,0];return!Gr(t,Xn,qn,Yn,ki)||(t=[1,0,0,0,1,0,0,0,1],!Gr(t,Xn,qn,Yn,ki))?!1:(Gi.crossVectors(un,dn),t=[Gi.x,Gi.y,Gi.z],Gr(t,Xn,qn,Yn,ki))}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,zt).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=this.getSize(zt).length()*.5),e}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}applyMatrix4(e){return this.isEmpty()?this:(Jt[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),Jt[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),Jt[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),Jt[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),Jt[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),Jt[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),Jt[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),Jt[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(Jt),this)}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}const Jt=[new N,new N,new N,new N,new N,new N,new N,new N],zt=new N,Hi=new En,Xn=new N,qn=new N,Yn=new N,un=new N,dn=new N,wn=new N,yi=new N,ki=new N,Gi=new N,Rn=new N;function Gr(i,e,t,n,r){for(let s=0,a=i.length-3;s<=a;s+=3){Rn.fromArray(i,s);const o=r.x*Math.abs(Rn.x)+r.y*Math.abs(Rn.y)+r.z*Math.abs(Rn.z),c=e.dot(Rn),l=t.dot(Rn),h=n.dot(Rn);if(Math.max(-Math.max(c,l,h),Math.min(c,l,h))>o)return!1}return!0}const nh=new En,Ei=new N,Wr=new N;class hn{constructor(e=new N,t=-1){this.isSphere=!0,this.center=e,this.radius=t}set(e,t){return this.center.copy(e),this.radius=t,this}setFromPoints(e,t){const n=this.center;t!==void 0?n.copy(t):nh.setFromPoints(e).getCenter(n);let r=0;for(let s=0,a=e.length;sthis.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}getBoundingBox(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius=this.radius*e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){if(this.isEmpty())return this.center.copy(e),this.radius=0,this;Ei.subVectors(e,this.center);const t=Ei.lengthSq();if(t>this.radius*this.radius){const n=Math.sqrt(t),r=(n-this.radius)*.5;this.center.addScaledVector(Ei,r/n),this.radius+=r}return this}union(e){return e.isEmpty()?this:this.isEmpty()?(this.copy(e),this):(this.center.equals(e.center)===!0?this.radius=Math.max(this.radius,e.radius):(Wr.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(Ei.copy(e.center).add(Wr)),this.expandByPoint(Ei.copy(e.center).sub(Wr))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return new this.constructor().copy(this)}}const Qt=new N,Xr=new N,Wi=new N,fn=new N,qr=new N,Xi=new N,Yr=new N;class Pr{constructor(e=new N,t=new N(0,0,-1)){this.origin=e,this.direction=t}set(e,t){return this.origin.copy(e),this.direction.copy(t),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,t){return t.copy(this.origin).addScaledVector(this.direction,e)}lookAt(e){return this.direction.copy(e).sub(this.origin).normalize(),this}recast(e){return this.origin.copy(this.at(e,Qt)),this}closestPointToPoint(e,t){t.subVectors(e,this.origin);const n=t.dot(this.direction);return n<0?t.copy(this.origin):t.copy(this.origin).addScaledVector(this.direction,n)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){const t=Qt.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(Qt.copy(this.origin).addScaledVector(this.direction,t),Qt.distanceToSquared(e))}distanceSqToSegment(e,t,n,r){Xr.copy(e).add(t).multiplyScalar(.5),Wi.copy(t).sub(e).normalize(),fn.copy(this.origin).sub(Xr);const s=e.distanceTo(t)*.5,a=-this.direction.dot(Wi),o=fn.dot(this.direction),c=-fn.dot(Wi),l=fn.lengthSq(),h=Math.abs(1-a*a);let f,d,p,g;if(h>0)if(f=a*c-o,d=a*o-c,g=s*h,f>=0)if(d>=-g)if(d<=g){const v=1/h;f*=v,d*=v,p=f*(f+a*d+2*o)+d*(a*f+d+2*c)+l}else d=s,f=Math.max(0,-(a*d+o)),p=-f*f+d*(d+2*c)+l;else d=-s,f=Math.max(0,-(a*d+o)),p=-f*f+d*(d+2*c)+l;else d<=-g?(f=Math.max(0,-(-a*s+o)),d=f>0?-s:Math.min(Math.max(-s,-c),s),p=-f*f+d*(d+2*c)+l):d<=g?(f=0,d=Math.min(Math.max(-s,-c),s),p=d*(d+2*c)+l):(f=Math.max(0,-(a*s+o)),d=f>0?s:Math.min(Math.max(-s,-c),s),p=-f*f+d*(d+2*c)+l);else d=a>0?-s:s,f=Math.max(0,-(a*d+o)),p=-f*f+d*(d+2*c)+l;return n&&n.copy(this.origin).addScaledVector(this.direction,f),r&&r.copy(Xr).addScaledVector(Wi,d),p}intersectSphere(e,t){Qt.subVectors(e.center,this.origin);const n=Qt.dot(this.direction),r=Qt.dot(Qt)-n*n,s=e.radius*e.radius;if(r>s)return null;const a=Math.sqrt(s-r),o=n-a,c=n+a;return c<0?null:o<0?this.at(c,t):this.at(o,t)}intersectsSphere(e){return this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){const t=e.normal.dot(this.direction);if(t===0)return e.distanceToPoint(this.origin)===0?0:null;const n=-(this.origin.dot(e.normal)+e.constant)/t;return n>=0?n:null}intersectPlane(e,t){const n=this.distanceToPlane(e);return n===null?null:this.at(n,t)}intersectsPlane(e){const t=e.distanceToPoint(this.origin);return t===0||e.normal.dot(this.direction)*t<0}intersectBox(e,t){let n,r,s,a,o,c;const l=1/this.direction.x,h=1/this.direction.y,f=1/this.direction.z,d=this.origin;return l>=0?(n=(e.min.x-d.x)*l,r=(e.max.x-d.x)*l):(n=(e.max.x-d.x)*l,r=(e.min.x-d.x)*l),h>=0?(s=(e.min.y-d.y)*h,a=(e.max.y-d.y)*h):(s=(e.max.y-d.y)*h,a=(e.min.y-d.y)*h),n>a||s>r||((s>n||isNaN(n))&&(n=s),(a=0?(o=(e.min.z-d.z)*f,c=(e.max.z-d.z)*f):(o=(e.max.z-d.z)*f,c=(e.min.z-d.z)*f),n>c||o>r)||((o>n||n!==n)&&(n=o),(c=0?n:r,t)}intersectsBox(e){return this.intersectBox(e,Qt)!==null}intersectTriangle(e,t,n,r,s){qr.subVectors(t,e),Xi.subVectors(n,e),Yr.crossVectors(qr,Xi);let a=this.direction.dot(Yr),o;if(a>0){if(r)return null;o=1}else if(a<0)o=-1,a=-a;else return null;fn.subVectors(this.origin,e);const c=o*this.direction.dot(Xi.crossVectors(fn,Xi));if(c<0)return null;const l=o*this.direction.dot(qr.cross(fn));if(l<0||c+l>a)return null;const h=-o*fn.dot(Yr);return h<0?null:this.at(h/a,s)}applyMatrix4(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}equals(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}clone(){return new this.constructor().copy(this)}}class Ne{constructor(e,t,n,r,s,a,o,c,l,h,f,d,p,g,v,m){Ne.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],e!==void 0&&this.set(e,t,n,r,s,a,o,c,l,h,f,d,p,g,v,m)}set(e,t,n,r,s,a,o,c,l,h,f,d,p,g,v,m){const u=this.elements;return u[0]=e,u[4]=t,u[8]=n,u[12]=r,u[1]=s,u[5]=a,u[9]=o,u[13]=c,u[2]=l,u[6]=h,u[10]=f,u[14]=d,u[3]=p,u[7]=g,u[11]=v,u[15]=m,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return new Ne().fromArray(this.elements)}copy(e){const t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],this}copyPosition(e){const t=this.elements,n=e.elements;return t[12]=n[12],t[13]=n[13],t[14]=n[14],this}setFromMatrix3(e){const t=e.elements;return this.set(t[0],t[3],t[6],0,t[1],t[4],t[7],0,t[2],t[5],t[8],0,0,0,0,1),this}extractBasis(e,t,n){return e.setFromMatrixColumn(this,0),t.setFromMatrixColumn(this,1),n.setFromMatrixColumn(this,2),this}makeBasis(e,t,n){return this.set(e.x,t.x,n.x,0,e.y,t.y,n.y,0,e.z,t.z,n.z,0,0,0,0,1),this}extractRotation(e){const t=this.elements,n=e.elements,r=1/Kn.setFromMatrixColumn(e,0).length(),s=1/Kn.setFromMatrixColumn(e,1).length(),a=1/Kn.setFromMatrixColumn(e,2).length();return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=0,t[4]=n[4]*s,t[5]=n[5]*s,t[6]=n[6]*s,t[7]=0,t[8]=n[8]*a,t[9]=n[9]*a,t[10]=n[10]*a,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromEuler(e){const t=this.elements,n=e.x,r=e.y,s=e.z,a=Math.cos(n),o=Math.sin(n),c=Math.cos(r),l=Math.sin(r),h=Math.cos(s),f=Math.sin(s);if(e.order==="XYZ"){const d=a*h,p=a*f,g=o*h,v=o*f;t[0]=c*h,t[4]=-c*f,t[8]=l,t[1]=p+g*l,t[5]=d-v*l,t[9]=-o*c,t[2]=v-d*l,t[6]=g+p*l,t[10]=a*c}else if(e.order==="YXZ"){const d=c*h,p=c*f,g=l*h,v=l*f;t[0]=d+v*o,t[4]=g*o-p,t[8]=a*l,t[1]=a*f,t[5]=a*h,t[9]=-o,t[2]=p*o-g,t[6]=v+d*o,t[10]=a*c}else if(e.order==="ZXY"){const d=c*h,p=c*f,g=l*h,v=l*f;t[0]=d-v*o,t[4]=-a*f,t[8]=g+p*o,t[1]=p+g*o,t[5]=a*h,t[9]=v-d*o,t[2]=-a*l,t[6]=o,t[10]=a*c}else if(e.order==="ZYX"){const d=a*h,p=a*f,g=o*h,v=o*f;t[0]=c*h,t[4]=g*l-p,t[8]=d*l+v,t[1]=c*f,t[5]=v*l+d,t[9]=p*l-g,t[2]=-l,t[6]=o*c,t[10]=a*c}else if(e.order==="YZX"){const d=a*c,p=a*l,g=o*c,v=o*l;t[0]=c*h,t[4]=v-d*f,t[8]=g*f+p,t[1]=f,t[5]=a*h,t[9]=-o*h,t[2]=-l*h,t[6]=p*f+g,t[10]=d-v*f}else if(e.order==="XZY"){const d=a*c,p=a*l,g=o*c,v=o*l;t[0]=c*h,t[4]=-f,t[8]=l*h,t[1]=d*f+v,t[5]=a*h,t[9]=p*f-g,t[2]=g*f-p,t[6]=o*h,t[10]=v*f+d}return t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromQuaternion(e){return this.compose(ih,e,rh)}lookAt(e,t,n){const r=this.elements;return bt.subVectors(e,t),bt.lengthSq()===0&&(bt.z=1),bt.normalize(),pn.crossVectors(n,bt),pn.lengthSq()===0&&(Math.abs(n.z)===1?bt.x+=1e-4:bt.z+=1e-4,bt.normalize(),pn.crossVectors(n,bt)),pn.normalize(),qi.crossVectors(bt,pn),r[0]=pn.x,r[4]=qi.x,r[8]=bt.x,r[1]=pn.y,r[5]=qi.y,r[9]=bt.y,r[2]=pn.z,r[6]=qi.z,r[10]=bt.z,this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const n=e.elements,r=t.elements,s=this.elements,a=n[0],o=n[4],c=n[8],l=n[12],h=n[1],f=n[5],d=n[9],p=n[13],g=n[2],v=n[6],m=n[10],u=n[14],b=n[3],T=n[7],y=n[11],D=n[15],w=r[0],R=r[4],U=r[8],S=r[12],M=r[1],C=r[5],V=r[9],z=r[13],G=r[2],Z=r[6],W=r[10],Q=r[14],k=r[3],re=r[7],he=r[11],ve=r[15];return s[0]=a*w+o*M+c*G+l*k,s[4]=a*R+o*C+c*Z+l*re,s[8]=a*U+o*V+c*W+l*he,s[12]=a*S+o*z+c*Q+l*ve,s[1]=h*w+f*M+d*G+p*k,s[5]=h*R+f*C+d*Z+p*re,s[9]=h*U+f*V+d*W+p*he,s[13]=h*S+f*z+d*Q+p*ve,s[2]=g*w+v*M+m*G+u*k,s[6]=g*R+v*C+m*Z+u*re,s[10]=g*U+v*V+m*W+u*he,s[14]=g*S+v*z+m*Q+u*ve,s[3]=b*w+T*M+y*G+D*k,s[7]=b*R+T*C+y*Z+D*re,s[11]=b*U+T*V+y*W+D*he,s[15]=b*S+T*z+y*Q+D*ve,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[4]*=e,t[8]*=e,t[12]*=e,t[1]*=e,t[5]*=e,t[9]*=e,t[13]*=e,t[2]*=e,t[6]*=e,t[10]*=e,t[14]*=e,t[3]*=e,t[7]*=e,t[11]*=e,t[15]*=e,this}determinant(){const e=this.elements,t=e[0],n=e[4],r=e[8],s=e[12],a=e[1],o=e[5],c=e[9],l=e[13],h=e[2],f=e[6],d=e[10],p=e[14],g=e[3],v=e[7],m=e[11],u=e[15];return g*(+s*c*f-r*l*f-s*o*d+n*l*d+r*o*p-n*c*p)+v*(+t*c*p-t*l*d+s*a*d-r*a*p+r*l*h-s*c*h)+m*(+t*l*f-t*o*p-s*a*f+n*a*p+s*o*h-n*l*h)+u*(-r*o*h-t*c*f+t*o*d+r*a*f-n*a*d+n*c*h)}transpose(){const e=this.elements;let t;return t=e[1],e[1]=e[4],e[4]=t,t=e[2],e[2]=e[8],e[8]=t,t=e[6],e[6]=e[9],e[9]=t,t=e[3],e[3]=e[12],e[12]=t,t=e[7],e[7]=e[13],e[13]=t,t=e[11],e[11]=e[14],e[14]=t,this}setPosition(e,t,n){const r=this.elements;return e.isVector3?(r[12]=e.x,r[13]=e.y,r[14]=e.z):(r[12]=e,r[13]=t,r[14]=n),this}invert(){const e=this.elements,t=e[0],n=e[1],r=e[2],s=e[3],a=e[4],o=e[5],c=e[6],l=e[7],h=e[8],f=e[9],d=e[10],p=e[11],g=e[12],v=e[13],m=e[14],u=e[15],b=f*m*l-v*d*l+v*c*p-o*m*p-f*c*u+o*d*u,T=g*d*l-h*m*l-g*c*p+a*m*p+h*c*u-a*d*u,y=h*v*l-g*f*l+g*o*p-a*v*p-h*o*u+a*f*u,D=g*f*c-h*v*c-g*o*d+a*v*d+h*o*m-a*f*m,w=t*b+n*T+r*y+s*D;if(w===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const R=1/w;return e[0]=b*R,e[1]=(v*d*s-f*m*s-v*r*p+n*m*p+f*r*u-n*d*u)*R,e[2]=(o*m*s-v*c*s+v*r*l-n*m*l-o*r*u+n*c*u)*R,e[3]=(f*c*s-o*d*s-f*r*l+n*d*l+o*r*p-n*c*p)*R,e[4]=T*R,e[5]=(h*m*s-g*d*s+g*r*p-t*m*p-h*r*u+t*d*u)*R,e[6]=(g*c*s-a*m*s-g*r*l+t*m*l+a*r*u-t*c*u)*R,e[7]=(a*d*s-h*c*s+h*r*l-t*d*l-a*r*p+t*c*p)*R,e[8]=y*R,e[9]=(g*f*s-h*v*s-g*n*p+t*v*p+h*n*u-t*f*u)*R,e[10]=(a*v*s-g*o*s+g*n*l-t*v*l-a*n*u+t*o*u)*R,e[11]=(h*o*s-a*f*s-h*n*l+t*f*l+a*n*p-t*o*p)*R,e[12]=D*R,e[13]=(h*v*r-g*f*r+g*n*d-t*v*d-h*n*m+t*f*m)*R,e[14]=(g*o*r-a*v*r-g*n*c+t*v*c+a*n*m-t*o*m)*R,e[15]=(a*f*r-h*o*r+h*n*c-t*f*c-a*n*d+t*o*d)*R,this}scale(e){const t=this.elements,n=e.x,r=e.y,s=e.z;return t[0]*=n,t[4]*=r,t[8]*=s,t[1]*=n,t[5]*=r,t[9]*=s,t[2]*=n,t[6]*=r,t[10]*=s,t[3]*=n,t[7]*=r,t[11]*=s,this}getMaxScaleOnAxis(){const e=this.elements,t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],n=e[4]*e[4]+e[5]*e[5]+e[6]*e[6],r=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(t,n,r))}makeTranslation(e,t,n){return e.isVector3?this.set(1,0,0,e.x,0,1,0,e.y,0,0,1,e.z,0,0,0,1):this.set(1,0,0,e,0,1,0,t,0,0,1,n,0,0,0,1),this}makeRotationX(e){const t=Math.cos(e),n=Math.sin(e);return this.set(1,0,0,0,0,t,-n,0,0,n,t,0,0,0,0,1),this}makeRotationY(e){const t=Math.cos(e),n=Math.sin(e);return this.set(t,0,n,0,0,1,0,0,-n,0,t,0,0,0,0,1),this}makeRotationZ(e){const t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,0,n,t,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(e,t){const n=Math.cos(t),r=Math.sin(t),s=1-n,a=e.x,o=e.y,c=e.z,l=s*a,h=s*o;return this.set(l*a+n,l*o-r*c,l*c+r*o,0,l*o+r*c,h*o+n,h*c-r*a,0,l*c-r*o,h*c+r*a,s*c*c+n,0,0,0,0,1),this}makeScale(e,t,n){return this.set(e,0,0,0,0,t,0,0,0,0,n,0,0,0,0,1),this}makeShear(e,t,n,r,s,a){return this.set(1,n,s,0,e,1,a,0,t,r,1,0,0,0,0,1),this}compose(e,t,n){const r=this.elements,s=t._x,a=t._y,o=t._z,c=t._w,l=s+s,h=a+a,f=o+o,d=s*l,p=s*h,g=s*f,v=a*h,m=a*f,u=o*f,b=c*l,T=c*h,y=c*f,D=n.x,w=n.y,R=n.z;return r[0]=(1-(v+u))*D,r[1]=(p+y)*D,r[2]=(g-T)*D,r[3]=0,r[4]=(p-y)*w,r[5]=(1-(d+u))*w,r[6]=(m+b)*w,r[7]=0,r[8]=(g+T)*R,r[9]=(m-b)*R,r[10]=(1-(d+v))*R,r[11]=0,r[12]=e.x,r[13]=e.y,r[14]=e.z,r[15]=1,this}decompose(e,t,n){const r=this.elements;let s=Kn.set(r[0],r[1],r[2]).length();const a=Kn.set(r[4],r[5],r[6]).length(),o=Kn.set(r[8],r[9],r[10]).length();this.determinant()<0&&(s=-s),e.x=r[12],e.y=r[13],e.z=r[14],Vt.copy(this);const l=1/s,h=1/a,f=1/o;return Vt.elements[0]*=l,Vt.elements[1]*=l,Vt.elements[2]*=l,Vt.elements[4]*=h,Vt.elements[5]*=h,Vt.elements[6]*=h,Vt.elements[8]*=f,Vt.elements[9]*=f,Vt.elements[10]*=f,t.setFromRotationMatrix(Vt),n.x=s,n.y=a,n.z=o,this}makePerspective(e,t,n,r,s,a,o=on){const c=this.elements,l=2*s/(t-e),h=2*s/(n-r),f=(t+e)/(t-e),d=(n+r)/(n-r);let p,g;if(o===on)p=-(a+s)/(a-s),g=-2*a*s/(a-s);else if(o===Tr)p=-a/(a-s),g=-a*s/(a-s);else throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+o);return c[0]=l,c[4]=0,c[8]=f,c[12]=0,c[1]=0,c[5]=h,c[9]=d,c[13]=0,c[2]=0,c[6]=0,c[10]=p,c[14]=g,c[3]=0,c[7]=0,c[11]=-1,c[15]=0,this}makeOrthographic(e,t,n,r,s,a,o=on){const c=this.elements,l=1/(t-e),h=1/(n-r),f=1/(a-s),d=(t+e)*l,p=(n+r)*h;let g,v;if(o===on)g=(a+s)*f,v=-2*f;else if(o===Tr)g=s*f,v=-1*f;else throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+o);return c[0]=2*l,c[4]=0,c[8]=0,c[12]=-d,c[1]=0,c[5]=2*h,c[9]=0,c[13]=-p,c[2]=0,c[6]=0,c[10]=v,c[14]=-g,c[3]=0,c[7]=0,c[11]=0,c[15]=1,this}equals(e){const t=this.elements,n=e.elements;for(let r=0;r<16;r++)if(t[r]!==n[r])return!1;return!0}fromArray(e,t=0){for(let n=0;n<16;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){const n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e[t+9]=n[9],e[t+10]=n[10],e[t+11]=n[11],e[t+12]=n[12],e[t+13]=n[13],e[t+14]=n[14],e[t+15]=n[15],e}}const Kn=new N,Vt=new Ne,ih=new N(0,0,0),rh=new N(1,1,1),pn=new N,qi=new N,bt=new N,qa=new Ne,Ya=new _i;class qt{constructor(e=0,t=0,n=0,r=qt.DEFAULT_ORDER){this.isEuler=!0,this._x=e,this._y=t,this._z=n,this._order=r}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get order(){return this._order}set order(e){this._order=e,this._onChangeCallback()}set(e,t,n,r=this._order){return this._x=e,this._y=t,this._z=n,this._order=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this._onChangeCallback(),this}setFromRotationMatrix(e,t=this._order,n=!0){const r=e.elements,s=r[0],a=r[4],o=r[8],c=r[1],l=r[5],h=r[9],f=r[2],d=r[6],p=r[10];switch(t){case"XYZ":this._y=Math.asin(Ie(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(-h,p),this._z=Math.atan2(-a,s)):(this._x=Math.atan2(d,l),this._z=0);break;case"YXZ":this._x=Math.asin(-Ie(h,-1,1)),Math.abs(h)<.9999999?(this._y=Math.atan2(o,p),this._z=Math.atan2(c,l)):(this._y=Math.atan2(-f,s),this._z=0);break;case"ZXY":this._x=Math.asin(Ie(d,-1,1)),Math.abs(d)<.9999999?(this._y=Math.atan2(-f,p),this._z=Math.atan2(-a,l)):(this._y=0,this._z=Math.atan2(c,s));break;case"ZYX":this._y=Math.asin(-Ie(f,-1,1)),Math.abs(f)<.9999999?(this._x=Math.atan2(d,p),this._z=Math.atan2(c,s)):(this._x=0,this._z=Math.atan2(-a,l));break;case"YZX":this._z=Math.asin(Ie(c,-1,1)),Math.abs(c)<.9999999?(this._x=Math.atan2(-h,l),this._y=Math.atan2(-f,s)):(this._x=0,this._y=Math.atan2(o,p));break;case"XZY":this._z=Math.asin(-Ie(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(d,l),this._y=Math.atan2(o,s)):(this._x=Math.atan2(-h,p),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+t)}return this._order=t,n===!0&&this._onChangeCallback(),this}setFromQuaternion(e,t,n){return qa.makeRotationFromQuaternion(e),this.setFromRotationMatrix(qa,t,n)}setFromVector3(e,t=this._order){return this.set(e.x,e.y,e.z,t)}reorder(e){return Ya.setFromEuler(this),this.setFromQuaternion(Ya,e)}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._order===this._order}fromArray(e){return this._x=e[0],this._y=e[1],this._z=e[2],e[3]!==void 0&&(this._order=e[3]),this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._order,e}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}}qt.DEFAULT_ORDER="XYZ";class dl{constructor(){this.mask=1}set(e){this.mask=(1<>>0}enable(e){this.mask|=1<1){for(let t=0;t1){for(let n=0;n0&&(r.userData=this.userData),r.layers=this.layers.mask,r.matrix=this.matrix.toArray(),r.up=this.up.toArray(),this.matrixAutoUpdate===!1&&(r.matrixAutoUpdate=!1),this.isInstancedMesh&&(r.type="InstancedMesh",r.count=this.count,r.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(r.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(r.type="BatchedMesh",r.perObjectFrustumCulled=this.perObjectFrustumCulled,r.sortObjects=this.sortObjects,r.drawRanges=this._drawRanges,r.reservedRanges=this._reservedRanges,r.visibility=this._visibility,r.active=this._active,r.bounds=this._bounds.map(o=>({boxInitialized:o.boxInitialized,boxMin:o.box.min.toArray(),boxMax:o.box.max.toArray(),sphereInitialized:o.sphereInitialized,sphereRadius:o.sphere.radius,sphereCenter:o.sphere.center.toArray()})),r.maxInstanceCount=this._maxInstanceCount,r.maxVertexCount=this._maxVertexCount,r.maxIndexCount=this._maxIndexCount,r.geometryInitialized=this._geometryInitialized,r.geometryCount=this._geometryCount,r.matricesTexture=this._matricesTexture.toJSON(e),this._colorsTexture!==null&&(r.colorsTexture=this._colorsTexture.toJSON(e)),this.boundingSphere!==null&&(r.boundingSphere={center:r.boundingSphere.center.toArray(),radius:r.boundingSphere.radius}),this.boundingBox!==null&&(r.boundingBox={min:r.boundingBox.min.toArray(),max:r.boundingBox.max.toArray()}));function s(o,c){return o[c.uuid]===void 0&&(o[c.uuid]=c.toJSON(e)),c.uuid}if(this.isScene)this.background&&(this.background.isColor?r.background=this.background.toJSON():this.background.isTexture&&(r.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(r.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){r.geometry=s(e.geometries,this.geometry);const o=this.geometry.parameters;if(o!==void 0&&o.shapes!==void 0){const c=o.shapes;if(Array.isArray(c))for(let l=0,h=c.length;l0){r.children=[];for(let o=0;o0){r.animations=[];for(let o=0;o0&&(n.geometries=o),c.length>0&&(n.materials=c),l.length>0&&(n.textures=l),h.length>0&&(n.images=h),f.length>0&&(n.shapes=f),d.length>0&&(n.skeletons=d),p.length>0&&(n.animations=p),g.length>0&&(n.nodes=g)}return n.object=r,n;function a(o){const c=[];for(const l in o){const h=o[l];delete h.metadata,c.push(h)}return c}}clone(e){return new this.constructor().copy(this,e)}copy(e,t=!0){if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldAutoUpdate=e.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.animations=e.animations.slice(),this.userData=JSON.parse(JSON.stringify(e.userData)),t===!0)for(let n=0;n0?r.multiplyScalar(1/Math.sqrt(s)):r.set(0,0,0)}static getBarycoord(e,t,n,r,s){Ht.subVectors(r,t),tn.subVectors(n,t),Zr.subVectors(e,t);const a=Ht.dot(Ht),o=Ht.dot(tn),c=Ht.dot(Zr),l=tn.dot(tn),h=tn.dot(Zr),f=a*l-o*o;if(f===0)return s.set(0,0,0),null;const d=1/f,p=(l*c-o*h)*d,g=(a*h-o*c)*d;return s.set(1-p-g,g,p)}static containsPoint(e,t,n,r){return this.getBarycoord(e,t,n,r,nn)===null?!1:nn.x>=0&&nn.y>=0&&nn.x+nn.y<=1}static getInterpolation(e,t,n,r,s,a,o,c){return this.getBarycoord(e,t,n,r,nn)===null?(c.x=0,c.y=0,"z"in c&&(c.z=0),"w"in c&&(c.w=0),null):(c.setScalar(0),c.addScaledVector(s,nn.x),c.addScaledVector(a,nn.y),c.addScaledVector(o,nn.z),c)}static getInterpolatedAttribute(e,t,n,r,s,a){return Qr.setScalar(0),es.setScalar(0),ts.setScalar(0),Qr.fromBufferAttribute(e,t),es.fromBufferAttribute(e,n),ts.fromBufferAttribute(e,r),a.setScalar(0),a.addScaledVector(Qr,s.x),a.addScaledVector(es,s.y),a.addScaledVector(ts,s.z),a}static isFrontFacing(e,t,n,r){return Ht.subVectors(n,t),tn.subVectors(e,t),Ht.cross(tn).dot(r)<0}set(e,t,n){return this.a.copy(e),this.b.copy(t),this.c.copy(n),this}setFromPointsAndIndices(e,t,n,r){return this.a.copy(e[t]),this.b.copy(e[n]),this.c.copy(e[r]),this}setFromAttributeAndIndices(e,t,n,r){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,n),this.c.fromBufferAttribute(e,r),this}clone(){return new this.constructor().copy(this)}copy(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}getArea(){return Ht.subVectors(this.c,this.b),tn.subVectors(this.a,this.b),Ht.cross(tn).length()*.5}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(e){return Gt.getNormal(this.a,this.b,this.c,e)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(e,t){return Gt.getBarycoord(e,this.a,this.b,this.c,t)}getInterpolation(e,t,n,r,s){return Gt.getInterpolation(e,this.a,this.b,this.c,t,n,r,s)}containsPoint(e){return Gt.containsPoint(e,this.a,this.b,this.c)}isFrontFacing(e){return Gt.isFrontFacing(this.a,this.b,this.c,e)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,t){const n=this.a,r=this.b,s=this.c;let a,o;jn.subVectors(r,n),Jn.subVectors(s,n),$r.subVectors(e,n);const c=jn.dot($r),l=Jn.dot($r);if(c<=0&&l<=0)return t.copy(n);jr.subVectors(e,r);const h=jn.dot(jr),f=Jn.dot(jr);if(h>=0&&f<=h)return t.copy(r);const d=c*f-h*l;if(d<=0&&c>=0&&h<=0)return a=c/(c-h),t.copy(n).addScaledVector(jn,a);Jr.subVectors(e,s);const p=jn.dot(Jr),g=Jn.dot(Jr);if(g>=0&&p<=g)return t.copy(s);const v=p*l-c*g;if(v<=0&&l>=0&&g<=0)return o=l/(l-g),t.copy(n).addScaledVector(Jn,o);const m=h*g-p*f;if(m<=0&&f-h>=0&&p-g>=0)return Qa.subVectors(s,r),o=(f-h)/(f-h+(p-g)),t.copy(r).addScaledVector(Qa,o);const u=1/(m+v+d);return a=v*u,o=d*u,t.copy(n).addScaledVector(jn,a).addScaledVector(Jn,o)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}}const fl={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},mn={h:0,s:0,l:0},Ki={h:0,s:0,l:0};function ns(i,e,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?i+(e-i)*6*t:t<1/2?e:t<2/3?i+(e-i)*6*(2/3-t):i}class De{constructor(e,t,n){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,t,n)}set(e,t,n){if(t===void 0&&n===void 0){const r=e;r&&r.isColor?this.copy(r):typeof r=="number"?this.setHex(r):typeof r=="string"&&this.setStyle(r)}else this.setRGB(e,t,n);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,t=It){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(e&255)/255,We.toWorkingColorSpace(this,t),this}setRGB(e,t,n,r=We.workingColorSpace){return this.r=e,this.g=t,this.b=n,We.toWorkingColorSpace(this,r),this}setHSL(e,t,n,r=We.workingColorSpace){if(e=_a(e,1),t=Ie(t,0,1),n=Ie(n,0,1),t===0)this.r=this.g=this.b=n;else{const s=n<=.5?n*(1+t):n+t-n*t,a=2*n-s;this.r=ns(a,s,e+1/3),this.g=ns(a,s,e),this.b=ns(a,s,e-1/3)}return We.toWorkingColorSpace(this,r),this}setStyle(e,t=It){function n(s){s!==void 0&&parseFloat(s)<1&&console.warn("THREE.Color: Alpha component of "+e+" will be ignored.")}let r;if(r=/^(\w+)\(([^\)]*)\)/.exec(e)){let s;const a=r[1],o=r[2];switch(a){case"rgb":case"rgba":if(s=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(s[4]),this.setRGB(Math.min(255,parseInt(s[1],10))/255,Math.min(255,parseInt(s[2],10))/255,Math.min(255,parseInt(s[3],10))/255,t);if(s=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(s[4]),this.setRGB(Math.min(100,parseInt(s[1],10))/100,Math.min(100,parseInt(s[2],10))/100,Math.min(100,parseInt(s[3],10))/100,t);break;case"hsl":case"hsla":if(s=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(s[4]),this.setHSL(parseFloat(s[1])/360,parseFloat(s[2])/100,parseFloat(s[3])/100,t);break;default:console.warn("THREE.Color: Unknown color model "+e)}}else if(r=/^\#([A-Fa-f\d]+)$/.exec(e)){const s=r[1],a=s.length;if(a===3)return this.setRGB(parseInt(s.charAt(0),16)/15,parseInt(s.charAt(1),16)/15,parseInt(s.charAt(2),16)/15,t);if(a===6)return this.setHex(parseInt(s,16),t);console.warn("THREE.Color: Invalid hex color "+e)}else if(e&&e.length>0)return this.setColorName(e,t);return this}setColorName(e,t=It){const n=fl[e.toLowerCase()];return n!==void 0?this.setHex(n,t):console.warn("THREE.Color: Unknown color "+e),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=ln(e.r),this.g=ln(e.g),this.b=ln(e.b),this}copyLinearToSRGB(e){return this.r=li(e.r),this.g=li(e.g),this.b=li(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=It){return We.fromWorkingColorSpace(gt.copy(this),e),Math.round(Ie(gt.r*255,0,255))*65536+Math.round(Ie(gt.g*255,0,255))*256+Math.round(Ie(gt.b*255,0,255))}getHexString(e=It){return("000000"+this.getHex(e).toString(16)).slice(-6)}getHSL(e,t=We.workingColorSpace){We.fromWorkingColorSpace(gt.copy(this),t);const n=gt.r,r=gt.g,s=gt.b,a=Math.max(n,r,s),o=Math.min(n,r,s);let c,l;const h=(o+a)/2;if(o===a)c=0,l=0;else{const f=a-o;switch(l=h<=.5?f/(a+o):f/(2-a-o),a){case n:c=(r-s)/f+(r0!=e>0&&this.version++,this._alphaTest=e}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(e!==void 0)for(const t in e){const n=e[t];if(n===void 0){console.warn(`THREE.Material: parameter '${t}' has value of undefined.`);continue}const r=this[t];if(r===void 0){console.warn(`THREE.Material: '${t}' is not a property of THREE.${this.type}.`);continue}r&&r.isColor?r.set(n):r&&r.isVector3&&n&&n.isVector3?r.copy(n):this[t]=n}}toJSON(e){const t=e===void 0||typeof e=="string";t&&(e={textures:{},images:{}});const n={metadata:{version:4.6,type:"Material",generator:"Material.toJSON"}};n.uuid=this.uuid,n.type=this.type,this.name!==""&&(n.name=this.name),this.color&&this.color.isColor&&(n.color=this.color.getHex()),this.roughness!==void 0&&(n.roughness=this.roughness),this.metalness!==void 0&&(n.metalness=this.metalness),this.sheen!==void 0&&(n.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(n.sheenColor=this.sheenColor.getHex()),this.sheenRoughness!==void 0&&(n.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(n.emissive=this.emissive.getHex()),this.emissiveIntensity!==void 0&&this.emissiveIntensity!==1&&(n.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(n.specular=this.specular.getHex()),this.specularIntensity!==void 0&&(n.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(n.specularColor=this.specularColor.getHex()),this.shininess!==void 0&&(n.shininess=this.shininess),this.clearcoat!==void 0&&(n.clearcoat=this.clearcoat),this.clearcoatRoughness!==void 0&&(n.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(n.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(n.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(n.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,n.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.dispersion!==void 0&&(n.dispersion=this.dispersion),this.iridescence!==void 0&&(n.iridescence=this.iridescence),this.iridescenceIOR!==void 0&&(n.iridescenceIOR=this.iridescenceIOR),this.iridescenceThicknessRange!==void 0&&(n.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(n.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(n.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),this.anisotropy!==void 0&&(n.anisotropy=this.anisotropy),this.anisotropyRotation!==void 0&&(n.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(n.anisotropyMap=this.anisotropyMap.toJSON(e).uuid),this.map&&this.map.isTexture&&(n.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(n.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(n.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(n.lightMap=this.lightMap.toJSON(e).uuid,n.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(n.aoMap=this.aoMap.toJSON(e).uuid,n.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(n.bumpMap=this.bumpMap.toJSON(e).uuid,n.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(n.normalMap=this.normalMap.toJSON(e).uuid,n.normalMapType=this.normalMapType,n.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(n.displacementMap=this.displacementMap.toJSON(e).uuid,n.displacementScale=this.displacementScale,n.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(n.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(n.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(n.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(n.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(n.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(n.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(n.envMap=this.envMap.toJSON(e).uuid,this.combine!==void 0&&(n.combine=this.combine)),this.envMapRotation!==void 0&&(n.envMapRotation=this.envMapRotation.toArray()),this.envMapIntensity!==void 0&&(n.envMapIntensity=this.envMapIntensity),this.reflectivity!==void 0&&(n.reflectivity=this.reflectivity),this.refractionRatio!==void 0&&(n.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(n.gradientMap=this.gradientMap.toJSON(e).uuid),this.transmission!==void 0&&(n.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(n.transmissionMap=this.transmissionMap.toJSON(e).uuid),this.thickness!==void 0&&(n.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(n.thicknessMap=this.thicknessMap.toJSON(e).uuid),this.attenuationDistance!==void 0&&this.attenuationDistance!==1/0&&(n.attenuationDistance=this.attenuationDistance),this.attenuationColor!==void 0&&(n.attenuationColor=this.attenuationColor.getHex()),this.size!==void 0&&(n.size=this.size),this.shadowSide!==null&&(n.shadowSide=this.shadowSide),this.sizeAttenuation!==void 0&&(n.sizeAttenuation=this.sizeAttenuation),this.blending!==ai&&(n.blending=this.blending),this.side!==Sn&&(n.side=this.side),this.vertexColors===!0&&(n.vertexColors=!0),this.opacity<1&&(n.opacity=this.opacity),this.transparent===!0&&(n.transparent=!0),this.blendSrc!==vs&&(n.blendSrc=this.blendSrc),this.blendDst!==xs&&(n.blendDst=this.blendDst),this.blendEquation!==Nn&&(n.blendEquation=this.blendEquation),this.blendSrcAlpha!==null&&(n.blendSrcAlpha=this.blendSrcAlpha),this.blendDstAlpha!==null&&(n.blendDstAlpha=this.blendDstAlpha),this.blendEquationAlpha!==null&&(n.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(n.blendColor=this.blendColor.getHex()),this.blendAlpha!==0&&(n.blendAlpha=this.blendAlpha),this.depthFunc!==ci&&(n.depthFunc=this.depthFunc),this.depthTest===!1&&(n.depthTest=this.depthTest),this.depthWrite===!1&&(n.depthWrite=this.depthWrite),this.colorWrite===!1&&(n.colorWrite=this.colorWrite),this.stencilWriteMask!==255&&(n.stencilWriteMask=this.stencilWriteMask),this.stencilFunc!==za&&(n.stencilFunc=this.stencilFunc),this.stencilRef!==0&&(n.stencilRef=this.stencilRef),this.stencilFuncMask!==255&&(n.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==Gn&&(n.stencilFail=this.stencilFail),this.stencilZFail!==Gn&&(n.stencilZFail=this.stencilZFail),this.stencilZPass!==Gn&&(n.stencilZPass=this.stencilZPass),this.stencilWrite===!0&&(n.stencilWrite=this.stencilWrite),this.rotation!==void 0&&this.rotation!==0&&(n.rotation=this.rotation),this.polygonOffset===!0&&(n.polygonOffset=!0),this.polygonOffsetFactor!==0&&(n.polygonOffsetFactor=this.polygonOffsetFactor),this.polygonOffsetUnits!==0&&(n.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth!==void 0&&this.linewidth!==1&&(n.linewidth=this.linewidth),this.dashSize!==void 0&&(n.dashSize=this.dashSize),this.gapSize!==void 0&&(n.gapSize=this.gapSize),this.scale!==void 0&&(n.scale=this.scale),this.dithering===!0&&(n.dithering=!0),this.alphaTest>0&&(n.alphaTest=this.alphaTest),this.alphaHash===!0&&(n.alphaHash=!0),this.alphaToCoverage===!0&&(n.alphaToCoverage=!0),this.premultipliedAlpha===!0&&(n.premultipliedAlpha=!0),this.forceSinglePass===!0&&(n.forceSinglePass=!0),this.wireframe===!0&&(n.wireframe=!0),this.wireframeLinewidth>1&&(n.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!=="round"&&(n.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!=="round"&&(n.wireframeLinejoin=this.wireframeLinejoin),this.flatShading===!0&&(n.flatShading=!0),this.visible===!1&&(n.visible=!1),this.toneMapped===!1&&(n.toneMapped=!1),this.fog===!1&&(n.fog=!1),Object.keys(this.userData).length>0&&(n.userData=this.userData);function r(s){const a=[];for(const o in s){const c=s[o];delete c.metadata,a.push(c)}return a}if(t){const s=r(e.textures),a=r(e.images);s.length>0&&(n.textures=s),a.length>0&&(n.images=a)}return n}clone(){return new this.constructor().copy(this)}copy(e){this.name=e.name,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.blendColor.copy(e.blendColor),this.blendAlpha=e.blendAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;const t=e.clippingPlanes;let n=null;if(t!==null){const r=t.length;n=new Array(r);for(let s=0;s!==r;++s)n[s]=t[s].clone()}return this.clippingPlanes=n,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipShadows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.alphaHash=e.alphaHash,this.alphaToCoverage=e.alphaToCoverage,this.premultipliedAlpha=e.premultipliedAlpha,this.forceSinglePass=e.forceSinglePass,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(e){e===!0&&this.version++}onBuild(){console.warn("Material: onBuild() has been removed.")}}class pl extends Tn{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new De(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new qt,this.combine=la,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}}const ct=new N,Zi=new Ve;let hh=0;class Ft{constructor(e,t,n=!1){if(Array.isArray(e))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,Object.defineProperty(this,"id",{value:hh++}),this.name="",this.array=e,this.itemSize=t,this.count=e!==void 0?e.length/t:0,this.normalized=n,this.usage=ra,this.updateRanges=[],this.gpuType=Wt,this.version=0}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this.gpuType=e.gpuType,this}copyAt(e,t,n){e*=this.itemSize,n*=t.itemSize;for(let r=0,s=this.itemSize;rt.count&&console.warn("THREE.BufferGeometry: Buffer size too small for points data. Use .dispose() and create a new geometry."),t.needsUpdate=!0}return this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new En);const e=this.attributes.position,t=this.morphAttributes.position;if(e&&e.isGLBufferAttribute){console.error("THREE.BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box.",this),this.boundingBox.set(new N(-1/0,-1/0,-1/0),new N(1/0,1/0,1/0));return}if(e!==void 0){if(this.boundingBox.setFromBufferAttribute(e),t)for(let n=0,r=t.length;n0&&(e.userData=this.userData),this.parameters!==void 0){const c=this.parameters;for(const l in c)c[l]!==void 0&&(e[l]=c[l]);return e}e.data={attributes:{}};const t=this.index;t!==null&&(e.data.index={type:t.array.constructor.name,array:Array.prototype.slice.call(t.array)});const n=this.attributes;for(const c in n){const l=n[c];e.data.attributes[c]=l.toJSON(e.data)}const r={};let s=!1;for(const c in this.morphAttributes){const l=this.morphAttributes[c],h=[];for(let f=0,d=l.length;f0&&(r[c]=h,s=!0)}s&&(e.data.morphAttributes=r,e.data.morphTargetsRelative=this.morphTargetsRelative);const a=this.groups;a.length>0&&(e.data.groups=JSON.parse(JSON.stringify(a)));const o=this.boundingSphere;return o!==null&&(e.data.boundingSphere={center:o.center.toArray(),radius:o.radius}),e}clone(){return new this.constructor().copy(this)}copy(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;const t={};this.name=e.name;const n=e.index;n!==null&&this.setIndex(n.clone(t));const r=e.attributes;for(const l in r){const h=r[l];this.setAttribute(l,h.clone(t))}const s=e.morphAttributes;for(const l in s){const h=[],f=s[l];for(let d=0,p=f.length;d0){const r=t[n[0]];if(r!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let s=0,a=r.length;s(e.far-e.near)**2))&&(eo.copy(s).invert(),Cn.copy(e.ray).applyMatrix4(eo),!(n.boundingBox!==null&&Cn.intersectsBox(n.boundingBox)===!1)&&this._computeIntersections(e,t,Cn)))}_computeIntersections(e,t,n){let r;const s=this.geometry,a=this.material,o=s.index,c=s.attributes.position,l=s.attributes.uv,h=s.attributes.uv1,f=s.attributes.normal,d=s.groups,p=s.drawRange;if(o!==null)if(Array.isArray(a))for(let g=0,v=d.length;gt.far?null:{distance:l,point:tr.clone(),object:i}}function nr(i,e,t,n,r,s,a,o,c,l){i.getVertexPosition(o,ji),i.getVertexPosition(c,Ji),i.getVertexPosition(l,Qi);const h=dh(i,e,t,n,ji,Ji,Qi,no);if(h){const f=new N;Gt.getBarycoord(no,ji,Ji,Qi,f),r&&(h.uv=Gt.getInterpolatedAttribute(r,o,c,l,f,new Ve)),s&&(h.uv1=Gt.getInterpolatedAttribute(s,o,c,l,f,new Ve)),a&&(h.normal=Gt.getInterpolatedAttribute(a,o,c,l,f,new N),h.normal.dot(n.direction)>0&&h.normal.multiplyScalar(-1));const d={a:o,b:c,c:l,normal:new N,materialIndex:0};Gt.getNormal(ji,Ji,Qi,d.normal),h.face=d,h.barycoord=f}return h}class Fi extends Yt{constructor(e=1,t=1,n=1,r=1,s=1,a=1){super(),this.type="BoxGeometry",this.parameters={width:e,height:t,depth:n,widthSegments:r,heightSegments:s,depthSegments:a};const o=this;r=Math.floor(r),s=Math.floor(s),a=Math.floor(a);const c=[],l=[],h=[],f=[];let d=0,p=0;g("z","y","x",-1,-1,n,t,e,a,s,0),g("z","y","x",1,-1,n,t,-e,a,s,1),g("x","z","y",1,1,e,n,t,r,a,2),g("x","z","y",1,-1,e,n,-t,r,a,3),g("x","y","z",1,-1,e,t,n,r,s,4),g("x","y","z",-1,-1,e,t,-n,r,s,5),this.setIndex(c),this.setAttribute("position",new Et(l,3)),this.setAttribute("normal",new Et(h,3)),this.setAttribute("uv",new Et(f,2));function g(v,m,u,b,T,y,D,w,R,U,S){const M=y/R,C=D/U,V=y/2,z=D/2,G=w/2,Z=R+1,W=U+1;let Q=0,k=0;const re=new N;for(let he=0;he0?1:-1,h.push(re.x,re.y,re.z),f.push(Ue/R),f.push(1-he/U),Q+=1}}for(let he=0;he0&&(t.defines=this.defines),t.vertexShader=this.vertexShader,t.fragmentShader=this.fragmentShader,t.lights=this.lights,t.clipping=this.clipping;const n={};for(const r in this.extensions)this.extensions[r]===!0&&(n[r]=!0);return Object.keys(n).length>0&&(t.extensions=n),t}}class vl extends ot{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new Ne,this.projectionMatrix=new Ne,this.projectionMatrixInverse=new Ne,this.coordinateSystem=on}copy(e,t){return super.copy(e,t),this.matrixWorldInverse.copy(e.matrixWorldInverse),this.projectionMatrix.copy(e.projectionMatrix),this.projectionMatrixInverse.copy(e.projectionMatrixInverse),this.coordinateSystem=e.coordinateSystem,this}getWorldDirection(e){return super.getWorldDirection(e).negate()}updateMatrixWorld(e){super.updateMatrixWorld(e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(e,t){super.updateWorldMatrix(e,t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return new this.constructor().copy(this)}}const gn=new N,io=new Ve,ro=new Ve;class wt extends vl{constructor(e=50,t=1,n=.1,r=2e3){super(),this.isPerspectiveCamera=!0,this.type="PerspectiveCamera",this.fov=e,this.zoom=1,this.near=n,this.far=r,this.focus=10,this.aspect=t,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.fov=e.fov,this.zoom=e.zoom,this.near=e.near,this.far=e.far,this.focus=e.focus,this.aspect=e.aspect,this.view=e.view===null?null:Object.assign({},e.view),this.filmGauge=e.filmGauge,this.filmOffset=e.filmOffset,this}setFocalLength(e){const t=.5*this.getFilmHeight()/e;this.fov=mi*2*Math.atan(t),this.updateProjectionMatrix()}getFocalLength(){const e=Math.tan(Li*.5*this.fov);return .5*this.getFilmHeight()/e}getEffectiveFOV(){return mi*2*Math.atan(Math.tan(Li*.5*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}getViewBounds(e,t,n){gn.set(-1,-1,.5).applyMatrix4(this.projectionMatrixInverse),t.set(gn.x,gn.y).multiplyScalar(-e/gn.z),gn.set(1,1,.5).applyMatrix4(this.projectionMatrixInverse),n.set(gn.x,gn.y).multiplyScalar(-e/gn.z)}getViewSize(e,t){return this.getViewBounds(e,io,ro),t.subVectors(ro,io)}setViewOffset(e,t,n,r,s,a){this.aspect=e/t,this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=n,this.view.offsetY=r,this.view.width=s,this.view.height=a,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=this.near;let t=e*Math.tan(Li*.5*this.fov)/this.zoom,n=2*t,r=this.aspect*n,s=-.5*r;const a=this.view;if(this.view!==null&&this.view.enabled){const c=a.fullWidth,l=a.fullHeight;s+=a.offsetX*r/c,t-=a.offsetY*n/l,r*=a.width/c,n*=a.height/l}const o=this.filmOffset;o!==0&&(s+=e*o/this.getFilmWidth()),this.projectionMatrix.makePerspective(s,s+r,t,t-n,e,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.fov=this.fov,t.object.zoom=this.zoom,t.object.near=this.near,t.object.far=this.far,t.object.focus=this.focus,t.object.aspect=this.aspect,this.view!==null&&(t.object.view=Object.assign({},this.view)),t.object.filmGauge=this.filmGauge,t.object.filmOffset=this.filmOffset,t}}const ei=-90,ti=1;class _h extends ot{constructor(e,t,n){super(),this.type="CubeCamera",this.renderTarget=n,this.coordinateSystem=null,this.activeMipmapLevel=0;const r=new wt(ei,ti,e,t);r.layers=this.layers,this.add(r);const s=new wt(ei,ti,e,t);s.layers=this.layers,this.add(s);const a=new wt(ei,ti,e,t);a.layers=this.layers,this.add(a);const o=new wt(ei,ti,e,t);o.layers=this.layers,this.add(o);const c=new wt(ei,ti,e,t);c.layers=this.layers,this.add(c);const l=new wt(ei,ti,e,t);l.layers=this.layers,this.add(l)}updateCoordinateSystem(){const e=this.coordinateSystem,t=this.children.concat(),[n,r,s,a,o,c]=t;for(const l of t)this.remove(l);if(e===on)n.up.set(0,1,0),n.lookAt(1,0,0),r.up.set(0,1,0),r.lookAt(-1,0,0),s.up.set(0,0,-1),s.lookAt(0,1,0),a.up.set(0,0,1),a.lookAt(0,-1,0),o.up.set(0,1,0),o.lookAt(0,0,1),c.up.set(0,1,0),c.lookAt(0,0,-1);else if(e===Tr)n.up.set(0,-1,0),n.lookAt(-1,0,0),r.up.set(0,-1,0),r.lookAt(1,0,0),s.up.set(0,0,1),s.lookAt(0,1,0),a.up.set(0,0,-1),a.lookAt(0,-1,0),o.up.set(0,-1,0),o.lookAt(0,0,1),c.up.set(0,-1,0),c.lookAt(0,0,-1);else throw new Error("THREE.CubeCamera.updateCoordinateSystem(): Invalid coordinate system: "+e);for(const l of t)this.add(l),l.updateMatrixWorld()}update(e,t){this.parent===null&&this.updateMatrixWorld();const{renderTarget:n,activeMipmapLevel:r}=this;this.coordinateSystem!==e.coordinateSystem&&(this.coordinateSystem=e.coordinateSystem,this.updateCoordinateSystem());const[s,a,o,c,l,h]=this.children,f=e.getRenderTarget(),d=e.getActiveCubeFace(),p=e.getActiveMipmapLevel(),g=e.xr.enabled;e.xr.enabled=!1;const v=n.texture.generateMipmaps;n.texture.generateMipmaps=!1,e.setRenderTarget(n,0,r),e.render(t,s),e.setRenderTarget(n,1,r),e.render(t,a),e.setRenderTarget(n,2,r),e.render(t,o),e.setRenderTarget(n,3,r),e.render(t,c),e.setRenderTarget(n,4,r),e.render(t,l),n.texture.generateMipmaps=v,e.setRenderTarget(n,5,r),e.render(t,h),e.setRenderTarget(f,d,p),e.xr.enabled=g,n.texture.needsPMREMUpdate=!0}}class xl extends _t{constructor(e,t,n,r,s,a,o,c,l,h){e=e!==void 0?e:[],t=t!==void 0?t:hi,super(e,t,n,r,s,a,o,c,l,h),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}}class vh extends Vn{constructor(e=1,t={}){super(e,e,t),this.isWebGLCubeRenderTarget=!0;const n={width:e,height:e,depth:1},r=[n,n,n,n,n,n];this.texture=new xl(r,t.mapping,t.wrapS,t.wrapT,t.magFilter,t.minFilter,t.format,t.type,t.anisotropy,t.colorSpace),this.texture.isRenderTargetTexture=!0,this.texture.generateMipmaps=t.generateMipmaps!==void 0?t.generateMipmaps:!1,this.texture.minFilter=t.minFilter!==void 0?t.minFilter:Zt}fromEquirectangularTexture(e,t){this.texture.type=t.type,this.texture.colorSpace=t.colorSpace,this.texture.generateMipmaps=t.generateMipmaps,this.texture.minFilter=t.minFilter,this.texture.magFilter=t.magFilter;const n={uniforms:{tEquirect:{value:null}},vertexShader:` + + varying vec3 vWorldDirection; + + vec3 transformDirection( in vec3 dir, in mat4 matrix ) { + + return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz ); + + } + + void main() { + + vWorldDirection = transformDirection( position, modelMatrix ); + + #include + #include + + } + `,fragmentShader:` + + uniform sampler2D tEquirect; + + varying vec3 vWorldDirection; + + #include + + void main() { + + vec3 direction = normalize( vWorldDirection ); + + vec2 sampleUV = equirectUv( direction ); + + gl_FragColor = texture2D( tEquirect, sampleUV ); + + } + `},r=new Fi(5,5,5),s=new yn({name:"CubemapFromEquirect",uniforms:gi(n.uniforms),vertexShader:n.vertexShader,fragmentShader:n.fragmentShader,side:yt,blending:xn});s.uniforms.tEquirect.value=t;const a=new Nt(r,s),o=t.minFilter;return t.minFilter===Bn&&(t.minFilter=Zt),new _h(1,10,this).update(e,a),t.minFilter=o,a.geometry.dispose(),a.material.dispose(),this}clear(e,t,n,r){const s=e.getRenderTarget();for(let a=0;a<6;a++)e.setRenderTarget(this,a),e.clear(t,n,r);e.setRenderTarget(s)}}class ir extends ot{constructor(){super(),this.isGroup=!0,this.type="Group"}}const xh={type:"move"};class ss{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return this._hand===null&&(this._hand=new ir,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints={},this._hand.inputState={pinching:!1}),this._hand}getTargetRaySpace(){return this._targetRay===null&&(this._targetRay=new ir,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new N,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new N),this._targetRay}getGripSpace(){return this._grip===null&&(this._grip=new ir,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new N,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new N),this._grip}dispatchEvent(e){return this._targetRay!==null&&this._targetRay.dispatchEvent(e),this._grip!==null&&this._grip.dispatchEvent(e),this._hand!==null&&this._hand.dispatchEvent(e),this}connect(e){if(e&&e.hand){const t=this._hand;if(t)for(const n of e.hand.values())this._getHandJoint(t,n)}return this.dispatchEvent({type:"connected",data:e}),this}disconnect(e){return this.dispatchEvent({type:"disconnected",data:e}),this._targetRay!==null&&(this._targetRay.visible=!1),this._grip!==null&&(this._grip.visible=!1),this._hand!==null&&(this._hand.visible=!1),this}update(e,t,n){let r=null,s=null,a=null;const o=this._targetRay,c=this._grip,l=this._hand;if(e&&t.session.visibilityState!=="visible-blurred"){if(l&&e.hand){a=!0;for(const v of e.hand.values()){const m=t.getJointPose(v,n),u=this._getHandJoint(l,v);m!==null&&(u.matrix.fromArray(m.transform.matrix),u.matrix.decompose(u.position,u.rotation,u.scale),u.matrixWorldNeedsUpdate=!0,u.jointRadius=m.radius),u.visible=m!==null}const h=l.joints["index-finger-tip"],f=l.joints["thumb-tip"],d=h.position.distanceTo(f.position),p=.02,g=.005;l.inputState.pinching&&d>p+g?(l.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!l.inputState.pinching&&d<=p-g&&(l.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else c!==null&&e.gripSpace&&(s=t.getPose(e.gripSpace,n),s!==null&&(c.matrix.fromArray(s.transform.matrix),c.matrix.decompose(c.position,c.rotation,c.scale),c.matrixWorldNeedsUpdate=!0,s.linearVelocity?(c.hasLinearVelocity=!0,c.linearVelocity.copy(s.linearVelocity)):c.hasLinearVelocity=!1,s.angularVelocity?(c.hasAngularVelocity=!0,c.angularVelocity.copy(s.angularVelocity)):c.hasAngularVelocity=!1));o!==null&&(r=t.getPose(e.targetRaySpace,n),r===null&&s!==null&&(r=s),r!==null&&(o.matrix.fromArray(r.transform.matrix),o.matrix.decompose(o.position,o.rotation,o.scale),o.matrixWorldNeedsUpdate=!0,r.linearVelocity?(o.hasLinearVelocity=!0,o.linearVelocity.copy(r.linearVelocity)):o.hasLinearVelocity=!1,r.angularVelocity?(o.hasAngularVelocity=!0,o.angularVelocity.copy(r.angularVelocity)):o.hasAngularVelocity=!1,this.dispatchEvent(xh)))}return o!==null&&(o.visible=r!==null),c!==null&&(c.visible=s!==null),l!==null&&(l.visible=a!==null),this}_getHandJoint(e,t){if(e.joints[t.jointName]===void 0){const n=new ir;n.matrixAutoUpdate=!1,n.visible=!1,e.joints[t.jointName]=n,e.add(n)}return e.joints[t.jointName]}}class qm extends ot{constructor(){super(),this.isScene=!0,this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.backgroundBlurriness=0,this.backgroundIntensity=1,this.backgroundRotation=new qt,this.environmentIntensity=1,this.environmentRotation=new qt,this.overrideMaterial=null,typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(e,t){return super.copy(e,t),e.background!==null&&(this.background=e.background.clone()),e.environment!==null&&(this.environment=e.environment.clone()),e.fog!==null&&(this.fog=e.fog.clone()),this.backgroundBlurriness=e.backgroundBlurriness,this.backgroundIntensity=e.backgroundIntensity,this.backgroundRotation.copy(e.backgroundRotation),this.environmentIntensity=e.environmentIntensity,this.environmentRotation.copy(e.environmentRotation),e.overrideMaterial!==null&&(this.overrideMaterial=e.overrideMaterial.clone()),this.matrixAutoUpdate=e.matrixAutoUpdate,this}toJSON(e){const t=super.toJSON(e);return this.fog!==null&&(t.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(t.object.backgroundBlurriness=this.backgroundBlurriness),this.backgroundIntensity!==1&&(t.object.backgroundIntensity=this.backgroundIntensity),t.object.backgroundRotation=this.backgroundRotation.toArray(),this.environmentIntensity!==1&&(t.object.environmentIntensity=this.environmentIntensity),t.object.environmentRotation=this.environmentRotation.toArray(),t}}class Ym{constructor(e,t){this.isInterleavedBuffer=!0,this.array=e,this.stride=t,this.count=e!==void 0?e.length/t:0,this.usage=ra,this.updateRanges=[],this.version=0,this.uuid=Xt()}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.array=new e.array.constructor(e.array),this.count=e.count,this.stride=e.stride,this.usage=e.usage,this}copyAt(e,t,n){e*=this.stride,n*=t.stride;for(let r=0,s=this.stride;r1?null:t.copy(e.start).addScaledVector(n,s)}intersectsLine(e){const t=this.distanceToPoint(e.start),n=this.distanceToPoint(e.end);return t<0&&n>0||n<0&&t>0}intersectsBox(e){return e.intersectsPlane(this)}intersectsSphere(e){return e.intersectsPlane(this)}coplanarPoint(e){return e.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(e,t){const n=t||bh.getNormalMatrix(e),r=this.coplanarPoint(ls).applyMatrix4(e),s=this.normal.applyMatrix3(n).normalize();return this.constant=-r.dot(s),this}translate(e){return this.constant-=e.dot(this.normal),this}equals(e){return e.normal.equals(this.normal)&&e.constant===this.constant}clone(){return new this.constructor().copy(this)}}const Pn=new hn,ar=new N;class va{constructor(e=new In,t=new In,n=new In,r=new In,s=new In,a=new In){this.planes=[e,t,n,r,s,a]}set(e,t,n,r,s,a){const o=this.planes;return o[0].copy(e),o[1].copy(t),o[2].copy(n),o[3].copy(r),o[4].copy(s),o[5].copy(a),this}copy(e){const t=this.planes;for(let n=0;n<6;n++)t[n].copy(e.planes[n]);return this}setFromProjectionMatrix(e,t=on){const n=this.planes,r=e.elements,s=r[0],a=r[1],o=r[2],c=r[3],l=r[4],h=r[5],f=r[6],d=r[7],p=r[8],g=r[9],v=r[10],m=r[11],u=r[12],b=r[13],T=r[14],y=r[15];if(n[0].setComponents(c-s,d-l,m-p,y-u).normalize(),n[1].setComponents(c+s,d+l,m+p,y+u).normalize(),n[2].setComponents(c+a,d+h,m+g,y+b).normalize(),n[3].setComponents(c-a,d-h,m-g,y-b).normalize(),n[4].setComponents(c-o,d-f,m-v,y-T).normalize(),t===on)n[5].setComponents(c+o,d+f,m+v,y+T).normalize();else if(t===Tr)n[5].setComponents(o,f,v,T).normalize();else throw new Error("THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: "+t);return this}intersectsObject(e){if(e.boundingSphere!==void 0)e.boundingSphere===null&&e.computeBoundingSphere(),Pn.copy(e.boundingSphere).applyMatrix4(e.matrixWorld);else{const t=e.geometry;t.boundingSphere===null&&t.computeBoundingSphere(),Pn.copy(t.boundingSphere).applyMatrix4(e.matrixWorld)}return this.intersectsSphere(Pn)}intersectsSprite(e){return Pn.center.set(0,0,0),Pn.radius=.7071067811865476,Pn.applyMatrix4(e.matrixWorld),this.intersectsSphere(Pn)}intersectsSphere(e){const t=this.planes,n=e.center,r=-e.radius;for(let s=0;s<6;s++)if(t[s].distanceToPoint(n)0?e.max.x:e.min.x,ar.y=r.normal.y>0?e.max.y:e.min.y,ar.z=r.normal.z>0?e.max.z:e.min.z,r.distanceToPoint(ar)<0)return!1}return!0}containsPoint(e){const t=this.planes;for(let n=0;n<6;n++)if(t[n].distanceToPoint(e)<0)return!1;return!0}clone(){return new this.constructor().copy(this)}}class El extends Tn{constructor(e){super(),this.isLineBasicMaterial=!0,this.type="LineBasicMaterial",this.color=new De(16777215),this.map=null,this.linewidth=1,this.linecap="round",this.linejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.linewidth=e.linewidth,this.linecap=e.linecap,this.linejoin=e.linejoin,this.fog=e.fog,this}}const br=new N,Ar=new N,mo=new Ne,Ri=new Pr,or=new hn,cs=new N,go=new N;class Tl extends ot{constructor(e=new Yt,t=new El){super(),this.isLine=!0,this.type="Line",this.geometry=e,this.material=t,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}computeLineDistances(){const e=this.geometry;if(e.index===null){const t=e.attributes.position,n=[0];for(let r=1,s=t.count;r0){const r=t[n[0]];if(r!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let s=0,a=r.length;sn)return;cs.applyMatrix4(i.matrixWorld);const l=e.ray.origin.distanceTo(cs);if(!(le.far))return{distance:l,point:go.clone().applyMatrix4(i.matrixWorld),index:a,face:null,faceIndex:null,barycoord:null,object:i}}const _o=new N,vo=new N;class Ah extends Tl{constructor(e,t){super(e,t),this.isLineSegments=!0,this.type="LineSegments"}computeLineDistances(){const e=this.geometry;if(e.index===null){const t=e.attributes.position,n=[];for(let r=0,s=t.count;r0){const r=t[n[0]];if(r!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let s=0,a=r.length;sr.far)return;s.push({distance:l,distanceToRay:Math.sqrt(o),point:c,index:e,face:null,faceIndex:null,barycoord:null,object:a})}}class bl extends _t{constructor(e,t,n,r,s,a,o,c,l,h=oi){if(h!==oi&&h!==fi)throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");n===void 0&&h===oi&&(n=zn),n===void 0&&h===fi&&(n=di),super(null,r,s,a,o,c,h,n,l),this.isDepthTexture=!0,this.image={width:e,height:t},this.magFilter=o!==void 0?o:Rt,this.minFilter=c!==void 0?c:Rt,this.flipY=!1,this.generateMipmaps=!1,this.compareFunction=null}copy(e){return super.copy(e),this.compareFunction=e.compareFunction,this}toJSON(e){const t=super.toJSON(e);return this.compareFunction!==null&&(t.compareFunction=this.compareFunction),t}}class xa extends Yt{constructor(e=1,t=1,n=1,r=32,s=1,a=!1,o=0,c=Math.PI*2){super(),this.type="CylinderGeometry",this.parameters={radiusTop:e,radiusBottom:t,height:n,radialSegments:r,heightSegments:s,openEnded:a,thetaStart:o,thetaLength:c};const l=this;r=Math.floor(r),s=Math.floor(s);const h=[],f=[],d=[],p=[];let g=0;const v=[],m=n/2;let u=0;b(),a===!1&&(e>0&&T(!0),t>0&&T(!1)),this.setIndex(h),this.setAttribute("position",new Et(f,3)),this.setAttribute("normal",new Et(d,3)),this.setAttribute("uv",new Et(p,2));function b(){const y=new N,D=new N;let w=0;const R=(t-e)/n;for(let U=0;U<=s;U++){const S=[],M=U/s,C=M*(t-e)+e;for(let V=0;V<=r;V++){const z=V/r,G=z*c+o,Z=Math.sin(G),W=Math.cos(G);D.x=C*Z,D.y=-M*n+m,D.z=C*W,f.push(D.x,D.y,D.z),y.set(Z,R,W).normalize(),d.push(y.x,y.y,y.z),p.push(z,1-M),S.push(g++)}v.push(S)}for(let U=0;U0||S!==0)&&(h.push(M,C,z),w+=3),(t>0||S!==s-1)&&(h.push(C,V,z),w+=3)}l.addGroup(u,w,0),u+=w}function T(y){const D=g,w=new Ve,R=new N;let U=0;const S=y===!0?e:t,M=y===!0?1:-1;for(let V=1;V<=r;V++)f.push(0,m*M,0),d.push(0,M,0),p.push(.5,.5),g++;const C=g;for(let V=0;V<=r;V++){const G=V/r*c+o,Z=Math.cos(G),W=Math.sin(G);R.x=S*W,R.y=m*M,R.z=S*Z,f.push(R.x,R.y,R.z),d.push(0,M,0),w.x=Z*.5+.5,w.y=W*.5*M+.5,p.push(w.x,w.y),g++}for(let V=0;V0!=e>0&&this.version++,this._anisotropy=e}get clearcoat(){return this._clearcoat}set clearcoat(e){this._clearcoat>0!=e>0&&this.version++,this._clearcoat=e}get iridescence(){return this._iridescence}set iridescence(e){this._iridescence>0!=e>0&&this.version++,this._iridescence=e}get dispersion(){return this._dispersion}set dispersion(e){this._dispersion>0!=e>0&&this.version++,this._dispersion=e}get sheen(){return this._sheen}set sheen(e){this._sheen>0!=e>0&&this.version++,this._sheen=e}get transmission(){return this._transmission}set transmission(e){this._transmission>0!=e>0&&this.version++,this._transmission=e}copy(e){return super.copy(e),this.defines={STANDARD:"",PHYSICAL:""},this.anisotropy=e.anisotropy,this.anisotropyRotation=e.anisotropyRotation,this.anisotropyMap=e.anisotropyMap,this.clearcoat=e.clearcoat,this.clearcoatMap=e.clearcoatMap,this.clearcoatRoughness=e.clearcoatRoughness,this.clearcoatRoughnessMap=e.clearcoatRoughnessMap,this.clearcoatNormalMap=e.clearcoatNormalMap,this.clearcoatNormalScale.copy(e.clearcoatNormalScale),this.dispersion=e.dispersion,this.ior=e.ior,this.iridescence=e.iridescence,this.iridescenceMap=e.iridescenceMap,this.iridescenceIOR=e.iridescenceIOR,this.iridescenceThicknessRange=[...e.iridescenceThicknessRange],this.iridescenceThicknessMap=e.iridescenceThicknessMap,this.sheen=e.sheen,this.sheenColor.copy(e.sheenColor),this.sheenColorMap=e.sheenColorMap,this.sheenRoughness=e.sheenRoughness,this.sheenRoughnessMap=e.sheenRoughnessMap,this.transmission=e.transmission,this.transmissionMap=e.transmissionMap,this.thickness=e.thickness,this.thicknessMap=e.thicknessMap,this.attenuationDistance=e.attenuationDistance,this.attenuationColor.copy(e.attenuationColor),this.specularIntensity=e.specularIntensity,this.specularIntensityMap=e.specularIntensityMap,this.specularColor.copy(e.specularColor),this.specularColorMap=e.specularColorMap,this}}class Qm extends Tn{constructor(e){super(),this.isMeshPhongMaterial=!0,this.type="MeshPhongMaterial",this.color=new De(16777215),this.specular=new De(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new De(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=ga,this.normalScale=new Ve(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new qt,this.combine=la,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.specular.copy(e.specular),this.shininess=e.shininess,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}}class Ch extends Tn{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type="MeshDepthMaterial",this.depthPacking=Mc,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(e)}copy(e){return super.copy(e),this.depthPacking=e.depthPacking,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this}}class Ph extends Tn{constructor(e){super(),this.isMeshDistanceMaterial=!0,this.type="MeshDistanceMaterial",this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.setValues(e)}copy(e){return super.copy(e),this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this}}function ur(i,e,t){return!i||!t&&i.constructor===e?i:typeof e.BYTES_PER_ELEMENT=="number"?new e(i):Array.prototype.slice.call(i)}function Lh(i){return ArrayBuffer.isView(i)&&!(i instanceof DataView)}function Dh(i){function e(r,s){return i[r]-i[s]}const t=i.length,n=new Array(t);for(let r=0;r!==t;++r)n[r]=r;return n.sort(e),n}function So(i,e,t){const n=i.length,r=new i.constructor(n);for(let s=0,a=0;a!==n;++s){const o=t[s]*e;for(let c=0;c!==e;++c)r[a++]=i[o+c]}return r}function wl(i,e,t,n){let r=1,s=i[0];for(;s!==void 0&&s[n]===void 0;)s=i[r++];if(s===void 0)return;let a=s[n];if(a!==void 0)if(Array.isArray(a))do a=s[n],a!==void 0&&(e.push(s.time),t.push.apply(t,a)),s=i[r++];while(s!==void 0);else if(a.toArray!==void 0)do a=s[n],a!==void 0&&(e.push(s.time),a.toArray(t,t.length)),s=i[r++];while(s!==void 0);else do a=s[n],a!==void 0&&(e.push(s.time),t.push(a)),s=i[r++];while(s!==void 0)}class Dr{constructor(e,t,n,r){this.parameterPositions=e,this._cachedIndex=0,this.resultBuffer=r!==void 0?r:new t.constructor(n),this.sampleValues=t,this.valueSize=n,this.settings=null,this.DefaultSettings_={}}evaluate(e){const t=this.parameterPositions;let n=this._cachedIndex,r=t[n],s=t[n-1];n:{e:{let a;t:{i:if(!(e=s)){const o=t[1];e=s)break e}a=n,n=0;break t}break n}for(;n>>1;et;)--a;if(++a,s!==0||a!==r){s>=a&&(a=Math.max(a,1),s=a-1);const o=this.getValueSize();this.times=n.slice(s,a),this.values=this.values.slice(s*o,a*o)}return this}validate(){let e=!0;const t=this.getValueSize();t-Math.floor(t)!==0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),e=!1);const n=this.times,r=this.values,s=n.length;s===0&&(console.error("THREE.KeyframeTrack: Track is empty.",this),e=!1);let a=null;for(let o=0;o!==s;o++){const c=n[o];if(typeof c=="number"&&isNaN(c)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,o,c),e=!1;break}if(a!==null&&a>c){console.error("THREE.KeyframeTrack: Out of order keys.",this,o,c,a),e=!1;break}a=c}if(r!==void 0&&Lh(r))for(let o=0,c=r.length;o!==c;++o){const l=r[o];if(isNaN(l)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,o,l),e=!1;break}}return e}optimize(){const e=this.times.slice(),t=this.values.slice(),n=this.getValueSize(),r=this.getInterpolation()===zr,s=e.length-1;let a=1;for(let o=1;o0){e[a]=e[s];for(let o=s*n,c=a*n,l=0;l!==n;++l)t[c+l]=t[o+l];++a}return a!==e.length?(this.times=e.slice(0,a),this.values=t.slice(0,a*n)):(this.times=e,this.values=t),this}clone(){const e=this.times.slice(),t=this.values.slice(),n=this.constructor,r=new n(this.name,e,t);return r.createInterpolant=this.createInterpolant,r}}$t.prototype.TimeBufferType=Float32Array;$t.prototype.ValueBufferType=Float32Array;$t.prototype.DefaultInterpolation=ia;class vi extends $t{constructor(e,t,n){super(e,t,n)}}vi.prototype.ValueTypeName="bool";vi.prototype.ValueBufferType=Array;vi.prototype.DefaultInterpolation=yr;vi.prototype.InterpolantFactoryMethodLinear=void 0;vi.prototype.InterpolantFactoryMethodSmooth=void 0;class Rl extends $t{}Rl.prototype.ValueTypeName="color";class wr extends $t{}wr.prototype.ValueTypeName="number";class Fh extends Dr{constructor(e,t,n,r){super(e,t,n,r)}interpolate_(e,t,n,r){const s=this.resultBuffer,a=this.sampleValues,o=this.valueSize,c=(n-t)/(r-t);let l=e*o;for(let h=l+o;l!==h;l+=4)_i.slerpFlat(s,0,a,l-o,a,l,c);return s}}class Ir extends $t{InterpolantFactoryMethodLinear(e){return new Fh(this.times,this.values,this.getValueSize(),e)}}Ir.prototype.ValueTypeName="quaternion";Ir.prototype.InterpolantFactoryMethodSmooth=void 0;class xi extends $t{constructor(e,t,n){super(e,t,n)}}xi.prototype.ValueTypeName="string";xi.prototype.ValueBufferType=Array;xi.prototype.DefaultInterpolation=yr;xi.prototype.InterpolantFactoryMethodLinear=void 0;xi.prototype.InterpolantFactoryMethodSmooth=void 0;class Rr extends $t{}Rr.prototype.ValueTypeName="vector";class eg{constructor(e="",t=-1,n=[],r=xc){this.name=e,this.tracks=n,this.duration=t,this.blendMode=r,this.uuid=Xt(),this.duration<0&&this.resetDuration()}static parse(e){const t=[],n=e.tracks,r=1/(e.fps||1);for(let a=0,o=n.length;a!==o;++a)t.push(Bh(n[a]).scale(r));const s=new this(e.name,e.duration,t,e.blendMode);return s.uuid=e.uuid,s}static toJSON(e){const t=[],n=e.tracks,r={name:e.name,duration:e.duration,tracks:t,uuid:e.uuid,blendMode:e.blendMode};for(let s=0,a=n.length;s!==a;++s)t.push($t.toJSON(n[s]));return r}static CreateFromMorphTargetSequence(e,t,n,r){const s=t.length,a=[];for(let o=0;o1){const f=h[1];let d=r[f];d||(r[f]=d=[]),d.push(l)}}const a=[];for(const o in r)a.push(this.CreateFromMorphTargetSequence(o,r[o],t,n));return a}static parseAnimation(e,t){if(!e)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;const n=function(f,d,p,g,v){if(p.length!==0){const m=[],u=[];wl(p,m,u,g),m.length!==0&&v.push(new f(d,m,u))}},r=[],s=e.name||"default",a=e.fps||30,o=e.blendMode;let c=e.length||-1;const l=e.hierarchy||[];for(let f=0;f{t&&t(s),this.manager.itemEnd(e)},0),s;if(rn[e]!==void 0){rn[e].push({onLoad:t,onProgress:n,onError:r});return}rn[e]=[],rn[e].push({onLoad:t,onProgress:n,onError:r});const a=new Request(e,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?"include":"same-origin"}),o=this.mimeType,c=this.responseType;fetch(a).then(l=>{if(l.status===200||l.status===0){if(l.status===0&&console.warn("THREE.FileLoader: HTTP Status 0 received."),typeof ReadableStream>"u"||l.body===void 0||l.body.getReader===void 0)return l;const h=rn[e],f=l.body.getReader(),d=l.headers.get("X-File-Size")||l.headers.get("Content-Length"),p=d?parseInt(d):0,g=p!==0;let v=0;const m=new ReadableStream({start(u){b();function b(){f.read().then(({done:T,value:y})=>{if(T)u.close();else{v+=y.byteLength;const D=new ProgressEvent("progress",{lengthComputable:g,loaded:v,total:p});for(let w=0,R=h.length;w{u.error(T)})}}});return new Response(m)}else throw new Hh(`fetch for "${l.url}" responded with ${l.status}: ${l.statusText}`,l)}).then(l=>{switch(c){case"arraybuffer":return l.arrayBuffer();case"blob":return l.blob();case"document":return l.text().then(h=>new DOMParser().parseFromString(h,o));case"json":return l.json();default:if(o===void 0)return l.text();{const f=/charset="?([^;"\s]*)"?/i.exec(o),d=f&&f[1]?f[1].toLowerCase():void 0,p=new TextDecoder(d);return l.arrayBuffer().then(g=>p.decode(g))}}}).then(l=>{vn.add(e,l);const h=rn[e];delete rn[e];for(let f=0,d=h.length;f{const h=rn[e];if(h===void 0)throw this.manager.itemError(e),l;delete rn[e];for(let f=0,d=h.length;f{this.manager.itemEnd(e)}),this.manager.itemStart(e)}setResponseType(e){return this.responseType=e,this}setMimeType(e){return this.mimeType=e,this}}class kh extends Oi{constructor(e){super(e)}load(e,t,n,r){this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);const s=this,a=vn.get(e);if(a!==void 0)return s.manager.itemStart(e),setTimeout(function(){t&&t(a),s.manager.itemEnd(e)},0),a;const o=Ui("img");function c(){h(),vn.add(e,this),t&&t(this),s.manager.itemEnd(e)}function l(f){h(),r&&r(f),s.manager.itemError(e),s.manager.itemEnd(e)}function h(){o.removeEventListener("load",c,!1),o.removeEventListener("error",l,!1)}return o.addEventListener("load",c,!1),o.addEventListener("error",l,!1),e.slice(0,5)!=="data:"&&this.crossOrigin!==void 0&&(o.crossOrigin=this.crossOrigin),s.manager.itemStart(e),o.src=e,o}}class ng extends Oi{constructor(e){super(e)}load(e,t,n,r){const s=new _t,a=new kh(this.manager);return a.setCrossOrigin(this.crossOrigin),a.setPath(this.path),a.load(e,function(o){s.image=o,s.needsUpdate=!0,t!==void 0&&t(s)},n,r),s}}class Ur extends ot{constructor(e,t=1){super(),this.isLight=!0,this.type="Light",this.color=new De(e),this.intensity=t}dispose(){}copy(e,t){return super.copy(e,t),this.color.copy(e.color),this.intensity=e.intensity,this}toJSON(e){const t=super.toJSON(e);return t.object.color=this.color.getHex(),t.object.intensity=this.intensity,this.groundColor!==void 0&&(t.object.groundColor=this.groundColor.getHex()),this.distance!==void 0&&(t.object.distance=this.distance),this.angle!==void 0&&(t.object.angle=this.angle),this.decay!==void 0&&(t.object.decay=this.decay),this.penumbra!==void 0&&(t.object.penumbra=this.penumbra),this.shadow!==void 0&&(t.object.shadow=this.shadow.toJSON()),this.target!==void 0&&(t.object.target=this.target.uuid),t}}const hs=new Ne,yo=new N,Eo=new N;class Ma{constructor(e){this.camera=e,this.intensity=1,this.bias=0,this.normalBias=0,this.radius=1,this.blurSamples=8,this.mapSize=new Ve(512,512),this.map=null,this.mapPass=null,this.matrix=new Ne,this.autoUpdate=!0,this.needsUpdate=!1,this._frustum=new va,this._frameExtents=new Ve(1,1),this._viewportCount=1,this._viewports=[new qe(0,0,1,1)]}getViewportCount(){return this._viewportCount}getFrustum(){return this._frustum}updateMatrices(e){const t=this.camera,n=this.matrix;yo.setFromMatrixPosition(e.matrixWorld),t.position.copy(yo),Eo.setFromMatrixPosition(e.target.matrixWorld),t.lookAt(Eo),t.updateMatrixWorld(),hs.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),this._frustum.setFromProjectionMatrix(hs),n.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),n.multiply(hs)}getViewport(e){return this._viewports[e]}getFrameExtents(){return this._frameExtents}dispose(){this.map&&this.map.dispose(),this.mapPass&&this.mapPass.dispose()}copy(e){return this.camera=e.camera.clone(),this.intensity=e.intensity,this.bias=e.bias,this.radius=e.radius,this.mapSize.copy(e.mapSize),this}clone(){return new this.constructor().copy(this)}toJSON(){const e={};return this.intensity!==1&&(e.intensity=this.intensity),this.bias!==0&&(e.bias=this.bias),this.normalBias!==0&&(e.normalBias=this.normalBias),this.radius!==1&&(e.radius=this.radius),(this.mapSize.x!==512||this.mapSize.y!==512)&&(e.mapSize=this.mapSize.toArray()),e.camera=this.camera.toJSON(!1).object,delete e.camera.matrix,e}}class Gh extends Ma{constructor(){super(new wt(50,1,.5,500)),this.isSpotLightShadow=!0,this.focus=1}updateMatrices(e){const t=this.camera,n=mi*2*e.angle*this.focus,r=this.mapSize.width/this.mapSize.height,s=e.distance||t.far;(n!==t.fov||r!==t.aspect||s!==t.far)&&(t.fov=n,t.aspect=r,t.far=s,t.updateProjectionMatrix()),super.updateMatrices(e)}copy(e){return super.copy(e),this.focus=e.focus,this}}class ig extends Ur{constructor(e,t,n=0,r=Math.PI/3,s=0,a=2){super(e,t),this.isSpotLight=!0,this.type="SpotLight",this.position.copy(ot.DEFAULT_UP),this.updateMatrix(),this.target=new ot,this.distance=n,this.angle=r,this.penumbra=s,this.decay=a,this.map=null,this.shadow=new Gh}get power(){return this.intensity*Math.PI}set power(e){this.intensity=e/Math.PI}dispose(){this.shadow.dispose()}copy(e,t){return super.copy(e,t),this.distance=e.distance,this.angle=e.angle,this.penumbra=e.penumbra,this.decay=e.decay,this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}const To=new Ne,Ci=new N,us=new N;class Wh extends Ma{constructor(){super(new wt(90,1,.5,500)),this.isPointLightShadow=!0,this._frameExtents=new Ve(4,2),this._viewportCount=6,this._viewports=[new qe(2,1,1,1),new qe(0,1,1,1),new qe(3,1,1,1),new qe(1,1,1,1),new qe(3,0,1,1),new qe(1,0,1,1)],this._cubeDirections=[new N(1,0,0),new N(-1,0,0),new N(0,0,1),new N(0,0,-1),new N(0,1,0),new N(0,-1,0)],this._cubeUps=[new N(0,1,0),new N(0,1,0),new N(0,1,0),new N(0,1,0),new N(0,0,1),new N(0,0,-1)]}updateMatrices(e,t=0){const n=this.camera,r=this.matrix,s=e.distance||n.far;s!==n.far&&(n.far=s,n.updateProjectionMatrix()),Ci.setFromMatrixPosition(e.matrixWorld),n.position.copy(Ci),us.copy(n.position),us.add(this._cubeDirections[t]),n.up.copy(this._cubeUps[t]),n.lookAt(us),n.updateMatrixWorld(),r.makeTranslation(-Ci.x,-Ci.y,-Ci.z),To.multiplyMatrices(n.projectionMatrix,n.matrixWorldInverse),this._frustum.setFromProjectionMatrix(To)}}class rg extends Ur{constructor(e,t,n=0,r=2){super(e,t),this.isPointLight=!0,this.type="PointLight",this.distance=n,this.decay=r,this.shadow=new Wh}get power(){return this.intensity*4*Math.PI}set power(e){this.intensity=e/(4*Math.PI)}dispose(){this.shadow.dispose()}copy(e,t){return super.copy(e,t),this.distance=e.distance,this.decay=e.decay,this.shadow=e.shadow.clone(),this}}class Cl extends vl{constructor(e=-1,t=1,n=1,r=-1,s=.1,a=2e3){super(),this.isOrthographicCamera=!0,this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=e,this.right=t,this.top=n,this.bottom=r,this.near=s,this.far=a,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.near=e.near,this.far=e.far,this.zoom=e.zoom,this.view=e.view===null?null:Object.assign({},e.view),this}setViewOffset(e,t,n,r,s,a){this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=n,this.view.offsetY=r,this.view.width=s,this.view.height=a,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=(this.right-this.left)/(2*this.zoom),t=(this.top-this.bottom)/(2*this.zoom),n=(this.right+this.left)/2,r=(this.top+this.bottom)/2;let s=n-e,a=n+e,o=r+t,c=r-t;if(this.view!==null&&this.view.enabled){const l=(this.right-this.left)/this.view.fullWidth/this.zoom,h=(this.top-this.bottom)/this.view.fullHeight/this.zoom;s+=l*this.view.offsetX,a=s+l*this.view.width,o-=h*this.view.offsetY,c=o-h*this.view.height}this.projectionMatrix.makeOrthographic(s,a,o,c,this.near,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.zoom=this.zoom,t.object.left=this.left,t.object.right=this.right,t.object.top=this.top,t.object.bottom=this.bottom,t.object.near=this.near,t.object.far=this.far,this.view!==null&&(t.object.view=Object.assign({},this.view)),t}}class Xh extends Ma{constructor(){super(new Cl(-5,5,5,-5,.5,500)),this.isDirectionalLightShadow=!0}}class sg extends Ur{constructor(e,t){super(e,t),this.isDirectionalLight=!0,this.type="DirectionalLight",this.position.copy(ot.DEFAULT_UP),this.updateMatrix(),this.target=new ot,this.shadow=new Xh}dispose(){this.shadow.dispose()}copy(e){return super.copy(e),this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}class ag extends Ur{constructor(e,t){super(e,t),this.isAmbientLight=!0,this.type="AmbientLight"}}class og{static decodeText(e){if(console.warn("THREE.LoaderUtils: decodeText() has been deprecated with r165 and will be removed with r175. Use TextDecoder instead."),typeof TextDecoder<"u")return new TextDecoder().decode(e);let t="";for(let n=0,r=e.length;n"u"&&console.warn("THREE.ImageBitmapLoader: createImageBitmap() not supported."),typeof fetch>"u"&&console.warn("THREE.ImageBitmapLoader: fetch() not supported."),this.options={premultiplyAlpha:"none"}}setOptions(e){return this.options=e,this}load(e,t,n,r){e===void 0&&(e=""),this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);const s=this,a=vn.get(e);if(a!==void 0){if(s.manager.itemStart(e),a.then){a.then(l=>{t&&t(l),s.manager.itemEnd(e)}).catch(l=>{r&&r(l)});return}return setTimeout(function(){t&&t(a),s.manager.itemEnd(e)},0),a}const o={};o.credentials=this.crossOrigin==="anonymous"?"same-origin":"include",o.headers=this.requestHeader;const c=fetch(e,o).then(function(l){return l.blob()}).then(function(l){return createImageBitmap(l,Object.assign(s.options,{colorSpaceConversion:"none"}))}).then(function(l){return vn.add(e,l),t&&t(l),s.manager.itemEnd(e),l}).catch(function(l){r&&r(l),vn.remove(e),s.manager.itemError(e),s.manager.itemEnd(e)});vn.add(e,c),s.manager.itemStart(e)}}class qh extends wt{constructor(e=[]){super(),this.isArrayCamera=!0,this.cameras=e,this.index=0}}const Sa="\\[\\]\\.:\\/",Yh=new RegExp("["+Sa+"]","g"),ya="[^"+Sa+"]",Kh="[^"+Sa.replace("\\.","")+"]",Zh=/((?:WC+[\/:])*)/.source.replace("WC",ya),$h=/(WCOD+)?/.source.replace("WCOD",Kh),jh=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",ya),Jh=/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",ya),Qh=new RegExp("^"+Zh+$h+jh+Jh+"$"),eu=["material","materials","bones","map"];class tu{constructor(e,t,n){const r=n||Je.parseTrackName(t);this._targetGroup=e,this._bindings=e.subscribe_(t,r)}getValue(e,t){this.bind();const n=this._targetGroup.nCachedObjects_,r=this._bindings[n];r!==void 0&&r.getValue(e,t)}setValue(e,t){const n=this._bindings;for(let r=this._targetGroup.nCachedObjects_,s=n.length;r!==s;++r)n[r].setValue(e,t)}bind(){const e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].bind()}unbind(){const e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].unbind()}}class Je{constructor(e,t,n){this.path=t,this.parsedPath=n||Je.parseTrackName(t),this.node=Je.findNode(e,this.parsedPath.nodeName),this.rootNode=e,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(e,t,n){return e&&e.isAnimationObjectGroup?new Je.Composite(e,t,n):new Je(e,t,n)}static sanitizeNodeName(e){return e.replace(/\s/g,"_").replace(Yh,"")}static parseTrackName(e){const t=Qh.exec(e);if(t===null)throw new Error("PropertyBinding: Cannot parse trackName: "+e);const n={nodeName:t[2],objectName:t[3],objectIndex:t[4],propertyName:t[5],propertyIndex:t[6]},r=n.nodeName&&n.nodeName.lastIndexOf(".");if(r!==void 0&&r!==-1){const s=n.nodeName.substring(r+1);eu.indexOf(s)!==-1&&(n.nodeName=n.nodeName.substring(0,r),n.objectName=s)}if(n.propertyName===null||n.propertyName.length===0)throw new Error("PropertyBinding: can not parse propertyName from trackName: "+e);return n}static findNode(e,t){if(t===void 0||t===""||t==="."||t===-1||t===e.name||t===e.uuid)return e;if(e.skeleton){const n=e.skeleton.getBoneByName(t);if(n!==void 0)return n}if(e.children){const n=function(s){for(let a=0;ap.start-g.start);let d=0;for(let p=1;p 0 + vec4 plane; + #ifdef ALPHA_TO_COVERAGE + float distanceToPlane, distanceGradient; + float clipOpacity = 1.0; + #pragma unroll_loop_start + for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) { + plane = clippingPlanes[ i ]; + distanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w; + distanceGradient = fwidth( distanceToPlane ) / 2.0; + clipOpacity *= smoothstep( - distanceGradient, distanceGradient, distanceToPlane ); + if ( clipOpacity == 0.0 ) discard; + } + #pragma unroll_loop_end + #if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES + float unionClipOpacity = 1.0; + #pragma unroll_loop_start + for ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) { + plane = clippingPlanes[ i ]; + distanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w; + distanceGradient = fwidth( distanceToPlane ) / 2.0; + unionClipOpacity *= 1.0 - smoothstep( - distanceGradient, distanceGradient, distanceToPlane ); + } + #pragma unroll_loop_end + clipOpacity *= 1.0 - unionClipOpacity; + #endif + diffuseColor.a *= clipOpacity; + if ( diffuseColor.a == 0.0 ) discard; + #else + #pragma unroll_loop_start + for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) { + plane = clippingPlanes[ i ]; + if ( dot( vClipPosition, plane.xyz ) > plane.w ) discard; + } + #pragma unroll_loop_end + #if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES + bool clipped = true; + #pragma unroll_loop_start + for ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) { + plane = clippingPlanes[ i ]; + clipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped; + } + #pragma unroll_loop_end + if ( clipped ) discard; + #endif + #endif +#endif`,Mu=`#if NUM_CLIPPING_PLANES > 0 + varying vec3 vClipPosition; + uniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ]; +#endif`,Su=`#if NUM_CLIPPING_PLANES > 0 + varying vec3 vClipPosition; +#endif`,yu=`#if NUM_CLIPPING_PLANES > 0 + vClipPosition = - mvPosition.xyz; +#endif`,Eu=`#if defined( USE_COLOR_ALPHA ) + diffuseColor *= vColor; +#elif defined( USE_COLOR ) + diffuseColor.rgb *= vColor; +#endif`,Tu=`#if defined( USE_COLOR_ALPHA ) + varying vec4 vColor; +#elif defined( USE_COLOR ) + varying vec3 vColor; +#endif`,bu=`#if defined( USE_COLOR_ALPHA ) + varying vec4 vColor; +#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) || defined( USE_BATCHING_COLOR ) + varying vec3 vColor; +#endif`,Au=`#if defined( USE_COLOR_ALPHA ) + vColor = vec4( 1.0 ); +#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) || defined( USE_BATCHING_COLOR ) + vColor = vec3( 1.0 ); +#endif +#ifdef USE_COLOR + vColor *= color; +#endif +#ifdef USE_INSTANCING_COLOR + vColor.xyz *= instanceColor.xyz; +#endif +#ifdef USE_BATCHING_COLOR + vec3 batchingColor = getBatchingColor( getIndirectIndex( gl_DrawID ) ); + vColor.xyz *= batchingColor.xyz; +#endif`,wu=`#define PI 3.141592653589793 +#define PI2 6.283185307179586 +#define PI_HALF 1.5707963267948966 +#define RECIPROCAL_PI 0.3183098861837907 +#define RECIPROCAL_PI2 0.15915494309189535 +#define EPSILON 1e-6 +#ifndef saturate +#define saturate( a ) clamp( a, 0.0, 1.0 ) +#endif +#define whiteComplement( a ) ( 1.0 - saturate( a ) ) +float pow2( const in float x ) { return x*x; } +vec3 pow2( const in vec3 x ) { return x*x; } +float pow3( const in float x ) { return x*x*x; } +float pow4( const in float x ) { float x2 = x*x; return x2*x2; } +float max3( const in vec3 v ) { return max( max( v.x, v.y ), v.z ); } +float average( const in vec3 v ) { return dot( v, vec3( 0.3333333 ) ); } +highp float rand( const in vec2 uv ) { + const highp float a = 12.9898, b = 78.233, c = 43758.5453; + highp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI ); + return fract( sin( sn ) * c ); +} +#ifdef HIGH_PRECISION + float precisionSafeLength( vec3 v ) { return length( v ); } +#else + float precisionSafeLength( vec3 v ) { + float maxComponent = max3( abs( v ) ); + return length( v / maxComponent ) * maxComponent; + } +#endif +struct IncidentLight { + vec3 color; + vec3 direction; + bool visible; +}; +struct ReflectedLight { + vec3 directDiffuse; + vec3 directSpecular; + vec3 indirectDiffuse; + vec3 indirectSpecular; +}; +#ifdef USE_ALPHAHASH + varying vec3 vPosition; +#endif +vec3 transformDirection( in vec3 dir, in mat4 matrix ) { + return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz ); +} +vec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) { + return normalize( ( vec4( dir, 0.0 ) * matrix ).xyz ); +} +mat3 transposeMat3( const in mat3 m ) { + mat3 tmp; + tmp[ 0 ] = vec3( m[ 0 ].x, m[ 1 ].x, m[ 2 ].x ); + tmp[ 1 ] = vec3( m[ 0 ].y, m[ 1 ].y, m[ 2 ].y ); + tmp[ 2 ] = vec3( m[ 0 ].z, m[ 1 ].z, m[ 2 ].z ); + return tmp; +} +bool isPerspectiveMatrix( mat4 m ) { + return m[ 2 ][ 3 ] == - 1.0; +} +vec2 equirectUv( in vec3 dir ) { + float u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5; + float v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5; + return vec2( u, v ); +} +vec3 BRDF_Lambert( const in vec3 diffuseColor ) { + return RECIPROCAL_PI * diffuseColor; +} +vec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) { + float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH ); + return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel ); +} +float F_Schlick( const in float f0, const in float f90, const in float dotVH ) { + float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH ); + return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel ); +} // validated`,Ru=`#ifdef ENVMAP_TYPE_CUBE_UV + #define cubeUV_minMipLevel 4.0 + #define cubeUV_minTileSize 16.0 + float getFace( vec3 direction ) { + vec3 absDirection = abs( direction ); + float face = - 1.0; + if ( absDirection.x > absDirection.z ) { + if ( absDirection.x > absDirection.y ) + face = direction.x > 0.0 ? 0.0 : 3.0; + else + face = direction.y > 0.0 ? 1.0 : 4.0; + } else { + if ( absDirection.z > absDirection.y ) + face = direction.z > 0.0 ? 2.0 : 5.0; + else + face = direction.y > 0.0 ? 1.0 : 4.0; + } + return face; + } + vec2 getUV( vec3 direction, float face ) { + vec2 uv; + if ( face == 0.0 ) { + uv = vec2( direction.z, direction.y ) / abs( direction.x ); + } else if ( face == 1.0 ) { + uv = vec2( - direction.x, - direction.z ) / abs( direction.y ); + } else if ( face == 2.0 ) { + uv = vec2( - direction.x, direction.y ) / abs( direction.z ); + } else if ( face == 3.0 ) { + uv = vec2( - direction.z, direction.y ) / abs( direction.x ); + } else if ( face == 4.0 ) { + uv = vec2( - direction.x, direction.z ) / abs( direction.y ); + } else { + uv = vec2( direction.x, direction.y ) / abs( direction.z ); + } + return 0.5 * ( uv + 1.0 ); + } + vec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) { + float face = getFace( direction ); + float filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 ); + mipInt = max( mipInt, cubeUV_minMipLevel ); + float faceSize = exp2( mipInt ); + highp vec2 uv = getUV( direction, face ) * ( faceSize - 2.0 ) + 1.0; + if ( face > 2.0 ) { + uv.y += faceSize; + face -= 3.0; + } + uv.x += face * faceSize; + uv.x += filterInt * 3.0 * cubeUV_minTileSize; + uv.y += 4.0 * ( exp2( CUBEUV_MAX_MIP ) - faceSize ); + uv.x *= CUBEUV_TEXEL_WIDTH; + uv.y *= CUBEUV_TEXEL_HEIGHT; + #ifdef texture2DGradEXT + return texture2DGradEXT( envMap, uv, vec2( 0.0 ), vec2( 0.0 ) ).rgb; + #else + return texture2D( envMap, uv ).rgb; + #endif + } + #define cubeUV_r0 1.0 + #define cubeUV_m0 - 2.0 + #define cubeUV_r1 0.8 + #define cubeUV_m1 - 1.0 + #define cubeUV_r4 0.4 + #define cubeUV_m4 2.0 + #define cubeUV_r5 0.305 + #define cubeUV_m5 3.0 + #define cubeUV_r6 0.21 + #define cubeUV_m6 4.0 + float roughnessToMip( float roughness ) { + float mip = 0.0; + if ( roughness >= cubeUV_r1 ) { + mip = ( cubeUV_r0 - roughness ) * ( cubeUV_m1 - cubeUV_m0 ) / ( cubeUV_r0 - cubeUV_r1 ) + cubeUV_m0; + } else if ( roughness >= cubeUV_r4 ) { + mip = ( cubeUV_r1 - roughness ) * ( cubeUV_m4 - cubeUV_m1 ) / ( cubeUV_r1 - cubeUV_r4 ) + cubeUV_m1; + } else if ( roughness >= cubeUV_r5 ) { + mip = ( cubeUV_r4 - roughness ) * ( cubeUV_m5 - cubeUV_m4 ) / ( cubeUV_r4 - cubeUV_r5 ) + cubeUV_m4; + } else if ( roughness >= cubeUV_r6 ) { + mip = ( cubeUV_r5 - roughness ) * ( cubeUV_m6 - cubeUV_m5 ) / ( cubeUV_r5 - cubeUV_r6 ) + cubeUV_m5; + } else { + mip = - 2.0 * log2( 1.16 * roughness ); } + return mip; + } + vec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) { + float mip = clamp( roughnessToMip( roughness ), cubeUV_m0, CUBEUV_MAX_MIP ); + float mipF = fract( mip ); + float mipInt = floor( mip ); + vec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt ); + if ( mipF == 0.0 ) { + return vec4( color0, 1.0 ); + } else { + vec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 ); + return vec4( mix( color0, color1, mipF ), 1.0 ); + } + } +#endif`,Cu=`vec3 transformedNormal = objectNormal; +#ifdef USE_TANGENT + vec3 transformedTangent = objectTangent; +#endif +#ifdef USE_BATCHING + mat3 bm = mat3( batchingMatrix ); + transformedNormal /= vec3( dot( bm[ 0 ], bm[ 0 ] ), dot( bm[ 1 ], bm[ 1 ] ), dot( bm[ 2 ], bm[ 2 ] ) ); + transformedNormal = bm * transformedNormal; + #ifdef USE_TANGENT + transformedTangent = bm * transformedTangent; + #endif +#endif +#ifdef USE_INSTANCING + mat3 im = mat3( instanceMatrix ); + transformedNormal /= vec3( dot( im[ 0 ], im[ 0 ] ), dot( im[ 1 ], im[ 1 ] ), dot( im[ 2 ], im[ 2 ] ) ); + transformedNormal = im * transformedNormal; + #ifdef USE_TANGENT + transformedTangent = im * transformedTangent; + #endif +#endif +transformedNormal = normalMatrix * transformedNormal; +#ifdef FLIP_SIDED + transformedNormal = - transformedNormal; +#endif +#ifdef USE_TANGENT + transformedTangent = ( modelViewMatrix * vec4( transformedTangent, 0.0 ) ).xyz; + #ifdef FLIP_SIDED + transformedTangent = - transformedTangent; + #endif +#endif`,Pu=`#ifdef USE_DISPLACEMENTMAP + uniform sampler2D displacementMap; + uniform float displacementScale; + uniform float displacementBias; +#endif`,Lu=`#ifdef USE_DISPLACEMENTMAP + transformed += normalize( objectNormal ) * ( texture2D( displacementMap, vDisplacementMapUv ).x * displacementScale + displacementBias ); +#endif`,Du=`#ifdef USE_EMISSIVEMAP + vec4 emissiveColor = texture2D( emissiveMap, vEmissiveMapUv ); + #ifdef DECODE_VIDEO_TEXTURE_EMISSIVE + emissiveColor = sRGBTransferEOTF( emissiveColor ); + #endif + totalEmissiveRadiance *= emissiveColor.rgb; +#endif`,Iu=`#ifdef USE_EMISSIVEMAP + uniform sampler2D emissiveMap; +#endif`,Uu="gl_FragColor = linearToOutputTexel( gl_FragColor );",Nu=`vec4 LinearTransferOETF( in vec4 value ) { + return value; +} +vec4 sRGBTransferEOTF( in vec4 value ) { + return vec4( mix( pow( value.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), value.rgb * 0.0773993808, vec3( lessThanEqual( value.rgb, vec3( 0.04045 ) ) ) ), value.a ); +} +vec4 sRGBTransferOETF( in vec4 value ) { + return vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a ); +}`,Fu=`#ifdef USE_ENVMAP + #ifdef ENV_WORLDPOS + vec3 cameraToFrag; + if ( isOrthographic ) { + cameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) ); + } else { + cameraToFrag = normalize( vWorldPosition - cameraPosition ); + } + vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); + #ifdef ENVMAP_MODE_REFLECTION + vec3 reflectVec = reflect( cameraToFrag, worldNormal ); + #else + vec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio ); + #endif + #else + vec3 reflectVec = vReflect; + #endif + #ifdef ENVMAP_TYPE_CUBE + vec4 envColor = textureCube( envMap, envMapRotation * vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) ); + #else + vec4 envColor = vec4( 0.0 ); + #endif + #ifdef ENVMAP_BLENDING_MULTIPLY + outgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity ); + #elif defined( ENVMAP_BLENDING_MIX ) + outgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity ); + #elif defined( ENVMAP_BLENDING_ADD ) + outgoingLight += envColor.xyz * specularStrength * reflectivity; + #endif +#endif`,Ou=`#ifdef USE_ENVMAP + uniform float envMapIntensity; + uniform float flipEnvMap; + uniform mat3 envMapRotation; + #ifdef ENVMAP_TYPE_CUBE + uniform samplerCube envMap; + #else + uniform sampler2D envMap; + #endif + +#endif`,Bu=`#ifdef USE_ENVMAP + uniform float reflectivity; + #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT ) + #define ENV_WORLDPOS + #endif + #ifdef ENV_WORLDPOS + varying vec3 vWorldPosition; + uniform float refractionRatio; + #else + varying vec3 vReflect; + #endif +#endif`,zu=`#ifdef USE_ENVMAP + #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT ) + #define ENV_WORLDPOS + #endif + #ifdef ENV_WORLDPOS + + varying vec3 vWorldPosition; + #else + varying vec3 vReflect; + uniform float refractionRatio; + #endif +#endif`,Vu=`#ifdef USE_ENVMAP + #ifdef ENV_WORLDPOS + vWorldPosition = worldPosition.xyz; + #else + vec3 cameraToVertex; + if ( isOrthographic ) { + cameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) ); + } else { + cameraToVertex = normalize( worldPosition.xyz - cameraPosition ); + } + vec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix ); + #ifdef ENVMAP_MODE_REFLECTION + vReflect = reflect( cameraToVertex, worldNormal ); + #else + vReflect = refract( cameraToVertex, worldNormal, refractionRatio ); + #endif + #endif +#endif`,Hu=`#ifdef USE_FOG + vFogDepth = - mvPosition.z; +#endif`,ku=`#ifdef USE_FOG + varying float vFogDepth; +#endif`,Gu=`#ifdef USE_FOG + #ifdef FOG_EXP2 + float fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth ); + #else + float fogFactor = smoothstep( fogNear, fogFar, vFogDepth ); + #endif + gl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor ); +#endif`,Wu=`#ifdef USE_FOG + uniform vec3 fogColor; + varying float vFogDepth; + #ifdef FOG_EXP2 + uniform float fogDensity; + #else + uniform float fogNear; + uniform float fogFar; + #endif +#endif`,Xu=`#ifdef USE_GRADIENTMAP + uniform sampler2D gradientMap; +#endif +vec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) { + float dotNL = dot( normal, lightDirection ); + vec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 ); + #ifdef USE_GRADIENTMAP + return vec3( texture2D( gradientMap, coord ).r ); + #else + vec2 fw = fwidth( coord ) * 0.5; + return mix( vec3( 0.7 ), vec3( 1.0 ), smoothstep( 0.7 - fw.x, 0.7 + fw.x, coord.x ) ); + #endif +}`,qu=`#ifdef USE_LIGHTMAP + uniform sampler2D lightMap; + uniform float lightMapIntensity; +#endif`,Yu=`LambertMaterial material; +material.diffuseColor = diffuseColor.rgb; +material.specularStrength = specularStrength;`,Ku=`varying vec3 vViewPosition; +struct LambertMaterial { + vec3 diffuseColor; + float specularStrength; +}; +void RE_Direct_Lambert( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) { + float dotNL = saturate( dot( geometryNormal, directLight.direction ) ); + vec3 irradiance = dotNL * directLight.color; + reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); +} +void RE_IndirectDiffuse_Lambert( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) { + reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); +} +#define RE_Direct RE_Direct_Lambert +#define RE_IndirectDiffuse RE_IndirectDiffuse_Lambert`,Zu=`uniform bool receiveShadow; +uniform vec3 ambientLightColor; +#if defined( USE_LIGHT_PROBES ) + uniform vec3 lightProbe[ 9 ]; +#endif +vec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) { + float x = normal.x, y = normal.y, z = normal.z; + vec3 result = shCoefficients[ 0 ] * 0.886227; + result += shCoefficients[ 1 ] * 2.0 * 0.511664 * y; + result += shCoefficients[ 2 ] * 2.0 * 0.511664 * z; + result += shCoefficients[ 3 ] * 2.0 * 0.511664 * x; + result += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y; + result += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z; + result += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 ); + result += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z; + result += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y ); + return result; +} +vec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in vec3 normal ) { + vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); + vec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe ); + return irradiance; +} +vec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) { + vec3 irradiance = ambientLightColor; + return irradiance; +} +float getDistanceAttenuation( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) { + float distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 ); + if ( cutoffDistance > 0.0 ) { + distanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) ); + } + return distanceFalloff; +} +float getSpotAttenuation( const in float coneCosine, const in float penumbraCosine, const in float angleCosine ) { + return smoothstep( coneCosine, penumbraCosine, angleCosine ); +} +#if NUM_DIR_LIGHTS > 0 + struct DirectionalLight { + vec3 direction; + vec3 color; + }; + uniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ]; + void getDirectionalLightInfo( const in DirectionalLight directionalLight, out IncidentLight light ) { + light.color = directionalLight.color; + light.direction = directionalLight.direction; + light.visible = true; + } +#endif +#if NUM_POINT_LIGHTS > 0 + struct PointLight { + vec3 position; + vec3 color; + float distance; + float decay; + }; + uniform PointLight pointLights[ NUM_POINT_LIGHTS ]; + void getPointLightInfo( const in PointLight pointLight, const in vec3 geometryPosition, out IncidentLight light ) { + vec3 lVector = pointLight.position - geometryPosition; + light.direction = normalize( lVector ); + float lightDistance = length( lVector ); + light.color = pointLight.color; + light.color *= getDistanceAttenuation( lightDistance, pointLight.distance, pointLight.decay ); + light.visible = ( light.color != vec3( 0.0 ) ); + } +#endif +#if NUM_SPOT_LIGHTS > 0 + struct SpotLight { + vec3 position; + vec3 direction; + vec3 color; + float distance; + float decay; + float coneCos; + float penumbraCos; + }; + uniform SpotLight spotLights[ NUM_SPOT_LIGHTS ]; + void getSpotLightInfo( const in SpotLight spotLight, const in vec3 geometryPosition, out IncidentLight light ) { + vec3 lVector = spotLight.position - geometryPosition; + light.direction = normalize( lVector ); + float angleCos = dot( light.direction, spotLight.direction ); + float spotAttenuation = getSpotAttenuation( spotLight.coneCos, spotLight.penumbraCos, angleCos ); + if ( spotAttenuation > 0.0 ) { + float lightDistance = length( lVector ); + light.color = spotLight.color * spotAttenuation; + light.color *= getDistanceAttenuation( lightDistance, spotLight.distance, spotLight.decay ); + light.visible = ( light.color != vec3( 0.0 ) ); + } else { + light.color = vec3( 0.0 ); + light.visible = false; + } + } +#endif +#if NUM_RECT_AREA_LIGHTS > 0 + struct RectAreaLight { + vec3 color; + vec3 position; + vec3 halfWidth; + vec3 halfHeight; + }; + uniform sampler2D ltc_1; uniform sampler2D ltc_2; + uniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ]; +#endif +#if NUM_HEMI_LIGHTS > 0 + struct HemisphereLight { + vec3 direction; + vec3 skyColor; + vec3 groundColor; + }; + uniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ]; + vec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in vec3 normal ) { + float dotNL = dot( normal, hemiLight.direction ); + float hemiDiffuseWeight = 0.5 * dotNL + 0.5; + vec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight ); + return irradiance; + } +#endif`,$u=`#ifdef USE_ENVMAP + vec3 getIBLIrradiance( const in vec3 normal ) { + #ifdef ENVMAP_TYPE_CUBE_UV + vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); + vec4 envMapColor = textureCubeUV( envMap, envMapRotation * worldNormal, 1.0 ); + return PI * envMapColor.rgb * envMapIntensity; + #else + return vec3( 0.0 ); + #endif + } + vec3 getIBLRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness ) { + #ifdef ENVMAP_TYPE_CUBE_UV + vec3 reflectVec = reflect( - viewDir, normal ); + reflectVec = normalize( mix( reflectVec, normal, roughness * roughness) ); + reflectVec = inverseTransformDirection( reflectVec, viewMatrix ); + vec4 envMapColor = textureCubeUV( envMap, envMapRotation * reflectVec, roughness ); + return envMapColor.rgb * envMapIntensity; + #else + return vec3( 0.0 ); + #endif + } + #ifdef USE_ANISOTROPY + vec3 getIBLAnisotropyRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness, const in vec3 bitangent, const in float anisotropy ) { + #ifdef ENVMAP_TYPE_CUBE_UV + vec3 bentNormal = cross( bitangent, viewDir ); + bentNormal = normalize( cross( bentNormal, bitangent ) ); + bentNormal = normalize( mix( bentNormal, normal, pow2( pow2( 1.0 - anisotropy * ( 1.0 - roughness ) ) ) ) ); + return getIBLRadiance( viewDir, bentNormal, roughness ); + #else + return vec3( 0.0 ); + #endif + } + #endif +#endif`,ju=`ToonMaterial material; +material.diffuseColor = diffuseColor.rgb;`,Ju=`varying vec3 vViewPosition; +struct ToonMaterial { + vec3 diffuseColor; +}; +void RE_Direct_Toon( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) { + vec3 irradiance = getGradientIrradiance( geometryNormal, directLight.direction ) * directLight.color; + reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); +} +void RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) { + reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); +} +#define RE_Direct RE_Direct_Toon +#define RE_IndirectDiffuse RE_IndirectDiffuse_Toon`,Qu=`BlinnPhongMaterial material; +material.diffuseColor = diffuseColor.rgb; +material.specularColor = specular; +material.specularShininess = shininess; +material.specularStrength = specularStrength;`,ed=`varying vec3 vViewPosition; +struct BlinnPhongMaterial { + vec3 diffuseColor; + vec3 specularColor; + float specularShininess; + float specularStrength; +}; +void RE_Direct_BlinnPhong( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) { + float dotNL = saturate( dot( geometryNormal, directLight.direction ) ); + vec3 irradiance = dotNL * directLight.color; + reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); + reflectedLight.directSpecular += irradiance * BRDF_BlinnPhong( directLight.direction, geometryViewDir, geometryNormal, material.specularColor, material.specularShininess ) * material.specularStrength; +} +void RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) { + reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); +} +#define RE_Direct RE_Direct_BlinnPhong +#define RE_IndirectDiffuse RE_IndirectDiffuse_BlinnPhong`,td=`PhysicalMaterial material; +material.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor ); +vec3 dxy = max( abs( dFdx( nonPerturbedNormal ) ), abs( dFdy( nonPerturbedNormal ) ) ); +float geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z ); +material.roughness = max( roughnessFactor, 0.0525 );material.roughness += geometryRoughness; +material.roughness = min( material.roughness, 1.0 ); +#ifdef IOR + material.ior = ior; + #ifdef USE_SPECULAR + float specularIntensityFactor = specularIntensity; + vec3 specularColorFactor = specularColor; + #ifdef USE_SPECULAR_COLORMAP + specularColorFactor *= texture2D( specularColorMap, vSpecularColorMapUv ).rgb; + #endif + #ifdef USE_SPECULAR_INTENSITYMAP + specularIntensityFactor *= texture2D( specularIntensityMap, vSpecularIntensityMapUv ).a; + #endif + material.specularF90 = mix( specularIntensityFactor, 1.0, metalnessFactor ); + #else + float specularIntensityFactor = 1.0; + vec3 specularColorFactor = vec3( 1.0 ); + material.specularF90 = 1.0; + #endif + material.specularColor = mix( min( pow2( ( material.ior - 1.0 ) / ( material.ior + 1.0 ) ) * specularColorFactor, vec3( 1.0 ) ) * specularIntensityFactor, diffuseColor.rgb, metalnessFactor ); +#else + material.specularColor = mix( vec3( 0.04 ), diffuseColor.rgb, metalnessFactor ); + material.specularF90 = 1.0; +#endif +#ifdef USE_CLEARCOAT + material.clearcoat = clearcoat; + material.clearcoatRoughness = clearcoatRoughness; + material.clearcoatF0 = vec3( 0.04 ); + material.clearcoatF90 = 1.0; + #ifdef USE_CLEARCOATMAP + material.clearcoat *= texture2D( clearcoatMap, vClearcoatMapUv ).x; + #endif + #ifdef USE_CLEARCOAT_ROUGHNESSMAP + material.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vClearcoatRoughnessMapUv ).y; + #endif + material.clearcoat = saturate( material.clearcoat ); material.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 ); + material.clearcoatRoughness += geometryRoughness; + material.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 ); +#endif +#ifdef USE_DISPERSION + material.dispersion = dispersion; +#endif +#ifdef USE_IRIDESCENCE + material.iridescence = iridescence; + material.iridescenceIOR = iridescenceIOR; + #ifdef USE_IRIDESCENCEMAP + material.iridescence *= texture2D( iridescenceMap, vIridescenceMapUv ).r; + #endif + #ifdef USE_IRIDESCENCE_THICKNESSMAP + material.iridescenceThickness = (iridescenceThicknessMaximum - iridescenceThicknessMinimum) * texture2D( iridescenceThicknessMap, vIridescenceThicknessMapUv ).g + iridescenceThicknessMinimum; + #else + material.iridescenceThickness = iridescenceThicknessMaximum; + #endif +#endif +#ifdef USE_SHEEN + material.sheenColor = sheenColor; + #ifdef USE_SHEEN_COLORMAP + material.sheenColor *= texture2D( sheenColorMap, vSheenColorMapUv ).rgb; + #endif + material.sheenRoughness = clamp( sheenRoughness, 0.07, 1.0 ); + #ifdef USE_SHEEN_ROUGHNESSMAP + material.sheenRoughness *= texture2D( sheenRoughnessMap, vSheenRoughnessMapUv ).a; + #endif +#endif +#ifdef USE_ANISOTROPY + #ifdef USE_ANISOTROPYMAP + mat2 anisotropyMat = mat2( anisotropyVector.x, anisotropyVector.y, - anisotropyVector.y, anisotropyVector.x ); + vec3 anisotropyPolar = texture2D( anisotropyMap, vAnisotropyMapUv ).rgb; + vec2 anisotropyV = anisotropyMat * normalize( 2.0 * anisotropyPolar.rg - vec2( 1.0 ) ) * anisotropyPolar.b; + #else + vec2 anisotropyV = anisotropyVector; + #endif + material.anisotropy = length( anisotropyV ); + if( material.anisotropy == 0.0 ) { + anisotropyV = vec2( 1.0, 0.0 ); + } else { + anisotropyV /= material.anisotropy; + material.anisotropy = saturate( material.anisotropy ); + } + material.alphaT = mix( pow2( material.roughness ), 1.0, pow2( material.anisotropy ) ); + material.anisotropyT = tbn[ 0 ] * anisotropyV.x + tbn[ 1 ] * anisotropyV.y; + material.anisotropyB = tbn[ 1 ] * anisotropyV.x - tbn[ 0 ] * anisotropyV.y; +#endif`,nd=`struct PhysicalMaterial { + vec3 diffuseColor; + float roughness; + vec3 specularColor; + float specularF90; + float dispersion; + #ifdef USE_CLEARCOAT + float clearcoat; + float clearcoatRoughness; + vec3 clearcoatF0; + float clearcoatF90; + #endif + #ifdef USE_IRIDESCENCE + float iridescence; + float iridescenceIOR; + float iridescenceThickness; + vec3 iridescenceFresnel; + vec3 iridescenceF0; + #endif + #ifdef USE_SHEEN + vec3 sheenColor; + float sheenRoughness; + #endif + #ifdef IOR + float ior; + #endif + #ifdef USE_TRANSMISSION + float transmission; + float transmissionAlpha; + float thickness; + float attenuationDistance; + vec3 attenuationColor; + #endif + #ifdef USE_ANISOTROPY + float anisotropy; + float alphaT; + vec3 anisotropyT; + vec3 anisotropyB; + #endif +}; +vec3 clearcoatSpecularDirect = vec3( 0.0 ); +vec3 clearcoatSpecularIndirect = vec3( 0.0 ); +vec3 sheenSpecularDirect = vec3( 0.0 ); +vec3 sheenSpecularIndirect = vec3(0.0 ); +vec3 Schlick_to_F0( const in vec3 f, const in float f90, const in float dotVH ) { + float x = clamp( 1.0 - dotVH, 0.0, 1.0 ); + float x2 = x * x; + float x5 = clamp( x * x2 * x2, 0.0, 0.9999 ); + return ( f - vec3( f90 ) * x5 ) / ( 1.0 - x5 ); +} +float V_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) { + float a2 = pow2( alpha ); + float gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) ); + float gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) ); + return 0.5 / max( gv + gl, EPSILON ); +} +float D_GGX( const in float alpha, const in float dotNH ) { + float a2 = pow2( alpha ); + float denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0; + return RECIPROCAL_PI * a2 / pow2( denom ); +} +#ifdef USE_ANISOTROPY + float V_GGX_SmithCorrelated_Anisotropic( const in float alphaT, const in float alphaB, const in float dotTV, const in float dotBV, const in float dotTL, const in float dotBL, const in float dotNV, const in float dotNL ) { + float gv = dotNL * length( vec3( alphaT * dotTV, alphaB * dotBV, dotNV ) ); + float gl = dotNV * length( vec3( alphaT * dotTL, alphaB * dotBL, dotNL ) ); + float v = 0.5 / ( gv + gl ); + return saturate(v); + } + float D_GGX_Anisotropic( const in float alphaT, const in float alphaB, const in float dotNH, const in float dotTH, const in float dotBH ) { + float a2 = alphaT * alphaB; + highp vec3 v = vec3( alphaB * dotTH, alphaT * dotBH, a2 * dotNH ); + highp float v2 = dot( v, v ); + float w2 = a2 / v2; + return RECIPROCAL_PI * a2 * pow2 ( w2 ); + } +#endif +#ifdef USE_CLEARCOAT + vec3 BRDF_GGX_Clearcoat( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material) { + vec3 f0 = material.clearcoatF0; + float f90 = material.clearcoatF90; + float roughness = material.clearcoatRoughness; + float alpha = pow2( roughness ); + vec3 halfDir = normalize( lightDir + viewDir ); + float dotNL = saturate( dot( normal, lightDir ) ); + float dotNV = saturate( dot( normal, viewDir ) ); + float dotNH = saturate( dot( normal, halfDir ) ); + float dotVH = saturate( dot( viewDir, halfDir ) ); + vec3 F = F_Schlick( f0, f90, dotVH ); + float V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV ); + float D = D_GGX( alpha, dotNH ); + return F * ( V * D ); + } +#endif +vec3 BRDF_GGX( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material ) { + vec3 f0 = material.specularColor; + float f90 = material.specularF90; + float roughness = material.roughness; + float alpha = pow2( roughness ); + vec3 halfDir = normalize( lightDir + viewDir ); + float dotNL = saturate( dot( normal, lightDir ) ); + float dotNV = saturate( dot( normal, viewDir ) ); + float dotNH = saturate( dot( normal, halfDir ) ); + float dotVH = saturate( dot( viewDir, halfDir ) ); + vec3 F = F_Schlick( f0, f90, dotVH ); + #ifdef USE_IRIDESCENCE + F = mix( F, material.iridescenceFresnel, material.iridescence ); + #endif + #ifdef USE_ANISOTROPY + float dotTL = dot( material.anisotropyT, lightDir ); + float dotTV = dot( material.anisotropyT, viewDir ); + float dotTH = dot( material.anisotropyT, halfDir ); + float dotBL = dot( material.anisotropyB, lightDir ); + float dotBV = dot( material.anisotropyB, viewDir ); + float dotBH = dot( material.anisotropyB, halfDir ); + float V = V_GGX_SmithCorrelated_Anisotropic( material.alphaT, alpha, dotTV, dotBV, dotTL, dotBL, dotNV, dotNL ); + float D = D_GGX_Anisotropic( material.alphaT, alpha, dotNH, dotTH, dotBH ); + #else + float V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV ); + float D = D_GGX( alpha, dotNH ); + #endif + return F * ( V * D ); +} +vec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) { + const float LUT_SIZE = 64.0; + const float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE; + const float LUT_BIAS = 0.5 / LUT_SIZE; + float dotNV = saturate( dot( N, V ) ); + vec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) ); + uv = uv * LUT_SCALE + LUT_BIAS; + return uv; +} +float LTC_ClippedSphereFormFactor( const in vec3 f ) { + float l = length( f ); + return max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 ); +} +vec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) { + float x = dot( v1, v2 ); + float y = abs( x ); + float a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y; + float b = 3.4175940 + ( 4.1616724 + y ) * y; + float v = a / b; + float theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v; + return cross( v1, v2 ) * theta_sintheta; +} +vec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) { + vec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ]; + vec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ]; + vec3 lightNormal = cross( v1, v2 ); + if( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 ); + vec3 T1, T2; + T1 = normalize( V - N * dot( V, N ) ); + T2 = - cross( N, T1 ); + mat3 mat = mInv * transposeMat3( mat3( T1, T2, N ) ); + vec3 coords[ 4 ]; + coords[ 0 ] = mat * ( rectCoords[ 0 ] - P ); + coords[ 1 ] = mat * ( rectCoords[ 1 ] - P ); + coords[ 2 ] = mat * ( rectCoords[ 2 ] - P ); + coords[ 3 ] = mat * ( rectCoords[ 3 ] - P ); + coords[ 0 ] = normalize( coords[ 0 ] ); + coords[ 1 ] = normalize( coords[ 1 ] ); + coords[ 2 ] = normalize( coords[ 2 ] ); + coords[ 3 ] = normalize( coords[ 3 ] ); + vec3 vectorFormFactor = vec3( 0.0 ); + vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] ); + vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] ); + vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] ); + vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] ); + float result = LTC_ClippedSphereFormFactor( vectorFormFactor ); + return vec3( result ); +} +#if defined( USE_SHEEN ) +float D_Charlie( float roughness, float dotNH ) { + float alpha = pow2( roughness ); + float invAlpha = 1.0 / alpha; + float cos2h = dotNH * dotNH; + float sin2h = max( 1.0 - cos2h, 0.0078125 ); + return ( 2.0 + invAlpha ) * pow( sin2h, invAlpha * 0.5 ) / ( 2.0 * PI ); +} +float V_Neubelt( float dotNV, float dotNL ) { + return saturate( 1.0 / ( 4.0 * ( dotNL + dotNV - dotNL * dotNV ) ) ); +} +vec3 BRDF_Sheen( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, vec3 sheenColor, const in float sheenRoughness ) { + vec3 halfDir = normalize( lightDir + viewDir ); + float dotNL = saturate( dot( normal, lightDir ) ); + float dotNV = saturate( dot( normal, viewDir ) ); + float dotNH = saturate( dot( normal, halfDir ) ); + float D = D_Charlie( sheenRoughness, dotNH ); + float V = V_Neubelt( dotNV, dotNL ); + return sheenColor * ( D * V ); +} +#endif +float IBLSheenBRDF( const in vec3 normal, const in vec3 viewDir, const in float roughness ) { + float dotNV = saturate( dot( normal, viewDir ) ); + float r2 = roughness * roughness; + float a = roughness < 0.25 ? -339.2 * r2 + 161.4 * roughness - 25.9 : -8.48 * r2 + 14.3 * roughness - 9.95; + float b = roughness < 0.25 ? 44.0 * r2 - 23.7 * roughness + 3.26 : 1.97 * r2 - 3.27 * roughness + 0.72; + float DG = exp( a * dotNV + b ) + ( roughness < 0.25 ? 0.0 : 0.1 * ( roughness - 0.25 ) ); + return saturate( DG * RECIPROCAL_PI ); +} +vec2 DFGApprox( const in vec3 normal, const in vec3 viewDir, const in float roughness ) { + float dotNV = saturate( dot( normal, viewDir ) ); + const vec4 c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 ); + const vec4 c1 = vec4( 1, 0.0425, 1.04, - 0.04 ); + vec4 r = roughness * c0 + c1; + float a004 = min( r.x * r.x, exp2( - 9.28 * dotNV ) ) * r.x + r.y; + vec2 fab = vec2( - 1.04, 1.04 ) * a004 + r.zw; + return fab; +} +vec3 EnvironmentBRDF( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness ) { + vec2 fab = DFGApprox( normal, viewDir, roughness ); + return specularColor * fab.x + specularF90 * fab.y; +} +#ifdef USE_IRIDESCENCE +void computeMultiscatteringIridescence( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float iridescence, const in vec3 iridescenceF0, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) { +#else +void computeMultiscattering( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) { +#endif + vec2 fab = DFGApprox( normal, viewDir, roughness ); + #ifdef USE_IRIDESCENCE + vec3 Fr = mix( specularColor, iridescenceF0, iridescence ); + #else + vec3 Fr = specularColor; + #endif + vec3 FssEss = Fr * fab.x + specularF90 * fab.y; + float Ess = fab.x + fab.y; + float Ems = 1.0 - Ess; + vec3 Favg = Fr + ( 1.0 - Fr ) * 0.047619; vec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg ); + singleScatter += FssEss; + multiScatter += Fms * Ems; +} +#if NUM_RECT_AREA_LIGHTS > 0 + void RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) { + vec3 normal = geometryNormal; + vec3 viewDir = geometryViewDir; + vec3 position = geometryPosition; + vec3 lightPos = rectAreaLight.position; + vec3 halfWidth = rectAreaLight.halfWidth; + vec3 halfHeight = rectAreaLight.halfHeight; + vec3 lightColor = rectAreaLight.color; + float roughness = material.roughness; + vec3 rectCoords[ 4 ]; + rectCoords[ 0 ] = lightPos + halfWidth - halfHeight; rectCoords[ 1 ] = lightPos - halfWidth - halfHeight; + rectCoords[ 2 ] = lightPos - halfWidth + halfHeight; + rectCoords[ 3 ] = lightPos + halfWidth + halfHeight; + vec2 uv = LTC_Uv( normal, viewDir, roughness ); + vec4 t1 = texture2D( ltc_1, uv ); + vec4 t2 = texture2D( ltc_2, uv ); + mat3 mInv = mat3( + vec3( t1.x, 0, t1.y ), + vec3( 0, 1, 0 ), + vec3( t1.z, 0, t1.w ) + ); + vec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y ); + reflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords ); + reflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords ); + } +#endif +void RE_Direct_Physical( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) { + float dotNL = saturate( dot( geometryNormal, directLight.direction ) ); + vec3 irradiance = dotNL * directLight.color; + #ifdef USE_CLEARCOAT + float dotNLcc = saturate( dot( geometryClearcoatNormal, directLight.direction ) ); + vec3 ccIrradiance = dotNLcc * directLight.color; + clearcoatSpecularDirect += ccIrradiance * BRDF_GGX_Clearcoat( directLight.direction, geometryViewDir, geometryClearcoatNormal, material ); + #endif + #ifdef USE_SHEEN + sheenSpecularDirect += irradiance * BRDF_Sheen( directLight.direction, geometryViewDir, geometryNormal, material.sheenColor, material.sheenRoughness ); + #endif + reflectedLight.directSpecular += irradiance * BRDF_GGX( directLight.direction, geometryViewDir, geometryNormal, material ); + reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); +} +void RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) { + reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); +} +void RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) { + #ifdef USE_CLEARCOAT + clearcoatSpecularIndirect += clearcoatRadiance * EnvironmentBRDF( geometryClearcoatNormal, geometryViewDir, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness ); + #endif + #ifdef USE_SHEEN + sheenSpecularIndirect += irradiance * material.sheenColor * IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness ); + #endif + vec3 singleScattering = vec3( 0.0 ); + vec3 multiScattering = vec3( 0.0 ); + vec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI; + #ifdef USE_IRIDESCENCE + computeMultiscatteringIridescence( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.iridescence, material.iridescenceFresnel, material.roughness, singleScattering, multiScattering ); + #else + computeMultiscattering( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.roughness, singleScattering, multiScattering ); + #endif + vec3 totalScattering = singleScattering + multiScattering; + vec3 diffuse = material.diffuseColor * ( 1.0 - max( max( totalScattering.r, totalScattering.g ), totalScattering.b ) ); + reflectedLight.indirectSpecular += radiance * singleScattering; + reflectedLight.indirectSpecular += multiScattering * cosineWeightedIrradiance; + reflectedLight.indirectDiffuse += diffuse * cosineWeightedIrradiance; +} +#define RE_Direct RE_Direct_Physical +#define RE_Direct_RectArea RE_Direct_RectArea_Physical +#define RE_IndirectDiffuse RE_IndirectDiffuse_Physical +#define RE_IndirectSpecular RE_IndirectSpecular_Physical +float computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) { + return saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion ); +}`,id=` +vec3 geometryPosition = - vViewPosition; +vec3 geometryNormal = normal; +vec3 geometryViewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition ); +vec3 geometryClearcoatNormal = vec3( 0.0 ); +#ifdef USE_CLEARCOAT + geometryClearcoatNormal = clearcoatNormal; +#endif +#ifdef USE_IRIDESCENCE + float dotNVi = saturate( dot( normal, geometryViewDir ) ); + if ( material.iridescenceThickness == 0.0 ) { + material.iridescence = 0.0; + } else { + material.iridescence = saturate( material.iridescence ); + } + if ( material.iridescence > 0.0 ) { + material.iridescenceFresnel = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.specularColor ); + material.iridescenceF0 = Schlick_to_F0( material.iridescenceFresnel, 1.0, dotNVi ); + } +#endif +IncidentLight directLight; +#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct ) + PointLight pointLight; + #if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0 + PointLightShadow pointLightShadow; + #endif + #pragma unroll_loop_start + for ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) { + pointLight = pointLights[ i ]; + getPointLightInfo( pointLight, geometryPosition, directLight ); + #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS ) + pointLightShadow = pointLightShadows[ i ]; + directLight.color *= ( directLight.visible && receiveShadow ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowIntensity, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0; + #endif + RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); + } + #pragma unroll_loop_end +#endif +#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct ) + SpotLight spotLight; + vec4 spotColor; + vec3 spotLightCoord; + bool inSpotLightMap; + #if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0 + SpotLightShadow spotLightShadow; + #endif + #pragma unroll_loop_start + for ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) { + spotLight = spotLights[ i ]; + getSpotLightInfo( spotLight, geometryPosition, directLight ); + #if ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS ) + #define SPOT_LIGHT_MAP_INDEX UNROLLED_LOOP_INDEX + #elif ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS ) + #define SPOT_LIGHT_MAP_INDEX NUM_SPOT_LIGHT_MAPS + #else + #define SPOT_LIGHT_MAP_INDEX ( UNROLLED_LOOP_INDEX - NUM_SPOT_LIGHT_SHADOWS + NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS ) + #endif + #if ( SPOT_LIGHT_MAP_INDEX < NUM_SPOT_LIGHT_MAPS ) + spotLightCoord = vSpotLightCoord[ i ].xyz / vSpotLightCoord[ i ].w; + inSpotLightMap = all( lessThan( abs( spotLightCoord * 2. - 1. ), vec3( 1.0 ) ) ); + spotColor = texture2D( spotLightMap[ SPOT_LIGHT_MAP_INDEX ], spotLightCoord.xy ); + directLight.color = inSpotLightMap ? directLight.color * spotColor.rgb : directLight.color; + #endif + #undef SPOT_LIGHT_MAP_INDEX + #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS ) + spotLightShadow = spotLightShadows[ i ]; + directLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowIntensity, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotLightCoord[ i ] ) : 1.0; + #endif + RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); + } + #pragma unroll_loop_end +#endif +#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct ) + DirectionalLight directionalLight; + #if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0 + DirectionalLightShadow directionalLightShadow; + #endif + #pragma unroll_loop_start + for ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) { + directionalLight = directionalLights[ i ]; + getDirectionalLightInfo( directionalLight, directLight ); + #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS ) + directionalLightShadow = directionalLightShadows[ i ]; + directLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowIntensity, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0; + #endif + RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); + } + #pragma unroll_loop_end +#endif +#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea ) + RectAreaLight rectAreaLight; + #pragma unroll_loop_start + for ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) { + rectAreaLight = rectAreaLights[ i ]; + RE_Direct_RectArea( rectAreaLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); + } + #pragma unroll_loop_end +#endif +#if defined( RE_IndirectDiffuse ) + vec3 iblIrradiance = vec3( 0.0 ); + vec3 irradiance = getAmbientLightIrradiance( ambientLightColor ); + #if defined( USE_LIGHT_PROBES ) + irradiance += getLightProbeIrradiance( lightProbe, geometryNormal ); + #endif + #if ( NUM_HEMI_LIGHTS > 0 ) + #pragma unroll_loop_start + for ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) { + irradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometryNormal ); + } + #pragma unroll_loop_end + #endif +#endif +#if defined( RE_IndirectSpecular ) + vec3 radiance = vec3( 0.0 ); + vec3 clearcoatRadiance = vec3( 0.0 ); +#endif`,rd=`#if defined( RE_IndirectDiffuse ) + #ifdef USE_LIGHTMAP + vec4 lightMapTexel = texture2D( lightMap, vLightMapUv ); + vec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity; + irradiance += lightMapIrradiance; + #endif + #if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV ) + iblIrradiance += getIBLIrradiance( geometryNormal ); + #endif +#endif +#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular ) + #ifdef USE_ANISOTROPY + radiance += getIBLAnisotropyRadiance( geometryViewDir, geometryNormal, material.roughness, material.anisotropyB, material.anisotropy ); + #else + radiance += getIBLRadiance( geometryViewDir, geometryNormal, material.roughness ); + #endif + #ifdef USE_CLEARCOAT + clearcoatRadiance += getIBLRadiance( geometryViewDir, geometryClearcoatNormal, material.clearcoatRoughness ); + #endif +#endif`,sd=`#if defined( RE_IndirectDiffuse ) + RE_IndirectDiffuse( irradiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); +#endif +#if defined( RE_IndirectSpecular ) + RE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); +#endif`,ad=`#if defined( USE_LOGDEPTHBUF ) + gl_FragDepth = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5; +#endif`,od=`#if defined( USE_LOGDEPTHBUF ) + uniform float logDepthBufFC; + varying float vFragDepth; + varying float vIsPerspective; +#endif`,ld=`#ifdef USE_LOGDEPTHBUF + varying float vFragDepth; + varying float vIsPerspective; +#endif`,cd=`#ifdef USE_LOGDEPTHBUF + vFragDepth = 1.0 + gl_Position.w; + vIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) ); +#endif`,hd=`#ifdef USE_MAP + vec4 sampledDiffuseColor = texture2D( map, vMapUv ); + #ifdef DECODE_VIDEO_TEXTURE + sampledDiffuseColor = sRGBTransferEOTF( sampledDiffuseColor ); + #endif + diffuseColor *= sampledDiffuseColor; +#endif`,ud=`#ifdef USE_MAP + uniform sampler2D map; +#endif`,dd=`#if defined( USE_MAP ) || defined( USE_ALPHAMAP ) + #if defined( USE_POINTS_UV ) + vec2 uv = vUv; + #else + vec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy; + #endif +#endif +#ifdef USE_MAP + diffuseColor *= texture2D( map, uv ); +#endif +#ifdef USE_ALPHAMAP + diffuseColor.a *= texture2D( alphaMap, uv ).g; +#endif`,fd=`#if defined( USE_POINTS_UV ) + varying vec2 vUv; +#else + #if defined( USE_MAP ) || defined( USE_ALPHAMAP ) + uniform mat3 uvTransform; + #endif +#endif +#ifdef USE_MAP + uniform sampler2D map; +#endif +#ifdef USE_ALPHAMAP + uniform sampler2D alphaMap; +#endif`,pd=`float metalnessFactor = metalness; +#ifdef USE_METALNESSMAP + vec4 texelMetalness = texture2D( metalnessMap, vMetalnessMapUv ); + metalnessFactor *= texelMetalness.b; +#endif`,md=`#ifdef USE_METALNESSMAP + uniform sampler2D metalnessMap; +#endif`,gd=`#ifdef USE_INSTANCING_MORPH + float morphTargetInfluences[ MORPHTARGETS_COUNT ]; + float morphTargetBaseInfluence = texelFetch( morphTexture, ivec2( 0, gl_InstanceID ), 0 ).r; + for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { + morphTargetInfluences[i] = texelFetch( morphTexture, ivec2( i + 1, gl_InstanceID ), 0 ).r; + } +#endif`,_d=`#if defined( USE_MORPHCOLORS ) + vColor *= morphTargetBaseInfluence; + for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { + #if defined( USE_COLOR_ALPHA ) + if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ) * morphTargetInfluences[ i ]; + #elif defined( USE_COLOR ) + if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ]; + #endif + } +#endif`,vd=`#ifdef USE_MORPHNORMALS + objectNormal *= morphTargetBaseInfluence; + for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { + if ( morphTargetInfluences[ i ] != 0.0 ) objectNormal += getMorph( gl_VertexID, i, 1 ).xyz * morphTargetInfluences[ i ]; + } +#endif`,xd=`#ifdef USE_MORPHTARGETS + #ifndef USE_INSTANCING_MORPH + uniform float morphTargetBaseInfluence; + uniform float morphTargetInfluences[ MORPHTARGETS_COUNT ]; + #endif + uniform sampler2DArray morphTargetsTexture; + uniform ivec2 morphTargetsTextureSize; + vec4 getMorph( const in int vertexIndex, const in int morphTargetIndex, const in int offset ) { + int texelIndex = vertexIndex * MORPHTARGETS_TEXTURE_STRIDE + offset; + int y = texelIndex / morphTargetsTextureSize.x; + int x = texelIndex - y * morphTargetsTextureSize.x; + ivec3 morphUV = ivec3( x, y, morphTargetIndex ); + return texelFetch( morphTargetsTexture, morphUV, 0 ); + } +#endif`,Md=`#ifdef USE_MORPHTARGETS + transformed *= morphTargetBaseInfluence; + for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { + if ( morphTargetInfluences[ i ] != 0.0 ) transformed += getMorph( gl_VertexID, i, 0 ).xyz * morphTargetInfluences[ i ]; + } +#endif`,Sd=`float faceDirection = gl_FrontFacing ? 1.0 : - 1.0; +#ifdef FLAT_SHADED + vec3 fdx = dFdx( vViewPosition ); + vec3 fdy = dFdy( vViewPosition ); + vec3 normal = normalize( cross( fdx, fdy ) ); +#else + vec3 normal = normalize( vNormal ); + #ifdef DOUBLE_SIDED + normal *= faceDirection; + #endif +#endif +#if defined( USE_NORMALMAP_TANGENTSPACE ) || defined( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) + #ifdef USE_TANGENT + mat3 tbn = mat3( normalize( vTangent ), normalize( vBitangent ), normal ); + #else + mat3 tbn = getTangentFrame( - vViewPosition, normal, + #if defined( USE_NORMALMAP ) + vNormalMapUv + #elif defined( USE_CLEARCOAT_NORMALMAP ) + vClearcoatNormalMapUv + #else + vUv + #endif + ); + #endif + #if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED ) + tbn[0] *= faceDirection; + tbn[1] *= faceDirection; + #endif +#endif +#ifdef USE_CLEARCOAT_NORMALMAP + #ifdef USE_TANGENT + mat3 tbn2 = mat3( normalize( vTangent ), normalize( vBitangent ), normal ); + #else + mat3 tbn2 = getTangentFrame( - vViewPosition, normal, vClearcoatNormalMapUv ); + #endif + #if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED ) + tbn2[0] *= faceDirection; + tbn2[1] *= faceDirection; + #endif +#endif +vec3 nonPerturbedNormal = normal;`,yd=`#ifdef USE_NORMALMAP_OBJECTSPACE + normal = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0; + #ifdef FLIP_SIDED + normal = - normal; + #endif + #ifdef DOUBLE_SIDED + normal = normal * faceDirection; + #endif + normal = normalize( normalMatrix * normal ); +#elif defined( USE_NORMALMAP_TANGENTSPACE ) + vec3 mapN = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0; + mapN.xy *= normalScale; + normal = normalize( tbn * mapN ); +#elif defined( USE_BUMPMAP ) + normal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection ); +#endif`,Ed=`#ifndef FLAT_SHADED + varying vec3 vNormal; + #ifdef USE_TANGENT + varying vec3 vTangent; + varying vec3 vBitangent; + #endif +#endif`,Td=`#ifndef FLAT_SHADED + varying vec3 vNormal; + #ifdef USE_TANGENT + varying vec3 vTangent; + varying vec3 vBitangent; + #endif +#endif`,bd=`#ifndef FLAT_SHADED + vNormal = normalize( transformedNormal ); + #ifdef USE_TANGENT + vTangent = normalize( transformedTangent ); + vBitangent = normalize( cross( vNormal, vTangent ) * tangent.w ); + #endif +#endif`,Ad=`#ifdef USE_NORMALMAP + uniform sampler2D normalMap; + uniform vec2 normalScale; +#endif +#ifdef USE_NORMALMAP_OBJECTSPACE + uniform mat3 normalMatrix; +#endif +#if ! defined ( USE_TANGENT ) && ( defined ( USE_NORMALMAP_TANGENTSPACE ) || defined ( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) ) + mat3 getTangentFrame( vec3 eye_pos, vec3 surf_norm, vec2 uv ) { + vec3 q0 = dFdx( eye_pos.xyz ); + vec3 q1 = dFdy( eye_pos.xyz ); + vec2 st0 = dFdx( uv.st ); + vec2 st1 = dFdy( uv.st ); + vec3 N = surf_norm; + vec3 q1perp = cross( q1, N ); + vec3 q0perp = cross( N, q0 ); + vec3 T = q1perp * st0.x + q0perp * st1.x; + vec3 B = q1perp * st0.y + q0perp * st1.y; + float det = max( dot( T, T ), dot( B, B ) ); + float scale = ( det == 0.0 ) ? 0.0 : inversesqrt( det ); + return mat3( T * scale, B * scale, N ); + } +#endif`,wd=`#ifdef USE_CLEARCOAT + vec3 clearcoatNormal = nonPerturbedNormal; +#endif`,Rd=`#ifdef USE_CLEARCOAT_NORMALMAP + vec3 clearcoatMapN = texture2D( clearcoatNormalMap, vClearcoatNormalMapUv ).xyz * 2.0 - 1.0; + clearcoatMapN.xy *= clearcoatNormalScale; + clearcoatNormal = normalize( tbn2 * clearcoatMapN ); +#endif`,Cd=`#ifdef USE_CLEARCOATMAP + uniform sampler2D clearcoatMap; +#endif +#ifdef USE_CLEARCOAT_NORMALMAP + uniform sampler2D clearcoatNormalMap; + uniform vec2 clearcoatNormalScale; +#endif +#ifdef USE_CLEARCOAT_ROUGHNESSMAP + uniform sampler2D clearcoatRoughnessMap; +#endif`,Pd=`#ifdef USE_IRIDESCENCEMAP + uniform sampler2D iridescenceMap; +#endif +#ifdef USE_IRIDESCENCE_THICKNESSMAP + uniform sampler2D iridescenceThicknessMap; +#endif`,Ld=`#ifdef OPAQUE +diffuseColor.a = 1.0; +#endif +#ifdef USE_TRANSMISSION +diffuseColor.a *= material.transmissionAlpha; +#endif +gl_FragColor = vec4( outgoingLight, diffuseColor.a );`,Dd=`vec3 packNormalToRGB( const in vec3 normal ) { + return normalize( normal ) * 0.5 + 0.5; +} +vec3 unpackRGBToNormal( const in vec3 rgb ) { + return 2.0 * rgb.xyz - 1.0; +} +const float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.;const float ShiftRight8 = 1. / 256.; +const float Inv255 = 1. / 255.; +const vec4 PackFactors = vec4( 1.0, 256.0, 256.0 * 256.0, 256.0 * 256.0 * 256.0 ); +const vec2 UnpackFactors2 = vec2( UnpackDownscale, 1.0 / PackFactors.g ); +const vec3 UnpackFactors3 = vec3( UnpackDownscale / PackFactors.rg, 1.0 / PackFactors.b ); +const vec4 UnpackFactors4 = vec4( UnpackDownscale / PackFactors.rgb, 1.0 / PackFactors.a ); +vec4 packDepthToRGBA( const in float v ) { + if( v <= 0.0 ) + return vec4( 0., 0., 0., 0. ); + if( v >= 1.0 ) + return vec4( 1., 1., 1., 1. ); + float vuf; + float af = modf( v * PackFactors.a, vuf ); + float bf = modf( vuf * ShiftRight8, vuf ); + float gf = modf( vuf * ShiftRight8, vuf ); + return vec4( vuf * Inv255, gf * PackUpscale, bf * PackUpscale, af ); +} +vec3 packDepthToRGB( const in float v ) { + if( v <= 0.0 ) + return vec3( 0., 0., 0. ); + if( v >= 1.0 ) + return vec3( 1., 1., 1. ); + float vuf; + float bf = modf( v * PackFactors.b, vuf ); + float gf = modf( vuf * ShiftRight8, vuf ); + return vec3( vuf * Inv255, gf * PackUpscale, bf ); +} +vec2 packDepthToRG( const in float v ) { + if( v <= 0.0 ) + return vec2( 0., 0. ); + if( v >= 1.0 ) + return vec2( 1., 1. ); + float vuf; + float gf = modf( v * 256., vuf ); + return vec2( vuf * Inv255, gf ); +} +float unpackRGBAToDepth( const in vec4 v ) { + return dot( v, UnpackFactors4 ); +} +float unpackRGBToDepth( const in vec3 v ) { + return dot( v, UnpackFactors3 ); +} +float unpackRGToDepth( const in vec2 v ) { + return v.r * UnpackFactors2.r + v.g * UnpackFactors2.g; +} +vec4 pack2HalfToRGBA( const in vec2 v ) { + vec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ) ); + return vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w ); +} +vec2 unpackRGBATo2Half( const in vec4 v ) { + return vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) ); +} +float viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) { + return ( viewZ + near ) / ( near - far ); +} +float orthographicDepthToViewZ( const in float depth, const in float near, const in float far ) { + return depth * ( near - far ) - near; +} +float viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) { + return ( ( near + viewZ ) * far ) / ( ( far - near ) * viewZ ); +} +float perspectiveDepthToViewZ( const in float depth, const in float near, const in float far ) { + return ( near * far ) / ( ( far - near ) * depth - far ); +}`,Id=`#ifdef PREMULTIPLIED_ALPHA + gl_FragColor.rgb *= gl_FragColor.a; +#endif`,Ud=`vec4 mvPosition = vec4( transformed, 1.0 ); +#ifdef USE_BATCHING + mvPosition = batchingMatrix * mvPosition; +#endif +#ifdef USE_INSTANCING + mvPosition = instanceMatrix * mvPosition; +#endif +mvPosition = modelViewMatrix * mvPosition; +gl_Position = projectionMatrix * mvPosition;`,Nd=`#ifdef DITHERING + gl_FragColor.rgb = dithering( gl_FragColor.rgb ); +#endif`,Fd=`#ifdef DITHERING + vec3 dithering( vec3 color ) { + float grid_position = rand( gl_FragCoord.xy ); + vec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 ); + dither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position ); + return color + dither_shift_RGB; + } +#endif`,Od=`float roughnessFactor = roughness; +#ifdef USE_ROUGHNESSMAP + vec4 texelRoughness = texture2D( roughnessMap, vRoughnessMapUv ); + roughnessFactor *= texelRoughness.g; +#endif`,Bd=`#ifdef USE_ROUGHNESSMAP + uniform sampler2D roughnessMap; +#endif`,zd=`#if NUM_SPOT_LIGHT_COORDS > 0 + varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ]; +#endif +#if NUM_SPOT_LIGHT_MAPS > 0 + uniform sampler2D spotLightMap[ NUM_SPOT_LIGHT_MAPS ]; +#endif +#ifdef USE_SHADOWMAP + #if NUM_DIR_LIGHT_SHADOWS > 0 + uniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ]; + varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ]; + struct DirectionalLightShadow { + float shadowIntensity; + float shadowBias; + float shadowNormalBias; + float shadowRadius; + vec2 shadowMapSize; + }; + uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ]; + #endif + #if NUM_SPOT_LIGHT_SHADOWS > 0 + uniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ]; + struct SpotLightShadow { + float shadowIntensity; + float shadowBias; + float shadowNormalBias; + float shadowRadius; + vec2 shadowMapSize; + }; + uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ]; + #endif + #if NUM_POINT_LIGHT_SHADOWS > 0 + uniform sampler2D pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ]; + varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ]; + struct PointLightShadow { + float shadowIntensity; + float shadowBias; + float shadowNormalBias; + float shadowRadius; + vec2 shadowMapSize; + float shadowCameraNear; + float shadowCameraFar; + }; + uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ]; + #endif + float texture2DCompare( sampler2D depths, vec2 uv, float compare ) { + return step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) ); + } + vec2 texture2DDistribution( sampler2D shadow, vec2 uv ) { + return unpackRGBATo2Half( texture2D( shadow, uv ) ); + } + float VSMShadow (sampler2D shadow, vec2 uv, float compare ){ + float occlusion = 1.0; + vec2 distribution = texture2DDistribution( shadow, uv ); + float hard_shadow = step( compare , distribution.x ); + if (hard_shadow != 1.0 ) { + float distance = compare - distribution.x ; + float variance = max( 0.00000, distribution.y * distribution.y ); + float softness_probability = variance / (variance + distance * distance ); softness_probability = clamp( ( softness_probability - 0.3 ) / ( 0.95 - 0.3 ), 0.0, 1.0 ); occlusion = clamp( max( hard_shadow, softness_probability ), 0.0, 1.0 ); + } + return occlusion; + } + float getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord ) { + float shadow = 1.0; + shadowCoord.xyz /= shadowCoord.w; + shadowCoord.z += shadowBias; + bool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0; + bool frustumTest = inFrustum && shadowCoord.z <= 1.0; + if ( frustumTest ) { + #if defined( SHADOWMAP_TYPE_PCF ) + vec2 texelSize = vec2( 1.0 ) / shadowMapSize; + float dx0 = - texelSize.x * shadowRadius; + float dy0 = - texelSize.y * shadowRadius; + float dx1 = + texelSize.x * shadowRadius; + float dy1 = + texelSize.y * shadowRadius; + float dx2 = dx0 / 2.0; + float dy2 = dy0 / 2.0; + float dx3 = dx1 / 2.0; + float dy3 = dy1 / 2.0; + shadow = ( + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy2 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy2 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy2 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, 0.0 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, 0.0 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy3 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy3 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy3 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z ) + ) * ( 1.0 / 17.0 ); + #elif defined( SHADOWMAP_TYPE_PCF_SOFT ) + vec2 texelSize = vec2( 1.0 ) / shadowMapSize; + float dx = texelSize.x; + float dy = texelSize.y; + vec2 uv = shadowCoord.xy; + vec2 f = fract( uv * shadowMapSize + 0.5 ); + uv -= f * texelSize; + shadow = ( + texture2DCompare( shadowMap, uv, shadowCoord.z ) + + texture2DCompare( shadowMap, uv + vec2( dx, 0.0 ), shadowCoord.z ) + + texture2DCompare( shadowMap, uv + vec2( 0.0, dy ), shadowCoord.z ) + + texture2DCompare( shadowMap, uv + texelSize, shadowCoord.z ) + + mix( texture2DCompare( shadowMap, uv + vec2( -dx, 0.0 ), shadowCoord.z ), + texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 0.0 ), shadowCoord.z ), + f.x ) + + mix( texture2DCompare( shadowMap, uv + vec2( -dx, dy ), shadowCoord.z ), + texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, dy ), shadowCoord.z ), + f.x ) + + mix( texture2DCompare( shadowMap, uv + vec2( 0.0, -dy ), shadowCoord.z ), + texture2DCompare( shadowMap, uv + vec2( 0.0, 2.0 * dy ), shadowCoord.z ), + f.y ) + + mix( texture2DCompare( shadowMap, uv + vec2( dx, -dy ), shadowCoord.z ), + texture2DCompare( shadowMap, uv + vec2( dx, 2.0 * dy ), shadowCoord.z ), + f.y ) + + mix( mix( texture2DCompare( shadowMap, uv + vec2( -dx, -dy ), shadowCoord.z ), + texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, -dy ), shadowCoord.z ), + f.x ), + mix( texture2DCompare( shadowMap, uv + vec2( -dx, 2.0 * dy ), shadowCoord.z ), + texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 2.0 * dy ), shadowCoord.z ), + f.x ), + f.y ) + ) * ( 1.0 / 9.0 ); + #elif defined( SHADOWMAP_TYPE_VSM ) + shadow = VSMShadow( shadowMap, shadowCoord.xy, shadowCoord.z ); + #else + shadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ); + #endif + } + return mix( 1.0, shadow, shadowIntensity ); + } + vec2 cubeToUV( vec3 v, float texelSizeY ) { + vec3 absV = abs( v ); + float scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) ); + absV *= scaleToCube; + v *= scaleToCube * ( 1.0 - 2.0 * texelSizeY ); + vec2 planar = v.xy; + float almostATexel = 1.5 * texelSizeY; + float almostOne = 1.0 - almostATexel; + if ( absV.z >= almostOne ) { + if ( v.z > 0.0 ) + planar.x = 4.0 - v.x; + } else if ( absV.x >= almostOne ) { + float signX = sign( v.x ); + planar.x = v.z * signX + 2.0 * signX; + } else if ( absV.y >= almostOne ) { + float signY = sign( v.y ); + planar.x = v.x + 2.0 * signY + 2.0; + planar.y = v.z * signY - 2.0; + } + return vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 ); + } + float getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) { + float shadow = 1.0; + vec3 lightToPosition = shadowCoord.xyz; + + float lightToPositionLength = length( lightToPosition ); + if ( lightToPositionLength - shadowCameraFar <= 0.0 && lightToPositionLength - shadowCameraNear >= 0.0 ) { + float dp = ( lightToPositionLength - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear ); dp += shadowBias; + vec3 bd3D = normalize( lightToPosition ); + vec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) ); + #if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT ) || defined( SHADOWMAP_TYPE_VSM ) + vec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y; + shadow = ( + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) + + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) + + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) + + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) + + texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) + + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) + + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) + + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) + + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp ) + ) * ( 1.0 / 9.0 ); + #else + shadow = texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ); + #endif + } + return mix( 1.0, shadow, shadowIntensity ); + } +#endif`,Vd=`#if NUM_SPOT_LIGHT_COORDS > 0 + uniform mat4 spotLightMatrix[ NUM_SPOT_LIGHT_COORDS ]; + varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ]; +#endif +#ifdef USE_SHADOWMAP + #if NUM_DIR_LIGHT_SHADOWS > 0 + uniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ]; + varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ]; + struct DirectionalLightShadow { + float shadowIntensity; + float shadowBias; + float shadowNormalBias; + float shadowRadius; + vec2 shadowMapSize; + }; + uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ]; + #endif + #if NUM_SPOT_LIGHT_SHADOWS > 0 + struct SpotLightShadow { + float shadowIntensity; + float shadowBias; + float shadowNormalBias; + float shadowRadius; + vec2 shadowMapSize; + }; + uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ]; + #endif + #if NUM_POINT_LIGHT_SHADOWS > 0 + uniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ]; + varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ]; + struct PointLightShadow { + float shadowIntensity; + float shadowBias; + float shadowNormalBias; + float shadowRadius; + vec2 shadowMapSize; + float shadowCameraNear; + float shadowCameraFar; + }; + uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ]; + #endif +#endif`,Hd=`#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 ) + vec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix ); + vec4 shadowWorldPosition; +#endif +#if defined( USE_SHADOWMAP ) + #if NUM_DIR_LIGHT_SHADOWS > 0 + #pragma unroll_loop_start + for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) { + shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 ); + vDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition; + } + #pragma unroll_loop_end + #endif + #if NUM_POINT_LIGHT_SHADOWS > 0 + #pragma unroll_loop_start + for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) { + shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 ); + vPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition; + } + #pragma unroll_loop_end + #endif +#endif +#if NUM_SPOT_LIGHT_COORDS > 0 + #pragma unroll_loop_start + for ( int i = 0; i < NUM_SPOT_LIGHT_COORDS; i ++ ) { + shadowWorldPosition = worldPosition; + #if ( defined( USE_SHADOWMAP ) && UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS ) + shadowWorldPosition.xyz += shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias; + #endif + vSpotLightCoord[ i ] = spotLightMatrix[ i ] * shadowWorldPosition; + } + #pragma unroll_loop_end +#endif`,kd=`float getShadowMask() { + float shadow = 1.0; + #ifdef USE_SHADOWMAP + #if NUM_DIR_LIGHT_SHADOWS > 0 + DirectionalLightShadow directionalLight; + #pragma unroll_loop_start + for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) { + directionalLight = directionalLightShadows[ i ]; + shadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowIntensity, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0; + } + #pragma unroll_loop_end + #endif + #if NUM_SPOT_LIGHT_SHADOWS > 0 + SpotLightShadow spotLight; + #pragma unroll_loop_start + for ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) { + spotLight = spotLightShadows[ i ]; + shadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowIntensity, spotLight.shadowBias, spotLight.shadowRadius, vSpotLightCoord[ i ] ) : 1.0; + } + #pragma unroll_loop_end + #endif + #if NUM_POINT_LIGHT_SHADOWS > 0 + PointLightShadow pointLight; + #pragma unroll_loop_start + for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) { + pointLight = pointLightShadows[ i ]; + shadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowIntensity, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0; + } + #pragma unroll_loop_end + #endif + #endif + return shadow; +}`,Gd=`#ifdef USE_SKINNING + mat4 boneMatX = getBoneMatrix( skinIndex.x ); + mat4 boneMatY = getBoneMatrix( skinIndex.y ); + mat4 boneMatZ = getBoneMatrix( skinIndex.z ); + mat4 boneMatW = getBoneMatrix( skinIndex.w ); +#endif`,Wd=`#ifdef USE_SKINNING + uniform mat4 bindMatrix; + uniform mat4 bindMatrixInverse; + uniform highp sampler2D boneTexture; + mat4 getBoneMatrix( const in float i ) { + int size = textureSize( boneTexture, 0 ).x; + int j = int( i ) * 4; + int x = j % size; + int y = j / size; + vec4 v1 = texelFetch( boneTexture, ivec2( x, y ), 0 ); + vec4 v2 = texelFetch( boneTexture, ivec2( x + 1, y ), 0 ); + vec4 v3 = texelFetch( boneTexture, ivec2( x + 2, y ), 0 ); + vec4 v4 = texelFetch( boneTexture, ivec2( x + 3, y ), 0 ); + return mat4( v1, v2, v3, v4 ); + } +#endif`,Xd=`#ifdef USE_SKINNING + vec4 skinVertex = bindMatrix * vec4( transformed, 1.0 ); + vec4 skinned = vec4( 0.0 ); + skinned += boneMatX * skinVertex * skinWeight.x; + skinned += boneMatY * skinVertex * skinWeight.y; + skinned += boneMatZ * skinVertex * skinWeight.z; + skinned += boneMatW * skinVertex * skinWeight.w; + transformed = ( bindMatrixInverse * skinned ).xyz; +#endif`,qd=`#ifdef USE_SKINNING + mat4 skinMatrix = mat4( 0.0 ); + skinMatrix += skinWeight.x * boneMatX; + skinMatrix += skinWeight.y * boneMatY; + skinMatrix += skinWeight.z * boneMatZ; + skinMatrix += skinWeight.w * boneMatW; + skinMatrix = bindMatrixInverse * skinMatrix * bindMatrix; + objectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz; + #ifdef USE_TANGENT + objectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz; + #endif +#endif`,Yd=`float specularStrength; +#ifdef USE_SPECULARMAP + vec4 texelSpecular = texture2D( specularMap, vSpecularMapUv ); + specularStrength = texelSpecular.r; +#else + specularStrength = 1.0; +#endif`,Kd=`#ifdef USE_SPECULARMAP + uniform sampler2D specularMap; +#endif`,Zd=`#if defined( TONE_MAPPING ) + gl_FragColor.rgb = toneMapping( gl_FragColor.rgb ); +#endif`,$d=`#ifndef saturate +#define saturate( a ) clamp( a, 0.0, 1.0 ) +#endif +uniform float toneMappingExposure; +vec3 LinearToneMapping( vec3 color ) { + return saturate( toneMappingExposure * color ); +} +vec3 ReinhardToneMapping( vec3 color ) { + color *= toneMappingExposure; + return saturate( color / ( vec3( 1.0 ) + color ) ); +} +vec3 CineonToneMapping( vec3 color ) { + color *= toneMappingExposure; + color = max( vec3( 0.0 ), color - 0.004 ); + return pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) ); +} +vec3 RRTAndODTFit( vec3 v ) { + vec3 a = v * ( v + 0.0245786 ) - 0.000090537; + vec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081; + return a / b; +} +vec3 ACESFilmicToneMapping( vec3 color ) { + const mat3 ACESInputMat = mat3( + vec3( 0.59719, 0.07600, 0.02840 ), vec3( 0.35458, 0.90834, 0.13383 ), + vec3( 0.04823, 0.01566, 0.83777 ) + ); + const mat3 ACESOutputMat = mat3( + vec3( 1.60475, -0.10208, -0.00327 ), vec3( -0.53108, 1.10813, -0.07276 ), + vec3( -0.07367, -0.00605, 1.07602 ) + ); + color *= toneMappingExposure / 0.6; + color = ACESInputMat * color; + color = RRTAndODTFit( color ); + color = ACESOutputMat * color; + return saturate( color ); +} +const mat3 LINEAR_REC2020_TO_LINEAR_SRGB = mat3( + vec3( 1.6605, - 0.1246, - 0.0182 ), + vec3( - 0.5876, 1.1329, - 0.1006 ), + vec3( - 0.0728, - 0.0083, 1.1187 ) +); +const mat3 LINEAR_SRGB_TO_LINEAR_REC2020 = mat3( + vec3( 0.6274, 0.0691, 0.0164 ), + vec3( 0.3293, 0.9195, 0.0880 ), + vec3( 0.0433, 0.0113, 0.8956 ) +); +vec3 agxDefaultContrastApprox( vec3 x ) { + vec3 x2 = x * x; + vec3 x4 = x2 * x2; + return + 15.5 * x4 * x2 + - 40.14 * x4 * x + + 31.96 * x4 + - 6.868 * x2 * x + + 0.4298 * x2 + + 0.1191 * x + - 0.00232; +} +vec3 AgXToneMapping( vec3 color ) { + const mat3 AgXInsetMatrix = mat3( + vec3( 0.856627153315983, 0.137318972929847, 0.11189821299995 ), + vec3( 0.0951212405381588, 0.761241990602591, 0.0767994186031903 ), + vec3( 0.0482516061458583, 0.101439036467562, 0.811302368396859 ) + ); + const mat3 AgXOutsetMatrix = mat3( + vec3( 1.1271005818144368, - 0.1413297634984383, - 0.14132976349843826 ), + vec3( - 0.11060664309660323, 1.157823702216272, - 0.11060664309660294 ), + vec3( - 0.016493938717834573, - 0.016493938717834257, 1.2519364065950405 ) + ); + const float AgxMinEv = - 12.47393; const float AgxMaxEv = 4.026069; + color *= toneMappingExposure; + color = LINEAR_SRGB_TO_LINEAR_REC2020 * color; + color = AgXInsetMatrix * color; + color = max( color, 1e-10 ); color = log2( color ); + color = ( color - AgxMinEv ) / ( AgxMaxEv - AgxMinEv ); + color = clamp( color, 0.0, 1.0 ); + color = agxDefaultContrastApprox( color ); + color = AgXOutsetMatrix * color; + color = pow( max( vec3( 0.0 ), color ), vec3( 2.2 ) ); + color = LINEAR_REC2020_TO_LINEAR_SRGB * color; + color = clamp( color, 0.0, 1.0 ); + return color; +} +vec3 NeutralToneMapping( vec3 color ) { + const float StartCompression = 0.8 - 0.04; + const float Desaturation = 0.15; + color *= toneMappingExposure; + float x = min( color.r, min( color.g, color.b ) ); + float offset = x < 0.08 ? x - 6.25 * x * x : 0.04; + color -= offset; + float peak = max( color.r, max( color.g, color.b ) ); + if ( peak < StartCompression ) return color; + float d = 1. - StartCompression; + float newPeak = 1. - d * d / ( peak + d - StartCompression ); + color *= newPeak / peak; + float g = 1. - 1. / ( Desaturation * ( peak - newPeak ) + 1. ); + return mix( color, vec3( newPeak ), g ); +} +vec3 CustomToneMapping( vec3 color ) { return color; }`,jd=`#ifdef USE_TRANSMISSION + material.transmission = transmission; + material.transmissionAlpha = 1.0; + material.thickness = thickness; + material.attenuationDistance = attenuationDistance; + material.attenuationColor = attenuationColor; + #ifdef USE_TRANSMISSIONMAP + material.transmission *= texture2D( transmissionMap, vTransmissionMapUv ).r; + #endif + #ifdef USE_THICKNESSMAP + material.thickness *= texture2D( thicknessMap, vThicknessMapUv ).g; + #endif + vec3 pos = vWorldPosition; + vec3 v = normalize( cameraPosition - pos ); + vec3 n = inverseTransformDirection( normal, viewMatrix ); + vec4 transmitted = getIBLVolumeRefraction( + n, v, material.roughness, material.diffuseColor, material.specularColor, material.specularF90, + pos, modelMatrix, viewMatrix, projectionMatrix, material.dispersion, material.ior, material.thickness, + material.attenuationColor, material.attenuationDistance ); + material.transmissionAlpha = mix( material.transmissionAlpha, transmitted.a, material.transmission ); + totalDiffuse = mix( totalDiffuse, transmitted.rgb, material.transmission ); +#endif`,Jd=`#ifdef USE_TRANSMISSION + uniform float transmission; + uniform float thickness; + uniform float attenuationDistance; + uniform vec3 attenuationColor; + #ifdef USE_TRANSMISSIONMAP + uniform sampler2D transmissionMap; + #endif + #ifdef USE_THICKNESSMAP + uniform sampler2D thicknessMap; + #endif + uniform vec2 transmissionSamplerSize; + uniform sampler2D transmissionSamplerMap; + uniform mat4 modelMatrix; + uniform mat4 projectionMatrix; + varying vec3 vWorldPosition; + float w0( float a ) { + return ( 1.0 / 6.0 ) * ( a * ( a * ( - a + 3.0 ) - 3.0 ) + 1.0 ); + } + float w1( float a ) { + return ( 1.0 / 6.0 ) * ( a * a * ( 3.0 * a - 6.0 ) + 4.0 ); + } + float w2( float a ){ + return ( 1.0 / 6.0 ) * ( a * ( a * ( - 3.0 * a + 3.0 ) + 3.0 ) + 1.0 ); + } + float w3( float a ) { + return ( 1.0 / 6.0 ) * ( a * a * a ); + } + float g0( float a ) { + return w0( a ) + w1( a ); + } + float g1( float a ) { + return w2( a ) + w3( a ); + } + float h0( float a ) { + return - 1.0 + w1( a ) / ( w0( a ) + w1( a ) ); + } + float h1( float a ) { + return 1.0 + w3( a ) / ( w2( a ) + w3( a ) ); + } + vec4 bicubic( sampler2D tex, vec2 uv, vec4 texelSize, float lod ) { + uv = uv * texelSize.zw + 0.5; + vec2 iuv = floor( uv ); + vec2 fuv = fract( uv ); + float g0x = g0( fuv.x ); + float g1x = g1( fuv.x ); + float h0x = h0( fuv.x ); + float h1x = h1( fuv.x ); + float h0y = h0( fuv.y ); + float h1y = h1( fuv.y ); + vec2 p0 = ( vec2( iuv.x + h0x, iuv.y + h0y ) - 0.5 ) * texelSize.xy; + vec2 p1 = ( vec2( iuv.x + h1x, iuv.y + h0y ) - 0.5 ) * texelSize.xy; + vec2 p2 = ( vec2( iuv.x + h0x, iuv.y + h1y ) - 0.5 ) * texelSize.xy; + vec2 p3 = ( vec2( iuv.x + h1x, iuv.y + h1y ) - 0.5 ) * texelSize.xy; + return g0( fuv.y ) * ( g0x * textureLod( tex, p0, lod ) + g1x * textureLod( tex, p1, lod ) ) + + g1( fuv.y ) * ( g0x * textureLod( tex, p2, lod ) + g1x * textureLod( tex, p3, lod ) ); + } + vec4 textureBicubic( sampler2D sampler, vec2 uv, float lod ) { + vec2 fLodSize = vec2( textureSize( sampler, int( lod ) ) ); + vec2 cLodSize = vec2( textureSize( sampler, int( lod + 1.0 ) ) ); + vec2 fLodSizeInv = 1.0 / fLodSize; + vec2 cLodSizeInv = 1.0 / cLodSize; + vec4 fSample = bicubic( sampler, uv, vec4( fLodSizeInv, fLodSize ), floor( lod ) ); + vec4 cSample = bicubic( sampler, uv, vec4( cLodSizeInv, cLodSize ), ceil( lod ) ); + return mix( fSample, cSample, fract( lod ) ); + } + vec3 getVolumeTransmissionRay( const in vec3 n, const in vec3 v, const in float thickness, const in float ior, const in mat4 modelMatrix ) { + vec3 refractionVector = refract( - v, normalize( n ), 1.0 / ior ); + vec3 modelScale; + modelScale.x = length( vec3( modelMatrix[ 0 ].xyz ) ); + modelScale.y = length( vec3( modelMatrix[ 1 ].xyz ) ); + modelScale.z = length( vec3( modelMatrix[ 2 ].xyz ) ); + return normalize( refractionVector ) * thickness * modelScale; + } + float applyIorToRoughness( const in float roughness, const in float ior ) { + return roughness * clamp( ior * 2.0 - 2.0, 0.0, 1.0 ); + } + vec4 getTransmissionSample( const in vec2 fragCoord, const in float roughness, const in float ior ) { + float lod = log2( transmissionSamplerSize.x ) * applyIorToRoughness( roughness, ior ); + return textureBicubic( transmissionSamplerMap, fragCoord.xy, lod ); + } + vec3 volumeAttenuation( const in float transmissionDistance, const in vec3 attenuationColor, const in float attenuationDistance ) { + if ( isinf( attenuationDistance ) ) { + return vec3( 1.0 ); + } else { + vec3 attenuationCoefficient = -log( attenuationColor ) / attenuationDistance; + vec3 transmittance = exp( - attenuationCoefficient * transmissionDistance ); return transmittance; + } + } + vec4 getIBLVolumeRefraction( const in vec3 n, const in vec3 v, const in float roughness, const in vec3 diffuseColor, + const in vec3 specularColor, const in float specularF90, const in vec3 position, const in mat4 modelMatrix, + const in mat4 viewMatrix, const in mat4 projMatrix, const in float dispersion, const in float ior, const in float thickness, + const in vec3 attenuationColor, const in float attenuationDistance ) { + vec4 transmittedLight; + vec3 transmittance; + #ifdef USE_DISPERSION + float halfSpread = ( ior - 1.0 ) * 0.025 * dispersion; + vec3 iors = vec3( ior - halfSpread, ior, ior + halfSpread ); + for ( int i = 0; i < 3; i ++ ) { + vec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, iors[ i ], modelMatrix ); + vec3 refractedRayExit = position + transmissionRay; + vec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 ); + vec2 refractionCoords = ndcPos.xy / ndcPos.w; + refractionCoords += 1.0; + refractionCoords /= 2.0; + vec4 transmissionSample = getTransmissionSample( refractionCoords, roughness, iors[ i ] ); + transmittedLight[ i ] = transmissionSample[ i ]; + transmittedLight.a += transmissionSample.a; + transmittance[ i ] = diffuseColor[ i ] * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance )[ i ]; + } + transmittedLight.a /= 3.0; + #else + vec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, ior, modelMatrix ); + vec3 refractedRayExit = position + transmissionRay; + vec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 ); + vec2 refractionCoords = ndcPos.xy / ndcPos.w; + refractionCoords += 1.0; + refractionCoords /= 2.0; + transmittedLight = getTransmissionSample( refractionCoords, roughness, ior ); + transmittance = diffuseColor * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance ); + #endif + vec3 attenuatedColor = transmittance * transmittedLight.rgb; + vec3 F = EnvironmentBRDF( n, v, specularColor, specularF90, roughness ); + float transmittanceFactor = ( transmittance.r + transmittance.g + transmittance.b ) / 3.0; + return vec4( ( 1.0 - F ) * attenuatedColor, 1.0 - ( 1.0 - transmittedLight.a ) * transmittanceFactor ); + } +#endif`,Qd=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) + varying vec2 vUv; +#endif +#ifdef USE_MAP + varying vec2 vMapUv; +#endif +#ifdef USE_ALPHAMAP + varying vec2 vAlphaMapUv; +#endif +#ifdef USE_LIGHTMAP + varying vec2 vLightMapUv; +#endif +#ifdef USE_AOMAP + varying vec2 vAoMapUv; +#endif +#ifdef USE_BUMPMAP + varying vec2 vBumpMapUv; +#endif +#ifdef USE_NORMALMAP + varying vec2 vNormalMapUv; +#endif +#ifdef USE_EMISSIVEMAP + varying vec2 vEmissiveMapUv; +#endif +#ifdef USE_METALNESSMAP + varying vec2 vMetalnessMapUv; +#endif +#ifdef USE_ROUGHNESSMAP + varying vec2 vRoughnessMapUv; +#endif +#ifdef USE_ANISOTROPYMAP + varying vec2 vAnisotropyMapUv; +#endif +#ifdef USE_CLEARCOATMAP + varying vec2 vClearcoatMapUv; +#endif +#ifdef USE_CLEARCOAT_NORMALMAP + varying vec2 vClearcoatNormalMapUv; +#endif +#ifdef USE_CLEARCOAT_ROUGHNESSMAP + varying vec2 vClearcoatRoughnessMapUv; +#endif +#ifdef USE_IRIDESCENCEMAP + varying vec2 vIridescenceMapUv; +#endif +#ifdef USE_IRIDESCENCE_THICKNESSMAP + varying vec2 vIridescenceThicknessMapUv; +#endif +#ifdef USE_SHEEN_COLORMAP + varying vec2 vSheenColorMapUv; +#endif +#ifdef USE_SHEEN_ROUGHNESSMAP + varying vec2 vSheenRoughnessMapUv; +#endif +#ifdef USE_SPECULARMAP + varying vec2 vSpecularMapUv; +#endif +#ifdef USE_SPECULAR_COLORMAP + varying vec2 vSpecularColorMapUv; +#endif +#ifdef USE_SPECULAR_INTENSITYMAP + varying vec2 vSpecularIntensityMapUv; +#endif +#ifdef USE_TRANSMISSIONMAP + uniform mat3 transmissionMapTransform; + varying vec2 vTransmissionMapUv; +#endif +#ifdef USE_THICKNESSMAP + uniform mat3 thicknessMapTransform; + varying vec2 vThicknessMapUv; +#endif`,ef=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) + varying vec2 vUv; +#endif +#ifdef USE_MAP + uniform mat3 mapTransform; + varying vec2 vMapUv; +#endif +#ifdef USE_ALPHAMAP + uniform mat3 alphaMapTransform; + varying vec2 vAlphaMapUv; +#endif +#ifdef USE_LIGHTMAP + uniform mat3 lightMapTransform; + varying vec2 vLightMapUv; +#endif +#ifdef USE_AOMAP + uniform mat3 aoMapTransform; + varying vec2 vAoMapUv; +#endif +#ifdef USE_BUMPMAP + uniform mat3 bumpMapTransform; + varying vec2 vBumpMapUv; +#endif +#ifdef USE_NORMALMAP + uniform mat3 normalMapTransform; + varying vec2 vNormalMapUv; +#endif +#ifdef USE_DISPLACEMENTMAP + uniform mat3 displacementMapTransform; + varying vec2 vDisplacementMapUv; +#endif +#ifdef USE_EMISSIVEMAP + uniform mat3 emissiveMapTransform; + varying vec2 vEmissiveMapUv; +#endif +#ifdef USE_METALNESSMAP + uniform mat3 metalnessMapTransform; + varying vec2 vMetalnessMapUv; +#endif +#ifdef USE_ROUGHNESSMAP + uniform mat3 roughnessMapTransform; + varying vec2 vRoughnessMapUv; +#endif +#ifdef USE_ANISOTROPYMAP + uniform mat3 anisotropyMapTransform; + varying vec2 vAnisotropyMapUv; +#endif +#ifdef USE_CLEARCOATMAP + uniform mat3 clearcoatMapTransform; + varying vec2 vClearcoatMapUv; +#endif +#ifdef USE_CLEARCOAT_NORMALMAP + uniform mat3 clearcoatNormalMapTransform; + varying vec2 vClearcoatNormalMapUv; +#endif +#ifdef USE_CLEARCOAT_ROUGHNESSMAP + uniform mat3 clearcoatRoughnessMapTransform; + varying vec2 vClearcoatRoughnessMapUv; +#endif +#ifdef USE_SHEEN_COLORMAP + uniform mat3 sheenColorMapTransform; + varying vec2 vSheenColorMapUv; +#endif +#ifdef USE_SHEEN_ROUGHNESSMAP + uniform mat3 sheenRoughnessMapTransform; + varying vec2 vSheenRoughnessMapUv; +#endif +#ifdef USE_IRIDESCENCEMAP + uniform mat3 iridescenceMapTransform; + varying vec2 vIridescenceMapUv; +#endif +#ifdef USE_IRIDESCENCE_THICKNESSMAP + uniform mat3 iridescenceThicknessMapTransform; + varying vec2 vIridescenceThicknessMapUv; +#endif +#ifdef USE_SPECULARMAP + uniform mat3 specularMapTransform; + varying vec2 vSpecularMapUv; +#endif +#ifdef USE_SPECULAR_COLORMAP + uniform mat3 specularColorMapTransform; + varying vec2 vSpecularColorMapUv; +#endif +#ifdef USE_SPECULAR_INTENSITYMAP + uniform mat3 specularIntensityMapTransform; + varying vec2 vSpecularIntensityMapUv; +#endif +#ifdef USE_TRANSMISSIONMAP + uniform mat3 transmissionMapTransform; + varying vec2 vTransmissionMapUv; +#endif +#ifdef USE_THICKNESSMAP + uniform mat3 thicknessMapTransform; + varying vec2 vThicknessMapUv; +#endif`,tf=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) + vUv = vec3( uv, 1 ).xy; +#endif +#ifdef USE_MAP + vMapUv = ( mapTransform * vec3( MAP_UV, 1 ) ).xy; +#endif +#ifdef USE_ALPHAMAP + vAlphaMapUv = ( alphaMapTransform * vec3( ALPHAMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_LIGHTMAP + vLightMapUv = ( lightMapTransform * vec3( LIGHTMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_AOMAP + vAoMapUv = ( aoMapTransform * vec3( AOMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_BUMPMAP + vBumpMapUv = ( bumpMapTransform * vec3( BUMPMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_NORMALMAP + vNormalMapUv = ( normalMapTransform * vec3( NORMALMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_DISPLACEMENTMAP + vDisplacementMapUv = ( displacementMapTransform * vec3( DISPLACEMENTMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_EMISSIVEMAP + vEmissiveMapUv = ( emissiveMapTransform * vec3( EMISSIVEMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_METALNESSMAP + vMetalnessMapUv = ( metalnessMapTransform * vec3( METALNESSMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_ROUGHNESSMAP + vRoughnessMapUv = ( roughnessMapTransform * vec3( ROUGHNESSMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_ANISOTROPYMAP + vAnisotropyMapUv = ( anisotropyMapTransform * vec3( ANISOTROPYMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_CLEARCOATMAP + vClearcoatMapUv = ( clearcoatMapTransform * vec3( CLEARCOATMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_CLEARCOAT_NORMALMAP + vClearcoatNormalMapUv = ( clearcoatNormalMapTransform * vec3( CLEARCOAT_NORMALMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_CLEARCOAT_ROUGHNESSMAP + vClearcoatRoughnessMapUv = ( clearcoatRoughnessMapTransform * vec3( CLEARCOAT_ROUGHNESSMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_IRIDESCENCEMAP + vIridescenceMapUv = ( iridescenceMapTransform * vec3( IRIDESCENCEMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_IRIDESCENCE_THICKNESSMAP + vIridescenceThicknessMapUv = ( iridescenceThicknessMapTransform * vec3( IRIDESCENCE_THICKNESSMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_SHEEN_COLORMAP + vSheenColorMapUv = ( sheenColorMapTransform * vec3( SHEEN_COLORMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_SHEEN_ROUGHNESSMAP + vSheenRoughnessMapUv = ( sheenRoughnessMapTransform * vec3( SHEEN_ROUGHNESSMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_SPECULARMAP + vSpecularMapUv = ( specularMapTransform * vec3( SPECULARMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_SPECULAR_COLORMAP + vSpecularColorMapUv = ( specularColorMapTransform * vec3( SPECULAR_COLORMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_SPECULAR_INTENSITYMAP + vSpecularIntensityMapUv = ( specularIntensityMapTransform * vec3( SPECULAR_INTENSITYMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_TRANSMISSIONMAP + vTransmissionMapUv = ( transmissionMapTransform * vec3( TRANSMISSIONMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_THICKNESSMAP + vThicknessMapUv = ( thicknessMapTransform * vec3( THICKNESSMAP_UV, 1 ) ).xy; +#endif`,nf=`#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0 + vec4 worldPosition = vec4( transformed, 1.0 ); + #ifdef USE_BATCHING + worldPosition = batchingMatrix * worldPosition; + #endif + #ifdef USE_INSTANCING + worldPosition = instanceMatrix * worldPosition; + #endif + worldPosition = modelMatrix * worldPosition; +#endif`;const rf=`varying vec2 vUv; +uniform mat3 uvTransform; +void main() { + vUv = ( uvTransform * vec3( uv, 1 ) ).xy; + gl_Position = vec4( position.xy, 1.0, 1.0 ); +}`,sf=`uniform sampler2D t2D; +uniform float backgroundIntensity; +varying vec2 vUv; +void main() { + vec4 texColor = texture2D( t2D, vUv ); + #ifdef DECODE_VIDEO_TEXTURE + texColor = vec4( mix( pow( texColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), texColor.rgb * 0.0773993808, vec3( lessThanEqual( texColor.rgb, vec3( 0.04045 ) ) ) ), texColor.w ); + #endif + texColor.rgb *= backgroundIntensity; + gl_FragColor = texColor; + #include + #include +}`,af=`varying vec3 vWorldDirection; +#include +void main() { + vWorldDirection = transformDirection( position, modelMatrix ); + #include + #include + gl_Position.z = gl_Position.w; +}`,of=`#ifdef ENVMAP_TYPE_CUBE + uniform samplerCube envMap; +#elif defined( ENVMAP_TYPE_CUBE_UV ) + uniform sampler2D envMap; +#endif +uniform float flipEnvMap; +uniform float backgroundBlurriness; +uniform float backgroundIntensity; +uniform mat3 backgroundRotation; +varying vec3 vWorldDirection; +#include +void main() { + #ifdef ENVMAP_TYPE_CUBE + vec4 texColor = textureCube( envMap, backgroundRotation * vec3( flipEnvMap * vWorldDirection.x, vWorldDirection.yz ) ); + #elif defined( ENVMAP_TYPE_CUBE_UV ) + vec4 texColor = textureCubeUV( envMap, backgroundRotation * vWorldDirection, backgroundBlurriness ); + #else + vec4 texColor = vec4( 0.0, 0.0, 0.0, 1.0 ); + #endif + texColor.rgb *= backgroundIntensity; + gl_FragColor = texColor; + #include + #include +}`,lf=`varying vec3 vWorldDirection; +#include +void main() { + vWorldDirection = transformDirection( position, modelMatrix ); + #include + #include + gl_Position.z = gl_Position.w; +}`,cf=`uniform samplerCube tCube; +uniform float tFlip; +uniform float opacity; +varying vec3 vWorldDirection; +void main() { + vec4 texColor = textureCube( tCube, vec3( tFlip * vWorldDirection.x, vWorldDirection.yz ) ); + gl_FragColor = texColor; + gl_FragColor.a *= opacity; + #include + #include +}`,hf=`#include +#include +#include +#include +#include +#include +#include +#include +varying vec2 vHighPrecisionZW; +void main() { + #include + #include + #include + #include + #ifdef USE_DISPLACEMENTMAP + #include + #include + #include + #endif + #include + #include + #include + #include + #include + #include + #include + vHighPrecisionZW = gl_Position.zw; +}`,uf=`#if DEPTH_PACKING == 3200 + uniform float opacity; +#endif +#include +#include +#include +#include +#include +#include +#include +#include +#include +varying vec2 vHighPrecisionZW; +void main() { + vec4 diffuseColor = vec4( 1.0 ); + #include + #if DEPTH_PACKING == 3200 + diffuseColor.a = opacity; + #endif + #include + #include + #include + #include + #include + float fragCoordZ = 0.5 * vHighPrecisionZW[0] / vHighPrecisionZW[1] + 0.5; + #if DEPTH_PACKING == 3200 + gl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity ); + #elif DEPTH_PACKING == 3201 + gl_FragColor = packDepthToRGBA( fragCoordZ ); + #elif DEPTH_PACKING == 3202 + gl_FragColor = vec4( packDepthToRGB( fragCoordZ ), 1.0 ); + #elif DEPTH_PACKING == 3203 + gl_FragColor = vec4( packDepthToRG( fragCoordZ ), 0.0, 1.0 ); + #endif +}`,df=`#define DISTANCE +varying vec3 vWorldPosition; +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #ifdef USE_DISPLACEMENTMAP + #include + #include + #include + #endif + #include + #include + #include + #include + #include + #include + #include + vWorldPosition = worldPosition.xyz; +}`,ff=`#define DISTANCE +uniform vec3 referencePosition; +uniform float nearDistance; +uniform float farDistance; +varying vec3 vWorldPosition; +#include +#include +#include +#include +#include +#include +#include +#include +void main () { + vec4 diffuseColor = vec4( 1.0 ); + #include + #include + #include + #include + #include + float dist = length( vWorldPosition - referencePosition ); + dist = ( dist - nearDistance ) / ( farDistance - nearDistance ); + dist = saturate( dist ); + gl_FragColor = packDepthToRGBA( dist ); +}`,pf=`varying vec3 vWorldDirection; +#include +void main() { + vWorldDirection = transformDirection( position, modelMatrix ); + #include + #include +}`,mf=`uniform sampler2D tEquirect; +varying vec3 vWorldDirection; +#include +void main() { + vec3 direction = normalize( vWorldDirection ); + vec2 sampleUV = equirectUv( direction ); + gl_FragColor = texture2D( tEquirect, sampleUV ); + #include + #include +}`,gf=`uniform float scale; +attribute float lineDistance; +varying float vLineDistance; +#include +#include +#include +#include +#include +#include +#include +void main() { + vLineDistance = scale * lineDistance; + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include +}`,_f=`uniform vec3 diffuse; +uniform float opacity; +uniform float dashSize; +uniform float totalSize; +varying float vLineDistance; +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + if ( mod( vLineDistance, totalSize ) > dashSize ) { + discard; + } + vec3 outgoingLight = vec3( 0.0 ); + #include + #include + #include + outgoingLight = diffuseColor.rgb; + #include + #include + #include + #include + #include +}`,vf=`#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #if defined ( USE_ENVMAP ) || defined ( USE_SKINNING ) + #include + #include + #include + #include + #include + #endif + #include + #include + #include + #include + #include + #include + #include + #include + #include +}`,xf=`uniform vec3 diffuse; +uniform float opacity; +#ifndef FLAT_SHADED + varying vec3 vNormal; +#endif +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + #include + #include + #include + #include + #include + #include + #include + ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); + #ifdef USE_LIGHTMAP + vec4 lightMapTexel = texture2D( lightMap, vLightMapUv ); + reflectedLight.indirectDiffuse += lightMapTexel.rgb * lightMapIntensity * RECIPROCAL_PI; + #else + reflectedLight.indirectDiffuse += vec3( 1.0 ); + #endif + #include + reflectedLight.indirectDiffuse *= diffuseColor.rgb; + vec3 outgoingLight = reflectedLight.indirectDiffuse; + #include + #include + #include + #include + #include + #include + #include +}`,Mf=`#define LAMBERT +varying vec3 vViewPosition; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vViewPosition = - mvPosition.xyz; + #include + #include + #include + #include +}`,Sf=`#define LAMBERT +uniform vec3 diffuse; +uniform vec3 emissive; +uniform float opacity; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); + vec3 totalEmissiveRadiance = emissive; + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance; + #include + #include + #include + #include + #include + #include + #include +}`,yf=`#define MATCAP +varying vec3 vViewPosition; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vViewPosition = - mvPosition.xyz; +}`,Ef=`#define MATCAP +uniform vec3 diffuse; +uniform float opacity; +uniform sampler2D matcap; +varying vec3 vViewPosition; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + #include + #include + #include + #include + #include + #include + #include + #include + vec3 viewDir = normalize( vViewPosition ); + vec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) ); + vec3 y = cross( viewDir, x ); + vec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5; + #ifdef USE_MATCAP + vec4 matcapColor = texture2D( matcap, uv ); + #else + vec4 matcapColor = vec4( vec3( mix( 0.2, 0.8, uv.y ) ), 1.0 ); + #endif + vec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb; + #include + #include + #include + #include + #include + #include +}`,Tf=`#define NORMAL +#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) + varying vec3 vViewPosition; +#endif +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include +#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) + vViewPosition = - mvPosition.xyz; +#endif +}`,bf=`#define NORMAL +uniform float opacity; +#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) + varying vec3 vViewPosition; +#endif +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( 0.0, 0.0, 0.0, opacity ); + #include + #include + #include + #include + gl_FragColor = vec4( packNormalToRGB( normal ), diffuseColor.a ); + #ifdef OPAQUE + gl_FragColor.a = 1.0; + #endif +}`,Af=`#define PHONG +varying vec3 vViewPosition; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vViewPosition = - mvPosition.xyz; + #include + #include + #include + #include +}`,wf=`#define PHONG +uniform vec3 diffuse; +uniform vec3 emissive; +uniform vec3 specular; +uniform float shininess; +uniform float opacity; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); + vec3 totalEmissiveRadiance = emissive; + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance; + #include + #include + #include + #include + #include + #include + #include +}`,Rf=`#define STANDARD +varying vec3 vViewPosition; +#ifdef USE_TRANSMISSION + varying vec3 vWorldPosition; +#endif +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vViewPosition = - mvPosition.xyz; + #include + #include + #include +#ifdef USE_TRANSMISSION + vWorldPosition = worldPosition.xyz; +#endif +}`,Cf=`#define STANDARD +#ifdef PHYSICAL + #define IOR + #define USE_SPECULAR +#endif +uniform vec3 diffuse; +uniform vec3 emissive; +uniform float roughness; +uniform float metalness; +uniform float opacity; +#ifdef IOR + uniform float ior; +#endif +#ifdef USE_SPECULAR + uniform float specularIntensity; + uniform vec3 specularColor; + #ifdef USE_SPECULAR_COLORMAP + uniform sampler2D specularColorMap; + #endif + #ifdef USE_SPECULAR_INTENSITYMAP + uniform sampler2D specularIntensityMap; + #endif +#endif +#ifdef USE_CLEARCOAT + uniform float clearcoat; + uniform float clearcoatRoughness; +#endif +#ifdef USE_DISPERSION + uniform float dispersion; +#endif +#ifdef USE_IRIDESCENCE + uniform float iridescence; + uniform float iridescenceIOR; + uniform float iridescenceThicknessMinimum; + uniform float iridescenceThicknessMaximum; +#endif +#ifdef USE_SHEEN + uniform vec3 sheenColor; + uniform float sheenRoughness; + #ifdef USE_SHEEN_COLORMAP + uniform sampler2D sheenColorMap; + #endif + #ifdef USE_SHEEN_ROUGHNESSMAP + uniform sampler2D sheenRoughnessMap; + #endif +#endif +#ifdef USE_ANISOTROPY + uniform vec2 anisotropyVector; + #ifdef USE_ANISOTROPYMAP + uniform sampler2D anisotropyMap; + #endif +#endif +varying vec3 vViewPosition; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); + vec3 totalEmissiveRadiance = emissive; + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vec3 totalDiffuse = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse; + vec3 totalSpecular = reflectedLight.directSpecular + reflectedLight.indirectSpecular; + #include + vec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance; + #ifdef USE_SHEEN + float sheenEnergyComp = 1.0 - 0.157 * max3( material.sheenColor ); + outgoingLight = outgoingLight * sheenEnergyComp + sheenSpecularDirect + sheenSpecularIndirect; + #endif + #ifdef USE_CLEARCOAT + float dotNVcc = saturate( dot( geometryClearcoatNormal, geometryViewDir ) ); + vec3 Fcc = F_Schlick( material.clearcoatF0, material.clearcoatF90, dotNVcc ); + outgoingLight = outgoingLight * ( 1.0 - material.clearcoat * Fcc ) + ( clearcoatSpecularDirect + clearcoatSpecularIndirect ) * material.clearcoat; + #endif + #include + #include + #include + #include + #include + #include +}`,Pf=`#define TOON +varying vec3 vViewPosition; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vViewPosition = - mvPosition.xyz; + #include + #include + #include +}`,Lf=`#define TOON +uniform vec3 diffuse; +uniform vec3 emissive; +uniform float opacity; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); + vec3 totalEmissiveRadiance = emissive; + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance; + #include + #include + #include + #include + #include + #include +}`,Df=`uniform float size; +uniform float scale; +#include +#include +#include +#include +#include +#include +#ifdef USE_POINTS_UV + varying vec2 vUv; + uniform mat3 uvTransform; +#endif +void main() { + #ifdef USE_POINTS_UV + vUv = ( uvTransform * vec3( uv, 1 ) ).xy; + #endif + #include + #include + #include + #include + #include + #include + gl_PointSize = size; + #ifdef USE_SIZEATTENUATION + bool isPerspective = isPerspectiveMatrix( projectionMatrix ); + if ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z ); + #endif + #include + #include + #include + #include +}`,If=`uniform vec3 diffuse; +uniform float opacity; +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + vec3 outgoingLight = vec3( 0.0 ); + #include + #include + #include + #include + #include + outgoingLight = diffuseColor.rgb; + #include + #include + #include + #include + #include +}`,Uf=`#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include +}`,Nf=`uniform vec3 color; +uniform float opacity; +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + gl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) ); + #include + #include + #include +}`,Ff=`uniform float rotation; +uniform vec2 center; +#include +#include +#include +#include +#include +void main() { + #include + vec4 mvPosition = modelViewMatrix[ 3 ]; + vec2 scale = vec2( length( modelMatrix[ 0 ].xyz ), length( modelMatrix[ 1 ].xyz ) ); + #ifndef USE_SIZEATTENUATION + bool isPerspective = isPerspectiveMatrix( projectionMatrix ); + if ( isPerspective ) scale *= - mvPosition.z; + #endif + vec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale; + vec2 rotatedPosition; + rotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y; + rotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y; + mvPosition.xy += rotatedPosition; + gl_Position = projectionMatrix * mvPosition; + #include + #include + #include +}`,Of=`uniform vec3 diffuse; +uniform float opacity; +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + vec3 outgoingLight = vec3( 0.0 ); + #include + #include + #include + #include + #include + outgoingLight = diffuseColor.rgb; + #include + #include + #include + #include +}`,Le={alphahash_fragment:ru,alphahash_pars_fragment:su,alphamap_fragment:au,alphamap_pars_fragment:ou,alphatest_fragment:lu,alphatest_pars_fragment:cu,aomap_fragment:hu,aomap_pars_fragment:uu,batching_pars_vertex:du,batching_vertex:fu,begin_vertex:pu,beginnormal_vertex:mu,bsdfs:gu,iridescence_fragment:_u,bumpmap_pars_fragment:vu,clipping_planes_fragment:xu,clipping_planes_pars_fragment:Mu,clipping_planes_pars_vertex:Su,clipping_planes_vertex:yu,color_fragment:Eu,color_pars_fragment:Tu,color_pars_vertex:bu,color_vertex:Au,common:wu,cube_uv_reflection_fragment:Ru,defaultnormal_vertex:Cu,displacementmap_pars_vertex:Pu,displacementmap_vertex:Lu,emissivemap_fragment:Du,emissivemap_pars_fragment:Iu,colorspace_fragment:Uu,colorspace_pars_fragment:Nu,envmap_fragment:Fu,envmap_common_pars_fragment:Ou,envmap_pars_fragment:Bu,envmap_pars_vertex:zu,envmap_physical_pars_fragment:$u,envmap_vertex:Vu,fog_vertex:Hu,fog_pars_vertex:ku,fog_fragment:Gu,fog_pars_fragment:Wu,gradientmap_pars_fragment:Xu,lightmap_pars_fragment:qu,lights_lambert_fragment:Yu,lights_lambert_pars_fragment:Ku,lights_pars_begin:Zu,lights_toon_fragment:ju,lights_toon_pars_fragment:Ju,lights_phong_fragment:Qu,lights_phong_pars_fragment:ed,lights_physical_fragment:td,lights_physical_pars_fragment:nd,lights_fragment_begin:id,lights_fragment_maps:rd,lights_fragment_end:sd,logdepthbuf_fragment:ad,logdepthbuf_pars_fragment:od,logdepthbuf_pars_vertex:ld,logdepthbuf_vertex:cd,map_fragment:hd,map_pars_fragment:ud,map_particle_fragment:dd,map_particle_pars_fragment:fd,metalnessmap_fragment:pd,metalnessmap_pars_fragment:md,morphinstance_vertex:gd,morphcolor_vertex:_d,morphnormal_vertex:vd,morphtarget_pars_vertex:xd,morphtarget_vertex:Md,normal_fragment_begin:Sd,normal_fragment_maps:yd,normal_pars_fragment:Ed,normal_pars_vertex:Td,normal_vertex:bd,normalmap_pars_fragment:Ad,clearcoat_normal_fragment_begin:wd,clearcoat_normal_fragment_maps:Rd,clearcoat_pars_fragment:Cd,iridescence_pars_fragment:Pd,opaque_fragment:Ld,packing:Dd,premultiplied_alpha_fragment:Id,project_vertex:Ud,dithering_fragment:Nd,dithering_pars_fragment:Fd,roughnessmap_fragment:Od,roughnessmap_pars_fragment:Bd,shadowmap_pars_fragment:zd,shadowmap_pars_vertex:Vd,shadowmap_vertex:Hd,shadowmask_pars_fragment:kd,skinbase_vertex:Gd,skinning_pars_vertex:Wd,skinning_vertex:Xd,skinnormal_vertex:qd,specularmap_fragment:Yd,specularmap_pars_fragment:Kd,tonemapping_fragment:Zd,tonemapping_pars_fragment:$d,transmission_fragment:jd,transmission_pars_fragment:Jd,uv_pars_fragment:Qd,uv_pars_vertex:ef,uv_vertex:tf,worldpos_vertex:nf,background_vert:rf,background_frag:sf,backgroundCube_vert:af,backgroundCube_frag:of,cube_vert:lf,cube_frag:cf,depth_vert:hf,depth_frag:uf,distanceRGBA_vert:df,distanceRGBA_frag:ff,equirect_vert:pf,equirect_frag:mf,linedashed_vert:gf,linedashed_frag:_f,meshbasic_vert:vf,meshbasic_frag:xf,meshlambert_vert:Mf,meshlambert_frag:Sf,meshmatcap_vert:yf,meshmatcap_frag:Ef,meshnormal_vert:Tf,meshnormal_frag:bf,meshphong_vert:Af,meshphong_frag:wf,meshphysical_vert:Rf,meshphysical_frag:Cf,meshtoon_vert:Pf,meshtoon_frag:Lf,points_vert:Df,points_frag:If,shadow_vert:Uf,shadow_frag:Nf,sprite_vert:Ff,sprite_frag:Of},te={common:{diffuse:{value:new De(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new Ce},alphaMap:{value:null},alphaMapTransform:{value:new Ce},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new Ce}},envmap:{envMap:{value:null},envMapRotation:{value:new Ce},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new Ce}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new Ce}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new Ce},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new Ce},normalScale:{value:new Ve(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new Ce},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new Ce}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new Ce}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new Ce}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new De(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotShadowMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new De(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new Ce},alphaTest:{value:0},uvTransform:{value:new Ce}},sprite:{diffuse:{value:new De(16777215)},opacity:{value:1},center:{value:new Ve(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new Ce},alphaMap:{value:null},alphaMapTransform:{value:new Ce},alphaTest:{value:0}}},Kt={basic:{uniforms:Mt([te.common,te.specularmap,te.envmap,te.aomap,te.lightmap,te.fog]),vertexShader:Le.meshbasic_vert,fragmentShader:Le.meshbasic_frag},lambert:{uniforms:Mt([te.common,te.specularmap,te.envmap,te.aomap,te.lightmap,te.emissivemap,te.bumpmap,te.normalmap,te.displacementmap,te.fog,te.lights,{emissive:{value:new De(0)}}]),vertexShader:Le.meshlambert_vert,fragmentShader:Le.meshlambert_frag},phong:{uniforms:Mt([te.common,te.specularmap,te.envmap,te.aomap,te.lightmap,te.emissivemap,te.bumpmap,te.normalmap,te.displacementmap,te.fog,te.lights,{emissive:{value:new De(0)},specular:{value:new De(1118481)},shininess:{value:30}}]),vertexShader:Le.meshphong_vert,fragmentShader:Le.meshphong_frag},standard:{uniforms:Mt([te.common,te.envmap,te.aomap,te.lightmap,te.emissivemap,te.bumpmap,te.normalmap,te.displacementmap,te.roughnessmap,te.metalnessmap,te.fog,te.lights,{emissive:{value:new De(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:Le.meshphysical_vert,fragmentShader:Le.meshphysical_frag},toon:{uniforms:Mt([te.common,te.aomap,te.lightmap,te.emissivemap,te.bumpmap,te.normalmap,te.displacementmap,te.gradientmap,te.fog,te.lights,{emissive:{value:new De(0)}}]),vertexShader:Le.meshtoon_vert,fragmentShader:Le.meshtoon_frag},matcap:{uniforms:Mt([te.common,te.bumpmap,te.normalmap,te.displacementmap,te.fog,{matcap:{value:null}}]),vertexShader:Le.meshmatcap_vert,fragmentShader:Le.meshmatcap_frag},points:{uniforms:Mt([te.points,te.fog]),vertexShader:Le.points_vert,fragmentShader:Le.points_frag},dashed:{uniforms:Mt([te.common,te.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:Le.linedashed_vert,fragmentShader:Le.linedashed_frag},depth:{uniforms:Mt([te.common,te.displacementmap]),vertexShader:Le.depth_vert,fragmentShader:Le.depth_frag},normal:{uniforms:Mt([te.common,te.bumpmap,te.normalmap,te.displacementmap,{opacity:{value:1}}]),vertexShader:Le.meshnormal_vert,fragmentShader:Le.meshnormal_frag},sprite:{uniforms:Mt([te.sprite,te.fog]),vertexShader:Le.sprite_vert,fragmentShader:Le.sprite_frag},background:{uniforms:{uvTransform:{value:new Ce},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:Le.background_vert,fragmentShader:Le.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1},backgroundRotation:{value:new Ce}},vertexShader:Le.backgroundCube_vert,fragmentShader:Le.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:Le.cube_vert,fragmentShader:Le.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:Le.equirect_vert,fragmentShader:Le.equirect_frag},distanceRGBA:{uniforms:Mt([te.common,te.displacementmap,{referencePosition:{value:new N},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:Le.distanceRGBA_vert,fragmentShader:Le.distanceRGBA_frag},shadow:{uniforms:Mt([te.lights,te.fog,{color:{value:new De(0)},opacity:{value:1}}]),vertexShader:Le.shadow_vert,fragmentShader:Le.shadow_frag}};Kt.physical={uniforms:Mt([Kt.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new Ce},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new Ce},clearcoatNormalScale:{value:new Ve(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new Ce},dispersion:{value:0},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new Ce},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new Ce},sheen:{value:0},sheenColor:{value:new De(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new Ce},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new Ce},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new Ce},transmissionSamplerSize:{value:new Ve},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new Ce},attenuationDistance:{value:0},attenuationColor:{value:new De(0)},specularColor:{value:new De(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new Ce},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new Ce},anisotropyVector:{value:new Ve},anisotropyMap:{value:null},anisotropyMapTransform:{value:new Ce}}]),vertexShader:Le.meshphysical_vert,fragmentShader:Le.meshphysical_frag};const dr={r:0,b:0,g:0},Ln=new qt,Bf=new Ne;function zf(i,e,t,n,r,s,a){const o=new De(0);let c=s===!0?0:1,l,h,f=null,d=0,p=null;function g(T){let y=T.isScene===!0?T.background:null;return y&&y.isTexture&&(y=(T.backgroundBlurriness>0?t:e).get(y)),y}function v(T){let y=!1;const D=g(T);D===null?u(o,c):D&&D.isColor&&(u(D,1),y=!0);const w=i.xr.getEnvironmentBlendMode();w==="additive"?n.buffers.color.setClear(0,0,0,1,a):w==="alpha-blend"&&n.buffers.color.setClear(0,0,0,0,a),(i.autoClear||y)&&(n.buffers.depth.setTest(!0),n.buffers.depth.setMask(!0),n.buffers.color.setMask(!0),i.clear(i.autoClearColor,i.autoClearDepth,i.autoClearStencil))}function m(T,y){const D=g(y);D&&(D.isCubeTexture||D.mapping===Cr)?(h===void 0&&(h=new Nt(new Fi(1,1,1),new yn({name:"BackgroundCubeMaterial",uniforms:gi(Kt.backgroundCube.uniforms),vertexShader:Kt.backgroundCube.vertexShader,fragmentShader:Kt.backgroundCube.fragmentShader,side:yt,depthTest:!1,depthWrite:!1,fog:!1})),h.geometry.deleteAttribute("normal"),h.geometry.deleteAttribute("uv"),h.onBeforeRender=function(w,R,U){this.matrixWorld.copyPosition(U.matrixWorld)},Object.defineProperty(h.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),r.update(h)),Ln.copy(y.backgroundRotation),Ln.x*=-1,Ln.y*=-1,Ln.z*=-1,D.isCubeTexture&&D.isRenderTargetTexture===!1&&(Ln.y*=-1,Ln.z*=-1),h.material.uniforms.envMap.value=D,h.material.uniforms.flipEnvMap.value=D.isCubeTexture&&D.isRenderTargetTexture===!1?-1:1,h.material.uniforms.backgroundBlurriness.value=y.backgroundBlurriness,h.material.uniforms.backgroundIntensity.value=y.backgroundIntensity,h.material.uniforms.backgroundRotation.value.setFromMatrix4(Bf.makeRotationFromEuler(Ln)),h.material.toneMapped=We.getTransfer(D.colorSpace)!==je,(f!==D||d!==D.version||p!==i.toneMapping)&&(h.material.needsUpdate=!0,f=D,d=D.version,p=i.toneMapping),h.layers.enableAll(),T.unshift(h,h.geometry,h.material,0,0,null)):D&&D.isTexture&&(l===void 0&&(l=new Nt(new Lr(2,2),new yn({name:"BackgroundMaterial",uniforms:gi(Kt.background.uniforms),vertexShader:Kt.background.vertexShader,fragmentShader:Kt.background.fragmentShader,side:Sn,depthTest:!1,depthWrite:!1,fog:!1})),l.geometry.deleteAttribute("normal"),Object.defineProperty(l.material,"map",{get:function(){return this.uniforms.t2D.value}}),r.update(l)),l.material.uniforms.t2D.value=D,l.material.uniforms.backgroundIntensity.value=y.backgroundIntensity,l.material.toneMapped=We.getTransfer(D.colorSpace)!==je,D.matrixAutoUpdate===!0&&D.updateMatrix(),l.material.uniforms.uvTransform.value.copy(D.matrix),(f!==D||d!==D.version||p!==i.toneMapping)&&(l.material.needsUpdate=!0,f=D,d=D.version,p=i.toneMapping),l.layers.enableAll(),T.unshift(l,l.geometry,l.material,0,0,null))}function u(T,y){T.getRGB(dr,_l(i)),n.buffers.color.setClear(dr.r,dr.g,dr.b,y,a)}function b(){h!==void 0&&(h.geometry.dispose(),h.material.dispose(),h=void 0),l!==void 0&&(l.geometry.dispose(),l.material.dispose(),l=void 0)}return{getClearColor:function(){return o},setClearColor:function(T,y=1){o.set(T),c=y,u(o,c)},getClearAlpha:function(){return c},setClearAlpha:function(T){c=T,u(o,c)},render:v,addToRenderList:m,dispose:b}}function Vf(i,e){const t=i.getParameter(i.MAX_VERTEX_ATTRIBS),n={},r=d(null);let s=r,a=!1;function o(M,C,V,z,G){let Z=!1;const W=f(z,V,C);s!==W&&(s=W,l(s.object)),Z=p(M,z,V,G),Z&&g(M,z,V,G),G!==null&&e.update(G,i.ELEMENT_ARRAY_BUFFER),(Z||a)&&(a=!1,y(M,C,V,z),G!==null&&i.bindBuffer(i.ELEMENT_ARRAY_BUFFER,e.get(G).buffer))}function c(){return i.createVertexArray()}function l(M){return i.bindVertexArray(M)}function h(M){return i.deleteVertexArray(M)}function f(M,C,V){const z=V.wireframe===!0;let G=n[M.id];G===void 0&&(G={},n[M.id]=G);let Z=G[C.id];Z===void 0&&(Z={},G[C.id]=Z);let W=Z[z];return W===void 0&&(W=d(c()),Z[z]=W),W}function d(M){const C=[],V=[],z=[];for(let G=0;G=0){const he=G[k];let ve=Z[k];if(ve===void 0&&(k==="instanceMatrix"&&M.instanceMatrix&&(ve=M.instanceMatrix),k==="instanceColor"&&M.instanceColor&&(ve=M.instanceColor)),he===void 0||he.attribute!==ve||ve&&he.data!==ve.data)return!0;W++}return s.attributesNum!==W||s.index!==z}function g(M,C,V,z){const G={},Z=C.attributes;let W=0;const Q=V.getAttributes();for(const k in Q)if(Q[k].location>=0){let he=Z[k];he===void 0&&(k==="instanceMatrix"&&M.instanceMatrix&&(he=M.instanceMatrix),k==="instanceColor"&&M.instanceColor&&(he=M.instanceColor));const ve={};ve.attribute=he,he&&he.data&&(ve.data=he.data),G[k]=ve,W++}s.attributes=G,s.attributesNum=W,s.index=z}function v(){const M=s.newAttributes;for(let C=0,V=M.length;C=0){let re=G[Q];if(re===void 0&&(Q==="instanceMatrix"&&M.instanceMatrix&&(re=M.instanceMatrix),Q==="instanceColor"&&M.instanceColor&&(re=M.instanceColor)),re!==void 0){const he=re.normalized,ve=re.itemSize,Ue=e.get(re);if(Ue===void 0)continue;const Qe=Ue.buffer,q=Ue.type,ee=Ue.bytesPerElement,me=q===i.INT||q===i.UNSIGNED_INT||re.gpuType===ca;if(re.isInterleavedBufferAttribute){const se=re.data,Ee=se.stride,Xe=re.offset;if(se.isInstancedInterleavedBuffer){for(let Te=0;Te0&&i.getShaderPrecisionFormat(i.FRAGMENT_SHADER,i.HIGH_FLOAT).precision>0)return"highp";R="mediump"}return R==="mediump"&&i.getShaderPrecisionFormat(i.VERTEX_SHADER,i.MEDIUM_FLOAT).precision>0&&i.getShaderPrecisionFormat(i.FRAGMENT_SHADER,i.MEDIUM_FLOAT).precision>0?"mediump":"lowp"}let l=t.precision!==void 0?t.precision:"highp";const h=c(l);h!==l&&(console.warn("THREE.WebGLRenderer:",l,"not supported, using",h,"instead."),l=h);const f=t.logarithmicDepthBuffer===!0,d=t.reverseDepthBuffer===!0&&e.has("EXT_clip_control"),p=i.getParameter(i.MAX_TEXTURE_IMAGE_UNITS),g=i.getParameter(i.MAX_VERTEX_TEXTURE_IMAGE_UNITS),v=i.getParameter(i.MAX_TEXTURE_SIZE),m=i.getParameter(i.MAX_CUBE_MAP_TEXTURE_SIZE),u=i.getParameter(i.MAX_VERTEX_ATTRIBS),b=i.getParameter(i.MAX_VERTEX_UNIFORM_VECTORS),T=i.getParameter(i.MAX_VARYING_VECTORS),y=i.getParameter(i.MAX_FRAGMENT_UNIFORM_VECTORS),D=g>0,w=i.getParameter(i.MAX_SAMPLES);return{isWebGL2:!0,getMaxAnisotropy:s,getMaxPrecision:c,textureFormatReadable:a,textureTypeReadable:o,precision:l,logarithmicDepthBuffer:f,reverseDepthBuffer:d,maxTextures:p,maxVertexTextures:g,maxTextureSize:v,maxCubemapSize:m,maxAttributes:u,maxVertexUniforms:b,maxVaryings:T,maxFragmentUniforms:y,vertexTextures:D,maxSamples:w}}function Gf(i){const e=this;let t=null,n=0,r=!1,s=!1;const a=new In,o=new Ce,c={value:null,needsUpdate:!1};this.uniform=c,this.numPlanes=0,this.numIntersection=0,this.init=function(f,d){const p=f.length!==0||d||n!==0||r;return r=d,n=f.length,p},this.beginShadows=function(){s=!0,h(null)},this.endShadows=function(){s=!1},this.setGlobalState=function(f,d){t=h(f,d,0)},this.setState=function(f,d,p){const g=f.clippingPlanes,v=f.clipIntersection,m=f.clipShadows,u=i.get(f);if(!r||g===null||g.length===0||s&&!m)s?h(null):l();else{const b=s?0:n,T=b*4;let y=u.clippingState||null;c.value=y,y=h(g,d,T,p);for(let D=0;D!==T;++D)y[D]=t[D];u.clippingState=y,this.numIntersection=v?this.numPlanes:0,this.numPlanes+=b}};function l(){c.value!==t&&(c.value=t,c.needsUpdate=n>0),e.numPlanes=n,e.numIntersection=0}function h(f,d,p,g){const v=f!==null?f.length:0;let m=null;if(v!==0){if(m=c.value,g!==!0||m===null){const u=p+v*4,b=d.matrixWorldInverse;o.getNormalMatrix(b),(m===null||m.length0){const l=new vh(c.height);return l.fromEquirectangularTexture(i,a),e.set(a,l),a.addEventListener("dispose",r),t(l.texture,a.mapping)}else return null}}return a}function r(a){const o=a.target;o.removeEventListener("dispose",r);const c=e.get(o);c!==void 0&&(e.delete(o),c.dispose())}function s(){e=new WeakMap}return{get:n,dispose:s}}const si=4,Ao=[.125,.215,.35,.446,.526,.582],Fn=20,ds=new Cl,wo=new De;let fs=null,ps=0,ms=0,gs=!1;const Un=(1+Math.sqrt(5))/2,ii=1/Un,Ro=[new N(-Un,ii,0),new N(Un,ii,0),new N(-ii,0,Un),new N(ii,0,Un),new N(0,Un,-ii),new N(0,Un,ii),new N(-1,1,-1),new N(1,1,-1),new N(-1,1,1),new N(1,1,1)];class Co{constructor(e){this._renderer=e,this._pingPongRenderTarget=null,this._lodMax=0,this._cubeSize=0,this._lodPlanes=[],this._sizeLods=[],this._sigmas=[],this._blurMaterial=null,this._cubemapMaterial=null,this._equirectMaterial=null,this._compileMaterial(this._blurMaterial)}fromScene(e,t=0,n=.1,r=100){fs=this._renderer.getRenderTarget(),ps=this._renderer.getActiveCubeFace(),ms=this._renderer.getActiveMipmapLevel(),gs=this._renderer.xr.enabled,this._renderer.xr.enabled=!1,this._setSize(256);const s=this._allocateTargets();return s.depthBuffer=!0,this._sceneToCubeUV(e,n,r,s),t>0&&this._blur(s,0,0,t),this._applyPMREM(s),this._cleanup(s),s}fromEquirectangular(e,t=null){return this._fromTexture(e,t)}fromCubemap(e,t=null){return this._fromTexture(e,t)}compileCubemapShader(){this._cubemapMaterial===null&&(this._cubemapMaterial=Do(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){this._equirectMaterial===null&&(this._equirectMaterial=Lo(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),this._cubemapMaterial!==null&&this._cubemapMaterial.dispose(),this._equirectMaterial!==null&&this._equirectMaterial.dispose()}_setSize(e){this._lodMax=Math.floor(Math.log2(e)),this._cubeSize=Math.pow(2,this._lodMax)}_dispose(){this._blurMaterial!==null&&this._blurMaterial.dispose(),this._pingPongRenderTarget!==null&&this._pingPongRenderTarget.dispose();for(let e=0;e2?T:0,T,T),h.setRenderTarget(r),v&&h.render(g,o),h.render(e,o)}g.geometry.dispose(),g.material.dispose(),h.toneMapping=d,h.autoClear=f,e.background=m}_textureToCubeUV(e,t){const n=this._renderer,r=e.mapping===hi||e.mapping===ui;r?(this._cubemapMaterial===null&&(this._cubemapMaterial=Do()),this._cubemapMaterial.uniforms.flipEnvMap.value=e.isRenderTargetTexture===!1?-1:1):this._equirectMaterial===null&&(this._equirectMaterial=Lo());const s=r?this._cubemapMaterial:this._equirectMaterial,a=new Nt(this._lodPlanes[0],s),o=s.uniforms;o.envMap.value=e;const c=this._cubeSize;fr(t,0,0,3*c,2*c),n.setRenderTarget(t),n.render(a,ds)}_applyPMREM(e){const t=this._renderer,n=t.autoClear;t.autoClear=!1;const r=this._lodPlanes.length;for(let s=1;sFn&&console.warn(`sigmaRadians, ${s}, is too large and will clip, as it requested ${m} samples when the maximum is set to ${Fn}`);const u=[];let b=0;for(let R=0;RT-si?r-T+si:0),w=4*(this._cubeSize-y);fr(t,D,w,3*y,2*y),c.setRenderTarget(t),c.render(f,ds)}}function Xf(i){const e=[],t=[],n=[];let r=i;const s=i-si+1+Ao.length;for(let a=0;ai-si?c=Ao[a-i+si-1]:a===0&&(c=0),n.push(c);const l=1/(o-2),h=-l,f=1+l,d=[h,h,f,h,f,f,h,h,f,f,h,f],p=6,g=6,v=3,m=2,u=1,b=new Float32Array(v*g*p),T=new Float32Array(m*g*p),y=new Float32Array(u*g*p);for(let w=0;w2?0:-1,S=[R,U,0,R+2/3,U,0,R+2/3,U+1,0,R,U,0,R+2/3,U+1,0,R,U+1,0];b.set(S,v*g*w),T.set(d,m*g*w);const M=[w,w,w,w,w,w];y.set(M,u*g*w)}const D=new Yt;D.setAttribute("position",new Ft(b,v)),D.setAttribute("uv",new Ft(T,m)),D.setAttribute("faceIndex",new Ft(y,u)),e.push(D),r>si&&r--}return{lodPlanes:e,sizeLods:t,sigmas:n}}function Po(i,e,t){const n=new Vn(i,e,t);return n.texture.mapping=Cr,n.texture.name="PMREM.cubeUv",n.scissorTest=!0,n}function fr(i,e,t,n,r){i.viewport.set(e,t,n,r),i.scissor.set(e,t,n,r)}function qf(i,e,t){const n=new Float32Array(Fn),r=new N(0,1,0);return new yn({name:"SphericalGaussianBlur",defines:{n:Fn,CUBEUV_TEXEL_WIDTH:1/e,CUBEUV_TEXEL_HEIGHT:1/t,CUBEUV_MAX_MIP:`${i}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:n},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:r}},vertexShader:Ea(),fragmentShader:` + + precision mediump float; + precision mediump int; + + varying vec3 vOutputDirection; + + uniform sampler2D envMap; + uniform int samples; + uniform float weights[ n ]; + uniform bool latitudinal; + uniform float dTheta; + uniform float mipInt; + uniform vec3 poleAxis; + + #define ENVMAP_TYPE_CUBE_UV + #include + + vec3 getSample( float theta, vec3 axis ) { + + float cosTheta = cos( theta ); + // Rodrigues' axis-angle rotation + vec3 sampleDirection = vOutputDirection * cosTheta + + cross( axis, vOutputDirection ) * sin( theta ) + + axis * dot( axis, vOutputDirection ) * ( 1.0 - cosTheta ); + + return bilinearCubeUV( envMap, sampleDirection, mipInt ); + + } + + void main() { + + vec3 axis = latitudinal ? poleAxis : cross( poleAxis, vOutputDirection ); + + if ( all( equal( axis, vec3( 0.0 ) ) ) ) { + + axis = vec3( vOutputDirection.z, 0.0, - vOutputDirection.x ); + + } + + axis = normalize( axis ); + + gl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 ); + gl_FragColor.rgb += weights[ 0 ] * getSample( 0.0, axis ); + + for ( int i = 1; i < n; i++ ) { + + if ( i >= samples ) { + + break; + + } + + float theta = dTheta * float( i ); + gl_FragColor.rgb += weights[ i ] * getSample( -1.0 * theta, axis ); + gl_FragColor.rgb += weights[ i ] * getSample( theta, axis ); + + } + + } + `,blending:xn,depthTest:!1,depthWrite:!1})}function Lo(){return new yn({name:"EquirectangularToCubeUV",uniforms:{envMap:{value:null}},vertexShader:Ea(),fragmentShader:` + + precision mediump float; + precision mediump int; + + varying vec3 vOutputDirection; + + uniform sampler2D envMap; + + #include + + void main() { + + vec3 outputDirection = normalize( vOutputDirection ); + vec2 uv = equirectUv( outputDirection ); + + gl_FragColor = vec4( texture2D ( envMap, uv ).rgb, 1.0 ); + + } + `,blending:xn,depthTest:!1,depthWrite:!1})}function Do(){return new yn({name:"CubemapToCubeUV",uniforms:{envMap:{value:null},flipEnvMap:{value:-1}},vertexShader:Ea(),fragmentShader:` + + precision mediump float; + precision mediump int; + + uniform float flipEnvMap; + + varying vec3 vOutputDirection; + + uniform samplerCube envMap; + + void main() { + + gl_FragColor = textureCube( envMap, vec3( flipEnvMap * vOutputDirection.x, vOutputDirection.yz ) ); + + } + `,blending:xn,depthTest:!1,depthWrite:!1})}function Ea(){return` + + precision mediump float; + precision mediump int; + + attribute float faceIndex; + + varying vec3 vOutputDirection; + + // RH coordinate system; PMREM face-indexing convention + vec3 getDirection( vec2 uv, float face ) { + + uv = 2.0 * uv - 1.0; + + vec3 direction = vec3( uv, 1.0 ); + + if ( face == 0.0 ) { + + direction = direction.zyx; // ( 1, v, u ) pos x + + } else if ( face == 1.0 ) { + + direction = direction.xzy; + direction.xz *= -1.0; // ( -u, 1, -v ) pos y + + } else if ( face == 2.0 ) { + + direction.x *= -1.0; // ( -u, v, 1 ) pos z + + } else if ( face == 3.0 ) { + + direction = direction.zyx; + direction.xz *= -1.0; // ( -1, v, -u ) neg x + + } else if ( face == 4.0 ) { + + direction = direction.xzy; + direction.xy *= -1.0; // ( -u, -1, v ) neg y + + } else if ( face == 5.0 ) { + + direction.z *= -1.0; // ( u, v, -1 ) neg z + + } + + return direction; + + } + + void main() { + + vOutputDirection = getDirection( uv, faceIndex ); + gl_Position = vec4( position, 1.0 ); + + } + `}function Yf(i){let e=new WeakMap,t=null;function n(o){if(o&&o.isTexture){const c=o.mapping,l=c===ws||c===Rs,h=c===hi||c===ui;if(l||h){let f=e.get(o);const d=f!==void 0?f.texture.pmremVersion:0;if(o.isRenderTargetTexture&&o.pmremVersion!==d)return t===null&&(t=new Co(i)),f=l?t.fromEquirectangular(o,f):t.fromCubemap(o,f),f.texture.pmremVersion=o.pmremVersion,e.set(o,f),f.texture;if(f!==void 0)return f.texture;{const p=o.image;return l&&p&&p.height>0||h&&p&&r(p)?(t===null&&(t=new Co(i)),f=l?t.fromEquirectangular(o):t.fromCubemap(o),f.texture.pmremVersion=o.pmremVersion,e.set(o,f),o.addEventListener("dispose",s),f.texture):null}}}return o}function r(o){let c=0;const l=6;for(let h=0;he.maxTextureSize&&(D=Math.ceil(y/e.maxTextureSize),y=e.maxTextureSize);const w=new Float32Array(y*D*4*f),R=new ul(w,y,D,f);R.type=Wt,R.needsUpdate=!0;const U=T*4;for(let M=0;M0)return i;const r=e*t;let s=Uo[r];if(s===void 0&&(s=new Float32Array(r),Uo[r]=s),e!==0){n.toArray(s,0);for(let a=1,o=0;a!==e;++a)o+=t,i[a].toArray(s,o)}return s}function ht(i,e){if(i.length!==e.length)return!1;for(let t=0,n=i.length;t":" "} ${o}: ${t[a]}`)}return n.join(` +`)}const Ho=new Ce;function Yp(i){We._getMatrix(Ho,We.workingColorSpace,i);const e=`mat3( ${Ho.elements.map(t=>t.toFixed(4))} )`;switch(We.getTransfer(i)){case Er:return[e,"LinearTransferOETF"];case je:return[e,"sRGBTransferOETF"];default:return console.warn("THREE.WebGLProgram: Unsupported color space: ",i),[e,"LinearTransferOETF"]}}function ko(i,e,t){const n=i.getShaderParameter(e,i.COMPILE_STATUS),r=i.getShaderInfoLog(e).trim();if(n&&r==="")return"";const s=/ERROR: 0:(\d+)/.exec(r);if(s){const a=parseInt(s[1]);return t.toUpperCase()+` + +`+r+` + +`+qp(i.getShaderSource(e),a)}else return r}function Kp(i,e){const t=Yp(e);return[`vec4 ${i}( vec4 value ) {`,` return ${t[1]}( vec4( value.rgb * ${t[0]}, value.a ) );`,"}"].join(` +`)}function Zp(i,e){let t;switch(e){case hc:t="Linear";break;case uc:t="Reinhard";break;case dc:t="Cineon";break;case fc:t="ACESFilmic";break;case mc:t="AgX";break;case gc:t="Neutral";break;case pc:t="Custom";break;default:console.warn("THREE.WebGLProgram: Unsupported toneMapping:",e),t="Linear"}return"vec3 "+i+"( vec3 color ) { return "+t+"ToneMapping( color ); }"}const pr=new N;function $p(){We.getLuminanceCoefficients(pr);const i=pr.x.toFixed(4),e=pr.y.toFixed(4),t=pr.z.toFixed(4);return["float luminance( const in vec3 rgb ) {",` const vec3 weights = vec3( ${i}, ${e}, ${t} );`," return dot( weights, rgb );","}"].join(` +`)}function jp(i){return[i.extensionClipCullDistance?"#extension GL_ANGLE_clip_cull_distance : require":"",i.extensionMultiDraw?"#extension GL_ANGLE_multi_draw : require":""].filter(Pi).join(` +`)}function Jp(i){const e=[];for(const t in i){const n=i[t];n!==!1&&e.push("#define "+t+" "+n)}return e.join(` +`)}function Qp(i,e){const t={},n=i.getProgramParameter(e,i.ACTIVE_ATTRIBUTES);for(let r=0;r/gm;function aa(i){return i.replace(em,nm)}const tm=new Map;function nm(i,e){let t=Le[e];if(t===void 0){const n=tm.get(e);if(n!==void 0)t=Le[n],console.warn('THREE.WebGLRenderer: Shader chunk "%s" has been deprecated. Use "%s" instead.',e,n);else throw new Error("Can not resolve #include <"+e+">")}return aa(t)}const im=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function Xo(i){return i.replace(im,rm)}function rm(i,e,t,n){let r="";for(let s=parseInt(e);s0&&(m+=` +`),u=["#define SHADER_TYPE "+t.shaderType,"#define SHADER_NAME "+t.shaderName,g].filter(Pi).join(` +`),u.length>0&&(u+=` +`)):(m=[qo(t),"#define SHADER_TYPE "+t.shaderType,"#define SHADER_NAME "+t.shaderName,g,t.extensionClipCullDistance?"#define USE_CLIP_DISTANCE":"",t.batching?"#define USE_BATCHING":"",t.batchingColor?"#define USE_BATCHING_COLOR":"",t.instancing?"#define USE_INSTANCING":"",t.instancingColor?"#define USE_INSTANCING_COLOR":"",t.instancingMorph?"#define USE_INSTANCING_MORPH":"",t.useFog&&t.fog?"#define USE_FOG":"",t.useFog&&t.fogExp2?"#define FOG_EXP2":"",t.map?"#define USE_MAP":"",t.envMap?"#define USE_ENVMAP":"",t.envMap?"#define "+h:"",t.lightMap?"#define USE_LIGHTMAP":"",t.aoMap?"#define USE_AOMAP":"",t.bumpMap?"#define USE_BUMPMAP":"",t.normalMap?"#define USE_NORMALMAP":"",t.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",t.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",t.displacementMap?"#define USE_DISPLACEMENTMAP":"",t.emissiveMap?"#define USE_EMISSIVEMAP":"",t.anisotropy?"#define USE_ANISOTROPY":"",t.anisotropyMap?"#define USE_ANISOTROPYMAP":"",t.clearcoatMap?"#define USE_CLEARCOATMAP":"",t.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",t.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",t.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",t.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",t.specularMap?"#define USE_SPECULARMAP":"",t.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",t.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",t.roughnessMap?"#define USE_ROUGHNESSMAP":"",t.metalnessMap?"#define USE_METALNESSMAP":"",t.alphaMap?"#define USE_ALPHAMAP":"",t.alphaHash?"#define USE_ALPHAHASH":"",t.transmission?"#define USE_TRANSMISSION":"",t.transmissionMap?"#define USE_TRANSMISSIONMAP":"",t.thicknessMap?"#define USE_THICKNESSMAP":"",t.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",t.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",t.mapUv?"#define MAP_UV "+t.mapUv:"",t.alphaMapUv?"#define ALPHAMAP_UV "+t.alphaMapUv:"",t.lightMapUv?"#define LIGHTMAP_UV "+t.lightMapUv:"",t.aoMapUv?"#define AOMAP_UV "+t.aoMapUv:"",t.emissiveMapUv?"#define EMISSIVEMAP_UV "+t.emissiveMapUv:"",t.bumpMapUv?"#define BUMPMAP_UV "+t.bumpMapUv:"",t.normalMapUv?"#define NORMALMAP_UV "+t.normalMapUv:"",t.displacementMapUv?"#define DISPLACEMENTMAP_UV "+t.displacementMapUv:"",t.metalnessMapUv?"#define METALNESSMAP_UV "+t.metalnessMapUv:"",t.roughnessMapUv?"#define ROUGHNESSMAP_UV "+t.roughnessMapUv:"",t.anisotropyMapUv?"#define ANISOTROPYMAP_UV "+t.anisotropyMapUv:"",t.clearcoatMapUv?"#define CLEARCOATMAP_UV "+t.clearcoatMapUv:"",t.clearcoatNormalMapUv?"#define CLEARCOAT_NORMALMAP_UV "+t.clearcoatNormalMapUv:"",t.clearcoatRoughnessMapUv?"#define CLEARCOAT_ROUGHNESSMAP_UV "+t.clearcoatRoughnessMapUv:"",t.iridescenceMapUv?"#define IRIDESCENCEMAP_UV "+t.iridescenceMapUv:"",t.iridescenceThicknessMapUv?"#define IRIDESCENCE_THICKNESSMAP_UV "+t.iridescenceThicknessMapUv:"",t.sheenColorMapUv?"#define SHEEN_COLORMAP_UV "+t.sheenColorMapUv:"",t.sheenRoughnessMapUv?"#define SHEEN_ROUGHNESSMAP_UV "+t.sheenRoughnessMapUv:"",t.specularMapUv?"#define SPECULARMAP_UV "+t.specularMapUv:"",t.specularColorMapUv?"#define SPECULAR_COLORMAP_UV "+t.specularColorMapUv:"",t.specularIntensityMapUv?"#define SPECULAR_INTENSITYMAP_UV "+t.specularIntensityMapUv:"",t.transmissionMapUv?"#define TRANSMISSIONMAP_UV "+t.transmissionMapUv:"",t.thicknessMapUv?"#define THICKNESSMAP_UV "+t.thicknessMapUv:"",t.vertexTangents&&t.flatShading===!1?"#define USE_TANGENT":"",t.vertexColors?"#define USE_COLOR":"",t.vertexAlphas?"#define USE_COLOR_ALPHA":"",t.vertexUv1s?"#define USE_UV1":"",t.vertexUv2s?"#define USE_UV2":"",t.vertexUv3s?"#define USE_UV3":"",t.pointsUvs?"#define USE_POINTS_UV":"",t.flatShading?"#define FLAT_SHADED":"",t.skinning?"#define USE_SKINNING":"",t.morphTargets?"#define USE_MORPHTARGETS":"",t.morphNormals&&t.flatShading===!1?"#define USE_MORPHNORMALS":"",t.morphColors?"#define USE_MORPHCOLORS":"",t.morphTargetsCount>0?"#define MORPHTARGETS_TEXTURE_STRIDE "+t.morphTextureStride:"",t.morphTargetsCount>0?"#define MORPHTARGETS_COUNT "+t.morphTargetsCount:"",t.doubleSided?"#define DOUBLE_SIDED":"",t.flipSided?"#define FLIP_SIDED":"",t.shadowMapEnabled?"#define USE_SHADOWMAP":"",t.shadowMapEnabled?"#define "+c:"",t.sizeAttenuation?"#define USE_SIZEATTENUATION":"",t.numLightProbes>0?"#define USE_LIGHT_PROBES":"",t.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",t.reverseDepthBuffer?"#define USE_REVERSEDEPTHBUF":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;","#ifdef USE_INSTANCING"," attribute mat4 instanceMatrix;","#endif","#ifdef USE_INSTANCING_COLOR"," attribute vec3 instanceColor;","#endif","#ifdef USE_INSTANCING_MORPH"," uniform sampler2D morphTexture;","#endif","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_UV1"," attribute vec2 uv1;","#endif","#ifdef USE_UV2"," attribute vec2 uv2;","#endif","#ifdef USE_UV3"," attribute vec2 uv3;","#endif","#ifdef USE_TANGENT"," attribute vec4 tangent;","#endif","#if defined( USE_COLOR_ALPHA )"," attribute vec4 color;","#elif defined( USE_COLOR )"," attribute vec3 color;","#endif","#ifdef USE_SKINNING"," attribute vec4 skinIndex;"," attribute vec4 skinWeight;","#endif",` +`].filter(Pi).join(` +`),u=[qo(t),"#define SHADER_TYPE "+t.shaderType,"#define SHADER_NAME "+t.shaderName,g,t.useFog&&t.fog?"#define USE_FOG":"",t.useFog&&t.fogExp2?"#define FOG_EXP2":"",t.alphaToCoverage?"#define ALPHA_TO_COVERAGE":"",t.map?"#define USE_MAP":"",t.matcap?"#define USE_MATCAP":"",t.envMap?"#define USE_ENVMAP":"",t.envMap?"#define "+l:"",t.envMap?"#define "+h:"",t.envMap?"#define "+f:"",d?"#define CUBEUV_TEXEL_WIDTH "+d.texelWidth:"",d?"#define CUBEUV_TEXEL_HEIGHT "+d.texelHeight:"",d?"#define CUBEUV_MAX_MIP "+d.maxMip+".0":"",t.lightMap?"#define USE_LIGHTMAP":"",t.aoMap?"#define USE_AOMAP":"",t.bumpMap?"#define USE_BUMPMAP":"",t.normalMap?"#define USE_NORMALMAP":"",t.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",t.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",t.emissiveMap?"#define USE_EMISSIVEMAP":"",t.anisotropy?"#define USE_ANISOTROPY":"",t.anisotropyMap?"#define USE_ANISOTROPYMAP":"",t.clearcoat?"#define USE_CLEARCOAT":"",t.clearcoatMap?"#define USE_CLEARCOATMAP":"",t.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",t.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",t.dispersion?"#define USE_DISPERSION":"",t.iridescence?"#define USE_IRIDESCENCE":"",t.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",t.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",t.specularMap?"#define USE_SPECULARMAP":"",t.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",t.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",t.roughnessMap?"#define USE_ROUGHNESSMAP":"",t.metalnessMap?"#define USE_METALNESSMAP":"",t.alphaMap?"#define USE_ALPHAMAP":"",t.alphaTest?"#define USE_ALPHATEST":"",t.alphaHash?"#define USE_ALPHAHASH":"",t.sheen?"#define USE_SHEEN":"",t.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",t.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",t.transmission?"#define USE_TRANSMISSION":"",t.transmissionMap?"#define USE_TRANSMISSIONMAP":"",t.thicknessMap?"#define USE_THICKNESSMAP":"",t.vertexTangents&&t.flatShading===!1?"#define USE_TANGENT":"",t.vertexColors||t.instancingColor||t.batchingColor?"#define USE_COLOR":"",t.vertexAlphas?"#define USE_COLOR_ALPHA":"",t.vertexUv1s?"#define USE_UV1":"",t.vertexUv2s?"#define USE_UV2":"",t.vertexUv3s?"#define USE_UV3":"",t.pointsUvs?"#define USE_POINTS_UV":"",t.gradientMap?"#define USE_GRADIENTMAP":"",t.flatShading?"#define FLAT_SHADED":"",t.doubleSided?"#define DOUBLE_SIDED":"",t.flipSided?"#define FLIP_SIDED":"",t.shadowMapEnabled?"#define USE_SHADOWMAP":"",t.shadowMapEnabled?"#define "+c:"",t.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",t.numLightProbes>0?"#define USE_LIGHT_PROBES":"",t.decodeVideoTexture?"#define DECODE_VIDEO_TEXTURE":"",t.decodeVideoTextureEmissive?"#define DECODE_VIDEO_TEXTURE_EMISSIVE":"",t.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",t.reverseDepthBuffer?"#define USE_REVERSEDEPTHBUF":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",t.toneMapping!==Mn?"#define TONE_MAPPING":"",t.toneMapping!==Mn?Le.tonemapping_pars_fragment:"",t.toneMapping!==Mn?Zp("toneMapping",t.toneMapping):"",t.dithering?"#define DITHERING":"",t.opaque?"#define OPAQUE":"",Le.colorspace_pars_fragment,Kp("linearToOutputTexel",t.outputColorSpace),$p(),t.useDepthPacking?"#define DEPTH_PACKING "+t.depthPacking:"",` +`].filter(Pi).join(` +`)),a=aa(a),a=Go(a,t),a=Wo(a,t),o=aa(o),o=Go(o,t),o=Wo(o,t),a=Xo(a),o=Xo(o),t.isRawShaderMaterial!==!0&&(b=`#version 300 es +`,m=[p,"#define attribute in","#define varying out","#define texture2D texture"].join(` +`)+` +`+m,u=["#define varying in",t.glslVersion===Va?"":"layout(location = 0) out highp vec4 pc_fragColor;",t.glslVersion===Va?"":"#define gl_FragColor pc_fragColor","#define gl_FragDepthEXT gl_FragDepth","#define texture2D texture","#define textureCube texture","#define texture2DProj textureProj","#define texture2DLodEXT textureLod","#define texture2DProjLodEXT textureProjLod","#define textureCubeLodEXT textureLod","#define texture2DGradEXT textureGrad","#define texture2DProjGradEXT textureProjGrad","#define textureCubeGradEXT textureGrad"].join(` +`)+` +`+u);const T=b+m+a,y=b+u+o,D=Vo(r,r.VERTEX_SHADER,T),w=Vo(r,r.FRAGMENT_SHADER,y);r.attachShader(v,D),r.attachShader(v,w),t.index0AttributeName!==void 0?r.bindAttribLocation(v,0,t.index0AttributeName):t.morphTargets===!0&&r.bindAttribLocation(v,0,"position"),r.linkProgram(v);function R(C){if(i.debug.checkShaderErrors){const V=r.getProgramInfoLog(v).trim(),z=r.getShaderInfoLog(D).trim(),G=r.getShaderInfoLog(w).trim();let Z=!0,W=!0;if(r.getProgramParameter(v,r.LINK_STATUS)===!1)if(Z=!1,typeof i.debug.onShaderError=="function")i.debug.onShaderError(r,v,D,w);else{const Q=ko(r,D,"vertex"),k=ko(r,w,"fragment");console.error("THREE.WebGLProgram: Shader Error "+r.getError()+" - VALIDATE_STATUS "+r.getProgramParameter(v,r.VALIDATE_STATUS)+` + +Material Name: `+C.name+` +Material Type: `+C.type+` + +Program Info Log: `+V+` +`+Q+` +`+k)}else V!==""?console.warn("THREE.WebGLProgram: Program Info Log:",V):(z===""||G==="")&&(W=!1);W&&(C.diagnostics={runnable:Z,programLog:V,vertexShader:{log:z,prefix:m},fragmentShader:{log:G,prefix:u}})}r.deleteShader(D),r.deleteShader(w),U=new Mr(r,v),S=Qp(r,v)}let U;this.getUniforms=function(){return U===void 0&&R(this),U};let S;this.getAttributes=function(){return S===void 0&&R(this),S};let M=t.rendererExtensionParallelShaderCompile===!1;return this.isReady=function(){return M===!1&&(M=r.getProgramParameter(v,Wp)),M},this.destroy=function(){n.releaseStatesOfProgram(this),r.deleteProgram(v),this.program=void 0},this.type=t.shaderType,this.name=t.shaderName,this.id=Xp++,this.cacheKey=e,this.usedTimes=1,this.program=v,this.vertexShader=D,this.fragmentShader=w,this}let um=0;class dm{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e){const t=e.vertexShader,n=e.fragmentShader,r=this._getShaderStage(t),s=this._getShaderStage(n),a=this._getShaderCacheForMaterial(e);return a.has(r)===!1&&(a.add(r),r.usedTimes++),a.has(s)===!1&&(a.add(s),s.usedTimes++),this}remove(e){const t=this.materialCache.get(e);for(const n of t)n.usedTimes--,n.usedTimes===0&&this.shaderCache.delete(n.code);return this.materialCache.delete(e),this}getVertexShaderID(e){return this._getShaderStage(e.vertexShader).id}getFragmentShaderID(e){return this._getShaderStage(e.fragmentShader).id}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(e){const t=this.materialCache;let n=t.get(e);return n===void 0&&(n=new Set,t.set(e,n)),n}_getShaderStage(e){const t=this.shaderCache;let n=t.get(e);return n===void 0&&(n=new fm(e),t.set(e,n)),n}}class fm{constructor(e){this.id=um++,this.code=e,this.usedTimes=0}}function pm(i,e,t,n,r,s,a){const o=new dl,c=new dm,l=new Set,h=[],f=r.logarithmicDepthBuffer,d=r.vertexTextures;let p=r.precision;const g={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"toon",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"};function v(S){return l.add(S),S===0?"uv":`uv${S}`}function m(S,M,C,V,z){const G=V.fog,Z=z.geometry,W=S.isMeshStandardMaterial?V.environment:null,Q=(S.isMeshStandardMaterial?t:e).get(S.envMap||W),k=Q&&Q.mapping===Cr?Q.image.height:null,re=g[S.type];S.precision!==null&&(p=r.getMaxPrecision(S.precision),p!==S.precision&&console.warn("THREE.WebGLProgram.getParameters:",S.precision,"not supported, using",p,"instead."));const he=Z.morphAttributes.position||Z.morphAttributes.normal||Z.morphAttributes.color,ve=he!==void 0?he.length:0;let Ue=0;Z.morphAttributes.position!==void 0&&(Ue=1),Z.morphAttributes.normal!==void 0&&(Ue=2),Z.morphAttributes.color!==void 0&&(Ue=3);let Qe,q,ee,me;if(re){const Ze=Kt[re];Qe=Ze.vertexShader,q=Ze.fragmentShader}else Qe=S.vertexShader,q=S.fragmentShader,c.update(S),ee=c.getVertexShaderID(S),me=c.getFragmentShaderID(S);const se=i.getRenderTarget(),Ee=i.state.buffers.depth.getReversed(),Xe=z.isInstancedMesh===!0,Te=z.isBatchedMesh===!0,at=!!S.map,it=!!S.matcap,Fe=!!Q,A=!!S.aoMap,Ct=!!S.lightMap,Oe=!!S.bumpMap,Be=!!S.normalMap,xe=!!S.displacementMap,tt=!!S.emissiveMap,_e=!!S.metalnessMap,E=!!S.roughnessMap,_=S.anisotropy>0,F=S.clearcoat>0,Y=S.dispersion>0,$=S.iridescence>0,X=S.sheen>0,ge=S.transmission>0,ae=_&&!!S.anisotropyMap,ue=F&&!!S.clearcoatMap,He=F&&!!S.clearcoatNormalMap,J=F&&!!S.clearcoatRoughnessMap,de=$&&!!S.iridescenceMap,ye=$&&!!S.iridescenceThicknessMap,be=X&&!!S.sheenColorMap,fe=X&&!!S.sheenRoughnessMap,ze=!!S.specularMap,Pe=!!S.specularColorMap,et=!!S.specularIntensityMap,P=ge&&!!S.transmissionMap,ne=ge&&!!S.thicknessMap,H=!!S.gradientMap,K=!!S.alphaMap,le=S.alphaTest>0,oe=!!S.alphaHash,Re=!!S.extensions;let rt=Mn;S.toneMapped&&(se===null||se.isXRRenderTarget===!0)&&(rt=i.toneMapping);const pt={shaderID:re,shaderType:S.type,shaderName:S.name,vertexShader:Qe,fragmentShader:q,defines:S.defines,customVertexShaderID:ee,customFragmentShaderID:me,isRawShaderMaterial:S.isRawShaderMaterial===!0,glslVersion:S.glslVersion,precision:p,batching:Te,batchingColor:Te&&z._colorsTexture!==null,instancing:Xe,instancingColor:Xe&&z.instanceColor!==null,instancingMorph:Xe&&z.morphTexture!==null,supportsVertexTextures:d,outputColorSpace:se===null?i.outputColorSpace:se.isXRRenderTarget===!0?se.texture.colorSpace:pi,alphaToCoverage:!!S.alphaToCoverage,map:at,matcap:it,envMap:Fe,envMapMode:Fe&&Q.mapping,envMapCubeUVHeight:k,aoMap:A,lightMap:Ct,bumpMap:Oe,normalMap:Be,displacementMap:d&&xe,emissiveMap:tt,normalMapObjectSpace:Be&&S.normalMapType===yc,normalMapTangentSpace:Be&&S.normalMapType===ga,metalnessMap:_e,roughnessMap:E,anisotropy:_,anisotropyMap:ae,clearcoat:F,clearcoatMap:ue,clearcoatNormalMap:He,clearcoatRoughnessMap:J,dispersion:Y,iridescence:$,iridescenceMap:de,iridescenceThicknessMap:ye,sheen:X,sheenColorMap:be,sheenRoughnessMap:fe,specularMap:ze,specularColorMap:Pe,specularIntensityMap:et,transmission:ge,transmissionMap:P,thicknessMap:ne,gradientMap:H,opaque:S.transparent===!1&&S.blending===ai&&S.alphaToCoverage===!1,alphaMap:K,alphaTest:le,alphaHash:oe,combine:S.combine,mapUv:at&&v(S.map.channel),aoMapUv:A&&v(S.aoMap.channel),lightMapUv:Ct&&v(S.lightMap.channel),bumpMapUv:Oe&&v(S.bumpMap.channel),normalMapUv:Be&&v(S.normalMap.channel),displacementMapUv:xe&&v(S.displacementMap.channel),emissiveMapUv:tt&&v(S.emissiveMap.channel),metalnessMapUv:_e&&v(S.metalnessMap.channel),roughnessMapUv:E&&v(S.roughnessMap.channel),anisotropyMapUv:ae&&v(S.anisotropyMap.channel),clearcoatMapUv:ue&&v(S.clearcoatMap.channel),clearcoatNormalMapUv:He&&v(S.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:J&&v(S.clearcoatRoughnessMap.channel),iridescenceMapUv:de&&v(S.iridescenceMap.channel),iridescenceThicknessMapUv:ye&&v(S.iridescenceThicknessMap.channel),sheenColorMapUv:be&&v(S.sheenColorMap.channel),sheenRoughnessMapUv:fe&&v(S.sheenRoughnessMap.channel),specularMapUv:ze&&v(S.specularMap.channel),specularColorMapUv:Pe&&v(S.specularColorMap.channel),specularIntensityMapUv:et&&v(S.specularIntensityMap.channel),transmissionMapUv:P&&v(S.transmissionMap.channel),thicknessMapUv:ne&&v(S.thicknessMap.channel),alphaMapUv:K&&v(S.alphaMap.channel),vertexTangents:!!Z.attributes.tangent&&(Be||_),vertexColors:S.vertexColors,vertexAlphas:S.vertexColors===!0&&!!Z.attributes.color&&Z.attributes.color.itemSize===4,pointsUvs:z.isPoints===!0&&!!Z.attributes.uv&&(at||K),fog:!!G,useFog:S.fog===!0,fogExp2:!!G&&G.isFogExp2,flatShading:S.flatShading===!0,sizeAttenuation:S.sizeAttenuation===!0,logarithmicDepthBuffer:f,reverseDepthBuffer:Ee,skinning:z.isSkinnedMesh===!0,morphTargets:Z.morphAttributes.position!==void 0,morphNormals:Z.morphAttributes.normal!==void 0,morphColors:Z.morphAttributes.color!==void 0,morphTargetsCount:ve,morphTextureStride:Ue,numDirLights:M.directional.length,numPointLights:M.point.length,numSpotLights:M.spot.length,numSpotLightMaps:M.spotLightMap.length,numRectAreaLights:M.rectArea.length,numHemiLights:M.hemi.length,numDirLightShadows:M.directionalShadowMap.length,numPointLightShadows:M.pointShadowMap.length,numSpotLightShadows:M.spotShadowMap.length,numSpotLightShadowsWithMaps:M.numSpotLightShadowsWithMaps,numLightProbes:M.numLightProbes,numClippingPlanes:a.numPlanes,numClipIntersection:a.numIntersection,dithering:S.dithering,shadowMapEnabled:i.shadowMap.enabled&&C.length>0,shadowMapType:i.shadowMap.type,toneMapping:rt,decodeVideoTexture:at&&S.map.isVideoTexture===!0&&We.getTransfer(S.map.colorSpace)===je,decodeVideoTextureEmissive:tt&&S.emissiveMap.isVideoTexture===!0&&We.getTransfer(S.emissiveMap.colorSpace)===je,premultipliedAlpha:S.premultipliedAlpha,doubleSided:S.side===an,flipSided:S.side===yt,useDepthPacking:S.depthPacking>=0,depthPacking:S.depthPacking||0,index0AttributeName:S.index0AttributeName,extensionClipCullDistance:Re&&S.extensions.clipCullDistance===!0&&n.has("WEBGL_clip_cull_distance"),extensionMultiDraw:(Re&&S.extensions.multiDraw===!0||Te)&&n.has("WEBGL_multi_draw"),rendererExtensionParallelShaderCompile:n.has("KHR_parallel_shader_compile"),customProgramCacheKey:S.customProgramCacheKey()};return pt.vertexUv1s=l.has(1),pt.vertexUv2s=l.has(2),pt.vertexUv3s=l.has(3),l.clear(),pt}function u(S){const M=[];if(S.shaderID?M.push(S.shaderID):(M.push(S.customVertexShaderID),M.push(S.customFragmentShaderID)),S.defines!==void 0)for(const C in S.defines)M.push(C),M.push(S.defines[C]);return S.isRawShaderMaterial===!1&&(b(M,S),T(M,S),M.push(i.outputColorSpace)),M.push(S.customProgramCacheKey),M.join()}function b(S,M){S.push(M.precision),S.push(M.outputColorSpace),S.push(M.envMapMode),S.push(M.envMapCubeUVHeight),S.push(M.mapUv),S.push(M.alphaMapUv),S.push(M.lightMapUv),S.push(M.aoMapUv),S.push(M.bumpMapUv),S.push(M.normalMapUv),S.push(M.displacementMapUv),S.push(M.emissiveMapUv),S.push(M.metalnessMapUv),S.push(M.roughnessMapUv),S.push(M.anisotropyMapUv),S.push(M.clearcoatMapUv),S.push(M.clearcoatNormalMapUv),S.push(M.clearcoatRoughnessMapUv),S.push(M.iridescenceMapUv),S.push(M.iridescenceThicknessMapUv),S.push(M.sheenColorMapUv),S.push(M.sheenRoughnessMapUv),S.push(M.specularMapUv),S.push(M.specularColorMapUv),S.push(M.specularIntensityMapUv),S.push(M.transmissionMapUv),S.push(M.thicknessMapUv),S.push(M.combine),S.push(M.fogExp2),S.push(M.sizeAttenuation),S.push(M.morphTargetsCount),S.push(M.morphAttributeCount),S.push(M.numDirLights),S.push(M.numPointLights),S.push(M.numSpotLights),S.push(M.numSpotLightMaps),S.push(M.numHemiLights),S.push(M.numRectAreaLights),S.push(M.numDirLightShadows),S.push(M.numPointLightShadows),S.push(M.numSpotLightShadows),S.push(M.numSpotLightShadowsWithMaps),S.push(M.numLightProbes),S.push(M.shadowMapType),S.push(M.toneMapping),S.push(M.numClippingPlanes),S.push(M.numClipIntersection),S.push(M.depthPacking)}function T(S,M){o.disableAll(),M.supportsVertexTextures&&o.enable(0),M.instancing&&o.enable(1),M.instancingColor&&o.enable(2),M.instancingMorph&&o.enable(3),M.matcap&&o.enable(4),M.envMap&&o.enable(5),M.normalMapObjectSpace&&o.enable(6),M.normalMapTangentSpace&&o.enable(7),M.clearcoat&&o.enable(8),M.iridescence&&o.enable(9),M.alphaTest&&o.enable(10),M.vertexColors&&o.enable(11),M.vertexAlphas&&o.enable(12),M.vertexUv1s&&o.enable(13),M.vertexUv2s&&o.enable(14),M.vertexUv3s&&o.enable(15),M.vertexTangents&&o.enable(16),M.anisotropy&&o.enable(17),M.alphaHash&&o.enable(18),M.batching&&o.enable(19),M.dispersion&&o.enable(20),M.batchingColor&&o.enable(21),S.push(o.mask),o.disableAll(),M.fog&&o.enable(0),M.useFog&&o.enable(1),M.flatShading&&o.enable(2),M.logarithmicDepthBuffer&&o.enable(3),M.reverseDepthBuffer&&o.enable(4),M.skinning&&o.enable(5),M.morphTargets&&o.enable(6),M.morphNormals&&o.enable(7),M.morphColors&&o.enable(8),M.premultipliedAlpha&&o.enable(9),M.shadowMapEnabled&&o.enable(10),M.doubleSided&&o.enable(11),M.flipSided&&o.enable(12),M.useDepthPacking&&o.enable(13),M.dithering&&o.enable(14),M.transmission&&o.enable(15),M.sheen&&o.enable(16),M.opaque&&o.enable(17),M.pointsUvs&&o.enable(18),M.decodeVideoTexture&&o.enable(19),M.decodeVideoTextureEmissive&&o.enable(20),M.alphaToCoverage&&o.enable(21),S.push(o.mask)}function y(S){const M=g[S.type];let C;if(M){const V=Kt[M];C=ph.clone(V.uniforms)}else C=S.uniforms;return C}function D(S,M){let C;for(let V=0,z=h.length;V0?n.push(u):p.transparent===!0?r.push(u):t.push(u)}function c(f,d,p,g,v,m){const u=a(f,d,p,g,v,m);p.transmission>0?n.unshift(u):p.transparent===!0?r.unshift(u):t.unshift(u)}function l(f,d){t.length>1&&t.sort(f||gm),n.length>1&&n.sort(d||Yo),r.length>1&&r.sort(d||Yo)}function h(){for(let f=e,d=i.length;f=s.length?(a=new Ko,s.push(a)):a=s[r],a}function t(){i=new WeakMap}return{get:e,dispose:t}}function vm(){const i={};return{get:function(e){if(i[e.id]!==void 0)return i[e.id];let t;switch(e.type){case"DirectionalLight":t={direction:new N,color:new De};break;case"SpotLight":t={position:new N,direction:new N,color:new De,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":t={position:new N,color:new De,distance:0,decay:0};break;case"HemisphereLight":t={direction:new N,skyColor:new De,groundColor:new De};break;case"RectAreaLight":t={color:new De,position:new N,halfWidth:new N,halfHeight:new N};break}return i[e.id]=t,t}}}function xm(){const i={};return{get:function(e){if(i[e.id]!==void 0)return i[e.id];let t;switch(e.type){case"DirectionalLight":t={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Ve};break;case"SpotLight":t={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Ve};break;case"PointLight":t={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Ve,shadowCameraNear:1,shadowCameraFar:1e3};break}return i[e.id]=t,t}}}let Mm=0;function Sm(i,e){return(e.castShadow?2:0)-(i.castShadow?2:0)+(e.map?1:0)-(i.map?1:0)}function ym(i){const e=new vm,t=xm(),n={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1,numLightProbes:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0,numLightProbes:0};for(let l=0;l<9;l++)n.probe.push(new N);const r=new N,s=new Ne,a=new Ne;function o(l){let h=0,f=0,d=0;for(let S=0;S<9;S++)n.probe[S].set(0,0,0);let p=0,g=0,v=0,m=0,u=0,b=0,T=0,y=0,D=0,w=0,R=0;l.sort(Sm);for(let S=0,M=l.length;S0&&(i.has("OES_texture_float_linear")===!0?(n.rectAreaLTC1=te.LTC_FLOAT_1,n.rectAreaLTC2=te.LTC_FLOAT_2):(n.rectAreaLTC1=te.LTC_HALF_1,n.rectAreaLTC2=te.LTC_HALF_2)),n.ambient[0]=h,n.ambient[1]=f,n.ambient[2]=d;const U=n.hash;(U.directionalLength!==p||U.pointLength!==g||U.spotLength!==v||U.rectAreaLength!==m||U.hemiLength!==u||U.numDirectionalShadows!==b||U.numPointShadows!==T||U.numSpotShadows!==y||U.numSpotMaps!==D||U.numLightProbes!==R)&&(n.directional.length=p,n.spot.length=v,n.rectArea.length=m,n.point.length=g,n.hemi.length=u,n.directionalShadow.length=b,n.directionalShadowMap.length=b,n.pointShadow.length=T,n.pointShadowMap.length=T,n.spotShadow.length=y,n.spotShadowMap.length=y,n.directionalShadowMatrix.length=b,n.pointShadowMatrix.length=T,n.spotLightMatrix.length=y+D-w,n.spotLightMap.length=D,n.numSpotLightShadowsWithMaps=w,n.numLightProbes=R,U.directionalLength=p,U.pointLength=g,U.spotLength=v,U.rectAreaLength=m,U.hemiLength=u,U.numDirectionalShadows=b,U.numPointShadows=T,U.numSpotShadows=y,U.numSpotMaps=D,U.numLightProbes=R,n.version=Mm++)}function c(l,h){let f=0,d=0,p=0,g=0,v=0;const m=h.matrixWorldInverse;for(let u=0,b=l.length;u=a.length?(o=new Zo(i),a.push(o)):o=a[s],o}function n(){e=new WeakMap}return{get:t,dispose:n}}const Tm=`void main() { + gl_Position = vec4( position, 1.0 ); +}`,bm=`uniform sampler2D shadow_pass; +uniform vec2 resolution; +uniform float radius; +#include +void main() { + const float samples = float( VSM_SAMPLES ); + float mean = 0.0; + float squared_mean = 0.0; + float uvStride = samples <= 1.0 ? 0.0 : 2.0 / ( samples - 1.0 ); + float uvStart = samples <= 1.0 ? 0.0 : - 1.0; + for ( float i = 0.0; i < samples; i ++ ) { + float uvOffset = uvStart + i * uvStride; + #ifdef HORIZONTAL_PASS + vec2 distribution = unpackRGBATo2Half( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( uvOffset, 0.0 ) * radius ) / resolution ) ); + mean += distribution.x; + squared_mean += distribution.y * distribution.y + distribution.x * distribution.x; + #else + float depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, uvOffset ) * radius ) / resolution ) ); + mean += depth; + squared_mean += depth * depth; + #endif + } + mean = mean / samples; + squared_mean = squared_mean / samples; + float std_dev = sqrt( squared_mean - mean * mean ); + gl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) ); +}`;function Am(i,e,t){let n=new va;const r=new Ve,s=new Ve,a=new qe,o=new Ch({depthPacking:Sc}),c=new Ph,l={},h=t.maxTextureSize,f={[Sn]:yt,[yt]:Sn,[an]:an},d=new yn({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new Ve},radius:{value:4}},vertexShader:Tm,fragmentShader:bm}),p=d.clone();p.defines.HORIZONTAL_PASS=1;const g=new Yt;g.setAttribute("position",new Ft(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const v=new Nt(g,d),m=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=jo;let u=this.type;this.render=function(w,R,U){if(m.enabled===!1||m.autoUpdate===!1&&m.needsUpdate===!1||w.length===0)return;const S=i.getRenderTarget(),M=i.getActiveCubeFace(),C=i.getActiveMipmapLevel(),V=i.state;V.setBlending(xn),V.buffers.color.setClear(1,1,1,1),V.buffers.depth.setTest(!0),V.setScissorTest(!1);const z=u!==sn&&this.type===sn,G=u===sn&&this.type!==sn;for(let Z=0,W=w.length;Zh||r.y>h)&&(r.x>h&&(s.x=Math.floor(h/re.x),r.x=s.x*re.x,k.mapSize.x=s.x),r.y>h&&(s.y=Math.floor(h/re.y),r.y=s.y*re.y,k.mapSize.y=s.y)),k.map===null||z===!0||G===!0){const ve=this.type!==sn?{minFilter:Rt,magFilter:Rt}:{};k.map!==null&&k.map.dispose(),k.map=new Vn(r.x,r.y,ve),k.map.texture.name=Q.name+".shadowMap",k.camera.updateProjectionMatrix()}i.setRenderTarget(k.map),i.clear();const he=k.getViewportCount();for(let ve=0;ve0||R.map&&R.alphaTest>0){const V=M.uuid,z=R.uuid;let G=l[V];G===void 0&&(G={},l[V]=G);let Z=G[z];Z===void 0&&(Z=M.clone(),G[z]=Z,R.addEventListener("dispose",D)),M=Z}if(M.visible=R.visible,M.wireframe=R.wireframe,S===sn?M.side=R.shadowSide!==null?R.shadowSide:R.side:M.side=R.shadowSide!==null?R.shadowSide:f[R.side],M.alphaMap=R.alphaMap,M.alphaTest=R.alphaTest,M.map=R.map,M.clipShadows=R.clipShadows,M.clippingPlanes=R.clippingPlanes,M.clipIntersection=R.clipIntersection,M.displacementMap=R.displacementMap,M.displacementScale=R.displacementScale,M.displacementBias=R.displacementBias,M.wireframeLinewidth=R.wireframeLinewidth,M.linewidth=R.linewidth,U.isPointLight===!0&&M.isMeshDistanceMaterial===!0){const V=i.properties.get(M);V.light=U}return M}function y(w,R,U,S,M){if(w.visible===!1)return;if(w.layers.test(R.layers)&&(w.isMesh||w.isLine||w.isPoints)&&(w.castShadow||w.receiveShadow&&M===sn)&&(!w.frustumCulled||n.intersectsObject(w))){w.modelViewMatrix.multiplyMatrices(U.matrixWorldInverse,w.matrixWorld);const z=e.update(w),G=w.material;if(Array.isArray(G)){const Z=z.groups;for(let W=0,Q=Z.length;W=1):k.indexOf("OpenGL ES")!==-1&&(Q=parseFloat(/^OpenGL ES (\d)/.exec(k)[1]),W=Q>=2);let re=null,he={};const ve=i.getParameter(i.SCISSOR_BOX),Ue=i.getParameter(i.VIEWPORT),Qe=new qe().fromArray(ve),q=new qe().fromArray(Ue);function ee(P,ne,H,K){const le=new Uint8Array(4),oe=i.createTexture();i.bindTexture(P,oe),i.texParameteri(P,i.TEXTURE_MIN_FILTER,i.NEAREST),i.texParameteri(P,i.TEXTURE_MAG_FILTER,i.NEAREST);for(let Re=0;Re"u"?!1:/OculusBrowser/g.test(navigator.userAgent),l=new Ve,h=new WeakMap;let f;const d=new WeakMap;let p=!1;try{p=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")!==null}catch{}function g(E,_){return p?new OffscreenCanvas(E,_):Ui("canvas")}function v(E,_,F){let Y=1;const $=_e(E);if(($.width>F||$.height>F)&&(Y=F/Math.max($.width,$.height)),Y<1)if(typeof HTMLImageElement<"u"&&E instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&E instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&E instanceof ImageBitmap||typeof VideoFrame<"u"&&E instanceof VideoFrame){const X=Math.floor(Y*$.width),ge=Math.floor(Y*$.height);f===void 0&&(f=g(X,ge));const ae=_?g(X,ge):f;return ae.width=X,ae.height=ge,ae.getContext("2d").drawImage(E,0,0,X,ge),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+$.width+"x"+$.height+") to ("+X+"x"+ge+")."),ae}else return"data"in E&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+$.width+"x"+$.height+")."),E;return E}function m(E){return E.generateMipmaps}function u(E){i.generateMipmap(E)}function b(E){return E.isWebGLCubeRenderTarget?i.TEXTURE_CUBE_MAP:E.isWebGL3DRenderTarget?i.TEXTURE_3D:E.isWebGLArrayRenderTarget||E.isCompressedArrayTexture?i.TEXTURE_2D_ARRAY:i.TEXTURE_2D}function T(E,_,F,Y,$=!1){if(E!==null){if(i[E]!==void 0)return i[E];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+E+"'")}let X=_;if(_===i.RED&&(F===i.FLOAT&&(X=i.R32F),F===i.HALF_FLOAT&&(X=i.R16F),F===i.UNSIGNED_BYTE&&(X=i.R8)),_===i.RED_INTEGER&&(F===i.UNSIGNED_BYTE&&(X=i.R8UI),F===i.UNSIGNED_SHORT&&(X=i.R16UI),F===i.UNSIGNED_INT&&(X=i.R32UI),F===i.BYTE&&(X=i.R8I),F===i.SHORT&&(X=i.R16I),F===i.INT&&(X=i.R32I)),_===i.RG&&(F===i.FLOAT&&(X=i.RG32F),F===i.HALF_FLOAT&&(X=i.RG16F),F===i.UNSIGNED_BYTE&&(X=i.RG8)),_===i.RG_INTEGER&&(F===i.UNSIGNED_BYTE&&(X=i.RG8UI),F===i.UNSIGNED_SHORT&&(X=i.RG16UI),F===i.UNSIGNED_INT&&(X=i.RG32UI),F===i.BYTE&&(X=i.RG8I),F===i.SHORT&&(X=i.RG16I),F===i.INT&&(X=i.RG32I)),_===i.RGB_INTEGER&&(F===i.UNSIGNED_BYTE&&(X=i.RGB8UI),F===i.UNSIGNED_SHORT&&(X=i.RGB16UI),F===i.UNSIGNED_INT&&(X=i.RGB32UI),F===i.BYTE&&(X=i.RGB8I),F===i.SHORT&&(X=i.RGB16I),F===i.INT&&(X=i.RGB32I)),_===i.RGBA_INTEGER&&(F===i.UNSIGNED_BYTE&&(X=i.RGBA8UI),F===i.UNSIGNED_SHORT&&(X=i.RGBA16UI),F===i.UNSIGNED_INT&&(X=i.RGBA32UI),F===i.BYTE&&(X=i.RGBA8I),F===i.SHORT&&(X=i.RGBA16I),F===i.INT&&(X=i.RGBA32I)),_===i.RGB&&F===i.UNSIGNED_INT_5_9_9_9_REV&&(X=i.RGB9_E5),_===i.RGBA){const ge=$?Er:We.getTransfer(Y);F===i.FLOAT&&(X=i.RGBA32F),F===i.HALF_FLOAT&&(X=i.RGBA16F),F===i.UNSIGNED_BYTE&&(X=ge===je?i.SRGB8_ALPHA8:i.RGBA8),F===i.UNSIGNED_SHORT_4_4_4_4&&(X=i.RGBA4),F===i.UNSIGNED_SHORT_5_5_5_1&&(X=i.RGB5_A1)}return(X===i.R16F||X===i.R32F||X===i.RG16F||X===i.RG32F||X===i.RGBA16F||X===i.RGBA32F)&&e.get("EXT_color_buffer_float"),X}function y(E,_){let F;return E?_===null||_===zn||_===di?F=i.DEPTH24_STENCIL8:_===Wt?F=i.DEPTH32F_STENCIL8:_===Ii&&(F=i.DEPTH24_STENCIL8,console.warn("DepthTexture: 16 bit depth attachment is not supported with stencil. Using 24-bit attachment.")):_===null||_===zn||_===di?F=i.DEPTH_COMPONENT24:_===Wt?F=i.DEPTH_COMPONENT32F:_===Ii&&(F=i.DEPTH_COMPONENT16),F}function D(E,_){return m(E)===!0||E.isFramebufferTexture&&E.minFilter!==Rt&&E.minFilter!==Zt?Math.log2(Math.max(_.width,_.height))+1:E.mipmaps!==void 0&&E.mipmaps.length>0?E.mipmaps.length:E.isCompressedTexture&&Array.isArray(E.image)?_.mipmaps.length:1}function w(E){const _=E.target;_.removeEventListener("dispose",w),U(_),_.isVideoTexture&&h.delete(_)}function R(E){const _=E.target;_.removeEventListener("dispose",R),M(_)}function U(E){const _=n.get(E);if(_.__webglInit===void 0)return;const F=E.source,Y=d.get(F);if(Y){const $=Y[_.__cacheKey];$.usedTimes--,$.usedTimes===0&&S(E),Object.keys(Y).length===0&&d.delete(F)}n.remove(E)}function S(E){const _=n.get(E);i.deleteTexture(_.__webglTexture);const F=E.source,Y=d.get(F);delete Y[_.__cacheKey],a.memory.textures--}function M(E){const _=n.get(E);if(E.depthTexture&&(E.depthTexture.dispose(),n.remove(E.depthTexture)),E.isWebGLCubeRenderTarget)for(let Y=0;Y<6;Y++){if(Array.isArray(_.__webglFramebuffer[Y]))for(let $=0;$<_.__webglFramebuffer[Y].length;$++)i.deleteFramebuffer(_.__webglFramebuffer[Y][$]);else i.deleteFramebuffer(_.__webglFramebuffer[Y]);_.__webglDepthbuffer&&i.deleteRenderbuffer(_.__webglDepthbuffer[Y])}else{if(Array.isArray(_.__webglFramebuffer))for(let Y=0;Y<_.__webglFramebuffer.length;Y++)i.deleteFramebuffer(_.__webglFramebuffer[Y]);else i.deleteFramebuffer(_.__webglFramebuffer);if(_.__webglDepthbuffer&&i.deleteRenderbuffer(_.__webglDepthbuffer),_.__webglMultisampledFramebuffer&&i.deleteFramebuffer(_.__webglMultisampledFramebuffer),_.__webglColorRenderbuffer)for(let Y=0;Y<_.__webglColorRenderbuffer.length;Y++)_.__webglColorRenderbuffer[Y]&&i.deleteRenderbuffer(_.__webglColorRenderbuffer[Y]);_.__webglDepthRenderbuffer&&i.deleteRenderbuffer(_.__webglDepthRenderbuffer)}const F=E.textures;for(let Y=0,$=F.length;Y<$;Y++){const X=n.get(F[Y]);X.__webglTexture&&(i.deleteTexture(X.__webglTexture),a.memory.textures--),n.remove(F[Y])}n.remove(E)}let C=0;function V(){C=0}function z(){const E=C;return E>=r.maxTextures&&console.warn("THREE.WebGLTextures: Trying to use "+E+" texture units while this GPU supports only "+r.maxTextures),C+=1,E}function G(E){const _=[];return _.push(E.wrapS),_.push(E.wrapT),_.push(E.wrapR||0),_.push(E.magFilter),_.push(E.minFilter),_.push(E.anisotropy),_.push(E.internalFormat),_.push(E.format),_.push(E.type),_.push(E.generateMipmaps),_.push(E.premultiplyAlpha),_.push(E.flipY),_.push(E.unpackAlignment),_.push(E.colorSpace),_.join()}function Z(E,_){const F=n.get(E);if(E.isVideoTexture&&xe(E),E.isRenderTargetTexture===!1&&E.version>0&&F.__version!==E.version){const Y=E.image;if(Y===null)console.warn("THREE.WebGLRenderer: Texture marked for update but no image data found.");else if(Y.complete===!1)console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete");else{q(F,E,_);return}}t.bindTexture(i.TEXTURE_2D,F.__webglTexture,i.TEXTURE0+_)}function W(E,_){const F=n.get(E);if(E.version>0&&F.__version!==E.version){q(F,E,_);return}t.bindTexture(i.TEXTURE_2D_ARRAY,F.__webglTexture,i.TEXTURE0+_)}function Q(E,_){const F=n.get(E);if(E.version>0&&F.__version!==E.version){q(F,E,_);return}t.bindTexture(i.TEXTURE_3D,F.__webglTexture,i.TEXTURE0+_)}function k(E,_){const F=n.get(E);if(E.version>0&&F.__version!==E.version){ee(F,E,_);return}t.bindTexture(i.TEXTURE_CUBE_MAP,F.__webglTexture,i.TEXTURE0+_)}const re={[Cs]:i.REPEAT,[On]:i.CLAMP_TO_EDGE,[Ps]:i.MIRRORED_REPEAT},he={[Rt]:i.NEAREST,[vc]:i.NEAREST_MIPMAP_NEAREST,[Vi]:i.NEAREST_MIPMAP_LINEAR,[Zt]:i.LINEAR,[Br]:i.LINEAR_MIPMAP_NEAREST,[Bn]:i.LINEAR_MIPMAP_LINEAR},ve={[Ec]:i.NEVER,[Cc]:i.ALWAYS,[Tc]:i.LESS,[ll]:i.LEQUAL,[bc]:i.EQUAL,[Rc]:i.GEQUAL,[Ac]:i.GREATER,[wc]:i.NOTEQUAL};function Ue(E,_){if(_.type===Wt&&e.has("OES_texture_float_linear")===!1&&(_.magFilter===Zt||_.magFilter===Br||_.magFilter===Vi||_.magFilter===Bn||_.minFilter===Zt||_.minFilter===Br||_.minFilter===Vi||_.minFilter===Bn)&&console.warn("THREE.WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device."),i.texParameteri(E,i.TEXTURE_WRAP_S,re[_.wrapS]),i.texParameteri(E,i.TEXTURE_WRAP_T,re[_.wrapT]),(E===i.TEXTURE_3D||E===i.TEXTURE_2D_ARRAY)&&i.texParameteri(E,i.TEXTURE_WRAP_R,re[_.wrapR]),i.texParameteri(E,i.TEXTURE_MAG_FILTER,he[_.magFilter]),i.texParameteri(E,i.TEXTURE_MIN_FILTER,he[_.minFilter]),_.compareFunction&&(i.texParameteri(E,i.TEXTURE_COMPARE_MODE,i.COMPARE_REF_TO_TEXTURE),i.texParameteri(E,i.TEXTURE_COMPARE_FUNC,ve[_.compareFunction])),e.has("EXT_texture_filter_anisotropic")===!0){if(_.magFilter===Rt||_.minFilter!==Vi&&_.minFilter!==Bn||_.type===Wt&&e.has("OES_texture_float_linear")===!1)return;if(_.anisotropy>1||n.get(_).__currentAnisotropy){const F=e.get("EXT_texture_filter_anisotropic");i.texParameterf(E,F.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(_.anisotropy,r.getMaxAnisotropy())),n.get(_).__currentAnisotropy=_.anisotropy}}}function Qe(E,_){let F=!1;E.__webglInit===void 0&&(E.__webglInit=!0,_.addEventListener("dispose",w));const Y=_.source;let $=d.get(Y);$===void 0&&($={},d.set(Y,$));const X=G(_);if(X!==E.__cacheKey){$[X]===void 0&&($[X]={texture:i.createTexture(),usedTimes:0},a.memory.textures++,F=!0),$[X].usedTimes++;const ge=$[E.__cacheKey];ge!==void 0&&($[E.__cacheKey].usedTimes--,ge.usedTimes===0&&S(_)),E.__cacheKey=X,E.__webglTexture=$[X].texture}return F}function q(E,_,F){let Y=i.TEXTURE_2D;(_.isDataArrayTexture||_.isCompressedArrayTexture)&&(Y=i.TEXTURE_2D_ARRAY),_.isData3DTexture&&(Y=i.TEXTURE_3D);const $=Qe(E,_),X=_.source;t.bindTexture(Y,E.__webglTexture,i.TEXTURE0+F);const ge=n.get(X);if(X.version!==ge.__version||$===!0){t.activeTexture(i.TEXTURE0+F);const ae=We.getPrimaries(We.workingColorSpace),ue=_.colorSpace===_n?null:We.getPrimaries(_.colorSpace),He=_.colorSpace===_n||ae===ue?i.NONE:i.BROWSER_DEFAULT_WEBGL;i.pixelStorei(i.UNPACK_FLIP_Y_WEBGL,_.flipY),i.pixelStorei(i.UNPACK_PREMULTIPLY_ALPHA_WEBGL,_.premultiplyAlpha),i.pixelStorei(i.UNPACK_ALIGNMENT,_.unpackAlignment),i.pixelStorei(i.UNPACK_COLORSPACE_CONVERSION_WEBGL,He);let J=v(_.image,!1,r.maxTextureSize);J=tt(_,J);const de=s.convert(_.format,_.colorSpace),ye=s.convert(_.type);let be=T(_.internalFormat,de,ye,_.colorSpace,_.isVideoTexture);Ue(Y,_);let fe;const ze=_.mipmaps,Pe=_.isVideoTexture!==!0,et=ge.__version===void 0||$===!0,P=X.dataReady,ne=D(_,J);if(_.isDepthTexture)be=y(_.format===fi,_.type),et&&(Pe?t.texStorage2D(i.TEXTURE_2D,1,be,J.width,J.height):t.texImage2D(i.TEXTURE_2D,0,be,J.width,J.height,0,de,ye,null));else if(_.isDataTexture)if(ze.length>0){Pe&&et&&t.texStorage2D(i.TEXTURE_2D,ne,be,ze[0].width,ze[0].height);for(let H=0,K=ze.length;H0){const le=bo(fe.width,fe.height,_.format,_.type);for(const oe of _.layerUpdates){const Re=fe.data.subarray(oe*le/fe.data.BYTES_PER_ELEMENT,(oe+1)*le/fe.data.BYTES_PER_ELEMENT);t.compressedTexSubImage3D(i.TEXTURE_2D_ARRAY,H,0,0,oe,fe.width,fe.height,1,de,Re)}_.clearLayerUpdates()}else t.compressedTexSubImage3D(i.TEXTURE_2D_ARRAY,H,0,0,0,fe.width,fe.height,J.depth,de,fe.data)}else t.compressedTexImage3D(i.TEXTURE_2D_ARRAY,H,be,fe.width,fe.height,J.depth,0,fe.data,0,0);else console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()");else Pe?P&&t.texSubImage3D(i.TEXTURE_2D_ARRAY,H,0,0,0,fe.width,fe.height,J.depth,de,ye,fe.data):t.texImage3D(i.TEXTURE_2D_ARRAY,H,be,fe.width,fe.height,J.depth,0,de,ye,fe.data)}else{Pe&&et&&t.texStorage2D(i.TEXTURE_2D,ne,be,ze[0].width,ze[0].height);for(let H=0,K=ze.length;H0){const H=bo(J.width,J.height,_.format,_.type);for(const K of _.layerUpdates){const le=J.data.subarray(K*H/J.data.BYTES_PER_ELEMENT,(K+1)*H/J.data.BYTES_PER_ELEMENT);t.texSubImage3D(i.TEXTURE_2D_ARRAY,0,0,0,K,J.width,J.height,1,de,ye,le)}_.clearLayerUpdates()}else t.texSubImage3D(i.TEXTURE_2D_ARRAY,0,0,0,0,J.width,J.height,J.depth,de,ye,J.data)}else t.texImage3D(i.TEXTURE_2D_ARRAY,0,be,J.width,J.height,J.depth,0,de,ye,J.data);else if(_.isData3DTexture)Pe?(et&&t.texStorage3D(i.TEXTURE_3D,ne,be,J.width,J.height,J.depth),P&&t.texSubImage3D(i.TEXTURE_3D,0,0,0,0,J.width,J.height,J.depth,de,ye,J.data)):t.texImage3D(i.TEXTURE_3D,0,be,J.width,J.height,J.depth,0,de,ye,J.data);else if(_.isFramebufferTexture){if(et)if(Pe)t.texStorage2D(i.TEXTURE_2D,ne,be,J.width,J.height);else{let H=J.width,K=J.height;for(let le=0;le>=1,K>>=1}}else if(ze.length>0){if(Pe&&et){const H=_e(ze[0]);t.texStorage2D(i.TEXTURE_2D,ne,be,H.width,H.height)}for(let H=0,K=ze.length;H0&&ne++;const K=_e(de[0]);t.texStorage2D(i.TEXTURE_CUBE_MAP,ne,ze,K.width,K.height)}for(let K=0;K<6;K++)if(J){Pe?P&&t.texSubImage2D(i.TEXTURE_CUBE_MAP_POSITIVE_X+K,0,0,0,de[K].width,de[K].height,be,fe,de[K].data):t.texImage2D(i.TEXTURE_CUBE_MAP_POSITIVE_X+K,0,ze,de[K].width,de[K].height,0,be,fe,de[K].data);for(let le=0;le>X),ye=Math.max(1,_.height>>X);$===i.TEXTURE_3D||$===i.TEXTURE_2D_ARRAY?t.texImage3D($,X,ue,de,ye,_.depth,0,ge,ae,null):t.texImage2D($,X,ue,de,ye,0,ge,ae,null)}t.bindFramebuffer(i.FRAMEBUFFER,E),Be(_)?o.framebufferTexture2DMultisampleEXT(i.FRAMEBUFFER,Y,$,J.__webglTexture,0,Oe(_)):($===i.TEXTURE_2D||$>=i.TEXTURE_CUBE_MAP_POSITIVE_X&&$<=i.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&i.framebufferTexture2D(i.FRAMEBUFFER,Y,$,J.__webglTexture,X),t.bindFramebuffer(i.FRAMEBUFFER,null)}function se(E,_,F){if(i.bindRenderbuffer(i.RENDERBUFFER,E),_.depthBuffer){const Y=_.depthTexture,$=Y&&Y.isDepthTexture?Y.type:null,X=y(_.stencilBuffer,$),ge=_.stencilBuffer?i.DEPTH_STENCIL_ATTACHMENT:i.DEPTH_ATTACHMENT,ae=Oe(_);Be(_)?o.renderbufferStorageMultisampleEXT(i.RENDERBUFFER,ae,X,_.width,_.height):F?i.renderbufferStorageMultisample(i.RENDERBUFFER,ae,X,_.width,_.height):i.renderbufferStorage(i.RENDERBUFFER,X,_.width,_.height),i.framebufferRenderbuffer(i.FRAMEBUFFER,ge,i.RENDERBUFFER,E)}else{const Y=_.textures;for(let $=0;${delete _.__boundDepthTexture,delete _.__depthDisposeCallback,Y.removeEventListener("dispose",$)};Y.addEventListener("dispose",$),_.__depthDisposeCallback=$}_.__boundDepthTexture=Y}if(E.depthTexture&&!_.__autoAllocateDepthBuffer){if(F)throw new Error("target.depthTexture not supported in Cube render targets");Ee(_.__webglFramebuffer,E)}else if(F){_.__webglDepthbuffer=[];for(let Y=0;Y<6;Y++)if(t.bindFramebuffer(i.FRAMEBUFFER,_.__webglFramebuffer[Y]),_.__webglDepthbuffer[Y]===void 0)_.__webglDepthbuffer[Y]=i.createRenderbuffer(),se(_.__webglDepthbuffer[Y],E,!1);else{const $=E.stencilBuffer?i.DEPTH_STENCIL_ATTACHMENT:i.DEPTH_ATTACHMENT,X=_.__webglDepthbuffer[Y];i.bindRenderbuffer(i.RENDERBUFFER,X),i.framebufferRenderbuffer(i.FRAMEBUFFER,$,i.RENDERBUFFER,X)}}else if(t.bindFramebuffer(i.FRAMEBUFFER,_.__webglFramebuffer),_.__webglDepthbuffer===void 0)_.__webglDepthbuffer=i.createRenderbuffer(),se(_.__webglDepthbuffer,E,!1);else{const Y=E.stencilBuffer?i.DEPTH_STENCIL_ATTACHMENT:i.DEPTH_ATTACHMENT,$=_.__webglDepthbuffer;i.bindRenderbuffer(i.RENDERBUFFER,$),i.framebufferRenderbuffer(i.FRAMEBUFFER,Y,i.RENDERBUFFER,$)}t.bindFramebuffer(i.FRAMEBUFFER,null)}function Te(E,_,F){const Y=n.get(E);_!==void 0&&me(Y.__webglFramebuffer,E,E.texture,i.COLOR_ATTACHMENT0,i.TEXTURE_2D,0),F!==void 0&&Xe(E)}function at(E){const _=E.texture,F=n.get(E),Y=n.get(_);E.addEventListener("dispose",R);const $=E.textures,X=E.isWebGLCubeRenderTarget===!0,ge=$.length>1;if(ge||(Y.__webglTexture===void 0&&(Y.__webglTexture=i.createTexture()),Y.__version=_.version,a.memory.textures++),X){F.__webglFramebuffer=[];for(let ae=0;ae<6;ae++)if(_.mipmaps&&_.mipmaps.length>0){F.__webglFramebuffer[ae]=[];for(let ue=0;ue<_.mipmaps.length;ue++)F.__webglFramebuffer[ae][ue]=i.createFramebuffer()}else F.__webglFramebuffer[ae]=i.createFramebuffer()}else{if(_.mipmaps&&_.mipmaps.length>0){F.__webglFramebuffer=[];for(let ae=0;ae<_.mipmaps.length;ae++)F.__webglFramebuffer[ae]=i.createFramebuffer()}else F.__webglFramebuffer=i.createFramebuffer();if(ge)for(let ae=0,ue=$.length;ae0&&Be(E)===!1){F.__webglMultisampledFramebuffer=i.createFramebuffer(),F.__webglColorRenderbuffer=[],t.bindFramebuffer(i.FRAMEBUFFER,F.__webglMultisampledFramebuffer);for(let ae=0;ae<$.length;ae++){const ue=$[ae];F.__webglColorRenderbuffer[ae]=i.createRenderbuffer(),i.bindRenderbuffer(i.RENDERBUFFER,F.__webglColorRenderbuffer[ae]);const He=s.convert(ue.format,ue.colorSpace),J=s.convert(ue.type),de=T(ue.internalFormat,He,J,ue.colorSpace,E.isXRRenderTarget===!0),ye=Oe(E);i.renderbufferStorageMultisample(i.RENDERBUFFER,ye,de,E.width,E.height),i.framebufferRenderbuffer(i.FRAMEBUFFER,i.COLOR_ATTACHMENT0+ae,i.RENDERBUFFER,F.__webglColorRenderbuffer[ae])}i.bindRenderbuffer(i.RENDERBUFFER,null),E.depthBuffer&&(F.__webglDepthRenderbuffer=i.createRenderbuffer(),se(F.__webglDepthRenderbuffer,E,!0)),t.bindFramebuffer(i.FRAMEBUFFER,null)}}if(X){t.bindTexture(i.TEXTURE_CUBE_MAP,Y.__webglTexture),Ue(i.TEXTURE_CUBE_MAP,_);for(let ae=0;ae<6;ae++)if(_.mipmaps&&_.mipmaps.length>0)for(let ue=0;ue<_.mipmaps.length;ue++)me(F.__webglFramebuffer[ae][ue],E,_,i.COLOR_ATTACHMENT0,i.TEXTURE_CUBE_MAP_POSITIVE_X+ae,ue);else me(F.__webglFramebuffer[ae],E,_,i.COLOR_ATTACHMENT0,i.TEXTURE_CUBE_MAP_POSITIVE_X+ae,0);m(_)&&u(i.TEXTURE_CUBE_MAP),t.unbindTexture()}else if(ge){for(let ae=0,ue=$.length;ae0)for(let ue=0;ue<_.mipmaps.length;ue++)me(F.__webglFramebuffer[ue],E,_,i.COLOR_ATTACHMENT0,ae,ue);else me(F.__webglFramebuffer,E,_,i.COLOR_ATTACHMENT0,ae,0);m(_)&&u(ae),t.unbindTexture()}E.depthBuffer&&Xe(E)}function it(E){const _=E.textures;for(let F=0,Y=_.length;F0){if(Be(E)===!1){const _=E.textures,F=E.width,Y=E.height;let $=i.COLOR_BUFFER_BIT;const X=E.stencilBuffer?i.DEPTH_STENCIL_ATTACHMENT:i.DEPTH_ATTACHMENT,ge=n.get(E),ae=_.length>1;if(ae)for(let ue=0;ue<_.length;ue++)t.bindFramebuffer(i.FRAMEBUFFER,ge.__webglMultisampledFramebuffer),i.framebufferRenderbuffer(i.FRAMEBUFFER,i.COLOR_ATTACHMENT0+ue,i.RENDERBUFFER,null),t.bindFramebuffer(i.FRAMEBUFFER,ge.__webglFramebuffer),i.framebufferTexture2D(i.DRAW_FRAMEBUFFER,i.COLOR_ATTACHMENT0+ue,i.TEXTURE_2D,null,0);t.bindFramebuffer(i.READ_FRAMEBUFFER,ge.__webglMultisampledFramebuffer),t.bindFramebuffer(i.DRAW_FRAMEBUFFER,ge.__webglFramebuffer);for(let ue=0;ue<_.length;ue++){if(E.resolveDepthBuffer&&(E.depthBuffer&&($|=i.DEPTH_BUFFER_BIT),E.stencilBuffer&&E.resolveStencilBuffer&&($|=i.STENCIL_BUFFER_BIT)),ae){i.framebufferRenderbuffer(i.READ_FRAMEBUFFER,i.COLOR_ATTACHMENT0,i.RENDERBUFFER,ge.__webglColorRenderbuffer[ue]);const He=n.get(_[ue]).__webglTexture;i.framebufferTexture2D(i.DRAW_FRAMEBUFFER,i.COLOR_ATTACHMENT0,i.TEXTURE_2D,He,0)}i.blitFramebuffer(0,0,F,Y,0,0,F,Y,$,i.NEAREST),c===!0&&(Fe.length=0,A.length=0,Fe.push(i.COLOR_ATTACHMENT0+ue),E.depthBuffer&&E.resolveDepthBuffer===!1&&(Fe.push(X),A.push(X),i.invalidateFramebuffer(i.DRAW_FRAMEBUFFER,A)),i.invalidateFramebuffer(i.READ_FRAMEBUFFER,Fe))}if(t.bindFramebuffer(i.READ_FRAMEBUFFER,null),t.bindFramebuffer(i.DRAW_FRAMEBUFFER,null),ae)for(let ue=0;ue<_.length;ue++){t.bindFramebuffer(i.FRAMEBUFFER,ge.__webglMultisampledFramebuffer),i.framebufferRenderbuffer(i.FRAMEBUFFER,i.COLOR_ATTACHMENT0+ue,i.RENDERBUFFER,ge.__webglColorRenderbuffer[ue]);const He=n.get(_[ue]).__webglTexture;t.bindFramebuffer(i.FRAMEBUFFER,ge.__webglFramebuffer),i.framebufferTexture2D(i.DRAW_FRAMEBUFFER,i.COLOR_ATTACHMENT0+ue,i.TEXTURE_2D,He,0)}t.bindFramebuffer(i.DRAW_FRAMEBUFFER,ge.__webglMultisampledFramebuffer)}else if(E.depthBuffer&&E.resolveDepthBuffer===!1&&c){const _=E.stencilBuffer?i.DEPTH_STENCIL_ATTACHMENT:i.DEPTH_ATTACHMENT;i.invalidateFramebuffer(i.DRAW_FRAMEBUFFER,[_])}}}function Oe(E){return Math.min(r.maxSamples,E.samples)}function Be(E){const _=n.get(E);return E.samples>0&&e.has("WEBGL_multisampled_render_to_texture")===!0&&_.__useRenderToTexture!==!1}function xe(E){const _=a.render.frame;h.get(E)!==_&&(h.set(E,_),E.update())}function tt(E,_){const F=E.colorSpace,Y=E.format,$=E.type;return E.isCompressedTexture===!0||E.isVideoTexture===!0||F!==pi&&F!==_n&&(We.getTransfer(F)===je?(Y!==Ut||$!==cn)&&console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType."):console.error("THREE.WebGLTextures: Unsupported texture color space:",F)),_}function _e(E){return typeof HTMLImageElement<"u"&&E instanceof HTMLImageElement?(l.width=E.naturalWidth||E.width,l.height=E.naturalHeight||E.height):typeof VideoFrame<"u"&&E instanceof VideoFrame?(l.width=E.displayWidth,l.height=E.displayHeight):(l.width=E.width,l.height=E.height),l}this.allocateTextureUnit=z,this.resetTextureUnits=V,this.setTexture2D=Z,this.setTexture2DArray=W,this.setTexture3D=Q,this.setTextureCube=k,this.rebindTextures=Te,this.setupRenderTarget=at,this.updateRenderTargetMipmap=it,this.updateMultisampleRenderTarget=Ct,this.setupDepthRenderbuffer=Xe,this.setupFrameBufferTexture=me,this.useMultisampledRTT=Be}function Pm(i,e){function t(n,r=_n){let s;const a=We.getTransfer(r);if(n===cn)return i.UNSIGNED_BYTE;if(n===ha)return i.UNSIGNED_SHORT_4_4_4_4;if(n===ua)return i.UNSIGNED_SHORT_5_5_5_1;if(n===tl)return i.UNSIGNED_INT_5_9_9_9_REV;if(n===Qo)return i.BYTE;if(n===el)return i.SHORT;if(n===Ii)return i.UNSIGNED_SHORT;if(n===ca)return i.INT;if(n===zn)return i.UNSIGNED_INT;if(n===Wt)return i.FLOAT;if(n===Ni)return i.HALF_FLOAT;if(n===nl)return i.ALPHA;if(n===il)return i.RGB;if(n===Ut)return i.RGBA;if(n===rl)return i.LUMINANCE;if(n===sl)return i.LUMINANCE_ALPHA;if(n===oi)return i.DEPTH_COMPONENT;if(n===fi)return i.DEPTH_STENCIL;if(n===da)return i.RED;if(n===fa)return i.RED_INTEGER;if(n===al)return i.RG;if(n===pa)return i.RG_INTEGER;if(n===ma)return i.RGBA_INTEGER;if(n===mr||n===gr||n===_r||n===vr)if(a===je)if(s=e.get("WEBGL_compressed_texture_s3tc_srgb"),s!==null){if(n===mr)return s.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(n===gr)return s.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(n===_r)return s.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(n===vr)return s.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else return null;else if(s=e.get("WEBGL_compressed_texture_s3tc"),s!==null){if(n===mr)return s.COMPRESSED_RGB_S3TC_DXT1_EXT;if(n===gr)return s.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(n===_r)return s.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(n===vr)return s.COMPRESSED_RGBA_S3TC_DXT5_EXT}else return null;if(n===Ls||n===Ds||n===Is||n===Us)if(s=e.get("WEBGL_compressed_texture_pvrtc"),s!==null){if(n===Ls)return s.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(n===Ds)return s.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(n===Is)return s.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(n===Us)return s.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}else return null;if(n===Ns||n===Fs||n===Os)if(s=e.get("WEBGL_compressed_texture_etc"),s!==null){if(n===Ns||n===Fs)return a===je?s.COMPRESSED_SRGB8_ETC2:s.COMPRESSED_RGB8_ETC2;if(n===Os)return a===je?s.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:s.COMPRESSED_RGBA8_ETC2_EAC}else return null;if(n===Bs||n===zs||n===Vs||n===Hs||n===ks||n===Gs||n===Ws||n===Xs||n===qs||n===Ys||n===Ks||n===Zs||n===$s||n===js)if(s=e.get("WEBGL_compressed_texture_astc"),s!==null){if(n===Bs)return a===je?s.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:s.COMPRESSED_RGBA_ASTC_4x4_KHR;if(n===zs)return a===je?s.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:s.COMPRESSED_RGBA_ASTC_5x4_KHR;if(n===Vs)return a===je?s.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:s.COMPRESSED_RGBA_ASTC_5x5_KHR;if(n===Hs)return a===je?s.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:s.COMPRESSED_RGBA_ASTC_6x5_KHR;if(n===ks)return a===je?s.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:s.COMPRESSED_RGBA_ASTC_6x6_KHR;if(n===Gs)return a===je?s.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:s.COMPRESSED_RGBA_ASTC_8x5_KHR;if(n===Ws)return a===je?s.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:s.COMPRESSED_RGBA_ASTC_8x6_KHR;if(n===Xs)return a===je?s.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:s.COMPRESSED_RGBA_ASTC_8x8_KHR;if(n===qs)return a===je?s.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:s.COMPRESSED_RGBA_ASTC_10x5_KHR;if(n===Ys)return a===je?s.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:s.COMPRESSED_RGBA_ASTC_10x6_KHR;if(n===Ks)return a===je?s.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:s.COMPRESSED_RGBA_ASTC_10x8_KHR;if(n===Zs)return a===je?s.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:s.COMPRESSED_RGBA_ASTC_10x10_KHR;if(n===$s)return a===je?s.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:s.COMPRESSED_RGBA_ASTC_12x10_KHR;if(n===js)return a===je?s.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:s.COMPRESSED_RGBA_ASTC_12x12_KHR}else return null;if(n===xr||n===Js||n===Qs)if(s=e.get("EXT_texture_compression_bptc"),s!==null){if(n===xr)return a===je?s.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:s.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(n===Js)return s.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(n===Qs)return s.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}else return null;if(n===ol||n===ea||n===ta||n===na)if(s=e.get("EXT_texture_compression_rgtc"),s!==null){if(n===xr)return s.COMPRESSED_RED_RGTC1_EXT;if(n===ea)return s.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(n===ta)return s.COMPRESSED_RED_GREEN_RGTC2_EXT;if(n===na)return s.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}else return null;return n===di?i.UNSIGNED_INT_24_8:i[n]!==void 0?i[n]:null}return{convert:t}}const Lm=` +void main() { + + gl_Position = vec4( position, 1.0 ); + +}`,Dm=` +uniform sampler2DArray depthColor; +uniform float depthWidth; +uniform float depthHeight; + +void main() { + + vec2 coord = vec2( gl_FragCoord.x / depthWidth, gl_FragCoord.y / depthHeight ); + + if ( coord.x >= 1.0 ) { + + gl_FragDepth = texture( depthColor, vec3( coord.x - 1.0, coord.y, 1 ) ).r; + + } else { + + gl_FragDepth = texture( depthColor, vec3( coord.x, coord.y, 0 ) ).r; + + } + +}`;class Im{constructor(){this.texture=null,this.mesh=null,this.depthNear=0,this.depthFar=0}init(e,t,n){if(this.texture===null){const r=new _t,s=e.properties.get(r);s.__webglTexture=t.texture,(t.depthNear!==n.depthNear||t.depthFar!==n.depthFar)&&(this.depthNear=t.depthNear,this.depthFar=t.depthFar),this.texture=r}}getMesh(e){if(this.texture!==null&&this.mesh===null){const t=e.cameras[0].viewport,n=new yn({vertexShader:Lm,fragmentShader:Dm,uniforms:{depthColor:{value:this.texture},depthWidth:{value:t.z},depthHeight:{value:t.w}}});this.mesh=new Nt(new Lr(20,20),n)}return this.mesh}reset(){this.texture=null,this.mesh=null}getDepthTexture(){return this.texture}}class Um extends Hn{constructor(e,t){super();const n=this;let r=null,s=1,a=null,o="local-floor",c=1,l=null,h=null,f=null,d=null,p=null,g=null;const v=new Im,m=t.getContextAttributes();let u=null,b=null;const T=[],y=[],D=new Ve;let w=null;const R=new wt;R.viewport=new qe;const U=new wt;U.viewport=new qe;const S=[R,U],M=new qh;let C=null,V=null;this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(q){let ee=T[q];return ee===void 0&&(ee=new ss,T[q]=ee),ee.getTargetRaySpace()},this.getControllerGrip=function(q){let ee=T[q];return ee===void 0&&(ee=new ss,T[q]=ee),ee.getGripSpace()},this.getHand=function(q){let ee=T[q];return ee===void 0&&(ee=new ss,T[q]=ee),ee.getHandSpace()};function z(q){const ee=y.indexOf(q.inputSource);if(ee===-1)return;const me=T[ee];me!==void 0&&(me.update(q.inputSource,q.frame,l||a),me.dispatchEvent({type:q.type,data:q.inputSource}))}function G(){r.removeEventListener("select",z),r.removeEventListener("selectstart",z),r.removeEventListener("selectend",z),r.removeEventListener("squeeze",z),r.removeEventListener("squeezestart",z),r.removeEventListener("squeezeend",z),r.removeEventListener("end",G),r.removeEventListener("inputsourceschange",Z);for(let q=0;q=0&&(y[se]=null,T[se].disconnect(me))}for(let ee=0;ee=y.length){y.push(me),se=Xe;break}else if(y[Xe]===null){y[Xe]=me,se=Xe;break}if(se===-1)break}const Ee=T[se];Ee&&Ee.connect(me)}}const W=new N,Q=new N;function k(q,ee,me){W.setFromMatrixPosition(ee.matrixWorld),Q.setFromMatrixPosition(me.matrixWorld);const se=W.distanceTo(Q),Ee=ee.projectionMatrix.elements,Xe=me.projectionMatrix.elements,Te=Ee[14]/(Ee[10]-1),at=Ee[14]/(Ee[10]+1),it=(Ee[9]+1)/Ee[5],Fe=(Ee[9]-1)/Ee[5],A=(Ee[8]-1)/Ee[0],Ct=(Xe[8]+1)/Xe[0],Oe=Te*A,Be=Te*Ct,xe=se/(-A+Ct),tt=xe*-A;if(ee.matrixWorld.decompose(q.position,q.quaternion,q.scale),q.translateX(tt),q.translateZ(xe),q.matrixWorld.compose(q.position,q.quaternion,q.scale),q.matrixWorldInverse.copy(q.matrixWorld).invert(),Ee[10]===-1)q.projectionMatrix.copy(ee.projectionMatrix),q.projectionMatrixInverse.copy(ee.projectionMatrixInverse);else{const _e=Te+xe,E=at+xe,_=Oe-tt,F=Be+(se-tt),Y=it*at/E*_e,$=Fe*at/E*_e;q.projectionMatrix.makePerspective(_,F,Y,$,_e,E),q.projectionMatrixInverse.copy(q.projectionMatrix).invert()}}function re(q,ee){ee===null?q.matrixWorld.copy(q.matrix):q.matrixWorld.multiplyMatrices(ee.matrixWorld,q.matrix),q.matrixWorldInverse.copy(q.matrixWorld).invert()}this.updateCamera=function(q){if(r===null)return;let ee=q.near,me=q.far;v.texture!==null&&(v.depthNear>0&&(ee=v.depthNear),v.depthFar>0&&(me=v.depthFar)),M.near=U.near=R.near=ee,M.far=U.far=R.far=me,(C!==M.near||V!==M.far)&&(r.updateRenderState({depthNear:M.near,depthFar:M.far}),C=M.near,V=M.far),R.layers.mask=q.layers.mask|2,U.layers.mask=q.layers.mask|4,M.layers.mask=R.layers.mask|U.layers.mask;const se=q.parent,Ee=M.cameras;re(M,se);for(let Xe=0;Xe0&&(m.alphaTest.value=u.alphaTest);const b=e.get(u),T=b.envMap,y=b.envMapRotation;T&&(m.envMap.value=T,Dn.copy(y),Dn.x*=-1,Dn.y*=-1,Dn.z*=-1,T.isCubeTexture&&T.isRenderTargetTexture===!1&&(Dn.y*=-1,Dn.z*=-1),m.envMapRotation.value.setFromMatrix4(Nm.makeRotationFromEuler(Dn)),m.flipEnvMap.value=T.isCubeTexture&&T.isRenderTargetTexture===!1?-1:1,m.reflectivity.value=u.reflectivity,m.ior.value=u.ior,m.refractionRatio.value=u.refractionRatio),u.lightMap&&(m.lightMap.value=u.lightMap,m.lightMapIntensity.value=u.lightMapIntensity,t(u.lightMap,m.lightMapTransform)),u.aoMap&&(m.aoMap.value=u.aoMap,m.aoMapIntensity.value=u.aoMapIntensity,t(u.aoMap,m.aoMapTransform))}function a(m,u){m.diffuse.value.copy(u.color),m.opacity.value=u.opacity,u.map&&(m.map.value=u.map,t(u.map,m.mapTransform))}function o(m,u){m.dashSize.value=u.dashSize,m.totalSize.value=u.dashSize+u.gapSize,m.scale.value=u.scale}function c(m,u,b,T){m.diffuse.value.copy(u.color),m.opacity.value=u.opacity,m.size.value=u.size*b,m.scale.value=T*.5,u.map&&(m.map.value=u.map,t(u.map,m.uvTransform)),u.alphaMap&&(m.alphaMap.value=u.alphaMap,t(u.alphaMap,m.alphaMapTransform)),u.alphaTest>0&&(m.alphaTest.value=u.alphaTest)}function l(m,u){m.diffuse.value.copy(u.color),m.opacity.value=u.opacity,m.rotation.value=u.rotation,u.map&&(m.map.value=u.map,t(u.map,m.mapTransform)),u.alphaMap&&(m.alphaMap.value=u.alphaMap,t(u.alphaMap,m.alphaMapTransform)),u.alphaTest>0&&(m.alphaTest.value=u.alphaTest)}function h(m,u){m.specular.value.copy(u.specular),m.shininess.value=Math.max(u.shininess,1e-4)}function f(m,u){u.gradientMap&&(m.gradientMap.value=u.gradientMap)}function d(m,u){m.metalness.value=u.metalness,u.metalnessMap&&(m.metalnessMap.value=u.metalnessMap,t(u.metalnessMap,m.metalnessMapTransform)),m.roughness.value=u.roughness,u.roughnessMap&&(m.roughnessMap.value=u.roughnessMap,t(u.roughnessMap,m.roughnessMapTransform)),u.envMap&&(m.envMapIntensity.value=u.envMapIntensity)}function p(m,u,b){m.ior.value=u.ior,u.sheen>0&&(m.sheenColor.value.copy(u.sheenColor).multiplyScalar(u.sheen),m.sheenRoughness.value=u.sheenRoughness,u.sheenColorMap&&(m.sheenColorMap.value=u.sheenColorMap,t(u.sheenColorMap,m.sheenColorMapTransform)),u.sheenRoughnessMap&&(m.sheenRoughnessMap.value=u.sheenRoughnessMap,t(u.sheenRoughnessMap,m.sheenRoughnessMapTransform))),u.clearcoat>0&&(m.clearcoat.value=u.clearcoat,m.clearcoatRoughness.value=u.clearcoatRoughness,u.clearcoatMap&&(m.clearcoatMap.value=u.clearcoatMap,t(u.clearcoatMap,m.clearcoatMapTransform)),u.clearcoatRoughnessMap&&(m.clearcoatRoughnessMap.value=u.clearcoatRoughnessMap,t(u.clearcoatRoughnessMap,m.clearcoatRoughnessMapTransform)),u.clearcoatNormalMap&&(m.clearcoatNormalMap.value=u.clearcoatNormalMap,t(u.clearcoatNormalMap,m.clearcoatNormalMapTransform),m.clearcoatNormalScale.value.copy(u.clearcoatNormalScale),u.side===yt&&m.clearcoatNormalScale.value.negate())),u.dispersion>0&&(m.dispersion.value=u.dispersion),u.iridescence>0&&(m.iridescence.value=u.iridescence,m.iridescenceIOR.value=u.iridescenceIOR,m.iridescenceThicknessMinimum.value=u.iridescenceThicknessRange[0],m.iridescenceThicknessMaximum.value=u.iridescenceThicknessRange[1],u.iridescenceMap&&(m.iridescenceMap.value=u.iridescenceMap,t(u.iridescenceMap,m.iridescenceMapTransform)),u.iridescenceThicknessMap&&(m.iridescenceThicknessMap.value=u.iridescenceThicknessMap,t(u.iridescenceThicknessMap,m.iridescenceThicknessMapTransform))),u.transmission>0&&(m.transmission.value=u.transmission,m.transmissionSamplerMap.value=b.texture,m.transmissionSamplerSize.value.set(b.width,b.height),u.transmissionMap&&(m.transmissionMap.value=u.transmissionMap,t(u.transmissionMap,m.transmissionMapTransform)),m.thickness.value=u.thickness,u.thicknessMap&&(m.thicknessMap.value=u.thicknessMap,t(u.thicknessMap,m.thicknessMapTransform)),m.attenuationDistance.value=u.attenuationDistance,m.attenuationColor.value.copy(u.attenuationColor)),u.anisotropy>0&&(m.anisotropyVector.value.set(u.anisotropy*Math.cos(u.anisotropyRotation),u.anisotropy*Math.sin(u.anisotropyRotation)),u.anisotropyMap&&(m.anisotropyMap.value=u.anisotropyMap,t(u.anisotropyMap,m.anisotropyMapTransform))),m.specularIntensity.value=u.specularIntensity,m.specularColor.value.copy(u.specularColor),u.specularColorMap&&(m.specularColorMap.value=u.specularColorMap,t(u.specularColorMap,m.specularColorMapTransform)),u.specularIntensityMap&&(m.specularIntensityMap.value=u.specularIntensityMap,t(u.specularIntensityMap,m.specularIntensityMapTransform))}function g(m,u){u.matcap&&(m.matcap.value=u.matcap)}function v(m,u){const b=e.get(u).light;m.referencePosition.value.setFromMatrixPosition(b.matrixWorld),m.nearDistance.value=b.shadow.camera.near,m.farDistance.value=b.shadow.camera.far}return{refreshFogUniforms:n,refreshMaterialUniforms:r}}function Om(i,e,t,n){let r={},s={},a=[];const o=i.getParameter(i.MAX_UNIFORM_BUFFER_BINDINGS);function c(b,T){const y=T.program;n.uniformBlockBinding(b,y)}function l(b,T){let y=r[b.id];y===void 0&&(g(b),y=h(b),r[b.id]=y,b.addEventListener("dispose",m));const D=T.program;n.updateUBOMapping(b,D);const w=e.render.frame;s[b.id]!==w&&(d(b),s[b.id]=w)}function h(b){const T=f();b.__bindingPointIndex=T;const y=i.createBuffer(),D=b.__size,w=b.usage;return i.bindBuffer(i.UNIFORM_BUFFER,y),i.bufferData(i.UNIFORM_BUFFER,D,w),i.bindBuffer(i.UNIFORM_BUFFER,null),i.bindBufferBase(i.UNIFORM_BUFFER,T,y),y}function f(){for(let b=0;b0&&(y+=D-w),b.__size=y,b.__cache={},this}function v(b){const T={boundary:0,storage:0};return typeof b=="number"||typeof b=="boolean"?(T.boundary=4,T.storage=4):b.isVector2?(T.boundary=8,T.storage=8):b.isVector3||b.isColor?(T.boundary=16,T.storage=12):b.isVector4?(T.boundary=16,T.storage=16):b.isMatrix3?(T.boundary=48,T.storage=48):b.isMatrix4?(T.boundary=64,T.storage=64):b.isTexture?console.warn("THREE.WebGLRenderer: Texture samplers can not be part of an uniforms group."):console.warn("THREE.WebGLRenderer: Unsupported uniform value type.",b),T}function m(b){const T=b.target;T.removeEventListener("dispose",m);const y=a.indexOf(T.__bindingPointIndex);a.splice(y,1),i.deleteBuffer(r[T.id]),delete r[T.id],delete s[T.id]}function u(){for(const b in r)i.deleteBuffer(r[b]);a=[],r={},s={}}return{bind:c,update:l,dispose:u}}class dg{constructor(e={}){const{canvas:t=qc(),context:n=null,depth:r=!0,stencil:s=!1,alpha:a=!1,antialias:o=!1,premultipliedAlpha:c=!0,preserveDrawingBuffer:l=!1,powerPreference:h="default",failIfMajorPerformanceCaveat:f=!1,reverseDepthBuffer:d=!1}=e;this.isWebGLRenderer=!0;let p;if(n!==null){if(typeof WebGLRenderingContext<"u"&&n instanceof WebGLRenderingContext)throw new Error("THREE.WebGLRenderer: WebGL 1 is not supported since r163.");p=n.getContextAttributes().alpha}else p=a;const g=new Uint32Array(4),v=new Int32Array(4);let m=null,u=null;const b=[],T=[];this.domElement=t,this.debug={checkShaderErrors:!0,onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this._outputColorSpace=It,this.toneMapping=Mn,this.toneMappingExposure=1;const y=this;let D=!1,w=0,R=0,U=null,S=-1,M=null;const C=new qe,V=new qe;let z=null;const G=new De(0);let Z=0,W=t.width,Q=t.height,k=1,re=null,he=null;const ve=new qe(0,0,W,Q),Ue=new qe(0,0,W,Q);let Qe=!1;const q=new va;let ee=!1,me=!1;this.transmissionResolutionScale=1;const se=new Ne,Ee=new Ne,Xe=new N,Te=new qe,at={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};let it=!1;function Fe(){return U===null?k:1}let A=n;function Ct(x,L){return t.getContext(x,L)}try{const x={alpha:!0,depth:r,stencil:s,antialias:o,premultipliedAlpha:c,preserveDrawingBuffer:l,powerPreference:h,failIfMajorPerformanceCaveat:f};if("setAttribute"in t&&t.setAttribute("data-engine",`three.js r${oa}`),t.addEventListener("webglcontextlost",K,!1),t.addEventListener("webglcontextrestored",le,!1),t.addEventListener("webglcontextcreationerror",oe,!1),A===null){const L="webgl2";if(A=Ct(L,x),A===null)throw Ct(L)?new Error("Error creating WebGL context with your selected attributes."):new Error("Error creating WebGL context.")}}catch(x){throw console.error("THREE.WebGLRenderer: "+x.message),x}let Oe,Be,xe,tt,_e,E,_,F,Y,$,X,ge,ae,ue,He,J,de,ye,be,fe,ze,Pe,et,P;function ne(){Oe=new Kf(A),Oe.init(),Pe=new Pm(A,Oe),Be=new kf(A,Oe,e,Pe),xe=new Rm(A,Oe),Be.reverseDepthBuffer&&d&&xe.buffers.depth.setReversed(!0),tt=new jf(A),_e=new mm,E=new Cm(A,Oe,xe,_e,Be,Pe,tt),_=new Wf(y),F=new Yf(y),Y=new iu(A),et=new Vf(A,Y),$=new Zf(A,Y,tt,et),X=new Qf(A,$,Y,tt),be=new Jf(A,Be,E),J=new Gf(_e),ge=new pm(y,_,F,Oe,Be,et,J),ae=new Fm(y,_e),ue=new _m,He=new Em(Oe),ye=new zf(y,_,F,xe,X,p,c),de=new Am(y,X,Be),P=new Om(A,tt,Be,xe),fe=new Hf(A,Oe,tt),ze=new $f(A,Oe,tt),tt.programs=ge.programs,y.capabilities=Be,y.extensions=Oe,y.properties=_e,y.renderLists=ue,y.shadowMap=de,y.state=xe,y.info=tt}ne();const H=new Um(y,A);this.xr=H,this.getContext=function(){return A},this.getContextAttributes=function(){return A.getContextAttributes()},this.forceContextLoss=function(){const x=Oe.get("WEBGL_lose_context");x&&x.loseContext()},this.forceContextRestore=function(){const x=Oe.get("WEBGL_lose_context");x&&x.restoreContext()},this.getPixelRatio=function(){return k},this.setPixelRatio=function(x){x!==void 0&&(k=x,this.setSize(W,Q,!1))},this.getSize=function(x){return x.set(W,Q)},this.setSize=function(x,L,O=!0){if(H.isPresenting){console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting.");return}W=x,Q=L,t.width=Math.floor(x*k),t.height=Math.floor(L*k),O===!0&&(t.style.width=x+"px",t.style.height=L+"px"),this.setViewport(0,0,x,L)},this.getDrawingBufferSize=function(x){return x.set(W*k,Q*k).floor()},this.setDrawingBufferSize=function(x,L,O){W=x,Q=L,k=O,t.width=Math.floor(x*O),t.height=Math.floor(L*O),this.setViewport(0,0,x,L)},this.getCurrentViewport=function(x){return x.copy(C)},this.getViewport=function(x){return x.copy(ve)},this.setViewport=function(x,L,O,B){x.isVector4?ve.set(x.x,x.y,x.z,x.w):ve.set(x,L,O,B),xe.viewport(C.copy(ve).multiplyScalar(k).round())},this.getScissor=function(x){return x.copy(Ue)},this.setScissor=function(x,L,O,B){x.isVector4?Ue.set(x.x,x.y,x.z,x.w):Ue.set(x,L,O,B),xe.scissor(V.copy(Ue).multiplyScalar(k).round())},this.getScissorTest=function(){return Qe},this.setScissorTest=function(x){xe.setScissorTest(Qe=x)},this.setOpaqueSort=function(x){re=x},this.setTransparentSort=function(x){he=x},this.getClearColor=function(x){return x.copy(ye.getClearColor())},this.setClearColor=function(){ye.setClearColor.apply(ye,arguments)},this.getClearAlpha=function(){return ye.getClearAlpha()},this.setClearAlpha=function(){ye.setClearAlpha.apply(ye,arguments)},this.clear=function(x=!0,L=!0,O=!0){let B=0;if(x){let I=!1;if(U!==null){const j=U.texture.format;I=j===ma||j===pa||j===fa}if(I){const j=U.texture.type,ie=j===cn||j===zn||j===Ii||j===di||j===ha||j===ua,ce=ye.getClearColor(),pe=ye.getClearAlpha(),Ae=ce.r,we=ce.g,Me=ce.b;ie?(g[0]=Ae,g[1]=we,g[2]=Me,g[3]=pe,A.clearBufferuiv(A.COLOR,0,g)):(v[0]=Ae,v[1]=we,v[2]=Me,v[3]=pe,A.clearBufferiv(A.COLOR,0,v))}else B|=A.COLOR_BUFFER_BIT}L&&(B|=A.DEPTH_BUFFER_BIT),O&&(B|=A.STENCIL_BUFFER_BIT,this.state.buffers.stencil.setMask(4294967295)),A.clear(B)},this.clearColor=function(){this.clear(!0,!1,!1)},this.clearDepth=function(){this.clear(!1,!0,!1)},this.clearStencil=function(){this.clear(!1,!1,!0)},this.dispose=function(){t.removeEventListener("webglcontextlost",K,!1),t.removeEventListener("webglcontextrestored",le,!1),t.removeEventListener("webglcontextcreationerror",oe,!1),ye.dispose(),ue.dispose(),He.dispose(),_e.dispose(),_.dispose(),F.dispose(),X.dispose(),et.dispose(),P.dispose(),ge.dispose(),H.dispose(),H.removeEventListener("sessionstart",Ta),H.removeEventListener("sessionend",ba),bn.stop()};function K(x){x.preventDefault(),console.log("THREE.WebGLRenderer: Context Lost."),D=!0}function le(){console.log("THREE.WebGLRenderer: Context Restored."),D=!1;const x=tt.autoReset,L=de.enabled,O=de.autoUpdate,B=de.needsUpdate,I=de.type;ne(),tt.autoReset=x,de.enabled=L,de.autoUpdate=O,de.needsUpdate=B,de.type=I}function oe(x){console.error("THREE.WebGLRenderer: A WebGL context could not be created. Reason: ",x.statusMessage)}function Re(x){const L=x.target;L.removeEventListener("dispose",Re),rt(L)}function rt(x){pt(x),_e.remove(x)}function pt(x){const L=_e.get(x).programs;L!==void 0&&(L.forEach(function(O){ge.releaseProgram(O)}),x.isShaderMaterial&&ge.releaseShaderCache(x))}this.renderBufferDirect=function(x,L,O,B,I,j){L===null&&(L=at);const ie=I.isMesh&&I.matrixWorld.determinant()<0,ce=Nl(x,L,O,B,I);xe.setMaterial(B,ie);let pe=O.index,Ae=1;if(B.wireframe===!0){if(pe=$.getWireframeAttribute(O),pe===void 0)return;Ae=2}const we=O.drawRange,Me=O.attributes.position;let ke=we.start*Ae,Ye=(we.start+we.count)*Ae;j!==null&&(ke=Math.max(ke,j.start*Ae),Ye=Math.min(Ye,(j.start+j.count)*Ae)),pe!==null?(ke=Math.max(ke,0),Ye=Math.min(Ye,pe.count)):Me!=null&&(ke=Math.max(ke,0),Ye=Math.min(Ye,Me.count));const lt=Ye-ke;if(lt<0||lt===1/0)return;et.setup(I,B,ce,O,pe);let st,Ge=fe;if(pe!==null&&(st=Y.get(pe),Ge=ze,Ge.setIndex(st)),I.isMesh)B.wireframe===!0?(xe.setLineWidth(B.wireframeLinewidth*Fe()),Ge.setMode(A.LINES)):Ge.setMode(A.TRIANGLES);else if(I.isLine){let Se=B.linewidth;Se===void 0&&(Se=1),xe.setLineWidth(Se*Fe()),I.isLineSegments?Ge.setMode(A.LINES):I.isLineLoop?Ge.setMode(A.LINE_LOOP):Ge.setMode(A.LINE_STRIP)}else I.isPoints?Ge.setMode(A.POINTS):I.isSprite&&Ge.setMode(A.TRIANGLES);if(I.isBatchedMesh)if(I._multiDrawInstances!==null)Ge.renderMultiDrawInstances(I._multiDrawStarts,I._multiDrawCounts,I._multiDrawCount,I._multiDrawInstances);else if(Oe.get("WEBGL_multi_draw"))Ge.renderMultiDraw(I._multiDrawStarts,I._multiDrawCounts,I._multiDrawCount);else{const Se=I._multiDrawStarts,ft=I._multiDrawCounts,Ke=I._multiDrawCount,Bt=pe?Y.get(pe).bytesPerElement:1,kn=_e.get(B).currentProgram.getUniforms();for(let Tt=0;Tt{function j(){if(B.forEach(function(ie){_e.get(ie).currentProgram.isReady()&&B.delete(ie)}),B.size===0){I(x);return}setTimeout(j,10)}Oe.get("KHR_parallel_shader_compile")!==null?j():setTimeout(j,10)})};let Ot=null;function jt(x){Ot&&Ot(x)}function Ta(){bn.stop()}function ba(){bn.start()}const bn=new Pl;bn.setAnimationLoop(jt),typeof self<"u"&&bn.setContext(self),this.setAnimationLoop=function(x){Ot=x,H.setAnimationLoop(x),x===null?bn.stop():bn.start()},H.addEventListener("sessionstart",Ta),H.addEventListener("sessionend",ba),this.render=function(x,L){if(L!==void 0&&L.isCamera!==!0){console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");return}if(D===!0)return;if(x.matrixWorldAutoUpdate===!0&&x.updateMatrixWorld(),L.parent===null&&L.matrixWorldAutoUpdate===!0&&L.updateMatrixWorld(),H.enabled===!0&&H.isPresenting===!0&&(H.cameraAutoUpdate===!0&&H.updateCamera(L),L=H.getCamera()),x.isScene===!0&&x.onBeforeRender(y,x,L,U),u=He.get(x,T.length),u.init(L),T.push(u),Ee.multiplyMatrices(L.projectionMatrix,L.matrixWorldInverse),q.setFromProjectionMatrix(Ee),me=this.localClippingEnabled,ee=J.init(this.clippingPlanes,me),m=ue.get(x,b.length),m.init(),b.push(m),H.enabled===!0&&H.isPresenting===!0){const j=y.xr.getDepthSensingMesh();j!==null&&Fr(j,L,-1/0,y.sortObjects)}Fr(x,L,0,y.sortObjects),m.finish(),y.sortObjects===!0&&m.sort(re,he),it=H.enabled===!1||H.isPresenting===!1||H.hasDepthSensing()===!1,it&&ye.addToRenderList(m,x),this.info.render.frame++,ee===!0&&J.beginShadows();const O=u.state.shadowsArray;de.render(O,x,L),ee===!0&&J.endShadows(),this.info.autoReset===!0&&this.info.reset();const B=m.opaque,I=m.transmissive;if(u.setupLights(),L.isArrayCamera){const j=L.cameras;if(I.length>0)for(let ie=0,ce=j.length;ie0&&wa(B,I,x,L),it&&ye.render(x),Aa(m,x,L);U!==null&&R===0&&(E.updateMultisampleRenderTarget(U),E.updateRenderTargetMipmap(U)),x.isScene===!0&&x.onAfterRender(y,x,L),et.resetDefaultState(),S=-1,M=null,T.pop(),T.length>0?(u=T[T.length-1],ee===!0&&J.setGlobalState(y.clippingPlanes,u.state.camera)):u=null,b.pop(),b.length>0?m=b[b.length-1]:m=null};function Fr(x,L,O,B){if(x.visible===!1)return;if(x.layers.test(L.layers)){if(x.isGroup)O=x.renderOrder;else if(x.isLOD)x.autoUpdate===!0&&x.update(L);else if(x.isLight)u.pushLight(x),x.castShadow&&u.pushShadow(x);else if(x.isSprite){if(!x.frustumCulled||q.intersectsSprite(x)){B&&Te.setFromMatrixPosition(x.matrixWorld).applyMatrix4(Ee);const ie=X.update(x),ce=x.material;ce.visible&&m.push(x,ie,ce,O,Te.z,null)}}else if((x.isMesh||x.isLine||x.isPoints)&&(!x.frustumCulled||q.intersectsObject(x))){const ie=X.update(x),ce=x.material;if(B&&(x.boundingSphere!==void 0?(x.boundingSphere===null&&x.computeBoundingSphere(),Te.copy(x.boundingSphere.center)):(ie.boundingSphere===null&&ie.computeBoundingSphere(),Te.copy(ie.boundingSphere.center)),Te.applyMatrix4(x.matrixWorld).applyMatrix4(Ee)),Array.isArray(ce)){const pe=ie.groups;for(let Ae=0,we=pe.length;Ae0&&Bi(I,L,O),j.length>0&&Bi(j,L,O),ie.length>0&&Bi(ie,L,O),xe.buffers.depth.setTest(!0),xe.buffers.depth.setMask(!0),xe.buffers.color.setMask(!0),xe.setPolygonOffset(!1)}function wa(x,L,O,B){if((O.isScene===!0?O.overrideMaterial:null)!==null)return;u.state.transmissionRenderTarget[B.id]===void 0&&(u.state.transmissionRenderTarget[B.id]=new Vn(1,1,{generateMipmaps:!0,type:Oe.has("EXT_color_buffer_half_float")||Oe.has("EXT_color_buffer_float")?Ni:cn,minFilter:Bn,samples:4,stencilBuffer:s,resolveDepthBuffer:!1,resolveStencilBuffer:!1,colorSpace:We.workingColorSpace}));const j=u.state.transmissionRenderTarget[B.id],ie=B.viewport||C;j.setSize(ie.z*y.transmissionResolutionScale,ie.w*y.transmissionResolutionScale);const ce=y.getRenderTarget();y.setRenderTarget(j),y.getClearColor(G),Z=y.getClearAlpha(),Z<1&&y.setClearColor(16777215,.5),y.clear(),it&&ye.render(O);const pe=y.toneMapping;y.toneMapping=Mn;const Ae=B.viewport;if(B.viewport!==void 0&&(B.viewport=void 0),u.setupLightsView(B),ee===!0&&J.setGlobalState(y.clippingPlanes,B),Bi(x,O,B),E.updateMultisampleRenderTarget(j),E.updateRenderTargetMipmap(j),Oe.has("WEBGL_multisampled_render_to_texture")===!1){let we=!1;for(let Me=0,ke=L.length;Me0),Me=!!O.morphAttributes.position,ke=!!O.morphAttributes.normal,Ye=!!O.morphAttributes.color;let lt=Mn;B.toneMapped&&(U===null||U.isXRRenderTarget===!0)&&(lt=y.toneMapping);const st=O.morphAttributes.position||O.morphAttributes.normal||O.morphAttributes.color,Ge=st!==void 0?st.length:0,Se=_e.get(B),ft=u.state.lights;if(ee===!0&&(me===!0||x!==M)){const vt=x===M&&B.id===S;J.setState(B,x,vt)}let Ke=!1;B.version===Se.__version?(Se.needsLights&&Se.lightsStateVersion!==ft.state.version||Se.outputColorSpace!==ce||I.isBatchedMesh&&Se.batching===!1||!I.isBatchedMesh&&Se.batching===!0||I.isBatchedMesh&&Se.batchingColor===!0&&I.colorTexture===null||I.isBatchedMesh&&Se.batchingColor===!1&&I.colorTexture!==null||I.isInstancedMesh&&Se.instancing===!1||!I.isInstancedMesh&&Se.instancing===!0||I.isSkinnedMesh&&Se.skinning===!1||!I.isSkinnedMesh&&Se.skinning===!0||I.isInstancedMesh&&Se.instancingColor===!0&&I.instanceColor===null||I.isInstancedMesh&&Se.instancingColor===!1&&I.instanceColor!==null||I.isInstancedMesh&&Se.instancingMorph===!0&&I.morphTexture===null||I.isInstancedMesh&&Se.instancingMorph===!1&&I.morphTexture!==null||Se.envMap!==pe||B.fog===!0&&Se.fog!==j||Se.numClippingPlanes!==void 0&&(Se.numClippingPlanes!==J.numPlanes||Se.numIntersection!==J.numIntersection)||Se.vertexAlphas!==Ae||Se.vertexTangents!==we||Se.morphTargets!==Me||Se.morphNormals!==ke||Se.morphColors!==Ye||Se.toneMapping!==lt||Se.morphTargetsCount!==Ge)&&(Ke=!0):(Ke=!0,Se.__version=B.version);let Bt=Se.currentProgram;Ke===!0&&(Bt=zi(B,L,I));let kn=!1,Tt=!1,Si=!1;const nt=Bt.getUniforms(),Pt=Se.uniforms;if(xe.useProgram(Bt.program)&&(kn=!0,Tt=!0,Si=!0),B.id!==S&&(S=B.id,Tt=!0),kn||M!==x){xe.buffers.depth.getReversed()?(se.copy(x.projectionMatrix),Kc(se),Zc(se),nt.setValue(A,"projectionMatrix",se)):nt.setValue(A,"projectionMatrix",x.projectionMatrix),nt.setValue(A,"viewMatrix",x.matrixWorldInverse);const St=nt.map.cameraPosition;St!==void 0&&St.setValue(A,Xe.setFromMatrixPosition(x.matrixWorld)),Be.logarithmicDepthBuffer&&nt.setValue(A,"logDepthBufFC",2/(Math.log(x.far+1)/Math.LN2)),(B.isMeshPhongMaterial||B.isMeshToonMaterial||B.isMeshLambertMaterial||B.isMeshBasicMaterial||B.isMeshStandardMaterial||B.isShaderMaterial)&&nt.setValue(A,"isOrthographic",x.isOrthographicCamera===!0),M!==x&&(M=x,Tt=!0,Si=!0)}if(I.isSkinnedMesh){nt.setOptional(A,I,"bindMatrix"),nt.setOptional(A,I,"bindMatrixInverse");const vt=I.skeleton;vt&&(vt.boneTexture===null&&vt.computeBoneTexture(),nt.setValue(A,"boneTexture",vt.boneTexture,E))}I.isBatchedMesh&&(nt.setOptional(A,I,"batchingTexture"),nt.setValue(A,"batchingTexture",I._matricesTexture,E),nt.setOptional(A,I,"batchingIdTexture"),nt.setValue(A,"batchingIdTexture",I._indirectTexture,E),nt.setOptional(A,I,"batchingColorTexture"),I._colorsTexture!==null&&nt.setValue(A,"batchingColorTexture",I._colorsTexture,E));const Lt=O.morphAttributes;if((Lt.position!==void 0||Lt.normal!==void 0||Lt.color!==void 0)&&be.update(I,O,Bt),(Tt||Se.receiveShadow!==I.receiveShadow)&&(Se.receiveShadow=I.receiveShadow,nt.setValue(A,"receiveShadow",I.receiveShadow)),B.isMeshGouraudMaterial&&B.envMap!==null&&(Pt.envMap.value=pe,Pt.flipEnvMap.value=pe.isCubeTexture&&pe.isRenderTargetTexture===!1?-1:1),B.isMeshStandardMaterial&&B.envMap===null&&L.environment!==null&&(Pt.envMapIntensity.value=L.environmentIntensity),Tt&&(nt.setValue(A,"toneMappingExposure",y.toneMappingExposure),Se.needsLights&&Fl(Pt,Si),j&&B.fog===!0&&ae.refreshFogUniforms(Pt,j),ae.refreshMaterialUniforms(Pt,B,k,Q,u.state.transmissionRenderTarget[x.id]),Mr.upload(A,Ca(Se),Pt,E)),B.isShaderMaterial&&B.uniformsNeedUpdate===!0&&(Mr.upload(A,Ca(Se),Pt,E),B.uniformsNeedUpdate=!1),B.isSpriteMaterial&&nt.setValue(A,"center",I.center),nt.setValue(A,"modelViewMatrix",I.modelViewMatrix),nt.setValue(A,"normalMatrix",I.normalMatrix),nt.setValue(A,"modelMatrix",I.matrixWorld),B.isShaderMaterial||B.isRawShaderMaterial){const vt=B.uniformsGroups;for(let St=0,Or=vt.length;St0&&E.useMultisampledRTT(x)===!1?I=_e.get(x).__webglMultisampledFramebuffer:Array.isArray(we)?I=we[O]:I=we,C.copy(x.viewport),V.copy(x.scissor),z=x.scissorTest}else C.copy(ve).multiplyScalar(k).floor(),V.copy(Ue).multiplyScalar(k).floor(),z=Qe;if(O!==0&&(I=Bl),xe.bindFramebuffer(A.FRAMEBUFFER,I)&&B&&xe.drawBuffers(x,I),xe.viewport(C),xe.scissor(V),xe.setScissorTest(z),j){const pe=_e.get(x.texture);A.framebufferTexture2D(A.FRAMEBUFFER,A.COLOR_ATTACHMENT0,A.TEXTURE_CUBE_MAP_POSITIVE_X+L,pe.__webglTexture,O)}else if(ie){const pe=_e.get(x.texture),Ae=L;A.framebufferTextureLayer(A.FRAMEBUFFER,A.COLOR_ATTACHMENT0,pe.__webglTexture,O,Ae)}else if(x!==null&&O!==0){const pe=_e.get(x.texture);A.framebufferTexture2D(A.FRAMEBUFFER,A.COLOR_ATTACHMENT0,A.TEXTURE_2D,pe.__webglTexture,O)}S=-1},this.readRenderTargetPixels=function(x,L,O,B,I,j,ie){if(!(x&&x.isWebGLRenderTarget)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");return}let ce=_e.get(x).__webglFramebuffer;if(x.isWebGLCubeRenderTarget&&ie!==void 0&&(ce=ce[ie]),ce){xe.bindFramebuffer(A.FRAMEBUFFER,ce);try{const pe=x.texture,Ae=pe.format,we=pe.type;if(!Be.textureFormatReadable(Ae)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");return}if(!Be.textureTypeReadable(we)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");return}L>=0&&L<=x.width-B&&O>=0&&O<=x.height-I&&A.readPixels(L,O,B,I,Pe.convert(Ae),Pe.convert(we),j)}finally{const pe=U!==null?_e.get(U).__webglFramebuffer:null;xe.bindFramebuffer(A.FRAMEBUFFER,pe)}}},this.readRenderTargetPixelsAsync=async function(x,L,O,B,I,j,ie){if(!(x&&x.isWebGLRenderTarget))throw new Error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");let ce=_e.get(x).__webglFramebuffer;if(x.isWebGLCubeRenderTarget&&ie!==void 0&&(ce=ce[ie]),ce){const pe=x.texture,Ae=pe.format,we=pe.type;if(!Be.textureFormatReadable(Ae))throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in RGBA or implementation defined format.");if(!Be.textureTypeReadable(we))throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in UnsignedByteType or implementation defined type.");if(L>=0&&L<=x.width-B&&O>=0&&O<=x.height-I){xe.bindFramebuffer(A.FRAMEBUFFER,ce);const Me=A.createBuffer();A.bindBuffer(A.PIXEL_PACK_BUFFER,Me),A.bufferData(A.PIXEL_PACK_BUFFER,j.byteLength,A.STREAM_READ),A.readPixels(L,O,B,I,Pe.convert(Ae),Pe.convert(we),0);const ke=U!==null?_e.get(U).__webglFramebuffer:null;xe.bindFramebuffer(A.FRAMEBUFFER,ke);const Ye=A.fenceSync(A.SYNC_GPU_COMMANDS_COMPLETE,0);return A.flush(),await Yc(A,Ye,4),A.bindBuffer(A.PIXEL_PACK_BUFFER,Me),A.getBufferSubData(A.PIXEL_PACK_BUFFER,0,j),A.deleteBuffer(Me),A.deleteSync(Ye),j}else throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: requested read bounds are out of range.")}},this.copyFramebufferToTexture=function(x,L=null,O=0){x.isTexture!==!0&&(ri("WebGLRenderer: copyFramebufferToTexture function signature has changed."),L=arguments[0]||null,x=arguments[1]);const B=Math.pow(2,-O),I=Math.floor(x.image.width*B),j=Math.floor(x.image.height*B),ie=L!==null?L.x:0,ce=L!==null?L.y:0;E.setTexture2D(x,0),A.copyTexSubImage2D(A.TEXTURE_2D,O,0,0,ie,ce,I,j),xe.unbindTexture()};const zl=A.createFramebuffer(),Vl=A.createFramebuffer();this.copyTextureToTexture=function(x,L,O=null,B=null,I=0,j=null){x.isTexture!==!0&&(ri("WebGLRenderer: copyTextureToTexture function signature has changed."),B=arguments[0]||null,x=arguments[1],L=arguments[2],j=arguments[3]||0,O=null),j===null&&(I!==0?(ri("WebGLRenderer: copyTextureToTexture function signature has changed to support src and dst mipmap levels."),j=I,I=0):j=0);let ie,ce,pe,Ae,we,Me,ke,Ye,lt;const st=x.isCompressedTexture?x.mipmaps[j]:x.image;if(O!==null)ie=O.max.x-O.min.x,ce=O.max.y-O.min.y,pe=O.isBox3?O.max.z-O.min.z:1,Ae=O.min.x,we=O.min.y,Me=O.isBox3?O.min.z:0;else{const Lt=Math.pow(2,-I);ie=Math.floor(st.width*Lt),ce=Math.floor(st.height*Lt),x.isDataArrayTexture?pe=st.depth:x.isData3DTexture?pe=Math.floor(st.depth*Lt):pe=1,Ae=0,we=0,Me=0}B!==null?(ke=B.x,Ye=B.y,lt=B.z):(ke=0,Ye=0,lt=0);const Ge=Pe.convert(L.format),Se=Pe.convert(L.type);let ft;L.isData3DTexture?(E.setTexture3D(L,0),ft=A.TEXTURE_3D):L.isDataArrayTexture||L.isCompressedArrayTexture?(E.setTexture2DArray(L,0),ft=A.TEXTURE_2D_ARRAY):(E.setTexture2D(L,0),ft=A.TEXTURE_2D),A.pixelStorei(A.UNPACK_FLIP_Y_WEBGL,L.flipY),A.pixelStorei(A.UNPACK_PREMULTIPLY_ALPHA_WEBGL,L.premultiplyAlpha),A.pixelStorei(A.UNPACK_ALIGNMENT,L.unpackAlignment);const Ke=A.getParameter(A.UNPACK_ROW_LENGTH),Bt=A.getParameter(A.UNPACK_IMAGE_HEIGHT),kn=A.getParameter(A.UNPACK_SKIP_PIXELS),Tt=A.getParameter(A.UNPACK_SKIP_ROWS),Si=A.getParameter(A.UNPACK_SKIP_IMAGES);A.pixelStorei(A.UNPACK_ROW_LENGTH,st.width),A.pixelStorei(A.UNPACK_IMAGE_HEIGHT,st.height),A.pixelStorei(A.UNPACK_SKIP_PIXELS,Ae),A.pixelStorei(A.UNPACK_SKIP_ROWS,we),A.pixelStorei(A.UNPACK_SKIP_IMAGES,Me);const nt=x.isDataArrayTexture||x.isData3DTexture,Pt=L.isDataArrayTexture||L.isData3DTexture;if(x.isDepthTexture){const Lt=_e.get(x),vt=_e.get(L),St=_e.get(Lt.__renderTarget),Or=_e.get(vt.__renderTarget);xe.bindFramebuffer(A.READ_FRAMEBUFFER,St.__webglFramebuffer),xe.bindFramebuffer(A.DRAW_FRAMEBUFFER,Or.__webglFramebuffer);for(let An=0;Anc+1e3&&(h.update(1e3*l/(p-c),100),c=p,l=0,d)){var g=performance.memory;d.update(g.usedJSHeapSize/1048576,g.jsHeapSizeLimit/1048576)}return p},update:function(){o=this.end()},domElement:a,setMode:r}};return t.Panel=function(n,r,s){var a=1/0,o=0,c=Math.round,l=c(window.devicePixelRatio||1),h=80*l,f=48*l,d=3*l,p=2*l,g=3*l,v=15*l,m=74*l,u=30*l,b=document.createElement("canvas");b.width=h,b.height=f,b.style.cssText="width:80px;height:48px";var T=b.getContext("2d");return T.font="bold "+9*l+"px Helvetica,Arial,sans-serif",T.textBaseline="top",T.fillStyle=s,T.fillRect(0,0,h,f),T.fillStyle=r,T.fillText(n,d,p),T.fillRect(g,v,m,u),T.fillStyle=s,T.globalAlpha=.9,T.fillRect(g,v,m,u),{dom:b,update:function(y,D){a=Math.min(a,y),o=Math.max(o,y),T.fillStyle=s,T.globalAlpha=1,T.fillRect(0,0,h,v),T.fillStyle=r,T.fillText(c(y)+" "+n+" ("+c(a)+"-"+c(o)+")",d,p),T.drawImage(b,g+l,v,m-l,u,g,v,m-l,u),T.fillRect(g+m-l,v,l,u),T.fillStyle=s,T.globalAlpha=.9,T.fillRect(g+m-l,v,l,c((1-y/D)*u))}}},t})}(Sr)),Sr.exports}export{$m as $,wh as A,Ft as B,ug as C,sg as D,Tn as E,tg as F,El as G,Rh as H,Zm as I,an as J,pl as K,Oi as L,Vm as M,Vi as N,ot as O,In as P,_i as Q,Pr as R,cg as S,Hm as T,Je as U,N as V,Yt as W,Km as X,Nt as Y,Ah as Z,Tl as _,Ve as a,jm as a0,ir as a1,wt as a2,Cl as a3,yl as a4,eg as a5,Sh as a6,yr as a7,ia as a8,Ml as a9,_t as aa,Rr as ab,wr as ac,Ir as ad,We as ae,Sn as af,Dr as ag,En as ah,hn as ai,Et as aj,Qm as ak,fg as al,qm as am,hg as an,dg as ao,ag as ap,Al as aq,Fi as ar,Xm as b,km as c,Wm as d,Gm as e,og as f,zm as g,Jm as h,De as i,pi as j,It as k,ig as l,rg as m,Ne as n,uo as o,ng as p,lg as q,Ym as r,Bn as s,Br as t,vc as u,Zt as v,Rt as w,Cs as x,Ps as y,On as z}; diff --git a/assets/uplot-C0BbzL7s.js b/assets/uplot-C0BbzL7s.js new file mode 100644 index 0000000..31b62af --- /dev/null +++ b/assets/uplot-C0BbzL7s.js @@ -0,0 +1,3 @@ +const De="u-",Ks="uplot",js=De+"hz",qs=De+"vt",$s=De+"title",Js=De+"wrap",Zs=De+"under",Qs=De+"over",Xs=De+"axis",Xt=De+"off",er=De+"select",tr=De+"cursor-x",lr=De+"cursor-y",nr=De+"cursor-pt",ir=De+"legend",or=De+"live",sr=De+"inline",rr=De+"series",fr=De+"marker",Ki=De+"label",ur=De+"value",Bl="width",Yl="height",Gl="top",ji="bottom",kl="left",Gn="right",ni="#000",qi=ni+"0",$i="mousemove",Ji="mousedown",In="mouseup",Zi="mouseenter",Qi="mouseleave",Xi="dblclick",cr="resize",ar="scroll",eo="change",cn="dppxchange",ii="--",Dl=typeof window<"u",jn=Dl?document:null,xl=Dl?window:null,hr=Dl?navigator:null;let se,sn;function qn(){let e=devicePixelRatio;se!=e&&(se=e,sn&&Jn(eo,sn,qn),sn=matchMedia(`(min-resolution: ${se-.001}dppx) and (max-resolution: ${se+.001}dppx)`),el(eo,sn,qn),xl.dispatchEvent(new CustomEvent(cn)))}function et(e,n){if(n!=null){let o=e.classList;!o.contains(n)&&o.add(n)}}function $n(e,n){let o=e.classList;o.contains(n)&&o.remove(n)}function ge(e,n,o){e.style[n]=o+"px"}function wt(e,n,o,l){let s=jn.createElement(e);return n!=null&&et(s,n),o!=null&&o.insertBefore(s,l),s}function ct(e,n){return wt("div",e,n)}const to=new WeakMap;function Mt(e,n,o,l,s){let a="translate("+n+"px,"+o+"px)",u=to.get(e);a!=u&&(e.style.transform=a,to.set(e,a),n<0||o<0||n>l||o>s?et(e,Xt):$n(e,Xt))}const lo=new WeakMap;function no(e,n,o){let l=n+o,s=lo.get(e);l!=s&&(lo.set(e,l),e.style.background=n,e.style.borderColor=o)}const io=new WeakMap;function oo(e,n,o,l){let s=n+""+o,a=io.get(e);s!=a&&(io.set(e,s),e.style.height=o+"px",e.style.width=n+"px",e.style.marginLeft=l?-n/2+"px":0,e.style.marginTop=l?-o/2+"px":0)}const oi={passive:!0},pr={...oi,capture:!0};function el(e,n,o,l){n.addEventListener(e,o,l?pr:oi)}function Jn(e,n,o,l){n.removeEventListener(e,o,oi)}Dl&&qn();function St(e,n,o,l){let s;o=o||0,l=l||n.length-1;let a=l<=2147483647;for(;l-o>1;)s=a?o+l>>1:tt((o+l)/2),n[s]=n&&s<=o;s+=l)if(e[s]!=null)return s;return-1}function mr(e,n,o,l){let s=ee,a=-ee;if(l==1)s=e[n],a=e[o];else if(l==-1)s=e[o],a=e[n];else for(let u=n;u<=o;u++){let d=e[u];d!=null&&(da&&(a=d))}return[s,a]}function dr(e,n,o){let l=ee,s=-ee;for(let a=n;a<=o;a++){let u=e[a];u!=null&&u>0&&(us&&(s=u))}return[l,s]}function pn(e,n,o,l){let s=fo(e),a=fo(n);e==n&&(s==-1?(e*=o,n/=o):(e/=o,n*=o));let u=o==10?At:Vo,d=s==1?tt:at,m=a==1?at:tt,g=d(u(Ae(e))),_=m(u(Ae(n))),y=bl(o,g),h=bl(o,_);return o==10&&(g<0&&(y=he(y,-g)),_<0&&(h=he(h,-_))),l||o==2?(e=y*s,n=h*a):(e=No(e,y),n=mn(n,h)),[e,n]}function si(e,n,o,l){let s=pn(e,n,o,l);return e==0&&(s[0]=0),n==0&&(s[1]=0),s}const ri=.1,so={mode:3,pad:ri},Kl={pad:0,soft:null,mode:0},gr={min:Kl,max:Kl};function an(e,n,o,l){return dn(o)?ro(e,n,o):(Kl.pad=o,Kl.soft=l?0:null,Kl.mode=l?3:0,ro(e,n,gr))}function oe(e,n){return e??n}function wr(e,n,o){for(n=oe(n,0),o=oe(o,e.length-1);n<=o;){if(e[n]!=null)return!0;n++}return!1}function ro(e,n,o){let l=o.min,s=o.max,a=oe(l.pad,0),u=oe(s.pad,0),d=oe(l.hard,-ee),m=oe(s.hard,ee),g=oe(l.soft,ee),_=oe(s.soft,-ee),y=oe(l.mode,0),h=oe(s.mode,0),E=n-e,R=At(E),A=Oe(Ae(e),Ae(n)),z=At(A),B=Ae(z-R);(E<1e-24||B>10)&&(E=0,(e==0||n==0)&&(E=1e-24,y==2&&g!=ee&&(a=0),h==2&&_!=-ee&&(u=0)));let H=E||A||1e3,x=At(H),C=bl(10,tt(x)),D=H*(E==0?e==0?.1:1:a),W=he(No(e-D,C/10),24),P=e>=g&&(y==1||y==3&&W<=g||y==2&&W>=g)?g:ee,j=Oe(d,W=P?P:ht(P,W)),q=H*(E==0?n==0?.1:1:u),F=he(mn(n+q,C/10),24),v=n<=_&&(h==1||h==3&&F>=_||h==2&&F<=_)?_:-ee,O=ht(m,F>v&&n<=v?v:Oe(v,F));return j==O&&j==0&&(O=100),[j,O]}const Sr=new Intl.NumberFormat(Dl?hr.language:"en-US"),fi=e=>Sr.format(e),lt=Math,un=lt.PI,Ae=lt.abs,tt=lt.floor,Ee=lt.round,at=lt.ceil,ht=lt.min,Oe=lt.max,bl=lt.pow,fo=lt.sign,At=lt.log10,Vo=lt.log2,_r=(e,n=1)=>lt.sinh(e)*n,Bn=(e,n=1)=>lt.asinh(e/n),ee=1/0;function uo(e){return(At((e^e>>31)-(e>>31))|0)+1}function Zn(e,n,o){return ht(Oe(e,n),o)}function X(e){return typeof e=="function"?e:()=>e}const yr=()=>{},zo=e=>e,Fo=(e,n)=>n,kr=e=>null,co=e=>!0,ao=(e,n)=>e==n,vr=/\.\d*?(?=9{6,}|0{6,})/gm,tl=e=>{if(Oo(e)||Bt.has(e))return e;const n=`${e}`,o=n.match(vr);if(o==null)return e;let l=o[0].length-1;if(n.indexOf("e-")!=-1){let[s,a]=n.split("e");return+`${tl(s)}e${a}`}return he(e,l)};function Zt(e,n){return tl(he(tl(e/n))*n)}function mn(e,n){return tl(at(tl(e/n))*n)}function No(e,n){return tl(tt(tl(e/n))*n)}function he(e,n=0){if(Oo(e))return e;let o=10**n,l=e*o*(1+Number.EPSILON);return Ee(l)/o}const Bt=new Map;function Ho(e){return((""+e).split(".")[1]||"").length}function ql(e,n,o,l){let s=[],a=l.map(Ho);for(let u=n;u=0?0:d)+(u>=a[g]?0:a[g]),h=e==10?_:he(_,y);s.push(h),Bt.set(h,y)}}return s}const jl={},ui=[],Tl=[null,null],It=Array.isArray,Oo=Number.isInteger,xr=e=>e===void 0;function ho(e){return typeof e=="string"}function dn(e){let n=!1;if(e!=null){let o=e.constructor;n=o==null||o==Object}return n}function Mr(e){return e!=null&&typeof e=="object"}const br=Object.getPrototypeOf(Uint8Array),Wo="__proto__";function El(e,n=dn){let o;if(It(e)){let l=e.find(s=>s!=null);if(It(l)||n(l)){o=Array(e.length);for(let s=0;sa){for(s=u-1;s>=0&&e[s]==null;)e[s--]=null;for(s=u+1;su-d)],s=l[0].length,a=new Map;for(let u=0;u"u"?e=>Promise.resolve().then(e):queueMicrotask;function Cr(e){let n=e[0],o=n.length,l=Array(o);for(let a=0;an[a]-n[u]);let s=[];for(let a=0;a=l&&e[s]==null;)s--;if(s<=l)return!0;const a=Oe(1,tt((s-l+1)/n));for(let u=e[l],d=l+a;d<=s;d+=a){const m=e[d];if(m!=null){if(m<=u)return!1;u=m}}return!0}const Go=["January","February","March","April","May","June","July","August","September","October","November","December"],Io=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function Bo(e){return e.slice(0,3)}const zr=Io.map(Bo),Fr=Go.map(Bo),Nr={MMMM:Go,MMM:Fr,WWWW:Io,WWW:zr};function Il(e){return(e<10?"0":"")+e}function Hr(e){return(e<10?"00":e<100?"0":"")+e}const Or={YYYY:e=>e.getFullYear(),YY:e=>(e.getFullYear()+"").slice(2),MMMM:(e,n)=>n.MMMM[e.getMonth()],MMM:(e,n)=>n.MMM[e.getMonth()],MM:e=>Il(e.getMonth()+1),M:e=>e.getMonth()+1,DD:e=>Il(e.getDate()),D:e=>e.getDate(),WWWW:(e,n)=>n.WWWW[e.getDay()],WWW:(e,n)=>n.WWW[e.getDay()],HH:e=>Il(e.getHours()),H:e=>e.getHours(),h:e=>{let n=e.getHours();return n==0?12:n>12?n-12:n},AA:e=>e.getHours()>=12?"PM":"AM",aa:e=>e.getHours()>=12?"pm":"am",a:e=>e.getHours()>=12?"p":"a",mm:e=>Il(e.getMinutes()),m:e=>e.getMinutes(),ss:e=>Il(e.getSeconds()),s:e=>e.getSeconds(),fff:e=>Hr(e.getMilliseconds())};function ci(e,n){n=n||Nr;let o=[],l=/\{([a-z]+)\}|[^{]+/gi,s;for(;s=l.exec(e);)o.push(s[0][0]=="{"?Or[s[1]]:s[0]);return a=>{let u="";for(let d=0;de%1==0,hn=[1,2,2.5,5],Ir=ql(10,-32,0,hn),Uo=ql(10,0,32,hn),Br=Uo.filter(Yo),Qt=Ir.concat(Uo),ai=` +`,Ko="{YYYY}",po=ai+Ko,jo="{M}/{D}",Ul=ai+jo,rn=Ul+"/{YY}",qo="{aa}",Yr="{h}:{mm}",vl=Yr+qo,mo=ai+vl,go=":{ss}",re=null;function $o(e){let n=e*1e3,o=n*60,l=o*60,s=l*24,a=s*30,u=s*365,m=(e==1?ql(10,0,3,hn).filter(Yo):ql(10,-3,0,hn)).concat([n,n*5,n*10,n*15,n*30,o,o*5,o*10,o*15,o*30,l,l*2,l*3,l*4,l*6,l*8,l*12,s,s*2,s*3,s*4,s*5,s*6,s*7,s*8,s*9,s*10,s*15,a,a*2,a*3,a*4,a*6,u,u*2,u*5,u*10,u*25,u*50,u*100]);const g=[[u,Ko,re,re,re,re,re,re,1],[s*28,"{MMM}",po,re,re,re,re,re,1],[s,jo,po,re,re,re,re,re,1],[l,"{h}"+qo,rn,re,Ul,re,re,re,1],[o,vl,rn,re,Ul,re,re,re,1],[n,go,rn+" "+vl,re,Ul+" "+vl,re,mo,re,1],[e,go+".{fff}",rn+" "+vl,re,Ul+" "+vl,re,mo,re,1]];function _(y){return(h,E,R,A,z,B)=>{let H=[],x=z>=u,C=z>=a&&z=s?s:z,F=tt(R)-tt(W),v=j+F+mn(W-j,q);H.push(v);let O=y(v),Z=O.getHours()+O.getMinutes()/o+O.getSeconds()/l,le=z/l,I=h.axes[E]._space,ue=B/I;for(;v=he(v+z,e==1?0:3),!(v>A);)if(le>1){let J=tt(he(Z+le,6))%24,ne=y(v).getHours()-J;ne>1&&(ne=-1),v-=ne*l,Z=(Z+le)%24;let fe=H[H.length-1];he((v-fe)/z,3)*ue>=.7&&H.push(v)}else H.push(v)}return H}}return[m,g,_]}const[Ur,Kr,jr]=$o(1),[qr,$r,Jr]=$o(.001);ql(2,-53,53,[1]);function wo(e,n){return e.map(o=>o.map((l,s)=>s==0||s==8||l==null?l:n(s==1||o[8]==0?l:o[1]+l)))}function So(e,n){return(o,l,s,a,u)=>{let d=n.find(R=>u>=R[0])||n[n.length-1],m,g,_,y,h,E;return l.map(R=>{let A=e(R),z=A.getFullYear(),B=A.getMonth(),H=A.getDate(),x=A.getHours(),C=A.getMinutes(),D=A.getSeconds(),W=z!=m&&d[2]||B!=g&&d[3]||H!=_&&d[4]||x!=y&&d[5]||C!=h&&d[6]||D!=E&&d[7]||d[1];return m=z,g=B,_=H,y=x,h=C,E=D,W(A)})}}function Zr(e,n){let o=ci(n);return(l,s,a,u,d)=>s.map(m=>o(e(m)))}function Yn(e,n,o){return new Date(e,n,o)}function _o(e,n){return n(e)}const Qr="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function yo(e,n){return(o,l,s,a)=>a==null?ii:n(e(l))}function Xr(e,n){let o=e.series[n];return o.width?o.stroke(e,n):o.points.width?o.points.stroke(e,n):null}function ef(e,n){return e.series[n].fill(e,n)}const tf={show:!0,live:!0,isolate:!1,mount:yr,markers:{show:!0,width:2,stroke:Xr,fill:ef,dash:"solid"},idx:null,idxs:null,values:[]};function lf(e,n){let o=e.cursor.points,l=ct(),s=o.size(e,n);ge(l,Bl,s),ge(l,Yl,s);let a=s/-2;ge(l,"marginLeft",a),ge(l,"marginTop",a);let u=o.width(e,n,s);return u&&ge(l,"borderWidth",u),l}function nf(e,n){let o=e.series[n].points;return o._fill||o._stroke}function of(e,n){let o=e.series[n].points;return o._stroke||o._fill}function sf(e,n){return e.series[n].points.size}const Un=[0,0];function rf(e,n,o){return Un[0]=n,Un[1]=o,Un}function fn(e,n,o,l=!0){return s=>{s.button==0&&(!l||s.target==n)&&o(s)}}function Kn(e,n,o,l=!0){return s=>{(!l||s.target==n)&&o(s)}}const ff={show:!0,x:!0,y:!0,lock:!1,move:rf,points:{one:!1,show:lf,size:sf,width:0,stroke:of,fill:nf},bind:{mousedown:fn,mouseup:fn,click:fn,dblclick:fn,mousemove:Kn,mouseleave:Kn,mouseenter:Kn},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(e,n)=>{n.stopPropagation(),n.stopImmediatePropagation()},_x:!1,_y:!1},focus:{dist:(e,n,o,l,s)=>l-s,prox:-1,bias:0},hover:{skip:[void 0],prox:null,bias:0},left:-10,top:-10,idx:null,dataIdx:null,idxs:null,event:null},Jo={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},hi=be({},Jo,{filter:Fo}),Zo=be({},hi,{size:10}),Qo=be({},Jo,{show:!1}),pi='12px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',Xo="bold "+pi,es=1.5,ko={show:!0,scale:"x",stroke:ni,space:50,gap:5,size:50,labelGap:0,labelSize:30,labelFont:Xo,side:2,grid:hi,ticks:Zo,border:Qo,font:pi,lineGap:es,rotate:0},uf="Value",cf="Time",vo={show:!0,scale:"x",auto:!1,sorted:1,min:ee,max:-ee,idxs:[]};function af(e,n,o,l,s){return n.map(a=>a==null?"":fi(a))}function hf(e,n,o,l,s,a,u){let d=[],m=Bt.get(s)||0;o=u?o:he(mn(o,s),m);for(let g=o;g<=l;g=he(g+s,m))d.push(Object.is(g,-0)?0:g);return d}function Qn(e,n,o,l,s,a,u){const d=[],m=e.scales[e.axes[n].scale].log,g=m==10?At:Vo,_=tt(g(o));s=bl(m,_),m==10&&(s=Qt[St(s,Qt)]);let y=o,h=s*m;m==10&&(h=Qt[St(h,Qt)]);do d.push(y),y=y+s,m==10&&!Bt.has(y)&&(y=he(y,Bt.get(s))),y>=h&&(s=y,h=s*m,m==10&&(h=Qt[St(h,Qt)]));while(y<=l);return d}function pf(e,n,o,l,s,a,u){let m=e.scales[e.axes[n].scale].asinh,g=l>m?Qn(e,n,Oe(m,o),l,s):[m],_=l>=0&&o<=0?[0]:[];return(o<-m?Qn(e,n,Oe(m,-l),-o,s):[m]).reverse().map(h=>-h).concat(_,g)}const ts=/./,mf=/[12357]/,df=/[125]/,xo=/1/,Xn=(e,n,o,l)=>e.map((s,a)=>n==4&&s==0||a%l==0&&o.test(s.toExponential()[s<0?1:0])?s:null);function gf(e,n,o,l,s){let a=e.axes[o],u=a.scale,d=e.scales[u],m=e.valToPos,g=a._space,_=m(10,u),y=m(9,u)-_>=g?ts:m(7,u)-_>=g?mf:m(5,u)-_>=g?df:xo;if(y==xo){let h=Ae(m(1,u)-_);if(hs,To={show:!0,auto:!0,sorted:0,gaps:ls,alpha:1,facets:[be({},bo,{scale:"x"}),be({},bo,{scale:"y"})]},Eo={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:ls,alpha:1,points:{show:yf,filter:null},values:null,min:ee,max:-ee,idxs:[],path:null,clip:null};function kf(e,n,o,l,s){return o/10}const ns={time:!0,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},vf=be({},ns,{time:!1,ori:1}),Ao={};function is(e,n){let o=Ao[e];return o||(o={key:e,plots:[],sub(l){o.plots.push(l)},unsub(l){o.plots=o.plots.filter(s=>s!=l)},pub(l,s,a,u,d,m,g){for(let _=0;_{let B=u.pxRound;const H=g.dir*(g.ori==0?1:-1),x=g.ori==0?Ll:Pl;let C,D;H==1?(C=o,D=l):(C=l,D=o);let W=B(y(d[C],g,A,E)),P=B(h(m[C],_,z,R)),j=B(y(d[D],g,A,E)),q=B(h(a==1?_.max:_.min,_,z,R)),F=new Path2D(s);return x(F,j,q),x(F,W,q),x(F,W,P),F})}function gn(e,n,o,l,s,a){let u=null;if(e.length>0){u=new Path2D;const d=n==0?_n:gi;let m=o;for(let y=0;yh[0]){let E=h[0]-m;E>0&&d(u,m,l,E,l+a),m=h[1]}}let g=o+s-m,_=10;g>0&&d(u,m,l-_/2,g,l+a+_)}return u}function Mf(e,n,o){let l=e[e.length-1];l&&l[0]==n?l[1]=o:e.push([n,o])}function di(e,n,o,l,s,a,u){let d=[],m=e.length;for(let g=s==1?o:l;g>=o&&g<=l;g+=s)if(n[g]===null){let y=g,h=g;if(s==1)for(;++g<=l&&n[g]===null;)h=g;else for(;--g>=o&&n[g]===null;)h=g;let E=a(e[y]),R=h==y?E:a(e[h]),A=y-s;E=u<=0&&A>=0&&A=0&&B>=0&&B=E&&d.push([E,R])}return d}function Do(e){return e==0?zo:e==1?Ee:n=>Zt(n,e)}function os(e){let n=e==0?wn:Sn,o=e==0?(s,a,u,d,m,g)=>{s.arcTo(a,u,d,m,g)}:(s,a,u,d,m,g)=>{s.arcTo(u,a,m,d,g)},l=e==0?(s,a,u,d,m)=>{s.rect(a,u,d,m)}:(s,a,u,d,m)=>{s.rect(u,a,m,d)};return(s,a,u,d,m,g=0,_=0)=>{g==0&&_==0?l(s,a,u,d,m):(g=ht(g,d/2,m/2),_=ht(_,d/2,m/2),n(s,a+g,u),o(s,a+d,u,a+d,u+m,g),o(s,a+d,u+m,a,u+m,_),o(s,a,u+m,a,u,_),o(s,a,u,a+d,u,g),s.closePath())}}const wn=(e,n,o)=>{e.moveTo(n,o)},Sn=(e,n,o)=>{e.moveTo(o,n)},Ll=(e,n,o)=>{e.lineTo(n,o)},Pl=(e,n,o)=>{e.lineTo(o,n)},_n=os(0),gi=os(1),ss=(e,n,o,l,s,a)=>{e.arc(n,o,l,s,a)},rs=(e,n,o,l,s,a)=>{e.arc(o,n,l,s,a)},fs=(e,n,o,l,s,a,u)=>{e.bezierCurveTo(n,o,l,s,a,u)},us=(e,n,o,l,s,a,u)=>{e.bezierCurveTo(o,n,s,l,u,a)};function cs(e){return(n,o,l,s,a)=>ll(n,o,(u,d,m,g,_,y,h,E,R,A,z)=>{let{pxRound:B,points:H}=u,x,C;g.ori==0?(x=wn,C=ss):(x=Sn,C=rs);const D=he(H.width*se,3);let W=(H.size-H.width)/2*se,P=he(W*2,3),j=new Path2D,q=new Path2D,{left:F,top:v,width:O,height:Z}=n.bbox;_n(q,F-P,v-P,O+P*2,Z+P*2);const le=I=>{if(m[I]!=null){let ue=B(y(d[I],g,A,E)),J=B(h(m[I],_,z,R));x(j,ue+W,J),C(j,ue,J,W,0,un*2)}};if(a)a.forEach(le);else for(let I=l;I<=s;I++)le(I);return{stroke:D>0?j:null,fill:j,clip:q,flags:Al|ei}})}function as(e){return(n,o,l,s,a,u)=>{l!=s&&(a!=l&&u!=l&&e(n,o,l),a!=s&&u!=s&&e(n,o,s),e(n,o,u))}}const bf=as(Ll),Tf=as(Pl);function hs(e){const n=oe(e==null?void 0:e.alignGaps,0);return(o,l,s,a)=>ll(o,l,(u,d,m,g,_,y,h,E,R,A,z)=>{let B=u.pxRound,H=V=>B(y(V,g,A,E)),x=V=>B(h(V,_,z,R)),C,D;g.ori==0?(C=Ll,D=bf):(C=Pl,D=Tf);const W=g.dir*(g.ori==0?1:-1),P={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Al},j=P.stroke;let q=ee,F=-ee,v,O,Z,le=H(d[W==1?s:a]),I=Ml(m,s,a,1*W),ue=Ml(m,s,a,-1*W),J=H(d[I]),Ue=H(d[ue]),ve=!1;for(let V=W==1?s:a;V>=s&&V<=a;V+=W){let Se=H(d[V]),ie=m[V];Se==le?ie!=null?(O=x(ie),q==ee&&(C(j,Se,O),v=O),q=ht(O,q),F=Oe(O,F)):ie===null&&(ve=!0):(q!=ee&&(D(j,le,q,F,v,O),Z=le),ie!=null?(O=x(ie),C(j,Se,O),q=F=v=O):(q=ee,F=-ee,ie===null&&(ve=!0)),le=Se)}q!=ee&&q!=F&&Z!=le&&D(j,le,q,F,v,O);let[ne,fe]=mi(o,l);if(u.fill!=null||ne!=0){let V=P.fill=new Path2D(j),Se=u.fillTo(o,l,u.min,u.max,ne),ie=x(Se);C(V,Ue,ie),C(V,J,ie)}if(!u.spanGaps){let V=[];ve&&V.push(...di(d,m,s,a,W,H,n)),P.gaps=V=u.gaps(o,l,s,a,V),P.clip=gn(V,g.ori,E,R,A,z)}return fe!=0&&(P.band=fe==2?[Dt(o,l,s,a,j,-1),Dt(o,l,s,a,j,1)]:Dt(o,l,s,a,j,fe)),P})}function Ef(e){const n=oe(e.align,1),o=oe(e.ascDesc,!1),l=oe(e.alignGaps,0),s=oe(e.extend,!1);return(a,u,d,m)=>ll(a,u,(g,_,y,h,E,R,A,z,B,H,x)=>{let C=g.pxRound,{left:D,width:W}=a.bbox,P=ne=>C(R(ne,h,H,z)),j=ne=>C(A(ne,E,x,B)),q=h.ori==0?Ll:Pl;const F={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Al},v=F.stroke,O=h.dir*(h.ori==0?1:-1);d=Ml(y,d,m,1),m=Ml(y,d,m,-1);let Z=j(y[O==1?d:m]),le=P(_[O==1?d:m]),I=le,ue=le;s&&n==-1&&(ue=D,q(v,ue,Z)),q(v,le,Z);for(let ne=O==1?d:m;ne>=d&&ne<=m;ne+=O){let fe=y[ne];if(fe==null)continue;let V=P(_[ne]),Se=j(fe);n==1?q(v,V,Z):q(v,I,Se),q(v,V,Se),Z=Se,I=V}let J=I;s&&n==1&&(J=D+W,q(v,J,Z));let[Ue,ve]=mi(a,u);if(g.fill!=null||Ue!=0){let ne=F.fill=new Path2D(v),fe=g.fillTo(a,u,g.min,g.max,Ue),V=j(fe);q(ne,J,V),q(ne,ue,V)}if(!g.spanGaps){let ne=[];ne.push(...di(_,y,d,m,O,P,l));let fe=g.width*se/2,V=o||n==1?fe:-fe,Se=o||n==-1?-fe:fe;ne.forEach(ie=>{ie[0]+=V,ie[1]+=Se}),F.gaps=ne=g.gaps(a,u,d,m,ne),F.clip=gn(ne,h.ori,z,B,H,x)}return ve!=0&&(F.band=ve==2?[Dt(a,u,d,m,v,-1),Dt(a,u,d,m,v,1)]:Dt(a,u,d,m,v,ve)),F})}function Lo(e,n,o,l,s,a,u=ee){if(e.length>1){let d=null;for(let m=0,g=1/0;m{}),{fill:y,stroke:h}=g;return(E,R,A,z)=>ll(E,R,(B,H,x,C,D,W,P,j,q,F,v)=>{let O=B.pxRound,Z=o,le=l*se,I=d*se,ue=m*se,J,Ue;C.ori==0?[J,Ue]=a(E,R):[Ue,J]=a(E,R);const ve=C.dir*(C.ori==0?1:-1);let ne=C.ori==0?_n:gi,fe=C.ori==0?_:(U,We,Ct,Ut,Rt,$e,pt)=>{_(U,We,Ct,Rt,Ut,pt,$e)},V=oe(E.bands,ui).find(U=>U.series[0]==R),Se=V!=null?V.dir:0,ie=B.fillTo(E,R,B.min,B.max,Se),Ke=O(P(ie,D,v,q)),Cl,Te,je,nt=F,ye=O(B.width*se),qe=!1,Lt=null,nl=null,Yt=null,il=null;y!=null&&(ye==0||h!=null)&&(qe=!0,Lt=y.values(E,R,A,z),nl=new Map,new Set(Lt).forEach(U=>{U!=null&&nl.set(U,new Path2D)}),ye>0&&(Yt=h.values(E,R,A,z),il=new Map,new Set(Yt).forEach(U=>{U!=null&&il.set(U,new Path2D)})));let{x0:Rl,size:bt}=g;if(Rl!=null&&bt!=null){Z=1,H=Rl.values(E,R,A,z),Rl.unit==2&&(H=H.map(Ct=>E.posToVal(j+Ct*F,C.key,!0)));let U=bt.values(E,R,A,z);bt.unit==2?Te=U[0]*F:Te=W(U[0],C,F,j)-W(0,C,F,j),nt=Lo(H,x,W,C,F,j,nt),je=nt-Te+le}else nt=Lo(H,x,W,C,F,j,nt),je=nt*u+le,Te=nt-je;je<1&&(je=0),ye>=Te/2&&(ye=0),je<5&&(O=zo);let it=je>0,$l=nt-je-(it?ye:0);Te=O(Zn($l,ue,I)),Cl=(Z==0?Te/2:Z==ve?0:Te)-Z*ve*((Z==0?le/2:0)+(it?ye/2:0));const _t={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},Pt=qe?null:new Path2D;let Y=null;if(V!=null)Y=E.data[V.series[1]];else{let{y0:U,y1:We}=g;U!=null&&We!=null&&(x=We.values(E,R,A,z),Y=U.values(E,R,A,z))}let $=J*Te,Ne=Ue*Te;for(let U=ve==1?A:z;U>=A&&U<=z;U+=ve){let We=x[U];if(We==null)continue;if(Y!=null){let yt=Y[U]??0;if(We-yt==0)continue;Ke=P(yt,D,v,q)}let Ct=C.distr!=2||g!=null?H[U]:U,Ut=W(Ct,C,F,j),Rt=P(oe(We,ie),D,v,q),$e=O(Ut-Cl),pt=O(Oe(Rt,Ke)),Qe=O(ht(Rt,Ke)),ot=pt-Qe;if(We!=null){let yt=We<0?Ne:$,Vt=We<0?$:Ne;qe?(ye>0&&Yt[U]!=null&&ne(il.get(Yt[U]),$e,Qe+tt(ye/2),Te,Oe(0,ot-ye),yt,Vt),Lt[U]!=null&&ne(nl.get(Lt[U]),$e,Qe+tt(ye/2),Te,Oe(0,ot-ye),yt,Vt)):ne(Pt,$e,Qe+tt(ye/2),Te,Oe(0,ot-ye),yt,Vt),fe(E,R,U,$e-ye/2,Qe,Te+ye,ot)}}return ye>0?_t.stroke=qe?il:Pt:qe||(_t._fill=B.width==0?B._fill:B._stroke??B._fill,_t.width=0),_t.fill=qe?nl:Pt,_t})}function Df(e,n){const o=oe(n==null?void 0:n.alignGaps,0);return(l,s,a,u)=>ll(l,s,(d,m,g,_,y,h,E,R,A,z,B)=>{let H=d.pxRound,x=J=>H(h(J,_,z,R)),C=J=>H(E(J,y,B,A)),D,W,P;_.ori==0?(D=wn,P=Ll,W=fs):(D=Sn,P=Pl,W=us);const j=_.dir*(_.ori==0?1:-1);a=Ml(g,a,u,1),u=Ml(g,a,u,-1);let q=x(m[j==1?a:u]),F=q,v=[],O=[];for(let J=j==1?a:u;J>=a&&J<=u;J+=j)if(g[J]!=null){let ve=m[J],ne=x(ve);v.push(F=ne),O.push(C(g[J]))}const Z={stroke:e(v,O,D,P,W,H),fill:null,clip:null,band:null,gaps:null,flags:Al},le=Z.stroke;let[I,ue]=mi(l,s);if(d.fill!=null||I!=0){let J=Z.fill=new Path2D(le),Ue=d.fillTo(l,s,d.min,d.max,I),ve=C(Ue);P(J,F,ve),P(J,q,ve)}if(!d.spanGaps){let J=[];J.push(...di(m,g,a,u,j,x,o)),Z.gaps=J=d.gaps(l,s,a,u,J),Z.clip=gn(J,_.ori,R,A,z,B)}return ue!=0&&(Z.band=ue==2?[Dt(l,s,a,u,le,-1),Dt(l,s,a,u,le,1)]:Dt(l,s,a,u,le,ue)),Z})}function Lf(e){return Df(Pf,e)}function Pf(e,n,o,l,s,a){const u=e.length;if(u<2)return null;const d=new Path2D;if(o(d,e[0],n[0]),u==2)l(d,e[1],n[1]);else{let m=Array(u),g=Array(u-1),_=Array(u-1),y=Array(u-1);for(let h=0;h0!=g[h]>0?m[h]=0:(m[h]=3*(y[h-1]+y[h])/((2*y[h]+y[h-1])/g[h-1]+(y[h]+2*y[h-1])/g[h]),isFinite(m[h])||(m[h]=0));m[u-1]=g[u-2];for(let h=0;h{Ye.pxRatio=se}));const Cf=hs(),Rf=cs();function Co(e,n,o,l){return(l?[e[0],e[1]].concat(e.slice(2)):[e[0]].concat(e.slice(1))).map((a,u)=>li(a,u,n,o))}function Vf(e,n){return e.map((o,l)=>l==0?{}:be({},n,o))}function li(e,n,o,l){return be({},n==0?o:l,e)}function ps(e,n,o){return n==null?Tl:[n,o]}const zf=ps;function Ff(e,n,o){return n==null?Tl:an(n,o,ri,!0)}function ms(e,n,o,l){return n==null?Tl:pn(n,o,e.scales[l].log,!1)}const Nf=ms;function ds(e,n,o,l){return n==null?Tl:si(n,o,e.scales[l].log,!1)}const Hf=ds;function Of(e,n,o,l,s){let a=Oe(uo(e),uo(n)),u=n-e,d=St(s/l*u,o);do{let m=o[d],g=l*m/u;if(g>=s&&a+(m<5?Bt.get(m):0)<=17)return[m,g]}while(++d(n=Ee((o=+s)*se))+"px"),[e,n,o]}function Wf(e){e.show&&[e.font,e.labelFont].forEach(n=>{let o=he(n[2]*se,1);n[0]=n[0].replace(/[0-9.]+px/,o+"px"),n[1]=o})}function Ye(e,n,o){const l={mode:oe(e.mode,1)},s=l.mode;function a(t,i){return((i.distr==3?At(t>0?t:i.clamp(l,t,i.min,i.max,i.key)):i.distr==4?Bn(t,i.asinh):i.distr==100?i.fwd(t):t)-i._min)/(i._max-i._min)}function u(t,i,r,f){let c=a(t,i);return f+r*(i.dir==-1?1-c:c)}function d(t,i,r,f){let c=a(t,i);return f+r*(i.dir==-1?c:1-c)}function m(t,i,r,f){return i.ori==0?u(t,i,r,f):d(t,i,r,f)}l.valToPosH=u,l.valToPosV=d;let g=!1;l.status=0;const _=l.root=ct(Ks);if(e.id!=null&&(_.id=e.id),et(_,e.class),e.title){let t=ct($s,_);t.textContent=e.title}const y=wt("canvas"),h=l.ctx=y.getContext("2d"),E=ct(Js,_);el("click",E,t=>{t.target===A&&(pe!=dl||we!=gl)&&Fe.click(l,t)},!0);const R=l.under=ct(Zs,E);E.appendChild(y);const A=l.over=ct(Qs,E);e=El(e);const z=+oe(e.pxAlign,1),B=Do(z);(e.plugins||[]).forEach(t=>{t.opts&&(e=t.opts(l,e)||e)});const H=e.ms||.001,x=l.series=s==1?Co(e.series||[],vo,Eo,!1):Vf(e.series||[null],To),C=l.axes=Co(e.axes||[],ko,Mo,!0),D=l.scales={},W=l.bands=e.bands||[];W.forEach(t=>{t.fill=X(t.fill||null),t.dir=oe(t.dir,-1)});const P=s==2?x[1].facets[0].scale:x[0].scale,j={axes:Ps,series:Ts},q=(e.drawOrder||["axes","series"]).map(t=>j[t]);function F(t){let i=D[t];if(i==null){let r=(e.scales||jl)[t]||jl;if(r.from!=null)F(r.from),D[t]=be({},D[r.from],r,{key:t});else{i=D[t]=be({},t==P?ns:vf,r),i.key=t;let f=i.time,c=i.range,p=It(c);if((t!=P||s==2&&!f)&&(p&&(c[0]==null||c[1]==null)&&(c={min:c[0]==null?so:{mode:1,hard:c[0],soft:c[0]},max:c[1]==null?so:{mode:1,hard:c[1],soft:c[1]}},p=!1),!p&&dn(c))){let w=c;c=(S,k,M)=>k==null?Tl:an(k,M,w)}i.range=X(c||(f?zf:t==P?i.distr==3?Nf:i.distr==4?Hf:ps:i.distr==3?ms:i.distr==4?ds:Ff)),i.auto=X(p?!1:i.auto),i.clamp=X(i.clamp||kf),i._min=i._max=null}}}F("x"),F("y"),s==1&&x.forEach(t=>{F(t.scale)}),C.forEach(t=>{F(t.scale)});for(let t in e.scales)F(t);const v=D[P],O=v.distr;let Z,le;v.ori==0?(et(_,js),Z=u,le=d):(et(_,qs),Z=d,le=u);const I={};for(let t in D){let i=D[t];(i.min!=null||i.max!=null)&&(I[t]={min:i.min,max:i.max},i.min=i.max=null)}const ue=e.tzDate||(t=>new Date(Ee(t/H))),J=e.fmtDate||ci,Ue=H==1?jr(ue):Jr(ue),ve=So(ue,wo(H==1?Kr:$r,J)),ne=yo(ue,_o(Qr,J)),fe=[],V=l.legend=be({},tf,e.legend),Se=V.show,ie=V.markers;V.idxs=fe,ie.width=X(ie.width),ie.dash=X(ie.dash),ie.stroke=X(ie.stroke),ie.fill=X(ie.fill);let Ke,Cl,Te,je=[],nt=[],ye,qe=!1,Lt={};if(V.live){const t=x[1]?x[1].values:null;qe=t!=null,ye=qe?t(l,1,0):{_:0};for(let i in ye)Lt[i]=ii}if(Se)if(Ke=wt("table",ir,_),Te=wt("tbody",null,Ke),V.mount(l,Ke),qe){Cl=wt("thead",null,Ke,Te);let t=wt("tr",null,Cl);wt("th",null,t);for(var nl in ye)wt("th",Ki,t).textContent=nl}else et(Ke,sr),V.live&&et(Ke,or);const Yt={show:!0},il={show:!1};function Rl(t,i){if(i==0&&(qe||!V.live||s==2))return Tl;let r=[],f=wt("tr",rr,Te,Te.childNodes[i]);et(f,t.class),t.show||et(f,Xt);let c=wt("th",null,f);if(ie.show){let S=ct(fr,c);if(i>0){let k=ie.width(l,i);k&&(S.style.border=k+"px "+ie.dash(l,i)+" "+ie.stroke(l,i)),S.style.background=ie.fill(l,i)}}let p=ct(Ki,c);p.textContent=t.label,i>0&&(ie.show||(p.style.color=t.width>0?ie.stroke(l,i):ie.fill(l,i)),it("click",c,S=>{if(N._lock)return;jt(S);let k=x.indexOf(t);if((S.ctrlKey||S.metaKey)!=V.isolate){let M=x.some((b,T)=>T>0&&T!=k&&b.show);x.forEach((b,T)=>{T>0&&kt(T,M?T==k?Yt:il:Yt,!0,xe.setSeries)})}else kt(k,{show:!t.show},!0,xe.setSeries)},!1),sl&&it(Zi,c,S=>{N._lock||(jt(S),kt(x.indexOf(t),Sl,!0,xe.setSeries))},!1));for(var w in ye){let S=wt("td",ur,f);S.textContent="--",r.push(S)}return[f,r]}const bt=new Map;function it(t,i,r,f=!0){const c=bt.get(i)||{},p=N.bind[t](l,i,r,f);p&&(el(t,i,c[t]=p),bt.set(i,c))}function $l(t,i,r){const f=bt.get(i)||{};for(let c in f)(t==null||c==t)&&(Jn(c,i,f[c]),delete f[c]);t==null&&bt.delete(i)}let _t=0,Pt=0,Y=0,$=0,Ne=0,U=0,We=Ne,Ct=U,Ut=Y,Rt=$,$e=0,pt=0,Qe=0,ot=0;l.bbox={};let yt=!1,Vt=!1,ol=!1,Kt=!1,Jl=!1,st=!1;function yn(t,i,r){(r||t!=l.width||i!=l.height)&&wi(t,i),al(!1),ol=!0,Vt=!0,hl()}function wi(t,i){l.width=_t=Y=t,l.height=Pt=$=i,Ne=U=0,_s(),ys();let r=l.bbox;$e=r.left=Zt(Ne*se,.5),pt=r.top=Zt(U*se,.5),Qe=r.width=Zt(Y*se,.5),ot=r.height=Zt($*se,.5)}const gs=3;function ws(){let t=!1,i=0;for(;!t;){i++;let r=Ds(i),f=Ls(i);t=i==gs||r&&f,t||(wi(l.width,l.height),Vt=!0)}}function Ss({width:t,height:i}){yn(t,i)}l.setSize=Ss;function _s(){let t=!1,i=!1,r=!1,f=!1;C.forEach((c,p)=>{if(c.show&&c._show){let{side:w,_size:S}=c,k=w%2,M=c.label!=null?c.labelSize:0,b=S+M;b>0&&(k?(Y-=b,w==3?(Ne+=b,f=!0):r=!0):($-=b,w==0?(U+=b,t=!0):i=!0))}}),qt[0]=t,qt[1]=r,qt[2]=i,qt[3]=f,Y-=Ft[1]+Ft[3],Ne+=Ft[3],$-=Ft[2]+Ft[0],U+=Ft[0]}function ys(){let t=Ne+Y,i=U+$,r=Ne,f=U;function c(p,w){switch(p){case 1:return t+=w,t-w;case 2:return i+=w,i-w;case 3:return r-=w,r+w;case 0:return f-=w,f+w}}C.forEach((p,w)=>{if(p.show&&p._show){let S=p.side;p._pos=c(S,p._size),p.label!=null&&(p._lpos=c(S,p.labelSize))}})}const N=l.cursor=be({},ff,{drag:{y:s==2}},e.cursor);if(N.dataIdx==null){let t=N.hover,i=t.skip=new Set(t.skip??[]);i.add(void 0);let r=t.prox=X(t.prox),f=t.bias??(t.bias=0);N.dataIdx=(c,p,w,S)=>{if(p==0)return w;let k=w,M=r(c,p,w,S)??ee,b=M>=0&&M0;)i.has(te[L])||(Q=L);if(f==0||f==1)for(L=w;K==null&&L++M&&(k=null);return k}}const jt=t=>{N.event=t};N.idxs=fe,N._lock=!1;let He=N.points;He.show=X(He.show),He.size=X(He.size),He.stroke=X(He.stroke),He.width=X(He.width),He.fill=X(He.fill);const zt=l.focus=be({},e.focus||{alpha:.3},N.focus),sl=zt.prox>=0,rl=sl&&He.one;let rt=[],fl=[],ul=[];function Si(t,i){let r=He.show(l,i);if(r)return et(r,nr),et(r,t.class),Mt(r,-10,-10,Y,$),A.insertBefore(r,rt[i]),r}function _i(t,i){if(s==1||i>0){let r=s==1&&D[t.scale].time,f=t.value;t.value=r?ho(f)?yo(ue,_o(f,J)):f||ne:f||Sf,t.label=t.label||(r?cf:uf)}if(rl||i>0){t.width=t.width==null?1:t.width,t.paths=t.paths||Cf||kr,t.fillTo=X(t.fillTo||xf),t.pxAlign=+oe(t.pxAlign,z),t.pxRound=Do(t.pxAlign),t.stroke=X(t.stroke||null),t.fill=X(t.fill||null),t._stroke=t._fill=t._paths=t._focus=null;let r=_f(Oe(1,t.width),1),f=t.points=be({},{size:r,width:Oe(1,r*.2),stroke:t.stroke,space:r*2,paths:Rf,_stroke:null,_fill:null},t.points);f.show=X(f.show),f.filter=X(f.filter),f.fill=X(f.fill),f.stroke=X(f.stroke),f.paths=X(f.paths),f.pxAlign=t.pxAlign}if(Se){let r=Rl(t,i);je.splice(i,0,r[0]),nt.splice(i,0,r[1]),V.values.push(null)}if(N.show){fe.splice(i,0,null);let r=null;rl?i==0&&(r=Si(t,i)):i>0&&(r=Si(t,i)),rt.splice(i,0,r),fl.splice(i,0,0),ul.splice(i,0,0)}Ve("addSeries",i)}function ks(t,i){i=i??x.length,t=s==1?li(t,i,vo,Eo):li(t,i,{},To),x.splice(i,0,t),_i(x[i],i)}l.addSeries=ks;function vs(t){if(x.splice(t,1),Se){V.values.splice(t,1),nt.splice(t,1);let i=je.splice(t,1)[0];$l(null,i.firstChild),i.remove()}N.show&&(fe.splice(t,1),rt.splice(t,1)[0].remove(),fl.splice(t,1),ul.splice(t,1)),Ve("delSeries",t)}l.delSeries=vs;const qt=[!1,!1,!1,!1];function xs(t,i){if(t._show=t.show,t.show){let r=t.side%2,f=D[t.scale];f==null&&(t.scale=r?x[1].scale:P,f=D[t.scale]);let c=f.time;t.size=X(t.size),t.space=X(t.space),t.rotate=X(t.rotate),It(t.incrs)&&t.incrs.forEach(w=>{!Bt.has(w)&&Bt.set(w,Ho(w))}),t.incrs=X(t.incrs||(f.distr==2?Br:c?H==1?Ur:qr:Qt)),t.splits=X(t.splits||(c&&f.distr==1?Ue:f.distr==3?Qn:f.distr==4?pf:hf)),t.stroke=X(t.stroke),t.grid.stroke=X(t.grid.stroke),t.ticks.stroke=X(t.ticks.stroke),t.border.stroke=X(t.border.stroke);let p=t.values;t.values=It(p)&&!It(p[0])?X(p):c?It(p)?So(ue,wo(p,J)):ho(p)?Zr(ue,p):p||ve:p||af,t.filter=X(t.filter||(f.distr>=3&&f.log==10?gf:f.distr==3&&f.log==2?wf:Fo)),t.font=Ro(t.font),t.labelFont=Ro(t.labelFont),t._size=t.size(l,null,i,0),t._space=t._rotate=t._incrs=t._found=t._splits=t._values=null,t._size>0&&(qt[i]=!0,t._el=ct(Xs,E))}}function Vl(t,i,r,f){let[c,p,w,S]=r,k=i%2,M=0;return k==0&&(S||p)&&(M=i==0&&!c||i==2&&!w?Ee(ko.size/3):0),k==1&&(c||w)&&(M=i==1&&!p||i==3&&!S?Ee(Mo.size/2):0),M}const yi=l.padding=(e.padding||[Vl,Vl,Vl,Vl]).map(t=>X(oe(t,Vl))),Ft=l._padding=yi.map((t,i)=>t(l,i,qt,0));let ze,Le=null,Pe=null;const Zl=s==1?x[0].idxs:null;let mt=null,zl=!1;function ki(t,i){if(n=t??[],l.data=l._data=n,s==2){ze=0;for(let r=1;r=0,st=!0,hl()}}l.setData=ki;function kn(){zl=!0;let t,i;s==1&&(ze>0?(Le=Zl[0]=0,Pe=Zl[1]=ze-1,t=n[0][Le],i=n[0][Pe],O==2?(t=Le,i=Pe):t==i&&(O==3?[t,i]=pn(t,t,v.log,!1):O==4?[t,i]=si(t,t,v.log,!1):v.time?i=t+Ee(86400/H):[t,i]=an(t,i,ri,!0))):(Le=Zl[0]=t=null,Pe=Zl[1]=i=null)),Ht(P,t,i)}let Ql,cl,vn,xn,Mn,bn,Tn,En,An,Tt;function vi(t,i,r,f,c,p){t??(t=qi),r??(r=ui),f??(f="butt"),c??(c=qi),p??(p="round"),t!=Ql&&(h.strokeStyle=Ql=t),c!=cl&&(h.fillStyle=cl=c),i!=vn&&(h.lineWidth=vn=i),p!=Mn&&(h.lineJoin=Mn=p),f!=bn&&(h.lineCap=bn=f),r!=xn&&h.setLineDash(xn=r)}function xi(t,i,r,f){i!=cl&&(h.fillStyle=cl=i),t!=Tn&&(h.font=Tn=t),r!=En&&(h.textAlign=En=r),f!=An&&(h.textBaseline=An=f)}function Dn(t,i,r,f,c=0){if(f.length>0&&t.auto(l,zl)&&(i==null||i.min==null)){let p=oe(Le,0),w=oe(Pe,f.length-1),S=r.min==null?t.distr==3?dr(f,p,w):mr(f,p,w,c):[r.min,r.max];t.min=ht(t.min,r.min=S[0]),t.max=Oe(t.max,r.max=S[1])}}const Mi={min:null,max:null};function Ms(){for(let f in D){let c=D[f];I[f]==null&&(c.min==null||I[P]!=null&&c.auto(l,zl))&&(I[f]=Mi)}for(let f in D){let c=D[f];I[f]==null&&c.from!=null&&I[c.from]!=null&&(I[f]=Mi)}I[P]!=null&&al(!0);let t={};for(let f in I){let c=I[f];if(c!=null){let p=t[f]=El(D[f],Mr);if(c.min!=null)be(p,c);else if(f!=P||s==2)if(ze==0&&p.from==null){let w=p.range(l,null,null,f);p.min=w[0],p.max=w[1]}else p.min=ee,p.max=-ee}}if(ze>0){x.forEach((f,c)=>{if(s==1){let p=f.scale,w=I[p];if(w==null)return;let S=t[p];if(c==0){let k=S.range(l,S.min,S.max,p);S.min=k[0],S.max=k[1],Le=St(S.min,n[0]),Pe=St(S.max,n[0]),Pe-Le>1&&(n[0][Le]S.max&&Pe--),f.min=mt[Le],f.max=mt[Pe]}else f.show&&f.auto&&Dn(S,w,f,n[c],f.sorted);f.idxs[0]=Le,f.idxs[1]=Pe}else if(c>0&&f.show&&f.auto){let[p,w]=f.facets,S=p.scale,k=w.scale,[M,b]=n[c],T=t[S],G=t[k];T!=null&&Dn(T,I[S],p,M,p.sorted),G!=null&&Dn(G,I[k],w,b,w.sorted),f.min=w.min,f.max=w.max}});for(let f in t){let c=t[f],p=I[f];if(c.from==null&&(p==null||p.min==null)){let w=c.range(l,c.min==ee?null:c.min,c.max==-ee?null:c.max,f);c.min=w[0],c.max=w[1]}}}for(let f in t){let c=t[f];if(c.from!=null){let p=t[c.from];if(p.min==null)c.min=c.max=null;else{let w=c.range(l,p.min,p.max,f);c.min=w[0],c.max=w[1]}}}let i={},r=!1;for(let f in t){let c=t[f],p=D[f];if(p.min!=c.min||p.max!=c.max){p.min=c.min,p.max=c.max;let w=p.distr;p._min=w==3?At(p.min):w==4?Bn(p.min,p.asinh):w==100?p.fwd(p.min):p.min,p._max=w==3?At(p.max):w==4?Bn(p.max,p.asinh):w==100?p.fwd(p.max):p.max,i[f]=r=!0}}if(r){x.forEach((f,c)=>{s==2?c>0&&i.y&&(f._paths=null):i[f.scale]&&(f._paths=null)});for(let f in i)ol=!0,Ve("setScale",f);N.show&&N.left>=0&&(Kt=st=!0)}for(let f in I)I[f]=null}function bs(t){let i=Zn(Le-1,0,ze-1),r=Zn(Pe+1,0,ze-1);for(;t[i]==null&&i>0;)i--;for(;t[r]==null&&r0&&(x.forEach((t,i)=>{if(i>0&&t.show&&(bi(i,!1),bi(i,!0),t._paths==null)){Tt!=t.alpha&&(h.globalAlpha=Tt=t.alpha);let r=s==2?[0,n[i][0].length-1]:bs(n[i]);t._paths=t.paths(l,i,r[0],r[1]),Tt!=1&&(h.globalAlpha=Tt=1)}}),x.forEach((t,i)=>{if(i>0&&t.show){Tt!=t.alpha&&(h.globalAlpha=Tt=t.alpha),t._paths!=null&&Ti(i,!1);{let r=t._paths!=null?t._paths.gaps:null,f=t.points.show(l,i,Le,Pe,r),c=t.points.filter(l,i,f,r);(f||c)&&(t.points._paths=t.points.paths(l,i,Le,Pe,c),Ti(i,!0))}Tt!=1&&(h.globalAlpha=Tt=1),Ve("drawSeries",i)}}))}function bi(t,i){let r=i?x[t].points:x[t];r._stroke=r.stroke(l,t),r._fill=r.fill(l,t)}function Ti(t,i){let r=i?x[t].points:x[t],{stroke:f,fill:c,clip:p,flags:w,_stroke:S=r._stroke,_fill:k=r._fill,_width:M=r.width}=r._paths;M=he(M*se,3);let b=null,T=M%2/2;i&&k==null&&(k=M>0?"#fff":S);let G=r.pxAlign==1&&T>0;if(G&&h.translate(T,T),!i){let ae=$e-M/2,te=pt-M/2,Q=Qe+M,K=ot+M;b=new Path2D,b.rect(ae,te,Q,K)}i?Ln(S,M,r.dash,r.cap,k,f,c,w,p):Es(t,S,M,r.dash,r.cap,k,f,c,w,b,p),G&&h.translate(-T,-T)}function Es(t,i,r,f,c,p,w,S,k,M,b){let T=!1;k!=0&&W.forEach((G,ae)=>{if(G.series[0]==t){let te=x[G.series[1]],Q=n[G.series[1]],K=(te._paths||jl).band;It(K)&&(K=G.dir==1?K[0]:K[1]);let L,ce=null;te.show&&K&&wr(Q,Le,Pe)?(ce=G.fill(l,ae)||p,L=te._paths.clip):K=null,Ln(i,r,f,c,ce,w,S,k,M,b,L,K),T=!0}}),T||Ln(i,r,f,c,p,w,S,k,M,b)}const Ei=Al|ei;function Ln(t,i,r,f,c,p,w,S,k,M,b,T){vi(t,i,r,f,c),(k||M||T)&&(h.save(),k&&h.clip(k),M&&h.clip(M)),T?(S&Ei)==Ei?(h.clip(T),b&&h.clip(b),en(c,w),Xl(t,p,i)):S&ei?(en(c,w),h.clip(T),Xl(t,p,i)):S&Al&&(h.save(),h.clip(T),b&&h.clip(b),en(c,w),h.restore(),Xl(t,p,i)):(en(c,w),Xl(t,p,i)),(k||M||T)&&h.restore()}function Xl(t,i,r){r>0&&(i instanceof Map?i.forEach((f,c)=>{h.strokeStyle=Ql=c,h.stroke(f)}):i!=null&&t&&h.stroke(i))}function en(t,i){i instanceof Map?i.forEach((r,f)=>{h.fillStyle=cl=f,h.fill(r)}):i!=null&&t&&h.fill(i)}function As(t,i,r,f){let c=C[t],p;if(f<=0)p=[0,0];else{let w=c._space=c.space(l,t,i,r,f),S=c._incrs=c.incrs(l,t,i,r,f,w);p=Of(i,r,S,f,w)}return c._found=p}function Pn(t,i,r,f,c,p,w,S,k,M){let b=w%2/2;z==1&&h.translate(b,b),vi(S,w,k,M,S),h.beginPath();let T,G,ae,te,Q=c+(f==0||f==3?-p:p);r==0?(G=c,te=Q):(T=c,ae=Q);for(let K=0;K{if(!r.show)return;let c=D[r.scale];if(c.min==null){r._show&&(i=!1,r._show=!1,al(!1));return}else r._show||(i=!1,r._show=!0,al(!1));let p=r.side,w=p%2,{min:S,max:k}=c,[M,b]=As(f,S,k,w==0?Y:$);if(b==0)return;let T=c.distr==2,G=r._splits=r.splits(l,f,S,k,M,b,T),ae=c.distr==2?G.map(L=>mt[L]):G,te=c.distr==2?mt[G[1]]-mt[G[0]]:M,Q=r._values=r.values(l,r.filter(l,ae,f,b,te),f,b,te);r._rotate=p==2?r.rotate(l,Q,f,b):0;let K=r._size;r._size=at(r.size(l,Q,f,t)),K!=null&&r._size!=K&&(i=!1)}),i}function Ls(t){let i=!0;return yi.forEach((r,f)=>{let c=r(l,f,qt,t);c!=Ft[f]&&(i=!1),Ft[f]=c}),i}function Ps(){for(let t=0;tmt[Be]):te,K=b.distr==2?mt[te[1]]-mt[te[0]]:k,L=i.ticks,ce=i.border,ke=L.show?Ee(L.size*se):0,_e=i._rotate*-un/180,de=B(i._pos*se),Me=(ke+ae)*S,Je=de+Me;p=f==0?Je:0,c=f==1?Je:0;let Ze=i.font[0],ft=i.align==1?kl:i.align==2?Gn:_e>0?kl:_e<0?Gn:f==0?"center":r==3?Gn:kl,dt=_e||f==1?"middle":r==2?Gl:ji;xi(Ze,w,ft,dt);let gt=i.font[1]*i.lineGap,Ge=te.map(Be=>B(m(Be,b,T,G))),xt=i._values;for(let Be=0;Be{r>0&&(i._paths=null,t&&(s==1?(i.min=null,i.max=null):i.facets.forEach(f=>{f.min=null,f.max=null})))})}let tn=!1,Cn=!1,Fl=[];function Cs(){Cn=!1;for(let t=0;t0&&queueMicrotask(Cs)}l.batch=Rs;function Ai(){if(yt&&(Ms(),yt=!1),ol&&(ws(),ol=!1),Vt){if(ge(R,kl,Ne),ge(R,Gl,U),ge(R,Bl,Y),ge(R,Yl,$),ge(A,kl,Ne),ge(A,Gl,U),ge(A,Bl,Y),ge(A,Yl,$),ge(E,Bl,_t),ge(E,Yl,Pt),y.width=Ee(_t*se),y.height=Ee(Pt*se),C.forEach(({_el:t,_show:i,_size:r,_pos:f,side:c})=>{if(t!=null)if(i){let p=c===3||c===0?r:0,w=c%2==1;ge(t,w?"left":"top",f-p),ge(t,w?"width":"height",r),ge(t,w?"top":"left",w?U:Ne),ge(t,w?"height":"width",w?$:Y),$n(t,Xt)}else et(t,Xt)}),Ql=cl=vn=Mn=bn=Tn=En=An=xn=null,Tt=1,Ol(!0),Ne!=We||U!=Ct||Y!=Ut||$!=Rt){al(!1);let t=Y/Ut,i=$/Rt;if(N.show&&!Kt&&N.left>=0){N.left*=t,N.top*=i,pl&&Mt(pl,Ee(N.left),0,Y,$),ml&&Mt(ml,0,Ee(N.top),Y,$);for(let r=0;r=0&&me.width>0){me.left*=t,me.width*=t,me.top*=i,me.height*=i;for(let r in Hn)ge(wl,r,me[r])}We=Ne,Ct=U,Ut=Y,Rt=$}Ve("setSize"),Vt=!1}_t>0&&Pt>0&&(h.clearRect(0,0,y.width,y.height),Ve("drawClear"),q.forEach(t=>t()),Ve("draw")),me.show&&Jl&&(ln(me),Jl=!1),N.show&&Kt&&(Jt(null,!0,!1),Kt=!1),V.show&&V.live&&st&&(Fn(),st=!1),g||(g=!0,l.status=1,Ve("ready")),zl=!1,tn=!1}l.redraw=(t,i)=>{ol=i||!1,t!==!1?Ht(P,v.min,v.max):hl()};function Rn(t,i){let r=D[t];if(r.from==null){if(ze==0){let f=r.range(l,i.min,i.max,t);i.min=f[0],i.max=f[1]}if(i.min>i.max){let f=i.min;i.min=i.max,i.max=f}if(ze>1&&i.min!=null&&i.max!=null&&i.max-i.min<1e-16)return;t==P&&r.distr==2&&ze>0&&(i.min=St(i.min,n[0]),i.max=St(i.max,n[0]),i.min==i.max&&i.max++),I[t]=i,yt=!0,hl()}}l.setScale=Rn;let Vn,zn,pl,ml,Di,Li,dl,gl,Pi,Ci,pe,we,Nt=!1;const Fe=N.drag;let Ce=Fe.x,Re=Fe.y;N.show&&(N.x&&(Vn=ct(tr,A)),N.y&&(zn=ct(lr,A)),v.ori==0?(pl=Vn,ml=zn):(pl=zn,ml=Vn),pe=N.left,we=N.top);const me=l.select=be({show:!0,over:!0,left:0,width:0,top:0,height:0},e.select),wl=me.show?ct(er,me.over?A:R):null;function ln(t,i){if(me.show){for(let r in t)me[r]=t[r],r in Hn&&ge(wl,r,t[r]);i!==!1&&Ve("setSelect")}}l.setSelect=ln;function Vs(t,i){let r=x[t],f=Se?je[t]:null;if(r.show)f&&$n(f,Xt);else{f&&et(f,Xt);let c=rl?rt[0]:rt[t];Mt(c,-10,-10,Y,$)}}function Ht(t,i,r){Rn(t,{min:i,max:r})}function kt(t,i,r,f){i.focus!=null&&Os(t),i.show!=null&&x.forEach((c,p)=>{p>0&&(t==p||t==null)&&(c.show=i.show,Vs(p,i.show),s==2?(Ht(c.facets[0].scale,null,null),Ht(c.facets[1].scale,null,null)):Ht(c.scale,null,null),hl())}),r!==!1&&Ve("setSeries",t,i),f&&Wl("setSeries",l,t,i)}l.setSeries=kt;function zs(t,i){be(W[t],i)}function Fs(t,i){t.fill=X(t.fill||null),t.dir=oe(t.dir,-1),i=i??W.length,W.splice(i,0,t)}function Ns(t){t==null?W.length=0:W.splice(t,1)}l.addBand=Fs,l.setBand=zs,l.delBand=Ns;function Hs(t,i){x[t].alpha=i,N.show&&rt[t]&&(rt[t].style.opacity=i),Se&&je[t]&&(je[t].style.opacity=i)}let Et,Ot,$t;const Sl={focus:!0};function Os(t){if(t!=$t){let i=t==null,r=zt.alpha!=1;x.forEach((f,c)=>{if(s==1||c>0){let p=i||c==0||c==t;f._focus=i?null:p,r&&Hs(c,p?1:zt.alpha)}}),$t=t,r&&hl()}}Se&&sl&&it(Qi,Ke,t=>{N._lock||(jt(t),$t!=null&&kt(null,Sl,!0,xe.setSeries))});function vt(t,i,r){let f=D[i];r&&(t=t/se-(f.ori==1?U:Ne));let c=Y;f.ori==1&&(c=$,t=c-t),f.dir==-1&&(t=c-t);let p=f._min,w=f._max,S=t/c,k=p+(w-p)*S,M=f.distr;return M==3?bl(10,k):M==4?_r(k,f.asinh):M==100?f.bwd(k):k}function Ws(t,i){let r=vt(t,P,i);return St(r,n[0],Le,Pe)}l.valToIdx=t=>St(t,n[0]),l.posToIdx=Ws,l.posToVal=vt,l.valToPos=(t,i,r)=>D[i].ori==0?u(t,D[i],r?Qe:Y,r?$e:0):d(t,D[i],r?ot:$,r?pt:0),l.setCursor=(t,i,r)=>{pe=t.left,we=t.top,Jt(null,i,r)};function Ri(t,i){ge(wl,kl,me.left=t),ge(wl,Bl,me.width=i)}function Vi(t,i){ge(wl,Gl,me.top=t),ge(wl,Yl,me.height=i)}let Nl=v.ori==0?Ri:Vi,Hl=v.ori==1?Ri:Vi;function Gs(){if(Se&&V.live)for(let t=s==2?1:0;t{fe[f]=r}):xr(t.idx)||fe.fill(t.idx),V.idx=fe[0]),Se&&V.live){for(let r=0;r0||s==1&&!qe)&&Is(r,fe[r]);Gs()}st=!1,i!==!1&&Ve("setLegend")}l.setLegend=Fn;function Is(t,i){let r=x[t],f=t==0&&O==2?mt:n[t],c;qe?c=r.values(l,t,i)??Lt:(c=r.value(l,i==null?null:f[i],t,i),c=c==null?Lt:{_:c}),V.values[t]=c}function Jt(t,i,r){Pi=pe,Ci=we,[pe,we]=N.move(l,pe,we),N.left=pe,N.top=we,N.show&&(pl&&Mt(pl,Ee(pe),0,Y,$),ml&&Mt(ml,0,Ee(we),Y,$));let f,c=Le>Pe;Et=ee,Ot=null;let p=v.ori==0?Y:$,w=v.ori==1?Y:$;if(pe<0||ze==0||c){f=N.idx=null;for(let S=0;S0&&ce.show){let Ze=Me==null?-10:le(Me,s==1?D[ce.scale]:D[ce.facets[1].scale],w,0);if(sl&&Me!=null){let ft=v.ori==1?pe:we,dt=Ae(zt.dist(l,L,de,Ze,ft));if(dt=0?1:-1,Ie=Ge>=0?1:-1;Ie==xt&&(Ie==1?gt==1?Me>=Ge:Me<=Ge:gt==1?Me<=Ge:Me>=Ge)&&(Et=dt,Ot=L)}else Et=dt,Ot=L}}if(st||rl){let ft,dt;v.ori==0?(ft=Je,dt=Ze):(ft=Ze,dt=Je);let gt,Ge,xt,Ie,Be,Xe,yl=!0,Gt=He.bbox;if(Gt!=null){yl=!1;let ut=Gt(l,L);xt=ut.left,Ie=ut.top,gt=ut.width,Ge=ut.height}else xt=ft,Ie=dt,gt=Ge=He.size(l,L);if(Xe=He.fill(l,L),Be=He.stroke(l,L),rl)L==Ot&&Et<=zt.prox&&(b=xt,T=Ie,G=gt,ae=Ge,te=yl,Q=Xe,K=Be);else{let ut=rt[L];ut!=null&&(fl[L]=xt,ul[L]=Ie,oo(ut,gt,Ge,yl),no(ut,Xe,Be),Mt(ut,at(xt),at(Ie),Y,$))}}}}if(rl){let L=zt.prox,ce=$t==null?Et<=L:Et>L||Ot!=$t;if(st||ce){let ke=rt[0];fl[0]=b,ul[0]=T,oo(ke,G,ae,te),no(ke,Q,K),Mt(ke,at(b),at(T),Y,$)}}}if(me.show&&Nt)if(t!=null){let[S,k]=xe.scales,[M,b]=xe.match,[T,G]=t.cursor.sync.scales,ae=t.cursor.drag;if(Ce=ae._x,Re=ae._y,Ce||Re){let{left:te,top:Q,width:K,height:L}=t.select,ce=t.scales[T].ori,ke=t.posToVal,_e,de,Me,Je,Ze,ft=S!=null&&M(S,T),dt=k!=null&&b(k,G);ft&&Ce?(ce==0?(_e=te,de=K):(_e=Q,de=L),Me=D[S],Je=Z(ke(_e,T),Me,p,0),Ze=Z(ke(_e+de,T),Me,p,0),Nl(ht(Je,Ze),Ae(Ze-Je))):Nl(0,p),dt&&Re?(ce==1?(_e=te,de=K):(_e=Q,de=L),Me=D[k],Je=le(ke(_e,G),Me,w,0),Ze=le(ke(_e+de,G),Me,w,0),Hl(ht(Je,Ze),Ae(Ze-Je))):Hl(0,w)}else nn()}else{let S=Ae(Pi-Di),k=Ae(Ci-Li);if(v.ori==1){let G=S;S=k,k=G}Ce=Fe.x&&S>=Fe.dist,Re=Fe.y&&k>=Fe.dist;let M=Fe.uni;M!=null?Ce&&Re&&(Ce=S>=M,Re=k>=M,!Ce&&!Re&&(k>S?Re=!0:Ce=!0)):Fe.x&&Fe.y&&(Ce||Re)&&(Ce=Re=!0);let b,T;Ce&&(v.ori==0?(b=dl,T=pe):(b=gl,T=we),Nl(ht(b,T),Ae(T-b)),Re||Hl(0,w)),Re&&(v.ori==1?(b=dl,T=pe):(b=gl,T=we),Hl(ht(b,T),Ae(T-b)),Ce||Nl(0,p)),!Ce&&!Re&&(Nl(0,0),Hl(0,0))}if(Fe._x=Ce,Fe._y=Re,t==null){if(r){if(Ui!=null){let[S,k]=xe.scales;xe.values[0]=S!=null?vt(v.ori==0?pe:we,S):null,xe.values[1]=k!=null?vt(v.ori==1?pe:we,k):null}Wl($i,l,pe,we,Y,$,f)}if(sl){let S=r&&xe.setSeries,k=zt.prox;$t==null?Et<=k&&kt(Ot,Sl,!0,S):Et>k?kt(null,Sl,!0,S):Ot!=$t&&kt(Ot,Sl,!0,S)}}st&&(V.idx=f,Fn()),i!==!1&&Ve("setCursor")}let Wt=null;Object.defineProperty(l,"rect",{get(){return Wt==null&&Ol(!1),Wt}});function Ol(t=!1){t?Wt=null:(Wt=A.getBoundingClientRect(),Ve("syncRect",Wt))}function zi(t,i,r,f,c,p,w){N._lock||Nt&&t!=null&&t.movementX==0&&t.movementY==0||(Nn(t,i,r,f,c,p,w,!1,t!=null),t!=null?Jt(null,!0,!0):Jt(i,!0,!1))}function Nn(t,i,r,f,c,p,w,S,k){if(Wt==null&&Ol(!1),jt(t),t!=null)r=t.clientX-Wt.left,f=t.clientY-Wt.top;else{if(r<0||f<0){pe=-10,we=-10;return}let[M,b]=xe.scales,T=i.cursor.sync,[G,ae]=T.values,[te,Q]=T.scales,[K,L]=xe.match,ce=i.axes[0].side%2==1,ke=v.ori==0?Y:$,_e=v.ori==1?Y:$,de=ce?p:c,Me=ce?c:p,Je=ce?f:r,Ze=ce?r:f;if(te!=null?r=K(M,te)?m(G,D[M],ke,0):-10:r=ke*(Je/de),Q!=null?f=L(b,Q)?m(ae,D[b],_e,0):-10:f=_e*(Ze/Me),v.ori==1){let ft=r;r=f,f=ft}}k&&((r<=1||r>=Y-1)&&(r=Zt(r,Y)),(f<=1||f>=$-1)&&(f=Zt(f,$))),S?(Di=r,Li=f,[dl,gl]=N.move(l,r,f)):(pe=r,we=f)}const Hn={width:0,height:0,left:0,top:0};function nn(){ln(Hn,!1)}let Fi,Ni,Hi,Oi;function Wi(t,i,r,f,c,p,w){Nt=!0,Ce=Re=Fe._x=Fe._y=!1,Nn(t,i,r,f,c,p,w,!0,!1),t!=null&&(it(In,jn,Gi,!1),Wl(Ji,l,dl,gl,Y,$,null));let{left:S,top:k,width:M,height:b}=me;Fi=S,Ni=k,Hi=M,Oi=b,nn()}function Gi(t,i,r,f,c,p,w){Nt=Fe._x=Fe._y=!1,Nn(t,i,r,f,c,p,w,!1,!0);let{left:S,top:k,width:M,height:b}=me,T=M>0||b>0,G=Fi!=S||Ni!=k||Hi!=M||Oi!=b;if(T&&G&&ln(me),Fe.setScale&&T&&G){let ae=S,te=M,Q=k,K=b;if(v.ori==1&&(ae=k,te=b,Q=S,K=M),Ce&&Ht(P,vt(ae,P),vt(ae+te,P)),Re)for(let L in D){let ce=D[L];L!=P&&ce.from==null&&ce.min!=ee&&Ht(L,vt(Q+K,L),vt(Q,L))}nn()}else N.lock&&(N._lock=!N._lock,Jt(null,!0,!1));t!=null&&($l(In,jn),Wl(In,l,pe,we,Y,$,null))}function Bs(t,i,r,f,c,p,w){if(N._lock)return;jt(t);let S=Nt;if(Nt){let k=!0,M=!0,b=10,T,G;v.ori==0?(T=Ce,G=Re):(T=Re,G=Ce),T&&G&&(k=pe<=b||pe>=Y-b,M=we<=b||we>=$-b),T&&k&&(pe=pe{let c=xe.match[2];r=c(l,i,r),r!=-1&&kt(r,f,!0,!1)},N.show&&(it(Ji,A,Wi),it($i,A,zi),it(Zi,A,t=>{jt(t),Ol(!1)}),it(Qi,A,Bs),it(Xi,A,Ii),ti.add(l),l.syncRect=Ol);const on=l.hooks=e.hooks||{};function Ve(t,i,r){Cn?Fl.push([t,i,r]):t in on&&on[t].forEach(f=>{f.call(null,l,i,r)})}(e.plugins||[]).forEach(t=>{for(let i in t.hooks)on[i]=(on[i]||[]).concat(t.hooks[i])});const Yi=(t,i,r)=>r,xe=be({key:null,setSeries:!1,filters:{pub:co,sub:co},scales:[P,x[1]?x[1].scale:null],match:[ao,ao,Yi],values:[null,null]},N.sync);xe.match.length==2&&xe.match.push(Yi),N.sync=xe;const Ui=xe.key,On=is(Ui);function Wl(t,i,r,f,c,p,w){xe.filters.pub(t,i,r,f,c,p,w)&&On.pub(t,i,r,f,c,p,w)}On.sub(l);function Ys(t,i,r,f,c,p,w){xe.filters.sub(t,i,r,f,c,p,w)&&_l[t](null,i,r,f,c,p,w)}l.pub=Ys;function Us(){On.unsub(l),ti.delete(l),bt.clear(),Jn(cn,xl,Bi),_.remove(),Ke==null||Ke.remove(),Ve("destroy")}l.destroy=Us;function Wn(){Ve("init",e,n),ki(n||e.data,!1),I[P]?Rn(P,I[P]):kn(),Jl=me.show&&(me.width>0||me.height>0),Kt=st=!0,yn(e.width,e.height)}return x.forEach(_i),C.forEach(xs),o?o instanceof HTMLElement?(o.appendChild(_),Wn()):o(l,Wn):Wn(),l}Ye.assign=be;Ye.fmtNum=fi;Ye.rangeNum=an;Ye.rangeLog=pn;Ye.rangeAsinh=si;Ye.orient=ll;Ye.pxRatio=se;Ye.join=Lr;Ye.fmtDate=ci,Ye.tzDate=Gr;Ye.sync=is;{Ye.addGap=Mf,Ye.clipGaps=gn;let e=Ye.paths={points:cs};e.linear=hs,e.stepped=Ef,e.bars=Af,e.spline=Lf}export{Ye as u}; diff --git a/assets/utils-BiyqmwP6.js b/assets/utils-BiyqmwP6.js deleted file mode 100644 index 09228a2..0000000 --- a/assets/utils-BiyqmwP6.js +++ /dev/null @@ -1,45 +0,0 @@ -import{g as Ze,i as Se,r as A,c as C,u as r,a as Ee,b as ht,d as Ve,w as se,e as Pp,o as Wc,s as Mt,f as on,h as $o,j as Ge,n as Oe,k as zp,l as dn,m as hn,p as lg,q as Qe,t as it,v as jc,x as T,y as x,z as _,A as k,B as Q,C as Ne,D as $,N as zt,E as tt,F as Xt,G as ae,H as G,I as qe,J as ee,K as et,L as ot,M as he,O as ze,P as q,Q as pt,T as tn,R as mt,S as To,U as Wa,V as Ae,W as Tt,X as _t,Y as Ap,Z as ja,_ as og,$ as Vp,a0 as ci,a1 as rg,a2 as qc,a3 as sg,a4 as kt,a5 as Yn,a6 as rt,a7 as uo,a8 as oa,a9 as Ol,aa as Ft,ab as Bs,ac as Hs,ad as nn,ae as Lp,af as Pe,ag as Je,ah as ig,ai as ug,aj as Tu,ak as di,al as cg,am as Rp,an as El,ao as dg,ap as Ou,aq as fi,ar as fg,as as rl,at as pg,au as vg,av as hg,aw as ba,ax as Bp}from"./vendor-Bqkqt8ok.js";import{g as qa}from"./xterm-ks5DzpfX.js";const mg="2.9.3",Af=Symbol("INSTALLED_KEY"),Hp=Symbol(),Qo="el",gg="is-",ml=(e,t,n,a,l)=>{let o=`${e}-${t}`;return n&&(o+=`-${n}`),a&&(o+=`__${a}`),l&&(o+=`--${l}`),o},Dp=Symbol("namespaceContextKey"),Uc=e=>{const t=e||(Ze()?Se(Dp,A(Qo)):A(Qo));return C(()=>r(t)||Qo)},de=(e,t)=>{const n=Uc(t);return{namespace:n,b:(p="")=>ml(n.value,e,p,"",""),e:p=>p?ml(n.value,e,"",p,""):"",m:p=>p?ml(n.value,e,"","",p):"",be:(p,y)=>p&&y?ml(n.value,e,p,y,""):"",em:(p,y)=>p&&y?ml(n.value,e,"",p,y):"",bm:(p,y)=>p&&y?ml(n.value,e,p,"",y):"",bem:(p,y,g)=>p&&y&&g?ml(n.value,e,p,y,g):"",is:(p,...y)=>{const g=y.length>=1?y[0]:!0;return p&&g?`${gg}${p}`:""},cssVar:p=>{const y={};for(const g in p)p[g]&&(y[`--${n.value}-${g}`]=p[g]);return y},cssVarName:p=>`--${n.value}-${p}`,cssVarBlock:p=>{const y={};for(const g in p)p[g]&&(y[`--${n.value}-${e}-${g}`]=p[g]);return y},cssVarBlockName:p=>`--${n.value}-${e}-${p}`}};var Fp=typeof global=="object"&&global&&global.Object===Object&&global,yg=typeof self=="object"&&self&&self.Object===Object&&self,pa=Fp||yg||Function("return this")(),Gn=pa.Symbol,Kp=Object.prototype,_g=Kp.hasOwnProperty,bg=Kp.toString,Wo=Gn?Gn.toStringTag:void 0;function wg(e){var t=_g.call(e,Wo),n=e[Wo];try{e[Wo]=void 0;var a=!0}catch{}var l=bg.call(e);return a&&(t?e[Wo]=n:delete e[Wo]),l}var Cg=Object.prototype,Sg=Cg.toString;function kg(e){return Sg.call(e)}var Eg="[object Null]",Mg="[object Undefined]",Vf=Gn?Gn.toStringTag:void 0;function Rl(e){return e==null?e===void 0?Mg:Eg:Vf&&Vf in Object(e)?wg(e):kg(e)}function Sa(e){return e!=null&&typeof e=="object"}var xg="[object Symbol]";function pi(e){return typeof e=="symbol"||Sa(e)&&Rl(e)==xg}function Yc(e,t){for(var n=-1,a=e==null?0:e.length,l=Array(a);++n0){if(++t>=t6)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function o6(e){return function(){return e}}var Ds=function(){try{var e=Hl(Object,"defineProperty");return e({},"",{}),e}catch{}}(),r6=Ds?function(e,t){return Ds(e,"toString",{configurable:!0,enumerable:!1,value:o6(t),writable:!0})}:Gc,qp=l6(r6);function s6(e,t){for(var n=-1,a=e==null?0:e.length;++n-1}var f6=9007199254740991,p6=/^(?:0|[1-9]\d*)$/;function vi(e,t){var n=typeof e;return t=t??f6,!!t&&(n=="number"||n!="symbol"&&p6.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=m6}function No(e){return e!=null&&Qc(e.length)&&!Xc(e)}function g6(e,t,n){if(!Nn(n))return!1;var a=typeof t;return(a=="number"?No(n)&&vi(t,n.length):a=="string"&&t in n)?Tr(n[t],e):!1}function y6(e){return Gp(function(t,n){var a=-1,l=n.length,o=l>1?n[l-1]:void 0,s=l>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(l--,o):void 0,s&&g6(n[0],n[1],s)&&(o=l<3?void 0:o,l=1),t=Object(t);++a-1}function $3(e,t){var n=this.__data__,a=hi(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this}function Ua(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t0&&n(i)?t>1?Ir(i,t-1,n,a,l):ld(l,i):a||(l[l.length]=i)}return l}function tv(e){var t=e==null?0:e.length;return t?Ir(e,1):[]}function nv(e){return qp(Yp(e,void 0,tv),e+"")}var od=ev(Object.getPrototypeOf,Object),K3="[object Object]",W3=Function.prototype,j3=Object.prototype,av=W3.toString,q3=j3.hasOwnProperty,U3=av.call(Object);function lv(e){if(!Sa(e)||Rl(e)!=K3)return!1;var t=od(e);if(t===null)return!0;var n=q3.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&av.call(n)==U3}function Y3(e,t,n){var a=-1,l=e.length;t<0&&(t=-t>l?0:l+t),n=n>l?l:n,n<0&&(n+=l),l=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(l);++ai))return!1;var c=o.get(e),d=o.get(t);if(c&&d)return c==t&&d==e;var f=-1,h=!0,v=n&Ty?new dr:void 0;for(o.set(e,t),o.set(t,e);++f=t||O<0||f&&I>=o}function g(){var E=eu();if(y(E))return M(E);i=setTimeout(g,p(E))}function M(E){return i=void 0,h&&a?v(E):(a=l=void 0,s)}function w(){i!==void 0&&clearTimeout(i),c=0,a=u=l=i=void 0}function b(){return i===void 0?s:M(eu())}function S(){var E=eu(),O=y(E);if(a=arguments,l=this,u=E,O){if(i===void 0)return m(u);if(f)return clearTimeout(i),i=setTimeout(g,t),v(u)}return i===void 0&&(i=setTimeout(g,t)),s}return S.cancel=w,S.flush=b,S}function Au(e,t,n){(n!==void 0&&!Tr(e[t],n)||n===void 0&&!(t in e))&&Zc(e,t,n)}function Sv(e){return Sa(e)&&No(e)}function Vu(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function y_(e){return Oo(e,Nr(e))}function __(e,t,n,a,l,o,s){var i=Vu(e,n),u=Vu(t,n),c=s.get(u);if(c){Au(e,n,c);return}var d=o?o(i,u,n+"",e,t,s):void 0,f=d===void 0;if(f){var h=On(u),v=!h&&ir(u),m=!h&&!v&&nd(u);d=u,h||v||m?On(i)?d=i:Sv(i)?d=jp(i):v?(f=!1,d=rv(u,!0)):m?(f=!1,d=dv(u,!0)):d=[]:lv(u)||sr(u)?(d=i,sr(i)?d=y_(i):(!Nn(i)||Xc(i))&&(d=fv(u))):f=!1}f&&(s.set(u,d),l(d,u,a,o,s),s.delete(u)),Au(e,n,d)}function kv(e,t,n,a,l){e!==t&&Cv(t,function(o,s){if(l||(l=new ia),Nn(o))__(e,t,s,n,kv,a,l);else{var i=a?a(Vu(e,s),o,s+"",e,t,l):void 0;i===void 0&&(i=o),Au(e,s,i)}},Nr)}function b_(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function Ev(e,t,n){var a=e==null?0:e.length;if(!a)return-1;var l=a-1;return Up(e,wv(t),l,!0)}function w_(e,t){var n=-1,a=No(e)?Array(e.length):[];return v_(e,function(l,o,s){a[++n]=t(l,o,s)}),a}function C_(e,t){var n=On(e)?Yc:w_;return n(e,wv(t))}function S_(e,t){return Ir(C_(e,t),1)}var k_=1/0;function E_(e){var t=e==null?0:e.length;return t?Ir(e,k_):[]}function fr(e){for(var t=-1,n=e==null?0:e.length,a={};++t1),o}),Oo(e,cv(e),n),a&&(n=lo(n,T_|O_|N_,$_));for(var l=t.length;l--;)x_(n,t[l]);return n});function $v(e,t,n,a){if(!Nn(e))return e;t=Io(t,e);for(var l=-1,o=t.length,s=o-1,i=e;i!=null&&++l=B_){var c=R_(e);if(c)return id(c);s=!1,l=mv,u=new dr}else u=i;e:for(;++ae===void 0,Et=e=>typeof e=="boolean",Ie=e=>typeof e=="number",Hn=e=>!e&&e!==0||Ee(e)&&e.length===0||ht(e)&&!Object.keys(e).length,Tn=e=>typeof Element>"u"?!1:e instanceof Element,ua=e=>Zt(e),D_=e=>Ve(e)?!Number.isNaN(Number(e)):!1,bi=e=>e===window;var F_=Object.defineProperty,K_=Object.defineProperties,W_=Object.getOwnPropertyDescriptors,p0=Object.getOwnPropertySymbols,j_=Object.prototype.hasOwnProperty,q_=Object.prototype.propertyIsEnumerable,v0=(e,t,n)=>t in e?F_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,U_=(e,t)=>{for(var n in t||(t={}))j_.call(t,n)&&v0(e,n,t[n]);if(p0)for(var n of p0(t))q_.call(t,n)&&v0(e,n,t[n]);return e},Y_=(e,t)=>K_(e,W_(t));function Lu(e,t){var n;const a=Mt();return on(()=>{a.value=e()},Y_(U_({},t),{flush:(n=void 0)!=null?n:"sync"})),$o(a)}var h0;const ut=typeof window<"u",G_=e=>typeof e<"u",Ru=e=>typeof e=="function",X_=e=>typeof e=="string",fo=()=>{},Bu=ut&&((h0=window==null?void 0:window.navigator)==null?void 0:h0.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function sl(e){return typeof e=="function"?e():r(e)}function Tv(e,t){function n(...a){return new Promise((l,o)=>{Promise.resolve(e(()=>t.apply(this,a),{fn:t,thisArg:this,args:a})).then(l).catch(o)})}return n}function Z_(e,t={}){let n,a,l=fo;const o=i=>{clearTimeout(i),l(),l=fo};return i=>{const u=sl(e),c=sl(t.maxWait);return n&&o(n),u<=0||c!==void 0&&c<=0?(a&&(o(a),a=null),Promise.resolve(i())):new Promise((d,f)=>{l=t.rejectOnCancel?f:d,c&&!a&&(a=setTimeout(()=>{n&&o(n),a=null,d(i())},c)),n=setTimeout(()=>{a&&o(a),a=null,d(i())},u)})}}function J_(e,t=!0,n=!0,a=!1){let l=0,o,s=!0,i=fo,u;const c=()=>{o&&(clearTimeout(o),o=void 0,i(),i=fo)};return f=>{const h=sl(e),v=Date.now()-l,m=()=>u=f();return c(),h<=0?(l=Date.now(),m()):(v>h&&(n||!s)?(l=Date.now(),m()):t&&(u=new Promise((p,y)=>{i=a?y:p,o=setTimeout(()=>{l=Date.now(),s=!0,p(m()),c()},Math.max(0,h-v))})),!n&&!o&&(o=setTimeout(()=>s=!0,h)),s=!1,u)}}function Q_(e){return e}function eb(e,t){let n,a,l;const o=A(!0),s=()=>{o.value=!0,l()};se(e,s,{flush:"sync"});const i=Ru(t)?t:t.get,u=Ru(t)?void 0:t.set,c=zp((d,f)=>(a=d,l=f,{get(){return o.value&&(n=i(),o.value=!1),a(),n},set(h){u==null||u(h)}}));return Object.isExtensible(c)&&(c.trigger=s),c}function zr(e){return Pp()?(Wc(e),!0):!1}function tb(e,t=200,n={}){return Tv(Z_(t,n),e)}function nb(e,t=200,n={}){const a=A(e.value),l=tb(()=>{a.value=e.value},t,n);return se(e,()=>l()),a}function Ov(e,t=200,n=!1,a=!0,l=!1){return Tv(J_(t,n,a,l),e)}function ud(e,t=!0){Ze()?Ge(e):t?e():Oe(e)}function Il(e,t,n={}){const{immediate:a=!0}=n,l=A(!1);let o=null;function s(){o&&(clearTimeout(o),o=null)}function i(){l.value=!1,s()}function u(...c){s(),l.value=!0,o=setTimeout(()=>{l.value=!1,o=null,e(...c)},sl(t))}return a&&(l.value=!0,ut&&u()),zr(i),{isPending:$o(l),start:u,stop:i}}function $n(e){var t;const n=sl(e);return(t=n==null?void 0:n.$el)!=null?t:n}const dl=ut?window:void 0,ab=ut?window.document:void 0;function wt(...e){let t,n,a,l;if(X_(e[0])||Array.isArray(e[0])?([n,a,l]=e,t=dl):[t,n,a,l]=e,!t)return fo;Array.isArray(n)||(n=[n]),Array.isArray(a)||(a=[a]);const o=[],s=()=>{o.forEach(d=>d()),o.length=0},i=(d,f,h,v)=>(d.addEventListener(f,h,v),()=>d.removeEventListener(f,h,v)),u=se(()=>[$n(t),sl(l)],([d,f])=>{s(),d&&o.push(...n.flatMap(h=>a.map(v=>i(d,h,v,f))))},{immediate:!0,flush:"post"}),c=()=>{u(),s()};return zr(c),c}let m0=!1;function cd(e,t,n={}){const{window:a=dl,ignore:l=[],capture:o=!0,detectIframe:s=!1}=n;if(!a)return;Bu&&!m0&&(m0=!0,Array.from(a.document.body.children).forEach(h=>h.addEventListener("click",fo)));let i=!0;const u=h=>l.some(v=>{if(typeof v=="string")return Array.from(a.document.querySelectorAll(v)).some(m=>m===h.target||h.composedPath().includes(m));{const m=$n(v);return m&&(h.target===m||h.composedPath().includes(m))}}),d=[wt(a,"click",h=>{const v=$n(e);if(!(!v||v===h.target||h.composedPath().includes(v))){if(h.detail===0&&(i=!u(h)),!i){i=!0;return}t(h)}},{passive:!0,capture:o}),wt(a,"pointerdown",h=>{const v=$n(e);v&&(i=!h.composedPath().includes(v)&&!u(h))},{passive:!0}),s&&wt(a,"blur",h=>{var v;const m=$n(e);((v=a.document.activeElement)==null?void 0:v.tagName)==="IFRAME"&&!(m!=null&&m.contains(a.document.activeElement))&&t(h)})].filter(Boolean);return()=>d.forEach(h=>h())}function lb(e={}){var t;const{window:n=dl}=e,a=(t=e.document)!=null?t:n==null?void 0:n.document,l=eb(()=>null,()=>a==null?void 0:a.activeElement);return n&&(wt(n,"blur",o=>{o.relatedTarget===null&&l.trigger()},!0),wt(n,"focus",l.trigger,!0)),l}function Nv(e,t=!1){const n=A(),a=()=>n.value=!!e();return a(),ud(a,t),n}function ob(e){return JSON.parse(JSON.stringify(e))}const g0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},y0="__vueuse_ssr_handlers__";g0[y0]=g0[y0]||{};function rb(e,t,{window:n=dl,initialValue:a=""}={}){const l=A(a),o=C(()=>{var s;return $n(t)||((s=n==null?void 0:n.document)==null?void 0:s.documentElement)});return se([o,()=>sl(e)],([s,i])=>{var u;if(s&&n){const c=(u=n.getComputedStyle(s).getPropertyValue(i))==null?void 0:u.trim();l.value=c||a}},{immediate:!0}),se(l,s=>{var i;(i=o.value)!=null&&i.style&&o.value.style.setProperty(sl(e),s)}),l}function sb({document:e=ab}={}){if(!e)return A("visible");const t=A(e.visibilityState);return wt(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var _0=Object.getOwnPropertySymbols,ib=Object.prototype.hasOwnProperty,ub=Object.prototype.propertyIsEnumerable,cb=(e,t)=>{var n={};for(var a in e)ib.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&_0)for(var a of _0(e))t.indexOf(a)<0&&ub.call(e,a)&&(n[a]=e[a]);return n};function At(e,t,n={}){const a=n,{window:l=dl}=a,o=cb(a,["window"]);let s;const i=Nv(()=>l&&"ResizeObserver"in l),u=()=>{s&&(s.disconnect(),s=void 0)},c=se(()=>$n(e),f=>{u(),i.value&&l&&f&&(s=new ResizeObserver(t),s.observe(f,o))},{immediate:!0,flush:"post"}),d=()=>{u(),c()};return zr(d),{isSupported:i,stop:d}}function b0(e,t={}){const{reset:n=!0,windowResize:a=!0,windowScroll:l=!0,immediate:o=!0}=t,s=A(0),i=A(0),u=A(0),c=A(0),d=A(0),f=A(0),h=A(0),v=A(0);function m(){const p=$n(e);if(!p){n&&(s.value=0,i.value=0,u.value=0,c.value=0,d.value=0,f.value=0,h.value=0,v.value=0);return}const y=p.getBoundingClientRect();s.value=y.height,i.value=y.bottom,u.value=y.left,c.value=y.right,d.value=y.top,f.value=y.width,h.value=y.x,v.value=y.y}return At(e,m),se(()=>$n(e),p=>!p&&m()),l&&wt("scroll",m,{capture:!0,passive:!0}),a&&wt("resize",m,{passive:!0}),ud(()=>{o&&m()}),{height:s,bottom:i,left:u,right:c,top:d,width:f,x:h,y:v,update:m}}var w0=Object.getOwnPropertySymbols,db=Object.prototype.hasOwnProperty,fb=Object.prototype.propertyIsEnumerable,pb=(e,t)=>{var n={};for(var a in e)db.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&w0)for(var a of w0(e))t.indexOf(a)<0&&fb.call(e,a)&&(n[a]=e[a]);return n};function Iv(e,t,n={}){const a=n,{window:l=dl}=a,o=pb(a,["window"]);let s;const i=Nv(()=>l&&"MutationObserver"in l),u=()=>{s&&(s.disconnect(),s=void 0)},c=se(()=>$n(e),f=>{u(),i.value&&l&&f&&(s=new MutationObserver(t),s.observe(f,o))},{immediate:!0}),d=()=>{u(),c()};return zr(d),{isSupported:i,stop:d}}var C0;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(C0||(C0={}));var vb=Object.defineProperty,S0=Object.getOwnPropertySymbols,hb=Object.prototype.hasOwnProperty,mb=Object.prototype.propertyIsEnumerable,k0=(e,t,n)=>t in e?vb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,gb=(e,t)=>{for(var n in t||(t={}))hb.call(t,n)&&k0(e,n,t[n]);if(S0)for(var n of S0(t))mb.call(t,n)&&k0(e,n,t[n]);return e};const yb={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]};gb({linear:Q_},yb);function Pv(e,t,n,a={}){var l,o,s;const{clone:i=!1,passive:u=!1,eventName:c,deep:d=!1,defaultValue:f}=a,h=Ze(),v=n||(h==null?void 0:h.emit)||((l=h==null?void 0:h.$emit)==null?void 0:l.bind(h))||((s=(o=h==null?void 0:h.proxy)==null?void 0:o.$emit)==null?void 0:s.bind(h==null?void 0:h.proxy));let m=c;t||(t="modelValue"),m=c||m||`update:${t.toString()}`;const p=g=>i?Ru(i)?i(g):ob(g):g,y=()=>G_(e[t])?p(e[t]):f;if(u){const g=y(),M=A(g);return se(()=>e[t],w=>M.value=p(w)),se(M,w=>{(w!==e[t]||d)&&v(m,w)},{deep:d}),M}else return C({get(){return y()},set(g){v(m,g)}})}function _b({window:e=dl}={}){if(!e)return A(!1);const t=A(e.document.hasFocus());return wt(e,"blur",()=>{t.value=!1}),wt(e,"focus",()=>{t.value=!0}),t}function bb(e={}){const{window:t=dl,initialWidth:n=1/0,initialHeight:a=1/0,listenOrientation:l=!0,includeScrollbar:o=!0}=e,s=A(n),i=A(a),u=()=>{t&&(o?(s.value=t.innerWidth,i.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,i.value=t.document.documentElement.clientHeight))};return u(),ud(u),wt("resize",u,{passive:!0}),l&&wt("orientationchange",u,{passive:!0}),{width:s,height:i}}class wb extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Gt(e,t){throw new wb(`[${e}] ${t}`)}const E0={current:0},M0=A(0),zv=2e3,x0=Symbol("elZIndexContextKey"),Av=Symbol("zIndexContextKey"),zo=e=>{const t=Ze()?Se(x0,E0):E0,n=e||(Ze()?Se(Av,void 0):void 0),a=C(()=>{const s=r(n);return Ie(s)?s:zv}),l=C(()=>a.value+M0.value),o=()=>(t.current++,M0.value=t.current,l.value);return!ut&&Se(x0),{initialZIndex:a,currentZIndex:l,nextZIndex:o}};var Cb={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value"},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"},mention:{loading:"Loading"},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"},tour:{next:"Next",previous:"Previous",finish:"Finish"},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"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const Sb=e=>(t,n)=>kb(t,n,r(e)),kb=(e,t,n)=>Kt(n,e,e).replace(/\{(\w+)\}/g,(a,l)=>{var o;return`${(o=t==null?void 0:t[l])!=null?o:`{${l}}`}`}),Eb=e=>{const t=C(()=>r(e).name),n=dn(e)?e:A(e);return{lang:t,locale:n,t:Sb(e)}},Vv=Symbol("localeContextKey"),ct=e=>{const t=e||Se(Vv,A());return Eb(C(()=>t.value||Cb))},Lv="__epPropKey",X=e=>e,Mb=e=>ht(e)&&!!e[Lv],va=(e,t)=>{if(!ht(e)||Mb(e))return e;const{values:n,required:a,default:l,type:o,validator:s}=e,u={type:o,required:!!a,validator:n||s?c=>{let d=!1,f=[];if(n&&(f=Array.from(n),hn(e,"default")&&f.push(l),d||(d=f.includes(c))),s&&(d||(d=s(c))),!d&&f.length>0){const h=[...new Set(f)].map(v=>JSON.stringify(v)).join(", ");lg(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${h}], got value ${JSON.stringify(c)}.`)}return d}:void 0,[Lv]:!0};return hn(e,"default")&&(u.default=l),u},pe=e=>fr(Object.entries(e).map(([t,n])=>[t,va(n,t)])),xa=["","default","small","large"],qt=va({type:String,values:xa,required:!1}),Rv=Symbol("size"),Bv=()=>{const e=Se(Rv,{});return C(()=>r(e.size)||"")},Hv=Symbol("emptyValuesContextKey"),xb=["",void 0,null],$b=void 0,Ao=pe({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:e=>Qe(e)?!e():!e}}),wi=(e,t)=>{const n=Ze()?Se(Hv,A({})):A({}),a=C(()=>e.emptyValues||n.value.emptyValues||xb),l=C(()=>Qe(e.valueOnClear)?e.valueOnClear():e.valueOnClear!==void 0?e.valueOnClear:Qe(n.value.valueOnClear)?n.value.valueOnClear():n.value.valueOnClear!==void 0?n.value.valueOnClear:t!==void 0?t:$b),o=s=>a.value.includes(s);return a.value.includes(l.value),{emptyValues:a,valueOnClear:l,isEmptyValue:o}},po=e=>Object.keys(e),Dv=e=>Object.entries(e),ps=(e,t,n)=>({get value(){return Kt(e,t,n)},set value(a){A_(e,t,a)}}),Ws=A();function Ci(e,t=void 0){const n=Ze()?Se(Hp,Ws):Ws;return e?C(()=>{var a,l;return(l=(a=n.value)==null?void 0:a[e])!=null?l:t}):n}function Si(e,t){const n=Ci(),a=de(e,C(()=>{var i;return((i=n.value)==null?void 0:i.namespace)||Qo})),l=ct(C(()=>{var i;return(i=n.value)==null?void 0:i.locale})),o=zo(C(()=>{var i;return((i=n.value)==null?void 0:i.zIndex)||zv})),s=C(()=>{var i;return r(t)||((i=n.value)==null?void 0:i.size)||""});return dd(C(()=>r(n)||{})),{ns:a,locale:l,zIndex:o,size:s}}const dd=(e,t,n=!1)=>{var a;const l=!!Ze(),o=l?Ci():void 0,s=(a=t==null?void 0:t.provide)!=null?a:l?it:void 0;if(!s)return;const i=C(()=>{const u=r(e);return o!=null&&o.value?Tb(o.value,u):u});return s(Hp,i),s(Vv,C(()=>i.value.locale)),s(Dp,C(()=>i.value.namespace)),s(Av,C(()=>i.value.zIndex)),s(Rv,{size:C(()=>i.value.size||"")}),s(Hv,C(()=>({emptyValues:i.value.emptyValues,valueOnClear:i.value.valueOnClear}))),(n||!Ws.value)&&(Ws.value=i.value),i},Tb=(e,t)=>{const n=[...new Set([...po(e),...po(t)])],a={};for(const l of n)a[l]=t[l]!==void 0?t[l]:e[l];return a},Ob=(e=[])=>({version:mg,install:(n,a)=>{n[Af]||(n[Af]=!0,e.forEach(l=>n.use(l)),a&&dd(a,n,!0))}}),Ue="update:modelValue",Ct="change",pn="input",Nb=pe({zIndex:{type:X([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"}}),Ib={scroll:({scrollTop:e,fixed:t})=>Ie(e)&&Et(t),[Ct]:e=>Et(e)};var ve=(e,t)=>{const n=e.__vccOpts||e;for(const[a,l]of t)n[a]=l;return n};function Pb(e,t,n,a){const l=n-t;return e/=a/2,e<1?l/2*e*e*e+t:l/2*((e-=2)*e*e+2)+t}const il=e=>ut?window.requestAnimationFrame(e):setTimeout(e,16),Pl=e=>ut?window.cancelAnimationFrame(e):clearTimeout(e),Fv=(e="")=>e.split(" ").filter(t=>!!t.trim()),An=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},jn=(e,t)=>{!e||!t.trim()||e.classList.add(...Fv(t))},kn=(e,t)=>{!e||!t.trim()||e.classList.remove(...Fv(t))},Va=(e,t)=>{var n;if(!ut||!e||!t)return"";let a=jc(t);a==="float"&&(a="cssFloat");try{const l=e.style[a];if(l)return l;const o=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return o?o[a]:""}catch{return e.style[a]}},Kv=(e,t,n)=>{if(!(!e||!t))if(ht(t))Dv(t).forEach(([a,l])=>Kv(e,a,l));else{const a=jc(t);e.style[a]=n}};function Rt(e,t="px"){if(!e)return"";if(Ie(e)||D_(e))return`${e}${t}`;if(Ve(e))return e}const zb=(e,t)=>{if(!ut)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],a=Va(e,n);return["scroll","auto","overlay"].some(l=>a.includes(l))},fd=(e,t)=>{if(!ut)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(zb(n,t))return n;n=n.parentNode}return n};let Gr;const Wv=e=>{var t;if(!ut)return 0;if(Gr!==void 0)return Gr;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 a=n.offsetWidth;n.style.overflow="scroll";const l=document.createElement("div");l.style.width="100%",n.appendChild(l);const o=l.offsetWidth;return(t=n.parentNode)==null||t.removeChild(n),Gr=a-o,Gr};function pd(e,t){if(!ut)return;if(!t){e.scrollTop=0;return}const n=[];let a=t.offsetParent;for(;a!==null&&e!==a&&e.contains(a);)n.push(a),a=a.offsetParent;const l=t.offsetTop+n.reduce((u,c)=>u+c.offsetTop,0),o=l+t.offsetHeight,s=e.scrollTop,i=s+e.clientHeight;li&&(e.scrollTop=o-e.clientHeight)}function Ab(e,t,n,a,l){const o=Date.now();let s;const i=()=>{const c=Date.now()-o,d=Pb(c>a?a:c,t,n,a);bi(e)?e.scrollTo(window.pageXOffset,d):e.scrollTop=d,c{s&&Pl(s)}}const $0=(e,t)=>bi(t)?e.ownerDocument.documentElement:t,T0=e=>bi(e)?window.scrollY:e.scrollTop,jv="ElAffix",Vb=T({name:jv}),Lb=T({...Vb,props:Nb,emits:Ib,setup(e,{expose:t,emit:n}){const a=e,l=de("affix"),o=Mt(),s=Mt(),i=Mt(),{height:u}=bb(),{height:c,width:d,top:f,bottom:h,update:v}=b0(s,{windowScroll:!1}),m=b0(o),p=A(!1),y=A(0),g=A(0),M=C(()=>({height:p.value?`${c.value}px`:"",width:p.value?`${d.value}px`:""})),w=C(()=>{if(!p.value)return{};const E=a.offset?Rt(a.offset):0;return{height:`${c.value}px`,width:`${d.value}px`,top:a.position==="top"?E:"",bottom:a.position==="bottom"?E:"",transform:g.value?`translateY(${g.value}px)`:"",zIndex:a.zIndex}}),b=()=>{if(!i.value)return;y.value=i.value instanceof Window?document.documentElement.scrollTop:i.value.scrollTop||0;const{position:E,target:O,offset:I}=a,N=I+c.value;if(E==="top")if(O){const z=m.bottom.value-N;p.value=I>f.value&&m.bottom.value>0,g.value=z<0?z:0}else p.value=I>f.value;else if(O){const z=u.value-m.top.value-N;p.value=u.value-Im.top.value,g.value=z<0?-z:0}else p.value=u.value-I{v(),n("scroll",{scrollTop:y.value,fixed:p.value})};return se(p,E=>n("change",E)),Ge(()=>{var E;a.target?(o.value=(E=document.querySelector(a.target))!=null?E:void 0,o.value||Gt(jv,`Target does not exist: ${a.target}`)):o.value=document.documentElement,i.value=fd(s.value,!0),v()}),wt(i,"scroll",S),on(b),t({update:b,updateRoot:v}),(E,O)=>(_(),x("div",{ref_key:"root",ref:s,class:$(r(l).b()),style:Ne(r(M))},[k("div",{class:$({[r(l).m("fixed")]:p.value}),style:Ne(r(w))},[Q(E.$slots,"default")],6)],6))}});var Rb=ve(Lb,[["__file","affix.vue"]]);const We=(e,t)=>{if(e.install=n=>{for(const a of[e,...Object.values(t??{})])n.component(a.name,a)},t)for(const[n,a]of Object.entries(t))e[n]=a;return e},qv=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),Bb=(e,t)=>(e.install=n=>{n.directive(t,e)},e),Lt=e=>(e.install=zt,e),Hb=We(Rb),Db=pe({size:{type:X([Number,String])},color:{type:String}}),Fb=T({name:"ElIcon",inheritAttrs:!1}),Kb=T({...Fb,props:Db,setup(e){const t=e,n=de("icon"),a=C(()=>{const{size:l,color:o}=t;return!l&&!o?{}:{fontSize:vt(l)?void 0:Rt(l),"--color":o}});return(l,o)=>(_(),x("i",tt({class:r(n).b(),style:r(a)},l.$attrs),[Q(l.$slots,"default")],16))}});var Wb=ve(Kb,[["__file","icon.vue"]]);const xe=We(Wb);/*! Element Plus Icons Vue v2.3.1 */var jb=T({name:"AddLocation",__name:"add-location",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),k("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),k("path",{fill:"currentColor",d:"M544 384h96a32 32 0 1 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96v-96a32 32 0 0 1 64 0z"})]))}}),qb=jb,Ub=T({name:"Aim",__name:"aim",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),k("path",{fill:"currentColor",d:"M512 96a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V128a32 32 0 0 1 32-32m0 576a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V704a32 32 0 0 1 32-32M96 512a32 32 0 0 1 32-32h192a32 32 0 0 1 0 64H128a32 32 0 0 1-32-32m576 0a32 32 0 0 1 32-32h192a32 32 0 1 1 0 64H704a32 32 0 0 1-32-32"})]))}}),Yb=Ub,Gb=T({name:"AlarmClock",__name:"alarm-clock",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 832a320 320 0 1 0 0-640 320 320 0 0 0 0 640m0 64a384 384 0 1 1 0-768 384 384 0 0 1 0 768"}),k("path",{fill:"currentColor",d:"m292.288 824.576 55.424 32-48 83.136a32 32 0 1 1-55.424-32zm439.424 0-55.424 32 48 83.136a32 32 0 1 0 55.424-32zM512 512h160a32 32 0 1 1 0 64H480a32 32 0 0 1-32-32V320a32 32 0 0 1 64 0zM90.496 312.256A160 160 0 0 1 312.32 90.496l-46.848 46.848a96 96 0 0 0-128 128L90.56 312.256zm835.264 0A160 160 0 0 0 704 90.496l46.848 46.848a96 96 0 0 1 128 128z"})]))}}),Xb=Gb,Zb=T({name:"Apple",__name:"apple",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M599.872 203.776a189.44 189.44 0 0 1 64.384-4.672l2.624.128c31.168 1.024 51.2 4.096 79.488 16.32 37.632 16.128 74.496 45.056 111.488 89.344 96.384 115.264 82.752 372.8-34.752 521.728-7.68 9.728-32 41.6-30.72 39.936a426.624 426.624 0 0 1-30.08 35.776c-31.232 32.576-65.28 49.216-110.08 50.048-31.36.64-53.568-5.312-84.288-18.752l-6.528-2.88c-20.992-9.216-30.592-11.904-47.296-11.904-18.112 0-28.608 2.88-51.136 12.672l-6.464 2.816c-28.416 12.224-48.32 18.048-76.16 19.2-74.112 2.752-116.928-38.08-180.672-132.16-96.64-142.08-132.608-349.312-55.04-486.4 46.272-81.92 129.92-133.632 220.672-135.04 32.832-.576 60.288 6.848 99.648 22.72 27.136 10.88 34.752 13.76 37.376 14.272 16.256-20.16 27.776-36.992 34.56-50.24 13.568-26.304 27.2-59.968 40.704-100.8a32 32 0 1 1 60.8 20.224c-12.608 37.888-25.408 70.4-38.528 97.664zm-51.52 78.08c-14.528 17.792-31.808 37.376-51.904 58.816a32 32 0 1 1-46.72-43.776l12.288-13.248c-28.032-11.2-61.248-26.688-95.68-26.112-70.4 1.088-135.296 41.6-171.648 105.792C121.6 492.608 176 684.16 247.296 788.992c34.816 51.328 76.352 108.992 130.944 106.944 52.48-2.112 72.32-34.688 135.872-34.688 63.552 0 81.28 34.688 136.96 33.536 56.448-1.088 75.776-39.04 126.848-103.872 107.904-136.768 107.904-362.752 35.776-449.088-72.192-86.272-124.672-84.096-151.68-85.12-41.472-4.288-81.6 12.544-113.664 25.152z"})]))}}),Jb=Zb,Qb=T({name:"ArrowDownBold",__name:"arrow-down-bold",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M104.704 338.752a64 64 0 0 1 90.496 0l316.8 316.8 316.8-316.8a64 64 0 0 1 90.496 90.496L557.248 791.296a64 64 0 0 1-90.496 0L104.704 429.248a64 64 0 0 1 0-90.496z"})]))}}),ew=Qb,tw=T({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("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"})]))}}),$a=tw,nw=T({name:"ArrowLeftBold",__name:"arrow-left-bold",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M685.248 104.704a64 64 0 0 1 0 90.496L368.448 512l316.8 316.8a64 64 0 0 1-90.496 90.496L232.704 557.248a64 64 0 0 1 0-90.496l362.048-362.048a64 64 0 0 1 90.496 0z"})]))}}),aw=nw,lw=T({name:"ArrowLeft",__name:"arrow-left",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"})]))}}),Ra=lw,ow=T({name:"ArrowRightBold",__name:"arrow-right-bold",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M338.752 104.704a64 64 0 0 0 0 90.496l316.8 316.8-316.8 316.8a64 64 0 0 0 90.496 90.496l362.048-362.048a64 64 0 0 0 0-90.496L429.248 104.704a64 64 0 0 0-90.496 0z"})]))}}),rw=ow,sw=T({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("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"})]))}}),En=sw,iw=T({name:"ArrowUpBold",__name:"arrow-up-bold",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M104.704 685.248a64 64 0 0 0 90.496 0l316.8-316.8 316.8 316.8a64 64 0 0 0 90.496-90.496L557.248 232.704a64 64 0 0 0-90.496 0L104.704 594.752a64 64 0 0 0 0 90.496z"})]))}}),uw=iw,cw=T({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("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 0"})]))}}),ki=cw,dw=T({name:"Avatar",__name:"avatar",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M628.736 528.896A416 416 0 0 1 928 928H96a415.872 415.872 0 0 1 299.264-399.104L512 704zM720 304a208 208 0 1 1-416 0 208 208 0 0 1 416 0"})]))}}),fw=dw,pw=T({name:"Back",__name:"back",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64"}),k("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312z"})]))}}),Uv=pw,vw=T({name:"Baseball",__name:"baseball",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M195.2 828.8a448 448 0 1 1 633.6-633.6 448 448 0 0 1-633.6 633.6zm45.248-45.248a384 384 0 1 0 543.104-543.104 384 384 0 0 0-543.104 543.104"}),k("path",{fill:"currentColor",d:"M497.472 96.896c22.784 4.672 44.416 9.472 64.896 14.528a256.128 256.128 0 0 0 350.208 350.208c5.056 20.48 9.856 42.112 14.528 64.896A320.128 320.128 0 0 1 497.472 96.896zM108.48 491.904a320.128 320.128 0 0 1 423.616 423.68c-23.04-3.648-44.992-7.424-65.728-11.52a256.128 256.128 0 0 0-346.496-346.432 1736.64 1736.64 0 0 1-11.392-65.728z"})]))}}),hw=vw,mw=T({name:"Basketball",__name:"basketball",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M778.752 788.224a382.464 382.464 0 0 0 116.032-245.632 256.512 256.512 0 0 0-241.728-13.952 762.88 762.88 0 0 1 125.696 259.584zm-55.04 44.224a699.648 699.648 0 0 0-125.056-269.632 256.128 256.128 0 0 0-56.064 331.968 382.72 382.72 0 0 0 181.12-62.336m-254.08 61.248A320.128 320.128 0 0 1 557.76 513.6a715.84 715.84 0 0 0-48.192-48.128 320.128 320.128 0 0 1-379.264 88.384 382.4 382.4 0 0 0 110.144 229.696 382.4 382.4 0 0 0 229.184 110.08zM129.28 481.088a256.128 256.128 0 0 0 331.072-56.448 699.648 699.648 0 0 0-268.8-124.352 382.656 382.656 0 0 0-62.272 180.8m106.56-235.84a762.88 762.88 0 0 1 258.688 125.056 256.512 256.512 0 0 0-13.44-241.088A382.464 382.464 0 0 0 235.84 245.248zm318.08-114.944c40.576 89.536 37.76 193.92-8.448 281.344a779.84 779.84 0 0 1 66.176 66.112 320.832 320.832 0 0 1 282.112-8.128 382.4 382.4 0 0 0-110.144-229.12 382.4 382.4 0 0 0-229.632-110.208zM828.8 828.8a448 448 0 1 1-633.6-633.6 448 448 0 0 1 633.6 633.6"})]))}}),gw=mw,yw=T({name:"BellFilled",__name:"bell-filled",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M640 832a128 128 0 0 1-256 0zm192-64H134.4a38.4 38.4 0 0 1 0-76.8H192V448c0-154.88 110.08-284.16 256.32-313.6a64 64 0 1 1 127.36 0A320.128 320.128 0 0 1 832 448v243.2h57.6a38.4 38.4 0 0 1 0 76.8z"})]))}}),_w=yw,bw=T({name:"Bell",__name:"bell",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 64a64 64 0 0 1 64 64v64H448v-64a64 64 0 0 1 64-64"}),k("path",{fill:"currentColor",d:"M256 768h512V448a256 256 0 1 0-512 0zm256-640a320 320 0 0 1 320 320v384H192V448a320 320 0 0 1 320-320"}),k("path",{fill:"currentColor",d:"M96 768h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32m352 128h128a64 64 0 0 1-128 0"})]))}}),ww=bw,Cw=T({name:"Bicycle",__name:"bicycle",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M256 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256m0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384"}),k("path",{fill:"currentColor",d:"M288 672h320q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),k("path",{fill:"currentColor",d:"M768 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256m0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384"}),k("path",{fill:"currentColor",d:"M480 192a32 32 0 0 1 0-64h160a32 32 0 0 1 31.04 24.256l96 384a32 32 0 0 1-62.08 15.488L615.04 192zM96 384a32 32 0 0 1 0-64h128a32 32 0 0 1 30.336 21.888l64 192a32 32 0 1 1-60.672 20.224L200.96 384z"}),k("path",{fill:"currentColor",d:"m373.376 599.808-42.752-47.616 320-288 42.752 47.616z"})]))}}),Sw=Cw,kw=T({name:"BottomLeft",__name:"bottom-left",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M256 768h416a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V352a32 32 0 0 1 64 0z"}),k("path",{fill:"currentColor",d:"M246.656 822.656a32 32 0 0 1-45.312-45.312l544-544a32 32 0 0 1 45.312 45.312l-544 544z"})]))}}),Ew=kw,Mw=T({name:"BottomRight",__name:"bottom-right",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M352 768a32 32 0 1 0 0 64h448a32 32 0 0 0 32-32V352a32 32 0 0 0-64 0v416z"}),k("path",{fill:"currentColor",d:"M777.344 822.656a32 32 0 0 0 45.312-45.312l-544-544a32 32 0 0 0-45.312 45.312z"})]))}}),xw=Mw,$w=T({name:"Bottom",__name:"bottom",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M544 805.888V168a32 32 0 1 0-64 0v637.888L246.656 557.952a30.72 30.72 0 0 0-45.312 0 35.52 35.52 0 0 0 0 48.064l288 306.048a30.72 30.72 0 0 0 45.312 0l288-306.048a35.52 35.52 0 0 0 0-48 30.72 30.72 0 0 0-45.312 0L544 805.824z"})]))}}),Tw=$w,Ow=T({name:"Bowl",__name:"bowl",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M714.432 704a351.744 351.744 0 0 0 148.16-256H161.408a351.744 351.744 0 0 0 148.16 256zM288 766.592A415.68 415.68 0 0 1 96 416a32 32 0 0 1 32-32h768a32 32 0 0 1 32 32 415.68 415.68 0 0 1-192 350.592V832a64 64 0 0 1-64 64H352a64 64 0 0 1-64-64zM493.248 320h-90.496l254.4-254.4a32 32 0 1 1 45.248 45.248zm187.328 0h-128l269.696-155.712a32 32 0 0 1 32 55.424zM352 768v64h320v-64z"})]))}}),Nw=Ow,Iw=T({name:"Box",__name:"box",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M317.056 128 128 344.064V896h768V344.064L706.944 128zm-14.528-64h418.944a32 32 0 0 1 24.064 10.88l206.528 236.096A32 32 0 0 1 960 332.032V928a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V332.032a32 32 0 0 1 7.936-21.12L278.4 75.008A32 32 0 0 1 302.528 64z"}),k("path",{fill:"currentColor",d:"M64 320h896v64H64z"}),k("path",{fill:"currentColor",d:"M448 327.872V640h128V327.872L526.08 128h-28.16zM448 64h128l64 256v352a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V320z"})]))}}),Pw=Iw,zw=T({name:"Briefcase",__name:"briefcase",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M320 320V128h384v192h192v192H128V320zM128 576h768v320H128zm256-256h256.064V192H384z"})]))}}),Aw=zw,Vw=T({name:"BrushFilled",__name:"brush-filled",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M608 704v160a96 96 0 0 1-192 0V704h-96a128 128 0 0 1-128-128h640a128 128 0 0 1-128 128zM192 512V128.064h640V512z"})]))}}),Lw=Vw,Rw=T({name:"Brush",__name:"brush",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M896 448H128v192a64 64 0 0 0 64 64h192v192h256V704h192a64 64 0 0 0 64-64zm-770.752-64c0-47.552 5.248-90.24 15.552-128 14.72-54.016 42.496-107.392 83.2-160h417.28l-15.36 70.336L736 96h211.2c-24.832 42.88-41.92 96.256-51.2 160a663.872 663.872 0 0 0-6.144 128H960v256a128 128 0 0 1-128 128H704v160a32 32 0 0 1-32 32H352a32 32 0 0 1-32-32V768H192A128 128 0 0 1 64 640V384h61.248zm64 0h636.544c-2.048-45.824.256-91.584 6.848-137.216 4.48-30.848 10.688-59.776 18.688-86.784h-96.64l-221.12 141.248L561.92 160H256.512c-25.856 37.888-43.776 75.456-53.952 112.832-8.768 32.064-13.248 69.12-13.312 111.168z"})]))}}),Bw=Rw,Hw=T({name:"Burger",__name:"burger",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M160 512a32 32 0 0 0-32 32v64a32 32 0 0 0 30.08 32H864a32 32 0 0 0 32-32v-64a32 32 0 0 0-32-32zm736-58.56A96 96 0 0 1 960 544v64a96 96 0 0 1-51.968 85.312L855.36 833.6a96 96 0 0 1-89.856 62.272H258.496A96 96 0 0 1 168.64 833.6l-52.608-140.224A96 96 0 0 1 64 608v-64a96 96 0 0 1 64-90.56V448a384 384 0 1 1 768 5.44M832 448a320 320 0 0 0-640 0zM512 704H188.352l40.192 107.136a32 32 0 0 0 29.952 20.736h507.008a32 32 0 0 0 29.952-20.736L835.648 704z"})]))}}),Dw=Hw,Fw=T({name:"Calendar",__name:"calendar",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64"})]))}}),Yv=Fw,Kw=T({name:"CameraFilled",__name:"camera-filled",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M160 224a64 64 0 0 0-64 64v512a64 64 0 0 0 64 64h704a64 64 0 0 0 64-64V288a64 64 0 0 0-64-64H748.416l-46.464-92.672A64 64 0 0 0 644.736 96H379.328a64 64 0 0 0-57.216 35.392L275.776 224zm352 435.2a115.2 115.2 0 1 0 0-230.4 115.2 115.2 0 0 0 0 230.4m0 140.8a256 256 0 1 1 0-512 256 256 0 0 1 0 512"})]))}}),Ww=Kw,jw=T({name:"Camera",__name:"camera",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M896 256H128v576h768zm-199.424-64-32.064-64h-304.96l-32 64zM96 192h160l46.336-92.608A64 64 0 0 1 359.552 64h304.96a64 64 0 0 1 57.216 35.328L768.192 192H928a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32m416 512a160 160 0 1 0 0-320 160 160 0 0 0 0 320m0 64a224 224 0 1 1 0-448 224 224 0 0 1 0 448"})]))}}),qw=jw,Uw=T({name:"CaretBottom",__name:"caret-bottom",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m192 384 320 384 320-384z"})]))}}),Yw=Uw,Gw=T({name:"CaretLeft",__name:"caret-left",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M672 192 288 511.936 672 832z"})]))}}),Xw=Gw,Zw=T({name:"CaretRight",__name:"caret-right",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})]))}}),vd=Zw,Jw=T({name:"CaretTop",__name:"caret-top",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"})]))}}),Gv=Jw,Qw=T({name:"Cellphone",__name:"cellphone",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M256 128a64 64 0 0 0-64 64v640a64 64 0 0 0 64 64h512a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64zm0-64h512a128 128 0 0 1 128 128v640a128 128 0 0 1-128 128H256a128 128 0 0 1-128-128V192A128 128 0 0 1 256 64m128 128h256a32 32 0 1 1 0 64H384a32 32 0 0 1 0-64m128 640a64 64 0 1 1 0-128 64 64 0 0 1 0 128"})]))}}),e5=Qw,t5=T({name:"ChatDotRound",__name:"chat-dot-round",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m174.72 855.68 135.296-45.12 23.68 11.84C388.096 849.536 448.576 864 512 864c211.84 0 384-166.784 384-352S723.84 160 512 160 128 326.784 128 512c0 69.12 24.96 139.264 70.848 199.232l22.08 28.8-46.272 115.584zm-45.248 82.56A32 32 0 0 1 89.6 896l58.368-145.92C94.72 680.32 64 596.864 64 512 64 299.904 256 96 512 96s448 203.904 448 416-192 416-448 416a461.056 461.056 0 0 1-206.912-48.384l-175.616 58.56z"}),k("path",{fill:"currentColor",d:"M512 563.2a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m192 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m-384 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4"})]))}}),n5=t5,a5=T({name:"ChatDotSquare",__name:"chat-dot-square",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.88zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128z"}),k("path",{fill:"currentColor",d:"M512 499.2a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4zm192 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4zm-384 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4z"})]))}}),l5=a5,o5=T({name:"ChatLineRound",__name:"chat-line-round",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m174.72 855.68 135.296-45.12 23.68 11.84C388.096 849.536 448.576 864 512 864c211.84 0 384-166.784 384-352S723.84 160 512 160 128 326.784 128 512c0 69.12 24.96 139.264 70.848 199.232l22.08 28.8-46.272 115.584zm-45.248 82.56A32 32 0 0 1 89.6 896l58.368-145.92C94.72 680.32 64 596.864 64 512 64 299.904 256 96 512 96s448 203.904 448 416-192 416-448 416a461.056 461.056 0 0 1-206.912-48.384l-175.616 58.56z"}),k("path",{fill:"currentColor",d:"M352 576h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32m32-192h256q32 0 32 32t-32 32H384q-32 0-32-32t32-32"})]))}}),r5=o5,s5=T({name:"ChatLineSquare",__name:"chat-line-square",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M160 826.88 273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128z"}),k("path",{fill:"currentColor",d:"M352 512h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32m0-192h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32"})]))}}),i5=s5,u5=T({name:"ChatRound",__name:"chat-round",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m174.72 855.68 130.048-43.392 23.424 11.392C382.4 849.984 444.352 864 512 864c223.744 0 384-159.872 384-352 0-192.832-159.104-352-384-352S128 319.168 128 512a341.12 341.12 0 0 0 69.248 204.288l21.632 28.8-44.16 110.528zm-45.248 82.56A32 32 0 0 1 89.6 896l56.512-141.248A405.12 405.12 0 0 1 64 512C64 299.904 235.648 96 512 96s448 203.904 448 416-173.44 416-448 416c-79.68 0-150.848-17.152-211.712-46.72l-170.88 56.96z"})]))}}),c5=u5,d5=T({name:"ChatSquare",__name:"chat-square",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.88zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128z"})]))}}),f5=d5,p5=T({name:"Check",__name:"check",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"})]))}}),Vo=p5,v5=T({name:"Checked",__name:"checked",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M704 192h160v736H160V192h160.064v64H704zM311.616 537.28l-45.312 45.248L447.36 763.52l316.8-316.8-45.312-45.184L447.36 673.024zM384 192V96h256v96z"})]))}}),h5=v5,m5=T({name:"Cherry",__name:"cherry",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M261.056 449.6c13.824-69.696 34.88-128.96 63.36-177.728 23.744-40.832 61.12-88.64 112.256-143.872H320a32 32 0 0 1 0-64h384a32 32 0 1 1 0 64H554.752c14.912 39.168 41.344 86.592 79.552 141.76 47.36 68.48 84.8 106.752 106.304 114.304a224 224 0 1 1-84.992 14.784c-22.656-22.912-47.04-53.76-73.92-92.608-38.848-56.128-67.008-105.792-84.352-149.312-55.296 58.24-94.528 107.52-117.76 147.2-23.168 39.744-41.088 88.768-53.568 147.072a224.064 224.064 0 1 1-64.96-1.6zM288 832a160 160 0 1 0 0-320 160 160 0 0 0 0 320m448-64a160 160 0 1 0 0-320 160 160 0 0 0 0 320"})]))}}),g5=m5,y5=T({name:"Chicken",__name:"chicken",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M349.952 716.992 478.72 588.16a106.688 106.688 0 0 1-26.176-19.072 106.688 106.688 0 0 1-19.072-26.176L304.704 671.744c.768 3.072 1.472 6.144 2.048 9.216l2.048 31.936 31.872 1.984c3.136.64 6.208 1.28 9.28 2.112zm57.344 33.152a128 128 0 1 1-216.32 114.432l-1.92-32-32-1.92a128 128 0 1 1 114.432-216.32L416.64 469.248c-2.432-101.44 58.112-239.104 149.056-330.048 107.328-107.328 231.296-85.504 316.8 0 85.44 85.44 107.328 209.408 0 316.8-91.008 90.88-228.672 151.424-330.112 149.056L407.296 750.08zm90.496-226.304c49.536 49.536 233.344-7.04 339.392-113.088 78.208-78.208 63.232-163.072 0-226.304-63.168-63.232-148.032-78.208-226.24 0C504.896 290.496 448.32 474.368 497.792 523.84M244.864 708.928a64 64 0 1 0-59.84 59.84l56.32-3.52zm8.064 127.68a64 64 0 1 0 59.84-59.84l-56.32 3.52-3.52 56.32z"})]))}}),_5=y5,b5=T({name:"ChromeFilled",__name:"chrome-filled",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M938.67 512.01c0-44.59-6.82-87.6-19.54-128H682.67a212.372 212.372 0 0 1 42.67 128c.06 38.71-10.45 76.7-30.42 109.87l-182.91 316.8c235.65-.01 426.66-191.02 426.66-426.67z"}),k("path",{fill:"currentColor",d:"M576.79 401.63a127.92 127.92 0 0 0-63.56-17.6c-22.36-.22-44.39 5.43-63.89 16.38s-35.79 26.82-47.25 46.02a128.005 128.005 0 0 0-2.16 127.44l1.24 2.13a127.906 127.906 0 0 0 46.36 46.61 127.907 127.907 0 0 0 63.38 17.44c22.29.2 44.24-5.43 63.68-16.33a127.94 127.94 0 0 0 47.16-45.79v-.01l1.11-1.92a127.984 127.984 0 0 0 .29-127.46 127.957 127.957 0 0 0-46.36-46.91"}),k("path",{fill:"currentColor",d:"M394.45 333.96A213.336 213.336 0 0 1 512 298.67h369.58A426.503 426.503 0 0 0 512 85.34a425.598 425.598 0 0 0-171.74 35.98 425.644 425.644 0 0 0-142.62 102.22l118.14 204.63a213.397 213.397 0 0 1 78.67-94.21m117.56 604.72H512zm-97.25-236.73a213.284 213.284 0 0 1-89.54-86.81L142.48 298.6c-36.35 62.81-57.13 135.68-57.13 213.42 0 203.81 142.93 374.22 333.95 416.55h.04l118.19-204.71a213.315 213.315 0 0 1-122.77-21.91z"})]))}}),w5=b5,C5=T({name:"CircleCheckFilled",__name:"circle-check-filled",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),Xv=C5,S5=T({name:"CircleCheck",__name:"circle-check",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),k("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"})]))}}),Ei=S5,k5=T({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),Mi=k5,E5=T({name:"CircleClose",__name:"circle-close",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("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.248z"}),k("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),Ta=E5,M5=T({name:"CirclePlusFilled",__name:"circle-plus-filled",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-38.4 409.6H326.4a38.4 38.4 0 1 0 0 76.8h147.2v147.2a38.4 38.4 0 0 0 76.8 0V550.4h147.2a38.4 38.4 0 0 0 0-76.8H550.4V326.4a38.4 38.4 0 1 0-76.8 0v147.2z"})]))}}),x5=M5,$5=T({name:"CirclePlus",__name:"circle-plus",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64"}),k("path",{fill:"currentColor",d:"M480 672V352a32 32 0 1 1 64 0v320a32 32 0 0 1-64 0"}),k("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),T5=$5,O5=T({name:"Clock",__name:"clock",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),k("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"}),k("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"})]))}}),hd=O5,N5=T({name:"CloseBold",__name:"close-bold",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M195.2 195.2a64 64 0 0 1 90.496 0L512 421.504 738.304 195.2a64 64 0 0 1 90.496 90.496L602.496 512 828.8 738.304a64 64 0 0 1-90.496 90.496L512 602.496 285.696 828.8a64 64 0 0 1-90.496-90.496L421.504 512 195.2 285.696a64 64 0 0 1 0-90.496z"})]))}}),I5=N5,P5=T({name:"Close",__name:"close",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("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"})]))}}),Xn=P5,z5=T({name:"Cloudy",__name:"cloudy",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M598.4 831.872H328.192a256 256 0 0 1-34.496-510.528A352 352 0 1 1 598.4 831.872m-271.36-64h272.256a288 288 0 1 0-248.512-417.664L335.04 381.44l-34.816 3.584a192 192 0 0 0 26.88 382.848z"})]))}}),A5=z5,V5=T({name:"CoffeeCup",__name:"coffee-cup",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M768 192a192 192 0 1 1-8 383.808A256.128 256.128 0 0 1 512 768H320A256 256 0 0 1 64 512V160a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 64v256a128 128 0 1 0 0-256M96 832h640a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64m32-640v320a192 192 0 0 0 192 192h192a192 192 0 0 0 192-192V192z"})]))}}),L5=V5,R5=T({name:"Coffee",__name:"coffee",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M822.592 192h14.272a32 32 0 0 1 31.616 26.752l21.312 128A32 32 0 0 1 858.24 384h-49.344l-39.04 546.304A32 32 0 0 1 737.92 960H285.824a32 32 0 0 1-32-29.696L214.912 384H165.76a32 32 0 0 1-31.552-37.248l21.312-128A32 32 0 0 1 187.136 192h14.016l-6.72-93.696A32 32 0 0 1 226.368 64h571.008a32 32 0 0 1 31.936 34.304zm-64.128 0 4.544-64H260.736l4.544 64h493.184m-548.16 128H820.48l-10.688-64H214.208l-10.688 64h6.784m68.736 64 36.544 512H708.16l36.544-512z"})]))}}),B5=R5,H5=T({name:"Coin",__name:"coin",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m161.92 580.736 29.888 58.88C171.328 659.776 160 681.728 160 704c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 615.808 928 657.664 928 704c0 129.728-188.544 224-416 224S96 833.728 96 704c0-46.592 24.32-88.576 65.92-123.264z"}),k("path",{fill:"currentColor",d:"m161.92 388.736 29.888 58.88C171.328 467.84 160 489.792 160 512c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 423.808 928 465.664 928 512c0 129.728-188.544 224-416 224S96 641.728 96 512c0-46.592 24.32-88.576 65.92-123.264z"}),k("path",{fill:"currentColor",d:"M512 544c-227.456 0-416-94.272-416-224S284.544 96 512 96s416 94.272 416 224-188.544 224-416 224m0-64c196.672 0 352-77.696 352-160S708.672 160 512 160s-352 77.696-352 160 155.328 160 352 160"})]))}}),D5=H5,F5=T({name:"ColdDrink",__name:"cold-drink",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M768 64a192 192 0 1 1-69.952 370.88L480 725.376V896h96a32 32 0 1 1 0 64H320a32 32 0 1 1 0-64h96V725.376L76.8 273.536a64 64 0 0 1-12.8-38.4v-10.688a32 32 0 0 1 32-32h71.808l-65.536-83.84a32 32 0 0 1 50.432-39.424l96.256 123.264h337.728A192.064 192.064 0 0 1 768 64M656.896 192.448H800a32 32 0 0 1 32 32v10.624a64 64 0 0 1-12.8 38.4l-80.448 107.2a128 128 0 1 0-81.92-188.16v-.064zm-357.888 64 129.472 165.76a32 32 0 0 1-50.432 39.36l-160.256-205.12H144l304 404.928 304-404.928z"})]))}}),K5=F5,W5=T({name:"CollectionTag",__name:"collection-tag",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M256 128v698.88l196.032-156.864a96 96 0 0 1 119.936 0L768 826.816V128zm-32-64h576a32 32 0 0 1 32 32v797.44a32 32 0 0 1-51.968 24.96L531.968 720a32 32 0 0 0-39.936 0L243.968 918.4A32 32 0 0 1 192 893.44V96a32 32 0 0 1 32-32"})]))}}),j5=W5,q5=T({name:"Collection",__name:"collection",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M192 736h640V128H256a64 64 0 0 0-64 64zm64-672h608a32 32 0 0 1 32 32v672a32 32 0 0 1-32 32H160l-32 57.536V192A128 128 0 0 1 256 64"}),k("path",{fill:"currentColor",d:"M240 800a48 48 0 1 0 0 96h592v-96zm0-64h656v160a64 64 0 0 1-64 64H240a112 112 0 0 1 0-224m144-608v250.88l96-76.8 96 76.8V128zm-64-64h320v381.44a32 32 0 0 1-51.968 24.96L480 384l-108.032 86.4A32 32 0 0 1 320 445.44z"})]))}}),U5=q5,Y5=T({name:"Comment",__name:"comment",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M736 504a56 56 0 1 1 0-112 56 56 0 0 1 0 112m-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112m-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112M128 128v640h192v160l224-160h352V128z"})]))}}),G5=Y5,X5=T({name:"Compass",__name:"compass",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),k("path",{fill:"currentColor",d:"M725.888 315.008C676.48 428.672 624 513.28 568.576 568.64c-55.424 55.424-139.968 107.904-253.568 157.312a12.8 12.8 0 0 1-16.896-16.832c49.536-113.728 102.016-198.272 157.312-253.632 55.36-55.296 139.904-107.776 253.632-157.312a12.8 12.8 0 0 1 16.832 16.832"})]))}}),Z5=X5,J5=T({name:"Connection",__name:"connection",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M640 384v64H448a128 128 0 0 0-128 128v128a128 128 0 0 0 128 128h320a128 128 0 0 0 128-128V576a128 128 0 0 0-64-110.848V394.88c74.56 26.368 128 97.472 128 181.056v128a192 192 0 0 1-192 192H448a192 192 0 0 1-192-192V576a192 192 0 0 1 192-192z"}),k("path",{fill:"currentColor",d:"M384 640v-64h192a128 128 0 0 0 128-128V320a128 128 0 0 0-128-128H256a128 128 0 0 0-128 128v128a128 128 0 0 0 64 110.848v70.272A192.064 192.064 0 0 1 64 448V320a192 192 0 0 1 192-192h320a192 192 0 0 1 192 192v128a192 192 0 0 1-192 192z"})]))}}),Q5=J5,e9=T({name:"Coordinate",__name:"coordinate",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M480 512h64v320h-64z"}),k("path",{fill:"currentColor",d:"M192 896h640a64 64 0 0 0-64-64H256a64 64 0 0 0-64 64m64-128h512a128 128 0 0 1 128 128v64H128v-64a128 128 0 0 1 128-128m256-256a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512"})]))}}),t9=e9,n9=T({name:"CopyDocument",__name:"copy-document",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M768 832a128 128 0 0 1-128 128H192A128 128 0 0 1 64 832V384a128 128 0 0 1 128-128v64a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64z"}),k("path",{fill:"currentColor",d:"M384 128a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64zm0-64h448a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H384a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64"})]))}}),a9=n9,l9=T({name:"Cpu",__name:"cpu",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M320 256a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h384a64 64 0 0 0 64-64V320a64 64 0 0 0-64-64zm0-64h384a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128H320a128 128 0 0 1-128-128V320a128 128 0 0 1 128-128"}),k("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m160 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m-320 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m160 896a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32m160 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32m-320 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32M64 512a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m0-160a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m0 320a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m896-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32m0-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32m0 320a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32"})]))}}),o9=l9,r9=T({name:"CreditCard",__name:"credit-card",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M896 324.096c0-42.368-2.496-55.296-9.536-68.48a52.352 52.352 0 0 0-22.144-22.08c-13.12-7.04-26.048-9.536-68.416-9.536H228.096c-42.368 0-55.296 2.496-68.48 9.536a52.352 52.352 0 0 0-22.08 22.144c-7.04 13.12-9.536 26.048-9.536 68.416v375.808c0 42.368 2.496 55.296 9.536 68.48a52.352 52.352 0 0 0 22.144 22.08c13.12 7.04 26.048 9.536 68.416 9.536h567.808c42.368 0 55.296-2.496 68.48-9.536a52.352 52.352 0 0 0 22.08-22.144c7.04-13.12 9.536-26.048 9.536-68.416zm64 0v375.808c0 57.088-5.952 77.76-17.088 98.56-11.136 20.928-27.52 37.312-48.384 48.448-20.864 11.136-41.6 17.088-98.56 17.088H228.032c-57.088 0-77.76-5.952-98.56-17.088a116.288 116.288 0 0 1-48.448-48.384c-11.136-20.864-17.088-41.6-17.088-98.56V324.032c0-57.088 5.952-77.76 17.088-98.56 11.136-20.928 27.52-37.312 48.384-48.448 20.864-11.136 41.6-17.088 98.56-17.088H795.84c57.088 0 77.76 5.952 98.56 17.088 20.928 11.136 37.312 27.52 48.448 48.384 11.136 20.864 17.088 41.6 17.088 98.56z"}),k("path",{fill:"currentColor",d:"M64 320h896v64H64zm0 128h896v64H64zm128 192h256v64H192z"})]))}}),s9=r9,i9=T({name:"Crop",__name:"crop",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M256 768h672a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V96a32 32 0 0 1 64 0z"}),k("path",{fill:"currentColor",d:"M832 224v704a32 32 0 1 1-64 0V256H96a32 32 0 0 1 0-64h704a32 32 0 0 1 32 32"})]))}}),u9=i9,c9=T({name:"DArrowLeft",__name:"d-arrow-left",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224zm256 0a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224z"})]))}}),Ba=c9,d9=T({name:"DArrowRight",__name:"d-arrow-right",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 0 0 1 0-42.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"})]))}}),Ha=d9,f9=T({name:"DCaret",__name:"d-caret",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m512 128 288 320H224zM224 576h576L512 896z"})]))}}),p9=f9,v9=T({name:"DataAnalysis",__name:"data-analysis",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m665.216 768 110.848 192h-73.856L591.36 768H433.024L322.176 960H248.32l110.848-192H160a32 32 0 0 1-32-32V192H64a32 32 0 0 1 0-64h896a32 32 0 1 1 0 64h-64v544a32 32 0 0 1-32 32zM832 192H192v512h640zM352 448a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0v-64a32 32 0 0 1 32-32m160-64a32 32 0 0 1 32 32v128a32 32 0 0 1-64 0V416a32 32 0 0 1 32-32m160-64a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V352a32 32 0 0 1 32-32"})]))}}),h9=v9,m9=T({name:"DataBoard",__name:"data-board",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M32 128h960v64H32z"}),k("path",{fill:"currentColor",d:"M192 192v512h640V192zm-64-64h768v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32z"}),k("path",{fill:"currentColor",d:"M322.176 960H248.32l144.64-250.56 55.424 32zm453.888 0h-73.856L576 741.44l55.424-32z"})]))}}),g9=m9,y9=T({name:"DataLine",__name:"data-line",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M359.168 768H160a32 32 0 0 1-32-32V192H64a32 32 0 0 1 0-64h896a32 32 0 1 1 0 64h-64v544a32 32 0 0 1-32 32H665.216l110.848 192h-73.856L591.36 768H433.024L322.176 960H248.32zM832 192H192v512h640zM342.656 534.656a32 32 0 1 1-45.312-45.312L444.992 341.76l125.44 94.08L679.04 300.032a32 32 0 1 1 49.92 39.936L581.632 524.224 451.008 426.24 342.656 534.592z"})]))}}),_9=y9,b9=T({name:"DeleteFilled",__name:"delete-filled",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M352 192V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64H96a32 32 0 0 1 0-64zm64 0h192v-64H416zM192 960a32 32 0 0 1-32-32V256h704v672a32 32 0 0 1-32 32zm224-192a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32m192 0a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32"})]))}}),w9=b9,C9=T({name:"DeleteLocation",__name:"delete-location",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),k("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),k("path",{fill:"currentColor",d:"M384 384h256q32 0 32 32t-32 32H384q-32 0-32-32t32-32"})]))}}),S9=C9,k9=T({name:"Delete",__name:"delete",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),Zv=k9,E9=T({name:"Dessert",__name:"dessert",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 416v-48a144 144 0 0 1 168.64-141.888 224.128 224.128 0 0 1 430.72 0A144 144 0 0 1 896 368v48a384 384 0 0 1-352 382.72V896h-64v-97.28A384 384 0 0 1 128 416m287.104-32.064h193.792a143.808 143.808 0 0 1 58.88-132.736 160.064 160.064 0 0 0-311.552 0 143.808 143.808 0 0 1 58.88 132.8zm-72.896 0a72 72 0 1 0-140.48 0h140.48m339.584 0h140.416a72 72 0 1 0-140.48 0zM512 736a320 320 0 0 0 318.4-288.064H193.6A320 320 0 0 0 512 736M384 896.064h256a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64"})]))}}),M9=E9,x9=T({name:"Discount",__name:"discount",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M224 704h576V318.336L552.512 115.84a64 64 0 0 0-81.024 0L224 318.336zm0 64v128h576V768zM593.024 66.304l259.2 212.096A32 32 0 0 1 864 303.168V928a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V303.168a32 32 0 0 1 11.712-24.768l259.2-212.096a128 128 0 0 1 162.112 0"}),k("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"})]))}}),$9=x9,T9=T({name:"DishDot",__name:"dish-dot",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m384.064 274.56.064-50.688A128 128 0 0 1 512.128 96c70.528 0 127.68 57.152 127.68 127.68v50.752A448.192 448.192 0 0 1 955.392 768H68.544A448.192 448.192 0 0 1 384 274.56zM96 832h832a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64m32-128h768a384 384 0 1 0-768 0m447.808-448v-32.32a63.68 63.68 0 0 0-63.68-63.68 64 64 0 0 0-64 63.936V256z"})]))}}),O9=T9,N9=T({name:"Dish",__name:"dish",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M480 257.152V192h-96a32 32 0 0 1 0-64h256a32 32 0 1 1 0 64h-96v65.152A448 448 0 0 1 955.52 768H68.48A448 448 0 0 1 480 257.152M128 704h768a384 384 0 1 0-768 0M96 832h832a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64"})]))}}),I9=N9,P9=T({name:"DocumentAdd",__name:"document-add",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m320 512V448h64v128h128v64H544v128h-64V640H352v-64z"})]))}}),z9=P9,A9=T({name:"DocumentChecked",__name:"document-checked",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320zM832 384H576V128H192v768h640zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m318.4 582.144 180.992-180.992L704.64 510.4 478.4 736.64 320 578.304l45.248-45.312z"})]))}}),V9=A9,L9=T({name:"DocumentCopy",__name:"document-copy",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 320v576h576V320zm-32-64h640a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32M960 96v704a32 32 0 0 1-32 32h-96v-64h64V128H384v64h-64V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32M256 672h320v64H256zm0-192h320v64H256z"})]))}}),R9=L9,B9=T({name:"DocumentDelete",__name:"document-delete",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320zM832 384H576V128H192v768h640zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m308.992 546.304-90.496-90.624 45.248-45.248 90.56 90.496 90.496-90.432 45.248 45.248-90.496 90.56 90.496 90.496-45.248 45.248-90.496-90.496-90.56 90.496-45.248-45.248 90.496-90.496z"})]))}}),H9=B9,D9=T({name:"DocumentRemove",__name:"document-remove",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320zM832 384H576V128H192v768h640zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m192 512h320v64H352z"})]))}}),F9=D9,K9=T({name:"Document",__name:"document",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"})]))}}),Jv=K9,W9=T({name:"Download",__name:"download",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64z"})]))}}),j9=W9,q9=T({name:"Drizzling",__name:"drizzling",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m739.328 291.328-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 97.28 78.72 175.936 175.808 175.936h400a192 192 0 0 0 35.776-380.672zM959.552 480a256 256 0 0 1-256 256h-400A239.808 239.808 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 959.552 480M288 800h64v64h-64zm192 0h64v64h-64zm-96 96h64v64h-64zm192 0h64v64h-64zm96-96h64v64h-64z"})]))}}),U9=q9,Y9=T({name:"EditPen",__name:"edit-pen",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m199.04 672.64 193.984 112 224-387.968-193.92-112-224 388.032zm-23.872 60.16 32.896 148.288 144.896-45.696zM455.04 229.248l193.92 112 56.704-98.112-193.984-112-56.64 98.112zM104.32 708.8l384-665.024 304.768 175.936L409.152 884.8h.064l-248.448 78.336zm384 254.272v-64h448v64h-448z"})]))}}),G9=Y9,X9=T({name:"Edit",__name:"edit",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"}),k("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"})]))}}),Z9=X9,J9=T({name:"ElemeFilled",__name:"eleme-filled",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M176 64h672c61.824 0 112 50.176 112 112v672a112 112 0 0 1-112 112H176A112 112 0 0 1 64 848V176c0-61.824 50.176-112 112-112m150.528 173.568c-152.896 99.968-196.544 304.064-97.408 456.96a330.688 330.688 0 0 0 456.96 96.64c9.216-5.888 17.6-11.776 25.152-18.56a18.24 18.24 0 0 0 4.224-24.32L700.352 724.8a47.552 47.552 0 0 0-65.536-14.272A234.56 234.56 0 0 1 310.592 641.6C240 533.248 271.104 387.968 379.456 316.48a234.304 234.304 0 0 1 276.352 15.168c1.664.832 2.56 2.56 3.392 4.224 5.888 8.384 3.328 19.328-5.12 25.216L456.832 489.6a47.552 47.552 0 0 0-14.336 65.472l16 24.384c5.888 8.384 16.768 10.88 25.216 5.056l308.224-199.936a19.584 19.584 0 0 0 6.72-23.488v-.896c-4.992-9.216-10.048-17.6-15.104-26.88-99.968-151.168-304.064-194.88-456.96-95.744zM786.88 504.704l-62.208 40.32c-8.32 5.888-10.88 16.768-4.992 25.216L760 632.32c5.888 8.448 16.768 11.008 25.152 5.12l31.104-20.16a55.36 55.36 0 0 0 16-76.48l-20.224-31.04a19.52 19.52 0 0 0-25.152-5.12z"})]))}}),Q9=J9,eC=T({name:"Eleme",__name:"eleme",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M300.032 188.8c174.72-113.28 408-63.36 522.24 109.44 5.76 10.56 11.52 20.16 17.28 30.72v.96a22.4 22.4 0 0 1-7.68 26.88l-352.32 228.48c-9.6 6.72-22.08 3.84-28.8-5.76l-18.24-27.84a54.336 54.336 0 0 1 16.32-74.88l225.6-146.88c9.6-6.72 12.48-19.2 5.76-28.8-.96-1.92-1.92-3.84-3.84-4.8a267.84 267.84 0 0 0-315.84-17.28c-123.84 81.6-159.36 247.68-78.72 371.52a268.096 268.096 0 0 0 370.56 78.72 54.336 54.336 0 0 1 74.88 16.32l17.28 26.88c5.76 9.6 3.84 21.12-4.8 27.84-8.64 7.68-18.24 14.4-28.8 21.12a377.92 377.92 0 0 1-522.24-110.4c-113.28-174.72-63.36-408 111.36-522.24zm526.08 305.28a22.336 22.336 0 0 1 28.8 5.76l23.04 35.52a63.232 63.232 0 0 1-18.24 87.36l-35.52 23.04c-9.6 6.72-22.08 3.84-28.8-5.76l-46.08-71.04c-6.72-9.6-3.84-22.08 5.76-28.8l71.04-46.08z"})]))}}),tC=eC,nC=T({name:"ElementPlus",__name:"element-plus",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M839.7 734.7c0 33.3-17.9 41-17.9 41S519.7 949.8 499.2 960c-10.2 5.1-20.5 5.1-30.7 0 0 0-314.9-184.3-325.1-192-5.1-5.1-10.2-12.8-12.8-20.5V368.6c0-17.9 20.5-28.2 20.5-28.2L466 158.6c12.8-5.1 25.6-5.1 38.4 0 0 0 279 161.3 309.8 179.2 17.9 7.7 28.2 25.6 25.6 46.1-.1-5-.1 317.5-.1 350.8M714.2 371.2c-64-35.8-217.6-125.4-217.6-125.4-7.7-5.1-20.5-5.1-30.7 0L217.6 389.1s-17.9 10.2-17.9 23v297c0 5.1 5.1 12.8 7.7 17.9 7.7 5.1 256 148.5 256 148.5 7.7 5.1 17.9 5.1 25.6 0 15.4-7.7 250.9-145.9 250.9-145.9s12.8-5.1 12.8-30.7v-74.2l-276.5 169v-64c0-17.9 7.7-30.7 20.5-46.1L745 535c5.1-7.7 10.2-20.5 10.2-30.7v-66.6l-279 169v-69.1c0-15.4 5.1-30.7 17.9-38.4l220.1-128zM919 135.7c0-5.1-5.1-7.7-7.7-7.7h-58.9V66.6c0-5.1-5.1-5.1-10.2-5.1l-30.7 5.1c-5.1 0-5.1 2.6-5.1 5.1V128h-56.3c-5.1 0-5.1 5.1-7.7 5.1v38.4h69.1v64c0 5.1 5.1 5.1 10.2 5.1l30.7-5.1c5.1 0 5.1-2.6 5.1-5.1v-56.3h64l-2.5-38.4z"})]))}}),aC=nC,lC=T({name:"Expand",__name:"expand",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 192h768v128H128zm0 256h512v128H128zm0 256h768v128H128zm576-352 192 160-192 128z"})]))}}),oC=lC,rC=T({name:"Failed",__name:"failed",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m557.248 608 135.744-135.744-45.248-45.248-135.68 135.744-135.808-135.68-45.248 45.184L466.752 608l-135.68 135.68 45.184 45.312L512 653.248l135.744 135.744 45.248-45.248L557.312 608zM704 192h160v736H160V192h160v64h384zm-320 0V96h256v96z"})]))}}),sC=rC,iC=T({name:"Female",__name:"female",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 640a256 256 0 1 0 0-512 256 256 0 0 0 0 512m0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640"}),k("path",{fill:"currentColor",d:"M512 640q32 0 32 32v256q0 32-32 32t-32-32V672q0-32 32-32"}),k("path",{fill:"currentColor",d:"M352 800h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32"})]))}}),uC=iC,cC=T({name:"Files",__name:"files",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 384v448h768V384zm-32-64h832a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32m64-128h704v64H160zm96-128h512v64H256z"})]))}}),dC=cC,fC=T({name:"Film",__name:"film",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M160 160v704h704V160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32"}),k("path",{fill:"currentColor",d:"M320 288V128h64v352h256V128h64v160h160v64H704v128h160v64H704v128h160v64H704v160h-64V544H384v352h-64V736H128v-64h192V544H128v-64h192V352H128v-64z"})]))}}),pC=fC,vC=T({name:"Filter",__name:"filter",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M384 523.392V928a32 32 0 0 0 46.336 28.608l192-96A32 32 0 0 0 640 832V523.392l280.768-343.104a32 32 0 1 0-49.536-40.576l-288 352A32 32 0 0 0 576 512v300.224l-128 64V512a32 32 0 0 0-7.232-20.288L195.52 192H704a32 32 0 1 0 0-64H128a32 32 0 0 0-24.768 52.288z"})]))}}),hC=vC,mC=T({name:"Finished",__name:"finished",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M280.768 753.728 691.456 167.04a32 32 0 1 1 52.416 36.672L314.24 817.472a32 32 0 0 1-45.44 7.296l-230.4-172.8a32 32 0 0 1 38.4-51.2l203.968 152.96zM736 448a32 32 0 1 1 0-64h192a32 32 0 1 1 0 64zM608 640a32 32 0 0 1 0-64h319.936a32 32 0 1 1 0 64zM480 832a32 32 0 1 1 0-64h447.936a32 32 0 1 1 0 64z"})]))}}),gC=mC,yC=T({name:"FirstAidKit",__name:"first-aid-kit",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M192 256a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V320a64 64 0 0 0-64-64zm0-64h640a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H192A128 128 0 0 1 64 768V320a128 128 0 0 1 128-128"}),k("path",{fill:"currentColor",d:"M544 512h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96v-96a32 32 0 0 1 64 0zM352 128v64h320v-64zm-32-64h384a32 32 0 0 1 32 32v128a32 32 0 0 1-32 32H320a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"})]))}}),_C=yC,bC=T({name:"Flag",__name:"flag",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M288 128h608L736 384l160 256H288v320h-96V64h96z"})]))}}),wC=bC,CC=T({name:"Fold",__name:"fold",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M896 192H128v128h768zm0 256H384v128h512zm0 256H128v128h768zM320 384 128 512l192 128z"})]))}}),SC=CC,kC=T({name:"FolderAdd",__name:"folder-add",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m384 416V416h64v128h128v64H544v128h-64V608H352v-64z"})]))}}),EC=kC,MC=T({name:"FolderChecked",__name:"folder-checked",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m414.08 502.144 180.992-180.992L736.32 494.4 510.08 720.64l-158.4-158.336 45.248-45.312z"})]))}}),xC=MC,$C=T({name:"FolderDelete",__name:"folder-delete",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m370.752 448-90.496-90.496 45.248-45.248L512 530.752l90.496-90.496 45.248 45.248L557.248 576l90.496 90.496-45.248 45.248L512 621.248l-90.496 90.496-45.248-45.248z"})]))}}),TC=$C,OC=T({name:"FolderOpened",__name:"folder-opened",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M878.08 448H241.92l-96 384h636.16l96-384zM832 384v-64H485.76L357.504 192H128v448l57.92-231.744A32 32 0 0 1 216.96 384zm-24.96 512H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h287.872l128.384 128H864a32 32 0 0 1 32 32v96h23.04a32 32 0 0 1 31.04 39.744l-112 448A32 32 0 0 1 807.04 896"})]))}}),NC=OC,IC=T({name:"FolderRemove",__name:"folder-remove",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m256 416h320v64H352z"})]))}}),PC=IC,zC=T({name:"Folder",__name:"folder",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32"})]))}}),AC=zC,VC=T({name:"Food",__name:"food",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 352.576V352a288 288 0 0 1 491.072-204.224 192 192 0 0 1 274.24 204.48 64 64 0 0 1 57.216 74.24C921.6 600.512 850.048 710.656 736 756.992V800a96 96 0 0 1-96 96H384a96 96 0 0 1-96-96v-43.008c-114.048-46.336-185.6-156.48-214.528-330.496A64 64 0 0 1 128 352.64zm64-.576h64a160 160 0 0 1 320 0h64a224 224 0 0 0-448 0m128 0h192a96 96 0 0 0-192 0m439.424 0h68.544A128.256 128.256 0 0 0 704 192c-15.36 0-29.952 2.688-43.52 7.616 11.328 18.176 20.672 37.76 27.84 58.304A64.128 64.128 0 0 1 759.424 352M672 768H352v32a32 32 0 0 0 32 32h256a32 32 0 0 0 32-32zm-342.528-64h365.056c101.504-32.64 165.76-124.928 192.896-288H136.576c27.136 163.072 91.392 255.36 192.896 288"})]))}}),LC=VC,RC=T({name:"Football",__name:"football",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896m0-64a384 384 0 1 0 0-768 384 384 0 0 0 0 768"}),k("path",{fill:"currentColor",d:"M186.816 268.288c16-16.384 31.616-31.744 46.976-46.08 17.472 30.656 39.808 58.112 65.984 81.28l-32.512 56.448a385.984 385.984 0 0 1-80.448-91.648zm653.696-5.312a385.92 385.92 0 0 1-83.776 96.96l-32.512-56.384a322.923 322.923 0 0 0 68.48-85.76c15.552 14.08 31.488 29.12 47.808 45.184zM465.984 445.248l11.136-63.104a323.584 323.584 0 0 0 69.76 0l11.136 63.104a387.968 387.968 0 0 1-92.032 0m-62.72-12.8A381.824 381.824 0 0 1 320 396.544l32-55.424a319.885 319.885 0 0 0 62.464 27.712l-11.2 63.488zm300.8-35.84a381.824 381.824 0 0 1-83.328 35.84l-11.2-63.552A319.885 319.885 0 0 0 672 341.184l32 55.424zm-520.768 364.8a385.92 385.92 0 0 1 83.968-97.28l32.512 56.32c-26.88 23.936-49.856 52.352-67.52 84.032-16-13.44-32.32-27.712-48.96-43.072zm657.536.128a1442.759 1442.759 0 0 1-49.024 43.072 321.408 321.408 0 0 0-67.584-84.16l32.512-56.32c33.216 27.456 61.696 60.352 84.096 97.408zM465.92 578.752a387.968 387.968 0 0 1 92.032 0l-11.136 63.104a323.584 323.584 0 0 0-69.76 0zm-62.72 12.8 11.2 63.552a319.885 319.885 0 0 0-62.464 27.712L320 627.392a381.824 381.824 0 0 1 83.264-35.84zm300.8 35.84-32 55.424a318.272 318.272 0 0 0-62.528-27.712l11.2-63.488c29.44 8.64 57.28 20.736 83.264 35.776z"})]))}}),BC=RC,HC=T({name:"ForkSpoon",__name:"fork-spoon",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M256 410.304V96a32 32 0 0 1 64 0v314.304a96 96 0 0 0 64-90.56V96a32 32 0 0 1 64 0v223.744a160 160 0 0 1-128 156.8V928a32 32 0 1 1-64 0V476.544a160 160 0 0 1-128-156.8V96a32 32 0 0 1 64 0v223.744a96 96 0 0 0 64 90.56zM672 572.48C581.184 552.128 512 446.848 512 320c0-141.44 85.952-256 192-256s192 114.56 192 256c0 126.848-69.184 232.128-160 252.48V928a32 32 0 1 1-64 0zM704 512c66.048 0 128-82.56 128-192s-61.952-192-128-192-128 82.56-128 192 61.952 192 128 192"})]))}}),DC=HC,FC=T({name:"Fries",__name:"fries",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M608 224v-64a32 32 0 0 0-64 0v336h26.88A64 64 0 0 0 608 484.096zm101.12 160A64 64 0 0 0 672 395.904V384h64V224a32 32 0 1 0-64 0v160zm74.88 0a92.928 92.928 0 0 1 91.328 110.08l-60.672 323.584A96 96 0 0 1 720.32 896H303.68a96 96 0 0 1-94.336-78.336L148.672 494.08A92.928 92.928 0 0 1 240 384h-16V224a96 96 0 0 1 188.608-25.28A95.744 95.744 0 0 1 480 197.44V160a96 96 0 0 1 188.608-25.28A96 96 0 0 1 800 224v160zM670.784 512a128 128 0 0 1-99.904 48H453.12a128 128 0 0 1-99.84-48H352v-1.536a128.128 128.128 0 0 1-9.984-14.976L314.88 448H240a28.928 28.928 0 0 0-28.48 34.304L241.088 640h541.824l29.568-157.696A28.928 28.928 0 0 0 784 448h-74.88l-27.136 47.488A132.405 132.405 0 0 1 672 510.464V512zM480 288a32 32 0 0 0-64 0v196.096A64 64 0 0 0 453.12 496H480zm-128 96V224a32 32 0 0 0-64 0v160zh-37.12A64 64 0 0 1 352 395.904zm-98.88 320 19.072 101.888A32 32 0 0 0 303.68 832h416.64a32 32 0 0 0 31.488-26.112L770.88 704z"})]))}}),KC=FC,WC=T({name:"FullScreen",__name:"full-screen",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"})]))}}),Qv=WC,jC=T({name:"GobletFull",__name:"goblet-full",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M256 320h512c0-78.592-12.608-142.4-36.928-192h-434.24C269.504 192.384 256 256.256 256 320m503.936 64H264.064a256.128 256.128 0 0 0 495.872 0zM544 638.4V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.4A320 320 0 0 1 192 320c0-85.632 21.312-170.944 64-256h512c42.688 64.32 64 149.632 64 256a320 320 0 0 1-288 318.4"})]))}}),qC=jC,UC=T({name:"GobletSquareFull",__name:"goblet-square-full",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M256 270.912c10.048 6.72 22.464 14.912 28.992 18.624a220.16 220.16 0 0 0 114.752 30.72c30.592 0 49.408-9.472 91.072-41.152l.64-.448c52.928-40.32 82.368-55.04 132.288-54.656 55.552.448 99.584 20.8 142.72 57.408l1.536 1.28V128H256v142.912zm.96 76.288C266.368 482.176 346.88 575.872 512 576c157.44.064 237.952-85.056 253.248-209.984a952.32 952.32 0 0 1-40.192-35.712c-32.704-27.776-63.36-41.92-101.888-42.24-31.552-.256-50.624 9.28-93.12 41.6l-.576.448c-52.096 39.616-81.024 54.208-129.792 54.208-54.784 0-100.48-13.376-142.784-37.056zM480 638.848C250.624 623.424 192 442.496 192 319.68V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v224c0 122.816-58.624 303.68-288 318.912V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96z"})]))}}),YC=UC,GC=T({name:"GobletSquare",__name:"goblet-square",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M544 638.912V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.848C250.624 623.424 192 442.496 192 319.68V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v224c0 122.816-58.624 303.68-288 318.912M256 319.68c0 149.568 80 256.192 256 256.256C688.128 576 768 469.568 768 320V128H256z"})]))}}),XC=GC,ZC=T({name:"Goblet",__name:"goblet",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M544 638.4V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.4A320 320 0 0 1 192 320c0-85.632 21.312-170.944 64-256h512c42.688 64.32 64 149.632 64 256a320 320 0 0 1-288 318.4M256 320a256 256 0 1 0 512 0c0-78.592-12.608-142.4-36.928-192h-434.24C269.504 192.384 256 256.256 256 320"})]))}}),JC=ZC,QC=T({name:"GoldMedal",__name:"gold-medal",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m772.13 452.84 53.86-351.81c1.32-10.01-1.17-18.68-7.49-26.02S804.35 64 795.01 64H228.99v-.01h-.06c-9.33 0-17.15 3.67-23.49 11.01s-8.83 16.01-7.49 26.02l53.87 351.89C213.54 505.73 193.59 568.09 192 640c2 90.67 33.17 166.17 93.5 226.5S421.33 957.99 512 960c90.67-2 166.17-33.17 226.5-93.5 60.33-60.34 91.49-135.83 93.5-226.5-1.59-71.94-21.56-134.32-59.87-187.16zM640.01 128h117.02l-39.01 254.02c-20.75-10.64-40.74-19.73-59.94-27.28-5.92-3-11.95-5.8-18.08-8.41V128h.01zM576 128v198.76c-13.18-2.58-26.74-4.43-40.67-5.55-8.07-.8-15.85-1.2-23.33-1.2-10.54 0-21.09.66-31.64 1.96a359.844 359.844 0 0 0-32.36 4.79V128zm-192 0h.04v218.3c-6.22 2.66-12.34 5.5-18.36 8.56-19.13 7.54-39.02 16.6-59.66 27.16L267.01 128zm308.99 692.99c-48 48-108.33 73-180.99 75.01-72.66-2.01-132.99-27.01-180.99-75.01S258.01 712.66 256 640c2.01-72.66 27.01-132.99 75.01-180.99 19.67-19.67 41.41-35.47 65.22-47.41 38.33-15.04 71.15-23.92 98.44-26.65 5.07-.41 10.2-.7 15.39-.88.63-.01 1.28-.03 1.91-.03.66 0 1.35.03 2.02.04 5.11.17 10.15.46 15.13.86 27.4 2.71 60.37 11.65 98.91 26.79 23.71 11.93 45.36 27.69 64.96 47.29 48 48 73 108.33 75.01 180.99-2.01 72.65-27.01 132.98-75.01 180.98z"}),k("path",{fill:"currentColor",d:"M544 480H416v64h64v192h-64v64h192v-64h-64z"})]))}}),eS=QC,tS=T({name:"GoodsFilled",__name:"goods-filled",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M192 352h640l64 544H128zm128 224h64V448h-64zm320 0h64V448h-64zM384 288h-64a192 192 0 1 1 384 0h-64a128 128 0 1 0-256 0"})]))}}),nS=tS,aS=T({name:"Goods",__name:"goods",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M320 288v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4h131.072a32 32 0 0 1 31.808 28.8l57.6 576a32 32 0 0 1-31.808 35.2H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320zm64 0h256v-22.336C640 189.248 582.272 128 512 128c-70.272 0-128 61.248-128 137.664v22.4zm-64 64H217.92l-51.2 512h690.56l-51.264-512H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0z"})]))}}),lS=aS,oS=T({name:"Grape",__name:"grape",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M544 195.2a160 160 0 0 1 96 60.8 160 160 0 1 1 146.24 254.976 160 160 0 0 1-128 224 160 160 0 1 1-292.48 0 160 160 0 0 1-128-224A160 160 0 1 1 384 256a160 160 0 0 1 96-60.8V128h-64a32 32 0 0 1 0-64h192a32 32 0 0 1 0 64h-64zM512 448a96 96 0 1 0 0-192 96 96 0 0 0 0 192m-256 0a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128 224a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128 224a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128-224a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128-224a96 96 0 1 0 0-192 96 96 0 0 0 0 192"})]))}}),rS=oS,sS=T({name:"Grid",__name:"grid",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M640 384v256H384V384zm64 0h192v256H704zm-64 512H384V704h256zm64 0V704h192v192zm-64-768v192H384V128zm64 0h192v192H704zM320 384v256H128V384zm0 512H128V704h192zm0-768v192H128V128z"})]))}}),iS=sS,uS=T({name:"Guide",__name:"guide",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M640 608h-64V416h64zm0 160v160a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V768h64v128h128V768zM384 608V416h64v192zm256-352h-64V128H448v128h-64V96a32 32 0 0 1 32-32h192a32 32 0 0 1 32 32z"}),k("path",{fill:"currentColor",d:"m220.8 256-71.232 80 71.168 80H768V256H220.8zm-14.4-64H800a32 32 0 0 1 32 32v224a32 32 0 0 1-32 32H206.4a32 32 0 0 1-23.936-10.752l-99.584-112a32 32 0 0 1 0-42.496l99.584-112A32 32 0 0 1 206.4 192m678.784 496-71.104 80H266.816V608h547.2l71.168 80zm-56.768-144H234.88a32 32 0 0 0-32 32v224a32 32 0 0 0 32 32h593.6a32 32 0 0 0 23.936-10.752l99.584-112a32 32 0 0 0 0-42.496l-99.584-112A32 32 0 0 0 828.48 544z"})]))}}),cS=uS,dS=T({name:"Handbag",__name:"handbag",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M887.01 264.99c-6-5.99-13.67-8.99-23.01-8.99H704c-1.34-54.68-20.01-100.01-56-136s-81.32-54.66-136-56c-54.68 1.34-100.01 20.01-136 56s-54.66 81.32-56 136H160c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.67-8.99 23.01v640c0 9.35 2.99 17.02 8.99 23.01S150.66 960 160 960h704c9.35 0 17.02-2.99 23.01-8.99S896 937.34 896 928V288c0-9.35-2.99-17.02-8.99-23.01M421.5 165.5c24.32-24.34 54.49-36.84 90.5-37.5 35.99.68 66.16 13.18 90.5 37.5s36.84 54.49 37.5 90.5H384c.68-35.99 13.18-66.16 37.5-90.5M832 896H192V320h128v128h64V320h256v128h64V320h128z"})]))}}),fS=dS,pS=T({name:"Headset",__name:"headset",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M896 529.152V512a384 384 0 1 0-768 0v17.152A128 128 0 0 1 320 640v128a128 128 0 1 1-256 0V512a448 448 0 1 1 896 0v256a128 128 0 1 1-256 0V640a128 128 0 0 1 192-110.848M896 640a64 64 0 0 0-128 0v128a64 64 0 0 0 128 0zm-768 0v128a64 64 0 0 0 128 0V640a64 64 0 1 0-128 0"})]))}}),vS=pS,hS=T({name:"HelpFilled",__name:"help-filled",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M926.784 480H701.312A192.512 192.512 0 0 0 544 322.688V97.216A416.064 416.064 0 0 1 926.784 480m0 64A416.064 416.064 0 0 1 544 926.784V701.312A192.512 192.512 0 0 0 701.312 544zM97.28 544h225.472A192.512 192.512 0 0 0 480 701.312v225.472A416.064 416.064 0 0 1 97.216 544zm0-64A416.064 416.064 0 0 1 480 97.216v225.472A192.512 192.512 0 0 0 322.688 480H97.216z"})]))}}),mS=hS,gS=T({name:"Help",__name:"help",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m759.936 805.248-90.944-91.008A254.912 254.912 0 0 1 512 768a254.912 254.912 0 0 1-156.992-53.76l-90.944 91.008A382.464 382.464 0 0 0 512 896c94.528 0 181.12-34.176 247.936-90.752m45.312-45.312A382.464 382.464 0 0 0 896 512c0-94.528-34.176-181.12-90.752-247.936l-91.008 90.944C747.904 398.4 768 452.864 768 512c0 59.136-20.096 113.6-53.76 156.992l91.008 90.944zm-45.312-541.184A382.464 382.464 0 0 0 512 128c-94.528 0-181.12 34.176-247.936 90.752l90.944 91.008A254.912 254.912 0 0 1 512 256c59.136 0 113.6 20.096 156.992 53.76l90.944-91.008zm-541.184 45.312A382.464 382.464 0 0 0 128 512c0 94.528 34.176 181.12 90.752 247.936l91.008-90.944A254.912 254.912 0 0 1 256 512c0-59.136 20.096-113.6 53.76-156.992zm417.28 394.496a194.56 194.56 0 0 0 22.528-22.528C686.912 602.56 704 559.232 704 512a191.232 191.232 0 0 0-67.968-146.56A191.296 191.296 0 0 0 512 320a191.232 191.232 0 0 0-146.56 67.968C337.088 421.44 320 464.768 320 512a191.232 191.232 0 0 0 67.968 146.56C421.44 686.912 464.768 704 512 704c47.296 0 90.56-17.088 124.032-45.44zM512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),yS=gS,_S=T({name:"Hide",__name:"hide",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("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.2zM889.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"}),k("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"})]))}}),e1=_S,bS=T({name:"Histogram",__name:"histogram",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M416 896V128h192v768zm-288 0V448h192v448zm576 0V320h192v576z"})]))}}),wS=bS,CS=T({name:"HomeFilled",__name:"home-filled",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 128 128 447.936V896h255.936V640H640v256h255.936V447.936z"})]))}}),SS=CS,kS=T({name:"HotWater",__name:"hot-water",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M273.067 477.867h477.866V409.6H273.067zm0 68.266v51.2A187.733 187.733 0 0 0 460.8 785.067h102.4a187.733 187.733 0 0 0 187.733-187.734v-51.2H273.067zm-34.134-204.8h546.134a34.133 34.133 0 0 1 34.133 34.134v221.866a256 256 0 0 1-256 256H460.8a256 256 0 0 1-256-256V375.467a34.133 34.133 0 0 1 34.133-34.134zM512 34.133a34.133 34.133 0 0 1 34.133 34.134v170.666a34.133 34.133 0 0 1-68.266 0V68.267A34.133 34.133 0 0 1 512 34.133zM375.467 102.4a34.133 34.133 0 0 1 34.133 34.133v102.4a34.133 34.133 0 0 1-68.267 0v-102.4a34.133 34.133 0 0 1 34.134-34.133m273.066 0a34.133 34.133 0 0 1 34.134 34.133v102.4a34.133 34.133 0 1 1-68.267 0v-102.4a34.133 34.133 0 0 1 34.133-34.133M170.667 921.668h682.666a34.133 34.133 0 1 1 0 68.267H170.667a34.133 34.133 0 1 1 0-68.267z"})]))}}),ES=kS,MS=T({name:"House",__name:"house",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M192 413.952V896h640V413.952L512 147.328zM139.52 374.4l352-293.312a32 32 0 0 1 40.96 0l352 293.312A32 32 0 0 1 896 398.976V928a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V398.976a32 32 0 0 1 11.52-24.576"})]))}}),xS=MS,$S=T({name:"IceCreamRound",__name:"ice-cream-round",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m308.352 489.344 226.304 226.304a32 32 0 0 0 45.248 0L783.552 512A192 192 0 1 0 512 240.448L308.352 444.16a32 32 0 0 0 0 45.248zm135.744 226.304L308.352 851.392a96 96 0 0 1-135.744-135.744l135.744-135.744-45.248-45.248a96 96 0 0 1 0-135.808L466.752 195.2A256 256 0 0 1 828.8 557.248L625.152 760.96a96 96 0 0 1-135.808 0l-45.248-45.248zM398.848 670.4 353.6 625.152 217.856 760.896a32 32 0 0 0 45.248 45.248zm248.96-384.64a32 32 0 0 1 0 45.248L466.624 512a32 32 0 1 1-45.184-45.248l180.992-181.056a32 32 0 0 1 45.248 0zm90.496 90.496a32 32 0 0 1 0 45.248L557.248 602.496A32 32 0 1 1 512 557.248l180.992-180.992a32 32 0 0 1 45.312 0z"})]))}}),TS=$S,OS=T({name:"IceCreamSquare",__name:"ice-cream-square",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M416 640h256a32 32 0 0 0 32-32V160a32 32 0 0 0-32-32H352a32 32 0 0 0-32 32v448a32 32 0 0 0 32 32zm192 64v160a96 96 0 0 1-192 0V704h-64a96 96 0 0 1-96-96V160a96 96 0 0 1 96-96h320a96 96 0 0 1 96 96v448a96 96 0 0 1-96 96zm-64 0h-64v160a32 32 0 1 0 64 0z"})]))}}),NS=OS,IS=T({name:"IceCream",__name:"ice-cream",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128.64 448a208 208 0 0 1 193.536-191.552 224 224 0 0 1 445.248 15.488A208.128 208.128 0 0 1 894.784 448H896L548.8 983.68a32 32 0 0 1-53.248.704L128 448zm64.256 0h286.208a144 144 0 0 0-286.208 0zm351.36 0h286.272a144 144 0 0 0-286.272 0zm-294.848 64 271.808 396.608L778.24 512H249.408zM511.68 352.64a207.872 207.872 0 0 1 189.184-96.192 160 160 0 0 0-314.752 5.632c52.608 12.992 97.28 46.08 125.568 90.56"})]))}}),PS=IS,zS=T({name:"IceDrink",__name:"ice-drink",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 448v128h239.68l16.064-128zm-64 0H256.256l16.064 128H448zm64-255.36V384h247.744A256.128 256.128 0 0 0 512 192.64m-64 8.064A256.448 256.448 0 0 0 264.256 384H448zm64-72.064A320.128 320.128 0 0 1 825.472 384H896a32 32 0 1 1 0 64h-64v1.92l-56.96 454.016A64 64 0 0 1 711.552 960H312.448a64 64 0 0 1-63.488-56.064L192 449.92V448h-64a32 32 0 0 1 0-64h70.528A320.384 320.384 0 0 1 448 135.04V96a96 96 0 0 1 96-96h128a32 32 0 1 1 0 64H544a32 32 0 0 0-32 32zM743.68 640H280.32l32.128 256h399.104z"})]))}}),AS=zS,VS=T({name:"IceTea",__name:"ice-tea",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M197.696 259.648a320.128 320.128 0 0 1 628.608 0A96 96 0 0 1 896 352v64a96 96 0 0 1-71.616 92.864l-49.408 395.072A64 64 0 0 1 711.488 960H312.512a64 64 0 0 1-63.488-56.064l-49.408-395.072A96 96 0 0 1 128 416v-64a96 96 0 0 1 69.696-92.352M264.064 256h495.872a256.128 256.128 0 0 0-495.872 0m495.424 256H264.512l48 384h398.976zM224 448h576a32 32 0 0 0 32-32v-64a32 32 0 0 0-32-32H224a32 32 0 0 0-32 32v64a32 32 0 0 0 32 32m160 192h64v64h-64zm192 64h64v64h-64zm-128 64h64v64h-64zm64-192h64v64h-64z"})]))}}),LS=VS,RS=T({name:"InfoFilled",__name:"info-filled",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),xi=RS,BS=T({name:"Iphone",__name:"iphone",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M224 768v96.064a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V768zm0-64h576V160a64 64 0 0 0-64-64H288a64 64 0 0 0-64 64zm32 288a96 96 0 0 1-96-96V128a96 96 0 0 1 96-96h512a96 96 0 0 1 96 96v768a96 96 0 0 1-96 96zm304-144a48 48 0 1 1-96 0 48 48 0 0 1 96 0"})]))}}),HS=BS,DS=T({name:"Key",__name:"key",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M448 456.064V96a32 32 0 0 1 32-32.064L672 64a32 32 0 0 1 0 64H512v128h160a32 32 0 0 1 0 64H512v128a256 256 0 1 1-64 8.064M512 896a192 192 0 1 0 0-384 192 192 0 0 0 0 384"})]))}}),FS=DS,KS=T({name:"KnifeFork",__name:"knife-fork",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M256 410.56V96a32 32 0 0 1 64 0v314.56A96 96 0 0 0 384 320V96a32 32 0 0 1 64 0v224a160 160 0 0 1-128 156.8V928a32 32 0 1 1-64 0V476.8A160 160 0 0 1 128 320V96a32 32 0 0 1 64 0v224a96 96 0 0 0 64 90.56m384-250.24V544h126.72c-3.328-78.72-12.928-147.968-28.608-207.744-14.336-54.528-46.848-113.344-98.112-175.872zM640 608v320a32 32 0 1 1-64 0V64h64c85.312 89.472 138.688 174.848 160 256 21.312 81.152 32 177.152 32 288z"})]))}}),WS=KS,jS=T({name:"Lightning",__name:"lightning",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M288 671.36v64.128A239.808 239.808 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 736 734.016v-64.768a192 192 0 0 0 3.328-377.92l-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 91.968 70.464 167.36 160.256 175.232z"}),k("path",{fill:"currentColor",d:"M416 736a32 32 0 0 1-27.776-47.872l128-224a32 32 0 1 1 55.552 31.744L471.168 672H608a32 32 0 0 1 27.776 47.872l-128 224a32 32 0 1 1-55.68-31.744L552.96 736z"})]))}}),qS=jS,US=T({name:"Link",__name:"link",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M715.648 625.152 670.4 579.904l90.496-90.56c75.008-74.944 85.12-186.368 22.656-248.896-62.528-62.464-173.952-52.352-248.96 22.656L444.16 353.6l-45.248-45.248 90.496-90.496c100.032-99.968 251.968-110.08 339.456-22.656 87.488 87.488 77.312 239.424-22.656 339.456l-90.496 90.496zm-90.496 90.496-90.496 90.496C434.624 906.112 282.688 916.224 195.2 828.8c-87.488-87.488-77.312-239.424 22.656-339.456l90.496-90.496 45.248 45.248-90.496 90.56c-75.008 74.944-85.12 186.368-22.656 248.896 62.528 62.464 173.952 52.352 248.96-22.656l90.496-90.496zm0-362.048 45.248 45.248L398.848 670.4 353.6 625.152z"})]))}}),YS=US,GS=T({name:"List",__name:"list",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M704 192h160v736H160V192h160v64h384zM288 512h448v-64H288zm0 256h448v-64H288zm96-576V96h256v96z"})]))}}),XS=GS,ZS=T({name:"Loading",__name:"loading",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.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 0m-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"})]))}}),ca=ZS,JS=T({name:"LocationFilled",__name:"location-filled",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 928c23.936 0 117.504-68.352 192.064-153.152C803.456 661.888 864 535.808 864 416c0-189.632-155.84-320-352-320S160 226.368 160 416c0 120.32 60.544 246.4 159.936 359.232C394.432 859.84 488 928 512 928m0-435.2a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 140.8a204.8 204.8 0 1 1 0-409.6 204.8 204.8 0 0 1 0 409.6"})]))}}),QS=JS,e7=T({name:"LocationInformation",__name:"location-information",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),k("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),k("path",{fill:"currentColor",d:"M512 512a96 96 0 1 0 0-192 96 96 0 0 0 0 192m0 64a160 160 0 1 1 0-320 160 160 0 0 1 0 320"})]))}}),t7=e7,n7=T({name:"Location",__name:"location",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),k("path",{fill:"currentColor",d:"M512 512a96 96 0 1 0 0-192 96 96 0 0 0 0 192m0 64a160 160 0 1 1 0-320 160 160 0 0 1 0 320"})]))}}),a7=n7,l7=T({name:"Lock",__name:"lock",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96"}),k("path",{fill:"currentColor",d:"M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32m192-160v-64a192 192 0 1 0-384 0v64zM512 64a256 256 0 0 1 256 256v128H256V320A256 256 0 0 1 512 64"})]))}}),o7=l7,r7=T({name:"Lollipop",__name:"lollipop",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M513.28 448a64 64 0 1 1 76.544 49.728A96 96 0 0 0 768 448h64a160 160 0 0 1-320 0zm-126.976-29.696a256 256 0 1 0 43.52-180.48A256 256 0 0 1 832 448h-64a192 192 0 0 0-381.696-29.696m105.664 249.472L285.696 874.048a96 96 0 0 1-135.68-135.744l206.208-206.272a320 320 0 1 1 135.744 135.744zm-54.464-36.032a321.92 321.92 0 0 1-45.248-45.248L195.2 783.552a32 32 0 1 0 45.248 45.248l197.056-197.12z"})]))}}),s7=r7,i7=T({name:"MagicStick",__name:"magic-stick",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 64h64v192h-64zm0 576h64v192h-64zM160 480v-64h192v64zm576 0v-64h192v64zM249.856 199.04l45.248-45.184L430.848 289.6 385.6 334.848 249.856 199.104zM657.152 606.4l45.248-45.248 135.744 135.744-45.248 45.248zM114.048 923.2 68.8 877.952l316.8-316.8 45.248 45.248zM702.4 334.848 657.152 289.6l135.744-135.744 45.248 45.248z"})]))}}),u7=i7,c7=T({name:"Magnet",__name:"magnet",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M832 320V192H704v320a192 192 0 1 1-384 0V192H192v128h128v64H192v128a320 320 0 0 0 640 0V384H704v-64zM640 512V128h256v384a384 384 0 1 1-768 0V128h256v384a128 128 0 1 0 256 0"})]))}}),d7=c7,f7=T({name:"Male",__name:"male",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M399.5 849.5a225 225 0 1 0 0-450 225 225 0 0 0 0 450m0 56.25a281.25 281.25 0 1 1 0-562.5 281.25 281.25 0 0 1 0 562.5m253.125-787.5h225q28.125 0 28.125 28.125T877.625 174.5h-225q-28.125 0-28.125-28.125t28.125-28.125"}),k("path",{fill:"currentColor",d:"M877.625 118.25q28.125 0 28.125 28.125v225q0 28.125-28.125 28.125T849.5 371.375v-225q0-28.125 28.125-28.125"}),k("path",{fill:"currentColor",d:"M604.813 458.9 565.1 419.131l292.613-292.668 39.825 39.824z"})]))}}),p7=f7,v7=T({name:"Management",__name:"management",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M576 128v288l96-96 96 96V128h128v768H320V128zm-448 0h128v768H128z"})]))}}),h7=v7,m7=T({name:"MapLocation",__name:"map-location",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),k("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256m345.6 192L960 960H672v-64H352v64H64l102.4-256zm-68.928 0H235.328l-76.8 192h706.944z"})]))}}),g7=m7,y7=T({name:"Medal",__name:"medal",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 896a256 256 0 1 0 0-512 256 256 0 0 0 0 512m0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640"}),k("path",{fill:"currentColor",d:"M576 128H448v200a286.72 286.72 0 0 1 64-8c19.52 0 40.832 2.688 64 8zm64 0v219.648c24.448 9.088 50.56 20.416 78.4 33.92L757.44 128zm-256 0H266.624l39.04 253.568c27.84-13.504 53.888-24.832 78.336-33.92V128zM229.312 64h565.376a32 32 0 0 1 31.616 36.864L768 480c-113.792-64-199.104-96-256-96-56.896 0-142.208 32-256 96l-58.304-379.136A32 32 0 0 1 229.312 64"})]))}}),_7=y7,b7=T({name:"Memo",__name:"memo",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M480 320h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32"}),k("path",{fill:"currentColor",d:"M887.01 72.99C881.01 67 873.34 64 864 64H160c-9.35 0-17.02 3-23.01 8.99C131 78.99 128 86.66 128 96v832c0 9.35 2.99 17.02 8.99 23.01S150.66 960 160 960h704c9.35 0 17.02-2.99 23.01-8.99S896 937.34 896 928V96c0-9.35-3-17.02-8.99-23.01M192 896V128h96v768zm640 0H352V128h480z"}),k("path",{fill:"currentColor",d:"M480 512h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32m0 192h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32"})]))}}),w7=b7,C7=T({name:"Menu",__name:"menu",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M160 448a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zM160 896a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32z"})]))}}),S7=C7,k7=T({name:"MessageBox",__name:"message-box",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M288 384h448v64H288zm96-128h256v64H384zM131.456 512H384v128h256V512h252.544L721.856 192H302.144zM896 576H704v128H320V576H128v256h768zM275.776 128h472.448a32 32 0 0 1 28.608 17.664l179.84 359.552A32 32 0 0 1 960 519.552V864a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V519.552a32 32 0 0 1 3.392-14.336l179.776-359.552A32 32 0 0 1 275.776 128z"})]))}}),E7=k7,M7=T({name:"Message",__name:"message",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 224v512a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V224zm0-64h768a64 64 0 0 1 64 64v512a128 128 0 0 1-128 128H192A128 128 0 0 1 64 736V224a64 64 0 0 1 64-64"}),k("path",{fill:"currentColor",d:"M904 224 656.512 506.88a192 192 0 0 1-289.024 0L120 224zm-698.944 0 210.56 240.704a128 128 0 0 0 192.704 0L818.944 224H205.056"})]))}}),x7=M7,$7=T({name:"Mic",__name:"mic",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M480 704h160a64 64 0 0 0 64-64v-32h-96a32 32 0 0 1 0-64h96v-96h-96a32 32 0 0 1 0-64h96v-96h-96a32 32 0 0 1 0-64h96v-32a64 64 0 0 0-64-64H384a64 64 0 0 0-64 64v32h96a32 32 0 0 1 0 64h-96v96h96a32 32 0 0 1 0 64h-96v96h96a32 32 0 0 1 0 64h-96v32a64 64 0 0 0 64 64zm64 64v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768h-96a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64h256a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128z"})]))}}),T7=$7,O7=T({name:"Microphone",__name:"microphone",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 128a128 128 0 0 0-128 128v256a128 128 0 1 0 256 0V256a128 128 0 0 0-128-128m0-64a192 192 0 0 1 192 192v256a192 192 0 1 1-384 0V256A192 192 0 0 1 512 64m-32 832v-64a288 288 0 0 1-288-288v-32a32 32 0 0 1 64 0v32a224 224 0 0 0 224 224h64a224 224 0 0 0 224-224v-32a32 32 0 1 1 64 0v32a288 288 0 0 1-288 288v64h64a32 32 0 1 1 0 64H416a32 32 0 1 1 0-64z"})]))}}),N7=O7,I7=T({name:"MilkTea",__name:"milk-tea",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M416 128V96a96 96 0 0 1 96-96h128a32 32 0 1 1 0 64H512a32 32 0 0 0-32 32v32h320a96 96 0 0 1 11.712 191.296l-39.68 581.056A64 64 0 0 1 708.224 960H315.776a64 64 0 0 1-63.872-59.648l-39.616-581.056A96 96 0 0 1 224 128zM276.48 320l39.296 576h392.448l4.8-70.784a224.064 224.064 0 0 1 30.016-439.808L747.52 320zM224 256h576a32 32 0 1 0 0-64H224a32 32 0 0 0 0 64m493.44 503.872 21.12-309.12a160 160 0 0 0-21.12 309.12"})]))}}),P7=I7,z7=T({name:"Minus",__name:"minus",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),t1=z7,A7=T({name:"Money",__name:"money",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M256 640v192h640V384H768v-64h150.976c14.272 0 19.456 1.472 24.64 4.288a29.056 29.056 0 0 1 12.16 12.096c2.752 5.184 4.224 10.368 4.224 24.64v493.952c0 14.272-1.472 19.456-4.288 24.64a29.056 29.056 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H233.024c-14.272 0-19.456-1.472-24.64-4.288a29.056 29.056 0 0 1-12.16-12.096c-2.688-5.184-4.224-10.368-4.224-24.576V640z"}),k("path",{fill:"currentColor",d:"M768 192H128v448h640zm64-22.976v493.952c0 14.272-1.472 19.456-4.288 24.64a29.056 29.056 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H105.024c-14.272 0-19.456-1.472-24.64-4.288a29.056 29.056 0 0 1-12.16-12.096C65.536 682.432 64 677.248 64 663.04V169.024c0-14.272 1.472-19.456 4.288-24.64a29.056 29.056 0 0 1 12.096-12.16C85.568 129.536 90.752 128 104.96 128h685.952c14.272 0 19.456 1.472 24.64 4.288a29.056 29.056 0 0 1 12.16 12.096c2.752 5.184 4.224 10.368 4.224 24.64z"}),k("path",{fill:"currentColor",d:"M448 576a160 160 0 1 1 0-320 160 160 0 0 1 0 320m0-64a96 96 0 1 0 0-192 96 96 0 0 0 0 192"})]))}}),V7=A7,L7=T({name:"Monitor",__name:"monitor",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M544 768v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768H192A128 128 0 0 1 64 640V256a128 128 0 0 1 128-128h640a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128zM192 192a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64z"})]))}}),R7=L7,B7=T({name:"MoonNight",__name:"moon-night",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M384 512a448 448 0 0 1 215.872-383.296A384 384 0 0 0 213.76 640h188.8A448.256 448.256 0 0 1 384 512M171.136 704a448 448 0 0 1 636.992-575.296A384 384 0 0 0 499.328 704h-328.32z"}),k("path",{fill:"currentColor",d:"M32 640h960q32 0 32 32t-32 32H32q-32 0-32-32t32-32m128 128h384a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m160 127.68 224 .256a32 32 0 0 1 32 32V928a32 32 0 0 1-32 32l-224-.384a32 32 0 0 1-32-32v-.064a32 32 0 0 1 32-32z"})]))}}),H7=B7,D7=T({name:"Moon",__name:"moon",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M240.448 240.448a384 384 0 1 0 559.424 525.696 448 448 0 0 1-542.016-542.08 390.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.696"})]))}}),F7=D7,K7=T({name:"MoreFilled",__name:"more-filled",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"})]))}}),Hu=K7,W7=T({name:"More",__name:"more",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("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-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96"})]))}}),n1=W7,j7=T({name:"MostlyCloudy",__name:"mostly-cloudy",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M737.216 357.952 704 349.824l-11.776-32a192.064 192.064 0 0 0-367.424 23.04l-8.96 39.04-39.04 8.96A192.064 192.064 0 0 0 320 768h368a207.808 207.808 0 0 0 207.808-208 208.32 208.32 0 0 0-158.592-202.048m15.168-62.208A272.32 272.32 0 0 1 959.744 560a271.808 271.808 0 0 1-271.552 272H320a256 256 0 0 1-57.536-505.536 256.128 256.128 0 0 1 489.92-30.72"})]))}}),q7=j7,U7=T({name:"Mouse",__name:"mouse",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M438.144 256c-68.352 0-92.736 4.672-117.76 18.112-20.096 10.752-35.52 26.176-46.272 46.272C260.672 345.408 256 369.792 256 438.144v275.712c0 68.352 4.672 92.736 18.112 117.76 10.752 20.096 26.176 35.52 46.272 46.272C345.408 891.328 369.792 896 438.144 896h147.712c68.352 0 92.736-4.672 117.76-18.112 20.096-10.752 35.52-26.176 46.272-46.272C763.328 806.592 768 782.208 768 713.856V438.144c0-68.352-4.672-92.736-18.112-117.76a110.464 110.464 0 0 0-46.272-46.272C678.592 260.672 654.208 256 585.856 256zm0-64h147.712c85.568 0 116.608 8.96 147.904 25.6 31.36 16.768 55.872 41.344 72.576 72.64C823.104 321.536 832 352.576 832 438.08v275.84c0 85.504-8.96 116.544-25.6 147.84a174.464 174.464 0 0 1-72.64 72.576C702.464 951.104 671.424 960 585.92 960H438.08c-85.504 0-116.544-8.96-147.84-25.6a174.464 174.464 0 0 1-72.64-72.704c-16.768-31.296-25.664-62.336-25.664-147.84v-275.84c0-85.504 8.96-116.544 25.6-147.84a174.464 174.464 0 0 1 72.768-72.576c31.232-16.704 62.272-25.6 147.776-25.6z"}),k("path",{fill:"currentColor",d:"M512 320q32 0 32 32v128q0 32-32 32t-32-32V352q0-32 32-32m32-96a32 32 0 0 1-64 0v-64a32 32 0 0 0-32-32h-96a32 32 0 0 1 0-64h96a96 96 0 0 1 96 96z"})]))}}),Y7=U7,G7=T({name:"Mug",__name:"mug",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M736 800V160H160v640a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64m64-544h63.552a96 96 0 0 1 96 96v224a96 96 0 0 1-96 96H800v128a128 128 0 0 1-128 128H224A128 128 0 0 1 96 800V128a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 64v288h63.552a32 32 0 0 0 32-32V352a32 32 0 0 0-32-32z"})]))}}),X7=G7,Z7=T({name:"MuteNotification",__name:"mute-notification",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m241.216 832 63.616-64H768V448c0-42.368-10.24-82.304-28.48-117.504l46.912-47.232C815.36 331.392 832 387.84 832 448v320h96a32 32 0 1 1 0 64zm-90.24 0H96a32 32 0 1 1 0-64h96V448a320.128 320.128 0 0 1 256-313.6V128a64 64 0 1 1 128 0v6.4a319.552 319.552 0 0 1 171.648 97.088l-45.184 45.44A256 256 0 0 0 256 448v278.336L151.04 832zM448 896h128a64 64 0 0 1-128 0"}),k("path",{fill:"currentColor",d:"M150.72 859.072a32 32 0 0 1-45.44-45.056l704-708.544a32 32 0 0 1 45.44 45.056l-704 708.544z"})]))}}),J7=Z7,Q7=T({name:"Mute",__name:"mute",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m412.16 592.128-45.44 45.44A191.232 191.232 0 0 1 320 512V256a192 192 0 1 1 384 0v44.352l-64 64V256a128 128 0 1 0-256 0v256c0 30.336 10.56 58.24 28.16 80.128m51.968 38.592A128 128 0 0 0 640 512v-57.152l64-64V512a192 192 0 0 1-287.68 166.528zM314.88 779.968l46.144-46.08A222.976 222.976 0 0 0 480 768h64a224 224 0 0 0 224-224v-32a32 32 0 1 1 64 0v32a288 288 0 0 1-288 288v64h64a32 32 0 1 1 0 64H416a32 32 0 1 1 0-64h64v-64c-61.44 0-118.4-19.2-165.12-52.032M266.752 737.6A286.976 286.976 0 0 1 192 544v-32a32 32 0 0 1 64 0v32c0 56.832 21.184 108.8 56.064 148.288z"}),k("path",{fill:"currentColor",d:"M150.72 859.072a32 32 0 0 1-45.44-45.056l704-708.544a32 32 0 0 1 45.44 45.056l-704 708.544z"})]))}}),ek=Q7,tk=T({name:"NoSmoking",__name:"no-smoking",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M440.256 576H256v128h56.256l-64 64H224a32 32 0 0 1-32-32V544a32 32 0 0 1 32-32h280.256zm143.488 128H704V583.744L775.744 512H928a32 32 0 0 1 32 32v192a32 32 0 0 1-32 32H519.744zM768 576v128h128V576zm-29.696-207.552 45.248 45.248-497.856 497.856-45.248-45.248zM256 64h64v320h-64zM128 192h64v192h-64zM64 512h64v256H64z"})]))}}),nk=tk,ak=T({name:"Notebook",__name:"notebook",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M192 128v768h640V128zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),k("path",{fill:"currentColor",d:"M672 128h64v768h-64zM96 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32"})]))}}),lk=ak,ok=T({name:"Notification",__name:"notification",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 128v64H256a64 64 0 0 0-64 64v512a64 64 0 0 0 64 64h512a64 64 0 0 0 64-64V512h64v256a128 128 0 0 1-128 128H256a128 128 0 0 1-128-128V256a128 128 0 0 1 128-128z"}),k("path",{fill:"currentColor",d:"M768 384a128 128 0 1 0 0-256 128 128 0 0 0 0 256m0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384"})]))}}),rk=ok,sk=T({name:"Odometer",__name:"odometer",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),k("path",{fill:"currentColor",d:"M192 512a320 320 0 1 1 640 0 32 32 0 1 1-64 0 256 256 0 1 0-512 0 32 32 0 0 1-64 0"}),k("path",{fill:"currentColor",d:"M570.432 627.84A96 96 0 1 1 509.568 608l60.992-187.776A32 32 0 1 1 631.424 440l-60.992 187.776zM502.08 734.464a32 32 0 1 0 19.84-60.928 32 32 0 0 0-19.84 60.928"})]))}}),ik=sk,uk=T({name:"OfficeBuilding",__name:"office-building",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M192 128v704h384V128zm-32-64h448a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),k("path",{fill:"currentColor",d:"M256 256h256v64H256zm0 192h256v64H256zm0 192h256v64H256zm384-128h128v64H640zm0 128h128v64H640zM64 832h896v64H64z"}),k("path",{fill:"currentColor",d:"M640 384v448h192V384zm-32-64h256a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H608a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32"})]))}}),ck=uk,dk=T({name:"Open",__name:"open",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M329.956 257.138a254.862 254.862 0 0 0 0 509.724h364.088a254.862 254.862 0 0 0 0-509.724zm0-72.818h364.088a327.68 327.68 0 1 1 0 655.36H329.956a327.68 327.68 0 1 1 0-655.36z"}),k("path",{fill:"currentColor",d:"M694.044 621.227a109.227 109.227 0 1 0 0-218.454 109.227 109.227 0 0 0 0 218.454m0 72.817a182.044 182.044 0 1 1 0-364.088 182.044 182.044 0 0 1 0 364.088"})]))}}),fk=dk,pk=T({name:"Operation",__name:"operation",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M389.44 768a96.064 96.064 0 0 1 181.12 0H896v64H570.56a96.064 96.064 0 0 1-181.12 0H128v-64zm192-288a96.064 96.064 0 0 1 181.12 0H896v64H762.56a96.064 96.064 0 0 1-181.12 0H128v-64zm-320-288a96.064 96.064 0 0 1 181.12 0H896v64H442.56a96.064 96.064 0 0 1-181.12 0H128v-64z"})]))}}),vk=pk,hk=T({name:"Opportunity",__name:"opportunity",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M384 960v-64h192.064v64zm448-544a350.656 350.656 0 0 1-128.32 271.424C665.344 719.04 640 763.776 640 813.504V832H320v-14.336c0-48-19.392-95.36-57.216-124.992a351.552 351.552 0 0 1-128.448-344.256c25.344-136.448 133.888-248.128 269.76-276.48A352.384 352.384 0 0 1 832 416m-544 32c0-132.288 75.904-224 192-224v-64c-154.432 0-256 122.752-256 288z"})]))}}),mk=hk,gk=T({name:"Orange",__name:"orange",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M544 894.72a382.336 382.336 0 0 0 215.936-89.472L577.024 622.272c-10.24 6.016-21.248 10.688-33.024 13.696v258.688zm261.248-134.784A382.336 382.336 0 0 0 894.656 544H635.968c-3.008 11.776-7.68 22.848-13.696 33.024l182.976 182.912zM894.656 480a382.336 382.336 0 0 0-89.408-215.936L622.272 446.976c6.016 10.24 10.688 21.248 13.696 33.024h258.688zm-134.72-261.248A382.336 382.336 0 0 0 544 129.344v258.688c11.776 3.008 22.848 7.68 33.024 13.696zM480 129.344a382.336 382.336 0 0 0-215.936 89.408l182.912 182.976c10.24-6.016 21.248-10.688 33.024-13.696zm-261.248 134.72A382.336 382.336 0 0 0 129.344 480h258.688c3.008-11.776 7.68-22.848 13.696-33.024zM129.344 544a382.336 382.336 0 0 0 89.408 215.936l182.976-182.912A127.232 127.232 0 0 1 388.032 544zm134.72 261.248A382.336 382.336 0 0 0 480 894.656V635.968a127.232 127.232 0 0 1-33.024-13.696zM512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896m0-384a64 64 0 1 0 0-128 64 64 0 0 0 0 128"})]))}}),yk=gk,_k=T({name:"Paperclip",__name:"paperclip",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M602.496 240.448A192 192 0 1 1 874.048 512l-316.8 316.8A256 256 0 0 1 195.2 466.752L602.496 59.456l45.248 45.248L240.448 512A192 192 0 0 0 512 783.552l316.8-316.8a128 128 0 1 0-181.056-181.056L353.6 579.904a32 32 0 1 0 45.248 45.248l294.144-294.144 45.312 45.248L444.096 670.4a96 96 0 1 1-135.744-135.744l294.144-294.208z"})]))}}),bk=_k,wk=T({name:"PartlyCloudy",__name:"partly-cloudy",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M598.4 895.872H328.192a256 256 0 0 1-34.496-510.528A352 352 0 1 1 598.4 895.872m-271.36-64h272.256a288 288 0 1 0-248.512-417.664L335.04 445.44l-34.816 3.584a192 192 0 0 0 26.88 382.848z"}),k("path",{fill:"currentColor",d:"M139.84 501.888a256 256 0 1 1 417.856-277.12c-17.728 2.176-38.208 8.448-61.504 18.816A192 192 0 1 0 189.12 460.48a6003.84 6003.84 0 0 0-49.28 41.408z"})]))}}),Ck=wk,Sk=T({name:"Pear",__name:"pear",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M542.336 258.816a443.255 443.255 0 0 0-9.024 25.088 32 32 0 1 1-60.8-20.032l1.088-3.328a162.688 162.688 0 0 0-122.048 131.392l-17.088 102.72-20.736 15.36C256.192 552.704 224 610.88 224 672c0 120.576 126.4 224 288 224s288-103.424 288-224c0-61.12-32.192-119.296-89.728-161.92l-20.736-15.424-17.088-102.72a162.688 162.688 0 0 0-130.112-133.12zm-40.128-66.56c7.936-15.552 16.576-30.08 25.92-43.776 23.296-33.92 49.408-59.776 78.528-77.12a32 32 0 1 1 32.704 55.04c-20.544 12.224-40.064 31.552-58.432 58.304a316.608 316.608 0 0 0-9.792 15.104 226.688 226.688 0 0 1 164.48 181.568l12.8 77.248C819.456 511.36 864 587.392 864 672c0 159.04-157.568 288-352 288S160 831.04 160 672c0-84.608 44.608-160.64 115.584-213.376l12.8-77.248a226.624 226.624 0 0 1 213.76-189.184z"})]))}}),kk=Sk,Ek=T({name:"PhoneFilled",__name:"phone-filled",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M199.232 125.568 90.624 379.008a32 32 0 0 0 6.784 35.2l512.384 512.384a32 32 0 0 0 35.2 6.784l253.44-108.608a32 32 0 0 0 10.048-52.032L769.6 633.92a32 32 0 0 0-36.928-5.952l-130.176 65.088-271.488-271.552 65.024-130.176a32 32 0 0 0-5.952-36.928L251.2 115.52a32 32 0 0 0-51.968 10.048z"})]))}}),Mk=Ek,xk=T({name:"Phone",__name:"phone",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M79.36 432.256 591.744 944.64a32 32 0 0 0 35.2 6.784l253.44-108.544a32 32 0 0 0 9.984-52.032l-153.856-153.92a32 32 0 0 0-36.928-6.016l-69.888 34.944L358.08 394.24l35.008-69.888a32 32 0 0 0-5.952-36.928L233.152 133.568a32 32 0 0 0-52.032 10.048L72.512 397.056a32 32 0 0 0 6.784 35.2zm60.48-29.952 81.536-190.08L325.568 316.48l-24.64 49.216-20.608 41.216 32.576 32.64 271.552 271.552 32.64 32.64 41.216-20.672 49.28-24.576 104.192 104.128-190.08 81.472L139.84 402.304zM512 320v-64a256 256 0 0 1 256 256h-64a192 192 0 0 0-192-192m0-192V64a448 448 0 0 1 448 448h-64a384 384 0 0 0-384-384"})]))}}),$k=xk,Tk=T({name:"PictureFilled",__name:"picture-filled",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112M256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384"})]))}}),a1=Tk,Ok=T({name:"PictureRounded",__name:"picture-rounded",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 128a384 384 0 1 0 0 768 384 384 0 0 0 0-768m0-64a448 448 0 1 1 0 896 448 448 0 0 1 0-896"}),k("path",{fill:"currentColor",d:"M640 288q64 0 64 64t-64 64q-64 0-64-64t64-64M214.656 790.656l-45.312-45.312 185.664-185.6a96 96 0 0 1 123.712-10.24l138.24 98.688a32 32 0 0 0 39.872-2.176L906.688 422.4l42.624 47.744L699.52 693.696a96 96 0 0 1-119.808 6.592l-138.24-98.752a32 32 0 0 0-41.152 3.456l-185.664 185.6z"})]))}}),Nk=Ok,Ik=T({name:"Picture",__name:"picture",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M160 160v704h704V160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32"}),k("path",{fill:"currentColor",d:"M384 288q64 0 64 64t-64 64q-64 0-64-64t64-64M185.408 876.992l-50.816-38.912L350.72 556.032a96 96 0 0 1 134.592-17.856l1.856 1.472 122.88 99.136a32 32 0 0 0 44.992-4.864l216-269.888 49.92 39.936-215.808 269.824-.256.32a96 96 0 0 1-135.04 14.464l-122.88-99.072-.64-.512a32 32 0 0 0-44.8 5.952z"})]))}}),Pk=Ik,zk=T({name:"PieChart",__name:"pie-chart",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M448 68.48v64.832A384.128 384.128 0 0 0 512 896a384.128 384.128 0 0 0 378.688-320h64.768A448.128 448.128 0 0 1 64 512 448.128 448.128 0 0 1 448 68.48z"}),k("path",{fill:"currentColor",d:"M576 97.28V448h350.72A384.064 384.064 0 0 0 576 97.28zM512 64V33.152A448 448 0 0 1 990.848 512H512z"})]))}}),Ak=zk,Vk=T({name:"Place",__name:"place",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512"}),k("path",{fill:"currentColor",d:"M512 512a32 32 0 0 1 32 32v256a32 32 0 1 1-64 0V544a32 32 0 0 1 32-32"}),k("path",{fill:"currentColor",d:"M384 649.088v64.96C269.76 732.352 192 771.904 192 800c0 37.696 139.904 96 320 96s320-58.304 320-96c0-28.16-77.76-67.648-192-85.952v-64.96C789.12 671.04 896 730.368 896 800c0 88.32-171.904 160-384 160s-384-71.68-384-160c0-69.696 106.88-128.96 256-150.912"})]))}}),Lk=Vk,Rk=T({name:"Platform",__name:"platform",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M448 832v-64h128v64h192v64H256v-64zM128 704V128h768v576z"})]))}}),Bk=Rk,Hk=T({name:"Plus",__name:"plus",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),md=Hk,Dk=T({name:"Pointer",__name:"pointer",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M511.552 128c-35.584 0-64.384 28.8-64.384 64.448v516.48L274.048 570.88a94.272 94.272 0 0 0-112.896-3.456 44.416 44.416 0 0 0-8.96 62.208L332.8 870.4A64 64 0 0 0 384 896h512V575.232a64 64 0 0 0-45.632-61.312l-205.952-61.76A96 96 0 0 1 576 360.192V192.448C576 156.8 547.2 128 511.552 128M359.04 556.8l24.128 19.2V192.448a128.448 128.448 0 1 1 256.832 0v167.744a32 32 0 0 0 22.784 30.656l206.016 61.76A128 128 0 0 1 960 575.232V896a64 64 0 0 1-64 64H384a128 128 0 0 1-102.4-51.2L101.056 668.032A108.416 108.416 0 0 1 128 512.512a158.272 158.272 0 0 1 185.984 8.32z"})]))}}),Fk=Dk,Kk=T({name:"Position",__name:"position",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m249.6 417.088 319.744 43.072 39.168 310.272L845.12 178.88 249.6 417.088zm-129.024 47.168a32 32 0 0 1-7.68-61.44l777.792-311.04a32 32 0 0 1 41.6 41.6l-310.336 775.68a32 32 0 0 1-61.44-7.808L512 516.992l-391.424-52.736z"})]))}}),Wk=Kk,jk=T({name:"Postcard",__name:"postcard",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M160 224a32 32 0 0 0-32 32v512a32 32 0 0 0 32 32h704a32 32 0 0 0 32-32V256a32 32 0 0 0-32-32zm0-64h704a96 96 0 0 1 96 96v512a96 96 0 0 1-96 96H160a96 96 0 0 1-96-96V256a96 96 0 0 1 96-96"}),k("path",{fill:"currentColor",d:"M704 320a64 64 0 1 1 0 128 64 64 0 0 1 0-128M288 448h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32m0 128h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32"})]))}}),qk=jk,Uk=T({name:"Pouring",__name:"pouring",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m739.328 291.328-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 97.28 78.72 175.936 175.808 175.936h400a192 192 0 0 0 35.776-380.672zM959.552 480a256 256 0 0 1-256 256h-400A239.808 239.808 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 959.552 480M224 800a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32m192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32m192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32m192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32"})]))}}),Yk=Uk,Gk=T({name:"Present",__name:"present",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M480 896V640H192v-64h288V320H192v576zm64 0h288V320H544v256h288v64H544zM128 256h768v672a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32z"}),k("path",{fill:"currentColor",d:"M96 256h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32"}),k("path",{fill:"currentColor",d:"M416 256a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"}),k("path",{fill:"currentColor",d:"M608 256a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"})]))}}),Xk=Gk,Zk=T({name:"PriceTag",__name:"price-tag",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M224 318.336V896h576V318.336L552.512 115.84a64 64 0 0 0-81.024 0zM593.024 66.304l259.2 212.096A32 32 0 0 1 864 303.168V928a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V303.168a32 32 0 0 1 11.712-24.768l259.2-212.096a128 128 0 0 1 162.112 0z"}),k("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"})]))}}),Jk=Zk,Qk=T({name:"Printer",__name:"printer",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M256 768H105.024c-14.272 0-19.456-1.472-24.64-4.288a29.056 29.056 0 0 1-12.16-12.096C65.536 746.432 64 741.248 64 727.04V379.072c0-42.816 4.48-58.304 12.8-73.984 8.384-15.616 20.672-27.904 36.288-36.288 15.68-8.32 31.168-12.8 73.984-12.8H256V64h512v192h68.928c42.816 0 58.304 4.48 73.984 12.8 15.616 8.384 27.904 20.672 36.288 36.288 8.32 15.68 12.8 31.168 12.8 73.984v347.904c0 14.272-1.472 19.456-4.288 24.64a29.056 29.056 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H768v192H256zm64-192v320h384V576zm-64 128V512h512v192h128V379.072c0-29.376-1.408-36.48-5.248-43.776a23.296 23.296 0 0 0-10.048-10.048c-7.232-3.84-14.4-5.248-43.776-5.248H187.072c-29.376 0-36.48 1.408-43.776 5.248a23.296 23.296 0 0 0-10.048 10.048c-3.84 7.232-5.248 14.4-5.248 43.776V704zm64-448h384V128H320zm-64 128h64v64h-64zm128 0h64v64h-64z"})]))}}),eE=Qk,tE=T({name:"Promotion",__name:"promotion",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m64 448 832-320-128 704-446.08-243.328L832 192 242.816 545.472zm256 512V657.024L512 768z"})]))}}),nE=tE,aE=T({name:"QuartzWatch",__name:"quartz-watch",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M422.02 602.01v-.03c-6.68-5.99-14.35-8.83-23.01-8.51-8.67.32-16.17 3.66-22.5 10.02-6.33 6.36-9.5 13.7-9.5 22.02s3 15.82 8.99 22.5c8.68 8.68 19.02 11.35 31.01 8s19.49-10.85 22.5-22.5c3.01-11.65.51-22.15-7.49-31.49zM384 512c0-9.35-3-17.02-8.99-23.01-6-5.99-13.66-8.99-23.01-8.99-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.66 8.99 23.01 8.99 9.35 0 17.02-3 23.01-8.99 5.99-6 8.99-13.67 8.99-23.01m6.53-82.49c11.65 3.01 22.15.51 31.49-7.49h.04c5.99-6.68 8.83-14.34 8.51-23.01-.32-8.67-3.66-16.16-10.02-22.5-6.36-6.33-13.7-9.5-22.02-9.5s-15.82 3-22.5 8.99c-8.68 8.69-11.35 19.02-8 31.01 3.35 11.99 10.85 19.49 22.5 22.5zm242.94 0c11.67-3.03 19.01-10.37 22.02-22.02 3.01-11.65.51-22.15-7.49-31.49h.01c-6.68-5.99-14.18-8.99-22.5-8.99s-15.66 3.16-22.02 9.5c-6.36 6.34-9.7 13.84-10.02 22.5-.32 8.66 2.52 16.33 8.51 23.01 9.32 8.02 19.82 10.52 31.49 7.49M512 640c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.67 8.99 23.01 8.99 9.35 0 17.02-3 23.01-8.99 5.99-6 8.99-13.66 8.99-23.01s-3-17.02-8.99-23.01c-6-5.99-13.66-8.99-23.01-8.99m183.01-151.01c-6-5.99-13.66-8.99-23.01-8.99s-17.02 3-23.01 8.99c-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.66 8.99 23.01 8.99s17.02-3 23.01-8.99c5.99-6 8.99-13.67 8.99-23.01 0-9.35-3-17.02-8.99-23.01"}),k("path",{fill:"currentColor",d:"M832 512c-2-90.67-33.17-166.17-93.5-226.5-20.43-20.42-42.6-37.49-66.5-51.23V64H352v170.26c-23.9 13.74-46.07 30.81-66.5 51.24-60.33 60.33-91.49 135.83-93.5 226.5 2 90.67 33.17 166.17 93.5 226.5 20.43 20.43 42.6 37.5 66.5 51.24V960h320V789.74c23.9-13.74 46.07-30.81 66.5-51.24 60.33-60.34 91.49-135.83 93.5-226.5M416 128h192v78.69c-29.85-9.03-61.85-13.93-96-14.69-34.15.75-66.15 5.65-96 14.68zm192 768H416v-78.68c29.85 9.03 61.85 13.93 96 14.68 34.15-.75 66.15-5.65 96-14.68zm-96-128c-72.66-2.01-132.99-27.01-180.99-75.01S258.01 584.66 256 512c2.01-72.66 27.01-132.99 75.01-180.99S439.34 258.01 512 256c72.66 2.01 132.99 27.01 180.99 75.01S765.99 439.34 768 512c-2.01 72.66-27.01 132.99-75.01 180.99S584.66 765.99 512 768"}),k("path",{fill:"currentColor",d:"M512 320c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.66-8.99 23.01 0 9.35 3 17.02 8.99 23.01 6 5.99 13.67 8.99 23.01 8.99 9.35 0 17.02-3 23.01-8.99 5.99-6 8.99-13.66 8.99-23.01 0-9.35-3-17.02-8.99-23.01-6-5.99-13.66-8.99-23.01-8.99m112.99 273.5c-8.66-.32-16.33 2.52-23.01 8.51-7.98 9.32-10.48 19.82-7.49 31.49s10.49 19.17 22.5 22.5 22.35.66 31.01-8v.04c5.99-6.68 8.99-14.18 8.99-22.5s-3.16-15.66-9.5-22.02-13.84-9.7-22.5-10.02"})]))}}),lE=aE,oE=T({name:"QuestionFilled",__name:"question-filled",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"})]))}}),l1=oE,rE=T({name:"Rank",__name:"rank",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m186.496 544 41.408 41.344a32 32 0 1 1-45.248 45.312l-96-96a32 32 0 0 1 0-45.312l96-96a32 32 0 1 1 45.248 45.312L186.496 480h290.816V186.432l-41.472 41.472a32 32 0 1 1-45.248-45.184l96-96.128a32 32 0 0 1 45.312 0l96 96.064a32 32 0 0 1-45.248 45.184l-41.344-41.28V480H832l-41.344-41.344a32 32 0 0 1 45.248-45.312l96 96a32 32 0 0 1 0 45.312l-96 96a32 32 0 0 1-45.248-45.312L832 544H541.312v293.44l41.344-41.28a32 32 0 1 1 45.248 45.248l-96 96a32 32 0 0 1-45.312 0l-96-96a32 32 0 1 1 45.312-45.248l41.408 41.408V544H186.496z"})]))}}),sE=rE,iE=T({name:"ReadingLamp",__name:"reading-lamp",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M352 896h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32m-44.672-768-99.52 448h608.384l-99.52-448zm-25.6-64h460.608a32 32 0 0 1 31.232 25.088l113.792 512A32 32 0 0 1 856.128 640H167.872a32 32 0 0 1-31.232-38.912l113.792-512A32 32 0 0 1 281.664 64z"}),k("path",{fill:"currentColor",d:"M672 576q32 0 32 32v128q0 32-32 32t-32-32V608q0-32 32-32m-192-.064h64V960h-64z"})]))}}),uE=iE,cE=T({name:"Reading",__name:"reading",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m512 863.36 384-54.848v-638.72L525.568 222.72a96 96 0 0 1-27.136 0L128 169.792v638.72zM137.024 106.432l370.432 52.928a32 32 0 0 0 9.088 0l370.432-52.928A64 64 0 0 1 960 169.792v638.72a64 64 0 0 1-54.976 63.36l-388.48 55.488a32 32 0 0 1-9.088 0l-388.48-55.488A64 64 0 0 1 64 808.512v-638.72a64 64 0 0 1 73.024-63.36z"}),k("path",{fill:"currentColor",d:"M480 192h64v704h-64z"})]))}}),dE=cE,fE=T({name:"RefreshLeft",__name:"refresh-left",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"})]))}}),o1=fE,pE=T({name:"RefreshRight",__name:"refresh-right",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88z"})]))}}),r1=pE,vE=T({name:"Refresh",__name:"refresh",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"})]))}}),hE=vE,mE=T({name:"Refrigerator",__name:"refrigerator",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M256 448h512V160a32 32 0 0 0-32-32H288a32 32 0 0 0-32 32zm0 64v352a32 32 0 0 0 32 32h448a32 32 0 0 0 32-32V512zm32-448h448a96 96 0 0 1 96 96v704a96 96 0 0 1-96 96H288a96 96 0 0 1-96-96V160a96 96 0 0 1 96-96m32 224h64v96h-64zm0 288h64v96h-64z"})]))}}),gE=mE,yE=T({name:"RemoveFilled",__name:"remove-filled",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896M288 512a38.4 38.4 0 0 0 38.4 38.4h371.2a38.4 38.4 0 0 0 0-76.8H326.4A38.4 38.4 0 0 0 288 512"})]))}}),_E=yE,bE=T({name:"Remove",__name:"remove",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64"}),k("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),wE=bE,CE=T({name:"Right",__name:"right",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M754.752 480H160a32 32 0 1 0 0 64h594.752L521.344 777.344a32 32 0 0 0 45.312 45.312l288-288a32 32 0 0 0 0-45.312l-288-288a32 32 0 1 0-45.312 45.312z"})]))}}),SE=CE,kE=T({name:"ScaleToOriginal",__name:"scale-to-original",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zm-361.412 0a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118M512 361.412a30.118 30.118 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.118 30.118 0 0 0 512 361.412M512 512a30.118 30.118 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.118 30.118 0 0 0 512 512"})]))}}),s1=kE,EE=T({name:"School",__name:"school",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M224 128v704h576V128zm-32-64h640a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),k("path",{fill:"currentColor",d:"M64 832h896v64H64zm256-640h128v96H320z"}),k("path",{fill:"currentColor",d:"M384 832h256v-64a128 128 0 1 0-256 0zm128-256a192 192 0 0 1 192 192v128H320V768a192 192 0 0 1 192-192M320 384h128v96H320zm256-192h128v96H576zm0 192h128v96H576z"})]))}}),ME=EE,xE=T({name:"Scissor",__name:"scissor",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m512.064 578.368-106.88 152.768a160 160 0 1 1-23.36-78.208L472.96 522.56 196.864 128.256a32 32 0 1 1 52.48-36.736l393.024 561.344a160 160 0 1 1-23.36 78.208l-106.88-152.704zm54.4-189.248 208.384-297.6a32 32 0 0 1 52.48 36.736l-221.76 316.672-39.04-55.808zm-376.32 425.856a96 96 0 1 0 110.144-157.248 96 96 0 0 0-110.08 157.248zm643.84 0a96 96 0 1 0-110.08-157.248 96 96 0 0 0 110.08 157.248"})]))}}),$E=xE,TE=T({name:"Search",__name:"search",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}}),i1=TE,OE=T({name:"Select",__name:"select",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M77.248 415.04a64 64 0 0 1 90.496 0l226.304 226.304L846.528 188.8a64 64 0 1 1 90.56 90.496l-543.04 543.04-316.8-316.8a64 64 0 0 1 0-90.496z"})]))}}),NE=OE,IE=T({name:"Sell",__name:"sell",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M704 288h131.072a32 32 0 0 1 31.808 28.8L886.4 512h-64.384l-16-160H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0v-96H217.92l-51.2 512H512v64H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4zm-64 0v-22.336C640 189.248 582.272 128 512 128c-70.272 0-128 61.248-128 137.664v22.4h256zm201.408 483.84L768 698.496V928a32 32 0 1 1-64 0V698.496l-73.344 73.344a32 32 0 1 1-45.248-45.248l128-128a32 32 0 0 1 45.248 0l128 128a32 32 0 1 1-45.248 45.248z"})]))}}),PE=IE,zE=T({name:"SemiSelect",__name:"semi-select",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 448h768q64 0 64 64t-64 64H128q-64 0-64-64t64-64"})]))}}),AE=zE,VE=T({name:"Service",__name:"service",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M864 409.6a192 192 0 0 1-37.888 349.44A256.064 256.064 0 0 1 576 960h-96a32 32 0 1 1 0-64h96a192.064 192.064 0 0 0 181.12-128H736a32 32 0 0 1-32-32V416a32 32 0 0 1 32-32h32c10.368 0 20.544.832 30.528 2.432a288 288 0 0 0-573.056 0A193.235 193.235 0 0 1 256 384h32a32 32 0 0 1 32 32v320a32 32 0 0 1-32 32h-32a192 192 0 0 1-96-358.4 352 352 0 0 1 704 0M256 448a128 128 0 1 0 0 256zm640 128a128 128 0 0 0-128-128v256a128 128 0 0 0 128-128"})]))}}),LE=VE,RE=T({name:"SetUp",__name:"set-up",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M224 160a64 64 0 0 0-64 64v576a64 64 0 0 0 64 64h576a64 64 0 0 0 64-64V224a64 64 0 0 0-64-64zm0-64h576a128 128 0 0 1 128 128v576a128 128 0 0 1-128 128H224A128 128 0 0 1 96 800V224A128 128 0 0 1 224 96"}),k("path",{fill:"currentColor",d:"M384 416a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"}),k("path",{fill:"currentColor",d:"M480 320h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32m160 416a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"}),k("path",{fill:"currentColor",d:"M288 640h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32"})]))}}),BE=RE,HE=T({name:"Setting",__name:"setting",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357.12 357.12 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a351.616 351.616 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357.12 357.12 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088-24.512 11.968a294.113 294.113 0 0 0-34.816 20.096l-22.656 15.36-116.224-25.088-65.28 113.152 79.68 88.192-1.92 27.136a293.12 293.12 0 0 0 0 40.192l1.92 27.136-79.808 88.192 65.344 113.152 116.224-25.024 22.656 15.296a294.113 294.113 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152 24.448-11.904a288.282 288.282 0 0 0 34.752-20.096l22.592-15.296 116.288 25.024 65.28-113.152-79.744-88.192 1.92-27.136a293.12 293.12 0 0 0 0-40.256l-1.92-27.136 79.808-88.128-65.344-113.152-116.288 24.96-22.592-15.232a287.616 287.616 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384 192 192 0 0 1 0-384m0 64a128 128 0 1 0 0 256 128 128 0 0 0 0-256"})]))}}),DE=HE,FE=T({name:"Share",__name:"share",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m679.872 348.8-301.76 188.608a127.808 127.808 0 0 1 5.12 52.16l279.936 104.96a128 128 0 1 1-22.464 59.904l-279.872-104.96a128 128 0 1 1-16.64-166.272l301.696-188.608a128 128 0 1 1 33.92 54.272z"})]))}}),KE=FE,WE=T({name:"Ship",__name:"ship",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 386.88V448h405.568a32 32 0 0 1 30.72 40.768l-76.48 267.968A192 192 0 0 1 687.168 896H336.832a192 192 0 0 1-184.64-139.264L75.648 488.768A32 32 0 0 1 106.368 448H448V117.888a32 32 0 0 1 47.36-28.096l13.888 7.616L512 96v2.88l231.68 126.4a32 32 0 0 1-2.048 57.216zm0-70.272 144.768-65.792L512 171.84zM512 512H148.864l18.24 64H856.96l18.24-64zM185.408 640l28.352 99.2A128 128 0 0 0 336.832 832h350.336a128 128 0 0 0 123.072-92.8l28.352-99.2H185.408"})]))}}),jE=WE,qE=T({name:"Shop",__name:"shop",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M704 704h64v192H256V704h64v64h384zm188.544-152.192C894.528 559.616 896 567.616 896 576a96 96 0 1 1-192 0 96 96 0 1 1-192 0 96 96 0 1 1-192 0 96 96 0 1 1-192 0c0-8.384 1.408-16.384 3.392-24.192L192 128h640z"})]))}}),UE=qE,YE=T({name:"ShoppingBag",__name:"shopping-bag",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M704 320v96a32 32 0 0 1-32 32h-32V320H384v128h-32a32 32 0 0 1-32-32v-96H192v576h640V320zm-384-64a192 192 0 1 1 384 0h160a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32zm64 0h256a128 128 0 1 0-256 0"}),k("path",{fill:"currentColor",d:"M192 704h640v64H192z"})]))}}),GE=YE,XE=T({name:"ShoppingCartFull",__name:"shopping-cart-full",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M432 928a48 48 0 1 1 0-96 48 48 0 0 1 0 96m320 0a48 48 0 1 1 0-96 48 48 0 0 1 0 96M96 128a32 32 0 0 1 0-64h160a32 32 0 0 1 31.36 25.728L320.64 256H928a32 32 0 0 1 31.296 38.72l-96 448A32 32 0 0 1 832 768H384a32 32 0 0 1-31.36-25.728L229.76 128zm314.24 576h395.904l82.304-384H333.44l76.8 384z"}),k("path",{fill:"currentColor",d:"M699.648 256 608 145.984 516.352 256h183.296zm-140.8-151.04a64 64 0 0 1 98.304 0L836.352 320H379.648l179.2-215.04"})]))}}),ZE=XE,JE=T({name:"ShoppingCart",__name:"shopping-cart",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M432 928a48 48 0 1 1 0-96 48 48 0 0 1 0 96m320 0a48 48 0 1 1 0-96 48 48 0 0 1 0 96M96 128a32 32 0 0 1 0-64h160a32 32 0 0 1 31.36 25.728L320.64 256H928a32 32 0 0 1 31.296 38.72l-96 448A32 32 0 0 1 832 768H384a32 32 0 0 1-31.36-25.728L229.76 128zm314.24 576h395.904l82.304-384H333.44l76.8 384z"})]))}}),QE=JE,eM=T({name:"ShoppingTrolley",__name:"shopping-trolley",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M368 833c-13.3 0-24.5 4.5-33.5 13.5S321 866.7 321 880s4.5 24.5 13.5 33.5 20.2 13.8 33.5 14.5c13.3-.7 24.5-5.5 33.5-14.5S415 893.3 415 880s-4.5-24.5-13.5-33.5S381.3 833 368 833m439-193c7.4 0 13.8-2.2 19.5-6.5S836 623.3 838 616l112-448c2-10-.2-19.2-6.5-27.5S929 128 919 128H96c-9.3 0-17 3-23 9s-9 13.7-9 23 3 17 9 23 13.7 9 23 9h96v576h672c9.3 0 17-3 23-9s9-13.7 9-23-3-17-9-23-13.7-9-23-9H256v-64zM256 192h622l-96 384H256zm432 641c-13.3 0-24.5 4.5-33.5 13.5S641 866.7 641 880s4.5 24.5 13.5 33.5 20.2 13.8 33.5 14.5c13.3-.7 24.5-5.5 33.5-14.5S735 893.3 735 880s-4.5-24.5-13.5-33.5S701.3 833 688 833"})]))}}),tM=eM,nM=T({name:"Smoking",__name:"smoking",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M256 576v128h640V576zm-32-64h704a32 32 0 0 1 32 32v192a32 32 0 0 1-32 32H224a32 32 0 0 1-32-32V544a32 32 0 0 1 32-32"}),k("path",{fill:"currentColor",d:"M704 576h64v128h-64zM256 64h64v320h-64zM128 192h64v192h-64zM64 512h64v256H64z"})]))}}),aM=nM,lM=T({name:"Soccer",__name:"soccer",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M418.496 871.04 152.256 604.8c-16.512 94.016-2.368 178.624 42.944 224 44.928 44.928 129.344 58.752 223.296 42.24m72.32-18.176a573.056 573.056 0 0 0 224.832-137.216 573.12 573.12 0 0 0 137.216-224.832L533.888 171.84a578.56 578.56 0 0 0-227.52 138.496A567.68 567.68 0 0 0 170.432 532.48l320.384 320.384zM871.04 418.496c16.512-93.952 2.688-178.368-42.24-223.296-44.544-44.544-128.704-58.048-222.592-41.536zM149.952 874.048c-112.96-112.96-88.832-408.96 111.168-608.96C461.056 65.152 760.96 36.928 874.048 149.952c113.024 113.024 86.784 411.008-113.152 610.944-199.936 199.936-497.92 226.112-610.944 113.152m452.544-497.792 22.656-22.656a32 32 0 0 1 45.248 45.248l-22.656 22.656 45.248 45.248A32 32 0 1 1 647.744 512l-45.248-45.248L557.248 512l45.248 45.248a32 32 0 1 1-45.248 45.248L512 557.248l-45.248 45.248L512 647.744a32 32 0 1 1-45.248 45.248l-45.248-45.248-22.656 22.656a32 32 0 1 1-45.248-45.248l22.656-22.656-45.248-45.248A32 32 0 1 1 376.256 512l45.248 45.248L466.752 512l-45.248-45.248a32 32 0 1 1 45.248-45.248L512 466.752l45.248-45.248L512 376.256a32 32 0 0 1 45.248-45.248l45.248 45.248z"})]))}}),oM=lM,rM=T({name:"SoldOut",__name:"sold-out",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M704 288h131.072a32 32 0 0 1 31.808 28.8L886.4 512h-64.384l-16-160H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0v-96H217.92l-51.2 512H512v64H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4zm-64 0v-22.336C640 189.248 582.272 128 512 128c-70.272 0-128 61.248-128 137.664v22.4h256zm201.408 476.16a32 32 0 1 1 45.248 45.184l-128 128a32 32 0 0 1-45.248 0l-128-128a32 32 0 1 1 45.248-45.248L704 837.504V608a32 32 0 1 1 64 0v229.504l73.408-73.408z"})]))}}),sM=rM,iM=T({name:"SortDown",__name:"sort-down",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M576 96v709.568L333.312 562.816A32 32 0 1 0 288 608l297.408 297.344A32 32 0 0 0 640 882.688V96a32 32 0 0 0-64 0"})]))}}),u1=iM,uM=T({name:"SortUp",__name:"sort-up",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M384 141.248V928a32 32 0 1 0 64 0V218.56l242.688 242.688A32 32 0 1 0 736 416L438.592 118.656A32 32 0 0 0 384 141.248"})]))}}),c1=uM,cM=T({name:"Sort",__name:"sort",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M384 96a32 32 0 0 1 64 0v786.752a32 32 0 0 1-54.592 22.656L95.936 608a32 32 0 0 1 0-45.312h.128a32 32 0 0 1 45.184 0L384 805.632zm192 45.248a32 32 0 0 1 54.592-22.592L928.064 416a32 32 0 0 1 0 45.312h-.128a32 32 0 0 1-45.184 0L640 218.496V928a32 32 0 1 1-64 0V141.248z"})]))}}),dM=cM,fM=T({name:"Stamp",__name:"stamp",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M624 475.968V640h144a128 128 0 0 1 128 128H128a128 128 0 0 1 128-128h144V475.968a192 192 0 1 1 224 0M128 896v-64h768v64z"})]))}}),pM=fM,vM=T({name:"StarFilled",__name:"star-filled",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M283.84 867.84 512 747.776l228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72z"})]))}}),Go=vM,hM=T({name:"Star",__name:"star",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"})]))}}),d1=hM,mM=T({name:"Stopwatch",__name:"stopwatch",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),k("path",{fill:"currentColor",d:"M672 234.88c-39.168 174.464-80 298.624-122.688 372.48-64 110.848-202.624 30.848-138.624-80C453.376 453.44 540.48 355.968 672 234.816z"})]))}}),gM=mM,yM=T({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),gd=yM,_M=T({name:"Sugar",__name:"sugar",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m801.728 349.184 4.48 4.48a128 128 0 0 1 0 180.992L534.656 806.144a128 128 0 0 1-181.056 0l-4.48-4.48-19.392 109.696a64 64 0 0 1-108.288 34.176L78.464 802.56a64 64 0 0 1 34.176-108.288l109.76-19.328-4.544-4.544a128 128 0 0 1 0-181.056l271.488-271.488a128 128 0 0 1 181.056 0l4.48 4.48 19.392-109.504a64 64 0 0 1 108.352-34.048l142.592 143.04a64 64 0 0 1-34.24 108.16l-109.248 19.2zm-548.8 198.72h447.168v2.24l60.8-60.8a63.808 63.808 0 0 0 18.752-44.416h-426.88l-89.664 89.728a64.064 64.064 0 0 0-10.24 13.248zm0 64c2.752 4.736 6.144 9.152 10.176 13.248l135.744 135.744a64 64 0 0 0 90.496 0L638.4 611.904zm490.048-230.976L625.152 263.104a64 64 0 0 0-90.496 0L416.768 380.928zM123.712 757.312l142.976 142.976 24.32-137.6a25.6 25.6 0 0 0-29.696-29.632l-137.6 24.256zm633.6-633.344-24.32 137.472a25.6 25.6 0 0 0 29.632 29.632l137.28-24.064-142.656-143.04z"})]))}}),bM=_M,wM=T({name:"SuitcaseLine",__name:"suitcase-line",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M922.5 229.5c-24.32-24.34-54.49-36.84-90.5-37.5H704v-64c-.68-17.98-7.02-32.98-19.01-44.99S658.01 64.66 640 64H384c-17.98.68-32.98 7.02-44.99 19.01S320.66 110 320 128v64H192c-35.99.68-66.16 13.18-90.5 37.5C77.16 253.82 64.66 283.99 64 320v448c.68 35.99 13.18 66.16 37.5 90.5s54.49 36.84 90.5 37.5h640c35.99-.68 66.16-13.18 90.5-37.5s36.84-54.49 37.5-90.5V320c-.68-35.99-13.18-66.16-37.5-90.5M384 128h256v64H384zM256 832h-64c-17.98-.68-32.98-7.02-44.99-19.01S128.66 786.01 128 768V448h128zm448 0H320V448h384zm192-64c-.68 17.98-7.02 32.98-19.01 44.99S850.01 831.34 832 832h-64V448h128zm0-384H128v-64c.69-17.98 7.02-32.98 19.01-44.99S173.99 256.66 192 256h640c17.98.69 32.98 7.02 44.99 19.01S895.34 301.99 896 320z"})]))}}),CM=wM,SM=T({name:"Suitcase",__name:"suitcase",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 384h768v-64a64 64 0 0 0-64-64H192a64 64 0 0 0-64 64zm0 64v320a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V448zm64-256h640a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H192A128 128 0 0 1 64 768V320a128 128 0 0 1 128-128"}),k("path",{fill:"currentColor",d:"M384 128v64h256v-64zm0-64h256a64 64 0 0 1 64 64v64a64 64 0 0 1-64 64H384a64 64 0 0 1-64-64v-64a64 64 0 0 1 64-64"})]))}}),kM=SM,EM=T({name:"Sunny",__name:"sunny",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 704a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m0-704a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 768a32 32 0 0 1 32 32v64a32 32 0 1 1-64 0v-64a32 32 0 0 1 32-32M195.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.248M64 512a32 32 0 0 1 32-32h64a32 32 0 0 1 0 64H96a32 32 0 0 1-32-32m768 0a32 32 0 0 1 32-32h64a32 32 0 1 1 0 64h-64a32 32 0 0 1-32-32M195.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 0"})]))}}),MM=EM,xM=T({name:"Sunrise",__name:"sunrise",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M32 768h960a32 32 0 1 1 0 64H32a32 32 0 1 1 0-64m129.408-96a352 352 0 0 1 701.184 0h-64.32a288 288 0 0 0-572.544 0h-64.32zM512 128a32 32 0 0 1 32 32v96a32 32 0 0 1-64 0v-96a32 32 0 0 1 32-32m407.296 168.704a32 32 0 0 1 0 45.248l-67.84 67.84a32 32 0 1 1-45.248-45.248l67.84-67.84a32 32 0 0 1 45.248 0zm-814.592 0a32 32 0 0 1 45.248 0l67.84 67.84a32 32 0 1 1-45.248 45.248l-67.84-67.84a32 32 0 0 1 0-45.248"})]))}}),$M=xM,TM=T({name:"Sunset",__name:"sunset",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M82.56 640a448 448 0 1 1 858.88 0h-67.2a384 384 0 1 0-724.288 0zM32 704h960q32 0 32 32t-32 32H32q-32 0-32-32t32-32m256 128h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"})]))}}),OM=TM,NM=T({name:"SwitchButton",__name:"switch-button",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M352 159.872V230.4a352 352 0 1 0 320 0v-70.528A416.128 416.128 0 0 1 512 960a416 416 0 0 1-160-800.128z"}),k("path",{fill:"currentColor",d:"M512 64q32 0 32 32v320q0 32-32 32t-32-32V96q0-32 32-32"})]))}}),IM=NM,PM=T({name:"SwitchFilled",__name:"switch-filled",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M247.47 358.4v.04c.07 19.17 7.72 37.53 21.27 51.09s31.92 21.2 51.09 21.27c39.86 0 72.41-32.6 72.41-72.4s-32.6-72.36-72.41-72.36-72.36 32.55-72.36 72.36z"}),k("path",{fill:"currentColor",d:"M492.38 128H324.7c-52.16 0-102.19 20.73-139.08 57.61a196.655 196.655 0 0 0-57.61 139.08V698.7c-.01 25.84 5.08 51.42 14.96 75.29s24.36 45.56 42.63 63.83 39.95 32.76 63.82 42.65a196.67 196.67 0 0 0 75.28 14.98h167.68c3.03 0 5.46-2.43 5.46-5.42V133.42c.6-2.99-1.83-5.42-5.46-5.42zm-56.11 705.88H324.7c-17.76.13-35.36-3.33-51.75-10.18s-31.22-16.94-43.61-29.67c-25.3-25.35-39.81-59.1-39.81-95.32V324.69c-.13-17.75 3.33-35.35 10.17-51.74a131.695 131.695 0 0 1 29.64-43.62c25.39-25.3 59.14-39.81 95.36-39.81h111.57zm402.12-647.67a196.655 196.655 0 0 0-139.08-57.61H580.48c-3.03 0-4.82 2.43-4.82 4.82v757.16c-.6 2.99 1.79 5.42 5.42 5.42h118.23a196.69 196.69 0 0 0 139.08-57.61A196.655 196.655 0 0 0 896 699.31V325.29a196.69 196.69 0 0 0-57.61-139.08zm-111.3 441.92c-42.83 0-77.82-34.99-77.82-77.82s34.98-77.82 77.82-77.82c42.83 0 77.82 34.99 77.82 77.82s-34.99 77.82-77.82 77.82z"})]))}}),zM=PM,AM=T({name:"Switch",__name:"switch",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M118.656 438.656a32 32 0 0 1 0-45.248L416 96l4.48-3.776A32 32 0 0 1 461.248 96l3.712 4.48a32.064 32.064 0 0 1-3.712 40.832L218.56 384H928a32 32 0 1 1 0 64H141.248a32 32 0 0 1-22.592-9.344zM64 608a32 32 0 0 1 32-32h786.752a32 32 0 0 1 22.656 54.592L608 928l-4.48 3.776a32.064 32.064 0 0 1-40.832-49.024L805.632 640H96a32 32 0 0 1-32-32"})]))}}),VM=AM,LM=T({name:"TakeawayBox",__name:"takeaway-box",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M832 384H192v448h640zM96 320h832V128H96zm800 64v480a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V384H64a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32h896a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zM416 512h192a32 32 0 0 1 0 64H416a32 32 0 0 1 0-64"})]))}}),RM=LM,BM=T({name:"Ticket",__name:"ticket",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M640 832H64V640a128 128 0 1 0 0-256V192h576v160h64V192h256v192a128 128 0 1 0 0 256v192H704V672h-64zm0-416v192h64V416z"})]))}}),HM=BM,DM=T({name:"Tickets",__name:"tickets",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M192 128v768h640V128zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h192v64H320zm0 384h384v64H320z"})]))}}),FM=DM,KM=T({name:"Timer",__name:"timer",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 896a320 320 0 1 0 0-640 320 320 0 0 0 0 640m0 64a384 384 0 1 1 0-768 384 384 0 0 1 0 768"}),k("path",{fill:"currentColor",d:"M512 320a32 32 0 0 1 32 32l-.512 224a32 32 0 1 1-64 0L480 352a32 32 0 0 1 32-32"}),k("path",{fill:"currentColor",d:"M448 576a64 64 0 1 0 128 0 64 64 0 1 0-128 0m96-448v128h-64V128h-96a32 32 0 0 1 0-64h256a32 32 0 1 1 0 64z"})]))}}),WM=KM,jM=T({name:"ToiletPaper",__name:"toilet-paper",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M595.2 128H320a192 192 0 0 0-192 192v576h384V352c0-90.496 32.448-171.2 83.2-224M736 64c123.712 0 224 128.96 224 288S859.712 640 736 640H576v320H64V320A256 256 0 0 1 320 64zM576 352v224h160c84.352 0 160-97.28 160-224s-75.648-224-160-224-160 97.28-160 224"}),k("path",{fill:"currentColor",d:"M736 448c-35.328 0-64-43.008-64-96s28.672-96 64-96 64 43.008 64 96-28.672 96-64 96"})]))}}),qM=jM,UM=T({name:"Tools",__name:"tools",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M764.416 254.72a351.68 351.68 0 0 1 86.336 149.184H960v192.064H850.752a351.68 351.68 0 0 1-86.336 149.312l54.72 94.72-166.272 96-54.592-94.72a352.64 352.64 0 0 1-172.48 0L371.136 936l-166.272-96 54.72-94.72a351.68 351.68 0 0 1-86.336-149.312H64v-192h109.248a351.68 351.68 0 0 1 86.336-149.312L204.8 160l166.208-96h.192l54.656 94.592a352.64 352.64 0 0 1 172.48 0L652.8 64h.128L819.2 160l-54.72 94.72zM704 499.968a192 192 0 1 0-384 0 192 192 0 0 0 384 0"})]))}}),YM=UM,GM=T({name:"TopLeft",__name:"top-left",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M256 256h416a32 32 0 1 0 0-64H224a32 32 0 0 0-32 32v448a32 32 0 0 0 64 0z"}),k("path",{fill:"currentColor",d:"M246.656 201.344a32 32 0 0 0-45.312 45.312l544 544a32 32 0 0 0 45.312-45.312l-544-544z"})]))}}),XM=GM,ZM=T({name:"TopRight",__name:"top-right",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M768 256H353.6a32 32 0 1 1 0-64H800a32 32 0 0 1 32 32v448a32 32 0 0 1-64 0z"}),k("path",{fill:"currentColor",d:"M777.344 201.344a32 32 0 0 1 45.312 45.312l-544 544a32 32 0 0 1-45.312-45.312l544-544z"})]))}}),JM=ZM,QM=T({name:"Top",__name:"top",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M572.235 205.282v600.365a30.118 30.118 0 1 1-60.235 0V205.282L292.382 438.633a28.913 28.913 0 0 1-42.646 0 33.43 33.43 0 0 1 0-45.236l271.058-288.045a28.913 28.913 0 0 1 42.647 0L834.5 393.397a33.43 33.43 0 0 1 0 45.176 28.913 28.913 0 0 1-42.647 0l-219.618-233.23z"})]))}}),ex=QM,tx=T({name:"TrendCharts",__name:"trend-charts",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 896V128h768v768zm291.712-327.296 128 102.4 180.16-201.792-47.744-42.624-139.84 156.608-128-102.4-180.16 201.792 47.744 42.624 139.84-156.608zM816 352a48 48 0 1 0-96 0 48 48 0 0 0 96 0"})]))}}),nx=tx,ax=T({name:"TrophyBase",__name:"trophy-base",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M918.4 201.6c-6.4-6.4-12.8-9.6-22.4-9.6H768V96c0-9.6-3.2-16-9.6-22.4C752 67.2 745.6 64 736 64H288c-9.6 0-16 3.2-22.4 9.6C259.2 80 256 86.4 256 96v96H128c-9.6 0-16 3.2-22.4 9.6-6.4 6.4-9.6 16-9.6 22.4 3.2 108.8 25.6 185.6 64 224 34.4 34.4 77.56 55.65 127.65 61.99 10.91 20.44 24.78 39.25 41.95 56.41 40.86 40.86 91 65.47 150.4 71.9V768h-96c-9.6 0-16 3.2-22.4 9.6-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4c6.4 6.4 12.8 9.6 22.4 9.6h256c9.6 0 16-3.2 22.4-9.6 6.4-6.4 9.6-12.8 9.6-22.4s-3.2-16-9.6-22.4c-6.4-6.4-12.8-9.6-22.4-9.6h-96V637.26c59.4-7.71 109.54-30.01 150.4-70.86 17.2-17.2 31.51-36.06 42.81-56.55 48.93-6.51 90.02-27.7 126.79-61.85 38.4-38.4 60.8-112 64-224 0-6.4-3.2-16-9.6-22.4zM256 438.4c-19.2-6.4-35.2-19.2-51.2-35.2-22.4-22.4-35.2-70.4-41.6-147.2H256zm390.4 80C608 553.6 566.4 576 512 576s-99.2-19.2-134.4-57.6C342.4 480 320 438.4 320 384V128h384v256c0 54.4-19.2 99.2-57.6 134.4m172.8-115.2c-16 16-32 25.6-51.2 35.2V256h92.8c-6.4 76.8-19.2 124.8-41.6 147.2zM768 896H256c-9.6 0-16 3.2-22.4 9.6-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4c6.4 6.4 12.8 9.6 22.4 9.6h512c9.6 0 16-3.2 22.4-9.6 6.4-6.4 9.6-12.8 9.6-22.4s-3.2-16-9.6-22.4c-6.4-6.4-12.8-9.6-22.4-9.6"})]))}}),lx=ax,ox=T({name:"Trophy",__name:"trophy",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M480 896V702.08A256.256 256.256 0 0 1 264.064 512h-32.64a96 96 0 0 1-91.968-68.416L93.632 290.88a76.8 76.8 0 0 1 73.6-98.88H256V96a32 32 0 0 1 32-32h448a32 32 0 0 1 32 32v96h88.768a76.8 76.8 0 0 1 73.6 98.88L884.48 443.52A96 96 0 0 1 792.576 512h-32.64A256.256 256.256 0 0 1 544 702.08V896h128a32 32 0 1 1 0 64H352a32 32 0 1 1 0-64zm224-448V128H320v320a192 192 0 1 0 384 0m64 0h24.576a32 32 0 0 0 30.656-22.784l45.824-152.768A12.8 12.8 0 0 0 856.768 256H768zm-512 0V256h-88.768a12.8 12.8 0 0 0-12.288 16.448l45.824 152.768A32 32 0 0 0 231.424 448z"})]))}}),rx=ox,sx=T({name:"TurnOff",__name:"turn-off",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M329.956 257.138a254.862 254.862 0 0 0 0 509.724h364.088a254.862 254.862 0 0 0 0-509.724zm0-72.818h364.088a327.68 327.68 0 1 1 0 655.36H329.956a327.68 327.68 0 1 1 0-655.36z"}),k("path",{fill:"currentColor",d:"M329.956 621.227a109.227 109.227 0 1 0 0-218.454 109.227 109.227 0 0 0 0 218.454m0 72.817a182.044 182.044 0 1 1 0-364.088 182.044 182.044 0 0 1 0 364.088"})]))}}),ix=sx,ux=T({name:"Umbrella",__name:"umbrella",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M320 768a32 32 0 1 1 64 0 64 64 0 0 0 128 0V512H64a448 448 0 1 1 896 0H576v256a128 128 0 1 1-256 0m570.688-320a384.128 384.128 0 0 0-757.376 0z"})]))}}),cx=ux,dx=T({name:"Unlock",__name:"unlock",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96"}),k("path",{fill:"currentColor",d:"M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32m178.304-295.296A192.064 192.064 0 0 0 320 320v64h352l96 38.4V448H256V320a256 256 0 0 1 493.76-95.104z"})]))}}),fx=dx,px=T({name:"UploadFilled",__name:"upload-filled",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M544 864V672h128L512 480 352 672h128v192H320v-1.6c-5.376.32-10.496 1.6-16 1.6A240 240 0 0 1 64 624c0-123.136 93.12-223.488 212.608-237.248A239.808 239.808 0 0 1 512 192a239.872 239.872 0 0 1 235.456 194.752c119.488 13.76 212.48 114.112 212.48 237.248a240 240 0 0 1-240 240c-5.376 0-10.56-1.28-16-1.6v1.6z"})]))}}),vx=px,hx=T({name:"Upload",__name:"upload",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-578.304V704h-64V247.296L237.248 490.048 192 444.8 508.8 128l316.8 316.8-45.312 45.248z"})]))}}),mx=hx,gx=T({name:"UserFilled",__name:"user-filled",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M288 320a224 224 0 1 0 448 0 224 224 0 1 0-448 0m544 608H160a32 32 0 0 1-32-32v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 0 1-32 32z"})]))}}),yx=gx,_x=T({name:"User",__name:"user",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m320 320v-96a96 96 0 0 0-96-96H288a96 96 0 0 0-96 96v96a32 32 0 1 1-64 0v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 1 1-64 0"})]))}}),bx=_x,wx=T({name:"Van",__name:"van",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128.896 736H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v96h164.544a32 32 0 0 1 31.616 27.136l54.144 352A32 32 0 0 1 922.688 736h-91.52a144 144 0 1 1-286.272 0H415.104a144 144 0 1 1-286.272 0zm23.36-64a143.872 143.872 0 0 1 239.488 0H568.32c17.088-25.6 42.24-45.376 71.744-55.808V256H128v416zm655.488 0h77.632l-19.648-128H704v64.896A144 144 0 0 1 807.744 672m48.128-192-14.72-96H704v96h151.872M688 832a80 80 0 1 0 0-160 80 80 0 0 0 0 160m-416 0a80 80 0 1 0 0-160 80 80 0 0 0 0 160"})]))}}),Cx=wx,Sx=T({name:"VideoCameraFilled",__name:"video-camera-filled",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m768 576 192-64v320l-192-64v96a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V480a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zM192 768v64h384v-64zm192-480a160 160 0 0 1 320 0 160 160 0 0 1-320 0m64 0a96 96 0 1 0 192.064-.064A96 96 0 0 0 448 288m-320 32a128 128 0 1 1 256.064.064A128 128 0 0 1 128 320m64 0a64 64 0 1 0 128 0 64 64 0 0 0-128 0"})]))}}),kx=Sx,Ex=T({name:"VideoCamera",__name:"video-camera",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M704 768V256H128v512zm64-416 192-96v512l-192-96v128a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 71.552v176.896l128 64V359.552zM192 320h192v64H192z"})]))}}),Mx=Ex,xx=T({name:"VideoPause",__name:"video-pause",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m-96-544q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32m192 0q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32"})]))}}),$x=xx,Tx=T({name:"VideoPlay",__name:"video-play",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m-48-247.616L668.608 512 464 375.616zm10.624-342.656 249.472 166.336a48 48 0 0 1 0 79.872L474.624 718.272A48 48 0 0 1 400 678.336V345.6a48 48 0 0 1 74.624-39.936z"})]))}}),Ox=Tx,Nx=T({name:"View",__name:"view",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 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-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),f1=Nx,Ix=T({name:"WalletFilled",__name:"wallet-filled",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M688 512a112 112 0 1 0 0 224h208v160H128V352h768v160zm32 160h-32a48 48 0 0 1 0-96h32a48 48 0 0 1 0 96m-80-544 128 160H384z"})]))}}),Px=Ix,zx=T({name:"Wallet",__name:"wallet",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M640 288h-64V128H128v704h384v32a32 32 0 0 0 32 32H96a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32h512a32 32 0 0 1 32 32z"}),k("path",{fill:"currentColor",d:"M128 320v512h768V320zm-32-64h832a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32"}),k("path",{fill:"currentColor",d:"M704 640a64 64 0 1 1 0-128 64 64 0 0 1 0 128"})]))}}),Ax=zx,Vx=T({name:"WarnTriangleFilled",__name:"warn-triangle-filled",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M928.99 755.83 574.6 203.25c-12.89-20.16-36.76-32.58-62.6-32.58s-49.71 12.43-62.6 32.58L95.01 755.83c-12.91 20.12-12.9 44.91.01 65.03 12.92 20.12 36.78 32.51 62.59 32.49h708.78c25.82.01 49.68-12.37 62.59-32.49 12.91-20.12 12.92-44.91.01-65.03M554.67 768h-85.33v-85.33h85.33zm0-426.67v298.66h-85.33V341.32z"})]))}}),Lx=Vx,Rx=T({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),Ar=Rx,Bx=T({name:"Warning",__name:"warning",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m48-176a48 48 0 1 1-96 0 48 48 0 0 1 96 0m-48-464a32 32 0 0 1 32 32v288a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"})]))}}),Hx=Bx,Dx=T({name:"Watch",__name:"watch",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 768a256 256 0 1 0 0-512 256 256 0 0 0 0 512m0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640"}),k("path",{fill:"currentColor",d:"M480 352a32 32 0 0 1 32 32v160a32 32 0 0 1-64 0V384a32 32 0 0 1 32-32"}),k("path",{fill:"currentColor",d:"M480 512h128q32 0 32 32t-32 32H480q-32 0-32-32t32-32m128-256V128H416v128h-64V64h320v192zM416 768v128h192V768h64v192H352V768z"})]))}}),Fx=Dx,Kx=T({name:"Watermelon",__name:"watermelon",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m683.072 600.32-43.648 162.816-61.824-16.512 53.248-198.528L576 493.248l-158.4 158.4-45.248-45.248 158.4-158.4-55.616-55.616-198.528 53.248-16.512-61.824 162.816-43.648L282.752 200A384 384 0 0 0 824 741.248zm231.552 141.056a448 448 0 1 1-632-632l632 632"})]))}}),Wx=Kx,jx=T({name:"WindPower",__name:"wind-power",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M160 64q32 0 32 32v832q0 32-32 32t-32-32V96q0-32 32-32m416 354.624 128-11.584V168.96l-128-11.52v261.12zm-64 5.824V151.552L320 134.08V160h-64V64l616.704 56.064A96 96 0 0 1 960 215.68v144.64a96 96 0 0 1-87.296 95.616L256 512V224h64v217.92zm256-23.232 98.88-8.96A32 32 0 0 0 896 360.32V215.68a32 32 0 0 0-29.12-31.872l-98.88-8.96z"})]))}}),qx=jx,Ux=T({name:"ZoomIn",__name:"zoom-in",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))}}),yd=Ux,Yx=T({name:"ZoomOut",__name:"zoom-out",setup(e){return(t,n)=>(_(),x("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704M352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64"})]))}}),p1=Yx;const xZ=Object.freeze(Object.defineProperty({__proto__:null,AddLocation:qb,Aim:Yb,AlarmClock:Xb,Apple:Jb,ArrowDown:$a,ArrowDownBold:ew,ArrowLeft:Ra,ArrowLeftBold:aw,ArrowRight:En,ArrowRightBold:rw,ArrowUp:ki,ArrowUpBold:uw,Avatar:fw,Back:Uv,Baseball:hw,Basketball:gw,Bell:ww,BellFilled:_w,Bicycle:Sw,Bottom:Tw,BottomLeft:Ew,BottomRight:xw,Bowl:Nw,Box:Pw,Briefcase:Aw,Brush:Bw,BrushFilled:Lw,Burger:Dw,Calendar:Yv,Camera:qw,CameraFilled:Ww,CaretBottom:Yw,CaretLeft:Xw,CaretRight:vd,CaretTop:Gv,Cellphone:e5,ChatDotRound:n5,ChatDotSquare:l5,ChatLineRound:r5,ChatLineSquare:i5,ChatRound:c5,ChatSquare:f5,Check:Vo,Checked:h5,Cherry:g5,Chicken:_5,ChromeFilled:w5,CircleCheck:Ei,CircleCheckFilled:Xv,CircleClose:Ta,CircleCloseFilled:Mi,CirclePlus:T5,CirclePlusFilled:x5,Clock:hd,Close:Xn,CloseBold:I5,Cloudy:A5,Coffee:B5,CoffeeCup:L5,Coin:D5,ColdDrink:K5,Collection:U5,CollectionTag:j5,Comment:G5,Compass:Z5,Connection:Q5,Coordinate:t9,CopyDocument:a9,Cpu:o9,CreditCard:s9,Crop:u9,DArrowLeft:Ba,DArrowRight:Ha,DCaret:p9,DataAnalysis:h9,DataBoard:g9,DataLine:_9,Delete:Zv,DeleteFilled:w9,DeleteLocation:S9,Dessert:M9,Discount:$9,Dish:I9,DishDot:O9,Document:Jv,DocumentAdd:z9,DocumentChecked:V9,DocumentCopy:R9,DocumentDelete:H9,DocumentRemove:F9,Download:j9,Drizzling:U9,Edit:Z9,EditPen:G9,Eleme:tC,ElemeFilled:Q9,ElementPlus:aC,Expand:oC,Failed:sC,Female:uC,Files:dC,Film:pC,Filter:hC,Finished:gC,FirstAidKit:_C,Flag:wC,Fold:SC,Folder:AC,FolderAdd:EC,FolderChecked:xC,FolderDelete:TC,FolderOpened:NC,FolderRemove:PC,Food:LC,Football:BC,ForkSpoon:DC,Fries:KC,FullScreen:Qv,Goblet:JC,GobletFull:qC,GobletSquare:XC,GobletSquareFull:YC,GoldMedal:eS,Goods:lS,GoodsFilled:nS,Grape:rS,Grid:iS,Guide:cS,Handbag:fS,Headset:vS,Help:yS,HelpFilled:mS,Hide:e1,Histogram:wS,HomeFilled:SS,HotWater:ES,House:xS,IceCream:PS,IceCreamRound:TS,IceCreamSquare:NS,IceDrink:AS,IceTea:LS,InfoFilled:xi,Iphone:HS,Key:FS,KnifeFork:WS,Lightning:qS,Link:YS,List:XS,Loading:ca,Location:a7,LocationFilled:QS,LocationInformation:t7,Lock:o7,Lollipop:s7,MagicStick:u7,Magnet:d7,Male:p7,Management:h7,MapLocation:g7,Medal:_7,Memo:w7,Menu:S7,Message:x7,MessageBox:E7,Mic:T7,Microphone:N7,MilkTea:P7,Minus:t1,Money:V7,Monitor:R7,Moon:F7,MoonNight:H7,More:n1,MoreFilled:Hu,MostlyCloudy:q7,Mouse:Y7,Mug:X7,Mute:ek,MuteNotification:J7,NoSmoking:nk,Notebook:lk,Notification:rk,Odometer:ik,OfficeBuilding:ck,Open:fk,Operation:vk,Opportunity:mk,Orange:yk,Paperclip:bk,PartlyCloudy:Ck,Pear:kk,Phone:$k,PhoneFilled:Mk,Picture:Pk,PictureFilled:a1,PictureRounded:Nk,PieChart:Ak,Place:Lk,Platform:Bk,Plus:md,Pointer:Fk,Position:Wk,Postcard:qk,Pouring:Yk,Present:Xk,PriceTag:Jk,Printer:eE,Promotion:nE,QuartzWatch:lE,QuestionFilled:l1,Rank:sE,Reading:dE,ReadingLamp:uE,Refresh:hE,RefreshLeft:o1,RefreshRight:r1,Refrigerator:gE,Remove:wE,RemoveFilled:_E,Right:SE,ScaleToOriginal:s1,School:ME,Scissor:$E,Search:i1,Select:NE,Sell:PE,SemiSelect:AE,Service:LE,SetUp:BE,Setting:DE,Share:KE,Ship:jE,Shop:UE,ShoppingBag:GE,ShoppingCart:QE,ShoppingCartFull:ZE,ShoppingTrolley:tM,Smoking:aM,Soccer:oM,SoldOut:sM,Sort:dM,SortDown:u1,SortUp:c1,Stamp:pM,Star:d1,StarFilled:Go,Stopwatch:gM,SuccessFilled:gd,Sugar:bM,Suitcase:kM,SuitcaseLine:CM,Sunny:MM,Sunrise:$M,Sunset:OM,Switch:VM,SwitchButton:IM,SwitchFilled:zM,TakeawayBox:RM,Ticket:HM,Tickets:FM,Timer:WM,ToiletPaper:qM,Tools:YM,Top:ex,TopLeft:XM,TopRight:JM,TrendCharts:nx,Trophy:rx,TrophyBase:lx,TurnOff:ix,Umbrella:cx,Unlock:fx,Upload:mx,UploadFilled:vx,User:bx,UserFilled:yx,Van:Cx,VideoCamera:Mx,VideoCameraFilled:kx,VideoPause:$x,VideoPlay:Ox,View:f1,Wallet:Ax,WalletFilled:Px,WarnTriangleFilled:Lx,Warning:Hx,WarningFilled:Ar,Watch:Fx,Watermelon:Wx,WindPower:qx,ZoomIn:yd,ZoomOut:p1},Symbol.toStringTag,{value:"Module"})),St=X([String,Object,Function]),_d={Close:Xn},bd={Close:Xn,SuccessFilled:gd,InfoFilled:xi,WarningFilled:Ar,CircleCloseFilled:Mi},ul={success:gd,warning:Ar,error:Mi,info:xi},$i={validating:ca,success:Ei,error:Ta},Gx=["light","dark"],Xx=pe({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:po(ul),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:Gx,default:"light"}}),Zx={close:e=>e instanceof MouseEvent},Jx=T({name:"ElAlert"}),Qx=T({...Jx,props:Xx,emits:Zx,setup(e,{emit:t}){const n=e,{Close:a}=bd,l=Xt(),o=de("alert"),s=A(!0),i=C(()=>ul[n.type]),u=C(()=>!!(n.description||l.default)),c=d=>{s.value=!1,t("close",d)};return(d,f)=>(_(),ae(tn,{name:r(o).b("fade"),persisted:""},{default:G(()=>[qe(k("div",{class:$([r(o).b(),r(o).m(d.type),r(o).is("center",d.center),r(o).is(d.effect)]),role:"alert"},[d.showIcon&&r(i)?(_(),ae(r(xe),{key:0,class:$([r(o).e("icon"),{[r(o).is("big")]:r(u)}])},{default:G(()=>[(_(),ae(et(r(i))))]),_:1},8,["class"])):ee("v-if",!0),k("div",{class:$(r(o).e("content"))},[d.title||d.$slots.title?(_(),x("span",{key:0,class:$([r(o).e("title"),{"with-description":r(u)}])},[Q(d.$slots,"title",{},()=>[ot(he(d.title),1)])],2)):ee("v-if",!0),r(u)?(_(),x("p",{key:1,class:$(r(o).e("description"))},[Q(d.$slots,"default",{},()=>[ot(he(d.description),1)])],2)):ee("v-if",!0),d.closable?(_(),x(ze,{key:2},[d.closeText?(_(),x("div",{key:0,class:$([r(o).e("close-btn"),r(o).is("customed")]),onClick:c},he(d.closeText),3)):(_(),ae(r(xe),{key:1,class:$(r(o).e("close-btn")),onClick:c},{default:G(()=>[q(r(a))]),_:1},8,["class"]))],64)):ee("v-if",!0)],2)],2),[[pt,s.value]])]),_:3},8,["name"]))}});var e$=ve(Qx,[["__file","alert.vue"]]);const t$=We(e$),Ti=()=>ut&&/firefox/i.test(window.navigator.userAgent);let ta;const n$=` - height:0 !important; - visibility:hidden !important; - ${Ti()?"":"overflow:hidden !important;"} - position:absolute !important; - z-index:-1000 !important; - top:0 !important; - right:0 !important; -`,a$=["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 l$(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),a=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),l=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:a$.map(s=>`${s}:${t.getPropertyValue(s)}`).join(";"),paddingSize:a,borderSize:l,boxSizing:n}}function O0(e,t=1,n){var a;ta||(ta=document.createElement("textarea"),document.body.appendChild(ta));const{paddingSize:l,borderSize:o,boxSizing:s,contextStyle:i}=l$(e);ta.setAttribute("style",`${i};${n$}`),ta.value=e.value||e.placeholder||"";let u=ta.scrollHeight;const c={};s==="border-box"?u=u+o:s==="content-box"&&(u=u-l),ta.value="";const d=ta.scrollHeight-l;if(Ie(t)){let f=d*t;s==="border-box"&&(f=f+l+o),u=Math.max(f,u),c.minHeight=`${f}px`}if(Ie(n)){let f=d*n;s==="border-box"&&(f=f+l+o),u=Math.min(f,u)}return c.height=`${u}px`,(a=ta.parentNode)==null||a.removeChild(ta),ta=void 0,c}const Vt=e=>e,o$=pe({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),sn=e=>ra(o$,e),wd=pe({id:{type:String,default:void 0},size:qt,disabled:Boolean,modelValue:{type:X([String,Number,Object]),default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:X([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,showPassword:Boolean,showWordLimit:Boolean,suffixIcon:{type:St},prefixIcon:{type:St},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:X([Object,Array,String]),default:()=>Vt({})},autofocus:Boolean,rows:{type:Number,default:2},...sn(["ariaLabel"])}),r$={[Ue]:e=>Ve(e),input:e=>Ve(e),change:e=>Ve(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},s$=["class","style"],i$=/^on[A-Z]/,Vr=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,a=C(()=>((n==null?void 0:n.value)||[]).concat(s$)),l=Ze();return l?C(()=>{var o;return fr(Object.entries((o=l.proxy)==null?void 0:o.$attrs).filter(([s])=>!a.value.includes(s)&&!(t&&i$.test(s))))}):C(()=>({}))},Dl=Symbol("formContextKey"),ka=Symbol("formItemContextKey"),N0={prefix:Math.floor(Math.random()*1e4),current:0},u$=Symbol("elIdInjection"),Cd=()=>Ze()?Se(u$,N0):N0,rn=e=>{const t=Cd(),n=Uc();return Lu(()=>r(e)||`${n.value}-id-${t.prefix}-${t.current++}`)},gn=()=>{const e=Se(Dl,void 0),t=Se(ka,void 0);return{form:e,formItem:t}},ea=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:a})=>{n||(n=A(!1)),a||(a=A(!1));const l=A();let o;const s=C(()=>{var i;return!!(!(e.label||e.ariaLabel)&&t&&t.inputIds&&((i=t.inputIds)==null?void 0:i.length)<=1)});return Ge(()=>{o=se([mt(e,"id"),n],([i,u])=>{const c=i??(u?void 0:rn().value);c!==l.value&&(t!=null&&t.removeInputId&&(l.value&&t.removeInputId(l.value),!(a!=null&&a.value)&&!u&&c&&t.addInputId(c)),l.value=c)},{immediate:!0})}),To(()=>{o&&o(),t!=null&&t.removeInputId&&l.value&&t.removeInputId(l.value)}),{isLabeledByFormItem:s,inputId:l}},v1=e=>{const t=Ze();return C(()=>{var n,a;return(a=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:a[e]})},jt=(e,t={})=>{const n=A(void 0),a=t.prop?n:v1("size"),l=t.global?n:Bv(),o=t.form?{size:void 0}:Se(Dl,void 0),s=t.formItem?{size:void 0}:Se(ka,void 0);return C(()=>a.value||r(e)||(s==null?void 0:s.size)||(o==null?void 0:o.size)||l.value||"")},yn=e=>{const t=v1("disabled"),n=Se(Dl,void 0);return C(()=>t.value||r(e)||(n==null?void 0:n.disabled)||!1)};function fl(e,{beforeFocus:t,afterFocus:n,beforeBlur:a,afterBlur:l}={}){const o=Ze(),{emit:s}=o,i=Mt(),u=A(!1),c=h=>{Qe(t)&&t(h)||u.value||(u.value=!0,s("focus",h),n==null||n())},d=h=>{var v;Qe(a)&&a(h)||h.relatedTarget&&((v=i.value)!=null&&v.contains(h.relatedTarget))||(u.value=!1,s("blur",h),l==null||l())},f=()=>{var h,v;(h=i.value)!=null&&h.contains(document.activeElement)&&i.value!==document.activeElement||(v=e.value)==null||v.focus()};return se(i,h=>{h&&h.setAttribute("tabindex","-1")}),wt(i,"focus",c,!0),wt(i,"blur",d,!0),wt(i,"click",f,!0),{isFocused:u,wrapperRef:i,handleFocus:c,handleBlur:d}}const c$=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e);function Lr({afterComposition:e,emit:t}){const n=A(!1),a=i=>{t==null||t("compositionstart",i),n.value=!0},l=i=>{var u;t==null||t("compositionupdate",i);const c=(u=i.target)==null?void 0:u.value,d=c[c.length-1]||"";n.value=!c$(d)},o=i=>{t==null||t("compositionend",i),n.value&&(n.value=!1,Oe(()=>e(i)))};return{isComposing:n,handleComposition:i=>{i.type==="compositionend"?o(i):l(i)},handleCompositionStart:a,handleCompositionUpdate:l,handleCompositionEnd:o}}function d$(e){let t;function n(){if(e.value==null)return;const{selectionStart:l,selectionEnd:o,value:s}=e.value;if(l==null||o==null)return;const i=s.slice(0,Math.max(0,l)),u=s.slice(Math.max(0,o));t={selectionStart:l,selectionEnd:o,value:s,beforeTxt:i,afterTxt:u}}function a(){if(e.value==null||t==null)return;const{value:l}=e.value,{beforeTxt:o,afterTxt:s,selectionStart:i}=t;if(o==null||s==null||i==null)return;let u=l.length;if(l.endsWith(s))u=l.length-s.length;else if(l.startsWith(o))u=o.length;else{const c=o[i-1],d=l.indexOf(c,i-1);d!==-1&&(u=d+1)}e.value.setSelectionRange(u,u)}return[n,a]}const f$=T({name:"ElInput",inheritAttrs:!1}),p$=T({...f$,props:wd,emits:r$,setup(e,{expose:t,emit:n}){const a=e,l=Wa(),o=Vr(),s=Xt(),i=C(()=>[a.type==="textarea"?p.b():m.b(),m.m(h.value),m.is("disabled",v.value),m.is("exceed",Z.value),{[m.b("group")]:s.prepend||s.append,[m.m("prefix")]:s.prefix||a.prefixIcon,[m.m("suffix")]:s.suffix||a.suffixIcon||a.clearable||a.showPassword,[m.bm("suffix","password-clear")]:B.value&&V.value,[m.b("hidden")]:a.type==="hidden"},l.class]),u=C(()=>[m.e("wrapper"),m.is("focus",I.value)]),{form:c,formItem:d}=gn(),{inputId:f}=ea(a,{formItemContext:d}),h=jt(),v=yn(),m=de("input"),p=de("textarea"),y=Mt(),g=Mt(),M=A(!1),w=A(!1),b=A(),S=Mt(a.inputStyle),E=C(()=>y.value||g.value),{wrapperRef:O,isFocused:I,handleFocus:N,handleBlur:z}=fl(E,{beforeFocus(){return v.value},afterBlur(){var be;a.validateEvent&&((be=d==null?void 0:d.validate)==null||be.call(d,"blur").catch(je=>void 0))}}),P=C(()=>{var be;return(be=c==null?void 0:c.statusIcon)!=null?be:!1}),L=C(()=>(d==null?void 0:d.validateState)||""),F=C(()=>L.value&&$i[L.value]),U=C(()=>w.value?f1:e1),H=C(()=>[l.style]),R=C(()=>[a.inputStyle,S.value,{resize:a.resize}]),D=C(()=>Zt(a.modelValue)?"":String(a.modelValue)),B=C(()=>a.clearable&&!v.value&&!a.readonly&&!!D.value&&(I.value||M.value)),V=C(()=>a.showPassword&&!v.value&&!!D.value&&(!!D.value||I.value)),K=C(()=>a.showWordLimit&&!!a.maxlength&&(a.type==="text"||a.type==="textarea")&&!v.value&&!a.readonly&&!a.showPassword),W=C(()=>D.value.length),Z=C(()=>!!K.value&&W.value>Number(a.maxlength)),j=C(()=>!!s.suffix||!!a.suffixIcon||B.value||a.showPassword||K.value||!!L.value&&P.value),[ne,oe]=d$(y);At(g,be=>{if(ie(),!K.value||a.resize!=="both")return;const je=be[0],{width:ft}=je.contentRect;b.value={right:`calc(100% - ${ft+15+6}px)`}});const ce=()=>{const{type:be,autosize:je}=a;if(!(!ut||be!=="textarea"||!g.value))if(je){const ft=ht(je)?je.minRows:void 0,Ot=ht(je)?je.maxRows:void 0,bt=O0(g.value,ft,Ot);S.value={overflowY:"hidden",...bt},Oe(()=>{g.value.offsetHeight,S.value=bt})}else S.value={minHeight:O0(g.value).minHeight}},ie=(be=>{let je=!1;return()=>{var ft;if(je||!a.autosize)return;((ft=g.value)==null?void 0:ft.offsetParent)===null||(be(),je=!0)}})(ce),fe=()=>{const be=E.value,je=a.formatter?a.formatter(D.value):D.value;!be||be.value===je||(be.value=je)},Me=async be=>{ne();let{value:je}=be.target;if(a.formatter&&(je=a.parser?a.parser(je):je),!le.value){if(je===D.value){fe();return}n(Ue,je),n("input",je),await Oe(),fe(),oe()}},me=be=>{n("change",be.target.value)},{isComposing:le,handleCompositionStart:we,handleCompositionUpdate:Le,handleCompositionEnd:De}=Lr({emit:n,afterComposition:Me}),Ye=()=>{ne(),w.value=!w.value,setTimeout(oe)},$e=()=>{var be;return(be=E.value)==null?void 0:be.focus()},Te=()=>{var be;return(be=E.value)==null?void 0:be.blur()},ke=be=>{M.value=!1,n("mouseleave",be)},He=be=>{M.value=!0,n("mouseenter",be)},Xe=be=>{n("keydown",be)},at=()=>{var be;(be=E.value)==null||be.select()},nt=()=>{n(Ue,""),n("change",""),n("clear"),n("input","")};return se(()=>a.modelValue,()=>{var be;Oe(()=>ce()),a.validateEvent&&((be=d==null?void 0:d.validate)==null||be.call(d,"change").catch(je=>void 0))}),se(D,()=>fe()),se(()=>a.type,async()=>{await Oe(),fe(),ce()}),Ge(()=>{!a.formatter&&a.parser,fe(),Oe(ce)}),t({input:y,textarea:g,ref:E,textareaStyle:R,autosize:mt(a,"autosize"),isComposing:le,focus:$e,blur:Te,select:at,clear:nt,resizeTextarea:ce}),(be,je)=>(_(),x("div",{class:$([r(i),{[r(m).bm("group","append")]:be.$slots.append,[r(m).bm("group","prepend")]:be.$slots.prepend}]),style:Ne(r(H)),onMouseenter:He,onMouseleave:ke},[ee(" input "),be.type!=="textarea"?(_(),x(ze,{key:0},[ee(" prepend slot "),be.$slots.prepend?(_(),x("div",{key:0,class:$(r(m).be("group","prepend"))},[Q(be.$slots,"prepend")],2)):ee("v-if",!0),k("div",{ref_key:"wrapperRef",ref:O,class:$(r(u))},[ee(" prefix slot "),be.$slots.prefix||be.prefixIcon?(_(),x("span",{key:0,class:$(r(m).e("prefix"))},[k("span",{class:$(r(m).e("prefix-inner"))},[Q(be.$slots,"prefix"),be.prefixIcon?(_(),ae(r(xe),{key:0,class:$(r(m).e("icon"))},{default:G(()=>[(_(),ae(et(be.prefixIcon)))]),_:1},8,["class"])):ee("v-if",!0)],2)],2)):ee("v-if",!0),k("input",tt({id:r(f),ref_key:"input",ref:y,class:r(m).e("inner")},r(o),{minlength:be.minlength,maxlength:be.maxlength,type:be.showPassword?w.value?"text":"password":be.type,disabled:r(v),readonly:be.readonly,autocomplete:be.autocomplete,tabindex:be.tabindex,"aria-label":be.ariaLabel,placeholder:be.placeholder,style:be.inputStyle,form:be.form,autofocus:be.autofocus,role:be.containerRole,onCompositionstart:r(we),onCompositionupdate:r(Le),onCompositionend:r(De),onInput:Me,onChange:me,onKeydown:Xe}),null,16,["id","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus","role","onCompositionstart","onCompositionupdate","onCompositionend"]),ee(" suffix slot "),r(j)?(_(),x("span",{key:1,class:$(r(m).e("suffix"))},[k("span",{class:$(r(m).e("suffix-inner"))},[!r(B)||!r(V)||!r(K)?(_(),x(ze,{key:0},[Q(be.$slots,"suffix"),be.suffixIcon?(_(),ae(r(xe),{key:0,class:$(r(m).e("icon"))},{default:G(()=>[(_(),ae(et(be.suffixIcon)))]),_:1},8,["class"])):ee("v-if",!0)],64)):ee("v-if",!0),r(B)?(_(),ae(r(xe),{key:1,class:$([r(m).e("icon"),r(m).e("clear")]),onMousedown:Ae(r(zt),["prevent"]),onClick:nt},{default:G(()=>[q(r(Ta))]),_:1},8,["class","onMousedown"])):ee("v-if",!0),r(V)?(_(),ae(r(xe),{key:2,class:$([r(m).e("icon"),r(m).e("password")]),onClick:Ye},{default:G(()=>[(_(),ae(et(r(U))))]),_:1},8,["class"])):ee("v-if",!0),r(K)?(_(),x("span",{key:3,class:$(r(m).e("count"))},[k("span",{class:$(r(m).e("count-inner"))},he(r(W))+" / "+he(be.maxlength),3)],2)):ee("v-if",!0),r(L)&&r(F)&&r(P)?(_(),ae(r(xe),{key:4,class:$([r(m).e("icon"),r(m).e("validateIcon"),r(m).is("loading",r(L)==="validating")])},{default:G(()=>[(_(),ae(et(r(F))))]),_:1},8,["class"])):ee("v-if",!0)],2)],2)):ee("v-if",!0)],2),ee(" append slot "),be.$slots.append?(_(),x("div",{key:1,class:$(r(m).be("group","append"))},[Q(be.$slots,"append")],2)):ee("v-if",!0)],64)):(_(),x(ze,{key:1},[ee(" textarea "),k("textarea",tt({id:r(f),ref_key:"textarea",ref:g,class:[r(p).e("inner"),r(m).is("focus",r(I))]},r(o),{minlength:be.minlength,maxlength:be.maxlength,tabindex:be.tabindex,disabled:r(v),readonly:be.readonly,autocomplete:be.autocomplete,style:r(R),"aria-label":be.ariaLabel,placeholder:be.placeholder,form:be.form,autofocus:be.autofocus,rows:be.rows,role:be.containerRole,onCompositionstart:r(we),onCompositionupdate:r(Le),onCompositionend:r(De),onInput:Me,onFocus:r(N),onBlur:r(z),onChange:me,onKeydown:Xe}),null,16,["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus","rows","role","onCompositionstart","onCompositionupdate","onCompositionend","onFocus","onBlur"]),r(K)?(_(),x("span",{key:0,style:Ne(b.value),class:$(r(m).e("count"))},he(r(W))+" / "+he(be.maxlength),7)):ee("v-if",!0)],64))],38))}});var v$=ve(p$,[["__file","input.vue"]]);const Sn=We(v$),Wl=4,h1={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"}},h$=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),Sd=Symbol("scrollbarContextKey"),m$=pe({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),g$="Thumb",y$=T({__name:"thumb",props:m$,setup(e){const t=e,n=Se(Sd),a=de("scrollbar");n||Gt(g$,"can not inject scrollbar context");const l=A(),o=A(),s=A({}),i=A(!1);let u=!1,c=!1,d=ut?document.onselectstart:null;const f=C(()=>h1[t.vertical?"vertical":"horizontal"]),h=C(()=>h$({size:t.size,move:t.move,bar:f.value})),v=C(()=>l.value[f.value.offset]**2/n.wrapElement[f.value.scrollSize]/t.ratio/o.value[f.value.offset]),m=E=>{var O;if(E.stopPropagation(),E.ctrlKey||[1,2].includes(E.button))return;(O=window.getSelection())==null||O.removeAllRanges(),y(E);const I=E.currentTarget;I&&(s.value[f.value.axis]=I[f.value.offset]-(E[f.value.client]-I.getBoundingClientRect()[f.value.direction]))},p=E=>{if(!o.value||!l.value||!n.wrapElement)return;const O=Math.abs(E.target.getBoundingClientRect()[f.value.direction]-E[f.value.client]),I=o.value[f.value.offset]/2,N=(O-I)*100*v.value/l.value[f.value.offset];n.wrapElement[f.value.scroll]=N*n.wrapElement[f.value.scrollSize]/100},y=E=>{E.stopImmediatePropagation(),u=!0,document.addEventListener("mousemove",g),document.addEventListener("mouseup",M),d=document.onselectstart,document.onselectstart=()=>!1},g=E=>{if(!l.value||!o.value||u===!1)return;const O=s.value[f.value.axis];if(!O)return;const I=(l.value.getBoundingClientRect()[f.value.direction]-E[f.value.client])*-1,N=o.value[f.value.offset]-O,z=(I-N)*100*v.value/l.value[f.value.offset];n.wrapElement[f.value.scroll]=z*n.wrapElement[f.value.scrollSize]/100},M=()=>{u=!1,s.value[f.value.axis]=0,document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",M),S(),c&&(i.value=!1)},w=()=>{c=!1,i.value=!!t.size},b=()=>{c=!0,i.value=u};Tt(()=>{S(),document.removeEventListener("mouseup",M)});const S=()=>{document.onselectstart!==d&&(document.onselectstart=d)};return wt(mt(n,"scrollbarElement"),"mousemove",w),wt(mt(n,"scrollbarElement"),"mouseleave",b),(E,O)=>(_(),ae(tn,{name:r(a).b("fade"),persisted:""},{default:G(()=>[qe(k("div",{ref_key:"instance",ref:l,class:$([r(a).e("bar"),r(a).is(r(f).key)]),onMousedown:p},[k("div",{ref_key:"thumb",ref:o,class:$(r(a).e("thumb")),style:Ne(r(h)),onMousedown:m},null,38)],34),[[pt,E.always||i.value]])]),_:1},8,["name"]))}});var I0=ve(y$,[["__file","thumb.vue"]]);const _$=pe({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),b$=T({__name:"bar",props:_$,setup(e,{expose:t}){const n=e,a=Se(Sd),l=A(0),o=A(0),s=A(""),i=A(""),u=A(1),c=A(1);return t({handleScroll:h=>{if(h){const v=h.offsetHeight-Wl,m=h.offsetWidth-Wl;o.value=h.scrollTop*100/v*u.value,l.value=h.scrollLeft*100/m*c.value}},update:()=>{const h=a==null?void 0:a.wrapElement;if(!h)return;const v=h.offsetHeight-Wl,m=h.offsetWidth-Wl,p=v**2/h.scrollHeight,y=m**2/h.scrollWidth,g=Math.max(p,n.minSize),M=Math.max(y,n.minSize);u.value=p/(v-p)/(g/(v-g)),c.value=y/(m-y)/(M/(m-M)),i.value=g+Wl(_(),x(ze,null,[q(I0,{move:l.value,ratio:c.value,size:s.value,always:h.always},null,8,["move","ratio","size","always"]),q(I0,{move:o.value,ratio:u.value,size:i.value,vertical:"",always:h.always},null,8,["move","ratio","size","always"])],64))}});var w$=ve(b$,[["__file","bar.vue"]]);const C$=pe({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:X([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},tabindex:{type:[String,Number],default:void 0},id:String,role:String,...sn(["ariaLabel","ariaOrientation"])}),S$={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(Ie)},k$="ElScrollbar",E$=T({name:k$}),M$=T({...E$,props:C$,emits:S$,setup(e,{expose:t,emit:n}){const a=e,l=de("scrollbar");let o,s,i=0,u=0;const c=A(),d=A(),f=A(),h=A(),v=C(()=>{const S={};return a.height&&(S.height=Rt(a.height)),a.maxHeight&&(S.maxHeight=Rt(a.maxHeight)),[a.wrapStyle,S]}),m=C(()=>[a.wrapClass,l.e("wrap"),{[l.em("wrap","hidden-default")]:!a.native}]),p=C(()=>[l.e("view"),a.viewClass]),y=()=>{var S;d.value&&((S=h.value)==null||S.handleScroll(d.value),i=d.value.scrollTop,u=d.value.scrollLeft,n("scroll",{scrollTop:d.value.scrollTop,scrollLeft:d.value.scrollLeft}))};function g(S,E){ht(S)?d.value.scrollTo(S):Ie(S)&&Ie(E)&&d.value.scrollTo(S,E)}const M=S=>{Ie(S)&&(d.value.scrollTop=S)},w=S=>{Ie(S)&&(d.value.scrollLeft=S)},b=()=>{var S;(S=h.value)==null||S.update()};return se(()=>a.noresize,S=>{S?(o==null||o(),s==null||s()):({stop:o}=At(f,b),s=wt("resize",b))},{immediate:!0}),se(()=>[a.maxHeight,a.height],()=>{a.native||Oe(()=>{var S;b(),d.value&&((S=h.value)==null||S.handleScroll(d.value))})}),it(Sd,_t({scrollbarElement:c,wrapElement:d})),Ap(()=>{d.value&&(d.value.scrollTop=i,d.value.scrollLeft=u)}),Ge(()=>{a.native||Oe(()=>{b()})}),ja(()=>b()),t({wrapRef:d,update:b,scrollTo:g,setScrollTop:M,setScrollLeft:w,handleScroll:y}),(S,E)=>(_(),x("div",{ref_key:"scrollbarRef",ref:c,class:$(r(l).b())},[k("div",{ref_key:"wrapRef",ref:d,class:$(r(m)),style:Ne(r(v)),tabindex:S.tabindex,onScroll:y},[(_(),ae(et(S.tag),{id:S.id,ref_key:"resizeRef",ref:f,class:$(r(p)),style:Ne(S.viewStyle),role:S.role,"aria-label":S.ariaLabel,"aria-orientation":S.ariaOrientation},{default:G(()=>[Q(S.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,["tabindex"]),S.native?ee("v-if",!0):(_(),ae(w$,{key:0,ref_key:"barRef",ref:h,always:S.always,"min-size":S.minSize},null,8,["always","min-size"]))],2))}});var x$=ve(M$,[["__file","scrollbar.vue"]]);const Oa=We(x$),kd=Symbol("popper"),m1=Symbol("popperContent"),$$=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],g1=pe({role:{type:String,values:$$,default:"tooltip"}}),T$=T({name:"ElPopper",inheritAttrs:!1}),O$=T({...T$,props:g1,setup(e,{expose:t}){const n=e,a=A(),l=A(),o=A(),s=A(),i=C(()=>n.role),u={triggerRef:a,popperInstanceRef:l,contentRef:o,referenceRef:s,role:i};return t(u),it(kd,u),(c,d)=>Q(c.$slots,"default")}});var N$=ve(O$,[["__file","popper.vue"]]);const y1=pe({arrowOffset:{type:Number,default:5}}),I$=T({name:"ElPopperArrow",inheritAttrs:!1}),P$=T({...I$,props:y1,setup(e,{expose:t}){const n=e,a=de("popper"),{arrowOffset:l,arrowRef:o,arrowStyle:s}=Se(m1,void 0);return se(()=>n.arrowOffset,i=>{l.value=i}),Tt(()=>{o.value=void 0}),t({arrowRef:o}),(i,u)=>(_(),x("span",{ref_key:"arrowRef",ref:o,class:$(r(a).e("arrow")),style:Ne(r(s)),"data-popper-arrow":""},null,6))}});var z$=ve(P$,[["__file","arrow.vue"]]);const _1=pe({virtualRef:{type:X(Object)},virtualTriggering:Boolean,onMouseenter:{type:X(Function)},onMouseleave:{type:X(Function)},onClick:{type:X(Function)},onKeydown:{type:X(Function)},onFocus:{type:X(Function)},onBlur:{type:X(Function)},onContextmenu:{type:X(Function)},id:String,open:Boolean}),b1=Symbol("elForwardRef"),A$=e=>{it(b1,{setForwardRef:n=>{e.value=n}})},V$=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),L$='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',R$=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,P0=e=>Array.from(e.querySelectorAll(L$)).filter(t=>js(t)&&R$(t)),js=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.tabIndex<0||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true")return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},vs=function(e,t,...n){let a;t.includes("mouse")||t.includes("click")?a="MouseEvents":t.includes("key")?a="KeyboardEvent":a="HTMLEvents";const l=document.createEvent(a);return l.initEvent(t,...n),e.dispatchEvent(l),e},w1=e=>!e.getAttribute("aria-owns"),C1=(e,t,n)=>{const{parentNode:a}=e;if(!a)return null;const l=a.querySelectorAll(n),o=Array.prototype.indexOf.call(l,e);return l[o+t]||null},hs=e=>{e&&(e.focus(),!w1(e)&&e.click())},B$="ElOnlyChild",S1=T({name:B$,setup(e,{slots:t,attrs:n}){var a;const l=Se(b1),o=V$((a=l==null?void 0:l.setForwardRef)!=null?a:zt);return()=>{var s;const i=(s=t.default)==null?void 0:s.call(t,n);if(!i||i.length>1)return null;const u=k1(i);return u?qe(og(u,n),[[o]]):null}}});function k1(e){if(!e)return null;const t=e;for(const n of t){if(ht(n))switch(n.type){case ci:continue;case Vp:case"svg":return z0(n);case ze:return k1(n.children);default:return n}return z0(n)}return null}function z0(e){const t=de("only-child");return q("span",{class:t.e("content")},[e])}const H$=T({name:"ElPopperTrigger",inheritAttrs:!1}),D$=T({...H$,props:_1,setup(e,{expose:t}){const n=e,{role:a,triggerRef:l}=Se(kd,void 0);A$(l);const o=C(()=>i.value?n.id:void 0),s=C(()=>{if(a&&a.value==="tooltip")return n.open&&n.id?n.id:void 0}),i=C(()=>{if(a&&a.value!=="tooltip")return a.value}),u=C(()=>i.value?`${n.open}`:void 0);let c;const d=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return Ge(()=>{se(()=>n.virtualRef,f=>{f&&(l.value=$n(f))},{immediate:!0}),se(l,(f,h)=>{c==null||c(),c=void 0,Tn(f)&&(d.forEach(v=>{var m;const p=n[v];p&&(f.addEventListener(v.slice(2).toLowerCase(),p),(m=h==null?void 0:h.removeEventListener)==null||m.call(h,v.slice(2).toLowerCase(),p))}),js(f)&&(c=se([o,s,i,u],v=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((m,p)=>{Zt(v[p])?f.removeAttribute(m):f.setAttribute(m,v[p])})},{immediate:!0}))),Tn(h)&&js(h)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(v=>h.removeAttribute(v))},{immediate:!0})}),Tt(()=>{if(c==null||c(),c=void 0,l.value&&Tn(l.value)){const f=l.value;d.forEach(h=>{const v=n[h];v&&f.removeEventListener(h.slice(2).toLowerCase(),v)}),l.value=void 0}}),t({triggerRef:l}),(f,h)=>f.virtualTriggering?ee("v-if",!0):(_(),ae(r(S1),tt({key:0},f.$attrs,{"aria-controls":r(o),"aria-describedby":r(s),"aria-expanded":r(u),"aria-haspopup":r(i)}),{default:G(()=>[Q(f.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var F$=ve(D$,[["__file","trigger.vue"]]);const nu="focus-trap.focus-after-trapped",au="focus-trap.focus-after-released",K$="focus-trap.focusout-prevented",A0={cancelable:!0,bubbles:!1},W$={cancelable:!0,bubbles:!1},V0="focusAfterTrapped",L0="focusAfterReleased",Ed=Symbol("elFocusTrap"),Md=A(),Oi=A(0),xd=A(0);let Xr=0;const E1=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const l=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||l?NodeFilter.FILTER_SKIP:a.tabIndex>=0||a===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},R0=(e,t)=>{for(const n of e)if(!j$(n,t))return n},j$=(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},q$=e=>{const t=E1(e),n=R0(t,e),a=R0(t.reverse(),e);return[n,a]},U$=e=>e instanceof HTMLInputElement&&"select"in e,za=(e,t)=>{if(e&&e.focus){const n=document.activeElement;let a=!1;Tn(e)&&!js(e)&&!e.getAttribute("tabindex")&&(e.setAttribute("tabindex","-1"),a=!0),e.focus({preventScroll:!0}),xd.value=window.performance.now(),e!==n&&U$(e)&&t&&e.select(),Tn(e)&&a&&e.removeAttribute("tabindex")}};function B0(e,t){const n=[...e],a=e.indexOf(t);return a!==-1&&n.splice(a,1),n}const Y$=()=>{let e=[];return{push:a=>{const l=e[0];l&&a!==l&&l.pause(),e=B0(e,a),e.unshift(a)},remove:a=>{var l,o;e=B0(e,a),(o=(l=e[0])==null?void 0:l.resume)==null||o.call(l)}}},G$=(e,t=!1)=>{const n=document.activeElement;for(const a of e)if(za(a,t),document.activeElement!==n)return},H0=Y$(),X$=()=>Oi.value>xd.value,Zr=()=>{Md.value="pointer",Oi.value=window.performance.now()},D0=()=>{Md.value="keyboard",Oi.value=window.performance.now()},Z$=()=>(Ge(()=>{Xr===0&&(document.addEventListener("mousedown",Zr),document.addEventListener("touchstart",Zr),document.addEventListener("keydown",D0)),Xr++}),Tt(()=>{Xr--,Xr<=0&&(document.removeEventListener("mousedown",Zr),document.removeEventListener("touchstart",Zr),document.removeEventListener("keydown",D0))}),{focusReason:Md,lastUserFocusTimestamp:Oi,lastAutomatedFocusTimestamp:xd}),Jr=e=>new CustomEvent(K$,{...W$,detail:e}),Ce={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"};let Xl=[];const F0=e=>{e.code===Ce.esc&&Xl.forEach(t=>t(e))},J$=e=>{Ge(()=>{Xl.length===0&&document.addEventListener("keydown",F0),ut&&Xl.push(e)}),Tt(()=>{Xl=Xl.filter(t=>t!==e),Xl.length===0&&ut&&document.removeEventListener("keydown",F0)})},Q$=T({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[V0,L0,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=A();let a,l;const{focusReason:o}=Z$();J$(m=>{e.trapped&&!s.paused&&t("release-requested",m)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},i=m=>{if(!e.loop&&!e.trapped||s.paused)return;const{code:p,altKey:y,ctrlKey:g,metaKey:M,currentTarget:w,shiftKey:b}=m,{loop:S}=e,E=p===Ce.tab&&!y&&!g&&!M,O=document.activeElement;if(E&&O){const I=w,[N,z]=q$(I);if(N&&z){if(!b&&O===z){const L=Jr({focusReason:o.value});t("focusout-prevented",L),L.defaultPrevented||(m.preventDefault(),S&&za(N,!0))}else if(b&&[N,I].includes(O)){const L=Jr({focusReason:o.value});t("focusout-prevented",L),L.defaultPrevented||(m.preventDefault(),S&&za(z,!0))}}else if(O===I){const L=Jr({focusReason:o.value});t("focusout-prevented",L),L.defaultPrevented||m.preventDefault()}}};it(Ed,{focusTrapRef:n,onKeydown:i}),se(()=>e.focusTrapEl,m=>{m&&(n.value=m)},{immediate:!0}),se([n],([m],[p])=>{m&&(m.addEventListener("keydown",i),m.addEventListener("focusin",d),m.addEventListener("focusout",f)),p&&(p.removeEventListener("keydown",i),p.removeEventListener("focusin",d),p.removeEventListener("focusout",f))});const u=m=>{t(V0,m)},c=m=>t(L0,m),d=m=>{const p=r(n);if(!p)return;const y=m.target,g=m.relatedTarget,M=y&&p.contains(y);e.trapped||g&&p.contains(g)||(a=g),M&&t("focusin",m),!s.paused&&e.trapped&&(M?l=y:za(l,!0))},f=m=>{const p=r(n);if(!(s.paused||!p))if(e.trapped){const y=m.relatedTarget;!Zt(y)&&!p.contains(y)&&setTimeout(()=>{if(!s.paused&&e.trapped){const g=Jr({focusReason:o.value});t("focusout-prevented",g),g.defaultPrevented||za(l,!0)}},0)}else{const y=m.target;y&&p.contains(y)||t("focusout",m)}};async function h(){await Oe();const m=r(n);if(m){H0.push(s);const p=m.contains(document.activeElement)?a:document.activeElement;if(a=p,!m.contains(p)){const g=new Event(nu,A0);m.addEventListener(nu,u),m.dispatchEvent(g),g.defaultPrevented||Oe(()=>{let M=e.focusStartEl;Ve(M)||(za(M),document.activeElement!==M&&(M="first")),M==="first"&&G$(E1(m),!0),(document.activeElement===p||M==="container")&&za(m)})}}}function v(){const m=r(n);if(m){m.removeEventListener(nu,u);const p=new CustomEvent(au,{...A0,detail:{focusReason:o.value}});m.addEventListener(au,c),m.dispatchEvent(p),!p.defaultPrevented&&(o.value=="keyboard"||!X$()||m.contains(document.activeElement))&&za(a??document.body),m.removeEventListener(au,c),H0.remove(s)}}return Ge(()=>{e.trapped&&h(),se(()=>e.trapped,m=>{m?h():v()})}),Tt(()=>{e.trapped&&v(),n.value&&(n.value.removeEventListener("keydown",i),n.value.removeEventListener("focusin",d),n.value.removeEventListener("focusout",f),n.value=void 0)}),{onKeydown:i}}});function eT(e,t,n,a,l,o){return Q(e.$slots,"default",{handleKeydown:e.onKeydown})}var Lo=ve(Q$,[["render",eT],["__file","focus-trap.vue"]]),Vn="top",Zn="bottom",Jn="right",Ln="left",$d="auto",Rr=[Vn,Zn,Jn,Ln],vo="start",pr="end",tT="clippingParents",M1="viewport",jo="popper",nT="reference",K0=Rr.reduce(function(e,t){return e.concat([t+"-"+vo,t+"-"+pr])},[]),Ga=[].concat(Rr,[$d]).reduce(function(e,t){return e.concat([t,t+"-"+vo,t+"-"+pr])},[]),aT="beforeRead",lT="read",oT="afterRead",rT="beforeMain",sT="main",iT="afterMain",uT="beforeWrite",cT="write",dT="afterWrite",fT=[aT,lT,oT,rT,sT,iT,uT,cT,dT];function Ea(e){return e?(e.nodeName||"").toLowerCase():null}function ha(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ho(e){var t=ha(e).Element;return e instanceof t||e instanceof Element}function Un(e){var t=ha(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Td(e){if(typeof ShadowRoot>"u")return!1;var t=ha(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function pT(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var a=t.styles[n]||{},l=t.attributes[n]||{},o=t.elements[n];!Un(o)||!Ea(o)||(Object.assign(o.style,a),Object.keys(l).forEach(function(s){var i=l[s];i===!1?o.removeAttribute(s):o.setAttribute(s,i===!0?"":i)}))})}function vT(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(a){var l=t.elements[a],o=t.attributes[a]||{},s=Object.keys(t.styles.hasOwnProperty(a)?t.styles[a]:n[a]),i=s.reduce(function(u,c){return u[c]="",u},{});!Un(l)||!Ea(l)||(Object.assign(l.style,i),Object.keys(o).forEach(function(u){l.removeAttribute(u)}))})}}var x1={name:"applyStyles",enabled:!0,phase:"write",fn:pT,effect:vT,requires:["computeStyles"]};function wa(e){return e.split("-")[0]}var xl=Math.max,qs=Math.min,mo=Math.round;function go(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),a=1,l=1;if(Un(e)&&t){var o=e.offsetHeight,s=e.offsetWidth;s>0&&(a=mo(n.width)/s||1),o>0&&(l=mo(n.height)/o||1)}return{width:n.width/a,height:n.height/l,top:n.top/l,right:n.right/a,bottom:n.bottom/l,left:n.left/a,x:n.left/a,y:n.top/l}}function Od(e){var t=go(e),n=e.offsetWidth,a=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-a)<=1&&(a=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:a}}function $1(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Td(n)){var a=t;do{if(a&&e.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function Da(e){return ha(e).getComputedStyle(e)}function hT(e){return["table","td","th"].indexOf(Ea(e))>=0}function pl(e){return((ho(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ni(e){return Ea(e)==="html"?e:e.assignedSlot||e.parentNode||(Td(e)?e.host:null)||pl(e)}function W0(e){return!Un(e)||Da(e).position==="fixed"?null:e.offsetParent}function mT(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Un(e)){var a=Da(e);if(a.position==="fixed")return null}var l=Ni(e);for(Td(l)&&(l=l.host);Un(l)&&["html","body"].indexOf(Ea(l))<0;){var o=Da(l);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return l;l=l.parentNode}return null}function Br(e){for(var t=ha(e),n=W0(e);n&&hT(n)&&Da(n).position==="static";)n=W0(n);return n&&(Ea(n)==="html"||Ea(n)==="body"&&Da(n).position==="static")?t:n||mT(e)||t}function Nd(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function tr(e,t,n){return xl(e,qs(t,n))}function gT(e,t,n){var a=tr(e,t,n);return a>n?n:a}function T1(){return{top:0,right:0,bottom:0,left:0}}function O1(e){return Object.assign({},T1(),e)}function N1(e,t){return t.reduce(function(n,a){return n[a]=e,n},{})}var yT=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,O1(typeof e!="number"?e:N1(e,Rr))};function _T(e){var t,n=e.state,a=e.name,l=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,i=wa(n.placement),u=Nd(i),c=[Ln,Jn].indexOf(i)>=0,d=c?"height":"width";if(!(!o||!s)){var f=yT(l.padding,n),h=Od(o),v=u==="y"?Vn:Ln,m=u==="y"?Zn:Jn,p=n.rects.reference[d]+n.rects.reference[u]-s[u]-n.rects.popper[d],y=s[u]-n.rects.reference[u],g=Br(o),M=g?u==="y"?g.clientHeight||0:g.clientWidth||0:0,w=p/2-y/2,b=f[v],S=M-h[d]-f[m],E=M/2-h[d]/2+w,O=tr(b,E,S),I=u;n.modifiersData[a]=(t={},t[I]=O,t.centerOffset=O-E,t)}}function bT(e){var t=e.state,n=e.options,a=n.element,l=a===void 0?"[data-popper-arrow]":a;l!=null&&(typeof l=="string"&&(l=t.elements.popper.querySelector(l),!l)||!$1(t.elements.popper,l)||(t.elements.arrow=l))}var wT={name:"arrow",enabled:!0,phase:"main",fn:_T,effect:bT,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function yo(e){return e.split("-")[1]}var CT={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ST(e){var t=e.x,n=e.y,a=window,l=a.devicePixelRatio||1;return{x:mo(t*l)/l||0,y:mo(n*l)/l||0}}function j0(e){var t,n=e.popper,a=e.popperRect,l=e.placement,o=e.variation,s=e.offsets,i=e.position,u=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,f=e.isFixed,h=s.x,v=h===void 0?0:h,m=s.y,p=m===void 0?0:m,y=typeof d=="function"?d({x:v,y:p}):{x:v,y:p};v=y.x,p=y.y;var g=s.hasOwnProperty("x"),M=s.hasOwnProperty("y"),w=Ln,b=Vn,S=window;if(c){var E=Br(n),O="clientHeight",I="clientWidth";if(E===ha(n)&&(E=pl(n),Da(E).position!=="static"&&i==="absolute"&&(O="scrollHeight",I="scrollWidth")),E=E,l===Vn||(l===Ln||l===Jn)&&o===pr){b=Zn;var N=f&&E===S&&S.visualViewport?S.visualViewport.height:E[O];p-=N-a.height,p*=u?1:-1}if(l===Ln||(l===Vn||l===Zn)&&o===pr){w=Jn;var z=f&&E===S&&S.visualViewport?S.visualViewport.width:E[I];v-=z-a.width,v*=u?1:-1}}var P=Object.assign({position:i},c&&CT),L=d===!0?ST({x:v,y:p}):{x:v,y:p};if(v=L.x,p=L.y,u){var F;return Object.assign({},P,(F={},F[b]=M?"0":"",F[w]=g?"0":"",F.transform=(S.devicePixelRatio||1)<=1?"translate("+v+"px, "+p+"px)":"translate3d("+v+"px, "+p+"px, 0)",F))}return Object.assign({},P,(t={},t[b]=M?p+"px":"",t[w]=g?v+"px":"",t.transform="",t))}function kT(e){var t=e.state,n=e.options,a=n.gpuAcceleration,l=a===void 0?!0:a,o=n.adaptive,s=o===void 0?!0:o,i=n.roundOffsets,u=i===void 0?!0:i,c={placement:wa(t.placement),variation:yo(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:l,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,j0(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,j0(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 I1={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:kT,data:{}},Qr={passive:!0};function ET(e){var t=e.state,n=e.instance,a=e.options,l=a.scroll,o=l===void 0?!0:l,s=a.resize,i=s===void 0?!0:s,u=ha(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(d){d.addEventListener("scroll",n.update,Qr)}),i&&u.addEventListener("resize",n.update,Qr),function(){o&&c.forEach(function(d){d.removeEventListener("scroll",n.update,Qr)}),i&&u.removeEventListener("resize",n.update,Qr)}}var P1={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ET,data:{}},MT={left:"right",right:"left",bottom:"top",top:"bottom"};function ms(e){return e.replace(/left|right|bottom|top/g,function(t){return MT[t]})}var xT={start:"end",end:"start"};function q0(e){return e.replace(/start|end/g,function(t){return xT[t]})}function Id(e){var t=ha(e),n=t.pageXOffset,a=t.pageYOffset;return{scrollLeft:n,scrollTop:a}}function Pd(e){return go(pl(e)).left+Id(e).scrollLeft}function $T(e){var t=ha(e),n=pl(e),a=t.visualViewport,l=n.clientWidth,o=n.clientHeight,s=0,i=0;return a&&(l=a.width,o=a.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=a.offsetLeft,i=a.offsetTop)),{width:l,height:o,x:s+Pd(e),y:i}}function TT(e){var t,n=pl(e),a=Id(e),l=(t=e.ownerDocument)==null?void 0:t.body,o=xl(n.scrollWidth,n.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),s=xl(n.scrollHeight,n.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),i=-a.scrollLeft+Pd(e),u=-a.scrollTop;return Da(l||n).direction==="rtl"&&(i+=xl(n.clientWidth,l?l.clientWidth:0)-o),{width:o,height:s,x:i,y:u}}function zd(e){var t=Da(e),n=t.overflow,a=t.overflowX,l=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+l+a)}function z1(e){return["html","body","#document"].indexOf(Ea(e))>=0?e.ownerDocument.body:Un(e)&&zd(e)?e:z1(Ni(e))}function nr(e,t){var n;t===void 0&&(t=[]);var a=z1(e),l=a===((n=e.ownerDocument)==null?void 0:n.body),o=ha(a),s=l?[o].concat(o.visualViewport||[],zd(a)?a:[]):a,i=t.concat(s);return l?i:i.concat(nr(Ni(s)))}function Du(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function OT(e){var t=go(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 U0(e,t){return t===M1?Du($T(e)):ho(t)?OT(t):Du(TT(pl(e)))}function NT(e){var t=nr(Ni(e)),n=["absolute","fixed"].indexOf(Da(e).position)>=0,a=n&&Un(e)?Br(e):e;return ho(a)?t.filter(function(l){return ho(l)&&$1(l,a)&&Ea(l)!=="body"}):[]}function IT(e,t,n){var a=t==="clippingParents"?NT(e):[].concat(t),l=[].concat(a,[n]),o=l[0],s=l.reduce(function(i,u){var c=U0(e,u);return i.top=xl(c.top,i.top),i.right=qs(c.right,i.right),i.bottom=qs(c.bottom,i.bottom),i.left=xl(c.left,i.left),i},U0(e,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function A1(e){var t=e.reference,n=e.element,a=e.placement,l=a?wa(a):null,o=a?yo(a):null,s=t.x+t.width/2-n.width/2,i=t.y+t.height/2-n.height/2,u;switch(l){case Vn:u={x:s,y:t.y-n.height};break;case Zn:u={x:s,y:t.y+t.height};break;case Jn:u={x:t.x+t.width,y:i};break;case Ln:u={x:t.x-n.width,y:i};break;default:u={x:t.x,y:t.y}}var c=l?Nd(l):null;if(c!=null){var d=c==="y"?"height":"width";switch(o){case vo:u[c]=u[c]-(t[d]/2-n[d]/2);break;case pr:u[c]=u[c]+(t[d]/2-n[d]/2);break}}return u}function vr(e,t){t===void 0&&(t={});var n=t,a=n.placement,l=a===void 0?e.placement:a,o=n.boundary,s=o===void 0?tT:o,i=n.rootBoundary,u=i===void 0?M1:i,c=n.elementContext,d=c===void 0?jo:c,f=n.altBoundary,h=f===void 0?!1:f,v=n.padding,m=v===void 0?0:v,p=O1(typeof m!="number"?m:N1(m,Rr)),y=d===jo?nT:jo,g=e.rects.popper,M=e.elements[h?y:d],w=IT(ho(M)?M:M.contextElement||pl(e.elements.popper),s,u),b=go(e.elements.reference),S=A1({reference:b,element:g,placement:l}),E=Du(Object.assign({},g,S)),O=d===jo?E:b,I={top:w.top-O.top+p.top,bottom:O.bottom-w.bottom+p.bottom,left:w.left-O.left+p.left,right:O.right-w.right+p.right},N=e.modifiersData.offset;if(d===jo&&N){var z=N[l];Object.keys(I).forEach(function(P){var L=[Jn,Zn].indexOf(P)>=0?1:-1,F=[Vn,Zn].indexOf(P)>=0?"y":"x";I[P]+=z[F]*L})}return I}function PT(e,t){t===void 0&&(t={});var n=t,a=n.placement,l=n.boundary,o=n.rootBoundary,s=n.padding,i=n.flipVariations,u=n.allowedAutoPlacements,c=u===void 0?Ga:u,d=yo(a),f=d?i?K0:K0.filter(function(m){return yo(m)===d}):Rr,h=f.filter(function(m){return c.indexOf(m)>=0});h.length===0&&(h=f);var v=h.reduce(function(m,p){return m[p]=vr(e,{placement:p,boundary:l,rootBoundary:o,padding:s})[wa(p)],m},{});return Object.keys(v).sort(function(m,p){return v[m]-v[p]})}function zT(e){if(wa(e)===$d)return[];var t=ms(e);return[q0(e),t,q0(t)]}function AT(e){var t=e.state,n=e.options,a=e.name;if(!t.modifiersData[a]._skip){for(var l=n.mainAxis,o=l===void 0?!0:l,s=n.altAxis,i=s===void 0?!0:s,u=n.fallbackPlacements,c=n.padding,d=n.boundary,f=n.rootBoundary,h=n.altBoundary,v=n.flipVariations,m=v===void 0?!0:v,p=n.allowedAutoPlacements,y=t.options.placement,g=wa(y),M=g===y,w=u||(M||!m?[ms(y)]:zT(y)),b=[y].concat(w).reduce(function(ne,oe){return ne.concat(wa(oe)===$d?PT(t,{placement:oe,boundary:d,rootBoundary:f,padding:c,flipVariations:m,allowedAutoPlacements:p}):oe)},[]),S=t.rects.reference,E=t.rects.popper,O=new Map,I=!0,N=b[0],z=0;z=0,H=U?"width":"height",R=vr(t,{placement:P,boundary:d,rootBoundary:f,altBoundary:h,padding:c}),D=U?F?Jn:Ln:F?Zn:Vn;S[H]>E[H]&&(D=ms(D));var B=ms(D),V=[];if(o&&V.push(R[L]<=0),i&&V.push(R[D]<=0,R[B]<=0),V.every(function(ne){return ne})){N=P,I=!1;break}O.set(P,V)}if(I)for(var K=m?3:1,W=function(ne){var oe=b.find(function(ce){var te=O.get(ce);if(te)return te.slice(0,ne).every(function(ie){return ie})});if(oe)return N=oe,"break"},Z=K;Z>0;Z--){var j=W(Z);if(j==="break")break}t.placement!==N&&(t.modifiersData[a]._skip=!0,t.placement=N,t.reset=!0)}}var VT={name:"flip",enabled:!0,phase:"main",fn:AT,requiresIfExists:["offset"],data:{_skip:!1}};function Y0(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 G0(e){return[Vn,Jn,Zn,Ln].some(function(t){return e[t]>=0})}function LT(e){var t=e.state,n=e.name,a=t.rects.reference,l=t.rects.popper,o=t.modifiersData.preventOverflow,s=vr(t,{elementContext:"reference"}),i=vr(t,{altBoundary:!0}),u=Y0(s,a),c=Y0(i,l,o),d=G0(u),f=G0(c);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}var RT={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:LT};function BT(e,t,n){var a=wa(e),l=[Ln,Vn].indexOf(a)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=o[0],i=o[1];return s=s||0,i=(i||0)*l,[Ln,Jn].indexOf(a)>=0?{x:i,y:s}:{x:s,y:i}}function HT(e){var t=e.state,n=e.options,a=e.name,l=n.offset,o=l===void 0?[0,0]:l,s=Ga.reduce(function(d,f){return d[f]=BT(f,t.rects,o),d},{}),i=s[t.placement],u=i.x,c=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[a]=s}var DT={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:HT};function FT(e){var t=e.state,n=e.name;t.modifiersData[n]=A1({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}var V1={name:"popperOffsets",enabled:!0,phase:"read",fn:FT,data:{}};function KT(e){return e==="x"?"y":"x"}function WT(e){var t=e.state,n=e.options,a=e.name,l=n.mainAxis,o=l===void 0?!0:l,s=n.altAxis,i=s===void 0?!1:s,u=n.boundary,c=n.rootBoundary,d=n.altBoundary,f=n.padding,h=n.tether,v=h===void 0?!0:h,m=n.tetherOffset,p=m===void 0?0:m,y=vr(t,{boundary:u,rootBoundary:c,padding:f,altBoundary:d}),g=wa(t.placement),M=yo(t.placement),w=!M,b=Nd(g),S=KT(b),E=t.modifiersData.popperOffsets,O=t.rects.reference,I=t.rects.popper,N=typeof p=="function"?p(Object.assign({},t.rects,{placement:t.placement})):p,z=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(E){if(o){var F,U=b==="y"?Vn:Ln,H=b==="y"?Zn:Jn,R=b==="y"?"height":"width",D=E[b],B=D+y[U],V=D-y[H],K=v?-I[R]/2:0,W=M===vo?O[R]:I[R],Z=M===vo?-I[R]:-O[R],j=t.elements.arrow,ne=v&&j?Od(j):{width:0,height:0},oe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:T1(),ce=oe[U],te=oe[H],ie=tr(0,O[R],ne[R]),fe=w?O[R]/2-K-ie-ce-z.mainAxis:W-ie-ce-z.mainAxis,Me=w?-O[R]/2+K+ie+te+z.mainAxis:Z+ie+te+z.mainAxis,me=t.elements.arrow&&Br(t.elements.arrow),le=me?b==="y"?me.clientTop||0:me.clientLeft||0:0,we=(F=P==null?void 0:P[b])!=null?F:0,Le=D+fe-we-le,De=D+Me-we,Ye=tr(v?qs(B,Le):B,D,v?xl(V,De):V);E[b]=Ye,L[b]=Ye-D}if(i){var $e,Te=b==="x"?Vn:Ln,ke=b==="x"?Zn:Jn,He=E[S],Xe=S==="y"?"height":"width",at=He+y[Te],nt=He-y[ke],be=[Vn,Ln].indexOf(g)!==-1,je=($e=P==null?void 0:P[S])!=null?$e:0,ft=be?at:He-O[Xe]-I[Xe]-je+z.altAxis,Ot=be?He+O[Xe]+I[Xe]-je-z.altAxis:nt,bt=v&&be?gT(ft,He,Ot):tr(v?ft:at,He,v?Ot:nt);E[S]=bt,L[S]=bt-He}t.modifiersData[a]=L}}var jT={name:"preventOverflow",enabled:!0,phase:"main",fn:WT,requiresIfExists:["offset"]};function qT(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function UT(e){return e===ha(e)||!Un(e)?Id(e):qT(e)}function YT(e){var t=e.getBoundingClientRect(),n=mo(t.width)/e.offsetWidth||1,a=mo(t.height)/e.offsetHeight||1;return n!==1||a!==1}function GT(e,t,n){n===void 0&&(n=!1);var a=Un(t),l=Un(t)&&YT(t),o=pl(t),s=go(e,l),i={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(a||!a&&!n)&&((Ea(t)!=="body"||zd(o))&&(i=UT(t)),Un(t)?(u=go(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):o&&(u.x=Pd(o))),{x:s.left+i.scrollLeft-u.x,y:s.top+i.scrollTop-u.y,width:s.width,height:s.height}}function XT(e){var t=new Map,n=new Set,a=[];e.forEach(function(o){t.set(o.name,o)});function l(o){n.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(i){if(!n.has(i)){var u=t.get(i);u&&l(u)}}),a.push(o)}return e.forEach(function(o){n.has(o.name)||l(o)}),a}function ZT(e){var t=XT(e);return fT.reduce(function(n,a){return n.concat(t.filter(function(l){return l.phase===a}))},[])}function JT(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function QT(e){var t=e.reduce(function(n,a){var l=n[a.name];return n[a.name]=l?Object.assign({},l,a,{options:Object.assign({},l.options,a.options),data:Object.assign({},l.data,a.data)}):a,n},{});return Object.keys(t).map(function(n){return t[n]})}var X0={placement:"bottom",modifiers:[],strategy:"absolute"};function Z0(){for(var e=arguments.length,t=new Array(e),n=0;n({})},strategy:{type:String,values:aO,default:"absolute"}}),L1=pe({...lO,id:String,style:{type:X([String,Array,Object])},className:{type:X([String,Array,Object])},effect:{type:X(String),default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:X([String,Array,Object])},popperStyle:{type:X([String,Array,Object])},referenceEl:{type:X(Object)},triggerTargetEl:{type:X(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...sn(["ariaLabel"])}),oO={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},rO=(e,t)=>{const n=A(!1),a=A();return{focusStartRef:a,trapped:n,onFocusAfterReleased:c=>{var d;((d=c.detail)==null?void 0:d.focusReason)!=="pointer"&&(a.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:c=>{e.visible&&!n.value&&(c.target&&(a.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")}}},sO=(e,t=[])=>{const{placement:n,strategy:a,popperOptions:l}=e,o={placement:n,strategy:a,...l,modifiers:[...uO(e),...t]};return cO(o,l==null?void 0:l.modifiers),o},iO=e=>{if(ut)return $n(e)};function uO(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:a}=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:a}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function cO(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const dO=(e,t,n={})=>{const a={name:"updateState",enabled:!0,phase:"write",fn:({state:u})=>{const c=fO(u);Object.assign(s.value,c)},requires:["computeStyles"]},l=C(()=>{const{onFirstUpdate:u,placement:c,strategy:d,modifiers:f}=r(n);return{onFirstUpdate:u,placement:c||"bottom",strategy:d||"absolute",modifiers:[...f||[],a,{name:"applyStyles",enabled:!1}]}}),o=Mt(),s=A({styles:{popper:{position:r(l).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),i=()=>{o.value&&(o.value.destroy(),o.value=void 0)};return se(l,u=>{const c=r(o);c&&c.setOptions(u)},{deep:!0}),se([e,t],([u,c])=>{i(),!(!u||!c)&&(o.value=nO(u,c,r(l)))}),Tt(()=>{i()}),{state:C(()=>{var u;return{...((u=r(o))==null?void 0:u.state)||{}}}),styles:C(()=>r(s).styles),attributes:C(()=>r(s).attributes),update:()=>{var u;return(u=r(o))==null?void 0:u.update()},forceUpdate:()=>{var u;return(u=r(o))==null?void 0:u.forceUpdate()},instanceRef:C(()=>r(o))}};function fO(e){const t=Object.keys(e.elements),n=fr(t.map(l=>[l,e.styles[l]||{}])),a=fr(t.map(l=>[l,e.attributes[l]]));return{styles:n,attributes:a}}const pO=0,vO=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:a,role:l}=Se(kd,void 0),o=A(),s=A(),i=C(()=>({name:"eventListeners",enabled:!!e.visible})),u=C(()=>{var g;const M=r(o),w=(g=r(s))!=null?g:pO;return{name:"arrow",enabled:!Mv(M),options:{element:M,padding:w}}}),c=C(()=>({onFirstUpdate:()=>{m()},...sO(e,[r(u),r(i)])})),d=C(()=>iO(e.referenceEl)||r(a)),{attributes:f,state:h,styles:v,update:m,forceUpdate:p,instanceRef:y}=dO(d,n,c);return se(y,g=>t.value=g),Ge(()=>{se(()=>{var g;return(g=r(d))==null?void 0:g.getBoundingClientRect()},()=>{m()})}),{attributes:f,arrowRef:o,contentRef:n,instanceRef:y,state:h,styles:v,role:l,forceUpdate:p,update:m}},hO=(e,{attributes:t,styles:n,role:a})=>{const{nextZIndex:l}=zo(),o=de("popper"),s=C(()=>r(t).popper),i=A(Ie(e.zIndex)?e.zIndex:l()),u=C(()=>[o.b(),o.is("pure",e.pure),o.is(e.effect),e.popperClass]),c=C(()=>[{zIndex:r(i)},r(n).popper,e.popperStyle||{}]),d=C(()=>a.value==="dialog"?"false":void 0),f=C(()=>r(n).arrow||{});return{ariaModal:d,arrowStyle:f,contentAttrs:s,contentClass:u,contentStyle:c,contentZIndex:i,updateZIndex:()=>{i.value=Ie(e.zIndex)?e.zIndex:l()}}},mO=T({name:"ElPopperContent"}),gO=T({...mO,props:L1,emits:oO,setup(e,{expose:t,emit:n}){const a=e,{focusStartRef:l,trapped:o,onFocusAfterReleased:s,onFocusAfterTrapped:i,onFocusInTrap:u,onFocusoutPrevented:c,onReleaseRequested:d}=rO(a,n),{attributes:f,arrowRef:h,contentRef:v,styles:m,instanceRef:p,role:y,update:g}=vO(a),{ariaModal:M,arrowStyle:w,contentAttrs:b,contentClass:S,contentStyle:E,updateZIndex:O}=hO(a,{styles:m,attributes:f,role:y}),I=Se(ka,void 0),N=A();it(m1,{arrowStyle:w,arrowRef:h,arrowOffset:N}),I&&it(ka,{...I,addInputId:zt,removeInputId:zt});let z;const P=(F=!0)=>{g(),F&&O()},L=()=>{P(!1),a.visible&&a.focusOnShow?o.value=!0:a.visible===!1&&(o.value=!1)};return Ge(()=>{se(()=>a.triggerTargetEl,(F,U)=>{z==null||z(),z=void 0;const H=r(F||v.value),R=r(U||v.value);Tn(H)&&(z=se([y,()=>a.ariaLabel,M,()=>a.id],D=>{["role","aria-label","aria-modal","id"].forEach((B,V)=>{Zt(D[V])?H.removeAttribute(B):H.setAttribute(B,D[V])})},{immediate:!0})),R!==H&&Tn(R)&&["role","aria-label","aria-modal","id"].forEach(D=>{R.removeAttribute(D)})},{immediate:!0}),se(()=>a.visible,L,{immediate:!0})}),Tt(()=>{z==null||z(),z=void 0}),t({popperContentRef:v,popperInstanceRef:p,updatePopper:P,contentStyle:E}),(F,U)=>(_(),x("div",tt({ref_key:"contentRef",ref:v},r(b),{style:r(E),class:r(S),tabindex:"-1",onMouseenter:H=>F.$emit("mouseenter",H),onMouseleave:H=>F.$emit("mouseleave",H)}),[q(r(Lo),{trapped:r(o),"trap-on-focus-in":!0,"focus-trap-el":r(v),"focus-start-el":r(l),onFocusAfterTrapped:r(i),onFocusAfterReleased:r(s),onFocusin:r(u),onFocusoutPrevented:r(c),onReleaseRequested:r(d)},{default:G(()=>[Q(F.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16,["onMouseenter","onMouseleave"]))}});var yO=ve(gO,[["__file","content.vue"]]);const R1=We(N$),Ii=Symbol("elTooltip");function J0(){let e;const t=(a,l)=>{n(),e=window.setTimeout(a,l)},n=()=>window.clearTimeout(e);return zr(()=>n()),{registerTimeout:t,cancelTimeout:n}}const _O=pe({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),bO=({showAfter:e,hideAfter:t,autoClose:n,open:a,close:l})=>{const{registerTimeout:o}=J0(),{registerTimeout:s,cancelTimeout:i}=J0();return{onOpen:d=>{o(()=>{a(d);const f=r(n);Ie(f)&&f>0&&s(()=>{l(d)},f)},r(e))},onClose:d=>{i(),o(()=>{l(d)},r(t))}}},Qt=pe({..._O,...L1,appendTo:{type:X([String,Object])},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:X(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...sn(["ariaLabel"])}),hr=pe({..._1,disabled:Boolean,trigger:{type:X([String,Array]),default:"hover"},triggerKeys:{type:X(Array),default:()=>[Ce.enter,Ce.numpadEnter,Ce.space]}}),wO=va({type:X(Boolean),default:null}),CO=va({type:X(Function)}),SO=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,a=[t],l={[e]:wO,[n]:CO};return{useModelToggle:({indicator:s,toggleReason:i,shouldHideWhenRouteChanges:u,shouldProceed:c,onShow:d,onHide:f})=>{const h=Ze(),{emit:v}=h,m=h.props,p=C(()=>Qe(m[n])),y=C(()=>m[e]===null),g=O=>{s.value!==!0&&(s.value=!0,i&&(i.value=O),Qe(d)&&d(O))},M=O=>{s.value!==!1&&(s.value=!1,i&&(i.value=O),Qe(f)&&f(O))},w=O=>{if(m.disabled===!0||Qe(c)&&!c())return;const I=p.value&&ut;I&&v(t,!0),(y.value||!I)&&g(O)},b=O=>{if(m.disabled===!0||!ut)return;const I=p.value&&ut;I&&v(t,!1),(y.value||!I)&&M(O)},S=O=>{Et(O)&&(m.disabled&&O?p.value&&v(t,!1):s.value!==O&&(O?g():M()))},E=()=>{s.value?b():w()};return se(()=>m[e],S),u&&h.appContext.config.globalProperties.$route!==void 0&&se(()=>({...h.proxy.$route}),()=>{u.value&&s.value&&b()}),Ge(()=>{S(m[e])}),{hide:b,show:w,toggle:E,hasUpdateHandler:p}},useModelToggleProps:l,useModelToggleEmits:a}},{useModelToggleProps:kO,useModelToggleEmits:EO,useModelToggle:MO}=SO("visible"),xO=pe({...g1,...kO,...Qt,...hr,...y1,showArrow:{type:Boolean,default:!0}}),$O=[...EO,"before-show","before-hide","show","hide","open","close"],TO=(e,t)=>Ee(e)?e.includes(t):e===t,jl=(e,t,n)=>a=>{TO(r(e),t)&&n(a)},Ht=(e,t,{checkForDefaultPrevented:n=!0}={})=>l=>{const o=e==null?void 0:e(l);if(n===!1||!o)return t==null?void 0:t(l)},Q0=e=>t=>t.pointerType==="mouse"?e(t):void 0,OO=T({name:"ElTooltipTrigger"}),NO=T({...OO,props:hr,setup(e,{expose:t}){const n=e,a=de("tooltip"),{controlled:l,id:o,open:s,onOpen:i,onClose:u,onToggle:c}=Se(Ii,void 0),d=A(null),f=()=>{if(r(l)||n.disabled)return!0},h=mt(n,"trigger"),v=Ht(f,jl(h,"hover",i)),m=Ht(f,jl(h,"hover",u)),p=Ht(f,jl(h,"click",b=>{b.button===0&&c(b)})),y=Ht(f,jl(h,"focus",i)),g=Ht(f,jl(h,"focus",u)),M=Ht(f,jl(h,"contextmenu",b=>{b.preventDefault(),c(b)})),w=Ht(f,b=>{const{code:S}=b;n.triggerKeys.includes(S)&&(b.preventDefault(),c(b))});return t({triggerRef:d}),(b,S)=>(_(),ae(r(F$),{id:r(o),"virtual-ref":b.virtualRef,open:r(s),"virtual-triggering":b.virtualTriggering,class:$(r(a).e("trigger")),onBlur:r(g),onClick:r(p),onContextmenu:r(M),onFocus:r(y),onMouseenter:r(v),onMouseleave:r(m),onKeydown:r(w)},{default:G(()=>[Q(b.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var IO=ve(NO,[["__file","trigger.vue"]]);const PO=pe({to:{type:X([String,Object]),required:!0},disabled:Boolean}),zO=T({__name:"teleport",props:PO,setup(e){return(t,n)=>t.disabled?Q(t.$slots,"default",{key:0}):(_(),ae(rg,{key:1,to:t.to},[Q(t.$slots,"default")],8,["to"]))}});var AO=ve(zO,[["__file","teleport.vue"]]);const Ro=We(AO),B1=()=>{const e=Uc(),t=Cd(),n=C(()=>`${e.value}-popper-container-${t.prefix}`),a=C(()=>`#${n.value}`);return{id:n,selector:a}},VO=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},LO=()=>{const{id:e,selector:t}=B1();return qc(()=>{ut&&(document.body.querySelector(t.value)||VO(e.value))}),{id:e,selector:t}},RO=T({name:"ElTooltipContent",inheritAttrs:!1}),BO=T({...RO,props:Qt,setup(e,{expose:t}){const n=e,{selector:a}=B1(),l=de("tooltip"),o=A();let s;const{controlled:i,id:u,open:c,trigger:d,onClose:f,onOpen:h,onShow:v,onHide:m,onBeforeShow:p,onBeforeHide:y}=Se(Ii,void 0),g=C(()=>n.transition||`${l.namespace.value}-fade-in-linear`),M=C(()=>n.persistent);Tt(()=>{s==null||s()});const w=C(()=>r(M)?!0:r(c)),b=C(()=>n.disabled?!1:r(c)),S=C(()=>n.appendTo||a.value),E=C(()=>{var D;return(D=n.style)!=null?D:{}}),O=A(!0),I=()=>{m(),R()&&za(document.body),O.value=!0},N=()=>{if(r(i))return!0},z=Ht(N,()=>{n.enterable&&r(d)==="hover"&&h()}),P=Ht(N,()=>{r(d)==="hover"&&f()}),L=()=>{var D,B;(B=(D=o.value)==null?void 0:D.updatePopper)==null||B.call(D),p==null||p()},F=()=>{y==null||y()},U=()=>{v(),s=cd(C(()=>{var D;return(D=o.value)==null?void 0:D.popperContentRef}),()=>{if(r(i))return;r(d)!=="hover"&&f()})},H=()=>{n.virtualTriggering||f()},R=D=>{var B;const V=(B=o.value)==null?void 0:B.popperContentRef,K=(D==null?void 0:D.relatedTarget)||document.activeElement;return V==null?void 0:V.contains(K)};return se(()=>r(c),D=>{D?O.value=!1:s==null||s()},{flush:"post"}),se(()=>n.content,()=>{var D,B;(B=(D=o.value)==null?void 0:D.updatePopper)==null||B.call(D)}),t({contentRef:o,isFocusInsideContent:R}),(D,B)=>(_(),ae(r(Ro),{disabled:!D.teleported,to:r(S)},{default:G(()=>[q(tn,{name:r(g),onAfterLeave:I,onBeforeEnter:L,onAfterEnter:U,onBeforeLeave:F},{default:G(()=>[r(w)?qe((_(),ae(r(yO),tt({key:0,id:r(u),ref_key:"contentRef",ref:o},D.$attrs,{"aria-label":D.ariaLabel,"aria-hidden":O.value,"boundaries-padding":D.boundariesPadding,"fallback-placements":D.fallbackPlacements,"gpu-acceleration":D.gpuAcceleration,offset:D.offset,placement:D.placement,"popper-options":D.popperOptions,strategy:D.strategy,effect:D.effect,enterable:D.enterable,pure:D.pure,"popper-class":D.popperClass,"popper-style":[D.popperStyle,r(E)],"reference-el":D.referenceEl,"trigger-target-el":D.triggerTargetEl,visible:r(b),"z-index":D.zIndex,onMouseenter:r(z),onMouseleave:r(P),onBlur:H,onClose:r(f)}),{default:G(()=>[Q(D.$slots,"default")]),_: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"])),[[pt,r(b)]]):ee("v-if",!0)]),_:3},8,["name"])]),_:3},8,["disabled","to"]))}});var HO=ve(BO,[["__file","content.vue"]]);const DO=T({name:"ElTooltip"}),FO=T({...DO,props:xO,emits:$O,setup(e,{expose:t,emit:n}){const a=e;LO();const l=rn(),o=A(),s=A(),i=()=>{var g;const M=r(o);M&&((g=M.popperInstanceRef)==null||g.update())},u=A(!1),c=A(),{show:d,hide:f,hasUpdateHandler:h}=MO({indicator:u,toggleReason:c}),{onOpen:v,onClose:m}=bO({showAfter:mt(a,"showAfter"),hideAfter:mt(a,"hideAfter"),autoClose:mt(a,"autoClose"),open:d,close:f}),p=C(()=>Et(a.visible)&&!h.value);it(Ii,{controlled:p,id:l,open:$o(u),trigger:mt(a,"trigger"),onOpen:g=>{v(g)},onClose:g=>{m(g)},onToggle:g=>{r(u)?m(g):v(g)},onShow:()=>{n("show",c.value)},onHide:()=>{n("hide",c.value)},onBeforeShow:()=>{n("before-show",c.value)},onBeforeHide:()=>{n("before-hide",c.value)},updatePopper:i}),se(()=>a.disabled,g=>{g&&u.value&&(u.value=!1)});const y=g=>{var M;return(M=s.value)==null?void 0:M.isFocusInsideContent(g)};return sg(()=>u.value&&f()),t({popperRef:o,contentRef:s,isFocusInsideContent:y,updatePopper:i,onOpen:v,onClose:m,hide:f}),(g,M)=>(_(),ae(r(R1),{ref_key:"popperRef",ref:o,role:g.role},{default:G(()=>[q(IO,{disabled:g.disabled,trigger:g.trigger,"trigger-keys":g.triggerKeys,"virtual-ref":g.virtualRef,"virtual-triggering":g.virtualTriggering},{default:G(()=>[g.$slots.default?Q(g.$slots,"default",{key:0}):ee("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),q(HO,{ref_key:"contentRef",ref:s,"aria-label":g.ariaLabel,"boundaries-padding":g.boundariesPadding,content:g.content,disabled:g.disabled,effect:g.effect,enterable:g.enterable,"fallback-placements":g.fallbackPlacements,"hide-after":g.hideAfter,"gpu-acceleration":g.gpuAcceleration,offset:g.offset,persistent:g.persistent,"popper-class":g.popperClass,"popper-style":g.popperStyle,placement:g.placement,"popper-options":g.popperOptions,pure:g.pure,"raw-content":g.rawContent,"reference-el":g.referenceEl,"trigger-target-el":g.triggerTargetEl,"show-after":g.showAfter,strategy:g.strategy,teleported:g.teleported,transition:g.transition,"virtual-triggering":g.virtualTriggering,"z-index":g.zIndex,"append-to":g.appendTo},{default:G(()=>[Q(g.$slots,"content",{},()=>[g.rawContent?(_(),x("span",{key:0,innerHTML:g.content},null,8,["innerHTML"])):(_(),x("span",{key:1},he(g.content),1))]),g.showArrow?(_(),ae(r(z$),{key:0,"arrow-offset":g.arrowOffset},null,8,["arrow-offset"])):ee("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 KO=ve(FO,[["__file","tooltip.vue"]]);const mn=We(KO),WO=pe({valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:X(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:X([Function,Array]),default:zt},popperClass:{type:String,default:""},triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:{type:Boolean,default:!1},hideLoading:{type:Boolean,default:!1},teleported:Qt.teleported,highlightFirstItem:{type:Boolean,default:!1},fitInputWidth:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},name:String,...sn(["ariaLabel"])}),jO={[Ue]:e=>Ve(e),[pn]:e=>Ve(e),[Ct]:e=>Ve(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,select:e=>ht(e)},H1="ElAutocomplete",qO=T({name:H1,inheritAttrs:!1}),UO=T({...qO,props:WO,emits:jO,setup(e,{expose:t,emit:n}){const a=e,l=Vr(),o=Wa(),s=yn(),i=de("autocomplete"),u=A(),c=A(),d=A(),f=A();let h=!1,v=!1;const m=A([]),p=A(-1),y=A(""),g=A(!1),M=A(!1),w=A(!1),b=rn(),S=C(()=>o.style),E=C(()=>(m.value.length>0||w.value)&&g.value),O=C(()=>!a.hideLoading&&w.value),I=C(()=>u.value?Array.from(u.value.$el.querySelectorAll("input")):[]),N=()=>{E.value&&(y.value=`${u.value.$el.offsetWidth}px`)},z=()=>{p.value=-1},P=async te=>{if(M.value)return;const ie=fe=>{w.value=!1,!M.value&&(Ee(fe)?(m.value=fe,p.value=a.highlightFirstItem?0:-1):Gt(H1,"autocomplete suggestions must be an array"))};if(w.value=!0,Ee(a.fetchSuggestions))ie(a.fetchSuggestions);else{const fe=await a.fetchSuggestions(te,ie);Ee(fe)&&ie(fe)}},L=Rn(P,a.debounce),F=te=>{const ie=!!te;if(n(pn,te),n(Ue,te),M.value=!1,g.value||(g.value=ie),!a.triggerOnFocus&&!te){M.value=!0,m.value=[];return}L(te)},U=te=>{var ie;s.value||(((ie=te.target)==null?void 0:ie.tagName)!=="INPUT"||I.value.includes(document.activeElement))&&(g.value=!0)},H=te=>{n(Ct,te)},R=te=>{v?v=!1:(g.value=!0,n("focus",te),a.triggerOnFocus&&!h&&L(String(a.modelValue)))},D=te=>{setTimeout(()=>{var ie;if((ie=d.value)!=null&&ie.isFocusInsideContent()){v=!0;return}g.value&&W(),n("blur",te)})},B=()=>{g.value=!1,n(Ue,""),n("clear")},V=async()=>{E.value&&p.value>=0&&p.value{E.value&&(te.preventDefault(),te.stopPropagation(),W())},W=()=>{g.value=!1},Z=()=>{var te;(te=u.value)==null||te.focus()},j=()=>{var te;(te=u.value)==null||te.blur()},ne=async te=>{n(pn,te[a.valueKey]),n(Ue,te[a.valueKey]),n("select",te),m.value=[],p.value=-1},oe=te=>{if(!E.value||w.value)return;if(te<0){p.value=-1;return}te>=m.value.length&&(te=m.value.length-1);const ie=c.value.querySelector(`.${i.be("suggestion","wrap")}`),Me=ie.querySelectorAll(`.${i.be("suggestion","list")} li`)[te],me=ie.scrollTop,{offsetTop:le,scrollHeight:we}=Me;le+we>me+ie.clientHeight&&(ie.scrollTop+=we),le{E.value&&W()});return Tt(()=>{ce==null||ce()}),Ge(()=>{u.value.ref.setAttribute("role","textbox"),u.value.ref.setAttribute("aria-autocomplete","list"),u.value.ref.setAttribute("aria-controls","id"),u.value.ref.setAttribute("aria-activedescendant",`${b.value}-item-${p.value}`),h=u.value.ref.hasAttribute("readonly")}),t({highlightedIndex:p,activated:g,loading:w,inputRef:u,popperRef:d,suggestions:m,handleSelect:ne,handleKeyEnter:V,focus:Z,blur:j,close:W,highlight:oe,getData:P}),(te,ie)=>(_(),ae(r(mn),{ref_key:"popperRef",ref:d,visible:r(E),placement:te.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[r(i).e("popper"),te.popperClass],teleported:te.teleported,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${r(i).namespace.value}-zoom-in-top`,persistent:"",role:"listbox",onBeforeShow:N,onHide:z},{content:G(()=>[k("div",{ref_key:"regionRef",ref:c,class:$([r(i).b("suggestion"),r(i).is("loading",r(O))]),style:Ne({[te.fitInputWidth?"width":"minWidth"]:y.value,outline:"none"}),role:"region"},[q(r(Oa),{id:r(b),tag:"ul","wrap-class":r(i).be("suggestion","wrap"),"view-class":r(i).be("suggestion","list"),role:"listbox"},{default:G(()=>[r(O)?(_(),x("li",{key:0},[Q(te.$slots,"loading",{},()=>[q(r(xe),{class:$(r(i).is("loading"))},{default:G(()=>[q(r(ca))]),_:1},8,["class"])])])):(_(!0),x(ze,{key:1},rt(m.value,(fe,Me)=>(_(),x("li",{id:`${r(b)}-item-${Me}`,key:Me,class:$({highlighted:p.value===Me}),role:"option","aria-selected":p.value===Me,onClick:me=>ne(fe)},[Q(te.$slots,"default",{item:fe},()=>[ot(he(fe[te.valueKey]),1)])],10,["id","aria-selected","onClick"]))),128))]),_:3},8,["id","wrap-class","view-class"])],6)]),default:G(()=>[k("div",{ref_key:"listboxRef",ref:f,class:$([r(i).b(),te.$attrs.class]),style:Ne(r(S)),role:"combobox","aria-haspopup":"listbox","aria-expanded":r(E),"aria-owns":r(b)},[q(r(Sn),tt({ref_key:"inputRef",ref:u},r(l),{clearable:te.clearable,disabled:r(s),name:te.name,"model-value":te.modelValue,"aria-label":te.ariaLabel,onInput:F,onChange:H,onFocus:R,onBlur:D,onClear:B,onKeydown:[kt(Ae(fe=>oe(p.value-1),["prevent"]),["up"]),kt(Ae(fe=>oe(p.value+1),["prevent"]),["down"]),kt(V,["enter"]),kt(W,["tab"]),kt(K,["esc"])],onMousedown:U}),Yn({_:2},[te.$slots.prepend?{name:"prepend",fn:G(()=>[Q(te.$slots,"prepend")])}:void 0,te.$slots.append?{name:"append",fn:G(()=>[Q(te.$slots,"append")])}:void 0,te.$slots.prefix?{name:"prefix",fn:G(()=>[Q(te.$slots,"prefix")])}:void 0,te.$slots.suffix?{name:"suffix",fn:G(()=>[Q(te.$slots,"suffix")])}:void 0]),1040,["clearable","disabled","name","model-value","aria-label","onKeydown"])],14,["aria-expanded","aria-owns"])]),_:3},8,["visible","placement","popper-class","teleported","transition"]))}});var YO=ve(UO,[["__file","autocomplete.vue"]]);const GO=We(YO),XO=pe({size:{type:[Number,String],values:xa,default:"",validator:e=>Ie(e)},shape:{type:String,values:["circle","square"],default:"circle"},icon:{type:St},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:X(String),default:"cover"}}),ZO={error:e=>e instanceof Event},JO=T({name:"ElAvatar"}),QO=T({...JO,props:XO,emits:ZO,setup(e,{emit:t}){const n=e,a=de("avatar"),l=A(!1),o=C(()=>{const{size:c,icon:d,shape:f}=n,h=[a.b()];return Ve(c)&&h.push(a.m(c)),d&&h.push(a.m("icon")),f&&h.push(a.m(f)),h}),s=C(()=>{const{size:c}=n;return Ie(c)?a.cssVarBlock({size:Rt(c)||""}):void 0}),i=C(()=>({objectFit:n.fit}));se(()=>n.src,()=>l.value=!1);function u(c){l.value=!0,t("error",c)}return(c,d)=>(_(),x("span",{class:$(r(o)),style:Ne(r(s))},[(c.src||c.srcSet)&&!l.value?(_(),x("img",{key:0,src:c.src,alt:c.alt,srcset:c.srcSet,style:Ne(r(i)),onError:u},null,44,["src","alt","srcset"])):c.icon?(_(),ae(r(xe),{key:1},{default:G(()=>[(_(),ae(et(c.icon)))]),_:1})):Q(c.$slots,"default",{key:2})],6))}});var eN=ve(QO,[["__file","avatar.vue"]]);const tN=We(eN),nN={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},aN={click:e=>e instanceof MouseEvent},lN=(e,t,n)=>{const a=Mt(),l=Mt(),o=A(!1),s=()=>{a.value&&(o.value=a.value.scrollTop>=e.visibilityHeight)},i=c=>{var d;(d=a.value)==null||d.scrollTo({top:0,behavior:"smooth"}),t("click",c)},u=Ov(s,300,!0);return wt(l,"scroll",u),Ge(()=>{var c;l.value=document,a.value=document.documentElement,e.target&&(a.value=(c=document.querySelector(e.target))!=null?c:void 0,a.value||Gt(n,`target does not exist: ${e.target}`),l.value=a.value),s()}),{visible:o,handleClick:i}},D1="ElBacktop",oN=T({name:D1}),rN=T({...oN,props:nN,emits:aN,setup(e,{emit:t}){const n=e,a=de("backtop"),{handleClick:l,visible:o}=lN(n,t,D1),s=C(()=>({right:`${n.right}px`,bottom:`${n.bottom}px`}));return(i,u)=>(_(),ae(tn,{name:`${r(a).namespace.value}-fade-in`},{default:G(()=>[r(o)?(_(),x("div",{key:0,style:Ne(r(s)),class:$(r(a).b()),onClick:Ae(r(l),["stop"])},[Q(i.$slots,"default",{},()=>[q(r(xe),{class:$(r(a).e("icon"))},{default:G(()=>[q(r(Gv))]),_:1},8,["class"])])],14,["onClick"])):ee("v-if",!0)]),_:3},8,["name"]))}});var sN=ve(rN,[["__file","backtop.vue"]]);const iN=We(sN),uN=pe({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,badgeStyle:{type:X([String,Object,Array])},offset:{type:X(Array),default:[0,0]},badgeClass:{type:String}}),cN=T({name:"ElBadge"}),dN=T({...cN,props:uN,setup(e,{expose:t}){const n=e,a=de("badge"),l=C(()=>n.isDot?"":Ie(n.value)&&Ie(n.max)?n.max{var s,i,u,c,d;return[{backgroundColor:n.color,marginRight:Rt(-((i=(s=n.offset)==null?void 0:s[0])!=null?i:0)),marginTop:Rt((c=(u=n.offset)==null?void 0:u[1])!=null?c:0)},(d=n.badgeStyle)!=null?d:{}]});return t({content:l}),(s,i)=>(_(),x("div",{class:$(r(a).b())},[Q(s.$slots,"default"),q(tn,{name:`${r(a).namespace.value}-zoom-in-center`,persisted:""},{default:G(()=>[qe(k("sup",{class:$([r(a).e("content"),r(a).em("content",s.type),r(a).is("fixed",!!s.$slots.default),r(a).is("dot",s.isDot),r(a).is("hide-zero",!s.showZero&&n.value===0),s.badgeClass]),style:Ne(r(o))},[Q(s.$slots,"content",{value:r(l)},()=>[ot(he(r(l)),1)])],6),[[pt,!s.hidden&&(r(l)||s.isDot||s.$slots.content)]])]),_:3},8,["name"])],2))}});var fN=ve(dN,[["__file","badge.vue"]]);const F1=We(fN),K1=Symbol("breadcrumbKey"),pN=pe({separator:{type:String,default:"/"},separatorIcon:{type:St}}),vN=T({name:"ElBreadcrumb"}),hN=T({...vN,props:pN,setup(e){const t=e,{t:n}=ct(),a=de("breadcrumb"),l=A();return it(K1,t),Ge(()=>{const o=l.value.querySelectorAll(`.${a.e("item")}`);o.length&&o[o.length-1].setAttribute("aria-current","page")}),(o,s)=>(_(),x("div",{ref_key:"breadcrumb",ref:l,class:$(r(a).b()),"aria-label":r(n)("el.breadcrumb.label"),role:"navigation"},[Q(o.$slots,"default")],10,["aria-label"]))}});var mN=ve(hN,[["__file","breadcrumb.vue"]]);const gN=pe({to:{type:X([String,Object]),default:""},replace:Boolean}),yN=T({name:"ElBreadcrumbItem"}),_N=T({...yN,props:gN,setup(e){const t=e,n=Ze(),a=Se(K1,void 0),l=de("breadcrumb"),o=n.appContext.config.globalProperties.$router,s=A(),i=()=>{!t.to||!o||(t.replace?o.replace(t.to):o.push(t.to))};return(u,c)=>{var d,f;return _(),x("span",{class:$(r(l).e("item"))},[k("span",{ref_key:"link",ref:s,class:$([r(l).e("inner"),r(l).is("link",!!u.to)]),role:"link",onClick:i},[Q(u.$slots,"default")],2),(d=r(a))!=null&&d.separatorIcon?(_(),ae(r(xe),{key:0,class:$(r(l).e("separator"))},{default:G(()=>[(_(),ae(et(r(a).separatorIcon)))]),_:1},8,["class"])):(_(),x("span",{key:1,class:$(r(l).e("separator")),role:"presentation"},he((f=r(a))==null?void 0:f.separator),3))],2)}}});var W1=ve(_N,[["__file","breadcrumb-item.vue"]]);const bN=We(mN,{BreadcrumbItem:W1}),wN=Lt(W1),j1=Symbol("buttonGroupContextKey"),al=({from:e,replacement:t,scope:n,version:a,ref:l,type:o="API"},s)=>{se(()=>r(s),i=>{},{immediate:!0})},CN=(e,t)=>{al({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},C(()=>e.type==="text"));const n=Se(j1,void 0),a=Ci("button"),{form:l}=gn(),o=jt(C(()=>n==null?void 0:n.size)),s=yn(),i=A(),u=Xt(),c=C(()=>e.type||(n==null?void 0:n.type)||""),d=C(()=>{var m,p,y;return(y=(p=e.autoInsertSpace)!=null?p:(m=a.value)==null?void 0:m.autoInsertSpace)!=null?y:!1}),f=C(()=>e.tag==="button"?{ariaDisabled:s.value||e.loading,disabled:s.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),h=C(()=>{var m;const p=(m=u.default)==null?void 0:m.call(u);if(d.value&&(p==null?void 0:p.length)===1){const y=p[0];if((y==null?void 0:y.type)===Vp){const g=y.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(g.trim())}}return!1});return{_disabled:s,_size:o,_type:c,_ref:i,_props:f,shouldAddSpace:h,handleClick:m=>{if(s.value||e.loading){m.stopPropagation();return}e.nativeType==="reset"&&(l==null||l.resetFields()),t("click",m)}}},Fu=["default","primary","success","warning","info","danger","text",""],SN=["button","submit","reset"],Ku=pe({size:qt,disabled:Boolean,type:{type:String,values:Fu,default:""},icon:{type:St},nativeType:{type:String,values:SN,default:"button"},loading:Boolean,loadingIcon:{type:St,default:()=>ca},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:X([String,Object]),default:"button"}}),kN={click:e=>e instanceof MouseEvent};function vn(e,t){EN(e)&&(e="100%");var n=MN(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 es(e){return Math.min(1,Math.max(0,e))}function EN(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function MN(e){return typeof e=="string"&&e.indexOf("%")!==-1}function q1(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ts(e){return e<=1?"".concat(Number(e)*100,"%"):e}function bl(e){return e.length===1?"0"+e:String(e)}function xN(e,t,n){return{r:vn(e,255)*255,g:vn(t,255)*255,b:vn(n,255)*255}}function e2(e,t,n){e=vn(e,255),t=vn(t,255),n=vn(n,255);var a=Math.max(e,t,n),l=Math.min(e,t,n),o=0,s=0,i=(a+l)/2;if(a===l)s=0,o=0;else{var u=a-l;switch(s=i>.5?u/(2-a-l):u/(a+l),a){case e:o=(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 $N(e,t,n){var a,l,o;if(e=vn(e,360),t=vn(t,100),n=vn(n,100),t===0)l=n,o=n,a=n;else{var s=n<.5?n*(1+t):n+t-n*t,i=2*n-s;a=lu(i,s,e+1/3),l=lu(i,s,e),o=lu(i,s,e-1/3)}return{r:a*255,g:l*255,b:o*255}}function t2(e,t,n){e=vn(e,255),t=vn(t,255),n=vn(n,255);var a=Math.max(e,t,n),l=Math.min(e,t,n),o=0,s=a,i=a-l,u=a===0?0:i/a;if(a===l)o=0;else{switch(a){case e:o=(t-n)/i+(t>16,g:(e&65280)>>8,b:e&255}}var Wu={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 PN(e){var t={r:0,g:0,b:0},n=1,a=null,l=null,o=null,s=!1,i=!1;return typeof e=="string"&&(e=VN(e)),typeof e=="object"&&(Pa(e.r)&&Pa(e.g)&&Pa(e.b)?(t=xN(e.r,e.g,e.b),s=!0,i=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Pa(e.h)&&Pa(e.s)&&Pa(e.v)?(a=ts(e.s),l=ts(e.v),t=TN(e.h,a,l),s=!0,i="hsv"):Pa(e.h)&&Pa(e.s)&&Pa(e.l)&&(a=ts(e.s),o=ts(e.l),t=$N(e.h,a,o),s=!0,i="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=q1(n),{ok:s,format:e.format||i,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 zN="[-\\+]?\\d+%?",AN="[-\\+]?\\d*\\.\\d+%?",tl="(?:".concat(AN,")|(?:").concat(zN,")"),ou="[\\s|\\(]+(".concat(tl,")[,|\\s]+(").concat(tl,")[,|\\s]+(").concat(tl,")\\s*\\)?"),ru="[\\s|\\(]+(".concat(tl,")[,|\\s]+(").concat(tl,")[,|\\s]+(").concat(tl,")[,|\\s]+(").concat(tl,")\\s*\\)?"),na={CSS_UNIT:new RegExp(tl),rgb:new RegExp("rgb"+ou),rgba:new RegExp("rgba"+ru),hsl:new RegExp("hsl"+ou),hsla:new RegExp("hsla"+ru),hsv:new RegExp("hsv"+ou),hsva:new RegExp("hsva"+ru),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 VN(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Wu[e])e=Wu[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=na.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=na.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=na.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=na.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=na.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=na.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=na.hex8.exec(e),n?{r:Bn(n[1]),g:Bn(n[2]),b:Bn(n[3]),a:a2(n[4]),format:t?"name":"hex8"}:(n=na.hex6.exec(e),n?{r:Bn(n[1]),g:Bn(n[2]),b:Bn(n[3]),format:t?"name":"hex"}:(n=na.hex4.exec(e),n?{r:Bn(n[1]+n[1]),g:Bn(n[2]+n[2]),b:Bn(n[3]+n[3]),a:a2(n[4]+n[4]),format:t?"name":"hex8"}:(n=na.hex3.exec(e),n?{r:Bn(n[1]+n[1]),g:Bn(n[2]+n[2]),b:Bn(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Pa(e){return!!na.CSS_UNIT.exec(String(e))}var U1=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var a;if(t instanceof e)return t;typeof t=="number"&&(t=IN(t)),this.originalInput=t;var l=PN(t);this.originalInput=t,this.r=l.r,this.g=l.g,this.b=l.b,this.a=l.a,this.roundA=Math.round(100*this.a)/100,this.format=(a=n.format)!==null&&a!==void 0?a:l.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=l.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,a,l,o=t.r/255,s=t.g/255,i=t.b/255;return o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),s<=.03928?a=s/12.92:a=Math.pow((s+.055)/1.055,2.4),i<=.03928?l=i/12.92:l=Math.pow((i+.055)/1.055,2.4),.2126*n+.7152*a+.0722*l},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=q1(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=t2(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=t2(this.r,this.g,this.b),n=Math.round(t.h*360),a=Math.round(t.s*100),l=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(a,"%, ").concat(l,"%)"):"hsva(".concat(n,", ").concat(a,"%, ").concat(l,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=e2(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=e2(this.r,this.g,this.b),n=Math.round(t.h*360),a=Math.round(t.s*100),l=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(a,"%, ").concat(l,"%)"):"hsla(".concat(n,", ").concat(a,"%, ").concat(l,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),n2(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),ON(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),a=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(a,")"):"rgba(".concat(t,", ").concat(n,", ").concat(a,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(vn(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(vn(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="#"+n2(this.r,this.g,this.b,!1),n=0,a=Object.entries(Wu);n=0,o=!n&&l&&(t.startsWith("hex")||t==="name");return o?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(a=this.toRgbString()),t==="prgb"&&(a=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(a=this.toHexString()),t==="hex3"&&(a=this.toHexString(!0)),t==="hex4"&&(a=this.toHex8String(!0)),t==="hex8"&&(a=this.toHex8String()),t==="name"&&(a=this.toName()),t==="hsl"&&(a=this.toHslString()),t==="hsv"&&(a=this.toHsvString()),a||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=es(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=es(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=es(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=es(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),a=(n.h+t)%360;return n.h=a<0?360+a:a,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var a=this.toRgb(),l=new e(t).toRgb(),o=n/100,s={r:(l.r-a.r)*o+a.r,g:(l.g-a.g)*o+a.g,b:(l.b-a.b)*o+a.b,a:(l.a-a.a)*o+a.a};return new e(s)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var a=this.toHsl(),l=360/n,o=[this];for(a.h=(a.h-(l*t>>1)+720)%360;--t;)a.h=(a.h+l)%360,o.push(new e(a));return o},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(),a=n.h,l=n.s,o=n.v,s=[],i=1/t;t--;)s.push(new e({h:a,s:l,v:o})),o=(o+i)%1;return s},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(),a=new e(t).toRgb(),l=n.a+a.a*(1-n.a);return new e({r:(n.r*n.a+a.r*a.a*(1-n.a))/l,g:(n.g*n.a+a.g*a.a*(1-n.a))/l,b:(n.b*n.a+a.b*a.a*(1-n.a))/l,a:l})},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(),a=n.h,l=[this],o=360/t,s=1;s{let a={},l=e.color;if(l){const o=l.match(/var\((.*?)\)/);o&&(l=window.getComputedStyle(window.document.documentElement).getPropertyValue(o[1]));const s=new U1(l),i=e.dark?s.tint(20).toString():Ja(s,20);if(e.plain)a=n.cssVarBlock({"bg-color":e.dark?Ja(s,90):s.tint(90).toString(),"text-color":l,"border-color":e.dark?Ja(s,50):s.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":l,"hover-border-color":l,"active-bg-color":i,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":i}),t.value&&(a[n.cssVarBlockName("disabled-bg-color")]=e.dark?Ja(s,90):s.tint(90).toString(),a[n.cssVarBlockName("disabled-text-color")]=e.dark?Ja(s,50):s.tint(50).toString(),a[n.cssVarBlockName("disabled-border-color")]=e.dark?Ja(s,80):s.tint(80).toString());else{const u=e.dark?Ja(s,30):s.tint(30).toString(),c=s.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(a=n.cssVarBlock({"bg-color":l,"text-color":c,"border-color":l,"hover-bg-color":u,"hover-text-color":c,"hover-border-color":u,"active-bg-color":i,"active-border-color":i}),t.value){const d=e.dark?Ja(s,50):s.tint(50).toString();a[n.cssVarBlockName("disabled-bg-color")]=d,a[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,a[n.cssVarBlockName("disabled-border-color")]=d}}}return a})}const RN=T({name:"ElButton"}),BN=T({...RN,props:Ku,emits:kN,setup(e,{expose:t,emit:n}){const a=e,l=LN(a),o=de("button"),{_ref:s,_size:i,_type:u,_disabled:c,_props:d,shouldAddSpace:f,handleClick:h}=CN(a,n),v=C(()=>[o.b(),o.m(u.value),o.m(i.value),o.is("disabled",c.value),o.is("loading",a.loading),o.is("plain",a.plain),o.is("round",a.round),o.is("circle",a.circle),o.is("text",a.text),o.is("link",a.link),o.is("has-bg",a.bg)]);return t({ref:s,size:i,type:u,disabled:c,shouldAddSpace:f}),(m,p)=>(_(),ae(et(m.tag),tt({ref_key:"_ref",ref:s},r(d),{class:r(v),style:r(l),onClick:r(h)}),{default:G(()=>[m.loading?(_(),x(ze,{key:0},[m.$slots.loading?Q(m.$slots,"loading",{key:0}):(_(),ae(r(xe),{key:1,class:$(r(o).is("loading"))},{default:G(()=>[(_(),ae(et(m.loadingIcon)))]),_:1},8,["class"]))],64)):m.icon||m.$slots.icon?(_(),ae(r(xe),{key:1},{default:G(()=>[m.icon?(_(),ae(et(m.icon),{key:0})):Q(m.$slots,"icon",{key:1})]),_:3})):ee("v-if",!0),m.$slots.default?(_(),x("span",{key:2,class:$({[r(o).em("text","expand")]:r(f)})},[Q(m.$slots,"default")],2)):ee("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var HN=ve(BN,[["__file","button.vue"]]);const DN={size:Ku.size,type:Ku.type},FN=T({name:"ElButtonGroup"}),KN=T({...FN,props:DN,setup(e){const t=e;it(j1,_t({size:mt(t,"size"),type:mt(t,"type")}));const n=de("button");return(a,l)=>(_(),x("div",{class:$(r(n).b("group"))},[Q(a.$slots,"default")],2))}});var Y1=ve(KN,[["__file","button-group.vue"]]);const en=We(HN,{ButtonGroup:Y1}),G1=Lt(Y1);var gs={exports:{}},WN=gs.exports,l2;function jN(){return l2||(l2=1,function(e,t){(function(n,a){e.exports=a()})(WN,function(){var n=1e3,a=6e4,l=36e5,o="millisecond",s="second",i="minute",u="hour",c="day",d="week",f="month",h="quarter",v="year",m="date",p="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(U){var H=["th","st","nd","rd"],R=U%100;return"["+U+(H[(R-20)%10]||H[R]||H[0])+"]"}},w=function(U,H,R){var D=String(U);return!D||D.length>=H?U:""+Array(H+1-D.length).join(R)+U},b={s:w,z:function(U){var H=-U.utcOffset(),R=Math.abs(H),D=Math.floor(R/60),B=R%60;return(H<=0?"+":"-")+w(D,2,"0")+":"+w(B,2,"0")},m:function U(H,R){if(H.date()1)return U(K[0])}else{var W=H.name;E[W]=H,B=W}return!D&&B&&(S=B),B||!D&&S},z=function(U,H){if(I(U))return U.clone();var R=typeof H=="object"?H:{};return R.date=U,R.args=arguments,new L(R)},P=b;P.l=N,P.i=I,P.w=function(U,H){return z(U,{locale:H.$L,utc:H.$u,x:H.$x,$offset:H.$offset})};var L=function(){function U(R){this.$L=N(R.locale,null,!0),this.parse(R),this.$x=this.$x||R.x||{},this[O]=!0}var H=U.prototype;return H.parse=function(R){this.$d=function(D){var B=D.date,V=D.utc;if(B===null)return new Date(NaN);if(P.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var K=B.match(y);if(K){var W=K[2]-1||0,Z=(K[7]||"0").substring(0,3);return V?new Date(Date.UTC(K[1],W,K[3]||1,K[4]||0,K[5]||0,K[6]||0,Z)):new Date(K[1],W,K[3]||1,K[4]||0,K[5]||0,K[6]||0,Z)}}return new Date(B)}(R),this.init()},H.init=function(){var R=this.$d;this.$y=R.getFullYear(),this.$M=R.getMonth(),this.$D=R.getDate(),this.$W=R.getDay(),this.$H=R.getHours(),this.$m=R.getMinutes(),this.$s=R.getSeconds(),this.$ms=R.getMilliseconds()},H.$utils=function(){return P},H.isValid=function(){return this.$d.toString()!==p},H.isSame=function(R,D){var B=z(R);return this.startOf(D)<=B&&B<=this.endOf(D)},H.isAfter=function(R,D){return z(R)[e>0?e-1:void 0,e,eArray.from(Array.from({length:e}).keys()),X1=e=>e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),Z1=e=>e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),o2=function(e,t){const n=uo(e),a=uo(t);return n&&a?e.getTime()===t.getTime():!n&&!a?e===t:!1},r2=function(e,t){const n=Ee(e),a=Ee(t);return n&&a?e.length!==t.length?!1:e.every((l,o)=>o2(l,t[o])):!n&&!a?o2(e,t):!1},s2=function(e,t,n){const a=Hn(t)||t==="x"?Be(e).locale(n):Be(e,t).locale(n);return a.isValid()?a:void 0},i2=function(e,t,n){return Hn(t)?e:t==="x"?+e:Be(e).locale(n).format(t)},iu=(e,t)=>{var n;const a=[],l=t==null?void 0:t();for(let o=0;oEe(e)?e.map(t=>t.toDate()):e.toDate(),UN=(e,t)=>{const n=e.subtract(1,"month").endOf("month").date();return ll(t).map((a,l)=>n-(t-l-1))},YN=e=>{const t=e.daysInMonth();return ll(t).map((n,a)=>a+1)},GN=e=>ll(e.length/7).map(t=>{const n=t*7;return e.slice(n,n+7)}),XN=pe({selectedDay:{type:X(Object)},range:{type:X(Array)},date:{type:X(Object),required:!0},hideHeader:{type:Boolean}}),ZN={pick:e=>ht(e)};var ys={exports:{}},JN=ys.exports,u2;function QN(){return u2||(u2=1,function(e,t){(function(n,a){e.exports=a()})(JN,function(){return function(n,a,l){var o=a.prototype,s=function(f){return f&&(f.indexOf?f:f.s)},i=function(f,h,v,m,p){var y=f.name?f:f.$locale(),g=s(y[h]),M=s(y[v]),w=g||M.map(function(S){return S.slice(0,m)});if(!p)return w;var b=y.weekStart;return w.map(function(S,E){return w[(E+(b||0))%7]})},u=function(){return l.Ls[l.locale()]},c=function(f,h){return f.formats[h]||function(v){return v.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(m,p,y){return p||y.slice(1)})}(f.formats[h.toUpperCase()])},d=function(){var f=this;return{months:function(h){return h?h.format("MMMM"):i(f,"months")},monthsShort:function(h){return h?h.format("MMM"):i(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(h){return h?h.format("dddd"):i(f,"weekdays")},weekdaysMin:function(h){return h?h.format("dd"):i(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(h){return h?h.format("ddd"):i(f,"weekdaysShort","weekdays",3)},longDateFormat:function(h){return c(f.$locale(),h)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return d.bind(this)()},l.localeData=function(){var f=u();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return l.weekdays()},weekdaysShort:function(){return l.weekdaysShort()},weekdaysMin:function(){return l.weekdaysMin()},months:function(){return l.months()},monthsShort:function(){return l.monthsShort()},longDateFormat:function(h){return c(f,h)},meridiem:f.meridiem,ordinal:f.ordinal}},l.months=function(){return i(u(),"months")},l.monthsShort=function(){return i(u(),"monthsShort","months",3)},l.weekdays=function(f){return i(u(),"weekdays",null,null,f)},l.weekdaysShort=function(f){return i(u(),"weekdaysShort","weekdays",3,f)},l.weekdaysMin=function(f){return i(u(),"weekdaysMin","weekdays",2,f)}}})}(ys)),ys.exports}var eI=QN();const J1=qa(eI),tI=["year","years","month","months","date","dates","week","datetime","datetimerange","daterange","monthrange","yearrange"],uu=["sun","mon","tue","wed","thu","fri","sat"],nI=(e,t)=>{Be.extend(J1);const n=Be.localeData().firstDayOfWeek(),{t:a,lang:l}=ct(),o=Be().locale(l.value),s=C(()=>!!e.range&&!!e.range.length),i=C(()=>{let h=[];if(s.value){const[v,m]=e.range,p=ll(m.date()-v.date()+1).map(M=>({text:v.date()+M,type:"current"}));let y=p.length%7;y=y===0?0:7-y;const g=ll(y).map((M,w)=>({text:w+1,type:"next"}));h=p.concat(g)}else{const v=e.date.startOf("month").day(),m=UN(e.date,(v-n+7)%7).map(M=>({text:M,type:"prev"})),p=YN(e.date).map(M=>({text:M,type:"current"}));h=[...m,...p];const y=7-(h.length%7||7),g=ll(y).map((M,w)=>({text:w+1,type:"next"}));h=h.concat(g)}return GN(h)}),u=C(()=>{const h=n;return h===0?uu.map(v=>a(`el.datepicker.weeks.${v}`)):uu.slice(h).concat(uu.slice(0,h)).map(v=>a(`el.datepicker.weeks.${v}`))}),c=(h,v)=>{switch(v){case"prev":return e.date.startOf("month").subtract(1,"month").date(h);case"next":return e.date.startOf("month").add(1,"month").date(h);case"current":return e.date.date(h)}};return{now:o,isInRange:s,rows:i,weekDays:u,getFormattedDate:c,handlePickDay:({text:h,type:v})=>{const m=c(h,v);t("pick",m)},getSlotData:({text:h,type:v})=>{const m=c(h,v);return{isSelected:m.isSame(e.selectedDay),type:`${v}-month`,day:m.format("YYYY-MM-DD"),date:m.toDate()}}}},aI=T({name:"DateTable"}),lI=T({...aI,props:XN,emits:ZN,setup(e,{expose:t,emit:n}){const a=e,{isInRange:l,now:o,rows:s,weekDays:i,getFormattedDate:u,handlePickDay:c,getSlotData:d}=nI(a,n),f=de("calendar-table"),h=de("calendar-day"),v=({text:m,type:p})=>{const y=[p];if(p==="current"){const g=u(m,p);g.isSame(a.selectedDay,"day")&&y.push(h.is("selected")),g.isSame(o,"day")&&y.push(h.is("today"))}return y};return t({getFormattedDate:u}),(m,p)=>(_(),x("table",{class:$([r(f).b(),r(f).is("range",r(l))]),cellspacing:"0",cellpadding:"0"},[m.hideHeader?ee("v-if",!0):(_(),x("thead",{key:0},[k("tr",null,[(_(!0),x(ze,null,rt(r(i),y=>(_(),x("th",{key:y,scope:"col"},he(y),1))),128))])])),k("tbody",null,[(_(!0),x(ze,null,rt(r(s),(y,g)=>(_(),x("tr",{key:g,class:$({[r(f).e("row")]:!0,[r(f).em("row","hide-border")]:g===0&&m.hideHeader})},[(_(!0),x(ze,null,rt(y,(M,w)=>(_(),x("td",{key:w,class:$(v(M)),onClick:b=>r(c)(M)},[k("div",{class:$(r(h).b())},[Q(m.$slots,"date-cell",{data:r(d)(M)},()=>[k("span",null,he(M.text),1)])],2)],10,["onClick"]))),128))],2))),128))])],2))}});var c2=ve(lI,[["__file","date-table.vue"]]);const oI=(e,t)=>{const n=e.endOf("month"),a=t.startOf("month"),o=n.isSame(a,"week")?a.add(1,"week"):a;return[[e,n],[o.startOf("week"),t]]},rI=(e,t)=>{const n=e.endOf("month"),a=e.add(1,"month").startOf("month"),l=n.isSame(a,"week")?a.add(1,"week"):a,o=l.endOf("month"),s=t.startOf("month"),i=o.isSame(s,"week")?s.add(1,"week"):s;return[[e,n],[l.startOf("week"),o],[i.startOf("week"),t]]},sI=(e,t,n)=>{const{lang:a}=ct(),l=A(),o=Be().locale(a.value),s=C({get(){return e.modelValue?u.value:l.value},set(y){if(!y)return;l.value=y;const g=y.toDate();t(pn,g),t(Ue,g)}}),i=C(()=>{if(!e.range||!Ee(e.range)||e.range.length!==2||e.range.some(w=>!uo(w)))return[];const y=e.range.map(w=>Be(w).locale(a.value)),[g,M]=y;return g.isAfter(M)?[]:g.isSame(M,"month")?v(g,M):g.add(1,"month").month()!==M.month()?[]:v(g,M)}),u=C(()=>e.modelValue?Be(e.modelValue).locale(a.value):s.value||(i.value.length?i.value[0][0]:o)),c=C(()=>u.value.subtract(1,"month").date(1)),d=C(()=>u.value.add(1,"month").date(1)),f=C(()=>u.value.subtract(1,"year").date(1)),h=C(()=>u.value.add(1,"year").date(1)),v=(y,g)=>{const M=y.startOf("week"),w=g.endOf("week"),b=M.get("month"),S=w.get("month");return b===S?[[M,w]]:(b+1)%12===S?oI(M,w):b+2===S||(b+1)%11===S?rI(M,w):[]},m=y=>{s.value=y};return{calculateValidatedDateRange:v,date:u,realSelectedDay:s,pickDay:m,selectDate:y=>{const M={"prev-month":c.value,"next-month":d.value,"prev-year":f.value,"next-year":h.value,today:o}[y];M.isSame(u.value,"day")||m(M)},validatedRange:i}},iI=e=>Ee(e)&&e.length===2&&e.every(t=>uo(t)),uI=pe({modelValue:{type:Date},range:{type:X(Array),validator:iI}}),cI={[Ue]:e=>uo(e),[pn]:e=>uo(e)},dI="ElCalendar",fI=T({name:dI}),pI=T({...fI,props:uI,emits:cI,setup(e,{expose:t,emit:n}){const a=e,l=de("calendar"),{calculateValidatedDateRange:o,date:s,pickDay:i,realSelectedDay:u,selectDate:c,validatedRange:d}=sI(a,n),{t:f}=ct(),h=C(()=>{const v=`el.datepicker.month${s.value.format("M")}`;return`${s.value.year()} ${f("el.datepicker.year")} ${f(v)}`});return t({selectedDay:u,pickDay:i,selectDate:c,calculateValidatedDateRange:o}),(v,m)=>(_(),x("div",{class:$(r(l).b())},[k("div",{class:$(r(l).e("header"))},[Q(v.$slots,"header",{date:r(h)},()=>[k("div",{class:$(r(l).e("title"))},he(r(h)),3),r(d).length===0?(_(),x("div",{key:0,class:$(r(l).e("button-group"))},[q(r(G1),null,{default:G(()=>[q(r(en),{size:"small",onClick:p=>r(c)("prev-month")},{default:G(()=>[ot(he(r(f)("el.datepicker.prevMonth")),1)]),_:1},8,["onClick"]),q(r(en),{size:"small",onClick:p=>r(c)("today")},{default:G(()=>[ot(he(r(f)("el.datepicker.today")),1)]),_:1},8,["onClick"]),q(r(en),{size:"small",onClick:p=>r(c)("next-month")},{default:G(()=>[ot(he(r(f)("el.datepicker.nextMonth")),1)]),_:1},8,["onClick"])]),_:1})],2)):ee("v-if",!0)])],2),r(d).length===0?(_(),x("div",{key:0,class:$(r(l).e("body"))},[q(c2,{date:r(s),"selected-day":r(u),onPick:r(i)},Yn({_:2},[v.$slots["date-cell"]?{name:"date-cell",fn:G(p=>[Q(v.$slots,"date-cell",oa(Ol(p)))])}:void 0]),1032,["date","selected-day","onPick"])],2)):(_(),x("div",{key:1,class:$(r(l).e("body"))},[(_(!0),x(ze,null,rt(r(d),(p,y)=>(_(),ae(c2,{key:y,date:p[0],"selected-day":r(u),range:p,"hide-header":y!==0,onPick:r(i)},Yn({_:2},[v.$slots["date-cell"]?{name:"date-cell",fn:G(g=>[Q(v.$slots,"date-cell",oa(Ol(g)))])}:void 0]),1032,["date","selected-day","range","hide-header","onPick"]))),128))],2))],2))}});var vI=ve(pI,[["__file","calendar.vue"]]);const hI=We(vI),mI=pe({header:{type:String,default:""},footer:{type:String,default:""},bodyStyle:{type:X([String,Object,Array]),default:""},bodyClass:String,shadow:{type:String,values:["always","hover","never"],default:"always"}}),gI=T({name:"ElCard"}),yI=T({...gI,props:mI,setup(e){const t=de("card");return(n,a)=>(_(),x("div",{class:$([r(t).b(),r(t).is(`${n.shadow}-shadow`)])},[n.$slots.header||n.header?(_(),x("div",{key:0,class:$(r(t).e("header"))},[Q(n.$slots,"header",{},()=>[ot(he(n.header),1)])],2)):ee("v-if",!0),k("div",{class:$([r(t).e("body"),n.bodyClass]),style:Ne(n.bodyStyle)},[Q(n.$slots,"default")],6),n.$slots.footer||n.footer?(_(),x("div",{key:1,class:$(r(t).e("footer"))},[Q(n.$slots,"footer",{},()=>[ot(he(n.footer),1)])],2)):ee("v-if",!0)],2))}});var _I=ve(yI,[["__file","card.vue"]]);const bI=We(_I),wI=pe({initialIndex:{type:Number,default:0},height:{type:String,default:""},trigger:{type:String,values:["hover","click"],default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:{type:String,values:["","none","outside"],default:""},arrow:{type:String,values:["always","hover","never"],default:"hover"},type:{type:String,values:["","card"],default:""},cardScale:{type:Number,default:.83},loop:{type:Boolean,default:!0},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},pauseOnHover:{type:Boolean,default:!0},motionBlur:Boolean}),CI={change:(e,t)=>[e,t].every(Ie)},Q1=Symbol("carouselContextKey"),ju="ElCarouselItem";var Kn=(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))(Kn||{});function qu(e){return Ft(e)&&e.type===ze}function SI(e){return Ft(e)&&e.type===ci}function kI(e){return Ft(e)&&!qu(e)&&!SI(e)}const EI=e=>{if(!Ft(e))return{};const t=e.props||{},n=(Ft(e.type)?e.type.props:void 0)||{},a={};return Object.keys(n).forEach(l=>{hn(n[l],"default")&&(a[l]=n[l].default)}),Object.keys(t).forEach(l=>{a[jc(l)]=t[l]}),a},MI=e=>{if(!Ee(e)||e.length>1)throw new Error("expect to receive a single Vue element child");return e[0]},ol=e=>{const t=Ee(e)?e:[e],n=[];return t.forEach(a=>{var l;Ee(a)?n.push(...ol(a)):Ft(a)&&((l=a.component)!=null&&l.subTree)?n.push(a,...ol(a.component.subTree)):Ft(a)&&Ee(a.children)?n.push(...ol(a.children)):n.push(a)}),n},xI=(e,t,n)=>ol(e.subTree).filter(o=>{var s;return Ft(o)&&((s=o.type)==null?void 0:s.name)===t&&!!o.component}).map(o=>o.component.uid).map(o=>n[o]).filter(o=>!!o),Vd=(e,t)=>{const n={},a=Mt([]);return{children:a,addChild:s=>{n[s.uid]=s,a.value=xI(e,t,n)},removeChild:s=>{delete n[s],a.value=a.value.filter(i=>i.uid!==s)}}},d2=300,$I=(e,t,n)=>{const{children:a,addChild:l,removeChild:o}=Vd(Ze(),ju),s=Xt(),i=A(-1),u=A(null),c=A(!1),d=A(),f=A(0),h=A(!0),v=A(!0),m=A(!1),p=C(()=>e.arrow!=="never"&&!r(M)),y=C(()=>a.value.some(ce=>ce.props.label.toString().length>0)),g=C(()=>e.type==="card"),M=C(()=>e.direction==="vertical"),w=C(()=>e.height!=="auto"?{height:e.height}:{height:`${f.value}px`,overflow:"hidden"}),b=Ml(ce=>{z(ce)},d2,{trailing:!0}),S=Ml(ce=>{V(ce)},d2),E=ce=>h.value?i.value<=1?ce<=1:ce>1:!0;function O(){u.value&&(clearInterval(u.value),u.value=null)}function I(){e.interval<=0||!e.autoplay||u.value||(u.value=setInterval(()=>N(),e.interval))}const N=()=>{v.value||(m.value=!0),v.value=!1,i.valueMe.props.name===ce);fe.length>0&&(ce=a.value.indexOf(fe[0]))}if(ce=Number(ce),Number.isNaN(ce)||ce!==Math.floor(ce))return;const te=a.value.length,ie=i.value;ce<0?i.value=e.loop?te-1:0:ce>=te?i.value=e.loop?0:te-1:i.value=ce,ie===i.value&&P(ie),Z()}function P(ce){a.value.forEach((te,ie)=>{te.translateItem(ie,i.value,ce)})}function L(ce,te){var ie,fe,Me,me;const le=r(a),we=le.length;if(we===0||!ce.states.inStage)return!1;const Le=te+1,De=te-1,Ye=we-1,$e=le[Ye].states.active,Te=le[0].states.active,ke=(fe=(ie=le[Le])==null?void 0:ie.states)==null?void 0:fe.active,He=(me=(Me=le[De])==null?void 0:Me.states)==null?void 0:me.active;return te===Ye&&Te||ke?"left":te===0&&$e||He?"right":!1}function F(){c.value=!0,e.pauseOnHover&&O()}function U(){c.value=!1,I()}function H(){m.value=!1}function R(ce){r(M)||a.value.forEach((te,ie)=>{ce===L(te,ie)&&(te.states.hover=!0)})}function D(){r(M)||a.value.forEach(ce=>{ce.states.hover=!1})}function B(ce){ce!==i.value&&(v.value||(m.value=!0)),i.value=ce}function V(ce){e.trigger==="hover"&&ce!==i.value&&(i.value=ce,v.value||(m.value=!0))}function K(){z(i.value-1)}function W(){z(i.value+1)}function Z(){O(),e.pauseOnHover||I()}function j(ce){e.height==="auto"&&(f.value=ce)}function ne(){var ce;const te=(ce=s.default)==null?void 0:ce.call(s);if(!te)return null;const fe=ol(te).filter(Me=>Ft(Me)&&Me.type.name===ju);return(fe==null?void 0:fe.length)===2&&e.loop&&!g.value?(h.value=!0,fe):(h.value=!1,null)}se(()=>i.value,(ce,te)=>{P(te),h.value&&(ce=ce%2,te=te%2),te>-1&&t("change",ce,te)}),se(()=>e.autoplay,ce=>{ce?I():O()}),se(()=>e.loop,()=>{z(i.value)}),se(()=>e.interval,()=>{Z()});const oe=Mt();return Ge(()=>{se(()=>a.value,()=>{a.value.length>0&&z(e.initialIndex)},{immediate:!0}),oe.value=At(d.value,()=>{P()}),I()}),Tt(()=>{O(),d.value&&oe.value&&oe.value.stop()}),it(Q1,{root:d,isCardType:g,isVertical:M,items:a,loop:e.loop,cardScale:e.cardScale,addItem:l,removeItem:o,setActiveItem:z,setContainerHeight:j}),{root:d,activeIndex:i,arrowDisplay:p,hasLabel:y,hover:c,isCardType:g,isTransitioning:m,items:a,isVertical:M,containerStyle:w,isItemsTwoLength:h,handleButtonEnter:R,handleTransitionEnd:H,handleButtonLeave:D,handleIndicatorClick:B,handleMouseEnter:F,handleMouseLeave:U,setActiveItem:z,prev:K,next:W,PlaceholderItem:ne,isTwoLengthShow:E,throttledArrowClick:b,throttledIndicatorHover:S}},TI="ElCarousel",OI=T({name:TI}),NI=T({...OI,props:wI,emits:CI,setup(e,{expose:t,emit:n}){const a=e,{root:l,activeIndex:o,arrowDisplay:s,hasLabel:i,hover:u,isCardType:c,items:d,isVertical:f,containerStyle:h,handleButtonEnter:v,handleButtonLeave:m,isTransitioning:p,handleIndicatorClick:y,handleMouseEnter:g,handleMouseLeave:M,handleTransitionEnd:w,setActiveItem:b,prev:S,next:E,PlaceholderItem:O,isTwoLengthShow:I,throttledArrowClick:N,throttledIndicatorHover:z}=$I(a,n),P=de("carousel"),{t:L}=ct(),F=C(()=>{const R=[P.b(),P.m(a.direction)];return r(c)&&R.push(P.m("card")),R}),U=C(()=>{const R=[P.e("container")];return a.motionBlur&&r(p)&&d.value.length>1&&R.push(r(f)?`${P.namespace.value}-transitioning-vertical`:`${P.namespace.value}-transitioning`),R}),H=C(()=>{const R=[P.e("indicators"),P.em("indicators",a.direction)];return r(i)&&R.push(P.em("indicators","labels")),a.indicatorPosition==="outside"&&R.push(P.em("indicators","outside")),r(f)&&R.push(P.em("indicators","right")),R});return t({activeIndex:o,setActiveItem:b,prev:S,next:E}),(R,D)=>(_(),x("div",{ref_key:"root",ref:l,class:$(r(F)),onMouseenter:Ae(r(g),["stop"]),onMouseleave:Ae(r(M),["stop"])},[r(s)?(_(),ae(tn,{key:0,name:"carousel-arrow-left",persisted:""},{default:G(()=>[qe(k("button",{type:"button",class:$([r(P).e("arrow"),r(P).em("arrow","left")]),"aria-label":r(L)("el.carousel.leftArrow"),onMouseenter:B=>r(v)("left"),onMouseleave:r(m),onClick:Ae(B=>r(N)(r(o)-1),["stop"])},[q(r(xe),null,{default:G(()=>[q(r(Ra))]),_:1})],42,["aria-label","onMouseenter","onMouseleave","onClick"]),[[pt,(R.arrow==="always"||r(u))&&(a.loop||r(o)>0)]])]),_:1})):ee("v-if",!0),r(s)?(_(),ae(tn,{key:1,name:"carousel-arrow-right",persisted:""},{default:G(()=>[qe(k("button",{type:"button",class:$([r(P).e("arrow"),r(P).em("arrow","right")]),"aria-label":r(L)("el.carousel.rightArrow"),onMouseenter:B=>r(v)("right"),onMouseleave:r(m),onClick:Ae(B=>r(N)(r(o)+1),["stop"])},[q(r(xe),null,{default:G(()=>[q(r(En))]),_:1})],42,["aria-label","onMouseenter","onMouseleave","onClick"]),[[pt,(R.arrow==="always"||r(u))&&(a.loop||r(o)qe((_(),x("li",{key:V,class:$([r(P).e("indicator"),r(P).em("indicator",R.direction),r(P).is("active",V===r(o))]),onMouseenter:K=>r(z)(V),onClick:Ae(K=>r(y)(V),["stop"])},[k("button",{class:$(r(P).e("button")),"aria-label":r(L)("el.carousel.indicator",{index:V+1})},[r(i)?(_(),x("span",{key:0},he(B.props.label),1)):ee("v-if",!0)],10,["aria-label"])],42,["onMouseenter","onClick"])),[[pt,r(I)(V)]])),128))],2)):ee("v-if",!0),a.motionBlur?(_(),x("svg",{key:3,xmlns:"http://www.w3.org/2000/svg",version:"1.1",style:{display:"none"}},[k("defs",null,[k("filter",{id:"elCarouselHorizontal"},[k("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"12,0"})]),k("filter",{id:"elCarouselVertical"},[k("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"0,10"})])])])):ee("v-if",!0)],42,["onMouseenter","onMouseleave"]))}});var II=ve(NI,[["__file","carousel.vue"]]);const PI=pe({name:{type:String,default:""},label:{type:[String,Number],default:""}}),zI=e=>{const t=Se(Q1),n=Ze(),a=A(),l=A(!1),o=A(0),s=A(1),i=A(!1),u=A(!1),c=A(!1),d=A(!1),{isCardType:f,isVertical:h,cardScale:v}=t;function m(w,b,S){const E=S-1,O=b-1,I=b+1,N=S/2;return b===0&&w===E?-1:b===E&&w===0?S:w=N?S+1:w>I&&w-b>=N?-2:w}function p(w,b){var S,E;const O=r(h)?((S=t.root.value)==null?void 0:S.offsetHeight)||0:((E=t.root.value)==null?void 0:E.offsetWidth)||0;return c.value?O*((2-v)*(w-b)+1)/4:w{var E;const O=r(f),I=(E=t.items.value.length)!=null?E:Number.NaN,N=w===b;!O&&!vt(S)&&(d.value=N||w===S),!N&&I>2&&t.loop&&(w=m(w,b,I));const z=r(h);i.value=N,O?(c.value=Math.round(Math.abs(w-b))<=1,o.value=p(w,b),s.value=r(i)?1:v):o.value=y(w,b,z),u.value=!0,N&&a.value&&t.setContainerHeight(a.value.offsetHeight)};function M(){if(t&&r(f)){const w=t.items.value.findIndex(({uid:b})=>b===n.uid);t.setActiveItem(w)}}return Ge(()=>{t.addItem({props:e,states:_t({hover:l,translate:o,scale:s,active:i,ready:u,inStage:c,animating:d}),uid:n.uid,translateItem:g})}),To(()=>{t.removeItem(n.uid)}),{carouselItemRef:a,active:i,animating:d,hover:l,inStage:c,isVertical:h,translate:o,isCardType:f,scale:s,ready:u,handleItemClick:M}},AI=T({name:ju}),VI=T({...AI,props:PI,setup(e){const t=e,n=de("carousel"),{carouselItemRef:a,active:l,animating:o,hover:s,inStage:i,isVertical:u,translate:c,isCardType:d,scale:f,ready:h,handleItemClick:v}=zI(t),m=C(()=>[n.e("item"),n.is("active",l.value),n.is("in-stage",i.value),n.is("hover",s.value),n.is("animating",o.value),{[n.em("item","card")]:d.value,[n.em("item","card-vertical")]:d.value&&u.value}]),p=C(()=>{const g=`${`translate${r(u)?"Y":"X"}`}(${r(c)}px)`,M=`scale(${r(f)})`;return{transform:[g,M].join(" ")}});return(y,g)=>qe((_(),x("div",{ref_key:"carouselItemRef",ref:a,class:$(r(m)),style:Ne(r(p)),onClick:r(v)},[r(d)?qe((_(),x("div",{key:0,class:$(r(n).e("mask"))},null,2)),[[pt,!r(l)]]):ee("v-if",!0),Q(y.$slots,"default")],14,["onClick"])),[[pt,r(h)]])}});var eh=ve(VI,[["__file","carousel-item.vue"]]);const LI=We(II,{CarouselItem:eh}),RI=Lt(eh),th={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},border:Boolean,size:qt,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},...sn(["ariaControls"])},nh={[Ue]:e=>Ve(e)||Ie(e)||Et(e),change:e=>Ve(e)||Ie(e)||Et(e)},Bo=Symbol("checkboxGroupContextKey"),BI=({model:e,isChecked:t})=>{const n=Se(Bo,void 0),a=C(()=>{var o,s;const i=(o=n==null?void 0:n.max)==null?void 0:o.value,u=(s=n==null?void 0:n.min)==null?void 0:s.value;return!vt(i)&&e.value.length>=i&&!t.value||!vt(u)&&e.value.length<=u&&t.value});return{isDisabled:yn(C(()=>(n==null?void 0:n.disabled.value)||a.value)),isLimitDisabled:a}},HI=(e,{model:t,isLimitExceeded:n,hasOwnLabel:a,isDisabled:l,isLabeledByFormItem:o})=>{const s=Se(Bo,void 0),{formItem:i}=gn(),{emit:u}=Ze();function c(m){var p,y,g,M;return[!0,e.trueValue,e.trueLabel].includes(m)?(y=(p=e.trueValue)!=null?p:e.trueLabel)!=null?y:!0:(M=(g=e.falseValue)!=null?g:e.falseLabel)!=null?M:!1}function d(m,p){u("change",c(m),p)}function f(m){if(n.value)return;const p=m.target;u("change",c(p.checked),m)}async function h(m){n.value||!a.value&&!l.value&&o.value&&(m.composedPath().some(g=>g.tagName==="LABEL")||(t.value=c([!1,e.falseValue,e.falseLabel].includes(t.value)),await Oe(),d(t.value,m)))}const v=C(()=>(s==null?void 0:s.validateEvent)||e.validateEvent);return se(()=>e.modelValue,()=>{v.value&&(i==null||i.validate("change").catch(m=>void 0))}),{handleChange:f,onClickRoot:h}},DI=e=>{const t=A(!1),{emit:n}=Ze(),a=Se(Bo,void 0),l=C(()=>vt(a)===!1),o=A(!1),s=C({get(){var i,u;return l.value?(i=a==null?void 0:a.modelValue)==null?void 0:i.value:(u=e.modelValue)!=null?u:t.value},set(i){var u,c;l.value&&Ee(i)?(o.value=((u=a==null?void 0:a.max)==null?void 0:u.value)!==void 0&&i.length>(a==null?void 0:a.max.value)&&i.length>s.value.length,o.value===!1&&((c=a==null?void 0:a.changeEvent)==null||c.call(a,i))):(n(Ue,i),t.value=i)}});return{model:s,isGroup:l,isLimitExceeded:o}},FI=(e,t,{model:n})=>{const a=Se(Bo,void 0),l=A(!1),o=C(()=>ua(e.value)?e.label:e.value),s=C(()=>{const d=n.value;return Et(d)?d:Ee(d)?ht(o.value)?d.map(Bs).some(f=>fn(f,o.value)):d.map(Bs).includes(o.value):d!=null?d===e.trueValue||d===e.trueLabel:!!d}),i=jt(C(()=>{var d;return(d=a==null?void 0:a.size)==null?void 0:d.value}),{prop:!0}),u=jt(C(()=>{var d;return(d=a==null?void 0:a.size)==null?void 0:d.value})),c=C(()=>!!t.default||!ua(o.value));return{checkboxButtonSize:i,isChecked:s,isFocused:l,checkboxSize:u,hasOwnLabel:c,actualValue:o}},ah=(e,t)=>{const{formItem:n}=gn(),{model:a,isGroup:l,isLimitExceeded:o}=DI(e),{isFocused:s,isChecked:i,checkboxButtonSize:u,checkboxSize:c,hasOwnLabel:d,actualValue:f}=FI(e,t,{model:a}),{isDisabled:h}=BI({model:a,isChecked:i}),{inputId:v,isLabeledByFormItem:m}=ea(e,{formItemContext:n,disableIdGeneration:d,disableIdManagement:l}),{handleChange:p,onClickRoot:y}=HI(e,{model:a,isLimitExceeded:o,hasOwnLabel:d,isDisabled:h,isLabeledByFormItem:m});return(()=>{function M(){var w,b;Ee(a.value)&&!a.value.includes(f.value)?a.value.push(f.value):a.value=(b=(w=e.trueValue)!=null?w:e.trueLabel)!=null?b:!0}e.checked&&M()})(),al({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},C(()=>l.value&&ua(e.value))),al({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},C(()=>!!e.trueLabel)),al({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},C(()=>!!e.falseLabel)),{inputId:v,isLabeledByFormItem:m,isChecked:i,isDisabled:h,isFocused:s,checkboxButtonSize:u,checkboxSize:c,hasOwnLabel:d,model:a,actualValue:f,handleChange:p,onClickRoot:y}},KI=T({name:"ElCheckbox"}),WI=T({...KI,props:th,emits:nh,setup(e){const t=e,n=Xt(),{inputId:a,isLabeledByFormItem:l,isChecked:o,isDisabled:s,isFocused:i,checkboxSize:u,hasOwnLabel:c,model:d,actualValue:f,handleChange:h,onClickRoot:v}=ah(t,n),m=de("checkbox"),p=C(()=>[m.b(),m.m(u.value),m.is("disabled",s.value),m.is("bordered",t.border),m.is("checked",o.value)]),y=C(()=>[m.e("input"),m.is("disabled",s.value),m.is("checked",o.value),m.is("indeterminate",t.indeterminate),m.is("focus",i.value)]);return(g,M)=>(_(),ae(et(!r(c)&&r(l)?"span":"label"),{class:$(r(p)),"aria-controls":g.indeterminate?g.ariaControls:null,onClick:r(v)},{default:G(()=>{var w,b,S,E;return[k("span",{class:$(r(y))},[g.trueValue||g.falseValue||g.trueLabel||g.falseLabel?qe((_(),x("input",{key:0,id:r(a),"onUpdate:modelValue":O=>dn(d)?d.value=O:null,class:$(r(m).e("original")),type:"checkbox",indeterminate:g.indeterminate,name:g.name,tabindex:g.tabindex,disabled:r(s),"true-value":(b=(w=g.trueValue)!=null?w:g.trueLabel)!=null?b:!0,"false-value":(E=(S=g.falseValue)!=null?S:g.falseLabel)!=null?E:!1,onChange:r(h),onFocus:O=>i.value=!0,onBlur:O=>i.value=!1,onClick:Ae(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[Hs,r(d)]]):qe((_(),x("input",{key:1,id:r(a),"onUpdate:modelValue":O=>dn(d)?d.value=O:null,class:$(r(m).e("original")),type:"checkbox",indeterminate:g.indeterminate,disabled:r(s),value:r(f),name:g.name,tabindex:g.tabindex,onChange:r(h),onFocus:O=>i.value=!0,onBlur:O=>i.value=!1,onClick:Ae(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","disabled","value","name","tabindex","onChange","onFocus","onBlur","onClick"])),[[Hs,r(d)]]),k("span",{class:$(r(m).e("inner"))},null,2)],2),r(c)?(_(),x("span",{key:0,class:$(r(m).e("label"))},[Q(g.$slots,"default"),g.$slots.default?ee("v-if",!0):(_(),x(ze,{key:0},[ot(he(g.label),1)],64))],2)):ee("v-if",!0)]}),_:3},8,["class","aria-controls","onClick"]))}});var jI=ve(WI,[["__file","checkbox.vue"]]);const qI=T({name:"ElCheckboxButton"}),UI=T({...qI,props:th,emits:nh,setup(e){const t=e,n=Xt(),{isFocused:a,isChecked:l,isDisabled:o,checkboxButtonSize:s,model:i,actualValue:u,handleChange:c}=ah(t,n),d=Se(Bo,void 0),f=de("checkbox"),h=C(()=>{var m,p,y,g;const M=(p=(m=d==null?void 0:d.fill)==null?void 0:m.value)!=null?p:"";return{backgroundColor:M,borderColor:M,color:(g=(y=d==null?void 0:d.textColor)==null?void 0:y.value)!=null?g:"",boxShadow:M?`-1px 0 0 0 ${M}`:void 0}}),v=C(()=>[f.b("button"),f.bm("button",s.value),f.is("disabled",o.value),f.is("checked",l.value),f.is("focus",a.value)]);return(m,p)=>{var y,g,M,w;return _(),x("label",{class:$(r(v))},[m.trueValue||m.falseValue||m.trueLabel||m.falseLabel?qe((_(),x("input",{key:0,"onUpdate:modelValue":b=>dn(i)?i.value=b:null,class:$(r(f).be("button","original")),type:"checkbox",name:m.name,tabindex:m.tabindex,disabled:r(o),"true-value":(g=(y=m.trueValue)!=null?y:m.trueLabel)!=null?g:!0,"false-value":(w=(M=m.falseValue)!=null?M:m.falseLabel)!=null?w:!1,onChange:r(c),onFocus:b=>a.value=!0,onBlur:b=>a.value=!1,onClick:Ae(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[Hs,r(i)]]):qe((_(),x("input",{key:1,"onUpdate:modelValue":b=>dn(i)?i.value=b:null,class:$(r(f).be("button","original")),type:"checkbox",name:m.name,tabindex:m.tabindex,disabled:r(o),value:r(u),onChange:r(c),onFocus:b=>a.value=!0,onBlur:b=>a.value=!1,onClick:Ae(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","value","onChange","onFocus","onBlur","onClick"])),[[Hs,r(i)]]),m.$slots.default||m.label?(_(),x("span",{key:2,class:$(r(f).be("button","inner")),style:Ne(r(l)?r(h):void 0)},[Q(m.$slots,"default",{},()=>[ot(he(m.label),1)])],6)):ee("v-if",!0)],2)}}});var lh=ve(UI,[["__file","checkbox-button.vue"]]);const YI=pe({modelValue:{type:X(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:qt,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},...sn(["ariaLabel"])}),GI={[Ue]:e=>Ee(e),change:e=>Ee(e)},XI=T({name:"ElCheckboxGroup"}),ZI=T({...XI,props:YI,emits:GI,setup(e,{emit:t}){const n=e,a=de("checkbox"),{formItem:l}=gn(),{inputId:o,isLabeledByFormItem:s}=ea(n,{formItemContext:l}),i=async c=>{t(Ue,c),await Oe(),t("change",c)},u=C({get(){return n.modelValue},set(c){i(c)}});return it(Bo,{...ra(nn(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:u,changeEvent:i}),se(()=>n.modelValue,()=>{n.validateEvent&&(l==null||l.validate("change").catch(c=>void 0))}),(c,d)=>{var f;return _(),ae(et(c.tag),{id:r(o),class:$(r(a).b("group")),role:"group","aria-label":r(s)?void 0:c.ariaLabel||"checkbox-group","aria-labelledby":r(s)?(f=r(l))==null?void 0:f.labelId:void 0},{default:G(()=>[Q(c.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var oh=ve(ZI,[["__file","checkbox-group.vue"]]);const Qn=We(jI,{CheckboxButton:lh,CheckboxGroup:oh}),JI=Lt(lh),rh=Lt(oh),sh=pe({modelValue:{type:[String,Number,Boolean],default:void 0},size:qt,disabled:Boolean,label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),QI=pe({...sh,border:Boolean}),ih={[Ue]:e=>Ve(e)||Ie(e)||Et(e),[Ct]:e=>Ve(e)||Ie(e)||Et(e)},uh=Symbol("radioGroupKey"),ch=(e,t)=>{const n=A(),a=Se(uh,void 0),l=C(()=>!!a),o=C(()=>ua(e.value)?e.label:e.value),s=C({get(){return l.value?a.modelValue:e.modelValue},set(f){l.value?a.changeEvent(f):t&&t(Ue,f),n.value.checked=e.modelValue===o.value}}),i=jt(C(()=>a==null?void 0:a.size)),u=yn(C(()=>a==null?void 0:a.disabled)),c=A(!1),d=C(()=>u.value||l.value&&s.value!==o.value?-1:0);return al({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},C(()=>l.value&&ua(e.value))),{radioRef:n,isGroup:l,radioGroup:a,focus:c,size:i,disabled:u,tabIndex:d,modelValue:s,actualValue:o}},eP=T({name:"ElRadio"}),tP=T({...eP,props:QI,emits:ih,setup(e,{emit:t}){const n=e,a=de("radio"),{radioRef:l,radioGroup:o,focus:s,size:i,disabled:u,modelValue:c,actualValue:d}=ch(n,t);function f(){Oe(()=>t("change",c.value))}return(h,v)=>{var m;return _(),x("label",{class:$([r(a).b(),r(a).is("disabled",r(u)),r(a).is("focus",r(s)),r(a).is("bordered",h.border),r(a).is("checked",r(c)===r(d)),r(a).m(r(i))])},[k("span",{class:$([r(a).e("input"),r(a).is("disabled",r(u)),r(a).is("checked",r(c)===r(d))])},[qe(k("input",{ref_key:"radioRef",ref:l,"onUpdate:modelValue":p=>dn(c)?c.value=p:null,class:$(r(a).e("original")),value:r(d),name:h.name||((m=r(o))==null?void 0:m.name),disabled:r(u),checked:r(c)===r(d),type:"radio",onFocus:p=>s.value=!0,onBlur:p=>s.value=!1,onChange:f,onClick:Ae(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","checked","onFocus","onBlur","onClick"]),[[Lp,r(c)]]),k("span",{class:$(r(a).e("inner"))},null,2)],2),k("span",{class:$(r(a).e("label")),onKeydown:Ae(()=>{},["stop"])},[Q(h.$slots,"default",{},()=>[ot(he(h.label),1)])],42,["onKeydown"])],2)}}});var nP=ve(tP,[["__file","radio.vue"]]);const aP=pe({...sh}),lP=T({name:"ElRadioButton"}),oP=T({...lP,props:aP,setup(e){const t=e,n=de("radio"),{radioRef:a,focus:l,size:o,disabled:s,modelValue:i,radioGroup:u,actualValue:c}=ch(t),d=C(()=>({backgroundColor:(u==null?void 0:u.fill)||"",borderColor:(u==null?void 0:u.fill)||"",boxShadow:u!=null&&u.fill?`-1px 0 0 0 ${u.fill}`:"",color:(u==null?void 0:u.textColor)||""}));return(f,h)=>{var v;return _(),x("label",{class:$([r(n).b("button"),r(n).is("active",r(i)===r(c)),r(n).is("disabled",r(s)),r(n).is("focus",r(l)),r(n).bm("button",r(o))])},[qe(k("input",{ref_key:"radioRef",ref:a,"onUpdate:modelValue":m=>dn(i)?i.value=m:null,class:$(r(n).be("button","original-radio")),value:r(c),type:"radio",name:f.name||((v=r(u))==null?void 0:v.name),disabled:r(s),onFocus:m=>l.value=!0,onBlur:m=>l.value=!1,onClick:Ae(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","onFocus","onBlur","onClick"]),[[Lp,r(i)]]),k("span",{class:$(r(n).be("button","inner")),style:Ne(r(i)===r(c)?r(d):{}),onKeydown:Ae(()=>{},["stop"])},[Q(f.$slots,"default",{},()=>[ot(he(f.label),1)])],46,["onKeydown"])],2)}}});var dh=ve(oP,[["__file","radio-button.vue"]]);const rP=pe({id:{type:String,default:void 0},size:qt,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:void 0},fill:{type:String,default:""},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0},...sn(["ariaLabel"])}),sP=ih,iP=T({name:"ElRadioGroup"}),uP=T({...iP,props:rP,emits:sP,setup(e,{emit:t}){const n=e,a=de("radio"),l=rn(),o=A(),{formItem:s}=gn(),{inputId:i,isLabeledByFormItem:u}=ea(n,{formItemContext:s}),c=f=>{t(Ue,f),Oe(()=>t("change",f))};Ge(()=>{const f=o.value.querySelectorAll("[type=radio]"),h=f[0];!Array.from(f).some(v=>v.checked)&&h&&(h.tabIndex=0)});const d=C(()=>n.name||l.value);return it(uh,_t({...nn(n),changeEvent:c,name:d})),se(()=>n.modelValue,()=>{n.validateEvent&&(s==null||s.validate("change").catch(f=>void 0))}),(f,h)=>(_(),x("div",{id:r(i),ref_key:"radioGroupRef",ref:o,class:$(r(a).b("group")),role:"radiogroup","aria-label":r(u)?void 0:f.ariaLabel||"radio-group","aria-labelledby":r(u)?r(s).labelId:void 0},[Q(f.$slots,"default")],10,["id","aria-label","aria-labelledby"]))}});var fh=ve(uP,[["__file","radio-group.vue"]]);const ph=We(nP,{RadioButton:dh,RadioGroup:fh}),cP=Lt(fh),dP=Lt(dh);var fP=T({name:"NodeContent",setup(){return{ns:de("cascader-node")}},render(){const{ns:e}=this,{node:t,panel:n}=this.$parent,{data:a,label:l}=t,{renderLabelFn:o}=n;return Pe("span",{class:e.e("label")},o?o({node:t,data:a}):l)}});const Ld=Symbol(),pP=T({name:"ElCascaderNode",components:{ElCheckbox:Qn,ElRadio:ph,NodeContent:fP,ElIcon:xe,Check:Vo,Loading:ca,ArrowRight:En},props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(e,{emit:t}){const n=Se(Ld),a=de("cascader-node"),l=C(()=>n.isHoverMenu),o=C(()=>n.config.multiple),s=C(()=>n.config.checkStrictly),i=C(()=>{var E;return(E=n.checkedNodes[0])==null?void 0:E.uid}),u=C(()=>e.node.isDisabled),c=C(()=>e.node.isLeaf),d=C(()=>s.value&&!c.value||!u.value),f=C(()=>v(n.expandingNode)),h=C(()=>s.value&&n.checkedNodes.some(v)),v=E=>{var O;const{level:I,uid:N}=e.node;return((O=E==null?void 0:E.pathNodes[I-1])==null?void 0:O.uid)===N},m=()=>{f.value||n.expandNode(e.node)},p=E=>{const{node:O}=e;E!==O.checked&&n.handleCheckChange(O,E)},y=()=>{n.lazyLoad(e.node,()=>{c.value||m()})},g=E=>{l.value&&(M(),!c.value&&t("expand",E))},M=()=>{const{node:E}=e;!d.value||E.loading||(E.loaded?m():y())},w=()=>{l.value&&!c.value||(c.value&&!u.value&&!s.value&&!o.value?S(!0):M())},b=E=>{s.value?(p(E),e.node.loaded&&m()):S(E)},S=E=>{e.node.loaded?(p(E),!s.value&&m()):y()};return{panel:n,isHoverMenu:l,multiple:o,checkStrictly:s,checkedNodeId:i,isDisabled:u,isLeaf:c,expandable:d,inExpandingPath:f,inCheckedPath:h,ns:a,handleHoverExpand:g,handleExpand:M,handleClick:w,handleCheck:S,handleSelectCheck:b}}});function vP(e,t,n,a,l,o){const s=Je("el-checkbox"),i=Je("el-radio"),u=Je("check"),c=Je("el-icon"),d=Je("node-content"),f=Je("loading"),h=Je("arrow-right");return _(),x("li",{id:`${e.menuId}-${e.node.uid}`,role:"menuitem","aria-haspopup":!e.isLeaf,"aria-owns":e.isLeaf?null:e.menuId,"aria-expanded":e.inExpandingPath,tabindex:e.expandable?-1:void 0,class:$([e.ns.b(),e.ns.is("selectable",e.checkStrictly),e.ns.is("active",e.node.checked),e.ns.is("disabled",!e.expandable),e.inExpandingPath&&"in-active-path",e.inCheckedPath&&"in-checked-path"]),onMouseenter:e.handleHoverExpand,onFocus:e.handleHoverExpand,onClick:e.handleClick},[ee(" prefix "),e.multiple?(_(),ae(s,{key:0,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:e.isDisabled,onClick:Ae(()=>{},["stop"]),"onUpdate:modelValue":e.handleSelectCheck},null,8,["model-value","indeterminate","disabled","onClick","onUpdate:modelValue"])):e.checkStrictly?(_(),ae(i,{key:1,"model-value":e.checkedNodeId,label:e.node.uid,disabled:e.isDisabled,"onUpdate:modelValue":e.handleSelectCheck,onClick:Ae(()=>{},["stop"])},{default:G(()=>[ee(` - Add an empty element to avoid render label, - do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485 - `),k("span")]),_:1},8,["model-value","label","disabled","onUpdate:modelValue","onClick"])):e.isLeaf&&e.node.checked?(_(),ae(c,{key:2,class:$(e.ns.e("prefix"))},{default:G(()=>[q(u)]),_:1},8,["class"])):ee("v-if",!0),ee(" content "),q(d),ee(" postfix "),e.isLeaf?ee("v-if",!0):(_(),x(ze,{key:3},[e.node.loading?(_(),ae(c,{key:0,class:$([e.ns.is("loading"),e.ns.e("postfix")])},{default:G(()=>[q(f)]),_:1},8,["class"])):(_(),ae(c,{key:1,class:$(["arrow-right",e.ns.e("postfix")])},{default:G(()=>[q(h)]),_:1},8,["class"]))],64))],42,["id","aria-haspopup","aria-owns","aria-expanded","tabindex","onMouseenter","onFocus","onClick"])}var hP=ve(pP,[["render",vP],["__file","node.vue"]]);const mP=T({name:"ElCascaderMenu",components:{Loading:ca,ElIcon:xe,ElScrollbar:Oa,ElCascaderNode:hP},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=Ze(),n=de("cascader-menu"),{t:a}=ct(),l=rn();let o=null,s=null;const i=Se(Ld),u=A(null),c=C(()=>!e.nodes.length),d=C(()=>!i.initialLoaded),f=C(()=>`${l.value}-${e.index}`),h=y=>{o=y.target},v=y=>{if(!(!i.isHoverMenu||!o||!u.value))if(o.contains(y.target)){m();const g=t.vnode.el,{left:M}=g.getBoundingClientRect(),{offsetWidth:w,offsetHeight:b}=g,S=y.clientX-M,E=o.offsetTop,O=E+o.offsetHeight;u.value.innerHTML=` - - - `}else s||(s=window.setTimeout(p,i.config.hoverThreshold))},m=()=>{s&&(clearTimeout(s),s=null)},p=()=>{u.value&&(u.value.innerHTML="",m())};return{ns:n,panel:i,hoverZone:u,isEmpty:c,isLoading:d,menuId:f,t:a,handleExpand:h,handleMouseMove:v,clearHoverZone:p}}});function gP(e,t,n,a,l,o){const s=Je("el-cascader-node"),i=Je("loading"),u=Je("el-icon"),c=Je("el-scrollbar");return _(),ae(c,{key:e.menuId,tag:"ul",role:"menu",class:$(e.ns.b()),"wrap-class":e.ns.e("wrap"),"view-class":[e.ns.e("list"),e.ns.is("empty",e.isEmpty)],onMousemove:e.handleMouseMove,onMouseleave:e.clearHoverZone},{default:G(()=>{var d;return[(_(!0),x(ze,null,rt(e.nodes,f=>(_(),ae(s,{key:f.uid,node:f,"menu-id":e.menuId,onExpand:e.handleExpand},null,8,["node","menu-id","onExpand"]))),128)),e.isLoading?(_(),x("div",{key:0,class:$(e.ns.e("empty-text"))},[q(u,{size:"14",class:$(e.ns.is("loading"))},{default:G(()=>[q(i)]),_:1},8,["class"]),ot(" "+he(e.t("el.cascader.loading")),1)],2)):e.isEmpty?(_(),x("div",{key:1,class:$(e.ns.e("empty-text"))},[Q(e.$slots,"empty",{},()=>[ot(he(e.t("el.cascader.noData")),1)])],2)):(d=e.panel)!=null&&d.isHoverMenu?(_(),x("svg",{key:2,ref:"hoverZone",class:$(e.ns.e("hover-zone"))},null,2)):ee("v-if",!0)]}),_:3},8,["class","wrap-class","view-class","onMousemove","onMouseleave"])}var yP=ve(mP,[["render",gP],["__file","menu.vue"]]);const Rd=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),ya=e=>ig(e);let _P=0;const bP=e=>{const t=[e];let{parent:n}=e;for(;n;)t.unshift(n),n=n.parent;return t};let Uu=class Yu{constructor(t,n,a,l=!1){this.data=t,this.config=n,this.parent=a,this.root=l,this.uid=_P++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:o,label:s,children:i}=n,u=t[i],c=bP(this);this.level=l?0:a?a.level+1:1,this.value=t[o],this.label=t[s],this.pathNodes=c,this.pathValues=c.map(d=>d.value),this.pathLabels=c.map(d=>d.label),this.childrenData=u,this.children=(u||[]).map(d=>new Yu(d,n,this)),this.loaded=!n.lazy||this.isLeaf||!Hn(u)}get isDisabled(){const{data:t,parent:n,config:a}=this,{disabled:l,checkStrictly:o}=a;return(Qe(l)?l(t,this):!!t[l])||!o&&(n==null?void 0:n.isDisabled)}get isLeaf(){const{data:t,config:n,childrenData:a,loaded:l}=this,{lazy:o,leaf:s}=n,i=Qe(s)?s(t,this):t[s];return vt(i)?o&&!l?!1:!(Ee(a)&&a.length):!!i}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:n,children:a}=this,l=new Yu(t,this.config,this);return Ee(n)?n.push(t):this.childrenData=[t],a.push(l),l}calcText(t,n){const a=t?this.pathLabels.join(n):this.label;return this.text=a,a}broadcast(t,...n){const a=`onParent${ya(t)}`;this.children.forEach(l=>{l&&(l.broadcast(t,...n),l[a]&&l[a](...n))})}emit(t,...n){const{parent:a}=this,l=`onChild${ya(t)}`;a&&(a[l]&&a[l](...n),a.emit(t,...n))}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,n=t.filter(l=>!l.isDisabled),a=n.length?n.every(l=>l.checked):!1;this.setCheckState(a)}setCheckState(t){const n=this.children.length,a=this.children.reduce((l,o)=>{const s=o.checked?1:o.indeterminate?.5:0;return l+s},0);this.checked=this.loaded&&this.children.filter(l=>!l.isDisabled).every(l=>l.loaded&&l.checked)&&t,this.indeterminate=this.loaded&&a!==n&&a>0}doCheck(t){if(this.checked===t)return;const{checkStrictly:n,multiple:a}=this.config;n||!a?this.checked=t:(this.broadcast("check",t),this.setCheckState(t),this.emit("check"))}};const Gu=(e,t)=>e.reduce((n,a)=>(a.isLeaf?n.push(a):(!t&&n.push(a),n=n.concat(Gu(a.children,t))),n),[]);class f2{constructor(t,n){this.config=n;const a=(t||[]).map(l=>new Uu(l,this.config));this.nodes=a,this.allNodes=Gu(a,!1),this.leafNodes=Gu(a,!0)}getNodes(){return this.nodes}getFlattedNodes(t){return t?this.leafNodes:this.allNodes}appendNode(t,n){const a=n?n.appendChild(t):new Uu(t,this.config);n||this.nodes.push(a),this.allNodes.push(a),a.isLeaf&&this.leafNodes.push(a)}appendNodes(t,n){t.forEach(a=>this.appendNode(a,n))}getNodeByValue(t,n=!1){return!t&&t!==0?null:this.getFlattedNodes(n).find(l=>fn(l.value,t)||fn(l.pathValues,t))||null}getSameNode(t){return t&&this.getFlattedNodes(!1).find(({value:a,level:l})=>fn(t.value,a)&&t.level===l)||null}}const vh=pe({modelValue:{type:X([Number,String,Array])},options:{type:X(Array),default:()=>[]},props:{type:X(Object),default:()=>({})}}),wP={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:zt,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},CP=e=>C(()=>({...wP,...e.props})),p2=e=>{if(!e)return 0;const t=e.id.split("-");return Number(t[t.length-2])},SP=e=>{if(!e)return;const t=e.querySelector("input");t?t.click():w1(e)&&e.click()},kP=(e,t)=>{const n=t.slice(0),a=n.map(o=>o.uid),l=e.reduce((o,s)=>{const i=a.indexOf(s.uid);return i>-1&&(o.push(s),n.splice(i,1),a.splice(i,1)),o},[]);return l.push(...n),l},v2=e=>[...new Set(e)],xn=e=>!e&&e!==0?[]:Ee(e)?e:[e],EP=T({name:"ElCascaderPanel",components:{ElCascaderMenu:yP},props:{...vh,border:{type:Boolean,default:!0},renderLabel:Function},emits:[Ue,Ct,"close","expand-change"],setup(e,{emit:t,slots:n}){let a=!1;const l=de("cascader"),o=CP(e);let s=null;const i=A(!0),u=A([]),c=A(null),d=A([]),f=A(null),h=A([]),v=C(()=>o.value.expandTrigger==="hover"),m=C(()=>e.renderLabel||n.default),p=()=>{const{options:L}=e,F=o.value;a=!1,s=new f2(L,F),d.value=[s.getNodes()],F.lazy&&Hn(e.options)?(i.value=!1,y(void 0,U=>{U&&(s=new f2(U,F),d.value=[s.getNodes()]),i.value=!0,I(!1,!0)})):I(!1,!0)},y=(L,F)=>{const U=o.value;L=L||new Uu({},U,void 0,!0),L.loading=!0;const H=R=>{const D=L,B=D.root?null:D;R&&(s==null||s.appendNodes(R,B)),D.loading=!1,D.loaded=!0,D.childrenData=D.childrenData||[],F&&F(R)};U.lazyLoad(L,H)},g=(L,F)=>{var U;const{level:H}=L,R=d.value.slice(0,H);let D;L.isLeaf?D=L.pathNodes[H-2]:(D=L,R.push(L.children)),((U=f.value)==null?void 0:U.uid)!==(D==null?void 0:D.uid)&&(f.value=L,d.value=R,!F&&t("expand-change",(L==null?void 0:L.pathValues)||[]))},M=(L,F,U=!0)=>{const{checkStrictly:H,multiple:R}=o.value,D=h.value[0];a=!0,!R&&(D==null||D.doCheck(!1)),L.doCheck(F),O(),U&&!R&&!H&&t("close"),!U&&!R&&!H&&w(L)},w=L=>{L&&(L=L.parent,w(L),L&&g(L))},b=L=>s==null?void 0:s.getFlattedNodes(L),S=L=>{var F;return(F=b(L))==null?void 0:F.filter(U=>U.checked!==!1)},E=()=>{h.value.forEach(L=>L.doCheck(!1)),O(),d.value=d.value.slice(0,1),f.value=null,t("expand-change",[])},O=()=>{var L;const{checkStrictly:F,multiple:U}=o.value,H=h.value,R=S(!F),D=kP(H,R),B=D.map(V=>V.valueByOption);h.value=D,c.value=U?B:(L=B[0])!=null?L:null},I=(L=!1,F=!1)=>{const{modelValue:U}=e,{lazy:H,multiple:R,checkStrictly:D}=o.value,B=!D;if(!(!i.value||a||!F&&fn(U,c.value)))if(H&&!L){const K=v2(E_(xn(U))).map(W=>s==null?void 0:s.getNodeByValue(W)).filter(W=>!!W&&!W.loaded&&!W.loading);K.length?K.forEach(W=>{y(W,()=>I(!1,F))}):I(!0,F)}else{const V=R?xn(U):[U],K=v2(V.map(W=>s==null?void 0:s.getNodeByValue(W,B)));N(K,F),c.value=Ks(U)}},N=(L,F=!0)=>{const{checkStrictly:U}=o.value,H=h.value,R=L.filter(V=>!!V&&(U||V.isLeaf)),D=s==null?void 0:s.getSameNode(f.value),B=F&&D||R[0];B?B.pathNodes.forEach(V=>g(V,!0)):f.value=null,H.forEach(V=>V.doCheck(!1)),_t(R).forEach(V=>V.doCheck(!0)),h.value=R,Oe(z)},z=()=>{ut&&u.value.forEach(L=>{const F=L==null?void 0:L.$el;if(F){const U=F.querySelector(`.${l.namespace.value}-scrollbar__wrap`),H=F.querySelector(`.${l.b("node")}.${l.is("active")}`)||F.querySelector(`.${l.b("node")}.in-active-path`);pd(U,H)}})},P=L=>{const F=L.target,{code:U}=L;switch(U){case Ce.up:case Ce.down:{L.preventDefault();const H=U===Ce.up?-1:1;hs(C1(F,H,`.${l.b("node")}[tabindex="-1"]`));break}case Ce.left:{L.preventDefault();const H=u.value[p2(F)-1],R=H==null?void 0:H.$el.querySelector(`.${l.b("node")}[aria-expanded="true"]`);hs(R);break}case Ce.right:{L.preventDefault();const H=u.value[p2(F)+1],R=H==null?void 0:H.$el.querySelector(`.${l.b("node")}[tabindex="-1"]`);hs(R);break}case Ce.enter:case Ce.numpadEnter:SP(F);break}};return it(Ld,_t({config:o,expandingNode:f,checkedNodes:h,isHoverMenu:v,initialLoaded:i,renderLabelFn:m,lazyLoad:y,expandNode:g,handleCheckChange:M})),se([o,()=>e.options],p,{deep:!0,immediate:!0}),se(()=>e.modelValue,()=>{a=!1,I()},{deep:!0}),se(()=>c.value,L=>{fn(L,e.modelValue)||(t(Ue,L),t(Ct,L))}),ug(()=>u.value=[]),Ge(()=>!Hn(e.modelValue)&&I()),{ns:l,menuList:u,menus:d,checkedNodes:h,handleKeyDown:P,handleCheckChange:M,getFlattedNodes:b,getCheckedNodes:S,clearCheckedNodes:E,calculateCheckedValue:O,scrollToExpandingNode:z}}});function MP(e,t,n,a,l,o){const s=Je("el-cascader-menu");return _(),x("div",{class:$([e.ns.b("panel"),e.ns.is("bordered",e.border)]),onKeydown:e.handleKeyDown},[(_(!0),x(ze,null,rt(e.menus,(i,u)=>(_(),ae(s,{key:u,ref_for:!0,ref:c=>e.menuList[u]=c,index:u,nodes:[...i]},{empty:G(()=>[Q(e.$slots,"empty")]),_:2},1032,["index","nodes"]))),128))],42,["onKeydown"])}var xP=ve(EP,[["render",MP],["__file","index.vue"]]);const hh=We(xP),Fa=pe({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:xa},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),$P={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},TP=T({name:"ElTag"}),OP=T({...TP,props:Fa,emits:$P,setup(e,{emit:t}){const n=e,a=jt(),l=de("tag"),o=C(()=>{const{type:c,hit:d,effect:f,closable:h,round:v}=n;return[l.b(),l.is("closable",h),l.m(c||"primary"),l.m(a.value),l.m(f),l.is("hit",d),l.is("round",v)]}),s=c=>{t("close",c)},i=c=>{t("click",c)},u=c=>{var d,f,h;(h=(f=(d=c==null?void 0:c.component)==null?void 0:d.subTree)==null?void 0:f.component)!=null&&h.bum&&(c.component.subTree.component.bum=null)};return(c,d)=>c.disableTransitions?(_(),x("span",{key:0,class:$(r(o)),style:Ne({backgroundColor:c.color}),onClick:i},[k("span",{class:$(r(l).e("content"))},[Q(c.$slots,"default")],2),c.closable?(_(),ae(r(xe),{key:0,class:$(r(l).e("close")),onClick:Ae(s,["stop"])},{default:G(()=>[q(r(Xn))]),_:1},8,["class","onClick"])):ee("v-if",!0)],6)):(_(),ae(tn,{key:1,name:`${r(l).namespace.value}-zoom-in-center`,appear:"",onVnodeMounted:u},{default:G(()=>[k("span",{class:$(r(o)),style:Ne({backgroundColor:c.color}),onClick:i},[k("span",{class:$(r(l).e("content"))},[Q(c.$slots,"default")],2),c.closable?(_(),ae(r(xe),{key:0,class:$(r(l).e("close")),onClick:Ae(s,["stop"])},{default:G(()=>[q(r(Xn))]),_:1},8,["class","onClick"])):ee("v-if",!0)],6)]),_:3},8,["name"]))}});var NP=ve(OP,[["__file","tag.vue"]]);const _o=We(NP),IP=pe({...vh,size:qt,placeholder:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:{type:X(Function),default:(e,t)=>e.text.includes(t)},separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,maxCollapseTags:{type:Number,default:1},collapseTagsTooltip:{type:Boolean,default:!1},debounce:{type:Number,default:300},beforeFilter:{type:X(Function),default:()=>!0},placement:{type:X(String),values:Ga,default:"bottom-start"},fallbackPlacements:{type:X(Array),default:["bottom-start","bottom","top-start","top","right","left"]},popperClass:{type:String,default:""},teleported:Qt.teleported,tagType:{...Fa.type,default:"info"},tagEffect:{...Fa.effect,default:"light"},validateEvent:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},...Ao}),PP={[Ue]:e=>!0,[Ct]:e=>!0,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,visibleChange:e=>Et(e),expandChange:e=>!!e,removeTag:e=>!!e},Qa=new Map;if(ut){let e;document.addEventListener("mousedown",t=>e=t),document.addEventListener("mouseup",t=>{if(e){for(const n of Qa.values())for(const{documentHandler:a}of n)a(t,e);e=void 0}})}function h2(e,t){let n=[];return Ee(t.arg)?n=t.arg:Tn(t.arg)&&n.push(t.arg),function(a,l){const o=t.instance.popperRef,s=a.target,i=l==null?void 0:l.target,u=!t||!t.instance,c=!s||!i,d=e.contains(s)||e.contains(i),f=e===s,h=n.length&&n.some(m=>m==null?void 0:m.contains(s))||n.length&&n.includes(i),v=o&&(o.contains(s)||o.contains(i));u||c||d||f||h||v||t.value(a,l)}}const Ka={beforeMount(e,t){Qa.has(e)||Qa.set(e,[]),Qa.get(e).push({documentHandler:h2(e,t),bindingFn:t.value})},updated(e,t){Qa.has(e)||Qa.set(e,[]);const n=Qa.get(e),a=n.findIndex(o=>o.bindingFn===t.oldValue),l={documentHandler:h2(e,t),bindingFn:t.value};a>=0?n.splice(a,1,l):n.push(l)},unmounted(e){Qa.delete(e)}},zP="ElCascader",AP=T({name:zP}),VP=T({...AP,props:IP,emits:PP,setup(e,{expose:t,emit:n}){const a=e,l={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:J})=>{const{modifiersData:ue,placement:Y}=J;["right","left","bottom","top"].includes(Y)||(ue.arrow.x=35)},requires:["arrow"]}]},o=Wa();let s=0,i=0;const u=de("cascader"),c=de("input"),{t:d}=ct(),{form:f,formItem:h}=gn(),{valueOnClear:v}=wi(a),{isComposing:m,handleComposition:p}=Lr({afterComposition(J){var ue;const Y=(ue=J.target)==null?void 0:ue.value;Wt(Y)}}),y=A(null),g=A(null),M=A(null),w=A(null),b=A(null),S=A(!1),E=A(!1),O=A(!1),I=A(!1),N=A(""),z=A(""),P=A([]),L=A([]),F=A([]),U=C(()=>o.style),H=C(()=>a.disabled||(f==null?void 0:f.disabled)),R=C(()=>a.placeholder||d("el.cascader.placeholder")),D=C(()=>z.value||P.value.length>0||m.value?"":R.value),B=jt(),V=C(()=>B.value==="small"?"small":"default"),K=C(()=>!!a.props.multiple),W=C(()=>!a.filterable||K.value),Z=C(()=>K.value?z.value:N.value),j=C(()=>{var J;return((J=w.value)==null?void 0:J.checkedNodes)||[]}),ne=C(()=>!a.clearable||H.value||O.value||!E.value?!1:!!j.value.length),oe=C(()=>{const{showAllLevels:J,separator:ue}=a,Y=j.value;return Y.length?K.value?"":Y[0].calcText(J,ue):""}),ce=C(()=>(h==null?void 0:h.validateState)||""),te=C({get(){return Ks(a.modelValue)},set(J){const ue=J??v.value;n(Ue,ue),n(Ct,ue),a.validateEvent&&(h==null||h.validate("change").catch(Y=>void 0))}}),ie=C(()=>[u.b(),u.m(B.value),u.is("disabled",H.value),o.class]),fe=C(()=>[c.e("icon"),"icon-arrow-down",u.is("reverse",S.value)]),Me=C(()=>u.is("focus",S.value||I.value)),me=C(()=>{var J,ue;return(ue=(J=y.value)==null?void 0:J.popperRef)==null?void 0:ue.contentRef}),le=J=>{var ue,Y,ye;H.value||(J=J??!S.value,J!==S.value&&(S.value=J,(Y=(ue=g.value)==null?void 0:ue.input)==null||Y.setAttribute("aria-expanded",`${J}`),J?(we(),Oe((ye=w.value)==null?void 0:ye.scrollToExpandingNode)):a.filterable&&je(),n("visibleChange",J)))},we=()=>{Oe(()=>{var J;(J=y.value)==null||J.updatePopper()})},Le=()=>{O.value=!1},De=J=>{const{showAllLevels:ue,separator:Y}=a;return{node:J,key:J.uid,text:J.calcText(ue,Y),hitState:!1,closable:!H.value&&!J.isDisabled,isCollapseTag:!1}},Ye=J=>{var ue;const Y=J.node;Y.doCheck(!1),(ue=w.value)==null||ue.calculateCheckedValue(),n("removeTag",Y.valueByOption)},$e=()=>{if(!K.value)return;const J=j.value,ue=[],Y=[];if(J.forEach(ye=>Y.push(De(ye))),L.value=Y,J.length){J.slice(0,a.maxCollapseTags).forEach(lt=>ue.push(De(lt)));const ye=J.slice(a.maxCollapseTags),Fe=ye.length;Fe&&(a.collapseTags?ue.push({key:-1,text:`+ ${Fe}`,closable:!1,isCollapseTag:!0}):ye.forEach(lt=>ue.push(De(lt))))}P.value=ue},Te=()=>{var J,ue;const{filterMethod:Y,showAllLevels:ye,separator:Fe}=a,lt=(ue=(J=w.value)==null?void 0:J.getFlattedNodes(!a.props.checkStrictly))==null?void 0:ue.filter(Nt=>Nt.isDisabled?!1:(Nt.calcText(ye,Fe),Y(Nt,Z.value)));K.value&&(P.value.forEach(Nt=>{Nt.hitState=!1}),L.value.forEach(Nt=>{Nt.hitState=!1})),O.value=!0,F.value=lt,we()},ke=()=>{var J;let ue;O.value&&b.value?ue=b.value.$el.querySelector(`.${u.e("suggestion-item")}`):ue=(J=w.value)==null?void 0:J.$el.querySelector(`.${u.b("node")}[tabindex="-1"]`),ue&&(ue.focus(),!O.value&&ue.click())},He=()=>{var J,ue;const Y=(J=g.value)==null?void 0:J.input,ye=M.value,Fe=(ue=b.value)==null?void 0:ue.$el;if(!(!ut||!Y)){if(Fe){const lt=Fe.querySelector(`.${u.e("suggestion-list")}`);lt.style.minWidth=`${Y.offsetWidth}px`}if(ye){const{offsetHeight:lt}=ye,Nt=P.value.length>0?`${Math.max(lt,s)-2}px`:`${s}px`;Y.style.height=Nt,we()}}},Xe=J=>{var ue;return(ue=w.value)==null?void 0:ue.getCheckedNodes(J)},at=J=>{we(),n("expandChange",J)},nt=J=>{if(!m.value)switch(J.code){case Ce.enter:case Ce.numpadEnter:le();break;case Ce.down:le(!0),Oe(ke),J.preventDefault();break;case Ce.esc:S.value===!0&&(J.preventDefault(),J.stopPropagation(),le(!1));break;case Ce.tab:le(!1);break}},be=()=>{var J;(J=w.value)==null||J.clearCheckedNodes(),!S.value&&a.filterable&&je(),le(!1),n("clear")},je=()=>{const{value:J}=oe;N.value=J,z.value=J},ft=J=>{var ue,Y;const{checked:ye}=J;K.value?(ue=w.value)==null||ue.handleCheckChange(J,!ye,!1):(!ye&&((Y=w.value)==null||Y.handleCheckChange(J,!0,!1)),le(!1))},Ot=J=>{const ue=J.target,{code:Y}=J;switch(Y){case Ce.up:case Ce.down:{const ye=Y===Ce.up?-1:1;hs(C1(ue,ye,`.${u.e("suggestion-item")}[tabindex="-1"]`));break}case Ce.enter:case Ce.numpadEnter:ue.click();break}},bt=()=>{const J=P.value,ue=J[J.length-1];i=z.value?0:i+1,!(!ue||!i||a.collapseTags&&J.length>1)&&(ue.hitState?Ye(ue):ue.hitState=!0)},Pt=J=>{const ue=J.target,Y=u.e("search-input");ue.className===Y&&(I.value=!0),n("focus",J)},gt=J=>{I.value=!1,n("blur",J)},un=Rn(()=>{const{value:J}=Z;if(!J)return;const ue=a.beforeFilter(J);Tu(ue)?ue.then(Te).catch(()=>{}):ue!==!1?Te():Le()},a.debounce),Wt=(J,ue)=>{!S.value&&le(!0),!(ue!=null&&ue.isComposing)&&(J?un():Le())},re=J=>Number.parseFloat(rb(c.cssVarName("input-height"),J).value)-2;return se(O,we),se([j,H,()=>a.collapseTags],$e),se(P,()=>{Oe(()=>He())}),se(B,async()=>{await Oe();const J=g.value.input;s=re(J)||s,He()}),se(oe,je,{immediate:!0}),Ge(()=>{const J=g.value.input,ue=re(J);s=J.offsetHeight||ue,At(J,He)}),t({getCheckedNodes:Xe,cascaderPanelRef:w,togglePopperVisible:le,contentRef:me,presentText:oe}),(J,ue)=>(_(),ae(r(mn),{ref_key:"tooltipRef",ref:y,visible:S.value,teleported:J.teleported,"popper-class":[r(u).e("dropdown"),J.popperClass],"popper-options":l,"fallback-placements":J.fallbackPlacements,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,placement:J.placement,transition:`${r(u).namespace.value}-zoom-in-top`,effect:"light",pure:"",persistent:J.persistent,onHide:Le},{default:G(()=>[qe((_(),x("div",{class:$(r(ie)),style:Ne(r(U)),onClick:()=>le(r(W)?void 0:!0),onKeydown:nt,onMouseenter:Y=>E.value=!0,onMouseleave:Y=>E.value=!1},[q(r(Sn),{ref_key:"input",ref:g,modelValue:N.value,"onUpdate:modelValue":Y=>N.value=Y,placeholder:r(D),readonly:r(W),disabled:r(H),"validate-event":!1,size:r(B),class:$(r(Me)),tabindex:r(K)&&J.filterable&&!r(H)?-1:void 0,onCompositionstart:r(p),onCompositionupdate:r(p),onCompositionend:r(p),onFocus:Pt,onBlur:gt,onInput:Wt},{suffix:G(()=>[r(ne)?(_(),ae(r(xe),{key:"clear",class:$([r(c).e("icon"),"icon-circle-close"]),onClick:Ae(be,["stop"])},{default:G(()=>[q(r(Ta))]),_:1},8,["class","onClick"])):(_(),ae(r(xe),{key:"arrow-down",class:$(r(fe)),onClick:Ae(Y=>le(),["stop"])},{default:G(()=>[q(r($a))]),_:1},8,["class","onClick"]))]),_:1},8,["modelValue","onUpdate:modelValue","placeholder","readonly","disabled","size","class","tabindex","onCompositionstart","onCompositionupdate","onCompositionend"]),r(K)?(_(),x("div",{key:0,ref_key:"tagWrapper",ref:M,class:$([r(u).e("tags"),r(u).is("validate",!!r(ce))])},[(_(!0),x(ze,null,rt(P.value,Y=>(_(),ae(r(_o),{key:Y.key,type:J.tagType,size:r(V),effect:J.tagEffect,hit:Y.hitState,closable:Y.closable,"disable-transitions":"",onClose:ye=>Ye(Y)},{default:G(()=>[Y.isCollapseTag===!1?(_(),x("span",{key:0},he(Y.text),1)):(_(),ae(r(mn),{key:1,disabled:S.value||!J.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom",effect:"light"},{default:G(()=>[k("span",null,he(Y.text),1)]),content:G(()=>[k("div",{class:$(r(u).e("collapse-tags"))},[(_(!0),x(ze,null,rt(L.value.slice(J.maxCollapseTags),(ye,Fe)=>(_(),x("div",{key:Fe,class:$(r(u).e("collapse-tag"))},[(_(),ae(r(_o),{key:ye.key,class:"in-tooltip",type:J.tagType,size:r(V),effect:J.tagEffect,hit:ye.hitState,closable:ye.closable,"disable-transitions":"",onClose:lt=>Ye(ye)},{default:G(()=>[k("span",null,he(ye.text),1)]),_:2},1032,["type","size","effect","hit","closable","onClose"]))],2))),128))],2)]),_:2},1032,["disabled"]))]),_:2},1032,["type","size","effect","hit","closable","onClose"]))),128)),J.filterable&&!r(H)?qe((_(),x("input",{key:0,"onUpdate:modelValue":Y=>z.value=Y,type:"text",class:$(r(u).e("search-input")),placeholder:r(oe)?"":r(R),onInput:Y=>Wt(z.value,Y),onClick:Ae(Y=>le(!0),["stop"]),onKeydown:kt(bt,["delete"]),onCompositionstart:r(p),onCompositionupdate:r(p),onCompositionend:r(p),onFocus:Pt,onBlur:gt},null,42,["onUpdate:modelValue","placeholder","onInput","onClick","onKeydown","onCompositionstart","onCompositionupdate","onCompositionend"])),[[di,z.value]]):ee("v-if",!0)],2)):ee("v-if",!0)],46,["onClick","onMouseenter","onMouseleave"])),[[r(Ka),()=>le(!1),r(me)]])]),content:G(()=>[qe(q(r(hh),{ref_key:"cascaderPanelRef",ref:w,modelValue:r(te),"onUpdate:modelValue":Y=>dn(te)?te.value=Y:null,options:J.options,props:a.props,border:!1,"render-label":J.$slots.default,onExpandChange:at,onClose:Y=>J.$nextTick(()=>le(!1))},{empty:G(()=>[Q(J.$slots,"empty")]),_:3},8,["modelValue","onUpdate:modelValue","options","props","render-label","onClose"]),[[pt,!O.value]]),J.filterable?qe((_(),ae(r(Oa),{key:0,ref_key:"suggestionPanel",ref:b,tag:"ul",class:$(r(u).e("suggestion-panel")),"view-class":r(u).e("suggestion-list"),onKeydown:Ot},{default:G(()=>[F.value.length?(_(!0),x(ze,{key:0},rt(F.value,Y=>(_(),x("li",{key:Y.uid,class:$([r(u).e("suggestion-item"),r(u).is("checked",Y.checked)]),tabindex:-1,onClick:ye=>ft(Y)},[k("span",null,he(Y.text),1),Y.checked?(_(),ae(r(xe),{key:0},{default:G(()=>[q(r(Vo))]),_:1})):ee("v-if",!0)],10,["onClick"]))),128)):Q(J.$slots,"empty",{key:1},()=>[k("li",{class:$(r(u).e("empty-text"))},he(r(d)("el.cascader.noMatch")),3)])]),_:3},8,["class","view-class"])),[[pt,O.value]]):ee("v-if",!0)]),_:3},8,["visible","teleported","popper-class","fallback-placements","placement","transition","persistent"]))}});var LP=ve(VP,[["__file","cascader.vue"]]);const RP=We(LP),BP=pe({checked:Boolean,disabled:Boolean,type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"}}),HP={"update:checked":e=>Et(e),[Ct]:e=>Et(e)},DP=T({name:"ElCheckTag"}),FP=T({...DP,props:BP,emits:HP,setup(e,{emit:t}){const n=e,a=de("check-tag"),l=C(()=>n.disabled),o=C(()=>[a.b(),a.is("checked",n.checked),a.is("disabled",l.value),a.m(n.type||"primary")]),s=()=>{if(l.value)return;const i=!n.checked;t(Ct,i),t("update:checked",i)};return(i,u)=>(_(),x("span",{class:$(r(o)),onClick:s},[Q(i.$slots,"default")],2))}});var KP=ve(FP,[["__file","check-tag.vue"]]);const WP=We(KP),jP=pe({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:X([Number,Object]),default:()=>Vt({})},sm:{type:X([Number,Object]),default:()=>Vt({})},md:{type:X([Number,Object]),default:()=>Vt({})},lg:{type:X([Number,Object]),default:()=>Vt({})},xl:{type:X([Number,Object]),default:()=>Vt({})}}),mh=Symbol("rowContextKey"),qP=T({name:"ElCol"}),UP=T({...qP,props:jP,setup(e){const t=e,{gutter:n}=Se(mh,{gutter:C(()=>0)}),a=de("col"),l=C(()=>{const s={};return n.value&&(s.paddingLeft=s.paddingRight=`${n.value/2}px`),s}),o=C(()=>{const s=[];return["span","offset","pull","push"].forEach(c=>{const d=t[c];Ie(d)&&(c==="span"?s.push(a.b(`${t[c]}`)):d>0&&s.push(a.b(`${c}-${t[c]}`)))}),["xs","sm","md","lg","xl"].forEach(c=>{Ie(t[c])?s.push(a.b(`${c}-${t[c]}`)):ht(t[c])&&Object.entries(t[c]).forEach(([d,f])=>{s.push(d!=="span"?a.b(`${c}-${d}-${f}`):a.b(`${c}-${f}`))})}),n.value&&s.push(a.is("guttered")),[a.b(),s]});return(s,i)=>(_(),ae(et(s.tag),{class:$(r(o)),style:Ne(r(l))},{default:G(()=>[Q(s.$slots,"default")]),_:3},8,["class","style"]))}});var YP=ve(UP,[["__file","col.vue"]]);const GP=We(YP),m2=e=>Ie(e)||Ve(e)||Ee(e),XP=pe({accordion:Boolean,modelValue:{type:X([Array,String,Number]),default:()=>Vt([])}}),ZP={[Ue]:m2,[Ct]:m2},gh=Symbol("collapseContextKey"),JP=(e,t)=>{const n=A(wn(e.modelValue)),a=o=>{n.value=o;const s=e.accordion?n.value[0]:n.value;t(Ue,s),t(Ct,s)},l=o=>{if(e.accordion)a([n.value[0]===o?"":o]);else{const s=[...n.value],i=s.indexOf(o);i>-1?s.splice(i,1):s.push(o),a(s)}};return se(()=>e.modelValue,()=>n.value=wn(e.modelValue),{deep:!0}),it(gh,{activeNames:n,handleItemClick:l}),{activeNames:n,setActiveNames:a}},QP=()=>{const e=de("collapse");return{rootKls:C(()=>e.b())}},ez=T({name:"ElCollapse"}),tz=T({...ez,props:XP,emits:ZP,setup(e,{expose:t,emit:n}){const a=e,{activeNames:l,setActiveNames:o}=JP(a,n),{rootKls:s}=QP();return t({activeNames:l,setActiveNames:o}),(i,u)=>(_(),x("div",{class:$(r(s))},[Q(i.$slots,"default")],2))}});var nz=ve(tz,[["__file","collapse.vue"]]);const az=T({name:"ElCollapseTransition"}),lz=T({...az,setup(e){const t=de("collapse-transition"),n=l=>{l.style.maxHeight="",l.style.overflow=l.dataset.oldOverflow,l.style.paddingTop=l.dataset.oldPaddingTop,l.style.paddingBottom=l.dataset.oldPaddingBottom},a={beforeEnter(l){l.dataset||(l.dataset={}),l.dataset.oldPaddingTop=l.style.paddingTop,l.dataset.oldPaddingBottom=l.style.paddingBottom,l.style.height&&(l.dataset.elExistsHeight=l.style.height),l.style.maxHeight=0,l.style.paddingTop=0,l.style.paddingBottom=0},enter(l){requestAnimationFrame(()=>{l.dataset.oldOverflow=l.style.overflow,l.dataset.elExistsHeight?l.style.maxHeight=l.dataset.elExistsHeight:l.scrollHeight!==0?l.style.maxHeight=`${l.scrollHeight}px`:l.style.maxHeight=0,l.style.paddingTop=l.dataset.oldPaddingTop,l.style.paddingBottom=l.dataset.oldPaddingBottom,l.style.overflow="hidden"})},afterEnter(l){l.style.maxHeight="",l.style.overflow=l.dataset.oldOverflow},enterCancelled(l){n(l)},beforeLeave(l){l.dataset||(l.dataset={}),l.dataset.oldPaddingTop=l.style.paddingTop,l.dataset.oldPaddingBottom=l.style.paddingBottom,l.dataset.oldOverflow=l.style.overflow,l.style.maxHeight=`${l.scrollHeight}px`,l.style.overflow="hidden"},leave(l){l.scrollHeight!==0&&(l.style.maxHeight=0,l.style.paddingTop=0,l.style.paddingBottom=0)},afterLeave(l){n(l)},leaveCancelled(l){n(l)}};return(l,o)=>(_(),ae(tn,tt({name:r(t).b()},cg(a)),{default:G(()=>[Q(l.$slots,"default")]),_:3},16,["name"]))}});var oz=ve(lz,[["__file","collapse-transition.vue"]]);const Pi=We(oz),rz=pe({title:{type:String,default:""},name:{type:X([String,Number]),default:void 0},icon:{type:St,default:En},disabled:Boolean}),sz=e=>{const t=Se(gh),{namespace:n}=de("collapse"),a=A(!1),l=A(!1),o=Cd(),s=C(()=>o.current++),i=C(()=>{var h;return(h=e.name)!=null?h:`${n.value}-id-${o.prefix}-${r(s)}`}),u=C(()=>t==null?void 0:t.activeNames.value.includes(r(i)));return{focusing:a,id:s,isActive:u,handleFocus:()=>{setTimeout(()=>{l.value?l.value=!1:a.value=!0},50)},handleHeaderClick:()=>{e.disabled||(t==null||t.handleItemClick(r(i)),a.value=!1,l.value=!0)},handleEnterClick:()=>{t==null||t.handleItemClick(r(i))}}},iz=(e,{focusing:t,isActive:n,id:a})=>{const l=de("collapse"),o=C(()=>[l.b("item"),l.is("active",r(n)),l.is("disabled",e.disabled)]),s=C(()=>[l.be("item","header"),l.is("active",r(n)),{focusing:r(t)&&!e.disabled}]),i=C(()=>[l.be("item","arrow"),l.is("active",r(n))]),u=C(()=>l.be("item","wrap")),c=C(()=>l.be("item","content")),d=C(()=>l.b(`content-${r(a)}`)),f=C(()=>l.b(`head-${r(a)}`));return{arrowKls:i,headKls:s,rootKls:o,itemWrapperKls:u,itemContentKls:c,scopedContentId:d,scopedHeadId:f}},uz=T({name:"ElCollapseItem"}),cz=T({...uz,props:rz,setup(e,{expose:t}){const n=e,{focusing:a,id:l,isActive:o,handleFocus:s,handleHeaderClick:i,handleEnterClick:u}=sz(n),{arrowKls:c,headKls:d,rootKls:f,itemWrapperKls:h,itemContentKls:v,scopedContentId:m,scopedHeadId:p}=iz(n,{focusing:a,isActive:o,id:l});return t({isActive:o}),(y,g)=>(_(),x("div",{class:$(r(f))},[k("button",{id:r(p),class:$(r(d)),"aria-expanded":r(o),"aria-controls":r(m),"aria-describedby":r(m),tabindex:y.disabled?-1:0,type:"button",onClick:r(i),onKeydown:kt(Ae(r(u),["stop","prevent"]),["space","enter"]),onFocus:r(s),onBlur:M=>a.value=!1},[Q(y.$slots,"title",{},()=>[ot(he(y.title),1)]),Q(y.$slots,"icon",{isActive:r(o)},()=>[q(r(xe),{class:$(r(c))},{default:G(()=>[(_(),ae(et(y.icon)))]),_:1},8,["class"])])],42,["id","aria-expanded","aria-controls","aria-describedby","tabindex","onClick","onKeydown","onFocus","onBlur"]),q(r(Pi),null,{default:G(()=>[qe(k("div",{id:r(m),role:"region",class:$(r(h)),"aria-hidden":!r(o),"aria-labelledby":r(p)},[k("div",{class:$(r(v))},[Q(y.$slots,"default")],2)],10,["id","aria-hidden","aria-labelledby"]),[[pt,r(o)]])]),_:3})],2))}});var yh=ve(cz,[["__file","collapse-item.vue"]]);const dz=We(nz,{CollapseItem:yh}),fz=Lt(yh),pz=pe({color:{type:X(Object),required:!0},vertical:{type:Boolean,default:!1}});let cu=!1;function mr(e,t){if(!ut)return;const n=function(o){var s;(s=t.drag)==null||s.call(t,o)},a=function(o){var s;document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",a),document.removeEventListener("touchmove",n),document.removeEventListener("touchend",a),document.onselectstart=null,document.ondragstart=null,cu=!1,(s=t.end)==null||s.call(t,o)},l=function(o){var s;cu||(o.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",a),document.addEventListener("touchmove",n),document.addEventListener("touchend",a),cu=!0,(s=t.start)==null||s.call(t,o))};e.addEventListener("mousedown",l),e.addEventListener("touchstart",l,{passive:!1})}const vz=(e,t)=>{if(!ut||!e||!t)return!1;const n=e.getBoundingClientRect();let a;return t instanceof Element?a=t.getBoundingClientRect():a={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},n.topa.top&&n.right>a.left&&n.left{let t=0,n=e;for(;n;)t+=n.offsetTop,n=n.offsetParent;return t},Xu=(e,t)=>Math.abs(g2(e)-g2(t)),Bd=e=>{let t,n;return e.type==="touchend"?(n=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(n=e.touches[0].clientY,t=e.touches[0].clientX):(n=e.clientY,t=e.clientX),{clientX:t,clientY:n}},hz=e=>{const t=Ze(),{t:n}=ct(),a=Mt(),l=Mt(),o=C(()=>e.color.get("alpha")),s=C(()=>n("el.colorpicker.alphaLabel"));function i(f){var h;f.target!==a.value&&u(f),(h=a.value)==null||h.focus()}function u(f){if(!l.value||!a.value)return;const v=t.vnode.el.getBoundingClientRect(),{clientX:m,clientY:p}=Bd(f);if(e.vertical){let y=p-v.top;y=Math.max(a.value.offsetHeight/2,y),y=Math.min(y,v.height-a.value.offsetHeight/2),e.color.set("alpha",Math.round((y-a.value.offsetHeight/2)/(v.height-a.value.offsetHeight)*100))}else{let y=m-v.left;y=Math.max(a.value.offsetWidth/2,y),y=Math.min(y,v.width-a.value.offsetWidth/2),e.color.set("alpha",Math.round((y-a.value.offsetWidth/2)/(v.width-a.value.offsetWidth)*100))}}function c(f){const{code:h,shiftKey:v}=f,m=v?10:1;switch(h){case Ce.left:case Ce.down:f.preventDefault(),f.stopPropagation(),d(-m);break;case Ce.right:case Ce.up:f.preventDefault(),f.stopPropagation(),d(m);break}}function d(f){let h=o.value+f;h=h<0?0:h>100?100:h,e.color.set("alpha",h)}return{thumb:a,bar:l,alpha:o,alphaLabel:s,handleDrag:u,handleClick:i,handleKeydown:c}},mz=(e,{bar:t,thumb:n,handleDrag:a})=>{const l=Ze(),o=de("color-alpha-slider"),s=A(0),i=A(0),u=A();function c(){if(!n.value||e.vertical)return 0;const M=l.vnode.el,w=e.color.get("alpha");return M?Math.round(w*(M.offsetWidth-n.value.offsetWidth/2)/100):0}function d(){if(!n.value)return 0;const M=l.vnode.el;if(!e.vertical)return 0;const w=e.color.get("alpha");return M?Math.round(w*(M.offsetHeight-n.value.offsetHeight/2)/100):0}function f(){if(e.color&&e.color.value){const{r:M,g:w,b}=e.color.toRgb();return`linear-gradient(to right, rgba(${M}, ${w}, ${b}, 0) 0%, rgba(${M}, ${w}, ${b}, 1) 100%)`}return""}function h(){s.value=c(),i.value=d(),u.value=f()}Ge(()=>{if(!t.value||!n.value)return;const M={drag:w=>{a(w)},end:w=>{a(w)}};mr(t.value,M),mr(n.value,M),h()}),se(()=>e.color.get("alpha"),()=>h()),se(()=>e.color.value,()=>h());const v=C(()=>[o.b(),o.is("vertical",e.vertical)]),m=C(()=>o.e("bar")),p=C(()=>o.e("thumb")),y=C(()=>({background:u.value})),g=C(()=>({left:Rt(s.value),top:Rt(i.value)}));return{rootKls:v,barKls:m,barStyle:y,thumbKls:p,thumbStyle:g,update:h}},gz="ElColorAlphaSlider",yz=T({name:gz}),_z=T({...yz,props:pz,setup(e,{expose:t}){const n=e,{alpha:a,alphaLabel:l,bar:o,thumb:s,handleDrag:i,handleClick:u,handleKeydown:c}=hz(n),{rootKls:d,barKls:f,barStyle:h,thumbKls:v,thumbStyle:m,update:p}=mz(n,{bar:o,thumb:s,handleDrag:i});return t({update:p,bar:o,thumb:s}),(y,g)=>(_(),x("div",{class:$(r(d))},[k("div",{ref_key:"bar",ref:o,class:$(r(f)),style:Ne(r(h)),onClick:r(u)},null,14,["onClick"]),k("div",{ref_key:"thumb",ref:s,class:$(r(v)),style:Ne(r(m)),"aria-label":r(l),"aria-valuenow":r(a),"aria-orientation":y.vertical?"vertical":"horizontal","aria-valuemin":"0","aria-valuemax":"100",role:"slider",tabindex:"0",onKeydown:r(c)},null,46,["aria-label","aria-valuenow","aria-orientation","onKeydown"])],2))}});var bz=ve(_z,[["__file","alpha-slider.vue"]]);const wz=T({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(e){const t=de("color-hue-slider"),n=Ze(),a=A(),l=A(),o=A(0),s=A(0),i=C(()=>e.color.get("hue"));se(()=>i.value,()=>{h()});function u(v){v.target!==a.value&&c(v)}function c(v){if(!l.value||!a.value)return;const p=n.vnode.el.getBoundingClientRect(),{clientX:y,clientY:g}=Bd(v);let M;if(e.vertical){let w=g-p.top;w=Math.min(w,p.height-a.value.offsetHeight/2),w=Math.max(a.value.offsetHeight/2,w),M=Math.round((w-a.value.offsetHeight/2)/(p.height-a.value.offsetHeight)*360)}else{let w=y-p.left;w=Math.min(w,p.width-a.value.offsetWidth/2),w=Math.max(a.value.offsetWidth/2,w),M=Math.round((w-a.value.offsetWidth/2)/(p.width-a.value.offsetWidth)*360)}e.color.set("hue",M)}function d(){if(!a.value)return 0;const v=n.vnode.el;if(e.vertical)return 0;const m=e.color.get("hue");return v?Math.round(m*(v.offsetWidth-a.value.offsetWidth/2)/360):0}function f(){if(!a.value)return 0;const v=n.vnode.el;if(!e.vertical)return 0;const m=e.color.get("hue");return v?Math.round(m*(v.offsetHeight-a.value.offsetHeight/2)/360):0}function h(){o.value=d(),s.value=f()}return Ge(()=>{if(!l.value||!a.value)return;const v={drag:m=>{c(m)},end:m=>{c(m)}};mr(l.value,v),mr(a.value,v),h()}),{bar:l,thumb:a,thumbLeft:o,thumbTop:s,hueValue:i,handleClick:u,update:h,ns:t}}});function Cz(e,t,n,a,l,o){return _(),x("div",{class:$([e.ns.b(),e.ns.is("vertical",e.vertical)])},[k("div",{ref:"bar",class:$(e.ns.e("bar")),onClick:e.handleClick},null,10,["onClick"]),k("div",{ref:"thumb",class:$(e.ns.e("thumb")),style:Ne({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}var Sz=ve(wz,[["render",Cz],["__file","hue-slider.vue"]]);const kz=pe({modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:qt,popperClass:{type:String,default:""},tabindex:{type:[String,Number],default:0},teleported:Qt.teleported,predefine:{type:X(Array)},validateEvent:{type:Boolean,default:!0},...sn(["ariaLabel"])}),Ez={[Ue]:e=>Ve(e)||Zt(e),[Ct]:e=>Ve(e)||Zt(e),activeChange:e=>Ve(e)||Zt(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},_h=Symbol("colorPickerContextKey"),y2=function(e,t,n){return[e,t*n/((e=(2-t)*n)<1?e:2-e)||0,e/2]},Mz=function(e){return Ve(e)&&e.includes(".")&&Number.parseFloat(e)===1},xz=function(e){return Ve(e)&&e.includes("%")},oo=function(e,t){Mz(e)&&(e="100%");const n=xz(e);return e=Math.min(t,Math.max(0,Number.parseFloat(`${e}`))),n&&(e=Number.parseInt(`${e*t}`,10)/100),Math.abs(e-t)<1e-6?1:e%t/Number.parseFloat(t)},_2={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},_s=e=>{e=Math.min(Math.round(e),255);const t=Math.floor(e/16),n=e%16;return`${_2[t]||t}${_2[n]||n}`},b2=function({r:e,g:t,b:n}){return Number.isNaN(+e)||Number.isNaN(+t)||Number.isNaN(+n)?"":`#${_s(e)}${_s(t)}${_s(n)}`},du={A:10,B:11,C:12,D:13,E:14,F:15},gl=function(e){return e.length===2?(du[e[0].toUpperCase()]||+e[0])*16+(du[e[1].toUpperCase()]||+e[1]):du[e[1].toUpperCase()]||+e[1]},$z=function(e,t,n){t=t/100,n=n/100;let a=t;const l=Math.max(n,.01);n*=2,t*=n<=1?n:2-n,a*=l<=1?l:2-l;const o=(n+t)/2,s=n===0?2*a/(l+a):2*t/(n+t);return{h:e,s:s*100,v:o*100}},w2=(e,t,n)=>{e=oo(e,255),t=oo(t,255),n=oo(n,255);const a=Math.max(e,t,n),l=Math.min(e,t,n);let o;const s=a,i=a-l,u=a===0?0:i/a;if(a===l)o=0;else{switch(a){case e:{o=(t-n)/i+(t{this._hue=Math.max(0,Math.min(360,a)),this._saturation=Math.max(0,Math.min(100,l)),this._value=Math.max(0,Math.min(100,o)),this.doOnChange()};if(t.includes("hsl")){const a=t.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter(l=>l!=="").map((l,o)=>o>2?Number.parseFloat(l):Number.parseInt(l,10));if(a.length===4?this._alpha=Number.parseFloat(a[3])*100:a.length===3&&(this._alpha=100),a.length>=3){const{h:l,s:o,v:s}=$z(a[0],a[1],a[2]);n(l,o,s)}}else if(t.includes("hsv")){const a=t.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter(l=>l!=="").map((l,o)=>o>2?Number.parseFloat(l):Number.parseInt(l,10));a.length===4?this._alpha=Number.parseFloat(a[3])*100:a.length===3&&(this._alpha=100),a.length>=3&&n(a[0],a[1],a[2])}else if(t.includes("rgb")){const a=t.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter(l=>l!=="").map((l,o)=>o>2?Number.parseFloat(l):Number.parseInt(l,10));if(a.length===4?this._alpha=Number.parseFloat(a[3])*100:a.length===3&&(this._alpha=100),a.length>=3){const{h:l,s:o,v:s}=w2(a[0],a[1],a[2]);n(l,o,s)}}else if(t.includes("#")){const a=t.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(a))return;let l,o,s;a.length===3?(l=gl(a[0]+a[0]),o=gl(a[1]+a[1]),s=gl(a[2]+a[2])):(a.length===6||a.length===8)&&(l=gl(a.slice(0,2)),o=gl(a.slice(2,4)),s=gl(a.slice(4,6))),a.length===8?this._alpha=gl(a.slice(6))/255*100:(a.length===3||a.length===6)&&(this._alpha=100);const{h:i,s:u,v:c}=w2(l,o,s);n(i,u,c)}}compare(t){return Math.abs(t._hue-this._hue)<2&&Math.abs(t._saturation-this._saturation)<1&&Math.abs(t._value-this._value)<1&&Math.abs(t._alpha-this._alpha)<1}doOnChange(){const{_hue:t,_saturation:n,_value:a,_alpha:l,format:o}=this;if(this.enableAlpha)switch(o){case"hsl":{const s=y2(t,n/100,a/100);this.value=`hsla(${t}, ${Math.round(s[1]*100)}%, ${Math.round(s[2]*100)}%, ${this.get("alpha")/100})`;break}case"hsv":{this.value=`hsva(${t}, ${Math.round(n)}%, ${Math.round(a)}%, ${this.get("alpha")/100})`;break}case"hex":{this.value=`${b2(qo(t,n,a))}${_s(l*255/100)}`;break}default:{const{r:s,g:i,b:u}=qo(t,n,a);this.value=`rgba(${s}, ${i}, ${u}, ${this.get("alpha")/100})`}}else switch(o){case"hsl":{const s=y2(t,n/100,a/100);this.value=`hsl(${t}, ${Math.round(s[1]*100)}%, ${Math.round(s[2]*100)}%)`;break}case"hsv":{this.value=`hsv(${t}, ${Math.round(n)}%, ${Math.round(a)}%)`;break}case"rgb":{const{r:s,g:i,b:u}=qo(t,n,a);this.value=`rgb(${s}, ${i}, ${u})`;break}default:this.value=b2(qo(t,n,a))}}}const Tz=T({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0},enableAlpha:{type:Boolean,required:!0}},setup(e){const t=de("color-predefine"),{currentColor:n}=Se(_h),a=A(o(e.colors,e.color));se(()=>n.value,s=>{const i=new ar;i.fromString(s),a.value.forEach(u=>{u.selected=i.compare(u)})}),on(()=>{a.value=o(e.colors,e.color)});function l(s){e.color.fromString(e.colors[s])}function o(s,i){return s.map(u=>{const c=new ar;return c.enableAlpha=e.enableAlpha,c.format="rgba",c.fromString(u),c.selected=c.value===i.value,c})}return{rgbaColors:a,handleSelect:l,ns:t}}});function Oz(e,t,n,a,l,o){return _(),x("div",{class:$(e.ns.b())},[k("div",{class:$(e.ns.e("colors"))},[(_(!0),x(ze,null,rt(e.rgbaColors,(s,i)=>(_(),x("div",{key:e.colors[i],class:$([e.ns.e("color-selector"),e.ns.is("alpha",s._alpha<100),{selected:s.selected}]),onClick:u=>e.handleSelect(i)},[k("div",{style:Ne({backgroundColor:s.value})},null,4)],10,["onClick"]))),128))],2)],2)}var Nz=ve(Tz,[["render",Oz],["__file","predefine.vue"]]);const Iz=T({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(e){const t=de("color-svpanel"),n=Ze(),a=A(0),l=A(0),o=A("hsl(0, 100%, 50%)"),s=C(()=>{const c=e.color.get("hue"),d=e.color.get("value");return{hue:c,value:d}});function i(){const c=e.color.get("saturation"),d=e.color.get("value"),f=n.vnode.el,{clientWidth:h,clientHeight:v}=f;l.value=c*h/100,a.value=(100-d)*v/100,o.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}function u(c){const f=n.vnode.el.getBoundingClientRect(),{clientX:h,clientY:v}=Bd(c);let m=h-f.left,p=v-f.top;m=Math.max(0,m),m=Math.min(m,f.width),p=Math.max(0,p),p=Math.min(p,f.height),l.value=m,a.value=p,e.color.set({saturation:m/f.width*100,value:100-p/f.height*100})}return se(()=>s.value,()=>{i()}),Ge(()=>{mr(n.vnode.el,{drag:c=>{u(c)},end:c=>{u(c)}}),i()}),{cursorTop:a,cursorLeft:l,background:o,colorValue:s,handleDrag:u,update:i,ns:t}}});function Pz(e,t,n,a,l,o){return _(),x("div",{class:$(e.ns.b()),style:Ne({backgroundColor:e.background})},[k("div",{class:$(e.ns.e("white"))},null,2),k("div",{class:$(e.ns.e("black"))},null,2),k("div",{class:$(e.ns.e("cursor")),style:Ne({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},[k("div")],6)],6)}var zz=ve(Iz,[["render",Pz],["__file","sv-panel.vue"]]);const Az=T({name:"ElColorPicker"}),Vz=T({...Az,props:kz,emits:Ez,setup(e,{expose:t,emit:n}){const a=e,{t:l}=ct(),o=de("color"),{formItem:s}=gn(),i=jt(),u=yn(),{inputId:c,isLabeledByFormItem:d}=ea(a,{formItemContext:s}),f=A(),h=A(),v=A(),m=A(),p=A(),y=A(),{isFocused:g,handleFocus:M,handleBlur:w}=fl(p,{beforeFocus(){return u.value},beforeBlur(fe){var Me;return(Me=m.value)==null?void 0:Me.isFocusInsideContent(fe)},afterBlur(){H(!1),V()}});let b=!0;const S=_t(new ar({enableAlpha:a.showAlpha,format:a.colorFormat||"",value:a.modelValue})),E=A(!1),O=A(!1),I=A(""),N=C(()=>!a.modelValue&&!O.value?"transparent":U(S,a.showAlpha)),z=C(()=>!a.modelValue&&!O.value?"":S.value),P=C(()=>d.value?void 0:a.ariaLabel||l("el.colorpicker.defaultLabel")),L=C(()=>d.value?s==null?void 0:s.labelId:void 0),F=C(()=>[o.b("picker"),o.is("disabled",u.value),o.bm("picker",i.value),o.is("focused",g.value)]);function U(fe,Me){if(!(fe instanceof ar))throw new TypeError("color should be instance of _color Class");const{r:me,g:le,b:we}=fe.toRgb();return Me?`rgba(${me}, ${le}, ${we}, ${fe.get("alpha")/100})`:`rgb(${me}, ${le}, ${we})`}function H(fe){E.value=fe}const R=Rn(H,100,{leading:!0});function D(){u.value||H(!0)}function B(){R(!1),V()}function V(){Oe(()=>{a.modelValue?S.fromString(a.modelValue):(S.value="",Oe(()=>{O.value=!1}))})}function K(){u.value||(E.value&&V(),R(!E.value))}function W(){S.fromString(I.value)}function Z(){const fe=S.value;n(Ue,fe),n("change",fe),a.validateEvent&&(s==null||s.validate("change").catch(Me=>void 0)),R(!1),Oe(()=>{const Me=new ar({enableAlpha:a.showAlpha,format:a.colorFormat||"",value:a.modelValue});S.compare(Me)||V()})}function j(){R(!1),n(Ue,null),n("change",null),a.modelValue!==null&&a.validateEvent&&(s==null||s.validate("change").catch(fe=>void 0)),V()}function ne(){E.value&&(B(),g.value&&te())}function oe(fe){fe.preventDefault(),fe.stopPropagation(),H(!1),V()}function ce(fe){switch(fe.code){case Ce.enter:case Ce.numpadEnter:case Ce.space:fe.preventDefault(),fe.stopPropagation(),D(),y.value.focus();break;case Ce.esc:oe(fe);break}}function te(){p.value.focus()}function ie(){p.value.blur()}return Ge(()=>{a.modelValue&&(I.value=z.value)}),se(()=>a.modelValue,fe=>{fe?fe&&fe!==S.value&&(b=!1,S.fromString(fe)):O.value=!1}),se(()=>[a.colorFormat,a.showAlpha],()=>{S.enableAlpha=a.showAlpha,S.format=a.colorFormat||S.format,S.doOnChange(),n(Ue,S.value)}),se(()=>z.value,fe=>{I.value=fe,b&&n("activeChange",fe),b=!0}),se(()=>S.value,()=>{!a.modelValue&&!O.value&&(O.value=!0)}),se(()=>E.value,()=>{Oe(()=>{var fe,Me,me;(fe=f.value)==null||fe.update(),(Me=h.value)==null||Me.update(),(me=v.value)==null||me.update()})}),it(_h,{currentColor:z}),t({color:S,show:D,hide:B,focus:te,blur:ie}),(fe,Me)=>(_(),ae(r(mn),{ref_key:"popper",ref:m,visible:E.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[r(o).be("picker","panel"),r(o).b("dropdown"),fe.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",teleported:fe.teleported,transition:`${r(o).namespace.value}-zoom-in-top`,persistent:"",onHide:me=>H(!1)},{content:G(()=>[qe((_(),x("div",{onKeydown:kt(oe,["esc"])},[k("div",{class:$(r(o).be("dropdown","main-wrapper"))},[q(Sz,{ref_key:"hue",ref:f,class:"hue-slider",color:r(S),vertical:""},null,8,["color"]),q(zz,{ref_key:"sv",ref:h,color:r(S)},null,8,["color"])],2),fe.showAlpha?(_(),ae(bz,{key:0,ref_key:"alpha",ref:v,color:r(S)},null,8,["color"])):ee("v-if",!0),fe.predefine?(_(),ae(Nz,{key:1,ref:"predefine","enable-alpha":fe.showAlpha,color:r(S),colors:fe.predefine},null,8,["enable-alpha","color","colors"])):ee("v-if",!0),k("div",{class:$(r(o).be("dropdown","btns"))},[k("span",{class:$(r(o).be("dropdown","value"))},[q(r(Sn),{ref_key:"inputRef",ref:y,modelValue:I.value,"onUpdate:modelValue":me=>I.value=me,"validate-event":!1,size:"small",onKeyup:kt(W,["enter"]),onBlur:W},null,8,["modelValue","onUpdate:modelValue","onKeyup"])],2),q(r(en),{class:$(r(o).be("dropdown","link-btn")),text:"",size:"small",onClick:j},{default:G(()=>[ot(he(r(l)("el.colorpicker.clear")),1)]),_:1},8,["class"]),q(r(en),{plain:"",size:"small",class:$(r(o).be("dropdown","btn")),onClick:Z},{default:G(()=>[ot(he(r(l)("el.colorpicker.confirm")),1)]),_:1},8,["class"])],2)],40,["onKeydown"])),[[r(Ka),ne,p.value]])]),default:G(()=>[k("div",tt({id:r(c),ref_key:"triggerRef",ref:p},fe.$attrs,{class:r(F),role:"button","aria-label":r(P),"aria-labelledby":r(L),"aria-description":r(l)("el.colorpicker.description",{color:fe.modelValue||""}),"aria-disabled":r(u),tabindex:r(u)?-1:fe.tabindex,onKeydown:ce,onFocus:r(M),onBlur:r(w)}),[r(u)?(_(),x("div",{key:0,class:$(r(o).be("picker","mask"))},null,2)):ee("v-if",!0),k("div",{class:$(r(o).be("picker","trigger")),onClick:K},[k("span",{class:$([r(o).be("picker","color"),r(o).is("alpha",fe.showAlpha)])},[k("span",{class:$(r(o).be("picker","color-inner")),style:Ne({backgroundColor:r(N)})},[qe(q(r(xe),{class:$([r(o).be("picker","icon"),r(o).is("icon-arrow-down")])},{default:G(()=>[q(r($a))]),_:1},8,["class"]),[[pt,fe.modelValue||O.value]]),qe(q(r(xe),{class:$([r(o).be("picker","empty"),r(o).is("icon-close")])},{default:G(()=>[q(r(Xn))]),_:1},8,["class"]),[[pt,!fe.modelValue&&!O.value]])],6)],2)],2)],16,["id","aria-label","aria-labelledby","aria-description","aria-disabled","tabindex","onFocus","onBlur"])]),_:1},8,["visible","popper-class","teleported","transition","onHide"]))}});var Lz=ve(Vz,[["__file","color-picker.vue"]]);const Rz=We(Lz),Bz=pe({a11y:{type:Boolean,default:!0},locale:{type:X(Object)},size:qt,button:{type:X(Object)},experimentalFeatures:{type:X(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:X(Object)},zIndex:Number,namespace:{type:String,default:"el"},...Ao}),aa={},Hz=T({name:"ElConfigProvider",props:Bz,setup(e,{slots:t}){se(()=>e.message,a=>{Object.assign(aa,a??{})},{immediate:!0,deep:!0});const n=dd(e);return()=>Q(t,"default",{config:n==null?void 0:n.value})}}),Dz=We(Hz),Fz=T({name:"ElContainer"}),Kz=T({...Fz,props:{direction:{type:String}},setup(e){const t=e,n=Xt(),a=de("container"),l=C(()=>t.direction==="vertical"?!0:t.direction==="horizontal"?!1:n&&n.default?n.default().some(s=>{const i=s.type.name;return i==="ElHeader"||i==="ElFooter"}):!1);return(o,s)=>(_(),x("section",{class:$([r(a).b(),r(a).is("vertical",r(l))])},[Q(o.$slots,"default")],2))}});var Wz=ve(Kz,[["__file","container.vue"]]);const jz=T({name:"ElAside"}),qz=T({...jz,props:{width:{type:String,default:null}},setup(e){const t=e,n=de("aside"),a=C(()=>t.width?n.cssVarBlock({width:t.width}):{});return(l,o)=>(_(),x("aside",{class:$(r(n).b()),style:Ne(r(a))},[Q(l.$slots,"default")],6))}});var bh=ve(qz,[["__file","aside.vue"]]);const Uz=T({name:"ElFooter"}),Yz=T({...Uz,props:{height:{type:String,default:null}},setup(e){const t=e,n=de("footer"),a=C(()=>t.height?n.cssVarBlock({height:t.height}):{});return(l,o)=>(_(),x("footer",{class:$(r(n).b()),style:Ne(r(a))},[Q(l.$slots,"default")],6))}});var wh=ve(Yz,[["__file","footer.vue"]]);const Gz=T({name:"ElHeader"}),Xz=T({...Gz,props:{height:{type:String,default:null}},setup(e){const t=e,n=de("header"),a=C(()=>t.height?n.cssVarBlock({height:t.height}):{});return(l,o)=>(_(),x("header",{class:$(r(n).b()),style:Ne(r(a))},[Q(l.$slots,"default")],6))}});var Ch=ve(Xz,[["__file","header.vue"]]);const Zz=T({name:"ElMain"}),Jz=T({...Zz,setup(e){const t=de("main");return(n,a)=>(_(),x("main",{class:$(r(t).b())},[Q(n.$slots,"default")],2))}});var Sh=ve(Jz,[["__file","main.vue"]]);const Qz=We(Wz,{Aside:bh,Footer:wh,Header:Ch,Main:Sh}),eA=Lt(bh),tA=Lt(wh),nA=Lt(Ch),aA=Lt(Sh);var bs={exports:{}},lA=bs.exports,C2;function oA(){return C2||(C2=1,function(e,t){(function(n,a){e.exports=a()})(lA,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},a=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,l=/\d/,o=/\d\d/,s=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,u={},c=function(y){return(y=+y)+(y>68?1900:2e3)},d=function(y){return function(g){this[y]=+g}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(y){(this.zone||(this.zone={})).offset=function(g){if(!g||g==="Z")return 0;var M=g.match(/([+-]|\d\d)/g),w=60*M[1]+(+M[2]||0);return w===0?0:M[0]==="+"?-w:w}(y)}],h=function(y){var g=u[y];return g&&(g.indexOf?g:g.s.concat(g.f))},v=function(y,g){var M,w=u.meridiem;if(w){for(var b=1;b<=24;b+=1)if(y.indexOf(w(b,0,g))>-1){M=b>12;break}}else M=y===(g?"pm":"PM");return M},m={A:[i,function(y){this.afternoon=v(y,!1)}],a:[i,function(y){this.afternoon=v(y,!0)}],Q:[l,function(y){this.month=3*(y-1)+1}],S:[l,function(y){this.milliseconds=100*+y}],SS:[o,function(y){this.milliseconds=10*+y}],SSS:[/\d{3}/,function(y){this.milliseconds=+y}],s:[s,d("seconds")],ss:[s,d("seconds")],m:[s,d("minutes")],mm:[s,d("minutes")],H:[s,d("hours")],h:[s,d("hours")],HH:[s,d("hours")],hh:[s,d("hours")],D:[s,d("day")],DD:[o,d("day")],Do:[i,function(y){var g=u.ordinal,M=y.match(/\d+/);if(this.day=M[0],g)for(var w=1;w<=31;w+=1)g(w).replace(/\[|\]/g,"")===y&&(this.day=w)}],w:[s,d("week")],ww:[o,d("week")],M:[s,d("month")],MM:[o,d("month")],MMM:[i,function(y){var g=h("months"),M=(h("monthsShort")||g.map(function(w){return w.slice(0,3)})).indexOf(y)+1;if(M<1)throw new Error;this.month=M%12||M}],MMMM:[i,function(y){var g=h("months").indexOf(y)+1;if(g<1)throw new Error;this.month=g%12||g}],Y:[/[+-]?\d+/,d("year")],YY:[o,function(y){this.year=c(y)}],YYYY:[/\d{4}/,d("year")],Z:f,ZZ:f};function p(y){var g,M;g=y,M=u&&u.formats;for(var w=(y=g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(z,P,L){var F=L&&L.toUpperCase();return P||M[L]||n[L]||M[F].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(U,H,R){return H||R.slice(1)})})).match(a),b=w.length,S=0;S-1)return new Date((B==="X"?1e3:1)*D);var W=p(B)(D),Z=W.year,j=W.month,ne=W.day,oe=W.hours,ce=W.minutes,te=W.seconds,ie=W.milliseconds,fe=W.zone,Me=W.week,me=new Date,le=ne||(Z||j?1:me.getDate()),we=Z||me.getFullYear(),Le=0;Z&&!j||(Le=j>0?j-1:me.getMonth());var De,Ye=oe||0,$e=ce||0,Te=te||0,ke=ie||0;return fe?new Date(Date.UTC(we,Le,le,Ye,$e,Te,ke+60*fe.offset*1e3)):V?new Date(Date.UTC(we,Le,le,Ye,$e,Te,ke)):(De=new Date(we,Le,le,Ye,$e,Te,ke),Me&&(De=K(De).week(Me).toDate()),De)}catch{return new Date("")}}(E,N,O,M),this.init(),F&&F!==!0&&(this.$L=this.locale(F).$L),L&&E!=this.format(N)&&(this.$d=new Date("")),u={}}else if(N instanceof Array)for(var U=N.length,H=1;H<=U;H+=1){I[1]=N[H-1];var R=M.apply(this,I);if(R.isValid()){this.$d=R.$d,this.$L=R.$L,this.init();break}H===U&&(this.$d=new Date(""))}else b.call(this,S)}}})}(bs)),bs.exports}var rA=oA();const Hd=qa(rA);var ws={exports:{}},sA=ws.exports,S2;function iA(){return S2||(S2=1,function(e,t){(function(n,a){e.exports=a()})(sA,function(){return function(n,a){var l=a.prototype,o=l.format;l.format=function(s){var i=this,u=this.$locale();if(!this.isValid())return o.bind(this)(s);var c=this.$utils(),d=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(f){switch(f){case"Q":return Math.ceil((i.$M+1)/3);case"Do":return u.ordinal(i.$D);case"gggg":return i.weekYear();case"GGGG":return i.isoWeekYear();case"wo":return u.ordinal(i.week(),"W");case"w":case"ww":return c.s(i.week(),f==="w"?1:2,"0");case"W":case"WW":return c.s(i.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return c.s(String(i.$H===0?24:i.$H),f==="k"?1:2,"0");case"X":return Math.floor(i.$d.getTime()/1e3);case"x":return i.$d.getTime();case"z":return"["+i.offsetName()+"]";case"zzz":return"["+i.offsetName("long")+"]";default:return f}});return o.bind(this)(d)}}})}(ws)),ws.exports}var uA=iA();const cA=qa(uA);var Cs={exports:{}},dA=Cs.exports,k2;function fA(){return k2||(k2=1,function(e,t){(function(n,a){e.exports=a()})(dA,function(){var n="week",a="year";return function(l,o,s){var i=o.prototype;i.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var d=s(this).startOf(a).add(1,a).date(c),f=s(this).endOf(n);if(d.isBefore(f))return 1}var h=s(this).startOf(a).date(c).startOf(n).subtract(1,"millisecond"),v=this.diff(h,n,!0);return v<0?s(this).startOf("week").week():Math.ceil(v)},i.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})}(Cs)),Cs.exports}var pA=fA();const vA=qa(pA);var Ss={exports:{}},hA=Ss.exports,E2;function mA(){return E2||(E2=1,function(e,t){(function(n,a){e.exports=a()})(hA,function(){return function(n,a){a.prototype.weekYear=function(){var l=this.month(),o=this.week(),s=this.year();return o===1&&l===11?s+1:l===0&&o>=52?s-1:s}}})}(Ss)),Ss.exports}var gA=mA();const yA=qa(gA);var ks={exports:{}},_A=ks.exports,M2;function bA(){return M2||(M2=1,function(e,t){(function(n,a){e.exports=a()})(_A,function(){return function(n,a,l){a.prototype.dayOfYear=function(o){var s=Math.round((l(this).startOf("day")-l(this).startOf("year"))/864e5)+1;return o==null?s:this.add(o-s,"day")}}})}(ks)),ks.exports}var wA=bA();const CA=qa(wA);var Es={exports:{}},SA=Es.exports,x2;function kA(){return x2||(x2=1,function(e,t){(function(n,a){e.exports=a()})(SA,function(){return function(n,a){a.prototype.isSameOrAfter=function(l,o){return this.isSame(l,o)||this.isAfter(l,o)}}})}(Es)),Es.exports}var EA=kA();const MA=qa(EA);var Ms={exports:{}},xA=Ms.exports,$2;function $A(){return $2||($2=1,function(e,t){(function(n,a){e.exports=a()})(xA,function(){return function(n,a){a.prototype.isSameOrBefore=function(l,o){return this.isSame(l,o)||this.isBefore(l,o)}}})}(Ms)),Ms.exports}var TA=$A();const OA=qa(TA),T2=["hours","minutes","seconds"],Zu="HH:mm:ss",Zl="YYYY-MM-DD",NA={date:Zl,dates:Zl,week:"gggg[w]ww",year:"YYYY",years:"YYYY",month:"YYYY-MM",months:"YYYY-MM",datetime:`${Zl} ${Zu}`,monthrange:"YYYY-MM",yearrange:"YYYY",daterange:Zl,datetimerange:`${Zl} ${Zu}`},kh=pe({disabledHours:{type:X(Function)},disabledMinutes:{type:X(Function)},disabledSeconds:{type:X(Function)}}),Eh=pe({visible:Boolean,actualVisible:{type:Boolean,default:void 0},format:{type:String,default:""}}),Dd=pe({id:{type:X([Array,String])},name:{type:X([Array,String])},popperClass:{type:String,default:""},format:String,valueFormat:String,dateFormat:String,timeFormat:String,type:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:X([String,Object]),default:Ta},editable:{type:Boolean,default:!0},prefixIcon:{type:X([String,Object]),default:""},size:qt,readonly:Boolean,disabled:Boolean,placeholder:{type:String,default:""},popperOptions:{type:X(Object),default:()=>({})},modelValue:{type:X([Date,Array,String,Number]),default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:X([Date,Array])},defaultTime:{type:X([Date,Array])},isRange:Boolean,...kh,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:Boolean,tabindex:{type:X([String,Number]),default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean,placement:{type:X(String),values:Ga,default:"bottom"},fallbackPlacements:{type:X(Array),default:["bottom","top","right","left"]},...Ao,...sn(["ariaLabel"]),showNow:{type:Boolean,default:!0}}),IA=pe({id:{type:X(Array)},name:{type:X(Array)},modelValue:{type:X([Array,String])},startPlaceholder:String,endPlaceholder:String}),PA=T({name:"PickerRangeTrigger",inheritAttrs:!1}),zA=T({...PA,props:IA,emits:["mouseenter","mouseleave","click","touchstart","focus","blur","startInput","endInput","startChange","endChange"],setup(e,{expose:t,emit:n}){const a=Vr(),l=de("date"),o=de("range"),s=A(),i=A(),{wrapperRef:u,isFocused:c}=fl(s),d=b=>{n("click",b)},f=b=>{n("mouseenter",b)},h=b=>{n("mouseleave",b)},v=b=>{n("mouseenter",b)},m=b=>{n("startInput",b)},p=b=>{n("endInput",b)},y=b=>{n("startChange",b)},g=b=>{n("endChange",b)};return t({focus:()=>{var b;(b=s.value)==null||b.focus()},blur:()=>{var b,S;(b=s.value)==null||b.blur(),(S=i.value)==null||S.blur()}}),(b,S)=>(_(),x("div",{ref_key:"wrapperRef",ref:u,class:$([r(l).is("active",r(c)),b.$attrs.class]),style:Ne(b.$attrs.style),onClick:d,onMouseenter:f,onMouseleave:h,onTouchstartPassive:v},[Q(b.$slots,"prefix"),k("input",tt(r(a),{id:b.id&&b.id[0],ref_key:"inputRef",ref:s,name:b.name&&b.name[0],placeholder:b.startPlaceholder,value:b.modelValue&&b.modelValue[0],class:r(o).b("input"),onInput:m,onChange:y}),null,16,["id","name","placeholder","value"]),Q(b.$slots,"range-separator"),k("input",tt(r(a),{id:b.id&&b.id[1],ref_key:"endInputRef",ref:i,name:b.name&&b.name[1],placeholder:b.endPlaceholder,value:b.modelValue&&b.modelValue[1],class:r(o).b("input"),onInput:p,onChange:g}),null,16,["id","name","placeholder","value"]),Q(b.$slots,"suffix")],38))}});var AA=ve(zA,[["__file","picker-range-trigger.vue"]]);const VA=T({name:"Picker"}),LA=T({...VA,props:Dd,emits:["update:modelValue","change","focus","blur","clear","calendar-change","panel-change","visible-change","keydown"],setup(e,{expose:t,emit:n}){const a=e,l=Wa(),{lang:o}=ct(),s=de("date"),i=de("input"),u=de("range"),{form:c,formItem:d}=gn(),f=Se("ElPopperOptions",{}),{valueOnClear:h}=wi(a,null),v=A(),m=A(),p=A(!1),y=A(!1),g=A(null);let M=!1;const{isFocused:w,handleFocus:b,handleBlur:S}=fl(m,{beforeFocus(){return a.readonly||V.value},afterFocus(){p.value=!0},beforeBlur(Y){var ye;return!M&&((ye=v.value)==null?void 0:ye.isFocusInsideContent(Y))},afterBlur(){He(),p.value=!1,M=!1,a.validateEvent&&(d==null||d.validate("blur").catch(Y=>void 0))}}),E=C(()=>[s.b("editor"),s.bm("editor",a.type),i.e("wrapper"),s.is("disabled",V.value),s.is("active",p.value),u.b("editor"),Ye?u.bm("editor",Ye.value):"",l.class]),O=C(()=>[i.e("icon"),u.e("close-icon"),ie.value?"":u.e("close-icon--hidden")]);se(p,Y=>{Y?Oe(()=>{Y&&(g.value=a.modelValue)}):(ke.value=null,Oe(()=>{I(a.modelValue)}))});const I=(Y,ye)=>{(ye||!r2(Y,g.value))&&(n("change",Y),a.validateEvent&&(d==null||d.validate("change").catch(Fe=>void 0)))},N=Y=>{if(!r2(a.modelValue,Y)){let ye;Ee(Y)?ye=Y.map(Fe=>i2(Fe,a.valueFormat,o.value)):Y&&(ye=i2(Y,a.valueFormat,o.value)),n("update:modelValue",Y&&ye,o.value)}},z=Y=>{n("keydown",Y)},P=C(()=>m.value?Array.from(m.value.$el.querySelectorAll("input")):[]),L=(Y,ye,Fe)=>{const lt=P.value;lt.length&&(!Fe||Fe==="min"?(lt[0].setSelectionRange(Y,ye),lt[0].focus()):Fe==="max"&&(lt[1].setSelectionRange(Y,ye),lt[1].focus()))},F=(Y="",ye=!1)=>{p.value=ye;let Fe;Ee(Y)?Fe=Y.map(lt=>lt.toDate()):Fe=Y&&Y.toDate(),ke.value=null,N(Fe)},U=()=>{y.value=!0},H=()=>{n("visible-change",!0)},R=()=>{y.value=!1,p.value=!1,n("visible-change",!1)},D=()=>{p.value=!0},B=()=>{p.value=!1},V=C(()=>a.disabled||(c==null?void 0:c.disabled)),K=C(()=>{let Y;if(Me.value?gt.value.getDefaultValue&&(Y=gt.value.getDefaultValue()):Ee(a.modelValue)?Y=a.modelValue.map(ye=>s2(ye,a.valueFormat,o.value)):Y=s2(a.modelValue,a.valueFormat,o.value),gt.value.getRangeAvailableTime){const ye=gt.value.getRangeAvailableTime(Y);fn(ye,Y)||(Y=ye,Me.value||N(ns(Y)))}return Ee(Y)&&Y.some(ye=>!ye)&&(Y=[]),Y}),W=C(()=>{if(!gt.value.panelReady)return"";const Y=at(K.value);return Ee(ke.value)?[ke.value[0]||Y&&Y[0]||"",ke.value[1]||Y&&Y[1]||""]:ke.value!==null?ke.value:!j.value&&Me.value||!p.value&&Me.value?"":Y?ne.value||oe.value||ce.value?Y.join(", "):Y:""}),Z=C(()=>a.type.includes("time")),j=C(()=>a.type.startsWith("time")),ne=C(()=>a.type==="dates"),oe=C(()=>a.type==="months"),ce=C(()=>a.type==="years"),te=C(()=>a.prefixIcon||(Z.value?hd:Yv)),ie=A(!1),fe=Y=>{a.readonly||V.value||(ie.value&&(Y.stopPropagation(),gt.value.handleClear?gt.value.handleClear():N(h.value),I(h.value,!0),ie.value=!1,R()),n("clear"))},Me=C(()=>{const{modelValue:Y}=a;return!Y||Ee(Y)&&!Y.filter(Boolean).length}),me=async Y=>{var ye;a.readonly||V.value||(((ye=Y.target)==null?void 0:ye.tagName)!=="INPUT"||w.value)&&(p.value=!0)},le=()=>{a.readonly||V.value||!Me.value&&a.clearable&&(ie.value=!0)},we=()=>{ie.value=!1},Le=Y=>{var ye;a.readonly||V.value||(((ye=Y.touches[0].target)==null?void 0:ye.tagName)!=="INPUT"||w.value)&&(p.value=!0)},De=C(()=>a.type.includes("range")),Ye=jt(),$e=C(()=>{var Y,ye;return(ye=(Y=r(v))==null?void 0:Y.popperRef)==null?void 0:ye.contentRef}),Te=cd(m,Y=>{const ye=r($e),Fe=$n(m);ye&&(Y.target===ye||Y.composedPath().includes(ye))||Y.target===Fe||Fe&&Y.composedPath().includes(Fe)||(p.value=!1)});Tt(()=>{Te==null||Te()});const ke=A(null),He=()=>{if(ke.value){const Y=Xe(W.value);Y&&nt(Y)&&(N(ns(Y)),ke.value=null)}ke.value===""&&(N(h.value),I(h.value),ke.value=null)},Xe=Y=>Y?gt.value.parseUserInput(Y):null,at=Y=>Y?gt.value.formatToString(Y):null,nt=Y=>gt.value.isValidValue(Y),be=async Y=>{if(a.readonly||V.value)return;const{code:ye}=Y;if(z(Y),ye===Ce.esc){p.value===!0&&(p.value=!1,Y.preventDefault(),Y.stopPropagation());return}if(ye===Ce.down&&(gt.value.handleFocusPicker&&(Y.preventDefault(),Y.stopPropagation()),p.value===!1&&(p.value=!0,await Oe()),gt.value.handleFocusPicker)){gt.value.handleFocusPicker();return}if(ye===Ce.tab){M=!0;return}if(ye===Ce.enter||ye===Ce.numpadEnter){(ke.value===null||ke.value===""||nt(Xe(W.value)))&&(He(),p.value=!1),Y.stopPropagation();return}if(ke.value){Y.stopPropagation();return}gt.value.handleKeydownInput&>.value.handleKeydownInput(Y)},je=Y=>{ke.value=Y,p.value||(p.value=!0)},ft=Y=>{const ye=Y.target;ke.value?ke.value=[ye.value,ke.value[1]]:ke.value=[ye.value,null]},Ot=Y=>{const ye=Y.target;ke.value?ke.value=[ke.value[0],ye.value]:ke.value=[null,ye.value]},bt=()=>{var Y;const ye=ke.value,Fe=Xe(ye&&ye[0]),lt=r(K);if(Fe&&Fe.isValid()){ke.value=[at(Fe),((Y=W.value)==null?void 0:Y[1])||null];const Nt=[Fe,lt&&(lt[1]||null)];nt(Nt)&&(N(ns(Nt)),ke.value=null)}},Pt=()=>{var Y;const ye=r(ke),Fe=Xe(ye&&ye[1]),lt=r(K);if(Fe&&Fe.isValid()){ke.value=[((Y=r(W))==null?void 0:Y[0])||null,at(Fe)];const Nt=[lt&<[0],Fe];nt(Nt)&&(N(ns(Nt)),ke.value=null)}},gt=A({}),un=Y=>{gt.value[Y[0]]=Y[1],gt.value.panelReady=!0},Wt=Y=>{n("calendar-change",Y)},re=(Y,ye,Fe)=>{n("panel-change",Y,ye,Fe)},J=()=>{var Y;(Y=m.value)==null||Y.focus()},ue=()=>{var Y;(Y=m.value)==null||Y.blur()};return it("EP_PICKER_BASE",{props:a}),t({focus:J,blur:ue,handleOpen:D,handleClose:B,onPick:F}),(Y,ye)=>(_(),ae(r(mn),tt({ref_key:"refPopper",ref:v,visible:p.value,effect:"light",pure:"",trigger:"click"},Y.$attrs,{role:"dialog",teleported:"",transition:`${r(s).namespace.value}-zoom-in-top`,"popper-class":[`${r(s).namespace.value}-picker__popper`,Y.popperClass],"popper-options":r(f),"fallback-placements":Y.fallbackPlacements,"gpu-acceleration":!1,placement:Y.placement,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:U,onShow:H,onHide:R}),{default:G(()=>[r(De)?(_(),ae(AA,{key:1,id:Y.id,ref_key:"inputRef",ref:m,"model-value":r(W),name:Y.name,disabled:r(V),readonly:!Y.editable||Y.readonly,"start-placeholder":Y.startPlaceholder,"end-placeholder":Y.endPlaceholder,class:$(r(E)),style:Ne(Y.$attrs.style),"aria-label":Y.ariaLabel,tabindex:Y.tabindex,autocomplete:"off",role:"combobox",onClick:me,onFocus:r(b),onBlur:r(S),onStartInput:ft,onStartChange:bt,onEndInput:Ot,onEndChange:Pt,onMousedown:me,onMouseenter:le,onMouseleave:we,onTouchstartPassive:Le,onKeydown:be},{prefix:G(()=>[r(te)?(_(),ae(r(xe),{key:0,class:$([r(i).e("icon"),r(u).e("icon")])},{default:G(()=>[(_(),ae(et(r(te))))]),_:1},8,["class"])):ee("v-if",!0)]),"range-separator":G(()=>[Q(Y.$slots,"range-separator",{},()=>[k("span",{class:$(r(u).b("separator"))},he(Y.rangeSeparator),3)])]),suffix:G(()=>[Y.clearIcon?(_(),ae(r(xe),{key:0,class:$(r(O)),onMousedown:Ae(r(zt),["prevent"]),onClick:fe},{default:G(()=>[(_(),ae(et(Y.clearIcon)))]),_:1},8,["class","onMousedown"])):ee("v-if",!0)]),_:3},8,["id","model-value","name","disabled","readonly","start-placeholder","end-placeholder","class","style","aria-label","tabindex","onFocus","onBlur"])):(_(),ae(r(Sn),{key:0,id:Y.id,ref_key:"inputRef",ref:m,"container-role":"combobox","model-value":r(W),name:Y.name,size:r(Ye),disabled:r(V),placeholder:Y.placeholder,class:$([r(s).b("editor"),r(s).bm("editor",Y.type),Y.$attrs.class]),style:Ne(Y.$attrs.style),readonly:!Y.editable||Y.readonly||r(ne)||r(oe)||r(ce)||Y.type==="week","aria-label":Y.ariaLabel,tabindex:Y.tabindex,"validate-event":!1,onInput:je,onFocus:r(b),onBlur:r(S),onKeydown:be,onChange:He,onMousedown:me,onMouseenter:le,onMouseleave:we,onTouchstartPassive:Le,onClick:Ae(()=>{},["stop"])},{prefix:G(()=>[r(te)?(_(),ae(r(xe),{key:0,class:$(r(i).e("icon")),onMousedown:Ae(me,["prevent"]),onTouchstartPassive:Le},{default:G(()=>[(_(),ae(et(r(te))))]),_:1},8,["class","onMousedown"])):ee("v-if",!0)]),suffix:G(()=>[ie.value&&Y.clearIcon?(_(),ae(r(xe),{key:0,class:$(`${r(i).e("icon")} clear-icon`),onMousedown:Ae(r(zt),["prevent"]),onClick:fe},{default:G(()=>[(_(),ae(et(Y.clearIcon)))]),_:1},8,["class","onMousedown"])):ee("v-if",!0)]),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","aria-label","tabindex","onFocus","onBlur","onClick"]))]),content:G(()=>[Q(Y.$slots,"default",{visible:p.value,actualVisible:y.value,parsedValue:r(K),format:Y.format,dateFormat:Y.dateFormat,timeFormat:Y.timeFormat,unlinkPanels:Y.unlinkPanels,type:Y.type,defaultValue:Y.defaultValue,showNow:Y.showNow,onPick:F,onSelectRange:L,onSetPickerOption:un,onCalendarChange:Wt,onPanelChange:re,onMousedown:Ae(()=>{},["stop"])})]),_:3},16,["visible","transition","popper-class","popper-options","fallback-placements","placement"]))}});var Mh=ve(LA,[["__file","picker.vue"]]);const RA=pe({...Eh,datetimeRole:String,parsedValue:{type:X(Object)}}),xh=({getAvailableHours:e,getAvailableMinutes:t,getAvailableSeconds:n})=>{const a=(s,i,u,c)=>{const d={hour:e,minute:t,second:n};let f=s;return["hour","minute","second"].forEach(h=>{if(d[h]){let v;const m=d[h];switch(h){case"minute":{v=m(f.hour(),i,c);break}case"second":{v=m(f.hour(),f.minute(),i,c);break}default:{v=m(i,c);break}}if(v!=null&&v.length&&!v.includes(f[h]())){const p=u?0:v.length-1;f=f[h](v[p])}}}),f},l={};return{timePickerOptions:l,getAvailableTime:a,onSetOption:([s,i])=>{l[s]=i}}},fu=e=>{const t=(a,l)=>a||l,n=a=>a!==!0;return e.map(t).filter(n)},$h=(e,t,n)=>({getHoursList:(s,i)=>iu(24,e&&(()=>e==null?void 0:e(s,i))),getMinutesList:(s,i,u)=>iu(60,t&&(()=>t==null?void 0:t(s,i,u))),getSecondsList:(s,i,u,c)=>iu(60,n&&(()=>n==null?void 0:n(s,i,u,c)))}),Th=(e,t,n)=>{const{getHoursList:a,getMinutesList:l,getSecondsList:o}=$h(e,t,n);return{getAvailableHours:(c,d)=>fu(a(c,d)),getAvailableMinutes:(c,d,f)=>fu(l(c,d,f)),getAvailableSeconds:(c,d,f,h)=>fu(o(c,d,f,h))}},Oh=e=>{const t=A(e.parsedValue);return se(()=>e.visible,n=>{n||(t.value=e.parsedValue)}),t},BA=pe({role:{type:String,required:!0},spinnerDate:{type:X(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:X(String),default:""},...kh}),HA=100,DA=600,Us={beforeMount(e,t){const n=t.value,{interval:a=HA,delay:l=DA}=Qe(n)?{}:n;let o,s;const i=()=>Qe(n)?n():n.handler(),u=()=>{s&&(clearTimeout(s),s=void 0),o&&(clearInterval(o),o=void 0)};e.addEventListener("mousedown",c=>{c.button===0&&(u(),i(),document.addEventListener("mouseup",()=>u(),{once:!0}),s=setTimeout(()=>{o=setInterval(()=>{i()},a)},l))})}},FA=T({__name:"basic-time-spinner",props:BA,emits:["change","select-range","set-option"],setup(e,{emit:t}){const n=e,a=Se("EP_PICKER_BASE"),{isRange:l}=a.props,o=de("time"),{getHoursList:s,getMinutesList:i,getSecondsList:u}=$h(n.disabledHours,n.disabledMinutes,n.disabledSeconds);let c=!1;const d=A(),f=A(),h=A(),v=A(),m={hours:f,minutes:h,seconds:v},p=C(()=>n.showSeconds?T2:T2.slice(0,2)),y=C(()=>{const{spinnerDate:W}=n,Z=W.hour(),j=W.minute(),ne=W.second();return{hours:Z,minutes:j,seconds:ne}}),g=C(()=>{const{hours:W,minutes:Z}=r(y),{role:j,spinnerDate:ne}=n,oe=l?void 0:ne;return{hours:s(j,oe),minutes:i(W,j,oe),seconds:u(W,Z,j,oe)}}),M=C(()=>{const{hours:W,minutes:Z,seconds:j}=r(y);return{hours:su(W,23),minutes:su(Z,59),seconds:su(j,59)}}),w=Rn(W=>{c=!1,E(W)},200),b=W=>{if(!!!n.amPmMode)return"";const j=n.amPmMode==="A";let ne=W<12?" am":" pm";return j&&(ne=ne.toUpperCase()),ne},S=W=>{let Z;switch(W){case"hours":Z=[0,2];break;case"minutes":Z=[3,5];break;case"seconds":Z=[6,8];break}const[j,ne]=Z;t("select-range",j,ne),d.value=W},E=W=>{N(W,r(y)[W])},O=()=>{E("hours"),E("minutes"),E("seconds")},I=W=>W.querySelector(`.${o.namespace.value}-scrollbar__wrap`),N=(W,Z)=>{if(n.arrowControl)return;const j=r(m[W]);j&&j.$el&&(I(j.$el).scrollTop=Math.max(0,Z*z(W)))},z=W=>{const Z=r(m[W]),j=Z==null?void 0:Z.$el.querySelector("li");return j&&Number.parseFloat(Va(j,"height"))||0},P=()=>{F(1)},L=()=>{F(-1)},F=W=>{d.value||S("hours");const Z=d.value,j=r(y)[Z],ne=d.value==="hours"?24:60,oe=U(Z,j,W,ne);H(Z,oe),N(Z,oe),Oe(()=>S(Z))},U=(W,Z,j,ne)=>{let oe=(Z+j+ne)%ne;const ce=r(g)[W];for(;ce[oe]&&oe!==Z;)oe=(oe+j+ne)%ne;return oe},H=(W,Z)=>{if(r(g)[W][Z])return;const{hours:oe,minutes:ce,seconds:te}=r(y);let ie;switch(W){case"hours":ie=n.spinnerDate.hour(Z).minute(ce).second(te);break;case"minutes":ie=n.spinnerDate.hour(oe).minute(Z).second(te);break;case"seconds":ie=n.spinnerDate.hour(oe).minute(ce).second(Z);break}t("change",ie)},R=(W,{value:Z,disabled:j})=>{j||(H(W,Z),S(W),N(W,Z))},D=W=>{const Z=r(m[W]);if(!Z)return;c=!0,w(W);const j=Math.min(Math.round((I(Z.$el).scrollTop-(B(W)*.5-10)/z(W)+3)/z(W)),W==="hours"?23:59);H(W,j)},B=W=>r(m[W]).$el.offsetHeight,V=()=>{const W=Z=>{const j=r(m[Z]);j&&j.$el&&(I(j.$el).onscroll=()=>{D(Z)})};W("hours"),W("minutes"),W("seconds")};Ge(()=>{Oe(()=>{!n.arrowControl&&V(),O(),n.role==="start"&&S("hours")})});const K=(W,Z)=>{m[Z].value=W??void 0};return t("set-option",[`${n.role}_scrollDown`,F]),t("set-option",[`${n.role}_emitSelectRange`,S]),se(()=>n.spinnerDate,()=>{c||O()}),(W,Z)=>(_(),x("div",{class:$([r(o).b("spinner"),{"has-seconds":W.showSeconds}])},[W.arrowControl?ee("v-if",!0):(_(!0),x(ze,{key:0},rt(r(p),j=>(_(),ae(r(Oa),{key:j,ref_for:!0,ref:ne=>K(ne,j),class:$(r(o).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":r(o).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:ne=>S(j),onMousemove:ne=>E(j)},{default:G(()=>[(_(!0),x(ze,null,rt(r(g)[j],(ne,oe)=>(_(),x("li",{key:oe,class:$([r(o).be("spinner","item"),r(o).is("active",oe===r(y)[j]),r(o).is("disabled",ne)]),onClick:ce=>R(j,{value:oe,disabled:ne})},[j==="hours"?(_(),x(ze,{key:0},[ot(he(("0"+(W.amPmMode?oe%12||12:oe)).slice(-2))+he(b(oe)),1)],64)):(_(),x(ze,{key:1},[ot(he(("0"+oe).slice(-2)),1)],64))],10,["onClick"]))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),W.arrowControl?(_(!0),x(ze,{key:1},rt(r(p),j=>(_(),x("div",{key:j,class:$([r(o).be("spinner","wrapper"),r(o).is("arrow")]),onMouseenter:ne=>S(j)},[qe((_(),ae(r(xe),{class:$(["arrow-up",r(o).be("spinner","arrow")])},{default:G(()=>[q(r(ki))]),_:1},8,["class"])),[[r(Us),L]]),qe((_(),ae(r(xe),{class:$(["arrow-down",r(o).be("spinner","arrow")])},{default:G(()=>[q(r($a))]),_:1},8,["class"])),[[r(Us),P]]),k("ul",{class:$(r(o).be("spinner","list"))},[(_(!0),x(ze,null,rt(r(M)[j],(ne,oe)=>(_(),x("li",{key:oe,class:$([r(o).be("spinner","item"),r(o).is("active",ne===r(y)[j]),r(o).is("disabled",r(g)[j][ne])])},[r(Ie)(ne)?(_(),x(ze,{key:0},[j==="hours"?(_(),x(ze,{key:0},[ot(he(("0"+(W.amPmMode?ne%12||12:ne)).slice(-2))+he(b(ne)),1)],64)):(_(),x(ze,{key:1},[ot(he(("0"+ne).slice(-2)),1)],64))],64)):ee("v-if",!0)],2))),128))],2)],42,["onMouseenter"]))),128)):ee("v-if",!0)],2))}});var Ju=ve(FA,[["__file","basic-time-spinner.vue"]]);const KA=T({__name:"panel-time-pick",props:RA,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,a=Se("EP_PICKER_BASE"),{arrowControl:l,disabledHours:o,disabledMinutes:s,disabledSeconds:i,defaultValue:u}=a.props,{getAvailableHours:c,getAvailableMinutes:d,getAvailableSeconds:f}=Th(o,s,i),h=de("time"),{t:v,lang:m}=ct(),p=A([0,2]),y=Oh(n),g=C(()=>vt(n.actualVisible)?`${h.namespace.value}-zoom-in-top`:""),M=C(()=>n.format.includes("ss")),w=C(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),b=B=>{const V=Be(B).locale(m.value),K=U(V);return V.isSame(K)},S=()=>{t("pick",y.value,!1)},E=(B=!1,V=!1)=>{V||t("pick",n.parsedValue,B)},O=B=>{if(!n.visible)return;const V=U(B).millisecond(0);t("pick",V,!0)},I=(B,V)=>{t("select-range",B,V),p.value=[B,V]},N=B=>{const V=[0,3].concat(M.value?[6]:[]),K=["hours","minutes"].concat(M.value?["seconds"]:[]),Z=(V.indexOf(p.value[0])+B+V.length)%V.length;P.start_emitSelectRange(K[Z])},z=B=>{const V=B.code,{left:K,right:W,up:Z,down:j}=Ce;if([K,W].includes(V)){N(V===K?-1:1),B.preventDefault();return}if([Z,j].includes(V)){const ne=V===Z?-1:1;P.start_scrollDown(ne),B.preventDefault();return}},{timePickerOptions:P,onSetOption:L,getAvailableTime:F}=xh({getAvailableHours:c,getAvailableMinutes:d,getAvailableSeconds:f}),U=B=>F(B,n.datetimeRole||"",!0),H=B=>B?Be(B,n.format).locale(m.value):null,R=B=>B?B.format(n.format):null,D=()=>Be(u).locale(m.value);return t("set-picker-option",["isValidValue",b]),t("set-picker-option",["formatToString",R]),t("set-picker-option",["parseUserInput",H]),t("set-picker-option",["handleKeydownInput",z]),t("set-picker-option",["getRangeAvailableTime",U]),t("set-picker-option",["getDefaultValue",D]),(B,V)=>(_(),ae(tn,{name:r(g)},{default:G(()=>[B.actualVisible||B.visible?(_(),x("div",{key:0,class:$(r(h).b("panel"))},[k("div",{class:$([r(h).be("panel","content"),{"has-seconds":r(M)}])},[q(Ju,{ref:"spinner",role:B.datetimeRole||"start","arrow-control":r(l),"show-seconds":r(M),"am-pm-mode":r(w),"spinner-date":B.parsedValue,"disabled-hours":r(o),"disabled-minutes":r(s),"disabled-seconds":r(i),onChange:O,onSetOption:r(L),onSelectRange:I},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onSetOption"])],2),k("div",{class:$(r(h).be("panel","footer"))},[k("button",{type:"button",class:$([r(h).be("panel","btn"),"cancel"]),onClick:S},he(r(v)("el.datepicker.cancel")),3),k("button",{type:"button",class:$([r(h).be("panel","btn"),"confirm"]),onClick:K=>E()},he(r(v)("el.datepicker.confirm")),11,["onClick"])],2)],2)):ee("v-if",!0)]),_:1},8,["name"]))}});var Ys=ve(KA,[["__file","panel-time-pick.vue"]]);const WA=pe({...Eh,parsedValue:{type:X(Array)}}),jA=T({__name:"panel-time-range",props:WA,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,a=(me,le)=>{const we=[];for(let Le=me;Le<=le;Le++)we.push(Le);return we},{t:l,lang:o}=ct(),s=de("time"),i=de("picker"),u=Se("EP_PICKER_BASE"),{arrowControl:c,disabledHours:d,disabledMinutes:f,disabledSeconds:h,defaultValue:v}=u.props,m=C(()=>[s.be("range-picker","body"),s.be("panel","content"),s.is("arrow",c),b.value?"has-seconds":""]),p=C(()=>[s.be("range-picker","body"),s.be("panel","content"),s.is("arrow",c),b.value?"has-seconds":""]),y=C(()=>n.parsedValue[0]),g=C(()=>n.parsedValue[1]),M=Oh(n),w=()=>{t("pick",M.value,!1)},b=C(()=>n.format.includes("ss")),S=C(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),E=(me=!1)=>{t("pick",[y.value,g.value],me)},O=me=>{z(me.millisecond(0),g.value)},I=me=>{z(y.value,me.millisecond(0))},N=me=>{const le=me.map(Le=>Be(Le).locale(o.value)),we=W(le);return le[0].isSame(we[0])&&le[1].isSame(we[1])},z=(me,le)=>{n.visible&&t("pick",[me,le],!0)},P=C(()=>y.value>g.value),L=A([0,2]),F=(me,le)=>{t("select-range",me,le,"min"),L.value=[me,le]},U=C(()=>b.value?11:8),H=(me,le)=>{t("select-range",me,le,"max");const we=r(U);L.value=[me+we,le+we]},R=me=>{const le=b.value?[0,3,6,11,14,17]:[0,3,8,11],we=["hours","minutes"].concat(b.value?["seconds"]:[]),De=(le.indexOf(L.value[0])+me+le.length)%le.length,Ye=le.length/2;De{const le=me.code,{left:we,right:Le,up:De,down:Ye}=Ce;if([we,Le].includes(le)){R(le===we?-1:1),me.preventDefault();return}if([De,Ye].includes(le)){const $e=le===De?-1:1,Te=L.value[0]{const we=d?d(me):[],Le=me==="start",Ye=(le||(Le?g.value:y.value)).hour(),$e=Le?a(Ye+1,23):a(0,Ye-1);return tu(we,$e)},V=(me,le,we)=>{const Le=f?f(me,le):[],De=le==="start",Ye=we||(De?g.value:y.value),$e=Ye.hour();if(me!==$e)return Le;const Te=Ye.minute(),ke=De?a(Te+1,59):a(0,Te-1);return tu(Le,ke)},K=(me,le,we,Le)=>{const De=h?h(me,le,we):[],Ye=we==="start",$e=Le||(Ye?g.value:y.value),Te=$e.hour(),ke=$e.minute();if(me!==Te||le!==ke)return De;const He=$e.second(),Xe=Ye?a(He+1,59):a(0,He-1);return tu(De,Xe)},W=([me,le])=>[ce(me,"start",!0,le),ce(le,"end",!1,me)],{getAvailableHours:Z,getAvailableMinutes:j,getAvailableSeconds:ne}=Th(B,V,K),{timePickerOptions:oe,getAvailableTime:ce,onSetOption:te}=xh({getAvailableHours:Z,getAvailableMinutes:j,getAvailableSeconds:ne}),ie=me=>me?Ee(me)?me.map(le=>Be(le,n.format).locale(o.value)):Be(me,n.format).locale(o.value):null,fe=me=>me?Ee(me)?me.map(le=>le.format(n.format)):me.format(n.format):null,Me=()=>{if(Ee(v))return v.map(le=>Be(le).locale(o.value));const me=Be(v).locale(o.value);return[me,me.add(60,"m")]};return t("set-picker-option",["formatToString",fe]),t("set-picker-option",["parseUserInput",ie]),t("set-picker-option",["isValidValue",N]),t("set-picker-option",["handleKeydownInput",D]),t("set-picker-option",["getDefaultValue",Me]),t("set-picker-option",["getRangeAvailableTime",W]),(me,le)=>me.actualVisible?(_(),x("div",{key:0,class:$([r(s).b("range-picker"),r(i).b("panel")])},[k("div",{class:$(r(s).be("range-picker","content"))},[k("div",{class:$(r(s).be("range-picker","cell"))},[k("div",{class:$(r(s).be("range-picker","header"))},he(r(l)("el.datepicker.startTime")),3),k("div",{class:$(r(m))},[q(Ju,{ref:"minSpinner",role:"start","show-seconds":r(b),"am-pm-mode":r(S),"arrow-control":r(c),"spinner-date":r(y),"disabled-hours":B,"disabled-minutes":V,"disabled-seconds":K,onChange:O,onSetOption:r(te),onSelectRange:F},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2),k("div",{class:$(r(s).be("range-picker","cell"))},[k("div",{class:$(r(s).be("range-picker","header"))},he(r(l)("el.datepicker.endTime")),3),k("div",{class:$(r(p))},[q(Ju,{ref:"maxSpinner",role:"end","show-seconds":r(b),"am-pm-mode":r(S),"arrow-control":r(c),"spinner-date":r(g),"disabled-hours":B,"disabled-minutes":V,"disabled-seconds":K,onChange:I,onSetOption:r(te),onSelectRange:H},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2)],2),k("div",{class:$(r(s).be("panel","footer"))},[k("button",{type:"button",class:$([r(s).be("panel","btn"),"cancel"]),onClick:we=>w()},he(r(l)("el.datepicker.cancel")),11,["onClick"]),k("button",{type:"button",class:$([r(s).be("panel","btn"),"confirm"]),disabled:r(P),onClick:we=>E()},he(r(l)("el.datepicker.confirm")),11,["disabled","onClick"])],2)],2)):ee("v-if",!0)}});var qA=ve(jA,[["__file","panel-time-range.vue"]]);Be.extend(Hd);var UA=T({name:"ElTimePicker",install:null,props:{...Dd,isRange:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,t){const n=A(),[a,l]=e.isRange?["timerange",qA]:["time",Ys],o=s=>t.emit("update:modelValue",s);return it("ElPopperOptions",e.popperOptions),t.expose({focus:()=>{var s;(s=n.value)==null||s.focus()},blur:()=>{var s;(s=n.value)==null||s.blur()},handleOpen:()=>{var s;(s=n.value)==null||s.handleOpen()},handleClose:()=>{var s;(s=n.value)==null||s.handleClose()}}),()=>{var s;const i=(s=e.format)!=null?s:Zu;return q(Mh,tt(e,{ref:n,type:a,format:i,"onUpdate:modelValue":o}),{default:u=>q(l,u,null)})}}});const YA=We(UA),zi=Symbol(),GA=pe({...Dd,type:{type:X(String),default:"date"}}),XA=["date","dates","year","years","month","months","week","range"],Fd=pe({disabledDate:{type:X(Function)},date:{type:X(Object),required:!0},minDate:{type:X(Object)},maxDate:{type:X(Object)},parsedValue:{type:X([Object,Array])},rangeState:{type:X(Object),default:()=>({endDate:null,selecting:!1})}}),Nh=pe({type:{type:X(String),required:!0,values:tI},dateFormat:String,timeFormat:String,showNow:{type:Boolean,default:!0}}),Kd=pe({unlinkPanels:Boolean,parsedValue:{type:X(Array)}}),Wd=e=>({type:String,values:XA,default:e}),ZA=pe({...Nh,parsedValue:{type:X([Object,Array])},visible:{type:Boolean},format:{type:String,default:""}}),bo=e=>{if(!Ee(e))return!1;const[t,n]=e;return Be.isDayjs(t)&&Be.isDayjs(n)&&t.isSameOrBefore(n)},jd=(e,{lang:t,unit:n,unlinkPanels:a})=>{let l;if(Ee(e)){let[o,s]=e.map(i=>Be(i).locale(t));return a||(s=o.add(1,n)),[o,s]}else e?l=Be(e):l=Be();return l=l.locale(t),[l,l.add(1,n)]},JA=(e,t,{columnIndexOffset:n,startDate:a,nextEndDate:l,now:o,unit:s,relativeDateGetter:i,setCellMetadata:u,setRowMetadata:c})=>{for(let d=0;d{const a=Be().locale(n).startOf("month").month(t).year(e),l=a.daysInMonth();return ll(l).map(o=>a.add(o,"day").toDate())},gr=(e,t,n,a)=>{const l=Be().year(e).month(t).startOf("month"),o=Gs(e,t,n).find(s=>!(a!=null&&a(s)));return o?Be(o).locale(n):l.locale(n)},Qu=(e,t,n)=>{const a=e.year();if(!(n!=null&&n(e.toDate())))return e.locale(t);const l=e.month();if(!Gs(a,l,t).every(n))return gr(a,l,t,n);for(let o=0;o<12;o++)if(!Gs(a,o,t).every(n))return gr(a,o,t,n);return e},QA=pe({...Fd,cellClassName:{type:X(Function)},showWeekNumber:Boolean,selectionMode:Wd("date")}),eV=["changerange","pick","select"],ec=(e="")=>["normal","today"].includes(e),tV=(e,t)=>{const{lang:n}=ct(),a=A(),l=A(),o=A(),s=A(),i=A([[],[],[],[],[],[]]);let u=!1;const c=e.date.$locale().weekStart||7,d=e.date.locale("en").localeData().weekdaysShort().map(V=>V.toLowerCase()),f=C(()=>c>3?7-c:-c),h=C(()=>{const V=e.date.startOf("month");return V.subtract(V.day()||7,"day")}),v=C(()=>d.concat(d).slice(c,c+7)),m=C(()=>tv(r(b)).some(V=>V.isCurrent)),p=C(()=>{const V=e.date.startOf("month"),K=V.day()||7,W=V.daysInMonth(),Z=V.subtract(1,"month").daysInMonth();return{startOfMonthDay:K,dateCountOfMonth:W,dateCountOfLastMonth:Z}}),y=C(()=>e.selectionMode==="dates"?xn(e.parsedValue):[]),g=(V,{count:K,rowIndex:W,columnIndex:Z})=>{const{startOfMonthDay:j,dateCountOfMonth:ne,dateCountOfLastMonth:oe}=r(p),ce=r(f);if(W>=0&&W<=1){const te=j+ce<0?7+j+ce:j+ce;if(Z+W*7>=te)return V.text=K,!0;V.text=oe-(te-Z%7)+1+W*7,V.type="prev-month"}else return K<=ne?V.text=K:(V.text=K-ne,V.type="next-month"),!0;return!1},M=(V,{columnIndex:K,rowIndex:W},Z)=>{const{disabledDate:j,cellClassName:ne}=e,oe=r(y),ce=g(V,{count:Z,rowIndex:W,columnIndex:K}),te=V.dayjs.toDate();return V.selected=oe.find(ie=>ie.isSame(V.dayjs,"day")),V.isSelected=!!V.selected,V.isCurrent=E(V),V.disabled=j==null?void 0:j(te),V.customClass=ne==null?void 0:ne(te),ce},w=V=>{if(e.selectionMode==="week"){const[K,W]=e.showWeekNumber?[1,7]:[0,6],Z=B(V[K+1]);V[K].inRange=Z,V[K].start=Z,V[W].inRange=Z,V[W].end=Z}},b=C(()=>{const{minDate:V,maxDate:K,rangeState:W,showWeekNumber:Z}=e,j=r(f),ne=r(i),oe="day";let ce=1;if(Z)for(let te=0;te<6;te++)ne[te][0]||(ne[te][0]={type:"week",text:r(h).add(te*7+1,oe).week()});return JA({row:6,column:7},ne,{startDate:V,columnIndexOffset:Z?1:0,nextEndDate:W.endDate||K||W.selecting&&V||null,now:Be().locale(r(n)).startOf(oe),unit:oe,relativeDateGetter:te=>r(h).add(te-j,oe),setCellMetadata:(...te)=>{M(...te,ce)&&(ce+=1)},setRowMetadata:w}),ne});se(()=>e.date,async()=>{var V;(V=r(a))!=null&&V.contains(document.activeElement)&&(await Oe(),await S())});const S=async()=>{var V;return(V=r(l))==null?void 0:V.focus()},E=V=>e.selectionMode==="date"&&ec(V.type)&&O(V,e.parsedValue),O=(V,K)=>K?Be(K).locale(r(n)).isSame(e.date.date(Number(V.text)),"day"):!1,I=(V,K)=>{const W=V*7+(K-(e.showWeekNumber?1:0))-r(f);return r(h).add(W,"day")},N=V=>{var K;if(!e.rangeState.selecting)return;let W=V.target;if(W.tagName==="SPAN"&&(W=(K=W.parentNode)==null?void 0:K.parentNode),W.tagName==="DIV"&&(W=W.parentNode),W.tagName!=="TD")return;const Z=W.parentNode.rowIndex-1,j=W.cellIndex;r(b)[Z][j].disabled||(Z!==r(o)||j!==r(s))&&(o.value=Z,s.value=j,t("changerange",{selecting:!0,endDate:I(Z,j)}))},z=V=>!r(m)&&(V==null?void 0:V.text)===1&&V.type==="normal"||V.isCurrent,P=V=>{u||r(m)||e.selectionMode!=="date"||D(V,!0)},L=V=>{V.target.closest("td")&&(u=!0)},F=V=>{V.target.closest("td")&&(u=!1)},U=V=>{!e.rangeState.selecting||!e.minDate?(t("pick",{minDate:V,maxDate:null}),t("select",!0)):(V>=e.minDate?t("pick",{minDate:e.minDate,maxDate:V}):t("pick",{minDate:V,maxDate:e.minDate}),t("select",!1))},H=V=>{const K=V.week(),W=`${V.year()}w${K}`;t("pick",{year:V.year(),week:K,value:W,date:V.startOf("week")})},R=(V,K)=>{const W=K?xn(e.parsedValue).filter(Z=>(Z==null?void 0:Z.valueOf())!==V.valueOf()):xn(e.parsedValue).concat([V]);t("pick",W)},D=(V,K=!1)=>{const W=V.target.closest("td");if(!W)return;const Z=W.parentNode.rowIndex-1,j=W.cellIndex,ne=r(b)[Z][j];if(ne.disabled||ne.type==="week")return;const oe=I(Z,j);switch(e.selectionMode){case"range":{U(oe);break}case"date":{t("pick",oe,K);break}case"week":{H(oe);break}case"dates":{R(oe,!!ne.selected);break}}},B=V=>{if(e.selectionMode!=="week")return!1;let K=e.date.startOf("day");if(V.type==="prev-month"&&(K=K.subtract(1,"month")),V.type==="next-month"&&(K=K.add(1,"month")),K=K.date(Number.parseInt(V.text,10)),e.parsedValue&&!Ee(e.parsedValue)){const W=(e.parsedValue.day()-c+7)%7-1;return e.parsedValue.subtract(W,"day").isSame(K,"day")}return!1};return{WEEKS:v,rows:b,tbodyRef:a,currentCellRef:l,focus:S,isCurrent:E,isWeekActive:B,isSelectedCell:z,handlePickDate:D,handleMouseUp:F,handleMouseDown:L,handleMouseMove:N,handleFocus:P}},nV=(e,{isCurrent:t,isWeekActive:n})=>{const a=de("date-table"),{t:l}=ct(),o=C(()=>[a.b(),{"is-week-mode":e.selectionMode==="week"}]),s=C(()=>l("el.datepicker.dateTablePrompt")),i=C(()=>l("el.datepicker.week"));return{tableKls:o,tableLabel:s,weekLabel:i,getCellClasses:d=>{const f=[];return ec(d.type)&&!d.disabled?(f.push("available"),d.type==="today"&&f.push("today")):f.push(d.type),t(d)&&f.push("current"),d.inRange&&(ec(d.type)||e.selectionMode==="week")&&(f.push("in-range"),d.start&&f.push("start-date"),d.end&&f.push("end-date")),d.disabled&&f.push("disabled"),d.selected&&f.push("selected"),d.customClass&&f.push(d.customClass),f.join(" ")},getRowKls:d=>[a.e("row"),{current:n(d)}],t:l}},aV=pe({cell:{type:X(Object)}});var qd=T({name:"ElDatePickerCell",props:aV,setup(e){const t=de("date-table-cell"),{slots:n}=Se(zi);return()=>{const{cell:a}=e;return Q(n,"default",{...a},()=>{var l;return[q("div",{class:t.b()},[q("span",{class:t.e("text")},[(l=a==null?void 0:a.renderText)!=null?l:a==null?void 0:a.text])])]})}}});const lV=T({__name:"basic-date-table",props:QA,emits:eV,setup(e,{expose:t,emit:n}){const a=e,{WEEKS:l,rows:o,tbodyRef:s,currentCellRef:i,focus:u,isCurrent:c,isWeekActive:d,isSelectedCell:f,handlePickDate:h,handleMouseUp:v,handleMouseDown:m,handleMouseMove:p,handleFocus:y}=tV(a,n),{tableLabel:g,tableKls:M,weekLabel:w,getCellClasses:b,getRowKls:S,t:E}=nV(a,{isCurrent:c,isWeekActive:d});return t({focus:u}),(O,I)=>(_(),x("table",{"aria-label":r(g),class:$(r(M)),cellspacing:"0",cellpadding:"0",role:"grid",onClick:r(h),onMousemove:r(p),onMousedown:Ae(r(m),["prevent"]),onMouseup:r(v)},[k("tbody",{ref_key:"tbodyRef",ref:s},[k("tr",null,[O.showWeekNumber?(_(),x("th",{key:0,scope:"col"},he(r(w)),1)):ee("v-if",!0),(_(!0),x(ze,null,rt(r(l),(N,z)=>(_(),x("th",{key:z,"aria-label":r(E)("el.datepicker.weeksFull."+N),scope:"col"},he(r(E)("el.datepicker.weeks."+N)),9,["aria-label"]))),128))]),(_(!0),x(ze,null,rt(r(o),(N,z)=>(_(),x("tr",{key:z,class:$(r(S)(N[1]))},[(_(!0),x(ze,null,rt(N,(P,L)=>(_(),x("td",{key:`${z}.${L}`,ref_for:!0,ref:F=>r(f)(P)&&(i.value=F),class:$(r(b)(P)),"aria-current":P.isCurrent?"date":void 0,"aria-selected":P.isCurrent,tabindex:r(f)(P)?0:-1,onFocus:r(y)},[q(r(qd),{cell:P},null,8,["cell"])],42,["aria-current","aria-selected","tabindex","onFocus"]))),128))],2))),128))],512)],42,["aria-label","onClick","onMousemove","onMousedown","onMouseup"]))}});var tc=ve(lV,[["__file","basic-date-table.vue"]]);const oV=pe({...Fd,selectionMode:Wd("month")}),rV=T({__name:"basic-month-table",props:oV,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const a=e,l=de("month-table"),{t:o,lang:s}=ct(),i=A(),u=A(),c=A(a.date.locale("en").localeData().monthsShort().map(w=>w.toLowerCase())),d=A([[],[],[]]),f=A(),h=A(),v=C(()=>{var w,b;const S=d.value,E=Be().locale(s.value).startOf("month");for(let O=0;O<3;O++){const I=S[O];for(let N=0;N<4;N++){const z=I[N]||(I[N]={row:O,column:N,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1});z.type="normal";const P=O*4+N,L=a.date.startOf("year").month(P),F=a.rangeState.endDate||a.maxDate||a.rangeState.selecting&&a.minDate||null;z.inRange=!!(a.minDate&&L.isSameOrAfter(a.minDate,"month")&&F&&L.isSameOrBefore(F,"month"))||!!(a.minDate&&L.isSameOrBefore(a.minDate,"month")&&F&&L.isSameOrAfter(F,"month")),(w=a.minDate)!=null&&w.isSameOrAfter(F)?(z.start=!!(F&&L.isSame(F,"month")),z.end=a.minDate&&L.isSame(a.minDate,"month")):(z.start=!!(a.minDate&&L.isSame(a.minDate,"month")),z.end=!!(F&&L.isSame(F,"month"))),E.isSame(L)&&(z.type="today"),z.text=P,z.disabled=((b=a.disabledDate)==null?void 0:b.call(a,L.toDate()))||!1}}return S}),m=()=>{var w;(w=u.value)==null||w.focus()},p=w=>{const b={},S=a.date.year(),E=new Date,O=w.text;return b.disabled=a.disabledDate?Gs(S,O,s.value).every(a.disabledDate):!1,b.current=xn(a.parsedValue).findIndex(I=>Be.isDayjs(I)&&I.year()===S&&I.month()===O)>=0,b.today=E.getFullYear()===S&&E.getMonth()===O,w.inRange&&(b["in-range"]=!0,w.start&&(b["start-date"]=!0),w.end&&(b["end-date"]=!0)),b},y=w=>{const b=a.date.year(),S=w.text;return xn(a.date).findIndex(E=>E.year()===b&&E.month()===S)>=0},g=w=>{var b;if(!a.rangeState.selecting)return;let S=w.target;if(S.tagName==="SPAN"&&(S=(b=S.parentNode)==null?void 0:b.parentNode),S.tagName==="DIV"&&(S=S.parentNode),S.tagName!=="TD")return;const E=S.parentNode.rowIndex,O=S.cellIndex;v.value[E][O].disabled||(E!==f.value||O!==h.value)&&(f.value=E,h.value=O,n("changerange",{selecting:!0,endDate:a.date.startOf("year").month(E*4+O)}))},M=w=>{var b;const S=(b=w.target)==null?void 0:b.closest("td");if((S==null?void 0:S.tagName)!=="TD"||An(S,"disabled"))return;const E=S.cellIndex,I=S.parentNode.rowIndex*4+E,N=a.date.startOf("year").month(I);if(a.selectionMode==="months"){if(w.type==="keydown"){n("pick",xn(a.parsedValue),!1);return}const z=gr(a.date.year(),I,s.value,a.disabledDate),P=An(S,"current")?xn(a.parsedValue).filter(L=>(L==null?void 0:L.month())!==z.month()):xn(a.parsedValue).concat([Be(z)]);n("pick",P)}else a.selectionMode==="range"?a.rangeState.selecting?(a.minDate&&N>=a.minDate?n("pick",{minDate:a.minDate,maxDate:N}):n("pick",{minDate:N,maxDate:a.minDate}),n("select",!1)):(n("pick",{minDate:N,maxDate:null}),n("select",!0)):n("pick",I)};return se(()=>a.date,async()=>{var w,b;(w=i.value)!=null&&w.contains(document.activeElement)&&(await Oe(),(b=u.value)==null||b.focus())}),t({focus:m}),(w,b)=>(_(),x("table",{role:"grid","aria-label":r(o)("el.datepicker.monthTablePrompt"),class:$(r(l).b()),onClick:M,onMousemove:g},[k("tbody",{ref_key:"tbodyRef",ref:i},[(_(!0),x(ze,null,rt(r(v),(S,E)=>(_(),x("tr",{key:E},[(_(!0),x(ze,null,rt(S,(O,I)=>(_(),x("td",{key:I,ref_for:!0,ref:N=>y(O)&&(u.value=N),class:$(p(O)),"aria-selected":`${y(O)}`,"aria-label":r(o)(`el.datepicker.month${+O.text+1}`),tabindex:y(O)?0:-1,onKeydown:[kt(Ae(M,["prevent","stop"]),["space"]),kt(Ae(M,["prevent","stop"]),["enter"])]},[q(r(qd),{cell:{...O,renderText:r(o)("el.datepicker.months."+c.value[O.text])}},null,8,["cell"])],42,["aria-selected","aria-label","tabindex","onKeydown"]))),128))]))),128))],512)],42,["aria-label"]))}});var nc=ve(rV,[["__file","basic-month-table.vue"]]);const sV=pe({...Fd,selectionMode:Wd("year")}),iV=T({__name:"basic-year-table",props:sV,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const a=e,l=(b,S)=>{const E=Be(String(b)).locale(S).startOf("year"),I=E.endOf("year").dayOfYear();return ll(I).map(N=>E.add(N,"day").toDate())},o=de("year-table"),{t:s,lang:i}=ct(),u=A(),c=A(),d=C(()=>Math.floor(a.date.year()/10)*10),f=A([[],[],[]]),h=A(),v=A(),m=C(()=>{var b;const S=f.value,E=Be().locale(i.value).startOf("year");for(let O=0;O<3;O++){const I=S[O];for(let N=0;N<4&&!(O*4+N>=10);N++){let z=I[N];z||(z={row:O,column:N,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1}),z.type="normal";const P=O*4+N+d.value,L=Be().year(P),F=a.rangeState.endDate||a.maxDate||a.rangeState.selecting&&a.minDate||null;z.inRange=!!(a.minDate&&L.isSameOrAfter(a.minDate,"year")&&F&&L.isSameOrBefore(F,"year"))||!!(a.minDate&&L.isSameOrBefore(a.minDate,"year")&&F&&L.isSameOrAfter(F,"year")),(b=a.minDate)!=null&&b.isSameOrAfter(F)?(z.start=!!(F&&L.isSame(F,"year")),z.end=!!(a.minDate&&L.isSame(a.minDate,"year"))):(z.start=!!(a.minDate&&L.isSame(a.minDate,"year")),z.end=!!(F&&L.isSame(F,"year"))),E.isSame(L)&&(z.type="today"),z.text=P;const H=L.toDate();z.disabled=a.disabledDate&&a.disabledDate(H)||!1,I[N]=z}}return S}),p=()=>{var b;(b=c.value)==null||b.focus()},y=b=>{const S={},E=Be().locale(i.value),O=b.text;return S.disabled=a.disabledDate?l(O,i.value).every(a.disabledDate):!1,S.today=E.year()===O,S.current=xn(a.parsedValue).findIndex(I=>I.year()===O)>=0,b.inRange&&(S["in-range"]=!0,b.start&&(S["start-date"]=!0),b.end&&(S["end-date"]=!0)),S},g=b=>{const S=b.text;return xn(a.date).findIndex(E=>E.year()===S)>=0},M=b=>{var S;const E=(S=b.target)==null?void 0:S.closest("td");if(!E||!E.textContent||An(E,"disabled"))return;const O=E.cellIndex,N=E.parentNode.rowIndex*4+O+d.value,z=Be().year(N);if(a.selectionMode==="range")a.rangeState.selecting?(a.minDate&&z>=a.minDate?n("pick",{minDate:a.minDate,maxDate:z}):n("pick",{minDate:z,maxDate:a.minDate}),n("select",!1)):(n("pick",{minDate:z,maxDate:null}),n("select",!0));else if(a.selectionMode==="years"){if(b.type==="keydown"){n("pick",xn(a.parsedValue),!1);return}const P=Qu(z.startOf("year"),i.value,a.disabledDate),L=An(E,"current")?xn(a.parsedValue).filter(F=>(F==null?void 0:F.year())!==N):xn(a.parsedValue).concat([P]);n("pick",L)}else n("pick",N)},w=b=>{var S;if(!a.rangeState.selecting)return;const E=(S=b.target)==null?void 0:S.closest("td");if(!E)return;const O=E.parentNode.rowIndex,I=E.cellIndex;m.value[O][I].disabled||(O!==h.value||I!==v.value)&&(h.value=O,v.value=I,n("changerange",{selecting:!0,endDate:Be().year(d.value).add(O*4+I,"year")}))};return se(()=>a.date,async()=>{var b,S;(b=u.value)!=null&&b.contains(document.activeElement)&&(await Oe(),(S=c.value)==null||S.focus())}),t({focus:p}),(b,S)=>(_(),x("table",{role:"grid","aria-label":r(s)("el.datepicker.yearTablePrompt"),class:$(r(o).b()),onClick:M,onMousemove:w},[k("tbody",{ref_key:"tbodyRef",ref:u},[(_(!0),x(ze,null,rt(r(m),(E,O)=>(_(),x("tr",{key:O},[(_(!0),x(ze,null,rt(E,(I,N)=>(_(),x("td",{key:`${O}_${N}`,ref_for:!0,ref:z=>g(I)&&(c.value=z),class:$(["available",y(I)]),"aria-selected":g(I),"aria-label":String(I.text),tabindex:g(I)?0:-1,onKeydown:[kt(Ae(M,["prevent","stop"]),["space"]),kt(Ae(M,["prevent","stop"]),["enter"])]},[q(r(qd),{cell:I},null,8,["cell"])],42,["aria-selected","aria-label","tabindex","onKeydown"]))),128))]))),128))],512)],42,["aria-label"]))}});var ac=ve(iV,[["__file","basic-year-table.vue"]]);const uV=T({__name:"panel-date-pick",props:ZA,emits:["pick","set-picker-option","panel-change"],setup(e,{emit:t}){const n=e,a=(re,J,ue)=>!0,l=de("picker-panel"),o=de("date-picker"),s=Wa(),i=Xt(),{t:u,lang:c}=ct(),d=Se("EP_PICKER_BASE"),f=Se(Ii),{shortcuts:h,disabledDate:v,cellClassName:m,defaultTime:p}=d.props,y=mt(d.props,"defaultValue"),g=A(),M=A(Be().locale(c.value)),w=A(!1);let b=!1;const S=C(()=>Be(p).locale(c.value)),E=C(()=>M.value.month()),O=C(()=>M.value.year()),I=A([]),N=A(null),z=A(null),P=re=>I.value.length>0?a(re,I.value,n.format||"HH:mm:ss"):!0,L=re=>p&&!De.value&&!w.value&&!b?S.value.year(re.year()).month(re.month()).date(re.date()):te.value?re.millisecond(0):re.startOf("day"),F=(re,...J)=>{if(!re)t("pick",re,...J);else if(Ee(re)){const ue=re.map(L);t("pick",ue,...J)}else t("pick",L(re),...J);N.value=null,z.value=null,w.value=!1,b=!1},U=async(re,J)=>{if(K.value==="date"){re=re;let ue=n.parsedValue?n.parsedValue.year(re.year()).month(re.month()).date(re.date()):re;P(ue)||(ue=I.value[0][0].year(re.year()).month(re.month()).date(re.date())),M.value=ue,F(ue,te.value||J),n.type==="datetime"&&(await Oe(),bt())}else K.value==="week"?F(re.date):K.value==="dates"&&F(re,!0)},H=re=>{const J=re?"add":"subtract";M.value=M.value[J](1,"month"),Wt("month")},R=re=>{const J=M.value,ue=re?"add":"subtract";M.value=D.value==="year"?J[ue](10,"year"):J[ue](1,"year"),Wt("year")},D=A("date"),B=C(()=>{const re=u("el.datepicker.year");if(D.value==="year"){const J=Math.floor(O.value/10)*10;return re?`${J} ${re} - ${J+9} ${re}`:`${J} - ${J+9}`}return`${O.value} ${re}`}),V=re=>{const J=Qe(re.value)?re.value():re.value;if(J){b=!0,F(Be(J).locale(c.value));return}re.onClick&&re.onClick({attrs:s,slots:i,emit:t})},K=C(()=>{const{type:re}=n;return["week","month","months","year","years","dates"].includes(re)?re:"date"}),W=C(()=>K.value==="dates"||K.value==="months"||K.value==="years"),Z=C(()=>K.value==="date"?D.value:K.value),j=C(()=>!!h.length),ne=async(re,J)=>{K.value==="month"?(M.value=gr(M.value.year(),re,c.value,v),F(M.value,!1)):K.value==="months"?F(re,J??!0):(M.value=gr(M.value.year(),re,c.value,v),D.value="date",["month","year","date","week"].includes(K.value)&&(F(M.value,!0),await Oe(),bt())),Wt("month")},oe=async(re,J)=>{if(K.value==="year"){const ue=M.value.startOf("year").year(re);M.value=Qu(ue,c.value,v),F(M.value,!1)}else if(K.value==="years")F(re,J??!0);else{const ue=M.value.year(re);M.value=Qu(ue,c.value,v),D.value="month",["month","year","date","week"].includes(K.value)&&(F(M.value,!0),await Oe(),bt())}Wt("year")},ce=async re=>{D.value=re,await Oe(),bt()},te=C(()=>n.type==="datetime"||n.type==="datetimerange"),ie=C(()=>{const re=te.value||K.value==="dates",J=K.value==="years",ue=K.value==="months",Y=D.value==="date",ye=D.value==="year",Fe=D.value==="month";return re&&Y||J&&ye||ue&&Fe}),fe=C(()=>v?n.parsedValue?Ee(n.parsedValue)?v(n.parsedValue[0].toDate()):v(n.parsedValue.toDate()):!0:!1),Me=()=>{if(W.value)F(n.parsedValue);else{let re=n.parsedValue;if(!re){const J=Be(p).locale(c.value),ue=Ot();re=J.year(ue.year()).month(ue.month()).date(ue.date())}M.value=re,F(re)}},me=C(()=>v?v(Be().locale(c.value).toDate()):!1),le=()=>{const J=Be().locale(c.value).toDate();w.value=!0,(!v||!v(J))&&P(J)&&(M.value=Be().locale(c.value),F(M.value))},we=C(()=>n.timeFormat||Z1(n.format)),Le=C(()=>n.dateFormat||X1(n.format)),De=C(()=>{if(z.value)return z.value;if(!(!n.parsedValue&&!y.value))return(n.parsedValue||M.value).format(we.value)}),Ye=C(()=>{if(N.value)return N.value;if(!(!n.parsedValue&&!y.value))return(n.parsedValue||M.value).format(Le.value)}),$e=A(!1),Te=()=>{$e.value=!0},ke=()=>{$e.value=!1},He=re=>({hour:re.hour(),minute:re.minute(),second:re.second(),year:re.year(),month:re.month(),date:re.date()}),Xe=(re,J,ue)=>{const{hour:Y,minute:ye,second:Fe}=He(re),lt=n.parsedValue?n.parsedValue.hour(Y).minute(ye).second(Fe):re;M.value=lt,F(M.value,!0),ue||($e.value=J)},at=re=>{const J=Be(re,we.value).locale(c.value);if(J.isValid()&&P(J)){const{year:ue,month:Y,date:ye}=He(M.value);M.value=J.year(ue).month(Y).date(ye),z.value=null,$e.value=!1,F(M.value,!0)}},nt=re=>{const J=Be(re,Le.value).locale(c.value);if(J.isValid()){if(v&&v(J.toDate()))return;const{hour:ue,minute:Y,second:ye}=He(M.value);M.value=J.hour(ue).minute(Y).second(ye),N.value=null,F(M.value,!0)}},be=re=>Be.isDayjs(re)&&re.isValid()&&(v?!v(re.toDate()):!0),je=re=>Ee(re)?re.map(J=>J.format(n.format)):re.format(n.format),ft=re=>Be(re,n.format).locale(c.value),Ot=()=>{const re=Be(y.value).locale(c.value);if(!y.value){const J=S.value;return Be().hour(J.hour()).minute(J.minute()).second(J.second()).locale(c.value)}return re},bt=()=>{var re;["week","month","year","date"].includes(K.value)&&((re=g.value)==null||re.focus())},Pt=()=>{bt(),K.value==="week"&&un(Ce.down)},gt=re=>{const{code:J}=re;[Ce.up,Ce.down,Ce.left,Ce.right,Ce.home,Ce.end,Ce.pageUp,Ce.pageDown].includes(J)&&(un(J),re.stopPropagation(),re.preventDefault()),[Ce.enter,Ce.space,Ce.numpadEnter].includes(J)&&N.value===null&&z.value===null&&(re.preventDefault(),F(M.value,!1))},un=re=>{var J;const{up:ue,down:Y,left:ye,right:Fe,home:lt,end:Nt,pageUp:Ut,pageDown:Jt}=Ce,$t={year:{[ue]:-4,[Y]:4,[ye]:-1,[Fe]:1,offset:(It,In)=>It.setFullYear(It.getFullYear()+In)},month:{[ue]:-4,[Y]:4,[ye]:-1,[Fe]:1,offset:(It,In)=>It.setMonth(It.getMonth()+In)},week:{[ue]:-1,[Y]:1,[ye]:-1,[Fe]:1,offset:(It,In)=>It.setDate(It.getDate()+In*7)},date:{[ue]:-7,[Y]:7,[ye]:-1,[Fe]:1,[lt]:It=>-It.getDay(),[Nt]:It=>-It.getDay()+6,[Ut]:It=>-new Date(It.getFullYear(),It.getMonth(),0).getDate(),[Jt]:It=>new Date(It.getFullYear(),It.getMonth()+1,0).getDate(),offset:(It,In)=>It.setDate(It.getDate()+In)}},ln=M.value.toDate();for(;Math.abs(M.value.diff(ln,"year",!0))<1;){const It=$t[Z.value];if(!It)return;if(It.offset(ln,Qe(It[re])?It[re](ln):(J=It[re])!=null?J:0),v&&v(ln))break;const In=Be(ln).locale(c.value);M.value=In,t("pick",In,!0);break}},Wt=re=>{t("panel-change",M.value.toDate(),re,D.value)};return se(()=>K.value,re=>{if(["month","year"].includes(re)){D.value=re;return}else if(re==="years"){D.value="year";return}else if(re==="months"){D.value="month";return}D.value="date"},{immediate:!0}),se(()=>D.value,()=>{f==null||f.updatePopper()}),se(()=>y.value,re=>{re&&(M.value=Ot())},{immediate:!0}),se(()=>n.parsedValue,re=>{if(re){if(W.value||Ee(re))return;M.value=re}else M.value=Ot()},{immediate:!0}),t("set-picker-option",["isValidValue",be]),t("set-picker-option",["formatToString",je]),t("set-picker-option",["parseUserInput",ft]),t("set-picker-option",["handleFocusPicker",Pt]),(re,J)=>(_(),x("div",{class:$([r(l).b(),r(o).b(),{"has-sidebar":re.$slots.sidebar||r(j),"has-time":r(te)}])},[k("div",{class:$(r(l).e("body-wrapper"))},[Q(re.$slots,"sidebar",{class:$(r(l).e("sidebar"))}),r(j)?(_(),x("div",{key:0,class:$(r(l).e("sidebar"))},[(_(!0),x(ze,null,rt(r(h),(ue,Y)=>(_(),x("button",{key:Y,type:"button",class:$(r(l).e("shortcut")),onClick:ye=>V(ue)},he(ue.text),11,["onClick"]))),128))],2)):ee("v-if",!0),k("div",{class:$(r(l).e("body"))},[r(te)?(_(),x("div",{key:0,class:$(r(o).e("time-header"))},[k("span",{class:$(r(o).e("editor-wrap"))},[q(r(Sn),{placeholder:r(u)("el.datepicker.selectDate"),"model-value":r(Ye),size:"small","validate-event":!1,onInput:ue=>N.value=ue,onChange:nt},null,8,["placeholder","model-value","onInput"])],2),qe((_(),x("span",{class:$(r(o).e("editor-wrap"))},[q(r(Sn),{placeholder:r(u)("el.datepicker.selectTime"),"model-value":r(De),size:"small","validate-event":!1,onFocus:Te,onInput:ue=>z.value=ue,onChange:at},null,8,["placeholder","model-value","onInput"]),q(r(Ys),{visible:$e.value,format:r(we),"parsed-value":M.value,onPick:Xe},null,8,["visible","format","parsed-value"])],2)),[[r(Ka),ke]])],2)):ee("v-if",!0),qe(k("div",{class:$([r(o).e("header"),(D.value==="year"||D.value==="month")&&r(o).e("header--bordered")])},[k("span",{class:$(r(o).e("prev-btn"))},[k("button",{type:"button","aria-label":r(u)("el.datepicker.prevYear"),class:$(["d-arrow-left",r(l).e("icon-btn")]),onClick:ue=>R(!1)},[Q(re.$slots,"prev-year",{},()=>[q(r(xe),null,{default:G(()=>[q(r(Ba))]),_:1})])],10,["aria-label","onClick"]),qe(k("button",{type:"button","aria-label":r(u)("el.datepicker.prevMonth"),class:$([r(l).e("icon-btn"),"arrow-left"]),onClick:ue=>H(!1)},[Q(re.$slots,"prev-month",{},()=>[q(r(xe),null,{default:G(()=>[q(r(Ra))]),_:1})])],10,["aria-label","onClick"]),[[pt,D.value==="date"]])],2),k("span",{role:"button",class:$(r(o).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:kt(ue=>ce("year"),["enter"]),onClick:ue=>ce("year")},he(r(B)),43,["onKeydown","onClick"]),qe(k("span",{role:"button","aria-live":"polite",tabindex:"0",class:$([r(o).e("header-label"),{active:D.value==="month"}]),onKeydown:kt(ue=>ce("month"),["enter"]),onClick:ue=>ce("month")},he(r(u)(`el.datepicker.month${r(E)+1}`)),43,["onKeydown","onClick"]),[[pt,D.value==="date"]]),k("span",{class:$(r(o).e("next-btn"))},[qe(k("button",{type:"button","aria-label":r(u)("el.datepicker.nextMonth"),class:$([r(l).e("icon-btn"),"arrow-right"]),onClick:ue=>H(!0)},[Q(re.$slots,"next-month",{},()=>[q(r(xe),null,{default:G(()=>[q(r(En))]),_:1})])],10,["aria-label","onClick"]),[[pt,D.value==="date"]]),k("button",{type:"button","aria-label":r(u)("el.datepicker.nextYear"),class:$([r(l).e("icon-btn"),"d-arrow-right"]),onClick:ue=>R(!0)},[Q(re.$slots,"next-year",{},()=>[q(r(xe),null,{default:G(()=>[q(r(Ha))]),_:1})])],10,["aria-label","onClick"])],2)],2),[[pt,D.value!=="time"]]),k("div",{class:$(r(l).e("content")),onKeydown:gt},[D.value==="date"?(_(),ae(tc,{key:0,ref_key:"currentViewRef",ref:g,"selection-mode":r(K),date:M.value,"parsed-value":re.parsedValue,"disabled-date":r(v),"cell-class-name":r(m),onPick:U},null,8,["selection-mode","date","parsed-value","disabled-date","cell-class-name"])):ee("v-if",!0),D.value==="year"?(_(),ae(ac,{key:1,ref_key:"currentViewRef",ref:g,"selection-mode":r(K),date:M.value,"disabled-date":r(v),"parsed-value":re.parsedValue,onPick:oe},null,8,["selection-mode","date","disabled-date","parsed-value"])):ee("v-if",!0),D.value==="month"?(_(),ae(nc,{key:2,ref_key:"currentViewRef",ref:g,"selection-mode":r(K),date:M.value,"parsed-value":re.parsedValue,"disabled-date":r(v),onPick:ne},null,8,["selection-mode","date","parsed-value","disabled-date"])):ee("v-if",!0)],34)],2)],2),qe(k("div",{class:$(r(l).e("footer"))},[qe(q(r(en),{text:"",size:"small",class:$(r(l).e("link-btn")),disabled:r(me),onClick:le},{default:G(()=>[ot(he(r(u)("el.datepicker.now")),1)]),_:1},8,["class","disabled"]),[[pt,!r(W)&&re.showNow]]),q(r(en),{plain:"",size:"small",class:$(r(l).e("link-btn")),disabled:r(fe),onClick:Me},{default:G(()=>[ot(he(r(u)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])],2),[[pt,r(ie)]])],2))}});var cV=ve(uV,[["__file","panel-date-pick.vue"]]);const dV=pe({...Nh,...Kd,visible:Boolean}),Ih=e=>{const{emit:t}=Ze(),n=Wa(),a=Xt();return o=>{const s=Qe(o.value)?o.value():o.value;if(s){t("pick",[Be(s[0]).locale(e.value),Be(s[1]).locale(e.value)]);return}o.onClick&&o.onClick({attrs:n,slots:a,emit:t})}},Ph=(e,{defaultValue:t,leftDate:n,rightDate:a,unit:l,onParsedValueChanged:o})=>{const{emit:s}=Ze(),{pickerNs:i}=Se(zi),u=de("date-range-picker"),{t:c,lang:d}=ct(),f=Ih(d),h=A(),v=A(),m=A({endDate:null,selecting:!1}),p=b=>{m.value=b},y=(b=!1)=>{const S=r(h),E=r(v);bo([S,E])&&s("pick",[S,E],b)},g=b=>{m.value.selecting=b,b||(m.value.endDate=null)},M=b=>{if(Ee(b)&&b.length===2){const[S,E]=b;h.value=S,n.value=S,v.value=E,o(r(h),r(v))}else w()},w=()=>{const[b,S]=jd(r(t),{lang:r(d),unit:l,unlinkPanels:e.unlinkPanels});h.value=void 0,v.value=void 0,n.value=b,a.value=S};return se(t,b=>{b&&w()},{immediate:!0}),se(()=>e.parsedValue,M,{immediate:!0}),{minDate:h,maxDate:v,rangeState:m,lang:d,ppNs:i,drpNs:u,handleChangeRange:p,handleRangeConfirm:y,handleShortcutClick:f,onSelect:g,onReset:M,t:c}},as="month",fV=T({__name:"panel-date-range",props:dV,emits:["pick","set-picker-option","calendar-change","panel-change"],setup(e,{emit:t}){const n=e,a=Se("EP_PICKER_BASE"),{disabledDate:l,cellClassName:o,defaultTime:s,clearable:i}=a.props,u=mt(a.props,"format"),c=mt(a.props,"shortcuts"),d=mt(a.props,"defaultValue"),{lang:f}=ct(),h=A(Be().locale(f.value)),v=A(Be().locale(f.value).add(1,as)),{minDate:m,maxDate:p,rangeState:y,ppNs:g,drpNs:M,handleChangeRange:w,handleRangeConfirm:b,handleShortcutClick:S,onSelect:E,onReset:O,t:I}=Ph(n,{defaultValue:d,leftDate:h,rightDate:v,unit:as,onParsedValueChanged:re});se(()=>n.visible,J=>{!J&&y.value.selecting&&(O(n.parsedValue),E(!1))});const N=A({min:null,max:null}),z=A({min:null,max:null}),P=C(()=>`${h.value.year()} ${I("el.datepicker.year")} ${I(`el.datepicker.month${h.value.month()+1}`)}`),L=C(()=>`${v.value.year()} ${I("el.datepicker.year")} ${I(`el.datepicker.month${v.value.month()+1}`)}`),F=C(()=>h.value.year()),U=C(()=>h.value.month()),H=C(()=>v.value.year()),R=C(()=>v.value.month()),D=C(()=>!!c.value.length),B=C(()=>N.value.min!==null?N.value.min:m.value?m.value.format(j.value):""),V=C(()=>N.value.max!==null?N.value.max:p.value||m.value?(p.value||m.value).format(j.value):""),K=C(()=>z.value.min!==null?z.value.min:m.value?m.value.format(Z.value):""),W=C(()=>z.value.max!==null?z.value.max:p.value||m.value?(p.value||m.value).format(Z.value):""),Z=C(()=>n.timeFormat||Z1(u.value)),j=C(()=>n.dateFormat||X1(u.value)),ne=J=>bo(J)&&(l?!l(J[0].toDate())&&!l(J[1].toDate()):!0),oe=()=>{h.value=h.value.subtract(1,"year"),n.unlinkPanels||(v.value=h.value.add(1,"month")),we("year")},ce=()=>{h.value=h.value.subtract(1,"month"),n.unlinkPanels||(v.value=h.value.add(1,"month")),we("month")},te=()=>{n.unlinkPanels?v.value=v.value.add(1,"year"):(h.value=h.value.add(1,"year"),v.value=h.value.add(1,"month")),we("year")},ie=()=>{n.unlinkPanels?v.value=v.value.add(1,"month"):(h.value=h.value.add(1,"month"),v.value=h.value.add(1,"month")),we("month")},fe=()=>{h.value=h.value.add(1,"year"),we("year")},Me=()=>{h.value=h.value.add(1,"month"),we("month")},me=()=>{v.value=v.value.subtract(1,"year"),we("year")},le=()=>{v.value=v.value.subtract(1,"month"),we("month")},we=J=>{t("panel-change",[h.value.toDate(),v.value.toDate()],J)},Le=C(()=>{const J=(U.value+1)%12,ue=U.value+1>=12?1:0;return n.unlinkPanels&&new Date(F.value+ue,J)n.unlinkPanels&&H.value*12+R.value-(F.value*12+U.value+1)>=12),Ye=C(()=>!(m.value&&p.value&&!y.value.selecting&&bo([m.value,p.value]))),$e=C(()=>n.type==="datetime"||n.type==="datetimerange"),Te=(J,ue)=>{if(J)return s?Be(s[ue]||s).locale(f.value).year(J.year()).month(J.month()).date(J.date()):J},ke=(J,ue=!0)=>{const Y=J.minDate,ye=J.maxDate,Fe=Te(Y,0),lt=Te(ye,1);p.value===lt&&m.value===Fe||(t("calendar-change",[Y.toDate(),ye&&ye.toDate()]),p.value=lt,m.value=Fe,!(!ue||$e.value)&&b())},He=A(!1),Xe=A(!1),at=()=>{He.value=!1},nt=()=>{Xe.value=!1},be=(J,ue)=>{N.value[ue]=J;const Y=Be(J,j.value).locale(f.value);if(Y.isValid()){if(l&&l(Y.toDate()))return;ue==="min"?(h.value=Y,m.value=(m.value||h.value).year(Y.year()).month(Y.month()).date(Y.date()),!n.unlinkPanels&&(!p.value||p.value.isBefore(m.value))&&(v.value=Y.add(1,"month"),p.value=m.value.add(1,"month"))):(v.value=Y,p.value=(p.value||v.value).year(Y.year()).month(Y.month()).date(Y.date()),!n.unlinkPanels&&(!m.value||m.value.isAfter(p.value))&&(h.value=Y.subtract(1,"month"),m.value=p.value.subtract(1,"month")))}},je=(J,ue)=>{N.value[ue]=null},ft=(J,ue)=>{z.value[ue]=J;const Y=Be(J,Z.value).locale(f.value);Y.isValid()&&(ue==="min"?(He.value=!0,m.value=(m.value||h.value).hour(Y.hour()).minute(Y.minute()).second(Y.second())):(Xe.value=!0,p.value=(p.value||v.value).hour(Y.hour()).minute(Y.minute()).second(Y.second()),v.value=p.value))},Ot=(J,ue)=>{z.value[ue]=null,ue==="min"?(h.value=m.value,He.value=!1,(!p.value||p.value.isBefore(m.value))&&(p.value=m.value)):(v.value=p.value,Xe.value=!1,p.value&&p.value.isBefore(m.value)&&(m.value=p.value))},bt=(J,ue,Y)=>{z.value.min||(J&&(h.value=J,m.value=(m.value||h.value).hour(J.hour()).minute(J.minute()).second(J.second())),Y||(He.value=ue),(!p.value||p.value.isBefore(m.value))&&(p.value=m.value,v.value=J))},Pt=(J,ue,Y)=>{z.value.max||(J&&(v.value=J,p.value=(p.value||v.value).hour(J.hour()).minute(J.minute()).second(J.second())),Y||(Xe.value=ue),p.value&&p.value.isBefore(m.value)&&(m.value=p.value))},gt=()=>{h.value=jd(r(d),{lang:r(f),unit:"month",unlinkPanels:n.unlinkPanels})[0],v.value=h.value.add(1,"month"),p.value=void 0,m.value=void 0,t("pick",null)},un=J=>Ee(J)?J.map(ue=>ue.format(u.value)):J.format(u.value),Wt=J=>Ee(J)?J.map(ue=>Be(ue,u.value).locale(f.value)):Be(J,u.value).locale(f.value);function re(J,ue){if(n.unlinkPanels&&ue){const Y=(J==null?void 0:J.year())||0,ye=(J==null?void 0:J.month())||0,Fe=ue.year(),lt=ue.month();v.value=Y===Fe&&ye===lt?ue.add(1,as):ue}else v.value=h.value.add(1,as),ue&&(v.value=v.value.hour(ue.hour()).minute(ue.minute()).second(ue.second()))}return t("set-picker-option",["isValidValue",ne]),t("set-picker-option",["parseUserInput",Wt]),t("set-picker-option",["formatToString",un]),t("set-picker-option",["handleClear",gt]),(J,ue)=>(_(),x("div",{class:$([r(g).b(),r(M).b(),{"has-sidebar":J.$slots.sidebar||r(D),"has-time":r($e)}])},[k("div",{class:$(r(g).e("body-wrapper"))},[Q(J.$slots,"sidebar",{class:$(r(g).e("sidebar"))}),r(D)?(_(),x("div",{key:0,class:$(r(g).e("sidebar"))},[(_(!0),x(ze,null,rt(r(c),(Y,ye)=>(_(),x("button",{key:ye,type:"button",class:$(r(g).e("shortcut")),onClick:Fe=>r(S)(Y)},he(Y.text),11,["onClick"]))),128))],2)):ee("v-if",!0),k("div",{class:$(r(g).e("body"))},[r($e)?(_(),x("div",{key:0,class:$(r(M).e("time-header"))},[k("span",{class:$(r(M).e("editors-wrap"))},[k("span",{class:$(r(M).e("time-picker-wrap"))},[q(r(Sn),{size:"small",disabled:r(y).selecting,placeholder:r(I)("el.datepicker.startDate"),class:$(r(M).e("editor")),"model-value":r(B),"validate-event":!1,onInput:Y=>be(Y,"min"),onChange:Y=>je(Y,"min")},null,8,["disabled","placeholder","class","model-value","onInput","onChange"])],2),qe((_(),x("span",{class:$(r(M).e("time-picker-wrap"))},[q(r(Sn),{size:"small",class:$(r(M).e("editor")),disabled:r(y).selecting,placeholder:r(I)("el.datepicker.startTime"),"model-value":r(K),"validate-event":!1,onFocus:Y=>He.value=!0,onInput:Y=>ft(Y,"min"),onChange:Y=>Ot(Y,"min")},null,8,["class","disabled","placeholder","model-value","onFocus","onInput","onChange"]),q(r(Ys),{visible:He.value,format:r(Z),"datetime-role":"start","parsed-value":h.value,onPick:bt},null,8,["visible","format","parsed-value"])],2)),[[r(Ka),at]])],2),k("span",null,[q(r(xe),null,{default:G(()=>[q(r(En))]),_:1})]),k("span",{class:$([r(M).e("editors-wrap"),"is-right"])},[k("span",{class:$(r(M).e("time-picker-wrap"))},[q(r(Sn),{size:"small",class:$(r(M).e("editor")),disabled:r(y).selecting,placeholder:r(I)("el.datepicker.endDate"),"model-value":r(V),readonly:!r(m),"validate-event":!1,onInput:Y=>be(Y,"max"),onChange:Y=>je(Y,"max")},null,8,["class","disabled","placeholder","model-value","readonly","onInput","onChange"])],2),qe((_(),x("span",{class:$(r(M).e("time-picker-wrap"))},[q(r(Sn),{size:"small",class:$(r(M).e("editor")),disabled:r(y).selecting,placeholder:r(I)("el.datepicker.endTime"),"model-value":r(W),readonly:!r(m),"validate-event":!1,onFocus:Y=>r(m)&&(Xe.value=!0),onInput:Y=>ft(Y,"max"),onChange:Y=>Ot(Y,"max")},null,8,["class","disabled","placeholder","model-value","readonly","onFocus","onInput","onChange"]),q(r(Ys),{"datetime-role":"end",visible:Xe.value,format:r(Z),"parsed-value":v.value,onPick:Pt},null,8,["visible","format","parsed-value"])],2)),[[r(Ka),nt]])],2)],2)):ee("v-if",!0),k("div",{class:$([[r(g).e("content"),r(M).e("content")],"is-left"])},[k("div",{class:$(r(M).e("header"))},[k("button",{type:"button",class:$([r(g).e("icon-btn"),"d-arrow-left"]),"aria-label":r(I)("el.datepicker.prevYear"),onClick:oe},[Q(J.$slots,"prev-year",{},()=>[q(r(xe),null,{default:G(()=>[q(r(Ba))]),_:1})])],10,["aria-label"]),k("button",{type:"button",class:$([r(g).e("icon-btn"),"arrow-left"]),"aria-label":r(I)("el.datepicker.prevMonth"),onClick:ce},[Q(J.$slots,"prev-month",{},()=>[q(r(xe),null,{default:G(()=>[q(r(Ra))]),_:1})])],10,["aria-label"]),J.unlinkPanels?(_(),x("button",{key:0,type:"button",disabled:!r(De),class:$([[r(g).e("icon-btn"),{"is-disabled":!r(De)}],"d-arrow-right"]),"aria-label":r(I)("el.datepicker.nextYear"),onClick:fe},[Q(J.$slots,"next-year",{},()=>[q(r(xe),null,{default:G(()=>[q(r(Ha))]),_:1})])],10,["disabled","aria-label"])):ee("v-if",!0),J.unlinkPanels?(_(),x("button",{key:1,type:"button",disabled:!r(Le),class:$([[r(g).e("icon-btn"),{"is-disabled":!r(Le)}],"arrow-right"]),"aria-label":r(I)("el.datepicker.nextMonth"),onClick:Me},[Q(J.$slots,"next-month",{},()=>[q(r(xe),null,{default:G(()=>[q(r(En))]),_:1})])],10,["disabled","aria-label"])):ee("v-if",!0),k("div",null,he(r(P)),1)],2),q(tc,{"selection-mode":"range",date:h.value,"min-date":r(m),"max-date":r(p),"range-state":r(y),"disabled-date":r(l),"cell-class-name":r(o),onChangerange:r(w),onPick:ke,onSelect:r(E)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2),k("div",{class:$([[r(g).e("content"),r(M).e("content")],"is-right"])},[k("div",{class:$(r(M).e("header"))},[J.unlinkPanels?(_(),x("button",{key:0,type:"button",disabled:!r(De),class:$([[r(g).e("icon-btn"),{"is-disabled":!r(De)}],"d-arrow-left"]),"aria-label":r(I)("el.datepicker.prevYear"),onClick:me},[Q(J.$slots,"prev-year",{},()=>[q(r(xe),null,{default:G(()=>[q(r(Ba))]),_:1})])],10,["disabled","aria-label"])):ee("v-if",!0),J.unlinkPanels?(_(),x("button",{key:1,type:"button",disabled:!r(Le),class:$([[r(g).e("icon-btn"),{"is-disabled":!r(Le)}],"arrow-left"]),"aria-label":r(I)("el.datepicker.prevMonth"),onClick:le},[Q(J.$slots,"prev-month",{},()=>[q(r(xe),null,{default:G(()=>[q(r(Ra))]),_:1})])],10,["disabled","aria-label"])):ee("v-if",!0),k("button",{type:"button","aria-label":r(I)("el.datepicker.nextYear"),class:$([r(g).e("icon-btn"),"d-arrow-right"]),onClick:te},[Q(J.$slots,"next-year",{},()=>[q(r(xe),null,{default:G(()=>[q(r(Ha))]),_:1})])],10,["aria-label"]),k("button",{type:"button",class:$([r(g).e("icon-btn"),"arrow-right"]),"aria-label":r(I)("el.datepicker.nextMonth"),onClick:ie},[Q(J.$slots,"next-month",{},()=>[q(r(xe),null,{default:G(()=>[q(r(En))]),_:1})])],10,["aria-label"]),k("div",null,he(r(L)),1)],2),q(tc,{"selection-mode":"range",date:v.value,"min-date":r(m),"max-date":r(p),"range-state":r(y),"disabled-date":r(l),"cell-class-name":r(o),onChangerange:r(w),onPick:ke,onSelect:r(E)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2)],2)],2),r($e)?(_(),x("div",{key:0,class:$(r(g).e("footer"))},[r(i)?(_(),ae(r(en),{key:0,text:"",size:"small",class:$(r(g).e("link-btn")),onClick:gt},{default:G(()=>[ot(he(r(I)("el.datepicker.clear")),1)]),_:1},8,["class"])):ee("v-if",!0),q(r(en),{plain:"",size:"small",class:$(r(g).e("link-btn")),disabled:r(Ye),onClick:Y=>r(b)(!1)},{default:G(()=>[ot(he(r(I)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled","onClick"])],2)):ee("v-if",!0)],2))}});var pV=ve(fV,[["__file","panel-date-range.vue"]]);const vV=pe({...Kd}),hV=["pick","set-picker-option","calendar-change"],mV=({unlinkPanels:e,leftDate:t,rightDate:n})=>{const{t:a}=ct(),l=()=>{t.value=t.value.subtract(1,"year"),e.value||(n.value=n.value.subtract(1,"year"))},o=()=>{e.value||(t.value=t.value.add(1,"year")),n.value=n.value.add(1,"year")},s=()=>{t.value=t.value.add(1,"year")},i=()=>{n.value=n.value.subtract(1,"year")},u=C(()=>`${t.value.year()} ${a("el.datepicker.year")}`),c=C(()=>`${n.value.year()} ${a("el.datepicker.year")}`),d=C(()=>t.value.year()),f=C(()=>n.value.year()===t.value.year()?t.value.year()+1:n.value.year());return{leftPrevYear:l,rightNextYear:o,leftNextYear:s,rightPrevYear:i,leftLabel:u,rightLabel:c,leftYear:d,rightYear:f}},ls="year",gV=T({name:"DatePickerMonthRange"}),yV=T({...gV,props:vV,emits:hV,setup(e,{emit:t}){const n=e,{lang:a}=ct(),l=Se("EP_PICKER_BASE"),{shortcuts:o,disabledDate:s}=l.props,i=mt(l.props,"format"),u=mt(l.props,"defaultValue"),c=A(Be().locale(a.value)),d=A(Be().locale(a.value).add(1,ls)),{minDate:f,maxDate:h,rangeState:v,ppNs:m,drpNs:p,handleChangeRange:y,handleRangeConfirm:g,handleShortcutClick:M,onSelect:w}=Ph(n,{defaultValue:u,leftDate:c,rightDate:d,unit:ls,onParsedValueChanged:B}),b=C(()=>!!o.length),{leftPrevYear:S,rightNextYear:E,leftNextYear:O,rightPrevYear:I,leftLabel:N,rightLabel:z,leftYear:P,rightYear:L}=mV({unlinkPanels:mt(n,"unlinkPanels"),leftDate:c,rightDate:d}),F=C(()=>n.unlinkPanels&&L.value>P.value+1),U=(V,K=!0)=>{const W=V.minDate,Z=V.maxDate;h.value===Z&&f.value===W||(t("calendar-change",[W.toDate(),Z&&Z.toDate()]),h.value=Z,f.value=W,K&&g())},H=()=>{c.value=jd(r(u),{lang:r(a),unit:"year",unlinkPanels:n.unlinkPanels})[0],d.value=c.value.add(1,"year"),t("pick",null)},R=V=>Ee(V)?V.map(K=>K.format(i.value)):V.format(i.value),D=V=>Ee(V)?V.map(K=>Be(K,i.value).locale(a.value)):Be(V,i.value).locale(a.value);function B(V,K){if(n.unlinkPanels&&K){const W=(V==null?void 0:V.year())||0,Z=K.year();d.value=W===Z?K.add(1,ls):K}else d.value=c.value.add(1,ls)}return t("set-picker-option",["isValidValue",bo]),t("set-picker-option",["formatToString",R]),t("set-picker-option",["parseUserInput",D]),t("set-picker-option",["handleClear",H]),(V,K)=>(_(),x("div",{class:$([r(m).b(),r(p).b(),{"has-sidebar":!!V.$slots.sidebar||r(b)}])},[k("div",{class:$(r(m).e("body-wrapper"))},[Q(V.$slots,"sidebar",{class:$(r(m).e("sidebar"))}),r(b)?(_(),x("div",{key:0,class:$(r(m).e("sidebar"))},[(_(!0),x(ze,null,rt(r(o),(W,Z)=>(_(),x("button",{key:Z,type:"button",class:$(r(m).e("shortcut")),onClick:j=>r(M)(W)},he(W.text),11,["onClick"]))),128))],2)):ee("v-if",!0),k("div",{class:$(r(m).e("body"))},[k("div",{class:$([[r(m).e("content"),r(p).e("content")],"is-left"])},[k("div",{class:$(r(p).e("header"))},[k("button",{type:"button",class:$([r(m).e("icon-btn"),"d-arrow-left"]),onClick:r(S)},[Q(V.$slots,"prev-year",{},()=>[q(r(xe),null,{default:G(()=>[q(r(Ba))]),_:1})])],10,["onClick"]),V.unlinkPanels?(_(),x("button",{key:0,type:"button",disabled:!r(F),class:$([[r(m).e("icon-btn"),{[r(m).is("disabled")]:!r(F)}],"d-arrow-right"]),onClick:r(O)},[Q(V.$slots,"next-year",{},()=>[q(r(xe),null,{default:G(()=>[q(r(Ha))]),_:1})])],10,["disabled","onClick"])):ee("v-if",!0),k("div",null,he(r(N)),1)],2),q(nc,{"selection-mode":"range",date:c.value,"min-date":r(f),"max-date":r(h),"range-state":r(v),"disabled-date":r(s),onChangerange:r(y),onPick:U,onSelect:r(w)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2),k("div",{class:$([[r(m).e("content"),r(p).e("content")],"is-right"])},[k("div",{class:$(r(p).e("header"))},[V.unlinkPanels?(_(),x("button",{key:0,type:"button",disabled:!r(F),class:$([[r(m).e("icon-btn"),{"is-disabled":!r(F)}],"d-arrow-left"]),onClick:r(I)},[Q(V.$slots,"prev-year",{},()=>[q(r(xe),null,{default:G(()=>[q(r(Ba))]),_:1})])],10,["disabled","onClick"])):ee("v-if",!0),k("button",{type:"button",class:$([r(m).e("icon-btn"),"d-arrow-right"]),onClick:r(E)},[Q(V.$slots,"next-year",{},()=>[q(r(xe),null,{default:G(()=>[q(r(Ha))]),_:1})])],10,["onClick"]),k("div",null,he(r(z)),1)],2),q(nc,{"selection-mode":"range",date:d.value,"min-date":r(f),"max-date":r(h),"range-state":r(v),"disabled-date":r(s),onChangerange:r(y),onPick:U,onSelect:r(w)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2)],2)],2)],2))}});var _V=ve(yV,[["__file","panel-month-range.vue"]]);const bV=pe({...Kd}),wV=["pick","set-picker-option","calendar-change"],CV=({unlinkPanels:e,leftDate:t,rightDate:n})=>{const a=()=>{t.value=t.value.subtract(10,"year"),e.value||(n.value=n.value.subtract(10,"year"))},l=()=>{e.value||(t.value=t.value.add(10,"year")),n.value=n.value.add(10,"year")},o=()=>{t.value=t.value.add(10,"year")},s=()=>{n.value=n.value.subtract(10,"year")},i=C(()=>{const f=Math.floor(t.value.year()/10)*10;return`${f}-${f+9}`}),u=C(()=>{const f=Math.floor(n.value.year()/10)*10;return`${f}-${f+9}`}),c=C(()=>Math.floor(t.value.year()/10)*10+9),d=C(()=>Math.floor(n.value.year()/10)*10);return{leftPrevYear:a,rightNextYear:l,leftNextYear:o,rightPrevYear:s,leftLabel:i,rightLabel:u,leftYear:c,rightYear:d}},O2="year",SV=T({name:"DatePickerYearRange"}),kV=T({...SV,props:bV,emits:wV,setup(e,{emit:t}){const n=e,{lang:a}=ct(),l=A(Be().locale(a.value)),o=A(l.value.add(10,"year")),{pickerNs:s}=Se(zi),i=de("date-range-picker"),u=C(()=>!!U.length),c=C(()=>[s.b(),i.b(),{"has-sidebar":!!Xt().sidebar||u.value}]),d=C(()=>({content:[s.e("content"),i.e("content"),"is-left"],arrowLeftBtn:[s.e("icon-btn"),"d-arrow-left"],arrowRightBtn:[s.e("icon-btn"),{[s.is("disabled")]:!S.value},"d-arrow-right"]})),f=C(()=>({content:[s.e("content"),i.e("content"),"is-right"],arrowLeftBtn:[s.e("icon-btn"),{"is-disabled":!S.value},"d-arrow-left"],arrowRightBtn:[s.e("icon-btn"),"d-arrow-right"]})),h=Ih(a),{leftPrevYear:v,rightNextYear:m,leftNextYear:p,rightPrevYear:y,leftLabel:g,rightLabel:M,leftYear:w,rightYear:b}=CV({unlinkPanels:mt(n,"unlinkPanels"),leftDate:l,rightDate:o}),S=C(()=>n.unlinkPanels&&b.value>w.value+1),E=A(),O=A(),I=A({endDate:null,selecting:!1}),N=j=>{I.value=j},z=(j,ne=!0)=>{const oe=j.minDate,ce=j.maxDate;O.value===ce&&E.value===oe||(t("calendar-change",[oe.toDate(),ce&&ce.toDate()]),O.value=ce,E.value=oe,ne&&P())},P=(j=!1)=>{bo([E.value,O.value])&&t("pick",[E.value,O.value],j)},L=j=>{I.value.selecting=j,j||(I.value.endDate=null)},F=Se("EP_PICKER_BASE"),{shortcuts:U,disabledDate:H}=F.props,R=mt(F.props,"format"),D=mt(F.props,"defaultValue"),B=()=>{let j;if(Ee(D.value)){const ne=Be(D.value[0]);let oe=Be(D.value[1]);return n.unlinkPanels||(oe=ne.add(10,O2)),[ne,oe]}else D.value?j=Be(D.value):j=Be();return j=j.locale(a.value),[j,j.add(10,O2)]};se(()=>D.value,j=>{if(j){const ne=B();l.value=ne[0],o.value=ne[1]}},{immediate:!0}),se(()=>n.parsedValue,j=>{if(j&&j.length===2)if(E.value=j[0],O.value=j[1],l.value=E.value,n.unlinkPanels&&O.value){const ne=E.value.year(),oe=O.value.year();o.value=ne===oe?O.value.add(10,"year"):O.value}else o.value=l.value.add(10,"year");else{const ne=B();E.value=void 0,O.value=void 0,l.value=ne[0],o.value=ne[1]}},{immediate:!0});const V=j=>Ee(j)?j.map(ne=>Be(ne,R.value).locale(a.value)):Be(j,R.value).locale(a.value),K=j=>Ee(j)?j.map(ne=>ne.format(R.value)):j.format(R.value),W=j=>bo(j)&&(H?!H(j[0].toDate())&&!H(j[1].toDate()):!0),Z=()=>{const j=B();l.value=j[0],o.value=j[1],O.value=void 0,E.value=void 0,t("pick",null)};return t("set-picker-option",["isValidValue",W]),t("set-picker-option",["parseUserInput",V]),t("set-picker-option",["formatToString",K]),t("set-picker-option",["handleClear",Z]),(j,ne)=>(_(),x("div",{class:$(r(c))},[k("div",{class:$(r(s).e("body-wrapper"))},[Q(j.$slots,"sidebar",{class:$(r(s).e("sidebar"))}),r(u)?(_(),x("div",{key:0,class:$(r(s).e("sidebar"))},[(_(!0),x(ze,null,rt(r(U),(oe,ce)=>(_(),x("button",{key:ce,type:"button",class:$(r(s).e("shortcut")),onClick:te=>r(h)(oe)},he(oe.text),11,["onClick"]))),128))],2)):ee("v-if",!0),k("div",{class:$(r(s).e("body"))},[k("div",{class:$(r(d).content)},[k("div",{class:$(r(i).e("header"))},[k("button",{type:"button",class:$(r(d).arrowLeftBtn),onClick:r(v)},[Q(j.$slots,"prev-year",{},()=>[q(r(xe),null,{default:G(()=>[q(r(Ba))]),_:1})])],10,["onClick"]),j.unlinkPanels?(_(),x("button",{key:0,type:"button",disabled:!r(S),class:$(r(d).arrowRightBtn),onClick:r(p)},[Q(j.$slots,"next-year",{},()=>[q(r(xe),null,{default:G(()=>[q(r(Ha))]),_:1})])],10,["disabled","onClick"])):ee("v-if",!0),k("div",null,he(r(g)),1)],2),q(ac,{"selection-mode":"range",date:l.value,"min-date":E.value,"max-date":O.value,"range-state":I.value,"disabled-date":r(H),onChangerange:N,onPick:z,onSelect:L},null,8,["date","min-date","max-date","range-state","disabled-date"])],2),k("div",{class:$(r(f).content)},[k("div",{class:$(r(i).e("header"))},[j.unlinkPanels?(_(),x("button",{key:0,type:"button",disabled:!r(S),class:$(r(f).arrowLeftBtn),onClick:r(y)},[Q(j.$slots,"prev-year",{},()=>[q(r(xe),null,{default:G(()=>[q(r(Ba))]),_:1})])],10,["disabled","onClick"])):ee("v-if",!0),k("button",{type:"button",class:$(r(f).arrowRightBtn),onClick:r(m)},[Q(j.$slots,"next-year",{},()=>[q(r(xe),null,{default:G(()=>[q(r(Ha))]),_:1})])],10,["onClick"]),k("div",null,he(r(M)),1)],2),q(ac,{"selection-mode":"range",date:o.value,"min-date":E.value,"max-date":O.value,"range-state":I.value,"disabled-date":r(H),onChangerange:N,onPick:z,onSelect:L},null,8,["date","min-date","max-date","range-state","disabled-date"])],2)],2)],2)],2))}});var EV=ve(kV,[["__file","panel-year-range.vue"]]);const MV=function(e){switch(e){case"daterange":case"datetimerange":return pV;case"monthrange":return _V;case"yearrange":return EV;default:return cV}};Be.extend(J1);Be.extend(cA);Be.extend(Hd);Be.extend(vA);Be.extend(yA);Be.extend(CA);Be.extend(MA);Be.extend(OA);var xV=T({name:"ElDatePicker",install:null,props:GA,emits:["update:modelValue"],setup(e,{expose:t,emit:n,slots:a}){const l=de("picker-panel");it("ElPopperOptions",_t(mt(e,"popperOptions"))),it(zi,{slots:a,pickerNs:l});const o=A();t({focus:()=>{var u;(u=o.value)==null||u.focus()},blur:()=>{var u;(u=o.value)==null||u.blur()},handleOpen:()=>{var u;(u=o.value)==null||u.handleOpen()},handleClose:()=>{var u;(u=o.value)==null||u.handleClose()}});const i=u=>{n("update:modelValue",u)};return()=>{var u;const c=(u=e.format)!=null?u:NA[e.type]||Zl,d=MV(e.type);return q(Mh,tt(e,{format:c,type:e.type,ref:o,"onUpdate:modelValue":i}),{default:f=>q(d,f,{"prev-month":a["prev-month"],"next-month":a["next-month"],"prev-year":a["prev-year"],"next-year":a["next-year"]}),"range-separator":a["range-separator"]})}}});const $V=We(xV),Ud=Symbol("elDescriptions");var Uo=T({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String,default:"td"},type:{type:String}},setup(){return{descriptions:Se(Ud,{})}},render(){var e;const t=EI(this.cell),n=(((e=this.cell)==null?void 0:e.dirs)||[]).map(g=>{const{dir:M,arg:w,modifiers:b,value:S}=g;return[M,S,w,b]}),{border:a,direction:l}=this.descriptions,o=l==="vertical",s=()=>{var g,M,w;return((w=(M=(g=this.cell)==null?void 0:g.children)==null?void 0:M.label)==null?void 0:w.call(M))||t.label},i=()=>{var g,M,w;return(w=(M=(g=this.cell)==null?void 0:g.children)==null?void 0:M.default)==null?void 0:w.call(M)},u=t.span,c=t.rowspan,d=t.align?`is-${t.align}`:"",f=t.labelAlign?`is-${t.labelAlign}`:d,h=t.className,v=t.labelClassName,m=this.type==="label"&&(t.labelWidth||this.descriptions.labelWidth)||t.width,p={width:Rt(m),minWidth:Rt(t.minWidth)},y=de("descriptions");switch(this.type){case"label":return qe(Pe(this.tag,{style:p,class:[y.e("cell"),y.e("label"),y.is("bordered-label",a),y.is("vertical-label",o),f,v],colSpan:o?u:1,rowspan:o?1:c},s()),n);case"content":return qe(Pe(this.tag,{style:p,class:[y.e("cell"),y.e("content"),y.is("bordered-content",a),y.is("vertical-content",o),d,h],colSpan:o?u:u*2-1,rowspan:o?c*2-1:c},i()),n);default:{const g=s(),M={},w=Rt(t.labelWidth||this.descriptions.labelWidth);return w&&(M.width=w,M.display="inline-block"),qe(Pe("td",{style:p,class:[y.e("cell"),d],colSpan:u,rowspan:c},[Zt(g)?void 0:Pe("span",{style:M,class:[y.e("label"),v]},g),Pe("span",{class:[y.e("content"),h]},i())]),n)}}}});const TV=pe({row:{type:X(Array),default:()=>[]}}),OV=T({name:"ElDescriptionsRow"}),NV=T({...OV,props:TV,setup(e){const t=Se(Ud,{});return(n,a)=>r(t).direction==="vertical"?(_(),x(ze,{key:0},[k("tr",null,[(_(!0),x(ze,null,rt(n.row,(l,o)=>(_(),ae(r(Uo),{key:`tr1-${o}`,cell:l,tag:"th",type:"label"},null,8,["cell"]))),128))]),k("tr",null,[(_(!0),x(ze,null,rt(n.row,(l,o)=>(_(),ae(r(Uo),{key:`tr2-${o}`,cell:l,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):(_(),x("tr",{key:1},[(_(!0),x(ze,null,rt(n.row,(l,o)=>(_(),x(ze,{key:`tr3-${o}`},[r(t).border?(_(),x(ze,{key:0},[q(r(Uo),{cell:l,tag:"td",type:"label"},null,8,["cell"]),q(r(Uo),{cell:l,tag:"td",type:"content"},null,8,["cell"])],64)):(_(),ae(r(Uo),{key:1,cell:l,tag:"td",type:"both"},null,8,["cell"]))],64))),128))]))}});var IV=ve(NV,[["__file","descriptions-row.vue"]]);const PV=pe({border:Boolean,column:{type:Number,default:3},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},size:qt,title:{type:String,default:""},extra:{type:String,default:""},labelWidth:{type:[String,Number],default:""}}),zV=T({name:"ElDescriptions"}),AV=T({...zV,props:PV,setup(e){const t=e,n=de("descriptions"),a=jt(),l=Xt();it(Ud,t);const o=C(()=>[n.b(),n.m(a.value)]),s=(u,c,d,f=!1)=>(u.props||(u.props={}),c>d&&(u.props.span=d),f&&(u.props.span=c),u),i=()=>{if(!l.default)return[];const u=ol(l.default()).filter(m=>{var p;return((p=m==null?void 0:m.type)==null?void 0:p.name)==="ElDescriptionsItem"}),c=[];let d=[],f=t.column,h=0;const v=[];return u.forEach((m,p)=>{var y,g,M;const w=((y=m.props)==null?void 0:y.span)||1,b=((g=m.props)==null?void 0:g.rowspan)||1,S=c.length;if(v[S]||(v[S]=0),b>1)for(let E=1;E0&&(f-=v[S],v[S]=0),pf?f:w),p===u.length-1){const E=t.column-h%t.column;d.push(s(m,E,f,!0)),c.push(d);return}w(_(),x("div",{class:$(r(o))},[u.title||u.extra||u.$slots.title||u.$slots.extra?(_(),x("div",{key:0,class:$(r(n).e("header"))},[k("div",{class:$(r(n).e("title"))},[Q(u.$slots,"title",{},()=>[ot(he(u.title),1)])],2),k("div",{class:$(r(n).e("extra"))},[Q(u.$slots,"extra",{},()=>[ot(he(u.extra),1)])],2)],2)):ee("v-if",!0),k("div",{class:$(r(n).e("body"))},[k("table",{class:$([r(n).e("table"),r(n).is("bordered",u.border)])},[k("tbody",null,[(_(!0),x(ze,null,rt(i(),(d,f)=>(_(),ae(IV,{key:f,row:d},null,8,["row"]))),128))])],2)],2)],2))}});var VV=ve(AV,[["__file","description.vue"]]);const LV=pe({label:{type:String,default:""},span:{type:Number,default:1},rowspan:{type:Number,default:1},width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},labelWidth:{type:[String,Number],default:""},align:{type:String,default:"left"},labelAlign:{type:String,default:""},className:{type:String,default:""},labelClassName:{type:String,default:""}}),zh=T({name:"ElDescriptionsItem",props:LV}),RV=We(VV,{DescriptionsItem:zh}),BV=Lt(zh),Yd=e=>{if(!e)return{onClick:zt,onMousedown:zt,onMouseup:zt};let t=!1,n=!1;return{onClick:s=>{t&&n&&e(s),t=n=!1},onMousedown:s=>{t=s.target===s.currentTarget},onMouseup:s=>{n=s.target===s.currentTarget}}},HV=pe({mask:{type:Boolean,default:!0},customMaskEvent:Boolean,overlayClass:{type:X([String,Array,Object])},zIndex:{type:X([String,Number])}}),DV={click:e=>e instanceof MouseEvent},FV="overlay";var KV=T({name:"ElOverlay",props:HV,emits:DV,setup(e,{slots:t,emit:n}){const a=de(FV),l=u=>{n("click",u)},{onClick:o,onMousedown:s,onMouseup:i}=Yd(e.customMaskEvent?void 0:l);return()=>e.mask?q("div",{class:[a.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:o,onMousedown:s,onMouseup:i},[Q(t,"default")],Kn.STYLE|Kn.CLASS|Kn.PROPS,["onClick","onMouseup","onMousedown"]):Pe("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[Q(t,"default")])}});const Gd=KV,Ah=Symbol("dialogInjectionKey"),Vh=pe({center:Boolean,alignCenter:Boolean,closeIcon:{type:St},draggable:Boolean,overflow:Boolean,fullscreen:Boolean,headerClass:String,bodyClass:String,footerClass:String,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),WV={close:()=>!0},Lh=(e,t,n,a)=>{let l={offsetX:0,offsetY:0};const o=c=>{const d=c.clientX,f=c.clientY,{offsetX:h,offsetY:v}=l,m=e.value.getBoundingClientRect(),p=m.left,y=m.top,g=m.width,M=m.height,w=document.documentElement.clientWidth,b=document.documentElement.clientHeight,S=-p+h,E=-y+v,O=w-p-g+h,I=b-y-M+v,N=P=>{let L=h+P.clientX-d,F=v+P.clientY-f;a!=null&&a.value||(L=Math.min(Math.max(L,S),O),F=Math.min(Math.max(F,E),I)),l={offsetX:L,offsetY:F},e.value&&(e.value.style.transform=`translate(${Rt(L)}, ${Rt(F)})`)},z=()=>{document.removeEventListener("mousemove",N),document.removeEventListener("mouseup",z)};document.addEventListener("mousemove",N),document.addEventListener("mouseup",z)},s=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",o)},i=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",o)},u=()=>{l={offsetX:0,offsetY:0},e.value&&(e.value.style.transform="none")};return Ge(()=>{on(()=>{n.value?s():i()})}),Tt(()=>{i()}),{resetPosition:u}},Ai=(...e)=>t=>{e.forEach(n=>{Qe(n)?n(t):n.value=t})},jV=T({name:"ElDialogContent"}),qV=T({...jV,props:Vh,emits:WV,setup(e,{expose:t}){const n=e,{t:a}=ct(),{Close:l}=_d,{dialogRef:o,headerRef:s,bodyId:i,ns:u,style:c}=Se(Ah),{focusTrapRef:d}=Se(Ed),f=C(()=>[u.b(),u.is("fullscreen",n.fullscreen),u.is("draggable",n.draggable),u.is("align-center",n.alignCenter),{[u.m("center")]:n.center}]),h=Ai(d,o),v=C(()=>n.draggable),m=C(()=>n.overflow),{resetPosition:p}=Lh(o,s,v,m);return t({resetPosition:p}),(y,g)=>(_(),x("div",{ref:r(h),class:$(r(f)),style:Ne(r(c)),tabindex:"-1"},[k("header",{ref_key:"headerRef",ref:s,class:$([r(u).e("header"),y.headerClass,{"show-close":y.showClose}])},[Q(y.$slots,"header",{},()=>[k("span",{role:"heading","aria-level":y.ariaLevel,class:$(r(u).e("title"))},he(y.title),11,["aria-level"])]),y.showClose?(_(),x("button",{key:0,"aria-label":r(a)("el.dialog.close"),class:$(r(u).e("headerbtn")),type:"button",onClick:M=>y.$emit("close")},[q(r(xe),{class:$(r(u).e("close"))},{default:G(()=>[(_(),ae(et(y.closeIcon||r(l))))]),_:1},8,["class"])],10,["aria-label","onClick"])):ee("v-if",!0)],2),k("div",{id:r(i),class:$([r(u).e("body"),y.bodyClass])},[Q(y.$slots,"default")],10,["id"]),y.$slots.footer?(_(),x("footer",{key:0,class:$([r(u).e("footer"),y.footerClass])},[Q(y.$slots,"footer")],2)):ee("v-if",!0)],6))}});var UV=ve(qV,[["__file","dialog-content.vue"]]);const Rh=pe({...Vh,appendToBody:Boolean,appendTo:{type:X([String,Object]),default:"body"},beforeClose:{type:X(Function)},destroyOnClose:Boolean,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:Boolean,modalClass:String,headerClass:String,bodyClass:String,footerClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:Boolean,headerAriaLevel:{type:String,default:"2"}}),Bh={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[Ue]:e=>Et(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},Xd=(e,t={})=>{dn(e)||Gt("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||de("popup"),a=C(()=>n.bm("parent","hidden"));if(!ut||An(document.body,a.value))return;let l=0,o=!1,s="0";const i=()=>{setTimeout(()=>{typeof document>"u"||o&&document&&(document.body.style.width=s,kn(document.body,a.value))},200)};se(e,u=>{if(!u){i();return}o=!An(document.body,a.value),o&&(s=document.body.style.width,jn(document.body,a.value)),l=Wv(n.namespace.value);const c=document.documentElement.clientHeight0&&(c||d==="scroll")&&o&&(document.body.style.width=`calc(100% - ${l}px)`)}),Wc(()=>i())},Hh=(e,t)=>{var n;const l=Ze().emit,{nextZIndex:o}=zo();let s="";const i=rn(),u=rn(),c=A(!1),d=A(!1),f=A(!1),h=A((n=e.zIndex)!=null?n:o());let v,m;const p=Ci("namespace",Qo),y=C(()=>{const H={},R=`--${p.value}-dialog`;return e.fullscreen||(e.top&&(H[`${R}-margin-top`]=e.top),e.width&&(H[`${R}-width`]=Rt(e.width))),H}),g=C(()=>e.alignCenter?{display:"flex"}:{});function M(){l("opened")}function w(){l("closed"),l(Ue,!1),e.destroyOnClose&&(f.value=!1)}function b(){l("close")}function S(){m==null||m(),v==null||v(),e.openDelay&&e.openDelay>0?{stop:v}=Il(()=>N(),e.openDelay):N()}function E(){v==null||v(),m==null||m(),e.closeDelay&&e.closeDelay>0?{stop:m}=Il(()=>z(),e.closeDelay):z()}function O(){function H(R){R||(d.value=!0,c.value=!1)}e.beforeClose?e.beforeClose(H):E()}function I(){e.closeOnClickModal&&O()}function N(){ut&&(c.value=!0)}function z(){c.value=!1}function P(){l("openAutoFocus")}function L(){l("closeAutoFocus")}function F(H){var R;((R=H.detail)==null?void 0:R.focusReason)==="pointer"&&H.preventDefault()}e.lockScroll&&Xd(c);function U(){e.closeOnPressEscape&&O()}return se(()=>e.modelValue,H=>{H?(d.value=!1,S(),f.value=!0,h.value=Mv(e.zIndex)?o():h.value++,Oe(()=>{l("open"),t.value&&(t.value.parentElement.scrollTop=0,t.value.parentElement.scrollLeft=0,t.value.scrollTop=0)})):c.value&&E()}),se(()=>e.fullscreen,H=>{t.value&&(H?(s=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=s)}),Ge(()=>{e.modelValue&&(c.value=!0,f.value=!0,S())}),{afterEnter:M,afterLeave:w,beforeLeave:b,handleClose:O,onModalClick:I,close:E,doClose:z,onOpenAutoFocus:P,onCloseAutoFocus:L,onCloseRequested:U,onFocusoutPrevented:F,titleId:i,bodyId:u,closed:d,style:y,overlayDialogStyle:g,rendered:f,visible:c,zIndex:h}},YV=T({name:"ElDialog",inheritAttrs:!1}),GV=T({...YV,props:Rh,emits:Bh,setup(e,{expose:t}){const n=e,a=Xt();al({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"},C(()=>!!a.title));const l=de("dialog"),o=A(),s=A(),i=A(),{visible:u,titleId:c,bodyId:d,style:f,overlayDialogStyle:h,rendered:v,zIndex:m,afterEnter:p,afterLeave:y,beforeLeave:g,handleClose:M,onModalClick:w,onOpenAutoFocus:b,onCloseAutoFocus:S,onCloseRequested:E,onFocusoutPrevented:O}=Hh(n,o);it(Ah,{dialogRef:o,headerRef:s,bodyId:d,ns:l,rendered:v,style:f});const I=Yd(w),N=C(()=>n.draggable&&!n.fullscreen);return t({visible:u,dialogContentRef:i,resetPosition:()=>{var P;(P=i.value)==null||P.resetPosition()}}),(P,L)=>(_(),ae(r(Ro),{to:P.appendTo,disabled:P.appendTo!=="body"?!1:!P.appendToBody},{default:G(()=>[q(tn,{name:"dialog-fade",onAfterEnter:r(p),onAfterLeave:r(y),onBeforeLeave:r(g),persisted:""},{default:G(()=>[qe(q(r(Gd),{"custom-mask-event":"",mask:P.modal,"overlay-class":P.modalClass,"z-index":r(m)},{default:G(()=>[k("div",{role:"dialog","aria-modal":"true","aria-label":P.title||void 0,"aria-labelledby":P.title?void 0:r(c),"aria-describedby":r(d),class:$(`${r(l).namespace.value}-overlay-dialog`),style:Ne(r(h)),onClick:r(I).onClick,onMousedown:r(I).onMousedown,onMouseup:r(I).onMouseup},[q(r(Lo),{loop:"",trapped:r(u),"focus-start-el":"container",onFocusAfterTrapped:r(b),onFocusAfterReleased:r(S),onFocusoutPrevented:r(O),onReleaseRequested:r(E)},{default:G(()=>[r(v)?(_(),ae(UV,tt({key:0,ref_key:"dialogContentRef",ref:i},P.$attrs,{center:P.center,"align-center":P.alignCenter,"close-icon":P.closeIcon,draggable:r(N),overflow:P.overflow,fullscreen:P.fullscreen,"header-class":P.headerClass,"body-class":P.bodyClass,"footer-class":P.footerClass,"show-close":P.showClose,title:P.title,"aria-level":P.headerAriaLevel,onClose:r(M)}),Yn({header:G(()=>[P.$slots.title?Q(P.$slots,"title",{key:1}):Q(P.$slots,"header",{key:0,close:r(M),titleId:r(c),titleClass:r(l).e("title")})]),default:G(()=>[Q(P.$slots,"default")]),_:2},[P.$slots.footer?{name:"footer",fn:G(()=>[Q(P.$slots,"footer")])}:void 0]),1040,["center","align-center","close-icon","draggable","overflow","fullscreen","header-class","body-class","footer-class","show-close","title","aria-level","onClose"])):ee("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,["aria-label","aria-labelledby","aria-describedby","onClick","onMousedown","onMouseup"])]),_:3},8,["mask","overlay-class","z-index"]),[[pt,r(u)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])]),_:3},8,["to","disabled"]))}});var XV=ve(GV,[["__file","dialog.vue"]]);const ZV=We(XV),JV=pe({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:X(String),default:"solid"}}),QV=T({name:"ElDivider"}),eL=T({...QV,props:JV,setup(e){const t=e,n=de("divider"),a=C(()=>n.cssVar({"border-style":t.borderStyle}));return(l,o)=>(_(),x("div",{class:$([r(n).b(),r(n).m(l.direction)]),style:Ne(r(a)),role:"separator"},[l.$slots.default&&l.direction!=="vertical"?(_(),x("div",{key:0,class:$([r(n).e("text"),r(n).is(l.contentPosition)])},[Q(l.$slots,"default")],2)):ee("v-if",!0)],6))}});var tL=ve(eL,[["__file","divider.vue"]]);const Dh=We(tL),nL=pe({...Rh,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},headerAriaLevel:{type:String,default:"2"}}),aL=Bh,lL=T({name:"ElDrawer",inheritAttrs:!1}),oL=T({...lL,props:nL,emits:aL,setup(e,{expose:t}){const n=e,a=Xt();al({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"},C(()=>!!a.title));const l=A(),o=A(),s=de("drawer"),{t:i}=ct(),{afterEnter:u,afterLeave:c,beforeLeave:d,visible:f,rendered:h,titleId:v,bodyId:m,zIndex:p,onModalClick:y,onOpenAutoFocus:g,onCloseAutoFocus:M,onFocusoutPrevented:w,onCloseRequested:b,handleClose:S}=Hh(n,l),E=C(()=>n.direction==="rtl"||n.direction==="ltr"),O=C(()=>Rt(n.size));return t({handleClose:S,afterEnter:u,afterLeave:c}),(I,N)=>(_(),ae(r(Ro),{to:I.appendTo,disabled:I.appendTo!=="body"?!1:!I.appendToBody},{default:G(()=>[q(tn,{name:r(s).b("fade"),onAfterEnter:r(u),onAfterLeave:r(c),onBeforeLeave:r(d),persisted:""},{default:G(()=>[qe(q(r(Gd),{mask:I.modal,"overlay-class":I.modalClass,"z-index":r(p),onClick:r(y)},{default:G(()=>[q(r(Lo),{loop:"",trapped:r(f),"focus-trap-el":l.value,"focus-start-el":o.value,onFocusAfterTrapped:r(g),onFocusAfterReleased:r(M),onFocusoutPrevented:r(w),onReleaseRequested:r(b)},{default:G(()=>[k("div",tt({ref_key:"drawerRef",ref:l,"aria-modal":"true","aria-label":I.title||void 0,"aria-labelledby":I.title?void 0:r(v),"aria-describedby":r(m)},I.$attrs,{class:[r(s).b(),I.direction,r(f)&&"open"],style:r(E)?"width: "+r(O):"height: "+r(O),role:"dialog",onClick:Ae(()=>{},["stop"])}),[k("span",{ref_key:"focusStartRef",ref:o,class:$(r(s).e("sr-focus")),tabindex:"-1"},null,2),I.withHeader?(_(),x("header",{key:0,class:$([r(s).e("header"),I.headerClass])},[I.$slots.title?Q(I.$slots,"title",{key:1},()=>[ee(" DEPRECATED SLOT ")]):Q(I.$slots,"header",{key:0,close:r(S),titleId:r(v),titleClass:r(s).e("title")},()=>[I.$slots.title?ee("v-if",!0):(_(),x("span",{key:0,id:r(v),role:"heading","aria-level":I.headerAriaLevel,class:$(r(s).e("title"))},he(I.title),11,["id","aria-level"]))]),I.showClose?(_(),x("button",{key:2,"aria-label":r(i)("el.drawer.close"),class:$(r(s).e("close-btn")),type:"button",onClick:r(S)},[q(r(xe),{class:$(r(s).e("close"))},{default:G(()=>[q(r(Xn))]),_:1},8,["class"])],10,["aria-label","onClick"])):ee("v-if",!0)],2)):ee("v-if",!0),r(h)?(_(),x("div",{key:1,id:r(m),class:$([r(s).e("body"),I.bodyClass])},[Q(I.$slots,"default")],10,["id"])):ee("v-if",!0),I.$slots.footer?(_(),x("div",{key:2,class:$([r(s).e("footer"),I.footerClass])},[Q(I.$slots,"footer")],2)):ee("v-if",!0)],16,["aria-label","aria-labelledby","aria-describedby","onClick"])]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[pt,r(f)]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])]),_:3},8,["to","disabled"]))}});var rL=ve(oL,[["__file","drawer.vue"]]);const sL=We(rL),iL=T({inheritAttrs:!1});function uL(e,t,n,a,l,o){return Q(e.$slots,"default")}var cL=ve(iL,[["render",uL],["__file","collection.vue"]]);const dL=T({name:"ElCollectionItem",inheritAttrs:!1});function fL(e,t,n,a,l,o){return Q(e.$slots,"default")}var pL=ve(dL,[["render",fL],["__file","collection-item.vue"]]);const Fh="data-el-collection-item",Kh=e=>{const t=`El${e}Collection`,n=`${t}Item`,a=Symbol(t),l=Symbol(n),o={...cL,name:t,setup(){const i=A(null),u=new Map;it(a,{itemMap:u,getItems:()=>{const d=r(i);if(!d)return[];const f=Array.from(d.querySelectorAll(`[${Fh}]`));return[...u.values()].sort((v,m)=>f.indexOf(v.ref)-f.indexOf(m.ref))},collectionRef:i})}},s={...pL,name:n,setup(i,{attrs:u}){const c=A(null),d=Se(a,void 0);it(l,{collectionItemRef:c}),Ge(()=>{const f=r(c);f&&d.itemMap.set(f,{ref:f,...u})}),Tt(()=>{const f=r(c);d.itemMap.delete(f)})}};return{COLLECTION_INJECTION_KEY:a,COLLECTION_ITEM_INJECTION_KEY:l,ElCollection:o,ElCollectionItem:s}},vL=pe({style:{type:X([String,Array,Object])},currentTabId:{type:X(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:X(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:hL,ElCollectionItem:mL,COLLECTION_INJECTION_KEY:Zd,COLLECTION_ITEM_INJECTION_KEY:gL}=Kh("RovingFocusGroup"),Jd=Symbol("elRovingFocusGroup"),Wh=Symbol("elRovingFocusGroupItem"),yL={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},_L=(e,t)=>e,bL=(e,t,n)=>{const a=_L(e.code);return yL[a]},wL=(e,t)=>e.map((n,a)=>e[(a+t)%e.length]),Qd=e=>{const{activeElement:t}=document;for(const n of e)if(n===t||(n.focus(),t!==document.activeElement))return},N2="currentTabIdChange",I2="rovingFocusGroup.entryFocus",CL={bubbles:!1,cancelable:!0},SL=T({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:vL,emits:[N2,"entryFocus"],setup(e,{emit:t}){var n;const a=A((n=e.currentTabId||e.defaultCurrentTabId)!=null?n:null),l=A(!1),o=A(!1),s=A(null),{getItems:i}=Se(Zd,void 0),u=C(()=>[{outline:"none"},e.style]),c=p=>{t(N2,p)},d=()=>{l.value=!0},f=Ht(p=>{var y;(y=e.onMousedown)==null||y.call(e,p)},()=>{o.value=!0}),h=Ht(p=>{var y;(y=e.onFocus)==null||y.call(e,p)},p=>{const y=!r(o),{target:g,currentTarget:M}=p;if(g===M&&y&&!r(l)){const w=new Event(I2,CL);if(M==null||M.dispatchEvent(w),!w.defaultPrevented){const b=i().filter(N=>N.focusable),S=b.find(N=>N.active),E=b.find(N=>N.id===r(a)),I=[S,E,...b].filter(Boolean).map(N=>N.ref);Qd(I)}}o.value=!1}),v=Ht(p=>{var y;(y=e.onBlur)==null||y.call(e,p)},()=>{l.value=!1}),m=(...p)=>{t("entryFocus",...p)};it(Jd,{currentTabbedId:$o(a),loop:mt(e,"loop"),tabIndex:C(()=>r(l)?-1:0),rovingFocusGroupRef:s,rovingFocusGroupRootStyle:u,orientation:mt(e,"orientation"),dir:mt(e,"dir"),onItemFocus:c,onItemShiftTab:d,onBlur:v,onFocus:h,onMousedown:f}),se(()=>e.currentTabId,p=>{a.value=p??null}),wt(s,I2,m)}});function kL(e,t,n,a,l,o){return Q(e.$slots,"default")}var EL=ve(SL,[["render",kL],["__file","roving-focus-group-impl.vue"]]);const ML=T({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:hL,ElRovingFocusGroupImpl:EL}});function xL(e,t,n,a,l,o){const s=Je("el-roving-focus-group-impl"),i=Je("el-focus-group-collection");return _(),ae(i,null,{default:G(()=>[q(s,oa(Ol(e.$attrs)),{default:G(()=>[Q(e.$slots,"default")]),_:3},16)]),_:3})}var $L=ve(ML,[["render",xL],["__file","roving-focus-group.vue"]]);const xs=pe({trigger:hr.trigger,triggerKeys:{type:X(Array),default:()=>[Ce.enter,Ce.numpadEnter,Ce.space,Ce.down]},effect:{...Qt.effect,default:"light"},type:{type:X(String)},placement:{type:X(String),default:"bottom"},popperOptions:{type:X(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:X([Number,String]),default:0},maxHeight:{type:X([Number,String]),default:""},popperClass:{type:String,default:""},disabled:Boolean,role:{type:String,default:"menu"},buttonProps:{type:X(Object)},teleported:Qt.teleported}),jh=pe({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:St}}),TL=pe({onKeydown:{type:X(Function)}}),OL=[Ce.down,Ce.pageDown,Ce.home],qh=[Ce.up,Ce.pageUp,Ce.end],NL=[...OL,...qh],{ElCollection:IL,ElCollectionItem:PL,COLLECTION_INJECTION_KEY:zL,COLLECTION_ITEM_INJECTION_KEY:AL}=Kh("Dropdown"),Vi=Symbol("elDropdown"),{ButtonGroup:VL}=en,LL=T({name:"ElDropdown",components:{ElButton:en,ElButtonGroup:VL,ElScrollbar:Oa,ElDropdownCollection:IL,ElTooltip:mn,ElRovingFocusGroup:$L,ElOnlyChild:S1,ElIcon:xe,ArrowDown:$a},props:xs,emits:["visible-change","click","command"],setup(e,{emit:t}){const n=Ze(),a=de("dropdown"),{t:l}=ct(),o=A(),s=A(),i=A(null),u=A(null),c=A(null),d=A(null),f=A(!1),h=C(()=>({maxHeight:Rt(e.maxHeight)})),v=C(()=>[a.m(b.value)]),m=C(()=>wn(e.trigger)),p=rn().value,y=C(()=>e.id||p);se([o,m],([R,D],[B])=>{var V,K,W;(V=B==null?void 0:B.$el)!=null&&V.removeEventListener&&B.$el.removeEventListener("pointerenter",E),(K=R==null?void 0:R.$el)!=null&&K.removeEventListener&&R.$el.removeEventListener("pointerenter",E),(W=R==null?void 0:R.$el)!=null&&W.addEventListener&&D.includes("hover")&&R.$el.addEventListener("pointerenter",E)},{immediate:!0}),Tt(()=>{var R,D;(D=(R=o.value)==null?void 0:R.$el)!=null&&D.removeEventListener&&o.value.$el.removeEventListener("pointerenter",E)});function g(){M()}function M(){var R;(R=i.value)==null||R.onClose()}function w(){var R;(R=i.value)==null||R.onOpen()}const b=jt();function S(...R){t("command",...R)}function E(){var R,D;(D=(R=o.value)==null?void 0:R.$el)==null||D.focus()}function O(){}function I(){const R=r(u);m.value.includes("hover")&&(R==null||R.focus()),d.value=null}function N(R){d.value=R}function z(R){f.value||(R.preventDefault(),R.stopImmediatePropagation())}function P(){t("visible-change",!0)}function L(R){(R==null?void 0:R.type)==="keydown"&&u.value.focus()}function F(){t("visible-change",!1)}return it(Vi,{contentRef:u,role:C(()=>e.role),triggerId:y,isUsingKeyboard:f,onItemEnter:O,onItemLeave:I}),it("elDropdown",{instance:n,dropdownSize:b,handleClick:g,commandHandler:S,trigger:mt(e,"trigger"),hideOnClick:mt(e,"hideOnClick")}),{t:l,ns:a,scrollbar:c,wrapStyle:h,dropdownTriggerKls:v,dropdownSize:b,triggerId:y,currentTabId:d,handleCurrentTabIdChange:N,handlerMainButtonClick:R=>{t("click",R)},handleEntryFocus:z,handleClose:M,handleOpen:w,handleBeforeShowTooltip:P,handleShowTooltip:L,handleBeforeHideTooltip:F,onFocusAfterTrapped:R=>{var D,B;R.preventDefault(),(B=(D=u.value)==null?void 0:D.focus)==null||B.call(D,{preventScroll:!0})},popperRef:i,contentRef:u,triggeringElementRef:o,referenceElementRef:s}}});function RL(e,t,n,a,l,o){var s;const i=Je("el-dropdown-collection"),u=Je("el-roving-focus-group"),c=Je("el-scrollbar"),d=Je("el-only-child"),f=Je("el-tooltip"),h=Je("el-button"),v=Je("arrow-down"),m=Je("el-icon"),p=Je("el-button-group");return _(),x("div",{class:$([e.ns.b(),e.ns.is("disabled",e.disabled)])},[q(f,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,"hide-after":e.trigger==="hover"?e.hideTimeout:0,"manual-mode":!0,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"reference-element":(s=e.referenceElementRef)==null?void 0:s.$el,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-after":e.trigger==="hover"?e.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":e.triggeringElementRef,"virtual-triggering":e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:e.teleported,pure:"",persistent:"",onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},Yn({content:G(()=>[q(c,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:G(()=>[q(u,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange,onEntryFocus:e.handleEntryFocus},{default:G(()=>[q(i,null,{default:G(()=>[Q(e.$slots,"dropdown")]),_:3})]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])]),_:3},8,["wrap-style","view-class"])]),_:2},[e.splitButton?void 0:{name:"default",fn:G(()=>[q(d,{id:e.triggerId,ref:"triggeringElementRef",role:"button",tabindex:e.tabindex},{default:G(()=>[Q(e.$slots,"default")]),_:3},8,["id","tabindex"])])}]),1032,["role","effect","popper-options","hide-after","placement","popper-class","reference-element","trigger","trigger-keys","trigger-target-el","show-after","virtual-ref","virtual-triggering","disabled","transition","teleported","onBeforeShow","onShow","onBeforeHide"]),e.splitButton?(_(),ae(p,{key:0},{default:G(()=>[q(h,tt({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:G(()=>[Q(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),q(h,tt({id:e.triggerId,ref:"triggeringElementRef"},e.buttonProps,{role:"button",size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled,tabindex:e.tabindex,"aria-label":e.t("el.dropdown.toggleDropdown")}),{default:G(()=>[q(m,{class:$(e.ns.e("icon"))},{default:G(()=>[q(v)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):ee("v-if",!0)],2)}var BL=ve(LL,[["render",RL],["__file","dropdown.vue"]]);const HL=T({components:{ElRovingFocusCollectionItem:mL},props:{focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!1}},emits:["mousedown","focus","keydown"],setup(e,{emit:t}){const{currentTabbedId:n,loop:a,onItemFocus:l,onItemShiftTab:o}=Se(Jd,void 0),{getItems:s}=Se(Zd,void 0),i=rn(),u=A(null),c=Ht(v=>{t("mousedown",v)},v=>{e.focusable?l(r(i)):v.preventDefault()}),d=Ht(v=>{t("focus",v)},()=>{l(r(i))}),f=Ht(v=>{t("keydown",v)},v=>{const{code:m,shiftKey:p,target:y,currentTarget:g}=v;if(m===Ce.tab&&p){o();return}if(y!==g)return;const M=bL(v);if(M){v.preventDefault();let b=s().filter(S=>S.focusable).map(S=>S.ref);switch(M){case"last":{b.reverse();break}case"prev":case"next":{M==="prev"&&b.reverse();const S=b.indexOf(g);b=a.value?wL(b,S+1):b.slice(S+1);break}}Oe(()=>{Qd(b)})}}),h=C(()=>n.value===r(i));return it(Wh,{rovingFocusGroupItemRef:u,tabIndex:C(()=>r(h)?0:-1),handleMousedown:c,handleFocus:d,handleKeydown:f}),{id:i,handleKeydown:f,handleFocus:d,handleMousedown:c}}});function DL(e,t,n,a,l,o){const s=Je("el-roving-focus-collection-item");return _(),ae(s,{id:e.id,focusable:e.focusable,active:e.active},{default:G(()=>[Q(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var FL=ve(HL,[["render",DL],["__file","roving-focus-item.vue"]]);const KL=T({name:"DropdownItemImpl",components:{ElIcon:xe},props:jh,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const n=de("dropdown"),{role:a}=Se(Vi,void 0),{collectionItemRef:l}=Se(AL,void 0),{collectionItemRef:o}=Se(gL,void 0),{rovingFocusGroupItemRef:s,tabIndex:i,handleFocus:u,handleKeydown:c,handleMousedown:d}=Se(Wh,void 0),f=Ai(l,o,s),h=C(()=>a.value==="menu"?"menuitem":a.value==="navigation"?"link":"button"),v=Ht(m=>{if([Ce.enter,Ce.numpadEnter,Ce.space].includes(m.code))return m.preventDefault(),m.stopImmediatePropagation(),t("clickimpl",m),!0},c);return{ns:n,itemRef:f,dataset:{[Fh]:""},role:h,tabIndex:i,handleFocus:u,handleKeydown:v,handleMousedown:d}}});function WL(e,t,n,a,l,o){const s=Je("el-icon");return _(),x(ze,null,[e.divided?(_(),x("li",{key:0,role:"separator",class:$(e.ns.bem("menu","item","divided"))},null,2)):ee("v-if",!0),k("li",tt({ref:e.itemRef},{...e.dataset,...e.$attrs},{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:e.role,onClick:i=>e.$emit("clickimpl",i),onFocus:e.handleFocus,onKeydown:Ae(e.handleKeydown,["self"]),onMousedown:e.handleMousedown,onPointermove:i=>e.$emit("pointermove",i),onPointerleave:i=>e.$emit("pointerleave",i)}),[e.icon?(_(),ae(s,{key:0},{default:G(()=>[(_(),ae(et(e.icon)))]),_:1})):ee("v-if",!0),Q(e.$slots,"default")],16,["aria-disabled","tabindex","role","onClick","onFocus","onKeydown","onMousedown","onPointermove","onPointerleave"])],64)}var jL=ve(KL,[["render",WL],["__file","dropdown-item-impl.vue"]]);const Uh=()=>{const e=Se("elDropdown",{}),t=C(()=>e==null?void 0:e.dropdownSize);return{elDropdown:e,_elDropdownSize:t}},qL=T({name:"ElDropdownItem",components:{ElDropdownCollectionItem:PL,ElRovingFocusItem:FL,ElDropdownItemImpl:jL},inheritAttrs:!1,props:jh,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:n}){const{elDropdown:a}=Uh(),l=Ze(),o=A(null),s=C(()=>{var v,m;return(m=(v=r(o))==null?void 0:v.textContent)!=null?m:""}),{onItemEnter:i,onItemLeave:u}=Se(Vi,void 0),c=Ht(v=>(t("pointermove",v),v.defaultPrevented),Q0(v=>{if(e.disabled){u(v);return}const m=v.currentTarget;m===document.activeElement||m.contains(document.activeElement)||(i(v),v.defaultPrevented||m==null||m.focus())})),d=Ht(v=>(t("pointerleave",v),v.defaultPrevented),Q0(u)),f=Ht(v=>{if(!e.disabled)return t("click",v),v.type!=="keydown"&&v.defaultPrevented},v=>{var m,p,y;if(e.disabled){v.stopImmediatePropagation();return}(m=a==null?void 0:a.hideOnClick)!=null&&m.value&&((p=a.handleClick)==null||p.call(a)),(y=a.commandHandler)==null||y.call(a,e.command,l,v)}),h=C(()=>({...e,...n}));return{handleClick:f,handlePointerMove:c,handlePointerLeave:d,textContent:s,propsAndAttrs:h}}});function UL(e,t,n,a,l,o){var s;const i=Je("el-dropdown-item-impl"),u=Je("el-roving-focus-item"),c=Je("el-dropdown-collection-item");return _(),ae(c,{disabled:e.disabled,"text-value":(s=e.textValue)!=null?s:e.textContent},{default:G(()=>[q(u,{focusable:!e.disabled},{default:G(()=>[q(i,tt(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:G(()=>[Q(e.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])]),_:3},8,["disabled","text-value"])}var Yh=ve(qL,[["render",UL],["__file","dropdown-item.vue"]]);const YL=T({name:"ElDropdownMenu",props:TL,setup(e){const t=de("dropdown"),{_elDropdownSize:n}=Uh(),a=n.value,{focusTrapRef:l,onKeydown:o}=Se(Ed,void 0),{contentRef:s,role:i,triggerId:u}=Se(Vi,void 0),{collectionRef:c,getItems:d}=Se(zL,void 0),{rovingFocusGroupRef:f,rovingFocusGroupRootStyle:h,tabIndex:v,onBlur:m,onFocus:p,onMousedown:y}=Se(Jd,void 0),{collectionRef:g}=Se(Zd,void 0),M=C(()=>[t.b("menu"),t.bm("menu",a==null?void 0:a.value)]),w=Ai(s,c,l,f,g),b=Ht(E=>{var O;(O=e.onKeydown)==null||O.call(e,E)},E=>{const{currentTarget:O,code:I,target:N}=E;if(O.contains(N),Ce.tab===I&&E.stopImmediatePropagation(),E.preventDefault(),N!==r(s)||!NL.includes(I))return;const P=d().filter(L=>!L.disabled).map(L=>L.ref);qh.includes(I)&&P.reverse(),Qd(P)});return{size:a,rovingFocusGroupRootStyle:h,tabIndex:v,dropdownKls:M,role:i,triggerId:u,dropdownListWrapperRef:w,handleKeydown:E=>{b(E),o(E)},onBlur:m,onFocus:p,onMousedown:y}}});function GL(e,t,n,a,l,o){return _(),x("ul",{ref:e.dropdownListWrapperRef,class:$(e.dropdownKls),style:Ne(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onBlur:e.onBlur,onFocus:e.onFocus,onKeydown:Ae(e.handleKeydown,["self"]),onMousedown:Ae(e.onMousedown,["self"])},[Q(e.$slots,"default")],46,["role","aria-labelledby","onBlur","onFocus","onKeydown","onMousedown"])}var Gh=ve(YL,[["render",GL],["__file","dropdown-menu.vue"]]);const XL=We(BL,{DropdownItem:Yh,DropdownMenu:Gh}),ZL=Lt(Yh),JL=Lt(Gh),QL=T({name:"ImgEmpty"}),eR=T({...QL,setup(e){const t=de("empty"),n=rn();return(a,l)=>(_(),x("svg",{viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[k("defs",null,[k("linearGradient",{id:`linearGradient-1-${r(n)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[k("stop",{"stop-color":`var(${r(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,["stop-color"]),k("stop",{"stop-color":`var(${r(t).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,["stop-color"])],8,["id"]),k("linearGradient",{id:`linearGradient-2-${r(n)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[k("stop",{"stop-color":`var(${r(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,["stop-color"]),k("stop",{"stop-color":`var(${r(t).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,["stop-color"])],8,["id"]),k("rect",{id:`path-3-${r(n)}`,x:"0",y:"0",width:"17",height:"36"},null,8,["id"])]),k("g",{id:"Illustrations",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[k("g",{id:"B-type",transform:"translate(-1268.000000, -535.000000)"},[k("g",{id:"Group-2",transform:"translate(1268.000000, 535.000000)"},[k("path",{id:"Oval-Copy-2",d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:`var(${r(t).cssVarBlockName("fill-color-3")})`},null,8,["fill"]),k("polygon",{id:"Rectangle-Copy-14",fill:`var(${r(t).cssVarBlockName("fill-color-7")})`,transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,["fill"]),k("g",{id:"Group-Copy",transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},[k("polygon",{id:"Rectangle-Copy-10",fill:`var(${r(t).cssVarBlockName("fill-color-7")})`,transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,8,["fill"]),k("polygon",{id:"Rectangle-Copy-11",fill:`var(${r(t).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,["fill"]),k("rect",{id:"Rectangle-Copy-12",fill:`url(#linearGradient-1-${r(n)})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,["fill"]),k("polygon",{id:"Rectangle-Copy-13",fill:`var(${r(t).cssVarBlockName("fill-color-2")})`,transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,["fill"])]),k("rect",{id:"Rectangle-Copy-15",fill:`url(#linearGradient-2-${r(n)})`,x:"13",y:"45",width:"40",height:"36"},null,8,["fill"]),k("g",{id:"Rectangle-Copy-17",transform:"translate(53.000000, 45.000000)"},[k("use",{id:"Mask",fill:`var(${r(t).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${r(n)}`},null,8,["fill","xlink:href"]),k("polygon",{id:"Rectangle-Copy",fill:`var(${r(t).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${r(n)})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,["fill","mask"])]),k("polygon",{id:"Rectangle-Copy-18",fill:`var(${r(t).cssVarBlockName("fill-color-2")})`,transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,["fill"])])])])]))}});var tR=ve(eR,[["__file","img-empty.vue"]]);const nR=pe({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),aR=T({name:"ElEmpty"}),lR=T({...aR,props:nR,setup(e){const t=e,{t:n}=ct(),a=de("empty"),l=C(()=>t.description||n("el.table.emptyText")),o=C(()=>({width:Rt(t.imageSize)}));return(s,i)=>(_(),x("div",{class:$(r(a).b())},[k("div",{class:$(r(a).e("image")),style:Ne(r(o))},[s.image?(_(),x("img",{key:0,src:s.image,ondragstart:"return false"},null,8,["src"])):Q(s.$slots,"image",{key:1},()=>[q(tR)])],6),k("div",{class:$(r(a).e("description"))},[s.$slots.description?Q(s.$slots,"description",{key:0}):(_(),x("p",{key:1},he(r(l)),1))],2),s.$slots.default?(_(),x("div",{key:0,class:$(r(a).e("bottom"))},[Q(s.$slots,"default")],2)):ee("v-if",!0)],2))}});var oR=ve(lR,[["__file","empty.vue"]]);const Xh=We(oR),rR=pe({size:{type:String,values:xa},disabled:Boolean}),sR=pe({...rR,model:Object,rules:{type:X(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:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean]}}),iR={validate:(e,t,n)=>(Ee(e)||Ve(e))&&Et(t)&&Ve(n)};function uR(){const e=A([]),t=C(()=>{if(!e.value.length)return"0";const o=Math.max(...e.value);return o?`${o}px`:""});function n(o){const s=e.value.indexOf(o);return s===-1&&t.value,s}function a(o,s){if(o&&s){const i=n(s);e.value.splice(i,1,o)}else o&&e.value.push(o)}function l(o){const s=n(o);s>-1&&e.value.splice(s,1)}return{autoLabelWidth:t,registerLabelWidth:a,deregisterLabelWidth:l}}const os=(e,t)=>{const n=wn(t);return n.length>0?e.filter(a=>a.prop&&n.includes(a.prop)):e},cR="ElForm",dR=T({name:cR}),fR=T({...dR,props:sR,emits:iR,setup(e,{expose:t,emit:n}){const a=e,l=[],o=jt(),s=de("form"),i=C(()=>{const{labelPosition:w,inline:b}=a;return[s.b(),s.m(o.value||"default"),{[s.m(`label-${w}`)]:w,[s.m("inline")]:b}]}),u=w=>l.find(b=>b.prop===w),c=w=>{l.push(w)},d=w=>{w.prop&&l.splice(l.indexOf(w),1)},f=(w=[])=>{a.model&&os(l,w).forEach(b=>b.resetField())},h=(w=[])=>{os(l,w).forEach(b=>b.clearValidate())},v=C(()=>!!a.model),m=w=>{if(l.length===0)return[];const b=os(l,w);return b.length?b:[]},p=async w=>g(void 0,w),y=async(w=[])=>{if(!v.value)return!1;const b=m(w);if(b.length===0)return!0;let S={};for(const E of b)try{await E.validate(""),E.validateState==="error"&&E.resetField()}catch(O){S={...S,...O}}return Object.keys(S).length===0?!0:Promise.reject(S)},g=async(w=[],b)=>{const S=!Qe(b);try{const E=await y(w);return E===!0&&await(b==null?void 0:b(E)),E}catch(E){if(E instanceof Error)throw E;const O=E;return a.scrollToError&&M(Object.keys(O)[0]),await(b==null?void 0:b(!1,O)),S&&Promise.reject(O)}},M=w=>{var b;const S=os(l,w)[0];S&&((b=S.$el)==null||b.scrollIntoView(a.scrollIntoViewOptions))};return se(()=>a.rules,()=>{a.validateOnRuleChange&&p().catch(w=>void 0)},{deep:!0,flush:"post"}),it(Dl,_t({...nn(a),emit:n,resetFields:f,clearValidate:h,validateField:g,getField:u,addField:c,removeField:d,...uR()})),t({validate:p,validateField:g,resetFields:f,clearValidate:h,scrollToField:M,fields:l}),(w,b)=>(_(),x("form",{class:$(r(i))},[Q(w.$slots,"default")],2))}});var pR=ve(fR,[["__file","form.vue"]]);function wl(){return wl=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 $s(e,t,n){return hR()?$s=Reflect.construct.bind():$s=function(l,o,s){var i=[null];i.push.apply(i,o);var u=Function.bind.apply(l,i),c=new u;return s&&yr(c,s.prototype),c},$s.apply(null,arguments)}function mR(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function oc(e){var t=typeof Map=="function"?new Map:void 0;return oc=function(a){if(a===null||!mR(a))return a;if(typeof a!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(a))return t.get(a);t.set(a,l)}function l(){return $s(a,arguments,lc(this).constructor)}return l.prototype=Object.create(a.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),yr(l,a)},oc(e)}var gR=/%[sdj%]/g,yR=function(){};function rc(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var a=n.field;t[a]=t[a]||[],t[a].push(n)}),t}function Dn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a=o)return i;switch(i){case"%s":return String(n[l++]);case"%d":return Number(n[l++]);case"%j":try{return JSON.stringify(n[l++])}catch{return"[Circular]"}break;default:return i}});return s}return e}function _R(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function an(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||_R(t)&&typeof e=="string"&&!e)}function bR(e,t,n){var a=[],l=0,o=e.length;function s(i){a.push.apply(a,i||[]),l++,l===o&&n(a)}e.forEach(function(i){t(i,s)})}function P2(e,t,n){var a=0,l=e.length;function o(s){if(s&&s.length){n(s);return}var i=a;a=a+1,i()\[\]\\.,;:\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},Xo={integer:function(t){return Xo.number(t)&&parseInt(t,10)===t},float:function(t){return Xo.number(t)&&!Xo.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"&&!Xo.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(L2.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(MR())},hex:function(t){return typeof t=="string"&&!!t.match(L2.hex)}},xR=function(t,n,a,l,o){if(t.required&&n===void 0){Zh(t,n,a,l,o);return}var s=["integer","float","array","regexp","object","method","email","number","date","url","hex"],i=t.type;s.indexOf(i)>-1?Xo[i](n)||l.push(Dn(o.messages.types[i],t.fullField,t.type)):i&&typeof n!==t.type&&l.push(Dn(o.messages.types[i],t.fullField,t.type))},$R=function(t,n,a,l,o){var s=typeof t.len=="number",i=typeof t.min=="number",u=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,f=null,h=typeof n=="number",v=typeof n=="string",m=Array.isArray(n);if(h?f="number":v?f="string":m&&(f="array"),!f)return!1;m&&(d=n.length),v&&(d=n.replace(c,"_").length),s?d!==t.len&&l.push(Dn(o.messages[f].len,t.fullField,t.len)):i&&!u&&dt.max?l.push(Dn(o.messages[f].max,t.fullField,t.max)):i&&u&&(dt.max)&&l.push(Dn(o.messages[f].range,t.fullField,t.min,t.max))},ql="enum",TR=function(t,n,a,l,o){t[ql]=Array.isArray(t[ql])?t[ql]:[],t[ql].indexOf(n)===-1&&l.push(Dn(o.messages[ql],t.fullField,t[ql].join(", ")))},OR=function(t,n,a,l,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||l.push(Dn(o.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var s=new RegExp(t.pattern);s.test(n)||l.push(Dn(o.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},xt={required:Zh,whitespace:ER,type:xR,range:$R,enum:TR,pattern:OR},NR=function(t,n,a,l,o){var s=[],i=t.required||!t.required&&l.hasOwnProperty(t.field);if(i){if(an(n,"string")&&!t.required)return a();xt.required(t,n,l,s,o,"string"),an(n,"string")||(xt.type(t,n,l,s,o),xt.range(t,n,l,s,o),xt.pattern(t,n,l,s,o),t.whitespace===!0&&xt.whitespace(t,n,l,s,o))}a(s)},IR=function(t,n,a,l,o){var s=[],i=t.required||!t.required&&l.hasOwnProperty(t.field);if(i){if(an(n)&&!t.required)return a();xt.required(t,n,l,s,o),n!==void 0&&xt.type(t,n,l,s,o)}a(s)},PR=function(t,n,a,l,o){var s=[],i=t.required||!t.required&&l.hasOwnProperty(t.field);if(i){if(n===""&&(n=void 0),an(n)&&!t.required)return a();xt.required(t,n,l,s,o),n!==void 0&&(xt.type(t,n,l,s,o),xt.range(t,n,l,s,o))}a(s)},zR=function(t,n,a,l,o){var s=[],i=t.required||!t.required&&l.hasOwnProperty(t.field);if(i){if(an(n)&&!t.required)return a();xt.required(t,n,l,s,o),n!==void 0&&xt.type(t,n,l,s,o)}a(s)},AR=function(t,n,a,l,o){var s=[],i=t.required||!t.required&&l.hasOwnProperty(t.field);if(i){if(an(n)&&!t.required)return a();xt.required(t,n,l,s,o),an(n)||xt.type(t,n,l,s,o)}a(s)},VR=function(t,n,a,l,o){var s=[],i=t.required||!t.required&&l.hasOwnProperty(t.field);if(i){if(an(n)&&!t.required)return a();xt.required(t,n,l,s,o),n!==void 0&&(xt.type(t,n,l,s,o),xt.range(t,n,l,s,o))}a(s)},LR=function(t,n,a,l,o){var s=[],i=t.required||!t.required&&l.hasOwnProperty(t.field);if(i){if(an(n)&&!t.required)return a();xt.required(t,n,l,s,o),n!==void 0&&(xt.type(t,n,l,s,o),xt.range(t,n,l,s,o))}a(s)},RR=function(t,n,a,l,o){var s=[],i=t.required||!t.required&&l.hasOwnProperty(t.field);if(i){if(n==null&&!t.required)return a();xt.required(t,n,l,s,o,"array"),n!=null&&(xt.type(t,n,l,s,o),xt.range(t,n,l,s,o))}a(s)},BR=function(t,n,a,l,o){var s=[],i=t.required||!t.required&&l.hasOwnProperty(t.field);if(i){if(an(n)&&!t.required)return a();xt.required(t,n,l,s,o),n!==void 0&&xt.type(t,n,l,s,o)}a(s)},HR="enum",DR=function(t,n,a,l,o){var s=[],i=t.required||!t.required&&l.hasOwnProperty(t.field);if(i){if(an(n)&&!t.required)return a();xt.required(t,n,l,s,o),n!==void 0&&xt[HR](t,n,l,s,o)}a(s)},FR=function(t,n,a,l,o){var s=[],i=t.required||!t.required&&l.hasOwnProperty(t.field);if(i){if(an(n,"string")&&!t.required)return a();xt.required(t,n,l,s,o),an(n,"string")||xt.pattern(t,n,l,s,o)}a(s)},KR=function(t,n,a,l,o){var s=[],i=t.required||!t.required&&l.hasOwnProperty(t.field);if(i){if(an(n,"date")&&!t.required)return a();if(xt.required(t,n,l,s,o),!an(n,"date")){var u;n instanceof Date?u=n:u=new Date(n),xt.type(t,u,l,s,o),u&&xt.range(t,u.getTime(),l,s,o)}}a(s)},WR=function(t,n,a,l,o){var s=[],i=Array.isArray(n)?"array":typeof n;xt.required(t,n,l,s,o,i),a(s)},pu=function(t,n,a,l,o){var s=t.type,i=[],u=t.required||!t.required&&l.hasOwnProperty(t.field);if(u){if(an(n,s)&&!t.required)return a();xt.required(t,n,l,i,o,s),an(n,s)||xt.type(t,n,l,i,o)}a(i)},jR=function(t,n,a,l,o){var s=[],i=t.required||!t.required&&l.hasOwnProperty(t.field);if(i){if(an(n)&&!t.required)return a();xt.required(t,n,l,s,o)}a(s)},lr={string:NR,method:IR,number:PR,boolean:zR,regexp:AR,integer:VR,float:LR,array:RR,object:BR,enum:DR,pattern:FR,date:KR,url:pu,hex:pu,email:pu,required:WR,any:jR};function sc(){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 ic=sc(),Hr=function(){function e(n){this.rules=null,this._messages=ic,this.define(n)}var t=e.prototype;return t.define=function(a){var l=this;if(!a)throw new Error("Cannot configure a schema with no rules");if(typeof a!="object"||Array.isArray(a))throw new Error("Rules must be an object");this.rules={},Object.keys(a).forEach(function(o){var s=a[o];l.rules[o]=Array.isArray(s)?s:[s]})},t.messages=function(a){return a&&(this._messages=V2(sc(),a)),this._messages},t.validate=function(a,l,o){var s=this;l===void 0&&(l={}),o===void 0&&(o=function(){});var i=a,u=l,c=o;if(typeof u=="function"&&(c=u,u={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,i),Promise.resolve(i);function d(p){var y=[],g={};function M(b){if(Array.isArray(b)){var S;y=(S=y).concat.apply(S,b)}else y.push(b)}for(var w=0;w");const l=de("form"),o=A(),s=A(0),i=()=>{var d;if((d=o.value)!=null&&d.firstElementChild){const f=window.getComputedStyle(o.value.firstElementChild).width;return Math.ceil(Number.parseFloat(f))}else return 0},u=(d="update")=>{Oe(()=>{t.default&&e.isAutoWidth&&(d==="update"?s.value=i():d==="remove"&&(n==null||n.deregisterLabelWidth(s.value)))})},c=()=>u("update");return Ge(()=>{c()}),Tt(()=>{u("remove")}),ja(()=>c()),se(s,(d,f)=>{e.updateAll&&(n==null||n.registerLabelWidth(d,f))}),At(C(()=>{var d,f;return(f=(d=o.value)==null?void 0:d.firstElementChild)!=null?f:null}),c),()=>{var d,f;if(!t)return null;const{isAutoWidth:h}=e;if(h){const v=n==null?void 0:n.autoLabelWidth,m=a==null?void 0:a.hasLabel,p={};if(m&&v&&v!=="auto"){const y=Math.max(0,Number.parseInt(v,10)-s.value),M=(a.labelPosition||n.labelPosition)==="left"?"marginRight":"marginLeft";y&&(p[M]=`${y}px`)}return q("div",{ref:o,class:[l.be("item","label-wrap")],style:p},[(d=t.default)==null?void 0:d.call(t)])}else return q(ze,{ref:o},[(f=t.default)==null?void 0:f.call(t)])}}});const GR=T({name:"ElFormItem"}),XR=T({...GR,props:UR,setup(e,{expose:t}){const n=e,a=Xt(),l=Se(Dl,void 0),o=Se(ka,void 0),s=jt(void 0,{formItem:!1}),i=de("form-item"),u=rn().value,c=A([]),d=A(""),f=nb(d,100),h=A(""),v=A();let m,p=!1;const y=C(()=>n.labelPosition||(l==null?void 0:l.labelPosition)),g=C(()=>{if(y.value==="top")return{};const ie=Rt(n.labelWidth||(l==null?void 0:l.labelWidth)||"");return ie?{width:ie}:{}}),M=C(()=>{if(y.value==="top"||l!=null&&l.inline)return{};if(!n.label&&!n.labelWidth&&z)return{};const ie=Rt(n.labelWidth||(l==null?void 0:l.labelWidth)||"");return!n.label&&!a.label?{marginLeft:ie}:{}}),w=C(()=>[i.b(),i.m(s.value),i.is("error",d.value==="error"),i.is("validating",d.value==="validating"),i.is("success",d.value==="success"),i.is("required",H.value||n.required),i.is("no-asterisk",l==null?void 0:l.hideRequiredAsterisk),(l==null?void 0:l.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[i.m("feedback")]:l==null?void 0:l.statusIcon,[i.m(`label-${y.value}`)]:y.value}]),b=C(()=>Et(n.inlineMessage)?n.inlineMessage:(l==null?void 0:l.inlineMessage)||!1),S=C(()=>[i.e("error"),{[i.em("error","inline")]:b.value}]),E=C(()=>n.prop?Ve(n.prop)?n.prop:n.prop.join("."):""),O=C(()=>!!(n.label||a.label)),I=C(()=>n.for||(c.value.length===1?c.value[0]:void 0)),N=C(()=>!I.value&&O.value),z=!!o,P=C(()=>{const ie=l==null?void 0:l.model;if(!(!ie||!n.prop))return ps(ie,n.prop).value}),L=C(()=>{const{required:ie}=n,fe=[];n.rules&&fe.push(...wn(n.rules));const Me=l==null?void 0:l.rules;if(Me&&n.prop){const me=ps(Me,n.prop).value;me&&fe.push(...wn(me))}if(ie!==void 0){const me=fe.map((le,we)=>[le,we]).filter(([le])=>Object.keys(le).includes("required"));if(me.length>0)for(const[le,we]of me)le.required!==ie&&(fe[we]={...le,required:ie});else fe.push({required:ie})}return fe}),F=C(()=>L.value.length>0),U=ie=>L.value.filter(Me=>!Me.trigger||!ie?!0:Ee(Me.trigger)?Me.trigger.includes(ie):Me.trigger===ie).map(({trigger:Me,...me})=>me),H=C(()=>L.value.some(ie=>ie.required)),R=C(()=>{var ie;return f.value==="error"&&n.showMessage&&((ie=l==null?void 0:l.showMessage)!=null?ie:!0)}),D=C(()=>`${n.label||""}${(l==null?void 0:l.labelSuffix)||""}`),B=ie=>{d.value=ie},V=ie=>{var fe,Me;const{errors:me,fields:le}=ie;(!me||!le)&&console.error(ie),B("error"),h.value=me?(Me=(fe=me==null?void 0:me[0])==null?void 0:fe.message)!=null?Me:`${n.prop} is required`:"",l==null||l.emit("validate",n.prop,!1,h.value)},K=()=>{B("success"),l==null||l.emit("validate",n.prop,!0,"")},W=async ie=>{const fe=E.value;return new Hr({[fe]:ie}).validate({[fe]:P.value},{firstFields:!0}).then(()=>(K(),!0)).catch(me=>(V(me),Promise.reject(me)))},Z=async(ie,fe)=>{if(p||!n.prop)return!1;const Me=Qe(fe);if(!F.value)return fe==null||fe(!1),!1;const me=U(ie);return me.length===0?(fe==null||fe(!0),!0):(B("validating"),W(me).then(()=>(fe==null||fe(!0),!0)).catch(le=>{const{fields:we}=le;return fe==null||fe(!1,we),Me?!1:Promise.reject(we)}))},j=()=>{B(""),h.value="",p=!1},ne=async()=>{const ie=l==null?void 0:l.model;if(!ie||!n.prop)return;const fe=ps(ie,n.prop);p=!0,fe.value=i0(m),await Oe(),j(),p=!1},oe=ie=>{c.value.includes(ie)||c.value.push(ie)},ce=ie=>{c.value=c.value.filter(fe=>fe!==ie)};se(()=>n.error,ie=>{h.value=ie||"",B(ie?"error":"")},{immediate:!0}),se(()=>n.validateStatus,ie=>B(ie||""));const te=_t({...nn(n),$el:v,size:s,validateState:d,labelId:u,inputIds:c,isGroup:N,hasLabel:O,fieldValue:P,addInputId:oe,removeInputId:ce,resetField:ne,clearValidate:j,validate:Z});return it(ka,te),Ge(()=>{n.prop&&(l==null||l.addField(te),m=i0(P.value))}),Tt(()=>{l==null||l.removeField(te)}),t({size:s,validateMessage:h,validateState:d,validate:Z,clearValidate:j,resetField:ne}),(ie,fe)=>{var Me;return _(),x("div",{ref_key:"formItemRef",ref:v,class:$(r(w)),role:r(N)?"group":void 0,"aria-labelledby":r(N)?r(u):void 0},[q(r(YR),{"is-auto-width":r(g).width==="auto","update-all":((Me=r(l))==null?void 0:Me.labelWidth)==="auto"},{default:G(()=>[r(O)?(_(),ae(et(r(I)?"label":"div"),{key:0,id:r(u),for:r(I),class:$(r(i).e("label")),style:Ne(r(g))},{default:G(()=>[Q(ie.$slots,"label",{label:r(D)},()=>[ot(he(r(D)),1)])]),_:3},8,["id","for","class","style"])):ee("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),k("div",{class:$(r(i).e("content")),style:Ne(r(M))},[Q(ie.$slots,"default"),q(Rp,{name:`${r(i).namespace.value}-zoom-in-top`},{default:G(()=>[r(R)?Q(ie.$slots,"error",{key:0,error:h.value},()=>[k("div",{class:$(r(S))},he(h.value),3)]):ee("v-if",!0)]),_:3},8,["name"])],6)],10,["role","aria-labelledby"])}}});var Jh=ve(XR,[["__file","form-item.vue"]]);const ZR=We(pR,{FormItem:Jh}),JR=Lt(Jh),QR=pe({urlList:{type:X(Array),default:()=>Vt([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:Boolean,teleported:Boolean,closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},crossorigin:{type:X(String)}}),eB={close:()=>!0,switch:e=>Ie(e),rotate:e=>Ie(e)},tB=T({name:"ElImageViewer"}),nB=T({...tB,props:QR,emits:eB,setup(e,{expose:t,emit:n}){var a;const l=e,o={CONTAIN:{name:"contain",icon:El(Qv)},ORIGINAL:{name:"original",icon:El(s1)}},{t:s}=ct(),i=de("image-viewer"),{nextZIndex:u}=zo(),c=A(),d=A([]),f=dg(),h=A(!0),v=A(l.initialIndex),m=Mt(o.CONTAIN),p=A({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),y=A((a=l.zIndex)!=null?a:u()),g=C(()=>{const{urlList:Z}=l;return Z.length<=1}),M=C(()=>v.value===0),w=C(()=>v.value===l.urlList.length-1),b=C(()=>l.urlList[v.value]),S=C(()=>[i.e("btn"),i.e("prev"),i.is("disabled",!l.infinite&&M.value)]),E=C(()=>[i.e("btn"),i.e("next"),i.is("disabled",!l.infinite&&w.value)]),O=C(()=>{const{scale:Z,deg:j,offsetX:ne,offsetY:oe,enableTransition:ce}=p.value;let te=ne/Z,ie=oe/Z;const fe=j*Math.PI/180,Me=Math.cos(fe),me=Math.sin(fe);te=te*Me+ie*me,ie=ie*Me-ne/Z*me;const le={transform:`scale(${Z}) rotate(${j}deg) translate(${te}px, ${ie}px)`,transition:ce?"transform .3s":""};return m.value.name===o.CONTAIN.name&&(le.maxWidth=le.maxHeight="100%"),le});function I(){z(),n("close")}function N(){const Z=Ml(ne=>{switch(ne.code){case Ce.esc:l.closeOnPressEscape&&I();break;case Ce.space:H();break;case Ce.left:D();break;case Ce.up:V("zoomIn");break;case Ce.right:B();break;case Ce.down:V("zoomOut");break}}),j=Ml(ne=>{const oe=ne.deltaY||ne.deltaX;V(oe<0?"zoomIn":"zoomOut",{zoomRate:l.zoomRate,enableTransition:!1})});f.run(()=>{wt(document,"keydown",Z),wt(document,"wheel",j)})}function z(){f.stop()}function P(){h.value=!1}function L(Z){h.value=!1,Z.target.alt=s("el.image.error")}function F(Z){if(h.value||Z.button!==0||!c.value)return;p.value.enableTransition=!1;const{offsetX:j,offsetY:ne}=p.value,oe=Z.pageX,ce=Z.pageY,te=Ml(fe=>{p.value={...p.value,offsetX:j+fe.pageX-oe,offsetY:ne+fe.pageY-ce}}),ie=wt(document,"mousemove",te);wt(document,"mouseup",()=>{ie()}),Z.preventDefault()}function U(){p.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function H(){if(h.value)return;const Z=po(o),j=Object.values(o),ne=m.value.name,ce=(j.findIndex(te=>te.name===ne)+1)%Z.length;m.value=o[Z[ce]],U()}function R(Z){const j=l.urlList.length;v.value=(Z+j)%j}function D(){M.value&&!l.infinite||R(v.value-1)}function B(){w.value&&!l.infinite||R(v.value+1)}function V(Z,j={}){if(h.value)return;const{minScale:ne,maxScale:oe}=l,{zoomRate:ce,rotateDeg:te,enableTransition:ie}={zoomRate:l.zoomRate,rotateDeg:90,enableTransition:!0,...j};switch(Z){case"zoomOut":p.value.scale>ne&&(p.value.scale=Number.parseFloat((p.value.scale/ce).toFixed(3)));break;case"zoomIn":p.value.scale{Oe(()=>{const Z=d.value[0];Z!=null&&Z.complete||(h.value=!0)})}),se(v,Z=>{U(),n("switch",Z)}),Ge(()=>{N()}),t({setActiveItem:R}),(Z,j)=>(_(),ae(r(Ro),{to:"body",disabled:!Z.teleported},{default:G(()=>[q(tn,{name:"viewer-fade",appear:""},{default:G(()=>[k("div",{ref_key:"wrapper",ref:c,tabindex:-1,class:$(r(i).e("wrapper")),style:Ne({zIndex:y.value})},[q(r(Lo),{loop:"",trapped:"","focus-trap-el":c.value,"focus-start-el":"container",onFocusoutPrevented:K,onReleaseRequested:W},{default:G(()=>[k("div",{class:$(r(i).e("mask")),onClick:Ae(ne=>Z.hideOnClickModal&&I(),["self"])},null,10,["onClick"]),ee(" CLOSE "),k("span",{class:$([r(i).e("btn"),r(i).e("close")]),onClick:I},[q(r(xe),null,{default:G(()=>[q(r(Xn))]),_:1})],2),ee(" ARROW "),r(g)?ee("v-if",!0):(_(),x(ze,{key:0},[k("span",{class:$(r(S)),onClick:D},[q(r(xe),null,{default:G(()=>[q(r(Ra))]),_:1})],2),k("span",{class:$(r(E)),onClick:B},[q(r(xe),null,{default:G(()=>[q(r(En))]),_:1})],2)],64)),ee(" ACTIONS "),k("div",{class:$([r(i).e("btn"),r(i).e("actions")])},[k("div",{class:$(r(i).e("actions__inner"))},[q(r(xe),{onClick:ne=>V("zoomOut")},{default:G(()=>[q(r(p1))]),_:1},8,["onClick"]),q(r(xe),{onClick:ne=>V("zoomIn")},{default:G(()=>[q(r(yd))]),_:1},8,["onClick"]),k("i",{class:$(r(i).e("actions__divider"))},null,2),q(r(xe),{onClick:H},{default:G(()=>[(_(),ae(et(r(m).icon)))]),_:1}),k("i",{class:$(r(i).e("actions__divider"))},null,2),q(r(xe),{onClick:ne=>V("anticlockwise")},{default:G(()=>[q(r(o1))]),_:1},8,["onClick"]),q(r(xe),{onClick:ne=>V("clockwise")},{default:G(()=>[q(r(r1))]),_:1},8,["onClick"])],2)],2),ee(" CANVAS "),k("div",{class:$(r(i).e("canvas"))},[(_(!0),x(ze,null,rt(Z.urlList,(ne,oe)=>qe((_(),x("img",{ref_for:!0,ref:ce=>d.value[oe]=ce,key:ne,src:ne,style:Ne(r(O)),class:$(r(i).e("img")),crossorigin:Z.crossorigin,onLoad:P,onError:L,onMousedown:F},null,46,["src","crossorigin"])),[[pt,oe===v.value]])),128))],2),Q(Z.$slots,"default")]),_:3},8,["focus-trap-el"])],6)]),_:3})]),_:3},8,["disabled"]))}});var aB=ve(nB,[["__file","image-viewer.vue"]]);const Qh=We(aB),lB=pe({hideOnClickModal:Boolean,src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:Boolean,scrollContainer:{type:X([String,Object])},previewSrcList:{type:X(Array),default:()=>Vt([])},previewTeleported:Boolean,zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},crossorigin:{type:X(String)}}),oB={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>Ie(e),close:()=>!0,show:()=>!0},rB=T({name:"ElImage",inheritAttrs:!1}),sB=T({...rB,props:lB,emits:oB,setup(e,{emit:t}){const n=e;let a="";const{t:l}=ct(),o=de("image"),s=Wa(),i=C(()=>fr(Object.entries(s).filter(([B])=>/^(data-|on[A-Z])/i.test(B)||["id","style"].includes(B)))),u=Vr({excludeListeners:!0,excludeKeys:C(()=>Object.keys(i.value))}),c=A(),d=A(!1),f=A(!0),h=A(!1),v=A(),m=A(),p=ut&&"loading"in HTMLImageElement.prototype;let y,g;const M=C(()=>[o.e("inner"),b.value&&o.e("preview"),f.value&&o.is("loading")]),w=C(()=>{const{fit:B}=n;return ut&&B?{objectFit:B}:{}}),b=C(()=>{const{previewSrcList:B}=n;return Ee(B)&&B.length>0}),S=C(()=>{const{previewSrcList:B,initialIndex:V}=n;let K=V;return V>B.length-1&&(K=0),K}),E=C(()=>n.loading==="eager"?!1:!p&&n.loading==="lazy"||n.lazy),O=()=>{ut&&(f.value=!0,d.value=!1,c.value=n.src)};function I(B){f.value=!1,d.value=!1,t("load",B)}function N(B){f.value=!1,d.value=!0,t("error",B)}function z(){vz(v.value,m.value)&&(O(),F())}const P=Ov(z,200,!0);async function L(){var B;if(!ut)return;await Oe();const{scrollContainer:V}=n;Tn(V)?m.value=V:Ve(V)&&V!==""?m.value=(B=document.querySelector(V))!=null?B:void 0:v.value&&(m.value=fd(v.value)),m.value&&(y=wt(m,"scroll",P),setTimeout(()=>z(),100))}function F(){!ut||!m.value||!P||(y==null||y(),m.value=void 0)}function U(B){if(B.ctrlKey){if(B.deltaY<0)return B.preventDefault(),!1;if(B.deltaY>0)return B.preventDefault(),!1}}function H(){b.value&&(g=wt("wheel",U,{passive:!1}),a=document.body.style.overflow,document.body.style.overflow="hidden",h.value=!0,t("show"))}function R(){g==null||g(),document.body.style.overflow=a,h.value=!1,t("close")}function D(B){t("switch",B)}return se(()=>n.src,()=>{E.value?(f.value=!0,d.value=!1,F(),L()):O()}),Ge(()=>{E.value?L():O()}),(B,V)=>(_(),x("div",tt({ref_key:"container",ref:v},r(i),{class:[r(o).b(),B.$attrs.class]}),[d.value?Q(B.$slots,"error",{key:0},()=>[k("div",{class:$(r(o).e("error"))},he(r(l)("el.image.error")),3)]):(_(),x(ze,{key:1},[c.value!==void 0?(_(),x("img",tt({key:0},r(u),{src:c.value,loading:B.loading,style:r(w),class:r(M),crossorigin:B.crossorigin,onClick:H,onLoad:I,onError:N}),null,16,["src","loading","crossorigin"])):ee("v-if",!0),f.value?(_(),x("div",{key:1,class:$(r(o).e("wrapper"))},[Q(B.$slots,"placeholder",{},()=>[k("div",{class:$(r(o).e("placeholder"))},null,2)])],2)):ee("v-if",!0)],64)),r(b)?(_(),x(ze,{key:2},[h.value?(_(),ae(r(Qh),{key:0,"z-index":B.zIndex,"initial-index":r(S),infinite:B.infinite,"zoom-rate":B.zoomRate,"min-scale":B.minScale,"max-scale":B.maxScale,"url-list":B.previewSrcList,crossorigin:B.crossorigin,"hide-on-click-modal":B.hideOnClickModal,teleported:B.previewTeleported,"close-on-press-escape":B.closeOnPressEscape,onClose:R,onSwitch:D},{default:G(()=>[B.$slots.viewer?(_(),x("div",{key:0},[Q(B.$slots,"viewer")])):ee("v-if",!0)]),_:3},8,["z-index","initial-index","infinite","zoom-rate","min-scale","max-scale","url-list","crossorigin","hide-on-click-modal","teleported","close-on-press-escape"])):ee("v-if",!0)],64)):ee("v-if",!0)],16))}});var iB=ve(sB,[["__file","image.vue"]]);const uB=We(iB),cB=pe({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.POSITIVE_INFINITY},min:{type:Number,default:Number.NEGATIVE_INFINITY},modelValue:Number,readonly:Boolean,disabled:Boolean,size:qt,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:e=>e===null||Ie(e)||["min","max"].includes(e),default:null},name:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===Number.parseInt(`${e}`,10)},validateEvent:{type:Boolean,default:!0},...sn(["ariaLabel"])}),dB={[Ct]:(e,t)=>t!==e,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[pn]:e=>Ie(e)||Zt(e),[Ue]:e=>Ie(e)||Zt(e)},fB=T({name:"ElInputNumber"}),pB=T({...fB,props:cB,emits:dB,setup(e,{expose:t,emit:n}){const a=e,{t:l}=ct(),o=de("input-number"),s=A(),i=_t({currentValue:a.modelValue,userInput:null}),{formItem:u}=gn(),c=C(()=>Ie(a.modelValue)&&a.modelValue<=a.min),d=C(()=>Ie(a.modelValue)&&a.modelValue>=a.max),f=C(()=>{const H=g(a.step);return vt(a.precision)?Math.max(g(a.modelValue),H):(H>a.precision,a.precision)}),h=C(()=>a.controls&&a.controlsPosition==="right"),v=jt(),m=yn(),p=C(()=>{if(i.userInput!==null)return i.userInput;let H=i.currentValue;if(Zt(H))return"";if(Ie(H)){if(Number.isNaN(H))return"";vt(a.precision)||(H=H.toFixed(a.precision))}return H}),y=(H,R)=>{if(vt(R)&&(R=f.value),R===0)return Math.round(H);let D=String(H);const B=D.indexOf(".");if(B===-1||!D.replace(".","").split("")[B+R])return H;const W=D.length;return D.charAt(W-1)==="5"&&(D=`${D.slice(0,Math.max(0,W-1))}6`),Number.parseFloat(Number(D).toFixed(R))},g=H=>{if(Zt(H))return 0;const R=H.toString(),D=R.indexOf(".");let B=0;return D!==-1&&(B=R.length-D-1),B},M=(H,R=1)=>Ie(H)?y(H+a.step*R):i.currentValue,w=()=>{if(a.readonly||m.value||d.value)return;const H=Number(p.value)||0,R=M(H);E(R),n(pn,i.currentValue),F()},b=()=>{if(a.readonly||m.value||c.value)return;const H=Number(p.value)||0,R=M(H,-1);E(R),n(pn,i.currentValue),F()},S=(H,R)=>{const{max:D,min:B,step:V,precision:K,stepStrictly:W,valueOnClear:Z}=a;DD||jD?D:B,R&&n(Ue,j)),j},E=(H,R=!0)=>{var D;const B=i.currentValue,V=S(H);if(!R){n(Ue,V);return}B===V&&H||(i.userInput=null,n(Ue,V),B!==V&&n(Ct,V,B),a.validateEvent&&((D=u==null?void 0:u.validate)==null||D.call(u,"change").catch(K=>void 0)),i.currentValue=V)},O=H=>{i.userInput=H;const R=H===""?null:Number(H);n(pn,R),E(R,!1)},I=H=>{const R=H!==""?Number(H):"";(Ie(R)&&!Number.isNaN(R)||H==="")&&E(R),F(),i.userInput=null},N=()=>{var H,R;(R=(H=s.value)==null?void 0:H.focus)==null||R.call(H)},z=()=>{var H,R;(R=(H=s.value)==null?void 0:H.blur)==null||R.call(H)},P=H=>{n("focus",H)},L=H=>{var R,D;i.userInput=null,Ti()&&i.currentValue===null&&((R=s.value)!=null&&R.input)&&(s.value.input.value=""),n("blur",H),a.validateEvent&&((D=u==null?void 0:u.validate)==null||D.call(u,"blur").catch(B=>void 0))},F=()=>{i.currentValue!==a.modelValue&&(i.currentValue=a.modelValue)},U=H=>{document.activeElement===H.target&&H.preventDefault()};return se(()=>a.modelValue,(H,R)=>{const D=S(H,!0);i.userInput===null&&D!==R&&(i.currentValue=D)},{immediate:!0}),Ge(()=>{var H;const{min:R,max:D,modelValue:B}=a,V=(H=s.value)==null?void 0:H.input;if(V.setAttribute("role","spinbutton"),Number.isFinite(D)?V.setAttribute("aria-valuemax",String(D)):V.removeAttribute("aria-valuemax"),Number.isFinite(R)?V.setAttribute("aria-valuemin",String(R)):V.removeAttribute("aria-valuemin"),V.setAttribute("aria-valuenow",i.currentValue||i.currentValue===0?String(i.currentValue):""),V.setAttribute("aria-disabled",String(m.value)),!Ie(B)&&B!=null){let K=Number(B);Number.isNaN(K)&&(K=null),n(Ue,K)}V.addEventListener("wheel",U,{passive:!1})}),ja(()=>{var H,R;const D=(H=s.value)==null?void 0:H.input;D==null||D.setAttribute("aria-valuenow",`${(R=i.currentValue)!=null?R:""}`)}),t({focus:N,blur:z}),(H,R)=>(_(),x("div",{class:$([r(o).b(),r(o).m(r(v)),r(o).is("disabled",r(m)),r(o).is("without-controls",!H.controls),r(o).is("controls-right",r(h))]),onDragstart:Ae(()=>{},["prevent"])},[H.controls?qe((_(),x("span",{key:0,role:"button","aria-label":r(l)("el.inputNumber.decrease"),class:$([r(o).e("decrease"),r(o).is("disabled",r(c))]),onKeydown:kt(b,["enter"])},[Q(H.$slots,"decrease-icon",{},()=>[q(r(xe),null,{default:G(()=>[r(h)?(_(),ae(r($a),{key:0})):(_(),ae(r(t1),{key:1}))]),_:1})])],42,["aria-label","onKeydown"])),[[r(Us),b]]):ee("v-if",!0),H.controls?qe((_(),x("span",{key:1,role:"button","aria-label":r(l)("el.inputNumber.increase"),class:$([r(o).e("increase"),r(o).is("disabled",r(d))]),onKeydown:kt(w,["enter"])},[Q(H.$slots,"increase-icon",{},()=>[q(r(xe),null,{default:G(()=>[r(h)?(_(),ae(r(ki),{key:0})):(_(),ae(r(md),{key:1}))]),_:1})])],42,["aria-label","onKeydown"])),[[r(Us),w]]):ee("v-if",!0),q(r(Sn),{id:H.id,ref_key:"input",ref:s,type:"number",step:H.step,"model-value":r(p),placeholder:H.placeholder,readonly:H.readonly,disabled:r(m),size:r(v),max:H.max,min:H.min,name:H.name,"aria-label":H.ariaLabel,"validate-event":!1,onKeydown:[kt(Ae(w,["prevent"]),["up"]),kt(Ae(b,["prevent"]),["down"])],onBlur:L,onFocus:P,onInput:O,onChange:I},Yn({_:2},[H.$slots.prefix?{name:"prefix",fn:G(()=>[Q(H.$slots,"prefix")])}:void 0,H.$slots.suffix?{name:"suffix",fn:G(()=>[Q(H.$slots,"suffix")])}:void 0]),1032,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","aria-label","onKeydown"])],42,["onDragstart"]))}});var vB=ve(pB,[["__file","input-number.vue"]]);const em=We(vB),hB=pe({modelValue:{type:X(Array)},max:Number,tagType:{...Fa.type,default:"info"},tagEffect:Fa.effect,trigger:{type:X(String),default:Ce.enter},draggable:{type:Boolean,default:!1},size:qt,clearable:Boolean,disabled:{type:Boolean,default:void 0},validateEvent:{type:Boolean,default:!0},readonly:Boolean,autofocus:Boolean,id:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},placeholder:String,autocomplete:{type:String,default:"off"},ariaLabel:String}),mB={[Ue]:e=>Ee(e)||vt(e),[Ct]:e=>Ee(e)||vt(e),[pn]:e=>Ve(e),"add-tag":e=>Ve(e),"remove-tag":e=>Ve(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0};function gB({props:e,emit:t,formItem:n}){const a=yn(),l=jt(),o=Mt(),s=A(),i=C(()=>["small"].includes(l.value)?"small":"default"),u=C(()=>{var N;return(N=e.modelValue)!=null&&N.length?void 0:e.placeholder}),c=C(()=>!(e.readonly||a.value)),d=C(()=>{var N,z;return vt(e.max)?!1:((z=(N=e.modelValue)==null?void 0:N.length)!=null?z:0)>=e.max}),f=N=>{if(d.value){s.value=void 0;return}S.value||t(pn,N.target.value)},h=N=>{var z;if(!S.value)switch(N.code){case e.trigger:N.preventDefault(),N.stopPropagation(),v();break;case Ce.numpadEnter:e.trigger===Ce.enter&&(N.preventDefault(),N.stopPropagation(),v());break;case Ce.backspace:!s.value&&((z=e.modelValue)!=null&&z.length)&&(N.preventDefault(),N.stopPropagation(),m(e.modelValue.length-1));break}},v=()=>{var N,z;const P=(N=s.value)==null?void 0:N.trim();if(!P||d.value)return;const L=[...(z=e.modelValue)!=null?z:[],P];t(Ue,L),t(Ct,L),t("add-tag",P),s.value=void 0},m=N=>{var z;const P=((z=e.modelValue)!=null?z:[]).slice(),[L]=P.splice(N,1);t(Ue,P),t(Ct,P),t("remove-tag",L)},p=()=>{s.value=void 0,t(Ue,void 0),t(Ct,void 0),t("clear")},y=(N,z,P)=>{var L;const F=((L=e.modelValue)!=null?L:[]).slice(),[U]=F.splice(N,1),H=z>N&&P==="before"?-1:z{var N;(N=o.value)==null||N.focus()},M=()=>{var N;(N=o.value)==null||N.blur()},{wrapperRef:w,isFocused:b}=fl(o,{beforeFocus(){return a.value},afterBlur(){var N;v(),e.validateEvent&&((N=n==null?void 0:n.validate)==null||N.call(n,"blur").catch(z=>void 0))}}),{isComposing:S,handleCompositionStart:E,handleCompositionUpdate:O,handleCompositionEnd:I}=Lr({afterComposition:f});return se(()=>e.modelValue,()=>{var N;e.validateEvent&&((N=n==null?void 0:n.validate)==null||N.call(n,Ct).catch(z=>void 0))}),{inputRef:o,wrapperRef:w,isFocused:b,isComposing:S,inputValue:s,size:l,tagSize:i,placeholder:u,closable:c,disabled:a,inputLimit:d,handleDragged:y,handleInput:f,handleKeydown:h,handleAddTag:v,handleRemoveTag:m,handleClear:p,handleCompositionStart:E,handleCompositionUpdate:O,handleCompositionEnd:I,focus:g,blur:M}}function yB(){const e=A(!1);return{hovering:e,handleMouseEnter:()=>{e.value=!0},handleMouseLeave:()=>{e.value=!1}}}function ef(){const e=Mt(),t=A(0),n=11,a=C(()=>({minWidth:`${Math.max(t.value,n)}px`}));return At(e,()=>{var o,s;t.value=(s=(o=e.value)==null?void 0:o.getBoundingClientRect().width)!=null?s:0}),{calculatorRef:e,calculatorWidth:t,inputStyle:a}}function _B({wrapperRef:e,handleDragged:t,afterDragged:n}){const a=de("input-tag"),l=Mt(),o=A(!1);let s,i,u,c;function d(m){return`.${a.e("inner")} .${a.namespace.value}-tag:nth-child(${m+1})`}function f(m,p){s=p,i=e.value.querySelector(d(p)),i&&(i.style.opacity="0.5"),m.dataTransfer.effectAllowed="move"}function h(m,p){if(u=p,m.preventDefault(),m.dataTransfer.dropEffect="move",vt(s)||s===p){o.value=!1;return}const y=e.value.querySelector(d(p)).getBoundingClientRect(),g=s+1!==p,M=s-1!==p,w=m.clientX-y.left,b=g?M?.5:1:-1,S=M?g?.5:0:1;w<=y.width*b?c="before":w>y.width*S?c="after":c=void 0;const E=e.value.querySelector(`.${a.e("inner")}`),O=E.getBoundingClientRect(),I=Number.parseFloat(Va(E,"gap"))/2,N=y.top-O.top;let z=-9999;if(c==="before")z=Math.max(y.left-O.left-I,Math.floor(-I/2));else if(c==="after"){const P=y.right-O.left;z=P+(O.width===P?Math.floor(I/2):I)}Kv(l.value,{top:`${N}px`,left:`${z}px`}),o.value=!!c}function v(m){m.preventDefault(),i&&(i.style.opacity=""),c&&!vt(s)&&!vt(u)&&s!==u&&t(s,u,c),o.value=!1,s=void 0,i=null,u=void 0,c=void 0,n==null||n()}return{dropIndicatorRef:l,showDropIndicator:o,handleDragStart:f,handleDragOver:h,handleDragEnd:v}}function bB({props:e,isFocused:t,hovering:n,disabled:a,inputValue:l,size:o,validateState:s,validateIcon:i,needStatusIcon:u}){const c=Wa(),d=Xt(),f=de("input-tag"),h=de("input"),v=C(()=>[f.b(),f.is("focused",t.value),f.is("hovering",n.value),f.is("disabled",a.value),f.m(o.value),f.e("wrapper"),c.class]),m=C(()=>[c.style]),p=C(()=>{var M,w;return[f.e("inner"),f.is("draggable",e.draggable),f.is("left-space",!((M=e.modelValue)!=null&&M.length)&&!d.prefix),f.is("right-space",!((w=e.modelValue)!=null&&w.length)&&!g.value)]}),y=C(()=>{var M;return e.clearable&&!a.value&&!e.readonly&&(((M=e.modelValue)==null?void 0:M.length)||l.value)&&(t.value||n.value)}),g=C(()=>d.suffix||y.value||s.value&&i.value&&u.value);return{ns:f,nsInput:h,containerKls:v,containerStyle:m,innerKls:p,showClear:y,showSuffix:g}}const wB=T({name:"ElInputTag",inheritAttrs:!1}),CB=T({...wB,props:hB,emits:mB,setup(e,{expose:t,emit:n}){const a=e,l=Vr(),o=Xt(),{form:s,formItem:i}=gn(),{inputId:u}=ea(a,{formItemContext:i}),c=C(()=>{var le;return(le=s==null?void 0:s.statusIcon)!=null?le:!1}),d=C(()=>(i==null?void 0:i.validateState)||""),f=C(()=>d.value&&$i[d.value]),{inputRef:h,wrapperRef:v,isFocused:m,inputValue:p,size:y,tagSize:g,placeholder:M,closable:w,disabled:b,handleDragged:S,handleInput:E,handleKeydown:O,handleRemoveTag:I,handleClear:N,handleCompositionStart:z,handleCompositionUpdate:P,handleCompositionEnd:L,focus:F,blur:U}=gB({props:a,emit:n,formItem:i}),{hovering:H,handleMouseEnter:R,handleMouseLeave:D}=yB(),{calculatorRef:B,inputStyle:V}=ef(),{dropIndicatorRef:K,showDropIndicator:W,handleDragStart:Z,handleDragOver:j,handleDragEnd:ne}=_B({wrapperRef:v,handleDragged:S,afterDragged:F}),{ns:oe,nsInput:ce,containerKls:te,containerStyle:ie,innerKls:fe,showClear:Me,showSuffix:me}=bB({props:a,hovering:H,isFocused:m,inputValue:p,disabled:b,size:y,validateState:d,validateIcon:f,needStatusIcon:c});return t({focus:F,blur:U}),(le,we)=>(_(),x("div",{ref_key:"wrapperRef",ref:v,class:$(r(te)),style:Ne(r(ie)),onMouseenter:r(R),onMouseleave:r(D)},[r(o).prefix?(_(),x("div",{key:0,class:$(r(oe).e("prefix"))},[Q(le.$slots,"prefix")],2)):ee("v-if",!0),k("div",{class:$(r(fe))},[(_(!0),x(ze,null,rt(le.modelValue,(Le,De)=>(_(),ae(r(_o),{key:De,size:r(g),closable:r(w),type:le.tagType,effect:le.tagEffect,draggable:r(w)&&le.draggable,"disable-transitions":"",onClose:Ye=>r(I)(De),onDragstart:Ye=>r(Z)(Ye,De),onDragover:Ye=>r(j)(Ye,De),onDragend:r(ne),onDrop:Ae(()=>{},["stop"])},{default:G(()=>[Q(le.$slots,"tag",{value:Le,index:De},()=>[ot(he(Le),1)])]),_:2},1032,["size","closable","type","effect","draggable","onClose","onDragstart","onDragover","onDragend","onDrop"]))),128)),k("div",{class:$(r(oe).e("input-wrapper"))},[qe(k("input",tt({id:r(u),ref_key:"inputRef",ref:h,"onUpdate:modelValue":Le=>dn(p)?p.value=Le:null},r(l),{type:"text",minlength:le.minlength,maxlength:le.maxlength,disabled:r(b),readonly:le.readonly,autocomplete:le.autocomplete,tabindex:le.tabindex,placeholder:r(M),autofocus:le.autofocus,ariaLabel:le.ariaLabel,class:r(oe).e("input"),style:r(V),onCompositionstart:r(z),onCompositionupdate:r(P),onCompositionend:r(L),onInput:r(E),onKeydown:r(O)}),null,16,["id","onUpdate:modelValue","minlength","maxlength","disabled","readonly","autocomplete","tabindex","placeholder","autofocus","ariaLabel","onCompositionstart","onCompositionupdate","onCompositionend","onInput","onKeydown"]),[[di,r(p)]]),k("span",{ref_key:"calculatorRef",ref:B,"aria-hidden":"true",class:$(r(oe).e("input-calculator")),textContent:he(r(p))},null,10,["textContent"])],2),qe(k("div",{ref_key:"dropIndicatorRef",ref:K,class:$(r(oe).e("drop-indicator"))},null,2),[[pt,r(W)]])],2),r(me)?(_(),x("div",{key:1,class:$(r(oe).e("suffix"))},[Q(le.$slots,"suffix"),r(Me)?(_(),ae(r(xe),{key:0,class:$([r(oe).e("icon"),r(oe).e("clear")]),onMousedown:Ae(r(zt),["prevent"]),onClick:r(N)},{default:G(()=>[q(r(Ta))]),_:1},8,["class","onMousedown","onClick"])):ee("v-if",!0),r(d)&&r(f)&&r(c)?(_(),ae(r(xe),{key:1,class:$([r(ce).e("icon"),r(ce).e("validateIcon"),r(ce).is("loading",r(d)==="validating")])},{default:G(()=>[(_(),ae(et(r(f))))]),_:1},8,["class"])):ee("v-if",!0)],2)):ee("v-if",!0)],46,["onMouseenter","onMouseleave"]))}});var SB=ve(CB,[["__file","input-tag.vue"]]);const kB=We(SB),EB=pe({type:{type:String,values:["primary","success","warning","info","danger","default"],default:"default"},underline:{type:Boolean,default:!0},disabled:Boolean,href:{type:String,default:""},target:{type:String,default:"_self"},icon:{type:St}}),MB={click:e=>e instanceof MouseEvent},xB=T({name:"ElLink"}),$B=T({...xB,props:EB,emits:MB,setup(e,{emit:t}){const n=e,a=de("link"),l=C(()=>[a.b(),a.m(n.type),a.is("disabled",n.disabled),a.is("underline",n.underline&&!n.disabled)]);function o(s){n.disabled||t("click",s)}return(s,i)=>(_(),x("a",{class:$(r(l)),href:s.disabled||!s.href?void 0:s.href,target:s.disabled||!s.href?void 0:s.target,onClick:o},[s.icon?(_(),ae(r(xe),{key:0},{default:G(()=>[(_(),ae(et(s.icon)))]),_:1})):ee("v-if",!0),s.$slots.default?(_(),x("span",{key:1,class:$(r(a).e("inner"))},[Q(s.$slots,"default")],2)):ee("v-if",!0),s.$slots.icon?Q(s.$slots,"icon",{key:2}):ee("v-if",!0)],10,["href","target"]))}});var TB=ve($B,[["__file","link.vue"]]);const OB=We(TB);let NB=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",a=>{let l=!1;switch(a.code){case Ce.down:{this.gotoSubIndex(this.subIndex+1),l=!0;break}case Ce.up:{this.gotoSubIndex(this.subIndex-1),l=!0;break}case Ce.tab:{vs(t,"mouseleave");break}case Ce.enter:case Ce.numpadEnter:case Ce.space:{l=!0,a.currentTarget.click();break}}return l&&(a.preventDefault(),a.stopPropagation()),!1})})}},IB=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 NB(this,n)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{let n=!1;switch(t.code){case Ce.down:{vs(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),n=!0;break}case Ce.up:{vs(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),n=!0;break}case Ce.tab:{vs(t.currentTarget,"mouseleave");break}case Ce.enter:case Ce.numpadEnter:case Ce.space:{n=!0,t.currentTarget.click();break}}n&&t.preventDefault()})}},PB=class{constructor(t,n){this.domNode=t,this.init(n)}init(t){const n=this.domNode.childNodes;Array.from(n).forEach(a=>{a.nodeType===1&&new IB(a,t)})}};const zB=T({name:"ElMenuCollapseTransition",setup(){const e=de("menu");return{listeners:{onBeforeEnter:n=>n.style.opacity="0.2",onEnter(n,a){jn(n,`${e.namespace.value}-opacity-transition`),n.style.opacity="1",a()},onAfterEnter(n){kn(n,`${e.namespace.value}-opacity-transition`),n.style.opacity=""},onBeforeLeave(n){n.dataset||(n.dataset={}),An(n,e.m("collapse"))?(kn(n,e.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),jn(n,e.m("collapse"))):(jn(n,e.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),kn(n,e.m("collapse"))),n.style.width=`${n.scrollWidth}px`,n.style.overflow="hidden"},onLeave(n){jn(n,"horizontal-collapse-transition"),n.style.width=`${n.dataset.scrollWidth}px`}}}}});function AB(e,t,n,a,l,o){return _(),ae(tn,tt({mode:"out-in"},e.listeners),{default:G(()=>[Q(e.$slots,"default")]),_:3},16)}var VB=ve(zB,[["render",AB],["__file","menu-collapse-transition.vue"]]);function tm(e,t){const n=C(()=>{let l=e.parent;const o=[t.value];for(;l.type.name!=="ElMenu";)l.props.index&&o.unshift(l.props.index),l=l.parent;return o});return{parentMenu:C(()=>{let l=e.parent;for(;l&&!["ElMenu","ElSubMenu"].includes(l.type.name);)l=l.parent;return l}),indexPath:n}}function LB(e){return C(()=>{const n=e.backgroundColor;return n?new U1(n).shade(20).toString():""})}const nm=(e,t)=>{const n=de("menu");return C(()=>n.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":LB(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},RB=pe({index:{type:String,required:!0},showTimeout:Number,hideTimeout:Number,popperClass:String,disabled:Boolean,teleported:{type:Boolean,default:void 0},popperOffset:Number,expandCloseIcon:{type:St},expandOpenIcon:{type:St},collapseCloseIcon:{type:St},collapseOpenIcon:{type:St}}),vu="ElSubMenu";var tf=T({name:vu,props:RB,setup(e,{slots:t,expose:n}){const a=Ze(),{indexPath:l,parentMenu:o}=tm(a,C(()=>e.index)),s=de("menu"),i=de("sub-menu"),u=Se("rootMenu");u||Gt(vu,"can not inject root menu");const c=Se(`subMenu:${o.value.uid}`);c||Gt(vu,"can not inject sub menu");const d=A({}),f=A({});let h;const v=A(!1),m=A(),p=A(null),y=C(()=>I.value==="horizontal"&&M.value?"bottom-start":"right-start"),g=C(()=>I.value==="horizontal"&&M.value||I.value==="vertical"&&!u.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?E.value?e.expandOpenIcon:e.expandCloseIcon:$a:e.collapseCloseIcon&&e.collapseOpenIcon?E.value?e.collapseOpenIcon:e.collapseCloseIcon:En),M=C(()=>c.level===0),w=C(()=>{const K=e.teleported;return K===void 0?M.value:K}),b=C(()=>u.props.collapse?`${s.namespace.value}-zoom-in-left`:`${s.namespace.value}-zoom-in-top`),S=C(()=>I.value==="horizontal"&&M.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","right","right-end","left-start","bottom-start","bottom-end","top-start","top-end"]),E=C(()=>u.openedMenus.includes(e.index)),O=C(()=>{let K=!1;return Object.values(d.value).forEach(W=>{W.active&&(K=!0)}),Object.values(f.value).forEach(W=>{W.active&&(K=!0)}),K}),I=C(()=>u.props.mode),N=_t({index:e.index,indexPath:l,active:O}),z=nm(u.props,c.level+1),P=C(()=>{var K;return(K=e.popperOffset)!=null?K:u.props.popperOffset}),L=C(()=>{var K;return(K=e.popperClass)!=null?K:u.props.popperClass}),F=C(()=>{var K;return(K=e.showTimeout)!=null?K:u.props.showTimeout}),U=C(()=>{var K;return(K=e.hideTimeout)!=null?K:u.props.hideTimeout}),H=()=>{var K,W,Z;return(Z=(W=(K=p.value)==null?void 0:K.popperRef)==null?void 0:W.popperInstanceRef)==null?void 0:Z.destroy()},R=K=>{K||H()},D=()=>{u.props.menuTrigger==="hover"&&u.props.mode==="horizontal"||u.props.collapse&&u.props.mode==="vertical"||e.disabled||u.handleSubMenuClick({index:e.index,indexPath:l.value,active:O.value})},B=(K,W=F.value)=>{var Z;if(K.type!=="focus"){if(u.props.menuTrigger==="click"&&u.props.mode==="horizontal"||!u.props.collapse&&u.props.mode==="vertical"||e.disabled){c.mouseInChild.value=!0;return}c.mouseInChild.value=!0,h==null||h(),{stop:h}=Il(()=>{u.openMenu(e.index,l.value)},W),w.value&&((Z=o.value.vnode.el)==null||Z.dispatchEvent(new MouseEvent("mouseenter")))}},V=(K=!1)=>{var W;if(u.props.menuTrigger==="click"&&u.props.mode==="horizontal"||!u.props.collapse&&u.props.mode==="vertical"){c.mouseInChild.value=!1;return}h==null||h(),c.mouseInChild.value=!1,{stop:h}=Il(()=>!v.value&&u.closeMenu(e.index,l.value),U.value),w.value&&K&&((W=c.handleMouseleave)==null||W.call(c,!0))};se(()=>u.props.collapse,K=>R(!!K));{const K=Z=>{f.value[Z.index]=Z},W=Z=>{delete f.value[Z.index]};it(`subMenu:${a.uid}`,{addSubMenu:K,removeSubMenu:W,handleMouseleave:V,mouseInChild:v,level:c.level+1})}return n({opened:E}),Ge(()=>{u.addSubMenu(N),c.addSubMenu(N)}),Tt(()=>{c.removeSubMenu(N),u.removeSubMenu(N)}),()=>{var K;const W=[(K=t.title)==null?void 0:K.call(t),Pe(xe,{class:i.e("icon-arrow"),style:{transform:E.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&u.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>Ve(g.value)?Pe(a.appContext.components[g.value]):Pe(g.value)})],Z=u.isMenuPopup?Pe(mn,{ref:p,visible:E.value,effect:"light",pure:!0,offset:P.value,showArrow:!1,persistent:!0,popperClass:L.value,placement:y.value,teleported:w.value,fallbackPlacements:S.value,transition:b.value,gpuAcceleration:!1},{content:()=>{var j;return Pe("div",{class:[s.m(I.value),s.m("popup-container"),L.value],onMouseenter:ne=>B(ne,100),onMouseleave:()=>V(!0),onFocus:ne=>B(ne,100)},[Pe("ul",{class:[s.b(),s.m("popup"),s.m(`popup-${y.value}`)],style:z.value},[(j=t.default)==null?void 0:j.call(t)])])},default:()=>Pe("div",{class:i.e("title"),onClick:D},W)}):Pe(ze,{},[Pe("div",{class:i.e("title"),ref:m,onClick:D},W),Pe(Pi,{},{default:()=>{var j;return qe(Pe("ul",{role:"menu",class:[s.b(),s.m("inline")],style:z.value},[(j=t.default)==null?void 0:j.call(t)]),[[pt,E.value]])}})]);return Pe("li",{class:[i.b(),i.is("active",O.value),i.is("opened",E.value),i.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:E.value,onMouseenter:B,onMouseleave:()=>V(),onFocus:B},[Z])}}});const BB=pe({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:X(Array),default:()=>Vt([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,closeOnClickOutside:Boolean,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperOffset:{type:Number,default:6},ellipsisIcon:{type:St,default:()=>n1},popperEffect:{type:X(String),default:"dark"},popperClass:String,showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300}}),hu=e=>Ee(e)&&e.every(t=>Ve(t)),HB={close:(e,t)=>Ve(e)&&hu(t),open:(e,t)=>Ve(e)&&hu(t),select:(e,t,n,a)=>Ve(e)&&hu(t)&&ht(n)&&(a===void 0||a instanceof Promise)};var DB=T({name:"ElMenu",props:BB,emits:HB,setup(e,{emit:t,slots:n,expose:a}){const l=Ze(),o=l.appContext.config.globalProperties.$router,s=A(),i=de("menu"),u=de("sub-menu"),c=A(-1),d=A(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),f=A(e.defaultActive),h=A({}),v=A({}),m=C(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),p=()=>{const H=f.value&&h.value[f.value];if(!H||e.mode==="horizontal"||e.collapse)return;H.indexPath.forEach(D=>{const B=v.value[D];B&&y(D,B.indexPath)})},y=(H,R)=>{d.value.includes(H)||(e.uniqueOpened&&(d.value=d.value.filter(D=>R.includes(D))),d.value.push(H),t("open",H,R))},g=H=>{const R=d.value.indexOf(H);R!==-1&&d.value.splice(R,1)},M=(H,R)=>{g(H),t("close",H,R)},w=({index:H,indexPath:R})=>{d.value.includes(H)?M(H,R):y(H,R)},b=H=>{(e.mode==="horizontal"||e.collapse)&&(d.value=[]);const{index:R,indexPath:D}=H;if(!(Zt(R)||Zt(D)))if(e.router&&o){const B=H.route||R,V=o.push(B).then(K=>(K||(f.value=R),K));t("select",R,D,{index:R,indexPath:D,route:B},V)}else f.value=R,t("select",R,D,{index:R,indexPath:D})},S=H=>{const R=h.value,D=R[H]||f.value&&R[f.value]||R[e.defaultActive];D?f.value=D.index:f.value=H},E=H=>{const R=getComputedStyle(H),D=Number.parseInt(R.marginLeft,10),B=Number.parseInt(R.marginRight,10);return H.offsetWidth+D+B||0},O=()=>{var H,R;if(!s.value)return-1;const D=Array.from((R=(H=s.value)==null?void 0:H.childNodes)!=null?R:[]).filter(oe=>oe.nodeName!=="#text"||oe.nodeValue),B=64,V=getComputedStyle(s.value),K=Number.parseInt(V.paddingLeft,10),W=Number.parseInt(V.paddingRight,10),Z=s.value.clientWidth-K-W;let j=0,ne=0;return D.forEach((oe,ce)=>{oe.nodeName!=="#comment"&&(j+=E(oe),j<=Z-B&&(ne=ce+1))}),ne===D.length?-1:ne},I=H=>v.value[H].indexPath,N=(H,R=33.34)=>{let D;return()=>{D&&clearTimeout(D),D=setTimeout(()=>{H()},R)}};let z=!0;const P=()=>{if(c.value===O())return;const H=()=>{c.value=-1,Oe(()=>{c.value=O()})};z?H():N(H)(),z=!1};se(()=>e.defaultActive,H=>{h.value[H]||(f.value=""),S(H)}),se(()=>e.collapse,H=>{H&&(d.value=[])}),se(h.value,p);let L;on(()=>{e.mode==="horizontal"&&e.ellipsis?L=At(s,P).stop:L==null||L()});const F=A(!1);{const H=V=>{v.value[V.index]=V},R=V=>{delete v.value[V.index]};it("rootMenu",_t({props:e,openedMenus:d,items:h,subMenus:v,activeIndex:f,isMenuPopup:m,addMenuItem:V=>{h.value[V.index]=V},removeMenuItem:V=>{delete h.value[V.index]},addSubMenu:H,removeSubMenu:R,openMenu:y,closeMenu:M,handleMenuItemClick:b,handleSubMenuClick:w})),it(`subMenu:${l.uid}`,{addSubMenu:H,removeSubMenu:R,mouseInChild:F,level:0})}Ge(()=>{e.mode==="horizontal"&&new PB(l.vnode.el,i.namespace.value)}),a({open:R=>{const{indexPath:D}=v.value[R];D.forEach(B=>y(B,D))},close:g,handleResize:P});const U=nm(e,0);return()=>{var H,R;let D=(R=(H=n.default)==null?void 0:H.call(n))!=null?R:[];const B=[];if(e.mode==="horizontal"&&s.value){const W=ol(D),Z=c.value===-1?W:W.slice(0,c.value),j=c.value===-1?[]:W.slice(c.value);j!=null&&j.length&&e.ellipsis&&(D=Z,B.push(Pe(tf,{index:"sub-menu-more",class:u.e("hide-arrow"),popperOffset:e.popperOffset},{title:()=>Pe(xe,{class:u.e("icon-more")},{default:()=>Pe(e.ellipsisIcon)}),default:()=>j})))}const V=e.closeOnClickOutside?[[Ka,()=>{d.value.length&&(F.value||(d.value.forEach(W=>t("close",W,I(W))),d.value=[]))}]]:[],K=qe(Pe("ul",{key:String(e.collapse),role:"menubar",ref:s,style:U.value,class:{[i.b()]:!0,[i.m(e.mode)]:!0,[i.m("collapse")]:e.collapse}},[...D,...B]),V);return e.collapseTransition&&e.mode==="vertical"?Pe(VB,()=>K):K}}});const FB=pe({index:{type:X([String,null]),default:null},route:{type:X([String,Object])},disabled:Boolean}),KB={click:e=>Ve(e.index)&&Ee(e.indexPath)},mu="ElMenuItem",WB=T({name:mu,components:{ElTooltip:mn},props:FB,emits:KB,setup(e,{emit:t}){const n=Ze(),a=Se("rootMenu"),l=de("menu"),o=de("menu-item");a||Gt(mu,"can not inject root menu");const{parentMenu:s,indexPath:i}=tm(n,mt(e,"index")),u=Se(`subMenu:${s.value.uid}`);u||Gt(mu,"can not inject sub menu");const c=C(()=>e.index===a.activeIndex),d=_t({index:e.index,indexPath:i,active:c}),f=()=>{e.disabled||(a.handleMenuItemClick({index:e.index,indexPath:i.value,route:e.route}),t("click",d))};return Ge(()=>{u.addSubMenu(d),a.addMenuItem(d)}),Tt(()=>{u.removeSubMenu(d),a.removeMenuItem(d)}),{parentMenu:s,rootMenu:a,active:c,nsMenu:l,nsMenuItem:o,handleClick:f}}});function jB(e,t,n,a,l,o){const s=Je("el-tooltip");return _(),x("li",{class:$([e.nsMenuItem.b(),e.nsMenuItem.is("active",e.active),e.nsMenuItem.is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:e.handleClick},[e.parentMenu.type.name==="ElMenu"&&e.rootMenu.props.collapse&&e.$slots.title?(_(),ae(s,{key:0,effect:e.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:G(()=>[Q(e.$slots,"title")]),default:G(()=>[k("div",{class:$(e.nsMenu.be("tooltip","trigger"))},[Q(e.$slots,"default")],2)]),_:3},8,["effect"])):(_(),x(ze,{key:1},[Q(e.$slots,"default"),Q(e.$slots,"title")],64))],10,["onClick"])}var am=ve(WB,[["render",jB],["__file","menu-item.vue"]]);const qB={title:String},UB="ElMenuItemGroup",YB=T({name:UB,props:qB,setup(){return{ns:de("menu-item-group")}}});function GB(e,t,n,a,l,o){return _(),x("li",{class:$(e.ns.b())},[k("div",{class:$(e.ns.e("title"))},[e.$slots.title?Q(e.$slots,"title",{key:1}):(_(),x(ze,{key:0},[ot(he(e.title),1)],64))],2),k("ul",null,[Q(e.$slots,"default")])],2)}var lm=ve(YB,[["render",GB],["__file","menu-item-group.vue"]]);const XB=We(DB,{MenuItem:am,MenuItemGroup:lm,SubMenu:tf}),ZB=Lt(am),JB=Lt(lm),QB=Lt(tf),eH=pe({icon:{type:St,default:()=>Uv},title:String,content:{type:String,default:""}}),tH={back:()=>!0},nH=T({name:"ElPageHeader"}),aH=T({...nH,props:eH,emits:tH,setup(e,{emit:t}){const{t:n}=ct(),a=de("page-header");function l(){t("back")}return(o,s)=>(_(),x("div",{class:$([r(a).b(),{[r(a).m("has-breadcrumb")]:!!o.$slots.breadcrumb,[r(a).m("has-extra")]:!!o.$slots.extra,[r(a).is("contentful")]:!!o.$slots.default}])},[o.$slots.breadcrumb?(_(),x("div",{key:0,class:$(r(a).e("breadcrumb"))},[Q(o.$slots,"breadcrumb")],2)):ee("v-if",!0),k("div",{class:$(r(a).e("header"))},[k("div",{class:$(r(a).e("left"))},[k("div",{class:$(r(a).e("back")),role:"button",tabindex:"0",onClick:l},[o.icon||o.$slots.icon?(_(),x("div",{key:0,"aria-label":o.title||r(n)("el.pageHeader.title"),class:$(r(a).e("icon"))},[Q(o.$slots,"icon",{},()=>[o.icon?(_(),ae(r(xe),{key:0},{default:G(()=>[(_(),ae(et(o.icon)))]),_:1})):ee("v-if",!0)])],10,["aria-label"])):ee("v-if",!0),k("div",{class:$(r(a).e("title"))},[Q(o.$slots,"title",{},()=>[ot(he(o.title||r(n)("el.pageHeader.title")),1)])],2)],2),q(r(Dh),{direction:"vertical"}),k("div",{class:$(r(a).e("content"))},[Q(o.$slots,"content",{},()=>[ot(he(o.content),1)])],2)],2),o.$slots.extra?(_(),x("div",{key:0,class:$(r(a).e("extra"))},[Q(o.$slots,"extra")],2)):ee("v-if",!0)],2),o.$slots.default?(_(),x("div",{key:1,class:$(r(a).e("main"))},[Q(o.$slots,"default")],2)):ee("v-if",!0)],2))}});var lH=ve(aH,[["__file","page-header.vue"]]);const oH=We(lH),om=Symbol("elPaginationKey"),rH=pe({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:St}}),sH={click:e=>e instanceof MouseEvent},iH=T({name:"ElPaginationPrev"}),uH=T({...iH,props:rH,emits:sH,setup(e){const t=e,{t:n}=ct(),a=C(()=>t.disabled||t.currentPage<=1);return(l,o)=>(_(),x("button",{type:"button",class:"btn-prev",disabled:r(a),"aria-label":l.prevText||r(n)("el.pagination.prev"),"aria-disabled":r(a),onClick:s=>l.$emit("click",s)},[l.prevText?(_(),x("span",{key:0},he(l.prevText),1)):(_(),ae(r(xe),{key:1},{default:G(()=>[(_(),ae(et(l.prevIcon)))]),_:1}))],8,["disabled","aria-label","aria-disabled","onClick"]))}});var cH=ve(uH,[["__file","prev.vue"]]);const dH=pe({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:St}}),fH=T({name:"ElPaginationNext"}),pH=T({...fH,props:dH,emits:["click"],setup(e){const t=e,{t:n}=ct(),a=C(()=>t.disabled||t.currentPage===t.pageCount||t.pageCount===0);return(l,o)=>(_(),x("button",{type:"button",class:"btn-next",disabled:r(a),"aria-label":l.nextText||r(n)("el.pagination.next"),"aria-disabled":r(a),onClick:s=>l.$emit("click",s)},[l.nextText?(_(),x("span",{key:0},he(l.nextText),1)):(_(),ae(r(xe),{key:1},{default:G(()=>[(_(),ae(et(l.nextIcon)))]),_:1}))],8,["disabled","aria-label","aria-disabled","onClick"]))}});var vH=ve(pH,[["__file","next.vue"]]);const rm=Symbol("ElSelectGroup"),Ho=Symbol("ElSelect");function hH(e,t){const n=Se(Ho),a=Se(rm,{disabled:!1}),l=C(()=>d(wn(n.props.modelValue),e.value)),o=C(()=>{var v;if(n.props.multiple){const m=wn((v=n.props.modelValue)!=null?v:[]);return!l.value&&m.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),s=C(()=>e.label||(ht(e.value)?"":e.value)),i=C(()=>e.value||e.label||""),u=C(()=>e.disabled||t.groupDisabled||o.value),c=Ze(),d=(v=[],m)=>{if(ht(e.value)){const p=n.props.valueKey;return v&&v.some(y=>Bs(Kt(y,p))===Kt(m,p))}else return v&&v.includes(m)},f=()=>{!e.disabled&&!a.disabled&&(n.states.hoveringIndex=n.optionsArray.indexOf(c.proxy))},h=v=>{const m=new RegExp(Rd(v),"i");t.visible=m.test(s.value)||e.created};return se(()=>s.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),se(()=>e.value,(v,m)=>{const{remote:p,valueKey:y}=n.props;if(v!==m&&(n.onOptionDestroy(m,c.proxy),n.onOptionCreate(c.proxy)),!e.created&&!p){if(y&&ht(v)&&ht(m)&&v[y]===m[y])return;n.setSelected()}}),se(()=>a.disabled,()=>{t.groupDisabled=a.disabled},{immediate:!0}),{select:n,currentLabel:s,currentValue:i,itemSelected:l,isDisabled:u,hoverItem:f,updateOption:h}}const mH=T({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:Boolean},setup(e){const t=de("select"),n=rn(),a=C(()=>[t.be("dropdown","item"),t.is("disabled",r(i)),t.is("selected",r(s)),t.is("hovering",r(h))]),l=_t({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:o,itemSelected:s,isDisabled:i,select:u,hoverItem:c,updateOption:d}=hH(e,l),{visible:f,hover:h}=nn(l),v=Ze().proxy;u.onOptionCreate(v),Tt(()=>{const p=v.value,{selected:y}=u.states,g=y.some(M=>M.value===v.value);Oe(()=>{u.states.cachedOptions.get(p)===v&&!g&&u.states.cachedOptions.delete(p)}),u.onOptionDestroy(p,v)});function m(){i.value||u.handleOptionSelect(v)}return{ns:t,id:n,containerKls:a,currentLabel:o,itemSelected:s,isDisabled:i,select:u,hoverItem:c,updateOption:d,visible:f,hover:h,selectOptionClick:m,states:l}}});function gH(e,t,n,a,l,o){return qe((_(),x("li",{id:e.id,class:$(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMousemove:e.hoverItem,onClick:Ae(e.selectOptionClick,["stop"])},[Q(e.$slots,"default",{},()=>[k("span",null,he(e.currentLabel),1)])],42,["id","aria-disabled","aria-selected","onMousemove","onClick"])),[[pt,e.visible]])}var nf=ve(mH,[["render",gH],["__file","option.vue"]]);const yH=T({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=Se(Ho),t=de("select"),n=C(()=>e.props.popperClass),a=C(()=>e.props.multiple),l=C(()=>e.props.fitInputWidth),o=A("");function s(){var i;o.value=`${(i=e.selectRef)==null?void 0:i.offsetWidth}px`}return Ge(()=>{s(),At(e.selectRef,s)}),{ns:t,minWidth:o,popperClass:n,isMultiple:a,isFitInputWidth:l}}});function _H(e,t,n,a,l,o){return _(),x("div",{class:$([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:Ne({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(_(),x("div",{key:0,class:$(e.ns.be("dropdown","header"))},[Q(e.$slots,"header")],2)):ee("v-if",!0),Q(e.$slots,"default"),e.$slots.footer?(_(),x("div",{key:1,class:$(e.ns.be("dropdown","footer"))},[Q(e.$slots,"footer")],2)):ee("v-if",!0)],6)}var bH=ve(yH,[["render",_H],["__file","select-dropdown.vue"]]);const wH=(e,t)=>{const{t:n}=ct(),a=rn(),l=de("select"),o=de("input"),s=_t({inputValue:"",options:new Map,cachedOptions:new Map,optionValues:[],selected:[],selectionWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),i=A(null),u=A(null),c=A(null),d=A(null),f=A(null),h=A(null),v=A(null),m=A(null),p=A(null),y=A(null),g=A(null),{isComposing:M,handleCompositionStart:w,handleCompositionUpdate:b,handleCompositionEnd:S}=Lr({afterComposition:_e=>bt(_e)}),{wrapperRef:E,isFocused:O,handleBlur:I}=fl(f,{beforeFocus(){return R.value},afterFocus(){e.automaticDropdown&&!N.value&&(N.value=!0,s.menuVisibleOnFocus=!0)},beforeBlur(_e){var Ke,yt;return((Ke=c.value)==null?void 0:Ke.isFocusInsideContent(_e))||((yt=d.value)==null?void 0:yt.isFocusInsideContent(_e))},afterBlur(){N.value=!1,s.menuVisibleOnFocus=!1}}),N=A(!1),z=A(),{form:P,formItem:L}=gn(),{inputId:F}=ea(e,{formItemContext:L}),{valueOnClear:U,isEmptyValue:H}=wi(e),R=C(()=>e.disabled||(P==null?void 0:P.disabled)),D=C(()=>Ee(e.modelValue)?e.modelValue.length>0:!H(e.modelValue)),B=C(()=>{var _e;return(_e=P==null?void 0:P.statusIcon)!=null?_e:!1}),V=C(()=>e.clearable&&!R.value&&s.inputHovering&&D.value),K=C(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),W=C(()=>l.is("reverse",K.value&&N.value)),Z=C(()=>(L==null?void 0:L.validateState)||""),j=C(()=>$i[Z.value]),ne=C(()=>e.remote?300:0),oe=C(()=>e.remote&&!s.inputValue&&s.options.size===0),ce=C(()=>e.loading?e.loadingText||n("el.select.loading"):e.filterable&&s.inputValue&&s.options.size>0&&te.value===0?e.noMatchText||n("el.select.noMatch"):s.options.size===0?e.noDataText||n("el.select.noData"):null),te=C(()=>ie.value.filter(_e=>_e.visible).length),ie=C(()=>{const _e=Array.from(s.options.values()),Ke=[];return s.optionValues.forEach(yt=>{const Yt=_e.findIndex(_n=>_n.value===yt);Yt>-1&&Ke.push(_e[Yt])}),Ke.length>=_e.length?Ke:_e}),fe=C(()=>Array.from(s.cachedOptions.values())),Me=C(()=>{const _e=ie.value.filter(Ke=>!Ke.created).some(Ke=>Ke.currentLabel===s.inputValue);return e.filterable&&e.allowCreate&&s.inputValue!==""&&!_e}),me=()=>{e.filterable&&Qe(e.filterMethod)||e.filterable&&e.remote&&Qe(e.remoteMethod)||ie.value.forEach(_e=>{var Ke;(Ke=_e.updateOption)==null||Ke.call(_e,s.inputValue)})},le=jt(),we=C(()=>["small"].includes(le.value)?"small":"default"),Le=C({get(){return N.value&&!oe.value},set(_e){N.value=_e}}),De=C(()=>{if(e.multiple&&!vt(e.modelValue))return wn(e.modelValue).length===0&&!s.inputValue;const _e=Ee(e.modelValue)?e.modelValue[0]:e.modelValue;return e.filterable||vt(_e)?!s.inputValue:!0}),Ye=C(()=>{var _e;const Ke=(_e=e.placeholder)!=null?_e:n("el.select.placeholder");return e.multiple||!D.value?Ke:s.selectedLabel}),$e=C(()=>Bu?null:"mouseenter");se(()=>e.modelValue,(_e,Ke)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(s.inputValue="",Te("")),He(),!fn(_e,Ke)&&e.validateEvent&&(L==null||L.validate("change").catch(yt=>void 0))},{flush:"post",deep:!0}),se(()=>N.value,_e=>{_e?Te(s.inputValue):(s.inputValue="",s.previousQuery=null,s.isBeforeHide=!0),t("visible-change",_e)}),se(()=>s.options.entries(),()=>{ut&&(He(),e.defaultFirstOption&&(e.filterable||e.remote)&&te.value&&ke())},{flush:"post"}),se(()=>s.hoveringIndex,_e=>{Ie(_e)&&_e>-1?z.value=ie.value[_e]||{}:z.value={},ie.value.forEach(Ke=>{Ke.hover=z.value===Ke})}),on(()=>{s.isBeforeHide||me()});const Te=_e=>{s.previousQuery===_e||M.value||(s.previousQuery=_e,e.filterable&&Qe(e.filterMethod)?e.filterMethod(_e):e.filterable&&e.remote&&Qe(e.remoteMethod)&&e.remoteMethod(_e),e.defaultFirstOption&&(e.filterable||e.remote)&&te.value?Oe(ke):Oe(at))},ke=()=>{const _e=ie.value.filter(_n=>_n.visible&&!_n.disabled&&!_n.states.groupDisabled),Ke=_e.find(_n=>_n.created),yt=_e[0],Yt=ie.value.map(_n=>_n.value);s.hoveringIndex=Y(Yt,Ke||yt)},He=()=>{if(e.multiple)s.selectedLabel="";else{const Ke=Ee(e.modelValue)?e.modelValue[0]:e.modelValue,yt=Xe(Ke);s.selectedLabel=yt.currentLabel,s.selected=[yt];return}const _e=[];vt(e.modelValue)||wn(e.modelValue).forEach(Ke=>{_e.push(Xe(Ke))}),s.selected=_e},Xe=_e=>{let Ke;const yt=Ou(_e);for(let Xa=s.cachedOptions.size-1;Xa>=0;Xa--){const ma=fe.value[Xa];if(yt?Kt(ma.value,e.valueKey)===Kt(_e,e.valueKey):ma.value===_e){Ke={value:_e,currentLabel:ma.currentLabel,get isDisabled(){return ma.isDisabled}};break}}if(Ke)return Ke;const Yt=yt?_e.label:_e??"";return{value:_e,currentLabel:Yt}},at=()=>{s.hoveringIndex=ie.value.findIndex(_e=>s.selected.some(Ke=>vl(Ke)===vl(_e)))},nt=()=>{s.selectionWidth=u.value.getBoundingClientRect().width},be=()=>{s.collapseItemWidth=y.value.getBoundingClientRect().width},je=()=>{var _e,Ke;(Ke=(_e=c.value)==null?void 0:_e.updatePopper)==null||Ke.call(_e)},ft=()=>{var _e,Ke;(Ke=(_e=d.value)==null?void 0:_e.updatePopper)==null||Ke.call(_e)},Ot=()=>{s.inputValue.length>0&&!N.value&&(N.value=!0),Te(s.inputValue)},bt=_e=>{if(s.inputValue=_e.target.value,e.remote)Pt();else return Ot()},Pt=Rn(()=>{Ot()},ne.value),gt=_e=>{fn(e.modelValue,_e)||t(Ct,_e)},un=_e=>Ev(_e,Ke=>{const yt=s.cachedOptions.get(Ke);return yt&&!yt.disabled&&!yt.states.groupDisabled}),Wt=_e=>{if(e.multiple&&_e.code!==Ce.delete&&_e.target.value.length<=0){const Ke=wn(e.modelValue).slice(),yt=un(Ke);if(yt<0)return;const Yt=Ke[yt];Ke.splice(yt,1),t(Ue,Ke),gt(Ke),t("remove-tag",Yt)}},re=(_e,Ke)=>{const yt=s.selected.indexOf(Ke);if(yt>-1&&!R.value){const Yt=wn(e.modelValue).slice();Yt.splice(yt,1),t(Ue,Yt),gt(Yt),t("remove-tag",Ke.value)}_e.stopPropagation(),Jt()},J=_e=>{_e.stopPropagation();const Ke=e.multiple?[]:U.value;if(e.multiple)for(const yt of s.selected)yt.isDisabled&&Ke.push(yt.value);t(Ue,Ke),gt(Ke),s.hoveringIndex=-1,N.value=!1,t("clear"),Jt()},ue=_e=>{var Ke;if(e.multiple){const yt=wn((Ke=e.modelValue)!=null?Ke:[]).slice(),Yt=Y(yt,_e);Yt>-1?yt.splice(Yt,1):(e.multipleLimit<=0||yt.length{ye(_e)})},Y=(_e=[],Ke)=>vt(Ke)?-1:ht(Ke.value)?_e.findIndex(yt=>fn(Kt(yt,e.valueKey),vl(Ke))):_e.indexOf(Ke.value),ye=_e=>{var Ke,yt,Yt,_n,Xa;const ma=Ee(_e)?_e[0]:_e;let Za=null;if(ma!=null&&ma.value){const hl=ie.value.filter(Ko=>Ko.value===ma.value);hl.length>0&&(Za=hl[0].$el)}if(c.value&&Za){const hl=(_n=(Yt=(yt=(Ke=c.value)==null?void 0:Ke.popperRef)==null?void 0:yt.contentRef)==null?void 0:Yt.querySelector)==null?void 0:_n.call(Yt,`.${l.be("dropdown","wrap")}`);hl&&pd(hl,Za)}(Xa=g.value)==null||Xa.handleScroll()},Fe=_e=>{s.options.set(_e.value,_e),s.cachedOptions.set(_e.value,_e)},lt=(_e,Ke)=>{s.options.get(_e)===Ke&&s.options.delete(_e)},Nt=C(()=>{var _e,Ke;return(Ke=(_e=c.value)==null?void 0:_e.popperRef)==null?void 0:Ke.contentRef}),Ut=()=>{s.isBeforeHide=!1,Oe(()=>ye(s.selected))},Jt=()=>{var _e;(_e=f.value)==null||_e.focus()},$t=()=>{var _e;if(N.value){N.value=!1,Oe(()=>{var Ke;return(Ke=f.value)==null?void 0:Ke.blur()});return}(_e=f.value)==null||_e.blur()},ln=_e=>{J(_e)},It=_e=>{if(N.value=!1,O.value){const Ke=new FocusEvent("focus",_e);Oe(()=>I(Ke))}},In=()=>{s.inputValue.length>0?s.inputValue="":N.value=!1},Fl=()=>{R.value||(Bu&&(s.inputHovering=!0),s.menuVisibleOnFocus?s.menuVisibleOnFocus=!1:N.value=!N.value)},qr=()=>{if(!N.value)Fl();else{const _e=ie.value[s.hoveringIndex];_e&&!_e.isDisabled&&ue(_e)}},vl=_e=>ht(_e.value)?Kt(_e.value,e.valueKey):_e.value,ji=C(()=>ie.value.filter(_e=>_e.visible).every(_e=>_e.isDisabled)),Kl=C(()=>e.multiple?e.collapseTags?s.selected.slice(0,e.maxCollapseTags):s.selected:[]),qi=C(()=>e.multiple?e.collapseTags?s.selected.slice(e.maxCollapseTags):[]:[]),Ur=_e=>{if(!N.value){N.value=!0;return}if(!(s.options.size===0||te.value===0||M.value)&&!ji.value){_e==="next"?(s.hoveringIndex++,s.hoveringIndex===s.options.size&&(s.hoveringIndex=0)):_e==="prev"&&(s.hoveringIndex--,s.hoveringIndex<0&&(s.hoveringIndex=s.options.size-1));const Ke=ie.value[s.hoveringIndex];(Ke.isDisabled||!Ke.visible)&&Ur(_e),Oe(()=>ye(z.value))}},Ui=()=>{if(!u.value)return 0;const _e=window.getComputedStyle(u.value);return Number.parseFloat(_e.gap||"6px")},Yi=C(()=>{const _e=Ui();return{maxWidth:`${y.value&&e.maxCollapseTags===1?s.selectionWidth-s.collapseItemWidth-_e:s.selectionWidth}px`}}),Gi=C(()=>({maxWidth:`${s.selectionWidth}px`}));return At(u,nt),At(m,je),At(E,je),At(p,ft),At(y,be),Ge(()=>{He()}),{inputId:F,contentId:a,nsSelect:l,nsInput:o,states:s,isFocused:O,expanded:N,optionsArray:ie,hoverOption:z,selectSize:le,filteredOptionsCount:te,updateTooltip:je,updateTagTooltip:ft,debouncedOnInputChange:Pt,onInput:bt,deletePrevTag:Wt,deleteTag:re,deleteSelected:J,handleOptionSelect:ue,scrollToOption:ye,hasModelValue:D,shouldShowPlaceholder:De,currentPlaceholder:Ye,mouseEnterEventName:$e,needStatusIcon:B,showClose:V,iconComponent:K,iconReverse:W,validateState:Z,validateIcon:j,showNewOption:Me,updateOptions:me,collapseTagSize:we,setSelected:He,selectDisabled:R,emptyText:ce,handleCompositionStart:w,handleCompositionUpdate:b,handleCompositionEnd:S,onOptionCreate:Fe,onOptionDestroy:lt,handleMenuEnter:Ut,focus:Jt,blur:$t,handleClearClick:ln,handleClickOutside:It,handleEsc:In,toggleMenu:Fl,selectOption:qr,getValueKey:vl,navigateOptions:Ur,dropdownMenuVisible:Le,showTagList:Kl,collapseTagList:qi,tagStyle:Yi,collapseTagStyle:Gi,popperRef:Nt,inputRef:f,tooltipRef:c,tagTooltipRef:d,prefixRef:h,suffixRef:v,selectRef:i,wrapperRef:E,selectionRef:u,scrollbarRef:g,menuRef:m,tagMenuRef:p,collapseItemRef:y}};var CH=T({name:"ElOptions",setup(e,{slots:t}){const n=Se(Ho);let a=[];return()=>{var l,o;const s=(l=t.default)==null?void 0:l.call(t),i=[];function u(c){Ee(c)&&c.forEach(d=>{var f,h,v,m;const p=(f=(d==null?void 0:d.type)||{})==null?void 0:f.name;p==="ElOptionGroup"?u(!Ve(d.children)&&!Ee(d.children)&&Qe((h=d.children)==null?void 0:h.default)?(v=d.children)==null?void 0:v.default():d.children):p==="ElOption"?i.push((m=d.props)==null?void 0:m.value):Ee(d.children)&&u(d.children)})}return s.length&&u((o=s[0])==null?void 0:o.children),fn(i,a)||(a=i,n&&(n.states.optionValues=i)),s}}});const SH=pe({name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:qt,effect:{type:X(String),default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:X(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:Boolean,maxCollapseTags:{type:Number,default:1},teleported:Qt.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:St,default:Ta},fitInputWidth:Boolean,suffixIcon:{type:St,default:$a},tagType:{...Fa.type,default:"info"},tagEffect:{...Fa.effect,default:"light"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:X(String),values:Ga,default:"bottom-start"},fallbackPlacements:{type:X(Array),default:["bottom-start","top-start","right","left"]},tabindex:{type:[String,Number],default:0},appendTo:String,...Ao,...sn(["ariaLabel"])}),B2="ElSelect",kH=T({name:B2,componentName:B2,components:{ElSelectMenu:bH,ElOption:nf,ElOptions:CH,ElTag:_o,ElScrollbar:Oa,ElTooltip:mn,ElIcon:xe},directives:{ClickOutside:Ka},props:SH,emits:[Ue,Ct,"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:t}){const n=C(()=>{const{modelValue:u,multiple:c}=e,d=c?[]:void 0;return Ee(u)?c?u:d:c?d:u}),a=_t({...nn(e),modelValue:n}),l=wH(a,t),{calculatorRef:o,inputStyle:s}=ef();it(Ho,_t({props:a,states:l.states,optionsArray:l.optionsArray,handleOptionSelect:l.handleOptionSelect,onOptionCreate:l.onOptionCreate,onOptionDestroy:l.onOptionDestroy,selectRef:l.selectRef,setSelected:l.setSelected}));const i=C(()=>e.multiple?l.states.selected.map(u=>u.currentLabel):l.states.selectedLabel);return{...l,modelValue:n,selectedLabel:i,calculatorRef:o,inputStyle:s}}});function EH(e,t,n,a,l,o){const s=Je("el-tag"),i=Je("el-tooltip"),u=Je("el-icon"),c=Je("el-option"),d=Je("el-options"),f=Je("el-scrollbar"),h=Je("el-select-menu"),v=fi("click-outside");return qe((_(),x("div",{ref:"selectRef",class:$([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),[fg(e.mouseEnterEventName)]:m=>e.states.inputHovering=!0,onMouseleave:m=>e.states.inputHovering=!1},[q(i,{ref:"tooltipRef",visible:e.dropdownMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,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,"append-to":e.appendTo,"show-arrow":e.showArrow,offset:e.offset,onBeforeShow:e.handleMenuEnter,onHide:m=>e.states.isBeforeHide=!1},{default:G(()=>{var m;return[k("div",{ref:"wrapperRef",class:$([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:Ae(e.toggleMenu,["prevent"])},[e.$slots.prefix?(_(),x("div",{key:0,ref:"prefixRef",class:$(e.nsSelect.e("prefix"))},[Q(e.$slots,"prefix")],2)):ee("v-if",!0),k("div",{ref:"selectionRef",class:$([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?Q(e.$slots,"tag",{key:0},()=>[(_(!0),x(ze,null,rt(e.showTagList,p=>(_(),x("div",{key:e.getValueKey(p),class:$(e.nsSelect.e("selected-item"))},[q(s,{closable:!e.selectDisabled&&!p.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:Ne(e.tagStyle),onClose:y=>e.deleteTag(y,p)},{default:G(()=>[k("span",{class:$(e.nsSelect.e("tags-text"))},[Q(e.$slots,"label",{label:p.currentLabel,value:p.value},()=>[ot(he(p.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?(_(),ae(i,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:G(()=>[k("div",{ref:"collapseItemRef",class:$(e.nsSelect.e("selected-item"))},[q(s,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:Ne(e.collapseTagStyle)},{default:G(()=>[k("span",{class:$(e.nsSelect.e("tags-text"))}," + "+he(e.states.selected.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:G(()=>[k("div",{ref:"tagMenuRef",class:$(e.nsSelect.e("selection"))},[(_(!0),x(ze,null,rt(e.collapseTagList,p=>(_(),x("div",{key:e.getValueKey(p),class:$(e.nsSelect.e("selected-item"))},[q(s,{class:"in-tooltip",closable:!e.selectDisabled&&!p.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:y=>e.deleteTag(y,p)},{default:G(()=>[k("span",{class:$(e.nsSelect.e("tags-text"))},[Q(e.$slots,"label",{label:p.currentLabel,value:p.value},()=>[ot(he(p.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","teleported"])):ee("v-if",!0)]):ee("v-if",!0),k("div",{class:$([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[qe(k("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":p=>e.states.inputValue=p,type:"text",name:e.name,class:$([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:Ne(e.inputStyle),tabindex:e.tabindex,role:"combobox",readonly:!e.filterable,spellcheck:"false","aria-activedescendant":((m=e.hoverOption)==null?void 0:m.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropdownMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onKeydown:[kt(Ae(p=>e.navigateOptions("next"),["stop","prevent"]),["down"]),kt(Ae(p=>e.navigateOptions("prev"),["stop","prevent"]),["up"]),kt(Ae(e.handleEsc,["stop","prevent"]),["esc"]),kt(Ae(e.selectOption,["stop","prevent"]),["enter"]),kt(Ae(e.deletePrevTag,["stop"]),["delete"])],onCompositionstart:e.handleCompositionStart,onCompositionupdate:e.handleCompositionUpdate,onCompositionend:e.handleCompositionEnd,onInput:e.onInput,onClick:Ae(e.toggleMenu,["stop"])},null,46,["id","onUpdate:modelValue","name","disabled","autocomplete","tabindex","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label","onKeydown","onCompositionstart","onCompositionupdate","onCompositionend","onInput","onClick"]),[[di,e.states.inputValue]]),e.filterable?(_(),x("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:$(e.nsSelect.e("input-calculator")),textContent:he(e.states.inputValue)},null,10,["textContent"])):ee("v-if",!0)],2),e.shouldShowPlaceholder?(_(),x("div",{key:1,class:$([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?Q(e.$slots,"label",{key:0,label:e.currentPlaceholder,value:e.modelValue},()=>[k("span",null,he(e.currentPlaceholder),1)]):(_(),x("span",{key:1},he(e.currentPlaceholder),1))],2)):ee("v-if",!0)],2),k("div",{ref:"suffixRef",class:$(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClose?(_(),ae(u,{key:0,class:$([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:G(()=>[(_(),ae(et(e.iconComponent)))]),_:1},8,["class"])):ee("v-if",!0),e.showClose&&e.clearIcon?(_(),ae(u,{key:1,class:$([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.nsSelect.e("clear")]),onClick:e.handleClearClick},{default:G(()=>[(_(),ae(et(e.clearIcon)))]),_:1},8,["class","onClick"])):ee("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?(_(),ae(u,{key:2,class:$([e.nsInput.e("icon"),e.nsInput.e("validateIcon"),e.nsInput.is("loading",e.validateState==="validating")])},{default:G(()=>[(_(),ae(et(e.validateIcon)))]),_:1},8,["class"])):ee("v-if",!0)],2)],10,["onClick"])]}),content:G(()=>[q(h,{ref:"menuRef"},{default:G(()=>[e.$slots.header?(_(),x("div",{key:0,class:$(e.nsSelect.be("dropdown","header")),onClick:Ae(()=>{},["stop"])},[Q(e.$slots,"header")],10,["onClick"])):ee("v-if",!0),qe(q(f,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:$([e.nsSelect.is("empty",e.filteredOptionsCount===0)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},{default:G(()=>[e.showNewOption?(_(),ae(c,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):ee("v-if",!0),q(d,null,{default:G(()=>[Q(e.$slots,"default")]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label"]),[[pt,e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?(_(),x("div",{key:1,class:$(e.nsSelect.be("dropdown","loading"))},[Q(e.$slots,"loading")],2)):e.loading||e.filteredOptionsCount===0?(_(),x("div",{key:2,class:$(e.nsSelect.be("dropdown","empty"))},[Q(e.$slots,"empty",{},()=>[k("span",null,he(e.emptyText),1)])],2)):ee("v-if",!0),e.$slots.footer?(_(),x("div",{key:3,class:$(e.nsSelect.be("dropdown","footer")),onClick:Ae(()=>{},["stop"])},[Q(e.$slots,"footer")],10,["onClick"])):ee("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-options","fallback-placements","effect","transition","persistent","append-to","show-arrow","offset","onBeforeShow","onHide"])],16,["onMouseleave"])),[[v,e.handleClickOutside,e.popperRef]])}var MH=ve(kH,[["render",EH],["__file","select.vue"]]);const xH=T({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=de("select"),n=A(null),a=Ze(),l=A([]);it(rm,_t({...nn(e)}));const o=C(()=>l.value.some(c=>c.visible===!0)),s=c=>{var d,f;return((d=c.type)==null?void 0:d.name)==="ElOption"&&!!((f=c.component)!=null&&f.proxy)},i=c=>{const d=wn(c),f=[];return d.forEach(h=>{var v,m;s(h)?f.push(h.component.proxy):(v=h.children)!=null&&v.length?f.push(...i(h.children)):(m=h.component)!=null&&m.subTree&&f.push(...i(h.component.subTree))}),f},u=()=>{l.value=i(a.subTree)};return Ge(()=>{u()}),Iv(n,u,{attributes:!0,subtree:!0,childList:!0}),{groupRef:n,visible:o,ns:t}}});function $H(e,t,n,a,l,o){return qe((_(),x("ul",{ref:"groupRef",class:$(e.ns.be("group","wrap"))},[k("li",{class:$(e.ns.be("group","title"))},he(e.label),3),k("li",null,[k("ul",{class:$(e.ns.b("group"))},[Q(e.$slots,"default")],2)])],2)),[[pt,e.visible]])}var sm=ve(xH,[["render",$H],["__file","option-group.vue"]]);const zl=We(MH,{Option:nf,OptionGroup:sm}),Xs=Lt(nf),TH=Lt(sm),af=()=>Se(om,{}),OH=pe({pageSize:{type:Number,required:!0},pageSizes:{type:X(Array),default:()=>Vt([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,teleported:Boolean,size:{type:String,values:xa},appendSizeTo:String}),NH=T({name:"ElPaginationSizes"}),IH=T({...NH,props:OH,emits:["page-size-change"],setup(e,{emit:t}){const n=e,{t:a}=ct(),l=de("pagination"),o=af(),s=A(n.pageSize);se(()=>n.pageSizes,(c,d)=>{if(!fn(c,d)&&Ee(c)){const f=c.includes(n.pageSize)?n.pageSize:n.pageSizes[0];t("page-size-change",f)}}),se(()=>n.pageSize,c=>{s.value=c});const i=C(()=>n.pageSizes);function u(c){var d;c!==s.value&&(s.value=c,(d=o.handleSizeChange)==null||d.call(o,Number(c)))}return(c,d)=>(_(),x("span",{class:$(r(l).e("sizes"))},[q(r(zl),{"model-value":s.value,disabled:c.disabled,"popper-class":c.popperClass,size:c.size,teleported:c.teleported,"validate-event":!1,"append-to":c.appendSizeTo,onChange:u},{default:G(()=>[(_(!0),x(ze,null,rt(r(i),f=>(_(),ae(r(Xs),{key:f,value:f,label:f+r(a)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","size","teleported","append-to"])],2))}});var PH=ve(IH,[["__file","sizes.vue"]]);const zH=pe({size:{type:String,values:xa}}),AH=T({name:"ElPaginationJumper"}),VH=T({...AH,props:zH,setup(e){const{t}=ct(),n=de("pagination"),{pageCount:a,disabled:l,currentPage:o,changeEvent:s}=af(),i=A(),u=C(()=>{var f;return(f=i.value)!=null?f:o==null?void 0:o.value});function c(f){i.value=f?+f:""}function d(f){f=Math.trunc(+f),s==null||s(f),i.value=void 0}return(f,h)=>(_(),x("span",{class:$(r(n).e("jump")),disabled:r(l)},[k("span",{class:$([r(n).e("goto")])},he(r(t)("el.pagination.goto")),3),q(r(Sn),{size:f.size,class:$([r(n).e("editor"),r(n).is("in-pagination")]),min:1,max:r(a),disabled:r(l),"model-value":r(u),"validate-event":!1,"aria-label":r(t)("el.pagination.page"),type:"number","onUpdate:modelValue":c,onChange:d},null,8,["size","class","max","disabled","model-value","aria-label"]),k("span",{class:$([r(n).e("classifier")])},he(r(t)("el.pagination.pageClassifier")),3)],10,["disabled"]))}});var LH=ve(VH,[["__file","jumper.vue"]]);const RH=pe({total:{type:Number,default:1e3}}),BH=T({name:"ElPaginationTotal"}),HH=T({...BH,props:RH,setup(e){const{t}=ct(),n=de("pagination"),{disabled:a}=af();return(l,o)=>(_(),x("span",{class:$(r(n).e("total")),disabled:r(a)},he(r(t)("el.pagination.total",{total:l.total})),11,["disabled"]))}});var DH=ve(HH,[["__file","total.vue"]]);const FH=pe({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),KH=T({name:"ElPaginationPager"}),WH=T({...KH,props:FH,emits:["change"],setup(e,{emit:t}){const n=e,a=de("pager"),l=de("icon"),{t:o}=ct(),s=A(!1),i=A(!1),u=A(!1),c=A(!1),d=A(!1),f=A(!1),h=C(()=>{const b=n.pagerCount,S=(b-1)/2,E=Number(n.currentPage),O=Number(n.pageCount);let I=!1,N=!1;O>b&&(E>b-S&&(I=!0),E["more","btn-quickprev",l.b(),a.is("disabled",n.disabled)]),m=C(()=>["more","btn-quicknext",l.b(),a.is("disabled",n.disabled)]),p=C(()=>n.disabled?-1:0);on(()=>{const b=(n.pagerCount-1)/2;s.value=!1,i.value=!1,n.pageCount>n.pagerCount&&(n.currentPage>n.pagerCount-b&&(s.value=!0),n.currentPageO&&(E=O)),E!==I&&t("change",E)}return(b,S)=>(_(),x("ul",{class:$(r(a).b()),onClick:w,onKeyup:kt(M,["enter"])},[b.pageCount>0?(_(),x("li",{key:0,class:$([[r(a).is("active",b.currentPage===1),r(a).is("disabled",b.disabled)],"number"]),"aria-current":b.currentPage===1,"aria-label":r(o)("el.pagination.currentPage",{pager:1}),tabindex:r(p)}," 1 ",10,["aria-current","aria-label","tabindex"])):ee("v-if",!0),s.value?(_(),x("li",{key:1,class:$(r(v)),tabindex:r(p),"aria-label":r(o)("el.pagination.prevPages",{pager:b.pagerCount-2}),onMouseenter:E=>y(!0),onMouseleave:E=>u.value=!1,onFocus:E=>g(!0),onBlur:E=>d.value=!1},[(u.value||d.value)&&!b.disabled?(_(),ae(r(Ba),{key:0})):(_(),ae(r(Hu),{key:1}))],42,["tabindex","aria-label","onMouseenter","onMouseleave","onFocus","onBlur"])):ee("v-if",!0),(_(!0),x(ze,null,rt(r(h),E=>(_(),x("li",{key:E,class:$([[r(a).is("active",b.currentPage===E),r(a).is("disabled",b.disabled)],"number"]),"aria-current":b.currentPage===E,"aria-label":r(o)("el.pagination.currentPage",{pager:E}),tabindex:r(p)},he(E),11,["aria-current","aria-label","tabindex"]))),128)),i.value?(_(),x("li",{key:2,class:$(r(m)),tabindex:r(p),"aria-label":r(o)("el.pagination.nextPages",{pager:b.pagerCount-2}),onMouseenter:E=>y(),onMouseleave:E=>c.value=!1,onFocus:E=>g(),onBlur:E=>f.value=!1},[(c.value||f.value)&&!b.disabled?(_(),ae(r(Ha),{key:0})):(_(),ae(r(Hu),{key:1}))],42,["tabindex","aria-label","onMouseenter","onMouseleave","onFocus","onBlur"])):ee("v-if",!0),b.pageCount>1?(_(),x("li",{key:3,class:$([[r(a).is("active",b.currentPage===b.pageCount),r(a).is("disabled",b.disabled)],"number"]),"aria-current":b.currentPage===b.pageCount,"aria-label":r(o)("el.pagination.currentPage",{pager:b.pageCount}),tabindex:r(p)},he(b.pageCount),11,["aria-current","aria-label","tabindex"])):ee("v-if",!0)],42,["onKeyup"]))}});var jH=ve(WH,[["__file","pager.vue"]]);const Mn=e=>typeof e!="number",qH=pe({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>Ie(e)&&Math.trunc(e)===e&&e>4&&e<22&&e%2===1,default:7},currentPage:Number,defaultCurrentPage:Number,layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:X(Array),default:()=>Vt([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},prevIcon:{type:St,default:()=>Ra},nextText:{type:String,default:""},nextIcon:{type:St,default:()=>En},teleported:{type:Boolean,default:!0},small:Boolean,size:qt,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean,appendSizeTo:String}),UH={"update:current-page":e=>Ie(e),"update:page-size":e=>Ie(e),"size-change":e=>Ie(e),change:(e,t)=>Ie(e)&&Ie(t),"current-change":e=>Ie(e),"prev-click":e=>Ie(e),"next-click":e=>Ie(e)},H2="ElPagination";var YH=T({name:H2,props:qH,emits:UH,setup(e,{emit:t,slots:n}){const{t:a}=ct(),l=de("pagination"),o=Ze().vnode.props||{},s=Bv(),i=C(()=>{var S;return e.small?"small":(S=e.size)!=null?S:s.value});al({from:"small",replacement:"size",version:"3.0.0",scope:"el-pagination",ref:"https://element-plus.org/zh-CN/component/pagination.html"},C(()=>!!e.small));const u="onUpdate:currentPage"in o||"onUpdate:current-page"in o||"onCurrentChange"in o,c="onUpdate:pageSize"in o||"onUpdate:page-size"in o||"onSizeChange"in o,d=C(()=>{if(Mn(e.total)&&Mn(e.pageCount)||!Mn(e.currentPage)&&!u)return!1;if(e.layout.includes("sizes")){if(Mn(e.pageCount)){if(!Mn(e.total)&&!Mn(e.pageSize)&&!c)return!1}else if(!c)return!1}return!0}),f=A(Mn(e.defaultPageSize)?10:e.defaultPageSize),h=A(Mn(e.defaultCurrentPage)?1:e.defaultCurrentPage),v=C({get(){return Mn(e.pageSize)?f.value:e.pageSize},set(S){Mn(e.pageSize)&&(f.value=S),c&&(t("update:page-size",S),t("size-change",S))}}),m=C(()=>{let S=0;return Mn(e.pageCount)?Mn(e.total)||(S=Math.max(1,Math.ceil(e.total/v.value))):S=e.pageCount,S}),p=C({get(){return Mn(e.currentPage)?h.value:e.currentPage},set(S){let E=S;S<1?E=1:S>m.value&&(E=m.value),Mn(e.currentPage)&&(h.value=E),u&&(t("update:current-page",E),t("current-change",E))}});se(m,S=>{p.value>S&&(p.value=S)}),se([p,v],S=>{t("change",...S)},{flush:"post"});function y(S){p.value=S}function g(S){v.value=S;const E=m.value;p.value>E&&(p.value=E)}function M(){e.disabled||(p.value-=1,t("prev-click",p.value))}function w(){e.disabled||(p.value+=1,t("next-click",p.value))}function b(S,E){S&&(S.props||(S.props={}),S.props.class=[S.props.class,E].join(" "))}return it(om,{pageCount:m,disabled:C(()=>e.disabled),currentPage:p,changeEvent:y,handleSizeChange:g}),()=>{var S,E;if(!d.value)return a("el.pagination.deprecationWarning"),null;if(!e.layout||e.hideOnSinglePage&&m.value<=1)return null;const O=[],I=[],N=Pe("div",{class:l.e("rightwrapper")},I),z={prev:Pe(cH,{disabled:e.disabled,currentPage:p.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:M}),jumper:Pe(LH,{size:i.value}),pager:Pe(jH,{currentPage:p.value,pageCount:m.value,pagerCount:e.pagerCount,onChange:y,disabled:e.disabled}),next:Pe(vH,{disabled:e.disabled,currentPage:p.value,pageCount:m.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:w}),sizes:Pe(PH,{pageSize:v.value,pageSizes:e.pageSizes,popperClass:e.popperClass,disabled:e.disabled,teleported:e.teleported,size:i.value,appendSizeTo:e.appendSizeTo}),slot:(E=(S=n==null?void 0:n.default)==null?void 0:S.call(n))!=null?E:null,total:Pe(DH,{total:Mn(e.total)?0:e.total})},P=e.layout.split(",").map(F=>F.trim());let L=!1;return P.forEach(F=>{if(F==="->"){L=!0;return}L?I.push(z[F]):O.push(z[F])}),b(O[0],l.is("first")),b(O[O.length-1],l.is("last")),L&&I.length>0&&(b(I[0],l.is("first")),b(I[I.length-1],l.is("last")),O.push(N)),Pe("div",{class:[l.b(),l.is("background",e.background),l.m(i.value)]},O)}}});const GH=We(YH),XH=pe({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:Fu,default:"primary"},cancelButtonType:{type:String,values:Fu,default:"text"},icon:{type:St,default:()=>l1},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1},hideAfter:{type:Number,default:200},teleported:Qt.teleported,persistent:Qt.persistent,width:{type:[String,Number],default:150}}),ZH={confirm:e=>e instanceof MouseEvent,cancel:e=>e instanceof MouseEvent},JH=T({name:"ElPopconfirm"}),QH=T({...JH,props:XH,emits:ZH,setup(e,{emit:t}){const n=e,{t:a}=ct(),l=de("popconfirm"),o=A(),s=()=>{var h,v;(v=(h=o.value)==null?void 0:h.onClose)==null||v.call(h)},i=C(()=>({width:Rt(n.width)})),u=h=>{t("confirm",h),s()},c=h=>{t("cancel",h),s()},d=C(()=>n.confirmButtonText||a("el.popconfirm.confirmButtonText")),f=C(()=>n.cancelButtonText||a("el.popconfirm.cancelButtonText"));return(h,v)=>(_(),ae(r(mn),tt({ref_key:"tooltipRef",ref:o,trigger:"click",effect:"light"},h.$attrs,{"popper-class":`${r(l).namespace.value}-popover`,"popper-style":r(i),teleported:h.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":h.hideAfter,persistent:h.persistent}),{content:G(()=>[k("div",{class:$(r(l).b())},[k("div",{class:$(r(l).e("main"))},[!h.hideIcon&&h.icon?(_(),ae(r(xe),{key:0,class:$(r(l).e("icon")),style:Ne({color:h.iconColor})},{default:G(()=>[(_(),ae(et(h.icon)))]),_:1},8,["class","style"])):ee("v-if",!0),ot(" "+he(h.title),1)],2),k("div",{class:$(r(l).e("action"))},[Q(h.$slots,"actions",{confirm:u,cancel:c},()=>[q(r(en),{size:"small",type:h.cancelButtonType==="text"?"":h.cancelButtonType,text:h.cancelButtonType==="text",onClick:c},{default:G(()=>[ot(he(r(f)),1)]),_:1},8,["type","text"]),q(r(en),{size:"small",type:h.confirmButtonType==="text"?"":h.confirmButtonType,text:h.confirmButtonType==="text",onClick:u},{default:G(()=>[ot(he(r(d)),1)]),_:1},8,["type","text"])])],2)],2)]),default:G(()=>[h.$slots.reference?Q(h.$slots,"reference",{key:0}):ee("v-if",!0)]),_:3},16,["popper-class","popper-style","teleported","hide-after","persistent"]))}});var eD=ve(QH,[["__file","popconfirm.vue"]]);const tD=We(eD),nD=pe({trigger:hr.trigger,placement:xs.placement,disabled:hr.disabled,visible:Qt.visible,transition:Qt.transition,popperOptions:xs.popperOptions,tabindex:xs.tabindex,content:Qt.content,popperStyle:Qt.popperStyle,popperClass:Qt.popperClass,enterable:{...Qt.enterable,default:!0},effect:{...Qt.effect,default:"light"},teleported:Qt.teleported,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),aD={"update:visible":e=>Et(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},lD="onUpdate:visible",oD=T({name:"ElPopover"}),rD=T({...oD,props:nD,emits:aD,setup(e,{expose:t,emit:n}){const a=e,l=C(()=>a[lD]),o=de("popover"),s=A(),i=C(()=>{var y;return(y=r(s))==null?void 0:y.popperRef}),u=C(()=>[{width:Rt(a.width)},a.popperStyle]),c=C(()=>[o.b(),a.popperClass,{[o.m("plain")]:!!a.content}]),d=C(()=>a.transition===`${o.namespace.value}-fade-in-linear`),f=()=>{var y;(y=s.value)==null||y.hide()},h=()=>{n("before-enter")},v=()=>{n("before-leave")},m=()=>{n("after-enter")},p=()=>{n("update:visible",!1),n("after-leave")};return t({popperRef:i,hide:f}),(y,g)=>(_(),ae(r(mn),tt({ref_key:"tooltipRef",ref:s},y.$attrs,{trigger:y.trigger,placement:y.placement,disabled:y.disabled,visible:y.visible,transition:y.transition,"popper-options":y.popperOptions,tabindex:y.tabindex,content:y.content,offset:y.offset,"show-after":y.showAfter,"hide-after":y.hideAfter,"auto-close":y.autoClose,"show-arrow":y.showArrow,"aria-label":y.title,effect:y.effect,enterable:y.enterable,"popper-class":r(c),"popper-style":r(u),teleported:y.teleported,persistent:y.persistent,"gpu-acceleration":r(d),"onUpdate:visible":r(l),onBeforeShow:h,onBeforeHide:v,onShow:m,onHide:p}),{content:G(()=>[y.title?(_(),x("div",{key:0,class:$(r(o).e("title")),role:"title"},he(y.title),3)):ee("v-if",!0),Q(y.$slots,"default",{},()=>[ot(he(y.content),1)])]),default:G(()=>[y.$slots.reference?Q(y.$slots,"reference",{key:0}):ee("v-if",!0)]),_:3},16,["trigger","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","persistent","gpu-acceleration","onUpdate:visible"]))}});var sD=ve(rD,[["__file","popover.vue"]]);const D2=(e,t)=>{const n=t.arg||t.value,a=n==null?void 0:n.popperRef;a&&(a.triggerRef=e)};var iD={mounted(e,t){D2(e,t)},updated(e,t){D2(e,t)}};const uD="popover",im=Bb(iD,uD),cD=We(sD,{directive:im}),dD=pe({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:e=>e>=0&&e<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:Boolean,duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:X(String),default:"round"},textInside:Boolean,width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:X([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:X(Function),default:e=>`${e}%`}}),fD=T({name:"ElProgress"}),pD=T({...fD,props:dD,setup(e){const t=e,n={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},a=de("progress"),l=C(()=>{const w={width:`${t.percentage}%`,animationDuration:`${t.duration}s`},b=M(t.percentage);return b.includes("gradient")?w.background=b:w.backgroundColor=b,w}),o=C(()=>(t.strokeWidth/t.width*100).toFixed(1)),s=C(()=>["circle","dashboard"].includes(t.type)?Number.parseInt(`${50-Number.parseFloat(o.value)/2}`,10):0),i=C(()=>{const w=s.value,b=t.type==="dashboard";return` - M 50 50 - m 0 ${b?"":"-"}${w} - a ${w} ${w} 0 1 1 0 ${b?"-":""}${w*2} - a ${w} ${w} 0 1 1 0 ${b?"":"-"}${w*2} - `}),u=C(()=>2*Math.PI*s.value),c=C(()=>t.type==="dashboard"?.75:1),d=C(()=>`${-1*u.value*(1-c.value)/2}px`),f=C(()=>({strokeDasharray:`${u.value*c.value}px, ${u.value}px`,strokeDashoffset:d.value})),h=C(()=>({strokeDasharray:`${u.value*c.value*(t.percentage/100)}px, ${u.value}px`,strokeDashoffset:d.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),v=C(()=>{let w;return t.color?w=M(t.percentage):w=n[t.status]||n.default,w}),m=C(()=>t.status==="warning"?Ar:t.type==="line"?t.status==="success"?Ei:Ta:t.status==="success"?Vo:Xn),p=C(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),y=C(()=>t.format(t.percentage));function g(w){const b=100/w.length;return w.map((E,O)=>Ve(E)?{color:E,percentage:(O+1)*b}:E).sort((E,O)=>E.percentage-O.percentage)}const M=w=>{var b;const{color:S}=t;if(Qe(S))return S(w);if(Ve(S))return S;{const E=g(S);for(const O of E)if(O.percentage>w)return O.color;return(b=E[E.length-1])==null?void 0:b.color}};return(w,b)=>(_(),x("div",{class:$([r(a).b(),r(a).m(w.type),r(a).is(w.status),{[r(a).m("without-text")]:!w.showText,[r(a).m("text-inside")]:w.textInside}]),role:"progressbar","aria-valuenow":w.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[w.type==="line"?(_(),x("div",{key:0,class:$(r(a).b("bar"))},[k("div",{class:$(r(a).be("bar","outer")),style:Ne({height:`${w.strokeWidth}px`})},[k("div",{class:$([r(a).be("bar","inner"),{[r(a).bem("bar","inner","indeterminate")]:w.indeterminate},{[r(a).bem("bar","inner","striped")]:w.striped},{[r(a).bem("bar","inner","striped-flow")]:w.stripedFlow}]),style:Ne(r(l))},[(w.showText||w.$slots.default)&&w.textInside?(_(),x("div",{key:0,class:$(r(a).be("bar","innerText"))},[Q(w.$slots,"default",{percentage:w.percentage},()=>[k("span",null,he(r(y)),1)])],2)):ee("v-if",!0)],6)],6)],2)):(_(),x("div",{key:1,class:$(r(a).b("circle")),style:Ne({height:`${w.width}px`,width:`${w.width}px`})},[(_(),x("svg",{viewBox:"0 0 100 100"},[k("path",{class:$(r(a).be("circle","track")),d:r(i),stroke:`var(${r(a).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":w.strokeLinecap,"stroke-width":r(o),fill:"none",style:Ne(r(f))},null,14,["d","stroke","stroke-linecap","stroke-width"]),k("path",{class:$(r(a).be("circle","path")),d:r(i),stroke:r(v),fill:"none",opacity:w.percentage?1:0,"stroke-linecap":w.strokeLinecap,"stroke-width":r(o),style:Ne(r(h))},null,14,["d","stroke","opacity","stroke-linecap","stroke-width"])]))],6)),(w.showText||w.$slots.default)&&!w.textInside?(_(),x("div",{key:2,class:$(r(a).e("text")),style:Ne({fontSize:`${r(p)}px`})},[Q(w.$slots,"default",{percentage:w.percentage},()=>[w.status?(_(),ae(r(xe),{key:1},{default:G(()=>[(_(),ae(et(r(m))))]),_:1})):(_(),x("span",{key:0},he(r(y)),1))])],6)):ee("v-if",!0)],10,["aria-valuenow"]))}});var vD=ve(pD,[["__file","progress.vue"]]);const um=We(vD),hD=pe({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:X([Array,Object]),default:()=>Vt(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:X([Array,Object]),default:()=>[Go,Go,Go]},voidIcon:{type:St,default:()=>d1},disabledVoidIcon:{type:St,default:()=>Go},disabled:Boolean,allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:X(Array),default:()=>Vt(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:qt,clearable:Boolean,...sn(["ariaLabel"])}),mD={[Ct]:e=>Ie(e),[Ue]:e=>Ie(e)},gD=T({name:"ElRate"}),yD=T({...gD,props:hD,emits:mD,setup(e,{expose:t,emit:n}){const a=e;function l(R,D){const B=W=>ht(W),V=Object.keys(D).map(W=>+W).filter(W=>{const Z=D[W];return(B(Z)?Z.excluded:!1)?RW-Z),K=D[V[0]];return B(K)&&K.value||K}const o=Se(Dl,void 0),s=Se(ka,void 0),i=jt(),u=de("rate"),{inputId:c,isLabeledByFormItem:d}=ea(a,{formItemContext:s}),f=A(a.modelValue),h=A(-1),v=A(!0),m=C(()=>[u.b(),u.m(i.value)]),p=C(()=>a.disabled||(o==null?void 0:o.disabled)),y=C(()=>u.cssVarBlock({"void-color":a.voidColor,"disabled-void-color":a.disabledVoidColor,"fill-color":b.value})),g=C(()=>{let R="";return a.showScore?R=a.scoreTemplate.replace(/\{\s*value\s*\}/,p.value?`${a.modelValue}`:`${f.value}`):a.showText&&(R=a.texts[Math.ceil(f.value)-1]),R}),M=C(()=>a.modelValue*100-Math.floor(a.modelValue)*100),w=C(()=>Ee(a.colors)?{[a.lowThreshold]:a.colors[0],[a.highThreshold]:{value:a.colors[1],excluded:!0},[a.max]:a.colors[2]}:a.colors),b=C(()=>{const R=l(f.value,w.value);return ht(R)?"":R}),S=C(()=>{let R="";return p.value?R=`${M.value}%`:a.allowHalf&&(R="50%"),{color:b.value,width:R}}),E=C(()=>{let R=Ee(a.icons)?[...a.icons]:{...a.icons};return R=El(R),Ee(R)?{[a.lowThreshold]:R[0],[a.highThreshold]:{value:R[1],excluded:!0},[a.max]:R[2]}:R}),O=C(()=>l(a.modelValue,E.value)),I=C(()=>p.value?Ve(a.disabledVoidIcon)?a.disabledVoidIcon:El(a.disabledVoidIcon):Ve(a.voidIcon)?a.voidIcon:El(a.voidIcon)),N=C(()=>l(f.value,E.value));function z(R){const D=p.value&&M.value>0&&R-1a.modelValue,B=a.allowHalf&&v.value&&R-.5<=f.value&&R>f.value;return D||B}function P(R){a.clearable&&R===a.modelValue&&(R=0),n(Ue,R),a.modelValue!==R&&n("change",R)}function L(R){p.value||(a.allowHalf&&v.value?P(f.value):P(R))}function F(R){if(p.value)return;let D=f.value;const B=R.code;return B===Ce.up||B===Ce.right?(a.allowHalf?D+=.5:D+=1,R.stopPropagation(),R.preventDefault()):(B===Ce.left||B===Ce.down)&&(a.allowHalf?D-=.5:D-=1,R.stopPropagation(),R.preventDefault()),D=D<0?0:D,D=D>a.max?a.max:D,n(Ue,D),n("change",D),D}function U(R,D){if(!p.value){if(a.allowHalf&&D){let B=D.target;An(B,u.e("item"))&&(B=B.querySelector(`.${u.e("icon")}`)),(B.clientWidth===0||An(B,u.e("decimal")))&&(B=B.parentNode),v.value=D.offsetX*2<=B.clientWidth,f.value=v.value?R-.5:R}else f.value=R;h.value=R}}function H(){p.value||(a.allowHalf&&(v.value=a.modelValue!==Math.floor(a.modelValue)),f.value=a.modelValue,h.value=-1)}return se(()=>a.modelValue,R=>{f.value=R,v.value=a.modelValue!==Math.floor(a.modelValue)}),a.modelValue||n(Ue,0),t({setCurrentValue:U,resetCurrentValue:H}),(R,D)=>{var B;return _(),x("div",{id:r(c),class:$([r(m),r(u).is("disabled",r(p))]),role:"slider","aria-label":r(d)?void 0:R.ariaLabel||"rating","aria-labelledby":r(d)?(B=r(s))==null?void 0:B.labelId:void 0,"aria-valuenow":f.value,"aria-valuetext":r(g)||void 0,"aria-valuemin":"0","aria-valuemax":R.max,tabindex:"0",style:Ne(r(y)),onKeydown:F},[(_(!0),x(ze,null,rt(R.max,(V,K)=>(_(),x("span",{key:K,class:$(r(u).e("item")),onMousemove:W=>U(V,W),onMouseleave:H,onClick:W=>L(V)},[q(r(xe),{class:$([r(u).e("icon"),{hover:h.value===V},r(u).is("active",V<=f.value)])},{default:G(()=>[z(V)?ee("v-if",!0):(_(),x(ze,{key:0},[qe((_(),ae(et(r(N)),null,null,512)),[[pt,V<=f.value]]),qe((_(),ae(et(r(I)),null,null,512)),[[pt,!(V<=f.value)]])],64)),z(V)?(_(),x(ze,{key:1},[(_(),ae(et(r(I)),{class:$([r(u).em("decimal","box")])},null,8,["class"])),q(r(xe),{style:Ne(r(S)),class:$([r(u).e("icon"),r(u).e("decimal")])},{default:G(()=>[(_(),ae(et(r(O))))]),_:1},8,["style","class"])],64)):ee("v-if",!0)]),_:2},1032,["class"])],42,["onMousemove","onClick"]))),128)),R.showText||R.showScore?(_(),x("span",{key:0,class:$(r(u).e("text")),style:Ne({color:R.textColor})},he(r(g)),7)):ee("v-if",!0)],46,["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"])}}});var _D=ve(yD,[["__file","rate.vue"]]);const bD=We(_D),eo={success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},F2={[eo.success]:Xv,[eo.warning]:Ar,[eo.error]:Mi,[eo.info]:xi},wD=pe({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["success","warning","info","error"],default:"info"}}),CD=T({name:"ElResult"}),SD=T({...CD,props:wD,setup(e){const t=e,n=de("result"),a=C(()=>{const l=t.icon,o=l&&eo[l]?eo[l]:"icon-info",s=F2[o]||F2["icon-info"];return{class:o,component:s}});return(l,o)=>(_(),x("div",{class:$(r(n).b())},[k("div",{class:$(r(n).e("icon"))},[Q(l.$slots,"icon",{},()=>[r(a).component?(_(),ae(et(r(a).component),{key:0,class:$(r(a).class)},null,8,["class"])):ee("v-if",!0)])],2),l.title||l.$slots.title?(_(),x("div",{key:0,class:$(r(n).e("title"))},[Q(l.$slots,"title",{},()=>[k("p",null,he(l.title),1)])],2)):ee("v-if",!0),l.subTitle||l.$slots["sub-title"]?(_(),x("div",{key:1,class:$(r(n).e("subtitle"))},[Q(l.$slots,"sub-title",{},()=>[k("p",null,he(l.subTitle),1)])],2)):ee("v-if",!0),l.$slots.extra?(_(),x("div",{key:2,class:$(r(n).e("extra"))},[Q(l.$slots,"extra")],2)):ee("v-if",!0)],2))}});var kD=ve(SD,[["__file","result.vue"]]);const ED=We(kD),MD=["start","center","end","space-around","space-between","space-evenly"],xD=["top","middle","bottom"],$D=pe({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:MD,default:"start"},align:{type:String,values:xD}}),TD=T({name:"ElRow"}),OD=T({...TD,props:$D,setup(e){const t=e,n=de("row"),a=C(()=>t.gutter);it(mh,{gutter:a});const l=C(()=>{const s={};return t.gutter&&(s.marginRight=s.marginLeft=`-${t.gutter/2}px`),s}),o=C(()=>[n.b(),n.is(`justify-${t.justify}`,t.justify!=="start"),n.is(`align-${t.align}`,!!t.align)]);return(s,i)=>(_(),ae(et(s.tag),{class:$(r(o)),style:Ne(r(l))},{default:G(()=>[Q(s.$slots,"default")]),_:3},8,["class","style"]))}});var ND=ve(OD,[["__file","row.vue"]]);const ID=We(ND),PD=T({props:{item:{type:Object,required:!0},style:{type:Object},height:Number},setup(){return{ns:de("select")}}});function zD(e,t,n,a,l,o){return _(),x("div",{class:$(e.ns.be("group","title")),style:Ne({...e.style,lineHeight:`${e.height}px`})},he(e.item.label),7)}var AD=ve(PD,[["render",zD],["__file","group-item.vue"]]);function VD(e,{emit:t}){return{hoverItem:()=>{e.disabled||t("hover",e.index)},selectOptionClick:()=>{e.disabled||t("select",e.item,e.index)}}}const cm={label:"label",value:"value",disabled:"disabled",options:"options"};function Li(e){const t=C(()=>({...cm,...e.props}));return{aliasProps:t,getLabel:s=>Kt(s,t.value.label),getValue:s=>Kt(s,t.value.value),getDisabled:s=>Kt(s,t.value.disabled),getOptions:s=>Kt(s,t.value.options)}}const LD=pe({allowCreate:Boolean,autocomplete:{type:X(String),default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:St,default:Ta},effect:{type:X(String),default:"light"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},defaultFirstOption:Boolean,disabled:Boolean,estimatedOptionHeight:{type:Number,default:void 0},filterable:Boolean,filterMethod:Function,height:{type:Number,default:274},itemHeight:{type:Number,default:34},id:String,loading:Boolean,loadingText:String,modelValue:{type:X([Array,String,Number,Boolean,Object])},multiple:Boolean,multipleLimit:{type:Number,default:0},name:String,noDataText:String,noMatchText:String,remoteMethod:Function,reserveKeyword:{type:Boolean,default:!0},options:{type:X(Array),required:!0},placeholder:{type:String},teleported:Qt.teleported,persistent:{type:Boolean,default:!0},popperClass:{type:String,default:""},popperOptions:{type:X(Object),default:()=>({})},remote:Boolean,size:qt,props:{type:X(Object),default:()=>cm},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:Boolean,validateEvent:{type:Boolean,default:!0},offset:{type:Number,default:12},showArrow:{type:Boolean,default:!0},placement:{type:X(String),values:Ga,default:"bottom-start"},fallbackPlacements:{type:X(Array),default:["bottom-start","top-start","right","left"]},tagType:{...Fa.type,default:"info"},tagEffect:{...Fa.effect,default:"light"},tabindex:{type:[String,Number],default:0},appendTo:String,fitInputWidth:{type:[Boolean,Number],default:!0,validator(e){return Et(e)||Ie(e)}},...Ao,...sn(["ariaLabel"])}),RD=pe({data:Array,disabled:Boolean,hovering:Boolean,item:{type:X(Object),required:!0},index:Number,style:Object,selected:Boolean,created:Boolean}),BD={[Ue]:e=>!0,[Ct]:e=>!0,"remove-tag":e=>!0,"visible-change":e=>!0,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0},HD={hover:e=>Ie(e),select:(e,t)=>!0},lf=Symbol("ElSelectV2Injection"),DD=T({props:RD,emits:HD,setup(e,{emit:t}){const n=Se(lf),a=de("select"),{hoverItem:l,selectOptionClick:o}=VD(e,{emit:t}),{getLabel:s}=Li(n.props);return{ns:a,hoverItem:l,selectOptionClick:o,getLabel:s}}});function FD(e,t,n,a,l,o){return _(),x("li",{"aria-selected":e.selected,style:Ne(e.style),class:$([e.ns.be("dropdown","item"),e.ns.is("selected",e.selected),e.ns.is("disabled",e.disabled),e.ns.is("created",e.created),e.ns.is("hovering",e.hovering)]),onMousemove:e.hoverItem,onClick:Ae(e.selectOptionClick,["stop"])},[Q(e.$slots,"default",{item:e.item,index:e.index,disabled:e.disabled},()=>[k("span",null,he(e.getLabel(e.item)),1)])],46,["aria-selected","onMousemove","onClick"])}var KD=ve(DD,[["render",FD],["__file","option-item.vue"]]),K2=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function WD(e,t){return!!(e===t||K2(e)&&K2(t))}function jD(e,t){if(e.length!==t.length)return!1;for(var n=0;n{const t=Ze().proxy.$props;return C(()=>{const n=(a,l,o)=>({});return t.perfMode?gi(n):qD(n)})},uc=50,Zs="itemRendered",Js="scroll",to="forward",Qs="backward",qn="auto",Ri="smart",_r="start",_a="center",br="end",wo="horizontal",of="vertical",UD="ltr",ro="rtl",wr="negative",rf="positive-ascending",sf="positive-descending",YD={[wo]:"left",[of]:"top"},GD=20,XD={[wo]:"deltaX",[of]:"deltaY"},ZD=({atEndEdge:e,atStartEdge:t,layout:n},a)=>{let l,o=0;const s=u=>u<0&&t.value||u>0&&e.value;return{hasReachedEdge:s,onWheel:u=>{Pl(l);const c=u[XD[n.value]];s(o)&&s(o+c)||(o+=c,Ti()||u.preventDefault(),l=il(()=>{a(o),o=0}))}}},cc=va({type:X([Number,Function]),required:!0}),dc=va({type:Number}),fc=va({type:Number,default:2}),JD=va({type:String,values:["ltr","rtl"],default:"ltr"}),pc=va({type:Number,default:0}),ei=va({type:Number,required:!0}),fm=va({type:String,values:["horizontal","vertical"],default:of}),pm=pe({className:{type:String,default:""},containerElement:{type:X([String,Object]),default:"div"},data:{type:X(Array),default:()=>Vt([])},direction:JD,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},style:{type:X([Object,String,Array])},useIsScrolling:{type:Boolean,default:!1},width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:{type:Boolean,default:!1}}),vm=pe({cache:fc,estimatedItemSize:dc,layout:fm,initScrollOffset:pc,total:ei,itemSize:cc,...pm}),vc={type:Number,default:6},hm={type:Number,default:0},mm={type:Number,default:2},$l=pe({columnCache:fc,columnWidth:cc,estimatedColumnWidth:dc,estimatedRowHeight:dc,initScrollLeft:pc,initScrollTop:pc,itemKey:{type:X(Function),default:({columnIndex:e,rowIndex:t})=>`${t}:${e}`},rowCache:fc,rowHeight:cc,totalColumn:ei,totalRow:ei,hScrollbarSize:vc,vScrollbarSize:vc,scrollbarStartGap:hm,scrollbarEndGap:mm,role:String,...pm}),gm=pe({alwaysOn:Boolean,class:String,layout:fm,total:ei,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:vc,startGap:hm,endGap:mm,visible:Boolean}),Cl=(e,t)=>ee===UD||e===ro||e===wo,W2=e=>e===ro;let Ul=null;function ti(e=!1){if(Ul===null||e){const t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";const a=document.createElement("div"),l=a.style;return l.width="100px",l.height="100px",t.appendChild(a),document.body.appendChild(t),t.scrollLeft>0?Ul=sf:(t.scrollLeft=1,t.scrollLeft===0?Ul=wr:Ul=rf),document.body.removeChild(t),Ul}return Ul}function QD({move:e,size:t,bar:n},a){const l={},o=`translate${n.axis}(${e}px)`;return l[n.size]=t,l.transform=o,l.msTransform=o,l.webkitTransform=o,a==="horizontal"?l.height="100%":l.width="100%",l}const hc=T({name:"ElVirtualScrollBar",props:gm,emits:["scroll","start-move","stop-move"],setup(e,{emit:t}){const n=C(()=>e.startGap+e.endGap),a=de("virtual-scrollbar"),l=de("scrollbar"),o=A(),s=A();let i=null,u=null;const c=_t({isDragging:!1,traveled:0}),d=C(()=>h1[e.layout]),f=C(()=>e.clientSize-r(n)),h=C(()=>({position:"absolute",width:`${wo===e.layout?f.value:e.scrollbarSize}px`,height:`${wo===e.layout?e.scrollbarSize:f.value}px`,[YD[e.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),v=C(()=>{const E=e.ratio,O=e.clientSize;if(E>=100)return Number.POSITIVE_INFINITY;if(E>=50)return E*O/100;const I=O/3;return Math.floor(Math.min(Math.max(E*O,GD),I))}),m=C(()=>{if(!Number.isFinite(v.value))return{display:"none"};const E=`${v.value}px`;return QD({bar:d.value,size:E,move:c.traveled},e.layout)}),p=C(()=>Math.floor(e.clientSize-v.value-r(n))),y=()=>{window.addEventListener("mousemove",b),window.addEventListener("mouseup",w);const E=r(s);E&&(u=document.onselectstart,document.onselectstart=()=>!1,E.addEventListener("touchmove",b,{passive:!0}),E.addEventListener("touchend",w))},g=()=>{window.removeEventListener("mousemove",b),window.removeEventListener("mouseup",w),document.onselectstart=u,u=null;const E=r(s);E&&(E.removeEventListener("touchmove",b),E.removeEventListener("touchend",w))},M=E=>{E.stopImmediatePropagation(),!(E.ctrlKey||[1,2].includes(E.button))&&(c.isDragging=!0,c[d.value.axis]=E.currentTarget[d.value.offset]-(E[d.value.client]-E.currentTarget.getBoundingClientRect()[d.value.direction]),t("start-move"),y())},w=()=>{c.isDragging=!1,c[d.value.axis]=0,t("stop-move"),g()},b=E=>{const{isDragging:O}=c;if(!O||!s.value||!o.value)return;const I=c[d.value.axis];if(!I)return;Pl(i);const N=(o.value.getBoundingClientRect()[d.value.direction]-E[d.value.client])*-1,z=s.value[d.value.offset]-I,P=N-z;i=il(()=>{c.traveled=Math.max(e.startGap,Math.min(P,p.value)),t("scroll",P,p.value)})},S=E=>{const O=Math.abs(E.target.getBoundingClientRect()[d.value.direction]-E[d.value.client]),I=s.value[d.value.offset]/2,N=O-I;c.traveled=Math.max(0,Math.min(N,p.value)),t("scroll",N,p.value)};return se(()=>e.scrollFrom,E=>{c.isDragging||(c.traveled=Math.ceil(E*p.value))}),Tt(()=>{g()}),()=>Pe("div",{role:"presentation",ref:o,class:[a.b(),e.class,(e.alwaysOn||c.isDragging)&&"always-on"],style:h.value,onMousedown:Ae(S,["stop","prevent"]),onTouchstartPrevent:M},Pe("div",{ref:s,class:l.e("thumb"),style:m.value,onMousedown:M},[]))}}),ym=({name:e,getOffset:t,getItemSize:n,getItemOffset:a,getEstimatedTotalSize:l,getStartIndexForOffset:o,getStopIndexForStartIndex:s,initCache:i,clearCache:u,validateProps:c})=>T({name:e??"ElVirtualList",props:vm,emits:[Zs,Js],setup(d,{emit:f,expose:h}){c(d);const v=Ze(),m=de("vl"),p=A(i(d,v)),y=dm(),g=A(),M=A(),w=A(),b=A({isScrolling:!1,scrollDir:"forward",scrollOffset:Ie(d.initScrollOffset)?d.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:d.scrollbarAlwaysOn}),S=C(()=>{const{total:j,cache:ne}=d,{isScrolling:oe,scrollDir:ce,scrollOffset:te}=r(b);if(j===0)return[0,0,0,0];const ie=o(d,te,r(p)),fe=s(d,ie,te,r(p)),Me=!oe||ce===Qs?Math.max(1,ne):1,me=!oe||ce===to?Math.max(1,ne):1;return[Math.max(0,ie-Me),Math.max(0,Math.min(j-1,fe+me)),ie,fe]}),E=C(()=>l(d,r(p))),O=C(()=>Cr(d.layout)),I=C(()=>[{position:"relative",[`overflow-${O.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:d.direction,height:Ie(d.height)?`${d.height}px`:d.height,width:Ie(d.width)?`${d.width}px`:d.width},d.style]),N=C(()=>{const j=r(E),ne=r(O);return{height:ne?"100%":`${j}px`,pointerEvents:r(b).isScrolling?"none":void 0,width:ne?`${j}px`:"100%"}}),z=C(()=>O.value?d.width:d.height),{onWheel:P}=ZD({atStartEdge:C(()=>b.value.scrollOffset<=0),atEndEdge:C(()=>b.value.scrollOffset>=E.value),layout:C(()=>d.layout)},j=>{var ne,oe;(oe=(ne=w.value).onMouseUp)==null||oe.call(ne),D(Math.min(b.value.scrollOffset+j,E.value-z.value))});wt(g,"wheel",P,{passive:!1});const L=()=>{const{total:j}=d;if(j>0){const[te,ie,fe,Me]=r(S);f(Zs,te,ie,fe,Me)}const{scrollDir:ne,scrollOffset:oe,updateRequested:ce}=r(b);f(Js,ne,oe,ce)},F=j=>{const{clientHeight:ne,scrollHeight:oe,scrollTop:ce}=j.currentTarget,te=r(b);if(te.scrollOffset===ce)return;const ie=Math.max(0,Math.min(ce,oe-ne));b.value={...te,isScrolling:!0,scrollDir:Cl(te.scrollOffset,ie),scrollOffset:ie,updateRequested:!1},Oe(K)},U=j=>{const{clientWidth:ne,scrollLeft:oe,scrollWidth:ce}=j.currentTarget,te=r(b);if(te.scrollOffset===oe)return;const{direction:ie}=d;let fe=oe;if(ie===ro)switch(ti()){case wr:{fe=-oe;break}case sf:{fe=ce-ne-oe;break}}fe=Math.max(0,Math.min(fe,ce-ne)),b.value={...te,isScrolling:!0,scrollDir:Cl(te.scrollOffset,fe),scrollOffset:fe,updateRequested:!1},Oe(K)},H=j=>{r(O)?U(j):F(j),L()},R=(j,ne)=>{const oe=(E.value-z.value)/ne*j;D(Math.min(E.value-z.value,oe))},D=j=>{j=Math.max(j,0),j!==r(b).scrollOffset&&(b.value={...r(b),scrollOffset:j,scrollDir:Cl(r(b).scrollOffset,j),updateRequested:!0},Oe(K))},B=(j,ne=qn)=>{const{scrollOffset:oe}=r(b);j=Math.max(0,Math.min(j,d.total-1)),D(t(d,j,ne,oe,r(p)))},V=j=>{const{direction:ne,itemSize:oe,layout:ce}=d,te=y.value(u&&oe,u&&ce,u&&ne);let ie;if(hn(te,String(j)))ie=te[j];else{const fe=a(d,j,r(p)),Me=n(d,j,r(p)),me=r(O),le=ne===ro,we=me?fe:0;te[j]=ie={position:"absolute",left:le?void 0:`${we}px`,right:le?`${we}px`:void 0,top:me?0:`${fe}px`,height:me?"100%":`${Me}px`,width:me?`${Me}px`:"100%"}}return ie},K=()=>{b.value.isScrolling=!1,Oe(()=>{y.value(-1,null,null)})},W=()=>{const j=g.value;j&&(j.scrollTop=0)};Ge(()=>{if(!ut)return;const{initScrollOffset:j}=d,ne=r(g);Ie(j)&&ne&&(r(O)?ne.scrollLeft=j:ne.scrollTop=j),L()}),ja(()=>{const{direction:j,layout:ne}=d,{scrollOffset:oe,updateRequested:ce}=r(b),te=r(g);if(ce&&te)if(ne===wo)if(j===ro)switch(ti()){case wr:{te.scrollLeft=-oe;break}case rf:{te.scrollLeft=oe;break}default:{const{clientWidth:ie,scrollWidth:fe}=te;te.scrollLeft=fe-ie-oe;break}}else te.scrollLeft=oe;else te.scrollTop=oe}),Ap(()=>{r(g).scrollTop=r(b).scrollOffset});const Z={ns:m,clientSize:z,estimatedTotalSize:E,windowStyle:I,windowRef:g,innerRef:M,innerStyle:N,itemsToRender:S,scrollbarRef:w,states:b,getItemStyle:V,onScroll:H,onScrollbarScroll:R,onWheel:P,scrollTo:D,scrollToItem:B,resetScrollTop:W};return h({windowRef:g,innerRef:M,getItemStyleCache:y,scrollTo:D,scrollToItem:B,resetScrollTop:W,states:b}),Z},render(d){var f;const{$slots:h,className:v,clientSize:m,containerElement:p,data:y,getItemStyle:g,innerElement:M,itemsToRender:w,innerStyle:b,layout:S,total:E,onScroll:O,onScrollbarScroll:I,states:N,useIsScrolling:z,windowStyle:P,ns:L}=d,[F,U]=w,H=et(p),R=et(M),D=[];if(E>0)for(let W=F;W<=U;W++)D.push(Pe(ze,{key:W},(f=h.default)==null?void 0:f.call(h,{data:y,index:W,isScrolling:z?N.isScrolling:void 0,style:g(W)})));const B=[Pe(R,{style:b,ref:"innerRef"},Ve(R)?D:{default:()=>D})],V=Pe(hc,{ref:"scrollbarRef",clientSize:m,layout:S,onScroll:I,ratio:m*100/this.estimatedTotalSize,scrollFrom:N.scrollOffset/(this.estimatedTotalSize-m),total:E}),K=Pe(H,{class:[L.e("window"),v],style:P,onScroll:O,ref:"windowRef",key:0},Ve(H)?[B]:{default:()=>[B]});return Pe("div",{key:0,class:[L.e("wrapper"),N.scrollbarAlwaysOn?"always-on":""]},[K,V])}}),_m=ym({name:"ElFixedSizeList",getItemOffset:({itemSize:e},t)=>t*e,getItemSize:({itemSize:e})=>e,getEstimatedTotalSize:({total:e,itemSize:t})=>t*e,getOffset:({height:e,total:t,itemSize:n,layout:a,width:l},o,s,i)=>{const u=Cr(a)?l:e,c=Math.max(0,t*n-u),d=Math.min(c,o*n),f=Math.max(0,(o+1)*n-u);switch(s===Ri&&(i>=f-u&&i<=d+u?s=qn:s=_a),s){case _r:return d;case br:return f;case _a:{const h=Math.round(f+(d-f)/2);return hc+Math.floor(u/2)?c:h}case qn:default:return i>=f&&i<=d?i:iMath.max(0,Math.min(e-1,Math.floor(n/t))),getStopIndexForStartIndex:({height:e,total:t,itemSize:n,layout:a,width:l},o,s)=>{const i=o*n,u=Cr(a)?l:e,c=Math.ceil((u+s-i)/n);return Math.max(0,Math.min(t-1,o+c-1))},initCache(){},clearCache:!0,validateProps(){}}),no=(e,t,n)=>{const{itemSize:a}=e,{items:l,lastVisitedIndex:o}=n;if(t>o){let s=0;if(o>=0){const i=l[o];s=i.offset+i.size}for(let i=o+1;i<=t;i++){const u=a(i);l[i]={offset:s,size:u},s+=u}n.lastVisitedIndex=t}return l[t]},eF=(e,t,n)=>{const{items:a,lastVisitedIndex:l}=t;return(l>0?a[l].offset:0)>=n?bm(e,t,0,l,n):tF(e,t,Math.max(0,l),n)},bm=(e,t,n,a,l)=>{for(;n<=a;){const o=n+Math.floor((a-n)/2),s=no(e,o,t).offset;if(s===l)return o;sl&&(a=o-1)}return Math.max(0,n-1)},tF=(e,t,n,a)=>{const{total:l}=e;let o=1;for(;n{let l=0;if(a>=e&&(a=e-1),a>=0){const i=t[a];l=i.offset+i.size}const s=(e-a-1)*n;return l+s},nF=ym({name:"ElDynamicSizeList",getItemOffset:(e,t,n)=>no(e,t,n).offset,getItemSize:(e,t,{items:n})=>n[t].size,getEstimatedTotalSize:j2,getOffset:(e,t,n,a,l)=>{const{height:o,layout:s,width:i}=e,u=Cr(s)?i:o,c=no(e,t,l),d=j2(e,l),f=Math.max(0,Math.min(d-u,c.offset)),h=Math.max(0,c.offset-u+c.size);switch(n===Ri&&(a>=h-u&&a<=f+u?n=qn:n=_a),n){case _r:return f;case br:return h;case _a:return Math.round(h+(f-h)/2);case qn:default:return a>=h&&a<=f?a:aeF(e,n,t),getStopIndexForStartIndex:(e,t,n,a)=>{const{height:l,total:o,layout:s,width:i}=e,u=Cr(s)?i:l,c=no(e,t,a),d=n+u;let f=c.offset+c.size,h=t;for(;h{var o,s;n.lastVisitedIndex=Math.min(n.lastVisitedIndex,a-1),(o=t.exposed)==null||o.getItemStyleCache(-1),l&&((s=t.proxy)==null||s.$forceUpdate())},n},clearCache:!1,validateProps:({itemSize:e})=>{}}),aF={loading:Boolean,data:{type:Array,required:!0},hoveringIndex:Number,width:Number};var lF=T({name:"ElSelectDropdown",props:aF,setup(e,{slots:t,expose:n}){const a=Se(lf),l=de("select"),{getLabel:o,getValue:s,getDisabled:i}=Li(a.props),u=A([]),c=A(),d=C(()=>e.data.length);se(()=>d.value,()=>{var P,L;(L=(P=a.tooltipRef.value).updatePopper)==null||L.call(P)});const f=C(()=>vt(a.props.estimatedOptionHeight)),h=C(()=>f.value?{itemSize:a.props.itemHeight}:{estimatedSize:a.props.estimatedOptionHeight,itemSize:P=>u.value[P]}),v=(P=[],L)=>{const{props:{valueKey:F}}=a;return ht(L)?P&&P.some(U=>Bs(Kt(U,F))===Kt(L,F)):P.includes(L)},m=(P,L)=>{if(ht(L)){const{valueKey:F}=a.props;return Kt(P,F)===Kt(L,F)}else return P===L},p=(P,L)=>a.props.multiple?v(P,s(L)):m(P,s(L)),y=(P,L)=>{const{disabled:F,multiple:U,multipleLimit:H}=a.props;return F||!L&&(U?H>0&&P.length>=H:!1)},g=P=>e.hoveringIndex===P;n({listRef:c,isSized:f,isItemDisabled:y,isItemHovering:g,isItemSelected:p,scrollToItem:P=>{const L=c.value;L&&L.scrollToItem(P)},resetScrollTop:()=>{const P=c.value;P&&P.resetScrollTop()}});const S=P=>{const{index:L,data:F,style:U}=P,H=r(f),{itemSize:R,estimatedSize:D}=r(h),{modelValue:B}=a.props,{onSelect:V,onHover:K}=a,W=F[L];if(W.type==="Group")return q(AD,{item:W,style:U,height:H?R:D},null);const Z=p(B,W),j=y(B,Z),ne=g(L);return q(KD,tt(P,{selected:Z,disabled:i(W)||j,created:!!W.created,hovering:ne,item:W,onSelect:V,onHover:K}),{default:oe=>{var ce;return((ce=t.default)==null?void 0:ce.call(t,oe))||q("span",null,[o(W)])}})},{onKeyboardNavigate:E,onKeyboardSelect:O}=a,I=()=>{E("forward")},N=()=>{E("backward")},z=P=>{const{code:L}=P,{tab:F,esc:U,down:H,up:R,enter:D,numpadEnter:B}=Ce;switch(L!==F&&(P.preventDefault(),P.stopPropagation()),L){case F:case U:break;case H:I();break;case R:N();break;case D:case B:O();break}};return()=>{var P,L,F,U;const{data:H,width:R}=e,{height:D,multiple:B,scrollbarAlwaysOn:V}=a.props,K=r(f)?_m:nF;return q("div",{class:[l.b("dropdown"),l.is("multiple",B)],style:{width:`${R}px`}},[(P=t.header)==null?void 0:P.call(t),((L=t.loading)==null?void 0:L.call(t))||((F=t.empty)==null?void 0:F.call(t))||q(K,tt({ref:c},r(h),{className:l.be("dropdown","list"),scrollbarAlwaysOn:V,data:H,height:D,width:R,total:H.length,onKeydown:z}),{default:W=>q(S,W,null)}),(U=t.footer)==null?void 0:U.call(t)])}}});function oF(e,t){const{aliasProps:n,getLabel:a,getValue:l}=Li(e),o=A(0),s=A(),i=C(()=>e.allowCreate&&e.filterable);function u(v){const m=p=>a(p)===v;return e.options&&e.options.some(m)||t.createdOptions.some(m)}function c(v){i.value&&(e.multiple&&v.created?o.value++:s.value=v)}function d(v){if(i.value)if(v&&v.length>0){if(u(v))return;const m={[n.value.value]:v,[n.value.label]:v,created:!0,[n.value.disabled]:!1};t.createdOptions.length>=o.value?t.createdOptions[o.value]=m:t.createdOptions.push(m)}else if(e.multiple)t.createdOptions.length=o.value;else{const m=s.value;t.createdOptions.length=0,m&&m.created&&t.createdOptions.push(m)}}function f(v){if(!i.value||!v||!v.created||v.created&&e.reserveKeyword&&t.inputValue===a(v))return;const m=t.createdOptions.findIndex(p=>l(p)===l(v));~m&&(t.createdOptions.splice(m,1),o.value--)}function h(){i.value&&(t.createdOptions.length=0,o.value=0)}return{createNewOption:d,removeNewOption:f,selectNewOption:c,clearAllNewOption:h}}const rF=(e,t)=>{const{t:n}=ct(),a=de("select"),l=de("input"),{form:o,formItem:s}=gn(),{inputId:i}=ea(e,{formItemContext:s}),{aliasProps:u,getLabel:c,getValue:d,getDisabled:f,getOptions:h}=Li(e),{valueOnClear:v,isEmptyValue:m}=wi(e),p=_t({inputValue:"",cachedOptions:[],createdOptions:[],hoveringIndex:-1,inputHovering:!1,selectionWidth:0,collapseItemWidth:0,previousQuery:null,previousValue:void 0,selectedLabel:"",menuVisibleOnFocus:!1,isBeforeHide:!1}),y=A(-1),g=A(),M=A(),w=A(),b=A(),S=A(),E=A(),O=A(),I=A(),N=A(),z=A(),{isComposing:P,handleCompositionStart:L,handleCompositionEnd:F,handleCompositionUpdate:U}=Lr({afterComposition:ge=>_n(ge)}),{wrapperRef:H,isFocused:R,handleBlur:D}=fl(S,{beforeFocus(){return W.value},afterFocus(){e.automaticDropdown&&!K.value&&(K.value=!0,p.menuVisibleOnFocus=!0)},beforeBlur(ge){var Re,st;return((Re=w.value)==null?void 0:Re.isFocusInsideContent(ge))||((st=b.value)==null?void 0:st.isFocusInsideContent(ge))},afterBlur(){K.value=!1,p.menuVisibleOnFocus=!1}}),B=A([]),V=A([]),K=A(!1),W=C(()=>e.disabled||(o==null?void 0:o.disabled)),Z=C(()=>{var ge;return(ge=o==null?void 0:o.statusIcon)!=null?ge:!1}),j=C(()=>{const ge=V.value.length*e.itemHeight;return ge>e.height?e.height:ge}),ne=C(()=>e.multiple?Ee(e.modelValue)&&e.modelValue.length>0:!m(e.modelValue)),oe=C(()=>e.clearable&&!W.value&&p.inputHovering&&ne.value),ce=C(()=>e.remote&&e.filterable?"":$a),te=C(()=>ce.value&&a.is("reverse",K.value)),ie=C(()=>(s==null?void 0:s.validateState)||""),fe=C(()=>{if(ie.value)return $i[ie.value]}),Me=C(()=>e.remote?300:0),me=C(()=>e.loading?e.loadingText||n("el.select.loading"):e.remote&&!p.inputValue&&B.value.length===0?!1:e.filterable&&p.inputValue&&B.value.length>0&&V.value.length===0?e.noMatchText||n("el.select.noMatch"):B.value.length===0?e.noDataText||n("el.select.noData"):null),le=ge=>{const Re=st=>{if(e.filterable&&Qe(e.filterMethod)||e.filterable&&e.remote&&Qe(e.remoteMethod))return!0;const dt=new RegExp(Rd(ge),"i");return ge?dt.test(c(st)||""):!0};return e.loading?[]:[...p.createdOptions,...e.options].reduce((st,dt)=>{const cn=h(dt);if(Ee(cn)){const ga=cn.filter(Re);ga.length>0&&st.push({label:c(dt),type:"Group"},...ga)}else(e.remote||Re(dt))&&st.push(dt);return st},[])},we=()=>{B.value=le(""),V.value=le(p.inputValue)},Le=C(()=>{const ge=new Map;return B.value.forEach((Re,st)=>{ge.set($t(d(Re)),{option:Re,index:st})}),ge}),De=C(()=>{const ge=new Map;return V.value.forEach((Re,st)=>{ge.set($t(d(Re)),{option:Re,index:st})}),ge}),Ye=C(()=>V.value.every(ge=>f(ge))),$e=jt(),Te=C(()=>$e.value==="small"?"small":"default"),ke=()=>{var ge;if(Ie(e.fitInputWidth)){y.value=e.fitInputWidth;return}const Re=((ge=g.value)==null?void 0:ge.offsetWidth)||200;!e.fitInputWidth&&B.value.length>0?Oe(()=>{y.value=Math.max(Re,He())}):y.value=Re},He=()=>{var ge,Re;const dt=document.createElement("canvas").getContext("2d"),cn=a.be("dropdown","item"),zf=(((Re=(ge=I.value)==null?void 0:ge.listRef)==null?void 0:Re.innerRef)||document).querySelector(`.${cn}`);if(zf===null||dt===null)return 0;const Xi=getComputedStyle(zf),eg=Number.parseFloat(Xi.paddingLeft)+Number.parseFloat(Xi.paddingRight);return dt.font=Xi.font,V.value.reduce((tg,ng)=>{const ag=dt.measureText(c(ng));return Math.max(ag.width,tg)},0)+eg},Xe=()=>{if(!M.value)return 0;const ge=window.getComputedStyle(M.value);return Number.parseFloat(ge.gap||"6px")},at=C(()=>{const ge=Xe();return{maxWidth:`${z.value&&e.maxCollapseTags===1?p.selectionWidth-p.collapseItemWidth-ge:p.selectionWidth}px`}}),nt=C(()=>({maxWidth:`${p.selectionWidth}px`})),be=C(()=>Ee(e.modelValue)?e.modelValue.length===0&&!p.inputValue:e.filterable?!p.inputValue:!0),je=C(()=>{var ge;const Re=(ge=e.placeholder)!=null?ge:n("el.select.placeholder");return e.multiple||!ne.value?Re:p.selectedLabel}),ft=C(()=>{var ge,Re;return(Re=(ge=w.value)==null?void 0:ge.popperRef)==null?void 0:Re.contentRef}),Ot=C(()=>{if(e.multiple){const ge=e.modelValue.length;if(e.modelValue.length>0&&De.value.has(e.modelValue[ge-1])){const{index:Re}=De.value.get(e.modelValue[ge-1]);return Re}}else if(!m(e.modelValue)&&De.value.has(e.modelValue)){const{index:ge}=De.value.get(e.modelValue);return ge}return-1}),bt=C({get(){return K.value&&me.value!==!1},set(ge){K.value=ge}}),Pt=C(()=>e.multiple?e.collapseTags?p.cachedOptions.slice(0,e.maxCollapseTags):p.cachedOptions:[]),gt=C(()=>e.multiple?e.collapseTags?p.cachedOptions.slice(e.maxCollapseTags):[]:[]),{createNewOption:un,removeNewOption:Wt,selectNewOption:re,clearAllNewOption:J}=oF(e,p),ue=()=>{W.value||(p.menuVisibleOnFocus?p.menuVisibleOnFocus=!1:K.value=!K.value)},Y=()=>{p.inputValue.length>0&&!K.value&&(K.value=!0),un(p.inputValue),Fe(p.inputValue)},ye=Rn(Y,Me.value),Fe=ge=>{p.previousQuery===ge||P.value||(p.previousQuery=ge,e.filterable&&Qe(e.filterMethod)?e.filterMethod(ge):e.filterable&&e.remote&&Qe(e.remoteMethod)&&e.remoteMethod(ge),e.defaultFirstOption&&(e.filterable||e.remote)&&V.value.length?Oe(lt):Oe(Yt))},lt=()=>{const ge=V.value.filter(dt=>!dt.disabled&&dt.type!=="Group"),Re=ge.find(dt=>dt.created),st=ge[0];p.hoveringIndex=Jt(V.value,Re||st)},Nt=ge=>{fn(e.modelValue,ge)||t(Ct,ge)},Ut=ge=>{t(Ue,ge),Nt(ge),p.previousValue=e.multiple?String(ge):ge},Jt=(ge=[],Re)=>{if(!ht(Re))return ge.indexOf(Re);const st=e.valueKey;let dt=-1;return ge.some((cn,ga)=>Kt(cn,st)===Kt(Re,st)?(dt=ga,!0):!1),dt},$t=ge=>ht(ge)?Kt(ge,e.valueKey):ge,ln=()=>{ke()},It=()=>{p.selectionWidth=M.value.getBoundingClientRect().width},In=()=>{p.collapseItemWidth=z.value.getBoundingClientRect().width},Fl=()=>{var ge,Re;(Re=(ge=w.value)==null?void 0:ge.updatePopper)==null||Re.call(ge)},qr=()=>{var ge,Re;(Re=(ge=b.value)==null?void 0:ge.updatePopper)==null||Re.call(ge)},vl=ge=>{if(e.multiple){let Re=e.modelValue.slice();const st=Jt(Re,d(ge));st>-1?(Re=[...Re.slice(0,st),...Re.slice(st+1)],p.cachedOptions.splice(st,1),Wt(ge)):(e.multipleLimit<=0||Re.length{let st=e.modelValue.slice();const dt=Jt(st,d(Re));dt>-1&&!W.value&&(st=[...e.modelValue.slice(0,dt),...e.modelValue.slice(dt+1)],p.cachedOptions.splice(dt,1),Ut(st),t("remove-tag",d(Re)),Wt(Re)),ge.stopPropagation(),Kl()},Kl=()=>{var ge;(ge=S.value)==null||ge.focus()},qi=()=>{var ge;if(K.value){K.value=!1,Oe(()=>{var Re;return(Re=S.value)==null?void 0:Re.blur()});return}(ge=S.value)==null||ge.blur()},Ur=()=>{p.inputValue.length>0?p.inputValue="":K.value=!1},Ui=ge=>Ev(ge,Re=>!p.cachedOptions.some(st=>d(st)===Re&&f(st))),Yi=ge=>{if(e.multiple&&ge.code!==Ce.delete&&p.inputValue.length===0){ge.preventDefault();const Re=e.modelValue.slice(),st=Ui(Re);if(st<0)return;const dt=Re[st];Re.splice(st,1);const cn=p.cachedOptions[st];p.cachedOptions.splice(st,1),Wt(cn),Ut(Re),t("remove-tag",dt)}},Gi=()=>{let ge;Ee(e.modelValue)?ge=[]:ge=v.value,e.multiple?p.cachedOptions=[]:p.selectedLabel="",K.value=!1,Ut(ge),t("clear"),J(),Kl()},_e=(ge,Re=void 0)=>{const st=V.value;if(!["forward","backward"].includes(ge)||W.value||st.length<=0||Ye.value||P.value)return;if(!K.value)return ue();Re===void 0&&(Re=p.hoveringIndex);let dt=-1;ge==="forward"?(dt=Re+1,dt>=st.length&&(dt=0)):ge==="backward"&&(dt=Re-1,(dt<0||dt>=st.length)&&(dt=st.length-1));const cn=st[dt];if(f(cn)||cn.type==="Group")return _e(ge,dt);p.hoveringIndex=dt,Za(dt)},Ke=()=>{if(K.value)~p.hoveringIndex&&V.value[p.hoveringIndex]&&vl(V.value[p.hoveringIndex]);else return ue()},yt=ge=>{p.hoveringIndex=ge??-1},Yt=()=>{e.multiple?p.hoveringIndex=V.value.findIndex(ge=>e.modelValue.some(Re=>$t(Re)===$t(ge))):p.hoveringIndex=V.value.findIndex(ge=>$t(ge)===$t(e.modelValue))},_n=ge=>{if(p.inputValue=ge.target.value,e.remote)ye();else return Y()},Xa=ge=>{if(K.value=!1,R.value){const Re=new FocusEvent("focus",ge);D(Re)}},ma=()=>(p.isBeforeHide=!1,Oe(()=>{~Ot.value&&Za(p.hoveringIndex)})),Za=ge=>{I.value.scrollToItem(ge)},hl=(ge,Re)=>{const st=$t(ge);if(Le.value.has(st)){const{option:dt}=Le.value.get(st);return dt}if(Re&&Re.length){const dt=Re.find(cn=>$t(d(cn))===st);if(dt)return dt}return{[u.value.value]:ge,[u.value.label]:ge}},Ko=(ge=!1)=>{if(e.multiple)if(e.modelValue.length>0){const Re=p.cachedOptions.slice();p.cachedOptions.length=0,p.previousValue=e.modelValue.toString();for(const st of e.modelValue){const dt=hl(st,Re);p.cachedOptions.push(dt)}}else p.cachedOptions=[],p.previousValue=void 0;else if(ne.value){p.previousValue=e.modelValue;const Re=V.value,st=Re.findIndex(dt=>$t(d(dt))===$t(e.modelValue));~st?p.selectedLabel=c(Re[st]):(!p.selectedLabel||ge)&&(p.selectedLabel=$t(e.modelValue))}else p.selectedLabel="",p.previousValue=void 0;J(),ke()};return se(()=>e.fitInputWidth,()=>{ke()}),se(K,ge=>{ge?(e.persistent||ke(),Fe("")):(p.inputValue="",p.previousQuery=null,p.isBeforeHide=!0,un("")),t("visible-change",ge)}),se(()=>e.modelValue,(ge,Re)=>{var st;(!ge||Ee(ge)&&ge.length===0||e.multiple&&!fn(ge.toString(),p.previousValue)||!e.multiple&&$t(ge)!==$t(p.previousValue))&&Ko(!0),!fn(ge,Re)&&e.validateEvent&&((st=s==null?void 0:s.validate)==null||st.call(s,"change").catch(cn=>void 0))},{deep:!0}),se(()=>e.options,()=>{const ge=S.value;(!ge||ge&&document.activeElement!==ge)&&Ko()},{deep:!0,flush:"post"}),se(()=>V.value,()=>(ke(),I.value&&Oe(I.value.resetScrollTop))),on(()=>{p.isBeforeHide||we()}),on(()=>{const{valueKey:ge,options:Re}=e,st=new Map;for(const dt of Re){const cn=d(dt);let ga=cn;if(ht(ga)&&(ga=Kt(cn,ge)),st.get(ga))break;st.set(ga,!0)}}),Ge(()=>{Ko()}),At(g,ln),At(M,It),At(I,Fl),At(H,Fl),At(N,qr),At(z,In),{inputId:i,collapseTagSize:Te,currentPlaceholder:je,expanded:K,emptyText:me,popupHeight:j,debounce:Me,allOptions:B,filteredOptions:V,iconComponent:ce,iconReverse:te,tagStyle:at,collapseTagStyle:nt,popperSize:y,dropdownMenuVisible:bt,hasModelValue:ne,shouldShowPlaceholder:be,selectDisabled:W,selectSize:$e,needStatusIcon:Z,showClearBtn:oe,states:p,isFocused:R,nsSelect:a,nsInput:l,inputRef:S,menuRef:I,tagMenuRef:N,tooltipRef:w,tagTooltipRef:b,selectRef:g,wrapperRef:H,selectionRef:M,prefixRef:E,suffixRef:O,collapseItemRef:z,popperRef:ft,validateState:ie,validateIcon:fe,showTagList:Pt,collapseTagList:gt,debouncedOnInputChange:ye,deleteTag:ji,getLabel:c,getValue:d,getDisabled:f,getValueKey:$t,handleClear:Gi,handleClickOutside:Xa,handleDel:Yi,handleEsc:Ur,focus:Kl,blur:qi,handleMenuEnter:ma,handleResize:ln,resetSelectionWidth:It,updateTooltip:Fl,updateTagTooltip:qr,updateOptions:we,toggleMenu:ue,scrollTo:Za,onInput:_n,onKeyboardNavigate:_e,onKeyboardSelect:Ke,onSelect:vl,onHover:yt,handleCompositionStart:L,handleCompositionEnd:F,handleCompositionUpdate:U}},sF=T({name:"ElSelectV2",components:{ElSelectMenu:lF,ElTag:_o,ElTooltip:mn,ElIcon:xe},directives:{ClickOutside:Ka},props:LD,emits:BD,setup(e,{emit:t}){const n=C(()=>{const{modelValue:i,multiple:u}=e,c=u?[]:void 0;return Ee(i)?u?i:c:u?c:i}),a=rF(_t({...nn(e),modelValue:n}),t),{calculatorRef:l,inputStyle:o}=ef();it(lf,{props:_t({...nn(e),height:a.popupHeight,modelValue:n}),expanded:a.expanded,tooltipRef:a.tooltipRef,onSelect:a.onSelect,onHover:a.onHover,onKeyboardNavigate:a.onKeyboardNavigate,onKeyboardSelect:a.onKeyboardSelect});const s=C(()=>e.multiple?a.states.cachedOptions.map(i=>i.label):a.states.selectedLabel);return{...a,modelValue:n,selectedLabel:s,calculatorRef:l,inputStyle:o}}});function iF(e,t,n,a,l,o){const s=Je("el-tag"),i=Je("el-tooltip"),u=Je("el-icon"),c=Je("el-select-menu"),d=fi("click-outside");return qe((_(),x("div",{ref:"selectRef",class:$([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),onMouseenter:f=>e.states.inputHovering=!0,onMouseleave:f=>e.states.inputHovering=!1},[q(i,{ref:"tooltipRef",visible:e.dropdownMenuVisible,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,placement:e.placement,pure:"",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,trigger:"click",persistent:e.persistent,"append-to":e.appendTo,"show-arrow":e.showArrow,offset:e.offset,onBeforeShow:e.handleMenuEnter,onHide:f=>e.states.isBeforeHide=!1},{default:G(()=>[k("div",{ref:"wrapperRef",class:$([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:Ae(e.toggleMenu,["prevent"])},[e.$slots.prefix?(_(),x("div",{key:0,ref:"prefixRef",class:$(e.nsSelect.e("prefix"))},[Q(e.$slots,"prefix")],2)):ee("v-if",!0),k("div",{ref:"selectionRef",class:$([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.modelValue.length)])},[e.multiple?Q(e.$slots,"tag",{key:0},()=>[(_(!0),x(ze,null,rt(e.showTagList,f=>(_(),x("div",{key:e.getValueKey(e.getValue(f)),class:$(e.nsSelect.e("selected-item"))},[q(s,{closable:!e.selectDisabled&&!e.getDisabled(f),size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:Ne(e.tagStyle),onClose:h=>e.deleteTag(h,f)},{default:G(()=>[k("span",{class:$(e.nsSelect.e("tags-text"))},[Q(e.$slots,"label",{label:e.getLabel(f),value:e.getValue(f)},()=>[ot(he(e.getLabel(f)),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.modelValue.length>e.maxCollapseTags?(_(),ae(i,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:G(()=>[k("div",{ref:"collapseItemRef",class:$(e.nsSelect.e("selected-item"))},[q(s,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,style:Ne(e.collapseTagStyle),"disable-transitions":""},{default:G(()=>[k("span",{class:$(e.nsSelect.e("tags-text"))}," + "+he(e.modelValue.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:G(()=>[k("div",{ref:"tagMenuRef",class:$(e.nsSelect.e("selection"))},[(_(!0),x(ze,null,rt(e.collapseTagList,f=>(_(),x("div",{key:e.getValueKey(e.getValue(f)),class:$(e.nsSelect.e("selected-item"))},[q(s,{class:"in-tooltip",closable:!e.selectDisabled&&!e.getDisabled(f),size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:h=>e.deleteTag(h,f)},{default:G(()=>[k("span",{class:$(e.nsSelect.e("tags-text"))},[Q(e.$slots,"label",{label:e.getLabel(f),value:e.getValue(f)},()=>[ot(he(e.getLabel(f)),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","teleported"])):ee("v-if",!0)]):ee("v-if",!0),k("div",{class:$([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[qe(k("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":f=>e.states.inputValue=f,style:Ne(e.inputStyle),autocomplete:e.autocomplete,tabindex:e.tabindex,"aria-autocomplete":"list","aria-haspopup":"listbox",autocapitalize:"off","aria-expanded":e.expanded,"aria-label":e.ariaLabel,class:$([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,role:"combobox",readonly:!e.filterable,spellcheck:"false",type:"text",name:e.name,onInput:e.onInput,onCompositionstart:e.handleCompositionStart,onCompositionupdate:e.handleCompositionUpdate,onCompositionend:e.handleCompositionEnd,onKeydown:[kt(Ae(f=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"]),kt(Ae(f=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"]),kt(Ae(e.onKeyboardSelect,["stop","prevent"]),["enter"]),kt(Ae(e.handleEsc,["stop","prevent"]),["esc"]),kt(Ae(e.handleDel,["stop"]),["delete"])],onClick:Ae(e.toggleMenu,["stop"])},null,46,["id","onUpdate:modelValue","autocomplete","tabindex","aria-expanded","aria-label","disabled","readonly","name","onInput","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown","onClick"]),[[di,e.states.inputValue]]),e.filterable?(_(),x("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:$(e.nsSelect.e("input-calculator")),textContent:he(e.states.inputValue)},null,10,["textContent"])):ee("v-if",!0)],2),e.shouldShowPlaceholder?(_(),x("div",{key:1,class:$([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?Q(e.$slots,"label",{key:0,label:e.currentPlaceholder,value:e.modelValue},()=>[k("span",null,he(e.currentPlaceholder),1)]):(_(),x("span",{key:1},he(e.currentPlaceholder),1))],2)):ee("v-if",!0)],2),k("div",{ref:"suffixRef",class:$(e.nsSelect.e("suffix"))},[e.iconComponent?qe((_(),ae(u,{key:0,class:$([e.nsSelect.e("caret"),e.nsInput.e("icon"),e.iconReverse])},{default:G(()=>[(_(),ae(et(e.iconComponent)))]),_:1},8,["class"])),[[pt,!e.showClearBtn]]):ee("v-if",!0),e.showClearBtn&&e.clearIcon?(_(),ae(u,{key:1,class:$([e.nsSelect.e("caret"),e.nsInput.e("icon"),e.nsSelect.e("clear")]),onClick:Ae(e.handleClear,["prevent","stop"])},{default:G(()=>[(_(),ae(et(e.clearIcon)))]),_:1},8,["class","onClick"])):ee("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?(_(),ae(u,{key:2,class:$([e.nsInput.e("icon"),e.nsInput.e("validateIcon"),e.nsInput.is("loading",e.validateState==="validating")])},{default:G(()=>[(_(),ae(et(e.validateIcon)))]),_:1},8,["class"])):ee("v-if",!0)],2)],10,["onClick"])]),content:G(()=>[q(c,{ref:"menuRef",data:e.filteredOptions,width:e.popperSize,"hovering-index":e.states.hoveringIndex,"scrollbar-always-on":e.scrollbarAlwaysOn},Yn({default:G(f=>[Q(e.$slots,"default",oa(Ol(f)))]),_:2},[e.$slots.header?{name:"header",fn:G(()=>[k("div",{class:$(e.nsSelect.be("dropdown","header"))},[Q(e.$slots,"header")],2)])}:void 0,e.$slots.loading&&e.loading?{name:"loading",fn:G(()=>[k("div",{class:$(e.nsSelect.be("dropdown","loading"))},[Q(e.$slots,"loading")],2)])}:e.loading||e.filteredOptions.length===0?{name:"empty",fn:G(()=>[k("div",{class:$(e.nsSelect.be("dropdown","empty"))},[Q(e.$slots,"empty",{},()=>[k("span",null,he(e.emptyText),1)])],2)])}:void 0,e.$slots.footer?{name:"footer",fn:G(()=>[k("div",{class:$(e.nsSelect.be("dropdown","footer"))},[Q(e.$slots,"footer")],2)])}:void 0]),1032,["data","width","hovering-index","scrollbar-always-on"])]),_:3},8,["visible","teleported","popper-class","popper-options","fallback-placements","effect","placement","transition","persistent","append-to","show-arrow","offset","onBeforeShow","onHide"])],42,["onMouseenter","onMouseleave"])),[[d,e.handleClickOutside,e.popperRef]])}var uF=ve(sF,[["render",iF],["__file","select.vue"]]);const cF=We(uF),dF=pe({animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:X([Number,Object])}}),fF=pe({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),pF=T({name:"ElSkeletonItem"}),vF=T({...pF,props:fF,setup(e){const t=de("skeleton");return(n,a)=>(_(),x("div",{class:$([r(t).e("item"),r(t).e(n.variant)])},[n.variant==="image"?(_(),ae(r(a1),{key:0})):ee("v-if",!0)],2))}});var ni=ve(vF,[["__file","skeleton-item.vue"]]);const hF=(e,t=0)=>{if(t===0)return e;const n=ht(t)&&!!t.initVal,a=A(n);let l=null;const o=i=>{if(vt(i)){a.value=e.value;return}l&&clearTimeout(l),l=setTimeout(()=>{a.value=e.value},i)},s=i=>{i==="leading"?Ie(t)?o(t):o(t.leading):ht(t)?o(t.trailing):a.value=!1};return Ge(()=>s("leading")),se(()=>e.value,i=>{s(i?"leading":"trailing")}),a},mF=T({name:"ElSkeleton"}),gF=T({...mF,props:dF,setup(e,{expose:t}){const n=e,a=de("skeleton"),l=hF(mt(n,"loading"),n.throttle);return t({uiLoading:l}),(o,s)=>r(l)?(_(),x("div",tt({key:0,class:[r(a).b(),r(a).is("animated",o.animated)]},o.$attrs),[(_(!0),x(ze,null,rt(o.count,i=>(_(),x(ze,{key:i},[r(l)?Q(o.$slots,"template",{key:i},()=>[q(ni,{class:$(r(a).is("first")),variant:"p"},null,8,["class"]),(_(!0),x(ze,null,rt(o.rows,u=>(_(),ae(ni,{key:u,class:$([r(a).e("paragraph"),r(a).is("last",u===o.rows&&o.rows>1)]),variant:"p"},null,8,["class"]))),128))]):ee("v-if",!0)],64))),128))],16)):Q(o.$slots,"default",oa(tt({key:1},o.$attrs)))}});var yF=ve(gF,[["__file","skeleton.vue"]]);const _F=We(yF,{SkeletonItem:ni}),bF=Lt(ni),wm=Symbol("sliderContextKey"),wF=pe({modelValue:{type:X([Number,Array]),default:0},id:{type:String,default:void 0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},showInput:Boolean,showInputControls:{type:Boolean,default:!0},size:qt,inputSize:qt,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:X(Function),default:void 0},disabled:Boolean,range:Boolean,vertical:Boolean,height:String,debounce:{type:Number,default:300},rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:X(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:Ga,default:"top"},marks:{type:X(Object)},validateEvent:{type:Boolean,default:!0},...sn(["ariaLabel"])}),gu=e=>Ie(e)||Ee(e)&&e.every(Ie),CF={[Ue]:gu,[pn]:gu,[Ct]:gu},SF=pe({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:Ga,default:"top"}}),kF={[Ue]:e=>Ie(e)},EF=(e,t,n)=>{const a=A(),l=A(!1),o=C(()=>t.value instanceof Function),s=C(()=>o.value&&t.value(e.modelValue)||e.modelValue),i=Rn(()=>{n.value&&(l.value=!0)},50),u=Rn(()=>{n.value&&(l.value=!1)},50);return{tooltip:a,tooltipVisible:l,formatValue:s,displayTooltip:i,hideTooltip:u}},MF=(e,t,n)=>{const{disabled:a,min:l,max:o,step:s,showTooltip:i,precision:u,sliderSize:c,formatTooltip:d,emitChange:f,resetSize:h,updateDragging:v}=Se(wm),{tooltip:m,tooltipVisible:p,formatValue:y,displayTooltip:g,hideTooltip:M}=EF(e,d,i),w=A(),b=C(()=>`${(e.modelValue-l.value)/(o.value-l.value)*100}%`),S=C(()=>e.vertical?{bottom:b.value}:{left:b.value}),E=()=>{t.hovering=!0,g()},O=()=>{t.hovering=!1,t.dragging||M()},I=Z=>{a.value||(Z.preventDefault(),B(Z),window.addEventListener("mousemove",V),window.addEventListener("touchmove",V),window.addEventListener("mouseup",K),window.addEventListener("touchend",K),window.addEventListener("contextmenu",K),w.value.focus())},N=Z=>{a.value||(t.newPosition=Number.parseFloat(b.value)+Z/(o.value-l.value)*100,W(t.newPosition),f())},z=()=>{N(-s.value)},P=()=>{N(s.value)},L=()=>{N(-s.value*4)},F=()=>{N(s.value*4)},U=()=>{a.value||(W(0),f())},H=()=>{a.value||(W(100),f())},R=Z=>{let j=!0;switch(Z.code){case Ce.left:case Ce.down:z();break;case Ce.right:case Ce.up:P();break;case Ce.home:U();break;case Ce.end:H();break;case Ce.pageDown:L();break;case Ce.pageUp:F();break;default:j=!1;break}j&&Z.preventDefault()},D=Z=>{let j,ne;return Z.type.startsWith("touch")?(ne=Z.touches[0].clientY,j=Z.touches[0].clientX):(ne=Z.clientY,j=Z.clientX),{clientX:j,clientY:ne}},B=Z=>{t.dragging=!0,t.isClick=!0;const{clientX:j,clientY:ne}=D(Z);e.vertical?t.startY=ne:t.startX=j,t.startPosition=Number.parseFloat(b.value),t.newPosition=t.startPosition},V=Z=>{if(t.dragging){t.isClick=!1,g(),h();let j;const{clientX:ne,clientY:oe}=D(Z);e.vertical?(t.currentY=oe,j=(t.startY-t.currentY)/c.value*100):(t.currentX=ne,j=(t.currentX-t.startX)/c.value*100),t.newPosition=t.startPosition+j,W(t.newPosition)}},K=()=>{t.dragging&&(setTimeout(()=>{t.dragging=!1,t.hovering||M(),t.isClick||W(t.newPosition),f()},0),window.removeEventListener("mousemove",V),window.removeEventListener("touchmove",V),window.removeEventListener("mouseup",K),window.removeEventListener("touchend",K),window.removeEventListener("contextmenu",K))},W=async Z=>{if(Z===null||Number.isNaN(+Z))return;Z<0?Z=0:Z>100&&(Z=100);const j=100/((o.value-l.value)/s.value);let oe=Math.round(Z/j)*j*(o.value-l.value)*.01+l.value;oe=Number.parseFloat(oe.toFixed(u.value)),oe!==e.modelValue&&n(Ue,oe),!t.dragging&&e.modelValue!==t.oldValue&&(t.oldValue=e.modelValue),await Oe(),t.dragging&&g(),m.value.updatePopper()};return se(()=>t.dragging,Z=>{v(Z)}),wt(w,"touchstart",I,{passive:!1}),{disabled:a,button:w,tooltip:m,tooltipVisible:p,showTooltip:i,wrapperStyle:S,formatValue:y,handleMouseEnter:E,handleMouseLeave:O,onButtonDown:I,onKeyDown:R,setPosition:W}},xF=T({name:"ElSliderButton"}),$F=T({...xF,props:SF,emits:kF,setup(e,{expose:t,emit:n}){const a=e,l=de("slider"),o=_t({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:a.modelValue}),{disabled:s,button:i,tooltip:u,showTooltip:c,tooltipVisible:d,wrapperStyle:f,formatValue:h,handleMouseEnter:v,handleMouseLeave:m,onButtonDown:p,onKeyDown:y,setPosition:g}=MF(a,o,n),{hovering:M,dragging:w}=nn(o);return t({onButtonDown:p,onKeyDown:y,setPosition:g,hovering:M,dragging:w}),(b,S)=>(_(),x("div",{ref_key:"button",ref:i,class:$([r(l).e("button-wrapper"),{hover:r(M),dragging:r(w)}]),style:Ne(r(f)),tabindex:r(s)?-1:0,onMouseenter:r(v),onMouseleave:r(m),onMousedown:r(p),onFocus:r(v),onBlur:r(m),onKeydown:r(y)},[q(r(mn),{ref_key:"tooltip",ref:u,visible:r(d),placement:b.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":b.tooltipClass,disabled:!r(c),persistent:r(c)},{content:G(()=>[k("span",null,he(r(h)),1)]),default:G(()=>[k("div",{class:$([r(l).e("button"),{hover:r(M),dragging:r(w)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled","persistent"])],46,["tabindex","onMouseenter","onMouseleave","onMousedown","onFocus","onBlur","onKeydown"]))}});var q2=ve($F,[["__file","button.vue"]]);const TF=pe({mark:{type:X([String,Object]),default:void 0}});var OF=T({name:"ElSliderMarker",props:TF,setup(e){const t=de("slider"),n=C(()=>Ve(e.mark)?e.mark:e.mark.label),a=C(()=>Ve(e.mark)?void 0:e.mark.style);return()=>Pe("div",{class:t.e("marks-text"),style:a.value},n.value)}});const NF=(e,t,n)=>{const{form:a,formItem:l}=gn(),o=Mt(),s=A(),i=A(),u={firstButton:s,secondButton:i},c=C(()=>e.disabled||(a==null?void 0:a.disabled)||!1),d=C(()=>Math.min(t.firstValue,t.secondValue)),f=C(()=>Math.max(t.firstValue,t.secondValue)),h=C(()=>e.range?`${100*(f.value-d.value)/(e.max-e.min)}%`:`${100*(t.firstValue-e.min)/(e.max-e.min)}%`),v=C(()=>e.range?`${100*(d.value-e.min)/(e.max-e.min)}%`:"0%"),m=C(()=>e.vertical?{height:e.height}:{}),p=C(()=>e.vertical?{height:h.value,bottom:v.value}:{width:h.value,left:v.value}),y=()=>{o.value&&(t.sliderSize=o.value[`client${e.vertical?"Height":"Width"}`])},g=L=>{const F=e.min+L*(e.max-e.min)/100;if(!e.range)return s;let U;return Math.abs(d.value-F)t.secondValue?"firstButton":"secondButton",u[U]},M=L=>{const F=g(L);return F.value.setPosition(L),F},w=L=>{t.firstValue=L??e.min,S(e.range?[d.value,f.value]:L??e.min)},b=L=>{t.secondValue=L,e.range&&S([d.value,f.value])},S=L=>{n(Ue,L),n(pn,L)},E=async()=>{await Oe(),n(Ct,e.range?[d.value,f.value]:e.modelValue)},O=L=>{var F,U,H,R,D,B;if(c.value||t.dragging)return;y();let V=0;if(e.vertical){const K=(H=(U=(F=L.touches)==null?void 0:F.item(0))==null?void 0:U.clientY)!=null?H:L.clientY;V=(o.value.getBoundingClientRect().bottom-K)/t.sliderSize*100}else{const K=(B=(D=(R=L.touches)==null?void 0:R.item(0))==null?void 0:D.clientX)!=null?B:L.clientX,W=o.value.getBoundingClientRect().left;V=(K-W)/t.sliderSize*100}if(!(V<0||V>100))return M(V)};return{elFormItem:l,slider:o,firstButton:s,secondButton:i,sliderDisabled:c,minValue:d,maxValue:f,runwayStyle:m,barStyle:p,resetSize:y,setPosition:M,emitChange:E,onSliderWrapperPrevent:L=>{var F,U;((F=u.firstButton.value)!=null&&F.dragging||(U=u.secondButton.value)!=null&&U.dragging)&&L.preventDefault()},onSliderClick:L=>{O(L)&&E()},onSliderDown:async L=>{const F=O(L);F&&(await Oe(),F.value.onButtonDown(L))},onSliderMarkerDown:L=>{c.value||t.dragging||M(L)},setFirstValue:w,setSecondValue:b}},IF=(e,t,n,a)=>({stops:C(()=>{if(!e.showStops||e.min>e.max)return[];if(e.step===0)return[];const s=(e.max-e.min)/e.step,i=100*e.step/(e.max-e.min),u=Array.from({length:s-1}).map((c,d)=>(d+1)*i);return e.range?u.filter(c=>c<100*(n.value-e.min)/(e.max-e.min)||c>100*(a.value-e.min)/(e.max-e.min)):u.filter(c=>c>100*(t.firstValue-e.min)/(e.max-e.min))}),getStopStyle:s=>e.vertical?{bottom:`${s}%`}:{left:`${s}%`}}),PF=e=>C(()=>e.marks?Object.keys(e.marks).map(Number.parseFloat).sort((n,a)=>n-a).filter(n=>n<=e.max&&n>=e.min).map(n=>({point:n,position:(n-e.min)*100/(e.max-e.min),mark:e.marks[n]})):[]),zF=(e,t,n,a,l,o)=>{const s=c=>{l(Ue,c),l(pn,c)},i=()=>e.range?![n.value,a.value].every((c,d)=>c===t.oldValue[d]):e.modelValue!==t.oldValue,u=()=>{var c,d;e.min>e.max&&Gt("Slider","min should not be greater than max.");const f=e.modelValue;e.range&&Ee(f)?f[1]e.max?s([e.max,e.max]):f[0]e.max?s([f[0],e.max]):(t.firstValue=f[0],t.secondValue=f[1],i()&&(e.validateEvent&&((c=o==null?void 0:o.validate)==null||c.call(o,"change").catch(h=>void 0)),t.oldValue=f.slice())):!e.range&&Ie(f)&&!Number.isNaN(f)&&(fe.max?s(e.max):(t.firstValue=f,i()&&(e.validateEvent&&((d=o==null?void 0:o.validate)==null||d.call(o,"change").catch(h=>void 0)),t.oldValue=f)))};u(),se(()=>t.dragging,c=>{c||u()}),se(()=>e.modelValue,(c,d)=>{t.dragging||Ee(c)&&Ee(d)&&c.every((f,h)=>f===d[h])&&t.firstValue===c[0]&&t.secondValue===c[1]||u()},{deep:!0}),se(()=>[e.min,e.max],()=>{u()})},AF=(e,t,n)=>{const a=A();return Ge(async()=>{e.range?(Ee(e.modelValue)?(t.firstValue=Math.max(e.min,e.modelValue[0]),t.secondValue=Math.min(e.max,e.modelValue[1])):(t.firstValue=e.min,t.secondValue=e.max),t.oldValue=[t.firstValue,t.secondValue]):(!Ie(e.modelValue)||Number.isNaN(e.modelValue)?t.firstValue=e.min:t.firstValue=Math.min(e.max,Math.max(e.min,e.modelValue)),t.oldValue=t.firstValue),wt(window,"resize",n),await Oe(),n()}),{sliderWrapper:a}},VF=T({name:"ElSlider"}),LF=T({...VF,props:wF,emits:CF,setup(e,{expose:t,emit:n}){const a=e,l=de("slider"),{t:o}=ct(),s=_t({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:i,slider:u,firstButton:c,secondButton:d,sliderDisabled:f,minValue:h,maxValue:v,runwayStyle:m,barStyle:p,resetSize:y,emitChange:g,onSliderWrapperPrevent:M,onSliderClick:w,onSliderDown:b,onSliderMarkerDown:S,setFirstValue:E,setSecondValue:O}=NF(a,s,n),{stops:I,getStopStyle:N}=IF(a,s,h,v),{inputId:z,isLabeledByFormItem:P}=ea(a,{formItemContext:i}),L=jt(),F=C(()=>a.inputSize||L.value),U=C(()=>a.ariaLabel||o("el.slider.defaultLabel",{min:a.min,max:a.max})),H=C(()=>a.range?a.rangeStartLabel||o("el.slider.defaultRangeStartLabel"):U.value),R=C(()=>a.formatValueText?a.formatValueText(j.value):`${j.value}`),D=C(()=>a.rangeEndLabel||o("el.slider.defaultRangeEndLabel")),B=C(()=>a.formatValueText?a.formatValueText(ne.value):`${ne.value}`),V=C(()=>[l.b(),l.m(L.value),l.is("vertical",a.vertical),{[l.m("with-input")]:a.showInput}]),K=PF(a);zF(a,s,h,v,n,i);const W=C(()=>{const te=[a.min,a.max,a.step].map(ie=>{const fe=`${ie}`.split(".")[1];return fe?fe.length:0});return Math.max.apply(null,te)}),{sliderWrapper:Z}=AF(a,s,y),{firstValue:j,secondValue:ne,sliderSize:oe}=nn(s),ce=te=>{s.dragging=te};return wt(Z,"touchstart",M,{passive:!1}),wt(Z,"touchmove",M,{passive:!1}),it(wm,{...nn(a),sliderSize:oe,disabled:f,precision:W,emitChange:g,resetSize:y,updateDragging:ce}),t({onSliderClick:w}),(te,ie)=>{var fe,Me;return _(),x("div",{id:te.range?r(z):void 0,ref_key:"sliderWrapper",ref:Z,class:$(r(V)),role:te.range?"group":void 0,"aria-label":te.range&&!r(P)?r(U):void 0,"aria-labelledby":te.range&&r(P)?(fe=r(i))==null?void 0:fe.labelId:void 0},[k("div",{ref_key:"slider",ref:u,class:$([r(l).e("runway"),{"show-input":te.showInput&&!te.range},r(l).is("disabled",r(f))]),style:Ne(r(m)),onMousedown:r(b),onTouchstartPassive:r(b)},[k("div",{class:$(r(l).e("bar")),style:Ne(r(p))},null,6),q(q2,{id:te.range?void 0:r(z),ref_key:"firstButton",ref:c,"model-value":r(j),vertical:te.vertical,"tooltip-class":te.tooltipClass,placement:te.placement,role:"slider","aria-label":te.range||!r(P)?r(H):void 0,"aria-labelledby":!te.range&&r(P)?(Me=r(i))==null?void 0:Me.labelId:void 0,"aria-valuemin":te.min,"aria-valuemax":te.range?r(ne):te.max,"aria-valuenow":r(j),"aria-valuetext":r(R),"aria-orientation":te.vertical?"vertical":"horizontal","aria-disabled":r(f),"onUpdate:modelValue":r(E)},null,8,["id","model-value","vertical","tooltip-class","placement","aria-label","aria-labelledby","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"]),te.range?(_(),ae(q2,{key:0,ref_key:"secondButton",ref:d,"model-value":r(ne),vertical:te.vertical,"tooltip-class":te.tooltipClass,placement:te.placement,role:"slider","aria-label":r(D),"aria-valuemin":r(j),"aria-valuemax":te.max,"aria-valuenow":r(ne),"aria-valuetext":r(B),"aria-orientation":te.vertical?"vertical":"horizontal","aria-disabled":r(f),"onUpdate:modelValue":r(O)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):ee("v-if",!0),te.showStops?(_(),x("div",{key:1},[(_(!0),x(ze,null,rt(r(I),(me,le)=>(_(),x("div",{key:le,class:$(r(l).e("stop")),style:Ne(r(N)(me))},null,6))),128))])):ee("v-if",!0),r(K).length>0?(_(),x(ze,{key:2},[k("div",null,[(_(!0),x(ze,null,rt(r(K),(me,le)=>(_(),x("div",{key:le,style:Ne(r(N)(me.position)),class:$([r(l).e("stop"),r(l).e("marks-stop")])},null,6))),128))]),k("div",{class:$(r(l).e("marks"))},[(_(!0),x(ze,null,rt(r(K),(me,le)=>(_(),ae(r(OF),{key:le,mark:me.mark,style:Ne(r(N)(me.position)),onMousedown:Ae(we=>r(S)(me.position),["stop"])},null,8,["mark","style","onMousedown"]))),128))],2)],64)):ee("v-if",!0)],46,["onMousedown","onTouchstartPassive"]),te.showInput&&!te.range?(_(),ae(r(em),{key:0,ref:"input","model-value":r(j),class:$(r(l).e("input")),step:te.step,disabled:r(f),controls:te.showInputControls,min:te.min,max:te.max,precision:r(W),debounce:te.debounce,size:r(F),"onUpdate:modelValue":r(E),onChange:r(g)},null,8,["model-value","class","step","disabled","controls","min","max","precision","debounce","size","onUpdate:modelValue","onChange"])):ee("v-if",!0)],10,["id","role","aria-label","aria-labelledby"])}}});var RF=ve(LF,[["__file","slider.vue"]]);const BF=We(RF),HF=pe({prefixCls:{type:String}}),U2=T({name:"ElSpaceItem",props:HF,setup(e,{slots:t}){const n=de("space"),a=C(()=>`${e.prefixCls||n.b()}__item`);return()=>Pe("div",{class:a.value},Q(t,"default"))}}),Y2={small:8,default:12,large:16};function DF(e){const t=de("space"),n=C(()=>[t.b(),t.m(e.direction),e.class]),a=A(0),l=A(0),o=C(()=>{const i=e.wrap||e.fill?{flexWrap:"wrap"}:{},u={alignItems:e.alignment},c={rowGap:`${l.value}px`,columnGap:`${a.value}px`};return[i,u,c,e.style]}),s=C(()=>e.fill?{flexGrow:1,minWidth:`${e.fillRatio}%`}:{});return on(()=>{const{size:i="small",wrap:u,direction:c,fill:d}=e;if(Ee(i)){const[f=0,h=0]=i;a.value=f,l.value=h}else{let f;Ie(i)?f=i:f=Y2[i||"small"]||Y2.small,(u||d)&&c==="horizontal"?a.value=l.value=f:c==="horizontal"?(a.value=f,l.value=0):(l.value=f,a.value=0)}}),{classes:n,containerStyle:o,itemStyle:s}}const FF=pe({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:X([String,Object,Array]),default:""},style:{type:X([String,Array,Object]),default:""},alignment:{type:X(String),default:"center"},prefixCls:{type:String},spacer:{type:X([Object,String,Number,Array]),default:null,validator:e=>Ft(e)||Ie(e)||Ve(e)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:xa,validator:e=>Ie(e)||Ee(e)&&e.length===2&&e.every(Ie)}}),KF=T({name:"ElSpace",props:FF,setup(e,{slots:t}){const{classes:n,containerStyle:a,itemStyle:l}=DF(e);function o(s,i="",u=[]){const{prefixCls:c}=e;return s.forEach((d,f)=>{qu(d)?Ee(d.children)&&d.children.forEach((h,v)=>{qu(h)&&Ee(h.children)?o(h.children,`${i+v}-`,u):u.push(q(U2,{style:l.value,prefixCls:c,key:`nested-${i+v}`},{default:()=>[h]},Kn.PROPS|Kn.STYLE,["style","prefixCls"]))}):kI(d)&&u.push(q(U2,{style:l.value,prefixCls:c,key:`LoopKey${i+f}`},{default:()=>[d]},Kn.PROPS|Kn.STYLE,["style","prefixCls"]))}),u}return()=>{var s;const{spacer:i,direction:u}=e,c=Q(t,"default",{key:0},()=>[]);if(((s=c.children)!=null?s:[]).length===0)return null;if(Ee(c.children)){let d=o(c.children);if(i){const f=d.length-1;d=d.reduce((h,v,m)=>{const p=[...h,v];return m!==f&&p.push(q("span",{style:[l.value,u==="vertical"?"width: 100%":null],key:m},[Ft(i)?i:ot(i,Kn.TEXT)],Kn.STYLE)),p},[])}return q("div",{class:n.value,style:a.value},d,Kn.STYLE|Kn.CLASS)}return c.children}}}),WF=We(KF),jF=pe({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:X([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:X([String,Object,Array])}}),qF=T({name:"ElStatistic"}),UF=T({...qF,props:jF,setup(e,{expose:t}){const n=e,a=de("statistic"),l=C(()=>{const{value:o,formatter:s,precision:i,decimalSeparator:u,groupSeparator:c}=n;if(Qe(s))return s(o);if(!Ie(o)||Number.isNaN(o))return o;let[d,f=""]=String(o).split(".");return f=f.padEnd(i,"0").slice(0,i>0?i:0),d=d.replace(/\B(?=(\d{3})+(?!\d))/g,c),[d,f].join(f?u:"")});return t({displayValue:l}),(o,s)=>(_(),x("div",{class:$(r(a).b())},[o.$slots.title||o.title?(_(),x("div",{key:0,class:$(r(a).e("head"))},[Q(o.$slots,"title",{},()=>[ot(he(o.title),1)])],2)):ee("v-if",!0),k("div",{class:$(r(a).e("content"))},[o.$slots.prefix||o.prefix?(_(),x("div",{key:0,class:$(r(a).e("prefix"))},[Q(o.$slots,"prefix",{},()=>[k("span",null,he(o.prefix),1)])],2)):ee("v-if",!0),k("span",{class:$(r(a).e("number")),style:Ne(o.valueStyle)},he(r(l)),7),o.$slots.suffix||o.suffix?(_(),x("div",{key:1,class:$(r(a).e("suffix"))},[Q(o.$slots,"suffix",{},()=>[k("span",null,he(o.suffix),1)])],2)):ee("v-if",!0)],2)],2))}});var YF=ve(UF,[["__file","statistic.vue"]]);const Cm=We(YF),GF=pe({format:{type:String,default:"HH:mm:ss"},prefix:String,suffix:String,title:String,value:{type:X([Number,Object]),default:0},valueStyle:{type:X([String,Object,Array])}}),XF={finish:()=>!0,[Ct]:e=>Ie(e)},ZF=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]],G2=e=>Ie(e)?new Date(e).getTime():e.valueOf(),X2=(e,t)=>{let n=e;const a=/\[([^\]]*)]/g;return ZF.reduce((o,[s,i])=>{const u=new RegExp(`${s}+(?![^\\[\\]]*\\])`,"g");if(u.test(o)){const c=Math.floor(n/i);return n-=c*i,o.replace(u,d=>String(c).padStart(d.length,"0"))}return o},t).replace(a,"$1")},JF=T({name:"ElCountdown"}),QF=T({...JF,props:GF,emits:XF,setup(e,{expose:t,emit:n}){const a=e;let l;const o=A(0),s=C(()=>X2(o.value,a.format)),i=d=>X2(d,a.format),u=()=>{l&&(Pl(l),l=void 0)},c=()=>{const d=G2(a.value),f=()=>{let h=d-Date.now();n("change",h),h<=0?(h=0,u(),n("finish")):l=il(f),o.value=h};l=il(f)};return Ge(()=>{o.value=G2(a.value)-Date.now(),se(()=>[a.value,a.format],()=>{u(),c()},{immediate:!0})}),Tt(()=>{u()}),t({displayValue:s}),(d,f)=>(_(),ae(r(Cm),{value:o.value,title:d.title,prefix:d.prefix,suffix:d.suffix,"value-style":d.valueStyle,formatter:i},Yn({_:2},[rt(d.$slots,(h,v)=>({name:v,fn:G(()=>[Q(d.$slots,v)])}))]),1032,["value","title","prefix","suffix","value-style"]))}});var eK=ve(QF,[["__file","countdown.vue"]]);const tK=We(eK),nK=pe({space:{type:[Number,String],default:""},active:{type:Number,default:0},direction:{type:String,default:"horizontal",values:["horizontal","vertical"]},alignCenter:{type:Boolean},simple:{type:Boolean},finishStatus:{type:String,values:["wait","process","finish","error","success"],default:"finish"},processStatus:{type:String,values:["wait","process","finish","error","success"],default:"process"}}),aK={[Ct]:(e,t)=>[e,t].every(Ie)},lK=T({name:"ElSteps"}),oK=T({...lK,props:nK,emits:aK,setup(e,{emit:t}){const n=e,a=de("steps"),{children:l,addChild:o,removeChild:s}=Vd(Ze(),"ElStep");return se(l,()=>{l.value.forEach((i,u)=>{i.setIndex(u)})}),it("ElSteps",{props:n,steps:l,addStep:o,removeStep:s}),se(()=>n.active,(i,u)=>{t(Ct,i,u)}),(i,u)=>(_(),x("div",{class:$([r(a).b(),r(a).m(i.simple?"simple":i.direction)])},[Q(i.$slots,"default")],2))}});var rK=ve(oK,[["__file","steps.vue"]]);const sK=pe({title:{type:String,default:""},icon:{type:St},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}}),iK=T({name:"ElStep"}),uK=T({...iK,props:sK,setup(e){const t=e,n=de("step"),a=A(-1),l=A({}),o=A(""),s=Se("ElSteps"),i=Ze();Ge(()=>{se([()=>s.props.active,()=>s.props.processStatus,()=>s.props.finishStatus],([E])=>{b(E)},{immediate:!0})}),Tt(()=>{s.removeStep(S.uid)});const u=C(()=>t.status||o.value),c=C(()=>{const E=s.steps.value[a.value-1];return E?E.currentStatus:"wait"}),d=C(()=>s.props.alignCenter),f=C(()=>s.props.direction==="vertical"),h=C(()=>s.props.simple),v=C(()=>s.steps.value.length),m=C(()=>{var E;return((E=s.steps.value[v.value-1])==null?void 0:E.uid)===(i==null?void 0:i.uid)}),p=C(()=>h.value?"":s.props.space),y=C(()=>[n.b(),n.is(h.value?"simple":s.props.direction),n.is("flex",m.value&&!p.value&&!d.value),n.is("center",d.value&&!f.value&&!h.value)]),g=C(()=>{const E={flexBasis:Ie(p.value)?`${p.value}px`:p.value?p.value:`${100/(v.value-(d.value?0:1))}%`};return f.value||m.value&&(E.maxWidth=`${100/v.value}%`),E}),M=E=>{a.value=E},w=E=>{const O=E==="wait",I={transitionDelay:`${O?"-":""}${150*a.value}ms`},N=E===s.props.processStatus||O?0:100;I.borderWidth=N&&!h.value?"1px":0,I[s.props.direction==="vertical"?"height":"width"]=`${N}%`,l.value=I},b=E=>{E>a.value?o.value=s.props.finishStatus:E===a.value&&c.value!=="error"?o.value=s.props.processStatus:o.value="wait";const O=s.steps.value[a.value-1];O&&O.calcProgress(o.value)},S=_t({uid:i.uid,currentStatus:u,setIndex:M,calcProgress:w});return s.addStep(S),(E,O)=>(_(),x("div",{style:Ne(r(g)),class:$(r(y))},[ee(" icon & line "),k("div",{class:$([r(n).e("head"),r(n).is(r(u))])},[r(h)?ee("v-if",!0):(_(),x("div",{key:0,class:$(r(n).e("line"))},[k("i",{class:$(r(n).e("line-inner")),style:Ne(l.value)},null,6)],2)),k("div",{class:$([r(n).e("icon"),r(n).is(E.icon||E.$slots.icon?"icon":"text")])},[Q(E.$slots,"icon",{},()=>[E.icon?(_(),ae(r(xe),{key:0,class:$(r(n).e("icon-inner"))},{default:G(()=>[(_(),ae(et(E.icon)))]),_:1},8,["class"])):r(u)==="success"?(_(),ae(r(xe),{key:1,class:$([r(n).e("icon-inner"),r(n).is("status")])},{default:G(()=>[q(r(Vo))]),_:1},8,["class"])):r(u)==="error"?(_(),ae(r(xe),{key:2,class:$([r(n).e("icon-inner"),r(n).is("status")])},{default:G(()=>[q(r(Xn))]),_:1},8,["class"])):r(h)?ee("v-if",!0):(_(),x("div",{key:3,class:$(r(n).e("icon-inner"))},he(a.value+1),3))])],2)],2),ee(" title & description "),k("div",{class:$(r(n).e("main"))},[k("div",{class:$([r(n).e("title"),r(n).is(r(u))])},[Q(E.$slots,"title",{},()=>[ot(he(E.title),1)])],2),r(h)?(_(),x("div",{key:0,class:$(r(n).e("arrow"))},null,2)):(_(),x("div",{key:1,class:$([r(n).e("description"),r(n).is(r(u))])},[Q(E.$slots,"description",{},()=>[ot(he(E.description),1)])],2))],2)],6))}});var Sm=ve(uK,[["__file","item.vue"]]);const cK=We(rK,{Step:Sm}),dK=Lt(Sm),km=e=>["",...xa].includes(e),fK=pe({modelValue:{type:[Boolean,String,Number],default:!1},disabled:Boolean,loading:Boolean,size:{type:String,validator:km},width:{type:[String,Number],default:""},inlinePrompt:Boolean,inactiveActionIcon:{type:St},activeActionIcon:{type:St},activeIcon:{type:St},inactiveIcon:{type:St},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},beforeChange:{type:X(Function)},id:String,tabindex:{type:[String,Number]},...sn(["ariaLabel"])}),pK={[Ue]:e=>Et(e)||Ve(e)||Ie(e),[Ct]:e=>Et(e)||Ve(e)||Ie(e),[pn]:e=>Et(e)||Ve(e)||Ie(e)},Em="ElSwitch",vK=T({name:Em}),hK=T({...vK,props:fK,emits:pK,setup(e,{expose:t,emit:n}){const a=e,{formItem:l}=gn(),o=jt(),s=de("switch"),{inputId:i}=ea(a,{formItemContext:l}),u=yn(C(()=>a.loading)),c=A(a.modelValue!==!1),d=A(),f=A(),h=C(()=>[s.b(),s.m(o.value),s.is("disabled",u.value),s.is("checked",g.value)]),v=C(()=>[s.e("label"),s.em("label","left"),s.is("active",!g.value)]),m=C(()=>[s.e("label"),s.em("label","right"),s.is("active",g.value)]),p=C(()=>({width:Rt(a.width)}));se(()=>a.modelValue,()=>{c.value=!0});const y=C(()=>c.value?a.modelValue:!1),g=C(()=>y.value===a.activeValue);[a.activeValue,a.inactiveValue].includes(y.value)||(n(Ue,a.inactiveValue),n(Ct,a.inactiveValue),n(pn,a.inactiveValue)),se(g,S=>{var E;d.value.checked=S,a.validateEvent&&((E=l==null?void 0:l.validate)==null||E.call(l,"change").catch(O=>void 0))});const M=()=>{const S=g.value?a.inactiveValue:a.activeValue;n(Ue,S),n(Ct,S),n(pn,S),Oe(()=>{d.value.checked=g.value})},w=()=>{if(u.value)return;const{beforeChange:S}=a;if(!S){M();return}const E=S();[Tu(E),Et(E)].includes(!0)||Gt(Em,"beforeChange must return type `Promise` or `boolean`"),Tu(E)?E.then(I=>{I&&M()}).catch(I=>{}):E&&M()},b=()=>{var S,E;(E=(S=d.value)==null?void 0:S.focus)==null||E.call(S)};return Ge(()=>{d.value.checked=g.value}),t({focus:b,checked:g}),(S,E)=>(_(),x("div",{class:$(r(h)),onClick:Ae(w,["prevent"])},[k("input",{id:r(i),ref_key:"input",ref:d,class:$(r(s).e("input")),type:"checkbox",role:"switch","aria-checked":r(g),"aria-disabled":r(u),"aria-label":S.ariaLabel,name:S.name,"true-value":S.activeValue,"false-value":S.inactiveValue,disabled:r(u),tabindex:S.tabindex,onChange:M,onKeydown:kt(w,["enter"])},null,42,["id","aria-checked","aria-disabled","aria-label","name","true-value","false-value","disabled","tabindex","onKeydown"]),!S.inlinePrompt&&(S.inactiveIcon||S.inactiveText)?(_(),x("span",{key:0,class:$(r(v))},[S.inactiveIcon?(_(),ae(r(xe),{key:0},{default:G(()=>[(_(),ae(et(S.inactiveIcon)))]),_:1})):ee("v-if",!0),!S.inactiveIcon&&S.inactiveText?(_(),x("span",{key:1,"aria-hidden":r(g)},he(S.inactiveText),9,["aria-hidden"])):ee("v-if",!0)],2)):ee("v-if",!0),k("span",{ref_key:"core",ref:f,class:$(r(s).e("core")),style:Ne(r(p))},[S.inlinePrompt?(_(),x("div",{key:0,class:$(r(s).e("inner"))},[S.activeIcon||S.inactiveIcon?(_(),ae(r(xe),{key:0,class:$(r(s).is("icon"))},{default:G(()=>[(_(),ae(et(r(g)?S.activeIcon:S.inactiveIcon)))]),_:1},8,["class"])):S.activeText||S.inactiveText?(_(),x("span",{key:1,class:$(r(s).is("text")),"aria-hidden":!r(g)},he(r(g)?S.activeText:S.inactiveText),11,["aria-hidden"])):ee("v-if",!0)],2)):ee("v-if",!0),k("div",{class:$(r(s).e("action"))},[S.loading?(_(),ae(r(xe),{key:0,class:$(r(s).is("loading"))},{default:G(()=>[q(r(ca))]),_:1},8,["class"])):r(g)?Q(S.$slots,"active-action",{key:1},()=>[S.activeActionIcon?(_(),ae(r(xe),{key:0},{default:G(()=>[(_(),ae(et(S.activeActionIcon)))]),_:1})):ee("v-if",!0)]):r(g)?ee("v-if",!0):Q(S.$slots,"inactive-action",{key:2},()=>[S.inactiveActionIcon?(_(),ae(r(xe),{key:0},{default:G(()=>[(_(),ae(et(S.inactiveActionIcon)))]),_:1})):ee("v-if",!0)])],2)],6),!S.inlinePrompt&&(S.activeIcon||S.activeText)?(_(),x("span",{key:1,class:$(r(m))},[S.activeIcon?(_(),ae(r(xe),{key:0},{default:G(()=>[(_(),ae(et(S.activeIcon)))]),_:1})):ee("v-if",!0),!S.activeIcon&&S.activeText?(_(),x("span",{key:1,"aria-hidden":!r(g)},he(S.activeText),9,["aria-hidden"])):ee("v-if",!0)],2)):ee("v-if",!0)],10,["onClick"]))}});var mK=ve(hK,[["__file","switch.vue"]]);const gK=We(mK),yu=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},yK=function(e,t,n,a,l){if(!t&&!a&&(!l||Ee(l)&&!l.length))return e;Ve(n)?n=n==="descending"?-1:1:n=n&&n<0?-1:1;const o=a?null:function(i,u){return l?(Ee(l)||(l=[l]),l.map(c=>Ve(c)?Kt(i,c):c(i,u,e))):(t!=="$key"&&ht(i)&&"$value"in i&&(i=i.$value),[ht(i)?Kt(i,t):i])},s=function(i,u){if(a)return a(i.value,u.value);for(let c=0,d=i.key.length;cu.key[c])return 1}return 0};return e.map((i,u)=>({value:i,index:u,key:o?o(i,u):null})).sort((i,u)=>{let c=s(i,u);return c||(c=i.index-u.index),c*+n}).map(i=>i.value)},Mm=function(e,t){let n=null;return e.columns.forEach(a=>{a.id===t&&(n=a)}),n},_K=function(e,t){let n=null;for(let a=0;a{if(!e)throw new Error("Row is required when get row identity");if(Ve(t)){if(!t.includes("."))return`${e[t]}`;const n=t.split(".");let a=e;for(const l of n)a=a[l];return`${a}`}else if(Qe(t))return t.call(null,e)},or=function(e,t){const n={};return(e||[]).forEach((a,l)=>{n[Cn(a,t)]={row:a,index:l}}),n};function bK(e,t){const n={};let a;for(a in e)n[a]=e[a];for(a in t)if(hn(t,a)){const l=t[a];vt(l)||(n[a]=l)}return n}function uf(e){return e===""||vt(e)||(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function xm(e){return e===""||vt(e)||(e=uf(e),Number.isNaN(e)&&(e=80)),e}function wK(e){return Ie(e)?e:Ve(e)?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function CK(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...a)=>t(n(...a)))}function ai(e,t,n,a,l,o){let s=o??0,i=!1;const u=e.indexOf(t),c=u!==-1,d=l==null?void 0:l.call(null,t,o),f=v=>{v==="add"?e.push(t):e.splice(u,1),i=!0},h=v=>{let m=0;const p=(a==null?void 0:a.children)&&v[a.children];return p&&Ee(p)&&(m+=p.length,p.forEach(y=>{m+=h(y)})),m};return(!l||d)&&(Et(n)?n&&!c?f("add"):!n&&c&&f("remove"):f(c?"remove":"add")),!(a!=null&&a.checkStrictly)&&(a!=null&&a.children)&&Ee(t[a.children])&&t[a.children].forEach(v=>{ai(e,v,n??!c,a,l,s+1),s+=h(v)+1}),i}function SK(e,t,n="children",a="hasChildren"){const l=s=>!(Ee(s)&&s.length);function o(s,i,u){t(s,i,u),i.forEach(c=>{if(c[a]){t(c,null,u+1);return}const d=c[n];l(d)||o(c,d,u+1)})}e.forEach(s=>{if(s[a]){t(s,null,0);return}const i=s[n];l(i)||o(s,i,0)})}const J2=(e,t)=>({content:t,...e,popperOptions:{strategy:"fixed",...e.popperOptions}});let zn=null;function kK(e,t,n,a){if((zn==null?void 0:zn.trigger)===n){xv(zn.vm.component.props,J2(e,t));return}zn==null||zn();const l=a==null?void 0:a.refs.tableWrapper,o=l==null?void 0:l.dataset.prefix,s=q(mn,{virtualTriggering:!0,virtualRef:n,appendTo:l,placement:"top",transition:"none",offset:0,hideAfter:0,...J2(e,t)});s.appContext={...a.appContext,...a};const i=document.createElement("div");rl(s,i),s.component.exposed.onOpen();const u=l==null?void 0:l.querySelector(`.${o}-scrollbar__wrap`);zn=()=>{rl(null,i),u==null||u.removeEventListener("scroll",zn),zn=null},zn.trigger=n,zn.vm=s,u==null||u.addEventListener("scroll",zn)}function $m(e){return e.children?S_(e.children,$m):[e]}function Q2(e,t){return e+t.colSpan}const Tm=(e,t,n,a)=>{let l=0,o=e;const s=n.states.columns.value;if(a){const u=$m(a[e]);l=s.slice(0,s.indexOf(u[0])).reduce(Q2,0),o=l+u.reduce(Q2,0)-1}else l=e;let i;switch(t){case"left":o=s.length-n.states.rightFixedLeafColumnsLength.value&&(i="right");break;default:o=s.length-n.states.rightFixedLeafColumnsLength.value&&(i="right")}return i?{direction:i,start:l,after:o}:{}},cf=(e,t,n,a,l,o=0)=>{const s=[],{direction:i,start:u,after:c}=Tm(t,n,a,l);if(i){const d=i==="left";s.push(`${e}-fixed-column--${i}`),d&&c+o===a.states.fixedLeafColumnsLength.value-1?s.push("is-last-column"):!d&&u-o===a.states.columns.value.length-a.states.rightFixedLeafColumnsLength.value&&s.push("is-first-column")}return s};function ep(e,t){return e+(Pr(t.realWidth)||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const df=(e,t,n,a)=>{const{direction:l,start:o=0,after:s=0}=Tm(e,t,n,a);if(!l)return;const i={},u=l==="left",c=n.states.columns.value;return u?i.left=c.slice(0,o).reduce(ep,0):i.right=c.slice(s+1).reverse().reduce(ep,0),i},Co=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function EK(e){const t=Ze(),n=A(!1),a=A([]);return{updateExpandRows:()=>{const u=e.data.value||[],c=e.rowKey.value;if(n.value)a.value=u.slice();else if(c){const d=or(a.value,c);a.value=u.reduce((f,h)=>{const v=Cn(h,c);return d[v]&&f.push(h),f},[])}else a.value=[]},toggleRowExpansion:(u,c)=>{ai(a.value,u,c)&&t.emit("expand-change",u,a.value.slice())},setExpandRowKeys:u=>{t.store.assertRowKey();const c=e.data.value||[],d=e.rowKey.value,f=or(c,d);a.value=u.reduce((h,v)=>{const m=f[v];return m&&h.push(m.row),h},[])},isRowExpanded:u=>{const c=e.rowKey.value;return c?!!or(a.value,c)[Cn(u,c)]:a.value.includes(u)},states:{expandRows:a,defaultExpandAll:n}}}function MK(e){const t=Ze(),n=A(null),a=A(null),l=c=>{t.store.assertRowKey(),n.value=c,s(c)},o=()=>{n.value=null},s=c=>{const{data:d,rowKey:f}=e;let h=null;f.value&&(h=(r(d)||[]).find(v=>Cn(v,f.value)===c)),a.value=h,t.emit("current-change",a.value,null)};return{setCurrentRowKey:l,restoreCurrentRowKey:o,setCurrentRowByKey:s,updateCurrentRow:c=>{const d=a.value;if(c&&c!==d){a.value=c,t.emit("current-change",a.value,d);return}!c&&d&&(a.value=null,t.emit("current-change",null,d))},updateCurrentRowData:()=>{const c=e.rowKey.value,d=e.data.value||[],f=a.value;if(!d.includes(f)&&f){if(c){const h=Cn(f,c);s(h)}else a.value=null;Pr(a.value)&&t.emit("current-change",null,f)}else n.value&&(s(n.value),o())},states:{_currentRowKey:n,currentRow:a}}}function xK(e){const t=A([]),n=A({}),a=A(16),l=A(!1),o=A({}),s=A("hasChildren"),i=A("children"),u=A(!1),c=Ze(),d=C(()=>{if(!e.rowKey.value)return{};const w=e.data.value||[];return h(w)}),f=C(()=>{const w=e.rowKey.value,b=Object.keys(o.value),S={};return b.length&&b.forEach(E=>{if(o.value[E].length){const O={children:[]};o.value[E].forEach(I=>{const N=Cn(I,w);O.children.push(N),I[s.value]&&!S[N]&&(S[N]={children:[]})}),S[E]=O}}),S}),h=w=>{const b=e.rowKey.value,S={};return SK(w,(E,O,I)=>{const N=Cn(E,b);Ee(O)?S[N]={children:O.map(z=>Cn(z,b)),level:I}:l.value&&(S[N]={children:[],lazy:!0,level:I})},i.value,s.value),S},v=(w=!1,b=(S=>(S=c.store)==null?void 0:S.states.defaultExpandAll.value)())=>{var S;const E=d.value,O=f.value,I=Object.keys(E),N={};if(I.length){const z=r(n),P=[],L=(U,H)=>{if(w)return t.value?b||t.value.includes(H):!!(b||U!=null&&U.expanded);{const R=b||t.value&&t.value.includes(H);return!!(U!=null&&U.expanded||R)}};I.forEach(U=>{const H=z[U],R={...E[U]};if(R.expanded=L(H,U),R.lazy){const{loaded:D=!1,loading:B=!1}=H||{};R.loaded=!!D,R.loading=!!B,P.push(U)}N[U]=R});const F=Object.keys(O);l.value&&F.length&&P.length&&F.forEach(U=>{const H=z[U],R=O[U].children;if(P.includes(U)){if(N[U].children.length!==0)throw new Error("[ElTable]children must be an empty array.");N[U].children=R}else{const{loaded:D=!1,loading:B=!1}=H||{};N[U]={lazy:!0,loaded:!!D,loading:!!B,expanded:L(H,U),children:R,level:""}}})}n.value=N,(S=c.store)==null||S.updateTableScrollY()};se(()=>t.value,()=>{v(!0)}),se(()=>d.value,()=>{v()}),se(()=>f.value,()=>{v()});const m=w=>{t.value=w,v()},p=(w,b)=>{c.store.assertRowKey();const S=e.rowKey.value,E=Cn(w,S),O=E&&n.value[E];if(E&&O&&"expanded"in O){const I=O.expanded;b=vt(b)?!O.expanded:b,n.value[E].expanded=b,I!==b&&c.emit("expand-change",w,b),c.store.updateTableScrollY()}},y=w=>{c.store.assertRowKey();const b=e.rowKey.value,S=Cn(w,b),E=n.value[S];l.value&&E&&"loaded"in E&&!E.loaded?g(w,S,E):p(w,void 0)},g=(w,b,S)=>{const{load:E}=c.props;E&&!n.value[b].loaded&&(n.value[b].loading=!0,E(w,S,O=>{if(!Ee(O))throw new TypeError("[ElTable] data must be an array");n.value[b].loading=!1,n.value[b].loaded=!0,n.value[b].expanded=!0,O.length&&(o.value[b]=O),c.emit("expand-change",w,!0)}))};return{loadData:g,loadOrToggle:y,toggleTreeExpansion:p,updateTreeExpandKeys:m,updateTreeData:v,updateKeyChildren:(w,b)=>{const{lazy:S,rowKey:E}=c.props;if(S){if(!E)throw new Error("[Table] rowKey is required in updateKeyChild");o.value[w]&&(o.value[w]=b)}},normalize:h,states:{expandRowKeys:t,treeData:n,indent:a,lazy:l,lazyTreeNodeMap:o,lazyColumnIdentifier:s,childrenColumnName:i,checkStrictly:u}}}const $K=(e,t)=>{const n=t.sortingColumn;return!n||Ve(n.sortable)?e:yK(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy)},Ts=e=>{const t=[];return e.forEach(n=>{n.children&&n.children.length>0?t.push.apply(t,Ts(n.children)):t.push(n)}),t};function TK(){var e;const t=Ze(),{size:n}=nn((e=t.proxy)==null?void 0:e.$props),a=A(null),l=A([]),o=A([]),s=A(!1),i=A([]),u=A([]),c=A([]),d=A([]),f=A([]),h=A([]),v=A([]),m=A([]),p=[],y=A(0),g=A(0),M=A(0),w=A(!1),b=A([]),S=A(!1),E=A(!1),O=A(null),I=A({}),N=A(null),z=A(null),P=A(null),L=A(null),F=A(null),U=C(()=>a.value?or(b.value,a.value):void 0);se(l,()=>{var re;t.state&&(V(!1),t.props.tableLayout==="auto"&&((re=t.refs.tableHeaderRef)==null||re.updateFixedColumnStyle()))},{deep:!0});const H=()=>{if(!a.value)throw new Error("[ElTable] prop row-key is required")},R=re=>{var J;(J=re.children)==null||J.forEach(ue=>{ue.fixed=re.fixed,R(ue)})};let D;const B=()=>{i.value.forEach(ye=>{R(ye)}),d.value=i.value.filter(ye=>ye.fixed===!0||ye.fixed==="left"),f.value=i.value.filter(ye=>ye.fixed==="right"),vt(D)&&i.value[0]&&i.value[0].type==="selection"&&(D=!!i.value[0].fixed),d.value.length>0&&i.value[0]&&i.value[0].type==="selection"&&(i.value[0].fixed?d.value.some(Fe=>Fe.type!=="selection")?D=void 0:(i.value[0].fixed=D,D||d.value.shift()):(i.value[0].fixed=!0,d.value.unshift(i.value[0])));const re=i.value.filter(ye=>!ye.fixed);u.value=[].concat(d.value).concat(re).concat(f.value);const J=Ts(re),ue=Ts(d.value),Y=Ts(f.value);y.value=J.length,g.value=ue.length,M.value=Y.length,c.value=[].concat(ue).concat(J).concat(Y),s.value=d.value.length>0||f.value.length>0},V=(re,J=!1)=>{re&&B(),J?t.state.doLayout():t.state.debouncedUpdateLayout()},K=re=>U.value?!!U.value[Cn(re,a.value)]:b.value.includes(re),W=()=>{w.value=!1;const re=b.value;b.value=[],re.length&&t.emit("selection-change",[])},Z=()=>{let re;if(a.value){re=[];const J=or(l.value,a.value);for(const ue in U.value)hn(U.value,ue)&&!J[ue]&&re.push(U.value[ue].row)}else re=b.value.filter(J=>!l.value.includes(J));if(re.length){const J=b.value.filter(ue=>!re.includes(ue));b.value=J,t.emit("selection-change",J.slice())}},j=()=>(b.value||[]).slice(),ne=(re,J,ue=!0,Y=!1)=>{var ye,Fe,lt,Nt;const Ut={children:(Fe=(ye=t==null?void 0:t.store)==null?void 0:ye.states)==null?void 0:Fe.childrenColumnName.value,checkStrictly:(Nt=(lt=t==null?void 0:t.store)==null?void 0:lt.states)==null?void 0:Nt.checkStrictly.value};if(ai(b.value,re,J,Ut,Y?void 0:O.value)){const $t=(b.value||[]).slice();ue&&t.emit("select",$t,re),t.emit("selection-change",$t)}},oe=()=>{var re,J;const ue=E.value?!w.value:!(w.value||b.value.length);w.value=ue;let Y=!1,ye=0;const Fe=(J=(re=t==null?void 0:t.store)==null?void 0:re.states)==null?void 0:J.rowKey.value,{childrenColumnName:lt}=t.store.states,Nt={children:lt.value,checkStrictly:!1};l.value.forEach((Ut,Jt)=>{const $t=Jt+ye;ai(b.value,Ut,ue,Nt,O.value,$t)&&(Y=!0),ye+=ie(Cn(Ut,Fe))}),Y&&t.emit("selection-change",b.value?b.value.slice():[]),t.emit("select-all",(b.value||[]).slice())},ce=()=>{l.value.forEach(re=>{const J=Cn(re,a.value),ue=U.value[J];ue&&(b.value[ue.index]=re)})},te=()=>{var re;if(((re=l.value)==null?void 0:re.length)===0){w.value=!1;return}const{childrenColumnName:J}=t.store.states;let ue=0,Y=0;const ye=lt=>{var Nt;for(const Ut of lt){const Jt=O.value&&O.value.call(null,Ut,ue);if(K(Ut))Y++;else if(!O.value||Jt)return!1;if(ue++,(Nt=Ut[J.value])!=null&&Nt.length&&!ye(Ut[J.value]))return!1}return!0},Fe=ye(l.value||[]);w.value=Y===0?!1:Fe},ie=re=>{var J;if(!t||!t.store)return 0;const{treeData:ue}=t.store.states;let Y=0;const ye=(J=ue.value[re])==null?void 0:J.children;return ye&&(Y+=ye.length,ye.forEach(Fe=>{Y+=ie(Fe)})),Y},fe=(re,J)=>{Ee(re)||(re=[re]);const ue={};return re.forEach(Y=>{I.value[Y.id]=J,ue[Y.columnKey||Y.id]=J}),ue},Me=(re,J,ue)=>{z.value&&z.value!==re&&(z.value.order=null),z.value=re,P.value=J,L.value=ue},me=()=>{let re=r(o);Object.keys(I.value).forEach(J=>{const ue=I.value[J];if(!ue||ue.length===0)return;const Y=Mm({columns:c.value},J);Y&&Y.filterMethod&&(re=re.filter(ye=>ue.some(Fe=>Y.filterMethod.call(null,Fe,ye,Y))))}),N.value=re},le=()=>{l.value=$K(N.value,{sortingColumn:z.value,sortProp:P.value,sortOrder:L.value})},we=(re=void 0)=>{re&&re.filter||me(),le()},Le=re=>{const{tableHeaderRef:J}=t.refs;if(!J)return;const ue=Object.assign({},J.filterPanels),Y=Object.keys(ue);if(Y.length)if(Ve(re)&&(re=[re]),Ee(re)){const ye=re.map(Fe=>_K({columns:c.value},Fe));Y.forEach(Fe=>{const lt=ye.find(Nt=>Nt.id===Fe);lt&&(lt.filteredValue=[])}),t.store.commit("filterChange",{column:ye,values:[],silent:!0,multi:!0})}else Y.forEach(ye=>{const Fe=c.value.find(lt=>lt.id===ye);Fe&&(Fe.filteredValue=[])}),I.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},De=()=>{z.value&&(Me(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:Ye,toggleRowExpansion:$e,updateExpandRows:Te,states:ke,isRowExpanded:He}=EK({data:l,rowKey:a}),{updateTreeExpandKeys:Xe,toggleTreeExpansion:at,updateTreeData:nt,updateKeyChildren:be,loadOrToggle:je,states:ft}=xK({data:l,rowKey:a}),{updateCurrentRowData:Ot,updateCurrentRow:bt,setCurrentRowKey:Pt,states:gt}=MK({data:l,rowKey:a});return{assertRowKey:H,updateColumns:B,scheduleLayout:V,isSelected:K,clearSelection:W,cleanSelection:Z,getSelectionRows:j,toggleRowSelection:ne,_toggleAllSelection:oe,toggleAllSelection:null,updateSelectionByRowKey:ce,updateAllSelected:te,updateFilters:fe,updateCurrentRow:bt,updateSort:Me,execFilter:me,execSort:le,execQuery:we,clearFilter:Le,clearSort:De,toggleRowExpansion:$e,setExpandRowKeysAdapter:re=>{Ye(re),Xe(re)},setCurrentRowKey:Pt,toggleRowExpansionAdapter:(re,J)=>{c.value.some(({type:Y})=>Y==="expand")?$e(re,J):at(re,J)},isRowExpanded:He,updateExpandRows:Te,updateCurrentRowData:Ot,loadOrToggle:je,updateTreeData:nt,updateKeyChildren:be,states:{tableSize:n,rowKey:a,data:l,_data:o,isComplex:s,_columns:i,originColumns:u,columns:c,fixedColumns:d,rightFixedColumns:f,leafColumns:h,fixedLeafColumns:v,rightFixedLeafColumns:m,updateOrderFns:p,leafColumnsLength:y,fixedLeafColumnsLength:g,rightFixedLeafColumnsLength:M,isAllSelected:w,selection:b,reserveSelection:S,selectOnIndeterminate:E,selectable:O,filters:I,filteredData:N,sortingColumn:z,sortProp:P,sortOrder:L,hoverRow:F,...ke,...ft,...gt}}}function mc(e,t){return e.map(n=>{var a;return n.id===t.id?t:((a=n.children)!=null&&a.length&&(n.children=mc(n.children,t)),n)})}function gc(e){e.forEach(t=>{var n,a;t.no=(n=t.getColumnIndex)==null?void 0:n.call(t),(a=t.children)!=null&&a.length&&gc(t.children)}),e.sort((t,n)=>t.no-n.no)}function OK(){const e=Ze(),t=TK();return{ns:de("table"),...t,mutations:{setData(s,i){const u=r(s._data)!==i;s.data.value=i,s._data.value=i,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),r(s.reserveSelection)?(e.store.assertRowKey(),e.store.updateSelectionByRowKey()):u?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(s,i,u,c){const d=r(s._columns);let f=[];u?(u&&!u.children&&(u.children=[]),u.children.push(i),f=mc(d,u)):(d.push(i),f=d),gc(f),s._columns.value=f,s.updateOrderFns.push(c),i.type==="selection"&&(s.selectable.value=i.selectable,s.reserveSelection.value=i.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder(s,i){var u;((u=i.getColumnIndex)==null?void 0:u.call(i))!==i.no&&(gc(s._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(s,i,u,c){const d=r(s._columns)||[];if(u)u.children.splice(u.children.findIndex(h=>h.id===i.id),1),Oe(()=>{var h;((h=u.children)==null?void 0:h.length)===0&&delete u.children}),s._columns.value=mc(d,u);else{const h=d.indexOf(i);h>-1&&(d.splice(h,1),s._columns.value=d)}const f=s.updateOrderFns.indexOf(c);f>-1&&s.updateOrderFns.splice(f,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(s,i){const{prop:u,order:c,init:d}=i;if(u){const f=r(s.columns).find(h=>h.property===u);f&&(f.order=c,e.store.updateSort(f,u,c),e.store.commit("changeSortCondition",{init:d}))}},changeSortCondition(s,i){const{sortingColumn:u,sortProp:c,sortOrder:d}=s,f=r(u),h=r(c),v=r(d);Pr(v)&&(s.sortingColumn.value=null,s.sortProp.value=null);const m={filter:!0};e.store.execQuery(m),(!i||!(i.silent||i.init))&&e.emit("sort-change",{column:f,prop:h,order:v}),e.store.updateTableScrollY()},filterChange(s,i){const{column:u,values:c,silent:d}=i,f=e.store.updateFilters(u,c);e.store.execQuery(),d||e.emit("filter-change",f),e.store.updateTableScrollY()},toggleAllSelection(){e.store.toggleAllSelection()},rowSelectedChanged(s,i){e.store.toggleRowSelection(i),e.store.updateAllSelected()},setHoverRow(s,i){s.hoverRow.value=i},setCurrentRow(s,i){e.store.updateCurrentRow(i)}},commit:function(s,...i){const u=e.store.mutations;if(u[s])u[s].apply(e,[e.store.states].concat(i));else throw new Error(`Action not found: ${s}`)},updateTableScrollY:function(){Oe(()=>e.layout.updateScrollY.apply(e.layout))}}}const rr={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",data:"data","treeProps.hasChildren":{key:"lazyColumnIdentifier",default:"hasChildren"},"treeProps.children":{key:"childrenColumnName",default:"children"},"treeProps.checkStrictly":{key:"checkStrictly",default:!1}};function NK(e,t){if(!e)throw new Error("Table is required.");const n=OK();return n.toggleAllSelection=Rn(n._toggleAllSelection,10),Object.keys(rr).forEach(a=>{Om(Nm(t,a),a,n)}),IK(n,t),n}function IK(e,t){Object.keys(rr).forEach(n=>{se(()=>Nm(t,n),a=>{Om(a,n,e)})})}function Om(e,t,n){let a=e,l=rr[t];ht(rr[t])&&(l=l.key,a=a||rr[t].default),n.states[l].value=a}function Nm(e,t){if(t.includes(".")){const n=t.split(".");let a=e;return n.forEach(l=>{a=a[l]}),a}else return e[t]}class PK{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=A(null),this.scrollX=A(!1),this.scrollY=A(!1),this.bodyWidth=A(null),this.fixedWidth=A(null),this.rightFixedWidth=A(null),this.gutterWidth=0;for(const n in t)hn(t,n)&&(dn(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(){const t=this.height.value;if(Pr(t))return!1;const n=this.table.refs.scrollBarRef;if(this.table.vnode.el&&(n!=null&&n.wrapRef)){let a=!0;const l=this.scrollY.value;return a=n.wrapRef.scrollHeight>n.wrapRef.clientHeight,this.scrollY.value=a,l!==a}return!1}setHeight(t,n="height"){if(!ut)return;const a=this.table.vnode.el;if(t=wK(t),this.height.value=Number(t),!a&&(t||t===0))return Oe(()=>this.setHeight(t,n));Ie(t)?(a.style[n]=`${t}px`,this.updateElsHeight()):Ve(t)&&(a.style[n]=t,this.updateElsHeight())}setMaxHeight(t){this.setHeight(t,"max-height")}getFlattenColumns(){const t=[];return this.table.store.states.columns.value.forEach(a=>{a.isColumnGroup?t.push.apply(t,a.columns):t.push(a)}),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(!ut)return;const t=this.fit,n=this.table.vnode.el.clientWidth;let a=0;const l=this.getFlattenColumns(),o=l.filter(u=>!Ie(u.width));if(l.forEach(u=>{Ie(u.width)&&u.realWidth&&(u.realWidth=null)}),o.length>0&&t){if(l.forEach(u=>{a+=Number(u.width||u.minWidth||80)}),a<=n){this.scrollX.value=!1;const u=n-a;if(o.length===1)o[0].realWidth=Number(o[0].minWidth||80)+u;else{const c=o.reduce((h,v)=>h+Number(v.minWidth||80),0),d=u/c;let f=0;o.forEach((h,v)=>{if(v===0)return;const m=Math.floor(Number(h.minWidth||80)*d);f+=m,h.realWidth=Number(h.minWidth||80)+m}),o[0].realWidth=Number(o[0].minWidth||80)+u-f}}else this.scrollX.value=!0,o.forEach(u=>{u.realWidth=Number(u.minWidth)});this.bodyWidth.value=Math.max(a,n),this.table.state.resizeState.value.width=this.bodyWidth.value}else l.forEach(u=>{!u.width&&!u.minWidth?u.realWidth=80:u.realWidth=Number(u.width||u.minWidth),a+=u.realWidth}),this.scrollX.value=a>n,this.bodyWidth.value=a;const s=this.store.states.fixedColumns.value;if(s.length>0){let u=0;s.forEach(c=>{u+=Number(c.realWidth||c.width)}),this.fixedWidth.value=u}const i=this.store.states.rightFixedColumns.value;if(i.length>0){let u=0;i.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(a=>{var l,o;switch(t){case"columns":(l=a.state)==null||l.onColumnsChange(this);break;case"scrollable":(o=a.state)==null||o.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}const{CheckboxGroup:zK}=Qn,AK=T({name:"ElTableFilterPanel",components:{ElCheckbox:Qn,ElCheckboxGroup:zK,ElScrollbar:Oa,ElTooltip:mn,ElIcon:xe,ArrowDown:$a,ArrowUp:ki},directives:{ClickOutside:Ka},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function},appendTo:{type:String}},setup(e){const t=Ze(),{t:n}=ct(),a=de("table-filter"),l=t==null?void 0:t.parent;l.filterPanels.value[e.column.id]||(l.filterPanels.value[e.column.id]=t);const o=A(!1),s=A(null),i=C(()=>e.column&&e.column.filters),u=C(()=>e.column.filterClassName?`${a.b()} ${e.column.filterClassName}`:a.b()),c=C({get:()=>{var S;return(((S=e.column)==null?void 0:S.filteredValue)||[])[0]},set:S=>{d.value&&(ua(S)?d.value.splice(0,1):d.value.splice(0,1,S))}}),d=C({get(){return e.column?e.column.filteredValue||[]:[]},set(S){e.column&&e.upDataColumn("filteredValue",S)}}),f=C(()=>e.column?e.column.filterMultiple:!0),h=S=>S.value===c.value,v=()=>{o.value=!1},m=S=>{S.stopPropagation(),o.value=!o.value},p=()=>{o.value=!1},y=()=>{w(d.value),v()},g=()=>{d.value=[],w(d.value),v()},M=S=>{c.value=S,ua(S)?w([]):w(d.value),v()},w=S=>{e.store.commit("filterChange",{column:e.column,values:S}),e.store.updateAllSelected()};se(o,S=>{e.column&&e.upDataColumn("filterOpened",S)},{immediate:!0});const b=C(()=>{var S,E;return(E=(S=s.value)==null?void 0:S.popperRef)==null?void 0:E.contentRef});return{tooltipVisible:o,multiple:f,filterClassName:u,filteredValue:d,filterValue:c,filters:i,handleConfirm:y,handleReset:g,handleSelect:M,isPropAbsent:ua,isActive:h,t:n,ns:a,showFilterPanel:m,hideFilterPanel:p,popperPaneRef:b,tooltip:s}}});function VK(e,t,n,a,l,o){const s=Je("el-checkbox"),i=Je("el-checkbox-group"),u=Je("el-scrollbar"),c=Je("arrow-up"),d=Je("arrow-down"),f=Je("el-icon"),h=Je("el-tooltip"),v=fi("click-outside");return _(),ae(h,{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.filterClassName,persistent:"","append-to":e.appendTo},{content:G(()=>[e.multiple?(_(),x("div",{key:0},[k("div",{class:$(e.ns.e("content"))},[q(u,{"wrap-class":e.ns.e("wrap")},{default:G(()=>[q(i,{modelValue:e.filteredValue,"onUpdate:modelValue":m=>e.filteredValue=m,class:$(e.ns.e("checkbox-group"))},{default:G(()=>[(_(!0),x(ze,null,rt(e.filters,m=>(_(),ae(s,{key:m.value,value:m.value},{default:G(()=>[ot(he(m.text),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","onUpdate:modelValue","class"])]),_:1},8,["wrap-class"])],2),k("div",{class:$(e.ns.e("bottom"))},[k("button",{class:$({[e.ns.is("disabled")]:e.filteredValue.length===0}),disabled:e.filteredValue.length===0,type:"button",onClick:e.handleConfirm},he(e.t("el.table.confirmFilter")),11,["disabled","onClick"]),k("button",{type:"button",onClick:e.handleReset},he(e.t("el.table.resetFilter")),9,["onClick"])],2)])):(_(),x("ul",{key:1,class:$(e.ns.e("list"))},[k("li",{class:$([e.ns.e("list-item"),{[e.ns.is("active")]:e.isPropAbsent(e.filterValue)}]),onClick:m=>e.handleSelect(null)},he(e.t("el.table.clearFilter")),11,["onClick"]),(_(!0),x(ze,null,rt(e.filters,m=>(_(),x("li",{key:m.value,class:$([e.ns.e("list-item"),e.ns.is("active",e.isActive(m))]),label:m.value,onClick:p=>e.handleSelect(m.value)},he(m.text),11,["label","onClick"]))),128))],2))]),default:G(()=>[qe((_(),x("span",{class:$([`${e.ns.namespace.value}-table__column-filter-trigger`,`${e.ns.namespace.value}-none-outline`]),onClick:e.showFilterPanel},[q(f,null,{default:G(()=>[Q(e.$slots,"filter-icon",{},()=>[e.column.filterOpened?(_(),ae(c,{key:0})):(_(),ae(d,{key:1}))])]),_:3})],10,["onClick"])),[[v,e.hideFilterPanel,e.popperPaneRef]])]),_:3},8,["visible","placement","popper-class","append-to"])}var LK=ve(AK,[["render",VK],["__file","filter-panel.vue"]]);function Im(e){const t=Ze();qc(()=>{n.value.addObserver(t)}),Ge(()=>{a(n.value),l(n.value)}),ja(()=>{a(n.value),l(n.value)}),To(()=>{n.value.removeObserver(t)});const n=C(()=>{const o=e.layout;if(!o)throw new Error("Can not find table layout.");return o}),a=o=>{var s;const i=((s=e.vnode.el)==null?void 0:s.querySelectorAll("colgroup > col"))||[];if(!i.length)return;const u=o.getFlattenColumns(),c={};u.forEach(d=>{c[d.id]=d});for(let d=0,f=i.length;d{var s,i;const u=((s=e.vnode.el)==null?void 0:s.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let d=0,f=u.length;d{p.stopPropagation()},o=(p,y)=>{!y.filters&&y.sortable?m(p,y,!1):y.filterable&&!y.sortable&&l(p),a==null||a.emit("header-click",y,p)},s=(p,y)=>{a==null||a.emit("header-contextmenu",y,p)},i=A(null),u=A(!1),c=A({}),d=(p,y)=>{if(ut&&!(y.children&&y.children.length>0)&&i.value&&e.border){u.value=!0;const g=a;t("set-drag-visible",!0);const w=(g==null?void 0:g.vnode.el).getBoundingClientRect().left,b=n.vnode.el.querySelector(`th.${y.id}`),S=b.getBoundingClientRect(),E=S.left-w+30;jn(b,"noclick"),c.value={startMouseLeft:p.clientX,startLeft:S.right-w,startColumnLeft:S.left-w,tableLeft:w};const O=g==null?void 0:g.refs.resizeProxy;O.style.left=`${c.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const I=z=>{const P=z.clientX-c.value.startMouseLeft,L=c.value.startLeft+P;O.style.left=`${Math.max(E,L)}px`},N=()=>{if(u.value){const{startColumnLeft:z,startLeft:P}=c.value,F=Number.parseInt(O.style.left,10)-z;y.width=y.realWidth=F,g==null||g.emit("header-dragend",y.width,P-z,y,p),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",u.value=!1,i.value=null,c.value={},t("set-drag-visible",!1)}document.removeEventListener("mousemove",I),document.removeEventListener("mouseup",N),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{kn(b,"noclick")},0)};document.addEventListener("mousemove",I),document.addEventListener("mouseup",N)}},f=(p,y)=>{var g;if(y.children&&y.children.length>0)return;const M=p.target;if(!Tn(M))return;const w=M==null?void 0:M.closest("th");if(!(!y||!y.resizable||!w)&&!u.value&&e.border){const b=w.getBoundingClientRect(),S=document.body.style,E=((g=w.parentNode)==null?void 0:g.lastElementChild)===w,O=e.allowDragLastColumn||!E;b.width>12&&b.right-p.pageX<8&&O?(S.cursor="col-resize",An(w,"is-sortable")&&(w.style.cursor="col-resize"),i.value=y):u.value||(S.cursor="",An(w,"is-sortable")&&(w.style.cursor="pointer"),i.value=null)}},h=()=>{ut&&(document.body.style.cursor="")},v=({order:p,sortOrders:y})=>{if(p==="")return y[0];const g=y.indexOf(p||null);return y[g>y.length-2?0:g+1]},m=(p,y,g)=>{var M;p.stopPropagation();const w=y.order===g?null:g||v(y),b=(M=p.target)==null?void 0:M.closest("th");if(b&&An(b,"noclick")){kn(b,"noclick");return}if(!y.sortable)return;const S=p.currentTarget;if(["ascending","descending"].some(z=>An(S,z)&&!y.sortOrders.includes(z)))return;const E=e.store.states;let O=E.sortProp.value,I;const N=E.sortingColumn.value;(N!==y||N===y&&Pr(N.order))&&(N&&(N.order=null),E.sortingColumn.value=y,O=y.property),w?I=y.order=w:I=y.order=null,E.sortProp.value=O,E.sortOrder.value=I,a==null||a.store.commit("changeSortCondition")};return{handleHeaderClick:o,handleHeaderContextMenu:s,handleMouseDown:d,handleMouseMove:f,handleMouseOut:h,handleSortClick:m,handleFilterClick:l}}function BK(e){const t=Se(Na),n=de("table");return{getHeaderRowStyle:i=>{const u=t==null?void 0:t.props.headerRowStyle;return Qe(u)?u.call(null,{rowIndex:i}):u},getHeaderRowClass:i=>{const u=[],c=t==null?void 0:t.props.headerRowClassName;return Ve(c)?u.push(c):Qe(c)&&u.push(c.call(null,{rowIndex:i})),u.join(" ")},getHeaderCellStyle:(i,u,c,d)=>{var f;let h=(f=t==null?void 0:t.props.headerCellStyle)!=null?f:{};Qe(h)&&(h=h.call(null,{rowIndex:i,columnIndex:u,row:c,column:d}));const v=df(u,d.fixed,e.store,c);return Co(v,"left"),Co(v,"right"),Object.assign({},h,v)},getHeaderCellClass:(i,u,c,d)=>{const f=cf(n.b(),u,d.fixed,e.store,c),h=[d.id,d.order,d.headerAlign,d.className,d.labelClassName,...f];d.children||h.push("is-leaf"),d.sortable&&h.push("is-sortable");const v=t==null?void 0:t.props.headerCellClassName;return Ve(v)?h.push(v):Qe(v)&&h.push(v.call(null,{rowIndex:i,columnIndex:u,row:c,column:d})),h.push(n.e("cell")),h.filter(m=>!!m).join(" ")}}}const Pm=e=>{const t=[];return e.forEach(n=>{n.children?(t.push(n),t.push.apply(t,Pm(n.children))):t.push(n)}),t},zm=e=>{let t=1;const n=(o,s)=>{if(s&&(o.level=s.level+1,t{n(u,o),i+=u.colSpan}),o.colSpan=i}else o.colSpan=1};e.forEach(o=>{o.level=1,n(o,void 0)});const a=[];for(let o=0;o{o.children?(o.rowSpan=1,o.children.forEach(s=>s.isSubColumn=!0)):o.rowSpan=t-o.level+1,a[o.level-1].push(o)}),a};function HK(e){const t=Se(Na),n=C(()=>zm(e.store.states.originColumns.value));return{isGroup:C(()=>{const o=n.value.length>1;return o&&t&&(t.state.isGroup.value=!0),o}),toggleAllSelection:o=>{o.stopPropagation(),t==null||t.store.commit("toggleAllSelection")},columnRows:n}}var DK=T({name:"ElTableHeader",components:{ElCheckbox:Qn},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})},appendFilterPanelTo:{type:String},allowDragLastColumn:{type:Boolean}},setup(e,{emit:t}){const n=Ze(),a=Se(Na),l=de("table"),o=A({}),{onColumnsChange:s,onScrollableChange:i}=Im(a),u=(a==null?void 0:a.props.tableLayout)==="auto",c=_t(new Map),d=A(),f=()=>{setTimeout(()=>{c.size>0&&(c.forEach((z,P)=>{const L=d.value.querySelector(`.${P.replace(/\s/g,".")}`);if(L){const F=L.getBoundingClientRect().width;z.width=F}}),c.clear())})};se(c,f),Ge(async()=>{await Oe(),await Oe();const{prop:z,order:P}=e.defaultSort;a==null||a.store.commit("sort",{prop:z,order:P,init:!0}),f()});const{handleHeaderClick:h,handleHeaderContextMenu:v,handleMouseDown:m,handleMouseMove:p,handleMouseOut:y,handleSortClick:g,handleFilterClick:M}=RK(e,t),{getHeaderRowStyle:w,getHeaderRowClass:b,getHeaderCellStyle:S,getHeaderCellClass:E}=BK(e),{isGroup:O,toggleAllSelection:I,columnRows:N}=HK(e);return n.state={onColumnsChange:s,onScrollableChange:i},n.filterPanels=o,{ns:l,filterPanels:o,onColumnsChange:s,onScrollableChange:i,columnRows:N,getHeaderRowClass:b,getHeaderRowStyle:w,getHeaderCellClass:E,getHeaderCellStyle:S,handleHeaderClick:h,handleHeaderContextMenu:v,handleMouseDown:m,handleMouseMove:p,handleMouseOut:y,handleSortClick:g,handleFilterClick:M,isGroup:O,toggleAllSelection:I,saveIndexSelection:c,isTableLayoutAuto:u,theadRef:d,updateFixedColumnStyle:f}},render(){const{ns:e,isGroup:t,columnRows:n,getHeaderCellStyle:a,getHeaderCellClass:l,getHeaderRowClass:o,getHeaderRowStyle:s,handleHeaderClick:i,handleHeaderContextMenu:u,handleMouseDown:c,handleMouseMove:d,handleSortClick:f,handleMouseOut:h,store:v,$parent:m,saveIndexSelection:p,isTableLayoutAuto:y}=this;let g=1;return Pe("thead",{ref:"theadRef",class:{[e.is("group")]:t}},n.map((M,w)=>Pe("tr",{class:o(w),key:w,style:s(w)},M.map((b,S)=>{b.rowSpan>g&&(g=b.rowSpan);const E=l(w,S,M,b);return y&&b.fixed&&p.set(E,b),Pe("th",{class:E,colspan:b.colSpan,key:`${b.id}-thead`,rowspan:b.rowSpan,style:a(w,S,M,b),onClick:O=>{O.currentTarget.classList.contains("noclick")||i(O,b)},onContextmenu:O=>u(O,b),onMousedown:O=>c(O,b),onMousemove:O=>d(O,b),onMouseout:h},[Pe("div",{class:["cell",b.filteredValue&&b.filteredValue.length>0?"highlight":""]},[b.renderHeader?b.renderHeader({column:b,$index:S,store:v,_self:m}):b.label,b.sortable&&Pe("span",{onClick:O=>f(O,b),class:"caret-wrapper"},[Pe("i",{onClick:O=>f(O,b,"ascending"),class:"sort-caret ascending"}),Pe("i",{onClick:O=>f(O,b,"descending"),class:"sort-caret descending"})]),b.filterable&&Pe(LK,{store:v,placement:b.filterPlacement||"bottom-start",appendTo:m.appendFilterPanelTo,column:b,upDataColumn:(O,I)=>{b[O]=I}},{"filter-icon":()=>b.renderFilterIcon?b.renderFilterIcon({filterOpened:b.filterOpened}):null})])])}))))}});function _u(e,t,n=.03){return e-t>n}function FK(e){const t=Se(Na),n=A(""),a=A(Pe("div")),l=(m,p,y)=>{var g;const M=t,w=yu(m);let b;const S=(g=M==null?void 0:M.vnode.el)==null?void 0:g.dataset.prefix;w&&(b=Z2({columns:e.store.states.columns.value},w,S),b&&(M==null||M.emit(`cell-${y}`,p,b,w,m))),M==null||M.emit(`row-${y}`,p,b,m)},o=(m,p)=>{l(m,p,"dblclick")},s=(m,p)=>{e.store.commit("setCurrentRow",p),l(m,p,"click")},i=(m,p)=>{l(m,p,"contextmenu")},u=Rn(m=>{e.store.commit("setHoverRow",m)},30),c=Rn(()=>{e.store.commit("setHoverRow",null)},30),d=m=>{const p=window.getComputedStyle(m,null),y=Number.parseInt(p.paddingLeft,10)||0,g=Number.parseInt(p.paddingRight,10)||0,M=Number.parseInt(p.paddingTop,10)||0,w=Number.parseInt(p.paddingBottom,10)||0;return{left:y,right:g,top:M,bottom:w}},f=(m,p,y)=>{let g=p.target.parentNode;for(;m>1&&(g=g==null?void 0:g.nextSibling,!(!g||g.nodeName!=="TR"));)y(g,"hover-row hover-fixed-row"),m--};return{handleDoubleClick:o,handleClick:s,handleContextMenu:i,handleMouseEnter:u,handleMouseLeave:c,handleCellMouseEnter:(m,p,y)=>{var g,M,w;const b=t,S=yu(m),E=(g=b==null?void 0:b.vnode.el)==null?void 0:g.dataset.prefix;if(S){const V=Z2({columns:e.store.states.columns.value},S,E);S.rowSpan>1&&f(S.rowSpan,m,jn);const K=b.hoverState={cell:S,column:V,row:p};b==null||b.emit("cell-mouse-enter",K.row,K.column,K.cell,m)}if(!y)return;const O=m.target.querySelector(".cell");if(!(An(O,`${E}-tooltip`)&&O.childNodes.length))return;const I=document.createRange();I.setStart(O,0),I.setEnd(O,O.childNodes.length);const{width:N,height:z}=I.getBoundingClientRect(),{width:P,height:L}=O.getBoundingClientRect(),{top:F,left:U,right:H,bottom:R}=d(O),D=U+H,B=F+R;_u(N+D,P)||_u(z+B,L)||_u(O.scrollWidth,P)?kK(y,S.innerText||S.textContent,S,b):((M=zn)==null?void 0:M.trigger)===S&&((w=zn)==null||w())},handleCellMouseLeave:m=>{const p=yu(m);if(!p)return;p.rowSpan>1&&f(p.rowSpan,m,kn);const y=t==null?void 0:t.hoverState;t==null||t.emit("cell-mouse-leave",y==null?void 0:y.row,y==null?void 0:y.column,y==null?void 0:y.cell,m)},tooltipContent:n,tooltipTrigger:a}}function KK(e){const t=Se(Na),n=de("table");return{getRowStyle:(c,d)=>{const f=t==null?void 0:t.props.rowStyle;return Qe(f)?f.call(null,{row:c,rowIndex:d}):f||null},getRowClass:(c,d)=>{const f=[n.e("row")];t!=null&&t.props.highlightCurrentRow&&c===e.store.states.currentRow.value&&f.push("current-row"),e.stripe&&d%2===1&&f.push(n.em("row","striped"));const h=t==null?void 0:t.props.rowClassName;return Ve(h)?f.push(h):Qe(h)&&f.push(h.call(null,{row:c,rowIndex:d})),f},getCellStyle:(c,d,f,h)=>{const v=t==null?void 0:t.props.cellStyle;let m=v??{};Qe(v)&&(m=v.call(null,{rowIndex:c,columnIndex:d,row:f,column:h}));const p=df(d,e==null?void 0:e.fixed,e.store);return Co(p,"left"),Co(p,"right"),Object.assign({},m,p)},getCellClass:(c,d,f,h,v)=>{const m=cf(n.b(),d,e==null?void 0:e.fixed,e.store,void 0,v),p=[h.id,h.align,h.className,...m],y=t==null?void 0:t.props.cellClassName;return Ve(y)?p.push(y):Qe(y)&&p.push(y.call(null,{rowIndex:c,columnIndex:d,row:f,column:h})),p.push(n.e("cell")),p.filter(g=>!!g).join(" ")},getSpan:(c,d,f,h)=>{let v=1,m=1;const p=t==null?void 0:t.props.spanMethod;if(Qe(p)){const y=p({row:c,column:d,rowIndex:f,columnIndex:h});Ee(y)?(v=y[0],m=y[1]):ht(y)&&(v=y.rowspan,m=y.colspan)}return{rowspan:v,colspan:m}},getColspanRealWidth:(c,d,f)=>{if(d<1)return c[f].realWidth;const h=c.map(({realWidth:v,width:m})=>v||m).slice(f,f+d);return Number(h.reduce((v,m)=>Number(v)+Number(m),-1))}}}const WK=T({name:"TableTdWrapper"}),jK=T({...WK,props:{colspan:{type:Number,default:1},rowspan:{type:Number,default:1}},setup(e){return(t,n)=>(_(),x("td",{colspan:e.colspan,rowspan:e.rowspan},[Q(t.$slots,"default")],8,["colspan","rowspan"]))}});var qK=ve(jK,[["__file","td-wrapper.vue"]]);function UK(e){const t=Se(Na),n=de("table"),{handleDoubleClick:a,handleClick:l,handleContextMenu:o,handleMouseEnter:s,handleMouseLeave:i,handleCellMouseEnter:u,handleCellMouseLeave:c,tooltipContent:d,tooltipTrigger:f}=FK(e),{getRowStyle:h,getRowClass:v,getCellStyle:m,getCellClass:p,getSpan:y,getColspanRealWidth:g}=KK(e),M=C(()=>e.store.states.columns.value.findIndex(({type:O})=>O==="default")),w=(O,I)=>{const N=t.props.rowKey;return N?Cn(O,N):I},b=(O,I,N,z=!1)=>{const{tooltipEffect:P,tooltipOptions:L,store:F}=e,{indent:U,columns:H}=F.states,R=v(O,I);let D=!0;return N&&(R.push(n.em("row",`level-${N.level}`)),D=N.display),Pe("tr",{style:[D?null:{display:"none"},h(O,I)],class:R,key:w(O,I),onDblclick:V=>a(V,O),onClick:V=>l(V,O),onContextmenu:V=>o(V,O),onMouseenter:()=>s(I),onMouseleave:i},H.value.map((V,K)=>{const{rowspan:W,colspan:Z}=y(O,V,I,K);if(!W||!Z)return null;const j=Object.assign({},V);j.realWidth=g(H.value,Z,K);const ne={store:e.store,_self:e.context||t,column:j,row:O,$index:I,cellIndex:K,expanded:z};K===M.value&&N&&(ne.treeNode={indent:N.level*U.value,level:N.level},Et(N.expanded)&&(ne.treeNode.expanded=N.expanded,"loading"in N&&(ne.treeNode.loading=N.loading),"noLazyChildren"in N&&(ne.treeNode.noLazyChildren=N.noLazyChildren)));const oe=`${w(O,I)},${K}`,ce=j.columnKey||j.rawColumnKey||"",te=V.showOverflowTooltip&&xv({effect:P},L,V.showOverflowTooltip);return Pe(qK,{style:m(I,K,O,V),class:p(I,K,O,V,Z-1),key:`${ce}${oe}`,rowspan:W,colspan:Z,onMouseenter:ie=>u(ie,O,te),onMouseleave:c},{default:()=>S(K,V,ne)})}))},S=(O,I,N)=>I.renderCell(N);return{wrappedRowRender:(O,I)=>{const N=e.store,{isRowExpanded:z,assertRowKey:P}=N,{treeData:L,lazyTreeNodeMap:F,childrenColumnName:U,rowKey:H}=N.states,R=N.states.columns.value;if(R.some(({type:B})=>B==="expand")){const B=z(O),V=b(O,I,void 0,B),K=t.renderExpanded;return B?K?[[V,Pe("tr",{key:`expanded-row__${V.key}`},[Pe("td",{colspan:R.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[K({row:O,$index:I,store:N,expanded:B})])])]]:(console.error("[Element Error]renderExpanded is required."),V):[[V]]}else if(Object.keys(L.value).length){P();const B=Cn(O,H.value);let V=L.value[B],K=null;V&&(K={expanded:V.expanded,level:V.level,display:!0},Et(V.lazy)&&(Et(V.loaded)&&V.loaded&&(K.noLazyChildren=!(V.children&&V.children.length)),K.loading=V.loading));const W=[b(O,I,K)];if(V){let Z=0;const j=(oe,ce)=>{oe&&oe.length&&ce&&oe.forEach(te=>{const ie={display:ce.display&&ce.expanded,level:ce.level+1,expanded:!1,noLazyChildren:!1,loading:!1},fe=Cn(te,H.value);if(ua(fe))throw new Error("For nested data item, row-key is required.");if(V={...L.value[fe]},V&&(ie.expanded=V.expanded,V.level=V.level||ie.level,V.display=!!(V.expanded&&ie.display),Et(V.lazy)&&(Et(V.loaded)&&V.loaded&&(ie.noLazyChildren=!(V.children&&V.children.length)),ie.loading=V.loading)),Z++,W.push(b(te,I+Z,ie)),V){const Me=F.value[fe]||te[U.value];j(Me,V)}})};V.display=!0;const ne=F.value[B]||O[U.value];j(ne,V)}return W}else return b(O,I,void 0)},tooltipContent:d,tooltipTrigger:f}}const YK={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 GK=T({name:"ElTableBody",props:YK,setup(e){const t=Ze(),n=Se(Na),a=de("table"),{wrappedRowRender:l,tooltipContent:o,tooltipTrigger:s}=UK(e),{onColumnsChange:i,onScrollableChange:u}=Im(n),c=[];return se(e.store.states.hoverRow,(d,f)=>{var h;const v=t==null?void 0:t.vnode.el,m=Array.from((v==null?void 0:v.children)||[]).filter(g=>g==null?void 0:g.classList.contains(`${a.e("row")}`));let p=d;const y=(h=m[p])==null?void 0:h.childNodes;if(y!=null&&y.length){let g=0;Array.from(y).reduce((w,b,S)=>{var E,O;return((E=y[S])==null?void 0:E.colSpan)>1&&(g=(O=y[S])==null?void 0:O.colSpan),b.nodeName!=="TD"&&g===0&&w.push(S),g>0&&g--,w},[]).forEach(w=>{var b;for(p=d;p>0;){const S=(b=m[p-1])==null?void 0:b.childNodes;if(S[w]&&S[w].nodeName==="TD"&&S[w].rowSpan>1){jn(S[w],"hover-cell"),c.push(S[w]);break}p--}})}else c.forEach(g=>kn(g,"hover-cell")),c.length=0;!e.store.states.isComplex.value||!ut||il(()=>{const g=m[f],M=m[d];g&&!g.classList.contains("hover-fixed-row")&&kn(g,"hover-row"),M&&jn(M,"hover-row")})}),To(()=>{var d;(d=zn)==null||d()}),{ns:a,onColumnsChange:i,onScrollableChange:u,wrappedRowRender:l,tooltipContent:o,tooltipTrigger:s}},render(){const{wrappedRowRender:e,store:t}=this,n=t.states.data.value||[];return Pe("tbody",{tabIndex:-1},[n.reduce((a,l)=>a.concat(e(l,a.length)),[])])}});function XK(){const e=Se(Na),t=e==null?void 0:e.store,n=C(()=>t.states.fixedLeafColumnsLength.value),a=C(()=>t.states.rightFixedColumns.value.length),l=C(()=>t.states.columns.value.length),o=C(()=>t.states.fixedColumns.value.length),s=C(()=>t.states.rightFixedColumns.value.length);return{leftFixedLeafCount:n,rightFixedLeafCount:a,columnsCount:l,leftFixedCount:o,rightFixedCount:s,columns:t.states.columns}}function ZK(e){const{columns:t}=XK(),n=de("table");return{getCellClasses:(o,s)=>{const i=o[s],u=[n.e("cell"),i.id,i.align,i.labelClassName,...cf(n.b(),s,i.fixed,e.store)];return i.className&&u.push(i.className),i.children||u.push(n.is("leaf")),u},getCellStyles:(o,s)=>{const i=df(s,o.fixed,e.store);return Co(i,"left"),Co(i,"right"),i},columns:t}}var JK=T({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:a}=ZK(e);return{ns:de("table"),getCellClasses:t,getCellStyles:n,columns:a}},render(){const{columns:e,getCellStyles:t,getCellClasses:n,summaryMethod:a,sumText:l}=this,o=this.store.states.data.value;let s=[];return a?s=a({columns:e,data:o}):e.forEach((i,u)=>{if(u===0){s[u]=l;return}const c=o.map(v=>Number(v[i.property])),d=[];let f=!0;c.forEach(v=>{if(!Number.isNaN(+v)){f=!1;const m=`${v}`.split(".")[1];d.push(m?m.length:0)}});const h=Math.max.apply(null,d);f?s[u]="":s[u]=c.reduce((v,m)=>{const p=Number(m);return Number.isNaN(+p)?v:Number.parseFloat((v+m).toFixed(Math.min(h,20)))},0)}),Pe(Pe("tfoot",[Pe("tr",{},[...e.map((i,u)=>Pe("td",{key:u,colspan:i.colSpan,rowspan:i.rowSpan,class:n(e,u),style:t(i,u)},[Pe("div",{class:["cell",i.labelClassName]},[s[u]])]))])]))}});function QK(e){return{setCurrentRow:f=>{e.commit("setCurrentRow",f)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(f,h,v=!0)=>{e.toggleRowSelection(f,h,!1,v),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:f=>{e.clearFilter(f)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(f,h)=>{e.toggleRowExpansionAdapter(f,h)},clearSort:()=>{e.clearSort()},sort:(f,h)=>{e.commit("sort",{prop:f,order:h})},updateKeyChildren:(f,h)=>{e.updateKeyChildren(f,h)}}}function eW(e,t,n,a){const l=A(!1),o=A(null),s=A(!1),i=B=>{s.value=B},u=A({width:null,height:null,headerHeight:null}),c=A(!1),d={display:"inline-block",verticalAlign:"middle"},f=A(),h=A(0),v=A(0),m=A(0),p=A(0),y=A(0);on(()=>{t.setHeight(e.height)}),on(()=>{t.setMaxHeight(e.maxHeight)}),se(()=>[e.currentRowKey,n.states.rowKey],([B,V])=>{!r(V)||!r(B)||n.setCurrentRowKey(`${B}`)},{immediate:!0}),se(()=>e.data,B=>{a.store.commit("setData",B)},{immediate:!0,deep:!0}),on(()=>{e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)});const g=()=>{a.store.commit("setHoverRow",null),a.hoverState&&(a.hoverState=null)},M=(B,V)=>{const{pixelX:K,pixelY:W}=V;Math.abs(K)>=Math.abs(W)&&(a.refs.bodyWrapper.scrollLeft+=V.pixelX/5)},w=C(()=>e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),b=C(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),S=()=>{w.value&&t.updateElsHeight(),t.updateColumnsWidth(),requestAnimationFrame(N)};Ge(async()=>{await Oe(),n.updateColumns(),z(),requestAnimationFrame(S);const B=a.vnode.el,V=a.refs.headerWrapper;e.flexible&&B&&B.parentElement&&(B.parentElement.style.minWidth="0"),u.value={width:f.value=B.offsetWidth,height:B.offsetHeight,headerHeight:e.showHeader&&V?V.offsetHeight:null},n.states.columns.value.forEach(K=>{K.filteredValue&&K.filteredValue.length&&a.store.commit("filterChange",{column:K,values:K.filteredValue,silent:!0})}),a.$ready=!0});const E=(B,V)=>{if(!B)return;const K=Array.from(B.classList).filter(W=>!W.startsWith("is-scrolling-"));K.push(t.scrollX.value?V:"is-scrolling-none"),B.className=K.join(" ")},O=B=>{const{tableWrapper:V}=a.refs;E(V,B)},I=B=>{const{tableWrapper:V}=a.refs;return!!(V&&V.classList.contains(B))},N=function(){if(!a.refs.scrollBarRef)return;if(!t.scrollX.value){const oe="is-scrolling-none";I(oe)||O(oe);return}const B=a.refs.scrollBarRef.wrapRef;if(!B)return;const{scrollLeft:V,offsetWidth:K,scrollWidth:W}=B,{headerWrapper:Z,footerWrapper:j}=a.refs;Z&&(Z.scrollLeft=V),j&&(j.scrollLeft=V);const ne=W-K-1;V>=ne?O("is-scrolling-right"):O(V===0?"is-scrolling-left":"is-scrolling-middle")},z=()=>{a.refs.scrollBarRef&&(a.refs.scrollBarRef.wrapRef&&wt(a.refs.scrollBarRef.wrapRef,"scroll",N,{passive:!0}),e.fit?At(a.vnode.el,P):wt(window,"resize",P),At(a.refs.bodyWrapper,()=>{var B,V;P(),(V=(B=a.refs)==null?void 0:B.scrollBarRef)==null||V.update()}))},P=()=>{var B,V,K,W;const Z=a.vnode.el;if(!a.$ready||!Z)return;let j=!1;const{width:ne,height:oe,headerHeight:ce}=u.value,te=f.value=Z.offsetWidth;ne!==te&&(j=!0);const ie=Z.offsetHeight;(e.height||w.value)&&oe!==ie&&(j=!0);const fe=e.tableLayout==="fixed"?a.refs.headerWrapper:(B=a.refs.tableHeaderRef)==null?void 0:B.$el;e.showHeader&&(fe==null?void 0:fe.offsetHeight)!==ce&&(j=!0),h.value=((V=a.refs.tableWrapper)==null?void 0:V.scrollHeight)||0,m.value=(fe==null?void 0:fe.scrollHeight)||0,p.value=((K=a.refs.footerWrapper)==null?void 0:K.offsetHeight)||0,y.value=((W=a.refs.appendWrapper)==null?void 0:W.offsetHeight)||0,v.value=h.value-m.value-p.value-y.value,j&&(u.value={width:te,height:ie,headerHeight:e.showHeader&&(fe==null?void 0:fe.offsetHeight)||0},S())},L=jt(),F=C(()=>{const{bodyWidth:B,scrollY:V,gutterWidth:K}=t;return B.value?`${B.value-(V.value?K:0)}px`:""}),U=C(()=>e.maxHeight?"fixed":e.tableLayout),H=C(()=>{if(e.data&&e.data.length)return null;let B="100%";e.height&&v.value&&(B=`${v.value}px`);const V=f.value;return{width:V?`${V}px`:"",height:B}}),R=C(()=>e.height?{height:"100%"}:e.maxHeight?Number.isNaN(Number(e.maxHeight))?{maxHeight:`calc(${e.maxHeight} - ${m.value+p.value}px)`}:{maxHeight:`${e.maxHeight-m.value-p.value}px`}:{});return{isHidden:l,renderExpanded:o,setDragVisible:i,isGroup:c,handleMouseLeave:g,handleHeaderFooterMousewheel:M,tableSize:L,emptyBlockStyle:H,handleFixedMousewheel:(B,V)=>{const K=a.refs.bodyWrapper;if(Math.abs(V.spinY)>0){const W=K.scrollTop;V.pixelY<0&&W!==0&&B.preventDefault(),V.pixelY>0&&K.scrollHeight-K.clientHeight>W&&B.preventDefault(),K.scrollTop+=Math.ceil(V.pixelY/5)}else K.scrollLeft+=Math.ceil(V.pixelX/5)},resizeProxyVisible:s,bodyWidth:F,resizeState:u,doLayout:S,tableBodyStyles:b,tableLayout:U,scrollbarViewStyle:d,scrollbarStyle:R}}function tW(e){const t=A(),n=()=>{const l=e.vnode.el.querySelector(".hidden-columns"),o={childList:!0,subtree:!0},s=e.store.states.updateOrderFns;t.value=new MutationObserver(()=>{s.forEach(i=>i())}),t.value.observe(l,o)};Ge(()=>{n()}),To(()=>{var a;(a=t.value)==null||a.disconnect()})}var nW={data:{type:Array,default:()=>[]},size:qt,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",checkStrictly:!1})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:Boolean,flexible:Boolean,showOverflowTooltip:[Boolean,Object],appendFilterPanelTo:String,scrollbarTabindex:{type:[Number,String],default:void 0},allowDragLastColumn:{type:Boolean,default:!0}};function Am(e){const t=e.tableLayout==="auto";let n=e.columns||[];t&&n.every(({width:l})=>vt(l))&&(n=[]);const a=l=>{const o={key:`${e.tableLayout}_${l.id}`,style:{},name:void 0};return t?o.style={width:`${l.width}px`}:o.name=l.id,o};return Pe("colgroup",{},n.map(l=>Pe("col",a(l))))}Am.props=["columns","tableLayout"];const aW=()=>{const e=A(),t=(o,s)=>{const i=e.value;i&&i.scrollTo(o,s)},n=(o,s)=>{const i=e.value;i&&Ie(s)&&["Top","Left"].includes(o)&&i[`setScroll${o}`](s)};return{scrollBarRef:e,scrollTo:t,setScrollTop:o=>n("Top",o),setScrollLeft:o=>n("Left",o)}};var tp=!1,yl,yc,_c,Os,Ns,Vm,Is,bc,wc,Cc,Lm,Sc,kc,Rm,Bm;function Pn(){if(!tp){tp=!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(Sc=/\b(iPhone|iP[ao]d)/.exec(e),kc=/\b(iP[ao]d)/.exec(e),Cc=/Android/i.exec(e),Rm=/FBAN\/\w+;/i.exec(e),Bm=/Mobile/i.exec(e),Lm=!!/Win64/.exec(e),t){yl=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,yl&&document&&document.documentMode&&(yl=document.documentMode);var a=/(?:Trident\/(\d+.\d+))/.exec(e);Vm=a?parseFloat(a[1])+4:yl,yc=t[2]?parseFloat(t[2]):NaN,_c=t[3]?parseFloat(t[3]):NaN,Os=t[4]?parseFloat(t[4]):NaN,Os?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),Ns=t&&t[1]?parseFloat(t[1]):NaN):Ns=NaN}else yl=yc=_c=Ns=Os=NaN;if(n){if(n[1]){var l=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);Is=l?parseFloat(l[1].replace("_",".")):!0}else Is=!1;bc=!!n[2],wc=!!n[3]}else Is=bc=wc=!1}}var Ec={ie:function(){return Pn()||yl},ieCompatibilityMode:function(){return Pn()||Vm>yl},ie64:function(){return Ec.ie()&&Lm},firefox:function(){return Pn()||yc},opera:function(){return Pn()||_c},webkit:function(){return Pn()||Os},safari:function(){return Ec.webkit()},chrome:function(){return Pn()||Ns},windows:function(){return Pn()||bc},osx:function(){return Pn()||Is},linux:function(){return Pn()||wc},iphone:function(){return Pn()||Sc},mobile:function(){return Pn()||Sc||kc||Cc||Bm},nativeApp:function(){return Pn()||Rm},android:function(){return Pn()||Cc},ipad:function(){return Pn()||kc}},lW=Ec,oW=!!(typeof window<"u"&&window.document&&window.document.createElement),rW={canUseDOM:oW},Hm=rW,Dm;Hm.canUseDOM&&(Dm=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function sW(e,t){if(!Hm.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,a=n in document;if(!a){var l=document.createElement("div");l.setAttribute(n,"return;"),a=typeof l[n]=="function"}return!a&&Dm&&e==="wheel"&&(a=document.implementation.hasFeature("Events.wheel","3.0")),a}var iW=sW,np=10,ap=40,lp=800;function Fm(e){var t=0,n=0,a=0,l=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),a=t*np,l=n*np,"deltaY"in e&&(l=e.deltaY),"deltaX"in e&&(a=e.deltaX),(a||l)&&e.deltaMode&&(e.deltaMode==1?(a*=ap,l*=ap):(a*=lp,l*=lp)),a&&!t&&(t=a<1?-1:1),l&&!n&&(n=l<1?-1:1),{spinX:t,spinY:n,pixelX:a,pixelY:l}}Fm.getEventType=function(){return lW.firefox()?"DOMMouseScroll":iW("wheel")?"wheel":"mousewheel"};var uW=Fm;/** -* 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 cW=function(e,t){if(e&&e.addEventListener){const n=function(a){const l=uW(a);t&&Reflect.apply(t,this,[a,l])};e.addEventListener("wheel",n,{passive:!0})}},dW={beforeMount(e,t){cW(e,t.value)}};let fW=1;const pW=T({name:"ElTable",directives:{Mousewheel:dW},components:{TableHeader:DK,TableBody:GK,TableFooter:JK,ElScrollbar:Oa,hColgroup:Am},props:nW,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","scroll"],setup(e){const{t}=ct(),n=de("table"),a=Ze();it(Na,a);const l=NK(a,e);a.store=l;const o=new PK({store:a.store,table:a,fit:e.fit,showHeader:e.showHeader});a.layout=o;const s=C(()=>(l.states.data.value||[]).length===0),{setCurrentRow:i,getSelectionRows:u,toggleRowSelection:c,clearSelection:d,clearFilter:f,toggleAllSelection:h,toggleRowExpansion:v,clearSort:m,sort:p,updateKeyChildren:y}=QK(l),{isHidden:g,renderExpanded:M,setDragVisible:w,isGroup:b,handleMouseLeave:S,handleHeaderFooterMousewheel:E,tableSize:O,emptyBlockStyle:I,handleFixedMousewheel:N,resizeProxyVisible:z,bodyWidth:P,resizeState:L,doLayout:F,tableBodyStyles:U,tableLayout:H,scrollbarViewStyle:R,scrollbarStyle:D}=eW(e,o,l,a),{scrollBarRef:B,scrollTo:V,setScrollLeft:K,setScrollTop:W}=aW(),Z=Rn(F,50),j=`${n.namespace.value}-table_${fW++}`;a.tableId=j,a.state={isGroup:b,resizeState:L,doLayout:F,debouncedUpdateLayout:Z};const ne=C(()=>{var te;return(te=e.sumText)!=null?te:t("el.table.sumText")}),oe=C(()=>{var te;return(te=e.emptyText)!=null?te:t("el.table.emptyText")}),ce=C(()=>zm(l.states.originColumns.value)[0]);return tW(a),Tt(()=>{Z.cancel()}),{ns:n,layout:o,store:l,columns:ce,handleHeaderFooterMousewheel:E,handleMouseLeave:S,tableId:j,tableSize:O,isHidden:g,isEmpty:s,renderExpanded:M,resizeProxyVisible:z,resizeState:L,isGroup:b,bodyWidth:P,tableBodyStyles:U,emptyBlockStyle:I,debouncedUpdateLayout:Z,handleFixedMousewheel:N,setCurrentRow:i,getSelectionRows:u,toggleRowSelection:c,clearSelection:d,clearFilter:f,toggleAllSelection:h,toggleRowExpansion:v,clearSort:m,doLayout:F,sort:p,updateKeyChildren:y,t,setDragVisible:w,context:a,computedSumText:ne,computedEmptyText:oe,tableLayout:H,scrollbarViewStyle:R,scrollbarStyle:D,scrollBarRef:B,scrollTo:V,setScrollLeft:K,setScrollTop:W,allowDragLastColumn:e.allowDragLastColumn}}});function vW(e,t,n,a,l,o){const s=Je("hColgroup"),i=Je("table-header"),u=Je("table-body"),c=Je("table-footer"),d=Je("el-scrollbar"),f=fi("mousewheel");return _(),x("div",{ref:"tableWrapper",class:$([{[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:Ne(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:e.handleMouseLeave},[k("div",{class:$(e.ns.e("inner-wrapper"))},[k("div",{ref:"hiddenColumns",class:"hidden-columns"},[Q(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?qe((_(),x("div",{key:0,ref:"headerWrapper",class:$(e.ns.e("header-wrapper"))},[k("table",{ref:"tableHeader",class:$(e.ns.e("header")),style:Ne(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[q(s,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),q(i,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,"append-filter-panel-to":e.appendFilterPanelTo,"allow-drag-last-column":e.allowDragLastColumn,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","append-filter-panel-to","allow-drag-last-column","onSetDragVisible"])],6)],2)),[[f,e.handleHeaderFooterMousewheel]]):ee("v-if",!0),k("div",{ref:"bodyWrapper",class:$(e.ns.e("body-wrapper"))},[q(d,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn,tabindex:e.scrollbarTabindex,onScroll:h=>e.$emit("scroll",h)},{default:G(()=>[k("table",{ref:"tableBody",class:$(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:Ne({width:e.bodyWidth,tableLayout:e.tableLayout})},[q(s,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(_(),ae(i,{key:0,ref:"tableHeaderRef",class:$(e.ns.e("body-header")),border:e.border,"default-sort":e.defaultSort,store:e.store,"append-filter-panel-to":e.appendFilterPanelTo,onSetDragVisible:e.setDragVisible},null,8,["class","border","default-sort","store","append-filter-panel-to","onSetDragVisible"])):ee("v-if",!0),q(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"]),e.showSummary&&e.tableLayout==="auto"?(_(),ae(c,{key:1,class:$(e.ns.e("body-footer")),border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["class","border","default-sort","store","sum-text","summary-method"])):ee("v-if",!0)],6),e.isEmpty?(_(),x("div",{key:0,ref:"emptyBlock",style:Ne(e.emptyBlockStyle),class:$(e.ns.e("empty-block"))},[k("span",{class:$(e.ns.e("empty-text"))},[Q(e.$slots,"empty",{},()=>[ot(he(e.computedEmptyText),1)])],2)],6)):ee("v-if",!0),e.$slots.append?(_(),x("div",{key:1,ref:"appendWrapper",class:$(e.ns.e("append-wrapper"))},[Q(e.$slots,"append")],2)):ee("v-if",!0)]),_:3},8,["view-style","wrap-style","always","tabindex","onScroll"])],2),e.showSummary&&e.tableLayout==="fixed"?qe((_(),x("div",{key:1,ref:"footerWrapper",class:$(e.ns.e("footer-wrapper"))},[k("table",{class:$(e.ns.e("footer")),cellspacing:"0",cellpadding:"0",border:"0",style:Ne(e.tableBodyStyles)},[q(s,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),q(c,{border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","sum-text","summary-method"])],6)],2)),[[pt,!e.isEmpty],[f,e.handleHeaderFooterMousewheel]]):ee("v-if",!0),e.border||e.isGroup?(_(),x("div",{key:2,class:$(e.ns.e("border-left-patch"))},null,2)):ee("v-if",!0)],2),qe(k("div",{ref:"resizeProxy",class:$(e.ns.e("column-resize-proxy"))},null,2),[[pt,e.resizeProxyVisible]])],46,["data-prefix","onMouseleave"])}var hW=ve(pW,[["render",vW],["__file","table.vue"]]);const mW={selection:"table-column--selection",expand:"table__expand-column"},gW={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:""}},yW=e=>mW[e]||"",_W={selection:{renderHeader({store:e,column:t}){function n(){return e.states.data.value&&e.states.data.value.length===0}return Pe(Qn,{disabled:n(),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,ariaLabel:t.label})},renderCell({row:e,column:t,store:n,$index:a}){return Pe(Qn,{disabled:t.selectable?!t.selectable.call(null,e,a):!1,size:n.states.tableSize.value,onChange:()=>{n.commit("rowSelectedChanged",e)},onClick:l=>l.stopPropagation(),modelValue:n.isSelected(e),ariaLabel:t.label})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let n=t+1;const a=e.index;return Ie(a)?n=t+a:Qe(a)&&(n=a(t)),Pe("div",{},[n])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({row:e,store:t,expanded:n}){const{ns:a}=t,l=[a.e("expand-icon")];return n&&l.push(a.em("expand-icon","expanded")),Pe("div",{class:l,onClick:function(s){s.stopPropagation(),t.toggleRowExpansion(e)}},{default:()=>[Pe(xe,null,{default:()=>[Pe(En)]})]})},sortable:!1,resizable:!1}};function bW({row:e,column:t,$index:n}){var a;const l=t.property,o=l&&ps(e,l).value;return t&&t.formatter?t.formatter(e,t,o,n):((a=o==null?void 0:o.toString)==null?void 0:a.call(o))||""}function wW({row:e,treeNode:t,store:n},a=!1){const{ns:l}=n;if(!t)return a?[Pe("span",{class:l.e("placeholder")})]:null;const o=[],s=function(i){i.stopPropagation(),!t.loading&&n.loadOrToggle(e)};if(t.indent&&o.push(Pe("span",{class:l.e("indent"),style:{"padding-left":`${t.indent}px`}})),Et(t.expanded)&&!t.noLazyChildren){const i=[l.e("expand-icon"),t.expanded?l.em("expand-icon","expanded"):""];let u=En;t.loading&&(u=ca),o.push(Pe("div",{class:i,onClick:s},{default:()=>[Pe(xe,{class:{[l.is("loading")]:t.loading}},{default:()=>[Pe(u)]})]}))}else o.push(Pe("span",{class:l.e("placeholder")}));return o}function op(e,t){return e.reduce((n,a)=>(n[a]=a,n),t)}function CW(e,t){const n=Ze();return{registerComplexWatchers:()=>{const o=["fixed"],s={realWidth:"width",realMinWidth:"minWidth"},i=op(o,s);Object.keys(i).forEach(u=>{const c=s[u];hn(t,c)&&se(()=>t[c],d=>{let f=d;c==="width"&&u==="realWidth"&&(f=uf(d)),c==="minWidth"&&u==="realMinWidth"&&(f=xm(d)),n.columnConfig.value[c]=f,n.columnConfig.value[u]=f;const h=c==="fixed";e.value.store.scheduleLayout(h)})})},registerNormalWatchers:()=>{const o=["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","filterClassName","showOverflowTooltip"],s={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},i=op(o,s);Object.keys(i).forEach(u=>{const c=s[u];hn(t,c)&&se(()=>t[c],d=>{n.columnConfig.value[u]=d})})}}}function SW(e,t,n){const a=Ze(),l=A(""),o=A(!1),s=A(),i=A(),u=de("table");on(()=>{s.value=e.align?`is-${e.align}`:null,s.value}),on(()=>{i.value=e.headerAlign?`is-${e.headerAlign}`:s.value,i.value});const c=C(()=>{let b=a.vnode.vParent||a.parent;for(;b&&!b.tableId&&!b.columnId;)b=b.vnode.vParent||b.parent;return b}),d=C(()=>{const{store:b}=a.parent;if(!b)return!1;const{treeData:S}=b.states,E=S.value;return E&&Object.keys(E).length>0}),f=A(uf(e.width)),h=A(xm(e.minWidth)),v=b=>(f.value&&(b.width=f.value),h.value&&(b.minWidth=h.value),!f.value&&h.value&&(b.width=void 0),b.minWidth||(b.minWidth=80),b.realWidth=Number(vt(b.width)?b.minWidth:b.width),b),m=b=>{const S=b.type,E=_W[S]||{};Object.keys(E).forEach(I=>{const N=E[I];I!=="className"&&!vt(N)&&(b[I]=N)});const O=yW(S);if(O){const I=`${r(u.namespace)}-${O}`;b.className=b.className?`${b.className} ${I}`:I}return b},p=b=>{Ee(b)?b.forEach(E=>S(E)):S(b);function S(E){var O;((O=E==null?void 0:E.type)==null?void 0:O.name)==="ElTableColumn"&&(E.vParent=a)}};return{columnId:l,realAlign:s,isSubColumn:o,realHeaderAlign:i,columnOrTableParent:c,setColumnWidth:v,setColumnForcedProps:m,setColumnRenders:b=>{e.renderHeader||b.type!=="selection"&&(b.renderHeader=E=>(a.columnConfig.value.label,Q(t,"header",E,()=>[b.label]))),t["filter-icon"]&&(b.renderFilterIcon=E=>Q(t,"filter-icon",E));let S=b.renderCell;return b.type==="expand"?(b.renderCell=E=>Pe("div",{class:"cell"},[S(E)]),n.value.renderExpanded=E=>t.default?t.default(E):t.default):(S=S||bW,b.renderCell=E=>{let O=null;if(t.default){const F=t.default(E);O=F.some(U=>U.type!==ci)?F:S(E)}else O=S(E);const{columns:I}=n.value.store.states,N=I.value.findIndex(F=>F.type==="default"),z=d.value&&E.cellIndex===N,P=wW(E,z),L={class:"cell",style:{}};return b.showOverflowTooltip&&(L.class=`${L.class} ${r(u.namespace)}-tooltip`,L.style={width:`${(E.column.realWidth||Number(E.column.width))-1}px`}),p(O),Pe("div",L,[P,O])}),b},getPropsData:(...b)=>b.reduce((S,E)=>(Ee(E)&&E.forEach(O=>{S[O]=e[O]}),S),{}),getColumnElIndex:(b,S)=>Array.prototype.indexOf.call(b,S),updateColumnOrder:()=>{n.value.store.commit("updateColumnOrder",a.columnConfig.value)}}}var kW={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:{type:[Boolean,Object],default:void 0},fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},filterClassName:String,index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every(t=>["ascending","descending",null].includes(t))}};let EW=1;var Km=T({name:"ElTableColumn",components:{ElCheckbox:Qn},props:kW,setup(e,{slots:t}){const n=Ze(),a=A({}),l=C(()=>{let w=n.parent;for(;w&&!w.tableId;)w=w.parent;return w}),{registerNormalWatchers:o,registerComplexWatchers:s}=CW(l,e),{columnId:i,isSubColumn:u,realHeaderAlign:c,columnOrTableParent:d,setColumnWidth:f,setColumnForcedProps:h,setColumnRenders:v,getPropsData:m,getColumnElIndex:p,realAlign:y,updateColumnOrder:g}=SW(e,t,l),M=d.value;i.value=`${M.tableId||M.columnId}_column_${EW++}`,qc(()=>{u.value=l.value!==M;const w=e.type||"default",b=e.sortable===""?!0:e.sortable,S=vt(e.showOverflowTooltip)?M.props.showOverflowTooltip:e.showOverflowTooltip,E={...gW[w],id:i.value,type:w,property:e.prop||e.property,align:y,headerAlign:c,showOverflowTooltip:S,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",filterClassName:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:b,index:e.index,rawColumnKey:n.vnode.key};let P=m(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement","filterClassName"]);P=bK(E,P),P=CK(v,f,h)(P),a.value=P,o(),s()}),Ge(()=>{var w;const b=d.value,S=u.value?b.vnode.el.children:(w=b.refs.hiddenColumns)==null?void 0:w.children,E=()=>p(S||[],n.vnode.el);a.value.getColumnIndex=E,E()>-1&&l.value.store.commit("insertColumn",a.value,u.value?b.columnConfig.value:null,g)}),Tt(()=>{const w=a.value.getColumnIndex;(w?w():-1)>-1&&l.value.store.commit("removeColumn",a.value,u.value?M.columnConfig.value:null,g)}),n.columnId=i.value,n.columnConfig=a},render(){var e,t,n;try{const a=(t=(e=this.$slots).default)==null?void 0:t.call(e,{row:{},column:{},$index:-1}),l=[];if(Ee(a))for(const s of a)((n=s.type)==null?void 0:n.name)==="ElTableColumn"||s.shapeFlag&2?l.push(s):s.type===ze&&Ee(s.children)&&s.children.forEach(i=>{(i==null?void 0:i.patchFlag)!==1024&&!Ve(i==null?void 0:i.children)&&l.push(i)});return Pe("div",l)}catch{return Pe("div",[])}}});const MW=We(hW,{TableColumn:Km}),xW=Lt(Km);var Sr=(e=>(e.ASC="asc",e.DESC="desc",e))(Sr||{}),kr=(e=>(e.CENTER="center",e.RIGHT="right",e))(kr||{}),Wm=(e=>(e.LEFT="left",e.RIGHT="right",e))(Wm||{});const Mc={asc:"desc",desc:"asc"},Er=Symbol("placeholder"),$W=(e,t,n)=>{var a;const l={flexGrow:0,flexShrink:0,...n?{}:{flexGrow:e.flexGrow||0,flexShrink:e.flexShrink||1}};n||(l.flexShrink=1);const o={...(a=e.style)!=null?a:{},...l,flexBasis:"auto",width:e.width};return t||(e.maxWidth&&(o.maxWidth=e.maxWidth),e.minWidth&&(o.minWidth=e.minWidth)),o};function TW(e,t,n){const a=C(()=>r(t).map((y,g)=>{var M,w;return{...y,key:(w=(M=y.key)!=null?M:y.dataKey)!=null?w:g}})),l=C(()=>r(a).filter(y=>!y.hidden)),o=C(()=>r(l).filter(y=>y.fixed==="left"||y.fixed===!0)),s=C(()=>r(l).filter(y=>y.fixed==="right")),i=C(()=>r(l).filter(y=>!y.fixed)),u=C(()=>{const y=[];return r(o).forEach(g=>{y.push({...g,placeholderSign:Er})}),r(i).forEach(g=>{y.push(g)}),r(s).forEach(g=>{y.push({...g,placeholderSign:Er})}),y}),c=C(()=>r(o).length||r(s).length),d=C(()=>r(a).reduce((y,g)=>(y[g.key]=$W(g,r(n),e.fixed),y),{})),f=C(()=>r(l).reduce((y,g)=>y+g.width,0)),h=y=>r(a).find(g=>g.key===y),v=y=>r(d)[y],m=(y,g)=>{y.width=g};function p(y){var g;const{key:M}=y.currentTarget.dataset;if(!M)return;const{sortState:w,sortBy:b}=e;let S=Sr.ASC;ht(w)?S=Mc[w[M]]:S=Mc[b.order],(g=e.onColumnSort)==null||g.call(e,{column:h(M),key:M,order:S})}return{columns:a,columnsStyles:d,columnsTotalWidth:f,fixedColumnsOnLeft:o,fixedColumnsOnRight:s,hasFixedColumns:c,mainColumns:u,normalColumns:i,visibleColumns:l,getColumn:h,getColumnStyle:v,updateColumnWidth:m,onColumnSorted:p}}const OW=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:a,onMaybeEndReached:l})=>{const o=A({scrollLeft:0,scrollTop:0});function s(v){var m,p,y;const{scrollTop:g}=v;(m=t.value)==null||m.scrollTo(v),(p=n.value)==null||p.scrollToTop(g),(y=a.value)==null||y.scrollToTop(g)}function i(v){o.value=v,s(v)}function u(v){o.value.scrollTop=v,s(r(o))}function c(v){var m,p;o.value.scrollLeft=v,(p=(m=t.value)==null?void 0:m.scrollTo)==null||p.call(m,r(o))}function d(v){var m;i(v),(m=e.onScroll)==null||m.call(e,v)}function f({scrollTop:v}){const{scrollTop:m}=r(o);v!==m&&u(v)}function h(v,m="auto"){var p;(p=t.value)==null||p.scrollToRow(v,m)}return se(()=>r(o).scrollTop,(v,m)=>{v>m&&l()}),{scrollPos:o,scrollTo:i,scrollToLeft:c,scrollToTop:u,scrollToRow:h,onScroll:d,onVerticalScroll:f}},NW=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:a,tableInstance:l,ns:o,isScrolling:s})=>{const i=Ze(),{emit:u}=i,c=Mt(!1),d=A(e.defaultExpandedRowKeys||[]),f=A(-1),h=Mt(null),v=A({}),m=A({}),p=Mt({}),y=Mt({}),g=Mt({}),M=C(()=>Ie(e.estimatedRowHeight));function w(z){var P;(P=e.onRowsRendered)==null||P.call(e,z),z.rowCacheEnd>r(f)&&(f.value=z.rowCacheEnd)}function b({hovered:z,rowKey:P}){if(s.value)return;l.vnode.el.querySelectorAll(`[rowkey="${String(P)}"]`).forEach(U=>{z?U.classList.add(o.is("hovered")):U.classList.remove(o.is("hovered"))})}function S({expanded:z,rowData:P,rowIndex:L,rowKey:F}){var U,H;const R=[...r(d)],D=R.indexOf(F);z?D===-1&&R.push(F):D>-1&&R.splice(D,1),d.value=R,u("update:expandedRowKeys",R),(U=e.onRowExpand)==null||U.call(e,{expanded:z,rowData:P,rowIndex:L,rowKey:F}),(H=e.onExpandedRowsChange)==null||H.call(e,R)}const E=Rn(()=>{var z,P,L,F;c.value=!0,v.value={...r(v),...r(m)},O(r(h),!1),m.value={},h.value=null,(z=t.value)==null||z.forceUpdate(),(P=n.value)==null||P.forceUpdate(),(L=a.value)==null||L.forceUpdate(),(F=i.proxy)==null||F.$forceUpdate(),c.value=!1},0);function O(z,P=!1){r(M)&&[t,n,a].forEach(L=>{const F=r(L);F&&F.resetAfterRowIndex(z,P)})}function I(z,P,L){const F=r(h);(F===null||F>L)&&(h.value=L),m.value[z]=P}function N({rowKey:z,height:P,rowIndex:L},F){F?F===Wm.RIGHT?g.value[z]=P:p.value[z]=P:y.value[z]=P;const U=Math.max(...[p,g,y].map(H=>H.value[z]||0));r(v)[z]!==U&&(I(z,U,L),E())}return{expandedRowKeys:d,lastRenderedRowIndex:f,isDynamic:M,isResetting:c,rowHeights:v,resetAfterIndex:O,onRowExpanded:S,onRowHovered:b,onRowsRendered:w,onRowHeightChange:N}},IW=(e,{expandedRowKeys:t,lastRenderedRowIndex:n,resetAfterIndex:a})=>{const l=A({}),o=C(()=>{const i={},{data:u,rowKey:c}=e,d=r(t);if(!d||!d.length)return u;const f=[],h=new Set;d.forEach(m=>h.add(m));let v=u.slice();for(v.forEach(m=>i[m[c]]=0);v.length>0;){const m=v.shift();f.push(m),h.has(m[c])&&Ee(m.children)&&m.children.length>0&&(v=[...m.children,...v],m.children.forEach(p=>i[p[c]]=i[m[c]]+1))}return l.value=i,f}),s=C(()=>{const{data:i,expandColumnKey:u}=e;return u?r(o):i});return se(s,(i,u)=>{i!==u&&(n.value=-1,a(0,!0))}),{data:s,depthMap:l}},PW=(e,t)=>e+t,Ps=e=>Ee(e)?e.reduce(PW,0):e,Al=(e,t,n={})=>Qe(e)?e(t):e??n,nl=e=>(["width","maxWidth","minWidth","height"].forEach(t=>{e[t]=Rt(e[t])}),e),jm=e=>Ft(e)?t=>Pe(e,t):e,zW=(e,{columnsTotalWidth:t,rowsHeight:n,fixedColumnsOnLeft:a,fixedColumnsOnRight:l})=>{const o=C(()=>{const{fixed:M,width:w,vScrollbarSize:b}=e,S=w-b;return M?Math.max(Math.round(r(t)),S):S}),s=C(()=>r(o)+e.vScrollbarSize),i=C(()=>{const{height:M=0,maxHeight:w=0,footerHeight:b,hScrollbarSize:S}=e;if(w>0){const E=r(v),O=r(n),N=r(h)+E+O+S;return Math.min(N,w-b)}return M-b}),u=C(()=>{const{maxHeight:M}=e,w=r(i);if(Ie(M)&&M>0)return w;const b=r(n)+r(h)+r(v);return Math.min(w,b)}),c=M=>M.width,d=C(()=>Ps(r(a).map(c))),f=C(()=>Ps(r(l).map(c))),h=C(()=>Ps(e.headerHeight)),v=C(()=>{var M;return(((M=e.fixedData)==null?void 0:M.length)||0)*e.rowHeight}),m=C(()=>r(i)-r(h)-r(v)),p=C(()=>{const{style:M={},height:w,width:b}=e;return nl({...M,height:w,width:b})}),y=C(()=>nl({height:e.footerHeight})),g=C(()=>({top:Rt(r(h)),bottom:Rt(e.footerHeight),width:Rt(e.width)}));return{bodyWidth:o,fixedTableHeight:u,mainTableHeight:i,leftTableWidth:d,rightTableWidth:f,headerWidth:s,windowHeight:m,footerHeight:y,emptyStyle:g,rootStyle:p,headerHeight:h}};function AW(e){const t=A(),n=A(),a=A(),{columns:l,columnsStyles:o,columnsTotalWidth:s,fixedColumnsOnLeft:i,fixedColumnsOnRight:u,hasFixedColumns:c,mainColumns:d,onColumnSorted:f}=TW(e,mt(e,"columns"),mt(e,"fixed")),{scrollTo:h,scrollToLeft:v,scrollToTop:m,scrollToRow:p,onScroll:y,onVerticalScroll:g,scrollPos:M}=OW(e,{mainTableRef:t,leftTableRef:n,rightTableRef:a,onMaybeEndReached:we}),w=de("table-v2"),b=Ze(),S=Mt(!1),{expandedRowKeys:E,lastRenderedRowIndex:O,isDynamic:I,isResetting:N,rowHeights:z,resetAfterIndex:P,onRowExpanded:L,onRowHeightChange:F,onRowHovered:U,onRowsRendered:H}=NW(e,{mainTableRef:t,leftTableRef:n,rightTableRef:a,tableInstance:b,ns:w,isScrolling:S}),{data:R,depthMap:D}=IW(e,{expandedRowKeys:E,lastRenderedRowIndex:O,resetAfterIndex:P}),B=C(()=>{const{estimatedRowHeight:Le,rowHeight:De}=e,Ye=r(R);return Ie(Le)?Object.values(r(z)).reduce(($e,Te)=>$e+Te,0):Ye.length*De}),{bodyWidth:V,fixedTableHeight:K,mainTableHeight:W,leftTableWidth:Z,rightTableWidth:j,headerWidth:ne,windowHeight:oe,footerHeight:ce,emptyStyle:te,rootStyle:ie,headerHeight:fe}=zW(e,{columnsTotalWidth:s,fixedColumnsOnLeft:i,fixedColumnsOnRight:u,rowsHeight:B}),Me=A(),me=C(()=>{const Le=r(R).length===0;return Ee(e.fixedData)?e.fixedData.length===0&&Le:Le});function le(Le){const{estimatedRowHeight:De,rowHeight:Ye,rowKey:$e}=e;return De?r(z)[r(R)[Le][$e]]||De:Ye}function we(){const{onEndReached:Le}=e;if(!Le)return;const{scrollTop:De}=r(M),Ye=r(B),$e=r(oe),Te=Ye-(De+$e)+e.hScrollbarSize;r(O)>=0&&Ye===De+r(W)-r(fe)&&Le(Te)}return se(()=>e.expandedRowKeys,Le=>E.value=Le,{deep:!0}),{columns:l,containerRef:Me,mainTableRef:t,leftTableRef:n,rightTableRef:a,isDynamic:I,isResetting:N,isScrolling:S,hasFixedColumns:c,columnsStyles:o,columnsTotalWidth:s,data:R,expandedRowKeys:E,depthMap:D,fixedColumnsOnLeft:i,fixedColumnsOnRight:u,mainColumns:d,bodyWidth:V,emptyStyle:te,rootStyle:ie,headerWidth:ne,footerHeight:ce,mainTableHeight:W,fixedTableHeight:K,leftTableWidth:Z,rightTableWidth:j,showEmpty:me,getRowHeight:le,onColumnSorted:f,onRowHovered:U,onRowExpanded:L,onRowsRendered:H,onRowHeightChange:F,scrollTo:h,scrollToLeft:v,scrollToTop:m,scrollToRow:p,onScroll:y,onVerticalScroll:g}}const ff=Symbol("tableV2"),qm=String,Dr={type:X(Array),required:!0},pf={type:X(Array)},Um={...pf,required:!0},VW=String,rp={type:X(Array),default:()=>Vt([])},_l={type:Number,required:!0},Ym={type:X([String,Number,Symbol]),default:"id"},sp={type:X(Object)},Sl=pe({class:String,columns:Dr,columnsStyles:{type:X(Object),required:!0},depth:Number,expandColumnKey:VW,estimatedRowHeight:{...$l.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:X(Function)},onRowHover:{type:X(Function)},onRowHeightChange:{type:X(Function)},rowData:{type:X(Object),required:!0},rowEventHandlers:{type:X(Object)},rowIndex:{type:Number,required:!0},rowKey:Ym,style:{type:X(Object)}}),bu={type:Number,required:!0},vf=pe({class:String,columns:Dr,fixedHeaderData:{type:X(Array)},headerData:{type:X(Array),required:!0},headerHeight:{type:X([Number,Array]),default:50},rowWidth:bu,rowHeight:{type:Number,default:50},height:bu,width:bu}),zs=pe({columns:Dr,data:Um,fixedData:pf,estimatedRowHeight:Sl.estimatedRowHeight,width:_l,height:_l,headerWidth:_l,headerHeight:vf.headerHeight,bodyWidth:_l,rowHeight:_l,cache:vm.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:$l.scrollbarAlwaysOn,scrollbarStartGap:$l.scrollbarStartGap,scrollbarEndGap:$l.scrollbarEndGap,class:qm,style:sp,containerStyle:sp,getRowHeight:{type:X(Function),required:!0},rowKey:Sl.rowKey,onRowsRendered:{type:X(Function)},onScroll:{type:X(Function)}}),LW=pe({cache:zs.cache,estimatedRowHeight:Sl.estimatedRowHeight,rowKey:Ym,headerClass:{type:X([String,Function])},headerProps:{type:X([Object,Function])},headerCellProps:{type:X([Object,Function])},headerHeight:vf.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:X([String,Function])},rowProps:{type:X([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:X([Object,Function])},columns:Dr,data:Um,dataGetter:{type:X(Function)},fixedData:pf,expandColumnKey:Sl.expandColumnKey,expandedRowKeys:rp,defaultExpandedRowKeys:rp,class:qm,fixed:Boolean,style:{type:X(Object)},width:_l,height:_l,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:$l.hScrollbarSize,vScrollbarSize:$l.vScrollbarSize,scrollbarAlwaysOn:gm.alwaysOn,sortBy:{type:X(Object),default:()=>({})},sortState:{type:X(Object),default:void 0},onColumnSort:{type:X(Function)},onExpandedRowsChange:{type:X(Function)},onEndReached:{type:X(Function)},onRowExpand:Sl.onRowExpand,onScroll:zs.onScroll,onRowsRendered:zs.onRowsRendered,rowEventHandlers:Sl.rowEventHandlers}),RW="ElTableV2Header",BW=T({name:RW,props:vf,setup(e,{slots:t,expose:n}){const a=de("table-v2"),l=Se("tableV2GridScrollLeft"),o=A(),s=C(()=>nl({width:e.width,height:e.height})),i=C(()=>nl({width:e.rowWidth,height:e.height})),u=C(()=>wn(r(e.headerHeight))),c=h=>{const v=r(o);Oe(()=>{v!=null&&v.scroll&&v.scroll({left:h})})},d=()=>{const h=a.e("fixed-header-row"),{columns:v,fixedHeaderData:m,rowHeight:p}=e;return m==null?void 0:m.map((y,g)=>{var M;const w=nl({height:p,width:"100%"});return(M=t.fixed)==null?void 0:M.call(t,{class:h,columns:v,rowData:y,rowIndex:-(g+1),style:w})})},f=()=>{const h=a.e("dynamic-header-row"),{columns:v}=e;return r(u).map((m,p)=>{var y;const g=nl({width:"100%",height:m});return(y=t.dynamic)==null?void 0:y.call(t,{class:h,columns:v,headerIndex:p,style:g})})};return ja(()=>{l!=null&&l.value&&c(l.value)}),n({scrollToLeft:c}),()=>{if(!(e.height<=0))return q("div",{ref:o,class:e.class,style:r(s),role:"rowgroup"},[q("div",{style:r(i),class:a.e("header")},[f(),d()])])}}});var HW=BW;const DW=({atXEndEdge:e,atXStartEdge:t,atYEndEdge:n,atYStartEdge:a},l)=>{let o=null,s=0,i=0;const u=(d,f)=>{const h=d<=0&&t.value||d>=0&&e.value,v=f<=0&&a.value||f>=0&&n.value;return h&&v};return{hasReachedEdge:u,onWheel:d=>{Pl(o);let f=d.deltaX,h=d.deltaY;Math.abs(f)>Math.abs(h)?h=0:f=0,d.shiftKey&&h!==0&&(f=h,h=0),!(u(s,i)&&u(s+f,i+h))&&(s+=f,i+=h,d.preventDefault(),o=il(()=>{l(s,i),s=0,i=0}))}}},Gm=({name:e,clearCache:t,getColumnPosition:n,getColumnStartIndexForOffset:a,getColumnStopIndexForStartIndex:l,getEstimatedTotalHeight:o,getEstimatedTotalWidth:s,getColumnOffset:i,getRowOffset:u,getRowPosition:c,getRowStartIndexForOffset:d,getRowStopIndexForStartIndex:f,initCache:h,injectToInstance:v,validateProps:m})=>T({name:e??"ElVirtualList",props:$l,emits:[Zs,Js],setup(p,{emit:y,expose:g,slots:M}){const w=de("vl");m(p);const b=Ze(),S=A(h(p,b));v==null||v(b,S);const E=A(),O=A(),I=A(),N=A(null),z=A({isScrolling:!1,scrollLeft:Ie(p.initScrollLeft)?p.initScrollLeft:0,scrollTop:Ie(p.initScrollTop)?p.initScrollTop:0,updateRequested:!1,xAxisScrollDir:to,yAxisScrollDir:to}),P=dm(),L=C(()=>Number.parseInt(`${p.height}`,10)),F=C(()=>Number.parseInt(`${p.width}`,10)),U=C(()=>{const{totalColumn:$e,totalRow:Te,columnCache:ke}=p,{isScrolling:He,xAxisScrollDir:Xe,scrollLeft:at}=r(z);if($e===0||Te===0)return[0,0,0,0];const nt=a(p,at,r(S)),be=l(p,nt,at,r(S)),je=!He||Xe===Qs?Math.max(1,ke):1,ft=!He||Xe===to?Math.max(1,ke):1;return[Math.max(0,nt-je),Math.max(0,Math.min($e-1,be+ft)),nt,be]}),H=C(()=>{const{totalColumn:$e,totalRow:Te,rowCache:ke}=p,{isScrolling:He,yAxisScrollDir:Xe,scrollTop:at}=r(z);if($e===0||Te===0)return[0,0,0,0];const nt=d(p,at,r(S)),be=f(p,nt,at,r(S)),je=!He||Xe===Qs?Math.max(1,ke):1,ft=!He||Xe===to?Math.max(1,ke):1;return[Math.max(0,nt-je),Math.max(0,Math.min(Te-1,be+ft)),nt,be]}),R=C(()=>o(p,r(S))),D=C(()=>s(p,r(S))),B=C(()=>{var $e;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:p.direction,height:Ie(p.height)?`${p.height}px`:p.height,width:Ie(p.width)?`${p.width}px`:p.width},($e=p.style)!=null?$e:{}]}),V=C(()=>{const $e=`${r(D)}px`;return{height:`${r(R)}px`,pointerEvents:r(z).isScrolling?"none":void 0,width:$e}}),K=()=>{const{totalColumn:$e,totalRow:Te}=p;if($e>0&&Te>0){const[be,je,ft,Ot]=r(U),[bt,Pt,gt,un]=r(H);y(Zs,{columnCacheStart:be,columnCacheEnd:je,rowCacheStart:bt,rowCacheEnd:Pt,columnVisibleStart:ft,columnVisibleEnd:Ot,rowVisibleStart:gt,rowVisibleEnd:un})}const{scrollLeft:ke,scrollTop:He,updateRequested:Xe,xAxisScrollDir:at,yAxisScrollDir:nt}=r(z);y(Js,{xAxisScrollDir:at,scrollLeft:ke,yAxisScrollDir:nt,scrollTop:He,updateRequested:Xe})},W=$e=>{const{clientHeight:Te,clientWidth:ke,scrollHeight:He,scrollLeft:Xe,scrollTop:at,scrollWidth:nt}=$e.currentTarget,be=r(z);if(be.scrollTop===at&&be.scrollLeft===Xe)return;let je=Xe;if(W2(p.direction))switch(ti()){case wr:je=-Xe;break;case sf:je=nt-ke-Xe;break}z.value={...be,isScrolling:!0,scrollLeft:je,scrollTop:Math.max(0,Math.min(at,He-Te)),updateRequested:!0,xAxisScrollDir:Cl(be.scrollLeft,je),yAxisScrollDir:Cl(be.scrollTop,at)},Oe(()=>ie()),fe(),K()},Z=($e,Te)=>{const ke=r(L),He=(R.value-ke)/Te*$e;oe({scrollTop:Math.min(R.value-ke,He)})},j=($e,Te)=>{const ke=r(F),He=(D.value-ke)/Te*$e;oe({scrollLeft:Math.min(D.value-ke,He)})},{onWheel:ne}=DW({atXStartEdge:C(()=>z.value.scrollLeft<=0),atXEndEdge:C(()=>z.value.scrollLeft>=D.value-r(F)),atYStartEdge:C(()=>z.value.scrollTop<=0),atYEndEdge:C(()=>z.value.scrollTop>=R.value-r(L))},($e,Te)=>{var ke,He,Xe,at;(He=(ke=O.value)==null?void 0:ke.onMouseUp)==null||He.call(ke),(at=(Xe=I.value)==null?void 0:Xe.onMouseUp)==null||at.call(Xe);const nt=r(F),be=r(L);oe({scrollLeft:Math.min(z.value.scrollLeft+$e,D.value-nt),scrollTop:Math.min(z.value.scrollTop+Te,R.value-be)})});wt(E,"wheel",ne,{passive:!1});const oe=({scrollLeft:$e=z.value.scrollLeft,scrollTop:Te=z.value.scrollTop})=>{$e=Math.max($e,0),Te=Math.max(Te,0);const ke=r(z);Te===ke.scrollTop&&$e===ke.scrollLeft||(z.value={...ke,xAxisScrollDir:Cl(ke.scrollLeft,$e),yAxisScrollDir:Cl(ke.scrollTop,Te),scrollLeft:$e,scrollTop:Te,updateRequested:!0},Oe(()=>ie()),fe(),K())},ce=($e=0,Te=0,ke=qn)=>{const He=r(z);Te=Math.max(0,Math.min(Te,p.totalColumn-1)),$e=Math.max(0,Math.min($e,p.totalRow-1));const Xe=Wv(w.namespace.value),at=r(S),nt=o(p,at),be=s(p,at);oe({scrollLeft:i(p,Te,ke,He.scrollLeft,at,be>p.width?Xe:0),scrollTop:u(p,$e,ke,He.scrollTop,at,nt>p.height?Xe:0)})},te=($e,Te)=>{const{columnWidth:ke,direction:He,rowHeight:Xe}=p,at=P.value(t&&ke,t&&Xe,t&&He),nt=`${$e},${Te}`;if(hn(at,nt))return at[nt];{const[,be]=n(p,Te,r(S)),je=r(S),ft=W2(He),[Ot,bt]=c(p,$e,je),[Pt]=n(p,Te,je);return at[nt]={position:"absolute",left:ft?void 0:`${be}px`,right:ft?`${be}px`:void 0,top:`${bt}px`,height:`${Ot}px`,width:`${Pt}px`},at[nt]}},ie=()=>{z.value.isScrolling=!1,Oe(()=>{P.value(-1,null,null)})};Ge(()=>{if(!ut)return;const{initScrollLeft:$e,initScrollTop:Te}=p,ke=r(E);ke&&(Ie($e)&&(ke.scrollLeft=$e),Ie(Te)&&(ke.scrollTop=Te)),K()});const fe=()=>{const{direction:$e}=p,{scrollLeft:Te,scrollTop:ke,updateRequested:He}=r(z),Xe=r(E);if(He&&Xe){if($e===ro)switch(ti()){case wr:{Xe.scrollLeft=-Te;break}case rf:{Xe.scrollLeft=Te;break}default:{const{clientWidth:at,scrollWidth:nt}=Xe;Xe.scrollLeft=nt-at-Te;break}}else Xe.scrollLeft=Math.max(0,Te);Xe.scrollTop=Math.max(0,ke)}},{resetAfterColumnIndex:Me,resetAfterRowIndex:me,resetAfter:le}=b.proxy;g({windowRef:E,innerRef:N,getItemStyleCache:P,scrollTo:oe,scrollToItem:ce,states:z,resetAfterColumnIndex:Me,resetAfterRowIndex:me,resetAfter:le});const we=()=>{const{scrollbarAlwaysOn:$e,scrollbarStartGap:Te,scrollbarEndGap:ke,totalColumn:He,totalRow:Xe}=p,at=r(F),nt=r(L),be=r(D),je=r(R),{scrollLeft:ft,scrollTop:Ot}=r(z),bt=Pe(hc,{ref:O,alwaysOn:$e,startGap:Te,endGap:ke,class:w.e("horizontal"),clientSize:at,layout:"horizontal",onScroll:j,ratio:at*100/be,scrollFrom:ft/(be-at),total:Xe,visible:!0}),Pt=Pe(hc,{ref:I,alwaysOn:$e,startGap:Te,endGap:ke,class:w.e("vertical"),clientSize:nt,layout:"vertical",onScroll:Z,ratio:nt*100/je,scrollFrom:Ot/(je-nt),total:He,visible:!0});return{horizontalScrollbar:bt,verticalScrollbar:Pt}},Le=()=>{var $e;const[Te,ke]=r(U),[He,Xe]=r(H),{data:at,totalColumn:nt,totalRow:be,useIsScrolling:je,itemKey:ft}=p,Ot=[];if(be>0&&nt>0)for(let bt=He;bt<=Xe;bt++)for(let Pt=Te;Pt<=ke;Pt++){const gt=ft({columnIndex:Pt,data:at,rowIndex:bt});Ot.push(Pe(ze,{key:gt},($e=M.default)==null?void 0:$e.call(M,{columnIndex:Pt,data:at,isScrolling:je?r(z).isScrolling:void 0,style:te(bt,Pt),rowIndex:bt})))}return Ot},De=()=>{const $e=et(p.innerElement),Te=Le();return[Pe($e,{style:r(V),ref:N},Ve($e)?Te:{default:()=>Te})]};return()=>{const $e=et(p.containerElement),{horizontalScrollbar:Te,verticalScrollbar:ke}=we(),He=De();return Pe("div",{key:0,class:w.e("wrapper"),role:p.role},[Pe($e,{class:p.className,style:r(B),onScroll:W,ref:E},Ve($e)?He:{default:()=>He}),Te,ke])}}}),{max:li,min:Xm,floor:Zm}=Math,FW={column:"columnWidth",row:"rowHeight"},xc={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},Aa=(e,t,n,a)=>{const[l,o,s]=[n[a],e[FW[a]],n[xc[a]]];if(t>s){let i=0;if(s>=0){const u=l[s];i=u.offset+u.size}for(let u=s+1;u<=t;u++){const c=o(u);l[u]={offset:i,size:c},i+=c}n[xc[a]]=t}return l[t]},Jm=(e,t,n,a,l,o)=>{for(;n<=a;){const s=n+Zm((a-n)/2),i=Aa(e,s,t,o).offset;if(i===l)return s;i{const o=l==="column"?e.totalColumn:e.totalRow;let s=1;for(;n{const[l,o]=[t[a],t[xc[a]]];return(o>0?l[o].offset:0)>=n?Jm(e,t,0,o,n,a):KW(e,t,li(0,o),n,a)},Qm=({totalRow:e},{estimatedRowHeight:t,lastVisitedRowIndex:n,row:a})=>{let l=0;if(n>=e&&(n=e-1),n>=0){const i=a[n];l=i.offset+i.size}const s=(e-n-1)*t;return l+s},e4=({totalColumn:e},{column:t,estimatedColumnWidth:n,lastVisitedColumnIndex:a})=>{let l=0;if(a>e&&(a=e-1),a>=0){const i=t[a];l=i.offset+i.size}const s=(e-a-1)*n;return l+s},WW={column:e4,row:Qm},up=(e,t,n,a,l,o,s)=>{const[i,u]=[o==="row"?e.height:e.width,WW[o]],c=Aa(e,t,l,o),d=u(e,l),f=li(0,Xm(d-i,c.offset)),h=li(0,c.offset-i+s+c.size);switch(n===Ri&&(a>=h-i&&a<=f+i?n=qn:n=_a),n){case _r:return f;case br:return h;case _a:return Math.round(h+(f-h)/2);case qn:default:return a>=h&&a<=f?a:h>f||a{const a=Aa(e,t,n,"column");return[a.size,a.offset]},getRowPosition:(e,t,n)=>{const a=Aa(e,t,n,"row");return[a.size,a.offset]},getColumnOffset:(e,t,n,a,l,o)=>up(e,t,n,a,l,"column",o),getRowOffset:(e,t,n,a,l,o)=>up(e,t,n,a,l,"row",o),getColumnStartIndexForOffset:(e,t,n)=>ip(e,n,t,"column"),getColumnStopIndexForStartIndex:(e,t,n,a)=>{const l=Aa(e,t,a,"column"),o=n+e.width;let s=l.offset+l.size,i=t;for(;iip(e,n,t,"row"),getRowStopIndexForStartIndex:(e,t,n,a)=>{const{totalRow:l,height:o}=e,s=Aa(e,t,a,"row"),i=n+o;let u=s.size+s.offset,c=t;for(;c{const n=({columnIndex:o,rowIndex:s},i)=>{var u,c;i=vt(i)?!0:i,Ie(o)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,o-1)),Ie(s)&&(t.value.lastVisitedRowIndex=Math.min(t.value.lastVisitedRowIndex,s-1)),(u=e.exposed)==null||u.getItemStyleCache.value(-1,null,null),i&&((c=e.proxy)==null||c.$forceUpdate())},a=(o,s)=>{n({columnIndex:o},s)},l=(o,s)=>{n({rowIndex:o},s)};Object.assign(e.proxy,{resetAfterColumnIndex:a,resetAfterRowIndex:l,resetAfter:n})},initCache:({estimatedColumnWidth:e=uc,estimatedRowHeight:t=uc})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{}}),qW=Gm({name:"ElFixedSizeGrid",getColumnPosition:({columnWidth:e},t)=>[e,t*e],getRowPosition:({rowHeight:e},t)=>[e,t*e],getEstimatedTotalHeight:({totalRow:e,rowHeight:t})=>t*e,getEstimatedTotalWidth:({totalColumn:e,columnWidth:t})=>t*e,getColumnOffset:({totalColumn:e,columnWidth:t,width:n},a,l,o,s,i)=>{n=Number(n);const u=Math.max(0,e*t-n),c=Math.min(u,a*t),d=Math.max(0,a*t-n+i+t);switch(l==="smart"&&(o>=d-n&&o<=c+n?l=qn:l=_a),l){case _r:return c;case br:return d;case _a:{const f=Math.round(d+(c-d)/2);return fu+Math.floor(n/2)?u:f}case qn:default:return o>=d&&o<=c?o:d>c||o{t=Number(t);const u=Math.max(0,n*e-t),c=Math.min(u,a*e),d=Math.max(0,a*e-t+i+e);switch(l===Ri&&(o>=d-t&&o<=c+t?l=qn:l=_a),l){case _r:return c;case br:return d;case _a:{const f=Math.round(d+(c-d)/2);return fu+Math.floor(t/2)?u:f}case qn:default:return o>=d&&o<=c?o:d>c||oMath.max(0,Math.min(t-1,Math.floor(n/e))),getColumnStopIndexForStartIndex:({columnWidth:e,totalColumn:t,width:n},a,l)=>{const o=a*e,s=Math.ceil((n+l-o)/e);return Math.max(0,Math.min(t-1,a+s-1))},getRowStartIndexForOffset:({rowHeight:e,totalRow:t},n)=>Math.max(0,Math.min(t-1,Math.floor(n/e))),getRowStopIndexForStartIndex:({rowHeight:e,totalRow:t,height:n},a,l)=>{const o=a*e,s=Math.ceil((n+l-o)/e);return Math.max(0,Math.min(t-1,a+s-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:e,rowHeight:t})=>{}}),UW="ElTableV2Grid",YW=e=>{const t=A(),n=A(),a=A(0),l=C(()=>{const{data:y,rowHeight:g,estimatedRowHeight:M}=e;if(!M)return y.length*g}),o=C(()=>{const{fixedData:y,rowHeight:g}=e;return((y==null?void 0:y.length)||0)*g}),s=C(()=>Ps(e.headerHeight)),i=C(()=>{const{height:y}=e;return Math.max(0,y-r(s)-r(o))}),u=C(()=>r(s)+r(o)>0),c=({data:y,rowIndex:g})=>y[g][e.rowKey];function d({rowCacheStart:y,rowCacheEnd:g,rowVisibleStart:M,rowVisibleEnd:w}){var b;(b=e.onRowsRendered)==null||b.call(e,{rowCacheStart:y,rowCacheEnd:g,rowVisibleStart:M,rowVisibleEnd:w})}function f(y,g){var M;(M=n.value)==null||M.resetAfterRowIndex(y,g)}function h(y,g){const M=r(t),w=r(n);ht(y)?(M==null||M.scrollToLeft(y.scrollLeft),a.value=y.scrollLeft,w==null||w.scrollTo(y)):(M==null||M.scrollToLeft(y),a.value=y,w==null||w.scrollTo({scrollLeft:y,scrollTop:g}))}function v(y){var g;(g=r(n))==null||g.scrollTo({scrollTop:y})}function m(y,g){var M;(M=r(n))==null||M.scrollToItem(y,1,g)}function p(){var y,g;(y=r(n))==null||y.$forceUpdate(),(g=r(t))==null||g.$forceUpdate()}return{bodyRef:n,forceUpdate:p,fixedRowHeight:o,gridHeight:i,hasHeader:u,headerHeight:s,headerRef:t,totalHeight:l,itemKey:c,onItemRendered:d,resetAfterRowIndex:f,scrollTo:h,scrollToTop:v,scrollToRow:m,scrollLeft:a}},GW=T({name:UW,props:zs,setup(e,{slots:t,expose:n}){const{ns:a}=Se(ff),{bodyRef:l,fixedRowHeight:o,gridHeight:s,hasHeader:i,headerRef:u,headerHeight:c,totalHeight:d,forceUpdate:f,itemKey:h,onItemRendered:v,resetAfterRowIndex:m,scrollTo:p,scrollToTop:y,scrollToRow:g,scrollLeft:M}=YW(e);it("tableV2GridScrollLeft",M),n({forceUpdate:f,totalHeight:d,scrollTo:p,scrollToTop:y,scrollToRow:g,resetAfterRowIndex:m});const w=()=>e.bodyWidth;return()=>{const{cache:b,columns:S,data:E,fixedData:O,useIsScrolling:I,scrollbarAlwaysOn:N,scrollbarEndGap:z,scrollbarStartGap:P,style:L,rowHeight:F,bodyWidth:U,estimatedRowHeight:H,headerWidth:R,height:D,width:B,getRowHeight:V,onScroll:K}=e,W=Ie(H),Z=W?jW:qW,j=r(c);return q("div",{role:"table",class:[a.e("table"),e.class],style:L},[q(Z,{ref:l,data:E,useIsScrolling:I,itemKey:h,columnCache:0,columnWidth:W?w:U,totalColumn:1,totalRow:E.length,rowCache:b,rowHeight:W?V:F,width:B,height:r(s),class:a.e("body"),role:"rowgroup",scrollbarStartGap:P,scrollbarEndGap:z,scrollbarAlwaysOn:N,onScroll:K,onItemRendered:v,perfMode:!1},{default:ne=>{var oe;const ce=E[ne.rowIndex];return(oe=t.row)==null?void 0:oe.call(t,{...ne,columns:S,rowData:ce})}}),r(i)&&q(HW,{ref:u,class:a.e("header-wrapper"),columns:S,headerData:E,headerHeight:e.headerHeight,fixedHeaderData:O,rowWidth:R,rowHeight:F,width:B,height:Math.min(j+r(o),D)},{dynamic:t.header,fixed:t.row})])}}});var hf=GW;function XW(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ft(e)}const ZW=(e,{slots:t})=>{const{mainTableRef:n,...a}=e;return q(hf,tt({ref:n},a),XW(t)?t:{default:()=>[t]})};var JW=ZW;function QW(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ft(e)}const ej=(e,{slots:t})=>{if(!e.columns.length)return;const{leftTableRef:n,...a}=e;return q(hf,tt({ref:n},a),QW(t)?t:{default:()=>[t]})};var tj=ej;function nj(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ft(e)}const aj=(e,{slots:t})=>{if(!e.columns.length)return;const{rightTableRef:n,...a}=e;return q(hf,tt({ref:n},a),nj(t)?t:{default:()=>[t]})};var lj=aj;const oj=e=>{const{isScrolling:t}=Se(ff),n=A(!1),a=A(),l=C(()=>Ie(e.estimatedRowHeight)&&e.rowIndex>=0),o=(u=!1)=>{const c=r(a);if(!c)return;const{columns:d,onRowHeightChange:f,rowKey:h,rowIndex:v,style:m}=e,{height:p}=c.getBoundingClientRect();n.value=!0,Oe(()=>{if(u||p!==Number.parseInt(m.height)){const y=d[0],g=(y==null?void 0:y.placeholderSign)===Er;f==null||f({rowKey:h,height:p,rowIndex:v},y&&!g&&y.fixed)}})},s=C(()=>{const{rowData:u,rowIndex:c,rowKey:d,onRowHover:f}=e,h=e.rowEventHandlers||{},v={};return Object.entries(h).forEach(([m,p])=>{Qe(p)&&(v[m]=y=>{p({event:y,rowData:u,rowIndex:c,rowKey:d})})}),f&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:m,hovered:p})=>{const y=v[m];v[m]=g=>{f({event:g,hovered:p,rowData:u,rowIndex:c,rowKey:d}),y==null||y(g)}}),v}),i=u=>{const{onRowExpand:c,rowData:d,rowIndex:f,rowKey:h}=e;c==null||c({expanded:u,rowData:d,rowIndex:f,rowKey:h})};return Ge(()=>{r(l)&&o(!0)}),{isScrolling:t,measurable:l,measured:n,rowRef:a,eventHandlers:s,onExpand:i}},rj="ElTableV2TableRow",sj=T({name:rj,props:Sl,setup(e,{expose:t,slots:n,attrs:a}){const{eventHandlers:l,isScrolling:o,measurable:s,measured:i,rowRef:u,onExpand:c}=oj(e);return t({onExpand:c}),()=>{const{columns:d,columnsStyles:f,expandColumnKey:h,depth:v,rowData:m,rowIndex:p,style:y}=e;let g=d.map((M,w)=>{const b=Ee(m.children)&&m.children.length>0&&M.key===h;return n.cell({column:M,columns:d,columnIndex:w,depth:v,style:f[M.key],rowData:m,rowIndex:p,isScrolling:r(o),expandIconProps:b?{rowData:m,rowIndex:p,onExpand:c}:void 0})});if(n.row&&(g=n.row({cells:g.map(M=>Ee(M)&&M.length===1?M[0]:M),style:y,columns:d,depth:v,rowData:m,rowIndex:p,isScrolling:r(o)})),r(s)){const{height:M,...w}=y||{},b=r(i);return q("div",tt({ref:u,class:e.class,style:b?y:w,role:"row"},a,r(l)),[g])}return q("div",tt(a,{ref:u,class:e.class,style:y,role:"row"},r(l)),[g])}}});var ij=sj;function uj(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ft(e)}const cj=(e,{slots:t})=>{const{columns:n,columnsStyles:a,depthMap:l,expandColumnKey:o,expandedRowKeys:s,estimatedRowHeight:i,hasFixedColumns:u,rowData:c,rowIndex:d,style:f,isScrolling:h,rowProps:v,rowClass:m,rowKey:p,rowEventHandlers:y,ns:g,onRowHovered:M,onRowExpanded:w}=e,b=Al(m,{columns:n,rowData:c,rowIndex:d},""),S=Al(v,{columns:n,rowData:c,rowIndex:d}),E=c[p],O=l[E]||0,I=!!o,N=d<0,z=[g.e("row"),b,{[g.e(`row-depth-${O}`)]:I&&d>=0,[g.is("expanded")]:I&&s.includes(E),[g.is("fixed")]:!O&&N,[g.is("customized")]:!!t.row}],P=u?M:void 0,L={...S,columns:n,columnsStyles:a,class:z,depth:O,expandColumnKey:o,estimatedRowHeight:N?void 0:i,isScrolling:h,rowIndex:d,rowData:c,rowKey:E,rowEventHandlers:y,style:f};return q(ij,tt(L,{onRowExpand:w,onMouseenter:H=>{P==null||P({hovered:!0,rowKey:E,event:H,rowData:c,rowIndex:d})},onMouseleave:H=>{P==null||P({hovered:!1,rowKey:E,event:H,rowData:c,rowIndex:d})},rowkey:E}),uj(t)?t:{default:()=>[t]})};var dj=cj;const mf=(e,{slots:t})=>{var n;const{cellData:a,style:l}=e,o=((n=a==null?void 0:a.toString)==null?void 0:n.call(a))||"",s=Q(t,"default",e,()=>[o]);return q("div",{class:e.class,title:o,style:l},[s])};mf.displayName="ElTableV2Cell";mf.inheritAttrs=!1;var fj=mf;const pj=e=>{const{expanded:t,expandable:n,onExpand:a,style:l,size:o}=e,s={onClick:n?()=>a(!t):void 0,class:e.class};return q(xe,tt(s,{size:o,style:l}),{default:()=>[q(En,null,null)]})};var vj=pj;const t4=({columns:e,column:t,columnIndex:n,depth:a,expandIconProps:l,isScrolling:o,rowData:s,rowIndex:i,style:u,expandedRowKeys:c,ns:d,cellProps:f,expandColumnKey:h,indentSize:v,iconSize:m,rowKey:p},{slots:y})=>{const g=nl(u);if(t.placeholderSign===Er)return q("div",{class:d.em("row-cell","placeholder"),style:g},null);const{cellRenderer:M,dataKey:w,dataGetter:b}=t,S=Qe(b)?b({columns:e,column:t,columnIndex:n,rowData:s,rowIndex:i}):Kt(s,w??""),E=Al(f,{cellData:S,columns:e,column:t,columnIndex:n,rowIndex:i,rowData:s}),O={class:d.e("cell-text"),columns:e,column:t,columnIndex:n,cellData:S,isScrolling:o,rowData:s,rowIndex:i},I=jm(M),N=I?I(O):Q(y,"default",O,()=>[q(fj,O,null)]),z=[d.e("row-cell"),t.class,t.align===kr.CENTER&&d.is("align-center"),t.align===kr.RIGHT&&d.is("align-right")],P=i>=0&&h&&t.key===h,L=i>=0&&c.includes(s[p]);let F;const U=`margin-inline-start: ${a*v}px;`;return P&&(ht(l)?F=q(vj,tt(l,{class:[d.e("expand-icon"),d.is("expanded",L)],size:m,expanded:L,style:U,expandable:!0}),null):F=q("div",{style:[U,`width: ${m}px; height: ${m}px;`].join(" ")},null)),q("div",tt({class:z,style:g},E,{role:"cell"}),[F,N])};t4.inheritAttrs=!1;var cp=t4;const hj=pe({class:String,columns:Dr,columnsStyles:{type:X(Object),required:!0},headerIndex:Number,style:{type:X(Object)}}),mj=T({name:"ElTableV2HeaderRow",props:hj,setup(e,{slots:t}){return()=>{const{columns:n,columnsStyles:a,headerIndex:l,style:o}=e;let s=n.map((i,u)=>t.cell({columns:n,column:i,columnIndex:u,headerIndex:l,style:a[i.key]}));return t.header&&(s=t.header({cells:s.map(i=>Ee(i)&&i.length===1?i[0]:i),columns:n,headerIndex:l})),q("div",{class:e.class,style:o,role:"row"},[s])}}});var gj=mj;function yj(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ft(e)}const _j=({columns:e,columnsStyles:t,headerIndex:n,style:a,headerClass:l,headerProps:o,ns:s},{slots:i})=>{const u={columns:e,headerIndex:n},c=[s.e("header-row"),Al(l,u,""),{[s.is("customized")]:!!i.header}],d={...Al(o,u),columnsStyles:t,class:c,columns:e,headerIndex:n,style:a};return q(gj,d,yj(i)?i:{default:()=>[i]})};var bj=_j;const gf=(e,{slots:t})=>Q(t,"default",e,()=>{var n,a;return[q("div",{class:e.class,title:(n=e.column)==null?void 0:n.title},[(a=e.column)==null?void 0:a.title])]});gf.displayName="ElTableV2HeaderCell";gf.inheritAttrs=!1;var wj=gf;const Cj=e=>{const{sortOrder:t}=e;return q(xe,{size:14,class:e.class},{default:()=>[t===Sr.ASC?q(c1,null,null):q(u1,null,null)]})};var Sj=Cj;const kj=(e,{slots:t})=>{const{column:n,ns:a,style:l,onColumnSorted:o}=e,s=nl(l);if(n.placeholderSign===Er)return q("div",{class:a.em("header-row-cell","placeholder"),style:s},null);const{headerCellRenderer:i,headerClass:u,sortable:c}=n,d={...e,class:a.e("header-cell-text")},f=jm(i),h=f?f(d):Q(t,"default",d,()=>[q(wj,d,null)]),{sortBy:v,sortState:m,headerCellProps:p}=e;let y,g;if(m){const b=m[n.key];y=!!Mc[b],g=y?b:Sr.ASC}else y=n.key===v.key,g=y?v.order:Sr.ASC;const M=[a.e("header-cell"),Al(u,e,""),n.align===kr.CENTER&&a.is("align-center"),n.align===kr.RIGHT&&a.is("align-right"),c&&a.is("sortable")],w={...Al(p,e),onClick:n.sortable?o:void 0,class:M,style:s,"data-key":n.key};return q("div",tt(w,{role:"columnheader"}),[h,c&&q(Sj,{class:[a.e("sort-icon"),y&&a.is("sorting")],sortOrder:g},null)])};var dp=kj;const n4=(e,{slots:t})=>{var n;return q("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};n4.displayName="ElTableV2Footer";var Ej=n4;const a4=(e,{slots:t})=>{const n=Q(t,"default",{},()=>[q(Xh,null,null)]);return q("div",{class:e.class,style:e.style},[n])};a4.displayName="ElTableV2Empty";var Mj=a4;const l4=(e,{slots:t})=>{var n;return q("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};l4.displayName="ElTableV2Overlay";var xj=l4;function Yo(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ft(e)}const $j="ElTableV2",Tj=T({name:$j,props:LW,setup(e,{slots:t,expose:n}){const a=de("table-v2"),{columnsStyles:l,fixedColumnsOnLeft:o,fixedColumnsOnRight:s,mainColumns:i,mainTableHeight:u,fixedTableHeight:c,leftTableWidth:d,rightTableWidth:f,data:h,depthMap:v,expandedRowKeys:m,hasFixedColumns:p,mainTableRef:y,leftTableRef:g,rightTableRef:M,isDynamic:w,isResetting:b,isScrolling:S,bodyWidth:E,emptyStyle:O,rootStyle:I,headerWidth:N,footerHeight:z,showEmpty:P,scrollTo:L,scrollToLeft:F,scrollToTop:U,scrollToRow:H,getRowHeight:R,onColumnSorted:D,onRowHeightChange:B,onRowHovered:V,onRowExpanded:K,onRowsRendered:W,onScroll:Z,onVerticalScroll:j}=AW(e);return n({scrollTo:L,scrollToLeft:F,scrollToTop:U,scrollToRow:H}),it(ff,{ns:a,isResetting:b,isScrolling:S}),()=>{const{cache:ne,cellProps:oe,estimatedRowHeight:ce,expandColumnKey:te,fixedData:ie,headerHeight:fe,headerClass:Me,headerProps:me,headerCellProps:le,sortBy:we,sortState:Le,rowHeight:De,rowClass:Ye,rowEventHandlers:$e,rowKey:Te,rowProps:ke,scrollbarAlwaysOn:He,indentSize:Xe,iconSize:at,useIsScrolling:nt,vScrollbarSize:be,width:je}=e,ft=r(h),Ot={cache:ne,class:a.e("main"),columns:r(i),data:ft,fixedData:ie,estimatedRowHeight:ce,bodyWidth:r(E)+be,headerHeight:fe,headerWidth:r(N),height:r(u),mainTableRef:y,rowKey:Te,rowHeight:De,scrollbarAlwaysOn:He,scrollbarStartGap:2,scrollbarEndGap:be,useIsScrolling:nt,width:je,getRowHeight:R,onRowsRendered:W,onScroll:Z},bt=r(d),Pt=r(c),gt={cache:ne,class:a.e("left"),columns:r(o),data:ft,estimatedRowHeight:ce,leftTableRef:g,rowHeight:De,bodyWidth:bt,headerWidth:bt,headerHeight:fe,height:Pt,rowKey:Te,scrollbarAlwaysOn:He,scrollbarStartGap:2,scrollbarEndGap:be,useIsScrolling:nt,width:bt,getRowHeight:R,onScroll:j},Wt=r(f)+be,re={cache:ne,class:a.e("right"),columns:r(s),data:ft,estimatedRowHeight:ce,rightTableRef:M,rowHeight:De,bodyWidth:Wt,headerWidth:Wt,headerHeight:fe,height:Pt,rowKey:Te,scrollbarAlwaysOn:He,scrollbarStartGap:2,scrollbarEndGap:be,width:Wt,style:`--${r(a.namespace)}-table-scrollbar-size: ${be}px`,useIsScrolling:nt,getRowHeight:R,onScroll:j},J=r(l),ue={ns:a,depthMap:r(v),columnsStyles:J,expandColumnKey:te,expandedRowKeys:r(m),estimatedRowHeight:ce,hasFixedColumns:r(p),rowProps:ke,rowClass:Ye,rowKey:Te,rowEventHandlers:$e,onRowHovered:V,onRowExpanded:K,onRowHeightChange:B},Y={cellProps:oe,expandColumnKey:te,indentSize:Xe,iconSize:at,rowKey:Te,expandedRowKeys:r(m),ns:a},ye={ns:a,headerClass:Me,headerProps:me,columnsStyles:J},Fe={ns:a,sortBy:we,sortState:Le,headerCellProps:le,onColumnSorted:D},lt={row:Jt=>q(dj,tt(Jt,ue),{row:t.row,cell:$t=>{let ln;return t.cell?q(cp,tt($t,Y,{style:J[$t.column.key]}),Yo(ln=t.cell($t))?ln:{default:()=>[ln]}):q(cp,tt($t,Y,{style:J[$t.column.key]}),null)}}),header:Jt=>q(bj,tt(Jt,ye),{header:t.header,cell:$t=>{let ln;return t["header-cell"]?q(dp,tt($t,Fe,{style:J[$t.column.key]}),Yo(ln=t["header-cell"]($t))?ln:{default:()=>[ln]}):q(dp,tt($t,Fe,{style:J[$t.column.key]}),null)}})},Nt=[e.class,a.b(),a.e("root"),{[a.is("dynamic")]:r(w)}],Ut={class:a.e("footer"),style:r(z)};return q("div",{class:Nt,style:r(I)},[q(JW,Ot,Yo(lt)?lt:{default:()=>[lt]}),q(tj,gt,Yo(lt)?lt:{default:()=>[lt]}),q(lj,re,Yo(lt)?lt:{default:()=>[lt]}),t.footer&&q(Ej,Ut,{default:t.footer}),r(P)&&q(Mj,{class:a.e("empty"),style:r(O)},{default:t.empty}),t.overlay&&q(xj,{class:a.e("overlay")},{default:t.overlay})])}}});var Oj=Tj;const Nj=pe({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:X(Function)}}),Ij=e=>{const t=A(),n=A(0),a=A(0);let l;return Ge(()=>{l=At(t,([o])=>{const{width:s,height:i}=o.contentRect,{paddingLeft:u,paddingRight:c,paddingTop:d,paddingBottom:f}=getComputedStyle(o.target),h=Number.parseInt(u)||0,v=Number.parseInt(c)||0,m=Number.parseInt(d)||0,p=Number.parseInt(f)||0;n.value=s-h-v,a.value=i-m-p}).stop}),Tt(()=>{l==null||l()}),se([n,a],([o,s])=>{var i;(i=e.onResize)==null||i.call(e,{width:o,height:s})}),{sizer:t,width:n,height:a}},Pj=T({name:"ElAutoResizer",props:Nj,setup(e,{slots:t}){const n=de("auto-resizer"),{height:a,width:l,sizer:o}=Ij(e),s={width:"100%",height:"100%"};return()=>{var i;return q("div",{ref:o,class:n.b(),style:s},[(i=t.default)==null?void 0:i.call(t,{height:a.value,width:l.value})])}}});var zj=Pj;const Aj=We(Oj),Vj=We(zj),Bi=Symbol("tabsRootContextKey"),Lj=pe({tabs:{type:X(Array),default:()=>Vt([])}}),o4="ElTabBar",Rj=T({name:o4}),Bj=T({...Rj,props:Lj,setup(e,{expose:t}){const n=e,a=Ze(),l=Se(Bi);l||Gt(o4,"");const o=de("tabs"),s=A(),i=A(),u=()=>{let v=0,m=0;const p=["top","bottom"].includes(l.props.tabPosition)?"width":"height",y=p==="width"?"x":"y",g=y==="x"?"left":"top";return n.tabs.every(M=>{var w,b;const S=(b=(w=a.parent)==null?void 0:w.refs)==null?void 0:b[`tab-${M.uid}`];if(!S)return!1;if(!M.active)return!0;v=S[`offset${ya(g)}`],m=S[`client${ya(p)}`];const E=window.getComputedStyle(S);return p==="width"&&(m-=Number.parseFloat(E.paddingLeft)+Number.parseFloat(E.paddingRight),v+=Number.parseFloat(E.paddingLeft)),!1}),{[p]:`${m}px`,transform:`translate${ya(y)}(${v}px)`}},c=()=>i.value=u(),d=[],f=()=>{var v;d.forEach(p=>p.stop()),d.length=0;const m=(v=a.parent)==null?void 0:v.refs;if(m){for(const p in m)if(p.startsWith("tab-")){const y=m[p];y&&d.push(At(y,c))}}};se(()=>n.tabs,async()=>{await Oe(),c(),f()},{immediate:!0});const h=At(s,()=>c());return Tt(()=>{d.forEach(v=>v.stop()),d.length=0,h.stop()}),t({ref:s,update:c}),(v,m)=>(_(),x("div",{ref_key:"barRef",ref:s,class:$([r(o).e("active-bar"),r(o).is(r(l).props.tabPosition)]),style:Ne(i.value)},null,6))}});var Hj=ve(Bj,[["__file","tab-bar.vue"]]);const Dj=pe({panes:{type:X(Array),default:()=>Vt([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),Fj={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},fp="ElTabNav",Kj=T({name:fp,props:Dj,emits:Fj,setup(e,{expose:t,emit:n}){const a=Se(Bi);a||Gt(fp,"");const l=de("tabs"),o=sb(),s=_b(),i=A(),u=A(),c=A(),d=A(),f=A(!1),h=A(0),v=A(!1),m=A(!0),p=C(()=>["top","bottom"].includes(a.props.tabPosition)?"width":"height"),y=C(()=>({transform:`translate${p.value==="width"?"X":"Y"}(-${h.value}px)`})),g=()=>{if(!i.value)return;const I=i.value[`offset${ya(p.value)}`],N=h.value;if(!N)return;const z=N>I?N-I:0;h.value=z},M=()=>{if(!i.value||!u.value)return;const I=u.value[`offset${ya(p.value)}`],N=i.value[`offset${ya(p.value)}`],z=h.value;if(I-z<=N)return;const P=I-z>N*2?z+N:I-N;h.value=P},w=async()=>{const I=u.value;if(!f.value||!c.value||!i.value||!I)return;await Oe();const N=c.value.querySelector(".is-active");if(!N)return;const z=i.value,P=["top","bottom"].includes(a.props.tabPosition),L=N.getBoundingClientRect(),F=z.getBoundingClientRect(),U=P?I.offsetWidth-F.width:I.offsetHeight-F.height,H=h.value;let R=H;P?(L.leftF.right&&(R=H+L.right-F.right)):(L.topF.bottom&&(R=H+(L.bottom-F.bottom))),R=Math.max(R,0),h.value=Math.min(R,U)},b=()=>{var I;if(!u.value||!i.value)return;e.stretch&&((I=d.value)==null||I.update());const N=u.value[`offset${ya(p.value)}`],z=i.value[`offset${ya(p.value)}`],P=h.value;z0&&(h.value=0))},S=I=>{let N=0;switch(I.code){case Ce.left:case Ce.up:N=-1;break;case Ce.right:case Ce.down:N=1;break;default:return}const z=Array.from(I.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)"));let L=z.indexOf(I.target)+N;L<0?L=z.length-1:L>=z.length&&(L=0),z[L].focus({preventScroll:!0}),z[L].click(),E()},E=()=>{m.value&&(v.value=!0)},O=()=>v.value=!1;return se(o,I=>{I==="hidden"?m.value=!1:I==="visible"&&setTimeout(()=>m.value=!0,50)}),se(s,I=>{I?setTimeout(()=>m.value=!0,50):m.value=!1}),At(c,b),Ge(()=>setTimeout(()=>w(),0)),ja(()=>b()),t({scrollToActiveTab:w,removeFocus:O}),()=>{const I=f.value?[q("span",{class:[l.e("nav-prev"),l.is("disabled",!f.value.prev)],onClick:g},[q(xe,null,{default:()=>[q(Ra,null,null)]})]),q("span",{class:[l.e("nav-next"),l.is("disabled",!f.value.next)],onClick:M},[q(xe,null,{default:()=>[q(En,null,null)]})])]:null,N=e.panes.map((z,P)=>{var L,F,U,H;const R=z.uid,D=z.props.disabled,B=(F=(L=z.props.name)!=null?L:z.index)!=null?F:`${P}`,V=!D&&(z.isClosable||e.editable);z.index=`${P}`;const K=V?q(xe,{class:"is-icon-close",onClick:j=>n("tabRemove",z,j)},{default:()=>[q(Xn,null,null)]}):null,W=((H=(U=z.slots).label)==null?void 0:H.call(U))||z.props.label,Z=!D&&z.active?0:-1;return q("div",{ref:`tab-${R}`,class:[l.e("item"),l.is(a.props.tabPosition),l.is("active",z.active),l.is("disabled",D),l.is("closable",V),l.is("focus",v.value)],id:`tab-${B}`,key:`tab-${R}`,"aria-controls":`pane-${B}`,role:"tab","aria-selected":z.active,tabindex:Z,onFocus:()=>E(),onBlur:()=>O(),onClick:j=>{O(),n("tabClick",z,B,j)},onKeydown:j=>{V&&(j.code===Ce.delete||j.code===Ce.backspace)&&n("tabRemove",z,j)}},[W,K])});return q("div",{ref:c,class:[l.e("nav-wrap"),l.is("scrollable",!!f.value),l.is(a.props.tabPosition)]},[I,q("div",{class:l.e("nav-scroll"),ref:i},[q("div",{class:[l.e("nav"),l.is(a.props.tabPosition),l.is("stretch",e.stretch&&["top","bottom"].includes(a.props.tabPosition))],ref:u,style:y.value,role:"tablist",onKeydown:S},[e.type?null:q(Hj,{ref:d,tabs:[...e.panes]},null),N])])])}}}),Wj=pe({type:{type:String,values:["card","border-card",""],default:""},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:X(Function),default:()=>!0},stretch:Boolean}),wu=e=>Ve(e)||Ie(e),jj={[Ue]:e=>wu(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>wu(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>wu(e),tabAdd:()=>!0},qj=T({name:"ElTabs",props:Wj,emits:jj,setup(e,{emit:t,slots:n,expose:a}){var l;const o=de("tabs"),s=C(()=>["left","right"].includes(e.tabPosition)),{children:i,addChild:u,removeChild:c}=Vd(Ze(),"ElTabPane"),d=A(),f=A((l=e.modelValue)!=null?l:"0"),h=async(g,M=!1)=>{var w,b;if(!(f.value===g||vt(g)))try{let S;if(e.beforeLeave){const E=e.beforeLeave(g,f.value);S=E instanceof Promise?await E:E}else S=!0;S!==!1&&(f.value=g,M&&(t(Ue,g),t("tabChange",g)),(b=(w=d.value)==null?void 0:w.removeFocus)==null||b.call(w))}catch{}},v=(g,M,w)=>{g.props.disabled||(h(M,!0),t("tabClick",g,w))},m=(g,M)=>{g.props.disabled||vt(g.props.name)||(M.stopPropagation(),t("edit",g.props.name,"remove"),t("tabRemove",g.props.name))},p=()=>{t("edit",void 0,"add"),t("tabAdd")};se(()=>e.modelValue,g=>h(g)),se(f,async()=>{var g;await Oe(),(g=d.value)==null||g.scrollToActiveTab()}),it(Bi,{props:e,currentName:f,registerPane:g=>{i.value.push(g)},sortPane:u,unregisterPane:c}),a({currentName:f});const y=({render:g})=>g();return()=>{const g=n["add-icon"],M=e.editable||e.addable?q("div",{class:[o.e("new-tab"),s.value&&o.e("new-tab-vertical")],tabindex:"0",onClick:p,onKeydown:S=>{[Ce.enter,Ce.numpadEnter].includes(S.code)&&p()}},[g?Q(n,"add-icon"):q(xe,{class:o.is("icon-plus")},{default:()=>[q(md,null,null)]})]):null,w=q("div",{class:[o.e("header"),s.value&&o.e("header-vertical"),o.is(e.tabPosition)]},[q(y,{render:()=>{const S=i.value.some(E=>E.slots.label);return q(Kj,{ref:d,currentName:f.value,editable:e.editable,type:e.type,panes:i.value,stretch:e.stretch,onTabClick:v,onTabRemove:m},{$stable:!S})}},null),M]),b=q("div",{class:o.e("content")},[Q(n,"default")]);return q("div",{class:[o.b(),o.m(e.tabPosition),{[o.m("card")]:e.type==="card",[o.m("border-card")]:e.type==="border-card"}]},[b,w])}}});var Uj=qj;const Yj=pe({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),r4="ElTabPane",Gj=T({name:r4}),Xj=T({...Gj,props:Yj,setup(e){const t=e,n=Ze(),a=Xt(),l=Se(Bi);l||Gt(r4,"usage: ");const o=de("tab-pane"),s=A(),i=C(()=>t.closable||l.props.closable),u=Lu(()=>{var v;return l.currentName.value===((v=t.name)!=null?v:s.value)}),c=A(u.value),d=C(()=>{var v;return(v=t.name)!=null?v:s.value}),f=Lu(()=>!t.lazy||c.value||u.value);se(u,v=>{v&&(c.value=!0)});const h=_t({uid:n.uid,slots:a,props:t,paneName:d,active:u,index:s,isClosable:i});return l.registerPane(h),Ge(()=>{l.sortPane(h)}),To(()=>{l.unregisterPane(h.uid)}),(v,m)=>r(f)?qe((_(),x("div",{key:0,id:`pane-${r(d)}`,class:$(r(o).b()),role:"tabpanel","aria-hidden":!r(u),"aria-labelledby":`tab-${r(d)}`},[Q(v.$slots,"default")],10,["id","aria-hidden","aria-labelledby"])),[[pt,r(u)]]):ee("v-if",!0)}});var s4=ve(Xj,[["__file","tab-pane.vue"]]);const Zj=We(Uj,{TabPane:s4}),Jj=Lt(s4),Qj=pe({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:xa,default:""},truncated:Boolean,lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}}),eq=T({name:"ElText"}),tq=T({...eq,props:Qj,setup(e){const t=e,n=A(),a=jt(),l=de("text"),o=C(()=>[l.b(),l.m(t.type),l.m(a.value),l.is("truncated",t.truncated),l.is("line-clamp",!vt(t.lineClamp))]),s=Wa().title,i=()=>{var u,c,d,f,h;if(s)return;let v=!1;const m=((u=n.value)==null?void 0:u.textContent)||"";if(t.truncated){const p=(c=n.value)==null?void 0:c.offsetWidth,y=(d=n.value)==null?void 0:d.scrollWidth;p&&y&&y>p&&(v=!0)}else if(!vt(t.lineClamp)){const p=(f=n.value)==null?void 0:f.offsetHeight,y=(h=n.value)==null?void 0:h.scrollHeight;p&&y&&y>p&&(v=!0)}v?n.value.setAttribute("title",m):n.value.removeAttribute("title")};return Ge(i),ja(i),(u,c)=>(_(),ae(et(u.tag),{ref_key:"textRef",ref:n,class:$(r(o)),style:Ne({"-webkit-line-clamp":u.lineClamp})},{default:G(()=>[Q(u.$slots,"default")]),_:3},8,["class","style"]))}});var nq=ve(tq,[["__file","text.vue"]]);const aq=We(nq),lq=pe({format:{type:String,default:"HH:mm"},modelValue:String,disabled:Boolean,editable:{type:Boolean,default:!0},effect:{type:X(String),default:"light"},clearable:{type:Boolean,default:!0},size:qt,placeholder:String,start:{type:String,default:"09:00"},end:{type:String,default:"18:00"},step:{type:String,default:"00:30"},minTime:String,maxTime:String,includeEndTime:{type:Boolean,default:!1},name:String,prefixIcon:{type:X([String,Object]),default:()=>hd},clearIcon:{type:X([String,Object]),default:()=>Ta},...Ao}),La=e=>{const t=(e||"").split(":");if(t.length>=2){let n=Number.parseInt(t[0],10);const a=Number.parseInt(t[1],10),l=e.toUpperCase();return l.includes("AM")&&n===12?n=0:l.includes("PM")&&n!==12&&(n+=12),{hours:n,minutes:a}}return null},Cu=(e,t)=>{const n=La(e);if(!n)return-1;const a=La(t);if(!a)return-1;const l=n.minutes+n.hours*60,o=a.minutes+a.hours*60;return l===o?0:l>o?1:-1},pp=e=>`${e}`.padStart(2,"0"),Jl=e=>`${pp(e.hours)}:${pp(e.minutes)}`,oq=(e,t)=>{const n=La(e);if(!n)return"";const a=La(t);if(!a)return"";const l={hours:n.hours,minutes:n.minutes};return l.minutes+=a.minutes,l.hours+=a.hours,l.hours+=Math.floor(l.minutes/60),l.minutes=l.minutes%60,Jl(l)},rq=T({name:"ElTimeSelect"}),sq=T({...rq,props:lq,emits:["change","blur","focus","clear","update:modelValue"],setup(e,{expose:t}){const n=e;Be.extend(Hd);const{Option:a}=zl,l=de("input"),o=A(),s=yn(),{lang:i}=ct(),u=C(()=>n.modelValue),c=C(()=>{const g=La(n.start);return g?Jl(g):null}),d=C(()=>{const g=La(n.end);return g?Jl(g):null}),f=C(()=>{const g=La(n.step);return g?Jl(g):null}),h=C(()=>{const g=La(n.minTime||"");return g?Jl(g):null}),v=C(()=>{const g=La(n.maxTime||"");return g?Jl(g):null}),m=C(()=>{var g;const M=[],w=(b,S)=>{M.push({value:b,disabled:Cu(S,h.value||"-1:-1")<=0||Cu(S,v.value||"100:100")>=0})};if(n.start&&n.end&&n.step){let b=c.value,S;for(;b&&d.value&&Cu(b,d.value)<=0;)S=Be(b,"HH:mm").locale(i.value).format(n.format),w(S,b),b=oq(b,f.value);if(n.includeEndTime&&d.value&&((g=M[M.length-1])==null?void 0:g.value)!==d.value){const E=Be(d.value,"HH:mm").locale(i.value).format(n.format);w(E,d.value)}}return M});return t({blur:()=>{var g,M;(M=(g=o.value)==null?void 0:g.blur)==null||M.call(g)},focus:()=>{var g,M;(M=(g=o.value)==null?void 0:g.focus)==null||M.call(g)}}),(g,M)=>(_(),ae(r(zl),{ref_key:"select",ref:o,"model-value":r(u),disabled:r(s),clearable:g.clearable,"clear-icon":g.clearIcon,size:g.size,effect:g.effect,placeholder:g.placeholder,"default-first-option":"",filterable:g.editable,"empty-values":g.emptyValues,"value-on-clear":g.valueOnClear,"onUpdate:modelValue":w=>g.$emit("update:modelValue",w),onChange:w=>g.$emit("change",w),onBlur:w=>g.$emit("blur",w),onFocus:w=>g.$emit("focus",w),onClear:()=>g.$emit("clear")},{prefix:G(()=>[g.prefixIcon?(_(),ae(r(xe),{key:0,class:$(r(l).e("prefix-icon"))},{default:G(()=>[(_(),ae(et(g.prefixIcon)))]),_:1},8,["class"])):ee("v-if",!0)]),default:G(()=>[(_(!0),x(ze,null,rt(r(m),w=>(_(),ae(r(a),{key:w.value,label:w.value,value:w.value,disabled:w.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable","empty-values","value-on-clear","onUpdate:modelValue","onChange","onBlur","onFocus","onClear"]))}});var iq=ve(sq,[["__file","time-select.vue"]]);const uq=We(iq),cq=T({name:"ElTimeline",setup(e,{slots:t}){const n=de("timeline");return it("timeline",t),()=>Pe("ul",{class:[n.b()]},[Q(t,"default")])}}),dq=pe({timestamp:{type:String,default:""},hideTimestamp:Boolean,center:Boolean,placement:{type:String,values:["top","bottom"],default:"bottom"},type:{type:String,values:["primary","success","warning","danger","info"],default:""},color:{type:String,default:""},size:{type:String,values:["normal","large"],default:"normal"},icon:{type:St},hollow:Boolean}),fq=T({name:"ElTimelineItem"}),pq=T({...fq,props:dq,setup(e){const t=e,n=de("timeline-item"),a=C(()=>[n.e("node"),n.em("node",t.size||""),n.em("node",t.type||""),n.is("hollow",t.hollow)]);return(l,o)=>(_(),x("li",{class:$([r(n).b(),{[r(n).e("center")]:l.center}])},[k("div",{class:$(r(n).e("tail"))},null,2),l.$slots.dot?ee("v-if",!0):(_(),x("div",{key:0,class:$(r(a)),style:Ne({backgroundColor:l.color})},[l.icon?(_(),ae(r(xe),{key:0,class:$(r(n).e("icon"))},{default:G(()=>[(_(),ae(et(l.icon)))]),_:1},8,["class"])):ee("v-if",!0)],6)),l.$slots.dot?(_(),x("div",{key:1,class:$(r(n).e("dot"))},[Q(l.$slots,"dot")],2)):ee("v-if",!0),k("div",{class:$(r(n).e("wrapper"))},[!l.hideTimestamp&&l.placement==="top"?(_(),x("div",{key:0,class:$([r(n).e("timestamp"),r(n).is("top")])},he(l.timestamp),3)):ee("v-if",!0),k("div",{class:$(r(n).e("content"))},[Q(l.$slots,"default")],2),!l.hideTimestamp&&l.placement==="bottom"?(_(),x("div",{key:1,class:$([r(n).e("timestamp"),r(n).is("bottom")])},he(l.timestamp),3)):ee("v-if",!0)],2)],2))}});var i4=ve(pq,[["__file","timeline-item.vue"]]);const vq=We(cq,{TimelineItem:i4}),hq=Lt(i4),u4=pe({nowrap:Boolean});var c4=(e=>(e.top="top",e.bottom="bottom",e.left="left",e.right="right",e))(c4||{});const mq=Object.values(c4),yf=pe({width:{type:Number,default:10},height:{type:Number,default:10},style:{type:X(Object),default:null}}),gq=pe({side:{type:X(String),values:mq,required:!0}}),yq=["absolute","fixed"],_q=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],_f=pe({arrowPadding:{type:X(Number),default:5},effect:{type:X(String),default:"light"},contentClass:String,placement:{type:X(String),values:_q,default:"bottom"},reference:{type:X(Object),default:null},offset:{type:Number,default:8},strategy:{type:X(String),values:yq,default:"absolute"},showArrow:Boolean,...sn(["ariaLabel"])}),bf=pe({delayDuration:{type:Number,default:300},defaultOpen:Boolean,open:{type:Boolean,default:void 0},onOpenChange:{type:X(Function)},"onUpdate:open":{type:X(Function)}}),Yl={type:X(Function)},wf=pe({onBlur:Yl,onClick:Yl,onFocus:Yl,onMouseDown:Yl,onMouseEnter:Yl,onMouseLeave:Yl}),bq=pe({...bf,...yf,...wf,..._f,alwaysOn:Boolean,fullTransition:Boolean,transitionProps:{type:X(Object),default:null},teleported:Boolean,to:{type:X(String),default:"body"}}),Hi=Symbol("tooltipV2"),d4=Symbol("tooltipV2Content"),Su="tooltip_v2.open",wq=T({name:"ElTooltipV2Root"}),Cq=T({...wq,props:bf,setup(e,{expose:t}){const n=e,a=A(n.defaultOpen),l=A(null),o=C({get:()=>ua(n.open)?a.value:n.open,set:y=>{var g;a.value=y,(g=n["onUpdate:open"])==null||g.call(n,y)}}),s=C(()=>Ie(n.delayDuration)&&n.delayDuration>0),{start:i,stop:u}=Il(()=>{o.value=!0},C(()=>n.delayDuration),{immediate:!1}),c=de("tooltip-v2"),d=rn(),f=()=>{u(),o.value=!0},h=()=>{r(s)?i():f()},v=f,m=()=>{u(),o.value=!1};return se(o,y=>{var g;y&&(document.dispatchEvent(new CustomEvent(Su)),v()),(g=n.onOpenChange)==null||g.call(n,y)}),Ge(()=>{document.addEventListener(Su,m)}),Tt(()=>{u(),document.removeEventListener(Su,m)}),it(Hi,{contentId:d,triggerRef:l,ns:c,onClose:m,onDelayOpen:h,onOpen:v}),t({onOpen:v,onClose:m}),(y,g)=>Q(y.$slots,"default",{open:r(o)})}});var Sq=ve(Cq,[["__file","root.vue"]]);const kq=T({name:"ElTooltipV2Arrow"}),Eq=T({...kq,props:{...yf,...gq},setup(e){const t=e,{ns:n}=Se(Hi),{arrowRef:a}=Se(d4),l=C(()=>{const{style:o,width:s,height:i}=t,u=n.namespace.value;return{[`--${u}-tooltip-v2-arrow-width`]:`${s}px`,[`--${u}-tooltip-v2-arrow-height`]:`${i}px`,[`--${u}-tooltip-v2-arrow-border-width`]:`${s/2}px`,[`--${u}-tooltip-v2-arrow-cover-width`]:s/2-1,...o||{}}});return(o,s)=>(_(),x("span",{ref_key:"arrowRef",ref:a,style:Ne(r(l)),class:$(r(n).e("arrow"))},null,6))}});var vp=ve(Eq,[["__file","arrow.vue"]]);const So=Math.min,Tl=Math.max,oi=Math.round,ss=Math.floor,Ca=e=>({x:e,y:e}),Mq={left:"right",right:"left",bottom:"top",top:"bottom"},xq={start:"end",end:"start"};function $c(e,t,n){return Tl(e,So(t,n))}function Fr(e,t){return typeof e=="function"?e(t):e}function Vl(e){return e.split("-")[0]}function Kr(e){return e.split("-")[1]}function f4(e){return e==="x"?"y":"x"}function Cf(e){return e==="y"?"height":"width"}function ko(e){return["top","bottom"].includes(Vl(e))?"y":"x"}function Sf(e){return f4(ko(e))}function $q(e,t,n){n===void 0&&(n=!1);const a=Kr(e),l=Sf(e),o=Cf(l);let s=l==="x"?a===(n?"end":"start")?"right":"left":a==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=ri(s)),[s,ri(s)]}function Tq(e){const t=ri(e);return[Tc(e),t,Tc(t)]}function Tc(e){return e.replace(/start|end/g,t=>xq[t])}function Oq(e,t,n){const a=["left","right"],l=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?l:a:t?a:l;case"left":case"right":return t?o:s;default:return[]}}function Nq(e,t,n,a){const l=Kr(e);let o=Oq(Vl(e),n==="start",a);return l&&(o=o.map(s=>s+"-"+l),t&&(o=o.concat(o.map(Tc)))),o}function ri(e){return e.replace(/left|right|bottom|top/g,t=>Mq[t])}function Iq(e){return{top:0,right:0,bottom:0,left:0,...e}}function p4(e){return typeof e!="number"?Iq(e):{top:e,right:e,bottom:e,left:e}}function si(e){const{x:t,y:n,width:a,height:l}=e;return{width:a,height:l,top:n,left:t,right:t+a,bottom:n+l,x:t,y:n}}function hp(e,t,n){let{reference:a,floating:l}=e;const o=ko(t),s=Sf(t),i=Cf(s),u=Vl(t),c=o==="y",d=a.x+a.width/2-l.width/2,f=a.y+a.height/2-l.height/2,h=a[i]/2-l[i]/2;let v;switch(u){case"top":v={x:d,y:a.y-l.height};break;case"bottom":v={x:d,y:a.y+a.height};break;case"right":v={x:a.x+a.width,y:f};break;case"left":v={x:a.x-l.width,y:f};break;default:v={x:a.x,y:a.y}}switch(Kr(t)){case"start":v[s]-=h*(n&&c?-1:1);break;case"end":v[s]+=h*(n&&c?-1:1);break}return v}const Pq=async(e,t,n)=>{const{placement:a="bottom",strategy:l="absolute",middleware:o=[],platform:s}=n,i=o.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:l}),{x:d,y:f}=hp(c,a,u),h=a,v={},m=0;for(let p=0;p({name:"arrow",options:e,async fn(t){const{x:n,y:a,placement:l,rects:o,platform:s,elements:i,middlewareData:u}=t,{element:c,padding:d=0}=Fr(e,t)||{};if(c==null)return{};const f=p4(d),h={x:n,y:a},v=Sf(l),m=Cf(v),p=await s.getDimensions(c),y=v==="y",g=y?"top":"left",M=y?"bottom":"right",w=y?"clientHeight":"clientWidth",b=o.reference[m]+o.reference[v]-h[v]-o.floating[m],S=h[v]-o.reference[v],E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let O=E?E[w]:0;(!O||!await(s.isElement==null?void 0:s.isElement(E)))&&(O=i.floating[w]||o.floating[m]);const I=b/2-S/2,N=O/2-p[m]/2-1,z=So(f[g],N),P=So(f[M],N),L=z,F=O-p[m]-P,U=O/2-p[m]/2+I,H=$c(L,U,F),R=!u.arrow&&Kr(l)!=null&&U!==H&&o.reference[m]/2-(UU<=0)){var P,L;const U=(((P=o.flip)==null?void 0:P.index)||0)+1,H=O[U];if(H)return{data:{index:U,overflows:z},reset:{placement:H}};let R=(L=z.filter(D=>D.overflows[0]<=0).sort((D,B)=>D.overflows[1]-B.overflows[1])[0])==null?void 0:L.placement;if(!R)switch(v){case"bestFit":{var F;const D=(F=z.filter(B=>{if(E){const V=ko(B.placement);return V===M||V==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(V=>V>0).reduce((V,K)=>V+K,0)]).sort((B,V)=>B[1]-V[1])[0])==null?void 0:F[0];D&&(R=D);break}case"initialPlacement":R=i;break}if(l!==R)return{reset:{placement:R}}}return{}}}};async function Vq(e,t){const{placement:n,platform:a,elements:l}=e,o=await(a.isRTL==null?void 0:a.isRTL(l.floating)),s=Vl(n),i=Kr(n),u=ko(n)==="y",c=["left","top"].includes(s)?-1:1,d=o&&u?-1:1,f=Fr(t,e);let{mainAxis:h,crossAxis:v,alignmentAxis:m}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return i&&typeof m=="number"&&(v=i==="end"?m*-1:m),u?{x:v*d,y:h*c}:{x:h*c,y:v*d}}const Lq=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,a;const{x:l,y:o,placement:s,middlewareData:i}=t,u=await Vq(t,e);return s===((n=i.offset)==null?void 0:n.placement)&&(a=i.arrow)!=null&&a.alignmentOffset?{}:{x:l+u.x,y:o+u.y,data:{...u,placement:s}}}}},Rq=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:a,placement:l}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:i={fn:y=>{let{x:g,y:M}=y;return{x:g,y:M}}},...u}=Fr(e,t),c={x:n,y:a},d=await kf(t,u),f=ko(Vl(l)),h=f4(f);let v=c[h],m=c[f];if(o){const y=h==="y"?"top":"left",g=h==="y"?"bottom":"right",M=v+d[y],w=v-d[g];v=$c(M,v,w)}if(s){const y=f==="y"?"top":"left",g=f==="y"?"bottom":"right",M=m+d[y],w=m-d[g];m=$c(M,m,w)}const p=i.fn({...t,[h]:v,[f]:m});return{...p,data:{x:p.x-n,y:p.y-a,enabled:{[h]:o,[f]:s}}}}}};function Di(){return typeof window<"u"}function Do(e){return v4(e)?(e.nodeName||"").toLowerCase():"#document"}function Fn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ia(e){var t;return(t=(v4(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function v4(e){return Di()?e instanceof Node||e instanceof Fn(e).Node:!1}function da(e){return Di()?e instanceof Element||e instanceof Fn(e).Element:!1}function Ma(e){return Di()?e instanceof HTMLElement||e instanceof Fn(e).HTMLElement:!1}function mp(e){return!Di()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Fn(e).ShadowRoot}function Wr(e){const{overflow:t,overflowX:n,overflowY:a,display:l}=fa(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+n)&&!["inline","contents"].includes(l)}function Bq(e){return["table","td","th"].includes(Do(e))}function Fi(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Ef(e){const t=Mf(),n=da(e)?fa(e):e;return["transform","translate","scale","rotate","perspective"].some(a=>n[a]?n[a]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(a=>(n.willChange||"").includes(a))||["paint","layout","strict","content"].some(a=>(n.contain||"").includes(a))}function Hq(e){let t=cl(e);for(;Ma(t)&&!Eo(t);){if(Ef(t))return t;if(Fi(t))return null;t=cl(t)}return null}function Mf(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Eo(e){return["html","body","#document"].includes(Do(e))}function fa(e){return Fn(e).getComputedStyle(e)}function Ki(e){return da(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function cl(e){if(Do(e)==="html")return e;const t=e.assignedSlot||e.parentNode||mp(e)&&e.host||Ia(e);return mp(t)?t.host:t}function h4(e){const t=cl(e);return Eo(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ma(t)&&Wr(t)?t:h4(t)}function Mr(e,t,n){var a;t===void 0&&(t=[]),n===void 0&&(n=!0);const l=h4(e),o=l===((a=e.ownerDocument)==null?void 0:a.body),s=Fn(l);if(o){const i=Oc(s);return t.concat(s,s.visualViewport||[],Wr(l)?l:[],i&&n?Mr(i):[])}return t.concat(l,Mr(l,[],n))}function Oc(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function m4(e){const t=fa(e);let n=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const l=Ma(e),o=l?e.offsetWidth:n,s=l?e.offsetHeight:a,i=oi(n)!==o||oi(a)!==s;return i&&(n=o,a=s),{width:n,height:a,$:i}}function xf(e){return da(e)?e:e.contextElement}function so(e){const t=xf(e);if(!Ma(t))return Ca(1);const n=t.getBoundingClientRect(),{width:a,height:l,$:o}=m4(t);let s=(o?oi(n.width):n.width)/a,i=(o?oi(n.height):n.height)/l;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}const Dq=Ca(0);function g4(e){const t=Fn(e);return!Mf()||!t.visualViewport?Dq:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Fq(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Fn(e)?!1:t}function Ll(e,t,n,a){t===void 0&&(t=!1),n===void 0&&(n=!1);const l=e.getBoundingClientRect(),o=xf(e);let s=Ca(1);t&&(a?da(a)&&(s=so(a)):s=so(e));const i=Fq(o,n,a)?g4(o):Ca(0);let u=(l.left+i.x)/s.x,c=(l.top+i.y)/s.y,d=l.width/s.x,f=l.height/s.y;if(o){const h=Fn(o),v=a&&da(a)?Fn(a):a;let m=h,p=Oc(m);for(;p&&a&&v!==m;){const y=so(p),g=p.getBoundingClientRect(),M=fa(p),w=g.left+(p.clientLeft+parseFloat(M.paddingLeft))*y.x,b=g.top+(p.clientTop+parseFloat(M.paddingTop))*y.y;u*=y.x,c*=y.y,d*=y.x,f*=y.y,u+=w,c+=b,m=Fn(p),p=Oc(m)}}return si({width:d,height:f,x:u,y:c})}function $f(e,t){const n=Ki(e).scrollLeft;return t?t.left+n:Ll(Ia(e)).left+n}function y4(e,t,n){n===void 0&&(n=!1);const a=e.getBoundingClientRect(),l=a.left+t.scrollLeft-(n?0:$f(e,a)),o=a.top+t.scrollTop;return{x:l,y:o}}function Kq(e){let{elements:t,rect:n,offsetParent:a,strategy:l}=e;const o=l==="fixed",s=Ia(a),i=t?Fi(t.floating):!1;if(a===s||i&&o)return n;let u={scrollLeft:0,scrollTop:0},c=Ca(1);const d=Ca(0),f=Ma(a);if((f||!f&&!o)&&((Do(a)!=="body"||Wr(s))&&(u=Ki(a)),Ma(a))){const v=Ll(a);c=so(a),d.x=v.x+a.clientLeft,d.y=v.y+a.clientTop}const h=s&&!f&&!o?y4(s,u,!0):Ca(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+d.x+h.x,y:n.y*c.y-u.scrollTop*c.y+d.y+h.y}}function Wq(e){return Array.from(e.getClientRects())}function jq(e){const t=Ia(e),n=Ki(e),a=e.ownerDocument.body,l=Tl(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),o=Tl(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight);let s=-n.scrollLeft+$f(e);const i=-n.scrollTop;return fa(a).direction==="rtl"&&(s+=Tl(t.clientWidth,a.clientWidth)-l),{width:l,height:o,x:s,y:i}}function qq(e,t){const n=Fn(e),a=Ia(e),l=n.visualViewport;let o=a.clientWidth,s=a.clientHeight,i=0,u=0;if(l){o=l.width,s=l.height;const c=Mf();(!c||c&&t==="fixed")&&(i=l.offsetLeft,u=l.offsetTop)}return{width:o,height:s,x:i,y:u}}function Uq(e,t){const n=Ll(e,!0,t==="fixed"),a=n.top+e.clientTop,l=n.left+e.clientLeft,o=Ma(e)?so(e):Ca(1),s=e.clientWidth*o.x,i=e.clientHeight*o.y,u=l*o.x,c=a*o.y;return{width:s,height:i,x:u,y:c}}function gp(e,t,n){let a;if(t==="viewport")a=qq(e,n);else if(t==="document")a=jq(Ia(e));else if(da(t))a=Uq(t,n);else{const l=g4(e);a={x:t.x-l.x,y:t.y-l.y,width:t.width,height:t.height}}return si(a)}function _4(e,t){const n=cl(e);return n===t||!da(n)||Eo(n)?!1:fa(n).position==="fixed"||_4(n,t)}function Yq(e,t){const n=t.get(e);if(n)return n;let a=Mr(e,[],!1).filter(i=>da(i)&&Do(i)!=="body"),l=null;const o=fa(e).position==="fixed";let s=o?cl(e):e;for(;da(s)&&!Eo(s);){const i=fa(s),u=Ef(s);!u&&i.position==="fixed"&&(l=null),(o?!u&&!l:!u&&i.position==="static"&&!!l&&["absolute","fixed"].includes(l.position)||Wr(s)&&!u&&_4(e,s))?a=a.filter(d=>d!==s):l=i,s=cl(s)}return t.set(e,a),a}function Gq(e){let{element:t,boundary:n,rootBoundary:a,strategy:l}=e;const s=[...n==="clippingAncestors"?Fi(t)?[]:Yq(t,this._c):[].concat(n),a],i=s[0],u=s.reduce((c,d)=>{const f=gp(t,d,l);return c.top=Tl(f.top,c.top),c.right=So(f.right,c.right),c.bottom=So(f.bottom,c.bottom),c.left=Tl(f.left,c.left),c},gp(t,i,l));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function Xq(e){const{width:t,height:n}=m4(e);return{width:t,height:n}}function Zq(e,t,n){const a=Ma(t),l=Ia(t),o=n==="fixed",s=Ll(e,!0,o,t);let i={scrollLeft:0,scrollTop:0};const u=Ca(0);if(a||!a&&!o)if((Do(t)!=="body"||Wr(l))&&(i=Ki(t)),a){const h=Ll(t,!0,o,t);u.x=h.x+t.clientLeft,u.y=h.y+t.clientTop}else l&&(u.x=$f(l));const c=l&&!a&&!o?y4(l,i):Ca(0),d=s.left+i.scrollLeft-u.x-c.x,f=s.top+i.scrollTop-u.y-c.y;return{x:d,y:f,width:s.width,height:s.height}}function ku(e){return fa(e).position==="static"}function yp(e,t){if(!Ma(e)||fa(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ia(e)===n&&(n=n.ownerDocument.body),n}function b4(e,t){const n=Fn(e);if(Fi(e))return n;if(!Ma(e)){let l=cl(e);for(;l&&!Eo(l);){if(da(l)&&!ku(l))return l;l=cl(l)}return n}let a=yp(e,t);for(;a&&Bq(a)&&ku(a);)a=yp(a,t);return a&&Eo(a)&&ku(a)&&!Ef(a)?n:a||Hq(e)||n}const Jq=async function(e){const t=this.getOffsetParent||b4,n=this.getDimensions,a=await n(e.floating);return{reference:Zq(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function Qq(e){return fa(e).direction==="rtl"}const eU={convertOffsetParentRelativeRectToViewportRelativeRect:Kq,getDocumentElement:Ia,getClippingRect:Gq,getOffsetParent:b4,getElementRects:Jq,getClientRects:Wq,getDimensions:Xq,getScale:so,isElement:da,isRTL:Qq};function w4(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function tU(e,t){let n=null,a;const l=Ia(e);function o(){var i;clearTimeout(a),(i=n)==null||i.disconnect(),n=null}function s(i,u){i===void 0&&(i=!1),u===void 0&&(u=1),o();const c=e.getBoundingClientRect(),{left:d,top:f,width:h,height:v}=c;if(i||t(),!h||!v)return;const m=ss(f),p=ss(l.clientWidth-(d+h)),y=ss(l.clientHeight-(f+v)),g=ss(d),w={rootMargin:-m+"px "+-p+"px "+-y+"px "+-g+"px",threshold:Tl(0,So(1,u))||1};let b=!0;function S(E){const O=E[0].intersectionRatio;if(O!==u){if(!b)return s();O?s(!1,O):a=setTimeout(()=>{s(!1,1e-7)},1e3)}O===1&&!w4(c,e.getBoundingClientRect())&&s(),b=!1}try{n=new IntersectionObserver(S,{...w,root:l.ownerDocument})}catch{n=new IntersectionObserver(S,w)}n.observe(e)}return s(!0),o}function nU(e,t,n,a){a===void 0&&(a={});const{ancestorScroll:l=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:u=!1}=a,c=xf(e),d=l||o?[...c?Mr(c):[],...Mr(t)]:[];d.forEach(g=>{l&&g.addEventListener("scroll",n,{passive:!0}),o&&g.addEventListener("resize",n)});const f=c&&i?tU(c,n):null;let h=-1,v=null;s&&(v=new ResizeObserver(g=>{let[M]=g;M&&M.target===c&&v&&(v.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var w;(w=v)==null||w.observe(t)})),n()}),c&&!u&&v.observe(c),v.observe(t));let m,p=u?Ll(e):null;u&&y();function y(){const g=Ll(e);p&&!w4(p,g)&&n(),p=g,m=requestAnimationFrame(y)}return n(),()=>{var g;d.forEach(M=>{l&&M.removeEventListener("scroll",n),o&&M.removeEventListener("resize",n)}),f==null||f(),(g=v)==null||g.disconnect(),v=null,u&&cancelAnimationFrame(m)}}const aU=kf,C4=Lq,lU=Rq,oU=Aq,S4=zq,k4=(e,t,n)=>{const a=new Map,l={platform:eU,...n},o={...l.platform,_c:a};return Pq(e,t,{...l,platform:o})},rU=pe({style:{type:X([String,Object,Array]),default:()=>({})}}),sU=T({name:"ElVisuallyHidden"}),iU=T({...sU,props:rU,setup(e){const t=e,n=C(()=>[t.style,{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}]);return(a,l)=>(_(),x("span",tt(a.$attrs,{style:r(n)}),[Q(a.$slots,"default")],16))}});var uU=ve(iU,[["__file","visual-hidden.vue"]]);pe({});const cU=e=>{if(!ut)return;if(!e)return e;const t=$n(e);return t||(dn(e)?t:e)},dU=({middleware:e,placement:t,strategy:n})=>{const a=A(),l=A(),o=A(),s=A(),i=A({}),u={x:o,y:s,placement:t,strategy:n,middlewareData:i},c=async()=>{if(!ut)return;const d=cU(a),f=$n(l);if(!d||!f)return;const h=await k4(d,f,{placement:r(t),strategy:r(n),middleware:r(e)});po(u).forEach(v=>{u[v].value=h[v]})};return Ge(()=>{on(()=>{c()})}),{...u,update:c,referenceRef:a,contentRef:l}},fU=({arrowRef:e,padding:t})=>({name:"arrow",options:{element:e,padding:t},fn(n){const a=r(e);return a?S4({element:a,padding:t}).fn(n):{}}}),pU=T({name:"ElTooltipV2Content"}),vU=T({...pU,props:{..._f,...u4},setup(e){const t=e,{triggerRef:n,contentId:a}=Se(Hi),l=A(t.placement),o=A(t.strategy),s=A(null),{referenceRef:i,contentRef:u,middlewareData:c,x:d,y:f,update:h}=dU({placement:l,strategy:o,middleware:C(()=>{const w=[C4(t.offset)];return t.showArrow&&w.push(fU({arrowRef:s})),w})}),v=zo().nextZIndex(),m=de("tooltip-v2"),p=C(()=>l.value.split("-")[0]),y=C(()=>({position:r(o),top:`${r(f)||0}px`,left:`${r(d)||0}px`,zIndex:v})),g=C(()=>{if(!t.showArrow)return{};const{arrow:w}=r(c);return{[`--${m.namespace.value}-tooltip-v2-arrow-x`]:`${w==null?void 0:w.x}px`||"",[`--${m.namespace.value}-tooltip-v2-arrow-y`]:`${w==null?void 0:w.y}px`||""}}),M=C(()=>[m.e("content"),m.is("dark",t.effect==="dark"),m.is(r(o)),t.contentClass]);return se(s,()=>h()),se(()=>t.placement,w=>l.value=w),Ge(()=>{se(()=>t.reference||n.value,w=>{i.value=w||void 0},{immediate:!0})}),it(d4,{arrowRef:s}),(w,b)=>(_(),x("div",{ref_key:"contentRef",ref:u,style:Ne(r(y)),"data-tooltip-v2-root":""},[w.nowrap?ee("v-if",!0):(_(),x("div",{key:0,"data-side":r(p),class:$(r(M))},[Q(w.$slots,"default",{contentStyle:r(y),contentClass:r(M)}),q(r(uU),{id:r(a),role:"tooltip"},{default:G(()=>[w.ariaLabel?(_(),x(ze,{key:0},[ot(he(w.ariaLabel),1)],64)):Q(w.$slots,"default",{key:1})]),_:3},8,["id"]),Q(w.$slots,"arrow",{style:Ne(r(g)),side:r(p)})],10,["data-side"]))],4))}});var _p=ve(vU,[["__file","content.vue"]]);const hU=pe({setRef:{type:X(Function),required:!0},onlyChild:Boolean});var mU=T({props:hU,setup(e,{slots:t}){const n=A(),a=Ai(n,l=>{l?e.setRef(l.nextElementSibling):e.setRef(null)});return()=>{var l;const[o]=((l=t.default)==null?void 0:l.call(t))||[],s=e.onlyChild?MI(o.children):o.children;return q(ze,{ref:a},[s])}}});const gU=T({name:"ElTooltipV2Trigger"}),yU=T({...gU,props:{...u4,...wf},setup(e){const t=e,{onClose:n,onOpen:a,onDelayOpen:l,triggerRef:o,contentId:s}=Se(Hi);let i=!1;const u=M=>{o.value=M},c=()=>{i=!1},d=Ht(t.onMouseEnter,l),f=Ht(t.onMouseLeave,n),h=Ht(t.onMouseDown,()=>{n(),i=!0,document.addEventListener("mouseup",c,{once:!0})}),v=Ht(t.onFocus,()=>{i||a()}),m=Ht(t.onBlur,n),p=Ht(t.onClick,M=>{M.detail===0&&n()}),y={blur:m,click:p,focus:v,mousedown:h,mouseenter:d,mouseleave:f},g=(M,w,b)=>{M&&Object.entries(w).forEach(([S,E])=>{M[b](S,E)})};return se(o,(M,w)=>{g(M,y,"addEventListener"),g(w,y,"removeEventListener"),M&&M.setAttribute("aria-describedby",s.value)}),Tt(()=>{g(o.value,y,"removeEventListener"),document.removeEventListener("mouseup",c)}),(M,w)=>M.nowrap?(_(),ae(r(mU),{key:0,"set-ref":u,"only-child":""},{default:G(()=>[Q(M.$slots,"default")]),_:3})):(_(),x("button",tt({key:1,ref_key:"triggerRef",ref:o},M.$attrs),[Q(M.$slots,"default")],16))}});var _U=ve(yU,[["__file","trigger.vue"]]);const bU=T({name:"ElTooltipV2"}),wU=T({...bU,props:bq,setup(e){const n=nn(e),a=_t(ra(n,Object.keys(yf))),l=_t(ra(n,Object.keys(_f))),o=_t(ra(n,Object.keys(bf))),s=_t(ra(n,Object.keys(wf)));return(i,u)=>(_(),ae(Sq,oa(Ol(o)),{default:G(({open:c})=>[q(_U,tt(s,{nowrap:""}),{default:G(()=>[Q(i.$slots,"trigger")]),_:3},16),q(r(Ro),{to:i.to,disabled:!i.teleported},{default:G(()=>[i.fullTransition?(_(),ae(tn,oa(tt({key:0},i.transitionProps)),{default:G(()=>[i.alwaysOn||c?(_(),ae(_p,oa(tt({key:0},l)),{arrow:G(({style:d,side:f})=>[i.showArrow?(_(),ae(vp,tt({key:0},a,{style:d,side:f}),null,16,["style","side"])):ee("v-if",!0)]),default:G(()=>[Q(i.$slots,"default")]),_:3},16)):ee("v-if",!0)]),_:2},1040)):(_(),x(ze,{key:1},[i.alwaysOn||c?(_(),ae(_p,oa(tt({key:0},l)),{arrow:G(({style:d,side:f})=>[i.showArrow?(_(),ae(vp,tt({key:0},a,{style:d,side:f}),null,16,["style","side"])):ee("v-if",!0)]),default:G(()=>[Q(i.$slots,"default")]),_:3},16)):ee("v-if",!0)],64))]),_:2},1032,["to","disabled"])]),_:3},16))}});var CU=ve(wU,[["__file","tooltip.vue"]]);const SU=We(CU),E4="left-check-change",M4="right-check-change",Ql=pe({data:{type:X(Array),default:()=>[]},titles:{type:X(Array),default:()=>[]},buttonTexts:{type:X(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:X(Function)},leftDefaultChecked:{type:X(Array),default:()=>[]},rightDefaultChecked:{type:X(Array),default:()=>[]},renderContent:{type:X(Function)},modelValue:{type:X(Array),default:()=>[]},format:{type:X(Object),default:()=>({})},filterable:Boolean,props:{type:X(Object),default:()=>Vt({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),Nc=(e,t)=>[e,t].every(Ee)||Ee(e)&&Zt(t),kU={[Ct]:(e,t,n)=>[e,n].every(Ee)&&["left","right"].includes(t),[Ue]:e=>Ee(e),[E4]:Nc,[M4]:Nc},Ic="checked-change",EU=pe({data:Ql.data,optionRender:{type:X(Function)},placeholder:String,title:String,filterable:Boolean,format:Ql.format,filterMethod:Ql.filterMethod,defaultChecked:Ql.leftDefaultChecked,props:Ql.props}),MU={[Ic]:Nc},jr=e=>{const t={label:"label",key:"key",disabled:"disabled"};return C(()=>({...t,...e.props}))},xU=(e,t,n)=>{const a=jr(e),l=C(()=>e.data.filter(d=>Qe(e.filterMethod)?e.filterMethod(t.query,d):String(d[a.value.label]||d[a.value.key]).toLowerCase().includes(t.query.toLowerCase()))),o=C(()=>l.value.filter(d=>!d[a.value.disabled])),s=C(()=>{const d=t.checked.length,f=e.data.length,{noChecked:h,hasChecked:v}=e.format;return h&&v?d>0?v.replace(/\${checked}/g,d.toString()).replace(/\${total}/g,f.toString()):h.replace(/\${total}/g,f.toString()):`${d}/${f}`}),i=C(()=>{const d=t.checked.length;return d>0&&d{const d=o.value.map(f=>f[a.value.key]);t.allChecked=d.length>0&&d.every(f=>t.checked.includes(f))},c=d=>{t.checked=d?o.value.map(f=>f[a.value.key]):[]};return se(()=>t.checked,(d,f)=>{if(u(),t.checkChangeByUser){const h=d.concat(f).filter(v=>!d.includes(v)||!f.includes(v));n(Ic,d,h)}else n(Ic,d),t.checkChangeByUser=!0}),se(o,()=>{u()}),se(()=>e.data,()=>{const d=[],f=l.value.map(h=>h[a.value.key]);t.checked.forEach(h=>{f.includes(h)&&d.push(h)}),t.checkChangeByUser=!1,t.checked=d}),se(()=>e.defaultChecked,(d,f)=>{if(f&&d.length===f.length&&d.every(m=>f.includes(m)))return;const h=[],v=o.value.map(m=>m[a.value.key]);d.forEach(m=>{v.includes(m)&&h.push(m)}),t.checkChangeByUser=!1,t.checked=h},{immediate:!0}),{filteredData:l,checkableData:o,checkedSummary:s,isIndeterminate:i,updateAllChecked:u,handleAllCheckedChange:c}},$U=T({name:"ElTransferPanel"}),TU=T({...$U,props:EU,emits:MU,setup(e,{expose:t,emit:n}){const a=e,l=Xt(),o=({option:w})=>w,{t:s}=ct(),i=de("transfer"),u=_t({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),c=jr(a),{filteredData:d,checkedSummary:f,isIndeterminate:h,handleAllCheckedChange:v}=xU(a,u,n),m=C(()=>!Hn(u.query)&&Hn(d.value)),p=C(()=>!Hn(l.default()[0].children)),{checked:y,allChecked:g,query:M}=nn(u);return t({query:M}),(w,b)=>(_(),x("div",{class:$(r(i).b("panel"))},[k("p",{class:$(r(i).be("panel","header"))},[q(r(Qn),{modelValue:r(g),"onUpdate:modelValue":S=>dn(g)?g.value=S:null,indeterminate:r(h),"validate-event":!1,onChange:r(v)},{default:G(()=>[ot(he(w.title)+" ",1),k("span",null,he(r(f)),1)]),_:1},8,["modelValue","onUpdate:modelValue","indeterminate","onChange"])],2),k("div",{class:$([r(i).be("panel","body"),r(i).is("with-footer",r(p))])},[w.filterable?(_(),ae(r(Sn),{key:0,modelValue:r(M),"onUpdate:modelValue":S=>dn(M)?M.value=S:null,class:$(r(i).be("panel","filter")),size:"default",placeholder:w.placeholder,"prefix-icon":r(i1),clearable:"","validate-event":!1},null,8,["modelValue","onUpdate:modelValue","class","placeholder","prefix-icon"])):ee("v-if",!0),qe(q(r(rh),{modelValue:r(y),"onUpdate:modelValue":S=>dn(y)?y.value=S:null,"validate-event":!1,class:$([r(i).is("filterable",w.filterable),r(i).be("panel","list")])},{default:G(()=>[(_(!0),x(ze,null,rt(r(d),S=>(_(),ae(r(Qn),{key:S[r(c).key],class:$(r(i).be("panel","item")),value:S[r(c).key],disabled:S[r(c).disabled],"validate-event":!1},{default:G(()=>{var E;return[q(o,{option:(E=w.optionRender)==null?void 0:E.call(w,S)},null,8,["option"])]}),_:2},1032,["class","value","disabled"]))),128))]),_:1},8,["modelValue","onUpdate:modelValue","class"]),[[pt,!r(m)&&!r(Hn)(w.data)]]),qe(k("div",{class:$(r(i).be("panel","empty"))},[Q(w.$slots,"empty",{},()=>[ot(he(r(m)?r(s)("el.transfer.noMatch"):r(s)("el.transfer.noData")),1)])],2),[[pt,r(m)||r(Hn)(w.data)]])],2),r(p)?(_(),x("p",{key:0,class:$(r(i).be("panel","footer"))},[Q(w.$slots,"default")],2)):ee("v-if",!0)],2))}});var bp=ve(TU,[["__file","transfer-panel.vue"]]);const OU=e=>{const t=jr(e),n=C(()=>e.data.reduce((o,s)=>(o[s[t.value.key]]=s)&&o,{})),a=C(()=>e.data.filter(o=>!e.modelValue.includes(o[t.value.key]))),l=C(()=>e.targetOrder==="original"?e.data.filter(o=>e.modelValue.includes(o[t.value.key])):e.modelValue.reduce((o,s)=>{const i=n.value[s];return i&&o.push(i),o},[]));return{sourceData:a,targetData:l}},NU=(e,t,n)=>{const a=jr(e),l=(i,u,c)=>{n(Ue,i),n(Ct,i,u,c)};return{addToLeft:()=>{const i=e.modelValue.slice();t.rightChecked.forEach(u=>{const c=i.indexOf(u);c>-1&&i.splice(c,1)}),l(i,"left",t.rightChecked)},addToRight:()=>{let i=e.modelValue.slice();const u=e.data.filter(c=>{const d=c[a.value.key];return t.leftChecked.includes(d)&&!e.modelValue.includes(d)}).map(c=>c[a.value.key]);i=e.targetOrder==="unshift"?u.concat(i):i.concat(u),e.targetOrder==="original"&&(i=e.data.filter(c=>i.includes(c[a.value.key])).map(c=>c[a.value.key])),l(i,"right",t.leftChecked)}}},IU=(e,t)=>({onSourceCheckedChange:(l,o)=>{e.leftChecked=l,o&&t(E4,l,o)},onTargetCheckedChange:(l,o)=>{e.rightChecked=l,o&&t(M4,l,o)}}),PU=T({name:"ElTransfer"}),zU=T({...PU,props:Ql,emits:kU,setup(e,{expose:t,emit:n}){const a=e,l=Xt(),{t:o}=ct(),s=de("transfer"),{formItem:i}=gn(),u=_t({leftChecked:[],rightChecked:[]}),c=jr(a),{sourceData:d,targetData:f}=OU(a),{onSourceCheckedChange:h,onTargetCheckedChange:v}=IU(u,n),{addToLeft:m,addToRight:p}=NU(a,u,n),y=A(),g=A(),M=I=>{switch(I){case"left":y.value.query="";break;case"right":g.value.query="";break}},w=C(()=>a.buttonTexts.length===2),b=C(()=>a.titles[0]||o("el.transfer.titles.0")),S=C(()=>a.titles[1]||o("el.transfer.titles.1")),E=C(()=>a.filterPlaceholder||o("el.transfer.filterPlaceholder"));se(()=>a.modelValue,()=>{var I;a.validateEvent&&((I=i==null?void 0:i.validate)==null||I.call(i,"change").catch(N=>void 0))});const O=C(()=>I=>{var N;if(a.renderContent)return a.renderContent(Pe,I);const z=(((N=l.default)==null?void 0:N.call(l,{option:I}))||[]).filter(P=>P.type!==ci);return z.length?z:Pe("span",I[c.value.label]||I[c.value.key])});return t({clearQuery:M,leftPanel:y,rightPanel:g}),(I,N)=>(_(),x("div",{class:$(r(s).b())},[q(bp,{ref_key:"leftPanel",ref:y,data:r(d),"option-render":r(O),placeholder:r(E),title:r(b),filterable:I.filterable,format:I.format,"filter-method":I.filterMethod,"default-checked":I.leftDefaultChecked,props:a.props,onCheckedChange:r(h)},{empty:G(()=>[Q(I.$slots,"left-empty")]),default:G(()=>[Q(I.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),k("div",{class:$(r(s).e("buttons"))},[q(r(en),{type:"primary",class:$([r(s).e("button"),r(s).is("with-texts",r(w))]),disabled:r(Hn)(u.rightChecked),onClick:r(m)},{default:G(()=>[q(r(xe),null,{default:G(()=>[q(r(Ra))]),_:1}),r(vt)(I.buttonTexts[0])?ee("v-if",!0):(_(),x("span",{key:0},he(I.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),q(r(en),{type:"primary",class:$([r(s).e("button"),r(s).is("with-texts",r(w))]),disabled:r(Hn)(u.leftChecked),onClick:r(p)},{default:G(()=>[r(vt)(I.buttonTexts[1])?ee("v-if",!0):(_(),x("span",{key:0},he(I.buttonTexts[1]),1)),q(r(xe),null,{default:G(()=>[q(r(En))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),q(bp,{ref_key:"rightPanel",ref:g,data:r(f),"option-render":r(O),placeholder:r(E),filterable:I.filterable,format:I.format,"filter-method":I.filterMethod,title:r(S),"default-checked":I.rightDefaultChecked,props:a.props,onCheckedChange:r(v)},{empty:G(()=>[Q(I.$slots,"right-empty")]),default:G(()=>[Q(I.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}});var AU=ve(zU,[["__file","transfer.vue"]]);const VU=We(AU),io="$treeNodeId",wp=function(e,t){!t||t[io]||Object.defineProperty(t,io,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},Tf=function(e,t){return e?t[e]:t[io]},Pc=(e,t,n)=>{const a=e.value.currentNode;n();const l=e.value.currentNode;a!==l&&t("current-change",l?l.data:null,l)},zc=e=>{let t=!0,n=!0,a=!0;for(let l=0,o=e.length;l0&&t.lazy&&t.defaultExpandAll&&!this.isLeafByUser&&this.expand(),Ee(this.data)||wp(this,this.data),!this.data)return;const a=t.defaultExpandedKeys,l=t.key;l&&a&&a.includes(this.key)&&this.expand(null,t.autoExpandParent),l&&t.currentNodeKey!==void 0&&this.key===t.currentNodeKey&&(t.currentNode=this,t.currentNode.isCurrent=!0),t.lazy&&t._initDefaultCheckedNode(this),this.updateLeafState(),this.parent&&(this.level===1||this.parent.expanded===!0)&&(this.canFocus=!0)}setData(t){Ee(t)||wp(this,t),this.data=t,this.childNodes=[];let n;this.level===0&&Ee(this.data)?n=this.data:n=is(this,"children")||[];for(let a=0,l=n.length;a-1)return t.childNodes[n+1]}return null}get previousSibling(){const t=this.parent;if(t){const n=t.childNodes.indexOf(this);if(n>-1)return n>0?t.childNodes[n-1]:null}return null}contains(t,n=!0){return(this.childNodes||[]).some(a=>a===t||n&&a.contains(t))}remove(){const t=this.parent;t&&t.removeChild(this)}insertChild(t,n,a){if(!t)throw new Error("InsertChild error: child is required.");if(!(t instanceof As)){if(!a){const l=this.getChildren(!0);l.includes(t.data)||(vt(n)||n<0?l.push(t.data):l.splice(n,0,t.data))}Object.assign(t,{parent:this,store:this.store}),t=_t(new As(t)),t instanceof As&&t.initialize()}t.level=this.level+1,vt(n)||n<0?this.childNodes.push(t):this.childNodes.splice(n,0,t),this.updateLeafState()}insertBefore(t,n){let a;n&&(a=this.childNodes.indexOf(n)),this.insertChild(t,a)}insertAfter(t,n){let a;n&&(a=this.childNodes.indexOf(n),a!==-1&&(a+=1)),this.insertChild(t,a)}removeChild(t){const n=this.getChildren()||[],a=n.indexOf(t.data);a>-1&&n.splice(a,1);const l=this.childNodes.indexOf(t);l>-1&&(this.store&&this.store.deregisterNode(t),t.parent=null,this.childNodes.splice(l,1)),this.updateLeafState()}removeChildByData(t){let n=null;for(let a=0;a{if(n){let l=this.parent;for(;l.level>0;)l.expanded=!0,l=l.parent}this.expanded=!0,t&&t(),this.childNodes.forEach(l=>{l.canFocus=!0})};this.shouldLoadData()?this.loadData(l=>{Ee(l)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||Zo(this),a())}):a()}doCreateChildren(t,n={}){t.forEach(a=>{this.insertChild(Object.assign({data:a},n),void 0,!0)})}collapse(){this.expanded=!1,this.childNodes.forEach(t=>{t.canFocus=!1})}shouldLoadData(){return this.store.lazy===!0&&this.store.load&&!this.loaded}updateLeafState(){if(this.store.lazy===!0&&this.loaded!==!0&&typeof this.isLeafByUser<"u"){this.isLeaf=this.isLeafByUser;return}const t=this.childNodes;if(!this.store.lazy||this.store.lazy===!0&&this.loaded===!0){this.isLeaf=!t||t.length===0;return}this.isLeaf=!1}setChecked(t,n,a,l){if(this.indeterminate=t==="half",this.checked=t===!0,this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const{all:s,allWithoutDisable:i}=zc(this.childNodes);!this.isLeaf&&!s&&i&&(this.checked=!1,t=!1);const u=()=>{if(n){const c=this.childNodes;for(let h=0,v=c.length;h{u(),Zo(this)},{checked:t!==!1});return}else u()}const o=this.parent;!o||o.level===0||a||Zo(o)}getChildren(t=!1){if(this.level===0)return this.data;const n=this.data;if(!n)return null;const a=this.store.props;let l="children";return a&&(l=a.children||"children"),n[l]===void 0&&(n[l]=null),t&&!n[l]&&(n[l]=[]),n[l]}updateChildren(){const t=this.getChildren()||[],n=this.childNodes.map(o=>o.data),a={},l=[];t.forEach((o,s)=>{const i=o[io];!!i&&n.findIndex(c=>c[io]===i)>=0?a[i]={index:s,data:o}:l.push({index:s,data:o})}),this.store.lazy||n.forEach(o=>{a[o[io]]||this.removeChildByData(o)}),l.forEach(({index:o,data:s})=>{this.insertChild({data:s},o)}),this.updateLeafState()}loadData(t,n={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(n).length)){this.loading=!0;const a=o=>{this.childNodes=[],this.doCreateChildren(o,n),this.loaded=!0,this.loading=!1,this.updateLeafState(),t&&t.call(this,o)},l=()=>{this.loading=!1};this.store.load(this,a,l)}else t&&t.call(this)}eachNode(t){const n=[this];for(;n.length;){const a=n.shift();n.unshift(...a.childNodes),t(a)}}reInitChecked(){this.store.checkStrictly||Zo(this)}};class RU{constructor(t){this.currentNode=null,this.currentNodeKey=null;for(const n in t)hn(t,n)&&(this[n]=t[n]);this.nodesMap={}}initialize(){if(this.root=new Ac({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const t=this.load;t(this.root,n=>{this.root.doCreateChildren(n),this._initDefaultCheckedNodes()})}else this._initDefaultCheckedNodes()}filter(t){const n=this.filterNodeMethod,a=this.lazy,l=function(o){const s=o.root?o.root.childNodes:o.childNodes;if(s.forEach(i=>{i.visible=n.call(i,t,i.data,i),l(i)}),!o.visible&&s.length){let i=!0;i=!s.some(u=>u.visible),o.root?o.root.visible=i===!1:o.visible=i===!1}t&&o.visible&&!o.isLeaf&&(!a||o.loaded)&&o.expand()};l(this)}setData(t){t!==this.root.data?(this.nodesMap={},this.root.setData(t),this._initDefaultCheckedNodes(),this.setCurrentNodeKey(this.currentNodeKey)):this.root.updateChildren()}getNode(t){if(t instanceof Ac)return t;const n=ht(t)?Tf(this.key,t):t;return this.nodesMap[n]||null}insertBefore(t,n){const a=this.getNode(n);a.parent.insertBefore({data:t},a)}insertAfter(t,n){const a=this.getNode(n);a.parent.insertAfter({data:t},a)}remove(t){const n=this.getNode(t);n&&n.parent&&(n===this.currentNode&&(this.currentNode=null),n.parent.removeChild(n))}append(t,n){const a=ua(n)?this.root:this.getNode(n);a&&a.insertChild({data:t})}_initDefaultCheckedNodes(){const t=this.defaultCheckedKeys||[],n=this.nodesMap;t.forEach(a=>{const l=n[a];l&&l.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(t){(this.defaultCheckedKeys||[]).includes(t.key)&&t.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(t){t!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=t,this._initDefaultCheckedNodes())}registerNode(t){const n=this.key;!t||!t.data||(n?t.key!==void 0&&(this.nodesMap[t.key]=t):this.nodesMap[t.id]=t)}deregisterNode(t){!this.key||!t||!t.data||(t.childNodes.forEach(a=>{this.deregisterNode(a)}),delete this.nodesMap[t.key])}getCheckedNodes(t=!1,n=!1){const a=[],l=function(o){(o.root?o.root.childNodes:o.childNodes).forEach(i=>{(i.checked||n&&i.indeterminate)&&(!t||t&&i.isLeaf)&&a.push(i.data),l(i)})};return l(this),a}getCheckedKeys(t=!1){return this.getCheckedNodes(t).map(n=>(n||{})[this.key])}getHalfCheckedNodes(){const t=[],n=function(a){(a.root?a.root.childNodes:a.childNodes).forEach(o=>{o.indeterminate&&t.push(o.data),n(o)})};return n(this),t}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(t=>(t||{})[this.key])}_getAllNodes(){const t=[],n=this.nodesMap;for(const a in n)hn(n,a)&&t.push(n[a]);return t}updateChildren(t,n){const a=this.nodesMap[t];if(!a)return;const l=a.childNodes;for(let o=l.length-1;o>=0;o--){const s=l[o];this.remove(s.data)}for(let o=0,s=n.length;ou.level-c.level),o=Object.create(null),s=Object.keys(a);l.forEach(u=>u.setChecked(!1,!1));const i=u=>{u.childNodes.forEach(c=>{var d;o[c.data[t]]=!0,(d=c.childNodes)!=null&&d.length&&i(c)})};for(let u=0,c=l.length;u{y.isLeaf||y.setChecked(!1,!1),v(y)})};v(d)}}}setCheckedNodes(t,n=!1){const a=this.key,l={};t.forEach(o=>{l[(o||{})[a]]=!0}),this._setCheckedKeys(a,n,l)}setCheckedKeys(t,n=!1){this.defaultCheckedKeys=t;const a=this.key,l={};t.forEach(o=>{l[o]=!0}),this._setCheckedKeys(a,n,l)}setDefaultExpandedKeys(t){t=t||[],this.defaultExpandedKeys=t,t.forEach(n=>{const a=this.getNode(n);a&&a.expand(null,this.autoExpandParent)})}setChecked(t,n,a){const l=this.getNode(t);l&&l.setChecked(!!n,a)}getCurrentNode(){return this.currentNode}setCurrentNode(t){const n=this.currentNode;n&&(n.isCurrent=!1),this.currentNode=t,this.currentNode.isCurrent=!0}setUserCurrentNode(t,n=!0){const a=t[this.key],l=this.nodesMap[a];this.setCurrentNode(l),n&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0)}setCurrentNodeKey(t,n=!0){if(this.currentNodeKey=t,t==null){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const a=this.getNode(t);a&&(this.setCurrentNode(a),n&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0))}}const BU=T({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=de("tree"),n=Se("NodeInstance"),a=Se("RootTree");return()=>{const l=e.node,{data:o,store:s}=l;return e.renderContent?e.renderContent(Pe,{_self:n,node:l,data:o,store:s}):Q(a.ctx.slots,"default",{node:l,data:o},()=>[Pe("span",{class:t.be("node","label")},[l.label])])}}});var HU=ve(BU,[["__file","tree-node-content.vue"]]);function x4(e){const t=Se("TreeNodeMap",null),n={treeNodeExpand:a=>{e.node!==a&&e.node.collapse()},children:[]};return t&&t.children.push(n),it("TreeNodeMap",n),{broadcastExpanded:a=>{if(e.accordion)for(const l of n.children)l.treeNodeExpand(a)}}}const $4=Symbol("dragEvents");function DU({props:e,ctx:t,el$:n,dropIndicator$:a,store:l}){const o=de("tree"),s=A({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return it($4,{treeNodeDragStart:({event:d,treeNode:f})=>{if(Qe(e.allowDrag)&&!e.allowDrag(f.node))return d.preventDefault(),!1;d.dataTransfer.effectAllowed="move";try{d.dataTransfer.setData("text/plain","")}catch{}s.value.draggingNode=f,t.emit("node-drag-start",f.node,d)},treeNodeDragOver:({event:d,treeNode:f})=>{const h=f,v=s.value.dropNode;v&&v.node.id!==h.node.id&&kn(v.$el,o.is("drop-inner"));const m=s.value.draggingNode;if(!m||!h)return;let p=!0,y=!0,g=!0,M=!0;Qe(e.allowDrop)&&(p=e.allowDrop(m.node,h.node,"prev"),M=y=e.allowDrop(m.node,h.node,"inner"),g=e.allowDrop(m.node,h.node,"next")),d.dataTransfer.dropEffect=y||p||g?"move":"none",(p||y||g)&&(v==null?void 0:v.node.id)!==h.node.id&&(v&&t.emit("node-drag-leave",m.node,v.node,d),t.emit("node-drag-enter",m.node,h.node,d)),p||y||g?s.value.dropNode=h:s.value.dropNode=null,h.node.nextSibling===m.node&&(g=!1),h.node.previousSibling===m.node&&(p=!1),h.node.contains(m.node,!1)&&(y=!1),(m.node===h.node||m.node.contains(h.node))&&(p=!1,y=!1,g=!1);const w=h.$el.querySelector(`.${o.be("node","content")}`).getBoundingClientRect(),b=n.value.getBoundingClientRect();let S;const E=p?y?.25:g?.45:1:-1,O=g?y?.75:p?.55:0:1;let I=-9999;const N=d.clientY-w.top;Nw.height*O?S="after":y?S="inner":S="none";const z=h.$el.querySelector(`.${o.be("node","expand-icon")}`).getBoundingClientRect(),P=a.value;S==="before"?I=z.top-b.top:S==="after"&&(I=z.bottom-b.top),P.style.top=`${I}px`,P.style.left=`${z.right-b.left}px`,S==="inner"?jn(h.$el,o.is("drop-inner")):kn(h.$el,o.is("drop-inner")),s.value.showDropIndicator=S==="before"||S==="after",s.value.allowDrop=s.value.showDropIndicator||M,s.value.dropType=S,t.emit("node-drag-over",m.node,h.node,d)},treeNodeDragEnd:d=>{const{draggingNode:f,dropType:h,dropNode:v}=s.value;if(d.preventDefault(),d.dataTransfer&&(d.dataTransfer.dropEffect="move"),f&&v){const m={data:f.node.data};h!=="none"&&f.node.remove(),h==="before"?v.node.parent.insertBefore(m,v.node):h==="after"?v.node.parent.insertAfter(m,v.node):h==="inner"&&v.node.insertChild(m),h!=="none"&&(l.value.registerNode(m),l.value.key&&f.node.eachNode(p=>{var y;(y=l.value.nodesMap[p.data[l.value.key]])==null||y.setChecked(p.checked,!l.value.checkStrictly)})),kn(v.$el,o.is("drop-inner")),t.emit("node-drag-end",f.node,v.node,h,d),h!=="none"&&t.emit("node-drop",f.node,v.node,h,d)}f&&!v&&t.emit("node-drag-end",f.node,null,h,d),s.value.showDropIndicator=!1,s.value.draggingNode=null,s.value.dropNode=null,s.value.allowDrop=!0}}),{dragState:s}}const FU=T({name:"ElTreeNode",components:{ElCollapseTransition:Pi,ElCheckbox:Qn,NodeContent:HU,ElIcon:xe,Loading:ca},props:{node:{type:Ac,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:{type:Boolean,default:!1}},emits:["node-expand"],setup(e,t){const n=de("tree"),{broadcastExpanded:a}=x4(e),l=Se("RootTree"),o=A(!1),s=A(!1),i=A(null),u=A(null),c=A(null),d=Se($4),f=Ze();it("NodeInstance",f),e.node.expanded&&(o.value=!0,s.value=!0);const h=l.props.props.children||"children";se(()=>{const N=e.node.data[h];return N&&[...N]},()=>{e.node.updateChildren()}),se(()=>e.node.indeterminate,N=>{p(e.node.checked,N)}),se(()=>e.node.checked,N=>{p(N,e.node.indeterminate)}),se(()=>e.node.childNodes.length,()=>e.node.reInitChecked()),se(()=>e.node.expanded,N=>{Oe(()=>o.value=N),N&&(s.value=!0)});const v=N=>Tf(l.props.nodeKey,N.data),m=N=>{const z=e.props.class;if(!z)return{};let P;if(Qe(z)){const{data:L}=N;P=z(L,N)}else P=z;return Ve(P)?{[P]:!0}:P},p=(N,z)=>{(i.value!==N||u.value!==z)&&l.ctx.emit("check-change",e.node.data,N,z),i.value=N,u.value=z},y=N=>{Pc(l.store,l.ctx.emit,()=>{var z;if((z=l==null?void 0:l.props)==null?void 0:z.nodeKey){const L=v(e.node);l.store.value.setCurrentNodeKey(L)}else l.store.value.setCurrentNode(e.node)}),l.currentNode.value=e.node,l.props.expandOnClickNode&&M(),l.props.checkOnClickNode&&!e.node.disabled&&w(null,{target:{checked:!e.node.checked}}),l.ctx.emit("node-click",e.node.data,e.node,f,N)},g=N=>{l.instance.vnode.props.onNodeContextmenu&&(N.stopPropagation(),N.preventDefault()),l.ctx.emit("node-contextmenu",N,e.node.data,e.node,f)},M=()=>{e.node.isLeaf||(o.value?(l.ctx.emit("node-collapse",e.node.data,e.node,f),e.node.collapse()):e.node.expand(()=>{t.emit("node-expand",e.node.data,e.node,f)}))},w=(N,z)=>{e.node.setChecked(z.target.checked,!l.props.checkStrictly),Oe(()=>{const P=l.store.value;l.ctx.emit("check",e.node.data,{checkedNodes:P.getCheckedNodes(),checkedKeys:P.getCheckedKeys(),halfCheckedNodes:P.getHalfCheckedNodes(),halfCheckedKeys:P.getHalfCheckedKeys()})})};return{ns:n,node$:c,tree:l,expanded:o,childNodeRendered:s,oldChecked:i,oldIndeterminate:u,getNodeKey:v,getNodeClass:m,handleSelectChange:p,handleClick:y,handleContextMenu:g,handleExpandIconClick:M,handleCheckChange:w,handleChildNodeExpand:(N,z,P)=>{a(z),l.ctx.emit("node-expand",N,z,P)},handleDragStart:N=>{l.props.draggable&&d.treeNodeDragStart({event:N,treeNode:e})},handleDragOver:N=>{N.preventDefault(),l.props.draggable&&d.treeNodeDragOver({event:N,treeNode:{$el:c.value,node:e.node}})},handleDrop:N=>{N.preventDefault()},handleDragEnd:N=>{l.props.draggable&&d.treeNodeDragEnd(N)},CaretRight:vd}}});function KU(e,t,n,a,l,o){const s=Je("el-icon"),i=Je("el-checkbox"),u=Je("loading"),c=Je("node-content"),d=Je("el-tree-node"),f=Je("el-collapse-transition");return qe((_(),x("div",{ref:"node$",class:$([e.ns.b("node"),e.ns.is("expanded",e.expanded),e.ns.is("current",e.node.isCurrent),e.ns.is("hidden",!e.node.visible),e.ns.is("focusable",!e.node.disabled),e.ns.is("checked",!e.node.disabled&&e.node.checked),e.getNodeClass(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.node.disabled,"aria-checked":e.node.checked,draggable:e.tree.props.draggable,"data-key":e.getNodeKey(e.node),onClick:Ae(e.handleClick,["stop"]),onContextmenu:e.handleContextMenu,onDragstart:Ae(e.handleDragStart,["stop"]),onDragover:Ae(e.handleDragOver,["stop"]),onDragend:Ae(e.handleDragEnd,["stop"]),onDrop:Ae(e.handleDrop,["stop"])},[k("div",{class:$(e.ns.be("node","content")),style:Ne({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?(_(),ae(s,{key:0,class:$([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:Ae(e.handleExpandIconClick,["stop"])},{default:G(()=>[(_(),ae(et(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):ee("v-if",!0),e.showCheckbox?(_(),ae(i,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:Ae(()=>{},["stop"]),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onClick","onChange"])):ee("v-if",!0),e.node.loading?(_(),ae(s,{key:2,class:$([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:G(()=>[q(u)]),_:1},8,["class"])):ee("v-if",!0),q(c,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),q(f,null,{default:G(()=>[!e.renderAfterExpand||e.childNodeRendered?qe((_(),x("div",{key:0,class:$(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded},[(_(!0),x(ze,null,rt(e.node.childNodes,h=>(_(),ae(d,{key:e.getNodeKey(h),"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:h,accordion:e.accordion,props:e.props,onNodeExpand:e.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,["aria-expanded"])),[[pt,e.expanded]]):ee("v-if",!0)]),_:1})],42,["aria-expanded","aria-disabled","aria-checked","draggable","data-key","onClick","onContextmenu","onDragstart","onDragover","onDragend","onDrop"])),[[pt,e.node.visible]])}var WU=ve(FU,[["render",KU],["__file","tree-node.vue"]]);function jU({el$:e},t){const n=de("tree"),a=Mt([]),l=Mt([]);Ge(()=>{s()}),ja(()=>{a.value=Array.from(e.value.querySelectorAll("[role=treeitem]")),l.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"))}),se(l,i=>{i.forEach(u=>{u.setAttribute("tabindex","-1")})}),wt(e,"keydown",i=>{const u=i.target;if(!u.className.includes(n.b("node")))return;const c=i.code;a.value=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`));const d=a.value.indexOf(u);let f;if([Ce.up,Ce.down].includes(c)){if(i.preventDefault(),c===Ce.up){f=d===-1?0:d!==0?d-1:a.value.length-1;const v=f;for(;!t.value.getNode(a.value[f].dataset.key).canFocus;){if(f--,f===v){f=-1;break}f<0&&(f=a.value.length-1)}}else{f=d===-1?0:d=a.value.length&&(f=0)}}f!==-1&&a.value[f].focus()}[Ce.left,Ce.right].includes(c)&&(i.preventDefault(),u.click());const h=u.querySelector('[type="checkbox"]');[Ce.enter,Ce.numpadEnter,Ce.space].includes(c)&&h&&(i.preventDefault(),h.click())});const s=()=>{var i;a.value=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`)),l.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"));const u=e.value.querySelectorAll(`.${n.is("checked")}[role=treeitem]`);if(u.length){u[0].setAttribute("tabindex","0");return}(i=a.value[0])==null||i.setAttribute("tabindex","0")}}const qU=T({name:"ElTree",components:{ElTreeNode:WU},props:{data:{type:Array,default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkDescendants:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:Function,showCheckbox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},icon:{type:St}},emits:["check-change","current-change","node-click","node-contextmenu","node-collapse","node-expand","check","node-drag-start","node-drag-end","node-drop","node-drag-leave","node-drag-enter","node-drag-over"],setup(e,t){const{t:n}=ct(),a=de("tree"),l=Se(Ho,null),o=A(new RU({key:e.nodeKey,data:e.data,lazy:e.lazy,props:e.props,load:e.load,currentNodeKey:e.currentNodeKey,checkStrictly:e.checkStrictly,checkDescendants:e.checkDescendants,defaultCheckedKeys:e.defaultCheckedKeys,defaultExpandedKeys:e.defaultExpandedKeys,autoExpandParent:e.autoExpandParent,defaultExpandAll:e.defaultExpandAll,filterNodeMethod:e.filterNodeMethod}));o.value.initialize();const s=A(o.value.root),i=A(null),u=A(null),c=A(null),{broadcastExpanded:d}=x4(e),{dragState:f}=DU({props:e,ctx:t,el$:u,dropIndicator$:c,store:o});jU({el$:u},o);const h=C(()=>{const{childNodes:B}=s.value,V=l?l.hasFilteredOptions!==0:!1;return(!B||B.length===0||B.every(({visible:K})=>!K))&&!V});se(()=>e.currentNodeKey,B=>{o.value.setCurrentNodeKey(B)}),se(()=>e.defaultCheckedKeys,B=>{o.value.setDefaultCheckedKey(B)}),se(()=>e.defaultExpandedKeys,B=>{o.value.setDefaultExpandedKeys(B)}),se(()=>e.data,B=>{o.value.setData(B)},{deep:!0}),se(()=>e.checkStrictly,B=>{o.value.checkStrictly=B});const v=B=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");o.value.filter(B)},m=B=>Tf(e.nodeKey,B.data),p=B=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const V=o.value.getNode(B);if(!V)return[];const K=[V.data];let W=V.parent;for(;W&&W!==s.value;)K.push(W.data),W=W.parent;return K.reverse()},y=(B,V)=>o.value.getCheckedNodes(B,V),g=B=>o.value.getCheckedKeys(B),M=()=>{const B=o.value.getCurrentNode();return B?B.data:null},w=()=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const B=M();return B?B[e.nodeKey]:null},b=(B,V)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");o.value.setCheckedNodes(B,V)},S=(B,V)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");o.value.setCheckedKeys(B,V)},E=(B,V,K)=>{o.value.setChecked(B,V,K)},O=()=>o.value.getHalfCheckedNodes(),I=()=>o.value.getHalfCheckedKeys(),N=(B,V=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");Pc(o,t.emit,()=>{d(B),o.value.setUserCurrentNode(B,V)})},z=(B,V=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");Pc(o,t.emit,()=>{d(),o.value.setCurrentNodeKey(B,V)})},P=B=>o.value.getNode(B),L=B=>{o.value.remove(B)},F=(B,V)=>{o.value.append(B,V)},U=(B,V)=>{o.value.insertBefore(B,V)},H=(B,V)=>{o.value.insertAfter(B,V)},R=(B,V,K)=>{d(V),t.emit("node-expand",B,V,K)},D=(B,V)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");o.value.updateChildren(B,V)};return it("RootTree",{ctx:t,props:e,store:o,root:s,currentNode:i,instance:Ze()}),it(ka,void 0),{ns:a,store:o,root:s,currentNode:i,dragState:f,el$:u,dropIndicator$:c,isEmpty:h,filter:v,getNodeKey:m,getNodePath:p,getCheckedNodes:y,getCheckedKeys:g,getCurrentNode:M,getCurrentKey:w,setCheckedNodes:b,setCheckedKeys:S,setChecked:E,getHalfCheckedNodes:O,getHalfCheckedKeys:I,setCurrentNode:N,setCurrentKey:z,t:n,getNode:P,remove:L,append:F,insertBefore:U,insertAfter:H,handleNodeExpand:R,updateKeyChildren:D}}});function UU(e,t,n,a,l,o){const s=Je("el-tree-node");return _(),x("div",{ref:"el$",class:$([e.ns.b(),e.ns.is("dragging",!!e.dragState.draggingNode),e.ns.is("drop-not-allow",!e.dragState.allowDrop),e.ns.is("drop-inner",e.dragState.dropType==="inner"),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[(_(!0),x(ze,null,rt(e.root.childNodes,i=>(_(),ae(s,{key:e.getNodeKey(i),node:i,props:e.props,accordion:e.accordion,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent,onNodeExpand:e.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),e.isEmpty?(_(),x("div",{key:0,class:$(e.ns.e("empty-block"))},[Q(e.$slots,"empty",{},()=>{var i;return[k("span",{class:$(e.ns.e("empty-text"))},he((i=e.emptyText)!=null?i:e.t("el.tree.emptyText")),3)]})],2)):ee("v-if",!0),qe(k("div",{ref:"dropIndicator$",class:$(e.ns.e("drop-indicator"))},null,2),[[pt,e.dragState.showDropIndicator]])],2)}var YU=ve(qU,[["render",UU],["__file","tree.vue"]]);const ii=We(YU),GU=(e,{attrs:t,emit:n},{select:a,tree:l,key:o})=>{const s=de("tree-select");return se(()=>e.data,()=>{e.filterable&&Oe(()=>{var u,c;(c=l.value)==null||c.filter((u=a.value)==null?void 0:u.states.inputValue)})},{flush:"post"}),{...ra(nn(e),Object.keys(zl.props)),...t,"onUpdate:modelValue":u=>n(Ue,u),valueKey:o,popperClass:C(()=>{const u=[s.e("popper")];return e.popperClass&&u.push(e.popperClass),u.join(" ")}),filterMethod:(u="")=>{var c;e.filterMethod?e.filterMethod(u):e.remoteMethod?e.remoteMethod(u):(c=l.value)==null||c.filter(u)}}},XU=T({extends:Xs,setup(e,t){const n=Xs.setup(e,t);delete n.selectOptionClick;const a=Ze().proxy;return Oe(()=>{n.select.states.cachedOptions.get(a.value)||n.select.onOptionCreate(a)}),se(()=>t.attrs.visible,l=>{n.states.visible=l},{immediate:!0}),n},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function Vc(e){return e||e===0}function Of(e){return Ee(e)&&e.length}function Gl(e){return Ee(e)?e:Vc(e)?[e]:[]}function Vs(e,t,n,a,l){for(let o=0;o{se(()=>e.modelValue,()=>{e.showCheckbox&&Oe(()=>{const h=o.value;h&&!fn(h.getCheckedKeys(),Gl(e.modelValue))&&h.setCheckedKeys(Gl(e.modelValue))})},{immediate:!0,deep:!0});const i=C(()=>({value:s.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...e.props})),u=(h,v)=>{var m;const p=i.value[h];return Qe(p)?p(v,(m=o.value)==null?void 0:m.getNode(u("value",v))):v[p]},c=Gl(e.modelValue).map(h=>Vs(e.data||[],v=>u("value",v)===h,v=>u("children",v),(v,m,p,y)=>y&&u("value",y))).filter(h=>Vc(h)),d=C(()=>{if(!e.renderAfterExpand&&!e.lazy)return[];const h=[];return Ls(e.data.concat(e.cacheData),v=>{const m=u("value",v);h.push({value:m,currentLabel:u("label",v),isDisabled:u("disabled",v)})},v=>u("children",v)),h}),f=()=>{var h;return(h=o.value)==null?void 0:h.getCheckedKeys().filter(v=>{var m;const p=(m=o.value)==null?void 0:m.getNode(v);return!Zt(p)&&Hn(p.childNodes)})};return{...ra(nn(e),Object.keys(ii.props)),...t,nodeKey:s,expandOnClickNode:C(()=>!e.checkStrictly&&e.expandOnClickNode),defaultExpandedKeys:C(()=>e.defaultExpandedKeys?e.defaultExpandedKeys.concat(c):c),renderContent:(h,{node:v,data:m,store:p})=>h(XU,{value:u("value",m),label:u("label",m),disabled:u("disabled",m),visible:v.visible},e.renderContent?()=>e.renderContent(h,{node:v,data:m,store:p}):n.default?()=>n.default({node:v,data:m,store:p}):void 0),filterNodeMethod:(h,v,m)=>e.filterNodeMethod?e.filterNodeMethod(h,v,m):h?new RegExp(Rd(h),"i").test(u("label",v)||""):!0,onNodeClick:(h,v,m)=>{var p,y,g,M;if((p=t.onNodeClick)==null||p.call(t,h,v,m),!(e.showCheckbox&&e.checkOnClickNode)){if(!e.showCheckbox&&(e.checkStrictly||v.isLeaf)){if(!u("disabled",h)){const w=(y=l.value)==null?void 0:y.states.options.get(u("value",h));(g=l.value)==null||g.handleOptionSelect(w)}}else e.expandOnClickNode&&m.proxy.handleExpandIconClick();(M=l.value)==null||M.focus()}},onCheck:(h,v)=>{var m;if(!e.showCheckbox)return;const p=u("value",h),y={};Ls([o.value.store.root],b=>y[b.key]=b,b=>b.childNodes);const g=v.checkedKeys,M=e.multiple?Gl(e.modelValue).filter(b=>!(b in y)&&!g.includes(b)):[],w=M.concat(g);if(e.checkStrictly)a(Ue,e.multiple?w:w.includes(p)?p:void 0);else if(e.multiple){const b=f();a(Ue,M.concat(b))}else{const b=Vs([h],O=>!Of(u("children",O))&&!u("disabled",O),O=>u("children",O)),S=b?u("value",b):void 0,E=Vc(e.modelValue)&&!!Vs([h],O=>u("value",O)===e.modelValue,O=>u("children",O));a(Ue,S===e.modelValue||E?void 0:S)}Oe(()=>{var b;const S=Gl(e.modelValue);o.value.setCheckedKeys(S),(b=t.onCheck)==null||b.call(t,h,{checkedKeys:o.value.getCheckedKeys(),checkedNodes:o.value.getCheckedNodes(),halfCheckedKeys:o.value.getHalfCheckedKeys(),halfCheckedNodes:o.value.getHalfCheckedNodes()})}),(m=l.value)==null||m.focus()},onNodeExpand:(h,v,m)=>{var p;(p=t.onNodeExpand)==null||p.call(t,h,v,m),Oe(()=>{if(!e.checkStrictly&&e.lazy&&e.multiple&&v.checked){const y={},g=o.value.getCheckedKeys();Ls([o.value.store.root],b=>y[b.key]=b,b=>b.childNodes);const M=Gl(e.modelValue).filter(b=>!(b in y)&&!g.includes(b)),w=f();a(Ue,M.concat(w))}})},cacheOptions:d}};var JU=T({props:{data:{type:Array,default:()=>[]}},setup(e){const t=Se(Ho);return se(()=>e.data,()=>{var n;e.data.forEach(l=>{t.states.cachedOptions.has(l.value)||t.states.cachedOptions.set(l.value,l)});const a=((n=t.selectRef)==null?void 0:n.querySelectorAll("input"))||[];ut&&!Array.from(a).includes(document.activeElement)&&t.setSelected()},{flush:"post",immediate:!0}),()=>{}}});const QU=T({name:"ElTreeSelect",inheritAttrs:!1,props:{...zl.props,...ii.props,cacheData:{type:Array,default:()=>[]}},setup(e,t){const{slots:n,expose:a}=t,l=A(),o=A(),s=C(()=>e.nodeKey||e.valueKey||"value"),i=GU(e,t,{select:l,tree:o,key:s}),{cacheOptions:u,...c}=ZU(e,t,{select:l,tree:o,key:s}),d=_t({});return a(d),Ge(()=>{Object.assign(d,{...ra(o.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...ra(l.value,["focus","blur","selectedLabel"])})}),()=>Pe(zl,_t({...i,ref:f=>l.value=f}),{...n,default:()=>[Pe(JU,{data:u.value}),Pe(ii,_t({...c,ref:f=>o.value=f}))]})}});var eY=ve(QU,[["__file","tree-select.vue"]]);const tY=We(eY),Nf=Symbol(),nY={key:-1,level:-1,data:{}};var Jo=(e=>(e.KEY="id",e.LABEL="label",e.CHILDREN="children",e.DISABLED="disabled",e.CLASS="",e))(Jo||{}),Lc=(e=>(e.ADD="add",e.DELETE="delete",e))(Lc||{});const T4={type:Number,default:26},aY=pe({data:{type:X(Array),default:()=>Vt([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:X(Object),default:()=>Vt({children:"children",label:"label",disabled:"disabled",value:"id",class:""})},highlightCurrent:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},defaultCheckedKeys:{type:X(Array),default:()=>Vt([])},checkStrictly:{type:Boolean,default:!1},defaultExpandedKeys:{type:X(Array),default:()=>Vt([])},indent:{type:Number,default:16},itemSize:T4,icon:{type:St},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!1},currentNodeKey:{type:X([String,Number])},accordion:{type:Boolean,default:!1},filterMethod:{type:X(Function)},perfMode:{type:Boolean,default:!0}}),lY=pe({node:{type:X(Object),default:()=>Vt(nY)},expanded:{type:Boolean,default:!1},checked:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},current:{type:Boolean,default:!1},hiddenExpandIcon:{type:Boolean,default:!1},itemSize:T4}),oY=pe({node:{type:X(Object),required:!0}}),O4="node-click",N4="node-drop",I4="node-expand",P4="node-collapse",z4="current-change",A4="check",V4="check-change",L4="node-contextmenu",rY={[O4]:(e,t,n)=>e&&t&&n,[N4]:(e,t,n)=>e&&t&&n,[I4]:(e,t)=>e&&t,[P4]:(e,t)=>e&&t,[z4]:(e,t)=>e&&t,[A4]:(e,t)=>e&&t,[V4]:(e,t)=>e&&Et(t),[L4]:(e,t,n)=>e&&t&&n},sY={click:(e,t)=>!!(e&&t),drop:(e,t)=>!!(e&&t),toggle:e=>!!e,check:(e,t)=>e&&Et(t)};function iY(e,t){const n=A(new Set),a=A(new Set),{emit:l}=Ze();se([()=>t.value,()=>e.defaultCheckedKeys],()=>Oe(()=>{M(e.defaultCheckedKeys)}),{immediate:!0});const o=()=>{if(!t.value||!e.showCheckbox||e.checkStrictly)return;const{levelTreeNodeMap:w,maxLevel:b}=t.value,S=n.value,E=new Set;for(let O=b-1;O>=1;--O){const I=w.get(O);I&&I.forEach(N=>{const z=N.children;if(z){let P=!0,L=!1;for(const F of z){const U=F.key;if(S.has(U))L=!0;else if(E.has(U)){P=!1,L=!0;break}else P=!1}P?S.add(N.key):L?(E.add(N.key),S.delete(N.key)):(S.delete(N.key),E.delete(N.key))}})}a.value=E},s=w=>n.value.has(w.key),i=w=>a.value.has(w.key),u=(w,b,S=!0,E=!0)=>{const O=n.value,I=(N,z)=>{O[z?Lc.ADD:Lc.DELETE](N.key);const P=N.children;!e.checkStrictly&&P&&P.forEach(L=>{L.disabled||I(L,z)})};I(w,b),E&&o(),S&&c(w,b)},c=(w,b)=>{const{checkedNodes:S,checkedKeys:E}=m(),{halfCheckedNodes:O,halfCheckedKeys:I}=p();l(A4,w.data,{checkedKeys:E,checkedNodes:S,halfCheckedKeys:I,halfCheckedNodes:O}),l(V4,w.data,b)};function d(w=!1){return m(w).checkedKeys}function f(w=!1){return m(w).checkedNodes}function h(){return p().halfCheckedKeys}function v(){return p().halfCheckedNodes}function m(w=!1){const b=[],S=[];if(t!=null&&t.value&&e.showCheckbox){const{treeNodeMap:E}=t.value;n.value.forEach(O=>{const I=E.get(O);I&&(!w||w&&I.isLeaf)&&(S.push(O),b.push(I.data))})}return{checkedKeys:S,checkedNodes:b}}function p(){const w=[],b=[];if(t!=null&&t.value&&e.showCheckbox){const{treeNodeMap:S}=t.value;a.value.forEach(E=>{const O=S.get(E);O&&(b.push(E),w.push(O.data))})}return{halfCheckedNodes:w,halfCheckedKeys:b}}function y(w){n.value.clear(),a.value.clear(),Oe(()=>{M(w)})}function g(w,b){if(t!=null&&t.value&&e.showCheckbox){const S=t.value.treeNodeMap.get(w);S&&u(S,b,!1)}}function M(w){if(t!=null&&t.value){const{treeNodeMap:b}=t.value;if(e.showCheckbox&&b&&(w==null?void 0:w.length)>0){for(const S of w){const E=b.get(S);E&&!s(E)&&u(E,!0,!1,!1)}o()}}}return{updateCheckedKeys:o,toggleCheckbox:u,isChecked:s,isIndeterminate:i,getCheckedKeys:d,getCheckedNodes:f,getHalfCheckedKeys:h,getHalfCheckedNodes:v,setChecked:g,setCheckedKeys:y}}function uY(e,t){const n=A(new Set([])),a=A(new Set([])),l=C(()=>Qe(e.filterMethod));function o(i){var u;if(!l.value)return;const c=new Set,d=a.value,f=n.value,h=[],v=((u=t.value)==null?void 0:u.treeNodes)||[],m=e.filterMethod;f.clear();function p(y){y.forEach(g=>{h.push(g),m!=null&&m(i,g.data,g)?h.forEach(w=>{c.add(w.key)}):g.isLeaf&&f.add(g.key);const M=g.children;if(M&&p(M),!g.isLeaf){if(!c.has(g.key))f.add(g.key);else if(M){let w=!0;for(const b of M)if(!f.has(b.key)){w=!1;break}w?d.add(g.key):d.delete(g.key)}}h.pop()})}return p(v),c}function s(i){return a.value.has(i.key)}return{hiddenExpandIconKeySet:a,hiddenNodeKeySet:n,doFilter:o,isForceHiddenExpandIcon:s}}function cY(e,t){const n=A(new Set(e.defaultExpandedKeys)),a=A(),l=Mt(),o=A();se(()=>e.currentNodeKey,le=>{a.value=le},{immediate:!0}),se(()=>e.data,le=>{ie(le)},{immediate:!0});const{isIndeterminate:s,isChecked:i,toggleCheckbox:u,getCheckedKeys:c,getCheckedNodes:d,getHalfCheckedKeys:f,getHalfCheckedNodes:h,setChecked:v,setCheckedKeys:m}=iY(e,l),{doFilter:p,hiddenNodeKeySet:y,isForceHiddenExpandIcon:g}=uY(e,l),M=C(()=>{var le;return((le=e.props)==null?void 0:le.value)||Jo.KEY}),w=C(()=>{var le;return((le=e.props)==null?void 0:le.children)||Jo.CHILDREN}),b=C(()=>{var le;return((le=e.props)==null?void 0:le.disabled)||Jo.DISABLED}),S=C(()=>{var le;return((le=e.props)==null?void 0:le.label)||Jo.LABEL}),E=C(()=>{var le;const we=n.value,Le=y.value,De=[],Ye=((le=l.value)==null?void 0:le.treeNodes)||[],$e=[];for(let Te=Ye.length-1;Te>=0;--Te)$e.push(Ye[Te]);for(;$e.length;){const Te=$e.pop();if(!Le.has(Te.key)&&(De.push(Te),Te.children&&we.has(Te.key)))for(let ke=Te.children.length-1;ke>=0;--ke)$e.push(Te.children[ke])}return De}),O=C(()=>E.value.length>0);function I(le){const we=new Map,Le=new Map;let De=1;function Ye(Te,ke=1,He=void 0){var Xe;const at=[];for(const nt of Te){const be=P(nt),je={level:ke,key:be,data:nt};je.label=F(nt),je.parent=He;const ft=z(nt);je.disabled=L(nt),je.isLeaf=!ft||ft.length===0,ft&&ft.length&&(je.children=Ye(ft,ke+1,je)),at.push(je),we.set(be,je),Le.has(ke)||Le.set(ke,[]),(Xe=Le.get(ke))==null||Xe.push(je)}return ke>De&&(De=ke),at}const $e=Ye(le);return{treeNodeMap:we,levelTreeNodeMap:Le,maxLevel:De,treeNodes:$e}}function N(le){const we=p(le);we&&(n.value=we)}function z(le){return le[w.value]}function P(le){return le?le[M.value]:""}function L(le){return le[b.value]}function F(le){return le[S.value]}function U(le){n.value.has(le.key)?W(le):K(le)}function H(le){const we=new Set,Le=l.value.treeNodeMap;le.forEach(De=>{let Ye=Le.get(De);for(;Ye&&!we.has(Ye.key);)we.add(Ye.key),Ye=Ye.parent}),n.value=we}function R(le,we){t(O4,le.data,le,we),B(le),e.expandOnClickNode&&U(le),e.showCheckbox&&e.checkOnClickNode&&!le.disabled&&u(le,!i(le),!0)}function D(le,we){t(N4,le.data,le,we)}function B(le){ne(le)||(a.value=le.key,t(z4,le.data,le))}function V(le,we){u(le,we)}function K(le){const we=n.value;if(l.value&&e.accordion){const{treeNodeMap:Le}=l.value;we.forEach(De=>{const Ye=Le.get(De);le&&le.level===(Ye==null?void 0:Ye.level)&&we.delete(De)})}we.add(le.key),t(I4,le.data,le)}function W(le){n.value.delete(le.key),t(P4,le.data,le)}function Z(le){return n.value.has(le.key)}function j(le){return!!le.disabled}function ne(le){const we=a.value;return we!==void 0&&we===le.key}function oe(){var le,we;if(a.value)return(we=(le=l.value)==null?void 0:le.treeNodeMap.get(a.value))==null?void 0:we.data}function ce(){return a.value}function te(le){a.value=le}function ie(le){Oe(()=>l.value=I(le))}function fe(le){var we;const Le=ht(le)?P(le):le;return(we=l.value)==null?void 0:we.treeNodeMap.get(Le)}function Me(le,we="auto"){const Le=fe(le);Le&&o.value&&o.value.scrollToItem(E.value.indexOf(Le),we)}function me(le){var we;(we=o.value)==null||we.scrollTo(le)}return{tree:l,flattenTree:E,isNotEmpty:O,listRef:o,getKey:P,getChildren:z,toggleExpand:U,toggleCheckbox:u,isExpanded:Z,isChecked:i,isIndeterminate:s,isDisabled:j,isCurrent:ne,isForceHiddenExpandIcon:g,handleNodeClick:R,handleNodeDrop:D,handleNodeCheck:V,getCurrentNode:oe,getCurrentKey:ce,setCurrentKey:te,getCheckedKeys:c,getCheckedNodes:d,getHalfCheckedKeys:f,getHalfCheckedNodes:h,setChecked:v,setCheckedKeys:m,filter:N,setData:ie,getNode:fe,expandNode:K,collapseNode:W,setExpandedKeys:H,scrollToNode:Me,scrollTo:me}}var dY=T({name:"ElTreeNodeContent",props:oY,setup(e){const t=Se(Nf),n=de("tree");return()=>{const a=e.node,{data:l}=a;return t!=null&&t.ctx.slots.default?t.ctx.slots.default({node:a,data:l}):Pe("span",{class:n.be("node","label")},[a==null?void 0:a.label])}}});const fY=T({name:"ElTreeNode"}),pY=T({...fY,props:lY,emits:sY,setup(e,{emit:t}){const n=e,a=Se(Nf),l=de("tree"),o=C(()=>{var v;return(v=a==null?void 0:a.props.indent)!=null?v:16}),s=C(()=>{var v;return(v=a==null?void 0:a.props.icon)!=null?v:vd}),i=v=>{const m=a==null?void 0:a.props.props.class;if(!m)return{};let p;if(Qe(m)){const{data:y}=v;p=m(y,v)}else p=m;return Ve(p)?{[p]:!0}:p},u=v=>{t("click",n.node,v)},c=v=>{t("drop",n.node,v)},d=()=>{t("toggle",n.node)},f=v=>{t("check",n.node,v)},h=v=>{var m,p,y,g;(y=(p=(m=a==null?void 0:a.instance)==null?void 0:m.vnode)==null?void 0:p.props)!=null&&y.onNodeContextmenu&&(v.stopPropagation(),v.preventDefault()),a==null||a.ctx.emit(L4,v,(g=n.node)==null?void 0:g.data,n.node)};return(v,m)=>{var p,y,g;return _(),x("div",{ref:"node$",class:$([r(l).b("node"),r(l).is("expanded",v.expanded),r(l).is("current",v.current),r(l).is("focusable",!v.disabled),r(l).is("checked",!v.disabled&&v.checked),i(v.node)]),role:"treeitem",tabindex:"-1","aria-expanded":v.expanded,"aria-disabled":v.disabled,"aria-checked":v.checked,"data-key":(p=v.node)==null?void 0:p.key,onClick:Ae(u,["stop"]),onContextmenu:h,onDragover:Ae(()=>{},["prevent"]),onDragenter:Ae(()=>{},["prevent"]),onDrop:Ae(c,["stop"])},[k("div",{class:$(r(l).be("node","content")),style:Ne({paddingLeft:`${(v.node.level-1)*r(o)}px`,height:v.itemSize+"px"})},[r(s)?(_(),ae(r(xe),{key:0,class:$([r(l).is("leaf",!!((y=v.node)!=null&&y.isLeaf)),r(l).is("hidden",v.hiddenExpandIcon),{expanded:!((g=v.node)!=null&&g.isLeaf)&&v.expanded},r(l).be("node","expand-icon")]),onClick:Ae(d,["stop"])},{default:G(()=>[(_(),ae(et(r(s))))]),_:1},8,["class","onClick"])):ee("v-if",!0),v.showCheckbox?(_(),ae(r(Qn),{key:1,"model-value":v.checked,indeterminate:v.indeterminate,disabled:v.disabled,onChange:f,onClick:Ae(()=>{},["stop"])},null,8,["model-value","indeterminate","disabled","onClick"])):ee("v-if",!0),q(r(dY),{node:v.node},null,8,["node"])],6)],42,["aria-expanded","aria-disabled","aria-checked","data-key","onClick","onDragover","onDragenter","onDrop"])}}});var vY=ve(pY,[["__file","tree-node.vue"]]);const hY=T({name:"ElTreeV2"}),mY=T({...hY,props:aY,emits:rY,setup(e,{expose:t,emit:n}){const a=e,l=Xt(),o=C(()=>a.itemSize);it(Nf,{ctx:{emit:n,slots:l},props:a,instance:Ze()}),it(ka,void 0);const{t:s}=ct(),i=de("tree"),{flattenTree:u,isNotEmpty:c,listRef:d,toggleExpand:f,isExpanded:h,isIndeterminate:v,isChecked:m,isDisabled:p,isCurrent:y,isForceHiddenExpandIcon:g,handleNodeClick:M,handleNodeDrop:w,handleNodeCheck:b,toggleCheckbox:S,getCurrentNode:E,getCurrentKey:O,setCurrentKey:I,getCheckedKeys:N,getCheckedNodes:z,getHalfCheckedKeys:P,getHalfCheckedNodes:L,setChecked:F,setCheckedKeys:U,filter:H,setData:R,getNode:D,expandNode:B,collapseNode:V,setExpandedKeys:K,scrollToNode:W,scrollTo:Z}=cY(a,n);return t({toggleCheckbox:S,getCurrentNode:E,getCurrentKey:O,setCurrentKey:I,getCheckedKeys:N,getCheckedNodes:z,getHalfCheckedKeys:P,getHalfCheckedNodes:L,setChecked:F,setCheckedKeys:U,filter:H,setData:R,getNode:D,expandNode:B,collapseNode:V,setExpandedKeys:K,scrollToNode:W,scrollTo:Z}),(j,ne)=>(_(),x("div",{class:$([r(i).b(),{[r(i).m("highlight-current")]:j.highlightCurrent}]),role:"tree"},[r(c)?(_(),ae(r(_m),{key:0,ref_key:"listRef",ref:d,"class-name":r(i).b("virtual-list"),data:r(u),total:r(u).length,height:j.height,"item-size":r(o),"perf-mode":j.perfMode},{default:G(({data:oe,index:ce,style:te})=>[(_(),ae(vY,{key:oe[ce].key,style:Ne(te),node:oe[ce],expanded:r(h)(oe[ce]),"show-checkbox":j.showCheckbox,checked:r(m)(oe[ce]),indeterminate:r(v)(oe[ce]),"item-size":r(o),disabled:r(p)(oe[ce]),current:r(y)(oe[ce]),"hidden-expand-icon":r(g)(oe[ce]),onClick:r(M),onToggle:r(f),onCheck:r(b),onDrop:r(w)},null,8,["style","node","expanded","show-checkbox","checked","indeterminate","item-size","disabled","current","hidden-expand-icon","onClick","onToggle","onCheck","onDrop"]))]),_:1},8,["class-name","data","total","height","item-size","perf-mode"])):(_(),x("div",{key:1,class:$(r(i).e("empty-block"))},[Q(j.$slots,"empty",{},()=>{var oe;return[k("span",{class:$(r(i).e("empty-text"))},he((oe=j.emptyText)!=null?oe:r(s)("el.tree.emptyText")),3)]})],2))],2))}});var gY=ve(mY,[["__file","tree.vue"]]);const yY=We(gY),R4=Symbol("uploadContextKey"),_Y="ElUpload";class bY extends Error{constructor(t,n,a,l){super(t),this.name="UploadAjaxError",this.status=n,this.method=a,this.url=l}}function Cp(e,t,n){let a;return n.response?a=`${n.response.error||n.response}`:n.responseText?a=`${n.responseText}`:a=`fail to ${t.method} ${e} ${n.status}`,new bY(a,n.status,t.method,e)}function wY(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const CY=e=>{typeof XMLHttpRequest>"u"&&Gt(_Y,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener("progress",o=>{const s=o;s.percent=o.total>0?o.loaded/o.total*100:0,e.onProgress(s)});const a=new FormData;if(e.data)for(const[o,s]of Object.entries(e.data))Ee(s)&&s.length?a.append(o,...s):a.append(o,s);a.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(Cp(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(Cp(n,e,t));e.onSuccess(wY(t))}),t.open(e.method,n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const l=e.headers||{};if(l instanceof Headers)l.forEach((o,s)=>t.setRequestHeader(s,o));else for(const[o,s]of Object.entries(l))Zt(s)||t.setRequestHeader(o,String(s));return t.send(a),t},B4=["text","picture","picture-card"];let SY=1;const Rc=()=>Date.now()+SY++,H4=pe({action:{type:String,default:"#"},headers:{type:X(Object)},method:{type:String,default:"post"},data:{type:X([Object,Function,Promise]),default:()=>Vt({})},multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:X(Array),default:()=>Vt([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:B4,default:"text"},httpRequest:{type:X(Function),default:CY},disabled:Boolean,limit:Number}),kY=pe({...H4,beforeUpload:{type:X(Function),default:zt},beforeRemove:{type:X(Function)},onRemove:{type:X(Function),default:zt},onChange:{type:X(Function),default:zt},onPreview:{type:X(Function),default:zt},onSuccess:{type:X(Function),default:zt},onProgress:{type:X(Function),default:zt},onError:{type:X(Function),default:zt},onExceed:{type:X(Function),default:zt},crossorigin:{type:X(String)}}),EY=pe({files:{type:X(Array),default:()=>Vt([])},disabled:{type:Boolean,default:!1},handlePreview:{type:X(Function),default:zt},listType:{type:String,values:B4,default:"text"},crossorigin:{type:X(String)}}),MY={remove:e=>!!e},xY=T({name:"ElUploadList"}),$Y=T({...xY,props:EY,emits:MY,setup(e,{emit:t}){const n=e,{t:a}=ct(),l=de("upload"),o=de("icon"),s=de("list"),i=yn(),u=A(!1),c=C(()=>[l.b("list"),l.bm("list",n.listType),l.is("disabled",n.disabled)]),d=f=>{t("remove",f)};return(f,h)=>(_(),ae(Rp,{tag:"ul",class:$(r(c)),name:r(s).b()},{default:G(()=>[(_(!0),x(ze,null,rt(f.files,(v,m)=>(_(),x("li",{key:v.uid||v.name,class:$([r(l).be("list","item"),r(l).is(v.status),{focusing:u.value}]),tabindex:"0",onKeydown:kt(p=>!r(i)&&d(v),["delete"]),onFocus:p=>u.value=!0,onBlur:p=>u.value=!1,onClick:p=>u.value=!1},[Q(f.$slots,"default",{file:v,index:m},()=>[f.listType==="picture"||v.status!=="uploading"&&f.listType==="picture-card"?(_(),x("img",{key:0,class:$(r(l).be("list","item-thumbnail")),src:v.url,crossorigin:f.crossorigin,alt:""},null,10,["src","crossorigin"])):ee("v-if",!0),v.status==="uploading"||f.listType!=="picture-card"?(_(),x("div",{key:1,class:$(r(l).be("list","item-info"))},[k("a",{class:$(r(l).be("list","item-name")),onClick:Ae(p=>f.handlePreview(v),["prevent"])},[q(r(xe),{class:$(r(o).m("document"))},{default:G(()=>[q(r(Jv))]),_:1},8,["class"]),k("span",{class:$(r(l).be("list","item-file-name")),title:v.name},he(v.name),11,["title"])],10,["onClick"]),v.status==="uploading"?(_(),ae(r(um),{key:0,type:f.listType==="picture-card"?"circle":"line","stroke-width":f.listType==="picture-card"?6:2,percentage:Number(v.percentage),style:Ne(f.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):ee("v-if",!0)],2)):ee("v-if",!0),k("label",{class:$(r(l).be("list","item-status-label"))},[f.listType==="text"?(_(),ae(r(xe),{key:0,class:$([r(o).m("upload-success"),r(o).m("circle-check")])},{default:G(()=>[q(r(Ei))]),_:1},8,["class"])):["picture-card","picture"].includes(f.listType)?(_(),ae(r(xe),{key:1,class:$([r(o).m("upload-success"),r(o).m("check")])},{default:G(()=>[q(r(Vo))]),_:1},8,["class"])):ee("v-if",!0)],2),r(i)?ee("v-if",!0):(_(),ae(r(xe),{key:2,class:$(r(o).m("close")),onClick:p=>d(v)},{default:G(()=>[q(r(Xn))]),_:2},1032,["class","onClick"])),ee(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),ee(" This is a bug which needs to be fixed "),ee(" TODO: Fix the incorrect navigation interaction "),r(i)?ee("v-if",!0):(_(),x("i",{key:3,class:$(r(o).m("close-tip"))},he(r(a)("el.upload.deleteTip")),3)),f.listType==="picture-card"?(_(),x("span",{key:4,class:$(r(l).be("list","item-actions"))},[k("span",{class:$(r(l).be("list","item-preview")),onClick:p=>f.handlePreview(v)},[q(r(xe),{class:$(r(o).m("zoom-in"))},{default:G(()=>[q(r(yd))]),_:1},8,["class"])],10,["onClick"]),r(i)?ee("v-if",!0):(_(),x("span",{key:0,class:$(r(l).be("list","item-delete")),onClick:p=>d(v)},[q(r(xe),{class:$(r(o).m("delete"))},{default:G(()=>[q(r(Zv))]),_:1},8,["class"])],10,["onClick"]))],2)):ee("v-if",!0)])],42,["onKeydown","onFocus","onBlur","onClick"]))),128)),Q(f.$slots,"append")]),_:3},8,["class","name"]))}});var Sp=ve($Y,[["__file","upload-list.vue"]]);const TY=pe({disabled:{type:Boolean,default:!1}}),OY={file:e=>Ee(e)},D4="ElUploadDrag",NY=T({name:D4}),IY=T({...NY,props:TY,emits:OY,setup(e,{emit:t}){Se(R4)||Gt(D4,"usage: ");const a=de("upload"),l=A(!1),o=yn(),s=u=>{if(o.value)return;l.value=!1,u.stopPropagation();const c=Array.from(u.dataTransfer.files);t("file",c)},i=()=>{o.value||(l.value=!0)};return(u,c)=>(_(),x("div",{class:$([r(a).b("dragger"),r(a).is("dragover",l.value)]),onDrop:Ae(s,["prevent"]),onDragover:Ae(i,["prevent"]),onDragleave:Ae(d=>l.value=!1,["prevent"])},[Q(u.$slots,"default")],42,["onDrop","onDragover","onDragleave"]))}});var PY=ve(IY,[["__file","upload-dragger.vue"]]);const zY=pe({...H4,beforeUpload:{type:X(Function),default:zt},onRemove:{type:X(Function),default:zt},onStart:{type:X(Function),default:zt},onSuccess:{type:X(Function),default:zt},onProgress:{type:X(Function),default:zt},onError:{type:X(Function),default:zt},onExceed:{type:X(Function),default:zt}}),AY=T({name:"ElUploadContent",inheritAttrs:!1}),VY=T({...AY,props:zY,setup(e,{expose:t}){const n=e,a=de("upload"),l=yn(),o=Mt({}),s=Mt(),i=p=>{if(p.length===0)return;const{autoUpload:y,limit:g,fileList:M,multiple:w,onStart:b,onExceed:S}=n;if(g&&M.length+p.length>g){S(p,M);return}w||(p=p.slice(0,1));for(const E of p){const O=E;O.uid=Rc(),b(O),y&&u(O)}},u=async p=>{if(s.value.value="",!n.beforeUpload)return d(p);let y,g={};try{const w=n.data,b=n.beforeUpload(p);g=Ou(n.data)?Ks(n.data):n.data,y=await b,Ou(n.data)&&fn(w,g)&&(g=Ks(n.data))}catch{y=!1}if(y===!1){n.onRemove(p);return}let M=p;y instanceof Blob&&(y instanceof File?M=y:M=new File([y],p.name,{type:p.type})),d(Object.assign(M,{uid:p.uid}),g)},c=async(p,y)=>Qe(p)?p(y):p,d=async(p,y)=>{const{headers:g,data:M,method:w,withCredentials:b,name:S,action:E,onProgress:O,onSuccess:I,onError:N,httpRequest:z}=n;try{y=await c(y??M,p)}catch{n.onRemove(p);return}const{uid:P}=p,L={headers:g||{},withCredentials:b,file:p,data:y,method:w,filename:S,action:E,onProgress:U=>{O(U,p)},onSuccess:U=>{I(U,p),delete o.value[P]},onError:U=>{N(U,p),delete o.value[P]}},F=z(L);o.value[P]=F,F instanceof Promise&&F.then(L.onSuccess,L.onError)},f=p=>{const y=p.target.files;y&&i(Array.from(y))},h=()=>{l.value||(s.value.value="",s.value.click())},v=()=>{h()};return t({abort:p=>{Dv(o.value).filter(p?([g])=>String(p.uid)===g:()=>!0).forEach(([g,M])=>{M instanceof XMLHttpRequest&&M.abort(),delete o.value[g]})},upload:u}),(p,y)=>(_(),x("div",{class:$([r(a).b(),r(a).m(p.listType),r(a).is("drag",p.drag),r(a).is("disabled",r(l))]),tabindex:r(l)?"-1":"0",onClick:h,onKeydown:kt(Ae(v,["self"]),["enter","space"])},[p.drag?(_(),ae(PY,{key:0,disabled:r(l),onFile:i},{default:G(()=>[Q(p.$slots,"default")]),_:3},8,["disabled"])):Q(p.$slots,"default",{key:1}),k("input",{ref_key:"inputRef",ref:s,class:$(r(a).e("input")),name:p.name,disabled:r(l),multiple:p.multiple,accept:p.accept,type:"file",onChange:f,onClick:Ae(()=>{},["stop"])},null,42,["name","disabled","multiple","accept","onClick"])],42,["tabindex","onKeydown"]))}});var kp=ve(VY,[["__file","upload-content.vue"]]);const Ep="ElUpload",Mp=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},LY=(e,t)=>{const n=Pv(e,"fileList",void 0,{passive:!0}),a=v=>n.value.find(m=>m.uid===v.uid);function l(v){var m;(m=t.value)==null||m.abort(v)}function o(v=["ready","uploading","success","fail"]){n.value=n.value.filter(m=>!v.includes(m.status))}function s(v){n.value=n.value.filter(m=>m.uid!==v.uid)}const i=(v,m)=>{const p=a(m);p&&(console.error(v),p.status="fail",s(p),e.onError(v,p,n.value),e.onChange(p,n.value))},u=(v,m)=>{const p=a(m);p&&(e.onProgress(v,p,n.value),p.status="uploading",p.percentage=Math.round(v.percent))},c=(v,m)=>{const p=a(m);p&&(p.status="success",p.response=v,e.onSuccess(v,p,n.value),e.onChange(p,n.value))},d=v=>{Zt(v.uid)&&(v.uid=Rc());const m={name:v.name,percentage:0,status:"ready",size:v.size,raw:v,uid:v.uid};if(e.listType==="picture-card"||e.listType==="picture")try{m.url=URL.createObjectURL(v)}catch(p){p.message,e.onError(p,m,n.value)}n.value=[...n.value,m],e.onChange(m,n.value)},f=async v=>{const m=v instanceof File?a(v):v;m||Gt(Ep,"file to be removed not found");const p=y=>{l(y),s(y),e.onRemove(y,n.value),Mp(y)};e.beforeRemove?await e.beforeRemove(m,n.value)!==!1&&p(m):p(m)};function h(){n.value.filter(({status:v})=>v==="ready").forEach(({raw:v})=>{var m;return v&&((m=t.value)==null?void 0:m.upload(v))})}return se(()=>e.listType,v=>{v!=="picture-card"&&v!=="picture"||(n.value=n.value.map(m=>{const{raw:p,url:y}=m;if(!y&&p)try{m.url=URL.createObjectURL(p)}catch(g){e.onError(g,m,n.value)}return m}))}),se(n,v=>{for(const m of v)m.uid||(m.uid=Rc()),m.status||(m.status="success")},{immediate:!0,deep:!0}),{uploadFiles:n,abort:l,clearFiles:o,handleError:i,handleProgress:u,handleStart:d,handleSuccess:c,handleRemove:f,submit:h,revokeFileObjectURL:Mp}},RY=T({name:"ElUpload"}),BY=T({...RY,props:kY,setup(e,{expose:t}){const n=e,a=yn(),l=Mt(),{abort:o,submit:s,clearFiles:i,uploadFiles:u,handleStart:c,handleError:d,handleRemove:f,handleSuccess:h,handleProgress:v,revokeFileObjectURL:m}=LY(n,l),p=C(()=>n.listType==="picture-card"),y=C(()=>({...n,fileList:u.value,onStart:c,onProgress:v,onSuccess:h,onError:d,onRemove:f}));return Tt(()=>{u.value.forEach(m)}),it(R4,{accept:mt(n,"accept")}),t({abort:o,submit:s,clearFiles:i,handleStart:c,handleRemove:f}),(g,M)=>(_(),x("div",null,[r(p)&&g.showFileList?(_(),ae(Sp,{key:0,disabled:r(a),"list-type":g.listType,files:r(u),crossorigin:g.crossorigin,"handle-preview":g.onPreview,onRemove:r(f)},Yn({append:G(()=>[q(kp,tt({ref_key:"uploadRef",ref:l},r(y)),{default:G(()=>[g.$slots.trigger?Q(g.$slots,"trigger",{key:0}):ee("v-if",!0),!g.$slots.trigger&&g.$slots.default?Q(g.$slots,"default",{key:1}):ee("v-if",!0)]),_:3},16)]),_:2},[g.$slots.file?{name:"default",fn:G(({file:w,index:b})=>[Q(g.$slots,"file",{file:w,index:b})])}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):ee("v-if",!0),!r(p)||r(p)&&!g.showFileList?(_(),ae(kp,tt({key:1,ref_key:"uploadRef",ref:l},r(y)),{default:G(()=>[g.$slots.trigger?Q(g.$slots,"trigger",{key:0}):ee("v-if",!0),!g.$slots.trigger&&g.$slots.default?Q(g.$slots,"default",{key:1}):ee("v-if",!0)]),_:3},16)):ee("v-if",!0),g.$slots.trigger?Q(g.$slots,"default",{key:2}):ee("v-if",!0),Q(g.$slots,"tip"),!r(p)&&g.showFileList?(_(),ae(Sp,{key:3,disabled:r(a),"list-type":g.listType,files:r(u),crossorigin:g.crossorigin,"handle-preview":g.onPreview,onRemove:r(f)},Yn({_:2},[g.$slots.file?{name:"default",fn:G(({file:w,index:b})=>[Q(g.$slots,"file",{file:w,index:b})])}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):ee("v-if",!0)]))}});var HY=ve(BY,[["__file","upload.vue"]]);const DY=We(HY),FY=pe({zIndex:{type:Number,default:9},rotate:{type:Number,default:-22},width:Number,height:Number,image:String,content:{type:X([String,Array]),default:"Element Plus"},font:{type:X(Object)},gap:{type:X(Array),default:()=>[100,100]},offset:{type:X(Array)}});function KY(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function WY(e){return Object.keys(e).map(t=>`${KY(t)}: ${e[t]};`).join(" ")}function jY(){return window.devicePixelRatio||1}const qY=(e,t)=>{let n=!1;return e.removedNodes.length&&t&&(n=Array.from(e.removedNodes).includes(t)),e.type==="attributes"&&e.target===t&&(n=!0),n},F4=3;function Eu(e,t,n=1){const a=document.createElement("canvas"),l=a.getContext("2d"),o=e*n,s=t*n;return a.setAttribute("width",`${o}px`),a.setAttribute("height",`${s}px`),l.save(),[l,a,o,s]}function UY(){function e(t,n,a,l,o,s,i,u){const[c,d,f,h]=Eu(l,o,a);if(t instanceof HTMLImageElement)c.drawImage(t,0,0,f,h);else{const{color:W,fontSize:Z,fontStyle:j,fontWeight:ne,fontFamily:oe,textAlign:ce,textBaseline:te}=s,ie=Number(Z)*a;c.font=`${j} normal ${ne} ${ie}px/${o}px ${oe}`,c.fillStyle=W,c.textAlign=ce,c.textBaseline=te;const fe=Ee(t)?t:[t];fe==null||fe.forEach((Me,me)=>{c.fillText(Me??"",f/2,me*(ie+F4*a))})}const v=Math.PI/180*Number(n),m=Math.max(l,o),[p,y,g]=Eu(m,m,a);p.translate(g/2,g/2),p.rotate(v),f>0&&h>0&&p.drawImage(d,-f/2,-h/2);function M(W,Z){const j=W*Math.cos(v)-Z*Math.sin(v),ne=W*Math.sin(v)+Z*Math.cos(v);return[j,ne]}let w=0,b=0,S=0,E=0;const O=f/2,I=h/2;[[0-O,0-I],[0+O,0-I],[0+O,0+I],[0-O,0+I]].forEach(([W,Z])=>{const[j,ne]=M(W,Z);w=Math.min(w,j),b=Math.max(b,j),S=Math.min(S,ne),E=Math.max(E,ne)});const z=w+g/2,P=S+g/2,L=b-w,F=E-S,U=i*a,H=u*a,R=(L+U)*2,D=F+H,[B,V]=Eu(R,D);function K(W=0,Z=0){B.drawImage(y,z,P,L,F,W,Z,L,F)}return K(),K(L+U,-F/2-H/2),K(L+U,+F/2+H/2),[V.toDataURL(),R/a,D/a]}return e}const YY=T({name:"ElWatermark"}),GY=T({...YY,props:FY,setup(e){const t=e,n={position:"relative"},a=C(()=>{var z,P;return(P=(z=t.font)==null?void 0:z.color)!=null?P:"rgba(0,0,0,.15)"}),l=C(()=>{var z,P;return(P=(z=t.font)==null?void 0:z.fontSize)!=null?P:16}),o=C(()=>{var z,P;return(P=(z=t.font)==null?void 0:z.fontWeight)!=null?P:"normal"}),s=C(()=>{var z,P;return(P=(z=t.font)==null?void 0:z.fontStyle)!=null?P:"normal"}),i=C(()=>{var z,P;return(P=(z=t.font)==null?void 0:z.fontFamily)!=null?P:"sans-serif"}),u=C(()=>{var z,P;return(P=(z=t.font)==null?void 0:z.textAlign)!=null?P:"center"}),c=C(()=>{var z,P;return(P=(z=t.font)==null?void 0:z.textBaseline)!=null?P:"hanging"}),d=C(()=>t.gap[0]),f=C(()=>t.gap[1]),h=C(()=>d.value/2),v=C(()=>f.value/2),m=C(()=>{var z,P;return(P=(z=t.offset)==null?void 0:z[0])!=null?P:h.value}),p=C(()=>{var z,P;return(P=(z=t.offset)==null?void 0:z[1])!=null?P:v.value}),y=()=>{const z={zIndex:t.zIndex,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let P=m.value-h.value,L=p.value-v.value;return P>0&&(z.left=`${P}px`,z.width=`calc(100% - ${P}px)`,P=0),L>0&&(z.top=`${L}px`,z.height=`calc(100% - ${L}px)`,L=0),z.backgroundPosition=`${P}px ${L}px`,z},g=Mt(null),M=Mt(),w=A(!1),b=()=>{M.value&&(M.value.remove(),M.value=void 0)},S=(z,P)=>{var L;g.value&&M.value&&(w.value=!0,M.value.setAttribute("style",WY({...y(),backgroundImage:`url('${z}')`,backgroundSize:`${Math.floor(P)}px`})),(L=g.value)==null||L.append(M.value),setTimeout(()=>{w.value=!1}))},E=z=>{let P=120,L=64;const F=t.image,U=t.content,H=t.width,R=t.height;if(!F&&z.measureText){z.font=`${Number(l.value)}px ${i.value}`;const D=Ee(U)?U:[U],B=D.map(V=>{const K=z.measureText(V);return[K.width,K.fontBoundingBoxAscent!==void 0?K.fontBoundingBoxAscent+K.fontBoundingBoxDescent:K.actualBoundingBoxAscent+K.actualBoundingBoxDescent]});P=Math.ceil(Math.max(...B.map(V=>V[0]))),L=Math.ceil(Math.max(...B.map(V=>V[1])))*D.length+(D.length-1)*F4}return[H??P,R??L]},O=UY(),I=()=>{const P=document.createElement("canvas").getContext("2d"),L=t.image,F=t.content,U=t.rotate;if(P){M.value||(M.value=document.createElement("div"));const H=jY(),[R,D]=E(P),B=V=>{const[K,W]=O(V||"",U,H,R,D,{color:a.value,fontSize:l.value,fontStyle:s.value,fontWeight:o.value,fontFamily:i.value,textAlign:u.value,textBaseline:c.value},d.value,f.value);S(K,W)};if(L){const V=new Image;V.onload=()=>{B(V)},V.onerror=()=>{B(F)},V.crossOrigin="anonymous",V.referrerPolicy="no-referrer",V.src=L}else B(F)}};return Ge(()=>{I()}),se(()=>t,()=>{I()},{deep:!0,flush:"post"}),Tt(()=>{b()}),Iv(g,z=>{w.value||z.forEach(P=>{qY(P,M.value)&&(b(),I())})},{attributes:!0,subtree:!0,childList:!0}),(z,P)=>(_(),x("div",{ref_key:"containerRef",ref:g,style:Ne([n])},[Q(z.$slots,"default")],4))}});var XY=ve(GY,[["__file","watermark.vue"]]);const ZY=We(XY),JY=pe({zIndex:{type:Number,default:1001},visible:Boolean,fill:{type:String,default:"rgba(0,0,0,0.5)"},pos:{type:X(Object)},targetAreaClickable:{type:Boolean,default:!0}}),QY=(e,t,n,a,l)=>{const o=A(null),s=()=>{let f;return Ve(e.value)?f=document.querySelector(e.value):Qe(e.value)?f=e.value():f=e.value,f},i=()=>{const f=s();if(!f||!t.value){o.value=null;return}eG(f)||f.scrollIntoView(l.value);const{left:h,top:v,width:m,height:p}=f.getBoundingClientRect();o.value={left:h,top:v,width:m,height:p,radius:0}};Ge(()=>{se([t,e],()=>{i()},{immediate:!0}),window.addEventListener("resize",i)}),Tt(()=>{window.removeEventListener("resize",i)});const u=f=>{var h;return(h=Ee(n.value.offset)?n.value.offset[f]:n.value.offset)!=null?h:6},c=C(()=>{var f;if(!o.value)return o.value;const h=u(0),v=u(1),m=((f=n.value)==null?void 0:f.radius)||2;return{left:o.value.left-h,top:o.value.top-v,width:o.value.width+h*2,height:o.value.height+v*2,radius:m}}),d=C(()=>{const f=s();return!a.value||!f||!window.DOMRect?f||void 0:{getBoundingClientRect(){var h,v,m,p;return window.DOMRect.fromRect({width:((h=c.value)==null?void 0:h.width)||0,height:((v=c.value)==null?void 0:v.height)||0,x:((m=c.value)==null?void 0:m.left)||0,y:((p=c.value)==null?void 0:p.top)||0})}}});return{mergedPosInfo:c,triggerTarget:d}},Wi=Symbol("ElTour");function eG(e){const t=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,{top:a,right:l,bottom:o,left:s}=e.getBoundingClientRect();return a>=0&&s>=0&&l<=t&&o<=n}const tG=(e,t,n,a,l,o,s,i)=>{const u=A(),c=A(),d=A({}),f={x:u,y:c,placement:a,strategy:l,middlewareData:d},h=C(()=>{const g=[C4(r(o)),oU(),lU(),nG()];return r(i)&&r(n)&&g.push(S4({element:r(n)})),g}),v=async()=>{if(!ut)return;const g=r(e),M=r(t);if(!g||!M)return;const w=await k4(g,M,{placement:r(a),strategy:r(l),middleware:r(h)});po(f).forEach(b=>{f[b].value=w[b]})},m=C(()=>{if(!r(e))return{position:"fixed",top:"50%",left:"50%",transform:"translate3d(-50%, -50%, 0)",maxWidth:"100vw",zIndex:r(s)};const{overflow:g}=r(d);return{position:r(l),zIndex:r(s),top:r(c)!=null?`${r(c)}px`:"",left:r(u)!=null?`${r(u)}px`:"",maxWidth:g!=null&&g.maxWidth?`${g==null?void 0:g.maxWidth}px`:""}}),p=C(()=>{if(!r(i))return{};const{arrow:g}=r(d);return{left:(g==null?void 0:g.x)!=null?`${g==null?void 0:g.x}px`:"",top:(g==null?void 0:g.y)!=null?`${g==null?void 0:g.y}px`:""}});let y;return Ge(()=>{const g=r(e),M=r(t);g&&M&&(y=nU(g,M,v)),on(()=>{v()})}),Tt(()=>{y&&y()}),{update:v,contentStyle:m,arrowStyle:p}},nG=()=>({name:"overflow",async fn(e){const t=await aU(e);let n=0;return t.left>0&&(n=t.left),t.right>0&&(n=t.right),{data:{maxWidth:e.rects.floating.width-n}}}}),aG=T({name:"ElTourMask",inheritAttrs:!1}),lG=T({...aG,props:JY,setup(e){const t=e,{ns:n}=Se(Wi),a=C(()=>{var i,u;return(u=(i=t.pos)==null?void 0:i.radius)!=null?u:2}),l=C(()=>{const i=a.value,u=`a${i},${i} 0 0 1`;return{topRight:`${u} ${i},${i}`,bottomRight:`${u} ${-i},${i}`,bottomLeft:`${u} ${-i},${-i}`,topLeft:`${u} ${i},${-i}`}}),o=C(()=>{const i=window.innerWidth,u=window.innerHeight,c=l.value,d=`M${i},0 L0,0 L0,${u} L${i},${u} L${i},0 Z`,f=a.value;return t.pos?`${d} M${t.pos.left+f},${t.pos.top} h${t.pos.width-f*2} ${c.topRight} v${t.pos.height-f*2} ${c.bottomRight} h${-t.pos.width+f*2} ${c.bottomLeft} v${-t.pos.height+f*2} ${c.topLeft} z`:d}),s=C(()=>({fill:t.fill,pointerEvents:"auto",cursor:"auto"}));return Xd(mt(t,"visible"),{ns:n}),(i,u)=>i.visible?(_(),x("div",tt({key:0,class:r(n).e("mask"),style:{position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:i.zIndex,pointerEvents:i.pos&&i.targetAreaClickable?"none":"auto"}},i.$attrs),[(_(),x("svg",{style:{width:"100%",height:"100%"}},[k("path",{class:$(r(n).e("hollow")),style:Ne(r(s)),d:r(o)},null,14,["d"])]))],16)):ee("v-if",!0)}});var oG=ve(lG,[["__file","mask.vue"]]);const rG=["absolute","fixed"],sG=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],If=pe({placement:{type:X(String),values:sG,default:"bottom"},reference:{type:X(Object),default:null},strategy:{type:X(String),values:rG,default:"absolute"},offset:{type:Number,default:10},showArrow:Boolean,zIndex:{type:Number,default:2001}}),iG={close:()=>!0},uG=T({name:"ElTourContent"}),cG=T({...uG,props:If,emits:iG,setup(e,{emit:t}){const n=e,a=A(n.placement),l=A(n.strategy),o=A(null),s=A(null);se(()=>n.placement,()=>{a.value=n.placement});const{contentStyle:i,arrowStyle:u}=tG(mt(n,"reference"),o,s,a,l,mt(n,"offset"),mt(n,"zIndex"),mt(n,"showArrow")),c=C(()=>a.value.split("-")[0]),{ns:d}=Se(Wi),f=()=>{t("close")},h=v=>{v.detail.focusReason==="pointer"&&v.preventDefault()};return(v,m)=>(_(),x("div",{ref_key:"contentRef",ref:o,style:Ne(r(i)),class:$(r(d).e("content")),"data-side":r(c),tabindex:"-1"},[q(r(Lo),{loop:"",trapped:"","focus-start-el":"container","focus-trap-el":o.value||void 0,onReleaseRequested:f,onFocusoutPrevented:h},{default:G(()=>[Q(v.$slots,"default")]),_:3},8,["focus-trap-el"]),v.showArrow?(_(),x("span",{key:0,ref_key:"arrowRef",ref:s,style:Ne(r(u)),class:$(r(d).e("arrow"))},null,6)):ee("v-if",!0)],14,["data-side"]))}});var dG=ve(cG,[["__file","content.vue"]]),fG=T({name:"ElTourSteps",props:{current:{type:Number,default:0}},emits:["update-total"],setup(e,{slots:t,emit:n}){let a=0;return()=>{var l,o;const s=(l=t.default)==null?void 0:l.call(t),i=[];let u=0;function c(d){Ee(d)&&d.forEach(f=>{var h;((h=(f==null?void 0:f.type)||{})==null?void 0:h.name)==="ElTourStep"&&(i.push(f),u+=1)})}return s.length&&c(ol((o=s[0])==null?void 0:o.children)),a!==u&&(a=u,n("update-total",u)),i.length?i[e.current]:null}}});const pG=pe({modelValue:Boolean,current:{type:Number,default:0},showArrow:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeIcon:{type:St},placement:If.placement,contentStyle:{type:X([Object])},mask:{type:X([Boolean,Object]),default:!0},gap:{type:X(Object),default:()=>({offset:6,radius:2})},zIndex:{type:Number},scrollIntoViewOptions:{type:X([Boolean,Object]),default:()=>({block:"center"})},type:{type:X(String)},appendTo:{type:X([String,Object]),default:"body"},closeOnPressEscape:{type:Boolean,default:!0},targetAreaClickable:{type:Boolean,default:!0}}),vG={[Ue]:e=>Et(e),"update:current":e=>Ie(e),close:e=>Ie(e),finish:()=>!0,change:e=>Ie(e)},hG=T({name:"ElTour"}),mG=T({...hG,props:pG,emits:vG,setup(e,{emit:t}){const n=e,a=de("tour"),l=A(0),o=A(),s=Pv(n,"current",t,{passive:!0}),i=C(()=>{var N;return(N=o.value)==null?void 0:N.target}),u=C(()=>[a.b(),y.value==="primary"?a.m("primary"):""]),c=C(()=>{var N;return((N=o.value)==null?void 0:N.placement)||n.placement}),d=C(()=>{var N,z;return(z=(N=o.value)==null?void 0:N.contentStyle)!=null?z:n.contentStyle}),f=C(()=>{var N,z;return(z=(N=o.value)==null?void 0:N.mask)!=null?z:n.mask}),h=C(()=>!!f.value&&n.modelValue),v=C(()=>Et(f.value)?void 0:f.value),m=C(()=>{var N,z;return!!i.value&&((z=(N=o.value)==null?void 0:N.showArrow)!=null?z:n.showArrow)}),p=C(()=>{var N,z;return(z=(N=o.value)==null?void 0:N.scrollIntoViewOptions)!=null?z:n.scrollIntoViewOptions}),y=C(()=>{var N,z;return(z=(N=o.value)==null?void 0:N.type)!=null?z:n.type}),{nextZIndex:g}=zo(),M=g(),w=C(()=>{var N;return(N=n.zIndex)!=null?N:M}),{mergedPosInfo:b,triggerTarget:S}=QY(i,mt(n,"modelValue"),mt(n,"gap"),f,p);se(()=>n.modelValue,N=>{N||(s.value=0)});const E=()=>{n.closeOnPressEscape&&(t("update:modelValue",!1),t("close",s.value))},O=N=>{l.value=N},I=Xt();return it(Wi,{currentStep:o,current:s,total:l,showClose:mt(n,"showClose"),closeIcon:mt(n,"closeIcon"),mergedType:y,ns:a,slots:I,updateModelValue(N){t("update:modelValue",N)},onClose(){t("close",s.value)},onFinish(){t("finish")},onChange(){t("change",s.value)}}),(N,z)=>(_(),x(ze,null,[q(r(Ro),{to:N.appendTo},{default:G(()=>{var P,L;return[k("div",tt({class:r(u)},N.$attrs),[q(oG,{visible:r(h),fill:(P=r(v))==null?void 0:P.color,style:Ne((L=r(v))==null?void 0:L.style),pos:r(b),"z-index":r(w),"target-area-clickable":N.targetAreaClickable},null,8,["visible","fill","style","pos","z-index","target-area-clickable"]),N.modelValue?(_(),ae(dG,{key:r(s),reference:r(S),placement:r(c),"show-arrow":r(m),"z-index":r(w),style:Ne(r(d)),onClose:E},{default:G(()=>[q(r(fG),{current:r(s),onUpdateTotal:O},{default:G(()=>[Q(N.$slots,"default")]),_:3},8,["current"])]),_:3},8,["reference","placement","show-arrow","z-index","style"])):ee("v-if",!0)],16)]}),_:3},8,["to"]),ee(" just for IDE "),ee("v-if",!0)],64))}});var gG=ve(mG,[["__file","tour.vue"]]);const yG=pe({target:{type:X([String,Object,Function])},title:String,description:String,showClose:{type:Boolean,default:void 0},closeIcon:{type:St},showArrow:{type:Boolean,default:void 0},placement:If.placement,mask:{type:X([Boolean,Object]),default:void 0},contentStyle:{type:X([Object])},prevButtonProps:{type:X(Object)},nextButtonProps:{type:X(Object)},scrollIntoViewOptions:{type:X([Boolean,Object]),default:void 0},type:{type:X(String)}}),_G={close:()=>!0},bG=T({name:"ElTourStep"}),wG=T({...bG,props:yG,emits:_G,setup(e,{emit:t}){const n=e,{Close:a}=_d,{t:l}=ct(),{currentStep:o,current:s,total:i,showClose:u,closeIcon:c,mergedType:d,ns:f,slots:h,updateModelValue:v,onClose:m,onFinish:p,onChange:y}=Se(Wi);se(n,I=>{o.value=I},{immediate:!0});const g=C(()=>{var I;return(I=n.showClose)!=null?I:u.value}),M=C(()=>{var I,N;return(N=(I=n.closeIcon)!=null?I:c.value)!=null?N:a}),w=I=>{if(I)return I_(I,["children","onClick"])},b=()=>{var I,N;s.value-=1,(I=n.prevButtonProps)!=null&&I.onClick&&((N=n.prevButtonProps)==null||N.onClick()),y()},S=()=>{var I;s.value>=i.value-1?E():s.value+=1,(I=n.nextButtonProps)!=null&&I.onClick&&n.nextButtonProps.onClick(),y()},E=()=>{O(),p()},O=()=>{v(!1),m(),t("close")};return(I,N)=>(_(),x(ze,null,[r(g)?(_(),x("button",{key:0,"aria-label":"Close",class:$(r(f).e("closebtn")),type:"button",onClick:O},[q(r(xe),{class:$(r(f).e("close"))},{default:G(()=>[(_(),ae(et(r(M))))]),_:1},8,["class"])],2)):ee("v-if",!0),k("header",{class:$([r(f).e("header"),{"show-close":r(u)}])},[Q(I.$slots,"header",{},()=>[k("span",{role:"heading",class:$(r(f).e("title"))},he(I.title),3)])],2),k("div",{class:$(r(f).e("body"))},[Q(I.$slots,"default",{},()=>[k("span",null,he(I.description),1)])],2),k("footer",{class:$(r(f).e("footer"))},[k("div",{class:$(r(f).b("indicators"))},[r(h).indicators?(_(),ae(et(r(h).indicators),{key:0,current:r(s),total:r(i)},null,8,["current","total"])):(_(!0),x(ze,{key:1},rt(r(i),(z,P)=>(_(),x("span",{key:z,class:$([r(f).b("indicator"),P===r(s)?"is-active":""])},null,2))),128))],2),k("div",{class:$(r(f).b("buttons"))},[r(s)>0?(_(),ae(r(en),tt({key:0,size:"small",type:r(d)},w(I.prevButtonProps),{onClick:b}),{default:G(()=>{var z,P;return[ot(he((P=(z=I.prevButtonProps)==null?void 0:z.children)!=null?P:r(l)("el.tour.previous")),1)]}),_:1},16,["type"])):ee("v-if",!0),r(s)<=r(i)-1?(_(),ae(r(en),tt({key:1,size:"small",type:r(d)==="primary"?"default":"primary"},w(I.nextButtonProps),{onClick:S}),{default:G(()=>{var z,P;return[ot(he((P=(z=I.nextButtonProps)==null?void 0:z.children)!=null?P:r(s)===r(i)-1?r(l)("el.tour.finish"):r(l)("el.tour.next")),1)]}),_:1},16,["type"])):ee("v-if",!0)],2)],2)],64))}});var K4=ve(wG,[["__file","step.vue"]]);const CG=We(gG,{TourStep:K4}),SG=Lt(K4),kG=pe({container:{type:X([String,Object])},offset:{type:Number,default:0},bound:{type:Number,default:15},duration:{type:Number,default:300},marker:{type:Boolean,default:!0},type:{type:X(String),default:"default"},direction:{type:X(String),default:"vertical"},selectScrollTop:{type:Boolean,default:!1}}),EG={change:e=>Ve(e),click:(e,t)=>e instanceof MouseEvent&&(Ve(t)||vt(t))},W4=Symbol("anchor"),us=e=>{if(!ut||e==="")return null;if(Ve(e))try{return document.querySelector(e)}catch{return null}return e};function MG(e){let t=0;const n=(...a)=>{t&&Pl(t),t=il(()=>{e(...a),t=0})};return n.cancel=()=>{Pl(t),t=0},n}const xG=T({name:"ElAnchor"}),$G=T({...xG,props:kG,emits:EG,setup(e,{expose:t,emit:n}){const a=e,l=A(""),o=A(null),s=A(null),i=A(),u={};let c=!1,d=0;const f=de("anchor"),h=C(()=>[f.b(),a.type==="underline"?f.m("underline"):"",f.m(a.direction)]),v=I=>{u[I.href]=I.el},m=I=>{delete u[I]},p=I=>{l.value!==I&&(l.value=I,n("change",I))};let y=null;const g=I=>{if(!i.value)return;const N=us(I);if(!N)return;y&&y(),c=!0;const z=$0(N,i.value),P=Xu(N,z),L=z.scrollHeight-z.clientHeight,F=Math.min(P-a.offset,L);y=Ab(i.value,d,F,a.duration,()=>{setTimeout(()=>{c=!1},20)})},M=I=>{I&&(p(I),g(I))},w=(I,N)=>{n("click",I,N),M(N)},b=MG(()=>{i.value&&(d=T0(i.value));const I=S();c||vt(I)||p(I)}),S=()=>{if(!i.value)return;const I=T0(i.value),N=[];for(const z of Object.keys(u)){const P=us(z);if(!P)continue;const L=$0(P,i.value),F=Xu(P,L);N.push({top:F-a.offset-a.bound,href:z})}N.sort((z,P)=>z.top-P.top);for(let z=0;zI))return P.href}},E=()=>{const I=us(a.container);!I||bi(I)?i.value=window:i.value=I};wt(i,"scroll",b);const O=C(()=>{if(!o.value||!s.value||!l.value)return{};const I=u[l.value];if(!I)return{};const N=o.value.getBoundingClientRect(),z=s.value.getBoundingClientRect(),P=I.getBoundingClientRect();return a.direction==="horizontal"?{left:`${P.left-N.left}px`,width:`${P.width}px`,opacity:1}:{top:`${P.top-N.top+(P.height-z.height)/2}px`,opacity:1}});return Ge(()=>{E();const I=decodeURIComponent(window.location.hash);us(I)?M(I):b()}),se(()=>a.container,()=>{E()}),it(W4,{ns:f,direction:a.direction,currentAnchor:l,addLink:v,removeLink:m,handleClick:w}),t({scrollTo:M}),(I,N)=>(_(),x("div",{ref_key:"anchorRef",ref:o,class:$(r(h))},[I.marker?(_(),x("div",{key:0,ref_key:"markerRef",ref:s,class:$(r(f).e("marker")),style:Ne(r(O))},null,6)):ee("v-if",!0),k("div",{class:$(r(f).e("list"))},[Q(I.$slots,"default")],2)],2))}});var TG=ve($G,[["__file","anchor.vue"]]);const OG=pe({title:String,href:String}),NG=T({name:"ElAnchorLink"}),IG=T({...NG,props:OG,setup(e){const t=e,n=A(null),{ns:a,direction:l,currentAnchor:o,addLink:s,removeLink:i,handleClick:u}=Se(W4),c=C(()=>[a.e("link"),a.is("active",o.value===t.href)]),d=f=>{u(f,t.href)};return se(()=>t.href,(f,h)=>{Oe(()=>{h&&i(h),f&&s({href:f,el:n.value})})}),Ge(()=>{const{href:f}=t;f&&s({href:f,el:n.value})}),Tt(()=>{const{href:f}=t;f&&i(f)}),(f,h)=>(_(),x("div",{class:$(r(a).e("item"))},[k("a",{ref_key:"linkRef",ref:n,class:$(r(c)),href:f.href,onClick:d},[Q(f.$slots,"default",{},()=>[ot(he(f.title),1)])],10,["href"]),f.$slots["sub-link"]&&r(l)==="vertical"?(_(),x("div",{key:0,class:$(r(a).e("list"))},[Q(f.$slots,"sub-link")],2)):ee("v-if",!0)],2))}});var j4=ve(IG,[["__file","anchor-link.vue"]]);const PG=We(TG,{AnchorLink:j4}),zG=Lt(j4),AG=pe({direction:{type:X(String),default:"horizontal"},options:{type:X(Array),default:()=>[]},modelValue:{type:[String,Number,Boolean],default:void 0},block:Boolean,size:qt,disabled:Boolean,validateEvent:{type:Boolean,default:!0},id:String,name:String,...sn(["ariaLabel"])}),VG={[Ue]:e=>Ve(e)||Ie(e)||Et(e),[Ct]:e=>Ve(e)||Ie(e)||Et(e)},LG=T({name:"ElSegmented"}),RG=T({...LG,props:AG,emits:VG,setup(e,{emit:t}){const n=e,a=de("segmented"),l=rn(),o=jt(),s=yn(),{formItem:i}=gn(),{inputId:u,isLabeledByFormItem:c}=ea(n,{formItemContext:i}),d=A(null),f=lb(),h=_t({isInit:!1,width:0,height:0,translateX:0,translateY:0,focusVisible:!1}),v=N=>{const z=m(N);t(Ue,z),t(Ct,z)},m=N=>ht(N)?N.value:N,p=N=>ht(N)?N.label:N,y=N=>!!(s.value||ht(N)&&N.disabled),g=N=>n.modelValue===m(N),M=N=>n.options.find(z=>m(z)===N),w=N=>[a.e("item"),a.is("selected",g(N)),a.is("disabled",y(N))],b=()=>{if(!d.value)return;const N=d.value.querySelector(".is-selected"),z=d.value.querySelector(".is-selected input");if(!N||!z){h.width=0,h.height=0,h.translateX=0,h.translateY=0,h.focusVisible=!1;return}const P=N.getBoundingClientRect();h.isInit=!0,n.direction==="vertical"?(h.height=P.height,h.translateY=N.offsetTop):(h.width=P.width,h.translateX=N.offsetLeft);try{h.focusVisible=z.matches(":focus-visible")}catch{}},S=C(()=>[a.b(),a.m(o.value),a.is("block",n.block)]),E=C(()=>({width:n.direction==="vertical"?"100%":`${h.width}px`,height:n.direction==="vertical"?`${h.height}px`:"100%",transform:n.direction==="vertical"?`translateY(${h.translateY}px)`:`translateX(${h.translateX}px)`,display:h.isInit?"block":"none"})),O=C(()=>[a.e("item-selected"),a.is("disabled",y(M(n.modelValue))),a.is("focus-visible",h.focusVisible)]),I=C(()=>n.name||l.value);return At(d,b),se(f,b),se(()=>n.modelValue,()=>{var N;b(),n.validateEvent&&((N=i==null?void 0:i.validate)==null||N.call(i,"change").catch(z=>void 0))},{flush:"post"}),(N,z)=>N.options.length?(_(),x("div",{key:0,id:r(u),ref_key:"segmentedRef",ref:d,class:$(r(S)),role:"radiogroup","aria-label":r(c)?void 0:N.ariaLabel||"segmented","aria-labelledby":r(c)?r(i).labelId:void 0},[k("div",{class:$([r(a).e("group"),r(a).m(n.direction)])},[k("div",{style:Ne(r(E)),class:$(r(O))},null,6),(_(!0),x(ze,null,rt(N.options,(P,L)=>(_(),x("label",{key:L,class:$(w(P))},[k("input",{class:$(r(a).e("item-input")),type:"radio",name:r(I),disabled:y(P),checked:g(P),onChange:F=>v(P)},null,42,["name","disabled","checked","onChange"]),k("div",{class:$(r(a).e("item-label"))},[Q(N.$slots,"default",{item:P},()=>[ot(he(p(P)),1)])],2)],2))),128))],2)],10,["id","aria-label","aria-labelledby"])):ee("v-if",!0)}});var BG=ve(RG,[["__file","segmented.vue"]]);const HG=We(BG),DG=(e,t)=>{const n=e.toLowerCase();return(t.label||t.value).toLowerCase().includes(n)},FG=(e,t,n)=>{const{selectionEnd:a}=e;if(a===null)return;const l=e.value,o=wn(t);let s=-1,i;for(let u=a-1;u>=0;--u){const c=l[u];if(c===n||c===` -`||c==="\r"){s=u;continue}if(o.includes(c)){const d=s===-1?a:s;i={pattern:l.slice(u+1,d),start:u+1,end:d,prefix:c,prefixIndex:u,splitIndex:s,selectionEnd:a};break}}return i},KG=(e,t={debug:!1,useSelectionEnd:!1})=>{const n=e.selectionStart!==null?e.selectionStart:0,a=e.selectionEnd!==null?e.selectionEnd:0,l=t.useSelectionEnd?a:n,o=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"];if(t.debug){const h=document.querySelector("#input-textarea-caret-position-mirror-div");h!=null&&h.parentNode&&h.parentNode.removeChild(h)}const s=document.createElement("div");s.id="input-textarea-caret-position-mirror-div",document.body.appendChild(s);const i=s.style,u=window.getComputedStyle(e),c=e.nodeName==="INPUT";i.whiteSpace=c?"nowrap":"pre-wrap",c||(i.wordWrap="break-word"),i.position="absolute",t.debug||(i.visibility="hidden"),o.forEach(h=>{if(c&&h==="lineHeight")if(u.boxSizing==="border-box"){const v=Number.parseInt(u.height),m=Number.parseInt(u.paddingTop)+Number.parseInt(u.paddingBottom)+Number.parseInt(u.borderTopWidth)+Number.parseInt(u.borderBottomWidth),p=m+Number.parseInt(u.lineHeight);v>p?i.lineHeight=`${v-m}px`:v===p?i.lineHeight=u.lineHeight:i.lineHeight="0"}else i.lineHeight=u.height;else i[h]=u[h]}),Ti()?e.scrollHeight>Number.parseInt(u.height)&&(i.overflowY="scroll"):i.overflow="hidden",s.textContent=e.value.slice(0,Math.max(0,l)),c&&s.textContent&&(s.textContent=s.textContent.replace(/\s/g," "));const d=document.createElement("span");d.textContent=e.value.slice(Math.max(0,l))||".",d.style.position="relative",d.style.left=`${-e.scrollLeft}px`,d.style.top=`${-e.scrollTop}px`,s.appendChild(d);const f={top:d.offsetTop+Number.parseInt(u.borderTopWidth),left:d.offsetLeft+Number.parseInt(u.borderLeftWidth),height:Number.parseInt(u.fontSize)*1.5};return t.debug?d.style.backgroundColor="#aaa":document.body.removeChild(s),f.left>=e.clientWidth&&(f.left=e.clientWidth),f},WG=pe({...wd,options:{type:X(Array),default:()=>[]},prefix:{type:X([String,Array]),default:"@",validator:e=>Ve(e)?e.length===1:e.every(t=>Ve(t)&&t.length===1)},split:{type:String,default:" ",validator:e=>e.length===1},filterOption:{type:X([Boolean,Function]),default:()=>DG,validator:e=>e===!1?!0:Qe(e)},placement:{type:X(String),default:"bottom"},showArrow:Boolean,offset:{type:Number,default:0},whole:Boolean,checkIsWhole:{type:X(Function)},modelValue:String,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:X(Object),default:()=>({})}}),jG={[Ue]:e=>Ve(e),search:(e,t)=>Ve(e)&&Ve(t),select:(e,t)=>Ve(e.value)&&Ve(t),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},qG=pe({options:{type:X(Array),default:()=>[]},loading:Boolean,disabled:Boolean,contentId:String,ariaLabel:String}),UG={select:e=>Ve(e.value)},YG=T({name:"ElMentionDropdown"}),GG=T({...YG,props:qG,emits:UG,setup(e,{expose:t,emit:n}){const a=e,l=de("mention"),{t:o}=ct(),s=A(-1),i=A(),u=A(),c=A(),d=(w,b)=>[l.be("dropdown","item"),l.is("hovering",s.value===b),l.is("disabled",w.disabled||a.disabled)],f=w=>{w.disabled||a.disabled||n("select",w)},h=w=>{s.value=w},v=C(()=>a.disabled||a.options.every(w=>w.disabled)),m=C(()=>a.options[s.value]),p=()=>{m.value&&n("select",m.value)},y=w=>{const{options:b}=a;if(b.length===0||v.value)return;w==="next"?(s.value++,s.value===b.length&&(s.value=0)):w==="prev"&&(s.value--,s.value<0&&(s.value=b.length-1));const S=b[s.value];if(S.disabled){y(w);return}Oe(()=>g(S))},g=w=>{var b,S,E,O;const{options:I}=a,N=I.findIndex(P=>P.value===w.value),z=(b=u.value)==null?void 0:b[N];if(z){const P=(E=(S=c.value)==null?void 0:S.querySelector)==null?void 0:E.call(S,`.${l.be("dropdown","wrap")}`);P&&pd(P,z)}(O=i.value)==null||O.handleScroll()};return se(()=>a.options,()=>{v.value||a.options.length===0?s.value=-1:s.value=0},{immediate:!0}),t({hoveringIndex:s,navigateOptions:y,selectHoverOption:p,hoverOption:m}),(w,b)=>(_(),x("div",{ref_key:"dropdownRef",ref:c,class:$(r(l).b("dropdown"))},[w.$slots.header?(_(),x("div",{key:0,class:$(r(l).be("dropdown","header"))},[Q(w.$slots,"header")],2)):ee("v-if",!0),qe(q(r(Oa),{id:w.contentId,ref_key:"scrollbarRef",ref:i,tag:"ul","wrap-class":r(l).be("dropdown","wrap"),"view-class":r(l).be("dropdown","list"),role:"listbox","aria-label":w.ariaLabel,"aria-orientation":"vertical"},{default:G(()=>[(_(!0),x(ze,null,rt(w.options,(S,E)=>(_(),x("li",{id:`${w.contentId}-${E}`,ref_for:!0,ref_key:"optionRefs",ref:u,key:E,class:$(d(S,E)),role:"option","aria-disabled":S.disabled||w.disabled||void 0,"aria-selected":s.value===E,onMousemove:O=>h(E),onClick:Ae(O=>f(S),["stop"])},[Q(w.$slots,"label",{item:S,index:E},()=>{var O;return[k("span",null,he((O=S.label)!=null?O:S.value),1)]})],42,["id","aria-disabled","aria-selected","onMousemove","onClick"]))),128))]),_:3},8,["id","wrap-class","view-class","aria-label"]),[[pt,w.options.length>0&&!w.loading]]),w.loading?(_(),x("div",{key:1,class:$(r(l).be("dropdown","loading"))},[Q(w.$slots,"loading",{},()=>[ot(he(r(o)("el.mention.loading")),1)])],2)):ee("v-if",!0),w.$slots.footer?(_(),x("div",{key:2,class:$(r(l).be("dropdown","footer"))},[Q(w.$slots,"footer")],2)):ee("v-if",!0)],2))}});var XG=ve(GG,[["__file","mention-dropdown.vue"]]);const ZG=T({name:"ElMention",inheritAttrs:!1}),JG=T({...ZG,props:WG,emits:jG,setup(e,{expose:t,emit:n}){const a=e,l=C(()=>ra(a,Object.keys(wd))),o=de("mention"),s=yn(),i=rn(),u=A(),c=A(),d=A(),f=A(!1),h=A(),v=A(),m=C(()=>a.showArrow?a.placement:`${a.placement}-start`),p=C(()=>a.showArrow?["bottom","top"]:["bottom-start","top-start"]),y=C(()=>{const{filterOption:L,options:F}=a;return!v.value||!L?F:F.filter(U=>L(v.value.pattern,U))}),g=C(()=>f.value&&(!!y.value.length||a.loading)),M=C(()=>{var L;return`${i.value}-${(L=d.value)==null?void 0:L.hoveringIndex}`}),w=L=>{n("update:modelValue",L),N()},b=L=>{var F,U,H,R;if(!(!("code"in L)||(F=u.value)!=null&&F.isComposing))switch(L.code){case Ce.left:case Ce.right:N();break;case Ce.up:case Ce.down:if(!f.value)return;L.preventDefault(),(U=d.value)==null||U.navigateOptions(L.code===Ce.up?"prev":"next");break;case Ce.enter:case Ce.numpadEnter:if(!f.value)return;L.preventDefault(),(H=d.value)!=null&&H.hoverOption?(R=d.value)==null||R.selectHoverOption():f.value=!1;break;case Ce.esc:if(!f.value)return;L.preventDefault(),f.value=!1;break;case Ce.backspace:if(a.whole&&v.value){const{splitIndex:D,selectionEnd:B,pattern:V,prefixIndex:K,prefix:W}=v.value,Z=I();if(!Z)return;const j=Z.value,ne=a.options.find(ce=>ce.value===V);if((Qe(a.checkIsWhole)?a.checkIsWhole(V,W):ne)&&D!==-1&&D+1===B){L.preventDefault();const ce=j.slice(0,K)+j.slice(D+1);n(Ue,ce);const te=K;Oe(()=>{Z.selectionStart=te,Z.selectionEnd=te,P()})}}}},{wrapperRef:S}=fl(u,{beforeFocus(){return s.value},afterFocus(){N()},beforeBlur(L){var F;return(F=c.value)==null?void 0:F.isFocusInsideContent(L)},afterBlur(){f.value=!1}}),E=()=>{N()},O=L=>{if(!v.value)return;const F=I();if(!F)return;const U=F.value,{split:H}=a,R=U.slice(v.value.end),D=R.startsWith(H),B=`${L.value}${D?"":H}`,V=U.slice(0,v.value.start)+B+R;n(Ue,V),n("select",L,v.value.prefix);const K=v.value.start+B.length+(D?1:0);Oe(()=>{F.selectionStart=K,F.selectionEnd=K,F.focus(),P()})},I=()=>{var L,F;return a.type==="textarea"?(L=u.value)==null?void 0:L.textarea:(F=u.value)==null?void 0:F.input},N=()=>{setTimeout(()=>{z(),P(),Oe(()=>{var L;return(L=c.value)==null?void 0:L.updatePopper()})},0)},z=()=>{const L=I();if(!L)return;const F=KG(L),U=L.getBoundingClientRect(),H=u.value.$el.getBoundingClientRect();h.value={position:"absolute",width:0,height:`${F.height}px`,left:`${F.left+U.left-H.left}px`,top:`${F.top+U.top-H.top}px`}},P=()=>{const L=I();if(document.activeElement!==L){f.value=!1;return}const{prefix:F,split:U}=a;if(v.value=FG(L,F,U),v.value&&v.value.splitIndex===-1){f.value=!0,n("search",v.value.pattern,v.value.prefix);return}f.value=!1};return t({input:u,tooltip:c,dropdownVisible:g}),(L,F)=>(_(),x("div",{ref_key:"wrapperRef",ref:S,class:$([r(o).b(),r(o).is("disabled",r(s))])},[q(r(Sn),tt(tt(r(l),L.$attrs),{ref_key:"elInputRef",ref:u,"model-value":L.modelValue,disabled:r(s),role:r(g)?"combobox":void 0,"aria-activedescendant":r(g)?r(M)||"":void 0,"aria-controls":r(g)?r(i):void 0,"aria-expanded":r(g)||void 0,"aria-label":L.ariaLabel,"aria-autocomplete":r(g)?"none":void 0,"aria-haspopup":r(g)?"listbox":void 0,onInput:w,onKeydown:b,onMousedown:E}),Yn({_:2},[rt(L.$slots,(U,H)=>({name:H,fn:G(R=>[Q(L.$slots,H,oa(Ol(R)))])}))]),1040,["model-value","disabled","role","aria-activedescendant","aria-controls","aria-expanded","aria-label","aria-autocomplete","aria-haspopup"]),q(r(mn),{ref_key:"tooltipRef",ref:c,visible:r(g),"popper-class":[r(o).e("popper"),L.popperClass],"popper-options":L.popperOptions,placement:r(m),"fallback-placements":r(p),effect:"light",pure:"",offset:L.offset,"show-arrow":L.showArrow},{default:G(()=>[k("div",{style:Ne(h.value)},null,4)]),content:G(()=>{var U;return[q(XG,{ref_key:"dropdownRef",ref:d,options:r(y),disabled:r(s),loading:L.loading,"content-id":r(i),"aria-label":L.ariaLabel,onSelect:O,onClick:Ae((U=u.value)==null?void 0:U.focus,["stop"])},Yn({_:2},[rt(L.$slots,(H,R)=>({name:R,fn:G(D=>[Q(L.$slots,R,oa(Ol(D)))])}))]),1032,["options","disabled","loading","content-id","aria-label","onClick"])]}),_:3},8,["visible","popper-class","popper-options","placement","fallback-placements","offset","show-arrow"])],2))}});var QG=ve(JG,[["__file","mention.vue"]]);const eX=We(QG);var tX=[Hb,t$,GO,Vj,tN,iN,F1,bN,wN,en,G1,hI,bI,LI,RI,RP,hh,WP,Qn,JI,rh,GP,dz,fz,Pi,Rz,Dz,Qz,eA,tA,nA,aA,$V,RV,BV,ZV,Dh,sL,XL,ZL,JL,Xh,ZR,JR,xe,uB,Qh,Sn,em,kB,OB,XB,ZB,JB,QB,oH,GH,tD,cD,R1,um,ph,dP,cP,bD,ED,ID,Oa,zl,Xs,TH,cF,_F,bF,BF,WF,Cm,tK,cK,dK,gK,MW,xW,Aj,Zj,Jj,_o,aq,YA,uq,vq,hq,mn,SU,VU,ii,tY,yY,DY,ZY,CG,SG,PG,zG,HG,eX];const Wn="ElInfiniteScroll",nX=50,aX=200,lX=0,oX={delay:{type:Number,default:aX},distance:{type:Number,default:lX},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},Pf=(e,t)=>Object.entries(oX).reduce((n,[a,l])=>{var o,s;const{type:i,default:u}=l,c=e.getAttribute(`infinite-scroll-${a}`);let d=(s=(o=t[c])!=null?o:c)!=null?s:u;return d=d==="false"?!1:d,d=i(d),n[a]=Number.isNaN(d)?u:d,n},{}),q4=e=>{const{observer:t}=e[Wn];t&&(t.disconnect(),delete e[Wn].observer)},rX=(e,t)=>{const{container:n,containerEl:a,instance:l,observer:o,lastScrollTop:s}=e[Wn],{disabled:i,distance:u}=Pf(e,l),{clientHeight:c,scrollHeight:d,scrollTop:f}=a,h=f-s;if(e[Wn].lastScrollTop=f,o||i||h<0)return;let v=!1;if(n===e)v=d-(c+f)<=u;else{const{clientTop:m,scrollHeight:p}=e,y=Xu(e,a);v=f+c>=y+m+p-u}v&&t.call(l)};function Mu(e,t){const{containerEl:n,instance:a}=e[Wn],{disabled:l}=Pf(e,a);l||n.clientHeight===0||(n.scrollHeight<=n.clientHeight?t.call(a):q4(e))}const sX={async mounted(e,t){const{instance:n,value:a}=t;Qe(a)||Gt(Wn,"'v-infinite-scroll' binding value must be a function"),await Oe();const{delay:l,immediate:o}=Pf(e,n),s=fd(e,!0),i=s===window?document.documentElement:s,u=Ml(rX.bind(null,e,a),l);if(s){if(e[Wn]={instance:n,container:s,containerEl:i,delay:l,cb:a,onScroll:u,lastScrollTop:i.scrollTop},o){const c=new MutationObserver(Ml(Mu.bind(null,e,a),nX));e[Wn].observer=c,c.observe(e,{childList:!0,subtree:!0}),Mu(e,a)}s.addEventListener("scroll",u)}},unmounted(e){if(!e[Wn])return;const{container:t,onScroll:n}=e[Wn];t==null||t.removeEventListener("scroll",n),q4(e)},async updated(e){if(!e[Wn])await Oe();else{const{containerEl:t,cb:n,observer:a}=e[Wn];t.clientHeight&&a&&Mu(e,n)}}},Bc=sX;Bc.install=e=>{e.directive("InfiniteScroll",Bc)};const iX=Bc;function uX(e){let t;const n=A(!1),a=_t({...e,originalPosition:"",originalOverflow:"",visible:!1});function l(h){a.text=h}function o(){const h=a.parent,v=f.ns;if(!h.vLoadingAddClassList){let m=h.getAttribute("loading-number");m=Number.parseInt(m)-1,m?h.setAttribute("loading-number",m.toString()):(kn(h,v.bm("parent","relative")),h.removeAttribute("loading-number")),kn(h,v.bm("parent","hidden"))}s(),d.unmount()}function s(){var h,v;(v=(h=f.$el)==null?void 0:h.parentNode)==null||v.removeChild(f.$el)}function i(){var h;e.beforeClose&&!e.beforeClose()||(n.value=!0,clearTimeout(t),t=setTimeout(u,400),a.visible=!1,(h=e.closed)==null||h.call(e))}function u(){if(!n.value)return;const h=a.parent;n.value=!1,h.vLoadingAddClassList=void 0,o()}const c=T({name:"ElLoading",setup(h,{expose:v}){const{ns:m,zIndex:p}=Si("loading");return v({ns:m,zIndex:p}),()=>{const y=a.spinner||a.svg,g=Pe("svg",{class:"circular",viewBox:a.svgViewBox?a.svgViewBox:"0 0 50 50",...y?{innerHTML:y}:{}},[Pe("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),M=a.text?Pe("p",{class:m.b("text")},[a.text]):void 0;return Pe(tn,{name:m.b("fade"),onAfterLeave:u},{default:G(()=>[qe(q("div",{style:{backgroundColor:a.background||""},class:[m.b("mask"),a.customClass,a.fullscreen?"is-fullscreen":""]},[Pe("div",{class:m.b("spinner")},[g,M])]),[[pt,a.visible]])])})}}}),d=pg(c),f=d.mount(document.createElement("div"));return{...nn(a),setText:l,removeElLoadingChild:s,close:i,handleAfterLeave:u,vm:f,get $el(){return f.$el}}}let cs;const Hc=function(e={}){if(!ut)return;const t=cX(e);if(t.fullscreen&&cs)return cs;const n=uX({...t,closed:()=>{var l;(l=t.closed)==null||l.call(t),t.fullscreen&&(cs=void 0)}});dX(t,t.parent,n),xp(t,t.parent,n),t.parent.vLoadingAddClassList=()=>xp(t,t.parent,n);let a=t.parent.getAttribute("loading-number");return a?a=`${Number.parseInt(a)+1}`:a="1",t.parent.setAttribute("loading-number",a),t.parent.appendChild(n.$el),Oe(()=>n.visible.value=t.visible),t.fullscreen&&(cs=n),n},cX=e=>{var t,n,a,l;let o;return Ve(e.target)?o=(t=document.querySelector(e.target))!=null?t:document.body:o=e.target||document.body,{parent:o===document.body||e.body?document.body:o,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:o===document.body&&((n=e.fullscreen)!=null?n:!0),lock:(a=e.lock)!=null?a:!1,customClass:e.customClass||"",visible:(l=e.visible)!=null?l:!0,beforeClose:e.beforeClose,closed:e.closed,target:o}},dX=async(e,t,n)=>{const{nextZIndex:a}=n.vm.zIndex||n.vm._.exposed.zIndex,l={};if(e.fullscreen)n.originalPosition.value=Va(document.body,"position"),n.originalOverflow.value=Va(document.body,"overflow"),l.zIndex=a();else if(e.parent===document.body){n.originalPosition.value=Va(document.body,"position"),await Oe();for(const o of["top","left"]){const s=o==="top"?"scrollTop":"scrollLeft";l[o]=`${e.target.getBoundingClientRect()[o]+document.body[s]+document.documentElement[s]-Number.parseInt(Va(document.body,`margin-${o}`),10)}px`}for(const o of["height","width"])l[o]=`${e.target.getBoundingClientRect()[o]}px`}else n.originalPosition.value=Va(t,"position");for(const[o,s]of Object.entries(l))n.$el.style[o]=s},xp=(e,t,n)=>{const a=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?kn(t,a.bm("parent","relative")):jn(t,a.bm("parent","relative")),e.fullscreen&&e.lock?jn(t,a.bm("parent","hidden")):kn(t,a.bm("parent","hidden"))},Rs=Symbol("ElLoading"),$p=(e,t)=>{var n,a,l,o;const s=t.instance,i=h=>ht(t.value)?t.value[h]:void 0,u=h=>{const v=Ve(h)&&(s==null?void 0:s[h])||h;return v&&A(v)},c=h=>u(i(h)||e.getAttribute(`element-loading-${vg(h)}`)),d=(n=i("fullscreen"))!=null?n:t.modifiers.fullscreen,f={text:c("text"),svg:c("svg"),svgViewBox:c("svgViewBox"),spinner:c("spinner"),background:c("background"),customClass:c("customClass"),fullscreen:d,target:(a=i("target"))!=null?a:d?void 0:e,body:(l=i("body"))!=null?l:t.modifiers.body,lock:(o=i("lock"))!=null?o:t.modifiers.lock};e[Rs]={options:f,instance:Hc(f)}},fX=(e,t)=>{for(const n of Object.keys(t))dn(t[n])&&(t[n].value=e[n])},Tp={mounted(e,t){t.value&&$p(e,t)},updated(e,t){const n=e[Rs];t.oldValue!==t.value&&(t.value&&!t.oldValue?$p(e,t):t.value&&t.oldValue?ht(t.value)&&fX(t.value,n.options):n==null||n.instance.close())},unmounted(e){var t;(t=e[Rs])==null||t.instance.close(),e[Rs]=null}},pX={install(e){e.directive("loading",Tp),e.config.globalProperties.$loading=Hc},directive:Tp,service:Hc},U4=["success","info","warning","error"],bn=Vt({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:ut?document.body:void 0}),vX=pe({customClass:{type:String,default:bn.customClass},center:{type:Boolean,default:bn.center},dangerouslyUseHTMLString:{type:Boolean,default:bn.dangerouslyUseHTMLString},duration:{type:Number,default:bn.duration},icon:{type:St,default:bn.icon},id:{type:String,default:bn.id},message:{type:X([String,Object,Function]),default:bn.message},onClose:{type:X(Function),default:bn.onClose},showClose:{type:Boolean,default:bn.showClose},type:{type:String,values:U4,default:bn.type},plain:{type:Boolean,default:bn.plain},offset:{type:Number,default:bn.offset},zIndex:{type:Number,default:bn.zIndex},grouping:{type:Boolean,default:bn.grouping},repeatNum:{type:Number,default:bn.repeatNum}}),hX={destroy:()=>!0},sa=hg([]),mX=e=>{const t=sa.findIndex(l=>l.id===e),n=sa[t];let a;return t>0&&(a=sa[t-1]),{current:n,prev:a}},gX=e=>{const{prev:t}=mX(e);return t?t.vm.exposed.bottom.value:0},yX=(e,t)=>sa.findIndex(a=>a.id===e)>0?16:t,_X=T({name:"ElMessage"}),bX=T({..._X,props:vX,emits:hX,setup(e,{expose:t}){const n=e,{Close:a}=bd,{ns:l,zIndex:o}=Si("message"),{currentZIndex:s,nextZIndex:i}=o,u=A(),c=A(!1),d=A(0);let f;const h=C(()=>n.type?n.type==="error"?"danger":n.type:"info"),v=C(()=>{const O=n.type;return{[l.bm("icon",O)]:O&&ul[O]}}),m=C(()=>n.icon||ul[n.type]||""),p=C(()=>gX(n.id)),y=C(()=>yX(n.id,n.offset)+p.value),g=C(()=>d.value+y.value),M=C(()=>({top:`${y.value}px`,zIndex:s.value}));function w(){n.duration!==0&&({stop:f}=Il(()=>{S()},n.duration))}function b(){f==null||f()}function S(){c.value=!1}function E({code:O}){O===Ce.esc&&S()}return Ge(()=>{w(),i(),c.value=!0}),se(()=>n.repeatNum,()=>{b(),w()}),wt(document,"keydown",E),At(u,()=>{d.value=u.value.getBoundingClientRect().height}),t({visible:c,bottom:g,close:S}),(O,I)=>(_(),ae(tn,{name:r(l).b("fade"),onBeforeLeave:O.onClose,onAfterLeave:N=>O.$emit("destroy"),persisted:""},{default:G(()=>[qe(k("div",{id:O.id,ref_key:"messageRef",ref:u,class:$([r(l).b(),{[r(l).m(O.type)]:O.type},r(l).is("center",O.center),r(l).is("closable",O.showClose),r(l).is("plain",O.plain),O.customClass]),style:Ne(r(M)),role:"alert",onMouseenter:b,onMouseleave:w},[O.repeatNum>1?(_(),ae(r(F1),{key:0,value:O.repeatNum,type:r(h),class:$(r(l).e("badge"))},null,8,["value","type","class"])):ee("v-if",!0),r(m)?(_(),ae(r(xe),{key:1,class:$([r(l).e("icon"),r(v)])},{default:G(()=>[(_(),ae(et(r(m))))]),_:1},8,["class"])):ee("v-if",!0),Q(O.$slots,"default",{},()=>[O.dangerouslyUseHTMLString?(_(),x(ze,{key:1},[ee(" Caution here, message could've been compromised, never use user's input as message "),k("p",{class:$(r(l).e("content")),innerHTML:O.message},null,10,["innerHTML"])],2112)):(_(),x("p",{key:0,class:$(r(l).e("content"))},he(O.message),3))]),O.showClose?(_(),ae(r(xe),{key:2,class:$(r(l).e("closeBtn")),onClick:Ae(S,["stop"])},{default:G(()=>[q(r(a))]),_:1},8,["class","onClick"])):ee("v-if",!0)],46,["id"]),[[pt,c.value]])]),_:3},8,["name","onBeforeLeave","onAfterLeave"]))}});var wX=ve(bX,[["__file","message.vue"]]);let CX=1;const Y4=e=>{const t=!e||Ve(e)||Ft(e)||Qe(e)?{message:e}:e,n={...bn,...t};if(!n.appendTo)n.appendTo=document.body;else if(Ve(n.appendTo)){let a=document.querySelector(n.appendTo);Tn(a)||(a=document.body),n.appendTo=a}return Et(aa.grouping)&&!n.grouping&&(n.grouping=aa.grouping),Ie(aa.duration)&&n.duration===3e3&&(n.duration=aa.duration),Ie(aa.offset)&&n.offset===16&&(n.offset=aa.offset),Et(aa.showClose)&&!n.showClose&&(n.showClose=aa.showClose),n},SX=e=>{const t=sa.indexOf(e);if(t===-1)return;sa.splice(t,1);const{handler:n}=e;n.close()},kX=({appendTo:e,...t},n)=>{const a=`message_${CX++}`,l=t.onClose,o=document.createElement("div"),s={...t,id:a,onClose:()=>{l==null||l(),SX(d)},onDestroy:()=>{rl(null,o)}},i=q(wX,s,Qe(s.message)||Ft(s.message)?{default:Qe(s.message)?s.message:()=>s.message}:null);i.appContext=n||Mo._context,rl(i,o),e.appendChild(o.firstElementChild);const u=i.component,d={id:a,vnode:i,vm:u,handler:{close:()=>{u.exposed.visible.value=!1}},props:i.component.props};return d},Mo=(e={},t)=>{if(!ut)return{close:()=>{}};const n=Y4(e);if(n.grouping&&sa.length){const l=sa.find(({vnode:o})=>{var s;return((s=o.props)==null?void 0:s.message)===n.message});if(l)return l.props.repeatNum+=1,l.props.type=n.type,l.handler}if(Ie(aa.max)&&sa.length>=aa.max)return{close:()=>{}};const a=kX(n,t);return sa.push(a),a.handler};U4.forEach(e=>{Mo[e]=(t={},n)=>{const a=Y4(t);return Mo({...a,type:e},n)}});function EX(e){for(const t of sa)(!e||e===t.props.type)&&t.handler.close()}Mo.closeAll=EX;Mo._context=null;const MX=qv(Mo,"$message"),Dc="_trap-focus-children",kl=[],Op=e=>{if(kl.length===0)return;const t=kl[kl.length-1][Dc];if(t.length>0&&e.code===Ce.tab){if(t.length===1){e.preventDefault(),document.activeElement!==t[0]&&t[0].focus();return}const n=e.shiftKey,a=e.target===t[0],l=e.target===t[t.length-1];a&&n&&(e.preventDefault(),t[t.length-1].focus()),l&&!n&&(e.preventDefault(),t[0].focus())}},xX={beforeMount(e){e[Dc]=P0(e),kl.push(e),kl.length<=1&&document.addEventListener("keydown",Op)},updated(e){Oe(()=>{e[Dc]=P0(e)})},unmounted(){kl.shift(),kl.length===0&&document.removeEventListener("keydown",Op)}},$X=T({name:"ElMessageBox",directives:{TrapFocus:xX},components:{ElButton:en,ElFocusTrap:Lo,ElInput:Sn,ElOverlay:Gd,ElIcon:xe,...bd},inheritAttrs:!1,props:{buttonSize:{type:String,validator:km},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,overflow:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{locale:n,zIndex:a,ns:l,size:o}=Si("message-box",C(()=>e.buttonSize)),{t:s}=n,{nextZIndex:i}=a,u=A(!1),c=_t({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:null,inputValidator:null,inputErrorMessage:"",message:null,modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonLoadingIcon:El(ca),cancelButtonLoadingIcon:El(ca),confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:i()}),d=C(()=>{const R=c.type;return{[l.bm("icon",R)]:R&&ul[R]}}),f=rn(),h=rn(),v=C(()=>c.icon||ul[c.type]||""),m=C(()=>!!c.message),p=A(),y=A(),g=A(),M=A(),w=A(),b=C(()=>c.confirmButtonClass);se(()=>c.inputValue,async R=>{await Oe(),e.boxType==="prompt"&&R!==null&&L()},{immediate:!0}),se(()=>u.value,R=>{var D,B;R&&(e.boxType!=="prompt"&&(c.autofocus?g.value=(B=(D=w.value)==null?void 0:D.$el)!=null?B:p.value:g.value=p.value),c.zIndex=i()),e.boxType==="prompt"&&(R?Oe().then(()=>{var V;M.value&&M.value.$el&&(c.autofocus?g.value=(V=F())!=null?V:p.value:g.value=p.value)}):(c.editorErrorMessage="",c.validateError=!1))});const S=C(()=>e.draggable),E=C(()=>e.overflow);Lh(p,y,S,E),Ge(async()=>{await Oe(),e.closeOnHashChange&&window.addEventListener("hashchange",O)}),Tt(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",O)});function O(){u.value&&(u.value=!1,Oe(()=>{c.action&&t("action",c.action)}))}const I=()=>{e.closeOnClickModal&&P(c.distinguishCancelAndClose?"close":"cancel")},N=Yd(I),z=R=>{if(c.inputType!=="textarea")return R.preventDefault(),P("confirm")},P=R=>{var D;e.boxType==="prompt"&&R==="confirm"&&!L()||(c.action=R,c.beforeClose?(D=c.beforeClose)==null||D.call(c,R,c,O):O())},L=()=>{if(e.boxType==="prompt"){const R=c.inputPattern;if(R&&!R.test(c.inputValue||""))return c.editorErrorMessage=c.inputErrorMessage||s("el.messagebox.error"),c.validateError=!0,!1;const D=c.inputValidator;if(Qe(D)){const B=D(c.inputValue);if(B===!1)return c.editorErrorMessage=c.inputErrorMessage||s("el.messagebox.error"),c.validateError=!0,!1;if(Ve(B))return c.editorErrorMessage=B,c.validateError=!0,!1}}return c.editorErrorMessage="",c.validateError=!1,!0},F=()=>{const R=M.value.$refs;return R.input||R.textarea},U=()=>{P("close")},H=()=>{e.closeOnPressEscape&&U()};return e.lockScroll&&Xd(u),{...nn(c),ns:l,overlayEvent:N,visible:u,hasMessage:m,typeClass:d,contentId:f,inputId:h,btnSize:o,iconComponent:v,confirmButtonClasses:b,rootRef:p,focusStartRef:g,headerRef:y,inputRef:M,confirmRef:w,doClose:O,handleClose:U,onCloseRequested:H,handleWrapperClick:I,handleInputEnter:z,handleAction:P,t:s}}});function TX(e,t,n,a,l,o){const s=Je("el-icon"),i=Je("close"),u=Je("el-input"),c=Je("el-button"),d=Je("el-focus-trap"),f=Je("el-overlay");return _(),ae(tn,{name:"fade-in-linear",onAfterLeave:h=>e.$emit("vanish"),persisted:""},{default:G(()=>[qe(q(f,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:G(()=>[k("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:$(`${e.ns.namespace.value}-overlay-message-box`),onClick:e.overlayEvent.onClick,onMousedown:e.overlayEvent.onMousedown,onMouseup:e.overlayEvent.onMouseup},[q(d,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:G(()=>[k("div",{ref:"rootRef",class:$([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:Ne(e.customStyle),tabindex:"-1",onClick:Ae(()=>{},["stop"])},[e.title!==null&&e.title!==void 0?(_(),x("div",{key:0,ref:"headerRef",class:$([e.ns.e("header"),{"show-close":e.showClose}])},[k("div",{class:$(e.ns.e("title"))},[e.iconComponent&&e.center?(_(),ae(s,{key:0,class:$([e.ns.e("status"),e.typeClass])},{default:G(()=>[(_(),ae(et(e.iconComponent)))]),_:1},8,["class"])):ee("v-if",!0),k("span",null,he(e.title),1)],2),e.showClose?(_(),x("button",{key:0,type:"button",class:$(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:h=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),onKeydown:kt(Ae(h=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"])},[q(s,{class:$(e.ns.e("close"))},{default:G(()=>[q(i)]),_:1},8,["class"])],42,["aria-label","onClick","onKeydown"])):ee("v-if",!0)],2)):ee("v-if",!0),k("div",{id:e.contentId,class:$(e.ns.e("content"))},[k("div",{class:$(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(_(),ae(s,{key:0,class:$([e.ns.e("status"),e.typeClass])},{default:G(()=>[(_(),ae(et(e.iconComponent)))]),_:1},8,["class"])):ee("v-if",!0),e.hasMessage?(_(),x("div",{key:1,class:$(e.ns.e("message"))},[Q(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(_(),ae(et(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(_(),ae(et(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:G(()=>[ot(he(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):ee("v-if",!0)],2),qe(k("div",{class:$(e.ns.e("input"))},[q(u,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":h=>e.inputValue=h,type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:$({invalid:e.validateError}),onKeydown:kt(e.handleInputEnter,["enter"])},null,8,["id","modelValue","onUpdate:modelValue","type","placeholder","aria-invalid","class","onKeydown"]),k("div",{class:$(e.ns.e("errormsg")),style:Ne({visibility:e.editorErrorMessage?"visible":"hidden"})},he(e.editorErrorMessage),7)],2),[[pt,e.showInput]])],10,["id"]),k("div",{class:$(e.ns.e("btns"))},[e.showCancelButton?(_(),ae(c,{key:0,loading:e.cancelButtonLoading,"loading-icon":e.cancelButtonLoadingIcon,class:$([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:h=>e.handleAction("cancel"),onKeydown:kt(Ae(h=>e.handleAction("cancel"),["prevent"]),["enter"])},{default:G(()=>[ot(he(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","loading-icon","class","round","size","onClick","onKeydown"])):ee("v-if",!0),qe(q(c,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,"loading-icon":e.confirmButtonLoadingIcon,class:$([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:h=>e.handleAction("confirm"),onKeydown:kt(Ae(h=>e.handleAction("confirm"),["prevent"]),["enter"])},{default:G(()=>[ot(he(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","loading-icon","class","round","disabled","size","onClick","onKeydown"]),[[pt,e.showConfirmButton]])],2)],14,["onClick"])]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,["aria-label","aria-describedby","onClick","onMousedown","onMouseup"])]),_:3},8,["z-index","overlay-class","mask"]),[[pt,e.visible]])]),_:3},8,["onAfterLeave"])}var OX=ve($X,[["render",TX],["__file","index.vue"]]);const xr=new Map,NX=e=>{let t=document.body;return e.appendTo&&(Ve(e.appendTo)&&(t=document.querySelector(e.appendTo)),Tn(e.appendTo)&&(t=e.appendTo),Tn(t)||(t=document.body)),t},IX=(e,t,n=null)=>{const a=q(OX,e,Qe(e.message)||Ft(e.message)?{default:Qe(e.message)?e.message:()=>e.message}:null);return a.appContext=n,rl(a,t),NX(e).appendChild(t.firstElementChild),a.component},PX=()=>document.createElement("div"),zX=(e,t)=>{const n=PX();e.onVanish=()=>{rl(null,n),xr.delete(l)},e.onAction=o=>{const s=xr.get(l);let i;e.showInput?i={value:l.inputValue,action:o}:i=o,e.callback?e.callback(i,a.proxy):o==="cancel"||o==="close"?e.distinguishCancelAndClose&&o!=="cancel"?s.reject("close"):s.reject("cancel"):s.resolve(i)};const a=IX(e,n,t),l=a.proxy;for(const o in e)hn(e,o)&&!hn(l.$props,o)&&(l[o]=e[o]);return l.visible=!0,l};function Fo(e,t=null){if(!ut)return Promise.reject();let n;return Ve(e)||Ft(e)?e={message:e}:n=e.callback,new Promise((a,l)=>{const o=zX(e,t??Fo._context);xr.set(o,{options:e,callback:n,resolve:a,reject:l})})}const AX=["alert","confirm","prompt"],VX={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};AX.forEach(e=>{Fo[e]=LX(e)});function LX(e){return(t,n,a,l)=>{let o="";return ht(n)?(a=n,o=""):vt(n)?o="":o=n,Fo(Object.assign({title:o,message:t,type:"",...VX[e]},a,{boxType:e}),l)}}Fo.close=()=>{xr.forEach((e,t)=>{t.doClose()}),xr.clear()};Fo._context=null;const el=Fo;el.install=e=>{el._context=e._context,e.config.globalProperties.$msgbox=el,e.config.globalProperties.$messageBox=el,e.config.globalProperties.$alert=el.alert,e.config.globalProperties.$confirm=el.confirm,e.config.globalProperties.$prompt=el.prompt};const RX=el,G4=["success","info","warning","error"],BX=pe({customClass:{type:String,default:""},dangerouslyUseHTMLString:Boolean,duration:{type:Number,default:4500},icon:{type:St},id:{type:String,default:""},message:{type:X([String,Object,Function]),default:""},offset:{type:Number,default:0},onClick:{type:X(Function),default:()=>{}},onClose:{type:X(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...G4,""],default:""},zIndex:Number}),HX={destroy:()=>!0},DX=T({name:"ElNotification"}),FX=T({...DX,props:BX,emits:HX,setup(e,{expose:t}){const n=e,{ns:a,zIndex:l}=Si("notification"),{nextZIndex:o,currentZIndex:s}=l,{Close:i}=_d,u=A(!1);let c;const d=C(()=>{const w=n.type;return w&&ul[n.type]?a.m(w):""}),f=C(()=>n.type&&ul[n.type]||n.icon),h=C(()=>n.position.endsWith("right")?"right":"left"),v=C(()=>n.position.startsWith("top")?"top":"bottom"),m=C(()=>{var w;return{[v.value]:`${n.offset}px`,zIndex:(w=n.zIndex)!=null?w:s.value}});function p(){n.duration>0&&({stop:c}=Il(()=>{u.value&&g()},n.duration))}function y(){c==null||c()}function g(){u.value=!1}function M({code:w}){w===Ce.delete||w===Ce.backspace?y():w===Ce.esc?u.value&&g():p()}return Ge(()=>{p(),o(),u.value=!0}),wt(document,"keydown",M),t({visible:u,close:g}),(w,b)=>(_(),ae(tn,{name:r(a).b("fade"),onBeforeLeave:w.onClose,onAfterLeave:S=>w.$emit("destroy"),persisted:""},{default:G(()=>[qe(k("div",{id:w.id,class:$([r(a).b(),w.customClass,r(h)]),style:Ne(r(m)),role:"alert",onMouseenter:y,onMouseleave:p,onClick:w.onClick},[r(f)?(_(),ae(r(xe),{key:0,class:$([r(a).e("icon"),r(d)])},{default:G(()=>[(_(),ae(et(r(f))))]),_:1},8,["class"])):ee("v-if",!0),k("div",{class:$(r(a).e("group"))},[k("h2",{class:$(r(a).e("title")),textContent:he(w.title)},null,10,["textContent"]),qe(k("div",{class:$(r(a).e("content")),style:Ne(w.title?void 0:{margin:0})},[Q(w.$slots,"default",{},()=>[w.dangerouslyUseHTMLString?(_(),x(ze,{key:1},[ee(" Caution here, message could've been compromised, never use user's input as message "),k("p",{innerHTML:w.message},null,8,["innerHTML"])],2112)):(_(),x("p",{key:0},he(w.message),1))])],6),[[pt,w.message]]),w.showClose?(_(),ae(r(xe),{key:0,class:$(r(a).e("closeBtn")),onClick:Ae(g,["stop"])},{default:G(()=>[q(r(i))]),_:1},8,["class","onClick"])):ee("v-if",!0)],2)],46,["id","onClick"]),[[pt,u.value]])]),_:3},8,["name","onBeforeLeave","onAfterLeave"]))}});var KX=ve(FX,[["__file","notification.vue"]]);const ui={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},Fc=16;let WX=1;const xo=function(e={},t){if(!ut)return{close:()=>{}};(Ve(e)||Ft(e))&&(e={message:e});const n=e.position||"top-right";let a=e.offset||0;ui[n].forEach(({vm:d})=>{var f;a+=(((f=d.el)==null?void 0:f.offsetHeight)||0)+Fc}),a+=Fc;const l=`notification_${WX++}`,o=e.onClose,s={...e,offset:a,id:l,onClose:()=>{jX(l,n,o)}};let i=document.body;Tn(e.appendTo)?i=e.appendTo:Ve(e.appendTo)&&(i=document.querySelector(e.appendTo)),Tn(i)||(i=document.body);const u=document.createElement("div"),c=q(KX,s,Qe(s.message)?s.message:Ft(s.message)?()=>s.message:null);return c.appContext=vt(t)?xo._context:t,c.props.onDestroy=()=>{rl(null,u)},rl(c,u),ui[n].push({vm:c}),i.appendChild(u.firstElementChild),{close:()=>{c.component.exposed.visible.value=!1}}};G4.forEach(e=>{xo[e]=(t={},n)=>((Ve(t)||Ft(t))&&(t={message:t}),xo({...t,type:e},n))});function jX(e,t,n){const a=ui[t],l=a.findIndex(({vm:c})=>{var d;return((d=c.component)==null?void 0:d.props.id)===e});if(l===-1)return;const{vm:o}=a[l];if(!o)return;n==null||n(o);const s=o.el.offsetHeight,i=t.split("-")[0];a.splice(l,1);const u=a.length;if(!(u<1))for(let c=l;c{t.component.exposed.visible.value=!1})}xo.closeAll=qX;xo._context=null;const UX=qv(xo,"$notify");var YX=[iX,pX,MX,RX,UX,im],NZ=Ob([...tX,...YX]);function GX(e){return Pp()?(Wc(e),!0):!1}const xu=new WeakMap,XX=(...e)=>{var t;const n=e[0],a=(t=Ze())==null?void 0:t.proxy;if(a==null&&!Bp())throw new Error("injectLocal must be called in setup");return a&&xu.has(a)&&n in xu.get(a)?xu.get(a)[n]:Se(...e)},ZX=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const JX=Object.prototype.toString,QX=e=>JX.call(e)==="[object Object]",eZ=()=>{};function tZ(e,t){function n(...a){return new Promise((l,o)=>{Promise.resolve(e(()=>t.apply(this,a),{fn:t,thisArg:this,args:a})).then(l).catch(o)})}return n}const X4=e=>e();function nZ(e=X4){const t=A(!0);function n(){t.value=!1}function a(){t.value=!0}const l=(...o)=>{t.value&&e(...o)};return{isActive:$o(t),pause:n,resume:a,eventFilter:l}}function Np(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function aZ(e){return Ze()}function $u(e){return Array.isArray(e)?e:[e]}function lZ(...e){if(e.length!==1)return mt(...e);const t=e[0];return typeof t=="function"?$o(zp(()=>({get:t,set:eZ}))):A(t)}function oZ(e,t,n={}){const{eventFilter:a=X4,...l}=n;return se(e,tZ(a,t),l)}function rZ(e,t,n={}){const{eventFilter:a,...l}=n,{eventFilter:o,pause:s,resume:i,isActive:u}=nZ(a);return{stop:oZ(e,t,{...l,eventFilter:o}),pause:s,resume:i,isActive:u}}function Z4(e,t=!0,n){aZ()?Ge(e,n):t?e():Oe(e)}function IZ(e=!1,t={}){const{truthyValue:n=!0,falsyValue:a=!1}=t,l=dn(e),o=A(e);function s(i){if(arguments.length)return o.value=i,o.value;{const u=ba(n);return o.value=o.value===u?ba(a):u,o.value}}return l?s:[o,s]}function sZ(e,t,n){return se(e,t,{...n,immediate:!0})}const $r=ZX?window:void 0;function J4(e){var t;const n=ba(e);return(t=n==null?void 0:n.$el)!=null?t:n}function Kc(...e){const t=[],n=()=>{t.forEach(i=>i()),t.length=0},a=(i,u,c,d)=>(i.addEventListener(u,c,d),()=>i.removeEventListener(u,c,d)),l=C(()=>{const i=$u(ba(e[0])).filter(u=>u!=null);return i.every(u=>typeof u!="string")?i:void 0}),o=sZ(()=>{var i,u;return[(u=(i=l.value)==null?void 0:i.map(c=>J4(c)))!=null?u:[$r].filter(c=>c!=null),$u(ba(l.value?e[1]:e[0])),$u(r(l.value?e[2]:e[1])),ba(l.value?e[3]:e[2])]},([i,u,c,d])=>{if(n(),!(i!=null&&i.length)||!(u!=null&&u.length)||!(c!=null&&c.length))return;const f=QX(d)?{...d}:d;t.push(...i.flatMap(h=>u.flatMap(v=>c.map(m=>a(h,v,m,f)))))},{flush:"post"}),s=()=>{o(),n()};return GX(n),s}function iZ(){const e=A(!1),t=Ze();return t&&Ge(()=>{e.value=!0},t),e}function uZ(e){const t=iZ();return C(()=>(t.value,!!e()))}const cZ=Symbol("vueuse-ssr-width");function dZ(){const e=Bp()?XX(cZ,null):null;return typeof e=="number"?e:void 0}function fZ(e,t={}){const{window:n=$r,ssrWidth:a=dZ()}=t,l=uZ(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),o=A(typeof a=="number"),s=Mt(),i=A(!1),u=c=>{i.value=c.matches};return on(()=>{if(o.value){o.value=!l.value;const c=ba(e).split(",");i.value=c.some(d=>{const f=d.includes("not all"),h=d.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),v=d.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let m=!!(h||v);return h&&m&&(m=a>=Np(h[1])),v&&m&&(m=a<=Np(v[1])),f?!m:m});return}l.value&&(s.value=n.matchMedia(ba(e)),i.value=s.value.matches)}),Kc(s,"change",u,{passive:!0}),C(()=>i.value)}const ds=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},fs="__vueuse_ssr_handlers__",pZ=vZ();function vZ(){return fs in ds||(ds[fs]=ds[fs]||{}),ds[fs]}function Q4(e,t){return pZ[e]||t}function hZ(e){return fZ("(prefers-color-scheme: dark)",e)}function mZ(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"}const gZ={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()}},Ip="vueuse-storage";function yZ(e,t,n,a={}){var l;const{flush:o="pre",deep:s=!0,listenToStorageChanges:i=!0,writeDefaults:u=!0,mergeDefaults:c=!1,shallow:d,window:f=$r,eventFilter:h,onError:v=P=>{console.error(P)},initOnMounted:m}=a,p=(d?Mt:A)(typeof t=="function"?t():t),y=C(()=>ba(e));if(!n)try{n=Q4("getDefaultStorage",()=>{var P;return(P=$r)==null?void 0:P.localStorage})()}catch(P){v(P)}if(!n)return p;const g=ba(t),M=mZ(g),w=(l=a.serializer)!=null?l:gZ[M],{pause:b,resume:S}=rZ(p,()=>O(p.value),{flush:o,deep:s,eventFilter:h});se(y,()=>N(),{flush:o}),f&&i&&Z4(()=>{n instanceof Storage?Kc(f,"storage",N,{passive:!0}):Kc(f,Ip,z),m&&N()}),m||N();function E(P,L){if(f){const F={key:y.value,oldValue:P,newValue:L,storageArea:n};f.dispatchEvent(n instanceof Storage?new StorageEvent("storage",F):new CustomEvent(Ip,{detail:F}))}}function O(P){try{const L=n.getItem(y.value);if(P==null)E(L,null),n.removeItem(y.value);else{const F=w.write(P);L!==F&&(n.setItem(y.value,F),E(L,F))}}catch(L){v(L)}}function I(P){const L=P?P.newValue:n.getItem(y.value);if(L==null)return u&&g!=null&&n.setItem(y.value,w.write(g)),g;if(!P&&c){const F=w.read(L);return typeof c=="function"?c(F,g):M==="object"&&!Array.isArray(F)?{...g,...F}:F}else return typeof L!="string"?L:w.read(L)}function N(P){if(!(P&&P.storageArea!==n)){if(P&&P.key==null){p.value=g;return}if(!(P&&P.key!==y.value)){b();try{(P==null?void 0:P.newValue)!==w.write(p.value)&&(p.value=I(P))}catch(L){v(L)}finally{P?Oe(S):S()}}}}function z(P){N(P.detail)}return p}const _Z="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function bZ(e={}){const{selector:t="html",attribute:n="class",initialValue:a="auto",window:l=$r,storage:o,storageKey:s="vueuse-color-scheme",listenToStorageChanges:i=!0,storageRef:u,emitAuto:c,disableTransition:d=!0}=e,f={auto:"",light:"light",dark:"dark",...e.modes||{}},h=hZ({window:l}),v=C(()=>h.value?"dark":"light"),m=u||(s==null?lZ(a):yZ(s,a,o,{window:l,listenToStorageChanges:i})),p=C(()=>m.value==="auto"?v.value:m.value),y=Q4("updateHTMLAttrs",(b,S,E)=>{const O=typeof b=="string"?l==null?void 0:l.document.querySelector(b):J4(b);if(!O)return;const I=new Set,N=new Set;let z=null;if(S==="class"){const L=E.split(/\s/g);Object.values(f).flatMap(F=>(F||"").split(/\s/g)).filter(Boolean).forEach(F=>{L.includes(F)?I.add(F):N.add(F)})}else z={key:S,value:E};if(I.size===0&&N.size===0&&z===null)return;let P;d&&(P=l.document.createElement("style"),P.appendChild(document.createTextNode(_Z)),l.document.head.appendChild(P));for(const L of I)O.classList.add(L);for(const L of N)O.classList.remove(L);z&&O.setAttribute(z.key,z.value),d&&(l.getComputedStyle(P).opacity,document.head.removeChild(P))});function g(b){var S;y(t,n,(S=f[b])!=null?S:b)}function M(b){e.onChanged?e.onChanged(b,g):g(b)}se(p,M,{flush:"post",immediate:!0}),Z4(()=>M(p.value));const w=C({get(){return c?m.value:p.value},set(b){m.value=b}});return Object.assign(w,{store:m,system:v,state:p})}function PZ(e={}){const{valueDark:t="dark",valueLight:n=""}=e,a=bZ({...e,onChanged:(s,i)=>{var u;e.onChanged?(u=e.onChanged)==null||u.call(e,s==="dark",i,s):i(s)},modes:{dark:t,light:n}}),l=C(()=>a.system.value);return C({get(){return a.value==="dark"},set(s){const i=s?"dark":"light";l.value===i?a.value="auto":a.value=i}})}const zZ={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((e,t)=>(e[t.id]=t)&&e,{})}},methods:{updatePaneComponents(){this.panes.forEach(e=>{e.update&&e.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[e.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(e,t){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=t},onMouseMove(e){this.touch.mouseDown&&(e.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(e)),this.$emit("resize",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(e,t){"ontouchstart"in window&&(e.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===t?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(e,t),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=t,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[t])},onSplitterDblClick(e,t){let n=0;this.panes=this.panes.map((a,l)=>(a.size=l===t?a.max:a.min,l!==t&&(n+=a.min),a)),this.panes[t].size-=n,this.$emit("pane-maximize",this.panes[t]),this.$emit("resized",this.panes.map(a=>({min:a.min,max:a.max,size:a.size})))},onPaneClick(e,t){this.$emit("pane-click",this.indexedPanes[t])},getCurrentMouseDrag(e){const t=this.container.getBoundingClientRect(),{clientX:n,clientY:a}="ontouchstart"in window&&e.touches?e.touches[0]:e;return{x:n-t.left,y:a-t.top}},getCurrentDragPercentage(e){e=e[this.horizontal?"y":"x"];const t=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(e=t-e),e*100/t},calculatePanesSize(e){const t=this.touch.activeSplitter;let n={prevPanesSize:this.sumPrevPanesSize(t),nextPanesSize:this.sumNextPanesSize(t),prevReachedMinPanes:0,nextReachedMinPanes:0};const a=0+(this.pushOtherPanes?0:n.prevPanesSize),l=100-(this.pushOtherPanes?0:n.nextPanesSize),o=Math.max(Math.min(this.getCurrentDragPercentage(e),l),a);let s=[t,t+1],i=this.panes[s[0]]||null,u=this.panes[s[1]]||null;const c=i.max<100&&o>=i.max+n.prevPanesSize,d=u.max<100&&o<=100-(u.max+this.sumNextPanesSize(t+1));if(c||d){c?(i.size=i.max,u.size=Math.max(100-i.max-n.prevPanesSize-n.nextPanesSize,0)):(i.size=Math.max(100-u.max-n.prevPanesSize-this.sumNextPanesSize(t+1),0),u.size=u.max);return}if(this.pushOtherPanes){const f=this.doPushOtherPanes(n,o);if(!f)return;({sums:n,panesToResize:s}=f),i=this.panes[s[0]]||null,u=this.panes[s[1]]||null}i!==null&&(i.size=Math.min(Math.max(o-n.prevPanesSize-n.prevReachedMinPanes,i.min),i.max)),u!==null&&(u.size=Math.min(Math.max(100-o-n.nextPanesSize-n.nextReachedMinPanes,u.min),u.max))},doPushOtherPanes(e,t){const n=this.touch.activeSplitter,a=[n,n+1];return t{o>a[0]&&o<=n&&(l.size=l.min,e.prevReachedMinPanes+=l.min)}),e.prevPanesSize=this.sumPrevPanesSize(a[0]),a[0]===void 0)?(e.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((l,o)=>{o>0&&o<=n&&(l.size=l.min,e.prevReachedMinPanes+=l.min)}),this.panes[a[1]].size=100-e.prevReachedMinPanes-this.panes[0].min-e.prevPanesSize-e.nextPanesSize,null):t>100-e.nextPanesSize-this.panes[a[1]].min&&(a[1]=this.findNextExpandedPane(n).index,e.nextReachedMinPanes=0,a[1]>n+1&&this.panes.forEach((l,o)=>{o>n&&o{o=n+1&&(l.size=l.min,e.nextReachedMinPanes+=l.min)}),this.panes[a[0]].size=100-e.prevPanesSize-e.nextReachedMinPanes-this.panes[this.panesCount-1].min-e.nextPanesSize,null):{sums:e,panesToResize:a}},sumPrevPanesSize(e){return this.panes.reduce((t,n,a)=>t+(at+(a>e+1?n.size:0),0)},findPrevExpandedPane(e){return[...this.panes].reverse().find(t=>t.indext.min)||{}},findNextExpandedPane(e){return this.panes.find(t=>t.index>e+1&&t.size>t.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(e=>{const t=e.classList.contains("splitpanes__pane"),n=e.classList.contains("splitpanes__splitter");!t&&!n&&(e.parentNode.removeChild(e),console.warn("Splitpanes: Only elements are allowed at the root of . One of your DOM nodes was removed."))})},addSplitter(e,t,n=!1){const a=e-1,l=document.createElement("div");l.classList.add("splitpanes__splitter"),n||(l.onmousedown=o=>this.onMouseDown(o,a),typeof window<"u"&&"ontouchstart"in window&&(l.ontouchstart=o=>this.onMouseDown(o,a)),l.onclick=o=>this.onSplitterClick(o,a+1)),this.dblClickSplitter&&(l.ondblclick=o=>this.onSplitterDblClick(o,a+1)),t.parentNode.insertBefore(l,t)},removeSplitter(e){e.onmousedown=void 0,e.onclick=void 0,e.ondblclick=void 0,e.parentNode.removeChild(e)},redoSplitters(){const e=Array.from(this.container.children);e.forEach(n=>{n.className.includes("splitpanes__splitter")&&this.removeSplitter(n)});let t=0;e.forEach(n=>{n.className.includes("splitpanes__pane")&&(!t&&this.firstSplitter?this.addSplitter(t,n,!0):t&&this.addSplitter(t,n),t++)})},requestUpdate({target:e,...t}){const n=this.indexedPanes[e._.uid];Object.entries(t).forEach(([a,l])=>n[a]=l)},onPaneAdd(e){let t=-1;Array.from(e.$el.parentNode.children).some(l=>(l.className.includes("splitpanes__pane")&&t++,l===e.$el));const n=parseFloat(e.minSize),a=parseFloat(e.maxSize);this.panes.splice(t,0,{id:e._.uid,index:t,min:isNaN(n)?0:n,max:isNaN(a)?100:a,size:e.size===null?null:parseFloat(e.size),givenSize:e.size,update:e.update}),this.panes.forEach((l,o)=>l.index=o),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[t]}),this.$emit("pane-add",{index:t,panes:this.panes.map(l=>({min:l.min,max:l.max,size:l.size}))})})},onPaneRemove(e){const t=this.panes.findIndex(a=>a.id===e._.uid),n=this.panes.splice(t,1)[0];this.panes.forEach((a,l)=>a.index=l),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...n,index:t}}),this.$emit("pane-remove",{removed:n,panes:this.panes.map(a=>({min:a.min,max:a.max,size:a.size}))})})},resetPaneSizes(e={}){!e.addedPane&&!e.removedPane?this.initialPanesSizing():this.panes.some(t=>t.givenSize!==null||t.min||t.max<100)?this.equalizeAfterAddOrRemove(e):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size})))},equalize(){const e=100/this.panesCount;let t=0;const n=[],a=[];this.panes.forEach(l=>{l.size=Math.max(Math.min(e,l.max),l.min),t-=l.size,l.size>=l.max&&n.push(l.id),l.size<=l.min&&a.push(l.id)}),t>.1&&this.readjustSizes(t,n,a)},initialPanesSizing(){let e=100;const t=[],n=[];let a=0;this.panes.forEach(o=>{e-=o.size,o.size!==null&&a++,o.size>=o.max&&t.push(o.id),o.size<=o.min&&n.push(o.id)});let l=100;e>.1&&(this.panes.forEach(o=>{o.size===null&&(o.size=Math.max(Math.min(e/(this.panesCount-a),o.max),o.min)),l-=o.size}),l>.1&&this.readjustSizes(e,t,n))},equalizeAfterAddOrRemove({addedPane:e,removedPane:t}={}){let n=100/this.panesCount,a=0;const l=[],o=[];e&&e.givenSize!==null&&(n=(100-e.givenSize)/(this.panesCount-1)),this.panes.forEach(s=>{a-=s.size,s.size>=s.max&&l.push(s.id),s.size<=s.min&&o.push(s.id)}),!(Math.abs(a)<.1)&&(this.panes.forEach(s=>{e&&e.givenSize!==null&&e.id===s.id||(s.size=Math.max(Math.min(n,s.max),s.min)),a-=s.size,s.size>=s.max&&l.push(s.id),s.size<=s.min&&o.push(s.id)}),a>.1&&this.readjustSizes(a,l,o))},readjustSizes(e,t,n){let a;e>0?a=e/(this.panesCount-t.length):a=e/(this.panesCount-n.length),this.panes.forEach((l,o)=>{if(e>0&&!t.includes(l.id)){const s=Math.max(Math.min(l.size+a,l.max),l.min),i=s-l.size;e-=i,l.size=s}else if(!n.includes(l.id)){const s=Math.max(Math.min(l.size+a,l.max),l.min),i=s-l.size;e-=i,l.size=s}l.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[l.id].size}%`})}),Math.abs(e)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(e){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((t,n)=>{t.ondblclick=e?a=>this.onSplitterDblClick(a,n):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return Pe("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},wZ=(e,t)=>{const n=e.__vccOpts||e;for(const[a,l]of t)n[a]=l;return n},CZ={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(e){this.style=e}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(e){this.requestUpdate({target:this,size:e})},minSizeNumber(e){this.requestUpdate({target:this,min:e})},maxSizeNumber(e){this.requestUpdate({target:this,max:e})}}};function SZ(e,t,n,a,l,o){return _(),x("div",{class:"splitpanes__pane",onClick:t[0]||(t[0]=s=>o.onPaneClick(s,e._.uid)),style:Ne(e.style)},[Q(e.$slots,"default")],4)}const AZ=wZ(CZ,[["render",SZ]]);export{MX as E,zZ as M,IZ as a,xZ as b,Be as d,AZ as g,NZ as i,PZ as u}; diff --git a/assets/utils-nI0tli1P.js b/assets/utils-nI0tli1P.js new file mode 100644 index 0000000..ca555c3 --- /dev/null +++ b/assets/utils-nI0tli1P.js @@ -0,0 +1,45 @@ +import{g as et,i as Se,r as A,c as C,u as o,a as Ee,b as ht,d as Ve,w as ue,e as F4,o as Sp,s as Ot,f as cn,h as oi,j as Xe,n as Ne,k as K4,l as Sn,m as vn,p as W4,q as Je,t as it,v as Lc,x as T,y as M,z as _,A as k,B as Q,C as Oe,D as $,N as zt,E as tt,F as Xt,G as ae,H as G,I as qe,J as ee,K as Qe,L as ot,M as he,O as ze,P as q,Q as pt,T as tn,R as yt,S as Mo,U as Ka,V as Ae,W as $t,X as _t,Y as kp,Z as Wa,_ as j4,$ as Ep,a0 as ri,a1 as q4,a2 as Rc,a3 as U4,a4 as kt,a5 as Yn,a6 as rt,a7 as io,a8 as oa,a9 as Tl,aa as Ft,ab as zs,ac as As,ad as nn,ae as xp,af as Pe,ag as Ze,ah as Y4,ai as G4,aj as Su,ak as si,al as X4,am as Mp,an as kl,ao as Z4,ap as ku,aq as ii,ar as J4,as as ol,at as Q4,au as eg,av as tg}from"./vue-C3Yyspzm.js";import{g as ja}from"./three-smIoJFTG.js";const ng="2.9.3",Mf=Symbol("INSTALLED_KEY"),$p=Symbol(),Zo="el",ag="is-",hl=(e,t,n,a,l)=>{let r=`${e}-${t}`;return n&&(r+=`-${n}`),a&&(r+=`__${a}`),l&&(r+=`--${l}`),r},Tp=Symbol("namespaceContextKey"),Bc=e=>{const t=e||(et()?Se(Tp,A(Zo)):A(Zo));return C(()=>o(t)||Zo)},de=(e,t)=>{const n=Bc(t);return{namespace:n,b:(p="")=>hl(n.value,e,p,"",""),e:p=>p?hl(n.value,e,"",p,""):"",m:p=>p?hl(n.value,e,"","",p):"",be:(p,y)=>p&&y?hl(n.value,e,p,y,""):"",em:(p,y)=>p&&y?hl(n.value,e,"",p,y):"",bm:(p,y)=>p&&y?hl(n.value,e,p,"",y):"",bem:(p,y,g)=>p&&y&&g?hl(n.value,e,p,y,g):"",is:(p,...y)=>{const g=y.length>=1?y[0]:!0;return p&&g?`${ag}${p}`:""},cssVar:p=>{const y={};for(const g in p)p[g]&&(y[`--${n.value}-${g}`]=p[g]);return y},cssVarName:p=>`--${n.value}-${p}`,cssVarBlock:p=>{const y={};for(const g in p)p[g]&&(y[`--${n.value}-${e}-${g}`]=p[g]);return y},cssVarBlockName:p=>`--${n.value}-${e}-${p}`}};var Op=typeof global=="object"&&global&&global.Object===Object&&global,lg=typeof self=="object"&&self&&self.Object===Object&&self,pa=Op||lg||Function("return this")(),Gn=pa.Symbol,Np=Object.prototype,og=Np.hasOwnProperty,rg=Np.toString,Fo=Gn?Gn.toStringTag:void 0;function sg(e){var t=og.call(e,Fo),n=e[Fo];try{e[Fo]=void 0;var a=!0}catch{}var l=rg.call(e);return a&&(t?e[Fo]=n:delete e[Fo]),l}var ig=Object.prototype,ug=ig.toString;function cg(e){return ug.call(e)}var dg="[object Null]",fg="[object Undefined]",$f=Gn?Gn.toStringTag:void 0;function Ll(e){return e==null?e===void 0?fg:dg:$f&&$f in Object(e)?sg(e):cg(e)}function Ca(e){return e!=null&&typeof e=="object"}var pg="[object Symbol]";function ui(e){return typeof e=="symbol"||Ca(e)&&Ll(e)==pg}function Hc(e,t){for(var n=-1,a=e==null?0:e.length,l=Array(a);++n0){if(++t>=Dg)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function jg(e){return function(){return e}}var Vs=function(){try{var e=Bl(Object,"defineProperty");return e({},"",{}),e}catch{}}(),qg=Vs?function(e,t){return Vs(e,"toString",{configurable:!0,enumerable:!1,value:jg(t),writable:!0})}:Dc,zp=Wg(qg);function Ug(e,t){for(var n=-1,a=e==null?0:e.length;++n-1}var Jg=9007199254740991,Qg=/^(?:0|[1-9]\d*)$/;function ci(e,t){var n=typeof e;return t=t??Jg,!!t&&(n=="number"||n!="symbol"&&Qg.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=n6}function To(e){return e!=null&&jc(e.length)&&!Fc(e)}function a6(e,t,n){if(!Nn(n))return!1;var a=typeof t;return(a=="number"?To(n)&&ci(t,n.length):a=="string"&&t in n)?xr(n[t],e):!1}function l6(e){return Lp(function(t,n){var a=-1,l=n.length,r=l>1?n[l-1]:void 0,s=l>2?n[2]:void 0;for(r=e.length>3&&typeof r=="function"?(l--,r):void 0,s&&a6(n[0],n[1],s)&&(r=l<3?void 0:r,l=1),t=Object(t);++a-1}function v3(e,t){var n=this.__data__,a=di(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this}function qa(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t0&&n(i)?t>1?Tr(i,t-1,n,a,l):Xc(l,i):a||(l[l.length]=i)}return l}function Kp(e){var t=e==null?0:e.length;return t?Tr(e,1):[]}function Wp(e){return zp(Vp(e,void 0,Kp),e+"")}var Zc=Fp(Object.getPrototypeOf,Object),T3="[object Object]",O3=Function.prototype,N3=Object.prototype,jp=O3.toString,I3=N3.hasOwnProperty,P3=jp.call(Object);function qp(e){if(!Ca(e)||Ll(e)!=T3)return!1;var t=Zc(e);if(t===null)return!0;var n=I3.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&jp.call(n)==P3}function z3(e,t,n){var a=-1,l=e.length;t<0&&(t=-t>l?0:l+t),n=n>l?l:n,n<0&&(n+=l),l=t>n?0:n-t>>>0,t>>>=0;for(var r=Array(l);++ai))return!1;var c=r.get(e),d=r.get(t);if(c&&d)return c==t&&d==e;var f=-1,h=!0,v=n&hy?new ur:void 0;for(r.set(e,t),r.set(t,e);++f=t||O<0||f&&I>=r}function g(){var E=Xi();if(y(E))return x(E);i=setTimeout(g,p(E))}function x(E){return i=void 0,h&&a?v(E):(a=l=void 0,s)}function w(){i!==void 0&&clearTimeout(i),c=0,a=u=l=i=void 0}function b(){return i===void 0?s:x(Xi())}function S(){var E=Xi(),O=y(E);if(a=arguments,l=this,u=E,O){if(i===void 0)return m(u);if(f)return clearTimeout(i),i=setTimeout(g,t),v(u)}return i===void 0&&(i=setTimeout(g,t)),s}return S.cancel=w,S.flush=b,S}function Tu(e,t,n){(n!==void 0&&!xr(e[t],n)||n===void 0&&!(t in e))&&Kc(e,t,n)}function d1(e){return Ca(e)&&To(e)}function Ou(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function l_(e){return $o(e,$r(e))}function o_(e,t,n,a,l,r,s){var i=Ou(e,n),u=Ou(t,n),c=s.get(u);if(c){Tu(e,n,c);return}var d=r?r(i,u,n+"",e,t,s):void 0,f=d===void 0;if(f){var h=On(u),v=!h&&rr(u),m=!h&&!v&&Yc(u);d=u,h||v||m?On(i)?d=i:d1(i)?d=Pp(i):v?(f=!1,d=Yp(u,!0)):m?(f=!1,d=Qp(u,!0)):d=[]:qp(u)||or(u)?(d=i,or(i)?d=l_(i):(!Nn(i)||Fc(i))&&(d=e1(u))):f=!1}f&&(s.set(u,d),l(d,u,a,r,s),s.delete(u)),Tu(e,n,d)}function f1(e,t,n,a,l){e!==t&&c1(t,function(r,s){if(l||(l=new ia),Nn(r))o_(e,t,s,n,f1,a,l);else{var i=a?a(Ou(e,s),r,s+"",e,t,l):void 0;i===void 0&&(i=r),Tu(e,s,i)}},$r)}function r_(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function p1(e,t,n){var a=e==null?0:e.length;if(!a)return-1;var l=a-1;return Ap(e,u1(t),l,!0)}function s_(e,t){var n=-1,a=To(e)?Array(e.length):[];return e_(e,function(l,r,s){a[++n]=t(l,r,s)}),a}function i_(e,t){var n=On(e)?Hc:s_;return n(e,u1(t))}function u_(e,t){return Tr(i_(e,t),1)}var c_=1/0;function d_(e){var t=e==null?0:e.length;return t?Tr(e,c_):[]}function cr(e){for(var t=-1,n=e==null?0:e.length,a={};++t1),r}),$o(e,Jp(e),n),a&&(n=ao(n,h_|m_|g_,v_));for(var l=t.length;l--;)p_(n,t[l]);return n});function m1(e,t,n,a){if(!Nn(e))return e;t=Oo(t,e);for(var l=-1,r=t.length,s=r-1,i=e;i!=null&&++l=E_){var c=k_(e);if(c)return ed(c);s=!1,l=l1,u=new ur}else u=i;e:for(;++ae===void 0,Et=e=>typeof e=="boolean",Ie=e=>typeof e=="number",Hn=e=>!e&&e!==0||Ee(e)&&e.length===0||ht(e)&&!Object.keys(e).length,Tn=e=>typeof Element>"u"?!1:e instanceof Element,ua=e=>Zt(e),M_=e=>Ve(e)?!Number.isNaN(Number(e)):!1,mi=e=>e===window;var $_=Object.defineProperty,T_=Object.defineProperties,O_=Object.getOwnPropertyDescriptors,o0=Object.getOwnPropertySymbols,N_=Object.prototype.hasOwnProperty,I_=Object.prototype.propertyIsEnumerable,r0=(e,t,n)=>t in e?$_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,P_=(e,t)=>{for(var n in t||(t={}))N_.call(t,n)&&r0(e,n,t[n]);if(o0)for(var n of o0(t))I_.call(t,n)&&r0(e,n,t[n]);return e},z_=(e,t)=>T_(e,O_(t));function Nu(e,t){var n;const a=Ot();return cn(()=>{a.value=e()},z_(P_({},t),{flush:(n=void 0)!=null?n:"sync"})),oi(a)}var s0;const ut=typeof window<"u",A_=e=>typeof e<"u",Iu=e=>typeof e=="function",V_=e=>typeof e=="string",co=()=>{},Pu=ut&&((s0=window==null?void 0:window.navigator)==null?void 0:s0.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function rl(e){return typeof e=="function"?e():o(e)}function g1(e,t){function n(...a){return new Promise((l,r)=>{Promise.resolve(e(()=>t.apply(this,a),{fn:t,thisArg:this,args:a})).then(l).catch(r)})}return n}function L_(e,t={}){let n,a,l=co;const r=i=>{clearTimeout(i),l(),l=co};return i=>{const u=rl(e),c=rl(t.maxWait);return n&&r(n),u<=0||c!==void 0&&c<=0?(a&&(r(a),a=null),Promise.resolve(i())):new Promise((d,f)=>{l=t.rejectOnCancel?f:d,c&&!a&&(a=setTimeout(()=>{n&&r(n),a=null,d(i())},c)),n=setTimeout(()=>{a&&r(a),a=null,d(i())},u)})}}function R_(e,t=!0,n=!0,a=!1){let l=0,r,s=!0,i=co,u;const c=()=>{r&&(clearTimeout(r),r=void 0,i(),i=co)};return f=>{const h=rl(e),v=Date.now()-l,m=()=>u=f();return c(),h<=0?(l=Date.now(),m()):(v>h&&(n||!s)?(l=Date.now(),m()):t&&(u=new Promise((p,y)=>{i=a?y:p,r=setTimeout(()=>{l=Date.now(),s=!0,p(m()),c()},Math.max(0,h-v))})),!n&&!r&&(r=setTimeout(()=>s=!0,h)),s=!1,u)}}function B_(e){return e}function H_(e,t){let n,a,l;const r=A(!0),s=()=>{r.value=!0,l()};ue(e,s,{flush:"sync"});const i=Iu(t)?t:t.get,u=Iu(t)?void 0:t.set,c=K4((d,f)=>(a=d,l=f,{get(){return r.value&&(n=i(),r.value=!1),a(),n},set(h){u==null||u(h)}}));return Object.isExtensible(c)&&(c.trigger=s),c}function Nr(e){return F4()?(Sp(e),!0):!1}function D_(e,t=200,n={}){return g1(L_(t,n),e)}function F_(e,t=200,n={}){const a=A(e.value),l=D_(()=>{a.value=e.value},t,n);return ue(e,()=>l()),a}function y1(e,t=200,n=!1,a=!0,l=!1){return g1(R_(t,n,a,l),e)}function td(e,t=!0){et()?Xe(e):t?e():Ne(e)}function Nl(e,t,n={}){const{immediate:a=!0}=n,l=A(!1);let r=null;function s(){r&&(clearTimeout(r),r=null)}function i(){l.value=!1,s()}function u(...c){s(),l.value=!0,r=setTimeout(()=>{l.value=!1,r=null,e(...c)},rl(t))}return a&&(l.value=!0,ut&&u()),Nr(i),{isPending:oi(l),start:u,stop:i}}function $n(e){var t;const n=rl(e);return(t=n==null?void 0:n.$el)!=null?t:n}const cl=ut?window:void 0,K_=ut?window.document:void 0;function wt(...e){let t,n,a,l;if(V_(e[0])||Array.isArray(e[0])?([n,a,l]=e,t=cl):[t,n,a,l]=e,!t)return co;Array.isArray(n)||(n=[n]),Array.isArray(a)||(a=[a]);const r=[],s=()=>{r.forEach(d=>d()),r.length=0},i=(d,f,h,v)=>(d.addEventListener(f,h,v),()=>d.removeEventListener(f,h,v)),u=ue(()=>[$n(t),rl(l)],([d,f])=>{s(),d&&r.push(...n.flatMap(h=>a.map(v=>i(d,h,v,f))))},{immediate:!0,flush:"post"}),c=()=>{u(),s()};return Nr(c),c}let i0=!1;function nd(e,t,n={}){const{window:a=cl,ignore:l=[],capture:r=!0,detectIframe:s=!1}=n;if(!a)return;Pu&&!i0&&(i0=!0,Array.from(a.document.body.children).forEach(h=>h.addEventListener("click",co)));let i=!0;const u=h=>l.some(v=>{if(typeof v=="string")return Array.from(a.document.querySelectorAll(v)).some(m=>m===h.target||h.composedPath().includes(m));{const m=$n(v);return m&&(h.target===m||h.composedPath().includes(m))}}),d=[wt(a,"click",h=>{const v=$n(e);if(!(!v||v===h.target||h.composedPath().includes(v))){if(h.detail===0&&(i=!u(h)),!i){i=!0;return}t(h)}},{passive:!0,capture:r}),wt(a,"pointerdown",h=>{const v=$n(e);v&&(i=!h.composedPath().includes(v)&&!u(h))},{passive:!0}),s&&wt(a,"blur",h=>{var v;const m=$n(e);((v=a.document.activeElement)==null?void 0:v.tagName)==="IFRAME"&&!(m!=null&&m.contains(a.document.activeElement))&&t(h)})].filter(Boolean);return()=>d.forEach(h=>h())}function W_(e={}){var t;const{window:n=cl}=e,a=(t=e.document)!=null?t:n==null?void 0:n.document,l=H_(()=>null,()=>a==null?void 0:a.activeElement);return n&&(wt(n,"blur",r=>{r.relatedTarget===null&&l.trigger()},!0),wt(n,"focus",l.trigger,!0)),l}function _1(e,t=!1){const n=A(),a=()=>n.value=!!e();return a(),td(a,t),n}function j_(e){return JSON.parse(JSON.stringify(e))}const u0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},c0="__vueuse_ssr_handlers__";u0[c0]=u0[c0]||{};function q_(e,t,{window:n=cl,initialValue:a=""}={}){const l=A(a),r=C(()=>{var s;return $n(t)||((s=n==null?void 0:n.document)==null?void 0:s.documentElement)});return ue([r,()=>rl(e)],([s,i])=>{var u;if(s&&n){const c=(u=n.getComputedStyle(s).getPropertyValue(i))==null?void 0:u.trim();l.value=c||a}},{immediate:!0}),ue(l,s=>{var i;(i=r.value)!=null&&i.style&&r.value.style.setProperty(rl(e),s)}),l}function U_({document:e=K_}={}){if(!e)return A("visible");const t=A(e.visibilityState);return wt(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var d0=Object.getOwnPropertySymbols,Y_=Object.prototype.hasOwnProperty,G_=Object.prototype.propertyIsEnumerable,X_=(e,t)=>{var n={};for(var a in e)Y_.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&d0)for(var a of d0(e))t.indexOf(a)<0&&G_.call(e,a)&&(n[a]=e[a]);return n};function At(e,t,n={}){const a=n,{window:l=cl}=a,r=X_(a,["window"]);let s;const i=_1(()=>l&&"ResizeObserver"in l),u=()=>{s&&(s.disconnect(),s=void 0)},c=ue(()=>$n(e),f=>{u(),i.value&&l&&f&&(s=new ResizeObserver(t),s.observe(f,r))},{immediate:!0,flush:"post"}),d=()=>{u(),c()};return Nr(d),{isSupported:i,stop:d}}function f0(e,t={}){const{reset:n=!0,windowResize:a=!0,windowScroll:l=!0,immediate:r=!0}=t,s=A(0),i=A(0),u=A(0),c=A(0),d=A(0),f=A(0),h=A(0),v=A(0);function m(){const p=$n(e);if(!p){n&&(s.value=0,i.value=0,u.value=0,c.value=0,d.value=0,f.value=0,h.value=0,v.value=0);return}const y=p.getBoundingClientRect();s.value=y.height,i.value=y.bottom,u.value=y.left,c.value=y.right,d.value=y.top,f.value=y.width,h.value=y.x,v.value=y.y}return At(e,m),ue(()=>$n(e),p=>!p&&m()),l&&wt("scroll",m,{capture:!0,passive:!0}),a&&wt("resize",m,{passive:!0}),td(()=>{r&&m()}),{height:s,bottom:i,left:u,right:c,top:d,width:f,x:h,y:v,update:m}}var p0=Object.getOwnPropertySymbols,Z_=Object.prototype.hasOwnProperty,J_=Object.prototype.propertyIsEnumerable,Q_=(e,t)=>{var n={};for(var a in e)Z_.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&p0)for(var a of p0(e))t.indexOf(a)<0&&J_.call(e,a)&&(n[a]=e[a]);return n};function b1(e,t,n={}){const a=n,{window:l=cl}=a,r=Q_(a,["window"]);let s;const i=_1(()=>l&&"MutationObserver"in l),u=()=>{s&&(s.disconnect(),s=void 0)},c=ue(()=>$n(e),f=>{u(),i.value&&l&&f&&(s=new MutationObserver(t),s.observe(f,r))},{immediate:!0}),d=()=>{u(),c()};return Nr(d),{isSupported:i,stop:d}}var v0;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(v0||(v0={}));var eb=Object.defineProperty,h0=Object.getOwnPropertySymbols,tb=Object.prototype.hasOwnProperty,nb=Object.prototype.propertyIsEnumerable,m0=(e,t,n)=>t in e?eb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ab=(e,t)=>{for(var n in t||(t={}))tb.call(t,n)&&m0(e,n,t[n]);if(h0)for(var n of h0(t))nb.call(t,n)&&m0(e,n,t[n]);return e};const lb={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]};ab({linear:B_},lb);function w1(e,t,n,a={}){var l,r,s;const{clone:i=!1,passive:u=!1,eventName:c,deep:d=!1,defaultValue:f}=a,h=et(),v=n||(h==null?void 0:h.emit)||((l=h==null?void 0:h.$emit)==null?void 0:l.bind(h))||((s=(r=h==null?void 0:h.proxy)==null?void 0:r.$emit)==null?void 0:s.bind(h==null?void 0:h.proxy));let m=c;t||(t="modelValue"),m=c||m||`update:${t.toString()}`;const p=g=>i?Iu(i)?i(g):j_(g):g,y=()=>A_(e[t])?p(e[t]):f;if(u){const g=y(),x=A(g);return ue(()=>e[t],w=>x.value=p(w)),ue(x,w=>{(w!==e[t]||d)&&v(m,w)},{deep:d}),x}else return C({get(){return y()},set(g){v(m,g)}})}function ob({window:e=cl}={}){if(!e)return A(!1);const t=A(e.document.hasFocus());return wt(e,"blur",()=>{t.value=!1}),wt(e,"focus",()=>{t.value=!0}),t}function rb(e={}){const{window:t=cl,initialWidth:n=1/0,initialHeight:a=1/0,listenOrientation:l=!0,includeScrollbar:r=!0}=e,s=A(n),i=A(a),u=()=>{t&&(r?(s.value=t.innerWidth,i.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,i.value=t.document.documentElement.clientHeight))};return u(),td(u),wt("resize",u,{passive:!0}),l&&wt("orientationchange",u,{passive:!0}),{width:s,height:i}}class sb extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Gt(e,t){throw new sb(`[${e}] ${t}`)}const g0={current:0},y0=A(0),C1=2e3,_0=Symbol("elZIndexContextKey"),S1=Symbol("zIndexContextKey"),Io=e=>{const t=et()?Se(_0,g0):g0,n=e||(et()?Se(S1,void 0):void 0),a=C(()=>{const s=o(n);return Ie(s)?s:C1}),l=C(()=>a.value+y0.value),r=()=>(t.current++,y0.value=t.current,l.value);return!ut&&Se(_0),{initialZIndex:a,currentZIndex:l,nextZIndex:r}};var ib={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value"},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"},mention:{loading:"Loading"},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"},tour:{next:"Next",previous:"Previous",finish:"Finish"},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"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const ub=e=>(t,n)=>cb(t,n,o(e)),cb=(e,t,n)=>Kt(n,e,e).replace(/\{(\w+)\}/g,(a,l)=>{var r;return`${(r=t==null?void 0:t[l])!=null?r:`{${l}}`}`}),db=e=>{const t=C(()=>o(e).name),n=Sn(e)?e:A(e);return{lang:t,locale:n,t:ub(e)}},k1=Symbol("localeContextKey"),ct=e=>{const t=e||Se(k1,A());return db(C(()=>t.value||ib))},E1="__epPropKey",X=e=>e,fb=e=>ht(e)&&!!e[E1],va=(e,t)=>{if(!ht(e)||fb(e))return e;const{values:n,required:a,default:l,type:r,validator:s}=e,u={type:r,required:!!a,validator:n||s?c=>{let d=!1,f=[];if(n&&(f=Array.from(n),vn(e,"default")&&f.push(l),d||(d=f.includes(c))),s&&(d||(d=s(c))),!d&&f.length>0){const h=[...new Set(f)].map(v=>JSON.stringify(v)).join(", ");W4(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${h}], got value ${JSON.stringify(c)}.`)}return d}:void 0,[E1]:!0};return vn(e,"default")&&(u.default=l),u},pe=e=>cr(Object.entries(e).map(([t,n])=>[t,va(n,t)])),xa=["","default","small","large"],qt=va({type:String,values:xa,required:!1}),x1=Symbol("size"),M1=()=>{const e=Se(x1,{});return C(()=>o(e.size)||"")},$1=Symbol("emptyValuesContextKey"),pb=["",void 0,null],vb=void 0,Po=pe({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:e=>Je(e)?!e():!e}}),gi=(e,t)=>{const n=et()?Se($1,A({})):A({}),a=C(()=>e.emptyValues||n.value.emptyValues||pb),l=C(()=>Je(e.valueOnClear)?e.valueOnClear():e.valueOnClear!==void 0?e.valueOnClear:Je(n.value.valueOnClear)?n.value.valueOnClear():n.value.valueOnClear!==void 0?n.value.valueOnClear:t!==void 0?t:vb),r=s=>a.value.includes(s);return a.value.includes(l.value),{emptyValues:a,valueOnClear:l,isEmptyValue:r}},fo=e=>Object.keys(e),T1=e=>Object.entries(e),is=(e,t,n)=>({get value(){return Kt(e,t,n)},set value(a){w_(e,t,a)}}),Bs=A();function yi(e,t=void 0){const n=et()?Se($p,Bs):Bs;return e?C(()=>{var a,l;return(l=(a=n.value)==null?void 0:a[e])!=null?l:t}):n}function _i(e,t){const n=yi(),a=de(e,C(()=>{var i;return((i=n.value)==null?void 0:i.namespace)||Zo})),l=ct(C(()=>{var i;return(i=n.value)==null?void 0:i.locale})),r=Io(C(()=>{var i;return((i=n.value)==null?void 0:i.zIndex)||C1})),s=C(()=>{var i;return o(t)||((i=n.value)==null?void 0:i.size)||""});return ad(C(()=>o(n)||{})),{ns:a,locale:l,zIndex:r,size:s}}const ad=(e,t,n=!1)=>{var a;const l=!!et(),r=l?yi():void 0,s=(a=t==null?void 0:t.provide)!=null?a:l?it:void 0;if(!s)return;const i=C(()=>{const u=o(e);return r!=null&&r.value?hb(r.value,u):u});return s($p,i),s(k1,C(()=>i.value.locale)),s(Tp,C(()=>i.value.namespace)),s(S1,C(()=>i.value.zIndex)),s(x1,{size:C(()=>i.value.size||"")}),s($1,C(()=>({emptyValues:i.value.emptyValues,valueOnClear:i.value.valueOnClear}))),(n||!Bs.value)&&(Bs.value=i.value),i},hb=(e,t)=>{const n=[...new Set([...fo(e),...fo(t)])],a={};for(const l of n)a[l]=t[l]!==void 0?t[l]:e[l];return a},mb=(e=[])=>({version:ng,install:(n,a)=>{n[Mf]||(n[Mf]=!0,e.forEach(l=>n.use(l)),a&&ad(a,n,!0))}}),Ue="update:modelValue",Ct="change",fn="input",gb=pe({zIndex:{type:X([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"}}),yb={scroll:({scrollTop:e,fixed:t})=>Ie(e)&&Et(t),[Ct]:e=>Et(e)};var ve=(e,t)=>{const n=e.__vccOpts||e;for(const[a,l]of t)n[a]=l;return n};function _b(e,t,n,a){const l=n-t;return e/=a/2,e<1?l/2*e*e*e+t:l/2*((e-=2)*e*e+2)+t}const sl=e=>ut?window.requestAnimationFrame(e):setTimeout(e,16),Il=e=>ut?window.cancelAnimationFrame(e):clearTimeout(e),O1=(e="")=>e.split(" ").filter(t=>!!t.trim()),An=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},jn=(e,t)=>{!e||!t.trim()||e.classList.add(...O1(t))},kn=(e,t)=>{!e||!t.trim()||e.classList.remove(...O1(t))},Aa=(e,t)=>{var n;if(!ut||!e||!t)return"";let a=Lc(t);a==="float"&&(a="cssFloat");try{const l=e.style[a];if(l)return l;const r=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return r?r[a]:""}catch{return e.style[a]}},N1=(e,t,n)=>{if(!(!e||!t))if(ht(t))T1(t).forEach(([a,l])=>N1(e,a,l));else{const a=Lc(t);e.style[a]=n}};function Rt(e,t="px"){if(!e)return"";if(Ie(e)||M_(e))return`${e}${t}`;if(Ve(e))return e}const bb=(e,t)=>{if(!ut)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],a=Aa(e,n);return["scroll","auto","overlay"].some(l=>a.includes(l))},ld=(e,t)=>{if(!ut)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(bb(n,t))return n;n=n.parentNode}return n};let qr;const I1=e=>{var t;if(!ut)return 0;if(qr!==void 0)return qr;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 a=n.offsetWidth;n.style.overflow="scroll";const l=document.createElement("div");l.style.width="100%",n.appendChild(l);const r=l.offsetWidth;return(t=n.parentNode)==null||t.removeChild(n),qr=a-r,qr};function od(e,t){if(!ut)return;if(!t){e.scrollTop=0;return}const n=[];let a=t.offsetParent;for(;a!==null&&e!==a&&e.contains(a);)n.push(a),a=a.offsetParent;const l=t.offsetTop+n.reduce((u,c)=>u+c.offsetTop,0),r=l+t.offsetHeight,s=e.scrollTop,i=s+e.clientHeight;li&&(e.scrollTop=r-e.clientHeight)}function wb(e,t,n,a,l){const r=Date.now();let s;const i=()=>{const c=Date.now()-r,d=_b(c>a?a:c,t,n,a);mi(e)?e.scrollTo(window.pageXOffset,d):e.scrollTop=d,c{s&&Il(s)}}const b0=(e,t)=>mi(t)?e.ownerDocument.documentElement:t,w0=e=>mi(e)?window.scrollY:e.scrollTop,P1="ElAffix",Cb=T({name:P1}),Sb=T({...Cb,props:gb,emits:yb,setup(e,{expose:t,emit:n}){const a=e,l=de("affix"),r=Ot(),s=Ot(),i=Ot(),{height:u}=rb(),{height:c,width:d,top:f,bottom:h,update:v}=f0(s,{windowScroll:!1}),m=f0(r),p=A(!1),y=A(0),g=A(0),x=C(()=>({height:p.value?`${c.value}px`:"",width:p.value?`${d.value}px`:""})),w=C(()=>{if(!p.value)return{};const E=a.offset?Rt(a.offset):0;return{height:`${c.value}px`,width:`${d.value}px`,top:a.position==="top"?E:"",bottom:a.position==="bottom"?E:"",transform:g.value?`translateY(${g.value}px)`:"",zIndex:a.zIndex}}),b=()=>{if(!i.value)return;y.value=i.value instanceof Window?document.documentElement.scrollTop:i.value.scrollTop||0;const{position:E,target:O,offset:I}=a,N=I+c.value;if(E==="top")if(O){const P=m.bottom.value-N;p.value=I>f.value&&m.bottom.value>0,g.value=P<0?P:0}else p.value=I>f.value;else if(O){const P=u.value-m.top.value-N;p.value=u.value-Im.top.value,g.value=P<0?-P:0}else p.value=u.value-I{v(),n("scroll",{scrollTop:y.value,fixed:p.value})};return ue(p,E=>n("change",E)),Xe(()=>{var E;a.target?(r.value=(E=document.querySelector(a.target))!=null?E:void 0,r.value||Gt(P1,`Target does not exist: ${a.target}`)):r.value=document.documentElement,i.value=ld(s.value,!0),v()}),wt(i,"scroll",S),cn(b),t({update:b,updateRoot:v}),(E,O)=>(_(),M("div",{ref_key:"root",ref:s,class:$(o(l).b()),style:Oe(o(x))},[k("div",{class:$({[o(l).m("fixed")]:p.value}),style:Oe(o(w))},[Q(E.$slots,"default")],6)],6))}});var kb=ve(Sb,[["__file","affix.vue"]]);const We=(e,t)=>{if(e.install=n=>{for(const a of[e,...Object.values(t??{})])n.component(a.name,a)},t)for(const[n,a]of Object.entries(t))e[n]=a;return e},z1=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),Eb=(e,t)=>(e.install=n=>{n.directive(t,e)},e),Lt=e=>(e.install=zt,e),xb=We(kb),Mb=pe({size:{type:X([Number,String])},color:{type:String}}),$b=T({name:"ElIcon",inheritAttrs:!1}),Tb=T({...$b,props:Mb,setup(e){const t=e,n=de("icon"),a=C(()=>{const{size:l,color:r}=t;return!l&&!r?{}:{fontSize:vt(l)?void 0:Rt(l),"--color":r}});return(l,r)=>(_(),M("i",tt({class:o(n).b(),style:o(a)},l.$attrs),[Q(l.$slots,"default")],16))}});var Ob=ve(Tb,[["__file","icon.vue"]]);const Me=We(Ob);/*! Element Plus Icons Vue v2.3.1 */var Nb=T({name:"AddLocation",__name:"add-location",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),k("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),k("path",{fill:"currentColor",d:"M544 384h96a32 32 0 1 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96v-96a32 32 0 0 1 64 0z"})]))}}),Ib=Nb,Pb=T({name:"Aim",__name:"aim",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),k("path",{fill:"currentColor",d:"M512 96a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V128a32 32 0 0 1 32-32m0 576a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V704a32 32 0 0 1 32-32M96 512a32 32 0 0 1 32-32h192a32 32 0 0 1 0 64H128a32 32 0 0 1-32-32m576 0a32 32 0 0 1 32-32h192a32 32 0 1 1 0 64H704a32 32 0 0 1-32-32"})]))}}),zb=Pb,Ab=T({name:"AlarmClock",__name:"alarm-clock",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 832a320 320 0 1 0 0-640 320 320 0 0 0 0 640m0 64a384 384 0 1 1 0-768 384 384 0 0 1 0 768"}),k("path",{fill:"currentColor",d:"m292.288 824.576 55.424 32-48 83.136a32 32 0 1 1-55.424-32zm439.424 0-55.424 32 48 83.136a32 32 0 1 0 55.424-32zM512 512h160a32 32 0 1 1 0 64H480a32 32 0 0 1-32-32V320a32 32 0 0 1 64 0zM90.496 312.256A160 160 0 0 1 312.32 90.496l-46.848 46.848a96 96 0 0 0-128 128L90.56 312.256zm835.264 0A160 160 0 0 0 704 90.496l46.848 46.848a96 96 0 0 1 128 128z"})]))}}),Vb=Ab,Lb=T({name:"Apple",__name:"apple",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M599.872 203.776a189.44 189.44 0 0 1 64.384-4.672l2.624.128c31.168 1.024 51.2 4.096 79.488 16.32 37.632 16.128 74.496 45.056 111.488 89.344 96.384 115.264 82.752 372.8-34.752 521.728-7.68 9.728-32 41.6-30.72 39.936a426.624 426.624 0 0 1-30.08 35.776c-31.232 32.576-65.28 49.216-110.08 50.048-31.36.64-53.568-5.312-84.288-18.752l-6.528-2.88c-20.992-9.216-30.592-11.904-47.296-11.904-18.112 0-28.608 2.88-51.136 12.672l-6.464 2.816c-28.416 12.224-48.32 18.048-76.16 19.2-74.112 2.752-116.928-38.08-180.672-132.16-96.64-142.08-132.608-349.312-55.04-486.4 46.272-81.92 129.92-133.632 220.672-135.04 32.832-.576 60.288 6.848 99.648 22.72 27.136 10.88 34.752 13.76 37.376 14.272 16.256-20.16 27.776-36.992 34.56-50.24 13.568-26.304 27.2-59.968 40.704-100.8a32 32 0 1 1 60.8 20.224c-12.608 37.888-25.408 70.4-38.528 97.664zm-51.52 78.08c-14.528 17.792-31.808 37.376-51.904 58.816a32 32 0 1 1-46.72-43.776l12.288-13.248c-28.032-11.2-61.248-26.688-95.68-26.112-70.4 1.088-135.296 41.6-171.648 105.792C121.6 492.608 176 684.16 247.296 788.992c34.816 51.328 76.352 108.992 130.944 106.944 52.48-2.112 72.32-34.688 135.872-34.688 63.552 0 81.28 34.688 136.96 33.536 56.448-1.088 75.776-39.04 126.848-103.872 107.904-136.768 107.904-362.752 35.776-449.088-72.192-86.272-124.672-84.096-151.68-85.12-41.472-4.288-81.6 12.544-113.664 25.152z"})]))}}),Rb=Lb,Bb=T({name:"ArrowDownBold",__name:"arrow-down-bold",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M104.704 338.752a64 64 0 0 1 90.496 0l316.8 316.8 316.8-316.8a64 64 0 0 1 90.496 90.496L557.248 791.296a64 64 0 0 1-90.496 0L104.704 429.248a64 64 0 0 1 0-90.496z"})]))}}),Hb=Bb,Db=T({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("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"})]))}}),Ma=Db,Fb=T({name:"ArrowLeftBold",__name:"arrow-left-bold",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M685.248 104.704a64 64 0 0 1 0 90.496L368.448 512l316.8 316.8a64 64 0 0 1-90.496 90.496L232.704 557.248a64 64 0 0 1 0-90.496l362.048-362.048a64 64 0 0 1 90.496 0z"})]))}}),Kb=Fb,Wb=T({name:"ArrowLeft",__name:"arrow-left",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"})]))}}),La=Wb,jb=T({name:"ArrowRightBold",__name:"arrow-right-bold",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M338.752 104.704a64 64 0 0 0 0 90.496l316.8 316.8-316.8 316.8a64 64 0 0 0 90.496 90.496l362.048-362.048a64 64 0 0 0 0-90.496L429.248 104.704a64 64 0 0 0-90.496 0z"})]))}}),qb=jb,Ub=T({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("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"})]))}}),En=Ub,Yb=T({name:"ArrowUpBold",__name:"arrow-up-bold",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M104.704 685.248a64 64 0 0 0 90.496 0l316.8-316.8 316.8 316.8a64 64 0 0 0 90.496-90.496L557.248 232.704a64 64 0 0 0-90.496 0L104.704 594.752a64 64 0 0 0 0 90.496z"})]))}}),Gb=Yb,Xb=T({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("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 0"})]))}}),bi=Xb,Zb=T({name:"Avatar",__name:"avatar",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M628.736 528.896A416 416 0 0 1 928 928H96a415.872 415.872 0 0 1 299.264-399.104L512 704zM720 304a208 208 0 1 1-416 0 208 208 0 0 1 416 0"})]))}}),Jb=Zb,Qb=T({name:"Back",__name:"back",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64"}),k("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312z"})]))}}),A1=Qb,ew=T({name:"Baseball",__name:"baseball",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M195.2 828.8a448 448 0 1 1 633.6-633.6 448 448 0 0 1-633.6 633.6zm45.248-45.248a384 384 0 1 0 543.104-543.104 384 384 0 0 0-543.104 543.104"}),k("path",{fill:"currentColor",d:"M497.472 96.896c22.784 4.672 44.416 9.472 64.896 14.528a256.128 256.128 0 0 0 350.208 350.208c5.056 20.48 9.856 42.112 14.528 64.896A320.128 320.128 0 0 1 497.472 96.896zM108.48 491.904a320.128 320.128 0 0 1 423.616 423.68c-23.04-3.648-44.992-7.424-65.728-11.52a256.128 256.128 0 0 0-346.496-346.432 1736.64 1736.64 0 0 1-11.392-65.728z"})]))}}),tw=ew,nw=T({name:"Basketball",__name:"basketball",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M778.752 788.224a382.464 382.464 0 0 0 116.032-245.632 256.512 256.512 0 0 0-241.728-13.952 762.88 762.88 0 0 1 125.696 259.584zm-55.04 44.224a699.648 699.648 0 0 0-125.056-269.632 256.128 256.128 0 0 0-56.064 331.968 382.72 382.72 0 0 0 181.12-62.336m-254.08 61.248A320.128 320.128 0 0 1 557.76 513.6a715.84 715.84 0 0 0-48.192-48.128 320.128 320.128 0 0 1-379.264 88.384 382.4 382.4 0 0 0 110.144 229.696 382.4 382.4 0 0 0 229.184 110.08zM129.28 481.088a256.128 256.128 0 0 0 331.072-56.448 699.648 699.648 0 0 0-268.8-124.352 382.656 382.656 0 0 0-62.272 180.8m106.56-235.84a762.88 762.88 0 0 1 258.688 125.056 256.512 256.512 0 0 0-13.44-241.088A382.464 382.464 0 0 0 235.84 245.248zm318.08-114.944c40.576 89.536 37.76 193.92-8.448 281.344a779.84 779.84 0 0 1 66.176 66.112 320.832 320.832 0 0 1 282.112-8.128 382.4 382.4 0 0 0-110.144-229.12 382.4 382.4 0 0 0-229.632-110.208zM828.8 828.8a448 448 0 1 1-633.6-633.6 448 448 0 0 1 633.6 633.6"})]))}}),aw=nw,lw=T({name:"BellFilled",__name:"bell-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M640 832a128 128 0 0 1-256 0zm192-64H134.4a38.4 38.4 0 0 1 0-76.8H192V448c0-154.88 110.08-284.16 256.32-313.6a64 64 0 1 1 127.36 0A320.128 320.128 0 0 1 832 448v243.2h57.6a38.4 38.4 0 0 1 0 76.8z"})]))}}),ow=lw,rw=T({name:"Bell",__name:"bell",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 64a64 64 0 0 1 64 64v64H448v-64a64 64 0 0 1 64-64"}),k("path",{fill:"currentColor",d:"M256 768h512V448a256 256 0 1 0-512 0zm256-640a320 320 0 0 1 320 320v384H192V448a320 320 0 0 1 320-320"}),k("path",{fill:"currentColor",d:"M96 768h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32m352 128h128a64 64 0 0 1-128 0"})]))}}),sw=rw,iw=T({name:"Bicycle",__name:"bicycle",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M256 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256m0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384"}),k("path",{fill:"currentColor",d:"M288 672h320q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),k("path",{fill:"currentColor",d:"M768 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256m0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384"}),k("path",{fill:"currentColor",d:"M480 192a32 32 0 0 1 0-64h160a32 32 0 0 1 31.04 24.256l96 384a32 32 0 0 1-62.08 15.488L615.04 192zM96 384a32 32 0 0 1 0-64h128a32 32 0 0 1 30.336 21.888l64 192a32 32 0 1 1-60.672 20.224L200.96 384z"}),k("path",{fill:"currentColor",d:"m373.376 599.808-42.752-47.616 320-288 42.752 47.616z"})]))}}),uw=iw,cw=T({name:"BottomLeft",__name:"bottom-left",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M256 768h416a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V352a32 32 0 0 1 64 0z"}),k("path",{fill:"currentColor",d:"M246.656 822.656a32 32 0 0 1-45.312-45.312l544-544a32 32 0 0 1 45.312 45.312l-544 544z"})]))}}),dw=cw,fw=T({name:"BottomRight",__name:"bottom-right",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M352 768a32 32 0 1 0 0 64h448a32 32 0 0 0 32-32V352a32 32 0 0 0-64 0v416z"}),k("path",{fill:"currentColor",d:"M777.344 822.656a32 32 0 0 0 45.312-45.312l-544-544a32 32 0 0 0-45.312 45.312z"})]))}}),pw=fw,vw=T({name:"Bottom",__name:"bottom",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M544 805.888V168a32 32 0 1 0-64 0v637.888L246.656 557.952a30.72 30.72 0 0 0-45.312 0 35.52 35.52 0 0 0 0 48.064l288 306.048a30.72 30.72 0 0 0 45.312 0l288-306.048a35.52 35.52 0 0 0 0-48 30.72 30.72 0 0 0-45.312 0L544 805.824z"})]))}}),hw=vw,mw=T({name:"Bowl",__name:"bowl",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M714.432 704a351.744 351.744 0 0 0 148.16-256H161.408a351.744 351.744 0 0 0 148.16 256zM288 766.592A415.68 415.68 0 0 1 96 416a32 32 0 0 1 32-32h768a32 32 0 0 1 32 32 415.68 415.68 0 0 1-192 350.592V832a64 64 0 0 1-64 64H352a64 64 0 0 1-64-64zM493.248 320h-90.496l254.4-254.4a32 32 0 1 1 45.248 45.248zm187.328 0h-128l269.696-155.712a32 32 0 0 1 32 55.424zM352 768v64h320v-64z"})]))}}),gw=mw,yw=T({name:"Box",__name:"box",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M317.056 128 128 344.064V896h768V344.064L706.944 128zm-14.528-64h418.944a32 32 0 0 1 24.064 10.88l206.528 236.096A32 32 0 0 1 960 332.032V928a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V332.032a32 32 0 0 1 7.936-21.12L278.4 75.008A32 32 0 0 1 302.528 64z"}),k("path",{fill:"currentColor",d:"M64 320h896v64H64z"}),k("path",{fill:"currentColor",d:"M448 327.872V640h128V327.872L526.08 128h-28.16zM448 64h128l64 256v352a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V320z"})]))}}),_w=yw,bw=T({name:"Briefcase",__name:"briefcase",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M320 320V128h384v192h192v192H128V320zM128 576h768v320H128zm256-256h256.064V192H384z"})]))}}),ww=bw,Cw=T({name:"BrushFilled",__name:"brush-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M608 704v160a96 96 0 0 1-192 0V704h-96a128 128 0 0 1-128-128h640a128 128 0 0 1-128 128zM192 512V128.064h640V512z"})]))}}),Sw=Cw,kw=T({name:"Brush",__name:"brush",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M896 448H128v192a64 64 0 0 0 64 64h192v192h256V704h192a64 64 0 0 0 64-64zm-770.752-64c0-47.552 5.248-90.24 15.552-128 14.72-54.016 42.496-107.392 83.2-160h417.28l-15.36 70.336L736 96h211.2c-24.832 42.88-41.92 96.256-51.2 160a663.872 663.872 0 0 0-6.144 128H960v256a128 128 0 0 1-128 128H704v160a32 32 0 0 1-32 32H352a32 32 0 0 1-32-32V768H192A128 128 0 0 1 64 640V384h61.248zm64 0h636.544c-2.048-45.824.256-91.584 6.848-137.216 4.48-30.848 10.688-59.776 18.688-86.784h-96.64l-221.12 141.248L561.92 160H256.512c-25.856 37.888-43.776 75.456-53.952 112.832-8.768 32.064-13.248 69.12-13.312 111.168z"})]))}}),Ew=kw,xw=T({name:"Burger",__name:"burger",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M160 512a32 32 0 0 0-32 32v64a32 32 0 0 0 30.08 32H864a32 32 0 0 0 32-32v-64a32 32 0 0 0-32-32zm736-58.56A96 96 0 0 1 960 544v64a96 96 0 0 1-51.968 85.312L855.36 833.6a96 96 0 0 1-89.856 62.272H258.496A96 96 0 0 1 168.64 833.6l-52.608-140.224A96 96 0 0 1 64 608v-64a96 96 0 0 1 64-90.56V448a384 384 0 1 1 768 5.44M832 448a320 320 0 0 0-640 0zM512 704H188.352l40.192 107.136a32 32 0 0 0 29.952 20.736h507.008a32 32 0 0 0 29.952-20.736L835.648 704z"})]))}}),Mw=xw,$w=T({name:"Calendar",__name:"calendar",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64"})]))}}),V1=$w,Tw=T({name:"CameraFilled",__name:"camera-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M160 224a64 64 0 0 0-64 64v512a64 64 0 0 0 64 64h704a64 64 0 0 0 64-64V288a64 64 0 0 0-64-64H748.416l-46.464-92.672A64 64 0 0 0 644.736 96H379.328a64 64 0 0 0-57.216 35.392L275.776 224zm352 435.2a115.2 115.2 0 1 0 0-230.4 115.2 115.2 0 0 0 0 230.4m0 140.8a256 256 0 1 1 0-512 256 256 0 0 1 0 512"})]))}}),Ow=Tw,Nw=T({name:"Camera",__name:"camera",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M896 256H128v576h768zm-199.424-64-32.064-64h-304.96l-32 64zM96 192h160l46.336-92.608A64 64 0 0 1 359.552 64h304.96a64 64 0 0 1 57.216 35.328L768.192 192H928a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32m416 512a160 160 0 1 0 0-320 160 160 0 0 0 0 320m0 64a224 224 0 1 1 0-448 224 224 0 0 1 0 448"})]))}}),Iw=Nw,Pw=T({name:"CaretBottom",__name:"caret-bottom",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m192 384 320 384 320-384z"})]))}}),zw=Pw,Aw=T({name:"CaretLeft",__name:"caret-left",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M672 192 288 511.936 672 832z"})]))}}),Vw=Aw,Lw=T({name:"CaretRight",__name:"caret-right",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})]))}}),rd=Lw,Rw=T({name:"CaretTop",__name:"caret-top",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"})]))}}),L1=Rw,Bw=T({name:"Cellphone",__name:"cellphone",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M256 128a64 64 0 0 0-64 64v640a64 64 0 0 0 64 64h512a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64zm0-64h512a128 128 0 0 1 128 128v640a128 128 0 0 1-128 128H256a128 128 0 0 1-128-128V192A128 128 0 0 1 256 64m128 128h256a32 32 0 1 1 0 64H384a32 32 0 0 1 0-64m128 640a64 64 0 1 1 0-128 64 64 0 0 1 0 128"})]))}}),Hw=Bw,Dw=T({name:"ChatDotRound",__name:"chat-dot-round",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m174.72 855.68 135.296-45.12 23.68 11.84C388.096 849.536 448.576 864 512 864c211.84 0 384-166.784 384-352S723.84 160 512 160 128 326.784 128 512c0 69.12 24.96 139.264 70.848 199.232l22.08 28.8-46.272 115.584zm-45.248 82.56A32 32 0 0 1 89.6 896l58.368-145.92C94.72 680.32 64 596.864 64 512 64 299.904 256 96 512 96s448 203.904 448 416-192 416-448 416a461.056 461.056 0 0 1-206.912-48.384l-175.616 58.56z"}),k("path",{fill:"currentColor",d:"M512 563.2a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m192 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m-384 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4"})]))}}),Fw=Dw,Kw=T({name:"ChatDotSquare",__name:"chat-dot-square",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.88zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128z"}),k("path",{fill:"currentColor",d:"M512 499.2a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4zm192 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4zm-384 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4z"})]))}}),Ww=Kw,jw=T({name:"ChatLineRound",__name:"chat-line-round",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m174.72 855.68 135.296-45.12 23.68 11.84C388.096 849.536 448.576 864 512 864c211.84 0 384-166.784 384-352S723.84 160 512 160 128 326.784 128 512c0 69.12 24.96 139.264 70.848 199.232l22.08 28.8-46.272 115.584zm-45.248 82.56A32 32 0 0 1 89.6 896l58.368-145.92C94.72 680.32 64 596.864 64 512 64 299.904 256 96 512 96s448 203.904 448 416-192 416-448 416a461.056 461.056 0 0 1-206.912-48.384l-175.616 58.56z"}),k("path",{fill:"currentColor",d:"M352 576h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32m32-192h256q32 0 32 32t-32 32H384q-32 0-32-32t32-32"})]))}}),qw=jw,Uw=T({name:"ChatLineSquare",__name:"chat-line-square",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M160 826.88 273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128z"}),k("path",{fill:"currentColor",d:"M352 512h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32m0-192h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32"})]))}}),Yw=Uw,Gw=T({name:"ChatRound",__name:"chat-round",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m174.72 855.68 130.048-43.392 23.424 11.392C382.4 849.984 444.352 864 512 864c223.744 0 384-159.872 384-352 0-192.832-159.104-352-384-352S128 319.168 128 512a341.12 341.12 0 0 0 69.248 204.288l21.632 28.8-44.16 110.528zm-45.248 82.56A32 32 0 0 1 89.6 896l56.512-141.248A405.12 405.12 0 0 1 64 512C64 299.904 235.648 96 512 96s448 203.904 448 416-173.44 416-448 416c-79.68 0-150.848-17.152-211.712-46.72l-170.88 56.96z"})]))}}),Xw=Gw,Zw=T({name:"ChatSquare",__name:"chat-square",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.88zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128z"})]))}}),Jw=Zw,Qw=T({name:"Check",__name:"check",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"})]))}}),zo=Qw,e5=T({name:"Checked",__name:"checked",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M704 192h160v736H160V192h160.064v64H704zM311.616 537.28l-45.312 45.248L447.36 763.52l316.8-316.8-45.312-45.184L447.36 673.024zM384 192V96h256v96z"})]))}}),t5=e5,n5=T({name:"Cherry",__name:"cherry",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M261.056 449.6c13.824-69.696 34.88-128.96 63.36-177.728 23.744-40.832 61.12-88.64 112.256-143.872H320a32 32 0 0 1 0-64h384a32 32 0 1 1 0 64H554.752c14.912 39.168 41.344 86.592 79.552 141.76 47.36 68.48 84.8 106.752 106.304 114.304a224 224 0 1 1-84.992 14.784c-22.656-22.912-47.04-53.76-73.92-92.608-38.848-56.128-67.008-105.792-84.352-149.312-55.296 58.24-94.528 107.52-117.76 147.2-23.168 39.744-41.088 88.768-53.568 147.072a224.064 224.064 0 1 1-64.96-1.6zM288 832a160 160 0 1 0 0-320 160 160 0 0 0 0 320m448-64a160 160 0 1 0 0-320 160 160 0 0 0 0 320"})]))}}),a5=n5,l5=T({name:"Chicken",__name:"chicken",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M349.952 716.992 478.72 588.16a106.688 106.688 0 0 1-26.176-19.072 106.688 106.688 0 0 1-19.072-26.176L304.704 671.744c.768 3.072 1.472 6.144 2.048 9.216l2.048 31.936 31.872 1.984c3.136.64 6.208 1.28 9.28 2.112zm57.344 33.152a128 128 0 1 1-216.32 114.432l-1.92-32-32-1.92a128 128 0 1 1 114.432-216.32L416.64 469.248c-2.432-101.44 58.112-239.104 149.056-330.048 107.328-107.328 231.296-85.504 316.8 0 85.44 85.44 107.328 209.408 0 316.8-91.008 90.88-228.672 151.424-330.112 149.056L407.296 750.08zm90.496-226.304c49.536 49.536 233.344-7.04 339.392-113.088 78.208-78.208 63.232-163.072 0-226.304-63.168-63.232-148.032-78.208-226.24 0C504.896 290.496 448.32 474.368 497.792 523.84M244.864 708.928a64 64 0 1 0-59.84 59.84l56.32-3.52zm8.064 127.68a64 64 0 1 0 59.84-59.84l-56.32 3.52-3.52 56.32z"})]))}}),o5=l5,r5=T({name:"ChromeFilled",__name:"chrome-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M938.67 512.01c0-44.59-6.82-87.6-19.54-128H682.67a212.372 212.372 0 0 1 42.67 128c.06 38.71-10.45 76.7-30.42 109.87l-182.91 316.8c235.65-.01 426.66-191.02 426.66-426.67z"}),k("path",{fill:"currentColor",d:"M576.79 401.63a127.92 127.92 0 0 0-63.56-17.6c-22.36-.22-44.39 5.43-63.89 16.38s-35.79 26.82-47.25 46.02a128.005 128.005 0 0 0-2.16 127.44l1.24 2.13a127.906 127.906 0 0 0 46.36 46.61 127.907 127.907 0 0 0 63.38 17.44c22.29.2 44.24-5.43 63.68-16.33a127.94 127.94 0 0 0 47.16-45.79v-.01l1.11-1.92a127.984 127.984 0 0 0 .29-127.46 127.957 127.957 0 0 0-46.36-46.91"}),k("path",{fill:"currentColor",d:"M394.45 333.96A213.336 213.336 0 0 1 512 298.67h369.58A426.503 426.503 0 0 0 512 85.34a425.598 425.598 0 0 0-171.74 35.98 425.644 425.644 0 0 0-142.62 102.22l118.14 204.63a213.397 213.397 0 0 1 78.67-94.21m117.56 604.72H512zm-97.25-236.73a213.284 213.284 0 0 1-89.54-86.81L142.48 298.6c-36.35 62.81-57.13 135.68-57.13 213.42 0 203.81 142.93 374.22 333.95 416.55h.04l118.19-204.71a213.315 213.315 0 0 1-122.77-21.91z"})]))}}),s5=r5,i5=T({name:"CircleCheckFilled",__name:"circle-check-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),R1=i5,u5=T({name:"CircleCheck",__name:"circle-check",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),k("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"})]))}}),wi=u5,c5=T({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),Ci=c5,d5=T({name:"CircleClose",__name:"circle-close",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("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.248z"}),k("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),$a=d5,f5=T({name:"CirclePlusFilled",__name:"circle-plus-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-38.4 409.6H326.4a38.4 38.4 0 1 0 0 76.8h147.2v147.2a38.4 38.4 0 0 0 76.8 0V550.4h147.2a38.4 38.4 0 0 0 0-76.8H550.4V326.4a38.4 38.4 0 1 0-76.8 0v147.2z"})]))}}),p5=f5,v5=T({name:"CirclePlus",__name:"circle-plus",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64"}),k("path",{fill:"currentColor",d:"M480 672V352a32 32 0 1 1 64 0v320a32 32 0 0 1-64 0"}),k("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),h5=v5,m5=T({name:"Clock",__name:"clock",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),k("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"}),k("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"})]))}}),sd=m5,g5=T({name:"CloseBold",__name:"close-bold",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M195.2 195.2a64 64 0 0 1 90.496 0L512 421.504 738.304 195.2a64 64 0 0 1 90.496 90.496L602.496 512 828.8 738.304a64 64 0 0 1-90.496 90.496L512 602.496 285.696 828.8a64 64 0 0 1-90.496-90.496L421.504 512 195.2 285.696a64 64 0 0 1 0-90.496z"})]))}}),y5=g5,_5=T({name:"Close",__name:"close",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("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"})]))}}),Xn=_5,b5=T({name:"Cloudy",__name:"cloudy",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M598.4 831.872H328.192a256 256 0 0 1-34.496-510.528A352 352 0 1 1 598.4 831.872m-271.36-64h272.256a288 288 0 1 0-248.512-417.664L335.04 381.44l-34.816 3.584a192 192 0 0 0 26.88 382.848z"})]))}}),w5=b5,C5=T({name:"CoffeeCup",__name:"coffee-cup",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M768 192a192 192 0 1 1-8 383.808A256.128 256.128 0 0 1 512 768H320A256 256 0 0 1 64 512V160a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 64v256a128 128 0 1 0 0-256M96 832h640a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64m32-640v320a192 192 0 0 0 192 192h192a192 192 0 0 0 192-192V192z"})]))}}),S5=C5,k5=T({name:"Coffee",__name:"coffee",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M822.592 192h14.272a32 32 0 0 1 31.616 26.752l21.312 128A32 32 0 0 1 858.24 384h-49.344l-39.04 546.304A32 32 0 0 1 737.92 960H285.824a32 32 0 0 1-32-29.696L214.912 384H165.76a32 32 0 0 1-31.552-37.248l21.312-128A32 32 0 0 1 187.136 192h14.016l-6.72-93.696A32 32 0 0 1 226.368 64h571.008a32 32 0 0 1 31.936 34.304zm-64.128 0 4.544-64H260.736l4.544 64h493.184m-548.16 128H820.48l-10.688-64H214.208l-10.688 64h6.784m68.736 64 36.544 512H708.16l36.544-512z"})]))}}),E5=k5,x5=T({name:"Coin",__name:"coin",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m161.92 580.736 29.888 58.88C171.328 659.776 160 681.728 160 704c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 615.808 928 657.664 928 704c0 129.728-188.544 224-416 224S96 833.728 96 704c0-46.592 24.32-88.576 65.92-123.264z"}),k("path",{fill:"currentColor",d:"m161.92 388.736 29.888 58.88C171.328 467.84 160 489.792 160 512c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 423.808 928 465.664 928 512c0 129.728-188.544 224-416 224S96 641.728 96 512c0-46.592 24.32-88.576 65.92-123.264z"}),k("path",{fill:"currentColor",d:"M512 544c-227.456 0-416-94.272-416-224S284.544 96 512 96s416 94.272 416 224-188.544 224-416 224m0-64c196.672 0 352-77.696 352-160S708.672 160 512 160s-352 77.696-352 160 155.328 160 352 160"})]))}}),M5=x5,$5=T({name:"ColdDrink",__name:"cold-drink",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M768 64a192 192 0 1 1-69.952 370.88L480 725.376V896h96a32 32 0 1 1 0 64H320a32 32 0 1 1 0-64h96V725.376L76.8 273.536a64 64 0 0 1-12.8-38.4v-10.688a32 32 0 0 1 32-32h71.808l-65.536-83.84a32 32 0 0 1 50.432-39.424l96.256 123.264h337.728A192.064 192.064 0 0 1 768 64M656.896 192.448H800a32 32 0 0 1 32 32v10.624a64 64 0 0 1-12.8 38.4l-80.448 107.2a128 128 0 1 0-81.92-188.16v-.064zm-357.888 64 129.472 165.76a32 32 0 0 1-50.432 39.36l-160.256-205.12H144l304 404.928 304-404.928z"})]))}}),T5=$5,O5=T({name:"CollectionTag",__name:"collection-tag",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M256 128v698.88l196.032-156.864a96 96 0 0 1 119.936 0L768 826.816V128zm-32-64h576a32 32 0 0 1 32 32v797.44a32 32 0 0 1-51.968 24.96L531.968 720a32 32 0 0 0-39.936 0L243.968 918.4A32 32 0 0 1 192 893.44V96a32 32 0 0 1 32-32"})]))}}),N5=O5,I5=T({name:"Collection",__name:"collection",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M192 736h640V128H256a64 64 0 0 0-64 64zm64-672h608a32 32 0 0 1 32 32v672a32 32 0 0 1-32 32H160l-32 57.536V192A128 128 0 0 1 256 64"}),k("path",{fill:"currentColor",d:"M240 800a48 48 0 1 0 0 96h592v-96zm0-64h656v160a64 64 0 0 1-64 64H240a112 112 0 0 1 0-224m144-608v250.88l96-76.8 96 76.8V128zm-64-64h320v381.44a32 32 0 0 1-51.968 24.96L480 384l-108.032 86.4A32 32 0 0 1 320 445.44z"})]))}}),P5=I5,z5=T({name:"Comment",__name:"comment",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M736 504a56 56 0 1 1 0-112 56 56 0 0 1 0 112m-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112m-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112M128 128v640h192v160l224-160h352V128z"})]))}}),A5=z5,V5=T({name:"Compass",__name:"compass",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),k("path",{fill:"currentColor",d:"M725.888 315.008C676.48 428.672 624 513.28 568.576 568.64c-55.424 55.424-139.968 107.904-253.568 157.312a12.8 12.8 0 0 1-16.896-16.832c49.536-113.728 102.016-198.272 157.312-253.632 55.36-55.296 139.904-107.776 253.632-157.312a12.8 12.8 0 0 1 16.832 16.832"})]))}}),L5=V5,R5=T({name:"Connection",__name:"connection",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M640 384v64H448a128 128 0 0 0-128 128v128a128 128 0 0 0 128 128h320a128 128 0 0 0 128-128V576a128 128 0 0 0-64-110.848V394.88c74.56 26.368 128 97.472 128 181.056v128a192 192 0 0 1-192 192H448a192 192 0 0 1-192-192V576a192 192 0 0 1 192-192z"}),k("path",{fill:"currentColor",d:"M384 640v-64h192a128 128 0 0 0 128-128V320a128 128 0 0 0-128-128H256a128 128 0 0 0-128 128v128a128 128 0 0 0 64 110.848v70.272A192.064 192.064 0 0 1 64 448V320a192 192 0 0 1 192-192h320a192 192 0 0 1 192 192v128a192 192 0 0 1-192 192z"})]))}}),B5=R5,H5=T({name:"Coordinate",__name:"coordinate",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M480 512h64v320h-64z"}),k("path",{fill:"currentColor",d:"M192 896h640a64 64 0 0 0-64-64H256a64 64 0 0 0-64 64m64-128h512a128 128 0 0 1 128 128v64H128v-64a128 128 0 0 1 128-128m256-256a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512"})]))}}),D5=H5,F5=T({name:"CopyDocument",__name:"copy-document",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M768 832a128 128 0 0 1-128 128H192A128 128 0 0 1 64 832V384a128 128 0 0 1 128-128v64a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64z"}),k("path",{fill:"currentColor",d:"M384 128a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64zm0-64h448a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H384a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64"})]))}}),K5=F5,W5=T({name:"Cpu",__name:"cpu",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M320 256a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h384a64 64 0 0 0 64-64V320a64 64 0 0 0-64-64zm0-64h384a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128H320a128 128 0 0 1-128-128V320a128 128 0 0 1 128-128"}),k("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m160 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m-320 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m160 896a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32m160 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32m-320 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32M64 512a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m0-160a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m0 320a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m896-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32m0-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32m0 320a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32"})]))}}),j5=W5,q5=T({name:"CreditCard",__name:"credit-card",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M896 324.096c0-42.368-2.496-55.296-9.536-68.48a52.352 52.352 0 0 0-22.144-22.08c-13.12-7.04-26.048-9.536-68.416-9.536H228.096c-42.368 0-55.296 2.496-68.48 9.536a52.352 52.352 0 0 0-22.08 22.144c-7.04 13.12-9.536 26.048-9.536 68.416v375.808c0 42.368 2.496 55.296 9.536 68.48a52.352 52.352 0 0 0 22.144 22.08c13.12 7.04 26.048 9.536 68.416 9.536h567.808c42.368 0 55.296-2.496 68.48-9.536a52.352 52.352 0 0 0 22.08-22.144c7.04-13.12 9.536-26.048 9.536-68.416zm64 0v375.808c0 57.088-5.952 77.76-17.088 98.56-11.136 20.928-27.52 37.312-48.384 48.448-20.864 11.136-41.6 17.088-98.56 17.088H228.032c-57.088 0-77.76-5.952-98.56-17.088a116.288 116.288 0 0 1-48.448-48.384c-11.136-20.864-17.088-41.6-17.088-98.56V324.032c0-57.088 5.952-77.76 17.088-98.56 11.136-20.928 27.52-37.312 48.384-48.448 20.864-11.136 41.6-17.088 98.56-17.088H795.84c57.088 0 77.76 5.952 98.56 17.088 20.928 11.136 37.312 27.52 48.448 48.384 11.136 20.864 17.088 41.6 17.088 98.56z"}),k("path",{fill:"currentColor",d:"M64 320h896v64H64zm0 128h896v64H64zm128 192h256v64H192z"})]))}}),U5=q5,Y5=T({name:"Crop",__name:"crop",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M256 768h672a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V96a32 32 0 0 1 64 0z"}),k("path",{fill:"currentColor",d:"M832 224v704a32 32 0 1 1-64 0V256H96a32 32 0 0 1 0-64h704a32 32 0 0 1 32 32"})]))}}),G5=Y5,X5=T({name:"DArrowLeft",__name:"d-arrow-left",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224zm256 0a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224z"})]))}}),Ra=X5,Z5=T({name:"DArrowRight",__name:"d-arrow-right",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 0 0 1 0-42.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"})]))}}),Ba=Z5,J5=T({name:"DCaret",__name:"d-caret",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m512 128 288 320H224zM224 576h576L512 896z"})]))}}),Q5=J5,e9=T({name:"DataAnalysis",__name:"data-analysis",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m665.216 768 110.848 192h-73.856L591.36 768H433.024L322.176 960H248.32l110.848-192H160a32 32 0 0 1-32-32V192H64a32 32 0 0 1 0-64h896a32 32 0 1 1 0 64h-64v544a32 32 0 0 1-32 32zM832 192H192v512h640zM352 448a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0v-64a32 32 0 0 1 32-32m160-64a32 32 0 0 1 32 32v128a32 32 0 0 1-64 0V416a32 32 0 0 1 32-32m160-64a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V352a32 32 0 0 1 32-32"})]))}}),t9=e9,n9=T({name:"DataBoard",__name:"data-board",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M32 128h960v64H32z"}),k("path",{fill:"currentColor",d:"M192 192v512h640V192zm-64-64h768v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32z"}),k("path",{fill:"currentColor",d:"M322.176 960H248.32l144.64-250.56 55.424 32zm453.888 0h-73.856L576 741.44l55.424-32z"})]))}}),a9=n9,l9=T({name:"DataLine",__name:"data-line",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M359.168 768H160a32 32 0 0 1-32-32V192H64a32 32 0 0 1 0-64h896a32 32 0 1 1 0 64h-64v544a32 32 0 0 1-32 32H665.216l110.848 192h-73.856L591.36 768H433.024L322.176 960H248.32zM832 192H192v512h640zM342.656 534.656a32 32 0 1 1-45.312-45.312L444.992 341.76l125.44 94.08L679.04 300.032a32 32 0 1 1 49.92 39.936L581.632 524.224 451.008 426.24 342.656 534.592z"})]))}}),o9=l9,r9=T({name:"DeleteFilled",__name:"delete-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M352 192V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64H96a32 32 0 0 1 0-64zm64 0h192v-64H416zM192 960a32 32 0 0 1-32-32V256h704v672a32 32 0 0 1-32 32zm224-192a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32m192 0a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32"})]))}}),s9=r9,i9=T({name:"DeleteLocation",__name:"delete-location",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),k("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),k("path",{fill:"currentColor",d:"M384 384h256q32 0 32 32t-32 32H384q-32 0-32-32t32-32"})]))}}),u9=i9,c9=T({name:"Delete",__name:"delete",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),B1=c9,d9=T({name:"Dessert",__name:"dessert",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 416v-48a144 144 0 0 1 168.64-141.888 224.128 224.128 0 0 1 430.72 0A144 144 0 0 1 896 368v48a384 384 0 0 1-352 382.72V896h-64v-97.28A384 384 0 0 1 128 416m287.104-32.064h193.792a143.808 143.808 0 0 1 58.88-132.736 160.064 160.064 0 0 0-311.552 0 143.808 143.808 0 0 1 58.88 132.8zm-72.896 0a72 72 0 1 0-140.48 0h140.48m339.584 0h140.416a72 72 0 1 0-140.48 0zM512 736a320 320 0 0 0 318.4-288.064H193.6A320 320 0 0 0 512 736M384 896.064h256a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64"})]))}}),f9=d9,p9=T({name:"Discount",__name:"discount",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M224 704h576V318.336L552.512 115.84a64 64 0 0 0-81.024 0L224 318.336zm0 64v128h576V768zM593.024 66.304l259.2 212.096A32 32 0 0 1 864 303.168V928a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V303.168a32 32 0 0 1 11.712-24.768l259.2-212.096a128 128 0 0 1 162.112 0"}),k("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"})]))}}),v9=p9,h9=T({name:"DishDot",__name:"dish-dot",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m384.064 274.56.064-50.688A128 128 0 0 1 512.128 96c70.528 0 127.68 57.152 127.68 127.68v50.752A448.192 448.192 0 0 1 955.392 768H68.544A448.192 448.192 0 0 1 384 274.56zM96 832h832a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64m32-128h768a384 384 0 1 0-768 0m447.808-448v-32.32a63.68 63.68 0 0 0-63.68-63.68 64 64 0 0 0-64 63.936V256z"})]))}}),m9=h9,g9=T({name:"Dish",__name:"dish",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M480 257.152V192h-96a32 32 0 0 1 0-64h256a32 32 0 1 1 0 64h-96v65.152A448 448 0 0 1 955.52 768H68.48A448 448 0 0 1 480 257.152M128 704h768a384 384 0 1 0-768 0M96 832h832a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64"})]))}}),y9=g9,_9=T({name:"DocumentAdd",__name:"document-add",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m320 512V448h64v128h128v64H544v128h-64V640H352v-64z"})]))}}),b9=_9,w9=T({name:"DocumentChecked",__name:"document-checked",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320zM832 384H576V128H192v768h640zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m318.4 582.144 180.992-180.992L704.64 510.4 478.4 736.64 320 578.304l45.248-45.312z"})]))}}),C9=w9,S9=T({name:"DocumentCopy",__name:"document-copy",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 320v576h576V320zm-32-64h640a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32M960 96v704a32 32 0 0 1-32 32h-96v-64h64V128H384v64h-64V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32M256 672h320v64H256zm0-192h320v64H256z"})]))}}),k9=S9,E9=T({name:"DocumentDelete",__name:"document-delete",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320zM832 384H576V128H192v768h640zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m308.992 546.304-90.496-90.624 45.248-45.248 90.56 90.496 90.496-90.432 45.248 45.248-90.496 90.56 90.496 90.496-45.248 45.248-90.496-90.496-90.56 90.496-45.248-45.248 90.496-90.496z"})]))}}),x9=E9,M9=T({name:"DocumentRemove",__name:"document-remove",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320zM832 384H576V128H192v768h640zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m192 512h320v64H352z"})]))}}),$9=M9,T9=T({name:"Document",__name:"document",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"})]))}}),H1=T9,O9=T({name:"Download",__name:"download",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64z"})]))}}),N9=O9,I9=T({name:"Drizzling",__name:"drizzling",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m739.328 291.328-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 97.28 78.72 175.936 175.808 175.936h400a192 192 0 0 0 35.776-380.672zM959.552 480a256 256 0 0 1-256 256h-400A239.808 239.808 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 959.552 480M288 800h64v64h-64zm192 0h64v64h-64zm-96 96h64v64h-64zm192 0h64v64h-64zm96-96h64v64h-64z"})]))}}),P9=I9,z9=T({name:"EditPen",__name:"edit-pen",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m199.04 672.64 193.984 112 224-387.968-193.92-112-224 388.032zm-23.872 60.16 32.896 148.288 144.896-45.696zM455.04 229.248l193.92 112 56.704-98.112-193.984-112-56.64 98.112zM104.32 708.8l384-665.024 304.768 175.936L409.152 884.8h.064l-248.448 78.336zm384 254.272v-64h448v64h-448z"})]))}}),A9=z9,V9=T({name:"Edit",__name:"edit",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"}),k("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"})]))}}),L9=V9,R9=T({name:"ElemeFilled",__name:"eleme-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M176 64h672c61.824 0 112 50.176 112 112v672a112 112 0 0 1-112 112H176A112 112 0 0 1 64 848V176c0-61.824 50.176-112 112-112m150.528 173.568c-152.896 99.968-196.544 304.064-97.408 456.96a330.688 330.688 0 0 0 456.96 96.64c9.216-5.888 17.6-11.776 25.152-18.56a18.24 18.24 0 0 0 4.224-24.32L700.352 724.8a47.552 47.552 0 0 0-65.536-14.272A234.56 234.56 0 0 1 310.592 641.6C240 533.248 271.104 387.968 379.456 316.48a234.304 234.304 0 0 1 276.352 15.168c1.664.832 2.56 2.56 3.392 4.224 5.888 8.384 3.328 19.328-5.12 25.216L456.832 489.6a47.552 47.552 0 0 0-14.336 65.472l16 24.384c5.888 8.384 16.768 10.88 25.216 5.056l308.224-199.936a19.584 19.584 0 0 0 6.72-23.488v-.896c-4.992-9.216-10.048-17.6-15.104-26.88-99.968-151.168-304.064-194.88-456.96-95.744zM786.88 504.704l-62.208 40.32c-8.32 5.888-10.88 16.768-4.992 25.216L760 632.32c5.888 8.448 16.768 11.008 25.152 5.12l31.104-20.16a55.36 55.36 0 0 0 16-76.48l-20.224-31.04a19.52 19.52 0 0 0-25.152-5.12z"})]))}}),B9=R9,H9=T({name:"Eleme",__name:"eleme",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M300.032 188.8c174.72-113.28 408-63.36 522.24 109.44 5.76 10.56 11.52 20.16 17.28 30.72v.96a22.4 22.4 0 0 1-7.68 26.88l-352.32 228.48c-9.6 6.72-22.08 3.84-28.8-5.76l-18.24-27.84a54.336 54.336 0 0 1 16.32-74.88l225.6-146.88c9.6-6.72 12.48-19.2 5.76-28.8-.96-1.92-1.92-3.84-3.84-4.8a267.84 267.84 0 0 0-315.84-17.28c-123.84 81.6-159.36 247.68-78.72 371.52a268.096 268.096 0 0 0 370.56 78.72 54.336 54.336 0 0 1 74.88 16.32l17.28 26.88c5.76 9.6 3.84 21.12-4.8 27.84-8.64 7.68-18.24 14.4-28.8 21.12a377.92 377.92 0 0 1-522.24-110.4c-113.28-174.72-63.36-408 111.36-522.24zm526.08 305.28a22.336 22.336 0 0 1 28.8 5.76l23.04 35.52a63.232 63.232 0 0 1-18.24 87.36l-35.52 23.04c-9.6 6.72-22.08 3.84-28.8-5.76l-46.08-71.04c-6.72-9.6-3.84-22.08 5.76-28.8l71.04-46.08z"})]))}}),D9=H9,F9=T({name:"ElementPlus",__name:"element-plus",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M839.7 734.7c0 33.3-17.9 41-17.9 41S519.7 949.8 499.2 960c-10.2 5.1-20.5 5.1-30.7 0 0 0-314.9-184.3-325.1-192-5.1-5.1-10.2-12.8-12.8-20.5V368.6c0-17.9 20.5-28.2 20.5-28.2L466 158.6c12.8-5.1 25.6-5.1 38.4 0 0 0 279 161.3 309.8 179.2 17.9 7.7 28.2 25.6 25.6 46.1-.1-5-.1 317.5-.1 350.8M714.2 371.2c-64-35.8-217.6-125.4-217.6-125.4-7.7-5.1-20.5-5.1-30.7 0L217.6 389.1s-17.9 10.2-17.9 23v297c0 5.1 5.1 12.8 7.7 17.9 7.7 5.1 256 148.5 256 148.5 7.7 5.1 17.9 5.1 25.6 0 15.4-7.7 250.9-145.9 250.9-145.9s12.8-5.1 12.8-30.7v-74.2l-276.5 169v-64c0-17.9 7.7-30.7 20.5-46.1L745 535c5.1-7.7 10.2-20.5 10.2-30.7v-66.6l-279 169v-69.1c0-15.4 5.1-30.7 17.9-38.4l220.1-128zM919 135.7c0-5.1-5.1-7.7-7.7-7.7h-58.9V66.6c0-5.1-5.1-5.1-10.2-5.1l-30.7 5.1c-5.1 0-5.1 2.6-5.1 5.1V128h-56.3c-5.1 0-5.1 5.1-7.7 5.1v38.4h69.1v64c0 5.1 5.1 5.1 10.2 5.1l30.7-5.1c5.1 0 5.1-2.6 5.1-5.1v-56.3h64l-2.5-38.4z"})]))}}),K9=F9,W9=T({name:"Expand",__name:"expand",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 192h768v128H128zm0 256h512v128H128zm0 256h768v128H128zm576-352 192 160-192 128z"})]))}}),j9=W9,q9=T({name:"Failed",__name:"failed",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m557.248 608 135.744-135.744-45.248-45.248-135.68 135.744-135.808-135.68-45.248 45.184L466.752 608l-135.68 135.68 45.184 45.312L512 653.248l135.744 135.744 45.248-45.248L557.312 608zM704 192h160v736H160V192h160v64h384zm-320 0V96h256v96z"})]))}}),U9=q9,Y9=T({name:"Female",__name:"female",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 640a256 256 0 1 0 0-512 256 256 0 0 0 0 512m0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640"}),k("path",{fill:"currentColor",d:"M512 640q32 0 32 32v256q0 32-32 32t-32-32V672q0-32 32-32"}),k("path",{fill:"currentColor",d:"M352 800h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32"})]))}}),G9=Y9,X9=T({name:"Files",__name:"files",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 384v448h768V384zm-32-64h832a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32m64-128h704v64H160zm96-128h512v64H256z"})]))}}),Z9=X9,J9=T({name:"Film",__name:"film",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M160 160v704h704V160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32"}),k("path",{fill:"currentColor",d:"M320 288V128h64v352h256V128h64v160h160v64H704v128h160v64H704v128h160v64H704v160h-64V544H384v352h-64V736H128v-64h192V544H128v-64h192V352H128v-64z"})]))}}),Q9=J9,eC=T({name:"Filter",__name:"filter",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M384 523.392V928a32 32 0 0 0 46.336 28.608l192-96A32 32 0 0 0 640 832V523.392l280.768-343.104a32 32 0 1 0-49.536-40.576l-288 352A32 32 0 0 0 576 512v300.224l-128 64V512a32 32 0 0 0-7.232-20.288L195.52 192H704a32 32 0 1 0 0-64H128a32 32 0 0 0-24.768 52.288z"})]))}}),tC=eC,nC=T({name:"Finished",__name:"finished",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M280.768 753.728 691.456 167.04a32 32 0 1 1 52.416 36.672L314.24 817.472a32 32 0 0 1-45.44 7.296l-230.4-172.8a32 32 0 0 1 38.4-51.2l203.968 152.96zM736 448a32 32 0 1 1 0-64h192a32 32 0 1 1 0 64zM608 640a32 32 0 0 1 0-64h319.936a32 32 0 1 1 0 64zM480 832a32 32 0 1 1 0-64h447.936a32 32 0 1 1 0 64z"})]))}}),aC=nC,lC=T({name:"FirstAidKit",__name:"first-aid-kit",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M192 256a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V320a64 64 0 0 0-64-64zm0-64h640a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H192A128 128 0 0 1 64 768V320a128 128 0 0 1 128-128"}),k("path",{fill:"currentColor",d:"M544 512h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96v-96a32 32 0 0 1 64 0zM352 128v64h320v-64zm-32-64h384a32 32 0 0 1 32 32v128a32 32 0 0 1-32 32H320a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"})]))}}),oC=lC,rC=T({name:"Flag",__name:"flag",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M288 128h608L736 384l160 256H288v320h-96V64h96z"})]))}}),sC=rC,iC=T({name:"Fold",__name:"fold",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M896 192H128v128h768zm0 256H384v128h512zm0 256H128v128h768zM320 384 128 512l192 128z"})]))}}),uC=iC,cC=T({name:"FolderAdd",__name:"folder-add",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m384 416V416h64v128h128v64H544v128h-64V608H352v-64z"})]))}}),dC=cC,fC=T({name:"FolderChecked",__name:"folder-checked",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m414.08 502.144 180.992-180.992L736.32 494.4 510.08 720.64l-158.4-158.336 45.248-45.312z"})]))}}),pC=fC,vC=T({name:"FolderDelete",__name:"folder-delete",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m370.752 448-90.496-90.496 45.248-45.248L512 530.752l90.496-90.496 45.248 45.248L557.248 576l90.496 90.496-45.248 45.248L512 621.248l-90.496 90.496-45.248-45.248z"})]))}}),hC=vC,mC=T({name:"FolderOpened",__name:"folder-opened",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M878.08 448H241.92l-96 384h636.16l96-384zM832 384v-64H485.76L357.504 192H128v448l57.92-231.744A32 32 0 0 1 216.96 384zm-24.96 512H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h287.872l128.384 128H864a32 32 0 0 1 32 32v96h23.04a32 32 0 0 1 31.04 39.744l-112 448A32 32 0 0 1 807.04 896"})]))}}),gC=mC,yC=T({name:"FolderRemove",__name:"folder-remove",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m256 416h320v64H352z"})]))}}),_C=yC,bC=T({name:"Folder",__name:"folder",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32"})]))}}),wC=bC,CC=T({name:"Food",__name:"food",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 352.576V352a288 288 0 0 1 491.072-204.224 192 192 0 0 1 274.24 204.48 64 64 0 0 1 57.216 74.24C921.6 600.512 850.048 710.656 736 756.992V800a96 96 0 0 1-96 96H384a96 96 0 0 1-96-96v-43.008c-114.048-46.336-185.6-156.48-214.528-330.496A64 64 0 0 1 128 352.64zm64-.576h64a160 160 0 0 1 320 0h64a224 224 0 0 0-448 0m128 0h192a96 96 0 0 0-192 0m439.424 0h68.544A128.256 128.256 0 0 0 704 192c-15.36 0-29.952 2.688-43.52 7.616 11.328 18.176 20.672 37.76 27.84 58.304A64.128 64.128 0 0 1 759.424 352M672 768H352v32a32 32 0 0 0 32 32h256a32 32 0 0 0 32-32zm-342.528-64h365.056c101.504-32.64 165.76-124.928 192.896-288H136.576c27.136 163.072 91.392 255.36 192.896 288"})]))}}),SC=CC,kC=T({name:"Football",__name:"football",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896m0-64a384 384 0 1 0 0-768 384 384 0 0 0 0 768"}),k("path",{fill:"currentColor",d:"M186.816 268.288c16-16.384 31.616-31.744 46.976-46.08 17.472 30.656 39.808 58.112 65.984 81.28l-32.512 56.448a385.984 385.984 0 0 1-80.448-91.648zm653.696-5.312a385.92 385.92 0 0 1-83.776 96.96l-32.512-56.384a322.923 322.923 0 0 0 68.48-85.76c15.552 14.08 31.488 29.12 47.808 45.184zM465.984 445.248l11.136-63.104a323.584 323.584 0 0 0 69.76 0l11.136 63.104a387.968 387.968 0 0 1-92.032 0m-62.72-12.8A381.824 381.824 0 0 1 320 396.544l32-55.424a319.885 319.885 0 0 0 62.464 27.712l-11.2 63.488zm300.8-35.84a381.824 381.824 0 0 1-83.328 35.84l-11.2-63.552A319.885 319.885 0 0 0 672 341.184l32 55.424zm-520.768 364.8a385.92 385.92 0 0 1 83.968-97.28l32.512 56.32c-26.88 23.936-49.856 52.352-67.52 84.032-16-13.44-32.32-27.712-48.96-43.072zm657.536.128a1442.759 1442.759 0 0 1-49.024 43.072 321.408 321.408 0 0 0-67.584-84.16l32.512-56.32c33.216 27.456 61.696 60.352 84.096 97.408zM465.92 578.752a387.968 387.968 0 0 1 92.032 0l-11.136 63.104a323.584 323.584 0 0 0-69.76 0zm-62.72 12.8 11.2 63.552a319.885 319.885 0 0 0-62.464 27.712L320 627.392a381.824 381.824 0 0 1 83.264-35.84zm300.8 35.84-32 55.424a318.272 318.272 0 0 0-62.528-27.712l11.2-63.488c29.44 8.64 57.28 20.736 83.264 35.776z"})]))}}),EC=kC,xC=T({name:"ForkSpoon",__name:"fork-spoon",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M256 410.304V96a32 32 0 0 1 64 0v314.304a96 96 0 0 0 64-90.56V96a32 32 0 0 1 64 0v223.744a160 160 0 0 1-128 156.8V928a32 32 0 1 1-64 0V476.544a160 160 0 0 1-128-156.8V96a32 32 0 0 1 64 0v223.744a96 96 0 0 0 64 90.56zM672 572.48C581.184 552.128 512 446.848 512 320c0-141.44 85.952-256 192-256s192 114.56 192 256c0 126.848-69.184 232.128-160 252.48V928a32 32 0 1 1-64 0zM704 512c66.048 0 128-82.56 128-192s-61.952-192-128-192-128 82.56-128 192 61.952 192 128 192"})]))}}),MC=xC,$C=T({name:"Fries",__name:"fries",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M608 224v-64a32 32 0 0 0-64 0v336h26.88A64 64 0 0 0 608 484.096zm101.12 160A64 64 0 0 0 672 395.904V384h64V224a32 32 0 1 0-64 0v160zm74.88 0a92.928 92.928 0 0 1 91.328 110.08l-60.672 323.584A96 96 0 0 1 720.32 896H303.68a96 96 0 0 1-94.336-78.336L148.672 494.08A92.928 92.928 0 0 1 240 384h-16V224a96 96 0 0 1 188.608-25.28A95.744 95.744 0 0 1 480 197.44V160a96 96 0 0 1 188.608-25.28A96 96 0 0 1 800 224v160zM670.784 512a128 128 0 0 1-99.904 48H453.12a128 128 0 0 1-99.84-48H352v-1.536a128.128 128.128 0 0 1-9.984-14.976L314.88 448H240a28.928 28.928 0 0 0-28.48 34.304L241.088 640h541.824l29.568-157.696A28.928 28.928 0 0 0 784 448h-74.88l-27.136 47.488A132.405 132.405 0 0 1 672 510.464V512zM480 288a32 32 0 0 0-64 0v196.096A64 64 0 0 0 453.12 496H480zm-128 96V224a32 32 0 0 0-64 0v160zh-37.12A64 64 0 0 1 352 395.904zm-98.88 320 19.072 101.888A32 32 0 0 0 303.68 832h416.64a32 32 0 0 0 31.488-26.112L770.88 704z"})]))}}),TC=$C,OC=T({name:"FullScreen",__name:"full-screen",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"})]))}}),D1=OC,NC=T({name:"GobletFull",__name:"goblet-full",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M256 320h512c0-78.592-12.608-142.4-36.928-192h-434.24C269.504 192.384 256 256.256 256 320m503.936 64H264.064a256.128 256.128 0 0 0 495.872 0zM544 638.4V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.4A320 320 0 0 1 192 320c0-85.632 21.312-170.944 64-256h512c42.688 64.32 64 149.632 64 256a320 320 0 0 1-288 318.4"})]))}}),IC=NC,PC=T({name:"GobletSquareFull",__name:"goblet-square-full",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M256 270.912c10.048 6.72 22.464 14.912 28.992 18.624a220.16 220.16 0 0 0 114.752 30.72c30.592 0 49.408-9.472 91.072-41.152l.64-.448c52.928-40.32 82.368-55.04 132.288-54.656 55.552.448 99.584 20.8 142.72 57.408l1.536 1.28V128H256v142.912zm.96 76.288C266.368 482.176 346.88 575.872 512 576c157.44.064 237.952-85.056 253.248-209.984a952.32 952.32 0 0 1-40.192-35.712c-32.704-27.776-63.36-41.92-101.888-42.24-31.552-.256-50.624 9.28-93.12 41.6l-.576.448c-52.096 39.616-81.024 54.208-129.792 54.208-54.784 0-100.48-13.376-142.784-37.056zM480 638.848C250.624 623.424 192 442.496 192 319.68V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v224c0 122.816-58.624 303.68-288 318.912V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96z"})]))}}),zC=PC,AC=T({name:"GobletSquare",__name:"goblet-square",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M544 638.912V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.848C250.624 623.424 192 442.496 192 319.68V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v224c0 122.816-58.624 303.68-288 318.912M256 319.68c0 149.568 80 256.192 256 256.256C688.128 576 768 469.568 768 320V128H256z"})]))}}),VC=AC,LC=T({name:"Goblet",__name:"goblet",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M544 638.4V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.4A320 320 0 0 1 192 320c0-85.632 21.312-170.944 64-256h512c42.688 64.32 64 149.632 64 256a320 320 0 0 1-288 318.4M256 320a256 256 0 1 0 512 0c0-78.592-12.608-142.4-36.928-192h-434.24C269.504 192.384 256 256.256 256 320"})]))}}),RC=LC,BC=T({name:"GoldMedal",__name:"gold-medal",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m772.13 452.84 53.86-351.81c1.32-10.01-1.17-18.68-7.49-26.02S804.35 64 795.01 64H228.99v-.01h-.06c-9.33 0-17.15 3.67-23.49 11.01s-8.83 16.01-7.49 26.02l53.87 351.89C213.54 505.73 193.59 568.09 192 640c2 90.67 33.17 166.17 93.5 226.5S421.33 957.99 512 960c90.67-2 166.17-33.17 226.5-93.5 60.33-60.34 91.49-135.83 93.5-226.5-1.59-71.94-21.56-134.32-59.87-187.16zM640.01 128h117.02l-39.01 254.02c-20.75-10.64-40.74-19.73-59.94-27.28-5.92-3-11.95-5.8-18.08-8.41V128h.01zM576 128v198.76c-13.18-2.58-26.74-4.43-40.67-5.55-8.07-.8-15.85-1.2-23.33-1.2-10.54 0-21.09.66-31.64 1.96a359.844 359.844 0 0 0-32.36 4.79V128zm-192 0h.04v218.3c-6.22 2.66-12.34 5.5-18.36 8.56-19.13 7.54-39.02 16.6-59.66 27.16L267.01 128zm308.99 692.99c-48 48-108.33 73-180.99 75.01-72.66-2.01-132.99-27.01-180.99-75.01S258.01 712.66 256 640c2.01-72.66 27.01-132.99 75.01-180.99 19.67-19.67 41.41-35.47 65.22-47.41 38.33-15.04 71.15-23.92 98.44-26.65 5.07-.41 10.2-.7 15.39-.88.63-.01 1.28-.03 1.91-.03.66 0 1.35.03 2.02.04 5.11.17 10.15.46 15.13.86 27.4 2.71 60.37 11.65 98.91 26.79 23.71 11.93 45.36 27.69 64.96 47.29 48 48 73 108.33 75.01 180.99-2.01 72.65-27.01 132.98-75.01 180.98z"}),k("path",{fill:"currentColor",d:"M544 480H416v64h64v192h-64v64h192v-64h-64z"})]))}}),HC=BC,DC=T({name:"GoodsFilled",__name:"goods-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M192 352h640l64 544H128zm128 224h64V448h-64zm320 0h64V448h-64zM384 288h-64a192 192 0 1 1 384 0h-64a128 128 0 1 0-256 0"})]))}}),FC=DC,KC=T({name:"Goods",__name:"goods",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M320 288v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4h131.072a32 32 0 0 1 31.808 28.8l57.6 576a32 32 0 0 1-31.808 35.2H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320zm64 0h256v-22.336C640 189.248 582.272 128 512 128c-70.272 0-128 61.248-128 137.664v22.4zm-64 64H217.92l-51.2 512h690.56l-51.264-512H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0z"})]))}}),WC=KC,jC=T({name:"Grape",__name:"grape",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M544 195.2a160 160 0 0 1 96 60.8 160 160 0 1 1 146.24 254.976 160 160 0 0 1-128 224 160 160 0 1 1-292.48 0 160 160 0 0 1-128-224A160 160 0 1 1 384 256a160 160 0 0 1 96-60.8V128h-64a32 32 0 0 1 0-64h192a32 32 0 0 1 0 64h-64zM512 448a96 96 0 1 0 0-192 96 96 0 0 0 0 192m-256 0a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128 224a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128 224a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128-224a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128-224a96 96 0 1 0 0-192 96 96 0 0 0 0 192"})]))}}),qC=jC,UC=T({name:"Grid",__name:"grid",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M640 384v256H384V384zm64 0h192v256H704zm-64 512H384V704h256zm64 0V704h192v192zm-64-768v192H384V128zm64 0h192v192H704zM320 384v256H128V384zm0 512H128V704h192zm0-768v192H128V128z"})]))}}),YC=UC,GC=T({name:"Guide",__name:"guide",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M640 608h-64V416h64zm0 160v160a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V768h64v128h128V768zM384 608V416h64v192zm256-352h-64V128H448v128h-64V96a32 32 0 0 1 32-32h192a32 32 0 0 1 32 32z"}),k("path",{fill:"currentColor",d:"m220.8 256-71.232 80 71.168 80H768V256H220.8zm-14.4-64H800a32 32 0 0 1 32 32v224a32 32 0 0 1-32 32H206.4a32 32 0 0 1-23.936-10.752l-99.584-112a32 32 0 0 1 0-42.496l99.584-112A32 32 0 0 1 206.4 192m678.784 496-71.104 80H266.816V608h547.2l71.168 80zm-56.768-144H234.88a32 32 0 0 0-32 32v224a32 32 0 0 0 32 32h593.6a32 32 0 0 0 23.936-10.752l99.584-112a32 32 0 0 0 0-42.496l-99.584-112A32 32 0 0 0 828.48 544z"})]))}}),XC=GC,ZC=T({name:"Handbag",__name:"handbag",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M887.01 264.99c-6-5.99-13.67-8.99-23.01-8.99H704c-1.34-54.68-20.01-100.01-56-136s-81.32-54.66-136-56c-54.68 1.34-100.01 20.01-136 56s-54.66 81.32-56 136H160c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.67-8.99 23.01v640c0 9.35 2.99 17.02 8.99 23.01S150.66 960 160 960h704c9.35 0 17.02-2.99 23.01-8.99S896 937.34 896 928V288c0-9.35-2.99-17.02-8.99-23.01M421.5 165.5c24.32-24.34 54.49-36.84 90.5-37.5 35.99.68 66.16 13.18 90.5 37.5s36.84 54.49 37.5 90.5H384c.68-35.99 13.18-66.16 37.5-90.5M832 896H192V320h128v128h64V320h256v128h64V320h128z"})]))}}),JC=ZC,QC=T({name:"Headset",__name:"headset",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M896 529.152V512a384 384 0 1 0-768 0v17.152A128 128 0 0 1 320 640v128a128 128 0 1 1-256 0V512a448 448 0 1 1 896 0v256a128 128 0 1 1-256 0V640a128 128 0 0 1 192-110.848M896 640a64 64 0 0 0-128 0v128a64 64 0 0 0 128 0zm-768 0v128a64 64 0 0 0 128 0V640a64 64 0 1 0-128 0"})]))}}),e7=QC,t7=T({name:"HelpFilled",__name:"help-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M926.784 480H701.312A192.512 192.512 0 0 0 544 322.688V97.216A416.064 416.064 0 0 1 926.784 480m0 64A416.064 416.064 0 0 1 544 926.784V701.312A192.512 192.512 0 0 0 701.312 544zM97.28 544h225.472A192.512 192.512 0 0 0 480 701.312v225.472A416.064 416.064 0 0 1 97.216 544zm0-64A416.064 416.064 0 0 1 480 97.216v225.472A192.512 192.512 0 0 0 322.688 480H97.216z"})]))}}),n7=t7,a7=T({name:"Help",__name:"help",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m759.936 805.248-90.944-91.008A254.912 254.912 0 0 1 512 768a254.912 254.912 0 0 1-156.992-53.76l-90.944 91.008A382.464 382.464 0 0 0 512 896c94.528 0 181.12-34.176 247.936-90.752m45.312-45.312A382.464 382.464 0 0 0 896 512c0-94.528-34.176-181.12-90.752-247.936l-91.008 90.944C747.904 398.4 768 452.864 768 512c0 59.136-20.096 113.6-53.76 156.992l91.008 90.944zm-45.312-541.184A382.464 382.464 0 0 0 512 128c-94.528 0-181.12 34.176-247.936 90.752l90.944 91.008A254.912 254.912 0 0 1 512 256c59.136 0 113.6 20.096 156.992 53.76l90.944-91.008zm-541.184 45.312A382.464 382.464 0 0 0 128 512c0 94.528 34.176 181.12 90.752 247.936l91.008-90.944A254.912 254.912 0 0 1 256 512c0-59.136 20.096-113.6 53.76-156.992zm417.28 394.496a194.56 194.56 0 0 0 22.528-22.528C686.912 602.56 704 559.232 704 512a191.232 191.232 0 0 0-67.968-146.56A191.296 191.296 0 0 0 512 320a191.232 191.232 0 0 0-146.56 67.968C337.088 421.44 320 464.768 320 512a191.232 191.232 0 0 0 67.968 146.56C421.44 686.912 464.768 704 512 704c47.296 0 90.56-17.088 124.032-45.44zM512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),l7=a7,o7=T({name:"Hide",__name:"hide",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("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.2zM889.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"}),k("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"})]))}}),F1=o7,r7=T({name:"Histogram",__name:"histogram",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M416 896V128h192v768zm-288 0V448h192v448zm576 0V320h192v576z"})]))}}),s7=r7,i7=T({name:"HomeFilled",__name:"home-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 128 128 447.936V896h255.936V640H640v256h255.936V447.936z"})]))}}),u7=i7,c7=T({name:"HotWater",__name:"hot-water",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M273.067 477.867h477.866V409.6H273.067zm0 68.266v51.2A187.733 187.733 0 0 0 460.8 785.067h102.4a187.733 187.733 0 0 0 187.733-187.734v-51.2H273.067zm-34.134-204.8h546.134a34.133 34.133 0 0 1 34.133 34.134v221.866a256 256 0 0 1-256 256H460.8a256 256 0 0 1-256-256V375.467a34.133 34.133 0 0 1 34.133-34.134zM512 34.133a34.133 34.133 0 0 1 34.133 34.134v170.666a34.133 34.133 0 0 1-68.266 0V68.267A34.133 34.133 0 0 1 512 34.133zM375.467 102.4a34.133 34.133 0 0 1 34.133 34.133v102.4a34.133 34.133 0 0 1-68.267 0v-102.4a34.133 34.133 0 0 1 34.134-34.133m273.066 0a34.133 34.133 0 0 1 34.134 34.133v102.4a34.133 34.133 0 1 1-68.267 0v-102.4a34.133 34.133 0 0 1 34.133-34.133M170.667 921.668h682.666a34.133 34.133 0 1 1 0 68.267H170.667a34.133 34.133 0 1 1 0-68.267z"})]))}}),d7=c7,f7=T({name:"House",__name:"house",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M192 413.952V896h640V413.952L512 147.328zM139.52 374.4l352-293.312a32 32 0 0 1 40.96 0l352 293.312A32 32 0 0 1 896 398.976V928a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V398.976a32 32 0 0 1 11.52-24.576"})]))}}),p7=f7,v7=T({name:"IceCreamRound",__name:"ice-cream-round",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m308.352 489.344 226.304 226.304a32 32 0 0 0 45.248 0L783.552 512A192 192 0 1 0 512 240.448L308.352 444.16a32 32 0 0 0 0 45.248zm135.744 226.304L308.352 851.392a96 96 0 0 1-135.744-135.744l135.744-135.744-45.248-45.248a96 96 0 0 1 0-135.808L466.752 195.2A256 256 0 0 1 828.8 557.248L625.152 760.96a96 96 0 0 1-135.808 0l-45.248-45.248zM398.848 670.4 353.6 625.152 217.856 760.896a32 32 0 0 0 45.248 45.248zm248.96-384.64a32 32 0 0 1 0 45.248L466.624 512a32 32 0 1 1-45.184-45.248l180.992-181.056a32 32 0 0 1 45.248 0zm90.496 90.496a32 32 0 0 1 0 45.248L557.248 602.496A32 32 0 1 1 512 557.248l180.992-180.992a32 32 0 0 1 45.312 0z"})]))}}),h7=v7,m7=T({name:"IceCreamSquare",__name:"ice-cream-square",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M416 640h256a32 32 0 0 0 32-32V160a32 32 0 0 0-32-32H352a32 32 0 0 0-32 32v448a32 32 0 0 0 32 32zm192 64v160a96 96 0 0 1-192 0V704h-64a96 96 0 0 1-96-96V160a96 96 0 0 1 96-96h320a96 96 0 0 1 96 96v448a96 96 0 0 1-96 96zm-64 0h-64v160a32 32 0 1 0 64 0z"})]))}}),g7=m7,y7=T({name:"IceCream",__name:"ice-cream",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128.64 448a208 208 0 0 1 193.536-191.552 224 224 0 0 1 445.248 15.488A208.128 208.128 0 0 1 894.784 448H896L548.8 983.68a32 32 0 0 1-53.248.704L128 448zm64.256 0h286.208a144 144 0 0 0-286.208 0zm351.36 0h286.272a144 144 0 0 0-286.272 0zm-294.848 64 271.808 396.608L778.24 512H249.408zM511.68 352.64a207.872 207.872 0 0 1 189.184-96.192 160 160 0 0 0-314.752 5.632c52.608 12.992 97.28 46.08 125.568 90.56"})]))}}),_7=y7,b7=T({name:"IceDrink",__name:"ice-drink",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 448v128h239.68l16.064-128zm-64 0H256.256l16.064 128H448zm64-255.36V384h247.744A256.128 256.128 0 0 0 512 192.64m-64 8.064A256.448 256.448 0 0 0 264.256 384H448zm64-72.064A320.128 320.128 0 0 1 825.472 384H896a32 32 0 1 1 0 64h-64v1.92l-56.96 454.016A64 64 0 0 1 711.552 960H312.448a64 64 0 0 1-63.488-56.064L192 449.92V448h-64a32 32 0 0 1 0-64h70.528A320.384 320.384 0 0 1 448 135.04V96a96 96 0 0 1 96-96h128a32 32 0 1 1 0 64H544a32 32 0 0 0-32 32zM743.68 640H280.32l32.128 256h399.104z"})]))}}),w7=b7,C7=T({name:"IceTea",__name:"ice-tea",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M197.696 259.648a320.128 320.128 0 0 1 628.608 0A96 96 0 0 1 896 352v64a96 96 0 0 1-71.616 92.864l-49.408 395.072A64 64 0 0 1 711.488 960H312.512a64 64 0 0 1-63.488-56.064l-49.408-395.072A96 96 0 0 1 128 416v-64a96 96 0 0 1 69.696-92.352M264.064 256h495.872a256.128 256.128 0 0 0-495.872 0m495.424 256H264.512l48 384h398.976zM224 448h576a32 32 0 0 0 32-32v-64a32 32 0 0 0-32-32H224a32 32 0 0 0-32 32v64a32 32 0 0 0 32 32m160 192h64v64h-64zm192 64h64v64h-64zm-128 64h64v64h-64zm64-192h64v64h-64z"})]))}}),S7=C7,k7=T({name:"InfoFilled",__name:"info-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),Si=k7,E7=T({name:"Iphone",__name:"iphone",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M224 768v96.064a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V768zm0-64h576V160a64 64 0 0 0-64-64H288a64 64 0 0 0-64 64zm32 288a96 96 0 0 1-96-96V128a96 96 0 0 1 96-96h512a96 96 0 0 1 96 96v768a96 96 0 0 1-96 96zm304-144a48 48 0 1 1-96 0 48 48 0 0 1 96 0"})]))}}),x7=E7,M7=T({name:"Key",__name:"key",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M448 456.064V96a32 32 0 0 1 32-32.064L672 64a32 32 0 0 1 0 64H512v128h160a32 32 0 0 1 0 64H512v128a256 256 0 1 1-64 8.064M512 896a192 192 0 1 0 0-384 192 192 0 0 0 0 384"})]))}}),$7=M7,T7=T({name:"KnifeFork",__name:"knife-fork",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M256 410.56V96a32 32 0 0 1 64 0v314.56A96 96 0 0 0 384 320V96a32 32 0 0 1 64 0v224a160 160 0 0 1-128 156.8V928a32 32 0 1 1-64 0V476.8A160 160 0 0 1 128 320V96a32 32 0 0 1 64 0v224a96 96 0 0 0 64 90.56m384-250.24V544h126.72c-3.328-78.72-12.928-147.968-28.608-207.744-14.336-54.528-46.848-113.344-98.112-175.872zM640 608v320a32 32 0 1 1-64 0V64h64c85.312 89.472 138.688 174.848 160 256 21.312 81.152 32 177.152 32 288z"})]))}}),O7=T7,N7=T({name:"Lightning",__name:"lightning",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M288 671.36v64.128A239.808 239.808 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 736 734.016v-64.768a192 192 0 0 0 3.328-377.92l-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 91.968 70.464 167.36 160.256 175.232z"}),k("path",{fill:"currentColor",d:"M416 736a32 32 0 0 1-27.776-47.872l128-224a32 32 0 1 1 55.552 31.744L471.168 672H608a32 32 0 0 1 27.776 47.872l-128 224a32 32 0 1 1-55.68-31.744L552.96 736z"})]))}}),I7=N7,P7=T({name:"Link",__name:"link",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M715.648 625.152 670.4 579.904l90.496-90.56c75.008-74.944 85.12-186.368 22.656-248.896-62.528-62.464-173.952-52.352-248.96 22.656L444.16 353.6l-45.248-45.248 90.496-90.496c100.032-99.968 251.968-110.08 339.456-22.656 87.488 87.488 77.312 239.424-22.656 339.456l-90.496 90.496zm-90.496 90.496-90.496 90.496C434.624 906.112 282.688 916.224 195.2 828.8c-87.488-87.488-77.312-239.424 22.656-339.456l90.496-90.496 45.248 45.248-90.496 90.56c-75.008 74.944-85.12 186.368-22.656 248.896 62.528 62.464 173.952 52.352 248.96-22.656l90.496-90.496zm0-362.048 45.248 45.248L398.848 670.4 353.6 625.152z"})]))}}),z7=P7,A7=T({name:"List",__name:"list",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M704 192h160v736H160V192h160v64h384zM288 512h448v-64H288zm0 256h448v-64H288zm96-576V96h256v96z"})]))}}),V7=A7,L7=T({name:"Loading",__name:"loading",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.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 0m-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"})]))}}),ca=L7,R7=T({name:"LocationFilled",__name:"location-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 928c23.936 0 117.504-68.352 192.064-153.152C803.456 661.888 864 535.808 864 416c0-189.632-155.84-320-352-320S160 226.368 160 416c0 120.32 60.544 246.4 159.936 359.232C394.432 859.84 488 928 512 928m0-435.2a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 140.8a204.8 204.8 0 1 1 0-409.6 204.8 204.8 0 0 1 0 409.6"})]))}}),B7=R7,H7=T({name:"LocationInformation",__name:"location-information",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),k("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),k("path",{fill:"currentColor",d:"M512 512a96 96 0 1 0 0-192 96 96 0 0 0 0 192m0 64a160 160 0 1 1 0-320 160 160 0 0 1 0 320"})]))}}),D7=H7,F7=T({name:"Location",__name:"location",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),k("path",{fill:"currentColor",d:"M512 512a96 96 0 1 0 0-192 96 96 0 0 0 0 192m0 64a160 160 0 1 1 0-320 160 160 0 0 1 0 320"})]))}}),K7=F7,W7=T({name:"Lock",__name:"lock",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96"}),k("path",{fill:"currentColor",d:"M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32m192-160v-64a192 192 0 1 0-384 0v64zM512 64a256 256 0 0 1 256 256v128H256V320A256 256 0 0 1 512 64"})]))}}),j7=W7,q7=T({name:"Lollipop",__name:"lollipop",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M513.28 448a64 64 0 1 1 76.544 49.728A96 96 0 0 0 768 448h64a160 160 0 0 1-320 0zm-126.976-29.696a256 256 0 1 0 43.52-180.48A256 256 0 0 1 832 448h-64a192 192 0 0 0-381.696-29.696m105.664 249.472L285.696 874.048a96 96 0 0 1-135.68-135.744l206.208-206.272a320 320 0 1 1 135.744 135.744zm-54.464-36.032a321.92 321.92 0 0 1-45.248-45.248L195.2 783.552a32 32 0 1 0 45.248 45.248l197.056-197.12z"})]))}}),U7=q7,Y7=T({name:"MagicStick",__name:"magic-stick",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 64h64v192h-64zm0 576h64v192h-64zM160 480v-64h192v64zm576 0v-64h192v64zM249.856 199.04l45.248-45.184L430.848 289.6 385.6 334.848 249.856 199.104zM657.152 606.4l45.248-45.248 135.744 135.744-45.248 45.248zM114.048 923.2 68.8 877.952l316.8-316.8 45.248 45.248zM702.4 334.848 657.152 289.6l135.744-135.744 45.248 45.248z"})]))}}),G7=Y7,X7=T({name:"Magnet",__name:"magnet",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M832 320V192H704v320a192 192 0 1 1-384 0V192H192v128h128v64H192v128a320 320 0 0 0 640 0V384H704v-64zM640 512V128h256v384a384 384 0 1 1-768 0V128h256v384a128 128 0 1 0 256 0"})]))}}),Z7=X7,J7=T({name:"Male",__name:"male",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M399.5 849.5a225 225 0 1 0 0-450 225 225 0 0 0 0 450m0 56.25a281.25 281.25 0 1 1 0-562.5 281.25 281.25 0 0 1 0 562.5m253.125-787.5h225q28.125 0 28.125 28.125T877.625 174.5h-225q-28.125 0-28.125-28.125t28.125-28.125"}),k("path",{fill:"currentColor",d:"M877.625 118.25q28.125 0 28.125 28.125v225q0 28.125-28.125 28.125T849.5 371.375v-225q0-28.125 28.125-28.125"}),k("path",{fill:"currentColor",d:"M604.813 458.9 565.1 419.131l292.613-292.668 39.825 39.824z"})]))}}),Q7=J7,eS=T({name:"Management",__name:"management",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M576 128v288l96-96 96 96V128h128v768H320V128zm-448 0h128v768H128z"})]))}}),tS=eS,nS=T({name:"MapLocation",__name:"map-location",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),k("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256m345.6 192L960 960H672v-64H352v64H64l102.4-256zm-68.928 0H235.328l-76.8 192h706.944z"})]))}}),aS=nS,lS=T({name:"Medal",__name:"medal",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 896a256 256 0 1 0 0-512 256 256 0 0 0 0 512m0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640"}),k("path",{fill:"currentColor",d:"M576 128H448v200a286.72 286.72 0 0 1 64-8c19.52 0 40.832 2.688 64 8zm64 0v219.648c24.448 9.088 50.56 20.416 78.4 33.92L757.44 128zm-256 0H266.624l39.04 253.568c27.84-13.504 53.888-24.832 78.336-33.92V128zM229.312 64h565.376a32 32 0 0 1 31.616 36.864L768 480c-113.792-64-199.104-96-256-96-56.896 0-142.208 32-256 96l-58.304-379.136A32 32 0 0 1 229.312 64"})]))}}),oS=lS,rS=T({name:"Memo",__name:"memo",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M480 320h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32"}),k("path",{fill:"currentColor",d:"M887.01 72.99C881.01 67 873.34 64 864 64H160c-9.35 0-17.02 3-23.01 8.99C131 78.99 128 86.66 128 96v832c0 9.35 2.99 17.02 8.99 23.01S150.66 960 160 960h704c9.35 0 17.02-2.99 23.01-8.99S896 937.34 896 928V96c0-9.35-3-17.02-8.99-23.01M192 896V128h96v768zm640 0H352V128h480z"}),k("path",{fill:"currentColor",d:"M480 512h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32m0 192h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32"})]))}}),sS=rS,iS=T({name:"Menu",__name:"menu",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M160 448a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zM160 896a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32z"})]))}}),uS=iS,cS=T({name:"MessageBox",__name:"message-box",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M288 384h448v64H288zm96-128h256v64H384zM131.456 512H384v128h256V512h252.544L721.856 192H302.144zM896 576H704v128H320V576H128v256h768zM275.776 128h472.448a32 32 0 0 1 28.608 17.664l179.84 359.552A32 32 0 0 1 960 519.552V864a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V519.552a32 32 0 0 1 3.392-14.336l179.776-359.552A32 32 0 0 1 275.776 128z"})]))}}),dS=cS,fS=T({name:"Message",__name:"message",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 224v512a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V224zm0-64h768a64 64 0 0 1 64 64v512a128 128 0 0 1-128 128H192A128 128 0 0 1 64 736V224a64 64 0 0 1 64-64"}),k("path",{fill:"currentColor",d:"M904 224 656.512 506.88a192 192 0 0 1-289.024 0L120 224zm-698.944 0 210.56 240.704a128 128 0 0 0 192.704 0L818.944 224H205.056"})]))}}),pS=fS,vS=T({name:"Mic",__name:"mic",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M480 704h160a64 64 0 0 0 64-64v-32h-96a32 32 0 0 1 0-64h96v-96h-96a32 32 0 0 1 0-64h96v-96h-96a32 32 0 0 1 0-64h96v-32a64 64 0 0 0-64-64H384a64 64 0 0 0-64 64v32h96a32 32 0 0 1 0 64h-96v96h96a32 32 0 0 1 0 64h-96v96h96a32 32 0 0 1 0 64h-96v32a64 64 0 0 0 64 64zm64 64v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768h-96a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64h256a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128z"})]))}}),hS=vS,mS=T({name:"Microphone",__name:"microphone",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 128a128 128 0 0 0-128 128v256a128 128 0 1 0 256 0V256a128 128 0 0 0-128-128m0-64a192 192 0 0 1 192 192v256a192 192 0 1 1-384 0V256A192 192 0 0 1 512 64m-32 832v-64a288 288 0 0 1-288-288v-32a32 32 0 0 1 64 0v32a224 224 0 0 0 224 224h64a224 224 0 0 0 224-224v-32a32 32 0 1 1 64 0v32a288 288 0 0 1-288 288v64h64a32 32 0 1 1 0 64H416a32 32 0 1 1 0-64z"})]))}}),gS=mS,yS=T({name:"MilkTea",__name:"milk-tea",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M416 128V96a96 96 0 0 1 96-96h128a32 32 0 1 1 0 64H512a32 32 0 0 0-32 32v32h320a96 96 0 0 1 11.712 191.296l-39.68 581.056A64 64 0 0 1 708.224 960H315.776a64 64 0 0 1-63.872-59.648l-39.616-581.056A96 96 0 0 1 224 128zM276.48 320l39.296 576h392.448l4.8-70.784a224.064 224.064 0 0 1 30.016-439.808L747.52 320zM224 256h576a32 32 0 1 0 0-64H224a32 32 0 0 0 0 64m493.44 503.872 21.12-309.12a160 160 0 0 0-21.12 309.12"})]))}}),_S=yS,bS=T({name:"Minus",__name:"minus",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),K1=bS,wS=T({name:"Money",__name:"money",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M256 640v192h640V384H768v-64h150.976c14.272 0 19.456 1.472 24.64 4.288a29.056 29.056 0 0 1 12.16 12.096c2.752 5.184 4.224 10.368 4.224 24.64v493.952c0 14.272-1.472 19.456-4.288 24.64a29.056 29.056 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H233.024c-14.272 0-19.456-1.472-24.64-4.288a29.056 29.056 0 0 1-12.16-12.096c-2.688-5.184-4.224-10.368-4.224-24.576V640z"}),k("path",{fill:"currentColor",d:"M768 192H128v448h640zm64-22.976v493.952c0 14.272-1.472 19.456-4.288 24.64a29.056 29.056 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H105.024c-14.272 0-19.456-1.472-24.64-4.288a29.056 29.056 0 0 1-12.16-12.096C65.536 682.432 64 677.248 64 663.04V169.024c0-14.272 1.472-19.456 4.288-24.64a29.056 29.056 0 0 1 12.096-12.16C85.568 129.536 90.752 128 104.96 128h685.952c14.272 0 19.456 1.472 24.64 4.288a29.056 29.056 0 0 1 12.16 12.096c2.752 5.184 4.224 10.368 4.224 24.64z"}),k("path",{fill:"currentColor",d:"M448 576a160 160 0 1 1 0-320 160 160 0 0 1 0 320m0-64a96 96 0 1 0 0-192 96 96 0 0 0 0 192"})]))}}),CS=wS,SS=T({name:"Monitor",__name:"monitor",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M544 768v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768H192A128 128 0 0 1 64 640V256a128 128 0 0 1 128-128h640a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128zM192 192a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64z"})]))}}),kS=SS,ES=T({name:"MoonNight",__name:"moon-night",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M384 512a448 448 0 0 1 215.872-383.296A384 384 0 0 0 213.76 640h188.8A448.256 448.256 0 0 1 384 512M171.136 704a448 448 0 0 1 636.992-575.296A384 384 0 0 0 499.328 704h-328.32z"}),k("path",{fill:"currentColor",d:"M32 640h960q32 0 32 32t-32 32H32q-32 0-32-32t32-32m128 128h384a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m160 127.68 224 .256a32 32 0 0 1 32 32V928a32 32 0 0 1-32 32l-224-.384a32 32 0 0 1-32-32v-.064a32 32 0 0 1 32-32z"})]))}}),xS=ES,MS=T({name:"Moon",__name:"moon",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M240.448 240.448a384 384 0 1 0 559.424 525.696 448 448 0 0 1-542.016-542.08 390.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.696"})]))}}),$S=MS,TS=T({name:"MoreFilled",__name:"more-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"})]))}}),zu=TS,OS=T({name:"More",__name:"more",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("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-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96"})]))}}),W1=OS,NS=T({name:"MostlyCloudy",__name:"mostly-cloudy",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M737.216 357.952 704 349.824l-11.776-32a192.064 192.064 0 0 0-367.424 23.04l-8.96 39.04-39.04 8.96A192.064 192.064 0 0 0 320 768h368a207.808 207.808 0 0 0 207.808-208 208.32 208.32 0 0 0-158.592-202.048m15.168-62.208A272.32 272.32 0 0 1 959.744 560a271.808 271.808 0 0 1-271.552 272H320a256 256 0 0 1-57.536-505.536 256.128 256.128 0 0 1 489.92-30.72"})]))}}),IS=NS,PS=T({name:"Mouse",__name:"mouse",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M438.144 256c-68.352 0-92.736 4.672-117.76 18.112-20.096 10.752-35.52 26.176-46.272 46.272C260.672 345.408 256 369.792 256 438.144v275.712c0 68.352 4.672 92.736 18.112 117.76 10.752 20.096 26.176 35.52 46.272 46.272C345.408 891.328 369.792 896 438.144 896h147.712c68.352 0 92.736-4.672 117.76-18.112 20.096-10.752 35.52-26.176 46.272-46.272C763.328 806.592 768 782.208 768 713.856V438.144c0-68.352-4.672-92.736-18.112-117.76a110.464 110.464 0 0 0-46.272-46.272C678.592 260.672 654.208 256 585.856 256zm0-64h147.712c85.568 0 116.608 8.96 147.904 25.6 31.36 16.768 55.872 41.344 72.576 72.64C823.104 321.536 832 352.576 832 438.08v275.84c0 85.504-8.96 116.544-25.6 147.84a174.464 174.464 0 0 1-72.64 72.576C702.464 951.104 671.424 960 585.92 960H438.08c-85.504 0-116.544-8.96-147.84-25.6a174.464 174.464 0 0 1-72.64-72.704c-16.768-31.296-25.664-62.336-25.664-147.84v-275.84c0-85.504 8.96-116.544 25.6-147.84a174.464 174.464 0 0 1 72.768-72.576c31.232-16.704 62.272-25.6 147.776-25.6z"}),k("path",{fill:"currentColor",d:"M512 320q32 0 32 32v128q0 32-32 32t-32-32V352q0-32 32-32m32-96a32 32 0 0 1-64 0v-64a32 32 0 0 0-32-32h-96a32 32 0 0 1 0-64h96a96 96 0 0 1 96 96z"})]))}}),zS=PS,AS=T({name:"Mug",__name:"mug",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M736 800V160H160v640a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64m64-544h63.552a96 96 0 0 1 96 96v224a96 96 0 0 1-96 96H800v128a128 128 0 0 1-128 128H224A128 128 0 0 1 96 800V128a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 64v288h63.552a32 32 0 0 0 32-32V352a32 32 0 0 0-32-32z"})]))}}),VS=AS,LS=T({name:"MuteNotification",__name:"mute-notification",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m241.216 832 63.616-64H768V448c0-42.368-10.24-82.304-28.48-117.504l46.912-47.232C815.36 331.392 832 387.84 832 448v320h96a32 32 0 1 1 0 64zm-90.24 0H96a32 32 0 1 1 0-64h96V448a320.128 320.128 0 0 1 256-313.6V128a64 64 0 1 1 128 0v6.4a319.552 319.552 0 0 1 171.648 97.088l-45.184 45.44A256 256 0 0 0 256 448v278.336L151.04 832zM448 896h128a64 64 0 0 1-128 0"}),k("path",{fill:"currentColor",d:"M150.72 859.072a32 32 0 0 1-45.44-45.056l704-708.544a32 32 0 0 1 45.44 45.056l-704 708.544z"})]))}}),RS=LS,BS=T({name:"Mute",__name:"mute",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m412.16 592.128-45.44 45.44A191.232 191.232 0 0 1 320 512V256a192 192 0 1 1 384 0v44.352l-64 64V256a128 128 0 1 0-256 0v256c0 30.336 10.56 58.24 28.16 80.128m51.968 38.592A128 128 0 0 0 640 512v-57.152l64-64V512a192 192 0 0 1-287.68 166.528zM314.88 779.968l46.144-46.08A222.976 222.976 0 0 0 480 768h64a224 224 0 0 0 224-224v-32a32 32 0 1 1 64 0v32a288 288 0 0 1-288 288v64h64a32 32 0 1 1 0 64H416a32 32 0 1 1 0-64h64v-64c-61.44 0-118.4-19.2-165.12-52.032M266.752 737.6A286.976 286.976 0 0 1 192 544v-32a32 32 0 0 1 64 0v32c0 56.832 21.184 108.8 56.064 148.288z"}),k("path",{fill:"currentColor",d:"M150.72 859.072a32 32 0 0 1-45.44-45.056l704-708.544a32 32 0 0 1 45.44 45.056l-704 708.544z"})]))}}),HS=BS,DS=T({name:"NoSmoking",__name:"no-smoking",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M440.256 576H256v128h56.256l-64 64H224a32 32 0 0 1-32-32V544a32 32 0 0 1 32-32h280.256zm143.488 128H704V583.744L775.744 512H928a32 32 0 0 1 32 32v192a32 32 0 0 1-32 32H519.744zM768 576v128h128V576zm-29.696-207.552 45.248 45.248-497.856 497.856-45.248-45.248zM256 64h64v320h-64zM128 192h64v192h-64zM64 512h64v256H64z"})]))}}),FS=DS,KS=T({name:"Notebook",__name:"notebook",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M192 128v768h640V128zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),k("path",{fill:"currentColor",d:"M672 128h64v768h-64zM96 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32"})]))}}),WS=KS,jS=T({name:"Notification",__name:"notification",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 128v64H256a64 64 0 0 0-64 64v512a64 64 0 0 0 64 64h512a64 64 0 0 0 64-64V512h64v256a128 128 0 0 1-128 128H256a128 128 0 0 1-128-128V256a128 128 0 0 1 128-128z"}),k("path",{fill:"currentColor",d:"M768 384a128 128 0 1 0 0-256 128 128 0 0 0 0 256m0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384"})]))}}),qS=jS,US=T({name:"Odometer",__name:"odometer",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),k("path",{fill:"currentColor",d:"M192 512a320 320 0 1 1 640 0 32 32 0 1 1-64 0 256 256 0 1 0-512 0 32 32 0 0 1-64 0"}),k("path",{fill:"currentColor",d:"M570.432 627.84A96 96 0 1 1 509.568 608l60.992-187.776A32 32 0 1 1 631.424 440l-60.992 187.776zM502.08 734.464a32 32 0 1 0 19.84-60.928 32 32 0 0 0-19.84 60.928"})]))}}),YS=US,GS=T({name:"OfficeBuilding",__name:"office-building",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M192 128v704h384V128zm-32-64h448a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),k("path",{fill:"currentColor",d:"M256 256h256v64H256zm0 192h256v64H256zm0 192h256v64H256zm384-128h128v64H640zm0 128h128v64H640zM64 832h896v64H64z"}),k("path",{fill:"currentColor",d:"M640 384v448h192V384zm-32-64h256a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H608a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32"})]))}}),XS=GS,ZS=T({name:"Open",__name:"open",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M329.956 257.138a254.862 254.862 0 0 0 0 509.724h364.088a254.862 254.862 0 0 0 0-509.724zm0-72.818h364.088a327.68 327.68 0 1 1 0 655.36H329.956a327.68 327.68 0 1 1 0-655.36z"}),k("path",{fill:"currentColor",d:"M694.044 621.227a109.227 109.227 0 1 0 0-218.454 109.227 109.227 0 0 0 0 218.454m0 72.817a182.044 182.044 0 1 1 0-364.088 182.044 182.044 0 0 1 0 364.088"})]))}}),JS=ZS,QS=T({name:"Operation",__name:"operation",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M389.44 768a96.064 96.064 0 0 1 181.12 0H896v64H570.56a96.064 96.064 0 0 1-181.12 0H128v-64zm192-288a96.064 96.064 0 0 1 181.12 0H896v64H762.56a96.064 96.064 0 0 1-181.12 0H128v-64zm-320-288a96.064 96.064 0 0 1 181.12 0H896v64H442.56a96.064 96.064 0 0 1-181.12 0H128v-64z"})]))}}),ek=QS,tk=T({name:"Opportunity",__name:"opportunity",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M384 960v-64h192.064v64zm448-544a350.656 350.656 0 0 1-128.32 271.424C665.344 719.04 640 763.776 640 813.504V832H320v-14.336c0-48-19.392-95.36-57.216-124.992a351.552 351.552 0 0 1-128.448-344.256c25.344-136.448 133.888-248.128 269.76-276.48A352.384 352.384 0 0 1 832 416m-544 32c0-132.288 75.904-224 192-224v-64c-154.432 0-256 122.752-256 288z"})]))}}),nk=tk,ak=T({name:"Orange",__name:"orange",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M544 894.72a382.336 382.336 0 0 0 215.936-89.472L577.024 622.272c-10.24 6.016-21.248 10.688-33.024 13.696v258.688zm261.248-134.784A382.336 382.336 0 0 0 894.656 544H635.968c-3.008 11.776-7.68 22.848-13.696 33.024l182.976 182.912zM894.656 480a382.336 382.336 0 0 0-89.408-215.936L622.272 446.976c6.016 10.24 10.688 21.248 13.696 33.024h258.688zm-134.72-261.248A382.336 382.336 0 0 0 544 129.344v258.688c11.776 3.008 22.848 7.68 33.024 13.696zM480 129.344a382.336 382.336 0 0 0-215.936 89.408l182.912 182.976c10.24-6.016 21.248-10.688 33.024-13.696zm-261.248 134.72A382.336 382.336 0 0 0 129.344 480h258.688c3.008-11.776 7.68-22.848 13.696-33.024zM129.344 544a382.336 382.336 0 0 0 89.408 215.936l182.976-182.912A127.232 127.232 0 0 1 388.032 544zm134.72 261.248A382.336 382.336 0 0 0 480 894.656V635.968a127.232 127.232 0 0 1-33.024-13.696zM512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896m0-384a64 64 0 1 0 0-128 64 64 0 0 0 0 128"})]))}}),lk=ak,ok=T({name:"Paperclip",__name:"paperclip",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M602.496 240.448A192 192 0 1 1 874.048 512l-316.8 316.8A256 256 0 0 1 195.2 466.752L602.496 59.456l45.248 45.248L240.448 512A192 192 0 0 0 512 783.552l316.8-316.8a128 128 0 1 0-181.056-181.056L353.6 579.904a32 32 0 1 0 45.248 45.248l294.144-294.144 45.312 45.248L444.096 670.4a96 96 0 1 1-135.744-135.744l294.144-294.208z"})]))}}),rk=ok,sk=T({name:"PartlyCloudy",__name:"partly-cloudy",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M598.4 895.872H328.192a256 256 0 0 1-34.496-510.528A352 352 0 1 1 598.4 895.872m-271.36-64h272.256a288 288 0 1 0-248.512-417.664L335.04 445.44l-34.816 3.584a192 192 0 0 0 26.88 382.848z"}),k("path",{fill:"currentColor",d:"M139.84 501.888a256 256 0 1 1 417.856-277.12c-17.728 2.176-38.208 8.448-61.504 18.816A192 192 0 1 0 189.12 460.48a6003.84 6003.84 0 0 0-49.28 41.408z"})]))}}),ik=sk,uk=T({name:"Pear",__name:"pear",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M542.336 258.816a443.255 443.255 0 0 0-9.024 25.088 32 32 0 1 1-60.8-20.032l1.088-3.328a162.688 162.688 0 0 0-122.048 131.392l-17.088 102.72-20.736 15.36C256.192 552.704 224 610.88 224 672c0 120.576 126.4 224 288 224s288-103.424 288-224c0-61.12-32.192-119.296-89.728-161.92l-20.736-15.424-17.088-102.72a162.688 162.688 0 0 0-130.112-133.12zm-40.128-66.56c7.936-15.552 16.576-30.08 25.92-43.776 23.296-33.92 49.408-59.776 78.528-77.12a32 32 0 1 1 32.704 55.04c-20.544 12.224-40.064 31.552-58.432 58.304a316.608 316.608 0 0 0-9.792 15.104 226.688 226.688 0 0 1 164.48 181.568l12.8 77.248C819.456 511.36 864 587.392 864 672c0 159.04-157.568 288-352 288S160 831.04 160 672c0-84.608 44.608-160.64 115.584-213.376l12.8-77.248a226.624 226.624 0 0 1 213.76-189.184z"})]))}}),ck=uk,dk=T({name:"PhoneFilled",__name:"phone-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M199.232 125.568 90.624 379.008a32 32 0 0 0 6.784 35.2l512.384 512.384a32 32 0 0 0 35.2 6.784l253.44-108.608a32 32 0 0 0 10.048-52.032L769.6 633.92a32 32 0 0 0-36.928-5.952l-130.176 65.088-271.488-271.552 65.024-130.176a32 32 0 0 0-5.952-36.928L251.2 115.52a32 32 0 0 0-51.968 10.048z"})]))}}),fk=dk,pk=T({name:"Phone",__name:"phone",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M79.36 432.256 591.744 944.64a32 32 0 0 0 35.2 6.784l253.44-108.544a32 32 0 0 0 9.984-52.032l-153.856-153.92a32 32 0 0 0-36.928-6.016l-69.888 34.944L358.08 394.24l35.008-69.888a32 32 0 0 0-5.952-36.928L233.152 133.568a32 32 0 0 0-52.032 10.048L72.512 397.056a32 32 0 0 0 6.784 35.2zm60.48-29.952 81.536-190.08L325.568 316.48l-24.64 49.216-20.608 41.216 32.576 32.64 271.552 271.552 32.64 32.64 41.216-20.672 49.28-24.576 104.192 104.128-190.08 81.472L139.84 402.304zM512 320v-64a256 256 0 0 1 256 256h-64a192 192 0 0 0-192-192m0-192V64a448 448 0 0 1 448 448h-64a384 384 0 0 0-384-384"})]))}}),vk=pk,hk=T({name:"PictureFilled",__name:"picture-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112M256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384"})]))}}),j1=hk,mk=T({name:"PictureRounded",__name:"picture-rounded",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 128a384 384 0 1 0 0 768 384 384 0 0 0 0-768m0-64a448 448 0 1 1 0 896 448 448 0 0 1 0-896"}),k("path",{fill:"currentColor",d:"M640 288q64 0 64 64t-64 64q-64 0-64-64t64-64M214.656 790.656l-45.312-45.312 185.664-185.6a96 96 0 0 1 123.712-10.24l138.24 98.688a32 32 0 0 0 39.872-2.176L906.688 422.4l42.624 47.744L699.52 693.696a96 96 0 0 1-119.808 6.592l-138.24-98.752a32 32 0 0 0-41.152 3.456l-185.664 185.6z"})]))}}),gk=mk,yk=T({name:"Picture",__name:"picture",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M160 160v704h704V160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32"}),k("path",{fill:"currentColor",d:"M384 288q64 0 64 64t-64 64q-64 0-64-64t64-64M185.408 876.992l-50.816-38.912L350.72 556.032a96 96 0 0 1 134.592-17.856l1.856 1.472 122.88 99.136a32 32 0 0 0 44.992-4.864l216-269.888 49.92 39.936-215.808 269.824-.256.32a96 96 0 0 1-135.04 14.464l-122.88-99.072-.64-.512a32 32 0 0 0-44.8 5.952z"})]))}}),_k=yk,bk=T({name:"PieChart",__name:"pie-chart",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M448 68.48v64.832A384.128 384.128 0 0 0 512 896a384.128 384.128 0 0 0 378.688-320h64.768A448.128 448.128 0 0 1 64 512 448.128 448.128 0 0 1 448 68.48z"}),k("path",{fill:"currentColor",d:"M576 97.28V448h350.72A384.064 384.064 0 0 0 576 97.28zM512 64V33.152A448 448 0 0 1 990.848 512H512z"})]))}}),wk=bk,Ck=T({name:"Place",__name:"place",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512"}),k("path",{fill:"currentColor",d:"M512 512a32 32 0 0 1 32 32v256a32 32 0 1 1-64 0V544a32 32 0 0 1 32-32"}),k("path",{fill:"currentColor",d:"M384 649.088v64.96C269.76 732.352 192 771.904 192 800c0 37.696 139.904 96 320 96s320-58.304 320-96c0-28.16-77.76-67.648-192-85.952v-64.96C789.12 671.04 896 730.368 896 800c0 88.32-171.904 160-384 160s-384-71.68-384-160c0-69.696 106.88-128.96 256-150.912"})]))}}),Sk=Ck,kk=T({name:"Platform",__name:"platform",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M448 832v-64h128v64h192v64H256v-64zM128 704V128h768v576z"})]))}}),Ek=kk,xk=T({name:"Plus",__name:"plus",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),id=xk,Mk=T({name:"Pointer",__name:"pointer",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M511.552 128c-35.584 0-64.384 28.8-64.384 64.448v516.48L274.048 570.88a94.272 94.272 0 0 0-112.896-3.456 44.416 44.416 0 0 0-8.96 62.208L332.8 870.4A64 64 0 0 0 384 896h512V575.232a64 64 0 0 0-45.632-61.312l-205.952-61.76A96 96 0 0 1 576 360.192V192.448C576 156.8 547.2 128 511.552 128M359.04 556.8l24.128 19.2V192.448a128.448 128.448 0 1 1 256.832 0v167.744a32 32 0 0 0 22.784 30.656l206.016 61.76A128 128 0 0 1 960 575.232V896a64 64 0 0 1-64 64H384a128 128 0 0 1-102.4-51.2L101.056 668.032A108.416 108.416 0 0 1 128 512.512a158.272 158.272 0 0 1 185.984 8.32z"})]))}}),$k=Mk,Tk=T({name:"Position",__name:"position",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m249.6 417.088 319.744 43.072 39.168 310.272L845.12 178.88 249.6 417.088zm-129.024 47.168a32 32 0 0 1-7.68-61.44l777.792-311.04a32 32 0 0 1 41.6 41.6l-310.336 775.68a32 32 0 0 1-61.44-7.808L512 516.992l-391.424-52.736z"})]))}}),Ok=Tk,Nk=T({name:"Postcard",__name:"postcard",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M160 224a32 32 0 0 0-32 32v512a32 32 0 0 0 32 32h704a32 32 0 0 0 32-32V256a32 32 0 0 0-32-32zm0-64h704a96 96 0 0 1 96 96v512a96 96 0 0 1-96 96H160a96 96 0 0 1-96-96V256a96 96 0 0 1 96-96"}),k("path",{fill:"currentColor",d:"M704 320a64 64 0 1 1 0 128 64 64 0 0 1 0-128M288 448h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32m0 128h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32"})]))}}),Ik=Nk,Pk=T({name:"Pouring",__name:"pouring",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m739.328 291.328-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 97.28 78.72 175.936 175.808 175.936h400a192 192 0 0 0 35.776-380.672zM959.552 480a256 256 0 0 1-256 256h-400A239.808 239.808 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 959.552 480M224 800a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32m192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32m192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32m192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32"})]))}}),zk=Pk,Ak=T({name:"Present",__name:"present",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M480 896V640H192v-64h288V320H192v576zm64 0h288V320H544v256h288v64H544zM128 256h768v672a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32z"}),k("path",{fill:"currentColor",d:"M96 256h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32"}),k("path",{fill:"currentColor",d:"M416 256a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"}),k("path",{fill:"currentColor",d:"M608 256a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"})]))}}),Vk=Ak,Lk=T({name:"PriceTag",__name:"price-tag",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M224 318.336V896h576V318.336L552.512 115.84a64 64 0 0 0-81.024 0zM593.024 66.304l259.2 212.096A32 32 0 0 1 864 303.168V928a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V303.168a32 32 0 0 1 11.712-24.768l259.2-212.096a128 128 0 0 1 162.112 0z"}),k("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"})]))}}),Rk=Lk,Bk=T({name:"Printer",__name:"printer",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M256 768H105.024c-14.272 0-19.456-1.472-24.64-4.288a29.056 29.056 0 0 1-12.16-12.096C65.536 746.432 64 741.248 64 727.04V379.072c0-42.816 4.48-58.304 12.8-73.984 8.384-15.616 20.672-27.904 36.288-36.288 15.68-8.32 31.168-12.8 73.984-12.8H256V64h512v192h68.928c42.816 0 58.304 4.48 73.984 12.8 15.616 8.384 27.904 20.672 36.288 36.288 8.32 15.68 12.8 31.168 12.8 73.984v347.904c0 14.272-1.472 19.456-4.288 24.64a29.056 29.056 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H768v192H256zm64-192v320h384V576zm-64 128V512h512v192h128V379.072c0-29.376-1.408-36.48-5.248-43.776a23.296 23.296 0 0 0-10.048-10.048c-7.232-3.84-14.4-5.248-43.776-5.248H187.072c-29.376 0-36.48 1.408-43.776 5.248a23.296 23.296 0 0 0-10.048 10.048c-3.84 7.232-5.248 14.4-5.248 43.776V704zm64-448h384V128H320zm-64 128h64v64h-64zm128 0h64v64h-64z"})]))}}),Hk=Bk,Dk=T({name:"Promotion",__name:"promotion",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m64 448 832-320-128 704-446.08-243.328L832 192 242.816 545.472zm256 512V657.024L512 768z"})]))}}),Fk=Dk,Kk=T({name:"QuartzWatch",__name:"quartz-watch",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M422.02 602.01v-.03c-6.68-5.99-14.35-8.83-23.01-8.51-8.67.32-16.17 3.66-22.5 10.02-6.33 6.36-9.5 13.7-9.5 22.02s3 15.82 8.99 22.5c8.68 8.68 19.02 11.35 31.01 8s19.49-10.85 22.5-22.5c3.01-11.65.51-22.15-7.49-31.49zM384 512c0-9.35-3-17.02-8.99-23.01-6-5.99-13.66-8.99-23.01-8.99-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.66 8.99 23.01 8.99 9.35 0 17.02-3 23.01-8.99 5.99-6 8.99-13.67 8.99-23.01m6.53-82.49c11.65 3.01 22.15.51 31.49-7.49h.04c5.99-6.68 8.83-14.34 8.51-23.01-.32-8.67-3.66-16.16-10.02-22.5-6.36-6.33-13.7-9.5-22.02-9.5s-15.82 3-22.5 8.99c-8.68 8.69-11.35 19.02-8 31.01 3.35 11.99 10.85 19.49 22.5 22.5zm242.94 0c11.67-3.03 19.01-10.37 22.02-22.02 3.01-11.65.51-22.15-7.49-31.49h.01c-6.68-5.99-14.18-8.99-22.5-8.99s-15.66 3.16-22.02 9.5c-6.36 6.34-9.7 13.84-10.02 22.5-.32 8.66 2.52 16.33 8.51 23.01 9.32 8.02 19.82 10.52 31.49 7.49M512 640c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.67 8.99 23.01 8.99 9.35 0 17.02-3 23.01-8.99 5.99-6 8.99-13.66 8.99-23.01s-3-17.02-8.99-23.01c-6-5.99-13.66-8.99-23.01-8.99m183.01-151.01c-6-5.99-13.66-8.99-23.01-8.99s-17.02 3-23.01 8.99c-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.66 8.99 23.01 8.99s17.02-3 23.01-8.99c5.99-6 8.99-13.67 8.99-23.01 0-9.35-3-17.02-8.99-23.01"}),k("path",{fill:"currentColor",d:"M832 512c-2-90.67-33.17-166.17-93.5-226.5-20.43-20.42-42.6-37.49-66.5-51.23V64H352v170.26c-23.9 13.74-46.07 30.81-66.5 51.24-60.33 60.33-91.49 135.83-93.5 226.5 2 90.67 33.17 166.17 93.5 226.5 20.43 20.43 42.6 37.5 66.5 51.24V960h320V789.74c23.9-13.74 46.07-30.81 66.5-51.24 60.33-60.34 91.49-135.83 93.5-226.5M416 128h192v78.69c-29.85-9.03-61.85-13.93-96-14.69-34.15.75-66.15 5.65-96 14.68zm192 768H416v-78.68c29.85 9.03 61.85 13.93 96 14.68 34.15-.75 66.15-5.65 96-14.68zm-96-128c-72.66-2.01-132.99-27.01-180.99-75.01S258.01 584.66 256 512c2.01-72.66 27.01-132.99 75.01-180.99S439.34 258.01 512 256c72.66 2.01 132.99 27.01 180.99 75.01S765.99 439.34 768 512c-2.01 72.66-27.01 132.99-75.01 180.99S584.66 765.99 512 768"}),k("path",{fill:"currentColor",d:"M512 320c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.66-8.99 23.01 0 9.35 3 17.02 8.99 23.01 6 5.99 13.67 8.99 23.01 8.99 9.35 0 17.02-3 23.01-8.99 5.99-6 8.99-13.66 8.99-23.01 0-9.35-3-17.02-8.99-23.01-6-5.99-13.66-8.99-23.01-8.99m112.99 273.5c-8.66-.32-16.33 2.52-23.01 8.51-7.98 9.32-10.48 19.82-7.49 31.49s10.49 19.17 22.5 22.5 22.35.66 31.01-8v.04c5.99-6.68 8.99-14.18 8.99-22.5s-3.16-15.66-9.5-22.02-13.84-9.7-22.5-10.02"})]))}}),Wk=Kk,jk=T({name:"QuestionFilled",__name:"question-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"})]))}}),q1=jk,qk=T({name:"Rank",__name:"rank",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m186.496 544 41.408 41.344a32 32 0 1 1-45.248 45.312l-96-96a32 32 0 0 1 0-45.312l96-96a32 32 0 1 1 45.248 45.312L186.496 480h290.816V186.432l-41.472 41.472a32 32 0 1 1-45.248-45.184l96-96.128a32 32 0 0 1 45.312 0l96 96.064a32 32 0 0 1-45.248 45.184l-41.344-41.28V480H832l-41.344-41.344a32 32 0 0 1 45.248-45.312l96 96a32 32 0 0 1 0 45.312l-96 96a32 32 0 0 1-45.248-45.312L832 544H541.312v293.44l41.344-41.28a32 32 0 1 1 45.248 45.248l-96 96a32 32 0 0 1-45.312 0l-96-96a32 32 0 1 1 45.312-45.248l41.408 41.408V544H186.496z"})]))}}),Uk=qk,Yk=T({name:"ReadingLamp",__name:"reading-lamp",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M352 896h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32m-44.672-768-99.52 448h608.384l-99.52-448zm-25.6-64h460.608a32 32 0 0 1 31.232 25.088l113.792 512A32 32 0 0 1 856.128 640H167.872a32 32 0 0 1-31.232-38.912l113.792-512A32 32 0 0 1 281.664 64z"}),k("path",{fill:"currentColor",d:"M672 576q32 0 32 32v128q0 32-32 32t-32-32V608q0-32 32-32m-192-.064h64V960h-64z"})]))}}),Gk=Yk,Xk=T({name:"Reading",__name:"reading",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m512 863.36 384-54.848v-638.72L525.568 222.72a96 96 0 0 1-27.136 0L128 169.792v638.72zM137.024 106.432l370.432 52.928a32 32 0 0 0 9.088 0l370.432-52.928A64 64 0 0 1 960 169.792v638.72a64 64 0 0 1-54.976 63.36l-388.48 55.488a32 32 0 0 1-9.088 0l-388.48-55.488A64 64 0 0 1 64 808.512v-638.72a64 64 0 0 1 73.024-63.36z"}),k("path",{fill:"currentColor",d:"M480 192h64v704h-64z"})]))}}),Zk=Xk,Jk=T({name:"RefreshLeft",__name:"refresh-left",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"})]))}}),U1=Jk,Qk=T({name:"RefreshRight",__name:"refresh-right",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88z"})]))}}),Y1=Qk,eE=T({name:"Refresh",__name:"refresh",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"})]))}}),tE=eE,nE=T({name:"Refrigerator",__name:"refrigerator",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M256 448h512V160a32 32 0 0 0-32-32H288a32 32 0 0 0-32 32zm0 64v352a32 32 0 0 0 32 32h448a32 32 0 0 0 32-32V512zm32-448h448a96 96 0 0 1 96 96v704a96 96 0 0 1-96 96H288a96 96 0 0 1-96-96V160a96 96 0 0 1 96-96m32 224h64v96h-64zm0 288h64v96h-64z"})]))}}),aE=nE,lE=T({name:"RemoveFilled",__name:"remove-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896M288 512a38.4 38.4 0 0 0 38.4 38.4h371.2a38.4 38.4 0 0 0 0-76.8H326.4A38.4 38.4 0 0 0 288 512"})]))}}),oE=lE,rE=T({name:"Remove",__name:"remove",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64"}),k("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),sE=rE,iE=T({name:"Right",__name:"right",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M754.752 480H160a32 32 0 1 0 0 64h594.752L521.344 777.344a32 32 0 0 0 45.312 45.312l288-288a32 32 0 0 0 0-45.312l-288-288a32 32 0 1 0-45.312 45.312z"})]))}}),uE=iE,cE=T({name:"ScaleToOriginal",__name:"scale-to-original",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zm-361.412 0a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118M512 361.412a30.118 30.118 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.118 30.118 0 0 0 512 361.412M512 512a30.118 30.118 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.118 30.118 0 0 0 512 512"})]))}}),G1=cE,dE=T({name:"School",__name:"school",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M224 128v704h576V128zm-32-64h640a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),k("path",{fill:"currentColor",d:"M64 832h896v64H64zm256-640h128v96H320z"}),k("path",{fill:"currentColor",d:"M384 832h256v-64a128 128 0 1 0-256 0zm128-256a192 192 0 0 1 192 192v128H320V768a192 192 0 0 1 192-192M320 384h128v96H320zm256-192h128v96H576zm0 192h128v96H576z"})]))}}),fE=dE,pE=T({name:"Scissor",__name:"scissor",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m512.064 578.368-106.88 152.768a160 160 0 1 1-23.36-78.208L472.96 522.56 196.864 128.256a32 32 0 1 1 52.48-36.736l393.024 561.344a160 160 0 1 1-23.36 78.208l-106.88-152.704zm54.4-189.248 208.384-297.6a32 32 0 0 1 52.48 36.736l-221.76 316.672-39.04-55.808zm-376.32 425.856a96 96 0 1 0 110.144-157.248 96 96 0 0 0-110.08 157.248zm643.84 0a96 96 0 1 0-110.08-157.248 96 96 0 0 0 110.08 157.248"})]))}}),vE=pE,hE=T({name:"Search",__name:"search",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}}),X1=hE,mE=T({name:"Select",__name:"select",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M77.248 415.04a64 64 0 0 1 90.496 0l226.304 226.304L846.528 188.8a64 64 0 1 1 90.56 90.496l-543.04 543.04-316.8-316.8a64 64 0 0 1 0-90.496z"})]))}}),gE=mE,yE=T({name:"Sell",__name:"sell",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M704 288h131.072a32 32 0 0 1 31.808 28.8L886.4 512h-64.384l-16-160H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0v-96H217.92l-51.2 512H512v64H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4zm-64 0v-22.336C640 189.248 582.272 128 512 128c-70.272 0-128 61.248-128 137.664v22.4h256zm201.408 483.84L768 698.496V928a32 32 0 1 1-64 0V698.496l-73.344 73.344a32 32 0 1 1-45.248-45.248l128-128a32 32 0 0 1 45.248 0l128 128a32 32 0 1 1-45.248 45.248z"})]))}}),_E=yE,bE=T({name:"SemiSelect",__name:"semi-select",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 448h768q64 0 64 64t-64 64H128q-64 0-64-64t64-64"})]))}}),wE=bE,CE=T({name:"Service",__name:"service",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M864 409.6a192 192 0 0 1-37.888 349.44A256.064 256.064 0 0 1 576 960h-96a32 32 0 1 1 0-64h96a192.064 192.064 0 0 0 181.12-128H736a32 32 0 0 1-32-32V416a32 32 0 0 1 32-32h32c10.368 0 20.544.832 30.528 2.432a288 288 0 0 0-573.056 0A193.235 193.235 0 0 1 256 384h32a32 32 0 0 1 32 32v320a32 32 0 0 1-32 32h-32a192 192 0 0 1-96-358.4 352 352 0 0 1 704 0M256 448a128 128 0 1 0 0 256zm640 128a128 128 0 0 0-128-128v256a128 128 0 0 0 128-128"})]))}}),SE=CE,kE=T({name:"SetUp",__name:"set-up",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M224 160a64 64 0 0 0-64 64v576a64 64 0 0 0 64 64h576a64 64 0 0 0 64-64V224a64 64 0 0 0-64-64zm0-64h576a128 128 0 0 1 128 128v576a128 128 0 0 1-128 128H224A128 128 0 0 1 96 800V224A128 128 0 0 1 224 96"}),k("path",{fill:"currentColor",d:"M384 416a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"}),k("path",{fill:"currentColor",d:"M480 320h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32m160 416a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"}),k("path",{fill:"currentColor",d:"M288 640h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32"})]))}}),EE=kE,xE=T({name:"Setting",__name:"setting",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357.12 357.12 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a351.616 351.616 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357.12 357.12 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088-24.512 11.968a294.113 294.113 0 0 0-34.816 20.096l-22.656 15.36-116.224-25.088-65.28 113.152 79.68 88.192-1.92 27.136a293.12 293.12 0 0 0 0 40.192l1.92 27.136-79.808 88.192 65.344 113.152 116.224-25.024 22.656 15.296a294.113 294.113 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152 24.448-11.904a288.282 288.282 0 0 0 34.752-20.096l22.592-15.296 116.288 25.024 65.28-113.152-79.744-88.192 1.92-27.136a293.12 293.12 0 0 0 0-40.256l-1.92-27.136 79.808-88.128-65.344-113.152-116.288 24.96-22.592-15.232a287.616 287.616 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384 192 192 0 0 1 0-384m0 64a128 128 0 1 0 0 256 128 128 0 0 0 0-256"})]))}}),ME=xE,$E=T({name:"Share",__name:"share",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m679.872 348.8-301.76 188.608a127.808 127.808 0 0 1 5.12 52.16l279.936 104.96a128 128 0 1 1-22.464 59.904l-279.872-104.96a128 128 0 1 1-16.64-166.272l301.696-188.608a128 128 0 1 1 33.92 54.272z"})]))}}),TE=$E,OE=T({name:"Ship",__name:"ship",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 386.88V448h405.568a32 32 0 0 1 30.72 40.768l-76.48 267.968A192 192 0 0 1 687.168 896H336.832a192 192 0 0 1-184.64-139.264L75.648 488.768A32 32 0 0 1 106.368 448H448V117.888a32 32 0 0 1 47.36-28.096l13.888 7.616L512 96v2.88l231.68 126.4a32 32 0 0 1-2.048 57.216zm0-70.272 144.768-65.792L512 171.84zM512 512H148.864l18.24 64H856.96l18.24-64zM185.408 640l28.352 99.2A128 128 0 0 0 336.832 832h350.336a128 128 0 0 0 123.072-92.8l28.352-99.2H185.408"})]))}}),NE=OE,IE=T({name:"Shop",__name:"shop",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M704 704h64v192H256V704h64v64h384zm188.544-152.192C894.528 559.616 896 567.616 896 576a96 96 0 1 1-192 0 96 96 0 1 1-192 0 96 96 0 1 1-192 0 96 96 0 1 1-192 0c0-8.384 1.408-16.384 3.392-24.192L192 128h640z"})]))}}),PE=IE,zE=T({name:"ShoppingBag",__name:"shopping-bag",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M704 320v96a32 32 0 0 1-32 32h-32V320H384v128h-32a32 32 0 0 1-32-32v-96H192v576h640V320zm-384-64a192 192 0 1 1 384 0h160a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32zm64 0h256a128 128 0 1 0-256 0"}),k("path",{fill:"currentColor",d:"M192 704h640v64H192z"})]))}}),AE=zE,VE=T({name:"ShoppingCartFull",__name:"shopping-cart-full",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M432 928a48 48 0 1 1 0-96 48 48 0 0 1 0 96m320 0a48 48 0 1 1 0-96 48 48 0 0 1 0 96M96 128a32 32 0 0 1 0-64h160a32 32 0 0 1 31.36 25.728L320.64 256H928a32 32 0 0 1 31.296 38.72l-96 448A32 32 0 0 1 832 768H384a32 32 0 0 1-31.36-25.728L229.76 128zm314.24 576h395.904l82.304-384H333.44l76.8 384z"}),k("path",{fill:"currentColor",d:"M699.648 256 608 145.984 516.352 256h183.296zm-140.8-151.04a64 64 0 0 1 98.304 0L836.352 320H379.648l179.2-215.04"})]))}}),LE=VE,RE=T({name:"ShoppingCart",__name:"shopping-cart",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M432 928a48 48 0 1 1 0-96 48 48 0 0 1 0 96m320 0a48 48 0 1 1 0-96 48 48 0 0 1 0 96M96 128a32 32 0 0 1 0-64h160a32 32 0 0 1 31.36 25.728L320.64 256H928a32 32 0 0 1 31.296 38.72l-96 448A32 32 0 0 1 832 768H384a32 32 0 0 1-31.36-25.728L229.76 128zm314.24 576h395.904l82.304-384H333.44l76.8 384z"})]))}}),BE=RE,HE=T({name:"ShoppingTrolley",__name:"shopping-trolley",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M368 833c-13.3 0-24.5 4.5-33.5 13.5S321 866.7 321 880s4.5 24.5 13.5 33.5 20.2 13.8 33.5 14.5c13.3-.7 24.5-5.5 33.5-14.5S415 893.3 415 880s-4.5-24.5-13.5-33.5S381.3 833 368 833m439-193c7.4 0 13.8-2.2 19.5-6.5S836 623.3 838 616l112-448c2-10-.2-19.2-6.5-27.5S929 128 919 128H96c-9.3 0-17 3-23 9s-9 13.7-9 23 3 17 9 23 13.7 9 23 9h96v576h672c9.3 0 17-3 23-9s9-13.7 9-23-3-17-9-23-13.7-9-23-9H256v-64zM256 192h622l-96 384H256zm432 641c-13.3 0-24.5 4.5-33.5 13.5S641 866.7 641 880s4.5 24.5 13.5 33.5 20.2 13.8 33.5 14.5c13.3-.7 24.5-5.5 33.5-14.5S735 893.3 735 880s-4.5-24.5-13.5-33.5S701.3 833 688 833"})]))}}),DE=HE,FE=T({name:"Smoking",__name:"smoking",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M256 576v128h640V576zm-32-64h704a32 32 0 0 1 32 32v192a32 32 0 0 1-32 32H224a32 32 0 0 1-32-32V544a32 32 0 0 1 32-32"}),k("path",{fill:"currentColor",d:"M704 576h64v128h-64zM256 64h64v320h-64zM128 192h64v192h-64zM64 512h64v256H64z"})]))}}),KE=FE,WE=T({name:"Soccer",__name:"soccer",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M418.496 871.04 152.256 604.8c-16.512 94.016-2.368 178.624 42.944 224 44.928 44.928 129.344 58.752 223.296 42.24m72.32-18.176a573.056 573.056 0 0 0 224.832-137.216 573.12 573.12 0 0 0 137.216-224.832L533.888 171.84a578.56 578.56 0 0 0-227.52 138.496A567.68 567.68 0 0 0 170.432 532.48l320.384 320.384zM871.04 418.496c16.512-93.952 2.688-178.368-42.24-223.296-44.544-44.544-128.704-58.048-222.592-41.536zM149.952 874.048c-112.96-112.96-88.832-408.96 111.168-608.96C461.056 65.152 760.96 36.928 874.048 149.952c113.024 113.024 86.784 411.008-113.152 610.944-199.936 199.936-497.92 226.112-610.944 113.152m452.544-497.792 22.656-22.656a32 32 0 0 1 45.248 45.248l-22.656 22.656 45.248 45.248A32 32 0 1 1 647.744 512l-45.248-45.248L557.248 512l45.248 45.248a32 32 0 1 1-45.248 45.248L512 557.248l-45.248 45.248L512 647.744a32 32 0 1 1-45.248 45.248l-45.248-45.248-22.656 22.656a32 32 0 1 1-45.248-45.248l22.656-22.656-45.248-45.248A32 32 0 1 1 376.256 512l45.248 45.248L466.752 512l-45.248-45.248a32 32 0 1 1 45.248-45.248L512 466.752l45.248-45.248L512 376.256a32 32 0 0 1 45.248-45.248l45.248 45.248z"})]))}}),jE=WE,qE=T({name:"SoldOut",__name:"sold-out",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M704 288h131.072a32 32 0 0 1 31.808 28.8L886.4 512h-64.384l-16-160H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0v-96H217.92l-51.2 512H512v64H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4zm-64 0v-22.336C640 189.248 582.272 128 512 128c-70.272 0-128 61.248-128 137.664v22.4h256zm201.408 476.16a32 32 0 1 1 45.248 45.184l-128 128a32 32 0 0 1-45.248 0l-128-128a32 32 0 1 1 45.248-45.248L704 837.504V608a32 32 0 1 1 64 0v229.504l73.408-73.408z"})]))}}),UE=qE,YE=T({name:"SortDown",__name:"sort-down",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M576 96v709.568L333.312 562.816A32 32 0 1 0 288 608l297.408 297.344A32 32 0 0 0 640 882.688V96a32 32 0 0 0-64 0"})]))}}),Z1=YE,GE=T({name:"SortUp",__name:"sort-up",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M384 141.248V928a32 32 0 1 0 64 0V218.56l242.688 242.688A32 32 0 1 0 736 416L438.592 118.656A32 32 0 0 0 384 141.248"})]))}}),J1=GE,XE=T({name:"Sort",__name:"sort",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M384 96a32 32 0 0 1 64 0v786.752a32 32 0 0 1-54.592 22.656L95.936 608a32 32 0 0 1 0-45.312h.128a32 32 0 0 1 45.184 0L384 805.632zm192 45.248a32 32 0 0 1 54.592-22.592L928.064 416a32 32 0 0 1 0 45.312h-.128a32 32 0 0 1-45.184 0L640 218.496V928a32 32 0 1 1-64 0V141.248z"})]))}}),ZE=XE,JE=T({name:"Stamp",__name:"stamp",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M624 475.968V640h144a128 128 0 0 1 128 128H128a128 128 0 0 1 128-128h144V475.968a192 192 0 1 1 224 0M128 896v-64h768v64z"})]))}}),QE=JE,ex=T({name:"StarFilled",__name:"star-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M283.84 867.84 512 747.776l228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72z"})]))}}),Uo=ex,tx=T({name:"Star",__name:"star",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"})]))}}),Q1=tx,nx=T({name:"Stopwatch",__name:"stopwatch",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),k("path",{fill:"currentColor",d:"M672 234.88c-39.168 174.464-80 298.624-122.688 372.48-64 110.848-202.624 30.848-138.624-80C453.376 453.44 540.48 355.968 672 234.816z"})]))}}),ax=nx,lx=T({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),ud=lx,ox=T({name:"Sugar",__name:"sugar",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m801.728 349.184 4.48 4.48a128 128 0 0 1 0 180.992L534.656 806.144a128 128 0 0 1-181.056 0l-4.48-4.48-19.392 109.696a64 64 0 0 1-108.288 34.176L78.464 802.56a64 64 0 0 1 34.176-108.288l109.76-19.328-4.544-4.544a128 128 0 0 1 0-181.056l271.488-271.488a128 128 0 0 1 181.056 0l4.48 4.48 19.392-109.504a64 64 0 0 1 108.352-34.048l142.592 143.04a64 64 0 0 1-34.24 108.16l-109.248 19.2zm-548.8 198.72h447.168v2.24l60.8-60.8a63.808 63.808 0 0 0 18.752-44.416h-426.88l-89.664 89.728a64.064 64.064 0 0 0-10.24 13.248zm0 64c2.752 4.736 6.144 9.152 10.176 13.248l135.744 135.744a64 64 0 0 0 90.496 0L638.4 611.904zm490.048-230.976L625.152 263.104a64 64 0 0 0-90.496 0L416.768 380.928zM123.712 757.312l142.976 142.976 24.32-137.6a25.6 25.6 0 0 0-29.696-29.632l-137.6 24.256zm633.6-633.344-24.32 137.472a25.6 25.6 0 0 0 29.632 29.632l137.28-24.064-142.656-143.04z"})]))}}),rx=ox,sx=T({name:"SuitcaseLine",__name:"suitcase-line",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M922.5 229.5c-24.32-24.34-54.49-36.84-90.5-37.5H704v-64c-.68-17.98-7.02-32.98-19.01-44.99S658.01 64.66 640 64H384c-17.98.68-32.98 7.02-44.99 19.01S320.66 110 320 128v64H192c-35.99.68-66.16 13.18-90.5 37.5C77.16 253.82 64.66 283.99 64 320v448c.68 35.99 13.18 66.16 37.5 90.5s54.49 36.84 90.5 37.5h640c35.99-.68 66.16-13.18 90.5-37.5s36.84-54.49 37.5-90.5V320c-.68-35.99-13.18-66.16-37.5-90.5M384 128h256v64H384zM256 832h-64c-17.98-.68-32.98-7.02-44.99-19.01S128.66 786.01 128 768V448h128zm448 0H320V448h384zm192-64c-.68 17.98-7.02 32.98-19.01 44.99S850.01 831.34 832 832h-64V448h128zm0-384H128v-64c.69-17.98 7.02-32.98 19.01-44.99S173.99 256.66 192 256h640c17.98.69 32.98 7.02 44.99 19.01S895.34 301.99 896 320z"})]))}}),ix=sx,ux=T({name:"Suitcase",__name:"suitcase",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 384h768v-64a64 64 0 0 0-64-64H192a64 64 0 0 0-64 64zm0 64v320a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V448zm64-256h640a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H192A128 128 0 0 1 64 768V320a128 128 0 0 1 128-128"}),k("path",{fill:"currentColor",d:"M384 128v64h256v-64zm0-64h256a64 64 0 0 1 64 64v64a64 64 0 0 1-64 64H384a64 64 0 0 1-64-64v-64a64 64 0 0 1 64-64"})]))}}),cx=ux,dx=T({name:"Sunny",__name:"sunny",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 704a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m0-704a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 768a32 32 0 0 1 32 32v64a32 32 0 1 1-64 0v-64a32 32 0 0 1 32-32M195.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.248M64 512a32 32 0 0 1 32-32h64a32 32 0 0 1 0 64H96a32 32 0 0 1-32-32m768 0a32 32 0 0 1 32-32h64a32 32 0 1 1 0 64h-64a32 32 0 0 1-32-32M195.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 0"})]))}}),fx=dx,px=T({name:"Sunrise",__name:"sunrise",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M32 768h960a32 32 0 1 1 0 64H32a32 32 0 1 1 0-64m129.408-96a352 352 0 0 1 701.184 0h-64.32a288 288 0 0 0-572.544 0h-64.32zM512 128a32 32 0 0 1 32 32v96a32 32 0 0 1-64 0v-96a32 32 0 0 1 32-32m407.296 168.704a32 32 0 0 1 0 45.248l-67.84 67.84a32 32 0 1 1-45.248-45.248l67.84-67.84a32 32 0 0 1 45.248 0zm-814.592 0a32 32 0 0 1 45.248 0l67.84 67.84a32 32 0 1 1-45.248 45.248l-67.84-67.84a32 32 0 0 1 0-45.248"})]))}}),vx=px,hx=T({name:"Sunset",__name:"sunset",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M82.56 640a448 448 0 1 1 858.88 0h-67.2a384 384 0 1 0-724.288 0zM32 704h960q32 0 32 32t-32 32H32q-32 0-32-32t32-32m256 128h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"})]))}}),mx=hx,gx=T({name:"SwitchButton",__name:"switch-button",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M352 159.872V230.4a352 352 0 1 0 320 0v-70.528A416.128 416.128 0 0 1 512 960a416 416 0 0 1-160-800.128z"}),k("path",{fill:"currentColor",d:"M512 64q32 0 32 32v320q0 32-32 32t-32-32V96q0-32 32-32"})]))}}),yx=gx,_x=T({name:"SwitchFilled",__name:"switch-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M247.47 358.4v.04c.07 19.17 7.72 37.53 21.27 51.09s31.92 21.2 51.09 21.27c39.86 0 72.41-32.6 72.41-72.4s-32.6-72.36-72.41-72.36-72.36 32.55-72.36 72.36z"}),k("path",{fill:"currentColor",d:"M492.38 128H324.7c-52.16 0-102.19 20.73-139.08 57.61a196.655 196.655 0 0 0-57.61 139.08V698.7c-.01 25.84 5.08 51.42 14.96 75.29s24.36 45.56 42.63 63.83 39.95 32.76 63.82 42.65a196.67 196.67 0 0 0 75.28 14.98h167.68c3.03 0 5.46-2.43 5.46-5.42V133.42c.6-2.99-1.83-5.42-5.46-5.42zm-56.11 705.88H324.7c-17.76.13-35.36-3.33-51.75-10.18s-31.22-16.94-43.61-29.67c-25.3-25.35-39.81-59.1-39.81-95.32V324.69c-.13-17.75 3.33-35.35 10.17-51.74a131.695 131.695 0 0 1 29.64-43.62c25.39-25.3 59.14-39.81 95.36-39.81h111.57zm402.12-647.67a196.655 196.655 0 0 0-139.08-57.61H580.48c-3.03 0-4.82 2.43-4.82 4.82v757.16c-.6 2.99 1.79 5.42 5.42 5.42h118.23a196.69 196.69 0 0 0 139.08-57.61A196.655 196.655 0 0 0 896 699.31V325.29a196.69 196.69 0 0 0-57.61-139.08zm-111.3 441.92c-42.83 0-77.82-34.99-77.82-77.82s34.98-77.82 77.82-77.82c42.83 0 77.82 34.99 77.82 77.82s-34.99 77.82-77.82 77.82z"})]))}}),bx=_x,wx=T({name:"Switch",__name:"switch",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M118.656 438.656a32 32 0 0 1 0-45.248L416 96l4.48-3.776A32 32 0 0 1 461.248 96l3.712 4.48a32.064 32.064 0 0 1-3.712 40.832L218.56 384H928a32 32 0 1 1 0 64H141.248a32 32 0 0 1-22.592-9.344zM64 608a32 32 0 0 1 32-32h786.752a32 32 0 0 1 22.656 54.592L608 928l-4.48 3.776a32.064 32.064 0 0 1-40.832-49.024L805.632 640H96a32 32 0 0 1-32-32"})]))}}),Cx=wx,Sx=T({name:"TakeawayBox",__name:"takeaway-box",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M832 384H192v448h640zM96 320h832V128H96zm800 64v480a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V384H64a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32h896a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zM416 512h192a32 32 0 0 1 0 64H416a32 32 0 0 1 0-64"})]))}}),kx=Sx,Ex=T({name:"Ticket",__name:"ticket",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M640 832H64V640a128 128 0 1 0 0-256V192h576v160h64V192h256v192a128 128 0 1 0 0 256v192H704V672h-64zm0-416v192h64V416z"})]))}}),xx=Ex,Mx=T({name:"Tickets",__name:"tickets",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M192 128v768h640V128zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h192v64H320zm0 384h384v64H320z"})]))}}),$x=Mx,Tx=T({name:"Timer",__name:"timer",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 896a320 320 0 1 0 0-640 320 320 0 0 0 0 640m0 64a384 384 0 1 1 0-768 384 384 0 0 1 0 768"}),k("path",{fill:"currentColor",d:"M512 320a32 32 0 0 1 32 32l-.512 224a32 32 0 1 1-64 0L480 352a32 32 0 0 1 32-32"}),k("path",{fill:"currentColor",d:"M448 576a64 64 0 1 0 128 0 64 64 0 1 0-128 0m96-448v128h-64V128h-96a32 32 0 0 1 0-64h256a32 32 0 1 1 0 64z"})]))}}),Ox=Tx,Nx=T({name:"ToiletPaper",__name:"toilet-paper",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M595.2 128H320a192 192 0 0 0-192 192v576h384V352c0-90.496 32.448-171.2 83.2-224M736 64c123.712 0 224 128.96 224 288S859.712 640 736 640H576v320H64V320A256 256 0 0 1 320 64zM576 352v224h160c84.352 0 160-97.28 160-224s-75.648-224-160-224-160 97.28-160 224"}),k("path",{fill:"currentColor",d:"M736 448c-35.328 0-64-43.008-64-96s28.672-96 64-96 64 43.008 64 96-28.672 96-64 96"})]))}}),Ix=Nx,Px=T({name:"Tools",__name:"tools",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M764.416 254.72a351.68 351.68 0 0 1 86.336 149.184H960v192.064H850.752a351.68 351.68 0 0 1-86.336 149.312l54.72 94.72-166.272 96-54.592-94.72a352.64 352.64 0 0 1-172.48 0L371.136 936l-166.272-96 54.72-94.72a351.68 351.68 0 0 1-86.336-149.312H64v-192h109.248a351.68 351.68 0 0 1 86.336-149.312L204.8 160l166.208-96h.192l54.656 94.592a352.64 352.64 0 0 1 172.48 0L652.8 64h.128L819.2 160l-54.72 94.72zM704 499.968a192 192 0 1 0-384 0 192 192 0 0 0 384 0"})]))}}),zx=Px,Ax=T({name:"TopLeft",__name:"top-left",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M256 256h416a32 32 0 1 0 0-64H224a32 32 0 0 0-32 32v448a32 32 0 0 0 64 0z"}),k("path",{fill:"currentColor",d:"M246.656 201.344a32 32 0 0 0-45.312 45.312l544 544a32 32 0 0 0 45.312-45.312l-544-544z"})]))}}),Vx=Ax,Lx=T({name:"TopRight",__name:"top-right",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M768 256H353.6a32 32 0 1 1 0-64H800a32 32 0 0 1 32 32v448a32 32 0 0 1-64 0z"}),k("path",{fill:"currentColor",d:"M777.344 201.344a32 32 0 0 1 45.312 45.312l-544 544a32 32 0 0 1-45.312-45.312l544-544z"})]))}}),Rx=Lx,Bx=T({name:"Top",__name:"top",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M572.235 205.282v600.365a30.118 30.118 0 1 1-60.235 0V205.282L292.382 438.633a28.913 28.913 0 0 1-42.646 0 33.43 33.43 0 0 1 0-45.236l271.058-288.045a28.913 28.913 0 0 1 42.647 0L834.5 393.397a33.43 33.43 0 0 1 0 45.176 28.913 28.913 0 0 1-42.647 0l-219.618-233.23z"})]))}}),Hx=Bx,Dx=T({name:"TrendCharts",__name:"trend-charts",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128 896V128h768v768zm291.712-327.296 128 102.4 180.16-201.792-47.744-42.624-139.84 156.608-128-102.4-180.16 201.792 47.744 42.624 139.84-156.608zM816 352a48 48 0 1 0-96 0 48 48 0 0 0 96 0"})]))}}),Fx=Dx,Kx=T({name:"TrophyBase",__name:"trophy-base",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M918.4 201.6c-6.4-6.4-12.8-9.6-22.4-9.6H768V96c0-9.6-3.2-16-9.6-22.4C752 67.2 745.6 64 736 64H288c-9.6 0-16 3.2-22.4 9.6C259.2 80 256 86.4 256 96v96H128c-9.6 0-16 3.2-22.4 9.6-6.4 6.4-9.6 16-9.6 22.4 3.2 108.8 25.6 185.6 64 224 34.4 34.4 77.56 55.65 127.65 61.99 10.91 20.44 24.78 39.25 41.95 56.41 40.86 40.86 91 65.47 150.4 71.9V768h-96c-9.6 0-16 3.2-22.4 9.6-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4c6.4 6.4 12.8 9.6 22.4 9.6h256c9.6 0 16-3.2 22.4-9.6 6.4-6.4 9.6-12.8 9.6-22.4s-3.2-16-9.6-22.4c-6.4-6.4-12.8-9.6-22.4-9.6h-96V637.26c59.4-7.71 109.54-30.01 150.4-70.86 17.2-17.2 31.51-36.06 42.81-56.55 48.93-6.51 90.02-27.7 126.79-61.85 38.4-38.4 60.8-112 64-224 0-6.4-3.2-16-9.6-22.4zM256 438.4c-19.2-6.4-35.2-19.2-51.2-35.2-22.4-22.4-35.2-70.4-41.6-147.2H256zm390.4 80C608 553.6 566.4 576 512 576s-99.2-19.2-134.4-57.6C342.4 480 320 438.4 320 384V128h384v256c0 54.4-19.2 99.2-57.6 134.4m172.8-115.2c-16 16-32 25.6-51.2 35.2V256h92.8c-6.4 76.8-19.2 124.8-41.6 147.2zM768 896H256c-9.6 0-16 3.2-22.4 9.6-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4c6.4 6.4 12.8 9.6 22.4 9.6h512c9.6 0 16-3.2 22.4-9.6 6.4-6.4 9.6-12.8 9.6-22.4s-3.2-16-9.6-22.4c-6.4-6.4-12.8-9.6-22.4-9.6"})]))}}),Wx=Kx,jx=T({name:"Trophy",__name:"trophy",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M480 896V702.08A256.256 256.256 0 0 1 264.064 512h-32.64a96 96 0 0 1-91.968-68.416L93.632 290.88a76.8 76.8 0 0 1 73.6-98.88H256V96a32 32 0 0 1 32-32h448a32 32 0 0 1 32 32v96h88.768a76.8 76.8 0 0 1 73.6 98.88L884.48 443.52A96 96 0 0 1 792.576 512h-32.64A256.256 256.256 0 0 1 544 702.08V896h128a32 32 0 1 1 0 64H352a32 32 0 1 1 0-64zm224-448V128H320v320a192 192 0 1 0 384 0m64 0h24.576a32 32 0 0 0 30.656-22.784l45.824-152.768A12.8 12.8 0 0 0 856.768 256H768zm-512 0V256h-88.768a12.8 12.8 0 0 0-12.288 16.448l45.824 152.768A32 32 0 0 0 231.424 448z"})]))}}),qx=jx,Ux=T({name:"TurnOff",__name:"turn-off",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M329.956 257.138a254.862 254.862 0 0 0 0 509.724h364.088a254.862 254.862 0 0 0 0-509.724zm0-72.818h364.088a327.68 327.68 0 1 1 0 655.36H329.956a327.68 327.68 0 1 1 0-655.36z"}),k("path",{fill:"currentColor",d:"M329.956 621.227a109.227 109.227 0 1 0 0-218.454 109.227 109.227 0 0 0 0 218.454m0 72.817a182.044 182.044 0 1 1 0-364.088 182.044 182.044 0 0 1 0 364.088"})]))}}),Yx=Ux,Gx=T({name:"Umbrella",__name:"umbrella",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M320 768a32 32 0 1 1 64 0 64 64 0 0 0 128 0V512H64a448 448 0 1 1 896 0H576v256a128 128 0 1 1-256 0m570.688-320a384.128 384.128 0 0 0-757.376 0z"})]))}}),Xx=Gx,Zx=T({name:"Unlock",__name:"unlock",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96"}),k("path",{fill:"currentColor",d:"M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32m178.304-295.296A192.064 192.064 0 0 0 320 320v64h352l96 38.4V448H256V320a256 256 0 0 1 493.76-95.104z"})]))}}),Jx=Zx,Qx=T({name:"UploadFilled",__name:"upload-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M544 864V672h128L512 480 352 672h128v192H320v-1.6c-5.376.32-10.496 1.6-16 1.6A240 240 0 0 1 64 624c0-123.136 93.12-223.488 212.608-237.248A239.808 239.808 0 0 1 512 192a239.872 239.872 0 0 1 235.456 194.752c119.488 13.76 212.48 114.112 212.48 237.248a240 240 0 0 1-240 240c-5.376 0-10.56-1.28-16-1.6v1.6z"})]))}}),eM=Qx,tM=T({name:"Upload",__name:"upload",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-578.304V704h-64V247.296L237.248 490.048 192 444.8 508.8 128l316.8 316.8-45.312 45.248z"})]))}}),nM=tM,aM=T({name:"UserFilled",__name:"user-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M288 320a224 224 0 1 0 448 0 224 224 0 1 0-448 0m544 608H160a32 32 0 0 1-32-32v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 0 1-32 32z"})]))}}),lM=aM,oM=T({name:"User",__name:"user",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m320 320v-96a96 96 0 0 0-96-96H288a96 96 0 0 0-96 96v96a32 32 0 1 1-64 0v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 1 1-64 0"})]))}}),rM=oM,sM=T({name:"Van",__name:"van",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M128.896 736H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v96h164.544a32 32 0 0 1 31.616 27.136l54.144 352A32 32 0 0 1 922.688 736h-91.52a144 144 0 1 1-286.272 0H415.104a144 144 0 1 1-286.272 0zm23.36-64a143.872 143.872 0 0 1 239.488 0H568.32c17.088-25.6 42.24-45.376 71.744-55.808V256H128v416zm655.488 0h77.632l-19.648-128H704v64.896A144 144 0 0 1 807.744 672m48.128-192-14.72-96H704v96h151.872M688 832a80 80 0 1 0 0-160 80 80 0 0 0 0 160m-416 0a80 80 0 1 0 0-160 80 80 0 0 0 0 160"})]))}}),iM=sM,uM=T({name:"VideoCameraFilled",__name:"video-camera-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m768 576 192-64v320l-192-64v96a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V480a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zM192 768v64h384v-64zm192-480a160 160 0 0 1 320 0 160 160 0 0 1-320 0m64 0a96 96 0 1 0 192.064-.064A96 96 0 0 0 448 288m-320 32a128 128 0 1 1 256.064.064A128 128 0 0 1 128 320m64 0a64 64 0 1 0 128 0 64 64 0 0 0-128 0"})]))}}),cM=uM,dM=T({name:"VideoCamera",__name:"video-camera",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M704 768V256H128v512zm64-416 192-96v512l-192-96v128a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 71.552v176.896l128 64V359.552zM192 320h192v64H192z"})]))}}),fM=dM,pM=T({name:"VideoPause",__name:"video-pause",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m-96-544q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32m192 0q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32"})]))}}),vM=pM,hM=T({name:"VideoPlay",__name:"video-play",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m-48-247.616L668.608 512 464 375.616zm10.624-342.656 249.472 166.336a48 48 0 0 1 0 79.872L474.624 718.272A48 48 0 0 1 400 678.336V345.6a48 48 0 0 1 74.624-39.936z"})]))}}),mM=hM,gM=T({name:"View",__name:"view",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 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-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),ev=gM,yM=T({name:"WalletFilled",__name:"wallet-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M688 512a112 112 0 1 0 0 224h208v160H128V352h768v160zm32 160h-32a48 48 0 0 1 0-96h32a48 48 0 0 1 0 96m-80-544 128 160H384z"})]))}}),_M=yM,bM=T({name:"Wallet",__name:"wallet",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M640 288h-64V128H128v704h384v32a32 32 0 0 0 32 32H96a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32h512a32 32 0 0 1 32 32z"}),k("path",{fill:"currentColor",d:"M128 320v512h768V320zm-32-64h832a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32"}),k("path",{fill:"currentColor",d:"M704 640a64 64 0 1 1 0-128 64 64 0 0 1 0 128"})]))}}),wM=bM,CM=T({name:"WarnTriangleFilled",__name:"warn-triangle-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M928.99 755.83 574.6 203.25c-12.89-20.16-36.76-32.58-62.6-32.58s-49.71 12.43-62.6 32.58L95.01 755.83c-12.91 20.12-12.9 44.91.01 65.03 12.92 20.12 36.78 32.51 62.59 32.49h708.78c25.82.01 49.68-12.37 62.59-32.49 12.91-20.12 12.92-44.91.01-65.03M554.67 768h-85.33v-85.33h85.33zm0-426.67v298.66h-85.33V341.32z"})]))}}),SM=CM,kM=T({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),Ir=kM,EM=T({name:"Warning",__name:"warning",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m48-176a48 48 0 1 1-96 0 48 48 0 0 1 96 0m-48-464a32 32 0 0 1 32 32v288a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"})]))}}),xM=EM,MM=T({name:"Watch",__name:"watch",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M512 768a256 256 0 1 0 0-512 256 256 0 0 0 0 512m0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640"}),k("path",{fill:"currentColor",d:"M480 352a32 32 0 0 1 32 32v160a32 32 0 0 1-64 0V384a32 32 0 0 1 32-32"}),k("path",{fill:"currentColor",d:"M480 512h128q32 0 32 32t-32 32H480q-32 0-32-32t32-32m128-256V128H416v128h-64V64h320v192zM416 768v128h192V768h64v192H352V768z"})]))}}),$M=MM,TM=T({name:"Watermelon",__name:"watermelon",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m683.072 600.32-43.648 162.816-61.824-16.512 53.248-198.528L576 493.248l-158.4 158.4-45.248-45.248 158.4-158.4-55.616-55.616-198.528 53.248-16.512-61.824 162.816-43.648L282.752 200A384 384 0 0 0 824 741.248zm231.552 141.056a448 448 0 1 1-632-632l632 632"})]))}}),OM=TM,NM=T({name:"WindPower",__name:"wind-power",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"M160 64q32 0 32 32v832q0 32-32 32t-32-32V96q0-32 32-32m416 354.624 128-11.584V168.96l-128-11.52v261.12zm-64 5.824V151.552L320 134.08V160h-64V64l616.704 56.064A96 96 0 0 1 960 215.68v144.64a96 96 0 0 1-87.296 95.616L256 512V224h64v217.92zm256-23.232 98.88-8.96A32 32 0 0 0 896 360.32V215.68a32 32 0 0 0-29.12-31.872l-98.88-8.96z"})]))}}),IM=NM,PM=T({name:"ZoomIn",__name:"zoom-in",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))}}),cd=PM,zM=T({name:"ZoomOut",__name:"zoom-out",setup(e){return(t,n)=>(_(),M("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[k("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704M352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64"})]))}}),tv=zM;const DX=Object.freeze(Object.defineProperty({__proto__:null,AddLocation:Ib,Aim:zb,AlarmClock:Vb,Apple:Rb,ArrowDown:Ma,ArrowDownBold:Hb,ArrowLeft:La,ArrowLeftBold:Kb,ArrowRight:En,ArrowRightBold:qb,ArrowUp:bi,ArrowUpBold:Gb,Avatar:Jb,Back:A1,Baseball:tw,Basketball:aw,Bell:sw,BellFilled:ow,Bicycle:uw,Bottom:hw,BottomLeft:dw,BottomRight:pw,Bowl:gw,Box:_w,Briefcase:ww,Brush:Ew,BrushFilled:Sw,Burger:Mw,Calendar:V1,Camera:Iw,CameraFilled:Ow,CaretBottom:zw,CaretLeft:Vw,CaretRight:rd,CaretTop:L1,Cellphone:Hw,ChatDotRound:Fw,ChatDotSquare:Ww,ChatLineRound:qw,ChatLineSquare:Yw,ChatRound:Xw,ChatSquare:Jw,Check:zo,Checked:t5,Cherry:a5,Chicken:o5,ChromeFilled:s5,CircleCheck:wi,CircleCheckFilled:R1,CircleClose:$a,CircleCloseFilled:Ci,CirclePlus:h5,CirclePlusFilled:p5,Clock:sd,Close:Xn,CloseBold:y5,Cloudy:w5,Coffee:E5,CoffeeCup:S5,Coin:M5,ColdDrink:T5,Collection:P5,CollectionTag:N5,Comment:A5,Compass:L5,Connection:B5,Coordinate:D5,CopyDocument:K5,Cpu:j5,CreditCard:U5,Crop:G5,DArrowLeft:Ra,DArrowRight:Ba,DCaret:Q5,DataAnalysis:t9,DataBoard:a9,DataLine:o9,Delete:B1,DeleteFilled:s9,DeleteLocation:u9,Dessert:f9,Discount:v9,Dish:y9,DishDot:m9,Document:H1,DocumentAdd:b9,DocumentChecked:C9,DocumentCopy:k9,DocumentDelete:x9,DocumentRemove:$9,Download:N9,Drizzling:P9,Edit:L9,EditPen:A9,Eleme:D9,ElemeFilled:B9,ElementPlus:K9,Expand:j9,Failed:U9,Female:G9,Files:Z9,Film:Q9,Filter:tC,Finished:aC,FirstAidKit:oC,Flag:sC,Fold:uC,Folder:wC,FolderAdd:dC,FolderChecked:pC,FolderDelete:hC,FolderOpened:gC,FolderRemove:_C,Food:SC,Football:EC,ForkSpoon:MC,Fries:TC,FullScreen:D1,Goblet:RC,GobletFull:IC,GobletSquare:VC,GobletSquareFull:zC,GoldMedal:HC,Goods:WC,GoodsFilled:FC,Grape:qC,Grid:YC,Guide:XC,Handbag:JC,Headset:e7,Help:l7,HelpFilled:n7,Hide:F1,Histogram:s7,HomeFilled:u7,HotWater:d7,House:p7,IceCream:_7,IceCreamRound:h7,IceCreamSquare:g7,IceDrink:w7,IceTea:S7,InfoFilled:Si,Iphone:x7,Key:$7,KnifeFork:O7,Lightning:I7,Link:z7,List:V7,Loading:ca,Location:K7,LocationFilled:B7,LocationInformation:D7,Lock:j7,Lollipop:U7,MagicStick:G7,Magnet:Z7,Male:Q7,Management:tS,MapLocation:aS,Medal:oS,Memo:sS,Menu:uS,Message:pS,MessageBox:dS,Mic:hS,Microphone:gS,MilkTea:_S,Minus:K1,Money:CS,Monitor:kS,Moon:$S,MoonNight:xS,More:W1,MoreFilled:zu,MostlyCloudy:IS,Mouse:zS,Mug:VS,Mute:HS,MuteNotification:RS,NoSmoking:FS,Notebook:WS,Notification:qS,Odometer:YS,OfficeBuilding:XS,Open:JS,Operation:ek,Opportunity:nk,Orange:lk,Paperclip:rk,PartlyCloudy:ik,Pear:ck,Phone:vk,PhoneFilled:fk,Picture:_k,PictureFilled:j1,PictureRounded:gk,PieChart:wk,Place:Sk,Platform:Ek,Plus:id,Pointer:$k,Position:Ok,Postcard:Ik,Pouring:zk,Present:Vk,PriceTag:Rk,Printer:Hk,Promotion:Fk,QuartzWatch:Wk,QuestionFilled:q1,Rank:Uk,Reading:Zk,ReadingLamp:Gk,Refresh:tE,RefreshLeft:U1,RefreshRight:Y1,Refrigerator:aE,Remove:sE,RemoveFilled:oE,Right:uE,ScaleToOriginal:G1,School:fE,Scissor:vE,Search:X1,Select:gE,Sell:_E,SemiSelect:wE,Service:SE,SetUp:EE,Setting:ME,Share:TE,Ship:NE,Shop:PE,ShoppingBag:AE,ShoppingCart:BE,ShoppingCartFull:LE,ShoppingTrolley:DE,Smoking:KE,Soccer:jE,SoldOut:UE,Sort:ZE,SortDown:Z1,SortUp:J1,Stamp:QE,Star:Q1,StarFilled:Uo,Stopwatch:ax,SuccessFilled:ud,Sugar:rx,Suitcase:cx,SuitcaseLine:ix,Sunny:fx,Sunrise:vx,Sunset:mx,Switch:Cx,SwitchButton:yx,SwitchFilled:bx,TakeawayBox:kx,Ticket:xx,Tickets:$x,Timer:Ox,ToiletPaper:Ix,Tools:zx,Top:Hx,TopLeft:Vx,TopRight:Rx,TrendCharts:Fx,Trophy:qx,TrophyBase:Wx,TurnOff:Yx,Umbrella:Xx,Unlock:Jx,Upload:nM,UploadFilled:eM,User:rM,UserFilled:lM,Van:iM,VideoCamera:fM,VideoCameraFilled:cM,VideoPause:vM,VideoPlay:mM,View:ev,Wallet:wM,WalletFilled:_M,WarnTriangleFilled:SM,Warning:xM,WarningFilled:Ir,Watch:$M,Watermelon:OM,WindPower:IM,ZoomIn:cd,ZoomOut:tv},Symbol.toStringTag,{value:"Module"})),St=X([String,Object,Function]),dd={Close:Xn},fd={Close:Xn,SuccessFilled:ud,InfoFilled:Si,WarningFilled:Ir,CircleCloseFilled:Ci},il={success:ud,warning:Ir,error:Ci,info:Si},ki={validating:ca,success:wi,error:$a},AM=["light","dark"],VM=pe({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:fo(il),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:AM,default:"light"}}),LM={close:e=>e instanceof MouseEvent},RM=T({name:"ElAlert"}),BM=T({...RM,props:VM,emits:LM,setup(e,{emit:t}){const n=e,{Close:a}=fd,l=Xt(),r=de("alert"),s=A(!0),i=C(()=>il[n.type]),u=C(()=>!!(n.description||l.default)),c=d=>{s.value=!1,t("close",d)};return(d,f)=>(_(),ae(tn,{name:o(r).b("fade"),persisted:""},{default:G(()=>[qe(k("div",{class:$([o(r).b(),o(r).m(d.type),o(r).is("center",d.center),o(r).is(d.effect)]),role:"alert"},[d.showIcon&&o(i)?(_(),ae(o(Me),{key:0,class:$([o(r).e("icon"),{[o(r).is("big")]:o(u)}])},{default:G(()=>[(_(),ae(Qe(o(i))))]),_:1},8,["class"])):ee("v-if",!0),k("div",{class:$(o(r).e("content"))},[d.title||d.$slots.title?(_(),M("span",{key:0,class:$([o(r).e("title"),{"with-description":o(u)}])},[Q(d.$slots,"title",{},()=>[ot(he(d.title),1)])],2)):ee("v-if",!0),o(u)?(_(),M("p",{key:1,class:$(o(r).e("description"))},[Q(d.$slots,"default",{},()=>[ot(he(d.description),1)])],2)):ee("v-if",!0),d.closable?(_(),M(ze,{key:2},[d.closeText?(_(),M("div",{key:0,class:$([o(r).e("close-btn"),o(r).is("customed")]),onClick:c},he(d.closeText),3)):(_(),ae(o(Me),{key:1,class:$(o(r).e("close-btn")),onClick:c},{default:G(()=>[q(o(a))]),_:1},8,["class"]))],64)):ee("v-if",!0)],2)],2),[[pt,s.value]])]),_:3},8,["name"]))}});var HM=ve(BM,[["__file","alert.vue"]]);const DM=We(HM),Ei=()=>ut&&/firefox/i.test(window.navigator.userAgent);let ta;const FM=` + height:0 !important; + visibility:hidden !important; + ${Ei()?"":"overflow:hidden !important;"} + position:absolute !important; + z-index:-1000 !important; + top:0 !important; + right:0 !important; +`,KM=["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 WM(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),a=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),l=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:KM.map(s=>`${s}:${t.getPropertyValue(s)}`).join(";"),paddingSize:a,borderSize:l,boxSizing:n}}function C0(e,t=1,n){var a;ta||(ta=document.createElement("textarea"),document.body.appendChild(ta));const{paddingSize:l,borderSize:r,boxSizing:s,contextStyle:i}=WM(e);ta.setAttribute("style",`${i};${FM}`),ta.value=e.value||e.placeholder||"";let u=ta.scrollHeight;const c={};s==="border-box"?u=u+r:s==="content-box"&&(u=u-l),ta.value="";const d=ta.scrollHeight-l;if(Ie(t)){let f=d*t;s==="border-box"&&(f=f+l+r),u=Math.max(f,u),c.minHeight=`${f}px`}if(Ie(n)){let f=d*n;s==="border-box"&&(f=f+l+r),u=Math.min(f,u)}return c.height=`${u}px`,(a=ta.parentNode)==null||a.removeChild(ta),ta=void 0,c}const Vt=e=>e,jM=pe({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),rn=e=>ra(jM,e),pd=pe({id:{type:String,default:void 0},size:qt,disabled:Boolean,modelValue:{type:X([String,Number,Object]),default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:X([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,showPassword:Boolean,showWordLimit:Boolean,suffixIcon:{type:St},prefixIcon:{type:St},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:X([Object,Array,String]),default:()=>Vt({})},autofocus:Boolean,rows:{type:Number,default:2},...rn(["ariaLabel"])}),qM={[Ue]:e=>Ve(e),input:e=>Ve(e),change:e=>Ve(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},UM=["class","style"],YM=/^on[A-Z]/,Pr=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,a=C(()=>((n==null?void 0:n.value)||[]).concat(UM)),l=et();return l?C(()=>{var r;return cr(Object.entries((r=l.proxy)==null?void 0:r.$attrs).filter(([s])=>!a.value.includes(s)&&!(t&&YM.test(s))))}):C(()=>({}))},Hl=Symbol("formContextKey"),Sa=Symbol("formItemContextKey"),S0={prefix:Math.floor(Math.random()*1e4),current:0},GM=Symbol("elIdInjection"),vd=()=>et()?Se(GM,S0):S0,on=e=>{const t=vd(),n=Bc();return Nu(()=>o(e)||`${n.value}-id-${t.prefix}-${t.current++}`)},mn=()=>{const e=Se(Hl,void 0),t=Se(Sa,void 0);return{form:e,formItem:t}},ea=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:a})=>{n||(n=A(!1)),a||(a=A(!1));const l=A();let r;const s=C(()=>{var i;return!!(!(e.label||e.ariaLabel)&&t&&t.inputIds&&((i=t.inputIds)==null?void 0:i.length)<=1)});return Xe(()=>{r=ue([yt(e,"id"),n],([i,u])=>{const c=i??(u?void 0:on().value);c!==l.value&&(t!=null&&t.removeInputId&&(l.value&&t.removeInputId(l.value),!(a!=null&&a.value)&&!u&&c&&t.addInputId(c)),l.value=c)},{immediate:!0})}),Mo(()=>{r&&r(),t!=null&&t.removeInputId&&l.value&&t.removeInputId(l.value)}),{isLabeledByFormItem:s,inputId:l}},nv=e=>{const t=et();return C(()=>{var n,a;return(a=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:a[e]})},jt=(e,t={})=>{const n=A(void 0),a=t.prop?n:nv("size"),l=t.global?n:M1(),r=t.form?{size:void 0}:Se(Hl,void 0),s=t.formItem?{size:void 0}:Se(Sa,void 0);return C(()=>a.value||o(e)||(s==null?void 0:s.size)||(r==null?void 0:r.size)||l.value||"")},gn=e=>{const t=nv("disabled"),n=Se(Hl,void 0);return C(()=>t.value||o(e)||(n==null?void 0:n.disabled)||!1)};function dl(e,{beforeFocus:t,afterFocus:n,beforeBlur:a,afterBlur:l}={}){const r=et(),{emit:s}=r,i=Ot(),u=A(!1),c=h=>{Je(t)&&t(h)||u.value||(u.value=!0,s("focus",h),n==null||n())},d=h=>{var v;Je(a)&&a(h)||h.relatedTarget&&((v=i.value)!=null&&v.contains(h.relatedTarget))||(u.value=!1,s("blur",h),l==null||l())},f=()=>{var h,v;(h=i.value)!=null&&h.contains(document.activeElement)&&i.value!==document.activeElement||(v=e.value)==null||v.focus()};return ue(i,h=>{h&&h.setAttribute("tabindex","-1")}),wt(i,"focus",c,!0),wt(i,"blur",d,!0),wt(i,"click",f,!0),{isFocused:u,wrapperRef:i,handleFocus:c,handleBlur:d}}const XM=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e);function zr({afterComposition:e,emit:t}){const n=A(!1),a=i=>{t==null||t("compositionstart",i),n.value=!0},l=i=>{var u;t==null||t("compositionupdate",i);const c=(u=i.target)==null?void 0:u.value,d=c[c.length-1]||"";n.value=!XM(d)},r=i=>{t==null||t("compositionend",i),n.value&&(n.value=!1,Ne(()=>e(i)))};return{isComposing:n,handleComposition:i=>{i.type==="compositionend"?r(i):l(i)},handleCompositionStart:a,handleCompositionUpdate:l,handleCompositionEnd:r}}function ZM(e){let t;function n(){if(e.value==null)return;const{selectionStart:l,selectionEnd:r,value:s}=e.value;if(l==null||r==null)return;const i=s.slice(0,Math.max(0,l)),u=s.slice(Math.max(0,r));t={selectionStart:l,selectionEnd:r,value:s,beforeTxt:i,afterTxt:u}}function a(){if(e.value==null||t==null)return;const{value:l}=e.value,{beforeTxt:r,afterTxt:s,selectionStart:i}=t;if(r==null||s==null||i==null)return;let u=l.length;if(l.endsWith(s))u=l.length-s.length;else if(l.startsWith(r))u=r.length;else{const c=r[i-1],d=l.indexOf(c,i-1);d!==-1&&(u=d+1)}e.value.setSelectionRange(u,u)}return[n,a]}const JM=T({name:"ElInput",inheritAttrs:!1}),QM=T({...JM,props:pd,emits:qM,setup(e,{expose:t,emit:n}){const a=e,l=Ka(),r=Pr(),s=Xt(),i=C(()=>[a.type==="textarea"?p.b():m.b(),m.m(h.value),m.is("disabled",v.value),m.is("exceed",Z.value),{[m.b("group")]:s.prepend||s.append,[m.m("prefix")]:s.prefix||a.prefixIcon,[m.m("suffix")]:s.suffix||a.suffixIcon||a.clearable||a.showPassword,[m.bm("suffix","password-clear")]:B.value&&z.value,[m.b("hidden")]:a.type==="hidden"},l.class]),u=C(()=>[m.e("wrapper"),m.is("focus",I.value)]),{form:c,formItem:d}=mn(),{inputId:f}=ea(a,{formItemContext:d}),h=jt(),v=gn(),m=de("input"),p=de("textarea"),y=Ot(),g=Ot(),x=A(!1),w=A(!1),b=A(),S=Ot(a.inputStyle),E=C(()=>y.value||g.value),{wrapperRef:O,isFocused:I,handleFocus:N,handleBlur:P}=dl(E,{beforeFocus(){return v.value},afterBlur(){var be;a.validateEvent&&((be=d==null?void 0:d.validate)==null||be.call(d,"blur").catch(je=>void 0))}}),L=C(()=>{var be;return(be=c==null?void 0:c.statusIcon)!=null?be:!1}),R=C(()=>(d==null?void 0:d.validateState)||""),K=C(()=>R.value&&ki[R.value]),U=C(()=>w.value?ev:F1),H=C(()=>[l.style]),V=C(()=>[a.inputStyle,S.value,{resize:a.resize}]),D=C(()=>Zt(a.modelValue)?"":String(a.modelValue)),B=C(()=>a.clearable&&!v.value&&!a.readonly&&!!D.value&&(I.value||x.value)),z=C(()=>a.showPassword&&!v.value&&!!D.value&&(!!D.value||I.value)),F=C(()=>a.showWordLimit&&!!a.maxlength&&(a.type==="text"||a.type==="textarea")&&!v.value&&!a.readonly&&!a.showPassword),W=C(()=>D.value.length),Z=C(()=>!!F.value&&W.value>Number(a.maxlength)),j=C(()=>!!s.suffix||!!a.suffixIcon||B.value||a.showPassword||F.value||!!R.value&&L.value),[ne,oe]=ZM(y);At(g,be=>{if(se(),!F.value||a.resize!=="both")return;const je=be[0],{width:ft}=je.contentRect;b.value={right:`calc(100% - ${ft+15+6}px)`}});const ce=()=>{const{type:be,autosize:je}=a;if(!(!ut||be!=="textarea"||!g.value))if(je){const ft=ht(je)?je.minRows:void 0,Tt=ht(je)?je.maxRows:void 0,bt=C0(g.value,ft,Tt);S.value={overflowY:"hidden",...bt},Ne(()=>{g.value.offsetHeight,S.value=bt})}else S.value={minHeight:C0(g.value).minHeight}},se=(be=>{let je=!1;return()=>{var ft;if(je||!a.autosize)return;((ft=g.value)==null?void 0:ft.offsetParent)===null||(be(),je=!0)}})(ce),fe=()=>{const be=E.value,je=a.formatter?a.formatter(D.value):D.value;!be||be.value===je||(be.value=je)},xe=async be=>{ne();let{value:je}=be.target;if(a.formatter&&(je=a.parser?a.parser(je):je),!le.value){if(je===D.value){fe();return}n(Ue,je),n("input",je),await Ne(),fe(),oe()}},me=be=>{n("change",be.target.value)},{isComposing:le,handleCompositionStart:we,handleCompositionUpdate:Le,handleCompositionEnd:De}=zr({emit:n,afterComposition:xe}),Ye=()=>{ne(),w.value=!w.value,setTimeout(oe)},$e=()=>{var be;return(be=E.value)==null?void 0:be.focus()},Te=()=>{var be;return(be=E.value)==null?void 0:be.blur()},ke=be=>{x.value=!1,n("mouseleave",be)},He=be=>{x.value=!0,n("mouseenter",be)},Ge=be=>{n("keydown",be)},at=()=>{var be;(be=E.value)==null||be.select()},nt=()=>{n(Ue,""),n("change",""),n("clear"),n("input","")};return ue(()=>a.modelValue,()=>{var be;Ne(()=>ce()),a.validateEvent&&((be=d==null?void 0:d.validate)==null||be.call(d,"change").catch(je=>void 0))}),ue(D,()=>fe()),ue(()=>a.type,async()=>{await Ne(),fe(),ce()}),Xe(()=>{!a.formatter&&a.parser,fe(),Ne(ce)}),t({input:y,textarea:g,ref:E,textareaStyle:V,autosize:yt(a,"autosize"),isComposing:le,focus:$e,blur:Te,select:at,clear:nt,resizeTextarea:ce}),(be,je)=>(_(),M("div",{class:$([o(i),{[o(m).bm("group","append")]:be.$slots.append,[o(m).bm("group","prepend")]:be.$slots.prepend}]),style:Oe(o(H)),onMouseenter:He,onMouseleave:ke},[ee(" input "),be.type!=="textarea"?(_(),M(ze,{key:0},[ee(" prepend slot "),be.$slots.prepend?(_(),M("div",{key:0,class:$(o(m).be("group","prepend"))},[Q(be.$slots,"prepend")],2)):ee("v-if",!0),k("div",{ref_key:"wrapperRef",ref:O,class:$(o(u))},[ee(" prefix slot "),be.$slots.prefix||be.prefixIcon?(_(),M("span",{key:0,class:$(o(m).e("prefix"))},[k("span",{class:$(o(m).e("prefix-inner"))},[Q(be.$slots,"prefix"),be.prefixIcon?(_(),ae(o(Me),{key:0,class:$(o(m).e("icon"))},{default:G(()=>[(_(),ae(Qe(be.prefixIcon)))]),_:1},8,["class"])):ee("v-if",!0)],2)],2)):ee("v-if",!0),k("input",tt({id:o(f),ref_key:"input",ref:y,class:o(m).e("inner")},o(r),{minlength:be.minlength,maxlength:be.maxlength,type:be.showPassword?w.value?"text":"password":be.type,disabled:o(v),readonly:be.readonly,autocomplete:be.autocomplete,tabindex:be.tabindex,"aria-label":be.ariaLabel,placeholder:be.placeholder,style:be.inputStyle,form:be.form,autofocus:be.autofocus,role:be.containerRole,onCompositionstart:o(we),onCompositionupdate:o(Le),onCompositionend:o(De),onInput:xe,onChange:me,onKeydown:Ge}),null,16,["id","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus","role","onCompositionstart","onCompositionupdate","onCompositionend"]),ee(" suffix slot "),o(j)?(_(),M("span",{key:1,class:$(o(m).e("suffix"))},[k("span",{class:$(o(m).e("suffix-inner"))},[!o(B)||!o(z)||!o(F)?(_(),M(ze,{key:0},[Q(be.$slots,"suffix"),be.suffixIcon?(_(),ae(o(Me),{key:0,class:$(o(m).e("icon"))},{default:G(()=>[(_(),ae(Qe(be.suffixIcon)))]),_:1},8,["class"])):ee("v-if",!0)],64)):ee("v-if",!0),o(B)?(_(),ae(o(Me),{key:1,class:$([o(m).e("icon"),o(m).e("clear")]),onMousedown:Ae(o(zt),["prevent"]),onClick:nt},{default:G(()=>[q(o($a))]),_:1},8,["class","onMousedown"])):ee("v-if",!0),o(z)?(_(),ae(o(Me),{key:2,class:$([o(m).e("icon"),o(m).e("password")]),onClick:Ye},{default:G(()=>[(_(),ae(Qe(o(U))))]),_:1},8,["class"])):ee("v-if",!0),o(F)?(_(),M("span",{key:3,class:$(o(m).e("count"))},[k("span",{class:$(o(m).e("count-inner"))},he(o(W))+" / "+he(be.maxlength),3)],2)):ee("v-if",!0),o(R)&&o(K)&&o(L)?(_(),ae(o(Me),{key:4,class:$([o(m).e("icon"),o(m).e("validateIcon"),o(m).is("loading",o(R)==="validating")])},{default:G(()=>[(_(),ae(Qe(o(K))))]),_:1},8,["class"])):ee("v-if",!0)],2)],2)):ee("v-if",!0)],2),ee(" append slot "),be.$slots.append?(_(),M("div",{key:1,class:$(o(m).be("group","append"))},[Q(be.$slots,"append")],2)):ee("v-if",!0)],64)):(_(),M(ze,{key:1},[ee(" textarea "),k("textarea",tt({id:o(f),ref_key:"textarea",ref:g,class:[o(p).e("inner"),o(m).is("focus",o(I))]},o(r),{minlength:be.minlength,maxlength:be.maxlength,tabindex:be.tabindex,disabled:o(v),readonly:be.readonly,autocomplete:be.autocomplete,style:o(V),"aria-label":be.ariaLabel,placeholder:be.placeholder,form:be.form,autofocus:be.autofocus,rows:be.rows,role:be.containerRole,onCompositionstart:o(we),onCompositionupdate:o(Le),onCompositionend:o(De),onInput:xe,onFocus:o(N),onBlur:o(P),onChange:me,onKeydown:Ge}),null,16,["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus","rows","role","onCompositionstart","onCompositionupdate","onCompositionend","onFocus","onBlur"]),o(F)?(_(),M("span",{key:0,style:Oe(b.value),class:$(o(m).e("count"))},he(o(W))+" / "+he(be.maxlength),7)):ee("v-if",!0)],64))],38))}});var e$=ve(QM,[["__file","input.vue"]]);const Cn=We(e$),Kl=4,av={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"}},t$=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),hd=Symbol("scrollbarContextKey"),n$=pe({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),a$="Thumb",l$=T({__name:"thumb",props:n$,setup(e){const t=e,n=Se(hd),a=de("scrollbar");n||Gt(a$,"can not inject scrollbar context");const l=A(),r=A(),s=A({}),i=A(!1);let u=!1,c=!1,d=ut?document.onselectstart:null;const f=C(()=>av[t.vertical?"vertical":"horizontal"]),h=C(()=>t$({size:t.size,move:t.move,bar:f.value})),v=C(()=>l.value[f.value.offset]**2/n.wrapElement[f.value.scrollSize]/t.ratio/r.value[f.value.offset]),m=E=>{var O;if(E.stopPropagation(),E.ctrlKey||[1,2].includes(E.button))return;(O=window.getSelection())==null||O.removeAllRanges(),y(E);const I=E.currentTarget;I&&(s.value[f.value.axis]=I[f.value.offset]-(E[f.value.client]-I.getBoundingClientRect()[f.value.direction]))},p=E=>{if(!r.value||!l.value||!n.wrapElement)return;const O=Math.abs(E.target.getBoundingClientRect()[f.value.direction]-E[f.value.client]),I=r.value[f.value.offset]/2,N=(O-I)*100*v.value/l.value[f.value.offset];n.wrapElement[f.value.scroll]=N*n.wrapElement[f.value.scrollSize]/100},y=E=>{E.stopImmediatePropagation(),u=!0,document.addEventListener("mousemove",g),document.addEventListener("mouseup",x),d=document.onselectstart,document.onselectstart=()=>!1},g=E=>{if(!l.value||!r.value||u===!1)return;const O=s.value[f.value.axis];if(!O)return;const I=(l.value.getBoundingClientRect()[f.value.direction]-E[f.value.client])*-1,N=r.value[f.value.offset]-O,P=(I-N)*100*v.value/l.value[f.value.offset];n.wrapElement[f.value.scroll]=P*n.wrapElement[f.value.scrollSize]/100},x=()=>{u=!1,s.value[f.value.axis]=0,document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",x),S(),c&&(i.value=!1)},w=()=>{c=!1,i.value=!!t.size},b=()=>{c=!0,i.value=u};$t(()=>{S(),document.removeEventListener("mouseup",x)});const S=()=>{document.onselectstart!==d&&(document.onselectstart=d)};return wt(yt(n,"scrollbarElement"),"mousemove",w),wt(yt(n,"scrollbarElement"),"mouseleave",b),(E,O)=>(_(),ae(tn,{name:o(a).b("fade"),persisted:""},{default:G(()=>[qe(k("div",{ref_key:"instance",ref:l,class:$([o(a).e("bar"),o(a).is(o(f).key)]),onMousedown:p},[k("div",{ref_key:"thumb",ref:r,class:$(o(a).e("thumb")),style:Oe(o(h)),onMousedown:m},null,38)],34),[[pt,E.always||i.value]])]),_:1},8,["name"]))}});var k0=ve(l$,[["__file","thumb.vue"]]);const o$=pe({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),r$=T({__name:"bar",props:o$,setup(e,{expose:t}){const n=e,a=Se(hd),l=A(0),r=A(0),s=A(""),i=A(""),u=A(1),c=A(1);return t({handleScroll:h=>{if(h){const v=h.offsetHeight-Kl,m=h.offsetWidth-Kl;r.value=h.scrollTop*100/v*u.value,l.value=h.scrollLeft*100/m*c.value}},update:()=>{const h=a==null?void 0:a.wrapElement;if(!h)return;const v=h.offsetHeight-Kl,m=h.offsetWidth-Kl,p=v**2/h.scrollHeight,y=m**2/h.scrollWidth,g=Math.max(p,n.minSize),x=Math.max(y,n.minSize);u.value=p/(v-p)/(g/(v-g)),c.value=y/(m-y)/(x/(m-x)),i.value=g+Kl(_(),M(ze,null,[q(k0,{move:l.value,ratio:c.value,size:s.value,always:h.always},null,8,["move","ratio","size","always"]),q(k0,{move:r.value,ratio:u.value,size:i.value,vertical:"",always:h.always},null,8,["move","ratio","size","always"])],64))}});var s$=ve(r$,[["__file","bar.vue"]]);const i$=pe({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:X([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},tabindex:{type:[String,Number],default:void 0},id:String,role:String,...rn(["ariaLabel","ariaOrientation"])}),u$={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(Ie)},c$="ElScrollbar",d$=T({name:c$}),f$=T({...d$,props:i$,emits:u$,setup(e,{expose:t,emit:n}){const a=e,l=de("scrollbar");let r,s,i=0,u=0;const c=A(),d=A(),f=A(),h=A(),v=C(()=>{const S={};return a.height&&(S.height=Rt(a.height)),a.maxHeight&&(S.maxHeight=Rt(a.maxHeight)),[a.wrapStyle,S]}),m=C(()=>[a.wrapClass,l.e("wrap"),{[l.em("wrap","hidden-default")]:!a.native}]),p=C(()=>[l.e("view"),a.viewClass]),y=()=>{var S;d.value&&((S=h.value)==null||S.handleScroll(d.value),i=d.value.scrollTop,u=d.value.scrollLeft,n("scroll",{scrollTop:d.value.scrollTop,scrollLeft:d.value.scrollLeft}))};function g(S,E){ht(S)?d.value.scrollTo(S):Ie(S)&&Ie(E)&&d.value.scrollTo(S,E)}const x=S=>{Ie(S)&&(d.value.scrollTop=S)},w=S=>{Ie(S)&&(d.value.scrollLeft=S)},b=()=>{var S;(S=h.value)==null||S.update()};return ue(()=>a.noresize,S=>{S?(r==null||r(),s==null||s()):({stop:r}=At(f,b),s=wt("resize",b))},{immediate:!0}),ue(()=>[a.maxHeight,a.height],()=>{a.native||Ne(()=>{var S;b(),d.value&&((S=h.value)==null||S.handleScroll(d.value))})}),it(hd,_t({scrollbarElement:c,wrapElement:d})),kp(()=>{d.value&&(d.value.scrollTop=i,d.value.scrollLeft=u)}),Xe(()=>{a.native||Ne(()=>{b()})}),Wa(()=>b()),t({wrapRef:d,update:b,scrollTo:g,setScrollTop:x,setScrollLeft:w,handleScroll:y}),(S,E)=>(_(),M("div",{ref_key:"scrollbarRef",ref:c,class:$(o(l).b())},[k("div",{ref_key:"wrapRef",ref:d,class:$(o(m)),style:Oe(o(v)),tabindex:S.tabindex,onScroll:y},[(_(),ae(Qe(S.tag),{id:S.id,ref_key:"resizeRef",ref:f,class:$(o(p)),style:Oe(S.viewStyle),role:S.role,"aria-label":S.ariaLabel,"aria-orientation":S.ariaOrientation},{default:G(()=>[Q(S.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,["tabindex"]),S.native?ee("v-if",!0):(_(),ae(s$,{key:0,ref_key:"barRef",ref:h,always:S.always,"min-size":S.minSize},null,8,["always","min-size"]))],2))}});var p$=ve(f$,[["__file","scrollbar.vue"]]);const Ta=We(p$),md=Symbol("popper"),lv=Symbol("popperContent"),v$=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],ov=pe({role:{type:String,values:v$,default:"tooltip"}}),h$=T({name:"ElPopper",inheritAttrs:!1}),m$=T({...h$,props:ov,setup(e,{expose:t}){const n=e,a=A(),l=A(),r=A(),s=A(),i=C(()=>n.role),u={triggerRef:a,popperInstanceRef:l,contentRef:r,referenceRef:s,role:i};return t(u),it(md,u),(c,d)=>Q(c.$slots,"default")}});var g$=ve(m$,[["__file","popper.vue"]]);const rv=pe({arrowOffset:{type:Number,default:5}}),y$=T({name:"ElPopperArrow",inheritAttrs:!1}),_$=T({...y$,props:rv,setup(e,{expose:t}){const n=e,a=de("popper"),{arrowOffset:l,arrowRef:r,arrowStyle:s}=Se(lv,void 0);return ue(()=>n.arrowOffset,i=>{l.value=i}),$t(()=>{r.value=void 0}),t({arrowRef:r}),(i,u)=>(_(),M("span",{ref_key:"arrowRef",ref:r,class:$(o(a).e("arrow")),style:Oe(o(s)),"data-popper-arrow":""},null,6))}});var b$=ve(_$,[["__file","arrow.vue"]]);const sv=pe({virtualRef:{type:X(Object)},virtualTriggering:Boolean,onMouseenter:{type:X(Function)},onMouseleave:{type:X(Function)},onClick:{type:X(Function)},onKeydown:{type:X(Function)},onFocus:{type:X(Function)},onBlur:{type:X(Function)},onContextmenu:{type:X(Function)},id:String,open:Boolean}),iv=Symbol("elForwardRef"),w$=e=>{it(iv,{setForwardRef:n=>{e.value=n}})},C$=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),S$='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',k$=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,E0=e=>Array.from(e.querySelectorAll(S$)).filter(t=>Hs(t)&&k$(t)),Hs=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.tabIndex<0||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true")return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},us=function(e,t,...n){let a;t.includes("mouse")||t.includes("click")?a="MouseEvents":t.includes("key")?a="KeyboardEvent":a="HTMLEvents";const l=document.createEvent(a);return l.initEvent(t,...n),e.dispatchEvent(l),e},uv=e=>!e.getAttribute("aria-owns"),cv=(e,t,n)=>{const{parentNode:a}=e;if(!a)return null;const l=a.querySelectorAll(n),r=Array.prototype.indexOf.call(l,e);return l[r+t]||null},cs=e=>{e&&(e.focus(),!uv(e)&&e.click())},E$="ElOnlyChild",dv=T({name:E$,setup(e,{slots:t,attrs:n}){var a;const l=Se(iv),r=C$((a=l==null?void 0:l.setForwardRef)!=null?a:zt);return()=>{var s;const i=(s=t.default)==null?void 0:s.call(t,n);if(!i||i.length>1)return null;const u=fv(i);return u?qe(j4(u,n),[[r]]):null}}});function fv(e){if(!e)return null;const t=e;for(const n of t){if(ht(n))switch(n.type){case ri:continue;case Ep:case"svg":return x0(n);case ze:return fv(n.children);default:return n}return x0(n)}return null}function x0(e){const t=de("only-child");return q("span",{class:t.e("content")},[e])}const x$=T({name:"ElPopperTrigger",inheritAttrs:!1}),M$=T({...x$,props:sv,setup(e,{expose:t}){const n=e,{role:a,triggerRef:l}=Se(md,void 0);w$(l);const r=C(()=>i.value?n.id:void 0),s=C(()=>{if(a&&a.value==="tooltip")return n.open&&n.id?n.id:void 0}),i=C(()=>{if(a&&a.value!=="tooltip")return a.value}),u=C(()=>i.value?`${n.open}`:void 0);let c;const d=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return Xe(()=>{ue(()=>n.virtualRef,f=>{f&&(l.value=$n(f))},{immediate:!0}),ue(l,(f,h)=>{c==null||c(),c=void 0,Tn(f)&&(d.forEach(v=>{var m;const p=n[v];p&&(f.addEventListener(v.slice(2).toLowerCase(),p),(m=h==null?void 0:h.removeEventListener)==null||m.call(h,v.slice(2).toLowerCase(),p))}),Hs(f)&&(c=ue([r,s,i,u],v=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((m,p)=>{Zt(v[p])?f.removeAttribute(m):f.setAttribute(m,v[p])})},{immediate:!0}))),Tn(h)&&Hs(h)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(v=>h.removeAttribute(v))},{immediate:!0})}),$t(()=>{if(c==null||c(),c=void 0,l.value&&Tn(l.value)){const f=l.value;d.forEach(h=>{const v=n[h];v&&f.removeEventListener(h.slice(2).toLowerCase(),v)}),l.value=void 0}}),t({triggerRef:l}),(f,h)=>f.virtualTriggering?ee("v-if",!0):(_(),ae(o(dv),tt({key:0},f.$attrs,{"aria-controls":o(r),"aria-describedby":o(s),"aria-expanded":o(u),"aria-haspopup":o(i)}),{default:G(()=>[Q(f.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var $$=ve(M$,[["__file","trigger.vue"]]);const Ji="focus-trap.focus-after-trapped",Qi="focus-trap.focus-after-released",T$="focus-trap.focusout-prevented",M0={cancelable:!0,bubbles:!1},O$={cancelable:!0,bubbles:!1},$0="focusAfterTrapped",T0="focusAfterReleased",gd=Symbol("elFocusTrap"),yd=A(),xi=A(0),_d=A(0);let Ur=0;const pv=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const l=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||l?NodeFilter.FILTER_SKIP:a.tabIndex>=0||a===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},O0=(e,t)=>{for(const n of e)if(!N$(n,t))return n},N$=(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},I$=e=>{const t=pv(e),n=O0(t,e),a=O0(t.reverse(),e);return[n,a]},P$=e=>e instanceof HTMLInputElement&&"select"in e,Pa=(e,t)=>{if(e&&e.focus){const n=document.activeElement;let a=!1;Tn(e)&&!Hs(e)&&!e.getAttribute("tabindex")&&(e.setAttribute("tabindex","-1"),a=!0),e.focus({preventScroll:!0}),_d.value=window.performance.now(),e!==n&&P$(e)&&t&&e.select(),Tn(e)&&a&&e.removeAttribute("tabindex")}};function N0(e,t){const n=[...e],a=e.indexOf(t);return a!==-1&&n.splice(a,1),n}const z$=()=>{let e=[];return{push:a=>{const l=e[0];l&&a!==l&&l.pause(),e=N0(e,a),e.unshift(a)},remove:a=>{var l,r;e=N0(e,a),(r=(l=e[0])==null?void 0:l.resume)==null||r.call(l)}}},A$=(e,t=!1)=>{const n=document.activeElement;for(const a of e)if(Pa(a,t),document.activeElement!==n)return},I0=z$(),V$=()=>xi.value>_d.value,Yr=()=>{yd.value="pointer",xi.value=window.performance.now()},P0=()=>{yd.value="keyboard",xi.value=window.performance.now()},L$=()=>(Xe(()=>{Ur===0&&(document.addEventListener("mousedown",Yr),document.addEventListener("touchstart",Yr),document.addEventListener("keydown",P0)),Ur++}),$t(()=>{Ur--,Ur<=0&&(document.removeEventListener("mousedown",Yr),document.removeEventListener("touchstart",Yr),document.removeEventListener("keydown",P0))}),{focusReason:yd,lastUserFocusTimestamp:xi,lastAutomatedFocusTimestamp:_d}),Gr=e=>new CustomEvent(T$,{...O$,detail:e}),Ce={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"};let Gl=[];const z0=e=>{e.code===Ce.esc&&Gl.forEach(t=>t(e))},R$=e=>{Xe(()=>{Gl.length===0&&document.addEventListener("keydown",z0),ut&&Gl.push(e)}),$t(()=>{Gl=Gl.filter(t=>t!==e),Gl.length===0&&ut&&document.removeEventListener("keydown",z0)})},B$=T({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[$0,T0,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=A();let a,l;const{focusReason:r}=L$();R$(m=>{e.trapped&&!s.paused&&t("release-requested",m)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},i=m=>{if(!e.loop&&!e.trapped||s.paused)return;const{code:p,altKey:y,ctrlKey:g,metaKey:x,currentTarget:w,shiftKey:b}=m,{loop:S}=e,E=p===Ce.tab&&!y&&!g&&!x,O=document.activeElement;if(E&&O){const I=w,[N,P]=I$(I);if(N&&P){if(!b&&O===P){const R=Gr({focusReason:r.value});t("focusout-prevented",R),R.defaultPrevented||(m.preventDefault(),S&&Pa(N,!0))}else if(b&&[N,I].includes(O)){const R=Gr({focusReason:r.value});t("focusout-prevented",R),R.defaultPrevented||(m.preventDefault(),S&&Pa(P,!0))}}else if(O===I){const R=Gr({focusReason:r.value});t("focusout-prevented",R),R.defaultPrevented||m.preventDefault()}}};it(gd,{focusTrapRef:n,onKeydown:i}),ue(()=>e.focusTrapEl,m=>{m&&(n.value=m)},{immediate:!0}),ue([n],([m],[p])=>{m&&(m.addEventListener("keydown",i),m.addEventListener("focusin",d),m.addEventListener("focusout",f)),p&&(p.removeEventListener("keydown",i),p.removeEventListener("focusin",d),p.removeEventListener("focusout",f))});const u=m=>{t($0,m)},c=m=>t(T0,m),d=m=>{const p=o(n);if(!p)return;const y=m.target,g=m.relatedTarget,x=y&&p.contains(y);e.trapped||g&&p.contains(g)||(a=g),x&&t("focusin",m),!s.paused&&e.trapped&&(x?l=y:Pa(l,!0))},f=m=>{const p=o(n);if(!(s.paused||!p))if(e.trapped){const y=m.relatedTarget;!Zt(y)&&!p.contains(y)&&setTimeout(()=>{if(!s.paused&&e.trapped){const g=Gr({focusReason:r.value});t("focusout-prevented",g),g.defaultPrevented||Pa(l,!0)}},0)}else{const y=m.target;y&&p.contains(y)||t("focusout",m)}};async function h(){await Ne();const m=o(n);if(m){I0.push(s);const p=m.contains(document.activeElement)?a:document.activeElement;if(a=p,!m.contains(p)){const g=new Event(Ji,M0);m.addEventListener(Ji,u),m.dispatchEvent(g),g.defaultPrevented||Ne(()=>{let x=e.focusStartEl;Ve(x)||(Pa(x),document.activeElement!==x&&(x="first")),x==="first"&&A$(pv(m),!0),(document.activeElement===p||x==="container")&&Pa(m)})}}}function v(){const m=o(n);if(m){m.removeEventListener(Ji,u);const p=new CustomEvent(Qi,{...M0,detail:{focusReason:r.value}});m.addEventListener(Qi,c),m.dispatchEvent(p),!p.defaultPrevented&&(r.value=="keyboard"||!V$()||m.contains(document.activeElement))&&Pa(a??document.body),m.removeEventListener(Qi,c),I0.remove(s)}}return Xe(()=>{e.trapped&&h(),ue(()=>e.trapped,m=>{m?h():v()})}),$t(()=>{e.trapped&&v(),n.value&&(n.value.removeEventListener("keydown",i),n.value.removeEventListener("focusin",d),n.value.removeEventListener("focusout",f),n.value=void 0)}),{onKeydown:i}}});function H$(e,t,n,a,l,r){return Q(e.$slots,"default",{handleKeydown:e.onKeydown})}var Ao=ve(B$,[["render",H$],["__file","focus-trap.vue"]]),Vn="top",Zn="bottom",Jn="right",Ln="left",bd="auto",Ar=[Vn,Zn,Jn,Ln],po="start",dr="end",D$="clippingParents",vv="viewport",Ko="popper",F$="reference",A0=Ar.reduce(function(e,t){return e.concat([t+"-"+po,t+"-"+dr])},[]),Ya=[].concat(Ar,[bd]).reduce(function(e,t){return e.concat([t,t+"-"+po,t+"-"+dr])},[]),K$="beforeRead",W$="read",j$="afterRead",q$="beforeMain",U$="main",Y$="afterMain",G$="beforeWrite",X$="write",Z$="afterWrite",J$=[K$,W$,j$,q$,U$,Y$,G$,X$,Z$];function ka(e){return e?(e.nodeName||"").toLowerCase():null}function ha(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function vo(e){var t=ha(e).Element;return e instanceof t||e instanceof Element}function Un(e){var t=ha(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function wd(e){if(typeof ShadowRoot>"u")return!1;var t=ha(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Q$(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var a=t.styles[n]||{},l=t.attributes[n]||{},r=t.elements[n];!Un(r)||!ka(r)||(Object.assign(r.style,a),Object.keys(l).forEach(function(s){var i=l[s];i===!1?r.removeAttribute(s):r.setAttribute(s,i===!0?"":i)}))})}function eT(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(a){var l=t.elements[a],r=t.attributes[a]||{},s=Object.keys(t.styles.hasOwnProperty(a)?t.styles[a]:n[a]),i=s.reduce(function(u,c){return u[c]="",u},{});!Un(l)||!ka(l)||(Object.assign(l.style,i),Object.keys(r).forEach(function(u){l.removeAttribute(u)}))})}}var hv={name:"applyStyles",enabled:!0,phase:"write",fn:Q$,effect:eT,requires:["computeStyles"]};function ba(e){return e.split("-")[0]}var xl=Math.max,Ds=Math.min,ho=Math.round;function mo(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),a=1,l=1;if(Un(e)&&t){var r=e.offsetHeight,s=e.offsetWidth;s>0&&(a=ho(n.width)/s||1),r>0&&(l=ho(n.height)/r||1)}return{width:n.width/a,height:n.height/l,top:n.top/l,right:n.right/a,bottom:n.bottom/l,left:n.left/a,x:n.left/a,y:n.top/l}}function Cd(e){var t=mo(e),n=e.offsetWidth,a=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-a)<=1&&(a=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:a}}function mv(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&wd(n)){var a=t;do{if(a&&e.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function Ha(e){return ha(e).getComputedStyle(e)}function tT(e){return["table","td","th"].indexOf(ka(e))>=0}function fl(e){return((vo(e)?e.ownerDocument:e.document)||window.document).documentElement}function Mi(e){return ka(e)==="html"?e:e.assignedSlot||e.parentNode||(wd(e)?e.host:null)||fl(e)}function V0(e){return!Un(e)||Ha(e).position==="fixed"?null:e.offsetParent}function nT(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Un(e)){var a=Ha(e);if(a.position==="fixed")return null}var l=Mi(e);for(wd(l)&&(l=l.host);Un(l)&&["html","body"].indexOf(ka(l))<0;){var r=Ha(l);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||t&&r.willChange==="filter"||t&&r.filter&&r.filter!=="none")return l;l=l.parentNode}return null}function Vr(e){for(var t=ha(e),n=V0(e);n&&tT(n)&&Ha(n).position==="static";)n=V0(n);return n&&(ka(n)==="html"||ka(n)==="body"&&Ha(n).position==="static")?t:n||nT(e)||t}function Sd(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Qo(e,t,n){return xl(e,Ds(t,n))}function aT(e,t,n){var a=Qo(e,t,n);return a>n?n:a}function gv(){return{top:0,right:0,bottom:0,left:0}}function yv(e){return Object.assign({},gv(),e)}function _v(e,t){return t.reduce(function(n,a){return n[a]=e,n},{})}var lT=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,yv(typeof e!="number"?e:_v(e,Ar))};function oT(e){var t,n=e.state,a=e.name,l=e.options,r=n.elements.arrow,s=n.modifiersData.popperOffsets,i=ba(n.placement),u=Sd(i),c=[Ln,Jn].indexOf(i)>=0,d=c?"height":"width";if(!(!r||!s)){var f=lT(l.padding,n),h=Cd(r),v=u==="y"?Vn:Ln,m=u==="y"?Zn:Jn,p=n.rects.reference[d]+n.rects.reference[u]-s[u]-n.rects.popper[d],y=s[u]-n.rects.reference[u],g=Vr(r),x=g?u==="y"?g.clientHeight||0:g.clientWidth||0:0,w=p/2-y/2,b=f[v],S=x-h[d]-f[m],E=x/2-h[d]/2+w,O=Qo(b,E,S),I=u;n.modifiersData[a]=(t={},t[I]=O,t.centerOffset=O-E,t)}}function rT(e){var t=e.state,n=e.options,a=n.element,l=a===void 0?"[data-popper-arrow]":a;l!=null&&(typeof l=="string"&&(l=t.elements.popper.querySelector(l),!l)||!mv(t.elements.popper,l)||(t.elements.arrow=l))}var sT={name:"arrow",enabled:!0,phase:"main",fn:oT,effect:rT,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function go(e){return e.split("-")[1]}var iT={top:"auto",right:"auto",bottom:"auto",left:"auto"};function uT(e){var t=e.x,n=e.y,a=window,l=a.devicePixelRatio||1;return{x:ho(t*l)/l||0,y:ho(n*l)/l||0}}function L0(e){var t,n=e.popper,a=e.popperRect,l=e.placement,r=e.variation,s=e.offsets,i=e.position,u=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,f=e.isFixed,h=s.x,v=h===void 0?0:h,m=s.y,p=m===void 0?0:m,y=typeof d=="function"?d({x:v,y:p}):{x:v,y:p};v=y.x,p=y.y;var g=s.hasOwnProperty("x"),x=s.hasOwnProperty("y"),w=Ln,b=Vn,S=window;if(c){var E=Vr(n),O="clientHeight",I="clientWidth";if(E===ha(n)&&(E=fl(n),Ha(E).position!=="static"&&i==="absolute"&&(O="scrollHeight",I="scrollWidth")),E=E,l===Vn||(l===Ln||l===Jn)&&r===dr){b=Zn;var N=f&&E===S&&S.visualViewport?S.visualViewport.height:E[O];p-=N-a.height,p*=u?1:-1}if(l===Ln||(l===Vn||l===Zn)&&r===dr){w=Jn;var P=f&&E===S&&S.visualViewport?S.visualViewport.width:E[I];v-=P-a.width,v*=u?1:-1}}var L=Object.assign({position:i},c&&iT),R=d===!0?uT({x:v,y:p}):{x:v,y:p};if(v=R.x,p=R.y,u){var K;return Object.assign({},L,(K={},K[b]=x?"0":"",K[w]=g?"0":"",K.transform=(S.devicePixelRatio||1)<=1?"translate("+v+"px, "+p+"px)":"translate3d("+v+"px, "+p+"px, 0)",K))}return Object.assign({},L,(t={},t[b]=x?p+"px":"",t[w]=g?v+"px":"",t.transform="",t))}function cT(e){var t=e.state,n=e.options,a=n.gpuAcceleration,l=a===void 0?!0:a,r=n.adaptive,s=r===void 0?!0:r,i=n.roundOffsets,u=i===void 0?!0:i,c={placement:ba(t.placement),variation:go(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:l,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,L0(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,L0(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 bv={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:cT,data:{}},Xr={passive:!0};function dT(e){var t=e.state,n=e.instance,a=e.options,l=a.scroll,r=l===void 0?!0:l,s=a.resize,i=s===void 0?!0:s,u=ha(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&c.forEach(function(d){d.addEventListener("scroll",n.update,Xr)}),i&&u.addEventListener("resize",n.update,Xr),function(){r&&c.forEach(function(d){d.removeEventListener("scroll",n.update,Xr)}),i&&u.removeEventListener("resize",n.update,Xr)}}var wv={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:dT,data:{}},fT={left:"right",right:"left",bottom:"top",top:"bottom"};function ds(e){return e.replace(/left|right|bottom|top/g,function(t){return fT[t]})}var pT={start:"end",end:"start"};function R0(e){return e.replace(/start|end/g,function(t){return pT[t]})}function kd(e){var t=ha(e),n=t.pageXOffset,a=t.pageYOffset;return{scrollLeft:n,scrollTop:a}}function Ed(e){return mo(fl(e)).left+kd(e).scrollLeft}function vT(e){var t=ha(e),n=fl(e),a=t.visualViewport,l=n.clientWidth,r=n.clientHeight,s=0,i=0;return a&&(l=a.width,r=a.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=a.offsetLeft,i=a.offsetTop)),{width:l,height:r,x:s+Ed(e),y:i}}function hT(e){var t,n=fl(e),a=kd(e),l=(t=e.ownerDocument)==null?void 0:t.body,r=xl(n.scrollWidth,n.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),s=xl(n.scrollHeight,n.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),i=-a.scrollLeft+Ed(e),u=-a.scrollTop;return Ha(l||n).direction==="rtl"&&(i+=xl(n.clientWidth,l?l.clientWidth:0)-r),{width:r,height:s,x:i,y:u}}function xd(e){var t=Ha(e),n=t.overflow,a=t.overflowX,l=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+l+a)}function Cv(e){return["html","body","#document"].indexOf(ka(e))>=0?e.ownerDocument.body:Un(e)&&xd(e)?e:Cv(Mi(e))}function er(e,t){var n;t===void 0&&(t=[]);var a=Cv(e),l=a===((n=e.ownerDocument)==null?void 0:n.body),r=ha(a),s=l?[r].concat(r.visualViewport||[],xd(a)?a:[]):a,i=t.concat(s);return l?i:i.concat(er(Mi(s)))}function Au(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function mT(e){var t=mo(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 B0(e,t){return t===vv?Au(vT(e)):vo(t)?mT(t):Au(hT(fl(e)))}function gT(e){var t=er(Mi(e)),n=["absolute","fixed"].indexOf(Ha(e).position)>=0,a=n&&Un(e)?Vr(e):e;return vo(a)?t.filter(function(l){return vo(l)&&mv(l,a)&&ka(l)!=="body"}):[]}function yT(e,t,n){var a=t==="clippingParents"?gT(e):[].concat(t),l=[].concat(a,[n]),r=l[0],s=l.reduce(function(i,u){var c=B0(e,u);return i.top=xl(c.top,i.top),i.right=Ds(c.right,i.right),i.bottom=Ds(c.bottom,i.bottom),i.left=xl(c.left,i.left),i},B0(e,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Sv(e){var t=e.reference,n=e.element,a=e.placement,l=a?ba(a):null,r=a?go(a):null,s=t.x+t.width/2-n.width/2,i=t.y+t.height/2-n.height/2,u;switch(l){case Vn:u={x:s,y:t.y-n.height};break;case Zn:u={x:s,y:t.y+t.height};break;case Jn:u={x:t.x+t.width,y:i};break;case Ln:u={x:t.x-n.width,y:i};break;default:u={x:t.x,y:t.y}}var c=l?Sd(l):null;if(c!=null){var d=c==="y"?"height":"width";switch(r){case po:u[c]=u[c]-(t[d]/2-n[d]/2);break;case dr:u[c]=u[c]+(t[d]/2-n[d]/2);break}}return u}function fr(e,t){t===void 0&&(t={});var n=t,a=n.placement,l=a===void 0?e.placement:a,r=n.boundary,s=r===void 0?D$:r,i=n.rootBoundary,u=i===void 0?vv:i,c=n.elementContext,d=c===void 0?Ko:c,f=n.altBoundary,h=f===void 0?!1:f,v=n.padding,m=v===void 0?0:v,p=yv(typeof m!="number"?m:_v(m,Ar)),y=d===Ko?F$:Ko,g=e.rects.popper,x=e.elements[h?y:d],w=yT(vo(x)?x:x.contextElement||fl(e.elements.popper),s,u),b=mo(e.elements.reference),S=Sv({reference:b,element:g,placement:l}),E=Au(Object.assign({},g,S)),O=d===Ko?E:b,I={top:w.top-O.top+p.top,bottom:O.bottom-w.bottom+p.bottom,left:w.left-O.left+p.left,right:O.right-w.right+p.right},N=e.modifiersData.offset;if(d===Ko&&N){var P=N[l];Object.keys(I).forEach(function(L){var R=[Jn,Zn].indexOf(L)>=0?1:-1,K=[Vn,Zn].indexOf(L)>=0?"y":"x";I[L]+=P[K]*R})}return I}function _T(e,t){t===void 0&&(t={});var n=t,a=n.placement,l=n.boundary,r=n.rootBoundary,s=n.padding,i=n.flipVariations,u=n.allowedAutoPlacements,c=u===void 0?Ya:u,d=go(a),f=d?i?A0:A0.filter(function(m){return go(m)===d}):Ar,h=f.filter(function(m){return c.indexOf(m)>=0});h.length===0&&(h=f);var v=h.reduce(function(m,p){return m[p]=fr(e,{placement:p,boundary:l,rootBoundary:r,padding:s})[ba(p)],m},{});return Object.keys(v).sort(function(m,p){return v[m]-v[p]})}function bT(e){if(ba(e)===bd)return[];var t=ds(e);return[R0(e),t,R0(t)]}function wT(e){var t=e.state,n=e.options,a=e.name;if(!t.modifiersData[a]._skip){for(var l=n.mainAxis,r=l===void 0?!0:l,s=n.altAxis,i=s===void 0?!0:s,u=n.fallbackPlacements,c=n.padding,d=n.boundary,f=n.rootBoundary,h=n.altBoundary,v=n.flipVariations,m=v===void 0?!0:v,p=n.allowedAutoPlacements,y=t.options.placement,g=ba(y),x=g===y,w=u||(x||!m?[ds(y)]:bT(y)),b=[y].concat(w).reduce(function(ne,oe){return ne.concat(ba(oe)===bd?_T(t,{placement:oe,boundary:d,rootBoundary:f,padding:c,flipVariations:m,allowedAutoPlacements:p}):oe)},[]),S=t.rects.reference,E=t.rects.popper,O=new Map,I=!0,N=b[0],P=0;P=0,H=U?"width":"height",V=fr(t,{placement:L,boundary:d,rootBoundary:f,altBoundary:h,padding:c}),D=U?K?Jn:Ln:K?Zn:Vn;S[H]>E[H]&&(D=ds(D));var B=ds(D),z=[];if(r&&z.push(V[R]<=0),i&&z.push(V[D]<=0,V[B]<=0),z.every(function(ne){return ne})){N=L,I=!1;break}O.set(L,z)}if(I)for(var F=m?3:1,W=function(ne){var oe=b.find(function(ce){var te=O.get(ce);if(te)return te.slice(0,ne).every(function(se){return se})});if(oe)return N=oe,"break"},Z=F;Z>0;Z--){var j=W(Z);if(j==="break")break}t.placement!==N&&(t.modifiersData[a]._skip=!0,t.placement=N,t.reset=!0)}}var CT={name:"flip",enabled:!0,phase:"main",fn:wT,requiresIfExists:["offset"],data:{_skip:!1}};function H0(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 D0(e){return[Vn,Jn,Zn,Ln].some(function(t){return e[t]>=0})}function ST(e){var t=e.state,n=e.name,a=t.rects.reference,l=t.rects.popper,r=t.modifiersData.preventOverflow,s=fr(t,{elementContext:"reference"}),i=fr(t,{altBoundary:!0}),u=H0(s,a),c=H0(i,l,r),d=D0(u),f=D0(c);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}var kT={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ST};function ET(e,t,n){var a=ba(e),l=[Ln,Vn].indexOf(a)>=0?-1:1,r=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=r[0],i=r[1];return s=s||0,i=(i||0)*l,[Ln,Jn].indexOf(a)>=0?{x:i,y:s}:{x:s,y:i}}function xT(e){var t=e.state,n=e.options,a=e.name,l=n.offset,r=l===void 0?[0,0]:l,s=Ya.reduce(function(d,f){return d[f]=ET(f,t.rects,r),d},{}),i=s[t.placement],u=i.x,c=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[a]=s}var MT={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:xT};function $T(e){var t=e.state,n=e.name;t.modifiersData[n]=Sv({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}var kv={name:"popperOffsets",enabled:!0,phase:"read",fn:$T,data:{}};function TT(e){return e==="x"?"y":"x"}function OT(e){var t=e.state,n=e.options,a=e.name,l=n.mainAxis,r=l===void 0?!0:l,s=n.altAxis,i=s===void 0?!1:s,u=n.boundary,c=n.rootBoundary,d=n.altBoundary,f=n.padding,h=n.tether,v=h===void 0?!0:h,m=n.tetherOffset,p=m===void 0?0:m,y=fr(t,{boundary:u,rootBoundary:c,padding:f,altBoundary:d}),g=ba(t.placement),x=go(t.placement),w=!x,b=Sd(g),S=TT(b),E=t.modifiersData.popperOffsets,O=t.rects.reference,I=t.rects.popper,N=typeof p=="function"?p(Object.assign({},t.rects,{placement:t.placement})):p,P=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(E){if(r){var K,U=b==="y"?Vn:Ln,H=b==="y"?Zn:Jn,V=b==="y"?"height":"width",D=E[b],B=D+y[U],z=D-y[H],F=v?-I[V]/2:0,W=x===po?O[V]:I[V],Z=x===po?-I[V]:-O[V],j=t.elements.arrow,ne=v&&j?Cd(j):{width:0,height:0},oe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:gv(),ce=oe[U],te=oe[H],se=Qo(0,O[V],ne[V]),fe=w?O[V]/2-F-se-ce-P.mainAxis:W-se-ce-P.mainAxis,xe=w?-O[V]/2+F+se+te+P.mainAxis:Z+se+te+P.mainAxis,me=t.elements.arrow&&Vr(t.elements.arrow),le=me?b==="y"?me.clientTop||0:me.clientLeft||0:0,we=(K=L==null?void 0:L[b])!=null?K:0,Le=D+fe-we-le,De=D+xe-we,Ye=Qo(v?Ds(B,Le):B,D,v?xl(z,De):z);E[b]=Ye,R[b]=Ye-D}if(i){var $e,Te=b==="x"?Vn:Ln,ke=b==="x"?Zn:Jn,He=E[S],Ge=S==="y"?"height":"width",at=He+y[Te],nt=He-y[ke],be=[Vn,Ln].indexOf(g)!==-1,je=($e=L==null?void 0:L[S])!=null?$e:0,ft=be?at:He-O[Ge]-I[Ge]-je+P.altAxis,Tt=be?He+O[Ge]+I[Ge]-je-P.altAxis:nt,bt=v&&be?aT(ft,He,Tt):Qo(v?ft:at,He,v?Tt:nt);E[S]=bt,R[S]=bt-He}t.modifiersData[a]=R}}var NT={name:"preventOverflow",enabled:!0,phase:"main",fn:OT,requiresIfExists:["offset"]};function IT(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function PT(e){return e===ha(e)||!Un(e)?kd(e):IT(e)}function zT(e){var t=e.getBoundingClientRect(),n=ho(t.width)/e.offsetWidth||1,a=ho(t.height)/e.offsetHeight||1;return n!==1||a!==1}function AT(e,t,n){n===void 0&&(n=!1);var a=Un(t),l=Un(t)&&zT(t),r=fl(t),s=mo(e,l),i={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(a||!a&&!n)&&((ka(t)!=="body"||xd(r))&&(i=PT(t)),Un(t)?(u=mo(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):r&&(u.x=Ed(r))),{x:s.left+i.scrollLeft-u.x,y:s.top+i.scrollTop-u.y,width:s.width,height:s.height}}function VT(e){var t=new Map,n=new Set,a=[];e.forEach(function(r){t.set(r.name,r)});function l(r){n.add(r.name);var s=[].concat(r.requires||[],r.requiresIfExists||[]);s.forEach(function(i){if(!n.has(i)){var u=t.get(i);u&&l(u)}}),a.push(r)}return e.forEach(function(r){n.has(r.name)||l(r)}),a}function LT(e){var t=VT(e);return J$.reduce(function(n,a){return n.concat(t.filter(function(l){return l.phase===a}))},[])}function RT(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function BT(e){var t=e.reduce(function(n,a){var l=n[a.name];return n[a.name]=l?Object.assign({},l,a,{options:Object.assign({},l.options,a.options),data:Object.assign({},l.data,a.data)}):a,n},{});return Object.keys(t).map(function(n){return t[n]})}var F0={placement:"bottom",modifiers:[],strategy:"absolute"};function K0(){for(var e=arguments.length,t=new Array(e),n=0;n({})},strategy:{type:String,values:KT,default:"absolute"}}),Ev=pe({...WT,id:String,style:{type:X([String,Array,Object])},className:{type:X([String,Array,Object])},effect:{type:X(String),default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:X([String,Array,Object])},popperStyle:{type:X([String,Array,Object])},referenceEl:{type:X(Object)},triggerTargetEl:{type:X(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...rn(["ariaLabel"])}),jT={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},qT=(e,t)=>{const n=A(!1),a=A();return{focusStartRef:a,trapped:n,onFocusAfterReleased:c=>{var d;((d=c.detail)==null?void 0:d.focusReason)!=="pointer"&&(a.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:c=>{e.visible&&!n.value&&(c.target&&(a.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")}}},UT=(e,t=[])=>{const{placement:n,strategy:a,popperOptions:l}=e,r={placement:n,strategy:a,...l,modifiers:[...GT(e),...t]};return XT(r,l==null?void 0:l.modifiers),r},YT=e=>{if(ut)return $n(e)};function GT(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:a}=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:a}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function XT(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const ZT=(e,t,n={})=>{const a={name:"updateState",enabled:!0,phase:"write",fn:({state:u})=>{const c=JT(u);Object.assign(s.value,c)},requires:["computeStyles"]},l=C(()=>{const{onFirstUpdate:u,placement:c,strategy:d,modifiers:f}=o(n);return{onFirstUpdate:u,placement:c||"bottom",strategy:d||"absolute",modifiers:[...f||[],a,{name:"applyStyles",enabled:!1}]}}),r=Ot(),s=A({styles:{popper:{position:o(l).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),i=()=>{r.value&&(r.value.destroy(),r.value=void 0)};return ue(l,u=>{const c=o(r);c&&c.setOptions(u)},{deep:!0}),ue([e,t],([u,c])=>{i(),!(!u||!c)&&(r.value=FT(u,c,o(l)))}),$t(()=>{i()}),{state:C(()=>{var u;return{...((u=o(r))==null?void 0:u.state)||{}}}),styles:C(()=>o(s).styles),attributes:C(()=>o(s).attributes),update:()=>{var u;return(u=o(r))==null?void 0:u.update()},forceUpdate:()=>{var u;return(u=o(r))==null?void 0:u.forceUpdate()},instanceRef:C(()=>o(r))}};function JT(e){const t=Object.keys(e.elements),n=cr(t.map(l=>[l,e.styles[l]||{}])),a=cr(t.map(l=>[l,e.attributes[l]]));return{styles:n,attributes:a}}const QT=0,eO=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:a,role:l}=Se(md,void 0),r=A(),s=A(),i=C(()=>({name:"eventListeners",enabled:!!e.visible})),u=C(()=>{var g;const x=o(r),w=(g=o(s))!=null?g:QT;return{name:"arrow",enabled:!v1(x),options:{element:x,padding:w}}}),c=C(()=>({onFirstUpdate:()=>{m()},...UT(e,[o(u),o(i)])})),d=C(()=>YT(e.referenceEl)||o(a)),{attributes:f,state:h,styles:v,update:m,forceUpdate:p,instanceRef:y}=ZT(d,n,c);return ue(y,g=>t.value=g),Xe(()=>{ue(()=>{var g;return(g=o(d))==null?void 0:g.getBoundingClientRect()},()=>{m()})}),{attributes:f,arrowRef:r,contentRef:n,instanceRef:y,state:h,styles:v,role:l,forceUpdate:p,update:m}},tO=(e,{attributes:t,styles:n,role:a})=>{const{nextZIndex:l}=Io(),r=de("popper"),s=C(()=>o(t).popper),i=A(Ie(e.zIndex)?e.zIndex:l()),u=C(()=>[r.b(),r.is("pure",e.pure),r.is(e.effect),e.popperClass]),c=C(()=>[{zIndex:o(i)},o(n).popper,e.popperStyle||{}]),d=C(()=>a.value==="dialog"?"false":void 0),f=C(()=>o(n).arrow||{});return{ariaModal:d,arrowStyle:f,contentAttrs:s,contentClass:u,contentStyle:c,contentZIndex:i,updateZIndex:()=>{i.value=Ie(e.zIndex)?e.zIndex:l()}}},nO=T({name:"ElPopperContent"}),aO=T({...nO,props:Ev,emits:jT,setup(e,{expose:t,emit:n}){const a=e,{focusStartRef:l,trapped:r,onFocusAfterReleased:s,onFocusAfterTrapped:i,onFocusInTrap:u,onFocusoutPrevented:c,onReleaseRequested:d}=qT(a,n),{attributes:f,arrowRef:h,contentRef:v,styles:m,instanceRef:p,role:y,update:g}=eO(a),{ariaModal:x,arrowStyle:w,contentAttrs:b,contentClass:S,contentStyle:E,updateZIndex:O}=tO(a,{styles:m,attributes:f,role:y}),I=Se(Sa,void 0),N=A();it(lv,{arrowStyle:w,arrowRef:h,arrowOffset:N}),I&&it(Sa,{...I,addInputId:zt,removeInputId:zt});let P;const L=(K=!0)=>{g(),K&&O()},R=()=>{L(!1),a.visible&&a.focusOnShow?r.value=!0:a.visible===!1&&(r.value=!1)};return Xe(()=>{ue(()=>a.triggerTargetEl,(K,U)=>{P==null||P(),P=void 0;const H=o(K||v.value),V=o(U||v.value);Tn(H)&&(P=ue([y,()=>a.ariaLabel,x,()=>a.id],D=>{["role","aria-label","aria-modal","id"].forEach((B,z)=>{Zt(D[z])?H.removeAttribute(B):H.setAttribute(B,D[z])})},{immediate:!0})),V!==H&&Tn(V)&&["role","aria-label","aria-modal","id"].forEach(D=>{V.removeAttribute(D)})},{immediate:!0}),ue(()=>a.visible,R,{immediate:!0})}),$t(()=>{P==null||P(),P=void 0}),t({popperContentRef:v,popperInstanceRef:p,updatePopper:L,contentStyle:E}),(K,U)=>(_(),M("div",tt({ref_key:"contentRef",ref:v},o(b),{style:o(E),class:o(S),tabindex:"-1",onMouseenter:H=>K.$emit("mouseenter",H),onMouseleave:H=>K.$emit("mouseleave",H)}),[q(o(Ao),{trapped:o(r),"trap-on-focus-in":!0,"focus-trap-el":o(v),"focus-start-el":o(l),onFocusAfterTrapped:o(i),onFocusAfterReleased:o(s),onFocusin:o(u),onFocusoutPrevented:o(c),onReleaseRequested:o(d)},{default:G(()=>[Q(K.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16,["onMouseenter","onMouseleave"]))}});var lO=ve(aO,[["__file","content.vue"]]);const xv=We(g$),$i=Symbol("elTooltip");function W0(){let e;const t=(a,l)=>{n(),e=window.setTimeout(a,l)},n=()=>window.clearTimeout(e);return Nr(()=>n()),{registerTimeout:t,cancelTimeout:n}}const oO=pe({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),rO=({showAfter:e,hideAfter:t,autoClose:n,open:a,close:l})=>{const{registerTimeout:r}=W0(),{registerTimeout:s,cancelTimeout:i}=W0();return{onOpen:d=>{r(()=>{a(d);const f=o(n);Ie(f)&&f>0&&s(()=>{l(d)},f)},o(e))},onClose:d=>{i(),r(()=>{l(d)},o(t))}}},Qt=pe({...oO,...Ev,appendTo:{type:X([String,Object])},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:X(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...rn(["ariaLabel"])}),pr=pe({...sv,disabled:Boolean,trigger:{type:X([String,Array]),default:"hover"},triggerKeys:{type:X(Array),default:()=>[Ce.enter,Ce.numpadEnter,Ce.space]}}),sO=va({type:X(Boolean),default:null}),iO=va({type:X(Function)}),uO=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,a=[t],l={[e]:sO,[n]:iO};return{useModelToggle:({indicator:s,toggleReason:i,shouldHideWhenRouteChanges:u,shouldProceed:c,onShow:d,onHide:f})=>{const h=et(),{emit:v}=h,m=h.props,p=C(()=>Je(m[n])),y=C(()=>m[e]===null),g=O=>{s.value!==!0&&(s.value=!0,i&&(i.value=O),Je(d)&&d(O))},x=O=>{s.value!==!1&&(s.value=!1,i&&(i.value=O),Je(f)&&f(O))},w=O=>{if(m.disabled===!0||Je(c)&&!c())return;const I=p.value&&ut;I&&v(t,!0),(y.value||!I)&&g(O)},b=O=>{if(m.disabled===!0||!ut)return;const I=p.value&&ut;I&&v(t,!1),(y.value||!I)&&x(O)},S=O=>{Et(O)&&(m.disabled&&O?p.value&&v(t,!1):s.value!==O&&(O?g():x()))},E=()=>{s.value?b():w()};return ue(()=>m[e],S),u&&h.appContext.config.globalProperties.$route!==void 0&&ue(()=>({...h.proxy.$route}),()=>{u.value&&s.value&&b()}),Xe(()=>{S(m[e])}),{hide:b,show:w,toggle:E,hasUpdateHandler:p}},useModelToggleProps:l,useModelToggleEmits:a}},{useModelToggleProps:cO,useModelToggleEmits:dO,useModelToggle:fO}=uO("visible"),pO=pe({...ov,...cO,...Qt,...pr,...rv,showArrow:{type:Boolean,default:!0}}),vO=[...dO,"before-show","before-hide","show","hide","open","close"],hO=(e,t)=>Ee(e)?e.includes(t):e===t,Wl=(e,t,n)=>a=>{hO(o(e),t)&&n(a)},Ht=(e,t,{checkForDefaultPrevented:n=!0}={})=>l=>{const r=e==null?void 0:e(l);if(n===!1||!r)return t==null?void 0:t(l)},j0=e=>t=>t.pointerType==="mouse"?e(t):void 0,mO=T({name:"ElTooltipTrigger"}),gO=T({...mO,props:pr,setup(e,{expose:t}){const n=e,a=de("tooltip"),{controlled:l,id:r,open:s,onOpen:i,onClose:u,onToggle:c}=Se($i,void 0),d=A(null),f=()=>{if(o(l)||n.disabled)return!0},h=yt(n,"trigger"),v=Ht(f,Wl(h,"hover",i)),m=Ht(f,Wl(h,"hover",u)),p=Ht(f,Wl(h,"click",b=>{b.button===0&&c(b)})),y=Ht(f,Wl(h,"focus",i)),g=Ht(f,Wl(h,"focus",u)),x=Ht(f,Wl(h,"contextmenu",b=>{b.preventDefault(),c(b)})),w=Ht(f,b=>{const{code:S}=b;n.triggerKeys.includes(S)&&(b.preventDefault(),c(b))});return t({triggerRef:d}),(b,S)=>(_(),ae(o($$),{id:o(r),"virtual-ref":b.virtualRef,open:o(s),"virtual-triggering":b.virtualTriggering,class:$(o(a).e("trigger")),onBlur:o(g),onClick:o(p),onContextmenu:o(x),onFocus:o(y),onMouseenter:o(v),onMouseleave:o(m),onKeydown:o(w)},{default:G(()=>[Q(b.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var yO=ve(gO,[["__file","trigger.vue"]]);const _O=pe({to:{type:X([String,Object]),required:!0},disabled:Boolean}),bO=T({__name:"teleport",props:_O,setup(e){return(t,n)=>t.disabled?Q(t.$slots,"default",{key:0}):(_(),ae(q4,{key:1,to:t.to},[Q(t.$slots,"default")],8,["to"]))}});var wO=ve(bO,[["__file","teleport.vue"]]);const Vo=We(wO),Mv=()=>{const e=Bc(),t=vd(),n=C(()=>`${e.value}-popper-container-${t.prefix}`),a=C(()=>`#${n.value}`);return{id:n,selector:a}},CO=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},SO=()=>{const{id:e,selector:t}=Mv();return Rc(()=>{ut&&(document.body.querySelector(t.value)||CO(e.value))}),{id:e,selector:t}},kO=T({name:"ElTooltipContent",inheritAttrs:!1}),EO=T({...kO,props:Qt,setup(e,{expose:t}){const n=e,{selector:a}=Mv(),l=de("tooltip"),r=A();let s;const{controlled:i,id:u,open:c,trigger:d,onClose:f,onOpen:h,onShow:v,onHide:m,onBeforeShow:p,onBeforeHide:y}=Se($i,void 0),g=C(()=>n.transition||`${l.namespace.value}-fade-in-linear`),x=C(()=>n.persistent);$t(()=>{s==null||s()});const w=C(()=>o(x)?!0:o(c)),b=C(()=>n.disabled?!1:o(c)),S=C(()=>n.appendTo||a.value),E=C(()=>{var D;return(D=n.style)!=null?D:{}}),O=A(!0),I=()=>{m(),V()&&Pa(document.body),O.value=!0},N=()=>{if(o(i))return!0},P=Ht(N,()=>{n.enterable&&o(d)==="hover"&&h()}),L=Ht(N,()=>{o(d)==="hover"&&f()}),R=()=>{var D,B;(B=(D=r.value)==null?void 0:D.updatePopper)==null||B.call(D),p==null||p()},K=()=>{y==null||y()},U=()=>{v(),s=nd(C(()=>{var D;return(D=r.value)==null?void 0:D.popperContentRef}),()=>{if(o(i))return;o(d)!=="hover"&&f()})},H=()=>{n.virtualTriggering||f()},V=D=>{var B;const z=(B=r.value)==null?void 0:B.popperContentRef,F=(D==null?void 0:D.relatedTarget)||document.activeElement;return z==null?void 0:z.contains(F)};return ue(()=>o(c),D=>{D?O.value=!1:s==null||s()},{flush:"post"}),ue(()=>n.content,()=>{var D,B;(B=(D=r.value)==null?void 0:D.updatePopper)==null||B.call(D)}),t({contentRef:r,isFocusInsideContent:V}),(D,B)=>(_(),ae(o(Vo),{disabled:!D.teleported,to:o(S)},{default:G(()=>[q(tn,{name:o(g),onAfterLeave:I,onBeforeEnter:R,onAfterEnter:U,onBeforeLeave:K},{default:G(()=>[o(w)?qe((_(),ae(o(lO),tt({key:0,id:o(u),ref_key:"contentRef",ref:r},D.$attrs,{"aria-label":D.ariaLabel,"aria-hidden":O.value,"boundaries-padding":D.boundariesPadding,"fallback-placements":D.fallbackPlacements,"gpu-acceleration":D.gpuAcceleration,offset:D.offset,placement:D.placement,"popper-options":D.popperOptions,strategy:D.strategy,effect:D.effect,enterable:D.enterable,pure:D.pure,"popper-class":D.popperClass,"popper-style":[D.popperStyle,o(E)],"reference-el":D.referenceEl,"trigger-target-el":D.triggerTargetEl,visible:o(b),"z-index":D.zIndex,onMouseenter:o(P),onMouseleave:o(L),onBlur:H,onClose:o(f)}),{default:G(()=>[Q(D.$slots,"default")]),_: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"])),[[pt,o(b)]]):ee("v-if",!0)]),_:3},8,["name"])]),_:3},8,["disabled","to"]))}});var xO=ve(EO,[["__file","content.vue"]]);const MO=T({name:"ElTooltip"}),$O=T({...MO,props:pO,emits:vO,setup(e,{expose:t,emit:n}){const a=e;SO();const l=on(),r=A(),s=A(),i=()=>{var g;const x=o(r);x&&((g=x.popperInstanceRef)==null||g.update())},u=A(!1),c=A(),{show:d,hide:f,hasUpdateHandler:h}=fO({indicator:u,toggleReason:c}),{onOpen:v,onClose:m}=rO({showAfter:yt(a,"showAfter"),hideAfter:yt(a,"hideAfter"),autoClose:yt(a,"autoClose"),open:d,close:f}),p=C(()=>Et(a.visible)&&!h.value);it($i,{controlled:p,id:l,open:oi(u),trigger:yt(a,"trigger"),onOpen:g=>{v(g)},onClose:g=>{m(g)},onToggle:g=>{o(u)?m(g):v(g)},onShow:()=>{n("show",c.value)},onHide:()=>{n("hide",c.value)},onBeforeShow:()=>{n("before-show",c.value)},onBeforeHide:()=>{n("before-hide",c.value)},updatePopper:i}),ue(()=>a.disabled,g=>{g&&u.value&&(u.value=!1)});const y=g=>{var x;return(x=s.value)==null?void 0:x.isFocusInsideContent(g)};return U4(()=>u.value&&f()),t({popperRef:r,contentRef:s,isFocusInsideContent:y,updatePopper:i,onOpen:v,onClose:m,hide:f}),(g,x)=>(_(),ae(o(xv),{ref_key:"popperRef",ref:r,role:g.role},{default:G(()=>[q(yO,{disabled:g.disabled,trigger:g.trigger,"trigger-keys":g.triggerKeys,"virtual-ref":g.virtualRef,"virtual-triggering":g.virtualTriggering},{default:G(()=>[g.$slots.default?Q(g.$slots,"default",{key:0}):ee("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),q(xO,{ref_key:"contentRef",ref:s,"aria-label":g.ariaLabel,"boundaries-padding":g.boundariesPadding,content:g.content,disabled:g.disabled,effect:g.effect,enterable:g.enterable,"fallback-placements":g.fallbackPlacements,"hide-after":g.hideAfter,"gpu-acceleration":g.gpuAcceleration,offset:g.offset,persistent:g.persistent,"popper-class":g.popperClass,"popper-style":g.popperStyle,placement:g.placement,"popper-options":g.popperOptions,pure:g.pure,"raw-content":g.rawContent,"reference-el":g.referenceEl,"trigger-target-el":g.triggerTargetEl,"show-after":g.showAfter,strategy:g.strategy,teleported:g.teleported,transition:g.transition,"virtual-triggering":g.virtualTriggering,"z-index":g.zIndex,"append-to":g.appendTo},{default:G(()=>[Q(g.$slots,"content",{},()=>[g.rawContent?(_(),M("span",{key:0,innerHTML:g.content},null,8,["innerHTML"])):(_(),M("span",{key:1},he(g.content),1))]),g.showArrow?(_(),ae(o(b$),{key:0,"arrow-offset":g.arrowOffset},null,8,["arrow-offset"])):ee("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 TO=ve($O,[["__file","tooltip.vue"]]);const hn=We(TO),OO=pe({valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:X(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:X([Function,Array]),default:zt},popperClass:{type:String,default:""},triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:{type:Boolean,default:!1},hideLoading:{type:Boolean,default:!1},teleported:Qt.teleported,highlightFirstItem:{type:Boolean,default:!1},fitInputWidth:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},name:String,...rn(["ariaLabel"])}),NO={[Ue]:e=>Ve(e),[fn]:e=>Ve(e),[Ct]:e=>Ve(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,select:e=>ht(e)},$v="ElAutocomplete",IO=T({name:$v,inheritAttrs:!1}),PO=T({...IO,props:OO,emits:NO,setup(e,{expose:t,emit:n}){const a=e,l=Pr(),r=Ka(),s=gn(),i=de("autocomplete"),u=A(),c=A(),d=A(),f=A();let h=!1,v=!1;const m=A([]),p=A(-1),y=A(""),g=A(!1),x=A(!1),w=A(!1),b=on(),S=C(()=>r.style),E=C(()=>(m.value.length>0||w.value)&&g.value),O=C(()=>!a.hideLoading&&w.value),I=C(()=>u.value?Array.from(u.value.$el.querySelectorAll("input")):[]),N=()=>{E.value&&(y.value=`${u.value.$el.offsetWidth}px`)},P=()=>{p.value=-1},L=async te=>{if(x.value)return;const se=fe=>{w.value=!1,!x.value&&(Ee(fe)?(m.value=fe,p.value=a.highlightFirstItem?0:-1):Gt($v,"autocomplete suggestions must be an array"))};if(w.value=!0,Ee(a.fetchSuggestions))se(a.fetchSuggestions);else{const fe=await a.fetchSuggestions(te,se);Ee(fe)&&se(fe)}},R=Rn(L,a.debounce),K=te=>{const se=!!te;if(n(fn,te),n(Ue,te),x.value=!1,g.value||(g.value=se),!a.triggerOnFocus&&!te){x.value=!0,m.value=[];return}R(te)},U=te=>{var se;s.value||(((se=te.target)==null?void 0:se.tagName)!=="INPUT"||I.value.includes(document.activeElement))&&(g.value=!0)},H=te=>{n(Ct,te)},V=te=>{v?v=!1:(g.value=!0,n("focus",te),a.triggerOnFocus&&!h&&R(String(a.modelValue)))},D=te=>{setTimeout(()=>{var se;if((se=d.value)!=null&&se.isFocusInsideContent()){v=!0;return}g.value&&W(),n("blur",te)})},B=()=>{g.value=!1,n(Ue,""),n("clear")},z=async()=>{E.value&&p.value>=0&&p.value{E.value&&(te.preventDefault(),te.stopPropagation(),W())},W=()=>{g.value=!1},Z=()=>{var te;(te=u.value)==null||te.focus()},j=()=>{var te;(te=u.value)==null||te.blur()},ne=async te=>{n(fn,te[a.valueKey]),n(Ue,te[a.valueKey]),n("select",te),m.value=[],p.value=-1},oe=te=>{if(!E.value||w.value)return;if(te<0){p.value=-1;return}te>=m.value.length&&(te=m.value.length-1);const se=c.value.querySelector(`.${i.be("suggestion","wrap")}`),xe=se.querySelectorAll(`.${i.be("suggestion","list")} li`)[te],me=se.scrollTop,{offsetTop:le,scrollHeight:we}=xe;le+we>me+se.clientHeight&&(se.scrollTop+=we),le{E.value&&W()});return $t(()=>{ce==null||ce()}),Xe(()=>{u.value.ref.setAttribute("role","textbox"),u.value.ref.setAttribute("aria-autocomplete","list"),u.value.ref.setAttribute("aria-controls","id"),u.value.ref.setAttribute("aria-activedescendant",`${b.value}-item-${p.value}`),h=u.value.ref.hasAttribute("readonly")}),t({highlightedIndex:p,activated:g,loading:w,inputRef:u,popperRef:d,suggestions:m,handleSelect:ne,handleKeyEnter:z,focus:Z,blur:j,close:W,highlight:oe,getData:L}),(te,se)=>(_(),ae(o(hn),{ref_key:"popperRef",ref:d,visible:o(E),placement:te.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[o(i).e("popper"),te.popperClass],teleported:te.teleported,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${o(i).namespace.value}-zoom-in-top`,persistent:"",role:"listbox",onBeforeShow:N,onHide:P},{content:G(()=>[k("div",{ref_key:"regionRef",ref:c,class:$([o(i).b("suggestion"),o(i).is("loading",o(O))]),style:Oe({[te.fitInputWidth?"width":"minWidth"]:y.value,outline:"none"}),role:"region"},[q(o(Ta),{id:o(b),tag:"ul","wrap-class":o(i).be("suggestion","wrap"),"view-class":o(i).be("suggestion","list"),role:"listbox"},{default:G(()=>[o(O)?(_(),M("li",{key:0},[Q(te.$slots,"loading",{},()=>[q(o(Me),{class:$(o(i).is("loading"))},{default:G(()=>[q(o(ca))]),_:1},8,["class"])])])):(_(!0),M(ze,{key:1},rt(m.value,(fe,xe)=>(_(),M("li",{id:`${o(b)}-item-${xe}`,key:xe,class:$({highlighted:p.value===xe}),role:"option","aria-selected":p.value===xe,onClick:me=>ne(fe)},[Q(te.$slots,"default",{item:fe},()=>[ot(he(fe[te.valueKey]),1)])],10,["id","aria-selected","onClick"]))),128))]),_:3},8,["id","wrap-class","view-class"])],6)]),default:G(()=>[k("div",{ref_key:"listboxRef",ref:f,class:$([o(i).b(),te.$attrs.class]),style:Oe(o(S)),role:"combobox","aria-haspopup":"listbox","aria-expanded":o(E),"aria-owns":o(b)},[q(o(Cn),tt({ref_key:"inputRef",ref:u},o(l),{clearable:te.clearable,disabled:o(s),name:te.name,"model-value":te.modelValue,"aria-label":te.ariaLabel,onInput:K,onChange:H,onFocus:V,onBlur:D,onClear:B,onKeydown:[kt(Ae(fe=>oe(p.value-1),["prevent"]),["up"]),kt(Ae(fe=>oe(p.value+1),["prevent"]),["down"]),kt(z,["enter"]),kt(W,["tab"]),kt(F,["esc"])],onMousedown:U}),Yn({_:2},[te.$slots.prepend?{name:"prepend",fn:G(()=>[Q(te.$slots,"prepend")])}:void 0,te.$slots.append?{name:"append",fn:G(()=>[Q(te.$slots,"append")])}:void 0,te.$slots.prefix?{name:"prefix",fn:G(()=>[Q(te.$slots,"prefix")])}:void 0,te.$slots.suffix?{name:"suffix",fn:G(()=>[Q(te.$slots,"suffix")])}:void 0]),1040,["clearable","disabled","name","model-value","aria-label","onKeydown"])],14,["aria-expanded","aria-owns"])]),_:3},8,["visible","placement","popper-class","teleported","transition"]))}});var zO=ve(PO,[["__file","autocomplete.vue"]]);const AO=We(zO),VO=pe({size:{type:[Number,String],values:xa,default:"",validator:e=>Ie(e)},shape:{type:String,values:["circle","square"],default:"circle"},icon:{type:St},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:X(String),default:"cover"}}),LO={error:e=>e instanceof Event},RO=T({name:"ElAvatar"}),BO=T({...RO,props:VO,emits:LO,setup(e,{emit:t}){const n=e,a=de("avatar"),l=A(!1),r=C(()=>{const{size:c,icon:d,shape:f}=n,h=[a.b()];return Ve(c)&&h.push(a.m(c)),d&&h.push(a.m("icon")),f&&h.push(a.m(f)),h}),s=C(()=>{const{size:c}=n;return Ie(c)?a.cssVarBlock({size:Rt(c)||""}):void 0}),i=C(()=>({objectFit:n.fit}));ue(()=>n.src,()=>l.value=!1);function u(c){l.value=!0,t("error",c)}return(c,d)=>(_(),M("span",{class:$(o(r)),style:Oe(o(s))},[(c.src||c.srcSet)&&!l.value?(_(),M("img",{key:0,src:c.src,alt:c.alt,srcset:c.srcSet,style:Oe(o(i)),onError:u},null,44,["src","alt","srcset"])):c.icon?(_(),ae(o(Me),{key:1},{default:G(()=>[(_(),ae(Qe(c.icon)))]),_:1})):Q(c.$slots,"default",{key:2})],6))}});var HO=ve(BO,[["__file","avatar.vue"]]);const DO=We(HO),FO={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},KO={click:e=>e instanceof MouseEvent},WO=(e,t,n)=>{const a=Ot(),l=Ot(),r=A(!1),s=()=>{a.value&&(r.value=a.value.scrollTop>=e.visibilityHeight)},i=c=>{var d;(d=a.value)==null||d.scrollTo({top:0,behavior:"smooth"}),t("click",c)},u=y1(s,300,!0);return wt(l,"scroll",u),Xe(()=>{var c;l.value=document,a.value=document.documentElement,e.target&&(a.value=(c=document.querySelector(e.target))!=null?c:void 0,a.value||Gt(n,`target does not exist: ${e.target}`),l.value=a.value),s()}),{visible:r,handleClick:i}},Tv="ElBacktop",jO=T({name:Tv}),qO=T({...jO,props:FO,emits:KO,setup(e,{emit:t}){const n=e,a=de("backtop"),{handleClick:l,visible:r}=WO(n,t,Tv),s=C(()=>({right:`${n.right}px`,bottom:`${n.bottom}px`}));return(i,u)=>(_(),ae(tn,{name:`${o(a).namespace.value}-fade-in`},{default:G(()=>[o(r)?(_(),M("div",{key:0,style:Oe(o(s)),class:$(o(a).b()),onClick:Ae(o(l),["stop"])},[Q(i.$slots,"default",{},()=>[q(o(Me),{class:$(o(a).e("icon"))},{default:G(()=>[q(o(L1))]),_:1},8,["class"])])],14,["onClick"])):ee("v-if",!0)]),_:3},8,["name"]))}});var UO=ve(qO,[["__file","backtop.vue"]]);const YO=We(UO),GO=pe({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,badgeStyle:{type:X([String,Object,Array])},offset:{type:X(Array),default:[0,0]},badgeClass:{type:String}}),XO=T({name:"ElBadge"}),ZO=T({...XO,props:GO,setup(e,{expose:t}){const n=e,a=de("badge"),l=C(()=>n.isDot?"":Ie(n.value)&&Ie(n.max)?n.max{var s,i,u,c,d;return[{backgroundColor:n.color,marginRight:Rt(-((i=(s=n.offset)==null?void 0:s[0])!=null?i:0)),marginTop:Rt((c=(u=n.offset)==null?void 0:u[1])!=null?c:0)},(d=n.badgeStyle)!=null?d:{}]});return t({content:l}),(s,i)=>(_(),M("div",{class:$(o(a).b())},[Q(s.$slots,"default"),q(tn,{name:`${o(a).namespace.value}-zoom-in-center`,persisted:""},{default:G(()=>[qe(k("sup",{class:$([o(a).e("content"),o(a).em("content",s.type),o(a).is("fixed",!!s.$slots.default),o(a).is("dot",s.isDot),o(a).is("hide-zero",!s.showZero&&n.value===0),s.badgeClass]),style:Oe(o(r))},[Q(s.$slots,"content",{value:o(l)},()=>[ot(he(o(l)),1)])],6),[[pt,!s.hidden&&(o(l)||s.isDot||s.$slots.content)]])]),_:3},8,["name"])],2))}});var JO=ve(ZO,[["__file","badge.vue"]]);const Ov=We(JO),Nv=Symbol("breadcrumbKey"),QO=pe({separator:{type:String,default:"/"},separatorIcon:{type:St}}),eN=T({name:"ElBreadcrumb"}),tN=T({...eN,props:QO,setup(e){const t=e,{t:n}=ct(),a=de("breadcrumb"),l=A();return it(Nv,t),Xe(()=>{const r=l.value.querySelectorAll(`.${a.e("item")}`);r.length&&r[r.length-1].setAttribute("aria-current","page")}),(r,s)=>(_(),M("div",{ref_key:"breadcrumb",ref:l,class:$(o(a).b()),"aria-label":o(n)("el.breadcrumb.label"),role:"navigation"},[Q(r.$slots,"default")],10,["aria-label"]))}});var nN=ve(tN,[["__file","breadcrumb.vue"]]);const aN=pe({to:{type:X([String,Object]),default:""},replace:Boolean}),lN=T({name:"ElBreadcrumbItem"}),oN=T({...lN,props:aN,setup(e){const t=e,n=et(),a=Se(Nv,void 0),l=de("breadcrumb"),r=n.appContext.config.globalProperties.$router,s=A(),i=()=>{!t.to||!r||(t.replace?r.replace(t.to):r.push(t.to))};return(u,c)=>{var d,f;return _(),M("span",{class:$(o(l).e("item"))},[k("span",{ref_key:"link",ref:s,class:$([o(l).e("inner"),o(l).is("link",!!u.to)]),role:"link",onClick:i},[Q(u.$slots,"default")],2),(d=o(a))!=null&&d.separatorIcon?(_(),ae(o(Me),{key:0,class:$(o(l).e("separator"))},{default:G(()=>[(_(),ae(Qe(o(a).separatorIcon)))]),_:1},8,["class"])):(_(),M("span",{key:1,class:$(o(l).e("separator")),role:"presentation"},he((f=o(a))==null?void 0:f.separator),3))],2)}}});var Iv=ve(oN,[["__file","breadcrumb-item.vue"]]);const rN=We(nN,{BreadcrumbItem:Iv}),sN=Lt(Iv),Pv=Symbol("buttonGroupContextKey"),nl=({from:e,replacement:t,scope:n,version:a,ref:l,type:r="API"},s)=>{ue(()=>o(s),i=>{},{immediate:!0})},iN=(e,t)=>{nl({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},C(()=>e.type==="text"));const n=Se(Pv,void 0),a=yi("button"),{form:l}=mn(),r=jt(C(()=>n==null?void 0:n.size)),s=gn(),i=A(),u=Xt(),c=C(()=>e.type||(n==null?void 0:n.type)||""),d=C(()=>{var m,p,y;return(y=(p=e.autoInsertSpace)!=null?p:(m=a.value)==null?void 0:m.autoInsertSpace)!=null?y:!1}),f=C(()=>e.tag==="button"?{ariaDisabled:s.value||e.loading,disabled:s.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),h=C(()=>{var m;const p=(m=u.default)==null?void 0:m.call(u);if(d.value&&(p==null?void 0:p.length)===1){const y=p[0];if((y==null?void 0:y.type)===Ep){const g=y.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(g.trim())}}return!1});return{_disabled:s,_size:r,_type:c,_ref:i,_props:f,shouldAddSpace:h,handleClick:m=>{if(s.value||e.loading){m.stopPropagation();return}e.nativeType==="reset"&&(l==null||l.resetFields()),t("click",m)}}},Vu=["default","primary","success","warning","info","danger","text",""],uN=["button","submit","reset"],Lu=pe({size:qt,disabled:Boolean,type:{type:String,values:Vu,default:""},icon:{type:St},nativeType:{type:String,values:uN,default:"button"},loading:Boolean,loadingIcon:{type:St,default:()=>ca},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:X([String,Object]),default:"button"}}),cN={click:e=>e instanceof MouseEvent};function pn(e,t){dN(e)&&(e="100%");var n=fN(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 Zr(e){return Math.min(1,Math.max(0,e))}function dN(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function fN(e){return typeof e=="string"&&e.indexOf("%")!==-1}function zv(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Jr(e){return e<=1?"".concat(Number(e)*100,"%"):e}function _l(e){return e.length===1?"0"+e:String(e)}function pN(e,t,n){return{r:pn(e,255)*255,g:pn(t,255)*255,b:pn(n,255)*255}}function q0(e,t,n){e=pn(e,255),t=pn(t,255),n=pn(n,255);var a=Math.max(e,t,n),l=Math.min(e,t,n),r=0,s=0,i=(a+l)/2;if(a===l)s=0,r=0;else{var u=a-l;switch(s=i>.5?u/(2-a-l):u/(a+l),a){case e:r=(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 vN(e,t,n){var a,l,r;if(e=pn(e,360),t=pn(t,100),n=pn(n,100),t===0)l=n,r=n,a=n;else{var s=n<.5?n*(1+t):n+t-n*t,i=2*n-s;a=eu(i,s,e+1/3),l=eu(i,s,e),r=eu(i,s,e-1/3)}return{r:a*255,g:l*255,b:r*255}}function U0(e,t,n){e=pn(e,255),t=pn(t,255),n=pn(n,255);var a=Math.max(e,t,n),l=Math.min(e,t,n),r=0,s=a,i=a-l,u=a===0?0:i/a;if(a===l)r=0;else{switch(a){case e:r=(t-n)/i+(t>16,g:(e&65280)>>8,b:e&255}}var Ru={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 _N(e){var t={r:0,g:0,b:0},n=1,a=null,l=null,r=null,s=!1,i=!1;return typeof e=="string"&&(e=CN(e)),typeof e=="object"&&(Ia(e.r)&&Ia(e.g)&&Ia(e.b)?(t=pN(e.r,e.g,e.b),s=!0,i=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Ia(e.h)&&Ia(e.s)&&Ia(e.v)?(a=Jr(e.s),l=Jr(e.v),t=hN(e.h,a,l),s=!0,i="hsv"):Ia(e.h)&&Ia(e.s)&&Ia(e.l)&&(a=Jr(e.s),r=Jr(e.l),t=vN(e.h,a,r),s=!0,i="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=zv(n),{ok:s,format:e.format||i,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 bN="[-\\+]?\\d+%?",wN="[-\\+]?\\d*\\.\\d+%?",el="(?:".concat(wN,")|(?:").concat(bN,")"),tu="[\\s|\\(]+(".concat(el,")[,|\\s]+(").concat(el,")[,|\\s]+(").concat(el,")\\s*\\)?"),nu="[\\s|\\(]+(".concat(el,")[,|\\s]+(").concat(el,")[,|\\s]+(").concat(el,")[,|\\s]+(").concat(el,")\\s*\\)?"),na={CSS_UNIT:new RegExp(el),rgb:new RegExp("rgb"+tu),rgba:new RegExp("rgba"+nu),hsl:new RegExp("hsl"+tu),hsla:new RegExp("hsla"+nu),hsv:new RegExp("hsv"+tu),hsva:new RegExp("hsva"+nu),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 CN(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Ru[e])e=Ru[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=na.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=na.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=na.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=na.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=na.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=na.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=na.hex8.exec(e),n?{r:Bn(n[1]),g:Bn(n[2]),b:Bn(n[3]),a:G0(n[4]),format:t?"name":"hex8"}:(n=na.hex6.exec(e),n?{r:Bn(n[1]),g:Bn(n[2]),b:Bn(n[3]),format:t?"name":"hex"}:(n=na.hex4.exec(e),n?{r:Bn(n[1]+n[1]),g:Bn(n[2]+n[2]),b:Bn(n[3]+n[3]),a:G0(n[4]+n[4]),format:t?"name":"hex8"}:(n=na.hex3.exec(e),n?{r:Bn(n[1]+n[1]),g:Bn(n[2]+n[2]),b:Bn(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Ia(e){return!!na.CSS_UNIT.exec(String(e))}var Av=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var a;if(t instanceof e)return t;typeof t=="number"&&(t=yN(t)),this.originalInput=t;var l=_N(t);this.originalInput=t,this.r=l.r,this.g=l.g,this.b=l.b,this.a=l.a,this.roundA=Math.round(100*this.a)/100,this.format=(a=n.format)!==null&&a!==void 0?a:l.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=l.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,a,l,r=t.r/255,s=t.g/255,i=t.b/255;return r<=.03928?n=r/12.92:n=Math.pow((r+.055)/1.055,2.4),s<=.03928?a=s/12.92:a=Math.pow((s+.055)/1.055,2.4),i<=.03928?l=i/12.92:l=Math.pow((i+.055)/1.055,2.4),.2126*n+.7152*a+.0722*l},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=zv(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=U0(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=U0(this.r,this.g,this.b),n=Math.round(t.h*360),a=Math.round(t.s*100),l=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(a,"%, ").concat(l,"%)"):"hsva(".concat(n,", ").concat(a,"%, ").concat(l,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=q0(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=q0(this.r,this.g,this.b),n=Math.round(t.h*360),a=Math.round(t.s*100),l=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(a,"%, ").concat(l,"%)"):"hsla(".concat(n,", ").concat(a,"%, ").concat(l,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Y0(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),mN(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),a=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(a,")"):"rgba(".concat(t,", ").concat(n,", ").concat(a,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(pn(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(pn(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="#"+Y0(this.r,this.g,this.b,!1),n=0,a=Object.entries(Ru);n=0,r=!n&&l&&(t.startsWith("hex")||t==="name");return r?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(a=this.toRgbString()),t==="prgb"&&(a=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(a=this.toHexString()),t==="hex3"&&(a=this.toHexString(!0)),t==="hex4"&&(a=this.toHex8String(!0)),t==="hex8"&&(a=this.toHex8String()),t==="name"&&(a=this.toName()),t==="hsl"&&(a=this.toHslString()),t==="hsv"&&(a=this.toHsvString()),a||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=Zr(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=Zr(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=Zr(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=Zr(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),a=(n.h+t)%360;return n.h=a<0?360+a:a,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var a=this.toRgb(),l=new e(t).toRgb(),r=n/100,s={r:(l.r-a.r)*r+a.r,g:(l.g-a.g)*r+a.g,b:(l.b-a.b)*r+a.b,a:(l.a-a.a)*r+a.a};return new e(s)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var a=this.toHsl(),l=360/n,r=[this];for(a.h=(a.h-(l*t>>1)+720)%360;--t;)a.h=(a.h+l)%360,r.push(new e(a));return r},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(),a=n.h,l=n.s,r=n.v,s=[],i=1/t;t--;)s.push(new e({h:a,s:l,v:r})),r=(r+i)%1;return s},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(),a=new e(t).toRgb(),l=n.a+a.a*(1-n.a);return new e({r:(n.r*n.a+a.r*a.a*(1-n.a))/l,g:(n.g*n.a+a.g*a.a*(1-n.a))/l,b:(n.b*n.a+a.b*a.a*(1-n.a))/l,a:l})},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(),a=n.h,l=[this],r=360/t,s=1;s{let a={},l=e.color;if(l){const r=l.match(/var\((.*?)\)/);r&&(l=window.getComputedStyle(window.document.documentElement).getPropertyValue(r[1]));const s=new Av(l),i=e.dark?s.tint(20).toString():Za(s,20);if(e.plain)a=n.cssVarBlock({"bg-color":e.dark?Za(s,90):s.tint(90).toString(),"text-color":l,"border-color":e.dark?Za(s,50):s.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":l,"hover-border-color":l,"active-bg-color":i,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":i}),t.value&&(a[n.cssVarBlockName("disabled-bg-color")]=e.dark?Za(s,90):s.tint(90).toString(),a[n.cssVarBlockName("disabled-text-color")]=e.dark?Za(s,50):s.tint(50).toString(),a[n.cssVarBlockName("disabled-border-color")]=e.dark?Za(s,80):s.tint(80).toString());else{const u=e.dark?Za(s,30):s.tint(30).toString(),c=s.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(a=n.cssVarBlock({"bg-color":l,"text-color":c,"border-color":l,"hover-bg-color":u,"hover-text-color":c,"hover-border-color":u,"active-bg-color":i,"active-border-color":i}),t.value){const d=e.dark?Za(s,50):s.tint(50).toString();a[n.cssVarBlockName("disabled-bg-color")]=d,a[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,a[n.cssVarBlockName("disabled-border-color")]=d}}}return a})}const kN=T({name:"ElButton"}),EN=T({...kN,props:Lu,emits:cN,setup(e,{expose:t,emit:n}){const a=e,l=SN(a),r=de("button"),{_ref:s,_size:i,_type:u,_disabled:c,_props:d,shouldAddSpace:f,handleClick:h}=iN(a,n),v=C(()=>[r.b(),r.m(u.value),r.m(i.value),r.is("disabled",c.value),r.is("loading",a.loading),r.is("plain",a.plain),r.is("round",a.round),r.is("circle",a.circle),r.is("text",a.text),r.is("link",a.link),r.is("has-bg",a.bg)]);return t({ref:s,size:i,type:u,disabled:c,shouldAddSpace:f}),(m,p)=>(_(),ae(Qe(m.tag),tt({ref_key:"_ref",ref:s},o(d),{class:o(v),style:o(l),onClick:o(h)}),{default:G(()=>[m.loading?(_(),M(ze,{key:0},[m.$slots.loading?Q(m.$slots,"loading",{key:0}):(_(),ae(o(Me),{key:1,class:$(o(r).is("loading"))},{default:G(()=>[(_(),ae(Qe(m.loadingIcon)))]),_:1},8,["class"]))],64)):m.icon||m.$slots.icon?(_(),ae(o(Me),{key:1},{default:G(()=>[m.icon?(_(),ae(Qe(m.icon),{key:0})):Q(m.$slots,"icon",{key:1})]),_:3})):ee("v-if",!0),m.$slots.default?(_(),M("span",{key:2,class:$({[o(r).em("text","expand")]:o(f)})},[Q(m.$slots,"default")],2)):ee("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var xN=ve(EN,[["__file","button.vue"]]);const MN={size:Lu.size,type:Lu.type},$N=T({name:"ElButtonGroup"}),TN=T({...$N,props:MN,setup(e){const t=e;it(Pv,_t({size:yt(t,"size"),type:yt(t,"type")}));const n=de("button");return(a,l)=>(_(),M("div",{class:$(o(n).b("group"))},[Q(a.$slots,"default")],2))}});var Vv=ve(TN,[["__file","button-group.vue"]]);const en=We(xN,{ButtonGroup:Vv}),Lv=Lt(Vv);var fs={exports:{}},ON=fs.exports,X0;function NN(){return X0||(X0=1,function(e,t){(function(n,a){e.exports=a()})(ON,function(){var n=1e3,a=6e4,l=36e5,r="millisecond",s="second",i="minute",u="hour",c="day",d="week",f="month",h="quarter",v="year",m="date",p="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,x={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(U){var H=["th","st","nd","rd"],V=U%100;return"["+U+(H[(V-20)%10]||H[V]||H[0])+"]"}},w=function(U,H,V){var D=String(U);return!D||D.length>=H?U:""+Array(H+1-D.length).join(V)+U},b={s:w,z:function(U){var H=-U.utcOffset(),V=Math.abs(H),D=Math.floor(V/60),B=V%60;return(H<=0?"+":"-")+w(D,2,"0")+":"+w(B,2,"0")},m:function U(H,V){if(H.date()1)return U(F[0])}else{var W=H.name;E[W]=H,B=W}return!D&&B&&(S=B),B||!D&&S},P=function(U,H){if(I(U))return U.clone();var V=typeof H=="object"?H:{};return V.date=U,V.args=arguments,new R(V)},L=b;L.l=N,L.i=I,L.w=function(U,H){return P(U,{locale:H.$L,utc:H.$u,x:H.$x,$offset:H.$offset})};var R=function(){function U(V){this.$L=N(V.locale,null,!0),this.parse(V),this.$x=this.$x||V.x||{},this[O]=!0}var H=U.prototype;return H.parse=function(V){this.$d=function(D){var B=D.date,z=D.utc;if(B===null)return new Date(NaN);if(L.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var F=B.match(y);if(F){var W=F[2]-1||0,Z=(F[7]||"0").substring(0,3);return z?new Date(Date.UTC(F[1],W,F[3]||1,F[4]||0,F[5]||0,F[6]||0,Z)):new Date(F[1],W,F[3]||1,F[4]||0,F[5]||0,F[6]||0,Z)}}return new Date(B)}(V),this.init()},H.init=function(){var V=this.$d;this.$y=V.getFullYear(),this.$M=V.getMonth(),this.$D=V.getDate(),this.$W=V.getDay(),this.$H=V.getHours(),this.$m=V.getMinutes(),this.$s=V.getSeconds(),this.$ms=V.getMilliseconds()},H.$utils=function(){return L},H.isValid=function(){return this.$d.toString()!==p},H.isSame=function(V,D){var B=P(V);return this.startOf(D)<=B&&B<=this.endOf(D)},H.isAfter=function(V,D){return P(V)[e>0?e-1:void 0,e,eArray.from(Array.from({length:e}).keys()),Rv=e=>e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),Bv=e=>e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),Z0=function(e,t){const n=io(e),a=io(t);return n&&a?e.getTime()===t.getTime():!n&&!a?e===t:!1},J0=function(e,t){const n=Ee(e),a=Ee(t);return n&&a?e.length!==t.length?!1:e.every((l,r)=>Z0(l,t[r])):!n&&!a?Z0(e,t):!1},Q0=function(e,t,n){const a=Hn(t)||t==="x"?Be(e).locale(n):Be(e,t).locale(n);return a.isValid()?a:void 0},e2=function(e,t,n){return Hn(t)?e:t==="x"?+e:Be(e).locale(n).format(t)},lu=(e,t)=>{var n;const a=[],l=t==null?void 0:t();for(let r=0;rEe(e)?e.map(t=>t.toDate()):e.toDate(),PN=(e,t)=>{const n=e.subtract(1,"month").endOf("month").date();return al(t).map((a,l)=>n-(t-l-1))},zN=e=>{const t=e.daysInMonth();return al(t).map((n,a)=>a+1)},AN=e=>al(e.length/7).map(t=>{const n=t*7;return e.slice(n,n+7)}),VN=pe({selectedDay:{type:X(Object)},range:{type:X(Array)},date:{type:X(Object),required:!0},hideHeader:{type:Boolean}}),LN={pick:e=>ht(e)};var ps={exports:{}},RN=ps.exports,t2;function BN(){return t2||(t2=1,function(e,t){(function(n,a){e.exports=a()})(RN,function(){return function(n,a,l){var r=a.prototype,s=function(f){return f&&(f.indexOf?f:f.s)},i=function(f,h,v,m,p){var y=f.name?f:f.$locale(),g=s(y[h]),x=s(y[v]),w=g||x.map(function(S){return S.slice(0,m)});if(!p)return w;var b=y.weekStart;return w.map(function(S,E){return w[(E+(b||0))%7]})},u=function(){return l.Ls[l.locale()]},c=function(f,h){return f.formats[h]||function(v){return v.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(m,p,y){return p||y.slice(1)})}(f.formats[h.toUpperCase()])},d=function(){var f=this;return{months:function(h){return h?h.format("MMMM"):i(f,"months")},monthsShort:function(h){return h?h.format("MMM"):i(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(h){return h?h.format("dddd"):i(f,"weekdays")},weekdaysMin:function(h){return h?h.format("dd"):i(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(h){return h?h.format("ddd"):i(f,"weekdaysShort","weekdays",3)},longDateFormat:function(h){return c(f.$locale(),h)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return d.bind(this)()},l.localeData=function(){var f=u();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return l.weekdays()},weekdaysShort:function(){return l.weekdaysShort()},weekdaysMin:function(){return l.weekdaysMin()},months:function(){return l.months()},monthsShort:function(){return l.monthsShort()},longDateFormat:function(h){return c(f,h)},meridiem:f.meridiem,ordinal:f.ordinal}},l.months=function(){return i(u(),"months")},l.monthsShort=function(){return i(u(),"monthsShort","months",3)},l.weekdays=function(f){return i(u(),"weekdays",null,null,f)},l.weekdaysShort=function(f){return i(u(),"weekdaysShort","weekdays",3,f)},l.weekdaysMin=function(f){return i(u(),"weekdaysMin","weekdays",2,f)}}})}(ps)),ps.exports}var HN=BN();const Hv=ja(HN),DN=["year","years","month","months","date","dates","week","datetime","datetimerange","daterange","monthrange","yearrange"],ou=["sun","mon","tue","wed","thu","fri","sat"],FN=(e,t)=>{Be.extend(Hv);const n=Be.localeData().firstDayOfWeek(),{t:a,lang:l}=ct(),r=Be().locale(l.value),s=C(()=>!!e.range&&!!e.range.length),i=C(()=>{let h=[];if(s.value){const[v,m]=e.range,p=al(m.date()-v.date()+1).map(x=>({text:v.date()+x,type:"current"}));let y=p.length%7;y=y===0?0:7-y;const g=al(y).map((x,w)=>({text:w+1,type:"next"}));h=p.concat(g)}else{const v=e.date.startOf("month").day(),m=PN(e.date,(v-n+7)%7).map(x=>({text:x,type:"prev"})),p=zN(e.date).map(x=>({text:x,type:"current"}));h=[...m,...p];const y=7-(h.length%7||7),g=al(y).map((x,w)=>({text:w+1,type:"next"}));h=h.concat(g)}return AN(h)}),u=C(()=>{const h=n;return h===0?ou.map(v=>a(`el.datepicker.weeks.${v}`)):ou.slice(h).concat(ou.slice(0,h)).map(v=>a(`el.datepicker.weeks.${v}`))}),c=(h,v)=>{switch(v){case"prev":return e.date.startOf("month").subtract(1,"month").date(h);case"next":return e.date.startOf("month").add(1,"month").date(h);case"current":return e.date.date(h)}};return{now:r,isInRange:s,rows:i,weekDays:u,getFormattedDate:c,handlePickDay:({text:h,type:v})=>{const m=c(h,v);t("pick",m)},getSlotData:({text:h,type:v})=>{const m=c(h,v);return{isSelected:m.isSame(e.selectedDay),type:`${v}-month`,day:m.format("YYYY-MM-DD"),date:m.toDate()}}}},KN=T({name:"DateTable"}),WN=T({...KN,props:VN,emits:LN,setup(e,{expose:t,emit:n}){const a=e,{isInRange:l,now:r,rows:s,weekDays:i,getFormattedDate:u,handlePickDay:c,getSlotData:d}=FN(a,n),f=de("calendar-table"),h=de("calendar-day"),v=({text:m,type:p})=>{const y=[p];if(p==="current"){const g=u(m,p);g.isSame(a.selectedDay,"day")&&y.push(h.is("selected")),g.isSame(r,"day")&&y.push(h.is("today"))}return y};return t({getFormattedDate:u}),(m,p)=>(_(),M("table",{class:$([o(f).b(),o(f).is("range",o(l))]),cellspacing:"0",cellpadding:"0"},[m.hideHeader?ee("v-if",!0):(_(),M("thead",{key:0},[k("tr",null,[(_(!0),M(ze,null,rt(o(i),y=>(_(),M("th",{key:y,scope:"col"},he(y),1))),128))])])),k("tbody",null,[(_(!0),M(ze,null,rt(o(s),(y,g)=>(_(),M("tr",{key:g,class:$({[o(f).e("row")]:!0,[o(f).em("row","hide-border")]:g===0&&m.hideHeader})},[(_(!0),M(ze,null,rt(y,(x,w)=>(_(),M("td",{key:w,class:$(v(x)),onClick:b=>o(c)(x)},[k("div",{class:$(o(h).b())},[Q(m.$slots,"date-cell",{data:o(d)(x)},()=>[k("span",null,he(x.text),1)])],2)],10,["onClick"]))),128))],2))),128))])],2))}});var n2=ve(WN,[["__file","date-table.vue"]]);const jN=(e,t)=>{const n=e.endOf("month"),a=t.startOf("month"),r=n.isSame(a,"week")?a.add(1,"week"):a;return[[e,n],[r.startOf("week"),t]]},qN=(e,t)=>{const n=e.endOf("month"),a=e.add(1,"month").startOf("month"),l=n.isSame(a,"week")?a.add(1,"week"):a,r=l.endOf("month"),s=t.startOf("month"),i=r.isSame(s,"week")?s.add(1,"week"):s;return[[e,n],[l.startOf("week"),r],[i.startOf("week"),t]]},UN=(e,t,n)=>{const{lang:a}=ct(),l=A(),r=Be().locale(a.value),s=C({get(){return e.modelValue?u.value:l.value},set(y){if(!y)return;l.value=y;const g=y.toDate();t(fn,g),t(Ue,g)}}),i=C(()=>{if(!e.range||!Ee(e.range)||e.range.length!==2||e.range.some(w=>!io(w)))return[];const y=e.range.map(w=>Be(w).locale(a.value)),[g,x]=y;return g.isAfter(x)?[]:g.isSame(x,"month")?v(g,x):g.add(1,"month").month()!==x.month()?[]:v(g,x)}),u=C(()=>e.modelValue?Be(e.modelValue).locale(a.value):s.value||(i.value.length?i.value[0][0]:r)),c=C(()=>u.value.subtract(1,"month").date(1)),d=C(()=>u.value.add(1,"month").date(1)),f=C(()=>u.value.subtract(1,"year").date(1)),h=C(()=>u.value.add(1,"year").date(1)),v=(y,g)=>{const x=y.startOf("week"),w=g.endOf("week"),b=x.get("month"),S=w.get("month");return b===S?[[x,w]]:(b+1)%12===S?jN(x,w):b+2===S||(b+1)%11===S?qN(x,w):[]},m=y=>{s.value=y};return{calculateValidatedDateRange:v,date:u,realSelectedDay:s,pickDay:m,selectDate:y=>{const x={"prev-month":c.value,"next-month":d.value,"prev-year":f.value,"next-year":h.value,today:r}[y];x.isSame(u.value,"day")||m(x)},validatedRange:i}},YN=e=>Ee(e)&&e.length===2&&e.every(t=>io(t)),GN=pe({modelValue:{type:Date},range:{type:X(Array),validator:YN}}),XN={[Ue]:e=>io(e),[fn]:e=>io(e)},ZN="ElCalendar",JN=T({name:ZN}),QN=T({...JN,props:GN,emits:XN,setup(e,{expose:t,emit:n}){const a=e,l=de("calendar"),{calculateValidatedDateRange:r,date:s,pickDay:i,realSelectedDay:u,selectDate:c,validatedRange:d}=UN(a,n),{t:f}=ct(),h=C(()=>{const v=`el.datepicker.month${s.value.format("M")}`;return`${s.value.year()} ${f("el.datepicker.year")} ${f(v)}`});return t({selectedDay:u,pickDay:i,selectDate:c,calculateValidatedDateRange:r}),(v,m)=>(_(),M("div",{class:$(o(l).b())},[k("div",{class:$(o(l).e("header"))},[Q(v.$slots,"header",{date:o(h)},()=>[k("div",{class:$(o(l).e("title"))},he(o(h)),3),o(d).length===0?(_(),M("div",{key:0,class:$(o(l).e("button-group"))},[q(o(Lv),null,{default:G(()=>[q(o(en),{size:"small",onClick:p=>o(c)("prev-month")},{default:G(()=>[ot(he(o(f)("el.datepicker.prevMonth")),1)]),_:1},8,["onClick"]),q(o(en),{size:"small",onClick:p=>o(c)("today")},{default:G(()=>[ot(he(o(f)("el.datepicker.today")),1)]),_:1},8,["onClick"]),q(o(en),{size:"small",onClick:p=>o(c)("next-month")},{default:G(()=>[ot(he(o(f)("el.datepicker.nextMonth")),1)]),_:1},8,["onClick"])]),_:1})],2)):ee("v-if",!0)])],2),o(d).length===0?(_(),M("div",{key:0,class:$(o(l).e("body"))},[q(n2,{date:o(s),"selected-day":o(u),onPick:o(i)},Yn({_:2},[v.$slots["date-cell"]?{name:"date-cell",fn:G(p=>[Q(v.$slots,"date-cell",oa(Tl(p)))])}:void 0]),1032,["date","selected-day","onPick"])],2)):(_(),M("div",{key:1,class:$(o(l).e("body"))},[(_(!0),M(ze,null,rt(o(d),(p,y)=>(_(),ae(n2,{key:y,date:p[0],"selected-day":o(u),range:p,"hide-header":y!==0,onPick:o(i)},Yn({_:2},[v.$slots["date-cell"]?{name:"date-cell",fn:G(g=>[Q(v.$slots,"date-cell",oa(Tl(g)))])}:void 0]),1032,["date","selected-day","range","hide-header","onPick"]))),128))],2))],2))}});var eI=ve(QN,[["__file","calendar.vue"]]);const tI=We(eI),nI=pe({header:{type:String,default:""},footer:{type:String,default:""},bodyStyle:{type:X([String,Object,Array]),default:""},bodyClass:String,shadow:{type:String,values:["always","hover","never"],default:"always"}}),aI=T({name:"ElCard"}),lI=T({...aI,props:nI,setup(e){const t=de("card");return(n,a)=>(_(),M("div",{class:$([o(t).b(),o(t).is(`${n.shadow}-shadow`)])},[n.$slots.header||n.header?(_(),M("div",{key:0,class:$(o(t).e("header"))},[Q(n.$slots,"header",{},()=>[ot(he(n.header),1)])],2)):ee("v-if",!0),k("div",{class:$([o(t).e("body"),n.bodyClass]),style:Oe(n.bodyStyle)},[Q(n.$slots,"default")],6),n.$slots.footer||n.footer?(_(),M("div",{key:1,class:$(o(t).e("footer"))},[Q(n.$slots,"footer",{},()=>[ot(he(n.footer),1)])],2)):ee("v-if",!0)],2))}});var oI=ve(lI,[["__file","card.vue"]]);const rI=We(oI),sI=pe({initialIndex:{type:Number,default:0},height:{type:String,default:""},trigger:{type:String,values:["hover","click"],default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:{type:String,values:["","none","outside"],default:""},arrow:{type:String,values:["always","hover","never"],default:"hover"},type:{type:String,values:["","card"],default:""},cardScale:{type:Number,default:.83},loop:{type:Boolean,default:!0},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},pauseOnHover:{type:Boolean,default:!0},motionBlur:Boolean}),iI={change:(e,t)=>[e,t].every(Ie)},Dv=Symbol("carouselContextKey"),Bu="ElCarouselItem";var Kn=(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))(Kn||{});function Hu(e){return Ft(e)&&e.type===ze}function uI(e){return Ft(e)&&e.type===ri}function cI(e){return Ft(e)&&!Hu(e)&&!uI(e)}const dI=e=>{if(!Ft(e))return{};const t=e.props||{},n=(Ft(e.type)?e.type.props:void 0)||{},a={};return Object.keys(n).forEach(l=>{vn(n[l],"default")&&(a[l]=n[l].default)}),Object.keys(t).forEach(l=>{a[Lc(l)]=t[l]}),a},fI=e=>{if(!Ee(e)||e.length>1)throw new Error("expect to receive a single Vue element child");return e[0]},ll=e=>{const t=Ee(e)?e:[e],n=[];return t.forEach(a=>{var l;Ee(a)?n.push(...ll(a)):Ft(a)&&((l=a.component)!=null&&l.subTree)?n.push(a,...ll(a.component.subTree)):Ft(a)&&Ee(a.children)?n.push(...ll(a.children)):n.push(a)}),n},pI=(e,t,n)=>ll(e.subTree).filter(r=>{var s;return Ft(r)&&((s=r.type)==null?void 0:s.name)===t&&!!r.component}).map(r=>r.component.uid).map(r=>n[r]).filter(r=>!!r),$d=(e,t)=>{const n={},a=Ot([]);return{children:a,addChild:s=>{n[s.uid]=s,a.value=pI(e,t,n)},removeChild:s=>{delete n[s],a.value=a.value.filter(i=>i.uid!==s)}}},a2=300,vI=(e,t,n)=>{const{children:a,addChild:l,removeChild:r}=$d(et(),Bu),s=Xt(),i=A(-1),u=A(null),c=A(!1),d=A(),f=A(0),h=A(!0),v=A(!0),m=A(!1),p=C(()=>e.arrow!=="never"&&!o(x)),y=C(()=>a.value.some(ce=>ce.props.label.toString().length>0)),g=C(()=>e.type==="card"),x=C(()=>e.direction==="vertical"),w=C(()=>e.height!=="auto"?{height:e.height}:{height:`${f.value}px`,overflow:"hidden"}),b=El(ce=>{P(ce)},a2,{trailing:!0}),S=El(ce=>{z(ce)},a2),E=ce=>h.value?i.value<=1?ce<=1:ce>1:!0;function O(){u.value&&(clearInterval(u.value),u.value=null)}function I(){e.interval<=0||!e.autoplay||u.value||(u.value=setInterval(()=>N(),e.interval))}const N=()=>{v.value||(m.value=!0),v.value=!1,i.valuexe.props.name===ce);fe.length>0&&(ce=a.value.indexOf(fe[0]))}if(ce=Number(ce),Number.isNaN(ce)||ce!==Math.floor(ce))return;const te=a.value.length,se=i.value;ce<0?i.value=e.loop?te-1:0:ce>=te?i.value=e.loop?0:te-1:i.value=ce,se===i.value&&L(se),Z()}function L(ce){a.value.forEach((te,se)=>{te.translateItem(se,i.value,ce)})}function R(ce,te){var se,fe,xe,me;const le=o(a),we=le.length;if(we===0||!ce.states.inStage)return!1;const Le=te+1,De=te-1,Ye=we-1,$e=le[Ye].states.active,Te=le[0].states.active,ke=(fe=(se=le[Le])==null?void 0:se.states)==null?void 0:fe.active,He=(me=(xe=le[De])==null?void 0:xe.states)==null?void 0:me.active;return te===Ye&&Te||ke?"left":te===0&&$e||He?"right":!1}function K(){c.value=!0,e.pauseOnHover&&O()}function U(){c.value=!1,I()}function H(){m.value=!1}function V(ce){o(x)||a.value.forEach((te,se)=>{ce===R(te,se)&&(te.states.hover=!0)})}function D(){o(x)||a.value.forEach(ce=>{ce.states.hover=!1})}function B(ce){ce!==i.value&&(v.value||(m.value=!0)),i.value=ce}function z(ce){e.trigger==="hover"&&ce!==i.value&&(i.value=ce,v.value||(m.value=!0))}function F(){P(i.value-1)}function W(){P(i.value+1)}function Z(){O(),e.pauseOnHover||I()}function j(ce){e.height==="auto"&&(f.value=ce)}function ne(){var ce;const te=(ce=s.default)==null?void 0:ce.call(s);if(!te)return null;const fe=ll(te).filter(xe=>Ft(xe)&&xe.type.name===Bu);return(fe==null?void 0:fe.length)===2&&e.loop&&!g.value?(h.value=!0,fe):(h.value=!1,null)}ue(()=>i.value,(ce,te)=>{L(te),h.value&&(ce=ce%2,te=te%2),te>-1&&t("change",ce,te)}),ue(()=>e.autoplay,ce=>{ce?I():O()}),ue(()=>e.loop,()=>{P(i.value)}),ue(()=>e.interval,()=>{Z()});const oe=Ot();return Xe(()=>{ue(()=>a.value,()=>{a.value.length>0&&P(e.initialIndex)},{immediate:!0}),oe.value=At(d.value,()=>{L()}),I()}),$t(()=>{O(),d.value&&oe.value&&oe.value.stop()}),it(Dv,{root:d,isCardType:g,isVertical:x,items:a,loop:e.loop,cardScale:e.cardScale,addItem:l,removeItem:r,setActiveItem:P,setContainerHeight:j}),{root:d,activeIndex:i,arrowDisplay:p,hasLabel:y,hover:c,isCardType:g,isTransitioning:m,items:a,isVertical:x,containerStyle:w,isItemsTwoLength:h,handleButtonEnter:V,handleTransitionEnd:H,handleButtonLeave:D,handleIndicatorClick:B,handleMouseEnter:K,handleMouseLeave:U,setActiveItem:P,prev:F,next:W,PlaceholderItem:ne,isTwoLengthShow:E,throttledArrowClick:b,throttledIndicatorHover:S}},hI="ElCarousel",mI=T({name:hI}),gI=T({...mI,props:sI,emits:iI,setup(e,{expose:t,emit:n}){const a=e,{root:l,activeIndex:r,arrowDisplay:s,hasLabel:i,hover:u,isCardType:c,items:d,isVertical:f,containerStyle:h,handleButtonEnter:v,handleButtonLeave:m,isTransitioning:p,handleIndicatorClick:y,handleMouseEnter:g,handleMouseLeave:x,handleTransitionEnd:w,setActiveItem:b,prev:S,next:E,PlaceholderItem:O,isTwoLengthShow:I,throttledArrowClick:N,throttledIndicatorHover:P}=vI(a,n),L=de("carousel"),{t:R}=ct(),K=C(()=>{const V=[L.b(),L.m(a.direction)];return o(c)&&V.push(L.m("card")),V}),U=C(()=>{const V=[L.e("container")];return a.motionBlur&&o(p)&&d.value.length>1&&V.push(o(f)?`${L.namespace.value}-transitioning-vertical`:`${L.namespace.value}-transitioning`),V}),H=C(()=>{const V=[L.e("indicators"),L.em("indicators",a.direction)];return o(i)&&V.push(L.em("indicators","labels")),a.indicatorPosition==="outside"&&V.push(L.em("indicators","outside")),o(f)&&V.push(L.em("indicators","right")),V});return t({activeIndex:r,setActiveItem:b,prev:S,next:E}),(V,D)=>(_(),M("div",{ref_key:"root",ref:l,class:$(o(K)),onMouseenter:Ae(o(g),["stop"]),onMouseleave:Ae(o(x),["stop"])},[o(s)?(_(),ae(tn,{key:0,name:"carousel-arrow-left",persisted:""},{default:G(()=>[qe(k("button",{type:"button",class:$([o(L).e("arrow"),o(L).em("arrow","left")]),"aria-label":o(R)("el.carousel.leftArrow"),onMouseenter:B=>o(v)("left"),onMouseleave:o(m),onClick:Ae(B=>o(N)(o(r)-1),["stop"])},[q(o(Me),null,{default:G(()=>[q(o(La))]),_:1})],42,["aria-label","onMouseenter","onMouseleave","onClick"]),[[pt,(V.arrow==="always"||o(u))&&(a.loop||o(r)>0)]])]),_:1})):ee("v-if",!0),o(s)?(_(),ae(tn,{key:1,name:"carousel-arrow-right",persisted:""},{default:G(()=>[qe(k("button",{type:"button",class:$([o(L).e("arrow"),o(L).em("arrow","right")]),"aria-label":o(R)("el.carousel.rightArrow"),onMouseenter:B=>o(v)("right"),onMouseleave:o(m),onClick:Ae(B=>o(N)(o(r)+1),["stop"])},[q(o(Me),null,{default:G(()=>[q(o(En))]),_:1})],42,["aria-label","onMouseenter","onMouseleave","onClick"]),[[pt,(V.arrow==="always"||o(u))&&(a.loop||o(r)qe((_(),M("li",{key:z,class:$([o(L).e("indicator"),o(L).em("indicator",V.direction),o(L).is("active",z===o(r))]),onMouseenter:F=>o(P)(z),onClick:Ae(F=>o(y)(z),["stop"])},[k("button",{class:$(o(L).e("button")),"aria-label":o(R)("el.carousel.indicator",{index:z+1})},[o(i)?(_(),M("span",{key:0},he(B.props.label),1)):ee("v-if",!0)],10,["aria-label"])],42,["onMouseenter","onClick"])),[[pt,o(I)(z)]])),128))],2)):ee("v-if",!0),a.motionBlur?(_(),M("svg",{key:3,xmlns:"http://www.w3.org/2000/svg",version:"1.1",style:{display:"none"}},[k("defs",null,[k("filter",{id:"elCarouselHorizontal"},[k("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"12,0"})]),k("filter",{id:"elCarouselVertical"},[k("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"0,10"})])])])):ee("v-if",!0)],42,["onMouseenter","onMouseleave"]))}});var yI=ve(gI,[["__file","carousel.vue"]]);const _I=pe({name:{type:String,default:""},label:{type:[String,Number],default:""}}),bI=e=>{const t=Se(Dv),n=et(),a=A(),l=A(!1),r=A(0),s=A(1),i=A(!1),u=A(!1),c=A(!1),d=A(!1),{isCardType:f,isVertical:h,cardScale:v}=t;function m(w,b,S){const E=S-1,O=b-1,I=b+1,N=S/2;return b===0&&w===E?-1:b===E&&w===0?S:w=N?S+1:w>I&&w-b>=N?-2:w}function p(w,b){var S,E;const O=o(h)?((S=t.root.value)==null?void 0:S.offsetHeight)||0:((E=t.root.value)==null?void 0:E.offsetWidth)||0;return c.value?O*((2-v)*(w-b)+1)/4:w{var E;const O=o(f),I=(E=t.items.value.length)!=null?E:Number.NaN,N=w===b;!O&&!vt(S)&&(d.value=N||w===S),!N&&I>2&&t.loop&&(w=m(w,b,I));const P=o(h);i.value=N,O?(c.value=Math.round(Math.abs(w-b))<=1,r.value=p(w,b),s.value=o(i)?1:v):r.value=y(w,b,P),u.value=!0,N&&a.value&&t.setContainerHeight(a.value.offsetHeight)};function x(){if(t&&o(f)){const w=t.items.value.findIndex(({uid:b})=>b===n.uid);t.setActiveItem(w)}}return Xe(()=>{t.addItem({props:e,states:_t({hover:l,translate:r,scale:s,active:i,ready:u,inStage:c,animating:d}),uid:n.uid,translateItem:g})}),Mo(()=>{t.removeItem(n.uid)}),{carouselItemRef:a,active:i,animating:d,hover:l,inStage:c,isVertical:h,translate:r,isCardType:f,scale:s,ready:u,handleItemClick:x}},wI=T({name:Bu}),CI=T({...wI,props:_I,setup(e){const t=e,n=de("carousel"),{carouselItemRef:a,active:l,animating:r,hover:s,inStage:i,isVertical:u,translate:c,isCardType:d,scale:f,ready:h,handleItemClick:v}=bI(t),m=C(()=>[n.e("item"),n.is("active",l.value),n.is("in-stage",i.value),n.is("hover",s.value),n.is("animating",r.value),{[n.em("item","card")]:d.value,[n.em("item","card-vertical")]:d.value&&u.value}]),p=C(()=>{const g=`${`translate${o(u)?"Y":"X"}`}(${o(c)}px)`,x=`scale(${o(f)})`;return{transform:[g,x].join(" ")}});return(y,g)=>qe((_(),M("div",{ref_key:"carouselItemRef",ref:a,class:$(o(m)),style:Oe(o(p)),onClick:o(v)},[o(d)?qe((_(),M("div",{key:0,class:$(o(n).e("mask"))},null,2)),[[pt,!o(l)]]):ee("v-if",!0),Q(y.$slots,"default")],14,["onClick"])),[[pt,o(h)]])}});var Fv=ve(CI,[["__file","carousel-item.vue"]]);const SI=We(yI,{CarouselItem:Fv}),kI=Lt(Fv),Kv={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},border:Boolean,size:qt,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},...rn(["ariaControls"])},Wv={[Ue]:e=>Ve(e)||Ie(e)||Et(e),change:e=>Ve(e)||Ie(e)||Et(e)},Lo=Symbol("checkboxGroupContextKey"),EI=({model:e,isChecked:t})=>{const n=Se(Lo,void 0),a=C(()=>{var r,s;const i=(r=n==null?void 0:n.max)==null?void 0:r.value,u=(s=n==null?void 0:n.min)==null?void 0:s.value;return!vt(i)&&e.value.length>=i&&!t.value||!vt(u)&&e.value.length<=u&&t.value});return{isDisabled:gn(C(()=>(n==null?void 0:n.disabled.value)||a.value)),isLimitDisabled:a}},xI=(e,{model:t,isLimitExceeded:n,hasOwnLabel:a,isDisabled:l,isLabeledByFormItem:r})=>{const s=Se(Lo,void 0),{formItem:i}=mn(),{emit:u}=et();function c(m){var p,y,g,x;return[!0,e.trueValue,e.trueLabel].includes(m)?(y=(p=e.trueValue)!=null?p:e.trueLabel)!=null?y:!0:(x=(g=e.falseValue)!=null?g:e.falseLabel)!=null?x:!1}function d(m,p){u("change",c(m),p)}function f(m){if(n.value)return;const p=m.target;u("change",c(p.checked),m)}async function h(m){n.value||!a.value&&!l.value&&r.value&&(m.composedPath().some(g=>g.tagName==="LABEL")||(t.value=c([!1,e.falseValue,e.falseLabel].includes(t.value)),await Ne(),d(t.value,m)))}const v=C(()=>(s==null?void 0:s.validateEvent)||e.validateEvent);return ue(()=>e.modelValue,()=>{v.value&&(i==null||i.validate("change").catch(m=>void 0))}),{handleChange:f,onClickRoot:h}},MI=e=>{const t=A(!1),{emit:n}=et(),a=Se(Lo,void 0),l=C(()=>vt(a)===!1),r=A(!1),s=C({get(){var i,u;return l.value?(i=a==null?void 0:a.modelValue)==null?void 0:i.value:(u=e.modelValue)!=null?u:t.value},set(i){var u,c;l.value&&Ee(i)?(r.value=((u=a==null?void 0:a.max)==null?void 0:u.value)!==void 0&&i.length>(a==null?void 0:a.max.value)&&i.length>s.value.length,r.value===!1&&((c=a==null?void 0:a.changeEvent)==null||c.call(a,i))):(n(Ue,i),t.value=i)}});return{model:s,isGroup:l,isLimitExceeded:r}},$I=(e,t,{model:n})=>{const a=Se(Lo,void 0),l=A(!1),r=C(()=>ua(e.value)?e.label:e.value),s=C(()=>{const d=n.value;return Et(d)?d:Ee(d)?ht(r.value)?d.map(zs).some(f=>dn(f,r.value)):d.map(zs).includes(r.value):d!=null?d===e.trueValue||d===e.trueLabel:!!d}),i=jt(C(()=>{var d;return(d=a==null?void 0:a.size)==null?void 0:d.value}),{prop:!0}),u=jt(C(()=>{var d;return(d=a==null?void 0:a.size)==null?void 0:d.value})),c=C(()=>!!t.default||!ua(r.value));return{checkboxButtonSize:i,isChecked:s,isFocused:l,checkboxSize:u,hasOwnLabel:c,actualValue:r}},jv=(e,t)=>{const{formItem:n}=mn(),{model:a,isGroup:l,isLimitExceeded:r}=MI(e),{isFocused:s,isChecked:i,checkboxButtonSize:u,checkboxSize:c,hasOwnLabel:d,actualValue:f}=$I(e,t,{model:a}),{isDisabled:h}=EI({model:a,isChecked:i}),{inputId:v,isLabeledByFormItem:m}=ea(e,{formItemContext:n,disableIdGeneration:d,disableIdManagement:l}),{handleChange:p,onClickRoot:y}=xI(e,{model:a,isLimitExceeded:r,hasOwnLabel:d,isDisabled:h,isLabeledByFormItem:m});return(()=>{function x(){var w,b;Ee(a.value)&&!a.value.includes(f.value)?a.value.push(f.value):a.value=(b=(w=e.trueValue)!=null?w:e.trueLabel)!=null?b:!0}e.checked&&x()})(),nl({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},C(()=>l.value&&ua(e.value))),nl({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},C(()=>!!e.trueLabel)),nl({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},C(()=>!!e.falseLabel)),{inputId:v,isLabeledByFormItem:m,isChecked:i,isDisabled:h,isFocused:s,checkboxButtonSize:u,checkboxSize:c,hasOwnLabel:d,model:a,actualValue:f,handleChange:p,onClickRoot:y}},TI=T({name:"ElCheckbox"}),OI=T({...TI,props:Kv,emits:Wv,setup(e){const t=e,n=Xt(),{inputId:a,isLabeledByFormItem:l,isChecked:r,isDisabled:s,isFocused:i,checkboxSize:u,hasOwnLabel:c,model:d,actualValue:f,handleChange:h,onClickRoot:v}=jv(t,n),m=de("checkbox"),p=C(()=>[m.b(),m.m(u.value),m.is("disabled",s.value),m.is("bordered",t.border),m.is("checked",r.value)]),y=C(()=>[m.e("input"),m.is("disabled",s.value),m.is("checked",r.value),m.is("indeterminate",t.indeterminate),m.is("focus",i.value)]);return(g,x)=>(_(),ae(Qe(!o(c)&&o(l)?"span":"label"),{class:$(o(p)),"aria-controls":g.indeterminate?g.ariaControls:null,onClick:o(v)},{default:G(()=>{var w,b,S,E;return[k("span",{class:$(o(y))},[g.trueValue||g.falseValue||g.trueLabel||g.falseLabel?qe((_(),M("input",{key:0,id:o(a),"onUpdate:modelValue":O=>Sn(d)?d.value=O:null,class:$(o(m).e("original")),type:"checkbox",indeterminate:g.indeterminate,name:g.name,tabindex:g.tabindex,disabled:o(s),"true-value":(b=(w=g.trueValue)!=null?w:g.trueLabel)!=null?b:!0,"false-value":(E=(S=g.falseValue)!=null?S:g.falseLabel)!=null?E:!1,onChange:o(h),onFocus:O=>i.value=!0,onBlur:O=>i.value=!1,onClick:Ae(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[As,o(d)]]):qe((_(),M("input",{key:1,id:o(a),"onUpdate:modelValue":O=>Sn(d)?d.value=O:null,class:$(o(m).e("original")),type:"checkbox",indeterminate:g.indeterminate,disabled:o(s),value:o(f),name:g.name,tabindex:g.tabindex,onChange:o(h),onFocus:O=>i.value=!0,onBlur:O=>i.value=!1,onClick:Ae(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","disabled","value","name","tabindex","onChange","onFocus","onBlur","onClick"])),[[As,o(d)]]),k("span",{class:$(o(m).e("inner"))},null,2)],2),o(c)?(_(),M("span",{key:0,class:$(o(m).e("label"))},[Q(g.$slots,"default"),g.$slots.default?ee("v-if",!0):(_(),M(ze,{key:0},[ot(he(g.label),1)],64))],2)):ee("v-if",!0)]}),_:3},8,["class","aria-controls","onClick"]))}});var NI=ve(OI,[["__file","checkbox.vue"]]);const II=T({name:"ElCheckboxButton"}),PI=T({...II,props:Kv,emits:Wv,setup(e){const t=e,n=Xt(),{isFocused:a,isChecked:l,isDisabled:r,checkboxButtonSize:s,model:i,actualValue:u,handleChange:c}=jv(t,n),d=Se(Lo,void 0),f=de("checkbox"),h=C(()=>{var m,p,y,g;const x=(p=(m=d==null?void 0:d.fill)==null?void 0:m.value)!=null?p:"";return{backgroundColor:x,borderColor:x,color:(g=(y=d==null?void 0:d.textColor)==null?void 0:y.value)!=null?g:"",boxShadow:x?`-1px 0 0 0 ${x}`:void 0}}),v=C(()=>[f.b("button"),f.bm("button",s.value),f.is("disabled",r.value),f.is("checked",l.value),f.is("focus",a.value)]);return(m,p)=>{var y,g,x,w;return _(),M("label",{class:$(o(v))},[m.trueValue||m.falseValue||m.trueLabel||m.falseLabel?qe((_(),M("input",{key:0,"onUpdate:modelValue":b=>Sn(i)?i.value=b:null,class:$(o(f).be("button","original")),type:"checkbox",name:m.name,tabindex:m.tabindex,disabled:o(r),"true-value":(g=(y=m.trueValue)!=null?y:m.trueLabel)!=null?g:!0,"false-value":(w=(x=m.falseValue)!=null?x:m.falseLabel)!=null?w:!1,onChange:o(c),onFocus:b=>a.value=!0,onBlur:b=>a.value=!1,onClick:Ae(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[As,o(i)]]):qe((_(),M("input",{key:1,"onUpdate:modelValue":b=>Sn(i)?i.value=b:null,class:$(o(f).be("button","original")),type:"checkbox",name:m.name,tabindex:m.tabindex,disabled:o(r),value:o(u),onChange:o(c),onFocus:b=>a.value=!0,onBlur:b=>a.value=!1,onClick:Ae(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","value","onChange","onFocus","onBlur","onClick"])),[[As,o(i)]]),m.$slots.default||m.label?(_(),M("span",{key:2,class:$(o(f).be("button","inner")),style:Oe(o(l)?o(h):void 0)},[Q(m.$slots,"default",{},()=>[ot(he(m.label),1)])],6)):ee("v-if",!0)],2)}}});var qv=ve(PI,[["__file","checkbox-button.vue"]]);const zI=pe({modelValue:{type:X(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:qt,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},...rn(["ariaLabel"])}),AI={[Ue]:e=>Ee(e),change:e=>Ee(e)},VI=T({name:"ElCheckboxGroup"}),LI=T({...VI,props:zI,emits:AI,setup(e,{emit:t}){const n=e,a=de("checkbox"),{formItem:l}=mn(),{inputId:r,isLabeledByFormItem:s}=ea(n,{formItemContext:l}),i=async c=>{t(Ue,c),await Ne(),t("change",c)},u=C({get(){return n.modelValue},set(c){i(c)}});return it(Lo,{...ra(nn(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:u,changeEvent:i}),ue(()=>n.modelValue,()=>{n.validateEvent&&(l==null||l.validate("change").catch(c=>void 0))}),(c,d)=>{var f;return _(),ae(Qe(c.tag),{id:o(r),class:$(o(a).b("group")),role:"group","aria-label":o(s)?void 0:c.ariaLabel||"checkbox-group","aria-labelledby":o(s)?(f=o(l))==null?void 0:f.labelId:void 0},{default:G(()=>[Q(c.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var Uv=ve(LI,[["__file","checkbox-group.vue"]]);const Qn=We(NI,{CheckboxButton:qv,CheckboxGroup:Uv}),RI=Lt(qv),Yv=Lt(Uv),Gv=pe({modelValue:{type:[String,Number,Boolean],default:void 0},size:qt,disabled:Boolean,label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),BI=pe({...Gv,border:Boolean}),Xv={[Ue]:e=>Ve(e)||Ie(e)||Et(e),[Ct]:e=>Ve(e)||Ie(e)||Et(e)},Zv=Symbol("radioGroupKey"),Jv=(e,t)=>{const n=A(),a=Se(Zv,void 0),l=C(()=>!!a),r=C(()=>ua(e.value)?e.label:e.value),s=C({get(){return l.value?a.modelValue:e.modelValue},set(f){l.value?a.changeEvent(f):t&&t(Ue,f),n.value.checked=e.modelValue===r.value}}),i=jt(C(()=>a==null?void 0:a.size)),u=gn(C(()=>a==null?void 0:a.disabled)),c=A(!1),d=C(()=>u.value||l.value&&s.value!==r.value?-1:0);return nl({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},C(()=>l.value&&ua(e.value))),{radioRef:n,isGroup:l,radioGroup:a,focus:c,size:i,disabled:u,tabIndex:d,modelValue:s,actualValue:r}},HI=T({name:"ElRadio"}),DI=T({...HI,props:BI,emits:Xv,setup(e,{emit:t}){const n=e,a=de("radio"),{radioRef:l,radioGroup:r,focus:s,size:i,disabled:u,modelValue:c,actualValue:d}=Jv(n,t);function f(){Ne(()=>t("change",c.value))}return(h,v)=>{var m;return _(),M("label",{class:$([o(a).b(),o(a).is("disabled",o(u)),o(a).is("focus",o(s)),o(a).is("bordered",h.border),o(a).is("checked",o(c)===o(d)),o(a).m(o(i))])},[k("span",{class:$([o(a).e("input"),o(a).is("disabled",o(u)),o(a).is("checked",o(c)===o(d))])},[qe(k("input",{ref_key:"radioRef",ref:l,"onUpdate:modelValue":p=>Sn(c)?c.value=p:null,class:$(o(a).e("original")),value:o(d),name:h.name||((m=o(r))==null?void 0:m.name),disabled:o(u),checked:o(c)===o(d),type:"radio",onFocus:p=>s.value=!0,onBlur:p=>s.value=!1,onChange:f,onClick:Ae(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","checked","onFocus","onBlur","onClick"]),[[xp,o(c)]]),k("span",{class:$(o(a).e("inner"))},null,2)],2),k("span",{class:$(o(a).e("label")),onKeydown:Ae(()=>{},["stop"])},[Q(h.$slots,"default",{},()=>[ot(he(h.label),1)])],42,["onKeydown"])],2)}}});var FI=ve(DI,[["__file","radio.vue"]]);const KI=pe({...Gv}),WI=T({name:"ElRadioButton"}),jI=T({...WI,props:KI,setup(e){const t=e,n=de("radio"),{radioRef:a,focus:l,size:r,disabled:s,modelValue:i,radioGroup:u,actualValue:c}=Jv(t),d=C(()=>({backgroundColor:(u==null?void 0:u.fill)||"",borderColor:(u==null?void 0:u.fill)||"",boxShadow:u!=null&&u.fill?`-1px 0 0 0 ${u.fill}`:"",color:(u==null?void 0:u.textColor)||""}));return(f,h)=>{var v;return _(),M("label",{class:$([o(n).b("button"),o(n).is("active",o(i)===o(c)),o(n).is("disabled",o(s)),o(n).is("focus",o(l)),o(n).bm("button",o(r))])},[qe(k("input",{ref_key:"radioRef",ref:a,"onUpdate:modelValue":m=>Sn(i)?i.value=m:null,class:$(o(n).be("button","original-radio")),value:o(c),type:"radio",name:f.name||((v=o(u))==null?void 0:v.name),disabled:o(s),onFocus:m=>l.value=!0,onBlur:m=>l.value=!1,onClick:Ae(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","onFocus","onBlur","onClick"]),[[xp,o(i)]]),k("span",{class:$(o(n).be("button","inner")),style:Oe(o(i)===o(c)?o(d):{}),onKeydown:Ae(()=>{},["stop"])},[Q(f.$slots,"default",{},()=>[ot(he(f.label),1)])],46,["onKeydown"])],2)}}});var Qv=ve(jI,[["__file","radio-button.vue"]]);const qI=pe({id:{type:String,default:void 0},size:qt,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:void 0},fill:{type:String,default:""},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0},...rn(["ariaLabel"])}),UI=Xv,YI=T({name:"ElRadioGroup"}),GI=T({...YI,props:qI,emits:UI,setup(e,{emit:t}){const n=e,a=de("radio"),l=on(),r=A(),{formItem:s}=mn(),{inputId:i,isLabeledByFormItem:u}=ea(n,{formItemContext:s}),c=f=>{t(Ue,f),Ne(()=>t("change",f))};Xe(()=>{const f=r.value.querySelectorAll("[type=radio]"),h=f[0];!Array.from(f).some(v=>v.checked)&&h&&(h.tabIndex=0)});const d=C(()=>n.name||l.value);return it(Zv,_t({...nn(n),changeEvent:c,name:d})),ue(()=>n.modelValue,()=>{n.validateEvent&&(s==null||s.validate("change").catch(f=>void 0))}),(f,h)=>(_(),M("div",{id:o(i),ref_key:"radioGroupRef",ref:r,class:$(o(a).b("group")),role:"radiogroup","aria-label":o(u)?void 0:f.ariaLabel||"radio-group","aria-labelledby":o(u)?o(s).labelId:void 0},[Q(f.$slots,"default")],10,["id","aria-label","aria-labelledby"]))}});var eh=ve(GI,[["__file","radio-group.vue"]]);const th=We(FI,{RadioButton:Qv,RadioGroup:eh}),XI=Lt(eh),ZI=Lt(Qv);var JI=T({name:"NodeContent",setup(){return{ns:de("cascader-node")}},render(){const{ns:e}=this,{node:t,panel:n}=this.$parent,{data:a,label:l}=t,{renderLabelFn:r}=n;return Pe("span",{class:e.e("label")},r?r({node:t,data:a}):l)}});const Td=Symbol(),QI=T({name:"ElCascaderNode",components:{ElCheckbox:Qn,ElRadio:th,NodeContent:JI,ElIcon:Me,Check:zo,Loading:ca,ArrowRight:En},props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(e,{emit:t}){const n=Se(Td),a=de("cascader-node"),l=C(()=>n.isHoverMenu),r=C(()=>n.config.multiple),s=C(()=>n.config.checkStrictly),i=C(()=>{var E;return(E=n.checkedNodes[0])==null?void 0:E.uid}),u=C(()=>e.node.isDisabled),c=C(()=>e.node.isLeaf),d=C(()=>s.value&&!c.value||!u.value),f=C(()=>v(n.expandingNode)),h=C(()=>s.value&&n.checkedNodes.some(v)),v=E=>{var O;const{level:I,uid:N}=e.node;return((O=E==null?void 0:E.pathNodes[I-1])==null?void 0:O.uid)===N},m=()=>{f.value||n.expandNode(e.node)},p=E=>{const{node:O}=e;E!==O.checked&&n.handleCheckChange(O,E)},y=()=>{n.lazyLoad(e.node,()=>{c.value||m()})},g=E=>{l.value&&(x(),!c.value&&t("expand",E))},x=()=>{const{node:E}=e;!d.value||E.loading||(E.loaded?m():y())},w=()=>{l.value&&!c.value||(c.value&&!u.value&&!s.value&&!r.value?S(!0):x())},b=E=>{s.value?(p(E),e.node.loaded&&m()):S(E)},S=E=>{e.node.loaded?(p(E),!s.value&&m()):y()};return{panel:n,isHoverMenu:l,multiple:r,checkStrictly:s,checkedNodeId:i,isDisabled:u,isLeaf:c,expandable:d,inExpandingPath:f,inCheckedPath:h,ns:a,handleHoverExpand:g,handleExpand:x,handleClick:w,handleCheck:S,handleSelectCheck:b}}});function eP(e,t,n,a,l,r){const s=Ze("el-checkbox"),i=Ze("el-radio"),u=Ze("check"),c=Ze("el-icon"),d=Ze("node-content"),f=Ze("loading"),h=Ze("arrow-right");return _(),M("li",{id:`${e.menuId}-${e.node.uid}`,role:"menuitem","aria-haspopup":!e.isLeaf,"aria-owns":e.isLeaf?null:e.menuId,"aria-expanded":e.inExpandingPath,tabindex:e.expandable?-1:void 0,class:$([e.ns.b(),e.ns.is("selectable",e.checkStrictly),e.ns.is("active",e.node.checked),e.ns.is("disabled",!e.expandable),e.inExpandingPath&&"in-active-path",e.inCheckedPath&&"in-checked-path"]),onMouseenter:e.handleHoverExpand,onFocus:e.handleHoverExpand,onClick:e.handleClick},[ee(" prefix "),e.multiple?(_(),ae(s,{key:0,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:e.isDisabled,onClick:Ae(()=>{},["stop"]),"onUpdate:modelValue":e.handleSelectCheck},null,8,["model-value","indeterminate","disabled","onClick","onUpdate:modelValue"])):e.checkStrictly?(_(),ae(i,{key:1,"model-value":e.checkedNodeId,label:e.node.uid,disabled:e.isDisabled,"onUpdate:modelValue":e.handleSelectCheck,onClick:Ae(()=>{},["stop"])},{default:G(()=>[ee(` + Add an empty element to avoid render label, + do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485 + `),k("span")]),_:1},8,["model-value","label","disabled","onUpdate:modelValue","onClick"])):e.isLeaf&&e.node.checked?(_(),ae(c,{key:2,class:$(e.ns.e("prefix"))},{default:G(()=>[q(u)]),_:1},8,["class"])):ee("v-if",!0),ee(" content "),q(d),ee(" postfix "),e.isLeaf?ee("v-if",!0):(_(),M(ze,{key:3},[e.node.loading?(_(),ae(c,{key:0,class:$([e.ns.is("loading"),e.ns.e("postfix")])},{default:G(()=>[q(f)]),_:1},8,["class"])):(_(),ae(c,{key:1,class:$(["arrow-right",e.ns.e("postfix")])},{default:G(()=>[q(h)]),_:1},8,["class"]))],64))],42,["id","aria-haspopup","aria-owns","aria-expanded","tabindex","onMouseenter","onFocus","onClick"])}var tP=ve(QI,[["render",eP],["__file","node.vue"]]);const nP=T({name:"ElCascaderMenu",components:{Loading:ca,ElIcon:Me,ElScrollbar:Ta,ElCascaderNode:tP},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=et(),n=de("cascader-menu"),{t:a}=ct(),l=on();let r=null,s=null;const i=Se(Td),u=A(null),c=C(()=>!e.nodes.length),d=C(()=>!i.initialLoaded),f=C(()=>`${l.value}-${e.index}`),h=y=>{r=y.target},v=y=>{if(!(!i.isHoverMenu||!r||!u.value))if(r.contains(y.target)){m();const g=t.vnode.el,{left:x}=g.getBoundingClientRect(),{offsetWidth:w,offsetHeight:b}=g,S=y.clientX-x,E=r.offsetTop,O=E+r.offsetHeight;u.value.innerHTML=` + + + `}else s||(s=window.setTimeout(p,i.config.hoverThreshold))},m=()=>{s&&(clearTimeout(s),s=null)},p=()=>{u.value&&(u.value.innerHTML="",m())};return{ns:n,panel:i,hoverZone:u,isEmpty:c,isLoading:d,menuId:f,t:a,handleExpand:h,handleMouseMove:v,clearHoverZone:p}}});function aP(e,t,n,a,l,r){const s=Ze("el-cascader-node"),i=Ze("loading"),u=Ze("el-icon"),c=Ze("el-scrollbar");return _(),ae(c,{key:e.menuId,tag:"ul",role:"menu",class:$(e.ns.b()),"wrap-class":e.ns.e("wrap"),"view-class":[e.ns.e("list"),e.ns.is("empty",e.isEmpty)],onMousemove:e.handleMouseMove,onMouseleave:e.clearHoverZone},{default:G(()=>{var d;return[(_(!0),M(ze,null,rt(e.nodes,f=>(_(),ae(s,{key:f.uid,node:f,"menu-id":e.menuId,onExpand:e.handleExpand},null,8,["node","menu-id","onExpand"]))),128)),e.isLoading?(_(),M("div",{key:0,class:$(e.ns.e("empty-text"))},[q(u,{size:"14",class:$(e.ns.is("loading"))},{default:G(()=>[q(i)]),_:1},8,["class"]),ot(" "+he(e.t("el.cascader.loading")),1)],2)):e.isEmpty?(_(),M("div",{key:1,class:$(e.ns.e("empty-text"))},[Q(e.$slots,"empty",{},()=>[ot(he(e.t("el.cascader.noData")),1)])],2)):(d=e.panel)!=null&&d.isHoverMenu?(_(),M("svg",{key:2,ref:"hoverZone",class:$(e.ns.e("hover-zone"))},null,2)):ee("v-if",!0)]}),_:3},8,["class","wrap-class","view-class","onMousemove","onMouseleave"])}var lP=ve(nP,[["render",aP],["__file","menu.vue"]]);const Od=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),ya=e=>Y4(e);let oP=0;const rP=e=>{const t=[e];let{parent:n}=e;for(;n;)t.unshift(n),n=n.parent;return t};let Du=class Fu{constructor(t,n,a,l=!1){this.data=t,this.config=n,this.parent=a,this.root=l,this.uid=oP++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:r,label:s,children:i}=n,u=t[i],c=rP(this);this.level=l?0:a?a.level+1:1,this.value=t[r],this.label=t[s],this.pathNodes=c,this.pathValues=c.map(d=>d.value),this.pathLabels=c.map(d=>d.label),this.childrenData=u,this.children=(u||[]).map(d=>new Fu(d,n,this)),this.loaded=!n.lazy||this.isLeaf||!Hn(u)}get isDisabled(){const{data:t,parent:n,config:a}=this,{disabled:l,checkStrictly:r}=a;return(Je(l)?l(t,this):!!t[l])||!r&&(n==null?void 0:n.isDisabled)}get isLeaf(){const{data:t,config:n,childrenData:a,loaded:l}=this,{lazy:r,leaf:s}=n,i=Je(s)?s(t,this):t[s];return vt(i)?r&&!l?!1:!(Ee(a)&&a.length):!!i}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:n,children:a}=this,l=new Fu(t,this.config,this);return Ee(n)?n.push(t):this.childrenData=[t],a.push(l),l}calcText(t,n){const a=t?this.pathLabels.join(n):this.label;return this.text=a,a}broadcast(t,...n){const a=`onParent${ya(t)}`;this.children.forEach(l=>{l&&(l.broadcast(t,...n),l[a]&&l[a](...n))})}emit(t,...n){const{parent:a}=this,l=`onChild${ya(t)}`;a&&(a[l]&&a[l](...n),a.emit(t,...n))}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,n=t.filter(l=>!l.isDisabled),a=n.length?n.every(l=>l.checked):!1;this.setCheckState(a)}setCheckState(t){const n=this.children.length,a=this.children.reduce((l,r)=>{const s=r.checked?1:r.indeterminate?.5:0;return l+s},0);this.checked=this.loaded&&this.children.filter(l=>!l.isDisabled).every(l=>l.loaded&&l.checked)&&t,this.indeterminate=this.loaded&&a!==n&&a>0}doCheck(t){if(this.checked===t)return;const{checkStrictly:n,multiple:a}=this.config;n||!a?this.checked=t:(this.broadcast("check",t),this.setCheckState(t),this.emit("check"))}};const Ku=(e,t)=>e.reduce((n,a)=>(a.isLeaf?n.push(a):(!t&&n.push(a),n=n.concat(Ku(a.children,t))),n),[]);class l2{constructor(t,n){this.config=n;const a=(t||[]).map(l=>new Du(l,this.config));this.nodes=a,this.allNodes=Ku(a,!1),this.leafNodes=Ku(a,!0)}getNodes(){return this.nodes}getFlattedNodes(t){return t?this.leafNodes:this.allNodes}appendNode(t,n){const a=n?n.appendChild(t):new Du(t,this.config);n||this.nodes.push(a),this.allNodes.push(a),a.isLeaf&&this.leafNodes.push(a)}appendNodes(t,n){t.forEach(a=>this.appendNode(a,n))}getNodeByValue(t,n=!1){return!t&&t!==0?null:this.getFlattedNodes(n).find(l=>dn(l.value,t)||dn(l.pathValues,t))||null}getSameNode(t){return t&&this.getFlattedNodes(!1).find(({value:a,level:l})=>dn(t.value,a)&&t.level===l)||null}}const nh=pe({modelValue:{type:X([Number,String,Array])},options:{type:X(Array),default:()=>[]},props:{type:X(Object),default:()=>({})}}),sP={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:zt,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},iP=e=>C(()=>({...sP,...e.props})),o2=e=>{if(!e)return 0;const t=e.id.split("-");return Number(t[t.length-2])},uP=e=>{if(!e)return;const t=e.querySelector("input");t?t.click():uv(e)&&e.click()},cP=(e,t)=>{const n=t.slice(0),a=n.map(r=>r.uid),l=e.reduce((r,s)=>{const i=a.indexOf(s.uid);return i>-1&&(r.push(s),n.splice(i,1),a.splice(i,1)),r},[]);return l.push(...n),l},r2=e=>[...new Set(e)],Mn=e=>!e&&e!==0?[]:Ee(e)?e:[e],dP=T({name:"ElCascaderPanel",components:{ElCascaderMenu:lP},props:{...nh,border:{type:Boolean,default:!0},renderLabel:Function},emits:[Ue,Ct,"close","expand-change"],setup(e,{emit:t,slots:n}){let a=!1;const l=de("cascader"),r=iP(e);let s=null;const i=A(!0),u=A([]),c=A(null),d=A([]),f=A(null),h=A([]),v=C(()=>r.value.expandTrigger==="hover"),m=C(()=>e.renderLabel||n.default),p=()=>{const{options:R}=e,K=r.value;a=!1,s=new l2(R,K),d.value=[s.getNodes()],K.lazy&&Hn(e.options)?(i.value=!1,y(void 0,U=>{U&&(s=new l2(U,K),d.value=[s.getNodes()]),i.value=!0,I(!1,!0)})):I(!1,!0)},y=(R,K)=>{const U=r.value;R=R||new Du({},U,void 0,!0),R.loading=!0;const H=V=>{const D=R,B=D.root?null:D;V&&(s==null||s.appendNodes(V,B)),D.loading=!1,D.loaded=!0,D.childrenData=D.childrenData||[],K&&K(V)};U.lazyLoad(R,H)},g=(R,K)=>{var U;const{level:H}=R,V=d.value.slice(0,H);let D;R.isLeaf?D=R.pathNodes[H-2]:(D=R,V.push(R.children)),((U=f.value)==null?void 0:U.uid)!==(D==null?void 0:D.uid)&&(f.value=R,d.value=V,!K&&t("expand-change",(R==null?void 0:R.pathValues)||[]))},x=(R,K,U=!0)=>{const{checkStrictly:H,multiple:V}=r.value,D=h.value[0];a=!0,!V&&(D==null||D.doCheck(!1)),R.doCheck(K),O(),U&&!V&&!H&&t("close"),!U&&!V&&!H&&w(R)},w=R=>{R&&(R=R.parent,w(R),R&&g(R))},b=R=>s==null?void 0:s.getFlattedNodes(R),S=R=>{var K;return(K=b(R))==null?void 0:K.filter(U=>U.checked!==!1)},E=()=>{h.value.forEach(R=>R.doCheck(!1)),O(),d.value=d.value.slice(0,1),f.value=null,t("expand-change",[])},O=()=>{var R;const{checkStrictly:K,multiple:U}=r.value,H=h.value,V=S(!K),D=cP(H,V),B=D.map(z=>z.valueByOption);h.value=D,c.value=U?B:(R=B[0])!=null?R:null},I=(R=!1,K=!1)=>{const{modelValue:U}=e,{lazy:H,multiple:V,checkStrictly:D}=r.value,B=!D;if(!(!i.value||a||!K&&dn(U,c.value)))if(H&&!R){const F=r2(d_(Mn(U))).map(W=>s==null?void 0:s.getNodeByValue(W)).filter(W=>!!W&&!W.loaded&&!W.loading);F.length?F.forEach(W=>{y(W,()=>I(!1,K))}):I(!0,K)}else{const z=V?Mn(U):[U],F=r2(z.map(W=>s==null?void 0:s.getNodeByValue(W,B)));N(F,K),c.value=Rs(U)}},N=(R,K=!0)=>{const{checkStrictly:U}=r.value,H=h.value,V=R.filter(z=>!!z&&(U||z.isLeaf)),D=s==null?void 0:s.getSameNode(f.value),B=K&&D||V[0];B?B.pathNodes.forEach(z=>g(z,!0)):f.value=null,H.forEach(z=>z.doCheck(!1)),_t(V).forEach(z=>z.doCheck(!0)),h.value=V,Ne(P)},P=()=>{ut&&u.value.forEach(R=>{const K=R==null?void 0:R.$el;if(K){const U=K.querySelector(`.${l.namespace.value}-scrollbar__wrap`),H=K.querySelector(`.${l.b("node")}.${l.is("active")}`)||K.querySelector(`.${l.b("node")}.in-active-path`);od(U,H)}})},L=R=>{const K=R.target,{code:U}=R;switch(U){case Ce.up:case Ce.down:{R.preventDefault();const H=U===Ce.up?-1:1;cs(cv(K,H,`.${l.b("node")}[tabindex="-1"]`));break}case Ce.left:{R.preventDefault();const H=u.value[o2(K)-1],V=H==null?void 0:H.$el.querySelector(`.${l.b("node")}[aria-expanded="true"]`);cs(V);break}case Ce.right:{R.preventDefault();const H=u.value[o2(K)+1],V=H==null?void 0:H.$el.querySelector(`.${l.b("node")}[tabindex="-1"]`);cs(V);break}case Ce.enter:case Ce.numpadEnter:uP(K);break}};return it(Td,_t({config:r,expandingNode:f,checkedNodes:h,isHoverMenu:v,initialLoaded:i,renderLabelFn:m,lazyLoad:y,expandNode:g,handleCheckChange:x})),ue([r,()=>e.options],p,{deep:!0,immediate:!0}),ue(()=>e.modelValue,()=>{a=!1,I()},{deep:!0}),ue(()=>c.value,R=>{dn(R,e.modelValue)||(t(Ue,R),t(Ct,R))}),G4(()=>u.value=[]),Xe(()=>!Hn(e.modelValue)&&I()),{ns:l,menuList:u,menus:d,checkedNodes:h,handleKeyDown:L,handleCheckChange:x,getFlattedNodes:b,getCheckedNodes:S,clearCheckedNodes:E,calculateCheckedValue:O,scrollToExpandingNode:P}}});function fP(e,t,n,a,l,r){const s=Ze("el-cascader-menu");return _(),M("div",{class:$([e.ns.b("panel"),e.ns.is("bordered",e.border)]),onKeydown:e.handleKeyDown},[(_(!0),M(ze,null,rt(e.menus,(i,u)=>(_(),ae(s,{key:u,ref_for:!0,ref:c=>e.menuList[u]=c,index:u,nodes:[...i]},{empty:G(()=>[Q(e.$slots,"empty")]),_:2},1032,["index","nodes"]))),128))],42,["onKeydown"])}var pP=ve(dP,[["render",fP],["__file","index.vue"]]);const ah=We(pP),Da=pe({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:xa},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),vP={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},hP=T({name:"ElTag"}),mP=T({...hP,props:Da,emits:vP,setup(e,{emit:t}){const n=e,a=jt(),l=de("tag"),r=C(()=>{const{type:c,hit:d,effect:f,closable:h,round:v}=n;return[l.b(),l.is("closable",h),l.m(c||"primary"),l.m(a.value),l.m(f),l.is("hit",d),l.is("round",v)]}),s=c=>{t("close",c)},i=c=>{t("click",c)},u=c=>{var d,f,h;(h=(f=(d=c==null?void 0:c.component)==null?void 0:d.subTree)==null?void 0:f.component)!=null&&h.bum&&(c.component.subTree.component.bum=null)};return(c,d)=>c.disableTransitions?(_(),M("span",{key:0,class:$(o(r)),style:Oe({backgroundColor:c.color}),onClick:i},[k("span",{class:$(o(l).e("content"))},[Q(c.$slots,"default")],2),c.closable?(_(),ae(o(Me),{key:0,class:$(o(l).e("close")),onClick:Ae(s,["stop"])},{default:G(()=>[q(o(Xn))]),_:1},8,["class","onClick"])):ee("v-if",!0)],6)):(_(),ae(tn,{key:1,name:`${o(l).namespace.value}-zoom-in-center`,appear:"",onVnodeMounted:u},{default:G(()=>[k("span",{class:$(o(r)),style:Oe({backgroundColor:c.color}),onClick:i},[k("span",{class:$(o(l).e("content"))},[Q(c.$slots,"default")],2),c.closable?(_(),ae(o(Me),{key:0,class:$(o(l).e("close")),onClick:Ae(s,["stop"])},{default:G(()=>[q(o(Xn))]),_:1},8,["class","onClick"])):ee("v-if",!0)],6)]),_:3},8,["name"]))}});var gP=ve(mP,[["__file","tag.vue"]]);const yo=We(gP),yP=pe({...nh,size:qt,placeholder:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:{type:X(Function),default:(e,t)=>e.text.includes(t)},separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,maxCollapseTags:{type:Number,default:1},collapseTagsTooltip:{type:Boolean,default:!1},debounce:{type:Number,default:300},beforeFilter:{type:X(Function),default:()=>!0},placement:{type:X(String),values:Ya,default:"bottom-start"},fallbackPlacements:{type:X(Array),default:["bottom-start","bottom","top-start","top","right","left"]},popperClass:{type:String,default:""},teleported:Qt.teleported,tagType:{...Da.type,default:"info"},tagEffect:{...Da.effect,default:"light"},validateEvent:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},...Po}),_P={[Ue]:e=>!0,[Ct]:e=>!0,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,visibleChange:e=>Et(e),expandChange:e=>!!e,removeTag:e=>!!e},Ja=new Map;if(ut){let e;document.addEventListener("mousedown",t=>e=t),document.addEventListener("mouseup",t=>{if(e){for(const n of Ja.values())for(const{documentHandler:a}of n)a(t,e);e=void 0}})}function s2(e,t){let n=[];return Ee(t.arg)?n=t.arg:Tn(t.arg)&&n.push(t.arg),function(a,l){const r=t.instance.popperRef,s=a.target,i=l==null?void 0:l.target,u=!t||!t.instance,c=!s||!i,d=e.contains(s)||e.contains(i),f=e===s,h=n.length&&n.some(m=>m==null?void 0:m.contains(s))||n.length&&n.includes(i),v=r&&(r.contains(s)||r.contains(i));u||c||d||f||h||v||t.value(a,l)}}const Fa={beforeMount(e,t){Ja.has(e)||Ja.set(e,[]),Ja.get(e).push({documentHandler:s2(e,t),bindingFn:t.value})},updated(e,t){Ja.has(e)||Ja.set(e,[]);const n=Ja.get(e),a=n.findIndex(r=>r.bindingFn===t.oldValue),l={documentHandler:s2(e,t),bindingFn:t.value};a>=0?n.splice(a,1,l):n.push(l)},unmounted(e){Ja.delete(e)}},bP="ElCascader",wP=T({name:bP}),CP=T({...wP,props:yP,emits:_P,setup(e,{expose:t,emit:n}){const a=e,l={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:J})=>{const{modifiersData:ie,placement:Y}=J;["right","left","bottom","top"].includes(Y)||(ie.arrow.x=35)},requires:["arrow"]}]},r=Ka();let s=0,i=0;const u=de("cascader"),c=de("input"),{t:d}=ct(),{form:f,formItem:h}=mn(),{valueOnClear:v}=gi(a),{isComposing:m,handleComposition:p}=zr({afterComposition(J){var ie;const Y=(ie=J.target)==null?void 0:ie.value;Wt(Y)}}),y=A(null),g=A(null),x=A(null),w=A(null),b=A(null),S=A(!1),E=A(!1),O=A(!1),I=A(!1),N=A(""),P=A(""),L=A([]),R=A([]),K=A([]),U=C(()=>r.style),H=C(()=>a.disabled||(f==null?void 0:f.disabled)),V=C(()=>a.placeholder||d("el.cascader.placeholder")),D=C(()=>P.value||L.value.length>0||m.value?"":V.value),B=jt(),z=C(()=>B.value==="small"?"small":"default"),F=C(()=>!!a.props.multiple),W=C(()=>!a.filterable||F.value),Z=C(()=>F.value?P.value:N.value),j=C(()=>{var J;return((J=w.value)==null?void 0:J.checkedNodes)||[]}),ne=C(()=>!a.clearable||H.value||O.value||!E.value?!1:!!j.value.length),oe=C(()=>{const{showAllLevels:J,separator:ie}=a,Y=j.value;return Y.length?F.value?"":Y[0].calcText(J,ie):""}),ce=C(()=>(h==null?void 0:h.validateState)||""),te=C({get(){return Rs(a.modelValue)},set(J){const ie=J??v.value;n(Ue,ie),n(Ct,ie),a.validateEvent&&(h==null||h.validate("change").catch(Y=>void 0))}}),se=C(()=>[u.b(),u.m(B.value),u.is("disabled",H.value),r.class]),fe=C(()=>[c.e("icon"),"icon-arrow-down",u.is("reverse",S.value)]),xe=C(()=>u.is("focus",S.value||I.value)),me=C(()=>{var J,ie;return(ie=(J=y.value)==null?void 0:J.popperRef)==null?void 0:ie.contentRef}),le=J=>{var ie,Y,ye;H.value||(J=J??!S.value,J!==S.value&&(S.value=J,(Y=(ie=g.value)==null?void 0:ie.input)==null||Y.setAttribute("aria-expanded",`${J}`),J?(we(),Ne((ye=w.value)==null?void 0:ye.scrollToExpandingNode)):a.filterable&&je(),n("visibleChange",J)))},we=()=>{Ne(()=>{var J;(J=y.value)==null||J.updatePopper()})},Le=()=>{O.value=!1},De=J=>{const{showAllLevels:ie,separator:Y}=a;return{node:J,key:J.uid,text:J.calcText(ie,Y),hitState:!1,closable:!H.value&&!J.isDisabled,isCollapseTag:!1}},Ye=J=>{var ie;const Y=J.node;Y.doCheck(!1),(ie=w.value)==null||ie.calculateCheckedValue(),n("removeTag",Y.valueByOption)},$e=()=>{if(!F.value)return;const J=j.value,ie=[],Y=[];if(J.forEach(ye=>Y.push(De(ye))),R.value=Y,J.length){J.slice(0,a.maxCollapseTags).forEach(lt=>ie.push(De(lt)));const ye=J.slice(a.maxCollapseTags),Fe=ye.length;Fe&&(a.collapseTags?ie.push({key:-1,text:`+ ${Fe}`,closable:!1,isCollapseTag:!0}):ye.forEach(lt=>ie.push(De(lt))))}L.value=ie},Te=()=>{var J,ie;const{filterMethod:Y,showAllLevels:ye,separator:Fe}=a,lt=(ie=(J=w.value)==null?void 0:J.getFlattedNodes(!a.props.checkStrictly))==null?void 0:ie.filter(Nt=>Nt.isDisabled?!1:(Nt.calcText(ye,Fe),Y(Nt,Z.value)));F.value&&(L.value.forEach(Nt=>{Nt.hitState=!1}),R.value.forEach(Nt=>{Nt.hitState=!1})),O.value=!0,K.value=lt,we()},ke=()=>{var J;let ie;O.value&&b.value?ie=b.value.$el.querySelector(`.${u.e("suggestion-item")}`):ie=(J=w.value)==null?void 0:J.$el.querySelector(`.${u.b("node")}[tabindex="-1"]`),ie&&(ie.focus(),!O.value&&ie.click())},He=()=>{var J,ie;const Y=(J=g.value)==null?void 0:J.input,ye=x.value,Fe=(ie=b.value)==null?void 0:ie.$el;if(!(!ut||!Y)){if(Fe){const lt=Fe.querySelector(`.${u.e("suggestion-list")}`);lt.style.minWidth=`${Y.offsetWidth}px`}if(ye){const{offsetHeight:lt}=ye,Nt=L.value.length>0?`${Math.max(lt,s)-2}px`:`${s}px`;Y.style.height=Nt,we()}}},Ge=J=>{var ie;return(ie=w.value)==null?void 0:ie.getCheckedNodes(J)},at=J=>{we(),n("expandChange",J)},nt=J=>{if(!m.value)switch(J.code){case Ce.enter:case Ce.numpadEnter:le();break;case Ce.down:le(!0),Ne(ke),J.preventDefault();break;case Ce.esc:S.value===!0&&(J.preventDefault(),J.stopPropagation(),le(!1));break;case Ce.tab:le(!1);break}},be=()=>{var J;(J=w.value)==null||J.clearCheckedNodes(),!S.value&&a.filterable&&je(),le(!1),n("clear")},je=()=>{const{value:J}=oe;N.value=J,P.value=J},ft=J=>{var ie,Y;const{checked:ye}=J;F.value?(ie=w.value)==null||ie.handleCheckChange(J,!ye,!1):(!ye&&((Y=w.value)==null||Y.handleCheckChange(J,!0,!1)),le(!1))},Tt=J=>{const ie=J.target,{code:Y}=J;switch(Y){case Ce.up:case Ce.down:{const ye=Y===Ce.up?-1:1;cs(cv(ie,ye,`.${u.e("suggestion-item")}[tabindex="-1"]`));break}case Ce.enter:case Ce.numpadEnter:ie.click();break}},bt=()=>{const J=L.value,ie=J[J.length-1];i=P.value?0:i+1,!(!ie||!i||a.collapseTags&&J.length>1)&&(ie.hitState?Ye(ie):ie.hitState=!0)},Pt=J=>{const ie=J.target,Y=u.e("search-input");ie.className===Y&&(I.value=!0),n("focus",J)},mt=J=>{I.value=!1,n("blur",J)},sn=Rn(()=>{const{value:J}=Z;if(!J)return;const ie=a.beforeFilter(J);Su(ie)?ie.then(Te).catch(()=>{}):ie!==!1?Te():Le()},a.debounce),Wt=(J,ie)=>{!S.value&&le(!0),!(ie!=null&&ie.isComposing)&&(J?sn():Le())},re=J=>Number.parseFloat(q_(c.cssVarName("input-height"),J).value)-2;return ue(O,we),ue([j,H,()=>a.collapseTags],$e),ue(L,()=>{Ne(()=>He())}),ue(B,async()=>{await Ne();const J=g.value.input;s=re(J)||s,He()}),ue(oe,je,{immediate:!0}),Xe(()=>{const J=g.value.input,ie=re(J);s=J.offsetHeight||ie,At(J,He)}),t({getCheckedNodes:Ge,cascaderPanelRef:w,togglePopperVisible:le,contentRef:me,presentText:oe}),(J,ie)=>(_(),ae(o(hn),{ref_key:"tooltipRef",ref:y,visible:S.value,teleported:J.teleported,"popper-class":[o(u).e("dropdown"),J.popperClass],"popper-options":l,"fallback-placements":J.fallbackPlacements,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,placement:J.placement,transition:`${o(u).namespace.value}-zoom-in-top`,effect:"light",pure:"",persistent:J.persistent,onHide:Le},{default:G(()=>[qe((_(),M("div",{class:$(o(se)),style:Oe(o(U)),onClick:()=>le(o(W)?void 0:!0),onKeydown:nt,onMouseenter:Y=>E.value=!0,onMouseleave:Y=>E.value=!1},[q(o(Cn),{ref_key:"input",ref:g,modelValue:N.value,"onUpdate:modelValue":Y=>N.value=Y,placeholder:o(D),readonly:o(W),disabled:o(H),"validate-event":!1,size:o(B),class:$(o(xe)),tabindex:o(F)&&J.filterable&&!o(H)?-1:void 0,onCompositionstart:o(p),onCompositionupdate:o(p),onCompositionend:o(p),onFocus:Pt,onBlur:mt,onInput:Wt},{suffix:G(()=>[o(ne)?(_(),ae(o(Me),{key:"clear",class:$([o(c).e("icon"),"icon-circle-close"]),onClick:Ae(be,["stop"])},{default:G(()=>[q(o($a))]),_:1},8,["class","onClick"])):(_(),ae(o(Me),{key:"arrow-down",class:$(o(fe)),onClick:Ae(Y=>le(),["stop"])},{default:G(()=>[q(o(Ma))]),_:1},8,["class","onClick"]))]),_:1},8,["modelValue","onUpdate:modelValue","placeholder","readonly","disabled","size","class","tabindex","onCompositionstart","onCompositionupdate","onCompositionend"]),o(F)?(_(),M("div",{key:0,ref_key:"tagWrapper",ref:x,class:$([o(u).e("tags"),o(u).is("validate",!!o(ce))])},[(_(!0),M(ze,null,rt(L.value,Y=>(_(),ae(o(yo),{key:Y.key,type:J.tagType,size:o(z),effect:J.tagEffect,hit:Y.hitState,closable:Y.closable,"disable-transitions":"",onClose:ye=>Ye(Y)},{default:G(()=>[Y.isCollapseTag===!1?(_(),M("span",{key:0},he(Y.text),1)):(_(),ae(o(hn),{key:1,disabled:S.value||!J.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom",effect:"light"},{default:G(()=>[k("span",null,he(Y.text),1)]),content:G(()=>[k("div",{class:$(o(u).e("collapse-tags"))},[(_(!0),M(ze,null,rt(R.value.slice(J.maxCollapseTags),(ye,Fe)=>(_(),M("div",{key:Fe,class:$(o(u).e("collapse-tag"))},[(_(),ae(o(yo),{key:ye.key,class:"in-tooltip",type:J.tagType,size:o(z),effect:J.tagEffect,hit:ye.hitState,closable:ye.closable,"disable-transitions":"",onClose:lt=>Ye(ye)},{default:G(()=>[k("span",null,he(ye.text),1)]),_:2},1032,["type","size","effect","hit","closable","onClose"]))],2))),128))],2)]),_:2},1032,["disabled"]))]),_:2},1032,["type","size","effect","hit","closable","onClose"]))),128)),J.filterable&&!o(H)?qe((_(),M("input",{key:0,"onUpdate:modelValue":Y=>P.value=Y,type:"text",class:$(o(u).e("search-input")),placeholder:o(oe)?"":o(V),onInput:Y=>Wt(P.value,Y),onClick:Ae(Y=>le(!0),["stop"]),onKeydown:kt(bt,["delete"]),onCompositionstart:o(p),onCompositionupdate:o(p),onCompositionend:o(p),onFocus:Pt,onBlur:mt},null,42,["onUpdate:modelValue","placeholder","onInput","onClick","onKeydown","onCompositionstart","onCompositionupdate","onCompositionend"])),[[si,P.value]]):ee("v-if",!0)],2)):ee("v-if",!0)],46,["onClick","onMouseenter","onMouseleave"])),[[o(Fa),()=>le(!1),o(me)]])]),content:G(()=>[qe(q(o(ah),{ref_key:"cascaderPanelRef",ref:w,modelValue:o(te),"onUpdate:modelValue":Y=>Sn(te)?te.value=Y:null,options:J.options,props:a.props,border:!1,"render-label":J.$slots.default,onExpandChange:at,onClose:Y=>J.$nextTick(()=>le(!1))},{empty:G(()=>[Q(J.$slots,"empty")]),_:3},8,["modelValue","onUpdate:modelValue","options","props","render-label","onClose"]),[[pt,!O.value]]),J.filterable?qe((_(),ae(o(Ta),{key:0,ref_key:"suggestionPanel",ref:b,tag:"ul",class:$(o(u).e("suggestion-panel")),"view-class":o(u).e("suggestion-list"),onKeydown:Tt},{default:G(()=>[K.value.length?(_(!0),M(ze,{key:0},rt(K.value,Y=>(_(),M("li",{key:Y.uid,class:$([o(u).e("suggestion-item"),o(u).is("checked",Y.checked)]),tabindex:-1,onClick:ye=>ft(Y)},[k("span",null,he(Y.text),1),Y.checked?(_(),ae(o(Me),{key:0},{default:G(()=>[q(o(zo))]),_:1})):ee("v-if",!0)],10,["onClick"]))),128)):Q(J.$slots,"empty",{key:1},()=>[k("li",{class:$(o(u).e("empty-text"))},he(o(d)("el.cascader.noMatch")),3)])]),_:3},8,["class","view-class"])),[[pt,O.value]]):ee("v-if",!0)]),_:3},8,["visible","teleported","popper-class","fallback-placements","placement","transition","persistent"]))}});var SP=ve(CP,[["__file","cascader.vue"]]);const kP=We(SP),EP=pe({checked:Boolean,disabled:Boolean,type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"}}),xP={"update:checked":e=>Et(e),[Ct]:e=>Et(e)},MP=T({name:"ElCheckTag"}),$P=T({...MP,props:EP,emits:xP,setup(e,{emit:t}){const n=e,a=de("check-tag"),l=C(()=>n.disabled),r=C(()=>[a.b(),a.is("checked",n.checked),a.is("disabled",l.value),a.m(n.type||"primary")]),s=()=>{if(l.value)return;const i=!n.checked;t(Ct,i),t("update:checked",i)};return(i,u)=>(_(),M("span",{class:$(o(r)),onClick:s},[Q(i.$slots,"default")],2))}});var TP=ve($P,[["__file","check-tag.vue"]]);const OP=We(TP),NP=pe({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:X([Number,Object]),default:()=>Vt({})},sm:{type:X([Number,Object]),default:()=>Vt({})},md:{type:X([Number,Object]),default:()=>Vt({})},lg:{type:X([Number,Object]),default:()=>Vt({})},xl:{type:X([Number,Object]),default:()=>Vt({})}}),lh=Symbol("rowContextKey"),IP=T({name:"ElCol"}),PP=T({...IP,props:NP,setup(e){const t=e,{gutter:n}=Se(lh,{gutter:C(()=>0)}),a=de("col"),l=C(()=>{const s={};return n.value&&(s.paddingLeft=s.paddingRight=`${n.value/2}px`),s}),r=C(()=>{const s=[];return["span","offset","pull","push"].forEach(c=>{const d=t[c];Ie(d)&&(c==="span"?s.push(a.b(`${t[c]}`)):d>0&&s.push(a.b(`${c}-${t[c]}`)))}),["xs","sm","md","lg","xl"].forEach(c=>{Ie(t[c])?s.push(a.b(`${c}-${t[c]}`)):ht(t[c])&&Object.entries(t[c]).forEach(([d,f])=>{s.push(d!=="span"?a.b(`${c}-${d}-${f}`):a.b(`${c}-${f}`))})}),n.value&&s.push(a.is("guttered")),[a.b(),s]});return(s,i)=>(_(),ae(Qe(s.tag),{class:$(o(r)),style:Oe(o(l))},{default:G(()=>[Q(s.$slots,"default")]),_:3},8,["class","style"]))}});var zP=ve(PP,[["__file","col.vue"]]);const AP=We(zP),i2=e=>Ie(e)||Ve(e)||Ee(e),VP=pe({accordion:Boolean,modelValue:{type:X([Array,String,Number]),default:()=>Vt([])}}),LP={[Ue]:i2,[Ct]:i2},oh=Symbol("collapseContextKey"),RP=(e,t)=>{const n=A(bn(e.modelValue)),a=r=>{n.value=r;const s=e.accordion?n.value[0]:n.value;t(Ue,s),t(Ct,s)},l=r=>{if(e.accordion)a([n.value[0]===r?"":r]);else{const s=[...n.value],i=s.indexOf(r);i>-1?s.splice(i,1):s.push(r),a(s)}};return ue(()=>e.modelValue,()=>n.value=bn(e.modelValue),{deep:!0}),it(oh,{activeNames:n,handleItemClick:l}),{activeNames:n,setActiveNames:a}},BP=()=>{const e=de("collapse");return{rootKls:C(()=>e.b())}},HP=T({name:"ElCollapse"}),DP=T({...HP,props:VP,emits:LP,setup(e,{expose:t,emit:n}){const a=e,{activeNames:l,setActiveNames:r}=RP(a,n),{rootKls:s}=BP();return t({activeNames:l,setActiveNames:r}),(i,u)=>(_(),M("div",{class:$(o(s))},[Q(i.$slots,"default")],2))}});var FP=ve(DP,[["__file","collapse.vue"]]);const KP=T({name:"ElCollapseTransition"}),WP=T({...KP,setup(e){const t=de("collapse-transition"),n=l=>{l.style.maxHeight="",l.style.overflow=l.dataset.oldOverflow,l.style.paddingTop=l.dataset.oldPaddingTop,l.style.paddingBottom=l.dataset.oldPaddingBottom},a={beforeEnter(l){l.dataset||(l.dataset={}),l.dataset.oldPaddingTop=l.style.paddingTop,l.dataset.oldPaddingBottom=l.style.paddingBottom,l.style.height&&(l.dataset.elExistsHeight=l.style.height),l.style.maxHeight=0,l.style.paddingTop=0,l.style.paddingBottom=0},enter(l){requestAnimationFrame(()=>{l.dataset.oldOverflow=l.style.overflow,l.dataset.elExistsHeight?l.style.maxHeight=l.dataset.elExistsHeight:l.scrollHeight!==0?l.style.maxHeight=`${l.scrollHeight}px`:l.style.maxHeight=0,l.style.paddingTop=l.dataset.oldPaddingTop,l.style.paddingBottom=l.dataset.oldPaddingBottom,l.style.overflow="hidden"})},afterEnter(l){l.style.maxHeight="",l.style.overflow=l.dataset.oldOverflow},enterCancelled(l){n(l)},beforeLeave(l){l.dataset||(l.dataset={}),l.dataset.oldPaddingTop=l.style.paddingTop,l.dataset.oldPaddingBottom=l.style.paddingBottom,l.dataset.oldOverflow=l.style.overflow,l.style.maxHeight=`${l.scrollHeight}px`,l.style.overflow="hidden"},leave(l){l.scrollHeight!==0&&(l.style.maxHeight=0,l.style.paddingTop=0,l.style.paddingBottom=0)},afterLeave(l){n(l)},leaveCancelled(l){n(l)}};return(l,r)=>(_(),ae(tn,tt({name:o(t).b()},X4(a)),{default:G(()=>[Q(l.$slots,"default")]),_:3},16,["name"]))}});var jP=ve(WP,[["__file","collapse-transition.vue"]]);const Ti=We(jP),qP=pe({title:{type:String,default:""},name:{type:X([String,Number]),default:void 0},icon:{type:St,default:En},disabled:Boolean}),UP=e=>{const t=Se(oh),{namespace:n}=de("collapse"),a=A(!1),l=A(!1),r=vd(),s=C(()=>r.current++),i=C(()=>{var h;return(h=e.name)!=null?h:`${n.value}-id-${r.prefix}-${o(s)}`}),u=C(()=>t==null?void 0:t.activeNames.value.includes(o(i)));return{focusing:a,id:s,isActive:u,handleFocus:()=>{setTimeout(()=>{l.value?l.value=!1:a.value=!0},50)},handleHeaderClick:()=>{e.disabled||(t==null||t.handleItemClick(o(i)),a.value=!1,l.value=!0)},handleEnterClick:()=>{t==null||t.handleItemClick(o(i))}}},YP=(e,{focusing:t,isActive:n,id:a})=>{const l=de("collapse"),r=C(()=>[l.b("item"),l.is("active",o(n)),l.is("disabled",e.disabled)]),s=C(()=>[l.be("item","header"),l.is("active",o(n)),{focusing:o(t)&&!e.disabled}]),i=C(()=>[l.be("item","arrow"),l.is("active",o(n))]),u=C(()=>l.be("item","wrap")),c=C(()=>l.be("item","content")),d=C(()=>l.b(`content-${o(a)}`)),f=C(()=>l.b(`head-${o(a)}`));return{arrowKls:i,headKls:s,rootKls:r,itemWrapperKls:u,itemContentKls:c,scopedContentId:d,scopedHeadId:f}},GP=T({name:"ElCollapseItem"}),XP=T({...GP,props:qP,setup(e,{expose:t}){const n=e,{focusing:a,id:l,isActive:r,handleFocus:s,handleHeaderClick:i,handleEnterClick:u}=UP(n),{arrowKls:c,headKls:d,rootKls:f,itemWrapperKls:h,itemContentKls:v,scopedContentId:m,scopedHeadId:p}=YP(n,{focusing:a,isActive:r,id:l});return t({isActive:r}),(y,g)=>(_(),M("div",{class:$(o(f))},[k("button",{id:o(p),class:$(o(d)),"aria-expanded":o(r),"aria-controls":o(m),"aria-describedby":o(m),tabindex:y.disabled?-1:0,type:"button",onClick:o(i),onKeydown:kt(Ae(o(u),["stop","prevent"]),["space","enter"]),onFocus:o(s),onBlur:x=>a.value=!1},[Q(y.$slots,"title",{},()=>[ot(he(y.title),1)]),Q(y.$slots,"icon",{isActive:o(r)},()=>[q(o(Me),{class:$(o(c))},{default:G(()=>[(_(),ae(Qe(y.icon)))]),_:1},8,["class"])])],42,["id","aria-expanded","aria-controls","aria-describedby","tabindex","onClick","onKeydown","onFocus","onBlur"]),q(o(Ti),null,{default:G(()=>[qe(k("div",{id:o(m),role:"region",class:$(o(h)),"aria-hidden":!o(r),"aria-labelledby":o(p)},[k("div",{class:$(o(v))},[Q(y.$slots,"default")],2)],10,["id","aria-hidden","aria-labelledby"]),[[pt,o(r)]])]),_:3})],2))}});var rh=ve(XP,[["__file","collapse-item.vue"]]);const ZP=We(FP,{CollapseItem:rh}),JP=Lt(rh),QP=pe({color:{type:X(Object),required:!0},vertical:{type:Boolean,default:!1}});let ru=!1;function vr(e,t){if(!ut)return;const n=function(r){var s;(s=t.drag)==null||s.call(t,r)},a=function(r){var s;document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",a),document.removeEventListener("touchmove",n),document.removeEventListener("touchend",a),document.onselectstart=null,document.ondragstart=null,ru=!1,(s=t.end)==null||s.call(t,r)},l=function(r){var s;ru||(r.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",a),document.addEventListener("touchmove",n),document.addEventListener("touchend",a),ru=!0,(s=t.start)==null||s.call(t,r))};e.addEventListener("mousedown",l),e.addEventListener("touchstart",l,{passive:!1})}const ez=(e,t)=>{if(!ut||!e||!t)return!1;const n=e.getBoundingClientRect();let a;return t instanceof Element?a=t.getBoundingClientRect():a={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},n.topa.top&&n.right>a.left&&n.left{let t=0,n=e;for(;n;)t+=n.offsetTop,n=n.offsetParent;return t},Wu=(e,t)=>Math.abs(u2(e)-u2(t)),Nd=e=>{let t,n;return e.type==="touchend"?(n=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(n=e.touches[0].clientY,t=e.touches[0].clientX):(n=e.clientY,t=e.clientX),{clientX:t,clientY:n}},tz=e=>{const t=et(),{t:n}=ct(),a=Ot(),l=Ot(),r=C(()=>e.color.get("alpha")),s=C(()=>n("el.colorpicker.alphaLabel"));function i(f){var h;f.target!==a.value&&u(f),(h=a.value)==null||h.focus()}function u(f){if(!l.value||!a.value)return;const v=t.vnode.el.getBoundingClientRect(),{clientX:m,clientY:p}=Nd(f);if(e.vertical){let y=p-v.top;y=Math.max(a.value.offsetHeight/2,y),y=Math.min(y,v.height-a.value.offsetHeight/2),e.color.set("alpha",Math.round((y-a.value.offsetHeight/2)/(v.height-a.value.offsetHeight)*100))}else{let y=m-v.left;y=Math.max(a.value.offsetWidth/2,y),y=Math.min(y,v.width-a.value.offsetWidth/2),e.color.set("alpha",Math.round((y-a.value.offsetWidth/2)/(v.width-a.value.offsetWidth)*100))}}function c(f){const{code:h,shiftKey:v}=f,m=v?10:1;switch(h){case Ce.left:case Ce.down:f.preventDefault(),f.stopPropagation(),d(-m);break;case Ce.right:case Ce.up:f.preventDefault(),f.stopPropagation(),d(m);break}}function d(f){let h=r.value+f;h=h<0?0:h>100?100:h,e.color.set("alpha",h)}return{thumb:a,bar:l,alpha:r,alphaLabel:s,handleDrag:u,handleClick:i,handleKeydown:c}},nz=(e,{bar:t,thumb:n,handleDrag:a})=>{const l=et(),r=de("color-alpha-slider"),s=A(0),i=A(0),u=A();function c(){if(!n.value||e.vertical)return 0;const x=l.vnode.el,w=e.color.get("alpha");return x?Math.round(w*(x.offsetWidth-n.value.offsetWidth/2)/100):0}function d(){if(!n.value)return 0;const x=l.vnode.el;if(!e.vertical)return 0;const w=e.color.get("alpha");return x?Math.round(w*(x.offsetHeight-n.value.offsetHeight/2)/100):0}function f(){if(e.color&&e.color.value){const{r:x,g:w,b}=e.color.toRgb();return`linear-gradient(to right, rgba(${x}, ${w}, ${b}, 0) 0%, rgba(${x}, ${w}, ${b}, 1) 100%)`}return""}function h(){s.value=c(),i.value=d(),u.value=f()}Xe(()=>{if(!t.value||!n.value)return;const x={drag:w=>{a(w)},end:w=>{a(w)}};vr(t.value,x),vr(n.value,x),h()}),ue(()=>e.color.get("alpha"),()=>h()),ue(()=>e.color.value,()=>h());const v=C(()=>[r.b(),r.is("vertical",e.vertical)]),m=C(()=>r.e("bar")),p=C(()=>r.e("thumb")),y=C(()=>({background:u.value})),g=C(()=>({left:Rt(s.value),top:Rt(i.value)}));return{rootKls:v,barKls:m,barStyle:y,thumbKls:p,thumbStyle:g,update:h}},az="ElColorAlphaSlider",lz=T({name:az}),oz=T({...lz,props:QP,setup(e,{expose:t}){const n=e,{alpha:a,alphaLabel:l,bar:r,thumb:s,handleDrag:i,handleClick:u,handleKeydown:c}=tz(n),{rootKls:d,barKls:f,barStyle:h,thumbKls:v,thumbStyle:m,update:p}=nz(n,{bar:r,thumb:s,handleDrag:i});return t({update:p,bar:r,thumb:s}),(y,g)=>(_(),M("div",{class:$(o(d))},[k("div",{ref_key:"bar",ref:r,class:$(o(f)),style:Oe(o(h)),onClick:o(u)},null,14,["onClick"]),k("div",{ref_key:"thumb",ref:s,class:$(o(v)),style:Oe(o(m)),"aria-label":o(l),"aria-valuenow":o(a),"aria-orientation":y.vertical?"vertical":"horizontal","aria-valuemin":"0","aria-valuemax":"100",role:"slider",tabindex:"0",onKeydown:o(c)},null,46,["aria-label","aria-valuenow","aria-orientation","onKeydown"])],2))}});var rz=ve(oz,[["__file","alpha-slider.vue"]]);const sz=T({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(e){const t=de("color-hue-slider"),n=et(),a=A(),l=A(),r=A(0),s=A(0),i=C(()=>e.color.get("hue"));ue(()=>i.value,()=>{h()});function u(v){v.target!==a.value&&c(v)}function c(v){if(!l.value||!a.value)return;const p=n.vnode.el.getBoundingClientRect(),{clientX:y,clientY:g}=Nd(v);let x;if(e.vertical){let w=g-p.top;w=Math.min(w,p.height-a.value.offsetHeight/2),w=Math.max(a.value.offsetHeight/2,w),x=Math.round((w-a.value.offsetHeight/2)/(p.height-a.value.offsetHeight)*360)}else{let w=y-p.left;w=Math.min(w,p.width-a.value.offsetWidth/2),w=Math.max(a.value.offsetWidth/2,w),x=Math.round((w-a.value.offsetWidth/2)/(p.width-a.value.offsetWidth)*360)}e.color.set("hue",x)}function d(){if(!a.value)return 0;const v=n.vnode.el;if(e.vertical)return 0;const m=e.color.get("hue");return v?Math.round(m*(v.offsetWidth-a.value.offsetWidth/2)/360):0}function f(){if(!a.value)return 0;const v=n.vnode.el;if(!e.vertical)return 0;const m=e.color.get("hue");return v?Math.round(m*(v.offsetHeight-a.value.offsetHeight/2)/360):0}function h(){r.value=d(),s.value=f()}return Xe(()=>{if(!l.value||!a.value)return;const v={drag:m=>{c(m)},end:m=>{c(m)}};vr(l.value,v),vr(a.value,v),h()}),{bar:l,thumb:a,thumbLeft:r,thumbTop:s,hueValue:i,handleClick:u,update:h,ns:t}}});function iz(e,t,n,a,l,r){return _(),M("div",{class:$([e.ns.b(),e.ns.is("vertical",e.vertical)])},[k("div",{ref:"bar",class:$(e.ns.e("bar")),onClick:e.handleClick},null,10,["onClick"]),k("div",{ref:"thumb",class:$(e.ns.e("thumb")),style:Oe({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}var uz=ve(sz,[["render",iz],["__file","hue-slider.vue"]]);const cz=pe({modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:qt,popperClass:{type:String,default:""},tabindex:{type:[String,Number],default:0},teleported:Qt.teleported,predefine:{type:X(Array)},validateEvent:{type:Boolean,default:!0},...rn(["ariaLabel"])}),dz={[Ue]:e=>Ve(e)||Zt(e),[Ct]:e=>Ve(e)||Zt(e),activeChange:e=>Ve(e)||Zt(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},sh=Symbol("colorPickerContextKey"),c2=function(e,t,n){return[e,t*n/((e=(2-t)*n)<1?e:2-e)||0,e/2]},fz=function(e){return Ve(e)&&e.includes(".")&&Number.parseFloat(e)===1},pz=function(e){return Ve(e)&&e.includes("%")},lo=function(e,t){fz(e)&&(e="100%");const n=pz(e);return e=Math.min(t,Math.max(0,Number.parseFloat(`${e}`))),n&&(e=Number.parseInt(`${e*t}`,10)/100),Math.abs(e-t)<1e-6?1:e%t/Number.parseFloat(t)},d2={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},vs=e=>{e=Math.min(Math.round(e),255);const t=Math.floor(e/16),n=e%16;return`${d2[t]||t}${d2[n]||n}`},f2=function({r:e,g:t,b:n}){return Number.isNaN(+e)||Number.isNaN(+t)||Number.isNaN(+n)?"":`#${vs(e)}${vs(t)}${vs(n)}`},su={A:10,B:11,C:12,D:13,E:14,F:15},ml=function(e){return e.length===2?(su[e[0].toUpperCase()]||+e[0])*16+(su[e[1].toUpperCase()]||+e[1]):su[e[1].toUpperCase()]||+e[1]},vz=function(e,t,n){t=t/100,n=n/100;let a=t;const l=Math.max(n,.01);n*=2,t*=n<=1?n:2-n,a*=l<=1?l:2-l;const r=(n+t)/2,s=n===0?2*a/(l+a):2*t/(n+t);return{h:e,s:s*100,v:r*100}},p2=(e,t,n)=>{e=lo(e,255),t=lo(t,255),n=lo(n,255);const a=Math.max(e,t,n),l=Math.min(e,t,n);let r;const s=a,i=a-l,u=a===0?0:i/a;if(a===l)r=0;else{switch(a){case e:{r=(t-n)/i+(t{this._hue=Math.max(0,Math.min(360,a)),this._saturation=Math.max(0,Math.min(100,l)),this._value=Math.max(0,Math.min(100,r)),this.doOnChange()};if(t.includes("hsl")){const a=t.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter(l=>l!=="").map((l,r)=>r>2?Number.parseFloat(l):Number.parseInt(l,10));if(a.length===4?this._alpha=Number.parseFloat(a[3])*100:a.length===3&&(this._alpha=100),a.length>=3){const{h:l,s:r,v:s}=vz(a[0],a[1],a[2]);n(l,r,s)}}else if(t.includes("hsv")){const a=t.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter(l=>l!=="").map((l,r)=>r>2?Number.parseFloat(l):Number.parseInt(l,10));a.length===4?this._alpha=Number.parseFloat(a[3])*100:a.length===3&&(this._alpha=100),a.length>=3&&n(a[0],a[1],a[2])}else if(t.includes("rgb")){const a=t.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter(l=>l!=="").map((l,r)=>r>2?Number.parseFloat(l):Number.parseInt(l,10));if(a.length===4?this._alpha=Number.parseFloat(a[3])*100:a.length===3&&(this._alpha=100),a.length>=3){const{h:l,s:r,v:s}=p2(a[0],a[1],a[2]);n(l,r,s)}}else if(t.includes("#")){const a=t.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(a))return;let l,r,s;a.length===3?(l=ml(a[0]+a[0]),r=ml(a[1]+a[1]),s=ml(a[2]+a[2])):(a.length===6||a.length===8)&&(l=ml(a.slice(0,2)),r=ml(a.slice(2,4)),s=ml(a.slice(4,6))),a.length===8?this._alpha=ml(a.slice(6))/255*100:(a.length===3||a.length===6)&&(this._alpha=100);const{h:i,s:u,v:c}=p2(l,r,s);n(i,u,c)}}compare(t){return Math.abs(t._hue-this._hue)<2&&Math.abs(t._saturation-this._saturation)<1&&Math.abs(t._value-this._value)<1&&Math.abs(t._alpha-this._alpha)<1}doOnChange(){const{_hue:t,_saturation:n,_value:a,_alpha:l,format:r}=this;if(this.enableAlpha)switch(r){case"hsl":{const s=c2(t,n/100,a/100);this.value=`hsla(${t}, ${Math.round(s[1]*100)}%, ${Math.round(s[2]*100)}%, ${this.get("alpha")/100})`;break}case"hsv":{this.value=`hsva(${t}, ${Math.round(n)}%, ${Math.round(a)}%, ${this.get("alpha")/100})`;break}case"hex":{this.value=`${f2(Wo(t,n,a))}${vs(l*255/100)}`;break}default:{const{r:s,g:i,b:u}=Wo(t,n,a);this.value=`rgba(${s}, ${i}, ${u}, ${this.get("alpha")/100})`}}else switch(r){case"hsl":{const s=c2(t,n/100,a/100);this.value=`hsl(${t}, ${Math.round(s[1]*100)}%, ${Math.round(s[2]*100)}%)`;break}case"hsv":{this.value=`hsv(${t}, ${Math.round(n)}%, ${Math.round(a)}%)`;break}case"rgb":{const{r:s,g:i,b:u}=Wo(t,n,a);this.value=`rgb(${s}, ${i}, ${u})`;break}default:this.value=f2(Wo(t,n,a))}}}const hz=T({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0},enableAlpha:{type:Boolean,required:!0}},setup(e){const t=de("color-predefine"),{currentColor:n}=Se(sh),a=A(r(e.colors,e.color));ue(()=>n.value,s=>{const i=new tr;i.fromString(s),a.value.forEach(u=>{u.selected=i.compare(u)})}),cn(()=>{a.value=r(e.colors,e.color)});function l(s){e.color.fromString(e.colors[s])}function r(s,i){return s.map(u=>{const c=new tr;return c.enableAlpha=e.enableAlpha,c.format="rgba",c.fromString(u),c.selected=c.value===i.value,c})}return{rgbaColors:a,handleSelect:l,ns:t}}});function mz(e,t,n,a,l,r){return _(),M("div",{class:$(e.ns.b())},[k("div",{class:$(e.ns.e("colors"))},[(_(!0),M(ze,null,rt(e.rgbaColors,(s,i)=>(_(),M("div",{key:e.colors[i],class:$([e.ns.e("color-selector"),e.ns.is("alpha",s._alpha<100),{selected:s.selected}]),onClick:u=>e.handleSelect(i)},[k("div",{style:Oe({backgroundColor:s.value})},null,4)],10,["onClick"]))),128))],2)],2)}var gz=ve(hz,[["render",mz],["__file","predefine.vue"]]);const yz=T({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(e){const t=de("color-svpanel"),n=et(),a=A(0),l=A(0),r=A("hsl(0, 100%, 50%)"),s=C(()=>{const c=e.color.get("hue"),d=e.color.get("value");return{hue:c,value:d}});function i(){const c=e.color.get("saturation"),d=e.color.get("value"),f=n.vnode.el,{clientWidth:h,clientHeight:v}=f;l.value=c*h/100,a.value=(100-d)*v/100,r.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}function u(c){const f=n.vnode.el.getBoundingClientRect(),{clientX:h,clientY:v}=Nd(c);let m=h-f.left,p=v-f.top;m=Math.max(0,m),m=Math.min(m,f.width),p=Math.max(0,p),p=Math.min(p,f.height),l.value=m,a.value=p,e.color.set({saturation:m/f.width*100,value:100-p/f.height*100})}return ue(()=>s.value,()=>{i()}),Xe(()=>{vr(n.vnode.el,{drag:c=>{u(c)},end:c=>{u(c)}}),i()}),{cursorTop:a,cursorLeft:l,background:r,colorValue:s,handleDrag:u,update:i,ns:t}}});function _z(e,t,n,a,l,r){return _(),M("div",{class:$(e.ns.b()),style:Oe({backgroundColor:e.background})},[k("div",{class:$(e.ns.e("white"))},null,2),k("div",{class:$(e.ns.e("black"))},null,2),k("div",{class:$(e.ns.e("cursor")),style:Oe({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},[k("div")],6)],6)}var bz=ve(yz,[["render",_z],["__file","sv-panel.vue"]]);const wz=T({name:"ElColorPicker"}),Cz=T({...wz,props:cz,emits:dz,setup(e,{expose:t,emit:n}){const a=e,{t:l}=ct(),r=de("color"),{formItem:s}=mn(),i=jt(),u=gn(),{inputId:c,isLabeledByFormItem:d}=ea(a,{formItemContext:s}),f=A(),h=A(),v=A(),m=A(),p=A(),y=A(),{isFocused:g,handleFocus:x,handleBlur:w}=dl(p,{beforeFocus(){return u.value},beforeBlur(fe){var xe;return(xe=m.value)==null?void 0:xe.isFocusInsideContent(fe)},afterBlur(){H(!1),z()}});let b=!0;const S=_t(new tr({enableAlpha:a.showAlpha,format:a.colorFormat||"",value:a.modelValue})),E=A(!1),O=A(!1),I=A(""),N=C(()=>!a.modelValue&&!O.value?"transparent":U(S,a.showAlpha)),P=C(()=>!a.modelValue&&!O.value?"":S.value),L=C(()=>d.value?void 0:a.ariaLabel||l("el.colorpicker.defaultLabel")),R=C(()=>d.value?s==null?void 0:s.labelId:void 0),K=C(()=>[r.b("picker"),r.is("disabled",u.value),r.bm("picker",i.value),r.is("focused",g.value)]);function U(fe,xe){if(!(fe instanceof tr))throw new TypeError("color should be instance of _color Class");const{r:me,g:le,b:we}=fe.toRgb();return xe?`rgba(${me}, ${le}, ${we}, ${fe.get("alpha")/100})`:`rgb(${me}, ${le}, ${we})`}function H(fe){E.value=fe}const V=Rn(H,100,{leading:!0});function D(){u.value||H(!0)}function B(){V(!1),z()}function z(){Ne(()=>{a.modelValue?S.fromString(a.modelValue):(S.value="",Ne(()=>{O.value=!1}))})}function F(){u.value||(E.value&&z(),V(!E.value))}function W(){S.fromString(I.value)}function Z(){const fe=S.value;n(Ue,fe),n("change",fe),a.validateEvent&&(s==null||s.validate("change").catch(xe=>void 0)),V(!1),Ne(()=>{const xe=new tr({enableAlpha:a.showAlpha,format:a.colorFormat||"",value:a.modelValue});S.compare(xe)||z()})}function j(){V(!1),n(Ue,null),n("change",null),a.modelValue!==null&&a.validateEvent&&(s==null||s.validate("change").catch(fe=>void 0)),z()}function ne(){E.value&&(B(),g.value&&te())}function oe(fe){fe.preventDefault(),fe.stopPropagation(),H(!1),z()}function ce(fe){switch(fe.code){case Ce.enter:case Ce.numpadEnter:case Ce.space:fe.preventDefault(),fe.stopPropagation(),D(),y.value.focus();break;case Ce.esc:oe(fe);break}}function te(){p.value.focus()}function se(){p.value.blur()}return Xe(()=>{a.modelValue&&(I.value=P.value)}),ue(()=>a.modelValue,fe=>{fe?fe&&fe!==S.value&&(b=!1,S.fromString(fe)):O.value=!1}),ue(()=>[a.colorFormat,a.showAlpha],()=>{S.enableAlpha=a.showAlpha,S.format=a.colorFormat||S.format,S.doOnChange(),n(Ue,S.value)}),ue(()=>P.value,fe=>{I.value=fe,b&&n("activeChange",fe),b=!0}),ue(()=>S.value,()=>{!a.modelValue&&!O.value&&(O.value=!0)}),ue(()=>E.value,()=>{Ne(()=>{var fe,xe,me;(fe=f.value)==null||fe.update(),(xe=h.value)==null||xe.update(),(me=v.value)==null||me.update()})}),it(sh,{currentColor:P}),t({color:S,show:D,hide:B,focus:te,blur:se}),(fe,xe)=>(_(),ae(o(hn),{ref_key:"popper",ref:m,visible:E.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[o(r).be("picker","panel"),o(r).b("dropdown"),fe.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",teleported:fe.teleported,transition:`${o(r).namespace.value}-zoom-in-top`,persistent:"",onHide:me=>H(!1)},{content:G(()=>[qe((_(),M("div",{onKeydown:kt(oe,["esc"])},[k("div",{class:$(o(r).be("dropdown","main-wrapper"))},[q(uz,{ref_key:"hue",ref:f,class:"hue-slider",color:o(S),vertical:""},null,8,["color"]),q(bz,{ref_key:"sv",ref:h,color:o(S)},null,8,["color"])],2),fe.showAlpha?(_(),ae(rz,{key:0,ref_key:"alpha",ref:v,color:o(S)},null,8,["color"])):ee("v-if",!0),fe.predefine?(_(),ae(gz,{key:1,ref:"predefine","enable-alpha":fe.showAlpha,color:o(S),colors:fe.predefine},null,8,["enable-alpha","color","colors"])):ee("v-if",!0),k("div",{class:$(o(r).be("dropdown","btns"))},[k("span",{class:$(o(r).be("dropdown","value"))},[q(o(Cn),{ref_key:"inputRef",ref:y,modelValue:I.value,"onUpdate:modelValue":me=>I.value=me,"validate-event":!1,size:"small",onKeyup:kt(W,["enter"]),onBlur:W},null,8,["modelValue","onUpdate:modelValue","onKeyup"])],2),q(o(en),{class:$(o(r).be("dropdown","link-btn")),text:"",size:"small",onClick:j},{default:G(()=>[ot(he(o(l)("el.colorpicker.clear")),1)]),_:1},8,["class"]),q(o(en),{plain:"",size:"small",class:$(o(r).be("dropdown","btn")),onClick:Z},{default:G(()=>[ot(he(o(l)("el.colorpicker.confirm")),1)]),_:1},8,["class"])],2)],40,["onKeydown"])),[[o(Fa),ne,p.value]])]),default:G(()=>[k("div",tt({id:o(c),ref_key:"triggerRef",ref:p},fe.$attrs,{class:o(K),role:"button","aria-label":o(L),"aria-labelledby":o(R),"aria-description":o(l)("el.colorpicker.description",{color:fe.modelValue||""}),"aria-disabled":o(u),tabindex:o(u)?-1:fe.tabindex,onKeydown:ce,onFocus:o(x),onBlur:o(w)}),[o(u)?(_(),M("div",{key:0,class:$(o(r).be("picker","mask"))},null,2)):ee("v-if",!0),k("div",{class:$(o(r).be("picker","trigger")),onClick:F},[k("span",{class:$([o(r).be("picker","color"),o(r).is("alpha",fe.showAlpha)])},[k("span",{class:$(o(r).be("picker","color-inner")),style:Oe({backgroundColor:o(N)})},[qe(q(o(Me),{class:$([o(r).be("picker","icon"),o(r).is("icon-arrow-down")])},{default:G(()=>[q(o(Ma))]),_:1},8,["class"]),[[pt,fe.modelValue||O.value]]),qe(q(o(Me),{class:$([o(r).be("picker","empty"),o(r).is("icon-close")])},{default:G(()=>[q(o(Xn))]),_:1},8,["class"]),[[pt,!fe.modelValue&&!O.value]])],6)],2)],2)],16,["id","aria-label","aria-labelledby","aria-description","aria-disabled","tabindex","onFocus","onBlur"])]),_:1},8,["visible","popper-class","teleported","transition","onHide"]))}});var Sz=ve(Cz,[["__file","color-picker.vue"]]);const kz=We(Sz),Ez=pe({a11y:{type:Boolean,default:!0},locale:{type:X(Object)},size:qt,button:{type:X(Object)},experimentalFeatures:{type:X(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:X(Object)},zIndex:Number,namespace:{type:String,default:"el"},...Po}),aa={},xz=T({name:"ElConfigProvider",props:Ez,setup(e,{slots:t}){ue(()=>e.message,a=>{Object.assign(aa,a??{})},{immediate:!0,deep:!0});const n=ad(e);return()=>Q(t,"default",{config:n==null?void 0:n.value})}}),Mz=We(xz),$z=T({name:"ElContainer"}),Tz=T({...$z,props:{direction:{type:String}},setup(e){const t=e,n=Xt(),a=de("container"),l=C(()=>t.direction==="vertical"?!0:t.direction==="horizontal"?!1:n&&n.default?n.default().some(s=>{const i=s.type.name;return i==="ElHeader"||i==="ElFooter"}):!1);return(r,s)=>(_(),M("section",{class:$([o(a).b(),o(a).is("vertical",o(l))])},[Q(r.$slots,"default")],2))}});var Oz=ve(Tz,[["__file","container.vue"]]);const Nz=T({name:"ElAside"}),Iz=T({...Nz,props:{width:{type:String,default:null}},setup(e){const t=e,n=de("aside"),a=C(()=>t.width?n.cssVarBlock({width:t.width}):{});return(l,r)=>(_(),M("aside",{class:$(o(n).b()),style:Oe(o(a))},[Q(l.$slots,"default")],6))}});var ih=ve(Iz,[["__file","aside.vue"]]);const Pz=T({name:"ElFooter"}),zz=T({...Pz,props:{height:{type:String,default:null}},setup(e){const t=e,n=de("footer"),a=C(()=>t.height?n.cssVarBlock({height:t.height}):{});return(l,r)=>(_(),M("footer",{class:$(o(n).b()),style:Oe(o(a))},[Q(l.$slots,"default")],6))}});var uh=ve(zz,[["__file","footer.vue"]]);const Az=T({name:"ElHeader"}),Vz=T({...Az,props:{height:{type:String,default:null}},setup(e){const t=e,n=de("header"),a=C(()=>t.height?n.cssVarBlock({height:t.height}):{});return(l,r)=>(_(),M("header",{class:$(o(n).b()),style:Oe(o(a))},[Q(l.$slots,"default")],6))}});var ch=ve(Vz,[["__file","header.vue"]]);const Lz=T({name:"ElMain"}),Rz=T({...Lz,setup(e){const t=de("main");return(n,a)=>(_(),M("main",{class:$(o(t).b())},[Q(n.$slots,"default")],2))}});var dh=ve(Rz,[["__file","main.vue"]]);const Bz=We(Oz,{Aside:ih,Footer:uh,Header:ch,Main:dh}),Hz=Lt(ih),Dz=Lt(uh),Fz=Lt(ch),Kz=Lt(dh);var hs={exports:{}},Wz=hs.exports,v2;function jz(){return v2||(v2=1,function(e,t){(function(n,a){e.exports=a()})(Wz,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},a=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,l=/\d/,r=/\d\d/,s=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,u={},c=function(y){return(y=+y)+(y>68?1900:2e3)},d=function(y){return function(g){this[y]=+g}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(y){(this.zone||(this.zone={})).offset=function(g){if(!g||g==="Z")return 0;var x=g.match(/([+-]|\d\d)/g),w=60*x[1]+(+x[2]||0);return w===0?0:x[0]==="+"?-w:w}(y)}],h=function(y){var g=u[y];return g&&(g.indexOf?g:g.s.concat(g.f))},v=function(y,g){var x,w=u.meridiem;if(w){for(var b=1;b<=24;b+=1)if(y.indexOf(w(b,0,g))>-1){x=b>12;break}}else x=y===(g?"pm":"PM");return x},m={A:[i,function(y){this.afternoon=v(y,!1)}],a:[i,function(y){this.afternoon=v(y,!0)}],Q:[l,function(y){this.month=3*(y-1)+1}],S:[l,function(y){this.milliseconds=100*+y}],SS:[r,function(y){this.milliseconds=10*+y}],SSS:[/\d{3}/,function(y){this.milliseconds=+y}],s:[s,d("seconds")],ss:[s,d("seconds")],m:[s,d("minutes")],mm:[s,d("minutes")],H:[s,d("hours")],h:[s,d("hours")],HH:[s,d("hours")],hh:[s,d("hours")],D:[s,d("day")],DD:[r,d("day")],Do:[i,function(y){var g=u.ordinal,x=y.match(/\d+/);if(this.day=x[0],g)for(var w=1;w<=31;w+=1)g(w).replace(/\[|\]/g,"")===y&&(this.day=w)}],w:[s,d("week")],ww:[r,d("week")],M:[s,d("month")],MM:[r,d("month")],MMM:[i,function(y){var g=h("months"),x=(h("monthsShort")||g.map(function(w){return w.slice(0,3)})).indexOf(y)+1;if(x<1)throw new Error;this.month=x%12||x}],MMMM:[i,function(y){var g=h("months").indexOf(y)+1;if(g<1)throw new Error;this.month=g%12||g}],Y:[/[+-]?\d+/,d("year")],YY:[r,function(y){this.year=c(y)}],YYYY:[/\d{4}/,d("year")],Z:f,ZZ:f};function p(y){var g,x;g=y,x=u&&u.formats;for(var w=(y=g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(P,L,R){var K=R&&R.toUpperCase();return L||x[R]||n[R]||x[K].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(U,H,V){return H||V.slice(1)})})).match(a),b=w.length,S=0;S-1)return new Date((B==="X"?1e3:1)*D);var W=p(B)(D),Z=W.year,j=W.month,ne=W.day,oe=W.hours,ce=W.minutes,te=W.seconds,se=W.milliseconds,fe=W.zone,xe=W.week,me=new Date,le=ne||(Z||j?1:me.getDate()),we=Z||me.getFullYear(),Le=0;Z&&!j||(Le=j>0?j-1:me.getMonth());var De,Ye=oe||0,$e=ce||0,Te=te||0,ke=se||0;return fe?new Date(Date.UTC(we,Le,le,Ye,$e,Te,ke+60*fe.offset*1e3)):z?new Date(Date.UTC(we,Le,le,Ye,$e,Te,ke)):(De=new Date(we,Le,le,Ye,$e,Te,ke),xe&&(De=F(De).week(xe).toDate()),De)}catch{return new Date("")}}(E,N,O,x),this.init(),K&&K!==!0&&(this.$L=this.locale(K).$L),R&&E!=this.format(N)&&(this.$d=new Date("")),u={}}else if(N instanceof Array)for(var U=N.length,H=1;H<=U;H+=1){I[1]=N[H-1];var V=x.apply(this,I);if(V.isValid()){this.$d=V.$d,this.$L=V.$L,this.init();break}H===U&&(this.$d=new Date(""))}else b.call(this,S)}}})}(hs)),hs.exports}var qz=jz();const Id=ja(qz);var ms={exports:{}},Uz=ms.exports,h2;function Yz(){return h2||(h2=1,function(e,t){(function(n,a){e.exports=a()})(Uz,function(){return function(n,a){var l=a.prototype,r=l.format;l.format=function(s){var i=this,u=this.$locale();if(!this.isValid())return r.bind(this)(s);var c=this.$utils(),d=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(f){switch(f){case"Q":return Math.ceil((i.$M+1)/3);case"Do":return u.ordinal(i.$D);case"gggg":return i.weekYear();case"GGGG":return i.isoWeekYear();case"wo":return u.ordinal(i.week(),"W");case"w":case"ww":return c.s(i.week(),f==="w"?1:2,"0");case"W":case"WW":return c.s(i.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return c.s(String(i.$H===0?24:i.$H),f==="k"?1:2,"0");case"X":return Math.floor(i.$d.getTime()/1e3);case"x":return i.$d.getTime();case"z":return"["+i.offsetName()+"]";case"zzz":return"["+i.offsetName("long")+"]";default:return f}});return r.bind(this)(d)}}})}(ms)),ms.exports}var Gz=Yz();const Xz=ja(Gz);var gs={exports:{}},Zz=gs.exports,m2;function Jz(){return m2||(m2=1,function(e,t){(function(n,a){e.exports=a()})(Zz,function(){var n="week",a="year";return function(l,r,s){var i=r.prototype;i.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var d=s(this).startOf(a).add(1,a).date(c),f=s(this).endOf(n);if(d.isBefore(f))return 1}var h=s(this).startOf(a).date(c).startOf(n).subtract(1,"millisecond"),v=this.diff(h,n,!0);return v<0?s(this).startOf("week").week():Math.ceil(v)},i.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})}(gs)),gs.exports}var Qz=Jz();const eA=ja(Qz);var ys={exports:{}},tA=ys.exports,g2;function nA(){return g2||(g2=1,function(e,t){(function(n,a){e.exports=a()})(tA,function(){return function(n,a){a.prototype.weekYear=function(){var l=this.month(),r=this.week(),s=this.year();return r===1&&l===11?s+1:l===0&&r>=52?s-1:s}}})}(ys)),ys.exports}var aA=nA();const lA=ja(aA);var _s={exports:{}},oA=_s.exports,y2;function rA(){return y2||(y2=1,function(e,t){(function(n,a){e.exports=a()})(oA,function(){return function(n,a,l){a.prototype.dayOfYear=function(r){var s=Math.round((l(this).startOf("day")-l(this).startOf("year"))/864e5)+1;return r==null?s:this.add(r-s,"day")}}})}(_s)),_s.exports}var sA=rA();const iA=ja(sA);var bs={exports:{}},uA=bs.exports,_2;function cA(){return _2||(_2=1,function(e,t){(function(n,a){e.exports=a()})(uA,function(){return function(n,a){a.prototype.isSameOrAfter=function(l,r){return this.isSame(l,r)||this.isAfter(l,r)}}})}(bs)),bs.exports}var dA=cA();const fA=ja(dA);var ws={exports:{}},pA=ws.exports,b2;function vA(){return b2||(b2=1,function(e,t){(function(n,a){e.exports=a()})(pA,function(){return function(n,a){a.prototype.isSameOrBefore=function(l,r){return this.isSame(l,r)||this.isBefore(l,r)}}})}(ws)),ws.exports}var hA=vA();const mA=ja(hA),w2=["hours","minutes","seconds"],ju="HH:mm:ss",Xl="YYYY-MM-DD",gA={date:Xl,dates:Xl,week:"gggg[w]ww",year:"YYYY",years:"YYYY",month:"YYYY-MM",months:"YYYY-MM",datetime:`${Xl} ${ju}`,monthrange:"YYYY-MM",yearrange:"YYYY",daterange:Xl,datetimerange:`${Xl} ${ju}`},fh=pe({disabledHours:{type:X(Function)},disabledMinutes:{type:X(Function)},disabledSeconds:{type:X(Function)}}),ph=pe({visible:Boolean,actualVisible:{type:Boolean,default:void 0},format:{type:String,default:""}}),Pd=pe({id:{type:X([Array,String])},name:{type:X([Array,String])},popperClass:{type:String,default:""},format:String,valueFormat:String,dateFormat:String,timeFormat:String,type:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:X([String,Object]),default:$a},editable:{type:Boolean,default:!0},prefixIcon:{type:X([String,Object]),default:""},size:qt,readonly:Boolean,disabled:Boolean,placeholder:{type:String,default:""},popperOptions:{type:X(Object),default:()=>({})},modelValue:{type:X([Date,Array,String,Number]),default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:X([Date,Array])},defaultTime:{type:X([Date,Array])},isRange:Boolean,...fh,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:Boolean,tabindex:{type:X([String,Number]),default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean,placement:{type:X(String),values:Ya,default:"bottom"},fallbackPlacements:{type:X(Array),default:["bottom","top","right","left"]},...Po,...rn(["ariaLabel"]),showNow:{type:Boolean,default:!0}}),yA=pe({id:{type:X(Array)},name:{type:X(Array)},modelValue:{type:X([Array,String])},startPlaceholder:String,endPlaceholder:String}),_A=T({name:"PickerRangeTrigger",inheritAttrs:!1}),bA=T({..._A,props:yA,emits:["mouseenter","mouseleave","click","touchstart","focus","blur","startInput","endInput","startChange","endChange"],setup(e,{expose:t,emit:n}){const a=Pr(),l=de("date"),r=de("range"),s=A(),i=A(),{wrapperRef:u,isFocused:c}=dl(s),d=b=>{n("click",b)},f=b=>{n("mouseenter",b)},h=b=>{n("mouseleave",b)},v=b=>{n("mouseenter",b)},m=b=>{n("startInput",b)},p=b=>{n("endInput",b)},y=b=>{n("startChange",b)},g=b=>{n("endChange",b)};return t({focus:()=>{var b;(b=s.value)==null||b.focus()},blur:()=>{var b,S;(b=s.value)==null||b.blur(),(S=i.value)==null||S.blur()}}),(b,S)=>(_(),M("div",{ref_key:"wrapperRef",ref:u,class:$([o(l).is("active",o(c)),b.$attrs.class]),style:Oe(b.$attrs.style),onClick:d,onMouseenter:f,onMouseleave:h,onTouchstartPassive:v},[Q(b.$slots,"prefix"),k("input",tt(o(a),{id:b.id&&b.id[0],ref_key:"inputRef",ref:s,name:b.name&&b.name[0],placeholder:b.startPlaceholder,value:b.modelValue&&b.modelValue[0],class:o(r).b("input"),onInput:m,onChange:y}),null,16,["id","name","placeholder","value"]),Q(b.$slots,"range-separator"),k("input",tt(o(a),{id:b.id&&b.id[1],ref_key:"endInputRef",ref:i,name:b.name&&b.name[1],placeholder:b.endPlaceholder,value:b.modelValue&&b.modelValue[1],class:o(r).b("input"),onInput:p,onChange:g}),null,16,["id","name","placeholder","value"]),Q(b.$slots,"suffix")],38))}});var wA=ve(bA,[["__file","picker-range-trigger.vue"]]);const CA=T({name:"Picker"}),SA=T({...CA,props:Pd,emits:["update:modelValue","change","focus","blur","clear","calendar-change","panel-change","visible-change","keydown"],setup(e,{expose:t,emit:n}){const a=e,l=Ka(),{lang:r}=ct(),s=de("date"),i=de("input"),u=de("range"),{form:c,formItem:d}=mn(),f=Se("ElPopperOptions",{}),{valueOnClear:h}=gi(a,null),v=A(),m=A(),p=A(!1),y=A(!1),g=A(null);let x=!1;const{isFocused:w,handleFocus:b,handleBlur:S}=dl(m,{beforeFocus(){return a.readonly||z.value},afterFocus(){p.value=!0},beforeBlur(Y){var ye;return!x&&((ye=v.value)==null?void 0:ye.isFocusInsideContent(Y))},afterBlur(){He(),p.value=!1,x=!1,a.validateEvent&&(d==null||d.validate("blur").catch(Y=>void 0))}}),E=C(()=>[s.b("editor"),s.bm("editor",a.type),i.e("wrapper"),s.is("disabled",z.value),s.is("active",p.value),u.b("editor"),Ye?u.bm("editor",Ye.value):"",l.class]),O=C(()=>[i.e("icon"),u.e("close-icon"),se.value?"":u.e("close-icon--hidden")]);ue(p,Y=>{Y?Ne(()=>{Y&&(g.value=a.modelValue)}):(ke.value=null,Ne(()=>{I(a.modelValue)}))});const I=(Y,ye)=>{(ye||!J0(Y,g.value))&&(n("change",Y),a.validateEvent&&(d==null||d.validate("change").catch(Fe=>void 0)))},N=Y=>{if(!J0(a.modelValue,Y)){let ye;Ee(Y)?ye=Y.map(Fe=>e2(Fe,a.valueFormat,r.value)):Y&&(ye=e2(Y,a.valueFormat,r.value)),n("update:modelValue",Y&&ye,r.value)}},P=Y=>{n("keydown",Y)},L=C(()=>m.value?Array.from(m.value.$el.querySelectorAll("input")):[]),R=(Y,ye,Fe)=>{const lt=L.value;lt.length&&(!Fe||Fe==="min"?(lt[0].setSelectionRange(Y,ye),lt[0].focus()):Fe==="max"&&(lt[1].setSelectionRange(Y,ye),lt[1].focus()))},K=(Y="",ye=!1)=>{p.value=ye;let Fe;Ee(Y)?Fe=Y.map(lt=>lt.toDate()):Fe=Y&&Y.toDate(),ke.value=null,N(Fe)},U=()=>{y.value=!0},H=()=>{n("visible-change",!0)},V=()=>{y.value=!1,p.value=!1,n("visible-change",!1)},D=()=>{p.value=!0},B=()=>{p.value=!1},z=C(()=>a.disabled||(c==null?void 0:c.disabled)),F=C(()=>{let Y;if(xe.value?mt.value.getDefaultValue&&(Y=mt.value.getDefaultValue()):Ee(a.modelValue)?Y=a.modelValue.map(ye=>Q0(ye,a.valueFormat,r.value)):Y=Q0(a.modelValue,a.valueFormat,r.value),mt.value.getRangeAvailableTime){const ye=mt.value.getRangeAvailableTime(Y);dn(ye,Y)||(Y=ye,xe.value||N(Qr(Y)))}return Ee(Y)&&Y.some(ye=>!ye)&&(Y=[]),Y}),W=C(()=>{if(!mt.value.panelReady)return"";const Y=at(F.value);return Ee(ke.value)?[ke.value[0]||Y&&Y[0]||"",ke.value[1]||Y&&Y[1]||""]:ke.value!==null?ke.value:!j.value&&xe.value||!p.value&&xe.value?"":Y?ne.value||oe.value||ce.value?Y.join(", "):Y:""}),Z=C(()=>a.type.includes("time")),j=C(()=>a.type.startsWith("time")),ne=C(()=>a.type==="dates"),oe=C(()=>a.type==="months"),ce=C(()=>a.type==="years"),te=C(()=>a.prefixIcon||(Z.value?sd:V1)),se=A(!1),fe=Y=>{a.readonly||z.value||(se.value&&(Y.stopPropagation(),mt.value.handleClear?mt.value.handleClear():N(h.value),I(h.value,!0),se.value=!1,V()),n("clear"))},xe=C(()=>{const{modelValue:Y}=a;return!Y||Ee(Y)&&!Y.filter(Boolean).length}),me=async Y=>{var ye;a.readonly||z.value||(((ye=Y.target)==null?void 0:ye.tagName)!=="INPUT"||w.value)&&(p.value=!0)},le=()=>{a.readonly||z.value||!xe.value&&a.clearable&&(se.value=!0)},we=()=>{se.value=!1},Le=Y=>{var ye;a.readonly||z.value||(((ye=Y.touches[0].target)==null?void 0:ye.tagName)!=="INPUT"||w.value)&&(p.value=!0)},De=C(()=>a.type.includes("range")),Ye=jt(),$e=C(()=>{var Y,ye;return(ye=(Y=o(v))==null?void 0:Y.popperRef)==null?void 0:ye.contentRef}),Te=nd(m,Y=>{const ye=o($e),Fe=$n(m);ye&&(Y.target===ye||Y.composedPath().includes(ye))||Y.target===Fe||Fe&&Y.composedPath().includes(Fe)||(p.value=!1)});$t(()=>{Te==null||Te()});const ke=A(null),He=()=>{if(ke.value){const Y=Ge(W.value);Y&&nt(Y)&&(N(Qr(Y)),ke.value=null)}ke.value===""&&(N(h.value),I(h.value),ke.value=null)},Ge=Y=>Y?mt.value.parseUserInput(Y):null,at=Y=>Y?mt.value.formatToString(Y):null,nt=Y=>mt.value.isValidValue(Y),be=async Y=>{if(a.readonly||z.value)return;const{code:ye}=Y;if(P(Y),ye===Ce.esc){p.value===!0&&(p.value=!1,Y.preventDefault(),Y.stopPropagation());return}if(ye===Ce.down&&(mt.value.handleFocusPicker&&(Y.preventDefault(),Y.stopPropagation()),p.value===!1&&(p.value=!0,await Ne()),mt.value.handleFocusPicker)){mt.value.handleFocusPicker();return}if(ye===Ce.tab){x=!0;return}if(ye===Ce.enter||ye===Ce.numpadEnter){(ke.value===null||ke.value===""||nt(Ge(W.value)))&&(He(),p.value=!1),Y.stopPropagation();return}if(ke.value){Y.stopPropagation();return}mt.value.handleKeydownInput&&mt.value.handleKeydownInput(Y)},je=Y=>{ke.value=Y,p.value||(p.value=!0)},ft=Y=>{const ye=Y.target;ke.value?ke.value=[ye.value,ke.value[1]]:ke.value=[ye.value,null]},Tt=Y=>{const ye=Y.target;ke.value?ke.value=[ke.value[0],ye.value]:ke.value=[null,ye.value]},bt=()=>{var Y;const ye=ke.value,Fe=Ge(ye&&ye[0]),lt=o(F);if(Fe&&Fe.isValid()){ke.value=[at(Fe),((Y=W.value)==null?void 0:Y[1])||null];const Nt=[Fe,lt&&(lt[1]||null)];nt(Nt)&&(N(Qr(Nt)),ke.value=null)}},Pt=()=>{var Y;const ye=o(ke),Fe=Ge(ye&&ye[1]),lt=o(F);if(Fe&&Fe.isValid()){ke.value=[((Y=o(W))==null?void 0:Y[0])||null,at(Fe)];const Nt=[lt&<[0],Fe];nt(Nt)&&(N(Qr(Nt)),ke.value=null)}},mt=A({}),sn=Y=>{mt.value[Y[0]]=Y[1],mt.value.panelReady=!0},Wt=Y=>{n("calendar-change",Y)},re=(Y,ye,Fe)=>{n("panel-change",Y,ye,Fe)},J=()=>{var Y;(Y=m.value)==null||Y.focus()},ie=()=>{var Y;(Y=m.value)==null||Y.blur()};return it("EP_PICKER_BASE",{props:a}),t({focus:J,blur:ie,handleOpen:D,handleClose:B,onPick:K}),(Y,ye)=>(_(),ae(o(hn),tt({ref_key:"refPopper",ref:v,visible:p.value,effect:"light",pure:"",trigger:"click"},Y.$attrs,{role:"dialog",teleported:"",transition:`${o(s).namespace.value}-zoom-in-top`,"popper-class":[`${o(s).namespace.value}-picker__popper`,Y.popperClass],"popper-options":o(f),"fallback-placements":Y.fallbackPlacements,"gpu-acceleration":!1,placement:Y.placement,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:U,onShow:H,onHide:V}),{default:G(()=>[o(De)?(_(),ae(wA,{key:1,id:Y.id,ref_key:"inputRef",ref:m,"model-value":o(W),name:Y.name,disabled:o(z),readonly:!Y.editable||Y.readonly,"start-placeholder":Y.startPlaceholder,"end-placeholder":Y.endPlaceholder,class:$(o(E)),style:Oe(Y.$attrs.style),"aria-label":Y.ariaLabel,tabindex:Y.tabindex,autocomplete:"off",role:"combobox",onClick:me,onFocus:o(b),onBlur:o(S),onStartInput:ft,onStartChange:bt,onEndInput:Tt,onEndChange:Pt,onMousedown:me,onMouseenter:le,onMouseleave:we,onTouchstartPassive:Le,onKeydown:be},{prefix:G(()=>[o(te)?(_(),ae(o(Me),{key:0,class:$([o(i).e("icon"),o(u).e("icon")])},{default:G(()=>[(_(),ae(Qe(o(te))))]),_:1},8,["class"])):ee("v-if",!0)]),"range-separator":G(()=>[Q(Y.$slots,"range-separator",{},()=>[k("span",{class:$(o(u).b("separator"))},he(Y.rangeSeparator),3)])]),suffix:G(()=>[Y.clearIcon?(_(),ae(o(Me),{key:0,class:$(o(O)),onMousedown:Ae(o(zt),["prevent"]),onClick:fe},{default:G(()=>[(_(),ae(Qe(Y.clearIcon)))]),_:1},8,["class","onMousedown"])):ee("v-if",!0)]),_:3},8,["id","model-value","name","disabled","readonly","start-placeholder","end-placeholder","class","style","aria-label","tabindex","onFocus","onBlur"])):(_(),ae(o(Cn),{key:0,id:Y.id,ref_key:"inputRef",ref:m,"container-role":"combobox","model-value":o(W),name:Y.name,size:o(Ye),disabled:o(z),placeholder:Y.placeholder,class:$([o(s).b("editor"),o(s).bm("editor",Y.type),Y.$attrs.class]),style:Oe(Y.$attrs.style),readonly:!Y.editable||Y.readonly||o(ne)||o(oe)||o(ce)||Y.type==="week","aria-label":Y.ariaLabel,tabindex:Y.tabindex,"validate-event":!1,onInput:je,onFocus:o(b),onBlur:o(S),onKeydown:be,onChange:He,onMousedown:me,onMouseenter:le,onMouseleave:we,onTouchstartPassive:Le,onClick:Ae(()=>{},["stop"])},{prefix:G(()=>[o(te)?(_(),ae(o(Me),{key:0,class:$(o(i).e("icon")),onMousedown:Ae(me,["prevent"]),onTouchstartPassive:Le},{default:G(()=>[(_(),ae(Qe(o(te))))]),_:1},8,["class","onMousedown"])):ee("v-if",!0)]),suffix:G(()=>[se.value&&Y.clearIcon?(_(),ae(o(Me),{key:0,class:$(`${o(i).e("icon")} clear-icon`),onMousedown:Ae(o(zt),["prevent"]),onClick:fe},{default:G(()=>[(_(),ae(Qe(Y.clearIcon)))]),_:1},8,["class","onMousedown"])):ee("v-if",!0)]),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","aria-label","tabindex","onFocus","onBlur","onClick"]))]),content:G(()=>[Q(Y.$slots,"default",{visible:p.value,actualVisible:y.value,parsedValue:o(F),format:Y.format,dateFormat:Y.dateFormat,timeFormat:Y.timeFormat,unlinkPanels:Y.unlinkPanels,type:Y.type,defaultValue:Y.defaultValue,showNow:Y.showNow,onPick:K,onSelectRange:R,onSetPickerOption:sn,onCalendarChange:Wt,onPanelChange:re,onMousedown:Ae(()=>{},["stop"])})]),_:3},16,["visible","transition","popper-class","popper-options","fallback-placements","placement"]))}});var vh=ve(SA,[["__file","picker.vue"]]);const kA=pe({...ph,datetimeRole:String,parsedValue:{type:X(Object)}}),hh=({getAvailableHours:e,getAvailableMinutes:t,getAvailableSeconds:n})=>{const a=(s,i,u,c)=>{const d={hour:e,minute:t,second:n};let f=s;return["hour","minute","second"].forEach(h=>{if(d[h]){let v;const m=d[h];switch(h){case"minute":{v=m(f.hour(),i,c);break}case"second":{v=m(f.hour(),f.minute(),i,c);break}default:{v=m(i,c);break}}if(v!=null&&v.length&&!v.includes(f[h]())){const p=u?0:v.length-1;f=f[h](v[p])}}}),f},l={};return{timePickerOptions:l,getAvailableTime:a,onSetOption:([s,i])=>{l[s]=i}}},iu=e=>{const t=(a,l)=>a||l,n=a=>a!==!0;return e.map(t).filter(n)},mh=(e,t,n)=>({getHoursList:(s,i)=>lu(24,e&&(()=>e==null?void 0:e(s,i))),getMinutesList:(s,i,u)=>lu(60,t&&(()=>t==null?void 0:t(s,i,u))),getSecondsList:(s,i,u,c)=>lu(60,n&&(()=>n==null?void 0:n(s,i,u,c)))}),gh=(e,t,n)=>{const{getHoursList:a,getMinutesList:l,getSecondsList:r}=mh(e,t,n);return{getAvailableHours:(c,d)=>iu(a(c,d)),getAvailableMinutes:(c,d,f)=>iu(l(c,d,f)),getAvailableSeconds:(c,d,f,h)=>iu(r(c,d,f,h))}},yh=e=>{const t=A(e.parsedValue);return ue(()=>e.visible,n=>{n||(t.value=e.parsedValue)}),t},EA=pe({role:{type:String,required:!0},spinnerDate:{type:X(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:X(String),default:""},...fh}),xA=100,MA=600,Fs={beforeMount(e,t){const n=t.value,{interval:a=xA,delay:l=MA}=Je(n)?{}:n;let r,s;const i=()=>Je(n)?n():n.handler(),u=()=>{s&&(clearTimeout(s),s=void 0),r&&(clearInterval(r),r=void 0)};e.addEventListener("mousedown",c=>{c.button===0&&(u(),i(),document.addEventListener("mouseup",()=>u(),{once:!0}),s=setTimeout(()=>{r=setInterval(()=>{i()},a)},l))})}},$A=T({__name:"basic-time-spinner",props:EA,emits:["change","select-range","set-option"],setup(e,{emit:t}){const n=e,a=Se("EP_PICKER_BASE"),{isRange:l}=a.props,r=de("time"),{getHoursList:s,getMinutesList:i,getSecondsList:u}=mh(n.disabledHours,n.disabledMinutes,n.disabledSeconds);let c=!1;const d=A(),f=A(),h=A(),v=A(),m={hours:f,minutes:h,seconds:v},p=C(()=>n.showSeconds?w2:w2.slice(0,2)),y=C(()=>{const{spinnerDate:W}=n,Z=W.hour(),j=W.minute(),ne=W.second();return{hours:Z,minutes:j,seconds:ne}}),g=C(()=>{const{hours:W,minutes:Z}=o(y),{role:j,spinnerDate:ne}=n,oe=l?void 0:ne;return{hours:s(j,oe),minutes:i(W,j,oe),seconds:u(W,Z,j,oe)}}),x=C(()=>{const{hours:W,minutes:Z,seconds:j}=o(y);return{hours:au(W,23),minutes:au(Z,59),seconds:au(j,59)}}),w=Rn(W=>{c=!1,E(W)},200),b=W=>{if(!!!n.amPmMode)return"";const j=n.amPmMode==="A";let ne=W<12?" am":" pm";return j&&(ne=ne.toUpperCase()),ne},S=W=>{let Z;switch(W){case"hours":Z=[0,2];break;case"minutes":Z=[3,5];break;case"seconds":Z=[6,8];break}const[j,ne]=Z;t("select-range",j,ne),d.value=W},E=W=>{N(W,o(y)[W])},O=()=>{E("hours"),E("minutes"),E("seconds")},I=W=>W.querySelector(`.${r.namespace.value}-scrollbar__wrap`),N=(W,Z)=>{if(n.arrowControl)return;const j=o(m[W]);j&&j.$el&&(I(j.$el).scrollTop=Math.max(0,Z*P(W)))},P=W=>{const Z=o(m[W]),j=Z==null?void 0:Z.$el.querySelector("li");return j&&Number.parseFloat(Aa(j,"height"))||0},L=()=>{K(1)},R=()=>{K(-1)},K=W=>{d.value||S("hours");const Z=d.value,j=o(y)[Z],ne=d.value==="hours"?24:60,oe=U(Z,j,W,ne);H(Z,oe),N(Z,oe),Ne(()=>S(Z))},U=(W,Z,j,ne)=>{let oe=(Z+j+ne)%ne;const ce=o(g)[W];for(;ce[oe]&&oe!==Z;)oe=(oe+j+ne)%ne;return oe},H=(W,Z)=>{if(o(g)[W][Z])return;const{hours:oe,minutes:ce,seconds:te}=o(y);let se;switch(W){case"hours":se=n.spinnerDate.hour(Z).minute(ce).second(te);break;case"minutes":se=n.spinnerDate.hour(oe).minute(Z).second(te);break;case"seconds":se=n.spinnerDate.hour(oe).minute(ce).second(Z);break}t("change",se)},V=(W,{value:Z,disabled:j})=>{j||(H(W,Z),S(W),N(W,Z))},D=W=>{const Z=o(m[W]);if(!Z)return;c=!0,w(W);const j=Math.min(Math.round((I(Z.$el).scrollTop-(B(W)*.5-10)/P(W)+3)/P(W)),W==="hours"?23:59);H(W,j)},B=W=>o(m[W]).$el.offsetHeight,z=()=>{const W=Z=>{const j=o(m[Z]);j&&j.$el&&(I(j.$el).onscroll=()=>{D(Z)})};W("hours"),W("minutes"),W("seconds")};Xe(()=>{Ne(()=>{!n.arrowControl&&z(),O(),n.role==="start"&&S("hours")})});const F=(W,Z)=>{m[Z].value=W??void 0};return t("set-option",[`${n.role}_scrollDown`,K]),t("set-option",[`${n.role}_emitSelectRange`,S]),ue(()=>n.spinnerDate,()=>{c||O()}),(W,Z)=>(_(),M("div",{class:$([o(r).b("spinner"),{"has-seconds":W.showSeconds}])},[W.arrowControl?ee("v-if",!0):(_(!0),M(ze,{key:0},rt(o(p),j=>(_(),ae(o(Ta),{key:j,ref_for:!0,ref:ne=>F(ne,j),class:$(o(r).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":o(r).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:ne=>S(j),onMousemove:ne=>E(j)},{default:G(()=>[(_(!0),M(ze,null,rt(o(g)[j],(ne,oe)=>(_(),M("li",{key:oe,class:$([o(r).be("spinner","item"),o(r).is("active",oe===o(y)[j]),o(r).is("disabled",ne)]),onClick:ce=>V(j,{value:oe,disabled:ne})},[j==="hours"?(_(),M(ze,{key:0},[ot(he(("0"+(W.amPmMode?oe%12||12:oe)).slice(-2))+he(b(oe)),1)],64)):(_(),M(ze,{key:1},[ot(he(("0"+oe).slice(-2)),1)],64))],10,["onClick"]))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),W.arrowControl?(_(!0),M(ze,{key:1},rt(o(p),j=>(_(),M("div",{key:j,class:$([o(r).be("spinner","wrapper"),o(r).is("arrow")]),onMouseenter:ne=>S(j)},[qe((_(),ae(o(Me),{class:$(["arrow-up",o(r).be("spinner","arrow")])},{default:G(()=>[q(o(bi))]),_:1},8,["class"])),[[o(Fs),R]]),qe((_(),ae(o(Me),{class:$(["arrow-down",o(r).be("spinner","arrow")])},{default:G(()=>[q(o(Ma))]),_:1},8,["class"])),[[o(Fs),L]]),k("ul",{class:$(o(r).be("spinner","list"))},[(_(!0),M(ze,null,rt(o(x)[j],(ne,oe)=>(_(),M("li",{key:oe,class:$([o(r).be("spinner","item"),o(r).is("active",ne===o(y)[j]),o(r).is("disabled",o(g)[j][ne])])},[o(Ie)(ne)?(_(),M(ze,{key:0},[j==="hours"?(_(),M(ze,{key:0},[ot(he(("0"+(W.amPmMode?ne%12||12:ne)).slice(-2))+he(b(ne)),1)],64)):(_(),M(ze,{key:1},[ot(he(("0"+ne).slice(-2)),1)],64))],64)):ee("v-if",!0)],2))),128))],2)],42,["onMouseenter"]))),128)):ee("v-if",!0)],2))}});var qu=ve($A,[["__file","basic-time-spinner.vue"]]);const TA=T({__name:"panel-time-pick",props:kA,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,a=Se("EP_PICKER_BASE"),{arrowControl:l,disabledHours:r,disabledMinutes:s,disabledSeconds:i,defaultValue:u}=a.props,{getAvailableHours:c,getAvailableMinutes:d,getAvailableSeconds:f}=gh(r,s,i),h=de("time"),{t:v,lang:m}=ct(),p=A([0,2]),y=yh(n),g=C(()=>vt(n.actualVisible)?`${h.namespace.value}-zoom-in-top`:""),x=C(()=>n.format.includes("ss")),w=C(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),b=B=>{const z=Be(B).locale(m.value),F=U(z);return z.isSame(F)},S=()=>{t("pick",y.value,!1)},E=(B=!1,z=!1)=>{z||t("pick",n.parsedValue,B)},O=B=>{if(!n.visible)return;const z=U(B).millisecond(0);t("pick",z,!0)},I=(B,z)=>{t("select-range",B,z),p.value=[B,z]},N=B=>{const z=[0,3].concat(x.value?[6]:[]),F=["hours","minutes"].concat(x.value?["seconds"]:[]),Z=(z.indexOf(p.value[0])+B+z.length)%z.length;L.start_emitSelectRange(F[Z])},P=B=>{const z=B.code,{left:F,right:W,up:Z,down:j}=Ce;if([F,W].includes(z)){N(z===F?-1:1),B.preventDefault();return}if([Z,j].includes(z)){const ne=z===Z?-1:1;L.start_scrollDown(ne),B.preventDefault();return}},{timePickerOptions:L,onSetOption:R,getAvailableTime:K}=hh({getAvailableHours:c,getAvailableMinutes:d,getAvailableSeconds:f}),U=B=>K(B,n.datetimeRole||"",!0),H=B=>B?Be(B,n.format).locale(m.value):null,V=B=>B?B.format(n.format):null,D=()=>Be(u).locale(m.value);return t("set-picker-option",["isValidValue",b]),t("set-picker-option",["formatToString",V]),t("set-picker-option",["parseUserInput",H]),t("set-picker-option",["handleKeydownInput",P]),t("set-picker-option",["getRangeAvailableTime",U]),t("set-picker-option",["getDefaultValue",D]),(B,z)=>(_(),ae(tn,{name:o(g)},{default:G(()=>[B.actualVisible||B.visible?(_(),M("div",{key:0,class:$(o(h).b("panel"))},[k("div",{class:$([o(h).be("panel","content"),{"has-seconds":o(x)}])},[q(qu,{ref:"spinner",role:B.datetimeRole||"start","arrow-control":o(l),"show-seconds":o(x),"am-pm-mode":o(w),"spinner-date":B.parsedValue,"disabled-hours":o(r),"disabled-minutes":o(s),"disabled-seconds":o(i),onChange:O,onSetOption:o(R),onSelectRange:I},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onSetOption"])],2),k("div",{class:$(o(h).be("panel","footer"))},[k("button",{type:"button",class:$([o(h).be("panel","btn"),"cancel"]),onClick:S},he(o(v)("el.datepicker.cancel")),3),k("button",{type:"button",class:$([o(h).be("panel","btn"),"confirm"]),onClick:F=>E()},he(o(v)("el.datepicker.confirm")),11,["onClick"])],2)],2)):ee("v-if",!0)]),_:1},8,["name"]))}});var Ks=ve(TA,[["__file","panel-time-pick.vue"]]);const OA=pe({...ph,parsedValue:{type:X(Array)}}),NA=T({__name:"panel-time-range",props:OA,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,a=(me,le)=>{const we=[];for(let Le=me;Le<=le;Le++)we.push(Le);return we},{t:l,lang:r}=ct(),s=de("time"),i=de("picker"),u=Se("EP_PICKER_BASE"),{arrowControl:c,disabledHours:d,disabledMinutes:f,disabledSeconds:h,defaultValue:v}=u.props,m=C(()=>[s.be("range-picker","body"),s.be("panel","content"),s.is("arrow",c),b.value?"has-seconds":""]),p=C(()=>[s.be("range-picker","body"),s.be("panel","content"),s.is("arrow",c),b.value?"has-seconds":""]),y=C(()=>n.parsedValue[0]),g=C(()=>n.parsedValue[1]),x=yh(n),w=()=>{t("pick",x.value,!1)},b=C(()=>n.format.includes("ss")),S=C(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),E=(me=!1)=>{t("pick",[y.value,g.value],me)},O=me=>{P(me.millisecond(0),g.value)},I=me=>{P(y.value,me.millisecond(0))},N=me=>{const le=me.map(Le=>Be(Le).locale(r.value)),we=W(le);return le[0].isSame(we[0])&&le[1].isSame(we[1])},P=(me,le)=>{n.visible&&t("pick",[me,le],!0)},L=C(()=>y.value>g.value),R=A([0,2]),K=(me,le)=>{t("select-range",me,le,"min"),R.value=[me,le]},U=C(()=>b.value?11:8),H=(me,le)=>{t("select-range",me,le,"max");const we=o(U);R.value=[me+we,le+we]},V=me=>{const le=b.value?[0,3,6,11,14,17]:[0,3,8,11],we=["hours","minutes"].concat(b.value?["seconds"]:[]),De=(le.indexOf(R.value[0])+me+le.length)%le.length,Ye=le.length/2;De{const le=me.code,{left:we,right:Le,up:De,down:Ye}=Ce;if([we,Le].includes(le)){V(le===we?-1:1),me.preventDefault();return}if([De,Ye].includes(le)){const $e=le===De?-1:1,Te=R.value[0]{const we=d?d(me):[],Le=me==="start",Ye=(le||(Le?g.value:y.value)).hour(),$e=Le?a(Ye+1,23):a(0,Ye-1);return Zi(we,$e)},z=(me,le,we)=>{const Le=f?f(me,le):[],De=le==="start",Ye=we||(De?g.value:y.value),$e=Ye.hour();if(me!==$e)return Le;const Te=Ye.minute(),ke=De?a(Te+1,59):a(0,Te-1);return Zi(Le,ke)},F=(me,le,we,Le)=>{const De=h?h(me,le,we):[],Ye=we==="start",$e=Le||(Ye?g.value:y.value),Te=$e.hour(),ke=$e.minute();if(me!==Te||le!==ke)return De;const He=$e.second(),Ge=Ye?a(He+1,59):a(0,He-1);return Zi(De,Ge)},W=([me,le])=>[ce(me,"start",!0,le),ce(le,"end",!1,me)],{getAvailableHours:Z,getAvailableMinutes:j,getAvailableSeconds:ne}=gh(B,z,F),{timePickerOptions:oe,getAvailableTime:ce,onSetOption:te}=hh({getAvailableHours:Z,getAvailableMinutes:j,getAvailableSeconds:ne}),se=me=>me?Ee(me)?me.map(le=>Be(le,n.format).locale(r.value)):Be(me,n.format).locale(r.value):null,fe=me=>me?Ee(me)?me.map(le=>le.format(n.format)):me.format(n.format):null,xe=()=>{if(Ee(v))return v.map(le=>Be(le).locale(r.value));const me=Be(v).locale(r.value);return[me,me.add(60,"m")]};return t("set-picker-option",["formatToString",fe]),t("set-picker-option",["parseUserInput",se]),t("set-picker-option",["isValidValue",N]),t("set-picker-option",["handleKeydownInput",D]),t("set-picker-option",["getDefaultValue",xe]),t("set-picker-option",["getRangeAvailableTime",W]),(me,le)=>me.actualVisible?(_(),M("div",{key:0,class:$([o(s).b("range-picker"),o(i).b("panel")])},[k("div",{class:$(o(s).be("range-picker","content"))},[k("div",{class:$(o(s).be("range-picker","cell"))},[k("div",{class:$(o(s).be("range-picker","header"))},he(o(l)("el.datepicker.startTime")),3),k("div",{class:$(o(m))},[q(qu,{ref:"minSpinner",role:"start","show-seconds":o(b),"am-pm-mode":o(S),"arrow-control":o(c),"spinner-date":o(y),"disabled-hours":B,"disabled-minutes":z,"disabled-seconds":F,onChange:O,onSetOption:o(te),onSelectRange:K},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2),k("div",{class:$(o(s).be("range-picker","cell"))},[k("div",{class:$(o(s).be("range-picker","header"))},he(o(l)("el.datepicker.endTime")),3),k("div",{class:$(o(p))},[q(qu,{ref:"maxSpinner",role:"end","show-seconds":o(b),"am-pm-mode":o(S),"arrow-control":o(c),"spinner-date":o(g),"disabled-hours":B,"disabled-minutes":z,"disabled-seconds":F,onChange:I,onSetOption:o(te),onSelectRange:H},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2)],2),k("div",{class:$(o(s).be("panel","footer"))},[k("button",{type:"button",class:$([o(s).be("panel","btn"),"cancel"]),onClick:we=>w()},he(o(l)("el.datepicker.cancel")),11,["onClick"]),k("button",{type:"button",class:$([o(s).be("panel","btn"),"confirm"]),disabled:o(L),onClick:we=>E()},he(o(l)("el.datepicker.confirm")),11,["disabled","onClick"])],2)],2)):ee("v-if",!0)}});var IA=ve(NA,[["__file","panel-time-range.vue"]]);Be.extend(Id);var PA=T({name:"ElTimePicker",install:null,props:{...Pd,isRange:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,t){const n=A(),[a,l]=e.isRange?["timerange",IA]:["time",Ks],r=s=>t.emit("update:modelValue",s);return it("ElPopperOptions",e.popperOptions),t.expose({focus:()=>{var s;(s=n.value)==null||s.focus()},blur:()=>{var s;(s=n.value)==null||s.blur()},handleOpen:()=>{var s;(s=n.value)==null||s.handleOpen()},handleClose:()=>{var s;(s=n.value)==null||s.handleClose()}}),()=>{var s;const i=(s=e.format)!=null?s:ju;return q(vh,tt(e,{ref:n,type:a,format:i,"onUpdate:modelValue":r}),{default:u=>q(l,u,null)})}}});const zA=We(PA),Oi=Symbol(),AA=pe({...Pd,type:{type:X(String),default:"date"}}),VA=["date","dates","year","years","month","months","week","range"],zd=pe({disabledDate:{type:X(Function)},date:{type:X(Object),required:!0},minDate:{type:X(Object)},maxDate:{type:X(Object)},parsedValue:{type:X([Object,Array])},rangeState:{type:X(Object),default:()=>({endDate:null,selecting:!1})}}),_h=pe({type:{type:X(String),required:!0,values:DN},dateFormat:String,timeFormat:String,showNow:{type:Boolean,default:!0}}),Ad=pe({unlinkPanels:Boolean,parsedValue:{type:X(Array)}}),Vd=e=>({type:String,values:VA,default:e}),LA=pe({..._h,parsedValue:{type:X([Object,Array])},visible:{type:Boolean},format:{type:String,default:""}}),_o=e=>{if(!Ee(e))return!1;const[t,n]=e;return Be.isDayjs(t)&&Be.isDayjs(n)&&t.isSameOrBefore(n)},Ld=(e,{lang:t,unit:n,unlinkPanels:a})=>{let l;if(Ee(e)){let[r,s]=e.map(i=>Be(i).locale(t));return a||(s=r.add(1,n)),[r,s]}else e?l=Be(e):l=Be();return l=l.locale(t),[l,l.add(1,n)]},RA=(e,t,{columnIndexOffset:n,startDate:a,nextEndDate:l,now:r,unit:s,relativeDateGetter:i,setCellMetadata:u,setRowMetadata:c})=>{for(let d=0;d{const a=Be().locale(n).startOf("month").month(t).year(e),l=a.daysInMonth();return al(l).map(r=>a.add(r,"day").toDate())},hr=(e,t,n,a)=>{const l=Be().year(e).month(t).startOf("month"),r=Ws(e,t,n).find(s=>!(a!=null&&a(s)));return r?Be(r).locale(n):l.locale(n)},Uu=(e,t,n)=>{const a=e.year();if(!(n!=null&&n(e.toDate())))return e.locale(t);const l=e.month();if(!Ws(a,l,t).every(n))return hr(a,l,t,n);for(let r=0;r<12;r++)if(!Ws(a,r,t).every(n))return hr(a,r,t,n);return e},BA=pe({...zd,cellClassName:{type:X(Function)},showWeekNumber:Boolean,selectionMode:Vd("date")}),HA=["changerange","pick","select"],Yu=(e="")=>["normal","today"].includes(e),DA=(e,t)=>{const{lang:n}=ct(),a=A(),l=A(),r=A(),s=A(),i=A([[],[],[],[],[],[]]);let u=!1;const c=e.date.$locale().weekStart||7,d=e.date.locale("en").localeData().weekdaysShort().map(z=>z.toLowerCase()),f=C(()=>c>3?7-c:-c),h=C(()=>{const z=e.date.startOf("month");return z.subtract(z.day()||7,"day")}),v=C(()=>d.concat(d).slice(c,c+7)),m=C(()=>Kp(o(b)).some(z=>z.isCurrent)),p=C(()=>{const z=e.date.startOf("month"),F=z.day()||7,W=z.daysInMonth(),Z=z.subtract(1,"month").daysInMonth();return{startOfMonthDay:F,dateCountOfMonth:W,dateCountOfLastMonth:Z}}),y=C(()=>e.selectionMode==="dates"?Mn(e.parsedValue):[]),g=(z,{count:F,rowIndex:W,columnIndex:Z})=>{const{startOfMonthDay:j,dateCountOfMonth:ne,dateCountOfLastMonth:oe}=o(p),ce=o(f);if(W>=0&&W<=1){const te=j+ce<0?7+j+ce:j+ce;if(Z+W*7>=te)return z.text=F,!0;z.text=oe-(te-Z%7)+1+W*7,z.type="prev-month"}else return F<=ne?z.text=F:(z.text=F-ne,z.type="next-month"),!0;return!1},x=(z,{columnIndex:F,rowIndex:W},Z)=>{const{disabledDate:j,cellClassName:ne}=e,oe=o(y),ce=g(z,{count:Z,rowIndex:W,columnIndex:F}),te=z.dayjs.toDate();return z.selected=oe.find(se=>se.isSame(z.dayjs,"day")),z.isSelected=!!z.selected,z.isCurrent=E(z),z.disabled=j==null?void 0:j(te),z.customClass=ne==null?void 0:ne(te),ce},w=z=>{if(e.selectionMode==="week"){const[F,W]=e.showWeekNumber?[1,7]:[0,6],Z=B(z[F+1]);z[F].inRange=Z,z[F].start=Z,z[W].inRange=Z,z[W].end=Z}},b=C(()=>{const{minDate:z,maxDate:F,rangeState:W,showWeekNumber:Z}=e,j=o(f),ne=o(i),oe="day";let ce=1;if(Z)for(let te=0;te<6;te++)ne[te][0]||(ne[te][0]={type:"week",text:o(h).add(te*7+1,oe).week()});return RA({row:6,column:7},ne,{startDate:z,columnIndexOffset:Z?1:0,nextEndDate:W.endDate||F||W.selecting&&z||null,now:Be().locale(o(n)).startOf(oe),unit:oe,relativeDateGetter:te=>o(h).add(te-j,oe),setCellMetadata:(...te)=>{x(...te,ce)&&(ce+=1)},setRowMetadata:w}),ne});ue(()=>e.date,async()=>{var z;(z=o(a))!=null&&z.contains(document.activeElement)&&(await Ne(),await S())});const S=async()=>{var z;return(z=o(l))==null?void 0:z.focus()},E=z=>e.selectionMode==="date"&&Yu(z.type)&&O(z,e.parsedValue),O=(z,F)=>F?Be(F).locale(o(n)).isSame(e.date.date(Number(z.text)),"day"):!1,I=(z,F)=>{const W=z*7+(F-(e.showWeekNumber?1:0))-o(f);return o(h).add(W,"day")},N=z=>{var F;if(!e.rangeState.selecting)return;let W=z.target;if(W.tagName==="SPAN"&&(W=(F=W.parentNode)==null?void 0:F.parentNode),W.tagName==="DIV"&&(W=W.parentNode),W.tagName!=="TD")return;const Z=W.parentNode.rowIndex-1,j=W.cellIndex;o(b)[Z][j].disabled||(Z!==o(r)||j!==o(s))&&(r.value=Z,s.value=j,t("changerange",{selecting:!0,endDate:I(Z,j)}))},P=z=>!o(m)&&(z==null?void 0:z.text)===1&&z.type==="normal"||z.isCurrent,L=z=>{u||o(m)||e.selectionMode!=="date"||D(z,!0)},R=z=>{z.target.closest("td")&&(u=!0)},K=z=>{z.target.closest("td")&&(u=!1)},U=z=>{!e.rangeState.selecting||!e.minDate?(t("pick",{minDate:z,maxDate:null}),t("select",!0)):(z>=e.minDate?t("pick",{minDate:e.minDate,maxDate:z}):t("pick",{minDate:z,maxDate:e.minDate}),t("select",!1))},H=z=>{const F=z.week(),W=`${z.year()}w${F}`;t("pick",{year:z.year(),week:F,value:W,date:z.startOf("week")})},V=(z,F)=>{const W=F?Mn(e.parsedValue).filter(Z=>(Z==null?void 0:Z.valueOf())!==z.valueOf()):Mn(e.parsedValue).concat([z]);t("pick",W)},D=(z,F=!1)=>{const W=z.target.closest("td");if(!W)return;const Z=W.parentNode.rowIndex-1,j=W.cellIndex,ne=o(b)[Z][j];if(ne.disabled||ne.type==="week")return;const oe=I(Z,j);switch(e.selectionMode){case"range":{U(oe);break}case"date":{t("pick",oe,F);break}case"week":{H(oe);break}case"dates":{V(oe,!!ne.selected);break}}},B=z=>{if(e.selectionMode!=="week")return!1;let F=e.date.startOf("day");if(z.type==="prev-month"&&(F=F.subtract(1,"month")),z.type==="next-month"&&(F=F.add(1,"month")),F=F.date(Number.parseInt(z.text,10)),e.parsedValue&&!Ee(e.parsedValue)){const W=(e.parsedValue.day()-c+7)%7-1;return e.parsedValue.subtract(W,"day").isSame(F,"day")}return!1};return{WEEKS:v,rows:b,tbodyRef:a,currentCellRef:l,focus:S,isCurrent:E,isWeekActive:B,isSelectedCell:P,handlePickDate:D,handleMouseUp:K,handleMouseDown:R,handleMouseMove:N,handleFocus:L}},FA=(e,{isCurrent:t,isWeekActive:n})=>{const a=de("date-table"),{t:l}=ct(),r=C(()=>[a.b(),{"is-week-mode":e.selectionMode==="week"}]),s=C(()=>l("el.datepicker.dateTablePrompt")),i=C(()=>l("el.datepicker.week"));return{tableKls:r,tableLabel:s,weekLabel:i,getCellClasses:d=>{const f=[];return Yu(d.type)&&!d.disabled?(f.push("available"),d.type==="today"&&f.push("today")):f.push(d.type),t(d)&&f.push("current"),d.inRange&&(Yu(d.type)||e.selectionMode==="week")&&(f.push("in-range"),d.start&&f.push("start-date"),d.end&&f.push("end-date")),d.disabled&&f.push("disabled"),d.selected&&f.push("selected"),d.customClass&&f.push(d.customClass),f.join(" ")},getRowKls:d=>[a.e("row"),{current:n(d)}],t:l}},KA=pe({cell:{type:X(Object)}});var Rd=T({name:"ElDatePickerCell",props:KA,setup(e){const t=de("date-table-cell"),{slots:n}=Se(Oi);return()=>{const{cell:a}=e;return Q(n,"default",{...a},()=>{var l;return[q("div",{class:t.b()},[q("span",{class:t.e("text")},[(l=a==null?void 0:a.renderText)!=null?l:a==null?void 0:a.text])])]})}}});const WA=T({__name:"basic-date-table",props:BA,emits:HA,setup(e,{expose:t,emit:n}){const a=e,{WEEKS:l,rows:r,tbodyRef:s,currentCellRef:i,focus:u,isCurrent:c,isWeekActive:d,isSelectedCell:f,handlePickDate:h,handleMouseUp:v,handleMouseDown:m,handleMouseMove:p,handleFocus:y}=DA(a,n),{tableLabel:g,tableKls:x,weekLabel:w,getCellClasses:b,getRowKls:S,t:E}=FA(a,{isCurrent:c,isWeekActive:d});return t({focus:u}),(O,I)=>(_(),M("table",{"aria-label":o(g),class:$(o(x)),cellspacing:"0",cellpadding:"0",role:"grid",onClick:o(h),onMousemove:o(p),onMousedown:Ae(o(m),["prevent"]),onMouseup:o(v)},[k("tbody",{ref_key:"tbodyRef",ref:s},[k("tr",null,[O.showWeekNumber?(_(),M("th",{key:0,scope:"col"},he(o(w)),1)):ee("v-if",!0),(_(!0),M(ze,null,rt(o(l),(N,P)=>(_(),M("th",{key:P,"aria-label":o(E)("el.datepicker.weeksFull."+N),scope:"col"},he(o(E)("el.datepicker.weeks."+N)),9,["aria-label"]))),128))]),(_(!0),M(ze,null,rt(o(r),(N,P)=>(_(),M("tr",{key:P,class:$(o(S)(N[1]))},[(_(!0),M(ze,null,rt(N,(L,R)=>(_(),M("td",{key:`${P}.${R}`,ref_for:!0,ref:K=>o(f)(L)&&(i.value=K),class:$(o(b)(L)),"aria-current":L.isCurrent?"date":void 0,"aria-selected":L.isCurrent,tabindex:o(f)(L)?0:-1,onFocus:o(y)},[q(o(Rd),{cell:L},null,8,["cell"])],42,["aria-current","aria-selected","tabindex","onFocus"]))),128))],2))),128))],512)],42,["aria-label","onClick","onMousemove","onMousedown","onMouseup"]))}});var Gu=ve(WA,[["__file","basic-date-table.vue"]]);const jA=pe({...zd,selectionMode:Vd("month")}),qA=T({__name:"basic-month-table",props:jA,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const a=e,l=de("month-table"),{t:r,lang:s}=ct(),i=A(),u=A(),c=A(a.date.locale("en").localeData().monthsShort().map(w=>w.toLowerCase())),d=A([[],[],[]]),f=A(),h=A(),v=C(()=>{var w,b;const S=d.value,E=Be().locale(s.value).startOf("month");for(let O=0;O<3;O++){const I=S[O];for(let N=0;N<4;N++){const P=I[N]||(I[N]={row:O,column:N,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1});P.type="normal";const L=O*4+N,R=a.date.startOf("year").month(L),K=a.rangeState.endDate||a.maxDate||a.rangeState.selecting&&a.minDate||null;P.inRange=!!(a.minDate&&R.isSameOrAfter(a.minDate,"month")&&K&&R.isSameOrBefore(K,"month"))||!!(a.minDate&&R.isSameOrBefore(a.minDate,"month")&&K&&R.isSameOrAfter(K,"month")),(w=a.minDate)!=null&&w.isSameOrAfter(K)?(P.start=!!(K&&R.isSame(K,"month")),P.end=a.minDate&&R.isSame(a.minDate,"month")):(P.start=!!(a.minDate&&R.isSame(a.minDate,"month")),P.end=!!(K&&R.isSame(K,"month"))),E.isSame(R)&&(P.type="today"),P.text=L,P.disabled=((b=a.disabledDate)==null?void 0:b.call(a,R.toDate()))||!1}}return S}),m=()=>{var w;(w=u.value)==null||w.focus()},p=w=>{const b={},S=a.date.year(),E=new Date,O=w.text;return b.disabled=a.disabledDate?Ws(S,O,s.value).every(a.disabledDate):!1,b.current=Mn(a.parsedValue).findIndex(I=>Be.isDayjs(I)&&I.year()===S&&I.month()===O)>=0,b.today=E.getFullYear()===S&&E.getMonth()===O,w.inRange&&(b["in-range"]=!0,w.start&&(b["start-date"]=!0),w.end&&(b["end-date"]=!0)),b},y=w=>{const b=a.date.year(),S=w.text;return Mn(a.date).findIndex(E=>E.year()===b&&E.month()===S)>=0},g=w=>{var b;if(!a.rangeState.selecting)return;let S=w.target;if(S.tagName==="SPAN"&&(S=(b=S.parentNode)==null?void 0:b.parentNode),S.tagName==="DIV"&&(S=S.parentNode),S.tagName!=="TD")return;const E=S.parentNode.rowIndex,O=S.cellIndex;v.value[E][O].disabled||(E!==f.value||O!==h.value)&&(f.value=E,h.value=O,n("changerange",{selecting:!0,endDate:a.date.startOf("year").month(E*4+O)}))},x=w=>{var b;const S=(b=w.target)==null?void 0:b.closest("td");if((S==null?void 0:S.tagName)!=="TD"||An(S,"disabled"))return;const E=S.cellIndex,I=S.parentNode.rowIndex*4+E,N=a.date.startOf("year").month(I);if(a.selectionMode==="months"){if(w.type==="keydown"){n("pick",Mn(a.parsedValue),!1);return}const P=hr(a.date.year(),I,s.value,a.disabledDate),L=An(S,"current")?Mn(a.parsedValue).filter(R=>(R==null?void 0:R.month())!==P.month()):Mn(a.parsedValue).concat([Be(P)]);n("pick",L)}else a.selectionMode==="range"?a.rangeState.selecting?(a.minDate&&N>=a.minDate?n("pick",{minDate:a.minDate,maxDate:N}):n("pick",{minDate:N,maxDate:a.minDate}),n("select",!1)):(n("pick",{minDate:N,maxDate:null}),n("select",!0)):n("pick",I)};return ue(()=>a.date,async()=>{var w,b;(w=i.value)!=null&&w.contains(document.activeElement)&&(await Ne(),(b=u.value)==null||b.focus())}),t({focus:m}),(w,b)=>(_(),M("table",{role:"grid","aria-label":o(r)("el.datepicker.monthTablePrompt"),class:$(o(l).b()),onClick:x,onMousemove:g},[k("tbody",{ref_key:"tbodyRef",ref:i},[(_(!0),M(ze,null,rt(o(v),(S,E)=>(_(),M("tr",{key:E},[(_(!0),M(ze,null,rt(S,(O,I)=>(_(),M("td",{key:I,ref_for:!0,ref:N=>y(O)&&(u.value=N),class:$(p(O)),"aria-selected":`${y(O)}`,"aria-label":o(r)(`el.datepicker.month${+O.text+1}`),tabindex:y(O)?0:-1,onKeydown:[kt(Ae(x,["prevent","stop"]),["space"]),kt(Ae(x,["prevent","stop"]),["enter"])]},[q(o(Rd),{cell:{...O,renderText:o(r)("el.datepicker.months."+c.value[O.text])}},null,8,["cell"])],42,["aria-selected","aria-label","tabindex","onKeydown"]))),128))]))),128))],512)],42,["aria-label"]))}});var Xu=ve(qA,[["__file","basic-month-table.vue"]]);const UA=pe({...zd,selectionMode:Vd("year")}),YA=T({__name:"basic-year-table",props:UA,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const a=e,l=(b,S)=>{const E=Be(String(b)).locale(S).startOf("year"),I=E.endOf("year").dayOfYear();return al(I).map(N=>E.add(N,"day").toDate())},r=de("year-table"),{t:s,lang:i}=ct(),u=A(),c=A(),d=C(()=>Math.floor(a.date.year()/10)*10),f=A([[],[],[]]),h=A(),v=A(),m=C(()=>{var b;const S=f.value,E=Be().locale(i.value).startOf("year");for(let O=0;O<3;O++){const I=S[O];for(let N=0;N<4&&!(O*4+N>=10);N++){let P=I[N];P||(P={row:O,column:N,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1}),P.type="normal";const L=O*4+N+d.value,R=Be().year(L),K=a.rangeState.endDate||a.maxDate||a.rangeState.selecting&&a.minDate||null;P.inRange=!!(a.minDate&&R.isSameOrAfter(a.minDate,"year")&&K&&R.isSameOrBefore(K,"year"))||!!(a.minDate&&R.isSameOrBefore(a.minDate,"year")&&K&&R.isSameOrAfter(K,"year")),(b=a.minDate)!=null&&b.isSameOrAfter(K)?(P.start=!!(K&&R.isSame(K,"year")),P.end=!!(a.minDate&&R.isSame(a.minDate,"year"))):(P.start=!!(a.minDate&&R.isSame(a.minDate,"year")),P.end=!!(K&&R.isSame(K,"year"))),E.isSame(R)&&(P.type="today"),P.text=L;const H=R.toDate();P.disabled=a.disabledDate&&a.disabledDate(H)||!1,I[N]=P}}return S}),p=()=>{var b;(b=c.value)==null||b.focus()},y=b=>{const S={},E=Be().locale(i.value),O=b.text;return S.disabled=a.disabledDate?l(O,i.value).every(a.disabledDate):!1,S.today=E.year()===O,S.current=Mn(a.parsedValue).findIndex(I=>I.year()===O)>=0,b.inRange&&(S["in-range"]=!0,b.start&&(S["start-date"]=!0),b.end&&(S["end-date"]=!0)),S},g=b=>{const S=b.text;return Mn(a.date).findIndex(E=>E.year()===S)>=0},x=b=>{var S;const E=(S=b.target)==null?void 0:S.closest("td");if(!E||!E.textContent||An(E,"disabled"))return;const O=E.cellIndex,N=E.parentNode.rowIndex*4+O+d.value,P=Be().year(N);if(a.selectionMode==="range")a.rangeState.selecting?(a.minDate&&P>=a.minDate?n("pick",{minDate:a.minDate,maxDate:P}):n("pick",{minDate:P,maxDate:a.minDate}),n("select",!1)):(n("pick",{minDate:P,maxDate:null}),n("select",!0));else if(a.selectionMode==="years"){if(b.type==="keydown"){n("pick",Mn(a.parsedValue),!1);return}const L=Uu(P.startOf("year"),i.value,a.disabledDate),R=An(E,"current")?Mn(a.parsedValue).filter(K=>(K==null?void 0:K.year())!==N):Mn(a.parsedValue).concat([L]);n("pick",R)}else n("pick",N)},w=b=>{var S;if(!a.rangeState.selecting)return;const E=(S=b.target)==null?void 0:S.closest("td");if(!E)return;const O=E.parentNode.rowIndex,I=E.cellIndex;m.value[O][I].disabled||(O!==h.value||I!==v.value)&&(h.value=O,v.value=I,n("changerange",{selecting:!0,endDate:Be().year(d.value).add(O*4+I,"year")}))};return ue(()=>a.date,async()=>{var b,S;(b=u.value)!=null&&b.contains(document.activeElement)&&(await Ne(),(S=c.value)==null||S.focus())}),t({focus:p}),(b,S)=>(_(),M("table",{role:"grid","aria-label":o(s)("el.datepicker.yearTablePrompt"),class:$(o(r).b()),onClick:x,onMousemove:w},[k("tbody",{ref_key:"tbodyRef",ref:u},[(_(!0),M(ze,null,rt(o(m),(E,O)=>(_(),M("tr",{key:O},[(_(!0),M(ze,null,rt(E,(I,N)=>(_(),M("td",{key:`${O}_${N}`,ref_for:!0,ref:P=>g(I)&&(c.value=P),class:$(["available",y(I)]),"aria-selected":g(I),"aria-label":String(I.text),tabindex:g(I)?0:-1,onKeydown:[kt(Ae(x,["prevent","stop"]),["space"]),kt(Ae(x,["prevent","stop"]),["enter"])]},[q(o(Rd),{cell:I},null,8,["cell"])],42,["aria-selected","aria-label","tabindex","onKeydown"]))),128))]))),128))],512)],42,["aria-label"]))}});var Zu=ve(YA,[["__file","basic-year-table.vue"]]);const GA=T({__name:"panel-date-pick",props:LA,emits:["pick","set-picker-option","panel-change"],setup(e,{emit:t}){const n=e,a=(re,J,ie)=>!0,l=de("picker-panel"),r=de("date-picker"),s=Ka(),i=Xt(),{t:u,lang:c}=ct(),d=Se("EP_PICKER_BASE"),f=Se($i),{shortcuts:h,disabledDate:v,cellClassName:m,defaultTime:p}=d.props,y=yt(d.props,"defaultValue"),g=A(),x=A(Be().locale(c.value)),w=A(!1);let b=!1;const S=C(()=>Be(p).locale(c.value)),E=C(()=>x.value.month()),O=C(()=>x.value.year()),I=A([]),N=A(null),P=A(null),L=re=>I.value.length>0?a(re,I.value,n.format||"HH:mm:ss"):!0,R=re=>p&&!De.value&&!w.value&&!b?S.value.year(re.year()).month(re.month()).date(re.date()):te.value?re.millisecond(0):re.startOf("day"),K=(re,...J)=>{if(!re)t("pick",re,...J);else if(Ee(re)){const ie=re.map(R);t("pick",ie,...J)}else t("pick",R(re),...J);N.value=null,P.value=null,w.value=!1,b=!1},U=async(re,J)=>{if(F.value==="date"){re=re;let ie=n.parsedValue?n.parsedValue.year(re.year()).month(re.month()).date(re.date()):re;L(ie)||(ie=I.value[0][0].year(re.year()).month(re.month()).date(re.date())),x.value=ie,K(ie,te.value||J),n.type==="datetime"&&(await Ne(),bt())}else F.value==="week"?K(re.date):F.value==="dates"&&K(re,!0)},H=re=>{const J=re?"add":"subtract";x.value=x.value[J](1,"month"),Wt("month")},V=re=>{const J=x.value,ie=re?"add":"subtract";x.value=D.value==="year"?J[ie](10,"year"):J[ie](1,"year"),Wt("year")},D=A("date"),B=C(()=>{const re=u("el.datepicker.year");if(D.value==="year"){const J=Math.floor(O.value/10)*10;return re?`${J} ${re} - ${J+9} ${re}`:`${J} - ${J+9}`}return`${O.value} ${re}`}),z=re=>{const J=Je(re.value)?re.value():re.value;if(J){b=!0,K(Be(J).locale(c.value));return}re.onClick&&re.onClick({attrs:s,slots:i,emit:t})},F=C(()=>{const{type:re}=n;return["week","month","months","year","years","dates"].includes(re)?re:"date"}),W=C(()=>F.value==="dates"||F.value==="months"||F.value==="years"),Z=C(()=>F.value==="date"?D.value:F.value),j=C(()=>!!h.length),ne=async(re,J)=>{F.value==="month"?(x.value=hr(x.value.year(),re,c.value,v),K(x.value,!1)):F.value==="months"?K(re,J??!0):(x.value=hr(x.value.year(),re,c.value,v),D.value="date",["month","year","date","week"].includes(F.value)&&(K(x.value,!0),await Ne(),bt())),Wt("month")},oe=async(re,J)=>{if(F.value==="year"){const ie=x.value.startOf("year").year(re);x.value=Uu(ie,c.value,v),K(x.value,!1)}else if(F.value==="years")K(re,J??!0);else{const ie=x.value.year(re);x.value=Uu(ie,c.value,v),D.value="month",["month","year","date","week"].includes(F.value)&&(K(x.value,!0),await Ne(),bt())}Wt("year")},ce=async re=>{D.value=re,await Ne(),bt()},te=C(()=>n.type==="datetime"||n.type==="datetimerange"),se=C(()=>{const re=te.value||F.value==="dates",J=F.value==="years",ie=F.value==="months",Y=D.value==="date",ye=D.value==="year",Fe=D.value==="month";return re&&Y||J&&ye||ie&&Fe}),fe=C(()=>v?n.parsedValue?Ee(n.parsedValue)?v(n.parsedValue[0].toDate()):v(n.parsedValue.toDate()):!0:!1),xe=()=>{if(W.value)K(n.parsedValue);else{let re=n.parsedValue;if(!re){const J=Be(p).locale(c.value),ie=Tt();re=J.year(ie.year()).month(ie.month()).date(ie.date())}x.value=re,K(re)}},me=C(()=>v?v(Be().locale(c.value).toDate()):!1),le=()=>{const J=Be().locale(c.value).toDate();w.value=!0,(!v||!v(J))&&L(J)&&(x.value=Be().locale(c.value),K(x.value))},we=C(()=>n.timeFormat||Bv(n.format)),Le=C(()=>n.dateFormat||Rv(n.format)),De=C(()=>{if(P.value)return P.value;if(!(!n.parsedValue&&!y.value))return(n.parsedValue||x.value).format(we.value)}),Ye=C(()=>{if(N.value)return N.value;if(!(!n.parsedValue&&!y.value))return(n.parsedValue||x.value).format(Le.value)}),$e=A(!1),Te=()=>{$e.value=!0},ke=()=>{$e.value=!1},He=re=>({hour:re.hour(),minute:re.minute(),second:re.second(),year:re.year(),month:re.month(),date:re.date()}),Ge=(re,J,ie)=>{const{hour:Y,minute:ye,second:Fe}=He(re),lt=n.parsedValue?n.parsedValue.hour(Y).minute(ye).second(Fe):re;x.value=lt,K(x.value,!0),ie||($e.value=J)},at=re=>{const J=Be(re,we.value).locale(c.value);if(J.isValid()&&L(J)){const{year:ie,month:Y,date:ye}=He(x.value);x.value=J.year(ie).month(Y).date(ye),P.value=null,$e.value=!1,K(x.value,!0)}},nt=re=>{const J=Be(re,Le.value).locale(c.value);if(J.isValid()){if(v&&v(J.toDate()))return;const{hour:ie,minute:Y,second:ye}=He(x.value);x.value=J.hour(ie).minute(Y).second(ye),N.value=null,K(x.value,!0)}},be=re=>Be.isDayjs(re)&&re.isValid()&&(v?!v(re.toDate()):!0),je=re=>Ee(re)?re.map(J=>J.format(n.format)):re.format(n.format),ft=re=>Be(re,n.format).locale(c.value),Tt=()=>{const re=Be(y.value).locale(c.value);if(!y.value){const J=S.value;return Be().hour(J.hour()).minute(J.minute()).second(J.second()).locale(c.value)}return re},bt=()=>{var re;["week","month","year","date"].includes(F.value)&&((re=g.value)==null||re.focus())},Pt=()=>{bt(),F.value==="week"&&sn(Ce.down)},mt=re=>{const{code:J}=re;[Ce.up,Ce.down,Ce.left,Ce.right,Ce.home,Ce.end,Ce.pageUp,Ce.pageDown].includes(J)&&(sn(J),re.stopPropagation(),re.preventDefault()),[Ce.enter,Ce.space,Ce.numpadEnter].includes(J)&&N.value===null&&P.value===null&&(re.preventDefault(),K(x.value,!1))},sn=re=>{var J;const{up:ie,down:Y,left:ye,right:Fe,home:lt,end:Nt,pageUp:Ut,pageDown:Jt}=Ce,Mt={year:{[ie]:-4,[Y]:4,[ye]:-1,[Fe]:1,offset:(It,In)=>It.setFullYear(It.getFullYear()+In)},month:{[ie]:-4,[Y]:4,[ye]:-1,[Fe]:1,offset:(It,In)=>It.setMonth(It.getMonth()+In)},week:{[ie]:-1,[Y]:1,[ye]:-1,[Fe]:1,offset:(It,In)=>It.setDate(It.getDate()+In*7)},date:{[ie]:-7,[Y]:7,[ye]:-1,[Fe]:1,[lt]:It=>-It.getDay(),[Nt]:It=>-It.getDay()+6,[Ut]:It=>-new Date(It.getFullYear(),It.getMonth(),0).getDate(),[Jt]:It=>new Date(It.getFullYear(),It.getMonth()+1,0).getDate(),offset:(It,In)=>It.setDate(It.getDate()+In)}},ln=x.value.toDate();for(;Math.abs(x.value.diff(ln,"year",!0))<1;){const It=Mt[Z.value];if(!It)return;if(It.offset(ln,Je(It[re])?It[re](ln):(J=It[re])!=null?J:0),v&&v(ln))break;const In=Be(ln).locale(c.value);x.value=In,t("pick",In,!0);break}},Wt=re=>{t("panel-change",x.value.toDate(),re,D.value)};return ue(()=>F.value,re=>{if(["month","year"].includes(re)){D.value=re;return}else if(re==="years"){D.value="year";return}else if(re==="months"){D.value="month";return}D.value="date"},{immediate:!0}),ue(()=>D.value,()=>{f==null||f.updatePopper()}),ue(()=>y.value,re=>{re&&(x.value=Tt())},{immediate:!0}),ue(()=>n.parsedValue,re=>{if(re){if(W.value||Ee(re))return;x.value=re}else x.value=Tt()},{immediate:!0}),t("set-picker-option",["isValidValue",be]),t("set-picker-option",["formatToString",je]),t("set-picker-option",["parseUserInput",ft]),t("set-picker-option",["handleFocusPicker",Pt]),(re,J)=>(_(),M("div",{class:$([o(l).b(),o(r).b(),{"has-sidebar":re.$slots.sidebar||o(j),"has-time":o(te)}])},[k("div",{class:$(o(l).e("body-wrapper"))},[Q(re.$slots,"sidebar",{class:$(o(l).e("sidebar"))}),o(j)?(_(),M("div",{key:0,class:$(o(l).e("sidebar"))},[(_(!0),M(ze,null,rt(o(h),(ie,Y)=>(_(),M("button",{key:Y,type:"button",class:$(o(l).e("shortcut")),onClick:ye=>z(ie)},he(ie.text),11,["onClick"]))),128))],2)):ee("v-if",!0),k("div",{class:$(o(l).e("body"))},[o(te)?(_(),M("div",{key:0,class:$(o(r).e("time-header"))},[k("span",{class:$(o(r).e("editor-wrap"))},[q(o(Cn),{placeholder:o(u)("el.datepicker.selectDate"),"model-value":o(Ye),size:"small","validate-event":!1,onInput:ie=>N.value=ie,onChange:nt},null,8,["placeholder","model-value","onInput"])],2),qe((_(),M("span",{class:$(o(r).e("editor-wrap"))},[q(o(Cn),{placeholder:o(u)("el.datepicker.selectTime"),"model-value":o(De),size:"small","validate-event":!1,onFocus:Te,onInput:ie=>P.value=ie,onChange:at},null,8,["placeholder","model-value","onInput"]),q(o(Ks),{visible:$e.value,format:o(we),"parsed-value":x.value,onPick:Ge},null,8,["visible","format","parsed-value"])],2)),[[o(Fa),ke]])],2)):ee("v-if",!0),qe(k("div",{class:$([o(r).e("header"),(D.value==="year"||D.value==="month")&&o(r).e("header--bordered")])},[k("span",{class:$(o(r).e("prev-btn"))},[k("button",{type:"button","aria-label":o(u)("el.datepicker.prevYear"),class:$(["d-arrow-left",o(l).e("icon-btn")]),onClick:ie=>V(!1)},[Q(re.$slots,"prev-year",{},()=>[q(o(Me),null,{default:G(()=>[q(o(Ra))]),_:1})])],10,["aria-label","onClick"]),qe(k("button",{type:"button","aria-label":o(u)("el.datepicker.prevMonth"),class:$([o(l).e("icon-btn"),"arrow-left"]),onClick:ie=>H(!1)},[Q(re.$slots,"prev-month",{},()=>[q(o(Me),null,{default:G(()=>[q(o(La))]),_:1})])],10,["aria-label","onClick"]),[[pt,D.value==="date"]])],2),k("span",{role:"button",class:$(o(r).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:kt(ie=>ce("year"),["enter"]),onClick:ie=>ce("year")},he(o(B)),43,["onKeydown","onClick"]),qe(k("span",{role:"button","aria-live":"polite",tabindex:"0",class:$([o(r).e("header-label"),{active:D.value==="month"}]),onKeydown:kt(ie=>ce("month"),["enter"]),onClick:ie=>ce("month")},he(o(u)(`el.datepicker.month${o(E)+1}`)),43,["onKeydown","onClick"]),[[pt,D.value==="date"]]),k("span",{class:$(o(r).e("next-btn"))},[qe(k("button",{type:"button","aria-label":o(u)("el.datepicker.nextMonth"),class:$([o(l).e("icon-btn"),"arrow-right"]),onClick:ie=>H(!0)},[Q(re.$slots,"next-month",{},()=>[q(o(Me),null,{default:G(()=>[q(o(En))]),_:1})])],10,["aria-label","onClick"]),[[pt,D.value==="date"]]),k("button",{type:"button","aria-label":o(u)("el.datepicker.nextYear"),class:$([o(l).e("icon-btn"),"d-arrow-right"]),onClick:ie=>V(!0)},[Q(re.$slots,"next-year",{},()=>[q(o(Me),null,{default:G(()=>[q(o(Ba))]),_:1})])],10,["aria-label","onClick"])],2)],2),[[pt,D.value!=="time"]]),k("div",{class:$(o(l).e("content")),onKeydown:mt},[D.value==="date"?(_(),ae(Gu,{key:0,ref_key:"currentViewRef",ref:g,"selection-mode":o(F),date:x.value,"parsed-value":re.parsedValue,"disabled-date":o(v),"cell-class-name":o(m),onPick:U},null,8,["selection-mode","date","parsed-value","disabled-date","cell-class-name"])):ee("v-if",!0),D.value==="year"?(_(),ae(Zu,{key:1,ref_key:"currentViewRef",ref:g,"selection-mode":o(F),date:x.value,"disabled-date":o(v),"parsed-value":re.parsedValue,onPick:oe},null,8,["selection-mode","date","disabled-date","parsed-value"])):ee("v-if",!0),D.value==="month"?(_(),ae(Xu,{key:2,ref_key:"currentViewRef",ref:g,"selection-mode":o(F),date:x.value,"parsed-value":re.parsedValue,"disabled-date":o(v),onPick:ne},null,8,["selection-mode","date","parsed-value","disabled-date"])):ee("v-if",!0)],34)],2)],2),qe(k("div",{class:$(o(l).e("footer"))},[qe(q(o(en),{text:"",size:"small",class:$(o(l).e("link-btn")),disabled:o(me),onClick:le},{default:G(()=>[ot(he(o(u)("el.datepicker.now")),1)]),_:1},8,["class","disabled"]),[[pt,!o(W)&&re.showNow]]),q(o(en),{plain:"",size:"small",class:$(o(l).e("link-btn")),disabled:o(fe),onClick:xe},{default:G(()=>[ot(he(o(u)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])],2),[[pt,o(se)]])],2))}});var XA=ve(GA,[["__file","panel-date-pick.vue"]]);const ZA=pe({..._h,...Ad,visible:Boolean}),bh=e=>{const{emit:t}=et(),n=Ka(),a=Xt();return r=>{const s=Je(r.value)?r.value():r.value;if(s){t("pick",[Be(s[0]).locale(e.value),Be(s[1]).locale(e.value)]);return}r.onClick&&r.onClick({attrs:n,slots:a,emit:t})}},wh=(e,{defaultValue:t,leftDate:n,rightDate:a,unit:l,onParsedValueChanged:r})=>{const{emit:s}=et(),{pickerNs:i}=Se(Oi),u=de("date-range-picker"),{t:c,lang:d}=ct(),f=bh(d),h=A(),v=A(),m=A({endDate:null,selecting:!1}),p=b=>{m.value=b},y=(b=!1)=>{const S=o(h),E=o(v);_o([S,E])&&s("pick",[S,E],b)},g=b=>{m.value.selecting=b,b||(m.value.endDate=null)},x=b=>{if(Ee(b)&&b.length===2){const[S,E]=b;h.value=S,n.value=S,v.value=E,r(o(h),o(v))}else w()},w=()=>{const[b,S]=Ld(o(t),{lang:o(d),unit:l,unlinkPanels:e.unlinkPanels});h.value=void 0,v.value=void 0,n.value=b,a.value=S};return ue(t,b=>{b&&w()},{immediate:!0}),ue(()=>e.parsedValue,x,{immediate:!0}),{minDate:h,maxDate:v,rangeState:m,lang:d,ppNs:i,drpNs:u,handleChangeRange:p,handleRangeConfirm:y,handleShortcutClick:f,onSelect:g,onReset:x,t:c}},es="month",JA=T({__name:"panel-date-range",props:ZA,emits:["pick","set-picker-option","calendar-change","panel-change"],setup(e,{emit:t}){const n=e,a=Se("EP_PICKER_BASE"),{disabledDate:l,cellClassName:r,defaultTime:s,clearable:i}=a.props,u=yt(a.props,"format"),c=yt(a.props,"shortcuts"),d=yt(a.props,"defaultValue"),{lang:f}=ct(),h=A(Be().locale(f.value)),v=A(Be().locale(f.value).add(1,es)),{minDate:m,maxDate:p,rangeState:y,ppNs:g,drpNs:x,handleChangeRange:w,handleRangeConfirm:b,handleShortcutClick:S,onSelect:E,onReset:O,t:I}=wh(n,{defaultValue:d,leftDate:h,rightDate:v,unit:es,onParsedValueChanged:re});ue(()=>n.visible,J=>{!J&&y.value.selecting&&(O(n.parsedValue),E(!1))});const N=A({min:null,max:null}),P=A({min:null,max:null}),L=C(()=>`${h.value.year()} ${I("el.datepicker.year")} ${I(`el.datepicker.month${h.value.month()+1}`)}`),R=C(()=>`${v.value.year()} ${I("el.datepicker.year")} ${I(`el.datepicker.month${v.value.month()+1}`)}`),K=C(()=>h.value.year()),U=C(()=>h.value.month()),H=C(()=>v.value.year()),V=C(()=>v.value.month()),D=C(()=>!!c.value.length),B=C(()=>N.value.min!==null?N.value.min:m.value?m.value.format(j.value):""),z=C(()=>N.value.max!==null?N.value.max:p.value||m.value?(p.value||m.value).format(j.value):""),F=C(()=>P.value.min!==null?P.value.min:m.value?m.value.format(Z.value):""),W=C(()=>P.value.max!==null?P.value.max:p.value||m.value?(p.value||m.value).format(Z.value):""),Z=C(()=>n.timeFormat||Bv(u.value)),j=C(()=>n.dateFormat||Rv(u.value)),ne=J=>_o(J)&&(l?!l(J[0].toDate())&&!l(J[1].toDate()):!0),oe=()=>{h.value=h.value.subtract(1,"year"),n.unlinkPanels||(v.value=h.value.add(1,"month")),we("year")},ce=()=>{h.value=h.value.subtract(1,"month"),n.unlinkPanels||(v.value=h.value.add(1,"month")),we("month")},te=()=>{n.unlinkPanels?v.value=v.value.add(1,"year"):(h.value=h.value.add(1,"year"),v.value=h.value.add(1,"month")),we("year")},se=()=>{n.unlinkPanels?v.value=v.value.add(1,"month"):(h.value=h.value.add(1,"month"),v.value=h.value.add(1,"month")),we("month")},fe=()=>{h.value=h.value.add(1,"year"),we("year")},xe=()=>{h.value=h.value.add(1,"month"),we("month")},me=()=>{v.value=v.value.subtract(1,"year"),we("year")},le=()=>{v.value=v.value.subtract(1,"month"),we("month")},we=J=>{t("panel-change",[h.value.toDate(),v.value.toDate()],J)},Le=C(()=>{const J=(U.value+1)%12,ie=U.value+1>=12?1:0;return n.unlinkPanels&&new Date(K.value+ie,J)n.unlinkPanels&&H.value*12+V.value-(K.value*12+U.value+1)>=12),Ye=C(()=>!(m.value&&p.value&&!y.value.selecting&&_o([m.value,p.value]))),$e=C(()=>n.type==="datetime"||n.type==="datetimerange"),Te=(J,ie)=>{if(J)return s?Be(s[ie]||s).locale(f.value).year(J.year()).month(J.month()).date(J.date()):J},ke=(J,ie=!0)=>{const Y=J.minDate,ye=J.maxDate,Fe=Te(Y,0),lt=Te(ye,1);p.value===lt&&m.value===Fe||(t("calendar-change",[Y.toDate(),ye&&ye.toDate()]),p.value=lt,m.value=Fe,!(!ie||$e.value)&&b())},He=A(!1),Ge=A(!1),at=()=>{He.value=!1},nt=()=>{Ge.value=!1},be=(J,ie)=>{N.value[ie]=J;const Y=Be(J,j.value).locale(f.value);if(Y.isValid()){if(l&&l(Y.toDate()))return;ie==="min"?(h.value=Y,m.value=(m.value||h.value).year(Y.year()).month(Y.month()).date(Y.date()),!n.unlinkPanels&&(!p.value||p.value.isBefore(m.value))&&(v.value=Y.add(1,"month"),p.value=m.value.add(1,"month"))):(v.value=Y,p.value=(p.value||v.value).year(Y.year()).month(Y.month()).date(Y.date()),!n.unlinkPanels&&(!m.value||m.value.isAfter(p.value))&&(h.value=Y.subtract(1,"month"),m.value=p.value.subtract(1,"month")))}},je=(J,ie)=>{N.value[ie]=null},ft=(J,ie)=>{P.value[ie]=J;const Y=Be(J,Z.value).locale(f.value);Y.isValid()&&(ie==="min"?(He.value=!0,m.value=(m.value||h.value).hour(Y.hour()).minute(Y.minute()).second(Y.second())):(Ge.value=!0,p.value=(p.value||v.value).hour(Y.hour()).minute(Y.minute()).second(Y.second()),v.value=p.value))},Tt=(J,ie)=>{P.value[ie]=null,ie==="min"?(h.value=m.value,He.value=!1,(!p.value||p.value.isBefore(m.value))&&(p.value=m.value)):(v.value=p.value,Ge.value=!1,p.value&&p.value.isBefore(m.value)&&(m.value=p.value))},bt=(J,ie,Y)=>{P.value.min||(J&&(h.value=J,m.value=(m.value||h.value).hour(J.hour()).minute(J.minute()).second(J.second())),Y||(He.value=ie),(!p.value||p.value.isBefore(m.value))&&(p.value=m.value,v.value=J))},Pt=(J,ie,Y)=>{P.value.max||(J&&(v.value=J,p.value=(p.value||v.value).hour(J.hour()).minute(J.minute()).second(J.second())),Y||(Ge.value=ie),p.value&&p.value.isBefore(m.value)&&(m.value=p.value))},mt=()=>{h.value=Ld(o(d),{lang:o(f),unit:"month",unlinkPanels:n.unlinkPanels})[0],v.value=h.value.add(1,"month"),p.value=void 0,m.value=void 0,t("pick",null)},sn=J=>Ee(J)?J.map(ie=>ie.format(u.value)):J.format(u.value),Wt=J=>Ee(J)?J.map(ie=>Be(ie,u.value).locale(f.value)):Be(J,u.value).locale(f.value);function re(J,ie){if(n.unlinkPanels&&ie){const Y=(J==null?void 0:J.year())||0,ye=(J==null?void 0:J.month())||0,Fe=ie.year(),lt=ie.month();v.value=Y===Fe&&ye===lt?ie.add(1,es):ie}else v.value=h.value.add(1,es),ie&&(v.value=v.value.hour(ie.hour()).minute(ie.minute()).second(ie.second()))}return t("set-picker-option",["isValidValue",ne]),t("set-picker-option",["parseUserInput",Wt]),t("set-picker-option",["formatToString",sn]),t("set-picker-option",["handleClear",mt]),(J,ie)=>(_(),M("div",{class:$([o(g).b(),o(x).b(),{"has-sidebar":J.$slots.sidebar||o(D),"has-time":o($e)}])},[k("div",{class:$(o(g).e("body-wrapper"))},[Q(J.$slots,"sidebar",{class:$(o(g).e("sidebar"))}),o(D)?(_(),M("div",{key:0,class:$(o(g).e("sidebar"))},[(_(!0),M(ze,null,rt(o(c),(Y,ye)=>(_(),M("button",{key:ye,type:"button",class:$(o(g).e("shortcut")),onClick:Fe=>o(S)(Y)},he(Y.text),11,["onClick"]))),128))],2)):ee("v-if",!0),k("div",{class:$(o(g).e("body"))},[o($e)?(_(),M("div",{key:0,class:$(o(x).e("time-header"))},[k("span",{class:$(o(x).e("editors-wrap"))},[k("span",{class:$(o(x).e("time-picker-wrap"))},[q(o(Cn),{size:"small",disabled:o(y).selecting,placeholder:o(I)("el.datepicker.startDate"),class:$(o(x).e("editor")),"model-value":o(B),"validate-event":!1,onInput:Y=>be(Y,"min"),onChange:Y=>je(Y,"min")},null,8,["disabled","placeholder","class","model-value","onInput","onChange"])],2),qe((_(),M("span",{class:$(o(x).e("time-picker-wrap"))},[q(o(Cn),{size:"small",class:$(o(x).e("editor")),disabled:o(y).selecting,placeholder:o(I)("el.datepicker.startTime"),"model-value":o(F),"validate-event":!1,onFocus:Y=>He.value=!0,onInput:Y=>ft(Y,"min"),onChange:Y=>Tt(Y,"min")},null,8,["class","disabled","placeholder","model-value","onFocus","onInput","onChange"]),q(o(Ks),{visible:He.value,format:o(Z),"datetime-role":"start","parsed-value":h.value,onPick:bt},null,8,["visible","format","parsed-value"])],2)),[[o(Fa),at]])],2),k("span",null,[q(o(Me),null,{default:G(()=>[q(o(En))]),_:1})]),k("span",{class:$([o(x).e("editors-wrap"),"is-right"])},[k("span",{class:$(o(x).e("time-picker-wrap"))},[q(o(Cn),{size:"small",class:$(o(x).e("editor")),disabled:o(y).selecting,placeholder:o(I)("el.datepicker.endDate"),"model-value":o(z),readonly:!o(m),"validate-event":!1,onInput:Y=>be(Y,"max"),onChange:Y=>je(Y,"max")},null,8,["class","disabled","placeholder","model-value","readonly","onInput","onChange"])],2),qe((_(),M("span",{class:$(o(x).e("time-picker-wrap"))},[q(o(Cn),{size:"small",class:$(o(x).e("editor")),disabled:o(y).selecting,placeholder:o(I)("el.datepicker.endTime"),"model-value":o(W),readonly:!o(m),"validate-event":!1,onFocus:Y=>o(m)&&(Ge.value=!0),onInput:Y=>ft(Y,"max"),onChange:Y=>Tt(Y,"max")},null,8,["class","disabled","placeholder","model-value","readonly","onFocus","onInput","onChange"]),q(o(Ks),{"datetime-role":"end",visible:Ge.value,format:o(Z),"parsed-value":v.value,onPick:Pt},null,8,["visible","format","parsed-value"])],2)),[[o(Fa),nt]])],2)],2)):ee("v-if",!0),k("div",{class:$([[o(g).e("content"),o(x).e("content")],"is-left"])},[k("div",{class:$(o(x).e("header"))},[k("button",{type:"button",class:$([o(g).e("icon-btn"),"d-arrow-left"]),"aria-label":o(I)("el.datepicker.prevYear"),onClick:oe},[Q(J.$slots,"prev-year",{},()=>[q(o(Me),null,{default:G(()=>[q(o(Ra))]),_:1})])],10,["aria-label"]),k("button",{type:"button",class:$([o(g).e("icon-btn"),"arrow-left"]),"aria-label":o(I)("el.datepicker.prevMonth"),onClick:ce},[Q(J.$slots,"prev-month",{},()=>[q(o(Me),null,{default:G(()=>[q(o(La))]),_:1})])],10,["aria-label"]),J.unlinkPanels?(_(),M("button",{key:0,type:"button",disabled:!o(De),class:$([[o(g).e("icon-btn"),{"is-disabled":!o(De)}],"d-arrow-right"]),"aria-label":o(I)("el.datepicker.nextYear"),onClick:fe},[Q(J.$slots,"next-year",{},()=>[q(o(Me),null,{default:G(()=>[q(o(Ba))]),_:1})])],10,["disabled","aria-label"])):ee("v-if",!0),J.unlinkPanels?(_(),M("button",{key:1,type:"button",disabled:!o(Le),class:$([[o(g).e("icon-btn"),{"is-disabled":!o(Le)}],"arrow-right"]),"aria-label":o(I)("el.datepicker.nextMonth"),onClick:xe},[Q(J.$slots,"next-month",{},()=>[q(o(Me),null,{default:G(()=>[q(o(En))]),_:1})])],10,["disabled","aria-label"])):ee("v-if",!0),k("div",null,he(o(L)),1)],2),q(Gu,{"selection-mode":"range",date:h.value,"min-date":o(m),"max-date":o(p),"range-state":o(y),"disabled-date":o(l),"cell-class-name":o(r),onChangerange:o(w),onPick:ke,onSelect:o(E)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2),k("div",{class:$([[o(g).e("content"),o(x).e("content")],"is-right"])},[k("div",{class:$(o(x).e("header"))},[J.unlinkPanels?(_(),M("button",{key:0,type:"button",disabled:!o(De),class:$([[o(g).e("icon-btn"),{"is-disabled":!o(De)}],"d-arrow-left"]),"aria-label":o(I)("el.datepicker.prevYear"),onClick:me},[Q(J.$slots,"prev-year",{},()=>[q(o(Me),null,{default:G(()=>[q(o(Ra))]),_:1})])],10,["disabled","aria-label"])):ee("v-if",!0),J.unlinkPanels?(_(),M("button",{key:1,type:"button",disabled:!o(Le),class:$([[o(g).e("icon-btn"),{"is-disabled":!o(Le)}],"arrow-left"]),"aria-label":o(I)("el.datepicker.prevMonth"),onClick:le},[Q(J.$slots,"prev-month",{},()=>[q(o(Me),null,{default:G(()=>[q(o(La))]),_:1})])],10,["disabled","aria-label"])):ee("v-if",!0),k("button",{type:"button","aria-label":o(I)("el.datepicker.nextYear"),class:$([o(g).e("icon-btn"),"d-arrow-right"]),onClick:te},[Q(J.$slots,"next-year",{},()=>[q(o(Me),null,{default:G(()=>[q(o(Ba))]),_:1})])],10,["aria-label"]),k("button",{type:"button",class:$([o(g).e("icon-btn"),"arrow-right"]),"aria-label":o(I)("el.datepicker.nextMonth"),onClick:se},[Q(J.$slots,"next-month",{},()=>[q(o(Me),null,{default:G(()=>[q(o(En))]),_:1})])],10,["aria-label"]),k("div",null,he(o(R)),1)],2),q(Gu,{"selection-mode":"range",date:v.value,"min-date":o(m),"max-date":o(p),"range-state":o(y),"disabled-date":o(l),"cell-class-name":o(r),onChangerange:o(w),onPick:ke,onSelect:o(E)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2)],2)],2),o($e)?(_(),M("div",{key:0,class:$(o(g).e("footer"))},[o(i)?(_(),ae(o(en),{key:0,text:"",size:"small",class:$(o(g).e("link-btn")),onClick:mt},{default:G(()=>[ot(he(o(I)("el.datepicker.clear")),1)]),_:1},8,["class"])):ee("v-if",!0),q(o(en),{plain:"",size:"small",class:$(o(g).e("link-btn")),disabled:o(Ye),onClick:Y=>o(b)(!1)},{default:G(()=>[ot(he(o(I)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled","onClick"])],2)):ee("v-if",!0)],2))}});var QA=ve(JA,[["__file","panel-date-range.vue"]]);const eV=pe({...Ad}),tV=["pick","set-picker-option","calendar-change"],nV=({unlinkPanels:e,leftDate:t,rightDate:n})=>{const{t:a}=ct(),l=()=>{t.value=t.value.subtract(1,"year"),e.value||(n.value=n.value.subtract(1,"year"))},r=()=>{e.value||(t.value=t.value.add(1,"year")),n.value=n.value.add(1,"year")},s=()=>{t.value=t.value.add(1,"year")},i=()=>{n.value=n.value.subtract(1,"year")},u=C(()=>`${t.value.year()} ${a("el.datepicker.year")}`),c=C(()=>`${n.value.year()} ${a("el.datepicker.year")}`),d=C(()=>t.value.year()),f=C(()=>n.value.year()===t.value.year()?t.value.year()+1:n.value.year());return{leftPrevYear:l,rightNextYear:r,leftNextYear:s,rightPrevYear:i,leftLabel:u,rightLabel:c,leftYear:d,rightYear:f}},ts="year",aV=T({name:"DatePickerMonthRange"}),lV=T({...aV,props:eV,emits:tV,setup(e,{emit:t}){const n=e,{lang:a}=ct(),l=Se("EP_PICKER_BASE"),{shortcuts:r,disabledDate:s}=l.props,i=yt(l.props,"format"),u=yt(l.props,"defaultValue"),c=A(Be().locale(a.value)),d=A(Be().locale(a.value).add(1,ts)),{minDate:f,maxDate:h,rangeState:v,ppNs:m,drpNs:p,handleChangeRange:y,handleRangeConfirm:g,handleShortcutClick:x,onSelect:w}=wh(n,{defaultValue:u,leftDate:c,rightDate:d,unit:ts,onParsedValueChanged:B}),b=C(()=>!!r.length),{leftPrevYear:S,rightNextYear:E,leftNextYear:O,rightPrevYear:I,leftLabel:N,rightLabel:P,leftYear:L,rightYear:R}=nV({unlinkPanels:yt(n,"unlinkPanels"),leftDate:c,rightDate:d}),K=C(()=>n.unlinkPanels&&R.value>L.value+1),U=(z,F=!0)=>{const W=z.minDate,Z=z.maxDate;h.value===Z&&f.value===W||(t("calendar-change",[W.toDate(),Z&&Z.toDate()]),h.value=Z,f.value=W,F&&g())},H=()=>{c.value=Ld(o(u),{lang:o(a),unit:"year",unlinkPanels:n.unlinkPanels})[0],d.value=c.value.add(1,"year"),t("pick",null)},V=z=>Ee(z)?z.map(F=>F.format(i.value)):z.format(i.value),D=z=>Ee(z)?z.map(F=>Be(F,i.value).locale(a.value)):Be(z,i.value).locale(a.value);function B(z,F){if(n.unlinkPanels&&F){const W=(z==null?void 0:z.year())||0,Z=F.year();d.value=W===Z?F.add(1,ts):F}else d.value=c.value.add(1,ts)}return t("set-picker-option",["isValidValue",_o]),t("set-picker-option",["formatToString",V]),t("set-picker-option",["parseUserInput",D]),t("set-picker-option",["handleClear",H]),(z,F)=>(_(),M("div",{class:$([o(m).b(),o(p).b(),{"has-sidebar":!!z.$slots.sidebar||o(b)}])},[k("div",{class:$(o(m).e("body-wrapper"))},[Q(z.$slots,"sidebar",{class:$(o(m).e("sidebar"))}),o(b)?(_(),M("div",{key:0,class:$(o(m).e("sidebar"))},[(_(!0),M(ze,null,rt(o(r),(W,Z)=>(_(),M("button",{key:Z,type:"button",class:$(o(m).e("shortcut")),onClick:j=>o(x)(W)},he(W.text),11,["onClick"]))),128))],2)):ee("v-if",!0),k("div",{class:$(o(m).e("body"))},[k("div",{class:$([[o(m).e("content"),o(p).e("content")],"is-left"])},[k("div",{class:$(o(p).e("header"))},[k("button",{type:"button",class:$([o(m).e("icon-btn"),"d-arrow-left"]),onClick:o(S)},[Q(z.$slots,"prev-year",{},()=>[q(o(Me),null,{default:G(()=>[q(o(Ra))]),_:1})])],10,["onClick"]),z.unlinkPanels?(_(),M("button",{key:0,type:"button",disabled:!o(K),class:$([[o(m).e("icon-btn"),{[o(m).is("disabled")]:!o(K)}],"d-arrow-right"]),onClick:o(O)},[Q(z.$slots,"next-year",{},()=>[q(o(Me),null,{default:G(()=>[q(o(Ba))]),_:1})])],10,["disabled","onClick"])):ee("v-if",!0),k("div",null,he(o(N)),1)],2),q(Xu,{"selection-mode":"range",date:c.value,"min-date":o(f),"max-date":o(h),"range-state":o(v),"disabled-date":o(s),onChangerange:o(y),onPick:U,onSelect:o(w)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2),k("div",{class:$([[o(m).e("content"),o(p).e("content")],"is-right"])},[k("div",{class:$(o(p).e("header"))},[z.unlinkPanels?(_(),M("button",{key:0,type:"button",disabled:!o(K),class:$([[o(m).e("icon-btn"),{"is-disabled":!o(K)}],"d-arrow-left"]),onClick:o(I)},[Q(z.$slots,"prev-year",{},()=>[q(o(Me),null,{default:G(()=>[q(o(Ra))]),_:1})])],10,["disabled","onClick"])):ee("v-if",!0),k("button",{type:"button",class:$([o(m).e("icon-btn"),"d-arrow-right"]),onClick:o(E)},[Q(z.$slots,"next-year",{},()=>[q(o(Me),null,{default:G(()=>[q(o(Ba))]),_:1})])],10,["onClick"]),k("div",null,he(o(P)),1)],2),q(Xu,{"selection-mode":"range",date:d.value,"min-date":o(f),"max-date":o(h),"range-state":o(v),"disabled-date":o(s),onChangerange:o(y),onPick:U,onSelect:o(w)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2)],2)],2)],2))}});var oV=ve(lV,[["__file","panel-month-range.vue"]]);const rV=pe({...Ad}),sV=["pick","set-picker-option","calendar-change"],iV=({unlinkPanels:e,leftDate:t,rightDate:n})=>{const a=()=>{t.value=t.value.subtract(10,"year"),e.value||(n.value=n.value.subtract(10,"year"))},l=()=>{e.value||(t.value=t.value.add(10,"year")),n.value=n.value.add(10,"year")},r=()=>{t.value=t.value.add(10,"year")},s=()=>{n.value=n.value.subtract(10,"year")},i=C(()=>{const f=Math.floor(t.value.year()/10)*10;return`${f}-${f+9}`}),u=C(()=>{const f=Math.floor(n.value.year()/10)*10;return`${f}-${f+9}`}),c=C(()=>Math.floor(t.value.year()/10)*10+9),d=C(()=>Math.floor(n.value.year()/10)*10);return{leftPrevYear:a,rightNextYear:l,leftNextYear:r,rightPrevYear:s,leftLabel:i,rightLabel:u,leftYear:c,rightYear:d}},C2="year",uV=T({name:"DatePickerYearRange"}),cV=T({...uV,props:rV,emits:sV,setup(e,{emit:t}){const n=e,{lang:a}=ct(),l=A(Be().locale(a.value)),r=A(l.value.add(10,"year")),{pickerNs:s}=Se(Oi),i=de("date-range-picker"),u=C(()=>!!U.length),c=C(()=>[s.b(),i.b(),{"has-sidebar":!!Xt().sidebar||u.value}]),d=C(()=>({content:[s.e("content"),i.e("content"),"is-left"],arrowLeftBtn:[s.e("icon-btn"),"d-arrow-left"],arrowRightBtn:[s.e("icon-btn"),{[s.is("disabled")]:!S.value},"d-arrow-right"]})),f=C(()=>({content:[s.e("content"),i.e("content"),"is-right"],arrowLeftBtn:[s.e("icon-btn"),{"is-disabled":!S.value},"d-arrow-left"],arrowRightBtn:[s.e("icon-btn"),"d-arrow-right"]})),h=bh(a),{leftPrevYear:v,rightNextYear:m,leftNextYear:p,rightPrevYear:y,leftLabel:g,rightLabel:x,leftYear:w,rightYear:b}=iV({unlinkPanels:yt(n,"unlinkPanels"),leftDate:l,rightDate:r}),S=C(()=>n.unlinkPanels&&b.value>w.value+1),E=A(),O=A(),I=A({endDate:null,selecting:!1}),N=j=>{I.value=j},P=(j,ne=!0)=>{const oe=j.minDate,ce=j.maxDate;O.value===ce&&E.value===oe||(t("calendar-change",[oe.toDate(),ce&&ce.toDate()]),O.value=ce,E.value=oe,ne&&L())},L=(j=!1)=>{_o([E.value,O.value])&&t("pick",[E.value,O.value],j)},R=j=>{I.value.selecting=j,j||(I.value.endDate=null)},K=Se("EP_PICKER_BASE"),{shortcuts:U,disabledDate:H}=K.props,V=yt(K.props,"format"),D=yt(K.props,"defaultValue"),B=()=>{let j;if(Ee(D.value)){const ne=Be(D.value[0]);let oe=Be(D.value[1]);return n.unlinkPanels||(oe=ne.add(10,C2)),[ne,oe]}else D.value?j=Be(D.value):j=Be();return j=j.locale(a.value),[j,j.add(10,C2)]};ue(()=>D.value,j=>{if(j){const ne=B();l.value=ne[0],r.value=ne[1]}},{immediate:!0}),ue(()=>n.parsedValue,j=>{if(j&&j.length===2)if(E.value=j[0],O.value=j[1],l.value=E.value,n.unlinkPanels&&O.value){const ne=E.value.year(),oe=O.value.year();r.value=ne===oe?O.value.add(10,"year"):O.value}else r.value=l.value.add(10,"year");else{const ne=B();E.value=void 0,O.value=void 0,l.value=ne[0],r.value=ne[1]}},{immediate:!0});const z=j=>Ee(j)?j.map(ne=>Be(ne,V.value).locale(a.value)):Be(j,V.value).locale(a.value),F=j=>Ee(j)?j.map(ne=>ne.format(V.value)):j.format(V.value),W=j=>_o(j)&&(H?!H(j[0].toDate())&&!H(j[1].toDate()):!0),Z=()=>{const j=B();l.value=j[0],r.value=j[1],O.value=void 0,E.value=void 0,t("pick",null)};return t("set-picker-option",["isValidValue",W]),t("set-picker-option",["parseUserInput",z]),t("set-picker-option",["formatToString",F]),t("set-picker-option",["handleClear",Z]),(j,ne)=>(_(),M("div",{class:$(o(c))},[k("div",{class:$(o(s).e("body-wrapper"))},[Q(j.$slots,"sidebar",{class:$(o(s).e("sidebar"))}),o(u)?(_(),M("div",{key:0,class:$(o(s).e("sidebar"))},[(_(!0),M(ze,null,rt(o(U),(oe,ce)=>(_(),M("button",{key:ce,type:"button",class:$(o(s).e("shortcut")),onClick:te=>o(h)(oe)},he(oe.text),11,["onClick"]))),128))],2)):ee("v-if",!0),k("div",{class:$(o(s).e("body"))},[k("div",{class:$(o(d).content)},[k("div",{class:$(o(i).e("header"))},[k("button",{type:"button",class:$(o(d).arrowLeftBtn),onClick:o(v)},[Q(j.$slots,"prev-year",{},()=>[q(o(Me),null,{default:G(()=>[q(o(Ra))]),_:1})])],10,["onClick"]),j.unlinkPanels?(_(),M("button",{key:0,type:"button",disabled:!o(S),class:$(o(d).arrowRightBtn),onClick:o(p)},[Q(j.$slots,"next-year",{},()=>[q(o(Me),null,{default:G(()=>[q(o(Ba))]),_:1})])],10,["disabled","onClick"])):ee("v-if",!0),k("div",null,he(o(g)),1)],2),q(Zu,{"selection-mode":"range",date:l.value,"min-date":E.value,"max-date":O.value,"range-state":I.value,"disabled-date":o(H),onChangerange:N,onPick:P,onSelect:R},null,8,["date","min-date","max-date","range-state","disabled-date"])],2),k("div",{class:$(o(f).content)},[k("div",{class:$(o(i).e("header"))},[j.unlinkPanels?(_(),M("button",{key:0,type:"button",disabled:!o(S),class:$(o(f).arrowLeftBtn),onClick:o(y)},[Q(j.$slots,"prev-year",{},()=>[q(o(Me),null,{default:G(()=>[q(o(Ra))]),_:1})])],10,["disabled","onClick"])):ee("v-if",!0),k("button",{type:"button",class:$(o(f).arrowRightBtn),onClick:o(m)},[Q(j.$slots,"next-year",{},()=>[q(o(Me),null,{default:G(()=>[q(o(Ba))]),_:1})])],10,["onClick"]),k("div",null,he(o(x)),1)],2),q(Zu,{"selection-mode":"range",date:r.value,"min-date":E.value,"max-date":O.value,"range-state":I.value,"disabled-date":o(H),onChangerange:N,onPick:P,onSelect:R},null,8,["date","min-date","max-date","range-state","disabled-date"])],2)],2)],2)],2))}});var dV=ve(cV,[["__file","panel-year-range.vue"]]);const fV=function(e){switch(e){case"daterange":case"datetimerange":return QA;case"monthrange":return oV;case"yearrange":return dV;default:return XA}};Be.extend(Hv);Be.extend(Xz);Be.extend(Id);Be.extend(eA);Be.extend(lA);Be.extend(iA);Be.extend(fA);Be.extend(mA);var pV=T({name:"ElDatePicker",install:null,props:AA,emits:["update:modelValue"],setup(e,{expose:t,emit:n,slots:a}){const l=de("picker-panel");it("ElPopperOptions",_t(yt(e,"popperOptions"))),it(Oi,{slots:a,pickerNs:l});const r=A();t({focus:()=>{var u;(u=r.value)==null||u.focus()},blur:()=>{var u;(u=r.value)==null||u.blur()},handleOpen:()=>{var u;(u=r.value)==null||u.handleOpen()},handleClose:()=>{var u;(u=r.value)==null||u.handleClose()}});const i=u=>{n("update:modelValue",u)};return()=>{var u;const c=(u=e.format)!=null?u:gA[e.type]||Xl,d=fV(e.type);return q(vh,tt(e,{format:c,type:e.type,ref:r,"onUpdate:modelValue":i}),{default:f=>q(d,f,{"prev-month":a["prev-month"],"next-month":a["next-month"],"prev-year":a["prev-year"],"next-year":a["next-year"]}),"range-separator":a["range-separator"]})}}});const vV=We(pV),Bd=Symbol("elDescriptions");var jo=T({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String,default:"td"},type:{type:String}},setup(){return{descriptions:Se(Bd,{})}},render(){var e;const t=dI(this.cell),n=(((e=this.cell)==null?void 0:e.dirs)||[]).map(g=>{const{dir:x,arg:w,modifiers:b,value:S}=g;return[x,S,w,b]}),{border:a,direction:l}=this.descriptions,r=l==="vertical",s=()=>{var g,x,w;return((w=(x=(g=this.cell)==null?void 0:g.children)==null?void 0:x.label)==null?void 0:w.call(x))||t.label},i=()=>{var g,x,w;return(w=(x=(g=this.cell)==null?void 0:g.children)==null?void 0:x.default)==null?void 0:w.call(x)},u=t.span,c=t.rowspan,d=t.align?`is-${t.align}`:"",f=t.labelAlign?`is-${t.labelAlign}`:d,h=t.className,v=t.labelClassName,m=this.type==="label"&&(t.labelWidth||this.descriptions.labelWidth)||t.width,p={width:Rt(m),minWidth:Rt(t.minWidth)},y=de("descriptions");switch(this.type){case"label":return qe(Pe(this.tag,{style:p,class:[y.e("cell"),y.e("label"),y.is("bordered-label",a),y.is("vertical-label",r),f,v],colSpan:r?u:1,rowspan:r?1:c},s()),n);case"content":return qe(Pe(this.tag,{style:p,class:[y.e("cell"),y.e("content"),y.is("bordered-content",a),y.is("vertical-content",r),d,h],colSpan:r?u:u*2-1,rowspan:r?c*2-1:c},i()),n);default:{const g=s(),x={},w=Rt(t.labelWidth||this.descriptions.labelWidth);return w&&(x.width=w,x.display="inline-block"),qe(Pe("td",{style:p,class:[y.e("cell"),d],colSpan:u,rowspan:c},[Zt(g)?void 0:Pe("span",{style:x,class:[y.e("label"),v]},g),Pe("span",{class:[y.e("content"),h]},i())]),n)}}}});const hV=pe({row:{type:X(Array),default:()=>[]}}),mV=T({name:"ElDescriptionsRow"}),gV=T({...mV,props:hV,setup(e){const t=Se(Bd,{});return(n,a)=>o(t).direction==="vertical"?(_(),M(ze,{key:0},[k("tr",null,[(_(!0),M(ze,null,rt(n.row,(l,r)=>(_(),ae(o(jo),{key:`tr1-${r}`,cell:l,tag:"th",type:"label"},null,8,["cell"]))),128))]),k("tr",null,[(_(!0),M(ze,null,rt(n.row,(l,r)=>(_(),ae(o(jo),{key:`tr2-${r}`,cell:l,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):(_(),M("tr",{key:1},[(_(!0),M(ze,null,rt(n.row,(l,r)=>(_(),M(ze,{key:`tr3-${r}`},[o(t).border?(_(),M(ze,{key:0},[q(o(jo),{cell:l,tag:"td",type:"label"},null,8,["cell"]),q(o(jo),{cell:l,tag:"td",type:"content"},null,8,["cell"])],64)):(_(),ae(o(jo),{key:1,cell:l,tag:"td",type:"both"},null,8,["cell"]))],64))),128))]))}});var yV=ve(gV,[["__file","descriptions-row.vue"]]);const _V=pe({border:Boolean,column:{type:Number,default:3},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},size:qt,title:{type:String,default:""},extra:{type:String,default:""},labelWidth:{type:[String,Number],default:""}}),bV=T({name:"ElDescriptions"}),wV=T({...bV,props:_V,setup(e){const t=e,n=de("descriptions"),a=jt(),l=Xt();it(Bd,t);const r=C(()=>[n.b(),n.m(a.value)]),s=(u,c,d,f=!1)=>(u.props||(u.props={}),c>d&&(u.props.span=d),f&&(u.props.span=c),u),i=()=>{if(!l.default)return[];const u=ll(l.default()).filter(m=>{var p;return((p=m==null?void 0:m.type)==null?void 0:p.name)==="ElDescriptionsItem"}),c=[];let d=[],f=t.column,h=0;const v=[];return u.forEach((m,p)=>{var y,g,x;const w=((y=m.props)==null?void 0:y.span)||1,b=((g=m.props)==null?void 0:g.rowspan)||1,S=c.length;if(v[S]||(v[S]=0),b>1)for(let E=1;E0&&(f-=v[S],v[S]=0),pf?f:w),p===u.length-1){const E=t.column-h%t.column;d.push(s(m,E,f,!0)),c.push(d);return}w(_(),M("div",{class:$(o(r))},[u.title||u.extra||u.$slots.title||u.$slots.extra?(_(),M("div",{key:0,class:$(o(n).e("header"))},[k("div",{class:$(o(n).e("title"))},[Q(u.$slots,"title",{},()=>[ot(he(u.title),1)])],2),k("div",{class:$(o(n).e("extra"))},[Q(u.$slots,"extra",{},()=>[ot(he(u.extra),1)])],2)],2)):ee("v-if",!0),k("div",{class:$(o(n).e("body"))},[k("table",{class:$([o(n).e("table"),o(n).is("bordered",u.border)])},[k("tbody",null,[(_(!0),M(ze,null,rt(i(),(d,f)=>(_(),ae(yV,{key:f,row:d},null,8,["row"]))),128))])],2)],2)],2))}});var CV=ve(wV,[["__file","description.vue"]]);const SV=pe({label:{type:String,default:""},span:{type:Number,default:1},rowspan:{type:Number,default:1},width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},labelWidth:{type:[String,Number],default:""},align:{type:String,default:"left"},labelAlign:{type:String,default:""},className:{type:String,default:""},labelClassName:{type:String,default:""}}),Ch=T({name:"ElDescriptionsItem",props:SV}),kV=We(CV,{DescriptionsItem:Ch}),EV=Lt(Ch),Hd=e=>{if(!e)return{onClick:zt,onMousedown:zt,onMouseup:zt};let t=!1,n=!1;return{onClick:s=>{t&&n&&e(s),t=n=!1},onMousedown:s=>{t=s.target===s.currentTarget},onMouseup:s=>{n=s.target===s.currentTarget}}},xV=pe({mask:{type:Boolean,default:!0},customMaskEvent:Boolean,overlayClass:{type:X([String,Array,Object])},zIndex:{type:X([String,Number])}}),MV={click:e=>e instanceof MouseEvent},$V="overlay";var TV=T({name:"ElOverlay",props:xV,emits:MV,setup(e,{slots:t,emit:n}){const a=de($V),l=u=>{n("click",u)},{onClick:r,onMousedown:s,onMouseup:i}=Hd(e.customMaskEvent?void 0:l);return()=>e.mask?q("div",{class:[a.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:r,onMousedown:s,onMouseup:i},[Q(t,"default")],Kn.STYLE|Kn.CLASS|Kn.PROPS,["onClick","onMouseup","onMousedown"]):Pe("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[Q(t,"default")])}});const Dd=TV,Sh=Symbol("dialogInjectionKey"),kh=pe({center:Boolean,alignCenter:Boolean,closeIcon:{type:St},draggable:Boolean,overflow:Boolean,fullscreen:Boolean,headerClass:String,bodyClass:String,footerClass:String,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),OV={close:()=>!0},Eh=(e,t,n,a)=>{let l={offsetX:0,offsetY:0};const r=c=>{const d=c.clientX,f=c.clientY,{offsetX:h,offsetY:v}=l,m=e.value.getBoundingClientRect(),p=m.left,y=m.top,g=m.width,x=m.height,w=document.documentElement.clientWidth,b=document.documentElement.clientHeight,S=-p+h,E=-y+v,O=w-p-g+h,I=b-y-x+v,N=L=>{let R=h+L.clientX-d,K=v+L.clientY-f;a!=null&&a.value||(R=Math.min(Math.max(R,S),O),K=Math.min(Math.max(K,E),I)),l={offsetX:R,offsetY:K},e.value&&(e.value.style.transform=`translate(${Rt(R)}, ${Rt(K)})`)},P=()=>{document.removeEventListener("mousemove",N),document.removeEventListener("mouseup",P)};document.addEventListener("mousemove",N),document.addEventListener("mouseup",P)},s=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",r)},i=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",r)},u=()=>{l={offsetX:0,offsetY:0},e.value&&(e.value.style.transform="none")};return Xe(()=>{cn(()=>{n.value?s():i()})}),$t(()=>{i()}),{resetPosition:u}},Ni=(...e)=>t=>{e.forEach(n=>{Je(n)?n(t):n.value=t})},NV=T({name:"ElDialogContent"}),IV=T({...NV,props:kh,emits:OV,setup(e,{expose:t}){const n=e,{t:a}=ct(),{Close:l}=dd,{dialogRef:r,headerRef:s,bodyId:i,ns:u,style:c}=Se(Sh),{focusTrapRef:d}=Se(gd),f=C(()=>[u.b(),u.is("fullscreen",n.fullscreen),u.is("draggable",n.draggable),u.is("align-center",n.alignCenter),{[u.m("center")]:n.center}]),h=Ni(d,r),v=C(()=>n.draggable),m=C(()=>n.overflow),{resetPosition:p}=Eh(r,s,v,m);return t({resetPosition:p}),(y,g)=>(_(),M("div",{ref:o(h),class:$(o(f)),style:Oe(o(c)),tabindex:"-1"},[k("header",{ref_key:"headerRef",ref:s,class:$([o(u).e("header"),y.headerClass,{"show-close":y.showClose}])},[Q(y.$slots,"header",{},()=>[k("span",{role:"heading","aria-level":y.ariaLevel,class:$(o(u).e("title"))},he(y.title),11,["aria-level"])]),y.showClose?(_(),M("button",{key:0,"aria-label":o(a)("el.dialog.close"),class:$(o(u).e("headerbtn")),type:"button",onClick:x=>y.$emit("close")},[q(o(Me),{class:$(o(u).e("close"))},{default:G(()=>[(_(),ae(Qe(y.closeIcon||o(l))))]),_:1},8,["class"])],10,["aria-label","onClick"])):ee("v-if",!0)],2),k("div",{id:o(i),class:$([o(u).e("body"),y.bodyClass])},[Q(y.$slots,"default")],10,["id"]),y.$slots.footer?(_(),M("footer",{key:0,class:$([o(u).e("footer"),y.footerClass])},[Q(y.$slots,"footer")],2)):ee("v-if",!0)],6))}});var PV=ve(IV,[["__file","dialog-content.vue"]]);const xh=pe({...kh,appendToBody:Boolean,appendTo:{type:X([String,Object]),default:"body"},beforeClose:{type:X(Function)},destroyOnClose:Boolean,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:Boolean,modalClass:String,headerClass:String,bodyClass:String,footerClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:Boolean,headerAriaLevel:{type:String,default:"2"}}),Mh={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[Ue]:e=>Et(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},Fd=(e,t={})=>{Sn(e)||Gt("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||de("popup"),a=C(()=>n.bm("parent","hidden"));if(!ut||An(document.body,a.value))return;let l=0,r=!1,s="0";const i=()=>{setTimeout(()=>{typeof document>"u"||r&&document&&(document.body.style.width=s,kn(document.body,a.value))},200)};ue(e,u=>{if(!u){i();return}r=!An(document.body,a.value),r&&(s=document.body.style.width,jn(document.body,a.value)),l=I1(n.namespace.value);const c=document.documentElement.clientHeight0&&(c||d==="scroll")&&r&&(document.body.style.width=`calc(100% - ${l}px)`)}),Sp(()=>i())},$h=(e,t)=>{var n;const l=et().emit,{nextZIndex:r}=Io();let s="";const i=on(),u=on(),c=A(!1),d=A(!1),f=A(!1),h=A((n=e.zIndex)!=null?n:r());let v,m;const p=yi("namespace",Zo),y=C(()=>{const H={},V=`--${p.value}-dialog`;return e.fullscreen||(e.top&&(H[`${V}-margin-top`]=e.top),e.width&&(H[`${V}-width`]=Rt(e.width))),H}),g=C(()=>e.alignCenter?{display:"flex"}:{});function x(){l("opened")}function w(){l("closed"),l(Ue,!1),e.destroyOnClose&&(f.value=!1)}function b(){l("close")}function S(){m==null||m(),v==null||v(),e.openDelay&&e.openDelay>0?{stop:v}=Nl(()=>N(),e.openDelay):N()}function E(){v==null||v(),m==null||m(),e.closeDelay&&e.closeDelay>0?{stop:m}=Nl(()=>P(),e.closeDelay):P()}function O(){function H(V){V||(d.value=!0,c.value=!1)}e.beforeClose?e.beforeClose(H):E()}function I(){e.closeOnClickModal&&O()}function N(){ut&&(c.value=!0)}function P(){c.value=!1}function L(){l("openAutoFocus")}function R(){l("closeAutoFocus")}function K(H){var V;((V=H.detail)==null?void 0:V.focusReason)==="pointer"&&H.preventDefault()}e.lockScroll&&Fd(c);function U(){e.closeOnPressEscape&&O()}return ue(()=>e.modelValue,H=>{H?(d.value=!1,S(),f.value=!0,h.value=v1(e.zIndex)?r():h.value++,Ne(()=>{l("open"),t.value&&(t.value.parentElement.scrollTop=0,t.value.parentElement.scrollLeft=0,t.value.scrollTop=0)})):c.value&&E()}),ue(()=>e.fullscreen,H=>{t.value&&(H?(s=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=s)}),Xe(()=>{e.modelValue&&(c.value=!0,f.value=!0,S())}),{afterEnter:x,afterLeave:w,beforeLeave:b,handleClose:O,onModalClick:I,close:E,doClose:P,onOpenAutoFocus:L,onCloseAutoFocus:R,onCloseRequested:U,onFocusoutPrevented:K,titleId:i,bodyId:u,closed:d,style:y,overlayDialogStyle:g,rendered:f,visible:c,zIndex:h}},zV=T({name:"ElDialog",inheritAttrs:!1}),AV=T({...zV,props:xh,emits:Mh,setup(e,{expose:t}){const n=e,a=Xt();nl({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"},C(()=>!!a.title));const l=de("dialog"),r=A(),s=A(),i=A(),{visible:u,titleId:c,bodyId:d,style:f,overlayDialogStyle:h,rendered:v,zIndex:m,afterEnter:p,afterLeave:y,beforeLeave:g,handleClose:x,onModalClick:w,onOpenAutoFocus:b,onCloseAutoFocus:S,onCloseRequested:E,onFocusoutPrevented:O}=$h(n,r);it(Sh,{dialogRef:r,headerRef:s,bodyId:d,ns:l,rendered:v,style:f});const I=Hd(w),N=C(()=>n.draggable&&!n.fullscreen);return t({visible:u,dialogContentRef:i,resetPosition:()=>{var L;(L=i.value)==null||L.resetPosition()}}),(L,R)=>(_(),ae(o(Vo),{to:L.appendTo,disabled:L.appendTo!=="body"?!1:!L.appendToBody},{default:G(()=>[q(tn,{name:"dialog-fade",onAfterEnter:o(p),onAfterLeave:o(y),onBeforeLeave:o(g),persisted:""},{default:G(()=>[qe(q(o(Dd),{"custom-mask-event":"",mask:L.modal,"overlay-class":L.modalClass,"z-index":o(m)},{default:G(()=>[k("div",{role:"dialog","aria-modal":"true","aria-label":L.title||void 0,"aria-labelledby":L.title?void 0:o(c),"aria-describedby":o(d),class:$(`${o(l).namespace.value}-overlay-dialog`),style:Oe(o(h)),onClick:o(I).onClick,onMousedown:o(I).onMousedown,onMouseup:o(I).onMouseup},[q(o(Ao),{loop:"",trapped:o(u),"focus-start-el":"container",onFocusAfterTrapped:o(b),onFocusAfterReleased:o(S),onFocusoutPrevented:o(O),onReleaseRequested:o(E)},{default:G(()=>[o(v)?(_(),ae(PV,tt({key:0,ref_key:"dialogContentRef",ref:i},L.$attrs,{center:L.center,"align-center":L.alignCenter,"close-icon":L.closeIcon,draggable:o(N),overflow:L.overflow,fullscreen:L.fullscreen,"header-class":L.headerClass,"body-class":L.bodyClass,"footer-class":L.footerClass,"show-close":L.showClose,title:L.title,"aria-level":L.headerAriaLevel,onClose:o(x)}),Yn({header:G(()=>[L.$slots.title?Q(L.$slots,"title",{key:1}):Q(L.$slots,"header",{key:0,close:o(x),titleId:o(c),titleClass:o(l).e("title")})]),default:G(()=>[Q(L.$slots,"default")]),_:2},[L.$slots.footer?{name:"footer",fn:G(()=>[Q(L.$slots,"footer")])}:void 0]),1040,["center","align-center","close-icon","draggable","overflow","fullscreen","header-class","body-class","footer-class","show-close","title","aria-level","onClose"])):ee("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,["aria-label","aria-labelledby","aria-describedby","onClick","onMousedown","onMouseup"])]),_:3},8,["mask","overlay-class","z-index"]),[[pt,o(u)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])]),_:3},8,["to","disabled"]))}});var VV=ve(AV,[["__file","dialog.vue"]]);const LV=We(VV),RV=pe({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:X(String),default:"solid"}}),BV=T({name:"ElDivider"}),HV=T({...BV,props:RV,setup(e){const t=e,n=de("divider"),a=C(()=>n.cssVar({"border-style":t.borderStyle}));return(l,r)=>(_(),M("div",{class:$([o(n).b(),o(n).m(l.direction)]),style:Oe(o(a)),role:"separator"},[l.$slots.default&&l.direction!=="vertical"?(_(),M("div",{key:0,class:$([o(n).e("text"),o(n).is(l.contentPosition)])},[Q(l.$slots,"default")],2)):ee("v-if",!0)],6))}});var DV=ve(HV,[["__file","divider.vue"]]);const Th=We(DV),FV=pe({...xh,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},headerAriaLevel:{type:String,default:"2"}}),KV=Mh,WV=T({name:"ElDrawer",inheritAttrs:!1}),jV=T({...WV,props:FV,emits:KV,setup(e,{expose:t}){const n=e,a=Xt();nl({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"},C(()=>!!a.title));const l=A(),r=A(),s=de("drawer"),{t:i}=ct(),{afterEnter:u,afterLeave:c,beforeLeave:d,visible:f,rendered:h,titleId:v,bodyId:m,zIndex:p,onModalClick:y,onOpenAutoFocus:g,onCloseAutoFocus:x,onFocusoutPrevented:w,onCloseRequested:b,handleClose:S}=$h(n,l),E=C(()=>n.direction==="rtl"||n.direction==="ltr"),O=C(()=>Rt(n.size));return t({handleClose:S,afterEnter:u,afterLeave:c}),(I,N)=>(_(),ae(o(Vo),{to:I.appendTo,disabled:I.appendTo!=="body"?!1:!I.appendToBody},{default:G(()=>[q(tn,{name:o(s).b("fade"),onAfterEnter:o(u),onAfterLeave:o(c),onBeforeLeave:o(d),persisted:""},{default:G(()=>[qe(q(o(Dd),{mask:I.modal,"overlay-class":I.modalClass,"z-index":o(p),onClick:o(y)},{default:G(()=>[q(o(Ao),{loop:"",trapped:o(f),"focus-trap-el":l.value,"focus-start-el":r.value,onFocusAfterTrapped:o(g),onFocusAfterReleased:o(x),onFocusoutPrevented:o(w),onReleaseRequested:o(b)},{default:G(()=>[k("div",tt({ref_key:"drawerRef",ref:l,"aria-modal":"true","aria-label":I.title||void 0,"aria-labelledby":I.title?void 0:o(v),"aria-describedby":o(m)},I.$attrs,{class:[o(s).b(),I.direction,o(f)&&"open"],style:o(E)?"width: "+o(O):"height: "+o(O),role:"dialog",onClick:Ae(()=>{},["stop"])}),[k("span",{ref_key:"focusStartRef",ref:r,class:$(o(s).e("sr-focus")),tabindex:"-1"},null,2),I.withHeader?(_(),M("header",{key:0,class:$([o(s).e("header"),I.headerClass])},[I.$slots.title?Q(I.$slots,"title",{key:1},()=>[ee(" DEPRECATED SLOT ")]):Q(I.$slots,"header",{key:0,close:o(S),titleId:o(v),titleClass:o(s).e("title")},()=>[I.$slots.title?ee("v-if",!0):(_(),M("span",{key:0,id:o(v),role:"heading","aria-level":I.headerAriaLevel,class:$(o(s).e("title"))},he(I.title),11,["id","aria-level"]))]),I.showClose?(_(),M("button",{key:2,"aria-label":o(i)("el.drawer.close"),class:$(o(s).e("close-btn")),type:"button",onClick:o(S)},[q(o(Me),{class:$(o(s).e("close"))},{default:G(()=>[q(o(Xn))]),_:1},8,["class"])],10,["aria-label","onClick"])):ee("v-if",!0)],2)):ee("v-if",!0),o(h)?(_(),M("div",{key:1,id:o(m),class:$([o(s).e("body"),I.bodyClass])},[Q(I.$slots,"default")],10,["id"])):ee("v-if",!0),I.$slots.footer?(_(),M("div",{key:2,class:$([o(s).e("footer"),I.footerClass])},[Q(I.$slots,"footer")],2)):ee("v-if",!0)],16,["aria-label","aria-labelledby","aria-describedby","onClick"])]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[pt,o(f)]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])]),_:3},8,["to","disabled"]))}});var qV=ve(jV,[["__file","drawer.vue"]]);const UV=We(qV),YV=T({inheritAttrs:!1});function GV(e,t,n,a,l,r){return Q(e.$slots,"default")}var XV=ve(YV,[["render",GV],["__file","collection.vue"]]);const ZV=T({name:"ElCollectionItem",inheritAttrs:!1});function JV(e,t,n,a,l,r){return Q(e.$slots,"default")}var QV=ve(ZV,[["render",JV],["__file","collection-item.vue"]]);const Oh="data-el-collection-item",Nh=e=>{const t=`El${e}Collection`,n=`${t}Item`,a=Symbol(t),l=Symbol(n),r={...XV,name:t,setup(){const i=A(null),u=new Map;it(a,{itemMap:u,getItems:()=>{const d=o(i);if(!d)return[];const f=Array.from(d.querySelectorAll(`[${Oh}]`));return[...u.values()].sort((v,m)=>f.indexOf(v.ref)-f.indexOf(m.ref))},collectionRef:i})}},s={...QV,name:n,setup(i,{attrs:u}){const c=A(null),d=Se(a,void 0);it(l,{collectionItemRef:c}),Xe(()=>{const f=o(c);f&&d.itemMap.set(f,{ref:f,...u})}),$t(()=>{const f=o(c);d.itemMap.delete(f)})}};return{COLLECTION_INJECTION_KEY:a,COLLECTION_ITEM_INJECTION_KEY:l,ElCollection:r,ElCollectionItem:s}},eL=pe({style:{type:X([String,Array,Object])},currentTabId:{type:X(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:X(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:tL,ElCollectionItem:nL,COLLECTION_INJECTION_KEY:Kd,COLLECTION_ITEM_INJECTION_KEY:aL}=Nh("RovingFocusGroup"),Wd=Symbol("elRovingFocusGroup"),Ih=Symbol("elRovingFocusGroupItem"),lL={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},oL=(e,t)=>e,rL=(e,t,n)=>{const a=oL(e.code);return lL[a]},sL=(e,t)=>e.map((n,a)=>e[(a+t)%e.length]),jd=e=>{const{activeElement:t}=document;for(const n of e)if(n===t||(n.focus(),t!==document.activeElement))return},S2="currentTabIdChange",k2="rovingFocusGroup.entryFocus",iL={bubbles:!1,cancelable:!0},uL=T({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:eL,emits:[S2,"entryFocus"],setup(e,{emit:t}){var n;const a=A((n=e.currentTabId||e.defaultCurrentTabId)!=null?n:null),l=A(!1),r=A(!1),s=A(null),{getItems:i}=Se(Kd,void 0),u=C(()=>[{outline:"none"},e.style]),c=p=>{t(S2,p)},d=()=>{l.value=!0},f=Ht(p=>{var y;(y=e.onMousedown)==null||y.call(e,p)},()=>{r.value=!0}),h=Ht(p=>{var y;(y=e.onFocus)==null||y.call(e,p)},p=>{const y=!o(r),{target:g,currentTarget:x}=p;if(g===x&&y&&!o(l)){const w=new Event(k2,iL);if(x==null||x.dispatchEvent(w),!w.defaultPrevented){const b=i().filter(N=>N.focusable),S=b.find(N=>N.active),E=b.find(N=>N.id===o(a)),I=[S,E,...b].filter(Boolean).map(N=>N.ref);jd(I)}}r.value=!1}),v=Ht(p=>{var y;(y=e.onBlur)==null||y.call(e,p)},()=>{l.value=!1}),m=(...p)=>{t("entryFocus",...p)};it(Wd,{currentTabbedId:oi(a),loop:yt(e,"loop"),tabIndex:C(()=>o(l)?-1:0),rovingFocusGroupRef:s,rovingFocusGroupRootStyle:u,orientation:yt(e,"orientation"),dir:yt(e,"dir"),onItemFocus:c,onItemShiftTab:d,onBlur:v,onFocus:h,onMousedown:f}),ue(()=>e.currentTabId,p=>{a.value=p??null}),wt(s,k2,m)}});function cL(e,t,n,a,l,r){return Q(e.$slots,"default")}var dL=ve(uL,[["render",cL],["__file","roving-focus-group-impl.vue"]]);const fL=T({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:tL,ElRovingFocusGroupImpl:dL}});function pL(e,t,n,a,l,r){const s=Ze("el-roving-focus-group-impl"),i=Ze("el-focus-group-collection");return _(),ae(i,null,{default:G(()=>[q(s,oa(Tl(e.$attrs)),{default:G(()=>[Q(e.$slots,"default")]),_:3},16)]),_:3})}var vL=ve(fL,[["render",pL],["__file","roving-focus-group.vue"]]);const Cs=pe({trigger:pr.trigger,triggerKeys:{type:X(Array),default:()=>[Ce.enter,Ce.numpadEnter,Ce.space,Ce.down]},effect:{...Qt.effect,default:"light"},type:{type:X(String)},placement:{type:X(String),default:"bottom"},popperOptions:{type:X(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:X([Number,String]),default:0},maxHeight:{type:X([Number,String]),default:""},popperClass:{type:String,default:""},disabled:Boolean,role:{type:String,default:"menu"},buttonProps:{type:X(Object)},teleported:Qt.teleported}),Ph=pe({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:St}}),hL=pe({onKeydown:{type:X(Function)}}),mL=[Ce.down,Ce.pageDown,Ce.home],zh=[Ce.up,Ce.pageUp,Ce.end],gL=[...mL,...zh],{ElCollection:yL,ElCollectionItem:_L,COLLECTION_INJECTION_KEY:bL,COLLECTION_ITEM_INJECTION_KEY:wL}=Nh("Dropdown"),Ii=Symbol("elDropdown"),{ButtonGroup:CL}=en,SL=T({name:"ElDropdown",components:{ElButton:en,ElButtonGroup:CL,ElScrollbar:Ta,ElDropdownCollection:yL,ElTooltip:hn,ElRovingFocusGroup:vL,ElOnlyChild:dv,ElIcon:Me,ArrowDown:Ma},props:Cs,emits:["visible-change","click","command"],setup(e,{emit:t}){const n=et(),a=de("dropdown"),{t:l}=ct(),r=A(),s=A(),i=A(null),u=A(null),c=A(null),d=A(null),f=A(!1),h=C(()=>({maxHeight:Rt(e.maxHeight)})),v=C(()=>[a.m(b.value)]),m=C(()=>bn(e.trigger)),p=on().value,y=C(()=>e.id||p);ue([r,m],([V,D],[B])=>{var z,F,W;(z=B==null?void 0:B.$el)!=null&&z.removeEventListener&&B.$el.removeEventListener("pointerenter",E),(F=V==null?void 0:V.$el)!=null&&F.removeEventListener&&V.$el.removeEventListener("pointerenter",E),(W=V==null?void 0:V.$el)!=null&&W.addEventListener&&D.includes("hover")&&V.$el.addEventListener("pointerenter",E)},{immediate:!0}),$t(()=>{var V,D;(D=(V=r.value)==null?void 0:V.$el)!=null&&D.removeEventListener&&r.value.$el.removeEventListener("pointerenter",E)});function g(){x()}function x(){var V;(V=i.value)==null||V.onClose()}function w(){var V;(V=i.value)==null||V.onOpen()}const b=jt();function S(...V){t("command",...V)}function E(){var V,D;(D=(V=r.value)==null?void 0:V.$el)==null||D.focus()}function O(){}function I(){const V=o(u);m.value.includes("hover")&&(V==null||V.focus()),d.value=null}function N(V){d.value=V}function P(V){f.value||(V.preventDefault(),V.stopImmediatePropagation())}function L(){t("visible-change",!0)}function R(V){(V==null?void 0:V.type)==="keydown"&&u.value.focus()}function K(){t("visible-change",!1)}return it(Ii,{contentRef:u,role:C(()=>e.role),triggerId:y,isUsingKeyboard:f,onItemEnter:O,onItemLeave:I}),it("elDropdown",{instance:n,dropdownSize:b,handleClick:g,commandHandler:S,trigger:yt(e,"trigger"),hideOnClick:yt(e,"hideOnClick")}),{t:l,ns:a,scrollbar:c,wrapStyle:h,dropdownTriggerKls:v,dropdownSize:b,triggerId:y,currentTabId:d,handleCurrentTabIdChange:N,handlerMainButtonClick:V=>{t("click",V)},handleEntryFocus:P,handleClose:x,handleOpen:w,handleBeforeShowTooltip:L,handleShowTooltip:R,handleBeforeHideTooltip:K,onFocusAfterTrapped:V=>{var D,B;V.preventDefault(),(B=(D=u.value)==null?void 0:D.focus)==null||B.call(D,{preventScroll:!0})},popperRef:i,contentRef:u,triggeringElementRef:r,referenceElementRef:s}}});function kL(e,t,n,a,l,r){var s;const i=Ze("el-dropdown-collection"),u=Ze("el-roving-focus-group"),c=Ze("el-scrollbar"),d=Ze("el-only-child"),f=Ze("el-tooltip"),h=Ze("el-button"),v=Ze("arrow-down"),m=Ze("el-icon"),p=Ze("el-button-group");return _(),M("div",{class:$([e.ns.b(),e.ns.is("disabled",e.disabled)])},[q(f,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,"hide-after":e.trigger==="hover"?e.hideTimeout:0,"manual-mode":!0,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"reference-element":(s=e.referenceElementRef)==null?void 0:s.$el,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-after":e.trigger==="hover"?e.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":e.triggeringElementRef,"virtual-triggering":e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:e.teleported,pure:"",persistent:"",onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},Yn({content:G(()=>[q(c,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:G(()=>[q(u,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange,onEntryFocus:e.handleEntryFocus},{default:G(()=>[q(i,null,{default:G(()=>[Q(e.$slots,"dropdown")]),_:3})]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])]),_:3},8,["wrap-style","view-class"])]),_:2},[e.splitButton?void 0:{name:"default",fn:G(()=>[q(d,{id:e.triggerId,ref:"triggeringElementRef",role:"button",tabindex:e.tabindex},{default:G(()=>[Q(e.$slots,"default")]),_:3},8,["id","tabindex"])])}]),1032,["role","effect","popper-options","hide-after","placement","popper-class","reference-element","trigger","trigger-keys","trigger-target-el","show-after","virtual-ref","virtual-triggering","disabled","transition","teleported","onBeforeShow","onShow","onBeforeHide"]),e.splitButton?(_(),ae(p,{key:0},{default:G(()=>[q(h,tt({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:G(()=>[Q(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),q(h,tt({id:e.triggerId,ref:"triggeringElementRef"},e.buttonProps,{role:"button",size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled,tabindex:e.tabindex,"aria-label":e.t("el.dropdown.toggleDropdown")}),{default:G(()=>[q(m,{class:$(e.ns.e("icon"))},{default:G(()=>[q(v)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):ee("v-if",!0)],2)}var EL=ve(SL,[["render",kL],["__file","dropdown.vue"]]);const xL=T({components:{ElRovingFocusCollectionItem:nL},props:{focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!1}},emits:["mousedown","focus","keydown"],setup(e,{emit:t}){const{currentTabbedId:n,loop:a,onItemFocus:l,onItemShiftTab:r}=Se(Wd,void 0),{getItems:s}=Se(Kd,void 0),i=on(),u=A(null),c=Ht(v=>{t("mousedown",v)},v=>{e.focusable?l(o(i)):v.preventDefault()}),d=Ht(v=>{t("focus",v)},()=>{l(o(i))}),f=Ht(v=>{t("keydown",v)},v=>{const{code:m,shiftKey:p,target:y,currentTarget:g}=v;if(m===Ce.tab&&p){r();return}if(y!==g)return;const x=rL(v);if(x){v.preventDefault();let b=s().filter(S=>S.focusable).map(S=>S.ref);switch(x){case"last":{b.reverse();break}case"prev":case"next":{x==="prev"&&b.reverse();const S=b.indexOf(g);b=a.value?sL(b,S+1):b.slice(S+1);break}}Ne(()=>{jd(b)})}}),h=C(()=>n.value===o(i));return it(Ih,{rovingFocusGroupItemRef:u,tabIndex:C(()=>o(h)?0:-1),handleMousedown:c,handleFocus:d,handleKeydown:f}),{id:i,handleKeydown:f,handleFocus:d,handleMousedown:c}}});function ML(e,t,n,a,l,r){const s=Ze("el-roving-focus-collection-item");return _(),ae(s,{id:e.id,focusable:e.focusable,active:e.active},{default:G(()=>[Q(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var $L=ve(xL,[["render",ML],["__file","roving-focus-item.vue"]]);const TL=T({name:"DropdownItemImpl",components:{ElIcon:Me},props:Ph,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const n=de("dropdown"),{role:a}=Se(Ii,void 0),{collectionItemRef:l}=Se(wL,void 0),{collectionItemRef:r}=Se(aL,void 0),{rovingFocusGroupItemRef:s,tabIndex:i,handleFocus:u,handleKeydown:c,handleMousedown:d}=Se(Ih,void 0),f=Ni(l,r,s),h=C(()=>a.value==="menu"?"menuitem":a.value==="navigation"?"link":"button"),v=Ht(m=>{if([Ce.enter,Ce.numpadEnter,Ce.space].includes(m.code))return m.preventDefault(),m.stopImmediatePropagation(),t("clickimpl",m),!0},c);return{ns:n,itemRef:f,dataset:{[Oh]:""},role:h,tabIndex:i,handleFocus:u,handleKeydown:v,handleMousedown:d}}});function OL(e,t,n,a,l,r){const s=Ze("el-icon");return _(),M(ze,null,[e.divided?(_(),M("li",{key:0,role:"separator",class:$(e.ns.bem("menu","item","divided"))},null,2)):ee("v-if",!0),k("li",tt({ref:e.itemRef},{...e.dataset,...e.$attrs},{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:e.role,onClick:i=>e.$emit("clickimpl",i),onFocus:e.handleFocus,onKeydown:Ae(e.handleKeydown,["self"]),onMousedown:e.handleMousedown,onPointermove:i=>e.$emit("pointermove",i),onPointerleave:i=>e.$emit("pointerleave",i)}),[e.icon?(_(),ae(s,{key:0},{default:G(()=>[(_(),ae(Qe(e.icon)))]),_:1})):ee("v-if",!0),Q(e.$slots,"default")],16,["aria-disabled","tabindex","role","onClick","onFocus","onKeydown","onMousedown","onPointermove","onPointerleave"])],64)}var NL=ve(TL,[["render",OL],["__file","dropdown-item-impl.vue"]]);const Ah=()=>{const e=Se("elDropdown",{}),t=C(()=>e==null?void 0:e.dropdownSize);return{elDropdown:e,_elDropdownSize:t}},IL=T({name:"ElDropdownItem",components:{ElDropdownCollectionItem:_L,ElRovingFocusItem:$L,ElDropdownItemImpl:NL},inheritAttrs:!1,props:Ph,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:n}){const{elDropdown:a}=Ah(),l=et(),r=A(null),s=C(()=>{var v,m;return(m=(v=o(r))==null?void 0:v.textContent)!=null?m:""}),{onItemEnter:i,onItemLeave:u}=Se(Ii,void 0),c=Ht(v=>(t("pointermove",v),v.defaultPrevented),j0(v=>{if(e.disabled){u(v);return}const m=v.currentTarget;m===document.activeElement||m.contains(document.activeElement)||(i(v),v.defaultPrevented||m==null||m.focus())})),d=Ht(v=>(t("pointerleave",v),v.defaultPrevented),j0(u)),f=Ht(v=>{if(!e.disabled)return t("click",v),v.type!=="keydown"&&v.defaultPrevented},v=>{var m,p,y;if(e.disabled){v.stopImmediatePropagation();return}(m=a==null?void 0:a.hideOnClick)!=null&&m.value&&((p=a.handleClick)==null||p.call(a)),(y=a.commandHandler)==null||y.call(a,e.command,l,v)}),h=C(()=>({...e,...n}));return{handleClick:f,handlePointerMove:c,handlePointerLeave:d,textContent:s,propsAndAttrs:h}}});function PL(e,t,n,a,l,r){var s;const i=Ze("el-dropdown-item-impl"),u=Ze("el-roving-focus-item"),c=Ze("el-dropdown-collection-item");return _(),ae(c,{disabled:e.disabled,"text-value":(s=e.textValue)!=null?s:e.textContent},{default:G(()=>[q(u,{focusable:!e.disabled},{default:G(()=>[q(i,tt(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:G(()=>[Q(e.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])]),_:3},8,["disabled","text-value"])}var Vh=ve(IL,[["render",PL],["__file","dropdown-item.vue"]]);const zL=T({name:"ElDropdownMenu",props:hL,setup(e){const t=de("dropdown"),{_elDropdownSize:n}=Ah(),a=n.value,{focusTrapRef:l,onKeydown:r}=Se(gd,void 0),{contentRef:s,role:i,triggerId:u}=Se(Ii,void 0),{collectionRef:c,getItems:d}=Se(bL,void 0),{rovingFocusGroupRef:f,rovingFocusGroupRootStyle:h,tabIndex:v,onBlur:m,onFocus:p,onMousedown:y}=Se(Wd,void 0),{collectionRef:g}=Se(Kd,void 0),x=C(()=>[t.b("menu"),t.bm("menu",a==null?void 0:a.value)]),w=Ni(s,c,l,f,g),b=Ht(E=>{var O;(O=e.onKeydown)==null||O.call(e,E)},E=>{const{currentTarget:O,code:I,target:N}=E;if(O.contains(N),Ce.tab===I&&E.stopImmediatePropagation(),E.preventDefault(),N!==o(s)||!gL.includes(I))return;const L=d().filter(R=>!R.disabled).map(R=>R.ref);zh.includes(I)&&L.reverse(),jd(L)});return{size:a,rovingFocusGroupRootStyle:h,tabIndex:v,dropdownKls:x,role:i,triggerId:u,dropdownListWrapperRef:w,handleKeydown:E=>{b(E),r(E)},onBlur:m,onFocus:p,onMousedown:y}}});function AL(e,t,n,a,l,r){return _(),M("ul",{ref:e.dropdownListWrapperRef,class:$(e.dropdownKls),style:Oe(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onBlur:e.onBlur,onFocus:e.onFocus,onKeydown:Ae(e.handleKeydown,["self"]),onMousedown:Ae(e.onMousedown,["self"])},[Q(e.$slots,"default")],46,["role","aria-labelledby","onBlur","onFocus","onKeydown","onMousedown"])}var Lh=ve(zL,[["render",AL],["__file","dropdown-menu.vue"]]);const VL=We(EL,{DropdownItem:Vh,DropdownMenu:Lh}),LL=Lt(Vh),RL=Lt(Lh),BL=T({name:"ImgEmpty"}),HL=T({...BL,setup(e){const t=de("empty"),n=on();return(a,l)=>(_(),M("svg",{viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[k("defs",null,[k("linearGradient",{id:`linearGradient-1-${o(n)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[k("stop",{"stop-color":`var(${o(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,["stop-color"]),k("stop",{"stop-color":`var(${o(t).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,["stop-color"])],8,["id"]),k("linearGradient",{id:`linearGradient-2-${o(n)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[k("stop",{"stop-color":`var(${o(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,["stop-color"]),k("stop",{"stop-color":`var(${o(t).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,["stop-color"])],8,["id"]),k("rect",{id:`path-3-${o(n)}`,x:"0",y:"0",width:"17",height:"36"},null,8,["id"])]),k("g",{id:"Illustrations",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[k("g",{id:"B-type",transform:"translate(-1268.000000, -535.000000)"},[k("g",{id:"Group-2",transform:"translate(1268.000000, 535.000000)"},[k("path",{id:"Oval-Copy-2",d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:`var(${o(t).cssVarBlockName("fill-color-3")})`},null,8,["fill"]),k("polygon",{id:"Rectangle-Copy-14",fill:`var(${o(t).cssVarBlockName("fill-color-7")})`,transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,["fill"]),k("g",{id:"Group-Copy",transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},[k("polygon",{id:"Rectangle-Copy-10",fill:`var(${o(t).cssVarBlockName("fill-color-7")})`,transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,8,["fill"]),k("polygon",{id:"Rectangle-Copy-11",fill:`var(${o(t).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,["fill"]),k("rect",{id:"Rectangle-Copy-12",fill:`url(#linearGradient-1-${o(n)})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,["fill"]),k("polygon",{id:"Rectangle-Copy-13",fill:`var(${o(t).cssVarBlockName("fill-color-2")})`,transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,["fill"])]),k("rect",{id:"Rectangle-Copy-15",fill:`url(#linearGradient-2-${o(n)})`,x:"13",y:"45",width:"40",height:"36"},null,8,["fill"]),k("g",{id:"Rectangle-Copy-17",transform:"translate(53.000000, 45.000000)"},[k("use",{id:"Mask",fill:`var(${o(t).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${o(n)}`},null,8,["fill","xlink:href"]),k("polygon",{id:"Rectangle-Copy",fill:`var(${o(t).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${o(n)})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,["fill","mask"])]),k("polygon",{id:"Rectangle-Copy-18",fill:`var(${o(t).cssVarBlockName("fill-color-2")})`,transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,["fill"])])])])]))}});var DL=ve(HL,[["__file","img-empty.vue"]]);const FL=pe({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),KL=T({name:"ElEmpty"}),WL=T({...KL,props:FL,setup(e){const t=e,{t:n}=ct(),a=de("empty"),l=C(()=>t.description||n("el.table.emptyText")),r=C(()=>({width:Rt(t.imageSize)}));return(s,i)=>(_(),M("div",{class:$(o(a).b())},[k("div",{class:$(o(a).e("image")),style:Oe(o(r))},[s.image?(_(),M("img",{key:0,src:s.image,ondragstart:"return false"},null,8,["src"])):Q(s.$slots,"image",{key:1},()=>[q(DL)])],6),k("div",{class:$(o(a).e("description"))},[s.$slots.description?Q(s.$slots,"description",{key:0}):(_(),M("p",{key:1},he(o(l)),1))],2),s.$slots.default?(_(),M("div",{key:0,class:$(o(a).e("bottom"))},[Q(s.$slots,"default")],2)):ee("v-if",!0)],2))}});var jL=ve(WL,[["__file","empty.vue"]]);const Rh=We(jL),qL=pe({size:{type:String,values:xa},disabled:Boolean}),UL=pe({...qL,model:Object,rules:{type:X(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:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean]}}),YL={validate:(e,t,n)=>(Ee(e)||Ve(e))&&Et(t)&&Ve(n)};function GL(){const e=A([]),t=C(()=>{if(!e.value.length)return"0";const r=Math.max(...e.value);return r?`${r}px`:""});function n(r){const s=e.value.indexOf(r);return s===-1&&t.value,s}function a(r,s){if(r&&s){const i=n(s);e.value.splice(i,1,r)}else r&&e.value.push(r)}function l(r){const s=n(r);s>-1&&e.value.splice(s,1)}return{autoLabelWidth:t,registerLabelWidth:a,deregisterLabelWidth:l}}const ns=(e,t)=>{const n=bn(t);return n.length>0?e.filter(a=>a.prop&&n.includes(a.prop)):e},XL="ElForm",ZL=T({name:XL}),JL=T({...ZL,props:UL,emits:YL,setup(e,{expose:t,emit:n}){const a=e,l=[],r=jt(),s=de("form"),i=C(()=>{const{labelPosition:w,inline:b}=a;return[s.b(),s.m(r.value||"default"),{[s.m(`label-${w}`)]:w,[s.m("inline")]:b}]}),u=w=>l.find(b=>b.prop===w),c=w=>{l.push(w)},d=w=>{w.prop&&l.splice(l.indexOf(w),1)},f=(w=[])=>{a.model&&ns(l,w).forEach(b=>b.resetField())},h=(w=[])=>{ns(l,w).forEach(b=>b.clearValidate())},v=C(()=>!!a.model),m=w=>{if(l.length===0)return[];const b=ns(l,w);return b.length?b:[]},p=async w=>g(void 0,w),y=async(w=[])=>{if(!v.value)return!1;const b=m(w);if(b.length===0)return!0;let S={};for(const E of b)try{await E.validate(""),E.validateState==="error"&&E.resetField()}catch(O){S={...S,...O}}return Object.keys(S).length===0?!0:Promise.reject(S)},g=async(w=[],b)=>{const S=!Je(b);try{const E=await y(w);return E===!0&&await(b==null?void 0:b(E)),E}catch(E){if(E instanceof Error)throw E;const O=E;return a.scrollToError&&x(Object.keys(O)[0]),await(b==null?void 0:b(!1,O)),S&&Promise.reject(O)}},x=w=>{var b;const S=ns(l,w)[0];S&&((b=S.$el)==null||b.scrollIntoView(a.scrollIntoViewOptions))};return ue(()=>a.rules,()=>{a.validateOnRuleChange&&p().catch(w=>void 0)},{deep:!0,flush:"post"}),it(Hl,_t({...nn(a),emit:n,resetFields:f,clearValidate:h,validateField:g,getField:u,addField:c,removeField:d,...GL()})),t({validate:p,validateField:g,resetFields:f,clearValidate:h,scrollToField:x,fields:l}),(w,b)=>(_(),M("form",{class:$(o(i))},[Q(w.$slots,"default")],2))}});var QL=ve(JL,[["__file","form.vue"]]);function bl(){return bl=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 Ss(e,t,n){return tR()?Ss=Reflect.construct.bind():Ss=function(l,r,s){var i=[null];i.push.apply(i,r);var u=Function.bind.apply(l,i),c=new u;return s&&mr(c,s.prototype),c},Ss.apply(null,arguments)}function nR(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Qu(e){var t=typeof Map=="function"?new Map:void 0;return Qu=function(a){if(a===null||!nR(a))return a;if(typeof a!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(a))return t.get(a);t.set(a,l)}function l(){return Ss(a,arguments,Ju(this).constructor)}return l.prototype=Object.create(a.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),mr(l,a)},Qu(e)}var aR=/%[sdj%]/g,lR=function(){};function ec(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var a=n.field;t[a]=t[a]||[],t[a].push(n)}),t}function Dn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a=r)return i;switch(i){case"%s":return String(n[l++]);case"%d":return Number(n[l++]);case"%j":try{return JSON.stringify(n[l++])}catch{return"[Circular]"}break;default:return i}});return s}return e}function oR(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function an(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||oR(t)&&typeof e=="string"&&!e)}function rR(e,t,n){var a=[],l=0,r=e.length;function s(i){a.push.apply(a,i||[]),l++,l===r&&n(a)}e.forEach(function(i){t(i,s)})}function E2(e,t,n){var a=0,l=e.length;function r(s){if(s&&s.length){n(s);return}var i=a;a=a+1,i()\[\]\\.,;:\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},Yo={integer:function(t){return Yo.number(t)&&parseInt(t,10)===t},float:function(t){return Yo.number(t)&&!Yo.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"&&!Yo.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(T2.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(fR())},hex:function(t){return typeof t=="string"&&!!t.match(T2.hex)}},pR=function(t,n,a,l,r){if(t.required&&n===void 0){Bh(t,n,a,l,r);return}var s=["integer","float","array","regexp","object","method","email","number","date","url","hex"],i=t.type;s.indexOf(i)>-1?Yo[i](n)||l.push(Dn(r.messages.types[i],t.fullField,t.type)):i&&typeof n!==t.type&&l.push(Dn(r.messages.types[i],t.fullField,t.type))},vR=function(t,n,a,l,r){var s=typeof t.len=="number",i=typeof t.min=="number",u=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,f=null,h=typeof n=="number",v=typeof n=="string",m=Array.isArray(n);if(h?f="number":v?f="string":m&&(f="array"),!f)return!1;m&&(d=n.length),v&&(d=n.replace(c,"_").length),s?d!==t.len&&l.push(Dn(r.messages[f].len,t.fullField,t.len)):i&&!u&&dt.max?l.push(Dn(r.messages[f].max,t.fullField,t.max)):i&&u&&(dt.max)&&l.push(Dn(r.messages[f].range,t.fullField,t.min,t.max))},jl="enum",hR=function(t,n,a,l,r){t[jl]=Array.isArray(t[jl])?t[jl]:[],t[jl].indexOf(n)===-1&&l.push(Dn(r.messages[jl],t.fullField,t[jl].join(", ")))},mR=function(t,n,a,l,r){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||l.push(Dn(r.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var s=new RegExp(t.pattern);s.test(n)||l.push(Dn(r.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},xt={required:Bh,whitespace:dR,type:pR,range:vR,enum:hR,pattern:mR},gR=function(t,n,a,l,r){var s=[],i=t.required||!t.required&&l.hasOwnProperty(t.field);if(i){if(an(n,"string")&&!t.required)return a();xt.required(t,n,l,s,r,"string"),an(n,"string")||(xt.type(t,n,l,s,r),xt.range(t,n,l,s,r),xt.pattern(t,n,l,s,r),t.whitespace===!0&&xt.whitespace(t,n,l,s,r))}a(s)},yR=function(t,n,a,l,r){var s=[],i=t.required||!t.required&&l.hasOwnProperty(t.field);if(i){if(an(n)&&!t.required)return a();xt.required(t,n,l,s,r),n!==void 0&&xt.type(t,n,l,s,r)}a(s)},_R=function(t,n,a,l,r){var s=[],i=t.required||!t.required&&l.hasOwnProperty(t.field);if(i){if(n===""&&(n=void 0),an(n)&&!t.required)return a();xt.required(t,n,l,s,r),n!==void 0&&(xt.type(t,n,l,s,r),xt.range(t,n,l,s,r))}a(s)},bR=function(t,n,a,l,r){var s=[],i=t.required||!t.required&&l.hasOwnProperty(t.field);if(i){if(an(n)&&!t.required)return a();xt.required(t,n,l,s,r),n!==void 0&&xt.type(t,n,l,s,r)}a(s)},wR=function(t,n,a,l,r){var s=[],i=t.required||!t.required&&l.hasOwnProperty(t.field);if(i){if(an(n)&&!t.required)return a();xt.required(t,n,l,s,r),an(n)||xt.type(t,n,l,s,r)}a(s)},CR=function(t,n,a,l,r){var s=[],i=t.required||!t.required&&l.hasOwnProperty(t.field);if(i){if(an(n)&&!t.required)return a();xt.required(t,n,l,s,r),n!==void 0&&(xt.type(t,n,l,s,r),xt.range(t,n,l,s,r))}a(s)},SR=function(t,n,a,l,r){var s=[],i=t.required||!t.required&&l.hasOwnProperty(t.field);if(i){if(an(n)&&!t.required)return a();xt.required(t,n,l,s,r),n!==void 0&&(xt.type(t,n,l,s,r),xt.range(t,n,l,s,r))}a(s)},kR=function(t,n,a,l,r){var s=[],i=t.required||!t.required&&l.hasOwnProperty(t.field);if(i){if(n==null&&!t.required)return a();xt.required(t,n,l,s,r,"array"),n!=null&&(xt.type(t,n,l,s,r),xt.range(t,n,l,s,r))}a(s)},ER=function(t,n,a,l,r){var s=[],i=t.required||!t.required&&l.hasOwnProperty(t.field);if(i){if(an(n)&&!t.required)return a();xt.required(t,n,l,s,r),n!==void 0&&xt.type(t,n,l,s,r)}a(s)},xR="enum",MR=function(t,n,a,l,r){var s=[],i=t.required||!t.required&&l.hasOwnProperty(t.field);if(i){if(an(n)&&!t.required)return a();xt.required(t,n,l,s,r),n!==void 0&&xt[xR](t,n,l,s,r)}a(s)},$R=function(t,n,a,l,r){var s=[],i=t.required||!t.required&&l.hasOwnProperty(t.field);if(i){if(an(n,"string")&&!t.required)return a();xt.required(t,n,l,s,r),an(n,"string")||xt.pattern(t,n,l,s,r)}a(s)},TR=function(t,n,a,l,r){var s=[],i=t.required||!t.required&&l.hasOwnProperty(t.field);if(i){if(an(n,"date")&&!t.required)return a();if(xt.required(t,n,l,s,r),!an(n,"date")){var u;n instanceof Date?u=n:u=new Date(n),xt.type(t,u,l,s,r),u&&xt.range(t,u.getTime(),l,s,r)}}a(s)},OR=function(t,n,a,l,r){var s=[],i=Array.isArray(n)?"array":typeof n;xt.required(t,n,l,s,r,i),a(s)},uu=function(t,n,a,l,r){var s=t.type,i=[],u=t.required||!t.required&&l.hasOwnProperty(t.field);if(u){if(an(n,s)&&!t.required)return a();xt.required(t,n,l,i,r,s),an(n,s)||xt.type(t,n,l,i,r)}a(i)},NR=function(t,n,a,l,r){var s=[],i=t.required||!t.required&&l.hasOwnProperty(t.field);if(i){if(an(n)&&!t.required)return a();xt.required(t,n,l,s,r)}a(s)},nr={string:gR,method:yR,number:_R,boolean:bR,regexp:wR,integer:CR,float:SR,array:kR,object:ER,enum:MR,pattern:$R,date:TR,url:uu,hex:uu,email:uu,required:OR,any:NR};function tc(){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 nc=tc(),Lr=function(){function e(n){this.rules=null,this._messages=nc,this.define(n)}var t=e.prototype;return t.define=function(a){var l=this;if(!a)throw new Error("Cannot configure a schema with no rules");if(typeof a!="object"||Array.isArray(a))throw new Error("Rules must be an object");this.rules={},Object.keys(a).forEach(function(r){var s=a[r];l.rules[r]=Array.isArray(s)?s:[s]})},t.messages=function(a){return a&&(this._messages=$2(tc(),a)),this._messages},t.validate=function(a,l,r){var s=this;l===void 0&&(l={}),r===void 0&&(r=function(){});var i=a,u=l,c=r;if(typeof u=="function"&&(c=u,u={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,i),Promise.resolve(i);function d(p){var y=[],g={};function x(b){if(Array.isArray(b)){var S;y=(S=y).concat.apply(S,b)}else y.push(b)}for(var w=0;w");const l=de("form"),r=A(),s=A(0),i=()=>{var d;if((d=r.value)!=null&&d.firstElementChild){const f=window.getComputedStyle(r.value.firstElementChild).width;return Math.ceil(Number.parseFloat(f))}else return 0},u=(d="update")=>{Ne(()=>{t.default&&e.isAutoWidth&&(d==="update"?s.value=i():d==="remove"&&(n==null||n.deregisterLabelWidth(s.value)))})},c=()=>u("update");return Xe(()=>{c()}),$t(()=>{u("remove")}),Wa(()=>c()),ue(s,(d,f)=>{e.updateAll&&(n==null||n.registerLabelWidth(d,f))}),At(C(()=>{var d,f;return(f=(d=r.value)==null?void 0:d.firstElementChild)!=null?f:null}),c),()=>{var d,f;if(!t)return null;const{isAutoWidth:h}=e;if(h){const v=n==null?void 0:n.autoLabelWidth,m=a==null?void 0:a.hasLabel,p={};if(m&&v&&v!=="auto"){const y=Math.max(0,Number.parseInt(v,10)-s.value),x=(a.labelPosition||n.labelPosition)==="left"?"marginRight":"marginLeft";y&&(p[x]=`${y}px`)}return q("div",{ref:r,class:[l.be("item","label-wrap")],style:p},[(d=t.default)==null?void 0:d.call(t)])}else return q(ze,{ref:r},[(f=t.default)==null?void 0:f.call(t)])}}});const AR=T({name:"ElFormItem"}),VR=T({...AR,props:PR,setup(e,{expose:t}){const n=e,a=Xt(),l=Se(Hl,void 0),r=Se(Sa,void 0),s=jt(void 0,{formItem:!1}),i=de("form-item"),u=on().value,c=A([]),d=A(""),f=F_(d,100),h=A(""),v=A();let m,p=!1;const y=C(()=>n.labelPosition||(l==null?void 0:l.labelPosition)),g=C(()=>{if(y.value==="top")return{};const se=Rt(n.labelWidth||(l==null?void 0:l.labelWidth)||"");return se?{width:se}:{}}),x=C(()=>{if(y.value==="top"||l!=null&&l.inline)return{};if(!n.label&&!n.labelWidth&&P)return{};const se=Rt(n.labelWidth||(l==null?void 0:l.labelWidth)||"");return!n.label&&!a.label?{marginLeft:se}:{}}),w=C(()=>[i.b(),i.m(s.value),i.is("error",d.value==="error"),i.is("validating",d.value==="validating"),i.is("success",d.value==="success"),i.is("required",H.value||n.required),i.is("no-asterisk",l==null?void 0:l.hideRequiredAsterisk),(l==null?void 0:l.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[i.m("feedback")]:l==null?void 0:l.statusIcon,[i.m(`label-${y.value}`)]:y.value}]),b=C(()=>Et(n.inlineMessage)?n.inlineMessage:(l==null?void 0:l.inlineMessage)||!1),S=C(()=>[i.e("error"),{[i.em("error","inline")]:b.value}]),E=C(()=>n.prop?Ve(n.prop)?n.prop:n.prop.join("."):""),O=C(()=>!!(n.label||a.label)),I=C(()=>n.for||(c.value.length===1?c.value[0]:void 0)),N=C(()=>!I.value&&O.value),P=!!r,L=C(()=>{const se=l==null?void 0:l.model;if(!(!se||!n.prop))return is(se,n.prop).value}),R=C(()=>{const{required:se}=n,fe=[];n.rules&&fe.push(...bn(n.rules));const xe=l==null?void 0:l.rules;if(xe&&n.prop){const me=is(xe,n.prop).value;me&&fe.push(...bn(me))}if(se!==void 0){const me=fe.map((le,we)=>[le,we]).filter(([le])=>Object.keys(le).includes("required"));if(me.length>0)for(const[le,we]of me)le.required!==se&&(fe[we]={...le,required:se});else fe.push({required:se})}return fe}),K=C(()=>R.value.length>0),U=se=>R.value.filter(xe=>!xe.trigger||!se?!0:Ee(xe.trigger)?xe.trigger.includes(se):xe.trigger===se).map(({trigger:xe,...me})=>me),H=C(()=>R.value.some(se=>se.required)),V=C(()=>{var se;return f.value==="error"&&n.showMessage&&((se=l==null?void 0:l.showMessage)!=null?se:!0)}),D=C(()=>`${n.label||""}${(l==null?void 0:l.labelSuffix)||""}`),B=se=>{d.value=se},z=se=>{var fe,xe;const{errors:me,fields:le}=se;(!me||!le)&&console.error(se),B("error"),h.value=me?(xe=(fe=me==null?void 0:me[0])==null?void 0:fe.message)!=null?xe:`${n.prop} is required`:"",l==null||l.emit("validate",n.prop,!1,h.value)},F=()=>{B("success"),l==null||l.emit("validate",n.prop,!0,"")},W=async se=>{const fe=E.value;return new Lr({[fe]:se}).validate({[fe]:L.value},{firstFields:!0}).then(()=>(F(),!0)).catch(me=>(z(me),Promise.reject(me)))},Z=async(se,fe)=>{if(p||!n.prop)return!1;const xe=Je(fe);if(!K.value)return fe==null||fe(!1),!1;const me=U(se);return me.length===0?(fe==null||fe(!0),!0):(B("validating"),W(me).then(()=>(fe==null||fe(!0),!0)).catch(le=>{const{fields:we}=le;return fe==null||fe(!1,we),xe?!1:Promise.reject(we)}))},j=()=>{B(""),h.value="",p=!1},ne=async()=>{const se=l==null?void 0:l.model;if(!se||!n.prop)return;const fe=is(se,n.prop);p=!0,fe.value=e0(m),await Ne(),j(),p=!1},oe=se=>{c.value.includes(se)||c.value.push(se)},ce=se=>{c.value=c.value.filter(fe=>fe!==se)};ue(()=>n.error,se=>{h.value=se||"",B(se?"error":"")},{immediate:!0}),ue(()=>n.validateStatus,se=>B(se||""));const te=_t({...nn(n),$el:v,size:s,validateState:d,labelId:u,inputIds:c,isGroup:N,hasLabel:O,fieldValue:L,addInputId:oe,removeInputId:ce,resetField:ne,clearValidate:j,validate:Z});return it(Sa,te),Xe(()=>{n.prop&&(l==null||l.addField(te),m=e0(L.value))}),$t(()=>{l==null||l.removeField(te)}),t({size:s,validateMessage:h,validateState:d,validate:Z,clearValidate:j,resetField:ne}),(se,fe)=>{var xe;return _(),M("div",{ref_key:"formItemRef",ref:v,class:$(o(w)),role:o(N)?"group":void 0,"aria-labelledby":o(N)?o(u):void 0},[q(o(zR),{"is-auto-width":o(g).width==="auto","update-all":((xe=o(l))==null?void 0:xe.labelWidth)==="auto"},{default:G(()=>[o(O)?(_(),ae(Qe(o(I)?"label":"div"),{key:0,id:o(u),for:o(I),class:$(o(i).e("label")),style:Oe(o(g))},{default:G(()=>[Q(se.$slots,"label",{label:o(D)},()=>[ot(he(o(D)),1)])]),_:3},8,["id","for","class","style"])):ee("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),k("div",{class:$(o(i).e("content")),style:Oe(o(x))},[Q(se.$slots,"default"),q(Mp,{name:`${o(i).namespace.value}-zoom-in-top`},{default:G(()=>[o(V)?Q(se.$slots,"error",{key:0,error:h.value},()=>[k("div",{class:$(o(S))},he(h.value),3)]):ee("v-if",!0)]),_:3},8,["name"])],6)],10,["role","aria-labelledby"])}}});var Hh=ve(VR,[["__file","form-item.vue"]]);const LR=We(QL,{FormItem:Hh}),RR=Lt(Hh),BR=pe({urlList:{type:X(Array),default:()=>Vt([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:Boolean,teleported:Boolean,closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},crossorigin:{type:X(String)}}),HR={close:()=>!0,switch:e=>Ie(e),rotate:e=>Ie(e)},DR=T({name:"ElImageViewer"}),FR=T({...DR,props:BR,emits:HR,setup(e,{expose:t,emit:n}){var a;const l=e,r={CONTAIN:{name:"contain",icon:kl(D1)},ORIGINAL:{name:"original",icon:kl(G1)}},{t:s}=ct(),i=de("image-viewer"),{nextZIndex:u}=Io(),c=A(),d=A([]),f=Z4(),h=A(!0),v=A(l.initialIndex),m=Ot(r.CONTAIN),p=A({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),y=A((a=l.zIndex)!=null?a:u()),g=C(()=>{const{urlList:Z}=l;return Z.length<=1}),x=C(()=>v.value===0),w=C(()=>v.value===l.urlList.length-1),b=C(()=>l.urlList[v.value]),S=C(()=>[i.e("btn"),i.e("prev"),i.is("disabled",!l.infinite&&x.value)]),E=C(()=>[i.e("btn"),i.e("next"),i.is("disabled",!l.infinite&&w.value)]),O=C(()=>{const{scale:Z,deg:j,offsetX:ne,offsetY:oe,enableTransition:ce}=p.value;let te=ne/Z,se=oe/Z;const fe=j*Math.PI/180,xe=Math.cos(fe),me=Math.sin(fe);te=te*xe+se*me,se=se*xe-ne/Z*me;const le={transform:`scale(${Z}) rotate(${j}deg) translate(${te}px, ${se}px)`,transition:ce?"transform .3s":""};return m.value.name===r.CONTAIN.name&&(le.maxWidth=le.maxHeight="100%"),le});function I(){P(),n("close")}function N(){const Z=El(ne=>{switch(ne.code){case Ce.esc:l.closeOnPressEscape&&I();break;case Ce.space:H();break;case Ce.left:D();break;case Ce.up:z("zoomIn");break;case Ce.right:B();break;case Ce.down:z("zoomOut");break}}),j=El(ne=>{const oe=ne.deltaY||ne.deltaX;z(oe<0?"zoomIn":"zoomOut",{zoomRate:l.zoomRate,enableTransition:!1})});f.run(()=>{wt(document,"keydown",Z),wt(document,"wheel",j)})}function P(){f.stop()}function L(){h.value=!1}function R(Z){h.value=!1,Z.target.alt=s("el.image.error")}function K(Z){if(h.value||Z.button!==0||!c.value)return;p.value.enableTransition=!1;const{offsetX:j,offsetY:ne}=p.value,oe=Z.pageX,ce=Z.pageY,te=El(fe=>{p.value={...p.value,offsetX:j+fe.pageX-oe,offsetY:ne+fe.pageY-ce}}),se=wt(document,"mousemove",te);wt(document,"mouseup",()=>{se()}),Z.preventDefault()}function U(){p.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function H(){if(h.value)return;const Z=fo(r),j=Object.values(r),ne=m.value.name,ce=(j.findIndex(te=>te.name===ne)+1)%Z.length;m.value=r[Z[ce]],U()}function V(Z){const j=l.urlList.length;v.value=(Z+j)%j}function D(){x.value&&!l.infinite||V(v.value-1)}function B(){w.value&&!l.infinite||V(v.value+1)}function z(Z,j={}){if(h.value)return;const{minScale:ne,maxScale:oe}=l,{zoomRate:ce,rotateDeg:te,enableTransition:se}={zoomRate:l.zoomRate,rotateDeg:90,enableTransition:!0,...j};switch(Z){case"zoomOut":p.value.scale>ne&&(p.value.scale=Number.parseFloat((p.value.scale/ce).toFixed(3)));break;case"zoomIn":p.value.scale{Ne(()=>{const Z=d.value[0];Z!=null&&Z.complete||(h.value=!0)})}),ue(v,Z=>{U(),n("switch",Z)}),Xe(()=>{N()}),t({setActiveItem:V}),(Z,j)=>(_(),ae(o(Vo),{to:"body",disabled:!Z.teleported},{default:G(()=>[q(tn,{name:"viewer-fade",appear:""},{default:G(()=>[k("div",{ref_key:"wrapper",ref:c,tabindex:-1,class:$(o(i).e("wrapper")),style:Oe({zIndex:y.value})},[q(o(Ao),{loop:"",trapped:"","focus-trap-el":c.value,"focus-start-el":"container",onFocusoutPrevented:F,onReleaseRequested:W},{default:G(()=>[k("div",{class:$(o(i).e("mask")),onClick:Ae(ne=>Z.hideOnClickModal&&I(),["self"])},null,10,["onClick"]),ee(" CLOSE "),k("span",{class:$([o(i).e("btn"),o(i).e("close")]),onClick:I},[q(o(Me),null,{default:G(()=>[q(o(Xn))]),_:1})],2),ee(" ARROW "),o(g)?ee("v-if",!0):(_(),M(ze,{key:0},[k("span",{class:$(o(S)),onClick:D},[q(o(Me),null,{default:G(()=>[q(o(La))]),_:1})],2),k("span",{class:$(o(E)),onClick:B},[q(o(Me),null,{default:G(()=>[q(o(En))]),_:1})],2)],64)),ee(" ACTIONS "),k("div",{class:$([o(i).e("btn"),o(i).e("actions")])},[k("div",{class:$(o(i).e("actions__inner"))},[q(o(Me),{onClick:ne=>z("zoomOut")},{default:G(()=>[q(o(tv))]),_:1},8,["onClick"]),q(o(Me),{onClick:ne=>z("zoomIn")},{default:G(()=>[q(o(cd))]),_:1},8,["onClick"]),k("i",{class:$(o(i).e("actions__divider"))},null,2),q(o(Me),{onClick:H},{default:G(()=>[(_(),ae(Qe(o(m).icon)))]),_:1}),k("i",{class:$(o(i).e("actions__divider"))},null,2),q(o(Me),{onClick:ne=>z("anticlockwise")},{default:G(()=>[q(o(U1))]),_:1},8,["onClick"]),q(o(Me),{onClick:ne=>z("clockwise")},{default:G(()=>[q(o(Y1))]),_:1},8,["onClick"])],2)],2),ee(" CANVAS "),k("div",{class:$(o(i).e("canvas"))},[(_(!0),M(ze,null,rt(Z.urlList,(ne,oe)=>qe((_(),M("img",{ref_for:!0,ref:ce=>d.value[oe]=ce,key:ne,src:ne,style:Oe(o(O)),class:$(o(i).e("img")),crossorigin:Z.crossorigin,onLoad:L,onError:R,onMousedown:K},null,46,["src","crossorigin"])),[[pt,oe===v.value]])),128))],2),Q(Z.$slots,"default")]),_:3},8,["focus-trap-el"])],6)]),_:3})]),_:3},8,["disabled"]))}});var KR=ve(FR,[["__file","image-viewer.vue"]]);const Dh=We(KR),WR=pe({hideOnClickModal:Boolean,src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:Boolean,scrollContainer:{type:X([String,Object])},previewSrcList:{type:X(Array),default:()=>Vt([])},previewTeleported:Boolean,zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},crossorigin:{type:X(String)}}),jR={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>Ie(e),close:()=>!0,show:()=>!0},qR=T({name:"ElImage",inheritAttrs:!1}),UR=T({...qR,props:WR,emits:jR,setup(e,{emit:t}){const n=e;let a="";const{t:l}=ct(),r=de("image"),s=Ka(),i=C(()=>cr(Object.entries(s).filter(([B])=>/^(data-|on[A-Z])/i.test(B)||["id","style"].includes(B)))),u=Pr({excludeListeners:!0,excludeKeys:C(()=>Object.keys(i.value))}),c=A(),d=A(!1),f=A(!0),h=A(!1),v=A(),m=A(),p=ut&&"loading"in HTMLImageElement.prototype;let y,g;const x=C(()=>[r.e("inner"),b.value&&r.e("preview"),f.value&&r.is("loading")]),w=C(()=>{const{fit:B}=n;return ut&&B?{objectFit:B}:{}}),b=C(()=>{const{previewSrcList:B}=n;return Ee(B)&&B.length>0}),S=C(()=>{const{previewSrcList:B,initialIndex:z}=n;let F=z;return z>B.length-1&&(F=0),F}),E=C(()=>n.loading==="eager"?!1:!p&&n.loading==="lazy"||n.lazy),O=()=>{ut&&(f.value=!0,d.value=!1,c.value=n.src)};function I(B){f.value=!1,d.value=!1,t("load",B)}function N(B){f.value=!1,d.value=!0,t("error",B)}function P(){ez(v.value,m.value)&&(O(),K())}const L=y1(P,200,!0);async function R(){var B;if(!ut)return;await Ne();const{scrollContainer:z}=n;Tn(z)?m.value=z:Ve(z)&&z!==""?m.value=(B=document.querySelector(z))!=null?B:void 0:v.value&&(m.value=ld(v.value)),m.value&&(y=wt(m,"scroll",L),setTimeout(()=>P(),100))}function K(){!ut||!m.value||!L||(y==null||y(),m.value=void 0)}function U(B){if(B.ctrlKey){if(B.deltaY<0)return B.preventDefault(),!1;if(B.deltaY>0)return B.preventDefault(),!1}}function H(){b.value&&(g=wt("wheel",U,{passive:!1}),a=document.body.style.overflow,document.body.style.overflow="hidden",h.value=!0,t("show"))}function V(){g==null||g(),document.body.style.overflow=a,h.value=!1,t("close")}function D(B){t("switch",B)}return ue(()=>n.src,()=>{E.value?(f.value=!0,d.value=!1,K(),R()):O()}),Xe(()=>{E.value?R():O()}),(B,z)=>(_(),M("div",tt({ref_key:"container",ref:v},o(i),{class:[o(r).b(),B.$attrs.class]}),[d.value?Q(B.$slots,"error",{key:0},()=>[k("div",{class:$(o(r).e("error"))},he(o(l)("el.image.error")),3)]):(_(),M(ze,{key:1},[c.value!==void 0?(_(),M("img",tt({key:0},o(u),{src:c.value,loading:B.loading,style:o(w),class:o(x),crossorigin:B.crossorigin,onClick:H,onLoad:I,onError:N}),null,16,["src","loading","crossorigin"])):ee("v-if",!0),f.value?(_(),M("div",{key:1,class:$(o(r).e("wrapper"))},[Q(B.$slots,"placeholder",{},()=>[k("div",{class:$(o(r).e("placeholder"))},null,2)])],2)):ee("v-if",!0)],64)),o(b)?(_(),M(ze,{key:2},[h.value?(_(),ae(o(Dh),{key:0,"z-index":B.zIndex,"initial-index":o(S),infinite:B.infinite,"zoom-rate":B.zoomRate,"min-scale":B.minScale,"max-scale":B.maxScale,"url-list":B.previewSrcList,crossorigin:B.crossorigin,"hide-on-click-modal":B.hideOnClickModal,teleported:B.previewTeleported,"close-on-press-escape":B.closeOnPressEscape,onClose:V,onSwitch:D},{default:G(()=>[B.$slots.viewer?(_(),M("div",{key:0},[Q(B.$slots,"viewer")])):ee("v-if",!0)]),_:3},8,["z-index","initial-index","infinite","zoom-rate","min-scale","max-scale","url-list","crossorigin","hide-on-click-modal","teleported","close-on-press-escape"])):ee("v-if",!0)],64)):ee("v-if",!0)],16))}});var YR=ve(UR,[["__file","image.vue"]]);const GR=We(YR),XR=pe({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.POSITIVE_INFINITY},min:{type:Number,default:Number.NEGATIVE_INFINITY},modelValue:Number,readonly:Boolean,disabled:Boolean,size:qt,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:e=>e===null||Ie(e)||["min","max"].includes(e),default:null},name:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===Number.parseInt(`${e}`,10)},validateEvent:{type:Boolean,default:!0},...rn(["ariaLabel"])}),ZR={[Ct]:(e,t)=>t!==e,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[fn]:e=>Ie(e)||Zt(e),[Ue]:e=>Ie(e)||Zt(e)},JR=T({name:"ElInputNumber"}),QR=T({...JR,props:XR,emits:ZR,setup(e,{expose:t,emit:n}){const a=e,{t:l}=ct(),r=de("input-number"),s=A(),i=_t({currentValue:a.modelValue,userInput:null}),{formItem:u}=mn(),c=C(()=>Ie(a.modelValue)&&a.modelValue<=a.min),d=C(()=>Ie(a.modelValue)&&a.modelValue>=a.max),f=C(()=>{const H=g(a.step);return vt(a.precision)?Math.max(g(a.modelValue),H):(H>a.precision,a.precision)}),h=C(()=>a.controls&&a.controlsPosition==="right"),v=jt(),m=gn(),p=C(()=>{if(i.userInput!==null)return i.userInput;let H=i.currentValue;if(Zt(H))return"";if(Ie(H)){if(Number.isNaN(H))return"";vt(a.precision)||(H=H.toFixed(a.precision))}return H}),y=(H,V)=>{if(vt(V)&&(V=f.value),V===0)return Math.round(H);let D=String(H);const B=D.indexOf(".");if(B===-1||!D.replace(".","").split("")[B+V])return H;const W=D.length;return D.charAt(W-1)==="5"&&(D=`${D.slice(0,Math.max(0,W-1))}6`),Number.parseFloat(Number(D).toFixed(V))},g=H=>{if(Zt(H))return 0;const V=H.toString(),D=V.indexOf(".");let B=0;return D!==-1&&(B=V.length-D-1),B},x=(H,V=1)=>Ie(H)?y(H+a.step*V):i.currentValue,w=()=>{if(a.readonly||m.value||d.value)return;const H=Number(p.value)||0,V=x(H);E(V),n(fn,i.currentValue),K()},b=()=>{if(a.readonly||m.value||c.value)return;const H=Number(p.value)||0,V=x(H,-1);E(V),n(fn,i.currentValue),K()},S=(H,V)=>{const{max:D,min:B,step:z,precision:F,stepStrictly:W,valueOnClear:Z}=a;DD||jD?D:B,V&&n(Ue,j)),j},E=(H,V=!0)=>{var D;const B=i.currentValue,z=S(H);if(!V){n(Ue,z);return}B===z&&H||(i.userInput=null,n(Ue,z),B!==z&&n(Ct,z,B),a.validateEvent&&((D=u==null?void 0:u.validate)==null||D.call(u,"change").catch(F=>void 0)),i.currentValue=z)},O=H=>{i.userInput=H;const V=H===""?null:Number(H);n(fn,V),E(V,!1)},I=H=>{const V=H!==""?Number(H):"";(Ie(V)&&!Number.isNaN(V)||H==="")&&E(V),K(),i.userInput=null},N=()=>{var H,V;(V=(H=s.value)==null?void 0:H.focus)==null||V.call(H)},P=()=>{var H,V;(V=(H=s.value)==null?void 0:H.blur)==null||V.call(H)},L=H=>{n("focus",H)},R=H=>{var V,D;i.userInput=null,Ei()&&i.currentValue===null&&((V=s.value)!=null&&V.input)&&(s.value.input.value=""),n("blur",H),a.validateEvent&&((D=u==null?void 0:u.validate)==null||D.call(u,"blur").catch(B=>void 0))},K=()=>{i.currentValue!==a.modelValue&&(i.currentValue=a.modelValue)},U=H=>{document.activeElement===H.target&&H.preventDefault()};return ue(()=>a.modelValue,(H,V)=>{const D=S(H,!0);i.userInput===null&&D!==V&&(i.currentValue=D)},{immediate:!0}),Xe(()=>{var H;const{min:V,max:D,modelValue:B}=a,z=(H=s.value)==null?void 0:H.input;if(z.setAttribute("role","spinbutton"),Number.isFinite(D)?z.setAttribute("aria-valuemax",String(D)):z.removeAttribute("aria-valuemax"),Number.isFinite(V)?z.setAttribute("aria-valuemin",String(V)):z.removeAttribute("aria-valuemin"),z.setAttribute("aria-valuenow",i.currentValue||i.currentValue===0?String(i.currentValue):""),z.setAttribute("aria-disabled",String(m.value)),!Ie(B)&&B!=null){let F=Number(B);Number.isNaN(F)&&(F=null),n(Ue,F)}z.addEventListener("wheel",U,{passive:!1})}),Wa(()=>{var H,V;const D=(H=s.value)==null?void 0:H.input;D==null||D.setAttribute("aria-valuenow",`${(V=i.currentValue)!=null?V:""}`)}),t({focus:N,blur:P}),(H,V)=>(_(),M("div",{class:$([o(r).b(),o(r).m(o(v)),o(r).is("disabled",o(m)),o(r).is("without-controls",!H.controls),o(r).is("controls-right",o(h))]),onDragstart:Ae(()=>{},["prevent"])},[H.controls?qe((_(),M("span",{key:0,role:"button","aria-label":o(l)("el.inputNumber.decrease"),class:$([o(r).e("decrease"),o(r).is("disabled",o(c))]),onKeydown:kt(b,["enter"])},[Q(H.$slots,"decrease-icon",{},()=>[q(o(Me),null,{default:G(()=>[o(h)?(_(),ae(o(Ma),{key:0})):(_(),ae(o(K1),{key:1}))]),_:1})])],42,["aria-label","onKeydown"])),[[o(Fs),b]]):ee("v-if",!0),H.controls?qe((_(),M("span",{key:1,role:"button","aria-label":o(l)("el.inputNumber.increase"),class:$([o(r).e("increase"),o(r).is("disabled",o(d))]),onKeydown:kt(w,["enter"])},[Q(H.$slots,"increase-icon",{},()=>[q(o(Me),null,{default:G(()=>[o(h)?(_(),ae(o(bi),{key:0})):(_(),ae(o(id),{key:1}))]),_:1})])],42,["aria-label","onKeydown"])),[[o(Fs),w]]):ee("v-if",!0),q(o(Cn),{id:H.id,ref_key:"input",ref:s,type:"number",step:H.step,"model-value":o(p),placeholder:H.placeholder,readonly:H.readonly,disabled:o(m),size:o(v),max:H.max,min:H.min,name:H.name,"aria-label":H.ariaLabel,"validate-event":!1,onKeydown:[kt(Ae(w,["prevent"]),["up"]),kt(Ae(b,["prevent"]),["down"])],onBlur:R,onFocus:L,onInput:O,onChange:I},Yn({_:2},[H.$slots.prefix?{name:"prefix",fn:G(()=>[Q(H.$slots,"prefix")])}:void 0,H.$slots.suffix?{name:"suffix",fn:G(()=>[Q(H.$slots,"suffix")])}:void 0]),1032,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","aria-label","onKeydown"])],42,["onDragstart"]))}});var eB=ve(QR,[["__file","input-number.vue"]]);const Fh=We(eB),tB=pe({modelValue:{type:X(Array)},max:Number,tagType:{...Da.type,default:"info"},tagEffect:Da.effect,trigger:{type:X(String),default:Ce.enter},draggable:{type:Boolean,default:!1},size:qt,clearable:Boolean,disabled:{type:Boolean,default:void 0},validateEvent:{type:Boolean,default:!0},readonly:Boolean,autofocus:Boolean,id:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},placeholder:String,autocomplete:{type:String,default:"off"},ariaLabel:String}),nB={[Ue]:e=>Ee(e)||vt(e),[Ct]:e=>Ee(e)||vt(e),[fn]:e=>Ve(e),"add-tag":e=>Ve(e),"remove-tag":e=>Ve(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0};function aB({props:e,emit:t,formItem:n}){const a=gn(),l=jt(),r=Ot(),s=A(),i=C(()=>["small"].includes(l.value)?"small":"default"),u=C(()=>{var N;return(N=e.modelValue)!=null&&N.length?void 0:e.placeholder}),c=C(()=>!(e.readonly||a.value)),d=C(()=>{var N,P;return vt(e.max)?!1:((P=(N=e.modelValue)==null?void 0:N.length)!=null?P:0)>=e.max}),f=N=>{if(d.value){s.value=void 0;return}S.value||t(fn,N.target.value)},h=N=>{var P;if(!S.value)switch(N.code){case e.trigger:N.preventDefault(),N.stopPropagation(),v();break;case Ce.numpadEnter:e.trigger===Ce.enter&&(N.preventDefault(),N.stopPropagation(),v());break;case Ce.backspace:!s.value&&((P=e.modelValue)!=null&&P.length)&&(N.preventDefault(),N.stopPropagation(),m(e.modelValue.length-1));break}},v=()=>{var N,P;const L=(N=s.value)==null?void 0:N.trim();if(!L||d.value)return;const R=[...(P=e.modelValue)!=null?P:[],L];t(Ue,R),t(Ct,R),t("add-tag",L),s.value=void 0},m=N=>{var P;const L=((P=e.modelValue)!=null?P:[]).slice(),[R]=L.splice(N,1);t(Ue,L),t(Ct,L),t("remove-tag",R)},p=()=>{s.value=void 0,t(Ue,void 0),t(Ct,void 0),t("clear")},y=(N,P,L)=>{var R;const K=((R=e.modelValue)!=null?R:[]).slice(),[U]=K.splice(N,1),H=P>N&&L==="before"?-1:P{var N;(N=r.value)==null||N.focus()},x=()=>{var N;(N=r.value)==null||N.blur()},{wrapperRef:w,isFocused:b}=dl(r,{beforeFocus(){return a.value},afterBlur(){var N;v(),e.validateEvent&&((N=n==null?void 0:n.validate)==null||N.call(n,"blur").catch(P=>void 0))}}),{isComposing:S,handleCompositionStart:E,handleCompositionUpdate:O,handleCompositionEnd:I}=zr({afterComposition:f});return ue(()=>e.modelValue,()=>{var N;e.validateEvent&&((N=n==null?void 0:n.validate)==null||N.call(n,Ct).catch(P=>void 0))}),{inputRef:r,wrapperRef:w,isFocused:b,isComposing:S,inputValue:s,size:l,tagSize:i,placeholder:u,closable:c,disabled:a,inputLimit:d,handleDragged:y,handleInput:f,handleKeydown:h,handleAddTag:v,handleRemoveTag:m,handleClear:p,handleCompositionStart:E,handleCompositionUpdate:O,handleCompositionEnd:I,focus:g,blur:x}}function lB(){const e=A(!1);return{hovering:e,handleMouseEnter:()=>{e.value=!0},handleMouseLeave:()=>{e.value=!1}}}function qd(){const e=Ot(),t=A(0),n=11,a=C(()=>({minWidth:`${Math.max(t.value,n)}px`}));return At(e,()=>{var r,s;t.value=(s=(r=e.value)==null?void 0:r.getBoundingClientRect().width)!=null?s:0}),{calculatorRef:e,calculatorWidth:t,inputStyle:a}}function oB({wrapperRef:e,handleDragged:t,afterDragged:n}){const a=de("input-tag"),l=Ot(),r=A(!1);let s,i,u,c;function d(m){return`.${a.e("inner")} .${a.namespace.value}-tag:nth-child(${m+1})`}function f(m,p){s=p,i=e.value.querySelector(d(p)),i&&(i.style.opacity="0.5"),m.dataTransfer.effectAllowed="move"}function h(m,p){if(u=p,m.preventDefault(),m.dataTransfer.dropEffect="move",vt(s)||s===p){r.value=!1;return}const y=e.value.querySelector(d(p)).getBoundingClientRect(),g=s+1!==p,x=s-1!==p,w=m.clientX-y.left,b=g?x?.5:1:-1,S=x?g?.5:0:1;w<=y.width*b?c="before":w>y.width*S?c="after":c=void 0;const E=e.value.querySelector(`.${a.e("inner")}`),O=E.getBoundingClientRect(),I=Number.parseFloat(Aa(E,"gap"))/2,N=y.top-O.top;let P=-9999;if(c==="before")P=Math.max(y.left-O.left-I,Math.floor(-I/2));else if(c==="after"){const L=y.right-O.left;P=L+(O.width===L?Math.floor(I/2):I)}N1(l.value,{top:`${N}px`,left:`${P}px`}),r.value=!!c}function v(m){m.preventDefault(),i&&(i.style.opacity=""),c&&!vt(s)&&!vt(u)&&s!==u&&t(s,u,c),r.value=!1,s=void 0,i=null,u=void 0,c=void 0,n==null||n()}return{dropIndicatorRef:l,showDropIndicator:r,handleDragStart:f,handleDragOver:h,handleDragEnd:v}}function rB({props:e,isFocused:t,hovering:n,disabled:a,inputValue:l,size:r,validateState:s,validateIcon:i,needStatusIcon:u}){const c=Ka(),d=Xt(),f=de("input-tag"),h=de("input"),v=C(()=>[f.b(),f.is("focused",t.value),f.is("hovering",n.value),f.is("disabled",a.value),f.m(r.value),f.e("wrapper"),c.class]),m=C(()=>[c.style]),p=C(()=>{var x,w;return[f.e("inner"),f.is("draggable",e.draggable),f.is("left-space",!((x=e.modelValue)!=null&&x.length)&&!d.prefix),f.is("right-space",!((w=e.modelValue)!=null&&w.length)&&!g.value)]}),y=C(()=>{var x;return e.clearable&&!a.value&&!e.readonly&&(((x=e.modelValue)==null?void 0:x.length)||l.value)&&(t.value||n.value)}),g=C(()=>d.suffix||y.value||s.value&&i.value&&u.value);return{ns:f,nsInput:h,containerKls:v,containerStyle:m,innerKls:p,showClear:y,showSuffix:g}}const sB=T({name:"ElInputTag",inheritAttrs:!1}),iB=T({...sB,props:tB,emits:nB,setup(e,{expose:t,emit:n}){const a=e,l=Pr(),r=Xt(),{form:s,formItem:i}=mn(),{inputId:u}=ea(a,{formItemContext:i}),c=C(()=>{var le;return(le=s==null?void 0:s.statusIcon)!=null?le:!1}),d=C(()=>(i==null?void 0:i.validateState)||""),f=C(()=>d.value&&ki[d.value]),{inputRef:h,wrapperRef:v,isFocused:m,inputValue:p,size:y,tagSize:g,placeholder:x,closable:w,disabled:b,handleDragged:S,handleInput:E,handleKeydown:O,handleRemoveTag:I,handleClear:N,handleCompositionStart:P,handleCompositionUpdate:L,handleCompositionEnd:R,focus:K,blur:U}=aB({props:a,emit:n,formItem:i}),{hovering:H,handleMouseEnter:V,handleMouseLeave:D}=lB(),{calculatorRef:B,inputStyle:z}=qd(),{dropIndicatorRef:F,showDropIndicator:W,handleDragStart:Z,handleDragOver:j,handleDragEnd:ne}=oB({wrapperRef:v,handleDragged:S,afterDragged:K}),{ns:oe,nsInput:ce,containerKls:te,containerStyle:se,innerKls:fe,showClear:xe,showSuffix:me}=rB({props:a,hovering:H,isFocused:m,inputValue:p,disabled:b,size:y,validateState:d,validateIcon:f,needStatusIcon:c});return t({focus:K,blur:U}),(le,we)=>(_(),M("div",{ref_key:"wrapperRef",ref:v,class:$(o(te)),style:Oe(o(se)),onMouseenter:o(V),onMouseleave:o(D)},[o(r).prefix?(_(),M("div",{key:0,class:$(o(oe).e("prefix"))},[Q(le.$slots,"prefix")],2)):ee("v-if",!0),k("div",{class:$(o(fe))},[(_(!0),M(ze,null,rt(le.modelValue,(Le,De)=>(_(),ae(o(yo),{key:De,size:o(g),closable:o(w),type:le.tagType,effect:le.tagEffect,draggable:o(w)&&le.draggable,"disable-transitions":"",onClose:Ye=>o(I)(De),onDragstart:Ye=>o(Z)(Ye,De),onDragover:Ye=>o(j)(Ye,De),onDragend:o(ne),onDrop:Ae(()=>{},["stop"])},{default:G(()=>[Q(le.$slots,"tag",{value:Le,index:De},()=>[ot(he(Le),1)])]),_:2},1032,["size","closable","type","effect","draggable","onClose","onDragstart","onDragover","onDragend","onDrop"]))),128)),k("div",{class:$(o(oe).e("input-wrapper"))},[qe(k("input",tt({id:o(u),ref_key:"inputRef",ref:h,"onUpdate:modelValue":Le=>Sn(p)?p.value=Le:null},o(l),{type:"text",minlength:le.minlength,maxlength:le.maxlength,disabled:o(b),readonly:le.readonly,autocomplete:le.autocomplete,tabindex:le.tabindex,placeholder:o(x),autofocus:le.autofocus,ariaLabel:le.ariaLabel,class:o(oe).e("input"),style:o(z),onCompositionstart:o(P),onCompositionupdate:o(L),onCompositionend:o(R),onInput:o(E),onKeydown:o(O)}),null,16,["id","onUpdate:modelValue","minlength","maxlength","disabled","readonly","autocomplete","tabindex","placeholder","autofocus","ariaLabel","onCompositionstart","onCompositionupdate","onCompositionend","onInput","onKeydown"]),[[si,o(p)]]),k("span",{ref_key:"calculatorRef",ref:B,"aria-hidden":"true",class:$(o(oe).e("input-calculator")),textContent:he(o(p))},null,10,["textContent"])],2),qe(k("div",{ref_key:"dropIndicatorRef",ref:F,class:$(o(oe).e("drop-indicator"))},null,2),[[pt,o(W)]])],2),o(me)?(_(),M("div",{key:1,class:$(o(oe).e("suffix"))},[Q(le.$slots,"suffix"),o(xe)?(_(),ae(o(Me),{key:0,class:$([o(oe).e("icon"),o(oe).e("clear")]),onMousedown:Ae(o(zt),["prevent"]),onClick:o(N)},{default:G(()=>[q(o($a))]),_:1},8,["class","onMousedown","onClick"])):ee("v-if",!0),o(d)&&o(f)&&o(c)?(_(),ae(o(Me),{key:1,class:$([o(ce).e("icon"),o(ce).e("validateIcon"),o(ce).is("loading",o(d)==="validating")])},{default:G(()=>[(_(),ae(Qe(o(f))))]),_:1},8,["class"])):ee("v-if",!0)],2)):ee("v-if",!0)],46,["onMouseenter","onMouseleave"]))}});var uB=ve(iB,[["__file","input-tag.vue"]]);const cB=We(uB),dB=pe({type:{type:String,values:["primary","success","warning","info","danger","default"],default:"default"},underline:{type:Boolean,default:!0},disabled:Boolean,href:{type:String,default:""},target:{type:String,default:"_self"},icon:{type:St}}),fB={click:e=>e instanceof MouseEvent},pB=T({name:"ElLink"}),vB=T({...pB,props:dB,emits:fB,setup(e,{emit:t}){const n=e,a=de("link"),l=C(()=>[a.b(),a.m(n.type),a.is("disabled",n.disabled),a.is("underline",n.underline&&!n.disabled)]);function r(s){n.disabled||t("click",s)}return(s,i)=>(_(),M("a",{class:$(o(l)),href:s.disabled||!s.href?void 0:s.href,target:s.disabled||!s.href?void 0:s.target,onClick:r},[s.icon?(_(),ae(o(Me),{key:0},{default:G(()=>[(_(),ae(Qe(s.icon)))]),_:1})):ee("v-if",!0),s.$slots.default?(_(),M("span",{key:1,class:$(o(a).e("inner"))},[Q(s.$slots,"default")],2)):ee("v-if",!0),s.$slots.icon?Q(s.$slots,"icon",{key:2}):ee("v-if",!0)],10,["href","target"]))}});var hB=ve(vB,[["__file","link.vue"]]);const mB=We(hB);let gB=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",a=>{let l=!1;switch(a.code){case Ce.down:{this.gotoSubIndex(this.subIndex+1),l=!0;break}case Ce.up:{this.gotoSubIndex(this.subIndex-1),l=!0;break}case Ce.tab:{us(t,"mouseleave");break}case Ce.enter:case Ce.numpadEnter:case Ce.space:{l=!0,a.currentTarget.click();break}}return l&&(a.preventDefault(),a.stopPropagation()),!1})})}},yB=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 gB(this,n)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{let n=!1;switch(t.code){case Ce.down:{us(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),n=!0;break}case Ce.up:{us(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),n=!0;break}case Ce.tab:{us(t.currentTarget,"mouseleave");break}case Ce.enter:case Ce.numpadEnter:case Ce.space:{n=!0,t.currentTarget.click();break}}n&&t.preventDefault()})}},_B=class{constructor(t,n){this.domNode=t,this.init(n)}init(t){const n=this.domNode.childNodes;Array.from(n).forEach(a=>{a.nodeType===1&&new yB(a,t)})}};const bB=T({name:"ElMenuCollapseTransition",setup(){const e=de("menu");return{listeners:{onBeforeEnter:n=>n.style.opacity="0.2",onEnter(n,a){jn(n,`${e.namespace.value}-opacity-transition`),n.style.opacity="1",a()},onAfterEnter(n){kn(n,`${e.namespace.value}-opacity-transition`),n.style.opacity=""},onBeforeLeave(n){n.dataset||(n.dataset={}),An(n,e.m("collapse"))?(kn(n,e.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),jn(n,e.m("collapse"))):(jn(n,e.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),kn(n,e.m("collapse"))),n.style.width=`${n.scrollWidth}px`,n.style.overflow="hidden"},onLeave(n){jn(n,"horizontal-collapse-transition"),n.style.width=`${n.dataset.scrollWidth}px`}}}}});function wB(e,t,n,a,l,r){return _(),ae(tn,tt({mode:"out-in"},e.listeners),{default:G(()=>[Q(e.$slots,"default")]),_:3},16)}var CB=ve(bB,[["render",wB],["__file","menu-collapse-transition.vue"]]);function Kh(e,t){const n=C(()=>{let l=e.parent;const r=[t.value];for(;l.type.name!=="ElMenu";)l.props.index&&r.unshift(l.props.index),l=l.parent;return r});return{parentMenu:C(()=>{let l=e.parent;for(;l&&!["ElMenu","ElSubMenu"].includes(l.type.name);)l=l.parent;return l}),indexPath:n}}function SB(e){return C(()=>{const n=e.backgroundColor;return n?new Av(n).shade(20).toString():""})}const Wh=(e,t)=>{const n=de("menu");return C(()=>n.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":SB(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},kB=pe({index:{type:String,required:!0},showTimeout:Number,hideTimeout:Number,popperClass:String,disabled:Boolean,teleported:{type:Boolean,default:void 0},popperOffset:Number,expandCloseIcon:{type:St},expandOpenIcon:{type:St},collapseCloseIcon:{type:St},collapseOpenIcon:{type:St}}),cu="ElSubMenu";var Ud=T({name:cu,props:kB,setup(e,{slots:t,expose:n}){const a=et(),{indexPath:l,parentMenu:r}=Kh(a,C(()=>e.index)),s=de("menu"),i=de("sub-menu"),u=Se("rootMenu");u||Gt(cu,"can not inject root menu");const c=Se(`subMenu:${r.value.uid}`);c||Gt(cu,"can not inject sub menu");const d=A({}),f=A({});let h;const v=A(!1),m=A(),p=A(null),y=C(()=>I.value==="horizontal"&&x.value?"bottom-start":"right-start"),g=C(()=>I.value==="horizontal"&&x.value||I.value==="vertical"&&!u.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?E.value?e.expandOpenIcon:e.expandCloseIcon:Ma:e.collapseCloseIcon&&e.collapseOpenIcon?E.value?e.collapseOpenIcon:e.collapseCloseIcon:En),x=C(()=>c.level===0),w=C(()=>{const F=e.teleported;return F===void 0?x.value:F}),b=C(()=>u.props.collapse?`${s.namespace.value}-zoom-in-left`:`${s.namespace.value}-zoom-in-top`),S=C(()=>I.value==="horizontal"&&x.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","right","right-end","left-start","bottom-start","bottom-end","top-start","top-end"]),E=C(()=>u.openedMenus.includes(e.index)),O=C(()=>{let F=!1;return Object.values(d.value).forEach(W=>{W.active&&(F=!0)}),Object.values(f.value).forEach(W=>{W.active&&(F=!0)}),F}),I=C(()=>u.props.mode),N=_t({index:e.index,indexPath:l,active:O}),P=Wh(u.props,c.level+1),L=C(()=>{var F;return(F=e.popperOffset)!=null?F:u.props.popperOffset}),R=C(()=>{var F;return(F=e.popperClass)!=null?F:u.props.popperClass}),K=C(()=>{var F;return(F=e.showTimeout)!=null?F:u.props.showTimeout}),U=C(()=>{var F;return(F=e.hideTimeout)!=null?F:u.props.hideTimeout}),H=()=>{var F,W,Z;return(Z=(W=(F=p.value)==null?void 0:F.popperRef)==null?void 0:W.popperInstanceRef)==null?void 0:Z.destroy()},V=F=>{F||H()},D=()=>{u.props.menuTrigger==="hover"&&u.props.mode==="horizontal"||u.props.collapse&&u.props.mode==="vertical"||e.disabled||u.handleSubMenuClick({index:e.index,indexPath:l.value,active:O.value})},B=(F,W=K.value)=>{var Z;if(F.type!=="focus"){if(u.props.menuTrigger==="click"&&u.props.mode==="horizontal"||!u.props.collapse&&u.props.mode==="vertical"||e.disabled){c.mouseInChild.value=!0;return}c.mouseInChild.value=!0,h==null||h(),{stop:h}=Nl(()=>{u.openMenu(e.index,l.value)},W),w.value&&((Z=r.value.vnode.el)==null||Z.dispatchEvent(new MouseEvent("mouseenter")))}},z=(F=!1)=>{var W;if(u.props.menuTrigger==="click"&&u.props.mode==="horizontal"||!u.props.collapse&&u.props.mode==="vertical"){c.mouseInChild.value=!1;return}h==null||h(),c.mouseInChild.value=!1,{stop:h}=Nl(()=>!v.value&&u.closeMenu(e.index,l.value),U.value),w.value&&F&&((W=c.handleMouseleave)==null||W.call(c,!0))};ue(()=>u.props.collapse,F=>V(!!F));{const F=Z=>{f.value[Z.index]=Z},W=Z=>{delete f.value[Z.index]};it(`subMenu:${a.uid}`,{addSubMenu:F,removeSubMenu:W,handleMouseleave:z,mouseInChild:v,level:c.level+1})}return n({opened:E}),Xe(()=>{u.addSubMenu(N),c.addSubMenu(N)}),$t(()=>{c.removeSubMenu(N),u.removeSubMenu(N)}),()=>{var F;const W=[(F=t.title)==null?void 0:F.call(t),Pe(Me,{class:i.e("icon-arrow"),style:{transform:E.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&u.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>Ve(g.value)?Pe(a.appContext.components[g.value]):Pe(g.value)})],Z=u.isMenuPopup?Pe(hn,{ref:p,visible:E.value,effect:"light",pure:!0,offset:L.value,showArrow:!1,persistent:!0,popperClass:R.value,placement:y.value,teleported:w.value,fallbackPlacements:S.value,transition:b.value,gpuAcceleration:!1},{content:()=>{var j;return Pe("div",{class:[s.m(I.value),s.m("popup-container"),R.value],onMouseenter:ne=>B(ne,100),onMouseleave:()=>z(!0),onFocus:ne=>B(ne,100)},[Pe("ul",{class:[s.b(),s.m("popup"),s.m(`popup-${y.value}`)],style:P.value},[(j=t.default)==null?void 0:j.call(t)])])},default:()=>Pe("div",{class:i.e("title"),onClick:D},W)}):Pe(ze,{},[Pe("div",{class:i.e("title"),ref:m,onClick:D},W),Pe(Ti,{},{default:()=>{var j;return qe(Pe("ul",{role:"menu",class:[s.b(),s.m("inline")],style:P.value},[(j=t.default)==null?void 0:j.call(t)]),[[pt,E.value]])}})]);return Pe("li",{class:[i.b(),i.is("active",O.value),i.is("opened",E.value),i.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:E.value,onMouseenter:B,onMouseleave:()=>z(),onFocus:B},[Z])}}});const EB=pe({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:X(Array),default:()=>Vt([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,closeOnClickOutside:Boolean,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperOffset:{type:Number,default:6},ellipsisIcon:{type:St,default:()=>W1},popperEffect:{type:X(String),default:"dark"},popperClass:String,showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300}}),du=e=>Ee(e)&&e.every(t=>Ve(t)),xB={close:(e,t)=>Ve(e)&&du(t),open:(e,t)=>Ve(e)&&du(t),select:(e,t,n,a)=>Ve(e)&&du(t)&&ht(n)&&(a===void 0||a instanceof Promise)};var MB=T({name:"ElMenu",props:EB,emits:xB,setup(e,{emit:t,slots:n,expose:a}){const l=et(),r=l.appContext.config.globalProperties.$router,s=A(),i=de("menu"),u=de("sub-menu"),c=A(-1),d=A(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),f=A(e.defaultActive),h=A({}),v=A({}),m=C(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),p=()=>{const H=f.value&&h.value[f.value];if(!H||e.mode==="horizontal"||e.collapse)return;H.indexPath.forEach(D=>{const B=v.value[D];B&&y(D,B.indexPath)})},y=(H,V)=>{d.value.includes(H)||(e.uniqueOpened&&(d.value=d.value.filter(D=>V.includes(D))),d.value.push(H),t("open",H,V))},g=H=>{const V=d.value.indexOf(H);V!==-1&&d.value.splice(V,1)},x=(H,V)=>{g(H),t("close",H,V)},w=({index:H,indexPath:V})=>{d.value.includes(H)?x(H,V):y(H,V)},b=H=>{(e.mode==="horizontal"||e.collapse)&&(d.value=[]);const{index:V,indexPath:D}=H;if(!(Zt(V)||Zt(D)))if(e.router&&r){const B=H.route||V,z=r.push(B).then(F=>(F||(f.value=V),F));t("select",V,D,{index:V,indexPath:D,route:B},z)}else f.value=V,t("select",V,D,{index:V,indexPath:D})},S=H=>{const V=h.value,D=V[H]||f.value&&V[f.value]||V[e.defaultActive];D?f.value=D.index:f.value=H},E=H=>{const V=getComputedStyle(H),D=Number.parseInt(V.marginLeft,10),B=Number.parseInt(V.marginRight,10);return H.offsetWidth+D+B||0},O=()=>{var H,V;if(!s.value)return-1;const D=Array.from((V=(H=s.value)==null?void 0:H.childNodes)!=null?V:[]).filter(oe=>oe.nodeName!=="#text"||oe.nodeValue),B=64,z=getComputedStyle(s.value),F=Number.parseInt(z.paddingLeft,10),W=Number.parseInt(z.paddingRight,10),Z=s.value.clientWidth-F-W;let j=0,ne=0;return D.forEach((oe,ce)=>{oe.nodeName!=="#comment"&&(j+=E(oe),j<=Z-B&&(ne=ce+1))}),ne===D.length?-1:ne},I=H=>v.value[H].indexPath,N=(H,V=33.34)=>{let D;return()=>{D&&clearTimeout(D),D=setTimeout(()=>{H()},V)}};let P=!0;const L=()=>{if(c.value===O())return;const H=()=>{c.value=-1,Ne(()=>{c.value=O()})};P?H():N(H)(),P=!1};ue(()=>e.defaultActive,H=>{h.value[H]||(f.value=""),S(H)}),ue(()=>e.collapse,H=>{H&&(d.value=[])}),ue(h.value,p);let R;cn(()=>{e.mode==="horizontal"&&e.ellipsis?R=At(s,L).stop:R==null||R()});const K=A(!1);{const H=z=>{v.value[z.index]=z},V=z=>{delete v.value[z.index]};it("rootMenu",_t({props:e,openedMenus:d,items:h,subMenus:v,activeIndex:f,isMenuPopup:m,addMenuItem:z=>{h.value[z.index]=z},removeMenuItem:z=>{delete h.value[z.index]},addSubMenu:H,removeSubMenu:V,openMenu:y,closeMenu:x,handleMenuItemClick:b,handleSubMenuClick:w})),it(`subMenu:${l.uid}`,{addSubMenu:H,removeSubMenu:V,mouseInChild:K,level:0})}Xe(()=>{e.mode==="horizontal"&&new _B(l.vnode.el,i.namespace.value)}),a({open:V=>{const{indexPath:D}=v.value[V];D.forEach(B=>y(B,D))},close:g,handleResize:L});const U=Wh(e,0);return()=>{var H,V;let D=(V=(H=n.default)==null?void 0:H.call(n))!=null?V:[];const B=[];if(e.mode==="horizontal"&&s.value){const W=ll(D),Z=c.value===-1?W:W.slice(0,c.value),j=c.value===-1?[]:W.slice(c.value);j!=null&&j.length&&e.ellipsis&&(D=Z,B.push(Pe(Ud,{index:"sub-menu-more",class:u.e("hide-arrow"),popperOffset:e.popperOffset},{title:()=>Pe(Me,{class:u.e("icon-more")},{default:()=>Pe(e.ellipsisIcon)}),default:()=>j})))}const z=e.closeOnClickOutside?[[Fa,()=>{d.value.length&&(K.value||(d.value.forEach(W=>t("close",W,I(W))),d.value=[]))}]]:[],F=qe(Pe("ul",{key:String(e.collapse),role:"menubar",ref:s,style:U.value,class:{[i.b()]:!0,[i.m(e.mode)]:!0,[i.m("collapse")]:e.collapse}},[...D,...B]),z);return e.collapseTransition&&e.mode==="vertical"?Pe(CB,()=>F):F}}});const $B=pe({index:{type:X([String,null]),default:null},route:{type:X([String,Object])},disabled:Boolean}),TB={click:e=>Ve(e.index)&&Ee(e.indexPath)},fu="ElMenuItem",OB=T({name:fu,components:{ElTooltip:hn},props:$B,emits:TB,setup(e,{emit:t}){const n=et(),a=Se("rootMenu"),l=de("menu"),r=de("menu-item");a||Gt(fu,"can not inject root menu");const{parentMenu:s,indexPath:i}=Kh(n,yt(e,"index")),u=Se(`subMenu:${s.value.uid}`);u||Gt(fu,"can not inject sub menu");const c=C(()=>e.index===a.activeIndex),d=_t({index:e.index,indexPath:i,active:c}),f=()=>{e.disabled||(a.handleMenuItemClick({index:e.index,indexPath:i.value,route:e.route}),t("click",d))};return Xe(()=>{u.addSubMenu(d),a.addMenuItem(d)}),$t(()=>{u.removeSubMenu(d),a.removeMenuItem(d)}),{parentMenu:s,rootMenu:a,active:c,nsMenu:l,nsMenuItem:r,handleClick:f}}});function NB(e,t,n,a,l,r){const s=Ze("el-tooltip");return _(),M("li",{class:$([e.nsMenuItem.b(),e.nsMenuItem.is("active",e.active),e.nsMenuItem.is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:e.handleClick},[e.parentMenu.type.name==="ElMenu"&&e.rootMenu.props.collapse&&e.$slots.title?(_(),ae(s,{key:0,effect:e.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:G(()=>[Q(e.$slots,"title")]),default:G(()=>[k("div",{class:$(e.nsMenu.be("tooltip","trigger"))},[Q(e.$slots,"default")],2)]),_:3},8,["effect"])):(_(),M(ze,{key:1},[Q(e.$slots,"default"),Q(e.$slots,"title")],64))],10,["onClick"])}var jh=ve(OB,[["render",NB],["__file","menu-item.vue"]]);const IB={title:String},PB="ElMenuItemGroup",zB=T({name:PB,props:IB,setup(){return{ns:de("menu-item-group")}}});function AB(e,t,n,a,l,r){return _(),M("li",{class:$(e.ns.b())},[k("div",{class:$(e.ns.e("title"))},[e.$slots.title?Q(e.$slots,"title",{key:1}):(_(),M(ze,{key:0},[ot(he(e.title),1)],64))],2),k("ul",null,[Q(e.$slots,"default")])],2)}var qh=ve(zB,[["render",AB],["__file","menu-item-group.vue"]]);const VB=We(MB,{MenuItem:jh,MenuItemGroup:qh,SubMenu:Ud}),LB=Lt(jh),RB=Lt(qh),BB=Lt(Ud),HB=pe({icon:{type:St,default:()=>A1},title:String,content:{type:String,default:""}}),DB={back:()=>!0},FB=T({name:"ElPageHeader"}),KB=T({...FB,props:HB,emits:DB,setup(e,{emit:t}){const{t:n}=ct(),a=de("page-header");function l(){t("back")}return(r,s)=>(_(),M("div",{class:$([o(a).b(),{[o(a).m("has-breadcrumb")]:!!r.$slots.breadcrumb,[o(a).m("has-extra")]:!!r.$slots.extra,[o(a).is("contentful")]:!!r.$slots.default}])},[r.$slots.breadcrumb?(_(),M("div",{key:0,class:$(o(a).e("breadcrumb"))},[Q(r.$slots,"breadcrumb")],2)):ee("v-if",!0),k("div",{class:$(o(a).e("header"))},[k("div",{class:$(o(a).e("left"))},[k("div",{class:$(o(a).e("back")),role:"button",tabindex:"0",onClick:l},[r.icon||r.$slots.icon?(_(),M("div",{key:0,"aria-label":r.title||o(n)("el.pageHeader.title"),class:$(o(a).e("icon"))},[Q(r.$slots,"icon",{},()=>[r.icon?(_(),ae(o(Me),{key:0},{default:G(()=>[(_(),ae(Qe(r.icon)))]),_:1})):ee("v-if",!0)])],10,["aria-label"])):ee("v-if",!0),k("div",{class:$(o(a).e("title"))},[Q(r.$slots,"title",{},()=>[ot(he(r.title||o(n)("el.pageHeader.title")),1)])],2)],2),q(o(Th),{direction:"vertical"}),k("div",{class:$(o(a).e("content"))},[Q(r.$slots,"content",{},()=>[ot(he(r.content),1)])],2)],2),r.$slots.extra?(_(),M("div",{key:0,class:$(o(a).e("extra"))},[Q(r.$slots,"extra")],2)):ee("v-if",!0)],2),r.$slots.default?(_(),M("div",{key:1,class:$(o(a).e("main"))},[Q(r.$slots,"default")],2)):ee("v-if",!0)],2))}});var WB=ve(KB,[["__file","page-header.vue"]]);const jB=We(WB),Uh=Symbol("elPaginationKey"),qB=pe({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:St}}),UB={click:e=>e instanceof MouseEvent},YB=T({name:"ElPaginationPrev"}),GB=T({...YB,props:qB,emits:UB,setup(e){const t=e,{t:n}=ct(),a=C(()=>t.disabled||t.currentPage<=1);return(l,r)=>(_(),M("button",{type:"button",class:"btn-prev",disabled:o(a),"aria-label":l.prevText||o(n)("el.pagination.prev"),"aria-disabled":o(a),onClick:s=>l.$emit("click",s)},[l.prevText?(_(),M("span",{key:0},he(l.prevText),1)):(_(),ae(o(Me),{key:1},{default:G(()=>[(_(),ae(Qe(l.prevIcon)))]),_:1}))],8,["disabled","aria-label","aria-disabled","onClick"]))}});var XB=ve(GB,[["__file","prev.vue"]]);const ZB=pe({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:St}}),JB=T({name:"ElPaginationNext"}),QB=T({...JB,props:ZB,emits:["click"],setup(e){const t=e,{t:n}=ct(),a=C(()=>t.disabled||t.currentPage===t.pageCount||t.pageCount===0);return(l,r)=>(_(),M("button",{type:"button",class:"btn-next",disabled:o(a),"aria-label":l.nextText||o(n)("el.pagination.next"),"aria-disabled":o(a),onClick:s=>l.$emit("click",s)},[l.nextText?(_(),M("span",{key:0},he(l.nextText),1)):(_(),ae(o(Me),{key:1},{default:G(()=>[(_(),ae(Qe(l.nextIcon)))]),_:1}))],8,["disabled","aria-label","aria-disabled","onClick"]))}});var eH=ve(QB,[["__file","next.vue"]]);const Yh=Symbol("ElSelectGroup"),Ro=Symbol("ElSelect");function tH(e,t){const n=Se(Ro),a=Se(Yh,{disabled:!1}),l=C(()=>d(bn(n.props.modelValue),e.value)),r=C(()=>{var v;if(n.props.multiple){const m=bn((v=n.props.modelValue)!=null?v:[]);return!l.value&&m.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),s=C(()=>e.label||(ht(e.value)?"":e.value)),i=C(()=>e.value||e.label||""),u=C(()=>e.disabled||t.groupDisabled||r.value),c=et(),d=(v=[],m)=>{if(ht(e.value)){const p=n.props.valueKey;return v&&v.some(y=>zs(Kt(y,p))===Kt(m,p))}else return v&&v.includes(m)},f=()=>{!e.disabled&&!a.disabled&&(n.states.hoveringIndex=n.optionsArray.indexOf(c.proxy))},h=v=>{const m=new RegExp(Od(v),"i");t.visible=m.test(s.value)||e.created};return ue(()=>s.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),ue(()=>e.value,(v,m)=>{const{remote:p,valueKey:y}=n.props;if(v!==m&&(n.onOptionDestroy(m,c.proxy),n.onOptionCreate(c.proxy)),!e.created&&!p){if(y&&ht(v)&&ht(m)&&v[y]===m[y])return;n.setSelected()}}),ue(()=>a.disabled,()=>{t.groupDisabled=a.disabled},{immediate:!0}),{select:n,currentLabel:s,currentValue:i,itemSelected:l,isDisabled:u,hoverItem:f,updateOption:h}}const nH=T({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:Boolean},setup(e){const t=de("select"),n=on(),a=C(()=>[t.be("dropdown","item"),t.is("disabled",o(i)),t.is("selected",o(s)),t.is("hovering",o(h))]),l=_t({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:r,itemSelected:s,isDisabled:i,select:u,hoverItem:c,updateOption:d}=tH(e,l),{visible:f,hover:h}=nn(l),v=et().proxy;u.onOptionCreate(v),$t(()=>{const p=v.value,{selected:y}=u.states,g=y.some(x=>x.value===v.value);Ne(()=>{u.states.cachedOptions.get(p)===v&&!g&&u.states.cachedOptions.delete(p)}),u.onOptionDestroy(p,v)});function m(){i.value||u.handleOptionSelect(v)}return{ns:t,id:n,containerKls:a,currentLabel:r,itemSelected:s,isDisabled:i,select:u,hoverItem:c,updateOption:d,visible:f,hover:h,selectOptionClick:m,states:l}}});function aH(e,t,n,a,l,r){return qe((_(),M("li",{id:e.id,class:$(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMousemove:e.hoverItem,onClick:Ae(e.selectOptionClick,["stop"])},[Q(e.$slots,"default",{},()=>[k("span",null,he(e.currentLabel),1)])],42,["id","aria-disabled","aria-selected","onMousemove","onClick"])),[[pt,e.visible]])}var Yd=ve(nH,[["render",aH],["__file","option.vue"]]);const lH=T({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=Se(Ro),t=de("select"),n=C(()=>e.props.popperClass),a=C(()=>e.props.multiple),l=C(()=>e.props.fitInputWidth),r=A("");function s(){var i;r.value=`${(i=e.selectRef)==null?void 0:i.offsetWidth}px`}return Xe(()=>{s(),At(e.selectRef,s)}),{ns:t,minWidth:r,popperClass:n,isMultiple:a,isFitInputWidth:l}}});function oH(e,t,n,a,l,r){return _(),M("div",{class:$([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:Oe({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(_(),M("div",{key:0,class:$(e.ns.be("dropdown","header"))},[Q(e.$slots,"header")],2)):ee("v-if",!0),Q(e.$slots,"default"),e.$slots.footer?(_(),M("div",{key:1,class:$(e.ns.be("dropdown","footer"))},[Q(e.$slots,"footer")],2)):ee("v-if",!0)],6)}var rH=ve(lH,[["render",oH],["__file","select-dropdown.vue"]]);const sH=(e,t)=>{const{t:n}=ct(),a=on(),l=de("select"),r=de("input"),s=_t({inputValue:"",options:new Map,cachedOptions:new Map,optionValues:[],selected:[],selectionWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),i=A(null),u=A(null),c=A(null),d=A(null),f=A(null),h=A(null),v=A(null),m=A(null),p=A(null),y=A(null),g=A(null),{isComposing:x,handleCompositionStart:w,handleCompositionUpdate:b,handleCompositionEnd:S}=zr({afterComposition:_e=>bt(_e)}),{wrapperRef:E,isFocused:O,handleBlur:I}=dl(f,{beforeFocus(){return V.value},afterFocus(){e.automaticDropdown&&!N.value&&(N.value=!0,s.menuVisibleOnFocus=!0)},beforeBlur(_e){var Ke,gt;return((Ke=c.value)==null?void 0:Ke.isFocusInsideContent(_e))||((gt=d.value)==null?void 0:gt.isFocusInsideContent(_e))},afterBlur(){N.value=!1,s.menuVisibleOnFocus=!1}}),N=A(!1),P=A(),{form:L,formItem:R}=mn(),{inputId:K}=ea(e,{formItemContext:R}),{valueOnClear:U,isEmptyValue:H}=gi(e),V=C(()=>e.disabled||(L==null?void 0:L.disabled)),D=C(()=>Ee(e.modelValue)?e.modelValue.length>0:!H(e.modelValue)),B=C(()=>{var _e;return(_e=L==null?void 0:L.statusIcon)!=null?_e:!1}),z=C(()=>e.clearable&&!V.value&&s.inputHovering&&D.value),F=C(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),W=C(()=>l.is("reverse",F.value&&N.value)),Z=C(()=>(R==null?void 0:R.validateState)||""),j=C(()=>ki[Z.value]),ne=C(()=>e.remote?300:0),oe=C(()=>e.remote&&!s.inputValue&&s.options.size===0),ce=C(()=>e.loading?e.loadingText||n("el.select.loading"):e.filterable&&s.inputValue&&s.options.size>0&&te.value===0?e.noMatchText||n("el.select.noMatch"):s.options.size===0?e.noDataText||n("el.select.noData"):null),te=C(()=>se.value.filter(_e=>_e.visible).length),se=C(()=>{const _e=Array.from(s.options.values()),Ke=[];return s.optionValues.forEach(gt=>{const Yt=_e.findIndex(yn=>yn.value===gt);Yt>-1&&Ke.push(_e[Yt])}),Ke.length>=_e.length?Ke:_e}),fe=C(()=>Array.from(s.cachedOptions.values())),xe=C(()=>{const _e=se.value.filter(Ke=>!Ke.created).some(Ke=>Ke.currentLabel===s.inputValue);return e.filterable&&e.allowCreate&&s.inputValue!==""&&!_e}),me=()=>{e.filterable&&Je(e.filterMethod)||e.filterable&&e.remote&&Je(e.remoteMethod)||se.value.forEach(_e=>{var Ke;(Ke=_e.updateOption)==null||Ke.call(_e,s.inputValue)})},le=jt(),we=C(()=>["small"].includes(le.value)?"small":"default"),Le=C({get(){return N.value&&!oe.value},set(_e){N.value=_e}}),De=C(()=>{if(e.multiple&&!vt(e.modelValue))return bn(e.modelValue).length===0&&!s.inputValue;const _e=Ee(e.modelValue)?e.modelValue[0]:e.modelValue;return e.filterable||vt(_e)?!s.inputValue:!0}),Ye=C(()=>{var _e;const Ke=(_e=e.placeholder)!=null?_e:n("el.select.placeholder");return e.multiple||!D.value?Ke:s.selectedLabel}),$e=C(()=>Pu?null:"mouseenter");ue(()=>e.modelValue,(_e,Ke)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(s.inputValue="",Te("")),He(),!dn(_e,Ke)&&e.validateEvent&&(R==null||R.validate("change").catch(gt=>void 0))},{flush:"post",deep:!0}),ue(()=>N.value,_e=>{_e?Te(s.inputValue):(s.inputValue="",s.previousQuery=null,s.isBeforeHide=!0),t("visible-change",_e)}),ue(()=>s.options.entries(),()=>{ut&&(He(),e.defaultFirstOption&&(e.filterable||e.remote)&&te.value&&ke())},{flush:"post"}),ue(()=>s.hoveringIndex,_e=>{Ie(_e)&&_e>-1?P.value=se.value[_e]||{}:P.value={},se.value.forEach(Ke=>{Ke.hover=P.value===Ke})}),cn(()=>{s.isBeforeHide||me()});const Te=_e=>{s.previousQuery===_e||x.value||(s.previousQuery=_e,e.filterable&&Je(e.filterMethod)?e.filterMethod(_e):e.filterable&&e.remote&&Je(e.remoteMethod)&&e.remoteMethod(_e),e.defaultFirstOption&&(e.filterable||e.remote)&&te.value?Ne(ke):Ne(at))},ke=()=>{const _e=se.value.filter(yn=>yn.visible&&!yn.disabled&&!yn.states.groupDisabled),Ke=_e.find(yn=>yn.created),gt=_e[0],Yt=se.value.map(yn=>yn.value);s.hoveringIndex=Y(Yt,Ke||gt)},He=()=>{if(e.multiple)s.selectedLabel="";else{const Ke=Ee(e.modelValue)?e.modelValue[0]:e.modelValue,gt=Ge(Ke);s.selectedLabel=gt.currentLabel,s.selected=[gt];return}const _e=[];vt(e.modelValue)||bn(e.modelValue).forEach(Ke=>{_e.push(Ge(Ke))}),s.selected=_e},Ge=_e=>{let Ke;const gt=ku(_e);for(let Ga=s.cachedOptions.size-1;Ga>=0;Ga--){const ma=fe.value[Ga];if(gt?Kt(ma.value,e.valueKey)===Kt(_e,e.valueKey):ma.value===_e){Ke={value:_e,currentLabel:ma.currentLabel,get isDisabled(){return ma.isDisabled}};break}}if(Ke)return Ke;const Yt=gt?_e.label:_e??"";return{value:_e,currentLabel:Yt}},at=()=>{s.hoveringIndex=se.value.findIndex(_e=>s.selected.some(Ke=>pl(Ke)===pl(_e)))},nt=()=>{s.selectionWidth=u.value.getBoundingClientRect().width},be=()=>{s.collapseItemWidth=y.value.getBoundingClientRect().width},je=()=>{var _e,Ke;(Ke=(_e=c.value)==null?void 0:_e.updatePopper)==null||Ke.call(_e)},ft=()=>{var _e,Ke;(Ke=(_e=d.value)==null?void 0:_e.updatePopper)==null||Ke.call(_e)},Tt=()=>{s.inputValue.length>0&&!N.value&&(N.value=!0),Te(s.inputValue)},bt=_e=>{if(s.inputValue=_e.target.value,e.remote)Pt();else return Tt()},Pt=Rn(()=>{Tt()},ne.value),mt=_e=>{dn(e.modelValue,_e)||t(Ct,_e)},sn=_e=>p1(_e,Ke=>{const gt=s.cachedOptions.get(Ke);return gt&&!gt.disabled&&!gt.states.groupDisabled}),Wt=_e=>{if(e.multiple&&_e.code!==Ce.delete&&_e.target.value.length<=0){const Ke=bn(e.modelValue).slice(),gt=sn(Ke);if(gt<0)return;const Yt=Ke[gt];Ke.splice(gt,1),t(Ue,Ke),mt(Ke),t("remove-tag",Yt)}},re=(_e,Ke)=>{const gt=s.selected.indexOf(Ke);if(gt>-1&&!V.value){const Yt=bn(e.modelValue).slice();Yt.splice(gt,1),t(Ue,Yt),mt(Yt),t("remove-tag",Ke.value)}_e.stopPropagation(),Jt()},J=_e=>{_e.stopPropagation();const Ke=e.multiple?[]:U.value;if(e.multiple)for(const gt of s.selected)gt.isDisabled&&Ke.push(gt.value);t(Ue,Ke),mt(Ke),s.hoveringIndex=-1,N.value=!1,t("clear"),Jt()},ie=_e=>{var Ke;if(e.multiple){const gt=bn((Ke=e.modelValue)!=null?Ke:[]).slice(),Yt=Y(gt,_e);Yt>-1?gt.splice(Yt,1):(e.multipleLimit<=0||gt.length{ye(_e)})},Y=(_e=[],Ke)=>vt(Ke)?-1:ht(Ke.value)?_e.findIndex(gt=>dn(Kt(gt,e.valueKey),pl(Ke))):_e.indexOf(Ke.value),ye=_e=>{var Ke,gt,Yt,yn,Ga;const ma=Ee(_e)?_e[0]:_e;let Xa=null;if(ma!=null&&ma.value){const vl=se.value.filter(Do=>Do.value===ma.value);vl.length>0&&(Xa=vl[0].$el)}if(c.value&&Xa){const vl=(yn=(Yt=(gt=(Ke=c.value)==null?void 0:Ke.popperRef)==null?void 0:gt.contentRef)==null?void 0:Yt.querySelector)==null?void 0:yn.call(Yt,`.${l.be("dropdown","wrap")}`);vl&&od(vl,Xa)}(Ga=g.value)==null||Ga.handleScroll()},Fe=_e=>{s.options.set(_e.value,_e),s.cachedOptions.set(_e.value,_e)},lt=(_e,Ke)=>{s.options.get(_e)===Ke&&s.options.delete(_e)},Nt=C(()=>{var _e,Ke;return(Ke=(_e=c.value)==null?void 0:_e.popperRef)==null?void 0:Ke.contentRef}),Ut=()=>{s.isBeforeHide=!1,Ne(()=>ye(s.selected))},Jt=()=>{var _e;(_e=f.value)==null||_e.focus()},Mt=()=>{var _e;if(N.value){N.value=!1,Ne(()=>{var Ke;return(Ke=f.value)==null?void 0:Ke.blur()});return}(_e=f.value)==null||_e.blur()},ln=_e=>{J(_e)},It=_e=>{if(N.value=!1,O.value){const Ke=new FocusEvent("focus",_e);Ne(()=>I(Ke))}},In=()=>{s.inputValue.length>0?s.inputValue="":N.value=!1},Dl=()=>{V.value||(Pu&&(s.inputHovering=!0),s.menuVisibleOnFocus?s.menuVisibleOnFocus=!1:N.value=!N.value)},Kr=()=>{if(!N.value)Dl();else{const _e=se.value[s.hoveringIndex];_e&&!_e.isDisabled&&ie(_e)}},pl=_e=>ht(_e.value)?Kt(_e.value,e.valueKey):_e.value,Di=C(()=>se.value.filter(_e=>_e.visible).every(_e=>_e.isDisabled)),Fl=C(()=>e.multiple?e.collapseTags?s.selected.slice(0,e.maxCollapseTags):s.selected:[]),Fi=C(()=>e.multiple?e.collapseTags?s.selected.slice(e.maxCollapseTags):[]:[]),Wr=_e=>{if(!N.value){N.value=!0;return}if(!(s.options.size===0||te.value===0||x.value)&&!Di.value){_e==="next"?(s.hoveringIndex++,s.hoveringIndex===s.options.size&&(s.hoveringIndex=0)):_e==="prev"&&(s.hoveringIndex--,s.hoveringIndex<0&&(s.hoveringIndex=s.options.size-1));const Ke=se.value[s.hoveringIndex];(Ke.isDisabled||!Ke.visible)&&Wr(_e),Ne(()=>ye(P.value))}},Ki=()=>{if(!u.value)return 0;const _e=window.getComputedStyle(u.value);return Number.parseFloat(_e.gap||"6px")},Wi=C(()=>{const _e=Ki();return{maxWidth:`${y.value&&e.maxCollapseTags===1?s.selectionWidth-s.collapseItemWidth-_e:s.selectionWidth}px`}}),ji=C(()=>({maxWidth:`${s.selectionWidth}px`}));return At(u,nt),At(m,je),At(E,je),At(p,ft),At(y,be),Xe(()=>{He()}),{inputId:K,contentId:a,nsSelect:l,nsInput:r,states:s,isFocused:O,expanded:N,optionsArray:se,hoverOption:P,selectSize:le,filteredOptionsCount:te,updateTooltip:je,updateTagTooltip:ft,debouncedOnInputChange:Pt,onInput:bt,deletePrevTag:Wt,deleteTag:re,deleteSelected:J,handleOptionSelect:ie,scrollToOption:ye,hasModelValue:D,shouldShowPlaceholder:De,currentPlaceholder:Ye,mouseEnterEventName:$e,needStatusIcon:B,showClose:z,iconComponent:F,iconReverse:W,validateState:Z,validateIcon:j,showNewOption:xe,updateOptions:me,collapseTagSize:we,setSelected:He,selectDisabled:V,emptyText:ce,handleCompositionStart:w,handleCompositionUpdate:b,handleCompositionEnd:S,onOptionCreate:Fe,onOptionDestroy:lt,handleMenuEnter:Ut,focus:Jt,blur:Mt,handleClearClick:ln,handleClickOutside:It,handleEsc:In,toggleMenu:Dl,selectOption:Kr,getValueKey:pl,navigateOptions:Wr,dropdownMenuVisible:Le,showTagList:Fl,collapseTagList:Fi,tagStyle:Wi,collapseTagStyle:ji,popperRef:Nt,inputRef:f,tooltipRef:c,tagTooltipRef:d,prefixRef:h,suffixRef:v,selectRef:i,wrapperRef:E,selectionRef:u,scrollbarRef:g,menuRef:m,tagMenuRef:p,collapseItemRef:y}};var iH=T({name:"ElOptions",setup(e,{slots:t}){const n=Se(Ro);let a=[];return()=>{var l,r;const s=(l=t.default)==null?void 0:l.call(t),i=[];function u(c){Ee(c)&&c.forEach(d=>{var f,h,v,m;const p=(f=(d==null?void 0:d.type)||{})==null?void 0:f.name;p==="ElOptionGroup"?u(!Ve(d.children)&&!Ee(d.children)&&Je((h=d.children)==null?void 0:h.default)?(v=d.children)==null?void 0:v.default():d.children):p==="ElOption"?i.push((m=d.props)==null?void 0:m.value):Ee(d.children)&&u(d.children)})}return s.length&&u((r=s[0])==null?void 0:r.children),dn(i,a)||(a=i,n&&(n.states.optionValues=i)),s}}});const uH=pe({name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:qt,effect:{type:X(String),default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:X(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:Boolean,maxCollapseTags:{type:Number,default:1},teleported:Qt.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:St,default:$a},fitInputWidth:Boolean,suffixIcon:{type:St,default:Ma},tagType:{...Da.type,default:"info"},tagEffect:{...Da.effect,default:"light"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:X(String),values:Ya,default:"bottom-start"},fallbackPlacements:{type:X(Array),default:["bottom-start","top-start","right","left"]},tabindex:{type:[String,Number],default:0},appendTo:String,...Po,...rn(["ariaLabel"])}),N2="ElSelect",cH=T({name:N2,componentName:N2,components:{ElSelectMenu:rH,ElOption:Yd,ElOptions:iH,ElTag:yo,ElScrollbar:Ta,ElTooltip:hn,ElIcon:Me},directives:{ClickOutside:Fa},props:uH,emits:[Ue,Ct,"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:t}){const n=C(()=>{const{modelValue:u,multiple:c}=e,d=c?[]:void 0;return Ee(u)?c?u:d:c?d:u}),a=_t({...nn(e),modelValue:n}),l=sH(a,t),{calculatorRef:r,inputStyle:s}=qd();it(Ro,_t({props:a,states:l.states,optionsArray:l.optionsArray,handleOptionSelect:l.handleOptionSelect,onOptionCreate:l.onOptionCreate,onOptionDestroy:l.onOptionDestroy,selectRef:l.selectRef,setSelected:l.setSelected}));const i=C(()=>e.multiple?l.states.selected.map(u=>u.currentLabel):l.states.selectedLabel);return{...l,modelValue:n,selectedLabel:i,calculatorRef:r,inputStyle:s}}});function dH(e,t,n,a,l,r){const s=Ze("el-tag"),i=Ze("el-tooltip"),u=Ze("el-icon"),c=Ze("el-option"),d=Ze("el-options"),f=Ze("el-scrollbar"),h=Ze("el-select-menu"),v=ii("click-outside");return qe((_(),M("div",{ref:"selectRef",class:$([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),[J4(e.mouseEnterEventName)]:m=>e.states.inputHovering=!0,onMouseleave:m=>e.states.inputHovering=!1},[q(i,{ref:"tooltipRef",visible:e.dropdownMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,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,"append-to":e.appendTo,"show-arrow":e.showArrow,offset:e.offset,onBeforeShow:e.handleMenuEnter,onHide:m=>e.states.isBeforeHide=!1},{default:G(()=>{var m;return[k("div",{ref:"wrapperRef",class:$([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:Ae(e.toggleMenu,["prevent"])},[e.$slots.prefix?(_(),M("div",{key:0,ref:"prefixRef",class:$(e.nsSelect.e("prefix"))},[Q(e.$slots,"prefix")],2)):ee("v-if",!0),k("div",{ref:"selectionRef",class:$([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?Q(e.$slots,"tag",{key:0},()=>[(_(!0),M(ze,null,rt(e.showTagList,p=>(_(),M("div",{key:e.getValueKey(p),class:$(e.nsSelect.e("selected-item"))},[q(s,{closable:!e.selectDisabled&&!p.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:Oe(e.tagStyle),onClose:y=>e.deleteTag(y,p)},{default:G(()=>[k("span",{class:$(e.nsSelect.e("tags-text"))},[Q(e.$slots,"label",{label:p.currentLabel,value:p.value},()=>[ot(he(p.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?(_(),ae(i,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:G(()=>[k("div",{ref:"collapseItemRef",class:$(e.nsSelect.e("selected-item"))},[q(s,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:Oe(e.collapseTagStyle)},{default:G(()=>[k("span",{class:$(e.nsSelect.e("tags-text"))}," + "+he(e.states.selected.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:G(()=>[k("div",{ref:"tagMenuRef",class:$(e.nsSelect.e("selection"))},[(_(!0),M(ze,null,rt(e.collapseTagList,p=>(_(),M("div",{key:e.getValueKey(p),class:$(e.nsSelect.e("selected-item"))},[q(s,{class:"in-tooltip",closable:!e.selectDisabled&&!p.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:y=>e.deleteTag(y,p)},{default:G(()=>[k("span",{class:$(e.nsSelect.e("tags-text"))},[Q(e.$slots,"label",{label:p.currentLabel,value:p.value},()=>[ot(he(p.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","teleported"])):ee("v-if",!0)]):ee("v-if",!0),k("div",{class:$([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[qe(k("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":p=>e.states.inputValue=p,type:"text",name:e.name,class:$([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:Oe(e.inputStyle),tabindex:e.tabindex,role:"combobox",readonly:!e.filterable,spellcheck:"false","aria-activedescendant":((m=e.hoverOption)==null?void 0:m.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropdownMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onKeydown:[kt(Ae(p=>e.navigateOptions("next"),["stop","prevent"]),["down"]),kt(Ae(p=>e.navigateOptions("prev"),["stop","prevent"]),["up"]),kt(Ae(e.handleEsc,["stop","prevent"]),["esc"]),kt(Ae(e.selectOption,["stop","prevent"]),["enter"]),kt(Ae(e.deletePrevTag,["stop"]),["delete"])],onCompositionstart:e.handleCompositionStart,onCompositionupdate:e.handleCompositionUpdate,onCompositionend:e.handleCompositionEnd,onInput:e.onInput,onClick:Ae(e.toggleMenu,["stop"])},null,46,["id","onUpdate:modelValue","name","disabled","autocomplete","tabindex","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label","onKeydown","onCompositionstart","onCompositionupdate","onCompositionend","onInput","onClick"]),[[si,e.states.inputValue]]),e.filterable?(_(),M("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:$(e.nsSelect.e("input-calculator")),textContent:he(e.states.inputValue)},null,10,["textContent"])):ee("v-if",!0)],2),e.shouldShowPlaceholder?(_(),M("div",{key:1,class:$([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?Q(e.$slots,"label",{key:0,label:e.currentPlaceholder,value:e.modelValue},()=>[k("span",null,he(e.currentPlaceholder),1)]):(_(),M("span",{key:1},he(e.currentPlaceholder),1))],2)):ee("v-if",!0)],2),k("div",{ref:"suffixRef",class:$(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClose?(_(),ae(u,{key:0,class:$([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:G(()=>[(_(),ae(Qe(e.iconComponent)))]),_:1},8,["class"])):ee("v-if",!0),e.showClose&&e.clearIcon?(_(),ae(u,{key:1,class:$([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.nsSelect.e("clear")]),onClick:e.handleClearClick},{default:G(()=>[(_(),ae(Qe(e.clearIcon)))]),_:1},8,["class","onClick"])):ee("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?(_(),ae(u,{key:2,class:$([e.nsInput.e("icon"),e.nsInput.e("validateIcon"),e.nsInput.is("loading",e.validateState==="validating")])},{default:G(()=>[(_(),ae(Qe(e.validateIcon)))]),_:1},8,["class"])):ee("v-if",!0)],2)],10,["onClick"])]}),content:G(()=>[q(h,{ref:"menuRef"},{default:G(()=>[e.$slots.header?(_(),M("div",{key:0,class:$(e.nsSelect.be("dropdown","header")),onClick:Ae(()=>{},["stop"])},[Q(e.$slots,"header")],10,["onClick"])):ee("v-if",!0),qe(q(f,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:$([e.nsSelect.is("empty",e.filteredOptionsCount===0)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},{default:G(()=>[e.showNewOption?(_(),ae(c,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):ee("v-if",!0),q(d,null,{default:G(()=>[Q(e.$slots,"default")]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label"]),[[pt,e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?(_(),M("div",{key:1,class:$(e.nsSelect.be("dropdown","loading"))},[Q(e.$slots,"loading")],2)):e.loading||e.filteredOptionsCount===0?(_(),M("div",{key:2,class:$(e.nsSelect.be("dropdown","empty"))},[Q(e.$slots,"empty",{},()=>[k("span",null,he(e.emptyText),1)])],2)):ee("v-if",!0),e.$slots.footer?(_(),M("div",{key:3,class:$(e.nsSelect.be("dropdown","footer")),onClick:Ae(()=>{},["stop"])},[Q(e.$slots,"footer")],10,["onClick"])):ee("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-options","fallback-placements","effect","transition","persistent","append-to","show-arrow","offset","onBeforeShow","onHide"])],16,["onMouseleave"])),[[v,e.handleClickOutside,e.popperRef]])}var fH=ve(cH,[["render",dH],["__file","select.vue"]]);const pH=T({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=de("select"),n=A(null),a=et(),l=A([]);it(Yh,_t({...nn(e)}));const r=C(()=>l.value.some(c=>c.visible===!0)),s=c=>{var d,f;return((d=c.type)==null?void 0:d.name)==="ElOption"&&!!((f=c.component)!=null&&f.proxy)},i=c=>{const d=bn(c),f=[];return d.forEach(h=>{var v,m;s(h)?f.push(h.component.proxy):(v=h.children)!=null&&v.length?f.push(...i(h.children)):(m=h.component)!=null&&m.subTree&&f.push(...i(h.component.subTree))}),f},u=()=>{l.value=i(a.subTree)};return Xe(()=>{u()}),b1(n,u,{attributes:!0,subtree:!0,childList:!0}),{groupRef:n,visible:r,ns:t}}});function vH(e,t,n,a,l,r){return qe((_(),M("ul",{ref:"groupRef",class:$(e.ns.be("group","wrap"))},[k("li",{class:$(e.ns.be("group","title"))},he(e.label),3),k("li",null,[k("ul",{class:$(e.ns.b("group"))},[Q(e.$slots,"default")],2)])],2)),[[pt,e.visible]])}var Gh=ve(pH,[["render",vH],["__file","option-group.vue"]]);const Pl=We(fH,{Option:Yd,OptionGroup:Gh}),js=Lt(Yd),hH=Lt(Gh),Gd=()=>Se(Uh,{}),mH=pe({pageSize:{type:Number,required:!0},pageSizes:{type:X(Array),default:()=>Vt([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,teleported:Boolean,size:{type:String,values:xa},appendSizeTo:String}),gH=T({name:"ElPaginationSizes"}),yH=T({...gH,props:mH,emits:["page-size-change"],setup(e,{emit:t}){const n=e,{t:a}=ct(),l=de("pagination"),r=Gd(),s=A(n.pageSize);ue(()=>n.pageSizes,(c,d)=>{if(!dn(c,d)&&Ee(c)){const f=c.includes(n.pageSize)?n.pageSize:n.pageSizes[0];t("page-size-change",f)}}),ue(()=>n.pageSize,c=>{s.value=c});const i=C(()=>n.pageSizes);function u(c){var d;c!==s.value&&(s.value=c,(d=r.handleSizeChange)==null||d.call(r,Number(c)))}return(c,d)=>(_(),M("span",{class:$(o(l).e("sizes"))},[q(o(Pl),{"model-value":s.value,disabled:c.disabled,"popper-class":c.popperClass,size:c.size,teleported:c.teleported,"validate-event":!1,"append-to":c.appendSizeTo,onChange:u},{default:G(()=>[(_(!0),M(ze,null,rt(o(i),f=>(_(),ae(o(js),{key:f,value:f,label:f+o(a)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","size","teleported","append-to"])],2))}});var _H=ve(yH,[["__file","sizes.vue"]]);const bH=pe({size:{type:String,values:xa}}),wH=T({name:"ElPaginationJumper"}),CH=T({...wH,props:bH,setup(e){const{t}=ct(),n=de("pagination"),{pageCount:a,disabled:l,currentPage:r,changeEvent:s}=Gd(),i=A(),u=C(()=>{var f;return(f=i.value)!=null?f:r==null?void 0:r.value});function c(f){i.value=f?+f:""}function d(f){f=Math.trunc(+f),s==null||s(f),i.value=void 0}return(f,h)=>(_(),M("span",{class:$(o(n).e("jump")),disabled:o(l)},[k("span",{class:$([o(n).e("goto")])},he(o(t)("el.pagination.goto")),3),q(o(Cn),{size:f.size,class:$([o(n).e("editor"),o(n).is("in-pagination")]),min:1,max:o(a),disabled:o(l),"model-value":o(u),"validate-event":!1,"aria-label":o(t)("el.pagination.page"),type:"number","onUpdate:modelValue":c,onChange:d},null,8,["size","class","max","disabled","model-value","aria-label"]),k("span",{class:$([o(n).e("classifier")])},he(o(t)("el.pagination.pageClassifier")),3)],10,["disabled"]))}});var SH=ve(CH,[["__file","jumper.vue"]]);const kH=pe({total:{type:Number,default:1e3}}),EH=T({name:"ElPaginationTotal"}),xH=T({...EH,props:kH,setup(e){const{t}=ct(),n=de("pagination"),{disabled:a}=Gd();return(l,r)=>(_(),M("span",{class:$(o(n).e("total")),disabled:o(a)},he(o(t)("el.pagination.total",{total:l.total})),11,["disabled"]))}});var MH=ve(xH,[["__file","total.vue"]]);const $H=pe({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),TH=T({name:"ElPaginationPager"}),OH=T({...TH,props:$H,emits:["change"],setup(e,{emit:t}){const n=e,a=de("pager"),l=de("icon"),{t:r}=ct(),s=A(!1),i=A(!1),u=A(!1),c=A(!1),d=A(!1),f=A(!1),h=C(()=>{const b=n.pagerCount,S=(b-1)/2,E=Number(n.currentPage),O=Number(n.pageCount);let I=!1,N=!1;O>b&&(E>b-S&&(I=!0),E["more","btn-quickprev",l.b(),a.is("disabled",n.disabled)]),m=C(()=>["more","btn-quicknext",l.b(),a.is("disabled",n.disabled)]),p=C(()=>n.disabled?-1:0);cn(()=>{const b=(n.pagerCount-1)/2;s.value=!1,i.value=!1,n.pageCount>n.pagerCount&&(n.currentPage>n.pagerCount-b&&(s.value=!0),n.currentPageO&&(E=O)),E!==I&&t("change",E)}return(b,S)=>(_(),M("ul",{class:$(o(a).b()),onClick:w,onKeyup:kt(x,["enter"])},[b.pageCount>0?(_(),M("li",{key:0,class:$([[o(a).is("active",b.currentPage===1),o(a).is("disabled",b.disabled)],"number"]),"aria-current":b.currentPage===1,"aria-label":o(r)("el.pagination.currentPage",{pager:1}),tabindex:o(p)}," 1 ",10,["aria-current","aria-label","tabindex"])):ee("v-if",!0),s.value?(_(),M("li",{key:1,class:$(o(v)),tabindex:o(p),"aria-label":o(r)("el.pagination.prevPages",{pager:b.pagerCount-2}),onMouseenter:E=>y(!0),onMouseleave:E=>u.value=!1,onFocus:E=>g(!0),onBlur:E=>d.value=!1},[(u.value||d.value)&&!b.disabled?(_(),ae(o(Ra),{key:0})):(_(),ae(o(zu),{key:1}))],42,["tabindex","aria-label","onMouseenter","onMouseleave","onFocus","onBlur"])):ee("v-if",!0),(_(!0),M(ze,null,rt(o(h),E=>(_(),M("li",{key:E,class:$([[o(a).is("active",b.currentPage===E),o(a).is("disabled",b.disabled)],"number"]),"aria-current":b.currentPage===E,"aria-label":o(r)("el.pagination.currentPage",{pager:E}),tabindex:o(p)},he(E),11,["aria-current","aria-label","tabindex"]))),128)),i.value?(_(),M("li",{key:2,class:$(o(m)),tabindex:o(p),"aria-label":o(r)("el.pagination.nextPages",{pager:b.pagerCount-2}),onMouseenter:E=>y(),onMouseleave:E=>c.value=!1,onFocus:E=>g(),onBlur:E=>f.value=!1},[(c.value||f.value)&&!b.disabled?(_(),ae(o(Ba),{key:0})):(_(),ae(o(zu),{key:1}))],42,["tabindex","aria-label","onMouseenter","onMouseleave","onFocus","onBlur"])):ee("v-if",!0),b.pageCount>1?(_(),M("li",{key:3,class:$([[o(a).is("active",b.currentPage===b.pageCount),o(a).is("disabled",b.disabled)],"number"]),"aria-current":b.currentPage===b.pageCount,"aria-label":o(r)("el.pagination.currentPage",{pager:b.pageCount}),tabindex:o(p)},he(b.pageCount),11,["aria-current","aria-label","tabindex"])):ee("v-if",!0)],42,["onKeyup"]))}});var NH=ve(OH,[["__file","pager.vue"]]);const xn=e=>typeof e!="number",IH=pe({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>Ie(e)&&Math.trunc(e)===e&&e>4&&e<22&&e%2===1,default:7},currentPage:Number,defaultCurrentPage:Number,layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:X(Array),default:()=>Vt([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},prevIcon:{type:St,default:()=>La},nextText:{type:String,default:""},nextIcon:{type:St,default:()=>En},teleported:{type:Boolean,default:!0},small:Boolean,size:qt,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean,appendSizeTo:String}),PH={"update:current-page":e=>Ie(e),"update:page-size":e=>Ie(e),"size-change":e=>Ie(e),change:(e,t)=>Ie(e)&&Ie(t),"current-change":e=>Ie(e),"prev-click":e=>Ie(e),"next-click":e=>Ie(e)},I2="ElPagination";var zH=T({name:I2,props:IH,emits:PH,setup(e,{emit:t,slots:n}){const{t:a}=ct(),l=de("pagination"),r=et().vnode.props||{},s=M1(),i=C(()=>{var S;return e.small?"small":(S=e.size)!=null?S:s.value});nl({from:"small",replacement:"size",version:"3.0.0",scope:"el-pagination",ref:"https://element-plus.org/zh-CN/component/pagination.html"},C(()=>!!e.small));const u="onUpdate:currentPage"in r||"onUpdate:current-page"in r||"onCurrentChange"in r,c="onUpdate:pageSize"in r||"onUpdate:page-size"in r||"onSizeChange"in r,d=C(()=>{if(xn(e.total)&&xn(e.pageCount)||!xn(e.currentPage)&&!u)return!1;if(e.layout.includes("sizes")){if(xn(e.pageCount)){if(!xn(e.total)&&!xn(e.pageSize)&&!c)return!1}else if(!c)return!1}return!0}),f=A(xn(e.defaultPageSize)?10:e.defaultPageSize),h=A(xn(e.defaultCurrentPage)?1:e.defaultCurrentPage),v=C({get(){return xn(e.pageSize)?f.value:e.pageSize},set(S){xn(e.pageSize)&&(f.value=S),c&&(t("update:page-size",S),t("size-change",S))}}),m=C(()=>{let S=0;return xn(e.pageCount)?xn(e.total)||(S=Math.max(1,Math.ceil(e.total/v.value))):S=e.pageCount,S}),p=C({get(){return xn(e.currentPage)?h.value:e.currentPage},set(S){let E=S;S<1?E=1:S>m.value&&(E=m.value),xn(e.currentPage)&&(h.value=E),u&&(t("update:current-page",E),t("current-change",E))}});ue(m,S=>{p.value>S&&(p.value=S)}),ue([p,v],S=>{t("change",...S)},{flush:"post"});function y(S){p.value=S}function g(S){v.value=S;const E=m.value;p.value>E&&(p.value=E)}function x(){e.disabled||(p.value-=1,t("prev-click",p.value))}function w(){e.disabled||(p.value+=1,t("next-click",p.value))}function b(S,E){S&&(S.props||(S.props={}),S.props.class=[S.props.class,E].join(" "))}return it(Uh,{pageCount:m,disabled:C(()=>e.disabled),currentPage:p,changeEvent:y,handleSizeChange:g}),()=>{var S,E;if(!d.value)return a("el.pagination.deprecationWarning"),null;if(!e.layout||e.hideOnSinglePage&&m.value<=1)return null;const O=[],I=[],N=Pe("div",{class:l.e("rightwrapper")},I),P={prev:Pe(XB,{disabled:e.disabled,currentPage:p.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:x}),jumper:Pe(SH,{size:i.value}),pager:Pe(NH,{currentPage:p.value,pageCount:m.value,pagerCount:e.pagerCount,onChange:y,disabled:e.disabled}),next:Pe(eH,{disabled:e.disabled,currentPage:p.value,pageCount:m.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:w}),sizes:Pe(_H,{pageSize:v.value,pageSizes:e.pageSizes,popperClass:e.popperClass,disabled:e.disabled,teleported:e.teleported,size:i.value,appendSizeTo:e.appendSizeTo}),slot:(E=(S=n==null?void 0:n.default)==null?void 0:S.call(n))!=null?E:null,total:Pe(MH,{total:xn(e.total)?0:e.total})},L=e.layout.split(",").map(K=>K.trim());let R=!1;return L.forEach(K=>{if(K==="->"){R=!0;return}R?I.push(P[K]):O.push(P[K])}),b(O[0],l.is("first")),b(O[O.length-1],l.is("last")),R&&I.length>0&&(b(I[0],l.is("first")),b(I[I.length-1],l.is("last")),O.push(N)),Pe("div",{class:[l.b(),l.is("background",e.background),l.m(i.value)]},O)}}});const AH=We(zH),VH=pe({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:Vu,default:"primary"},cancelButtonType:{type:String,values:Vu,default:"text"},icon:{type:St,default:()=>q1},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1},hideAfter:{type:Number,default:200},teleported:Qt.teleported,persistent:Qt.persistent,width:{type:[String,Number],default:150}}),LH={confirm:e=>e instanceof MouseEvent,cancel:e=>e instanceof MouseEvent},RH=T({name:"ElPopconfirm"}),BH=T({...RH,props:VH,emits:LH,setup(e,{emit:t}){const n=e,{t:a}=ct(),l=de("popconfirm"),r=A(),s=()=>{var h,v;(v=(h=r.value)==null?void 0:h.onClose)==null||v.call(h)},i=C(()=>({width:Rt(n.width)})),u=h=>{t("confirm",h),s()},c=h=>{t("cancel",h),s()},d=C(()=>n.confirmButtonText||a("el.popconfirm.confirmButtonText")),f=C(()=>n.cancelButtonText||a("el.popconfirm.cancelButtonText"));return(h,v)=>(_(),ae(o(hn),tt({ref_key:"tooltipRef",ref:r,trigger:"click",effect:"light"},h.$attrs,{"popper-class":`${o(l).namespace.value}-popover`,"popper-style":o(i),teleported:h.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":h.hideAfter,persistent:h.persistent}),{content:G(()=>[k("div",{class:$(o(l).b())},[k("div",{class:$(o(l).e("main"))},[!h.hideIcon&&h.icon?(_(),ae(o(Me),{key:0,class:$(o(l).e("icon")),style:Oe({color:h.iconColor})},{default:G(()=>[(_(),ae(Qe(h.icon)))]),_:1},8,["class","style"])):ee("v-if",!0),ot(" "+he(h.title),1)],2),k("div",{class:$(o(l).e("action"))},[Q(h.$slots,"actions",{confirm:u,cancel:c},()=>[q(o(en),{size:"small",type:h.cancelButtonType==="text"?"":h.cancelButtonType,text:h.cancelButtonType==="text",onClick:c},{default:G(()=>[ot(he(o(f)),1)]),_:1},8,["type","text"]),q(o(en),{size:"small",type:h.confirmButtonType==="text"?"":h.confirmButtonType,text:h.confirmButtonType==="text",onClick:u},{default:G(()=>[ot(he(o(d)),1)]),_:1},8,["type","text"])])],2)],2)]),default:G(()=>[h.$slots.reference?Q(h.$slots,"reference",{key:0}):ee("v-if",!0)]),_:3},16,["popper-class","popper-style","teleported","hide-after","persistent"]))}});var HH=ve(BH,[["__file","popconfirm.vue"]]);const DH=We(HH),FH=pe({trigger:pr.trigger,placement:Cs.placement,disabled:pr.disabled,visible:Qt.visible,transition:Qt.transition,popperOptions:Cs.popperOptions,tabindex:Cs.tabindex,content:Qt.content,popperStyle:Qt.popperStyle,popperClass:Qt.popperClass,enterable:{...Qt.enterable,default:!0},effect:{...Qt.effect,default:"light"},teleported:Qt.teleported,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),KH={"update:visible":e=>Et(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},WH="onUpdate:visible",jH=T({name:"ElPopover"}),qH=T({...jH,props:FH,emits:KH,setup(e,{expose:t,emit:n}){const a=e,l=C(()=>a[WH]),r=de("popover"),s=A(),i=C(()=>{var y;return(y=o(s))==null?void 0:y.popperRef}),u=C(()=>[{width:Rt(a.width)},a.popperStyle]),c=C(()=>[r.b(),a.popperClass,{[r.m("plain")]:!!a.content}]),d=C(()=>a.transition===`${r.namespace.value}-fade-in-linear`),f=()=>{var y;(y=s.value)==null||y.hide()},h=()=>{n("before-enter")},v=()=>{n("before-leave")},m=()=>{n("after-enter")},p=()=>{n("update:visible",!1),n("after-leave")};return t({popperRef:i,hide:f}),(y,g)=>(_(),ae(o(hn),tt({ref_key:"tooltipRef",ref:s},y.$attrs,{trigger:y.trigger,placement:y.placement,disabled:y.disabled,visible:y.visible,transition:y.transition,"popper-options":y.popperOptions,tabindex:y.tabindex,content:y.content,offset:y.offset,"show-after":y.showAfter,"hide-after":y.hideAfter,"auto-close":y.autoClose,"show-arrow":y.showArrow,"aria-label":y.title,effect:y.effect,enterable:y.enterable,"popper-class":o(c),"popper-style":o(u),teleported:y.teleported,persistent:y.persistent,"gpu-acceleration":o(d),"onUpdate:visible":o(l),onBeforeShow:h,onBeforeHide:v,onShow:m,onHide:p}),{content:G(()=>[y.title?(_(),M("div",{key:0,class:$(o(r).e("title")),role:"title"},he(y.title),3)):ee("v-if",!0),Q(y.$slots,"default",{},()=>[ot(he(y.content),1)])]),default:G(()=>[y.$slots.reference?Q(y.$slots,"reference",{key:0}):ee("v-if",!0)]),_:3},16,["trigger","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","persistent","gpu-acceleration","onUpdate:visible"]))}});var UH=ve(qH,[["__file","popover.vue"]]);const P2=(e,t)=>{const n=t.arg||t.value,a=n==null?void 0:n.popperRef;a&&(a.triggerRef=e)};var YH={mounted(e,t){P2(e,t)},updated(e,t){P2(e,t)}};const GH="popover",Xh=Eb(YH,GH),XH=We(UH,{directive:Xh}),ZH=pe({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:e=>e>=0&&e<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:Boolean,duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:X(String),default:"round"},textInside:Boolean,width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:X([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:X(Function),default:e=>`${e}%`}}),JH=T({name:"ElProgress"}),QH=T({...JH,props:ZH,setup(e){const t=e,n={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},a=de("progress"),l=C(()=>{const w={width:`${t.percentage}%`,animationDuration:`${t.duration}s`},b=x(t.percentage);return b.includes("gradient")?w.background=b:w.backgroundColor=b,w}),r=C(()=>(t.strokeWidth/t.width*100).toFixed(1)),s=C(()=>["circle","dashboard"].includes(t.type)?Number.parseInt(`${50-Number.parseFloat(r.value)/2}`,10):0),i=C(()=>{const w=s.value,b=t.type==="dashboard";return` + M 50 50 + m 0 ${b?"":"-"}${w} + a ${w} ${w} 0 1 1 0 ${b?"-":""}${w*2} + a ${w} ${w} 0 1 1 0 ${b?"":"-"}${w*2} + `}),u=C(()=>2*Math.PI*s.value),c=C(()=>t.type==="dashboard"?.75:1),d=C(()=>`${-1*u.value*(1-c.value)/2}px`),f=C(()=>({strokeDasharray:`${u.value*c.value}px, ${u.value}px`,strokeDashoffset:d.value})),h=C(()=>({strokeDasharray:`${u.value*c.value*(t.percentage/100)}px, ${u.value}px`,strokeDashoffset:d.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),v=C(()=>{let w;return t.color?w=x(t.percentage):w=n[t.status]||n.default,w}),m=C(()=>t.status==="warning"?Ir:t.type==="line"?t.status==="success"?wi:$a:t.status==="success"?zo:Xn),p=C(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),y=C(()=>t.format(t.percentage));function g(w){const b=100/w.length;return w.map((E,O)=>Ve(E)?{color:E,percentage:(O+1)*b}:E).sort((E,O)=>E.percentage-O.percentage)}const x=w=>{var b;const{color:S}=t;if(Je(S))return S(w);if(Ve(S))return S;{const E=g(S);for(const O of E)if(O.percentage>w)return O.color;return(b=E[E.length-1])==null?void 0:b.color}};return(w,b)=>(_(),M("div",{class:$([o(a).b(),o(a).m(w.type),o(a).is(w.status),{[o(a).m("without-text")]:!w.showText,[o(a).m("text-inside")]:w.textInside}]),role:"progressbar","aria-valuenow":w.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[w.type==="line"?(_(),M("div",{key:0,class:$(o(a).b("bar"))},[k("div",{class:$(o(a).be("bar","outer")),style:Oe({height:`${w.strokeWidth}px`})},[k("div",{class:$([o(a).be("bar","inner"),{[o(a).bem("bar","inner","indeterminate")]:w.indeterminate},{[o(a).bem("bar","inner","striped")]:w.striped},{[o(a).bem("bar","inner","striped-flow")]:w.stripedFlow}]),style:Oe(o(l))},[(w.showText||w.$slots.default)&&w.textInside?(_(),M("div",{key:0,class:$(o(a).be("bar","innerText"))},[Q(w.$slots,"default",{percentage:w.percentage},()=>[k("span",null,he(o(y)),1)])],2)):ee("v-if",!0)],6)],6)],2)):(_(),M("div",{key:1,class:$(o(a).b("circle")),style:Oe({height:`${w.width}px`,width:`${w.width}px`})},[(_(),M("svg",{viewBox:"0 0 100 100"},[k("path",{class:$(o(a).be("circle","track")),d:o(i),stroke:`var(${o(a).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":w.strokeLinecap,"stroke-width":o(r),fill:"none",style:Oe(o(f))},null,14,["d","stroke","stroke-linecap","stroke-width"]),k("path",{class:$(o(a).be("circle","path")),d:o(i),stroke:o(v),fill:"none",opacity:w.percentage?1:0,"stroke-linecap":w.strokeLinecap,"stroke-width":o(r),style:Oe(o(h))},null,14,["d","stroke","opacity","stroke-linecap","stroke-width"])]))],6)),(w.showText||w.$slots.default)&&!w.textInside?(_(),M("div",{key:2,class:$(o(a).e("text")),style:Oe({fontSize:`${o(p)}px`})},[Q(w.$slots,"default",{percentage:w.percentage},()=>[w.status?(_(),ae(o(Me),{key:1},{default:G(()=>[(_(),ae(Qe(o(m))))]),_:1})):(_(),M("span",{key:0},he(o(y)),1))])],6)):ee("v-if",!0)],10,["aria-valuenow"]))}});var eD=ve(QH,[["__file","progress.vue"]]);const Zh=We(eD),tD=pe({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:X([Array,Object]),default:()=>Vt(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:X([Array,Object]),default:()=>[Uo,Uo,Uo]},voidIcon:{type:St,default:()=>Q1},disabledVoidIcon:{type:St,default:()=>Uo},disabled:Boolean,allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:X(Array),default:()=>Vt(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:qt,clearable:Boolean,...rn(["ariaLabel"])}),nD={[Ct]:e=>Ie(e),[Ue]:e=>Ie(e)},aD=T({name:"ElRate"}),lD=T({...aD,props:tD,emits:nD,setup(e,{expose:t,emit:n}){const a=e;function l(V,D){const B=W=>ht(W),z=Object.keys(D).map(W=>+W).filter(W=>{const Z=D[W];return(B(Z)?Z.excluded:!1)?VW-Z),F=D[z[0]];return B(F)&&F.value||F}const r=Se(Hl,void 0),s=Se(Sa,void 0),i=jt(),u=de("rate"),{inputId:c,isLabeledByFormItem:d}=ea(a,{formItemContext:s}),f=A(a.modelValue),h=A(-1),v=A(!0),m=C(()=>[u.b(),u.m(i.value)]),p=C(()=>a.disabled||(r==null?void 0:r.disabled)),y=C(()=>u.cssVarBlock({"void-color":a.voidColor,"disabled-void-color":a.disabledVoidColor,"fill-color":b.value})),g=C(()=>{let V="";return a.showScore?V=a.scoreTemplate.replace(/\{\s*value\s*\}/,p.value?`${a.modelValue}`:`${f.value}`):a.showText&&(V=a.texts[Math.ceil(f.value)-1]),V}),x=C(()=>a.modelValue*100-Math.floor(a.modelValue)*100),w=C(()=>Ee(a.colors)?{[a.lowThreshold]:a.colors[0],[a.highThreshold]:{value:a.colors[1],excluded:!0},[a.max]:a.colors[2]}:a.colors),b=C(()=>{const V=l(f.value,w.value);return ht(V)?"":V}),S=C(()=>{let V="";return p.value?V=`${x.value}%`:a.allowHalf&&(V="50%"),{color:b.value,width:V}}),E=C(()=>{let V=Ee(a.icons)?[...a.icons]:{...a.icons};return V=kl(V),Ee(V)?{[a.lowThreshold]:V[0],[a.highThreshold]:{value:V[1],excluded:!0},[a.max]:V[2]}:V}),O=C(()=>l(a.modelValue,E.value)),I=C(()=>p.value?Ve(a.disabledVoidIcon)?a.disabledVoidIcon:kl(a.disabledVoidIcon):Ve(a.voidIcon)?a.voidIcon:kl(a.voidIcon)),N=C(()=>l(f.value,E.value));function P(V){const D=p.value&&x.value>0&&V-1a.modelValue,B=a.allowHalf&&v.value&&V-.5<=f.value&&V>f.value;return D||B}function L(V){a.clearable&&V===a.modelValue&&(V=0),n(Ue,V),a.modelValue!==V&&n("change",V)}function R(V){p.value||(a.allowHalf&&v.value?L(f.value):L(V))}function K(V){if(p.value)return;let D=f.value;const B=V.code;return B===Ce.up||B===Ce.right?(a.allowHalf?D+=.5:D+=1,V.stopPropagation(),V.preventDefault()):(B===Ce.left||B===Ce.down)&&(a.allowHalf?D-=.5:D-=1,V.stopPropagation(),V.preventDefault()),D=D<0?0:D,D=D>a.max?a.max:D,n(Ue,D),n("change",D),D}function U(V,D){if(!p.value){if(a.allowHalf&&D){let B=D.target;An(B,u.e("item"))&&(B=B.querySelector(`.${u.e("icon")}`)),(B.clientWidth===0||An(B,u.e("decimal")))&&(B=B.parentNode),v.value=D.offsetX*2<=B.clientWidth,f.value=v.value?V-.5:V}else f.value=V;h.value=V}}function H(){p.value||(a.allowHalf&&(v.value=a.modelValue!==Math.floor(a.modelValue)),f.value=a.modelValue,h.value=-1)}return ue(()=>a.modelValue,V=>{f.value=V,v.value=a.modelValue!==Math.floor(a.modelValue)}),a.modelValue||n(Ue,0),t({setCurrentValue:U,resetCurrentValue:H}),(V,D)=>{var B;return _(),M("div",{id:o(c),class:$([o(m),o(u).is("disabled",o(p))]),role:"slider","aria-label":o(d)?void 0:V.ariaLabel||"rating","aria-labelledby":o(d)?(B=o(s))==null?void 0:B.labelId:void 0,"aria-valuenow":f.value,"aria-valuetext":o(g)||void 0,"aria-valuemin":"0","aria-valuemax":V.max,tabindex:"0",style:Oe(o(y)),onKeydown:K},[(_(!0),M(ze,null,rt(V.max,(z,F)=>(_(),M("span",{key:F,class:$(o(u).e("item")),onMousemove:W=>U(z,W),onMouseleave:H,onClick:W=>R(z)},[q(o(Me),{class:$([o(u).e("icon"),{hover:h.value===z},o(u).is("active",z<=f.value)])},{default:G(()=>[P(z)?ee("v-if",!0):(_(),M(ze,{key:0},[qe((_(),ae(Qe(o(N)),null,null,512)),[[pt,z<=f.value]]),qe((_(),ae(Qe(o(I)),null,null,512)),[[pt,!(z<=f.value)]])],64)),P(z)?(_(),M(ze,{key:1},[(_(),ae(Qe(o(I)),{class:$([o(u).em("decimal","box")])},null,8,["class"])),q(o(Me),{style:Oe(o(S)),class:$([o(u).e("icon"),o(u).e("decimal")])},{default:G(()=>[(_(),ae(Qe(o(O))))]),_:1},8,["style","class"])],64)):ee("v-if",!0)]),_:2},1032,["class"])],42,["onMousemove","onClick"]))),128)),V.showText||V.showScore?(_(),M("span",{key:0,class:$(o(u).e("text")),style:Oe({color:V.textColor})},he(o(g)),7)):ee("v-if",!0)],46,["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"])}}});var oD=ve(lD,[["__file","rate.vue"]]);const rD=We(oD),Ql={success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},z2={[Ql.success]:R1,[Ql.warning]:Ir,[Ql.error]:Ci,[Ql.info]:Si},sD=pe({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["success","warning","info","error"],default:"info"}}),iD=T({name:"ElResult"}),uD=T({...iD,props:sD,setup(e){const t=e,n=de("result"),a=C(()=>{const l=t.icon,r=l&&Ql[l]?Ql[l]:"icon-info",s=z2[r]||z2["icon-info"];return{class:r,component:s}});return(l,r)=>(_(),M("div",{class:$(o(n).b())},[k("div",{class:$(o(n).e("icon"))},[Q(l.$slots,"icon",{},()=>[o(a).component?(_(),ae(Qe(o(a).component),{key:0,class:$(o(a).class)},null,8,["class"])):ee("v-if",!0)])],2),l.title||l.$slots.title?(_(),M("div",{key:0,class:$(o(n).e("title"))},[Q(l.$slots,"title",{},()=>[k("p",null,he(l.title),1)])],2)):ee("v-if",!0),l.subTitle||l.$slots["sub-title"]?(_(),M("div",{key:1,class:$(o(n).e("subtitle"))},[Q(l.$slots,"sub-title",{},()=>[k("p",null,he(l.subTitle),1)])],2)):ee("v-if",!0),l.$slots.extra?(_(),M("div",{key:2,class:$(o(n).e("extra"))},[Q(l.$slots,"extra")],2)):ee("v-if",!0)],2))}});var cD=ve(uD,[["__file","result.vue"]]);const dD=We(cD),fD=["start","center","end","space-around","space-between","space-evenly"],pD=["top","middle","bottom"],vD=pe({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:fD,default:"start"},align:{type:String,values:pD}}),hD=T({name:"ElRow"}),mD=T({...hD,props:vD,setup(e){const t=e,n=de("row"),a=C(()=>t.gutter);it(lh,{gutter:a});const l=C(()=>{const s={};return t.gutter&&(s.marginRight=s.marginLeft=`-${t.gutter/2}px`),s}),r=C(()=>[n.b(),n.is(`justify-${t.justify}`,t.justify!=="start"),n.is(`align-${t.align}`,!!t.align)]);return(s,i)=>(_(),ae(Qe(s.tag),{class:$(o(r)),style:Oe(o(l))},{default:G(()=>[Q(s.$slots,"default")]),_:3},8,["class","style"]))}});var gD=ve(mD,[["__file","row.vue"]]);const yD=We(gD),_D=T({props:{item:{type:Object,required:!0},style:{type:Object},height:Number},setup(){return{ns:de("select")}}});function bD(e,t,n,a,l,r){return _(),M("div",{class:$(e.ns.be("group","title")),style:Oe({...e.style,lineHeight:`${e.height}px`})},he(e.item.label),7)}var wD=ve(_D,[["render",bD],["__file","group-item.vue"]]);function CD(e,{emit:t}){return{hoverItem:()=>{e.disabled||t("hover",e.index)},selectOptionClick:()=>{e.disabled||t("select",e.item,e.index)}}}const Jh={label:"label",value:"value",disabled:"disabled",options:"options"};function Pi(e){const t=C(()=>({...Jh,...e.props}));return{aliasProps:t,getLabel:s=>Kt(s,t.value.label),getValue:s=>Kt(s,t.value.value),getDisabled:s=>Kt(s,t.value.disabled),getOptions:s=>Kt(s,t.value.options)}}const SD=pe({allowCreate:Boolean,autocomplete:{type:X(String),default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:St,default:$a},effect:{type:X(String),default:"light"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},defaultFirstOption:Boolean,disabled:Boolean,estimatedOptionHeight:{type:Number,default:void 0},filterable:Boolean,filterMethod:Function,height:{type:Number,default:274},itemHeight:{type:Number,default:34},id:String,loading:Boolean,loadingText:String,modelValue:{type:X([Array,String,Number,Boolean,Object])},multiple:Boolean,multipleLimit:{type:Number,default:0},name:String,noDataText:String,noMatchText:String,remoteMethod:Function,reserveKeyword:{type:Boolean,default:!0},options:{type:X(Array),required:!0},placeholder:{type:String},teleported:Qt.teleported,persistent:{type:Boolean,default:!0},popperClass:{type:String,default:""},popperOptions:{type:X(Object),default:()=>({})},remote:Boolean,size:qt,props:{type:X(Object),default:()=>Jh},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:Boolean,validateEvent:{type:Boolean,default:!0},offset:{type:Number,default:12},showArrow:{type:Boolean,default:!0},placement:{type:X(String),values:Ya,default:"bottom-start"},fallbackPlacements:{type:X(Array),default:["bottom-start","top-start","right","left"]},tagType:{...Da.type,default:"info"},tagEffect:{...Da.effect,default:"light"},tabindex:{type:[String,Number],default:0},appendTo:String,fitInputWidth:{type:[Boolean,Number],default:!0,validator(e){return Et(e)||Ie(e)}},...Po,...rn(["ariaLabel"])}),kD=pe({data:Array,disabled:Boolean,hovering:Boolean,item:{type:X(Object),required:!0},index:Number,style:Object,selected:Boolean,created:Boolean}),ED={[Ue]:e=>!0,[Ct]:e=>!0,"remove-tag":e=>!0,"visible-change":e=>!0,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0},xD={hover:e=>Ie(e),select:(e,t)=>!0},Xd=Symbol("ElSelectV2Injection"),MD=T({props:kD,emits:xD,setup(e,{emit:t}){const n=Se(Xd),a=de("select"),{hoverItem:l,selectOptionClick:r}=CD(e,{emit:t}),{getLabel:s}=Pi(n.props);return{ns:a,hoverItem:l,selectOptionClick:r,getLabel:s}}});function $D(e,t,n,a,l,r){return _(),M("li",{"aria-selected":e.selected,style:Oe(e.style),class:$([e.ns.be("dropdown","item"),e.ns.is("selected",e.selected),e.ns.is("disabled",e.disabled),e.ns.is("created",e.created),e.ns.is("hovering",e.hovering)]),onMousemove:e.hoverItem,onClick:Ae(e.selectOptionClick,["stop"])},[Q(e.$slots,"default",{item:e.item,index:e.index,disabled:e.disabled},()=>[k("span",null,he(e.getLabel(e.item)),1)])],46,["aria-selected","onMousemove","onClick"])}var TD=ve(MD,[["render",$D],["__file","option-item.vue"]]),A2=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function OD(e,t){return!!(e===t||A2(e)&&A2(t))}function ND(e,t){if(e.length!==t.length)return!1;for(var n=0;n{const t=et().proxy.$props;return C(()=>{const n=(a,l,r)=>({});return t.perfMode?pi(n):ID(n)})},ac=50,qs="itemRendered",Us="scroll",eo="forward",Ys="backward",qn="auto",zi="smart",gr="start",_a="center",yr="end",bo="horizontal",Zd="vertical",PD="ltr",oo="rtl",_r="negative",Jd="positive-ascending",Qd="positive-descending",zD={[bo]:"left",[Zd]:"top"},AD=20,VD={[bo]:"deltaX",[Zd]:"deltaY"},LD=({atEndEdge:e,atStartEdge:t,layout:n},a)=>{let l,r=0;const s=u=>u<0&&t.value||u>0&&e.value;return{hasReachedEdge:s,onWheel:u=>{Il(l);const c=u[VD[n.value]];s(r)&&s(r+c)||(r+=c,Ei()||u.preventDefault(),l=sl(()=>{a(r),r=0}))}}},lc=va({type:X([Number,Function]),required:!0}),oc=va({type:Number}),rc=va({type:Number,default:2}),RD=va({type:String,values:["ltr","rtl"],default:"ltr"}),sc=va({type:Number,default:0}),Gs=va({type:Number,required:!0}),em=va({type:String,values:["horizontal","vertical"],default:Zd}),tm=pe({className:{type:String,default:""},containerElement:{type:X([String,Object]),default:"div"},data:{type:X(Array),default:()=>Vt([])},direction:RD,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},style:{type:X([Object,String,Array])},useIsScrolling:{type:Boolean,default:!1},width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:{type:Boolean,default:!1}}),nm=pe({cache:rc,estimatedItemSize:oc,layout:em,initScrollOffset:sc,total:Gs,itemSize:lc,...tm}),ic={type:Number,default:6},am={type:Number,default:0},lm={type:Number,default:2},Ml=pe({columnCache:rc,columnWidth:lc,estimatedColumnWidth:oc,estimatedRowHeight:oc,initScrollLeft:sc,initScrollTop:sc,itemKey:{type:X(Function),default:({columnIndex:e,rowIndex:t})=>`${t}:${e}`},rowCache:rc,rowHeight:lc,totalColumn:Gs,totalRow:Gs,hScrollbarSize:ic,vScrollbarSize:ic,scrollbarStartGap:am,scrollbarEndGap:lm,role:String,...tm}),om=pe({alwaysOn:Boolean,class:String,layout:em,total:Gs,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:ic,startGap:am,endGap:lm,visible:Boolean}),wl=(e,t)=>ee===PD||e===oo||e===bo,V2=e=>e===oo;let ql=null;function Xs(e=!1){if(ql===null||e){const t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";const a=document.createElement("div"),l=a.style;return l.width="100px",l.height="100px",t.appendChild(a),document.body.appendChild(t),t.scrollLeft>0?ql=Qd:(t.scrollLeft=1,t.scrollLeft===0?ql=_r:ql=Jd),document.body.removeChild(t),ql}return ql}function BD({move:e,size:t,bar:n},a){const l={},r=`translate${n.axis}(${e}px)`;return l[n.size]=t,l.transform=r,l.msTransform=r,l.webkitTransform=r,a==="horizontal"?l.height="100%":l.width="100%",l}const uc=T({name:"ElVirtualScrollBar",props:om,emits:["scroll","start-move","stop-move"],setup(e,{emit:t}){const n=C(()=>e.startGap+e.endGap),a=de("virtual-scrollbar"),l=de("scrollbar"),r=A(),s=A();let i=null,u=null;const c=_t({isDragging:!1,traveled:0}),d=C(()=>av[e.layout]),f=C(()=>e.clientSize-o(n)),h=C(()=>({position:"absolute",width:`${bo===e.layout?f.value:e.scrollbarSize}px`,height:`${bo===e.layout?e.scrollbarSize:f.value}px`,[zD[e.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),v=C(()=>{const E=e.ratio,O=e.clientSize;if(E>=100)return Number.POSITIVE_INFINITY;if(E>=50)return E*O/100;const I=O/3;return Math.floor(Math.min(Math.max(E*O,AD),I))}),m=C(()=>{if(!Number.isFinite(v.value))return{display:"none"};const E=`${v.value}px`;return BD({bar:d.value,size:E,move:c.traveled},e.layout)}),p=C(()=>Math.floor(e.clientSize-v.value-o(n))),y=()=>{window.addEventListener("mousemove",b),window.addEventListener("mouseup",w);const E=o(s);E&&(u=document.onselectstart,document.onselectstart=()=>!1,E.addEventListener("touchmove",b,{passive:!0}),E.addEventListener("touchend",w))},g=()=>{window.removeEventListener("mousemove",b),window.removeEventListener("mouseup",w),document.onselectstart=u,u=null;const E=o(s);E&&(E.removeEventListener("touchmove",b),E.removeEventListener("touchend",w))},x=E=>{E.stopImmediatePropagation(),!(E.ctrlKey||[1,2].includes(E.button))&&(c.isDragging=!0,c[d.value.axis]=E.currentTarget[d.value.offset]-(E[d.value.client]-E.currentTarget.getBoundingClientRect()[d.value.direction]),t("start-move"),y())},w=()=>{c.isDragging=!1,c[d.value.axis]=0,t("stop-move"),g()},b=E=>{const{isDragging:O}=c;if(!O||!s.value||!r.value)return;const I=c[d.value.axis];if(!I)return;Il(i);const N=(r.value.getBoundingClientRect()[d.value.direction]-E[d.value.client])*-1,P=s.value[d.value.offset]-I,L=N-P;i=sl(()=>{c.traveled=Math.max(e.startGap,Math.min(L,p.value)),t("scroll",L,p.value)})},S=E=>{const O=Math.abs(E.target.getBoundingClientRect()[d.value.direction]-E[d.value.client]),I=s.value[d.value.offset]/2,N=O-I;c.traveled=Math.max(0,Math.min(N,p.value)),t("scroll",N,p.value)};return ue(()=>e.scrollFrom,E=>{c.isDragging||(c.traveled=Math.ceil(E*p.value))}),$t(()=>{g()}),()=>Pe("div",{role:"presentation",ref:r,class:[a.b(),e.class,(e.alwaysOn||c.isDragging)&&"always-on"],style:h.value,onMousedown:Ae(S,["stop","prevent"]),onTouchstartPrevent:x},Pe("div",{ref:s,class:l.e("thumb"),style:m.value,onMousedown:x},[]))}}),rm=({name:e,getOffset:t,getItemSize:n,getItemOffset:a,getEstimatedTotalSize:l,getStartIndexForOffset:r,getStopIndexForStartIndex:s,initCache:i,clearCache:u,validateProps:c})=>T({name:e??"ElVirtualList",props:nm,emits:[qs,Us],setup(d,{emit:f,expose:h}){c(d);const v=et(),m=de("vl"),p=A(i(d,v)),y=Qh(),g=A(),x=A(),w=A(),b=A({isScrolling:!1,scrollDir:"forward",scrollOffset:Ie(d.initScrollOffset)?d.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:d.scrollbarAlwaysOn}),S=C(()=>{const{total:j,cache:ne}=d,{isScrolling:oe,scrollDir:ce,scrollOffset:te}=o(b);if(j===0)return[0,0,0,0];const se=r(d,te,o(p)),fe=s(d,se,te,o(p)),xe=!oe||ce===Ys?Math.max(1,ne):1,me=!oe||ce===eo?Math.max(1,ne):1;return[Math.max(0,se-xe),Math.max(0,Math.min(j-1,fe+me)),se,fe]}),E=C(()=>l(d,o(p))),O=C(()=>br(d.layout)),I=C(()=>[{position:"relative",[`overflow-${O.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:d.direction,height:Ie(d.height)?`${d.height}px`:d.height,width:Ie(d.width)?`${d.width}px`:d.width},d.style]),N=C(()=>{const j=o(E),ne=o(O);return{height:ne?"100%":`${j}px`,pointerEvents:o(b).isScrolling?"none":void 0,width:ne?`${j}px`:"100%"}}),P=C(()=>O.value?d.width:d.height),{onWheel:L}=LD({atStartEdge:C(()=>b.value.scrollOffset<=0),atEndEdge:C(()=>b.value.scrollOffset>=E.value),layout:C(()=>d.layout)},j=>{var ne,oe;(oe=(ne=w.value).onMouseUp)==null||oe.call(ne),D(Math.min(b.value.scrollOffset+j,E.value-P.value))});wt(g,"wheel",L,{passive:!1});const R=()=>{const{total:j}=d;if(j>0){const[te,se,fe,xe]=o(S);f(qs,te,se,fe,xe)}const{scrollDir:ne,scrollOffset:oe,updateRequested:ce}=o(b);f(Us,ne,oe,ce)},K=j=>{const{clientHeight:ne,scrollHeight:oe,scrollTop:ce}=j.currentTarget,te=o(b);if(te.scrollOffset===ce)return;const se=Math.max(0,Math.min(ce,oe-ne));b.value={...te,isScrolling:!0,scrollDir:wl(te.scrollOffset,se),scrollOffset:se,updateRequested:!1},Ne(F)},U=j=>{const{clientWidth:ne,scrollLeft:oe,scrollWidth:ce}=j.currentTarget,te=o(b);if(te.scrollOffset===oe)return;const{direction:se}=d;let fe=oe;if(se===oo)switch(Xs()){case _r:{fe=-oe;break}case Qd:{fe=ce-ne-oe;break}}fe=Math.max(0,Math.min(fe,ce-ne)),b.value={...te,isScrolling:!0,scrollDir:wl(te.scrollOffset,fe),scrollOffset:fe,updateRequested:!1},Ne(F)},H=j=>{o(O)?U(j):K(j),R()},V=(j,ne)=>{const oe=(E.value-P.value)/ne*j;D(Math.min(E.value-P.value,oe))},D=j=>{j=Math.max(j,0),j!==o(b).scrollOffset&&(b.value={...o(b),scrollOffset:j,scrollDir:wl(o(b).scrollOffset,j),updateRequested:!0},Ne(F))},B=(j,ne=qn)=>{const{scrollOffset:oe}=o(b);j=Math.max(0,Math.min(j,d.total-1)),D(t(d,j,ne,oe,o(p)))},z=j=>{const{direction:ne,itemSize:oe,layout:ce}=d,te=y.value(u&&oe,u&&ce,u&&ne);let se;if(vn(te,String(j)))se=te[j];else{const fe=a(d,j,o(p)),xe=n(d,j,o(p)),me=o(O),le=ne===oo,we=me?fe:0;te[j]=se={position:"absolute",left:le?void 0:`${we}px`,right:le?`${we}px`:void 0,top:me?0:`${fe}px`,height:me?"100%":`${xe}px`,width:me?`${xe}px`:"100%"}}return se},F=()=>{b.value.isScrolling=!1,Ne(()=>{y.value(-1,null,null)})},W=()=>{const j=g.value;j&&(j.scrollTop=0)};Xe(()=>{if(!ut)return;const{initScrollOffset:j}=d,ne=o(g);Ie(j)&&ne&&(o(O)?ne.scrollLeft=j:ne.scrollTop=j),R()}),Wa(()=>{const{direction:j,layout:ne}=d,{scrollOffset:oe,updateRequested:ce}=o(b),te=o(g);if(ce&&te)if(ne===bo)if(j===oo)switch(Xs()){case _r:{te.scrollLeft=-oe;break}case Jd:{te.scrollLeft=oe;break}default:{const{clientWidth:se,scrollWidth:fe}=te;te.scrollLeft=fe-se-oe;break}}else te.scrollLeft=oe;else te.scrollTop=oe}),kp(()=>{o(g).scrollTop=o(b).scrollOffset});const Z={ns:m,clientSize:P,estimatedTotalSize:E,windowStyle:I,windowRef:g,innerRef:x,innerStyle:N,itemsToRender:S,scrollbarRef:w,states:b,getItemStyle:z,onScroll:H,onScrollbarScroll:V,onWheel:L,scrollTo:D,scrollToItem:B,resetScrollTop:W};return h({windowRef:g,innerRef:x,getItemStyleCache:y,scrollTo:D,scrollToItem:B,resetScrollTop:W,states:b}),Z},render(d){var f;const{$slots:h,className:v,clientSize:m,containerElement:p,data:y,getItemStyle:g,innerElement:x,itemsToRender:w,innerStyle:b,layout:S,total:E,onScroll:O,onScrollbarScroll:I,states:N,useIsScrolling:P,windowStyle:L,ns:R}=d,[K,U]=w,H=Qe(p),V=Qe(x),D=[];if(E>0)for(let W=K;W<=U;W++)D.push(Pe(ze,{key:W},(f=h.default)==null?void 0:f.call(h,{data:y,index:W,isScrolling:P?N.isScrolling:void 0,style:g(W)})));const B=[Pe(V,{style:b,ref:"innerRef"},Ve(V)?D:{default:()=>D})],z=Pe(uc,{ref:"scrollbarRef",clientSize:m,layout:S,onScroll:I,ratio:m*100/this.estimatedTotalSize,scrollFrom:N.scrollOffset/(this.estimatedTotalSize-m),total:E}),F=Pe(H,{class:[R.e("window"),v],style:L,onScroll:O,ref:"windowRef",key:0},Ve(H)?[B]:{default:()=>[B]});return Pe("div",{key:0,class:[R.e("wrapper"),N.scrollbarAlwaysOn?"always-on":""]},[F,z])}}),sm=rm({name:"ElFixedSizeList",getItemOffset:({itemSize:e},t)=>t*e,getItemSize:({itemSize:e})=>e,getEstimatedTotalSize:({total:e,itemSize:t})=>t*e,getOffset:({height:e,total:t,itemSize:n,layout:a,width:l},r,s,i)=>{const u=br(a)?l:e,c=Math.max(0,t*n-u),d=Math.min(c,r*n),f=Math.max(0,(r+1)*n-u);switch(s===zi&&(i>=f-u&&i<=d+u?s=qn:s=_a),s){case gr:return d;case yr:return f;case _a:{const h=Math.round(f+(d-f)/2);return hc+Math.floor(u/2)?c:h}case qn:default:return i>=f&&i<=d?i:iMath.max(0,Math.min(e-1,Math.floor(n/t))),getStopIndexForStartIndex:({height:e,total:t,itemSize:n,layout:a,width:l},r,s)=>{const i=r*n,u=br(a)?l:e,c=Math.ceil((u+s-i)/n);return Math.max(0,Math.min(t-1,r+c-1))},initCache(){},clearCache:!0,validateProps(){}}),to=(e,t,n)=>{const{itemSize:a}=e,{items:l,lastVisitedIndex:r}=n;if(t>r){let s=0;if(r>=0){const i=l[r];s=i.offset+i.size}for(let i=r+1;i<=t;i++){const u=a(i);l[i]={offset:s,size:u},s+=u}n.lastVisitedIndex=t}return l[t]},HD=(e,t,n)=>{const{items:a,lastVisitedIndex:l}=t;return(l>0?a[l].offset:0)>=n?im(e,t,0,l,n):DD(e,t,Math.max(0,l),n)},im=(e,t,n,a,l)=>{for(;n<=a;){const r=n+Math.floor((a-n)/2),s=to(e,r,t).offset;if(s===l)return r;sl&&(a=r-1)}return Math.max(0,n-1)},DD=(e,t,n,a)=>{const{total:l}=e;let r=1;for(;n{let l=0;if(a>=e&&(a=e-1),a>=0){const i=t[a];l=i.offset+i.size}const s=(e-a-1)*n;return l+s},FD=rm({name:"ElDynamicSizeList",getItemOffset:(e,t,n)=>to(e,t,n).offset,getItemSize:(e,t,{items:n})=>n[t].size,getEstimatedTotalSize:L2,getOffset:(e,t,n,a,l)=>{const{height:r,layout:s,width:i}=e,u=br(s)?i:r,c=to(e,t,l),d=L2(e,l),f=Math.max(0,Math.min(d-u,c.offset)),h=Math.max(0,c.offset-u+c.size);switch(n===zi&&(a>=h-u&&a<=f+u?n=qn:n=_a),n){case gr:return f;case yr:return h;case _a:return Math.round(h+(f-h)/2);case qn:default:return a>=h&&a<=f?a:aHD(e,n,t),getStopIndexForStartIndex:(e,t,n,a)=>{const{height:l,total:r,layout:s,width:i}=e,u=br(s)?i:l,c=to(e,t,a),d=n+u;let f=c.offset+c.size,h=t;for(;h{var r,s;n.lastVisitedIndex=Math.min(n.lastVisitedIndex,a-1),(r=t.exposed)==null||r.getItemStyleCache(-1),l&&((s=t.proxy)==null||s.$forceUpdate())},n},clearCache:!1,validateProps:({itemSize:e})=>{}}),KD={loading:Boolean,data:{type:Array,required:!0},hoveringIndex:Number,width:Number};var WD=T({name:"ElSelectDropdown",props:KD,setup(e,{slots:t,expose:n}){const a=Se(Xd),l=de("select"),{getLabel:r,getValue:s,getDisabled:i}=Pi(a.props),u=A([]),c=A(),d=C(()=>e.data.length);ue(()=>d.value,()=>{var L,R;(R=(L=a.tooltipRef.value).updatePopper)==null||R.call(L)});const f=C(()=>vt(a.props.estimatedOptionHeight)),h=C(()=>f.value?{itemSize:a.props.itemHeight}:{estimatedSize:a.props.estimatedOptionHeight,itemSize:L=>u.value[L]}),v=(L=[],R)=>{const{props:{valueKey:K}}=a;return ht(R)?L&&L.some(U=>zs(Kt(U,K))===Kt(R,K)):L.includes(R)},m=(L,R)=>{if(ht(R)){const{valueKey:K}=a.props;return Kt(L,K)===Kt(R,K)}else return L===R},p=(L,R)=>a.props.multiple?v(L,s(R)):m(L,s(R)),y=(L,R)=>{const{disabled:K,multiple:U,multipleLimit:H}=a.props;return K||!R&&(U?H>0&&L.length>=H:!1)},g=L=>e.hoveringIndex===L;n({listRef:c,isSized:f,isItemDisabled:y,isItemHovering:g,isItemSelected:p,scrollToItem:L=>{const R=c.value;R&&R.scrollToItem(L)},resetScrollTop:()=>{const L=c.value;L&&L.resetScrollTop()}});const S=L=>{const{index:R,data:K,style:U}=L,H=o(f),{itemSize:V,estimatedSize:D}=o(h),{modelValue:B}=a.props,{onSelect:z,onHover:F}=a,W=K[R];if(W.type==="Group")return q(wD,{item:W,style:U,height:H?V:D},null);const Z=p(B,W),j=y(B,Z),ne=g(R);return q(TD,tt(L,{selected:Z,disabled:i(W)||j,created:!!W.created,hovering:ne,item:W,onSelect:z,onHover:F}),{default:oe=>{var ce;return((ce=t.default)==null?void 0:ce.call(t,oe))||q("span",null,[r(W)])}})},{onKeyboardNavigate:E,onKeyboardSelect:O}=a,I=()=>{E("forward")},N=()=>{E("backward")},P=L=>{const{code:R}=L,{tab:K,esc:U,down:H,up:V,enter:D,numpadEnter:B}=Ce;switch(R!==K&&(L.preventDefault(),L.stopPropagation()),R){case K:case U:break;case H:I();break;case V:N();break;case D:case B:O();break}};return()=>{var L,R,K,U;const{data:H,width:V}=e,{height:D,multiple:B,scrollbarAlwaysOn:z}=a.props,F=o(f)?sm:FD;return q("div",{class:[l.b("dropdown"),l.is("multiple",B)],style:{width:`${V}px`}},[(L=t.header)==null?void 0:L.call(t),((R=t.loading)==null?void 0:R.call(t))||((K=t.empty)==null?void 0:K.call(t))||q(F,tt({ref:c},o(h),{className:l.be("dropdown","list"),scrollbarAlwaysOn:z,data:H,height:D,width:V,total:H.length,onKeydown:P}),{default:W=>q(S,W,null)}),(U=t.footer)==null?void 0:U.call(t)])}}});function jD(e,t){const{aliasProps:n,getLabel:a,getValue:l}=Pi(e),r=A(0),s=A(),i=C(()=>e.allowCreate&&e.filterable);function u(v){const m=p=>a(p)===v;return e.options&&e.options.some(m)||t.createdOptions.some(m)}function c(v){i.value&&(e.multiple&&v.created?r.value++:s.value=v)}function d(v){if(i.value)if(v&&v.length>0){if(u(v))return;const m={[n.value.value]:v,[n.value.label]:v,created:!0,[n.value.disabled]:!1};t.createdOptions.length>=r.value?t.createdOptions[r.value]=m:t.createdOptions.push(m)}else if(e.multiple)t.createdOptions.length=r.value;else{const m=s.value;t.createdOptions.length=0,m&&m.created&&t.createdOptions.push(m)}}function f(v){if(!i.value||!v||!v.created||v.created&&e.reserveKeyword&&t.inputValue===a(v))return;const m=t.createdOptions.findIndex(p=>l(p)===l(v));~m&&(t.createdOptions.splice(m,1),r.value--)}function h(){i.value&&(t.createdOptions.length=0,r.value=0)}return{createNewOption:d,removeNewOption:f,selectNewOption:c,clearAllNewOption:h}}const qD=(e,t)=>{const{t:n}=ct(),a=de("select"),l=de("input"),{form:r,formItem:s}=mn(),{inputId:i}=ea(e,{formItemContext:s}),{aliasProps:u,getLabel:c,getValue:d,getDisabled:f,getOptions:h}=Pi(e),{valueOnClear:v,isEmptyValue:m}=gi(e),p=_t({inputValue:"",cachedOptions:[],createdOptions:[],hoveringIndex:-1,inputHovering:!1,selectionWidth:0,collapseItemWidth:0,previousQuery:null,previousValue:void 0,selectedLabel:"",menuVisibleOnFocus:!1,isBeforeHide:!1}),y=A(-1),g=A(),x=A(),w=A(),b=A(),S=A(),E=A(),O=A(),I=A(),N=A(),P=A(),{isComposing:L,handleCompositionStart:R,handleCompositionEnd:K,handleCompositionUpdate:U}=zr({afterComposition:ge=>yn(ge)}),{wrapperRef:H,isFocused:V,handleBlur:D}=dl(S,{beforeFocus(){return W.value},afterFocus(){e.automaticDropdown&&!F.value&&(F.value=!0,p.menuVisibleOnFocus=!0)},beforeBlur(ge){var Re,st;return((Re=w.value)==null?void 0:Re.isFocusInsideContent(ge))||((st=b.value)==null?void 0:st.isFocusInsideContent(ge))},afterBlur(){F.value=!1,p.menuVisibleOnFocus=!1}}),B=A([]),z=A([]),F=A(!1),W=C(()=>e.disabled||(r==null?void 0:r.disabled)),Z=C(()=>{var ge;return(ge=r==null?void 0:r.statusIcon)!=null?ge:!1}),j=C(()=>{const ge=z.value.length*e.itemHeight;return ge>e.height?e.height:ge}),ne=C(()=>e.multiple?Ee(e.modelValue)&&e.modelValue.length>0:!m(e.modelValue)),oe=C(()=>e.clearable&&!W.value&&p.inputHovering&&ne.value),ce=C(()=>e.remote&&e.filterable?"":Ma),te=C(()=>ce.value&&a.is("reverse",F.value)),se=C(()=>(s==null?void 0:s.validateState)||""),fe=C(()=>{if(se.value)return ki[se.value]}),xe=C(()=>e.remote?300:0),me=C(()=>e.loading?e.loadingText||n("el.select.loading"):e.remote&&!p.inputValue&&B.value.length===0?!1:e.filterable&&p.inputValue&&B.value.length>0&&z.value.length===0?e.noMatchText||n("el.select.noMatch"):B.value.length===0?e.noDataText||n("el.select.noData"):null),le=ge=>{const Re=st=>{if(e.filterable&&Je(e.filterMethod)||e.filterable&&e.remote&&Je(e.remoteMethod))return!0;const dt=new RegExp(Od(ge),"i");return ge?dt.test(c(st)||""):!0};return e.loading?[]:[...p.createdOptions,...e.options].reduce((st,dt)=>{const un=h(dt);if(Ee(un)){const ga=un.filter(Re);ga.length>0&&st.push({label:c(dt),type:"Group"},...ga)}else(e.remote||Re(dt))&&st.push(dt);return st},[])},we=()=>{B.value=le(""),z.value=le(p.inputValue)},Le=C(()=>{const ge=new Map;return B.value.forEach((Re,st)=>{ge.set(Mt(d(Re)),{option:Re,index:st})}),ge}),De=C(()=>{const ge=new Map;return z.value.forEach((Re,st)=>{ge.set(Mt(d(Re)),{option:Re,index:st})}),ge}),Ye=C(()=>z.value.every(ge=>f(ge))),$e=jt(),Te=C(()=>$e.value==="small"?"small":"default"),ke=()=>{var ge;if(Ie(e.fitInputWidth)){y.value=e.fitInputWidth;return}const Re=((ge=g.value)==null?void 0:ge.offsetWidth)||200;!e.fitInputWidth&&B.value.length>0?Ne(()=>{y.value=Math.max(Re,He())}):y.value=Re},He=()=>{var ge,Re;const dt=document.createElement("canvas").getContext("2d"),un=a.be("dropdown","item"),xf=(((Re=(ge=I.value)==null?void 0:ge.listRef)==null?void 0:Re.innerRef)||document).querySelector(`.${un}`);if(xf===null||dt===null)return 0;const qi=getComputedStyle(xf),R4=Number.parseFloat(qi.paddingLeft)+Number.parseFloat(qi.paddingRight);return dt.font=qi.font,z.value.reduce((B4,H4)=>{const D4=dt.measureText(c(H4));return Math.max(D4.width,B4)},0)+R4},Ge=()=>{if(!x.value)return 0;const ge=window.getComputedStyle(x.value);return Number.parseFloat(ge.gap||"6px")},at=C(()=>{const ge=Ge();return{maxWidth:`${P.value&&e.maxCollapseTags===1?p.selectionWidth-p.collapseItemWidth-ge:p.selectionWidth}px`}}),nt=C(()=>({maxWidth:`${p.selectionWidth}px`})),be=C(()=>Ee(e.modelValue)?e.modelValue.length===0&&!p.inputValue:e.filterable?!p.inputValue:!0),je=C(()=>{var ge;const Re=(ge=e.placeholder)!=null?ge:n("el.select.placeholder");return e.multiple||!ne.value?Re:p.selectedLabel}),ft=C(()=>{var ge,Re;return(Re=(ge=w.value)==null?void 0:ge.popperRef)==null?void 0:Re.contentRef}),Tt=C(()=>{if(e.multiple){const ge=e.modelValue.length;if(e.modelValue.length>0&&De.value.has(e.modelValue[ge-1])){const{index:Re}=De.value.get(e.modelValue[ge-1]);return Re}}else if(!m(e.modelValue)&&De.value.has(e.modelValue)){const{index:ge}=De.value.get(e.modelValue);return ge}return-1}),bt=C({get(){return F.value&&me.value!==!1},set(ge){F.value=ge}}),Pt=C(()=>e.multiple?e.collapseTags?p.cachedOptions.slice(0,e.maxCollapseTags):p.cachedOptions:[]),mt=C(()=>e.multiple?e.collapseTags?p.cachedOptions.slice(e.maxCollapseTags):[]:[]),{createNewOption:sn,removeNewOption:Wt,selectNewOption:re,clearAllNewOption:J}=jD(e,p),ie=()=>{W.value||(p.menuVisibleOnFocus?p.menuVisibleOnFocus=!1:F.value=!F.value)},Y=()=>{p.inputValue.length>0&&!F.value&&(F.value=!0),sn(p.inputValue),Fe(p.inputValue)},ye=Rn(Y,xe.value),Fe=ge=>{p.previousQuery===ge||L.value||(p.previousQuery=ge,e.filterable&&Je(e.filterMethod)?e.filterMethod(ge):e.filterable&&e.remote&&Je(e.remoteMethod)&&e.remoteMethod(ge),e.defaultFirstOption&&(e.filterable||e.remote)&&z.value.length?Ne(lt):Ne(Yt))},lt=()=>{const ge=z.value.filter(dt=>!dt.disabled&&dt.type!=="Group"),Re=ge.find(dt=>dt.created),st=ge[0];p.hoveringIndex=Jt(z.value,Re||st)},Nt=ge=>{dn(e.modelValue,ge)||t(Ct,ge)},Ut=ge=>{t(Ue,ge),Nt(ge),p.previousValue=e.multiple?String(ge):ge},Jt=(ge=[],Re)=>{if(!ht(Re))return ge.indexOf(Re);const st=e.valueKey;let dt=-1;return ge.some((un,ga)=>Kt(un,st)===Kt(Re,st)?(dt=ga,!0):!1),dt},Mt=ge=>ht(ge)?Kt(ge,e.valueKey):ge,ln=()=>{ke()},It=()=>{p.selectionWidth=x.value.getBoundingClientRect().width},In=()=>{p.collapseItemWidth=P.value.getBoundingClientRect().width},Dl=()=>{var ge,Re;(Re=(ge=w.value)==null?void 0:ge.updatePopper)==null||Re.call(ge)},Kr=()=>{var ge,Re;(Re=(ge=b.value)==null?void 0:ge.updatePopper)==null||Re.call(ge)},pl=ge=>{if(e.multiple){let Re=e.modelValue.slice();const st=Jt(Re,d(ge));st>-1?(Re=[...Re.slice(0,st),...Re.slice(st+1)],p.cachedOptions.splice(st,1),Wt(ge)):(e.multipleLimit<=0||Re.length{let st=e.modelValue.slice();const dt=Jt(st,d(Re));dt>-1&&!W.value&&(st=[...e.modelValue.slice(0,dt),...e.modelValue.slice(dt+1)],p.cachedOptions.splice(dt,1),Ut(st),t("remove-tag",d(Re)),Wt(Re)),ge.stopPropagation(),Fl()},Fl=()=>{var ge;(ge=S.value)==null||ge.focus()},Fi=()=>{var ge;if(F.value){F.value=!1,Ne(()=>{var Re;return(Re=S.value)==null?void 0:Re.blur()});return}(ge=S.value)==null||ge.blur()},Wr=()=>{p.inputValue.length>0?p.inputValue="":F.value=!1},Ki=ge=>p1(ge,Re=>!p.cachedOptions.some(st=>d(st)===Re&&f(st))),Wi=ge=>{if(e.multiple&&ge.code!==Ce.delete&&p.inputValue.length===0){ge.preventDefault();const Re=e.modelValue.slice(),st=Ki(Re);if(st<0)return;const dt=Re[st];Re.splice(st,1);const un=p.cachedOptions[st];p.cachedOptions.splice(st,1),Wt(un),Ut(Re),t("remove-tag",dt)}},ji=()=>{let ge;Ee(e.modelValue)?ge=[]:ge=v.value,e.multiple?p.cachedOptions=[]:p.selectedLabel="",F.value=!1,Ut(ge),t("clear"),J(),Fl()},_e=(ge,Re=void 0)=>{const st=z.value;if(!["forward","backward"].includes(ge)||W.value||st.length<=0||Ye.value||L.value)return;if(!F.value)return ie();Re===void 0&&(Re=p.hoveringIndex);let dt=-1;ge==="forward"?(dt=Re+1,dt>=st.length&&(dt=0)):ge==="backward"&&(dt=Re-1,(dt<0||dt>=st.length)&&(dt=st.length-1));const un=st[dt];if(f(un)||un.type==="Group")return _e(ge,dt);p.hoveringIndex=dt,Xa(dt)},Ke=()=>{if(F.value)~p.hoveringIndex&&z.value[p.hoveringIndex]&&pl(z.value[p.hoveringIndex]);else return ie()},gt=ge=>{p.hoveringIndex=ge??-1},Yt=()=>{e.multiple?p.hoveringIndex=z.value.findIndex(ge=>e.modelValue.some(Re=>Mt(Re)===Mt(ge))):p.hoveringIndex=z.value.findIndex(ge=>Mt(ge)===Mt(e.modelValue))},yn=ge=>{if(p.inputValue=ge.target.value,e.remote)ye();else return Y()},Ga=ge=>{if(F.value=!1,V.value){const Re=new FocusEvent("focus",ge);D(Re)}},ma=()=>(p.isBeforeHide=!1,Ne(()=>{~Tt.value&&Xa(p.hoveringIndex)})),Xa=ge=>{I.value.scrollToItem(ge)},vl=(ge,Re)=>{const st=Mt(ge);if(Le.value.has(st)){const{option:dt}=Le.value.get(st);return dt}if(Re&&Re.length){const dt=Re.find(un=>Mt(d(un))===st);if(dt)return dt}return{[u.value.value]:ge,[u.value.label]:ge}},Do=(ge=!1)=>{if(e.multiple)if(e.modelValue.length>0){const Re=p.cachedOptions.slice();p.cachedOptions.length=0,p.previousValue=e.modelValue.toString();for(const st of e.modelValue){const dt=vl(st,Re);p.cachedOptions.push(dt)}}else p.cachedOptions=[],p.previousValue=void 0;else if(ne.value){p.previousValue=e.modelValue;const Re=z.value,st=Re.findIndex(dt=>Mt(d(dt))===Mt(e.modelValue));~st?p.selectedLabel=c(Re[st]):(!p.selectedLabel||ge)&&(p.selectedLabel=Mt(e.modelValue))}else p.selectedLabel="",p.previousValue=void 0;J(),ke()};return ue(()=>e.fitInputWidth,()=>{ke()}),ue(F,ge=>{ge?(e.persistent||ke(),Fe("")):(p.inputValue="",p.previousQuery=null,p.isBeforeHide=!0,sn("")),t("visible-change",ge)}),ue(()=>e.modelValue,(ge,Re)=>{var st;(!ge||Ee(ge)&&ge.length===0||e.multiple&&!dn(ge.toString(),p.previousValue)||!e.multiple&&Mt(ge)!==Mt(p.previousValue))&&Do(!0),!dn(ge,Re)&&e.validateEvent&&((st=s==null?void 0:s.validate)==null||st.call(s,"change").catch(un=>void 0))},{deep:!0}),ue(()=>e.options,()=>{const ge=S.value;(!ge||ge&&document.activeElement!==ge)&&Do()},{deep:!0,flush:"post"}),ue(()=>z.value,()=>(ke(),I.value&&Ne(I.value.resetScrollTop))),cn(()=>{p.isBeforeHide||we()}),cn(()=>{const{valueKey:ge,options:Re}=e,st=new Map;for(const dt of Re){const un=d(dt);let ga=un;if(ht(ga)&&(ga=Kt(un,ge)),st.get(ga))break;st.set(ga,!0)}}),Xe(()=>{Do()}),At(g,ln),At(x,It),At(I,Dl),At(H,Dl),At(N,Kr),At(P,In),{inputId:i,collapseTagSize:Te,currentPlaceholder:je,expanded:F,emptyText:me,popupHeight:j,debounce:xe,allOptions:B,filteredOptions:z,iconComponent:ce,iconReverse:te,tagStyle:at,collapseTagStyle:nt,popperSize:y,dropdownMenuVisible:bt,hasModelValue:ne,shouldShowPlaceholder:be,selectDisabled:W,selectSize:$e,needStatusIcon:Z,showClearBtn:oe,states:p,isFocused:V,nsSelect:a,nsInput:l,inputRef:S,menuRef:I,tagMenuRef:N,tooltipRef:w,tagTooltipRef:b,selectRef:g,wrapperRef:H,selectionRef:x,prefixRef:E,suffixRef:O,collapseItemRef:P,popperRef:ft,validateState:se,validateIcon:fe,showTagList:Pt,collapseTagList:mt,debouncedOnInputChange:ye,deleteTag:Di,getLabel:c,getValue:d,getDisabled:f,getValueKey:Mt,handleClear:ji,handleClickOutside:Ga,handleDel:Wi,handleEsc:Wr,focus:Fl,blur:Fi,handleMenuEnter:ma,handleResize:ln,resetSelectionWidth:It,updateTooltip:Dl,updateTagTooltip:Kr,updateOptions:we,toggleMenu:ie,scrollTo:Xa,onInput:yn,onKeyboardNavigate:_e,onKeyboardSelect:Ke,onSelect:pl,onHover:gt,handleCompositionStart:R,handleCompositionEnd:K,handleCompositionUpdate:U}},UD=T({name:"ElSelectV2",components:{ElSelectMenu:WD,ElTag:yo,ElTooltip:hn,ElIcon:Me},directives:{ClickOutside:Fa},props:SD,emits:ED,setup(e,{emit:t}){const n=C(()=>{const{modelValue:i,multiple:u}=e,c=u?[]:void 0;return Ee(i)?u?i:c:u?c:i}),a=qD(_t({...nn(e),modelValue:n}),t),{calculatorRef:l,inputStyle:r}=qd();it(Xd,{props:_t({...nn(e),height:a.popupHeight,modelValue:n}),expanded:a.expanded,tooltipRef:a.tooltipRef,onSelect:a.onSelect,onHover:a.onHover,onKeyboardNavigate:a.onKeyboardNavigate,onKeyboardSelect:a.onKeyboardSelect});const s=C(()=>e.multiple?a.states.cachedOptions.map(i=>i.label):a.states.selectedLabel);return{...a,modelValue:n,selectedLabel:s,calculatorRef:l,inputStyle:r}}});function YD(e,t,n,a,l,r){const s=Ze("el-tag"),i=Ze("el-tooltip"),u=Ze("el-icon"),c=Ze("el-select-menu"),d=ii("click-outside");return qe((_(),M("div",{ref:"selectRef",class:$([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),onMouseenter:f=>e.states.inputHovering=!0,onMouseleave:f=>e.states.inputHovering=!1},[q(i,{ref:"tooltipRef",visible:e.dropdownMenuVisible,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,placement:e.placement,pure:"",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,trigger:"click",persistent:e.persistent,"append-to":e.appendTo,"show-arrow":e.showArrow,offset:e.offset,onBeforeShow:e.handleMenuEnter,onHide:f=>e.states.isBeforeHide=!1},{default:G(()=>[k("div",{ref:"wrapperRef",class:$([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:Ae(e.toggleMenu,["prevent"])},[e.$slots.prefix?(_(),M("div",{key:0,ref:"prefixRef",class:$(e.nsSelect.e("prefix"))},[Q(e.$slots,"prefix")],2)):ee("v-if",!0),k("div",{ref:"selectionRef",class:$([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.modelValue.length)])},[e.multiple?Q(e.$slots,"tag",{key:0},()=>[(_(!0),M(ze,null,rt(e.showTagList,f=>(_(),M("div",{key:e.getValueKey(e.getValue(f)),class:$(e.nsSelect.e("selected-item"))},[q(s,{closable:!e.selectDisabled&&!e.getDisabled(f),size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:Oe(e.tagStyle),onClose:h=>e.deleteTag(h,f)},{default:G(()=>[k("span",{class:$(e.nsSelect.e("tags-text"))},[Q(e.$slots,"label",{label:e.getLabel(f),value:e.getValue(f)},()=>[ot(he(e.getLabel(f)),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.modelValue.length>e.maxCollapseTags?(_(),ae(i,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:G(()=>[k("div",{ref:"collapseItemRef",class:$(e.nsSelect.e("selected-item"))},[q(s,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,style:Oe(e.collapseTagStyle),"disable-transitions":""},{default:G(()=>[k("span",{class:$(e.nsSelect.e("tags-text"))}," + "+he(e.modelValue.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:G(()=>[k("div",{ref:"tagMenuRef",class:$(e.nsSelect.e("selection"))},[(_(!0),M(ze,null,rt(e.collapseTagList,f=>(_(),M("div",{key:e.getValueKey(e.getValue(f)),class:$(e.nsSelect.e("selected-item"))},[q(s,{class:"in-tooltip",closable:!e.selectDisabled&&!e.getDisabled(f),size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:h=>e.deleteTag(h,f)},{default:G(()=>[k("span",{class:$(e.nsSelect.e("tags-text"))},[Q(e.$slots,"label",{label:e.getLabel(f),value:e.getValue(f)},()=>[ot(he(e.getLabel(f)),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","teleported"])):ee("v-if",!0)]):ee("v-if",!0),k("div",{class:$([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[qe(k("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":f=>e.states.inputValue=f,style:Oe(e.inputStyle),autocomplete:e.autocomplete,tabindex:e.tabindex,"aria-autocomplete":"list","aria-haspopup":"listbox",autocapitalize:"off","aria-expanded":e.expanded,"aria-label":e.ariaLabel,class:$([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,role:"combobox",readonly:!e.filterable,spellcheck:"false",type:"text",name:e.name,onInput:e.onInput,onCompositionstart:e.handleCompositionStart,onCompositionupdate:e.handleCompositionUpdate,onCompositionend:e.handleCompositionEnd,onKeydown:[kt(Ae(f=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"]),kt(Ae(f=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"]),kt(Ae(e.onKeyboardSelect,["stop","prevent"]),["enter"]),kt(Ae(e.handleEsc,["stop","prevent"]),["esc"]),kt(Ae(e.handleDel,["stop"]),["delete"])],onClick:Ae(e.toggleMenu,["stop"])},null,46,["id","onUpdate:modelValue","autocomplete","tabindex","aria-expanded","aria-label","disabled","readonly","name","onInput","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown","onClick"]),[[si,e.states.inputValue]]),e.filterable?(_(),M("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:$(e.nsSelect.e("input-calculator")),textContent:he(e.states.inputValue)},null,10,["textContent"])):ee("v-if",!0)],2),e.shouldShowPlaceholder?(_(),M("div",{key:1,class:$([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?Q(e.$slots,"label",{key:0,label:e.currentPlaceholder,value:e.modelValue},()=>[k("span",null,he(e.currentPlaceholder),1)]):(_(),M("span",{key:1},he(e.currentPlaceholder),1))],2)):ee("v-if",!0)],2),k("div",{ref:"suffixRef",class:$(e.nsSelect.e("suffix"))},[e.iconComponent?qe((_(),ae(u,{key:0,class:$([e.nsSelect.e("caret"),e.nsInput.e("icon"),e.iconReverse])},{default:G(()=>[(_(),ae(Qe(e.iconComponent)))]),_:1},8,["class"])),[[pt,!e.showClearBtn]]):ee("v-if",!0),e.showClearBtn&&e.clearIcon?(_(),ae(u,{key:1,class:$([e.nsSelect.e("caret"),e.nsInput.e("icon"),e.nsSelect.e("clear")]),onClick:Ae(e.handleClear,["prevent","stop"])},{default:G(()=>[(_(),ae(Qe(e.clearIcon)))]),_:1},8,["class","onClick"])):ee("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?(_(),ae(u,{key:2,class:$([e.nsInput.e("icon"),e.nsInput.e("validateIcon"),e.nsInput.is("loading",e.validateState==="validating")])},{default:G(()=>[(_(),ae(Qe(e.validateIcon)))]),_:1},8,["class"])):ee("v-if",!0)],2)],10,["onClick"])]),content:G(()=>[q(c,{ref:"menuRef",data:e.filteredOptions,width:e.popperSize,"hovering-index":e.states.hoveringIndex,"scrollbar-always-on":e.scrollbarAlwaysOn},Yn({default:G(f=>[Q(e.$slots,"default",oa(Tl(f)))]),_:2},[e.$slots.header?{name:"header",fn:G(()=>[k("div",{class:$(e.nsSelect.be("dropdown","header"))},[Q(e.$slots,"header")],2)])}:void 0,e.$slots.loading&&e.loading?{name:"loading",fn:G(()=>[k("div",{class:$(e.nsSelect.be("dropdown","loading"))},[Q(e.$slots,"loading")],2)])}:e.loading||e.filteredOptions.length===0?{name:"empty",fn:G(()=>[k("div",{class:$(e.nsSelect.be("dropdown","empty"))},[Q(e.$slots,"empty",{},()=>[k("span",null,he(e.emptyText),1)])],2)])}:void 0,e.$slots.footer?{name:"footer",fn:G(()=>[k("div",{class:$(e.nsSelect.be("dropdown","footer"))},[Q(e.$slots,"footer")],2)])}:void 0]),1032,["data","width","hovering-index","scrollbar-always-on"])]),_:3},8,["visible","teleported","popper-class","popper-options","fallback-placements","effect","placement","transition","persistent","append-to","show-arrow","offset","onBeforeShow","onHide"])],42,["onMouseenter","onMouseleave"])),[[d,e.handleClickOutside,e.popperRef]])}var GD=ve(UD,[["render",YD],["__file","select.vue"]]);const XD=We(GD),ZD=pe({animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:X([Number,Object])}}),JD=pe({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),QD=T({name:"ElSkeletonItem"}),eF=T({...QD,props:JD,setup(e){const t=de("skeleton");return(n,a)=>(_(),M("div",{class:$([o(t).e("item"),o(t).e(n.variant)])},[n.variant==="image"?(_(),ae(o(j1),{key:0})):ee("v-if",!0)],2))}});var Zs=ve(eF,[["__file","skeleton-item.vue"]]);const tF=(e,t=0)=>{if(t===0)return e;const n=ht(t)&&!!t.initVal,a=A(n);let l=null;const r=i=>{if(vt(i)){a.value=e.value;return}l&&clearTimeout(l),l=setTimeout(()=>{a.value=e.value},i)},s=i=>{i==="leading"?Ie(t)?r(t):r(t.leading):ht(t)?r(t.trailing):a.value=!1};return Xe(()=>s("leading")),ue(()=>e.value,i=>{s(i?"leading":"trailing")}),a},nF=T({name:"ElSkeleton"}),aF=T({...nF,props:ZD,setup(e,{expose:t}){const n=e,a=de("skeleton"),l=tF(yt(n,"loading"),n.throttle);return t({uiLoading:l}),(r,s)=>o(l)?(_(),M("div",tt({key:0,class:[o(a).b(),o(a).is("animated",r.animated)]},r.$attrs),[(_(!0),M(ze,null,rt(r.count,i=>(_(),M(ze,{key:i},[o(l)?Q(r.$slots,"template",{key:i},()=>[q(Zs,{class:$(o(a).is("first")),variant:"p"},null,8,["class"]),(_(!0),M(ze,null,rt(r.rows,u=>(_(),ae(Zs,{key:u,class:$([o(a).e("paragraph"),o(a).is("last",u===r.rows&&r.rows>1)]),variant:"p"},null,8,["class"]))),128))]):ee("v-if",!0)],64))),128))],16)):Q(r.$slots,"default",oa(tt({key:1},r.$attrs)))}});var lF=ve(aF,[["__file","skeleton.vue"]]);const oF=We(lF,{SkeletonItem:Zs}),rF=Lt(Zs),um=Symbol("sliderContextKey"),sF=pe({modelValue:{type:X([Number,Array]),default:0},id:{type:String,default:void 0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},showInput:Boolean,showInputControls:{type:Boolean,default:!0},size:qt,inputSize:qt,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:X(Function),default:void 0},disabled:Boolean,range:Boolean,vertical:Boolean,height:String,debounce:{type:Number,default:300},rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:X(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:Ya,default:"top"},marks:{type:X(Object)},validateEvent:{type:Boolean,default:!0},...rn(["ariaLabel"])}),pu=e=>Ie(e)||Ee(e)&&e.every(Ie),iF={[Ue]:pu,[fn]:pu,[Ct]:pu},uF=pe({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:Ya,default:"top"}}),cF={[Ue]:e=>Ie(e)},dF=(e,t,n)=>{const a=A(),l=A(!1),r=C(()=>t.value instanceof Function),s=C(()=>r.value&&t.value(e.modelValue)||e.modelValue),i=Rn(()=>{n.value&&(l.value=!0)},50),u=Rn(()=>{n.value&&(l.value=!1)},50);return{tooltip:a,tooltipVisible:l,formatValue:s,displayTooltip:i,hideTooltip:u}},fF=(e,t,n)=>{const{disabled:a,min:l,max:r,step:s,showTooltip:i,precision:u,sliderSize:c,formatTooltip:d,emitChange:f,resetSize:h,updateDragging:v}=Se(um),{tooltip:m,tooltipVisible:p,formatValue:y,displayTooltip:g,hideTooltip:x}=dF(e,d,i),w=A(),b=C(()=>`${(e.modelValue-l.value)/(r.value-l.value)*100}%`),S=C(()=>e.vertical?{bottom:b.value}:{left:b.value}),E=()=>{t.hovering=!0,g()},O=()=>{t.hovering=!1,t.dragging||x()},I=Z=>{a.value||(Z.preventDefault(),B(Z),window.addEventListener("mousemove",z),window.addEventListener("touchmove",z),window.addEventListener("mouseup",F),window.addEventListener("touchend",F),window.addEventListener("contextmenu",F),w.value.focus())},N=Z=>{a.value||(t.newPosition=Number.parseFloat(b.value)+Z/(r.value-l.value)*100,W(t.newPosition),f())},P=()=>{N(-s.value)},L=()=>{N(s.value)},R=()=>{N(-s.value*4)},K=()=>{N(s.value*4)},U=()=>{a.value||(W(0),f())},H=()=>{a.value||(W(100),f())},V=Z=>{let j=!0;switch(Z.code){case Ce.left:case Ce.down:P();break;case Ce.right:case Ce.up:L();break;case Ce.home:U();break;case Ce.end:H();break;case Ce.pageDown:R();break;case Ce.pageUp:K();break;default:j=!1;break}j&&Z.preventDefault()},D=Z=>{let j,ne;return Z.type.startsWith("touch")?(ne=Z.touches[0].clientY,j=Z.touches[0].clientX):(ne=Z.clientY,j=Z.clientX),{clientX:j,clientY:ne}},B=Z=>{t.dragging=!0,t.isClick=!0;const{clientX:j,clientY:ne}=D(Z);e.vertical?t.startY=ne:t.startX=j,t.startPosition=Number.parseFloat(b.value),t.newPosition=t.startPosition},z=Z=>{if(t.dragging){t.isClick=!1,g(),h();let j;const{clientX:ne,clientY:oe}=D(Z);e.vertical?(t.currentY=oe,j=(t.startY-t.currentY)/c.value*100):(t.currentX=ne,j=(t.currentX-t.startX)/c.value*100),t.newPosition=t.startPosition+j,W(t.newPosition)}},F=()=>{t.dragging&&(setTimeout(()=>{t.dragging=!1,t.hovering||x(),t.isClick||W(t.newPosition),f()},0),window.removeEventListener("mousemove",z),window.removeEventListener("touchmove",z),window.removeEventListener("mouseup",F),window.removeEventListener("touchend",F),window.removeEventListener("contextmenu",F))},W=async Z=>{if(Z===null||Number.isNaN(+Z))return;Z<0?Z=0:Z>100&&(Z=100);const j=100/((r.value-l.value)/s.value);let oe=Math.round(Z/j)*j*(r.value-l.value)*.01+l.value;oe=Number.parseFloat(oe.toFixed(u.value)),oe!==e.modelValue&&n(Ue,oe),!t.dragging&&e.modelValue!==t.oldValue&&(t.oldValue=e.modelValue),await Ne(),t.dragging&&g(),m.value.updatePopper()};return ue(()=>t.dragging,Z=>{v(Z)}),wt(w,"touchstart",I,{passive:!1}),{disabled:a,button:w,tooltip:m,tooltipVisible:p,showTooltip:i,wrapperStyle:S,formatValue:y,handleMouseEnter:E,handleMouseLeave:O,onButtonDown:I,onKeyDown:V,setPosition:W}},pF=T({name:"ElSliderButton"}),vF=T({...pF,props:uF,emits:cF,setup(e,{expose:t,emit:n}){const a=e,l=de("slider"),r=_t({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:a.modelValue}),{disabled:s,button:i,tooltip:u,showTooltip:c,tooltipVisible:d,wrapperStyle:f,formatValue:h,handleMouseEnter:v,handleMouseLeave:m,onButtonDown:p,onKeyDown:y,setPosition:g}=fF(a,r,n),{hovering:x,dragging:w}=nn(r);return t({onButtonDown:p,onKeyDown:y,setPosition:g,hovering:x,dragging:w}),(b,S)=>(_(),M("div",{ref_key:"button",ref:i,class:$([o(l).e("button-wrapper"),{hover:o(x),dragging:o(w)}]),style:Oe(o(f)),tabindex:o(s)?-1:0,onMouseenter:o(v),onMouseleave:o(m),onMousedown:o(p),onFocus:o(v),onBlur:o(m),onKeydown:o(y)},[q(o(hn),{ref_key:"tooltip",ref:u,visible:o(d),placement:b.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":b.tooltipClass,disabled:!o(c),persistent:o(c)},{content:G(()=>[k("span",null,he(o(h)),1)]),default:G(()=>[k("div",{class:$([o(l).e("button"),{hover:o(x),dragging:o(w)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled","persistent"])],46,["tabindex","onMouseenter","onMouseleave","onMousedown","onFocus","onBlur","onKeydown"]))}});var R2=ve(vF,[["__file","button.vue"]]);const hF=pe({mark:{type:X([String,Object]),default:void 0}});var mF=T({name:"ElSliderMarker",props:hF,setup(e){const t=de("slider"),n=C(()=>Ve(e.mark)?e.mark:e.mark.label),a=C(()=>Ve(e.mark)?void 0:e.mark.style);return()=>Pe("div",{class:t.e("marks-text"),style:a.value},n.value)}});const gF=(e,t,n)=>{const{form:a,formItem:l}=mn(),r=Ot(),s=A(),i=A(),u={firstButton:s,secondButton:i},c=C(()=>e.disabled||(a==null?void 0:a.disabled)||!1),d=C(()=>Math.min(t.firstValue,t.secondValue)),f=C(()=>Math.max(t.firstValue,t.secondValue)),h=C(()=>e.range?`${100*(f.value-d.value)/(e.max-e.min)}%`:`${100*(t.firstValue-e.min)/(e.max-e.min)}%`),v=C(()=>e.range?`${100*(d.value-e.min)/(e.max-e.min)}%`:"0%"),m=C(()=>e.vertical?{height:e.height}:{}),p=C(()=>e.vertical?{height:h.value,bottom:v.value}:{width:h.value,left:v.value}),y=()=>{r.value&&(t.sliderSize=r.value[`client${e.vertical?"Height":"Width"}`])},g=R=>{const K=e.min+R*(e.max-e.min)/100;if(!e.range)return s;let U;return Math.abs(d.value-K)t.secondValue?"firstButton":"secondButton",u[U]},x=R=>{const K=g(R);return K.value.setPosition(R),K},w=R=>{t.firstValue=R??e.min,S(e.range?[d.value,f.value]:R??e.min)},b=R=>{t.secondValue=R,e.range&&S([d.value,f.value])},S=R=>{n(Ue,R),n(fn,R)},E=async()=>{await Ne(),n(Ct,e.range?[d.value,f.value]:e.modelValue)},O=R=>{var K,U,H,V,D,B;if(c.value||t.dragging)return;y();let z=0;if(e.vertical){const F=(H=(U=(K=R.touches)==null?void 0:K.item(0))==null?void 0:U.clientY)!=null?H:R.clientY;z=(r.value.getBoundingClientRect().bottom-F)/t.sliderSize*100}else{const F=(B=(D=(V=R.touches)==null?void 0:V.item(0))==null?void 0:D.clientX)!=null?B:R.clientX,W=r.value.getBoundingClientRect().left;z=(F-W)/t.sliderSize*100}if(!(z<0||z>100))return x(z)};return{elFormItem:l,slider:r,firstButton:s,secondButton:i,sliderDisabled:c,minValue:d,maxValue:f,runwayStyle:m,barStyle:p,resetSize:y,setPosition:x,emitChange:E,onSliderWrapperPrevent:R=>{var K,U;((K=u.firstButton.value)!=null&&K.dragging||(U=u.secondButton.value)!=null&&U.dragging)&&R.preventDefault()},onSliderClick:R=>{O(R)&&E()},onSliderDown:async R=>{const K=O(R);K&&(await Ne(),K.value.onButtonDown(R))},onSliderMarkerDown:R=>{c.value||t.dragging||x(R)},setFirstValue:w,setSecondValue:b}},yF=(e,t,n,a)=>({stops:C(()=>{if(!e.showStops||e.min>e.max)return[];if(e.step===0)return[];const s=(e.max-e.min)/e.step,i=100*e.step/(e.max-e.min),u=Array.from({length:s-1}).map((c,d)=>(d+1)*i);return e.range?u.filter(c=>c<100*(n.value-e.min)/(e.max-e.min)||c>100*(a.value-e.min)/(e.max-e.min)):u.filter(c=>c>100*(t.firstValue-e.min)/(e.max-e.min))}),getStopStyle:s=>e.vertical?{bottom:`${s}%`}:{left:`${s}%`}}),_F=e=>C(()=>e.marks?Object.keys(e.marks).map(Number.parseFloat).sort((n,a)=>n-a).filter(n=>n<=e.max&&n>=e.min).map(n=>({point:n,position:(n-e.min)*100/(e.max-e.min),mark:e.marks[n]})):[]),bF=(e,t,n,a,l,r)=>{const s=c=>{l(Ue,c),l(fn,c)},i=()=>e.range?![n.value,a.value].every((c,d)=>c===t.oldValue[d]):e.modelValue!==t.oldValue,u=()=>{var c,d;e.min>e.max&&Gt("Slider","min should not be greater than max.");const f=e.modelValue;e.range&&Ee(f)?f[1]e.max?s([e.max,e.max]):f[0]e.max?s([f[0],e.max]):(t.firstValue=f[0],t.secondValue=f[1],i()&&(e.validateEvent&&((c=r==null?void 0:r.validate)==null||c.call(r,"change").catch(h=>void 0)),t.oldValue=f.slice())):!e.range&&Ie(f)&&!Number.isNaN(f)&&(fe.max?s(e.max):(t.firstValue=f,i()&&(e.validateEvent&&((d=r==null?void 0:r.validate)==null||d.call(r,"change").catch(h=>void 0)),t.oldValue=f)))};u(),ue(()=>t.dragging,c=>{c||u()}),ue(()=>e.modelValue,(c,d)=>{t.dragging||Ee(c)&&Ee(d)&&c.every((f,h)=>f===d[h])&&t.firstValue===c[0]&&t.secondValue===c[1]||u()},{deep:!0}),ue(()=>[e.min,e.max],()=>{u()})},wF=(e,t,n)=>{const a=A();return Xe(async()=>{e.range?(Ee(e.modelValue)?(t.firstValue=Math.max(e.min,e.modelValue[0]),t.secondValue=Math.min(e.max,e.modelValue[1])):(t.firstValue=e.min,t.secondValue=e.max),t.oldValue=[t.firstValue,t.secondValue]):(!Ie(e.modelValue)||Number.isNaN(e.modelValue)?t.firstValue=e.min:t.firstValue=Math.min(e.max,Math.max(e.min,e.modelValue)),t.oldValue=t.firstValue),wt(window,"resize",n),await Ne(),n()}),{sliderWrapper:a}},CF=T({name:"ElSlider"}),SF=T({...CF,props:sF,emits:iF,setup(e,{expose:t,emit:n}){const a=e,l=de("slider"),{t:r}=ct(),s=_t({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:i,slider:u,firstButton:c,secondButton:d,sliderDisabled:f,minValue:h,maxValue:v,runwayStyle:m,barStyle:p,resetSize:y,emitChange:g,onSliderWrapperPrevent:x,onSliderClick:w,onSliderDown:b,onSliderMarkerDown:S,setFirstValue:E,setSecondValue:O}=gF(a,s,n),{stops:I,getStopStyle:N}=yF(a,s,h,v),{inputId:P,isLabeledByFormItem:L}=ea(a,{formItemContext:i}),R=jt(),K=C(()=>a.inputSize||R.value),U=C(()=>a.ariaLabel||r("el.slider.defaultLabel",{min:a.min,max:a.max})),H=C(()=>a.range?a.rangeStartLabel||r("el.slider.defaultRangeStartLabel"):U.value),V=C(()=>a.formatValueText?a.formatValueText(j.value):`${j.value}`),D=C(()=>a.rangeEndLabel||r("el.slider.defaultRangeEndLabel")),B=C(()=>a.formatValueText?a.formatValueText(ne.value):`${ne.value}`),z=C(()=>[l.b(),l.m(R.value),l.is("vertical",a.vertical),{[l.m("with-input")]:a.showInput}]),F=_F(a);bF(a,s,h,v,n,i);const W=C(()=>{const te=[a.min,a.max,a.step].map(se=>{const fe=`${se}`.split(".")[1];return fe?fe.length:0});return Math.max.apply(null,te)}),{sliderWrapper:Z}=wF(a,s,y),{firstValue:j,secondValue:ne,sliderSize:oe}=nn(s),ce=te=>{s.dragging=te};return wt(Z,"touchstart",x,{passive:!1}),wt(Z,"touchmove",x,{passive:!1}),it(um,{...nn(a),sliderSize:oe,disabled:f,precision:W,emitChange:g,resetSize:y,updateDragging:ce}),t({onSliderClick:w}),(te,se)=>{var fe,xe;return _(),M("div",{id:te.range?o(P):void 0,ref_key:"sliderWrapper",ref:Z,class:$(o(z)),role:te.range?"group":void 0,"aria-label":te.range&&!o(L)?o(U):void 0,"aria-labelledby":te.range&&o(L)?(fe=o(i))==null?void 0:fe.labelId:void 0},[k("div",{ref_key:"slider",ref:u,class:$([o(l).e("runway"),{"show-input":te.showInput&&!te.range},o(l).is("disabled",o(f))]),style:Oe(o(m)),onMousedown:o(b),onTouchstartPassive:o(b)},[k("div",{class:$(o(l).e("bar")),style:Oe(o(p))},null,6),q(R2,{id:te.range?void 0:o(P),ref_key:"firstButton",ref:c,"model-value":o(j),vertical:te.vertical,"tooltip-class":te.tooltipClass,placement:te.placement,role:"slider","aria-label":te.range||!o(L)?o(H):void 0,"aria-labelledby":!te.range&&o(L)?(xe=o(i))==null?void 0:xe.labelId:void 0,"aria-valuemin":te.min,"aria-valuemax":te.range?o(ne):te.max,"aria-valuenow":o(j),"aria-valuetext":o(V),"aria-orientation":te.vertical?"vertical":"horizontal","aria-disabled":o(f),"onUpdate:modelValue":o(E)},null,8,["id","model-value","vertical","tooltip-class","placement","aria-label","aria-labelledby","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"]),te.range?(_(),ae(R2,{key:0,ref_key:"secondButton",ref:d,"model-value":o(ne),vertical:te.vertical,"tooltip-class":te.tooltipClass,placement:te.placement,role:"slider","aria-label":o(D),"aria-valuemin":o(j),"aria-valuemax":te.max,"aria-valuenow":o(ne),"aria-valuetext":o(B),"aria-orientation":te.vertical?"vertical":"horizontal","aria-disabled":o(f),"onUpdate:modelValue":o(O)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):ee("v-if",!0),te.showStops?(_(),M("div",{key:1},[(_(!0),M(ze,null,rt(o(I),(me,le)=>(_(),M("div",{key:le,class:$(o(l).e("stop")),style:Oe(o(N)(me))},null,6))),128))])):ee("v-if",!0),o(F).length>0?(_(),M(ze,{key:2},[k("div",null,[(_(!0),M(ze,null,rt(o(F),(me,le)=>(_(),M("div",{key:le,style:Oe(o(N)(me.position)),class:$([o(l).e("stop"),o(l).e("marks-stop")])},null,6))),128))]),k("div",{class:$(o(l).e("marks"))},[(_(!0),M(ze,null,rt(o(F),(me,le)=>(_(),ae(o(mF),{key:le,mark:me.mark,style:Oe(o(N)(me.position)),onMousedown:Ae(we=>o(S)(me.position),["stop"])},null,8,["mark","style","onMousedown"]))),128))],2)],64)):ee("v-if",!0)],46,["onMousedown","onTouchstartPassive"]),te.showInput&&!te.range?(_(),ae(o(Fh),{key:0,ref:"input","model-value":o(j),class:$(o(l).e("input")),step:te.step,disabled:o(f),controls:te.showInputControls,min:te.min,max:te.max,precision:o(W),debounce:te.debounce,size:o(K),"onUpdate:modelValue":o(E),onChange:o(g)},null,8,["model-value","class","step","disabled","controls","min","max","precision","debounce","size","onUpdate:modelValue","onChange"])):ee("v-if",!0)],10,["id","role","aria-label","aria-labelledby"])}}});var kF=ve(SF,[["__file","slider.vue"]]);const EF=We(kF),xF=pe({prefixCls:{type:String}}),B2=T({name:"ElSpaceItem",props:xF,setup(e,{slots:t}){const n=de("space"),a=C(()=>`${e.prefixCls||n.b()}__item`);return()=>Pe("div",{class:a.value},Q(t,"default"))}}),H2={small:8,default:12,large:16};function MF(e){const t=de("space"),n=C(()=>[t.b(),t.m(e.direction),e.class]),a=A(0),l=A(0),r=C(()=>{const i=e.wrap||e.fill?{flexWrap:"wrap"}:{},u={alignItems:e.alignment},c={rowGap:`${l.value}px`,columnGap:`${a.value}px`};return[i,u,c,e.style]}),s=C(()=>e.fill?{flexGrow:1,minWidth:`${e.fillRatio}%`}:{});return cn(()=>{const{size:i="small",wrap:u,direction:c,fill:d}=e;if(Ee(i)){const[f=0,h=0]=i;a.value=f,l.value=h}else{let f;Ie(i)?f=i:f=H2[i||"small"]||H2.small,(u||d)&&c==="horizontal"?a.value=l.value=f:c==="horizontal"?(a.value=f,l.value=0):(l.value=f,a.value=0)}}),{classes:n,containerStyle:r,itemStyle:s}}const $F=pe({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:X([String,Object,Array]),default:""},style:{type:X([String,Array,Object]),default:""},alignment:{type:X(String),default:"center"},prefixCls:{type:String},spacer:{type:X([Object,String,Number,Array]),default:null,validator:e=>Ft(e)||Ie(e)||Ve(e)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:xa,validator:e=>Ie(e)||Ee(e)&&e.length===2&&e.every(Ie)}}),TF=T({name:"ElSpace",props:$F,setup(e,{slots:t}){const{classes:n,containerStyle:a,itemStyle:l}=MF(e);function r(s,i="",u=[]){const{prefixCls:c}=e;return s.forEach((d,f)=>{Hu(d)?Ee(d.children)&&d.children.forEach((h,v)=>{Hu(h)&&Ee(h.children)?r(h.children,`${i+v}-`,u):u.push(q(B2,{style:l.value,prefixCls:c,key:`nested-${i+v}`},{default:()=>[h]},Kn.PROPS|Kn.STYLE,["style","prefixCls"]))}):cI(d)&&u.push(q(B2,{style:l.value,prefixCls:c,key:`LoopKey${i+f}`},{default:()=>[d]},Kn.PROPS|Kn.STYLE,["style","prefixCls"]))}),u}return()=>{var s;const{spacer:i,direction:u}=e,c=Q(t,"default",{key:0},()=>[]);if(((s=c.children)!=null?s:[]).length===0)return null;if(Ee(c.children)){let d=r(c.children);if(i){const f=d.length-1;d=d.reduce((h,v,m)=>{const p=[...h,v];return m!==f&&p.push(q("span",{style:[l.value,u==="vertical"?"width: 100%":null],key:m},[Ft(i)?i:ot(i,Kn.TEXT)],Kn.STYLE)),p},[])}return q("div",{class:n.value,style:a.value},d,Kn.STYLE|Kn.CLASS)}return c.children}}}),OF=We(TF),NF=pe({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:X([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:X([String,Object,Array])}}),IF=T({name:"ElStatistic"}),PF=T({...IF,props:NF,setup(e,{expose:t}){const n=e,a=de("statistic"),l=C(()=>{const{value:r,formatter:s,precision:i,decimalSeparator:u,groupSeparator:c}=n;if(Je(s))return s(r);if(!Ie(r)||Number.isNaN(r))return r;let[d,f=""]=String(r).split(".");return f=f.padEnd(i,"0").slice(0,i>0?i:0),d=d.replace(/\B(?=(\d{3})+(?!\d))/g,c),[d,f].join(f?u:"")});return t({displayValue:l}),(r,s)=>(_(),M("div",{class:$(o(a).b())},[r.$slots.title||r.title?(_(),M("div",{key:0,class:$(o(a).e("head"))},[Q(r.$slots,"title",{},()=>[ot(he(r.title),1)])],2)):ee("v-if",!0),k("div",{class:$(o(a).e("content"))},[r.$slots.prefix||r.prefix?(_(),M("div",{key:0,class:$(o(a).e("prefix"))},[Q(r.$slots,"prefix",{},()=>[k("span",null,he(r.prefix),1)])],2)):ee("v-if",!0),k("span",{class:$(o(a).e("number")),style:Oe(r.valueStyle)},he(o(l)),7),r.$slots.suffix||r.suffix?(_(),M("div",{key:1,class:$(o(a).e("suffix"))},[Q(r.$slots,"suffix",{},()=>[k("span",null,he(r.suffix),1)])],2)):ee("v-if",!0)],2)],2))}});var zF=ve(PF,[["__file","statistic.vue"]]);const cm=We(zF),AF=pe({format:{type:String,default:"HH:mm:ss"},prefix:String,suffix:String,title:String,value:{type:X([Number,Object]),default:0},valueStyle:{type:X([String,Object,Array])}}),VF={finish:()=>!0,[Ct]:e=>Ie(e)},LF=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]],D2=e=>Ie(e)?new Date(e).getTime():e.valueOf(),F2=(e,t)=>{let n=e;const a=/\[([^\]]*)]/g;return LF.reduce((r,[s,i])=>{const u=new RegExp(`${s}+(?![^\\[\\]]*\\])`,"g");if(u.test(r)){const c=Math.floor(n/i);return n-=c*i,r.replace(u,d=>String(c).padStart(d.length,"0"))}return r},t).replace(a,"$1")},RF=T({name:"ElCountdown"}),BF=T({...RF,props:AF,emits:VF,setup(e,{expose:t,emit:n}){const a=e;let l;const r=A(0),s=C(()=>F2(r.value,a.format)),i=d=>F2(d,a.format),u=()=>{l&&(Il(l),l=void 0)},c=()=>{const d=D2(a.value),f=()=>{let h=d-Date.now();n("change",h),h<=0?(h=0,u(),n("finish")):l=sl(f),r.value=h};l=sl(f)};return Xe(()=>{r.value=D2(a.value)-Date.now(),ue(()=>[a.value,a.format],()=>{u(),c()},{immediate:!0})}),$t(()=>{u()}),t({displayValue:s}),(d,f)=>(_(),ae(o(cm),{value:r.value,title:d.title,prefix:d.prefix,suffix:d.suffix,"value-style":d.valueStyle,formatter:i},Yn({_:2},[rt(d.$slots,(h,v)=>({name:v,fn:G(()=>[Q(d.$slots,v)])}))]),1032,["value","title","prefix","suffix","value-style"]))}});var HF=ve(BF,[["__file","countdown.vue"]]);const DF=We(HF),FF=pe({space:{type:[Number,String],default:""},active:{type:Number,default:0},direction:{type:String,default:"horizontal",values:["horizontal","vertical"]},alignCenter:{type:Boolean},simple:{type:Boolean},finishStatus:{type:String,values:["wait","process","finish","error","success"],default:"finish"},processStatus:{type:String,values:["wait","process","finish","error","success"],default:"process"}}),KF={[Ct]:(e,t)=>[e,t].every(Ie)},WF=T({name:"ElSteps"}),jF=T({...WF,props:FF,emits:KF,setup(e,{emit:t}){const n=e,a=de("steps"),{children:l,addChild:r,removeChild:s}=$d(et(),"ElStep");return ue(l,()=>{l.value.forEach((i,u)=>{i.setIndex(u)})}),it("ElSteps",{props:n,steps:l,addStep:r,removeStep:s}),ue(()=>n.active,(i,u)=>{t(Ct,i,u)}),(i,u)=>(_(),M("div",{class:$([o(a).b(),o(a).m(i.simple?"simple":i.direction)])},[Q(i.$slots,"default")],2))}});var qF=ve(jF,[["__file","steps.vue"]]);const UF=pe({title:{type:String,default:""},icon:{type:St},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}}),YF=T({name:"ElStep"}),GF=T({...YF,props:UF,setup(e){const t=e,n=de("step"),a=A(-1),l=A({}),r=A(""),s=Se("ElSteps"),i=et();Xe(()=>{ue([()=>s.props.active,()=>s.props.processStatus,()=>s.props.finishStatus],([E])=>{b(E)},{immediate:!0})}),$t(()=>{s.removeStep(S.uid)});const u=C(()=>t.status||r.value),c=C(()=>{const E=s.steps.value[a.value-1];return E?E.currentStatus:"wait"}),d=C(()=>s.props.alignCenter),f=C(()=>s.props.direction==="vertical"),h=C(()=>s.props.simple),v=C(()=>s.steps.value.length),m=C(()=>{var E;return((E=s.steps.value[v.value-1])==null?void 0:E.uid)===(i==null?void 0:i.uid)}),p=C(()=>h.value?"":s.props.space),y=C(()=>[n.b(),n.is(h.value?"simple":s.props.direction),n.is("flex",m.value&&!p.value&&!d.value),n.is("center",d.value&&!f.value&&!h.value)]),g=C(()=>{const E={flexBasis:Ie(p.value)?`${p.value}px`:p.value?p.value:`${100/(v.value-(d.value?0:1))}%`};return f.value||m.value&&(E.maxWidth=`${100/v.value}%`),E}),x=E=>{a.value=E},w=E=>{const O=E==="wait",I={transitionDelay:`${O?"-":""}${150*a.value}ms`},N=E===s.props.processStatus||O?0:100;I.borderWidth=N&&!h.value?"1px":0,I[s.props.direction==="vertical"?"height":"width"]=`${N}%`,l.value=I},b=E=>{E>a.value?r.value=s.props.finishStatus:E===a.value&&c.value!=="error"?r.value=s.props.processStatus:r.value="wait";const O=s.steps.value[a.value-1];O&&O.calcProgress(r.value)},S=_t({uid:i.uid,currentStatus:u,setIndex:x,calcProgress:w});return s.addStep(S),(E,O)=>(_(),M("div",{style:Oe(o(g)),class:$(o(y))},[ee(" icon & line "),k("div",{class:$([o(n).e("head"),o(n).is(o(u))])},[o(h)?ee("v-if",!0):(_(),M("div",{key:0,class:$(o(n).e("line"))},[k("i",{class:$(o(n).e("line-inner")),style:Oe(l.value)},null,6)],2)),k("div",{class:$([o(n).e("icon"),o(n).is(E.icon||E.$slots.icon?"icon":"text")])},[Q(E.$slots,"icon",{},()=>[E.icon?(_(),ae(o(Me),{key:0,class:$(o(n).e("icon-inner"))},{default:G(()=>[(_(),ae(Qe(E.icon)))]),_:1},8,["class"])):o(u)==="success"?(_(),ae(o(Me),{key:1,class:$([o(n).e("icon-inner"),o(n).is("status")])},{default:G(()=>[q(o(zo))]),_:1},8,["class"])):o(u)==="error"?(_(),ae(o(Me),{key:2,class:$([o(n).e("icon-inner"),o(n).is("status")])},{default:G(()=>[q(o(Xn))]),_:1},8,["class"])):o(h)?ee("v-if",!0):(_(),M("div",{key:3,class:$(o(n).e("icon-inner"))},he(a.value+1),3))])],2)],2),ee(" title & description "),k("div",{class:$(o(n).e("main"))},[k("div",{class:$([o(n).e("title"),o(n).is(o(u))])},[Q(E.$slots,"title",{},()=>[ot(he(E.title),1)])],2),o(h)?(_(),M("div",{key:0,class:$(o(n).e("arrow"))},null,2)):(_(),M("div",{key:1,class:$([o(n).e("description"),o(n).is(o(u))])},[Q(E.$slots,"description",{},()=>[ot(he(E.description),1)])],2))],2)],6))}});var dm=ve(GF,[["__file","item.vue"]]);const XF=We(qF,{Step:dm}),ZF=Lt(dm),fm=e=>["",...xa].includes(e),JF=pe({modelValue:{type:[Boolean,String,Number],default:!1},disabled:Boolean,loading:Boolean,size:{type:String,validator:fm},width:{type:[String,Number],default:""},inlinePrompt:Boolean,inactiveActionIcon:{type:St},activeActionIcon:{type:St},activeIcon:{type:St},inactiveIcon:{type:St},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},beforeChange:{type:X(Function)},id:String,tabindex:{type:[String,Number]},...rn(["ariaLabel"])}),QF={[Ue]:e=>Et(e)||Ve(e)||Ie(e),[Ct]:e=>Et(e)||Ve(e)||Ie(e),[fn]:e=>Et(e)||Ve(e)||Ie(e)},pm="ElSwitch",eK=T({name:pm}),tK=T({...eK,props:JF,emits:QF,setup(e,{expose:t,emit:n}){const a=e,{formItem:l}=mn(),r=jt(),s=de("switch"),{inputId:i}=ea(a,{formItemContext:l}),u=gn(C(()=>a.loading)),c=A(a.modelValue!==!1),d=A(),f=A(),h=C(()=>[s.b(),s.m(r.value),s.is("disabled",u.value),s.is("checked",g.value)]),v=C(()=>[s.e("label"),s.em("label","left"),s.is("active",!g.value)]),m=C(()=>[s.e("label"),s.em("label","right"),s.is("active",g.value)]),p=C(()=>({width:Rt(a.width)}));ue(()=>a.modelValue,()=>{c.value=!0});const y=C(()=>c.value?a.modelValue:!1),g=C(()=>y.value===a.activeValue);[a.activeValue,a.inactiveValue].includes(y.value)||(n(Ue,a.inactiveValue),n(Ct,a.inactiveValue),n(fn,a.inactiveValue)),ue(g,S=>{var E;d.value.checked=S,a.validateEvent&&((E=l==null?void 0:l.validate)==null||E.call(l,"change").catch(O=>void 0))});const x=()=>{const S=g.value?a.inactiveValue:a.activeValue;n(Ue,S),n(Ct,S),n(fn,S),Ne(()=>{d.value.checked=g.value})},w=()=>{if(u.value)return;const{beforeChange:S}=a;if(!S){x();return}const E=S();[Su(E),Et(E)].includes(!0)||Gt(pm,"beforeChange must return type `Promise` or `boolean`"),Su(E)?E.then(I=>{I&&x()}).catch(I=>{}):E&&x()},b=()=>{var S,E;(E=(S=d.value)==null?void 0:S.focus)==null||E.call(S)};return Xe(()=>{d.value.checked=g.value}),t({focus:b,checked:g}),(S,E)=>(_(),M("div",{class:$(o(h)),onClick:Ae(w,["prevent"])},[k("input",{id:o(i),ref_key:"input",ref:d,class:$(o(s).e("input")),type:"checkbox",role:"switch","aria-checked":o(g),"aria-disabled":o(u),"aria-label":S.ariaLabel,name:S.name,"true-value":S.activeValue,"false-value":S.inactiveValue,disabled:o(u),tabindex:S.tabindex,onChange:x,onKeydown:kt(w,["enter"])},null,42,["id","aria-checked","aria-disabled","aria-label","name","true-value","false-value","disabled","tabindex","onKeydown"]),!S.inlinePrompt&&(S.inactiveIcon||S.inactiveText)?(_(),M("span",{key:0,class:$(o(v))},[S.inactiveIcon?(_(),ae(o(Me),{key:0},{default:G(()=>[(_(),ae(Qe(S.inactiveIcon)))]),_:1})):ee("v-if",!0),!S.inactiveIcon&&S.inactiveText?(_(),M("span",{key:1,"aria-hidden":o(g)},he(S.inactiveText),9,["aria-hidden"])):ee("v-if",!0)],2)):ee("v-if",!0),k("span",{ref_key:"core",ref:f,class:$(o(s).e("core")),style:Oe(o(p))},[S.inlinePrompt?(_(),M("div",{key:0,class:$(o(s).e("inner"))},[S.activeIcon||S.inactiveIcon?(_(),ae(o(Me),{key:0,class:$(o(s).is("icon"))},{default:G(()=>[(_(),ae(Qe(o(g)?S.activeIcon:S.inactiveIcon)))]),_:1},8,["class"])):S.activeText||S.inactiveText?(_(),M("span",{key:1,class:$(o(s).is("text")),"aria-hidden":!o(g)},he(o(g)?S.activeText:S.inactiveText),11,["aria-hidden"])):ee("v-if",!0)],2)):ee("v-if",!0),k("div",{class:$(o(s).e("action"))},[S.loading?(_(),ae(o(Me),{key:0,class:$(o(s).is("loading"))},{default:G(()=>[q(o(ca))]),_:1},8,["class"])):o(g)?Q(S.$slots,"active-action",{key:1},()=>[S.activeActionIcon?(_(),ae(o(Me),{key:0},{default:G(()=>[(_(),ae(Qe(S.activeActionIcon)))]),_:1})):ee("v-if",!0)]):o(g)?ee("v-if",!0):Q(S.$slots,"inactive-action",{key:2},()=>[S.inactiveActionIcon?(_(),ae(o(Me),{key:0},{default:G(()=>[(_(),ae(Qe(S.inactiveActionIcon)))]),_:1})):ee("v-if",!0)])],2)],6),!S.inlinePrompt&&(S.activeIcon||S.activeText)?(_(),M("span",{key:1,class:$(o(m))},[S.activeIcon?(_(),ae(o(Me),{key:0},{default:G(()=>[(_(),ae(Qe(S.activeIcon)))]),_:1})):ee("v-if",!0),!S.activeIcon&&S.activeText?(_(),M("span",{key:1,"aria-hidden":!o(g)},he(S.activeText),9,["aria-hidden"])):ee("v-if",!0)],2)):ee("v-if",!0)],10,["onClick"]))}});var nK=ve(tK,[["__file","switch.vue"]]);const aK=We(nK),vu=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},lK=function(e,t,n,a,l){if(!t&&!a&&(!l||Ee(l)&&!l.length))return e;Ve(n)?n=n==="descending"?-1:1:n=n&&n<0?-1:1;const r=a?null:function(i,u){return l?(Ee(l)||(l=[l]),l.map(c=>Ve(c)?Kt(i,c):c(i,u,e))):(t!=="$key"&&ht(i)&&"$value"in i&&(i=i.$value),[ht(i)?Kt(i,t):i])},s=function(i,u){if(a)return a(i.value,u.value);for(let c=0,d=i.key.length;cu.key[c])return 1}return 0};return e.map((i,u)=>({value:i,index:u,key:r?r(i,u):null})).sort((i,u)=>{let c=s(i,u);return c||(c=i.index-u.index),c*+n}).map(i=>i.value)},vm=function(e,t){let n=null;return e.columns.forEach(a=>{a.id===t&&(n=a)}),n},oK=function(e,t){let n=null;for(let a=0;a{if(!e)throw new Error("Row is required when get row identity");if(Ve(t)){if(!t.includes("."))return`${e[t]}`;const n=t.split(".");let a=e;for(const l of n)a=a[l];return`${a}`}else if(Je(t))return t.call(null,e)},ar=function(e,t){const n={};return(e||[]).forEach((a,l)=>{n[wn(a,t)]={row:a,index:l}}),n};function rK(e,t){const n={};let a;for(a in e)n[a]=e[a];for(a in t)if(vn(t,a)){const l=t[a];vt(l)||(n[a]=l)}return n}function ef(e){return e===""||vt(e)||(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function hm(e){return e===""||vt(e)||(e=ef(e),Number.isNaN(e)&&(e=80)),e}function sK(e){return Ie(e)?e:Ve(e)?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function iK(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...a)=>t(n(...a)))}function Js(e,t,n,a,l,r){let s=r??0,i=!1;const u=e.indexOf(t),c=u!==-1,d=l==null?void 0:l.call(null,t,r),f=v=>{v==="add"?e.push(t):e.splice(u,1),i=!0},h=v=>{let m=0;const p=(a==null?void 0:a.children)&&v[a.children];return p&&Ee(p)&&(m+=p.length,p.forEach(y=>{m+=h(y)})),m};return(!l||d)&&(Et(n)?n&&!c?f("add"):!n&&c&&f("remove"):f(c?"remove":"add")),!(a!=null&&a.checkStrictly)&&(a!=null&&a.children)&&Ee(t[a.children])&&t[a.children].forEach(v=>{Js(e,v,n??!c,a,l,s+1),s+=h(v)+1}),i}function uK(e,t,n="children",a="hasChildren"){const l=s=>!(Ee(s)&&s.length);function r(s,i,u){t(s,i,u),i.forEach(c=>{if(c[a]){t(c,null,u+1);return}const d=c[n];l(d)||r(c,d,u+1)})}e.forEach(s=>{if(s[a]){t(s,null,0);return}const i=s[n];l(i)||r(s,i,0)})}const W2=(e,t)=>({content:t,...e,popperOptions:{strategy:"fixed",...e.popperOptions}});let zn=null;function cK(e,t,n,a){if((zn==null?void 0:zn.trigger)===n){h1(zn.vm.component.props,W2(e,t));return}zn==null||zn();const l=a==null?void 0:a.refs.tableWrapper,r=l==null?void 0:l.dataset.prefix,s=q(hn,{virtualTriggering:!0,virtualRef:n,appendTo:l,placement:"top",transition:"none",offset:0,hideAfter:0,...W2(e,t)});s.appContext={...a.appContext,...a};const i=document.createElement("div");ol(s,i),s.component.exposed.onOpen();const u=l==null?void 0:l.querySelector(`.${r}-scrollbar__wrap`);zn=()=>{ol(null,i),u==null||u.removeEventListener("scroll",zn),zn=null},zn.trigger=n,zn.vm=s,u==null||u.addEventListener("scroll",zn)}function mm(e){return e.children?u_(e.children,mm):[e]}function j2(e,t){return e+t.colSpan}const gm=(e,t,n,a)=>{let l=0,r=e;const s=n.states.columns.value;if(a){const u=mm(a[e]);l=s.slice(0,s.indexOf(u[0])).reduce(j2,0),r=l+u.reduce(j2,0)-1}else l=e;let i;switch(t){case"left":r=s.length-n.states.rightFixedLeafColumnsLength.value&&(i="right");break;default:r=s.length-n.states.rightFixedLeafColumnsLength.value&&(i="right")}return i?{direction:i,start:l,after:r}:{}},tf=(e,t,n,a,l,r=0)=>{const s=[],{direction:i,start:u,after:c}=gm(t,n,a,l);if(i){const d=i==="left";s.push(`${e}-fixed-column--${i}`),d&&c+r===a.states.fixedLeafColumnsLength.value-1?s.push("is-last-column"):!d&&u-r===a.states.columns.value.length-a.states.rightFixedLeafColumnsLength.value&&s.push("is-first-column")}return s};function q2(e,t){return e+(Or(t.realWidth)||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const nf=(e,t,n,a)=>{const{direction:l,start:r=0,after:s=0}=gm(e,t,n,a);if(!l)return;const i={},u=l==="left",c=n.states.columns.value;return u?i.left=c.slice(0,r).reduce(q2,0):i.right=c.slice(s+1).reverse().reduce(q2,0),i},wo=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function dK(e){const t=et(),n=A(!1),a=A([]);return{updateExpandRows:()=>{const u=e.data.value||[],c=e.rowKey.value;if(n.value)a.value=u.slice();else if(c){const d=ar(a.value,c);a.value=u.reduce((f,h)=>{const v=wn(h,c);return d[v]&&f.push(h),f},[])}else a.value=[]},toggleRowExpansion:(u,c)=>{Js(a.value,u,c)&&t.emit("expand-change",u,a.value.slice())},setExpandRowKeys:u=>{t.store.assertRowKey();const c=e.data.value||[],d=e.rowKey.value,f=ar(c,d);a.value=u.reduce((h,v)=>{const m=f[v];return m&&h.push(m.row),h},[])},isRowExpanded:u=>{const c=e.rowKey.value;return c?!!ar(a.value,c)[wn(u,c)]:a.value.includes(u)},states:{expandRows:a,defaultExpandAll:n}}}function fK(e){const t=et(),n=A(null),a=A(null),l=c=>{t.store.assertRowKey(),n.value=c,s(c)},r=()=>{n.value=null},s=c=>{const{data:d,rowKey:f}=e;let h=null;f.value&&(h=(o(d)||[]).find(v=>wn(v,f.value)===c)),a.value=h,t.emit("current-change",a.value,null)};return{setCurrentRowKey:l,restoreCurrentRowKey:r,setCurrentRowByKey:s,updateCurrentRow:c=>{const d=a.value;if(c&&c!==d){a.value=c,t.emit("current-change",a.value,d);return}!c&&d&&(a.value=null,t.emit("current-change",null,d))},updateCurrentRowData:()=>{const c=e.rowKey.value,d=e.data.value||[],f=a.value;if(!d.includes(f)&&f){if(c){const h=wn(f,c);s(h)}else a.value=null;Or(a.value)&&t.emit("current-change",null,f)}else n.value&&(s(n.value),r())},states:{_currentRowKey:n,currentRow:a}}}function pK(e){const t=A([]),n=A({}),a=A(16),l=A(!1),r=A({}),s=A("hasChildren"),i=A("children"),u=A(!1),c=et(),d=C(()=>{if(!e.rowKey.value)return{};const w=e.data.value||[];return h(w)}),f=C(()=>{const w=e.rowKey.value,b=Object.keys(r.value),S={};return b.length&&b.forEach(E=>{if(r.value[E].length){const O={children:[]};r.value[E].forEach(I=>{const N=wn(I,w);O.children.push(N),I[s.value]&&!S[N]&&(S[N]={children:[]})}),S[E]=O}}),S}),h=w=>{const b=e.rowKey.value,S={};return uK(w,(E,O,I)=>{const N=wn(E,b);Ee(O)?S[N]={children:O.map(P=>wn(P,b)),level:I}:l.value&&(S[N]={children:[],lazy:!0,level:I})},i.value,s.value),S},v=(w=!1,b=(S=>(S=c.store)==null?void 0:S.states.defaultExpandAll.value)())=>{var S;const E=d.value,O=f.value,I=Object.keys(E),N={};if(I.length){const P=o(n),L=[],R=(U,H)=>{if(w)return t.value?b||t.value.includes(H):!!(b||U!=null&&U.expanded);{const V=b||t.value&&t.value.includes(H);return!!(U!=null&&U.expanded||V)}};I.forEach(U=>{const H=P[U],V={...E[U]};if(V.expanded=R(H,U),V.lazy){const{loaded:D=!1,loading:B=!1}=H||{};V.loaded=!!D,V.loading=!!B,L.push(U)}N[U]=V});const K=Object.keys(O);l.value&&K.length&&L.length&&K.forEach(U=>{const H=P[U],V=O[U].children;if(L.includes(U)){if(N[U].children.length!==0)throw new Error("[ElTable]children must be an empty array.");N[U].children=V}else{const{loaded:D=!1,loading:B=!1}=H||{};N[U]={lazy:!0,loaded:!!D,loading:!!B,expanded:R(H,U),children:V,level:""}}})}n.value=N,(S=c.store)==null||S.updateTableScrollY()};ue(()=>t.value,()=>{v(!0)}),ue(()=>d.value,()=>{v()}),ue(()=>f.value,()=>{v()});const m=w=>{t.value=w,v()},p=(w,b)=>{c.store.assertRowKey();const S=e.rowKey.value,E=wn(w,S),O=E&&n.value[E];if(E&&O&&"expanded"in O){const I=O.expanded;b=vt(b)?!O.expanded:b,n.value[E].expanded=b,I!==b&&c.emit("expand-change",w,b),c.store.updateTableScrollY()}},y=w=>{c.store.assertRowKey();const b=e.rowKey.value,S=wn(w,b),E=n.value[S];l.value&&E&&"loaded"in E&&!E.loaded?g(w,S,E):p(w,void 0)},g=(w,b,S)=>{const{load:E}=c.props;E&&!n.value[b].loaded&&(n.value[b].loading=!0,E(w,S,O=>{if(!Ee(O))throw new TypeError("[ElTable] data must be an array");n.value[b].loading=!1,n.value[b].loaded=!0,n.value[b].expanded=!0,O.length&&(r.value[b]=O),c.emit("expand-change",w,!0)}))};return{loadData:g,loadOrToggle:y,toggleTreeExpansion:p,updateTreeExpandKeys:m,updateTreeData:v,updateKeyChildren:(w,b)=>{const{lazy:S,rowKey:E}=c.props;if(S){if(!E)throw new Error("[Table] rowKey is required in updateKeyChild");r.value[w]&&(r.value[w]=b)}},normalize:h,states:{expandRowKeys:t,treeData:n,indent:a,lazy:l,lazyTreeNodeMap:r,lazyColumnIdentifier:s,childrenColumnName:i,checkStrictly:u}}}const vK=(e,t)=>{const n=t.sortingColumn;return!n||Ve(n.sortable)?e:lK(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy)},ks=e=>{const t=[];return e.forEach(n=>{n.children&&n.children.length>0?t.push.apply(t,ks(n.children)):t.push(n)}),t};function hK(){var e;const t=et(),{size:n}=nn((e=t.proxy)==null?void 0:e.$props),a=A(null),l=A([]),r=A([]),s=A(!1),i=A([]),u=A([]),c=A([]),d=A([]),f=A([]),h=A([]),v=A([]),m=A([]),p=[],y=A(0),g=A(0),x=A(0),w=A(!1),b=A([]),S=A(!1),E=A(!1),O=A(null),I=A({}),N=A(null),P=A(null),L=A(null),R=A(null),K=A(null),U=C(()=>a.value?ar(b.value,a.value):void 0);ue(l,()=>{var re;t.state&&(z(!1),t.props.tableLayout==="auto"&&((re=t.refs.tableHeaderRef)==null||re.updateFixedColumnStyle()))},{deep:!0});const H=()=>{if(!a.value)throw new Error("[ElTable] prop row-key is required")},V=re=>{var J;(J=re.children)==null||J.forEach(ie=>{ie.fixed=re.fixed,V(ie)})};let D;const B=()=>{i.value.forEach(ye=>{V(ye)}),d.value=i.value.filter(ye=>ye.fixed===!0||ye.fixed==="left"),f.value=i.value.filter(ye=>ye.fixed==="right"),vt(D)&&i.value[0]&&i.value[0].type==="selection"&&(D=!!i.value[0].fixed),d.value.length>0&&i.value[0]&&i.value[0].type==="selection"&&(i.value[0].fixed?d.value.some(Fe=>Fe.type!=="selection")?D=void 0:(i.value[0].fixed=D,D||d.value.shift()):(i.value[0].fixed=!0,d.value.unshift(i.value[0])));const re=i.value.filter(ye=>!ye.fixed);u.value=[].concat(d.value).concat(re).concat(f.value);const J=ks(re),ie=ks(d.value),Y=ks(f.value);y.value=J.length,g.value=ie.length,x.value=Y.length,c.value=[].concat(ie).concat(J).concat(Y),s.value=d.value.length>0||f.value.length>0},z=(re,J=!1)=>{re&&B(),J?t.state.doLayout():t.state.debouncedUpdateLayout()},F=re=>U.value?!!U.value[wn(re,a.value)]:b.value.includes(re),W=()=>{w.value=!1;const re=b.value;b.value=[],re.length&&t.emit("selection-change",[])},Z=()=>{let re;if(a.value){re=[];const J=ar(l.value,a.value);for(const ie in U.value)vn(U.value,ie)&&!J[ie]&&re.push(U.value[ie].row)}else re=b.value.filter(J=>!l.value.includes(J));if(re.length){const J=b.value.filter(ie=>!re.includes(ie));b.value=J,t.emit("selection-change",J.slice())}},j=()=>(b.value||[]).slice(),ne=(re,J,ie=!0,Y=!1)=>{var ye,Fe,lt,Nt;const Ut={children:(Fe=(ye=t==null?void 0:t.store)==null?void 0:ye.states)==null?void 0:Fe.childrenColumnName.value,checkStrictly:(Nt=(lt=t==null?void 0:t.store)==null?void 0:lt.states)==null?void 0:Nt.checkStrictly.value};if(Js(b.value,re,J,Ut,Y?void 0:O.value)){const Mt=(b.value||[]).slice();ie&&t.emit("select",Mt,re),t.emit("selection-change",Mt)}},oe=()=>{var re,J;const ie=E.value?!w.value:!(w.value||b.value.length);w.value=ie;let Y=!1,ye=0;const Fe=(J=(re=t==null?void 0:t.store)==null?void 0:re.states)==null?void 0:J.rowKey.value,{childrenColumnName:lt}=t.store.states,Nt={children:lt.value,checkStrictly:!1};l.value.forEach((Ut,Jt)=>{const Mt=Jt+ye;Js(b.value,Ut,ie,Nt,O.value,Mt)&&(Y=!0),ye+=se(wn(Ut,Fe))}),Y&&t.emit("selection-change",b.value?b.value.slice():[]),t.emit("select-all",(b.value||[]).slice())},ce=()=>{l.value.forEach(re=>{const J=wn(re,a.value),ie=U.value[J];ie&&(b.value[ie.index]=re)})},te=()=>{var re;if(((re=l.value)==null?void 0:re.length)===0){w.value=!1;return}const{childrenColumnName:J}=t.store.states;let ie=0,Y=0;const ye=lt=>{var Nt;for(const Ut of lt){const Jt=O.value&&O.value.call(null,Ut,ie);if(F(Ut))Y++;else if(!O.value||Jt)return!1;if(ie++,(Nt=Ut[J.value])!=null&&Nt.length&&!ye(Ut[J.value]))return!1}return!0},Fe=ye(l.value||[]);w.value=Y===0?!1:Fe},se=re=>{var J;if(!t||!t.store)return 0;const{treeData:ie}=t.store.states;let Y=0;const ye=(J=ie.value[re])==null?void 0:J.children;return ye&&(Y+=ye.length,ye.forEach(Fe=>{Y+=se(Fe)})),Y},fe=(re,J)=>{Ee(re)||(re=[re]);const ie={};return re.forEach(Y=>{I.value[Y.id]=J,ie[Y.columnKey||Y.id]=J}),ie},xe=(re,J,ie)=>{P.value&&P.value!==re&&(P.value.order=null),P.value=re,L.value=J,R.value=ie},me=()=>{let re=o(r);Object.keys(I.value).forEach(J=>{const ie=I.value[J];if(!ie||ie.length===0)return;const Y=vm({columns:c.value},J);Y&&Y.filterMethod&&(re=re.filter(ye=>ie.some(Fe=>Y.filterMethod.call(null,Fe,ye,Y))))}),N.value=re},le=()=>{l.value=vK(N.value,{sortingColumn:P.value,sortProp:L.value,sortOrder:R.value})},we=(re=void 0)=>{re&&re.filter||me(),le()},Le=re=>{const{tableHeaderRef:J}=t.refs;if(!J)return;const ie=Object.assign({},J.filterPanels),Y=Object.keys(ie);if(Y.length)if(Ve(re)&&(re=[re]),Ee(re)){const ye=re.map(Fe=>oK({columns:c.value},Fe));Y.forEach(Fe=>{const lt=ye.find(Nt=>Nt.id===Fe);lt&&(lt.filteredValue=[])}),t.store.commit("filterChange",{column:ye,values:[],silent:!0,multi:!0})}else Y.forEach(ye=>{const Fe=c.value.find(lt=>lt.id===ye);Fe&&(Fe.filteredValue=[])}),I.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},De=()=>{P.value&&(xe(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:Ye,toggleRowExpansion:$e,updateExpandRows:Te,states:ke,isRowExpanded:He}=dK({data:l,rowKey:a}),{updateTreeExpandKeys:Ge,toggleTreeExpansion:at,updateTreeData:nt,updateKeyChildren:be,loadOrToggle:je,states:ft}=pK({data:l,rowKey:a}),{updateCurrentRowData:Tt,updateCurrentRow:bt,setCurrentRowKey:Pt,states:mt}=fK({data:l,rowKey:a});return{assertRowKey:H,updateColumns:B,scheduleLayout:z,isSelected:F,clearSelection:W,cleanSelection:Z,getSelectionRows:j,toggleRowSelection:ne,_toggleAllSelection:oe,toggleAllSelection:null,updateSelectionByRowKey:ce,updateAllSelected:te,updateFilters:fe,updateCurrentRow:bt,updateSort:xe,execFilter:me,execSort:le,execQuery:we,clearFilter:Le,clearSort:De,toggleRowExpansion:$e,setExpandRowKeysAdapter:re=>{Ye(re),Ge(re)},setCurrentRowKey:Pt,toggleRowExpansionAdapter:(re,J)=>{c.value.some(({type:Y})=>Y==="expand")?$e(re,J):at(re,J)},isRowExpanded:He,updateExpandRows:Te,updateCurrentRowData:Tt,loadOrToggle:je,updateTreeData:nt,updateKeyChildren:be,states:{tableSize:n,rowKey:a,data:l,_data:r,isComplex:s,_columns:i,originColumns:u,columns:c,fixedColumns:d,rightFixedColumns:f,leafColumns:h,fixedLeafColumns:v,rightFixedLeafColumns:m,updateOrderFns:p,leafColumnsLength:y,fixedLeafColumnsLength:g,rightFixedLeafColumnsLength:x,isAllSelected:w,selection:b,reserveSelection:S,selectOnIndeterminate:E,selectable:O,filters:I,filteredData:N,sortingColumn:P,sortProp:L,sortOrder:R,hoverRow:K,...ke,...ft,...mt}}}function cc(e,t){return e.map(n=>{var a;return n.id===t.id?t:((a=n.children)!=null&&a.length&&(n.children=cc(n.children,t)),n)})}function dc(e){e.forEach(t=>{var n,a;t.no=(n=t.getColumnIndex)==null?void 0:n.call(t),(a=t.children)!=null&&a.length&&dc(t.children)}),e.sort((t,n)=>t.no-n.no)}function mK(){const e=et(),t=hK();return{ns:de("table"),...t,mutations:{setData(s,i){const u=o(s._data)!==i;s.data.value=i,s._data.value=i,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),o(s.reserveSelection)?(e.store.assertRowKey(),e.store.updateSelectionByRowKey()):u?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(s,i,u,c){const d=o(s._columns);let f=[];u?(u&&!u.children&&(u.children=[]),u.children.push(i),f=cc(d,u)):(d.push(i),f=d),dc(f),s._columns.value=f,s.updateOrderFns.push(c),i.type==="selection"&&(s.selectable.value=i.selectable,s.reserveSelection.value=i.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder(s,i){var u;((u=i.getColumnIndex)==null?void 0:u.call(i))!==i.no&&(dc(s._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(s,i,u,c){const d=o(s._columns)||[];if(u)u.children.splice(u.children.findIndex(h=>h.id===i.id),1),Ne(()=>{var h;((h=u.children)==null?void 0:h.length)===0&&delete u.children}),s._columns.value=cc(d,u);else{const h=d.indexOf(i);h>-1&&(d.splice(h,1),s._columns.value=d)}const f=s.updateOrderFns.indexOf(c);f>-1&&s.updateOrderFns.splice(f,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(s,i){const{prop:u,order:c,init:d}=i;if(u){const f=o(s.columns).find(h=>h.property===u);f&&(f.order=c,e.store.updateSort(f,u,c),e.store.commit("changeSortCondition",{init:d}))}},changeSortCondition(s,i){const{sortingColumn:u,sortProp:c,sortOrder:d}=s,f=o(u),h=o(c),v=o(d);Or(v)&&(s.sortingColumn.value=null,s.sortProp.value=null);const m={filter:!0};e.store.execQuery(m),(!i||!(i.silent||i.init))&&e.emit("sort-change",{column:f,prop:h,order:v}),e.store.updateTableScrollY()},filterChange(s,i){const{column:u,values:c,silent:d}=i,f=e.store.updateFilters(u,c);e.store.execQuery(),d||e.emit("filter-change",f),e.store.updateTableScrollY()},toggleAllSelection(){e.store.toggleAllSelection()},rowSelectedChanged(s,i){e.store.toggleRowSelection(i),e.store.updateAllSelected()},setHoverRow(s,i){s.hoverRow.value=i},setCurrentRow(s,i){e.store.updateCurrentRow(i)}},commit:function(s,...i){const u=e.store.mutations;if(u[s])u[s].apply(e,[e.store.states].concat(i));else throw new Error(`Action not found: ${s}`)},updateTableScrollY:function(){Ne(()=>e.layout.updateScrollY.apply(e.layout))}}}const lr={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",data:"data","treeProps.hasChildren":{key:"lazyColumnIdentifier",default:"hasChildren"},"treeProps.children":{key:"childrenColumnName",default:"children"},"treeProps.checkStrictly":{key:"checkStrictly",default:!1}};function gK(e,t){if(!e)throw new Error("Table is required.");const n=mK();return n.toggleAllSelection=Rn(n._toggleAllSelection,10),Object.keys(lr).forEach(a=>{ym(_m(t,a),a,n)}),yK(n,t),n}function yK(e,t){Object.keys(lr).forEach(n=>{ue(()=>_m(t,n),a=>{ym(a,n,e)})})}function ym(e,t,n){let a=e,l=lr[t];ht(lr[t])&&(l=l.key,a=a||lr[t].default),n.states[l].value=a}function _m(e,t){if(t.includes(".")){const n=t.split(".");let a=e;return n.forEach(l=>{a=a[l]}),a}else return e[t]}class _K{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=A(null),this.scrollX=A(!1),this.scrollY=A(!1),this.bodyWidth=A(null),this.fixedWidth=A(null),this.rightFixedWidth=A(null),this.gutterWidth=0;for(const n in t)vn(t,n)&&(Sn(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(){const t=this.height.value;if(Or(t))return!1;const n=this.table.refs.scrollBarRef;if(this.table.vnode.el&&(n!=null&&n.wrapRef)){let a=!0;const l=this.scrollY.value;return a=n.wrapRef.scrollHeight>n.wrapRef.clientHeight,this.scrollY.value=a,l!==a}return!1}setHeight(t,n="height"){if(!ut)return;const a=this.table.vnode.el;if(t=sK(t),this.height.value=Number(t),!a&&(t||t===0))return Ne(()=>this.setHeight(t,n));Ie(t)?(a.style[n]=`${t}px`,this.updateElsHeight()):Ve(t)&&(a.style[n]=t,this.updateElsHeight())}setMaxHeight(t){this.setHeight(t,"max-height")}getFlattenColumns(){const t=[];return this.table.store.states.columns.value.forEach(a=>{a.isColumnGroup?t.push.apply(t,a.columns):t.push(a)}),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(!ut)return;const t=this.fit,n=this.table.vnode.el.clientWidth;let a=0;const l=this.getFlattenColumns(),r=l.filter(u=>!Ie(u.width));if(l.forEach(u=>{Ie(u.width)&&u.realWidth&&(u.realWidth=null)}),r.length>0&&t){if(l.forEach(u=>{a+=Number(u.width||u.minWidth||80)}),a<=n){this.scrollX.value=!1;const u=n-a;if(r.length===1)r[0].realWidth=Number(r[0].minWidth||80)+u;else{const c=r.reduce((h,v)=>h+Number(v.minWidth||80),0),d=u/c;let f=0;r.forEach((h,v)=>{if(v===0)return;const m=Math.floor(Number(h.minWidth||80)*d);f+=m,h.realWidth=Number(h.minWidth||80)+m}),r[0].realWidth=Number(r[0].minWidth||80)+u-f}}else this.scrollX.value=!0,r.forEach(u=>{u.realWidth=Number(u.minWidth)});this.bodyWidth.value=Math.max(a,n),this.table.state.resizeState.value.width=this.bodyWidth.value}else l.forEach(u=>{!u.width&&!u.minWidth?u.realWidth=80:u.realWidth=Number(u.width||u.minWidth),a+=u.realWidth}),this.scrollX.value=a>n,this.bodyWidth.value=a;const s=this.store.states.fixedColumns.value;if(s.length>0){let u=0;s.forEach(c=>{u+=Number(c.realWidth||c.width)}),this.fixedWidth.value=u}const i=this.store.states.rightFixedColumns.value;if(i.length>0){let u=0;i.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(a=>{var l,r;switch(t){case"columns":(l=a.state)==null||l.onColumnsChange(this);break;case"scrollable":(r=a.state)==null||r.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}const{CheckboxGroup:bK}=Qn,wK=T({name:"ElTableFilterPanel",components:{ElCheckbox:Qn,ElCheckboxGroup:bK,ElScrollbar:Ta,ElTooltip:hn,ElIcon:Me,ArrowDown:Ma,ArrowUp:bi},directives:{ClickOutside:Fa},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function},appendTo:{type:String}},setup(e){const t=et(),{t:n}=ct(),a=de("table-filter"),l=t==null?void 0:t.parent;l.filterPanels.value[e.column.id]||(l.filterPanels.value[e.column.id]=t);const r=A(!1),s=A(null),i=C(()=>e.column&&e.column.filters),u=C(()=>e.column.filterClassName?`${a.b()} ${e.column.filterClassName}`:a.b()),c=C({get:()=>{var S;return(((S=e.column)==null?void 0:S.filteredValue)||[])[0]},set:S=>{d.value&&(ua(S)?d.value.splice(0,1):d.value.splice(0,1,S))}}),d=C({get(){return e.column?e.column.filteredValue||[]:[]},set(S){e.column&&e.upDataColumn("filteredValue",S)}}),f=C(()=>e.column?e.column.filterMultiple:!0),h=S=>S.value===c.value,v=()=>{r.value=!1},m=S=>{S.stopPropagation(),r.value=!r.value},p=()=>{r.value=!1},y=()=>{w(d.value),v()},g=()=>{d.value=[],w(d.value),v()},x=S=>{c.value=S,ua(S)?w([]):w(d.value),v()},w=S=>{e.store.commit("filterChange",{column:e.column,values:S}),e.store.updateAllSelected()};ue(r,S=>{e.column&&e.upDataColumn("filterOpened",S)},{immediate:!0});const b=C(()=>{var S,E;return(E=(S=s.value)==null?void 0:S.popperRef)==null?void 0:E.contentRef});return{tooltipVisible:r,multiple:f,filterClassName:u,filteredValue:d,filterValue:c,filters:i,handleConfirm:y,handleReset:g,handleSelect:x,isPropAbsent:ua,isActive:h,t:n,ns:a,showFilterPanel:m,hideFilterPanel:p,popperPaneRef:b,tooltip:s}}});function CK(e,t,n,a,l,r){const s=Ze("el-checkbox"),i=Ze("el-checkbox-group"),u=Ze("el-scrollbar"),c=Ze("arrow-up"),d=Ze("arrow-down"),f=Ze("el-icon"),h=Ze("el-tooltip"),v=ii("click-outside");return _(),ae(h,{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.filterClassName,persistent:"","append-to":e.appendTo},{content:G(()=>[e.multiple?(_(),M("div",{key:0},[k("div",{class:$(e.ns.e("content"))},[q(u,{"wrap-class":e.ns.e("wrap")},{default:G(()=>[q(i,{modelValue:e.filteredValue,"onUpdate:modelValue":m=>e.filteredValue=m,class:$(e.ns.e("checkbox-group"))},{default:G(()=>[(_(!0),M(ze,null,rt(e.filters,m=>(_(),ae(s,{key:m.value,value:m.value},{default:G(()=>[ot(he(m.text),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","onUpdate:modelValue","class"])]),_:1},8,["wrap-class"])],2),k("div",{class:$(e.ns.e("bottom"))},[k("button",{class:$({[e.ns.is("disabled")]:e.filteredValue.length===0}),disabled:e.filteredValue.length===0,type:"button",onClick:e.handleConfirm},he(e.t("el.table.confirmFilter")),11,["disabled","onClick"]),k("button",{type:"button",onClick:e.handleReset},he(e.t("el.table.resetFilter")),9,["onClick"])],2)])):(_(),M("ul",{key:1,class:$(e.ns.e("list"))},[k("li",{class:$([e.ns.e("list-item"),{[e.ns.is("active")]:e.isPropAbsent(e.filterValue)}]),onClick:m=>e.handleSelect(null)},he(e.t("el.table.clearFilter")),11,["onClick"]),(_(!0),M(ze,null,rt(e.filters,m=>(_(),M("li",{key:m.value,class:$([e.ns.e("list-item"),e.ns.is("active",e.isActive(m))]),label:m.value,onClick:p=>e.handleSelect(m.value)},he(m.text),11,["label","onClick"]))),128))],2))]),default:G(()=>[qe((_(),M("span",{class:$([`${e.ns.namespace.value}-table__column-filter-trigger`,`${e.ns.namespace.value}-none-outline`]),onClick:e.showFilterPanel},[q(f,null,{default:G(()=>[Q(e.$slots,"filter-icon",{},()=>[e.column.filterOpened?(_(),ae(c,{key:0})):(_(),ae(d,{key:1}))])]),_:3})],10,["onClick"])),[[v,e.hideFilterPanel,e.popperPaneRef]])]),_:3},8,["visible","placement","popper-class","append-to"])}var SK=ve(wK,[["render",CK],["__file","filter-panel.vue"]]);function bm(e){const t=et();Rc(()=>{n.value.addObserver(t)}),Xe(()=>{a(n.value),l(n.value)}),Wa(()=>{a(n.value),l(n.value)}),Mo(()=>{n.value.removeObserver(t)});const n=C(()=>{const r=e.layout;if(!r)throw new Error("Can not find table layout.");return r}),a=r=>{var s;const i=((s=e.vnode.el)==null?void 0:s.querySelectorAll("colgroup > col"))||[];if(!i.length)return;const u=r.getFlattenColumns(),c={};u.forEach(d=>{c[d.id]=d});for(let d=0,f=i.length;d{var s,i;const u=((s=e.vnode.el)==null?void 0:s.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let d=0,f=u.length;d{p.stopPropagation()},r=(p,y)=>{!y.filters&&y.sortable?m(p,y,!1):y.filterable&&!y.sortable&&l(p),a==null||a.emit("header-click",y,p)},s=(p,y)=>{a==null||a.emit("header-contextmenu",y,p)},i=A(null),u=A(!1),c=A({}),d=(p,y)=>{if(ut&&!(y.children&&y.children.length>0)&&i.value&&e.border){u.value=!0;const g=a;t("set-drag-visible",!0);const w=(g==null?void 0:g.vnode.el).getBoundingClientRect().left,b=n.vnode.el.querySelector(`th.${y.id}`),S=b.getBoundingClientRect(),E=S.left-w+30;jn(b,"noclick"),c.value={startMouseLeft:p.clientX,startLeft:S.right-w,startColumnLeft:S.left-w,tableLeft:w};const O=g==null?void 0:g.refs.resizeProxy;O.style.left=`${c.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const I=P=>{const L=P.clientX-c.value.startMouseLeft,R=c.value.startLeft+L;O.style.left=`${Math.max(E,R)}px`},N=()=>{if(u.value){const{startColumnLeft:P,startLeft:L}=c.value,K=Number.parseInt(O.style.left,10)-P;y.width=y.realWidth=K,g==null||g.emit("header-dragend",y.width,L-P,y,p),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",u.value=!1,i.value=null,c.value={},t("set-drag-visible",!1)}document.removeEventListener("mousemove",I),document.removeEventListener("mouseup",N),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{kn(b,"noclick")},0)};document.addEventListener("mousemove",I),document.addEventListener("mouseup",N)}},f=(p,y)=>{var g;if(y.children&&y.children.length>0)return;const x=p.target;if(!Tn(x))return;const w=x==null?void 0:x.closest("th");if(!(!y||!y.resizable||!w)&&!u.value&&e.border){const b=w.getBoundingClientRect(),S=document.body.style,E=((g=w.parentNode)==null?void 0:g.lastElementChild)===w,O=e.allowDragLastColumn||!E;b.width>12&&b.right-p.pageX<8&&O?(S.cursor="col-resize",An(w,"is-sortable")&&(w.style.cursor="col-resize"),i.value=y):u.value||(S.cursor="",An(w,"is-sortable")&&(w.style.cursor="pointer"),i.value=null)}},h=()=>{ut&&(document.body.style.cursor="")},v=({order:p,sortOrders:y})=>{if(p==="")return y[0];const g=y.indexOf(p||null);return y[g>y.length-2?0:g+1]},m=(p,y,g)=>{var x;p.stopPropagation();const w=y.order===g?null:g||v(y),b=(x=p.target)==null?void 0:x.closest("th");if(b&&An(b,"noclick")){kn(b,"noclick");return}if(!y.sortable)return;const S=p.currentTarget;if(["ascending","descending"].some(P=>An(S,P)&&!y.sortOrders.includes(P)))return;const E=e.store.states;let O=E.sortProp.value,I;const N=E.sortingColumn.value;(N!==y||N===y&&Or(N.order))&&(N&&(N.order=null),E.sortingColumn.value=y,O=y.property),w?I=y.order=w:I=y.order=null,E.sortProp.value=O,E.sortOrder.value=I,a==null||a.store.commit("changeSortCondition")};return{handleHeaderClick:r,handleHeaderContextMenu:s,handleMouseDown:d,handleMouseMove:f,handleMouseOut:h,handleSortClick:m,handleFilterClick:l}}function EK(e){const t=Se(Oa),n=de("table");return{getHeaderRowStyle:i=>{const u=t==null?void 0:t.props.headerRowStyle;return Je(u)?u.call(null,{rowIndex:i}):u},getHeaderRowClass:i=>{const u=[],c=t==null?void 0:t.props.headerRowClassName;return Ve(c)?u.push(c):Je(c)&&u.push(c.call(null,{rowIndex:i})),u.join(" ")},getHeaderCellStyle:(i,u,c,d)=>{var f;let h=(f=t==null?void 0:t.props.headerCellStyle)!=null?f:{};Je(h)&&(h=h.call(null,{rowIndex:i,columnIndex:u,row:c,column:d}));const v=nf(u,d.fixed,e.store,c);return wo(v,"left"),wo(v,"right"),Object.assign({},h,v)},getHeaderCellClass:(i,u,c,d)=>{const f=tf(n.b(),u,d.fixed,e.store,c),h=[d.id,d.order,d.headerAlign,d.className,d.labelClassName,...f];d.children||h.push("is-leaf"),d.sortable&&h.push("is-sortable");const v=t==null?void 0:t.props.headerCellClassName;return Ve(v)?h.push(v):Je(v)&&h.push(v.call(null,{rowIndex:i,columnIndex:u,row:c,column:d})),h.push(n.e("cell")),h.filter(m=>!!m).join(" ")}}}const wm=e=>{const t=[];return e.forEach(n=>{n.children?(t.push(n),t.push.apply(t,wm(n.children))):t.push(n)}),t},Cm=e=>{let t=1;const n=(r,s)=>{if(s&&(r.level=s.level+1,t{n(u,r),i+=u.colSpan}),r.colSpan=i}else r.colSpan=1};e.forEach(r=>{r.level=1,n(r,void 0)});const a=[];for(let r=0;r{r.children?(r.rowSpan=1,r.children.forEach(s=>s.isSubColumn=!0)):r.rowSpan=t-r.level+1,a[r.level-1].push(r)}),a};function xK(e){const t=Se(Oa),n=C(()=>Cm(e.store.states.originColumns.value));return{isGroup:C(()=>{const r=n.value.length>1;return r&&t&&(t.state.isGroup.value=!0),r}),toggleAllSelection:r=>{r.stopPropagation(),t==null||t.store.commit("toggleAllSelection")},columnRows:n}}var MK=T({name:"ElTableHeader",components:{ElCheckbox:Qn},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})},appendFilterPanelTo:{type:String},allowDragLastColumn:{type:Boolean}},setup(e,{emit:t}){const n=et(),a=Se(Oa),l=de("table"),r=A({}),{onColumnsChange:s,onScrollableChange:i}=bm(a),u=(a==null?void 0:a.props.tableLayout)==="auto",c=_t(new Map),d=A(),f=()=>{setTimeout(()=>{c.size>0&&(c.forEach((P,L)=>{const R=d.value.querySelector(`.${L.replace(/\s/g,".")}`);if(R){const K=R.getBoundingClientRect().width;P.width=K}}),c.clear())})};ue(c,f),Xe(async()=>{await Ne(),await Ne();const{prop:P,order:L}=e.defaultSort;a==null||a.store.commit("sort",{prop:P,order:L,init:!0}),f()});const{handleHeaderClick:h,handleHeaderContextMenu:v,handleMouseDown:m,handleMouseMove:p,handleMouseOut:y,handleSortClick:g,handleFilterClick:x}=kK(e,t),{getHeaderRowStyle:w,getHeaderRowClass:b,getHeaderCellStyle:S,getHeaderCellClass:E}=EK(e),{isGroup:O,toggleAllSelection:I,columnRows:N}=xK(e);return n.state={onColumnsChange:s,onScrollableChange:i},n.filterPanels=r,{ns:l,filterPanels:r,onColumnsChange:s,onScrollableChange:i,columnRows:N,getHeaderRowClass:b,getHeaderRowStyle:w,getHeaderCellClass:E,getHeaderCellStyle:S,handleHeaderClick:h,handleHeaderContextMenu:v,handleMouseDown:m,handleMouseMove:p,handleMouseOut:y,handleSortClick:g,handleFilterClick:x,isGroup:O,toggleAllSelection:I,saveIndexSelection:c,isTableLayoutAuto:u,theadRef:d,updateFixedColumnStyle:f}},render(){const{ns:e,isGroup:t,columnRows:n,getHeaderCellStyle:a,getHeaderCellClass:l,getHeaderRowClass:r,getHeaderRowStyle:s,handleHeaderClick:i,handleHeaderContextMenu:u,handleMouseDown:c,handleMouseMove:d,handleSortClick:f,handleMouseOut:h,store:v,$parent:m,saveIndexSelection:p,isTableLayoutAuto:y}=this;let g=1;return Pe("thead",{ref:"theadRef",class:{[e.is("group")]:t}},n.map((x,w)=>Pe("tr",{class:r(w),key:w,style:s(w)},x.map((b,S)=>{b.rowSpan>g&&(g=b.rowSpan);const E=l(w,S,x,b);return y&&b.fixed&&p.set(E,b),Pe("th",{class:E,colspan:b.colSpan,key:`${b.id}-thead`,rowspan:b.rowSpan,style:a(w,S,x,b),onClick:O=>{O.currentTarget.classList.contains("noclick")||i(O,b)},onContextmenu:O=>u(O,b),onMousedown:O=>c(O,b),onMousemove:O=>d(O,b),onMouseout:h},[Pe("div",{class:["cell",b.filteredValue&&b.filteredValue.length>0?"highlight":""]},[b.renderHeader?b.renderHeader({column:b,$index:S,store:v,_self:m}):b.label,b.sortable&&Pe("span",{onClick:O=>f(O,b),class:"caret-wrapper"},[Pe("i",{onClick:O=>f(O,b,"ascending"),class:"sort-caret ascending"}),Pe("i",{onClick:O=>f(O,b,"descending"),class:"sort-caret descending"})]),b.filterable&&Pe(SK,{store:v,placement:b.filterPlacement||"bottom-start",appendTo:m.appendFilterPanelTo,column:b,upDataColumn:(O,I)=>{b[O]=I}},{"filter-icon":()=>b.renderFilterIcon?b.renderFilterIcon({filterOpened:b.filterOpened}):null})])])}))))}});function hu(e,t,n=.03){return e-t>n}function $K(e){const t=Se(Oa),n=A(""),a=A(Pe("div")),l=(m,p,y)=>{var g;const x=t,w=vu(m);let b;const S=(g=x==null?void 0:x.vnode.el)==null?void 0:g.dataset.prefix;w&&(b=K2({columns:e.store.states.columns.value},w,S),b&&(x==null||x.emit(`cell-${y}`,p,b,w,m))),x==null||x.emit(`row-${y}`,p,b,m)},r=(m,p)=>{l(m,p,"dblclick")},s=(m,p)=>{e.store.commit("setCurrentRow",p),l(m,p,"click")},i=(m,p)=>{l(m,p,"contextmenu")},u=Rn(m=>{e.store.commit("setHoverRow",m)},30),c=Rn(()=>{e.store.commit("setHoverRow",null)},30),d=m=>{const p=window.getComputedStyle(m,null),y=Number.parseInt(p.paddingLeft,10)||0,g=Number.parseInt(p.paddingRight,10)||0,x=Number.parseInt(p.paddingTop,10)||0,w=Number.parseInt(p.paddingBottom,10)||0;return{left:y,right:g,top:x,bottom:w}},f=(m,p,y)=>{let g=p.target.parentNode;for(;m>1&&(g=g==null?void 0:g.nextSibling,!(!g||g.nodeName!=="TR"));)y(g,"hover-row hover-fixed-row"),m--};return{handleDoubleClick:r,handleClick:s,handleContextMenu:i,handleMouseEnter:u,handleMouseLeave:c,handleCellMouseEnter:(m,p,y)=>{var g,x,w;const b=t,S=vu(m),E=(g=b==null?void 0:b.vnode.el)==null?void 0:g.dataset.prefix;if(S){const z=K2({columns:e.store.states.columns.value},S,E);S.rowSpan>1&&f(S.rowSpan,m,jn);const F=b.hoverState={cell:S,column:z,row:p};b==null||b.emit("cell-mouse-enter",F.row,F.column,F.cell,m)}if(!y)return;const O=m.target.querySelector(".cell");if(!(An(O,`${E}-tooltip`)&&O.childNodes.length))return;const I=document.createRange();I.setStart(O,0),I.setEnd(O,O.childNodes.length);const{width:N,height:P}=I.getBoundingClientRect(),{width:L,height:R}=O.getBoundingClientRect(),{top:K,left:U,right:H,bottom:V}=d(O),D=U+H,B=K+V;hu(N+D,L)||hu(P+B,R)||hu(O.scrollWidth,L)?cK(y,S.innerText||S.textContent,S,b):((x=zn)==null?void 0:x.trigger)===S&&((w=zn)==null||w())},handleCellMouseLeave:m=>{const p=vu(m);if(!p)return;p.rowSpan>1&&f(p.rowSpan,m,kn);const y=t==null?void 0:t.hoverState;t==null||t.emit("cell-mouse-leave",y==null?void 0:y.row,y==null?void 0:y.column,y==null?void 0:y.cell,m)},tooltipContent:n,tooltipTrigger:a}}function TK(e){const t=Se(Oa),n=de("table");return{getRowStyle:(c,d)=>{const f=t==null?void 0:t.props.rowStyle;return Je(f)?f.call(null,{row:c,rowIndex:d}):f||null},getRowClass:(c,d)=>{const f=[n.e("row")];t!=null&&t.props.highlightCurrentRow&&c===e.store.states.currentRow.value&&f.push("current-row"),e.stripe&&d%2===1&&f.push(n.em("row","striped"));const h=t==null?void 0:t.props.rowClassName;return Ve(h)?f.push(h):Je(h)&&f.push(h.call(null,{row:c,rowIndex:d})),f},getCellStyle:(c,d,f,h)=>{const v=t==null?void 0:t.props.cellStyle;let m=v??{};Je(v)&&(m=v.call(null,{rowIndex:c,columnIndex:d,row:f,column:h}));const p=nf(d,e==null?void 0:e.fixed,e.store);return wo(p,"left"),wo(p,"right"),Object.assign({},m,p)},getCellClass:(c,d,f,h,v)=>{const m=tf(n.b(),d,e==null?void 0:e.fixed,e.store,void 0,v),p=[h.id,h.align,h.className,...m],y=t==null?void 0:t.props.cellClassName;return Ve(y)?p.push(y):Je(y)&&p.push(y.call(null,{rowIndex:c,columnIndex:d,row:f,column:h})),p.push(n.e("cell")),p.filter(g=>!!g).join(" ")},getSpan:(c,d,f,h)=>{let v=1,m=1;const p=t==null?void 0:t.props.spanMethod;if(Je(p)){const y=p({row:c,column:d,rowIndex:f,columnIndex:h});Ee(y)?(v=y[0],m=y[1]):ht(y)&&(v=y.rowspan,m=y.colspan)}return{rowspan:v,colspan:m}},getColspanRealWidth:(c,d,f)=>{if(d<1)return c[f].realWidth;const h=c.map(({realWidth:v,width:m})=>v||m).slice(f,f+d);return Number(h.reduce((v,m)=>Number(v)+Number(m),-1))}}}const OK=T({name:"TableTdWrapper"}),NK=T({...OK,props:{colspan:{type:Number,default:1},rowspan:{type:Number,default:1}},setup(e){return(t,n)=>(_(),M("td",{colspan:e.colspan,rowspan:e.rowspan},[Q(t.$slots,"default")],8,["colspan","rowspan"]))}});var IK=ve(NK,[["__file","td-wrapper.vue"]]);function PK(e){const t=Se(Oa),n=de("table"),{handleDoubleClick:a,handleClick:l,handleContextMenu:r,handleMouseEnter:s,handleMouseLeave:i,handleCellMouseEnter:u,handleCellMouseLeave:c,tooltipContent:d,tooltipTrigger:f}=$K(e),{getRowStyle:h,getRowClass:v,getCellStyle:m,getCellClass:p,getSpan:y,getColspanRealWidth:g}=TK(e),x=C(()=>e.store.states.columns.value.findIndex(({type:O})=>O==="default")),w=(O,I)=>{const N=t.props.rowKey;return N?wn(O,N):I},b=(O,I,N,P=!1)=>{const{tooltipEffect:L,tooltipOptions:R,store:K}=e,{indent:U,columns:H}=K.states,V=v(O,I);let D=!0;return N&&(V.push(n.em("row",`level-${N.level}`)),D=N.display),Pe("tr",{style:[D?null:{display:"none"},h(O,I)],class:V,key:w(O,I),onDblclick:z=>a(z,O),onClick:z=>l(z,O),onContextmenu:z=>r(z,O),onMouseenter:()=>s(I),onMouseleave:i},H.value.map((z,F)=>{const{rowspan:W,colspan:Z}=y(O,z,I,F);if(!W||!Z)return null;const j=Object.assign({},z);j.realWidth=g(H.value,Z,F);const ne={store:e.store,_self:e.context||t,column:j,row:O,$index:I,cellIndex:F,expanded:P};F===x.value&&N&&(ne.treeNode={indent:N.level*U.value,level:N.level},Et(N.expanded)&&(ne.treeNode.expanded=N.expanded,"loading"in N&&(ne.treeNode.loading=N.loading),"noLazyChildren"in N&&(ne.treeNode.noLazyChildren=N.noLazyChildren)));const oe=`${w(O,I)},${F}`,ce=j.columnKey||j.rawColumnKey||"",te=z.showOverflowTooltip&&h1({effect:L},R,z.showOverflowTooltip);return Pe(IK,{style:m(I,F,O,z),class:p(I,F,O,z,Z-1),key:`${ce}${oe}`,rowspan:W,colspan:Z,onMouseenter:se=>u(se,O,te),onMouseleave:c},{default:()=>S(F,z,ne)})}))},S=(O,I,N)=>I.renderCell(N);return{wrappedRowRender:(O,I)=>{const N=e.store,{isRowExpanded:P,assertRowKey:L}=N,{treeData:R,lazyTreeNodeMap:K,childrenColumnName:U,rowKey:H}=N.states,V=N.states.columns.value;if(V.some(({type:B})=>B==="expand")){const B=P(O),z=b(O,I,void 0,B),F=t.renderExpanded;return B?F?[[z,Pe("tr",{key:`expanded-row__${z.key}`},[Pe("td",{colspan:V.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[F({row:O,$index:I,store:N,expanded:B})])])]]:(console.error("[Element Error]renderExpanded is required."),z):[[z]]}else if(Object.keys(R.value).length){L();const B=wn(O,H.value);let z=R.value[B],F=null;z&&(F={expanded:z.expanded,level:z.level,display:!0},Et(z.lazy)&&(Et(z.loaded)&&z.loaded&&(F.noLazyChildren=!(z.children&&z.children.length)),F.loading=z.loading));const W=[b(O,I,F)];if(z){let Z=0;const j=(oe,ce)=>{oe&&oe.length&&ce&&oe.forEach(te=>{const se={display:ce.display&&ce.expanded,level:ce.level+1,expanded:!1,noLazyChildren:!1,loading:!1},fe=wn(te,H.value);if(ua(fe))throw new Error("For nested data item, row-key is required.");if(z={...R.value[fe]},z&&(se.expanded=z.expanded,z.level=z.level||se.level,z.display=!!(z.expanded&&se.display),Et(z.lazy)&&(Et(z.loaded)&&z.loaded&&(se.noLazyChildren=!(z.children&&z.children.length)),se.loading=z.loading)),Z++,W.push(b(te,I+Z,se)),z){const xe=K.value[fe]||te[U.value];j(xe,z)}})};z.display=!0;const ne=K.value[B]||O[U.value];j(ne,z)}return W}else return b(O,I,void 0)},tooltipContent:d,tooltipTrigger:f}}const zK={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 AK=T({name:"ElTableBody",props:zK,setup(e){const t=et(),n=Se(Oa),a=de("table"),{wrappedRowRender:l,tooltipContent:r,tooltipTrigger:s}=PK(e),{onColumnsChange:i,onScrollableChange:u}=bm(n),c=[];return ue(e.store.states.hoverRow,(d,f)=>{var h;const v=t==null?void 0:t.vnode.el,m=Array.from((v==null?void 0:v.children)||[]).filter(g=>g==null?void 0:g.classList.contains(`${a.e("row")}`));let p=d;const y=(h=m[p])==null?void 0:h.childNodes;if(y!=null&&y.length){let g=0;Array.from(y).reduce((w,b,S)=>{var E,O;return((E=y[S])==null?void 0:E.colSpan)>1&&(g=(O=y[S])==null?void 0:O.colSpan),b.nodeName!=="TD"&&g===0&&w.push(S),g>0&&g--,w},[]).forEach(w=>{var b;for(p=d;p>0;){const S=(b=m[p-1])==null?void 0:b.childNodes;if(S[w]&&S[w].nodeName==="TD"&&S[w].rowSpan>1){jn(S[w],"hover-cell"),c.push(S[w]);break}p--}})}else c.forEach(g=>kn(g,"hover-cell")),c.length=0;!e.store.states.isComplex.value||!ut||sl(()=>{const g=m[f],x=m[d];g&&!g.classList.contains("hover-fixed-row")&&kn(g,"hover-row"),x&&jn(x,"hover-row")})}),Mo(()=>{var d;(d=zn)==null||d()}),{ns:a,onColumnsChange:i,onScrollableChange:u,wrappedRowRender:l,tooltipContent:r,tooltipTrigger:s}},render(){const{wrappedRowRender:e,store:t}=this,n=t.states.data.value||[];return Pe("tbody",{tabIndex:-1},[n.reduce((a,l)=>a.concat(e(l,a.length)),[])])}});function VK(){const e=Se(Oa),t=e==null?void 0:e.store,n=C(()=>t.states.fixedLeafColumnsLength.value),a=C(()=>t.states.rightFixedColumns.value.length),l=C(()=>t.states.columns.value.length),r=C(()=>t.states.fixedColumns.value.length),s=C(()=>t.states.rightFixedColumns.value.length);return{leftFixedLeafCount:n,rightFixedLeafCount:a,columnsCount:l,leftFixedCount:r,rightFixedCount:s,columns:t.states.columns}}function LK(e){const{columns:t}=VK(),n=de("table");return{getCellClasses:(r,s)=>{const i=r[s],u=[n.e("cell"),i.id,i.align,i.labelClassName,...tf(n.b(),s,i.fixed,e.store)];return i.className&&u.push(i.className),i.children||u.push(n.is("leaf")),u},getCellStyles:(r,s)=>{const i=nf(s,r.fixed,e.store);return wo(i,"left"),wo(i,"right"),i},columns:t}}var RK=T({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:a}=LK(e);return{ns:de("table"),getCellClasses:t,getCellStyles:n,columns:a}},render(){const{columns:e,getCellStyles:t,getCellClasses:n,summaryMethod:a,sumText:l}=this,r=this.store.states.data.value;let s=[];return a?s=a({columns:e,data:r}):e.forEach((i,u)=>{if(u===0){s[u]=l;return}const c=r.map(v=>Number(v[i.property])),d=[];let f=!0;c.forEach(v=>{if(!Number.isNaN(+v)){f=!1;const m=`${v}`.split(".")[1];d.push(m?m.length:0)}});const h=Math.max.apply(null,d);f?s[u]="":s[u]=c.reduce((v,m)=>{const p=Number(m);return Number.isNaN(+p)?v:Number.parseFloat((v+m).toFixed(Math.min(h,20)))},0)}),Pe(Pe("tfoot",[Pe("tr",{},[...e.map((i,u)=>Pe("td",{key:u,colspan:i.colSpan,rowspan:i.rowSpan,class:n(e,u),style:t(i,u)},[Pe("div",{class:["cell",i.labelClassName]},[s[u]])]))])]))}});function BK(e){return{setCurrentRow:f=>{e.commit("setCurrentRow",f)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(f,h,v=!0)=>{e.toggleRowSelection(f,h,!1,v),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:f=>{e.clearFilter(f)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(f,h)=>{e.toggleRowExpansionAdapter(f,h)},clearSort:()=>{e.clearSort()},sort:(f,h)=>{e.commit("sort",{prop:f,order:h})},updateKeyChildren:(f,h)=>{e.updateKeyChildren(f,h)}}}function HK(e,t,n,a){const l=A(!1),r=A(null),s=A(!1),i=B=>{s.value=B},u=A({width:null,height:null,headerHeight:null}),c=A(!1),d={display:"inline-block",verticalAlign:"middle"},f=A(),h=A(0),v=A(0),m=A(0),p=A(0),y=A(0);cn(()=>{t.setHeight(e.height)}),cn(()=>{t.setMaxHeight(e.maxHeight)}),ue(()=>[e.currentRowKey,n.states.rowKey],([B,z])=>{!o(z)||!o(B)||n.setCurrentRowKey(`${B}`)},{immediate:!0}),ue(()=>e.data,B=>{a.store.commit("setData",B)},{immediate:!0,deep:!0}),cn(()=>{e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)});const g=()=>{a.store.commit("setHoverRow",null),a.hoverState&&(a.hoverState=null)},x=(B,z)=>{const{pixelX:F,pixelY:W}=z;Math.abs(F)>=Math.abs(W)&&(a.refs.bodyWrapper.scrollLeft+=z.pixelX/5)},w=C(()=>e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),b=C(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),S=()=>{w.value&&t.updateElsHeight(),t.updateColumnsWidth(),requestAnimationFrame(N)};Xe(async()=>{await Ne(),n.updateColumns(),P(),requestAnimationFrame(S);const B=a.vnode.el,z=a.refs.headerWrapper;e.flexible&&B&&B.parentElement&&(B.parentElement.style.minWidth="0"),u.value={width:f.value=B.offsetWidth,height:B.offsetHeight,headerHeight:e.showHeader&&z?z.offsetHeight:null},n.states.columns.value.forEach(F=>{F.filteredValue&&F.filteredValue.length&&a.store.commit("filterChange",{column:F,values:F.filteredValue,silent:!0})}),a.$ready=!0});const E=(B,z)=>{if(!B)return;const F=Array.from(B.classList).filter(W=>!W.startsWith("is-scrolling-"));F.push(t.scrollX.value?z:"is-scrolling-none"),B.className=F.join(" ")},O=B=>{const{tableWrapper:z}=a.refs;E(z,B)},I=B=>{const{tableWrapper:z}=a.refs;return!!(z&&z.classList.contains(B))},N=function(){if(!a.refs.scrollBarRef)return;if(!t.scrollX.value){const oe="is-scrolling-none";I(oe)||O(oe);return}const B=a.refs.scrollBarRef.wrapRef;if(!B)return;const{scrollLeft:z,offsetWidth:F,scrollWidth:W}=B,{headerWrapper:Z,footerWrapper:j}=a.refs;Z&&(Z.scrollLeft=z),j&&(j.scrollLeft=z);const ne=W-F-1;z>=ne?O("is-scrolling-right"):O(z===0?"is-scrolling-left":"is-scrolling-middle")},P=()=>{a.refs.scrollBarRef&&(a.refs.scrollBarRef.wrapRef&&wt(a.refs.scrollBarRef.wrapRef,"scroll",N,{passive:!0}),e.fit?At(a.vnode.el,L):wt(window,"resize",L),At(a.refs.bodyWrapper,()=>{var B,z;L(),(z=(B=a.refs)==null?void 0:B.scrollBarRef)==null||z.update()}))},L=()=>{var B,z,F,W;const Z=a.vnode.el;if(!a.$ready||!Z)return;let j=!1;const{width:ne,height:oe,headerHeight:ce}=u.value,te=f.value=Z.offsetWidth;ne!==te&&(j=!0);const se=Z.offsetHeight;(e.height||w.value)&&oe!==se&&(j=!0);const fe=e.tableLayout==="fixed"?a.refs.headerWrapper:(B=a.refs.tableHeaderRef)==null?void 0:B.$el;e.showHeader&&(fe==null?void 0:fe.offsetHeight)!==ce&&(j=!0),h.value=((z=a.refs.tableWrapper)==null?void 0:z.scrollHeight)||0,m.value=(fe==null?void 0:fe.scrollHeight)||0,p.value=((F=a.refs.footerWrapper)==null?void 0:F.offsetHeight)||0,y.value=((W=a.refs.appendWrapper)==null?void 0:W.offsetHeight)||0,v.value=h.value-m.value-p.value-y.value,j&&(u.value={width:te,height:se,headerHeight:e.showHeader&&(fe==null?void 0:fe.offsetHeight)||0},S())},R=jt(),K=C(()=>{const{bodyWidth:B,scrollY:z,gutterWidth:F}=t;return B.value?`${B.value-(z.value?F:0)}px`:""}),U=C(()=>e.maxHeight?"fixed":e.tableLayout),H=C(()=>{if(e.data&&e.data.length)return null;let B="100%";e.height&&v.value&&(B=`${v.value}px`);const z=f.value;return{width:z?`${z}px`:"",height:B}}),V=C(()=>e.height?{height:"100%"}:e.maxHeight?Number.isNaN(Number(e.maxHeight))?{maxHeight:`calc(${e.maxHeight} - ${m.value+p.value}px)`}:{maxHeight:`${e.maxHeight-m.value-p.value}px`}:{});return{isHidden:l,renderExpanded:r,setDragVisible:i,isGroup:c,handleMouseLeave:g,handleHeaderFooterMousewheel:x,tableSize:R,emptyBlockStyle:H,handleFixedMousewheel:(B,z)=>{const F=a.refs.bodyWrapper;if(Math.abs(z.spinY)>0){const W=F.scrollTop;z.pixelY<0&&W!==0&&B.preventDefault(),z.pixelY>0&&F.scrollHeight-F.clientHeight>W&&B.preventDefault(),F.scrollTop+=Math.ceil(z.pixelY/5)}else F.scrollLeft+=Math.ceil(z.pixelX/5)},resizeProxyVisible:s,bodyWidth:K,resizeState:u,doLayout:S,tableBodyStyles:b,tableLayout:U,scrollbarViewStyle:d,scrollbarStyle:V}}function DK(e){const t=A(),n=()=>{const l=e.vnode.el.querySelector(".hidden-columns"),r={childList:!0,subtree:!0},s=e.store.states.updateOrderFns;t.value=new MutationObserver(()=>{s.forEach(i=>i())}),t.value.observe(l,r)};Xe(()=>{n()}),Mo(()=>{var a;(a=t.value)==null||a.disconnect()})}var FK={data:{type:Array,default:()=>[]},size:qt,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",checkStrictly:!1})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:Boolean,flexible:Boolean,showOverflowTooltip:[Boolean,Object],appendFilterPanelTo:String,scrollbarTabindex:{type:[Number,String],default:void 0},allowDragLastColumn:{type:Boolean,default:!0}};function Sm(e){const t=e.tableLayout==="auto";let n=e.columns||[];t&&n.every(({width:l})=>vt(l))&&(n=[]);const a=l=>{const r={key:`${e.tableLayout}_${l.id}`,style:{},name:void 0};return t?r.style={width:`${l.width}px`}:r.name=l.id,r};return Pe("colgroup",{},n.map(l=>Pe("col",a(l))))}Sm.props=["columns","tableLayout"];const KK=()=>{const e=A(),t=(r,s)=>{const i=e.value;i&&i.scrollTo(r,s)},n=(r,s)=>{const i=e.value;i&&Ie(s)&&["Top","Left"].includes(r)&&i[`setScroll${r}`](s)};return{scrollBarRef:e,scrollTo:t,setScrollTop:r=>n("Top",r),setScrollLeft:r=>n("Left",r)}};var U2=!1,gl,fc,pc,Es,xs,km,Ms,vc,hc,mc,Em,gc,yc,xm,Mm;function Pn(){if(!U2){U2=!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(gc=/\b(iPhone|iP[ao]d)/.exec(e),yc=/\b(iP[ao]d)/.exec(e),mc=/Android/i.exec(e),xm=/FBAN\/\w+;/i.exec(e),Mm=/Mobile/i.exec(e),Em=!!/Win64/.exec(e),t){gl=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,gl&&document&&document.documentMode&&(gl=document.documentMode);var a=/(?:Trident\/(\d+.\d+))/.exec(e);km=a?parseFloat(a[1])+4:gl,fc=t[2]?parseFloat(t[2]):NaN,pc=t[3]?parseFloat(t[3]):NaN,Es=t[4]?parseFloat(t[4]):NaN,Es?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),xs=t&&t[1]?parseFloat(t[1]):NaN):xs=NaN}else gl=fc=pc=xs=Es=NaN;if(n){if(n[1]){var l=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);Ms=l?parseFloat(l[1].replace("_",".")):!0}else Ms=!1;vc=!!n[2],hc=!!n[3]}else Ms=vc=hc=!1}}var _c={ie:function(){return Pn()||gl},ieCompatibilityMode:function(){return Pn()||km>gl},ie64:function(){return _c.ie()&&Em},firefox:function(){return Pn()||fc},opera:function(){return Pn()||pc},webkit:function(){return Pn()||Es},safari:function(){return _c.webkit()},chrome:function(){return Pn()||xs},windows:function(){return Pn()||vc},osx:function(){return Pn()||Ms},linux:function(){return Pn()||hc},iphone:function(){return Pn()||gc},mobile:function(){return Pn()||gc||yc||mc||Mm},nativeApp:function(){return Pn()||xm},android:function(){return Pn()||mc},ipad:function(){return Pn()||yc}},WK=_c,jK=!!(typeof window<"u"&&window.document&&window.document.createElement),qK={canUseDOM:jK},$m=qK,Tm;$m.canUseDOM&&(Tm=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function UK(e,t){if(!$m.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,a=n in document;if(!a){var l=document.createElement("div");l.setAttribute(n,"return;"),a=typeof l[n]=="function"}return!a&&Tm&&e==="wheel"&&(a=document.implementation.hasFeature("Events.wheel","3.0")),a}var YK=UK,Y2=10,G2=40,X2=800;function Om(e){var t=0,n=0,a=0,l=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),a=t*Y2,l=n*Y2,"deltaY"in e&&(l=e.deltaY),"deltaX"in e&&(a=e.deltaX),(a||l)&&e.deltaMode&&(e.deltaMode==1?(a*=G2,l*=G2):(a*=X2,l*=X2)),a&&!t&&(t=a<1?-1:1),l&&!n&&(n=l<1?-1:1),{spinX:t,spinY:n,pixelX:a,pixelY:l}}Om.getEventType=function(){return WK.firefox()?"DOMMouseScroll":YK("wheel")?"wheel":"mousewheel"};var GK=Om;/** +* 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 XK=function(e,t){if(e&&e.addEventListener){const n=function(a){const l=GK(a);t&&Reflect.apply(t,this,[a,l])};e.addEventListener("wheel",n,{passive:!0})}},ZK={beforeMount(e,t){XK(e,t.value)}};let JK=1;const QK=T({name:"ElTable",directives:{Mousewheel:ZK},components:{TableHeader:MK,TableBody:AK,TableFooter:RK,ElScrollbar:Ta,hColgroup:Sm},props:FK,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","scroll"],setup(e){const{t}=ct(),n=de("table"),a=et();it(Oa,a);const l=gK(a,e);a.store=l;const r=new _K({store:a.store,table:a,fit:e.fit,showHeader:e.showHeader});a.layout=r;const s=C(()=>(l.states.data.value||[]).length===0),{setCurrentRow:i,getSelectionRows:u,toggleRowSelection:c,clearSelection:d,clearFilter:f,toggleAllSelection:h,toggleRowExpansion:v,clearSort:m,sort:p,updateKeyChildren:y}=BK(l),{isHidden:g,renderExpanded:x,setDragVisible:w,isGroup:b,handleMouseLeave:S,handleHeaderFooterMousewheel:E,tableSize:O,emptyBlockStyle:I,handleFixedMousewheel:N,resizeProxyVisible:P,bodyWidth:L,resizeState:R,doLayout:K,tableBodyStyles:U,tableLayout:H,scrollbarViewStyle:V,scrollbarStyle:D}=HK(e,r,l,a),{scrollBarRef:B,scrollTo:z,setScrollLeft:F,setScrollTop:W}=KK(),Z=Rn(K,50),j=`${n.namespace.value}-table_${JK++}`;a.tableId=j,a.state={isGroup:b,resizeState:R,doLayout:K,debouncedUpdateLayout:Z};const ne=C(()=>{var te;return(te=e.sumText)!=null?te:t("el.table.sumText")}),oe=C(()=>{var te;return(te=e.emptyText)!=null?te:t("el.table.emptyText")}),ce=C(()=>Cm(l.states.originColumns.value)[0]);return DK(a),$t(()=>{Z.cancel()}),{ns:n,layout:r,store:l,columns:ce,handleHeaderFooterMousewheel:E,handleMouseLeave:S,tableId:j,tableSize:O,isHidden:g,isEmpty:s,renderExpanded:x,resizeProxyVisible:P,resizeState:R,isGroup:b,bodyWidth:L,tableBodyStyles:U,emptyBlockStyle:I,debouncedUpdateLayout:Z,handleFixedMousewheel:N,setCurrentRow:i,getSelectionRows:u,toggleRowSelection:c,clearSelection:d,clearFilter:f,toggleAllSelection:h,toggleRowExpansion:v,clearSort:m,doLayout:K,sort:p,updateKeyChildren:y,t,setDragVisible:w,context:a,computedSumText:ne,computedEmptyText:oe,tableLayout:H,scrollbarViewStyle:V,scrollbarStyle:D,scrollBarRef:B,scrollTo:z,setScrollLeft:F,setScrollTop:W,allowDragLastColumn:e.allowDragLastColumn}}});function eW(e,t,n,a,l,r){const s=Ze("hColgroup"),i=Ze("table-header"),u=Ze("table-body"),c=Ze("table-footer"),d=Ze("el-scrollbar"),f=ii("mousewheel");return _(),M("div",{ref:"tableWrapper",class:$([{[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:Oe(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:e.handleMouseLeave},[k("div",{class:$(e.ns.e("inner-wrapper"))},[k("div",{ref:"hiddenColumns",class:"hidden-columns"},[Q(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?qe((_(),M("div",{key:0,ref:"headerWrapper",class:$(e.ns.e("header-wrapper"))},[k("table",{ref:"tableHeader",class:$(e.ns.e("header")),style:Oe(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[q(s,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),q(i,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,"append-filter-panel-to":e.appendFilterPanelTo,"allow-drag-last-column":e.allowDragLastColumn,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","append-filter-panel-to","allow-drag-last-column","onSetDragVisible"])],6)],2)),[[f,e.handleHeaderFooterMousewheel]]):ee("v-if",!0),k("div",{ref:"bodyWrapper",class:$(e.ns.e("body-wrapper"))},[q(d,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn,tabindex:e.scrollbarTabindex,onScroll:h=>e.$emit("scroll",h)},{default:G(()=>[k("table",{ref:"tableBody",class:$(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:Oe({width:e.bodyWidth,tableLayout:e.tableLayout})},[q(s,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(_(),ae(i,{key:0,ref:"tableHeaderRef",class:$(e.ns.e("body-header")),border:e.border,"default-sort":e.defaultSort,store:e.store,"append-filter-panel-to":e.appendFilterPanelTo,onSetDragVisible:e.setDragVisible},null,8,["class","border","default-sort","store","append-filter-panel-to","onSetDragVisible"])):ee("v-if",!0),q(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"]),e.showSummary&&e.tableLayout==="auto"?(_(),ae(c,{key:1,class:$(e.ns.e("body-footer")),border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["class","border","default-sort","store","sum-text","summary-method"])):ee("v-if",!0)],6),e.isEmpty?(_(),M("div",{key:0,ref:"emptyBlock",style:Oe(e.emptyBlockStyle),class:$(e.ns.e("empty-block"))},[k("span",{class:$(e.ns.e("empty-text"))},[Q(e.$slots,"empty",{},()=>[ot(he(e.computedEmptyText),1)])],2)],6)):ee("v-if",!0),e.$slots.append?(_(),M("div",{key:1,ref:"appendWrapper",class:$(e.ns.e("append-wrapper"))},[Q(e.$slots,"append")],2)):ee("v-if",!0)]),_:3},8,["view-style","wrap-style","always","tabindex","onScroll"])],2),e.showSummary&&e.tableLayout==="fixed"?qe((_(),M("div",{key:1,ref:"footerWrapper",class:$(e.ns.e("footer-wrapper"))},[k("table",{class:$(e.ns.e("footer")),cellspacing:"0",cellpadding:"0",border:"0",style:Oe(e.tableBodyStyles)},[q(s,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),q(c,{border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","sum-text","summary-method"])],6)],2)),[[pt,!e.isEmpty],[f,e.handleHeaderFooterMousewheel]]):ee("v-if",!0),e.border||e.isGroup?(_(),M("div",{key:2,class:$(e.ns.e("border-left-patch"))},null,2)):ee("v-if",!0)],2),qe(k("div",{ref:"resizeProxy",class:$(e.ns.e("column-resize-proxy"))},null,2),[[pt,e.resizeProxyVisible]])],46,["data-prefix","onMouseleave"])}var tW=ve(QK,[["render",eW],["__file","table.vue"]]);const nW={selection:"table-column--selection",expand:"table__expand-column"},aW={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:""}},lW=e=>nW[e]||"",oW={selection:{renderHeader({store:e,column:t}){function n(){return e.states.data.value&&e.states.data.value.length===0}return Pe(Qn,{disabled:n(),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,ariaLabel:t.label})},renderCell({row:e,column:t,store:n,$index:a}){return Pe(Qn,{disabled:t.selectable?!t.selectable.call(null,e,a):!1,size:n.states.tableSize.value,onChange:()=>{n.commit("rowSelectedChanged",e)},onClick:l=>l.stopPropagation(),modelValue:n.isSelected(e),ariaLabel:t.label})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let n=t+1;const a=e.index;return Ie(a)?n=t+a:Je(a)&&(n=a(t)),Pe("div",{},[n])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({row:e,store:t,expanded:n}){const{ns:a}=t,l=[a.e("expand-icon")];return n&&l.push(a.em("expand-icon","expanded")),Pe("div",{class:l,onClick:function(s){s.stopPropagation(),t.toggleRowExpansion(e)}},{default:()=>[Pe(Me,null,{default:()=>[Pe(En)]})]})},sortable:!1,resizable:!1}};function rW({row:e,column:t,$index:n}){var a;const l=t.property,r=l&&is(e,l).value;return t&&t.formatter?t.formatter(e,t,r,n):((a=r==null?void 0:r.toString)==null?void 0:a.call(r))||""}function sW({row:e,treeNode:t,store:n},a=!1){const{ns:l}=n;if(!t)return a?[Pe("span",{class:l.e("placeholder")})]:null;const r=[],s=function(i){i.stopPropagation(),!t.loading&&n.loadOrToggle(e)};if(t.indent&&r.push(Pe("span",{class:l.e("indent"),style:{"padding-left":`${t.indent}px`}})),Et(t.expanded)&&!t.noLazyChildren){const i=[l.e("expand-icon"),t.expanded?l.em("expand-icon","expanded"):""];let u=En;t.loading&&(u=ca),r.push(Pe("div",{class:i,onClick:s},{default:()=>[Pe(Me,{class:{[l.is("loading")]:t.loading}},{default:()=>[Pe(u)]})]}))}else r.push(Pe("span",{class:l.e("placeholder")}));return r}function Z2(e,t){return e.reduce((n,a)=>(n[a]=a,n),t)}function iW(e,t){const n=et();return{registerComplexWatchers:()=>{const r=["fixed"],s={realWidth:"width",realMinWidth:"minWidth"},i=Z2(r,s);Object.keys(i).forEach(u=>{const c=s[u];vn(t,c)&&ue(()=>t[c],d=>{let f=d;c==="width"&&u==="realWidth"&&(f=ef(d)),c==="minWidth"&&u==="realMinWidth"&&(f=hm(d)),n.columnConfig.value[c]=f,n.columnConfig.value[u]=f;const h=c==="fixed";e.value.store.scheduleLayout(h)})})},registerNormalWatchers:()=>{const r=["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","filterClassName","showOverflowTooltip"],s={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},i=Z2(r,s);Object.keys(i).forEach(u=>{const c=s[u];vn(t,c)&&ue(()=>t[c],d=>{n.columnConfig.value[u]=d})})}}}function uW(e,t,n){const a=et(),l=A(""),r=A(!1),s=A(),i=A(),u=de("table");cn(()=>{s.value=e.align?`is-${e.align}`:null,s.value}),cn(()=>{i.value=e.headerAlign?`is-${e.headerAlign}`:s.value,i.value});const c=C(()=>{let b=a.vnode.vParent||a.parent;for(;b&&!b.tableId&&!b.columnId;)b=b.vnode.vParent||b.parent;return b}),d=C(()=>{const{store:b}=a.parent;if(!b)return!1;const{treeData:S}=b.states,E=S.value;return E&&Object.keys(E).length>0}),f=A(ef(e.width)),h=A(hm(e.minWidth)),v=b=>(f.value&&(b.width=f.value),h.value&&(b.minWidth=h.value),!f.value&&h.value&&(b.width=void 0),b.minWidth||(b.minWidth=80),b.realWidth=Number(vt(b.width)?b.minWidth:b.width),b),m=b=>{const S=b.type,E=oW[S]||{};Object.keys(E).forEach(I=>{const N=E[I];I!=="className"&&!vt(N)&&(b[I]=N)});const O=lW(S);if(O){const I=`${o(u.namespace)}-${O}`;b.className=b.className?`${b.className} ${I}`:I}return b},p=b=>{Ee(b)?b.forEach(E=>S(E)):S(b);function S(E){var O;((O=E==null?void 0:E.type)==null?void 0:O.name)==="ElTableColumn"&&(E.vParent=a)}};return{columnId:l,realAlign:s,isSubColumn:r,realHeaderAlign:i,columnOrTableParent:c,setColumnWidth:v,setColumnForcedProps:m,setColumnRenders:b=>{e.renderHeader||b.type!=="selection"&&(b.renderHeader=E=>(a.columnConfig.value.label,Q(t,"header",E,()=>[b.label]))),t["filter-icon"]&&(b.renderFilterIcon=E=>Q(t,"filter-icon",E));let S=b.renderCell;return b.type==="expand"?(b.renderCell=E=>Pe("div",{class:"cell"},[S(E)]),n.value.renderExpanded=E=>t.default?t.default(E):t.default):(S=S||rW,b.renderCell=E=>{let O=null;if(t.default){const K=t.default(E);O=K.some(U=>U.type!==ri)?K:S(E)}else O=S(E);const{columns:I}=n.value.store.states,N=I.value.findIndex(K=>K.type==="default"),P=d.value&&E.cellIndex===N,L=sW(E,P),R={class:"cell",style:{}};return b.showOverflowTooltip&&(R.class=`${R.class} ${o(u.namespace)}-tooltip`,R.style={width:`${(E.column.realWidth||Number(E.column.width))-1}px`}),p(O),Pe("div",R,[L,O])}),b},getPropsData:(...b)=>b.reduce((S,E)=>(Ee(E)&&E.forEach(O=>{S[O]=e[O]}),S),{}),getColumnElIndex:(b,S)=>Array.prototype.indexOf.call(b,S),updateColumnOrder:()=>{n.value.store.commit("updateColumnOrder",a.columnConfig.value)}}}var cW={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:{type:[Boolean,Object],default:void 0},fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},filterClassName:String,index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every(t=>["ascending","descending",null].includes(t))}};let dW=1;var Nm=T({name:"ElTableColumn",components:{ElCheckbox:Qn},props:cW,setup(e,{slots:t}){const n=et(),a=A({}),l=C(()=>{let w=n.parent;for(;w&&!w.tableId;)w=w.parent;return w}),{registerNormalWatchers:r,registerComplexWatchers:s}=iW(l,e),{columnId:i,isSubColumn:u,realHeaderAlign:c,columnOrTableParent:d,setColumnWidth:f,setColumnForcedProps:h,setColumnRenders:v,getPropsData:m,getColumnElIndex:p,realAlign:y,updateColumnOrder:g}=uW(e,t,l),x=d.value;i.value=`${x.tableId||x.columnId}_column_${dW++}`,Rc(()=>{u.value=l.value!==x;const w=e.type||"default",b=e.sortable===""?!0:e.sortable,S=vt(e.showOverflowTooltip)?x.props.showOverflowTooltip:e.showOverflowTooltip,E={...aW[w],id:i.value,type:w,property:e.prop||e.property,align:y,headerAlign:c,showOverflowTooltip:S,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",filterClassName:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:b,index:e.index,rawColumnKey:n.vnode.key};let L=m(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement","filterClassName"]);L=rK(E,L),L=iK(v,f,h)(L),a.value=L,r(),s()}),Xe(()=>{var w;const b=d.value,S=u.value?b.vnode.el.children:(w=b.refs.hiddenColumns)==null?void 0:w.children,E=()=>p(S||[],n.vnode.el);a.value.getColumnIndex=E,E()>-1&&l.value.store.commit("insertColumn",a.value,u.value?b.columnConfig.value:null,g)}),$t(()=>{const w=a.value.getColumnIndex;(w?w():-1)>-1&&l.value.store.commit("removeColumn",a.value,u.value?x.columnConfig.value:null,g)}),n.columnId=i.value,n.columnConfig=a},render(){var e,t,n;try{const a=(t=(e=this.$slots).default)==null?void 0:t.call(e,{row:{},column:{},$index:-1}),l=[];if(Ee(a))for(const s of a)((n=s.type)==null?void 0:n.name)==="ElTableColumn"||s.shapeFlag&2?l.push(s):s.type===ze&&Ee(s.children)&&s.children.forEach(i=>{(i==null?void 0:i.patchFlag)!==1024&&!Ve(i==null?void 0:i.children)&&l.push(i)});return Pe("div",l)}catch{return Pe("div",[])}}});const fW=We(tW,{TableColumn:Nm}),pW=Lt(Nm);var wr=(e=>(e.ASC="asc",e.DESC="desc",e))(wr||{}),Cr=(e=>(e.CENTER="center",e.RIGHT="right",e))(Cr||{}),Im=(e=>(e.LEFT="left",e.RIGHT="right",e))(Im||{});const bc={asc:"desc",desc:"asc"},Sr=Symbol("placeholder"),vW=(e,t,n)=>{var a;const l={flexGrow:0,flexShrink:0,...n?{}:{flexGrow:e.flexGrow||0,flexShrink:e.flexShrink||1}};n||(l.flexShrink=1);const r={...(a=e.style)!=null?a:{},...l,flexBasis:"auto",width:e.width};return t||(e.maxWidth&&(r.maxWidth=e.maxWidth),e.minWidth&&(r.minWidth=e.minWidth)),r};function hW(e,t,n){const a=C(()=>o(t).map((y,g)=>{var x,w;return{...y,key:(w=(x=y.key)!=null?x:y.dataKey)!=null?w:g}})),l=C(()=>o(a).filter(y=>!y.hidden)),r=C(()=>o(l).filter(y=>y.fixed==="left"||y.fixed===!0)),s=C(()=>o(l).filter(y=>y.fixed==="right")),i=C(()=>o(l).filter(y=>!y.fixed)),u=C(()=>{const y=[];return o(r).forEach(g=>{y.push({...g,placeholderSign:Sr})}),o(i).forEach(g=>{y.push(g)}),o(s).forEach(g=>{y.push({...g,placeholderSign:Sr})}),y}),c=C(()=>o(r).length||o(s).length),d=C(()=>o(a).reduce((y,g)=>(y[g.key]=vW(g,o(n),e.fixed),y),{})),f=C(()=>o(l).reduce((y,g)=>y+g.width,0)),h=y=>o(a).find(g=>g.key===y),v=y=>o(d)[y],m=(y,g)=>{y.width=g};function p(y){var g;const{key:x}=y.currentTarget.dataset;if(!x)return;const{sortState:w,sortBy:b}=e;let S=wr.ASC;ht(w)?S=bc[w[x]]:S=bc[b.order],(g=e.onColumnSort)==null||g.call(e,{column:h(x),key:x,order:S})}return{columns:a,columnsStyles:d,columnsTotalWidth:f,fixedColumnsOnLeft:r,fixedColumnsOnRight:s,hasFixedColumns:c,mainColumns:u,normalColumns:i,visibleColumns:l,getColumn:h,getColumnStyle:v,updateColumnWidth:m,onColumnSorted:p}}const mW=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:a,onMaybeEndReached:l})=>{const r=A({scrollLeft:0,scrollTop:0});function s(v){var m,p,y;const{scrollTop:g}=v;(m=t.value)==null||m.scrollTo(v),(p=n.value)==null||p.scrollToTop(g),(y=a.value)==null||y.scrollToTop(g)}function i(v){r.value=v,s(v)}function u(v){r.value.scrollTop=v,s(o(r))}function c(v){var m,p;r.value.scrollLeft=v,(p=(m=t.value)==null?void 0:m.scrollTo)==null||p.call(m,o(r))}function d(v){var m;i(v),(m=e.onScroll)==null||m.call(e,v)}function f({scrollTop:v}){const{scrollTop:m}=o(r);v!==m&&u(v)}function h(v,m="auto"){var p;(p=t.value)==null||p.scrollToRow(v,m)}return ue(()=>o(r).scrollTop,(v,m)=>{v>m&&l()}),{scrollPos:r,scrollTo:i,scrollToLeft:c,scrollToTop:u,scrollToRow:h,onScroll:d,onVerticalScroll:f}},gW=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:a,tableInstance:l,ns:r,isScrolling:s})=>{const i=et(),{emit:u}=i,c=Ot(!1),d=A(e.defaultExpandedRowKeys||[]),f=A(-1),h=Ot(null),v=A({}),m=A({}),p=Ot({}),y=Ot({}),g=Ot({}),x=C(()=>Ie(e.estimatedRowHeight));function w(P){var L;(L=e.onRowsRendered)==null||L.call(e,P),P.rowCacheEnd>o(f)&&(f.value=P.rowCacheEnd)}function b({hovered:P,rowKey:L}){if(s.value)return;l.vnode.el.querySelectorAll(`[rowkey="${String(L)}"]`).forEach(U=>{P?U.classList.add(r.is("hovered")):U.classList.remove(r.is("hovered"))})}function S({expanded:P,rowData:L,rowIndex:R,rowKey:K}){var U,H;const V=[...o(d)],D=V.indexOf(K);P?D===-1&&V.push(K):D>-1&&V.splice(D,1),d.value=V,u("update:expandedRowKeys",V),(U=e.onRowExpand)==null||U.call(e,{expanded:P,rowData:L,rowIndex:R,rowKey:K}),(H=e.onExpandedRowsChange)==null||H.call(e,V)}const E=Rn(()=>{var P,L,R,K;c.value=!0,v.value={...o(v),...o(m)},O(o(h),!1),m.value={},h.value=null,(P=t.value)==null||P.forceUpdate(),(L=n.value)==null||L.forceUpdate(),(R=a.value)==null||R.forceUpdate(),(K=i.proxy)==null||K.$forceUpdate(),c.value=!1},0);function O(P,L=!1){o(x)&&[t,n,a].forEach(R=>{const K=o(R);K&&K.resetAfterRowIndex(P,L)})}function I(P,L,R){const K=o(h);(K===null||K>R)&&(h.value=R),m.value[P]=L}function N({rowKey:P,height:L,rowIndex:R},K){K?K===Im.RIGHT?g.value[P]=L:p.value[P]=L:y.value[P]=L;const U=Math.max(...[p,g,y].map(H=>H.value[P]||0));o(v)[P]!==U&&(I(P,U,R),E())}return{expandedRowKeys:d,lastRenderedRowIndex:f,isDynamic:x,isResetting:c,rowHeights:v,resetAfterIndex:O,onRowExpanded:S,onRowHovered:b,onRowsRendered:w,onRowHeightChange:N}},yW=(e,{expandedRowKeys:t,lastRenderedRowIndex:n,resetAfterIndex:a})=>{const l=A({}),r=C(()=>{const i={},{data:u,rowKey:c}=e,d=o(t);if(!d||!d.length)return u;const f=[],h=new Set;d.forEach(m=>h.add(m));let v=u.slice();for(v.forEach(m=>i[m[c]]=0);v.length>0;){const m=v.shift();f.push(m),h.has(m[c])&&Ee(m.children)&&m.children.length>0&&(v=[...m.children,...v],m.children.forEach(p=>i[p[c]]=i[m[c]]+1))}return l.value=i,f}),s=C(()=>{const{data:i,expandColumnKey:u}=e;return u?o(r):i});return ue(s,(i,u)=>{i!==u&&(n.value=-1,a(0,!0))}),{data:s,depthMap:l}},_W=(e,t)=>e+t,$s=e=>Ee(e)?e.reduce(_W,0):e,zl=(e,t,n={})=>Je(e)?e(t):e??n,tl=e=>(["width","maxWidth","minWidth","height"].forEach(t=>{e[t]=Rt(e[t])}),e),Pm=e=>Ft(e)?t=>Pe(e,t):e,bW=(e,{columnsTotalWidth:t,rowsHeight:n,fixedColumnsOnLeft:a,fixedColumnsOnRight:l})=>{const r=C(()=>{const{fixed:x,width:w,vScrollbarSize:b}=e,S=w-b;return x?Math.max(Math.round(o(t)),S):S}),s=C(()=>o(r)+e.vScrollbarSize),i=C(()=>{const{height:x=0,maxHeight:w=0,footerHeight:b,hScrollbarSize:S}=e;if(w>0){const E=o(v),O=o(n),N=o(h)+E+O+S;return Math.min(N,w-b)}return x-b}),u=C(()=>{const{maxHeight:x}=e,w=o(i);if(Ie(x)&&x>0)return w;const b=o(n)+o(h)+o(v);return Math.min(w,b)}),c=x=>x.width,d=C(()=>$s(o(a).map(c))),f=C(()=>$s(o(l).map(c))),h=C(()=>$s(e.headerHeight)),v=C(()=>{var x;return(((x=e.fixedData)==null?void 0:x.length)||0)*e.rowHeight}),m=C(()=>o(i)-o(h)-o(v)),p=C(()=>{const{style:x={},height:w,width:b}=e;return tl({...x,height:w,width:b})}),y=C(()=>tl({height:e.footerHeight})),g=C(()=>({top:Rt(o(h)),bottom:Rt(e.footerHeight),width:Rt(e.width)}));return{bodyWidth:r,fixedTableHeight:u,mainTableHeight:i,leftTableWidth:d,rightTableWidth:f,headerWidth:s,windowHeight:m,footerHeight:y,emptyStyle:g,rootStyle:p,headerHeight:h}};function wW(e){const t=A(),n=A(),a=A(),{columns:l,columnsStyles:r,columnsTotalWidth:s,fixedColumnsOnLeft:i,fixedColumnsOnRight:u,hasFixedColumns:c,mainColumns:d,onColumnSorted:f}=hW(e,yt(e,"columns"),yt(e,"fixed")),{scrollTo:h,scrollToLeft:v,scrollToTop:m,scrollToRow:p,onScroll:y,onVerticalScroll:g,scrollPos:x}=mW(e,{mainTableRef:t,leftTableRef:n,rightTableRef:a,onMaybeEndReached:we}),w=de("table-v2"),b=et(),S=Ot(!1),{expandedRowKeys:E,lastRenderedRowIndex:O,isDynamic:I,isResetting:N,rowHeights:P,resetAfterIndex:L,onRowExpanded:R,onRowHeightChange:K,onRowHovered:U,onRowsRendered:H}=gW(e,{mainTableRef:t,leftTableRef:n,rightTableRef:a,tableInstance:b,ns:w,isScrolling:S}),{data:V,depthMap:D}=yW(e,{expandedRowKeys:E,lastRenderedRowIndex:O,resetAfterIndex:L}),B=C(()=>{const{estimatedRowHeight:Le,rowHeight:De}=e,Ye=o(V);return Ie(Le)?Object.values(o(P)).reduce(($e,Te)=>$e+Te,0):Ye.length*De}),{bodyWidth:z,fixedTableHeight:F,mainTableHeight:W,leftTableWidth:Z,rightTableWidth:j,headerWidth:ne,windowHeight:oe,footerHeight:ce,emptyStyle:te,rootStyle:se,headerHeight:fe}=bW(e,{columnsTotalWidth:s,fixedColumnsOnLeft:i,fixedColumnsOnRight:u,rowsHeight:B}),xe=A(),me=C(()=>{const Le=o(V).length===0;return Ee(e.fixedData)?e.fixedData.length===0&&Le:Le});function le(Le){const{estimatedRowHeight:De,rowHeight:Ye,rowKey:$e}=e;return De?o(P)[o(V)[Le][$e]]||De:Ye}function we(){const{onEndReached:Le}=e;if(!Le)return;const{scrollTop:De}=o(x),Ye=o(B),$e=o(oe),Te=Ye-(De+$e)+e.hScrollbarSize;o(O)>=0&&Ye===De+o(W)-o(fe)&&Le(Te)}return ue(()=>e.expandedRowKeys,Le=>E.value=Le,{deep:!0}),{columns:l,containerRef:xe,mainTableRef:t,leftTableRef:n,rightTableRef:a,isDynamic:I,isResetting:N,isScrolling:S,hasFixedColumns:c,columnsStyles:r,columnsTotalWidth:s,data:V,expandedRowKeys:E,depthMap:D,fixedColumnsOnLeft:i,fixedColumnsOnRight:u,mainColumns:d,bodyWidth:z,emptyStyle:te,rootStyle:se,headerWidth:ne,footerHeight:ce,mainTableHeight:W,fixedTableHeight:F,leftTableWidth:Z,rightTableWidth:j,showEmpty:me,getRowHeight:le,onColumnSorted:f,onRowHovered:U,onRowExpanded:R,onRowsRendered:H,onRowHeightChange:K,scrollTo:h,scrollToLeft:v,scrollToTop:m,scrollToRow:p,onScroll:y,onVerticalScroll:g}}const af=Symbol("tableV2"),zm=String,Rr={type:X(Array),required:!0},lf={type:X(Array)},Am={...lf,required:!0},CW=String,J2={type:X(Array),default:()=>Vt([])},yl={type:Number,required:!0},Vm={type:X([String,Number,Symbol]),default:"id"},Q2={type:X(Object)},Cl=pe({class:String,columns:Rr,columnsStyles:{type:X(Object),required:!0},depth:Number,expandColumnKey:CW,estimatedRowHeight:{...Ml.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:X(Function)},onRowHover:{type:X(Function)},onRowHeightChange:{type:X(Function)},rowData:{type:X(Object),required:!0},rowEventHandlers:{type:X(Object)},rowIndex:{type:Number,required:!0},rowKey:Vm,style:{type:X(Object)}}),mu={type:Number,required:!0},of=pe({class:String,columns:Rr,fixedHeaderData:{type:X(Array)},headerData:{type:X(Array),required:!0},headerHeight:{type:X([Number,Array]),default:50},rowWidth:mu,rowHeight:{type:Number,default:50},height:mu,width:mu}),Ts=pe({columns:Rr,data:Am,fixedData:lf,estimatedRowHeight:Cl.estimatedRowHeight,width:yl,height:yl,headerWidth:yl,headerHeight:of.headerHeight,bodyWidth:yl,rowHeight:yl,cache:nm.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:Ml.scrollbarAlwaysOn,scrollbarStartGap:Ml.scrollbarStartGap,scrollbarEndGap:Ml.scrollbarEndGap,class:zm,style:Q2,containerStyle:Q2,getRowHeight:{type:X(Function),required:!0},rowKey:Cl.rowKey,onRowsRendered:{type:X(Function)},onScroll:{type:X(Function)}}),SW=pe({cache:Ts.cache,estimatedRowHeight:Cl.estimatedRowHeight,rowKey:Vm,headerClass:{type:X([String,Function])},headerProps:{type:X([Object,Function])},headerCellProps:{type:X([Object,Function])},headerHeight:of.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:X([String,Function])},rowProps:{type:X([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:X([Object,Function])},columns:Rr,data:Am,dataGetter:{type:X(Function)},fixedData:lf,expandColumnKey:Cl.expandColumnKey,expandedRowKeys:J2,defaultExpandedRowKeys:J2,class:zm,fixed:Boolean,style:{type:X(Object)},width:yl,height:yl,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:Ml.hScrollbarSize,vScrollbarSize:Ml.vScrollbarSize,scrollbarAlwaysOn:om.alwaysOn,sortBy:{type:X(Object),default:()=>({})},sortState:{type:X(Object),default:void 0},onColumnSort:{type:X(Function)},onExpandedRowsChange:{type:X(Function)},onEndReached:{type:X(Function)},onRowExpand:Cl.onRowExpand,onScroll:Ts.onScroll,onRowsRendered:Ts.onRowsRendered,rowEventHandlers:Cl.rowEventHandlers}),kW="ElTableV2Header",EW=T({name:kW,props:of,setup(e,{slots:t,expose:n}){const a=de("table-v2"),l=Se("tableV2GridScrollLeft"),r=A(),s=C(()=>tl({width:e.width,height:e.height})),i=C(()=>tl({width:e.rowWidth,height:e.height})),u=C(()=>bn(o(e.headerHeight))),c=h=>{const v=o(r);Ne(()=>{v!=null&&v.scroll&&v.scroll({left:h})})},d=()=>{const h=a.e("fixed-header-row"),{columns:v,fixedHeaderData:m,rowHeight:p}=e;return m==null?void 0:m.map((y,g)=>{var x;const w=tl({height:p,width:"100%"});return(x=t.fixed)==null?void 0:x.call(t,{class:h,columns:v,rowData:y,rowIndex:-(g+1),style:w})})},f=()=>{const h=a.e("dynamic-header-row"),{columns:v}=e;return o(u).map((m,p)=>{var y;const g=tl({width:"100%",height:m});return(y=t.dynamic)==null?void 0:y.call(t,{class:h,columns:v,headerIndex:p,style:g})})};return Wa(()=>{l!=null&&l.value&&c(l.value)}),n({scrollToLeft:c}),()=>{if(!(e.height<=0))return q("div",{ref:r,class:e.class,style:o(s),role:"rowgroup"},[q("div",{style:o(i),class:a.e("header")},[f(),d()])])}}});var xW=EW;const MW=({atXEndEdge:e,atXStartEdge:t,atYEndEdge:n,atYStartEdge:a},l)=>{let r=null,s=0,i=0;const u=(d,f)=>{const h=d<=0&&t.value||d>=0&&e.value,v=f<=0&&a.value||f>=0&&n.value;return h&&v};return{hasReachedEdge:u,onWheel:d=>{Il(r);let f=d.deltaX,h=d.deltaY;Math.abs(f)>Math.abs(h)?h=0:f=0,d.shiftKey&&h!==0&&(f=h,h=0),!(u(s,i)&&u(s+f,i+h))&&(s+=f,i+=h,d.preventDefault(),r=sl(()=>{l(s,i),s=0,i=0}))}}},Lm=({name:e,clearCache:t,getColumnPosition:n,getColumnStartIndexForOffset:a,getColumnStopIndexForStartIndex:l,getEstimatedTotalHeight:r,getEstimatedTotalWidth:s,getColumnOffset:i,getRowOffset:u,getRowPosition:c,getRowStartIndexForOffset:d,getRowStopIndexForStartIndex:f,initCache:h,injectToInstance:v,validateProps:m})=>T({name:e??"ElVirtualList",props:Ml,emits:[qs,Us],setup(p,{emit:y,expose:g,slots:x}){const w=de("vl");m(p);const b=et(),S=A(h(p,b));v==null||v(b,S);const E=A(),O=A(),I=A(),N=A(null),P=A({isScrolling:!1,scrollLeft:Ie(p.initScrollLeft)?p.initScrollLeft:0,scrollTop:Ie(p.initScrollTop)?p.initScrollTop:0,updateRequested:!1,xAxisScrollDir:eo,yAxisScrollDir:eo}),L=Qh(),R=C(()=>Number.parseInt(`${p.height}`,10)),K=C(()=>Number.parseInt(`${p.width}`,10)),U=C(()=>{const{totalColumn:$e,totalRow:Te,columnCache:ke}=p,{isScrolling:He,xAxisScrollDir:Ge,scrollLeft:at}=o(P);if($e===0||Te===0)return[0,0,0,0];const nt=a(p,at,o(S)),be=l(p,nt,at,o(S)),je=!He||Ge===Ys?Math.max(1,ke):1,ft=!He||Ge===eo?Math.max(1,ke):1;return[Math.max(0,nt-je),Math.max(0,Math.min($e-1,be+ft)),nt,be]}),H=C(()=>{const{totalColumn:$e,totalRow:Te,rowCache:ke}=p,{isScrolling:He,yAxisScrollDir:Ge,scrollTop:at}=o(P);if($e===0||Te===0)return[0,0,0,0];const nt=d(p,at,o(S)),be=f(p,nt,at,o(S)),je=!He||Ge===Ys?Math.max(1,ke):1,ft=!He||Ge===eo?Math.max(1,ke):1;return[Math.max(0,nt-je),Math.max(0,Math.min(Te-1,be+ft)),nt,be]}),V=C(()=>r(p,o(S))),D=C(()=>s(p,o(S))),B=C(()=>{var $e;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:p.direction,height:Ie(p.height)?`${p.height}px`:p.height,width:Ie(p.width)?`${p.width}px`:p.width},($e=p.style)!=null?$e:{}]}),z=C(()=>{const $e=`${o(D)}px`;return{height:`${o(V)}px`,pointerEvents:o(P).isScrolling?"none":void 0,width:$e}}),F=()=>{const{totalColumn:$e,totalRow:Te}=p;if($e>0&&Te>0){const[be,je,ft,Tt]=o(U),[bt,Pt,mt,sn]=o(H);y(qs,{columnCacheStart:be,columnCacheEnd:je,rowCacheStart:bt,rowCacheEnd:Pt,columnVisibleStart:ft,columnVisibleEnd:Tt,rowVisibleStart:mt,rowVisibleEnd:sn})}const{scrollLeft:ke,scrollTop:He,updateRequested:Ge,xAxisScrollDir:at,yAxisScrollDir:nt}=o(P);y(Us,{xAxisScrollDir:at,scrollLeft:ke,yAxisScrollDir:nt,scrollTop:He,updateRequested:Ge})},W=$e=>{const{clientHeight:Te,clientWidth:ke,scrollHeight:He,scrollLeft:Ge,scrollTop:at,scrollWidth:nt}=$e.currentTarget,be=o(P);if(be.scrollTop===at&&be.scrollLeft===Ge)return;let je=Ge;if(V2(p.direction))switch(Xs()){case _r:je=-Ge;break;case Qd:je=nt-ke-Ge;break}P.value={...be,isScrolling:!0,scrollLeft:je,scrollTop:Math.max(0,Math.min(at,He-Te)),updateRequested:!0,xAxisScrollDir:wl(be.scrollLeft,je),yAxisScrollDir:wl(be.scrollTop,at)},Ne(()=>se()),fe(),F()},Z=($e,Te)=>{const ke=o(R),He=(V.value-ke)/Te*$e;oe({scrollTop:Math.min(V.value-ke,He)})},j=($e,Te)=>{const ke=o(K),He=(D.value-ke)/Te*$e;oe({scrollLeft:Math.min(D.value-ke,He)})},{onWheel:ne}=MW({atXStartEdge:C(()=>P.value.scrollLeft<=0),atXEndEdge:C(()=>P.value.scrollLeft>=D.value-o(K)),atYStartEdge:C(()=>P.value.scrollTop<=0),atYEndEdge:C(()=>P.value.scrollTop>=V.value-o(R))},($e,Te)=>{var ke,He,Ge,at;(He=(ke=O.value)==null?void 0:ke.onMouseUp)==null||He.call(ke),(at=(Ge=I.value)==null?void 0:Ge.onMouseUp)==null||at.call(Ge);const nt=o(K),be=o(R);oe({scrollLeft:Math.min(P.value.scrollLeft+$e,D.value-nt),scrollTop:Math.min(P.value.scrollTop+Te,V.value-be)})});wt(E,"wheel",ne,{passive:!1});const oe=({scrollLeft:$e=P.value.scrollLeft,scrollTop:Te=P.value.scrollTop})=>{$e=Math.max($e,0),Te=Math.max(Te,0);const ke=o(P);Te===ke.scrollTop&&$e===ke.scrollLeft||(P.value={...ke,xAxisScrollDir:wl(ke.scrollLeft,$e),yAxisScrollDir:wl(ke.scrollTop,Te),scrollLeft:$e,scrollTop:Te,updateRequested:!0},Ne(()=>se()),fe(),F())},ce=($e=0,Te=0,ke=qn)=>{const He=o(P);Te=Math.max(0,Math.min(Te,p.totalColumn-1)),$e=Math.max(0,Math.min($e,p.totalRow-1));const Ge=I1(w.namespace.value),at=o(S),nt=r(p,at),be=s(p,at);oe({scrollLeft:i(p,Te,ke,He.scrollLeft,at,be>p.width?Ge:0),scrollTop:u(p,$e,ke,He.scrollTop,at,nt>p.height?Ge:0)})},te=($e,Te)=>{const{columnWidth:ke,direction:He,rowHeight:Ge}=p,at=L.value(t&&ke,t&&Ge,t&&He),nt=`${$e},${Te}`;if(vn(at,nt))return at[nt];{const[,be]=n(p,Te,o(S)),je=o(S),ft=V2(He),[Tt,bt]=c(p,$e,je),[Pt]=n(p,Te,je);return at[nt]={position:"absolute",left:ft?void 0:`${be}px`,right:ft?`${be}px`:void 0,top:`${bt}px`,height:`${Tt}px`,width:`${Pt}px`},at[nt]}},se=()=>{P.value.isScrolling=!1,Ne(()=>{L.value(-1,null,null)})};Xe(()=>{if(!ut)return;const{initScrollLeft:$e,initScrollTop:Te}=p,ke=o(E);ke&&(Ie($e)&&(ke.scrollLeft=$e),Ie(Te)&&(ke.scrollTop=Te)),F()});const fe=()=>{const{direction:$e}=p,{scrollLeft:Te,scrollTop:ke,updateRequested:He}=o(P),Ge=o(E);if(He&&Ge){if($e===oo)switch(Xs()){case _r:{Ge.scrollLeft=-Te;break}case Jd:{Ge.scrollLeft=Te;break}default:{const{clientWidth:at,scrollWidth:nt}=Ge;Ge.scrollLeft=nt-at-Te;break}}else Ge.scrollLeft=Math.max(0,Te);Ge.scrollTop=Math.max(0,ke)}},{resetAfterColumnIndex:xe,resetAfterRowIndex:me,resetAfter:le}=b.proxy;g({windowRef:E,innerRef:N,getItemStyleCache:L,scrollTo:oe,scrollToItem:ce,states:P,resetAfterColumnIndex:xe,resetAfterRowIndex:me,resetAfter:le});const we=()=>{const{scrollbarAlwaysOn:$e,scrollbarStartGap:Te,scrollbarEndGap:ke,totalColumn:He,totalRow:Ge}=p,at=o(K),nt=o(R),be=o(D),je=o(V),{scrollLeft:ft,scrollTop:Tt}=o(P),bt=Pe(uc,{ref:O,alwaysOn:$e,startGap:Te,endGap:ke,class:w.e("horizontal"),clientSize:at,layout:"horizontal",onScroll:j,ratio:at*100/be,scrollFrom:ft/(be-at),total:Ge,visible:!0}),Pt=Pe(uc,{ref:I,alwaysOn:$e,startGap:Te,endGap:ke,class:w.e("vertical"),clientSize:nt,layout:"vertical",onScroll:Z,ratio:nt*100/je,scrollFrom:Tt/(je-nt),total:He,visible:!0});return{horizontalScrollbar:bt,verticalScrollbar:Pt}},Le=()=>{var $e;const[Te,ke]=o(U),[He,Ge]=o(H),{data:at,totalColumn:nt,totalRow:be,useIsScrolling:je,itemKey:ft}=p,Tt=[];if(be>0&&nt>0)for(let bt=He;bt<=Ge;bt++)for(let Pt=Te;Pt<=ke;Pt++){const mt=ft({columnIndex:Pt,data:at,rowIndex:bt});Tt.push(Pe(ze,{key:mt},($e=x.default)==null?void 0:$e.call(x,{columnIndex:Pt,data:at,isScrolling:je?o(P).isScrolling:void 0,style:te(bt,Pt),rowIndex:bt})))}return Tt},De=()=>{const $e=Qe(p.innerElement),Te=Le();return[Pe($e,{style:o(z),ref:N},Ve($e)?Te:{default:()=>Te})]};return()=>{const $e=Qe(p.containerElement),{horizontalScrollbar:Te,verticalScrollbar:ke}=we(),He=De();return Pe("div",{key:0,class:w.e("wrapper"),role:p.role},[Pe($e,{class:p.className,style:o(B),onScroll:W,ref:E},Ve($e)?He:{default:()=>He}),Te,ke])}}}),{max:Qs,min:Rm,floor:Bm}=Math,$W={column:"columnWidth",row:"rowHeight"},wc={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},za=(e,t,n,a)=>{const[l,r,s]=[n[a],e[$W[a]],n[wc[a]]];if(t>s){let i=0;if(s>=0){const u=l[s];i=u.offset+u.size}for(let u=s+1;u<=t;u++){const c=r(u);l[u]={offset:i,size:c},i+=c}n[wc[a]]=t}return l[t]},Hm=(e,t,n,a,l,r)=>{for(;n<=a;){const s=n+Bm((a-n)/2),i=za(e,s,t,r).offset;if(i===l)return s;i{const r=l==="column"?e.totalColumn:e.totalRow;let s=1;for(;n{const[l,r]=[t[a],t[wc[a]]];return(r>0?l[r].offset:0)>=n?Hm(e,t,0,r,n,a):TW(e,t,Qs(0,r),n,a)},Dm=({totalRow:e},{estimatedRowHeight:t,lastVisitedRowIndex:n,row:a})=>{let l=0;if(n>=e&&(n=e-1),n>=0){const i=a[n];l=i.offset+i.size}const s=(e-n-1)*t;return l+s},Fm=({totalColumn:e},{column:t,estimatedColumnWidth:n,lastVisitedColumnIndex:a})=>{let l=0;if(a>e&&(a=e-1),a>=0){const i=t[a];l=i.offset+i.size}const s=(e-a-1)*n;return l+s},OW={column:Fm,row:Dm},tp=(e,t,n,a,l,r,s)=>{const[i,u]=[r==="row"?e.height:e.width,OW[r]],c=za(e,t,l,r),d=u(e,l),f=Qs(0,Rm(d-i,c.offset)),h=Qs(0,c.offset-i+s+c.size);switch(n===zi&&(a>=h-i&&a<=f+i?n=qn:n=_a),n){case gr:return f;case yr:return h;case _a:return Math.round(h+(f-h)/2);case qn:default:return a>=h&&a<=f?a:h>f||a{const a=za(e,t,n,"column");return[a.size,a.offset]},getRowPosition:(e,t,n)=>{const a=za(e,t,n,"row");return[a.size,a.offset]},getColumnOffset:(e,t,n,a,l,r)=>tp(e,t,n,a,l,"column",r),getRowOffset:(e,t,n,a,l,r)=>tp(e,t,n,a,l,"row",r),getColumnStartIndexForOffset:(e,t,n)=>ep(e,n,t,"column"),getColumnStopIndexForStartIndex:(e,t,n,a)=>{const l=za(e,t,a,"column"),r=n+e.width;let s=l.offset+l.size,i=t;for(;iep(e,n,t,"row"),getRowStopIndexForStartIndex:(e,t,n,a)=>{const{totalRow:l,height:r}=e,s=za(e,t,a,"row"),i=n+r;let u=s.size+s.offset,c=t;for(;c{const n=({columnIndex:r,rowIndex:s},i)=>{var u,c;i=vt(i)?!0:i,Ie(r)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,r-1)),Ie(s)&&(t.value.lastVisitedRowIndex=Math.min(t.value.lastVisitedRowIndex,s-1)),(u=e.exposed)==null||u.getItemStyleCache.value(-1,null,null),i&&((c=e.proxy)==null||c.$forceUpdate())},a=(r,s)=>{n({columnIndex:r},s)},l=(r,s)=>{n({rowIndex:r},s)};Object.assign(e.proxy,{resetAfterColumnIndex:a,resetAfterRowIndex:l,resetAfter:n})},initCache:({estimatedColumnWidth:e=ac,estimatedRowHeight:t=ac})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{}}),IW=Lm({name:"ElFixedSizeGrid",getColumnPosition:({columnWidth:e},t)=>[e,t*e],getRowPosition:({rowHeight:e},t)=>[e,t*e],getEstimatedTotalHeight:({totalRow:e,rowHeight:t})=>t*e,getEstimatedTotalWidth:({totalColumn:e,columnWidth:t})=>t*e,getColumnOffset:({totalColumn:e,columnWidth:t,width:n},a,l,r,s,i)=>{n=Number(n);const u=Math.max(0,e*t-n),c=Math.min(u,a*t),d=Math.max(0,a*t-n+i+t);switch(l==="smart"&&(r>=d-n&&r<=c+n?l=qn:l=_a),l){case gr:return c;case yr:return d;case _a:{const f=Math.round(d+(c-d)/2);return fu+Math.floor(n/2)?u:f}case qn:default:return r>=d&&r<=c?r:d>c||r{t=Number(t);const u=Math.max(0,n*e-t),c=Math.min(u,a*e),d=Math.max(0,a*e-t+i+e);switch(l===zi&&(r>=d-t&&r<=c+t?l=qn:l=_a),l){case gr:return c;case yr:return d;case _a:{const f=Math.round(d+(c-d)/2);return fu+Math.floor(t/2)?u:f}case qn:default:return r>=d&&r<=c?r:d>c||rMath.max(0,Math.min(t-1,Math.floor(n/e))),getColumnStopIndexForStartIndex:({columnWidth:e,totalColumn:t,width:n},a,l)=>{const r=a*e,s=Math.ceil((n+l-r)/e);return Math.max(0,Math.min(t-1,a+s-1))},getRowStartIndexForOffset:({rowHeight:e,totalRow:t},n)=>Math.max(0,Math.min(t-1,Math.floor(n/e))),getRowStopIndexForStartIndex:({rowHeight:e,totalRow:t,height:n},a,l)=>{const r=a*e,s=Math.ceil((n+l-r)/e);return Math.max(0,Math.min(t-1,a+s-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:e,rowHeight:t})=>{}}),PW="ElTableV2Grid",zW=e=>{const t=A(),n=A(),a=A(0),l=C(()=>{const{data:y,rowHeight:g,estimatedRowHeight:x}=e;if(!x)return y.length*g}),r=C(()=>{const{fixedData:y,rowHeight:g}=e;return((y==null?void 0:y.length)||0)*g}),s=C(()=>$s(e.headerHeight)),i=C(()=>{const{height:y}=e;return Math.max(0,y-o(s)-o(r))}),u=C(()=>o(s)+o(r)>0),c=({data:y,rowIndex:g})=>y[g][e.rowKey];function d({rowCacheStart:y,rowCacheEnd:g,rowVisibleStart:x,rowVisibleEnd:w}){var b;(b=e.onRowsRendered)==null||b.call(e,{rowCacheStart:y,rowCacheEnd:g,rowVisibleStart:x,rowVisibleEnd:w})}function f(y,g){var x;(x=n.value)==null||x.resetAfterRowIndex(y,g)}function h(y,g){const x=o(t),w=o(n);ht(y)?(x==null||x.scrollToLeft(y.scrollLeft),a.value=y.scrollLeft,w==null||w.scrollTo(y)):(x==null||x.scrollToLeft(y),a.value=y,w==null||w.scrollTo({scrollLeft:y,scrollTop:g}))}function v(y){var g;(g=o(n))==null||g.scrollTo({scrollTop:y})}function m(y,g){var x;(x=o(n))==null||x.scrollToItem(y,1,g)}function p(){var y,g;(y=o(n))==null||y.$forceUpdate(),(g=o(t))==null||g.$forceUpdate()}return{bodyRef:n,forceUpdate:p,fixedRowHeight:r,gridHeight:i,hasHeader:u,headerHeight:s,headerRef:t,totalHeight:l,itemKey:c,onItemRendered:d,resetAfterRowIndex:f,scrollTo:h,scrollToTop:v,scrollToRow:m,scrollLeft:a}},AW=T({name:PW,props:Ts,setup(e,{slots:t,expose:n}){const{ns:a}=Se(af),{bodyRef:l,fixedRowHeight:r,gridHeight:s,hasHeader:i,headerRef:u,headerHeight:c,totalHeight:d,forceUpdate:f,itemKey:h,onItemRendered:v,resetAfterRowIndex:m,scrollTo:p,scrollToTop:y,scrollToRow:g,scrollLeft:x}=zW(e);it("tableV2GridScrollLeft",x),n({forceUpdate:f,totalHeight:d,scrollTo:p,scrollToTop:y,scrollToRow:g,resetAfterRowIndex:m});const w=()=>e.bodyWidth;return()=>{const{cache:b,columns:S,data:E,fixedData:O,useIsScrolling:I,scrollbarAlwaysOn:N,scrollbarEndGap:P,scrollbarStartGap:L,style:R,rowHeight:K,bodyWidth:U,estimatedRowHeight:H,headerWidth:V,height:D,width:B,getRowHeight:z,onScroll:F}=e,W=Ie(H),Z=W?NW:IW,j=o(c);return q("div",{role:"table",class:[a.e("table"),e.class],style:R},[q(Z,{ref:l,data:E,useIsScrolling:I,itemKey:h,columnCache:0,columnWidth:W?w:U,totalColumn:1,totalRow:E.length,rowCache:b,rowHeight:W?z:K,width:B,height:o(s),class:a.e("body"),role:"rowgroup",scrollbarStartGap:L,scrollbarEndGap:P,scrollbarAlwaysOn:N,onScroll:F,onItemRendered:v,perfMode:!1},{default:ne=>{var oe;const ce=E[ne.rowIndex];return(oe=t.row)==null?void 0:oe.call(t,{...ne,columns:S,rowData:ce})}}),o(i)&&q(xW,{ref:u,class:a.e("header-wrapper"),columns:S,headerData:E,headerHeight:e.headerHeight,fixedHeaderData:O,rowWidth:V,rowHeight:K,width:B,height:Math.min(j+o(r),D)},{dynamic:t.header,fixed:t.row})])}}});var rf=AW;function VW(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ft(e)}const LW=(e,{slots:t})=>{const{mainTableRef:n,...a}=e;return q(rf,tt({ref:n},a),VW(t)?t:{default:()=>[t]})};var RW=LW;function BW(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ft(e)}const HW=(e,{slots:t})=>{if(!e.columns.length)return;const{leftTableRef:n,...a}=e;return q(rf,tt({ref:n},a),BW(t)?t:{default:()=>[t]})};var DW=HW;function FW(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ft(e)}const KW=(e,{slots:t})=>{if(!e.columns.length)return;const{rightTableRef:n,...a}=e;return q(rf,tt({ref:n},a),FW(t)?t:{default:()=>[t]})};var WW=KW;const jW=e=>{const{isScrolling:t}=Se(af),n=A(!1),a=A(),l=C(()=>Ie(e.estimatedRowHeight)&&e.rowIndex>=0),r=(u=!1)=>{const c=o(a);if(!c)return;const{columns:d,onRowHeightChange:f,rowKey:h,rowIndex:v,style:m}=e,{height:p}=c.getBoundingClientRect();n.value=!0,Ne(()=>{if(u||p!==Number.parseInt(m.height)){const y=d[0],g=(y==null?void 0:y.placeholderSign)===Sr;f==null||f({rowKey:h,height:p,rowIndex:v},y&&!g&&y.fixed)}})},s=C(()=>{const{rowData:u,rowIndex:c,rowKey:d,onRowHover:f}=e,h=e.rowEventHandlers||{},v={};return Object.entries(h).forEach(([m,p])=>{Je(p)&&(v[m]=y=>{p({event:y,rowData:u,rowIndex:c,rowKey:d})})}),f&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:m,hovered:p})=>{const y=v[m];v[m]=g=>{f({event:g,hovered:p,rowData:u,rowIndex:c,rowKey:d}),y==null||y(g)}}),v}),i=u=>{const{onRowExpand:c,rowData:d,rowIndex:f,rowKey:h}=e;c==null||c({expanded:u,rowData:d,rowIndex:f,rowKey:h})};return Xe(()=>{o(l)&&r(!0)}),{isScrolling:t,measurable:l,measured:n,rowRef:a,eventHandlers:s,onExpand:i}},qW="ElTableV2TableRow",UW=T({name:qW,props:Cl,setup(e,{expose:t,slots:n,attrs:a}){const{eventHandlers:l,isScrolling:r,measurable:s,measured:i,rowRef:u,onExpand:c}=jW(e);return t({onExpand:c}),()=>{const{columns:d,columnsStyles:f,expandColumnKey:h,depth:v,rowData:m,rowIndex:p,style:y}=e;let g=d.map((x,w)=>{const b=Ee(m.children)&&m.children.length>0&&x.key===h;return n.cell({column:x,columns:d,columnIndex:w,depth:v,style:f[x.key],rowData:m,rowIndex:p,isScrolling:o(r),expandIconProps:b?{rowData:m,rowIndex:p,onExpand:c}:void 0})});if(n.row&&(g=n.row({cells:g.map(x=>Ee(x)&&x.length===1?x[0]:x),style:y,columns:d,depth:v,rowData:m,rowIndex:p,isScrolling:o(r)})),o(s)){const{height:x,...w}=y||{},b=o(i);return q("div",tt({ref:u,class:e.class,style:b?y:w,role:"row"},a,o(l)),[g])}return q("div",tt(a,{ref:u,class:e.class,style:y,role:"row"},o(l)),[g])}}});var YW=UW;function GW(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ft(e)}const XW=(e,{slots:t})=>{const{columns:n,columnsStyles:a,depthMap:l,expandColumnKey:r,expandedRowKeys:s,estimatedRowHeight:i,hasFixedColumns:u,rowData:c,rowIndex:d,style:f,isScrolling:h,rowProps:v,rowClass:m,rowKey:p,rowEventHandlers:y,ns:g,onRowHovered:x,onRowExpanded:w}=e,b=zl(m,{columns:n,rowData:c,rowIndex:d},""),S=zl(v,{columns:n,rowData:c,rowIndex:d}),E=c[p],O=l[E]||0,I=!!r,N=d<0,P=[g.e("row"),b,{[g.e(`row-depth-${O}`)]:I&&d>=0,[g.is("expanded")]:I&&s.includes(E),[g.is("fixed")]:!O&&N,[g.is("customized")]:!!t.row}],L=u?x:void 0,R={...S,columns:n,columnsStyles:a,class:P,depth:O,expandColumnKey:r,estimatedRowHeight:N?void 0:i,isScrolling:h,rowIndex:d,rowData:c,rowKey:E,rowEventHandlers:y,style:f};return q(YW,tt(R,{onRowExpand:w,onMouseenter:H=>{L==null||L({hovered:!0,rowKey:E,event:H,rowData:c,rowIndex:d})},onMouseleave:H=>{L==null||L({hovered:!1,rowKey:E,event:H,rowData:c,rowIndex:d})},rowkey:E}),GW(t)?t:{default:()=>[t]})};var ZW=XW;const sf=(e,{slots:t})=>{var n;const{cellData:a,style:l}=e,r=((n=a==null?void 0:a.toString)==null?void 0:n.call(a))||"",s=Q(t,"default",e,()=>[r]);return q("div",{class:e.class,title:r,style:l},[s])};sf.displayName="ElTableV2Cell";sf.inheritAttrs=!1;var JW=sf;const QW=e=>{const{expanded:t,expandable:n,onExpand:a,style:l,size:r}=e,s={onClick:n?()=>a(!t):void 0,class:e.class};return q(Me,tt(s,{size:r,style:l}),{default:()=>[q(En,null,null)]})};var ej=QW;const Km=({columns:e,column:t,columnIndex:n,depth:a,expandIconProps:l,isScrolling:r,rowData:s,rowIndex:i,style:u,expandedRowKeys:c,ns:d,cellProps:f,expandColumnKey:h,indentSize:v,iconSize:m,rowKey:p},{slots:y})=>{const g=tl(u);if(t.placeholderSign===Sr)return q("div",{class:d.em("row-cell","placeholder"),style:g},null);const{cellRenderer:x,dataKey:w,dataGetter:b}=t,S=Je(b)?b({columns:e,column:t,columnIndex:n,rowData:s,rowIndex:i}):Kt(s,w??""),E=zl(f,{cellData:S,columns:e,column:t,columnIndex:n,rowIndex:i,rowData:s}),O={class:d.e("cell-text"),columns:e,column:t,columnIndex:n,cellData:S,isScrolling:r,rowData:s,rowIndex:i},I=Pm(x),N=I?I(O):Q(y,"default",O,()=>[q(JW,O,null)]),P=[d.e("row-cell"),t.class,t.align===Cr.CENTER&&d.is("align-center"),t.align===Cr.RIGHT&&d.is("align-right")],L=i>=0&&h&&t.key===h,R=i>=0&&c.includes(s[p]);let K;const U=`margin-inline-start: ${a*v}px;`;return L&&(ht(l)?K=q(ej,tt(l,{class:[d.e("expand-icon"),d.is("expanded",R)],size:m,expanded:R,style:U,expandable:!0}),null):K=q("div",{style:[U,`width: ${m}px; height: ${m}px;`].join(" ")},null)),q("div",tt({class:P,style:g},E,{role:"cell"}),[K,N])};Km.inheritAttrs=!1;var np=Km;const tj=pe({class:String,columns:Rr,columnsStyles:{type:X(Object),required:!0},headerIndex:Number,style:{type:X(Object)}}),nj=T({name:"ElTableV2HeaderRow",props:tj,setup(e,{slots:t}){return()=>{const{columns:n,columnsStyles:a,headerIndex:l,style:r}=e;let s=n.map((i,u)=>t.cell({columns:n,column:i,columnIndex:u,headerIndex:l,style:a[i.key]}));return t.header&&(s=t.header({cells:s.map(i=>Ee(i)&&i.length===1?i[0]:i),columns:n,headerIndex:l})),q("div",{class:e.class,style:r,role:"row"},[s])}}});var aj=nj;function lj(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ft(e)}const oj=({columns:e,columnsStyles:t,headerIndex:n,style:a,headerClass:l,headerProps:r,ns:s},{slots:i})=>{const u={columns:e,headerIndex:n},c=[s.e("header-row"),zl(l,u,""),{[s.is("customized")]:!!i.header}],d={...zl(r,u),columnsStyles:t,class:c,columns:e,headerIndex:n,style:a};return q(aj,d,lj(i)?i:{default:()=>[i]})};var rj=oj;const uf=(e,{slots:t})=>Q(t,"default",e,()=>{var n,a;return[q("div",{class:e.class,title:(n=e.column)==null?void 0:n.title},[(a=e.column)==null?void 0:a.title])]});uf.displayName="ElTableV2HeaderCell";uf.inheritAttrs=!1;var sj=uf;const ij=e=>{const{sortOrder:t}=e;return q(Me,{size:14,class:e.class},{default:()=>[t===wr.ASC?q(J1,null,null):q(Z1,null,null)]})};var uj=ij;const cj=(e,{slots:t})=>{const{column:n,ns:a,style:l,onColumnSorted:r}=e,s=tl(l);if(n.placeholderSign===Sr)return q("div",{class:a.em("header-row-cell","placeholder"),style:s},null);const{headerCellRenderer:i,headerClass:u,sortable:c}=n,d={...e,class:a.e("header-cell-text")},f=Pm(i),h=f?f(d):Q(t,"default",d,()=>[q(sj,d,null)]),{sortBy:v,sortState:m,headerCellProps:p}=e;let y,g;if(m){const b=m[n.key];y=!!bc[b],g=y?b:wr.ASC}else y=n.key===v.key,g=y?v.order:wr.ASC;const x=[a.e("header-cell"),zl(u,e,""),n.align===Cr.CENTER&&a.is("align-center"),n.align===Cr.RIGHT&&a.is("align-right"),c&&a.is("sortable")],w={...zl(p,e),onClick:n.sortable?r:void 0,class:x,style:s,"data-key":n.key};return q("div",tt(w,{role:"columnheader"}),[h,c&&q(uj,{class:[a.e("sort-icon"),y&&a.is("sorting")],sortOrder:g},null)])};var ap=cj;const Wm=(e,{slots:t})=>{var n;return q("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};Wm.displayName="ElTableV2Footer";var dj=Wm;const jm=(e,{slots:t})=>{const n=Q(t,"default",{},()=>[q(Rh,null,null)]);return q("div",{class:e.class,style:e.style},[n])};jm.displayName="ElTableV2Empty";var fj=jm;const qm=(e,{slots:t})=>{var n;return q("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};qm.displayName="ElTableV2Overlay";var pj=qm;function qo(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ft(e)}const vj="ElTableV2",hj=T({name:vj,props:SW,setup(e,{slots:t,expose:n}){const a=de("table-v2"),{columnsStyles:l,fixedColumnsOnLeft:r,fixedColumnsOnRight:s,mainColumns:i,mainTableHeight:u,fixedTableHeight:c,leftTableWidth:d,rightTableWidth:f,data:h,depthMap:v,expandedRowKeys:m,hasFixedColumns:p,mainTableRef:y,leftTableRef:g,rightTableRef:x,isDynamic:w,isResetting:b,isScrolling:S,bodyWidth:E,emptyStyle:O,rootStyle:I,headerWidth:N,footerHeight:P,showEmpty:L,scrollTo:R,scrollToLeft:K,scrollToTop:U,scrollToRow:H,getRowHeight:V,onColumnSorted:D,onRowHeightChange:B,onRowHovered:z,onRowExpanded:F,onRowsRendered:W,onScroll:Z,onVerticalScroll:j}=wW(e);return n({scrollTo:R,scrollToLeft:K,scrollToTop:U,scrollToRow:H}),it(af,{ns:a,isResetting:b,isScrolling:S}),()=>{const{cache:ne,cellProps:oe,estimatedRowHeight:ce,expandColumnKey:te,fixedData:se,headerHeight:fe,headerClass:xe,headerProps:me,headerCellProps:le,sortBy:we,sortState:Le,rowHeight:De,rowClass:Ye,rowEventHandlers:$e,rowKey:Te,rowProps:ke,scrollbarAlwaysOn:He,indentSize:Ge,iconSize:at,useIsScrolling:nt,vScrollbarSize:be,width:je}=e,ft=o(h),Tt={cache:ne,class:a.e("main"),columns:o(i),data:ft,fixedData:se,estimatedRowHeight:ce,bodyWidth:o(E)+be,headerHeight:fe,headerWidth:o(N),height:o(u),mainTableRef:y,rowKey:Te,rowHeight:De,scrollbarAlwaysOn:He,scrollbarStartGap:2,scrollbarEndGap:be,useIsScrolling:nt,width:je,getRowHeight:V,onRowsRendered:W,onScroll:Z},bt=o(d),Pt=o(c),mt={cache:ne,class:a.e("left"),columns:o(r),data:ft,estimatedRowHeight:ce,leftTableRef:g,rowHeight:De,bodyWidth:bt,headerWidth:bt,headerHeight:fe,height:Pt,rowKey:Te,scrollbarAlwaysOn:He,scrollbarStartGap:2,scrollbarEndGap:be,useIsScrolling:nt,width:bt,getRowHeight:V,onScroll:j},Wt=o(f)+be,re={cache:ne,class:a.e("right"),columns:o(s),data:ft,estimatedRowHeight:ce,rightTableRef:x,rowHeight:De,bodyWidth:Wt,headerWidth:Wt,headerHeight:fe,height:Pt,rowKey:Te,scrollbarAlwaysOn:He,scrollbarStartGap:2,scrollbarEndGap:be,width:Wt,style:`--${o(a.namespace)}-table-scrollbar-size: ${be}px`,useIsScrolling:nt,getRowHeight:V,onScroll:j},J=o(l),ie={ns:a,depthMap:o(v),columnsStyles:J,expandColumnKey:te,expandedRowKeys:o(m),estimatedRowHeight:ce,hasFixedColumns:o(p),rowProps:ke,rowClass:Ye,rowKey:Te,rowEventHandlers:$e,onRowHovered:z,onRowExpanded:F,onRowHeightChange:B},Y={cellProps:oe,expandColumnKey:te,indentSize:Ge,iconSize:at,rowKey:Te,expandedRowKeys:o(m),ns:a},ye={ns:a,headerClass:xe,headerProps:me,columnsStyles:J},Fe={ns:a,sortBy:we,sortState:Le,headerCellProps:le,onColumnSorted:D},lt={row:Jt=>q(ZW,tt(Jt,ie),{row:t.row,cell:Mt=>{let ln;return t.cell?q(np,tt(Mt,Y,{style:J[Mt.column.key]}),qo(ln=t.cell(Mt))?ln:{default:()=>[ln]}):q(np,tt(Mt,Y,{style:J[Mt.column.key]}),null)}}),header:Jt=>q(rj,tt(Jt,ye),{header:t.header,cell:Mt=>{let ln;return t["header-cell"]?q(ap,tt(Mt,Fe,{style:J[Mt.column.key]}),qo(ln=t["header-cell"](Mt))?ln:{default:()=>[ln]}):q(ap,tt(Mt,Fe,{style:J[Mt.column.key]}),null)}})},Nt=[e.class,a.b(),a.e("root"),{[a.is("dynamic")]:o(w)}],Ut={class:a.e("footer"),style:o(P)};return q("div",{class:Nt,style:o(I)},[q(RW,Tt,qo(lt)?lt:{default:()=>[lt]}),q(DW,mt,qo(lt)?lt:{default:()=>[lt]}),q(WW,re,qo(lt)?lt:{default:()=>[lt]}),t.footer&&q(dj,Ut,{default:t.footer}),o(L)&&q(fj,{class:a.e("empty"),style:o(O)},{default:t.empty}),t.overlay&&q(pj,{class:a.e("overlay")},{default:t.overlay})])}}});var mj=hj;const gj=pe({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:X(Function)}}),yj=e=>{const t=A(),n=A(0),a=A(0);let l;return Xe(()=>{l=At(t,([r])=>{const{width:s,height:i}=r.contentRect,{paddingLeft:u,paddingRight:c,paddingTop:d,paddingBottom:f}=getComputedStyle(r.target),h=Number.parseInt(u)||0,v=Number.parseInt(c)||0,m=Number.parseInt(d)||0,p=Number.parseInt(f)||0;n.value=s-h-v,a.value=i-m-p}).stop}),$t(()=>{l==null||l()}),ue([n,a],([r,s])=>{var i;(i=e.onResize)==null||i.call(e,{width:r,height:s})}),{sizer:t,width:n,height:a}},_j=T({name:"ElAutoResizer",props:gj,setup(e,{slots:t}){const n=de("auto-resizer"),{height:a,width:l,sizer:r}=yj(e),s={width:"100%",height:"100%"};return()=>{var i;return q("div",{ref:r,class:n.b(),style:s},[(i=t.default)==null?void 0:i.call(t,{height:a.value,width:l.value})])}}});var bj=_j;const wj=We(mj),Cj=We(bj),Ai=Symbol("tabsRootContextKey"),Sj=pe({tabs:{type:X(Array),default:()=>Vt([])}}),Um="ElTabBar",kj=T({name:Um}),Ej=T({...kj,props:Sj,setup(e,{expose:t}){const n=e,a=et(),l=Se(Ai);l||Gt(Um,"");const r=de("tabs"),s=A(),i=A(),u=()=>{let v=0,m=0;const p=["top","bottom"].includes(l.props.tabPosition)?"width":"height",y=p==="width"?"x":"y",g=y==="x"?"left":"top";return n.tabs.every(x=>{var w,b;const S=(b=(w=a.parent)==null?void 0:w.refs)==null?void 0:b[`tab-${x.uid}`];if(!S)return!1;if(!x.active)return!0;v=S[`offset${ya(g)}`],m=S[`client${ya(p)}`];const E=window.getComputedStyle(S);return p==="width"&&(m-=Number.parseFloat(E.paddingLeft)+Number.parseFloat(E.paddingRight),v+=Number.parseFloat(E.paddingLeft)),!1}),{[p]:`${m}px`,transform:`translate${ya(y)}(${v}px)`}},c=()=>i.value=u(),d=[],f=()=>{var v;d.forEach(p=>p.stop()),d.length=0;const m=(v=a.parent)==null?void 0:v.refs;if(m){for(const p in m)if(p.startsWith("tab-")){const y=m[p];y&&d.push(At(y,c))}}};ue(()=>n.tabs,async()=>{await Ne(),c(),f()},{immediate:!0});const h=At(s,()=>c());return $t(()=>{d.forEach(v=>v.stop()),d.length=0,h.stop()}),t({ref:s,update:c}),(v,m)=>(_(),M("div",{ref_key:"barRef",ref:s,class:$([o(r).e("active-bar"),o(r).is(o(l).props.tabPosition)]),style:Oe(i.value)},null,6))}});var xj=ve(Ej,[["__file","tab-bar.vue"]]);const Mj=pe({panes:{type:X(Array),default:()=>Vt([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),$j={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},lp="ElTabNav",Tj=T({name:lp,props:Mj,emits:$j,setup(e,{expose:t,emit:n}){const a=Se(Ai);a||Gt(lp,"");const l=de("tabs"),r=U_(),s=ob(),i=A(),u=A(),c=A(),d=A(),f=A(!1),h=A(0),v=A(!1),m=A(!0),p=C(()=>["top","bottom"].includes(a.props.tabPosition)?"width":"height"),y=C(()=>({transform:`translate${p.value==="width"?"X":"Y"}(-${h.value}px)`})),g=()=>{if(!i.value)return;const I=i.value[`offset${ya(p.value)}`],N=h.value;if(!N)return;const P=N>I?N-I:0;h.value=P},x=()=>{if(!i.value||!u.value)return;const I=u.value[`offset${ya(p.value)}`],N=i.value[`offset${ya(p.value)}`],P=h.value;if(I-P<=N)return;const L=I-P>N*2?P+N:I-N;h.value=L},w=async()=>{const I=u.value;if(!f.value||!c.value||!i.value||!I)return;await Ne();const N=c.value.querySelector(".is-active");if(!N)return;const P=i.value,L=["top","bottom"].includes(a.props.tabPosition),R=N.getBoundingClientRect(),K=P.getBoundingClientRect(),U=L?I.offsetWidth-K.width:I.offsetHeight-K.height,H=h.value;let V=H;L?(R.leftK.right&&(V=H+R.right-K.right)):(R.topK.bottom&&(V=H+(R.bottom-K.bottom))),V=Math.max(V,0),h.value=Math.min(V,U)},b=()=>{var I;if(!u.value||!i.value)return;e.stretch&&((I=d.value)==null||I.update());const N=u.value[`offset${ya(p.value)}`],P=i.value[`offset${ya(p.value)}`],L=h.value;P0&&(h.value=0))},S=I=>{let N=0;switch(I.code){case Ce.left:case Ce.up:N=-1;break;case Ce.right:case Ce.down:N=1;break;default:return}const P=Array.from(I.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)"));let R=P.indexOf(I.target)+N;R<0?R=P.length-1:R>=P.length&&(R=0),P[R].focus({preventScroll:!0}),P[R].click(),E()},E=()=>{m.value&&(v.value=!0)},O=()=>v.value=!1;return ue(r,I=>{I==="hidden"?m.value=!1:I==="visible"&&setTimeout(()=>m.value=!0,50)}),ue(s,I=>{I?setTimeout(()=>m.value=!0,50):m.value=!1}),At(c,b),Xe(()=>setTimeout(()=>w(),0)),Wa(()=>b()),t({scrollToActiveTab:w,removeFocus:O}),()=>{const I=f.value?[q("span",{class:[l.e("nav-prev"),l.is("disabled",!f.value.prev)],onClick:g},[q(Me,null,{default:()=>[q(La,null,null)]})]),q("span",{class:[l.e("nav-next"),l.is("disabled",!f.value.next)],onClick:x},[q(Me,null,{default:()=>[q(En,null,null)]})])]:null,N=e.panes.map((P,L)=>{var R,K,U,H;const V=P.uid,D=P.props.disabled,B=(K=(R=P.props.name)!=null?R:P.index)!=null?K:`${L}`,z=!D&&(P.isClosable||e.editable);P.index=`${L}`;const F=z?q(Me,{class:"is-icon-close",onClick:j=>n("tabRemove",P,j)},{default:()=>[q(Xn,null,null)]}):null,W=((H=(U=P.slots).label)==null?void 0:H.call(U))||P.props.label,Z=!D&&P.active?0:-1;return q("div",{ref:`tab-${V}`,class:[l.e("item"),l.is(a.props.tabPosition),l.is("active",P.active),l.is("disabled",D),l.is("closable",z),l.is("focus",v.value)],id:`tab-${B}`,key:`tab-${V}`,"aria-controls":`pane-${B}`,role:"tab","aria-selected":P.active,tabindex:Z,onFocus:()=>E(),onBlur:()=>O(),onClick:j=>{O(),n("tabClick",P,B,j)},onKeydown:j=>{z&&(j.code===Ce.delete||j.code===Ce.backspace)&&n("tabRemove",P,j)}},[W,F])});return q("div",{ref:c,class:[l.e("nav-wrap"),l.is("scrollable",!!f.value),l.is(a.props.tabPosition)]},[I,q("div",{class:l.e("nav-scroll"),ref:i},[q("div",{class:[l.e("nav"),l.is(a.props.tabPosition),l.is("stretch",e.stretch&&["top","bottom"].includes(a.props.tabPosition))],ref:u,style:y.value,role:"tablist",onKeydown:S},[e.type?null:q(xj,{ref:d,tabs:[...e.panes]},null),N])])])}}}),Oj=pe({type:{type:String,values:["card","border-card",""],default:""},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:X(Function),default:()=>!0},stretch:Boolean}),gu=e=>Ve(e)||Ie(e),Nj={[Ue]:e=>gu(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>gu(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>gu(e),tabAdd:()=>!0},Ij=T({name:"ElTabs",props:Oj,emits:Nj,setup(e,{emit:t,slots:n,expose:a}){var l;const r=de("tabs"),s=C(()=>["left","right"].includes(e.tabPosition)),{children:i,addChild:u,removeChild:c}=$d(et(),"ElTabPane"),d=A(),f=A((l=e.modelValue)!=null?l:"0"),h=async(g,x=!1)=>{var w,b;if(!(f.value===g||vt(g)))try{let S;if(e.beforeLeave){const E=e.beforeLeave(g,f.value);S=E instanceof Promise?await E:E}else S=!0;S!==!1&&(f.value=g,x&&(t(Ue,g),t("tabChange",g)),(b=(w=d.value)==null?void 0:w.removeFocus)==null||b.call(w))}catch{}},v=(g,x,w)=>{g.props.disabled||(h(x,!0),t("tabClick",g,w))},m=(g,x)=>{g.props.disabled||vt(g.props.name)||(x.stopPropagation(),t("edit",g.props.name,"remove"),t("tabRemove",g.props.name))},p=()=>{t("edit",void 0,"add"),t("tabAdd")};ue(()=>e.modelValue,g=>h(g)),ue(f,async()=>{var g;await Ne(),(g=d.value)==null||g.scrollToActiveTab()}),it(Ai,{props:e,currentName:f,registerPane:g=>{i.value.push(g)},sortPane:u,unregisterPane:c}),a({currentName:f});const y=({render:g})=>g();return()=>{const g=n["add-icon"],x=e.editable||e.addable?q("div",{class:[r.e("new-tab"),s.value&&r.e("new-tab-vertical")],tabindex:"0",onClick:p,onKeydown:S=>{[Ce.enter,Ce.numpadEnter].includes(S.code)&&p()}},[g?Q(n,"add-icon"):q(Me,{class:r.is("icon-plus")},{default:()=>[q(id,null,null)]})]):null,w=q("div",{class:[r.e("header"),s.value&&r.e("header-vertical"),r.is(e.tabPosition)]},[q(y,{render:()=>{const S=i.value.some(E=>E.slots.label);return q(Tj,{ref:d,currentName:f.value,editable:e.editable,type:e.type,panes:i.value,stretch:e.stretch,onTabClick:v,onTabRemove:m},{$stable:!S})}},null),x]),b=q("div",{class:r.e("content")},[Q(n,"default")]);return q("div",{class:[r.b(),r.m(e.tabPosition),{[r.m("card")]:e.type==="card",[r.m("border-card")]:e.type==="border-card"}]},[b,w])}}});var Pj=Ij;const zj=pe({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),Ym="ElTabPane",Aj=T({name:Ym}),Vj=T({...Aj,props:zj,setup(e){const t=e,n=et(),a=Xt(),l=Se(Ai);l||Gt(Ym,"usage: ");const r=de("tab-pane"),s=A(),i=C(()=>t.closable||l.props.closable),u=Nu(()=>{var v;return l.currentName.value===((v=t.name)!=null?v:s.value)}),c=A(u.value),d=C(()=>{var v;return(v=t.name)!=null?v:s.value}),f=Nu(()=>!t.lazy||c.value||u.value);ue(u,v=>{v&&(c.value=!0)});const h=_t({uid:n.uid,slots:a,props:t,paneName:d,active:u,index:s,isClosable:i});return l.registerPane(h),Xe(()=>{l.sortPane(h)}),Mo(()=>{l.unregisterPane(h.uid)}),(v,m)=>o(f)?qe((_(),M("div",{key:0,id:`pane-${o(d)}`,class:$(o(r).b()),role:"tabpanel","aria-hidden":!o(u),"aria-labelledby":`tab-${o(d)}`},[Q(v.$slots,"default")],10,["id","aria-hidden","aria-labelledby"])),[[pt,o(u)]]):ee("v-if",!0)}});var Gm=ve(Vj,[["__file","tab-pane.vue"]]);const Lj=We(Pj,{TabPane:Gm}),Rj=Lt(Gm),Bj=pe({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:xa,default:""},truncated:Boolean,lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}}),Hj=T({name:"ElText"}),Dj=T({...Hj,props:Bj,setup(e){const t=e,n=A(),a=jt(),l=de("text"),r=C(()=>[l.b(),l.m(t.type),l.m(a.value),l.is("truncated",t.truncated),l.is("line-clamp",!vt(t.lineClamp))]),s=Ka().title,i=()=>{var u,c,d,f,h;if(s)return;let v=!1;const m=((u=n.value)==null?void 0:u.textContent)||"";if(t.truncated){const p=(c=n.value)==null?void 0:c.offsetWidth,y=(d=n.value)==null?void 0:d.scrollWidth;p&&y&&y>p&&(v=!0)}else if(!vt(t.lineClamp)){const p=(f=n.value)==null?void 0:f.offsetHeight,y=(h=n.value)==null?void 0:h.scrollHeight;p&&y&&y>p&&(v=!0)}v?n.value.setAttribute("title",m):n.value.removeAttribute("title")};return Xe(i),Wa(i),(u,c)=>(_(),ae(Qe(u.tag),{ref_key:"textRef",ref:n,class:$(o(r)),style:Oe({"-webkit-line-clamp":u.lineClamp})},{default:G(()=>[Q(u.$slots,"default")]),_:3},8,["class","style"]))}});var Fj=ve(Dj,[["__file","text.vue"]]);const Kj=We(Fj),Wj=pe({format:{type:String,default:"HH:mm"},modelValue:String,disabled:Boolean,editable:{type:Boolean,default:!0},effect:{type:X(String),default:"light"},clearable:{type:Boolean,default:!0},size:qt,placeholder:String,start:{type:String,default:"09:00"},end:{type:String,default:"18:00"},step:{type:String,default:"00:30"},minTime:String,maxTime:String,includeEndTime:{type:Boolean,default:!1},name:String,prefixIcon:{type:X([String,Object]),default:()=>sd},clearIcon:{type:X([String,Object]),default:()=>$a},...Po}),Va=e=>{const t=(e||"").split(":");if(t.length>=2){let n=Number.parseInt(t[0],10);const a=Number.parseInt(t[1],10),l=e.toUpperCase();return l.includes("AM")&&n===12?n=0:l.includes("PM")&&n!==12&&(n+=12),{hours:n,minutes:a}}return null},yu=(e,t)=>{const n=Va(e);if(!n)return-1;const a=Va(t);if(!a)return-1;const l=n.minutes+n.hours*60,r=a.minutes+a.hours*60;return l===r?0:l>r?1:-1},op=e=>`${e}`.padStart(2,"0"),Zl=e=>`${op(e.hours)}:${op(e.minutes)}`,jj=(e,t)=>{const n=Va(e);if(!n)return"";const a=Va(t);if(!a)return"";const l={hours:n.hours,minutes:n.minutes};return l.minutes+=a.minutes,l.hours+=a.hours,l.hours+=Math.floor(l.minutes/60),l.minutes=l.minutes%60,Zl(l)},qj=T({name:"ElTimeSelect"}),Uj=T({...qj,props:Wj,emits:["change","blur","focus","clear","update:modelValue"],setup(e,{expose:t}){const n=e;Be.extend(Id);const{Option:a}=Pl,l=de("input"),r=A(),s=gn(),{lang:i}=ct(),u=C(()=>n.modelValue),c=C(()=>{const g=Va(n.start);return g?Zl(g):null}),d=C(()=>{const g=Va(n.end);return g?Zl(g):null}),f=C(()=>{const g=Va(n.step);return g?Zl(g):null}),h=C(()=>{const g=Va(n.minTime||"");return g?Zl(g):null}),v=C(()=>{const g=Va(n.maxTime||"");return g?Zl(g):null}),m=C(()=>{var g;const x=[],w=(b,S)=>{x.push({value:b,disabled:yu(S,h.value||"-1:-1")<=0||yu(S,v.value||"100:100")>=0})};if(n.start&&n.end&&n.step){let b=c.value,S;for(;b&&d.value&&yu(b,d.value)<=0;)S=Be(b,"HH:mm").locale(i.value).format(n.format),w(S,b),b=jj(b,f.value);if(n.includeEndTime&&d.value&&((g=x[x.length-1])==null?void 0:g.value)!==d.value){const E=Be(d.value,"HH:mm").locale(i.value).format(n.format);w(E,d.value)}}return x});return t({blur:()=>{var g,x;(x=(g=r.value)==null?void 0:g.blur)==null||x.call(g)},focus:()=>{var g,x;(x=(g=r.value)==null?void 0:g.focus)==null||x.call(g)}}),(g,x)=>(_(),ae(o(Pl),{ref_key:"select",ref:r,"model-value":o(u),disabled:o(s),clearable:g.clearable,"clear-icon":g.clearIcon,size:g.size,effect:g.effect,placeholder:g.placeholder,"default-first-option":"",filterable:g.editable,"empty-values":g.emptyValues,"value-on-clear":g.valueOnClear,"onUpdate:modelValue":w=>g.$emit("update:modelValue",w),onChange:w=>g.$emit("change",w),onBlur:w=>g.$emit("blur",w),onFocus:w=>g.$emit("focus",w),onClear:()=>g.$emit("clear")},{prefix:G(()=>[g.prefixIcon?(_(),ae(o(Me),{key:0,class:$(o(l).e("prefix-icon"))},{default:G(()=>[(_(),ae(Qe(g.prefixIcon)))]),_:1},8,["class"])):ee("v-if",!0)]),default:G(()=>[(_(!0),M(ze,null,rt(o(m),w=>(_(),ae(o(a),{key:w.value,label:w.value,value:w.value,disabled:w.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable","empty-values","value-on-clear","onUpdate:modelValue","onChange","onBlur","onFocus","onClear"]))}});var Yj=ve(Uj,[["__file","time-select.vue"]]);const Gj=We(Yj),Xj=T({name:"ElTimeline",setup(e,{slots:t}){const n=de("timeline");return it("timeline",t),()=>Pe("ul",{class:[n.b()]},[Q(t,"default")])}}),Zj=pe({timestamp:{type:String,default:""},hideTimestamp:Boolean,center:Boolean,placement:{type:String,values:["top","bottom"],default:"bottom"},type:{type:String,values:["primary","success","warning","danger","info"],default:""},color:{type:String,default:""},size:{type:String,values:["normal","large"],default:"normal"},icon:{type:St},hollow:Boolean}),Jj=T({name:"ElTimelineItem"}),Qj=T({...Jj,props:Zj,setup(e){const t=e,n=de("timeline-item"),a=C(()=>[n.e("node"),n.em("node",t.size||""),n.em("node",t.type||""),n.is("hollow",t.hollow)]);return(l,r)=>(_(),M("li",{class:$([o(n).b(),{[o(n).e("center")]:l.center}])},[k("div",{class:$(o(n).e("tail"))},null,2),l.$slots.dot?ee("v-if",!0):(_(),M("div",{key:0,class:$(o(a)),style:Oe({backgroundColor:l.color})},[l.icon?(_(),ae(o(Me),{key:0,class:$(o(n).e("icon"))},{default:G(()=>[(_(),ae(Qe(l.icon)))]),_:1},8,["class"])):ee("v-if",!0)],6)),l.$slots.dot?(_(),M("div",{key:1,class:$(o(n).e("dot"))},[Q(l.$slots,"dot")],2)):ee("v-if",!0),k("div",{class:$(o(n).e("wrapper"))},[!l.hideTimestamp&&l.placement==="top"?(_(),M("div",{key:0,class:$([o(n).e("timestamp"),o(n).is("top")])},he(l.timestamp),3)):ee("v-if",!0),k("div",{class:$(o(n).e("content"))},[Q(l.$slots,"default")],2),!l.hideTimestamp&&l.placement==="bottom"?(_(),M("div",{key:1,class:$([o(n).e("timestamp"),o(n).is("bottom")])},he(l.timestamp),3)):ee("v-if",!0)],2)],2))}});var Xm=ve(Qj,[["__file","timeline-item.vue"]]);const eq=We(Xj,{TimelineItem:Xm}),tq=Lt(Xm),Zm=pe({nowrap:Boolean});var Jm=(e=>(e.top="top",e.bottom="bottom",e.left="left",e.right="right",e))(Jm||{});const nq=Object.values(Jm),cf=pe({width:{type:Number,default:10},height:{type:Number,default:10},style:{type:X(Object),default:null}}),aq=pe({side:{type:X(String),values:nq,required:!0}}),lq=["absolute","fixed"],oq=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],df=pe({arrowPadding:{type:X(Number),default:5},effect:{type:X(String),default:"light"},contentClass:String,placement:{type:X(String),values:oq,default:"bottom"},reference:{type:X(Object),default:null},offset:{type:Number,default:8},strategy:{type:X(String),values:lq,default:"absolute"},showArrow:Boolean,...rn(["ariaLabel"])}),ff=pe({delayDuration:{type:Number,default:300},defaultOpen:Boolean,open:{type:Boolean,default:void 0},onOpenChange:{type:X(Function)},"onUpdate:open":{type:X(Function)}}),Ul={type:X(Function)},pf=pe({onBlur:Ul,onClick:Ul,onFocus:Ul,onMouseDown:Ul,onMouseEnter:Ul,onMouseLeave:Ul}),rq=pe({...ff,...cf,...pf,...df,alwaysOn:Boolean,fullTransition:Boolean,transitionProps:{type:X(Object),default:null},teleported:Boolean,to:{type:X(String),default:"body"}}),Vi=Symbol("tooltipV2"),Qm=Symbol("tooltipV2Content"),_u="tooltip_v2.open",sq=T({name:"ElTooltipV2Root"}),iq=T({...sq,props:ff,setup(e,{expose:t}){const n=e,a=A(n.defaultOpen),l=A(null),r=C({get:()=>ua(n.open)?a.value:n.open,set:y=>{var g;a.value=y,(g=n["onUpdate:open"])==null||g.call(n,y)}}),s=C(()=>Ie(n.delayDuration)&&n.delayDuration>0),{start:i,stop:u}=Nl(()=>{r.value=!0},C(()=>n.delayDuration),{immediate:!1}),c=de("tooltip-v2"),d=on(),f=()=>{u(),r.value=!0},h=()=>{o(s)?i():f()},v=f,m=()=>{u(),r.value=!1};return ue(r,y=>{var g;y&&(document.dispatchEvent(new CustomEvent(_u)),v()),(g=n.onOpenChange)==null||g.call(n,y)}),Xe(()=>{document.addEventListener(_u,m)}),$t(()=>{u(),document.removeEventListener(_u,m)}),it(Vi,{contentId:d,triggerRef:l,ns:c,onClose:m,onDelayOpen:h,onOpen:v}),t({onOpen:v,onClose:m}),(y,g)=>Q(y.$slots,"default",{open:o(r)})}});var uq=ve(iq,[["__file","root.vue"]]);const cq=T({name:"ElTooltipV2Arrow"}),dq=T({...cq,props:{...cf,...aq},setup(e){const t=e,{ns:n}=Se(Vi),{arrowRef:a}=Se(Qm),l=C(()=>{const{style:r,width:s,height:i}=t,u=n.namespace.value;return{[`--${u}-tooltip-v2-arrow-width`]:`${s}px`,[`--${u}-tooltip-v2-arrow-height`]:`${i}px`,[`--${u}-tooltip-v2-arrow-border-width`]:`${s/2}px`,[`--${u}-tooltip-v2-arrow-cover-width`]:s/2-1,...r||{}}});return(r,s)=>(_(),M("span",{ref_key:"arrowRef",ref:a,style:Oe(o(l)),class:$(o(n).e("arrow"))},null,6))}});var rp=ve(dq,[["__file","arrow.vue"]]);const Co=Math.min,$l=Math.max,ei=Math.round,ls=Math.floor,wa=e=>({x:e,y:e}),fq={left:"right",right:"left",bottom:"top",top:"bottom"},pq={start:"end",end:"start"};function Cc(e,t,n){return $l(e,Co(t,n))}function Br(e,t){return typeof e=="function"?e(t):e}function Al(e){return e.split("-")[0]}function Hr(e){return e.split("-")[1]}function e4(e){return e==="x"?"y":"x"}function vf(e){return e==="y"?"height":"width"}function So(e){return["top","bottom"].includes(Al(e))?"y":"x"}function hf(e){return e4(So(e))}function vq(e,t,n){n===void 0&&(n=!1);const a=Hr(e),l=hf(e),r=vf(l);let s=l==="x"?a===(n?"end":"start")?"right":"left":a==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(s=ti(s)),[s,ti(s)]}function hq(e){const t=ti(e);return[Sc(e),t,Sc(t)]}function Sc(e){return e.replace(/start|end/g,t=>pq[t])}function mq(e,t,n){const a=["left","right"],l=["right","left"],r=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?l:a:t?a:l;case"left":case"right":return t?r:s;default:return[]}}function gq(e,t,n,a){const l=Hr(e);let r=mq(Al(e),n==="start",a);return l&&(r=r.map(s=>s+"-"+l),t&&(r=r.concat(r.map(Sc)))),r}function ti(e){return e.replace(/left|right|bottom|top/g,t=>fq[t])}function yq(e){return{top:0,right:0,bottom:0,left:0,...e}}function t4(e){return typeof e!="number"?yq(e):{top:e,right:e,bottom:e,left:e}}function ni(e){const{x:t,y:n,width:a,height:l}=e;return{width:a,height:l,top:n,left:t,right:t+a,bottom:n+l,x:t,y:n}}function sp(e,t,n){let{reference:a,floating:l}=e;const r=So(t),s=hf(t),i=vf(s),u=Al(t),c=r==="y",d=a.x+a.width/2-l.width/2,f=a.y+a.height/2-l.height/2,h=a[i]/2-l[i]/2;let v;switch(u){case"top":v={x:d,y:a.y-l.height};break;case"bottom":v={x:d,y:a.y+a.height};break;case"right":v={x:a.x+a.width,y:f};break;case"left":v={x:a.x-l.width,y:f};break;default:v={x:a.x,y:a.y}}switch(Hr(t)){case"start":v[s]-=h*(n&&c?-1:1);break;case"end":v[s]+=h*(n&&c?-1:1);break}return v}const _q=async(e,t,n)=>{const{placement:a="bottom",strategy:l="absolute",middleware:r=[],platform:s}=n,i=r.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:l}),{x:d,y:f}=sp(c,a,u),h=a,v={},m=0;for(let p=0;p({name:"arrow",options:e,async fn(t){const{x:n,y:a,placement:l,rects:r,platform:s,elements:i,middlewareData:u}=t,{element:c,padding:d=0}=Br(e,t)||{};if(c==null)return{};const f=t4(d),h={x:n,y:a},v=hf(l),m=vf(v),p=await s.getDimensions(c),y=v==="y",g=y?"top":"left",x=y?"bottom":"right",w=y?"clientHeight":"clientWidth",b=r.reference[m]+r.reference[v]-h[v]-r.floating[m],S=h[v]-r.reference[v],E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let O=E?E[w]:0;(!O||!await(s.isElement==null?void 0:s.isElement(E)))&&(O=i.floating[w]||r.floating[m]);const I=b/2-S/2,N=O/2-p[m]/2-1,P=Co(f[g],N),L=Co(f[x],N),R=P,K=O-p[m]-L,U=O/2-p[m]/2+I,H=Cc(R,U,K),V=!u.arrow&&Hr(l)!=null&&U!==H&&r.reference[m]/2-(UU<=0)){var L,R;const U=(((L=r.flip)==null?void 0:L.index)||0)+1,H=O[U];if(H)return{data:{index:U,overflows:P},reset:{placement:H}};let V=(R=P.filter(D=>D.overflows[0]<=0).sort((D,B)=>D.overflows[1]-B.overflows[1])[0])==null?void 0:R.placement;if(!V)switch(v){case"bestFit":{var K;const D=(K=P.filter(B=>{if(E){const z=So(B.placement);return z===x||z==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(z=>z>0).reduce((z,F)=>z+F,0)]).sort((B,z)=>B[1]-z[1])[0])==null?void 0:K[0];D&&(V=D);break}case"initialPlacement":V=i;break}if(l!==V)return{reset:{placement:V}}}return{}}}};async function Cq(e,t){const{placement:n,platform:a,elements:l}=e,r=await(a.isRTL==null?void 0:a.isRTL(l.floating)),s=Al(n),i=Hr(n),u=So(n)==="y",c=["left","top"].includes(s)?-1:1,d=r&&u?-1:1,f=Br(t,e);let{mainAxis:h,crossAxis:v,alignmentAxis:m}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return i&&typeof m=="number"&&(v=i==="end"?m*-1:m),u?{x:v*d,y:h*c}:{x:h*c,y:v*d}}const Sq=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,a;const{x:l,y:r,placement:s,middlewareData:i}=t,u=await Cq(t,e);return s===((n=i.offset)==null?void 0:n.placement)&&(a=i.arrow)!=null&&a.alignmentOffset?{}:{x:l+u.x,y:r+u.y,data:{...u,placement:s}}}}},kq=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:a,placement:l}=t,{mainAxis:r=!0,crossAxis:s=!1,limiter:i={fn:y=>{let{x:g,y:x}=y;return{x:g,y:x}}},...u}=Br(e,t),c={x:n,y:a},d=await mf(t,u),f=So(Al(l)),h=e4(f);let v=c[h],m=c[f];if(r){const y=h==="y"?"top":"left",g=h==="y"?"bottom":"right",x=v+d[y],w=v-d[g];v=Cc(x,v,w)}if(s){const y=f==="y"?"top":"left",g=f==="y"?"bottom":"right",x=m+d[y],w=m-d[g];m=Cc(x,m,w)}const p=i.fn({...t,[h]:v,[f]:m});return{...p,data:{x:p.x-n,y:p.y-a,enabled:{[h]:r,[f]:s}}}}}};function Li(){return typeof window<"u"}function Bo(e){return n4(e)?(e.nodeName||"").toLowerCase():"#document"}function Fn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Na(e){var t;return(t=(n4(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function n4(e){return Li()?e instanceof Node||e instanceof Fn(e).Node:!1}function da(e){return Li()?e instanceof Element||e instanceof Fn(e).Element:!1}function Ea(e){return Li()?e instanceof HTMLElement||e instanceof Fn(e).HTMLElement:!1}function ip(e){return!Li()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Fn(e).ShadowRoot}function Dr(e){const{overflow:t,overflowX:n,overflowY:a,display:l}=fa(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+n)&&!["inline","contents"].includes(l)}function Eq(e){return["table","td","th"].includes(Bo(e))}function Ri(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function gf(e){const t=yf(),n=da(e)?fa(e):e;return["transform","translate","scale","rotate","perspective"].some(a=>n[a]?n[a]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(a=>(n.willChange||"").includes(a))||["paint","layout","strict","content"].some(a=>(n.contain||"").includes(a))}function xq(e){let t=ul(e);for(;Ea(t)&&!ko(t);){if(gf(t))return t;if(Ri(t))return null;t=ul(t)}return null}function yf(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ko(e){return["html","body","#document"].includes(Bo(e))}function fa(e){return Fn(e).getComputedStyle(e)}function Bi(e){return da(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ul(e){if(Bo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ip(e)&&e.host||Na(e);return ip(t)?t.host:t}function a4(e){const t=ul(e);return ko(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ea(t)&&Dr(t)?t:a4(t)}function kr(e,t,n){var a;t===void 0&&(t=[]),n===void 0&&(n=!0);const l=a4(e),r=l===((a=e.ownerDocument)==null?void 0:a.body),s=Fn(l);if(r){const i=kc(s);return t.concat(s,s.visualViewport||[],Dr(l)?l:[],i&&n?kr(i):[])}return t.concat(l,kr(l,[],n))}function kc(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function l4(e){const t=fa(e);let n=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const l=Ea(e),r=l?e.offsetWidth:n,s=l?e.offsetHeight:a,i=ei(n)!==r||ei(a)!==s;return i&&(n=r,a=s),{width:n,height:a,$:i}}function _f(e){return da(e)?e:e.contextElement}function ro(e){const t=_f(e);if(!Ea(t))return wa(1);const n=t.getBoundingClientRect(),{width:a,height:l,$:r}=l4(t);let s=(r?ei(n.width):n.width)/a,i=(r?ei(n.height):n.height)/l;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}const Mq=wa(0);function o4(e){const t=Fn(e);return!yf()||!t.visualViewport?Mq:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function $q(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Fn(e)?!1:t}function Vl(e,t,n,a){t===void 0&&(t=!1),n===void 0&&(n=!1);const l=e.getBoundingClientRect(),r=_f(e);let s=wa(1);t&&(a?da(a)&&(s=ro(a)):s=ro(e));const i=$q(r,n,a)?o4(r):wa(0);let u=(l.left+i.x)/s.x,c=(l.top+i.y)/s.y,d=l.width/s.x,f=l.height/s.y;if(r){const h=Fn(r),v=a&&da(a)?Fn(a):a;let m=h,p=kc(m);for(;p&&a&&v!==m;){const y=ro(p),g=p.getBoundingClientRect(),x=fa(p),w=g.left+(p.clientLeft+parseFloat(x.paddingLeft))*y.x,b=g.top+(p.clientTop+parseFloat(x.paddingTop))*y.y;u*=y.x,c*=y.y,d*=y.x,f*=y.y,u+=w,c+=b,m=Fn(p),p=kc(m)}}return ni({width:d,height:f,x:u,y:c})}function bf(e,t){const n=Bi(e).scrollLeft;return t?t.left+n:Vl(Na(e)).left+n}function r4(e,t,n){n===void 0&&(n=!1);const a=e.getBoundingClientRect(),l=a.left+t.scrollLeft-(n?0:bf(e,a)),r=a.top+t.scrollTop;return{x:l,y:r}}function Tq(e){let{elements:t,rect:n,offsetParent:a,strategy:l}=e;const r=l==="fixed",s=Na(a),i=t?Ri(t.floating):!1;if(a===s||i&&r)return n;let u={scrollLeft:0,scrollTop:0},c=wa(1);const d=wa(0),f=Ea(a);if((f||!f&&!r)&&((Bo(a)!=="body"||Dr(s))&&(u=Bi(a)),Ea(a))){const v=Vl(a);c=ro(a),d.x=v.x+a.clientLeft,d.y=v.y+a.clientTop}const h=s&&!f&&!r?r4(s,u,!0):wa(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+d.x+h.x,y:n.y*c.y-u.scrollTop*c.y+d.y+h.y}}function Oq(e){return Array.from(e.getClientRects())}function Nq(e){const t=Na(e),n=Bi(e),a=e.ownerDocument.body,l=$l(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),r=$l(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight);let s=-n.scrollLeft+bf(e);const i=-n.scrollTop;return fa(a).direction==="rtl"&&(s+=$l(t.clientWidth,a.clientWidth)-l),{width:l,height:r,x:s,y:i}}function Iq(e,t){const n=Fn(e),a=Na(e),l=n.visualViewport;let r=a.clientWidth,s=a.clientHeight,i=0,u=0;if(l){r=l.width,s=l.height;const c=yf();(!c||c&&t==="fixed")&&(i=l.offsetLeft,u=l.offsetTop)}return{width:r,height:s,x:i,y:u}}function Pq(e,t){const n=Vl(e,!0,t==="fixed"),a=n.top+e.clientTop,l=n.left+e.clientLeft,r=Ea(e)?ro(e):wa(1),s=e.clientWidth*r.x,i=e.clientHeight*r.y,u=l*r.x,c=a*r.y;return{width:s,height:i,x:u,y:c}}function up(e,t,n){let a;if(t==="viewport")a=Iq(e,n);else if(t==="document")a=Nq(Na(e));else if(da(t))a=Pq(t,n);else{const l=o4(e);a={x:t.x-l.x,y:t.y-l.y,width:t.width,height:t.height}}return ni(a)}function s4(e,t){const n=ul(e);return n===t||!da(n)||ko(n)?!1:fa(n).position==="fixed"||s4(n,t)}function zq(e,t){const n=t.get(e);if(n)return n;let a=kr(e,[],!1).filter(i=>da(i)&&Bo(i)!=="body"),l=null;const r=fa(e).position==="fixed";let s=r?ul(e):e;for(;da(s)&&!ko(s);){const i=fa(s),u=gf(s);!u&&i.position==="fixed"&&(l=null),(r?!u&&!l:!u&&i.position==="static"&&!!l&&["absolute","fixed"].includes(l.position)||Dr(s)&&!u&&s4(e,s))?a=a.filter(d=>d!==s):l=i,s=ul(s)}return t.set(e,a),a}function Aq(e){let{element:t,boundary:n,rootBoundary:a,strategy:l}=e;const s=[...n==="clippingAncestors"?Ri(t)?[]:zq(t,this._c):[].concat(n),a],i=s[0],u=s.reduce((c,d)=>{const f=up(t,d,l);return c.top=$l(f.top,c.top),c.right=Co(f.right,c.right),c.bottom=Co(f.bottom,c.bottom),c.left=$l(f.left,c.left),c},up(t,i,l));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function Vq(e){const{width:t,height:n}=l4(e);return{width:t,height:n}}function Lq(e,t,n){const a=Ea(t),l=Na(t),r=n==="fixed",s=Vl(e,!0,r,t);let i={scrollLeft:0,scrollTop:0};const u=wa(0);if(a||!a&&!r)if((Bo(t)!=="body"||Dr(l))&&(i=Bi(t)),a){const h=Vl(t,!0,r,t);u.x=h.x+t.clientLeft,u.y=h.y+t.clientTop}else l&&(u.x=bf(l));const c=l&&!a&&!r?r4(l,i):wa(0),d=s.left+i.scrollLeft-u.x-c.x,f=s.top+i.scrollTop-u.y-c.y;return{x:d,y:f,width:s.width,height:s.height}}function bu(e){return fa(e).position==="static"}function cp(e,t){if(!Ea(e)||fa(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Na(e)===n&&(n=n.ownerDocument.body),n}function i4(e,t){const n=Fn(e);if(Ri(e))return n;if(!Ea(e)){let l=ul(e);for(;l&&!ko(l);){if(da(l)&&!bu(l))return l;l=ul(l)}return n}let a=cp(e,t);for(;a&&Eq(a)&&bu(a);)a=cp(a,t);return a&&ko(a)&&bu(a)&&!gf(a)?n:a||xq(e)||n}const Rq=async function(e){const t=this.getOffsetParent||i4,n=this.getDimensions,a=await n(e.floating);return{reference:Lq(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function Bq(e){return fa(e).direction==="rtl"}const Hq={convertOffsetParentRelativeRectToViewportRelativeRect:Tq,getDocumentElement:Na,getClippingRect:Aq,getOffsetParent:i4,getElementRects:Rq,getClientRects:Oq,getDimensions:Vq,getScale:ro,isElement:da,isRTL:Bq};function u4(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Dq(e,t){let n=null,a;const l=Na(e);function r(){var i;clearTimeout(a),(i=n)==null||i.disconnect(),n=null}function s(i,u){i===void 0&&(i=!1),u===void 0&&(u=1),r();const c=e.getBoundingClientRect(),{left:d,top:f,width:h,height:v}=c;if(i||t(),!h||!v)return;const m=ls(f),p=ls(l.clientWidth-(d+h)),y=ls(l.clientHeight-(f+v)),g=ls(d),w={rootMargin:-m+"px "+-p+"px "+-y+"px "+-g+"px",threshold:$l(0,Co(1,u))||1};let b=!0;function S(E){const O=E[0].intersectionRatio;if(O!==u){if(!b)return s();O?s(!1,O):a=setTimeout(()=>{s(!1,1e-7)},1e3)}O===1&&!u4(c,e.getBoundingClientRect())&&s(),b=!1}try{n=new IntersectionObserver(S,{...w,root:l.ownerDocument})}catch{n=new IntersectionObserver(S,w)}n.observe(e)}return s(!0),r}function Fq(e,t,n,a){a===void 0&&(a={});const{ancestorScroll:l=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:u=!1}=a,c=_f(e),d=l||r?[...c?kr(c):[],...kr(t)]:[];d.forEach(g=>{l&&g.addEventListener("scroll",n,{passive:!0}),r&&g.addEventListener("resize",n)});const f=c&&i?Dq(c,n):null;let h=-1,v=null;s&&(v=new ResizeObserver(g=>{let[x]=g;x&&x.target===c&&v&&(v.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var w;(w=v)==null||w.observe(t)})),n()}),c&&!u&&v.observe(c),v.observe(t));let m,p=u?Vl(e):null;u&&y();function y(){const g=Vl(e);p&&!u4(p,g)&&n(),p=g,m=requestAnimationFrame(y)}return n(),()=>{var g;d.forEach(x=>{l&&x.removeEventListener("scroll",n),r&&x.removeEventListener("resize",n)}),f==null||f(),(g=v)==null||g.disconnect(),v=null,u&&cancelAnimationFrame(m)}}const Kq=mf,c4=Sq,Wq=kq,jq=wq,d4=bq,f4=(e,t,n)=>{const a=new Map,l={platform:Hq,...n},r={...l.platform,_c:a};return _q(e,t,{...l,platform:r})},qq=pe({style:{type:X([String,Object,Array]),default:()=>({})}}),Uq=T({name:"ElVisuallyHidden"}),Yq=T({...Uq,props:qq,setup(e){const t=e,n=C(()=>[t.style,{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}]);return(a,l)=>(_(),M("span",tt(a.$attrs,{style:o(n)}),[Q(a.$slots,"default")],16))}});var Gq=ve(Yq,[["__file","visual-hidden.vue"]]);pe({});const Xq=e=>{if(!ut)return;if(!e)return e;const t=$n(e);return t||(Sn(e)?t:e)},Zq=({middleware:e,placement:t,strategy:n})=>{const a=A(),l=A(),r=A(),s=A(),i=A({}),u={x:r,y:s,placement:t,strategy:n,middlewareData:i},c=async()=>{if(!ut)return;const d=Xq(a),f=$n(l);if(!d||!f)return;const h=await f4(d,f,{placement:o(t),strategy:o(n),middleware:o(e)});fo(u).forEach(v=>{u[v].value=h[v]})};return Xe(()=>{cn(()=>{c()})}),{...u,update:c,referenceRef:a,contentRef:l}},Jq=({arrowRef:e,padding:t})=>({name:"arrow",options:{element:e,padding:t},fn(n){const a=o(e);return a?d4({element:a,padding:t}).fn(n):{}}}),Qq=T({name:"ElTooltipV2Content"}),eU=T({...Qq,props:{...df,...Zm},setup(e){const t=e,{triggerRef:n,contentId:a}=Se(Vi),l=A(t.placement),r=A(t.strategy),s=A(null),{referenceRef:i,contentRef:u,middlewareData:c,x:d,y:f,update:h}=Zq({placement:l,strategy:r,middleware:C(()=>{const w=[c4(t.offset)];return t.showArrow&&w.push(Jq({arrowRef:s})),w})}),v=Io().nextZIndex(),m=de("tooltip-v2"),p=C(()=>l.value.split("-")[0]),y=C(()=>({position:o(r),top:`${o(f)||0}px`,left:`${o(d)||0}px`,zIndex:v})),g=C(()=>{if(!t.showArrow)return{};const{arrow:w}=o(c);return{[`--${m.namespace.value}-tooltip-v2-arrow-x`]:`${w==null?void 0:w.x}px`||"",[`--${m.namespace.value}-tooltip-v2-arrow-y`]:`${w==null?void 0:w.y}px`||""}}),x=C(()=>[m.e("content"),m.is("dark",t.effect==="dark"),m.is(o(r)),t.contentClass]);return ue(s,()=>h()),ue(()=>t.placement,w=>l.value=w),Xe(()=>{ue(()=>t.reference||n.value,w=>{i.value=w||void 0},{immediate:!0})}),it(Qm,{arrowRef:s}),(w,b)=>(_(),M("div",{ref_key:"contentRef",ref:u,style:Oe(o(y)),"data-tooltip-v2-root":""},[w.nowrap?ee("v-if",!0):(_(),M("div",{key:0,"data-side":o(p),class:$(o(x))},[Q(w.$slots,"default",{contentStyle:o(y),contentClass:o(x)}),q(o(Gq),{id:o(a),role:"tooltip"},{default:G(()=>[w.ariaLabel?(_(),M(ze,{key:0},[ot(he(w.ariaLabel),1)],64)):Q(w.$slots,"default",{key:1})]),_:3},8,["id"]),Q(w.$slots,"arrow",{style:Oe(o(g)),side:o(p)})],10,["data-side"]))],4))}});var dp=ve(eU,[["__file","content.vue"]]);const tU=pe({setRef:{type:X(Function),required:!0},onlyChild:Boolean});var nU=T({props:tU,setup(e,{slots:t}){const n=A(),a=Ni(n,l=>{l?e.setRef(l.nextElementSibling):e.setRef(null)});return()=>{var l;const[r]=((l=t.default)==null?void 0:l.call(t))||[],s=e.onlyChild?fI(r.children):r.children;return q(ze,{ref:a},[s])}}});const aU=T({name:"ElTooltipV2Trigger"}),lU=T({...aU,props:{...Zm,...pf},setup(e){const t=e,{onClose:n,onOpen:a,onDelayOpen:l,triggerRef:r,contentId:s}=Se(Vi);let i=!1;const u=x=>{r.value=x},c=()=>{i=!1},d=Ht(t.onMouseEnter,l),f=Ht(t.onMouseLeave,n),h=Ht(t.onMouseDown,()=>{n(),i=!0,document.addEventListener("mouseup",c,{once:!0})}),v=Ht(t.onFocus,()=>{i||a()}),m=Ht(t.onBlur,n),p=Ht(t.onClick,x=>{x.detail===0&&n()}),y={blur:m,click:p,focus:v,mousedown:h,mouseenter:d,mouseleave:f},g=(x,w,b)=>{x&&Object.entries(w).forEach(([S,E])=>{x[b](S,E)})};return ue(r,(x,w)=>{g(x,y,"addEventListener"),g(w,y,"removeEventListener"),x&&x.setAttribute("aria-describedby",s.value)}),$t(()=>{g(r.value,y,"removeEventListener"),document.removeEventListener("mouseup",c)}),(x,w)=>x.nowrap?(_(),ae(o(nU),{key:0,"set-ref":u,"only-child":""},{default:G(()=>[Q(x.$slots,"default")]),_:3})):(_(),M("button",tt({key:1,ref_key:"triggerRef",ref:r},x.$attrs),[Q(x.$slots,"default")],16))}});var oU=ve(lU,[["__file","trigger.vue"]]);const rU=T({name:"ElTooltipV2"}),sU=T({...rU,props:rq,setup(e){const n=nn(e),a=_t(ra(n,Object.keys(cf))),l=_t(ra(n,Object.keys(df))),r=_t(ra(n,Object.keys(ff))),s=_t(ra(n,Object.keys(pf)));return(i,u)=>(_(),ae(uq,oa(Tl(r)),{default:G(({open:c})=>[q(oU,tt(s,{nowrap:""}),{default:G(()=>[Q(i.$slots,"trigger")]),_:3},16),q(o(Vo),{to:i.to,disabled:!i.teleported},{default:G(()=>[i.fullTransition?(_(),ae(tn,oa(tt({key:0},i.transitionProps)),{default:G(()=>[i.alwaysOn||c?(_(),ae(dp,oa(tt({key:0},l)),{arrow:G(({style:d,side:f})=>[i.showArrow?(_(),ae(rp,tt({key:0},a,{style:d,side:f}),null,16,["style","side"])):ee("v-if",!0)]),default:G(()=>[Q(i.$slots,"default")]),_:3},16)):ee("v-if",!0)]),_:2},1040)):(_(),M(ze,{key:1},[i.alwaysOn||c?(_(),ae(dp,oa(tt({key:0},l)),{arrow:G(({style:d,side:f})=>[i.showArrow?(_(),ae(rp,tt({key:0},a,{style:d,side:f}),null,16,["style","side"])):ee("v-if",!0)]),default:G(()=>[Q(i.$slots,"default")]),_:3},16)):ee("v-if",!0)],64))]),_:2},1032,["to","disabled"])]),_:3},16))}});var iU=ve(sU,[["__file","tooltip.vue"]]);const uU=We(iU),p4="left-check-change",v4="right-check-change",Jl=pe({data:{type:X(Array),default:()=>[]},titles:{type:X(Array),default:()=>[]},buttonTexts:{type:X(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:X(Function)},leftDefaultChecked:{type:X(Array),default:()=>[]},rightDefaultChecked:{type:X(Array),default:()=>[]},renderContent:{type:X(Function)},modelValue:{type:X(Array),default:()=>[]},format:{type:X(Object),default:()=>({})},filterable:Boolean,props:{type:X(Object),default:()=>Vt({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),Ec=(e,t)=>[e,t].every(Ee)||Ee(e)&&Zt(t),cU={[Ct]:(e,t,n)=>[e,n].every(Ee)&&["left","right"].includes(t),[Ue]:e=>Ee(e),[p4]:Ec,[v4]:Ec},xc="checked-change",dU=pe({data:Jl.data,optionRender:{type:X(Function)},placeholder:String,title:String,filterable:Boolean,format:Jl.format,filterMethod:Jl.filterMethod,defaultChecked:Jl.leftDefaultChecked,props:Jl.props}),fU={[xc]:Ec},Fr=e=>{const t={label:"label",key:"key",disabled:"disabled"};return C(()=>({...t,...e.props}))},pU=(e,t,n)=>{const a=Fr(e),l=C(()=>e.data.filter(d=>Je(e.filterMethod)?e.filterMethod(t.query,d):String(d[a.value.label]||d[a.value.key]).toLowerCase().includes(t.query.toLowerCase()))),r=C(()=>l.value.filter(d=>!d[a.value.disabled])),s=C(()=>{const d=t.checked.length,f=e.data.length,{noChecked:h,hasChecked:v}=e.format;return h&&v?d>0?v.replace(/\${checked}/g,d.toString()).replace(/\${total}/g,f.toString()):h.replace(/\${total}/g,f.toString()):`${d}/${f}`}),i=C(()=>{const d=t.checked.length;return d>0&&d{const d=r.value.map(f=>f[a.value.key]);t.allChecked=d.length>0&&d.every(f=>t.checked.includes(f))},c=d=>{t.checked=d?r.value.map(f=>f[a.value.key]):[]};return ue(()=>t.checked,(d,f)=>{if(u(),t.checkChangeByUser){const h=d.concat(f).filter(v=>!d.includes(v)||!f.includes(v));n(xc,d,h)}else n(xc,d),t.checkChangeByUser=!0}),ue(r,()=>{u()}),ue(()=>e.data,()=>{const d=[],f=l.value.map(h=>h[a.value.key]);t.checked.forEach(h=>{f.includes(h)&&d.push(h)}),t.checkChangeByUser=!1,t.checked=d}),ue(()=>e.defaultChecked,(d,f)=>{if(f&&d.length===f.length&&d.every(m=>f.includes(m)))return;const h=[],v=r.value.map(m=>m[a.value.key]);d.forEach(m=>{v.includes(m)&&h.push(m)}),t.checkChangeByUser=!1,t.checked=h},{immediate:!0}),{filteredData:l,checkableData:r,checkedSummary:s,isIndeterminate:i,updateAllChecked:u,handleAllCheckedChange:c}},vU=T({name:"ElTransferPanel"}),hU=T({...vU,props:dU,emits:fU,setup(e,{expose:t,emit:n}){const a=e,l=Xt(),r=({option:w})=>w,{t:s}=ct(),i=de("transfer"),u=_t({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),c=Fr(a),{filteredData:d,checkedSummary:f,isIndeterminate:h,handleAllCheckedChange:v}=pU(a,u,n),m=C(()=>!Hn(u.query)&&Hn(d.value)),p=C(()=>!Hn(l.default()[0].children)),{checked:y,allChecked:g,query:x}=nn(u);return t({query:x}),(w,b)=>(_(),M("div",{class:$(o(i).b("panel"))},[k("p",{class:$(o(i).be("panel","header"))},[q(o(Qn),{modelValue:o(g),"onUpdate:modelValue":S=>Sn(g)?g.value=S:null,indeterminate:o(h),"validate-event":!1,onChange:o(v)},{default:G(()=>[ot(he(w.title)+" ",1),k("span",null,he(o(f)),1)]),_:1},8,["modelValue","onUpdate:modelValue","indeterminate","onChange"])],2),k("div",{class:$([o(i).be("panel","body"),o(i).is("with-footer",o(p))])},[w.filterable?(_(),ae(o(Cn),{key:0,modelValue:o(x),"onUpdate:modelValue":S=>Sn(x)?x.value=S:null,class:$(o(i).be("panel","filter")),size:"default",placeholder:w.placeholder,"prefix-icon":o(X1),clearable:"","validate-event":!1},null,8,["modelValue","onUpdate:modelValue","class","placeholder","prefix-icon"])):ee("v-if",!0),qe(q(o(Yv),{modelValue:o(y),"onUpdate:modelValue":S=>Sn(y)?y.value=S:null,"validate-event":!1,class:$([o(i).is("filterable",w.filterable),o(i).be("panel","list")])},{default:G(()=>[(_(!0),M(ze,null,rt(o(d),S=>(_(),ae(o(Qn),{key:S[o(c).key],class:$(o(i).be("panel","item")),value:S[o(c).key],disabled:S[o(c).disabled],"validate-event":!1},{default:G(()=>{var E;return[q(r,{option:(E=w.optionRender)==null?void 0:E.call(w,S)},null,8,["option"])]}),_:2},1032,["class","value","disabled"]))),128))]),_:1},8,["modelValue","onUpdate:modelValue","class"]),[[pt,!o(m)&&!o(Hn)(w.data)]]),qe(k("div",{class:$(o(i).be("panel","empty"))},[Q(w.$slots,"empty",{},()=>[ot(he(o(m)?o(s)("el.transfer.noMatch"):o(s)("el.transfer.noData")),1)])],2),[[pt,o(m)||o(Hn)(w.data)]])],2),o(p)?(_(),M("p",{key:0,class:$(o(i).be("panel","footer"))},[Q(w.$slots,"default")],2)):ee("v-if",!0)],2))}});var fp=ve(hU,[["__file","transfer-panel.vue"]]);const mU=e=>{const t=Fr(e),n=C(()=>e.data.reduce((r,s)=>(r[s[t.value.key]]=s)&&r,{})),a=C(()=>e.data.filter(r=>!e.modelValue.includes(r[t.value.key]))),l=C(()=>e.targetOrder==="original"?e.data.filter(r=>e.modelValue.includes(r[t.value.key])):e.modelValue.reduce((r,s)=>{const i=n.value[s];return i&&r.push(i),r},[]));return{sourceData:a,targetData:l}},gU=(e,t,n)=>{const a=Fr(e),l=(i,u,c)=>{n(Ue,i),n(Ct,i,u,c)};return{addToLeft:()=>{const i=e.modelValue.slice();t.rightChecked.forEach(u=>{const c=i.indexOf(u);c>-1&&i.splice(c,1)}),l(i,"left",t.rightChecked)},addToRight:()=>{let i=e.modelValue.slice();const u=e.data.filter(c=>{const d=c[a.value.key];return t.leftChecked.includes(d)&&!e.modelValue.includes(d)}).map(c=>c[a.value.key]);i=e.targetOrder==="unshift"?u.concat(i):i.concat(u),e.targetOrder==="original"&&(i=e.data.filter(c=>i.includes(c[a.value.key])).map(c=>c[a.value.key])),l(i,"right",t.leftChecked)}}},yU=(e,t)=>({onSourceCheckedChange:(l,r)=>{e.leftChecked=l,r&&t(p4,l,r)},onTargetCheckedChange:(l,r)=>{e.rightChecked=l,r&&t(v4,l,r)}}),_U=T({name:"ElTransfer"}),bU=T({..._U,props:Jl,emits:cU,setup(e,{expose:t,emit:n}){const a=e,l=Xt(),{t:r}=ct(),s=de("transfer"),{formItem:i}=mn(),u=_t({leftChecked:[],rightChecked:[]}),c=Fr(a),{sourceData:d,targetData:f}=mU(a),{onSourceCheckedChange:h,onTargetCheckedChange:v}=yU(u,n),{addToLeft:m,addToRight:p}=gU(a,u,n),y=A(),g=A(),x=I=>{switch(I){case"left":y.value.query="";break;case"right":g.value.query="";break}},w=C(()=>a.buttonTexts.length===2),b=C(()=>a.titles[0]||r("el.transfer.titles.0")),S=C(()=>a.titles[1]||r("el.transfer.titles.1")),E=C(()=>a.filterPlaceholder||r("el.transfer.filterPlaceholder"));ue(()=>a.modelValue,()=>{var I;a.validateEvent&&((I=i==null?void 0:i.validate)==null||I.call(i,"change").catch(N=>void 0))});const O=C(()=>I=>{var N;if(a.renderContent)return a.renderContent(Pe,I);const P=(((N=l.default)==null?void 0:N.call(l,{option:I}))||[]).filter(L=>L.type!==ri);return P.length?P:Pe("span",I[c.value.label]||I[c.value.key])});return t({clearQuery:x,leftPanel:y,rightPanel:g}),(I,N)=>(_(),M("div",{class:$(o(s).b())},[q(fp,{ref_key:"leftPanel",ref:y,data:o(d),"option-render":o(O),placeholder:o(E),title:o(b),filterable:I.filterable,format:I.format,"filter-method":I.filterMethod,"default-checked":I.leftDefaultChecked,props:a.props,onCheckedChange:o(h)},{empty:G(()=>[Q(I.$slots,"left-empty")]),default:G(()=>[Q(I.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),k("div",{class:$(o(s).e("buttons"))},[q(o(en),{type:"primary",class:$([o(s).e("button"),o(s).is("with-texts",o(w))]),disabled:o(Hn)(u.rightChecked),onClick:o(m)},{default:G(()=>[q(o(Me),null,{default:G(()=>[q(o(La))]),_:1}),o(vt)(I.buttonTexts[0])?ee("v-if",!0):(_(),M("span",{key:0},he(I.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),q(o(en),{type:"primary",class:$([o(s).e("button"),o(s).is("with-texts",o(w))]),disabled:o(Hn)(u.leftChecked),onClick:o(p)},{default:G(()=>[o(vt)(I.buttonTexts[1])?ee("v-if",!0):(_(),M("span",{key:0},he(I.buttonTexts[1]),1)),q(o(Me),null,{default:G(()=>[q(o(En))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),q(fp,{ref_key:"rightPanel",ref:g,data:o(f),"option-render":o(O),placeholder:o(E),filterable:I.filterable,format:I.format,"filter-method":I.filterMethod,title:o(S),"default-checked":I.rightDefaultChecked,props:a.props,onCheckedChange:o(v)},{empty:G(()=>[Q(I.$slots,"right-empty")]),default:G(()=>[Q(I.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}});var wU=ve(bU,[["__file","transfer.vue"]]);const CU=We(wU),so="$treeNodeId",pp=function(e,t){!t||t[so]||Object.defineProperty(t,so,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},wf=function(e,t){return e?t[e]:t[so]},Mc=(e,t,n)=>{const a=e.value.currentNode;n();const l=e.value.currentNode;a!==l&&t("current-change",l?l.data:null,l)},$c=e=>{let t=!0,n=!0,a=!0;for(let l=0,r=e.length;l0&&t.lazy&&t.defaultExpandAll&&!this.isLeafByUser&&this.expand(),Ee(this.data)||pp(this,this.data),!this.data)return;const a=t.defaultExpandedKeys,l=t.key;l&&a&&a.includes(this.key)&&this.expand(null,t.autoExpandParent),l&&t.currentNodeKey!==void 0&&this.key===t.currentNodeKey&&(t.currentNode=this,t.currentNode.isCurrent=!0),t.lazy&&t._initDefaultCheckedNode(this),this.updateLeafState(),this.parent&&(this.level===1||this.parent.expanded===!0)&&(this.canFocus=!0)}setData(t){Ee(t)||pp(this,t),this.data=t,this.childNodes=[];let n;this.level===0&&Ee(this.data)?n=this.data:n=os(this,"children")||[];for(let a=0,l=n.length;a-1)return t.childNodes[n+1]}return null}get previousSibling(){const t=this.parent;if(t){const n=t.childNodes.indexOf(this);if(n>-1)return n>0?t.childNodes[n-1]:null}return null}contains(t,n=!0){return(this.childNodes||[]).some(a=>a===t||n&&a.contains(t))}remove(){const t=this.parent;t&&t.removeChild(this)}insertChild(t,n,a){if(!t)throw new Error("InsertChild error: child is required.");if(!(t instanceof Os)){if(!a){const l=this.getChildren(!0);l.includes(t.data)||(vt(n)||n<0?l.push(t.data):l.splice(n,0,t.data))}Object.assign(t,{parent:this,store:this.store}),t=_t(new Os(t)),t instanceof Os&&t.initialize()}t.level=this.level+1,vt(n)||n<0?this.childNodes.push(t):this.childNodes.splice(n,0,t),this.updateLeafState()}insertBefore(t,n){let a;n&&(a=this.childNodes.indexOf(n)),this.insertChild(t,a)}insertAfter(t,n){let a;n&&(a=this.childNodes.indexOf(n),a!==-1&&(a+=1)),this.insertChild(t,a)}removeChild(t){const n=this.getChildren()||[],a=n.indexOf(t.data);a>-1&&n.splice(a,1);const l=this.childNodes.indexOf(t);l>-1&&(this.store&&this.store.deregisterNode(t),t.parent=null,this.childNodes.splice(l,1)),this.updateLeafState()}removeChildByData(t){let n=null;for(let a=0;a{if(n){let l=this.parent;for(;l.level>0;)l.expanded=!0,l=l.parent}this.expanded=!0,t&&t(),this.childNodes.forEach(l=>{l.canFocus=!0})};this.shouldLoadData()?this.loadData(l=>{Ee(l)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||Go(this),a())}):a()}doCreateChildren(t,n={}){t.forEach(a=>{this.insertChild(Object.assign({data:a},n),void 0,!0)})}collapse(){this.expanded=!1,this.childNodes.forEach(t=>{t.canFocus=!1})}shouldLoadData(){return this.store.lazy===!0&&this.store.load&&!this.loaded}updateLeafState(){if(this.store.lazy===!0&&this.loaded!==!0&&typeof this.isLeafByUser<"u"){this.isLeaf=this.isLeafByUser;return}const t=this.childNodes;if(!this.store.lazy||this.store.lazy===!0&&this.loaded===!0){this.isLeaf=!t||t.length===0;return}this.isLeaf=!1}setChecked(t,n,a,l){if(this.indeterminate=t==="half",this.checked=t===!0,this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const{all:s,allWithoutDisable:i}=$c(this.childNodes);!this.isLeaf&&!s&&i&&(this.checked=!1,t=!1);const u=()=>{if(n){const c=this.childNodes;for(let h=0,v=c.length;h{u(),Go(this)},{checked:t!==!1});return}else u()}const r=this.parent;!r||r.level===0||a||Go(r)}getChildren(t=!1){if(this.level===0)return this.data;const n=this.data;if(!n)return null;const a=this.store.props;let l="children";return a&&(l=a.children||"children"),n[l]===void 0&&(n[l]=null),t&&!n[l]&&(n[l]=[]),n[l]}updateChildren(){const t=this.getChildren()||[],n=this.childNodes.map(r=>r.data),a={},l=[];t.forEach((r,s)=>{const i=r[so];!!i&&n.findIndex(c=>c[so]===i)>=0?a[i]={index:s,data:r}:l.push({index:s,data:r})}),this.store.lazy||n.forEach(r=>{a[r[so]]||this.removeChildByData(r)}),l.forEach(({index:r,data:s})=>{this.insertChild({data:s},r)}),this.updateLeafState()}loadData(t,n={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(n).length)){this.loading=!0;const a=r=>{this.childNodes=[],this.doCreateChildren(r,n),this.loaded=!0,this.loading=!1,this.updateLeafState(),t&&t.call(this,r)},l=()=>{this.loading=!1};this.store.load(this,a,l)}else t&&t.call(this)}eachNode(t){const n=[this];for(;n.length;){const a=n.shift();n.unshift(...a.childNodes),t(a)}}reInitChecked(){this.store.checkStrictly||Go(this)}};class kU{constructor(t){this.currentNode=null,this.currentNodeKey=null;for(const n in t)vn(t,n)&&(this[n]=t[n]);this.nodesMap={}}initialize(){if(this.root=new Tc({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const t=this.load;t(this.root,n=>{this.root.doCreateChildren(n),this._initDefaultCheckedNodes()})}else this._initDefaultCheckedNodes()}filter(t){const n=this.filterNodeMethod,a=this.lazy,l=function(r){const s=r.root?r.root.childNodes:r.childNodes;if(s.forEach(i=>{i.visible=n.call(i,t,i.data,i),l(i)}),!r.visible&&s.length){let i=!0;i=!s.some(u=>u.visible),r.root?r.root.visible=i===!1:r.visible=i===!1}t&&r.visible&&!r.isLeaf&&(!a||r.loaded)&&r.expand()};l(this)}setData(t){t!==this.root.data?(this.nodesMap={},this.root.setData(t),this._initDefaultCheckedNodes(),this.setCurrentNodeKey(this.currentNodeKey)):this.root.updateChildren()}getNode(t){if(t instanceof Tc)return t;const n=ht(t)?wf(this.key,t):t;return this.nodesMap[n]||null}insertBefore(t,n){const a=this.getNode(n);a.parent.insertBefore({data:t},a)}insertAfter(t,n){const a=this.getNode(n);a.parent.insertAfter({data:t},a)}remove(t){const n=this.getNode(t);n&&n.parent&&(n===this.currentNode&&(this.currentNode=null),n.parent.removeChild(n))}append(t,n){const a=ua(n)?this.root:this.getNode(n);a&&a.insertChild({data:t})}_initDefaultCheckedNodes(){const t=this.defaultCheckedKeys||[],n=this.nodesMap;t.forEach(a=>{const l=n[a];l&&l.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(t){(this.defaultCheckedKeys||[]).includes(t.key)&&t.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(t){t!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=t,this._initDefaultCheckedNodes())}registerNode(t){const n=this.key;!t||!t.data||(n?t.key!==void 0&&(this.nodesMap[t.key]=t):this.nodesMap[t.id]=t)}deregisterNode(t){!this.key||!t||!t.data||(t.childNodes.forEach(a=>{this.deregisterNode(a)}),delete this.nodesMap[t.key])}getCheckedNodes(t=!1,n=!1){const a=[],l=function(r){(r.root?r.root.childNodes:r.childNodes).forEach(i=>{(i.checked||n&&i.indeterminate)&&(!t||t&&i.isLeaf)&&a.push(i.data),l(i)})};return l(this),a}getCheckedKeys(t=!1){return this.getCheckedNodes(t).map(n=>(n||{})[this.key])}getHalfCheckedNodes(){const t=[],n=function(a){(a.root?a.root.childNodes:a.childNodes).forEach(r=>{r.indeterminate&&t.push(r.data),n(r)})};return n(this),t}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(t=>(t||{})[this.key])}_getAllNodes(){const t=[],n=this.nodesMap;for(const a in n)vn(n,a)&&t.push(n[a]);return t}updateChildren(t,n){const a=this.nodesMap[t];if(!a)return;const l=a.childNodes;for(let r=l.length-1;r>=0;r--){const s=l[r];this.remove(s.data)}for(let r=0,s=n.length;ru.level-c.level),r=Object.create(null),s=Object.keys(a);l.forEach(u=>u.setChecked(!1,!1));const i=u=>{u.childNodes.forEach(c=>{var d;r[c.data[t]]=!0,(d=c.childNodes)!=null&&d.length&&i(c)})};for(let u=0,c=l.length;u{y.isLeaf||y.setChecked(!1,!1),v(y)})};v(d)}}}setCheckedNodes(t,n=!1){const a=this.key,l={};t.forEach(r=>{l[(r||{})[a]]=!0}),this._setCheckedKeys(a,n,l)}setCheckedKeys(t,n=!1){this.defaultCheckedKeys=t;const a=this.key,l={};t.forEach(r=>{l[r]=!0}),this._setCheckedKeys(a,n,l)}setDefaultExpandedKeys(t){t=t||[],this.defaultExpandedKeys=t,t.forEach(n=>{const a=this.getNode(n);a&&a.expand(null,this.autoExpandParent)})}setChecked(t,n,a){const l=this.getNode(t);l&&l.setChecked(!!n,a)}getCurrentNode(){return this.currentNode}setCurrentNode(t){const n=this.currentNode;n&&(n.isCurrent=!1),this.currentNode=t,this.currentNode.isCurrent=!0}setUserCurrentNode(t,n=!0){const a=t[this.key],l=this.nodesMap[a];this.setCurrentNode(l),n&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0)}setCurrentNodeKey(t,n=!0){if(this.currentNodeKey=t,t==null){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const a=this.getNode(t);a&&(this.setCurrentNode(a),n&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0))}}const EU=T({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=de("tree"),n=Se("NodeInstance"),a=Se("RootTree");return()=>{const l=e.node,{data:r,store:s}=l;return e.renderContent?e.renderContent(Pe,{_self:n,node:l,data:r,store:s}):Q(a.ctx.slots,"default",{node:l,data:r},()=>[Pe("span",{class:t.be("node","label")},[l.label])])}}});var xU=ve(EU,[["__file","tree-node-content.vue"]]);function h4(e){const t=Se("TreeNodeMap",null),n={treeNodeExpand:a=>{e.node!==a&&e.node.collapse()},children:[]};return t&&t.children.push(n),it("TreeNodeMap",n),{broadcastExpanded:a=>{if(e.accordion)for(const l of n.children)l.treeNodeExpand(a)}}}const m4=Symbol("dragEvents");function MU({props:e,ctx:t,el$:n,dropIndicator$:a,store:l}){const r=de("tree"),s=A({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return it(m4,{treeNodeDragStart:({event:d,treeNode:f})=>{if(Je(e.allowDrag)&&!e.allowDrag(f.node))return d.preventDefault(),!1;d.dataTransfer.effectAllowed="move";try{d.dataTransfer.setData("text/plain","")}catch{}s.value.draggingNode=f,t.emit("node-drag-start",f.node,d)},treeNodeDragOver:({event:d,treeNode:f})=>{const h=f,v=s.value.dropNode;v&&v.node.id!==h.node.id&&kn(v.$el,r.is("drop-inner"));const m=s.value.draggingNode;if(!m||!h)return;let p=!0,y=!0,g=!0,x=!0;Je(e.allowDrop)&&(p=e.allowDrop(m.node,h.node,"prev"),x=y=e.allowDrop(m.node,h.node,"inner"),g=e.allowDrop(m.node,h.node,"next")),d.dataTransfer.dropEffect=y||p||g?"move":"none",(p||y||g)&&(v==null?void 0:v.node.id)!==h.node.id&&(v&&t.emit("node-drag-leave",m.node,v.node,d),t.emit("node-drag-enter",m.node,h.node,d)),p||y||g?s.value.dropNode=h:s.value.dropNode=null,h.node.nextSibling===m.node&&(g=!1),h.node.previousSibling===m.node&&(p=!1),h.node.contains(m.node,!1)&&(y=!1),(m.node===h.node||m.node.contains(h.node))&&(p=!1,y=!1,g=!1);const w=h.$el.querySelector(`.${r.be("node","content")}`).getBoundingClientRect(),b=n.value.getBoundingClientRect();let S;const E=p?y?.25:g?.45:1:-1,O=g?y?.75:p?.55:0:1;let I=-9999;const N=d.clientY-w.top;Nw.height*O?S="after":y?S="inner":S="none";const P=h.$el.querySelector(`.${r.be("node","expand-icon")}`).getBoundingClientRect(),L=a.value;S==="before"?I=P.top-b.top:S==="after"&&(I=P.bottom-b.top),L.style.top=`${I}px`,L.style.left=`${P.right-b.left}px`,S==="inner"?jn(h.$el,r.is("drop-inner")):kn(h.$el,r.is("drop-inner")),s.value.showDropIndicator=S==="before"||S==="after",s.value.allowDrop=s.value.showDropIndicator||x,s.value.dropType=S,t.emit("node-drag-over",m.node,h.node,d)},treeNodeDragEnd:d=>{const{draggingNode:f,dropType:h,dropNode:v}=s.value;if(d.preventDefault(),d.dataTransfer&&(d.dataTransfer.dropEffect="move"),f&&v){const m={data:f.node.data};h!=="none"&&f.node.remove(),h==="before"?v.node.parent.insertBefore(m,v.node):h==="after"?v.node.parent.insertAfter(m,v.node):h==="inner"&&v.node.insertChild(m),h!=="none"&&(l.value.registerNode(m),l.value.key&&f.node.eachNode(p=>{var y;(y=l.value.nodesMap[p.data[l.value.key]])==null||y.setChecked(p.checked,!l.value.checkStrictly)})),kn(v.$el,r.is("drop-inner")),t.emit("node-drag-end",f.node,v.node,h,d),h!=="none"&&t.emit("node-drop",f.node,v.node,h,d)}f&&!v&&t.emit("node-drag-end",f.node,null,h,d),s.value.showDropIndicator=!1,s.value.draggingNode=null,s.value.dropNode=null,s.value.allowDrop=!0}}),{dragState:s}}const $U=T({name:"ElTreeNode",components:{ElCollapseTransition:Ti,ElCheckbox:Qn,NodeContent:xU,ElIcon:Me,Loading:ca},props:{node:{type:Tc,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:{type:Boolean,default:!1}},emits:["node-expand"],setup(e,t){const n=de("tree"),{broadcastExpanded:a}=h4(e),l=Se("RootTree"),r=A(!1),s=A(!1),i=A(null),u=A(null),c=A(null),d=Se(m4),f=et();it("NodeInstance",f),e.node.expanded&&(r.value=!0,s.value=!0);const h=l.props.props.children||"children";ue(()=>{const N=e.node.data[h];return N&&[...N]},()=>{e.node.updateChildren()}),ue(()=>e.node.indeterminate,N=>{p(e.node.checked,N)}),ue(()=>e.node.checked,N=>{p(N,e.node.indeterminate)}),ue(()=>e.node.childNodes.length,()=>e.node.reInitChecked()),ue(()=>e.node.expanded,N=>{Ne(()=>r.value=N),N&&(s.value=!0)});const v=N=>wf(l.props.nodeKey,N.data),m=N=>{const P=e.props.class;if(!P)return{};let L;if(Je(P)){const{data:R}=N;L=P(R,N)}else L=P;return Ve(L)?{[L]:!0}:L},p=(N,P)=>{(i.value!==N||u.value!==P)&&l.ctx.emit("check-change",e.node.data,N,P),i.value=N,u.value=P},y=N=>{Mc(l.store,l.ctx.emit,()=>{var P;if((P=l==null?void 0:l.props)==null?void 0:P.nodeKey){const R=v(e.node);l.store.value.setCurrentNodeKey(R)}else l.store.value.setCurrentNode(e.node)}),l.currentNode.value=e.node,l.props.expandOnClickNode&&x(),l.props.checkOnClickNode&&!e.node.disabled&&w(null,{target:{checked:!e.node.checked}}),l.ctx.emit("node-click",e.node.data,e.node,f,N)},g=N=>{l.instance.vnode.props.onNodeContextmenu&&(N.stopPropagation(),N.preventDefault()),l.ctx.emit("node-contextmenu",N,e.node.data,e.node,f)},x=()=>{e.node.isLeaf||(r.value?(l.ctx.emit("node-collapse",e.node.data,e.node,f),e.node.collapse()):e.node.expand(()=>{t.emit("node-expand",e.node.data,e.node,f)}))},w=(N,P)=>{e.node.setChecked(P.target.checked,!l.props.checkStrictly),Ne(()=>{const L=l.store.value;l.ctx.emit("check",e.node.data,{checkedNodes:L.getCheckedNodes(),checkedKeys:L.getCheckedKeys(),halfCheckedNodes:L.getHalfCheckedNodes(),halfCheckedKeys:L.getHalfCheckedKeys()})})};return{ns:n,node$:c,tree:l,expanded:r,childNodeRendered:s,oldChecked:i,oldIndeterminate:u,getNodeKey:v,getNodeClass:m,handleSelectChange:p,handleClick:y,handleContextMenu:g,handleExpandIconClick:x,handleCheckChange:w,handleChildNodeExpand:(N,P,L)=>{a(P),l.ctx.emit("node-expand",N,P,L)},handleDragStart:N=>{l.props.draggable&&d.treeNodeDragStart({event:N,treeNode:e})},handleDragOver:N=>{N.preventDefault(),l.props.draggable&&d.treeNodeDragOver({event:N,treeNode:{$el:c.value,node:e.node}})},handleDrop:N=>{N.preventDefault()},handleDragEnd:N=>{l.props.draggable&&d.treeNodeDragEnd(N)},CaretRight:rd}}});function TU(e,t,n,a,l,r){const s=Ze("el-icon"),i=Ze("el-checkbox"),u=Ze("loading"),c=Ze("node-content"),d=Ze("el-tree-node"),f=Ze("el-collapse-transition");return qe((_(),M("div",{ref:"node$",class:$([e.ns.b("node"),e.ns.is("expanded",e.expanded),e.ns.is("current",e.node.isCurrent),e.ns.is("hidden",!e.node.visible),e.ns.is("focusable",!e.node.disabled),e.ns.is("checked",!e.node.disabled&&e.node.checked),e.getNodeClass(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.node.disabled,"aria-checked":e.node.checked,draggable:e.tree.props.draggable,"data-key":e.getNodeKey(e.node),onClick:Ae(e.handleClick,["stop"]),onContextmenu:e.handleContextMenu,onDragstart:Ae(e.handleDragStart,["stop"]),onDragover:Ae(e.handleDragOver,["stop"]),onDragend:Ae(e.handleDragEnd,["stop"]),onDrop:Ae(e.handleDrop,["stop"])},[k("div",{class:$(e.ns.be("node","content")),style:Oe({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?(_(),ae(s,{key:0,class:$([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:Ae(e.handleExpandIconClick,["stop"])},{default:G(()=>[(_(),ae(Qe(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):ee("v-if",!0),e.showCheckbox?(_(),ae(i,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:Ae(()=>{},["stop"]),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onClick","onChange"])):ee("v-if",!0),e.node.loading?(_(),ae(s,{key:2,class:$([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:G(()=>[q(u)]),_:1},8,["class"])):ee("v-if",!0),q(c,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),q(f,null,{default:G(()=>[!e.renderAfterExpand||e.childNodeRendered?qe((_(),M("div",{key:0,class:$(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded},[(_(!0),M(ze,null,rt(e.node.childNodes,h=>(_(),ae(d,{key:e.getNodeKey(h),"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:h,accordion:e.accordion,props:e.props,onNodeExpand:e.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,["aria-expanded"])),[[pt,e.expanded]]):ee("v-if",!0)]),_:1})],42,["aria-expanded","aria-disabled","aria-checked","draggable","data-key","onClick","onContextmenu","onDragstart","onDragover","onDragend","onDrop"])),[[pt,e.node.visible]])}var OU=ve($U,[["render",TU],["__file","tree-node.vue"]]);function NU({el$:e},t){const n=de("tree"),a=Ot([]),l=Ot([]);Xe(()=>{s()}),Wa(()=>{a.value=Array.from(e.value.querySelectorAll("[role=treeitem]")),l.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"))}),ue(l,i=>{i.forEach(u=>{u.setAttribute("tabindex","-1")})}),wt(e,"keydown",i=>{const u=i.target;if(!u.className.includes(n.b("node")))return;const c=i.code;a.value=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`));const d=a.value.indexOf(u);let f;if([Ce.up,Ce.down].includes(c)){if(i.preventDefault(),c===Ce.up){f=d===-1?0:d!==0?d-1:a.value.length-1;const v=f;for(;!t.value.getNode(a.value[f].dataset.key).canFocus;){if(f--,f===v){f=-1;break}f<0&&(f=a.value.length-1)}}else{f=d===-1?0:d=a.value.length&&(f=0)}}f!==-1&&a.value[f].focus()}[Ce.left,Ce.right].includes(c)&&(i.preventDefault(),u.click());const h=u.querySelector('[type="checkbox"]');[Ce.enter,Ce.numpadEnter,Ce.space].includes(c)&&h&&(i.preventDefault(),h.click())});const s=()=>{var i;a.value=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`)),l.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"));const u=e.value.querySelectorAll(`.${n.is("checked")}[role=treeitem]`);if(u.length){u[0].setAttribute("tabindex","0");return}(i=a.value[0])==null||i.setAttribute("tabindex","0")}}const IU=T({name:"ElTree",components:{ElTreeNode:OU},props:{data:{type:Array,default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkDescendants:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:Function,showCheckbox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},icon:{type:St}},emits:["check-change","current-change","node-click","node-contextmenu","node-collapse","node-expand","check","node-drag-start","node-drag-end","node-drop","node-drag-leave","node-drag-enter","node-drag-over"],setup(e,t){const{t:n}=ct(),a=de("tree"),l=Se(Ro,null),r=A(new kU({key:e.nodeKey,data:e.data,lazy:e.lazy,props:e.props,load:e.load,currentNodeKey:e.currentNodeKey,checkStrictly:e.checkStrictly,checkDescendants:e.checkDescendants,defaultCheckedKeys:e.defaultCheckedKeys,defaultExpandedKeys:e.defaultExpandedKeys,autoExpandParent:e.autoExpandParent,defaultExpandAll:e.defaultExpandAll,filterNodeMethod:e.filterNodeMethod}));r.value.initialize();const s=A(r.value.root),i=A(null),u=A(null),c=A(null),{broadcastExpanded:d}=h4(e),{dragState:f}=MU({props:e,ctx:t,el$:u,dropIndicator$:c,store:r});NU({el$:u},r);const h=C(()=>{const{childNodes:B}=s.value,z=l?l.hasFilteredOptions!==0:!1;return(!B||B.length===0||B.every(({visible:F})=>!F))&&!z});ue(()=>e.currentNodeKey,B=>{r.value.setCurrentNodeKey(B)}),ue(()=>e.defaultCheckedKeys,B=>{r.value.setDefaultCheckedKey(B)}),ue(()=>e.defaultExpandedKeys,B=>{r.value.setDefaultExpandedKeys(B)}),ue(()=>e.data,B=>{r.value.setData(B)},{deep:!0}),ue(()=>e.checkStrictly,B=>{r.value.checkStrictly=B});const v=B=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");r.value.filter(B)},m=B=>wf(e.nodeKey,B.data),p=B=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const z=r.value.getNode(B);if(!z)return[];const F=[z.data];let W=z.parent;for(;W&&W!==s.value;)F.push(W.data),W=W.parent;return F.reverse()},y=(B,z)=>r.value.getCheckedNodes(B,z),g=B=>r.value.getCheckedKeys(B),x=()=>{const B=r.value.getCurrentNode();return B?B.data:null},w=()=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const B=x();return B?B[e.nodeKey]:null},b=(B,z)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");r.value.setCheckedNodes(B,z)},S=(B,z)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");r.value.setCheckedKeys(B,z)},E=(B,z,F)=>{r.value.setChecked(B,z,F)},O=()=>r.value.getHalfCheckedNodes(),I=()=>r.value.getHalfCheckedKeys(),N=(B,z=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");Mc(r,t.emit,()=>{d(B),r.value.setUserCurrentNode(B,z)})},P=(B,z=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");Mc(r,t.emit,()=>{d(),r.value.setCurrentNodeKey(B,z)})},L=B=>r.value.getNode(B),R=B=>{r.value.remove(B)},K=(B,z)=>{r.value.append(B,z)},U=(B,z)=>{r.value.insertBefore(B,z)},H=(B,z)=>{r.value.insertAfter(B,z)},V=(B,z,F)=>{d(z),t.emit("node-expand",B,z,F)},D=(B,z)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");r.value.updateChildren(B,z)};return it("RootTree",{ctx:t,props:e,store:r,root:s,currentNode:i,instance:et()}),it(Sa,void 0),{ns:a,store:r,root:s,currentNode:i,dragState:f,el$:u,dropIndicator$:c,isEmpty:h,filter:v,getNodeKey:m,getNodePath:p,getCheckedNodes:y,getCheckedKeys:g,getCurrentNode:x,getCurrentKey:w,setCheckedNodes:b,setCheckedKeys:S,setChecked:E,getHalfCheckedNodes:O,getHalfCheckedKeys:I,setCurrentNode:N,setCurrentKey:P,t:n,getNode:L,remove:R,append:K,insertBefore:U,insertAfter:H,handleNodeExpand:V,updateKeyChildren:D}}});function PU(e,t,n,a,l,r){const s=Ze("el-tree-node");return _(),M("div",{ref:"el$",class:$([e.ns.b(),e.ns.is("dragging",!!e.dragState.draggingNode),e.ns.is("drop-not-allow",!e.dragState.allowDrop),e.ns.is("drop-inner",e.dragState.dropType==="inner"),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[(_(!0),M(ze,null,rt(e.root.childNodes,i=>(_(),ae(s,{key:e.getNodeKey(i),node:i,props:e.props,accordion:e.accordion,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent,onNodeExpand:e.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),e.isEmpty?(_(),M("div",{key:0,class:$(e.ns.e("empty-block"))},[Q(e.$slots,"empty",{},()=>{var i;return[k("span",{class:$(e.ns.e("empty-text"))},he((i=e.emptyText)!=null?i:e.t("el.tree.emptyText")),3)]})],2)):ee("v-if",!0),qe(k("div",{ref:"dropIndicator$",class:$(e.ns.e("drop-indicator"))},null,2),[[pt,e.dragState.showDropIndicator]])],2)}var zU=ve(IU,[["render",PU],["__file","tree.vue"]]);const ai=We(zU),AU=(e,{attrs:t,emit:n},{select:a,tree:l,key:r})=>{const s=de("tree-select");return ue(()=>e.data,()=>{e.filterable&&Ne(()=>{var u,c;(c=l.value)==null||c.filter((u=a.value)==null?void 0:u.states.inputValue)})},{flush:"post"}),{...ra(nn(e),Object.keys(Pl.props)),...t,"onUpdate:modelValue":u=>n(Ue,u),valueKey:r,popperClass:C(()=>{const u=[s.e("popper")];return e.popperClass&&u.push(e.popperClass),u.join(" ")}),filterMethod:(u="")=>{var c;e.filterMethod?e.filterMethod(u):e.remoteMethod?e.remoteMethod(u):(c=l.value)==null||c.filter(u)}}},VU=T({extends:js,setup(e,t){const n=js.setup(e,t);delete n.selectOptionClick;const a=et().proxy;return Ne(()=>{n.select.states.cachedOptions.get(a.value)||n.select.onOptionCreate(a)}),ue(()=>t.attrs.visible,l=>{n.states.visible=l},{immediate:!0}),n},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function Oc(e){return e||e===0}function Cf(e){return Ee(e)&&e.length}function Yl(e){return Ee(e)?e:Oc(e)?[e]:[]}function Ns(e,t,n,a,l){for(let r=0;r{ue(()=>e.modelValue,()=>{e.showCheckbox&&Ne(()=>{const h=r.value;h&&!dn(h.getCheckedKeys(),Yl(e.modelValue))&&h.setCheckedKeys(Yl(e.modelValue))})},{immediate:!0,deep:!0});const i=C(()=>({value:s.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...e.props})),u=(h,v)=>{var m;const p=i.value[h];return Je(p)?p(v,(m=r.value)==null?void 0:m.getNode(u("value",v))):v[p]},c=Yl(e.modelValue).map(h=>Ns(e.data||[],v=>u("value",v)===h,v=>u("children",v),(v,m,p,y)=>y&&u("value",y))).filter(h=>Oc(h)),d=C(()=>{if(!e.renderAfterExpand&&!e.lazy)return[];const h=[];return Is(e.data.concat(e.cacheData),v=>{const m=u("value",v);h.push({value:m,currentLabel:u("label",v),isDisabled:u("disabled",v)})},v=>u("children",v)),h}),f=()=>{var h;return(h=r.value)==null?void 0:h.getCheckedKeys().filter(v=>{var m;const p=(m=r.value)==null?void 0:m.getNode(v);return!Zt(p)&&Hn(p.childNodes)})};return{...ra(nn(e),Object.keys(ai.props)),...t,nodeKey:s,expandOnClickNode:C(()=>!e.checkStrictly&&e.expandOnClickNode),defaultExpandedKeys:C(()=>e.defaultExpandedKeys?e.defaultExpandedKeys.concat(c):c),renderContent:(h,{node:v,data:m,store:p})=>h(VU,{value:u("value",m),label:u("label",m),disabled:u("disabled",m),visible:v.visible},e.renderContent?()=>e.renderContent(h,{node:v,data:m,store:p}):n.default?()=>n.default({node:v,data:m,store:p}):void 0),filterNodeMethod:(h,v,m)=>e.filterNodeMethod?e.filterNodeMethod(h,v,m):h?new RegExp(Od(h),"i").test(u("label",v)||""):!0,onNodeClick:(h,v,m)=>{var p,y,g,x;if((p=t.onNodeClick)==null||p.call(t,h,v,m),!(e.showCheckbox&&e.checkOnClickNode)){if(!e.showCheckbox&&(e.checkStrictly||v.isLeaf)){if(!u("disabled",h)){const w=(y=l.value)==null?void 0:y.states.options.get(u("value",h));(g=l.value)==null||g.handleOptionSelect(w)}}else e.expandOnClickNode&&m.proxy.handleExpandIconClick();(x=l.value)==null||x.focus()}},onCheck:(h,v)=>{var m;if(!e.showCheckbox)return;const p=u("value",h),y={};Is([r.value.store.root],b=>y[b.key]=b,b=>b.childNodes);const g=v.checkedKeys,x=e.multiple?Yl(e.modelValue).filter(b=>!(b in y)&&!g.includes(b)):[],w=x.concat(g);if(e.checkStrictly)a(Ue,e.multiple?w:w.includes(p)?p:void 0);else if(e.multiple){const b=f();a(Ue,x.concat(b))}else{const b=Ns([h],O=>!Cf(u("children",O))&&!u("disabled",O),O=>u("children",O)),S=b?u("value",b):void 0,E=Oc(e.modelValue)&&!!Ns([h],O=>u("value",O)===e.modelValue,O=>u("children",O));a(Ue,S===e.modelValue||E?void 0:S)}Ne(()=>{var b;const S=Yl(e.modelValue);r.value.setCheckedKeys(S),(b=t.onCheck)==null||b.call(t,h,{checkedKeys:r.value.getCheckedKeys(),checkedNodes:r.value.getCheckedNodes(),halfCheckedKeys:r.value.getHalfCheckedKeys(),halfCheckedNodes:r.value.getHalfCheckedNodes()})}),(m=l.value)==null||m.focus()},onNodeExpand:(h,v,m)=>{var p;(p=t.onNodeExpand)==null||p.call(t,h,v,m),Ne(()=>{if(!e.checkStrictly&&e.lazy&&e.multiple&&v.checked){const y={},g=r.value.getCheckedKeys();Is([r.value.store.root],b=>y[b.key]=b,b=>b.childNodes);const x=Yl(e.modelValue).filter(b=>!(b in y)&&!g.includes(b)),w=f();a(Ue,x.concat(w))}})},cacheOptions:d}};var RU=T({props:{data:{type:Array,default:()=>[]}},setup(e){const t=Se(Ro);return ue(()=>e.data,()=>{var n;e.data.forEach(l=>{t.states.cachedOptions.has(l.value)||t.states.cachedOptions.set(l.value,l)});const a=((n=t.selectRef)==null?void 0:n.querySelectorAll("input"))||[];ut&&!Array.from(a).includes(document.activeElement)&&t.setSelected()},{flush:"post",immediate:!0}),()=>{}}});const BU=T({name:"ElTreeSelect",inheritAttrs:!1,props:{...Pl.props,...ai.props,cacheData:{type:Array,default:()=>[]}},setup(e,t){const{slots:n,expose:a}=t,l=A(),r=A(),s=C(()=>e.nodeKey||e.valueKey||"value"),i=AU(e,t,{select:l,tree:r,key:s}),{cacheOptions:u,...c}=LU(e,t,{select:l,tree:r,key:s}),d=_t({});return a(d),Xe(()=>{Object.assign(d,{...ra(r.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...ra(l.value,["focus","blur","selectedLabel"])})}),()=>Pe(Pl,_t({...i,ref:f=>l.value=f}),{...n,default:()=>[Pe(RU,{data:u.value}),Pe(ai,_t({...c,ref:f=>r.value=f}))]})}});var HU=ve(BU,[["__file","tree-select.vue"]]);const DU=We(HU),Sf=Symbol(),FU={key:-1,level:-1,data:{}};var Xo=(e=>(e.KEY="id",e.LABEL="label",e.CHILDREN="children",e.DISABLED="disabled",e.CLASS="",e))(Xo||{}),Nc=(e=>(e.ADD="add",e.DELETE="delete",e))(Nc||{});const g4={type:Number,default:26},KU=pe({data:{type:X(Array),default:()=>Vt([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:X(Object),default:()=>Vt({children:"children",label:"label",disabled:"disabled",value:"id",class:""})},highlightCurrent:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},defaultCheckedKeys:{type:X(Array),default:()=>Vt([])},checkStrictly:{type:Boolean,default:!1},defaultExpandedKeys:{type:X(Array),default:()=>Vt([])},indent:{type:Number,default:16},itemSize:g4,icon:{type:St},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!1},currentNodeKey:{type:X([String,Number])},accordion:{type:Boolean,default:!1},filterMethod:{type:X(Function)},perfMode:{type:Boolean,default:!0}}),WU=pe({node:{type:X(Object),default:()=>Vt(FU)},expanded:{type:Boolean,default:!1},checked:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},current:{type:Boolean,default:!1},hiddenExpandIcon:{type:Boolean,default:!1},itemSize:g4}),jU=pe({node:{type:X(Object),required:!0}}),y4="node-click",_4="node-drop",b4="node-expand",w4="node-collapse",C4="current-change",S4="check",k4="check-change",E4="node-contextmenu",qU={[y4]:(e,t,n)=>e&&t&&n,[_4]:(e,t,n)=>e&&t&&n,[b4]:(e,t)=>e&&t,[w4]:(e,t)=>e&&t,[C4]:(e,t)=>e&&t,[S4]:(e,t)=>e&&t,[k4]:(e,t)=>e&&Et(t),[E4]:(e,t,n)=>e&&t&&n},UU={click:(e,t)=>!!(e&&t),drop:(e,t)=>!!(e&&t),toggle:e=>!!e,check:(e,t)=>e&&Et(t)};function YU(e,t){const n=A(new Set),a=A(new Set),{emit:l}=et();ue([()=>t.value,()=>e.defaultCheckedKeys],()=>Ne(()=>{x(e.defaultCheckedKeys)}),{immediate:!0});const r=()=>{if(!t.value||!e.showCheckbox||e.checkStrictly)return;const{levelTreeNodeMap:w,maxLevel:b}=t.value,S=n.value,E=new Set;for(let O=b-1;O>=1;--O){const I=w.get(O);I&&I.forEach(N=>{const P=N.children;if(P){let L=!0,R=!1;for(const K of P){const U=K.key;if(S.has(U))R=!0;else if(E.has(U)){L=!1,R=!0;break}else L=!1}L?S.add(N.key):R?(E.add(N.key),S.delete(N.key)):(S.delete(N.key),E.delete(N.key))}})}a.value=E},s=w=>n.value.has(w.key),i=w=>a.value.has(w.key),u=(w,b,S=!0,E=!0)=>{const O=n.value,I=(N,P)=>{O[P?Nc.ADD:Nc.DELETE](N.key);const L=N.children;!e.checkStrictly&&L&&L.forEach(R=>{R.disabled||I(R,P)})};I(w,b),E&&r(),S&&c(w,b)},c=(w,b)=>{const{checkedNodes:S,checkedKeys:E}=m(),{halfCheckedNodes:O,halfCheckedKeys:I}=p();l(S4,w.data,{checkedKeys:E,checkedNodes:S,halfCheckedKeys:I,halfCheckedNodes:O}),l(k4,w.data,b)};function d(w=!1){return m(w).checkedKeys}function f(w=!1){return m(w).checkedNodes}function h(){return p().halfCheckedKeys}function v(){return p().halfCheckedNodes}function m(w=!1){const b=[],S=[];if(t!=null&&t.value&&e.showCheckbox){const{treeNodeMap:E}=t.value;n.value.forEach(O=>{const I=E.get(O);I&&(!w||w&&I.isLeaf)&&(S.push(O),b.push(I.data))})}return{checkedKeys:S,checkedNodes:b}}function p(){const w=[],b=[];if(t!=null&&t.value&&e.showCheckbox){const{treeNodeMap:S}=t.value;a.value.forEach(E=>{const O=S.get(E);O&&(b.push(E),w.push(O.data))})}return{halfCheckedNodes:w,halfCheckedKeys:b}}function y(w){n.value.clear(),a.value.clear(),Ne(()=>{x(w)})}function g(w,b){if(t!=null&&t.value&&e.showCheckbox){const S=t.value.treeNodeMap.get(w);S&&u(S,b,!1)}}function x(w){if(t!=null&&t.value){const{treeNodeMap:b}=t.value;if(e.showCheckbox&&b&&(w==null?void 0:w.length)>0){for(const S of w){const E=b.get(S);E&&!s(E)&&u(E,!0,!1,!1)}r()}}}return{updateCheckedKeys:r,toggleCheckbox:u,isChecked:s,isIndeterminate:i,getCheckedKeys:d,getCheckedNodes:f,getHalfCheckedKeys:h,getHalfCheckedNodes:v,setChecked:g,setCheckedKeys:y}}function GU(e,t){const n=A(new Set([])),a=A(new Set([])),l=C(()=>Je(e.filterMethod));function r(i){var u;if(!l.value)return;const c=new Set,d=a.value,f=n.value,h=[],v=((u=t.value)==null?void 0:u.treeNodes)||[],m=e.filterMethod;f.clear();function p(y){y.forEach(g=>{h.push(g),m!=null&&m(i,g.data,g)?h.forEach(w=>{c.add(w.key)}):g.isLeaf&&f.add(g.key);const x=g.children;if(x&&p(x),!g.isLeaf){if(!c.has(g.key))f.add(g.key);else if(x){let w=!0;for(const b of x)if(!f.has(b.key)){w=!1;break}w?d.add(g.key):d.delete(g.key)}}h.pop()})}return p(v),c}function s(i){return a.value.has(i.key)}return{hiddenExpandIconKeySet:a,hiddenNodeKeySet:n,doFilter:r,isForceHiddenExpandIcon:s}}function XU(e,t){const n=A(new Set(e.defaultExpandedKeys)),a=A(),l=Ot(),r=A();ue(()=>e.currentNodeKey,le=>{a.value=le},{immediate:!0}),ue(()=>e.data,le=>{se(le)},{immediate:!0});const{isIndeterminate:s,isChecked:i,toggleCheckbox:u,getCheckedKeys:c,getCheckedNodes:d,getHalfCheckedKeys:f,getHalfCheckedNodes:h,setChecked:v,setCheckedKeys:m}=YU(e,l),{doFilter:p,hiddenNodeKeySet:y,isForceHiddenExpandIcon:g}=GU(e,l),x=C(()=>{var le;return((le=e.props)==null?void 0:le.value)||Xo.KEY}),w=C(()=>{var le;return((le=e.props)==null?void 0:le.children)||Xo.CHILDREN}),b=C(()=>{var le;return((le=e.props)==null?void 0:le.disabled)||Xo.DISABLED}),S=C(()=>{var le;return((le=e.props)==null?void 0:le.label)||Xo.LABEL}),E=C(()=>{var le;const we=n.value,Le=y.value,De=[],Ye=((le=l.value)==null?void 0:le.treeNodes)||[],$e=[];for(let Te=Ye.length-1;Te>=0;--Te)$e.push(Ye[Te]);for(;$e.length;){const Te=$e.pop();if(!Le.has(Te.key)&&(De.push(Te),Te.children&&we.has(Te.key)))for(let ke=Te.children.length-1;ke>=0;--ke)$e.push(Te.children[ke])}return De}),O=C(()=>E.value.length>0);function I(le){const we=new Map,Le=new Map;let De=1;function Ye(Te,ke=1,He=void 0){var Ge;const at=[];for(const nt of Te){const be=L(nt),je={level:ke,key:be,data:nt};je.label=K(nt),je.parent=He;const ft=P(nt);je.disabled=R(nt),je.isLeaf=!ft||ft.length===0,ft&&ft.length&&(je.children=Ye(ft,ke+1,je)),at.push(je),we.set(be,je),Le.has(ke)||Le.set(ke,[]),(Ge=Le.get(ke))==null||Ge.push(je)}return ke>De&&(De=ke),at}const $e=Ye(le);return{treeNodeMap:we,levelTreeNodeMap:Le,maxLevel:De,treeNodes:$e}}function N(le){const we=p(le);we&&(n.value=we)}function P(le){return le[w.value]}function L(le){return le?le[x.value]:""}function R(le){return le[b.value]}function K(le){return le[S.value]}function U(le){n.value.has(le.key)?W(le):F(le)}function H(le){const we=new Set,Le=l.value.treeNodeMap;le.forEach(De=>{let Ye=Le.get(De);for(;Ye&&!we.has(Ye.key);)we.add(Ye.key),Ye=Ye.parent}),n.value=we}function V(le,we){t(y4,le.data,le,we),B(le),e.expandOnClickNode&&U(le),e.showCheckbox&&e.checkOnClickNode&&!le.disabled&&u(le,!i(le),!0)}function D(le,we){t(_4,le.data,le,we)}function B(le){ne(le)||(a.value=le.key,t(C4,le.data,le))}function z(le,we){u(le,we)}function F(le){const we=n.value;if(l.value&&e.accordion){const{treeNodeMap:Le}=l.value;we.forEach(De=>{const Ye=Le.get(De);le&&le.level===(Ye==null?void 0:Ye.level)&&we.delete(De)})}we.add(le.key),t(b4,le.data,le)}function W(le){n.value.delete(le.key),t(w4,le.data,le)}function Z(le){return n.value.has(le.key)}function j(le){return!!le.disabled}function ne(le){const we=a.value;return we!==void 0&&we===le.key}function oe(){var le,we;if(a.value)return(we=(le=l.value)==null?void 0:le.treeNodeMap.get(a.value))==null?void 0:we.data}function ce(){return a.value}function te(le){a.value=le}function se(le){Ne(()=>l.value=I(le))}function fe(le){var we;const Le=ht(le)?L(le):le;return(we=l.value)==null?void 0:we.treeNodeMap.get(Le)}function xe(le,we="auto"){const Le=fe(le);Le&&r.value&&r.value.scrollToItem(E.value.indexOf(Le),we)}function me(le){var we;(we=r.value)==null||we.scrollTo(le)}return{tree:l,flattenTree:E,isNotEmpty:O,listRef:r,getKey:L,getChildren:P,toggleExpand:U,toggleCheckbox:u,isExpanded:Z,isChecked:i,isIndeterminate:s,isDisabled:j,isCurrent:ne,isForceHiddenExpandIcon:g,handleNodeClick:V,handleNodeDrop:D,handleNodeCheck:z,getCurrentNode:oe,getCurrentKey:ce,setCurrentKey:te,getCheckedKeys:c,getCheckedNodes:d,getHalfCheckedKeys:f,getHalfCheckedNodes:h,setChecked:v,setCheckedKeys:m,filter:N,setData:se,getNode:fe,expandNode:F,collapseNode:W,setExpandedKeys:H,scrollToNode:xe,scrollTo:me}}var ZU=T({name:"ElTreeNodeContent",props:jU,setup(e){const t=Se(Sf),n=de("tree");return()=>{const a=e.node,{data:l}=a;return t!=null&&t.ctx.slots.default?t.ctx.slots.default({node:a,data:l}):Pe("span",{class:n.be("node","label")},[a==null?void 0:a.label])}}});const JU=T({name:"ElTreeNode"}),QU=T({...JU,props:WU,emits:UU,setup(e,{emit:t}){const n=e,a=Se(Sf),l=de("tree"),r=C(()=>{var v;return(v=a==null?void 0:a.props.indent)!=null?v:16}),s=C(()=>{var v;return(v=a==null?void 0:a.props.icon)!=null?v:rd}),i=v=>{const m=a==null?void 0:a.props.props.class;if(!m)return{};let p;if(Je(m)){const{data:y}=v;p=m(y,v)}else p=m;return Ve(p)?{[p]:!0}:p},u=v=>{t("click",n.node,v)},c=v=>{t("drop",n.node,v)},d=()=>{t("toggle",n.node)},f=v=>{t("check",n.node,v)},h=v=>{var m,p,y,g;(y=(p=(m=a==null?void 0:a.instance)==null?void 0:m.vnode)==null?void 0:p.props)!=null&&y.onNodeContextmenu&&(v.stopPropagation(),v.preventDefault()),a==null||a.ctx.emit(E4,v,(g=n.node)==null?void 0:g.data,n.node)};return(v,m)=>{var p,y,g;return _(),M("div",{ref:"node$",class:$([o(l).b("node"),o(l).is("expanded",v.expanded),o(l).is("current",v.current),o(l).is("focusable",!v.disabled),o(l).is("checked",!v.disabled&&v.checked),i(v.node)]),role:"treeitem",tabindex:"-1","aria-expanded":v.expanded,"aria-disabled":v.disabled,"aria-checked":v.checked,"data-key":(p=v.node)==null?void 0:p.key,onClick:Ae(u,["stop"]),onContextmenu:h,onDragover:Ae(()=>{},["prevent"]),onDragenter:Ae(()=>{},["prevent"]),onDrop:Ae(c,["stop"])},[k("div",{class:$(o(l).be("node","content")),style:Oe({paddingLeft:`${(v.node.level-1)*o(r)}px`,height:v.itemSize+"px"})},[o(s)?(_(),ae(o(Me),{key:0,class:$([o(l).is("leaf",!!((y=v.node)!=null&&y.isLeaf)),o(l).is("hidden",v.hiddenExpandIcon),{expanded:!((g=v.node)!=null&&g.isLeaf)&&v.expanded},o(l).be("node","expand-icon")]),onClick:Ae(d,["stop"])},{default:G(()=>[(_(),ae(Qe(o(s))))]),_:1},8,["class","onClick"])):ee("v-if",!0),v.showCheckbox?(_(),ae(o(Qn),{key:1,"model-value":v.checked,indeterminate:v.indeterminate,disabled:v.disabled,onChange:f,onClick:Ae(()=>{},["stop"])},null,8,["model-value","indeterminate","disabled","onClick"])):ee("v-if",!0),q(o(ZU),{node:v.node},null,8,["node"])],6)],42,["aria-expanded","aria-disabled","aria-checked","data-key","onClick","onDragover","onDragenter","onDrop"])}}});var eY=ve(QU,[["__file","tree-node.vue"]]);const tY=T({name:"ElTreeV2"}),nY=T({...tY,props:KU,emits:qU,setup(e,{expose:t,emit:n}){const a=e,l=Xt(),r=C(()=>a.itemSize);it(Sf,{ctx:{emit:n,slots:l},props:a,instance:et()}),it(Sa,void 0);const{t:s}=ct(),i=de("tree"),{flattenTree:u,isNotEmpty:c,listRef:d,toggleExpand:f,isExpanded:h,isIndeterminate:v,isChecked:m,isDisabled:p,isCurrent:y,isForceHiddenExpandIcon:g,handleNodeClick:x,handleNodeDrop:w,handleNodeCheck:b,toggleCheckbox:S,getCurrentNode:E,getCurrentKey:O,setCurrentKey:I,getCheckedKeys:N,getCheckedNodes:P,getHalfCheckedKeys:L,getHalfCheckedNodes:R,setChecked:K,setCheckedKeys:U,filter:H,setData:V,getNode:D,expandNode:B,collapseNode:z,setExpandedKeys:F,scrollToNode:W,scrollTo:Z}=XU(a,n);return t({toggleCheckbox:S,getCurrentNode:E,getCurrentKey:O,setCurrentKey:I,getCheckedKeys:N,getCheckedNodes:P,getHalfCheckedKeys:L,getHalfCheckedNodes:R,setChecked:K,setCheckedKeys:U,filter:H,setData:V,getNode:D,expandNode:B,collapseNode:z,setExpandedKeys:F,scrollToNode:W,scrollTo:Z}),(j,ne)=>(_(),M("div",{class:$([o(i).b(),{[o(i).m("highlight-current")]:j.highlightCurrent}]),role:"tree"},[o(c)?(_(),ae(o(sm),{key:0,ref_key:"listRef",ref:d,"class-name":o(i).b("virtual-list"),data:o(u),total:o(u).length,height:j.height,"item-size":o(r),"perf-mode":j.perfMode},{default:G(({data:oe,index:ce,style:te})=>[(_(),ae(eY,{key:oe[ce].key,style:Oe(te),node:oe[ce],expanded:o(h)(oe[ce]),"show-checkbox":j.showCheckbox,checked:o(m)(oe[ce]),indeterminate:o(v)(oe[ce]),"item-size":o(r),disabled:o(p)(oe[ce]),current:o(y)(oe[ce]),"hidden-expand-icon":o(g)(oe[ce]),onClick:o(x),onToggle:o(f),onCheck:o(b),onDrop:o(w)},null,8,["style","node","expanded","show-checkbox","checked","indeterminate","item-size","disabled","current","hidden-expand-icon","onClick","onToggle","onCheck","onDrop"]))]),_:1},8,["class-name","data","total","height","item-size","perf-mode"])):(_(),M("div",{key:1,class:$(o(i).e("empty-block"))},[Q(j.$slots,"empty",{},()=>{var oe;return[k("span",{class:$(o(i).e("empty-text"))},he((oe=j.emptyText)!=null?oe:o(s)("el.tree.emptyText")),3)]})],2))],2))}});var aY=ve(nY,[["__file","tree.vue"]]);const lY=We(aY),x4=Symbol("uploadContextKey"),oY="ElUpload";class rY extends Error{constructor(t,n,a,l){super(t),this.name="UploadAjaxError",this.status=n,this.method=a,this.url=l}}function vp(e,t,n){let a;return n.response?a=`${n.response.error||n.response}`:n.responseText?a=`${n.responseText}`:a=`fail to ${t.method} ${e} ${n.status}`,new rY(a,n.status,t.method,e)}function sY(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const iY=e=>{typeof XMLHttpRequest>"u"&&Gt(oY,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener("progress",r=>{const s=r;s.percent=r.total>0?r.loaded/r.total*100:0,e.onProgress(s)});const a=new FormData;if(e.data)for(const[r,s]of Object.entries(e.data))Ee(s)&&s.length?a.append(r,...s):a.append(r,s);a.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(vp(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(vp(n,e,t));e.onSuccess(sY(t))}),t.open(e.method,n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const l=e.headers||{};if(l instanceof Headers)l.forEach((r,s)=>t.setRequestHeader(s,r));else for(const[r,s]of Object.entries(l))Zt(s)||t.setRequestHeader(r,String(s));return t.send(a),t},M4=["text","picture","picture-card"];let uY=1;const Ic=()=>Date.now()+uY++,$4=pe({action:{type:String,default:"#"},headers:{type:X(Object)},method:{type:String,default:"post"},data:{type:X([Object,Function,Promise]),default:()=>Vt({})},multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:X(Array),default:()=>Vt([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:M4,default:"text"},httpRequest:{type:X(Function),default:iY},disabled:Boolean,limit:Number}),cY=pe({...$4,beforeUpload:{type:X(Function),default:zt},beforeRemove:{type:X(Function)},onRemove:{type:X(Function),default:zt},onChange:{type:X(Function),default:zt},onPreview:{type:X(Function),default:zt},onSuccess:{type:X(Function),default:zt},onProgress:{type:X(Function),default:zt},onError:{type:X(Function),default:zt},onExceed:{type:X(Function),default:zt},crossorigin:{type:X(String)}}),dY=pe({files:{type:X(Array),default:()=>Vt([])},disabled:{type:Boolean,default:!1},handlePreview:{type:X(Function),default:zt},listType:{type:String,values:M4,default:"text"},crossorigin:{type:X(String)}}),fY={remove:e=>!!e},pY=T({name:"ElUploadList"}),vY=T({...pY,props:dY,emits:fY,setup(e,{emit:t}){const n=e,{t:a}=ct(),l=de("upload"),r=de("icon"),s=de("list"),i=gn(),u=A(!1),c=C(()=>[l.b("list"),l.bm("list",n.listType),l.is("disabled",n.disabled)]),d=f=>{t("remove",f)};return(f,h)=>(_(),ae(Mp,{tag:"ul",class:$(o(c)),name:o(s).b()},{default:G(()=>[(_(!0),M(ze,null,rt(f.files,(v,m)=>(_(),M("li",{key:v.uid||v.name,class:$([o(l).be("list","item"),o(l).is(v.status),{focusing:u.value}]),tabindex:"0",onKeydown:kt(p=>!o(i)&&d(v),["delete"]),onFocus:p=>u.value=!0,onBlur:p=>u.value=!1,onClick:p=>u.value=!1},[Q(f.$slots,"default",{file:v,index:m},()=>[f.listType==="picture"||v.status!=="uploading"&&f.listType==="picture-card"?(_(),M("img",{key:0,class:$(o(l).be("list","item-thumbnail")),src:v.url,crossorigin:f.crossorigin,alt:""},null,10,["src","crossorigin"])):ee("v-if",!0),v.status==="uploading"||f.listType!=="picture-card"?(_(),M("div",{key:1,class:$(o(l).be("list","item-info"))},[k("a",{class:$(o(l).be("list","item-name")),onClick:Ae(p=>f.handlePreview(v),["prevent"])},[q(o(Me),{class:$(o(r).m("document"))},{default:G(()=>[q(o(H1))]),_:1},8,["class"]),k("span",{class:$(o(l).be("list","item-file-name")),title:v.name},he(v.name),11,["title"])],10,["onClick"]),v.status==="uploading"?(_(),ae(o(Zh),{key:0,type:f.listType==="picture-card"?"circle":"line","stroke-width":f.listType==="picture-card"?6:2,percentage:Number(v.percentage),style:Oe(f.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):ee("v-if",!0)],2)):ee("v-if",!0),k("label",{class:$(o(l).be("list","item-status-label"))},[f.listType==="text"?(_(),ae(o(Me),{key:0,class:$([o(r).m("upload-success"),o(r).m("circle-check")])},{default:G(()=>[q(o(wi))]),_:1},8,["class"])):["picture-card","picture"].includes(f.listType)?(_(),ae(o(Me),{key:1,class:$([o(r).m("upload-success"),o(r).m("check")])},{default:G(()=>[q(o(zo))]),_:1},8,["class"])):ee("v-if",!0)],2),o(i)?ee("v-if",!0):(_(),ae(o(Me),{key:2,class:$(o(r).m("close")),onClick:p=>d(v)},{default:G(()=>[q(o(Xn))]),_:2},1032,["class","onClick"])),ee(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),ee(" This is a bug which needs to be fixed "),ee(" TODO: Fix the incorrect navigation interaction "),o(i)?ee("v-if",!0):(_(),M("i",{key:3,class:$(o(r).m("close-tip"))},he(o(a)("el.upload.deleteTip")),3)),f.listType==="picture-card"?(_(),M("span",{key:4,class:$(o(l).be("list","item-actions"))},[k("span",{class:$(o(l).be("list","item-preview")),onClick:p=>f.handlePreview(v)},[q(o(Me),{class:$(o(r).m("zoom-in"))},{default:G(()=>[q(o(cd))]),_:1},8,["class"])],10,["onClick"]),o(i)?ee("v-if",!0):(_(),M("span",{key:0,class:$(o(l).be("list","item-delete")),onClick:p=>d(v)},[q(o(Me),{class:$(o(r).m("delete"))},{default:G(()=>[q(o(B1))]),_:1},8,["class"])],10,["onClick"]))],2)):ee("v-if",!0)])],42,["onKeydown","onFocus","onBlur","onClick"]))),128)),Q(f.$slots,"append")]),_:3},8,["class","name"]))}});var hp=ve(vY,[["__file","upload-list.vue"]]);const hY=pe({disabled:{type:Boolean,default:!1}}),mY={file:e=>Ee(e)},T4="ElUploadDrag",gY=T({name:T4}),yY=T({...gY,props:hY,emits:mY,setup(e,{emit:t}){Se(x4)||Gt(T4,"usage: ");const a=de("upload"),l=A(!1),r=gn(),s=u=>{if(r.value)return;l.value=!1,u.stopPropagation();const c=Array.from(u.dataTransfer.files);t("file",c)},i=()=>{r.value||(l.value=!0)};return(u,c)=>(_(),M("div",{class:$([o(a).b("dragger"),o(a).is("dragover",l.value)]),onDrop:Ae(s,["prevent"]),onDragover:Ae(i,["prevent"]),onDragleave:Ae(d=>l.value=!1,["prevent"])},[Q(u.$slots,"default")],42,["onDrop","onDragover","onDragleave"]))}});var _Y=ve(yY,[["__file","upload-dragger.vue"]]);const bY=pe({...$4,beforeUpload:{type:X(Function),default:zt},onRemove:{type:X(Function),default:zt},onStart:{type:X(Function),default:zt},onSuccess:{type:X(Function),default:zt},onProgress:{type:X(Function),default:zt},onError:{type:X(Function),default:zt},onExceed:{type:X(Function),default:zt}}),wY=T({name:"ElUploadContent",inheritAttrs:!1}),CY=T({...wY,props:bY,setup(e,{expose:t}){const n=e,a=de("upload"),l=gn(),r=Ot({}),s=Ot(),i=p=>{if(p.length===0)return;const{autoUpload:y,limit:g,fileList:x,multiple:w,onStart:b,onExceed:S}=n;if(g&&x.length+p.length>g){S(p,x);return}w||(p=p.slice(0,1));for(const E of p){const O=E;O.uid=Ic(),b(O),y&&u(O)}},u=async p=>{if(s.value.value="",!n.beforeUpload)return d(p);let y,g={};try{const w=n.data,b=n.beforeUpload(p);g=ku(n.data)?Rs(n.data):n.data,y=await b,ku(n.data)&&dn(w,g)&&(g=Rs(n.data))}catch{y=!1}if(y===!1){n.onRemove(p);return}let x=p;y instanceof Blob&&(y instanceof File?x=y:x=new File([y],p.name,{type:p.type})),d(Object.assign(x,{uid:p.uid}),g)},c=async(p,y)=>Je(p)?p(y):p,d=async(p,y)=>{const{headers:g,data:x,method:w,withCredentials:b,name:S,action:E,onProgress:O,onSuccess:I,onError:N,httpRequest:P}=n;try{y=await c(y??x,p)}catch{n.onRemove(p);return}const{uid:L}=p,R={headers:g||{},withCredentials:b,file:p,data:y,method:w,filename:S,action:E,onProgress:U=>{O(U,p)},onSuccess:U=>{I(U,p),delete r.value[L]},onError:U=>{N(U,p),delete r.value[L]}},K=P(R);r.value[L]=K,K instanceof Promise&&K.then(R.onSuccess,R.onError)},f=p=>{const y=p.target.files;y&&i(Array.from(y))},h=()=>{l.value||(s.value.value="",s.value.click())},v=()=>{h()};return t({abort:p=>{T1(r.value).filter(p?([g])=>String(p.uid)===g:()=>!0).forEach(([g,x])=>{x instanceof XMLHttpRequest&&x.abort(),delete r.value[g]})},upload:u}),(p,y)=>(_(),M("div",{class:$([o(a).b(),o(a).m(p.listType),o(a).is("drag",p.drag),o(a).is("disabled",o(l))]),tabindex:o(l)?"-1":"0",onClick:h,onKeydown:kt(Ae(v,["self"]),["enter","space"])},[p.drag?(_(),ae(_Y,{key:0,disabled:o(l),onFile:i},{default:G(()=>[Q(p.$slots,"default")]),_:3},8,["disabled"])):Q(p.$slots,"default",{key:1}),k("input",{ref_key:"inputRef",ref:s,class:$(o(a).e("input")),name:p.name,disabled:o(l),multiple:p.multiple,accept:p.accept,type:"file",onChange:f,onClick:Ae(()=>{},["stop"])},null,42,["name","disabled","multiple","accept","onClick"])],42,["tabindex","onKeydown"]))}});var mp=ve(CY,[["__file","upload-content.vue"]]);const gp="ElUpload",yp=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},SY=(e,t)=>{const n=w1(e,"fileList",void 0,{passive:!0}),a=v=>n.value.find(m=>m.uid===v.uid);function l(v){var m;(m=t.value)==null||m.abort(v)}function r(v=["ready","uploading","success","fail"]){n.value=n.value.filter(m=>!v.includes(m.status))}function s(v){n.value=n.value.filter(m=>m.uid!==v.uid)}const i=(v,m)=>{const p=a(m);p&&(console.error(v),p.status="fail",s(p),e.onError(v,p,n.value),e.onChange(p,n.value))},u=(v,m)=>{const p=a(m);p&&(e.onProgress(v,p,n.value),p.status="uploading",p.percentage=Math.round(v.percent))},c=(v,m)=>{const p=a(m);p&&(p.status="success",p.response=v,e.onSuccess(v,p,n.value),e.onChange(p,n.value))},d=v=>{Zt(v.uid)&&(v.uid=Ic());const m={name:v.name,percentage:0,status:"ready",size:v.size,raw:v,uid:v.uid};if(e.listType==="picture-card"||e.listType==="picture")try{m.url=URL.createObjectURL(v)}catch(p){p.message,e.onError(p,m,n.value)}n.value=[...n.value,m],e.onChange(m,n.value)},f=async v=>{const m=v instanceof File?a(v):v;m||Gt(gp,"file to be removed not found");const p=y=>{l(y),s(y),e.onRemove(y,n.value),yp(y)};e.beforeRemove?await e.beforeRemove(m,n.value)!==!1&&p(m):p(m)};function h(){n.value.filter(({status:v})=>v==="ready").forEach(({raw:v})=>{var m;return v&&((m=t.value)==null?void 0:m.upload(v))})}return ue(()=>e.listType,v=>{v!=="picture-card"&&v!=="picture"||(n.value=n.value.map(m=>{const{raw:p,url:y}=m;if(!y&&p)try{m.url=URL.createObjectURL(p)}catch(g){e.onError(g,m,n.value)}return m}))}),ue(n,v=>{for(const m of v)m.uid||(m.uid=Ic()),m.status||(m.status="success")},{immediate:!0,deep:!0}),{uploadFiles:n,abort:l,clearFiles:r,handleError:i,handleProgress:u,handleStart:d,handleSuccess:c,handleRemove:f,submit:h,revokeFileObjectURL:yp}},kY=T({name:"ElUpload"}),EY=T({...kY,props:cY,setup(e,{expose:t}){const n=e,a=gn(),l=Ot(),{abort:r,submit:s,clearFiles:i,uploadFiles:u,handleStart:c,handleError:d,handleRemove:f,handleSuccess:h,handleProgress:v,revokeFileObjectURL:m}=SY(n,l),p=C(()=>n.listType==="picture-card"),y=C(()=>({...n,fileList:u.value,onStart:c,onProgress:v,onSuccess:h,onError:d,onRemove:f}));return $t(()=>{u.value.forEach(m)}),it(x4,{accept:yt(n,"accept")}),t({abort:r,submit:s,clearFiles:i,handleStart:c,handleRemove:f}),(g,x)=>(_(),M("div",null,[o(p)&&g.showFileList?(_(),ae(hp,{key:0,disabled:o(a),"list-type":g.listType,files:o(u),crossorigin:g.crossorigin,"handle-preview":g.onPreview,onRemove:o(f)},Yn({append:G(()=>[q(mp,tt({ref_key:"uploadRef",ref:l},o(y)),{default:G(()=>[g.$slots.trigger?Q(g.$slots,"trigger",{key:0}):ee("v-if",!0),!g.$slots.trigger&&g.$slots.default?Q(g.$slots,"default",{key:1}):ee("v-if",!0)]),_:3},16)]),_:2},[g.$slots.file?{name:"default",fn:G(({file:w,index:b})=>[Q(g.$slots,"file",{file:w,index:b})])}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):ee("v-if",!0),!o(p)||o(p)&&!g.showFileList?(_(),ae(mp,tt({key:1,ref_key:"uploadRef",ref:l},o(y)),{default:G(()=>[g.$slots.trigger?Q(g.$slots,"trigger",{key:0}):ee("v-if",!0),!g.$slots.trigger&&g.$slots.default?Q(g.$slots,"default",{key:1}):ee("v-if",!0)]),_:3},16)):ee("v-if",!0),g.$slots.trigger?Q(g.$slots,"default",{key:2}):ee("v-if",!0),Q(g.$slots,"tip"),!o(p)&&g.showFileList?(_(),ae(hp,{key:3,disabled:o(a),"list-type":g.listType,files:o(u),crossorigin:g.crossorigin,"handle-preview":g.onPreview,onRemove:o(f)},Yn({_:2},[g.$slots.file?{name:"default",fn:G(({file:w,index:b})=>[Q(g.$slots,"file",{file:w,index:b})])}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):ee("v-if",!0)]))}});var xY=ve(EY,[["__file","upload.vue"]]);const MY=We(xY),$Y=pe({zIndex:{type:Number,default:9},rotate:{type:Number,default:-22},width:Number,height:Number,image:String,content:{type:X([String,Array]),default:"Element Plus"},font:{type:X(Object)},gap:{type:X(Array),default:()=>[100,100]},offset:{type:X(Array)}});function TY(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function OY(e){return Object.keys(e).map(t=>`${TY(t)}: ${e[t]};`).join(" ")}function NY(){return window.devicePixelRatio||1}const IY=(e,t)=>{let n=!1;return e.removedNodes.length&&t&&(n=Array.from(e.removedNodes).includes(t)),e.type==="attributes"&&e.target===t&&(n=!0),n},O4=3;function wu(e,t,n=1){const a=document.createElement("canvas"),l=a.getContext("2d"),r=e*n,s=t*n;return a.setAttribute("width",`${r}px`),a.setAttribute("height",`${s}px`),l.save(),[l,a,r,s]}function PY(){function e(t,n,a,l,r,s,i,u){const[c,d,f,h]=wu(l,r,a);if(t instanceof HTMLImageElement)c.drawImage(t,0,0,f,h);else{const{color:W,fontSize:Z,fontStyle:j,fontWeight:ne,fontFamily:oe,textAlign:ce,textBaseline:te}=s,se=Number(Z)*a;c.font=`${j} normal ${ne} ${se}px/${r}px ${oe}`,c.fillStyle=W,c.textAlign=ce,c.textBaseline=te;const fe=Ee(t)?t:[t];fe==null||fe.forEach((xe,me)=>{c.fillText(xe??"",f/2,me*(se+O4*a))})}const v=Math.PI/180*Number(n),m=Math.max(l,r),[p,y,g]=wu(m,m,a);p.translate(g/2,g/2),p.rotate(v),f>0&&h>0&&p.drawImage(d,-f/2,-h/2);function x(W,Z){const j=W*Math.cos(v)-Z*Math.sin(v),ne=W*Math.sin(v)+Z*Math.cos(v);return[j,ne]}let w=0,b=0,S=0,E=0;const O=f/2,I=h/2;[[0-O,0-I],[0+O,0-I],[0+O,0+I],[0-O,0+I]].forEach(([W,Z])=>{const[j,ne]=x(W,Z);w=Math.min(w,j),b=Math.max(b,j),S=Math.min(S,ne),E=Math.max(E,ne)});const P=w+g/2,L=S+g/2,R=b-w,K=E-S,U=i*a,H=u*a,V=(R+U)*2,D=K+H,[B,z]=wu(V,D);function F(W=0,Z=0){B.drawImage(y,P,L,R,K,W,Z,R,K)}return F(),F(R+U,-K/2-H/2),F(R+U,+K/2+H/2),[z.toDataURL(),V/a,D/a]}return e}const zY=T({name:"ElWatermark"}),AY=T({...zY,props:$Y,setup(e){const t=e,n={position:"relative"},a=C(()=>{var P,L;return(L=(P=t.font)==null?void 0:P.color)!=null?L:"rgba(0,0,0,.15)"}),l=C(()=>{var P,L;return(L=(P=t.font)==null?void 0:P.fontSize)!=null?L:16}),r=C(()=>{var P,L;return(L=(P=t.font)==null?void 0:P.fontWeight)!=null?L:"normal"}),s=C(()=>{var P,L;return(L=(P=t.font)==null?void 0:P.fontStyle)!=null?L:"normal"}),i=C(()=>{var P,L;return(L=(P=t.font)==null?void 0:P.fontFamily)!=null?L:"sans-serif"}),u=C(()=>{var P,L;return(L=(P=t.font)==null?void 0:P.textAlign)!=null?L:"center"}),c=C(()=>{var P,L;return(L=(P=t.font)==null?void 0:P.textBaseline)!=null?L:"hanging"}),d=C(()=>t.gap[0]),f=C(()=>t.gap[1]),h=C(()=>d.value/2),v=C(()=>f.value/2),m=C(()=>{var P,L;return(L=(P=t.offset)==null?void 0:P[0])!=null?L:h.value}),p=C(()=>{var P,L;return(L=(P=t.offset)==null?void 0:P[1])!=null?L:v.value}),y=()=>{const P={zIndex:t.zIndex,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let L=m.value-h.value,R=p.value-v.value;return L>0&&(P.left=`${L}px`,P.width=`calc(100% - ${L}px)`,L=0),R>0&&(P.top=`${R}px`,P.height=`calc(100% - ${R}px)`,R=0),P.backgroundPosition=`${L}px ${R}px`,P},g=Ot(null),x=Ot(),w=A(!1),b=()=>{x.value&&(x.value.remove(),x.value=void 0)},S=(P,L)=>{var R;g.value&&x.value&&(w.value=!0,x.value.setAttribute("style",OY({...y(),backgroundImage:`url('${P}')`,backgroundSize:`${Math.floor(L)}px`})),(R=g.value)==null||R.append(x.value),setTimeout(()=>{w.value=!1}))},E=P=>{let L=120,R=64;const K=t.image,U=t.content,H=t.width,V=t.height;if(!K&&P.measureText){P.font=`${Number(l.value)}px ${i.value}`;const D=Ee(U)?U:[U],B=D.map(z=>{const F=P.measureText(z);return[F.width,F.fontBoundingBoxAscent!==void 0?F.fontBoundingBoxAscent+F.fontBoundingBoxDescent:F.actualBoundingBoxAscent+F.actualBoundingBoxDescent]});L=Math.ceil(Math.max(...B.map(z=>z[0]))),R=Math.ceil(Math.max(...B.map(z=>z[1])))*D.length+(D.length-1)*O4}return[H??L,V??R]},O=PY(),I=()=>{const L=document.createElement("canvas").getContext("2d"),R=t.image,K=t.content,U=t.rotate;if(L){x.value||(x.value=document.createElement("div"));const H=NY(),[V,D]=E(L),B=z=>{const[F,W]=O(z||"",U,H,V,D,{color:a.value,fontSize:l.value,fontStyle:s.value,fontWeight:r.value,fontFamily:i.value,textAlign:u.value,textBaseline:c.value},d.value,f.value);S(F,W)};if(R){const z=new Image;z.onload=()=>{B(z)},z.onerror=()=>{B(K)},z.crossOrigin="anonymous",z.referrerPolicy="no-referrer",z.src=R}else B(K)}};return Xe(()=>{I()}),ue(()=>t,()=>{I()},{deep:!0,flush:"post"}),$t(()=>{b()}),b1(g,P=>{w.value||P.forEach(L=>{IY(L,x.value)&&(b(),I())})},{attributes:!0,subtree:!0,childList:!0}),(P,L)=>(_(),M("div",{ref_key:"containerRef",ref:g,style:Oe([n])},[Q(P.$slots,"default")],4))}});var VY=ve(AY,[["__file","watermark.vue"]]);const LY=We(VY),RY=pe({zIndex:{type:Number,default:1001},visible:Boolean,fill:{type:String,default:"rgba(0,0,0,0.5)"},pos:{type:X(Object)},targetAreaClickable:{type:Boolean,default:!0}}),BY=(e,t,n,a,l)=>{const r=A(null),s=()=>{let f;return Ve(e.value)?f=document.querySelector(e.value):Je(e.value)?f=e.value():f=e.value,f},i=()=>{const f=s();if(!f||!t.value){r.value=null;return}HY(f)||f.scrollIntoView(l.value);const{left:h,top:v,width:m,height:p}=f.getBoundingClientRect();r.value={left:h,top:v,width:m,height:p,radius:0}};Xe(()=>{ue([t,e],()=>{i()},{immediate:!0}),window.addEventListener("resize",i)}),$t(()=>{window.removeEventListener("resize",i)});const u=f=>{var h;return(h=Ee(n.value.offset)?n.value.offset[f]:n.value.offset)!=null?h:6},c=C(()=>{var f;if(!r.value)return r.value;const h=u(0),v=u(1),m=((f=n.value)==null?void 0:f.radius)||2;return{left:r.value.left-h,top:r.value.top-v,width:r.value.width+h*2,height:r.value.height+v*2,radius:m}}),d=C(()=>{const f=s();return!a.value||!f||!window.DOMRect?f||void 0:{getBoundingClientRect(){var h,v,m,p;return window.DOMRect.fromRect({width:((h=c.value)==null?void 0:h.width)||0,height:((v=c.value)==null?void 0:v.height)||0,x:((m=c.value)==null?void 0:m.left)||0,y:((p=c.value)==null?void 0:p.top)||0})}}});return{mergedPosInfo:c,triggerTarget:d}},Hi=Symbol("ElTour");function HY(e){const t=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,{top:a,right:l,bottom:r,left:s}=e.getBoundingClientRect();return a>=0&&s>=0&&l<=t&&r<=n}const DY=(e,t,n,a,l,r,s,i)=>{const u=A(),c=A(),d=A({}),f={x:u,y:c,placement:a,strategy:l,middlewareData:d},h=C(()=>{const g=[c4(o(r)),jq(),Wq(),FY()];return o(i)&&o(n)&&g.push(d4({element:o(n)})),g}),v=async()=>{if(!ut)return;const g=o(e),x=o(t);if(!g||!x)return;const w=await f4(g,x,{placement:o(a),strategy:o(l),middleware:o(h)});fo(f).forEach(b=>{f[b].value=w[b]})},m=C(()=>{if(!o(e))return{position:"fixed",top:"50%",left:"50%",transform:"translate3d(-50%, -50%, 0)",maxWidth:"100vw",zIndex:o(s)};const{overflow:g}=o(d);return{position:o(l),zIndex:o(s),top:o(c)!=null?`${o(c)}px`:"",left:o(u)!=null?`${o(u)}px`:"",maxWidth:g!=null&&g.maxWidth?`${g==null?void 0:g.maxWidth}px`:""}}),p=C(()=>{if(!o(i))return{};const{arrow:g}=o(d);return{left:(g==null?void 0:g.x)!=null?`${g==null?void 0:g.x}px`:"",top:(g==null?void 0:g.y)!=null?`${g==null?void 0:g.y}px`:""}});let y;return Xe(()=>{const g=o(e),x=o(t);g&&x&&(y=Fq(g,x,v)),cn(()=>{v()})}),$t(()=>{y&&y()}),{update:v,contentStyle:m,arrowStyle:p}},FY=()=>({name:"overflow",async fn(e){const t=await Kq(e);let n=0;return t.left>0&&(n=t.left),t.right>0&&(n=t.right),{data:{maxWidth:e.rects.floating.width-n}}}}),KY=T({name:"ElTourMask",inheritAttrs:!1}),WY=T({...KY,props:RY,setup(e){const t=e,{ns:n}=Se(Hi),a=C(()=>{var i,u;return(u=(i=t.pos)==null?void 0:i.radius)!=null?u:2}),l=C(()=>{const i=a.value,u=`a${i},${i} 0 0 1`;return{topRight:`${u} ${i},${i}`,bottomRight:`${u} ${-i},${i}`,bottomLeft:`${u} ${-i},${-i}`,topLeft:`${u} ${i},${-i}`}}),r=C(()=>{const i=window.innerWidth,u=window.innerHeight,c=l.value,d=`M${i},0 L0,0 L0,${u} L${i},${u} L${i},0 Z`,f=a.value;return t.pos?`${d} M${t.pos.left+f},${t.pos.top} h${t.pos.width-f*2} ${c.topRight} v${t.pos.height-f*2} ${c.bottomRight} h${-t.pos.width+f*2} ${c.bottomLeft} v${-t.pos.height+f*2} ${c.topLeft} z`:d}),s=C(()=>({fill:t.fill,pointerEvents:"auto",cursor:"auto"}));return Fd(yt(t,"visible"),{ns:n}),(i,u)=>i.visible?(_(),M("div",tt({key:0,class:o(n).e("mask"),style:{position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:i.zIndex,pointerEvents:i.pos&&i.targetAreaClickable?"none":"auto"}},i.$attrs),[(_(),M("svg",{style:{width:"100%",height:"100%"}},[k("path",{class:$(o(n).e("hollow")),style:Oe(o(s)),d:o(r)},null,14,["d"])]))],16)):ee("v-if",!0)}});var jY=ve(WY,[["__file","mask.vue"]]);const qY=["absolute","fixed"],UY=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],kf=pe({placement:{type:X(String),values:UY,default:"bottom"},reference:{type:X(Object),default:null},strategy:{type:X(String),values:qY,default:"absolute"},offset:{type:Number,default:10},showArrow:Boolean,zIndex:{type:Number,default:2001}}),YY={close:()=>!0},GY=T({name:"ElTourContent"}),XY=T({...GY,props:kf,emits:YY,setup(e,{emit:t}){const n=e,a=A(n.placement),l=A(n.strategy),r=A(null),s=A(null);ue(()=>n.placement,()=>{a.value=n.placement});const{contentStyle:i,arrowStyle:u}=DY(yt(n,"reference"),r,s,a,l,yt(n,"offset"),yt(n,"zIndex"),yt(n,"showArrow")),c=C(()=>a.value.split("-")[0]),{ns:d}=Se(Hi),f=()=>{t("close")},h=v=>{v.detail.focusReason==="pointer"&&v.preventDefault()};return(v,m)=>(_(),M("div",{ref_key:"contentRef",ref:r,style:Oe(o(i)),class:$(o(d).e("content")),"data-side":o(c),tabindex:"-1"},[q(o(Ao),{loop:"",trapped:"","focus-start-el":"container","focus-trap-el":r.value||void 0,onReleaseRequested:f,onFocusoutPrevented:h},{default:G(()=>[Q(v.$slots,"default")]),_:3},8,["focus-trap-el"]),v.showArrow?(_(),M("span",{key:0,ref_key:"arrowRef",ref:s,style:Oe(o(u)),class:$(o(d).e("arrow"))},null,6)):ee("v-if",!0)],14,["data-side"]))}});var ZY=ve(XY,[["__file","content.vue"]]),JY=T({name:"ElTourSteps",props:{current:{type:Number,default:0}},emits:["update-total"],setup(e,{slots:t,emit:n}){let a=0;return()=>{var l,r;const s=(l=t.default)==null?void 0:l.call(t),i=[];let u=0;function c(d){Ee(d)&&d.forEach(f=>{var h;((h=(f==null?void 0:f.type)||{})==null?void 0:h.name)==="ElTourStep"&&(i.push(f),u+=1)})}return s.length&&c(ll((r=s[0])==null?void 0:r.children)),a!==u&&(a=u,n("update-total",u)),i.length?i[e.current]:null}}});const QY=pe({modelValue:Boolean,current:{type:Number,default:0},showArrow:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeIcon:{type:St},placement:kf.placement,contentStyle:{type:X([Object])},mask:{type:X([Boolean,Object]),default:!0},gap:{type:X(Object),default:()=>({offset:6,radius:2})},zIndex:{type:Number},scrollIntoViewOptions:{type:X([Boolean,Object]),default:()=>({block:"center"})},type:{type:X(String)},appendTo:{type:X([String,Object]),default:"body"},closeOnPressEscape:{type:Boolean,default:!0},targetAreaClickable:{type:Boolean,default:!0}}),eG={[Ue]:e=>Et(e),"update:current":e=>Ie(e),close:e=>Ie(e),finish:()=>!0,change:e=>Ie(e)},tG=T({name:"ElTour"}),nG=T({...tG,props:QY,emits:eG,setup(e,{emit:t}){const n=e,a=de("tour"),l=A(0),r=A(),s=w1(n,"current",t,{passive:!0}),i=C(()=>{var N;return(N=r.value)==null?void 0:N.target}),u=C(()=>[a.b(),y.value==="primary"?a.m("primary"):""]),c=C(()=>{var N;return((N=r.value)==null?void 0:N.placement)||n.placement}),d=C(()=>{var N,P;return(P=(N=r.value)==null?void 0:N.contentStyle)!=null?P:n.contentStyle}),f=C(()=>{var N,P;return(P=(N=r.value)==null?void 0:N.mask)!=null?P:n.mask}),h=C(()=>!!f.value&&n.modelValue),v=C(()=>Et(f.value)?void 0:f.value),m=C(()=>{var N,P;return!!i.value&&((P=(N=r.value)==null?void 0:N.showArrow)!=null?P:n.showArrow)}),p=C(()=>{var N,P;return(P=(N=r.value)==null?void 0:N.scrollIntoViewOptions)!=null?P:n.scrollIntoViewOptions}),y=C(()=>{var N,P;return(P=(N=r.value)==null?void 0:N.type)!=null?P:n.type}),{nextZIndex:g}=Io(),x=g(),w=C(()=>{var N;return(N=n.zIndex)!=null?N:x}),{mergedPosInfo:b,triggerTarget:S}=BY(i,yt(n,"modelValue"),yt(n,"gap"),f,p);ue(()=>n.modelValue,N=>{N||(s.value=0)});const E=()=>{n.closeOnPressEscape&&(t("update:modelValue",!1),t("close",s.value))},O=N=>{l.value=N},I=Xt();return it(Hi,{currentStep:r,current:s,total:l,showClose:yt(n,"showClose"),closeIcon:yt(n,"closeIcon"),mergedType:y,ns:a,slots:I,updateModelValue(N){t("update:modelValue",N)},onClose(){t("close",s.value)},onFinish(){t("finish")},onChange(){t("change",s.value)}}),(N,P)=>(_(),M(ze,null,[q(o(Vo),{to:N.appendTo},{default:G(()=>{var L,R;return[k("div",tt({class:o(u)},N.$attrs),[q(jY,{visible:o(h),fill:(L=o(v))==null?void 0:L.color,style:Oe((R=o(v))==null?void 0:R.style),pos:o(b),"z-index":o(w),"target-area-clickable":N.targetAreaClickable},null,8,["visible","fill","style","pos","z-index","target-area-clickable"]),N.modelValue?(_(),ae(ZY,{key:o(s),reference:o(S),placement:o(c),"show-arrow":o(m),"z-index":o(w),style:Oe(o(d)),onClose:E},{default:G(()=>[q(o(JY),{current:o(s),onUpdateTotal:O},{default:G(()=>[Q(N.$slots,"default")]),_:3},8,["current"])]),_:3},8,["reference","placement","show-arrow","z-index","style"])):ee("v-if",!0)],16)]}),_:3},8,["to"]),ee(" just for IDE "),ee("v-if",!0)],64))}});var aG=ve(nG,[["__file","tour.vue"]]);const lG=pe({target:{type:X([String,Object,Function])},title:String,description:String,showClose:{type:Boolean,default:void 0},closeIcon:{type:St},showArrow:{type:Boolean,default:void 0},placement:kf.placement,mask:{type:X([Boolean,Object]),default:void 0},contentStyle:{type:X([Object])},prevButtonProps:{type:X(Object)},nextButtonProps:{type:X(Object)},scrollIntoViewOptions:{type:X([Boolean,Object]),default:void 0},type:{type:X(String)}}),oG={close:()=>!0},rG=T({name:"ElTourStep"}),sG=T({...rG,props:lG,emits:oG,setup(e,{emit:t}){const n=e,{Close:a}=dd,{t:l}=ct(),{currentStep:r,current:s,total:i,showClose:u,closeIcon:c,mergedType:d,ns:f,slots:h,updateModelValue:v,onClose:m,onFinish:p,onChange:y}=Se(Hi);ue(n,I=>{r.value=I},{immediate:!0});const g=C(()=>{var I;return(I=n.showClose)!=null?I:u.value}),x=C(()=>{var I,N;return(N=(I=n.closeIcon)!=null?I:c.value)!=null?N:a}),w=I=>{if(I)return y_(I,["children","onClick"])},b=()=>{var I,N;s.value-=1,(I=n.prevButtonProps)!=null&&I.onClick&&((N=n.prevButtonProps)==null||N.onClick()),y()},S=()=>{var I;s.value>=i.value-1?E():s.value+=1,(I=n.nextButtonProps)!=null&&I.onClick&&n.nextButtonProps.onClick(),y()},E=()=>{O(),p()},O=()=>{v(!1),m(),t("close")};return(I,N)=>(_(),M(ze,null,[o(g)?(_(),M("button",{key:0,"aria-label":"Close",class:$(o(f).e("closebtn")),type:"button",onClick:O},[q(o(Me),{class:$(o(f).e("close"))},{default:G(()=>[(_(),ae(Qe(o(x))))]),_:1},8,["class"])],2)):ee("v-if",!0),k("header",{class:$([o(f).e("header"),{"show-close":o(u)}])},[Q(I.$slots,"header",{},()=>[k("span",{role:"heading",class:$(o(f).e("title"))},he(I.title),3)])],2),k("div",{class:$(o(f).e("body"))},[Q(I.$slots,"default",{},()=>[k("span",null,he(I.description),1)])],2),k("footer",{class:$(o(f).e("footer"))},[k("div",{class:$(o(f).b("indicators"))},[o(h).indicators?(_(),ae(Qe(o(h).indicators),{key:0,current:o(s),total:o(i)},null,8,["current","total"])):(_(!0),M(ze,{key:1},rt(o(i),(P,L)=>(_(),M("span",{key:P,class:$([o(f).b("indicator"),L===o(s)?"is-active":""])},null,2))),128))],2),k("div",{class:$(o(f).b("buttons"))},[o(s)>0?(_(),ae(o(en),tt({key:0,size:"small",type:o(d)},w(I.prevButtonProps),{onClick:b}),{default:G(()=>{var P,L;return[ot(he((L=(P=I.prevButtonProps)==null?void 0:P.children)!=null?L:o(l)("el.tour.previous")),1)]}),_:1},16,["type"])):ee("v-if",!0),o(s)<=o(i)-1?(_(),ae(o(en),tt({key:1,size:"small",type:o(d)==="primary"?"default":"primary"},w(I.nextButtonProps),{onClick:S}),{default:G(()=>{var P,L;return[ot(he((L=(P=I.nextButtonProps)==null?void 0:P.children)!=null?L:o(s)===o(i)-1?o(l)("el.tour.finish"):o(l)("el.tour.next")),1)]}),_:1},16,["type"])):ee("v-if",!0)],2)],2)],64))}});var N4=ve(sG,[["__file","step.vue"]]);const iG=We(aG,{TourStep:N4}),uG=Lt(N4),cG=pe({container:{type:X([String,Object])},offset:{type:Number,default:0},bound:{type:Number,default:15},duration:{type:Number,default:300},marker:{type:Boolean,default:!0},type:{type:X(String),default:"default"},direction:{type:X(String),default:"vertical"},selectScrollTop:{type:Boolean,default:!1}}),dG={change:e=>Ve(e),click:(e,t)=>e instanceof MouseEvent&&(Ve(t)||vt(t))},I4=Symbol("anchor"),rs=e=>{if(!ut||e==="")return null;if(Ve(e))try{return document.querySelector(e)}catch{return null}return e};function fG(e){let t=0;const n=(...a)=>{t&&Il(t),t=sl(()=>{e(...a),t=0})};return n.cancel=()=>{Il(t),t=0},n}const pG=T({name:"ElAnchor"}),vG=T({...pG,props:cG,emits:dG,setup(e,{expose:t,emit:n}){const a=e,l=A(""),r=A(null),s=A(null),i=A(),u={};let c=!1,d=0;const f=de("anchor"),h=C(()=>[f.b(),a.type==="underline"?f.m("underline"):"",f.m(a.direction)]),v=I=>{u[I.href]=I.el},m=I=>{delete u[I]},p=I=>{l.value!==I&&(l.value=I,n("change",I))};let y=null;const g=I=>{if(!i.value)return;const N=rs(I);if(!N)return;y&&y(),c=!0;const P=b0(N,i.value),L=Wu(N,P),R=P.scrollHeight-P.clientHeight,K=Math.min(L-a.offset,R);y=wb(i.value,d,K,a.duration,()=>{setTimeout(()=>{c=!1},20)})},x=I=>{I&&(p(I),g(I))},w=(I,N)=>{n("click",I,N),x(N)},b=fG(()=>{i.value&&(d=w0(i.value));const I=S();c||vt(I)||p(I)}),S=()=>{if(!i.value)return;const I=w0(i.value),N=[];for(const P of Object.keys(u)){const L=rs(P);if(!L)continue;const R=b0(L,i.value),K=Wu(L,R);N.push({top:K-a.offset-a.bound,href:P})}N.sort((P,L)=>P.top-L.top);for(let P=0;PI))return L.href}},E=()=>{const I=rs(a.container);!I||mi(I)?i.value=window:i.value=I};wt(i,"scroll",b);const O=C(()=>{if(!r.value||!s.value||!l.value)return{};const I=u[l.value];if(!I)return{};const N=r.value.getBoundingClientRect(),P=s.value.getBoundingClientRect(),L=I.getBoundingClientRect();return a.direction==="horizontal"?{left:`${L.left-N.left}px`,width:`${L.width}px`,opacity:1}:{top:`${L.top-N.top+(L.height-P.height)/2}px`,opacity:1}});return Xe(()=>{E();const I=decodeURIComponent(window.location.hash);rs(I)?x(I):b()}),ue(()=>a.container,()=>{E()}),it(I4,{ns:f,direction:a.direction,currentAnchor:l,addLink:v,removeLink:m,handleClick:w}),t({scrollTo:x}),(I,N)=>(_(),M("div",{ref_key:"anchorRef",ref:r,class:$(o(h))},[I.marker?(_(),M("div",{key:0,ref_key:"markerRef",ref:s,class:$(o(f).e("marker")),style:Oe(o(O))},null,6)):ee("v-if",!0),k("div",{class:$(o(f).e("list"))},[Q(I.$slots,"default")],2)],2))}});var hG=ve(vG,[["__file","anchor.vue"]]);const mG=pe({title:String,href:String}),gG=T({name:"ElAnchorLink"}),yG=T({...gG,props:mG,setup(e){const t=e,n=A(null),{ns:a,direction:l,currentAnchor:r,addLink:s,removeLink:i,handleClick:u}=Se(I4),c=C(()=>[a.e("link"),a.is("active",r.value===t.href)]),d=f=>{u(f,t.href)};return ue(()=>t.href,(f,h)=>{Ne(()=>{h&&i(h),f&&s({href:f,el:n.value})})}),Xe(()=>{const{href:f}=t;f&&s({href:f,el:n.value})}),$t(()=>{const{href:f}=t;f&&i(f)}),(f,h)=>(_(),M("div",{class:$(o(a).e("item"))},[k("a",{ref_key:"linkRef",ref:n,class:$(o(c)),href:f.href,onClick:d},[Q(f.$slots,"default",{},()=>[ot(he(f.title),1)])],10,["href"]),f.$slots["sub-link"]&&o(l)==="vertical"?(_(),M("div",{key:0,class:$(o(a).e("list"))},[Q(f.$slots,"sub-link")],2)):ee("v-if",!0)],2))}});var P4=ve(yG,[["__file","anchor-link.vue"]]);const _G=We(hG,{AnchorLink:P4}),bG=Lt(P4),wG=pe({direction:{type:X(String),default:"horizontal"},options:{type:X(Array),default:()=>[]},modelValue:{type:[String,Number,Boolean],default:void 0},block:Boolean,size:qt,disabled:Boolean,validateEvent:{type:Boolean,default:!0},id:String,name:String,...rn(["ariaLabel"])}),CG={[Ue]:e=>Ve(e)||Ie(e)||Et(e),[Ct]:e=>Ve(e)||Ie(e)||Et(e)},SG=T({name:"ElSegmented"}),kG=T({...SG,props:wG,emits:CG,setup(e,{emit:t}){const n=e,a=de("segmented"),l=on(),r=jt(),s=gn(),{formItem:i}=mn(),{inputId:u,isLabeledByFormItem:c}=ea(n,{formItemContext:i}),d=A(null),f=W_(),h=_t({isInit:!1,width:0,height:0,translateX:0,translateY:0,focusVisible:!1}),v=N=>{const P=m(N);t(Ue,P),t(Ct,P)},m=N=>ht(N)?N.value:N,p=N=>ht(N)?N.label:N,y=N=>!!(s.value||ht(N)&&N.disabled),g=N=>n.modelValue===m(N),x=N=>n.options.find(P=>m(P)===N),w=N=>[a.e("item"),a.is("selected",g(N)),a.is("disabled",y(N))],b=()=>{if(!d.value)return;const N=d.value.querySelector(".is-selected"),P=d.value.querySelector(".is-selected input");if(!N||!P){h.width=0,h.height=0,h.translateX=0,h.translateY=0,h.focusVisible=!1;return}const L=N.getBoundingClientRect();h.isInit=!0,n.direction==="vertical"?(h.height=L.height,h.translateY=N.offsetTop):(h.width=L.width,h.translateX=N.offsetLeft);try{h.focusVisible=P.matches(":focus-visible")}catch{}},S=C(()=>[a.b(),a.m(r.value),a.is("block",n.block)]),E=C(()=>({width:n.direction==="vertical"?"100%":`${h.width}px`,height:n.direction==="vertical"?`${h.height}px`:"100%",transform:n.direction==="vertical"?`translateY(${h.translateY}px)`:`translateX(${h.translateX}px)`,display:h.isInit?"block":"none"})),O=C(()=>[a.e("item-selected"),a.is("disabled",y(x(n.modelValue))),a.is("focus-visible",h.focusVisible)]),I=C(()=>n.name||l.value);return At(d,b),ue(f,b),ue(()=>n.modelValue,()=>{var N;b(),n.validateEvent&&((N=i==null?void 0:i.validate)==null||N.call(i,"change").catch(P=>void 0))},{flush:"post"}),(N,P)=>N.options.length?(_(),M("div",{key:0,id:o(u),ref_key:"segmentedRef",ref:d,class:$(o(S)),role:"radiogroup","aria-label":o(c)?void 0:N.ariaLabel||"segmented","aria-labelledby":o(c)?o(i).labelId:void 0},[k("div",{class:$([o(a).e("group"),o(a).m(n.direction)])},[k("div",{style:Oe(o(E)),class:$(o(O))},null,6),(_(!0),M(ze,null,rt(N.options,(L,R)=>(_(),M("label",{key:R,class:$(w(L))},[k("input",{class:$(o(a).e("item-input")),type:"radio",name:o(I),disabled:y(L),checked:g(L),onChange:K=>v(L)},null,42,["name","disabled","checked","onChange"]),k("div",{class:$(o(a).e("item-label"))},[Q(N.$slots,"default",{item:L},()=>[ot(he(p(L)),1)])],2)],2))),128))],2)],10,["id","aria-label","aria-labelledby"])):ee("v-if",!0)}});var EG=ve(kG,[["__file","segmented.vue"]]);const xG=We(EG),MG=(e,t)=>{const n=e.toLowerCase();return(t.label||t.value).toLowerCase().includes(n)},$G=(e,t,n)=>{const{selectionEnd:a}=e;if(a===null)return;const l=e.value,r=bn(t);let s=-1,i;for(let u=a-1;u>=0;--u){const c=l[u];if(c===n||c===` +`||c==="\r"){s=u;continue}if(r.includes(c)){const d=s===-1?a:s;i={pattern:l.slice(u+1,d),start:u+1,end:d,prefix:c,prefixIndex:u,splitIndex:s,selectionEnd:a};break}}return i},TG=(e,t={debug:!1,useSelectionEnd:!1})=>{const n=e.selectionStart!==null?e.selectionStart:0,a=e.selectionEnd!==null?e.selectionEnd:0,l=t.useSelectionEnd?a:n,r=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"];if(t.debug){const h=document.querySelector("#input-textarea-caret-position-mirror-div");h!=null&&h.parentNode&&h.parentNode.removeChild(h)}const s=document.createElement("div");s.id="input-textarea-caret-position-mirror-div",document.body.appendChild(s);const i=s.style,u=window.getComputedStyle(e),c=e.nodeName==="INPUT";i.whiteSpace=c?"nowrap":"pre-wrap",c||(i.wordWrap="break-word"),i.position="absolute",t.debug||(i.visibility="hidden"),r.forEach(h=>{if(c&&h==="lineHeight")if(u.boxSizing==="border-box"){const v=Number.parseInt(u.height),m=Number.parseInt(u.paddingTop)+Number.parseInt(u.paddingBottom)+Number.parseInt(u.borderTopWidth)+Number.parseInt(u.borderBottomWidth),p=m+Number.parseInt(u.lineHeight);v>p?i.lineHeight=`${v-m}px`:v===p?i.lineHeight=u.lineHeight:i.lineHeight="0"}else i.lineHeight=u.height;else i[h]=u[h]}),Ei()?e.scrollHeight>Number.parseInt(u.height)&&(i.overflowY="scroll"):i.overflow="hidden",s.textContent=e.value.slice(0,Math.max(0,l)),c&&s.textContent&&(s.textContent=s.textContent.replace(/\s/g," "));const d=document.createElement("span");d.textContent=e.value.slice(Math.max(0,l))||".",d.style.position="relative",d.style.left=`${-e.scrollLeft}px`,d.style.top=`${-e.scrollTop}px`,s.appendChild(d);const f={top:d.offsetTop+Number.parseInt(u.borderTopWidth),left:d.offsetLeft+Number.parseInt(u.borderLeftWidth),height:Number.parseInt(u.fontSize)*1.5};return t.debug?d.style.backgroundColor="#aaa":document.body.removeChild(s),f.left>=e.clientWidth&&(f.left=e.clientWidth),f},OG=pe({...pd,options:{type:X(Array),default:()=>[]},prefix:{type:X([String,Array]),default:"@",validator:e=>Ve(e)?e.length===1:e.every(t=>Ve(t)&&t.length===1)},split:{type:String,default:" ",validator:e=>e.length===1},filterOption:{type:X([Boolean,Function]),default:()=>MG,validator:e=>e===!1?!0:Je(e)},placement:{type:X(String),default:"bottom"},showArrow:Boolean,offset:{type:Number,default:0},whole:Boolean,checkIsWhole:{type:X(Function)},modelValue:String,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:X(Object),default:()=>({})}}),NG={[Ue]:e=>Ve(e),search:(e,t)=>Ve(e)&&Ve(t),select:(e,t)=>Ve(e.value)&&Ve(t),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},IG=pe({options:{type:X(Array),default:()=>[]},loading:Boolean,disabled:Boolean,contentId:String,ariaLabel:String}),PG={select:e=>Ve(e.value)},zG=T({name:"ElMentionDropdown"}),AG=T({...zG,props:IG,emits:PG,setup(e,{expose:t,emit:n}){const a=e,l=de("mention"),{t:r}=ct(),s=A(-1),i=A(),u=A(),c=A(),d=(w,b)=>[l.be("dropdown","item"),l.is("hovering",s.value===b),l.is("disabled",w.disabled||a.disabled)],f=w=>{w.disabled||a.disabled||n("select",w)},h=w=>{s.value=w},v=C(()=>a.disabled||a.options.every(w=>w.disabled)),m=C(()=>a.options[s.value]),p=()=>{m.value&&n("select",m.value)},y=w=>{const{options:b}=a;if(b.length===0||v.value)return;w==="next"?(s.value++,s.value===b.length&&(s.value=0)):w==="prev"&&(s.value--,s.value<0&&(s.value=b.length-1));const S=b[s.value];if(S.disabled){y(w);return}Ne(()=>g(S))},g=w=>{var b,S,E,O;const{options:I}=a,N=I.findIndex(L=>L.value===w.value),P=(b=u.value)==null?void 0:b[N];if(P){const L=(E=(S=c.value)==null?void 0:S.querySelector)==null?void 0:E.call(S,`.${l.be("dropdown","wrap")}`);L&&od(L,P)}(O=i.value)==null||O.handleScroll()};return ue(()=>a.options,()=>{v.value||a.options.length===0?s.value=-1:s.value=0},{immediate:!0}),t({hoveringIndex:s,navigateOptions:y,selectHoverOption:p,hoverOption:m}),(w,b)=>(_(),M("div",{ref_key:"dropdownRef",ref:c,class:$(o(l).b("dropdown"))},[w.$slots.header?(_(),M("div",{key:0,class:$(o(l).be("dropdown","header"))},[Q(w.$slots,"header")],2)):ee("v-if",!0),qe(q(o(Ta),{id:w.contentId,ref_key:"scrollbarRef",ref:i,tag:"ul","wrap-class":o(l).be("dropdown","wrap"),"view-class":o(l).be("dropdown","list"),role:"listbox","aria-label":w.ariaLabel,"aria-orientation":"vertical"},{default:G(()=>[(_(!0),M(ze,null,rt(w.options,(S,E)=>(_(),M("li",{id:`${w.contentId}-${E}`,ref_for:!0,ref_key:"optionRefs",ref:u,key:E,class:$(d(S,E)),role:"option","aria-disabled":S.disabled||w.disabled||void 0,"aria-selected":s.value===E,onMousemove:O=>h(E),onClick:Ae(O=>f(S),["stop"])},[Q(w.$slots,"label",{item:S,index:E},()=>{var O;return[k("span",null,he((O=S.label)!=null?O:S.value),1)]})],42,["id","aria-disabled","aria-selected","onMousemove","onClick"]))),128))]),_:3},8,["id","wrap-class","view-class","aria-label"]),[[pt,w.options.length>0&&!w.loading]]),w.loading?(_(),M("div",{key:1,class:$(o(l).be("dropdown","loading"))},[Q(w.$slots,"loading",{},()=>[ot(he(o(r)("el.mention.loading")),1)])],2)):ee("v-if",!0),w.$slots.footer?(_(),M("div",{key:2,class:$(o(l).be("dropdown","footer"))},[Q(w.$slots,"footer")],2)):ee("v-if",!0)],2))}});var VG=ve(AG,[["__file","mention-dropdown.vue"]]);const LG=T({name:"ElMention",inheritAttrs:!1}),RG=T({...LG,props:OG,emits:NG,setup(e,{expose:t,emit:n}){const a=e,l=C(()=>ra(a,Object.keys(pd))),r=de("mention"),s=gn(),i=on(),u=A(),c=A(),d=A(),f=A(!1),h=A(),v=A(),m=C(()=>a.showArrow?a.placement:`${a.placement}-start`),p=C(()=>a.showArrow?["bottom","top"]:["bottom-start","top-start"]),y=C(()=>{const{filterOption:R,options:K}=a;return!v.value||!R?K:K.filter(U=>R(v.value.pattern,U))}),g=C(()=>f.value&&(!!y.value.length||a.loading)),x=C(()=>{var R;return`${i.value}-${(R=d.value)==null?void 0:R.hoveringIndex}`}),w=R=>{n("update:modelValue",R),N()},b=R=>{var K,U,H,V;if(!(!("code"in R)||(K=u.value)!=null&&K.isComposing))switch(R.code){case Ce.left:case Ce.right:N();break;case Ce.up:case Ce.down:if(!f.value)return;R.preventDefault(),(U=d.value)==null||U.navigateOptions(R.code===Ce.up?"prev":"next");break;case Ce.enter:case Ce.numpadEnter:if(!f.value)return;R.preventDefault(),(H=d.value)!=null&&H.hoverOption?(V=d.value)==null||V.selectHoverOption():f.value=!1;break;case Ce.esc:if(!f.value)return;R.preventDefault(),f.value=!1;break;case Ce.backspace:if(a.whole&&v.value){const{splitIndex:D,selectionEnd:B,pattern:z,prefixIndex:F,prefix:W}=v.value,Z=I();if(!Z)return;const j=Z.value,ne=a.options.find(ce=>ce.value===z);if((Je(a.checkIsWhole)?a.checkIsWhole(z,W):ne)&&D!==-1&&D+1===B){R.preventDefault();const ce=j.slice(0,F)+j.slice(D+1);n(Ue,ce);const te=F;Ne(()=>{Z.selectionStart=te,Z.selectionEnd=te,L()})}}}},{wrapperRef:S}=dl(u,{beforeFocus(){return s.value},afterFocus(){N()},beforeBlur(R){var K;return(K=c.value)==null?void 0:K.isFocusInsideContent(R)},afterBlur(){f.value=!1}}),E=()=>{N()},O=R=>{if(!v.value)return;const K=I();if(!K)return;const U=K.value,{split:H}=a,V=U.slice(v.value.end),D=V.startsWith(H),B=`${R.value}${D?"":H}`,z=U.slice(0,v.value.start)+B+V;n(Ue,z),n("select",R,v.value.prefix);const F=v.value.start+B.length+(D?1:0);Ne(()=>{K.selectionStart=F,K.selectionEnd=F,K.focus(),L()})},I=()=>{var R,K;return a.type==="textarea"?(R=u.value)==null?void 0:R.textarea:(K=u.value)==null?void 0:K.input},N=()=>{setTimeout(()=>{P(),L(),Ne(()=>{var R;return(R=c.value)==null?void 0:R.updatePopper()})},0)},P=()=>{const R=I();if(!R)return;const K=TG(R),U=R.getBoundingClientRect(),H=u.value.$el.getBoundingClientRect();h.value={position:"absolute",width:0,height:`${K.height}px`,left:`${K.left+U.left-H.left}px`,top:`${K.top+U.top-H.top}px`}},L=()=>{const R=I();if(document.activeElement!==R){f.value=!1;return}const{prefix:K,split:U}=a;if(v.value=$G(R,K,U),v.value&&v.value.splitIndex===-1){f.value=!0,n("search",v.value.pattern,v.value.prefix);return}f.value=!1};return t({input:u,tooltip:c,dropdownVisible:g}),(R,K)=>(_(),M("div",{ref_key:"wrapperRef",ref:S,class:$([o(r).b(),o(r).is("disabled",o(s))])},[q(o(Cn),tt(tt(o(l),R.$attrs),{ref_key:"elInputRef",ref:u,"model-value":R.modelValue,disabled:o(s),role:o(g)?"combobox":void 0,"aria-activedescendant":o(g)?o(x)||"":void 0,"aria-controls":o(g)?o(i):void 0,"aria-expanded":o(g)||void 0,"aria-label":R.ariaLabel,"aria-autocomplete":o(g)?"none":void 0,"aria-haspopup":o(g)?"listbox":void 0,onInput:w,onKeydown:b,onMousedown:E}),Yn({_:2},[rt(R.$slots,(U,H)=>({name:H,fn:G(V=>[Q(R.$slots,H,oa(Tl(V)))])}))]),1040,["model-value","disabled","role","aria-activedescendant","aria-controls","aria-expanded","aria-label","aria-autocomplete","aria-haspopup"]),q(o(hn),{ref_key:"tooltipRef",ref:c,visible:o(g),"popper-class":[o(r).e("popper"),R.popperClass],"popper-options":R.popperOptions,placement:o(m),"fallback-placements":o(p),effect:"light",pure:"",offset:R.offset,"show-arrow":R.showArrow},{default:G(()=>[k("div",{style:Oe(h.value)},null,4)]),content:G(()=>{var U;return[q(VG,{ref_key:"dropdownRef",ref:d,options:o(y),disabled:o(s),loading:R.loading,"content-id":o(i),"aria-label":R.ariaLabel,onSelect:O,onClick:Ae((U=u.value)==null?void 0:U.focus,["stop"])},Yn({_:2},[rt(R.$slots,(H,V)=>({name:V,fn:G(D=>[Q(R.$slots,V,oa(Tl(D)))])}))]),1032,["options","disabled","loading","content-id","aria-label","onClick"])]}),_:3},8,["visible","popper-class","popper-options","placement","fallback-placements","offset","show-arrow"])],2))}});var BG=ve(RG,[["__file","mention.vue"]]);const HG=We(BG);var DG=[xb,DM,AO,Cj,DO,YO,Ov,rN,sN,en,Lv,tI,rI,SI,kI,kP,ah,OP,Qn,RI,Yv,AP,ZP,JP,Ti,kz,Mz,Bz,Hz,Dz,Fz,Kz,vV,kV,EV,LV,Th,UV,VL,LL,RL,Rh,LR,RR,Me,GR,Dh,Cn,Fh,cB,mB,VB,LB,RB,BB,jB,AH,DH,XH,xv,Zh,th,ZI,XI,rD,dD,yD,Ta,Pl,js,hH,XD,oF,rF,EF,OF,cm,DF,XF,ZF,aK,fW,pW,wj,Lj,Rj,yo,Kj,zA,Gj,eq,tq,hn,uU,CU,ai,DU,lY,MY,LY,iG,uG,_G,bG,xG,HG];const Wn="ElInfiniteScroll",FG=50,KG=200,WG=0,jG={delay:{type:Number,default:KG},distance:{type:Number,default:WG},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},Ef=(e,t)=>Object.entries(jG).reduce((n,[a,l])=>{var r,s;const{type:i,default:u}=l,c=e.getAttribute(`infinite-scroll-${a}`);let d=(s=(r=t[c])!=null?r:c)!=null?s:u;return d=d==="false"?!1:d,d=i(d),n[a]=Number.isNaN(d)?u:d,n},{}),z4=e=>{const{observer:t}=e[Wn];t&&(t.disconnect(),delete e[Wn].observer)},qG=(e,t)=>{const{container:n,containerEl:a,instance:l,observer:r,lastScrollTop:s}=e[Wn],{disabled:i,distance:u}=Ef(e,l),{clientHeight:c,scrollHeight:d,scrollTop:f}=a,h=f-s;if(e[Wn].lastScrollTop=f,r||i||h<0)return;let v=!1;if(n===e)v=d-(c+f)<=u;else{const{clientTop:m,scrollHeight:p}=e,y=Wu(e,a);v=f+c>=y+m+p-u}v&&t.call(l)};function Cu(e,t){const{containerEl:n,instance:a}=e[Wn],{disabled:l}=Ef(e,a);l||n.clientHeight===0||(n.scrollHeight<=n.clientHeight?t.call(a):z4(e))}const UG={async mounted(e,t){const{instance:n,value:a}=t;Je(a)||Gt(Wn,"'v-infinite-scroll' binding value must be a function"),await Ne();const{delay:l,immediate:r}=Ef(e,n),s=ld(e,!0),i=s===window?document.documentElement:s,u=El(qG.bind(null,e,a),l);if(s){if(e[Wn]={instance:n,container:s,containerEl:i,delay:l,cb:a,onScroll:u,lastScrollTop:i.scrollTop},r){const c=new MutationObserver(El(Cu.bind(null,e,a),FG));e[Wn].observer=c,c.observe(e,{childList:!0,subtree:!0}),Cu(e,a)}s.addEventListener("scroll",u)}},unmounted(e){if(!e[Wn])return;const{container:t,onScroll:n}=e[Wn];t==null||t.removeEventListener("scroll",n),z4(e)},async updated(e){if(!e[Wn])await Ne();else{const{containerEl:t,cb:n,observer:a}=e[Wn];t.clientHeight&&a&&Cu(e,n)}}},Pc=UG;Pc.install=e=>{e.directive("InfiniteScroll",Pc)};const YG=Pc;function GG(e){let t;const n=A(!1),a=_t({...e,originalPosition:"",originalOverflow:"",visible:!1});function l(h){a.text=h}function r(){const h=a.parent,v=f.ns;if(!h.vLoadingAddClassList){let m=h.getAttribute("loading-number");m=Number.parseInt(m)-1,m?h.setAttribute("loading-number",m.toString()):(kn(h,v.bm("parent","relative")),h.removeAttribute("loading-number")),kn(h,v.bm("parent","hidden"))}s(),d.unmount()}function s(){var h,v;(v=(h=f.$el)==null?void 0:h.parentNode)==null||v.removeChild(f.$el)}function i(){var h;e.beforeClose&&!e.beforeClose()||(n.value=!0,clearTimeout(t),t=setTimeout(u,400),a.visible=!1,(h=e.closed)==null||h.call(e))}function u(){if(!n.value)return;const h=a.parent;n.value=!1,h.vLoadingAddClassList=void 0,r()}const c=T({name:"ElLoading",setup(h,{expose:v}){const{ns:m,zIndex:p}=_i("loading");return v({ns:m,zIndex:p}),()=>{const y=a.spinner||a.svg,g=Pe("svg",{class:"circular",viewBox:a.svgViewBox?a.svgViewBox:"0 0 50 50",...y?{innerHTML:y}:{}},[Pe("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),x=a.text?Pe("p",{class:m.b("text")},[a.text]):void 0;return Pe(tn,{name:m.b("fade"),onAfterLeave:u},{default:G(()=>[qe(q("div",{style:{backgroundColor:a.background||""},class:[m.b("mask"),a.customClass,a.fullscreen?"is-fullscreen":""]},[Pe("div",{class:m.b("spinner")},[g,x])]),[[pt,a.visible]])])})}}}),d=Q4(c),f=d.mount(document.createElement("div"));return{...nn(a),setText:l,removeElLoadingChild:s,close:i,handleAfterLeave:u,vm:f,get $el(){return f.$el}}}let ss;const zc=function(e={}){if(!ut)return;const t=XG(e);if(t.fullscreen&&ss)return ss;const n=GG({...t,closed:()=>{var l;(l=t.closed)==null||l.call(t),t.fullscreen&&(ss=void 0)}});ZG(t,t.parent,n),_p(t,t.parent,n),t.parent.vLoadingAddClassList=()=>_p(t,t.parent,n);let a=t.parent.getAttribute("loading-number");return a?a=`${Number.parseInt(a)+1}`:a="1",t.parent.setAttribute("loading-number",a),t.parent.appendChild(n.$el),Ne(()=>n.visible.value=t.visible),t.fullscreen&&(ss=n),n},XG=e=>{var t,n,a,l;let r;return Ve(e.target)?r=(t=document.querySelector(e.target))!=null?t:document.body:r=e.target||document.body,{parent:r===document.body||e.body?document.body:r,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:r===document.body&&((n=e.fullscreen)!=null?n:!0),lock:(a=e.lock)!=null?a:!1,customClass:e.customClass||"",visible:(l=e.visible)!=null?l:!0,beforeClose:e.beforeClose,closed:e.closed,target:r}},ZG=async(e,t,n)=>{const{nextZIndex:a}=n.vm.zIndex||n.vm._.exposed.zIndex,l={};if(e.fullscreen)n.originalPosition.value=Aa(document.body,"position"),n.originalOverflow.value=Aa(document.body,"overflow"),l.zIndex=a();else if(e.parent===document.body){n.originalPosition.value=Aa(document.body,"position"),await Ne();for(const r of["top","left"]){const s=r==="top"?"scrollTop":"scrollLeft";l[r]=`${e.target.getBoundingClientRect()[r]+document.body[s]+document.documentElement[s]-Number.parseInt(Aa(document.body,`margin-${r}`),10)}px`}for(const r of["height","width"])l[r]=`${e.target.getBoundingClientRect()[r]}px`}else n.originalPosition.value=Aa(t,"position");for(const[r,s]of Object.entries(l))n.$el.style[r]=s},_p=(e,t,n)=>{const a=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?kn(t,a.bm("parent","relative")):jn(t,a.bm("parent","relative")),e.fullscreen&&e.lock?jn(t,a.bm("parent","hidden")):kn(t,a.bm("parent","hidden"))},Ps=Symbol("ElLoading"),bp=(e,t)=>{var n,a,l,r;const s=t.instance,i=h=>ht(t.value)?t.value[h]:void 0,u=h=>{const v=Ve(h)&&(s==null?void 0:s[h])||h;return v&&A(v)},c=h=>u(i(h)||e.getAttribute(`element-loading-${eg(h)}`)),d=(n=i("fullscreen"))!=null?n:t.modifiers.fullscreen,f={text:c("text"),svg:c("svg"),svgViewBox:c("svgViewBox"),spinner:c("spinner"),background:c("background"),customClass:c("customClass"),fullscreen:d,target:(a=i("target"))!=null?a:d?void 0:e,body:(l=i("body"))!=null?l:t.modifiers.body,lock:(r=i("lock"))!=null?r:t.modifiers.lock};e[Ps]={options:f,instance:zc(f)}},JG=(e,t)=>{for(const n of Object.keys(t))Sn(t[n])&&(t[n].value=e[n])},wp={mounted(e,t){t.value&&bp(e,t)},updated(e,t){const n=e[Ps];t.oldValue!==t.value&&(t.value&&!t.oldValue?bp(e,t):t.value&&t.oldValue?ht(t.value)&&JG(t.value,n.options):n==null||n.instance.close())},unmounted(e){var t;(t=e[Ps])==null||t.instance.close(),e[Ps]=null}},QG={install(e){e.directive("loading",wp),e.config.globalProperties.$loading=zc},directive:wp,service:zc},A4=["success","info","warning","error"],_n=Vt({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:ut?document.body:void 0}),eX=pe({customClass:{type:String,default:_n.customClass},center:{type:Boolean,default:_n.center},dangerouslyUseHTMLString:{type:Boolean,default:_n.dangerouslyUseHTMLString},duration:{type:Number,default:_n.duration},icon:{type:St,default:_n.icon},id:{type:String,default:_n.id},message:{type:X([String,Object,Function]),default:_n.message},onClose:{type:X(Function),default:_n.onClose},showClose:{type:Boolean,default:_n.showClose},type:{type:String,values:A4,default:_n.type},plain:{type:Boolean,default:_n.plain},offset:{type:Number,default:_n.offset},zIndex:{type:Number,default:_n.zIndex},grouping:{type:Boolean,default:_n.grouping},repeatNum:{type:Number,default:_n.repeatNum}}),tX={destroy:()=>!0},sa=tg([]),nX=e=>{const t=sa.findIndex(l=>l.id===e),n=sa[t];let a;return t>0&&(a=sa[t-1]),{current:n,prev:a}},aX=e=>{const{prev:t}=nX(e);return t?t.vm.exposed.bottom.value:0},lX=(e,t)=>sa.findIndex(a=>a.id===e)>0?16:t,oX=T({name:"ElMessage"}),rX=T({...oX,props:eX,emits:tX,setup(e,{expose:t}){const n=e,{Close:a}=fd,{ns:l,zIndex:r}=_i("message"),{currentZIndex:s,nextZIndex:i}=r,u=A(),c=A(!1),d=A(0);let f;const h=C(()=>n.type?n.type==="error"?"danger":n.type:"info"),v=C(()=>{const O=n.type;return{[l.bm("icon",O)]:O&&il[O]}}),m=C(()=>n.icon||il[n.type]||""),p=C(()=>aX(n.id)),y=C(()=>lX(n.id,n.offset)+p.value),g=C(()=>d.value+y.value),x=C(()=>({top:`${y.value}px`,zIndex:s.value}));function w(){n.duration!==0&&({stop:f}=Nl(()=>{S()},n.duration))}function b(){f==null||f()}function S(){c.value=!1}function E({code:O}){O===Ce.esc&&S()}return Xe(()=>{w(),i(),c.value=!0}),ue(()=>n.repeatNum,()=>{b(),w()}),wt(document,"keydown",E),At(u,()=>{d.value=u.value.getBoundingClientRect().height}),t({visible:c,bottom:g,close:S}),(O,I)=>(_(),ae(tn,{name:o(l).b("fade"),onBeforeLeave:O.onClose,onAfterLeave:N=>O.$emit("destroy"),persisted:""},{default:G(()=>[qe(k("div",{id:O.id,ref_key:"messageRef",ref:u,class:$([o(l).b(),{[o(l).m(O.type)]:O.type},o(l).is("center",O.center),o(l).is("closable",O.showClose),o(l).is("plain",O.plain),O.customClass]),style:Oe(o(x)),role:"alert",onMouseenter:b,onMouseleave:w},[O.repeatNum>1?(_(),ae(o(Ov),{key:0,value:O.repeatNum,type:o(h),class:$(o(l).e("badge"))},null,8,["value","type","class"])):ee("v-if",!0),o(m)?(_(),ae(o(Me),{key:1,class:$([o(l).e("icon"),o(v)])},{default:G(()=>[(_(),ae(Qe(o(m))))]),_:1},8,["class"])):ee("v-if",!0),Q(O.$slots,"default",{},()=>[O.dangerouslyUseHTMLString?(_(),M(ze,{key:1},[ee(" Caution here, message could've been compromised, never use user's input as message "),k("p",{class:$(o(l).e("content")),innerHTML:O.message},null,10,["innerHTML"])],2112)):(_(),M("p",{key:0,class:$(o(l).e("content"))},he(O.message),3))]),O.showClose?(_(),ae(o(Me),{key:2,class:$(o(l).e("closeBtn")),onClick:Ae(S,["stop"])},{default:G(()=>[q(o(a))]),_:1},8,["class","onClick"])):ee("v-if",!0)],46,["id"]),[[pt,c.value]])]),_:3},8,["name","onBeforeLeave","onAfterLeave"]))}});var sX=ve(rX,[["__file","message.vue"]]);let iX=1;const V4=e=>{const t=!e||Ve(e)||Ft(e)||Je(e)?{message:e}:e,n={..._n,...t};if(!n.appendTo)n.appendTo=document.body;else if(Ve(n.appendTo)){let a=document.querySelector(n.appendTo);Tn(a)||(a=document.body),n.appendTo=a}return Et(aa.grouping)&&!n.grouping&&(n.grouping=aa.grouping),Ie(aa.duration)&&n.duration===3e3&&(n.duration=aa.duration),Ie(aa.offset)&&n.offset===16&&(n.offset=aa.offset),Et(aa.showClose)&&!n.showClose&&(n.showClose=aa.showClose),n},uX=e=>{const t=sa.indexOf(e);if(t===-1)return;sa.splice(t,1);const{handler:n}=e;n.close()},cX=({appendTo:e,...t},n)=>{const a=`message_${iX++}`,l=t.onClose,r=document.createElement("div"),s={...t,id:a,onClose:()=>{l==null||l(),uX(d)},onDestroy:()=>{ol(null,r)}},i=q(sX,s,Je(s.message)||Ft(s.message)?{default:Je(s.message)?s.message:()=>s.message}:null);i.appContext=n||Eo._context,ol(i,r),e.appendChild(r.firstElementChild);const u=i.component,d={id:a,vnode:i,vm:u,handler:{close:()=>{u.exposed.visible.value=!1}},props:i.component.props};return d},Eo=(e={},t)=>{if(!ut)return{close:()=>{}};const n=V4(e);if(n.grouping&&sa.length){const l=sa.find(({vnode:r})=>{var s;return((s=r.props)==null?void 0:s.message)===n.message});if(l)return l.props.repeatNum+=1,l.props.type=n.type,l.handler}if(Ie(aa.max)&&sa.length>=aa.max)return{close:()=>{}};const a=cX(n,t);return sa.push(a),a.handler};A4.forEach(e=>{Eo[e]=(t={},n)=>{const a=V4(t);return Eo({...a,type:e},n)}});function dX(e){for(const t of sa)(!e||e===t.props.type)&&t.handler.close()}Eo.closeAll=dX;Eo._context=null;const fX=z1(Eo,"$message"),Ac="_trap-focus-children",Sl=[],Cp=e=>{if(Sl.length===0)return;const t=Sl[Sl.length-1][Ac];if(t.length>0&&e.code===Ce.tab){if(t.length===1){e.preventDefault(),document.activeElement!==t[0]&&t[0].focus();return}const n=e.shiftKey,a=e.target===t[0],l=e.target===t[t.length-1];a&&n&&(e.preventDefault(),t[t.length-1].focus()),l&&!n&&(e.preventDefault(),t[0].focus())}},pX={beforeMount(e){e[Ac]=E0(e),Sl.push(e),Sl.length<=1&&document.addEventListener("keydown",Cp)},updated(e){Ne(()=>{e[Ac]=E0(e)})},unmounted(){Sl.shift(),Sl.length===0&&document.removeEventListener("keydown",Cp)}},vX=T({name:"ElMessageBox",directives:{TrapFocus:pX},components:{ElButton:en,ElFocusTrap:Ao,ElInput:Cn,ElOverlay:Dd,ElIcon:Me,...fd},inheritAttrs:!1,props:{buttonSize:{type:String,validator:fm},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,overflow:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{locale:n,zIndex:a,ns:l,size:r}=_i("message-box",C(()=>e.buttonSize)),{t:s}=n,{nextZIndex:i}=a,u=A(!1),c=_t({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:null,inputValidator:null,inputErrorMessage:"",message:null,modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonLoadingIcon:kl(ca),cancelButtonLoadingIcon:kl(ca),confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:i()}),d=C(()=>{const V=c.type;return{[l.bm("icon",V)]:V&&il[V]}}),f=on(),h=on(),v=C(()=>c.icon||il[c.type]||""),m=C(()=>!!c.message),p=A(),y=A(),g=A(),x=A(),w=A(),b=C(()=>c.confirmButtonClass);ue(()=>c.inputValue,async V=>{await Ne(),e.boxType==="prompt"&&V!==null&&R()},{immediate:!0}),ue(()=>u.value,V=>{var D,B;V&&(e.boxType!=="prompt"&&(c.autofocus?g.value=(B=(D=w.value)==null?void 0:D.$el)!=null?B:p.value:g.value=p.value),c.zIndex=i()),e.boxType==="prompt"&&(V?Ne().then(()=>{var z;x.value&&x.value.$el&&(c.autofocus?g.value=(z=K())!=null?z:p.value:g.value=p.value)}):(c.editorErrorMessage="",c.validateError=!1))});const S=C(()=>e.draggable),E=C(()=>e.overflow);Eh(p,y,S,E),Xe(async()=>{await Ne(),e.closeOnHashChange&&window.addEventListener("hashchange",O)}),$t(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",O)});function O(){u.value&&(u.value=!1,Ne(()=>{c.action&&t("action",c.action)}))}const I=()=>{e.closeOnClickModal&&L(c.distinguishCancelAndClose?"close":"cancel")},N=Hd(I),P=V=>{if(c.inputType!=="textarea")return V.preventDefault(),L("confirm")},L=V=>{var D;e.boxType==="prompt"&&V==="confirm"&&!R()||(c.action=V,c.beforeClose?(D=c.beforeClose)==null||D.call(c,V,c,O):O())},R=()=>{if(e.boxType==="prompt"){const V=c.inputPattern;if(V&&!V.test(c.inputValue||""))return c.editorErrorMessage=c.inputErrorMessage||s("el.messagebox.error"),c.validateError=!0,!1;const D=c.inputValidator;if(Je(D)){const B=D(c.inputValue);if(B===!1)return c.editorErrorMessage=c.inputErrorMessage||s("el.messagebox.error"),c.validateError=!0,!1;if(Ve(B))return c.editorErrorMessage=B,c.validateError=!0,!1}}return c.editorErrorMessage="",c.validateError=!1,!0},K=()=>{const V=x.value.$refs;return V.input||V.textarea},U=()=>{L("close")},H=()=>{e.closeOnPressEscape&&U()};return e.lockScroll&&Fd(u),{...nn(c),ns:l,overlayEvent:N,visible:u,hasMessage:m,typeClass:d,contentId:f,inputId:h,btnSize:r,iconComponent:v,confirmButtonClasses:b,rootRef:p,focusStartRef:g,headerRef:y,inputRef:x,confirmRef:w,doClose:O,handleClose:U,onCloseRequested:H,handleWrapperClick:I,handleInputEnter:P,handleAction:L,t:s}}});function hX(e,t,n,a,l,r){const s=Ze("el-icon"),i=Ze("close"),u=Ze("el-input"),c=Ze("el-button"),d=Ze("el-focus-trap"),f=Ze("el-overlay");return _(),ae(tn,{name:"fade-in-linear",onAfterLeave:h=>e.$emit("vanish"),persisted:""},{default:G(()=>[qe(q(f,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:G(()=>[k("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:$(`${e.ns.namespace.value}-overlay-message-box`),onClick:e.overlayEvent.onClick,onMousedown:e.overlayEvent.onMousedown,onMouseup:e.overlayEvent.onMouseup},[q(d,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:G(()=>[k("div",{ref:"rootRef",class:$([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:Oe(e.customStyle),tabindex:"-1",onClick:Ae(()=>{},["stop"])},[e.title!==null&&e.title!==void 0?(_(),M("div",{key:0,ref:"headerRef",class:$([e.ns.e("header"),{"show-close":e.showClose}])},[k("div",{class:$(e.ns.e("title"))},[e.iconComponent&&e.center?(_(),ae(s,{key:0,class:$([e.ns.e("status"),e.typeClass])},{default:G(()=>[(_(),ae(Qe(e.iconComponent)))]),_:1},8,["class"])):ee("v-if",!0),k("span",null,he(e.title),1)],2),e.showClose?(_(),M("button",{key:0,type:"button",class:$(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:h=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),onKeydown:kt(Ae(h=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"])},[q(s,{class:$(e.ns.e("close"))},{default:G(()=>[q(i)]),_:1},8,["class"])],42,["aria-label","onClick","onKeydown"])):ee("v-if",!0)],2)):ee("v-if",!0),k("div",{id:e.contentId,class:$(e.ns.e("content"))},[k("div",{class:$(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(_(),ae(s,{key:0,class:$([e.ns.e("status"),e.typeClass])},{default:G(()=>[(_(),ae(Qe(e.iconComponent)))]),_:1},8,["class"])):ee("v-if",!0),e.hasMessage?(_(),M("div",{key:1,class:$(e.ns.e("message"))},[Q(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(_(),ae(Qe(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(_(),ae(Qe(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:G(()=>[ot(he(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):ee("v-if",!0)],2),qe(k("div",{class:$(e.ns.e("input"))},[q(u,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":h=>e.inputValue=h,type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:$({invalid:e.validateError}),onKeydown:kt(e.handleInputEnter,["enter"])},null,8,["id","modelValue","onUpdate:modelValue","type","placeholder","aria-invalid","class","onKeydown"]),k("div",{class:$(e.ns.e("errormsg")),style:Oe({visibility:e.editorErrorMessage?"visible":"hidden"})},he(e.editorErrorMessage),7)],2),[[pt,e.showInput]])],10,["id"]),k("div",{class:$(e.ns.e("btns"))},[e.showCancelButton?(_(),ae(c,{key:0,loading:e.cancelButtonLoading,"loading-icon":e.cancelButtonLoadingIcon,class:$([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:h=>e.handleAction("cancel"),onKeydown:kt(Ae(h=>e.handleAction("cancel"),["prevent"]),["enter"])},{default:G(()=>[ot(he(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","loading-icon","class","round","size","onClick","onKeydown"])):ee("v-if",!0),qe(q(c,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,"loading-icon":e.confirmButtonLoadingIcon,class:$([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:h=>e.handleAction("confirm"),onKeydown:kt(Ae(h=>e.handleAction("confirm"),["prevent"]),["enter"])},{default:G(()=>[ot(he(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","loading-icon","class","round","disabled","size","onClick","onKeydown"]),[[pt,e.showConfirmButton]])],2)],14,["onClick"])]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,["aria-label","aria-describedby","onClick","onMousedown","onMouseup"])]),_:3},8,["z-index","overlay-class","mask"]),[[pt,e.visible]])]),_:3},8,["onAfterLeave"])}var mX=ve(vX,[["render",hX],["__file","index.vue"]]);const Er=new Map,gX=e=>{let t=document.body;return e.appendTo&&(Ve(e.appendTo)&&(t=document.querySelector(e.appendTo)),Tn(e.appendTo)&&(t=e.appendTo),Tn(t)||(t=document.body)),t},yX=(e,t,n=null)=>{const a=q(mX,e,Je(e.message)||Ft(e.message)?{default:Je(e.message)?e.message:()=>e.message}:null);return a.appContext=n,ol(a,t),gX(e).appendChild(t.firstElementChild),a.component},_X=()=>document.createElement("div"),bX=(e,t)=>{const n=_X();e.onVanish=()=>{ol(null,n),Er.delete(l)},e.onAction=r=>{const s=Er.get(l);let i;e.showInput?i={value:l.inputValue,action:r}:i=r,e.callback?e.callback(i,a.proxy):r==="cancel"||r==="close"?e.distinguishCancelAndClose&&r!=="cancel"?s.reject("close"):s.reject("cancel"):s.resolve(i)};const a=yX(e,n,t),l=a.proxy;for(const r in e)vn(e,r)&&!vn(l.$props,r)&&(l[r]=e[r]);return l.visible=!0,l};function Ho(e,t=null){if(!ut)return Promise.reject();let n;return Ve(e)||Ft(e)?e={message:e}:n=e.callback,new Promise((a,l)=>{const r=bX(e,t??Ho._context);Er.set(r,{options:e,callback:n,resolve:a,reject:l})})}const wX=["alert","confirm","prompt"],CX={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};wX.forEach(e=>{Ho[e]=SX(e)});function SX(e){return(t,n,a,l)=>{let r="";return ht(n)?(a=n,r=""):vt(n)?r="":r=n,Ho(Object.assign({title:r,message:t,type:"",...CX[e]},a,{boxType:e}),l)}}Ho.close=()=>{Er.forEach((e,t)=>{t.doClose()}),Er.clear()};Ho._context=null;const Qa=Ho;Qa.install=e=>{Qa._context=e._context,e.config.globalProperties.$msgbox=Qa,e.config.globalProperties.$messageBox=Qa,e.config.globalProperties.$alert=Qa.alert,e.config.globalProperties.$confirm=Qa.confirm,e.config.globalProperties.$prompt=Qa.prompt};const kX=Qa,L4=["success","info","warning","error"],EX=pe({customClass:{type:String,default:""},dangerouslyUseHTMLString:Boolean,duration:{type:Number,default:4500},icon:{type:St},id:{type:String,default:""},message:{type:X([String,Object,Function]),default:""},offset:{type:Number,default:0},onClick:{type:X(Function),default:()=>{}},onClose:{type:X(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...L4,""],default:""},zIndex:Number}),xX={destroy:()=>!0},MX=T({name:"ElNotification"}),$X=T({...MX,props:EX,emits:xX,setup(e,{expose:t}){const n=e,{ns:a,zIndex:l}=_i("notification"),{nextZIndex:r,currentZIndex:s}=l,{Close:i}=dd,u=A(!1);let c;const d=C(()=>{const w=n.type;return w&&il[n.type]?a.m(w):""}),f=C(()=>n.type&&il[n.type]||n.icon),h=C(()=>n.position.endsWith("right")?"right":"left"),v=C(()=>n.position.startsWith("top")?"top":"bottom"),m=C(()=>{var w;return{[v.value]:`${n.offset}px`,zIndex:(w=n.zIndex)!=null?w:s.value}});function p(){n.duration>0&&({stop:c}=Nl(()=>{u.value&&g()},n.duration))}function y(){c==null||c()}function g(){u.value=!1}function x({code:w}){w===Ce.delete||w===Ce.backspace?y():w===Ce.esc?u.value&&g():p()}return Xe(()=>{p(),r(),u.value=!0}),wt(document,"keydown",x),t({visible:u,close:g}),(w,b)=>(_(),ae(tn,{name:o(a).b("fade"),onBeforeLeave:w.onClose,onAfterLeave:S=>w.$emit("destroy"),persisted:""},{default:G(()=>[qe(k("div",{id:w.id,class:$([o(a).b(),w.customClass,o(h)]),style:Oe(o(m)),role:"alert",onMouseenter:y,onMouseleave:p,onClick:w.onClick},[o(f)?(_(),ae(o(Me),{key:0,class:$([o(a).e("icon"),o(d)])},{default:G(()=>[(_(),ae(Qe(o(f))))]),_:1},8,["class"])):ee("v-if",!0),k("div",{class:$(o(a).e("group"))},[k("h2",{class:$(o(a).e("title")),textContent:he(w.title)},null,10,["textContent"]),qe(k("div",{class:$(o(a).e("content")),style:Oe(w.title?void 0:{margin:0})},[Q(w.$slots,"default",{},()=>[w.dangerouslyUseHTMLString?(_(),M(ze,{key:1},[ee(" Caution here, message could've been compromised, never use user's input as message "),k("p",{innerHTML:w.message},null,8,["innerHTML"])],2112)):(_(),M("p",{key:0},he(w.message),1))])],6),[[pt,w.message]]),w.showClose?(_(),ae(o(Me),{key:0,class:$(o(a).e("closeBtn")),onClick:Ae(g,["stop"])},{default:G(()=>[q(o(i))]),_:1},8,["class","onClick"])):ee("v-if",!0)],2)],46,["id","onClick"]),[[pt,u.value]])]),_:3},8,["name","onBeforeLeave","onAfterLeave"]))}});var TX=ve($X,[["__file","notification.vue"]]);const li={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},Vc=16;let OX=1;const xo=function(e={},t){if(!ut)return{close:()=>{}};(Ve(e)||Ft(e))&&(e={message:e});const n=e.position||"top-right";let a=e.offset||0;li[n].forEach(({vm:d})=>{var f;a+=(((f=d.el)==null?void 0:f.offsetHeight)||0)+Vc}),a+=Vc;const l=`notification_${OX++}`,r=e.onClose,s={...e,offset:a,id:l,onClose:()=>{NX(l,n,r)}};let i=document.body;Tn(e.appendTo)?i=e.appendTo:Ve(e.appendTo)&&(i=document.querySelector(e.appendTo)),Tn(i)||(i=document.body);const u=document.createElement("div"),c=q(TX,s,Je(s.message)?s.message:Ft(s.message)?()=>s.message:null);return c.appContext=vt(t)?xo._context:t,c.props.onDestroy=()=>{ol(null,u)},ol(c,u),li[n].push({vm:c}),i.appendChild(u.firstElementChild),{close:()=>{c.component.exposed.visible.value=!1}}};L4.forEach(e=>{xo[e]=(t={},n)=>((Ve(t)||Ft(t))&&(t={message:t}),xo({...t,type:e},n))});function NX(e,t,n){const a=li[t],l=a.findIndex(({vm:c})=>{var d;return((d=c.component)==null?void 0:d.props.id)===e});if(l===-1)return;const{vm:r}=a[l];if(!r)return;n==null||n(r);const s=r.el.offsetHeight,i=t.split("-")[0];a.splice(l,1);const u=a.length;if(!(u<1))for(let c=l;c{t.component.exposed.visible.value=!1})}xo.closeAll=IX;xo._context=null;const PX=z1(xo,"$notify");var zX=[YG,QG,fX,kX,PX,Xh],jX=mb([...DG,...zX]);const qX={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((e,t)=>(e[t.id]=t)&&e,{})}},methods:{updatePaneComponents(){this.panes.forEach(e=>{e.update&&e.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[e.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(e,t){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=t},onMouseMove(e){this.touch.mouseDown&&(e.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(e)),this.$emit("resize",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(e,t){"ontouchstart"in window&&(e.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===t?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(e,t),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=t,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[t])},onSplitterDblClick(e,t){let n=0;this.panes=this.panes.map((a,l)=>(a.size=l===t?a.max:a.min,l!==t&&(n+=a.min),a)),this.panes[t].size-=n,this.$emit("pane-maximize",this.panes[t]),this.$emit("resized",this.panes.map(a=>({min:a.min,max:a.max,size:a.size})))},onPaneClick(e,t){this.$emit("pane-click",this.indexedPanes[t])},getCurrentMouseDrag(e){const t=this.container.getBoundingClientRect(),{clientX:n,clientY:a}="ontouchstart"in window&&e.touches?e.touches[0]:e;return{x:n-t.left,y:a-t.top}},getCurrentDragPercentage(e){e=e[this.horizontal?"y":"x"];const t=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(e=t-e),e*100/t},calculatePanesSize(e){const t=this.touch.activeSplitter;let n={prevPanesSize:this.sumPrevPanesSize(t),nextPanesSize:this.sumNextPanesSize(t),prevReachedMinPanes:0,nextReachedMinPanes:0};const a=0+(this.pushOtherPanes?0:n.prevPanesSize),l=100-(this.pushOtherPanes?0:n.nextPanesSize),r=Math.max(Math.min(this.getCurrentDragPercentage(e),l),a);let s=[t,t+1],i=this.panes[s[0]]||null,u=this.panes[s[1]]||null;const c=i.max<100&&r>=i.max+n.prevPanesSize,d=u.max<100&&r<=100-(u.max+this.sumNextPanesSize(t+1));if(c||d){c?(i.size=i.max,u.size=Math.max(100-i.max-n.prevPanesSize-n.nextPanesSize,0)):(i.size=Math.max(100-u.max-n.prevPanesSize-this.sumNextPanesSize(t+1),0),u.size=u.max);return}if(this.pushOtherPanes){const f=this.doPushOtherPanes(n,r);if(!f)return;({sums:n,panesToResize:s}=f),i=this.panes[s[0]]||null,u=this.panes[s[1]]||null}i!==null&&(i.size=Math.min(Math.max(r-n.prevPanesSize-n.prevReachedMinPanes,i.min),i.max)),u!==null&&(u.size=Math.min(Math.max(100-r-n.nextPanesSize-n.nextReachedMinPanes,u.min),u.max))},doPushOtherPanes(e,t){const n=this.touch.activeSplitter,a=[n,n+1];return t{r>a[0]&&r<=n&&(l.size=l.min,e.prevReachedMinPanes+=l.min)}),e.prevPanesSize=this.sumPrevPanesSize(a[0]),a[0]===void 0)?(e.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((l,r)=>{r>0&&r<=n&&(l.size=l.min,e.prevReachedMinPanes+=l.min)}),this.panes[a[1]].size=100-e.prevReachedMinPanes-this.panes[0].min-e.prevPanesSize-e.nextPanesSize,null):t>100-e.nextPanesSize-this.panes[a[1]].min&&(a[1]=this.findNextExpandedPane(n).index,e.nextReachedMinPanes=0,a[1]>n+1&&this.panes.forEach((l,r)=>{r>n&&r{r=n+1&&(l.size=l.min,e.nextReachedMinPanes+=l.min)}),this.panes[a[0]].size=100-e.prevPanesSize-e.nextReachedMinPanes-this.panes[this.panesCount-1].min-e.nextPanesSize,null):{sums:e,panesToResize:a}},sumPrevPanesSize(e){return this.panes.reduce((t,n,a)=>t+(at+(a>e+1?n.size:0),0)},findPrevExpandedPane(e){return[...this.panes].reverse().find(t=>t.indext.min)||{}},findNextExpandedPane(e){return this.panes.find(t=>t.index>e+1&&t.size>t.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(e=>{const t=e.classList.contains("splitpanes__pane"),n=e.classList.contains("splitpanes__splitter");!t&&!n&&(e.parentNode.removeChild(e),console.warn("Splitpanes: Only elements are allowed at the root of . One of your DOM nodes was removed."))})},addSplitter(e,t,n=!1){const a=e-1,l=document.createElement("div");l.classList.add("splitpanes__splitter"),n||(l.onmousedown=r=>this.onMouseDown(r,a),typeof window<"u"&&"ontouchstart"in window&&(l.ontouchstart=r=>this.onMouseDown(r,a)),l.onclick=r=>this.onSplitterClick(r,a+1)),this.dblClickSplitter&&(l.ondblclick=r=>this.onSplitterDblClick(r,a+1)),t.parentNode.insertBefore(l,t)},removeSplitter(e){e.onmousedown=void 0,e.onclick=void 0,e.ondblclick=void 0,e.parentNode.removeChild(e)},redoSplitters(){const e=Array.from(this.container.children);e.forEach(n=>{n.className.includes("splitpanes__splitter")&&this.removeSplitter(n)});let t=0;e.forEach(n=>{n.className.includes("splitpanes__pane")&&(!t&&this.firstSplitter?this.addSplitter(t,n,!0):t&&this.addSplitter(t,n),t++)})},requestUpdate({target:e,...t}){const n=this.indexedPanes[e._.uid];Object.entries(t).forEach(([a,l])=>n[a]=l)},onPaneAdd(e){let t=-1;Array.from(e.$el.parentNode.children).some(l=>(l.className.includes("splitpanes__pane")&&t++,l===e.$el));const n=parseFloat(e.minSize),a=parseFloat(e.maxSize);this.panes.splice(t,0,{id:e._.uid,index:t,min:isNaN(n)?0:n,max:isNaN(a)?100:a,size:e.size===null?null:parseFloat(e.size),givenSize:e.size,update:e.update}),this.panes.forEach((l,r)=>l.index=r),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[t]}),this.$emit("pane-add",{index:t,panes:this.panes.map(l=>({min:l.min,max:l.max,size:l.size}))})})},onPaneRemove(e){const t=this.panes.findIndex(a=>a.id===e._.uid),n=this.panes.splice(t,1)[0];this.panes.forEach((a,l)=>a.index=l),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...n,index:t}}),this.$emit("pane-remove",{removed:n,panes:this.panes.map(a=>({min:a.min,max:a.max,size:a.size}))})})},resetPaneSizes(e={}){!e.addedPane&&!e.removedPane?this.initialPanesSizing():this.panes.some(t=>t.givenSize!==null||t.min||t.max<100)?this.equalizeAfterAddOrRemove(e):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size})))},equalize(){const e=100/this.panesCount;let t=0;const n=[],a=[];this.panes.forEach(l=>{l.size=Math.max(Math.min(e,l.max),l.min),t-=l.size,l.size>=l.max&&n.push(l.id),l.size<=l.min&&a.push(l.id)}),t>.1&&this.readjustSizes(t,n,a)},initialPanesSizing(){let e=100;const t=[],n=[];let a=0;this.panes.forEach(r=>{e-=r.size,r.size!==null&&a++,r.size>=r.max&&t.push(r.id),r.size<=r.min&&n.push(r.id)});let l=100;e>.1&&(this.panes.forEach(r=>{r.size===null&&(r.size=Math.max(Math.min(e/(this.panesCount-a),r.max),r.min)),l-=r.size}),l>.1&&this.readjustSizes(e,t,n))},equalizeAfterAddOrRemove({addedPane:e,removedPane:t}={}){let n=100/this.panesCount,a=0;const l=[],r=[];e&&e.givenSize!==null&&(n=(100-e.givenSize)/(this.panesCount-1)),this.panes.forEach(s=>{a-=s.size,s.size>=s.max&&l.push(s.id),s.size<=s.min&&r.push(s.id)}),!(Math.abs(a)<.1)&&(this.panes.forEach(s=>{e&&e.givenSize!==null&&e.id===s.id||(s.size=Math.max(Math.min(n,s.max),s.min)),a-=s.size,s.size>=s.max&&l.push(s.id),s.size<=s.min&&r.push(s.id)}),a>.1&&this.readjustSizes(a,l,r))},readjustSizes(e,t,n){let a;e>0?a=e/(this.panesCount-t.length):a=e/(this.panesCount-n.length),this.panes.forEach((l,r)=>{if(e>0&&!t.includes(l.id)){const s=Math.max(Math.min(l.size+a,l.max),l.min),i=s-l.size;e-=i,l.size=s}else if(!n.includes(l.id)){const s=Math.max(Math.min(l.size+a,l.max),l.min),i=s-l.size;e-=i,l.size=s}l.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[l.id].size}%`})}),Math.abs(e)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(e){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((t,n)=>{t.ondblclick=e?a=>this.onSplitterDblClick(a,n):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return Pe("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},AX=(e,t)=>{const n=e.__vccOpts||e;for(const[a,l]of t)n[a]=l;return n},VX={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(e){this.style=e}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(e){this.requestUpdate({target:this,size:e})},minSizeNumber(e){this.requestUpdate({target:this,min:e})},maxSizeNumber(e){this.requestUpdate({target:this,max:e})}}};function LX(e,t,n,a,l,r){return _(),M("div",{class:"splitpanes__pane",onClick:t[0]||(t[0]=s=>r.onPaneClick(s,e._.uid)),style:Oe(e.style)},[Q(e.$slots,"default")],4)}const UX=AX(VX,[["render",LX]]);export{fX as E,qX as M,DX as a,UX as g,jX as i}; diff --git a/assets/vendor-Bqkqt8ok.js b/assets/vendor-Bqkqt8ok.js deleted file mode 100644 index 289f5b1..0000000 --- a/assets/vendor-Bqkqt8ok.js +++ /dev/null @@ -1,17 +0,0 @@ -/** -* @vue/shared v3.5.13 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function ss(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const k={},pt=[],we=()=>{},ki=()=>!1,pn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),rs=e=>e.startsWith("onUpdate:"),re=Object.assign,is=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Gi=Object.prototype.hasOwnProperty,j=(e,t)=>Gi.call(e,t),M=Array.isArray,gt=e=>Kt(e)==="[object Map]",gn=e=>Kt(e)==="[object Set]",As=e=>Kt(e)==="[object Date]",F=e=>typeof e=="function",Z=e=>typeof e=="string",Ae=e=>typeof e=="symbol",W=e=>e!==null&&typeof e=="object",hr=e=>(W(e)||F(e))&&F(e.then)&&F(e.catch),pr=Object.prototype.toString,Kt=e=>pr.call(e),qi=e=>Kt(e).slice(8,-1),gr=e=>Kt(e)==="[object Object]",os=e=>Z(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ot=ss(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),mn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Ji=/-(\w)/g,Se=mn(e=>e.replace(Ji,(t,n)=>n?n.toUpperCase():"")),Yi=/\B([A-Z])/g,Ze=mn(e=>e.replace(Yi,"-$1").toLowerCase()),_n=mn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Zt=mn(e=>e?`on${_n(e)}`:""),ze=(e,t)=>!Object.is(e,t),Qt=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},Kn=e=>{const t=parseFloat(e);return isNaN(t)?e:t},zi=e=>{const t=Z(e)?Number(e):NaN;return isNaN(t)?e:t};let Ms;const yn=()=>Ms||(Ms=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function bn(e){if(M(e)){const t={};for(let n=0;n{if(n){const s=n.split(Zi);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function xn(e){let t="";if(Z(e))t=e;else if(M(e))for(let n=0;nbt(n,t))}const br=e=>!!(e&&e.__v_isRef===!0),ro=e=>Z(e)?e:e==null?"":M(e)||W(e)&&(e.toString===pr||!F(e.toString))?br(e)?ro(e.value):JSON.stringify(e,xr,2):String(e),xr=(e,t)=>br(t)?xr(e,t.value):gt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],i)=>(n[Rn(s,i)+" =>"]=r,n),{})}:gn(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Rn(n))}:Ae(t)?Rn(t):W(t)&&!M(t)&&!gr(t)?String(t):t,Rn=(e,t="")=>{var n;return Ae(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** -* @vue/reactivity v3.5.13 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let he;class Cr{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=he,!t&&he&&(this.index=(he.scopes||(he.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0)return;if(Pt){let t=Pt;for(Pt=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Rt;){let t=Rt;for(Rt=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function wr(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Er(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),cs(s),oo(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function Un(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ar(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ar(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Lt))return;e.globalVersion=Lt;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!Un(e)){e.flags&=-3;return}const n=z,s=Ee;z=e,Ee=!0;try{wr(e);const r=e.fn(e._value);(t.version===0||ze(r,e._value))&&(e._value=r,t.version++)}catch(r){throw t.version++,r}finally{z=n,Ee=s,Er(e),e.flags&=-3}}function cs(e,t=!1){const{dep:n,prevSub:s,nextSub:r}=e;if(s&&(s.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)cs(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function oo(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ee=!0;const Mr=[];function Qe(){Mr.push(Ee),Ee=!1}function et(){const e=Mr.pop();Ee=e===void 0?!0:e}function Os(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=z;z=void 0;try{t()}finally{z=n}}}let Lt=0;class lo{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Cn{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!z||!Ee||z===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==z)n=this.activeLink=new lo(z,this),z.deps?(n.prevDep=z.depsTail,z.depsTail.nextDep=n,z.depsTail=n):z.deps=z.depsTail=n,Or(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=z.depsTail,n.nextDep=void 0,z.depsTail.nextDep=n,z.depsTail=n,z.deps===n&&(z.deps=s)}return n}trigger(t){this.version++,Lt++,this.notify(t)}notify(t){ls();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{fs()}}}function Or(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)Or(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const rn=new WeakMap,ft=Symbol(""),Wn=Symbol(""),Nt=Symbol("");function ce(e,t,n){if(Ee&&z){let s=rn.get(e);s||rn.set(e,s=new Map);let r=s.get(n);r||(s.set(n,r=new Cn),r.map=s,r.key=n),r.track()}}function je(e,t,n,s,r,i){const o=rn.get(e);if(!o){Lt++;return}const l=f=>{f&&f.trigger()};if(ls(),t==="clear")o.forEach(l);else{const f=M(e),d=f&&os(n);if(f&&n==="length"){const u=Number(s);o.forEach((h,g)=>{(g==="length"||g===Nt||!Ae(g)&&g>=u)&&l(h)})}else switch((n!==void 0||o.has(void 0))&&l(o.get(n)),d&&l(o.get(Nt)),t){case"add":f?d&&l(o.get("length")):(l(o.get(ft)),gt(e)&&l(o.get(Wn)));break;case"delete":f||(l(o.get(ft)),gt(e)&&l(o.get(Wn)));break;case"set":gt(e)&&l(o.get(ft));break}}fs()}function fo(e,t){const n=rn.get(e);return n&&n.get(t)}function dt(e){const t=$(e);return t===e?t:(ce(t,"iterate",Nt),ve(e)?t:t.map(ue))}function Tn(e){return ce(e=$(e),"iterate",Nt),e}const co={__proto__:null,[Symbol.iterator](){return In(this,Symbol.iterator,ue)},concat(...e){return dt(this).concat(...e.map(t=>M(t)?dt(t):t))},entries(){return In(this,"entries",e=>(e[1]=ue(e[1]),e))},every(e,t){return $e(this,"every",e,t,void 0,arguments)},filter(e,t){return $e(this,"filter",e,t,n=>n.map(ue),arguments)},find(e,t){return $e(this,"find",e,t,ue,arguments)},findIndex(e,t){return $e(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return $e(this,"findLast",e,t,ue,arguments)},findLastIndex(e,t){return $e(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return $e(this,"forEach",e,t,void 0,arguments)},includes(...e){return Fn(this,"includes",e)},indexOf(...e){return Fn(this,"indexOf",e)},join(e){return dt(this).join(e)},lastIndexOf(...e){return Fn(this,"lastIndexOf",e)},map(e,t){return $e(this,"map",e,t,void 0,arguments)},pop(){return wt(this,"pop")},push(...e){return wt(this,"push",e)},reduce(e,...t){return Rs(this,"reduce",e,t)},reduceRight(e,...t){return Rs(this,"reduceRight",e,t)},shift(){return wt(this,"shift")},some(e,t){return $e(this,"some",e,t,void 0,arguments)},splice(...e){return wt(this,"splice",e)},toReversed(){return dt(this).toReversed()},toSorted(e){return dt(this).toSorted(e)},toSpliced(...e){return dt(this).toSpliced(...e)},unshift(...e){return wt(this,"unshift",e)},values(){return In(this,"values",ue)}};function In(e,t,n){const s=Tn(e),r=s[t]();return s!==e&&!ve(e)&&(r._next=r.next,r.next=()=>{const i=r._next();return i.value&&(i.value=n(i.value)),i}),r}const uo=Array.prototype;function $e(e,t,n,s,r,i){const o=Tn(e),l=o!==e&&!ve(e),f=o[t];if(f!==uo[t]){const h=f.apply(e,i);return l?ue(h):h}let d=n;o!==e&&(l?d=function(h,g){return n.call(this,ue(h),g,e)}:n.length>2&&(d=function(h,g){return n.call(this,h,g,e)}));const u=f.call(o,d,s);return l&&r?r(u):u}function Rs(e,t,n,s){const r=Tn(e);let i=n;return r!==e&&(ve(e)?n.length>3&&(i=function(o,l,f){return n.call(this,o,l,f,e)}):i=function(o,l,f){return n.call(this,o,ue(l),f,e)}),r[t](i,...s)}function Fn(e,t,n){const s=$(e);ce(s,"iterate",Nt);const r=s[t](...n);return(r===-1||r===!1)&&hs(n[0])?(n[0]=$(n[0]),s[t](...n)):r}function wt(e,t,n=[]){Qe(),ls();const s=$(e)[t].apply(e,n);return fs(),et(),s}const ao=ss("__proto__,__v_isRef,__isVue"),Rr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ae));function ho(e){Ae(e)||(e=String(e));const t=$(this);return ce(t,"has",e),t.hasOwnProperty(e)}class Pr{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const r=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return i;if(n==="__v_raw")return s===(r?i?vo:Lr:i?Dr:Fr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const o=M(t);if(!r){let f;if(o&&(f=co[n]))return f;if(n==="hasOwnProperty")return ho}const l=Reflect.get(t,n,le(t)?t:s);return(Ae(n)?Rr.has(n):ao(n))||(r||ce(t,"get",n),i)?l:le(l)?o&&os(n)?l:l.value:W(l)?r?Nr(l):as(l):l}}class Ir extends Pr{constructor(t=!1){super(!1,t)}set(t,n,s,r){let i=t[n];if(!this._isShallow){const f=ut(i);if(!ve(s)&&!ut(s)&&(i=$(i),s=$(s)),!M(t)&&le(i)&&!le(s))return f?!1:(i.value=s,!0)}const o=M(t)&&os(n)?Number(n)e,qt=e=>Reflect.getPrototypeOf(e);function yo(e,t,n){return function(...s){const r=this.__v_raw,i=$(r),o=gt(i),l=e==="entries"||e===Symbol.iterator&&o,f=e==="keys"&&o,d=r[e](...s),u=n?kn:t?Gn:ue;return!t&&ce(i,"iterate",f?Wn:ft),{next(){const{value:h,done:g}=d.next();return g?{value:h,done:g}:{value:l?[u(h[0]),u(h[1])]:u(h),done:g}},[Symbol.iterator](){return this}}}}function Jt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function bo(e,t){const n={get(r){const i=this.__v_raw,o=$(i),l=$(r);e||(ze(r,l)&&ce(o,"get",r),ce(o,"get",l));const{has:f}=qt(o),d=t?kn:e?Gn:ue;if(f.call(o,r))return d(i.get(r));if(f.call(o,l))return d(i.get(l));i!==o&&i.get(r)},get size(){const r=this.__v_raw;return!e&&ce($(r),"iterate",ft),Reflect.get(r,"size",r)},has(r){const i=this.__v_raw,o=$(i),l=$(r);return e||(ze(r,l)&&ce(o,"has",r),ce(o,"has",l)),r===l?i.has(r):i.has(r)||i.has(l)},forEach(r,i){const o=this,l=o.__v_raw,f=$(l),d=t?kn:e?Gn:ue;return!e&&ce(f,"iterate",ft),l.forEach((u,h)=>r.call(i,d(u),d(h),o))}};return re(n,e?{add:Jt("add"),set:Jt("set"),delete:Jt("delete"),clear:Jt("clear")}:{add(r){!t&&!ve(r)&&!ut(r)&&(r=$(r));const i=$(this);return qt(i).has.call(i,r)||(i.add(r),je(i,"add",r,r)),this},set(r,i){!t&&!ve(i)&&!ut(i)&&(i=$(i));const o=$(this),{has:l,get:f}=qt(o);let d=l.call(o,r);d||(r=$(r),d=l.call(o,r));const u=f.call(o,r);return o.set(r,i),d?ze(i,u)&&je(o,"set",r,i):je(o,"add",r,i),this},delete(r){const i=$(this),{has:o,get:l}=qt(i);let f=o.call(i,r);f||(r=$(r),f=o.call(i,r)),l&&l.call(i,r);const d=i.delete(r);return f&&je(i,"delete",r,void 0),d},clear(){const r=$(this),i=r.size!==0,o=r.clear();return i&&je(r,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=yo(r,e,t)}),n}function us(e,t){const n=bo(e,t);return(s,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(j(n,r)&&r in s?n:s,r,i)}const xo={get:us(!1,!1)},Co={get:us(!1,!0)},To={get:us(!0,!1)};const Fr=new WeakMap,Dr=new WeakMap,Lr=new WeakMap,vo=new WeakMap;function So(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function wo(e){return e.__v_skip||!Object.isExtensible(e)?0:So(qi(e))}function as(e){return ut(e)?e:ds(e,!1,go,xo,Fr)}function Eo(e){return ds(e,!1,_o,Co,Dr)}function Nr(e){return ds(e,!0,mo,To,Lr)}function ds(e,t,n,s,r){if(!W(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const o=wo(e);if(o===0)return e;const l=new Proxy(e,o===2?s:n);return r.set(e,l),l}function mt(e){return ut(e)?mt(e.__v_raw):!!(e&&e.__v_isReactive)}function ut(e){return!!(e&&e.__v_isReadonly)}function ve(e){return!!(e&&e.__v_isShallow)}function hs(e){return e?!!e.__v_raw:!1}function $(e){const t=e&&e.__v_raw;return t?$(t):e}function Ao(e){return!j(e,"__v_skip")&&Object.isExtensible(e)&&mr(e,"__v_skip",!0),e}const ue=e=>W(e)?as(e):e,Gn=e=>W(e)?Nr(e):e;function le(e){return e?e.__v_isRef===!0:!1}function Mo(e){return Hr(e,!1)}function Pf(e){return Hr(e,!0)}function Hr(e,t){return le(e)?e:new Oo(e,t)}class Oo{constructor(t,n){this.dep=new Cn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:$(t),this._value=n?t:ue(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||ve(t)||ut(t);t=s?t:$(t),ze(t,n)&&(this._rawValue=t,this._value=s?t:ue(t),this.dep.trigger())}}function $r(e){return le(e)?e.value:e}function If(e){return F(e)?e():$r(e)}const Ro={get:(e,t,n)=>t==="__v_raw"?e:$r(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return le(r)&&!le(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function Vr(e){return mt(e)?e:new Proxy(e,Ro)}class Po{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Cn,{get:s,set:r}=t(n.track.bind(n),n.trigger.bind(n));this._get=s,this._set=r}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Ff(e){return new Po(e)}function Df(e){const t=M(e)?new Array(e.length):{};for(const n in e)t[n]=jr(e,n);return t}class Io{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return fo($(this._object),this._key)}}class Fo{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Lf(e,t,n){return le(e)?e:F(e)?new Fo(e):W(e)&&arguments.length>1?jr(e,t,n):Mo(e)}function jr(e,t,n){const s=e[t];return le(s)?s:new Io(e,t,n)}class Do{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Cn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Lt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&z!==this)return Sr(this,!0),!0}get value(){const t=this.dep.track();return Ar(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Lo(e,t,n=!1){let s,r;return F(e)?s=e:(s=e.get,r=e.set),new Do(s,r,n)}const Yt={},on=new WeakMap;let ot;function No(e,t=!1,n=ot){if(n){let s=on.get(n);s||on.set(n,s=[]),s.push(e)}}function Ho(e,t,n=k){const{immediate:s,deep:r,once:i,scheduler:o,augmentJob:l,call:f}=n,d=O=>r?O:ve(O)||r===!1||r===0?Be(O,1):Be(O);let u,h,g,C,E=!1,A=!1;if(le(e)?(h=()=>e.value,E=ve(e)):mt(e)?(h=()=>d(e),E=!0):M(e)?(A=!0,E=e.some(O=>mt(O)||ve(O)),h=()=>e.map(O=>{if(le(O))return O.value;if(mt(O))return d(O);if(F(O))return f?f(O,2):O()})):F(e)?t?h=f?()=>f(e,2):e:h=()=>{if(g){Qe();try{g()}finally{et()}}const O=ot;ot=u;try{return f?f(e,3,[C]):e(C)}finally{ot=O}}:h=we,t&&r){const O=h,V=r===!0?1/0:r;h=()=>Be(O(),V)}const te=io(),L=()=>{u.stop(),te&&te.active&&is(te.effects,u)};if(i&&t){const O=t;t=(...V)=>{O(...V),L()}}let B=A?new Array(e.length).fill(Yt):Yt;const K=O=>{if(!(!(u.flags&1)||!u.dirty&&!O))if(t){const V=u.run();if(r||E||(A?V.some((G,ne)=>ze(G,B[ne])):ze(V,B))){g&&g();const G=ot;ot=u;try{const ne=[V,B===Yt?void 0:A&&B[0]===Yt?[]:B,C];f?f(t,3,ne):t(...ne),B=V}finally{ot=G}}}else u.run()};return l&&l(K),u=new Tr(h),u.scheduler=o?()=>o(K,!1):K,C=O=>No(O,!1,u),g=u.onStop=()=>{const O=on.get(u);if(O){if(f)f(O,4);else for(const V of O)V();on.delete(u)}},t?s?K(!0):B=u.run():o?o(K.bind(null,!0),!0):u.run(),L.pause=u.pause.bind(u),L.resume=u.resume.bind(u),L.stop=L,L}function Be(e,t=1/0,n){if(t<=0||!W(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,le(e))Be(e.value,t,n);else if(M(e))for(let s=0;s{Be(s,t,n)});else if(gr(e)){for(const s in e)Be(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&Be(e[s],t,n)}return e}/** -* @vue/runtime-core v3.5.13 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function Ut(e,t,n,s){try{return s?e(...s):e()}catch(r){vn(r,t,n)}}function Me(e,t,n,s){if(F(e)){const r=Ut(e,t,n,s);return r&&hr(r)&&r.catch(i=>{vn(i,t,n)}),r}if(M(e)){const r=[];for(let i=0;i>>1,r=pe[s],i=Ht(r);i=Ht(n)?pe.push(e):pe.splice(jo(t),0,e),e.flags|=1,Kr()}}function Kr(){ln||(ln=Br.then(Wr))}function Bo(e){M(e)?_t.push(...e):Ge&&e.id===-1?Ge.splice(ht+1,0,e):e.flags&1||(_t.push(e),e.flags|=1),Kr()}function Ps(e,t,n=Le+1){for(;nHt(n)-Ht(s));if(_t.length=0,Ge){Ge.push(...t);return}for(Ge=t,ht=0;hte.id==null?e.flags&2?-1:1/0:e.id;function Wr(e){try{for(Le=0;Le{s._d&&ks(-1);const i=fn(t);let o;try{o=e(...r)}finally{fn(i),s._d&&ks(1)}return o};return s._n=!0,s._c=!0,s._d=!0,s}function Nf(e,t){if(se===null)return e;const n=Mn(se),s=e.dirs||(e.dirs=[]);for(let r=0;re.__isTeleport,It=e=>e&&(e.disabled||e.disabled===""),Is=e=>e&&(e.defer||e.defer===""),Fs=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Ds=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,qn=(e,t)=>{const n=e&&e.to;return Z(n)?t?t(n):null:n},Jr={name:"Teleport",__isTeleport:!0,process(e,t,n,s,r,i,o,l,f,d){const{mc:u,pc:h,pbc:g,o:{insert:C,querySelector:E,createText:A,createComment:te}}=d,L=It(t.props);let{shapeFlag:B,children:K,dynamicChildren:O}=t;if(e==null){const V=t.el=A(""),G=t.anchor=A("");C(V,n,s),C(G,n,s);const ne=(P,N)=>{B&16&&(r&&r.isCE&&(r.ce._teleportTarget=P),u(K,P,N,r,i,o,l,f))},ee=()=>{const P=t.target=qn(t.props,E),N=Yr(P,t,A,C);P&&(o!=="svg"&&Fs(P)?o="svg":o!=="mathml"&&Ds(P)&&(o="mathml"),L||(ne(P,N),en(t,!1)))};L&&(ne(n,G),en(t,!0)),Is(t.props)?de(()=>{ee(),t.el.__isMounted=!0},i):ee()}else{if(Is(t.props)&&!e.el.__isMounted){de(()=>{Jr.process(e,t,n,s,r,i,o,l,f,d),delete e.el.__isMounted},i);return}t.el=e.el,t.targetStart=e.targetStart;const V=t.anchor=e.anchor,G=t.target=e.target,ne=t.targetAnchor=e.targetAnchor,ee=It(e.props),P=ee?n:G,N=ee?V:ne;if(o==="svg"||Fs(G)?o="svg":(o==="mathml"||Ds(G))&&(o="mathml"),O?(g(e.dynamicChildren,O,P,r,i,o,l),bs(e,t,!0)):f||h(e,t,P,N,r,i,o,l,!1),L)ee?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):zt(t,n,V,d,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const q=t.target=qn(t.props,E);q&&zt(t,q,null,d,0)}else ee&&zt(t,G,ne,d,1);en(t,L)}},remove(e,t,n,{um:s,o:{remove:r}},i){const{shapeFlag:o,children:l,anchor:f,targetStart:d,targetAnchor:u,target:h,props:g}=e;if(h&&(r(d),r(u)),i&&r(f),o&16){const C=i||!It(g);for(let E=0;E{e.isMounted=!0}),ii(()=>{e.isUnmounting=!0}),e}const Te=[Function,Array],Xr={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Te,onEnter:Te,onAfterEnter:Te,onEnterCancelled:Te,onBeforeLeave:Te,onLeave:Te,onAfterLeave:Te,onLeaveCancelled:Te,onBeforeAppear:Te,onAppear:Te,onAfterAppear:Te,onAppearCancelled:Te},Zr=e=>{const t=e.subTree;return t.component?Zr(t.component):t},Wo={name:"BaseTransition",props:Xr,setup(e,{slots:t}){const n=Ts(),s=zr();return()=>{const r=t.default&&gs(t.default(),!0);if(!r||!r.length)return;const i=Qr(r),o=$(e),{mode:l}=o;if(s.isLeaving)return Dn(i);const f=Ls(i);if(!f)return Dn(i);let d=$t(f,o,s,n,h=>d=h);f.type!==ge&&at(f,d);let u=n.subTree&&Ls(n.subTree);if(u&&u.type!==ge&&!lt(f,u)&&Zr(n).type!==ge){let h=$t(u,o,s,n);if(at(u,h),l==="out-in"&&f.type!==ge)return s.isLeaving=!0,h.afterLeave=()=>{s.isLeaving=!1,n.job.flags&8||n.update(),delete h.afterLeave,u=void 0},Dn(i);l==="in-out"&&f.type!==ge?h.delayLeave=(g,C,E)=>{const A=ei(s,u);A[String(u.key)]=u,g[qe]=()=>{C(),g[qe]=void 0,delete d.delayedLeave,u=void 0},d.delayedLeave=()=>{E(),delete d.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return i}}};function Qr(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==ge){t=n;break}}return t}const ko=Wo;function ei(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function $t(e,t,n,s,r){const{appear:i,mode:o,persisted:l=!1,onBeforeEnter:f,onEnter:d,onAfterEnter:u,onEnterCancelled:h,onBeforeLeave:g,onLeave:C,onAfterLeave:E,onLeaveCancelled:A,onBeforeAppear:te,onAppear:L,onAfterAppear:B,onAppearCancelled:K}=t,O=String(e.key),V=ei(n,e),G=(P,N)=>{P&&Me(P,s,9,N)},ne=(P,N)=>{const q=N[1];G(P,N),M(P)?P.every(w=>w.length<=1)&&q():P.length<=1&&q()},ee={mode:o,persisted:l,beforeEnter(P){let N=f;if(!n.isMounted)if(i)N=te||f;else return;P[qe]&&P[qe](!0);const q=V[O];q&<(e,q)&&q.el[qe]&&q.el[qe](),G(N,[P])},enter(P){let N=d,q=u,w=h;if(!n.isMounted)if(i)N=L||d,q=B||u,w=K||h;else return;let X=!1;const fe=P[Xt]=He=>{X||(X=!0,He?G(w,[P]):G(q,[P]),ee.delayedLeave&&ee.delayedLeave(),P[Xt]=void 0)};N?ne(N,[P,fe]):fe()},leave(P,N){const q=String(e.key);if(P[Xt]&&P[Xt](!0),n.isUnmounting)return N();G(g,[P]);let w=!1;const X=P[qe]=fe=>{w||(w=!0,N(),fe?G(A,[P]):G(E,[P]),P[qe]=void 0,V[q]===e&&delete V[q])};V[q]=e,C?ne(C,[P,X]):X()},clone(P){const N=$t(P,t,n,s,r);return r&&r(N),N}};return ee}function Dn(e){if(Sn(e))return e=Xe(e),e.children=null,e}function Ls(e){if(!Sn(e))return qr(e.type)&&e.children?Qr(e.children):e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&F(n.default))return n.default()}}function at(e,t){e.shapeFlag&6&&e.component?(e.transition=t,at(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 gs(e,t=!1,n){let s=[],r=0;for(let i=0;i1)for(let i=0;icn(E,t&&(M(t)?t[A]:t),n,s,r));return}if(yt(s)&&!r){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&cn(e,t,n,s.component.subTree);return}const i=s.shapeFlag&4?Mn(s.component):s.el,o=r?null:i,{i:l,r:f}=e,d=t&&t.r,u=l.refs===k?l.refs={}:l.refs,h=l.setupState,g=$(h),C=h===k?()=>!1:E=>j(g,E);if(d!=null&&d!==f&&(Z(d)?(u[d]=null,C(d)&&(h[d]=null)):le(d)&&(d.value=null)),F(f))Ut(f,l,12,[o,u]);else{const E=Z(f),A=le(f);if(E||A){const te=()=>{if(e.f){const L=E?C(f)?h[f]:u[f]:f.value;r?M(L)&&is(L,i):M(L)?L.includes(i)||L.push(i):E?(u[f]=[i],C(f)&&(h[f]=u[f])):(f.value=[i],e.k&&(u[e.k]=f.value))}else E?(u[f]=o,C(f)&&(h[f]=o)):A&&(f.value=o,e.k&&(u[e.k]=o))};o?(te.id=-1,de(te,n)):te()}}}yn().requestIdleCallback;yn().cancelIdleCallback;const yt=e=>!!e.type.__asyncLoader,Sn=e=>e.type.__isKeepAlive;function Go(e,t){ni(e,"a",t)}function qo(e,t){ni(e,"da",t)}function ni(e,t,n=oe){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(wn(t,s,n),n){let r=n.parent;for(;r&&r.parent;)Sn(r.parent.vnode)&&Jo(s,t,n,r),r=r.parent}}function Jo(e,t,n,s){const r=wn(t,e,s,!0);oi(()=>{is(s[t],r)},n)}function wn(e,t,n=oe,s=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{Qe();const l=Wt(n),f=Me(t,n,e,o);return l(),et(),f});return s?r.unshift(i):r.push(i),i}}const Ue=e=>(t,n=oe)=>{(!Bt||e==="sp")&&wn(e,(...s)=>t(...s),n)},Yo=Ue("bm"),si=Ue("m"),zo=Ue("bu"),ri=Ue("u"),ii=Ue("bum"),oi=Ue("um"),Xo=Ue("sp"),Zo=Ue("rtg"),Qo=Ue("rtc");function el(e,t=oe){wn("ec",e,t)}const ms="components",tl="directives";function Vf(e,t){return _s(ms,e,!0,t)||e}const li=Symbol.for("v-ndc");function jf(e){return Z(e)?_s(ms,e,!1)||e:e||li}function Bf(e){return _s(tl,e)}function _s(e,t,n=!0,s=!1){const r=se||oe;if(r){const i=r.type;if(e===ms){const l=Kl(i,!1);if(l&&(l===t||l===Se(t)||l===_n(Se(t))))return i}const o=Ns(r[e]||i[e],t)||Ns(r.appContext[e],t);return!o&&s?i:o}}function Ns(e,t){return e&&(e[t]||e[Se(t)]||e[_n(Se(t))])}function Kf(e,t,n,s){let r;const i=n,o=M(e);if(o||Z(e)){const l=o&&mt(e);let f=!1;l&&(f=!ve(e),e=Tn(e)),r=new Array(e.length);for(let d=0,u=e.length;dt(l,f,void 0,i));else{const l=Object.keys(e);r=new Array(l.length);for(let f=0,d=l.length;f{const i=s.fn(...r);return i&&(i.key=s.key),i}:s.fn)}return e}function Wf(e,t,n={},s,r){if(se.ce||se.parent&&yt(se.parent)&&se.parent.ce)return t!=="default"&&(n.name=t),Zn(),Qn(ye,null,[me("slot",n,s&&s())],64);let i=e[t];i&&i._c&&(i._d=!1),Zn();const o=i&&fi(i(n)),l=n.key||o&&o.key,f=Qn(ye,{key:(l&&!Ae(l)?l:`_${t}`)+(!o&&s?"_fb":"")},o||(s?s():[]),o&&e._===1?64:-2);return f.scopeId&&(f.slotScopeIds=[f.scopeId+"-s"]),i&&i._c&&(i._d=!0),f}function fi(e){return e.some(t=>jt(t)?!(t.type===ge||t.type===ye&&!fi(t.children)):!0)?e:null}function kf(e,t){const n={};for(const s in e)n[Zt(s)]=e[s];return n}const Jn=e=>e?Oi(e)?Mn(e):Jn(e.parent):null,Ft=re(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=>Jn(e.parent),$root:e=>Jn(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>ai(e),$forceUpdate:e=>e.f||(e.f=()=>{ps(e.update)}),$nextTick:e=>e.n||(e.n=Vo.bind(e.proxy)),$watch:e=>vl.bind(e)}),Ln=(e,t)=>e!==k&&!e.__isScriptSetup&&j(e,t),nl={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:i,accessCache:o,type:l,appContext:f}=e;let d;if(t[0]!=="$"){const C=o[t];if(C!==void 0)switch(C){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(Ln(s,t))return o[t]=1,s[t];if(r!==k&&j(r,t))return o[t]=2,r[t];if((d=e.propsOptions[0])&&j(d,t))return o[t]=3,i[t];if(n!==k&&j(n,t))return o[t]=4,n[t];Yn&&(o[t]=0)}}const u=Ft[t];let h,g;if(u)return t==="$attrs"&&ce(e.attrs,"get",""),u(e);if((h=l.__cssModules)&&(h=h[t]))return h;if(n!==k&&j(n,t))return o[t]=4,n[t];if(g=f.config.globalProperties,j(g,t))return g[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:i}=e;return Ln(r,t)?(r[t]=n,!0):s!==k&&j(s,t)?(s[t]=n,!0):j(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:i}},o){let l;return!!n[o]||e!==k&&j(e,o)||Ln(t,o)||(l=i[0])&&j(l,o)||j(s,o)||j(Ft,o)||j(r.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:j(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Gf(){return ci().slots}function qf(){return ci().attrs}function ci(){const e=Ts();return e.setupContext||(e.setupContext=Pi(e))}function Hs(e){return M(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Yn=!0;function sl(e){const t=ai(e),n=e.proxy,s=e.ctx;Yn=!1,t.beforeCreate&&$s(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:o,watch:l,provide:f,inject:d,created:u,beforeMount:h,mounted:g,beforeUpdate:C,updated:E,activated:A,deactivated:te,beforeDestroy:L,beforeUnmount:B,destroyed:K,unmounted:O,render:V,renderTracked:G,renderTriggered:ne,errorCaptured:ee,serverPrefetch:P,expose:N,inheritAttrs:q,components:w,directives:X,filters:fe}=t;if(d&&rl(d,s,null),o)for(const Q in o){const J=o[Q];F(J)&&(s[Q]=J.bind(n))}if(r){const Q=r.call(n,n);W(Q)&&(e.data=as(Q))}if(Yn=!0,i)for(const Q in i){const J=i[Q],tt=F(J)?J.bind(n,n):F(J.get)?J.get.bind(n,n):we,kt=!F(J)&&F(J.set)?J.set.bind(n):we,nt=Wl({get:tt,set:kt});Object.defineProperty(s,Q,{enumerable:!0,configurable:!0,get:()=>nt.value,set:Oe=>nt.value=Oe})}if(l)for(const Q in l)ui(l[Q],s,n,Q);if(f){const Q=F(f)?f.call(n):f;Reflect.ownKeys(Q).forEach(J=>{ul(J,Q[J])})}u&&$s(u,e,"c");function ie(Q,J){M(J)?J.forEach(tt=>Q(tt.bind(n))):J&&Q(J.bind(n))}if(ie(Yo,h),ie(si,g),ie(zo,C),ie(ri,E),ie(Go,A),ie(qo,te),ie(el,ee),ie(Qo,G),ie(Zo,ne),ie(ii,B),ie(oi,O),ie(Xo,P),M(N))if(N.length){const Q=e.exposed||(e.exposed={});N.forEach(J=>{Object.defineProperty(Q,J,{get:()=>n[J],set:tt=>n[J]=tt})})}else e.exposed||(e.exposed={});V&&e.render===we&&(e.render=V),q!=null&&(e.inheritAttrs=q),w&&(e.components=w),X&&(e.directives=X),P&&ti(e)}function rl(e,t,n=we){M(e)&&(e=zn(e));for(const s in e){const r=e[s];let i;W(r)?"default"in r?i=tn(r.from||s,r.default,!0):i=tn(r.from||s):i=tn(r),le(i)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[s]=i}}function $s(e,t,n){Me(M(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function ui(e,t,n,s){let r=s.includes(".")?vi(n,s):()=>n[s];if(Z(e)){const i=t[e];F(i)&&Hn(r,i)}else if(F(e))Hn(r,e.bind(n));else if(W(e))if(M(e))e.forEach(i=>ui(i,t,n,s));else{const i=F(e.handler)?e.handler.bind(n):t[e.handler];F(i)&&Hn(r,i,e)}}function ai(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,l=i.get(t);let f;return l?f=l:!r.length&&!n&&!s?f=t:(f={},r.length&&r.forEach(d=>un(f,d,o,!0)),un(f,t,o)),W(t)&&i.set(t,f),f}function un(e,t,n,s=!1){const{mixins:r,extends:i}=t;i&&un(e,i,n,!0),r&&r.forEach(o=>un(e,o,n,!0));for(const o in t)if(!(s&&o==="expose")){const l=il[o]||n&&n[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const il={data:Vs,props:js,emits:js,methods:Mt,computed:Mt,beforeCreate:ae,created:ae,beforeMount:ae,mounted:ae,beforeUpdate:ae,updated:ae,beforeDestroy:ae,beforeUnmount:ae,destroyed:ae,unmounted:ae,activated:ae,deactivated:ae,errorCaptured:ae,serverPrefetch:ae,components:Mt,directives:Mt,watch:ll,provide:Vs,inject:ol};function Vs(e,t){return t?e?function(){return re(F(e)?e.call(this,this):e,F(t)?t.call(this,this):t)}:t:e}function ol(e,t){return Mt(zn(e),zn(t))}function zn(e){if(M(e)){const t={};for(let n=0;n1)return n&&F(t)?t.call(s&&s.proxy):t}}function Jf(){return!!(oe||se||ct)}const hi={},pi=()=>Object.create(hi),gi=e=>Object.getPrototypeOf(e)===hi;function al(e,t,n,s=!1){const r={},i=pi();e.propsDefaults=Object.create(null),mi(e,t,r,i);for(const o in e.propsOptions[0])o in r||(r[o]=void 0);n?e.props=s?r:Eo(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function dl(e,t,n,s){const{props:r,attrs:i,vnode:{patchFlag:o}}=e,l=$(r),[f]=e.propsOptions;let d=!1;if((s||o>0)&&!(o&16)){if(o&8){const u=e.vnode.dynamicProps;for(let h=0;h{f=!0;const[g,C]=_i(h,t,!0);re(o,g),C&&l.push(...C)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!f)return W(e)&&s.set(e,pt),pt;if(M(i))for(let u=0;ue[0]==="_"||e==="$stable",ys=e=>M(e)?e.map(Ne):[Ne(e)],pl=(e,t,n)=>{if(t._n)return t;const s=Ko((...r)=>ys(t(...r)),n);return s._c=!1,s},bi=(e,t,n)=>{const s=e._ctx;for(const r in e){if(yi(r))continue;const i=e[r];if(F(i))t[r]=pl(r,i,s);else if(i!=null){const o=ys(i);t[r]=()=>o}}},xi=(e,t)=>{const n=ys(t);e.slots.default=()=>n},Ci=(e,t,n)=>{for(const s in t)(n||s!=="_")&&(e[s]=t[s])},gl=(e,t,n)=>{const s=e.slots=pi();if(e.vnode.shapeFlag&32){const r=t._;r?(Ci(s,t,n),n&&mr(s,"_",r,!0)):bi(t,s)}else t&&xi(e,t)},ml=(e,t,n)=>{const{vnode:s,slots:r}=e;let i=!0,o=k;if(s.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:Ci(r,t,n):(i=!t.$stable,bi(t,r)),o=t}else t&&(xi(e,t),o={default:1});if(i)for(const l in r)!yi(l)&&o[l]==null&&delete r[l]},de=Rl;function _l(e){return yl(e)}function yl(e,t){const n=yn();n.__VUE__=!0;const{insert:s,remove:r,patchProp:i,createElement:o,createText:l,createComment:f,setText:d,setElementText:u,parentNode:h,nextSibling:g,setScopeId:C=we,insertStaticContent:E}=e,A=(c,a,p,y=null,m=null,_=null,v=void 0,T=null,x=!!a.dynamicChildren)=>{if(c===a)return;c&&!lt(c,a)&&(y=Gt(c),Oe(c,m,_,!0),c=null),a.patchFlag===-2&&(x=!1,a.dynamicChildren=null);const{type:b,ref:I,shapeFlag:S}=a;switch(b){case An:te(c,a,p,y);break;case ge:L(c,a,p,y);break;case $n:c==null&&B(a,p,y,v);break;case ye:w(c,a,p,y,m,_,v,T,x);break;default:S&1?V(c,a,p,y,m,_,v,T,x):S&6?X(c,a,p,y,m,_,v,T,x):(S&64||S&128)&&b.process(c,a,p,y,m,_,v,T,x,vt)}I!=null&&m&&cn(I,c&&c.ref,_,a||c,!a)},te=(c,a,p,y)=>{if(c==null)s(a.el=l(a.children),p,y);else{const m=a.el=c.el;a.children!==c.children&&d(m,a.children)}},L=(c,a,p,y)=>{c==null?s(a.el=f(a.children||""),p,y):a.el=c.el},B=(c,a,p,y)=>{[c.el,c.anchor]=E(c.children,a,p,y,c.el,c.anchor)},K=({el:c,anchor:a},p,y)=>{let m;for(;c&&c!==a;)m=g(c),s(c,p,y),c=m;s(a,p,y)},O=({el:c,anchor:a})=>{let p;for(;c&&c!==a;)p=g(c),r(c),c=p;r(a)},V=(c,a,p,y,m,_,v,T,x)=>{a.type==="svg"?v="svg":a.type==="math"&&(v="mathml"),c==null?G(a,p,y,m,_,v,T,x):P(c,a,m,_,v,T,x)},G=(c,a,p,y,m,_,v,T)=>{let x,b;const{props:I,shapeFlag:S,transition:R,dirs:D}=c;if(x=c.el=o(c.type,_,I&&I.is,I),S&8?u(x,c.children):S&16&&ee(c.children,x,null,y,m,Nn(c,_),v,T),D&&st(c,null,y,"created"),ne(x,c,c.scopeId,v,y),I){for(const Y in I)Y!=="value"&&!Ot(Y)&&i(x,Y,null,I[Y],_,y);"value"in I&&i(x,"value",null,I.value,_),(b=I.onVnodeBeforeMount)&&Fe(b,y,c)}D&&st(c,null,y,"beforeMount");const H=bl(m,R);H&&R.beforeEnter(x),s(x,a,p),((b=I&&I.onVnodeMounted)||H||D)&&de(()=>{b&&Fe(b,y,c),H&&R.enter(x),D&&st(c,null,y,"mounted")},m)},ne=(c,a,p,y,m)=>{if(p&&C(c,p),y)for(let _=0;_{for(let b=x;b{const T=a.el=c.el;let{patchFlag:x,dynamicChildren:b,dirs:I}=a;x|=c.patchFlag&16;const S=c.props||k,R=a.props||k;let D;if(p&&rt(p,!1),(D=R.onVnodeBeforeUpdate)&&Fe(D,p,a,c),I&&st(a,c,p,"beforeUpdate"),p&&rt(p,!0),(S.innerHTML&&R.innerHTML==null||S.textContent&&R.textContent==null)&&u(T,""),b?N(c.dynamicChildren,b,T,p,y,Nn(a,m),_):v||J(c,a,T,null,p,y,Nn(a,m),_,!1),x>0){if(x&16)q(T,S,R,p,m);else if(x&2&&S.class!==R.class&&i(T,"class",null,R.class,m),x&4&&i(T,"style",S.style,R.style,m),x&8){const H=a.dynamicProps;for(let Y=0;Y{D&&Fe(D,p,a,c),I&&st(a,c,p,"updated")},y)},N=(c,a,p,y,m,_,v)=>{for(let T=0;T{if(a!==p){if(a!==k)for(const _ in a)!Ot(_)&&!(_ in p)&&i(c,_,a[_],null,m,y);for(const _ in p){if(Ot(_))continue;const v=p[_],T=a[_];v!==T&&_!=="value"&&i(c,_,T,v,m,y)}"value"in p&&i(c,"value",a.value,p.value,m)}},w=(c,a,p,y,m,_,v,T,x)=>{const b=a.el=c?c.el:l(""),I=a.anchor=c?c.anchor:l("");let{patchFlag:S,dynamicChildren:R,slotScopeIds:D}=a;D&&(T=T?T.concat(D):D),c==null?(s(b,p,y),s(I,p,y),ee(a.children||[],p,I,m,_,v,T,x)):S>0&&S&64&&R&&c.dynamicChildren?(N(c.dynamicChildren,R,p,m,_,v,T),(a.key!=null||m&&a===m.subTree)&&bs(c,a,!0)):J(c,a,p,I,m,_,v,T,x)},X=(c,a,p,y,m,_,v,T,x)=>{a.slotScopeIds=T,c==null?a.shapeFlag&512?m.ctx.activate(a,p,y,v,x):fe(a,p,y,m,_,v,x):He(c,a,x)},fe=(c,a,p,y,m,_,v)=>{const T=c.component=$l(c,y,m);if(Sn(c)&&(T.ctx.renderer=vt),Vl(T,!1,v),T.asyncDep){if(m&&m.registerDep(T,ie,v),!c.el){const x=T.subTree=me(ge);L(null,x,a,p)}}else ie(T,c,a,p,m,_,v)},He=(c,a,p)=>{const y=a.component=c.component;if(Ml(c,a,p))if(y.asyncDep&&!y.asyncResolved){Q(y,a,p);return}else y.next=a,y.update();else a.el=c.el,y.vnode=a},ie=(c,a,p,y,m,_,v)=>{const T=()=>{if(c.isMounted){let{next:S,bu:R,u:D,parent:H,vnode:Y}=c;{const Pe=Ti(c);if(Pe){S&&(S.el=Y.el,Q(c,S,v)),Pe.asyncDep.then(()=>{c.isUnmounted||T()});return}}let U=S,be;rt(c,!1),S?(S.el=Y.el,Q(c,S,v)):S=Y,R&&Qt(R),(be=S.props&&S.props.onVnodeBeforeUpdate)&&Fe(be,H,S,Y),rt(c,!0);const _e=Us(c),Re=c.subTree;c.subTree=_e,A(Re,_e,h(Re.el),Gt(Re),c,m,_),S.el=_e.el,U===null&&Ol(c,_e.el),D&&de(D,m),(be=S.props&&S.props.onVnodeUpdated)&&de(()=>Fe(be,H,S,Y),m)}else{let S;const{el:R,props:D}=a,{bm:H,m:Y,parent:U,root:be,type:_e}=c,Re=yt(a);rt(c,!1),H&&Qt(H),!Re&&(S=D&&D.onVnodeBeforeMount)&&Fe(S,U,a),rt(c,!0);{be.ce&&be.ce._injectChildStyle(_e);const Pe=c.subTree=Us(c);A(null,Pe,p,y,c,m,_),a.el=Pe.el}if(Y&&de(Y,m),!Re&&(S=D&&D.onVnodeMounted)){const Pe=a;de(()=>Fe(S,U,Pe),m)}(a.shapeFlag&256||U&&yt(U.vnode)&&U.vnode.shapeFlag&256)&&c.a&&de(c.a,m),c.isMounted=!0,a=p=y=null}};c.scope.on();const x=c.effect=new Tr(T);c.scope.off();const b=c.update=x.run.bind(x),I=c.job=x.runIfDirty.bind(x);I.i=c,I.id=c.uid,x.scheduler=()=>ps(I),rt(c,!0),b()},Q=(c,a,p)=>{a.component=c;const y=c.vnode.props;c.vnode=a,c.next=null,dl(c,a.props,y,p),ml(c,a.children,p),Qe(),Ps(c),et()},J=(c,a,p,y,m,_,v,T,x=!1)=>{const b=c&&c.children,I=c?c.shapeFlag:0,S=a.children,{patchFlag:R,shapeFlag:D}=a;if(R>0){if(R&128){kt(b,S,p,y,m,_,v,T,x);return}else if(R&256){tt(b,S,p,y,m,_,v,T,x);return}}D&8?(I&16&&Tt(b,m,_),S!==b&&u(p,S)):I&16?D&16?kt(b,S,p,y,m,_,v,T,x):Tt(b,m,_,!0):(I&8&&u(p,""),D&16&&ee(S,p,y,m,_,v,T,x))},tt=(c,a,p,y,m,_,v,T,x)=>{c=c||pt,a=a||pt;const b=c.length,I=a.length,S=Math.min(b,I);let R;for(R=0;RI?Tt(c,m,_,!0,!1,S):ee(a,p,y,m,_,v,T,x,S)},kt=(c,a,p,y,m,_,v,T,x)=>{let b=0;const I=a.length;let S=c.length-1,R=I-1;for(;b<=S&&b<=R;){const D=c[b],H=a[b]=x?Je(a[b]):Ne(a[b]);if(lt(D,H))A(D,H,p,null,m,_,v,T,x);else break;b++}for(;b<=S&&b<=R;){const D=c[S],H=a[R]=x?Je(a[R]):Ne(a[R]);if(lt(D,H))A(D,H,p,null,m,_,v,T,x);else break;S--,R--}if(b>S){if(b<=R){const D=R+1,H=DR)for(;b<=S;)Oe(c[b],m,_,!0),b++;else{const D=b,H=b,Y=new Map;for(b=H;b<=R;b++){const xe=a[b]=x?Je(a[b]):Ne(a[b]);xe.key!=null&&Y.set(xe.key,b)}let U,be=0;const _e=R-H+1;let Re=!1,Pe=0;const St=new Array(_e);for(b=0;b<_e;b++)St[b]=0;for(b=D;b<=S;b++){const xe=c[b];if(be>=_e){Oe(xe,m,_,!0);continue}let Ie;if(xe.key!=null)Ie=Y.get(xe.key);else for(U=H;U<=R;U++)if(St[U-H]===0&<(xe,a[U])){Ie=U;break}Ie===void 0?Oe(xe,m,_,!0):(St[Ie-H]=b+1,Ie>=Pe?Pe=Ie:Re=!0,A(xe,a[Ie],p,null,m,_,v,T,x),be++)}const ws=Re?xl(St):pt;for(U=ws.length-1,b=_e-1;b>=0;b--){const xe=H+b,Ie=a[xe],Es=xe+1{const{el:_,type:v,transition:T,children:x,shapeFlag:b}=c;if(b&6){nt(c.component.subTree,a,p,y);return}if(b&128){c.suspense.move(a,p,y);return}if(b&64){v.move(c,a,p,vt);return}if(v===ye){s(_,a,p);for(let S=0;ST.enter(_),m);else{const{leave:S,delayLeave:R,afterLeave:D}=T,H=()=>s(_,a,p),Y=()=>{S(_,()=>{H(),D&&D()})};R?R(_,H,Y):Y()}else s(_,a,p)},Oe=(c,a,p,y=!1,m=!1)=>{const{type:_,props:v,ref:T,children:x,dynamicChildren:b,shapeFlag:I,patchFlag:S,dirs:R,cacheIndex:D}=c;if(S===-2&&(m=!1),T!=null&&cn(T,null,p,c,!0),D!=null&&(a.renderCache[D]=void 0),I&256){a.ctx.deactivate(c);return}const H=I&1&&R,Y=!yt(c);let U;if(Y&&(U=v&&v.onVnodeBeforeUnmount)&&Fe(U,a,c),I&6)Wi(c.component,p,y);else{if(I&128){c.suspense.unmount(p,y);return}H&&st(c,null,a,"beforeUnmount"),I&64?c.type.remove(c,a,p,vt,y):b&&!b.hasOnce&&(_!==ye||S>0&&S&64)?Tt(b,a,p,!1,!0):(_===ye&&S&384||!m&&I&16)&&Tt(x,a,p),y&&vs(c)}(Y&&(U=v&&v.onVnodeUnmounted)||H)&&de(()=>{U&&Fe(U,a,c),H&&st(c,null,a,"unmounted")},p)},vs=c=>{const{type:a,el:p,anchor:y,transition:m}=c;if(a===ye){Ui(p,y);return}if(a===$n){O(c);return}const _=()=>{r(p),m&&!m.persisted&&m.afterLeave&&m.afterLeave()};if(c.shapeFlag&1&&m&&!m.persisted){const{leave:v,delayLeave:T}=m,x=()=>v(p,_);T?T(c.el,_,x):x()}else _()},Ui=(c,a)=>{let p;for(;c!==a;)p=g(c),r(c),c=p;r(a)},Wi=(c,a,p)=>{const{bum:y,scope:m,job:_,subTree:v,um:T,m:x,a:b}=c;Ks(x),Ks(b),y&&Qt(y),m.stop(),_&&(_.flags|=8,Oe(v,c,a,p)),T&&de(T,a),de(()=>{c.isUnmounted=!0},a),a&&a.pendingBranch&&!a.isUnmounted&&c.asyncDep&&!c.asyncResolved&&c.suspenseId===a.pendingId&&(a.deps--,a.deps===0&&a.resolve())},Tt=(c,a,p,y=!1,m=!1,_=0)=>{for(let v=_;v{if(c.shapeFlag&6)return Gt(c.component.subTree);if(c.shapeFlag&128)return c.suspense.next();const a=g(c.anchor||c.el),p=a&&a[Gr];return p?g(p):a};let On=!1;const Ss=(c,a,p)=>{c==null?a._vnode&&Oe(a._vnode,null,null,!0):A(a._vnode||null,c,a,null,null,null,p),a._vnode=c,On||(On=!0,Ps(),Ur(),On=!1)},vt={p:A,um:Oe,m:nt,r:vs,mt:fe,mc:ee,pc:J,pbc:N,n:Gt,o:e};return{render:Ss,hydrate:void 0,createApp:cl(Ss)}}function Nn({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function rt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function bl(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function bs(e,t,n=!1){const s=e.children,r=t.children;if(M(s)&&M(r))for(let i=0;i>1,e[n[l]]0&&(t[s]=n[i-1]),n[i]=s)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}function Ti(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ti(t)}function Ks(e){if(e)for(let t=0;ttn(Cl);function Yf(e,t){return xs(e,null,t)}function Hn(e,t,n){return xs(e,t,n)}function xs(e,t,n=k){const{immediate:s,deep:r,flush:i,once:o}=n,l=re({},n),f=t&&s||!t&&i!=="post";let d;if(Bt){if(i==="sync"){const C=Tl();d=C.__watcherHandles||(C.__watcherHandles=[])}else if(!f){const C=()=>{};return C.stop=we,C.resume=we,C.pause=we,C}}const u=oe;l.call=(C,E,A)=>Me(C,u,E,A);let h=!1;i==="post"?l.scheduler=C=>{de(C,u&&u.suspense)}:i!=="sync"&&(h=!0,l.scheduler=(C,E)=>{E?C():ps(C)}),l.augmentJob=C=>{t&&(C.flags|=4),h&&(C.flags|=2,u&&(C.id=u.uid,C.i=u))};const g=Ho(e,t,l);return Bt&&(d?d.push(g):f&&g()),g}function vl(e,t,n){const s=this.proxy,r=Z(e)?e.includes(".")?vi(s,e):()=>s[e]:e.bind(s,s);let i;F(t)?i=t:(i=t.handler,n=t);const o=Wt(this),l=xs(r,i.bind(s),n);return o(),l}function vi(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;rt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Se(t)}Modifiers`]||e[`${Ze(t)}Modifiers`];function wl(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||k;let r=n;const i=t.startsWith("update:"),o=i&&Sl(s,t.slice(7));o&&(o.trim&&(r=n.map(u=>Z(u)?u.trim():u)),o.number&&(r=n.map(Kn)));let l,f=s[l=Zt(t)]||s[l=Zt(Se(t))];!f&&i&&(f=s[l=Zt(Ze(t))]),f&&Me(f,e,6,r);const d=s[l+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Me(d,e,6,r)}}function Si(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const i=e.emits;let o={},l=!1;if(!F(e)){const f=d=>{const u=Si(d,t,!0);u&&(l=!0,re(o,u))};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}return!i&&!l?(W(e)&&s.set(e,null),null):(M(i)?i.forEach(f=>o[f]=null):re(o,i),W(e)&&s.set(e,o),o)}function En(e,t){return!e||!pn(t)?!1:(t=t.slice(2).replace(/Once$/,""),j(e,t[0].toLowerCase()+t.slice(1))||j(e,Ze(t))||j(e,t))}function Us(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[i],slots:o,attrs:l,emit:f,render:d,renderCache:u,props:h,data:g,setupState:C,ctx:E,inheritAttrs:A}=e,te=fn(e);let L,B;try{if(n.shapeFlag&4){const O=r||s,V=O;L=Ne(d.call(V,O,u,h,C,g,E)),B=l}else{const O=t;L=Ne(O.length>1?O(h,{attrs:l,slots:o,emit:f}):O(h,null)),B=t.props?l:El(l)}}catch(O){Dt.length=0,vn(O,e,1),L=me(ge)}let K=L;if(B&&A!==!1){const O=Object.keys(B),{shapeFlag:V}=K;O.length&&V&7&&(i&&O.some(rs)&&(B=Al(B,i)),K=Xe(K,B,!1,!0))}return n.dirs&&(K=Xe(K,null,!1,!0),K.dirs=K.dirs?K.dirs.concat(n.dirs):n.dirs),n.transition&&at(K,n.transition),L=K,fn(te),L}const El=e=>{let t;for(const n in e)(n==="class"||n==="style"||pn(n))&&((t||(t={}))[n]=e[n]);return t},Al=(e,t)=>{const n={};for(const s in e)(!rs(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Ml(e,t,n){const{props:s,children:r,component:i}=e,{props:o,children:l,patchFlag:f}=t,d=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&f>=0){if(f&1024)return!0;if(f&16)return s?Ws(s,o,d):!!o;if(f&8){const u=t.dynamicProps;for(let h=0;he.__isSuspense;function Rl(e,t){t&&t.pendingBranch?M(e)?t.effects.push(...e):t.effects.push(e):Bo(e)}const ye=Symbol.for("v-fgt"),An=Symbol.for("v-txt"),ge=Symbol.for("v-cmt"),$n=Symbol.for("v-stc"),Dt=[];let Ce=null;function Zn(e=!1){Dt.push(Ce=e?null:[])}function Pl(){Dt.pop(),Ce=Dt[Dt.length-1]||null}let Vt=1;function ks(e,t=!1){Vt+=e,e<0&&Ce&&t&&(Ce.hasOnce=!0)}function Ei(e){return e.dynamicChildren=Vt>0?Ce||pt:null,Pl(),Vt>0&&Ce&&Ce.push(e),e}function zf(e,t,n,s,r,i){return Ei(Mi(e,t,n,s,r,i,!0))}function Qn(e,t,n,s,r){return Ei(me(e,t,n,s,r,!0))}function jt(e){return e?e.__v_isVNode===!0:!1}function lt(e,t){return e.type===t.type&&e.key===t.key}const Ai=({key:e})=>e??null,nn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Z(e)||le(e)||F(e)?{i:se,r:e,k:t,f:!!n}:e:null);function Mi(e,t=null,n=null,s=0,r=null,i=e===ye?0:1,o=!1,l=!1){const f={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ai(t),ref:t&&nn(t),scopeId:kr,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:se};return l?(Cs(f,n),i&128&&e.normalize(f)):n&&(f.shapeFlag|=Z(n)?8:16),Vt>0&&!o&&Ce&&(f.patchFlag>0||i&6)&&f.patchFlag!==32&&Ce.push(f),f}const me=Il;function Il(e,t=null,n=null,s=0,r=null,i=!1){if((!e||e===li)&&(e=ge),jt(e)){const l=Xe(e,t,!0);return n&&Cs(l,n),Vt>0&&!i&&Ce&&(l.shapeFlag&6?Ce[Ce.indexOf(e)]=l:Ce.push(l)),l.patchFlag=-2,l}if(Ul(e)&&(e=e.__vccOpts),t){t=Fl(t);let{class:l,style:f}=t;l&&!Z(l)&&(t.class=xn(l)),W(f)&&(hs(f)&&!M(f)&&(f=re({},f)),t.style=bn(f))}const o=Z(e)?1:wi(e)?128:qr(e)?64:W(e)?4:F(e)?2:0;return Mi(e,t,n,s,r,o,i,!0)}function Fl(e){return e?hs(e)||gi(e)?re({},e):e:null}function Xe(e,t,n=!1,s=!1){const{props:r,ref:i,patchFlag:o,children:l,transition:f}=e,d=t?Ll(r||{},t):r,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&Ai(d),ref:t&&t.ref?n&&i?M(i)?i.concat(nn(t)):[i,nn(t)]:nn(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ye?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:f,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Xe(e.ssContent),ssFallback:e.ssFallback&&Xe(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return f&&s&&at(u,f.clone(u)),u}function Dl(e=" ",t=0){return me(An,null,e,t)}function Xf(e="",t=!1){return t?(Zn(),Qn(ge,null,e)):me(ge,null,e)}function Ne(e){return e==null||typeof e=="boolean"?me(ge):M(e)?me(ye,null,e.slice()):jt(e)?Je(e):me(An,null,String(e))}function Je(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Xe(e)}function Cs(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(M(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),Cs(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!gi(t)?t._ctx=se:r===3&&se&&(se.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else F(t)?(t={default:t,_ctx:se},n=32):(t=String(t),s&64?(n=16,t=[Dl(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ll(...e){const t={};for(let n=0;noe||se;let an,es;{const e=yn(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),i=>{r.length>1?r.forEach(o=>o(i)):r[0](i)}};an=t("__VUE_INSTANCE_SETTERS__",n=>oe=n),es=t("__VUE_SSR_SETTERS__",n=>Bt=n)}const Wt=e=>{const t=oe;return an(e),e.scope.on(),()=>{e.scope.off(),an(t)}},Gs=()=>{oe&&oe.scope.off(),an(null)};function Oi(e){return e.vnode.shapeFlag&4}let Bt=!1;function Vl(e,t=!1,n=!1){t&&es(t);const{props:s,children:r}=e.vnode,i=Oi(e);al(e,s,i,t),gl(e,r,n);const o=i?jl(e,t):void 0;return t&&es(!1),o}function jl(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,nl);const{setup:s}=n;if(s){Qe();const r=e.setupContext=s.length>1?Pi(e):null,i=Wt(e),o=Ut(s,e,0,[e.props,r]),l=hr(o);if(et(),i(),(l||e.sp)&&!yt(e)&&ti(e),l){if(o.then(Gs,Gs),t)return o.then(f=>{qs(e,f)}).catch(f=>{vn(f,e,0)});e.asyncDep=o}else qs(e,o)}else Ri(e)}function qs(e,t,n){F(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:W(t)&&(e.setupState=Vr(t)),Ri(e)}function Ri(e,t,n){const s=e.type;e.render||(e.render=s.render||we);{const r=Wt(e);Qe();try{sl(e)}finally{et(),r()}}}const Bl={get(e,t){return ce(e,"get",""),e[t]}};function Pi(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Bl),slots:e.slots,emit:e.emit,expose:t}}function Mn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Vr(Ao(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ft)return Ft[n](e)},has(t,n){return n in t||n in Ft}})):e.proxy}function Kl(e,t=!0){return F(e)?e.displayName||e.name:e.name||t&&e.__name}function Ul(e){return F(e)&&"__vccOpts"in e}const Wl=(e,t)=>Lo(e,t,Bt);function kl(e,t,n){const s=arguments.length;return s===2?W(t)&&!M(t)?jt(t)?me(e,null,[t]):me(e,t):me(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&jt(n)&&(n=[n]),me(e,t,n))}const Gl="3.5.13",Zf=we;/** -* @vue/runtime-dom v3.5.13 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let ts;const Js=typeof window<"u"&&window.trustedTypes;if(Js)try{ts=Js.createPolicy("vue",{createHTML:e=>e})}catch{}const Ii=ts?e=>ts.createHTML(e):e=>e,ql="http://www.w3.org/2000/svg",Jl="http://www.w3.org/1998/Math/MathML",Ve=typeof document<"u"?document:null,Ys=Ve&&Ve.createElement("template"),Yl={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?Ve.createElementNS(ql,e):t==="mathml"?Ve.createElementNS(Jl,e):n?Ve.createElement(e,{is:n}):Ve.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>Ve.createTextNode(e),createComment:e=>Ve.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ve.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,i){const o=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{Ys.innerHTML=Ii(s==="svg"?`${e}`:s==="mathml"?`${e}`:e);const l=Ys.content;if(s==="svg"||s==="mathml"){const f=l.firstChild;for(;f.firstChild;)l.appendChild(f.firstChild);l.removeChild(f)}t.insertBefore(l,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},We="transition",Et="animation",xt=Symbol("_vtc"),Fi={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},Di=re({},Xr,Fi),zl=e=>(e.displayName="Transition",e.props=Di,e),Qf=zl((e,{slots:t})=>kl(ko,Li(e),t)),it=(e,t=[])=>{M(e)?e.forEach(n=>n(...t)):e&&e(...t)},zs=e=>e?M(e)?e.some(t=>t.length>1):e.length>1:!1;function Li(e){const t={};for(const w in e)w in Fi||(t[w]=e[w]);if(e.css===!1)return t;const{name:n="v",type:s,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:f=i,appearActiveClass:d=o,appearToClass:u=l,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:g=`${n}-leave-active`,leaveToClass:C=`${n}-leave-to`}=e,E=Xl(r),A=E&&E[0],te=E&&E[1],{onBeforeEnter:L,onEnter:B,onEnterCancelled:K,onLeave:O,onLeaveCancelled:V,onBeforeAppear:G=L,onAppear:ne=B,onAppearCancelled:ee=K}=t,P=(w,X,fe,He)=>{w._enterCancelled=He,ke(w,X?u:l),ke(w,X?d:o),fe&&fe()},N=(w,X)=>{w._isLeaving=!1,ke(w,h),ke(w,C),ke(w,g),X&&X()},q=w=>(X,fe)=>{const He=w?ne:B,ie=()=>P(X,w,fe);it(He,[X,ie]),Xs(()=>{ke(X,w?f:i),De(X,w?u:l),zs(He)||Zs(X,s,A,ie)})};return re(t,{onBeforeEnter(w){it(L,[w]),De(w,i),De(w,o)},onBeforeAppear(w){it(G,[w]),De(w,f),De(w,d)},onEnter:q(!1),onAppear:q(!0),onLeave(w,X){w._isLeaving=!0;const fe=()=>N(w,X);De(w,h),w._enterCancelled?(De(w,g),ns()):(ns(),De(w,g)),Xs(()=>{w._isLeaving&&(ke(w,h),De(w,C),zs(O)||Zs(w,s,te,fe))}),it(O,[w,fe])},onEnterCancelled(w){P(w,!1,void 0,!0),it(K,[w])},onAppearCancelled(w){P(w,!0,void 0,!0),it(ee,[w])},onLeaveCancelled(w){N(w),it(V,[w])}})}function Xl(e){if(e==null)return null;if(W(e))return[Vn(e.enter),Vn(e.leave)];{const t=Vn(e);return[t,t]}}function Vn(e){return zi(e)}function De(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[xt]||(e[xt]=new Set)).add(t)}function ke(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[xt];n&&(n.delete(t),n.size||(e[xt]=void 0))}function Xs(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Zl=0;function Zs(e,t,n,s){const r=e._endId=++Zl,i=()=>{r===e._endId&&s()};if(n!=null)return setTimeout(i,n);const{type:o,timeout:l,propCount:f}=Ni(e,t);if(!o)return s();const d=o+"end";let u=0;const h=()=>{e.removeEventListener(d,g),i()},g=C=>{C.target===e&&++u>=f&&h()};setTimeout(()=>{u(n[E]||"").split(", "),r=s(`${We}Delay`),i=s(`${We}Duration`),o=Qs(r,i),l=s(`${Et}Delay`),f=s(`${Et}Duration`),d=Qs(l,f);let u=null,h=0,g=0;t===We?o>0&&(u=We,h=o,g=i.length):t===Et?d>0&&(u=Et,h=d,g=f.length):(h=Math.max(o,d),u=h>0?o>d?We:Et:null,g=u?u===We?i.length:f.length:0);const C=u===We&&/\b(transform|all)(,|$)/.test(s(`${We}Property`).toString());return{type:u,timeout:h,propCount:g,hasTransform:C}}function Qs(e,t){for(;e.lengther(n)+er(e[s])))}function er(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function ns(){return document.body.offsetHeight}function Ql(e,t,n){const s=e[xt];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const dn=Symbol("_vod"),Hi=Symbol("_vsh"),ec={beforeMount(e,{value:t},{transition:n}){e[dn]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):At(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),At(e,!0),s.enter(e)):s.leave(e,()=>{At(e,!1)}):At(e,t))},beforeUnmount(e,{value:t}){At(e,t)}};function At(e,t){e.style.display=t?e[dn]:"none",e[Hi]=!t}const ef=Symbol(""),tf=/(^|;)\s*display\s*:/;function nf(e,t,n){const s=e.style,r=Z(n);let i=!1;if(n&&!r){if(t)if(Z(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();n[l]==null&&sn(s,l,"")}else for(const o in t)n[o]==null&&sn(s,o,"");for(const o in n)o==="display"&&(i=!0),sn(s,o,n[o])}else if(r){if(t!==n){const o=s[ef];o&&(n+=";"+o),s.cssText=n,i=tf.test(n)}}else t&&e.removeAttribute("style");dn in e&&(e[dn]=i?s.display:"",e[Hi]&&(s.display="none"))}const tr=/\s*!important$/;function sn(e,t,n){if(M(n))n.forEach(s=>sn(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=sf(e,t);tr.test(n)?e.setProperty(Ze(s),n.replace(tr,""),"important"):e[s]=n}}const nr=["Webkit","Moz","ms"],jn={};function sf(e,t){const n=jn[t];if(n)return n;let s=Se(t);if(s!=="filter"&&s in e)return jn[t]=s;s=_n(s);for(let r=0;rBn||(ff.then(()=>Bn=0),Bn=Date.now());function uf(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Me(af(s,n.value),t,5,[s])};return n.value=e,n.attached=cf(),n}function af(e,t){if(M(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const fr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,df=(e,t,n,s,r,i)=>{const o=r==="svg";t==="class"?Ql(e,s,o):t==="style"?nf(e,n,s):pn(t)?rs(t)||of(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):hf(e,t,s,o))?(ir(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&rr(e,t,s,o,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Z(s))?ir(e,Se(t),s,i,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),rr(e,t,s,o))};function hf(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&fr(t)&&F(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return fr(t)&&Z(n)?!1:t in e}const $i=new WeakMap,Vi=new WeakMap,hn=Symbol("_moveCb"),cr=Symbol("_enterCb"),pf=e=>(delete e.props.mode,e),gf=pf({name:"TransitionGroup",props:re({},Di,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Ts(),s=zr();let r,i;return ri(()=>{if(!r.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!bf(r[0].el,n.vnode.el,o))return;r.forEach(mf),r.forEach(_f);const l=r.filter(yf);ns(),l.forEach(f=>{const d=f.el,u=d.style;De(d,o),u.transform=u.webkitTransform=u.transitionDuration="";const h=d[hn]=g=>{g&&g.target!==d||(!g||/transform$/.test(g.propertyName))&&(d.removeEventListener("transitionend",h),d[hn]=null,ke(d,o))};d.addEventListener("transitionend",h)})}),()=>{const o=$(e),l=Li(o);let f=o.tag||ye;if(r=[],i)for(let d=0;d{l.split(/\s+/).forEach(f=>f&&s.classList.remove(f))}),n.split(/\s+/).forEach(l=>l&&s.classList.add(l)),s.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(s);const{hasTransform:o}=Ni(s);return i.removeChild(s),o}const Ct=e=>{const t=e.props["onUpdate:modelValue"]||!1;return M(t)?n=>Qt(t,n):t};function xf(e){e.target.composing=!0}function ur(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ke=Symbol("_assign"),nc={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e[Ke]=Ct(r);const i=s||r.props&&r.props.type==="number";Ye(e,t?"change":"input",o=>{if(o.target.composing)return;let l=e.value;n&&(l=l.trim()),i&&(l=Kn(l)),e[Ke](l)}),n&&Ye(e,"change",()=>{e.value=e.value.trim()}),t||(Ye(e,"compositionstart",xf),Ye(e,"compositionend",ur),Ye(e,"change",ur))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:r,number:i}},o){if(e[Ke]=Ct(o),e.composing)return;const l=(i||e.type==="number")&&!/^0\d/.test(e.value)?Kn(e.value):e.value,f=t??"";l!==f&&(document.activeElement===e&&e.type!=="range"&&(s&&t===n||r&&e.value.trim()===f)||(e.value=f))}},sc={deep:!0,created(e,t,n){e[Ke]=Ct(n),Ye(e,"change",()=>{const s=e._modelValue,r=ji(e),i=e.checked,o=e[Ke];if(M(s)){const l=yr(s,r),f=l!==-1;if(i&&!f)o(s.concat(r));else if(!i&&f){const d=[...s];d.splice(l,1),o(d)}}else if(gn(s)){const l=new Set(s);i?l.add(r):l.delete(r),o(l)}else o(Bi(e,i))})},mounted:ar,beforeUpdate(e,t,n){e[Ke]=Ct(n),ar(e,t,n)}};function ar(e,{value:t,oldValue:n},s){e._modelValue=t;let r;if(M(t))r=yr(t,s.props.value)>-1;else if(gn(t))r=t.has(s.props.value);else{if(t===n)return;r=bt(t,Bi(e,!0))}e.checked!==r&&(e.checked=r)}const rc={created(e,{value:t},n){e.checked=bt(t,n.props.value),e[Ke]=Ct(n),Ye(e,"change",()=>{e[Ke](ji(e))})},beforeUpdate(e,{value:t,oldValue:n},s){e[Ke]=Ct(s),t!==n&&(e.checked=bt(t,s.props.value))}};function ji(e){return"_value"in e?e._value:e.value}function Bi(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Cf=["ctrl","shift","alt","meta"],Tf={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)=>Cf.some(n=>e[`${n}Key`]&&!t.includes(n))},ic=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(r,...i)=>{for(let o=0;o{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=r=>{if(!("key"in r))return;const i=Ze(r.key);if(t.some(o=>o===i||vf[o]===i))return e(r)})},Sf=re({patchProp:df},Yl);let dr;function Ki(){return dr||(dr=_l(Sf))}const lc=(...e)=>{Ki().render(...e)},fc=(...e)=>{const t=Ki().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=Ef(s);if(!r)return;const i=t._component;!F(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const o=n(r,!1,wf(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t};function wf(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Ef(e){return Z(e)?document.querySelector(e):e}export{An as $,Mi as A,Wf as B,bn as C,xn as D,Ll as E,Gf as F,Qn as G,Ko as H,Nf as I,Xf as J,jf as K,Dl as L,ro as M,we as N,ye as O,me as P,ec as Q,Lf as R,oi as S,Qf as T,qf as U,ic as V,ii as W,as as X,Go as Y,ri as Z,Xe as _,M as a,ge as a0,Hf as a1,Yo as a2,qo as a3,oc as a4,Uf as a5,Kf as a6,As as a7,Mf as a8,Fl as a9,jt as aa,$ as ab,sc as ac,Df as ad,rc as ae,kl as af,Vf as ag,_n as ah,zo as ai,hr as aj,nc as ak,kf as al,tc as am,Ao as an,Of as ao,gr as ap,Bf as aq,Zt as ar,lc as as,fc as at,Ze as au,Eo as av,If as aw,Jf as ax,mt as ay,W as b,Wl as c,Z as d,io as e,Yf as f,Ts as g,Nr as h,tn as i,si as j,Ff as k,le as l,j as m,Vo as n,Rf as o,Zf as p,F as q,Mo as r,Pf as s,ul as t,$r as u,Se as v,Hn as w,$f as x,zf as y,Zn as z}; diff --git a/assets/vue-C3Yyspzm.js b/assets/vue-C3Yyspzm.js new file mode 100644 index 0000000..21530b2 --- /dev/null +++ b/assets/vue-C3Yyspzm.js @@ -0,0 +1,21 @@ +/** +* @vue/shared v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**//*! #__NO_SIDE_EFFECTS__ */function xs(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const X={},St=[],Ee=()=>{},Ao=()=>!1,Tn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ts=e=>e.startsWith("onUpdate:"),oe=Object.assign,Es=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Mo=Object.prototype.hasOwnProperty,z=(e,t)=>Mo.call(e,t),F=Array.isArray,wt=e=>Xt(e)==="[object Map]",En=e=>Xt(e)==="[object Set]",Ys=e=>Xt(e)==="[object Date]",V=e=>typeof e=="function",se=e=>typeof e=="string",Oe=e=>typeof e=="symbol",Q=e=>e!==null&&typeof e=="object",$r=e=>(Q(e)||V(e))&&V(e.then)&&V(e.catch),kr=Object.prototype.toString,Xt=e=>kr.call(e),Oo=e=>Xt(e).slice(8,-1),Br=e=>Xt(e)==="[object Object]",As=e=>se(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,jt=xs(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),An=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Po=/-(\w)/g,xe=An(e=>e.replace(Po,(t,n)=>n?n.toUpperCase():"")),Ro=/\B([A-Z])/g,rt=An(e=>e.replace(Ro,"-$1").toLowerCase()),Mn=An(e=>e.charAt(0).toUpperCase()+e.slice(1)),an=An(e=>e?`on${Mn(e)}`:""),et=(e,t)=>!Object.is(e,t),dn=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},os=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Io=e=>{const t=se(e)?Number(e):NaN;return isNaN(t)?e:t};let Qs;const On=()=>Qs||(Qs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Pn(e){if(F(e)){const t={};for(let n=0;n{if(n){const s=n.split(Lo);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Rn(e){let t="";if(se(e))t=e;else if(F(e))for(let n=0;nEt(n,t))}const Gr=e=>!!(e&&e.__v_isRef===!0),$o=e=>se(e)?e:e==null?"":F(e)||Q(e)&&(e.toString===kr||!V(e.toString))?Gr(e)?$o(e.value):JSON.stringify(e,Jr,2):String(e),Jr=(e,t)=>Gr(t)?Jr(e,t.value):wt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],i)=>(n[Gn(s,i)+" =>"]=r,n),{})}:En(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Gn(n))}:Oe(t)?Gn(t):Q(t)&&!F(t)&&!Br(t)?String(t):t,Gn=(e,t="")=>{var n;return Oe(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** +* @vue/reactivity v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let he;class qr{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=he,!t&&he&&(this.index=(he.scopes||(he.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0)return;if(Vt){let t=Vt;for(Vt=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Ht;){let t=Ht;for(Ht=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function ei(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ti(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),Rs(s),ko(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function ls(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ni(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ni(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Wt))return;e.globalVersion=Wt;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!ls(e)){e.flags&=-3;return}const n=te,s=Ae;te=e,Ae=!0;try{ei(e);const r=e.fn(e._value);(t.version===0||et(r,e._value))&&(e._value=r,t.version++)}catch(r){throw t.version++,r}finally{te=n,Ae=s,ti(e),e.flags&=-3}}function Rs(e,t=!1){const{dep:n,prevSub:s,nextSub:r}=e;if(s&&(s.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)Rs(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function ko(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ae=!0;const si=[];function it(){si.push(Ae),Ae=!1}function ot(){const e=si.pop();Ae=e===void 0?!0:e}function Xs(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=te;te=void 0;try{t()}finally{te=n}}}let Wt=0;class Bo{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class In{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!te||!Ae||te===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==te)n=this.activeLink=new Bo(te,this),te.deps?(n.prevDep=te.depsTail,te.depsTail.nextDep=n,te.depsTail=n):te.deps=te.depsTail=n,ri(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=te.depsTail,n.nextDep=void 0,te.depsTail.nextDep=n,te.depsTail=n,te.deps===n&&(te.deps=s)}return n}trigger(t){this.version++,Wt++,this.notify(t)}notify(t){Os();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Ps()}}}function ri(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)ri(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const mn=new WeakMap,pt=Symbol(""),cs=Symbol(""),Ut=Symbol("");function fe(e,t,n){if(Ae&&te){let s=mn.get(e);s||mn.set(e,s=new Map);let r=s.get(n);r||(s.set(n,r=new In),r.map=s,r.key=n),r.track()}}function Ke(e,t,n,s,r,i){const o=mn.get(e);if(!o){Wt++;return}const l=c=>{c&&c.trigger()};if(Os(),t==="clear")o.forEach(l);else{const c=F(e),a=c&&As(n);if(c&&n==="length"){const f=Number(s);o.forEach((h,g)=>{(g==="length"||g===Ut||!Oe(g)&&g>=f)&&l(h)})}else switch((n!==void 0||o.has(void 0))&&l(o.get(n)),a&&l(o.get(Ut)),t){case"add":c?a&&l(o.get("length")):(l(o.get(pt)),wt(e)&&l(o.get(cs)));break;case"delete":c||(l(o.get(pt)),wt(e)&&l(o.get(cs)));break;case"set":wt(e)&&l(o.get(pt));break}}Ps()}function Ko(e,t){const n=mn.get(e);return n&&n.get(t)}function _t(e){const t=J(e);return t===e?t:(fe(t,"iterate",Ut),Ce(e)?t:t.map(ue))}function Fn(e){return fe(e=J(e),"iterate",Ut),e}const Wo={__proto__:null,[Symbol.iterator](){return qn(this,Symbol.iterator,ue)},concat(...e){return _t(this).concat(...e.map(t=>F(t)?_t(t):t))},entries(){return qn(this,"entries",e=>(e[1]=ue(e[1]),e))},every(e,t){return ke(this,"every",e,t,void 0,arguments)},filter(e,t){return ke(this,"filter",e,t,n=>n.map(ue),arguments)},find(e,t){return ke(this,"find",e,t,ue,arguments)},findIndex(e,t){return ke(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ke(this,"findLast",e,t,ue,arguments)},findLastIndex(e,t){return ke(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return ke(this,"forEach",e,t,void 0,arguments)},includes(...e){return zn(this,"includes",e)},indexOf(...e){return zn(this,"indexOf",e)},join(e){return _t(this).join(e)},lastIndexOf(...e){return zn(this,"lastIndexOf",e)},map(e,t){return ke(this,"map",e,t,void 0,arguments)},pop(){return Ft(this,"pop")},push(...e){return Ft(this,"push",e)},reduce(e,...t){return Zs(this,"reduce",e,t)},reduceRight(e,...t){return Zs(this,"reduceRight",e,t)},shift(){return Ft(this,"shift")},some(e,t){return ke(this,"some",e,t,void 0,arguments)},splice(...e){return Ft(this,"splice",e)},toReversed(){return _t(this).toReversed()},toSorted(e){return _t(this).toSorted(e)},toSpliced(...e){return _t(this).toSpliced(...e)},unshift(...e){return Ft(this,"unshift",e)},values(){return qn(this,"values",ue)}};function qn(e,t,n){const s=Fn(e),r=s[t]();return s!==e&&!Ce(e)&&(r._next=r.next,r.next=()=>{const i=r._next();return i.value&&(i.value=n(i.value)),i}),r}const Uo=Array.prototype;function ke(e,t,n,s,r,i){const o=Fn(e),l=o!==e&&!Ce(e),c=o[t];if(c!==Uo[t]){const h=c.apply(e,i);return l?ue(h):h}let a=n;o!==e&&(l?a=function(h,g){return n.call(this,ue(h),g,e)}:n.length>2&&(a=function(h,g){return n.call(this,h,g,e)}));const f=c.call(o,a,s);return l&&r?r(f):f}function Zs(e,t,n,s){const r=Fn(e);let i=n;return r!==e&&(Ce(e)?n.length>3&&(i=function(o,l,c){return n.call(this,o,l,c,e)}):i=function(o,l,c){return n.call(this,o,ue(l),c,e)}),r[t](i,...s)}function zn(e,t,n){const s=J(e);fe(s,"iterate",Ut);const r=s[t](...n);return(r===-1||r===!1)&&Ls(n[0])?(n[0]=J(n[0]),s[t](...n)):r}function Ft(e,t,n=[]){it(),Os();const s=J(e)[t].apply(e,n);return Ps(),ot(),s}const Go=xs("__proto__,__v_isRef,__isVue"),ii=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Oe));function Jo(e){Oe(e)||(e=String(e));const t=J(this);return fe(t,"has",e),t.hasOwnProperty(e)}class oi{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const r=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return i;if(n==="__v_raw")return s===(r?i?sl:ui:i?fi:ci).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const o=F(t);if(!r){let c;if(o&&(c=Wo[n]))return c;if(n==="hasOwnProperty")return Jo}const l=Reflect.get(t,n,re(t)?t:s);return(Oe(n)?ii.has(n):Go(n))||(r||fe(t,"get",n),i)?l:re(l)?o&&As(n)?l:l.value:Q(l)?r?Nn(l):Ln(l):l}}class li extends oi{constructor(t=!1){super(!1,t)}set(t,n,s,r){let i=t[n];if(!this._isShallow){const c=mt(i);if(!Ce(s)&&!mt(s)&&(i=J(i),s=J(s)),!F(t)&&re(i)&&!re(s))return c?!1:(i.value=s,!0)}const o=F(t)&&As(n)?Number(n)e,sn=e=>Reflect.getPrototypeOf(e);function Xo(e,t,n){return function(...s){const r=this.__v_raw,i=J(r),o=wt(i),l=e==="entries"||e===Symbol.iterator&&o,c=e==="keys"&&o,a=r[e](...s),f=n?fs:t?us:ue;return!t&&fe(i,"iterate",c?cs:pt),{next(){const{value:h,done:g}=a.next();return g?{value:h,done:g}:{value:l?[f(h[0]),f(h[1])]:f(h),done:g}},[Symbol.iterator](){return this}}}}function rn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Zo(e,t){const n={get(r){const i=this.__v_raw,o=J(i),l=J(r);e||(et(r,l)&&fe(o,"get",r),fe(o,"get",l));const{has:c}=sn(o),a=t?fs:e?us:ue;if(c.call(o,r))return a(i.get(r));if(c.call(o,l))return a(i.get(l));i!==o&&i.get(r)},get size(){const r=this.__v_raw;return!e&&fe(J(r),"iterate",pt),Reflect.get(r,"size",r)},has(r){const i=this.__v_raw,o=J(i),l=J(r);return e||(et(r,l)&&fe(o,"has",r),fe(o,"has",l)),r===l?i.has(r):i.has(r)||i.has(l)},forEach(r,i){const o=this,l=o.__v_raw,c=J(l),a=t?fs:e?us:ue;return!e&&fe(c,"iterate",pt),l.forEach((f,h)=>r.call(i,a(f),a(h),o))}};return oe(n,e?{add:rn("add"),set:rn("set"),delete:rn("delete"),clear:rn("clear")}:{add(r){!t&&!Ce(r)&&!mt(r)&&(r=J(r));const i=J(this);return sn(i).has.call(i,r)||(i.add(r),Ke(i,"add",r,r)),this},set(r,i){!t&&!Ce(i)&&!mt(i)&&(i=J(i));const o=J(this),{has:l,get:c}=sn(o);let a=l.call(o,r);a||(r=J(r),a=l.call(o,r));const f=c.call(o,r);return o.set(r,i),a?et(i,f)&&Ke(o,"set",r,i):Ke(o,"add",r,i),this},delete(r){const i=J(this),{has:o,get:l}=sn(i);let c=o.call(i,r);c||(r=J(r),c=o.call(i,r)),l&&l.call(i,r);const a=i.delete(r);return c&&Ke(i,"delete",r,void 0),a},clear(){const r=J(this),i=r.size!==0,o=r.clear();return i&&Ke(r,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=Xo(r,e,t)}),n}function Is(e,t){const n=Zo(e,t);return(s,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(z(n,r)&&r in s?n:s,r,i)}const el={get:Is(!1,!1)},tl={get:Is(!1,!0)},nl={get:Is(!0,!1)};const ci=new WeakMap,fi=new WeakMap,ui=new WeakMap,sl=new WeakMap;function rl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function il(e){return e.__v_skip||!Object.isExtensible(e)?0:rl(Oo(e))}function Ln(e){return mt(e)?e:Fs(e,!1,zo,el,ci)}function ol(e){return Fs(e,!1,Qo,tl,fi)}function Nn(e){return Fs(e,!0,Yo,nl,ui)}function Fs(e,t,n,s,r){if(!Q(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const o=il(e);if(o===0)return e;const l=new Proxy(e,o===2?s:n);return r.set(e,l),l}function tt(e){return mt(e)?tt(e.__v_raw):!!(e&&e.__v_isReactive)}function mt(e){return!!(e&&e.__v_isReadonly)}function Ce(e){return!!(e&&e.__v_isShallow)}function Ls(e){return e?!!e.__v_raw:!1}function J(e){const t=e&&e.__v_raw;return t?J(t):e}function Ns(e){return!z(e,"__v_skip")&&Object.isExtensible(e)&&Kr(e,"__v_skip",!0),e}const ue=e=>Q(e)?Ln(e):e,us=e=>Q(e)?Nn(e):e;function re(e){return e?e.__v_isRef===!0:!1}function $e(e){return di(e,!1)}function ai(e){return di(e,!0)}function di(e,t){return re(e)?e:new ll(e,t)}class ll{constructor(t,n){this.dep=new In,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:J(t),this._value=n?t:ue(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||Ce(t)||mt(t);t=s?t:J(t),et(t,n)&&(this._rawValue=t,this._value=s?t:ue(t),this.dep.trigger())}}function Ds(e){return re(e)?e.value:e}function Ve(e){return V(e)?e():Ds(e)}const cl={get:(e,t,n)=>t==="__v_raw"?e:Ds(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return re(r)&&!re(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function hi(e){return tt(e)?e:new Proxy(e,cl)}class fl{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new In,{get:s,set:r}=t(n.track.bind(n),n.trigger.bind(n));this._get=s,this._set=r}get value(){return this._value=this._get()}set value(t){this._set(t)}}function ul(e){return new fl(e)}function al(e){const t=F(e)?new Array(e.length):{};for(const n in e)t[n]=pi(e,n);return t}class dl{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Ko(J(this._object),this._key)}}class hl{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function pl(e,t,n){return re(e)?e:V(e)?new hl(e):Q(e)&&arguments.length>1?pi(e,t,n):$e(e)}function pi(e,t,n){const s=e[t];return re(s)?s:new dl(e,t,n)}class gl{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new In(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Wt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&te!==this)return Zr(this,!0),!0}get value(){const t=this.dep.track();return ni(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function ml(e,t,n=!1){let s,r;return V(e)?s=e:(s=e.get,r=e.set),new gl(s,r,n)}const on={},yn=new WeakMap;let dt;function yl(e,t=!1,n=dt){if(n){let s=yn.get(n);s||yn.set(n,s=[]),s.push(e)}}function _l(e,t,n=X){const{immediate:s,deep:r,once:i,scheduler:o,augmentJob:l,call:c}=n,a=M=>r?M:Ce(M)||r===!1||r===0?We(M,1):We(M);let f,h,g,y,C=!1,A=!1;if(re(e)?(h=()=>e.value,C=Ce(e)):tt(e)?(h=()=>a(e),C=!0):F(e)?(A=!0,C=e.some(M=>tt(M)||Ce(M)),h=()=>e.map(M=>{if(re(M))return M.value;if(tt(M))return a(M);if(V(M))return c?c(M,2):M()})):V(e)?t?h=c?()=>c(e,2):e:h=()=>{if(g){it();try{g()}finally{ot()}}const M=dt;dt=f;try{return c?c(e,3,[y]):e(y)}finally{dt=M}}:h=Ee,t&&r){const M=h,N=r===!0?1/0:r;h=()=>We(M(),N)}const W=Ms(),D=()=>{f.stop(),W&&W.active&&Es(W.effects,f)};if(i&&t){const M=t;t=(...N)=>{M(...N),D()}}let B=A?new Array(e.length).fill(on):on;const k=M=>{if(!(!(f.flags&1)||!f.dirty&&!M))if(t){const N=f.run();if(r||C||(A?N.some((q,U)=>et(q,B[U])):et(N,B))){g&&g();const q=dt;dt=f;try{const U=[N,B===on?void 0:A&&B[0]===on?[]:B,y];c?c(t,3,U):t(...U),B=N}finally{dt=q}}}else f.run()};return l&&l(k),f=new Qr(h),f.scheduler=o?()=>o(k,!1):k,y=M=>yl(M,!1,f),g=f.onStop=()=>{const M=yn.get(f);if(M){if(c)c(M,4);else for(const N of M)N();yn.delete(f)}},t?s?k(!0):B=f.run():o?o(k.bind(null,!0),!0):f.run(),D.pause=f.pause.bind(f),D.resume=f.resume.bind(f),D.stop=D,D}function We(e,t=1/0,n){if(t<=0||!Q(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,re(e))We(e.value,t,n);else if(F(e))for(let s=0;s{We(s,t,n)});else if(Br(e)){for(const s in e)We(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&We(e[s],t,n)}return e}/** +* @vue/runtime-core v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function Zt(e,t,n,s){try{return s?e(...s):e()}catch(r){Dn(r,t,n)}}function Pe(e,t,n,s){if(V(e)){const r=Zt(e,t,n,s);return r&&$r(r)&&r.catch(i=>{Dn(i,t,n)}),r}if(F(e)){const r=[];for(let i=0;i>>1,r=pe[s],i=Gt(r);i=Gt(n)?pe.push(e):pe.splice(vl(t),0,e),e.flags|=1,mi()}}function mi(){_n||(_n=gi.then(_i))}function Sl(e){F(e)?Ct.push(...e):Ye&&e.id===-1?Ye.splice(vt+1,0,e):e.flags&1||(Ct.push(e),e.flags|=1),mi()}function er(e,t,n=je+1){for(;nGt(n)-Gt(s));if(Ct.length=0,Ye){Ye.push(...t);return}for(Ye=t,vt=0;vte.id==null?e.flags&2?-1:1/0:e.id;function _i(e){try{for(je=0;je{s._d&&pr(-1);const i=bn(t);let o;try{o=e(...r)}finally{bn(i),s._d&&pr(1)}return o};return s._n=!0,s._c=!0,s._d=!0,s}function $f(e,t){if(ie===null)return e;const n=Kn(ie),s=e.dirs||(e.dirs=[]);for(let r=0;re.__isTeleport,$t=e=>e&&(e.disabled||e.disabled===""),tr=e=>e&&(e.defer||e.defer===""),nr=e=>typeof SVGElement<"u"&&e instanceof SVGElement,sr=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,as=(e,t)=>{const n=e&&e.to;return se(n)?t?t(n):null:n},wi={name:"Teleport",__isTeleport:!0,process(e,t,n,s,r,i,o,l,c,a){const{mc:f,pc:h,pbc:g,o:{insert:y,querySelector:C,createText:A,createComment:W}}=a,D=$t(t.props);let{shapeFlag:B,children:k,dynamicChildren:M}=t;if(e==null){const N=t.el=A(""),q=t.anchor=A("");y(N,n,s),y(q,n,s);const U=(S,R)=>{B&16&&(r&&r.isCE&&(r.ce._teleportTarget=S),f(k,S,R,r,i,o,l,c))},I=()=>{const S=t.target=as(t.props,C),R=Ci(S,t,A,y);S&&(o!=="svg"&&nr(S)?o="svg":o!=="mathml"&&sr(S)&&(o="mathml"),D||(U(S,R),hn(t,!1)))};D&&(U(n,q),hn(t,!0)),tr(t.props)?de(()=>{I(),t.el.__isMounted=!0},i):I()}else{if(tr(t.props)&&!e.el.__isMounted){de(()=>{wi.process(e,t,n,s,r,i,o,l,c,a),delete e.el.__isMounted},i);return}t.el=e.el,t.targetStart=e.targetStart;const N=t.anchor=e.anchor,q=t.target=e.target,U=t.targetAnchor=e.targetAnchor,I=$t(e.props),S=I?n:q,R=I?N:U;if(o==="svg"||nr(q)?o="svg":(o==="mathml"||sr(q))&&(o="mathml"),M?(g(e.dynamicChildren,M,S,r,i,o,l),Ks(e,t,!0)):c||h(e,t,S,R,r,i,o,l,!1),D)I?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):ln(t,n,N,a,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const P=t.target=as(t.props,C);P&&ln(t,P,null,a,0)}else I&&ln(t,q,U,a,1);hn(t,D)}},remove(e,t,n,{um:s,o:{remove:r}},i){const{shapeFlag:o,children:l,anchor:c,targetStart:a,targetAnchor:f,target:h,props:g}=e;if(h&&(r(a),r(f)),i&&r(c),o&16){const y=i||!$t(g);for(let C=0;C{e.isMounted=!0}),Ii(()=>{e.isUnmounting=!0}),e}const we=[Function,Array],Ti={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:we,onEnter:we,onAfterEnter:we,onEnterCancelled:we,onBeforeLeave:we,onLeave:we,onAfterLeave:we,onLeaveCancelled:we,onBeforeAppear:we,onAppear:we,onAfterAppear:we,onAppearCancelled:we},Ei=e=>{const t=e.subTree;return t.component?Ei(t.component):t},xl={name:"BaseTransition",props:Ti,setup(e,{slots:t}){const n=Ot(),s=xi();return()=>{const r=t.default&&Hs(t.default(),!0);if(!r||!r.length)return;const i=Ai(r),o=J(e),{mode:l}=o;if(s.isLeaving)return Yn(i);const c=rr(i);if(!c)return Yn(i);let a=Jt(c,o,s,n,h=>a=h);c.type!==ge&&yt(c,a);let f=n.subTree&&rr(n.subTree);if(f&&f.type!==ge&&!ht(c,f)&&Ei(n).type!==ge){let h=Jt(f,o,s,n);if(yt(f,h),l==="out-in"&&c.type!==ge)return s.isLeaving=!0,h.afterLeave=()=>{s.isLeaving=!1,n.job.flags&8||n.update(),delete h.afterLeave,f=void 0},Yn(i);l==="in-out"&&c.type!==ge?h.delayLeave=(g,y,C)=>{const A=Mi(s,f);A[String(f.key)]=f,g[Qe]=()=>{y(),g[Qe]=void 0,delete a.delayedLeave,f=void 0},a.delayedLeave=()=>{C(),delete a.delayedLeave,f=void 0}}:f=void 0}else f&&(f=void 0);return i}}};function Ai(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==ge){t=n;break}}return t}const Tl=xl;function Mi(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function Jt(e,t,n,s,r){const{appear:i,mode:o,persisted:l=!1,onBeforeEnter:c,onEnter:a,onAfterEnter:f,onEnterCancelled:h,onBeforeLeave:g,onLeave:y,onAfterLeave:C,onLeaveCancelled:A,onBeforeAppear:W,onAppear:D,onAfterAppear:B,onAppearCancelled:k}=t,M=String(e.key),N=Mi(n,e),q=(S,R)=>{S&&Pe(S,s,9,R)},U=(S,R)=>{const P=R[1];q(S,R),F(S)?S.every(w=>w.length<=1)&&P():S.length<=1&&P()},I={mode:o,persisted:l,beforeEnter(S){let R=c;if(!n.isMounted)if(i)R=W||c;else return;S[Qe]&&S[Qe](!0);const P=N[M];P&&ht(e,P)&&P.el[Qe]&&P.el[Qe](),q(R,[S])},enter(S){let R=a,P=f,w=h;if(!n.isMounted)if(i)R=D||a,P=B||f,w=k||h;else return;let H=!1;const le=S[cn]=Te=>{H||(H=!0,Te?q(w,[S]):q(P,[S]),I.delayedLeave&&I.delayedLeave(),S[cn]=void 0)};R?U(R,[S,le]):le()},leave(S,R){const P=String(e.key);if(S[cn]&&S[cn](!0),n.isUnmounting)return R();q(g,[S]);let w=!1;const H=S[Qe]=le=>{w||(w=!0,R(),le?q(A,[S]):q(C,[S]),S[Qe]=void 0,N[P]===e&&delete N[P])};N[P]=e,y?U(y,[S,H]):H()},clone(S){const R=Jt(S,t,n,s,r);return r&&r(R),R}};return I}function Yn(e){if(Hn(e))return e=st(e),e.children=null,e}function rr(e){if(!Hn(e))return Si(e.type)&&e.children?Ai(e.children):e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&V(n.default))return n.default()}}function yt(e,t){e.shapeFlag&6&&e.component?(e.transition=t,yt(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 Hs(e,t=!1,n){let s=[],r=0;for(let i=0;i1)for(let i=0;ivn(C,t&&(F(t)?t[A]:t),n,s,r));return}if(xt(s)&&!r){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&vn(e,t,n,s.component.subTree);return}const i=s.shapeFlag&4?Kn(s.component):s.el,o=r?null:i,{i:l,r:c}=e,a=t&&t.r,f=l.refs===X?l.refs={}:l.refs,h=l.setupState,g=J(h),y=h===X?()=>!1:C=>z(g,C);if(a!=null&&a!==c&&(se(a)?(f[a]=null,y(a)&&(h[a]=null)):re(a)&&(a.value=null)),V(c))Zt(c,l,12,[o,f]);else{const C=se(c),A=re(c);if(C||A){const W=()=>{if(e.f){const D=C?y(c)?h[c]:f[c]:c.value;r?F(D)&&Es(D,i):F(D)?D.includes(i)||D.push(i):C?(f[c]=[i],y(c)&&(h[c]=f[c])):(c.value=[i],e.k&&(f[e.k]=c.value))}else C?(f[c]=o,y(c)&&(h[c]=o)):A&&(c.value=o,e.k&&(f[e.k]=o))};o?(W.id=-1,de(W,n)):W()}}}On().requestIdleCallback;On().cancelIdleCallback;const xt=e=>!!e.type.__asyncLoader,Hn=e=>e.type.__isKeepAlive;function El(e,t){Pi(e,"a",t)}function Al(e,t){Pi(e,"da",t)}function Pi(e,t,n=ce){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Vn(t,s,n),n){let r=n.parent;for(;r&&r.parent;)Hn(r.parent.vnode)&&Ml(s,t,n,r),r=r.parent}}function Ml(e,t,n,s){const r=Vn(t,e,s,!0);Fi(()=>{Es(s[t],r)},n)}function Vn(e,t,n=ce,s=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{it();const l=en(n),c=Pe(t,n,e,o);return l(),ot(),c});return s?r.unshift(i):r.push(i),i}}const Ge=e=>(t,n=ce)=>{(!Yt||e==="sp")&&Vn(e,(...s)=>t(...s),n)},Ol=Ge("bm"),$n=Ge("m"),Pl=Ge("bu"),Ri=Ge("u"),Ii=Ge("bum"),Fi=Ge("um"),Rl=Ge("sp"),Il=Ge("rtg"),Fl=Ge("rtc");function Ll(e,t=ce){Vn("ec",e,t)}const Vs="components",Nl="directives";function Kf(e,t){return $s(Vs,e,!0,t)||e}const Li=Symbol.for("v-ndc");function Wf(e){return se(e)?$s(Vs,e,!1)||e:e||Li}function Uf(e){return $s(Nl,e)}function $s(e,t,n=!0,s=!1){const r=ie||ce;if(r){const i=r.type;if(e===Vs){const l=Cc(i,!1);if(l&&(l===t||l===xe(t)||l===Mn(xe(t))))return i}const o=ir(r[e]||i[e],t)||ir(r.appContext[e],t);return!o&&s?i:o}}function ir(e,t){return e&&(e[t]||e[xe(t)]||e[Mn(xe(t))])}function Gf(e,t,n,s){let r;const i=n,o=F(e);if(o||se(e)){const l=o&&tt(e);let c=!1;l&&(c=!Ce(e),e=Fn(e)),r=new Array(e.length);for(let a=0,f=e.length;at(l,c,void 0,i));else{const l=Object.keys(e);r=new Array(l.length);for(let c=0,a=l.length;c{const i=s.fn(...r);return i&&(i.key=s.key),i}:s.fn)}return e}function qf(e,t,n={},s,r){if(ie.ce||ie.parent&&xt(ie.parent)&&ie.parent.ce)return t!=="default"&&(n.name=t),ms(),ys(_e,null,[me("slot",n,s&&s())],64);let i=e[t];i&&i._c&&(i._d=!1),ms();const o=i&&Ni(i(n)),l=n.key||o&&o.key,c=ys(_e,{key:(l&&!Oe(l)?l:`_${t}`)+(!o&&s?"_fb":"")},o||(s?s():[]),o&&e._===1?64:-2);return c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),i&&i._c&&(i._d=!0),c}function Ni(e){return e.some(t=>zt(t)?!(t.type===ge||t.type===_e&&!Ni(t.children)):!0)?e:null}function zf(e,t){const n={};for(const s in e)n[an(s)]=e[s];return n}const ds=e=>e?no(e)?Kn(e):ds(e.parent):null,kt=oe(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=>ds(e.parent),$root:e=>ds(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Hi(e),$forceUpdate:e=>e.f||(e.f=()=>{js(e.update)}),$nextTick:e=>e.n||(e.n=jn.bind(e.proxy)),$watch:e=>rc.bind(e)}),Qn=(e,t)=>e!==X&&!e.__isScriptSetup&&z(e,t),Dl={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:i,accessCache:o,type:l,appContext:c}=e;let a;if(t[0]!=="$"){const y=o[t];if(y!==void 0)switch(y){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(Qn(s,t))return o[t]=1,s[t];if(r!==X&&z(r,t))return o[t]=2,r[t];if((a=e.propsOptions[0])&&z(a,t))return o[t]=3,i[t];if(n!==X&&z(n,t))return o[t]=4,n[t];hs&&(o[t]=0)}}const f=kt[t];let h,g;if(f)return t==="$attrs"&&fe(e.attrs,"get",""),f(e);if((h=l.__cssModules)&&(h=h[t]))return h;if(n!==X&&z(n,t))return o[t]=4,n[t];if(g=c.config.globalProperties,z(g,t))return g[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:i}=e;return Qn(r,t)?(r[t]=n,!0):s!==X&&z(s,t)?(s[t]=n,!0):z(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:i}},o){let l;return!!n[o]||e!==X&&z(e,o)||Qn(t,o)||(l=i[0])&&z(l,o)||z(s,o)||z(kt,o)||z(r.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:z(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Yf(){return Di().slots}function Qf(){return Di().attrs}function Di(){const e=Ot();return e.setupContext||(e.setupContext=ro(e))}function or(e){return F(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let hs=!0;function jl(e){const t=Hi(e),n=e.proxy,s=e.ctx;hs=!1,t.beforeCreate&&lr(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:o,watch:l,provide:c,inject:a,created:f,beforeMount:h,mounted:g,beforeUpdate:y,updated:C,activated:A,deactivated:W,beforeDestroy:D,beforeUnmount:B,destroyed:k,unmounted:M,render:N,renderTracked:q,renderTriggered:U,errorCaptured:I,serverPrefetch:S,expose:R,inheritAttrs:P,components:w,directives:H,filters:le}=t;if(a&&Hl(a,s,null),o)for(const K in o){const Z=o[K];V(Z)&&(s[K]=Z.bind(n))}if(r){const K=r.call(n,n);Q(K)&&(e.data=Ln(K))}if(hs=!0,i)for(const K in i){const Z=i[K],lt=V(Z)?Z.bind(n,n):V(Z.get)?Z.get.bind(n,n):Ee,tn=!V(Z)&&V(Z.set)?Z.set.bind(n):Ee,ct=Me({get:lt,set:tn});Object.defineProperty(s,K,{enumerable:!0,configurable:!0,get:()=>ct.value,set:Re=>ct.value=Re})}if(l)for(const K in l)ji(l[K],s,n,K);if(c){const K=V(c)?c.call(n):c;Reflect.ownKeys(K).forEach(Z=>{Wl(Z,K[Z])})}f&&lr(f,e,"c");function ne(K,Z){F(Z)?Z.forEach(lt=>K(lt.bind(n))):Z&&K(Z.bind(n))}if(ne(Ol,h),ne($n,g),ne(Pl,y),ne(Ri,C),ne(El,A),ne(Al,W),ne(Ll,I),ne(Fl,q),ne(Il,U),ne(Ii,B),ne(Fi,M),ne(Rl,S),F(R))if(R.length){const K=e.exposed||(e.exposed={});R.forEach(Z=>{Object.defineProperty(K,Z,{get:()=>n[Z],set:lt=>n[Z]=lt})})}else e.exposed||(e.exposed={});N&&e.render===Ee&&(e.render=N),P!=null&&(e.inheritAttrs=P),w&&(e.components=w),H&&(e.directives=H),S&&Oi(e)}function Hl(e,t,n=Ee){F(e)&&(e=ps(e));for(const s in e){const r=e[s];let i;Q(r)?"default"in r?i=Tt(r.from||s,r.default,!0):i=Tt(r.from||s):i=Tt(r),re(i)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[s]=i}}function lr(e,t,n){Pe(F(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function ji(e,t,n,s){let r=s.includes(".")?Yi(n,s):()=>n[s];if(se(e)){const i=t[e];V(i)&&nt(r,i)}else if(V(e))nt(r,e.bind(n));else if(Q(e))if(F(e))e.forEach(i=>ji(i,t,n,s));else{const i=V(e.handler)?e.handler.bind(n):t[e.handler];V(i)&&nt(r,i,e)}}function Hi(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,l=i.get(t);let c;return l?c=l:!r.length&&!n&&!s?c=t:(c={},r.length&&r.forEach(a=>Sn(c,a,o,!0)),Sn(c,t,o)),Q(t)&&i.set(t,c),c}function Sn(e,t,n,s=!1){const{mixins:r,extends:i}=t;i&&Sn(e,i,n,!0),r&&r.forEach(o=>Sn(e,o,n,!0));for(const o in t)if(!(s&&o==="expose")){const l=Vl[o]||n&&n[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const Vl={data:cr,props:fr,emits:fr,methods:Dt,computed:Dt,beforeCreate:ae,created:ae,beforeMount:ae,mounted:ae,beforeUpdate:ae,updated:ae,beforeDestroy:ae,beforeUnmount:ae,destroyed:ae,unmounted:ae,activated:ae,deactivated:ae,errorCaptured:ae,serverPrefetch:ae,components:Dt,directives:Dt,watch:kl,provide:cr,inject:$l};function cr(e,t){return t?e?function(){return oe(V(e)?e.call(this,this):e,V(t)?t.call(this,this):t)}:t:e}function $l(e,t){return Dt(ps(e),ps(t))}function ps(e){if(F(e)){const t={};for(let n=0;n1)return n&&V(t)?t.call(s&&s.proxy):t}}function ks(){return!!(ce||ie||gt)}const $i={},ki=()=>Object.create($i),Bi=e=>Object.getPrototypeOf(e)===$i;function Ul(e,t,n,s=!1){const r={},i=ki();e.propsDefaults=Object.create(null),Ki(e,t,r,i);for(const o in e.propsOptions[0])o in r||(r[o]=void 0);n?e.props=s?r:ol(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function Gl(e,t,n,s){const{props:r,attrs:i,vnode:{patchFlag:o}}=e,l=J(r),[c]=e.propsOptions;let a=!1;if((s||o>0)&&!(o&16)){if(o&8){const f=e.vnode.dynamicProps;for(let h=0;h{c=!0;const[g,y]=Wi(h,t,!0);oe(o,g),y&&l.push(...y)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!i&&!c)return Q(e)&&s.set(e,St),St;if(F(i))for(let f=0;fe[0]==="_"||e==="$stable",Bs=e=>F(e)?e.map(He):[He(e)],ql=(e,t,n)=>{if(t._n)return t;const s=wl((...r)=>Bs(t(...r)),n);return s._c=!1,s},Gi=(e,t,n)=>{const s=e._ctx;for(const r in e){if(Ui(r))continue;const i=e[r];if(V(i))t[r]=ql(r,i,s);else if(i!=null){const o=Bs(i);t[r]=()=>o}}},Ji=(e,t)=>{const n=Bs(t);e.slots.default=()=>n},qi=(e,t,n)=>{for(const s in t)(n||s!=="_")&&(e[s]=t[s])},zl=(e,t,n)=>{const s=e.slots=ki();if(e.vnode.shapeFlag&32){const r=t._;r?(qi(s,t,n),n&&Kr(s,"_",r,!0)):Gi(t,s)}else t&&Ji(e,t)},Yl=(e,t,n)=>{const{vnode:s,slots:r}=e;let i=!0,o=X;if(s.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:qi(r,t,n):(i=!t.$stable,Gi(t,r)),o=t}else t&&(Ji(e,t),o={default:1});if(i)for(const l in r)!Ui(l)&&o[l]==null&&delete r[l]},de=ac;function Ql(e){return Xl(e)}function Xl(e,t){const n=On();n.__VUE__=!0;const{insert:s,remove:r,patchProp:i,createElement:o,createText:l,createComment:c,setText:a,setElementText:f,parentNode:h,nextSibling:g,setScopeId:y=Ee,insertStaticContent:C}=e,A=(u,d,p,b=null,m=null,_=null,E=void 0,T=null,x=!!d.dynamicChildren)=>{if(u===d)return;u&&!ht(u,d)&&(b=nn(u),Re(u,m,_,!0),u=null),d.patchFlag===-2&&(x=!1,d.dynamicChildren=null);const{type:v,ref:j,shapeFlag:O}=d;switch(v){case Bn:W(u,d,p,b);break;case ge:D(u,d,p,b);break;case Zn:u==null&&B(d,p,b,E);break;case _e:w(u,d,p,b,m,_,E,T,x);break;default:O&1?N(u,d,p,b,m,_,E,T,x):O&6?H(u,d,p,b,m,_,E,T,x):(O&64||O&128)&&v.process(u,d,p,b,m,_,E,T,x,Rt)}j!=null&&m&&vn(j,u&&u.ref,_,d||u,!d)},W=(u,d,p,b)=>{if(u==null)s(d.el=l(d.children),p,b);else{const m=d.el=u.el;d.children!==u.children&&a(m,d.children)}},D=(u,d,p,b)=>{u==null?s(d.el=c(d.children||""),p,b):d.el=u.el},B=(u,d,p,b)=>{[u.el,u.anchor]=C(u.children,d,p,b,u.el,u.anchor)},k=({el:u,anchor:d},p,b)=>{let m;for(;u&&u!==d;)m=g(u),s(u,p,b),u=m;s(d,p,b)},M=({el:u,anchor:d})=>{let p;for(;u&&u!==d;)p=g(u),r(u),u=p;r(d)},N=(u,d,p,b,m,_,E,T,x)=>{d.type==="svg"?E="svg":d.type==="math"&&(E="mathml"),u==null?q(d,p,b,m,_,E,T,x):S(u,d,m,_,E,T,x)},q=(u,d,p,b,m,_,E,T)=>{let x,v;const{props:j,shapeFlag:O,transition:L,dirs:$}=u;if(x=u.el=o(u.type,_,j&&j.is,j),O&8?f(x,u.children):O&16&&I(u.children,x,null,b,m,Xn(u,_),E,T),$&&ft(u,null,b,"created"),U(x,u,u.scopeId,E,b),j){for(const ee in j)ee!=="value"&&!jt(ee)&&i(x,ee,null,j[ee],_,b);"value"in j&&i(x,"value",null,j.value,_),(v=j.onVnodeBeforeMount)&&Ne(v,b,u)}$&&ft(u,null,b,"beforeMount");const G=Zl(m,L);G&&L.beforeEnter(x),s(x,d,p),((v=j&&j.onVnodeMounted)||G||$)&&de(()=>{v&&Ne(v,b,u),G&&L.enter(x),$&&ft(u,null,b,"mounted")},m)},U=(u,d,p,b,m)=>{if(p&&y(u,p),b)for(let _=0;_{for(let v=x;v{const T=d.el=u.el;let{patchFlag:x,dynamicChildren:v,dirs:j}=d;x|=u.patchFlag&16;const O=u.props||X,L=d.props||X;let $;if(p&&ut(p,!1),($=L.onVnodeBeforeUpdate)&&Ne($,p,d,u),j&&ft(d,u,p,"beforeUpdate"),p&&ut(p,!0),(O.innerHTML&&L.innerHTML==null||O.textContent&&L.textContent==null)&&f(T,""),v?R(u.dynamicChildren,v,T,p,b,Xn(d,m),_):E||Z(u,d,T,null,p,b,Xn(d,m),_,!1),x>0){if(x&16)P(T,O,L,p,m);else if(x&2&&O.class!==L.class&&i(T,"class",null,L.class,m),x&4&&i(T,"style",O.style,L.style,m),x&8){const G=d.dynamicProps;for(let ee=0;ee{$&&Ne($,p,d,u),j&&ft(d,u,p,"updated")},b)},R=(u,d,p,b,m,_,E)=>{for(let T=0;T{if(d!==p){if(d!==X)for(const _ in d)!jt(_)&&!(_ in p)&&i(u,_,d[_],null,m,b);for(const _ in p){if(jt(_))continue;const E=p[_],T=d[_];E!==T&&_!=="value"&&i(u,_,T,E,m,b)}"value"in p&&i(u,"value",d.value,p.value,m)}},w=(u,d,p,b,m,_,E,T,x)=>{const v=d.el=u?u.el:l(""),j=d.anchor=u?u.anchor:l("");let{patchFlag:O,dynamicChildren:L,slotScopeIds:$}=d;$&&(T=T?T.concat($):$),u==null?(s(v,p,b),s(j,p,b),I(d.children||[],p,j,m,_,E,T,x)):O>0&&O&64&&L&&u.dynamicChildren?(R(u.dynamicChildren,L,p,m,_,E,T),(d.key!=null||m&&d===m.subTree)&&Ks(u,d,!0)):Z(u,d,p,j,m,_,E,T,x)},H=(u,d,p,b,m,_,E,T,x)=>{d.slotScopeIds=T,u==null?d.shapeFlag&512?m.ctx.activate(d,p,b,E,x):le(d,p,b,m,_,E,x):Te(u,d,x)},le=(u,d,p,b,m,_,E)=>{const T=u.component=bc(u,b,m);if(Hn(u)&&(T.ctx.renderer=Rt),vc(T,!1,E),T.asyncDep){if(m&&m.registerDep(T,ne,E),!u.el){const x=T.subTree=me(ge);D(null,x,d,p)}}else ne(T,u,d,p,m,_,E)},Te=(u,d,p)=>{const b=d.component=u.component;if(fc(u,d,p))if(b.asyncDep&&!b.asyncResolved){K(b,d,p);return}else b.next=d,b.update();else d.el=u.el,b.vnode=d},ne=(u,d,p,b,m,_,E)=>{const T=()=>{if(u.isMounted){let{next:O,bu:L,u:$,parent:G,vnode:ee}=u;{const Fe=zi(u);if(Fe){O&&(O.el=ee.el,K(u,O,E)),Fe.asyncDep.then(()=>{u.isUnmounted||T()});return}}let Y=O,be;ut(u,!1),O?(O.el=ee.el,K(u,O,E)):O=ee,L&&dn(L),(be=O.props&&O.props.onVnodeBeforeUpdate)&&Ne(be,G,O,ee),ut(u,!0);const ye=dr(u),Ie=u.subTree;u.subTree=ye,A(Ie,ye,h(Ie.el),nn(Ie),u,m,_),O.el=ye.el,Y===null&&uc(u,ye.el),$&&de($,m),(be=O.props&&O.props.onVnodeUpdated)&&de(()=>Ne(be,G,O,ee),m)}else{let O;const{el:L,props:$}=d,{bm:G,m:ee,parent:Y,root:be,type:ye}=u,Ie=xt(d);ut(u,!1),G&&dn(G),!Ie&&(O=$&&$.onVnodeBeforeMount)&&Ne(O,Y,d),ut(u,!0);{be.ce&&be.ce._injectChildStyle(ye);const Fe=u.subTree=dr(u);A(null,Fe,p,b,u,m,_),d.el=Fe.el}if(ee&&de(ee,m),!Ie&&(O=$&&$.onVnodeMounted)){const Fe=d;de(()=>Ne(O,Y,Fe),m)}(d.shapeFlag&256||Y&&xt(Y.vnode)&&Y.vnode.shapeFlag&256)&&u.a&&de(u.a,m),u.isMounted=!0,d=p=b=null}};u.scope.on();const x=u.effect=new Qr(T);u.scope.off();const v=u.update=x.run.bind(x),j=u.job=x.runIfDirty.bind(x);j.i=u,j.id=u.uid,x.scheduler=()=>js(j),ut(u,!0),v()},K=(u,d,p)=>{d.component=u;const b=u.vnode.props;u.vnode=d,u.next=null,Gl(u,d.props,b,p),Yl(u,d.children,p),it(),er(u),ot()},Z=(u,d,p,b,m,_,E,T,x=!1)=>{const v=u&&u.children,j=u?u.shapeFlag:0,O=d.children,{patchFlag:L,shapeFlag:$}=d;if(L>0){if(L&128){tn(v,O,p,b,m,_,E,T,x);return}else if(L&256){lt(v,O,p,b,m,_,E,T,x);return}}$&8?(j&16&&Pt(v,m,_),O!==v&&f(p,O)):j&16?$&16?tn(v,O,p,b,m,_,E,T,x):Pt(v,m,_,!0):(j&8&&f(p,""),$&16&&I(O,p,b,m,_,E,T,x))},lt=(u,d,p,b,m,_,E,T,x)=>{u=u||St,d=d||St;const v=u.length,j=d.length,O=Math.min(v,j);let L;for(L=0;Lj?Pt(u,m,_,!0,!1,O):I(d,p,b,m,_,E,T,x,O)},tn=(u,d,p,b,m,_,E,T,x)=>{let v=0;const j=d.length;let O=u.length-1,L=j-1;for(;v<=O&&v<=L;){const $=u[v],G=d[v]=x?Xe(d[v]):He(d[v]);if(ht($,G))A($,G,p,null,m,_,E,T,x);else break;v++}for(;v<=O&&v<=L;){const $=u[O],G=d[L]=x?Xe(d[L]):He(d[L]);if(ht($,G))A($,G,p,null,m,_,E,T,x);else break;O--,L--}if(v>O){if(v<=L){const $=L+1,G=$L)for(;v<=O;)Re(u[v],m,_,!0),v++;else{const $=v,G=v,ee=new Map;for(v=G;v<=L;v++){const ve=d[v]=x?Xe(d[v]):He(d[v]);ve.key!=null&&ee.set(ve.key,v)}let Y,be=0;const ye=L-G+1;let Ie=!1,Fe=0;const It=new Array(ye);for(v=0;v=ye){Re(ve,m,_,!0);continue}let Le;if(ve.key!=null)Le=ee.get(ve.key);else for(Y=G;Y<=L;Y++)if(It[Y-G]===0&&ht(ve,d[Y])){Le=Y;break}Le===void 0?Re(ve,m,_,!0):(It[Le-G]=v+1,Le>=Fe?Fe=Le:Ie=!0,A(ve,d[Le],p,null,m,_,E,T,x),be++)}const qs=Ie?ec(It):St;for(Y=qs.length-1,v=ye-1;v>=0;v--){const ve=G+v,Le=d[ve],zs=ve+1{const{el:_,type:E,transition:T,children:x,shapeFlag:v}=u;if(v&6){ct(u.component.subTree,d,p,b);return}if(v&128){u.suspense.move(d,p,b);return}if(v&64){E.move(u,d,p,Rt);return}if(E===_e){s(_,d,p);for(let O=0;OT.enter(_),m);else{const{leave:O,delayLeave:L,afterLeave:$}=T,G=()=>s(_,d,p),ee=()=>{O(_,()=>{G(),$&&$()})};L?L(_,G,ee):ee()}else s(_,d,p)},Re=(u,d,p,b=!1,m=!1)=>{const{type:_,props:E,ref:T,children:x,dynamicChildren:v,shapeFlag:j,patchFlag:O,dirs:L,cacheIndex:$}=u;if(O===-2&&(m=!1),T!=null&&vn(T,null,p,u,!0),$!=null&&(d.renderCache[$]=void 0),j&256){d.ctx.deactivate(u);return}const G=j&1&&L,ee=!xt(u);let Y;if(ee&&(Y=E&&E.onVnodeBeforeUnmount)&&Ne(Y,d,u),j&6)Eo(u.component,p,b);else{if(j&128){u.suspense.unmount(p,b);return}G&&ft(u,null,d,"beforeUnmount"),j&64?u.type.remove(u,d,p,Rt,b):v&&!v.hasOnce&&(_!==_e||O>0&&O&64)?Pt(v,d,p,!1,!0):(_===_e&&O&384||!m&&j&16)&&Pt(x,d,p),b&&Gs(u)}(ee&&(Y=E&&E.onVnodeUnmounted)||G)&&de(()=>{Y&&Ne(Y,d,u),G&&ft(u,null,d,"unmounted")},p)},Gs=u=>{const{type:d,el:p,anchor:b,transition:m}=u;if(d===_e){To(p,b);return}if(d===Zn){M(u);return}const _=()=>{r(p),m&&!m.persisted&&m.afterLeave&&m.afterLeave()};if(u.shapeFlag&1&&m&&!m.persisted){const{leave:E,delayLeave:T}=m,x=()=>E(p,_);T?T(u.el,_,x):x()}else _()},To=(u,d)=>{let p;for(;u!==d;)p=g(u),r(u),u=p;r(d)},Eo=(u,d,p)=>{const{bum:b,scope:m,job:_,subTree:E,um:T,m:x,a:v}=u;ar(x),ar(v),b&&dn(b),m.stop(),_&&(_.flags|=8,Re(E,u,d,p)),T&&de(T,d),de(()=>{u.isUnmounted=!0},d),d&&d.pendingBranch&&!d.isUnmounted&&u.asyncDep&&!u.asyncResolved&&u.suspenseId===d.pendingId&&(d.deps--,d.deps===0&&d.resolve())},Pt=(u,d,p,b=!1,m=!1,_=0)=>{for(let E=_;E{if(u.shapeFlag&6)return nn(u.component.subTree);if(u.shapeFlag&128)return u.suspense.next();const d=g(u.anchor||u.el),p=d&&d[vi];return p?g(p):d};let Un=!1;const Js=(u,d,p)=>{u==null?d._vnode&&Re(d._vnode,null,null,!0):A(d._vnode||null,u,d,null,null,null,p),d._vnode=u,Un||(Un=!0,er(),yi(),Un=!1)},Rt={p:A,um:Re,m:ct,r:Gs,mt:le,mc:I,pc:Z,pbc:R,n:nn,o:e};return{render:Js,hydrate:void 0,createApp:Kl(Js)}}function Xn({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function ut({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Zl(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ks(e,t,n=!1){const s=e.children,r=t.children;if(F(s)&&F(r))for(let i=0;i>1,e[n[l]]0&&(t[s]=n[i-1]),n[i]=s)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}function zi(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:zi(t)}function ar(e){if(e)for(let t=0;tTt(tc);function sc(e,t){return Ws(e,null,t)}function nt(e,t,n){return Ws(e,t,n)}function Ws(e,t,n=X){const{immediate:s,deep:r,flush:i,once:o}=n,l=oe({},n),c=t&&s||!t&&i!=="post";let a;if(Yt){if(i==="sync"){const y=nc();a=y.__watcherHandles||(y.__watcherHandles=[])}else if(!c){const y=()=>{};return y.stop=Ee,y.resume=Ee,y.pause=Ee,y}}const f=ce;l.call=(y,C,A)=>Pe(y,f,C,A);let h=!1;i==="post"?l.scheduler=y=>{de(y,f&&f.suspense)}:i!=="sync"&&(h=!0,l.scheduler=(y,C)=>{C?y():js(y)}),l.augmentJob=y=>{t&&(y.flags|=4),h&&(y.flags|=2,f&&(y.id=f.uid,y.i=f))};const g=_l(e,t,l);return Yt&&(a?a.push(g):c&&g()),g}function rc(e,t,n){const s=this.proxy,r=se(e)?e.includes(".")?Yi(s,e):()=>s[e]:e.bind(s,s);let i;V(t)?i=t:(i=t.handler,n=t);const o=en(this),l=Ws(r,i.bind(s),n);return o(),l}function Yi(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;rt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${xe(t)}Modifiers`]||e[`${rt(t)}Modifiers`];function oc(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||X;let r=n;const i=t.startsWith("update:"),o=i&&ic(s,t.slice(7));o&&(o.trim&&(r=n.map(f=>se(f)?f.trim():f)),o.number&&(r=n.map(os)));let l,c=s[l=an(t)]||s[l=an(xe(t))];!c&&i&&(c=s[l=an(rt(t))]),c&&Pe(c,e,6,r);const a=s[l+"Once"];if(a){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Pe(a,e,6,r)}}function Qi(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const i=e.emits;let o={},l=!1;if(!V(e)){const c=a=>{const f=Qi(a,t,!0);f&&(l=!0,oe(o,f))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!l?(Q(e)&&s.set(e,null),null):(F(i)?i.forEach(c=>o[c]=null):oe(o,i),Q(e)&&s.set(e,o),o)}function kn(e,t){return!e||!Tn(t)?!1:(t=t.slice(2).replace(/Once$/,""),z(e,t[0].toLowerCase()+t.slice(1))||z(e,rt(t))||z(e,t))}function dr(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[i],slots:o,attrs:l,emit:c,render:a,renderCache:f,props:h,data:g,setupState:y,ctx:C,inheritAttrs:A}=e,W=bn(e);let D,B;try{if(n.shapeFlag&4){const M=r||s,N=M;D=He(a.call(N,M,f,h,y,g,C)),B=l}else{const M=t;D=He(M.length>1?M(h,{attrs:l,slots:o,emit:c}):M(h,null)),B=t.props?l:lc(l)}}catch(M){Bt.length=0,Dn(M,e,1),D=me(ge)}let k=D;if(B&&A!==!1){const M=Object.keys(B),{shapeFlag:N}=k;M.length&&N&7&&(i&&M.some(Ts)&&(B=cc(B,i)),k=st(k,B,!1,!0))}return n.dirs&&(k=st(k,null,!1,!0),k.dirs=k.dirs?k.dirs.concat(n.dirs):n.dirs),n.transition&&yt(k,n.transition),D=k,bn(W),D}const lc=e=>{let t;for(const n in e)(n==="class"||n==="style"||Tn(n))&&((t||(t={}))[n]=e[n]);return t},cc=(e,t)=>{const n={};for(const s in e)(!Ts(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function fc(e,t,n){const{props:s,children:r,component:i}=e,{props:o,children:l,patchFlag:c}=t,a=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?hr(s,o,a):!!o;if(c&8){const f=t.dynamicProps;for(let h=0;he.__isSuspense;function ac(e,t){t&&t.pendingBranch?F(e)?t.effects.push(...e):t.effects.push(e):Sl(e)}const _e=Symbol.for("v-fgt"),Bn=Symbol.for("v-txt"),ge=Symbol.for("v-cmt"),Zn=Symbol.for("v-stc"),Bt=[];let Se=null;function ms(e=!1){Bt.push(Se=e?null:[])}function dc(){Bt.pop(),Se=Bt[Bt.length-1]||null}let qt=1;function pr(e,t=!1){qt+=e,e<0&&Se&&t&&(Se.hasOnce=!0)}function Zi(e){return e.dynamicChildren=qt>0?Se||St:null,dc(),qt>0&&Se&&Se.push(e),e}function Xf(e,t,n,s,r,i){return Zi(to(e,t,n,s,r,i,!0))}function ys(e,t,n,s,r){return Zi(me(e,t,n,s,r,!0))}function zt(e){return e?e.__v_isVNode===!0:!1}function ht(e,t){return e.type===t.type&&e.key===t.key}const eo=({key:e})=>e??null,pn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?se(e)||re(e)||V(e)?{i:ie,r:e,k:t,f:!!n}:e:null);function to(e,t=null,n=null,s=0,r=null,i=e===_e?0:1,o=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&eo(t),ref:t&&pn(t),scopeId:bi,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:ie};return l?(Us(c,n),i&128&&e.normalize(c)):n&&(c.shapeFlag|=se(n)?8:16),qt>0&&!o&&Se&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&Se.push(c),c}const me=hc;function hc(e,t=null,n=null,s=0,r=null,i=!1){if((!e||e===Li)&&(e=ge),zt(e)){const l=st(e,t,!0);return n&&Us(l,n),qt>0&&!i&&Se&&(l.shapeFlag&6?Se[Se.indexOf(e)]=l:Se.push(l)),l.patchFlag=-2,l}if(xc(e)&&(e=e.__vccOpts),t){t=pc(t);let{class:l,style:c}=t;l&&!se(l)&&(t.class=Rn(l)),Q(c)&&(Ls(c)&&!F(c)&&(c=oe({},c)),t.style=Pn(c))}const o=se(e)?1:Xi(e)?128:Si(e)?64:Q(e)?4:V(e)?2:0;return to(e,t,n,s,r,o,i,!0)}function pc(e){return e?Ls(e)||Bi(e)?oe({},e):e:null}function st(e,t,n=!1,s=!1){const{props:r,ref:i,patchFlag:o,children:l,transition:c}=e,a=t?mc(r||{},t):r,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&eo(a),ref:t&&t.ref?n&&i?F(i)?i.concat(pn(t)):[i,pn(t)]:pn(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==_e?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&st(e.ssContent),ssFallback:e.ssFallback&&st(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&s&&yt(f,c.clone(f)),f}function gc(e=" ",t=0){return me(Bn,null,e,t)}function Zf(e="",t=!1){return t?(ms(),ys(ge,null,e)):me(ge,null,e)}function He(e){return e==null||typeof e=="boolean"?me(ge):F(e)?me(_e,null,e.slice()):zt(e)?Xe(e):me(Bn,null,String(e))}function Xe(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:st(e)}function Us(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(F(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),Us(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!Bi(t)?t._ctx=ie:r===3&&ie&&(ie.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else V(t)?(t={default:t,_ctx:ie},n=32):(t=String(t),s&64?(n=16,t=[gc(t)]):n=8);e.children=t,e.shapeFlag|=n}function mc(...e){const t={};for(let n=0;nce||ie;let wn,_s;{const e=On(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),i=>{r.length>1?r.forEach(o=>o(i)):r[0](i)}};wn=t("__VUE_INSTANCE_SETTERS__",n=>ce=n),_s=t("__VUE_SSR_SETTERS__",n=>Yt=n)}const en=e=>{const t=ce;return wn(e),e.scope.on(),()=>{e.scope.off(),wn(t)}},gr=()=>{ce&&ce.scope.off(),wn(null)};function no(e){return e.vnode.shapeFlag&4}let Yt=!1;function vc(e,t=!1,n=!1){t&&_s(t);const{props:s,children:r}=e.vnode,i=no(e);Ul(e,s,i,t),zl(e,r,n);const o=i?Sc(e,t):void 0;return t&&_s(!1),o}function Sc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Dl);const{setup:s}=n;if(s){it();const r=e.setupContext=s.length>1?ro(e):null,i=en(e),o=Zt(s,e,0,[e.props,r]),l=$r(o);if(ot(),i(),(l||e.sp)&&!xt(e)&&Oi(e),l){if(o.then(gr,gr),t)return o.then(c=>{mr(e,c)}).catch(c=>{Dn(c,e,0)});e.asyncDep=o}else mr(e,o)}else so(e)}function mr(e,t,n){V(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Q(t)&&(e.setupState=hi(t)),so(e)}function so(e,t,n){const s=e.type;e.render||(e.render=s.render||Ee);{const r=en(e);it();try{jl(e)}finally{ot(),r()}}}const wc={get(e,t){return fe(e,"get",""),e[t]}};function ro(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,wc),slots:e.slots,emit:e.emit,expose:t}}function Kn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(hi(Ns(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in kt)return kt[n](e)},has(t,n){return n in t||n in kt}})):e.proxy}function Cc(e,t=!0){return V(e)?e.displayName||e.name:e.name||t&&e.__name}function xc(e){return V(e)&&"__vccOpts"in e}const Me=(e,t)=>ml(e,t,Yt);function Tc(e,t,n){const s=arguments.length;return s===2?Q(t)&&!F(t)?zt(t)?me(e,null,[t]):me(e,t):me(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&zt(n)&&(n=[n]),me(e,t,n))}const Ec="3.5.13",eu=Ee;/** +* @vue/runtime-dom v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let bs;const yr=typeof window<"u"&&window.trustedTypes;if(yr)try{bs=yr.createPolicy("vue",{createHTML:e=>e})}catch{}const io=bs?e=>bs.createHTML(e):e=>e,Ac="http://www.w3.org/2000/svg",Mc="http://www.w3.org/1998/Math/MathML",Be=typeof document<"u"?document:null,_r=Be&&Be.createElement("template"),Oc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?Be.createElementNS(Ac,e):t==="mathml"?Be.createElementNS(Mc,e):n?Be.createElement(e,{is:n}):Be.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>Be.createTextNode(e),createComment:e=>Be.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Be.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,i){const o=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{_r.innerHTML=io(s==="svg"?`${e}`:s==="mathml"?`${e}`:e);const l=_r.content;if(s==="svg"||s==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Je="transition",Lt="animation",At=Symbol("_vtc"),oo={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},lo=oe({},Ti,oo),Pc=e=>(e.displayName="Transition",e.props=lo,e),tu=Pc((e,{slots:t})=>Tc(Tl,co(e),t)),at=(e,t=[])=>{F(e)?e.forEach(n=>n(...t)):e&&e(...t)},br=e=>e?F(e)?e.some(t=>t.length>1):e.length>1:!1;function co(e){const t={};for(const w in e)w in oo||(t[w]=e[w]);if(e.css===!1)return t;const{name:n="v",type:s,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:a=o,appearToClass:f=l,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:g=`${n}-leave-active`,leaveToClass:y=`${n}-leave-to`}=e,C=Rc(r),A=C&&C[0],W=C&&C[1],{onBeforeEnter:D,onEnter:B,onEnterCancelled:k,onLeave:M,onLeaveCancelled:N,onBeforeAppear:q=D,onAppear:U=B,onAppearCancelled:I=k}=t,S=(w,H,le,Te)=>{w._enterCancelled=Te,qe(w,H?f:l),qe(w,H?a:o),le&&le()},R=(w,H)=>{w._isLeaving=!1,qe(w,h),qe(w,y),qe(w,g),H&&H()},P=w=>(H,le)=>{const Te=w?U:B,ne=()=>S(H,w,le);at(Te,[H,ne]),vr(()=>{qe(H,w?c:i),De(H,w?f:l),br(Te)||Sr(H,s,A,ne)})};return oe(t,{onBeforeEnter(w){at(D,[w]),De(w,i),De(w,o)},onBeforeAppear(w){at(q,[w]),De(w,c),De(w,a)},onEnter:P(!1),onAppear:P(!0),onLeave(w,H){w._isLeaving=!0;const le=()=>R(w,H);De(w,h),w._enterCancelled?(De(w,g),vs()):(vs(),De(w,g)),vr(()=>{w._isLeaving&&(qe(w,h),De(w,y),br(M)||Sr(w,s,W,le))}),at(M,[w,le])},onEnterCancelled(w){S(w,!1,void 0,!0),at(k,[w])},onAppearCancelled(w){S(w,!0,void 0,!0),at(I,[w])},onLeaveCancelled(w){R(w),at(N,[w])}})}function Rc(e){if(e==null)return null;if(Q(e))return[es(e.enter),es(e.leave)];{const t=es(e);return[t,t]}}function es(e){return Io(e)}function De(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[At]||(e[At]=new Set)).add(t)}function qe(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[At];n&&(n.delete(t),n.size||(e[At]=void 0))}function vr(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Ic=0;function Sr(e,t,n,s){const r=e._endId=++Ic,i=()=>{r===e._endId&&s()};if(n!=null)return setTimeout(i,n);const{type:o,timeout:l,propCount:c}=fo(e,t);if(!o)return s();const a=o+"end";let f=0;const h=()=>{e.removeEventListener(a,g),i()},g=y=>{y.target===e&&++f>=c&&h()};setTimeout(()=>{f(n[C]||"").split(", "),r=s(`${Je}Delay`),i=s(`${Je}Duration`),o=wr(r,i),l=s(`${Lt}Delay`),c=s(`${Lt}Duration`),a=wr(l,c);let f=null,h=0,g=0;t===Je?o>0&&(f=Je,h=o,g=i.length):t===Lt?a>0&&(f=Lt,h=a,g=c.length):(h=Math.max(o,a),f=h>0?o>a?Je:Lt:null,g=f?f===Je?i.length:c.length:0);const y=f===Je&&/\b(transform|all)(,|$)/.test(s(`${Je}Property`).toString());return{type:f,timeout:h,propCount:g,hasTransform:y}}function wr(e,t){for(;e.lengthCr(n)+Cr(e[s])))}function Cr(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function vs(){return document.body.offsetHeight}function Fc(e,t,n){const s=e[At];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Cn=Symbol("_vod"),uo=Symbol("_vsh"),nu={beforeMount(e,{value:t},{transition:n}){e[Cn]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Nt(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),Nt(e,!0),s.enter(e)):s.leave(e,()=>{Nt(e,!1)}):Nt(e,t))},beforeUnmount(e,{value:t}){Nt(e,t)}};function Nt(e,t){e.style.display=t?e[Cn]:"none",e[uo]=!t}const Lc=Symbol(""),Nc=/(^|;)\s*display\s*:/;function Dc(e,t,n){const s=e.style,r=se(n);let i=!1;if(n&&!r){if(t)if(se(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();n[l]==null&&gn(s,l,"")}else for(const o in t)n[o]==null&&gn(s,o,"");for(const o in n)o==="display"&&(i=!0),gn(s,o,n[o])}else if(r){if(t!==n){const o=s[Lc];o&&(n+=";"+o),s.cssText=n,i=Nc.test(n)}}else t&&e.removeAttribute("style");Cn in e&&(e[Cn]=i?s.display:"",e[uo]&&(s.display="none"))}const xr=/\s*!important$/;function gn(e,t,n){if(F(n))n.forEach(s=>gn(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=jc(e,t);xr.test(n)?e.setProperty(rt(s),n.replace(xr,""),"important"):e[s]=n}}const Tr=["Webkit","Moz","ms"],ts={};function jc(e,t){const n=ts[t];if(n)return n;let s=xe(t);if(s!=="filter"&&s in e)return ts[t]=s;s=Mn(s);for(let r=0;rns||(kc.then(()=>ns=0),ns=Date.now());function Kc(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Pe(Wc(s,n.value),t,5,[s])};return n.value=e,n.attached=Bc(),n}function Wc(e,t){if(F(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const Rr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Uc=(e,t,n,s,r,i)=>{const o=r==="svg";t==="class"?Fc(e,s,o):t==="style"?Dc(e,n,s):Tn(t)?Ts(t)||Vc(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Gc(e,t,s,o))?(Mr(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Ar(e,t,s,o,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!se(s))?Mr(e,xe(t),s,i,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Ar(e,t,s,o))};function Gc(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&Rr(t)&&V(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Rr(t)&&se(n)?!1:t in e}const ao=new WeakMap,ho=new WeakMap,xn=Symbol("_moveCb"),Ir=Symbol("_enterCb"),Jc=e=>(delete e.props.mode,e),qc=Jc({name:"TransitionGroup",props:oe({},lo,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Ot(),s=xi();let r,i;return Ri(()=>{if(!r.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!Xc(r[0].el,n.vnode.el,o))return;r.forEach(zc),r.forEach(Yc);const l=r.filter(Qc);vs(),l.forEach(c=>{const a=c.el,f=a.style;De(a,o),f.transform=f.webkitTransform=f.transitionDuration="";const h=a[xn]=g=>{g&&g.target!==a||(!g||/transform$/.test(g.propertyName))&&(a.removeEventListener("transitionend",h),a[xn]=null,qe(a,o))};a.addEventListener("transitionend",h)})}),()=>{const o=J(e),l=co(o);let c=o.tag||_e;if(r=[],i)for(let a=0;a{l.split(/\s+/).forEach(c=>c&&s.classList.remove(c))}),n.split(/\s+/).forEach(l=>l&&s.classList.add(l)),s.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(s);const{hasTransform:o}=fo(s);return i.removeChild(s),o}const Mt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return F(t)?n=>dn(t,n):t};function Zc(e){e.target.composing=!0}function Fr(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ue=Symbol("_assign"),ru={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e[Ue]=Mt(r);const i=s||r.props&&r.props.type==="number";Ze(e,t?"change":"input",o=>{if(o.target.composing)return;let l=e.value;n&&(l=l.trim()),i&&(l=os(l)),e[Ue](l)}),n&&Ze(e,"change",()=>{e.value=e.value.trim()}),t||(Ze(e,"compositionstart",Zc),Ze(e,"compositionend",Fr),Ze(e,"change",Fr))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:r,number:i}},o){if(e[Ue]=Mt(o),e.composing)return;const l=(i||e.type==="number")&&!/^0\d/.test(e.value)?os(e.value):e.value,c=t??"";l!==c&&(document.activeElement===e&&e.type!=="range"&&(s&&t===n||r&&e.value.trim()===c)||(e.value=c))}},iu={deep:!0,created(e,t,n){e[Ue]=Mt(n),Ze(e,"change",()=>{const s=e._modelValue,r=po(e),i=e.checked,o=e[Ue];if(F(s)){const l=Ur(s,r),c=l!==-1;if(i&&!c)o(s.concat(r));else if(!i&&c){const a=[...s];a.splice(l,1),o(a)}}else if(En(s)){const l=new Set(s);i?l.add(r):l.delete(r),o(l)}else o(go(e,i))})},mounted:Lr,beforeUpdate(e,t,n){e[Ue]=Mt(n),Lr(e,t,n)}};function Lr(e,{value:t,oldValue:n},s){e._modelValue=t;let r;if(F(t))r=Ur(t,s.props.value)>-1;else if(En(t))r=t.has(s.props.value);else{if(t===n)return;r=Et(t,go(e,!0))}e.checked!==r&&(e.checked=r)}const ou={created(e,{value:t},n){e.checked=Et(t,n.props.value),e[Ue]=Mt(n),Ze(e,"change",()=>{e[Ue](po(e))})},beforeUpdate(e,{value:t,oldValue:n},s){e[Ue]=Mt(s),t!==n&&(e.checked=Et(t,s.props.value))}};function po(e){return"_value"in e?e._value:e.value}function go(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const ef=["ctrl","shift","alt","meta"],tf={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)=>ef.some(n=>e[`${n}Key`]&&!t.includes(n))},lu=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(r,...i)=>{for(let o=0;o{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=r=>{if(!("key"in r))return;const i=rt(r.key);if(t.some(o=>o===i||nf[o]===i))return e(r)})},sf=oe({patchProp:Uc},Oc);let Nr;function mo(){return Nr||(Nr=Ql(sf))}const fu=(...e)=>{mo().render(...e)},uu=(...e)=>{const t=mo().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=of(s);if(!r)return;const i=t._component;!V(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const o=n(r,!1,rf(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t};function rf(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function of(e){return se(e)?document.querySelector(e):e}/*! + * pinia v2.3.1 + * (c) 2025 Eduardo San Martin Morote + * @license MIT + */let yo;const Wn=e=>yo=e,_o=Symbol();function Ss(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Kt;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Kt||(Kt={}));function au(){const e=zr(!0),t=e.run(()=>$e({}));let n=[],s=[];const r=Ns({install(i){Wn(r),r._a=i,i.provide(_o,r),i.config.globalProperties.$pinia=r,s.forEach(o=>n.push(o)),s=[]},use(i){return this._a?n.push(i):s.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return r}const bo=()=>{};function Dr(e,t,n,s=bo){e.push(t);const r=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),s())};return!n&&Ms()&&Yr(r),r}function bt(e,...t){e.slice().forEach(n=>{n(...t)})}const lf=e=>e(),jr=Symbol(),ss=Symbol();function ws(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,s)=>e.set(s,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const s=t[n],r=e[n];Ss(r)&&Ss(s)&&e.hasOwnProperty(n)&&!re(s)&&!tt(s)?e[n]=ws(r,s):e[n]=s}return e}const cf=Symbol();function ff(e){return!Ss(e)||!e.hasOwnProperty(cf)}const{assign:ze}=Object;function uf(e){return!!(re(e)&&e.effect)}function af(e,t,n,s){const{state:r,actions:i,getters:o}=t,l=n.state.value[e];let c;function a(){l||(n.state.value[e]=r?r():{});const f=al(n.state.value[e]);return ze(f,i,Object.keys(o||{}).reduce((h,g)=>(h[g]=Ns(Me(()=>{Wn(n);const y=n._s.get(e);return o[g].call(y,y)})),h),{}))}return c=vo(e,a,t,n,s,!0),c}function vo(e,t,n={},s,r,i){let o;const l=ze({actions:{}},n),c={deep:!0};let a,f,h=[],g=[],y;const C=s.state.value[e];!i&&!C&&(s.state.value[e]={}),$e({});let A;function W(I){let S;a=f=!1,typeof I=="function"?(I(s.state.value[e]),S={type:Kt.patchFunction,storeId:e,events:y}):(ws(s.state.value[e],I),S={type:Kt.patchObject,payload:I,storeId:e,events:y});const R=A=Symbol();jn().then(()=>{A===R&&(a=!0)}),f=!0,bt(h,S,s.state.value[e])}const D=i?function(){const{state:S}=n,R=S?S():{};this.$patch(P=>{ze(P,R)})}:bo;function B(){o.stop(),h=[],g=[],s._s.delete(e)}const k=(I,S="")=>{if(jr in I)return I[ss]=S,I;const R=function(){Wn(s);const P=Array.from(arguments),w=[],H=[];function le(K){w.push(K)}function Te(K){H.push(K)}bt(g,{args:P,name:R[ss],store:N,after:le,onError:Te});let ne;try{ne=I.apply(this&&this.$id===e?this:N,P)}catch(K){throw bt(H,K),K}return ne instanceof Promise?ne.then(K=>(bt(w,K),K)).catch(K=>(bt(H,K),Promise.reject(K))):(bt(w,ne),ne)};return R[jr]=!0,R[ss]=S,R},M={_p:s,$id:e,$onAction:Dr.bind(null,g),$patch:W,$reset:D,$subscribe(I,S={}){const R=Dr(h,I,S.detached,()=>P()),P=o.run(()=>nt(()=>s.state.value[e],w=>{(S.flush==="sync"?f:a)&&I({storeId:e,type:Kt.direct,events:y},w)},ze({},c,S)));return R},$dispose:B},N=Ln(M);s._s.set(e,N);const U=(s._a&&s._a.runWithContext||lf)(()=>s._e.run(()=>(o=zr()).run(()=>t({action:k}))));for(const I in U){const S=U[I];if(re(S)&&!uf(S)||tt(S))i||(C&&ff(S)&&(re(S)?S.value=C[I]:ws(S,C[I])),s.state.value[e][I]=S);else if(typeof S=="function"){const R=k(S,I);U[I]=R,l.actions[I]=S}}return ze(N,U),ze(J(N),U),Object.defineProperty(N,"$state",{get:()=>s.state.value[e],set:I=>{W(S=>{ze(S,I)})}}),s._p.forEach(I=>{ze(N,o.run(()=>I({store:N,app:s._a,pinia:s,options:l})))}),C&&i&&n.hydrate&&n.hydrate(N.$state,C),a=!0,f=!0,N}/*! #__NO_SIDE_EFFECTS__ */function du(e,t,n){let s,r;const i=typeof t=="function";typeof e=="string"?(s=e,r=i?n:t):(r=e,s=e.id);function o(l,c){const a=ks();return l=l||(a?Tt(_o,null):null),l&&Wn(l),l=yo,l._s.has(s)||(i?vo(s,t,r,l):af(s,r,l)),l._s.get(s)}return o.$id=s,o}function df(e){return Ms()?(Yr(e),!0):!1}const rs=new WeakMap,hf=(...e)=>{var t;const n=e[0],s=(t=Ot())==null?void 0:t.proxy;if(s==null&&!ks())throw new Error("injectLocal must be called in setup");return s&&rs.has(s)&&n in rs.get(s)?rs.get(s)[n]:Tt(...e)},pf=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const gf=Object.prototype.toString,mf=e=>gf.call(e)==="[object Object]",yf=()=>{};function _f(e,t){function n(...s){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,s),{fn:t,thisArg:this,args:s})).then(r).catch(i)})}return n}const So=e=>e();function bf(e=So){const t=$e(!0);function n(){t.value=!1}function s(){t.value=!0}const r=(...i)=>{t.value&&e(...i)};return{isActive:Nn(t),pause:n,resume:s,eventFilter:r}}function Hr(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function vf(e){return Ot()}function is(e){return Array.isArray(e)?e:[e]}function Sf(...e){if(e.length!==1)return pl(...e);const t=e[0];return typeof t=="function"?Nn(ul(()=>({get:t,set:yf}))):$e(t)}function wf(e,t,n={}){const{eventFilter:s=So,...r}=n;return nt(e,_f(s,t),r)}function Cf(e,t,n={}){const{eventFilter:s,...r}=n,{eventFilter:i,pause:o,resume:l,isActive:c}=bf(s);return{stop:wf(e,t,{...r,eventFilter:i}),pause:o,resume:l,isActive:c}}function wo(e,t=!0,n){vf()?$n(e,n):t?e():jn(e)}function hu(e=!1,t={}){const{truthyValue:n=!0,falsyValue:s=!1}=t,r=re(e),i=$e(e);function o(l){if(arguments.length)return i.value=l,i.value;{const c=Ve(n);return i.value=i.value===c?Ve(s):c,i.value}}return r?o:[i,o]}function xf(e,t,n){return nt(e,t,{...n,immediate:!0})}const Qt=pf?window:void 0;function Co(e){var t;const n=Ve(e);return(t=n==null?void 0:n.$el)!=null?t:n}function Cs(...e){const t=[],n=()=>{t.forEach(l=>l()),t.length=0},s=(l,c,a,f)=>(l.addEventListener(c,a,f),()=>l.removeEventListener(c,a,f)),r=Me(()=>{const l=is(Ve(e[0])).filter(c=>c!=null);return l.every(c=>typeof c!="string")?l:void 0}),i=xf(()=>{var l,c;return[(c=(l=r.value)==null?void 0:l.map(a=>Co(a)))!=null?c:[Qt].filter(a=>a!=null),is(Ve(r.value?e[1]:e[0])),is(Ds(r.value?e[2]:e[1])),Ve(r.value?e[3]:e[2])]},([l,c,a,f])=>{if(n(),!(l!=null&&l.length)||!(c!=null&&c.length)||!(a!=null&&a.length))return;const h=mf(f)?{...f}:f;t.push(...l.flatMap(g=>c.flatMap(y=>a.map(C=>s(g,y,C,h)))))},{flush:"post"}),o=()=>{i(),n()};return df(n),o}function Tf(){const e=$e(!1),t=Ot();return t&&$n(()=>{e.value=!0},t),e}function Ef(e){const t=Tf();return Me(()=>(t.value,!!e()))}const Af=Symbol("vueuse-ssr-width");function Mf(){const e=ks()?hf(Af,null):null;return typeof e=="number"?e:void 0}function Of(e,t={}){const{window:n=Qt,ssrWidth:s=Mf()}=t,r=Ef(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),i=$e(typeof s=="number"),o=ai(),l=$e(!1),c=a=>{l.value=a.matches};return sc(()=>{if(i.value){i.value=!r.value;const a=Ve(e).split(",");l.value=a.some(f=>{const h=f.includes("not all"),g=f.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),y=f.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let C=!!(g||y);return g&&C&&(C=s>=Hr(g[1])),y&&C&&(C=s<=Hr(y[1])),h?!C:C});return}r.value&&(o.value=n.matchMedia(Ve(e)),l.value=o.value.matches)}),Cs(o,"change",c,{passive:!0}),Me(()=>l.value)}const fn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},un="__vueuse_ssr_handlers__",Pf=Rf();function Rf(){return un in fn||(fn[un]=fn[un]||{}),fn[un]}function xo(e,t){return Pf[e]||t}function If(e){return Of("(prefers-color-scheme: dark)",e)}function Ff(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"}const Lf={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()}},Vr="vueuse-storage";function Nf(e,t,n,s={}){var r;const{flush:i="pre",deep:o=!0,listenToStorageChanges:l=!0,writeDefaults:c=!0,mergeDefaults:a=!1,shallow:f,window:h=Qt,eventFilter:g,onError:y=P=>{console.error(P)},initOnMounted:C}=s,A=(f?ai:$e)(typeof t=="function"?t():t),W=Me(()=>Ve(e));if(!n)try{n=xo("getDefaultStorage",()=>{var P;return(P=Qt)==null?void 0:P.localStorage})()}catch(P){y(P)}if(!n)return A;const D=Ve(t),B=Ff(D),k=(r=s.serializer)!=null?r:Lf[B],{pause:M,resume:N}=Cf(A,()=>U(A.value),{flush:i,deep:o,eventFilter:g});nt(W,()=>S(),{flush:i}),h&&l&&wo(()=>{n instanceof Storage?Cs(h,"storage",S,{passive:!0}):Cs(h,Vr,R),C&&S()}),C||S();function q(P,w){if(h){const H={key:W.value,oldValue:P,newValue:w,storageArea:n};h.dispatchEvent(n instanceof Storage?new StorageEvent("storage",H):new CustomEvent(Vr,{detail:H}))}}function U(P){try{const w=n.getItem(W.value);if(P==null)q(w,null),n.removeItem(W.value);else{const H=k.write(P);w!==H&&(n.setItem(W.value,H),q(w,H))}}catch(w){y(w)}}function I(P){const w=P?P.newValue:n.getItem(W.value);if(w==null)return c&&D!=null&&n.setItem(W.value,k.write(D)),D;if(!P&&a){const H=k.read(w);return typeof a=="function"?a(H,D):B==="object"&&!Array.isArray(H)?{...D,...H}:H}else return typeof w!="string"?w:k.read(w)}function S(P){if(!(P&&P.storageArea!==n)){if(P&&P.key==null){A.value=D;return}if(!(P&&P.key!==W.value)){M();try{(P==null?void 0:P.newValue)!==k.write(A.value)&&(A.value=I(P))}catch(w){y(w)}finally{P?jn(N):N()}}}}function R(P){S(P.detail)}return A}const Df="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function jf(e={}){const{selector:t="html",attribute:n="class",initialValue:s="auto",window:r=Qt,storage:i,storageKey:o="vueuse-color-scheme",listenToStorageChanges:l=!0,storageRef:c,emitAuto:a,disableTransition:f=!0}=e,h={auto:"",light:"light",dark:"dark",...e.modes||{}},g=If({window:r}),y=Me(()=>g.value?"dark":"light"),C=c||(o==null?Sf(s):Nf(o,s,i,{window:r,listenToStorageChanges:l})),A=Me(()=>C.value==="auto"?y.value:C.value),W=xo("updateHTMLAttrs",(M,N,q)=>{const U=typeof M=="string"?r==null?void 0:r.document.querySelector(M):Co(M);if(!U)return;const I=new Set,S=new Set;let R=null;if(N==="class"){const w=q.split(/\s/g);Object.values(h).flatMap(H=>(H||"").split(/\s/g)).filter(Boolean).forEach(H=>{w.includes(H)?I.add(H):S.add(H)})}else R={key:N,value:q};if(I.size===0&&S.size===0&&R===null)return;let P;f&&(P=r.document.createElement("style"),P.appendChild(document.createTextNode(Df)),r.document.head.appendChild(P));for(const w of I)U.classList.add(w);for(const w of S)U.classList.remove(w);R&&U.setAttribute(R.key,R.value),f&&(r.getComputedStyle(P).opacity,document.head.removeChild(P))});function D(M){var N;W(t,n,(N=h[M])!=null?N:M)}function B(M){e.onChanged?e.onChanged(M,D):D(M)}nt(A,B,{flush:"post",immediate:!0}),wo(()=>B(A.value));const k=Me({get(){return a?C.value:A.value},set(M){C.value=M}});return Object.assign(k,{store:C,system:y,state:A})}function pu(e={}){const{valueDark:t="dark",valueLight:n=""}=e,s=jf({...e,onChanged:(o,l)=>{var c;e.onChanged?(c=e.onChanged)==null||c.call(e,o==="dark",l,o):l(o)},modes:{dark:t,light:n}}),r=Me(()=>s.system.value);return Me({get(){return s.value==="dark"},set(o){const l=o?"dark":"light";r.value===l?s.value="auto":s.value=l}})}export{Bn as $,to as A,qf as B,Pn as C,Rn as D,mc as E,Yf as F,ys as G,wl as H,$f as I,Zf as J,Wf as K,gc as L,$o as M,Ee as N,_e as O,me as P,nu as Q,pl as R,Fi as S,tu as T,Qf as U,lu as V,Ii as W,Ln as X,El as Y,Ri as Z,st as _,F as a,ge as a0,kf as a1,Ol as a2,Al as a3,cu as a4,Jf as a5,Gf as a6,Ys as a7,Vf as a8,pc as a9,zt as aa,J as ab,iu as ac,al as ad,ou as ae,Tc as af,Kf as ag,Mn as ah,Pl as ai,$r as aj,ru as ak,zf as al,su as am,Ns as an,zr as ao,Br as ap,Uf as aq,an as ar,fu as as,uu as at,rt as au,ol as av,pu as aw,du as ax,hu as ay,au as az,Q as b,Me as c,se as d,Ms as e,sc as f,Ot as g,Nn as h,Tt as i,$n as j,ul as k,re as l,z as m,jn as n,Yr as o,eu as p,V as q,$e as r,ai as s,Wl as t,Ds as u,xe as v,nt as w,Bf as x,Xf as y,ms as z}; diff --git a/assets/xterm-ks5DzpfX.js b/assets/xterm-BZdChWd0.js similarity index 92% rename from assets/xterm-ks5DzpfX.js rename to assets/xterm-BZdChWd0.js index 7d3ab84..6e2018b 100644 --- a/assets/xterm-ks5DzpfX.js +++ b/assets/xterm-BZdChWd0.js @@ -1,9 +1,9 @@ -function ye(Z){return Z&&Z.__esModule&&Object.prototype.hasOwnProperty.call(Z,"default")?Z.default:Z}var fe={exports:{}},me;function Ee(){return me||(me=1,function(Z,ve){(function(ee,G){Z.exports=G()})(self,()=>(()=>{var ee={4567:function(M,r,o){var c=this&&this.__decorate||function(s,a,d,p){var m,l=arguments.length,v=l<3?a:p===null?p=Object.getOwnPropertyDescriptor(a,d):p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(s,a,d,p);else for(var w=s.length-1;w>=0;w--)(m=s[w])&&(v=(l<3?m(v):l>3?m(a,d,v):m(a,d))||v);return l>3&&v&&Object.defineProperty(a,d,v),v},g=this&&this.__param||function(s,a){return function(d,p){a(d,p,s)}};Object.defineProperty(r,"__esModule",{value:!0}),r.AccessibilityManager=void 0;const n=o(9042),h=o(6114),_=o(9924),f=o(844),u=o(5596),e=o(4725),i=o(3656);let t=r.AccessibilityManager=class extends f.Disposable{constructor(s,a){super(),this._terminal=s,this._renderService=a,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="",this._accessibilityContainer=document.createElement("div"),this._accessibilityContainer.classList.add("xterm-accessibility"),this._rowContainer=document.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let d=0;dthis._handleBoundaryFocus(d,0),this._bottomBoundaryFocusListener=d=>this._handleBoundaryFocus(d,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions(),this._accessibilityContainer.appendChild(this._rowContainer),this._liveRegion=document.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this.register(new _.TimeBasedDebouncer(this._renderRows.bind(this))),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityContainer),this.register(this._terminal.onResize(d=>this._handleResize(d.rows))),this.register(this._terminal.onRender(d=>this._refreshRows(d.start,d.end))),this.register(this._terminal.onScroll(()=>this._refreshRows())),this.register(this._terminal.onA11yChar(d=>this._handleChar(d))),this.register(this._terminal.onLineFeed(()=>this._handleChar(` +var fe={exports:{}},me;function ye(){return me||(me=1,function(se,ve){(function(Q,G){se.exports=G()})(self,()=>(()=>{var Q={4567:function(M,r,o){var c=this&&this.__decorate||function(s,a,d,p){var m,l=arguments.length,v=l<3?a:p===null?p=Object.getOwnPropertyDescriptor(a,d):p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(s,a,d,p);else for(var w=s.length-1;w>=0;w--)(m=s[w])&&(v=(l<3?m(v):l>3?m(a,d,v):m(a,d))||v);return l>3&&v&&Object.defineProperty(a,d,v),v},g=this&&this.__param||function(s,a){return function(d,p){a(d,p,s)}};Object.defineProperty(r,"__esModule",{value:!0}),r.AccessibilityManager=void 0;const n=o(9042),h=o(6114),_=o(9924),f=o(844),u=o(5596),e=o(4725),i=o(3656);let t=r.AccessibilityManager=class extends f.Disposable{constructor(s,a){super(),this._terminal=s,this._renderService=a,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="",this._accessibilityContainer=document.createElement("div"),this._accessibilityContainer.classList.add("xterm-accessibility"),this._rowContainer=document.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let d=0;dthis._handleBoundaryFocus(d,0),this._bottomBoundaryFocusListener=d=>this._handleBoundaryFocus(d,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions(),this._accessibilityContainer.appendChild(this._rowContainer),this._liveRegion=document.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this.register(new _.TimeBasedDebouncer(this._renderRows.bind(this))),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityContainer),this.register(this._terminal.onResize(d=>this._handleResize(d.rows))),this.register(this._terminal.onRender(d=>this._refreshRows(d.start,d.end))),this.register(this._terminal.onScroll(()=>this._refreshRows())),this.register(this._terminal.onA11yChar(d=>this._handleChar(d))),this.register(this._terminal.onLineFeed(()=>this._handleChar(` `))),this.register(this._terminal.onA11yTab(d=>this._handleTab(d))),this.register(this._terminal.onKey(d=>this._handleKey(d.key))),this.register(this._terminal.onBlur(()=>this._clearLiveRegion())),this.register(this._renderService.onDimensionsChange(()=>this._refreshRowsDimensions())),this._screenDprMonitor=new u.ScreenDprMonitor(window),this.register(this._screenDprMonitor),this._screenDprMonitor.setListener(()=>this._refreshRowsDimensions()),this.register((0,i.addDisposableDomListener)(window,"resize",()=>this._refreshRowsDimensions())),this._refreshRows(),this.register((0,f.toDisposable)(()=>{this._accessibilityContainer.remove(),this._rowElements.length=0}))}_handleTab(s){for(let a=0;a0?this._charsToConsume.shift()!==s&&(this._charsToAnnounce+=s):this._charsToAnnounce+=s,s===` `&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=n.tooMuchOutput)),h.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(()=>{this._accessibilityContainer.appendChild(this._liveRegion)},0))}_clearLiveRegion(){this._liveRegion.textContent="",this._liveRegionLineCount=0,h.isMac&&this._liveRegion.remove()}_handleKey(s){this._clearLiveRegion(),new RegExp("\\p{Control}","u").test(s)||this._charsToConsume.push(s)}_refreshRows(s,a){this._liveRegionDebouncer.refresh(s,a,this._terminal.rows)}_renderRows(s,a){const d=this._terminal.buffer,p=d.lines.length.toString();for(let m=s;m<=a;m++){const l=d.translateBufferLineToString(d.ydisp+m,!0),v=(d.ydisp+m+1).toString(),w=this._rowElements[m];w&&(l.length===0?w.innerText=" ":w.textContent=l,w.setAttribute("aria-posinset",v),w.setAttribute("aria-setsize",p))}this._announceCharacters()}_announceCharacters(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")}_handleBoundaryFocus(s,a){const d=s.target,p=this._rowElements[a===0?1:this._rowElements.length-2];if(d.getAttribute("aria-posinset")===(a===0?"1":`${this._terminal.buffer.lines.length}`)||s.relatedTarget!==p)return;let m,l;if(a===0?(m=d,l=this._rowElements.pop(),this._rowContainer.removeChild(l)):(m=this._rowElements.shift(),l=d,this._rowContainer.removeChild(m)),m.removeEventListener("focus",this._topBoundaryFocusListener),l.removeEventListener("focus",this._bottomBoundaryFocusListener),a===0){const v=this._createAccessibilityTreeNode();this._rowElements.unshift(v),this._rowContainer.insertAdjacentElement("afterbegin",v)}else{const v=this._createAccessibilityTreeNode();this._rowElements.push(v),this._rowContainer.appendChild(v)}this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(a===0?-1:1),this._rowElements[a===0?1:this._rowElements.length-2].focus(),s.preventDefault(),s.stopImmediatePropagation()}_handleResize(s){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(let a=this._rowContainer.children.length;as;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()}_createAccessibilityTreeNode(){const s=document.createElement("div");return s.setAttribute("role","listitem"),s.tabIndex=-1,this._refreshRowDimensions(s),s}_refreshRowsDimensions(){if(this._renderService.dimensions.css.cell.height){this._accessibilityContainer.style.width=`${this._renderService.dimensions.css.canvas.width}px`,this._rowElements.length!==this._terminal.rows&&this._handleResize(this._terminal.rows);for(let s=0;s{function o(h){return h.replace(/\r?\n/g,"\r")}function c(h,_){return _?"\x1B[200~"+h+"\x1B[201~":h}function g(h,_,f,u){h=c(h=o(h),f.decPrivateModes.bracketedPasteMode&&u.rawOptions.ignoreBracketedPasteMode!==!0),f.triggerDataEvent(h,!0),_.value=""}function n(h,_,f){const u=f.getBoundingClientRect(),e=h.clientX-u.left-10,i=h.clientY-u.top-10;_.style.width="20px",_.style.height="20px",_.style.left=`${e}px`,_.style.top=`${i}px`,_.style.zIndex="1000",_.focus()}Object.defineProperty(r,"__esModule",{value:!0}),r.rightClickHandler=r.moveTextAreaUnderMouseCursor=r.paste=r.handlePasteEvent=r.copyHandler=r.bracketTextForPaste=r.prepareTextForTerminal=void 0,r.prepareTextForTerminal=o,r.bracketTextForPaste=c,r.copyHandler=function(h,_){h.clipboardData&&h.clipboardData.setData("text/plain",_.selectionText),h.preventDefault()},r.handlePasteEvent=function(h,_,f,u){h.stopPropagation(),h.clipboardData&&g(h.clipboardData.getData("text/plain"),_,f,u)},r.paste=g,r.moveTextAreaUnderMouseCursor=n,r.rightClickHandler=function(h,_,f,u,e){n(h,_,f),e&&u.rightClickSelect(h),_.value=u.selectionText,_.select()}},7239:(M,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.ColorContrastCache=void 0;const c=o(1505);r.ColorContrastCache=class{constructor(){this._color=new c.TwoKeyMap,this._css=new c.TwoKeyMap}setCss(g,n,h){this._css.set(g,n,h)}getCss(g,n){return this._css.get(g,n)}setColor(g,n,h){this._color.set(g,n,h)}getColor(g,n){return this._color.get(g,n)}clear(){this._color.clear(),this._css.clear()}}},3656:(M,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.addDisposableDomListener=void 0,r.addDisposableDomListener=function(o,c,g,n){o.addEventListener(c,g,n);let h=!1;return{dispose:()=>{h||(h=!0,o.removeEventListener(c,g,n))}}}},6465:function(M,r,o){var c=this&&this.__decorate||function(e,i,t,s){var a,d=arguments.length,p=d<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,t):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")p=Reflect.decorate(e,i,t,s);else for(var m=e.length-1;m>=0;m--)(a=e[m])&&(p=(d<3?a(p):d>3?a(i,t,p):a(i,t))||p);return d>3&&p&&Object.defineProperty(i,t,p),p},g=this&&this.__param||function(e,i){return function(t,s){i(t,s,e)}};Object.defineProperty(r,"__esModule",{value:!0}),r.Linkifier2=void 0;const n=o(3656),h=o(8460),_=o(844),f=o(2585);let u=r.Linkifier2=class extends _.Disposable{get currentLink(){return this._currentLink}constructor(e){super(),this._bufferService=e,this._linkProviders=[],this._linkCacheDisposables=[],this._isMouseOut=!0,this._wasResized=!1,this._activeLine=-1,this._onShowLinkUnderline=this.register(new h.EventEmitter),this.onShowLinkUnderline=this._onShowLinkUnderline.event,this._onHideLinkUnderline=this.register(new h.EventEmitter),this.onHideLinkUnderline=this._onHideLinkUnderline.event,this.register((0,_.getDisposeArrayDisposable)(this._linkCacheDisposables)),this.register((0,_.toDisposable)(()=>{this._lastMouseEvent=void 0})),this.register(this._bufferService.onResize(()=>{this._clearCurrentLink(),this._wasResized=!0}))}registerLinkProvider(e){return this._linkProviders.push(e),{dispose:()=>{const i=this._linkProviders.indexOf(e);i!==-1&&this._linkProviders.splice(i,1)}}}attachToDom(e,i,t){this._element=e,this._mouseService=i,this._renderService=t,this.register((0,n.addDisposableDomListener)(this._element,"mouseleave",()=>{this._isMouseOut=!0,this._clearCurrentLink()})),this.register((0,n.addDisposableDomListener)(this._element,"mousemove",this._handleMouseMove.bind(this))),this.register((0,n.addDisposableDomListener)(this._element,"mousedown",this._handleMouseDown.bind(this))),this.register((0,n.addDisposableDomListener)(this._element,"mouseup",this._handleMouseUp.bind(this)))}_handleMouseMove(e){if(this._lastMouseEvent=e,!this._element||!this._mouseService)return;const i=this._positionFromMouseEvent(e,this._element,this._mouseService);if(!i)return;this._isMouseOut=!1;const t=e.composedPath();for(let s=0;s{d==null||d.forEach(p=>{p.link.dispose&&p.link.dispose()})}),this._activeProviderReplies=new Map,this._activeLine=e.y);let a=!1;for(const[d,p]of this._linkProviders.entries())i?!((s=this._activeProviderReplies)===null||s===void 0)&&s.get(d)&&(a=this._checkLinkProviderResult(d,e,a)):p.provideLinks(e.y,m=>{var l,v;if(this._isMouseOut)return;const w=m==null?void 0:m.map(L=>({link:L}));(l=this._activeProviderReplies)===null||l===void 0||l.set(d,w),a=this._checkLinkProviderResult(d,e,a),((v=this._activeProviderReplies)===null||v===void 0?void 0:v.size)===this._linkProviders.length&&this._removeIntersectingLinks(e.y,this._activeProviderReplies)})}_removeIntersectingLinks(e,i){const t=new Set;for(let s=0;se?this._bufferService.cols:p.link.range.end.x;for(let v=m;v<=l;v++){if(t.has(v)){a.splice(d--,1);break}t.add(v)}}}}_checkLinkProviderResult(e,i,t){var s;if(!this._activeProviderReplies)return t;const a=this._activeProviderReplies.get(e);let d=!1;for(let p=0;pthis._linkAtPosition(m.link,i));p&&(t=!0,this._handleNewLink(p))}if(this._activeProviderReplies.size===this._linkProviders.length&&!t)for(let p=0;pthis._linkAtPosition(l.link,i));if(m){t=!0,this._handleNewLink(m);break}}return t}_handleMouseDown(){this._mouseDownLink=this._currentLink}_handleMouseUp(e){if(!this._element||!this._mouseService||!this._currentLink)return;const i=this._positionFromMouseEvent(e,this._element,this._mouseService);i&&this._mouseDownLink===this._currentLink&&this._linkAtPosition(this._currentLink.link,i)&&this._currentLink.link.activate(e,this._currentLink.link.text)}_clearCurrentLink(e,i){this._element&&this._currentLink&&this._lastMouseEvent&&(!e||!i||this._currentLink.link.range.start.y>=e&&this._currentLink.link.range.end.y<=i)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,_.disposeArray)(this._linkCacheDisposables))}_handleNewLink(e){if(!this._element||!this._lastMouseEvent||!this._mouseService)return;const i=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);i&&this._linkAtPosition(e.link,i)&&(this._currentLink=e,this._currentLink.state={decorations:{underline:e.link.decorations===void 0||e.link.decorations.underline,pointerCursor:e.link.decorations===void 0||e.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,e.link,this._lastMouseEvent),e.link.decorations={},Object.defineProperties(e.link.decorations,{pointerCursor:{get:()=>{var t,s;return(s=(t=this._currentLink)===null||t===void 0?void 0:t.state)===null||s===void 0?void 0:s.decorations.pointerCursor},set:t=>{var s,a;!((s=this._currentLink)===null||s===void 0)&&s.state&&this._currentLink.state.decorations.pointerCursor!==t&&(this._currentLink.state.decorations.pointerCursor=t,this._currentLink.state.isHovered&&((a=this._element)===null||a===void 0||a.classList.toggle("xterm-cursor-pointer",t)))}},underline:{get:()=>{var t,s;return(s=(t=this._currentLink)===null||t===void 0?void 0:t.state)===null||s===void 0?void 0:s.decorations.underline},set:t=>{var s,a,d;!((s=this._currentLink)===null||s===void 0)&&s.state&&((d=(a=this._currentLink)===null||a===void 0?void 0:a.state)===null||d===void 0?void 0:d.decorations.underline)!==t&&(this._currentLink.state.decorations.underline=t,this._currentLink.state.isHovered&&this._fireUnderlineEvent(e.link,t))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange(t=>{if(!this._currentLink)return;const s=t.start===0?0:t.start+1+this._bufferService.buffer.ydisp,a=this._bufferService.buffer.ydisp+1+t.end;if(this._currentLink.link.range.start.y>=s&&this._currentLink.link.range.end.y<=a&&(this._clearCurrentLink(s,a),this._lastMouseEvent&&this._element)){const d=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);d&&this._askForLink(d,!1)}})))}_linkHover(e,i,t){var s;!((s=this._currentLink)===null||s===void 0)&&s.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(i,!0),this._currentLink.state.decorations.pointerCursor&&e.classList.add("xterm-cursor-pointer")),i.hover&&i.hover(t,i.text)}_fireUnderlineEvent(e,i){const t=e.range,s=this._bufferService.buffer.ydisp,a=this._createLinkUnderlineEvent(t.start.x-1,t.start.y-s-1,t.end.x,t.end.y-s-1,void 0);(i?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(a)}_linkLeave(e,i,t){var s;!((s=this._currentLink)===null||s===void 0)&&s.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(i,!1),this._currentLink.state.decorations.pointerCursor&&e.classList.remove("xterm-cursor-pointer")),i.leave&&i.leave(t,i.text)}_linkAtPosition(e,i){const t=e.range.start.y*this._bufferService.cols+e.range.start.x,s=e.range.end.y*this._bufferService.cols+e.range.end.x,a=i.y*this._bufferService.cols+i.x;return t<=a&&a<=s}_positionFromMouseEvent(e,i,t){const s=t.getCoords(e,i,this._bufferService.cols,this._bufferService.rows);if(s)return{x:s[0],y:s[1]+this._bufferService.buffer.ydisp}}_createLinkUnderlineEvent(e,i,t,s,a){return{x1:e,y1:i,x2:t,y2:s,cols:this._bufferService.cols,fg:a}}};r.Linkifier2=u=c([g(0,f.IBufferService)],u)},9042:(M,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.tooMuchOutput=r.promptLabel=void 0,r.promptLabel="Terminal input",r.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},3730:function(M,r,o){var c=this&&this.__decorate||function(u,e,i,t){var s,a=arguments.length,d=a<3?e:t===null?t=Object.getOwnPropertyDescriptor(e,i):t;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(u,e,i,t);else for(var p=u.length-1;p>=0;p--)(s=u[p])&&(d=(a<3?s(d):a>3?s(e,i,d):s(e,i))||d);return a>3&&d&&Object.defineProperty(e,i,d),d},g=this&&this.__param||function(u,e){return function(i,t){e(i,t,u)}};Object.defineProperty(r,"__esModule",{value:!0}),r.OscLinkProvider=void 0;const n=o(511),h=o(2585);let _=r.OscLinkProvider=class{constructor(u,e,i){this._bufferService=u,this._optionsService=e,this._oscLinkService=i}provideLinks(u,e){var i;const t=this._bufferService.buffer.lines.get(u-1);if(!t)return void e(void 0);const s=[],a=this._optionsService.rawOptions.linkHandler,d=new n.CellData,p=t.getTrimmedLength();let m=-1,l=-1,v=!1;for(let w=0;wa?a.activate(x,T,b):f(0,T),hover:(x,T)=>{var P;return(P=a==null?void 0:a.hover)===null||P===void 0?void 0:P.call(a,x,T,b)},leave:(x,T)=>{var P;return(P=a==null?void 0:a.leave)===null||P===void 0?void 0:P.call(a,x,T,b)}})}v=!1,d.hasExtendedAttrs()&&d.extended.urlId?(l=w,m=d.extended.urlId):(l=-1,m=-1)}}e(s)}};function f(u,e){if(confirm(`Do you want to navigate to ${e}? -WARNING: This link could potentially be dangerous`)){const i=window.open();if(i){try{i.opener=null}catch{}i.location.href=e}else console.warn("Opening link blocked as opener could not be cleared")}}r.OscLinkProvider=_=c([g(0,h.IBufferService),g(1,h.IOptionsService),g(2,h.IOscLinkService)],_)},6193:(M,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.RenderDebouncer=void 0,r.RenderDebouncer=class{constructor(o,c){this._parentWindow=o,this._renderCallback=c,this._refreshCallbacks=[]}dispose(){this._animationFrame&&(this._parentWindow.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)}addRefreshCallback(o){return this._refreshCallbacks.push(o),this._animationFrame||(this._animationFrame=this._parentWindow.requestAnimationFrame(()=>this._innerRefresh())),this._animationFrame}refresh(o,c,g){this._rowCount=g,o=o!==void 0?o:0,c=c!==void 0?c:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,o):o,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,c):c,this._animationFrame||(this._animationFrame=this._parentWindow.requestAnimationFrame(()=>this._innerRefresh()))}_innerRefresh(){if(this._animationFrame=void 0,this._rowStart===void 0||this._rowEnd===void 0||this._rowCount===void 0)return void this._runRefreshCallbacks();const o=Math.max(this._rowStart,0),c=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(o,c),this._runRefreshCallbacks()}_runRefreshCallbacks(){for(const o of this._refreshCallbacks)o(0);this._refreshCallbacks=[]}}},5596:(M,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.ScreenDprMonitor=void 0;const c=o(844);class g extends c.Disposable{constructor(h){super(),this._parentWindow=h,this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio,this.register((0,c.toDisposable)(()=>{this.clearListener()}))}setListener(h){this._listener&&this.clearListener(),this._listener=h,this._outerListener=()=>{this._listener&&(this._listener(this._parentWindow.devicePixelRatio,this._currentDevicePixelRatio),this._updateDpr())},this._updateDpr()}_updateDpr(){var h;this._outerListener&&((h=this._resolutionMediaMatchList)===null||h===void 0||h.removeListener(this._outerListener),this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio,this._resolutionMediaMatchList=this._parentWindow.matchMedia(`screen and (resolution: ${this._parentWindow.devicePixelRatio}dppx)`),this._resolutionMediaMatchList.addListener(this._outerListener))}clearListener(){this._resolutionMediaMatchList&&this._listener&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._listener=void 0,this._outerListener=void 0)}}r.ScreenDprMonitor=g},3236:(M,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.Terminal=void 0;const c=o(3614),g=o(3656),n=o(6465),h=o(9042),_=o(3730),f=o(1680),u=o(3107),e=o(5744),i=o(2950),t=o(1296),s=o(428),a=o(4269),d=o(5114),p=o(8934),m=o(3230),l=o(9312),v=o(4725),w=o(6731),L=o(8055),b=o(8969),E=o(8460),x=o(844),T=o(6114),P=o(8437),O=o(2584),C=o(7399),y=o(5941),k=o(9074),D=o(2585),I=o(5435),H=o(4567),U=typeof window<"u"?window.document:null;class W extends b.CoreTerminal{get onFocus(){return this._onFocus.event}get onBlur(){return this._onBlur.event}get onA11yChar(){return this._onA11yCharEmitter.event}get onA11yTab(){return this._onA11yTabEmitter.event}get onWillOpen(){return this._onWillOpen.event}constructor(S={}){super(S),this.browser=T,this._keyDownHandled=!1,this._keyDownSeen=!1,this._keyPressHandled=!1,this._unprocessedDeadKey=!1,this._accessibilityManager=this.register(new x.MutableDisposable),this._onCursorMove=this.register(new E.EventEmitter),this.onCursorMove=this._onCursorMove.event,this._onKey=this.register(new E.EventEmitter),this.onKey=this._onKey.event,this._onRender=this.register(new E.EventEmitter),this.onRender=this._onRender.event,this._onSelectionChange=this.register(new E.EventEmitter),this.onSelectionChange=this._onSelectionChange.event,this._onTitleChange=this.register(new E.EventEmitter),this.onTitleChange=this._onTitleChange.event,this._onBell=this.register(new E.EventEmitter),this.onBell=this._onBell.event,this._onFocus=this.register(new E.EventEmitter),this._onBlur=this.register(new E.EventEmitter),this._onA11yCharEmitter=this.register(new E.EventEmitter),this._onA11yTabEmitter=this.register(new E.EventEmitter),this._onWillOpen=this.register(new E.EventEmitter),this._setup(),this.linkifier2=this.register(this._instantiationService.createInstance(n.Linkifier2)),this.linkifier2.registerLinkProvider(this._instantiationService.createInstance(_.OscLinkProvider)),this._decorationService=this._instantiationService.createInstance(k.DecorationService),this._instantiationService.setService(D.IDecorationService,this._decorationService),this.register(this._inputHandler.onRequestBell(()=>this._onBell.fire())),this.register(this._inputHandler.onRequestRefreshRows((R,B)=>this.refresh(R,B))),this.register(this._inputHandler.onRequestSendFocus(()=>this._reportFocus())),this.register(this._inputHandler.onRequestReset(()=>this.reset())),this.register(this._inputHandler.onRequestWindowsOptionsReport(R=>this._reportWindowsOptions(R))),this.register(this._inputHandler.onColor(R=>this._handleColorEvent(R))),this.register((0,E.forwardEvent)(this._inputHandler.onCursorMove,this._onCursorMove)),this.register((0,E.forwardEvent)(this._inputHandler.onTitleChange,this._onTitleChange)),this.register((0,E.forwardEvent)(this._inputHandler.onA11yChar,this._onA11yCharEmitter)),this.register((0,E.forwardEvent)(this._inputHandler.onA11yTab,this._onA11yTabEmitter)),this.register(this._bufferService.onResize(R=>this._afterResize(R.cols,R.rows))),this.register((0,x.toDisposable)(()=>{var R,B;this._customKeyEventHandler=void 0,(B=(R=this.element)===null||R===void 0?void 0:R.parentNode)===null||B===void 0||B.removeChild(this.element)}))}_handleColorEvent(S){if(this._themeService)for(const R of S){let B,A="";switch(R.index){case 256:B="foreground",A="10";break;case 257:B="background",A="11";break;case 258:B="cursor",A="12";break;default:B="ansi",A="4;"+R.index}switch(R.type){case 0:const N=L.color.toColorRGB(B==="ansi"?this._themeService.colors.ansi[R.index]:this._themeService.colors[B]);this.coreService.triggerDataEvent(`${O.C0.ESC}]${A};${(0,y.toRgbString)(N)}${O.C1_ESCAPED.ST}`);break;case 1:if(B==="ansi")this._themeService.modifyColors(F=>F.ansi[R.index]=L.rgba.toColor(...R.color));else{const F=B;this._themeService.modifyColors(j=>j[F]=L.rgba.toColor(...R.color))}break;case 2:this._themeService.restoreColor(R.index)}}}_setup(){super._setup(),this._customKeyEventHandler=void 0}get buffer(){return this.buffers.active}focus(){this.textarea&&this.textarea.focus({preventScroll:!0})}_handleScreenReaderModeOptionChange(S){S?!this._accessibilityManager.value&&this._renderService&&(this._accessibilityManager.value=this._instantiationService.createInstance(H.AccessibilityManager,this)):this._accessibilityManager.clear()}_handleTextAreaFocus(S){this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(O.C0.ESC+"[I"),this.updateCursorStyle(S),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()}blur(){var S;return(S=this.textarea)===null||S===void 0?void 0:S.blur()}_handleTextAreaBlur(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(O.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()}_syncTextArea(){if(!this.textarea||!this.buffer.isCursorInViewport||this._compositionHelper.isComposing||!this._renderService)return;const S=this.buffer.ybase+this.buffer.y,R=this.buffer.lines.get(S);if(!R)return;const B=Math.min(this.buffer.x,this.cols-1),A=this._renderService.dimensions.css.cell.height,N=R.getWidth(B),F=this._renderService.dimensions.css.cell.width*N,j=this.buffer.y*this._renderService.dimensions.css.cell.height,V=B*this._renderService.dimensions.css.cell.width;this.textarea.style.left=V+"px",this.textarea.style.top=j+"px",this.textarea.style.width=F+"px",this.textarea.style.height=A+"px",this.textarea.style.lineHeight=A+"px",this.textarea.style.zIndex="-5"}_initGlobal(){this._bindKeys(),this.register((0,g.addDisposableDomListener)(this.element,"copy",R=>{this.hasSelection()&&(0,c.copyHandler)(R,this._selectionService)}));const S=R=>(0,c.handlePasteEvent)(R,this.textarea,this.coreService,this.optionsService);this.register((0,g.addDisposableDomListener)(this.textarea,"paste",S)),this.register((0,g.addDisposableDomListener)(this.element,"paste",S)),T.isFirefox?this.register((0,g.addDisposableDomListener)(this.element,"mousedown",R=>{R.button===2&&(0,c.rightClickHandler)(R,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)})):this.register((0,g.addDisposableDomListener)(this.element,"contextmenu",R=>{(0,c.rightClickHandler)(R,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)})),T.isLinux&&this.register((0,g.addDisposableDomListener)(this.element,"auxclick",R=>{R.button===1&&(0,c.moveTextAreaUnderMouseCursor)(R,this.textarea,this.screenElement)}))}_bindKeys(){this.register((0,g.addDisposableDomListener)(this.textarea,"keyup",S=>this._keyUp(S),!0)),this.register((0,g.addDisposableDomListener)(this.textarea,"keydown",S=>this._keyDown(S),!0)),this.register((0,g.addDisposableDomListener)(this.textarea,"keypress",S=>this._keyPress(S),!0)),this.register((0,g.addDisposableDomListener)(this.textarea,"compositionstart",()=>this._compositionHelper.compositionstart())),this.register((0,g.addDisposableDomListener)(this.textarea,"compositionupdate",S=>this._compositionHelper.compositionupdate(S))),this.register((0,g.addDisposableDomListener)(this.textarea,"compositionend",()=>this._compositionHelper.compositionend())),this.register((0,g.addDisposableDomListener)(this.textarea,"input",S=>this._inputEvent(S),!0)),this.register(this.onRender(()=>this._compositionHelper.updateCompositionElements()))}open(S){var R;if(!S)throw new Error("Terminal requires a parent element.");S.isConnected||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=S.ownerDocument,this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),S.appendChild(this.element);const B=U.createDocumentFragment();this._viewportElement=U.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),B.appendChild(this._viewportElement),this._viewportScrollArea=U.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=U.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=U.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),B.appendChild(this.screenElement),this.textarea=U.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",h.promptLabel),T.isChromeOS||this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this._coreBrowserService=this._instantiationService.createInstance(d.CoreBrowserService,this.textarea,(R=this._document.defaultView)!==null&&R!==void 0?R:window),this._instantiationService.setService(v.ICoreBrowserService,this._coreBrowserService),this.register((0,g.addDisposableDomListener)(this.textarea,"focus",A=>this._handleTextAreaFocus(A))),this.register((0,g.addDisposableDomListener)(this.textarea,"blur",()=>this._handleTextAreaBlur())),this._helperContainer.appendChild(this.textarea),this._charSizeService=this._instantiationService.createInstance(s.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(v.ICharSizeService,this._charSizeService),this._themeService=this._instantiationService.createInstance(w.ThemeService),this._instantiationService.setService(v.IThemeService,this._themeService),this._characterJoinerService=this._instantiationService.createInstance(a.CharacterJoinerService),this._instantiationService.setService(v.ICharacterJoinerService,this._characterJoinerService),this._renderService=this.register(this._instantiationService.createInstance(m.RenderService,this.rows,this.screenElement)),this._instantiationService.setService(v.IRenderService,this._renderService),this.register(this._renderService.onRenderedViewportChange(A=>this._onRender.fire(A))),this.onResize(A=>this._renderService.resize(A.cols,A.rows)),this._compositionView=U.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(i.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(B);try{this._onWillOpen.fire(this.element)}catch{}this._renderService.hasRenderer()||this._renderService.setRenderer(this._createRenderer()),this._mouseService=this._instantiationService.createInstance(p.MouseService),this._instantiationService.setService(v.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(f.Viewport,this._viewportElement,this._viewportScrollArea),this.viewport.onRequestScrollLines(A=>this.scrollLines(A.amount,A.suppressScrollEvent,1)),this.register(this._inputHandler.onRequestSyncScrollBar(()=>this.viewport.syncScrollArea())),this.register(this.viewport),this.register(this.onCursorMove(()=>{this._renderService.handleCursorMove(),this._syncTextArea()})),this.register(this.onResize(()=>this._renderService.handleResize(this.cols,this.rows))),this.register(this.onBlur(()=>this._renderService.handleBlur())),this.register(this.onFocus(()=>this._renderService.handleFocus())),this.register(this._renderService.onDimensionsChange(()=>this.viewport.syncScrollArea())),this._selectionService=this.register(this._instantiationService.createInstance(l.SelectionService,this.element,this.screenElement,this.linkifier2)),this._instantiationService.setService(v.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(A=>this.scrollLines(A.amount,A.suppressScrollEvent))),this.register(this._selectionService.onSelectionChange(()=>this._onSelectionChange.fire())),this.register(this._selectionService.onRequestRedraw(A=>this._renderService.handleSelectionChanged(A.start,A.end,A.columnSelectMode))),this.register(this._selectionService.onLinuxMouseSelection(A=>{this.textarea.value=A,this.textarea.focus(),this.textarea.select()})),this.register(this._onScroll.event(A=>{this.viewport.syncScrollArea(),this._selectionService.refresh()})),this.register((0,g.addDisposableDomListener)(this._viewportElement,"scroll",()=>this._selectionService.refresh())),this.linkifier2.attachToDom(this.screenElement,this._mouseService,this._renderService),this.register(this._instantiationService.createInstance(u.BufferDecorationRenderer,this.screenElement)),this.register((0,g.addDisposableDomListener)(this.element,"mousedown",A=>this._selectionService.handleMouseDown(A))),this.coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager.value=this._instantiationService.createInstance(H.AccessibilityManager,this)),this.register(this.optionsService.onSpecificOptionChange("screenReaderMode",A=>this._handleScreenReaderModeOptionChange(A))),this.options.overviewRulerWidth&&(this._overviewRulerRenderer=this.register(this._instantiationService.createInstance(e.OverviewRulerRenderer,this._viewportElement,this.screenElement))),this.optionsService.onSpecificOptionChange("overviewRulerWidth",A=>{!this._overviewRulerRenderer&&A&&this._viewportElement&&this.screenElement&&(this._overviewRulerRenderer=this.register(this._instantiationService.createInstance(e.OverviewRulerRenderer,this._viewportElement,this.screenElement)))}),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()}_createRenderer(){return this._instantiationService.createInstance(t.DomRenderer,this.element,this.screenElement,this._viewportElement,this.linkifier2)}bindMouse(){const S=this,R=this.element;function B(F){const j=S._mouseService.getMouseReportCoords(F,S.screenElement);if(!j)return!1;let V,X;switch(F.overrideType||F.type){case"mousemove":X=32,F.buttons===void 0?(V=3,F.button!==void 0&&(V=F.button<3?F.button:3)):V=1&F.buttons?0:4&F.buttons?1:2&F.buttons?2:3;break;case"mouseup":X=0,V=F.button<3?F.button:3;break;case"mousedown":X=1,V=F.button<3?F.button:3;break;case"wheel":if(S.viewport.getLinesScrolled(F)===0)return!1;X=F.deltaY<0?0:1,V=4;break;default:return!1}return!(X===void 0||V===void 0||V>4)&&S.coreMouseService.triggerMouseEvent({col:j.col,row:j.row,x:j.x,y:j.y,button:V,action:X,ctrl:F.ctrlKey,alt:F.altKey,shift:F.shiftKey})}const A={mouseup:null,wheel:null,mousedrag:null,mousemove:null},N={mouseup:F=>(B(F),F.buttons||(this._document.removeEventListener("mouseup",A.mouseup),A.mousedrag&&this._document.removeEventListener("mousemove",A.mousedrag)),this.cancel(F)),wheel:F=>(B(F),this.cancel(F,!0)),mousedrag:F=>{F.buttons&&B(F)},mousemove:F=>{F.buttons||B(F)}};this.register(this.coreMouseService.onProtocolChange(F=>{F?(this.optionsService.rawOptions.logLevel==="debug"&&this._logService.debug("Binding to mouse events:",this.coreMouseService.explainEvents(F)),this.element.classList.add("enable-mouse-events"),this._selectionService.disable()):(this._logService.debug("Unbinding from mouse events."),this.element.classList.remove("enable-mouse-events"),this._selectionService.enable()),8&F?A.mousemove||(R.addEventListener("mousemove",N.mousemove),A.mousemove=N.mousemove):(R.removeEventListener("mousemove",A.mousemove),A.mousemove=null),16&F?A.wheel||(R.addEventListener("wheel",N.wheel,{passive:!1}),A.wheel=N.wheel):(R.removeEventListener("wheel",A.wheel),A.wheel=null),2&F?A.mouseup||(R.addEventListener("mouseup",N.mouseup),A.mouseup=N.mouseup):(this._document.removeEventListener("mouseup",A.mouseup),R.removeEventListener("mouseup",A.mouseup),A.mouseup=null),4&F?A.mousedrag||(A.mousedrag=N.mousedrag):(this._document.removeEventListener("mousemove",A.mousedrag),A.mousedrag=null)})),this.coreMouseService.activeProtocol=this.coreMouseService.activeProtocol,this.register((0,g.addDisposableDomListener)(R,"mousedown",F=>{if(F.preventDefault(),this.focus(),this.coreMouseService.areMouseEventsActive&&!this._selectionService.shouldForceSelection(F))return B(F),A.mouseup&&this._document.addEventListener("mouseup",A.mouseup),A.mousedrag&&this._document.addEventListener("mousemove",A.mousedrag),this.cancel(F)})),this.register((0,g.addDisposableDomListener)(R,"wheel",F=>{if(!A.wheel){if(!this.buffer.hasScrollback){const j=this.viewport.getLinesScrolled(F);if(j===0)return;const V=O.C0.ESC+(this.coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(F.deltaY<0?"A":"B");let X="";for(let se=0;se{if(!this.coreMouseService.areMouseEventsActive)return this.viewport.handleTouchStart(F),this.cancel(F)},{passive:!0})),this.register((0,g.addDisposableDomListener)(R,"touchmove",F=>{if(!this.coreMouseService.areMouseEventsActive)return this.viewport.handleTouchMove(F)?void 0:this.cancel(F)},{passive:!1}))}refresh(S,R){var B;(B=this._renderService)===null||B===void 0||B.refreshRows(S,R)}updateCursorStyle(S){var R;!((R=this._selectionService)===null||R===void 0)&&R.shouldColumnSelect(S)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")}_showCursor(){this.coreService.isCursorInitialized||(this.coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))}scrollLines(S,R,B=0){var A;B===1?(super.scrollLines(S,R,B),this.refresh(0,this.rows-1)):(A=this.viewport)===null||A===void 0||A.scrollLines(S)}paste(S){(0,c.paste)(S,this.textarea,this.coreService,this.optionsService)}attachCustomKeyEventHandler(S){this._customKeyEventHandler=S}registerLinkProvider(S){return this.linkifier2.registerLinkProvider(S)}registerCharacterJoiner(S){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");const R=this._characterJoinerService.register(S);return this.refresh(0,this.rows-1),R}deregisterCharacterJoiner(S){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");this._characterJoinerService.deregister(S)&&this.refresh(0,this.rows-1)}get markers(){return this.buffer.markers}registerMarker(S){return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+S)}registerDecoration(S){return this._decorationService.registerDecoration(S)}hasSelection(){return!!this._selectionService&&this._selectionService.hasSelection}select(S,R,B){this._selectionService.setSelection(S,R,B)}getSelection(){return this._selectionService?this._selectionService.selectionText:""}getSelectionPosition(){if(this._selectionService&&this._selectionService.hasSelection)return{start:{x:this._selectionService.selectionStart[0],y:this._selectionService.selectionStart[1]},end:{x:this._selectionService.selectionEnd[0],y:this._selectionService.selectionEnd[1]}}}clearSelection(){var S;(S=this._selectionService)===null||S===void 0||S.clearSelection()}selectAll(){var S;(S=this._selectionService)===null||S===void 0||S.selectAll()}selectLines(S,R){var B;(B=this._selectionService)===null||B===void 0||B.selectLines(S,R)}_keyDown(S){if(this._keyDownHandled=!1,this._keyDownSeen=!0,this._customKeyEventHandler&&this._customKeyEventHandler(S)===!1)return!1;const R=this.browser.isMac&&this.options.macOptionIsMeta&&S.altKey;if(!R&&!this._compositionHelper.keydown(S))return this.options.scrollOnUserInput&&this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;R||S.key!=="Dead"&&S.key!=="AltGraph"||(this._unprocessedDeadKey=!0);const B=(0,C.evaluateKeyboardEvent)(S,this.coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(S),B.type===3||B.type===2){const A=this.rows-1;return this.scrollLines(B.type===2?-A:A),this.cancel(S,!0)}return B.type===1&&this.selectAll(),!!this._isThirdLevelShift(this.browser,S)||(B.cancel&&this.cancel(S,!0),!B.key||!!(S.key&&!S.ctrlKey&&!S.altKey&&!S.metaKey&&S.key.length===1&&S.key.charCodeAt(0)>=65&&S.key.charCodeAt(0)<=90)||(this._unprocessedDeadKey?(this._unprocessedDeadKey=!1,!0):(B.key!==O.C0.ETX&&B.key!==O.C0.CR||(this.textarea.value=""),this._onKey.fire({key:B.key,domEvent:S}),this._showCursor(),this.coreService.triggerDataEvent(B.key,!0),!this.optionsService.rawOptions.screenReaderMode||S.altKey||S.ctrlKey?this.cancel(S,!0):void(this._keyDownHandled=!0))))}_isThirdLevelShift(S,R){const B=S.isMac&&!this.options.macOptionIsMeta&&R.altKey&&!R.ctrlKey&&!R.metaKey||S.isWindows&&R.altKey&&R.ctrlKey&&!R.metaKey||S.isWindows&&R.getModifierState("AltGraph");return R.type==="keypress"?B:B&&(!R.keyCode||R.keyCode>47)}_keyUp(S){this._keyDownSeen=!1,this._customKeyEventHandler&&this._customKeyEventHandler(S)===!1||(function(R){return R.keyCode===16||R.keyCode===17||R.keyCode===18}(S)||this.focus(),this.updateCursorStyle(S),this._keyPressHandled=!1)}_keyPress(S){let R;if(this._keyPressHandled=!1,this._keyDownHandled||this._customKeyEventHandler&&this._customKeyEventHandler(S)===!1)return!1;if(this.cancel(S),S.charCode)R=S.charCode;else if(S.which===null||S.which===void 0)R=S.keyCode;else{if(S.which===0||S.charCode===0)return!1;R=S.which}return!(!R||(S.altKey||S.ctrlKey||S.metaKey)&&!this._isThirdLevelShift(this.browser,S)||(R=String.fromCharCode(R),this._onKey.fire({key:R,domEvent:S}),this._showCursor(),this.coreService.triggerDataEvent(R,!0),this._keyPressHandled=!0,this._unprocessedDeadKey=!1,0))}_inputEvent(S){if(S.data&&S.inputType==="insertText"&&(!S.composed||!this._keyDownSeen)&&!this.optionsService.rawOptions.screenReaderMode){if(this._keyPressHandled)return!1;this._unprocessedDeadKey=!1;const R=S.data;return this.coreService.triggerDataEvent(R,!0),this.cancel(S),!0}return!1}resize(S,R){S!==this.cols||R!==this.rows?super.resize(S,R):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()}_afterResize(S,R){var B,A;(B=this._charSizeService)===null||B===void 0||B.measure(),(A=this.viewport)===null||A===void 0||A.syncScrollArea(!0)}clear(){var S;if(this.buffer.ybase!==0||this.buffer.y!==0){this.buffer.clearAllMarkers(),this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(let R=1;R{Object.defineProperty(r,"__esModule",{value:!0}),r.TimeBasedDebouncer=void 0,r.TimeBasedDebouncer=class{constructor(o,c=1e3){this._renderCallback=o,this._debounceThresholdMS=c,this._lastRefreshMs=0,this._additionalRefreshRequested=!1}dispose(){this._refreshTimeoutID&&clearTimeout(this._refreshTimeoutID)}refresh(o,c,g){this._rowCount=g,o=o!==void 0?o:0,c=c!==void 0?c:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,o):o,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,c):c;const n=Date.now();if(n-this._lastRefreshMs>=this._debounceThresholdMS)this._lastRefreshMs=n,this._innerRefresh();else if(!this._additionalRefreshRequested){const h=n-this._lastRefreshMs,_=this._debounceThresholdMS-h;this._additionalRefreshRequested=!0,this._refreshTimeoutID=window.setTimeout(()=>{this._lastRefreshMs=Date.now(),this._innerRefresh(),this._additionalRefreshRequested=!1,this._refreshTimeoutID=void 0},_)}}_innerRefresh(){if(this._rowStart===void 0||this._rowEnd===void 0||this._rowCount===void 0)return;const o=Math.max(this._rowStart,0),c=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(o,c)}}},1680:function(M,r,o){var c=this&&this.__decorate||function(i,t,s,a){var d,p=arguments.length,m=p<3?t:a===null?a=Object.getOwnPropertyDescriptor(t,s):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(i,t,s,a);else for(var l=i.length-1;l>=0;l--)(d=i[l])&&(m=(p<3?d(m):p>3?d(t,s,m):d(t,s))||m);return p>3&&m&&Object.defineProperty(t,s,m),m},g=this&&this.__param||function(i,t){return function(s,a){t(s,a,i)}};Object.defineProperty(r,"__esModule",{value:!0}),r.Viewport=void 0;const n=o(3656),h=o(4725),_=o(8460),f=o(844),u=o(2585);let e=r.Viewport=class extends f.Disposable{constructor(i,t,s,a,d,p,m,l){super(),this._viewportElement=i,this._scrollArea=t,this._bufferService=s,this._optionsService=a,this._charSizeService=d,this._renderService=p,this._coreBrowserService=m,this.scrollBarWidth=0,this._currentRowHeight=0,this._currentDeviceCellHeight=0,this._lastRecordedBufferLength=0,this._lastRecordedViewportHeight=0,this._lastRecordedBufferHeight=0,this._lastTouchY=0,this._lastScrollTop=0,this._wheelPartialScroll=0,this._refreshAnimationFrame=null,this._ignoreNextScrollEvent=!1,this._smoothScrollState={startTime:0,origin:-1,target:-1},this._onRequestScrollLines=this.register(new _.EventEmitter),this.onRequestScrollLines=this._onRequestScrollLines.event,this.scrollBarWidth=this._viewportElement.offsetWidth-this._scrollArea.offsetWidth||15,this.register((0,n.addDisposableDomListener)(this._viewportElement,"scroll",this._handleScroll.bind(this))),this._activeBuffer=this._bufferService.buffer,this.register(this._bufferService.buffers.onBufferActivate(v=>this._activeBuffer=v.activeBuffer)),this._renderDimensions=this._renderService.dimensions,this.register(this._renderService.onDimensionsChange(v=>this._renderDimensions=v)),this._handleThemeChange(l.colors),this.register(l.onChangeColors(v=>this._handleThemeChange(v))),this.register(this._optionsService.onSpecificOptionChange("scrollback",()=>this.syncScrollArea())),setTimeout(()=>this.syncScrollArea())}_handleThemeChange(i){this._viewportElement.style.backgroundColor=i.background.css}reset(){this._currentRowHeight=0,this._currentDeviceCellHeight=0,this._lastRecordedBufferLength=0,this._lastRecordedViewportHeight=0,this._lastRecordedBufferHeight=0,this._lastTouchY=0,this._lastScrollTop=0,this._coreBrowserService.window.requestAnimationFrame(()=>this.syncScrollArea())}_refresh(i){if(i)return this._innerRefresh(),void(this._refreshAnimationFrame!==null&&this._coreBrowserService.window.cancelAnimationFrame(this._refreshAnimationFrame));this._refreshAnimationFrame===null&&(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>this._innerRefresh()))}_innerRefresh(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.device.cell.height/this._coreBrowserService.dpr,this._currentDeviceCellHeight=this._renderService.dimensions.device.cell.height,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;const t=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.css.canvas.height);this._lastRecordedBufferHeight!==t&&(this._lastRecordedBufferHeight=t,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}const i=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==i&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=i),this._refreshAnimationFrame=null}syncScrollArea(i=!1){if(this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(i);this._lastRecordedViewportHeight===this._renderService.dimensions.css.canvas.height&&this._lastScrollTop===this._activeBuffer.ydisp*this._currentRowHeight&&this._renderDimensions.device.cell.height===this._currentDeviceCellHeight||this._refresh(i)}_handleScroll(i){if(this._lastScrollTop=this._viewportElement.scrollTop,!this._viewportElement.offsetParent)return;if(this._ignoreNextScrollEvent)return this._ignoreNextScrollEvent=!1,void this._onRequestScrollLines.fire({amount:0,suppressScrollEvent:!0});const t=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._onRequestScrollLines.fire({amount:t,suppressScrollEvent:!0})}_smoothScroll(){if(this._isDisposed||this._smoothScrollState.origin===-1||this._smoothScrollState.target===-1)return;const i=this._smoothScrollPercent();this._viewportElement.scrollTop=this._smoothScrollState.origin+Math.round(i*(this._smoothScrollState.target-this._smoothScrollState.origin)),i<1?this._coreBrowserService.window.requestAnimationFrame(()=>this._smoothScroll()):this._clearSmoothScrollState()}_smoothScrollPercent(){return this._optionsService.rawOptions.smoothScrollDuration&&this._smoothScrollState.startTime?Math.max(Math.min((Date.now()-this._smoothScrollState.startTime)/this._optionsService.rawOptions.smoothScrollDuration,1),0):1}_clearSmoothScrollState(){this._smoothScrollState.startTime=0,this._smoothScrollState.origin=-1,this._smoothScrollState.target=-1}_bubbleScroll(i,t){const s=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(t<0&&this._viewportElement.scrollTop!==0||t>0&&s0&&(a=b),d=""}}return{bufferElements:p,cursorElement:a}}getLinesScrolled(i){if(i.deltaY===0||i.shiftKey)return 0;let t=this._applyScrollModifier(i.deltaY,i);return i.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(t/=this._currentRowHeight+0,this._wheelPartialScroll+=t,t=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):i.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._bufferService.rows),t}_applyScrollModifier(i,t){const s=this._optionsService.rawOptions.fastScrollModifier;return s==="alt"&&t.altKey||s==="ctrl"&&t.ctrlKey||s==="shift"&&t.shiftKey?i*this._optionsService.rawOptions.fastScrollSensitivity*this._optionsService.rawOptions.scrollSensitivity:i*this._optionsService.rawOptions.scrollSensitivity}handleTouchStart(i){this._lastTouchY=i.touches[0].pageY}handleTouchMove(i){const t=this._lastTouchY-i.touches[0].pageY;return this._lastTouchY=i.touches[0].pageY,t!==0&&(this._viewportElement.scrollTop+=t,this._bubbleScroll(i,t))}};r.Viewport=e=c([g(2,u.IBufferService),g(3,u.IOptionsService),g(4,h.ICharSizeService),g(5,h.IRenderService),g(6,h.ICoreBrowserService),g(7,h.IThemeService)],e)},3107:function(M,r,o){var c=this&&this.__decorate||function(e,i,t,s){var a,d=arguments.length,p=d<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,t):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")p=Reflect.decorate(e,i,t,s);else for(var m=e.length-1;m>=0;m--)(a=e[m])&&(p=(d<3?a(p):d>3?a(i,t,p):a(i,t))||p);return d>3&&p&&Object.defineProperty(i,t,p),p},g=this&&this.__param||function(e,i){return function(t,s){i(t,s,e)}};Object.defineProperty(r,"__esModule",{value:!0}),r.BufferDecorationRenderer=void 0;const n=o(3656),h=o(4725),_=o(844),f=o(2585);let u=r.BufferDecorationRenderer=class extends _.Disposable{constructor(e,i,t,s){super(),this._screenElement=e,this._bufferService=i,this._decorationService=t,this._renderService=s,this._decorationElements=new Map,this._altBufferIsActive=!1,this._dimensionsChanged=!1,this._container=document.createElement("div"),this._container.classList.add("xterm-decoration-container"),this._screenElement.appendChild(this._container),this.register(this._renderService.onRenderedViewportChange(()=>this._doRefreshDecorations())),this.register(this._renderService.onDimensionsChange(()=>{this._dimensionsChanged=!0,this._queueRefresh()})),this.register((0,n.addDisposableDomListener)(window,"resize",()=>this._queueRefresh())),this.register(this._bufferService.buffers.onBufferActivate(()=>{this._altBufferIsActive=this._bufferService.buffer===this._bufferService.buffers.alt})),this.register(this._decorationService.onDecorationRegistered(()=>this._queueRefresh())),this.register(this._decorationService.onDecorationRemoved(a=>this._removeDecoration(a))),this.register((0,_.toDisposable)(()=>{this._container.remove(),this._decorationElements.clear()}))}_queueRefresh(){this._animationFrame===void 0&&(this._animationFrame=this._renderService.addRefreshCallback(()=>{this._doRefreshDecorations(),this._animationFrame=void 0}))}_doRefreshDecorations(){for(const e of this._decorationService.decorations)this._renderDecoration(e);this._dimensionsChanged=!1}_renderDecoration(e){this._refreshStyle(e),this._dimensionsChanged&&this._refreshXPosition(e)}_createElement(e){var i,t;const s=document.createElement("div");s.classList.add("xterm-decoration"),s.classList.toggle("xterm-decoration-top-layer",((i=e==null?void 0:e.options)===null||i===void 0?void 0:i.layer)==="top"),s.style.width=`${Math.round((e.options.width||1)*this._renderService.dimensions.css.cell.width)}px`,s.style.height=(e.options.height||1)*this._renderService.dimensions.css.cell.height+"px",s.style.top=(e.marker.line-this._bufferService.buffers.active.ydisp)*this._renderService.dimensions.css.cell.height+"px",s.style.lineHeight=`${this._renderService.dimensions.css.cell.height}px`;const a=(t=e.options.x)!==null&&t!==void 0?t:0;return a&&a>this._bufferService.cols&&(s.style.display="none"),this._refreshXPosition(e,s),s}_refreshStyle(e){const i=e.marker.line-this._bufferService.buffers.active.ydisp;if(i<0||i>=this._bufferService.rows)e.element&&(e.element.style.display="none",e.onRenderEmitter.fire(e.element));else{let t=this._decorationElements.get(e);t||(t=this._createElement(e),e.element=t,this._decorationElements.set(e,t),this._container.appendChild(t),e.onDispose(()=>{this._decorationElements.delete(e),t.remove()})),t.style.top=i*this._renderService.dimensions.css.cell.height+"px",t.style.display=this._altBufferIsActive?"none":"block",e.onRenderEmitter.fire(t)}}_refreshXPosition(e,i=e.element){var t;if(!i)return;const s=(t=e.options.x)!==null&&t!==void 0?t:0;(e.options.anchor||"left")==="right"?i.style.right=s?s*this._renderService.dimensions.css.cell.width+"px":"":i.style.left=s?s*this._renderService.dimensions.css.cell.width+"px":""}_removeDecoration(e){var i;(i=this._decorationElements.get(e))===null||i===void 0||i.remove(),this._decorationElements.delete(e),e.dispose()}};r.BufferDecorationRenderer=u=c([g(1,f.IBufferService),g(2,f.IDecorationService),g(3,h.IRenderService)],u)},5871:(M,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.ColorZoneStore=void 0,r.ColorZoneStore=class{constructor(){this._zones=[],this._zonePool=[],this._zonePoolIndex=0,this._linePadding={full:0,left:0,center:0,right:0}}get zones(){return this._zonePool.length=Math.min(this._zonePool.length,this._zones.length),this._zones}clear(){this._zones.length=0,this._zonePoolIndex=0}addDecoration(o){if(o.options.overviewRulerOptions){for(const c of this._zones)if(c.color===o.options.overviewRulerOptions.color&&c.position===o.options.overviewRulerOptions.position){if(this._lineIntersectsZone(c,o.marker.line))return;if(this._lineAdjacentToZone(c,o.marker.line,o.options.overviewRulerOptions.position))return void this._addLineToZone(c,o.marker.line)}if(this._zonePoolIndex=o.startBufferLine&&c<=o.endBufferLine}_lineAdjacentToZone(o,c,g){return c>=o.startBufferLine-this._linePadding[g||"full"]&&c<=o.endBufferLine+this._linePadding[g||"full"]}_addLineToZone(o,c){o.startBufferLine=Math.min(o.startBufferLine,c),o.endBufferLine=Math.max(o.endBufferLine,c)}}},5744:function(M,r,o){var c=this&&this.__decorate||function(a,d,p,m){var l,v=arguments.length,w=v<3?d:m===null?m=Object.getOwnPropertyDescriptor(d,p):m;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(a,d,p,m);else for(var L=a.length-1;L>=0;L--)(l=a[L])&&(w=(v<3?l(w):v>3?l(d,p,w):l(d,p))||w);return v>3&&w&&Object.defineProperty(d,p,w),w},g=this&&this.__param||function(a,d){return function(p,m){d(p,m,a)}};Object.defineProperty(r,"__esModule",{value:!0}),r.OverviewRulerRenderer=void 0;const n=o(5871),h=o(3656),_=o(4725),f=o(844),u=o(2585),e={full:0,left:0,center:0,right:0},i={full:0,left:0,center:0,right:0},t={full:0,left:0,center:0,right:0};let s=r.OverviewRulerRenderer=class extends f.Disposable{get _width(){return this._optionsService.options.overviewRulerWidth||0}constructor(a,d,p,m,l,v,w){var L;super(),this._viewportElement=a,this._screenElement=d,this._bufferService=p,this._decorationService=m,this._renderService=l,this._optionsService=v,this._coreBrowseService=w,this._colorZoneStore=new n.ColorZoneStore,this._shouldUpdateDimensions=!0,this._shouldUpdateAnchor=!0,this._lastKnownBufferLength=0,this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-decoration-overview-ruler"),this._refreshCanvasDimensions(),(L=this._viewportElement.parentElement)===null||L===void 0||L.insertBefore(this._canvas,this._viewportElement);const b=this._canvas.getContext("2d");if(!b)throw new Error("Ctx cannot be null");this._ctx=b,this._registerDecorationListeners(),this._registerBufferChangeListeners(),this._registerDimensionChangeListeners(),this.register((0,f.toDisposable)(()=>{var E;(E=this._canvas)===null||E===void 0||E.remove()}))}_registerDecorationListeners(){this.register(this._decorationService.onDecorationRegistered(()=>this._queueRefresh(void 0,!0))),this.register(this._decorationService.onDecorationRemoved(()=>this._queueRefresh(void 0,!0)))}_registerBufferChangeListeners(){this.register(this._renderService.onRenderedViewportChange(()=>this._queueRefresh())),this.register(this._bufferService.buffers.onBufferActivate(()=>{this._canvas.style.display=this._bufferService.buffer===this._bufferService.buffers.alt?"none":"block"})),this.register(this._bufferService.onScroll(()=>{this._lastKnownBufferLength!==this._bufferService.buffers.normal.lines.length&&(this._refreshDrawHeightConstants(),this._refreshColorZonePadding())}))}_registerDimensionChangeListeners(){this.register(this._renderService.onRender(()=>{this._containerHeight&&this._containerHeight===this._screenElement.clientHeight||(this._queueRefresh(!0),this._containerHeight=this._screenElement.clientHeight)})),this.register(this._optionsService.onSpecificOptionChange("overviewRulerWidth",()=>this._queueRefresh(!0))),this.register((0,h.addDisposableDomListener)(this._coreBrowseService.window,"resize",()=>this._queueRefresh(!0))),this._queueRefresh(!0)}_refreshDrawConstants(){const a=Math.floor(this._canvas.width/3),d=Math.ceil(this._canvas.width/3);i.full=this._canvas.width,i.left=a,i.center=d,i.right=a,this._refreshDrawHeightConstants(),t.full=0,t.left=0,t.center=i.left,t.right=i.left+i.center}_refreshDrawHeightConstants(){e.full=Math.round(2*this._coreBrowseService.dpr);const a=this._canvas.height/this._bufferService.buffer.lines.length,d=Math.round(Math.max(Math.min(a,12),6)*this._coreBrowseService.dpr);e.left=d,e.center=d,e.right=d}_refreshColorZonePadding(){this._colorZoneStore.setPadding({full:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*e.full),left:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*e.left),center:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*e.center),right:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*e.right)}),this._lastKnownBufferLength=this._bufferService.buffers.normal.lines.length}_refreshCanvasDimensions(){this._canvas.style.width=`${this._width}px`,this._canvas.width=Math.round(this._width*this._coreBrowseService.dpr),this._canvas.style.height=`${this._screenElement.clientHeight}px`,this._canvas.height=Math.round(this._screenElement.clientHeight*this._coreBrowseService.dpr),this._refreshDrawConstants(),this._refreshColorZonePadding()}_refreshDecorations(){this._shouldUpdateDimensions&&this._refreshCanvasDimensions(),this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height),this._colorZoneStore.clear();for(const d of this._decorationService.decorations)this._colorZoneStore.addDecoration(d);this._ctx.lineWidth=1;const a=this._colorZoneStore.zones;for(const d of a)d.position!=="full"&&this._renderColorZone(d);for(const d of a)d.position==="full"&&this._renderColorZone(d);this._shouldUpdateDimensions=!1,this._shouldUpdateAnchor=!1}_renderColorZone(a){this._ctx.fillStyle=a.color,this._ctx.fillRect(t[a.position||"full"],Math.round((this._canvas.height-1)*(a.startBufferLine/this._bufferService.buffers.active.lines.length)-e[a.position||"full"]/2),i[a.position||"full"],Math.round((this._canvas.height-1)*((a.endBufferLine-a.startBufferLine)/this._bufferService.buffers.active.lines.length)+e[a.position||"full"]))}_queueRefresh(a,d){this._shouldUpdateDimensions=a||this._shouldUpdateDimensions,this._shouldUpdateAnchor=d||this._shouldUpdateAnchor,this._animationFrame===void 0&&(this._animationFrame=this._coreBrowseService.window.requestAnimationFrame(()=>{this._refreshDecorations(),this._animationFrame=void 0}))}};r.OverviewRulerRenderer=s=c([g(2,u.IBufferService),g(3,u.IDecorationService),g(4,_.IRenderService),g(5,u.IOptionsService),g(6,_.ICoreBrowserService)],s)},2950:function(M,r,o){var c=this&&this.__decorate||function(u,e,i,t){var s,a=arguments.length,d=a<3?e:t===null?t=Object.getOwnPropertyDescriptor(e,i):t;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(u,e,i,t);else for(var p=u.length-1;p>=0;p--)(s=u[p])&&(d=(a<3?s(d):a>3?s(e,i,d):s(e,i))||d);return a>3&&d&&Object.defineProperty(e,i,d),d},g=this&&this.__param||function(u,e){return function(i,t){e(i,t,u)}};Object.defineProperty(r,"__esModule",{value:!0}),r.CompositionHelper=void 0;const n=o(4725),h=o(2585),_=o(2584);let f=r.CompositionHelper=class{get isComposing(){return this._isComposing}constructor(u,e,i,t,s,a){this._textarea=u,this._compositionView=e,this._bufferService=i,this._optionsService=t,this._coreService=s,this._renderService=a,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0},this._dataAlreadySent=""}compositionstart(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._dataAlreadySent="",this._compositionView.classList.add("active")}compositionupdate(u){this._compositionView.textContent=u.data,this.updateCompositionElements(),setTimeout(()=>{this._compositionPosition.end=this._textarea.value.length},0)}compositionend(){this._finalizeComposition(!0)}keydown(u){if(this._isComposing||this._isSendingComposition){if(u.keyCode===229||u.keyCode===16||u.keyCode===17||u.keyCode===18)return!1;this._finalizeComposition(!1)}return u.keyCode!==229||(this._handleAnyTextareaChanges(),!1)}_finalizeComposition(u){if(this._compositionView.classList.remove("active"),this._isComposing=!1,u){const e={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(()=>{if(this._isSendingComposition){let i;this._isSendingComposition=!1,e.start+=this._dataAlreadySent.length,i=this._isComposing?this._textarea.value.substring(e.start,e.end):this._textarea.value.substring(e.start),i.length>0&&this._coreService.triggerDataEvent(i,!0)}},0)}else{this._isSendingComposition=!1;const e=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(e,!0)}}_handleAnyTextareaChanges(){const u=this._textarea.value;setTimeout(()=>{if(!this._isComposing){const e=this._textarea.value,i=e.replace(u,"");this._dataAlreadySent=i,e.length>u.length?this._coreService.triggerDataEvent(i,!0):e.lengththis.updateCompositionElements(!0),0)}}};r.CompositionHelper=f=c([g(2,h.IBufferService),g(3,h.IOptionsService),g(4,h.ICoreService),g(5,n.IRenderService)],f)},9806:(M,r)=>{function o(c,g,n){const h=n.getBoundingClientRect(),_=c.getComputedStyle(n),f=parseInt(_.getPropertyValue("padding-left")),u=parseInt(_.getPropertyValue("padding-top"));return[g.clientX-h.left-f,g.clientY-h.top-u]}Object.defineProperty(r,"__esModule",{value:!0}),r.getCoords=r.getCoordsRelativeToElement=void 0,r.getCoordsRelativeToElement=o,r.getCoords=function(c,g,n,h,_,f,u,e,i){if(!f)return;const t=o(c,g,n);return t?(t[0]=Math.ceil((t[0]+(i?u/2:0))/u),t[1]=Math.ceil(t[1]/e),t[0]=Math.min(Math.max(t[0],1),h+(i?1:0)),t[1]=Math.min(Math.max(t[1],1),_),t):void 0}},9504:(M,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.moveToCellSequence=void 0;const c=o(2584);function g(e,i,t,s){const a=e-n(e,t),d=i-n(i,t),p=Math.abs(a-d)-function(m,l,v){let w=0;const L=m-n(m,v),b=l-n(l,v);for(let E=0;E=0&&ei?"A":"B"}function _(e,i,t,s,a,d){let p=e,m=i,l="";for(;p!==t||m!==s;)p+=a?1:-1,a&&p>d.cols-1?(l+=d.buffer.translateBufferLineToString(m,!1,e,p),p=0,e=0,m++):!a&&p<0&&(l+=d.buffer.translateBufferLineToString(m,!1,0,e+1),p=d.cols-1,e=p,m--);return l+d.buffer.translateBufferLineToString(m,!1,e,p)}function f(e,i){const t=i?"O":"[";return c.C0.ESC+t+e}function u(e,i){e=Math.floor(e);let t="";for(let s=0;s0?L-n(L,b):v;const T=L,P=function(O,C,y,k,D,I){let H;return H=g(y,k,D,I).length>0?k-n(k,D):C,O=y&&He?"D":"C",u(Math.abs(a-e),f(p,s));p=d>i?"D":"C";const m=Math.abs(d-i);return u(function(l,v){return v.cols-l}(d>i?e:a,t)+(m-1)*t.cols+1+((d>i?a:e)-1),f(p,s))}},1296:function(M,r,o){var c=this&&this.__decorate||function(b,E,x,T){var P,O=arguments.length,C=O<3?E:T===null?T=Object.getOwnPropertyDescriptor(E,x):T;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(b,E,x,T);else for(var y=b.length-1;y>=0;y--)(P=b[y])&&(C=(O<3?P(C):O>3?P(E,x,C):P(E,x))||C);return O>3&&C&&Object.defineProperty(E,x,C),C},g=this&&this.__param||function(b,E){return function(x,T){E(x,T,b)}};Object.defineProperty(r,"__esModule",{value:!0}),r.DomRenderer=void 0;const n=o(3787),h=o(2550),_=o(2223),f=o(6171),u=o(4725),e=o(8055),i=o(8460),t=o(844),s=o(2585),a="xterm-dom-renderer-owner-",d="xterm-rows",p="xterm-fg-",m="xterm-bg-",l="xterm-focus",v="xterm-selection";let w=1,L=r.DomRenderer=class extends t.Disposable{constructor(b,E,x,T,P,O,C,y,k,D){super(),this._element=b,this._screenElement=E,this._viewportElement=x,this._linkifier2=T,this._charSizeService=O,this._optionsService=C,this._bufferService=y,this._coreBrowserService=k,this._themeService=D,this._terminalClass=w++,this._rowElements=[],this.onRequestRedraw=this.register(new i.EventEmitter).event,this._rowContainer=document.createElement("div"),this._rowContainer.classList.add(d),this._rowContainer.style.lineHeight="normal",this._rowContainer.setAttribute("aria-hidden","true"),this._refreshRowElements(this._bufferService.cols,this._bufferService.rows),this._selectionContainer=document.createElement("div"),this._selectionContainer.classList.add(v),this._selectionContainer.setAttribute("aria-hidden","true"),this.dimensions=(0,f.createRenderDimensions)(),this._updateDimensions(),this.register(this._optionsService.onOptionChange(()=>this._handleOptionsChanged())),this.register(this._themeService.onChangeColors(I=>this._injectCss(I))),this._injectCss(this._themeService.colors),this._rowFactory=P.createInstance(n.DomRendererRowFactory,document),this._element.classList.add(a+this._terminalClass),this._screenElement.appendChild(this._rowContainer),this._screenElement.appendChild(this._selectionContainer),this.register(this._linkifier2.onShowLinkUnderline(I=>this._handleLinkHover(I))),this.register(this._linkifier2.onHideLinkUnderline(I=>this._handleLinkLeave(I))),this.register((0,t.toDisposable)(()=>{this._element.classList.remove(a+this._terminalClass),this._rowContainer.remove(),this._selectionContainer.remove(),this._widthCache.dispose(),this._themeStyleElement.remove(),this._dimensionsStyleElement.remove()})),this._widthCache=new h.WidthCache(document),this._widthCache.setFont(this._optionsService.rawOptions.fontFamily,this._optionsService.rawOptions.fontSize,this._optionsService.rawOptions.fontWeight,this._optionsService.rawOptions.fontWeightBold),this._setDefaultSpacing()}_updateDimensions(){const b=this._coreBrowserService.dpr;this.dimensions.device.char.width=this._charSizeService.width*b,this.dimensions.device.char.height=Math.ceil(this._charSizeService.height*b),this.dimensions.device.cell.width=this.dimensions.device.char.width+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.device.cell.height=Math.floor(this.dimensions.device.char.height*this._optionsService.rawOptions.lineHeight),this.dimensions.device.char.left=0,this.dimensions.device.char.top=0,this.dimensions.device.canvas.width=this.dimensions.device.cell.width*this._bufferService.cols,this.dimensions.device.canvas.height=this.dimensions.device.cell.height*this._bufferService.rows,this.dimensions.css.canvas.width=Math.round(this.dimensions.device.canvas.width/b),this.dimensions.css.canvas.height=Math.round(this.dimensions.device.canvas.height/b),this.dimensions.css.cell.width=this.dimensions.css.canvas.width/this._bufferService.cols,this.dimensions.css.cell.height=this.dimensions.css.canvas.height/this._bufferService.rows;for(const x of this._rowElements)x.style.width=`${this.dimensions.css.canvas.width}px`,x.style.height=`${this.dimensions.css.cell.height}px`,x.style.lineHeight=`${this.dimensions.css.cell.height}px`,x.style.overflow="hidden";this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));const E=`${this._terminalSelector} .${d} span { display: inline-block; height: 100%; vertical-align: top;}`;this._dimensionsStyleElement.textContent=E,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=`${this.dimensions.css.canvas.width}px`,this._screenElement.style.height=`${this.dimensions.css.canvas.height}px`}_injectCss(b){this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));let E=`${this._terminalSelector} .${d} { color: ${b.foreground.css}; font-family: ${this._optionsService.rawOptions.fontFamily}; font-size: ${this._optionsService.rawOptions.fontSize}px; font-kerning: none; white-space: pre}`;E+=`${this._terminalSelector} .${d} .xterm-dim { color: ${e.color.multiplyOpacity(b.foreground,.5).css};}`,E+=`${this._terminalSelector} span:not(.xterm-bold) { font-weight: ${this._optionsService.rawOptions.fontWeight};}${this._terminalSelector} span.xterm-bold { font-weight: ${this._optionsService.rawOptions.fontWeightBold};}${this._terminalSelector} span.xterm-italic { font-style: italic;}`,E+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { border-bottom-style: hidden; }}",E+="@keyframes blink_block_"+this._terminalClass+` { 0% { background-color: ${b.cursor.css}; color: ${b.cursorAccent.css}; } 50% { background-color: inherit; color: ${b.cursor.css}; }}`,E+=`${this._terminalSelector} .${d}.${l} .xterm-cursor.xterm-cursor-blink:not(.xterm-cursor-block) { animation: blink_box_shadow_`+this._terminalClass+` 1s step-end infinite;}${this._terminalSelector} .${d}.${l} .xterm-cursor.xterm-cursor-blink.xterm-cursor-block { animation: blink_block_`+this._terminalClass+` 1s step-end infinite;}${this._terminalSelector} .${d} .xterm-cursor.xterm-cursor-block { background-color: ${b.cursor.css}; color: ${b.cursorAccent.css};}${this._terminalSelector} .${d} .xterm-cursor.xterm-cursor-outline { outline: 1px solid ${b.cursor.css}; outline-offset: -1px;}${this._terminalSelector} .${d} .xterm-cursor.xterm-cursor-bar { box-shadow: ${this._optionsService.rawOptions.cursorWidth}px 0 0 ${b.cursor.css} inset;}${this._terminalSelector} .${d} .xterm-cursor.xterm-cursor-underline { border-bottom: 1px ${b.cursor.css}; border-bottom-style: solid; height: calc(100% - 1px);}`,E+=`${this._terminalSelector} .${v} { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}${this._terminalSelector}.focus .${v} div { position: absolute; background-color: ${b.selectionBackgroundOpaque.css};}${this._terminalSelector} .${v} div { position: absolute; background-color: ${b.selectionInactiveBackgroundOpaque.css};}`;for(const[x,T]of b.ansi.entries())E+=`${this._terminalSelector} .${p}${x} { color: ${T.css}; }${this._terminalSelector} .${p}${x}.xterm-dim { color: ${e.color.multiplyOpacity(T,.5).css}; }${this._terminalSelector} .${m}${x} { background-color: ${T.css}; }`;E+=`${this._terminalSelector} .${p}${_.INVERTED_DEFAULT_COLOR} { color: ${e.color.opaque(b.background).css}; }${this._terminalSelector} .${p}${_.INVERTED_DEFAULT_COLOR}.xterm-dim { color: ${e.color.multiplyOpacity(e.color.opaque(b.background),.5).css}; }${this._terminalSelector} .${m}${_.INVERTED_DEFAULT_COLOR} { background-color: ${b.foreground.css}; }`,this._themeStyleElement.textContent=E}_setDefaultSpacing(){const b=this.dimensions.css.cell.width-this._widthCache.get("W",!1,!1);this._rowContainer.style.letterSpacing=`${b}px`,this._rowFactory.defaultSpacing=b}handleDevicePixelRatioChange(){this._updateDimensions(),this._widthCache.clear(),this._setDefaultSpacing()}_refreshRowElements(b,E){for(let x=this._rowElements.length;x<=E;x++){const T=document.createElement("div");this._rowContainer.appendChild(T),this._rowElements.push(T)}for(;this._rowElements.length>E;)this._rowContainer.removeChild(this._rowElements.pop())}handleResize(b,E){this._refreshRowElements(b,E),this._updateDimensions()}handleCharSizeChanged(){this._updateDimensions(),this._widthCache.clear(),this._setDefaultSpacing()}handleBlur(){this._rowContainer.classList.remove(l)}handleFocus(){this._rowContainer.classList.add(l),this.renderRows(this._bufferService.buffer.y,this._bufferService.buffer.y)}handleSelectionChanged(b,E,x){if(this._selectionContainer.replaceChildren(),this._rowFactory.handleSelectionChanged(b,E,x),this.renderRows(0,this._bufferService.rows-1),!b||!E)return;const T=b[1]-this._bufferService.buffer.ydisp,P=E[1]-this._bufferService.buffer.ydisp,O=Math.max(T,0),C=Math.min(P,this._bufferService.rows-1);if(O>=this._bufferService.rows||C<0)return;const y=document.createDocumentFragment();if(x){const k=b[0]>E[0];y.appendChild(this._createSelectionElement(O,k?E[0]:b[0],k?b[0]:E[0],C-O+1))}else{const k=T===O?b[0]:0,D=O===P?E[0]:this._bufferService.cols;y.appendChild(this._createSelectionElement(O,k,D));const I=C-O-1;if(y.appendChild(this._createSelectionElement(O+1,0,this._bufferService.cols,I)),O!==C){const H=P===C?E[0]:this._bufferService.cols;y.appendChild(this._createSelectionElement(C,0,H))}}this._selectionContainer.appendChild(y)}_createSelectionElement(b,E,x,T=1){const P=document.createElement("div");return P.style.height=T*this.dimensions.css.cell.height+"px",P.style.top=b*this.dimensions.css.cell.height+"px",P.style.left=E*this.dimensions.css.cell.width+"px",P.style.width=this.dimensions.css.cell.width*(x-E)+"px",P}handleCursorMove(){}_handleOptionsChanged(){this._updateDimensions(),this._injectCss(this._themeService.colors),this._widthCache.setFont(this._optionsService.rawOptions.fontFamily,this._optionsService.rawOptions.fontSize,this._optionsService.rawOptions.fontWeight,this._optionsService.rawOptions.fontWeightBold),this._setDefaultSpacing()}clear(){for(const b of this._rowElements)b.replaceChildren()}renderRows(b,E){const x=this._bufferService.buffer,T=x.ybase+x.y,P=Math.min(x.x,this._bufferService.cols-1),O=this._optionsService.rawOptions.cursorBlink,C=this._optionsService.rawOptions.cursorStyle,y=this._optionsService.rawOptions.cursorInactiveStyle;for(let k=b;k<=E;k++){const D=k+x.ydisp,I=this._rowElements[k],H=x.lines.get(D);if(!I||!H)break;I.replaceChildren(...this._rowFactory.createRow(H,D,D===T,C,y,P,O,this.dimensions.css.cell.width,this._widthCache,-1,-1))}}get _terminalSelector(){return`.${a}${this._terminalClass}`}_handleLinkHover(b){this._setCellUnderline(b.x1,b.x2,b.y1,b.y2,b.cols,!0)}_handleLinkLeave(b){this._setCellUnderline(b.x1,b.x2,b.y1,b.y2,b.cols,!1)}_setCellUnderline(b,E,x,T,P,O){x<0&&(b=0),T<0&&(E=0);const C=this._bufferService.rows-1;x=Math.max(Math.min(x,C),0),T=Math.max(Math.min(T,C),0),P=Math.min(P,this._bufferService.cols);const y=this._bufferService.buffer,k=y.ybase+y.y,D=Math.min(y.x,P-1),I=this._optionsService.rawOptions.cursorBlink,H=this._optionsService.rawOptions.cursorStyle,U=this._optionsService.rawOptions.cursorInactiveStyle;for(let W=x;W<=T;++W){const K=W+y.ydisp,S=this._rowElements[W],R=y.lines.get(K);if(!S||!R)break;S.replaceChildren(...this._rowFactory.createRow(R,K,K===k,H,U,D,I,this.dimensions.css.cell.width,this._widthCache,O?W===x?b:0:-1,O?(W===T?E:P)-1:-1))}}};r.DomRenderer=L=c([g(4,s.IInstantiationService),g(5,u.ICharSizeService),g(6,s.IOptionsService),g(7,s.IBufferService),g(8,u.ICoreBrowserService),g(9,u.IThemeService)],L)},3787:function(M,r,o){var c=this&&this.__decorate||function(p,m,l,v){var w,L=arguments.length,b=L<3?m:v===null?v=Object.getOwnPropertyDescriptor(m,l):v;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(p,m,l,v);else for(var E=p.length-1;E>=0;E--)(w=p[E])&&(b=(L<3?w(b):L>3?w(m,l,b):w(m,l))||b);return L>3&&b&&Object.defineProperty(m,l,b),b},g=this&&this.__param||function(p,m){return function(l,v){m(l,v,p)}};Object.defineProperty(r,"__esModule",{value:!0}),r.DomRendererRowFactory=void 0;const n=o(2223),h=o(643),_=o(511),f=o(2585),u=o(8055),e=o(4725),i=o(4269),t=o(6171),s=o(3734);let a=r.DomRendererRowFactory=class{constructor(p,m,l,v,w,L,b){this._document=p,this._characterJoinerService=m,this._optionsService=l,this._coreBrowserService=v,this._coreService=w,this._decorationService=L,this._themeService=b,this._workCell=new _.CellData,this._columnSelectMode=!1,this.defaultSpacing=0}handleSelectionChanged(p,m,l){this._selectionStart=p,this._selectionEnd=m,this._columnSelectMode=l}createRow(p,m,l,v,w,L,b,E,x,T,P){const O=[],C=this._characterJoinerService.getJoinedCharacters(m),y=this._themeService.colors;let k,D=p.getNoBgTrimmedLength();l&&D0&&j===C[0][0]){X=!0;const q=C.shift();$=new i.JoinedCellData(this._workCell,p.translateToString(!0,q[0],q[1]),q[1]-q[0]),se=q[1]-1,V=$.getWidth()}const re=this._isCellInSelection(j,m),le=l&&j===L,ce=F&&j>=T&&j<=P;let de=!1;this._decorationService.forEachDecorationAtCell(j,m,void 0,q=>{de=!0});let he=$.getChars()||h.WHITESPACE_CELL_CHAR;if(he===" "&&($.isUnderline()||$.isOverline())&&(he=" "),A=V*E-x.get(he,$.isBold(),$.isItalic()),k){if(I&&(re&&B||!re&&!B&&$.bg===U)&&(re&&B&&y.selectionForeground||$.fg===W)&&$.extended.ext===K&&ce===S&&A===R&&!le&&!X&&!de){H+=he,I++;continue}I&&(k.textContent=H),k=this._document.createElement("span"),I=0,H=""}else k=this._document.createElement("span");if(U=$.bg,W=$.fg,K=$.extended.ext,S=ce,R=A,B=re,X&&L>=j&&L<=se&&(L=j),!this._coreService.isCursorHidden&&le){if(N.push("xterm-cursor"),this._coreBrowserService.isFocused)b&&N.push("xterm-cursor-blink"),N.push(v==="bar"?"xterm-cursor-bar":v==="underline"?"xterm-cursor-underline":"xterm-cursor-block");else if(w)switch(w){case"outline":N.push("xterm-cursor-outline");break;case"block":N.push("xterm-cursor-block");break;case"bar":N.push("xterm-cursor-bar");break;case"underline":N.push("xterm-cursor-underline")}}if($.isBold()&&N.push("xterm-bold"),$.isItalic()&&N.push("xterm-italic"),$.isDim()&&N.push("xterm-dim"),H=$.isInvisible()?h.WHITESPACE_CELL_CHAR:$.getChars()||h.WHITESPACE_CELL_CHAR,$.isUnderline()&&(N.push(`xterm-underline-${$.extended.underlineStyle}`),H===" "&&(H=" "),!$.isUnderlineColorDefault()))if($.isUnderlineColorRGB())k.style.textDecorationColor=`rgb(${s.AttributeData.toColorRGB($.getUnderlineColor()).join(",")})`;else{let q=$.getUnderlineColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&$.isBold()&&q<8&&(q+=8),k.style.textDecorationColor=y.ansi[q].css}$.isOverline()&&(N.push("xterm-overline"),H===" "&&(H=" ")),$.isStrikethrough()&&N.push("xterm-strikethrough"),ce&&(k.style.textDecoration="underline");let J=$.getFgColor(),ne=$.getFgColorMode(),Q=$.getBgColor(),oe=$.getBgColorMode();const ue=!!$.isInverse();if(ue){const q=J;J=Q,Q=q;const we=ne;ne=oe,oe=we}let te,_e,ie,ae=!1;switch(this._decorationService.forEachDecorationAtCell(j,m,void 0,q=>{q.options.layer!=="top"&&ae||(q.backgroundColorRGB&&(oe=50331648,Q=q.backgroundColorRGB.rgba>>8&16777215,te=q.backgroundColorRGB),q.foregroundColorRGB&&(ne=50331648,J=q.foregroundColorRGB.rgba>>8&16777215,_e=q.foregroundColorRGB),ae=q.options.layer==="top")}),!ae&&re&&(te=this._coreBrowserService.isFocused?y.selectionBackgroundOpaque:y.selectionInactiveBackgroundOpaque,Q=te.rgba>>8&16777215,oe=50331648,ae=!0,y.selectionForeground&&(ne=50331648,J=y.selectionForeground.rgba>>8&16777215,_e=y.selectionForeground)),ae&&N.push("xterm-decoration-top"),oe){case 16777216:case 33554432:ie=y.ansi[Q],N.push(`xterm-bg-${Q}`);break;case 50331648:ie=u.rgba.toColor(Q>>16,Q>>8&255,255&Q),this._addStyle(k,`background-color:#${d((Q>>>0).toString(16),"0",6)}`);break;default:ue?(ie=y.foreground,N.push(`xterm-bg-${n.INVERTED_DEFAULT_COLOR}`)):ie=y.background}switch(te||$.isDim()&&(te=u.color.multiplyOpacity(ie,.5)),ne){case 16777216:case 33554432:$.isBold()&&J<8&&this._optionsService.rawOptions.drawBoldTextInBrightColors&&(J+=8),this._applyMinimumContrast(k,ie,y.ansi[J],$,te,void 0)||N.push(`xterm-fg-${J}`);break;case 50331648:const q=u.rgba.toColor(J>>16&255,J>>8&255,255&J);this._applyMinimumContrast(k,ie,q,$,te,_e)||this._addStyle(k,`color:#${d(J.toString(16),"0",6)}`);break;default:this._applyMinimumContrast(k,ie,y.foreground,$,te,void 0)||ue&&N.push(`xterm-fg-${n.INVERTED_DEFAULT_COLOR}`)}N.length&&(k.className=N.join(" "),N.length=0),le||X||de?k.textContent=H:I++,A!==this.defaultSpacing&&(k.style.letterSpacing=`${A}px`),O.push(k),j=se}return k&&I&&(k.textContent=H),O}_applyMinimumContrast(p,m,l,v,w,L){if(this._optionsService.rawOptions.minimumContrastRatio===1||(0,t.excludeFromContrastRatioDemands)(v.getCode()))return!1;const b=this._getContrastCache(v);let E;if(w||L||(E=b.getColor(m.rgba,l.rgba)),E===void 0){const x=this._optionsService.rawOptions.minimumContrastRatio/(v.isDim()?2:1);E=u.color.ensureContrastRatio(w||m,L||l,x),b.setColor((w||m).rgba,(L||l).rgba,E??null)}return!!E&&(this._addStyle(p,`color:${E.css}`),!0)}_getContrastCache(p){return p.isDim()?this._themeService.colors.halfContrastCache:this._themeService.colors.contrastCache}_addStyle(p,m){p.setAttribute("style",`${p.getAttribute("style")||""}${m};`)}_isCellInSelection(p,m){const l=this._selectionStart,v=this._selectionEnd;return!(!l||!v)&&(this._columnSelectMode?l[0]<=v[0]?p>=l[0]&&m>=l[1]&&p=l[1]&&p>=v[0]&&m<=v[1]:m>l[1]&&m=l[0]&&p=l[0])}};function d(p,m,l){for(;p.length{Object.defineProperty(r,"__esModule",{value:!0}),r.WidthCache=void 0,r.WidthCache=class{constructor(o){this._flat=new Float32Array(256),this._font="",this._fontSize=0,this._weight="normal",this._weightBold="bold",this._measureElements=[],this._container=o.createElement("div"),this._container.style.position="absolute",this._container.style.top="-50000px",this._container.style.width="50000px",this._container.style.whiteSpace="pre",this._container.style.fontKerning="none";const c=o.createElement("span"),g=o.createElement("span");g.style.fontWeight="bold";const n=o.createElement("span");n.style.fontStyle="italic";const h=o.createElement("span");h.style.fontWeight="bold",h.style.fontStyle="italic",this._measureElements=[c,g,n,h],this._container.appendChild(c),this._container.appendChild(g),this._container.appendChild(n),this._container.appendChild(h),o.body.appendChild(this._container),this.clear()}dispose(){this._container.remove(),this._measureElements.length=0,this._holey=void 0}clear(){this._flat.fill(-9999),this._holey=new Map}setFont(o,c,g,n){o===this._font&&c===this._fontSize&&g===this._weight&&n===this._weightBold||(this._font=o,this._fontSize=c,this._weight=g,this._weightBold=n,this._container.style.fontFamily=this._font,this._container.style.fontSize=`${this._fontSize}px`,this._measureElements[0].style.fontWeight=`${g}`,this._measureElements[1].style.fontWeight=`${n}`,this._measureElements[2].style.fontWeight=`${g}`,this._measureElements[3].style.fontWeight=`${n}`,this.clear())}get(o,c,g){let n=0;if(!c&&!g&&o.length===1&&(n=o.charCodeAt(0))<256)return this._flat[n]!==-9999?this._flat[n]:this._flat[n]=this._measure(o,0);let h=o;c&&(h+="B"),g&&(h+="I");let _=this._holey.get(h);if(_===void 0){let f=0;c&&(f|=1),g&&(f|=2),_=this._measure(o,f),this._holey.set(h,_)}return _}_measure(o,c){const g=this._measureElements[c];return g.textContent=o.repeat(32),g.offsetWidth/32}}},2223:(M,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.TEXT_BASELINE=r.DIM_OPACITY=r.INVERTED_DEFAULT_COLOR=void 0;const c=o(6114);r.INVERTED_DEFAULT_COLOR=257,r.DIM_OPACITY=.5,r.TEXT_BASELINE=c.isFirefox||c.isLegacyEdge?"bottom":"ideographic"},6171:(M,r)=>{function o(c){return 57508<=c&&c<=57558}Object.defineProperty(r,"__esModule",{value:!0}),r.createRenderDimensions=r.excludeFromContrastRatioDemands=r.isRestrictedPowerlineGlyph=r.isPowerlineGlyph=r.throwIfFalsy=void 0,r.throwIfFalsy=function(c){if(!c)throw new Error("value must not be falsy");return c},r.isPowerlineGlyph=o,r.isRestrictedPowerlineGlyph=function(c){return 57520<=c&&c<=57527},r.excludeFromContrastRatioDemands=function(c){return o(c)||function(g){return 9472<=g&&g<=9631}(c)},r.createRenderDimensions=function(){return{css:{canvas:{width:0,height:0},cell:{width:0,height:0}},device:{canvas:{width:0,height:0},cell:{width:0,height:0},char:{width:0,height:0,left:0,top:0}}}}},456:(M,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.SelectionModel=void 0,r.SelectionModel=class{constructor(o){this._bufferService=o,this.isSelectAllActive=!1,this.selectionStartLength=0}clearSelection(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0}get finalSelectionStart(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart}get finalSelectionEnd(){if(this.isSelectAllActive)return[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1];if(this.selectionStart){if(!this.selectionEnd||this.areSelectionValuesReversed()){const o=this.selectionStart[0]+this.selectionStartLength;return o>this._bufferService.cols?o%this._bufferService.cols==0?[this._bufferService.cols,this.selectionStart[1]+Math.floor(o/this._bufferService.cols)-1]:[o%this._bufferService.cols,this.selectionStart[1]+Math.floor(o/this._bufferService.cols)]:[o,this.selectionStart[1]]}if(this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]){const o=this.selectionStart[0]+this.selectionStartLength;return o>this._bufferService.cols?[o%this._bufferService.cols,this.selectionStart[1]+Math.floor(o/this._bufferService.cols)]:[Math.max(o,this.selectionEnd[0]),this.selectionEnd[1]]}return this.selectionEnd}}areSelectionValuesReversed(){const o=this.selectionStart,c=this.selectionEnd;return!(!o||!c)&&(o[1]>c[1]||o[1]===c[1]&&o[0]>c[0])}handleTrim(o){return this.selectionStart&&(this.selectionStart[1]-=o),this.selectionEnd&&(this.selectionEnd[1]-=o),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)}}},428:function(M,r,o){var c=this&&this.__decorate||function(e,i,t,s){var a,d=arguments.length,p=d<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,t):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")p=Reflect.decorate(e,i,t,s);else for(var m=e.length-1;m>=0;m--)(a=e[m])&&(p=(d<3?a(p):d>3?a(i,t,p):a(i,t))||p);return d>3&&p&&Object.defineProperty(i,t,p),p},g=this&&this.__param||function(e,i){return function(t,s){i(t,s,e)}};Object.defineProperty(r,"__esModule",{value:!0}),r.CharSizeService=void 0;const n=o(2585),h=o(8460),_=o(844);let f=r.CharSizeService=class extends _.Disposable{get hasValidSize(){return this.width>0&&this.height>0}constructor(e,i,t){super(),this._optionsService=t,this.width=0,this.height=0,this._onCharSizeChange=this.register(new h.EventEmitter),this.onCharSizeChange=this._onCharSizeChange.event,this._measureStrategy=new u(e,i,this._optionsService),this.register(this._optionsService.onMultipleOptionChange(["fontFamily","fontSize"],()=>this.measure()))}measure(){const e=this._measureStrategy.measure();e.width===this.width&&e.height===this.height||(this.width=e.width,this.height=e.height,this._onCharSizeChange.fire())}};r.CharSizeService=f=c([g(2,n.IOptionsService)],f);class u{constructor(i,t,s){this._document=i,this._parentElement=t,this._optionsService=s,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W".repeat(32),this._measureElement.setAttribute("aria-hidden","true"),this._measureElement.style.whiteSpace="pre",this._measureElement.style.fontKerning="none",this._parentElement.appendChild(this._measureElement)}measure(){this._measureElement.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._measureElement.style.fontSize=`${this._optionsService.rawOptions.fontSize}px`;const i={height:Number(this._measureElement.offsetHeight),width:Number(this._measureElement.offsetWidth)};return i.width!==0&&i.height!==0&&(this._result.width=i.width/32,this._result.height=Math.ceil(i.height)),this._result}}},4269:function(M,r,o){var c=this&&this.__decorate||function(i,t,s,a){var d,p=arguments.length,m=p<3?t:a===null?a=Object.getOwnPropertyDescriptor(t,s):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(i,t,s,a);else for(var l=i.length-1;l>=0;l--)(d=i[l])&&(m=(p<3?d(m):p>3?d(t,s,m):d(t,s))||m);return p>3&&m&&Object.defineProperty(t,s,m),m},g=this&&this.__param||function(i,t){return function(s,a){t(s,a,i)}};Object.defineProperty(r,"__esModule",{value:!0}),r.CharacterJoinerService=r.JoinedCellData=void 0;const n=o(3734),h=o(643),_=o(511),f=o(2585);class u extends n.AttributeData{constructor(t,s,a){super(),this.content=0,this.combinedData="",this.fg=t.fg,this.bg=t.bg,this.combinedData=s,this._width=a}isCombined(){return 2097152}getWidth(){return this._width}getChars(){return this.combinedData}getCode(){return 2097151}setFromCharData(t){throw new Error("not implemented")}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}}r.JoinedCellData=u;let e=r.CharacterJoinerService=class be{constructor(t){this._bufferService=t,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new _.CellData}register(t){const s={id:this._nextCharacterJoinerId++,handler:t};return this._characterJoiners.push(s),s.id}deregister(t){for(let s=0;s1){const b=this._getJoinedRanges(d,l,m,s,p);for(let E=0;E1){const L=this._getJoinedRanges(d,l,m,s,p);for(let b=0;b{Object.defineProperty(r,"__esModule",{value:!0}),r.CoreBrowserService=void 0,r.CoreBrowserService=class{constructor(o,c){this._textarea=o,this.window=c,this._isFocused=!1,this._cachedIsFocused=void 0,this._textarea.addEventListener("focus",()=>this._isFocused=!0),this._textarea.addEventListener("blur",()=>this._isFocused=!1)}get dpr(){return this.window.devicePixelRatio}get isFocused(){return this._cachedIsFocused===void 0&&(this._cachedIsFocused=this._isFocused&&this._textarea.ownerDocument.hasFocus(),queueMicrotask(()=>this._cachedIsFocused=void 0)),this._cachedIsFocused}}},8934:function(M,r,o){var c=this&&this.__decorate||function(f,u,e,i){var t,s=arguments.length,a=s<3?u:i===null?i=Object.getOwnPropertyDescriptor(u,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(f,u,e,i);else for(var d=f.length-1;d>=0;d--)(t=f[d])&&(a=(s<3?t(a):s>3?t(u,e,a):t(u,e))||a);return s>3&&a&&Object.defineProperty(u,e,a),a},g=this&&this.__param||function(f,u){return function(e,i){u(e,i,f)}};Object.defineProperty(r,"__esModule",{value:!0}),r.MouseService=void 0;const n=o(4725),h=o(9806);let _=r.MouseService=class{constructor(f,u){this._renderService=f,this._charSizeService=u}getCoords(f,u,e,i,t){return(0,h.getCoords)(window,f,u,e,i,this._charSizeService.hasValidSize,this._renderService.dimensions.css.cell.width,this._renderService.dimensions.css.cell.height,t)}getMouseReportCoords(f,u){const e=(0,h.getCoordsRelativeToElement)(window,f,u);if(this._charSizeService.hasValidSize)return e[0]=Math.min(Math.max(e[0],0),this._renderService.dimensions.css.canvas.width-1),e[1]=Math.min(Math.max(e[1],0),this._renderService.dimensions.css.canvas.height-1),{col:Math.floor(e[0]/this._renderService.dimensions.css.cell.width),row:Math.floor(e[1]/this._renderService.dimensions.css.cell.height),x:Math.floor(e[0]),y:Math.floor(e[1])}}};r.MouseService=_=c([g(0,n.IRenderService),g(1,n.ICharSizeService)],_)},3230:function(M,r,o){var c=this&&this.__decorate||function(a,d,p,m){var l,v=arguments.length,w=v<3?d:m===null?m=Object.getOwnPropertyDescriptor(d,p):m;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(a,d,p,m);else for(var L=a.length-1;L>=0;L--)(l=a[L])&&(w=(v<3?l(w):v>3?l(d,p,w):l(d,p))||w);return v>3&&w&&Object.defineProperty(d,p,w),w},g=this&&this.__param||function(a,d){return function(p,m){d(p,m,a)}};Object.defineProperty(r,"__esModule",{value:!0}),r.RenderService=void 0;const n=o(3656),h=o(6193),_=o(5596),f=o(4725),u=o(8460),e=o(844),i=o(7226),t=o(2585);let s=r.RenderService=class extends e.Disposable{get dimensions(){return this._renderer.value.dimensions}constructor(a,d,p,m,l,v,w,L){if(super(),this._rowCount=a,this._charSizeService=m,this._renderer=this.register(new e.MutableDisposable),this._pausedResizeTask=new i.DebouncedIdleTask,this._isPaused=!1,this._needsFullRefresh=!1,this._isNextRenderRedrawOnly=!0,this._needsSelectionRefresh=!1,this._canvasWidth=0,this._canvasHeight=0,this._selectionState={start:void 0,end:void 0,columnSelectMode:!1},this._onDimensionsChange=this.register(new u.EventEmitter),this.onDimensionsChange=this._onDimensionsChange.event,this._onRenderedViewportChange=this.register(new u.EventEmitter),this.onRenderedViewportChange=this._onRenderedViewportChange.event,this._onRender=this.register(new u.EventEmitter),this.onRender=this._onRender.event,this._onRefreshRequest=this.register(new u.EventEmitter),this.onRefreshRequest=this._onRefreshRequest.event,this._renderDebouncer=new h.RenderDebouncer(w.window,(b,E)=>this._renderRows(b,E)),this.register(this._renderDebouncer),this._screenDprMonitor=new _.ScreenDprMonitor(w.window),this._screenDprMonitor.setListener(()=>this.handleDevicePixelRatioChange()),this.register(this._screenDprMonitor),this.register(v.onResize(()=>this._fullRefresh())),this.register(v.buffers.onBufferActivate(()=>{var b;return(b=this._renderer.value)===null||b===void 0?void 0:b.clear()})),this.register(p.onOptionChange(()=>this._handleOptionsChanged())),this.register(this._charSizeService.onCharSizeChange(()=>this.handleCharSizeChanged())),this.register(l.onDecorationRegistered(()=>this._fullRefresh())),this.register(l.onDecorationRemoved(()=>this._fullRefresh())),this.register(p.onMultipleOptionChange(["customGlyphs","drawBoldTextInBrightColors","letterSpacing","lineHeight","fontFamily","fontSize","fontWeight","fontWeightBold","minimumContrastRatio"],()=>{this.clear(),this.handleResize(v.cols,v.rows),this._fullRefresh()})),this.register(p.onMultipleOptionChange(["cursorBlink","cursorStyle"],()=>this.refreshRows(v.buffer.y,v.buffer.y,!0))),this.register((0,n.addDisposableDomListener)(w.window,"resize",()=>this.handleDevicePixelRatioChange())),this.register(L.onChangeColors(()=>this._fullRefresh())),"IntersectionObserver"in w.window){const b=new w.window.IntersectionObserver(E=>this._handleIntersectionChange(E[E.length-1]),{threshold:0});b.observe(d),this.register({dispose:()=>b.disconnect()})}}_handleIntersectionChange(a){this._isPaused=a.isIntersecting===void 0?a.intersectionRatio===0:!a.isIntersecting,this._isPaused||this._charSizeService.hasValidSize||this._charSizeService.measure(),!this._isPaused&&this._needsFullRefresh&&(this._pausedResizeTask.flush(),this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)}refreshRows(a,d,p=!1){this._isPaused?this._needsFullRefresh=!0:(p||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(a,d,this._rowCount))}_renderRows(a,d){this._renderer.value&&(a=Math.min(a,this._rowCount-1),d=Math.min(d,this._rowCount-1),this._renderer.value.renderRows(a,d),this._needsSelectionRefresh&&(this._renderer.value.handleSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRenderedViewportChange.fire({start:a,end:d}),this._onRender.fire({start:a,end:d}),this._isNextRenderRedrawOnly=!0)}resize(a,d){this._rowCount=d,this._fireOnCanvasResize()}_handleOptionsChanged(){this._renderer.value&&(this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize())}_fireOnCanvasResize(){this._renderer.value&&(this._renderer.value.dimensions.css.canvas.width===this._canvasWidth&&this._renderer.value.dimensions.css.canvas.height===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.value.dimensions))}hasRenderer(){return!!this._renderer.value}setRenderer(a){this._renderer.value=a,this._renderer.value.onRequestRedraw(d=>this.refreshRows(d.start,d.end,!0)),this._needsSelectionRefresh=!0,this._fullRefresh()}addRefreshCallback(a){return this._renderDebouncer.addRefreshCallback(a)}_fullRefresh(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)}clearTextureAtlas(){var a,d;this._renderer.value&&((d=(a=this._renderer.value).clearTextureAtlas)===null||d===void 0||d.call(a),this._fullRefresh())}handleDevicePixelRatioChange(){this._charSizeService.measure(),this._renderer.value&&(this._renderer.value.handleDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1))}handleResize(a,d){this._renderer.value&&(this._isPaused?this._pausedResizeTask.set(()=>this._renderer.value.handleResize(a,d)):this._renderer.value.handleResize(a,d),this._fullRefresh())}handleCharSizeChanged(){var a;(a=this._renderer.value)===null||a===void 0||a.handleCharSizeChanged()}handleBlur(){var a;(a=this._renderer.value)===null||a===void 0||a.handleBlur()}handleFocus(){var a;(a=this._renderer.value)===null||a===void 0||a.handleFocus()}handleSelectionChanged(a,d,p){var m;this._selectionState.start=a,this._selectionState.end=d,this._selectionState.columnSelectMode=p,(m=this._renderer.value)===null||m===void 0||m.handleSelectionChanged(a,d,p)}handleCursorMove(){var a;(a=this._renderer.value)===null||a===void 0||a.handleCursorMove()}clear(){var a;(a=this._renderer.value)===null||a===void 0||a.clear()}};r.RenderService=s=c([g(2,t.IOptionsService),g(3,f.ICharSizeService),g(4,t.IDecorationService),g(5,t.IBufferService),g(6,f.ICoreBrowserService),g(7,f.IThemeService)],s)},9312:function(M,r,o){var c=this&&this.__decorate||function(l,v,w,L){var b,E=arguments.length,x=E<3?v:L===null?L=Object.getOwnPropertyDescriptor(v,w):L;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(l,v,w,L);else for(var T=l.length-1;T>=0;T--)(b=l[T])&&(x=(E<3?b(x):E>3?b(v,w,x):b(v,w))||x);return E>3&&x&&Object.defineProperty(v,w,x),x},g=this&&this.__param||function(l,v){return function(w,L){v(w,L,l)}};Object.defineProperty(r,"__esModule",{value:!0}),r.SelectionService=void 0;const n=o(9806),h=o(9504),_=o(456),f=o(4725),u=o(8460),e=o(844),i=o(6114),t=o(4841),s=o(511),a=o(2585),d=" ",p=new RegExp(d,"g");let m=r.SelectionService=class extends e.Disposable{constructor(l,v,w,L,b,E,x,T,P){super(),this._element=l,this._screenElement=v,this._linkifier=w,this._bufferService=L,this._coreService=b,this._mouseService=E,this._optionsService=x,this._renderService=T,this._coreBrowserService=P,this._dragScrollAmount=0,this._enabled=!0,this._workCell=new s.CellData,this._mouseDownTimeStamp=0,this._oldHasSelection=!1,this._oldSelectionStart=void 0,this._oldSelectionEnd=void 0,this._onLinuxMouseSelection=this.register(new u.EventEmitter),this.onLinuxMouseSelection=this._onLinuxMouseSelection.event,this._onRedrawRequest=this.register(new u.EventEmitter),this.onRequestRedraw=this._onRedrawRequest.event,this._onSelectionChange=this.register(new u.EventEmitter),this.onSelectionChange=this._onSelectionChange.event,this._onRequestScrollLines=this.register(new u.EventEmitter),this.onRequestScrollLines=this._onRequestScrollLines.event,this._mouseMoveListener=O=>this._handleMouseMove(O),this._mouseUpListener=O=>this._handleMouseUp(O),this._coreService.onUserInput(()=>{this.hasSelection&&this.clearSelection()}),this._trimListener=this._bufferService.buffer.lines.onTrim(O=>this._handleTrim(O)),this.register(this._bufferService.buffers.onBufferActivate(O=>this._handleBufferActivate(O))),this.enable(),this._model=new _.SelectionModel(this._bufferService),this._activeSelectionMode=0,this.register((0,e.toDisposable)(()=>{this._removeMouseDownListeners()}))}reset(){this.clearSelection()}disable(){this.clearSelection(),this._enabled=!1}enable(){this._enabled=!0}get selectionStart(){return this._model.finalSelectionStart}get selectionEnd(){return this._model.finalSelectionEnd}get hasSelection(){const l=this._model.finalSelectionStart,v=this._model.finalSelectionEnd;return!(!l||!v||l[0]===v[0]&&l[1]===v[1])}get selectionText(){const l=this._model.finalSelectionStart,v=this._model.finalSelectionEnd;if(!l||!v)return"";const w=this._bufferService.buffer,L=[];if(this._activeSelectionMode===3){if(l[0]===v[0])return"";const b=l[0]b.replace(p," ")).join(i.isWindows?`\r +WARNING: This link could potentially be dangerous`)){const i=window.open();if(i){try{i.opener=null}catch{}i.location.href=e}else console.warn("Opening link blocked as opener could not be cleared")}}r.OscLinkProvider=_=c([g(0,h.IBufferService),g(1,h.IOptionsService),g(2,h.IOscLinkService)],_)},6193:(M,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.RenderDebouncer=void 0,r.RenderDebouncer=class{constructor(o,c){this._parentWindow=o,this._renderCallback=c,this._refreshCallbacks=[]}dispose(){this._animationFrame&&(this._parentWindow.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)}addRefreshCallback(o){return this._refreshCallbacks.push(o),this._animationFrame||(this._animationFrame=this._parentWindow.requestAnimationFrame(()=>this._innerRefresh())),this._animationFrame}refresh(o,c,g){this._rowCount=g,o=o!==void 0?o:0,c=c!==void 0?c:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,o):o,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,c):c,this._animationFrame||(this._animationFrame=this._parentWindow.requestAnimationFrame(()=>this._innerRefresh()))}_innerRefresh(){if(this._animationFrame=void 0,this._rowStart===void 0||this._rowEnd===void 0||this._rowCount===void 0)return void this._runRefreshCallbacks();const o=Math.max(this._rowStart,0),c=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(o,c),this._runRefreshCallbacks()}_runRefreshCallbacks(){for(const o of this._refreshCallbacks)o(0);this._refreshCallbacks=[]}}},5596:(M,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.ScreenDprMonitor=void 0;const c=o(844);class g extends c.Disposable{constructor(h){super(),this._parentWindow=h,this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio,this.register((0,c.toDisposable)(()=>{this.clearListener()}))}setListener(h){this._listener&&this.clearListener(),this._listener=h,this._outerListener=()=>{this._listener&&(this._listener(this._parentWindow.devicePixelRatio,this._currentDevicePixelRatio),this._updateDpr())},this._updateDpr()}_updateDpr(){var h;this._outerListener&&((h=this._resolutionMediaMatchList)===null||h===void 0||h.removeListener(this._outerListener),this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio,this._resolutionMediaMatchList=this._parentWindow.matchMedia(`screen and (resolution: ${this._parentWindow.devicePixelRatio}dppx)`),this._resolutionMediaMatchList.addListener(this._outerListener))}clearListener(){this._resolutionMediaMatchList&&this._listener&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._listener=void 0,this._outerListener=void 0)}}r.ScreenDprMonitor=g},3236:(M,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.Terminal=void 0;const c=o(3614),g=o(3656),n=o(6465),h=o(9042),_=o(3730),f=o(1680),u=o(3107),e=o(5744),i=o(2950),t=o(1296),s=o(428),a=o(4269),d=o(5114),p=o(8934),m=o(3230),l=o(9312),v=o(4725),w=o(6731),L=o(8055),b=o(8969),E=o(8460),x=o(844),T=o(6114),P=o(8437),O=o(2584),C=o(7399),y=o(5941),k=o(9074),D=o(2585),I=o(5435),H=o(4567),U=typeof window<"u"?window.document:null;class W extends b.CoreTerminal{get onFocus(){return this._onFocus.event}get onBlur(){return this._onBlur.event}get onA11yChar(){return this._onA11yCharEmitter.event}get onA11yTab(){return this._onA11yTabEmitter.event}get onWillOpen(){return this._onWillOpen.event}constructor(S={}){super(S),this.browser=T,this._keyDownHandled=!1,this._keyDownSeen=!1,this._keyPressHandled=!1,this._unprocessedDeadKey=!1,this._accessibilityManager=this.register(new x.MutableDisposable),this._onCursorMove=this.register(new E.EventEmitter),this.onCursorMove=this._onCursorMove.event,this._onKey=this.register(new E.EventEmitter),this.onKey=this._onKey.event,this._onRender=this.register(new E.EventEmitter),this.onRender=this._onRender.event,this._onSelectionChange=this.register(new E.EventEmitter),this.onSelectionChange=this._onSelectionChange.event,this._onTitleChange=this.register(new E.EventEmitter),this.onTitleChange=this._onTitleChange.event,this._onBell=this.register(new E.EventEmitter),this.onBell=this._onBell.event,this._onFocus=this.register(new E.EventEmitter),this._onBlur=this.register(new E.EventEmitter),this._onA11yCharEmitter=this.register(new E.EventEmitter),this._onA11yTabEmitter=this.register(new E.EventEmitter),this._onWillOpen=this.register(new E.EventEmitter),this._setup(),this.linkifier2=this.register(this._instantiationService.createInstance(n.Linkifier2)),this.linkifier2.registerLinkProvider(this._instantiationService.createInstance(_.OscLinkProvider)),this._decorationService=this._instantiationService.createInstance(k.DecorationService),this._instantiationService.setService(D.IDecorationService,this._decorationService),this.register(this._inputHandler.onRequestBell(()=>this._onBell.fire())),this.register(this._inputHandler.onRequestRefreshRows((R,B)=>this.refresh(R,B))),this.register(this._inputHandler.onRequestSendFocus(()=>this._reportFocus())),this.register(this._inputHandler.onRequestReset(()=>this.reset())),this.register(this._inputHandler.onRequestWindowsOptionsReport(R=>this._reportWindowsOptions(R))),this.register(this._inputHandler.onColor(R=>this._handleColorEvent(R))),this.register((0,E.forwardEvent)(this._inputHandler.onCursorMove,this._onCursorMove)),this.register((0,E.forwardEvent)(this._inputHandler.onTitleChange,this._onTitleChange)),this.register((0,E.forwardEvent)(this._inputHandler.onA11yChar,this._onA11yCharEmitter)),this.register((0,E.forwardEvent)(this._inputHandler.onA11yTab,this._onA11yTabEmitter)),this.register(this._bufferService.onResize(R=>this._afterResize(R.cols,R.rows))),this.register((0,x.toDisposable)(()=>{var R,B;this._customKeyEventHandler=void 0,(B=(R=this.element)===null||R===void 0?void 0:R.parentNode)===null||B===void 0||B.removeChild(this.element)}))}_handleColorEvent(S){if(this._themeService)for(const R of S){let B,A="";switch(R.index){case 256:B="foreground",A="10";break;case 257:B="background",A="11";break;case 258:B="cursor",A="12";break;default:B="ansi",A="4;"+R.index}switch(R.type){case 0:const N=L.color.toColorRGB(B==="ansi"?this._themeService.colors.ansi[R.index]:this._themeService.colors[B]);this.coreService.triggerDataEvent(`${O.C0.ESC}]${A};${(0,y.toRgbString)(N)}${O.C1_ESCAPED.ST}`);break;case 1:if(B==="ansi")this._themeService.modifyColors(F=>F.ansi[R.index]=L.rgba.toColor(...R.color));else{const F=B;this._themeService.modifyColors(j=>j[F]=L.rgba.toColor(...R.color))}break;case 2:this._themeService.restoreColor(R.index)}}}_setup(){super._setup(),this._customKeyEventHandler=void 0}get buffer(){return this.buffers.active}focus(){this.textarea&&this.textarea.focus({preventScroll:!0})}_handleScreenReaderModeOptionChange(S){S?!this._accessibilityManager.value&&this._renderService&&(this._accessibilityManager.value=this._instantiationService.createInstance(H.AccessibilityManager,this)):this._accessibilityManager.clear()}_handleTextAreaFocus(S){this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(O.C0.ESC+"[I"),this.updateCursorStyle(S),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()}blur(){var S;return(S=this.textarea)===null||S===void 0?void 0:S.blur()}_handleTextAreaBlur(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(O.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()}_syncTextArea(){if(!this.textarea||!this.buffer.isCursorInViewport||this._compositionHelper.isComposing||!this._renderService)return;const S=this.buffer.ybase+this.buffer.y,R=this.buffer.lines.get(S);if(!R)return;const B=Math.min(this.buffer.x,this.cols-1),A=this._renderService.dimensions.css.cell.height,N=R.getWidth(B),F=this._renderService.dimensions.css.cell.width*N,j=this.buffer.y*this._renderService.dimensions.css.cell.height,V=B*this._renderService.dimensions.css.cell.width;this.textarea.style.left=V+"px",this.textarea.style.top=j+"px",this.textarea.style.width=F+"px",this.textarea.style.height=A+"px",this.textarea.style.lineHeight=A+"px",this.textarea.style.zIndex="-5"}_initGlobal(){this._bindKeys(),this.register((0,g.addDisposableDomListener)(this.element,"copy",R=>{this.hasSelection()&&(0,c.copyHandler)(R,this._selectionService)}));const S=R=>(0,c.handlePasteEvent)(R,this.textarea,this.coreService,this.optionsService);this.register((0,g.addDisposableDomListener)(this.textarea,"paste",S)),this.register((0,g.addDisposableDomListener)(this.element,"paste",S)),T.isFirefox?this.register((0,g.addDisposableDomListener)(this.element,"mousedown",R=>{R.button===2&&(0,c.rightClickHandler)(R,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)})):this.register((0,g.addDisposableDomListener)(this.element,"contextmenu",R=>{(0,c.rightClickHandler)(R,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)})),T.isLinux&&this.register((0,g.addDisposableDomListener)(this.element,"auxclick",R=>{R.button===1&&(0,c.moveTextAreaUnderMouseCursor)(R,this.textarea,this.screenElement)}))}_bindKeys(){this.register((0,g.addDisposableDomListener)(this.textarea,"keyup",S=>this._keyUp(S),!0)),this.register((0,g.addDisposableDomListener)(this.textarea,"keydown",S=>this._keyDown(S),!0)),this.register((0,g.addDisposableDomListener)(this.textarea,"keypress",S=>this._keyPress(S),!0)),this.register((0,g.addDisposableDomListener)(this.textarea,"compositionstart",()=>this._compositionHelper.compositionstart())),this.register((0,g.addDisposableDomListener)(this.textarea,"compositionupdate",S=>this._compositionHelper.compositionupdate(S))),this.register((0,g.addDisposableDomListener)(this.textarea,"compositionend",()=>this._compositionHelper.compositionend())),this.register((0,g.addDisposableDomListener)(this.textarea,"input",S=>this._inputEvent(S),!0)),this.register(this.onRender(()=>this._compositionHelper.updateCompositionElements()))}open(S){var R;if(!S)throw new Error("Terminal requires a parent element.");S.isConnected||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=S.ownerDocument,this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),S.appendChild(this.element);const B=U.createDocumentFragment();this._viewportElement=U.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),B.appendChild(this._viewportElement),this._viewportScrollArea=U.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=U.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=U.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),B.appendChild(this.screenElement),this.textarea=U.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",h.promptLabel),T.isChromeOS||this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this._coreBrowserService=this._instantiationService.createInstance(d.CoreBrowserService,this.textarea,(R=this._document.defaultView)!==null&&R!==void 0?R:window),this._instantiationService.setService(v.ICoreBrowserService,this._coreBrowserService),this.register((0,g.addDisposableDomListener)(this.textarea,"focus",A=>this._handleTextAreaFocus(A))),this.register((0,g.addDisposableDomListener)(this.textarea,"blur",()=>this._handleTextAreaBlur())),this._helperContainer.appendChild(this.textarea),this._charSizeService=this._instantiationService.createInstance(s.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(v.ICharSizeService,this._charSizeService),this._themeService=this._instantiationService.createInstance(w.ThemeService),this._instantiationService.setService(v.IThemeService,this._themeService),this._characterJoinerService=this._instantiationService.createInstance(a.CharacterJoinerService),this._instantiationService.setService(v.ICharacterJoinerService,this._characterJoinerService),this._renderService=this.register(this._instantiationService.createInstance(m.RenderService,this.rows,this.screenElement)),this._instantiationService.setService(v.IRenderService,this._renderService),this.register(this._renderService.onRenderedViewportChange(A=>this._onRender.fire(A))),this.onResize(A=>this._renderService.resize(A.cols,A.rows)),this._compositionView=U.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(i.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(B);try{this._onWillOpen.fire(this.element)}catch{}this._renderService.hasRenderer()||this._renderService.setRenderer(this._createRenderer()),this._mouseService=this._instantiationService.createInstance(p.MouseService),this._instantiationService.setService(v.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(f.Viewport,this._viewportElement,this._viewportScrollArea),this.viewport.onRequestScrollLines(A=>this.scrollLines(A.amount,A.suppressScrollEvent,1)),this.register(this._inputHandler.onRequestSyncScrollBar(()=>this.viewport.syncScrollArea())),this.register(this.viewport),this.register(this.onCursorMove(()=>{this._renderService.handleCursorMove(),this._syncTextArea()})),this.register(this.onResize(()=>this._renderService.handleResize(this.cols,this.rows))),this.register(this.onBlur(()=>this._renderService.handleBlur())),this.register(this.onFocus(()=>this._renderService.handleFocus())),this.register(this._renderService.onDimensionsChange(()=>this.viewport.syncScrollArea())),this._selectionService=this.register(this._instantiationService.createInstance(l.SelectionService,this.element,this.screenElement,this.linkifier2)),this._instantiationService.setService(v.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(A=>this.scrollLines(A.amount,A.suppressScrollEvent))),this.register(this._selectionService.onSelectionChange(()=>this._onSelectionChange.fire())),this.register(this._selectionService.onRequestRedraw(A=>this._renderService.handleSelectionChanged(A.start,A.end,A.columnSelectMode))),this.register(this._selectionService.onLinuxMouseSelection(A=>{this.textarea.value=A,this.textarea.focus(),this.textarea.select()})),this.register(this._onScroll.event(A=>{this.viewport.syncScrollArea(),this._selectionService.refresh()})),this.register((0,g.addDisposableDomListener)(this._viewportElement,"scroll",()=>this._selectionService.refresh())),this.linkifier2.attachToDom(this.screenElement,this._mouseService,this._renderService),this.register(this._instantiationService.createInstance(u.BufferDecorationRenderer,this.screenElement)),this.register((0,g.addDisposableDomListener)(this.element,"mousedown",A=>this._selectionService.handleMouseDown(A))),this.coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager.value=this._instantiationService.createInstance(H.AccessibilityManager,this)),this.register(this.optionsService.onSpecificOptionChange("screenReaderMode",A=>this._handleScreenReaderModeOptionChange(A))),this.options.overviewRulerWidth&&(this._overviewRulerRenderer=this.register(this._instantiationService.createInstance(e.OverviewRulerRenderer,this._viewportElement,this.screenElement))),this.optionsService.onSpecificOptionChange("overviewRulerWidth",A=>{!this._overviewRulerRenderer&&A&&this._viewportElement&&this.screenElement&&(this._overviewRulerRenderer=this.register(this._instantiationService.createInstance(e.OverviewRulerRenderer,this._viewportElement,this.screenElement)))}),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()}_createRenderer(){return this._instantiationService.createInstance(t.DomRenderer,this.element,this.screenElement,this._viewportElement,this.linkifier2)}bindMouse(){const S=this,R=this.element;function B(F){const j=S._mouseService.getMouseReportCoords(F,S.screenElement);if(!j)return!1;let V,X;switch(F.overrideType||F.type){case"mousemove":X=32,F.buttons===void 0?(V=3,F.button!==void 0&&(V=F.button<3?F.button:3)):V=1&F.buttons?0:4&F.buttons?1:2&F.buttons?2:3;break;case"mouseup":X=0,V=F.button<3?F.button:3;break;case"mousedown":X=1,V=F.button<3?F.button:3;break;case"wheel":if(S.viewport.getLinesScrolled(F)===0)return!1;X=F.deltaY<0?0:1,V=4;break;default:return!1}return!(X===void 0||V===void 0||V>4)&&S.coreMouseService.triggerMouseEvent({col:j.col,row:j.row,x:j.x,y:j.y,button:V,action:X,ctrl:F.ctrlKey,alt:F.altKey,shift:F.shiftKey})}const A={mouseup:null,wheel:null,mousedrag:null,mousemove:null},N={mouseup:F=>(B(F),F.buttons||(this._document.removeEventListener("mouseup",A.mouseup),A.mousedrag&&this._document.removeEventListener("mousemove",A.mousedrag)),this.cancel(F)),wheel:F=>(B(F),this.cancel(F,!0)),mousedrag:F=>{F.buttons&&B(F)},mousemove:F=>{F.buttons||B(F)}};this.register(this.coreMouseService.onProtocolChange(F=>{F?(this.optionsService.rawOptions.logLevel==="debug"&&this._logService.debug("Binding to mouse events:",this.coreMouseService.explainEvents(F)),this.element.classList.add("enable-mouse-events"),this._selectionService.disable()):(this._logService.debug("Unbinding from mouse events."),this.element.classList.remove("enable-mouse-events"),this._selectionService.enable()),8&F?A.mousemove||(R.addEventListener("mousemove",N.mousemove),A.mousemove=N.mousemove):(R.removeEventListener("mousemove",A.mousemove),A.mousemove=null),16&F?A.wheel||(R.addEventListener("wheel",N.wheel,{passive:!1}),A.wheel=N.wheel):(R.removeEventListener("wheel",A.wheel),A.wheel=null),2&F?A.mouseup||(R.addEventListener("mouseup",N.mouseup),A.mouseup=N.mouseup):(this._document.removeEventListener("mouseup",A.mouseup),R.removeEventListener("mouseup",A.mouseup),A.mouseup=null),4&F?A.mousedrag||(A.mousedrag=N.mousedrag):(this._document.removeEventListener("mousemove",A.mousedrag),A.mousedrag=null)})),this.coreMouseService.activeProtocol=this.coreMouseService.activeProtocol,this.register((0,g.addDisposableDomListener)(R,"mousedown",F=>{if(F.preventDefault(),this.focus(),this.coreMouseService.areMouseEventsActive&&!this._selectionService.shouldForceSelection(F))return B(F),A.mouseup&&this._document.addEventListener("mouseup",A.mouseup),A.mousedrag&&this._document.addEventListener("mousemove",A.mousedrag),this.cancel(F)})),this.register((0,g.addDisposableDomListener)(R,"wheel",F=>{if(!A.wheel){if(!this.buffer.hasScrollback){const j=this.viewport.getLinesScrolled(F);if(j===0)return;const V=O.C0.ESC+(this.coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(F.deltaY<0?"A":"B");let X="";for(let ie=0;ie{if(!this.coreMouseService.areMouseEventsActive)return this.viewport.handleTouchStart(F),this.cancel(F)},{passive:!0})),this.register((0,g.addDisposableDomListener)(R,"touchmove",F=>{if(!this.coreMouseService.areMouseEventsActive)return this.viewport.handleTouchMove(F)?void 0:this.cancel(F)},{passive:!1}))}refresh(S,R){var B;(B=this._renderService)===null||B===void 0||B.refreshRows(S,R)}updateCursorStyle(S){var R;!((R=this._selectionService)===null||R===void 0)&&R.shouldColumnSelect(S)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")}_showCursor(){this.coreService.isCursorInitialized||(this.coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))}scrollLines(S,R,B=0){var A;B===1?(super.scrollLines(S,R,B),this.refresh(0,this.rows-1)):(A=this.viewport)===null||A===void 0||A.scrollLines(S)}paste(S){(0,c.paste)(S,this.textarea,this.coreService,this.optionsService)}attachCustomKeyEventHandler(S){this._customKeyEventHandler=S}registerLinkProvider(S){return this.linkifier2.registerLinkProvider(S)}registerCharacterJoiner(S){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");const R=this._characterJoinerService.register(S);return this.refresh(0,this.rows-1),R}deregisterCharacterJoiner(S){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");this._characterJoinerService.deregister(S)&&this.refresh(0,this.rows-1)}get markers(){return this.buffer.markers}registerMarker(S){return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+S)}registerDecoration(S){return this._decorationService.registerDecoration(S)}hasSelection(){return!!this._selectionService&&this._selectionService.hasSelection}select(S,R,B){this._selectionService.setSelection(S,R,B)}getSelection(){return this._selectionService?this._selectionService.selectionText:""}getSelectionPosition(){if(this._selectionService&&this._selectionService.hasSelection)return{start:{x:this._selectionService.selectionStart[0],y:this._selectionService.selectionStart[1]},end:{x:this._selectionService.selectionEnd[0],y:this._selectionService.selectionEnd[1]}}}clearSelection(){var S;(S=this._selectionService)===null||S===void 0||S.clearSelection()}selectAll(){var S;(S=this._selectionService)===null||S===void 0||S.selectAll()}selectLines(S,R){var B;(B=this._selectionService)===null||B===void 0||B.selectLines(S,R)}_keyDown(S){if(this._keyDownHandled=!1,this._keyDownSeen=!0,this._customKeyEventHandler&&this._customKeyEventHandler(S)===!1)return!1;const R=this.browser.isMac&&this.options.macOptionIsMeta&&S.altKey;if(!R&&!this._compositionHelper.keydown(S))return this.options.scrollOnUserInput&&this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;R||S.key!=="Dead"&&S.key!=="AltGraph"||(this._unprocessedDeadKey=!0);const B=(0,C.evaluateKeyboardEvent)(S,this.coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(S),B.type===3||B.type===2){const A=this.rows-1;return this.scrollLines(B.type===2?-A:A),this.cancel(S,!0)}return B.type===1&&this.selectAll(),!!this._isThirdLevelShift(this.browser,S)||(B.cancel&&this.cancel(S,!0),!B.key||!!(S.key&&!S.ctrlKey&&!S.altKey&&!S.metaKey&&S.key.length===1&&S.key.charCodeAt(0)>=65&&S.key.charCodeAt(0)<=90)||(this._unprocessedDeadKey?(this._unprocessedDeadKey=!1,!0):(B.key!==O.C0.ETX&&B.key!==O.C0.CR||(this.textarea.value=""),this._onKey.fire({key:B.key,domEvent:S}),this._showCursor(),this.coreService.triggerDataEvent(B.key,!0),!this.optionsService.rawOptions.screenReaderMode||S.altKey||S.ctrlKey?this.cancel(S,!0):void(this._keyDownHandled=!0))))}_isThirdLevelShift(S,R){const B=S.isMac&&!this.options.macOptionIsMeta&&R.altKey&&!R.ctrlKey&&!R.metaKey||S.isWindows&&R.altKey&&R.ctrlKey&&!R.metaKey||S.isWindows&&R.getModifierState("AltGraph");return R.type==="keypress"?B:B&&(!R.keyCode||R.keyCode>47)}_keyUp(S){this._keyDownSeen=!1,this._customKeyEventHandler&&this._customKeyEventHandler(S)===!1||(function(R){return R.keyCode===16||R.keyCode===17||R.keyCode===18}(S)||this.focus(),this.updateCursorStyle(S),this._keyPressHandled=!1)}_keyPress(S){let R;if(this._keyPressHandled=!1,this._keyDownHandled||this._customKeyEventHandler&&this._customKeyEventHandler(S)===!1)return!1;if(this.cancel(S),S.charCode)R=S.charCode;else if(S.which===null||S.which===void 0)R=S.keyCode;else{if(S.which===0||S.charCode===0)return!1;R=S.which}return!(!R||(S.altKey||S.ctrlKey||S.metaKey)&&!this._isThirdLevelShift(this.browser,S)||(R=String.fromCharCode(R),this._onKey.fire({key:R,domEvent:S}),this._showCursor(),this.coreService.triggerDataEvent(R,!0),this._keyPressHandled=!0,this._unprocessedDeadKey=!1,0))}_inputEvent(S){if(S.data&&S.inputType==="insertText"&&(!S.composed||!this._keyDownSeen)&&!this.optionsService.rawOptions.screenReaderMode){if(this._keyPressHandled)return!1;this._unprocessedDeadKey=!1;const R=S.data;return this.coreService.triggerDataEvent(R,!0),this.cancel(S),!0}return!1}resize(S,R){S!==this.cols||R!==this.rows?super.resize(S,R):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()}_afterResize(S,R){var B,A;(B=this._charSizeService)===null||B===void 0||B.measure(),(A=this.viewport)===null||A===void 0||A.syncScrollArea(!0)}clear(){var S;if(this.buffer.ybase!==0||this.buffer.y!==0){this.buffer.clearAllMarkers(),this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(let R=1;R{Object.defineProperty(r,"__esModule",{value:!0}),r.TimeBasedDebouncer=void 0,r.TimeBasedDebouncer=class{constructor(o,c=1e3){this._renderCallback=o,this._debounceThresholdMS=c,this._lastRefreshMs=0,this._additionalRefreshRequested=!1}dispose(){this._refreshTimeoutID&&clearTimeout(this._refreshTimeoutID)}refresh(o,c,g){this._rowCount=g,o=o!==void 0?o:0,c=c!==void 0?c:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,o):o,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,c):c;const n=Date.now();if(n-this._lastRefreshMs>=this._debounceThresholdMS)this._lastRefreshMs=n,this._innerRefresh();else if(!this._additionalRefreshRequested){const h=n-this._lastRefreshMs,_=this._debounceThresholdMS-h;this._additionalRefreshRequested=!0,this._refreshTimeoutID=window.setTimeout(()=>{this._lastRefreshMs=Date.now(),this._innerRefresh(),this._additionalRefreshRequested=!1,this._refreshTimeoutID=void 0},_)}}_innerRefresh(){if(this._rowStart===void 0||this._rowEnd===void 0||this._rowCount===void 0)return;const o=Math.max(this._rowStart,0),c=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(o,c)}}},1680:function(M,r,o){var c=this&&this.__decorate||function(i,t,s,a){var d,p=arguments.length,m=p<3?t:a===null?a=Object.getOwnPropertyDescriptor(t,s):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(i,t,s,a);else for(var l=i.length-1;l>=0;l--)(d=i[l])&&(m=(p<3?d(m):p>3?d(t,s,m):d(t,s))||m);return p>3&&m&&Object.defineProperty(t,s,m),m},g=this&&this.__param||function(i,t){return function(s,a){t(s,a,i)}};Object.defineProperty(r,"__esModule",{value:!0}),r.Viewport=void 0;const n=o(3656),h=o(4725),_=o(8460),f=o(844),u=o(2585);let e=r.Viewport=class extends f.Disposable{constructor(i,t,s,a,d,p,m,l){super(),this._viewportElement=i,this._scrollArea=t,this._bufferService=s,this._optionsService=a,this._charSizeService=d,this._renderService=p,this._coreBrowserService=m,this.scrollBarWidth=0,this._currentRowHeight=0,this._currentDeviceCellHeight=0,this._lastRecordedBufferLength=0,this._lastRecordedViewportHeight=0,this._lastRecordedBufferHeight=0,this._lastTouchY=0,this._lastScrollTop=0,this._wheelPartialScroll=0,this._refreshAnimationFrame=null,this._ignoreNextScrollEvent=!1,this._smoothScrollState={startTime:0,origin:-1,target:-1},this._onRequestScrollLines=this.register(new _.EventEmitter),this.onRequestScrollLines=this._onRequestScrollLines.event,this.scrollBarWidth=this._viewportElement.offsetWidth-this._scrollArea.offsetWidth||15,this.register((0,n.addDisposableDomListener)(this._viewportElement,"scroll",this._handleScroll.bind(this))),this._activeBuffer=this._bufferService.buffer,this.register(this._bufferService.buffers.onBufferActivate(v=>this._activeBuffer=v.activeBuffer)),this._renderDimensions=this._renderService.dimensions,this.register(this._renderService.onDimensionsChange(v=>this._renderDimensions=v)),this._handleThemeChange(l.colors),this.register(l.onChangeColors(v=>this._handleThemeChange(v))),this.register(this._optionsService.onSpecificOptionChange("scrollback",()=>this.syncScrollArea())),setTimeout(()=>this.syncScrollArea())}_handleThemeChange(i){this._viewportElement.style.backgroundColor=i.background.css}reset(){this._currentRowHeight=0,this._currentDeviceCellHeight=0,this._lastRecordedBufferLength=0,this._lastRecordedViewportHeight=0,this._lastRecordedBufferHeight=0,this._lastTouchY=0,this._lastScrollTop=0,this._coreBrowserService.window.requestAnimationFrame(()=>this.syncScrollArea())}_refresh(i){if(i)return this._innerRefresh(),void(this._refreshAnimationFrame!==null&&this._coreBrowserService.window.cancelAnimationFrame(this._refreshAnimationFrame));this._refreshAnimationFrame===null&&(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>this._innerRefresh()))}_innerRefresh(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.device.cell.height/this._coreBrowserService.dpr,this._currentDeviceCellHeight=this._renderService.dimensions.device.cell.height,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;const t=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.css.canvas.height);this._lastRecordedBufferHeight!==t&&(this._lastRecordedBufferHeight=t,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}const i=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==i&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=i),this._refreshAnimationFrame=null}syncScrollArea(i=!1){if(this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(i);this._lastRecordedViewportHeight===this._renderService.dimensions.css.canvas.height&&this._lastScrollTop===this._activeBuffer.ydisp*this._currentRowHeight&&this._renderDimensions.device.cell.height===this._currentDeviceCellHeight||this._refresh(i)}_handleScroll(i){if(this._lastScrollTop=this._viewportElement.scrollTop,!this._viewportElement.offsetParent)return;if(this._ignoreNextScrollEvent)return this._ignoreNextScrollEvent=!1,void this._onRequestScrollLines.fire({amount:0,suppressScrollEvent:!0});const t=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._onRequestScrollLines.fire({amount:t,suppressScrollEvent:!0})}_smoothScroll(){if(this._isDisposed||this._smoothScrollState.origin===-1||this._smoothScrollState.target===-1)return;const i=this._smoothScrollPercent();this._viewportElement.scrollTop=this._smoothScrollState.origin+Math.round(i*(this._smoothScrollState.target-this._smoothScrollState.origin)),i<1?this._coreBrowserService.window.requestAnimationFrame(()=>this._smoothScroll()):this._clearSmoothScrollState()}_smoothScrollPercent(){return this._optionsService.rawOptions.smoothScrollDuration&&this._smoothScrollState.startTime?Math.max(Math.min((Date.now()-this._smoothScrollState.startTime)/this._optionsService.rawOptions.smoothScrollDuration,1),0):1}_clearSmoothScrollState(){this._smoothScrollState.startTime=0,this._smoothScrollState.origin=-1,this._smoothScrollState.target=-1}_bubbleScroll(i,t){const s=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(t<0&&this._viewportElement.scrollTop!==0||t>0&&s0&&(a=b),d=""}}return{bufferElements:p,cursorElement:a}}getLinesScrolled(i){if(i.deltaY===0||i.shiftKey)return 0;let t=this._applyScrollModifier(i.deltaY,i);return i.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(t/=this._currentRowHeight+0,this._wheelPartialScroll+=t,t=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):i.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._bufferService.rows),t}_applyScrollModifier(i,t){const s=this._optionsService.rawOptions.fastScrollModifier;return s==="alt"&&t.altKey||s==="ctrl"&&t.ctrlKey||s==="shift"&&t.shiftKey?i*this._optionsService.rawOptions.fastScrollSensitivity*this._optionsService.rawOptions.scrollSensitivity:i*this._optionsService.rawOptions.scrollSensitivity}handleTouchStart(i){this._lastTouchY=i.touches[0].pageY}handleTouchMove(i){const t=this._lastTouchY-i.touches[0].pageY;return this._lastTouchY=i.touches[0].pageY,t!==0&&(this._viewportElement.scrollTop+=t,this._bubbleScroll(i,t))}};r.Viewport=e=c([g(2,u.IBufferService),g(3,u.IOptionsService),g(4,h.ICharSizeService),g(5,h.IRenderService),g(6,h.ICoreBrowserService),g(7,h.IThemeService)],e)},3107:function(M,r,o){var c=this&&this.__decorate||function(e,i,t,s){var a,d=arguments.length,p=d<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,t):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")p=Reflect.decorate(e,i,t,s);else for(var m=e.length-1;m>=0;m--)(a=e[m])&&(p=(d<3?a(p):d>3?a(i,t,p):a(i,t))||p);return d>3&&p&&Object.defineProperty(i,t,p),p},g=this&&this.__param||function(e,i){return function(t,s){i(t,s,e)}};Object.defineProperty(r,"__esModule",{value:!0}),r.BufferDecorationRenderer=void 0;const n=o(3656),h=o(4725),_=o(844),f=o(2585);let u=r.BufferDecorationRenderer=class extends _.Disposable{constructor(e,i,t,s){super(),this._screenElement=e,this._bufferService=i,this._decorationService=t,this._renderService=s,this._decorationElements=new Map,this._altBufferIsActive=!1,this._dimensionsChanged=!1,this._container=document.createElement("div"),this._container.classList.add("xterm-decoration-container"),this._screenElement.appendChild(this._container),this.register(this._renderService.onRenderedViewportChange(()=>this._doRefreshDecorations())),this.register(this._renderService.onDimensionsChange(()=>{this._dimensionsChanged=!0,this._queueRefresh()})),this.register((0,n.addDisposableDomListener)(window,"resize",()=>this._queueRefresh())),this.register(this._bufferService.buffers.onBufferActivate(()=>{this._altBufferIsActive=this._bufferService.buffer===this._bufferService.buffers.alt})),this.register(this._decorationService.onDecorationRegistered(()=>this._queueRefresh())),this.register(this._decorationService.onDecorationRemoved(a=>this._removeDecoration(a))),this.register((0,_.toDisposable)(()=>{this._container.remove(),this._decorationElements.clear()}))}_queueRefresh(){this._animationFrame===void 0&&(this._animationFrame=this._renderService.addRefreshCallback(()=>{this._doRefreshDecorations(),this._animationFrame=void 0}))}_doRefreshDecorations(){for(const e of this._decorationService.decorations)this._renderDecoration(e);this._dimensionsChanged=!1}_renderDecoration(e){this._refreshStyle(e),this._dimensionsChanged&&this._refreshXPosition(e)}_createElement(e){var i,t;const s=document.createElement("div");s.classList.add("xterm-decoration"),s.classList.toggle("xterm-decoration-top-layer",((i=e==null?void 0:e.options)===null||i===void 0?void 0:i.layer)==="top"),s.style.width=`${Math.round((e.options.width||1)*this._renderService.dimensions.css.cell.width)}px`,s.style.height=(e.options.height||1)*this._renderService.dimensions.css.cell.height+"px",s.style.top=(e.marker.line-this._bufferService.buffers.active.ydisp)*this._renderService.dimensions.css.cell.height+"px",s.style.lineHeight=`${this._renderService.dimensions.css.cell.height}px`;const a=(t=e.options.x)!==null&&t!==void 0?t:0;return a&&a>this._bufferService.cols&&(s.style.display="none"),this._refreshXPosition(e,s),s}_refreshStyle(e){const i=e.marker.line-this._bufferService.buffers.active.ydisp;if(i<0||i>=this._bufferService.rows)e.element&&(e.element.style.display="none",e.onRenderEmitter.fire(e.element));else{let t=this._decorationElements.get(e);t||(t=this._createElement(e),e.element=t,this._decorationElements.set(e,t),this._container.appendChild(t),e.onDispose(()=>{this._decorationElements.delete(e),t.remove()})),t.style.top=i*this._renderService.dimensions.css.cell.height+"px",t.style.display=this._altBufferIsActive?"none":"block",e.onRenderEmitter.fire(t)}}_refreshXPosition(e,i=e.element){var t;if(!i)return;const s=(t=e.options.x)!==null&&t!==void 0?t:0;(e.options.anchor||"left")==="right"?i.style.right=s?s*this._renderService.dimensions.css.cell.width+"px":"":i.style.left=s?s*this._renderService.dimensions.css.cell.width+"px":""}_removeDecoration(e){var i;(i=this._decorationElements.get(e))===null||i===void 0||i.remove(),this._decorationElements.delete(e),e.dispose()}};r.BufferDecorationRenderer=u=c([g(1,f.IBufferService),g(2,f.IDecorationService),g(3,h.IRenderService)],u)},5871:(M,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.ColorZoneStore=void 0,r.ColorZoneStore=class{constructor(){this._zones=[],this._zonePool=[],this._zonePoolIndex=0,this._linePadding={full:0,left:0,center:0,right:0}}get zones(){return this._zonePool.length=Math.min(this._zonePool.length,this._zones.length),this._zones}clear(){this._zones.length=0,this._zonePoolIndex=0}addDecoration(o){if(o.options.overviewRulerOptions){for(const c of this._zones)if(c.color===o.options.overviewRulerOptions.color&&c.position===o.options.overviewRulerOptions.position){if(this._lineIntersectsZone(c,o.marker.line))return;if(this._lineAdjacentToZone(c,o.marker.line,o.options.overviewRulerOptions.position))return void this._addLineToZone(c,o.marker.line)}if(this._zonePoolIndex=o.startBufferLine&&c<=o.endBufferLine}_lineAdjacentToZone(o,c,g){return c>=o.startBufferLine-this._linePadding[g||"full"]&&c<=o.endBufferLine+this._linePadding[g||"full"]}_addLineToZone(o,c){o.startBufferLine=Math.min(o.startBufferLine,c),o.endBufferLine=Math.max(o.endBufferLine,c)}}},5744:function(M,r,o){var c=this&&this.__decorate||function(a,d,p,m){var l,v=arguments.length,w=v<3?d:m===null?m=Object.getOwnPropertyDescriptor(d,p):m;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(a,d,p,m);else for(var L=a.length-1;L>=0;L--)(l=a[L])&&(w=(v<3?l(w):v>3?l(d,p,w):l(d,p))||w);return v>3&&w&&Object.defineProperty(d,p,w),w},g=this&&this.__param||function(a,d){return function(p,m){d(p,m,a)}};Object.defineProperty(r,"__esModule",{value:!0}),r.OverviewRulerRenderer=void 0;const n=o(5871),h=o(3656),_=o(4725),f=o(844),u=o(2585),e={full:0,left:0,center:0,right:0},i={full:0,left:0,center:0,right:0},t={full:0,left:0,center:0,right:0};let s=r.OverviewRulerRenderer=class extends f.Disposable{get _width(){return this._optionsService.options.overviewRulerWidth||0}constructor(a,d,p,m,l,v,w){var L;super(),this._viewportElement=a,this._screenElement=d,this._bufferService=p,this._decorationService=m,this._renderService=l,this._optionsService=v,this._coreBrowseService=w,this._colorZoneStore=new n.ColorZoneStore,this._shouldUpdateDimensions=!0,this._shouldUpdateAnchor=!0,this._lastKnownBufferLength=0,this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-decoration-overview-ruler"),this._refreshCanvasDimensions(),(L=this._viewportElement.parentElement)===null||L===void 0||L.insertBefore(this._canvas,this._viewportElement);const b=this._canvas.getContext("2d");if(!b)throw new Error("Ctx cannot be null");this._ctx=b,this._registerDecorationListeners(),this._registerBufferChangeListeners(),this._registerDimensionChangeListeners(),this.register((0,f.toDisposable)(()=>{var E;(E=this._canvas)===null||E===void 0||E.remove()}))}_registerDecorationListeners(){this.register(this._decorationService.onDecorationRegistered(()=>this._queueRefresh(void 0,!0))),this.register(this._decorationService.onDecorationRemoved(()=>this._queueRefresh(void 0,!0)))}_registerBufferChangeListeners(){this.register(this._renderService.onRenderedViewportChange(()=>this._queueRefresh())),this.register(this._bufferService.buffers.onBufferActivate(()=>{this._canvas.style.display=this._bufferService.buffer===this._bufferService.buffers.alt?"none":"block"})),this.register(this._bufferService.onScroll(()=>{this._lastKnownBufferLength!==this._bufferService.buffers.normal.lines.length&&(this._refreshDrawHeightConstants(),this._refreshColorZonePadding())}))}_registerDimensionChangeListeners(){this.register(this._renderService.onRender(()=>{this._containerHeight&&this._containerHeight===this._screenElement.clientHeight||(this._queueRefresh(!0),this._containerHeight=this._screenElement.clientHeight)})),this.register(this._optionsService.onSpecificOptionChange("overviewRulerWidth",()=>this._queueRefresh(!0))),this.register((0,h.addDisposableDomListener)(this._coreBrowseService.window,"resize",()=>this._queueRefresh(!0))),this._queueRefresh(!0)}_refreshDrawConstants(){const a=Math.floor(this._canvas.width/3),d=Math.ceil(this._canvas.width/3);i.full=this._canvas.width,i.left=a,i.center=d,i.right=a,this._refreshDrawHeightConstants(),t.full=0,t.left=0,t.center=i.left,t.right=i.left+i.center}_refreshDrawHeightConstants(){e.full=Math.round(2*this._coreBrowseService.dpr);const a=this._canvas.height/this._bufferService.buffer.lines.length,d=Math.round(Math.max(Math.min(a,12),6)*this._coreBrowseService.dpr);e.left=d,e.center=d,e.right=d}_refreshColorZonePadding(){this._colorZoneStore.setPadding({full:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*e.full),left:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*e.left),center:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*e.center),right:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*e.right)}),this._lastKnownBufferLength=this._bufferService.buffers.normal.lines.length}_refreshCanvasDimensions(){this._canvas.style.width=`${this._width}px`,this._canvas.width=Math.round(this._width*this._coreBrowseService.dpr),this._canvas.style.height=`${this._screenElement.clientHeight}px`,this._canvas.height=Math.round(this._screenElement.clientHeight*this._coreBrowseService.dpr),this._refreshDrawConstants(),this._refreshColorZonePadding()}_refreshDecorations(){this._shouldUpdateDimensions&&this._refreshCanvasDimensions(),this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height),this._colorZoneStore.clear();for(const d of this._decorationService.decorations)this._colorZoneStore.addDecoration(d);this._ctx.lineWidth=1;const a=this._colorZoneStore.zones;for(const d of a)d.position!=="full"&&this._renderColorZone(d);for(const d of a)d.position==="full"&&this._renderColorZone(d);this._shouldUpdateDimensions=!1,this._shouldUpdateAnchor=!1}_renderColorZone(a){this._ctx.fillStyle=a.color,this._ctx.fillRect(t[a.position||"full"],Math.round((this._canvas.height-1)*(a.startBufferLine/this._bufferService.buffers.active.lines.length)-e[a.position||"full"]/2),i[a.position||"full"],Math.round((this._canvas.height-1)*((a.endBufferLine-a.startBufferLine)/this._bufferService.buffers.active.lines.length)+e[a.position||"full"]))}_queueRefresh(a,d){this._shouldUpdateDimensions=a||this._shouldUpdateDimensions,this._shouldUpdateAnchor=d||this._shouldUpdateAnchor,this._animationFrame===void 0&&(this._animationFrame=this._coreBrowseService.window.requestAnimationFrame(()=>{this._refreshDecorations(),this._animationFrame=void 0}))}};r.OverviewRulerRenderer=s=c([g(2,u.IBufferService),g(3,u.IDecorationService),g(4,_.IRenderService),g(5,u.IOptionsService),g(6,_.ICoreBrowserService)],s)},2950:function(M,r,o){var c=this&&this.__decorate||function(u,e,i,t){var s,a=arguments.length,d=a<3?e:t===null?t=Object.getOwnPropertyDescriptor(e,i):t;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(u,e,i,t);else for(var p=u.length-1;p>=0;p--)(s=u[p])&&(d=(a<3?s(d):a>3?s(e,i,d):s(e,i))||d);return a>3&&d&&Object.defineProperty(e,i,d),d},g=this&&this.__param||function(u,e){return function(i,t){e(i,t,u)}};Object.defineProperty(r,"__esModule",{value:!0}),r.CompositionHelper=void 0;const n=o(4725),h=o(2585),_=o(2584);let f=r.CompositionHelper=class{get isComposing(){return this._isComposing}constructor(u,e,i,t,s,a){this._textarea=u,this._compositionView=e,this._bufferService=i,this._optionsService=t,this._coreService=s,this._renderService=a,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0},this._dataAlreadySent=""}compositionstart(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._dataAlreadySent="",this._compositionView.classList.add("active")}compositionupdate(u){this._compositionView.textContent=u.data,this.updateCompositionElements(),setTimeout(()=>{this._compositionPosition.end=this._textarea.value.length},0)}compositionend(){this._finalizeComposition(!0)}keydown(u){if(this._isComposing||this._isSendingComposition){if(u.keyCode===229||u.keyCode===16||u.keyCode===17||u.keyCode===18)return!1;this._finalizeComposition(!1)}return u.keyCode!==229||(this._handleAnyTextareaChanges(),!1)}_finalizeComposition(u){if(this._compositionView.classList.remove("active"),this._isComposing=!1,u){const e={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(()=>{if(this._isSendingComposition){let i;this._isSendingComposition=!1,e.start+=this._dataAlreadySent.length,i=this._isComposing?this._textarea.value.substring(e.start,e.end):this._textarea.value.substring(e.start),i.length>0&&this._coreService.triggerDataEvent(i,!0)}},0)}else{this._isSendingComposition=!1;const e=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(e,!0)}}_handleAnyTextareaChanges(){const u=this._textarea.value;setTimeout(()=>{if(!this._isComposing){const e=this._textarea.value,i=e.replace(u,"");this._dataAlreadySent=i,e.length>u.length?this._coreService.triggerDataEvent(i,!0):e.lengththis.updateCompositionElements(!0),0)}}};r.CompositionHelper=f=c([g(2,h.IBufferService),g(3,h.IOptionsService),g(4,h.ICoreService),g(5,n.IRenderService)],f)},9806:(M,r)=>{function o(c,g,n){const h=n.getBoundingClientRect(),_=c.getComputedStyle(n),f=parseInt(_.getPropertyValue("padding-left")),u=parseInt(_.getPropertyValue("padding-top"));return[g.clientX-h.left-f,g.clientY-h.top-u]}Object.defineProperty(r,"__esModule",{value:!0}),r.getCoords=r.getCoordsRelativeToElement=void 0,r.getCoordsRelativeToElement=o,r.getCoords=function(c,g,n,h,_,f,u,e,i){if(!f)return;const t=o(c,g,n);return t?(t[0]=Math.ceil((t[0]+(i?u/2:0))/u),t[1]=Math.ceil(t[1]/e),t[0]=Math.min(Math.max(t[0],1),h+(i?1:0)),t[1]=Math.min(Math.max(t[1],1),_),t):void 0}},9504:(M,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.moveToCellSequence=void 0;const c=o(2584);function g(e,i,t,s){const a=e-n(e,t),d=i-n(i,t),p=Math.abs(a-d)-function(m,l,v){let w=0;const L=m-n(m,v),b=l-n(l,v);for(let E=0;E=0&&ei?"A":"B"}function _(e,i,t,s,a,d){let p=e,m=i,l="";for(;p!==t||m!==s;)p+=a?1:-1,a&&p>d.cols-1?(l+=d.buffer.translateBufferLineToString(m,!1,e,p),p=0,e=0,m++):!a&&p<0&&(l+=d.buffer.translateBufferLineToString(m,!1,0,e+1),p=d.cols-1,e=p,m--);return l+d.buffer.translateBufferLineToString(m,!1,e,p)}function f(e,i){const t=i?"O":"[";return c.C0.ESC+t+e}function u(e,i){e=Math.floor(e);let t="";for(let s=0;s0?L-n(L,b):v;const T=L,P=function(O,C,y,k,D,I){let H;return H=g(y,k,D,I).length>0?k-n(k,D):C,O=y&&He?"D":"C",u(Math.abs(a-e),f(p,s));p=d>i?"D":"C";const m=Math.abs(d-i);return u(function(l,v){return v.cols-l}(d>i?e:a,t)+(m-1)*t.cols+1+((d>i?a:e)-1),f(p,s))}},1296:function(M,r,o){var c=this&&this.__decorate||function(b,E,x,T){var P,O=arguments.length,C=O<3?E:T===null?T=Object.getOwnPropertyDescriptor(E,x):T;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(b,E,x,T);else for(var y=b.length-1;y>=0;y--)(P=b[y])&&(C=(O<3?P(C):O>3?P(E,x,C):P(E,x))||C);return O>3&&C&&Object.defineProperty(E,x,C),C},g=this&&this.__param||function(b,E){return function(x,T){E(x,T,b)}};Object.defineProperty(r,"__esModule",{value:!0}),r.DomRenderer=void 0;const n=o(3787),h=o(2550),_=o(2223),f=o(6171),u=o(4725),e=o(8055),i=o(8460),t=o(844),s=o(2585),a="xterm-dom-renderer-owner-",d="xterm-rows",p="xterm-fg-",m="xterm-bg-",l="xterm-focus",v="xterm-selection";let w=1,L=r.DomRenderer=class extends t.Disposable{constructor(b,E,x,T,P,O,C,y,k,D){super(),this._element=b,this._screenElement=E,this._viewportElement=x,this._linkifier2=T,this._charSizeService=O,this._optionsService=C,this._bufferService=y,this._coreBrowserService=k,this._themeService=D,this._terminalClass=w++,this._rowElements=[],this.onRequestRedraw=this.register(new i.EventEmitter).event,this._rowContainer=document.createElement("div"),this._rowContainer.classList.add(d),this._rowContainer.style.lineHeight="normal",this._rowContainer.setAttribute("aria-hidden","true"),this._refreshRowElements(this._bufferService.cols,this._bufferService.rows),this._selectionContainer=document.createElement("div"),this._selectionContainer.classList.add(v),this._selectionContainer.setAttribute("aria-hidden","true"),this.dimensions=(0,f.createRenderDimensions)(),this._updateDimensions(),this.register(this._optionsService.onOptionChange(()=>this._handleOptionsChanged())),this.register(this._themeService.onChangeColors(I=>this._injectCss(I))),this._injectCss(this._themeService.colors),this._rowFactory=P.createInstance(n.DomRendererRowFactory,document),this._element.classList.add(a+this._terminalClass),this._screenElement.appendChild(this._rowContainer),this._screenElement.appendChild(this._selectionContainer),this.register(this._linkifier2.onShowLinkUnderline(I=>this._handleLinkHover(I))),this.register(this._linkifier2.onHideLinkUnderline(I=>this._handleLinkLeave(I))),this.register((0,t.toDisposable)(()=>{this._element.classList.remove(a+this._terminalClass),this._rowContainer.remove(),this._selectionContainer.remove(),this._widthCache.dispose(),this._themeStyleElement.remove(),this._dimensionsStyleElement.remove()})),this._widthCache=new h.WidthCache(document),this._widthCache.setFont(this._optionsService.rawOptions.fontFamily,this._optionsService.rawOptions.fontSize,this._optionsService.rawOptions.fontWeight,this._optionsService.rawOptions.fontWeightBold),this._setDefaultSpacing()}_updateDimensions(){const b=this._coreBrowserService.dpr;this.dimensions.device.char.width=this._charSizeService.width*b,this.dimensions.device.char.height=Math.ceil(this._charSizeService.height*b),this.dimensions.device.cell.width=this.dimensions.device.char.width+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.device.cell.height=Math.floor(this.dimensions.device.char.height*this._optionsService.rawOptions.lineHeight),this.dimensions.device.char.left=0,this.dimensions.device.char.top=0,this.dimensions.device.canvas.width=this.dimensions.device.cell.width*this._bufferService.cols,this.dimensions.device.canvas.height=this.dimensions.device.cell.height*this._bufferService.rows,this.dimensions.css.canvas.width=Math.round(this.dimensions.device.canvas.width/b),this.dimensions.css.canvas.height=Math.round(this.dimensions.device.canvas.height/b),this.dimensions.css.cell.width=this.dimensions.css.canvas.width/this._bufferService.cols,this.dimensions.css.cell.height=this.dimensions.css.canvas.height/this._bufferService.rows;for(const x of this._rowElements)x.style.width=`${this.dimensions.css.canvas.width}px`,x.style.height=`${this.dimensions.css.cell.height}px`,x.style.lineHeight=`${this.dimensions.css.cell.height}px`,x.style.overflow="hidden";this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));const E=`${this._terminalSelector} .${d} span { display: inline-block; height: 100%; vertical-align: top;}`;this._dimensionsStyleElement.textContent=E,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=`${this.dimensions.css.canvas.width}px`,this._screenElement.style.height=`${this.dimensions.css.canvas.height}px`}_injectCss(b){this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));let E=`${this._terminalSelector} .${d} { color: ${b.foreground.css}; font-family: ${this._optionsService.rawOptions.fontFamily}; font-size: ${this._optionsService.rawOptions.fontSize}px; font-kerning: none; white-space: pre}`;E+=`${this._terminalSelector} .${d} .xterm-dim { color: ${e.color.multiplyOpacity(b.foreground,.5).css};}`,E+=`${this._terminalSelector} span:not(.xterm-bold) { font-weight: ${this._optionsService.rawOptions.fontWeight};}${this._terminalSelector} span.xterm-bold { font-weight: ${this._optionsService.rawOptions.fontWeightBold};}${this._terminalSelector} span.xterm-italic { font-style: italic;}`,E+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { border-bottom-style: hidden; }}",E+="@keyframes blink_block_"+this._terminalClass+` { 0% { background-color: ${b.cursor.css}; color: ${b.cursorAccent.css}; } 50% { background-color: inherit; color: ${b.cursor.css}; }}`,E+=`${this._terminalSelector} .${d}.${l} .xterm-cursor.xterm-cursor-blink:not(.xterm-cursor-block) { animation: blink_box_shadow_`+this._terminalClass+` 1s step-end infinite;}${this._terminalSelector} .${d}.${l} .xterm-cursor.xterm-cursor-blink.xterm-cursor-block { animation: blink_block_`+this._terminalClass+` 1s step-end infinite;}${this._terminalSelector} .${d} .xterm-cursor.xterm-cursor-block { background-color: ${b.cursor.css}; color: ${b.cursorAccent.css};}${this._terminalSelector} .${d} .xterm-cursor.xterm-cursor-outline { outline: 1px solid ${b.cursor.css}; outline-offset: -1px;}${this._terminalSelector} .${d} .xterm-cursor.xterm-cursor-bar { box-shadow: ${this._optionsService.rawOptions.cursorWidth}px 0 0 ${b.cursor.css} inset;}${this._terminalSelector} .${d} .xterm-cursor.xterm-cursor-underline { border-bottom: 1px ${b.cursor.css}; border-bottom-style: solid; height: calc(100% - 1px);}`,E+=`${this._terminalSelector} .${v} { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}${this._terminalSelector}.focus .${v} div { position: absolute; background-color: ${b.selectionBackgroundOpaque.css};}${this._terminalSelector} .${v} div { position: absolute; background-color: ${b.selectionInactiveBackgroundOpaque.css};}`;for(const[x,T]of b.ansi.entries())E+=`${this._terminalSelector} .${p}${x} { color: ${T.css}; }${this._terminalSelector} .${p}${x}.xterm-dim { color: ${e.color.multiplyOpacity(T,.5).css}; }${this._terminalSelector} .${m}${x} { background-color: ${T.css}; }`;E+=`${this._terminalSelector} .${p}${_.INVERTED_DEFAULT_COLOR} { color: ${e.color.opaque(b.background).css}; }${this._terminalSelector} .${p}${_.INVERTED_DEFAULT_COLOR}.xterm-dim { color: ${e.color.multiplyOpacity(e.color.opaque(b.background),.5).css}; }${this._terminalSelector} .${m}${_.INVERTED_DEFAULT_COLOR} { background-color: ${b.foreground.css}; }`,this._themeStyleElement.textContent=E}_setDefaultSpacing(){const b=this.dimensions.css.cell.width-this._widthCache.get("W",!1,!1);this._rowContainer.style.letterSpacing=`${b}px`,this._rowFactory.defaultSpacing=b}handleDevicePixelRatioChange(){this._updateDimensions(),this._widthCache.clear(),this._setDefaultSpacing()}_refreshRowElements(b,E){for(let x=this._rowElements.length;x<=E;x++){const T=document.createElement("div");this._rowContainer.appendChild(T),this._rowElements.push(T)}for(;this._rowElements.length>E;)this._rowContainer.removeChild(this._rowElements.pop())}handleResize(b,E){this._refreshRowElements(b,E),this._updateDimensions()}handleCharSizeChanged(){this._updateDimensions(),this._widthCache.clear(),this._setDefaultSpacing()}handleBlur(){this._rowContainer.classList.remove(l)}handleFocus(){this._rowContainer.classList.add(l),this.renderRows(this._bufferService.buffer.y,this._bufferService.buffer.y)}handleSelectionChanged(b,E,x){if(this._selectionContainer.replaceChildren(),this._rowFactory.handleSelectionChanged(b,E,x),this.renderRows(0,this._bufferService.rows-1),!b||!E)return;const T=b[1]-this._bufferService.buffer.ydisp,P=E[1]-this._bufferService.buffer.ydisp,O=Math.max(T,0),C=Math.min(P,this._bufferService.rows-1);if(O>=this._bufferService.rows||C<0)return;const y=document.createDocumentFragment();if(x){const k=b[0]>E[0];y.appendChild(this._createSelectionElement(O,k?E[0]:b[0],k?b[0]:E[0],C-O+1))}else{const k=T===O?b[0]:0,D=O===P?E[0]:this._bufferService.cols;y.appendChild(this._createSelectionElement(O,k,D));const I=C-O-1;if(y.appendChild(this._createSelectionElement(O+1,0,this._bufferService.cols,I)),O!==C){const H=P===C?E[0]:this._bufferService.cols;y.appendChild(this._createSelectionElement(C,0,H))}}this._selectionContainer.appendChild(y)}_createSelectionElement(b,E,x,T=1){const P=document.createElement("div");return P.style.height=T*this.dimensions.css.cell.height+"px",P.style.top=b*this.dimensions.css.cell.height+"px",P.style.left=E*this.dimensions.css.cell.width+"px",P.style.width=this.dimensions.css.cell.width*(x-E)+"px",P}handleCursorMove(){}_handleOptionsChanged(){this._updateDimensions(),this._injectCss(this._themeService.colors),this._widthCache.setFont(this._optionsService.rawOptions.fontFamily,this._optionsService.rawOptions.fontSize,this._optionsService.rawOptions.fontWeight,this._optionsService.rawOptions.fontWeightBold),this._setDefaultSpacing()}clear(){for(const b of this._rowElements)b.replaceChildren()}renderRows(b,E){const x=this._bufferService.buffer,T=x.ybase+x.y,P=Math.min(x.x,this._bufferService.cols-1),O=this._optionsService.rawOptions.cursorBlink,C=this._optionsService.rawOptions.cursorStyle,y=this._optionsService.rawOptions.cursorInactiveStyle;for(let k=b;k<=E;k++){const D=k+x.ydisp,I=this._rowElements[k],H=x.lines.get(D);if(!I||!H)break;I.replaceChildren(...this._rowFactory.createRow(H,D,D===T,C,y,P,O,this.dimensions.css.cell.width,this._widthCache,-1,-1))}}get _terminalSelector(){return`.${a}${this._terminalClass}`}_handleLinkHover(b){this._setCellUnderline(b.x1,b.x2,b.y1,b.y2,b.cols,!0)}_handleLinkLeave(b){this._setCellUnderline(b.x1,b.x2,b.y1,b.y2,b.cols,!1)}_setCellUnderline(b,E,x,T,P,O){x<0&&(b=0),T<0&&(E=0);const C=this._bufferService.rows-1;x=Math.max(Math.min(x,C),0),T=Math.max(Math.min(T,C),0),P=Math.min(P,this._bufferService.cols);const y=this._bufferService.buffer,k=y.ybase+y.y,D=Math.min(y.x,P-1),I=this._optionsService.rawOptions.cursorBlink,H=this._optionsService.rawOptions.cursorStyle,U=this._optionsService.rawOptions.cursorInactiveStyle;for(let W=x;W<=T;++W){const K=W+y.ydisp,S=this._rowElements[W],R=y.lines.get(K);if(!S||!R)break;S.replaceChildren(...this._rowFactory.createRow(R,K,K===k,H,U,D,I,this.dimensions.css.cell.width,this._widthCache,O?W===x?b:0:-1,O?(W===T?E:P)-1:-1))}}};r.DomRenderer=L=c([g(4,s.IInstantiationService),g(5,u.ICharSizeService),g(6,s.IOptionsService),g(7,s.IBufferService),g(8,u.ICoreBrowserService),g(9,u.IThemeService)],L)},3787:function(M,r,o){var c=this&&this.__decorate||function(p,m,l,v){var w,L=arguments.length,b=L<3?m:v===null?v=Object.getOwnPropertyDescriptor(m,l):v;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(p,m,l,v);else for(var E=p.length-1;E>=0;E--)(w=p[E])&&(b=(L<3?w(b):L>3?w(m,l,b):w(m,l))||b);return L>3&&b&&Object.defineProperty(m,l,b),b},g=this&&this.__param||function(p,m){return function(l,v){m(l,v,p)}};Object.defineProperty(r,"__esModule",{value:!0}),r.DomRendererRowFactory=void 0;const n=o(2223),h=o(643),_=o(511),f=o(2585),u=o(8055),e=o(4725),i=o(4269),t=o(6171),s=o(3734);let a=r.DomRendererRowFactory=class{constructor(p,m,l,v,w,L,b){this._document=p,this._characterJoinerService=m,this._optionsService=l,this._coreBrowserService=v,this._coreService=w,this._decorationService=L,this._themeService=b,this._workCell=new _.CellData,this._columnSelectMode=!1,this.defaultSpacing=0}handleSelectionChanged(p,m,l){this._selectionStart=p,this._selectionEnd=m,this._columnSelectMode=l}createRow(p,m,l,v,w,L,b,E,x,T,P){const O=[],C=this._characterJoinerService.getJoinedCharacters(m),y=this._themeService.colors;let k,D=p.getNoBgTrimmedLength();l&&D0&&j===C[0][0]){X=!0;const q=C.shift();$=new i.JoinedCellData(this._workCell,p.translateToString(!0,q[0],q[1]),q[1]-q[0]),ie=q[1]-1,V=$.getWidth()}const re=this._isCellInSelection(j,m),le=l&&j===L,ce=F&&j>=T&&j<=P;let de=!1;this._decorationService.forEachDecorationAtCell(j,m,void 0,q=>{de=!0});let he=$.getChars()||h.WHITESPACE_CELL_CHAR;if(he===" "&&($.isUnderline()||$.isOverline())&&(he=" "),A=V*E-x.get(he,$.isBold(),$.isItalic()),k){if(I&&(re&&B||!re&&!B&&$.bg===U)&&(re&&B&&y.selectionForeground||$.fg===W)&&$.extended.ext===K&&ce===S&&A===R&&!le&&!X&&!de){H+=he,I++;continue}I&&(k.textContent=H),k=this._document.createElement("span"),I=0,H=""}else k=this._document.createElement("span");if(U=$.bg,W=$.fg,K=$.extended.ext,S=ce,R=A,B=re,X&&L>=j&&L<=ie&&(L=j),!this._coreService.isCursorHidden&&le){if(N.push("xterm-cursor"),this._coreBrowserService.isFocused)b&&N.push("xterm-cursor-blink"),N.push(v==="bar"?"xterm-cursor-bar":v==="underline"?"xterm-cursor-underline":"xterm-cursor-block");else if(w)switch(w){case"outline":N.push("xterm-cursor-outline");break;case"block":N.push("xterm-cursor-block");break;case"bar":N.push("xterm-cursor-bar");break;case"underline":N.push("xterm-cursor-underline")}}if($.isBold()&&N.push("xterm-bold"),$.isItalic()&&N.push("xterm-italic"),$.isDim()&&N.push("xterm-dim"),H=$.isInvisible()?h.WHITESPACE_CELL_CHAR:$.getChars()||h.WHITESPACE_CELL_CHAR,$.isUnderline()&&(N.push(`xterm-underline-${$.extended.underlineStyle}`),H===" "&&(H=" "),!$.isUnderlineColorDefault()))if($.isUnderlineColorRGB())k.style.textDecorationColor=`rgb(${s.AttributeData.toColorRGB($.getUnderlineColor()).join(",")})`;else{let q=$.getUnderlineColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&$.isBold()&&q<8&&(q+=8),k.style.textDecorationColor=y.ansi[q].css}$.isOverline()&&(N.push("xterm-overline"),H===" "&&(H=" ")),$.isStrikethrough()&&N.push("xterm-strikethrough"),ce&&(k.style.textDecoration="underline");let J=$.getFgColor(),ne=$.getFgColorMode(),Z=$.getBgColor(),oe=$.getBgColorMode();const ue=!!$.isInverse();if(ue){const q=J;J=Z,Z=q;const we=ne;ne=oe,oe=we}let ee,_e,te,ae=!1;switch(this._decorationService.forEachDecorationAtCell(j,m,void 0,q=>{q.options.layer!=="top"&&ae||(q.backgroundColorRGB&&(oe=50331648,Z=q.backgroundColorRGB.rgba>>8&16777215,ee=q.backgroundColorRGB),q.foregroundColorRGB&&(ne=50331648,J=q.foregroundColorRGB.rgba>>8&16777215,_e=q.foregroundColorRGB),ae=q.options.layer==="top")}),!ae&&re&&(ee=this._coreBrowserService.isFocused?y.selectionBackgroundOpaque:y.selectionInactiveBackgroundOpaque,Z=ee.rgba>>8&16777215,oe=50331648,ae=!0,y.selectionForeground&&(ne=50331648,J=y.selectionForeground.rgba>>8&16777215,_e=y.selectionForeground)),ae&&N.push("xterm-decoration-top"),oe){case 16777216:case 33554432:te=y.ansi[Z],N.push(`xterm-bg-${Z}`);break;case 50331648:te=u.rgba.toColor(Z>>16,Z>>8&255,255&Z),this._addStyle(k,`background-color:#${d((Z>>>0).toString(16),"0",6)}`);break;default:ue?(te=y.foreground,N.push(`xterm-bg-${n.INVERTED_DEFAULT_COLOR}`)):te=y.background}switch(ee||$.isDim()&&(ee=u.color.multiplyOpacity(te,.5)),ne){case 16777216:case 33554432:$.isBold()&&J<8&&this._optionsService.rawOptions.drawBoldTextInBrightColors&&(J+=8),this._applyMinimumContrast(k,te,y.ansi[J],$,ee,void 0)||N.push(`xterm-fg-${J}`);break;case 50331648:const q=u.rgba.toColor(J>>16&255,J>>8&255,255&J);this._applyMinimumContrast(k,te,q,$,ee,_e)||this._addStyle(k,`color:#${d(J.toString(16),"0",6)}`);break;default:this._applyMinimumContrast(k,te,y.foreground,$,ee,void 0)||ue&&N.push(`xterm-fg-${n.INVERTED_DEFAULT_COLOR}`)}N.length&&(k.className=N.join(" "),N.length=0),le||X||de?k.textContent=H:I++,A!==this.defaultSpacing&&(k.style.letterSpacing=`${A}px`),O.push(k),j=ie}return k&&I&&(k.textContent=H),O}_applyMinimumContrast(p,m,l,v,w,L){if(this._optionsService.rawOptions.minimumContrastRatio===1||(0,t.excludeFromContrastRatioDemands)(v.getCode()))return!1;const b=this._getContrastCache(v);let E;if(w||L||(E=b.getColor(m.rgba,l.rgba)),E===void 0){const x=this._optionsService.rawOptions.minimumContrastRatio/(v.isDim()?2:1);E=u.color.ensureContrastRatio(w||m,L||l,x),b.setColor((w||m).rgba,(L||l).rgba,E??null)}return!!E&&(this._addStyle(p,`color:${E.css}`),!0)}_getContrastCache(p){return p.isDim()?this._themeService.colors.halfContrastCache:this._themeService.colors.contrastCache}_addStyle(p,m){p.setAttribute("style",`${p.getAttribute("style")||""}${m};`)}_isCellInSelection(p,m){const l=this._selectionStart,v=this._selectionEnd;return!(!l||!v)&&(this._columnSelectMode?l[0]<=v[0]?p>=l[0]&&m>=l[1]&&p=l[1]&&p>=v[0]&&m<=v[1]:m>l[1]&&m=l[0]&&p=l[0])}};function d(p,m,l){for(;p.length{Object.defineProperty(r,"__esModule",{value:!0}),r.WidthCache=void 0,r.WidthCache=class{constructor(o){this._flat=new Float32Array(256),this._font="",this._fontSize=0,this._weight="normal",this._weightBold="bold",this._measureElements=[],this._container=o.createElement("div"),this._container.style.position="absolute",this._container.style.top="-50000px",this._container.style.width="50000px",this._container.style.whiteSpace="pre",this._container.style.fontKerning="none";const c=o.createElement("span"),g=o.createElement("span");g.style.fontWeight="bold";const n=o.createElement("span");n.style.fontStyle="italic";const h=o.createElement("span");h.style.fontWeight="bold",h.style.fontStyle="italic",this._measureElements=[c,g,n,h],this._container.appendChild(c),this._container.appendChild(g),this._container.appendChild(n),this._container.appendChild(h),o.body.appendChild(this._container),this.clear()}dispose(){this._container.remove(),this._measureElements.length=0,this._holey=void 0}clear(){this._flat.fill(-9999),this._holey=new Map}setFont(o,c,g,n){o===this._font&&c===this._fontSize&&g===this._weight&&n===this._weightBold||(this._font=o,this._fontSize=c,this._weight=g,this._weightBold=n,this._container.style.fontFamily=this._font,this._container.style.fontSize=`${this._fontSize}px`,this._measureElements[0].style.fontWeight=`${g}`,this._measureElements[1].style.fontWeight=`${n}`,this._measureElements[2].style.fontWeight=`${g}`,this._measureElements[3].style.fontWeight=`${n}`,this.clear())}get(o,c,g){let n=0;if(!c&&!g&&o.length===1&&(n=o.charCodeAt(0))<256)return this._flat[n]!==-9999?this._flat[n]:this._flat[n]=this._measure(o,0);let h=o;c&&(h+="B"),g&&(h+="I");let _=this._holey.get(h);if(_===void 0){let f=0;c&&(f|=1),g&&(f|=2),_=this._measure(o,f),this._holey.set(h,_)}return _}_measure(o,c){const g=this._measureElements[c];return g.textContent=o.repeat(32),g.offsetWidth/32}}},2223:(M,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.TEXT_BASELINE=r.DIM_OPACITY=r.INVERTED_DEFAULT_COLOR=void 0;const c=o(6114);r.INVERTED_DEFAULT_COLOR=257,r.DIM_OPACITY=.5,r.TEXT_BASELINE=c.isFirefox||c.isLegacyEdge?"bottom":"ideographic"},6171:(M,r)=>{function o(c){return 57508<=c&&c<=57558}Object.defineProperty(r,"__esModule",{value:!0}),r.createRenderDimensions=r.excludeFromContrastRatioDemands=r.isRestrictedPowerlineGlyph=r.isPowerlineGlyph=r.throwIfFalsy=void 0,r.throwIfFalsy=function(c){if(!c)throw new Error("value must not be falsy");return c},r.isPowerlineGlyph=o,r.isRestrictedPowerlineGlyph=function(c){return 57520<=c&&c<=57527},r.excludeFromContrastRatioDemands=function(c){return o(c)||function(g){return 9472<=g&&g<=9631}(c)},r.createRenderDimensions=function(){return{css:{canvas:{width:0,height:0},cell:{width:0,height:0}},device:{canvas:{width:0,height:0},cell:{width:0,height:0},char:{width:0,height:0,left:0,top:0}}}}},456:(M,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.SelectionModel=void 0,r.SelectionModel=class{constructor(o){this._bufferService=o,this.isSelectAllActive=!1,this.selectionStartLength=0}clearSelection(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0}get finalSelectionStart(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart}get finalSelectionEnd(){if(this.isSelectAllActive)return[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1];if(this.selectionStart){if(!this.selectionEnd||this.areSelectionValuesReversed()){const o=this.selectionStart[0]+this.selectionStartLength;return o>this._bufferService.cols?o%this._bufferService.cols==0?[this._bufferService.cols,this.selectionStart[1]+Math.floor(o/this._bufferService.cols)-1]:[o%this._bufferService.cols,this.selectionStart[1]+Math.floor(o/this._bufferService.cols)]:[o,this.selectionStart[1]]}if(this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]){const o=this.selectionStart[0]+this.selectionStartLength;return o>this._bufferService.cols?[o%this._bufferService.cols,this.selectionStart[1]+Math.floor(o/this._bufferService.cols)]:[Math.max(o,this.selectionEnd[0]),this.selectionEnd[1]]}return this.selectionEnd}}areSelectionValuesReversed(){const o=this.selectionStart,c=this.selectionEnd;return!(!o||!c)&&(o[1]>c[1]||o[1]===c[1]&&o[0]>c[0])}handleTrim(o){return this.selectionStart&&(this.selectionStart[1]-=o),this.selectionEnd&&(this.selectionEnd[1]-=o),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)}}},428:function(M,r,o){var c=this&&this.__decorate||function(e,i,t,s){var a,d=arguments.length,p=d<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,t):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")p=Reflect.decorate(e,i,t,s);else for(var m=e.length-1;m>=0;m--)(a=e[m])&&(p=(d<3?a(p):d>3?a(i,t,p):a(i,t))||p);return d>3&&p&&Object.defineProperty(i,t,p),p},g=this&&this.__param||function(e,i){return function(t,s){i(t,s,e)}};Object.defineProperty(r,"__esModule",{value:!0}),r.CharSizeService=void 0;const n=o(2585),h=o(8460),_=o(844);let f=r.CharSizeService=class extends _.Disposable{get hasValidSize(){return this.width>0&&this.height>0}constructor(e,i,t){super(),this._optionsService=t,this.width=0,this.height=0,this._onCharSizeChange=this.register(new h.EventEmitter),this.onCharSizeChange=this._onCharSizeChange.event,this._measureStrategy=new u(e,i,this._optionsService),this.register(this._optionsService.onMultipleOptionChange(["fontFamily","fontSize"],()=>this.measure()))}measure(){const e=this._measureStrategy.measure();e.width===this.width&&e.height===this.height||(this.width=e.width,this.height=e.height,this._onCharSizeChange.fire())}};r.CharSizeService=f=c([g(2,n.IOptionsService)],f);class u{constructor(i,t,s){this._document=i,this._parentElement=t,this._optionsService=s,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W".repeat(32),this._measureElement.setAttribute("aria-hidden","true"),this._measureElement.style.whiteSpace="pre",this._measureElement.style.fontKerning="none",this._parentElement.appendChild(this._measureElement)}measure(){this._measureElement.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._measureElement.style.fontSize=`${this._optionsService.rawOptions.fontSize}px`;const i={height:Number(this._measureElement.offsetHeight),width:Number(this._measureElement.offsetWidth)};return i.width!==0&&i.height!==0&&(this._result.width=i.width/32,this._result.height=Math.ceil(i.height)),this._result}}},4269:function(M,r,o){var c=this&&this.__decorate||function(i,t,s,a){var d,p=arguments.length,m=p<3?t:a===null?a=Object.getOwnPropertyDescriptor(t,s):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(i,t,s,a);else for(var l=i.length-1;l>=0;l--)(d=i[l])&&(m=(p<3?d(m):p>3?d(t,s,m):d(t,s))||m);return p>3&&m&&Object.defineProperty(t,s,m),m},g=this&&this.__param||function(i,t){return function(s,a){t(s,a,i)}};Object.defineProperty(r,"__esModule",{value:!0}),r.CharacterJoinerService=r.JoinedCellData=void 0;const n=o(3734),h=o(643),_=o(511),f=o(2585);class u extends n.AttributeData{constructor(t,s,a){super(),this.content=0,this.combinedData="",this.fg=t.fg,this.bg=t.bg,this.combinedData=s,this._width=a}isCombined(){return 2097152}getWidth(){return this._width}getChars(){return this.combinedData}getCode(){return 2097151}setFromCharData(t){throw new Error("not implemented")}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}}r.JoinedCellData=u;let e=r.CharacterJoinerService=class be{constructor(t){this._bufferService=t,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new _.CellData}register(t){const s={id:this._nextCharacterJoinerId++,handler:t};return this._characterJoiners.push(s),s.id}deregister(t){for(let s=0;s1){const b=this._getJoinedRanges(d,l,m,s,p);for(let E=0;E1){const L=this._getJoinedRanges(d,l,m,s,p);for(let b=0;b{Object.defineProperty(r,"__esModule",{value:!0}),r.CoreBrowserService=void 0,r.CoreBrowserService=class{constructor(o,c){this._textarea=o,this.window=c,this._isFocused=!1,this._cachedIsFocused=void 0,this._textarea.addEventListener("focus",()=>this._isFocused=!0),this._textarea.addEventListener("blur",()=>this._isFocused=!1)}get dpr(){return this.window.devicePixelRatio}get isFocused(){return this._cachedIsFocused===void 0&&(this._cachedIsFocused=this._isFocused&&this._textarea.ownerDocument.hasFocus(),queueMicrotask(()=>this._cachedIsFocused=void 0)),this._cachedIsFocused}}},8934:function(M,r,o){var c=this&&this.__decorate||function(f,u,e,i){var t,s=arguments.length,a=s<3?u:i===null?i=Object.getOwnPropertyDescriptor(u,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(f,u,e,i);else for(var d=f.length-1;d>=0;d--)(t=f[d])&&(a=(s<3?t(a):s>3?t(u,e,a):t(u,e))||a);return s>3&&a&&Object.defineProperty(u,e,a),a},g=this&&this.__param||function(f,u){return function(e,i){u(e,i,f)}};Object.defineProperty(r,"__esModule",{value:!0}),r.MouseService=void 0;const n=o(4725),h=o(9806);let _=r.MouseService=class{constructor(f,u){this._renderService=f,this._charSizeService=u}getCoords(f,u,e,i,t){return(0,h.getCoords)(window,f,u,e,i,this._charSizeService.hasValidSize,this._renderService.dimensions.css.cell.width,this._renderService.dimensions.css.cell.height,t)}getMouseReportCoords(f,u){const e=(0,h.getCoordsRelativeToElement)(window,f,u);if(this._charSizeService.hasValidSize)return e[0]=Math.min(Math.max(e[0],0),this._renderService.dimensions.css.canvas.width-1),e[1]=Math.min(Math.max(e[1],0),this._renderService.dimensions.css.canvas.height-1),{col:Math.floor(e[0]/this._renderService.dimensions.css.cell.width),row:Math.floor(e[1]/this._renderService.dimensions.css.cell.height),x:Math.floor(e[0]),y:Math.floor(e[1])}}};r.MouseService=_=c([g(0,n.IRenderService),g(1,n.ICharSizeService)],_)},3230:function(M,r,o){var c=this&&this.__decorate||function(a,d,p,m){var l,v=arguments.length,w=v<3?d:m===null?m=Object.getOwnPropertyDescriptor(d,p):m;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(a,d,p,m);else for(var L=a.length-1;L>=0;L--)(l=a[L])&&(w=(v<3?l(w):v>3?l(d,p,w):l(d,p))||w);return v>3&&w&&Object.defineProperty(d,p,w),w},g=this&&this.__param||function(a,d){return function(p,m){d(p,m,a)}};Object.defineProperty(r,"__esModule",{value:!0}),r.RenderService=void 0;const n=o(3656),h=o(6193),_=o(5596),f=o(4725),u=o(8460),e=o(844),i=o(7226),t=o(2585);let s=r.RenderService=class extends e.Disposable{get dimensions(){return this._renderer.value.dimensions}constructor(a,d,p,m,l,v,w,L){if(super(),this._rowCount=a,this._charSizeService=m,this._renderer=this.register(new e.MutableDisposable),this._pausedResizeTask=new i.DebouncedIdleTask,this._isPaused=!1,this._needsFullRefresh=!1,this._isNextRenderRedrawOnly=!0,this._needsSelectionRefresh=!1,this._canvasWidth=0,this._canvasHeight=0,this._selectionState={start:void 0,end:void 0,columnSelectMode:!1},this._onDimensionsChange=this.register(new u.EventEmitter),this.onDimensionsChange=this._onDimensionsChange.event,this._onRenderedViewportChange=this.register(new u.EventEmitter),this.onRenderedViewportChange=this._onRenderedViewportChange.event,this._onRender=this.register(new u.EventEmitter),this.onRender=this._onRender.event,this._onRefreshRequest=this.register(new u.EventEmitter),this.onRefreshRequest=this._onRefreshRequest.event,this._renderDebouncer=new h.RenderDebouncer(w.window,(b,E)=>this._renderRows(b,E)),this.register(this._renderDebouncer),this._screenDprMonitor=new _.ScreenDprMonitor(w.window),this._screenDprMonitor.setListener(()=>this.handleDevicePixelRatioChange()),this.register(this._screenDprMonitor),this.register(v.onResize(()=>this._fullRefresh())),this.register(v.buffers.onBufferActivate(()=>{var b;return(b=this._renderer.value)===null||b===void 0?void 0:b.clear()})),this.register(p.onOptionChange(()=>this._handleOptionsChanged())),this.register(this._charSizeService.onCharSizeChange(()=>this.handleCharSizeChanged())),this.register(l.onDecorationRegistered(()=>this._fullRefresh())),this.register(l.onDecorationRemoved(()=>this._fullRefresh())),this.register(p.onMultipleOptionChange(["customGlyphs","drawBoldTextInBrightColors","letterSpacing","lineHeight","fontFamily","fontSize","fontWeight","fontWeightBold","minimumContrastRatio"],()=>{this.clear(),this.handleResize(v.cols,v.rows),this._fullRefresh()})),this.register(p.onMultipleOptionChange(["cursorBlink","cursorStyle"],()=>this.refreshRows(v.buffer.y,v.buffer.y,!0))),this.register((0,n.addDisposableDomListener)(w.window,"resize",()=>this.handleDevicePixelRatioChange())),this.register(L.onChangeColors(()=>this._fullRefresh())),"IntersectionObserver"in w.window){const b=new w.window.IntersectionObserver(E=>this._handleIntersectionChange(E[E.length-1]),{threshold:0});b.observe(d),this.register({dispose:()=>b.disconnect()})}}_handleIntersectionChange(a){this._isPaused=a.isIntersecting===void 0?a.intersectionRatio===0:!a.isIntersecting,this._isPaused||this._charSizeService.hasValidSize||this._charSizeService.measure(),!this._isPaused&&this._needsFullRefresh&&(this._pausedResizeTask.flush(),this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)}refreshRows(a,d,p=!1){this._isPaused?this._needsFullRefresh=!0:(p||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(a,d,this._rowCount))}_renderRows(a,d){this._renderer.value&&(a=Math.min(a,this._rowCount-1),d=Math.min(d,this._rowCount-1),this._renderer.value.renderRows(a,d),this._needsSelectionRefresh&&(this._renderer.value.handleSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRenderedViewportChange.fire({start:a,end:d}),this._onRender.fire({start:a,end:d}),this._isNextRenderRedrawOnly=!0)}resize(a,d){this._rowCount=d,this._fireOnCanvasResize()}_handleOptionsChanged(){this._renderer.value&&(this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize())}_fireOnCanvasResize(){this._renderer.value&&(this._renderer.value.dimensions.css.canvas.width===this._canvasWidth&&this._renderer.value.dimensions.css.canvas.height===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.value.dimensions))}hasRenderer(){return!!this._renderer.value}setRenderer(a){this._renderer.value=a,this._renderer.value.onRequestRedraw(d=>this.refreshRows(d.start,d.end,!0)),this._needsSelectionRefresh=!0,this._fullRefresh()}addRefreshCallback(a){return this._renderDebouncer.addRefreshCallback(a)}_fullRefresh(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)}clearTextureAtlas(){var a,d;this._renderer.value&&((d=(a=this._renderer.value).clearTextureAtlas)===null||d===void 0||d.call(a),this._fullRefresh())}handleDevicePixelRatioChange(){this._charSizeService.measure(),this._renderer.value&&(this._renderer.value.handleDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1))}handleResize(a,d){this._renderer.value&&(this._isPaused?this._pausedResizeTask.set(()=>this._renderer.value.handleResize(a,d)):this._renderer.value.handleResize(a,d),this._fullRefresh())}handleCharSizeChanged(){var a;(a=this._renderer.value)===null||a===void 0||a.handleCharSizeChanged()}handleBlur(){var a;(a=this._renderer.value)===null||a===void 0||a.handleBlur()}handleFocus(){var a;(a=this._renderer.value)===null||a===void 0||a.handleFocus()}handleSelectionChanged(a,d,p){var m;this._selectionState.start=a,this._selectionState.end=d,this._selectionState.columnSelectMode=p,(m=this._renderer.value)===null||m===void 0||m.handleSelectionChanged(a,d,p)}handleCursorMove(){var a;(a=this._renderer.value)===null||a===void 0||a.handleCursorMove()}clear(){var a;(a=this._renderer.value)===null||a===void 0||a.clear()}};r.RenderService=s=c([g(2,t.IOptionsService),g(3,f.ICharSizeService),g(4,t.IDecorationService),g(5,t.IBufferService),g(6,f.ICoreBrowserService),g(7,f.IThemeService)],s)},9312:function(M,r,o){var c=this&&this.__decorate||function(l,v,w,L){var b,E=arguments.length,x=E<3?v:L===null?L=Object.getOwnPropertyDescriptor(v,w):L;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(l,v,w,L);else for(var T=l.length-1;T>=0;T--)(b=l[T])&&(x=(E<3?b(x):E>3?b(v,w,x):b(v,w))||x);return E>3&&x&&Object.defineProperty(v,w,x),x},g=this&&this.__param||function(l,v){return function(w,L){v(w,L,l)}};Object.defineProperty(r,"__esModule",{value:!0}),r.SelectionService=void 0;const n=o(9806),h=o(9504),_=o(456),f=o(4725),u=o(8460),e=o(844),i=o(6114),t=o(4841),s=o(511),a=o(2585),d=" ",p=new RegExp(d,"g");let m=r.SelectionService=class extends e.Disposable{constructor(l,v,w,L,b,E,x,T,P){super(),this._element=l,this._screenElement=v,this._linkifier=w,this._bufferService=L,this._coreService=b,this._mouseService=E,this._optionsService=x,this._renderService=T,this._coreBrowserService=P,this._dragScrollAmount=0,this._enabled=!0,this._workCell=new s.CellData,this._mouseDownTimeStamp=0,this._oldHasSelection=!1,this._oldSelectionStart=void 0,this._oldSelectionEnd=void 0,this._onLinuxMouseSelection=this.register(new u.EventEmitter),this.onLinuxMouseSelection=this._onLinuxMouseSelection.event,this._onRedrawRequest=this.register(new u.EventEmitter),this.onRequestRedraw=this._onRedrawRequest.event,this._onSelectionChange=this.register(new u.EventEmitter),this.onSelectionChange=this._onSelectionChange.event,this._onRequestScrollLines=this.register(new u.EventEmitter),this.onRequestScrollLines=this._onRequestScrollLines.event,this._mouseMoveListener=O=>this._handleMouseMove(O),this._mouseUpListener=O=>this._handleMouseUp(O),this._coreService.onUserInput(()=>{this.hasSelection&&this.clearSelection()}),this._trimListener=this._bufferService.buffer.lines.onTrim(O=>this._handleTrim(O)),this.register(this._bufferService.buffers.onBufferActivate(O=>this._handleBufferActivate(O))),this.enable(),this._model=new _.SelectionModel(this._bufferService),this._activeSelectionMode=0,this.register((0,e.toDisposable)(()=>{this._removeMouseDownListeners()}))}reset(){this.clearSelection()}disable(){this.clearSelection(),this._enabled=!1}enable(){this._enabled=!0}get selectionStart(){return this._model.finalSelectionStart}get selectionEnd(){return this._model.finalSelectionEnd}get hasSelection(){const l=this._model.finalSelectionStart,v=this._model.finalSelectionEnd;return!(!l||!v||l[0]===v[0]&&l[1]===v[1])}get selectionText(){const l=this._model.finalSelectionStart,v=this._model.finalSelectionEnd;if(!l||!v)return"";const w=this._bufferService.buffer,L=[];if(this._activeSelectionMode===3){if(l[0]===v[0])return"";const b=l[0]b.replace(p," ")).join(i.isWindows?`\r `:` `)}clearSelection(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()}refresh(l){this._refreshAnimationFrame||(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>this._refresh())),i.isLinux&&l&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)}_refresh(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:this._activeSelectionMode===3})}_isClickInSelection(l){const v=this._getMouseBufferCoords(l),w=this._model.finalSelectionStart,L=this._model.finalSelectionEnd;return!!(w&&L&&v)&&this._areCoordsInSelection(v,w,L)}isCellInSelection(l,v){const w=this._model.finalSelectionStart,L=this._model.finalSelectionEnd;return!(!w||!L)&&this._areCoordsInSelection([l,v],w,L)}_areCoordsInSelection(l,v,w){return l[1]>v[1]&&l[1]=v[0]&&l[0]=v[0]}_selectWordAtCursor(l,v){var w,L;const b=(L=(w=this._linkifier.currentLink)===null||w===void 0?void 0:w.link)===null||L===void 0?void 0:L.range;if(b)return this._model.selectionStart=[b.start.x-1,b.start.y-1],this._model.selectionStartLength=(0,t.getRangeLength)(b,this._bufferService.cols),this._model.selectionEnd=void 0,!0;const E=this._getMouseBufferCoords(l);return!!E&&(this._selectWordAt(E,v),this._model.selectionEnd=void 0,!0)}selectAll(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()}selectLines(l,v){this._model.clearSelection(),l=Math.max(l,0),v=Math.min(v,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,l],this._model.selectionEnd=[this._bufferService.cols,v],this.refresh(),this._onSelectionChange.fire()}_handleTrim(l){this._model.handleTrim(l)&&this.refresh()}_getMouseBufferCoords(l){const v=this._mouseService.getCoords(l,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(v)return v[0]--,v[1]--,v[1]+=this._bufferService.buffer.ydisp,v}_getMouseEventScrollAmount(l){let v=(0,n.getCoordsRelativeToElement)(this._coreBrowserService.window,l,this._screenElement)[1];const w=this._renderService.dimensions.css.canvas.height;return v>=0&&v<=w?0:(v>w&&(v-=w),v=Math.min(Math.max(v,-50),50),v/=50,v/Math.abs(v)+Math.round(14*v))}shouldForceSelection(l){return i.isMac?l.altKey&&this._optionsService.rawOptions.macOptionClickForcesSelection:l.shiftKey}handleMouseDown(l){if(this._mouseDownTimeStamp=l.timeStamp,(l.button!==2||!this.hasSelection)&&l.button===0){if(!this._enabled){if(!this.shouldForceSelection(l))return;l.stopPropagation()}l.preventDefault(),this._dragScrollAmount=0,this._enabled&&l.shiftKey?this._handleIncrementalClick(l):l.detail===1?this._handleSingleClick(l):l.detail===2?this._handleDoubleClick(l):l.detail===3&&this._handleTripleClick(l),this._addMouseDownListeners(),this.refresh(!0)}}_addMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=this._coreBrowserService.window.setInterval(()=>this._dragScroll(),50)}_removeMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),this._coreBrowserService.window.clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0}_handleIncrementalClick(l){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(l))}_handleSingleClick(l){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(l)?3:0,this._model.selectionStart=this._getMouseBufferCoords(l),!this._model.selectionStart)return;this._model.selectionEnd=void 0;const v=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);v&&v.length!==this._model.selectionStart[0]&&v.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}_handleDoubleClick(l){this._selectWordAtCursor(l,!0)&&(this._activeSelectionMode=1)}_handleTripleClick(l){const v=this._getMouseBufferCoords(l);v&&(this._activeSelectionMode=2,this._selectLineAt(v[1]))}shouldColumnSelect(l){return l.altKey&&!(i.isMac&&this._optionsService.rawOptions.macOptionClickForcesSelection)}_handleMouseMove(l){if(l.stopImmediatePropagation(),!this._model.selectionStart)return;const v=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(l),!this._model.selectionEnd)return void this.refresh(!0);this._activeSelectionMode===2?this._model.selectionEnd[1]0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));const w=this._bufferService.buffer;if(this._model.selectionEnd[1]0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(l.ydisp+this._bufferService.rows,l.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=l.ydisp),this.refresh()}}_handleMouseUp(l){const v=l.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&v<500&&l.altKey&&this._optionsService.rawOptions.altClickMovesCursor){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){const w=this._mouseService.getCoords(l,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(w&&w[0]!==void 0&&w[1]!==void 0){const L=(0,h.moveToCellSequence)(w[0]-1,w[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(L,!0)}}}else this._fireEventIfSelectionChanged()}_fireEventIfSelectionChanged(){const l=this._model.finalSelectionStart,v=this._model.finalSelectionEnd,w=!(!l||!v||l[0]===v[0]&&l[1]===v[1]);w?l&&v&&(this._oldSelectionStart&&this._oldSelectionEnd&&l[0]===this._oldSelectionStart[0]&&l[1]===this._oldSelectionStart[1]&&v[0]===this._oldSelectionEnd[0]&&v[1]===this._oldSelectionEnd[1]||this._fireOnSelectionChange(l,v,w)):this._oldHasSelection&&this._fireOnSelectionChange(l,v,w)}_fireOnSelectionChange(l,v,w){this._oldSelectionStart=l,this._oldSelectionEnd=v,this._oldHasSelection=w,this._onSelectionChange.fire()}_handleBufferActivate(l){this.clearSelection(),this._trimListener.dispose(),this._trimListener=l.activeBuffer.lines.onTrim(v=>this._handleTrim(v))}_convertViewportColToCharacterIndex(l,v){let w=v;for(let L=0;v>=L;L++){const b=l.loadCell(L,this._workCell).getChars().length;this._workCell.getWidth()===0?w--:b>1&&v!==L&&(w+=b-1)}return w}setSelection(l,v,w){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[l,v],this._model.selectionStartLength=w,this.refresh(),this._fireEventIfSelectionChanged()}rightClickSelect(l){this._isClickInSelection(l)||(this._selectWordAtCursor(l,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())}_getWordAt(l,v,w=!0,L=!0){if(l[0]>=this._bufferService.cols)return;const b=this._bufferService.buffer,E=b.lines.get(l[1]);if(!E)return;const x=b.translateBufferLineToString(l[1],!1);let T=this._convertViewportColToCharacterIndex(E,l[0]),P=T;const O=l[0]-T;let C=0,y=0,k=0,D=0;if(x.charAt(T)===" "){for(;T>0&&x.charAt(T-1)===" ";)T--;for(;P1&&(D+=K-1,P+=K-1);U>0&&T>0&&!this._isCharWordSeparator(E.loadCell(U-1,this._workCell));){E.loadCell(U-1,this._workCell);const S=this._workCell.getChars().length;this._workCell.getWidth()===0?(C++,U--):S>1&&(k+=S-1,T-=S-1),T--,U--}for(;W1&&(D+=S-1,P+=S-1),P++,W++}}P++;let I=T+O-C+k,H=Math.min(this._bufferService.cols,P-T+C+y-k-D);if(v||x.slice(T,P).trim()!==""){if(w&&I===0&&E.getCodePoint(0)!==32){const U=b.lines.get(l[1]-1);if(U&&E.isWrapped&&U.getCodePoint(this._bufferService.cols-1)!==32){const W=this._getWordAt([this._bufferService.cols-1,l[1]-1],!1,!0,!1);if(W){const K=this._bufferService.cols-W.start;I-=K,H+=K}}}if(L&&I+H===this._bufferService.cols&&E.getCodePoint(this._bufferService.cols-1)!==32){const U=b.lines.get(l[1]+1);if(U!=null&&U.isWrapped&&U.getCodePoint(0)!==32){const W=this._getWordAt([0,l[1]+1],!1,!1,!0);W&&(H+=W.length)}}return{start:I,length:H}}}_selectWordAt(l,v){const w=this._getWordAt(l,v);if(w){for(;w.start<0;)w.start+=this._bufferService.cols,l[1]--;this._model.selectionStart=[w.start,l[1]],this._model.selectionStartLength=w.length}}_selectToWordAt(l){const v=this._getWordAt(l,!0);if(v){let w=l[1];for(;v.start<0;)v.start+=this._bufferService.cols,w--;if(!this._model.areSelectionValuesReversed())for(;v.start+v.length>this._bufferService.cols;)v.length-=this._bufferService.cols,w++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?v.start:v.start+v.length,w]}}_isCharWordSeparator(l){return l.getWidth()!==0&&this._optionsService.rawOptions.wordSeparator.indexOf(l.getChars())>=0}_selectLineAt(l){const v=this._bufferService.buffer.getWrappedRangeForLine(l),w={start:{x:0,y:v.first},end:{x:this._bufferService.cols-1,y:v.last}};this._model.selectionStart=[0,v.first],this._model.selectionEnd=void 0,this._model.selectionStartLength=(0,t.getRangeLength)(w,this._bufferService.cols)}};r.SelectionService=m=c([g(3,a.IBufferService),g(4,a.ICoreService),g(5,f.IMouseService),g(6,a.IOptionsService),g(7,f.IRenderService),g(8,f.ICoreBrowserService)],m)},4725:(M,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.IThemeService=r.ICharacterJoinerService=r.ISelectionService=r.IRenderService=r.IMouseService=r.ICoreBrowserService=r.ICharSizeService=void 0;const c=o(8343);r.ICharSizeService=(0,c.createDecorator)("CharSizeService"),r.ICoreBrowserService=(0,c.createDecorator)("CoreBrowserService"),r.IMouseService=(0,c.createDecorator)("MouseService"),r.IRenderService=(0,c.createDecorator)("RenderService"),r.ISelectionService=(0,c.createDecorator)("SelectionService"),r.ICharacterJoinerService=(0,c.createDecorator)("CharacterJoinerService"),r.IThemeService=(0,c.createDecorator)("ThemeService")},6731:function(M,r,o){var c=this&&this.__decorate||function(m,l,v,w){var L,b=arguments.length,E=b<3?l:w===null?w=Object.getOwnPropertyDescriptor(l,v):w;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(m,l,v,w);else for(var x=m.length-1;x>=0;x--)(L=m[x])&&(E=(b<3?L(E):b>3?L(l,v,E):L(l,v))||E);return b>3&&E&&Object.defineProperty(l,v,E),E},g=this&&this.__param||function(m,l){return function(v,w){l(v,w,m)}};Object.defineProperty(r,"__esModule",{value:!0}),r.ThemeService=r.DEFAULT_ANSI_COLORS=void 0;const n=o(7239),h=o(8055),_=o(8460),f=o(844),u=o(2585),e=h.css.toColor("#ffffff"),i=h.css.toColor("#000000"),t=h.css.toColor("#ffffff"),s=h.css.toColor("#000000"),a={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};r.DEFAULT_ANSI_COLORS=Object.freeze((()=>{const m=[h.css.toColor("#2e3436"),h.css.toColor("#cc0000"),h.css.toColor("#4e9a06"),h.css.toColor("#c4a000"),h.css.toColor("#3465a4"),h.css.toColor("#75507b"),h.css.toColor("#06989a"),h.css.toColor("#d3d7cf"),h.css.toColor("#555753"),h.css.toColor("#ef2929"),h.css.toColor("#8ae234"),h.css.toColor("#fce94f"),h.css.toColor("#729fcf"),h.css.toColor("#ad7fa8"),h.css.toColor("#34e2e2"),h.css.toColor("#eeeeec")],l=[0,95,135,175,215,255];for(let v=0;v<216;v++){const w=l[v/36%6|0],L=l[v/6%6|0],b=l[v%6];m.push({css:h.channels.toCss(w,L,b),rgba:h.channels.toRgba(w,L,b)})}for(let v=0;v<24;v++){const w=8+10*v;m.push({css:h.channels.toCss(w,w,w),rgba:h.channels.toRgba(w,w,w)})}return m})());let d=r.ThemeService=class extends f.Disposable{get colors(){return this._colors}constructor(m){super(),this._optionsService=m,this._contrastCache=new n.ColorContrastCache,this._halfContrastCache=new n.ColorContrastCache,this._onChangeColors=this.register(new _.EventEmitter),this.onChangeColors=this._onChangeColors.event,this._colors={foreground:e,background:i,cursor:t,cursorAccent:s,selectionForeground:void 0,selectionBackgroundTransparent:a,selectionBackgroundOpaque:h.color.blend(i,a),selectionInactiveBackgroundTransparent:a,selectionInactiveBackgroundOpaque:h.color.blend(i,a),ansi:r.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache,halfContrastCache:this._halfContrastCache},this._updateRestoreColors(),this._setTheme(this._optionsService.rawOptions.theme),this.register(this._optionsService.onSpecificOptionChange("minimumContrastRatio",()=>this._contrastCache.clear())),this.register(this._optionsService.onSpecificOptionChange("theme",()=>this._setTheme(this._optionsService.rawOptions.theme)))}_setTheme(m={}){const l=this._colors;if(l.foreground=p(m.foreground,e),l.background=p(m.background,i),l.cursor=p(m.cursor,t),l.cursorAccent=p(m.cursorAccent,s),l.selectionBackgroundTransparent=p(m.selectionBackground,a),l.selectionBackgroundOpaque=h.color.blend(l.background,l.selectionBackgroundTransparent),l.selectionInactiveBackgroundTransparent=p(m.selectionInactiveBackground,l.selectionBackgroundTransparent),l.selectionInactiveBackgroundOpaque=h.color.blend(l.background,l.selectionInactiveBackgroundTransparent),l.selectionForeground=m.selectionForeground?p(m.selectionForeground,h.NULL_COLOR):void 0,l.selectionForeground===h.NULL_COLOR&&(l.selectionForeground=void 0),h.color.isOpaque(l.selectionBackgroundTransparent)&&(l.selectionBackgroundTransparent=h.color.opacity(l.selectionBackgroundTransparent,.3)),h.color.isOpaque(l.selectionInactiveBackgroundTransparent)&&(l.selectionInactiveBackgroundTransparent=h.color.opacity(l.selectionInactiveBackgroundTransparent,.3)),l.ansi=r.DEFAULT_ANSI_COLORS.slice(),l.ansi[0]=p(m.black,r.DEFAULT_ANSI_COLORS[0]),l.ansi[1]=p(m.red,r.DEFAULT_ANSI_COLORS[1]),l.ansi[2]=p(m.green,r.DEFAULT_ANSI_COLORS[2]),l.ansi[3]=p(m.yellow,r.DEFAULT_ANSI_COLORS[3]),l.ansi[4]=p(m.blue,r.DEFAULT_ANSI_COLORS[4]),l.ansi[5]=p(m.magenta,r.DEFAULT_ANSI_COLORS[5]),l.ansi[6]=p(m.cyan,r.DEFAULT_ANSI_COLORS[6]),l.ansi[7]=p(m.white,r.DEFAULT_ANSI_COLORS[7]),l.ansi[8]=p(m.brightBlack,r.DEFAULT_ANSI_COLORS[8]),l.ansi[9]=p(m.brightRed,r.DEFAULT_ANSI_COLORS[9]),l.ansi[10]=p(m.brightGreen,r.DEFAULT_ANSI_COLORS[10]),l.ansi[11]=p(m.brightYellow,r.DEFAULT_ANSI_COLORS[11]),l.ansi[12]=p(m.brightBlue,r.DEFAULT_ANSI_COLORS[12]),l.ansi[13]=p(m.brightMagenta,r.DEFAULT_ANSI_COLORS[13]),l.ansi[14]=p(m.brightCyan,r.DEFAULT_ANSI_COLORS[14]),l.ansi[15]=p(m.brightWhite,r.DEFAULT_ANSI_COLORS[15]),m.extendedAnsi){const v=Math.min(l.ansi.length-16,m.extendedAnsi.length);for(let w=0;w{Object.defineProperty(r,"__esModule",{value:!0}),r.CircularList=void 0;const c=o(8460),g=o(844);class n extends g.Disposable{constructor(_){super(),this._maxLength=_,this.onDeleteEmitter=this.register(new c.EventEmitter),this.onDelete=this.onDeleteEmitter.event,this.onInsertEmitter=this.register(new c.EventEmitter),this.onInsert=this.onInsertEmitter.event,this.onTrimEmitter=this.register(new c.EventEmitter),this.onTrim=this.onTrimEmitter.event,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}get maxLength(){return this._maxLength}set maxLength(_){if(this._maxLength===_)return;const f=new Array(_);for(let u=0;uthis._length)for(let f=this._length;f<_;f++)this._array[f]=void 0;this._length=_}get(_){return this._array[this._getCyclicIndex(_)]}set(_,f){this._array[this._getCyclicIndex(_)]=f}push(_){this._array[this._getCyclicIndex(this._length)]=_,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++}recycle(){if(this._length!==this._maxLength)throw new Error("Can only recycle when the buffer is full");return this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1),this._array[this._getCyclicIndex(this._length-1)]}get isFull(){return this._length===this._maxLength}pop(){return this._array[this._getCyclicIndex(this._length---1)]}splice(_,f,...u){if(f){for(let e=_;e=_;e--)this._array[this._getCyclicIndex(e+u.length)]=this._array[this._getCyclicIndex(e)];for(let e=0;ethis._maxLength){const e=this._length+u.length-this._maxLength;this._startIndex+=e,this._length=this._maxLength,this.onTrimEmitter.fire(e)}else this._length+=u.length}trimStart(_){_>this._length&&(_=this._length),this._startIndex+=_,this._length-=_,this.onTrimEmitter.fire(_)}shiftElements(_,f,u){if(!(f<=0)){if(_<0||_>=this._length)throw new Error("start argument out of range");if(_+u<0)throw new Error("Cannot shift elements in list beyond index 0");if(u>0){for(let i=f-1;i>=0;i--)this.set(_+i+u,this.get(_+i));const e=_+f+u-this._length;if(e>0)for(this._length+=e;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(let e=0;e{Object.defineProperty(r,"__esModule",{value:!0}),r.clone=void 0,r.clone=function o(c,g=5){if(typeof c!="object")return c;const n=Array.isArray(c)?[]:{};for(const h in c)n[h]=g<=1?c[h]:c[h]&&o(c[h],g-1);return n}},8055:(M,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.contrastRatio=r.toPaddedHex=r.rgba=r.rgb=r.css=r.color=r.channels=r.NULL_COLOR=void 0;const c=o(6114);let g=0,n=0,h=0,_=0;var f,u,e,i,t;function s(d){const p=d.toString(16);return p.length<2?"0"+p:p}function a(d,p){return d>>0}}(f||(r.channels=f={})),function(d){function p(m,l){return _=Math.round(255*l),[g,n,h]=t.toChannels(m.rgba),{css:f.toCss(g,n,h,_),rgba:f.toRgba(g,n,h,_)}}d.blend=function(m,l){if(_=(255&l.rgba)/255,_===1)return{css:l.css,rgba:l.rgba};const v=l.rgba>>24&255,w=l.rgba>>16&255,L=l.rgba>>8&255,b=m.rgba>>24&255,E=m.rgba>>16&255,x=m.rgba>>8&255;return g=b+Math.round((v-b)*_),n=E+Math.round((w-E)*_),h=x+Math.round((L-x)*_),{css:f.toCss(g,n,h),rgba:f.toRgba(g,n,h)}},d.isOpaque=function(m){return(255&m.rgba)==255},d.ensureContrastRatio=function(m,l,v){const w=t.ensureContrastRatio(m.rgba,l.rgba,v);if(w)return t.toColor(w>>24&255,w>>16&255,w>>8&255)},d.opaque=function(m){const l=(255|m.rgba)>>>0;return[g,n,h]=t.toChannels(l),{css:f.toCss(g,n,h),rgba:l}},d.opacity=p,d.multiplyOpacity=function(m,l){return _=255&m.rgba,p(m,_*l/255)},d.toColorRGB=function(m){return[m.rgba>>24&255,m.rgba>>16&255,m.rgba>>8&255]}}(u||(r.color=u={})),function(d){let p,m;if(!c.isNode){const l=document.createElement("canvas");l.width=1,l.height=1;const v=l.getContext("2d",{willReadFrequently:!0});v&&(p=v,p.globalCompositeOperation="copy",m=p.createLinearGradient(0,0,1,1))}d.toColor=function(l){if(l.match(/#[\da-f]{3,8}/i))switch(l.length){case 4:return g=parseInt(l.slice(1,2).repeat(2),16),n=parseInt(l.slice(2,3).repeat(2),16),h=parseInt(l.slice(3,4).repeat(2),16),t.toColor(g,n,h);case 5:return g=parseInt(l.slice(1,2).repeat(2),16),n=parseInt(l.slice(2,3).repeat(2),16),h=parseInt(l.slice(3,4).repeat(2),16),_=parseInt(l.slice(4,5).repeat(2),16),t.toColor(g,n,h,_);case 7:return{css:l,rgba:(parseInt(l.slice(1),16)<<8|255)>>>0};case 9:return{css:l,rgba:parseInt(l.slice(1),16)>>>0}}const v=l.match(/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*(0|1|\d?\.(\d+))\s*)?\)/);if(v)return g=parseInt(v[1]),n=parseInt(v[2]),h=parseInt(v[3]),_=Math.round(255*(v[5]===void 0?1:parseFloat(v[5]))),t.toColor(g,n,h,_);if(!p||!m)throw new Error("css.toColor: Unsupported css format");if(p.fillStyle=m,p.fillStyle=l,typeof p.fillStyle!="string")throw new Error("css.toColor: Unsupported css format");if(p.fillRect(0,0,1,1),[g,n,h,_]=p.getImageData(0,0,1,1).data,_!==255)throw new Error("css.toColor: Unsupported css format");return{rgba:f.toRgba(g,n,h,_),css:l}}}(e||(r.css=e={})),function(d){function p(m,l,v){const w=m/255,L=l/255,b=v/255;return .2126*(w<=.03928?w/12.92:Math.pow((w+.055)/1.055,2.4))+.7152*(L<=.03928?L/12.92:Math.pow((L+.055)/1.055,2.4))+.0722*(b<=.03928?b/12.92:Math.pow((b+.055)/1.055,2.4))}d.relativeLuminance=function(m){return p(m>>16&255,m>>8&255,255&m)},d.relativeLuminance2=p}(i||(r.rgb=i={})),function(d){function p(l,v,w){const L=l>>24&255,b=l>>16&255,E=l>>8&255;let x=v>>24&255,T=v>>16&255,P=v>>8&255,O=a(i.relativeLuminance2(x,T,P),i.relativeLuminance2(L,b,E));for(;O0||T>0||P>0);)x-=Math.max(0,Math.ceil(.1*x)),T-=Math.max(0,Math.ceil(.1*T)),P-=Math.max(0,Math.ceil(.1*P)),O=a(i.relativeLuminance2(x,T,P),i.relativeLuminance2(L,b,E));return(x<<24|T<<16|P<<8|255)>>>0}function m(l,v,w){const L=l>>24&255,b=l>>16&255,E=l>>8&255;let x=v>>24&255,T=v>>16&255,P=v>>8&255,O=a(i.relativeLuminance2(x,T,P),i.relativeLuminance2(L,b,E));for(;O>>0}d.ensureContrastRatio=function(l,v,w){const L=i.relativeLuminance(l>>8),b=i.relativeLuminance(v>>8);if(a(L,b)>8));if(Pa(L,i.relativeLuminance(O>>8))?T:O}return T}const E=m(l,v,w),x=a(L,i.relativeLuminance(E>>8));if(xa(L,i.relativeLuminance(T>>8))?E:T}return E}},d.reduceLuminance=p,d.increaseLuminance=m,d.toChannels=function(l){return[l>>24&255,l>>16&255,l>>8&255,255&l]},d.toColor=function(l,v,w,L){return{css:f.toCss(l,v,w,L),rgba:f.toRgba(l,v,w,L)}}}(t||(r.rgba=t={})),r.toPaddedHex=s,r.contrastRatio=a},8969:(M,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.CoreTerminal=void 0;const c=o(844),g=o(2585),n=o(4348),h=o(7866),_=o(744),f=o(7302),u=o(6975),e=o(8460),i=o(1753),t=o(1480),s=o(7994),a=o(9282),d=o(5435),p=o(5981),m=o(2660);let l=!1;class v extends c.Disposable{get onScroll(){return this._onScrollApi||(this._onScrollApi=this.register(new e.EventEmitter),this._onScroll.event(L=>{var b;(b=this._onScrollApi)===null||b===void 0||b.fire(L.position)})),this._onScrollApi.event}get cols(){return this._bufferService.cols}get rows(){return this._bufferService.rows}get buffers(){return this._bufferService.buffers}get options(){return this.optionsService.options}set options(L){for(const b in L)this.optionsService.options[b]=L[b]}constructor(L){super(),this._windowsWrappingHeuristics=this.register(new c.MutableDisposable),this._onBinary=this.register(new e.EventEmitter),this.onBinary=this._onBinary.event,this._onData=this.register(new e.EventEmitter),this.onData=this._onData.event,this._onLineFeed=this.register(new e.EventEmitter),this.onLineFeed=this._onLineFeed.event,this._onResize=this.register(new e.EventEmitter),this.onResize=this._onResize.event,this._onWriteParsed=this.register(new e.EventEmitter),this.onWriteParsed=this._onWriteParsed.event,this._onScroll=this.register(new e.EventEmitter),this._instantiationService=new n.InstantiationService,this.optionsService=this.register(new f.OptionsService(L)),this._instantiationService.setService(g.IOptionsService,this.optionsService),this._bufferService=this.register(this._instantiationService.createInstance(_.BufferService)),this._instantiationService.setService(g.IBufferService,this._bufferService),this._logService=this.register(this._instantiationService.createInstance(h.LogService)),this._instantiationService.setService(g.ILogService,this._logService),this.coreService=this.register(this._instantiationService.createInstance(u.CoreService)),this._instantiationService.setService(g.ICoreService,this.coreService),this.coreMouseService=this.register(this._instantiationService.createInstance(i.CoreMouseService)),this._instantiationService.setService(g.ICoreMouseService,this.coreMouseService),this.unicodeService=this.register(this._instantiationService.createInstance(t.UnicodeService)),this._instantiationService.setService(g.IUnicodeService,this.unicodeService),this._charsetService=this._instantiationService.createInstance(s.CharsetService),this._instantiationService.setService(g.ICharsetService,this._charsetService),this._oscLinkService=this._instantiationService.createInstance(m.OscLinkService),this._instantiationService.setService(g.IOscLinkService,this._oscLinkService),this._inputHandler=this.register(new d.InputHandler(this._bufferService,this._charsetService,this.coreService,this._logService,this.optionsService,this._oscLinkService,this.coreMouseService,this.unicodeService)),this.register((0,e.forwardEvent)(this._inputHandler.onLineFeed,this._onLineFeed)),this.register(this._inputHandler),this.register((0,e.forwardEvent)(this._bufferService.onResize,this._onResize)),this.register((0,e.forwardEvent)(this.coreService.onData,this._onData)),this.register((0,e.forwardEvent)(this.coreService.onBinary,this._onBinary)),this.register(this.coreService.onRequestScrollToBottom(()=>this.scrollToBottom())),this.register(this.coreService.onUserInput(()=>this._writeBuffer.handleUserInput())),this.register(this.optionsService.onMultipleOptionChange(["windowsMode","windowsPty"],()=>this._handleWindowsPtyOptionChange())),this.register(this._bufferService.onScroll(b=>{this._onScroll.fire({position:this._bufferService.buffer.ydisp,source:0}),this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop,this._bufferService.buffer.scrollBottom)})),this.register(this._inputHandler.onScroll(b=>{this._onScroll.fire({position:this._bufferService.buffer.ydisp,source:0}),this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop,this._bufferService.buffer.scrollBottom)})),this._writeBuffer=this.register(new p.WriteBuffer((b,E)=>this._inputHandler.parse(b,E))),this.register((0,e.forwardEvent)(this._writeBuffer.onWriteParsed,this._onWriteParsed))}write(L,b){this._writeBuffer.write(L,b)}writeSync(L,b){this._logService.logLevel<=g.LogLevelEnum.WARN&&!l&&(this._logService.warn("writeSync is unreliable and will be removed soon."),l=!0),this._writeBuffer.writeSync(L,b)}resize(L,b){isNaN(L)||isNaN(b)||(L=Math.max(L,_.MINIMUM_COLS),b=Math.max(b,_.MINIMUM_ROWS),this._bufferService.resize(L,b))}scroll(L,b=!1){this._bufferService.scroll(L,b)}scrollLines(L,b,E){this._bufferService.scrollLines(L,b,E)}scrollPages(L){this.scrollLines(L*(this.rows-1))}scrollToTop(){this.scrollLines(-this._bufferService.buffer.ydisp)}scrollToBottom(){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)}scrollToLine(L){const b=L-this._bufferService.buffer.ydisp;b!==0&&this.scrollLines(b)}registerEscHandler(L,b){return this._inputHandler.registerEscHandler(L,b)}registerDcsHandler(L,b){return this._inputHandler.registerDcsHandler(L,b)}registerCsiHandler(L,b){return this._inputHandler.registerCsiHandler(L,b)}registerOscHandler(L,b){return this._inputHandler.registerOscHandler(L,b)}_setup(){this._handleWindowsPtyOptionChange()}reset(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this.coreService.reset(),this.coreMouseService.reset()}_handleWindowsPtyOptionChange(){let L=!1;const b=this.optionsService.rawOptions.windowsPty;b&&b.buildNumber!==void 0&&b.buildNumber!==void 0?L=b.backend==="conpty"&&b.buildNumber<21376:this.optionsService.rawOptions.windowsMode&&(L=!0),L?this._enableWindowsWrappingHeuristics():this._windowsWrappingHeuristics.clear()}_enableWindowsWrappingHeuristics(){if(!this._windowsWrappingHeuristics.value){const L=[];L.push(this.onLineFeed(a.updateWindowsModeWrappedState.bind(null,this._bufferService))),L.push(this.registerCsiHandler({final:"H"},()=>((0,a.updateWindowsModeWrappedState)(this._bufferService),!1))),this._windowsWrappingHeuristics.value=(0,c.toDisposable)(()=>{for(const b of L)b.dispose()})}}}r.CoreTerminal=v},8460:(M,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.forwardEvent=r.EventEmitter=void 0,r.EventEmitter=class{constructor(){this._listeners=[],this._disposed=!1}get event(){return this._event||(this._event=o=>(this._listeners.push(o),{dispose:()=>{if(!this._disposed){for(let c=0;cc.fire(g))}},5435:function(M,r,o){var c=this&&this.__decorate||function(O,C,y,k){var D,I=arguments.length,H=I<3?C:k===null?k=Object.getOwnPropertyDescriptor(C,y):k;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")H=Reflect.decorate(O,C,y,k);else for(var U=O.length-1;U>=0;U--)(D=O[U])&&(H=(I<3?D(H):I>3?D(C,y,H):D(C,y))||H);return I>3&&H&&Object.defineProperty(C,y,H),H},g=this&&this.__param||function(O,C){return function(y,k){C(y,k,O)}};Object.defineProperty(r,"__esModule",{value:!0}),r.InputHandler=r.WindowsOptionsReportType=void 0;const n=o(2584),h=o(7116),_=o(2015),f=o(844),u=o(482),e=o(8437),i=o(8460),t=o(643),s=o(511),a=o(3734),d=o(2585),p=o(6242),m=o(6351),l=o(5941),v={"(":0,")":1,"*":2,"+":3,"-":1,".":2},w=131072;function L(O,C){if(O>24)return C.setWinLines||!1;switch(O){case 1:return!!C.restoreWin;case 2:return!!C.minimizeWin;case 3:return!!C.setWinPosition;case 4:return!!C.setWinSizePixels;case 5:return!!C.raiseWin;case 6:return!!C.lowerWin;case 7:return!!C.refreshWin;case 8:return!!C.setWinSizeChars;case 9:return!!C.maximizeWin;case 10:return!!C.fullscreenWin;case 11:return!!C.getWinState;case 13:return!!C.getWinPosition;case 14:return!!C.getWinSizePixels;case 15:return!!C.getScreenSizePixels;case 16:return!!C.getCellSizePixels;case 18:return!!C.getWinSizeChars;case 19:return!!C.getScreenSizeChars;case 20:return!!C.getIconTitle;case 21:return!!C.getWinTitle;case 22:return!!C.pushTitle;case 23:return!!C.popTitle;case 24:return!!C.setWinLines}return!1}var b;(function(O){O[O.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",O[O.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"})(b||(r.WindowsOptionsReportType=b={}));let E=0;class x extends f.Disposable{getAttrData(){return this._curAttrData}constructor(C,y,k,D,I,H,U,W,K=new _.EscapeSequenceParser){super(),this._bufferService=C,this._charsetService=y,this._coreService=k,this._logService=D,this._optionsService=I,this._oscLinkService=H,this._coreMouseService=U,this._unicodeService=W,this._parser=K,this._parseBuffer=new Uint32Array(4096),this._stringDecoder=new u.StringToUtf32,this._utf8Decoder=new u.Utf8ToUtf32,this._workCell=new s.CellData,this._windowTitle="",this._iconName="",this._windowTitleStack=[],this._iconNameStack=[],this._curAttrData=e.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=e.DEFAULT_ATTR_DATA.clone(),this._onRequestBell=this.register(new i.EventEmitter),this.onRequestBell=this._onRequestBell.event,this._onRequestRefreshRows=this.register(new i.EventEmitter),this.onRequestRefreshRows=this._onRequestRefreshRows.event,this._onRequestReset=this.register(new i.EventEmitter),this.onRequestReset=this._onRequestReset.event,this._onRequestSendFocus=this.register(new i.EventEmitter),this.onRequestSendFocus=this._onRequestSendFocus.event,this._onRequestSyncScrollBar=this.register(new i.EventEmitter),this.onRequestSyncScrollBar=this._onRequestSyncScrollBar.event,this._onRequestWindowsOptionsReport=this.register(new i.EventEmitter),this.onRequestWindowsOptionsReport=this._onRequestWindowsOptionsReport.event,this._onA11yChar=this.register(new i.EventEmitter),this.onA11yChar=this._onA11yChar.event,this._onA11yTab=this.register(new i.EventEmitter),this.onA11yTab=this._onA11yTab.event,this._onCursorMove=this.register(new i.EventEmitter),this.onCursorMove=this._onCursorMove.event,this._onLineFeed=this.register(new i.EventEmitter),this.onLineFeed=this._onLineFeed.event,this._onScroll=this.register(new i.EventEmitter),this.onScroll=this._onScroll.event,this._onTitleChange=this.register(new i.EventEmitter),this.onTitleChange=this._onTitleChange.event,this._onColor=this.register(new i.EventEmitter),this.onColor=this._onColor.event,this._parseStack={paused:!1,cursorStartX:0,cursorStartY:0,decodedLength:0,position:0},this._specialColors=[256,257,258],this.register(this._parser),this._dirtyRowTracker=new T(this._bufferService),this._activeBuffer=this._bufferService.buffer,this.register(this._bufferService.buffers.onBufferActivate(S=>this._activeBuffer=S.activeBuffer)),this._parser.setCsiHandlerFallback((S,R)=>{this._logService.debug("Unknown CSI code: ",{identifier:this._parser.identToString(S),params:R.toArray()})}),this._parser.setEscHandlerFallback(S=>{this._logService.debug("Unknown ESC code: ",{identifier:this._parser.identToString(S)})}),this._parser.setExecuteHandlerFallback(S=>{this._logService.debug("Unknown EXECUTE code: ",{code:S})}),this._parser.setOscHandlerFallback((S,R,B)=>{this._logService.debug("Unknown OSC code: ",{identifier:S,action:R,data:B})}),this._parser.setDcsHandlerFallback((S,R,B)=>{R==="HOOK"&&(B=B.toArray()),this._logService.debug("Unknown DCS code: ",{identifier:this._parser.identToString(S),action:R,payload:B})}),this._parser.setPrintHandler((S,R,B)=>this.print(S,R,B)),this._parser.registerCsiHandler({final:"@"},S=>this.insertChars(S)),this._parser.registerCsiHandler({intermediates:" ",final:"@"},S=>this.scrollLeft(S)),this._parser.registerCsiHandler({final:"A"},S=>this.cursorUp(S)),this._parser.registerCsiHandler({intermediates:" ",final:"A"},S=>this.scrollRight(S)),this._parser.registerCsiHandler({final:"B"},S=>this.cursorDown(S)),this._parser.registerCsiHandler({final:"C"},S=>this.cursorForward(S)),this._parser.registerCsiHandler({final:"D"},S=>this.cursorBackward(S)),this._parser.registerCsiHandler({final:"E"},S=>this.cursorNextLine(S)),this._parser.registerCsiHandler({final:"F"},S=>this.cursorPrecedingLine(S)),this._parser.registerCsiHandler({final:"G"},S=>this.cursorCharAbsolute(S)),this._parser.registerCsiHandler({final:"H"},S=>this.cursorPosition(S)),this._parser.registerCsiHandler({final:"I"},S=>this.cursorForwardTab(S)),this._parser.registerCsiHandler({final:"J"},S=>this.eraseInDisplay(S,!1)),this._parser.registerCsiHandler({prefix:"?",final:"J"},S=>this.eraseInDisplay(S,!0)),this._parser.registerCsiHandler({final:"K"},S=>this.eraseInLine(S,!1)),this._parser.registerCsiHandler({prefix:"?",final:"K"},S=>this.eraseInLine(S,!0)),this._parser.registerCsiHandler({final:"L"},S=>this.insertLines(S)),this._parser.registerCsiHandler({final:"M"},S=>this.deleteLines(S)),this._parser.registerCsiHandler({final:"P"},S=>this.deleteChars(S)),this._parser.registerCsiHandler({final:"S"},S=>this.scrollUp(S)),this._parser.registerCsiHandler({final:"T"},S=>this.scrollDown(S)),this._parser.registerCsiHandler({final:"X"},S=>this.eraseChars(S)),this._parser.registerCsiHandler({final:"Z"},S=>this.cursorBackwardTab(S)),this._parser.registerCsiHandler({final:"`"},S=>this.charPosAbsolute(S)),this._parser.registerCsiHandler({final:"a"},S=>this.hPositionRelative(S)),this._parser.registerCsiHandler({final:"b"},S=>this.repeatPrecedingCharacter(S)),this._parser.registerCsiHandler({final:"c"},S=>this.sendDeviceAttributesPrimary(S)),this._parser.registerCsiHandler({prefix:">",final:"c"},S=>this.sendDeviceAttributesSecondary(S)),this._parser.registerCsiHandler({final:"d"},S=>this.linePosAbsolute(S)),this._parser.registerCsiHandler({final:"e"},S=>this.vPositionRelative(S)),this._parser.registerCsiHandler({final:"f"},S=>this.hVPosition(S)),this._parser.registerCsiHandler({final:"g"},S=>this.tabClear(S)),this._parser.registerCsiHandler({final:"h"},S=>this.setMode(S)),this._parser.registerCsiHandler({prefix:"?",final:"h"},S=>this.setModePrivate(S)),this._parser.registerCsiHandler({final:"l"},S=>this.resetMode(S)),this._parser.registerCsiHandler({prefix:"?",final:"l"},S=>this.resetModePrivate(S)),this._parser.registerCsiHandler({final:"m"},S=>this.charAttributes(S)),this._parser.registerCsiHandler({final:"n"},S=>this.deviceStatus(S)),this._parser.registerCsiHandler({prefix:"?",final:"n"},S=>this.deviceStatusPrivate(S)),this._parser.registerCsiHandler({intermediates:"!",final:"p"},S=>this.softReset(S)),this._parser.registerCsiHandler({intermediates:" ",final:"q"},S=>this.setCursorStyle(S)),this._parser.registerCsiHandler({final:"r"},S=>this.setScrollRegion(S)),this._parser.registerCsiHandler({final:"s"},S=>this.saveCursor(S)),this._parser.registerCsiHandler({final:"t"},S=>this.windowOptions(S)),this._parser.registerCsiHandler({final:"u"},S=>this.restoreCursor(S)),this._parser.registerCsiHandler({intermediates:"'",final:"}"},S=>this.insertColumns(S)),this._parser.registerCsiHandler({intermediates:"'",final:"~"},S=>this.deleteColumns(S)),this._parser.registerCsiHandler({intermediates:'"',final:"q"},S=>this.selectProtected(S)),this._parser.registerCsiHandler({intermediates:"$",final:"p"},S=>this.requestMode(S,!0)),this._parser.registerCsiHandler({prefix:"?",intermediates:"$",final:"p"},S=>this.requestMode(S,!1)),this._parser.setExecuteHandler(n.C0.BEL,()=>this.bell()),this._parser.setExecuteHandler(n.C0.LF,()=>this.lineFeed()),this._parser.setExecuteHandler(n.C0.VT,()=>this.lineFeed()),this._parser.setExecuteHandler(n.C0.FF,()=>this.lineFeed()),this._parser.setExecuteHandler(n.C0.CR,()=>this.carriageReturn()),this._parser.setExecuteHandler(n.C0.BS,()=>this.backspace()),this._parser.setExecuteHandler(n.C0.HT,()=>this.tab()),this._parser.setExecuteHandler(n.C0.SO,()=>this.shiftOut()),this._parser.setExecuteHandler(n.C0.SI,()=>this.shiftIn()),this._parser.setExecuteHandler(n.C1.IND,()=>this.index()),this._parser.setExecuteHandler(n.C1.NEL,()=>this.nextLine()),this._parser.setExecuteHandler(n.C1.HTS,()=>this.tabSet()),this._parser.registerOscHandler(0,new p.OscHandler(S=>(this.setTitle(S),this.setIconName(S),!0))),this._parser.registerOscHandler(1,new p.OscHandler(S=>this.setIconName(S))),this._parser.registerOscHandler(2,new p.OscHandler(S=>this.setTitle(S))),this._parser.registerOscHandler(4,new p.OscHandler(S=>this.setOrReportIndexedColor(S))),this._parser.registerOscHandler(8,new p.OscHandler(S=>this.setHyperlink(S))),this._parser.registerOscHandler(10,new p.OscHandler(S=>this.setOrReportFgColor(S))),this._parser.registerOscHandler(11,new p.OscHandler(S=>this.setOrReportBgColor(S))),this._parser.registerOscHandler(12,new p.OscHandler(S=>this.setOrReportCursorColor(S))),this._parser.registerOscHandler(104,new p.OscHandler(S=>this.restoreIndexedColor(S))),this._parser.registerOscHandler(110,new p.OscHandler(S=>this.restoreFgColor(S))),this._parser.registerOscHandler(111,new p.OscHandler(S=>this.restoreBgColor(S))),this._parser.registerOscHandler(112,new p.OscHandler(S=>this.restoreCursorColor(S))),this._parser.registerEscHandler({final:"7"},()=>this.saveCursor()),this._parser.registerEscHandler({final:"8"},()=>this.restoreCursor()),this._parser.registerEscHandler({final:"D"},()=>this.index()),this._parser.registerEscHandler({final:"E"},()=>this.nextLine()),this._parser.registerEscHandler({final:"H"},()=>this.tabSet()),this._parser.registerEscHandler({final:"M"},()=>this.reverseIndex()),this._parser.registerEscHandler({final:"="},()=>this.keypadApplicationMode()),this._parser.registerEscHandler({final:">"},()=>this.keypadNumericMode()),this._parser.registerEscHandler({final:"c"},()=>this.fullReset()),this._parser.registerEscHandler({final:"n"},()=>this.setgLevel(2)),this._parser.registerEscHandler({final:"o"},()=>this.setgLevel(3)),this._parser.registerEscHandler({final:"|"},()=>this.setgLevel(3)),this._parser.registerEscHandler({final:"}"},()=>this.setgLevel(2)),this._parser.registerEscHandler({final:"~"},()=>this.setgLevel(1)),this._parser.registerEscHandler({intermediates:"%",final:"@"},()=>this.selectDefaultCharset()),this._parser.registerEscHandler({intermediates:"%",final:"G"},()=>this.selectDefaultCharset());for(const S in h.CHARSETS)this._parser.registerEscHandler({intermediates:"(",final:S},()=>this.selectCharset("("+S)),this._parser.registerEscHandler({intermediates:")",final:S},()=>this.selectCharset(")"+S)),this._parser.registerEscHandler({intermediates:"*",final:S},()=>this.selectCharset("*"+S)),this._parser.registerEscHandler({intermediates:"+",final:S},()=>this.selectCharset("+"+S)),this._parser.registerEscHandler({intermediates:"-",final:S},()=>this.selectCharset("-"+S)),this._parser.registerEscHandler({intermediates:".",final:S},()=>this.selectCharset("."+S)),this._parser.registerEscHandler({intermediates:"/",final:S},()=>this.selectCharset("/"+S));this._parser.registerEscHandler({intermediates:"#",final:"8"},()=>this.screenAlignmentPattern()),this._parser.setErrorHandler(S=>(this._logService.error("Parsing error: ",S),S)),this._parser.registerDcsHandler({intermediates:"$",final:"q"},new m.DcsHandler((S,R)=>this.requestStatusString(S,R)))}_preserveStack(C,y,k,D){this._parseStack.paused=!0,this._parseStack.cursorStartX=C,this._parseStack.cursorStartY=y,this._parseStack.decodedLength=k,this._parseStack.position=D}_logSlowResolvingAsync(C){this._logService.logLevel<=d.LogLevelEnum.WARN&&Promise.race([C,new Promise((y,k)=>setTimeout(()=>k("#SLOW_TIMEOUT"),5e3))]).catch(y=>{if(y!=="#SLOW_TIMEOUT")throw y;console.warn("async parser handler taking longer than 5000 ms")})}_getCurrentLinkId(){return this._curAttrData.extended.urlId}parse(C,y){let k,D=this._activeBuffer.x,I=this._activeBuffer.y,H=0;const U=this._parseStack.paused;if(U){if(k=this._parser.parse(this._parseBuffer,this._parseStack.decodedLength,y))return this._logSlowResolvingAsync(k),k;D=this._parseStack.cursorStartX,I=this._parseStack.cursorStartY,this._parseStack.paused=!1,C.length>w&&(H=this._parseStack.position+w)}if(this._logService.logLevel<=d.LogLevelEnum.DEBUG&&this._logService.debug("parsing data"+(typeof C=="string"?` "${C}"`:` "${Array.prototype.map.call(C,W=>String.fromCharCode(W)).join("")}"`),typeof C=="string"?C.split("").map(W=>W.charCodeAt(0)):C),this._parseBuffer.lengthw)for(let W=H;W0&&B.getWidth(this._activeBuffer.x-1)===2&&B.setCellFromCodePoint(this._activeBuffer.x-1,0,1,R.fg,R.bg,R.extended);for(let A=y;A=W){if(K){for(;this._activeBuffer.x=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!0),B=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y)}else if(this._activeBuffer.x=W-1,I===2)continue}if(S&&(B.insertCells(this._activeBuffer.x,I,this._activeBuffer.getNullCell(R),R),B.getWidth(W-1)===2&&B.setCellFromCodePoint(W-1,t.NULL_CELL_CODE,t.NULL_CELL_WIDTH,R.fg,R.bg,R.extended)),B.setCellFromCodePoint(this._activeBuffer.x++,D,I,R.fg,R.bg,R.extended),I>0)for(;--I;)B.setCellFromCodePoint(this._activeBuffer.x++,0,0,R.fg,R.bg,R.extended)}else B.getWidth(this._activeBuffer.x-1)?B.addCodepointToCell(this._activeBuffer.x-1,D):B.addCodepointToCell(this._activeBuffer.x-2,D)}k-y>0&&(B.loadCell(this._activeBuffer.x-1,this._workCell),this._workCell.getWidth()===2||this._workCell.getCode()>65535?this._parser.precedingCodepoint=0:this._workCell.isCombined()?this._parser.precedingCodepoint=this._workCell.getChars().charCodeAt(0):this._parser.precedingCodepoint=this._workCell.content),this._activeBuffer.x0&&B.getWidth(this._activeBuffer.x)===0&&!B.hasContent(this._activeBuffer.x)&&B.setCellFromCodePoint(this._activeBuffer.x,0,1,R.fg,R.bg,R.extended),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}registerCsiHandler(C,y){return C.final!=="t"||C.prefix||C.intermediates?this._parser.registerCsiHandler(C,y):this._parser.registerCsiHandler(C,k=>!L(k.params[0],this._optionsService.rawOptions.windowOptions)||y(k))}registerDcsHandler(C,y){return this._parser.registerDcsHandler(C,new m.DcsHandler(y))}registerEscHandler(C,y){return this._parser.registerEscHandler(C,y)}registerOscHandler(C,y){return this._parser.registerOscHandler(C,new p.OscHandler(y))}bell(){return this._onRequestBell.fire(),!0}lineFeed(){return this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._optionsService.rawOptions.convertEol&&(this._activeBuffer.x=0),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows?this._activeBuffer.y=this._bufferService.rows-1:this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.x>=this._bufferService.cols&&this._activeBuffer.x--,this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._onLineFeed.fire(),!0}carriageReturn(){return this._activeBuffer.x=0,!0}backspace(){var C;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),this._activeBuffer.x>0&&this._activeBuffer.x--,!0;if(this._restrictCursor(this._bufferService.cols),this._activeBuffer.x>0)this._activeBuffer.x--;else if(this._activeBuffer.x===0&&this._activeBuffer.y>this._activeBuffer.scrollTop&&this._activeBuffer.y<=this._activeBuffer.scrollBottom&&(!((C=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y))===null||C===void 0)&&C.isWrapped)){this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.y--,this._activeBuffer.x=this._bufferService.cols-1;const y=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);y.hasWidth(this._activeBuffer.x)&&!y.hasContent(this._activeBuffer.x)&&this._activeBuffer.x--}return this._restrictCursor(),!0}tab(){if(this._activeBuffer.x>=this._bufferService.cols)return!0;const C=this._activeBuffer.x;return this._activeBuffer.x=this._activeBuffer.nextStop(),this._optionsService.rawOptions.screenReaderMode&&this._onA11yTab.fire(this._activeBuffer.x-C),!0}shiftOut(){return this._charsetService.setgLevel(1),!0}shiftIn(){return this._charsetService.setgLevel(0),!0}_restrictCursor(C=this._bufferService.cols-1){this._activeBuffer.x=Math.min(C,Math.max(0,this._activeBuffer.x)),this._activeBuffer.y=this._coreService.decPrivateModes.origin?Math.min(this._activeBuffer.scrollBottom,Math.max(this._activeBuffer.scrollTop,this._activeBuffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._activeBuffer.y)),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}_setCursor(C,y){this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._coreService.decPrivateModes.origin?(this._activeBuffer.x=C,this._activeBuffer.y=this._activeBuffer.scrollTop+y):(this._activeBuffer.x=C,this._activeBuffer.y=y),this._restrictCursor(),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}_moveCursor(C,y){this._restrictCursor(),this._setCursor(this._activeBuffer.x+C,this._activeBuffer.y+y)}cursorUp(C){const y=this._activeBuffer.y-this._activeBuffer.scrollTop;return y>=0?this._moveCursor(0,-Math.min(y,C.params[0]||1)):this._moveCursor(0,-(C.params[0]||1)),!0}cursorDown(C){const y=this._activeBuffer.scrollBottom-this._activeBuffer.y;return y>=0?this._moveCursor(0,Math.min(y,C.params[0]||1)):this._moveCursor(0,C.params[0]||1),!0}cursorForward(C){return this._moveCursor(C.params[0]||1,0),!0}cursorBackward(C){return this._moveCursor(-(C.params[0]||1),0),!0}cursorNextLine(C){return this.cursorDown(C),this._activeBuffer.x=0,!0}cursorPrecedingLine(C){return this.cursorUp(C),this._activeBuffer.x=0,!0}cursorCharAbsolute(C){return this._setCursor((C.params[0]||1)-1,this._activeBuffer.y),!0}cursorPosition(C){return this._setCursor(C.length>=2?(C.params[1]||1)-1:0,(C.params[0]||1)-1),!0}charPosAbsolute(C){return this._setCursor((C.params[0]||1)-1,this._activeBuffer.y),!0}hPositionRelative(C){return this._moveCursor(C.params[0]||1,0),!0}linePosAbsolute(C){return this._setCursor(this._activeBuffer.x,(C.params[0]||1)-1),!0}vPositionRelative(C){return this._moveCursor(0,C.params[0]||1),!0}hVPosition(C){return this.cursorPosition(C),!0}tabClear(C){const y=C.params[0];return y===0?delete this._activeBuffer.tabs[this._activeBuffer.x]:y===3&&(this._activeBuffer.tabs={}),!0}cursorForwardTab(C){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let y=C.params[0]||1;for(;y--;)this._activeBuffer.x=this._activeBuffer.nextStop();return!0}cursorBackwardTab(C){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let y=C.params[0]||1;for(;y--;)this._activeBuffer.x=this._activeBuffer.prevStop();return!0}selectProtected(C){const y=C.params[0];return y===1&&(this._curAttrData.bg|=536870912),y!==2&&y!==0||(this._curAttrData.bg&=-536870913),!0}_eraseInBufferLine(C,y,k,D=!1,I=!1){const H=this._activeBuffer.lines.get(this._activeBuffer.ybase+C);H.replaceCells(y,k,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData(),I),D&&(H.isWrapped=!1)}_resetBufferLine(C,y=!1){const k=this._activeBuffer.lines.get(this._activeBuffer.ybase+C);k&&(k.fill(this._activeBuffer.getNullCell(this._eraseAttrData()),y),this._bufferService.buffer.clearMarkers(this._activeBuffer.ybase+C),k.isWrapped=!1)}eraseInDisplay(C,y=!1){let k;switch(this._restrictCursor(this._bufferService.cols),C.params[0]){case 0:for(k=this._activeBuffer.y,this._dirtyRowTracker.markDirty(k),this._eraseInBufferLine(k++,this._activeBuffer.x,this._bufferService.cols,this._activeBuffer.x===0,y);k=this._bufferService.cols&&(this._activeBuffer.lines.get(k+1).isWrapped=!1);k--;)this._resetBufferLine(k,y);this._dirtyRowTracker.markDirty(0);break;case 2:for(k=this._bufferService.rows,this._dirtyRowTracker.markDirty(k-1);k--;)this._resetBufferLine(k,y);this._dirtyRowTracker.markDirty(0);break;case 3:const D=this._activeBuffer.lines.length-this._bufferService.rows;D>0&&(this._activeBuffer.lines.trimStart(D),this._activeBuffer.ybase=Math.max(this._activeBuffer.ybase-D,0),this._activeBuffer.ydisp=Math.max(this._activeBuffer.ydisp-D,0),this._onScroll.fire(0))}return!0}eraseInLine(C,y=!1){switch(this._restrictCursor(this._bufferService.cols),C.params[0]){case 0:this._eraseInBufferLine(this._activeBuffer.y,this._activeBuffer.x,this._bufferService.cols,this._activeBuffer.x===0,y);break;case 1:this._eraseInBufferLine(this._activeBuffer.y,0,this._activeBuffer.x+1,!1,y);break;case 2:this._eraseInBufferLine(this._activeBuffer.y,0,this._bufferService.cols,!0,y)}return this._dirtyRowTracker.markDirty(this._activeBuffer.y),!0}insertLines(C){this._restrictCursor();let y=C.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.y0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(n.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(n.C0.ESC+"[?6c")),!0}sendDeviceAttributesSecondary(C){return C.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(n.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(n.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(C.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(n.C0.ESC+"[>83;40003;0c")),!0}_is(C){return(this._optionsService.rawOptions.termName+"").indexOf(C)===0}setMode(C){for(let y=0;yj?1:2,A=C.params[0];return N=A,F=y?A===2?4:A===4?B(H.modes.insertMode):A===12?3:A===20?B(R.convertEol):0:A===1?B(k.applicationCursorKeys):A===3?R.windowOptions.setWinLines?W===80?2:W===132?1:0:0:A===6?B(k.origin):A===7?B(k.wraparound):A===8?3:A===9?B(D==="X10"):A===12?B(R.cursorBlink):A===25?B(!H.isCursorHidden):A===45?B(k.reverseWraparound):A===66?B(k.applicationKeypad):A===67?4:A===1e3?B(D==="VT200"):A===1002?B(D==="DRAG"):A===1003?B(D==="ANY"):A===1004?B(k.sendFocus):A===1005?4:A===1006?B(I==="SGR"):A===1015?4:A===1016?B(I==="SGR_PIXELS"):A===1048?1:A===47||A===1047||A===1049?B(K===S):A===2004?B(k.bracketedPasteMode):0,H.triggerDataEvent(`${n.C0.ESC}[${y?"":"?"}${N};${F}$y`),!0;var N,F}_updateAttrColor(C,y,k,D,I){return y===2?(C|=50331648,C&=-16777216,C|=a.AttributeData.fromColorRGB([k,D,I])):y===5&&(C&=-50331904,C|=33554432|255&k),C}_extractColor(C,y,k){const D=[0,0,-1,0,0,0];let I=0,H=0;do{if(D[H+I]=C.params[y+H],C.hasSubParams(y+H)){const U=C.getSubParams(y+H);let W=0;do D[1]===5&&(I=1),D[H+W+1+I]=U[W];while(++W=2||D[1]===2&&H+I>=5)break;D[1]&&(I=1)}while(++H+y5)&&(C=1),y.extended.underlineStyle=C,y.fg|=268435456,C===0&&(y.fg&=-268435457),y.updateExtended()}_processSGR0(C){C.fg=e.DEFAULT_ATTR_DATA.fg,C.bg=e.DEFAULT_ATTR_DATA.bg,C.extended=C.extended.clone(),C.extended.underlineStyle=0,C.extended.underlineColor&=-67108864,C.updateExtended()}charAttributes(C){if(C.length===1&&C.params[0]===0)return this._processSGR0(this._curAttrData),!0;const y=C.length;let k;const D=this._curAttrData;for(let I=0;I=30&&k<=37?(D.fg&=-50331904,D.fg|=16777216|k-30):k>=40&&k<=47?(D.bg&=-50331904,D.bg|=16777216|k-40):k>=90&&k<=97?(D.fg&=-50331904,D.fg|=16777224|k-90):k>=100&&k<=107?(D.bg&=-50331904,D.bg|=16777224|k-100):k===0?this._processSGR0(D):k===1?D.fg|=134217728:k===3?D.bg|=67108864:k===4?(D.fg|=268435456,this._processUnderline(C.hasSubParams(I)?C.getSubParams(I)[0]:1,D)):k===5?D.fg|=536870912:k===7?D.fg|=67108864:k===8?D.fg|=1073741824:k===9?D.fg|=2147483648:k===2?D.bg|=134217728:k===21?this._processUnderline(2,D):k===22?(D.fg&=-134217729,D.bg&=-134217729):k===23?D.bg&=-67108865:k===24?(D.fg&=-268435457,this._processUnderline(0,D)):k===25?D.fg&=-536870913:k===27?D.fg&=-67108865:k===28?D.fg&=-1073741825:k===29?D.fg&=2147483647:k===39?(D.fg&=-67108864,D.fg|=16777215&e.DEFAULT_ATTR_DATA.fg):k===49?(D.bg&=-67108864,D.bg|=16777215&e.DEFAULT_ATTR_DATA.bg):k===38||k===48||k===58?I+=this._extractColor(C,I,D):k===53?D.bg|=1073741824:k===55?D.bg&=-1073741825:k===59?(D.extended=D.extended.clone(),D.extended.underlineColor=-1,D.updateExtended()):k===100?(D.fg&=-67108864,D.fg|=16777215&e.DEFAULT_ATTR_DATA.fg,D.bg&=-67108864,D.bg|=16777215&e.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",k);return!0}deviceStatus(C){switch(C.params[0]){case 5:this._coreService.triggerDataEvent(`${n.C0.ESC}[0n`);break;case 6:const y=this._activeBuffer.y+1,k=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${n.C0.ESC}[${y};${k}R`)}return!0}deviceStatusPrivate(C){if(C.params[0]===6){const y=this._activeBuffer.y+1,k=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${n.C0.ESC}[?${y};${k}R`)}return!0}softReset(C){return this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._activeBuffer.scrollTop=0,this._activeBuffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=e.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._activeBuffer.savedX=0,this._activeBuffer.savedY=this._activeBuffer.ybase,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1,!0}setCursorStyle(C){const y=C.params[0]||1;switch(y){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}const k=y%2==1;return this._optionsService.options.cursorBlink=k,!0}setScrollRegion(C){const y=C.params[0]||1;let k;return(C.length<2||(k=C.params[1])>this._bufferService.rows||k===0)&&(k=this._bufferService.rows),k>y&&(this._activeBuffer.scrollTop=y-1,this._activeBuffer.scrollBottom=k-1,this._setCursor(0,0)),!0}windowOptions(C){if(!L(C.params[0],this._optionsService.rawOptions.windowOptions))return!0;const y=C.length>1?C.params[1]:0;switch(C.params[0]){case 14:y!==2&&this._onRequestWindowsOptionsReport.fire(b.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(b.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(`${n.C0.ESC}[8;${this._bufferService.rows};${this._bufferService.cols}t`);break;case 22:y!==0&&y!==2||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),y!==0&&y!==1||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:y!==0&&y!==2||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),y!==0&&y!==1||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}return!0}saveCursor(C){return this._activeBuffer.savedX=this._activeBuffer.x,this._activeBuffer.savedY=this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,!0}restoreCursor(C){return this._activeBuffer.x=this._activeBuffer.savedX||0,this._activeBuffer.y=Math.max(this._activeBuffer.savedY-this._activeBuffer.ybase,0),this._curAttrData.fg=this._activeBuffer.savedCurAttrData.fg,this._curAttrData.bg=this._activeBuffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._activeBuffer.savedCharset&&(this._charsetService.charset=this._activeBuffer.savedCharset),this._restrictCursor(),!0}setTitle(C){return this._windowTitle=C,this._onTitleChange.fire(C),!0}setIconName(C){return this._iconName=C,!0}setOrReportIndexedColor(C){const y=[],k=C.split(";");for(;k.length>1;){const D=k.shift(),I=k.shift();if(/^\d+$/.exec(D)){const H=parseInt(D);if(P(H))if(I==="?")y.push({type:0,index:H});else{const U=(0,l.parseColor)(I);U&&y.push({type:1,index:H,color:U})}}}return y.length&&this._onColor.fire(y),!0}setHyperlink(C){const y=C.split(";");return!(y.length<2)&&(y[1]?this._createHyperlink(y[0],y[1]):!y[0]&&this._finishHyperlink())}_createHyperlink(C,y){this._getCurrentLinkId()&&this._finishHyperlink();const k=C.split(":");let D;const I=k.findIndex(H=>H.startsWith("id="));return I!==-1&&(D=k[I].slice(3)||void 0),this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=this._oscLinkService.registerLink({id:D,uri:y}),this._curAttrData.updateExtended(),!0}_finishHyperlink(){return this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=0,this._curAttrData.updateExtended(),!0}_setOrReportSpecialColor(C,y){const k=C.split(";");for(let D=0;D=this._specialColors.length);++D,++y)if(k[D]==="?")this._onColor.fire([{type:0,index:this._specialColors[y]}]);else{const I=(0,l.parseColor)(k[D]);I&&this._onColor.fire([{type:1,index:this._specialColors[y],color:I}])}return!0}setOrReportFgColor(C){return this._setOrReportSpecialColor(C,0)}setOrReportBgColor(C){return this._setOrReportSpecialColor(C,1)}setOrReportCursorColor(C){return this._setOrReportSpecialColor(C,2)}restoreIndexedColor(C){if(!C)return this._onColor.fire([{type:2}]),!0;const y=[],k=C.split(";");for(let D=0;D=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._restrictCursor(),!0}tabSet(){return this._activeBuffer.tabs[this._activeBuffer.x]=!0,!0}reverseIndex(){if(this._restrictCursor(),this._activeBuffer.y===this._activeBuffer.scrollTop){const C=this._activeBuffer.scrollBottom-this._activeBuffer.scrollTop;this._activeBuffer.lines.shiftElements(this._activeBuffer.ybase+this._activeBuffer.y,C,1),this._activeBuffer.lines.set(this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.getBlankLine(this._eraseAttrData())),this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom)}else this._activeBuffer.y--,this._restrictCursor();return!0}fullReset(){return this._parser.reset(),this._onRequestReset.fire(),!0}reset(){this._curAttrData=e.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=e.DEFAULT_ATTR_DATA.clone()}_eraseAttrData(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal}setgLevel(C){return this._charsetService.setgLevel(C),!0}screenAlignmentPattern(){const C=new s.CellData;C.content=4194373,C.fg=this._curAttrData.fg,C.bg=this._curAttrData.bg,this._setCursor(0,0);for(let y=0;y(this._coreService.triggerDataEvent(`${n.C0.ESC}${I}${n.C0.ESC}\\`),!0))(C==='"q'?`P1$r${this._curAttrData.isProtected()?1:0}"q`:C==='"p'?'P1$r61;1"p':C==="r"?`P1$r${k.scrollTop+1};${k.scrollBottom+1}r`:C==="m"?"P1$r0m":C===" q"?`P1$r${{block:2,underline:4,bar:6}[D.cursorStyle]-(D.cursorBlink?1:0)} q`:"P0$r")}markRangeDirty(C,y){this._dirtyRowTracker.markRangeDirty(C,y)}}r.InputHandler=x;let T=class{constructor(O){this._bufferService=O,this.clearRange()}clearRange(){this.start=this._bufferService.buffer.y,this.end=this._bufferService.buffer.y}markDirty(O){Othis.end&&(this.end=O)}markRangeDirty(O,C){O>C&&(E=O,O=C,C=E),Othis.end&&(this.end=C)}markAllDirty(){this.markRangeDirty(0,this._bufferService.rows-1)}};function P(O){return 0<=O&&O<256}T=c([g(0,d.IBufferService)],T)},844:(M,r)=>{function o(c){for(const g of c)g.dispose();c.length=0}Object.defineProperty(r,"__esModule",{value:!0}),r.getDisposeArrayDisposable=r.disposeArray=r.toDisposable=r.MutableDisposable=r.Disposable=void 0,r.Disposable=class{constructor(){this._disposables=[],this._isDisposed=!1}dispose(){this._isDisposed=!0;for(const c of this._disposables)c.dispose();this._disposables.length=0}register(c){return this._disposables.push(c),c}unregister(c){const g=this._disposables.indexOf(c);g!==-1&&this._disposables.splice(g,1)}},r.MutableDisposable=class{constructor(){this._isDisposed=!1}get value(){return this._isDisposed?void 0:this._value}set value(c){var g;this._isDisposed||c===this._value||((g=this._value)===null||g===void 0||g.dispose(),this._value=c)}clear(){this.value=void 0}dispose(){var c;this._isDisposed=!0,(c=this._value)===null||c===void 0||c.dispose(),this._value=void 0}},r.toDisposable=function(c){return{dispose:c}},r.disposeArray=o,r.getDisposeArrayDisposable=function(c){return{dispose:()=>o(c)}}},1505:(M,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.FourKeyMap=r.TwoKeyMap=void 0;class o{constructor(){this._data={}}set(g,n,h){this._data[g]||(this._data[g]={}),this._data[g][n]=h}get(g,n){return this._data[g]?this._data[g][n]:void 0}clear(){this._data={}}}r.TwoKeyMap=o,r.FourKeyMap=class{constructor(){this._data=new o}set(c,g,n,h,_){this._data.get(c,g)||this._data.set(c,g,new o),this._data.get(c,g).set(n,h,_)}get(c,g,n,h){var _;return(_=this._data.get(c,g))===null||_===void 0?void 0:_.get(n,h)}clear(){this._data.clear()}}},6114:(M,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.isChromeOS=r.isLinux=r.isWindows=r.isIphone=r.isIpad=r.isMac=r.getSafariVersion=r.isSafari=r.isLegacyEdge=r.isFirefox=r.isNode=void 0,r.isNode=typeof navigator>"u";const o=r.isNode?"node":navigator.userAgent,c=r.isNode?"node":navigator.platform;r.isFirefox=o.includes("Firefox"),r.isLegacyEdge=o.includes("Edge"),r.isSafari=/^((?!chrome|android).)*safari/i.test(o),r.getSafariVersion=function(){if(!r.isSafari)return 0;const g=o.match(/Version\/(\d+)/);return g===null||g.length<2?0:parseInt(g[1])},r.isMac=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(c),r.isIpad=c==="iPad",r.isIphone=c==="iPhone",r.isWindows=["Windows","Win16","Win32","WinCE"].includes(c),r.isLinux=c.indexOf("Linux")>=0,r.isChromeOS=/\bCrOS\b/.test(o)},6106:(M,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.SortedList=void 0;let o=0;r.SortedList=class{constructor(c){this._getKey=c,this._array=[]}clear(){this._array.length=0}insert(c){this._array.length!==0?(o=this._search(this._getKey(c)),this._array.splice(o,0,c)):this._array.push(c)}delete(c){if(this._array.length===0)return!1;const g=this._getKey(c);if(g===void 0||(o=this._search(g),o===-1)||this._getKey(this._array[o])!==g)return!1;do if(this._array[o]===c)return this._array.splice(o,1),!0;while(++o=this._array.length)&&this._getKey(this._array[o])===c))do yield this._array[o];while(++o=this._array.length)&&this._getKey(this._array[o])===c))do g(this._array[o]);while(++o=g;){let h=g+n>>1;const _=this._getKey(this._array[h]);if(_>c)n=h-1;else{if(!(_0&&this._getKey(this._array[h-1])===c;)h--;return h}g=h+1}}return g}}},7226:(M,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.DebouncedIdleTask=r.IdleTaskQueue=r.PriorityTaskQueue=void 0;const c=o(6114);class g{constructor(){this._tasks=[],this._i=0}enqueue(_){this._tasks.push(_),this._start()}flush(){for(;this._ii)return e-f<-20&&console.warn(`task queue exceeded allotted deadline by ${Math.abs(Math.round(e-f))}ms`),void this._start();e=i}this.clear()}}class n extends g{_requestCallback(_){return setTimeout(()=>_(this._createDeadline(16)))}_cancelCallback(_){clearTimeout(_)}_createDeadline(_){const f=Date.now()+_;return{timeRemaining:()=>Math.max(0,f-Date.now())}}}r.PriorityTaskQueue=n,r.IdleTaskQueue=!c.isNode&&"requestIdleCallback"in window?class extends g{_requestCallback(h){return requestIdleCallback(h)}_cancelCallback(h){cancelIdleCallback(h)}}:n,r.DebouncedIdleTask=class{constructor(){this._queue=new r.IdleTaskQueue}set(h){this._queue.clear(),this._queue.enqueue(h)}flush(){this._queue.flush()}}},9282:(M,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.updateWindowsModeWrappedState=void 0;const c=o(643);r.updateWindowsModeWrappedState=function(g){const n=g.buffer.lines.get(g.buffer.ybase+g.buffer.y-1),h=n==null?void 0:n.get(g.cols-1),_=g.buffer.lines.get(g.buffer.ybase+g.buffer.y);_&&h&&(_.isWrapped=h[c.CHAR_DATA_CODE_INDEX]!==c.NULL_CELL_CODE&&h[c.CHAR_DATA_CODE_INDEX]!==c.WHITESPACE_CELL_CODE)}},3734:(M,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.ExtendedAttrs=r.AttributeData=void 0;class o{constructor(){this.fg=0,this.bg=0,this.extended=new c}static toColorRGB(n){return[n>>>16&255,n>>>8&255,255&n]}static fromColorRGB(n){return(255&n[0])<<16|(255&n[1])<<8|255&n[2]}clone(){const n=new o;return n.fg=this.fg,n.bg=this.bg,n.extended=this.extended.clone(),n}isInverse(){return 67108864&this.fg}isBold(){return 134217728&this.fg}isUnderline(){return this.hasExtendedAttrs()&&this.extended.underlineStyle!==0?1:268435456&this.fg}isBlink(){return 536870912&this.fg}isInvisible(){return 1073741824&this.fg}isItalic(){return 67108864&this.bg}isDim(){return 134217728&this.bg}isStrikethrough(){return 2147483648&this.fg}isProtected(){return 536870912&this.bg}isOverline(){return 1073741824&this.bg}getFgColorMode(){return 50331648&this.fg}getBgColorMode(){return 50331648&this.bg}isFgRGB(){return(50331648&this.fg)==50331648}isBgRGB(){return(50331648&this.bg)==50331648}isFgPalette(){return(50331648&this.fg)==16777216||(50331648&this.fg)==33554432}isBgPalette(){return(50331648&this.bg)==16777216||(50331648&this.bg)==33554432}isFgDefault(){return(50331648&this.fg)==0}isBgDefault(){return(50331648&this.bg)==0}isAttributeDefault(){return this.fg===0&&this.bg===0}getFgColor(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}}getBgColor(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}}hasExtendedAttrs(){return 268435456&this.bg}updateExtended(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456}getUnderlineColor(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()}getUnderlineColorMode(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()}isUnderlineColorRGB(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==50331648:this.isFgRGB()}isUnderlineColorPalette(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==16777216||(50331648&this.extended.underlineColor)==33554432:this.isFgPalette()}isUnderlineColorDefault(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==0:this.isFgDefault()}getUnderlineStyle(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0}}r.AttributeData=o;class c{get ext(){return this._urlId?-469762049&this._ext|this.underlineStyle<<26:this._ext}set ext(n){this._ext=n}get underlineStyle(){return this._urlId?5:(469762048&this._ext)>>26}set underlineStyle(n){this._ext&=-469762049,this._ext|=n<<26&469762048}get underlineColor(){return 67108863&this._ext}set underlineColor(n){this._ext&=-67108864,this._ext|=67108863&n}get urlId(){return this._urlId}set urlId(n){this._urlId=n}constructor(n=0,h=0){this._ext=0,this._urlId=0,this._ext=n,this._urlId=h}clone(){return new c(this._ext,this._urlId)}isEmpty(){return this.underlineStyle===0&&this._urlId===0}}r.ExtendedAttrs=c},9092:(M,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.Buffer=r.MAX_BUFFER_SIZE=void 0;const c=o(6349),g=o(7226),n=o(3734),h=o(8437),_=o(4634),f=o(511),u=o(643),e=o(4863),i=o(7116);r.MAX_BUFFER_SIZE=4294967295,r.Buffer=class{constructor(t,s,a){this._hasScrollback=t,this._optionsService=s,this._bufferService=a,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.tabs={},this.savedY=0,this.savedX=0,this.savedCurAttrData=h.DEFAULT_ATTR_DATA.clone(),this.savedCharset=i.DEFAULT_CHARSET,this.markers=[],this._nullCell=f.CellData.fromCharData([0,u.NULL_CELL_CHAR,u.NULL_CELL_WIDTH,u.NULL_CELL_CODE]),this._whitespaceCell=f.CellData.fromCharData([0,u.WHITESPACE_CELL_CHAR,u.WHITESPACE_CELL_WIDTH,u.WHITESPACE_CELL_CODE]),this._isClearing=!1,this._memoryCleanupQueue=new g.IdleTaskQueue,this._memoryCleanupPosition=0,this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new c.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}getNullCell(t){return t?(this._nullCell.fg=t.fg,this._nullCell.bg=t.bg,this._nullCell.extended=t.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new n.ExtendedAttrs),this._nullCell}getWhitespaceCell(t){return t?(this._whitespaceCell.fg=t.fg,this._whitespaceCell.bg=t.bg,this._whitespaceCell.extended=t.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new n.ExtendedAttrs),this._whitespaceCell}getBlankLine(t,s){return new h.BufferLine(this._bufferService.cols,this.getNullCell(t),s)}get hasScrollback(){return this._hasScrollback&&this.lines.maxLength>this._rows}get isCursorInViewport(){const t=this.ybase+this.y-this.ydisp;return t>=0&&tr.MAX_BUFFER_SIZE?r.MAX_BUFFER_SIZE:s}fillViewportRows(t){if(this.lines.length===0){t===void 0&&(t=h.DEFAULT_ATTR_DATA);let s=this._rows;for(;s--;)this.lines.push(this.getBlankLine(t))}}clear(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new c.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}resize(t,s){const a=this.getNullCell(h.DEFAULT_ATTR_DATA);let d=0;const p=this._getCorrectBufferLength(s);if(p>this.lines.maxLength&&(this.lines.maxLength=p),this.lines.length>0){if(this._cols0&&this.lines.length<=this.ybase+this.y+m+1?(this.ybase--,m++,this.ydisp>0&&this.ydisp--):this.lines.push(new h.BufferLine(t,a)));else for(let l=this._rows;l>s;l--)this.lines.length>s+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(p0&&(this.lines.trimStart(l),this.ybase=Math.max(this.ybase-l,0),this.ydisp=Math.max(this.ydisp-l,0),this.savedY=Math.max(this.savedY-l,0)),this.lines.maxLength=p}this.x=Math.min(this.x,t-1),this.y=Math.min(this.y,s-1),m&&(this.y+=m),this.savedX=Math.min(this.savedX,t-1),this.scrollTop=0}if(this.scrollBottom=s-1,this._isReflowEnabled&&(this._reflow(t,s),this._cols>t))for(let m=0;m.1*this.lines.length&&(this._memoryCleanupPosition=0,this._memoryCleanupQueue.enqueue(()=>this._batchedMemoryCleanup()))}_batchedMemoryCleanup(){let t=!0;this._memoryCleanupPosition>=this.lines.length&&(this._memoryCleanupPosition=0,t=!1);let s=0;for(;this._memoryCleanupPosition100)return!0;return t}get _isReflowEnabled(){const t=this._optionsService.rawOptions.windowsPty;return t&&t.buildNumber?this._hasScrollback&&t.backend==="conpty"&&t.buildNumber>=21376:this._hasScrollback&&!this._optionsService.rawOptions.windowsMode}_reflow(t,s){this._cols!==t&&(t>this._cols?this._reflowLarger(t,s):this._reflowSmaller(t,s))}_reflowLarger(t,s){const a=(0,_.reflowLargerGetLinesToRemove)(this.lines,this._cols,t,this.ybase+this.y,this.getNullCell(h.DEFAULT_ATTR_DATA));if(a.length>0){const d=(0,_.reflowLargerCreateNewLayout)(this.lines,a);(0,_.reflowLargerApplyNewLayout)(this.lines,d.layout),this._reflowLargerAdjustViewport(t,s,d.countRemoved)}}_reflowLargerAdjustViewport(t,s,a){const d=this.getNullCell(h.DEFAULT_ATTR_DATA);let p=a;for(;p-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length=0;m--){let l=this.lines.get(m);if(!l||!l.isWrapped&&l.getTrimmedLength()<=t)continue;const v=[l];for(;l.isWrapped&&m>0;)l=this.lines.get(--m),v.unshift(l);const w=this.ybase+this.y;if(w>=m&&w0&&(d.push({start:m+v.length+p,newLines:T}),p+=T.length),v.push(...T);let P=b.length-1,O=b[P];O===0&&(P--,O=b[P]);let C=v.length-E-1,y=L;for(;C>=0;){const D=Math.min(y,O);if(v[P]===void 0)break;if(v[P].copyCellsFrom(v[C],y-D,O-D,D,!0),O-=D,O===0&&(P--,O=b[P]),y-=D,y===0){C--;const I=Math.max(C,0);y=(0,_.getWrappedLineTrimmedLength)(v,I,this._cols)}}for(let D=0;D0;)this.ybase===0?this.y0){const m=[],l=[];for(let P=0;P=0;P--)if(b&&b.start>w+E){for(let O=b.newLines.length-1;O>=0;O--)this.lines.set(P--,b.newLines[O]);P++,m.push({index:w+1,amount:b.newLines.length}),E+=b.newLines.length,b=d[++L]}else this.lines.set(P,l[w--]);let x=0;for(let P=m.length-1;P>=0;P--)m[P].index+=x,this.lines.onInsertEmitter.fire(m[P]),x+=m[P].amount;const T=Math.max(0,v+p-this.lines.maxLength);T>0&&this.lines.onTrimEmitter.fire(T)}}translateBufferLineToString(t,s,a=0,d){const p=this.lines.get(t);return p?p.translateToString(s,a,d):""}getWrappedRangeForLine(t){let s=t,a=t;for(;s>0&&this.lines.get(s).isWrapped;)s--;for(;a+10;);return t>=this._cols?this._cols-1:t<0?0:t}nextStop(t){for(t==null&&(t=this.x);!this.tabs[++t]&&t=this._cols?this._cols-1:t<0?0:t}clearMarkers(t){this._isClearing=!0;for(let s=0;s{s.line-=a,s.line<0&&s.dispose()})),s.register(this.lines.onInsert(a=>{s.line>=a.index&&(s.line+=a.amount)})),s.register(this.lines.onDelete(a=>{s.line>=a.index&&s.linea.index&&(s.line-=a.amount)})),s.register(s.onDispose(()=>this._removeMarker(s))),s}_removeMarker(t){this._isClearing||this.markers.splice(this.markers.indexOf(t),1)}}},8437:(M,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.BufferLine=r.DEFAULT_ATTR_DATA=void 0;const c=o(3734),g=o(511),n=o(643),h=o(482);r.DEFAULT_ATTR_DATA=Object.freeze(new c.AttributeData);let _=0;class f{constructor(e,i,t=!1){this.isWrapped=t,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*e);const s=i||g.CellData.fromCharData([0,n.NULL_CELL_CHAR,n.NULL_CELL_WIDTH,n.NULL_CELL_CODE]);for(let a=0;a>22,2097152&i?this._combined[e].charCodeAt(this._combined[e].length-1):t]}set(e,i){this._data[3*e+1]=i[n.CHAR_DATA_ATTR_INDEX],i[n.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[e]=i[1],this._data[3*e+0]=2097152|e|i[n.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*e+0]=i[n.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|i[n.CHAR_DATA_WIDTH_INDEX]<<22}getWidth(e){return this._data[3*e+0]>>22}hasWidth(e){return 12582912&this._data[3*e+0]}getFg(e){return this._data[3*e+1]}getBg(e){return this._data[3*e+2]}hasContent(e){return 4194303&this._data[3*e+0]}getCodePoint(e){const i=this._data[3*e+0];return 2097152&i?this._combined[e].charCodeAt(this._combined[e].length-1):2097151&i}isCombined(e){return 2097152&this._data[3*e+0]}getString(e){const i=this._data[3*e+0];return 2097152&i?this._combined[e]:2097151&i?(0,h.stringFromCodePoint)(2097151&i):""}isProtected(e){return 536870912&this._data[3*e+2]}loadCell(e,i){return _=3*e,i.content=this._data[_+0],i.fg=this._data[_+1],i.bg=this._data[_+2],2097152&i.content&&(i.combinedData=this._combined[e]),268435456&i.bg&&(i.extended=this._extendedAttrs[e]),i}setCell(e,i){2097152&i.content&&(this._combined[e]=i.combinedData),268435456&i.bg&&(this._extendedAttrs[e]=i.extended),this._data[3*e+0]=i.content,this._data[3*e+1]=i.fg,this._data[3*e+2]=i.bg}setCellFromCodePoint(e,i,t,s,a,d){268435456&a&&(this._extendedAttrs[e]=d),this._data[3*e+0]=i|t<<22,this._data[3*e+1]=s,this._data[3*e+2]=a}addCodepointToCell(e,i){let t=this._data[3*e+0];2097152&t?this._combined[e]+=(0,h.stringFromCodePoint)(i):(2097151&t?(this._combined[e]=(0,h.stringFromCodePoint)(2097151&t)+(0,h.stringFromCodePoint)(i),t&=-2097152,t|=2097152):t=i|4194304,this._data[3*e+0]=t)}insertCells(e,i,t,s){if((e%=this.length)&&this.getWidth(e-1)===2&&this.setCellFromCodePoint(e-1,0,1,(s==null?void 0:s.fg)||0,(s==null?void 0:s.bg)||0,(s==null?void 0:s.extended)||new c.ExtendedAttrs),i=0;--d)this.setCell(e+i+d,this.loadCell(e+d,a));for(let d=0;dthis.length){if(this._data.buffer.byteLength>=4*t)this._data=new Uint32Array(this._data.buffer,0,t);else{const s=new Uint32Array(t);s.set(this._data),this._data=s}for(let s=this.length;s=e&&delete this._combined[p]}const a=Object.keys(this._extendedAttrs);for(let d=0;d=e&&delete this._extendedAttrs[p]}}return this.length=e,4*t*2=0;--e)if(4194303&this._data[3*e+0])return e+(this._data[3*e+0]>>22);return 0}getNoBgTrimmedLength(){for(let e=this.length-1;e>=0;--e)if(4194303&this._data[3*e+0]||50331648&this._data[3*e+2])return e+(this._data[3*e+0]>>22);return 0}copyCellsFrom(e,i,t,s,a){const d=e._data;if(a)for(let m=s-1;m>=0;m--){for(let l=0;l<3;l++)this._data[3*(t+m)+l]=d[3*(i+m)+l];268435456&d[3*(i+m)+2]&&(this._extendedAttrs[t+m]=e._extendedAttrs[i+m])}else for(let m=0;m=i&&(this._combined[l-i+t]=e._combined[l])}}translateToString(e=!1,i=0,t=this.length){e&&(t=Math.min(t,this.getTrimmedLength()));let s="";for(;i>22||1}return s}}r.BufferLine=f},4841:(M,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.getRangeLength=void 0,r.getRangeLength=function(o,c){if(o.start.y>o.end.y)throw new Error(`Buffer range end (${o.end.x}, ${o.end.y}) cannot be before start (${o.start.x}, ${o.start.y})`);return c*(o.end.y-o.start.y)+(o.end.x-o.start.x+1)}},4634:(M,r)=>{function o(c,g,n){if(g===c.length-1)return c[g].getTrimmedLength();const h=!c[g].hasContent(n-1)&&c[g].getWidth(n-1)===1,_=c[g+1].getWidth(0)===2;return h&&_?n-1:n}Object.defineProperty(r,"__esModule",{value:!0}),r.getWrappedLineTrimmedLength=r.reflowSmallerGetNewLineLengths=r.reflowLargerApplyNewLayout=r.reflowLargerCreateNewLayout=r.reflowLargerGetLinesToRemove=void 0,r.reflowLargerGetLinesToRemove=function(c,g,n,h,_){const f=[];for(let u=0;u=u&&h0&&(l>s||t[l].getTrimmedLength()===0);l--)m++;m>0&&(f.push(u+t.length-m),f.push(m)),u+=t.length-1}return f},r.reflowLargerCreateNewLayout=function(c,g){const n=[];let h=0,_=g[h],f=0;for(let u=0;uo(c,t,g)).reduce((i,t)=>i+t);let f=0,u=0,e=0;for(;e<_;){if(_-ei&&(f-=i,u++);const t=c[u].getWidth(f-1)===2;t&&f--;const s=t?n-1:n;h.push(s),e+=s}return h},r.getWrappedLineTrimmedLength=o},5295:(M,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.BufferSet=void 0;const c=o(8460),g=o(844),n=o(9092);class h extends g.Disposable{constructor(f,u){super(),this._optionsService=f,this._bufferService=u,this._onBufferActivate=this.register(new c.EventEmitter),this.onBufferActivate=this._onBufferActivate.event,this.reset(),this.register(this._optionsService.onSpecificOptionChange("scrollback",()=>this.resize(this._bufferService.cols,this._bufferService.rows))),this.register(this._optionsService.onSpecificOptionChange("tabStopWidth",()=>this.setupTabStops()))}reset(){this._normal=new n.Buffer(!0,this._optionsService,this._bufferService),this._normal.fillViewportRows(),this._alt=new n.Buffer(!1,this._optionsService,this._bufferService),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}),this.setupTabStops()}get alt(){return this._alt}get active(){return this._activeBuffer}get normal(){return this._normal}activateNormalBuffer(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clearAllMarkers(),this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))}activateAltBuffer(f){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(f),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))}resize(f,u){this._normal.resize(f,u),this._alt.resize(f,u),this.setupTabStops(f)}setupTabStops(f){this._normal.setupTabStops(f),this._alt.setupTabStops(f)}}r.BufferSet=h},511:(M,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.CellData=void 0;const c=o(482),g=o(643),n=o(3734);class h extends n.AttributeData{constructor(){super(...arguments),this.content=0,this.fg=0,this.bg=0,this.extended=new n.ExtendedAttrs,this.combinedData=""}static fromCharData(f){const u=new h;return u.setFromCharData(f),u}isCombined(){return 2097152&this.content}getWidth(){return this.content>>22}getChars(){return 2097152&this.content?this.combinedData:2097151&this.content?(0,c.stringFromCodePoint)(2097151&this.content):""}getCode(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content}setFromCharData(f){this.fg=f[g.CHAR_DATA_ATTR_INDEX],this.bg=0;let u=!1;if(f[g.CHAR_DATA_CHAR_INDEX].length>2)u=!0;else if(f[g.CHAR_DATA_CHAR_INDEX].length===2){const e=f[g.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=e&&e<=56319){const i=f[g.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=i&&i<=57343?this.content=1024*(e-55296)+i-56320+65536|f[g.CHAR_DATA_WIDTH_INDEX]<<22:u=!0}else u=!0}else this.content=f[g.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|f[g.CHAR_DATA_WIDTH_INDEX]<<22;u&&(this.combinedData=f[g.CHAR_DATA_CHAR_INDEX],this.content=2097152|f[g.CHAR_DATA_WIDTH_INDEX]<<22)}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}}r.CellData=h},643:(M,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.WHITESPACE_CELL_CODE=r.WHITESPACE_CELL_WIDTH=r.WHITESPACE_CELL_CHAR=r.NULL_CELL_CODE=r.NULL_CELL_WIDTH=r.NULL_CELL_CHAR=r.CHAR_DATA_CODE_INDEX=r.CHAR_DATA_WIDTH_INDEX=r.CHAR_DATA_CHAR_INDEX=r.CHAR_DATA_ATTR_INDEX=r.DEFAULT_EXT=r.DEFAULT_ATTR=r.DEFAULT_COLOR=void 0,r.DEFAULT_COLOR=0,r.DEFAULT_ATTR=256|r.DEFAULT_COLOR<<9,r.DEFAULT_EXT=0,r.CHAR_DATA_ATTR_INDEX=0,r.CHAR_DATA_CHAR_INDEX=1,r.CHAR_DATA_WIDTH_INDEX=2,r.CHAR_DATA_CODE_INDEX=3,r.NULL_CELL_CHAR="",r.NULL_CELL_WIDTH=1,r.NULL_CELL_CODE=0,r.WHITESPACE_CELL_CHAR=" ",r.WHITESPACE_CELL_WIDTH=1,r.WHITESPACE_CELL_CODE=32},4863:(M,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.Marker=void 0;const c=o(8460),g=o(844);class n{get id(){return this._id}constructor(_){this.line=_,this.isDisposed=!1,this._disposables=[],this._id=n._nextId++,this._onDispose=this.register(new c.EventEmitter),this.onDispose=this._onDispose.event}dispose(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire(),(0,g.disposeArray)(this._disposables),this._disposables.length=0)}register(_){return this._disposables.push(_),_}}r.Marker=n,n._nextId=1},7116:(M,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.DEFAULT_CHARSET=r.CHARSETS=void 0,r.CHARSETS={},r.DEFAULT_CHARSET=r.CHARSETS.B,r.CHARSETS[0]={"`":"◆",a:"▒",b:"␉",c:"␌",d:"␍",e:"␊",f:"°",g:"±",h:"␤",i:"␋",j:"┘",k:"┐",l:"┌",m:"└",n:"┼",o:"⎺",p:"⎻",q:"─",r:"⎼",s:"⎽",t:"├",u:"┤",v:"┴",w:"┬",x:"│",y:"≤",z:"≥","{":"π","|":"≠","}":"£","~":"·"},r.CHARSETS.A={"#":"£"},r.CHARSETS.B=void 0,r.CHARSETS[4]={"#":"£","@":"¾","[":"ij","\\":"½","]":"|","{":"¨","|":"f","}":"¼","~":"´"},r.CHARSETS.C=r.CHARSETS[5]={"[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},r.CHARSETS.R={"#":"£","@":"à","[":"°","\\":"ç","]":"§","{":"é","|":"ù","}":"è","~":"¨"},r.CHARSETS.Q={"@":"à","[":"â","\\":"ç","]":"ê","^":"î","`":"ô","{":"é","|":"ù","}":"è","~":"û"},r.CHARSETS.K={"@":"§","[":"Ä","\\":"Ö","]":"Ü","{":"ä","|":"ö","}":"ü","~":"ß"},r.CHARSETS.Y={"#":"£","@":"§","[":"°","\\":"ç","]":"é","`":"ù","{":"à","|":"ò","}":"è","~":"ì"},r.CHARSETS.E=r.CHARSETS[6]={"@":"Ä","[":"Æ","\\":"Ø","]":"Å","^":"Ü","`":"ä","{":"æ","|":"ø","}":"å","~":"ü"},r.CHARSETS.Z={"#":"£","@":"§","[":"¡","\\":"Ñ","]":"¿","{":"°","|":"ñ","}":"ç"},r.CHARSETS.H=r.CHARSETS[7]={"@":"É","[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},r.CHARSETS["="]={"#":"ù","@":"à","[":"é","\\":"ç","]":"ê","^":"î",_:"è","`":"ô","{":"ä","|":"ö","}":"ü","~":"û"}},2584:(M,r)=>{var o,c,g;Object.defineProperty(r,"__esModule",{value:!0}),r.C1_ESCAPED=r.C1=r.C0=void 0,function(n){n.NUL="\0",n.SOH="",n.STX="",n.ETX="",n.EOT="",n.ENQ="",n.ACK="",n.BEL="\x07",n.BS="\b",n.HT=" ",n.LF=` -`,n.VT="\v",n.FF="\f",n.CR="\r",n.SO="",n.SI="",n.DLE="",n.DC1="",n.DC2="",n.DC3="",n.DC4="",n.NAK="",n.SYN="",n.ETB="",n.CAN="",n.EM="",n.SUB="",n.ESC="\x1B",n.FS="",n.GS="",n.RS="",n.US="",n.SP=" ",n.DEL=""}(o||(r.C0=o={})),function(n){n.PAD="€",n.HOP="",n.BPH="‚",n.NBH="ƒ",n.IND="„",n.NEL="…",n.SSA="†",n.ESA="‡",n.HTS="ˆ",n.HTJ="‰",n.VTS="Š",n.PLD="‹",n.PLU="Œ",n.RI="",n.SS2="Ž",n.SS3="",n.DCS="",n.PU1="‘",n.PU2="’",n.STS="“",n.CCH="”",n.MW="•",n.SPA="–",n.EPA="—",n.SOS="˜",n.SGCI="™",n.SCI="š",n.CSI="›",n.ST="œ",n.OSC="",n.PM="ž",n.APC="Ÿ"}(c||(r.C1=c={})),function(n){n.ST=`${o.ESC}\\`}(g||(r.C1_ESCAPED=g={}))},7399:(M,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.evaluateKeyboardEvent=void 0;const c=o(2584),g={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};r.evaluateKeyboardEvent=function(n,h,_,f){const u={type:0,cancel:!1,key:void 0},e=(n.shiftKey?1:0)|(n.altKey?2:0)|(n.ctrlKey?4:0)|(n.metaKey?8:0);switch(n.keyCode){case 0:n.key==="UIKeyInputUpArrow"?u.key=h?c.C0.ESC+"OA":c.C0.ESC+"[A":n.key==="UIKeyInputLeftArrow"?u.key=h?c.C0.ESC+"OD":c.C0.ESC+"[D":n.key==="UIKeyInputRightArrow"?u.key=h?c.C0.ESC+"OC":c.C0.ESC+"[C":n.key==="UIKeyInputDownArrow"&&(u.key=h?c.C0.ESC+"OB":c.C0.ESC+"[B");break;case 8:if(n.altKey){u.key=c.C0.ESC+c.C0.DEL;break}u.key=c.C0.DEL;break;case 9:if(n.shiftKey){u.key=c.C0.ESC+"[Z";break}u.key=c.C0.HT,u.cancel=!0;break;case 13:u.key=n.altKey?c.C0.ESC+c.C0.CR:c.C0.CR,u.cancel=!0;break;case 27:u.key=c.C0.ESC,n.altKey&&(u.key=c.C0.ESC+c.C0.ESC),u.cancel=!0;break;case 37:if(n.metaKey)break;e?(u.key=c.C0.ESC+"[1;"+(e+1)+"D",u.key===c.C0.ESC+"[1;3D"&&(u.key=c.C0.ESC+(_?"b":"[1;5D"))):u.key=h?c.C0.ESC+"OD":c.C0.ESC+"[D";break;case 39:if(n.metaKey)break;e?(u.key=c.C0.ESC+"[1;"+(e+1)+"C",u.key===c.C0.ESC+"[1;3C"&&(u.key=c.C0.ESC+(_?"f":"[1;5C"))):u.key=h?c.C0.ESC+"OC":c.C0.ESC+"[C";break;case 38:if(n.metaKey)break;e?(u.key=c.C0.ESC+"[1;"+(e+1)+"A",_||u.key!==c.C0.ESC+"[1;3A"||(u.key=c.C0.ESC+"[1;5A")):u.key=h?c.C0.ESC+"OA":c.C0.ESC+"[A";break;case 40:if(n.metaKey)break;e?(u.key=c.C0.ESC+"[1;"+(e+1)+"B",_||u.key!==c.C0.ESC+"[1;3B"||(u.key=c.C0.ESC+"[1;5B")):u.key=h?c.C0.ESC+"OB":c.C0.ESC+"[B";break;case 45:n.shiftKey||n.ctrlKey||(u.key=c.C0.ESC+"[2~");break;case 46:u.key=e?c.C0.ESC+"[3;"+(e+1)+"~":c.C0.ESC+"[3~";break;case 36:u.key=e?c.C0.ESC+"[1;"+(e+1)+"H":h?c.C0.ESC+"OH":c.C0.ESC+"[H";break;case 35:u.key=e?c.C0.ESC+"[1;"+(e+1)+"F":h?c.C0.ESC+"OF":c.C0.ESC+"[F";break;case 33:n.shiftKey?u.type=2:n.ctrlKey?u.key=c.C0.ESC+"[5;"+(e+1)+"~":u.key=c.C0.ESC+"[5~";break;case 34:n.shiftKey?u.type=3:n.ctrlKey?u.key=c.C0.ESC+"[6;"+(e+1)+"~":u.key=c.C0.ESC+"[6~";break;case 112:u.key=e?c.C0.ESC+"[1;"+(e+1)+"P":c.C0.ESC+"OP";break;case 113:u.key=e?c.C0.ESC+"[1;"+(e+1)+"Q":c.C0.ESC+"OQ";break;case 114:u.key=e?c.C0.ESC+"[1;"+(e+1)+"R":c.C0.ESC+"OR";break;case 115:u.key=e?c.C0.ESC+"[1;"+(e+1)+"S":c.C0.ESC+"OS";break;case 116:u.key=e?c.C0.ESC+"[15;"+(e+1)+"~":c.C0.ESC+"[15~";break;case 117:u.key=e?c.C0.ESC+"[17;"+(e+1)+"~":c.C0.ESC+"[17~";break;case 118:u.key=e?c.C0.ESC+"[18;"+(e+1)+"~":c.C0.ESC+"[18~";break;case 119:u.key=e?c.C0.ESC+"[19;"+(e+1)+"~":c.C0.ESC+"[19~";break;case 120:u.key=e?c.C0.ESC+"[20;"+(e+1)+"~":c.C0.ESC+"[20~";break;case 121:u.key=e?c.C0.ESC+"[21;"+(e+1)+"~":c.C0.ESC+"[21~";break;case 122:u.key=e?c.C0.ESC+"[23;"+(e+1)+"~":c.C0.ESC+"[23~";break;case 123:u.key=e?c.C0.ESC+"[24;"+(e+1)+"~":c.C0.ESC+"[24~";break;default:if(!n.ctrlKey||n.shiftKey||n.altKey||n.metaKey)if(_&&!f||!n.altKey||n.metaKey)!_||n.altKey||n.ctrlKey||n.shiftKey||!n.metaKey?n.key&&!n.ctrlKey&&!n.altKey&&!n.metaKey&&n.keyCode>=48&&n.key.length===1?u.key=n.key:n.key&&n.ctrlKey&&(n.key==="_"&&(u.key=c.C0.US),n.key==="@"&&(u.key=c.C0.NUL)):n.keyCode===65&&(u.type=1);else{const i=g[n.keyCode],t=i==null?void 0:i[n.shiftKey?1:0];if(t)u.key=c.C0.ESC+t;else if(n.keyCode>=65&&n.keyCode<=90){const s=n.ctrlKey?n.keyCode-64:n.keyCode+32;let a=String.fromCharCode(s);n.shiftKey&&(a=a.toUpperCase()),u.key=c.C0.ESC+a}else if(n.keyCode===32)u.key=c.C0.ESC+(n.ctrlKey?c.C0.NUL:" ");else if(n.key==="Dead"&&n.code.startsWith("Key")){let s=n.code.slice(3,4);n.shiftKey||(s=s.toLowerCase()),u.key=c.C0.ESC+s,u.cancel=!0}}else n.keyCode>=65&&n.keyCode<=90?u.key=String.fromCharCode(n.keyCode-64):n.keyCode===32?u.key=c.C0.NUL:n.keyCode>=51&&n.keyCode<=55?u.key=String.fromCharCode(n.keyCode-51+27):n.keyCode===56?u.key=c.C0.DEL:n.keyCode===219?u.key=c.C0.ESC:n.keyCode===220?u.key=c.C0.FS:n.keyCode===221&&(u.key=c.C0.GS)}return u}},482:(M,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.Utf8ToUtf32=r.StringToUtf32=r.utf32ToString=r.stringFromCodePoint=void 0,r.stringFromCodePoint=function(o){return o>65535?(o-=65536,String.fromCharCode(55296+(o>>10))+String.fromCharCode(o%1024+56320)):String.fromCharCode(o)},r.utf32ToString=function(o,c=0,g=o.length){let n="";for(let h=c;h65535?(_-=65536,n+=String.fromCharCode(55296+(_>>10))+String.fromCharCode(_%1024+56320)):n+=String.fromCharCode(_)}return n},r.StringToUtf32=class{constructor(){this._interim=0}clear(){this._interim=0}decode(o,c){const g=o.length;if(!g)return 0;let n=0,h=0;if(this._interim){const _=o.charCodeAt(h++);56320<=_&&_<=57343?c[n++]=1024*(this._interim-55296)+_-56320+65536:(c[n++]=this._interim,c[n++]=_),this._interim=0}for(let _=h;_=g)return this._interim=f,n;const u=o.charCodeAt(_);56320<=u&&u<=57343?c[n++]=1024*(f-55296)+u-56320+65536:(c[n++]=f,c[n++]=u)}else f!==65279&&(c[n++]=f)}return n}},r.Utf8ToUtf32=class{constructor(){this.interim=new Uint8Array(3)}clear(){this.interim.fill(0)}decode(o,c){const g=o.length;if(!g)return 0;let n,h,_,f,u=0,e=0,i=0;if(this.interim[0]){let a=!1,d=this.interim[0];d&=(224&d)==192?31:(240&d)==224?15:7;let p,m=0;for(;(p=63&this.interim[++m])&&m<4;)d<<=6,d|=p;const l=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,v=l-m;for(;i=g)return 0;if(p=o[i++],(192&p)!=128){i--,a=!0;break}this.interim[m++]=p,d<<=6,d|=63&p}a||(l===2?d<128?i--:c[u++]=d:l===3?d<2048||d>=55296&&d<=57343||d===65279||(c[u++]=d):d<65536||d>1114111||(c[u++]=d)),this.interim.fill(0)}const t=g-4;let s=i;for(;s=g)return this.interim[0]=n,u;if(h=o[s++],(192&h)!=128){s--;continue}if(e=(31&n)<<6|63&h,e<128){s--;continue}c[u++]=e}else if((240&n)==224){if(s>=g)return this.interim[0]=n,u;if(h=o[s++],(192&h)!=128){s--;continue}if(s>=g)return this.interim[0]=n,this.interim[1]=h,u;if(_=o[s++],(192&_)!=128){s--;continue}if(e=(15&n)<<12|(63&h)<<6|63&_,e<2048||e>=55296&&e<=57343||e===65279)continue;c[u++]=e}else if((248&n)==240){if(s>=g)return this.interim[0]=n,u;if(h=o[s++],(192&h)!=128){s--;continue}if(s>=g)return this.interim[0]=n,this.interim[1]=h,u;if(_=o[s++],(192&_)!=128){s--;continue}if(s>=g)return this.interim[0]=n,this.interim[1]=h,this.interim[2]=_,u;if(f=o[s++],(192&f)!=128){s--;continue}if(e=(7&n)<<18|(63&h)<<12|(63&_)<<6|63&f,e<65536||e>1114111)continue;c[u++]=e}}return u}}},225:(M,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.UnicodeV6=void 0;const o=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],c=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]];let g;r.UnicodeV6=class{constructor(){if(this.version="6",!g){g=new Uint8Array(65536),g.fill(1),g[0]=0,g.fill(0,1,32),g.fill(0,127,160),g.fill(2,4352,4448),g[9001]=2,g[9002]=2,g.fill(2,11904,42192),g[12351]=1,g.fill(2,44032,55204),g.fill(2,63744,64256),g.fill(2,65040,65050),g.fill(2,65072,65136),g.fill(2,65280,65377),g.fill(2,65504,65511);for(let n=0;n_[e][1])return!1;for(;e>=u;)if(f=u+e>>1,h>_[f][1])u=f+1;else{if(!(h<_[f][0]))return!0;e=f-1}return!1}(n,c)?0:n>=131072&&n<=196605||n>=196608&&n<=262141?2:1}}},5981:(M,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.WriteBuffer=void 0;const c=o(8460),g=o(844);class n extends g.Disposable{constructor(_){super(),this._action=_,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0,this._isSyncWriting=!1,this._syncCalls=0,this._didUserInput=!1,this._onWriteParsed=this.register(new c.EventEmitter),this.onWriteParsed=this._onWriteParsed.event}handleUserInput(){this._didUserInput=!0}writeSync(_,f){if(f!==void 0&&this._syncCalls>f)return void(this._syncCalls=0);if(this._pendingData+=_.length,this._writeBuffer.push(_),this._callbacks.push(void 0),this._syncCalls++,this._isSyncWriting)return;let u;for(this._isSyncWriting=!0;u=this._writeBuffer.shift();){this._action(u);const e=this._callbacks.shift();e&&e()}this._pendingData=0,this._bufferOffset=2147483647,this._isSyncWriting=!1,this._syncCalls=0}write(_,f){if(this._pendingData>5e7)throw new Error("write data discarded, use flow control to avoid losing data");if(!this._writeBuffer.length){if(this._bufferOffset=0,this._didUserInput)return this._didUserInput=!1,this._pendingData+=_.length,this._writeBuffer.push(_),this._callbacks.push(f),void this._innerWrite();setTimeout(()=>this._innerWrite())}this._pendingData+=_.length,this._writeBuffer.push(_),this._callbacks.push(f)}_innerWrite(_=0,f=!0){const u=_||Date.now();for(;this._writeBuffer.length>this._bufferOffset;){const e=this._writeBuffer[this._bufferOffset],i=this._action(e,f);if(i){const s=a=>Date.now()-u>=12?setTimeout(()=>this._innerWrite(0,a)):this._innerWrite(u,a);return void i.catch(a=>(queueMicrotask(()=>{throw a}),Promise.resolve(!1))).then(s)}const t=this._callbacks[this._bufferOffset];if(t&&t(),this._bufferOffset++,this._pendingData-=e.length,Date.now()-u>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout(()=>this._innerWrite())):(this._writeBuffer.length=0,this._callbacks.length=0,this._pendingData=0,this._bufferOffset=0),this._onWriteParsed.fire()}}r.WriteBuffer=n},5941:(M,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.toRgbString=r.parseColor=void 0;const o=/^([\da-f])\/([\da-f])\/([\da-f])$|^([\da-f]{2})\/([\da-f]{2})\/([\da-f]{2})$|^([\da-f]{3})\/([\da-f]{3})\/([\da-f]{3})$|^([\da-f]{4})\/([\da-f]{4})\/([\da-f]{4})$/,c=/^[\da-f]+$/;function g(n,h){const _=n.toString(16),f=_.length<2?"0"+_:_;switch(h){case 4:return _[0];case 8:return f;case 12:return(f+f).slice(0,3);default:return f+f}}r.parseColor=function(n){if(!n)return;let h=n.toLowerCase();if(h.indexOf("rgb:")===0){h=h.slice(4);const _=o.exec(h);if(_){const f=_[1]?15:_[4]?255:_[7]?4095:65535;return[Math.round(parseInt(_[1]||_[4]||_[7]||_[10],16)/f*255),Math.round(parseInt(_[2]||_[5]||_[8]||_[11],16)/f*255),Math.round(parseInt(_[3]||_[6]||_[9]||_[12],16)/f*255)]}}else if(h.indexOf("#")===0&&(h=h.slice(1),c.exec(h)&&[3,6,9,12].includes(h.length))){const _=h.length/3,f=[0,0,0];for(let u=0;u<3;++u){const e=parseInt(h.slice(_*u,_*u+_),16);f[u]=_===1?e<<4:_===2?e:_===3?e>>4:e>>8}return f}},r.toRgbString=function(n,h=16){const[_,f,u]=n;return`rgb:${g(_,h)}/${g(f,h)}/${g(u,h)}`}},5770:(M,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.PAYLOAD_LIMIT=void 0,r.PAYLOAD_LIMIT=1e7},6351:(M,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.DcsHandler=r.DcsParser=void 0;const c=o(482),g=o(8742),n=o(5770),h=[];r.DcsParser=class{constructor(){this._handlers=Object.create(null),this._active=h,this._ident=0,this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=h}registerHandler(f,u){this._handlers[f]===void 0&&(this._handlers[f]=[]);const e=this._handlers[f];return e.push(u),{dispose:()=>{const i=e.indexOf(u);i!==-1&&e.splice(i,1)}}}clearHandler(f){this._handlers[f]&&delete this._handlers[f]}setHandlerFallback(f){this._handlerFb=f}reset(){if(this._active.length)for(let f=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;f>=0;--f)this._active[f].unhook(!1);this._stack.paused=!1,this._active=h,this._ident=0}hook(f,u){if(this.reset(),this._ident=f,this._active=this._handlers[f]||h,this._active.length)for(let e=this._active.length-1;e>=0;e--)this._active[e].hook(u);else this._handlerFb(this._ident,"HOOK",u)}put(f,u,e){if(this._active.length)for(let i=this._active.length-1;i>=0;i--)this._active[i].put(f,u,e);else this._handlerFb(this._ident,"PUT",(0,c.utf32ToString)(f,u,e))}unhook(f,u=!0){if(this._active.length){let e=!1,i=this._active.length-1,t=!1;if(this._stack.paused&&(i=this._stack.loopPosition-1,e=u,t=this._stack.fallThrough,this._stack.paused=!1),!t&&e===!1){for(;i>=0&&(e=this._active[i].unhook(f),e!==!0);i--)if(e instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=i,this._stack.fallThrough=!1,e;i--}for(;i>=0;i--)if(e=this._active[i].unhook(!1),e instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=i,this._stack.fallThrough=!0,e}else this._handlerFb(this._ident,"UNHOOK",f);this._active=h,this._ident=0}};const _=new g.Params;_.addParam(0),r.DcsHandler=class{constructor(f){this._handler=f,this._data="",this._params=_,this._hitLimit=!1}hook(f){this._params=f.length>1||f.params[0]?f.clone():_,this._data="",this._hitLimit=!1}put(f,u,e){this._hitLimit||(this._data+=(0,c.utf32ToString)(f,u,e),this._data.length>n.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))}unhook(f){let u=!1;if(this._hitLimit)u=!1;else if(f&&(u=this._handler(this._data,this._params),u instanceof Promise))return u.then(e=>(this._params=_,this._data="",this._hitLimit=!1,e));return this._params=_,this._data="",this._hitLimit=!1,u}}},2015:(M,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.EscapeSequenceParser=r.VT500_TRANSITION_TABLE=r.TransitionTable=void 0;const c=o(844),g=o(8742),n=o(6242),h=o(6351);class _{constructor(i){this.table=new Uint8Array(i)}setDefault(i,t){this.table.fill(i<<4|t)}add(i,t,s,a){this.table[t<<8|i]=s<<4|a}addMany(i,t,s,a){for(let d=0;dl),t=(m,l)=>i.slice(m,l),s=t(32,127),a=t(0,24);a.push(25),a.push.apply(a,t(28,32));const d=t(0,14);let p;for(p in e.setDefault(1,0),e.addMany(s,0,2,0),d)e.addMany([24,26,153,154],p,3,0),e.addMany(t(128,144),p,3,0),e.addMany(t(144,152),p,3,0),e.add(156,p,0,0),e.add(27,p,11,1),e.add(157,p,4,8),e.addMany([152,158,159],p,0,7),e.add(155,p,11,3),e.add(144,p,11,9);return e.addMany(a,0,3,0),e.addMany(a,1,3,1),e.add(127,1,0,1),e.addMany(a,8,0,8),e.addMany(a,3,3,3),e.add(127,3,0,3),e.addMany(a,4,3,4),e.add(127,4,0,4),e.addMany(a,6,3,6),e.addMany(a,5,3,5),e.add(127,5,0,5),e.addMany(a,2,3,2),e.add(127,2,0,2),e.add(93,1,4,8),e.addMany(s,8,5,8),e.add(127,8,5,8),e.addMany([156,27,24,26,7],8,6,0),e.addMany(t(28,32),8,0,8),e.addMany([88,94,95],1,0,7),e.addMany(s,7,0,7),e.addMany(a,7,0,7),e.add(156,7,0,0),e.add(127,7,0,7),e.add(91,1,11,3),e.addMany(t(64,127),3,7,0),e.addMany(t(48,60),3,8,4),e.addMany([60,61,62,63],3,9,4),e.addMany(t(48,60),4,8,4),e.addMany(t(64,127),4,7,0),e.addMany([60,61,62,63],4,0,6),e.addMany(t(32,64),6,0,6),e.add(127,6,0,6),e.addMany(t(64,127),6,0,0),e.addMany(t(32,48),3,9,5),e.addMany(t(32,48),5,9,5),e.addMany(t(48,64),5,0,6),e.addMany(t(64,127),5,7,0),e.addMany(t(32,48),4,9,5),e.addMany(t(32,48),1,9,2),e.addMany(t(32,48),2,9,2),e.addMany(t(48,127),2,10,0),e.addMany(t(48,80),1,10,0),e.addMany(t(81,88),1,10,0),e.addMany([89,90,92],1,10,0),e.addMany(t(96,127),1,10,0),e.add(80,1,11,9),e.addMany(a,9,0,9),e.add(127,9,0,9),e.addMany(t(28,32),9,0,9),e.addMany(t(32,48),9,9,12),e.addMany(t(48,60),9,8,10),e.addMany([60,61,62,63],9,9,10),e.addMany(a,11,0,11),e.addMany(t(32,128),11,0,11),e.addMany(t(28,32),11,0,11),e.addMany(a,10,0,10),e.add(127,10,0,10),e.addMany(t(28,32),10,0,10),e.addMany(t(48,60),10,8,10),e.addMany([60,61,62,63],10,0,11),e.addMany(t(32,48),10,9,12),e.addMany(a,12,0,12),e.add(127,12,0,12),e.addMany(t(28,32),12,0,12),e.addMany(t(32,48),12,9,12),e.addMany(t(48,64),12,0,11),e.addMany(t(64,127),12,12,13),e.addMany(t(64,127),10,12,13),e.addMany(t(64,127),9,12,13),e.addMany(a,13,13,13),e.addMany(s,13,13,13),e.add(127,13,0,13),e.addMany([27,156,24,26],13,14,0),e.add(f,0,2,0),e.add(f,8,5,8),e.add(f,6,0,6),e.add(f,11,0,11),e.add(f,13,13,13),e}();class u extends c.Disposable{constructor(i=r.VT500_TRANSITION_TABLE){super(),this._transitions=i,this._parseStack={state:0,handlers:[],handlerPos:0,transition:0,chunkPos:0},this.initialState=0,this.currentState=this.initialState,this._params=new g.Params,this._params.addParam(0),this._collect=0,this.precedingCodepoint=0,this._printHandlerFb=(t,s,a)=>{},this._executeHandlerFb=t=>{},this._csiHandlerFb=(t,s)=>{},this._escHandlerFb=t=>{},this._errorHandlerFb=t=>t,this._printHandler=this._printHandlerFb,this._executeHandlers=Object.create(null),this._csiHandlers=Object.create(null),this._escHandlers=Object.create(null),this.register((0,c.toDisposable)(()=>{this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null)})),this._oscParser=this.register(new n.OscParser),this._dcsParser=this.register(new h.DcsParser),this._errorHandler=this._errorHandlerFb,this.registerEscHandler({final:"\\"},()=>!0)}_identifier(i,t=[64,126]){let s=0;if(i.prefix){if(i.prefix.length>1)throw new Error("only one byte as prefix supported");if(s=i.prefix.charCodeAt(0),s&&60>s||s>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(i.intermediates){if(i.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(let d=0;dp||p>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");s<<=8,s|=p}}if(i.final.length!==1)throw new Error("final must be a single byte");const a=i.final.charCodeAt(0);if(t[0]>a||a>t[1])throw new Error(`final must be in range ${t[0]} .. ${t[1]}`);return s<<=8,s|=a,s}identToString(i){const t=[];for(;i;)t.push(String.fromCharCode(255&i)),i>>=8;return t.reverse().join("")}setPrintHandler(i){this._printHandler=i}clearPrintHandler(){this._printHandler=this._printHandlerFb}registerEscHandler(i,t){const s=this._identifier(i,[48,126]);this._escHandlers[s]===void 0&&(this._escHandlers[s]=[]);const a=this._escHandlers[s];return a.push(t),{dispose:()=>{const d=a.indexOf(t);d!==-1&&a.splice(d,1)}}}clearEscHandler(i){this._escHandlers[this._identifier(i,[48,126])]&&delete this._escHandlers[this._identifier(i,[48,126])]}setEscHandlerFallback(i){this._escHandlerFb=i}setExecuteHandler(i,t){this._executeHandlers[i.charCodeAt(0)]=t}clearExecuteHandler(i){this._executeHandlers[i.charCodeAt(0)]&&delete this._executeHandlers[i.charCodeAt(0)]}setExecuteHandlerFallback(i){this._executeHandlerFb=i}registerCsiHandler(i,t){const s=this._identifier(i);this._csiHandlers[s]===void 0&&(this._csiHandlers[s]=[]);const a=this._csiHandlers[s];return a.push(t),{dispose:()=>{const d=a.indexOf(t);d!==-1&&a.splice(d,1)}}}clearCsiHandler(i){this._csiHandlers[this._identifier(i)]&&delete this._csiHandlers[this._identifier(i)]}setCsiHandlerFallback(i){this._csiHandlerFb=i}registerDcsHandler(i,t){return this._dcsParser.registerHandler(this._identifier(i),t)}clearDcsHandler(i){this._dcsParser.clearHandler(this._identifier(i))}setDcsHandlerFallback(i){this._dcsParser.setHandlerFallback(i)}registerOscHandler(i,t){return this._oscParser.registerHandler(i,t)}clearOscHandler(i){this._oscParser.clearHandler(i)}setOscHandlerFallback(i){this._oscParser.setHandlerFallback(i)}setErrorHandler(i){this._errorHandler=i}clearErrorHandler(){this._errorHandler=this._errorHandlerFb}reset(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0,this._parseStack.state!==0&&(this._parseStack.state=2,this._parseStack.handlers=[])}_preserveStack(i,t,s,a,d){this._parseStack.state=i,this._parseStack.handlers=t,this._parseStack.handlerPos=s,this._parseStack.transition=a,this._parseStack.chunkPos=d}parse(i,t,s){let a,d=0,p=0,m=0;if(this._parseStack.state)if(this._parseStack.state===2)this._parseStack.state=0,m=this._parseStack.chunkPos+1;else{if(s===void 0||this._parseStack.state===1)throw this._parseStack.state=1,new Error("improper continuation due to previous async handler, giving up parsing");const l=this._parseStack.handlers;let v=this._parseStack.handlerPos-1;switch(this._parseStack.state){case 3:if(s===!1&&v>-1){for(;v>=0&&(a=l[v](this._params),a!==!0);v--)if(a instanceof Promise)return this._parseStack.handlerPos=v,a}this._parseStack.handlers=[];break;case 4:if(s===!1&&v>-1){for(;v>=0&&(a=l[v](),a!==!0);v--)if(a instanceof Promise)return this._parseStack.handlerPos=v,a}this._parseStack.handlers=[];break;case 6:if(d=i[this._parseStack.chunkPos],a=this._dcsParser.unhook(d!==24&&d!==26,s),a)return a;d===27&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if(d=i[this._parseStack.chunkPos],a=this._oscParser.end(d!==24&&d!==26,s),a)return a;d===27&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0}this._parseStack.state=0,m=this._parseStack.chunkPos+1,this.precedingCodepoint=0,this.currentState=15&this._parseStack.transition}for(let l=m;l>4){case 2:for(let E=l+1;;++E){if(E>=t||(d=i[E])<32||d>126&&d=t||(d=i[E])<32||d>126&&d=t||(d=i[E])<32||d>126&&d=t||(d=i[E])<32||d>126&&d=0&&(a=v[w](this._params),a!==!0);w--)if(a instanceof Promise)return this._preserveStack(3,v,w,p,l),a;w<0&&this._csiHandlerFb(this._collect<<8|d,this._params),this.precedingCodepoint=0;break;case 8:do switch(d){case 59:this._params.addParam(0);break;case 58:this._params.addSubParam(-1);break;default:this._params.addDigit(d-48)}while(++l47&&d<60);l--;break;case 9:this._collect<<=8,this._collect|=d;break;case 10:const L=this._escHandlers[this._collect<<8|d];let b=L?L.length-1:-1;for(;b>=0&&(a=L[b](),a!==!0);b--)if(a instanceof Promise)return this._preserveStack(4,L,b,p,l),a;b<0&&this._escHandlerFb(this._collect<<8|d),this.precedingCodepoint=0;break;case 11:this._params.reset(),this._params.addParam(0),this._collect=0;break;case 12:this._dcsParser.hook(this._collect<<8|d,this._params);break;case 13:for(let E=l+1;;++E)if(E>=t||(d=i[E])===24||d===26||d===27||d>127&&d=t||(d=i[E])<32||d>127&&d{Object.defineProperty(r,"__esModule",{value:!0}),r.OscHandler=r.OscParser=void 0;const c=o(5770),g=o(482),n=[];r.OscParser=class{constructor(){this._state=0,this._active=n,this._id=-1,this._handlers=Object.create(null),this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}registerHandler(h,_){this._handlers[h]===void 0&&(this._handlers[h]=[]);const f=this._handlers[h];return f.push(_),{dispose:()=>{const u=f.indexOf(_);u!==-1&&f.splice(u,1)}}}clearHandler(h){this._handlers[h]&&delete this._handlers[h]}setHandlerFallback(h){this._handlerFb=h}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=n}reset(){if(this._state===2)for(let h=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;h>=0;--h)this._active[h].end(!1);this._stack.paused=!1,this._active=n,this._id=-1,this._state=0}_start(){if(this._active=this._handlers[this._id]||n,this._active.length)for(let h=this._active.length-1;h>=0;h--)this._active[h].start();else this._handlerFb(this._id,"START")}_put(h,_,f){if(this._active.length)for(let u=this._active.length-1;u>=0;u--)this._active[u].put(h,_,f);else this._handlerFb(this._id,"PUT",(0,g.utf32ToString)(h,_,f))}start(){this.reset(),this._state=1}put(h,_,f){if(this._state!==3){if(this._state===1)for(;_0&&this._put(h,_,f)}}end(h,_=!0){if(this._state!==0){if(this._state!==3)if(this._state===1&&this._start(),this._active.length){let f=!1,u=this._active.length-1,e=!1;if(this._stack.paused&&(u=this._stack.loopPosition-1,f=_,e=this._stack.fallThrough,this._stack.paused=!1),!e&&f===!1){for(;u>=0&&(f=this._active[u].end(h),f!==!0);u--)if(f instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=u,this._stack.fallThrough=!1,f;u--}for(;u>=0;u--)if(f=this._active[u].end(!1),f instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=u,this._stack.fallThrough=!0,f}else this._handlerFb(this._id,"END",h);this._active=n,this._id=-1,this._state=0}}},r.OscHandler=class{constructor(h){this._handler=h,this._data="",this._hitLimit=!1}start(){this._data="",this._hitLimit=!1}put(h,_,f){this._hitLimit||(this._data+=(0,g.utf32ToString)(h,_,f),this._data.length>c.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))}end(h){let _=!1;if(this._hitLimit)_=!1;else if(h&&(_=this._handler(this._data),_ instanceof Promise))return _.then(f=>(this._data="",this._hitLimit=!1,f));return this._data="",this._hitLimit=!1,_}}},8742:(M,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.Params=void 0;const o=2147483647;class c{static fromArray(n){const h=new c;if(!n.length)return h;for(let _=Array.isArray(n[0])?1:0;_256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(n),this.length=0,this._subParams=new Int32Array(h),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(n),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}clone(){const n=new c(this.maxLength,this.maxSubParamsLength);return n.params.set(this.params),n.length=this.length,n._subParams.set(this._subParams),n._subParamsLength=this._subParamsLength,n._subParamsIdx.set(this._subParamsIdx),n._rejectDigits=this._rejectDigits,n._rejectSubDigits=this._rejectSubDigits,n._digitIsSub=this._digitIsSub,n}toArray(){const n=[];for(let h=0;h>8,f=255&this._subParamsIdx[h];f-_>0&&n.push(Array.prototype.slice.call(this._subParams,_,f))}return n}reset(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}addParam(n){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(n<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=n>o?o:n}}addSubParam(n){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(n<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=n>o?o:n,this._subParamsIdx[this.length-1]++}}hasSubParams(n){return(255&this._subParamsIdx[n])-(this._subParamsIdx[n]>>8)>0}getSubParams(n){const h=this._subParamsIdx[n]>>8,_=255&this._subParamsIdx[n];return _-h>0?this._subParams.subarray(h,_):null}getSubParamsAll(){const n={};for(let h=0;h>8,f=255&this._subParamsIdx[h];f-_>0&&(n[h]=this._subParams.slice(_,f))}return n}addDigit(n){let h;if(this._rejectDigits||!(h=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)return;const _=this._digitIsSub?this._subParams:this.params,f=_[h-1];_[h-1]=~f?Math.min(10*f+n,o):n}}r.Params=c},5741:(M,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.AddonManager=void 0,r.AddonManager=class{constructor(){this._addons=[]}dispose(){for(let o=this._addons.length-1;o>=0;o--)this._addons[o].instance.dispose()}loadAddon(o,c){const g={instance:c,dispose:c.dispose,isDisposed:!1};this._addons.push(g),c.dispose=()=>this._wrappedAddonDispose(g),c.activate(o)}_wrappedAddonDispose(o){if(o.isDisposed)return;let c=-1;for(let g=0;g{Object.defineProperty(r,"__esModule",{value:!0}),r.BufferApiView=void 0;const c=o(3785),g=o(511);r.BufferApiView=class{constructor(n,h){this._buffer=n,this.type=h}init(n){return this._buffer=n,this}get cursorY(){return this._buffer.y}get cursorX(){return this._buffer.x}get viewportY(){return this._buffer.ydisp}get baseY(){return this._buffer.ybase}get length(){return this._buffer.lines.length}getLine(n){const h=this._buffer.lines.get(n);if(h)return new c.BufferLineApiView(h)}getNullCell(){return new g.CellData}}},3785:(M,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.BufferLineApiView=void 0;const c=o(511);r.BufferLineApiView=class{constructor(g){this._line=g}get isWrapped(){return this._line.isWrapped}get length(){return this._line.length}getCell(g,n){if(!(g<0||g>=this._line.length))return n?(this._line.loadCell(g,n),n):this._line.loadCell(g,new c.CellData)}translateToString(g,n,h){return this._line.translateToString(g,n,h)}}},8285:(M,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.BufferNamespaceApi=void 0;const c=o(8771),g=o(8460),n=o(844);class h extends n.Disposable{constructor(f){super(),this._core=f,this._onBufferChange=this.register(new g.EventEmitter),this.onBufferChange=this._onBufferChange.event,this._normal=new c.BufferApiView(this._core.buffers.normal,"normal"),this._alternate=new c.BufferApiView(this._core.buffers.alt,"alternate"),this._core.buffers.onBufferActivate(()=>this._onBufferChange.fire(this.active))}get active(){if(this._core.buffers.active===this._core.buffers.normal)return this.normal;if(this._core.buffers.active===this._core.buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")}get normal(){return this._normal.init(this._core.buffers.normal)}get alternate(){return this._alternate.init(this._core.buffers.alt)}}r.BufferNamespaceApi=h},7975:(M,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.ParserApi=void 0,r.ParserApi=class{constructor(o){this._core=o}registerCsiHandler(o,c){return this._core.registerCsiHandler(o,g=>c(g.toArray()))}addCsiHandler(o,c){return this.registerCsiHandler(o,c)}registerDcsHandler(o,c){return this._core.registerDcsHandler(o,(g,n)=>c(g,n.toArray()))}addDcsHandler(o,c){return this.registerDcsHandler(o,c)}registerEscHandler(o,c){return this._core.registerEscHandler(o,c)}addEscHandler(o,c){return this.registerEscHandler(o,c)}registerOscHandler(o,c){return this._core.registerOscHandler(o,c)}addOscHandler(o,c){return this.registerOscHandler(o,c)}}},7090:(M,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.UnicodeApi=void 0,r.UnicodeApi=class{constructor(o){this._core=o}register(o){this._core.unicodeService.register(o)}get versions(){return this._core.unicodeService.versions}get activeVersion(){return this._core.unicodeService.activeVersion}set activeVersion(o){this._core.unicodeService.activeVersion=o}}},744:function(M,r,o){var c=this&&this.__decorate||function(e,i,t,s){var a,d=arguments.length,p=d<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,t):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")p=Reflect.decorate(e,i,t,s);else for(var m=e.length-1;m>=0;m--)(a=e[m])&&(p=(d<3?a(p):d>3?a(i,t,p):a(i,t))||p);return d>3&&p&&Object.defineProperty(i,t,p),p},g=this&&this.__param||function(e,i){return function(t,s){i(t,s,e)}};Object.defineProperty(r,"__esModule",{value:!0}),r.BufferService=r.MINIMUM_ROWS=r.MINIMUM_COLS=void 0;const n=o(8460),h=o(844),_=o(5295),f=o(2585);r.MINIMUM_COLS=2,r.MINIMUM_ROWS=1;let u=r.BufferService=class extends h.Disposable{get buffer(){return this.buffers.active}constructor(e){super(),this.isUserScrolling=!1,this._onResize=this.register(new n.EventEmitter),this.onResize=this._onResize.event,this._onScroll=this.register(new n.EventEmitter),this.onScroll=this._onScroll.event,this.cols=Math.max(e.rawOptions.cols||0,r.MINIMUM_COLS),this.rows=Math.max(e.rawOptions.rows||0,r.MINIMUM_ROWS),this.buffers=this.register(new _.BufferSet(e,this))}resize(e,i){this.cols=e,this.rows=i,this.buffers.resize(e,i),this._onResize.fire({cols:e,rows:i})}reset(){this.buffers.reset(),this.isUserScrolling=!1}scroll(e,i=!1){const t=this.buffer;let s;s=this._cachedBlankLine,s&&s.length===this.cols&&s.getFg(0)===e.fg&&s.getBg(0)===e.bg||(s=t.getBlankLine(e,i),this._cachedBlankLine=s),s.isWrapped=i;const a=t.ybase+t.scrollTop,d=t.ybase+t.scrollBottom;if(t.scrollTop===0){const p=t.lines.isFull;d===t.lines.length-1?p?t.lines.recycle().copyFrom(s):t.lines.push(s.clone()):t.lines.splice(d+1,0,s.clone()),p?this.isUserScrolling&&(t.ydisp=Math.max(t.ydisp-1,0)):(t.ybase++,this.isUserScrolling||t.ydisp++)}else{const p=d-a+1;t.lines.shiftElements(a+1,p-1,-1),t.lines.set(d,s.clone())}this.isUserScrolling||(t.ydisp=t.ybase),this._onScroll.fire(t.ydisp)}scrollLines(e,i,t){const s=this.buffer;if(e<0){if(s.ydisp===0)return;this.isUserScrolling=!0}else e+s.ydisp>=s.ybase&&(this.isUserScrolling=!1);const a=s.ydisp;s.ydisp=Math.max(Math.min(s.ydisp+e,s.ybase),0),a!==s.ydisp&&(i||this._onScroll.fire(s.ydisp))}};r.BufferService=u=c([g(0,f.IOptionsService)],u)},7994:(M,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.CharsetService=void 0,r.CharsetService=class{constructor(){this.glevel=0,this._charsets=[]}reset(){this.charset=void 0,this._charsets=[],this.glevel=0}setgLevel(o){this.glevel=o,this.charset=this._charsets[o]}setgCharset(o,c){this._charsets[o]=c,this.glevel===o&&(this.charset=c)}}},1753:function(M,r,o){var c=this&&this.__decorate||function(s,a,d,p){var m,l=arguments.length,v=l<3?a:p===null?p=Object.getOwnPropertyDescriptor(a,d):p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(s,a,d,p);else for(var w=s.length-1;w>=0;w--)(m=s[w])&&(v=(l<3?m(v):l>3?m(a,d,v):m(a,d))||v);return l>3&&v&&Object.defineProperty(a,d,v),v},g=this&&this.__param||function(s,a){return function(d,p){a(d,p,s)}};Object.defineProperty(r,"__esModule",{value:!0}),r.CoreMouseService=void 0;const n=o(2585),h=o(8460),_=o(844),f={NONE:{events:0,restrict:()=>!1},X10:{events:1,restrict:s=>s.button!==4&&s.action===1&&(s.ctrl=!1,s.alt=!1,s.shift=!1,!0)},VT200:{events:19,restrict:s=>s.action!==32},DRAG:{events:23,restrict:s=>s.action!==32||s.button!==3},ANY:{events:31,restrict:s=>!0}};function u(s,a){let d=(s.ctrl?16:0)|(s.shift?4:0)|(s.alt?8:0);return s.button===4?(d|=64,d|=s.action):(d|=3&s.button,4&s.button&&(d|=64),8&s.button&&(d|=128),s.action===32?d|=32:s.action!==0||a||(d|=3)),d}const e=String.fromCharCode,i={DEFAULT:s=>{const a=[u(s,!1)+32,s.col+32,s.row+32];return a[0]>255||a[1]>255||a[2]>255?"":`\x1B[M${e(a[0])}${e(a[1])}${e(a[2])}`},SGR:s=>{const a=s.action===0&&s.button!==4?"m":"M";return`\x1B[<${u(s,!0)};${s.col};${s.row}${a}`},SGR_PIXELS:s=>{const a=s.action===0&&s.button!==4?"m":"M";return`\x1B[<${u(s,!0)};${s.x};${s.y}${a}`}};let t=r.CoreMouseService=class extends _.Disposable{constructor(s,a){super(),this._bufferService=s,this._coreService=a,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._lastEvent=null,this._onProtocolChange=this.register(new h.EventEmitter),this.onProtocolChange=this._onProtocolChange.event;for(const d of Object.keys(f))this.addProtocol(d,f[d]);for(const d of Object.keys(i))this.addEncoding(d,i[d]);this.reset()}addProtocol(s,a){this._protocols[s]=a}addEncoding(s,a){this._encodings[s]=a}get activeProtocol(){return this._activeProtocol}get areMouseEventsActive(){return this._protocols[this._activeProtocol].events!==0}set activeProtocol(s){if(!this._protocols[s])throw new Error(`unknown protocol "${s}"`);this._activeProtocol=s,this._onProtocolChange.fire(this._protocols[s].events)}get activeEncoding(){return this._activeEncoding}set activeEncoding(s){if(!this._encodings[s])throw new Error(`unknown encoding "${s}"`);this._activeEncoding=s}reset(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null}triggerMouseEvent(s){if(s.col<0||s.col>=this._bufferService.cols||s.row<0||s.row>=this._bufferService.rows||s.button===4&&s.action===32||s.button===3&&s.action!==32||s.button!==4&&(s.action===2||s.action===3)||(s.col++,s.row++,s.action===32&&this._lastEvent&&this._equalEvents(this._lastEvent,s,this._activeEncoding==="SGR_PIXELS"))||!this._protocols[this._activeProtocol].restrict(s))return!1;const a=this._encodings[this._activeEncoding](s);return a&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(a):this._coreService.triggerDataEvent(a,!0)),this._lastEvent=s,!0}explainEvents(s){return{down:!!(1&s),up:!!(2&s),drag:!!(4&s),move:!!(8&s),wheel:!!(16&s)}}_equalEvents(s,a,d){if(d){if(s.x!==a.x||s.y!==a.y)return!1}else if(s.col!==a.col||s.row!==a.row)return!1;return s.button===a.button&&s.action===a.action&&s.ctrl===a.ctrl&&s.alt===a.alt&&s.shift===a.shift}};r.CoreMouseService=t=c([g(0,n.IBufferService),g(1,n.ICoreService)],t)},6975:function(M,r,o){var c=this&&this.__decorate||function(t,s,a,d){var p,m=arguments.length,l=m<3?s:d===null?d=Object.getOwnPropertyDescriptor(s,a):d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(t,s,a,d);else for(var v=t.length-1;v>=0;v--)(p=t[v])&&(l=(m<3?p(l):m>3?p(s,a,l):p(s,a))||l);return m>3&&l&&Object.defineProperty(s,a,l),l},g=this&&this.__param||function(t,s){return function(a,d){s(a,d,t)}};Object.defineProperty(r,"__esModule",{value:!0}),r.CoreService=void 0;const n=o(1439),h=o(8460),_=o(844),f=o(2585),u=Object.freeze({insertMode:!1}),e=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0});let i=r.CoreService=class extends _.Disposable{constructor(t,s,a){super(),this._bufferService=t,this._logService=s,this._optionsService=a,this.isCursorInitialized=!1,this.isCursorHidden=!1,this._onData=this.register(new h.EventEmitter),this.onData=this._onData.event,this._onUserInput=this.register(new h.EventEmitter),this.onUserInput=this._onUserInput.event,this._onBinary=this.register(new h.EventEmitter),this.onBinary=this._onBinary.event,this._onRequestScrollToBottom=this.register(new h.EventEmitter),this.onRequestScrollToBottom=this._onRequestScrollToBottom.event,this.modes=(0,n.clone)(u),this.decPrivateModes=(0,n.clone)(e)}reset(){this.modes=(0,n.clone)(u),this.decPrivateModes=(0,n.clone)(e)}triggerDataEvent(t,s=!1){if(this._optionsService.rawOptions.disableStdin)return;const a=this._bufferService.buffer;s&&this._optionsService.rawOptions.scrollOnUserInput&&a.ybase!==a.ydisp&&this._onRequestScrollToBottom.fire(),s&&this._onUserInput.fire(),this._logService.debug(`sending data "${t}"`,()=>t.split("").map(d=>d.charCodeAt(0))),this._onData.fire(t)}triggerBinaryEvent(t){this._optionsService.rawOptions.disableStdin||(this._logService.debug(`sending binary "${t}"`,()=>t.split("").map(s=>s.charCodeAt(0))),this._onBinary.fire(t))}};r.CoreService=i=c([g(0,f.IBufferService),g(1,f.ILogService),g(2,f.IOptionsService)],i)},9074:(M,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.DecorationService=void 0;const c=o(8055),g=o(8460),n=o(844),h=o(6106);let _=0,f=0;class u extends n.Disposable{get decorations(){return this._decorations.values()}constructor(){super(),this._decorations=new h.SortedList(t=>t==null?void 0:t.marker.line),this._onDecorationRegistered=this.register(new g.EventEmitter),this.onDecorationRegistered=this._onDecorationRegistered.event,this._onDecorationRemoved=this.register(new g.EventEmitter),this.onDecorationRemoved=this._onDecorationRemoved.event,this.register((0,n.toDisposable)(()=>this.reset()))}registerDecoration(t){if(t.marker.isDisposed)return;const s=new e(t);if(s){const a=s.marker.onDispose(()=>s.dispose());s.onDispose(()=>{s&&(this._decorations.delete(s)&&this._onDecorationRemoved.fire(s),a.dispose())}),this._decorations.insert(s),this._onDecorationRegistered.fire(s)}return s}reset(){for(const t of this._decorations.values())t.dispose();this._decorations.clear()}*getDecorationsAtCell(t,s,a){var d,p,m;let l=0,v=0;for(const w of this._decorations.getKeyIterator(s))l=(d=w.options.x)!==null&&d!==void 0?d:0,v=l+((p=w.options.width)!==null&&p!==void 0?p:1),t>=l&&t{var m,l,v;_=(m=p.options.x)!==null&&m!==void 0?m:0,f=_+((l=p.options.width)!==null&&l!==void 0?l:1),t>=_&&t{Object.defineProperty(r,"__esModule",{value:!0}),r.InstantiationService=r.ServiceCollection=void 0;const c=o(2585),g=o(8343);class n{constructor(..._){this._entries=new Map;for(const[f,u]of _)this.set(f,u)}set(_,f){const u=this._entries.get(_);return this._entries.set(_,f),u}forEach(_){for(const[f,u]of this._entries.entries())_(f,u)}has(_){return this._entries.has(_)}get(_){return this._entries.get(_)}}r.ServiceCollection=n,r.InstantiationService=class{constructor(){this._services=new n,this._services.set(c.IInstantiationService,this)}setService(h,_){this._services.set(h,_)}getService(h){return this._services.get(h)}createInstance(h,..._){const f=(0,g.getServiceDependencies)(h).sort((i,t)=>i.index-t.index),u=[];for(const i of f){const t=this._services.get(i.id);if(!t)throw new Error(`[createInstance] ${h.name} depends on UNKNOWN service ${i.id}.`);u.push(t)}const e=f.length>0?f[0].index:_.length;if(_.length!==e)throw new Error(`[createInstance] First service dependency of ${h.name} at position ${e+1} conflicts with ${_.length} static arguments`);return new h(..._,...u)}}},7866:function(M,r,o){var c=this&&this.__decorate||function(e,i,t,s){var a,d=arguments.length,p=d<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,t):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")p=Reflect.decorate(e,i,t,s);else for(var m=e.length-1;m>=0;m--)(a=e[m])&&(p=(d<3?a(p):d>3?a(i,t,p):a(i,t))||p);return d>3&&p&&Object.defineProperty(i,t,p),p},g=this&&this.__param||function(e,i){return function(t,s){i(t,s,e)}};Object.defineProperty(r,"__esModule",{value:!0}),r.traceCall=r.setTraceLogger=r.LogService=void 0;const n=o(844),h=o(2585),_={trace:h.LogLevelEnum.TRACE,debug:h.LogLevelEnum.DEBUG,info:h.LogLevelEnum.INFO,warn:h.LogLevelEnum.WARN,error:h.LogLevelEnum.ERROR,off:h.LogLevelEnum.OFF};let f,u=r.LogService=class extends n.Disposable{get logLevel(){return this._logLevel}constructor(e){super(),this._optionsService=e,this._logLevel=h.LogLevelEnum.OFF,this._updateLogLevel(),this.register(this._optionsService.onSpecificOptionChange("logLevel",()=>this._updateLogLevel())),f=this}_updateLogLevel(){this._logLevel=_[this._optionsService.rawOptions.logLevel]}_evalLazyOptionalParams(e){for(let i=0;iJSON.stringify(p)).join(", ")})`);const d=s.apply(this,a);return f.trace(`GlyphRenderer#${s.name} return`,d),d}}},7302:(M,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.OptionsService=r.DEFAULT_OPTIONS=void 0;const c=o(8460),g=o(844),n=o(6114);r.DEFAULT_OPTIONS={cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,cursorInactiveStyle:"outline",customGlyphs:!0,drawBoldTextInBrightColors:!0,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",ignoreBracketedPasteMode:!1,lineHeight:1,letterSpacing:0,linkHandler:null,logLevel:"info",logger:null,scrollback:1e3,scrollOnUserInput:!0,scrollSensitivity:1,screenReaderMode:!1,smoothScrollDuration:0,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!1,allowTransparency:!1,tabStopWidth:8,theme:{},rightClickSelectsWord:n.isMac,windowOptions:{},windowsMode:!1,windowsPty:{},wordSeparator:" ()[]{}',\"`",altClickMovesCursor:!0,convertEol:!1,termName:"xterm",cancelEvents:!1,overviewRulerWidth:0};const h=["normal","bold","100","200","300","400","500","600","700","800","900"];class _ extends g.Disposable{constructor(u){super(),this._onOptionChange=this.register(new c.EventEmitter),this.onOptionChange=this._onOptionChange.event;const e=Object.assign({},r.DEFAULT_OPTIONS);for(const i in u)if(i in e)try{const t=u[i];e[i]=this._sanitizeAndValidateOption(i,t)}catch(t){console.error(t)}this.rawOptions=e,this.options=Object.assign({},e),this._setupOptions()}onSpecificOptionChange(u,e){return this.onOptionChange(i=>{i===u&&e(this.rawOptions[u])})}onMultipleOptionChange(u,e){return this.onOptionChange(i=>{u.indexOf(i)!==-1&&e()})}_setupOptions(){const u=i=>{if(!(i in r.DEFAULT_OPTIONS))throw new Error(`No option with key "${i}"`);return this.rawOptions[i]},e=(i,t)=>{if(!(i in r.DEFAULT_OPTIONS))throw new Error(`No option with key "${i}"`);t=this._sanitizeAndValidateOption(i,t),this.rawOptions[i]!==t&&(this.rawOptions[i]=t,this._onOptionChange.fire(i))};for(const i in this.rawOptions){const t={get:u.bind(this,i),set:e.bind(this,i)};Object.defineProperty(this.options,i,t)}}_sanitizeAndValidateOption(u,e){switch(u){case"cursorStyle":if(e||(e=r.DEFAULT_OPTIONS[u]),!function(i){return i==="block"||i==="underline"||i==="bar"}(e))throw new Error(`"${e}" is not a valid value for ${u}`);break;case"wordSeparator":e||(e=r.DEFAULT_OPTIONS[u]);break;case"fontWeight":case"fontWeightBold":if(typeof e=="number"&&1<=e&&e<=1e3)break;e=h.includes(e)?e:r.DEFAULT_OPTIONS[u];break;case"cursorWidth":e=Math.floor(e);case"lineHeight":case"tabStopWidth":if(e<1)throw new Error(`${u} cannot be less than 1, value: ${e}`);break;case"minimumContrastRatio":e=Math.max(1,Math.min(21,Math.round(10*e)/10));break;case"scrollback":if((e=Math.min(e,4294967295))<0)throw new Error(`${u} cannot be less than 0, value: ${e}`);break;case"fastScrollSensitivity":case"scrollSensitivity":if(e<=0)throw new Error(`${u} cannot be less than or equal to 0, value: ${e}`);break;case"rows":case"cols":if(!e&&e!==0)throw new Error(`${u} must be numeric, value: ${e}`);break;case"windowsPty":e=e??{}}return e}}r.OptionsService=_},2660:function(M,r,o){var c=this&&this.__decorate||function(_,f,u,e){var i,t=arguments.length,s=t<3?f:e===null?e=Object.getOwnPropertyDescriptor(f,u):e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(_,f,u,e);else for(var a=_.length-1;a>=0;a--)(i=_[a])&&(s=(t<3?i(s):t>3?i(f,u,s):i(f,u))||s);return t>3&&s&&Object.defineProperty(f,u,s),s},g=this&&this.__param||function(_,f){return function(u,e){f(u,e,_)}};Object.defineProperty(r,"__esModule",{value:!0}),r.OscLinkService=void 0;const n=o(2585);let h=r.OscLinkService=class{constructor(_){this._bufferService=_,this._nextId=1,this._entriesWithId=new Map,this._dataByLinkId=new Map}registerLink(_){const f=this._bufferService.buffer;if(_.id===void 0){const a=f.addMarker(f.ybase+f.y),d={data:_,id:this._nextId++,lines:[a]};return a.onDispose(()=>this._removeMarkerFromLink(d,a)),this._dataByLinkId.set(d.id,d),d.id}const u=_,e=this._getEntryIdKey(u),i=this._entriesWithId.get(e);if(i)return this.addLineToLink(i.id,f.ybase+f.y),i.id;const t=f.addMarker(f.ybase+f.y),s={id:this._nextId++,key:this._getEntryIdKey(u),data:u,lines:[t]};return t.onDispose(()=>this._removeMarkerFromLink(s,t)),this._entriesWithId.set(s.key,s),this._dataByLinkId.set(s.id,s),s.id}addLineToLink(_,f){const u=this._dataByLinkId.get(_);if(u&&u.lines.every(e=>e.line!==f)){const e=this._bufferService.buffer.addMarker(f);u.lines.push(e),e.onDispose(()=>this._removeMarkerFromLink(u,e))}}getLinkData(_){var f;return(f=this._dataByLinkId.get(_))===null||f===void 0?void 0:f.data}_getEntryIdKey(_){return`${_.id};;${_.uri}`}_removeMarkerFromLink(_,f){const u=_.lines.indexOf(f);u!==-1&&(_.lines.splice(u,1),_.lines.length===0&&(_.data.id!==void 0&&this._entriesWithId.delete(_.key),this._dataByLinkId.delete(_.id)))}};r.OscLinkService=h=c([g(0,n.IBufferService)],h)},8343:(M,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.createDecorator=r.getServiceDependencies=r.serviceRegistry=void 0;const o="di$target",c="di$dependencies";r.serviceRegistry=new Map,r.getServiceDependencies=function(g){return g[c]||[]},r.createDecorator=function(g){if(r.serviceRegistry.has(g))return r.serviceRegistry.get(g);const n=function(h,_,f){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");(function(u,e,i){e[o]===e?e[c].push({id:u,index:i}):(e[c]=[{id:u,index:i}],e[o]=e)})(n,h,f)};return n.toString=()=>g,r.serviceRegistry.set(g,n),n}},2585:(M,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.IDecorationService=r.IUnicodeService=r.IOscLinkService=r.IOptionsService=r.ILogService=r.LogLevelEnum=r.IInstantiationService=r.ICharsetService=r.ICoreService=r.ICoreMouseService=r.IBufferService=void 0;const c=o(8343);var g;r.IBufferService=(0,c.createDecorator)("BufferService"),r.ICoreMouseService=(0,c.createDecorator)("CoreMouseService"),r.ICoreService=(0,c.createDecorator)("CoreService"),r.ICharsetService=(0,c.createDecorator)("CharsetService"),r.IInstantiationService=(0,c.createDecorator)("InstantiationService"),function(n){n[n.TRACE=0]="TRACE",n[n.DEBUG=1]="DEBUG",n[n.INFO=2]="INFO",n[n.WARN=3]="WARN",n[n.ERROR=4]="ERROR",n[n.OFF=5]="OFF"}(g||(r.LogLevelEnum=g={})),r.ILogService=(0,c.createDecorator)("LogService"),r.IOptionsService=(0,c.createDecorator)("OptionsService"),r.IOscLinkService=(0,c.createDecorator)("OscLinkService"),r.IUnicodeService=(0,c.createDecorator)("UnicodeService"),r.IDecorationService=(0,c.createDecorator)("DecorationService")},1480:(M,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.UnicodeService=void 0;const c=o(8460),g=o(225);r.UnicodeService=class{constructor(){this._providers=Object.create(null),this._active="",this._onChange=new c.EventEmitter,this.onChange=this._onChange.event;const n=new g.UnicodeV6;this.register(n),this._active=n.version,this._activeProvider=n}dispose(){this._onChange.dispose()}get versions(){return Object.keys(this._providers)}get activeVersion(){return this._active}set activeVersion(n){if(!this._providers[n])throw new Error(`unknown Unicode version "${n}"`);this._active=n,this._activeProvider=this._providers[n],this._onChange.fire(n)}register(n){this._providers[n.version]=n}wcwidth(n){return this._activeProvider.wcwidth(n)}getStringCellWidth(n){let h=0;const _=n.length;for(let f=0;f<_;++f){let u=n.charCodeAt(f);if(55296<=u&&u<=56319){if(++f>=_)return h+this.wcwidth(u);const e=n.charCodeAt(f);56320<=e&&e<=57343?u=1024*(u-55296)+e-56320+65536:h+=this.wcwidth(e)}h+=this.wcwidth(u)}return h}}}},G={};function z(M){var r=G[M];if(r!==void 0)return r.exports;var o=G[M]={exports:{}};return ee[M].call(o.exports,o,o.exports,z),o.exports}var Y={};return(()=>{var M=Y;Object.defineProperty(M,"__esModule",{value:!0}),M.Terminal=void 0;const r=z(9042),o=z(3236),c=z(844),g=z(5741),n=z(8285),h=z(7975),_=z(7090),f=["cols","rows"];class u extends c.Disposable{constructor(i){super(),this._core=this.register(new o.Terminal(i)),this._addonManager=this.register(new g.AddonManager),this._publicOptions=Object.assign({},this._core.options);const t=a=>this._core.options[a],s=(a,d)=>{this._checkReadonlyOptions(a),this._core.options[a]=d};for(const a in this._core.options){const d={get:t.bind(this,a),set:s.bind(this,a)};Object.defineProperty(this._publicOptions,a,d)}}_checkReadonlyOptions(i){if(f.includes(i))throw new Error(`Option "${i}" can only be set in the constructor`)}_checkProposedApi(){if(!this._core.optionsService.rawOptions.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")}get onBell(){return this._core.onBell}get onBinary(){return this._core.onBinary}get onCursorMove(){return this._core.onCursorMove}get onData(){return this._core.onData}get onKey(){return this._core.onKey}get onLineFeed(){return this._core.onLineFeed}get onRender(){return this._core.onRender}get onResize(){return this._core.onResize}get onScroll(){return this._core.onScroll}get onSelectionChange(){return this._core.onSelectionChange}get onTitleChange(){return this._core.onTitleChange}get onWriteParsed(){return this._core.onWriteParsed}get element(){return this._core.element}get parser(){return this._parser||(this._parser=new h.ParserApi(this._core)),this._parser}get unicode(){return this._checkProposedApi(),new _.UnicodeApi(this._core)}get textarea(){return this._core.textarea}get rows(){return this._core.rows}get cols(){return this._core.cols}get buffer(){return this._buffer||(this._buffer=this.register(new n.BufferNamespaceApi(this._core))),this._buffer}get markers(){return this._checkProposedApi(),this._core.markers}get modes(){const i=this._core.coreService.decPrivateModes;let t="none";switch(this._core.coreMouseService.activeProtocol){case"X10":t="x10";break;case"VT200":t="vt200";break;case"DRAG":t="drag";break;case"ANY":t="any"}return{applicationCursorKeysMode:i.applicationCursorKeys,applicationKeypadMode:i.applicationKeypad,bracketedPasteMode:i.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:t,originMode:i.origin,reverseWraparoundMode:i.reverseWraparound,sendFocusMode:i.sendFocus,wraparoundMode:i.wraparound}}get options(){return this._publicOptions}set options(i){for(const t in i)this._publicOptions[t]=i[t]}blur(){this._core.blur()}focus(){this._core.focus()}resize(i,t){this._verifyIntegers(i,t),this._core.resize(i,t)}open(i){this._core.open(i)}attachCustomKeyEventHandler(i){this._core.attachCustomKeyEventHandler(i)}registerLinkProvider(i){return this._core.registerLinkProvider(i)}registerCharacterJoiner(i){return this._checkProposedApi(),this._core.registerCharacterJoiner(i)}deregisterCharacterJoiner(i){this._checkProposedApi(),this._core.deregisterCharacterJoiner(i)}registerMarker(i=0){return this._verifyIntegers(i),this._core.registerMarker(i)}registerDecoration(i){var t,s,a;return this._checkProposedApi(),this._verifyPositiveIntegers((t=i.x)!==null&&t!==void 0?t:0,(s=i.width)!==null&&s!==void 0?s:0,(a=i.height)!==null&&a!==void 0?a:0),this._core.registerDecoration(i)}hasSelection(){return this._core.hasSelection()}select(i,t,s){this._verifyIntegers(i,t,s),this._core.select(i,t,s)}getSelection(){return this._core.getSelection()}getSelectionPosition(){return this._core.getSelectionPosition()}clearSelection(){this._core.clearSelection()}selectAll(){this._core.selectAll()}selectLines(i,t){this._verifyIntegers(i,t),this._core.selectLines(i,t)}dispose(){super.dispose()}scrollLines(i){this._verifyIntegers(i),this._core.scrollLines(i)}scrollPages(i){this._verifyIntegers(i),this._core.scrollPages(i)}scrollToTop(){this._core.scrollToTop()}scrollToBottom(){this._core.scrollToBottom()}scrollToLine(i){this._verifyIntegers(i),this._core.scrollToLine(i)}clear(){this._core.clear()}write(i,t){this._core.write(i,t)}writeln(i,t){this._core.write(i),this._core.write(`\r -`,t)}paste(i){this._core.paste(i)}refresh(i,t){this._verifyIntegers(i,t),this._core.refresh(i,t)}reset(){this._core.reset()}clearTextureAtlas(){this._core.clearTextureAtlas()}loadAddon(i){this._addonManager.loadAddon(this,i)}static get strings(){return r}_verifyIntegers(...i){for(const t of i)if(t===1/0||isNaN(t)||t%1!=0)throw new Error("This API only accepts integers")}_verifyPositiveIntegers(...i){for(const t of i)if(t&&(t===1/0||isNaN(t)||t%1!=0||t<0))throw new Error("This API only accepts positive integers")}}M.Terminal=u})(),Y})())}(fe)),fe.exports}var ge={exports:{}},Se;function ke(){return Se||(Se=1,function(Z,ve){(function(ee,G){Z.exports=G()})(self,()=>(()=>{var ee={};return(()=>{var G=ee;Object.defineProperty(G,"__esModule",{value:!0}),G.FitAddon=void 0,G.FitAddon=class{activate(z){this._terminal=z}dispose(){}fit(){const z=this.proposeDimensions();if(!z||!this._terminal||isNaN(z.cols)||isNaN(z.rows))return;const Y=this._terminal._core;this._terminal.rows===z.rows&&this._terminal.cols===z.cols||(Y._renderService.clear(),this._terminal.resize(z.cols,z.rows))}proposeDimensions(){if(!this._terminal||!this._terminal.element||!this._terminal.element.parentElement)return;const z=this._terminal._core,Y=z._renderService.dimensions;if(Y.css.cell.width===0||Y.css.cell.height===0)return;const M=this._terminal.options.scrollback===0?0:z.viewport.scrollBarWidth,r=window.getComputedStyle(this._terminal.element.parentElement),o=parseInt(r.getPropertyValue("height")),c=Math.max(0,parseInt(r.getPropertyValue("width"))),g=window.getComputedStyle(this._terminal.element),n=o-(parseInt(g.getPropertyValue("padding-top"))+parseInt(g.getPropertyValue("padding-bottom"))),h=c-(parseInt(g.getPropertyValue("padding-right"))+parseInt(g.getPropertyValue("padding-left")))-M;return{cols:Math.max(2,Math.floor(h/Y.css.cell.width)),rows:Math.max(1,Math.floor(n/Y.css.cell.height))}}}})(),ee})())}(ge)),ge.exports}var pe={exports:{}},Ce;function Le(){return Ce||(Ce=1,function(Z,ve){(function(ee,G){Z.exports=G()})(self,()=>(()=>{var ee={345:(M,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.runAndSubscribe=r.forwardEvent=r.EventEmitter=void 0,r.EventEmitter=class{constructor(){this._listeners=[],this._disposed=!1}get event(){return this._event||(this._event=o=>(this._listeners.push(o),{dispose:()=>{if(!this._disposed){for(let c=0;cc.fire(g))},r.runAndSubscribe=function(o,c){return c(void 0),o(g=>c(g))}},859:(M,r)=>{function o(c){for(const g of c)g.dispose();c.length=0}Object.defineProperty(r,"__esModule",{value:!0}),r.getDisposeArrayDisposable=r.disposeArray=r.toDisposable=r.MutableDisposable=r.Disposable=void 0,r.Disposable=class{constructor(){this._disposables=[],this._isDisposed=!1}dispose(){this._isDisposed=!0;for(const c of this._disposables)c.dispose();this._disposables.length=0}register(c){return this._disposables.push(c),c}unregister(c){const g=this._disposables.indexOf(c);g!==-1&&this._disposables.splice(g,1)}},r.MutableDisposable=class{constructor(){this._isDisposed=!1}get value(){return this._isDisposed?void 0:this._value}set value(c){var g;this._isDisposed||c===this._value||((g=this._value)==null||g.dispose(),this._value=c)}clear(){this.value=void 0}dispose(){var c;this._isDisposed=!0,(c=this._value)==null||c.dispose(),this._value=void 0}},r.toDisposable=function(c){return{dispose:c}},r.disposeArray=o,r.getDisposeArrayDisposable=function(c){return{dispose:()=>o(c)}}}},G={};function z(M){var r=G[M];if(r!==void 0)return r.exports;var o=G[M]={exports:{}};return ee[M](o,o.exports,z),o.exports}var Y={};return(()=>{var M=Y;Object.defineProperty(M,"__esModule",{value:!0}),M.SearchAddon=void 0;const r=z(345),o=z(859),c=" ~!@#$%^&*()+`-=[]{}|\\;:\"',./<>?";class g extends o.Disposable{constructor(h){super(),this._highlightedLines=new Set,this._highlightDecorations=[],this._selectedDecoration=this.register(new o.MutableDisposable),this._linesCacheTimeoutId=0,this._linesCacheDisposables=new o.MutableDisposable,this._onDidChangeResults=this.register(new r.EventEmitter),this.onDidChangeResults=this._onDidChangeResults.event,this._highlightLimit=(h==null?void 0:h.highlightLimit)??1e3}activate(h){this._terminal=h,this.register(this._terminal.onWriteParsed(()=>this._updateMatches())),this.register(this._terminal.onResize(()=>this._updateMatches())),this.register((0,o.toDisposable)(()=>this.clearDecorations()))}_updateMatches(){var h;this._highlightTimeout&&window.clearTimeout(this._highlightTimeout),this._cachedSearchTerm&&((h=this._lastSearchOptions)!=null&&h.decorations)&&(this._highlightTimeout=setTimeout(()=>{const _=this._cachedSearchTerm;this._cachedSearchTerm=void 0,this.findPrevious(_,{...this._lastSearchOptions,incremental:!0,noScroll:!0})},200))}clearDecorations(h){this._selectedDecoration.clear(),(0,o.disposeArray)(this._highlightDecorations),this._highlightDecorations=[],this._highlightedLines.clear(),h||(this._cachedSearchTerm=void 0)}clearActiveDecoration(){this._selectedDecoration.clear()}findNext(h,_){if(!this._terminal)throw new Error("Cannot use addon until it has been loaded");const f=!this._lastSearchOptions||this._didOptionsChange(this._lastSearchOptions,_);this._lastSearchOptions=_,_!=null&&_.decorations&&(this._cachedSearchTerm===void 0||h!==this._cachedSearchTerm||f)&&this._highlightAllMatches(h,_);const u=this._findNextAndSelect(h,_);return this._fireResults(_),this._cachedSearchTerm=h,u}_highlightAllMatches(h,_){if(!this._terminal)throw new Error("Cannot use addon until it has been loaded");if(!h||h.length===0)return void this.clearDecorations();_=_||{},this.clearDecorations(!0);const f=[];let u,e=this._find(h,0,0,_);for(;e&&((u==null?void 0:u.row)!==e.row||(u==null?void 0:u.col)!==e.col)&&!(f.length>=this._highlightLimit);)u=e,f.push(u),e=this._find(h,u.col+u.term.length>=this._terminal.cols?u.row+1:u.row,u.col+u.term.length>=this._terminal.cols?0:u.col+1,_);for(const i of f){const t=this._createResultDecoration(i,_.decorations);t&&(this._highlightedLines.add(t.marker.line),this._highlightDecorations.push({decoration:t,match:i,dispose(){t.dispose()}}))}}_find(h,_,f,u){var t;if(!this._terminal||!h||h.length===0)return(t=this._terminal)==null||t.clearSelection(),void this.clearDecorations();if(f>this._terminal.cols)throw new Error(`Invalid col: ${f} to search in terminal of ${this._terminal.cols} cols`);let e;this._initLinesCache();const i={startRow:_,startCol:f};if(e=this._findInLine(h,i,u),!e)for(let s=_+1;s=0&&(t.startRow=d,s=this._findInLine(h,t,_,i),!s);d--);}if(!s&&u!==this._terminal.buffer.active.baseY+this._terminal.rows-1)for(let d=this._terminal.buffer.active.baseY+this._terminal.rows-1;d>=u&&(t.startRow=d,s=this._findInLine(h,t,_,i),!s);d--);return this._selectResult(s,_==null?void 0:_.decorations,_==null?void 0:_.noScroll)}_initLinesCache(){const h=this._terminal;this._linesCache||(this._linesCache=new Array(h.buffer.active.length),this._linesCacheDisposables.value=(0,o.getDisposeArrayDisposable)([h.onLineFeed(()=>this._destroyLinesCache()),h.onCursorMove(()=>this._destroyLinesCache()),h.onResize(()=>this._destroyLinesCache())])),window.clearTimeout(this._linesCacheTimeoutId),this._linesCacheTimeoutId=window.setTimeout(()=>this._destroyLinesCache(),15e3)}_destroyLinesCache(){this._linesCache=void 0,this._linesCacheDisposables.clear(),this._linesCacheTimeoutId&&(window.clearTimeout(this._linesCacheTimeoutId),this._linesCacheTimeoutId=0)}_isWholeWord(h,_,f){return(h===0||c.includes(_[h-1]))&&(h+f.length===_.length||c.includes(_[h+f.length]))}_findInLine(h,_,f={},u=!1){var L;const e=this._terminal,i=_.startRow,t=_.startCol,s=e.buffer.active.getLine(i);if(s!=null&&s.isWrapped)return u?void(_.startCol+=e.cols):(_.startRow--,_.startCol+=e.cols,this._findInLine(h,_,f));let a=(L=this._linesCache)==null?void 0:L[i];a||(a=this._translateBufferLineToStringWithWrap(i,!0),this._linesCache&&(this._linesCache[i]=a));const[d,p]=a,m=this._bufferColsToStringOffset(i,t),l=f.caseSensitive?h:h.toLowerCase(),v=f.caseSensitive?d:d.toLowerCase();let w=-1;if(f.regex){const b=RegExp(l,"g");let E;if(u)for(;E=b.exec(v.slice(0,m));)w=b.lastIndex-E[0].length,h=E[0],b.lastIndex-=h.length-1;else E=b.exec(v.slice(m)),E&&E[0].length>0&&(w=m+(b.lastIndex-E[0].length),h=E[0])}else u?m-l.length>=0&&(w=v.lastIndexOf(l,m-l.length)):w=v.indexOf(l,m);if(w>=0){if(f.wholeWord&&!this._isWholeWord(w,v,h))return;let b=0;for(;b=p[b+1];)b++;let E=b;for(;E=p[E+1];)E++;const x=w-p[b],T=w+h.length-p[E],P=this._stringLengthToBufferSize(i+b,x);return{term:h,col:P,row:i+b,size:this._stringLengthToBufferSize(i+E,T)-P+e.cols*(E-b)}}}_stringLengthToBufferSize(h,_){const f=this._terminal.buffer.active.getLine(h);if(!f)return 0;for(let u=0;u<_;u++){const e=f.getCell(u);if(!e)break;const i=e.getChars();i.length>1&&(_-=i.length-1);const t=f.getCell(u+1);t&&t.getWidth()===0&&_++}return _}_bufferColsToStringOffset(h,_){const f=this._terminal;let u=h,e=0,i=f.buffer.active.getLine(u);for(;_>0&&i;){for(let t=0;t<_&&tthis._applyStyles(s,_.activeMatchBorder,!0))),t.push(i.onDispose(()=>(0,o.disposeArray)(t))),this._selectedDecoration.value={decoration:i,match:h,dispose(){i.dispose()}}}}}if(!f&&(h.row>=u.buffer.active.viewportY+u.rows||h.rowthis._applyStyles(t,_.matchBorder,!1))),i.push(e.onDispose(()=>(0,o.disposeArray)(i)))}return e}}M.SearchAddon=g})(),Y})())}(pe)),pe.exports}export{ke as a,Le as b,ye as g,Ee as r}; +`,n.VT="\v",n.FF="\f",n.CR="\r",n.SO="",n.SI="",n.DLE="",n.DC1="",n.DC2="",n.DC3="",n.DC4="",n.NAK="",n.SYN="",n.ETB="",n.CAN="",n.EM="",n.SUB="",n.ESC="\x1B",n.FS="",n.GS="",n.RS="",n.US="",n.SP=" ",n.DEL=""}(o||(r.C0=o={})),function(n){n.PAD="€",n.HOP="",n.BPH="‚",n.NBH="ƒ",n.IND="„",n.NEL="…",n.SSA="†",n.ESA="‡",n.HTS="ˆ",n.HTJ="‰",n.VTS="Š",n.PLD="‹",n.PLU="Œ",n.RI="",n.SS2="Ž",n.SS3="",n.DCS="",n.PU1="‘",n.PU2="’",n.STS="“",n.CCH="”",n.MW="•",n.SPA="–",n.EPA="—",n.SOS="˜",n.SGCI="™",n.SCI="š",n.CSI="›",n.ST="œ",n.OSC="",n.PM="ž",n.APC="Ÿ"}(c||(r.C1=c={})),function(n){n.ST=`${o.ESC}\\`}(g||(r.C1_ESCAPED=g={}))},7399:(M,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.evaluateKeyboardEvent=void 0;const c=o(2584),g={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};r.evaluateKeyboardEvent=function(n,h,_,f){const u={type:0,cancel:!1,key:void 0},e=(n.shiftKey?1:0)|(n.altKey?2:0)|(n.ctrlKey?4:0)|(n.metaKey?8:0);switch(n.keyCode){case 0:n.key==="UIKeyInputUpArrow"?u.key=h?c.C0.ESC+"OA":c.C0.ESC+"[A":n.key==="UIKeyInputLeftArrow"?u.key=h?c.C0.ESC+"OD":c.C0.ESC+"[D":n.key==="UIKeyInputRightArrow"?u.key=h?c.C0.ESC+"OC":c.C0.ESC+"[C":n.key==="UIKeyInputDownArrow"&&(u.key=h?c.C0.ESC+"OB":c.C0.ESC+"[B");break;case 8:if(n.altKey){u.key=c.C0.ESC+c.C0.DEL;break}u.key=c.C0.DEL;break;case 9:if(n.shiftKey){u.key=c.C0.ESC+"[Z";break}u.key=c.C0.HT,u.cancel=!0;break;case 13:u.key=n.altKey?c.C0.ESC+c.C0.CR:c.C0.CR,u.cancel=!0;break;case 27:u.key=c.C0.ESC,n.altKey&&(u.key=c.C0.ESC+c.C0.ESC),u.cancel=!0;break;case 37:if(n.metaKey)break;e?(u.key=c.C0.ESC+"[1;"+(e+1)+"D",u.key===c.C0.ESC+"[1;3D"&&(u.key=c.C0.ESC+(_?"b":"[1;5D"))):u.key=h?c.C0.ESC+"OD":c.C0.ESC+"[D";break;case 39:if(n.metaKey)break;e?(u.key=c.C0.ESC+"[1;"+(e+1)+"C",u.key===c.C0.ESC+"[1;3C"&&(u.key=c.C0.ESC+(_?"f":"[1;5C"))):u.key=h?c.C0.ESC+"OC":c.C0.ESC+"[C";break;case 38:if(n.metaKey)break;e?(u.key=c.C0.ESC+"[1;"+(e+1)+"A",_||u.key!==c.C0.ESC+"[1;3A"||(u.key=c.C0.ESC+"[1;5A")):u.key=h?c.C0.ESC+"OA":c.C0.ESC+"[A";break;case 40:if(n.metaKey)break;e?(u.key=c.C0.ESC+"[1;"+(e+1)+"B",_||u.key!==c.C0.ESC+"[1;3B"||(u.key=c.C0.ESC+"[1;5B")):u.key=h?c.C0.ESC+"OB":c.C0.ESC+"[B";break;case 45:n.shiftKey||n.ctrlKey||(u.key=c.C0.ESC+"[2~");break;case 46:u.key=e?c.C0.ESC+"[3;"+(e+1)+"~":c.C0.ESC+"[3~";break;case 36:u.key=e?c.C0.ESC+"[1;"+(e+1)+"H":h?c.C0.ESC+"OH":c.C0.ESC+"[H";break;case 35:u.key=e?c.C0.ESC+"[1;"+(e+1)+"F":h?c.C0.ESC+"OF":c.C0.ESC+"[F";break;case 33:n.shiftKey?u.type=2:n.ctrlKey?u.key=c.C0.ESC+"[5;"+(e+1)+"~":u.key=c.C0.ESC+"[5~";break;case 34:n.shiftKey?u.type=3:n.ctrlKey?u.key=c.C0.ESC+"[6;"+(e+1)+"~":u.key=c.C0.ESC+"[6~";break;case 112:u.key=e?c.C0.ESC+"[1;"+(e+1)+"P":c.C0.ESC+"OP";break;case 113:u.key=e?c.C0.ESC+"[1;"+(e+1)+"Q":c.C0.ESC+"OQ";break;case 114:u.key=e?c.C0.ESC+"[1;"+(e+1)+"R":c.C0.ESC+"OR";break;case 115:u.key=e?c.C0.ESC+"[1;"+(e+1)+"S":c.C0.ESC+"OS";break;case 116:u.key=e?c.C0.ESC+"[15;"+(e+1)+"~":c.C0.ESC+"[15~";break;case 117:u.key=e?c.C0.ESC+"[17;"+(e+1)+"~":c.C0.ESC+"[17~";break;case 118:u.key=e?c.C0.ESC+"[18;"+(e+1)+"~":c.C0.ESC+"[18~";break;case 119:u.key=e?c.C0.ESC+"[19;"+(e+1)+"~":c.C0.ESC+"[19~";break;case 120:u.key=e?c.C0.ESC+"[20;"+(e+1)+"~":c.C0.ESC+"[20~";break;case 121:u.key=e?c.C0.ESC+"[21;"+(e+1)+"~":c.C0.ESC+"[21~";break;case 122:u.key=e?c.C0.ESC+"[23;"+(e+1)+"~":c.C0.ESC+"[23~";break;case 123:u.key=e?c.C0.ESC+"[24;"+(e+1)+"~":c.C0.ESC+"[24~";break;default:if(!n.ctrlKey||n.shiftKey||n.altKey||n.metaKey)if(_&&!f||!n.altKey||n.metaKey)!_||n.altKey||n.ctrlKey||n.shiftKey||!n.metaKey?n.key&&!n.ctrlKey&&!n.altKey&&!n.metaKey&&n.keyCode>=48&&n.key.length===1?u.key=n.key:n.key&&n.ctrlKey&&(n.key==="_"&&(u.key=c.C0.US),n.key==="@"&&(u.key=c.C0.NUL)):n.keyCode===65&&(u.type=1);else{const i=g[n.keyCode],t=i==null?void 0:i[n.shiftKey?1:0];if(t)u.key=c.C0.ESC+t;else if(n.keyCode>=65&&n.keyCode<=90){const s=n.ctrlKey?n.keyCode-64:n.keyCode+32;let a=String.fromCharCode(s);n.shiftKey&&(a=a.toUpperCase()),u.key=c.C0.ESC+a}else if(n.keyCode===32)u.key=c.C0.ESC+(n.ctrlKey?c.C0.NUL:" ");else if(n.key==="Dead"&&n.code.startsWith("Key")){let s=n.code.slice(3,4);n.shiftKey||(s=s.toLowerCase()),u.key=c.C0.ESC+s,u.cancel=!0}}else n.keyCode>=65&&n.keyCode<=90?u.key=String.fromCharCode(n.keyCode-64):n.keyCode===32?u.key=c.C0.NUL:n.keyCode>=51&&n.keyCode<=55?u.key=String.fromCharCode(n.keyCode-51+27):n.keyCode===56?u.key=c.C0.DEL:n.keyCode===219?u.key=c.C0.ESC:n.keyCode===220?u.key=c.C0.FS:n.keyCode===221&&(u.key=c.C0.GS)}return u}},482:(M,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.Utf8ToUtf32=r.StringToUtf32=r.utf32ToString=r.stringFromCodePoint=void 0,r.stringFromCodePoint=function(o){return o>65535?(o-=65536,String.fromCharCode(55296+(o>>10))+String.fromCharCode(o%1024+56320)):String.fromCharCode(o)},r.utf32ToString=function(o,c=0,g=o.length){let n="";for(let h=c;h65535?(_-=65536,n+=String.fromCharCode(55296+(_>>10))+String.fromCharCode(_%1024+56320)):n+=String.fromCharCode(_)}return n},r.StringToUtf32=class{constructor(){this._interim=0}clear(){this._interim=0}decode(o,c){const g=o.length;if(!g)return 0;let n=0,h=0;if(this._interim){const _=o.charCodeAt(h++);56320<=_&&_<=57343?c[n++]=1024*(this._interim-55296)+_-56320+65536:(c[n++]=this._interim,c[n++]=_),this._interim=0}for(let _=h;_=g)return this._interim=f,n;const u=o.charCodeAt(_);56320<=u&&u<=57343?c[n++]=1024*(f-55296)+u-56320+65536:(c[n++]=f,c[n++]=u)}else f!==65279&&(c[n++]=f)}return n}},r.Utf8ToUtf32=class{constructor(){this.interim=new Uint8Array(3)}clear(){this.interim.fill(0)}decode(o,c){const g=o.length;if(!g)return 0;let n,h,_,f,u=0,e=0,i=0;if(this.interim[0]){let a=!1,d=this.interim[0];d&=(224&d)==192?31:(240&d)==224?15:7;let p,m=0;for(;(p=63&this.interim[++m])&&m<4;)d<<=6,d|=p;const l=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,v=l-m;for(;i=g)return 0;if(p=o[i++],(192&p)!=128){i--,a=!0;break}this.interim[m++]=p,d<<=6,d|=63&p}a||(l===2?d<128?i--:c[u++]=d:l===3?d<2048||d>=55296&&d<=57343||d===65279||(c[u++]=d):d<65536||d>1114111||(c[u++]=d)),this.interim.fill(0)}const t=g-4;let s=i;for(;s=g)return this.interim[0]=n,u;if(h=o[s++],(192&h)!=128){s--;continue}if(e=(31&n)<<6|63&h,e<128){s--;continue}c[u++]=e}else if((240&n)==224){if(s>=g)return this.interim[0]=n,u;if(h=o[s++],(192&h)!=128){s--;continue}if(s>=g)return this.interim[0]=n,this.interim[1]=h,u;if(_=o[s++],(192&_)!=128){s--;continue}if(e=(15&n)<<12|(63&h)<<6|63&_,e<2048||e>=55296&&e<=57343||e===65279)continue;c[u++]=e}else if((248&n)==240){if(s>=g)return this.interim[0]=n,u;if(h=o[s++],(192&h)!=128){s--;continue}if(s>=g)return this.interim[0]=n,this.interim[1]=h,u;if(_=o[s++],(192&_)!=128){s--;continue}if(s>=g)return this.interim[0]=n,this.interim[1]=h,this.interim[2]=_,u;if(f=o[s++],(192&f)!=128){s--;continue}if(e=(7&n)<<18|(63&h)<<12|(63&_)<<6|63&f,e<65536||e>1114111)continue;c[u++]=e}}return u}}},225:(M,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.UnicodeV6=void 0;const o=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],c=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]];let g;r.UnicodeV6=class{constructor(){if(this.version="6",!g){g=new Uint8Array(65536),g.fill(1),g[0]=0,g.fill(0,1,32),g.fill(0,127,160),g.fill(2,4352,4448),g[9001]=2,g[9002]=2,g.fill(2,11904,42192),g[12351]=1,g.fill(2,44032,55204),g.fill(2,63744,64256),g.fill(2,65040,65050),g.fill(2,65072,65136),g.fill(2,65280,65377),g.fill(2,65504,65511);for(let n=0;n_[e][1])return!1;for(;e>=u;)if(f=u+e>>1,h>_[f][1])u=f+1;else{if(!(h<_[f][0]))return!0;e=f-1}return!1}(n,c)?0:n>=131072&&n<=196605||n>=196608&&n<=262141?2:1}}},5981:(M,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.WriteBuffer=void 0;const c=o(8460),g=o(844);class n extends g.Disposable{constructor(_){super(),this._action=_,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0,this._isSyncWriting=!1,this._syncCalls=0,this._didUserInput=!1,this._onWriteParsed=this.register(new c.EventEmitter),this.onWriteParsed=this._onWriteParsed.event}handleUserInput(){this._didUserInput=!0}writeSync(_,f){if(f!==void 0&&this._syncCalls>f)return void(this._syncCalls=0);if(this._pendingData+=_.length,this._writeBuffer.push(_),this._callbacks.push(void 0),this._syncCalls++,this._isSyncWriting)return;let u;for(this._isSyncWriting=!0;u=this._writeBuffer.shift();){this._action(u);const e=this._callbacks.shift();e&&e()}this._pendingData=0,this._bufferOffset=2147483647,this._isSyncWriting=!1,this._syncCalls=0}write(_,f){if(this._pendingData>5e7)throw new Error("write data discarded, use flow control to avoid losing data");if(!this._writeBuffer.length){if(this._bufferOffset=0,this._didUserInput)return this._didUserInput=!1,this._pendingData+=_.length,this._writeBuffer.push(_),this._callbacks.push(f),void this._innerWrite();setTimeout(()=>this._innerWrite())}this._pendingData+=_.length,this._writeBuffer.push(_),this._callbacks.push(f)}_innerWrite(_=0,f=!0){const u=_||Date.now();for(;this._writeBuffer.length>this._bufferOffset;){const e=this._writeBuffer[this._bufferOffset],i=this._action(e,f);if(i){const s=a=>Date.now()-u>=12?setTimeout(()=>this._innerWrite(0,a)):this._innerWrite(u,a);return void i.catch(a=>(queueMicrotask(()=>{throw a}),Promise.resolve(!1))).then(s)}const t=this._callbacks[this._bufferOffset];if(t&&t(),this._bufferOffset++,this._pendingData-=e.length,Date.now()-u>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout(()=>this._innerWrite())):(this._writeBuffer.length=0,this._callbacks.length=0,this._pendingData=0,this._bufferOffset=0),this._onWriteParsed.fire()}}r.WriteBuffer=n},5941:(M,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.toRgbString=r.parseColor=void 0;const o=/^([\da-f])\/([\da-f])\/([\da-f])$|^([\da-f]{2})\/([\da-f]{2})\/([\da-f]{2})$|^([\da-f]{3})\/([\da-f]{3})\/([\da-f]{3})$|^([\da-f]{4})\/([\da-f]{4})\/([\da-f]{4})$/,c=/^[\da-f]+$/;function g(n,h){const _=n.toString(16),f=_.length<2?"0"+_:_;switch(h){case 4:return _[0];case 8:return f;case 12:return(f+f).slice(0,3);default:return f+f}}r.parseColor=function(n){if(!n)return;let h=n.toLowerCase();if(h.indexOf("rgb:")===0){h=h.slice(4);const _=o.exec(h);if(_){const f=_[1]?15:_[4]?255:_[7]?4095:65535;return[Math.round(parseInt(_[1]||_[4]||_[7]||_[10],16)/f*255),Math.round(parseInt(_[2]||_[5]||_[8]||_[11],16)/f*255),Math.round(parseInt(_[3]||_[6]||_[9]||_[12],16)/f*255)]}}else if(h.indexOf("#")===0&&(h=h.slice(1),c.exec(h)&&[3,6,9,12].includes(h.length))){const _=h.length/3,f=[0,0,0];for(let u=0;u<3;++u){const e=parseInt(h.slice(_*u,_*u+_),16);f[u]=_===1?e<<4:_===2?e:_===3?e>>4:e>>8}return f}},r.toRgbString=function(n,h=16){const[_,f,u]=n;return`rgb:${g(_,h)}/${g(f,h)}/${g(u,h)}`}},5770:(M,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.PAYLOAD_LIMIT=void 0,r.PAYLOAD_LIMIT=1e7},6351:(M,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.DcsHandler=r.DcsParser=void 0;const c=o(482),g=o(8742),n=o(5770),h=[];r.DcsParser=class{constructor(){this._handlers=Object.create(null),this._active=h,this._ident=0,this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=h}registerHandler(f,u){this._handlers[f]===void 0&&(this._handlers[f]=[]);const e=this._handlers[f];return e.push(u),{dispose:()=>{const i=e.indexOf(u);i!==-1&&e.splice(i,1)}}}clearHandler(f){this._handlers[f]&&delete this._handlers[f]}setHandlerFallback(f){this._handlerFb=f}reset(){if(this._active.length)for(let f=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;f>=0;--f)this._active[f].unhook(!1);this._stack.paused=!1,this._active=h,this._ident=0}hook(f,u){if(this.reset(),this._ident=f,this._active=this._handlers[f]||h,this._active.length)for(let e=this._active.length-1;e>=0;e--)this._active[e].hook(u);else this._handlerFb(this._ident,"HOOK",u)}put(f,u,e){if(this._active.length)for(let i=this._active.length-1;i>=0;i--)this._active[i].put(f,u,e);else this._handlerFb(this._ident,"PUT",(0,c.utf32ToString)(f,u,e))}unhook(f,u=!0){if(this._active.length){let e=!1,i=this._active.length-1,t=!1;if(this._stack.paused&&(i=this._stack.loopPosition-1,e=u,t=this._stack.fallThrough,this._stack.paused=!1),!t&&e===!1){for(;i>=0&&(e=this._active[i].unhook(f),e!==!0);i--)if(e instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=i,this._stack.fallThrough=!1,e;i--}for(;i>=0;i--)if(e=this._active[i].unhook(!1),e instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=i,this._stack.fallThrough=!0,e}else this._handlerFb(this._ident,"UNHOOK",f);this._active=h,this._ident=0}};const _=new g.Params;_.addParam(0),r.DcsHandler=class{constructor(f){this._handler=f,this._data="",this._params=_,this._hitLimit=!1}hook(f){this._params=f.length>1||f.params[0]?f.clone():_,this._data="",this._hitLimit=!1}put(f,u,e){this._hitLimit||(this._data+=(0,c.utf32ToString)(f,u,e),this._data.length>n.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))}unhook(f){let u=!1;if(this._hitLimit)u=!1;else if(f&&(u=this._handler(this._data,this._params),u instanceof Promise))return u.then(e=>(this._params=_,this._data="",this._hitLimit=!1,e));return this._params=_,this._data="",this._hitLimit=!1,u}}},2015:(M,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.EscapeSequenceParser=r.VT500_TRANSITION_TABLE=r.TransitionTable=void 0;const c=o(844),g=o(8742),n=o(6242),h=o(6351);class _{constructor(i){this.table=new Uint8Array(i)}setDefault(i,t){this.table.fill(i<<4|t)}add(i,t,s,a){this.table[t<<8|i]=s<<4|a}addMany(i,t,s,a){for(let d=0;dl),t=(m,l)=>i.slice(m,l),s=t(32,127),a=t(0,24);a.push(25),a.push.apply(a,t(28,32));const d=t(0,14);let p;for(p in e.setDefault(1,0),e.addMany(s,0,2,0),d)e.addMany([24,26,153,154],p,3,0),e.addMany(t(128,144),p,3,0),e.addMany(t(144,152),p,3,0),e.add(156,p,0,0),e.add(27,p,11,1),e.add(157,p,4,8),e.addMany([152,158,159],p,0,7),e.add(155,p,11,3),e.add(144,p,11,9);return e.addMany(a,0,3,0),e.addMany(a,1,3,1),e.add(127,1,0,1),e.addMany(a,8,0,8),e.addMany(a,3,3,3),e.add(127,3,0,3),e.addMany(a,4,3,4),e.add(127,4,0,4),e.addMany(a,6,3,6),e.addMany(a,5,3,5),e.add(127,5,0,5),e.addMany(a,2,3,2),e.add(127,2,0,2),e.add(93,1,4,8),e.addMany(s,8,5,8),e.add(127,8,5,8),e.addMany([156,27,24,26,7],8,6,0),e.addMany(t(28,32),8,0,8),e.addMany([88,94,95],1,0,7),e.addMany(s,7,0,7),e.addMany(a,7,0,7),e.add(156,7,0,0),e.add(127,7,0,7),e.add(91,1,11,3),e.addMany(t(64,127),3,7,0),e.addMany(t(48,60),3,8,4),e.addMany([60,61,62,63],3,9,4),e.addMany(t(48,60),4,8,4),e.addMany(t(64,127),4,7,0),e.addMany([60,61,62,63],4,0,6),e.addMany(t(32,64),6,0,6),e.add(127,6,0,6),e.addMany(t(64,127),6,0,0),e.addMany(t(32,48),3,9,5),e.addMany(t(32,48),5,9,5),e.addMany(t(48,64),5,0,6),e.addMany(t(64,127),5,7,0),e.addMany(t(32,48),4,9,5),e.addMany(t(32,48),1,9,2),e.addMany(t(32,48),2,9,2),e.addMany(t(48,127),2,10,0),e.addMany(t(48,80),1,10,0),e.addMany(t(81,88),1,10,0),e.addMany([89,90,92],1,10,0),e.addMany(t(96,127),1,10,0),e.add(80,1,11,9),e.addMany(a,9,0,9),e.add(127,9,0,9),e.addMany(t(28,32),9,0,9),e.addMany(t(32,48),9,9,12),e.addMany(t(48,60),9,8,10),e.addMany([60,61,62,63],9,9,10),e.addMany(a,11,0,11),e.addMany(t(32,128),11,0,11),e.addMany(t(28,32),11,0,11),e.addMany(a,10,0,10),e.add(127,10,0,10),e.addMany(t(28,32),10,0,10),e.addMany(t(48,60),10,8,10),e.addMany([60,61,62,63],10,0,11),e.addMany(t(32,48),10,9,12),e.addMany(a,12,0,12),e.add(127,12,0,12),e.addMany(t(28,32),12,0,12),e.addMany(t(32,48),12,9,12),e.addMany(t(48,64),12,0,11),e.addMany(t(64,127),12,12,13),e.addMany(t(64,127),10,12,13),e.addMany(t(64,127),9,12,13),e.addMany(a,13,13,13),e.addMany(s,13,13,13),e.add(127,13,0,13),e.addMany([27,156,24,26],13,14,0),e.add(f,0,2,0),e.add(f,8,5,8),e.add(f,6,0,6),e.add(f,11,0,11),e.add(f,13,13,13),e}();class u extends c.Disposable{constructor(i=r.VT500_TRANSITION_TABLE){super(),this._transitions=i,this._parseStack={state:0,handlers:[],handlerPos:0,transition:0,chunkPos:0},this.initialState=0,this.currentState=this.initialState,this._params=new g.Params,this._params.addParam(0),this._collect=0,this.precedingCodepoint=0,this._printHandlerFb=(t,s,a)=>{},this._executeHandlerFb=t=>{},this._csiHandlerFb=(t,s)=>{},this._escHandlerFb=t=>{},this._errorHandlerFb=t=>t,this._printHandler=this._printHandlerFb,this._executeHandlers=Object.create(null),this._csiHandlers=Object.create(null),this._escHandlers=Object.create(null),this.register((0,c.toDisposable)(()=>{this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null)})),this._oscParser=this.register(new n.OscParser),this._dcsParser=this.register(new h.DcsParser),this._errorHandler=this._errorHandlerFb,this.registerEscHandler({final:"\\"},()=>!0)}_identifier(i,t=[64,126]){let s=0;if(i.prefix){if(i.prefix.length>1)throw new Error("only one byte as prefix supported");if(s=i.prefix.charCodeAt(0),s&&60>s||s>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(i.intermediates){if(i.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(let d=0;dp||p>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");s<<=8,s|=p}}if(i.final.length!==1)throw new Error("final must be a single byte");const a=i.final.charCodeAt(0);if(t[0]>a||a>t[1])throw new Error(`final must be in range ${t[0]} .. ${t[1]}`);return s<<=8,s|=a,s}identToString(i){const t=[];for(;i;)t.push(String.fromCharCode(255&i)),i>>=8;return t.reverse().join("")}setPrintHandler(i){this._printHandler=i}clearPrintHandler(){this._printHandler=this._printHandlerFb}registerEscHandler(i,t){const s=this._identifier(i,[48,126]);this._escHandlers[s]===void 0&&(this._escHandlers[s]=[]);const a=this._escHandlers[s];return a.push(t),{dispose:()=>{const d=a.indexOf(t);d!==-1&&a.splice(d,1)}}}clearEscHandler(i){this._escHandlers[this._identifier(i,[48,126])]&&delete this._escHandlers[this._identifier(i,[48,126])]}setEscHandlerFallback(i){this._escHandlerFb=i}setExecuteHandler(i,t){this._executeHandlers[i.charCodeAt(0)]=t}clearExecuteHandler(i){this._executeHandlers[i.charCodeAt(0)]&&delete this._executeHandlers[i.charCodeAt(0)]}setExecuteHandlerFallback(i){this._executeHandlerFb=i}registerCsiHandler(i,t){const s=this._identifier(i);this._csiHandlers[s]===void 0&&(this._csiHandlers[s]=[]);const a=this._csiHandlers[s];return a.push(t),{dispose:()=>{const d=a.indexOf(t);d!==-1&&a.splice(d,1)}}}clearCsiHandler(i){this._csiHandlers[this._identifier(i)]&&delete this._csiHandlers[this._identifier(i)]}setCsiHandlerFallback(i){this._csiHandlerFb=i}registerDcsHandler(i,t){return this._dcsParser.registerHandler(this._identifier(i),t)}clearDcsHandler(i){this._dcsParser.clearHandler(this._identifier(i))}setDcsHandlerFallback(i){this._dcsParser.setHandlerFallback(i)}registerOscHandler(i,t){return this._oscParser.registerHandler(i,t)}clearOscHandler(i){this._oscParser.clearHandler(i)}setOscHandlerFallback(i){this._oscParser.setHandlerFallback(i)}setErrorHandler(i){this._errorHandler=i}clearErrorHandler(){this._errorHandler=this._errorHandlerFb}reset(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0,this._parseStack.state!==0&&(this._parseStack.state=2,this._parseStack.handlers=[])}_preserveStack(i,t,s,a,d){this._parseStack.state=i,this._parseStack.handlers=t,this._parseStack.handlerPos=s,this._parseStack.transition=a,this._parseStack.chunkPos=d}parse(i,t,s){let a,d=0,p=0,m=0;if(this._parseStack.state)if(this._parseStack.state===2)this._parseStack.state=0,m=this._parseStack.chunkPos+1;else{if(s===void 0||this._parseStack.state===1)throw this._parseStack.state=1,new Error("improper continuation due to previous async handler, giving up parsing");const l=this._parseStack.handlers;let v=this._parseStack.handlerPos-1;switch(this._parseStack.state){case 3:if(s===!1&&v>-1){for(;v>=0&&(a=l[v](this._params),a!==!0);v--)if(a instanceof Promise)return this._parseStack.handlerPos=v,a}this._parseStack.handlers=[];break;case 4:if(s===!1&&v>-1){for(;v>=0&&(a=l[v](),a!==!0);v--)if(a instanceof Promise)return this._parseStack.handlerPos=v,a}this._parseStack.handlers=[];break;case 6:if(d=i[this._parseStack.chunkPos],a=this._dcsParser.unhook(d!==24&&d!==26,s),a)return a;d===27&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if(d=i[this._parseStack.chunkPos],a=this._oscParser.end(d!==24&&d!==26,s),a)return a;d===27&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0}this._parseStack.state=0,m=this._parseStack.chunkPos+1,this.precedingCodepoint=0,this.currentState=15&this._parseStack.transition}for(let l=m;l>4){case 2:for(let E=l+1;;++E){if(E>=t||(d=i[E])<32||d>126&&d=t||(d=i[E])<32||d>126&&d=t||(d=i[E])<32||d>126&&d=t||(d=i[E])<32||d>126&&d=0&&(a=v[w](this._params),a!==!0);w--)if(a instanceof Promise)return this._preserveStack(3,v,w,p,l),a;w<0&&this._csiHandlerFb(this._collect<<8|d,this._params),this.precedingCodepoint=0;break;case 8:do switch(d){case 59:this._params.addParam(0);break;case 58:this._params.addSubParam(-1);break;default:this._params.addDigit(d-48)}while(++l47&&d<60);l--;break;case 9:this._collect<<=8,this._collect|=d;break;case 10:const L=this._escHandlers[this._collect<<8|d];let b=L?L.length-1:-1;for(;b>=0&&(a=L[b](),a!==!0);b--)if(a instanceof Promise)return this._preserveStack(4,L,b,p,l),a;b<0&&this._escHandlerFb(this._collect<<8|d),this.precedingCodepoint=0;break;case 11:this._params.reset(),this._params.addParam(0),this._collect=0;break;case 12:this._dcsParser.hook(this._collect<<8|d,this._params);break;case 13:for(let E=l+1;;++E)if(E>=t||(d=i[E])===24||d===26||d===27||d>127&&d=t||(d=i[E])<32||d>127&&d{Object.defineProperty(r,"__esModule",{value:!0}),r.OscHandler=r.OscParser=void 0;const c=o(5770),g=o(482),n=[];r.OscParser=class{constructor(){this._state=0,this._active=n,this._id=-1,this._handlers=Object.create(null),this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}registerHandler(h,_){this._handlers[h]===void 0&&(this._handlers[h]=[]);const f=this._handlers[h];return f.push(_),{dispose:()=>{const u=f.indexOf(_);u!==-1&&f.splice(u,1)}}}clearHandler(h){this._handlers[h]&&delete this._handlers[h]}setHandlerFallback(h){this._handlerFb=h}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=n}reset(){if(this._state===2)for(let h=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;h>=0;--h)this._active[h].end(!1);this._stack.paused=!1,this._active=n,this._id=-1,this._state=0}_start(){if(this._active=this._handlers[this._id]||n,this._active.length)for(let h=this._active.length-1;h>=0;h--)this._active[h].start();else this._handlerFb(this._id,"START")}_put(h,_,f){if(this._active.length)for(let u=this._active.length-1;u>=0;u--)this._active[u].put(h,_,f);else this._handlerFb(this._id,"PUT",(0,g.utf32ToString)(h,_,f))}start(){this.reset(),this._state=1}put(h,_,f){if(this._state!==3){if(this._state===1)for(;_0&&this._put(h,_,f)}}end(h,_=!0){if(this._state!==0){if(this._state!==3)if(this._state===1&&this._start(),this._active.length){let f=!1,u=this._active.length-1,e=!1;if(this._stack.paused&&(u=this._stack.loopPosition-1,f=_,e=this._stack.fallThrough,this._stack.paused=!1),!e&&f===!1){for(;u>=0&&(f=this._active[u].end(h),f!==!0);u--)if(f instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=u,this._stack.fallThrough=!1,f;u--}for(;u>=0;u--)if(f=this._active[u].end(!1),f instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=u,this._stack.fallThrough=!0,f}else this._handlerFb(this._id,"END",h);this._active=n,this._id=-1,this._state=0}}},r.OscHandler=class{constructor(h){this._handler=h,this._data="",this._hitLimit=!1}start(){this._data="",this._hitLimit=!1}put(h,_,f){this._hitLimit||(this._data+=(0,g.utf32ToString)(h,_,f),this._data.length>c.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))}end(h){let _=!1;if(this._hitLimit)_=!1;else if(h&&(_=this._handler(this._data),_ instanceof Promise))return _.then(f=>(this._data="",this._hitLimit=!1,f));return this._data="",this._hitLimit=!1,_}}},8742:(M,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.Params=void 0;const o=2147483647;class c{static fromArray(n){const h=new c;if(!n.length)return h;for(let _=Array.isArray(n[0])?1:0;_256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(n),this.length=0,this._subParams=new Int32Array(h),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(n),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}clone(){const n=new c(this.maxLength,this.maxSubParamsLength);return n.params.set(this.params),n.length=this.length,n._subParams.set(this._subParams),n._subParamsLength=this._subParamsLength,n._subParamsIdx.set(this._subParamsIdx),n._rejectDigits=this._rejectDigits,n._rejectSubDigits=this._rejectSubDigits,n._digitIsSub=this._digitIsSub,n}toArray(){const n=[];for(let h=0;h>8,f=255&this._subParamsIdx[h];f-_>0&&n.push(Array.prototype.slice.call(this._subParams,_,f))}return n}reset(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}addParam(n){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(n<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=n>o?o:n}}addSubParam(n){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(n<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=n>o?o:n,this._subParamsIdx[this.length-1]++}}hasSubParams(n){return(255&this._subParamsIdx[n])-(this._subParamsIdx[n]>>8)>0}getSubParams(n){const h=this._subParamsIdx[n]>>8,_=255&this._subParamsIdx[n];return _-h>0?this._subParams.subarray(h,_):null}getSubParamsAll(){const n={};for(let h=0;h>8,f=255&this._subParamsIdx[h];f-_>0&&(n[h]=this._subParams.slice(_,f))}return n}addDigit(n){let h;if(this._rejectDigits||!(h=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)return;const _=this._digitIsSub?this._subParams:this.params,f=_[h-1];_[h-1]=~f?Math.min(10*f+n,o):n}}r.Params=c},5741:(M,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.AddonManager=void 0,r.AddonManager=class{constructor(){this._addons=[]}dispose(){for(let o=this._addons.length-1;o>=0;o--)this._addons[o].instance.dispose()}loadAddon(o,c){const g={instance:c,dispose:c.dispose,isDisposed:!1};this._addons.push(g),c.dispose=()=>this._wrappedAddonDispose(g),c.activate(o)}_wrappedAddonDispose(o){if(o.isDisposed)return;let c=-1;for(let g=0;g{Object.defineProperty(r,"__esModule",{value:!0}),r.BufferApiView=void 0;const c=o(3785),g=o(511);r.BufferApiView=class{constructor(n,h){this._buffer=n,this.type=h}init(n){return this._buffer=n,this}get cursorY(){return this._buffer.y}get cursorX(){return this._buffer.x}get viewportY(){return this._buffer.ydisp}get baseY(){return this._buffer.ybase}get length(){return this._buffer.lines.length}getLine(n){const h=this._buffer.lines.get(n);if(h)return new c.BufferLineApiView(h)}getNullCell(){return new g.CellData}}},3785:(M,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.BufferLineApiView=void 0;const c=o(511);r.BufferLineApiView=class{constructor(g){this._line=g}get isWrapped(){return this._line.isWrapped}get length(){return this._line.length}getCell(g,n){if(!(g<0||g>=this._line.length))return n?(this._line.loadCell(g,n),n):this._line.loadCell(g,new c.CellData)}translateToString(g,n,h){return this._line.translateToString(g,n,h)}}},8285:(M,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.BufferNamespaceApi=void 0;const c=o(8771),g=o(8460),n=o(844);class h extends n.Disposable{constructor(f){super(),this._core=f,this._onBufferChange=this.register(new g.EventEmitter),this.onBufferChange=this._onBufferChange.event,this._normal=new c.BufferApiView(this._core.buffers.normal,"normal"),this._alternate=new c.BufferApiView(this._core.buffers.alt,"alternate"),this._core.buffers.onBufferActivate(()=>this._onBufferChange.fire(this.active))}get active(){if(this._core.buffers.active===this._core.buffers.normal)return this.normal;if(this._core.buffers.active===this._core.buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")}get normal(){return this._normal.init(this._core.buffers.normal)}get alternate(){return this._alternate.init(this._core.buffers.alt)}}r.BufferNamespaceApi=h},7975:(M,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.ParserApi=void 0,r.ParserApi=class{constructor(o){this._core=o}registerCsiHandler(o,c){return this._core.registerCsiHandler(o,g=>c(g.toArray()))}addCsiHandler(o,c){return this.registerCsiHandler(o,c)}registerDcsHandler(o,c){return this._core.registerDcsHandler(o,(g,n)=>c(g,n.toArray()))}addDcsHandler(o,c){return this.registerDcsHandler(o,c)}registerEscHandler(o,c){return this._core.registerEscHandler(o,c)}addEscHandler(o,c){return this.registerEscHandler(o,c)}registerOscHandler(o,c){return this._core.registerOscHandler(o,c)}addOscHandler(o,c){return this.registerOscHandler(o,c)}}},7090:(M,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.UnicodeApi=void 0,r.UnicodeApi=class{constructor(o){this._core=o}register(o){this._core.unicodeService.register(o)}get versions(){return this._core.unicodeService.versions}get activeVersion(){return this._core.unicodeService.activeVersion}set activeVersion(o){this._core.unicodeService.activeVersion=o}}},744:function(M,r,o){var c=this&&this.__decorate||function(e,i,t,s){var a,d=arguments.length,p=d<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,t):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")p=Reflect.decorate(e,i,t,s);else for(var m=e.length-1;m>=0;m--)(a=e[m])&&(p=(d<3?a(p):d>3?a(i,t,p):a(i,t))||p);return d>3&&p&&Object.defineProperty(i,t,p),p},g=this&&this.__param||function(e,i){return function(t,s){i(t,s,e)}};Object.defineProperty(r,"__esModule",{value:!0}),r.BufferService=r.MINIMUM_ROWS=r.MINIMUM_COLS=void 0;const n=o(8460),h=o(844),_=o(5295),f=o(2585);r.MINIMUM_COLS=2,r.MINIMUM_ROWS=1;let u=r.BufferService=class extends h.Disposable{get buffer(){return this.buffers.active}constructor(e){super(),this.isUserScrolling=!1,this._onResize=this.register(new n.EventEmitter),this.onResize=this._onResize.event,this._onScroll=this.register(new n.EventEmitter),this.onScroll=this._onScroll.event,this.cols=Math.max(e.rawOptions.cols||0,r.MINIMUM_COLS),this.rows=Math.max(e.rawOptions.rows||0,r.MINIMUM_ROWS),this.buffers=this.register(new _.BufferSet(e,this))}resize(e,i){this.cols=e,this.rows=i,this.buffers.resize(e,i),this._onResize.fire({cols:e,rows:i})}reset(){this.buffers.reset(),this.isUserScrolling=!1}scroll(e,i=!1){const t=this.buffer;let s;s=this._cachedBlankLine,s&&s.length===this.cols&&s.getFg(0)===e.fg&&s.getBg(0)===e.bg||(s=t.getBlankLine(e,i),this._cachedBlankLine=s),s.isWrapped=i;const a=t.ybase+t.scrollTop,d=t.ybase+t.scrollBottom;if(t.scrollTop===0){const p=t.lines.isFull;d===t.lines.length-1?p?t.lines.recycle().copyFrom(s):t.lines.push(s.clone()):t.lines.splice(d+1,0,s.clone()),p?this.isUserScrolling&&(t.ydisp=Math.max(t.ydisp-1,0)):(t.ybase++,this.isUserScrolling||t.ydisp++)}else{const p=d-a+1;t.lines.shiftElements(a+1,p-1,-1),t.lines.set(d,s.clone())}this.isUserScrolling||(t.ydisp=t.ybase),this._onScroll.fire(t.ydisp)}scrollLines(e,i,t){const s=this.buffer;if(e<0){if(s.ydisp===0)return;this.isUserScrolling=!0}else e+s.ydisp>=s.ybase&&(this.isUserScrolling=!1);const a=s.ydisp;s.ydisp=Math.max(Math.min(s.ydisp+e,s.ybase),0),a!==s.ydisp&&(i||this._onScroll.fire(s.ydisp))}};r.BufferService=u=c([g(0,f.IOptionsService)],u)},7994:(M,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.CharsetService=void 0,r.CharsetService=class{constructor(){this.glevel=0,this._charsets=[]}reset(){this.charset=void 0,this._charsets=[],this.glevel=0}setgLevel(o){this.glevel=o,this.charset=this._charsets[o]}setgCharset(o,c){this._charsets[o]=c,this.glevel===o&&(this.charset=c)}}},1753:function(M,r,o){var c=this&&this.__decorate||function(s,a,d,p){var m,l=arguments.length,v=l<3?a:p===null?p=Object.getOwnPropertyDescriptor(a,d):p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(s,a,d,p);else for(var w=s.length-1;w>=0;w--)(m=s[w])&&(v=(l<3?m(v):l>3?m(a,d,v):m(a,d))||v);return l>3&&v&&Object.defineProperty(a,d,v),v},g=this&&this.__param||function(s,a){return function(d,p){a(d,p,s)}};Object.defineProperty(r,"__esModule",{value:!0}),r.CoreMouseService=void 0;const n=o(2585),h=o(8460),_=o(844),f={NONE:{events:0,restrict:()=>!1},X10:{events:1,restrict:s=>s.button!==4&&s.action===1&&(s.ctrl=!1,s.alt=!1,s.shift=!1,!0)},VT200:{events:19,restrict:s=>s.action!==32},DRAG:{events:23,restrict:s=>s.action!==32||s.button!==3},ANY:{events:31,restrict:s=>!0}};function u(s,a){let d=(s.ctrl?16:0)|(s.shift?4:0)|(s.alt?8:0);return s.button===4?(d|=64,d|=s.action):(d|=3&s.button,4&s.button&&(d|=64),8&s.button&&(d|=128),s.action===32?d|=32:s.action!==0||a||(d|=3)),d}const e=String.fromCharCode,i={DEFAULT:s=>{const a=[u(s,!1)+32,s.col+32,s.row+32];return a[0]>255||a[1]>255||a[2]>255?"":`\x1B[M${e(a[0])}${e(a[1])}${e(a[2])}`},SGR:s=>{const a=s.action===0&&s.button!==4?"m":"M";return`\x1B[<${u(s,!0)};${s.col};${s.row}${a}`},SGR_PIXELS:s=>{const a=s.action===0&&s.button!==4?"m":"M";return`\x1B[<${u(s,!0)};${s.x};${s.y}${a}`}};let t=r.CoreMouseService=class extends _.Disposable{constructor(s,a){super(),this._bufferService=s,this._coreService=a,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._lastEvent=null,this._onProtocolChange=this.register(new h.EventEmitter),this.onProtocolChange=this._onProtocolChange.event;for(const d of Object.keys(f))this.addProtocol(d,f[d]);for(const d of Object.keys(i))this.addEncoding(d,i[d]);this.reset()}addProtocol(s,a){this._protocols[s]=a}addEncoding(s,a){this._encodings[s]=a}get activeProtocol(){return this._activeProtocol}get areMouseEventsActive(){return this._protocols[this._activeProtocol].events!==0}set activeProtocol(s){if(!this._protocols[s])throw new Error(`unknown protocol "${s}"`);this._activeProtocol=s,this._onProtocolChange.fire(this._protocols[s].events)}get activeEncoding(){return this._activeEncoding}set activeEncoding(s){if(!this._encodings[s])throw new Error(`unknown encoding "${s}"`);this._activeEncoding=s}reset(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null}triggerMouseEvent(s){if(s.col<0||s.col>=this._bufferService.cols||s.row<0||s.row>=this._bufferService.rows||s.button===4&&s.action===32||s.button===3&&s.action!==32||s.button!==4&&(s.action===2||s.action===3)||(s.col++,s.row++,s.action===32&&this._lastEvent&&this._equalEvents(this._lastEvent,s,this._activeEncoding==="SGR_PIXELS"))||!this._protocols[this._activeProtocol].restrict(s))return!1;const a=this._encodings[this._activeEncoding](s);return a&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(a):this._coreService.triggerDataEvent(a,!0)),this._lastEvent=s,!0}explainEvents(s){return{down:!!(1&s),up:!!(2&s),drag:!!(4&s),move:!!(8&s),wheel:!!(16&s)}}_equalEvents(s,a,d){if(d){if(s.x!==a.x||s.y!==a.y)return!1}else if(s.col!==a.col||s.row!==a.row)return!1;return s.button===a.button&&s.action===a.action&&s.ctrl===a.ctrl&&s.alt===a.alt&&s.shift===a.shift}};r.CoreMouseService=t=c([g(0,n.IBufferService),g(1,n.ICoreService)],t)},6975:function(M,r,o){var c=this&&this.__decorate||function(t,s,a,d){var p,m=arguments.length,l=m<3?s:d===null?d=Object.getOwnPropertyDescriptor(s,a):d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(t,s,a,d);else for(var v=t.length-1;v>=0;v--)(p=t[v])&&(l=(m<3?p(l):m>3?p(s,a,l):p(s,a))||l);return m>3&&l&&Object.defineProperty(s,a,l),l},g=this&&this.__param||function(t,s){return function(a,d){s(a,d,t)}};Object.defineProperty(r,"__esModule",{value:!0}),r.CoreService=void 0;const n=o(1439),h=o(8460),_=o(844),f=o(2585),u=Object.freeze({insertMode:!1}),e=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0});let i=r.CoreService=class extends _.Disposable{constructor(t,s,a){super(),this._bufferService=t,this._logService=s,this._optionsService=a,this.isCursorInitialized=!1,this.isCursorHidden=!1,this._onData=this.register(new h.EventEmitter),this.onData=this._onData.event,this._onUserInput=this.register(new h.EventEmitter),this.onUserInput=this._onUserInput.event,this._onBinary=this.register(new h.EventEmitter),this.onBinary=this._onBinary.event,this._onRequestScrollToBottom=this.register(new h.EventEmitter),this.onRequestScrollToBottom=this._onRequestScrollToBottom.event,this.modes=(0,n.clone)(u),this.decPrivateModes=(0,n.clone)(e)}reset(){this.modes=(0,n.clone)(u),this.decPrivateModes=(0,n.clone)(e)}triggerDataEvent(t,s=!1){if(this._optionsService.rawOptions.disableStdin)return;const a=this._bufferService.buffer;s&&this._optionsService.rawOptions.scrollOnUserInput&&a.ybase!==a.ydisp&&this._onRequestScrollToBottom.fire(),s&&this._onUserInput.fire(),this._logService.debug(`sending data "${t}"`,()=>t.split("").map(d=>d.charCodeAt(0))),this._onData.fire(t)}triggerBinaryEvent(t){this._optionsService.rawOptions.disableStdin||(this._logService.debug(`sending binary "${t}"`,()=>t.split("").map(s=>s.charCodeAt(0))),this._onBinary.fire(t))}};r.CoreService=i=c([g(0,f.IBufferService),g(1,f.ILogService),g(2,f.IOptionsService)],i)},9074:(M,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.DecorationService=void 0;const c=o(8055),g=o(8460),n=o(844),h=o(6106);let _=0,f=0;class u extends n.Disposable{get decorations(){return this._decorations.values()}constructor(){super(),this._decorations=new h.SortedList(t=>t==null?void 0:t.marker.line),this._onDecorationRegistered=this.register(new g.EventEmitter),this.onDecorationRegistered=this._onDecorationRegistered.event,this._onDecorationRemoved=this.register(new g.EventEmitter),this.onDecorationRemoved=this._onDecorationRemoved.event,this.register((0,n.toDisposable)(()=>this.reset()))}registerDecoration(t){if(t.marker.isDisposed)return;const s=new e(t);if(s){const a=s.marker.onDispose(()=>s.dispose());s.onDispose(()=>{s&&(this._decorations.delete(s)&&this._onDecorationRemoved.fire(s),a.dispose())}),this._decorations.insert(s),this._onDecorationRegistered.fire(s)}return s}reset(){for(const t of this._decorations.values())t.dispose();this._decorations.clear()}*getDecorationsAtCell(t,s,a){var d,p,m;let l=0,v=0;for(const w of this._decorations.getKeyIterator(s))l=(d=w.options.x)!==null&&d!==void 0?d:0,v=l+((p=w.options.width)!==null&&p!==void 0?p:1),t>=l&&t{var m,l,v;_=(m=p.options.x)!==null&&m!==void 0?m:0,f=_+((l=p.options.width)!==null&&l!==void 0?l:1),t>=_&&t{Object.defineProperty(r,"__esModule",{value:!0}),r.InstantiationService=r.ServiceCollection=void 0;const c=o(2585),g=o(8343);class n{constructor(..._){this._entries=new Map;for(const[f,u]of _)this.set(f,u)}set(_,f){const u=this._entries.get(_);return this._entries.set(_,f),u}forEach(_){for(const[f,u]of this._entries.entries())_(f,u)}has(_){return this._entries.has(_)}get(_){return this._entries.get(_)}}r.ServiceCollection=n,r.InstantiationService=class{constructor(){this._services=new n,this._services.set(c.IInstantiationService,this)}setService(h,_){this._services.set(h,_)}getService(h){return this._services.get(h)}createInstance(h,..._){const f=(0,g.getServiceDependencies)(h).sort((i,t)=>i.index-t.index),u=[];for(const i of f){const t=this._services.get(i.id);if(!t)throw new Error(`[createInstance] ${h.name} depends on UNKNOWN service ${i.id}.`);u.push(t)}const e=f.length>0?f[0].index:_.length;if(_.length!==e)throw new Error(`[createInstance] First service dependency of ${h.name} at position ${e+1} conflicts with ${_.length} static arguments`);return new h(..._,...u)}}},7866:function(M,r,o){var c=this&&this.__decorate||function(e,i,t,s){var a,d=arguments.length,p=d<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,t):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")p=Reflect.decorate(e,i,t,s);else for(var m=e.length-1;m>=0;m--)(a=e[m])&&(p=(d<3?a(p):d>3?a(i,t,p):a(i,t))||p);return d>3&&p&&Object.defineProperty(i,t,p),p},g=this&&this.__param||function(e,i){return function(t,s){i(t,s,e)}};Object.defineProperty(r,"__esModule",{value:!0}),r.traceCall=r.setTraceLogger=r.LogService=void 0;const n=o(844),h=o(2585),_={trace:h.LogLevelEnum.TRACE,debug:h.LogLevelEnum.DEBUG,info:h.LogLevelEnum.INFO,warn:h.LogLevelEnum.WARN,error:h.LogLevelEnum.ERROR,off:h.LogLevelEnum.OFF};let f,u=r.LogService=class extends n.Disposable{get logLevel(){return this._logLevel}constructor(e){super(),this._optionsService=e,this._logLevel=h.LogLevelEnum.OFF,this._updateLogLevel(),this.register(this._optionsService.onSpecificOptionChange("logLevel",()=>this._updateLogLevel())),f=this}_updateLogLevel(){this._logLevel=_[this._optionsService.rawOptions.logLevel]}_evalLazyOptionalParams(e){for(let i=0;iJSON.stringify(p)).join(", ")})`);const d=s.apply(this,a);return f.trace(`GlyphRenderer#${s.name} return`,d),d}}},7302:(M,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.OptionsService=r.DEFAULT_OPTIONS=void 0;const c=o(8460),g=o(844),n=o(6114);r.DEFAULT_OPTIONS={cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,cursorInactiveStyle:"outline",customGlyphs:!0,drawBoldTextInBrightColors:!0,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",ignoreBracketedPasteMode:!1,lineHeight:1,letterSpacing:0,linkHandler:null,logLevel:"info",logger:null,scrollback:1e3,scrollOnUserInput:!0,scrollSensitivity:1,screenReaderMode:!1,smoothScrollDuration:0,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!1,allowTransparency:!1,tabStopWidth:8,theme:{},rightClickSelectsWord:n.isMac,windowOptions:{},windowsMode:!1,windowsPty:{},wordSeparator:" ()[]{}',\"`",altClickMovesCursor:!0,convertEol:!1,termName:"xterm",cancelEvents:!1,overviewRulerWidth:0};const h=["normal","bold","100","200","300","400","500","600","700","800","900"];class _ extends g.Disposable{constructor(u){super(),this._onOptionChange=this.register(new c.EventEmitter),this.onOptionChange=this._onOptionChange.event;const e=Object.assign({},r.DEFAULT_OPTIONS);for(const i in u)if(i in e)try{const t=u[i];e[i]=this._sanitizeAndValidateOption(i,t)}catch(t){console.error(t)}this.rawOptions=e,this.options=Object.assign({},e),this._setupOptions()}onSpecificOptionChange(u,e){return this.onOptionChange(i=>{i===u&&e(this.rawOptions[u])})}onMultipleOptionChange(u,e){return this.onOptionChange(i=>{u.indexOf(i)!==-1&&e()})}_setupOptions(){const u=i=>{if(!(i in r.DEFAULT_OPTIONS))throw new Error(`No option with key "${i}"`);return this.rawOptions[i]},e=(i,t)=>{if(!(i in r.DEFAULT_OPTIONS))throw new Error(`No option with key "${i}"`);t=this._sanitizeAndValidateOption(i,t),this.rawOptions[i]!==t&&(this.rawOptions[i]=t,this._onOptionChange.fire(i))};for(const i in this.rawOptions){const t={get:u.bind(this,i),set:e.bind(this,i)};Object.defineProperty(this.options,i,t)}}_sanitizeAndValidateOption(u,e){switch(u){case"cursorStyle":if(e||(e=r.DEFAULT_OPTIONS[u]),!function(i){return i==="block"||i==="underline"||i==="bar"}(e))throw new Error(`"${e}" is not a valid value for ${u}`);break;case"wordSeparator":e||(e=r.DEFAULT_OPTIONS[u]);break;case"fontWeight":case"fontWeightBold":if(typeof e=="number"&&1<=e&&e<=1e3)break;e=h.includes(e)?e:r.DEFAULT_OPTIONS[u];break;case"cursorWidth":e=Math.floor(e);case"lineHeight":case"tabStopWidth":if(e<1)throw new Error(`${u} cannot be less than 1, value: ${e}`);break;case"minimumContrastRatio":e=Math.max(1,Math.min(21,Math.round(10*e)/10));break;case"scrollback":if((e=Math.min(e,4294967295))<0)throw new Error(`${u} cannot be less than 0, value: ${e}`);break;case"fastScrollSensitivity":case"scrollSensitivity":if(e<=0)throw new Error(`${u} cannot be less than or equal to 0, value: ${e}`);break;case"rows":case"cols":if(!e&&e!==0)throw new Error(`${u} must be numeric, value: ${e}`);break;case"windowsPty":e=e??{}}return e}}r.OptionsService=_},2660:function(M,r,o){var c=this&&this.__decorate||function(_,f,u,e){var i,t=arguments.length,s=t<3?f:e===null?e=Object.getOwnPropertyDescriptor(f,u):e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(_,f,u,e);else for(var a=_.length-1;a>=0;a--)(i=_[a])&&(s=(t<3?i(s):t>3?i(f,u,s):i(f,u))||s);return t>3&&s&&Object.defineProperty(f,u,s),s},g=this&&this.__param||function(_,f){return function(u,e){f(u,e,_)}};Object.defineProperty(r,"__esModule",{value:!0}),r.OscLinkService=void 0;const n=o(2585);let h=r.OscLinkService=class{constructor(_){this._bufferService=_,this._nextId=1,this._entriesWithId=new Map,this._dataByLinkId=new Map}registerLink(_){const f=this._bufferService.buffer;if(_.id===void 0){const a=f.addMarker(f.ybase+f.y),d={data:_,id:this._nextId++,lines:[a]};return a.onDispose(()=>this._removeMarkerFromLink(d,a)),this._dataByLinkId.set(d.id,d),d.id}const u=_,e=this._getEntryIdKey(u),i=this._entriesWithId.get(e);if(i)return this.addLineToLink(i.id,f.ybase+f.y),i.id;const t=f.addMarker(f.ybase+f.y),s={id:this._nextId++,key:this._getEntryIdKey(u),data:u,lines:[t]};return t.onDispose(()=>this._removeMarkerFromLink(s,t)),this._entriesWithId.set(s.key,s),this._dataByLinkId.set(s.id,s),s.id}addLineToLink(_,f){const u=this._dataByLinkId.get(_);if(u&&u.lines.every(e=>e.line!==f)){const e=this._bufferService.buffer.addMarker(f);u.lines.push(e),e.onDispose(()=>this._removeMarkerFromLink(u,e))}}getLinkData(_){var f;return(f=this._dataByLinkId.get(_))===null||f===void 0?void 0:f.data}_getEntryIdKey(_){return`${_.id};;${_.uri}`}_removeMarkerFromLink(_,f){const u=_.lines.indexOf(f);u!==-1&&(_.lines.splice(u,1),_.lines.length===0&&(_.data.id!==void 0&&this._entriesWithId.delete(_.key),this._dataByLinkId.delete(_.id)))}};r.OscLinkService=h=c([g(0,n.IBufferService)],h)},8343:(M,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.createDecorator=r.getServiceDependencies=r.serviceRegistry=void 0;const o="di$target",c="di$dependencies";r.serviceRegistry=new Map,r.getServiceDependencies=function(g){return g[c]||[]},r.createDecorator=function(g){if(r.serviceRegistry.has(g))return r.serviceRegistry.get(g);const n=function(h,_,f){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");(function(u,e,i){e[o]===e?e[c].push({id:u,index:i}):(e[c]=[{id:u,index:i}],e[o]=e)})(n,h,f)};return n.toString=()=>g,r.serviceRegistry.set(g,n),n}},2585:(M,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.IDecorationService=r.IUnicodeService=r.IOscLinkService=r.IOptionsService=r.ILogService=r.LogLevelEnum=r.IInstantiationService=r.ICharsetService=r.ICoreService=r.ICoreMouseService=r.IBufferService=void 0;const c=o(8343);var g;r.IBufferService=(0,c.createDecorator)("BufferService"),r.ICoreMouseService=(0,c.createDecorator)("CoreMouseService"),r.ICoreService=(0,c.createDecorator)("CoreService"),r.ICharsetService=(0,c.createDecorator)("CharsetService"),r.IInstantiationService=(0,c.createDecorator)("InstantiationService"),function(n){n[n.TRACE=0]="TRACE",n[n.DEBUG=1]="DEBUG",n[n.INFO=2]="INFO",n[n.WARN=3]="WARN",n[n.ERROR=4]="ERROR",n[n.OFF=5]="OFF"}(g||(r.LogLevelEnum=g={})),r.ILogService=(0,c.createDecorator)("LogService"),r.IOptionsService=(0,c.createDecorator)("OptionsService"),r.IOscLinkService=(0,c.createDecorator)("OscLinkService"),r.IUnicodeService=(0,c.createDecorator)("UnicodeService"),r.IDecorationService=(0,c.createDecorator)("DecorationService")},1480:(M,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.UnicodeService=void 0;const c=o(8460),g=o(225);r.UnicodeService=class{constructor(){this._providers=Object.create(null),this._active="",this._onChange=new c.EventEmitter,this.onChange=this._onChange.event;const n=new g.UnicodeV6;this.register(n),this._active=n.version,this._activeProvider=n}dispose(){this._onChange.dispose()}get versions(){return Object.keys(this._providers)}get activeVersion(){return this._active}set activeVersion(n){if(!this._providers[n])throw new Error(`unknown Unicode version "${n}"`);this._active=n,this._activeProvider=this._providers[n],this._onChange.fire(n)}register(n){this._providers[n.version]=n}wcwidth(n){return this._activeProvider.wcwidth(n)}getStringCellWidth(n){let h=0;const _=n.length;for(let f=0;f<_;++f){let u=n.charCodeAt(f);if(55296<=u&&u<=56319){if(++f>=_)return h+this.wcwidth(u);const e=n.charCodeAt(f);56320<=e&&e<=57343?u=1024*(u-55296)+e-56320+65536:h+=this.wcwidth(e)}h+=this.wcwidth(u)}return h}}}},G={};function z(M){var r=G[M];if(r!==void 0)return r.exports;var o=G[M]={exports:{}};return Q[M].call(o.exports,o,o.exports,z),o.exports}var Y={};return(()=>{var M=Y;Object.defineProperty(M,"__esModule",{value:!0}),M.Terminal=void 0;const r=z(9042),o=z(3236),c=z(844),g=z(5741),n=z(8285),h=z(7975),_=z(7090),f=["cols","rows"];class u extends c.Disposable{constructor(i){super(),this._core=this.register(new o.Terminal(i)),this._addonManager=this.register(new g.AddonManager),this._publicOptions=Object.assign({},this._core.options);const t=a=>this._core.options[a],s=(a,d)=>{this._checkReadonlyOptions(a),this._core.options[a]=d};for(const a in this._core.options){const d={get:t.bind(this,a),set:s.bind(this,a)};Object.defineProperty(this._publicOptions,a,d)}}_checkReadonlyOptions(i){if(f.includes(i))throw new Error(`Option "${i}" can only be set in the constructor`)}_checkProposedApi(){if(!this._core.optionsService.rawOptions.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")}get onBell(){return this._core.onBell}get onBinary(){return this._core.onBinary}get onCursorMove(){return this._core.onCursorMove}get onData(){return this._core.onData}get onKey(){return this._core.onKey}get onLineFeed(){return this._core.onLineFeed}get onRender(){return this._core.onRender}get onResize(){return this._core.onResize}get onScroll(){return this._core.onScroll}get onSelectionChange(){return this._core.onSelectionChange}get onTitleChange(){return this._core.onTitleChange}get onWriteParsed(){return this._core.onWriteParsed}get element(){return this._core.element}get parser(){return this._parser||(this._parser=new h.ParserApi(this._core)),this._parser}get unicode(){return this._checkProposedApi(),new _.UnicodeApi(this._core)}get textarea(){return this._core.textarea}get rows(){return this._core.rows}get cols(){return this._core.cols}get buffer(){return this._buffer||(this._buffer=this.register(new n.BufferNamespaceApi(this._core))),this._buffer}get markers(){return this._checkProposedApi(),this._core.markers}get modes(){const i=this._core.coreService.decPrivateModes;let t="none";switch(this._core.coreMouseService.activeProtocol){case"X10":t="x10";break;case"VT200":t="vt200";break;case"DRAG":t="drag";break;case"ANY":t="any"}return{applicationCursorKeysMode:i.applicationCursorKeys,applicationKeypadMode:i.applicationKeypad,bracketedPasteMode:i.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:t,originMode:i.origin,reverseWraparoundMode:i.reverseWraparound,sendFocusMode:i.sendFocus,wraparoundMode:i.wraparound}}get options(){return this._publicOptions}set options(i){for(const t in i)this._publicOptions[t]=i[t]}blur(){this._core.blur()}focus(){this._core.focus()}resize(i,t){this._verifyIntegers(i,t),this._core.resize(i,t)}open(i){this._core.open(i)}attachCustomKeyEventHandler(i){this._core.attachCustomKeyEventHandler(i)}registerLinkProvider(i){return this._core.registerLinkProvider(i)}registerCharacterJoiner(i){return this._checkProposedApi(),this._core.registerCharacterJoiner(i)}deregisterCharacterJoiner(i){this._checkProposedApi(),this._core.deregisterCharacterJoiner(i)}registerMarker(i=0){return this._verifyIntegers(i),this._core.registerMarker(i)}registerDecoration(i){var t,s,a;return this._checkProposedApi(),this._verifyPositiveIntegers((t=i.x)!==null&&t!==void 0?t:0,(s=i.width)!==null&&s!==void 0?s:0,(a=i.height)!==null&&a!==void 0?a:0),this._core.registerDecoration(i)}hasSelection(){return this._core.hasSelection()}select(i,t,s){this._verifyIntegers(i,t,s),this._core.select(i,t,s)}getSelection(){return this._core.getSelection()}getSelectionPosition(){return this._core.getSelectionPosition()}clearSelection(){this._core.clearSelection()}selectAll(){this._core.selectAll()}selectLines(i,t){this._verifyIntegers(i,t),this._core.selectLines(i,t)}dispose(){super.dispose()}scrollLines(i){this._verifyIntegers(i),this._core.scrollLines(i)}scrollPages(i){this._verifyIntegers(i),this._core.scrollPages(i)}scrollToTop(){this._core.scrollToTop()}scrollToBottom(){this._core.scrollToBottom()}scrollToLine(i){this._verifyIntegers(i),this._core.scrollToLine(i)}clear(){this._core.clear()}write(i,t){this._core.write(i,t)}writeln(i,t){this._core.write(i),this._core.write(`\r +`,t)}paste(i){this._core.paste(i)}refresh(i,t){this._verifyIntegers(i,t),this._core.refresh(i,t)}reset(){this._core.reset()}clearTextureAtlas(){this._core.clearTextureAtlas()}loadAddon(i){this._addonManager.loadAddon(this,i)}static get strings(){return r}_verifyIntegers(...i){for(const t of i)if(t===1/0||isNaN(t)||t%1!=0)throw new Error("This API only accepts integers")}_verifyPositiveIntegers(...i){for(const t of i)if(t&&(t===1/0||isNaN(t)||t%1!=0||t<0))throw new Error("This API only accepts positive integers")}}M.Terminal=u})(),Y})())}(fe)),fe.exports}var ge={exports:{}},Se;function Ee(){return Se||(Se=1,function(se,ve){(function(Q,G){se.exports=G()})(self,()=>(()=>{var Q={};return(()=>{var G=Q;Object.defineProperty(G,"__esModule",{value:!0}),G.FitAddon=void 0,G.FitAddon=class{activate(z){this._terminal=z}dispose(){}fit(){const z=this.proposeDimensions();if(!z||!this._terminal||isNaN(z.cols)||isNaN(z.rows))return;const Y=this._terminal._core;this._terminal.rows===z.rows&&this._terminal.cols===z.cols||(Y._renderService.clear(),this._terminal.resize(z.cols,z.rows))}proposeDimensions(){if(!this._terminal||!this._terminal.element||!this._terminal.element.parentElement)return;const z=this._terminal._core,Y=z._renderService.dimensions;if(Y.css.cell.width===0||Y.css.cell.height===0)return;const M=this._terminal.options.scrollback===0?0:z.viewport.scrollBarWidth,r=window.getComputedStyle(this._terminal.element.parentElement),o=parseInt(r.getPropertyValue("height")),c=Math.max(0,parseInt(r.getPropertyValue("width"))),g=window.getComputedStyle(this._terminal.element),n=o-(parseInt(g.getPropertyValue("padding-top"))+parseInt(g.getPropertyValue("padding-bottom"))),h=c-(parseInt(g.getPropertyValue("padding-right"))+parseInt(g.getPropertyValue("padding-left")))-M;return{cols:Math.max(2,Math.floor(h/Y.css.cell.width)),rows:Math.max(1,Math.floor(n/Y.css.cell.height))}}}})(),Q})())}(ge)),ge.exports}var pe={exports:{}},Ce;function ke(){return Ce||(Ce=1,function(se,ve){(function(Q,G){se.exports=G()})(self,()=>(()=>{var Q={345:(M,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.runAndSubscribe=r.forwardEvent=r.EventEmitter=void 0,r.EventEmitter=class{constructor(){this._listeners=[],this._disposed=!1}get event(){return this._event||(this._event=o=>(this._listeners.push(o),{dispose:()=>{if(!this._disposed){for(let c=0;cc.fire(g))},r.runAndSubscribe=function(o,c){return c(void 0),o(g=>c(g))}},859:(M,r)=>{function o(c){for(const g of c)g.dispose();c.length=0}Object.defineProperty(r,"__esModule",{value:!0}),r.getDisposeArrayDisposable=r.disposeArray=r.toDisposable=r.MutableDisposable=r.Disposable=void 0,r.Disposable=class{constructor(){this._disposables=[],this._isDisposed=!1}dispose(){this._isDisposed=!0;for(const c of this._disposables)c.dispose();this._disposables.length=0}register(c){return this._disposables.push(c),c}unregister(c){const g=this._disposables.indexOf(c);g!==-1&&this._disposables.splice(g,1)}},r.MutableDisposable=class{constructor(){this._isDisposed=!1}get value(){return this._isDisposed?void 0:this._value}set value(c){var g;this._isDisposed||c===this._value||((g=this._value)==null||g.dispose(),this._value=c)}clear(){this.value=void 0}dispose(){var c;this._isDisposed=!0,(c=this._value)==null||c.dispose(),this._value=void 0}},r.toDisposable=function(c){return{dispose:c}},r.disposeArray=o,r.getDisposeArrayDisposable=function(c){return{dispose:()=>o(c)}}}},G={};function z(M){var r=G[M];if(r!==void 0)return r.exports;var o=G[M]={exports:{}};return Q[M](o,o.exports,z),o.exports}var Y={};return(()=>{var M=Y;Object.defineProperty(M,"__esModule",{value:!0}),M.SearchAddon=void 0;const r=z(345),o=z(859),c=" ~!@#$%^&*()+`-=[]{}|\\;:\"',./<>?";class g extends o.Disposable{constructor(h){super(),this._highlightedLines=new Set,this._highlightDecorations=[],this._selectedDecoration=this.register(new o.MutableDisposable),this._linesCacheTimeoutId=0,this._linesCacheDisposables=new o.MutableDisposable,this._onDidChangeResults=this.register(new r.EventEmitter),this.onDidChangeResults=this._onDidChangeResults.event,this._highlightLimit=(h==null?void 0:h.highlightLimit)??1e3}activate(h){this._terminal=h,this.register(this._terminal.onWriteParsed(()=>this._updateMatches())),this.register(this._terminal.onResize(()=>this._updateMatches())),this.register((0,o.toDisposable)(()=>this.clearDecorations()))}_updateMatches(){var h;this._highlightTimeout&&window.clearTimeout(this._highlightTimeout),this._cachedSearchTerm&&((h=this._lastSearchOptions)!=null&&h.decorations)&&(this._highlightTimeout=setTimeout(()=>{const _=this._cachedSearchTerm;this._cachedSearchTerm=void 0,this.findPrevious(_,{...this._lastSearchOptions,incremental:!0,noScroll:!0})},200))}clearDecorations(h){this._selectedDecoration.clear(),(0,o.disposeArray)(this._highlightDecorations),this._highlightDecorations=[],this._highlightedLines.clear(),h||(this._cachedSearchTerm=void 0)}clearActiveDecoration(){this._selectedDecoration.clear()}findNext(h,_){if(!this._terminal)throw new Error("Cannot use addon until it has been loaded");const f=!this._lastSearchOptions||this._didOptionsChange(this._lastSearchOptions,_);this._lastSearchOptions=_,_!=null&&_.decorations&&(this._cachedSearchTerm===void 0||h!==this._cachedSearchTerm||f)&&this._highlightAllMatches(h,_);const u=this._findNextAndSelect(h,_);return this._fireResults(_),this._cachedSearchTerm=h,u}_highlightAllMatches(h,_){if(!this._terminal)throw new Error("Cannot use addon until it has been loaded");if(!h||h.length===0)return void this.clearDecorations();_=_||{},this.clearDecorations(!0);const f=[];let u,e=this._find(h,0,0,_);for(;e&&((u==null?void 0:u.row)!==e.row||(u==null?void 0:u.col)!==e.col)&&!(f.length>=this._highlightLimit);)u=e,f.push(u),e=this._find(h,u.col+u.term.length>=this._terminal.cols?u.row+1:u.row,u.col+u.term.length>=this._terminal.cols?0:u.col+1,_);for(const i of f){const t=this._createResultDecoration(i,_.decorations);t&&(this._highlightedLines.add(t.marker.line),this._highlightDecorations.push({decoration:t,match:i,dispose(){t.dispose()}}))}}_find(h,_,f,u){var t;if(!this._terminal||!h||h.length===0)return(t=this._terminal)==null||t.clearSelection(),void this.clearDecorations();if(f>this._terminal.cols)throw new Error(`Invalid col: ${f} to search in terminal of ${this._terminal.cols} cols`);let e;this._initLinesCache();const i={startRow:_,startCol:f};if(e=this._findInLine(h,i,u),!e)for(let s=_+1;s=0&&(t.startRow=d,s=this._findInLine(h,t,_,i),!s);d--);}if(!s&&u!==this._terminal.buffer.active.baseY+this._terminal.rows-1)for(let d=this._terminal.buffer.active.baseY+this._terminal.rows-1;d>=u&&(t.startRow=d,s=this._findInLine(h,t,_,i),!s);d--);return this._selectResult(s,_==null?void 0:_.decorations,_==null?void 0:_.noScroll)}_initLinesCache(){const h=this._terminal;this._linesCache||(this._linesCache=new Array(h.buffer.active.length),this._linesCacheDisposables.value=(0,o.getDisposeArrayDisposable)([h.onLineFeed(()=>this._destroyLinesCache()),h.onCursorMove(()=>this._destroyLinesCache()),h.onResize(()=>this._destroyLinesCache())])),window.clearTimeout(this._linesCacheTimeoutId),this._linesCacheTimeoutId=window.setTimeout(()=>this._destroyLinesCache(),15e3)}_destroyLinesCache(){this._linesCache=void 0,this._linesCacheDisposables.clear(),this._linesCacheTimeoutId&&(window.clearTimeout(this._linesCacheTimeoutId),this._linesCacheTimeoutId=0)}_isWholeWord(h,_,f){return(h===0||c.includes(_[h-1]))&&(h+f.length===_.length||c.includes(_[h+f.length]))}_findInLine(h,_,f={},u=!1){var L;const e=this._terminal,i=_.startRow,t=_.startCol,s=e.buffer.active.getLine(i);if(s!=null&&s.isWrapped)return u?void(_.startCol+=e.cols):(_.startRow--,_.startCol+=e.cols,this._findInLine(h,_,f));let a=(L=this._linesCache)==null?void 0:L[i];a||(a=this._translateBufferLineToStringWithWrap(i,!0),this._linesCache&&(this._linesCache[i]=a));const[d,p]=a,m=this._bufferColsToStringOffset(i,t),l=f.caseSensitive?h:h.toLowerCase(),v=f.caseSensitive?d:d.toLowerCase();let w=-1;if(f.regex){const b=RegExp(l,"g");let E;if(u)for(;E=b.exec(v.slice(0,m));)w=b.lastIndex-E[0].length,h=E[0],b.lastIndex-=h.length-1;else E=b.exec(v.slice(m)),E&&E[0].length>0&&(w=m+(b.lastIndex-E[0].length),h=E[0])}else u?m-l.length>=0&&(w=v.lastIndexOf(l,m-l.length)):w=v.indexOf(l,m);if(w>=0){if(f.wholeWord&&!this._isWholeWord(w,v,h))return;let b=0;for(;b=p[b+1];)b++;let E=b;for(;E=p[E+1];)E++;const x=w-p[b],T=w+h.length-p[E],P=this._stringLengthToBufferSize(i+b,x);return{term:h,col:P,row:i+b,size:this._stringLengthToBufferSize(i+E,T)-P+e.cols*(E-b)}}}_stringLengthToBufferSize(h,_){const f=this._terminal.buffer.active.getLine(h);if(!f)return 0;for(let u=0;u<_;u++){const e=f.getCell(u);if(!e)break;const i=e.getChars();i.length>1&&(_-=i.length-1);const t=f.getCell(u+1);t&&t.getWidth()===0&&_++}return _}_bufferColsToStringOffset(h,_){const f=this._terminal;let u=h,e=0,i=f.buffer.active.getLine(u);for(;_>0&&i;){for(let t=0;t<_&&tthis._applyStyles(s,_.activeMatchBorder,!0))),t.push(i.onDispose(()=>(0,o.disposeArray)(t))),this._selectedDecoration.value={decoration:i,match:h,dispose(){i.dispose()}}}}}if(!f&&(h.row>=u.buffer.active.viewportY+u.rows||h.rowthis._applyStyles(t,_.matchBorder,!1))),i.push(e.onDispose(()=>(0,o.disposeArray)(i)))}return e}}M.SearchAddon=g})(),Y})())}(pe)),pe.exports}export{Ee as a,ke as b,ye as r}; diff --git a/index.html b/index.html index 6cb7402..c060860 100644 --- a/index.html +++ b/index.html @@ -3,15 +3,18 @@ + Web Serial Debuger - 串口调试工具 - - - - - + + + + + + +
diff --git a/manifest.json b/manifest.json new file mode 100644 index 0000000..c784135 --- /dev/null +++ b/manifest.json @@ -0,0 +1,16 @@ +{ + "name": "Web Serial Debugger", + "short_name": "Serial Debug", + "description": "Web Serial 串口调试工具", + "start_url": "./", + "display": "standalone", + "background_color": "#ffffff", + "theme_color": "#409eff", + "icons": [ + { + "src": "vite.svg", + "sizes": "192x192", + "type": "image/svg+xml" + } + ] +} \ No newline at end of file diff --git a/sw.js b/sw.js index 7ed8d1e..bdb645b 100644 --- a/sw.js +++ b/sw.js @@ -2,7 +2,9 @@ const CACHE_NAME = 'web-serial-debug-cache-v1'; const urlsToCache = [ './', - './index.html' + './index.html', + './manifest.json', + './vite.svg' ]; self.addEventListener('install', (event) => {