@guihz/trading-vue-editor-tes 0.0.88 → 0.0.89

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode(`.line-decoration_modified,.line-decoration_added,.line-decoration_removed{left:auto!important;right:20px;transform:scale(-1);width:4px!important}.line-modified:before{content:"";height:100%;left:0;position:absolute;top:0;transition:width .2s;width:3px;z-index:1;background-image:linear-gradient(-45deg,#2962ff 25%,#0000 0,#0000 50%,#2962ff 0,#2962ff 75%,#0000 0,#0000);background-size:3px 3px}.line-added:before{content:"";height:100%;left:0;position:absolute;top:0;transition:width .2s;width:3px;z-index:1;background:#089950}.modified-in-monaco-diff-editor .line-modified:before,.modified-in-monaco-diff-editor .line-added:before,.modified-in-monaco-diff-editor .line-decoration_removed:after{background:none}.line-modified:hover:before,.line-added:hover:before,.line-decoration_removed:hover:before{width:5px}.line-decoration_removed:hover:before{background-color:#f23645}.line-decoration_removed:hover:after{background:none}.line-decoration_removed:before{content:"";height:100%;left:0;position:absolute;top:0;transition:width .2s;width:3px;z-index:1}.line-decoration_removed:after{background:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='4'%20height='18'%20viewBox='0%200%204%2018'%20fill='%23F23645'%3e%3cpath%20d='M3.7%208.11a.5.5%200%200%201%200%20.67L.89%2012a.5.5%200%200%201-.88-.33V5.3a.5.5%200%200%201%20.87-.33L3.7%208.1Z'/%3e%3c/svg%3e") 50% no-repeat;background-size:5px 20px;content:"";height:10px;left:-4px;position:absolute;top:-3px;transform:scale(-1);width:10px}.vs-dark .content-popup{background-color:#1e222d}.content-popup{position:relative;border-bottom:1px solid;display:flex;flex-direction:column;height:100%;-webkit-user-select:none;user-select:none;background-color:#fff}.header-popup{align-items:center;position:relative;z-index:1;border-left:0;border-right:0;display:flex;height:22px;justify-content:space-between;margin-top:5px;border-bottom:1px solid #fff;border-top:1px solid #fff;background-color:#fff}.title-popup{font-size:13px;font-weight:400;line-height:18px;margin-left:27px}.actions-popup{align-items:center;display:flex}.button-popup{height:24px;cursor:pointer;justify-content:center;width:24px;display:flex;padding:0 5px;align-items:center;box-sizing:border-box;transition:background-color 60ms ease,opacity 60ms ease,color 60ms ease}.icon-popup{display:flex}.triangle-popup{position:absolute;left:55px;margin-top:1px;height:8px;z-index:0;transform:rotate(-45deg);width:8px}.triangle-modified-popup{background-color:#2962ff}.vs-dark .header-modified-popup{background-color:#1e222d}.header-modified-popup{background-color:#e3effd;border-color:#2962ff}.content-modified-popup{border-bottom-color:#2962ff}.triangle-added-popup{background-color:#089950}.vs-dark .header-added-popup{background-color:#1a3326}.header-added-popup{background-color:#daf2e6;border-color:#089950}.content-added-popup{border-bottom-color:#089950}.triangle-removed-popup{background-color:#f23645}.vs-dark .header-removed-popup{background-color:#331f20}.header-removed-popup{background-color:#ffebec;border-color:#f23645}.content-removed-popup{border-bottom-color:#f23645}.tvue-script .monaco-editor.vs-dark .quick-input-widget{background:#1e222d!important}.tvue-script .monaco-editor .monaco-inputbox:focus-within,.tvue-script .monaco-editor.vs-dark .monaco-inputbox:focus-within{border-color:#2962ff}.tvue-script .monaco-editor .quick-input-widget .monaco-inputbox{background-color:unset!important;border:unset!important}.tvue-script .monaco-editor .quick-input-widget .input:active,.tvue-script .monaco-editor .quick-input-widget .input:focus{border:2px solid #2962ff}.tvue-script .monaco-editor.vs-dark .quick-input-widget .input{background-color:#1e222d!important;color:#d1d4dc!important}.tvue-script .monaco-editor .monaco-inputbox .input{font-size:14px;line-height:18px;outline:none}.tvue-script .monaco-editor .quick-input-widget .input{background-color:#fff!important;border:1px solid #d1d4dc;border-radius:6px;color:#131722!important;height:28px;padding-bottom:5px}.tvue-script .monaco-editor .overflow-guard{overflow:hidden!important}.tvue-script .monaco-editor .find-widget .codicon.toggle:before{content:"";font-size:15px;transition:.3s ease-out}.tvue-script .monaco-editor .find-widget.replaceToggled{height:80px!important}.tvue-script .monaco-editor .find-widget{border-bottom-left-radius:6px;border-bottom-right-radius:6px;height:44px!important;width:450px!important;transition:.3s ease-out}.tvue-script .monaco-editor .find-widget.replaceToggled .find-part,.tvue-script .monaco-editor .find-widget.replaceToggled .replace-part{margin-left:17px}.tvue-script .monaco-editor .find-widget .codicon.toggle.codicon-find-expanded{height:77px}.tvue-script .monaco-editor .find-widget.replaceToggled .replace-part{margin-top:8px}.tvue-script .monaco-editor .find-widget .codicon.toggle{border-radius:4px;cursor:default;height:41px;left:2px;top:2px}.tvue-script .monaco-editor .find-widget .monaco-sash{display:none}.tvue-script .monaco-editor .find-widget .find-part{margin-top:8px}.tvue-script .monaco-editor .find-widget .monaco-findInput{width:255px}.tvue-script .monaco-editor .monaco-scrollable-element{--vscode-scrollbarSlider-background: #64646466;margin-bottom:-2px}.tvue-script .monaco-editor.vs-dark .find-widget .monaco-scrollable-element>.monaco-inputbox.idle{background-color:#1e222d!important}.tvue-script .monaco-editor.vs-dark .find-widget .monaco-scrollable-element>.monaco-inputbox.idle{border-color:#50535e!important}.tvue-script .monaco-editor .find-widget .monaco-scrollable-element>.monaco-inputbox.idle{background-color:#fff!important;border-color:#d1d4dc!important;border-radius:6px;height:28px}.tvue-script .monaco-editor.vs-dark .monaco-inputbox,.tvue-script .monaco-editor.vs-dark .monaco-inputbox.idle{border:2px solid #50535e}.tvue-script .monaco-editor .monaco-inputbox,.tvue-script .monaco-editor .monaco-inputbox.idle{border:2px solid #a3a6af;border-radius:4px;overflow:hidden}.tvue-script .monaco-editor .find-widget .button{box-sizing:content-box}.tvue-script .monaco-editor .find-widget>.button.codicon-widget-close{top:10px}.tvue-script .monaco-editor .find-widget .codicon.toggle.codicon-find-expanded:before{transform:rotate(180deg)}.tvue-script .monaco-editor .find-widget .monaco-scrollable-element>.monaco-inputbox.idle .ibwrapper>textarea.input{padding-top:4px}.tvue-script .monaco-editor .monaco-inputbox .input{line-height:18px}.tvue-script .monaco-editor.vs-dark .find-widget .monaco-scrollable-element>.monaco-inputbox.synthetic-focus{border:1px solid #2962ff!important}.tvue-script .monaco-editor .find-widget .monaco-scrollable-element>.monaco-inputbox.synthetic-focus{border:1px solid #2962ff!important;outline-color:#0000}.tvue-script .monaco-editor .monaco-inputbox:focus-within{border-color:#2962ff}.vs-dark .context-view .monaco-menu>.monaco-action-bar.vertical{background-color:#1e222d!important}.context-view .monaco-menu>.monaco-action-bar.vertical{background-color:#fff!important}.vs-dark .context-view .monaco-menu>.monaco-action-bar.vertical .action-item .action-menu-item,.vs-dark .context-view .monaco-menu>.monaco-action-bar.vertical .action-item .submenu-indicator{color:#d1d4dc!important}.context-view .monaco-menu>.monaco-action-bar.vertical .action-item .action-menu-item,.context-view .monaco-menu>.monaco-action-bar.vertical .action-item .submenu-indicator{color:#131722!important}.context-view .monaco-menu>.monaco-action-bar.vertical .action-item .action-menu-item{border-radius:0;height:32px;margin:0}.vs-dark .context-view .monaco-menu>.monaco-action-bar.vertical .action-item.focused .action-menu-item,.vs-dark .context-view .monaco-menu>.monaco-action-bar.vertical .action-item.focused .submenu-indicator{background-color:#2a2e39!important;color:#d1d4dc!important}.context-view .monaco-menu>.monaco-action-bar.vertical .action-item.focused .action-menu-item,.context-view .monaco-menu>.monaco-action-bar.vertical .action-item.focused .submenu-indicator{background-color:#f0f3fa!important;color:#131722!important}.vs-dark .context-view .monaco-menu>.monaco-action-bar.vertical .action-label.separator{border-bottom:1px solid #434651!important}.context-view .monaco-menu>.monaco-action-bar.vertical .action-label.separator{border-bottom:1px solid #e0e3eb!important;margin-left:0!important;margin-right:0!important;opacity:1}.vs-dark .context-view .monaco-menu>.monaco-action-bar.vertical .action-item .action-menu-item span.keybinding{color:#5d606b}.context-view .monaco-menu>.monaco-action-bar.vertical .action-item .action-menu-item span.keybinding{color:#9598a1}.monaco-menu{max-height:calc(100vh - 35px)!important}.vs-dark.manual-warpper{color:#d1d4dc}.manual-warpper{display:flex;height:100%;text-align:left;color:#131722}.vs-dark .manual-left{border-right-color:#434651}.manual-left{border-right:1px solid #e0e3eb;display:flex;flex:0 0 240px;flex-direction:column;height:100%}.manual-right{flex:1;height:100%;overflow-y:auto;-webkit-user-select:text;user-select:text}.vs-dark .manual-search{border-bottom-color:#434651}.manual-search{display:flex;align-items:center;flex:0 0 47px;padding-left:16.5px;border-bottom:1px solid #e0e3eb}.manual-search-icon{height:18px;font-size:14px;opacity:.8;pointer-events:none;transition:opacity .35s ease}.manual-search-icon svg{fill:#a3a6af}.manual-search-input{background-color:transparent;color:inherit;height:29px;width:146px;margin-left:5px;border:none;outline:none}.vs-dark .manual-search-clear svg{fill:#d1d4dc}.manual-search-clear svg{fill:#434651}.manual-search-clear{cursor:pointer;opacity:.5;text-align:center;transition:opacity .35s ease;width:36px;font-size:14px}.manual-search-clear:hover{opacity:1;transition-duration:60ms}.manual-group-list{display:flex;flex:1 1 100%;flex-direction:column;overflow-y:auto;text-align:left}.manual-group-search-list{flex:1 1 100%;overflow-y:auto;text-align:left}.vs-dark .manual-content-separator{background-color:#363a45}.manual-content-separator{background-color:#e0e3eb;height:1px}.vs-dark .manual-group-title{color:#d1d4dc;border-bottom-color:#434651}.manual-group-title{box-sizing:border-box;color:#434651;cursor:default;display:block;flex:0 0 auto;font-size:14px;font-weight:700;margin:0;padding:12px;border-bottom:1px solid #e0e3eb;-webkit-user-select:none;user-select:none}.vs-dark .manual-group-title.active{background-color:#2a2e39;border-top-color:#2a2e39;color:#d1d4dc}.manual-group-title.active{background-color:#e3effd;border-top-color:#e3effd;color:#131722}.vs-dark .manual-group-body{border-bottom-color:#434651}.manual-group-body{display:block;flex:1 1 auto;pointer-events:auto;-webkit-user-select:text;user-select:text;overflow-x:hidden;overflow-y:auto;transform:translateZ(0);border-bottom:1px solid #e0e3eb}.manual-group-body.hide,.manual-search-clear.hide,.manual-group-list.hide,.manual-group-search-list.hide{display:none}.vs-dark .manual-group-body-item{color:#b2b5be}.manual-group-body-item{box-sizing:border-box;color:#5d606b;cursor:default;display:block;font-size:14px;letter-spacing:.3px;line-height:24px;padding:2px 8px 2px 12px;position:relative;transition:none;word-break:break-all;text-decoration:none}.vs-dark .manual-group-body-item-selected{fill:#2962ff;color:#2962ff}.manual-group-body-item-selected{color:#2962ff;fill:#2962ff}.manual-group-body-item-selected:before{background-color:#2962ff;bottom:0;content:"";display:block;left:0;position:absolute;top:0;width:4px}.manual-content-wrapper{box-sizing:border-box;padding:30px 25px 25px;position:relative}.manual-content-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:2px}.vs-dark .manual-content-header-overloads{background-color:#2a2e39}.manual-content-header-overloads{background-color:#e3effd;border-radius:8px;display:inline-block;height:auto;margin-left:6px;padding:4px 8px;vertical-align:top}.vs-dark .manual-content-header-title{color:#d1d4dc}.manual-content-header-title{font-size:18px;line-height:26px;color:#131722;font-weight:700;display:inline-block;margin:0}.vs-dark .manual-content-btn{color:#d1d4dc}.manual-content-btn{align-items:center;background:#0000;border:none;border-radius:4px;box-sizing:initial;color:#131722;cursor:default;display:flex;height:34px;justify-content:center;margin:0;padding:0;width:34px}.vs-dark .manual-content-btn:hover{background-color:#2a2e39}.manual-content-btn:hover{background-color:#f0f3fa}.vs-dark .manual-content-args-label{color:#d1d4dc}.manual-content-args-label{color:#131722;font-weight:700}.vs-dark .manual-content-syntax{background-color:#2a2e39;color:#d1d4dc}.manual-content-syntax{background-color:#e3effd;border-radius:8px;color:#131722;font-family:Menlo,Ubuntu Mono,Consolas,source-code-pro,monospace;overflow:hidden;transition:opacity .1s ease;white-space:pre-wrap;font-size:14px;line-height:21px;margin-top:8px;padding:24px;-webkit-user-select:none;user-select:none}.with-overloads{opacity:.6}.with-overloads:hover{opacity:.8}.with-overloads.selected{box-shadow:0 0 0 2px #2962ff;opacity:1}.vs-dark .manual-content-text{color:#d1d4dc}.manual-content-text{font-size:14px;line-height:21px;color:#131722;margin-top:8px}.vs-dark .manual-content-text-link{fill:#5b9cf6;color:#5b9cf6}.vs-dark .manual-content-text-link:hover{fill:#3179f5;color:#3179f5}.manual-content-text-link{color:#2962ff;fill:#2962ff}.manual-content-text-link:hover{color:#1e53e5;fill:#1e53e5}.vs-dark .manual-content-text code{background-color:#2a2e39}.manual-content-text code{background-color:#e0e3eb;border-radius:3px;padding:0 .4em}.vs-dark .manual-content-sub-title{color:#868993}.manual-content-sub-title{color:#6a6d78;font-size:11px;letter-spacing:.4px;line-height:16px;margin-top:24px;text-transform:uppercase}.manual-content-example-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:5px}.vs-dark .manual-content-example-copy{color:#868993}.manual-content-example-copy{color:#6a6d78}.vs-dark .manual-content-example{background-color:#2a2e39}.manual-content-example{background-color:#e3effd;border-radius:8px;box-shadow:none;margin-top:0;overflow:hidden}.manual-content-example code{display:block;font-family:Menlo,Ubuntu Mono,Consolas,source-code-pro,monospace;font-size:13px;line-height:18px;overflow-x:auto;padding:24px}.manual-content-see_also{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px;-webkit-user-select:none;user-select:none}.vs-dark .manual-content-see_also-tag{background-color:#1e222d;color:#d1d4dc}.vs-dark .manual-content-see_also-tag:hover{background-color:#363a45}.manual-content-see_also-tag{background-color:#f8f9fd;border-radius:3px;color:#131722;cursor:default;font-size:14px;line-height:21px;margin:0;padding:6px 8px}.manual-content-see_also-tag:hover{background-color:#f0f3fa}.manual-scroll::-webkit-scrollbar{height:5px;width:5px}.manual-scroll::-webkit-scrollbar-corner{display:none}.vs-dark .manual-scroll::-webkit-scrollbar-thumb,.vs-dark code::-webkit-scrollbar-thumb{background-color:#363a45}.manual-scroll::-webkit-scrollbar-thumb{background-clip:content-box;background-color:#9598a1;border:1px solid #0000;border-radius:3px}.manual-scroll::-webkit-scrollbar-track{background-color:initial;border-radius:3px}[data-tooltip]{position:relative;text-transform:none}[data-tooltip]:before,[data-tooltip]:after{position:absolute;opacity:0;z-index:1000;pointer-events:none;transition:.2s}[data-tooltip]:before{content:"";border:5px solid transparent;border-top-color:#2a2e39;-webkit-transform:translateX(-50%);transform:translate(-50%);bottom:100%;left:50%;margin-bottom:-5px}[data-tooltip]:after{content:attr(data-tooltip);background:#2a2e39;font:12px Microsoft YaHei;color:#fff;padding:4px 8px;border-radius:2px;box-shadow:3px 3px 6px #0000004d;bottom:100%;width:max-content;left:50%;transform:translate(-50%);margin-bottom:5px}[data-tooltip]:hover:before,[data-tooltip]:hover:after{opacity:1;-webkit-transition-delay:.15s;transition-delay:.15s}[data-tooltip=""]:before,[data-tooltip=""]:after{display:none!important}.vs-dark ::selection{background:#143a87}::selection{background:#bbd9fb}`)),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
- (function(q,R){typeof exports=="object"&&typeof module<"u"?R(exports,require("react"),require("monaco-editor"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","monaco-editor","react-dom"],R):(q=typeof globalThis<"u"?globalThis:q||self,R(q.vueEditor={},q.react,q["monaco-editor"],q["react-dom"]))})(this,function(q,R,Ae,lp){"use strict";var Bi=document.createElement("style");Bi.textContent=`.line-decoration_modified,.line-decoration_added,.line-decoration_removed{left:auto!important;right:20px;transform:scale(-1);width:4px!important}.line-modified:before{content:"";height:100%;left:0;position:absolute;top:0;transition:width .2s;width:3px;z-index:1;background-image:linear-gradient(-45deg,#2962ff 25%,#0000 0,#0000 50%,#2962ff 0,#2962ff 75%,#0000 0,#0000);background-size:3px 3px}.line-added:before{content:"";height:100%;left:0;position:absolute;top:0;transition:width .2s;width:3px;z-index:1;background:#089950}.modified-in-monaco-diff-editor .line-modified:before,.modified-in-monaco-diff-editor .line-added:before,.modified-in-monaco-diff-editor .line-decoration_removed:after{background:none}.line-modified:hover:before,.line-added:hover:before,.line-decoration_removed:hover:before{width:5px}.line-decoration_removed:hover:before{background-color:#f23645}.line-decoration_removed:hover:after{background:none}.line-decoration_removed:before{content:"";height:100%;left:0;position:absolute;top:0;transition:width .2s;width:3px;z-index:1}.line-decoration_removed:after{background:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='4'%20height='18'%20viewBox='0%200%204%2018'%20fill='%23F23645'%3e%3cpath%20d='M3.7%208.11a.5.5%200%200%201%200%20.67L.89%2012a.5.5%200%200%201-.88-.33V5.3a.5.5%200%200%201%20.87-.33L3.7%208.1Z'/%3e%3c/svg%3e") 50% no-repeat;background-size:5px 20px;content:"";height:10px;left:-4px;position:absolute;top:-3px;transform:scale(-1);width:10px}.vs-dark .content-popup{background-color:#1e222d}.content-popup{position:relative;border-bottom:1px solid;display:flex;flex-direction:column;height:100%;-webkit-user-select:none;user-select:none;background-color:#fff}.header-popup{align-items:center;position:relative;z-index:1;border-left:0;border-right:0;display:flex;height:22px;justify-content:space-between;margin-top:5px;border-bottom:1px solid #fff;border-top:1px solid #fff;background-color:#fff}.title-popup{font-size:13px;font-weight:400;line-height:18px;margin-left:27px}.actions-popup{align-items:center;display:flex}.button-popup{height:24px;cursor:pointer;justify-content:center;width:24px;display:flex;padding:0 5px;align-items:center;box-sizing:border-box;transition:background-color 60ms ease,opacity 60ms ease,color 60ms ease}.icon-popup{display:flex}.triangle-popup{position:absolute;left:55px;margin-top:1px;height:8px;z-index:0;transform:rotate(-45deg);width:8px}.triangle-modified-popup{background-color:#2962ff}.vs-dark .header-modified-popup{background-color:#1e222d}.header-modified-popup{background-color:#e3effd;border-color:#2962ff}.content-modified-popup{border-bottom-color:#2962ff}.triangle-added-popup{background-color:#089950}.vs-dark .header-added-popup{background-color:#1a3326}.header-added-popup{background-color:#daf2e6;border-color:#089950}.content-added-popup{border-bottom-color:#089950}.triangle-removed-popup{background-color:#f23645}.vs-dark .header-removed-popup{background-color:#331f20}.header-removed-popup{background-color:#ffebec;border-color:#f23645}.content-removed-popup{border-bottom-color:#f23645}.tvue-script .monaco-editor.vs-dark .quick-input-widget{background:#1e222d!important}.tvue-script .monaco-editor .monaco-inputbox:focus-within,.tvue-script .monaco-editor.vs-dark .monaco-inputbox:focus-within{border-color:#2962ff}.tvue-script .monaco-editor .quick-input-widget .monaco-inputbox{background-color:unset!important;border:unset!important}.tvue-script .monaco-editor .quick-input-widget .input:active,.tvue-script .monaco-editor .quick-input-widget .input:focus{border:2px solid #2962ff}.tvue-script .monaco-editor.vs-dark .quick-input-widget .input{background-color:#1e222d!important;color:#d1d4dc!important}.tvue-script .monaco-editor .monaco-inputbox .input{font-size:14px;line-height:18px;outline:none}.tvue-script .monaco-editor .quick-input-widget .input{background-color:#fff!important;border:1px solid #d1d4dc;border-radius:6px;color:#131722!important;height:28px;padding-bottom:5px}.tvue-script .monaco-editor .overflow-guard{overflow:hidden!important}.tvue-script .monaco-editor .find-widget .codicon.toggle:before{content:"";font-size:15px;transition:.3s ease-out}.tvue-script .monaco-editor .find-widget.replaceToggled{height:80px!important}.tvue-script .monaco-editor .find-widget{border-bottom-left-radius:6px;border-bottom-right-radius:6px;height:44px!important;width:450px!important;transition:.3s ease-out}.tvue-script .monaco-editor .find-widget.replaceToggled .find-part,.tvue-script .monaco-editor .find-widget.replaceToggled .replace-part{margin-left:17px}.tvue-script .monaco-editor .find-widget .codicon.toggle.codicon-find-expanded{height:77px}.tvue-script .monaco-editor .find-widget.replaceToggled .replace-part{margin-top:8px}.tvue-script .monaco-editor .find-widget .codicon.toggle{border-radius:4px;cursor:default;height:41px;left:2px;top:2px}.tvue-script .monaco-editor .find-widget .monaco-sash{display:none}.tvue-script .monaco-editor .find-widget .find-part{margin-top:8px}.tvue-script .monaco-editor .find-widget .monaco-findInput{width:255px}.tvue-script .monaco-editor .monaco-scrollable-element{--vscode-scrollbarSlider-background: #64646466;margin-bottom:-2px}.tvue-script .monaco-editor.vs-dark .find-widget .monaco-scrollable-element>.monaco-inputbox.idle{background-color:#1e222d!important}.tvue-script .monaco-editor.vs-dark .find-widget .monaco-scrollable-element>.monaco-inputbox.idle{border-color:#50535e!important}.tvue-script .monaco-editor .find-widget .monaco-scrollable-element>.monaco-inputbox.idle{background-color:#fff!important;border-color:#d1d4dc!important;border-radius:6px;height:28px}.tvue-script .monaco-editor.vs-dark .monaco-inputbox,.tvue-script .monaco-editor.vs-dark .monaco-inputbox.idle{border:2px solid #50535e}.tvue-script .monaco-editor .monaco-inputbox,.tvue-script .monaco-editor .monaco-inputbox.idle{border:2px solid #a3a6af;border-radius:4px;overflow:hidden}.tvue-script .monaco-editor .find-widget .button{box-sizing:content-box}.tvue-script .monaco-editor .find-widget>.button.codicon-widget-close{top:10px}.tvue-script .monaco-editor .find-widget .codicon.toggle.codicon-find-expanded:before{transform:rotate(180deg)}.tvue-script .monaco-editor .find-widget .monaco-scrollable-element>.monaco-inputbox.idle .ibwrapper>textarea.input{padding-top:4px}.tvue-script .monaco-editor .monaco-inputbox .input{line-height:18px}.tvue-script .monaco-editor.vs-dark .find-widget .monaco-scrollable-element>.monaco-inputbox.synthetic-focus{border:1px solid #2962ff!important}.tvue-script .monaco-editor .find-widget .monaco-scrollable-element>.monaco-inputbox.synthetic-focus{border:1px solid #2962ff!important;outline-color:#0000}.tvue-script .monaco-editor .monaco-inputbox:focus-within{border-color:#2962ff}.vs-dark .context-view .monaco-menu>.monaco-action-bar.vertical{background-color:#1e222d!important}.context-view .monaco-menu>.monaco-action-bar.vertical{background-color:#fff!important}.vs-dark .context-view .monaco-menu>.monaco-action-bar.vertical .action-item .action-menu-item,.vs-dark .context-view .monaco-menu>.monaco-action-bar.vertical .action-item .submenu-indicator{color:#d1d4dc!important}.context-view .monaco-menu>.monaco-action-bar.vertical .action-item .action-menu-item,.context-view .monaco-menu>.monaco-action-bar.vertical .action-item .submenu-indicator{color:#131722!important}.context-view .monaco-menu>.monaco-action-bar.vertical .action-item .action-menu-item{border-radius:0;height:32px;margin:0}.vs-dark .context-view .monaco-menu>.monaco-action-bar.vertical .action-item.focused .action-menu-item,.vs-dark .context-view .monaco-menu>.monaco-action-bar.vertical .action-item.focused .submenu-indicator{background-color:#2a2e39!important;color:#d1d4dc!important}.context-view .monaco-menu>.monaco-action-bar.vertical .action-item.focused .action-menu-item,.context-view .monaco-menu>.monaco-action-bar.vertical .action-item.focused .submenu-indicator{background-color:#f0f3fa!important;color:#131722!important}.vs-dark .context-view .monaco-menu>.monaco-action-bar.vertical .action-label.separator{border-bottom:1px solid #434651!important}.context-view .monaco-menu>.monaco-action-bar.vertical .action-label.separator{border-bottom:1px solid #e0e3eb!important;margin-left:0!important;margin-right:0!important;opacity:1}.vs-dark .context-view .monaco-menu>.monaco-action-bar.vertical .action-item .action-menu-item span.keybinding{color:#5d606b}.context-view .monaco-menu>.monaco-action-bar.vertical .action-item .action-menu-item span.keybinding{color:#9598a1}.monaco-menu{max-height:calc(100vh - 35px)!important}.vs-dark.manual-warpper{color:#d1d4dc}.manual-warpper{display:flex;height:100%;text-align:left;color:#131722}.vs-dark .manual-left{border-right-color:#434651}.manual-left{border-right:1px solid #e0e3eb;display:flex;flex:0 0 240px;flex-direction:column;height:100%}.manual-right{flex:1;height:100%;overflow-y:auto;-webkit-user-select:text;user-select:text}.vs-dark .manual-search{border-bottom-color:#434651}.manual-search{display:flex;align-items:center;flex:0 0 47px;padding-left:16.5px;border-bottom:1px solid #e0e3eb}.manual-search-icon{height:18px;font-size:14px;opacity:.8;pointer-events:none;transition:opacity .35s ease}.manual-search-icon svg{fill:#a3a6af}.manual-search-input{background-color:transparent;color:inherit;height:29px;width:146px;margin-left:5px;border:none;outline:none}.vs-dark .manual-search-clear svg{fill:#d1d4dc}.manual-search-clear svg{fill:#434651}.manual-search-clear{cursor:pointer;opacity:.5;text-align:center;transition:opacity .35s ease;width:36px;font-size:14px}.manual-search-clear:hover{opacity:1;transition-duration:60ms}.manual-group-list{display:flex;flex:1 1 100%;flex-direction:column;overflow-y:auto;text-align:left}.manual-group-search-list{flex:1 1 100%;overflow-y:auto;text-align:left}.vs-dark .manual-content-separator{background-color:#363a45}.manual-content-separator{background-color:#e0e3eb;height:1px}.vs-dark .manual-group-title{color:#d1d4dc;border-bottom-color:#434651}.manual-group-title{box-sizing:border-box;color:#434651;cursor:default;display:block;flex:0 0 auto;font-size:14px;font-weight:700;margin:0;padding:12px;border-bottom:1px solid #e0e3eb;-webkit-user-select:none;user-select:none}.vs-dark .manual-group-title.active{background-color:#2a2e39;border-top-color:#2a2e39;color:#d1d4dc}.manual-group-title.active{background-color:#e3effd;border-top-color:#e3effd;color:#131722}.vs-dark .manual-group-body{border-bottom-color:#434651}.manual-group-body{display:block;flex:1 1 auto;pointer-events:auto;-webkit-user-select:text;user-select:text;overflow-x:hidden;overflow-y:auto;transform:translateZ(0);border-bottom:1px solid #e0e3eb}.manual-group-body.hide,.manual-search-clear.hide,.manual-group-list.hide,.manual-group-search-list.hide{display:none}.vs-dark .manual-group-body-item{color:#b2b5be}.manual-group-body-item{box-sizing:border-box;color:#5d606b;cursor:default;display:block;font-size:14px;letter-spacing:.3px;line-height:24px;padding:2px 8px 2px 12px;position:relative;transition:none;word-break:break-all;text-decoration:none}.vs-dark .manual-group-body-item-selected{fill:#2962ff;color:#2962ff}.manual-group-body-item-selected{color:#2962ff;fill:#2962ff}.manual-group-body-item-selected:before{background-color:#2962ff;bottom:0;content:"";display:block;left:0;position:absolute;top:0;width:4px}.manual-content-wrapper{box-sizing:border-box;padding:30px 25px 25px;position:relative}.manual-content-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:2px}.vs-dark .manual-content-header-overloads{background-color:#2a2e39}.manual-content-header-overloads{background-color:#e3effd;border-radius:8px;display:inline-block;height:auto;margin-left:6px;padding:4px 8px;vertical-align:top}.vs-dark .manual-content-header-title{color:#d1d4dc}.manual-content-header-title{font-size:18px;line-height:26px;color:#131722;font-weight:700;display:inline-block;margin:0}.vs-dark .manual-content-btn{color:#d1d4dc}.manual-content-btn{align-items:center;background:#0000;border:none;border-radius:4px;box-sizing:initial;color:#131722;cursor:default;display:flex;height:34px;justify-content:center;margin:0;padding:0;width:34px}.vs-dark .manual-content-btn:hover{background-color:#2a2e39}.manual-content-btn:hover{background-color:#f0f3fa}.vs-dark .manual-content-args-label{color:#d1d4dc}.manual-content-args-label{color:#131722;font-weight:700}.vs-dark .manual-content-syntax{background-color:#2a2e39;color:#d1d4dc}.manual-content-syntax{background-color:#e3effd;border-radius:8px;color:#131722;font-family:Menlo,Ubuntu Mono,Consolas,source-code-pro,monospace;overflow:hidden;transition:opacity .1s ease;white-space:pre-wrap;font-size:14px;line-height:21px;margin-top:8px;padding:24px;-webkit-user-select:none;user-select:none}.with-overloads{opacity:.6}.with-overloads:hover{opacity:.8}.with-overloads.selected{box-shadow:0 0 0 2px #2962ff;opacity:1}.vs-dark .manual-content-text{color:#d1d4dc}.manual-content-text{font-size:14px;line-height:21px;color:#131722;margin-top:8px}.vs-dark .manual-content-text-link{fill:#5b9cf6;color:#5b9cf6}.vs-dark .manual-content-text-link:hover{fill:#3179f5;color:#3179f5}.manual-content-text-link{color:#2962ff;fill:#2962ff}.manual-content-text-link:hover{color:#1e53e5;fill:#1e53e5}.vs-dark .manual-content-text code{background-color:#2a2e39}.manual-content-text code{background-color:#e0e3eb;border-radius:3px;padding:0 .4em}.vs-dark .manual-content-sub-title{color:#868993}.manual-content-sub-title{color:#6a6d78;font-size:11px;letter-spacing:.4px;line-height:16px;margin-top:24px;text-transform:uppercase}.manual-content-example-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:5px}.vs-dark .manual-content-example-copy{color:#868993}.manual-content-example-copy{color:#6a6d78}.vs-dark .manual-content-example{background-color:#2a2e39}.manual-content-example{background-color:#e3effd;border-radius:8px;box-shadow:none;margin-top:0;overflow:hidden}.manual-content-example code{display:block;font-family:Menlo,Ubuntu Mono,Consolas,source-code-pro,monospace;font-size:13px;line-height:18px;overflow-x:auto;padding:24px}.manual-content-see_also{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px;-webkit-user-select:none;user-select:none}.vs-dark .manual-content-see_also-tag{background-color:#1e222d;color:#d1d4dc}.vs-dark .manual-content-see_also-tag:hover{background-color:#363a45}.manual-content-see_also-tag{background-color:#f8f9fd;border-radius:3px;color:#131722;cursor:default;font-size:14px;line-height:21px;margin:0;padding:6px 8px}.manual-content-see_also-tag:hover{background-color:#f0f3fa}.manual-scroll::-webkit-scrollbar{height:5px;width:5px}.manual-scroll::-webkit-scrollbar-corner{display:none}.vs-dark .manual-scroll::-webkit-scrollbar-thumb,.vs-dark code::-webkit-scrollbar-thumb{background-color:#363a45}.manual-scroll::-webkit-scrollbar-thumb{background-clip:content-box;background-color:#9598a1;border:1px solid #0000;border-radius:3px}.manual-scroll::-webkit-scrollbar-track{background-color:initial;border-radius:3px}[data-tooltip]{position:relative;text-transform:none}[data-tooltip]:before,[data-tooltip]:after{position:absolute;opacity:0;z-index:1000;pointer-events:none;transition:.2s}[data-tooltip]:before{content:"";border:5px solid transparent;border-top-color:#2a2e39;-webkit-transform:translateX(-50%);transform:translate(-50%);bottom:100%;left:50%;margin-bottom:-5px}[data-tooltip]:after{content:attr(data-tooltip);background:#2a2e39;font:12px Microsoft YaHei;color:#fff;padding:4px 8px;border-radius:2px;box-shadow:3px 3px 6px #0000004d;bottom:100%;width:max-content;left:50%;transform:translate(-50%);margin-bottom:5px}[data-tooltip]:hover:before,[data-tooltip]:hover:after{opacity:1;-webkit-transition-delay:.15s;transition-delay:.15s}[data-tooltip=""]:before,[data-tooltip=""]:after{display:none!important}.vs-dark ::selection{background:#143a87}::selection{background:#bbd9fb}
3
- `,document.head.appendChild(Bi);var Us=typeof document<"u"?document.currentScript:null;function cp(a){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const s in a)if(s!=="default"){const o=Object.getOwnPropertyDescriptor(a,s);Object.defineProperty(n,s,o.get?o:{enumerable:!0,get:()=>a[s]})}}return n.default=a,Object.freeze(n)}const pp=cp(Ae);var Ui;(function(a){a.Comment="comment",a.Text="text",a.String="string",a.Paren="paren",a.StringInvalid="string.invalid",a.ConstantNumericInteger="constant.numeric.integer",a.ConstantNumericFloat="constant.numeric.float",a.ConstantLanguage="constant.language",a.ConstantLanguageBoolean="constant.other.boolean",a.ConstantOtherColor="constant.other.color",a.SupportVariable="support.variable",a.SupportType="support.type",a.Keyword="keyword",a.KeywordEquals="keyword.equals",a.KeywordOperator="keyword.operator",a.CustomType="entity.name.type",a.VariableOther="variable.other",a.Property="variable.other.property",a.SupportFunction="support.function",a.SupportMethod="support.method",a.ImportedFunction="meta.function-call",a.Function="entity.name.function",a.ImportName="entity.name.module",a.ImportAlias="entity.name.module.name",a.ExtensionMethod="entity.name.method",a.Annotation="comment.annotation",a.PunctuationOperator="punctuation.operator",a.Empty="empty",a.Source="source"})(Ui||(Ui={}));var it;(function(a){a.Type="type",a.Returns="Returns",a.Syntax="Syntax",a.Remarks="Remarks",a.Fields="Fields",a.Description="Description",a.Example="Example"})(it||(it={})),q.Actions=void 0,function(a){a.Save="save",a.Find="find",a.TriggerConsole="trigger.console",a.RunScript="runScript",a.Open="open"}(q.Actions||(q.Actions={}));var ss=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function dp(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var en={exports:{}},as={};/**
2
+ (function(A,F){typeof exports=="object"&&typeof module<"u"?F(exports,require("react"),require("monaco-editor"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","monaco-editor","react-dom"],F):(A=typeof globalThis<"u"?globalThis:A||self,F(A.vueEditor={},A.react,A["monaco-editor"],A["react-dom"]))})(this,function(A,F,qe,lp){"use strict";var Bi=document.createElement("style");Bi.textContent=`.line-decoration_modified,.line-decoration_added,.line-decoration_removed{left:auto!important;right:20px;transform:scale(-1);width:4px!important}.line-modified:before{content:"";height:100%;left:0;position:absolute;top:0;transition:width .2s;width:3px;z-index:1;background-image:linear-gradient(-45deg,#2962ff 25%,#0000 0,#0000 50%,#2962ff 0,#2962ff 75%,#0000 0,#0000);background-size:3px 3px}.line-added:before{content:"";height:100%;left:0;position:absolute;top:0;transition:width .2s;width:3px;z-index:1;background:#089950}.modified-in-monaco-diff-editor .line-modified:before,.modified-in-monaco-diff-editor .line-added:before,.modified-in-monaco-diff-editor .line-decoration_removed:after{background:none}.line-modified:hover:before,.line-added:hover:before,.line-decoration_removed:hover:before{width:5px}.line-decoration_removed:hover:before{background-color:#f23645}.line-decoration_removed:hover:after{background:none}.line-decoration_removed:before{content:"";height:100%;left:0;position:absolute;top:0;transition:width .2s;width:3px;z-index:1}.line-decoration_removed:after{background:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='4'%20height='18'%20viewBox='0%200%204%2018'%20fill='%23F23645'%3e%3cpath%20d='M3.7%208.11a.5.5%200%200%201%200%20.67L.89%2012a.5.5%200%200%201-.88-.33V5.3a.5.5%200%200%201%20.87-.33L3.7%208.1Z'/%3e%3c/svg%3e") 50% no-repeat;background-size:5px 20px;content:"";height:10px;left:-4px;position:absolute;top:-3px;transform:scale(-1);width:10px}.vs-dark .content-popup{background-color:#1e222d}.content-popup{position:relative;border-bottom:1px solid;display:flex;flex-direction:column;height:100%;-webkit-user-select:none;user-select:none;background-color:#fff}.header-popup{align-items:center;position:relative;z-index:1;border-left:0;border-right:0;display:flex;height:22px;justify-content:space-between;margin-top:5px;border-bottom:1px solid #fff;border-top:1px solid #fff;background-color:#fff}.title-popup{font-size:13px;font-weight:400;line-height:18px;margin-left:27px}.actions-popup{align-items:center;display:flex}.button-popup{height:24px;cursor:pointer;justify-content:center;width:24px;display:flex;padding:0 5px;align-items:center;box-sizing:border-box;transition:background-color 60ms ease,opacity 60ms ease,color 60ms ease}.icon-popup{display:flex}.triangle-popup{position:absolute;left:55px;margin-top:1px;height:8px;z-index:0;transform:rotate(-45deg);width:8px}.triangle-modified-popup{background-color:#2962ff}.vs-dark .header-modified-popup{background-color:#1e222d}.header-modified-popup{background-color:#e3effd;border-color:#2962ff}.content-modified-popup{border-bottom-color:#2962ff}.triangle-added-popup{background-color:#089950}.vs-dark .header-added-popup{background-color:#1a3326}.header-added-popup{background-color:#daf2e6;border-color:#089950}.content-added-popup{border-bottom-color:#089950}.triangle-removed-popup{background-color:#f23645}.vs-dark .header-removed-popup{background-color:#331f20}.header-removed-popup{background-color:#ffebec;border-color:#f23645}.content-removed-popup{border-bottom-color:#f23645}.tvue-script .monaco-editor.vs-dark .quick-input-widget{background:#1e222d!important}.tvue-script .monaco-editor .monaco-inputbox:focus-within,.tvue-script .monaco-editor.vs-dark .monaco-inputbox:focus-within{border-color:#2962ff}.tvue-script .monaco-editor .quick-input-widget .monaco-inputbox{background-color:unset!important;border:unset!important}.tvue-script .monaco-editor .quick-input-widget .input:active,.tvue-script .monaco-editor .quick-input-widget .input:focus{border:2px solid #2962ff}.tvue-script .monaco-editor.vs-dark .quick-input-widget .input{background-color:#1e222d!important;color:#d1d4dc!important}.tvue-script .monaco-editor .monaco-inputbox .input{font-size:14px;line-height:18px;outline:none}.tvue-script .monaco-editor .quick-input-widget .input{background-color:#fff!important;border:1px solid #d1d4dc;border-radius:6px;color:#131722!important;height:28px;padding-bottom:5px}.tvue-script .monaco-editor .overflow-guard{overflow:hidden!important}.tvue-script .monaco-editor .find-widget .codicon.toggle:before{content:"";font-size:15px;transition:.3s ease-out}.tvue-script .monaco-editor .find-widget.replaceToggled{height:80px!important}.tvue-script .monaco-editor .find-widget{border-bottom-left-radius:6px;border-bottom-right-radius:6px;height:44px!important;width:450px!important;transition:.3s ease-out}.tvue-script .monaco-editor .find-widget.replaceToggled .find-part,.tvue-script .monaco-editor .find-widget.replaceToggled .replace-part{margin-left:17px}.tvue-script .monaco-editor .find-widget .codicon.toggle.codicon-find-expanded{height:77px}.tvue-script .monaco-editor .find-widget.replaceToggled .replace-part{margin-top:8px}.tvue-script .monaco-editor .find-widget .codicon.toggle{border-radius:4px;cursor:default;height:41px;left:2px;top:2px}.tvue-script .monaco-editor .find-widget .monaco-sash{display:none}.tvue-script .monaco-editor .find-widget .find-part{margin-top:8px}.tvue-script .monaco-editor .find-widget .monaco-findInput{width:255px}.tvue-script .monaco-editor .monaco-scrollable-element{--vscode-scrollbarSlider-background: #64646466;margin-bottom:-2px}.tvue-script .monaco-editor.vs-dark .find-widget .monaco-scrollable-element>.monaco-inputbox.idle{background-color:#1e222d!important}.tvue-script .monaco-editor.vs-dark .find-widget .monaco-scrollable-element>.monaco-inputbox.idle{border-color:#50535e!important}.tvue-script .monaco-editor .find-widget .monaco-scrollable-element>.monaco-inputbox.idle{background-color:#fff!important;border-color:#d1d4dc!important;border-radius:6px;height:28px}.tvue-script .monaco-editor.vs-dark .monaco-inputbox,.tvue-script .monaco-editor.vs-dark .monaco-inputbox.idle{border:2px solid #50535e}.tvue-script .monaco-editor .monaco-inputbox,.tvue-script .monaco-editor .monaco-inputbox.idle{border:2px solid #a3a6af;border-radius:4px;overflow:hidden}.tvue-script .monaco-editor .find-widget .button{box-sizing:content-box}.tvue-script .monaco-editor .find-widget>.button.codicon-widget-close{top:10px}.tvue-script .monaco-editor .find-widget .codicon.toggle.codicon-find-expanded:before{transform:rotate(180deg)}.tvue-script .monaco-editor .find-widget .monaco-scrollable-element>.monaco-inputbox.idle .ibwrapper>textarea.input{padding-top:4px}.tvue-script .monaco-editor .monaco-inputbox .input{line-height:18px}.tvue-script .monaco-editor.vs-dark .find-widget .monaco-scrollable-element>.monaco-inputbox.synthetic-focus{border:1px solid #2962ff!important}.tvue-script .monaco-editor .find-widget .monaco-scrollable-element>.monaco-inputbox.synthetic-focus{border:1px solid #2962ff!important;outline-color:#0000}.tvue-script .monaco-editor .monaco-inputbox:focus-within{border-color:#2962ff}.vs-dark .context-view .monaco-menu>.monaco-action-bar.vertical{background-color:#1e222d!important}.context-view .monaco-menu>.monaco-action-bar.vertical{background-color:#fff!important}.vs-dark .context-view .monaco-menu>.monaco-action-bar.vertical .action-item .action-menu-item,.vs-dark .context-view .monaco-menu>.monaco-action-bar.vertical .action-item .submenu-indicator{color:#d1d4dc!important}.context-view .monaco-menu>.monaco-action-bar.vertical .action-item .action-menu-item,.context-view .monaco-menu>.monaco-action-bar.vertical .action-item .submenu-indicator{color:#131722!important}.context-view .monaco-menu>.monaco-action-bar.vertical .action-item .action-menu-item{border-radius:0;height:32px;margin:0}.vs-dark .context-view .monaco-menu>.monaco-action-bar.vertical .action-item.focused .action-menu-item,.vs-dark .context-view .monaco-menu>.monaco-action-bar.vertical .action-item.focused .submenu-indicator{background-color:#2a2e39!important;color:#d1d4dc!important}.context-view .monaco-menu>.monaco-action-bar.vertical .action-item.focused .action-menu-item,.context-view .monaco-menu>.monaco-action-bar.vertical .action-item.focused .submenu-indicator{background-color:#f0f3fa!important;color:#131722!important}.vs-dark .context-view .monaco-menu>.monaco-action-bar.vertical .action-label.separator{border-bottom:1px solid #434651!important}.context-view .monaco-menu>.monaco-action-bar.vertical .action-label.separator{border-bottom:1px solid #e0e3eb!important;margin-left:0!important;margin-right:0!important;opacity:1}.vs-dark .context-view .monaco-menu>.monaco-action-bar.vertical .action-item .action-menu-item span.keybinding{color:#5d606b}.context-view .monaco-menu>.monaco-action-bar.vertical .action-item .action-menu-item span.keybinding{color:#9598a1}.monaco-menu{max-height:calc(100vh - 35px)!important}.vs-dark.manual-warpper{color:#d1d4dc}.manual-warpper{display:flex;height:100%;text-align:left;color:#131722}.vs-dark .manual-left{border-right-color:#434651}.manual-left{border-right:1px solid #e0e3eb;display:flex;flex:0 0 240px;flex-direction:column;height:100%}.manual-right{flex:1;height:100%;overflow-y:auto;-webkit-user-select:text;user-select:text}.vs-dark .manual-search{border-bottom-color:#434651}.manual-search{display:flex;align-items:center;flex:0 0 47px;padding-left:16.5px;border-bottom:1px solid #e0e3eb}.manual-search-icon{height:18px;font-size:14px;opacity:.8;pointer-events:none;transition:opacity .35s ease}.manual-search-icon svg{fill:#a3a6af}.manual-search-input{background-color:transparent;color:inherit;height:29px;width:146px;margin-left:5px;border:none;outline:none}.vs-dark .manual-search-clear svg{fill:#d1d4dc}.manual-search-clear svg{fill:#434651}.manual-search-clear{cursor:pointer;opacity:.5;text-align:center;transition:opacity .35s ease;width:36px;font-size:14px}.manual-search-clear:hover{opacity:1;transition-duration:60ms}.manual-group-list{display:flex;flex:1 1 100%;flex-direction:column;overflow-y:auto;text-align:left}.manual-group-search-list{flex:1 1 100%;overflow-y:auto;text-align:left}.vs-dark .manual-content-separator{background-color:#363a45}.manual-content-separator{background-color:#e0e3eb;height:1px}.vs-dark .manual-group-title{color:#d1d4dc;border-bottom-color:#434651}.manual-group-title{box-sizing:border-box;color:#434651;cursor:default;display:block;flex:0 0 auto;font-size:14px;font-weight:700;margin:0;padding:12px;border-bottom:1px solid #e0e3eb;-webkit-user-select:none;user-select:none}.vs-dark .manual-group-title.active{background-color:#2a2e39;border-top-color:#2a2e39;color:#d1d4dc}.manual-group-title.active{background-color:#e3effd;border-top-color:#e3effd;color:#131722}.vs-dark .manual-group-body{border-bottom-color:#434651}.manual-group-body{display:block;flex:1 1 auto;pointer-events:auto;-webkit-user-select:text;user-select:text;overflow-x:hidden;overflow-y:auto;transform:translateZ(0);border-bottom:1px solid #e0e3eb}.manual-group-body.hide,.manual-search-clear.hide,.manual-group-list.hide,.manual-group-search-list.hide{display:none}.vs-dark .manual-group-body-item{color:#b2b5be}.manual-group-body-item{box-sizing:border-box;color:#5d606b;cursor:default;display:block;font-size:14px;letter-spacing:.3px;line-height:24px;padding:2px 8px 2px 12px;position:relative;transition:none;word-break:break-all;text-decoration:none}.vs-dark .manual-group-body-item-selected{fill:#2962ff;color:#2962ff}.manual-group-body-item-selected{color:#2962ff;fill:#2962ff}.manual-group-body-item-selected:before{background-color:#2962ff;bottom:0;content:"";display:block;left:0;position:absolute;top:0;width:4px}.manual-content-wrapper{box-sizing:border-box;padding:30px 25px 25px;position:relative}.manual-content-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:2px}.vs-dark .manual-content-header-overloads{background-color:#2a2e39}.manual-content-header-overloads{background-color:#e3effd;border-radius:8px;display:inline-block;height:auto;margin-left:6px;padding:4px 8px;vertical-align:top}.vs-dark .manual-content-header-title{color:#d1d4dc}.manual-content-header-title{font-size:18px;line-height:26px;color:#131722;font-weight:700;display:inline-block;margin:0}.vs-dark .manual-content-btn{color:#d1d4dc}.manual-content-btn{align-items:center;background:#0000;border:none;border-radius:4px;box-sizing:initial;color:#131722;cursor:default;display:flex;height:34px;justify-content:center;margin:0;padding:0;width:34px}.vs-dark .manual-content-btn:hover{background-color:#2a2e39}.manual-content-btn:hover{background-color:#f0f3fa}.vs-dark .manual-content-args-label{color:#d1d4dc}.manual-content-args-label{color:#131722;font-weight:700}.vs-dark .manual-content-syntax{background-color:#2a2e39;color:#d1d4dc}.manual-content-syntax{background-color:#e3effd;border-radius:8px;color:#131722;font-family:Menlo,Ubuntu Mono,Consolas,source-code-pro,monospace;overflow:hidden;transition:opacity .1s ease;white-space:pre-wrap;font-size:14px;line-height:21px;margin-top:8px;padding:24px;-webkit-user-select:none;user-select:none}.with-overloads{opacity:.6}.with-overloads:hover{opacity:.8}.with-overloads.selected{box-shadow:0 0 0 2px #2962ff;opacity:1}.vs-dark .manual-content-text{color:#d1d4dc}.manual-content-text{font-size:14px;line-height:21px;color:#131722;margin-top:8px}.vs-dark .manual-content-text-link{fill:#5b9cf6;color:#5b9cf6}.vs-dark .manual-content-text-link:hover{fill:#3179f5;color:#3179f5}.manual-content-text-link{color:#2962ff;fill:#2962ff}.manual-content-text-link:hover{color:#1e53e5;fill:#1e53e5}.vs-dark .manual-content-text code{background-color:#2a2e39}.manual-content-text code{background-color:#e0e3eb;border-radius:3px;padding:0 .4em}.vs-dark .manual-content-sub-title{color:#868993}.manual-content-sub-title{color:#6a6d78;font-size:11px;letter-spacing:.4px;line-height:16px;margin-top:24px;text-transform:uppercase}.manual-content-example-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:5px}.vs-dark .manual-content-example-copy{color:#868993}.manual-content-example-copy{color:#6a6d78}.vs-dark .manual-content-example{background-color:#2a2e39}.manual-content-example{background-color:#e3effd;border-radius:8px;box-shadow:none;margin-top:0;overflow:hidden}.manual-content-example code{display:block;font-family:Menlo,Ubuntu Mono,Consolas,source-code-pro,monospace;font-size:13px;line-height:18px;overflow-x:auto;padding:24px}.manual-content-see_also{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px;-webkit-user-select:none;user-select:none}.vs-dark .manual-content-see_also-tag{background-color:#1e222d;color:#d1d4dc}.vs-dark .manual-content-see_also-tag:hover{background-color:#363a45}.manual-content-see_also-tag{background-color:#f8f9fd;border-radius:3px;color:#131722;cursor:default;font-size:14px;line-height:21px;margin:0;padding:6px 8px}.manual-content-see_also-tag:hover{background-color:#f0f3fa}.manual-scroll::-webkit-scrollbar{height:5px;width:5px}.manual-scroll::-webkit-scrollbar-corner{display:none}.vs-dark .manual-scroll::-webkit-scrollbar-thumb,.vs-dark code::-webkit-scrollbar-thumb{background-color:#363a45}.manual-scroll::-webkit-scrollbar-thumb{background-clip:content-box;background-color:#9598a1;border:1px solid #0000;border-radius:3px}.manual-scroll::-webkit-scrollbar-track{background-color:initial;border-radius:3px}[data-tooltip]{position:relative;text-transform:none}[data-tooltip]:before,[data-tooltip]:after{position:absolute;opacity:0;z-index:1000;pointer-events:none;transition:.2s}[data-tooltip]:before{content:"";border:5px solid transparent;border-top-color:#2a2e39;-webkit-transform:translateX(-50%);transform:translate(-50%);bottom:100%;left:50%;margin-bottom:-5px}[data-tooltip]:after{content:attr(data-tooltip);background:#2a2e39;font:12px Microsoft YaHei;color:#fff;padding:4px 8px;border-radius:2px;box-shadow:3px 3px 6px #0000004d;bottom:100%;width:max-content;left:50%;transform:translate(-50%);margin-bottom:5px}[data-tooltip]:hover:before,[data-tooltip]:hover:after{opacity:1;-webkit-transition-delay:.15s;transition-delay:.15s}[data-tooltip=""]:before,[data-tooltip=""]:after{display:none!important}.vs-dark ::selection{background:#143a87}::selection{background:#bbd9fb}
3
+ `,document.head.appendChild(Bi);var Us=typeof document<"u"?document.currentScript:null;function cp(a){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const s in a)if(s!=="default"){const o=Object.getOwnPropertyDescriptor(a,s);Object.defineProperty(n,s,o.get?o:{enumerable:!0,get:()=>a[s]})}}return n.default=a,Object.freeze(n)}const pp=cp(qe);var Ui;(function(a){a.Comment="comment",a.Text="text",a.String="string",a.Paren="paren",a.StringInvalid="string.invalid",a.ConstantNumericInteger="constant.numeric.integer",a.ConstantNumericFloat="constant.numeric.float",a.ConstantLanguage="constant.language",a.ConstantLanguageBoolean="constant.other.boolean",a.ConstantOtherColor="constant.other.color",a.SupportVariable="support.variable",a.SupportType="support.type",a.Keyword="keyword",a.KeywordEquals="keyword.equals",a.KeywordOperator="keyword.operator",a.CustomType="entity.name.type",a.VariableOther="variable.other",a.Property="variable.other.property",a.SupportFunction="support.function",a.SupportMethod="support.method",a.ImportedFunction="meta.function-call",a.Function="entity.name.function",a.ImportName="entity.name.module",a.ImportAlias="entity.name.module.name",a.ExtensionMethod="entity.name.method",a.Annotation="comment.annotation",a.PunctuationOperator="punctuation.operator",a.Empty="empty",a.Source="source"})(Ui||(Ui={}));var it;(function(a){a.Type="type",a.Returns="Returns",a.Syntax="Syntax",a.Remarks="Remarks",a.Fields="Fields",a.Description="Description",a.Example="Example"})(it||(it={})),A.Actions=void 0,function(a){a.Save="save",a.Find="find",a.TriggerConsole="trigger.console",a.RunScript="runScript",a.Open="open"}(A.Actions||(A.Actions={}));var ss=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function dp(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var en={exports:{}},as={};/**
4
4
  * @license React
5
5
  * react-jsx-runtime.production.min.js
6
6
  *
@@ -8,7 +8,7 @@
8
8
  *
9
9
  * This source code is licensed under the MIT license found in the
10
10
  * LICENSE file in the root directory of this source tree.
11
- */var Ki;function mp(){if(Ki)return as;Ki=1;var a=R,n=Symbol.for("react.element"),s=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,l=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function u(f,x,g){var h,T={},M=null,O=null;g!==void 0&&(M=""+g),x.key!==void 0&&(M=""+x.key),x.ref!==void 0&&(O=x.ref);for(h in x)o.call(x,h)&&!c.hasOwnProperty(h)&&(T[h]=x[h]);if(f&&f.defaultProps)for(h in x=f.defaultProps,x)T[h]===void 0&&(T[h]=x[h]);return{$$typeof:n,type:f,key:M,ref:O,props:T,_owner:l.current}}return as.Fragment=s,as.jsx=u,as.jsxs=u,as}var ns={};/**
11
+ */var Ki;function mp(){if(Ki)return as;Ki=1;var a=F,n=Symbol.for("react.element"),s=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,l=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function u(f,x,g){var h,D={},P=null,R=null;g!==void 0&&(P=""+g),x.key!==void 0&&(P=""+x.key),x.ref!==void 0&&(R=x.ref);for(h in x)o.call(x,h)&&!c.hasOwnProperty(h)&&(D[h]=x[h]);if(f&&f.defaultProps)for(h in x=f.defaultProps,x)D[h]===void 0&&(D[h]=x[h]);return{$$typeof:n,type:f,key:P,ref:R,props:D,_owner:l.current}}return as.Fragment=s,as.jsx=u,as.jsxs=u,as}var ns={};/**
12
12
  * @license React
13
13
  * react-jsx-runtime.development.js
14
14
  *
@@ -16,17 +16,17 @@
16
16
  *
17
17
  * This source code is licensed under the MIT license found in the
18
18
  * LICENSE file in the root directory of this source tree.
19
- */var $i;function up(){return $i||($i=1,process.env.NODE_ENV!=="production"&&function(){var a=R,n=Symbol.for("react.element"),s=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),f=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),O=Symbol.for("react.offscreen"),B=Symbol.iterator,P="@@iterator";function X(_){if(_===null||typeof _!="object")return null;var N=B&&_[B]||_[P];return typeof N=="function"?N:null}var J=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function G(_){{for(var N=arguments.length,K=new Array(N>1?N-1:0),ee=1;ee<N;ee++)K[ee-1]=arguments[ee];F("error",_,K)}}function F(_,N,K){{var ee=J.ReactDebugCurrentFrame,ge=ee.getStackAddendum();ge!==""&&(N+="%s",K=K.concat([ge]));var he=K.map(function(ue){return String(ue)});he.unshift("Warning: "+N),Function.prototype.apply.call(console[_],console,he)}}var A=!1,k=!1,U=!1,j=!1,ae=!1,oe;oe=Symbol.for("react.module.reference");function ce(_){return!!(typeof _=="string"||typeof _=="function"||_===o||_===c||ae||_===l||_===g||_===h||j||_===O||A||k||U||typeof _=="object"&&_!==null&&(_.$$typeof===M||_.$$typeof===T||_.$$typeof===u||_.$$typeof===f||_.$$typeof===x||_.$$typeof===oe||_.getModuleId!==void 0))}function gt(_,N,K){var ee=_.displayName;if(ee)return ee;var ge=N.displayName||N.name||"";return ge!==""?K+"("+ge+")":K}function zt(_){return _.displayName||"Context"}function Re(_){if(_==null)return null;if(typeof _.tag=="number"&&G("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof _=="function")return _.displayName||_.name||null;if(typeof _=="string")return _;switch(_){case o:return"Fragment";case s:return"Portal";case c:return"Profiler";case l:return"StrictMode";case g:return"Suspense";case h:return"SuspenseList"}if(typeof _=="object")switch(_.$$typeof){case f:var N=_;return zt(N)+".Consumer";case u:var K=_;return zt(K._context)+".Provider";case x:return gt(_,_.render,"ForwardRef");case T:var ee=_.displayName||null;return ee!==null?ee:Re(_.type)||"Memo";case M:{var ge=_,he=ge._payload,ue=ge._init;try{return Re(ue(he))}catch{return null}}}return null}var Fe=Object.assign,V=0,be,Ee,Oe,bt,St,te,pe;function Ke(){}Ke.__reactDisabledLog=!0;function jt(){{if(V===0){be=console.log,Ee=console.info,Oe=console.warn,bt=console.error,St=console.group,te=console.groupCollapsed,pe=console.groupEnd;var _={configurable:!0,enumerable:!0,value:Ke,writable:!0};Object.defineProperties(console,{info:_,log:_,warn:_,error:_,group:_,groupCollapsed:_,groupEnd:_})}V++}}function Ye(){{if(V--,V===0){var _={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Fe({},_,{value:be}),info:Fe({},_,{value:Ee}),warn:Fe({},_,{value:Oe}),error:Fe({},_,{value:bt}),group:Fe({},_,{value:St}),groupCollapsed:Fe({},_,{value:te}),groupEnd:Fe({},_,{value:pe})})}V<0&&G("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var nr=J.ReactCurrentDispatcher,ys;function Ft(_,N,K){{if(ys===void 0)try{throw Error()}catch(ge){var ee=ge.stack.trim().match(/\n( *(at )?)/);ys=ee&&ee[1]||""}return`
20
- `+ys+_}}var Ht=!1,Pr;{var Mr=typeof WeakMap=="function"?WeakMap:Map;Pr=new Mr}function xr(_,N){if(!_||Ht)return"";{var K=Pr.get(_);if(K!==void 0)return K}var ee;Ht=!0;var ge=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var he;he=nr.current,nr.current=null,jt();try{if(N){var ue=function(){throw Error()};if(Object.defineProperty(ue.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ue,[])}catch(tt){ee=tt}Reflect.construct(_,[],ue)}else{try{ue.call()}catch(tt){ee=tt}_.call(ue.prototype)}}else{try{throw Error()}catch(tt){ee=tt}_()}}catch(tt){if(tt&&ee&&typeof tt.stack=="string"){for(var de=tt.stack.split(`
21
- `),je=ee.stack.split(`
22
- `),Ce=de.length-1,Ne=je.length-1;Ce>=1&&Ne>=0&&de[Ce]!==je[Ne];)Ne--;for(;Ce>=1&&Ne>=0;Ce--,Ne--)if(de[Ce]!==je[Ne]){if(Ce!==1||Ne!==1)do if(Ce--,Ne--,Ne<0||de[Ce]!==je[Ne]){var et=`
23
- `+de[Ce].replace(" at new "," at ");return _.displayName&&et.includes("<anonymous>")&&(et=et.replace("<anonymous>",_.displayName)),typeof _=="function"&&Pr.set(_,et),et}while(Ce>=1&&Ne>=0);break}}}finally{Ht=!1,nr.current=he,Ye(),Error.prepareStackTrace=ge}var Nt=_?_.displayName||_.name:"",ua=Nt?Ft(Nt):"";return typeof _=="function"&&Pr.set(_,ua),ua}function aa(_,N,K){return xr(_,!1)}function ct(_){var N=_.prototype;return!!(N&&N.isReactComponent)}function Bt(_,N,K){if(_==null)return"";if(typeof _=="function")return xr(_,ct(_));if(typeof _=="string")return Ft(_);switch(_){case g:return Ft("Suspense");case h:return Ft("SuspenseList")}if(typeof _=="object")switch(_.$$typeof){case x:return aa(_.render);case T:return Bt(_.type,N,K);case M:{var ee=_,ge=ee._payload,he=ee._init;try{return Bt(he(ge),N,K)}catch{}}}return""}var Or=Object.prototype.hasOwnProperty,xt={},_s=J.ReactDebugCurrentFrame;function Rr(_){if(_){var N=_._owner,K=Bt(_.type,_._source,N?N.type:null);_s.setExtraStackFrame(K)}else _s.setExtraStackFrame(null)}function hr(_,N,K,ee,ge){{var he=Function.call.bind(Or);for(var ue in _)if(he(_,ue)){var de=void 0;try{if(typeof _[ue]!="function"){var je=Error((ee||"React class")+": "+K+" type `"+ue+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof _[ue]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw je.name="Invariant Violation",je}de=_[ue](N,ue,ee,K,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ce){de=Ce}de&&!(de instanceof Error)&&(Rr(ge),G("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",ee||"React class",K,ue,typeof de),Rr(null)),de instanceof Error&&!(de.message in xt)&&(xt[de.message]=!0,Rr(ge),G("Failed %s type: %s",K,de.message),Rr(null))}}}var pt=Array.isArray;function Wt(_){return pt(_)}function Fr(_){{var N=typeof Symbol=="function"&&Symbol.toStringTag,K=N&&_[Symbol.toStringTag]||_.constructor.name||"Object";return K}}function Tn(_){try{return ir(_),!1}catch{return!0}}function ir(_){return""+_}function na(_){if(Tn(_))return G("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Fr(_)),ir(_)}var Et=J.ReactCurrentOwner,or={key:!0,ref:!0,__self:!0,__source:!0},Br,Ur,wr;wr={};function fs(_){if(Or.call(_,"ref")){var N=Object.getOwnPropertyDescriptor(_,"ref").get;if(N&&N.isReactWarning)return!1}return _.ref!==void 0}function gs(_){if(Or.call(_,"key")){var N=Object.getOwnPropertyDescriptor(_,"key").get;if(N&&N.isReactWarning)return!1}return _.key!==void 0}function bs(_,N){if(typeof _.ref=="string"&&Et.current&&N&&Et.current.stateNode!==N){var K=Re(Et.current.type);wr[K]||(G('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',Re(Et.current.type),_.ref),wr[K]=!0)}}function xs(_,N){{var K=function(){Br||(Br=!0,G("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",N))};K.isReactWarning=!0,Object.defineProperty(_,"key",{get:K,configurable:!0})}}function hs(_,N){{var K=function(){Ur||(Ur=!0,G("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",N))};K.isReactWarning=!0,Object.defineProperty(_,"ref",{get:K,configurable:!0})}}var ws=function(_,N,K,ee,ge,he,ue){var de={$$typeof:n,type:_,key:N,ref:K,props:ue,_owner:he};return de._store={},Object.defineProperty(de._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(de,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ee}),Object.defineProperty(de,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ge}),Object.freeze&&(Object.freeze(de.props),Object.freeze(de)),de};function Dn(_,N,K,ee,ge){{var he,ue={},de=null,je=null;K!==void 0&&(na(K),de=""+K),gs(N)&&(na(N.key),de=""+N.key),fs(N)&&(je=N.ref,bs(N,ge));for(he in N)Or.call(N,he)&&!or.hasOwnProperty(he)&&(ue[he]=N[he]);if(_&&_.defaultProps){var Ce=_.defaultProps;for(he in Ce)ue[he]===void 0&&(ue[he]=Ce[he])}if(de||je){var Ne=typeof _=="function"?_.displayName||_.name||"Unknown":_;de&&xs(ue,Ne),je&&hs(ue,Ne)}return ws(_,de,je,ge,ee,Et.current,ue)}}var vs=J.ReactCurrentOwner,ia=J.ReactDebugCurrentFrame;function Gt(_){if(_){var N=_._owner,K=Bt(_.type,_._source,N?N.type:null);ia.setExtraStackFrame(K)}else ia.setExtraStackFrame(null)}var Kr;Kr=!1;function Ts(_){return typeof _=="object"&&_!==null&&_.$$typeof===n}function oa(){{if(vs.current){var _=Re(vs.current.type);if(_)return`
19
+ */var $i;function up(){return $i||($i=1,process.env.NODE_ENV!=="production"&&function(){var a=F,n=Symbol.for("react.element"),s=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),f=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),R=Symbol.for("react.offscreen"),U=Symbol.iterator,L="@@iterator";function X(_){if(_===null||typeof _!="object")return null;var N=U&&_[U]||_[L];return typeof N=="function"?N:null}var ee=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function W(_){{for(var N=arguments.length,$=new Array(N>1?N-1:0),J=1;J<N;J++)$[J-1]=arguments[J];B("error",_,$)}}function B(_,N,$){{var J=ee.ReactDebugCurrentFrame,fe=J.getStackAddendum();fe!==""&&(N+="%s",$=$.concat([fe]));var he=$.map(function(me){return String(me)});he.unshift("Warning: "+N),Function.prototype.apply.call(console[_],console,he)}}var O=!1,T=!1,M=!1,K=!1,ne=!1,ae;ae=Symbol.for("react.module.reference");function ie(_){return!!(typeof _=="string"||typeof _=="function"||_===o||_===c||ne||_===l||_===g||_===h||K||_===R||O||T||M||typeof _=="object"&&_!==null&&(_.$$typeof===P||_.$$typeof===D||_.$$typeof===u||_.$$typeof===f||_.$$typeof===x||_.$$typeof===ae||_.getModuleId!==void 0))}function gt(_,N,$){var J=_.displayName;if(J)return J;var fe=N.displayName||N.name||"";return fe!==""?$+"("+fe+")":$}function zt(_){return _.displayName||"Context"}function Ke(_){if(_==null)return null;if(typeof _.tag=="number"&&W("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof _=="function")return _.displayName||_.name||null;if(typeof _=="string")return _;switch(_){case o:return"Fragment";case s:return"Portal";case c:return"Profiler";case l:return"StrictMode";case g:return"Suspense";case h:return"SuspenseList"}if(typeof _=="object")switch(_.$$typeof){case f:var N=_;return zt(N)+".Consumer";case u:var $=_;return zt($._context)+".Provider";case x:return gt(_,_.render,"ForwardRef");case D:var J=_.displayName||null;return J!==null?J:Ke(_.type)||"Memo";case P:{var fe=_,he=fe._payload,me=fe._init;try{return Ke(me(he))}catch{return null}}}return null}var Fe=Object.assign,V=0,ge,Ne,Me,bt,St,te,be;function De(){}De.__reactDisabledLog=!0;function jt(){{if(V===0){ge=console.log,Ne=console.info,Me=console.warn,bt=console.error,St=console.group,te=console.groupCollapsed,be=console.groupEnd;var _={configurable:!0,enumerable:!0,value:De,writable:!0};Object.defineProperties(console,{info:_,log:_,warn:_,error:_,group:_,groupCollapsed:_,groupEnd:_})}V++}}function Ye(){{if(V--,V===0){var _={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Fe({},_,{value:ge}),info:Fe({},_,{value:Ne}),warn:Fe({},_,{value:Me}),error:Fe({},_,{value:bt}),group:Fe({},_,{value:St}),groupCollapsed:Fe({},_,{value:te}),groupEnd:Fe({},_,{value:be})})}V<0&&W("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var nr=ee.ReactCurrentDispatcher,ys;function Ft(_,N,$){{if(ys===void 0)try{throw Error()}catch(fe){var J=fe.stack.trim().match(/\n( *(at )?)/);ys=J&&J[1]||""}return`
20
+ `+ys+_}}var Ht=!1,Pr;{var Mr=typeof WeakMap=="function"?WeakMap:Map;Pr=new Mr}function xr(_,N){if(!_||Ht)return"";{var $=Pr.get(_);if($!==void 0)return $}var J;Ht=!0;var fe=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var he;he=nr.current,nr.current=null,jt();try{if(N){var me=function(){throw Error()};if(Object.defineProperty(me.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(me,[])}catch(tt){J=tt}Reflect.construct(_,[],me)}else{try{me.call()}catch(tt){J=tt}_.call(me.prototype)}}else{try{throw Error()}catch(tt){J=tt}_()}}catch(tt){if(tt&&J&&typeof tt.stack=="string"){for(var pe=tt.stack.split(`
21
+ `),je=J.stack.split(`
22
+ `),ze=pe.length-1,Le=je.length-1;ze>=1&&Le>=0&&pe[ze]!==je[Le];)Le--;for(;ze>=1&&Le>=0;ze--,Le--)if(pe[ze]!==je[Le]){if(ze!==1||Le!==1)do if(ze--,Le--,Le<0||pe[ze]!==je[Le]){var et=`
23
+ `+pe[ze].replace(" at new "," at ");return _.displayName&&et.includes("<anonymous>")&&(et=et.replace("<anonymous>",_.displayName)),typeof _=="function"&&Pr.set(_,et),et}while(ze>=1&&Le>=0);break}}}finally{Ht=!1,nr.current=he,Ye(),Error.prepareStackTrace=fe}var Nt=_?_.displayName||_.name:"",ua=Nt?Ft(Nt):"";return typeof _=="function"&&Pr.set(_,ua),ua}function aa(_,N,$){return xr(_,!1)}function ct(_){var N=_.prototype;return!!(N&&N.isReactComponent)}function Bt(_,N,$){if(_==null)return"";if(typeof _=="function")return xr(_,ct(_));if(typeof _=="string")return Ft(_);switch(_){case g:return Ft("Suspense");case h:return Ft("SuspenseList")}if(typeof _=="object")switch(_.$$typeof){case x:return aa(_.render);case D:return Bt(_.type,N,$);case P:{var J=_,fe=J._payload,he=J._init;try{return Bt(he(fe),N,$)}catch{}}}return""}var Or=Object.prototype.hasOwnProperty,xt={},_s=ee.ReactDebugCurrentFrame;function Rr(_){if(_){var N=_._owner,$=Bt(_.type,_._source,N?N.type:null);_s.setExtraStackFrame($)}else _s.setExtraStackFrame(null)}function hr(_,N,$,J,fe){{var he=Function.call.bind(Or);for(var me in _)if(he(_,me)){var pe=void 0;try{if(typeof _[me]!="function"){var je=Error((J||"React class")+": "+$+" type `"+me+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof _[me]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw je.name="Invariant Violation",je}pe=_[me](N,me,J,$,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ze){pe=ze}pe&&!(pe instanceof Error)&&(Rr(fe),W("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",J||"React class",$,me,typeof pe),Rr(null)),pe instanceof Error&&!(pe.message in xt)&&(xt[pe.message]=!0,Rr(fe),W("Failed %s type: %s",$,pe.message),Rr(null))}}}var pt=Array.isArray;function Wt(_){return pt(_)}function Fr(_){{var N=typeof Symbol=="function"&&Symbol.toStringTag,$=N&&_[Symbol.toStringTag]||_.constructor.name||"Object";return $}}function Tn(_){try{return ir(_),!1}catch{return!0}}function ir(_){return""+_}function na(_){if(Tn(_))return W("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Fr(_)),ir(_)}var Et=ee.ReactCurrentOwner,or={key:!0,ref:!0,__self:!0,__source:!0},Br,Ur,wr;wr={};function fs(_){if(Or.call(_,"ref")){var N=Object.getOwnPropertyDescriptor(_,"ref").get;if(N&&N.isReactWarning)return!1}return _.ref!==void 0}function gs(_){if(Or.call(_,"key")){var N=Object.getOwnPropertyDescriptor(_,"key").get;if(N&&N.isReactWarning)return!1}return _.key!==void 0}function bs(_,N){if(typeof _.ref=="string"&&Et.current&&N&&Et.current.stateNode!==N){var $=Ke(Et.current.type);wr[$]||(W('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',Ke(Et.current.type),_.ref),wr[$]=!0)}}function xs(_,N){{var $=function(){Br||(Br=!0,W("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",N))};$.isReactWarning=!0,Object.defineProperty(_,"key",{get:$,configurable:!0})}}function hs(_,N){{var $=function(){Ur||(Ur=!0,W("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",N))};$.isReactWarning=!0,Object.defineProperty(_,"ref",{get:$,configurable:!0})}}var ws=function(_,N,$,J,fe,he,me){var pe={$$typeof:n,type:_,key:N,ref:$,props:me,_owner:he};return pe._store={},Object.defineProperty(pe._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(pe,"_self",{configurable:!1,enumerable:!1,writable:!1,value:J}),Object.defineProperty(pe,"_source",{configurable:!1,enumerable:!1,writable:!1,value:fe}),Object.freeze&&(Object.freeze(pe.props),Object.freeze(pe)),pe};function Dn(_,N,$,J,fe){{var he,me={},pe=null,je=null;$!==void 0&&(na($),pe=""+$),gs(N)&&(na(N.key),pe=""+N.key),fs(N)&&(je=N.ref,bs(N,fe));for(he in N)Or.call(N,he)&&!or.hasOwnProperty(he)&&(me[he]=N[he]);if(_&&_.defaultProps){var ze=_.defaultProps;for(he in ze)me[he]===void 0&&(me[he]=ze[he])}if(pe||je){var Le=typeof _=="function"?_.displayName||_.name||"Unknown":_;pe&&xs(me,Le),je&&hs(me,Le)}return ws(_,pe,je,fe,J,Et.current,me)}}var vs=ee.ReactCurrentOwner,ia=ee.ReactDebugCurrentFrame;function Gt(_){if(_){var N=_._owner,$=Bt(_.type,_._source,N?N.type:null);ia.setExtraStackFrame($)}else ia.setExtraStackFrame(null)}var Kr;Kr=!1;function Ts(_){return typeof _=="object"&&_!==null&&_.$$typeof===n}function oa(){{if(vs.current){var _=Ke(vs.current.type);if(_)return`
24
24
 
25
- Check the render method of \``+_+"`."}return""}}function kn(_){{if(_!==void 0){var N=_.fileName.replace(/^.*[\\\/]/,""),K=_.lineNumber;return`
25
+ Check the render method of \``+_+"`."}return""}}function kn(_){{if(_!==void 0){var N=_.fileName.replace(/^.*[\\\/]/,""),$=_.lineNumber;return`
26
26
 
27
- Check your code at `+N+":"+K+"."}return""}}var la={};function ca(_){{var N=oa();if(!N){var K=typeof _=="string"?_:_.displayName||_.name;K&&(N=`
27
+ Check your code at `+N+":"+$+"."}return""}}var la={};function ca(_){{var N=oa();if(!N){var $=typeof _=="string"?_:_.displayName||_.name;$&&(N=`
28
28
 
29
- Check the top-level render call using <`+K+">.")}return N}}function pa(_,N){{if(!_._store||_._store.validated||_.key!=null)return;_._store.validated=!0;var K=ca(N);if(la[K])return;la[K]=!0;var ee="";_&&_._owner&&_._owner!==vs.current&&(ee=" It was passed a child from "+Re(_._owner.type)+"."),Gt(_),G('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',K,ee),Gt(null)}}function da(_,N){{if(typeof _!="object")return;if(Wt(_))for(var K=0;K<_.length;K++){var ee=_[K];Ts(ee)&&pa(ee,N)}else if(Ts(_))_._store&&(_._store.validated=!0);else if(_){var ge=X(_);if(typeof ge=="function"&&ge!==_.entries)for(var he=ge.call(_),ue;!(ue=he.next()).done;)Ts(ue.value)&&pa(ue.value,N)}}}function In(_){{var N=_.type;if(N==null||typeof N=="string")return;var K;if(typeof N=="function")K=N.propTypes;else if(typeof N=="object"&&(N.$$typeof===x||N.$$typeof===T))K=N.propTypes;else return;if(K){var ee=Re(N);hr(K,_.props,"prop",ee,_)}else if(N.PropTypes!==void 0&&!Kr){Kr=!0;var ge=Re(N);G("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ge||"Unknown")}typeof N.getDefaultProps=="function"&&!N.getDefaultProps.isReactClassApproved&&G("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ds(_){{for(var N=Object.keys(_.props),K=0;K<N.length;K++){var ee=N[K];if(ee!=="children"&&ee!=="key"){Gt(_),G("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ee),Gt(null);break}}_.ref!==null&&(Gt(_),G("Invalid attribute `ref` supplied to `React.Fragment`."),Gt(null))}}function ma(_,N,K,ee,ge,he){{var ue=ce(_);if(!ue){var de="";(_===void 0||typeof _=="object"&&_!==null&&Object.keys(_).length===0)&&(de+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var je=kn(ge);je?de+=je:de+=oa();var Ce;_===null?Ce="null":Wt(_)?Ce="array":_!==void 0&&_.$$typeof===n?(Ce="<"+(Re(_.type)||"Unknown")+" />",de=" Did you accidentally export a JSX literal instead of a component?"):Ce=typeof _,G("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ce,de)}var Ne=Dn(_,N,K,ge,he);if(Ne==null)return Ne;if(ue){var et=N.children;if(et!==void 0)if(ee)if(Wt(et)){for(var Nt=0;Nt<et.length;Nt++)da(et[Nt],_);Object.freeze&&Object.freeze(et)}else G("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else da(et,_)}return _===o?Ds(Ne):In(Ne),Ne}}function ks(_,N,K){return ma(_,N,K,!0)}function An(_,N,K){return ma(_,N,K,!1)}var qn=An,Cn=ks;ns.Fragment=o,ns.jsx=qn,ns.jsxs=Cn}()),ns}process.env.NODE_ENV==="production"?en.exports=mp():en.exports=up();var L=en.exports;function yp(a,n,s){return n in a?Object.defineProperty(a,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):a[n]=s,a}function ji(a,n){var s=Object.keys(a);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(a);n&&(o=o.filter(function(l){return Object.getOwnPropertyDescriptor(a,l).enumerable})),s.push.apply(s,o)}return s}function Hi(a){for(var n=1;n<arguments.length;n++){var s=arguments[n]!=null?arguments[n]:{};n%2?ji(Object(s),!0).forEach(function(o){yp(a,o,s[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(s)):ji(Object(s)).forEach(function(o){Object.defineProperty(a,o,Object.getOwnPropertyDescriptor(s,o))})}return a}function _p(a,n){if(a==null)return{};var s={},o=Object.keys(a),l,c;for(c=0;c<o.length;c++)l=o[c],!(n.indexOf(l)>=0)&&(s[l]=a[l]);return s}function fp(a,n){if(a==null)return{};var s=_p(a,n),o,l;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(a);for(l=0;l<c.length;l++)o=c[l],!(n.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(a,o)&&(s[o]=a[o])}return s}function gp(a,n){return bp(a)||xp(a,n)||hp(a,n)||wp()}function bp(a){if(Array.isArray(a))return a}function xp(a,n){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(a)))){var s=[],o=!0,l=!1,c=void 0;try{for(var u=a[Symbol.iterator](),f;!(o=(f=u.next()).done)&&(s.push(f.value),!(n&&s.length===n));o=!0);}catch(x){l=!0,c=x}finally{try{!o&&u.return!=null&&u.return()}finally{if(l)throw c}}return s}}function hp(a,n){if(a){if(typeof a=="string")return Wi(a,n);var s=Object.prototype.toString.call(a).slice(8,-1);if(s==="Object"&&a.constructor&&(s=a.constructor.name),s==="Map"||s==="Set")return Array.from(a);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return Wi(a,n)}}function Wi(a,n){(n==null||n>a.length)&&(n=a.length);for(var s=0,o=new Array(n);s<n;s++)o[s]=a[s];return o}function wp(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
29
+ Check the top-level render call using <`+$+">.")}return N}}function pa(_,N){{if(!_._store||_._store.validated||_.key!=null)return;_._store.validated=!0;var $=ca(N);if(la[$])return;la[$]=!0;var J="";_&&_._owner&&_._owner!==vs.current&&(J=" It was passed a child from "+Ke(_._owner.type)+"."),Gt(_),W('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',$,J),Gt(null)}}function da(_,N){{if(typeof _!="object")return;if(Wt(_))for(var $=0;$<_.length;$++){var J=_[$];Ts(J)&&pa(J,N)}else if(Ts(_))_._store&&(_._store.validated=!0);else if(_){var fe=X(_);if(typeof fe=="function"&&fe!==_.entries)for(var he=fe.call(_),me;!(me=he.next()).done;)Ts(me.value)&&pa(me.value,N)}}}function In(_){{var N=_.type;if(N==null||typeof N=="string")return;var $;if(typeof N=="function")$=N.propTypes;else if(typeof N=="object"&&(N.$$typeof===x||N.$$typeof===D))$=N.propTypes;else return;if($){var J=Ke(N);hr($,_.props,"prop",J,_)}else if(N.PropTypes!==void 0&&!Kr){Kr=!0;var fe=Ke(N);W("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",fe||"Unknown")}typeof N.getDefaultProps=="function"&&!N.getDefaultProps.isReactClassApproved&&W("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ds(_){{for(var N=Object.keys(_.props),$=0;$<N.length;$++){var J=N[$];if(J!=="children"&&J!=="key"){Gt(_),W("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",J),Gt(null);break}}_.ref!==null&&(Gt(_),W("Invalid attribute `ref` supplied to `React.Fragment`."),Gt(null))}}function ma(_,N,$,J,fe,he){{var me=ie(_);if(!me){var pe="";(_===void 0||typeof _=="object"&&_!==null&&Object.keys(_).length===0)&&(pe+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var je=kn(fe);je?pe+=je:pe+=oa();var ze;_===null?ze="null":Wt(_)?ze="array":_!==void 0&&_.$$typeof===n?(ze="<"+(Ke(_.type)||"Unknown")+" />",pe=" Did you accidentally export a JSX literal instead of a component?"):ze=typeof _,W("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ze,pe)}var Le=Dn(_,N,$,fe,he);if(Le==null)return Le;if(me){var et=N.children;if(et!==void 0)if(J)if(Wt(et)){for(var Nt=0;Nt<et.length;Nt++)da(et[Nt],_);Object.freeze&&Object.freeze(et)}else W("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else da(et,_)}return _===o?Ds(Le):In(Le),Le}}function ks(_,N,$){return ma(_,N,$,!0)}function An(_,N,$){return ma(_,N,$,!1)}var qn=An,Cn=ks;ns.Fragment=o,ns.jsx=qn,ns.jsxs=Cn}()),ns}process.env.NODE_ENV==="production"?en.exports=mp():en.exports=up();var E=en.exports;function yp(a,n,s){return n in a?Object.defineProperty(a,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):a[n]=s,a}function ji(a,n){var s=Object.keys(a);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(a);n&&(o=o.filter(function(l){return Object.getOwnPropertyDescriptor(a,l).enumerable})),s.push.apply(s,o)}return s}function Hi(a){for(var n=1;n<arguments.length;n++){var s=arguments[n]!=null?arguments[n]:{};n%2?ji(Object(s),!0).forEach(function(o){yp(a,o,s[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(s)):ji(Object(s)).forEach(function(o){Object.defineProperty(a,o,Object.getOwnPropertyDescriptor(s,o))})}return a}function _p(a,n){if(a==null)return{};var s={},o=Object.keys(a),l,c;for(c=0;c<o.length;c++)l=o[c],!(n.indexOf(l)>=0)&&(s[l]=a[l]);return s}function fp(a,n){if(a==null)return{};var s=_p(a,n),o,l;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(a);for(l=0;l<c.length;l++)o=c[l],!(n.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(a,o)&&(s[o]=a[o])}return s}function gp(a,n){return bp(a)||xp(a,n)||hp(a,n)||wp()}function bp(a){if(Array.isArray(a))return a}function xp(a,n){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(a)))){var s=[],o=!0,l=!1,c=void 0;try{for(var u=a[Symbol.iterator](),f;!(o=(f=u.next()).done)&&(s.push(f.value),!(n&&s.length===n));o=!0);}catch(x){l=!0,c=x}finally{try{!o&&u.return!=null&&u.return()}finally{if(l)throw c}}return s}}function hp(a,n){if(a){if(typeof a=="string")return Wi(a,n);var s=Object.prototype.toString.call(a).slice(8,-1);if(s==="Object"&&a.constructor&&(s=a.constructor.name),s==="Map"||s==="Set")return Array.from(a);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return Wi(a,n)}}function Wi(a,n){(n==null||n>a.length)&&(n=a.length);for(var s=0,o=new Array(n);s<n;s++)o[s]=a[s];return o}function wp(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
30
30
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vp(a,n,s){return n in a?Object.defineProperty(a,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):a[n]=s,a}function Gi(a,n){var s=Object.keys(a);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(a);n&&(o=o.filter(function(l){return Object.getOwnPropertyDescriptor(a,l).enumerable})),s.push.apply(s,o)}return s}function Xi(a){for(var n=1;n<arguments.length;n++){var s=arguments[n]!=null?arguments[n]:{};n%2?Gi(Object(s),!0).forEach(function(o){vp(a,o,s[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(s)):Gi(Object(s)).forEach(function(o){Object.defineProperty(a,o,Object.getOwnPropertyDescriptor(s,o))})}return a}function Tp(){for(var a=arguments.length,n=new Array(a),s=0;s<a;s++)n[s]=arguments[s];return function(o){return n.reduceRight(function(l,c){return c(l)},o)}}function is(a){return function n(){for(var s=this,o=arguments.length,l=new Array(o),c=0;c<o;c++)l[c]=arguments[c];return l.length>=a.length?a.apply(this,l):function(){for(var u=arguments.length,f=new Array(u),x=0;x<u;x++)f[x]=arguments[x];return n.apply(s,[].concat(l,f))}}}function Ks(a){return{}.toString.call(a).includes("Object")}function Dp(a){return!Object.keys(a).length}function os(a){return typeof a=="function"}function kp(a,n){return Object.prototype.hasOwnProperty.call(a,n)}function Ip(a,n){return Ks(n)||sr("changeType"),Object.keys(n).some(function(s){return!kp(a,s)})&&sr("changeField"),n}function Ap(a){os(a)||sr("selectorType")}function qp(a){os(a)||Ks(a)||sr("handlerType"),Ks(a)&&Object.values(a).some(function(n){return!os(n)})&&sr("handlersType")}function Cp(a){a||sr("initialIsRequired"),Ks(a)||sr("initialType"),Dp(a)&&sr("initialContent")}function zp(a,n){throw new Error(a[n]||a.default)}var Sp={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},sr=is(zp)(Sp),$s={changes:Ip,selector:Ap,handler:qp,initial:Cp};function Ep(a){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};$s.initial(a),$s.handler(n);var s={current:a},o=is(Pp)(s,n),l=is(Lp)(s),c=is($s.changes)(a),u=is(Np)(s);function f(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(h){return h};return $s.selector(g),g(s.current)}function x(g){Tp(o,l,c,u)(g)}return[f,x]}function Np(a,n){return os(n)?n(a.current):n}function Lp(a,n){return a.current=Xi(Xi({},a.current),n),n}function Pp(a,n,s){return os(n)?n(a.current):Object.keys(s).forEach(function(o){var l;return(l=n[o])===null||l===void 0?void 0:l.call(n,a.current[o])}),s}var Mp={create:Ep},Op={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs"}};function Rp(a){return function n(){for(var s=this,o=arguments.length,l=new Array(o),c=0;c<o;c++)l[c]=arguments[c];return l.length>=a.length?a.apply(this,l):function(){for(var u=arguments.length,f=new Array(u),x=0;x<u;x++)f[x]=arguments[x];return n.apply(s,[].concat(l,f))}}}function Fp(a){return{}.toString.call(a).includes("Object")}function Bp(a){return a||Yi("configIsRequired"),Fp(a)||Yi("configType"),a.urls?(Up(),{paths:{vs:a.urls.monacoBase}}):a}function Up(){console.warn(Vi.deprecation)}function Kp(a,n){throw new Error(a[n]||a.default)}var Vi={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
31
31
  You are using deprecated way of configuration.
32
32
 
@@ -36,7 +36,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
36
36
  monaco.config({ paths: { vs: '...' } })
37
37
 
38
38
  For more please check the link https://github.com/suren-atoyan/monaco-loader#config
39
- `},Yi=Rp(Kp)(Vi),$p={config:Bp},jp=function(){for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return function(l){return s.reduceRight(function(c,u){return u(c)},l)}};function Qi(a,n){return Object.keys(n).forEach(function(s){n[s]instanceof Object&&a[s]&&Object.assign(n[s],Qi(a[s],n[s]))}),Hi(Hi({},a),n)}var Hp={type:"cancelation",msg:"operation is manually canceled"};function tn(a){var n=!1,s=new Promise(function(o,l){a.then(function(c){return n?l(Hp):o(c)}),a.catch(l)});return s.cancel=function(){return n=!0},s}var Wp=Mp.create({config:Op,isInitialized:!1,resolve:null,reject:null,monaco:null}),Zi=gp(Wp,2),ls=Zi[0],js=Zi[1];function Gp(a){var n=$p.config(a),s=n.monaco,o=fp(n,["monaco"]);js(function(l){return{config:Qi(l.config,o),monaco:s}})}function Xp(){var a=ls(function(n){var s=n.monaco,o=n.isInitialized,l=n.resolve;return{monaco:s,isInitialized:o,resolve:l}});if(!a.isInitialized){if(js({isInitialized:!0}),a.monaco)return a.resolve(a.monaco),tn(rn);if(window.monaco&&window.monaco.editor)return Ji(window.monaco),a.resolve(window.monaco),tn(rn);jp(Vp,Qp)(Zp)}return tn(rn)}function Vp(a){return document.body.appendChild(a)}function Yp(a){var n=document.createElement("script");return a&&(n.src=a),n}function Qp(a){var n=ls(function(o){var l=o.config,c=o.reject;return{config:l,reject:c}}),s=Yp("".concat(n.config.paths.vs,"/loader.js"));return s.onload=function(){return a()},s.onerror=n.reject,s}function Zp(){var a=ls(function(s){var o=s.config,l=s.resolve,c=s.reject;return{config:o,resolve:l,reject:c}}),n=window.require;n.config(a.config),n(["vs/editor/editor.main"],function(s){Ji(s),a.resolve(s)},function(s){a.reject(s)})}function Ji(a){ls().monaco||js({monaco:a})}function Jp(){return ls(function(a){var n=a.monaco;return n})}var rn=new Promise(function(a,n){return js({resolve:a,reject:n})}),sn={config:Gp,init:Xp,__getMonacoInstance:Jp},ed={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},an=ed,td={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},rd=td;function sd({children:a}){return R.createElement("div",{style:rd.container},a)}var ad=sd,nd=ad;function id({width:a,height:n,isEditorReady:s,loading:o,_ref:l,className:c,wrapperProps:u}){return R.createElement("section",{style:{...an.wrapper,width:a,height:n},...u},!s&&R.createElement(nd,null,o),R.createElement("div",{ref:l,style:{...an.fullWidth,...!s&&an.hide},className:c}))}var od=id,eo=R.memo(od);function ld(a){R.useEffect(a,[])}var to=ld;function cd(a,n,s=!0){let o=R.useRef(!0);R.useEffect(o.current||!s?()=>{o.current=!1}:a,n)}var ot=cd;function cs(){}function Sr(a,n,s,o){return pd(a,o)||dd(a,n,s,o)}function pd(a,n){return a.editor.getModel(ro(a,n))}function dd(a,n,s,o){return a.editor.createModel(n,s,o?ro(a,o):void 0)}function ro(a,n){return a.Uri.parse(n)}function md({original:a,modified:n,language:s,originalLanguage:o,modifiedLanguage:l,originalModelPath:c,modifiedModelPath:u,keepCurrentOriginalModel:f=!1,keepCurrentModifiedModel:x=!1,theme:g="light",loading:h="Loading...",options:T={},height:M="100%",width:O="100%",className:B,wrapperProps:P={},beforeMount:X=cs,onMount:J=cs}){let[G,F]=R.useState(!1),[A,k]=R.useState(!0),U=R.useRef(null),j=R.useRef(null),ae=R.useRef(null),oe=R.useRef(J),ce=R.useRef(X),gt=R.useRef(!1);to(()=>{let V=sn.init();return V.then(be=>(j.current=be)&&k(!1)).catch(be=>(be==null?void 0:be.type)!=="cancelation"&&console.error("Monaco initialization: error:",be)),()=>U.current?Fe():V.cancel()}),ot(()=>{if(U.current&&j.current){let V=U.current.getOriginalEditor(),be=Sr(j.current,a||"",o||s||"text",c||"");be!==V.getModel()&&V.setModel(be)}},[c],G),ot(()=>{if(U.current&&j.current){let V=U.current.getModifiedEditor(),be=Sr(j.current,n||"",l||s||"text",u||"");be!==V.getModel()&&V.setModel(be)}},[u],G),ot(()=>{let V=U.current.getModifiedEditor();V.getOption(j.current.editor.EditorOption.readOnly)?V.setValue(n||""):n!==V.getValue()&&(V.executeEdits("",[{range:V.getModel().getFullModelRange(),text:n||"",forceMoveMarkers:!0}]),V.pushUndoStop())},[n],G),ot(()=>{var V,be;(be=(V=U.current)==null?void 0:V.getModel())==null||be.original.setValue(a||"")},[a],G),ot(()=>{let{original:V,modified:be}=U.current.getModel();j.current.editor.setModelLanguage(V,o||s||"text"),j.current.editor.setModelLanguage(be,l||s||"text")},[s,o,l],G),ot(()=>{var V;(V=j.current)==null||V.editor.setTheme(g)},[g],G),ot(()=>{var V;(V=U.current)==null||V.updateOptions(T)},[T],G);let zt=R.useCallback(()=>{var Ee;if(!j.current)return;ce.current(j.current);let V=Sr(j.current,a||"",o||s||"text",c||""),be=Sr(j.current,n||"",l||s||"text",u||"");(Ee=U.current)==null||Ee.setModel({original:V,modified:be})},[s,n,l,a,o,c,u]),Re=R.useCallback(()=>{var V;!gt.current&&ae.current&&(U.current=j.current.editor.createDiffEditor(ae.current,{automaticLayout:!0,...T}),zt(),(V=j.current)==null||V.editor.setTheme(g),F(!0),gt.current=!0)},[T,g,zt]);R.useEffect(()=>{G&&oe.current(U.current,j.current)},[G]),R.useEffect(()=>{!A&&!G&&Re()},[A,G,Re]);function Fe(){var be,Ee,Oe,bt;let V=(be=U.current)==null?void 0:be.getModel();f||((Ee=V==null?void 0:V.original)==null||Ee.dispose()),x||((Oe=V==null?void 0:V.modified)==null||Oe.dispose()),(bt=U.current)==null||bt.dispose()}return R.createElement(eo,{width:O,height:M,isEditorReady:G,loading:h,_ref:ae,className:B,wrapperProps:P})}var ud=md,yd=R.memo(ud);function _d(a){let n=R.useRef();return R.useEffect(()=>{n.current=a},[a]),n.current}var fd=_d,Hs=new Map;function gd({defaultValue:a,defaultLanguage:n,defaultPath:s,value:o,language:l,path:c,theme:u="light",line:f,loading:x="Loading...",options:g={},overrideServices:h={},saveViewState:T=!0,keepCurrentModel:M=!1,width:O="100%",height:B="100%",className:P,wrapperProps:X={},beforeMount:J=cs,onMount:G=cs,onChange:F,onValidate:A=cs}){let[k,U]=R.useState(!1),[j,ae]=R.useState(!0),oe=R.useRef(null),ce=R.useRef(null),gt=R.useRef(null),zt=R.useRef(G),Re=R.useRef(J),Fe=R.useRef(),V=R.useRef(o),be=fd(c),Ee=R.useRef(!1),Oe=R.useRef(!1);to(()=>{let te=sn.init();return te.then(pe=>(oe.current=pe)&&ae(!1)).catch(pe=>(pe==null?void 0:pe.type)!=="cancelation"&&console.error("Monaco initialization: error:",pe)),()=>ce.current?St():te.cancel()}),ot(()=>{var pe,Ke,jt,Ye;let te=Sr(oe.current,a||o||"",n||l||"",c||s||"");te!==((pe=ce.current)==null?void 0:pe.getModel())&&(T&&Hs.set(be,(Ke=ce.current)==null?void 0:Ke.saveViewState()),(jt=ce.current)==null||jt.setModel(te),T&&((Ye=ce.current)==null||Ye.restoreViewState(Hs.get(c))))},[c],k),ot(()=>{var te;(te=ce.current)==null||te.updateOptions(g)},[g],k),ot(()=>{!ce.current||o===void 0||(ce.current.getOption(oe.current.editor.EditorOption.readOnly)?ce.current.setValue(o):o!==ce.current.getValue()&&(Oe.current=!0,ce.current.executeEdits("",[{range:ce.current.getModel().getFullModelRange(),text:o,forceMoveMarkers:!0}]),ce.current.pushUndoStop(),Oe.current=!1))},[o],k),ot(()=>{var pe,Ke;let te=(pe=ce.current)==null?void 0:pe.getModel();te&&l&&((Ke=oe.current)==null||Ke.editor.setModelLanguage(te,l))},[l],k),ot(()=>{var te;f!==void 0&&((te=ce.current)==null||te.revealLine(f))},[f],k),ot(()=>{var te;(te=oe.current)==null||te.editor.setTheme(u)},[u],k);let bt=R.useCallback(()=>{var te;if(!(!gt.current||!oe.current)&&!Ee.current){Re.current(oe.current);let pe=c||s,Ke=Sr(oe.current,o||a||"",n||l||"",pe||"");ce.current=(te=oe.current)==null?void 0:te.editor.create(gt.current,{model:Ke,automaticLayout:!0,...g},h),T&&ce.current.restoreViewState(Hs.get(pe)),oe.current.editor.setTheme(u),f!==void 0&&ce.current.revealLine(f),U(!0),Ee.current=!0}},[a,n,s,o,l,c,g,h,T,u,f]);R.useEffect(()=>{k&&zt.current(ce.current,oe.current)},[k]),R.useEffect(()=>{!j&&!k&&bt()},[j,k,bt]),V.current=o,R.useEffect(()=>{var te,pe;k&&F&&((te=Fe.current)==null||te.dispose(),Fe.current=(pe=ce.current)==null?void 0:pe.onDidChangeModelContent(Ke=>{Oe.current||F(ce.current.getValue(),Ke)}))},[k,F]),R.useEffect(()=>{if(k){let te=oe.current.editor.onDidChangeMarkers(pe=>{var jt;let Ke=(jt=ce.current.getModel())==null?void 0:jt.uri;if(Ke&&pe.find(Ye=>Ye.path===Ke.path)){let Ye=oe.current.editor.getModelMarkers({resource:Ke});A==null||A(Ye)}});return()=>{te==null||te.dispose()}}return()=>{}},[k,A]);function St(){var te,pe;(te=Fe.current)==null||te.dispose(),M?T&&Hs.set(c,ce.current.saveViewState()):(pe=ce.current.getModel())==null||pe.dispose(),ce.current.dispose()}return R.createElement(eo,{width:O,height:B,isEditorReady:k,loading:x,_ref:gt,className:P,wrapperProps:X})}var bd=gd,xd=R.memo(bd);const so={keywords:[{name:"or",desc:["逻辑 OR。适用于布尔表达式。"],syntax:["expr1 or expr2"],returns:["布尔值,或一系列布尔值。"]},{name:"and",desc:["逻辑 AND。适用于布尔表达式。"],syntax:["expr1 and expr2"],returns:["布尔值,或一系列布尔值。"]},{name:"not",desc:["逻辑求反(NOT)。 适用于布尔表达式。"],syntax:["not expr1"],returns:["布尔值,或一系列布尔值。"]},{name:"if",desc:["If语句定义了在满足表达式条件时必须执行的语句块。","要访问和使用if语句,应在代码的第一行中指定>= 2的Pine Script®语言版本,例如://@version=5","Pine Script®语言的第四版允许您使用“else if”语法。","通用编码来自:"],syntax:[`var_declarationX = if condition
39
+ `},Yi=Rp(Kp)(Vi),$p={config:Bp},jp=function(){for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return function(l){return s.reduceRight(function(c,u){return u(c)},l)}};function Qi(a,n){return Object.keys(n).forEach(function(s){n[s]instanceof Object&&a[s]&&Object.assign(n[s],Qi(a[s],n[s]))}),Hi(Hi({},a),n)}var Hp={type:"cancelation",msg:"operation is manually canceled"};function tn(a){var n=!1,s=new Promise(function(o,l){a.then(function(c){return n?l(Hp):o(c)}),a.catch(l)});return s.cancel=function(){return n=!0},s}var Wp=Mp.create({config:Op,isInitialized:!1,resolve:null,reject:null,monaco:null}),Zi=gp(Wp,2),ls=Zi[0],js=Zi[1];function Gp(a){var n=$p.config(a),s=n.monaco,o=fp(n,["monaco"]);js(function(l){return{config:Qi(l.config,o),monaco:s}})}function Xp(){var a=ls(function(n){var s=n.monaco,o=n.isInitialized,l=n.resolve;return{monaco:s,isInitialized:o,resolve:l}});if(!a.isInitialized){if(js({isInitialized:!0}),a.monaco)return a.resolve(a.monaco),tn(rn);if(window.monaco&&window.monaco.editor)return Ji(window.monaco),a.resolve(window.monaco),tn(rn);jp(Vp,Qp)(Zp)}return tn(rn)}function Vp(a){return document.body.appendChild(a)}function Yp(a){var n=document.createElement("script");return a&&(n.src=a),n}function Qp(a){var n=ls(function(o){var l=o.config,c=o.reject;return{config:l,reject:c}}),s=Yp("".concat(n.config.paths.vs,"/loader.js"));return s.onload=function(){return a()},s.onerror=n.reject,s}function Zp(){var a=ls(function(s){var o=s.config,l=s.resolve,c=s.reject;return{config:o,resolve:l,reject:c}}),n=window.require;n.config(a.config),n(["vs/editor/editor.main"],function(s){Ji(s),a.resolve(s)},function(s){a.reject(s)})}function Ji(a){ls().monaco||js({monaco:a})}function Jp(){return ls(function(a){var n=a.monaco;return n})}var rn=new Promise(function(a,n){return js({resolve:a,reject:n})}),sn={config:Gp,init:Xp,__getMonacoInstance:Jp},ed={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},an=ed,td={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},rd=td;function sd({children:a}){return F.createElement("div",{style:rd.container},a)}var ad=sd,nd=ad;function id({width:a,height:n,isEditorReady:s,loading:o,_ref:l,className:c,wrapperProps:u}){return F.createElement("section",{style:{...an.wrapper,width:a,height:n},...u},!s&&F.createElement(nd,null,o),F.createElement("div",{ref:l,style:{...an.fullWidth,...!s&&an.hide},className:c}))}var od=id,eo=F.memo(od);function ld(a){F.useEffect(a,[])}var to=ld;function cd(a,n,s=!0){let o=F.useRef(!0);F.useEffect(o.current||!s?()=>{o.current=!1}:a,n)}var ot=cd;function cs(){}function Sr(a,n,s,o){return pd(a,o)||dd(a,n,s,o)}function pd(a,n){return a.editor.getModel(ro(a,n))}function dd(a,n,s,o){return a.editor.createModel(n,s,o?ro(a,o):void 0)}function ro(a,n){return a.Uri.parse(n)}function md({original:a,modified:n,language:s,originalLanguage:o,modifiedLanguage:l,originalModelPath:c,modifiedModelPath:u,keepCurrentOriginalModel:f=!1,keepCurrentModifiedModel:x=!1,theme:g="light",loading:h="Loading...",options:D={},height:P="100%",width:R="100%",className:U,wrapperProps:L={},beforeMount:X=cs,onMount:ee=cs}){let[W,B]=F.useState(!1),[O,T]=F.useState(!0),M=F.useRef(null),K=F.useRef(null),ne=F.useRef(null),ae=F.useRef(ee),ie=F.useRef(X),gt=F.useRef(!1);to(()=>{let V=sn.init();return V.then(ge=>(K.current=ge)&&T(!1)).catch(ge=>(ge==null?void 0:ge.type)!=="cancelation"&&console.error("Monaco initialization: error:",ge)),()=>M.current?Fe():V.cancel()}),ot(()=>{if(M.current&&K.current){let V=M.current.getOriginalEditor(),ge=Sr(K.current,a||"",o||s||"text",c||"");ge!==V.getModel()&&V.setModel(ge)}},[c],W),ot(()=>{if(M.current&&K.current){let V=M.current.getModifiedEditor(),ge=Sr(K.current,n||"",l||s||"text",u||"");ge!==V.getModel()&&V.setModel(ge)}},[u],W),ot(()=>{let V=M.current.getModifiedEditor();V.getOption(K.current.editor.EditorOption.readOnly)?V.setValue(n||""):n!==V.getValue()&&(V.executeEdits("",[{range:V.getModel().getFullModelRange(),text:n||"",forceMoveMarkers:!0}]),V.pushUndoStop())},[n],W),ot(()=>{var V,ge;(ge=(V=M.current)==null?void 0:V.getModel())==null||ge.original.setValue(a||"")},[a],W),ot(()=>{let{original:V,modified:ge}=M.current.getModel();K.current.editor.setModelLanguage(V,o||s||"text"),K.current.editor.setModelLanguage(ge,l||s||"text")},[s,o,l],W),ot(()=>{var V;(V=K.current)==null||V.editor.setTheme(g)},[g],W),ot(()=>{var V;(V=M.current)==null||V.updateOptions(D)},[D],W);let zt=F.useCallback(()=>{var Ne;if(!K.current)return;ie.current(K.current);let V=Sr(K.current,a||"",o||s||"text",c||""),ge=Sr(K.current,n||"",l||s||"text",u||"");(Ne=M.current)==null||Ne.setModel({original:V,modified:ge})},[s,n,l,a,o,c,u]),Ke=F.useCallback(()=>{var V;!gt.current&&ne.current&&(M.current=K.current.editor.createDiffEditor(ne.current,{automaticLayout:!0,...D}),zt(),(V=K.current)==null||V.editor.setTheme(g),B(!0),gt.current=!0)},[D,g,zt]);F.useEffect(()=>{W&&ae.current(M.current,K.current)},[W]),F.useEffect(()=>{!O&&!W&&Ke()},[O,W,Ke]);function Fe(){var ge,Ne,Me,bt;let V=(ge=M.current)==null?void 0:ge.getModel();f||((Ne=V==null?void 0:V.original)==null||Ne.dispose()),x||((Me=V==null?void 0:V.modified)==null||Me.dispose()),(bt=M.current)==null||bt.dispose()}return F.createElement(eo,{width:R,height:P,isEditorReady:W,loading:h,_ref:ne,className:U,wrapperProps:L})}var ud=md,yd=F.memo(ud);function _d(a){let n=F.useRef();return F.useEffect(()=>{n.current=a},[a]),n.current}var fd=_d,Hs=new Map;function gd({defaultValue:a,defaultLanguage:n,defaultPath:s,value:o,language:l,path:c,theme:u="light",line:f,loading:x="Loading...",options:g={},overrideServices:h={},saveViewState:D=!0,keepCurrentModel:P=!1,width:R="100%",height:U="100%",className:L,wrapperProps:X={},beforeMount:ee=cs,onMount:W=cs,onChange:B,onValidate:O=cs}){let[T,M]=F.useState(!1),[K,ne]=F.useState(!0),ae=F.useRef(null),ie=F.useRef(null),gt=F.useRef(null),zt=F.useRef(W),Ke=F.useRef(ee),Fe=F.useRef(),V=F.useRef(o),ge=fd(c),Ne=F.useRef(!1),Me=F.useRef(!1);to(()=>{let te=sn.init();return te.then(be=>(ae.current=be)&&ne(!1)).catch(be=>(be==null?void 0:be.type)!=="cancelation"&&console.error("Monaco initialization: error:",be)),()=>ie.current?St():te.cancel()}),ot(()=>{var be,De,jt,Ye;let te=Sr(ae.current,a||o||"",n||l||"",c||s||"");te!==((be=ie.current)==null?void 0:be.getModel())&&(D&&Hs.set(ge,(De=ie.current)==null?void 0:De.saveViewState()),(jt=ie.current)==null||jt.setModel(te),D&&((Ye=ie.current)==null||Ye.restoreViewState(Hs.get(c))))},[c],T),ot(()=>{var te;(te=ie.current)==null||te.updateOptions(g)},[g],T),ot(()=>{!ie.current||o===void 0||(ie.current.getOption(ae.current.editor.EditorOption.readOnly)?ie.current.setValue(o):o!==ie.current.getValue()&&(Me.current=!0,ie.current.executeEdits("",[{range:ie.current.getModel().getFullModelRange(),text:o,forceMoveMarkers:!0}]),ie.current.pushUndoStop(),Me.current=!1))},[o],T),ot(()=>{var be,De;let te=(be=ie.current)==null?void 0:be.getModel();te&&l&&((De=ae.current)==null||De.editor.setModelLanguage(te,l))},[l],T),ot(()=>{var te;f!==void 0&&((te=ie.current)==null||te.revealLine(f))},[f],T),ot(()=>{var te;(te=ae.current)==null||te.editor.setTheme(u)},[u],T);let bt=F.useCallback(()=>{var te;if(!(!gt.current||!ae.current)&&!Ne.current){Ke.current(ae.current);let be=c||s,De=Sr(ae.current,o||a||"",n||l||"",be||"");ie.current=(te=ae.current)==null?void 0:te.editor.create(gt.current,{model:De,automaticLayout:!0,...g},h),D&&ie.current.restoreViewState(Hs.get(be)),ae.current.editor.setTheme(u),f!==void 0&&ie.current.revealLine(f),M(!0),Ne.current=!0}},[a,n,s,o,l,c,g,h,D,u,f]);F.useEffect(()=>{T&&zt.current(ie.current,ae.current)},[T]),F.useEffect(()=>{!K&&!T&&bt()},[K,T,bt]),V.current=o,F.useEffect(()=>{var te,be;T&&B&&((te=Fe.current)==null||te.dispose(),Fe.current=(be=ie.current)==null?void 0:be.onDidChangeModelContent(De=>{Me.current||B(ie.current.getValue(),De)}))},[T,B]),F.useEffect(()=>{if(T){let te=ae.current.editor.onDidChangeMarkers(be=>{var jt;let De=(jt=ie.current.getModel())==null?void 0:jt.uri;if(De&&be.find(Ye=>Ye.path===De.path)){let Ye=ae.current.editor.getModelMarkers({resource:De});O==null||O(Ye)}});return()=>{te==null||te.dispose()}}return()=>{}},[T,O]);function St(){var te,be;(te=Fe.current)==null||te.dispose(),P?D&&Hs.set(c,ie.current.saveViewState()):(be=ie.current.getModel())==null||be.dispose(),ie.current.dispose()}return F.createElement(eo,{width:R,height:U,isEditorReady:T,loading:x,_ref:gt,className:L,wrapperProps:X})}var bd=gd,xd=F.memo(bd);const so={keywords:[{name:"or",desc:["逻辑 OR。适用于布尔表达式。"],syntax:["expr1 or expr2"],returns:["布尔值,或一系列布尔值。"]},{name:"and",desc:["逻辑 AND。适用于布尔表达式。"],syntax:["expr1 and expr2"],returns:["布尔值,或一系列布尔值。"]},{name:"not",desc:["逻辑求反(NOT)。 适用于布尔表达式。"],syntax:["not expr1"],returns:["布尔值,或一系列布尔值。"]},{name:"if",desc:["If语句定义了在满足表达式条件时必须执行的语句块。","要访问和使用if语句,应在代码的第一行中指定>= 2的Pine Script®语言版本,例如://@version=5","Pine Script®语言的第四版允许您使用“else if”语法。","通用编码来自:"],syntax:[`var_declarationX = if condition
40
40
  var_decl_then0
41
41
  var_decl_then1
42
42
 
@@ -104,44 +104,44 @@ else
104
104
 
105
105
  `}bold(n){return`**${n}**`}italic(n){return`*${n.replace(">","&gt;").replace("<","&lt;")}*`}pineCode(n){return`\`\`\`
106
106
  ${n}
107
- \`\`\``}code(n){return`\`${n}\``}paragraph(...n){return[this.paragraphBreak,...n,this.paragraphBreak].join(this.lineBreak)}link(n,s){return`[${n}](${s.href})`}}const _e=new kd;function Id(a){const{name:n,libraryName:s,desc:o}=a,l=[`${_e.bold(n||s)} (library)`];return l.push(_e.delimiter),o&&l.push(_e.paragraph(_e.bold(it.Description),_e.lineBreak,o)),l.join(l.length===2?" ":_e.lineBreak)}function Ad(a,n=0,s=!0){const o=a[n];if(!o)return"";const l=/(Mac|iPhone|iPod|iPad)/i.test(window.navigator.userAgent),{name:c,title:u,desc:f,type:x,syntax:g,returns:h,remarks:T,fields:M}=o,O=[`${_e.bold(c)} (${u})`];if(a.length>1&&O.push(_e.italic(`+${a.length-1} overloads`)),O.push(_e.delimiter),f&&O.push(_e.paragraph(Array.isArray(f)?f.join(_e.lineBreak):f||"")),x&&O.push(_e.paragraph(_e.bold(it.Type),_e.italic(x))),g&&g.length&&O.push(_e.paragraph(_e.bold(it.Syntax),_e.pineCode(g.join(_e.lineBreak)))),h&&O.push(_e.paragraph(_e.bold(it.Returns),_e.lineBreak,h.join(_e.lineBreak))),T&&T.length&&a.length<=1){let B="";typeof T=="string"?B=T:B=T.join(_e.lineBreak)||"",B.length<200&&O.push(_e.paragraph(_e.bold(it.Remarks),_e.lineBreak,B))}if(M){const B=[];for(const P of M){const X=P.desc?` - ${P.desc}`:"";B.push(`${P.name} (${P.type}) ${X}`)}O.push(_e.paragraph(_e.bold(it.Fields),_e.lineBreak,B.join(_e.paragraphBreak)))}return s&&O.push(_e.italic(`${_e.code(l?"⌘":"Ctrl")} + ${wd.clickOnKeywordForMoreHelp}`)),O.join(O.length===2?" ":_e.lineBreak)}const nn="tcc_cursor_position",qd=["submenuitem.EditorContextPeek","editor.action.peekDefinition"];function Cd(a){return a.replace(/<[^<>]+>/,"").replace(/(series|simple|const|input)\s+([\w\d.]+)/,"$2").replace(/\w[\w.\d]*\[\]/,"array")}function zd(a){const n=a.getContribution("editor.contrib.contextmenu"),s=n==null?void 0:n._getMenuActions;n._getMenuActions=function(){return s.apply(n,arguments).filter(function(l){return!qd.includes(l.id)})}}class Sd{constructor(){Object.defineProperty(this,"bracketsPostfix",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_builtinSubtreeCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_formatter",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_namespaceCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_suggestions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_outermostNsItems",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_funcArgsCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userSuggestions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userFuncArgsCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userNamespaceCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userOutermostNsItems",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_methodNamespaceCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userMethods",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userFunctions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_methodFuncs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userTypes",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_nextIsBracket",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.bracketsPostfix="(${0})",this._builtinSubtreeCache={},this._formatter=_e,this._namespaceCache=new Map,this._suggestions=[],this._outermostNsItems=new Map,this._funcArgsCache=new Map,this._userSuggestions=[],this._userFuncArgsCache=new Map,this._userNamespaceCache=new Map,this._userOutermostNsItems=new Map,this._methodNamespaceCache=new Map,this._userMethods=new Map,this._userTypes=new Map,this._methodFuncs=new Map,this._userFunctions=new Map,this._nextIsBracket=!1}get methodFuncs(){return this._methodFuncs}get userFuncs(){return this._userFunctions}set nextIsBracket(n){this._nextIsBracket=n}get nextIsBracket(){return this._nextIsBracket}get annotationSuggestions(){return this._getAnnotationCompletionItems(this._builtinSubtreeCache.annotations)}initBuiltinsTrees(){this._getBuiltinsCacheFragment(),this._suggestions=this._getAllCompletionItems(),this._getFuncArgumentsCompletionItemsToCache(this._builtinSubtreeCache.functions)}getArgSuggestions(n){return this._funcArgsCache.get(n)||this._userFuncArgsCache.get(n)}getSuggestions(n){return n?this._namespaceCache.get(n)||this._userNamespaceCache.get(n):this._suggestions.concat(this._userSuggestions)}_initUserDefind(){this._userFuncArgsCache.clear(),this._userNamespaceCache.clear(),this._userOutermostNsItems.clear(),this._methodNamespaceCache.clear(),this._methodFuncs.clear()}setUserDefind(n,s,o,l){this._initUserDefind();const c=this._mergeTreeSlices(this._generateTreeSlice(lt.methods,"method"),this._generateTreeSlice(l,"method"));this._getMethodNamespaceCache(c),this._userMethods=l,this._userTypes=s,this._userFunctions=n;const u=this._generateTreeSlice(n,"fun");this._userSuggestions=this._getAllUserCompletionItems(u,this._generateTreeSlice(s,"type"),this._generateTreeSlice(o,"var")),this._getUserFuncArgumentsCompletionItemsToCache(u)}_getAllUserCompletionItems(n,s,o){const l=this._getUserVariableCompletionItems(o),c=this._getTypeCompletionItems(s,!0),u=this._getFunctionCompletionItems(n,void 0,!0);return[...c,...u,...l,...this._userOutermostNsItems.values()]}_getAllCompletionItems(){const{variables:n,keywords:s,types:o,functions:l}=this._builtinSubtreeCache,c=this._getVariableCompletionItems(n),u=this._getKeywordCompletionItems(s),f=this._getTypeCompletionItems(o),x=this._getFunctionCompletionItems(l),g=this._getSnippetsCompletionsList();return[...c,...u,...f,...x,...this._outermostNsItems.values(),...g]}_getNodeKey(n,s){return`${s}_${n}`}_mergeTreeSlices(...n){const s=new Map;for(const o of n)for(const[l,c]of o){const u=s.get(l);u?s.set(l,{...u,children:this._mergeTreeSlices(c.children,u.children)}):s.set(l,c)}return s}_mergeCompletions(n,s){const o=this._namespaceCache.get(n);o?this._namespaceCache.set(n,[...o,...s]):this._namespaceCache.set(n,s)}_mergeUserCompletions(n,s){const o=this._userNamespaceCache.get(n);o?this._userNamespaceCache.set(n,[...o,...s]):this._userNamespaceCache.set(n,s)}_generateTreeSlice(n,s){const o=new Map;for(const[l,c]of n){const[u,...f]=l.split("."),x=f.length>0,g=o.get(this._getNodeKey(u,x?"ns":s));let h=new Map,T=c.map(O=>({...O,name:l})),M=this._getNodeKey(l,s);if(x&&s!=="type"){const O=new Map([[f.join("."),c]]);T=[{name:u,title:ve.namespace}],M=this._getNodeKey(u,"ns"),h=this._generateTreeSlice(O,s)}g&&(T=[{name:u,title:ve.namespace}],h=this._mergeTreeSlices(g.children,h)),o.set(M,{value:T,children:h})}return o}_getBuiltinsCacheFragment(){const{keywords:n,variables:s,constants:o,types:l,functions:c,annotations:u}=lt,f=this._generateTreeSlice(u,"an");return f.delete("an_@version="),this._builtinSubtreeCache={keywords:this._generateTreeSlice(n,"key"),variables:this._mergeTreeSlices(this._generateTreeSlice(s,"var"),this._generateTreeSlice(o,"var")),types:this._generateTreeSlice(l,"type"),functions:this._generateTreeSlice(c,"fun"),annotations:f},this._builtinSubtreeCache}_getVariableCompletionItems(n,s){const o=[],l=[];for(const[c,u]of n){const{value:f,children:x}=u;if(c.startsWith("ns")){const g=this._getNamespaceCompletionItem(f[0]);if(s){l.push({...g});const T=`${s}.${g.label}`;g.label=T,g.insertText=T}const h=this._getVariableCompletionItems(x,g.label);s||this._outermostNsItems.set(c,g),o.push(...h)}else{const g=this._getVariableCompletionItem(f[0],s?3:2);if(s){l.push({...g});const{label:h}=g;g.label=`${s}.${h}`,g.insertText=`${s}.${g.insertText}`,g.filterText=`${h}\r`}o.push(g)}}return l.length&&s&&this._mergeCompletions(s,l),o}_setUserVariableSubItems(n,s){var g,h,T,M;let o=[];const l=Cd(n.type||""),c=this._methodNamespaceCache.get(l),u=s?`${s}.${n.name}`:n.name;c&&(o=c.filter(O=>{var J;const B=`${l}.${O.label}`,P=lt.methods.get(B)||this._userMethods.get(B),X=P==null?void 0:P.some(G=>!G.thisType||G.thisType[0].includes("<>")||G.thisType.includes(n.type||""));if(X&&P){const G=this._getNamedArgumentsCompletionList(((J=P[0])==null?void 0:J.args)||[]),F=`${u}.${O.label}`;this._userFuncArgsCache.set(F,G),this._methodFuncs.set(F,P)}return X}));const{types:f}=lt,x=((h=(g=this._userTypes.get(l))==null?void 0:g[0])==null?void 0:h.fields)||((M=(T=f.get(l))==null?void 0:T[0])==null?void 0:M.fields);if(x)for(const O of x){const B=O.name,P=O.type,X=this._getInstanceTypeCompletionItemProp({name:B,type:P});this._setUserVariableSubItems({name:B,type:P},n.name),o.push({...X})}o.length&&this._mergeUserCompletions(u,o)}_getUserVariableCompletionItems(n,s){const o=[],l=[];for(const[c,u]of n){const{value:f,children:x}=u;if(this._setUserVariableSubItems(f[0]),c.startsWith("ns")){const g=this._getNamespaceCompletionItem(f[0]);if(s){l.push({...g});const T=`${s}.${g.label}`;g.label=T,g.insertText=T}const h=this._getUserVariableCompletionItems(x,g.label);s||this._userOutermostNsItems.set(c,g),o.push(...h)}else{const g=this._getVariableCompletionItem(f[0],s?2:1,!1);if(s){l.push({...g});const{label:h}=g;g.label=`${s}.${h}`,g.insertText=`${s}.${g.insertText}`,g.filterText=`${h}\r`}o.push(g)}}return l.length&&s&&this._mergeUserCompletions(s,l),o}_getTypeCompletionItems(n,s=!1){const o=[];for(const[,l]of n){const{value:c}=l,u=s?this._getCustomTypeCompletionItem(c[0]):this._getTypeCompletionItem(c[0]);o.push(u)}return o}_getAnnotationCompletionItems(n){const s=[];for(const[,o]of n){const{value:l}=o,c=this._getAnnotationCompletionItem(l[0]);s.push(c)}return s}_getKeywordCompletionItems(n){const s=[];for(const[,o]of n){const{value:l}=o,c=this._getKeywordCompletionItem(l[0]);s.push(c)}return s}_getMethodNamespaceCache(n,s){const o=[];for(const[l,c]of n){const{value:u,children:f}=c;if(l.startsWith("ns")){const x=this._getNamespaceCompletionItem(u[0]);if(s){o.push({...x});const g=`${s}.${x.label}`;x.label=g,x.insertText=g}this._getMethodNamespaceCache(f,x.label)}else{const x=this._getFunctionCompletionItem(u[0],s?3:2);if(u.length>1&&(x.detail=`${x.detail} (+${u.length-1} overloads)`),s){o.push({...x});const{label:g}=x;x.label=`${s}.${g}`,x.insertText=`${s}.${x.insertText}`,x.filterText=`${g}\r`}}}s&&this._methodNamespaceCache.set(s,o)}_getFunctionCompletionItems(n,s,o=!1){const l=[],c=[];for(const[u,f]of n){const{value:x,children:g}=f;if(u.startsWith("ns")){const h=this._getNamespaceCompletionItem(x[0]);if(s){c.push({...h});const M=`${s}.${h.label}`;h.label=M,h.insertText=M}const T=this._getFunctionCompletionItems(g,h.label,o);s||(o?this._userOutermostNsItems.set(u,h):this._outermostNsItems.set(u,h)),l.push(...T)}else{const h=this._getFunctionCompletionItem(x[0],s?3:2,!o);if(x.length>1&&(h.detail=`${h.detail} (+${x.length-1} overloads)`),s){c.push({...h});const{label:T}=h;h.label=`${s}.${T}`,h.insertText=`${s}.${h.insertText}`,h.filterText=`${T}\r`}l.push(h)}}return c.length&&s&&(o?this._mergeUserCompletions(s,c):this._mergeCompletions(s,c)),l}_getSnippetsCompletionsList(){return hd.map(n=>{const{label:s,kind:o,insertText:l}=n,c=s.charAt(0).toUpperCase()+s.substring(1),u={value:this._formatter.pineCode(l.replace(/\${\d:([^}]+)}|\${\d}/g,"$1"))};return{label:s,detail:`(${c} ${o})`,insertText:l,insertTextRules:Ae.languages.CompletionItemInsertTextRule.InsertAsSnippet,sortText:`2_${s}`,kind:Ae.languages.CompletionItemKind.Snippet,documentation:u}})}_getFuncArgumentsCompletionItemsToCache(n,s){for(const[o,l]of n){const{name:c}=l.value[0];if(o.startsWith("ns"))this._getFuncArgumentsCompletionItemsToCache(l.children,s?`${s}.${c}`:c);else{const u=new Map;l.value.reduce((g,h)=>{const T=h.args;return T&&T.length&&T.forEach(M=>{g.set(M.name,M)}),g},u);const f=this._getNamedArgumentsCompletionList([...u.values()]),x=s?`${s}.${c}`:c;this._funcArgsCache.set(x,f)}}}_getUserFuncArgumentsCompletionItemsToCache(n,s){for(const[o,l]of n){const{name:c}=l.value[0];if(o.startsWith("ns"))this._getUserFuncArgumentsCompletionItemsToCache(l.children,s?`${s}.${c}`:c);else{const u=new Map;l.value.reduce((g,h)=>{const T=h.args;return T&&T.length&&T.forEach(M=>{g.set(M.name,M)}),g},u);const f=this._getNamedArgumentsCompletionList([...u.values()]),x=s?`${s}.${c}`:c;this._userFuncArgsCache.set(x,f)}}}_getNamedArgumentsCompletionList(n){return n.map(s=>{const{name:o,desc:l,displayType:c}=s,u=`${o} = `,f=Array.isArray(l)?l.join(this._formatter.delimiter):l||"";return{label:u,documentation:{value:this._formatter.paragraph(this._formatter.bold(ve.Description),this._formatter.lineBreak,f)},insertText:u,detail:`(${ve.parameter}) ${ve.types} ${c}`,kind:Ae.languages.CompletionItemKind.Text,sortText:`0_${u}`}})}_getVariableCompletionItem(n,s=2,o=!0){const l=this._extractExamples(n),c=this._extractDescription(n),u=[this._createDescriptionSection(c)];l.length?u.push(this._createExampleSection(l)):n.syntax&&n.syntax.length&&u.push(this._createSyntaxSection(n.syntax));const f={value:u.join(this._formatter.lineBreak)},x=o?ve.variables:ve.userDefinedVariable;return{documentation:f,label:n.name,insertText:n.name,kind:Ae.languages.CompletionItemKind.Variable,sortText:`${s}_${n.name}`,detail:`(${x}) ${n.type}`}}_getKeywordCompletionItem(n,s=2){const o=this._extractExamples(n),l=this._extractDescription(n),c=[this._createDescriptionSection(l)];return o.length?c.push(this._createExampleSection(o)):n.syntax&&n.syntax.length&&c.push(this._createSyntaxSection(n.syntax)),{documentation:{value:c.join(this._formatter.lineBreak)},label:n.name,insertText:n.name,kind:Ae.languages.CompletionItemKind.Keyword,sortText:`${s}_${n.name}`,detail:`(${ve.keywords})`}}_getTypeCompletionItem(n){const s=this._extractDescription(n);return{documentation:{value:this._createDescriptionSection(s)},label:n.name,insertText:n.name,kind:Ae.languages.CompletionItemKind.Keyword,sortText:`1_${n.name}`,detail:`(${ve.types})`}}_getCustomTypeCompletionItem(n){const s=this._extractDescription(n);return{documentation:{value:this._createDescriptionSection(s)},label:n.name,insertText:n.name,kind:Ae.languages.CompletionItemKind.Keyword,sortText:`2_${n.name}`,detail:`(${ve.userDefinedType})`}}_getInstanceTypeCompletionItemProp(n){const s=this._extractDescription(n),o=[];return s&&o.push(this._formatter.paragraph(this._formatter.bold(it.Description),this._formatter.lineBreak,s)),{documentation:{value:o.join(this._formatter.lineBreak)},label:n.name,insertText:n.name,kind:Ae.languages.CompletionItemKind.Field,sortText:`2_${n.name}`,detail:`(${ve.field}) ${n.type}`}}_getFunctionCompletionItem(n,s=2,o=!0){var O;const l=n.returnedTypes&&n.returnedTypes[0]||n.syntax&&n.syntax[0]&&((O=n.syntax[0].split("→").pop())==null?void 0:O.trim()),c=this._extractExamples(n),u=this._extractDescription(n),f=[this._createDescriptionSection(u)];c.length?f.push(this._createExampleSection(c)):n.syntax&&n.syntax.length&&f.push(this._createSyntaxSection(n.syntax)),n.returns&&n.returns.length&&f.push(this._createReturnSection(n.returns));const x={value:f.join(this._formatter.lineBreak)},g=n.name,h=o?ve.functions:ve.userDefinedFunction,T=n.template,M=T?`${Dd(g)}<\${1}>`:g;return{documentation:x,label:T?`${g.replace(/<.+>/,"")}<type>`:g,kind:Ae.languages.CompletionItemKind.Function,sortText:`${s}_${g}`,insertTextRules:Ae.languages.CompletionItemInsertTextRule.InsertAsSnippet,insertText:M+this.bracketsPostfix,originInsertText:M,detail:`(${h}) ${ve.returns} ${l}`,command:{id:"tcc.editor.function",title:"",arguments:[T?"editor.action.triggerSuggest":"editor.action.triggerParameterHints"]}}}_getAnnotationCompletionItem(n){const s=this._extractDescription(n),o=this._extractExamples(n),l=[this._createDescriptionSection(s)];return o.length&&l.push(this._createExampleSection(o)),{documentation:{value:l.join(this._formatter.lineBreak)},label:n.name,insertText:n.name.replace("@",""),kind:Ae.languages.CompletionItemKind.Keyword,detail:`(${ve.annotations})`}}_getNamespaceCompletionItem(n,s=2){const o=[this._createDescriptionSection(ve.namespaceDesc)];return{label:n.name,documentation:{value:o.join(this._formatter.lineBreak)},detail:`(${ve.namespace}) ${n.name}`,insertText:n.name,sortText:`${s}_${n.name}`,kind:Ae.languages.CompletionItemKind.Module}}_extractExamples(n){let s;return n.examples||n.detailedDesc&&((s=n.detailedDesc[0])===null||s===void 0?void 0:s.examples)||[]}_extractDescription(n){return Array.isArray(n.desc)?n.desc.join(this._formatter.lineBreak):n.desc||""}_createExampleSection(n){return this._formatter.paragraph(this._formatter.bold(it.Example),this._formatter.pineCode(n.join(this._formatter.lineBreak)))}_createSyntaxSection(n){return this._formatter.paragraph(this._formatter.bold(it.Syntax),this._formatter.pineCode(n.join(this._formatter.lineBreak)))}_createReturnSection(n){return this._formatter.paragraph(this._formatter.bold(it.Returns),this._formatter.lineBreak,n.join(this._formatter.lineBreak))}_createDescriptionSection(n){return!n||n.trim().length===0?"":this._formatter.paragraph(this._formatter.bold(it.Description),this._formatter.lineBreak,n)}}const qt=new Sd;class Ed{constructor(){Object.defineProperty(this,"_userFunctions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userVariables",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userTypes",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userMethods",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_imports",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_overloadsFuncs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._userFunctions=new Map,this._userVariables=new Map,this._userTypes=new Map,this._userMethods=new Map,this._imports=new Map,this._overloadsFuncs=[]}setUserDefined(n,s){const{functions:o,variables:l,types:c,methods:u,imports:f}=n;o&&(this._userFunctions=o),l&&(this._userVariables=l),c&&(this._userTypes=c),u&&(this._userMethods=u),f&&(this._imports=f),this._overloadsFuncs=s}parseLineContentFuncVar(n,s,o,l){let c=(o==null?void 0:o.getLineContent(s))||"";const u=c.indexOf("//");if(this._removeString(c).indexOf("//")!==-1&&u<=n)return;c=c+" ";const f=this._getVariablesDocVal(c,n,s);if(f){if(f.isBuildIn){const h=o==null?void 0:o.getWordAtPosition(l||new Ae.Position(s,n));if(((o==null?void 0:o.getValueInRange({startLineNumber:s,startColumn:(h==null?void 0:h.endColumn)||0,endLineNumber:s,endColumn:((h==null?void 0:h.endColumn)||0)+2}))||"").trim().startsWith("="))return null}return f}const x=this._getFuncsDocVal(c,n,s);if(x)return x;const g=c.match(/[a-zA-Z_][a-zA-Z_0-9]*(\s*\.\s*[a-zA-Z_][a-zA-Z_0-9]*)*(?=\s*<)/g);if(g){const h=this._matchContent(g,c,n);if(h){const T=this._getBuildInOther(h.name);if(T)return{docValue:T,isBuildIn:!0,index:0};{const M=this._getBuildInFunc(`${h.name}<type>`);if(M)return{docValue:M,isBuildIn:!0,index:0}}}}return this._getImportDocVal(c,n,s)}_getImportDocVal(n,s,o){const l=new RegExp("(?<=(import(\\s+)))([a-zA-Z\\d\\$_\\-\\.\\u00a1-\\uffff\\/]+)","g"),c=new RegExp("(?<=(as\\b)(\\s+))([a-zA-Z\\d\\_\\u00a1\\uffff\\/]+)","g"),u=n.match(l);if(u){const f=this._matchContent(u,n,s);if(f){const g=this._imports.get(f.name);if(g)return g}const x=n.match(c);if(x){const g=this._matchContent(x,n,s);if(g){for(const[h,T]of this._imports)if(T.name===g.name)return T}}}return null}_getBuildInFunc(n){return lt.functions.get(n)}_getBuildInMethod(n){return lt.methods.get(n)}_getBuildInOther(n){const{keywords:s,variables:o,constants:l,types:c}=lt;return s.get(n)||o.get(n)||l.get(n)||c.get(n)}parseCurrentInputFunc(n,s=!1,o=!1){let l=n.length-1,c=0,u=s,f=o;for(;l>=0;){const x=n.charAt(l);if(l-=1,/['"]/.test(x)){const g=x;if(x==="'"){if(u){u=!1;continue}}else if(f){f=!1;continue}for(;l>=0;){const h=n.charAt(l);if(l-=1,h===g)break}}if(!(u||f)&&(/\)/.test(x)&&(c+=1),/\(/.test(x))){if(c>0){c-=1;continue}let g="";for(;l>=0;){const h=n.charAt(l);if(l-=1,!(/\s/.test(h)&&!g)){if(/[^\w.]/.test(h))break;g=h+g}}if(g)return{funcName:g,startIndex:l+1}}}}parseCurrentInputFuncAndArg(n,s=!1,o=!1){const{funcName:l,startIndex:c}=this.parseCurrentInputFunc(n,s,o)||{};if(l&&typeof c=="number"){let u=n.slice(c+l.length).trim().slice(1),f=-1;if(s&&(f=u.lastIndexOf("'")),o){const h=u.lastIndexOf('"');(h!==-1&&h<f||f===-1)&&(f=h)}f!==-1&&(u=u.substring(0,f));const g=u.replace(/[\w.]+\(.*\)/g,"").split(",").map(h=>{const T=h.trim().split("=");return T.length<=1?"":T[0].trim()});return{funcName:l,args:g}}}_removeString(n){return n.replace(/\\"|\\'/g,"").replace(/"[^"]*"|'[^']*'/g,"")}_getVariablesDocVal(n,s,o){const l=this._removeString(n).replace(/\/\/.*/g,"").match(/[a-zA-Z_][a-zA-Z_0-9]*(\s*\.\s*[a-zA-Z_][a-zA-Z_0-9]*)*(?=\s*[^(a-zA-Z_0-9."'<])/g);if(l){const c=this._matchContent(l,n,s);if(c){const u={docValue:void 0,isBuildIn:!0,index:0},f=this._getBuildInOther(c.name);if(f)return u.docValue=f,u;const x=this._getUserVariablesDocVal(c.name,s,o);if(x)return Object.assign(u,{docValue:[x],isBuildIn:!1});const g=this._getUserTypesDocVal(c.name);if(g)return Object.assign(u,{docValue:g,isBuildIn:!1});const h=this._getTypesAndFileds(n,c.name,s,o);if(h&&typeof h!="string")return Object.assign(u,{docValue:[h],isBuildIn:!1})}}}_getUserVariablesDocVal(n,s,o){const u=[...this._userVariables.get(n)||[]].sort((f,x)=>(x.scope||0)-(f.scope||0)).find(f=>{const x=f.range;return((x==null?void 0:x.startColumn)||0)<=s&&((x==null?void 0:x.startLineNumber)||0)<=o&&((x==null?void 0:x.endLineNumber)||0)>=o});if(u)return u.title=ve.userDefinedVariable,u.type=this._arrayTypeTransform(u.type),u}_getUserTypesDocVal(n){const s=this._userTypes.get(n);if(s)return s[0].title=ve.userDefinedType,s}_getTypesAndFileds(n,s,o,l){var c,u;if(s.includes(".")){const f=s.split(".");let x=f[0],g,h=null,T=n.indexOf(s,o-s.length)+1,M=T+x.length-1;for(const O of f.slice(1)){if(!h){const B=T<=o&&M>=o,P=this._getUserVariablesDocVal(x,o,l);if(B&&P)return P;h=P==null?void 0:P.type}if(h){g=h,T=M+2,M=M+O.length+1;const B=this._userTypes.get(h)||lt.types.get(h),P=(u=(c=B==null?void 0:B[0])==null?void 0:c.fields)==null?void 0:u.find(X=>X.name===O);if(P&&T<=o&&M>=o)return{name:`${h}.${O}`,desc:P.desc,type:this._arrayTypeTransform(P.type),title:ve.field};h=P==null?void 0:P.type}else x=`${x}.${O}`,M=M+O.length+1}return g}}_getFuncsDocVal(n,s,o){const l=n.match(/[a-zA-Z_][a-zA-Z_0-9]*(\s*\.\s*[a-zA-Z_][a-zA-Z_0-9]*)*(?=\s*\()/g);if(l){const c=this._matchContent(l,n,s);if(c){const u={docValue:void 0,isBuildIn:!0,endIndex:c.endIndex,index:0},f=this._getBuildInFunc(c.name);if(f)return u.index=this._getOverloadsFuncIndex(f,s,c.name,o),Object.assign(u,{docValue:f});const x=this._getUserFuncsDocVal(c.name);if(x)return u.index=this._getOverloadsFuncIndex(x,s,c.name,o),Object.assign(u,{docValue:x,isBuildIn:!1});const g=this._getUserVarFuncsDocVal(n,c.name,s,o);if(g)return Object.assign(u,{docValue:[g],isBuildIn:!1})}}}_getOverloadsFuncIndex(n,s,o,l){if(n.length>1){const c=this._overloadsFuncs.find(u=>u.name===o&&u.line===l&&u.startColumn<=s&&u.endColumn>=s);if(c)return c.index}return 0}_getUserFuncsDocVal(n){const s=this._userFunctions.get(n);if(s){for(const o of s)o.title=ve.userDefinedFunction;return s}}_getUserMethodsDocVal(n){const s=this._userMethods.get(n);if(s){for(const o of s)o.title=ve.userDefinedFunction;return s}}_getUserVarFuncsDocVal(n,s,o,l){var c;if(s.includes(".")){const u=s.split("."),f=this._getTypesAndFileds(n,s,o,l);if(typeof f=="string"){const g=`${this._arrayTypeTransform(f).replace(/<[^<>]+>/,"").replace(/(series|simple|const|input)\s+([\w\d.]+)/,"$2")}.${u.pop()}`,h=this._getBuildInMethod(g);if(h){const T=this._getOverloadsFuncIndex(h,o,g,l);return{...h[0],name:g,index:T}}return(c=this._getUserMethodsDocVal(g))==null?void 0:c[0]}else return f}}_arrayTypeTransform(n=""){return n.includes("[]")?`array<${n.replace("[]","")}>`:n}_matchContent(n,s,o){let l=0;for(const c of n){l=o-c.length;const u=s.indexOf(c,l);if(l=u+c.length,this._judgeVal(s,u,l)&&u+1<=o&&l>=o)return{name:c,endIndex:l}}}_judgeVal(n,s,o){const l=n.charAt(s-1),c=/[\w\d."'/]/;if(c.test(l))return!1;const u=n.charAt(o);return!c.test(u)}}const Er=new Ed;var Ws={exports:{}};/**
107
+ \`\`\``}code(n){return`\`${n}\``}paragraph(...n){return[this.paragraphBreak,...n,this.paragraphBreak].join(this.lineBreak)}link(n,s){return`[${n}](${s.href})`}}const ye=new kd;function Id(a){const{name:n,libraryName:s,desc:o}=a,l=[`${ye.bold(n||s)} (library)`];return l.push(ye.delimiter),o&&l.push(ye.paragraph(ye.bold(it.Description),ye.lineBreak,o)),l.join(l.length===2?" ":ye.lineBreak)}function Ad(a,n=0,s=!0){const o=a[n];if(!o)return"";const l=/(Mac|iPhone|iPod|iPad)/i.test(window.navigator.userAgent),{name:c,title:u,desc:f,type:x,syntax:g,returns:h,remarks:D,fields:P}=o,R=[`${ye.bold(c)} (${u})`];if(a.length>1&&R.push(ye.italic(`+${a.length-1} overloads`)),R.push(ye.delimiter),f&&R.push(ye.paragraph(Array.isArray(f)?f.join(ye.lineBreak):f||"")),x&&R.push(ye.paragraph(ye.bold(it.Type),ye.italic(x))),g&&g.length&&R.push(ye.paragraph(ye.bold(it.Syntax),ye.pineCode(g.join(ye.lineBreak)))),h&&R.push(ye.paragraph(ye.bold(it.Returns),ye.lineBreak,h.join(ye.lineBreak))),D&&D.length&&a.length<=1){let U="";typeof D=="string"?U=D:U=D.join(ye.lineBreak)||"",U.length<200&&R.push(ye.paragraph(ye.bold(it.Remarks),ye.lineBreak,U))}if(P){const U=[];for(const L of P){const X=L.desc?` - ${L.desc}`:"";U.push(`${L.name} (${L.type}) ${X}`)}R.push(ye.paragraph(ye.bold(it.Fields),ye.lineBreak,U.join(ye.paragraphBreak)))}return s&&R.push(ye.italic(`${ye.code(l?"⌘":"Ctrl")} + ${wd.clickOnKeywordForMoreHelp}`)),R.join(R.length===2?" ":ye.lineBreak)}const nn="tcc_cursor_position",qd=["submenuitem.EditorContextPeek","editor.action.peekDefinition"];function Cd(a){return a.replace(/<[^<>]+>/,"").replace(/(series|simple|const|input)\s+([\w\d.]+)/,"$2").replace(/\w[\w.\d]*\[\]/,"array")}function zd(a){const n=a.getContribution("editor.contrib.contextmenu"),s=n==null?void 0:n._getMenuActions;n._getMenuActions=function(){return s.apply(n,arguments).filter(function(l){return!qd.includes(l.id)})}}class Sd{constructor(){Object.defineProperty(this,"bracketsPostfix",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_builtinSubtreeCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_formatter",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_namespaceCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_suggestions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_outermostNsItems",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_funcArgsCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userSuggestions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userFuncArgsCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userNamespaceCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userOutermostNsItems",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_methodNamespaceCache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userMethods",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userFunctions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_methodFuncs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userTypes",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_nextIsBracket",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.bracketsPostfix="(${0})",this._builtinSubtreeCache={},this._formatter=ye,this._namespaceCache=new Map,this._suggestions=[],this._outermostNsItems=new Map,this._funcArgsCache=new Map,this._userSuggestions=[],this._userFuncArgsCache=new Map,this._userNamespaceCache=new Map,this._userOutermostNsItems=new Map,this._methodNamespaceCache=new Map,this._userMethods=new Map,this._userTypes=new Map,this._methodFuncs=new Map,this._userFunctions=new Map,this._nextIsBracket=!1}get methodFuncs(){return this._methodFuncs}get userFuncs(){return this._userFunctions}set nextIsBracket(n){this._nextIsBracket=n}get nextIsBracket(){return this._nextIsBracket}get annotationSuggestions(){return this._getAnnotationCompletionItems(this._builtinSubtreeCache.annotations)}initBuiltinsTrees(){this._getBuiltinsCacheFragment(),this._suggestions=this._getAllCompletionItems(),this._getFuncArgumentsCompletionItemsToCache(this._builtinSubtreeCache.functions)}getArgSuggestions(n){return this._funcArgsCache.get(n)||this._userFuncArgsCache.get(n)}getSuggestions(n){return n?this._namespaceCache.get(n)||this._userNamespaceCache.get(n):this._suggestions.concat(this._userSuggestions)}_initUserDefind(){this._userFuncArgsCache.clear(),this._userNamespaceCache.clear(),this._userOutermostNsItems.clear(),this._methodNamespaceCache.clear(),this._methodFuncs.clear()}setUserDefind(n,s,o,l){this._initUserDefind();const c=this._mergeTreeSlices(this._generateTreeSlice(lt.methods,"method"),this._generateTreeSlice(l,"method"));this._getMethodNamespaceCache(c),this._userMethods=l,this._userTypes=s,this._userFunctions=n;const u=this._generateTreeSlice(n,"fun");this._userSuggestions=this._getAllUserCompletionItems(u,this._generateTreeSlice(s,"type"),this._generateTreeSlice(o,"var")),this._getUserFuncArgumentsCompletionItemsToCache(u)}_getAllUserCompletionItems(n,s,o){const l=this._getUserVariableCompletionItems(o),c=this._getTypeCompletionItems(s,!0),u=this._getFunctionCompletionItems(n,void 0,!0);return[...c,...u,...l,...this._userOutermostNsItems.values()]}_getAllCompletionItems(){const{variables:n,keywords:s,types:o,functions:l}=this._builtinSubtreeCache,c=this._getVariableCompletionItems(n),u=this._getKeywordCompletionItems(s),f=this._getTypeCompletionItems(o),x=this._getFunctionCompletionItems(l),g=this._getSnippetsCompletionsList();return[...c,...u,...f,...x,...this._outermostNsItems.values(),...g]}_getNodeKey(n,s){return`${s}_${n}`}_mergeTreeSlices(...n){const s=new Map;for(const o of n)for(const[l,c]of o){const u=s.get(l);u?s.set(l,{...u,children:this._mergeTreeSlices(c.children,u.children)}):s.set(l,c)}return s}_mergeCompletions(n,s){const o=this._namespaceCache.get(n);o?this._namespaceCache.set(n,[...o,...s]):this._namespaceCache.set(n,s)}_mergeUserCompletions(n,s){const o=this._userNamespaceCache.get(n);o?this._userNamespaceCache.set(n,[...o,...s]):this._userNamespaceCache.set(n,s)}_generateTreeSlice(n,s){const o=new Map;for(const[l,c]of n){const[u,...f]=l.split("."),x=f.length>0,g=o.get(this._getNodeKey(u,x?"ns":s));let h=new Map,D=c.map(R=>({...R,name:l})),P=this._getNodeKey(l,s);if(x&&s!=="type"){const R=new Map([[f.join("."),c]]);D=[{name:u,title:ve.namespace}],P=this._getNodeKey(u,"ns"),h=this._generateTreeSlice(R,s)}g&&(D=[{name:u,title:ve.namespace}],h=this._mergeTreeSlices(g.children,h)),o.set(P,{value:D,children:h})}return o}_getBuiltinsCacheFragment(){const{keywords:n,variables:s,constants:o,types:l,functions:c,annotations:u}=lt,f=this._generateTreeSlice(u,"an");return f.delete("an_@version="),this._builtinSubtreeCache={keywords:this._generateTreeSlice(n,"key"),variables:this._mergeTreeSlices(this._generateTreeSlice(s,"var"),this._generateTreeSlice(o,"var")),types:this._generateTreeSlice(l,"type"),functions:this._generateTreeSlice(c,"fun"),annotations:f},this._builtinSubtreeCache}_getVariableCompletionItems(n,s){const o=[],l=[];for(const[c,u]of n){const{value:f,children:x}=u;if(c.startsWith("ns")){const g=this._getNamespaceCompletionItem(f[0]);if(s){l.push({...g});const D=`${s}.${g.label}`;g.label=D,g.insertText=D}const h=this._getVariableCompletionItems(x,g.label);s||this._outermostNsItems.set(c,g),o.push(...h)}else{const g=this._getVariableCompletionItem(f[0],s?3:2);if(s){l.push({...g});const{label:h}=g;g.label=`${s}.${h}`,g.insertText=`${s}.${g.insertText}`,g.filterText=`${h}\r`}o.push(g)}}return l.length&&s&&this._mergeCompletions(s,l),o}_setUserVariableSubItems(n,s){var g,h,D,P;let o=[];const l=Cd(n.type||""),c=this._methodNamespaceCache.get(l),u=s?`${s}.${n.name}`:n.name;c&&(o=c.filter(R=>{var ee;const U=`${l}.${R.label}`,L=lt.methods.get(U)||this._userMethods.get(U),X=L==null?void 0:L.some(W=>!W.thisType||W.thisType[0].includes("<>")||W.thisType.includes(n.type||""));if(X&&L){const W=this._getNamedArgumentsCompletionList(((ee=L[0])==null?void 0:ee.args)||[]),B=`${u}.${R.label}`;this._userFuncArgsCache.set(B,W),this._methodFuncs.set(B,L)}return X}));const{types:f}=lt,x=((h=(g=this._userTypes.get(l))==null?void 0:g[0])==null?void 0:h.fields)||((P=(D=f.get(l))==null?void 0:D[0])==null?void 0:P.fields);if(x)for(const R of x){const U=R.name,L=R.type,X=this._getInstanceTypeCompletionItemProp({name:U,type:L});this._setUserVariableSubItems({name:U,type:L},n.name),o.push({...X})}o.length&&this._mergeUserCompletions(u,o)}_getUserVariableCompletionItems(n,s){const o=[],l=[];for(const[c,u]of n){const{value:f,children:x}=u;if(this._setUserVariableSubItems(f[0]),c.startsWith("ns")){const g=this._getNamespaceCompletionItem(f[0]);if(s){l.push({...g});const D=`${s}.${g.label}`;g.label=D,g.insertText=D}const h=this._getUserVariableCompletionItems(x,g.label);s||this._userOutermostNsItems.set(c,g),o.push(...h)}else{const g=this._getVariableCompletionItem(f[0],s?2:1,!1);if(s){l.push({...g});const{label:h}=g;g.label=`${s}.${h}`,g.insertText=`${s}.${g.insertText}`,g.filterText=`${h}\r`}o.push(g)}}return l.length&&s&&this._mergeUserCompletions(s,l),o}_getTypeCompletionItems(n,s=!1){const o=[];for(const[,l]of n){const{value:c}=l,u=s?this._getCustomTypeCompletionItem(c[0]):this._getTypeCompletionItem(c[0]);o.push(u)}return o}_getAnnotationCompletionItems(n){const s=[];for(const[,o]of n){const{value:l}=o,c=this._getAnnotationCompletionItem(l[0]);s.push(c)}return s}_getKeywordCompletionItems(n){const s=[];for(const[,o]of n){const{value:l}=o,c=this._getKeywordCompletionItem(l[0]);s.push(c)}return s}_getMethodNamespaceCache(n,s){const o=[];for(const[l,c]of n){const{value:u,children:f}=c;if(l.startsWith("ns")){const x=this._getNamespaceCompletionItem(u[0]);if(s){o.push({...x});const g=`${s}.${x.label}`;x.label=g,x.insertText=g}this._getMethodNamespaceCache(f,x.label)}else{const x=this._getFunctionCompletionItem(u[0],s?3:2);if(u.length>1&&(x.detail=`${x.detail} (+${u.length-1} overloads)`),s){o.push({...x});const{label:g}=x;x.label=`${s}.${g}`,x.insertText=`${s}.${x.insertText}`,x.filterText=`${g}\r`}}}s&&this._methodNamespaceCache.set(s,o)}_getFunctionCompletionItems(n,s,o=!1){const l=[],c=[];for(const[u,f]of n){const{value:x,children:g}=f;if(u.startsWith("ns")){const h=this._getNamespaceCompletionItem(x[0]);if(s){c.push({...h});const P=`${s}.${h.label}`;h.label=P,h.insertText=P}const D=this._getFunctionCompletionItems(g,h.label,o);s||(o?this._userOutermostNsItems.set(u,h):this._outermostNsItems.set(u,h)),l.push(...D)}else{const h=this._getFunctionCompletionItem(x[0],s?3:2,!o);if(x.length>1&&(h.detail=`${h.detail} (+${x.length-1} overloads)`),s){c.push({...h});const{label:D}=h;h.label=`${s}.${D}`,h.insertText=`${s}.${h.insertText}`,h.filterText=`${D}\r`}l.push(h)}}return c.length&&s&&(o?this._mergeUserCompletions(s,c):this._mergeCompletions(s,c)),l}_getSnippetsCompletionsList(){return hd.map(n=>{const{label:s,kind:o,insertText:l}=n,c=s.charAt(0).toUpperCase()+s.substring(1),u={value:this._formatter.pineCode(l.replace(/\${\d:([^}]+)}|\${\d}/g,"$1"))};return{label:s,detail:`(${c} ${o})`,insertText:l,insertTextRules:qe.languages.CompletionItemInsertTextRule.InsertAsSnippet,sortText:`2_${s}`,kind:qe.languages.CompletionItemKind.Snippet,documentation:u}})}_getFuncArgumentsCompletionItemsToCache(n,s){for(const[o,l]of n){const{name:c}=l.value[0];if(o.startsWith("ns"))this._getFuncArgumentsCompletionItemsToCache(l.children,s?`${s}.${c}`:c);else{const u=new Map;l.value.reduce((g,h)=>{const D=h.args;return D&&D.length&&D.forEach(P=>{g.set(P.name,P)}),g},u);const f=this._getNamedArgumentsCompletionList([...u.values()]),x=s?`${s}.${c}`:c;this._funcArgsCache.set(x,f)}}}_getUserFuncArgumentsCompletionItemsToCache(n,s){for(const[o,l]of n){const{name:c}=l.value[0];if(o.startsWith("ns"))this._getUserFuncArgumentsCompletionItemsToCache(l.children,s?`${s}.${c}`:c);else{const u=new Map;l.value.reduce((g,h)=>{const D=h.args;return D&&D.length&&D.forEach(P=>{g.set(P.name,P)}),g},u);const f=this._getNamedArgumentsCompletionList([...u.values()]),x=s?`${s}.${c}`:c;this._userFuncArgsCache.set(x,f)}}}_getNamedArgumentsCompletionList(n){return n.map(s=>{const{name:o,desc:l,displayType:c}=s,u=`${o} = `,f=Array.isArray(l)?l.join(this._formatter.delimiter):l||"";return{label:u,documentation:{value:this._formatter.paragraph(this._formatter.bold(ve.Description),this._formatter.lineBreak,f)},insertText:u,detail:`(${ve.parameter}) ${ve.types} ${c}`,kind:qe.languages.CompletionItemKind.Text,sortText:`0_${u}`}})}_getVariableCompletionItem(n,s=2,o=!0){const l=this._extractExamples(n),c=this._extractDescription(n),u=[this._createDescriptionSection(c)];l.length?u.push(this._createExampleSection(l)):n.syntax&&n.syntax.length&&u.push(this._createSyntaxSection(n.syntax));const f={value:u.join(this._formatter.lineBreak)},x=o?ve.variables:ve.userDefinedVariable;return{documentation:f,label:n.name,insertText:n.name,kind:qe.languages.CompletionItemKind.Variable,sortText:`${s}_${n.name}`,detail:`(${x}) ${n.type}`}}_getKeywordCompletionItem(n,s=2){const o=this._extractExamples(n),l=this._extractDescription(n),c=[this._createDescriptionSection(l)];return o.length?c.push(this._createExampleSection(o)):n.syntax&&n.syntax.length&&c.push(this._createSyntaxSection(n.syntax)),{documentation:{value:c.join(this._formatter.lineBreak)},label:n.name,insertText:n.name,kind:qe.languages.CompletionItemKind.Keyword,sortText:`${s}_${n.name}`,detail:`(${ve.keywords})`}}_getTypeCompletionItem(n){const s=this._extractDescription(n);return{documentation:{value:this._createDescriptionSection(s)},label:n.name,insertText:n.name,kind:qe.languages.CompletionItemKind.Keyword,sortText:`1_${n.name}`,detail:`(${ve.types})`}}_getCustomTypeCompletionItem(n){const s=this._extractDescription(n);return{documentation:{value:this._createDescriptionSection(s)},label:n.name,insertText:n.name,kind:qe.languages.CompletionItemKind.Keyword,sortText:`2_${n.name}`,detail:`(${ve.userDefinedType})`}}_getInstanceTypeCompletionItemProp(n){const s=this._extractDescription(n),o=[];return s&&o.push(this._formatter.paragraph(this._formatter.bold(it.Description),this._formatter.lineBreak,s)),{documentation:{value:o.join(this._formatter.lineBreak)},label:n.name,insertText:n.name,kind:qe.languages.CompletionItemKind.Field,sortText:`2_${n.name}`,detail:`(${ve.field}) ${n.type}`}}_getFunctionCompletionItem(n,s=2,o=!0){var R;const l=n.returnedTypes&&n.returnedTypes[0]||n.syntax&&n.syntax[0]&&((R=n.syntax[0].split("→").pop())==null?void 0:R.trim()),c=this._extractExamples(n),u=this._extractDescription(n),f=[this._createDescriptionSection(u)];c.length?f.push(this._createExampleSection(c)):n.syntax&&n.syntax.length&&f.push(this._createSyntaxSection(n.syntax)),n.returns&&n.returns.length&&f.push(this._createReturnSection(n.returns));const x={value:f.join(this._formatter.lineBreak)},g=n.name,h=o?ve.functions:ve.userDefinedFunction,D=n.template,P=D?`${Dd(g)}<\${1}>`:g;return{documentation:x,label:D?`${g.replace(/<.+>/,"")}<type>`:g,kind:qe.languages.CompletionItemKind.Function,sortText:`${s}_${g}`,insertTextRules:qe.languages.CompletionItemInsertTextRule.InsertAsSnippet,insertText:P+this.bracketsPostfix,originInsertText:P,detail:`(${h}) ${ve.returns} ${l}`,command:{id:"tcc.editor.function",title:"",arguments:[D?"editor.action.triggerSuggest":"editor.action.triggerParameterHints"]}}}_getAnnotationCompletionItem(n){const s=this._extractDescription(n),o=this._extractExamples(n),l=[this._createDescriptionSection(s)];return o.length&&l.push(this._createExampleSection(o)),{documentation:{value:l.join(this._formatter.lineBreak)},label:n.name,insertText:n.name.replace("@",""),kind:qe.languages.CompletionItemKind.Keyword,detail:`(${ve.annotations})`}}_getNamespaceCompletionItem(n,s=2){const o=[this._createDescriptionSection(ve.namespaceDesc)];return{label:n.name,documentation:{value:o.join(this._formatter.lineBreak)},detail:`(${ve.namespace}) ${n.name}`,insertText:n.name,sortText:`${s}_${n.name}`,kind:qe.languages.CompletionItemKind.Module}}_extractExamples(n){let s;return n.examples||n.detailedDesc&&((s=n.detailedDesc[0])===null||s===void 0?void 0:s.examples)||[]}_extractDescription(n){return Array.isArray(n.desc)?n.desc.join(this._formatter.lineBreak):n.desc||""}_createExampleSection(n){return this._formatter.paragraph(this._formatter.bold(it.Example),this._formatter.pineCode(n.join(this._formatter.lineBreak)))}_createSyntaxSection(n){return this._formatter.paragraph(this._formatter.bold(it.Syntax),this._formatter.pineCode(n.join(this._formatter.lineBreak)))}_createReturnSection(n){return this._formatter.paragraph(this._formatter.bold(it.Returns),this._formatter.lineBreak,n.join(this._formatter.lineBreak))}_createDescriptionSection(n){return!n||n.trim().length===0?"":this._formatter.paragraph(this._formatter.bold(it.Description),this._formatter.lineBreak,n)}}const qt=new Sd;class Ed{constructor(){Object.defineProperty(this,"_userFunctions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userVariables",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userTypes",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userMethods",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_imports",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_overloadsFuncs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._userFunctions=new Map,this._userVariables=new Map,this._userTypes=new Map,this._userMethods=new Map,this._imports=new Map,this._overloadsFuncs=[]}setUserDefined(n,s){const{functions:o,variables:l,types:c,methods:u,imports:f}=n;o&&(this._userFunctions=o),l&&(this._userVariables=l),c&&(this._userTypes=c),u&&(this._userMethods=u),f&&(this._imports=f),this._overloadsFuncs=s}parseLineContentFuncVar(n,s,o,l){let c=(o==null?void 0:o.getLineContent(s))||"";const u=c.indexOf("//");if(this._removeString(c).indexOf("//")!==-1&&u<=n)return;c=c+" ";const f=this._getVariablesDocVal(c,n,s);if(f){if(f.isBuildIn){const h=o==null?void 0:o.getWordAtPosition(l||new qe.Position(s,n));if(((o==null?void 0:o.getValueInRange({startLineNumber:s,startColumn:(h==null?void 0:h.endColumn)||0,endLineNumber:s,endColumn:((h==null?void 0:h.endColumn)||0)+2}))||"").trim().startsWith("="))return null}return f}const x=this._getFuncsDocVal(c,n,s);if(x)return x;const g=c.match(/[a-zA-Z_][a-zA-Z_0-9]*(\s*\.\s*[a-zA-Z_][a-zA-Z_0-9]*)*(?=\s*<)/g);if(g){const h=this._matchContent(g,c,n);if(h){const D=this._getBuildInOther(h.name);if(D)return{docValue:D,isBuildIn:!0,index:0};{const P=this._getBuildInFunc(`${h.name}<type>`);if(P)return{docValue:P,isBuildIn:!0,index:0}}}}return this._getImportDocVal(c,n,s)}_getImportDocVal(n,s,o){const l=new RegExp("(?<=(import(\\s+)))([a-zA-Z\\d\\$_\\-\\.\\u00a1-\\uffff\\/]+)","g"),c=new RegExp("(?<=(as\\b)(\\s+))([a-zA-Z\\d\\_\\u00a1\\uffff\\/]+)","g"),u=n.match(l);if(u){const f=this._matchContent(u,n,s);if(f){const g=this._imports.get(f.name);if(g)return g}const x=n.match(c);if(x){const g=this._matchContent(x,n,s);if(g){for(const[h,D]of this._imports)if(D.name===g.name)return D}}}return null}_getBuildInFunc(n){return lt.functions.get(n)}_getBuildInMethod(n){return lt.methods.get(n)}_getBuildInOther(n){const{keywords:s,variables:o,constants:l,types:c}=lt;return s.get(n)||o.get(n)||l.get(n)||c.get(n)}parseCurrentInputFunc(n,s=!1,o=!1){let l=n.length-1,c=0,u=s,f=o;for(;l>=0;){const x=n.charAt(l);if(l-=1,/['"]/.test(x)){const g=x;if(x==="'"){if(u){u=!1;continue}}else if(f){f=!1;continue}for(;l>=0;){const h=n.charAt(l);if(l-=1,h===g)break}}if(!(u||f)&&(/\)/.test(x)&&(c+=1),/\(/.test(x))){if(c>0){c-=1;continue}let g="";for(;l>=0;){const h=n.charAt(l);if(l-=1,!(/\s/.test(h)&&!g)){if(/[^\w.]/.test(h))break;g=h+g}}if(g)return{funcName:g,startIndex:l+1}}}}parseCurrentInputFuncAndArg(n,s=!1,o=!1){const{funcName:l,startIndex:c}=this.parseCurrentInputFunc(n,s,o)||{};if(l&&typeof c=="number"){let u=n.slice(c+l.length).trim().slice(1),f=-1;if(s&&(f=u.lastIndexOf("'")),o){const h=u.lastIndexOf('"');(h!==-1&&h<f||f===-1)&&(f=h)}f!==-1&&(u=u.substring(0,f));const g=u.replace(/[\w.]+\(.*\)/g,"").split(",").map(h=>{const D=h.trim().split("=");return D.length<=1?"":D[0].trim()});return{funcName:l,args:g}}}_removeString(n){return n.replace(/\\"|\\'/g,"").replace(/"[^"]*"|'[^']*'/g,"")}_getVariablesDocVal(n,s,o){const l=this._removeString(n).replace(/\/\/.*/g,"").match(/[a-zA-Z_][a-zA-Z_0-9]*(\s*\.\s*[a-zA-Z_][a-zA-Z_0-9]*)*(?=\s*[^(a-zA-Z_0-9."'<])/g);if(l){const c=this._matchContent(l,n,s);if(c){const u={docValue:void 0,isBuildIn:!0,index:0},f=this._getBuildInOther(c.name);if(f)return u.docValue=f,u;const x=this._getUserVariablesDocVal(c.name,s,o);if(x)return Object.assign(u,{docValue:[x],isBuildIn:!1});const g=this._getUserTypesDocVal(c.name);if(g)return Object.assign(u,{docValue:g,isBuildIn:!1});const h=this._getTypesAndFileds(n,c.name,s,o);if(h&&typeof h!="string")return Object.assign(u,{docValue:[h],isBuildIn:!1})}}}_getUserVariablesDocVal(n,s,o){const u=[...this._userVariables.get(n)||[]].sort((f,x)=>(x.scope||0)-(f.scope||0)).find(f=>{const x=f.range;return((x==null?void 0:x.startColumn)||0)<=s&&((x==null?void 0:x.startLineNumber)||0)<=o&&((x==null?void 0:x.endLineNumber)||0)>=o});if(u)return u.title=ve.userDefinedVariable,u.type=this._arrayTypeTransform(u.type),u}_getUserTypesDocVal(n){const s=this._userTypes.get(n);if(s)return s[0].title=ve.userDefinedType,s}_getTypesAndFileds(n,s,o,l){var c,u;if(s.includes(".")){const f=s.split(".");let x=f[0],g,h=null,D=n.indexOf(s,o-s.length)+1,P=D+x.length-1;for(const R of f.slice(1)){if(!h){const U=D<=o&&P>=o,L=this._getUserVariablesDocVal(x,o,l);if(U&&L)return L;h=L==null?void 0:L.type}if(h){g=h,D=P+2,P=P+R.length+1;const U=this._userTypes.get(h)||lt.types.get(h),L=(u=(c=U==null?void 0:U[0])==null?void 0:c.fields)==null?void 0:u.find(X=>X.name===R);if(L&&D<=o&&P>=o)return{name:`${h}.${R}`,desc:L.desc,type:this._arrayTypeTransform(L.type),title:ve.field};h=L==null?void 0:L.type}else x=`${x}.${R}`,P=P+R.length+1}return g}}_getFuncsDocVal(n,s,o){const l=n.match(/[a-zA-Z_][a-zA-Z_0-9]*(\s*\.\s*[a-zA-Z_][a-zA-Z_0-9]*)*(?=\s*\()/g);if(l){const c=this._matchContent(l,n,s);if(c){const u={docValue:void 0,isBuildIn:!0,endIndex:c.endIndex,index:0},f=this._getBuildInFunc(c.name);if(f)return u.index=this._getOverloadsFuncIndex(f,s,c.name,o),Object.assign(u,{docValue:f});const x=this._getUserFuncsDocVal(c.name);if(x)return u.index=this._getOverloadsFuncIndex(x,s,c.name,o),Object.assign(u,{docValue:x,isBuildIn:!1});const g=this._getUserVarFuncsDocVal(n,c.name,s,o);if(g)return Object.assign(u,{docValue:[g],isBuildIn:!1})}}}_getOverloadsFuncIndex(n,s,o,l){if(n.length>1){const c=this._overloadsFuncs.find(u=>u.name===o&&u.line===l&&u.startColumn<=s&&u.endColumn>=s);if(c)return c.index}return 0}_getUserFuncsDocVal(n){const s=this._userFunctions.get(n);if(s){for(const o of s)o.title=ve.userDefinedFunction;return s}}_getUserMethodsDocVal(n){const s=this._userMethods.get(n);if(s){for(const o of s)o.title=ve.userDefinedFunction;return s}}_getUserVarFuncsDocVal(n,s,o,l){var c;if(s.includes(".")){const u=s.split("."),f=this._getTypesAndFileds(n,s,o,l);if(typeof f=="string"){const g=`${this._arrayTypeTransform(f).replace(/<[^<>]+>/,"").replace(/(series|simple|const|input)\s+([\w\d.]+)/,"$2")}.${u.pop()}`,h=this._getBuildInMethod(g);if(h){const D=this._getOverloadsFuncIndex(h,o,g,l);return{...h[0],name:g,index:D}}return(c=this._getUserMethodsDocVal(g))==null?void 0:c[0]}else return f}}_arrayTypeTransform(n=""){return n.includes("[]")?`array<${n.replace("[]","")}>`:n}_matchContent(n,s,o){let l=0;for(const c of n){l=o-c.length;const u=s.indexOf(c,l);if(l=u+c.length,this._judgeVal(s,u,l)&&u+1<=o&&l>=o)return{name:c,endIndex:l}}}_judgeVal(n,s,o){const l=n.charAt(s-1),c=/[\w\d."'/]/;if(c.test(l))return!1;const u=n.charAt(o);return!c.test(u)}}const Er=new Ed;var Ws={exports:{}};/**
108
108
  * @license
109
109
  * Lodash <https://lodash.com/>
110
110
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
111
111
  * Released under MIT license <https://lodash.com/license>
112
112
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
113
113
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
114
- */Ws.exports,function(a,n){(function(){var s,o="4.17.21",l=200,c="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",f="Invalid `variable` option passed into `_.template`",x="__lodash_hash_undefined__",g=500,h="__lodash_placeholder__",T=1,M=2,O=4,B=1,P=2,X=1,J=2,G=4,F=8,A=16,k=32,U=64,j=128,ae=256,oe=512,ce=30,gt="...",zt=800,Re=16,Fe=1,V=2,be=3,Ee=1/0,Oe=9007199254740991,bt=17976931348623157e292,St=NaN,te=4294967295,pe=te-1,Ke=te>>>1,jt=[["ary",j],["bind",X],["bindKey",J],["curry",F],["curryRight",A],["flip",oe],["partial",k],["partialRight",U],["rearg",ae]],Ye="[object Arguments]",nr="[object Array]",ys="[object AsyncFunction]",Ft="[object Boolean]",Ht="[object Date]",Pr="[object DOMException]",Mr="[object Error]",xr="[object Function]",aa="[object GeneratorFunction]",ct="[object Map]",Bt="[object Number]",Or="[object Null]",xt="[object Object]",_s="[object Promise]",Rr="[object Proxy]",hr="[object RegExp]",pt="[object Set]",Wt="[object String]",Fr="[object Symbol]",Tn="[object Undefined]",ir="[object WeakMap]",na="[object WeakSet]",Et="[object ArrayBuffer]",or="[object DataView]",Br="[object Float32Array]",Ur="[object Float64Array]",wr="[object Int8Array]",fs="[object Int16Array]",gs="[object Int32Array]",bs="[object Uint8Array]",xs="[object Uint8ClampedArray]",hs="[object Uint16Array]",ws="[object Uint32Array]",Dn=/\b__p \+= '';/g,vs=/\b(__p \+=) '' \+/g,ia=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Gt=/&(?:amp|lt|gt|quot|#39);/g,Kr=/[&<>"']/g,Ts=RegExp(Gt.source),oa=RegExp(Kr.source),kn=/<%-([\s\S]+?)%>/g,la=/<%([\s\S]+?)%>/g,ca=/<%=([\s\S]+?)%>/g,pa=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,da=/^\w*$/,In=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ds=/[\\^$.*+?()[\]{}|]/g,ma=RegExp(Ds.source),ks=/^\s+/,An=/\s/,qn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Cn=/\{\n\/\* \[wrapped with (.+)\] \*/,_=/,? & /,N=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,K=/[()=,{}\[\]\/\s]/,ee=/\\(\\)?/g,ge=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,he=/\w*$/,ue=/^[-+]0x[0-9a-f]+$/i,de=/^0b[01]+$/i,je=/^\[object .+?Constructor\]$/,Ce=/^0o[0-7]+$/i,Ne=/^(?:0|[1-9]\d*)$/,et=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Nt=/($^)/,ua=/['\n\r\u2028\u2029\\]/g,tt="\\ud800-\\udfff",Hm="\\u0300-\\u036f",Wm="\\ufe20-\\ufe2f",Gm="\\u20d0-\\u20ff",Oo=Hm+Wm+Gm,Ro="\\u2700-\\u27bf",Fo="a-z\\xdf-\\xf6\\xf8-\\xff",Xm="\\xac\\xb1\\xd7\\xf7",Vm="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ym="\\u2000-\\u206f",Qm=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Bo="A-Z\\xc0-\\xd6\\xd8-\\xde",Uo="\\ufe0e\\ufe0f",Ko=Xm+Vm+Ym+Qm,zn="['’]",Zm="["+tt+"]",$o="["+Ko+"]",ya="["+Oo+"]",jo="\\d+",Jm="["+Ro+"]",Ho="["+Fo+"]",Wo="[^"+tt+Ko+jo+Ro+Fo+Bo+"]",Sn="\\ud83c[\\udffb-\\udfff]",eu="(?:"+ya+"|"+Sn+")",Go="[^"+tt+"]",En="(?:\\ud83c[\\udde6-\\uddff]){2}",Nn="[\\ud800-\\udbff][\\udc00-\\udfff]",$r="["+Bo+"]",Xo="\\u200d",Vo="(?:"+Ho+"|"+Wo+")",tu="(?:"+$r+"|"+Wo+")",Yo="(?:"+zn+"(?:d|ll|m|re|s|t|ve))?",Qo="(?:"+zn+"(?:D|LL|M|RE|S|T|VE))?",Zo=eu+"?",Jo="["+Uo+"]?",ru="(?:"+Xo+"(?:"+[Go,En,Nn].join("|")+")"+Jo+Zo+")*",su="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",au="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",el=Jo+Zo+ru,nu="(?:"+[Jm,En,Nn].join("|")+")"+el,iu="(?:"+[Go+ya+"?",ya,En,Nn,Zm].join("|")+")",ou=RegExp(zn,"g"),lu=RegExp(ya,"g"),Ln=RegExp(Sn+"(?="+Sn+")|"+iu+el,"g"),cu=RegExp([$r+"?"+Ho+"+"+Yo+"(?="+[$o,$r,"$"].join("|")+")",tu+"+"+Qo+"(?="+[$o,$r+Vo,"$"].join("|")+")",$r+"?"+Vo+"+"+Yo,$r+"+"+Qo,au,su,jo,nu].join("|"),"g"),pu=RegExp("["+Xo+tt+Oo+Uo+"]"),du=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,mu=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],uu=-1,Ie={};Ie[Br]=Ie[Ur]=Ie[wr]=Ie[fs]=Ie[gs]=Ie[bs]=Ie[xs]=Ie[hs]=Ie[ws]=!0,Ie[Ye]=Ie[nr]=Ie[Et]=Ie[Ft]=Ie[or]=Ie[Ht]=Ie[Mr]=Ie[xr]=Ie[ct]=Ie[Bt]=Ie[xt]=Ie[hr]=Ie[pt]=Ie[Wt]=Ie[ir]=!1;var ke={};ke[Ye]=ke[nr]=ke[Et]=ke[or]=ke[Ft]=ke[Ht]=ke[Br]=ke[Ur]=ke[wr]=ke[fs]=ke[gs]=ke[ct]=ke[Bt]=ke[xt]=ke[hr]=ke[pt]=ke[Wt]=ke[Fr]=ke[bs]=ke[xs]=ke[hs]=ke[ws]=!0,ke[Mr]=ke[xr]=ke[ir]=!1;var yu={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},_u={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},fu={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},gu={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},bu=parseFloat,xu=parseInt,tl=typeof ss=="object"&&ss&&ss.Object===Object&&ss,hu=typeof self=="object"&&self&&self.Object===Object&&self,He=tl||hu||Function("return this")(),Pn=n&&!n.nodeType&&n,vr=Pn&&!0&&a&&!a.nodeType&&a,rl=vr&&vr.exports===Pn,Mn=rl&&tl.process,ht=function(){try{var w=vr&&vr.require&&vr.require("util").types;return w||Mn&&Mn.binding&&Mn.binding("util")}catch{}}(),sl=ht&&ht.isArrayBuffer,al=ht&&ht.isDate,nl=ht&&ht.isMap,il=ht&&ht.isRegExp,ol=ht&&ht.isSet,ll=ht&&ht.isTypedArray;function dt(w,C,D){switch(D.length){case 0:return w.call(C);case 1:return w.call(C,D[0]);case 2:return w.call(C,D[0],D[1]);case 3:return w.call(C,D[0],D[1],D[2])}return w.apply(C,D)}function wu(w,C,D,H){for(var re=-1,xe=w==null?0:w.length;++re<xe;){var Be=w[re];C(H,Be,D(Be),w)}return H}function wt(w,C){for(var D=-1,H=w==null?0:w.length;++D<H&&C(w[D],D,w)!==!1;);return w}function vu(w,C){for(var D=w==null?0:w.length;D--&&C(w[D],D,w)!==!1;);return w}function cl(w,C){for(var D=-1,H=w==null?0:w.length;++D<H;)if(!C(w[D],D,w))return!1;return!0}function lr(w,C){for(var D=-1,H=w==null?0:w.length,re=0,xe=[];++D<H;){var Be=w[D];C(Be,D,w)&&(xe[re++]=Be)}return xe}function _a(w,C){var D=w==null?0:w.length;return!!D&&jr(w,C,0)>-1}function On(w,C,D){for(var H=-1,re=w==null?0:w.length;++H<re;)if(D(C,w[H]))return!0;return!1}function qe(w,C){for(var D=-1,H=w==null?0:w.length,re=Array(H);++D<H;)re[D]=C(w[D],D,w);return re}function cr(w,C){for(var D=-1,H=C.length,re=w.length;++D<H;)w[re+D]=C[D];return w}function Rn(w,C,D,H){var re=-1,xe=w==null?0:w.length;for(H&&xe&&(D=w[++re]);++re<xe;)D=C(D,w[re],re,w);return D}function Tu(w,C,D,H){var re=w==null?0:w.length;for(H&&re&&(D=w[--re]);re--;)D=C(D,w[re],re,w);return D}function Fn(w,C){for(var D=-1,H=w==null?0:w.length;++D<H;)if(C(w[D],D,w))return!0;return!1}var Du=Bn("length");function ku(w){return w.split("")}function Iu(w){return w.match(N)||[]}function pl(w,C,D){var H;return D(w,function(re,xe,Be){if(C(re,xe,Be))return H=xe,!1}),H}function fa(w,C,D,H){for(var re=w.length,xe=D+(H?1:-1);H?xe--:++xe<re;)if(C(w[xe],xe,w))return xe;return-1}function jr(w,C,D){return C===C?Ru(w,C,D):fa(w,dl,D)}function Au(w,C,D,H){for(var re=D-1,xe=w.length;++re<xe;)if(H(w[re],C))return re;return-1}function dl(w){return w!==w}function ml(w,C){var D=w==null?0:w.length;return D?Kn(w,C)/D:St}function Bn(w){return function(C){return C==null?s:C[w]}}function Un(w){return function(C){return w==null?s:w[C]}}function ul(w,C,D,H,re){return re(w,function(xe,Be,De){D=H?(H=!1,xe):C(D,xe,Be,De)}),D}function qu(w,C){var D=w.length;for(w.sort(C);D--;)w[D]=w[D].value;return w}function Kn(w,C){for(var D,H=-1,re=w.length;++H<re;){var xe=C(w[H]);xe!==s&&(D=D===s?xe:D+xe)}return D}function $n(w,C){for(var D=-1,H=Array(w);++D<w;)H[D]=C(D);return H}function Cu(w,C){return qe(C,function(D){return[D,w[D]]})}function yl(w){return w&&w.slice(0,bl(w)+1).replace(ks,"")}function mt(w){return function(C){return w(C)}}function jn(w,C){return qe(C,function(D){return w[D]})}function Is(w,C){return w.has(C)}function _l(w,C){for(var D=-1,H=w.length;++D<H&&jr(C,w[D],0)>-1;);return D}function fl(w,C){for(var D=w.length;D--&&jr(C,w[D],0)>-1;);return D}function zu(w,C){for(var D=w.length,H=0;D--;)w[D]===C&&++H;return H}var Su=Un(yu),Eu=Un(_u);function Nu(w){return"\\"+gu[w]}function Lu(w,C){return w==null?s:w[C]}function Hr(w){return pu.test(w)}function Pu(w){return du.test(w)}function Mu(w){for(var C,D=[];!(C=w.next()).done;)D.push(C.value);return D}function Hn(w){var C=-1,D=Array(w.size);return w.forEach(function(H,re){D[++C]=[re,H]}),D}function gl(w,C){return function(D){return w(C(D))}}function pr(w,C){for(var D=-1,H=w.length,re=0,xe=[];++D<H;){var Be=w[D];(Be===C||Be===h)&&(w[D]=h,xe[re++]=D)}return xe}function ga(w){var C=-1,D=Array(w.size);return w.forEach(function(H){D[++C]=H}),D}function Ou(w){var C=-1,D=Array(w.size);return w.forEach(function(H){D[++C]=[H,H]}),D}function Ru(w,C,D){for(var H=D-1,re=w.length;++H<re;)if(w[H]===C)return H;return-1}function Fu(w,C,D){for(var H=D+1;H--;)if(w[H]===C)return H;return H}function Wr(w){return Hr(w)?Uu(w):Du(w)}function Lt(w){return Hr(w)?Ku(w):ku(w)}function bl(w){for(var C=w.length;C--&&An.test(w.charAt(C)););return C}var Bu=Un(fu);function Uu(w){for(var C=Ln.lastIndex=0;Ln.test(w);)++C;return C}function Ku(w){return w.match(Ln)||[]}function $u(w){return w.match(cu)||[]}var ju=function w(C){C=C==null?He:Gr.defaults(He.Object(),C,Gr.pick(He,mu));var D=C.Array,H=C.Date,re=C.Error,xe=C.Function,Be=C.Math,De=C.Object,Wn=C.RegExp,Hu=C.String,vt=C.TypeError,ba=D.prototype,Wu=xe.prototype,Xr=De.prototype,xa=C["__core-js_shared__"],ha=Wu.toString,Te=Xr.hasOwnProperty,Gu=0,xl=function(){var e=/[^.]+$/.exec(xa&&xa.keys&&xa.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),wa=Xr.toString,Xu=ha.call(De),Vu=He._,Yu=Wn("^"+ha.call(Te).replace(Ds,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),va=rl?C.Buffer:s,dr=C.Symbol,Ta=C.Uint8Array,hl=va?va.allocUnsafe:s,Da=gl(De.getPrototypeOf,De),wl=De.create,vl=Xr.propertyIsEnumerable,ka=ba.splice,Tl=dr?dr.isConcatSpreadable:s,As=dr?dr.iterator:s,Tr=dr?dr.toStringTag:s,Ia=function(){try{var e=qr(De,"defineProperty");return e({},"",{}),e}catch{}}(),Qu=C.clearTimeout!==He.clearTimeout&&C.clearTimeout,Zu=H&&H.now!==He.Date.now&&H.now,Ju=C.setTimeout!==He.setTimeout&&C.setTimeout,Aa=Be.ceil,qa=Be.floor,Gn=De.getOwnPropertySymbols,ey=va?va.isBuffer:s,Dl=C.isFinite,ty=ba.join,ry=gl(De.keys,De),Ue=Be.max,Xe=Be.min,sy=H.now,ay=C.parseInt,kl=Be.random,ny=ba.reverse,Xn=qr(C,"DataView"),qs=qr(C,"Map"),Vn=qr(C,"Promise"),Vr=qr(C,"Set"),Cs=qr(C,"WeakMap"),zs=qr(De,"create"),Ca=Cs&&new Cs,Yr={},iy=Cr(Xn),oy=Cr(qs),ly=Cr(Vn),cy=Cr(Vr),py=Cr(Cs),za=dr?dr.prototype:s,Ss=za?za.valueOf:s,Il=za?za.toString:s;function d(e){if(Le(e)&&!se(e)&&!(e instanceof ye)){if(e instanceof Tt)return e;if(Te.call(e,"__wrapped__"))return Ac(e)}return new Tt(e)}var Qr=function(){function e(){}return function(t){if(!ze(t))return{};if(wl)return wl(t);e.prototype=t;var r=new e;return e.prototype=s,r}}();function Sa(){}function Tt(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=s}d.templateSettings={escape:kn,evaluate:la,interpolate:ca,variable:"",imports:{_:d}},d.prototype=Sa.prototype,d.prototype.constructor=d,Tt.prototype=Qr(Sa.prototype),Tt.prototype.constructor=Tt;function ye(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=te,this.__views__=[]}function dy(){var e=new ye(this.__wrapped__);return e.__actions__=rt(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=rt(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=rt(this.__views__),e}function my(){if(this.__filtered__){var e=new ye(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function uy(){var e=this.__wrapped__.value(),t=this.__dir__,r=se(e),i=t<0,p=r?e.length:0,m=k_(0,p,this.__views__),y=m.start,b=m.end,v=b-y,z=i?b:y-1,S=this.__iteratees__,E=S.length,$=0,W=Xe(v,this.__takeCount__);if(!r||!i&&p==v&&W==v)return Yl(e,this.__actions__);var Q=[];e:for(;v--&&$<W;){z+=t;for(var ie=-1,Z=e[z];++ie<E;){var me=S[ie],fe=me.iteratee,_t=me.type,Je=fe(Z);if(_t==V)Z=Je;else if(!Je){if(_t==Fe)continue e;break e}}Q[$++]=Z}return Q}ye.prototype=Qr(Sa.prototype),ye.prototype.constructor=ye;function Dr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function yy(){this.__data__=zs?zs(null):{},this.size=0}function _y(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function fy(e){var t=this.__data__;if(zs){var r=t[e];return r===x?s:r}return Te.call(t,e)?t[e]:s}function gy(e){var t=this.__data__;return zs?t[e]!==s:Te.call(t,e)}function by(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=zs&&t===s?x:t,this}Dr.prototype.clear=yy,Dr.prototype.delete=_y,Dr.prototype.get=fy,Dr.prototype.has=gy,Dr.prototype.set=by;function Xt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function xy(){this.__data__=[],this.size=0}function hy(e){var t=this.__data__,r=Ea(t,e);if(r<0)return!1;var i=t.length-1;return r==i?t.pop():ka.call(t,r,1),--this.size,!0}function wy(e){var t=this.__data__,r=Ea(t,e);return r<0?s:t[r][1]}function vy(e){return Ea(this.__data__,e)>-1}function Ty(e,t){var r=this.__data__,i=Ea(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}Xt.prototype.clear=xy,Xt.prototype.delete=hy,Xt.prototype.get=wy,Xt.prototype.has=vy,Xt.prototype.set=Ty;function Vt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function Dy(){this.size=0,this.__data__={hash:new Dr,map:new(qs||Xt),string:new Dr}}function ky(e){var t=ja(this,e).delete(e);return this.size-=t?1:0,t}function Iy(e){return ja(this,e).get(e)}function Ay(e){return ja(this,e).has(e)}function qy(e,t){var r=ja(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}Vt.prototype.clear=Dy,Vt.prototype.delete=ky,Vt.prototype.get=Iy,Vt.prototype.has=Ay,Vt.prototype.set=qy;function kr(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Vt;++t<r;)this.add(e[t])}function Cy(e){return this.__data__.set(e,x),this}function zy(e){return this.__data__.has(e)}kr.prototype.add=kr.prototype.push=Cy,kr.prototype.has=zy;function Pt(e){var t=this.__data__=new Xt(e);this.size=t.size}function Sy(){this.__data__=new Xt,this.size=0}function Ey(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Ny(e){return this.__data__.get(e)}function Ly(e){return this.__data__.has(e)}function Py(e,t){var r=this.__data__;if(r instanceof Xt){var i=r.__data__;if(!qs||i.length<l-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new Vt(i)}return r.set(e,t),this.size=r.size,this}Pt.prototype.clear=Sy,Pt.prototype.delete=Ey,Pt.prototype.get=Ny,Pt.prototype.has=Ly,Pt.prototype.set=Py;function Al(e,t){var r=se(e),i=!r&&zr(e),p=!r&&!i&&fr(e),m=!r&&!i&&!p&&ts(e),y=r||i||p||m,b=y?$n(e.length,Hu):[],v=b.length;for(var z in e)(t||Te.call(e,z))&&!(y&&(z=="length"||p&&(z=="offset"||z=="parent")||m&&(z=="buffer"||z=="byteLength"||z=="byteOffset")||Jt(z,v)))&&b.push(z);return b}function ql(e){var t=e.length;return t?e[ii(0,t-1)]:s}function My(e,t){return Ha(rt(e),Ir(t,0,e.length))}function Oy(e){return Ha(rt(e))}function Yn(e,t,r){(r!==s&&!Mt(e[t],r)||r===s&&!(t in e))&&Yt(e,t,r)}function Es(e,t,r){var i=e[t];(!(Te.call(e,t)&&Mt(i,r))||r===s&&!(t in e))&&Yt(e,t,r)}function Ea(e,t){for(var r=e.length;r--;)if(Mt(e[r][0],t))return r;return-1}function Ry(e,t,r,i){return mr(e,function(p,m,y){t(i,p,r(p),y)}),i}function Cl(e,t){return e&&Kt(t,$e(t),e)}function Fy(e,t){return e&&Kt(t,at(t),e)}function Yt(e,t,r){t=="__proto__"&&Ia?Ia(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Qn(e,t){for(var r=-1,i=t.length,p=D(i),m=e==null;++r<i;)p[r]=m?s:Si(e,t[r]);return p}function Ir(e,t,r){return e===e&&(r!==s&&(e=e<=r?e:r),t!==s&&(e=e>=t?e:t)),e}function Dt(e,t,r,i,p,m){var y,b=t&T,v=t&M,z=t&O;if(r&&(y=p?r(e,i,p,m):r(e)),y!==s)return y;if(!ze(e))return e;var S=se(e);if(S){if(y=A_(e),!b)return rt(e,y)}else{var E=Ve(e),$=E==xr||E==aa;if(fr(e))return Jl(e,b);if(E==xt||E==Ye||$&&!p){if(y=v||$?{}:bc(e),!b)return v?f_(e,Fy(y,e)):__(e,Cl(y,e))}else{if(!ke[E])return p?e:{};y=q_(e,E,b)}}m||(m=new Pt);var W=m.get(e);if(W)return W;m.set(e,y),Gc(e)?e.forEach(function(Z){y.add(Dt(Z,t,r,Z,e,m))}):Hc(e)&&e.forEach(function(Z,me){y.set(me,Dt(Z,t,r,me,e,m))});var Q=z?v?gi:fi:v?at:$e,ie=S?s:Q(e);return wt(ie||e,function(Z,me){ie&&(me=Z,Z=e[me]),Es(y,me,Dt(Z,t,r,me,e,m))}),y}function By(e){var t=$e(e);return function(r){return zl(r,e,t)}}function zl(e,t,r){var i=r.length;if(e==null)return!i;for(e=De(e);i--;){var p=r[i],m=t[p],y=e[p];if(y===s&&!(p in e)||!m(y))return!1}return!0}function Sl(e,t,r){if(typeof e!="function")throw new vt(u);return Fs(function(){e.apply(s,r)},t)}function Ns(e,t,r,i){var p=-1,m=_a,y=!0,b=e.length,v=[],z=t.length;if(!b)return v;r&&(t=qe(t,mt(r))),i?(m=On,y=!1):t.length>=l&&(m=Is,y=!1,t=new kr(t));e:for(;++p<b;){var S=e[p],E=r==null?S:r(S);if(S=i||S!==0?S:0,y&&E===E){for(var $=z;$--;)if(t[$]===E)continue e;v.push(S)}else m(t,E,i)||v.push(S)}return v}var mr=ac(Ut),El=ac(Jn,!0);function Uy(e,t){var r=!0;return mr(e,function(i,p,m){return r=!!t(i,p,m),r}),r}function Na(e,t,r){for(var i=-1,p=e.length;++i<p;){var m=e[i],y=t(m);if(y!=null&&(b===s?y===y&&!yt(y):r(y,b)))var b=y,v=m}return v}function Ky(e,t,r,i){var p=e.length;for(r=ne(r),r<0&&(r=-r>p?0:p+r),i=i===s||i>p?p:ne(i),i<0&&(i+=p),i=r>i?0:Vc(i);r<i;)e[r++]=t;return e}function Nl(e,t){var r=[];return mr(e,function(i,p,m){t(i,p,m)&&r.push(i)}),r}function We(e,t,r,i,p){var m=-1,y=e.length;for(r||(r=z_),p||(p=[]);++m<y;){var b=e[m];t>0&&r(b)?t>1?We(b,t-1,r,i,p):cr(p,b):i||(p[p.length]=b)}return p}var Zn=nc(),Ll=nc(!0);function Ut(e,t){return e&&Zn(e,t,$e)}function Jn(e,t){return e&&Ll(e,t,$e)}function La(e,t){return lr(t,function(r){return er(e[r])})}function Ar(e,t){t=yr(t,e);for(var r=0,i=t.length;e!=null&&r<i;)e=e[$t(t[r++])];return r&&r==i?e:s}function Pl(e,t,r){var i=t(e);return se(e)?i:cr(i,r(e))}function Qe(e){return e==null?e===s?Tn:Or:Tr&&Tr in De(e)?D_(e):O_(e)}function ei(e,t){return e>t}function $y(e,t){return e!=null&&Te.call(e,t)}function jy(e,t){return e!=null&&t in De(e)}function Hy(e,t,r){return e>=Xe(t,r)&&e<Ue(t,r)}function ti(e,t,r){for(var i=r?On:_a,p=e[0].length,m=e.length,y=m,b=D(m),v=1/0,z=[];y--;){var S=e[y];y&&t&&(S=qe(S,mt(t))),v=Xe(S.length,v),b[y]=!r&&(t||p>=120&&S.length>=120)?new kr(y&&S):s}S=e[0];var E=-1,$=b[0];e:for(;++E<p&&z.length<v;){var W=S[E],Q=t?t(W):W;if(W=r||W!==0?W:0,!($?Is($,Q):i(z,Q,r))){for(y=m;--y;){var ie=b[y];if(!(ie?Is(ie,Q):i(e[y],Q,r)))continue e}$&&$.push(Q),z.push(W)}}return z}function Wy(e,t,r,i){return Ut(e,function(p,m,y){t(i,r(p),m,y)}),i}function Ls(e,t,r){t=yr(t,e),e=vc(e,t);var i=e==null?e:e[$t(It(t))];return i==null?s:dt(i,e,r)}function Ml(e){return Le(e)&&Qe(e)==Ye}function Gy(e){return Le(e)&&Qe(e)==Et}function Xy(e){return Le(e)&&Qe(e)==Ht}function Ps(e,t,r,i,p){return e===t?!0:e==null||t==null||!Le(e)&&!Le(t)?e!==e&&t!==t:Vy(e,t,r,i,Ps,p)}function Vy(e,t,r,i,p,m){var y=se(e),b=se(t),v=y?nr:Ve(e),z=b?nr:Ve(t);v=v==Ye?xt:v,z=z==Ye?xt:z;var S=v==xt,E=z==xt,$=v==z;if($&&fr(e)){if(!fr(t))return!1;y=!0,S=!1}if($&&!S)return m||(m=new Pt),y||ts(e)?_c(e,t,r,i,p,m):v_(e,t,v,r,i,p,m);if(!(r&B)){var W=S&&Te.call(e,"__wrapped__"),Q=E&&Te.call(t,"__wrapped__");if(W||Q){var ie=W?e.value():e,Z=Q?t.value():t;return m||(m=new Pt),p(ie,Z,r,i,m)}}return $?(m||(m=new Pt),T_(e,t,r,i,p,m)):!1}function Yy(e){return Le(e)&&Ve(e)==ct}function ri(e,t,r,i){var p=r.length,m=p,y=!i;if(e==null)return!m;for(e=De(e);p--;){var b=r[p];if(y&&b[2]?b[1]!==e[b[0]]:!(b[0]in e))return!1}for(;++p<m;){b=r[p];var v=b[0],z=e[v],S=b[1];if(y&&b[2]){if(z===s&&!(v in e))return!1}else{var E=new Pt;if(i)var $=i(z,S,v,e,t,E);if(!($===s?Ps(S,z,B|P,i,E):$))return!1}}return!0}function Ol(e){if(!ze(e)||E_(e))return!1;var t=er(e)?Yu:je;return t.test(Cr(e))}function Qy(e){return Le(e)&&Qe(e)==hr}function Zy(e){return Le(e)&&Ve(e)==pt}function Jy(e){return Le(e)&&Qa(e.length)&&!!Ie[Qe(e)]}function Rl(e){return typeof e=="function"?e:e==null?nt:typeof e=="object"?se(e)?Ul(e[0],e[1]):Bl(e):ip(e)}function si(e){if(!Rs(e))return ry(e);var t=[];for(var r in De(e))Te.call(e,r)&&r!="constructor"&&t.push(r);return t}function e_(e){if(!ze(e))return M_(e);var t=Rs(e),r=[];for(var i in e)i=="constructor"&&(t||!Te.call(e,i))||r.push(i);return r}function ai(e,t){return e<t}function Fl(e,t){var r=-1,i=st(e)?D(e.length):[];return mr(e,function(p,m,y){i[++r]=t(p,m,y)}),i}function Bl(e){var t=xi(e);return t.length==1&&t[0][2]?hc(t[0][0],t[0][1]):function(r){return r===e||ri(r,e,t)}}function Ul(e,t){return wi(e)&&xc(t)?hc($t(e),t):function(r){var i=Si(r,e);return i===s&&i===t?Ei(r,e):Ps(t,i,B|P)}}function Pa(e,t,r,i,p){e!==t&&Zn(t,function(m,y){if(p||(p=new Pt),ze(m))t_(e,t,y,r,Pa,i,p);else{var b=i?i(Ti(e,y),m,y+"",e,t,p):s;b===s&&(b=m),Yn(e,y,b)}},at)}function t_(e,t,r,i,p,m,y){var b=Ti(e,r),v=Ti(t,r),z=y.get(v);if(z){Yn(e,r,z);return}var S=m?m(b,v,r+"",e,t,y):s,E=S===s;if(E){var $=se(v),W=!$&&fr(v),Q=!$&&!W&&ts(v);S=v,$||W||Q?se(b)?S=b:Pe(b)?S=rt(b):W?(E=!1,S=Jl(v,!0)):Q?(E=!1,S=ec(v,!0)):S=[]:Bs(v)||zr(v)?(S=b,zr(b)?S=Yc(b):(!ze(b)||er(b))&&(S=bc(v))):E=!1}E&&(y.set(v,S),p(S,v,i,m,y),y.delete(v)),Yn(e,r,S)}function Kl(e,t){var r=e.length;if(r)return t+=t<0?r:0,Jt(t,r)?e[t]:s}function $l(e,t,r){t.length?t=qe(t,function(m){return se(m)?function(y){return Ar(y,m.length===1?m[0]:m)}:m}):t=[nt];var i=-1;t=qe(t,mt(Y()));var p=Fl(e,function(m,y,b){var v=qe(t,function(z){return z(m)});return{criteria:v,index:++i,value:m}});return qu(p,function(m,y){return y_(m,y,r)})}function r_(e,t){return jl(e,t,function(r,i){return Ei(e,i)})}function jl(e,t,r){for(var i=-1,p=t.length,m={};++i<p;){var y=t[i],b=Ar(e,y);r(b,y)&&Ms(m,yr(y,e),b)}return m}function s_(e){return function(t){return Ar(t,e)}}function ni(e,t,r,i){var p=i?Au:jr,m=-1,y=t.length,b=e;for(e===t&&(t=rt(t)),r&&(b=qe(e,mt(r)));++m<y;)for(var v=0,z=t[m],S=r?r(z):z;(v=p(b,S,v,i))>-1;)b!==e&&ka.call(b,v,1),ka.call(e,v,1);return e}function Hl(e,t){for(var r=e?t.length:0,i=r-1;r--;){var p=t[r];if(r==i||p!==m){var m=p;Jt(p)?ka.call(e,p,1):ci(e,p)}}return e}function ii(e,t){return e+qa(kl()*(t-e+1))}function a_(e,t,r,i){for(var p=-1,m=Ue(Aa((t-e)/(r||1)),0),y=D(m);m--;)y[i?m:++p]=e,e+=r;return y}function oi(e,t){var r="";if(!e||t<1||t>Oe)return r;do t%2&&(r+=e),t=qa(t/2),t&&(e+=e);while(t);return r}function le(e,t){return Di(wc(e,t,nt),e+"")}function n_(e){return ql(rs(e))}function i_(e,t){var r=rs(e);return Ha(r,Ir(t,0,r.length))}function Ms(e,t,r,i){if(!ze(e))return e;t=yr(t,e);for(var p=-1,m=t.length,y=m-1,b=e;b!=null&&++p<m;){var v=$t(t[p]),z=r;if(v==="__proto__"||v==="constructor"||v==="prototype")return e;if(p!=y){var S=b[v];z=i?i(S,v,b):s,z===s&&(z=ze(S)?S:Jt(t[p+1])?[]:{})}Es(b,v,z),b=b[v]}return e}var Wl=Ca?function(e,t){return Ca.set(e,t),e}:nt,o_=Ia?function(e,t){return Ia(e,"toString",{configurable:!0,enumerable:!1,value:Li(t),writable:!0})}:nt;function l_(e){return Ha(rs(e))}function kt(e,t,r){var i=-1,p=e.length;t<0&&(t=-t>p?0:p+t),r=r>p?p:r,r<0&&(r+=p),p=t>r?0:r-t>>>0,t>>>=0;for(var m=D(p);++i<p;)m[i]=e[i+t];return m}function c_(e,t){var r;return mr(e,function(i,p,m){return r=t(i,p,m),!r}),!!r}function Ma(e,t,r){var i=0,p=e==null?i:e.length;if(typeof t=="number"&&t===t&&p<=Ke){for(;i<p;){var m=i+p>>>1,y=e[m];y!==null&&!yt(y)&&(r?y<=t:y<t)?i=m+1:p=m}return p}return li(e,t,nt,r)}function li(e,t,r,i){var p=0,m=e==null?0:e.length;if(m===0)return 0;t=r(t);for(var y=t!==t,b=t===null,v=yt(t),z=t===s;p<m;){var S=qa((p+m)/2),E=r(e[S]),$=E!==s,W=E===null,Q=E===E,ie=yt(E);if(y)var Z=i||Q;else z?Z=Q&&(i||$):b?Z=Q&&$&&(i||!W):v?Z=Q&&$&&!W&&(i||!ie):W||ie?Z=!1:Z=i?E<=t:E<t;Z?p=S+1:m=S}return Xe(m,pe)}function Gl(e,t){for(var r=-1,i=e.length,p=0,m=[];++r<i;){var y=e[r],b=t?t(y):y;if(!r||!Mt(b,v)){var v=b;m[p++]=y===0?0:y}}return m}function Xl(e){return typeof e=="number"?e:yt(e)?St:+e}function ut(e){if(typeof e=="string")return e;if(se(e))return qe(e,ut)+"";if(yt(e))return Il?Il.call(e):"";var t=e+"";return t=="0"&&1/e==-Ee?"-0":t}function ur(e,t,r){var i=-1,p=_a,m=e.length,y=!0,b=[],v=b;if(r)y=!1,p=On;else if(m>=l){var z=t?null:h_(e);if(z)return ga(z);y=!1,p=Is,v=new kr}else v=t?[]:b;e:for(;++i<m;){var S=e[i],E=t?t(S):S;if(S=r||S!==0?S:0,y&&E===E){for(var $=v.length;$--;)if(v[$]===E)continue e;t&&v.push(E),b.push(S)}else p(v,E,r)||(v!==b&&v.push(E),b.push(S))}return b}function ci(e,t){return t=yr(t,e),e=vc(e,t),e==null||delete e[$t(It(t))]}function Vl(e,t,r,i){return Ms(e,t,r(Ar(e,t)),i)}function Oa(e,t,r,i){for(var p=e.length,m=i?p:-1;(i?m--:++m<p)&&t(e[m],m,e););return r?kt(e,i?0:m,i?m+1:p):kt(e,i?m+1:0,i?p:m)}function Yl(e,t){var r=e;return r instanceof ye&&(r=r.value()),Rn(t,function(i,p){return p.func.apply(p.thisArg,cr([i],p.args))},r)}function pi(e,t,r){var i=e.length;if(i<2)return i?ur(e[0]):[];for(var p=-1,m=D(i);++p<i;)for(var y=e[p],b=-1;++b<i;)b!=p&&(m[p]=Ns(m[p]||y,e[b],t,r));return ur(We(m,1),t,r)}function Ql(e,t,r){for(var i=-1,p=e.length,m=t.length,y={};++i<p;){var b=i<m?t[i]:s;r(y,e[i],b)}return y}function di(e){return Pe(e)?e:[]}function mi(e){return typeof e=="function"?e:nt}function yr(e,t){return se(e)?e:wi(e,t)?[e]:Ic(we(e))}var p_=le;function _r(e,t,r){var i=e.length;return r=r===s?i:r,!t&&r>=i?e:kt(e,t,r)}var Zl=Qu||function(e){return He.clearTimeout(e)};function Jl(e,t){if(t)return e.slice();var r=e.length,i=hl?hl(r):new e.constructor(r);return e.copy(i),i}function ui(e){var t=new e.constructor(e.byteLength);return new Ta(t).set(new Ta(e)),t}function d_(e,t){var r=t?ui(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function m_(e){var t=new e.constructor(e.source,he.exec(e));return t.lastIndex=e.lastIndex,t}function u_(e){return Ss?De(Ss.call(e)):{}}function ec(e,t){var r=t?ui(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function tc(e,t){if(e!==t){var r=e!==s,i=e===null,p=e===e,m=yt(e),y=t!==s,b=t===null,v=t===t,z=yt(t);if(!b&&!z&&!m&&e>t||m&&y&&v&&!b&&!z||i&&y&&v||!r&&v||!p)return 1;if(!i&&!m&&!z&&e<t||z&&r&&p&&!i&&!m||b&&r&&p||!y&&p||!v)return-1}return 0}function y_(e,t,r){for(var i=-1,p=e.criteria,m=t.criteria,y=p.length,b=r.length;++i<y;){var v=tc(p[i],m[i]);if(v){if(i>=b)return v;var z=r[i];return v*(z=="desc"?-1:1)}}return e.index-t.index}function rc(e,t,r,i){for(var p=-1,m=e.length,y=r.length,b=-1,v=t.length,z=Ue(m-y,0),S=D(v+z),E=!i;++b<v;)S[b]=t[b];for(;++p<y;)(E||p<m)&&(S[r[p]]=e[p]);for(;z--;)S[b++]=e[p++];return S}function sc(e,t,r,i){for(var p=-1,m=e.length,y=-1,b=r.length,v=-1,z=t.length,S=Ue(m-b,0),E=D(S+z),$=!i;++p<S;)E[p]=e[p];for(var W=p;++v<z;)E[W+v]=t[v];for(;++y<b;)($||p<m)&&(E[W+r[y]]=e[p++]);return E}function rt(e,t){var r=-1,i=e.length;for(t||(t=D(i));++r<i;)t[r]=e[r];return t}function Kt(e,t,r,i){var p=!r;r||(r={});for(var m=-1,y=t.length;++m<y;){var b=t[m],v=i?i(r[b],e[b],b,r,e):s;v===s&&(v=e[b]),p?Yt(r,b,v):Es(r,b,v)}return r}function __(e,t){return Kt(e,hi(e),t)}function f_(e,t){return Kt(e,fc(e),t)}function Ra(e,t){return function(r,i){var p=se(r)?wu:Ry,m=t?t():{};return p(r,e,Y(i,2),m)}}function Zr(e){return le(function(t,r){var i=-1,p=r.length,m=p>1?r[p-1]:s,y=p>2?r[2]:s;for(m=e.length>3&&typeof m=="function"?(p--,m):s,y&&Ze(r[0],r[1],y)&&(m=p<3?s:m,p=1),t=De(t);++i<p;){var b=r[i];b&&e(t,b,i,m)}return t})}function ac(e,t){return function(r,i){if(r==null)return r;if(!st(r))return e(r,i);for(var p=r.length,m=t?p:-1,y=De(r);(t?m--:++m<p)&&i(y[m],m,y)!==!1;);return r}}function nc(e){return function(t,r,i){for(var p=-1,m=De(t),y=i(t),b=y.length;b--;){var v=y[e?b:++p];if(r(m[v],v,m)===!1)break}return t}}function g_(e,t,r){var i=t&X,p=Os(e);function m(){var y=this&&this!==He&&this instanceof m?p:e;return y.apply(i?r:this,arguments)}return m}function ic(e){return function(t){t=we(t);var r=Hr(t)?Lt(t):s,i=r?r[0]:t.charAt(0),p=r?_r(r,1).join(""):t.slice(1);return i[e]()+p}}function Jr(e){return function(t){return Rn(ap(sp(t).replace(ou,"")),e,"")}}function Os(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=Qr(e.prototype),i=e.apply(r,t);return ze(i)?i:r}}function b_(e,t,r){var i=Os(e);function p(){for(var m=arguments.length,y=D(m),b=m,v=es(p);b--;)y[b]=arguments[b];var z=m<3&&y[0]!==v&&y[m-1]!==v?[]:pr(y,v);if(m-=z.length,m<r)return dc(e,t,Fa,p.placeholder,s,y,z,s,s,r-m);var S=this&&this!==He&&this instanceof p?i:e;return dt(S,this,y)}return p}function oc(e){return function(t,r,i){var p=De(t);if(!st(t)){var m=Y(r,3);t=$e(t),r=function(b){return m(p[b],b,p)}}var y=e(t,r,i);return y>-1?p[m?t[y]:y]:s}}function lc(e){return Zt(function(t){var r=t.length,i=r,p=Tt.prototype.thru;for(e&&t.reverse();i--;){var m=t[i];if(typeof m!="function")throw new vt(u);if(p&&!y&&$a(m)=="wrapper")var y=new Tt([],!0)}for(i=y?i:r;++i<r;){m=t[i];var b=$a(m),v=b=="wrapper"?bi(m):s;v&&vi(v[0])&&v[1]==(j|F|k|ae)&&!v[4].length&&v[9]==1?y=y[$a(v[0])].apply(y,v[3]):y=m.length==1&&vi(m)?y[b]():y.thru(m)}return function(){var z=arguments,S=z[0];if(y&&z.length==1&&se(S))return y.plant(S).value();for(var E=0,$=r?t[E].apply(this,z):S;++E<r;)$=t[E].call(this,$);return $}})}function Fa(e,t,r,i,p,m,y,b,v,z){var S=t&j,E=t&X,$=t&J,W=t&(F|A),Q=t&oe,ie=$?s:Os(e);function Z(){for(var me=arguments.length,fe=D(me),_t=me;_t--;)fe[_t]=arguments[_t];if(W)var Je=es(Z),ft=zu(fe,Je);if(i&&(fe=rc(fe,i,p,W)),m&&(fe=sc(fe,m,y,W)),me-=ft,W&&me<z){var Me=pr(fe,Je);return dc(e,t,Fa,Z.placeholder,r,fe,Me,b,v,z-me)}var Ot=E?r:this,rr=$?Ot[e]:e;return me=fe.length,b?fe=R_(fe,b):Q&&me>1&&fe.reverse(),S&&v<me&&(fe.length=v),this&&this!==He&&this instanceof Z&&(rr=ie||Os(rr)),rr.apply(Ot,fe)}return Z}function cc(e,t){return function(r,i){return Wy(r,e,t(i),{})}}function Ba(e,t){return function(r,i){var p;if(r===s&&i===s)return t;if(r!==s&&(p=r),i!==s){if(p===s)return i;typeof r=="string"||typeof i=="string"?(r=ut(r),i=ut(i)):(r=Xl(r),i=Xl(i)),p=e(r,i)}return p}}function yi(e){return Zt(function(t){return t=qe(t,mt(Y())),le(function(r){var i=this;return e(t,function(p){return dt(p,i,r)})})})}function Ua(e,t){t=t===s?" ":ut(t);var r=t.length;if(r<2)return r?oi(t,e):t;var i=oi(t,Aa(e/Wr(t)));return Hr(t)?_r(Lt(i),0,e).join(""):i.slice(0,e)}function x_(e,t,r,i){var p=t&X,m=Os(e);function y(){for(var b=-1,v=arguments.length,z=-1,S=i.length,E=D(S+v),$=this&&this!==He&&this instanceof y?m:e;++z<S;)E[z]=i[z];for(;v--;)E[z++]=arguments[++b];return dt($,p?r:this,E)}return y}function pc(e){return function(t,r,i){return i&&typeof i!="number"&&Ze(t,r,i)&&(r=i=s),t=tr(t),r===s?(r=t,t=0):r=tr(r),i=i===s?t<r?1:-1:tr(i),a_(t,r,i,e)}}function Ka(e){return function(t,r){return typeof t=="string"&&typeof r=="string"||(t=At(t),r=At(r)),e(t,r)}}function dc(e,t,r,i,p,m,y,b,v,z){var S=t&F,E=S?y:s,$=S?s:y,W=S?m:s,Q=S?s:m;t|=S?k:U,t&=~(S?U:k),t&G||(t&=~(X|J));var ie=[e,t,p,W,E,Q,$,b,v,z],Z=r.apply(s,ie);return vi(e)&&Tc(Z,ie),Z.placeholder=i,Dc(Z,e,t)}function _i(e){var t=Be[e];return function(r,i){if(r=At(r),i=i==null?0:Xe(ne(i),292),i&&Dl(r)){var p=(we(r)+"e").split("e"),m=t(p[0]+"e"+(+p[1]+i));return p=(we(m)+"e").split("e"),+(p[0]+"e"+(+p[1]-i))}return t(r)}}var h_=Vr&&1/ga(new Vr([,-0]))[1]==Ee?function(e){return new Vr(e)}:Oi;function mc(e){return function(t){var r=Ve(t);return r==ct?Hn(t):r==pt?Ou(t):Cu(t,e(t))}}function Qt(e,t,r,i,p,m,y,b){var v=t&J;if(!v&&typeof e!="function")throw new vt(u);var z=i?i.length:0;if(z||(t&=~(k|U),i=p=s),y=y===s?y:Ue(ne(y),0),b=b===s?b:ne(b),z-=p?p.length:0,t&U){var S=i,E=p;i=p=s}var $=v?s:bi(e),W=[e,t,r,i,p,S,E,m,y,b];if($&&P_(W,$),e=W[0],t=W[1],r=W[2],i=W[3],p=W[4],b=W[9]=W[9]===s?v?0:e.length:Ue(W[9]-z,0),!b&&t&(F|A)&&(t&=~(F|A)),!t||t==X)var Q=g_(e,t,r);else t==F||t==A?Q=b_(e,t,b):(t==k||t==(X|k))&&!p.length?Q=x_(e,t,r,i):Q=Fa.apply(s,W);var ie=$?Wl:Tc;return Dc(ie(Q,W),e,t)}function uc(e,t,r,i){return e===s||Mt(e,Xr[r])&&!Te.call(i,r)?t:e}function yc(e,t,r,i,p,m){return ze(e)&&ze(t)&&(m.set(t,e),Pa(e,t,s,yc,m),m.delete(t)),e}function w_(e){return Bs(e)?s:e}function _c(e,t,r,i,p,m){var y=r&B,b=e.length,v=t.length;if(b!=v&&!(y&&v>b))return!1;var z=m.get(e),S=m.get(t);if(z&&S)return z==t&&S==e;var E=-1,$=!0,W=r&P?new kr:s;for(m.set(e,t),m.set(t,e);++E<b;){var Q=e[E],ie=t[E];if(i)var Z=y?i(ie,Q,E,t,e,m):i(Q,ie,E,e,t,m);if(Z!==s){if(Z)continue;$=!1;break}if(W){if(!Fn(t,function(me,fe){if(!Is(W,fe)&&(Q===me||p(Q,me,r,i,m)))return W.push(fe)})){$=!1;break}}else if(!(Q===ie||p(Q,ie,r,i,m))){$=!1;break}}return m.delete(e),m.delete(t),$}function v_(e,t,r,i,p,m,y){switch(r){case or:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Et:return!(e.byteLength!=t.byteLength||!m(new Ta(e),new Ta(t)));case Ft:case Ht:case Bt:return Mt(+e,+t);case Mr:return e.name==t.name&&e.message==t.message;case hr:case Wt:return e==t+"";case ct:var b=Hn;case pt:var v=i&B;if(b||(b=ga),e.size!=t.size&&!v)return!1;var z=y.get(e);if(z)return z==t;i|=P,y.set(e,t);var S=_c(b(e),b(t),i,p,m,y);return y.delete(e),S;case Fr:if(Ss)return Ss.call(e)==Ss.call(t)}return!1}function T_(e,t,r,i,p,m){var y=r&B,b=fi(e),v=b.length,z=fi(t),S=z.length;if(v!=S&&!y)return!1;for(var E=v;E--;){var $=b[E];if(!(y?$ in t:Te.call(t,$)))return!1}var W=m.get(e),Q=m.get(t);if(W&&Q)return W==t&&Q==e;var ie=!0;m.set(e,t),m.set(t,e);for(var Z=y;++E<v;){$=b[E];var me=e[$],fe=t[$];if(i)var _t=y?i(fe,me,$,t,e,m):i(me,fe,$,e,t,m);if(!(_t===s?me===fe||p(me,fe,r,i,m):_t)){ie=!1;break}Z||(Z=$=="constructor")}if(ie&&!Z){var Je=e.constructor,ft=t.constructor;Je!=ft&&"constructor"in e&&"constructor"in t&&!(typeof Je=="function"&&Je instanceof Je&&typeof ft=="function"&&ft instanceof ft)&&(ie=!1)}return m.delete(e),m.delete(t),ie}function Zt(e){return Di(wc(e,s,zc),e+"")}function fi(e){return Pl(e,$e,hi)}function gi(e){return Pl(e,at,fc)}var bi=Ca?function(e){return Ca.get(e)}:Oi;function $a(e){for(var t=e.name+"",r=Yr[t],i=Te.call(Yr,t)?r.length:0;i--;){var p=r[i],m=p.func;if(m==null||m==e)return p.name}return t}function es(e){var t=Te.call(d,"placeholder")?d:e;return t.placeholder}function Y(){var e=d.iteratee||Pi;return e=e===Pi?Rl:e,arguments.length?e(arguments[0],arguments[1]):e}function ja(e,t){var r=e.__data__;return S_(t)?r[typeof t=="string"?"string":"hash"]:r.map}function xi(e){for(var t=$e(e),r=t.length;r--;){var i=t[r],p=e[i];t[r]=[i,p,xc(p)]}return t}function qr(e,t){var r=Lu(e,t);return Ol(r)?r:s}function D_(e){var t=Te.call(e,Tr),r=e[Tr];try{e[Tr]=s;var i=!0}catch{}var p=wa.call(e);return i&&(t?e[Tr]=r:delete e[Tr]),p}var hi=Gn?function(e){return e==null?[]:(e=De(e),lr(Gn(e),function(t){return vl.call(e,t)}))}:Ri,fc=Gn?function(e){for(var t=[];e;)cr(t,hi(e)),e=Da(e);return t}:Ri,Ve=Qe;(Xn&&Ve(new Xn(new ArrayBuffer(1)))!=or||qs&&Ve(new qs)!=ct||Vn&&Ve(Vn.resolve())!=_s||Vr&&Ve(new Vr)!=pt||Cs&&Ve(new Cs)!=ir)&&(Ve=function(e){var t=Qe(e),r=t==xt?e.constructor:s,i=r?Cr(r):"";if(i)switch(i){case iy:return or;case oy:return ct;case ly:return _s;case cy:return pt;case py:return ir}return t});function k_(e,t,r){for(var i=-1,p=r.length;++i<p;){var m=r[i],y=m.size;switch(m.type){case"drop":e+=y;break;case"dropRight":t-=y;break;case"take":t=Xe(t,e+y);break;case"takeRight":e=Ue(e,t-y);break}}return{start:e,end:t}}function I_(e){var t=e.match(Cn);return t?t[1].split(_):[]}function gc(e,t,r){t=yr(t,e);for(var i=-1,p=t.length,m=!1;++i<p;){var y=$t(t[i]);if(!(m=e!=null&&r(e,y)))break;e=e[y]}return m||++i!=p?m:(p=e==null?0:e.length,!!p&&Qa(p)&&Jt(y,p)&&(se(e)||zr(e)))}function A_(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&Te.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function bc(e){return typeof e.constructor=="function"&&!Rs(e)?Qr(Da(e)):{}}function q_(e,t,r){var i=e.constructor;switch(t){case Et:return ui(e);case Ft:case Ht:return new i(+e);case or:return d_(e,r);case Br:case Ur:case wr:case fs:case gs:case bs:case xs:case hs:case ws:return ec(e,r);case ct:return new i;case Bt:case Wt:return new i(e);case hr:return m_(e);case pt:return new i;case Fr:return u_(e)}}function C_(e,t){var r=t.length;if(!r)return e;var i=r-1;return t[i]=(r>1?"& ":"")+t[i],t=t.join(r>2?", ":" "),e.replace(qn,`{
114
+ */Ws.exports,function(a,n){(function(){var s,o="4.17.21",l=200,c="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",f="Invalid `variable` option passed into `_.template`",x="__lodash_hash_undefined__",g=500,h="__lodash_placeholder__",D=1,P=2,R=4,U=1,L=2,X=1,ee=2,W=4,B=8,O=16,T=32,M=64,K=128,ne=256,ae=512,ie=30,gt="...",zt=800,Ke=16,Fe=1,V=2,ge=3,Ne=1/0,Me=9007199254740991,bt=17976931348623157e292,St=NaN,te=4294967295,be=te-1,De=te>>>1,jt=[["ary",K],["bind",X],["bindKey",ee],["curry",B],["curryRight",O],["flip",ae],["partial",T],["partialRight",M],["rearg",ne]],Ye="[object Arguments]",nr="[object Array]",ys="[object AsyncFunction]",Ft="[object Boolean]",Ht="[object Date]",Pr="[object DOMException]",Mr="[object Error]",xr="[object Function]",aa="[object GeneratorFunction]",ct="[object Map]",Bt="[object Number]",Or="[object Null]",xt="[object Object]",_s="[object Promise]",Rr="[object Proxy]",hr="[object RegExp]",pt="[object Set]",Wt="[object String]",Fr="[object Symbol]",Tn="[object Undefined]",ir="[object WeakMap]",na="[object WeakSet]",Et="[object ArrayBuffer]",or="[object DataView]",Br="[object Float32Array]",Ur="[object Float64Array]",wr="[object Int8Array]",fs="[object Int16Array]",gs="[object Int32Array]",bs="[object Uint8Array]",xs="[object Uint8ClampedArray]",hs="[object Uint16Array]",ws="[object Uint32Array]",Dn=/\b__p \+= '';/g,vs=/\b(__p \+=) '' \+/g,ia=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Gt=/&(?:amp|lt|gt|quot|#39);/g,Kr=/[&<>"']/g,Ts=RegExp(Gt.source),oa=RegExp(Kr.source),kn=/<%-([\s\S]+?)%>/g,la=/<%([\s\S]+?)%>/g,ca=/<%=([\s\S]+?)%>/g,pa=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,da=/^\w*$/,In=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ds=/[\\^$.*+?()[\]{}|]/g,ma=RegExp(Ds.source),ks=/^\s+/,An=/\s/,qn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Cn=/\{\n\/\* \[wrapped with (.+)\] \*/,_=/,? & /,N=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,$=/[()=,{}\[\]\/\s]/,J=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,he=/\w*$/,me=/^[-+]0x[0-9a-f]+$/i,pe=/^0b[01]+$/i,je=/^\[object .+?Constructor\]$/,ze=/^0o[0-7]+$/i,Le=/^(?:0|[1-9]\d*)$/,et=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Nt=/($^)/,ua=/['\n\r\u2028\u2029\\]/g,tt="\\ud800-\\udfff",Hm="\\u0300-\\u036f",Wm="\\ufe20-\\ufe2f",Gm="\\u20d0-\\u20ff",Oo=Hm+Wm+Gm,Ro="\\u2700-\\u27bf",Fo="a-z\\xdf-\\xf6\\xf8-\\xff",Xm="\\xac\\xb1\\xd7\\xf7",Vm="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ym="\\u2000-\\u206f",Qm=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Bo="A-Z\\xc0-\\xd6\\xd8-\\xde",Uo="\\ufe0e\\ufe0f",Ko=Xm+Vm+Ym+Qm,zn="['’]",Zm="["+tt+"]",$o="["+Ko+"]",ya="["+Oo+"]",jo="\\d+",Jm="["+Ro+"]",Ho="["+Fo+"]",Wo="[^"+tt+Ko+jo+Ro+Fo+Bo+"]",Sn="\\ud83c[\\udffb-\\udfff]",eu="(?:"+ya+"|"+Sn+")",Go="[^"+tt+"]",En="(?:\\ud83c[\\udde6-\\uddff]){2}",Nn="[\\ud800-\\udbff][\\udc00-\\udfff]",$r="["+Bo+"]",Xo="\\u200d",Vo="(?:"+Ho+"|"+Wo+")",tu="(?:"+$r+"|"+Wo+")",Yo="(?:"+zn+"(?:d|ll|m|re|s|t|ve))?",Qo="(?:"+zn+"(?:D|LL|M|RE|S|T|VE))?",Zo=eu+"?",Jo="["+Uo+"]?",ru="(?:"+Xo+"(?:"+[Go,En,Nn].join("|")+")"+Jo+Zo+")*",su="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",au="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",el=Jo+Zo+ru,nu="(?:"+[Jm,En,Nn].join("|")+")"+el,iu="(?:"+[Go+ya+"?",ya,En,Nn,Zm].join("|")+")",ou=RegExp(zn,"g"),lu=RegExp(ya,"g"),Ln=RegExp(Sn+"(?="+Sn+")|"+iu+el,"g"),cu=RegExp([$r+"?"+Ho+"+"+Yo+"(?="+[$o,$r,"$"].join("|")+")",tu+"+"+Qo+"(?="+[$o,$r+Vo,"$"].join("|")+")",$r+"?"+Vo+"+"+Yo,$r+"+"+Qo,au,su,jo,nu].join("|"),"g"),pu=RegExp("["+Xo+tt+Oo+Uo+"]"),du=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,mu=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],uu=-1,Ae={};Ae[Br]=Ae[Ur]=Ae[wr]=Ae[fs]=Ae[gs]=Ae[bs]=Ae[xs]=Ae[hs]=Ae[ws]=!0,Ae[Ye]=Ae[nr]=Ae[Et]=Ae[Ft]=Ae[or]=Ae[Ht]=Ae[Mr]=Ae[xr]=Ae[ct]=Ae[Bt]=Ae[xt]=Ae[hr]=Ae[pt]=Ae[Wt]=Ae[ir]=!1;var Ie={};Ie[Ye]=Ie[nr]=Ie[Et]=Ie[or]=Ie[Ft]=Ie[Ht]=Ie[Br]=Ie[Ur]=Ie[wr]=Ie[fs]=Ie[gs]=Ie[ct]=Ie[Bt]=Ie[xt]=Ie[hr]=Ie[pt]=Ie[Wt]=Ie[Fr]=Ie[bs]=Ie[xs]=Ie[hs]=Ie[ws]=!0,Ie[Mr]=Ie[xr]=Ie[ir]=!1;var yu={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},_u={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},fu={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},gu={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},bu=parseFloat,xu=parseInt,tl=typeof ss=="object"&&ss&&ss.Object===Object&&ss,hu=typeof self=="object"&&self&&self.Object===Object&&self,He=tl||hu||Function("return this")(),Pn=n&&!n.nodeType&&n,vr=Pn&&!0&&a&&!a.nodeType&&a,rl=vr&&vr.exports===Pn,Mn=rl&&tl.process,ht=function(){try{var w=vr&&vr.require&&vr.require("util").types;return w||Mn&&Mn.binding&&Mn.binding("util")}catch{}}(),sl=ht&&ht.isArrayBuffer,al=ht&&ht.isDate,nl=ht&&ht.isMap,il=ht&&ht.isRegExp,ol=ht&&ht.isSet,ll=ht&&ht.isTypedArray;function dt(w,q,k){switch(k.length){case 0:return w.call(q);case 1:return w.call(q,k[0]);case 2:return w.call(q,k[0],k[1]);case 3:return w.call(q,k[0],k[1],k[2])}return w.apply(q,k)}function wu(w,q,k,H){for(var re=-1,xe=w==null?0:w.length;++re<xe;){var Be=w[re];q(H,Be,k(Be),w)}return H}function wt(w,q){for(var k=-1,H=w==null?0:w.length;++k<H&&q(w[k],k,w)!==!1;);return w}function vu(w,q){for(var k=w==null?0:w.length;k--&&q(w[k],k,w)!==!1;);return w}function cl(w,q){for(var k=-1,H=w==null?0:w.length;++k<H;)if(!q(w[k],k,w))return!1;return!0}function lr(w,q){for(var k=-1,H=w==null?0:w.length,re=0,xe=[];++k<H;){var Be=w[k];q(Be,k,w)&&(xe[re++]=Be)}return xe}function _a(w,q){var k=w==null?0:w.length;return!!k&&jr(w,q,0)>-1}function On(w,q,k){for(var H=-1,re=w==null?0:w.length;++H<re;)if(k(q,w[H]))return!0;return!1}function Ce(w,q){for(var k=-1,H=w==null?0:w.length,re=Array(H);++k<H;)re[k]=q(w[k],k,w);return re}function cr(w,q){for(var k=-1,H=q.length,re=w.length;++k<H;)w[re+k]=q[k];return w}function Rn(w,q,k,H){var re=-1,xe=w==null?0:w.length;for(H&&xe&&(k=w[++re]);++re<xe;)k=q(k,w[re],re,w);return k}function Tu(w,q,k,H){var re=w==null?0:w.length;for(H&&re&&(k=w[--re]);re--;)k=q(k,w[re],re,w);return k}function Fn(w,q){for(var k=-1,H=w==null?0:w.length;++k<H;)if(q(w[k],k,w))return!0;return!1}var Du=Bn("length");function ku(w){return w.split("")}function Iu(w){return w.match(N)||[]}function pl(w,q,k){var H;return k(w,function(re,xe,Be){if(q(re,xe,Be))return H=xe,!1}),H}function fa(w,q,k,H){for(var re=w.length,xe=k+(H?1:-1);H?xe--:++xe<re;)if(q(w[xe],xe,w))return xe;return-1}function jr(w,q,k){return q===q?Ru(w,q,k):fa(w,dl,k)}function Au(w,q,k,H){for(var re=k-1,xe=w.length;++re<xe;)if(H(w[re],q))return re;return-1}function dl(w){return w!==w}function ml(w,q){var k=w==null?0:w.length;return k?Kn(w,q)/k:St}function Bn(w){return function(q){return q==null?s:q[w]}}function Un(w){return function(q){return w==null?s:w[q]}}function ul(w,q,k,H,re){return re(w,function(xe,Be,ke){k=H?(H=!1,xe):q(k,xe,Be,ke)}),k}function qu(w,q){var k=w.length;for(w.sort(q);k--;)w[k]=w[k].value;return w}function Kn(w,q){for(var k,H=-1,re=w.length;++H<re;){var xe=q(w[H]);xe!==s&&(k=k===s?xe:k+xe)}return k}function $n(w,q){for(var k=-1,H=Array(w);++k<w;)H[k]=q(k);return H}function Cu(w,q){return Ce(q,function(k){return[k,w[k]]})}function yl(w){return w&&w.slice(0,bl(w)+1).replace(ks,"")}function mt(w){return function(q){return w(q)}}function jn(w,q){return Ce(q,function(k){return w[k]})}function Is(w,q){return w.has(q)}function _l(w,q){for(var k=-1,H=w.length;++k<H&&jr(q,w[k],0)>-1;);return k}function fl(w,q){for(var k=w.length;k--&&jr(q,w[k],0)>-1;);return k}function zu(w,q){for(var k=w.length,H=0;k--;)w[k]===q&&++H;return H}var Su=Un(yu),Eu=Un(_u);function Nu(w){return"\\"+gu[w]}function Lu(w,q){return w==null?s:w[q]}function Hr(w){return pu.test(w)}function Pu(w){return du.test(w)}function Mu(w){for(var q,k=[];!(q=w.next()).done;)k.push(q.value);return k}function Hn(w){var q=-1,k=Array(w.size);return w.forEach(function(H,re){k[++q]=[re,H]}),k}function gl(w,q){return function(k){return w(q(k))}}function pr(w,q){for(var k=-1,H=w.length,re=0,xe=[];++k<H;){var Be=w[k];(Be===q||Be===h)&&(w[k]=h,xe[re++]=k)}return xe}function ga(w){var q=-1,k=Array(w.size);return w.forEach(function(H){k[++q]=H}),k}function Ou(w){var q=-1,k=Array(w.size);return w.forEach(function(H){k[++q]=[H,H]}),k}function Ru(w,q,k){for(var H=k-1,re=w.length;++H<re;)if(w[H]===q)return H;return-1}function Fu(w,q,k){for(var H=k+1;H--;)if(w[H]===q)return H;return H}function Wr(w){return Hr(w)?Uu(w):Du(w)}function Lt(w){return Hr(w)?Ku(w):ku(w)}function bl(w){for(var q=w.length;q--&&An.test(w.charAt(q)););return q}var Bu=Un(fu);function Uu(w){for(var q=Ln.lastIndex=0;Ln.test(w);)++q;return q}function Ku(w){return w.match(Ln)||[]}function $u(w){return w.match(cu)||[]}var ju=function w(q){q=q==null?He:Gr.defaults(He.Object(),q,Gr.pick(He,mu));var k=q.Array,H=q.Date,re=q.Error,xe=q.Function,Be=q.Math,ke=q.Object,Wn=q.RegExp,Hu=q.String,vt=q.TypeError,ba=k.prototype,Wu=xe.prototype,Xr=ke.prototype,xa=q["__core-js_shared__"],ha=Wu.toString,Te=Xr.hasOwnProperty,Gu=0,xl=function(){var e=/[^.]+$/.exec(xa&&xa.keys&&xa.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),wa=Xr.toString,Xu=ha.call(ke),Vu=He._,Yu=Wn("^"+ha.call(Te).replace(Ds,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),va=rl?q.Buffer:s,dr=q.Symbol,Ta=q.Uint8Array,hl=va?va.allocUnsafe:s,Da=gl(ke.getPrototypeOf,ke),wl=ke.create,vl=Xr.propertyIsEnumerable,ka=ba.splice,Tl=dr?dr.isConcatSpreadable:s,As=dr?dr.iterator:s,Tr=dr?dr.toStringTag:s,Ia=function(){try{var e=qr(ke,"defineProperty");return e({},"",{}),e}catch{}}(),Qu=q.clearTimeout!==He.clearTimeout&&q.clearTimeout,Zu=H&&H.now!==He.Date.now&&H.now,Ju=q.setTimeout!==He.setTimeout&&q.setTimeout,Aa=Be.ceil,qa=Be.floor,Gn=ke.getOwnPropertySymbols,ey=va?va.isBuffer:s,Dl=q.isFinite,ty=ba.join,ry=gl(ke.keys,ke),Ue=Be.max,Xe=Be.min,sy=H.now,ay=q.parseInt,kl=Be.random,ny=ba.reverse,Xn=qr(q,"DataView"),qs=qr(q,"Map"),Vn=qr(q,"Promise"),Vr=qr(q,"Set"),Cs=qr(q,"WeakMap"),zs=qr(ke,"create"),Ca=Cs&&new Cs,Yr={},iy=Cr(Xn),oy=Cr(qs),ly=Cr(Vn),cy=Cr(Vr),py=Cr(Cs),za=dr?dr.prototype:s,Ss=za?za.valueOf:s,Il=za?za.toString:s;function d(e){if(Pe(e)&&!se(e)&&!(e instanceof ue)){if(e instanceof Tt)return e;if(Te.call(e,"__wrapped__"))return Ac(e)}return new Tt(e)}var Qr=function(){function e(){}return function(t){if(!Se(t))return{};if(wl)return wl(t);e.prototype=t;var r=new e;return e.prototype=s,r}}();function Sa(){}function Tt(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=s}d.templateSettings={escape:kn,evaluate:la,interpolate:ca,variable:"",imports:{_:d}},d.prototype=Sa.prototype,d.prototype.constructor=d,Tt.prototype=Qr(Sa.prototype),Tt.prototype.constructor=Tt;function ue(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=te,this.__views__=[]}function dy(){var e=new ue(this.__wrapped__);return e.__actions__=rt(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=rt(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=rt(this.__views__),e}function my(){if(this.__filtered__){var e=new ue(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function uy(){var e=this.__wrapped__.value(),t=this.__dir__,r=se(e),i=t<0,p=r?e.length:0,m=k_(0,p,this.__views__),y=m.start,b=m.end,v=b-y,C=i?b:y-1,z=this.__iteratees__,S=z.length,j=0,G=Xe(v,this.__takeCount__);if(!r||!i&&p==v&&G==v)return Yl(e,this.__actions__);var Q=[];e:for(;v--&&j<G;){C+=t;for(var le=-1,Z=e[C];++le<S;){var de=z[le],_e=de.iteratee,_t=de.type,Je=_e(Z);if(_t==V)Z=Je;else if(!Je){if(_t==Fe)continue e;break e}}Q[j++]=Z}return Q}ue.prototype=Qr(Sa.prototype),ue.prototype.constructor=ue;function Dr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function yy(){this.__data__=zs?zs(null):{},this.size=0}function _y(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function fy(e){var t=this.__data__;if(zs){var r=t[e];return r===x?s:r}return Te.call(t,e)?t[e]:s}function gy(e){var t=this.__data__;return zs?t[e]!==s:Te.call(t,e)}function by(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=zs&&t===s?x:t,this}Dr.prototype.clear=yy,Dr.prototype.delete=_y,Dr.prototype.get=fy,Dr.prototype.has=gy,Dr.prototype.set=by;function Xt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function xy(){this.__data__=[],this.size=0}function hy(e){var t=this.__data__,r=Ea(t,e);if(r<0)return!1;var i=t.length-1;return r==i?t.pop():ka.call(t,r,1),--this.size,!0}function wy(e){var t=this.__data__,r=Ea(t,e);return r<0?s:t[r][1]}function vy(e){return Ea(this.__data__,e)>-1}function Ty(e,t){var r=this.__data__,i=Ea(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}Xt.prototype.clear=xy,Xt.prototype.delete=hy,Xt.prototype.get=wy,Xt.prototype.has=vy,Xt.prototype.set=Ty;function Vt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function Dy(){this.size=0,this.__data__={hash:new Dr,map:new(qs||Xt),string:new Dr}}function ky(e){var t=ja(this,e).delete(e);return this.size-=t?1:0,t}function Iy(e){return ja(this,e).get(e)}function Ay(e){return ja(this,e).has(e)}function qy(e,t){var r=ja(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}Vt.prototype.clear=Dy,Vt.prototype.delete=ky,Vt.prototype.get=Iy,Vt.prototype.has=Ay,Vt.prototype.set=qy;function kr(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Vt;++t<r;)this.add(e[t])}function Cy(e){return this.__data__.set(e,x),this}function zy(e){return this.__data__.has(e)}kr.prototype.add=kr.prototype.push=Cy,kr.prototype.has=zy;function Pt(e){var t=this.__data__=new Xt(e);this.size=t.size}function Sy(){this.__data__=new Xt,this.size=0}function Ey(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Ny(e){return this.__data__.get(e)}function Ly(e){return this.__data__.has(e)}function Py(e,t){var r=this.__data__;if(r instanceof Xt){var i=r.__data__;if(!qs||i.length<l-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new Vt(i)}return r.set(e,t),this.size=r.size,this}Pt.prototype.clear=Sy,Pt.prototype.delete=Ey,Pt.prototype.get=Ny,Pt.prototype.has=Ly,Pt.prototype.set=Py;function Al(e,t){var r=se(e),i=!r&&zr(e),p=!r&&!i&&fr(e),m=!r&&!i&&!p&&ts(e),y=r||i||p||m,b=y?$n(e.length,Hu):[],v=b.length;for(var C in e)(t||Te.call(e,C))&&!(y&&(C=="length"||p&&(C=="offset"||C=="parent")||m&&(C=="buffer"||C=="byteLength"||C=="byteOffset")||Jt(C,v)))&&b.push(C);return b}function ql(e){var t=e.length;return t?e[ii(0,t-1)]:s}function My(e,t){return Ha(rt(e),Ir(t,0,e.length))}function Oy(e){return Ha(rt(e))}function Yn(e,t,r){(r!==s&&!Mt(e[t],r)||r===s&&!(t in e))&&Yt(e,t,r)}function Es(e,t,r){var i=e[t];(!(Te.call(e,t)&&Mt(i,r))||r===s&&!(t in e))&&Yt(e,t,r)}function Ea(e,t){for(var r=e.length;r--;)if(Mt(e[r][0],t))return r;return-1}function Ry(e,t,r,i){return mr(e,function(p,m,y){t(i,p,r(p),y)}),i}function Cl(e,t){return e&&Kt(t,$e(t),e)}function Fy(e,t){return e&&Kt(t,at(t),e)}function Yt(e,t,r){t=="__proto__"&&Ia?Ia(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Qn(e,t){for(var r=-1,i=t.length,p=k(i),m=e==null;++r<i;)p[r]=m?s:Si(e,t[r]);return p}function Ir(e,t,r){return e===e&&(r!==s&&(e=e<=r?e:r),t!==s&&(e=e>=t?e:t)),e}function Dt(e,t,r,i,p,m){var y,b=t&D,v=t&P,C=t&R;if(r&&(y=p?r(e,i,p,m):r(e)),y!==s)return y;if(!Se(e))return e;var z=se(e);if(z){if(y=A_(e),!b)return rt(e,y)}else{var S=Ve(e),j=S==xr||S==aa;if(fr(e))return Jl(e,b);if(S==xt||S==Ye||j&&!p){if(y=v||j?{}:bc(e),!b)return v?f_(e,Fy(y,e)):__(e,Cl(y,e))}else{if(!Ie[S])return p?e:{};y=q_(e,S,b)}}m||(m=new Pt);var G=m.get(e);if(G)return G;m.set(e,y),Gc(e)?e.forEach(function(Z){y.add(Dt(Z,t,r,Z,e,m))}):Hc(e)&&e.forEach(function(Z,de){y.set(de,Dt(Z,t,r,de,e,m))});var Q=C?v?gi:fi:v?at:$e,le=z?s:Q(e);return wt(le||e,function(Z,de){le&&(de=Z,Z=e[de]),Es(y,de,Dt(Z,t,r,de,e,m))}),y}function By(e){var t=$e(e);return function(r){return zl(r,e,t)}}function zl(e,t,r){var i=r.length;if(e==null)return!i;for(e=ke(e);i--;){var p=r[i],m=t[p],y=e[p];if(y===s&&!(p in e)||!m(y))return!1}return!0}function Sl(e,t,r){if(typeof e!="function")throw new vt(u);return Fs(function(){e.apply(s,r)},t)}function Ns(e,t,r,i){var p=-1,m=_a,y=!0,b=e.length,v=[],C=t.length;if(!b)return v;r&&(t=Ce(t,mt(r))),i?(m=On,y=!1):t.length>=l&&(m=Is,y=!1,t=new kr(t));e:for(;++p<b;){var z=e[p],S=r==null?z:r(z);if(z=i||z!==0?z:0,y&&S===S){for(var j=C;j--;)if(t[j]===S)continue e;v.push(z)}else m(t,S,i)||v.push(z)}return v}var mr=ac(Ut),El=ac(Jn,!0);function Uy(e,t){var r=!0;return mr(e,function(i,p,m){return r=!!t(i,p,m),r}),r}function Na(e,t,r){for(var i=-1,p=e.length;++i<p;){var m=e[i],y=t(m);if(y!=null&&(b===s?y===y&&!yt(y):r(y,b)))var b=y,v=m}return v}function Ky(e,t,r,i){var p=e.length;for(r=oe(r),r<0&&(r=-r>p?0:p+r),i=i===s||i>p?p:oe(i),i<0&&(i+=p),i=r>i?0:Vc(i);r<i;)e[r++]=t;return e}function Nl(e,t){var r=[];return mr(e,function(i,p,m){t(i,p,m)&&r.push(i)}),r}function We(e,t,r,i,p){var m=-1,y=e.length;for(r||(r=z_),p||(p=[]);++m<y;){var b=e[m];t>0&&r(b)?t>1?We(b,t-1,r,i,p):cr(p,b):i||(p[p.length]=b)}return p}var Zn=nc(),Ll=nc(!0);function Ut(e,t){return e&&Zn(e,t,$e)}function Jn(e,t){return e&&Ll(e,t,$e)}function La(e,t){return lr(t,function(r){return er(e[r])})}function Ar(e,t){t=yr(t,e);for(var r=0,i=t.length;e!=null&&r<i;)e=e[$t(t[r++])];return r&&r==i?e:s}function Pl(e,t,r){var i=t(e);return se(e)?i:cr(i,r(e))}function Qe(e){return e==null?e===s?Tn:Or:Tr&&Tr in ke(e)?D_(e):O_(e)}function ei(e,t){return e>t}function $y(e,t){return e!=null&&Te.call(e,t)}function jy(e,t){return e!=null&&t in ke(e)}function Hy(e,t,r){return e>=Xe(t,r)&&e<Ue(t,r)}function ti(e,t,r){for(var i=r?On:_a,p=e[0].length,m=e.length,y=m,b=k(m),v=1/0,C=[];y--;){var z=e[y];y&&t&&(z=Ce(z,mt(t))),v=Xe(z.length,v),b[y]=!r&&(t||p>=120&&z.length>=120)?new kr(y&&z):s}z=e[0];var S=-1,j=b[0];e:for(;++S<p&&C.length<v;){var G=z[S],Q=t?t(G):G;if(G=r||G!==0?G:0,!(j?Is(j,Q):i(C,Q,r))){for(y=m;--y;){var le=b[y];if(!(le?Is(le,Q):i(e[y],Q,r)))continue e}j&&j.push(Q),C.push(G)}}return C}function Wy(e,t,r,i){return Ut(e,function(p,m,y){t(i,r(p),m,y)}),i}function Ls(e,t,r){t=yr(t,e),e=vc(e,t);var i=e==null?e:e[$t(It(t))];return i==null?s:dt(i,e,r)}function Ml(e){return Pe(e)&&Qe(e)==Ye}function Gy(e){return Pe(e)&&Qe(e)==Et}function Xy(e){return Pe(e)&&Qe(e)==Ht}function Ps(e,t,r,i,p){return e===t?!0:e==null||t==null||!Pe(e)&&!Pe(t)?e!==e&&t!==t:Vy(e,t,r,i,Ps,p)}function Vy(e,t,r,i,p,m){var y=se(e),b=se(t),v=y?nr:Ve(e),C=b?nr:Ve(t);v=v==Ye?xt:v,C=C==Ye?xt:C;var z=v==xt,S=C==xt,j=v==C;if(j&&fr(e)){if(!fr(t))return!1;y=!0,z=!1}if(j&&!z)return m||(m=new Pt),y||ts(e)?_c(e,t,r,i,p,m):v_(e,t,v,r,i,p,m);if(!(r&U)){var G=z&&Te.call(e,"__wrapped__"),Q=S&&Te.call(t,"__wrapped__");if(G||Q){var le=G?e.value():e,Z=Q?t.value():t;return m||(m=new Pt),p(le,Z,r,i,m)}}return j?(m||(m=new Pt),T_(e,t,r,i,p,m)):!1}function Yy(e){return Pe(e)&&Ve(e)==ct}function ri(e,t,r,i){var p=r.length,m=p,y=!i;if(e==null)return!m;for(e=ke(e);p--;){var b=r[p];if(y&&b[2]?b[1]!==e[b[0]]:!(b[0]in e))return!1}for(;++p<m;){b=r[p];var v=b[0],C=e[v],z=b[1];if(y&&b[2]){if(C===s&&!(v in e))return!1}else{var S=new Pt;if(i)var j=i(C,z,v,e,t,S);if(!(j===s?Ps(z,C,U|L,i,S):j))return!1}}return!0}function Ol(e){if(!Se(e)||E_(e))return!1;var t=er(e)?Yu:je;return t.test(Cr(e))}function Qy(e){return Pe(e)&&Qe(e)==hr}function Zy(e){return Pe(e)&&Ve(e)==pt}function Jy(e){return Pe(e)&&Qa(e.length)&&!!Ae[Qe(e)]}function Rl(e){return typeof e=="function"?e:e==null?nt:typeof e=="object"?se(e)?Ul(e[0],e[1]):Bl(e):ip(e)}function si(e){if(!Rs(e))return ry(e);var t=[];for(var r in ke(e))Te.call(e,r)&&r!="constructor"&&t.push(r);return t}function e_(e){if(!Se(e))return M_(e);var t=Rs(e),r=[];for(var i in e)i=="constructor"&&(t||!Te.call(e,i))||r.push(i);return r}function ai(e,t){return e<t}function Fl(e,t){var r=-1,i=st(e)?k(e.length):[];return mr(e,function(p,m,y){i[++r]=t(p,m,y)}),i}function Bl(e){var t=xi(e);return t.length==1&&t[0][2]?hc(t[0][0],t[0][1]):function(r){return r===e||ri(r,e,t)}}function Ul(e,t){return wi(e)&&xc(t)?hc($t(e),t):function(r){var i=Si(r,e);return i===s&&i===t?Ei(r,e):Ps(t,i,U|L)}}function Pa(e,t,r,i,p){e!==t&&Zn(t,function(m,y){if(p||(p=new Pt),Se(m))t_(e,t,y,r,Pa,i,p);else{var b=i?i(Ti(e,y),m,y+"",e,t,p):s;b===s&&(b=m),Yn(e,y,b)}},at)}function t_(e,t,r,i,p,m,y){var b=Ti(e,r),v=Ti(t,r),C=y.get(v);if(C){Yn(e,r,C);return}var z=m?m(b,v,r+"",e,t,y):s,S=z===s;if(S){var j=se(v),G=!j&&fr(v),Q=!j&&!G&&ts(v);z=v,j||G||Q?se(b)?z=b:Oe(b)?z=rt(b):G?(S=!1,z=Jl(v,!0)):Q?(S=!1,z=ec(v,!0)):z=[]:Bs(v)||zr(v)?(z=b,zr(b)?z=Yc(b):(!Se(b)||er(b))&&(z=bc(v))):S=!1}S&&(y.set(v,z),p(z,v,i,m,y),y.delete(v)),Yn(e,r,z)}function Kl(e,t){var r=e.length;if(r)return t+=t<0?r:0,Jt(t,r)?e[t]:s}function $l(e,t,r){t.length?t=Ce(t,function(m){return se(m)?function(y){return Ar(y,m.length===1?m[0]:m)}:m}):t=[nt];var i=-1;t=Ce(t,mt(Y()));var p=Fl(e,function(m,y,b){var v=Ce(t,function(C){return C(m)});return{criteria:v,index:++i,value:m}});return qu(p,function(m,y){return y_(m,y,r)})}function r_(e,t){return jl(e,t,function(r,i){return Ei(e,i)})}function jl(e,t,r){for(var i=-1,p=t.length,m={};++i<p;){var y=t[i],b=Ar(e,y);r(b,y)&&Ms(m,yr(y,e),b)}return m}function s_(e){return function(t){return Ar(t,e)}}function ni(e,t,r,i){var p=i?Au:jr,m=-1,y=t.length,b=e;for(e===t&&(t=rt(t)),r&&(b=Ce(e,mt(r)));++m<y;)for(var v=0,C=t[m],z=r?r(C):C;(v=p(b,z,v,i))>-1;)b!==e&&ka.call(b,v,1),ka.call(e,v,1);return e}function Hl(e,t){for(var r=e?t.length:0,i=r-1;r--;){var p=t[r];if(r==i||p!==m){var m=p;Jt(p)?ka.call(e,p,1):ci(e,p)}}return e}function ii(e,t){return e+qa(kl()*(t-e+1))}function a_(e,t,r,i){for(var p=-1,m=Ue(Aa((t-e)/(r||1)),0),y=k(m);m--;)y[i?m:++p]=e,e+=r;return y}function oi(e,t){var r="";if(!e||t<1||t>Me)return r;do t%2&&(r+=e),t=qa(t/2),t&&(e+=e);while(t);return r}function ce(e,t){return Di(wc(e,t,nt),e+"")}function n_(e){return ql(rs(e))}function i_(e,t){var r=rs(e);return Ha(r,Ir(t,0,r.length))}function Ms(e,t,r,i){if(!Se(e))return e;t=yr(t,e);for(var p=-1,m=t.length,y=m-1,b=e;b!=null&&++p<m;){var v=$t(t[p]),C=r;if(v==="__proto__"||v==="constructor"||v==="prototype")return e;if(p!=y){var z=b[v];C=i?i(z,v,b):s,C===s&&(C=Se(z)?z:Jt(t[p+1])?[]:{})}Es(b,v,C),b=b[v]}return e}var Wl=Ca?function(e,t){return Ca.set(e,t),e}:nt,o_=Ia?function(e,t){return Ia(e,"toString",{configurable:!0,enumerable:!1,value:Li(t),writable:!0})}:nt;function l_(e){return Ha(rs(e))}function kt(e,t,r){var i=-1,p=e.length;t<0&&(t=-t>p?0:p+t),r=r>p?p:r,r<0&&(r+=p),p=t>r?0:r-t>>>0,t>>>=0;for(var m=k(p);++i<p;)m[i]=e[i+t];return m}function c_(e,t){var r;return mr(e,function(i,p,m){return r=t(i,p,m),!r}),!!r}function Ma(e,t,r){var i=0,p=e==null?i:e.length;if(typeof t=="number"&&t===t&&p<=De){for(;i<p;){var m=i+p>>>1,y=e[m];y!==null&&!yt(y)&&(r?y<=t:y<t)?i=m+1:p=m}return p}return li(e,t,nt,r)}function li(e,t,r,i){var p=0,m=e==null?0:e.length;if(m===0)return 0;t=r(t);for(var y=t!==t,b=t===null,v=yt(t),C=t===s;p<m;){var z=qa((p+m)/2),S=r(e[z]),j=S!==s,G=S===null,Q=S===S,le=yt(S);if(y)var Z=i||Q;else C?Z=Q&&(i||j):b?Z=Q&&j&&(i||!G):v?Z=Q&&j&&!G&&(i||!le):G||le?Z=!1:Z=i?S<=t:S<t;Z?p=z+1:m=z}return Xe(m,be)}function Gl(e,t){for(var r=-1,i=e.length,p=0,m=[];++r<i;){var y=e[r],b=t?t(y):y;if(!r||!Mt(b,v)){var v=b;m[p++]=y===0?0:y}}return m}function Xl(e){return typeof e=="number"?e:yt(e)?St:+e}function ut(e){if(typeof e=="string")return e;if(se(e))return Ce(e,ut)+"";if(yt(e))return Il?Il.call(e):"";var t=e+"";return t=="0"&&1/e==-Ne?"-0":t}function ur(e,t,r){var i=-1,p=_a,m=e.length,y=!0,b=[],v=b;if(r)y=!1,p=On;else if(m>=l){var C=t?null:h_(e);if(C)return ga(C);y=!1,p=Is,v=new kr}else v=t?[]:b;e:for(;++i<m;){var z=e[i],S=t?t(z):z;if(z=r||z!==0?z:0,y&&S===S){for(var j=v.length;j--;)if(v[j]===S)continue e;t&&v.push(S),b.push(z)}else p(v,S,r)||(v!==b&&v.push(S),b.push(z))}return b}function ci(e,t){return t=yr(t,e),e=vc(e,t),e==null||delete e[$t(It(t))]}function Vl(e,t,r,i){return Ms(e,t,r(Ar(e,t)),i)}function Oa(e,t,r,i){for(var p=e.length,m=i?p:-1;(i?m--:++m<p)&&t(e[m],m,e););return r?kt(e,i?0:m,i?m+1:p):kt(e,i?m+1:0,i?p:m)}function Yl(e,t){var r=e;return r instanceof ue&&(r=r.value()),Rn(t,function(i,p){return p.func.apply(p.thisArg,cr([i],p.args))},r)}function pi(e,t,r){var i=e.length;if(i<2)return i?ur(e[0]):[];for(var p=-1,m=k(i);++p<i;)for(var y=e[p],b=-1;++b<i;)b!=p&&(m[p]=Ns(m[p]||y,e[b],t,r));return ur(We(m,1),t,r)}function Ql(e,t,r){for(var i=-1,p=e.length,m=t.length,y={};++i<p;){var b=i<m?t[i]:s;r(y,e[i],b)}return y}function di(e){return Oe(e)?e:[]}function mi(e){return typeof e=="function"?e:nt}function yr(e,t){return se(e)?e:wi(e,t)?[e]:Ic(we(e))}var p_=ce;function _r(e,t,r){var i=e.length;return r=r===s?i:r,!t&&r>=i?e:kt(e,t,r)}var Zl=Qu||function(e){return He.clearTimeout(e)};function Jl(e,t){if(t)return e.slice();var r=e.length,i=hl?hl(r):new e.constructor(r);return e.copy(i),i}function ui(e){var t=new e.constructor(e.byteLength);return new Ta(t).set(new Ta(e)),t}function d_(e,t){var r=t?ui(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function m_(e){var t=new e.constructor(e.source,he.exec(e));return t.lastIndex=e.lastIndex,t}function u_(e){return Ss?ke(Ss.call(e)):{}}function ec(e,t){var r=t?ui(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function tc(e,t){if(e!==t){var r=e!==s,i=e===null,p=e===e,m=yt(e),y=t!==s,b=t===null,v=t===t,C=yt(t);if(!b&&!C&&!m&&e>t||m&&y&&v&&!b&&!C||i&&y&&v||!r&&v||!p)return 1;if(!i&&!m&&!C&&e<t||C&&r&&p&&!i&&!m||b&&r&&p||!y&&p||!v)return-1}return 0}function y_(e,t,r){for(var i=-1,p=e.criteria,m=t.criteria,y=p.length,b=r.length;++i<y;){var v=tc(p[i],m[i]);if(v){if(i>=b)return v;var C=r[i];return v*(C=="desc"?-1:1)}}return e.index-t.index}function rc(e,t,r,i){for(var p=-1,m=e.length,y=r.length,b=-1,v=t.length,C=Ue(m-y,0),z=k(v+C),S=!i;++b<v;)z[b]=t[b];for(;++p<y;)(S||p<m)&&(z[r[p]]=e[p]);for(;C--;)z[b++]=e[p++];return z}function sc(e,t,r,i){for(var p=-1,m=e.length,y=-1,b=r.length,v=-1,C=t.length,z=Ue(m-b,0),S=k(z+C),j=!i;++p<z;)S[p]=e[p];for(var G=p;++v<C;)S[G+v]=t[v];for(;++y<b;)(j||p<m)&&(S[G+r[y]]=e[p++]);return S}function rt(e,t){var r=-1,i=e.length;for(t||(t=k(i));++r<i;)t[r]=e[r];return t}function Kt(e,t,r,i){var p=!r;r||(r={});for(var m=-1,y=t.length;++m<y;){var b=t[m],v=i?i(r[b],e[b],b,r,e):s;v===s&&(v=e[b]),p?Yt(r,b,v):Es(r,b,v)}return r}function __(e,t){return Kt(e,hi(e),t)}function f_(e,t){return Kt(e,fc(e),t)}function Ra(e,t){return function(r,i){var p=se(r)?wu:Ry,m=t?t():{};return p(r,e,Y(i,2),m)}}function Zr(e){return ce(function(t,r){var i=-1,p=r.length,m=p>1?r[p-1]:s,y=p>2?r[2]:s;for(m=e.length>3&&typeof m=="function"?(p--,m):s,y&&Ze(r[0],r[1],y)&&(m=p<3?s:m,p=1),t=ke(t);++i<p;){var b=r[i];b&&e(t,b,i,m)}return t})}function ac(e,t){return function(r,i){if(r==null)return r;if(!st(r))return e(r,i);for(var p=r.length,m=t?p:-1,y=ke(r);(t?m--:++m<p)&&i(y[m],m,y)!==!1;);return r}}function nc(e){return function(t,r,i){for(var p=-1,m=ke(t),y=i(t),b=y.length;b--;){var v=y[e?b:++p];if(r(m[v],v,m)===!1)break}return t}}function g_(e,t,r){var i=t&X,p=Os(e);function m(){var y=this&&this!==He&&this instanceof m?p:e;return y.apply(i?r:this,arguments)}return m}function ic(e){return function(t){t=we(t);var r=Hr(t)?Lt(t):s,i=r?r[0]:t.charAt(0),p=r?_r(r,1).join(""):t.slice(1);return i[e]()+p}}function Jr(e){return function(t){return Rn(ap(sp(t).replace(ou,"")),e,"")}}function Os(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=Qr(e.prototype),i=e.apply(r,t);return Se(i)?i:r}}function b_(e,t,r){var i=Os(e);function p(){for(var m=arguments.length,y=k(m),b=m,v=es(p);b--;)y[b]=arguments[b];var C=m<3&&y[0]!==v&&y[m-1]!==v?[]:pr(y,v);if(m-=C.length,m<r)return dc(e,t,Fa,p.placeholder,s,y,C,s,s,r-m);var z=this&&this!==He&&this instanceof p?i:e;return dt(z,this,y)}return p}function oc(e){return function(t,r,i){var p=ke(t);if(!st(t)){var m=Y(r,3);t=$e(t),r=function(b){return m(p[b],b,p)}}var y=e(t,r,i);return y>-1?p[m?t[y]:y]:s}}function lc(e){return Zt(function(t){var r=t.length,i=r,p=Tt.prototype.thru;for(e&&t.reverse();i--;){var m=t[i];if(typeof m!="function")throw new vt(u);if(p&&!y&&$a(m)=="wrapper")var y=new Tt([],!0)}for(i=y?i:r;++i<r;){m=t[i];var b=$a(m),v=b=="wrapper"?bi(m):s;v&&vi(v[0])&&v[1]==(K|B|T|ne)&&!v[4].length&&v[9]==1?y=y[$a(v[0])].apply(y,v[3]):y=m.length==1&&vi(m)?y[b]():y.thru(m)}return function(){var C=arguments,z=C[0];if(y&&C.length==1&&se(z))return y.plant(z).value();for(var S=0,j=r?t[S].apply(this,C):z;++S<r;)j=t[S].call(this,j);return j}})}function Fa(e,t,r,i,p,m,y,b,v,C){var z=t&K,S=t&X,j=t&ee,G=t&(B|O),Q=t&ae,le=j?s:Os(e);function Z(){for(var de=arguments.length,_e=k(de),_t=de;_t--;)_e[_t]=arguments[_t];if(G)var Je=es(Z),ft=zu(_e,Je);if(i&&(_e=rc(_e,i,p,G)),m&&(_e=sc(_e,m,y,G)),de-=ft,G&&de<C){var Re=pr(_e,Je);return dc(e,t,Fa,Z.placeholder,r,_e,Re,b,v,C-de)}var Ot=S?r:this,rr=j?Ot[e]:e;return de=_e.length,b?_e=R_(_e,b):Q&&de>1&&_e.reverse(),z&&v<de&&(_e.length=v),this&&this!==He&&this instanceof Z&&(rr=le||Os(rr)),rr.apply(Ot,_e)}return Z}function cc(e,t){return function(r,i){return Wy(r,e,t(i),{})}}function Ba(e,t){return function(r,i){var p;if(r===s&&i===s)return t;if(r!==s&&(p=r),i!==s){if(p===s)return i;typeof r=="string"||typeof i=="string"?(r=ut(r),i=ut(i)):(r=Xl(r),i=Xl(i)),p=e(r,i)}return p}}function yi(e){return Zt(function(t){return t=Ce(t,mt(Y())),ce(function(r){var i=this;return e(t,function(p){return dt(p,i,r)})})})}function Ua(e,t){t=t===s?" ":ut(t);var r=t.length;if(r<2)return r?oi(t,e):t;var i=oi(t,Aa(e/Wr(t)));return Hr(t)?_r(Lt(i),0,e).join(""):i.slice(0,e)}function x_(e,t,r,i){var p=t&X,m=Os(e);function y(){for(var b=-1,v=arguments.length,C=-1,z=i.length,S=k(z+v),j=this&&this!==He&&this instanceof y?m:e;++C<z;)S[C]=i[C];for(;v--;)S[C++]=arguments[++b];return dt(j,p?r:this,S)}return y}function pc(e){return function(t,r,i){return i&&typeof i!="number"&&Ze(t,r,i)&&(r=i=s),t=tr(t),r===s?(r=t,t=0):r=tr(r),i=i===s?t<r?1:-1:tr(i),a_(t,r,i,e)}}function Ka(e){return function(t,r){return typeof t=="string"&&typeof r=="string"||(t=At(t),r=At(r)),e(t,r)}}function dc(e,t,r,i,p,m,y,b,v,C){var z=t&B,S=z?y:s,j=z?s:y,G=z?m:s,Q=z?s:m;t|=z?T:M,t&=~(z?M:T),t&W||(t&=~(X|ee));var le=[e,t,p,G,S,Q,j,b,v,C],Z=r.apply(s,le);return vi(e)&&Tc(Z,le),Z.placeholder=i,Dc(Z,e,t)}function _i(e){var t=Be[e];return function(r,i){if(r=At(r),i=i==null?0:Xe(oe(i),292),i&&Dl(r)){var p=(we(r)+"e").split("e"),m=t(p[0]+"e"+(+p[1]+i));return p=(we(m)+"e").split("e"),+(p[0]+"e"+(+p[1]-i))}return t(r)}}var h_=Vr&&1/ga(new Vr([,-0]))[1]==Ne?function(e){return new Vr(e)}:Oi;function mc(e){return function(t){var r=Ve(t);return r==ct?Hn(t):r==pt?Ou(t):Cu(t,e(t))}}function Qt(e,t,r,i,p,m,y,b){var v=t&ee;if(!v&&typeof e!="function")throw new vt(u);var C=i?i.length:0;if(C||(t&=~(T|M),i=p=s),y=y===s?y:Ue(oe(y),0),b=b===s?b:oe(b),C-=p?p.length:0,t&M){var z=i,S=p;i=p=s}var j=v?s:bi(e),G=[e,t,r,i,p,z,S,m,y,b];if(j&&P_(G,j),e=G[0],t=G[1],r=G[2],i=G[3],p=G[4],b=G[9]=G[9]===s?v?0:e.length:Ue(G[9]-C,0),!b&&t&(B|O)&&(t&=~(B|O)),!t||t==X)var Q=g_(e,t,r);else t==B||t==O?Q=b_(e,t,b):(t==T||t==(X|T))&&!p.length?Q=x_(e,t,r,i):Q=Fa.apply(s,G);var le=j?Wl:Tc;return Dc(le(Q,G),e,t)}function uc(e,t,r,i){return e===s||Mt(e,Xr[r])&&!Te.call(i,r)?t:e}function yc(e,t,r,i,p,m){return Se(e)&&Se(t)&&(m.set(t,e),Pa(e,t,s,yc,m),m.delete(t)),e}function w_(e){return Bs(e)?s:e}function _c(e,t,r,i,p,m){var y=r&U,b=e.length,v=t.length;if(b!=v&&!(y&&v>b))return!1;var C=m.get(e),z=m.get(t);if(C&&z)return C==t&&z==e;var S=-1,j=!0,G=r&L?new kr:s;for(m.set(e,t),m.set(t,e);++S<b;){var Q=e[S],le=t[S];if(i)var Z=y?i(le,Q,S,t,e,m):i(Q,le,S,e,t,m);if(Z!==s){if(Z)continue;j=!1;break}if(G){if(!Fn(t,function(de,_e){if(!Is(G,_e)&&(Q===de||p(Q,de,r,i,m)))return G.push(_e)})){j=!1;break}}else if(!(Q===le||p(Q,le,r,i,m))){j=!1;break}}return m.delete(e),m.delete(t),j}function v_(e,t,r,i,p,m,y){switch(r){case or:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Et:return!(e.byteLength!=t.byteLength||!m(new Ta(e),new Ta(t)));case Ft:case Ht:case Bt:return Mt(+e,+t);case Mr:return e.name==t.name&&e.message==t.message;case hr:case Wt:return e==t+"";case ct:var b=Hn;case pt:var v=i&U;if(b||(b=ga),e.size!=t.size&&!v)return!1;var C=y.get(e);if(C)return C==t;i|=L,y.set(e,t);var z=_c(b(e),b(t),i,p,m,y);return y.delete(e),z;case Fr:if(Ss)return Ss.call(e)==Ss.call(t)}return!1}function T_(e,t,r,i,p,m){var y=r&U,b=fi(e),v=b.length,C=fi(t),z=C.length;if(v!=z&&!y)return!1;for(var S=v;S--;){var j=b[S];if(!(y?j in t:Te.call(t,j)))return!1}var G=m.get(e),Q=m.get(t);if(G&&Q)return G==t&&Q==e;var le=!0;m.set(e,t),m.set(t,e);for(var Z=y;++S<v;){j=b[S];var de=e[j],_e=t[j];if(i)var _t=y?i(_e,de,j,t,e,m):i(de,_e,j,e,t,m);if(!(_t===s?de===_e||p(de,_e,r,i,m):_t)){le=!1;break}Z||(Z=j=="constructor")}if(le&&!Z){var Je=e.constructor,ft=t.constructor;Je!=ft&&"constructor"in e&&"constructor"in t&&!(typeof Je=="function"&&Je instanceof Je&&typeof ft=="function"&&ft instanceof ft)&&(le=!1)}return m.delete(e),m.delete(t),le}function Zt(e){return Di(wc(e,s,zc),e+"")}function fi(e){return Pl(e,$e,hi)}function gi(e){return Pl(e,at,fc)}var bi=Ca?function(e){return Ca.get(e)}:Oi;function $a(e){for(var t=e.name+"",r=Yr[t],i=Te.call(Yr,t)?r.length:0;i--;){var p=r[i],m=p.func;if(m==null||m==e)return p.name}return t}function es(e){var t=Te.call(d,"placeholder")?d:e;return t.placeholder}function Y(){var e=d.iteratee||Pi;return e=e===Pi?Rl:e,arguments.length?e(arguments[0],arguments[1]):e}function ja(e,t){var r=e.__data__;return S_(t)?r[typeof t=="string"?"string":"hash"]:r.map}function xi(e){for(var t=$e(e),r=t.length;r--;){var i=t[r],p=e[i];t[r]=[i,p,xc(p)]}return t}function qr(e,t){var r=Lu(e,t);return Ol(r)?r:s}function D_(e){var t=Te.call(e,Tr),r=e[Tr];try{e[Tr]=s;var i=!0}catch{}var p=wa.call(e);return i&&(t?e[Tr]=r:delete e[Tr]),p}var hi=Gn?function(e){return e==null?[]:(e=ke(e),lr(Gn(e),function(t){return vl.call(e,t)}))}:Ri,fc=Gn?function(e){for(var t=[];e;)cr(t,hi(e)),e=Da(e);return t}:Ri,Ve=Qe;(Xn&&Ve(new Xn(new ArrayBuffer(1)))!=or||qs&&Ve(new qs)!=ct||Vn&&Ve(Vn.resolve())!=_s||Vr&&Ve(new Vr)!=pt||Cs&&Ve(new Cs)!=ir)&&(Ve=function(e){var t=Qe(e),r=t==xt?e.constructor:s,i=r?Cr(r):"";if(i)switch(i){case iy:return or;case oy:return ct;case ly:return _s;case cy:return pt;case py:return ir}return t});function k_(e,t,r){for(var i=-1,p=r.length;++i<p;){var m=r[i],y=m.size;switch(m.type){case"drop":e+=y;break;case"dropRight":t-=y;break;case"take":t=Xe(t,e+y);break;case"takeRight":e=Ue(e,t-y);break}}return{start:e,end:t}}function I_(e){var t=e.match(Cn);return t?t[1].split(_):[]}function gc(e,t,r){t=yr(t,e);for(var i=-1,p=t.length,m=!1;++i<p;){var y=$t(t[i]);if(!(m=e!=null&&r(e,y)))break;e=e[y]}return m||++i!=p?m:(p=e==null?0:e.length,!!p&&Qa(p)&&Jt(y,p)&&(se(e)||zr(e)))}function A_(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&Te.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function bc(e){return typeof e.constructor=="function"&&!Rs(e)?Qr(Da(e)):{}}function q_(e,t,r){var i=e.constructor;switch(t){case Et:return ui(e);case Ft:case Ht:return new i(+e);case or:return d_(e,r);case Br:case Ur:case wr:case fs:case gs:case bs:case xs:case hs:case ws:return ec(e,r);case ct:return new i;case Bt:case Wt:return new i(e);case hr:return m_(e);case pt:return new i;case Fr:return u_(e)}}function C_(e,t){var r=t.length;if(!r)return e;var i=r-1;return t[i]=(r>1?"& ":"")+t[i],t=t.join(r>2?", ":" "),e.replace(qn,`{
115
115
  /* [wrapped with `+t+`] */
116
- `)}function z_(e){return se(e)||zr(e)||!!(Tl&&e&&e[Tl])}function Jt(e,t){var r=typeof e;return t=t??Oe,!!t&&(r=="number"||r!="symbol"&&Ne.test(e))&&e>-1&&e%1==0&&e<t}function Ze(e,t,r){if(!ze(r))return!1;var i=typeof t;return(i=="number"?st(r)&&Jt(t,r.length):i=="string"&&t in r)?Mt(r[t],e):!1}function wi(e,t){if(se(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||yt(e)?!0:da.test(e)||!pa.test(e)||t!=null&&e in De(t)}function S_(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function vi(e){var t=$a(e),r=d[t];if(typeof r!="function"||!(t in ye.prototype))return!1;if(e===r)return!0;var i=bi(r);return!!i&&e===i[0]}function E_(e){return!!xl&&xl in e}var N_=xa?er:Fi;function Rs(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Xr;return e===r}function xc(e){return e===e&&!ze(e)}function hc(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==s||e in De(r))}}function L_(e){var t=Va(e,function(i){return r.size===g&&r.clear(),i}),r=t.cache;return t}function P_(e,t){var r=e[1],i=t[1],p=r|i,m=p<(X|J|j),y=i==j&&r==F||i==j&&r==ae&&e[7].length<=t[8]||i==(j|ae)&&t[7].length<=t[8]&&r==F;if(!(m||y))return e;i&X&&(e[2]=t[2],p|=r&X?0:G);var b=t[3];if(b){var v=e[3];e[3]=v?rc(v,b,t[4]):b,e[4]=v?pr(e[3],h):t[4]}return b=t[5],b&&(v=e[5],e[5]=v?sc(v,b,t[6]):b,e[6]=v?pr(e[5],h):t[6]),b=t[7],b&&(e[7]=b),i&j&&(e[8]=e[8]==null?t[8]:Xe(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=p,e}function M_(e){var t=[];if(e!=null)for(var r in De(e))t.push(r);return t}function O_(e){return wa.call(e)}function wc(e,t,r){return t=Ue(t===s?e.length-1:t,0),function(){for(var i=arguments,p=-1,m=Ue(i.length-t,0),y=D(m);++p<m;)y[p]=i[t+p];p=-1;for(var b=D(t+1);++p<t;)b[p]=i[p];return b[t]=r(y),dt(e,this,b)}}function vc(e,t){return t.length<2?e:Ar(e,kt(t,0,-1))}function R_(e,t){for(var r=e.length,i=Xe(t.length,r),p=rt(e);i--;){var m=t[i];e[i]=Jt(m,r)?p[m]:s}return e}function Ti(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Tc=kc(Wl),Fs=Ju||function(e,t){return He.setTimeout(e,t)},Di=kc(o_);function Dc(e,t,r){var i=t+"";return Di(e,C_(i,F_(I_(i),r)))}function kc(e){var t=0,r=0;return function(){var i=sy(),p=Re-(i-r);if(r=i,p>0){if(++t>=zt)return arguments[0]}else t=0;return e.apply(s,arguments)}}function Ha(e,t){var r=-1,i=e.length,p=i-1;for(t=t===s?i:t;++r<t;){var m=ii(r,p),y=e[m];e[m]=e[r],e[r]=y}return e.length=t,e}var Ic=L_(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(In,function(r,i,p,m){t.push(p?m.replace(ee,"$1"):i||r)}),t});function $t(e){if(typeof e=="string"||yt(e))return e;var t=e+"";return t=="0"&&1/e==-Ee?"-0":t}function Cr(e){if(e!=null){try{return ha.call(e)}catch{}try{return e+""}catch{}}return""}function F_(e,t){return wt(jt,function(r){var i="_."+r[0];t&r[1]&&!_a(e,i)&&e.push(i)}),e.sort()}function Ac(e){if(e instanceof ye)return e.clone();var t=new Tt(e.__wrapped__,e.__chain__);return t.__actions__=rt(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function B_(e,t,r){(r?Ze(e,t,r):t===s)?t=1:t=Ue(ne(t),0);var i=e==null?0:e.length;if(!i||t<1)return[];for(var p=0,m=0,y=D(Aa(i/t));p<i;)y[m++]=kt(e,p,p+=t);return y}function U_(e){for(var t=-1,r=e==null?0:e.length,i=0,p=[];++t<r;){var m=e[t];m&&(p[i++]=m)}return p}function K_(){var e=arguments.length;if(!e)return[];for(var t=D(e-1),r=arguments[0],i=e;i--;)t[i-1]=arguments[i];return cr(se(r)?rt(r):[r],We(t,1))}var $_=le(function(e,t){return Pe(e)?Ns(e,We(t,1,Pe,!0)):[]}),j_=le(function(e,t){var r=It(t);return Pe(r)&&(r=s),Pe(e)?Ns(e,We(t,1,Pe,!0),Y(r,2)):[]}),H_=le(function(e,t){var r=It(t);return Pe(r)&&(r=s),Pe(e)?Ns(e,We(t,1,Pe,!0),s,r):[]});function W_(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===s?1:ne(t),kt(e,t<0?0:t,i)):[]}function G_(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===s?1:ne(t),t=i-t,kt(e,0,t<0?0:t)):[]}function X_(e,t){return e&&e.length?Oa(e,Y(t,3),!0,!0):[]}function V_(e,t){return e&&e.length?Oa(e,Y(t,3),!0):[]}function Y_(e,t,r,i){var p=e==null?0:e.length;return p?(r&&typeof r!="number"&&Ze(e,t,r)&&(r=0,i=p),Ky(e,t,r,i)):[]}function qc(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var p=r==null?0:ne(r);return p<0&&(p=Ue(i+p,0)),fa(e,Y(t,3),p)}function Cc(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var p=i-1;return r!==s&&(p=ne(r),p=r<0?Ue(i+p,0):Xe(p,i-1)),fa(e,Y(t,3),p,!0)}function zc(e){var t=e==null?0:e.length;return t?We(e,1):[]}function Q_(e){var t=e==null?0:e.length;return t?We(e,Ee):[]}function Z_(e,t){var r=e==null?0:e.length;return r?(t=t===s?1:ne(t),We(e,t)):[]}function J_(e){for(var t=-1,r=e==null?0:e.length,i={};++t<r;){var p=e[t];i[p[0]]=p[1]}return i}function Sc(e){return e&&e.length?e[0]:s}function ef(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var p=r==null?0:ne(r);return p<0&&(p=Ue(i+p,0)),jr(e,t,p)}function tf(e){var t=e==null?0:e.length;return t?kt(e,0,-1):[]}var rf=le(function(e){var t=qe(e,di);return t.length&&t[0]===e[0]?ti(t):[]}),sf=le(function(e){var t=It(e),r=qe(e,di);return t===It(r)?t=s:r.pop(),r.length&&r[0]===e[0]?ti(r,Y(t,2)):[]}),af=le(function(e){var t=It(e),r=qe(e,di);return t=typeof t=="function"?t:s,t&&r.pop(),r.length&&r[0]===e[0]?ti(r,s,t):[]});function nf(e,t){return e==null?"":ty.call(e,t)}function It(e){var t=e==null?0:e.length;return t?e[t-1]:s}function of(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var p=i;return r!==s&&(p=ne(r),p=p<0?Ue(i+p,0):Xe(p,i-1)),t===t?Fu(e,t,p):fa(e,dl,p,!0)}function lf(e,t){return e&&e.length?Kl(e,ne(t)):s}var cf=le(Ec);function Ec(e,t){return e&&e.length&&t&&t.length?ni(e,t):e}function pf(e,t,r){return e&&e.length&&t&&t.length?ni(e,t,Y(r,2)):e}function df(e,t,r){return e&&e.length&&t&&t.length?ni(e,t,s,r):e}var mf=Zt(function(e,t){var r=e==null?0:e.length,i=Qn(e,t);return Hl(e,qe(t,function(p){return Jt(p,r)?+p:p}).sort(tc)),i});function uf(e,t){var r=[];if(!(e&&e.length))return r;var i=-1,p=[],m=e.length;for(t=Y(t,3);++i<m;){var y=e[i];t(y,i,e)&&(r.push(y),p.push(i))}return Hl(e,p),r}function ki(e){return e==null?e:ny.call(e)}function yf(e,t,r){var i=e==null?0:e.length;return i?(r&&typeof r!="number"&&Ze(e,t,r)?(t=0,r=i):(t=t==null?0:ne(t),r=r===s?i:ne(r)),kt(e,t,r)):[]}function _f(e,t){return Ma(e,t)}function ff(e,t,r){return li(e,t,Y(r,2))}function gf(e,t){var r=e==null?0:e.length;if(r){var i=Ma(e,t);if(i<r&&Mt(e[i],t))return i}return-1}function bf(e,t){return Ma(e,t,!0)}function xf(e,t,r){return li(e,t,Y(r,2),!0)}function hf(e,t){var r=e==null?0:e.length;if(r){var i=Ma(e,t,!0)-1;if(Mt(e[i],t))return i}return-1}function wf(e){return e&&e.length?Gl(e):[]}function vf(e,t){return e&&e.length?Gl(e,Y(t,2)):[]}function Tf(e){var t=e==null?0:e.length;return t?kt(e,1,t):[]}function Df(e,t,r){return e&&e.length?(t=r||t===s?1:ne(t),kt(e,0,t<0?0:t)):[]}function kf(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===s?1:ne(t),t=i-t,kt(e,t<0?0:t,i)):[]}function If(e,t){return e&&e.length?Oa(e,Y(t,3),!1,!0):[]}function Af(e,t){return e&&e.length?Oa(e,Y(t,3)):[]}var qf=le(function(e){return ur(We(e,1,Pe,!0))}),Cf=le(function(e){var t=It(e);return Pe(t)&&(t=s),ur(We(e,1,Pe,!0),Y(t,2))}),zf=le(function(e){var t=It(e);return t=typeof t=="function"?t:s,ur(We(e,1,Pe,!0),s,t)});function Sf(e){return e&&e.length?ur(e):[]}function Ef(e,t){return e&&e.length?ur(e,Y(t,2)):[]}function Nf(e,t){return t=typeof t=="function"?t:s,e&&e.length?ur(e,s,t):[]}function Ii(e){if(!(e&&e.length))return[];var t=0;return e=lr(e,function(r){if(Pe(r))return t=Ue(r.length,t),!0}),$n(t,function(r){return qe(e,Bn(r))})}function Nc(e,t){if(!(e&&e.length))return[];var r=Ii(e);return t==null?r:qe(r,function(i){return dt(t,s,i)})}var Lf=le(function(e,t){return Pe(e)?Ns(e,t):[]}),Pf=le(function(e){return pi(lr(e,Pe))}),Mf=le(function(e){var t=It(e);return Pe(t)&&(t=s),pi(lr(e,Pe),Y(t,2))}),Of=le(function(e){var t=It(e);return t=typeof t=="function"?t:s,pi(lr(e,Pe),s,t)}),Rf=le(Ii);function Ff(e,t){return Ql(e||[],t||[],Es)}function Bf(e,t){return Ql(e||[],t||[],Ms)}var Uf=le(function(e){var t=e.length,r=t>1?e[t-1]:s;return r=typeof r=="function"?(e.pop(),r):s,Nc(e,r)});function Lc(e){var t=d(e);return t.__chain__=!0,t}function Kf(e,t){return t(e),e}function Wa(e,t){return t(e)}var $f=Zt(function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,p=function(m){return Qn(m,e)};return t>1||this.__actions__.length||!(i instanceof ye)||!Jt(r)?this.thru(p):(i=i.slice(r,+r+(t?1:0)),i.__actions__.push({func:Wa,args:[p],thisArg:s}),new Tt(i,this.__chain__).thru(function(m){return t&&!m.length&&m.push(s),m}))});function jf(){return Lc(this)}function Hf(){return new Tt(this.value(),this.__chain__)}function Wf(){this.__values__===s&&(this.__values__=Xc(this.value()));var e=this.__index__>=this.__values__.length,t=e?s:this.__values__[this.__index__++];return{done:e,value:t}}function Gf(){return this}function Xf(e){for(var t,r=this;r instanceof Sa;){var i=Ac(r);i.__index__=0,i.__values__=s,t?p.__wrapped__=i:t=i;var p=i;r=r.__wrapped__}return p.__wrapped__=e,t}function Vf(){var e=this.__wrapped__;if(e instanceof ye){var t=e;return this.__actions__.length&&(t=new ye(this)),t=t.reverse(),t.__actions__.push({func:Wa,args:[ki],thisArg:s}),new Tt(t,this.__chain__)}return this.thru(ki)}function Yf(){return Yl(this.__wrapped__,this.__actions__)}var Qf=Ra(function(e,t,r){Te.call(e,r)?++e[r]:Yt(e,r,1)});function Zf(e,t,r){var i=se(e)?cl:Uy;return r&&Ze(e,t,r)&&(t=s),i(e,Y(t,3))}function Jf(e,t){var r=se(e)?lr:Nl;return r(e,Y(t,3))}var eg=oc(qc),tg=oc(Cc);function rg(e,t){return We(Ga(e,t),1)}function sg(e,t){return We(Ga(e,t),Ee)}function ag(e,t,r){return r=r===s?1:ne(r),We(Ga(e,t),r)}function Pc(e,t){var r=se(e)?wt:mr;return r(e,Y(t,3))}function Mc(e,t){var r=se(e)?vu:El;return r(e,Y(t,3))}var ng=Ra(function(e,t,r){Te.call(e,r)?e[r].push(t):Yt(e,r,[t])});function ig(e,t,r,i){e=st(e)?e:rs(e),r=r&&!i?ne(r):0;var p=e.length;return r<0&&(r=Ue(p+r,0)),Za(e)?r<=p&&e.indexOf(t,r)>-1:!!p&&jr(e,t,r)>-1}var og=le(function(e,t,r){var i=-1,p=typeof t=="function",m=st(e)?D(e.length):[];return mr(e,function(y){m[++i]=p?dt(t,y,r):Ls(y,t,r)}),m}),lg=Ra(function(e,t,r){Yt(e,r,t)});function Ga(e,t){var r=se(e)?qe:Fl;return r(e,Y(t,3))}function cg(e,t,r,i){return e==null?[]:(se(t)||(t=t==null?[]:[t]),r=i?s:r,se(r)||(r=r==null?[]:[r]),$l(e,t,r))}var pg=Ra(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});function dg(e,t,r){var i=se(e)?Rn:ul,p=arguments.length<3;return i(e,Y(t,4),r,p,mr)}function mg(e,t,r){var i=se(e)?Tu:ul,p=arguments.length<3;return i(e,Y(t,4),r,p,El)}function ug(e,t){var r=se(e)?lr:Nl;return r(e,Ya(Y(t,3)))}function yg(e){var t=se(e)?ql:n_;return t(e)}function _g(e,t,r){(r?Ze(e,t,r):t===s)?t=1:t=ne(t);var i=se(e)?My:i_;return i(e,t)}function fg(e){var t=se(e)?Oy:l_;return t(e)}function gg(e){if(e==null)return 0;if(st(e))return Za(e)?Wr(e):e.length;var t=Ve(e);return t==ct||t==pt?e.size:si(e).length}function bg(e,t,r){var i=se(e)?Fn:c_;return r&&Ze(e,t,r)&&(t=s),i(e,Y(t,3))}var xg=le(function(e,t){if(e==null)return[];var r=t.length;return r>1&&Ze(e,t[0],t[1])?t=[]:r>2&&Ze(t[0],t[1],t[2])&&(t=[t[0]]),$l(e,We(t,1),[])}),Xa=Zu||function(){return He.Date.now()};function hg(e,t){if(typeof t!="function")throw new vt(u);return e=ne(e),function(){if(--e<1)return t.apply(this,arguments)}}function Oc(e,t,r){return t=r?s:t,t=e&&t==null?e.length:t,Qt(e,j,s,s,s,s,t)}function Rc(e,t){var r;if(typeof t!="function")throw new vt(u);return e=ne(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=s),r}}var Ai=le(function(e,t,r){var i=X;if(r.length){var p=pr(r,es(Ai));i|=k}return Qt(e,i,t,r,p)}),Fc=le(function(e,t,r){var i=X|J;if(r.length){var p=pr(r,es(Fc));i|=k}return Qt(t,i,e,r,p)});function Bc(e,t,r){t=r?s:t;var i=Qt(e,F,s,s,s,s,s,t);return i.placeholder=Bc.placeholder,i}function Uc(e,t,r){t=r?s:t;var i=Qt(e,A,s,s,s,s,s,t);return i.placeholder=Uc.placeholder,i}function Kc(e,t,r){var i,p,m,y,b,v,z=0,S=!1,E=!1,$=!0;if(typeof e!="function")throw new vt(u);t=At(t)||0,ze(r)&&(S=!!r.leading,E="maxWait"in r,m=E?Ue(At(r.maxWait)||0,t):m,$="trailing"in r?!!r.trailing:$);function W(Me){var Ot=i,rr=p;return i=p=s,z=Me,y=e.apply(rr,Ot),y}function Q(Me){return z=Me,b=Fs(me,t),S?W(Me):y}function ie(Me){var Ot=Me-v,rr=Me-z,op=t-Ot;return E?Xe(op,m-rr):op}function Z(Me){var Ot=Me-v,rr=Me-z;return v===s||Ot>=t||Ot<0||E&&rr>=m}function me(){var Me=Xa();if(Z(Me))return fe(Me);b=Fs(me,ie(Me))}function fe(Me){return b=s,$&&i?W(Me):(i=p=s,y)}function _t(){b!==s&&Zl(b),z=0,i=v=p=b=s}function Je(){return b===s?y:fe(Xa())}function ft(){var Me=Xa(),Ot=Z(Me);if(i=arguments,p=this,v=Me,Ot){if(b===s)return Q(v);if(E)return Zl(b),b=Fs(me,t),W(v)}return b===s&&(b=Fs(me,t)),y}return ft.cancel=_t,ft.flush=Je,ft}var wg=le(function(e,t){return Sl(e,1,t)}),vg=le(function(e,t,r){return Sl(e,At(t)||0,r)});function Tg(e){return Qt(e,oe)}function Va(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new vt(u);var r=function(){var i=arguments,p=t?t.apply(this,i):i[0],m=r.cache;if(m.has(p))return m.get(p);var y=e.apply(this,i);return r.cache=m.set(p,y)||m,y};return r.cache=new(Va.Cache||Vt),r}Va.Cache=Vt;function Ya(e){if(typeof e!="function")throw new vt(u);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Dg(e){return Rc(2,e)}var kg=p_(function(e,t){t=t.length==1&&se(t[0])?qe(t[0],mt(Y())):qe(We(t,1),mt(Y()));var r=t.length;return le(function(i){for(var p=-1,m=Xe(i.length,r);++p<m;)i[p]=t[p].call(this,i[p]);return dt(e,this,i)})}),qi=le(function(e,t){var r=pr(t,es(qi));return Qt(e,k,s,t,r)}),$c=le(function(e,t){var r=pr(t,es($c));return Qt(e,U,s,t,r)}),Ig=Zt(function(e,t){return Qt(e,ae,s,s,s,t)});function Ag(e,t){if(typeof e!="function")throw new vt(u);return t=t===s?t:ne(t),le(e,t)}function qg(e,t){if(typeof e!="function")throw new vt(u);return t=t==null?0:Ue(ne(t),0),le(function(r){var i=r[t],p=_r(r,0,t);return i&&cr(p,i),dt(e,this,p)})}function Cg(e,t,r){var i=!0,p=!0;if(typeof e!="function")throw new vt(u);return ze(r)&&(i="leading"in r?!!r.leading:i,p="trailing"in r?!!r.trailing:p),Kc(e,t,{leading:i,maxWait:t,trailing:p})}function zg(e){return Oc(e,1)}function Sg(e,t){return qi(mi(t),e)}function Eg(){if(!arguments.length)return[];var e=arguments[0];return se(e)?e:[e]}function Ng(e){return Dt(e,O)}function Lg(e,t){return t=typeof t=="function"?t:s,Dt(e,O,t)}function Pg(e){return Dt(e,T|O)}function Mg(e,t){return t=typeof t=="function"?t:s,Dt(e,T|O,t)}function Og(e,t){return t==null||zl(e,t,$e(t))}function Mt(e,t){return e===t||e!==e&&t!==t}var Rg=Ka(ei),Fg=Ka(function(e,t){return e>=t}),zr=Ml(function(){return arguments}())?Ml:function(e){return Le(e)&&Te.call(e,"callee")&&!vl.call(e,"callee")},se=D.isArray,Bg=sl?mt(sl):Gy;function st(e){return e!=null&&Qa(e.length)&&!er(e)}function Pe(e){return Le(e)&&st(e)}function Ug(e){return e===!0||e===!1||Le(e)&&Qe(e)==Ft}var fr=ey||Fi,Kg=al?mt(al):Xy;function $g(e){return Le(e)&&e.nodeType===1&&!Bs(e)}function jg(e){if(e==null)return!0;if(st(e)&&(se(e)||typeof e=="string"||typeof e.splice=="function"||fr(e)||ts(e)||zr(e)))return!e.length;var t=Ve(e);if(t==ct||t==pt)return!e.size;if(Rs(e))return!si(e).length;for(var r in e)if(Te.call(e,r))return!1;return!0}function Hg(e,t){return Ps(e,t)}function Wg(e,t,r){r=typeof r=="function"?r:s;var i=r?r(e,t):s;return i===s?Ps(e,t,s,r):!!i}function Ci(e){if(!Le(e))return!1;var t=Qe(e);return t==Mr||t==Pr||typeof e.message=="string"&&typeof e.name=="string"&&!Bs(e)}function Gg(e){return typeof e=="number"&&Dl(e)}function er(e){if(!ze(e))return!1;var t=Qe(e);return t==xr||t==aa||t==ys||t==Rr}function jc(e){return typeof e=="number"&&e==ne(e)}function Qa(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Oe}function ze(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Le(e){return e!=null&&typeof e=="object"}var Hc=nl?mt(nl):Yy;function Xg(e,t){return e===t||ri(e,t,xi(t))}function Vg(e,t,r){return r=typeof r=="function"?r:s,ri(e,t,xi(t),r)}function Yg(e){return Wc(e)&&e!=+e}function Qg(e){if(N_(e))throw new re(c);return Ol(e)}function Zg(e){return e===null}function Jg(e){return e==null}function Wc(e){return typeof e=="number"||Le(e)&&Qe(e)==Bt}function Bs(e){if(!Le(e)||Qe(e)!=xt)return!1;var t=Da(e);if(t===null)return!0;var r=Te.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&ha.call(r)==Xu}var zi=il?mt(il):Qy;function eb(e){return jc(e)&&e>=-Oe&&e<=Oe}var Gc=ol?mt(ol):Zy;function Za(e){return typeof e=="string"||!se(e)&&Le(e)&&Qe(e)==Wt}function yt(e){return typeof e=="symbol"||Le(e)&&Qe(e)==Fr}var ts=ll?mt(ll):Jy;function tb(e){return e===s}function rb(e){return Le(e)&&Ve(e)==ir}function sb(e){return Le(e)&&Qe(e)==na}var ab=Ka(ai),nb=Ka(function(e,t){return e<=t});function Xc(e){if(!e)return[];if(st(e))return Za(e)?Lt(e):rt(e);if(As&&e[As])return Mu(e[As]());var t=Ve(e),r=t==ct?Hn:t==pt?ga:rs;return r(e)}function tr(e){if(!e)return e===0?e:0;if(e=At(e),e===Ee||e===-Ee){var t=e<0?-1:1;return t*bt}return e===e?e:0}function ne(e){var t=tr(e),r=t%1;return t===t?r?t-r:t:0}function Vc(e){return e?Ir(ne(e),0,te):0}function At(e){if(typeof e=="number")return e;if(yt(e))return St;if(ze(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ze(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=yl(e);var r=de.test(e);return r||Ce.test(e)?xu(e.slice(2),r?2:8):ue.test(e)?St:+e}function Yc(e){return Kt(e,at(e))}function ib(e){return e?Ir(ne(e),-Oe,Oe):e===0?e:0}function we(e){return e==null?"":ut(e)}var ob=Zr(function(e,t){if(Rs(t)||st(t)){Kt(t,$e(t),e);return}for(var r in t)Te.call(t,r)&&Es(e,r,t[r])}),Qc=Zr(function(e,t){Kt(t,at(t),e)}),Ja=Zr(function(e,t,r,i){Kt(t,at(t),e,i)}),lb=Zr(function(e,t,r,i){Kt(t,$e(t),e,i)}),cb=Zt(Qn);function pb(e,t){var r=Qr(e);return t==null?r:Cl(r,t)}var db=le(function(e,t){e=De(e);var r=-1,i=t.length,p=i>2?t[2]:s;for(p&&Ze(t[0],t[1],p)&&(i=1);++r<i;)for(var m=t[r],y=at(m),b=-1,v=y.length;++b<v;){var z=y[b],S=e[z];(S===s||Mt(S,Xr[z])&&!Te.call(e,z))&&(e[z]=m[z])}return e}),mb=le(function(e){return e.push(s,yc),dt(Zc,s,e)});function ub(e,t){return pl(e,Y(t,3),Ut)}function yb(e,t){return pl(e,Y(t,3),Jn)}function _b(e,t){return e==null?e:Zn(e,Y(t,3),at)}function fb(e,t){return e==null?e:Ll(e,Y(t,3),at)}function gb(e,t){return e&&Ut(e,Y(t,3))}function bb(e,t){return e&&Jn(e,Y(t,3))}function xb(e){return e==null?[]:La(e,$e(e))}function hb(e){return e==null?[]:La(e,at(e))}function Si(e,t,r){var i=e==null?s:Ar(e,t);return i===s?r:i}function wb(e,t){return e!=null&&gc(e,t,$y)}function Ei(e,t){return e!=null&&gc(e,t,jy)}var vb=cc(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=wa.call(t)),e[t]=r},Li(nt)),Tb=cc(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=wa.call(t)),Te.call(e,t)?e[t].push(r):e[t]=[r]},Y),Db=le(Ls);function $e(e){return st(e)?Al(e):si(e)}function at(e){return st(e)?Al(e,!0):e_(e)}function kb(e,t){var r={};return t=Y(t,3),Ut(e,function(i,p,m){Yt(r,t(i,p,m),i)}),r}function Ib(e,t){var r={};return t=Y(t,3),Ut(e,function(i,p,m){Yt(r,p,t(i,p,m))}),r}var Ab=Zr(function(e,t,r){Pa(e,t,r)}),Zc=Zr(function(e,t,r,i){Pa(e,t,r,i)}),qb=Zt(function(e,t){var r={};if(e==null)return r;var i=!1;t=qe(t,function(m){return m=yr(m,e),i||(i=m.length>1),m}),Kt(e,gi(e),r),i&&(r=Dt(r,T|M|O,w_));for(var p=t.length;p--;)ci(r,t[p]);return r});function Cb(e,t){return Jc(e,Ya(Y(t)))}var zb=Zt(function(e,t){return e==null?{}:r_(e,t)});function Jc(e,t){if(e==null)return{};var r=qe(gi(e),function(i){return[i]});return t=Y(t),jl(e,r,function(i,p){return t(i,p[0])})}function Sb(e,t,r){t=yr(t,e);var i=-1,p=t.length;for(p||(p=1,e=s);++i<p;){var m=e==null?s:e[$t(t[i])];m===s&&(i=p,m=r),e=er(m)?m.call(e):m}return e}function Eb(e,t,r){return e==null?e:Ms(e,t,r)}function Nb(e,t,r,i){return i=typeof i=="function"?i:s,e==null?e:Ms(e,t,r,i)}var ep=mc($e),tp=mc(at);function Lb(e,t,r){var i=se(e),p=i||fr(e)||ts(e);if(t=Y(t,4),r==null){var m=e&&e.constructor;p?r=i?new m:[]:ze(e)?r=er(m)?Qr(Da(e)):{}:r={}}return(p?wt:Ut)(e,function(y,b,v){return t(r,y,b,v)}),r}function Pb(e,t){return e==null?!0:ci(e,t)}function Mb(e,t,r){return e==null?e:Vl(e,t,mi(r))}function Ob(e,t,r,i){return i=typeof i=="function"?i:s,e==null?e:Vl(e,t,mi(r),i)}function rs(e){return e==null?[]:jn(e,$e(e))}function Rb(e){return e==null?[]:jn(e,at(e))}function Fb(e,t,r){return r===s&&(r=t,t=s),r!==s&&(r=At(r),r=r===r?r:0),t!==s&&(t=At(t),t=t===t?t:0),Ir(At(e),t,r)}function Bb(e,t,r){return t=tr(t),r===s?(r=t,t=0):r=tr(r),e=At(e),Hy(e,t,r)}function Ub(e,t,r){if(r&&typeof r!="boolean"&&Ze(e,t,r)&&(t=r=s),r===s&&(typeof t=="boolean"?(r=t,t=s):typeof e=="boolean"&&(r=e,e=s)),e===s&&t===s?(e=0,t=1):(e=tr(e),t===s?(t=e,e=0):t=tr(t)),e>t){var i=e;e=t,t=i}if(r||e%1||t%1){var p=kl();return Xe(e+p*(t-e+bu("1e-"+((p+"").length-1))),t)}return ii(e,t)}var Kb=Jr(function(e,t,r){return t=t.toLowerCase(),e+(r?rp(t):t)});function rp(e){return Ni(we(e).toLowerCase())}function sp(e){return e=we(e),e&&e.replace(et,Su).replace(lu,"")}function $b(e,t,r){e=we(e),t=ut(t);var i=e.length;r=r===s?i:Ir(ne(r),0,i);var p=r;return r-=t.length,r>=0&&e.slice(r,p)==t}function jb(e){return e=we(e),e&&oa.test(e)?e.replace(Kr,Eu):e}function Hb(e){return e=we(e),e&&ma.test(e)?e.replace(Ds,"\\$&"):e}var Wb=Jr(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),Gb=Jr(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),Xb=ic("toLowerCase");function Vb(e,t,r){e=we(e),t=ne(t);var i=t?Wr(e):0;if(!t||i>=t)return e;var p=(t-i)/2;return Ua(qa(p),r)+e+Ua(Aa(p),r)}function Yb(e,t,r){e=we(e),t=ne(t);var i=t?Wr(e):0;return t&&i<t?e+Ua(t-i,r):e}function Qb(e,t,r){e=we(e),t=ne(t);var i=t?Wr(e):0;return t&&i<t?Ua(t-i,r)+e:e}function Zb(e,t,r){return r||t==null?t=0:t&&(t=+t),ay(we(e).replace(ks,""),t||0)}function Jb(e,t,r){return(r?Ze(e,t,r):t===s)?t=1:t=ne(t),oi(we(e),t)}function ex(){var e=arguments,t=we(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var tx=Jr(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});function rx(e,t,r){return r&&typeof r!="number"&&Ze(e,t,r)&&(t=r=s),r=r===s?te:r>>>0,r?(e=we(e),e&&(typeof t=="string"||t!=null&&!zi(t))&&(t=ut(t),!t&&Hr(e))?_r(Lt(e),0,r):e.split(t,r)):[]}var sx=Jr(function(e,t,r){return e+(r?" ":"")+Ni(t)});function ax(e,t,r){return e=we(e),r=r==null?0:Ir(ne(r),0,e.length),t=ut(t),e.slice(r,r+t.length)==t}function nx(e,t,r){var i=d.templateSettings;r&&Ze(e,t,r)&&(t=s),e=we(e),t=Ja({},t,i,uc);var p=Ja({},t.imports,i.imports,uc),m=$e(p),y=jn(p,m),b,v,z=0,S=t.interpolate||Nt,E="__p += '",$=Wn((t.escape||Nt).source+"|"+S.source+"|"+(S===ca?ge:Nt).source+"|"+(t.evaluate||Nt).source+"|$","g"),W="//# sourceURL="+(Te.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++uu+"]")+`
117
- `;e.replace($,function(Z,me,fe,_t,Je,ft){return fe||(fe=_t),E+=e.slice(z,ft).replace(ua,Nu),me&&(b=!0,E+=`' +
118
- __e(`+me+`) +
119
- '`),Je&&(v=!0,E+=`';
116
+ `)}function z_(e){return se(e)||zr(e)||!!(Tl&&e&&e[Tl])}function Jt(e,t){var r=typeof e;return t=t??Me,!!t&&(r=="number"||r!="symbol"&&Le.test(e))&&e>-1&&e%1==0&&e<t}function Ze(e,t,r){if(!Se(r))return!1;var i=typeof t;return(i=="number"?st(r)&&Jt(t,r.length):i=="string"&&t in r)?Mt(r[t],e):!1}function wi(e,t){if(se(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||yt(e)?!0:da.test(e)||!pa.test(e)||t!=null&&e in ke(t)}function S_(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function vi(e){var t=$a(e),r=d[t];if(typeof r!="function"||!(t in ue.prototype))return!1;if(e===r)return!0;var i=bi(r);return!!i&&e===i[0]}function E_(e){return!!xl&&xl in e}var N_=xa?er:Fi;function Rs(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Xr;return e===r}function xc(e){return e===e&&!Se(e)}function hc(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==s||e in ke(r))}}function L_(e){var t=Va(e,function(i){return r.size===g&&r.clear(),i}),r=t.cache;return t}function P_(e,t){var r=e[1],i=t[1],p=r|i,m=p<(X|ee|K),y=i==K&&r==B||i==K&&r==ne&&e[7].length<=t[8]||i==(K|ne)&&t[7].length<=t[8]&&r==B;if(!(m||y))return e;i&X&&(e[2]=t[2],p|=r&X?0:W);var b=t[3];if(b){var v=e[3];e[3]=v?rc(v,b,t[4]):b,e[4]=v?pr(e[3],h):t[4]}return b=t[5],b&&(v=e[5],e[5]=v?sc(v,b,t[6]):b,e[6]=v?pr(e[5],h):t[6]),b=t[7],b&&(e[7]=b),i&K&&(e[8]=e[8]==null?t[8]:Xe(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=p,e}function M_(e){var t=[];if(e!=null)for(var r in ke(e))t.push(r);return t}function O_(e){return wa.call(e)}function wc(e,t,r){return t=Ue(t===s?e.length-1:t,0),function(){for(var i=arguments,p=-1,m=Ue(i.length-t,0),y=k(m);++p<m;)y[p]=i[t+p];p=-1;for(var b=k(t+1);++p<t;)b[p]=i[p];return b[t]=r(y),dt(e,this,b)}}function vc(e,t){return t.length<2?e:Ar(e,kt(t,0,-1))}function R_(e,t){for(var r=e.length,i=Xe(t.length,r),p=rt(e);i--;){var m=t[i];e[i]=Jt(m,r)?p[m]:s}return e}function Ti(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Tc=kc(Wl),Fs=Ju||function(e,t){return He.setTimeout(e,t)},Di=kc(o_);function Dc(e,t,r){var i=t+"";return Di(e,C_(i,F_(I_(i),r)))}function kc(e){var t=0,r=0;return function(){var i=sy(),p=Ke-(i-r);if(r=i,p>0){if(++t>=zt)return arguments[0]}else t=0;return e.apply(s,arguments)}}function Ha(e,t){var r=-1,i=e.length,p=i-1;for(t=t===s?i:t;++r<t;){var m=ii(r,p),y=e[m];e[m]=e[r],e[r]=y}return e.length=t,e}var Ic=L_(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(In,function(r,i,p,m){t.push(p?m.replace(J,"$1"):i||r)}),t});function $t(e){if(typeof e=="string"||yt(e))return e;var t=e+"";return t=="0"&&1/e==-Ne?"-0":t}function Cr(e){if(e!=null){try{return ha.call(e)}catch{}try{return e+""}catch{}}return""}function F_(e,t){return wt(jt,function(r){var i="_."+r[0];t&r[1]&&!_a(e,i)&&e.push(i)}),e.sort()}function Ac(e){if(e instanceof ue)return e.clone();var t=new Tt(e.__wrapped__,e.__chain__);return t.__actions__=rt(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function B_(e,t,r){(r?Ze(e,t,r):t===s)?t=1:t=Ue(oe(t),0);var i=e==null?0:e.length;if(!i||t<1)return[];for(var p=0,m=0,y=k(Aa(i/t));p<i;)y[m++]=kt(e,p,p+=t);return y}function U_(e){for(var t=-1,r=e==null?0:e.length,i=0,p=[];++t<r;){var m=e[t];m&&(p[i++]=m)}return p}function K_(){var e=arguments.length;if(!e)return[];for(var t=k(e-1),r=arguments[0],i=e;i--;)t[i-1]=arguments[i];return cr(se(r)?rt(r):[r],We(t,1))}var $_=ce(function(e,t){return Oe(e)?Ns(e,We(t,1,Oe,!0)):[]}),j_=ce(function(e,t){var r=It(t);return Oe(r)&&(r=s),Oe(e)?Ns(e,We(t,1,Oe,!0),Y(r,2)):[]}),H_=ce(function(e,t){var r=It(t);return Oe(r)&&(r=s),Oe(e)?Ns(e,We(t,1,Oe,!0),s,r):[]});function W_(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===s?1:oe(t),kt(e,t<0?0:t,i)):[]}function G_(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===s?1:oe(t),t=i-t,kt(e,0,t<0?0:t)):[]}function X_(e,t){return e&&e.length?Oa(e,Y(t,3),!0,!0):[]}function V_(e,t){return e&&e.length?Oa(e,Y(t,3),!0):[]}function Y_(e,t,r,i){var p=e==null?0:e.length;return p?(r&&typeof r!="number"&&Ze(e,t,r)&&(r=0,i=p),Ky(e,t,r,i)):[]}function qc(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var p=r==null?0:oe(r);return p<0&&(p=Ue(i+p,0)),fa(e,Y(t,3),p)}function Cc(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var p=i-1;return r!==s&&(p=oe(r),p=r<0?Ue(i+p,0):Xe(p,i-1)),fa(e,Y(t,3),p,!0)}function zc(e){var t=e==null?0:e.length;return t?We(e,1):[]}function Q_(e){var t=e==null?0:e.length;return t?We(e,Ne):[]}function Z_(e,t){var r=e==null?0:e.length;return r?(t=t===s?1:oe(t),We(e,t)):[]}function J_(e){for(var t=-1,r=e==null?0:e.length,i={};++t<r;){var p=e[t];i[p[0]]=p[1]}return i}function Sc(e){return e&&e.length?e[0]:s}function ef(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var p=r==null?0:oe(r);return p<0&&(p=Ue(i+p,0)),jr(e,t,p)}function tf(e){var t=e==null?0:e.length;return t?kt(e,0,-1):[]}var rf=ce(function(e){var t=Ce(e,di);return t.length&&t[0]===e[0]?ti(t):[]}),sf=ce(function(e){var t=It(e),r=Ce(e,di);return t===It(r)?t=s:r.pop(),r.length&&r[0]===e[0]?ti(r,Y(t,2)):[]}),af=ce(function(e){var t=It(e),r=Ce(e,di);return t=typeof t=="function"?t:s,t&&r.pop(),r.length&&r[0]===e[0]?ti(r,s,t):[]});function nf(e,t){return e==null?"":ty.call(e,t)}function It(e){var t=e==null?0:e.length;return t?e[t-1]:s}function of(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var p=i;return r!==s&&(p=oe(r),p=p<0?Ue(i+p,0):Xe(p,i-1)),t===t?Fu(e,t,p):fa(e,dl,p,!0)}function lf(e,t){return e&&e.length?Kl(e,oe(t)):s}var cf=ce(Ec);function Ec(e,t){return e&&e.length&&t&&t.length?ni(e,t):e}function pf(e,t,r){return e&&e.length&&t&&t.length?ni(e,t,Y(r,2)):e}function df(e,t,r){return e&&e.length&&t&&t.length?ni(e,t,s,r):e}var mf=Zt(function(e,t){var r=e==null?0:e.length,i=Qn(e,t);return Hl(e,Ce(t,function(p){return Jt(p,r)?+p:p}).sort(tc)),i});function uf(e,t){var r=[];if(!(e&&e.length))return r;var i=-1,p=[],m=e.length;for(t=Y(t,3);++i<m;){var y=e[i];t(y,i,e)&&(r.push(y),p.push(i))}return Hl(e,p),r}function ki(e){return e==null?e:ny.call(e)}function yf(e,t,r){var i=e==null?0:e.length;return i?(r&&typeof r!="number"&&Ze(e,t,r)?(t=0,r=i):(t=t==null?0:oe(t),r=r===s?i:oe(r)),kt(e,t,r)):[]}function _f(e,t){return Ma(e,t)}function ff(e,t,r){return li(e,t,Y(r,2))}function gf(e,t){var r=e==null?0:e.length;if(r){var i=Ma(e,t);if(i<r&&Mt(e[i],t))return i}return-1}function bf(e,t){return Ma(e,t,!0)}function xf(e,t,r){return li(e,t,Y(r,2),!0)}function hf(e,t){var r=e==null?0:e.length;if(r){var i=Ma(e,t,!0)-1;if(Mt(e[i],t))return i}return-1}function wf(e){return e&&e.length?Gl(e):[]}function vf(e,t){return e&&e.length?Gl(e,Y(t,2)):[]}function Tf(e){var t=e==null?0:e.length;return t?kt(e,1,t):[]}function Df(e,t,r){return e&&e.length?(t=r||t===s?1:oe(t),kt(e,0,t<0?0:t)):[]}function kf(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===s?1:oe(t),t=i-t,kt(e,t<0?0:t,i)):[]}function If(e,t){return e&&e.length?Oa(e,Y(t,3),!1,!0):[]}function Af(e,t){return e&&e.length?Oa(e,Y(t,3)):[]}var qf=ce(function(e){return ur(We(e,1,Oe,!0))}),Cf=ce(function(e){var t=It(e);return Oe(t)&&(t=s),ur(We(e,1,Oe,!0),Y(t,2))}),zf=ce(function(e){var t=It(e);return t=typeof t=="function"?t:s,ur(We(e,1,Oe,!0),s,t)});function Sf(e){return e&&e.length?ur(e):[]}function Ef(e,t){return e&&e.length?ur(e,Y(t,2)):[]}function Nf(e,t){return t=typeof t=="function"?t:s,e&&e.length?ur(e,s,t):[]}function Ii(e){if(!(e&&e.length))return[];var t=0;return e=lr(e,function(r){if(Oe(r))return t=Ue(r.length,t),!0}),$n(t,function(r){return Ce(e,Bn(r))})}function Nc(e,t){if(!(e&&e.length))return[];var r=Ii(e);return t==null?r:Ce(r,function(i){return dt(t,s,i)})}var Lf=ce(function(e,t){return Oe(e)?Ns(e,t):[]}),Pf=ce(function(e){return pi(lr(e,Oe))}),Mf=ce(function(e){var t=It(e);return Oe(t)&&(t=s),pi(lr(e,Oe),Y(t,2))}),Of=ce(function(e){var t=It(e);return t=typeof t=="function"?t:s,pi(lr(e,Oe),s,t)}),Rf=ce(Ii);function Ff(e,t){return Ql(e||[],t||[],Es)}function Bf(e,t){return Ql(e||[],t||[],Ms)}var Uf=ce(function(e){var t=e.length,r=t>1?e[t-1]:s;return r=typeof r=="function"?(e.pop(),r):s,Nc(e,r)});function Lc(e){var t=d(e);return t.__chain__=!0,t}function Kf(e,t){return t(e),e}function Wa(e,t){return t(e)}var $f=Zt(function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,p=function(m){return Qn(m,e)};return t>1||this.__actions__.length||!(i instanceof ue)||!Jt(r)?this.thru(p):(i=i.slice(r,+r+(t?1:0)),i.__actions__.push({func:Wa,args:[p],thisArg:s}),new Tt(i,this.__chain__).thru(function(m){return t&&!m.length&&m.push(s),m}))});function jf(){return Lc(this)}function Hf(){return new Tt(this.value(),this.__chain__)}function Wf(){this.__values__===s&&(this.__values__=Xc(this.value()));var e=this.__index__>=this.__values__.length,t=e?s:this.__values__[this.__index__++];return{done:e,value:t}}function Gf(){return this}function Xf(e){for(var t,r=this;r instanceof Sa;){var i=Ac(r);i.__index__=0,i.__values__=s,t?p.__wrapped__=i:t=i;var p=i;r=r.__wrapped__}return p.__wrapped__=e,t}function Vf(){var e=this.__wrapped__;if(e instanceof ue){var t=e;return this.__actions__.length&&(t=new ue(this)),t=t.reverse(),t.__actions__.push({func:Wa,args:[ki],thisArg:s}),new Tt(t,this.__chain__)}return this.thru(ki)}function Yf(){return Yl(this.__wrapped__,this.__actions__)}var Qf=Ra(function(e,t,r){Te.call(e,r)?++e[r]:Yt(e,r,1)});function Zf(e,t,r){var i=se(e)?cl:Uy;return r&&Ze(e,t,r)&&(t=s),i(e,Y(t,3))}function Jf(e,t){var r=se(e)?lr:Nl;return r(e,Y(t,3))}var eg=oc(qc),tg=oc(Cc);function rg(e,t){return We(Ga(e,t),1)}function sg(e,t){return We(Ga(e,t),Ne)}function ag(e,t,r){return r=r===s?1:oe(r),We(Ga(e,t),r)}function Pc(e,t){var r=se(e)?wt:mr;return r(e,Y(t,3))}function Mc(e,t){var r=se(e)?vu:El;return r(e,Y(t,3))}var ng=Ra(function(e,t,r){Te.call(e,r)?e[r].push(t):Yt(e,r,[t])});function ig(e,t,r,i){e=st(e)?e:rs(e),r=r&&!i?oe(r):0;var p=e.length;return r<0&&(r=Ue(p+r,0)),Za(e)?r<=p&&e.indexOf(t,r)>-1:!!p&&jr(e,t,r)>-1}var og=ce(function(e,t,r){var i=-1,p=typeof t=="function",m=st(e)?k(e.length):[];return mr(e,function(y){m[++i]=p?dt(t,y,r):Ls(y,t,r)}),m}),lg=Ra(function(e,t,r){Yt(e,r,t)});function Ga(e,t){var r=se(e)?Ce:Fl;return r(e,Y(t,3))}function cg(e,t,r,i){return e==null?[]:(se(t)||(t=t==null?[]:[t]),r=i?s:r,se(r)||(r=r==null?[]:[r]),$l(e,t,r))}var pg=Ra(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});function dg(e,t,r){var i=se(e)?Rn:ul,p=arguments.length<3;return i(e,Y(t,4),r,p,mr)}function mg(e,t,r){var i=se(e)?Tu:ul,p=arguments.length<3;return i(e,Y(t,4),r,p,El)}function ug(e,t){var r=se(e)?lr:Nl;return r(e,Ya(Y(t,3)))}function yg(e){var t=se(e)?ql:n_;return t(e)}function _g(e,t,r){(r?Ze(e,t,r):t===s)?t=1:t=oe(t);var i=se(e)?My:i_;return i(e,t)}function fg(e){var t=se(e)?Oy:l_;return t(e)}function gg(e){if(e==null)return 0;if(st(e))return Za(e)?Wr(e):e.length;var t=Ve(e);return t==ct||t==pt?e.size:si(e).length}function bg(e,t,r){var i=se(e)?Fn:c_;return r&&Ze(e,t,r)&&(t=s),i(e,Y(t,3))}var xg=ce(function(e,t){if(e==null)return[];var r=t.length;return r>1&&Ze(e,t[0],t[1])?t=[]:r>2&&Ze(t[0],t[1],t[2])&&(t=[t[0]]),$l(e,We(t,1),[])}),Xa=Zu||function(){return He.Date.now()};function hg(e,t){if(typeof t!="function")throw new vt(u);return e=oe(e),function(){if(--e<1)return t.apply(this,arguments)}}function Oc(e,t,r){return t=r?s:t,t=e&&t==null?e.length:t,Qt(e,K,s,s,s,s,t)}function Rc(e,t){var r;if(typeof t!="function")throw new vt(u);return e=oe(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=s),r}}var Ai=ce(function(e,t,r){var i=X;if(r.length){var p=pr(r,es(Ai));i|=T}return Qt(e,i,t,r,p)}),Fc=ce(function(e,t,r){var i=X|ee;if(r.length){var p=pr(r,es(Fc));i|=T}return Qt(t,i,e,r,p)});function Bc(e,t,r){t=r?s:t;var i=Qt(e,B,s,s,s,s,s,t);return i.placeholder=Bc.placeholder,i}function Uc(e,t,r){t=r?s:t;var i=Qt(e,O,s,s,s,s,s,t);return i.placeholder=Uc.placeholder,i}function Kc(e,t,r){var i,p,m,y,b,v,C=0,z=!1,S=!1,j=!0;if(typeof e!="function")throw new vt(u);t=At(t)||0,Se(r)&&(z=!!r.leading,S="maxWait"in r,m=S?Ue(At(r.maxWait)||0,t):m,j="trailing"in r?!!r.trailing:j);function G(Re){var Ot=i,rr=p;return i=p=s,C=Re,y=e.apply(rr,Ot),y}function Q(Re){return C=Re,b=Fs(de,t),z?G(Re):y}function le(Re){var Ot=Re-v,rr=Re-C,op=t-Ot;return S?Xe(op,m-rr):op}function Z(Re){var Ot=Re-v,rr=Re-C;return v===s||Ot>=t||Ot<0||S&&rr>=m}function de(){var Re=Xa();if(Z(Re))return _e(Re);b=Fs(de,le(Re))}function _e(Re){return b=s,j&&i?G(Re):(i=p=s,y)}function _t(){b!==s&&Zl(b),C=0,i=v=p=b=s}function Je(){return b===s?y:_e(Xa())}function ft(){var Re=Xa(),Ot=Z(Re);if(i=arguments,p=this,v=Re,Ot){if(b===s)return Q(v);if(S)return Zl(b),b=Fs(de,t),G(v)}return b===s&&(b=Fs(de,t)),y}return ft.cancel=_t,ft.flush=Je,ft}var wg=ce(function(e,t){return Sl(e,1,t)}),vg=ce(function(e,t,r){return Sl(e,At(t)||0,r)});function Tg(e){return Qt(e,ae)}function Va(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new vt(u);var r=function(){var i=arguments,p=t?t.apply(this,i):i[0],m=r.cache;if(m.has(p))return m.get(p);var y=e.apply(this,i);return r.cache=m.set(p,y)||m,y};return r.cache=new(Va.Cache||Vt),r}Va.Cache=Vt;function Ya(e){if(typeof e!="function")throw new vt(u);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Dg(e){return Rc(2,e)}var kg=p_(function(e,t){t=t.length==1&&se(t[0])?Ce(t[0],mt(Y())):Ce(We(t,1),mt(Y()));var r=t.length;return ce(function(i){for(var p=-1,m=Xe(i.length,r);++p<m;)i[p]=t[p].call(this,i[p]);return dt(e,this,i)})}),qi=ce(function(e,t){var r=pr(t,es(qi));return Qt(e,T,s,t,r)}),$c=ce(function(e,t){var r=pr(t,es($c));return Qt(e,M,s,t,r)}),Ig=Zt(function(e,t){return Qt(e,ne,s,s,s,t)});function Ag(e,t){if(typeof e!="function")throw new vt(u);return t=t===s?t:oe(t),ce(e,t)}function qg(e,t){if(typeof e!="function")throw new vt(u);return t=t==null?0:Ue(oe(t),0),ce(function(r){var i=r[t],p=_r(r,0,t);return i&&cr(p,i),dt(e,this,p)})}function Cg(e,t,r){var i=!0,p=!0;if(typeof e!="function")throw new vt(u);return Se(r)&&(i="leading"in r?!!r.leading:i,p="trailing"in r?!!r.trailing:p),Kc(e,t,{leading:i,maxWait:t,trailing:p})}function zg(e){return Oc(e,1)}function Sg(e,t){return qi(mi(t),e)}function Eg(){if(!arguments.length)return[];var e=arguments[0];return se(e)?e:[e]}function Ng(e){return Dt(e,R)}function Lg(e,t){return t=typeof t=="function"?t:s,Dt(e,R,t)}function Pg(e){return Dt(e,D|R)}function Mg(e,t){return t=typeof t=="function"?t:s,Dt(e,D|R,t)}function Og(e,t){return t==null||zl(e,t,$e(t))}function Mt(e,t){return e===t||e!==e&&t!==t}var Rg=Ka(ei),Fg=Ka(function(e,t){return e>=t}),zr=Ml(function(){return arguments}())?Ml:function(e){return Pe(e)&&Te.call(e,"callee")&&!vl.call(e,"callee")},se=k.isArray,Bg=sl?mt(sl):Gy;function st(e){return e!=null&&Qa(e.length)&&!er(e)}function Oe(e){return Pe(e)&&st(e)}function Ug(e){return e===!0||e===!1||Pe(e)&&Qe(e)==Ft}var fr=ey||Fi,Kg=al?mt(al):Xy;function $g(e){return Pe(e)&&e.nodeType===1&&!Bs(e)}function jg(e){if(e==null)return!0;if(st(e)&&(se(e)||typeof e=="string"||typeof e.splice=="function"||fr(e)||ts(e)||zr(e)))return!e.length;var t=Ve(e);if(t==ct||t==pt)return!e.size;if(Rs(e))return!si(e).length;for(var r in e)if(Te.call(e,r))return!1;return!0}function Hg(e,t){return Ps(e,t)}function Wg(e,t,r){r=typeof r=="function"?r:s;var i=r?r(e,t):s;return i===s?Ps(e,t,s,r):!!i}function Ci(e){if(!Pe(e))return!1;var t=Qe(e);return t==Mr||t==Pr||typeof e.message=="string"&&typeof e.name=="string"&&!Bs(e)}function Gg(e){return typeof e=="number"&&Dl(e)}function er(e){if(!Se(e))return!1;var t=Qe(e);return t==xr||t==aa||t==ys||t==Rr}function jc(e){return typeof e=="number"&&e==oe(e)}function Qa(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Me}function Se(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Pe(e){return e!=null&&typeof e=="object"}var Hc=nl?mt(nl):Yy;function Xg(e,t){return e===t||ri(e,t,xi(t))}function Vg(e,t,r){return r=typeof r=="function"?r:s,ri(e,t,xi(t),r)}function Yg(e){return Wc(e)&&e!=+e}function Qg(e){if(N_(e))throw new re(c);return Ol(e)}function Zg(e){return e===null}function Jg(e){return e==null}function Wc(e){return typeof e=="number"||Pe(e)&&Qe(e)==Bt}function Bs(e){if(!Pe(e)||Qe(e)!=xt)return!1;var t=Da(e);if(t===null)return!0;var r=Te.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&ha.call(r)==Xu}var zi=il?mt(il):Qy;function eb(e){return jc(e)&&e>=-Me&&e<=Me}var Gc=ol?mt(ol):Zy;function Za(e){return typeof e=="string"||!se(e)&&Pe(e)&&Qe(e)==Wt}function yt(e){return typeof e=="symbol"||Pe(e)&&Qe(e)==Fr}var ts=ll?mt(ll):Jy;function tb(e){return e===s}function rb(e){return Pe(e)&&Ve(e)==ir}function sb(e){return Pe(e)&&Qe(e)==na}var ab=Ka(ai),nb=Ka(function(e,t){return e<=t});function Xc(e){if(!e)return[];if(st(e))return Za(e)?Lt(e):rt(e);if(As&&e[As])return Mu(e[As]());var t=Ve(e),r=t==ct?Hn:t==pt?ga:rs;return r(e)}function tr(e){if(!e)return e===0?e:0;if(e=At(e),e===Ne||e===-Ne){var t=e<0?-1:1;return t*bt}return e===e?e:0}function oe(e){var t=tr(e),r=t%1;return t===t?r?t-r:t:0}function Vc(e){return e?Ir(oe(e),0,te):0}function At(e){if(typeof e=="number")return e;if(yt(e))return St;if(Se(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Se(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=yl(e);var r=pe.test(e);return r||ze.test(e)?xu(e.slice(2),r?2:8):me.test(e)?St:+e}function Yc(e){return Kt(e,at(e))}function ib(e){return e?Ir(oe(e),-Me,Me):e===0?e:0}function we(e){return e==null?"":ut(e)}var ob=Zr(function(e,t){if(Rs(t)||st(t)){Kt(t,$e(t),e);return}for(var r in t)Te.call(t,r)&&Es(e,r,t[r])}),Qc=Zr(function(e,t){Kt(t,at(t),e)}),Ja=Zr(function(e,t,r,i){Kt(t,at(t),e,i)}),lb=Zr(function(e,t,r,i){Kt(t,$e(t),e,i)}),cb=Zt(Qn);function pb(e,t){var r=Qr(e);return t==null?r:Cl(r,t)}var db=ce(function(e,t){e=ke(e);var r=-1,i=t.length,p=i>2?t[2]:s;for(p&&Ze(t[0],t[1],p)&&(i=1);++r<i;)for(var m=t[r],y=at(m),b=-1,v=y.length;++b<v;){var C=y[b],z=e[C];(z===s||Mt(z,Xr[C])&&!Te.call(e,C))&&(e[C]=m[C])}return e}),mb=ce(function(e){return e.push(s,yc),dt(Zc,s,e)});function ub(e,t){return pl(e,Y(t,3),Ut)}function yb(e,t){return pl(e,Y(t,3),Jn)}function _b(e,t){return e==null?e:Zn(e,Y(t,3),at)}function fb(e,t){return e==null?e:Ll(e,Y(t,3),at)}function gb(e,t){return e&&Ut(e,Y(t,3))}function bb(e,t){return e&&Jn(e,Y(t,3))}function xb(e){return e==null?[]:La(e,$e(e))}function hb(e){return e==null?[]:La(e,at(e))}function Si(e,t,r){var i=e==null?s:Ar(e,t);return i===s?r:i}function wb(e,t){return e!=null&&gc(e,t,$y)}function Ei(e,t){return e!=null&&gc(e,t,jy)}var vb=cc(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=wa.call(t)),e[t]=r},Li(nt)),Tb=cc(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=wa.call(t)),Te.call(e,t)?e[t].push(r):e[t]=[r]},Y),Db=ce(Ls);function $e(e){return st(e)?Al(e):si(e)}function at(e){return st(e)?Al(e,!0):e_(e)}function kb(e,t){var r={};return t=Y(t,3),Ut(e,function(i,p,m){Yt(r,t(i,p,m),i)}),r}function Ib(e,t){var r={};return t=Y(t,3),Ut(e,function(i,p,m){Yt(r,p,t(i,p,m))}),r}var Ab=Zr(function(e,t,r){Pa(e,t,r)}),Zc=Zr(function(e,t,r,i){Pa(e,t,r,i)}),qb=Zt(function(e,t){var r={};if(e==null)return r;var i=!1;t=Ce(t,function(m){return m=yr(m,e),i||(i=m.length>1),m}),Kt(e,gi(e),r),i&&(r=Dt(r,D|P|R,w_));for(var p=t.length;p--;)ci(r,t[p]);return r});function Cb(e,t){return Jc(e,Ya(Y(t)))}var zb=Zt(function(e,t){return e==null?{}:r_(e,t)});function Jc(e,t){if(e==null)return{};var r=Ce(gi(e),function(i){return[i]});return t=Y(t),jl(e,r,function(i,p){return t(i,p[0])})}function Sb(e,t,r){t=yr(t,e);var i=-1,p=t.length;for(p||(p=1,e=s);++i<p;){var m=e==null?s:e[$t(t[i])];m===s&&(i=p,m=r),e=er(m)?m.call(e):m}return e}function Eb(e,t,r){return e==null?e:Ms(e,t,r)}function Nb(e,t,r,i){return i=typeof i=="function"?i:s,e==null?e:Ms(e,t,r,i)}var ep=mc($e),tp=mc(at);function Lb(e,t,r){var i=se(e),p=i||fr(e)||ts(e);if(t=Y(t,4),r==null){var m=e&&e.constructor;p?r=i?new m:[]:Se(e)?r=er(m)?Qr(Da(e)):{}:r={}}return(p?wt:Ut)(e,function(y,b,v){return t(r,y,b,v)}),r}function Pb(e,t){return e==null?!0:ci(e,t)}function Mb(e,t,r){return e==null?e:Vl(e,t,mi(r))}function Ob(e,t,r,i){return i=typeof i=="function"?i:s,e==null?e:Vl(e,t,mi(r),i)}function rs(e){return e==null?[]:jn(e,$e(e))}function Rb(e){return e==null?[]:jn(e,at(e))}function Fb(e,t,r){return r===s&&(r=t,t=s),r!==s&&(r=At(r),r=r===r?r:0),t!==s&&(t=At(t),t=t===t?t:0),Ir(At(e),t,r)}function Bb(e,t,r){return t=tr(t),r===s?(r=t,t=0):r=tr(r),e=At(e),Hy(e,t,r)}function Ub(e,t,r){if(r&&typeof r!="boolean"&&Ze(e,t,r)&&(t=r=s),r===s&&(typeof t=="boolean"?(r=t,t=s):typeof e=="boolean"&&(r=e,e=s)),e===s&&t===s?(e=0,t=1):(e=tr(e),t===s?(t=e,e=0):t=tr(t)),e>t){var i=e;e=t,t=i}if(r||e%1||t%1){var p=kl();return Xe(e+p*(t-e+bu("1e-"+((p+"").length-1))),t)}return ii(e,t)}var Kb=Jr(function(e,t,r){return t=t.toLowerCase(),e+(r?rp(t):t)});function rp(e){return Ni(we(e).toLowerCase())}function sp(e){return e=we(e),e&&e.replace(et,Su).replace(lu,"")}function $b(e,t,r){e=we(e),t=ut(t);var i=e.length;r=r===s?i:Ir(oe(r),0,i);var p=r;return r-=t.length,r>=0&&e.slice(r,p)==t}function jb(e){return e=we(e),e&&oa.test(e)?e.replace(Kr,Eu):e}function Hb(e){return e=we(e),e&&ma.test(e)?e.replace(Ds,"\\$&"):e}var Wb=Jr(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),Gb=Jr(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),Xb=ic("toLowerCase");function Vb(e,t,r){e=we(e),t=oe(t);var i=t?Wr(e):0;if(!t||i>=t)return e;var p=(t-i)/2;return Ua(qa(p),r)+e+Ua(Aa(p),r)}function Yb(e,t,r){e=we(e),t=oe(t);var i=t?Wr(e):0;return t&&i<t?e+Ua(t-i,r):e}function Qb(e,t,r){e=we(e),t=oe(t);var i=t?Wr(e):0;return t&&i<t?Ua(t-i,r)+e:e}function Zb(e,t,r){return r||t==null?t=0:t&&(t=+t),ay(we(e).replace(ks,""),t||0)}function Jb(e,t,r){return(r?Ze(e,t,r):t===s)?t=1:t=oe(t),oi(we(e),t)}function ex(){var e=arguments,t=we(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var tx=Jr(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});function rx(e,t,r){return r&&typeof r!="number"&&Ze(e,t,r)&&(t=r=s),r=r===s?te:r>>>0,r?(e=we(e),e&&(typeof t=="string"||t!=null&&!zi(t))&&(t=ut(t),!t&&Hr(e))?_r(Lt(e),0,r):e.split(t,r)):[]}var sx=Jr(function(e,t,r){return e+(r?" ":"")+Ni(t)});function ax(e,t,r){return e=we(e),r=r==null?0:Ir(oe(r),0,e.length),t=ut(t),e.slice(r,r+t.length)==t}function nx(e,t,r){var i=d.templateSettings;r&&Ze(e,t,r)&&(t=s),e=we(e),t=Ja({},t,i,uc);var p=Ja({},t.imports,i.imports,uc),m=$e(p),y=jn(p,m),b,v,C=0,z=t.interpolate||Nt,S="__p += '",j=Wn((t.escape||Nt).source+"|"+z.source+"|"+(z===ca?fe:Nt).source+"|"+(t.evaluate||Nt).source+"|$","g"),G="//# sourceURL="+(Te.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++uu+"]")+`
117
+ `;e.replace(j,function(Z,de,_e,_t,Je,ft){return _e||(_e=_t),S+=e.slice(C,ft).replace(ua,Nu),de&&(b=!0,S+=`' +
118
+ __e(`+de+`) +
119
+ '`),Je&&(v=!0,S+=`';
120
120
  `+Je+`;
121
- __p += '`),fe&&(E+=`' +
122
- ((__t = (`+fe+`)) == null ? '' : __t) +
123
- '`),z=ft+Z.length,Z}),E+=`';
124
- `;var Q=Te.call(t,"variable")&&t.variable;if(!Q)E=`with (obj) {
125
- `+E+`
121
+ __p += '`),_e&&(S+=`' +
122
+ ((__t = (`+_e+`)) == null ? '' : __t) +
123
+ '`),C=ft+Z.length,Z}),S+=`';
124
+ `;var Q=Te.call(t,"variable")&&t.variable;if(!Q)S=`with (obj) {
125
+ `+S+`
126
126
  }
127
- `;else if(K.test(Q))throw new re(f);E=(v?E.replace(Dn,""):E).replace(vs,"$1").replace(ia,"$1;"),E="function("+(Q||"obj")+`) {
127
+ `;else if($.test(Q))throw new re(f);S=(v?S.replace(Dn,""):S).replace(vs,"$1").replace(ia,"$1;"),S="function("+(Q||"obj")+`) {
128
128
  `+(Q?"":`obj || (obj = {});
129
129
  `)+"var __t, __p = ''"+(b?", __e = _.escape":"")+(v?`, __j = Array.prototype.join;
130
130
  function print() { __p += __j.call(arguments, '') }
131
131
  `:`;
132
- `)+E+`return __p
133
- }`;var ie=np(function(){return xe(m,W+"return "+E).apply(s,y)});if(ie.source=E,Ci(ie))throw ie;return ie}function ix(e){return we(e).toLowerCase()}function ox(e){return we(e).toUpperCase()}function lx(e,t,r){if(e=we(e),e&&(r||t===s))return yl(e);if(!e||!(t=ut(t)))return e;var i=Lt(e),p=Lt(t),m=_l(i,p),y=fl(i,p)+1;return _r(i,m,y).join("")}function cx(e,t,r){if(e=we(e),e&&(r||t===s))return e.slice(0,bl(e)+1);if(!e||!(t=ut(t)))return e;var i=Lt(e),p=fl(i,Lt(t))+1;return _r(i,0,p).join("")}function px(e,t,r){if(e=we(e),e&&(r||t===s))return e.replace(ks,"");if(!e||!(t=ut(t)))return e;var i=Lt(e),p=_l(i,Lt(t));return _r(i,p).join("")}function dx(e,t){var r=ce,i=gt;if(ze(t)){var p="separator"in t?t.separator:p;r="length"in t?ne(t.length):r,i="omission"in t?ut(t.omission):i}e=we(e);var m=e.length;if(Hr(e)){var y=Lt(e);m=y.length}if(r>=m)return e;var b=r-Wr(i);if(b<1)return i;var v=y?_r(y,0,b).join(""):e.slice(0,b);if(p===s)return v+i;if(y&&(b+=v.length-b),zi(p)){if(e.slice(b).search(p)){var z,S=v;for(p.global||(p=Wn(p.source,we(he.exec(p))+"g")),p.lastIndex=0;z=p.exec(S);)var E=z.index;v=v.slice(0,E===s?b:E)}}else if(e.indexOf(ut(p),b)!=b){var $=v.lastIndexOf(p);$>-1&&(v=v.slice(0,$))}return v+i}function mx(e){return e=we(e),e&&Ts.test(e)?e.replace(Gt,Bu):e}var ux=Jr(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),Ni=ic("toUpperCase");function ap(e,t,r){return e=we(e),t=r?s:t,t===s?Pu(e)?$u(e):Iu(e):e.match(t)||[]}var np=le(function(e,t){try{return dt(e,s,t)}catch(r){return Ci(r)?r:new re(r)}}),yx=Zt(function(e,t){return wt(t,function(r){r=$t(r),Yt(e,r,Ai(e[r],e))}),e});function _x(e){var t=e==null?0:e.length,r=Y();return e=t?qe(e,function(i){if(typeof i[1]!="function")throw new vt(u);return[r(i[0]),i[1]]}):[],le(function(i){for(var p=-1;++p<t;){var m=e[p];if(dt(m[0],this,i))return dt(m[1],this,i)}})}function fx(e){return By(Dt(e,T))}function Li(e){return function(){return e}}function gx(e,t){return e==null||e!==e?t:e}var bx=lc(),xx=lc(!0);function nt(e){return e}function Pi(e){return Rl(typeof e=="function"?e:Dt(e,T))}function hx(e){return Bl(Dt(e,T))}function wx(e,t){return Ul(e,Dt(t,T))}var vx=le(function(e,t){return function(r){return Ls(r,e,t)}}),Tx=le(function(e,t){return function(r){return Ls(e,r,t)}});function Mi(e,t,r){var i=$e(t),p=La(t,i);r==null&&!(ze(t)&&(p.length||!i.length))&&(r=t,t=e,e=this,p=La(t,$e(t)));var m=!(ze(r)&&"chain"in r)||!!r.chain,y=er(e);return wt(p,function(b){var v=t[b];e[b]=v,y&&(e.prototype[b]=function(){var z=this.__chain__;if(m||z){var S=e(this.__wrapped__),E=S.__actions__=rt(this.__actions__);return E.push({func:v,args:arguments,thisArg:e}),S.__chain__=z,S}return v.apply(e,cr([this.value()],arguments))})}),e}function Dx(){return He._===this&&(He._=Vu),this}function Oi(){}function kx(e){return e=ne(e),le(function(t){return Kl(t,e)})}var Ix=yi(qe),Ax=yi(cl),qx=yi(Fn);function ip(e){return wi(e)?Bn($t(e)):s_(e)}function Cx(e){return function(t){return e==null?s:Ar(e,t)}}var zx=pc(),Sx=pc(!0);function Ri(){return[]}function Fi(){return!1}function Ex(){return{}}function Nx(){return""}function Lx(){return!0}function Px(e,t){if(e=ne(e),e<1||e>Oe)return[];var r=te,i=Xe(e,te);t=Y(t),e-=te;for(var p=$n(i,t);++r<e;)t(r);return p}function Mx(e){return se(e)?qe(e,$t):yt(e)?[e]:rt(Ic(we(e)))}function Ox(e){var t=++Gu;return we(e)+t}var Rx=Ba(function(e,t){return e+t},0),Fx=_i("ceil"),Bx=Ba(function(e,t){return e/t},1),Ux=_i("floor");function Kx(e){return e&&e.length?Na(e,nt,ei):s}function $x(e,t){return e&&e.length?Na(e,Y(t,2),ei):s}function jx(e){return ml(e,nt)}function Hx(e,t){return ml(e,Y(t,2))}function Wx(e){return e&&e.length?Na(e,nt,ai):s}function Gx(e,t){return e&&e.length?Na(e,Y(t,2),ai):s}var Xx=Ba(function(e,t){return e*t},1),Vx=_i("round"),Yx=Ba(function(e,t){return e-t},0);function Qx(e){return e&&e.length?Kn(e,nt):0}function Zx(e,t){return e&&e.length?Kn(e,Y(t,2)):0}return d.after=hg,d.ary=Oc,d.assign=ob,d.assignIn=Qc,d.assignInWith=Ja,d.assignWith=lb,d.at=cb,d.before=Rc,d.bind=Ai,d.bindAll=yx,d.bindKey=Fc,d.castArray=Eg,d.chain=Lc,d.chunk=B_,d.compact=U_,d.concat=K_,d.cond=_x,d.conforms=fx,d.constant=Li,d.countBy=Qf,d.create=pb,d.curry=Bc,d.curryRight=Uc,d.debounce=Kc,d.defaults=db,d.defaultsDeep=mb,d.defer=wg,d.delay=vg,d.difference=$_,d.differenceBy=j_,d.differenceWith=H_,d.drop=W_,d.dropRight=G_,d.dropRightWhile=X_,d.dropWhile=V_,d.fill=Y_,d.filter=Jf,d.flatMap=rg,d.flatMapDeep=sg,d.flatMapDepth=ag,d.flatten=zc,d.flattenDeep=Q_,d.flattenDepth=Z_,d.flip=Tg,d.flow=bx,d.flowRight=xx,d.fromPairs=J_,d.functions=xb,d.functionsIn=hb,d.groupBy=ng,d.initial=tf,d.intersection=rf,d.intersectionBy=sf,d.intersectionWith=af,d.invert=vb,d.invertBy=Tb,d.invokeMap=og,d.iteratee=Pi,d.keyBy=lg,d.keys=$e,d.keysIn=at,d.map=Ga,d.mapKeys=kb,d.mapValues=Ib,d.matches=hx,d.matchesProperty=wx,d.memoize=Va,d.merge=Ab,d.mergeWith=Zc,d.method=vx,d.methodOf=Tx,d.mixin=Mi,d.negate=Ya,d.nthArg=kx,d.omit=qb,d.omitBy=Cb,d.once=Dg,d.orderBy=cg,d.over=Ix,d.overArgs=kg,d.overEvery=Ax,d.overSome=qx,d.partial=qi,d.partialRight=$c,d.partition=pg,d.pick=zb,d.pickBy=Jc,d.property=ip,d.propertyOf=Cx,d.pull=cf,d.pullAll=Ec,d.pullAllBy=pf,d.pullAllWith=df,d.pullAt=mf,d.range=zx,d.rangeRight=Sx,d.rearg=Ig,d.reject=ug,d.remove=uf,d.rest=Ag,d.reverse=ki,d.sampleSize=_g,d.set=Eb,d.setWith=Nb,d.shuffle=fg,d.slice=yf,d.sortBy=xg,d.sortedUniq=wf,d.sortedUniqBy=vf,d.split=rx,d.spread=qg,d.tail=Tf,d.take=Df,d.takeRight=kf,d.takeRightWhile=If,d.takeWhile=Af,d.tap=Kf,d.throttle=Cg,d.thru=Wa,d.toArray=Xc,d.toPairs=ep,d.toPairsIn=tp,d.toPath=Mx,d.toPlainObject=Yc,d.transform=Lb,d.unary=zg,d.union=qf,d.unionBy=Cf,d.unionWith=zf,d.uniq=Sf,d.uniqBy=Ef,d.uniqWith=Nf,d.unset=Pb,d.unzip=Ii,d.unzipWith=Nc,d.update=Mb,d.updateWith=Ob,d.values=rs,d.valuesIn=Rb,d.without=Lf,d.words=ap,d.wrap=Sg,d.xor=Pf,d.xorBy=Mf,d.xorWith=Of,d.zip=Rf,d.zipObject=Ff,d.zipObjectDeep=Bf,d.zipWith=Uf,d.entries=ep,d.entriesIn=tp,d.extend=Qc,d.extendWith=Ja,Mi(d,d),d.add=Rx,d.attempt=np,d.camelCase=Kb,d.capitalize=rp,d.ceil=Fx,d.clamp=Fb,d.clone=Ng,d.cloneDeep=Pg,d.cloneDeepWith=Mg,d.cloneWith=Lg,d.conformsTo=Og,d.deburr=sp,d.defaultTo=gx,d.divide=Bx,d.endsWith=$b,d.eq=Mt,d.escape=jb,d.escapeRegExp=Hb,d.every=Zf,d.find=eg,d.findIndex=qc,d.findKey=ub,d.findLast=tg,d.findLastIndex=Cc,d.findLastKey=yb,d.floor=Ux,d.forEach=Pc,d.forEachRight=Mc,d.forIn=_b,d.forInRight=fb,d.forOwn=gb,d.forOwnRight=bb,d.get=Si,d.gt=Rg,d.gte=Fg,d.has=wb,d.hasIn=Ei,d.head=Sc,d.identity=nt,d.includes=ig,d.indexOf=ef,d.inRange=Bb,d.invoke=Db,d.isArguments=zr,d.isArray=se,d.isArrayBuffer=Bg,d.isArrayLike=st,d.isArrayLikeObject=Pe,d.isBoolean=Ug,d.isBuffer=fr,d.isDate=Kg,d.isElement=$g,d.isEmpty=jg,d.isEqual=Hg,d.isEqualWith=Wg,d.isError=Ci,d.isFinite=Gg,d.isFunction=er,d.isInteger=jc,d.isLength=Qa,d.isMap=Hc,d.isMatch=Xg,d.isMatchWith=Vg,d.isNaN=Yg,d.isNative=Qg,d.isNil=Jg,d.isNull=Zg,d.isNumber=Wc,d.isObject=ze,d.isObjectLike=Le,d.isPlainObject=Bs,d.isRegExp=zi,d.isSafeInteger=eb,d.isSet=Gc,d.isString=Za,d.isSymbol=yt,d.isTypedArray=ts,d.isUndefined=tb,d.isWeakMap=rb,d.isWeakSet=sb,d.join=nf,d.kebabCase=Wb,d.last=It,d.lastIndexOf=of,d.lowerCase=Gb,d.lowerFirst=Xb,d.lt=ab,d.lte=nb,d.max=Kx,d.maxBy=$x,d.mean=jx,d.meanBy=Hx,d.min=Wx,d.minBy=Gx,d.stubArray=Ri,d.stubFalse=Fi,d.stubObject=Ex,d.stubString=Nx,d.stubTrue=Lx,d.multiply=Xx,d.nth=lf,d.noConflict=Dx,d.noop=Oi,d.now=Xa,d.pad=Vb,d.padEnd=Yb,d.padStart=Qb,d.parseInt=Zb,d.random=Ub,d.reduce=dg,d.reduceRight=mg,d.repeat=Jb,d.replace=ex,d.result=Sb,d.round=Vx,d.runInContext=w,d.sample=yg,d.size=gg,d.snakeCase=tx,d.some=bg,d.sortedIndex=_f,d.sortedIndexBy=ff,d.sortedIndexOf=gf,d.sortedLastIndex=bf,d.sortedLastIndexBy=xf,d.sortedLastIndexOf=hf,d.startCase=sx,d.startsWith=ax,d.subtract=Yx,d.sum=Qx,d.sumBy=Zx,d.template=nx,d.times=Px,d.toFinite=tr,d.toInteger=ne,d.toLength=Vc,d.toLower=ix,d.toNumber=At,d.toSafeInteger=ib,d.toString=we,d.toUpper=ox,d.trim=lx,d.trimEnd=cx,d.trimStart=px,d.truncate=dx,d.unescape=mx,d.uniqueId=Ox,d.upperCase=ux,d.upperFirst=Ni,d.each=Pc,d.eachRight=Mc,d.first=Sc,Mi(d,function(){var e={};return Ut(d,function(t,r){Te.call(d.prototype,r)||(e[r]=t)}),e}(),{chain:!1}),d.VERSION=o,wt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){d[e].placeholder=d}),wt(["drop","take"],function(e,t){ye.prototype[e]=function(r){r=r===s?1:Ue(ne(r),0);var i=this.__filtered__&&!t?new ye(this):this.clone();return i.__filtered__?i.__takeCount__=Xe(r,i.__takeCount__):i.__views__.push({size:Xe(r,te),type:e+(i.__dir__<0?"Right":"")}),i},ye.prototype[e+"Right"]=function(r){return this.reverse()[e](r).reverse()}}),wt(["filter","map","takeWhile"],function(e,t){var r=t+1,i=r==Fe||r==be;ye.prototype[e]=function(p){var m=this.clone();return m.__iteratees__.push({iteratee:Y(p,3),type:r}),m.__filtered__=m.__filtered__||i,m}}),wt(["head","last"],function(e,t){var r="take"+(t?"Right":"");ye.prototype[e]=function(){return this[r](1).value()[0]}}),wt(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");ye.prototype[e]=function(){return this.__filtered__?new ye(this):this[r](1)}}),ye.prototype.compact=function(){return this.filter(nt)},ye.prototype.find=function(e){return this.filter(e).head()},ye.prototype.findLast=function(e){return this.reverse().find(e)},ye.prototype.invokeMap=le(function(e,t){return typeof e=="function"?new ye(this):this.map(function(r){return Ls(r,e,t)})}),ye.prototype.reject=function(e){return this.filter(Ya(Y(e)))},ye.prototype.slice=function(e,t){e=ne(e);var r=this;return r.__filtered__&&(e>0||t<0)?new ye(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==s&&(t=ne(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},ye.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ye.prototype.toArray=function(){return this.take(te)},Ut(ye.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),p=d[i?"take"+(t=="last"?"Right":""):t],m=i||/^find/.test(t);p&&(d.prototype[t]=function(){var y=this.__wrapped__,b=i?[1]:arguments,v=y instanceof ye,z=b[0],S=v||se(y),E=function(me){var fe=p.apply(d,cr([me],b));return i&&$?fe[0]:fe};S&&r&&typeof z=="function"&&z.length!=1&&(v=S=!1);var $=this.__chain__,W=!!this.__actions__.length,Q=m&&!$,ie=v&&!W;if(!m&&S){y=ie?y:new ye(this);var Z=e.apply(y,b);return Z.__actions__.push({func:Wa,args:[E],thisArg:s}),new Tt(Z,$)}return Q&&ie?e.apply(this,b):(Z=this.thru(E),Q?i?Z.value()[0]:Z.value():Z)})}),wt(["pop","push","shift","sort","splice","unshift"],function(e){var t=ba[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);d.prototype[e]=function(){var p=arguments;if(i&&!this.__chain__){var m=this.value();return t.apply(se(m)?m:[],p)}return this[r](function(y){return t.apply(se(y)?y:[],p)})}}),Ut(ye.prototype,function(e,t){var r=d[t];if(r){var i=r.name+"";Te.call(Yr,i)||(Yr[i]=[]),Yr[i].push({name:t,func:r})}}),Yr[Fa(s,J).name]=[{name:"wrapper",func:s}],ye.prototype.clone=dy,ye.prototype.reverse=my,ye.prototype.value=uy,d.prototype.at=$f,d.prototype.chain=jf,d.prototype.commit=Hf,d.prototype.next=Wf,d.prototype.plant=Xf,d.prototype.reverse=Vf,d.prototype.toJSON=d.prototype.valueOf=d.prototype.value=Yf,d.prototype.first=d.prototype.head,As&&(d.prototype[As]=Gf),d},Gr=ju();vr?((vr.exports=Gr)._=Gr,Pn._=Gr):He._=Gr}).call(ss)}(Ws,Ws.exports);var io=Ws.exports;const Se="tccScript",Nr={builtinFunctions:/strategy\.closedtrades\.max_drawdown_percent|strategy\.opentrades\.max_drawdown_percent|strategy\.risk\.max_intraday_filled_orders|strategy\.closedtrades\.max_runup_percent|array\.percentile_linear_interpolation|strategy\.closedtrades\.entry_bar_index|strategy\.opentrades\.max_runup_percent|strategy\.closedtrades\.exit_bar_index|strategy\.closedtrades\.profit_percent|strategy\.closedtrades\.entry_comment|strategy\.opentrades\.entry_bar_index|strategy\.closedtrades\.exit_comment|strategy\.closedtrades\.max_drawdown|strategy\.opentrades\.profit_percent|ta\.percentile_linear_interpolation|strategy\.closedtrades\.entry_price|strategy\.opentrades\.entry_comment|strategy\.closedtrades\.commission|strategy\.closedtrades\.entry_time|strategy\.closedtrades\.exit_price|strategy\.opentrades\.max_drawdown|strategy\.risk\.max_cons_loss_days|strategy\.closedtrades\.exit_time|strategy\.closedtrades\.max_runup|strategy\.opentrades\.entry_price|strategy\.risk\.max_intraday_loss|strategy\.risk\.max_position_size|table\.cell_set_text_font_family|strategy\.closedtrades\.entry_id|strategy\.opentrades\.commission|strategy\.opentrades\.entry_time|array\.binary_search_rightmost|array\.percentile_nearest_rank|strategy\.closedtrades\.exit_id|strategy\.opentrades\.max_runup|array\.binary_search_leftmost|strategy\.closedtrades\.profit|strategy\.opentrades\.entry_id|strategy\.risk\.allow_entry_in|strategy\.convert_to_account|box\.set_bottom_right_point|label\.set_text_font_family|strategy\.closedtrades\.size|strategy\.convert_to_symbol|strategy\.default_entry_qty|strategy\.opentrades\.profit|strategy\.risk\.max_drawdown|ta\.percentile_nearest_rank|table\.cell_set_text_halign|table\.cell_set_text_valign|request\.security_lower_tf|table\.cell_set_text_color|box\.set_text_font_family|strategy\.opentrades\.size|table\.cell_set_text_size|matrix\.is_antisymmetric|box\.set_top_left_point|chart\.point\.from_index|matrix\.is_antidiagonal|table\.cell_set_bgcolor|table\.cell_set_tooltip|table\.set_border_color|table\.set_border_width|timeframe\.from_seconds|chart\.point\.from_time|line\.set_second_point|math\.round_to_mintick|matrix\.elements_count|request\.currency_rate|ta\.pivot_point_levels|table\.cell_set_height|table\.set_frame_color|table\.set_frame_width|box\.set_border_color|box\.set_border_style|box\.set_border_width|line\.set_first_point|matrix\.is_stochastic|matrix\.is_triangular|table\.cell_set_width|timeframe\.in_seconds|array\.binary_search|box\.set_rightbottom|box\.set_text_halign|box\.set_text_valign|color\.from_gradient|label\.set_textalign|label\.set_textcolor|matrix\.eigenvectors|matrix\.is_symmetric|matrix\.swap_columns|strategy\.cancel_all|table\.cell_set_text|array\.new_linefill|array\.sort_indices|box\.set_text_color|linefill\.get_line1|linefill\.get_line2|linefill\.set_color|matrix\.eigenvalues|matrix\.is_diagonal|matrix\.is_identity|strategy\.close_all|table\.set_position|ticker\.pointfigure|array\.lastindexof|array\.percentrank|array\.standardize|box\.set_text_size|box\.set_text_wrap|label\.set_tooltip|matrix\.remove_col|matrix\.remove_row|request\.dividends|request\.financial|table\.merge_cells|table\.set_bgcolor|ticker\.heikinashi|array\.covariance|array\.new_string|chart\.point\.copy|matrix\.is_binary|matrix\.is_square|matrix\.submatrix|matrix\.swap_rows|matrix\.transpose|request\.earnings|request\.economic|request\.security|ticker\.linebreak|timeframe\.change|array\.new_color|array\.new_float|array\.new_label|array\.new_table|box\.set_bgcolor|box\.set_lefttop|chart\.point\.new|chart\.point\.now|input\.text_area|input\.timeframe|label\.set_color|label\.set_point|label\.set_style|line\.set_extend|linefill\.delete|polyline\.delete|str\.format_time|str\.replace_all|strategy\.cancel|ticker\.standard|alertcondition|array\.includes|array\.new_bool|array\.new_line|array\.variance|box\.get_bottom|box\.set_bottom|box\.set_extend|label\.get_text|label\.set_size|label\.set_text|label\.set_xloc|label\.set_yloc|line\.get_price|line\.set_color|line\.set_style|line\.set_width|math\.todegrees|math\.toradians|matrix\.add_col|matrix\.add_row|matrix\.columns|matrix\.is_zero|matrix\.reshape|matrix\.reverse|request\.quandl|request\.splits|str\.startswith|strategy\.close|strategy\.entry|strategy\.order|syminfo\.prefix|syminfo\.ticker|ta\.correlation|ta\.highestbars|ta\.percentrank|ticker\.inherit|array\.indexof|array\.new_box|array\.new_int|array\.reverse|array\.unshift|box\.get_right|box\.set_right|input\.session|line\.set_xloc|matrix\.concat|matrix\.median|max_bars_back|runtime\.error|str\.substring|strategy\.exit|ta\.crossunder|ta\.lowestbars|ta\.supertrend|ticker\.modify|array\.concat|array\.insert|array\.median|array\.remove|box\.get_left|box\.set_left|box\.set_text|input\.source|input\.string|input\.symbol|label\.delete|label\.set_xy|line\.set_xy1|line\.set_xy2|linefill\.new|map\.contains|matrix\.trace|polyline\.new|request\.seed|str\.contains|str\.endswith|str\.tonumber|str\.tostring|ta\.barssince|ta\.crossover|ta\.pivothigh|ta\.valuewhen|table\.delete|ticker\.renko|array\.clear|array\.every|array\.first|array\.range|array\.shift|array\.slice|array\.stdev|box\.get_top|box\.set_top|input\.color|input\.float|input\.price|label\.get_x|label\.get_y|label\.set_x|label\.set_y|line\.delete|line\.get_x1|line\.get_x2|line\.get_y1|line\.get_y2|line\.set_x1|line\.set_x2|line\.set_y1|line\.set_y2|log\.warning|map\.put_all|math\.random|matrix\.copy|matrix\.diff|matrix\.fill|matrix\.kron|matrix\.mode|matrix\.mult|matrix\.pinv|matrix\.rank|matrix\.rows|matrix\.sort|str\.replace|ta\.pivotlow|ta\.variance|table\.clear|ticker\.kagi|array\.copy|array\.fill|array\.from|array\.join|array\.last|array\.mode|array\.push|array\.size|array\.some|array\.sort|box\.delete|dayofmonth|input\.bool|input\.time|label\.copy|map\.remove|map\.values|math\.floor|math\.log10|math\.round|matrix\.avg|matrix\.col|matrix\.det|matrix\.get|matrix\.inv|matrix\.max|matrix\.min|matrix\.new|matrix\.pow|matrix\.row|matrix\.set|matrix\.sum|plotcandle|str\.format|str\.length|ta\.falling|ta\.highest|table\.cell|ticker\.new|time_close|weekofyear|array\.abs|array\.avg|array\.get|array\.max|array\.min|array\.new|array\.pop|array\.set|array\.sum|color\.new|color\.rgb|dayofweek|indicator|input\.int|label\.new|line\.copy|log\.error|map\.clear|math\.acos|math\.asin|math\.atan|math\.ceil|math\.sign|math\.sqrt|plotarrow|plotshape|str\.lower|str\.match|str\.split|str\.upper|ta\.change|ta\.linreg|ta\.lowest|ta\.median|ta\.rising|table\.new|timestamp|barcolor|box\.copy|line\.new|linefill|log\.info|map\.copy|map\.keys|map\.size|math\.abs|math\.avg|math\.cos|math\.exp|math\.log|math\.max|math\.min|math\.pow|math\.sin|math\.sum|math\.tan|plotchar|strategy|ta\.cross|ta\.range|ta\.stdev|ta\.stoch|bgcolor|box\.new|color\.b|color\.g|color\.r|color\.t|library|map\.get|map\.new|map\.put|plotbar|str\.pos|ta\.alma|ta\.macd|ta\.mode|ta\.swma|ta\.vwap|ta\.vwma|fixnan|minute|second|string|ta\.atr|ta\.bbw|ta\.cci|ta\.cmo|ta\.cog|ta\.cum|ta\.dev|ta\.dmi|ta\.ema|ta\.hma|ta\.kcw|ta\.max|ta\.mfi|ta\.min|ta\.mom|ta\.rma|ta\.roc|ta\.rsi|ta\.sar|ta\.sma|ta\.tsi|ta\.wma|ta\.wpr|alert|color|float|hline|input|label|month|ta\.bb|ta\.kc|ta\.tr|table|bool|fill|hour|line|plot|time|year|box|int|na|nz/,keywords:/continue|for\.\.\.in|export|import|method|switch|break|varip|while|else|type|and|for|not|var|as|by|if|in|or|to/,tokenizer:{root:[[/\/\/\s*(?=@)/,"comment","@comments"],[/\/\/.*(?!@).*/,"comment"],[/\'([^\'\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/\"/,{token:"string",bracket:"@open",next:"@stringDouble"}],[/type\s+[a-zA-Z]\w*/,"entity.name.type"],[/'/,{token:"string",bracket:"@open",next:"@stringSingle"}],[/(@builtinFunctions)(?=\s*\(|\s*<.*>)/,{token:"support.function",next:"@template"}],[/@punctuation/,{token:"punctuation.operator",next:"@property"}],[/(varip|var)\b(\s+)((?!(?:chart\.point|linefill|polyline|matrix|series|simple|string|array|color|const|float|label|table|bool|line|box|int|map|continue|for\.\.\.in|export|import|method|switch|break|varip|while|else|type|and|for|not|var|as|by|if|in|or|to)\b)[\w.\d_$]+)(\[\]|)(\s+)((?!(?:continue|for\.\.\.in|export|import|method|switch|break|varip|while|else|type|and|for|not|var|as|by|if|in|or|to)\b)[\w\d_$]+)/,[{token:"keyword"},{token:"source"},{token:"entity.name.type"},{token:"paren"},{token:"source"},{token:"variable.other"}]],[/\b(?:@builtinTypes)(?=(\s*)[\[|<|(]|(?=\s+(?=[^.=][\w\(]*))|\s*$)/,{token:"support.type",next:"@template"}],[/^(\s*)\b(?!(?:chart\.point|linefill|polyline|matrix|series|simple|string|array|color|const|float|label|table|bool|line|box|int|map|continue|for\.\.\.in|export|import|method|switch|break|varip|while|else|type|and|for|not|var|as|by|if|in|or|to)\b)([\w.\d_$]+)(\[\]|)(\s+)((?!(?:continue|for\.\.\.in|export|import|method|switch|break|varip|while|else|type|and|for|not|var|as|by|if|in|or|to)\b)[\w\d_$]+)(\s+)(\=)/,[{token:"source"},{token:"entity.name.type"},{token:"paren"},{token:"source"},{token:"variable.other"},{token:"source"},{token:"keyword.equals"}]],[/(\((?:\s+))?((?!(?:chart\.point|linefill|polyline|continue|for\.\.\.in|matrix|series|simple|string|export|import|method|switch|array|color|const|float|label|table|break|varip|while|bool|line|else|type|box|int|map|and|for|not|var|as|by|if|in|or|to)\b)\b[\w.\d_$]+(?=[\[\]]*(?:\s+)(?:[\w\d_$]+\s*(?:\,|\))+\s*).+(?:\=\>|\→)))/,"entity.name.type"],[/import(?=\s+@importName)/,{token:"keyword",next:"@import"}],[/import(?=\s+[a-zA-Z\d\$_\-\.\u00a1-\uffff\/]+)/,"keyword"],[/[+-]?\d+\.\d*([eE][\-+]?\d+)?(?!\w+)/,"constant.numeric.float"],[/[+-]?\.\d+([eE][\-+]?\d+)?(?!\w+)/,"constant.numeric.float"],[/([+-]?(\d+))(?!\w+)(?!\w+)/,"constant.numeric.integer"],[/(?:true|false)\b/,"constant.other.boolean"],[/#[0-9a-fA-F]{6,8}\b/,"constant.other.color"],[/\+=|\-=|\*=|\/=|%=|[\/%*+\-]|==|!=|<=|>=|=>|<|>|\?|\:=|\:|\,/,"keyword.operator"],[/\b(?:continue|for\.\.\.in|export|import|method|switch|break|varip|while|else|type|and|for|not|var|as|by|if|in|or|to)\b/,"keyword"],[/^[a-zA-Z_][a-zA-Z_0-9]+(?=\s*\()/,"entity.name.function"],[/[0-9]+\b/,"constant.numeric.integer"],[/=/,"keyword.equals"],[/\b(?:strategy\.commission\.cash_per_contract|strategy\.avg_winning_trade_percent|strategy\.avg_winning_trade|strategy\.avg_losing_trade_percent|strategy\.avg_losing_trade|syminfo\.recommendations_sell_strong|syminfo\.recommendations_buy_strong|strategy\.commission\.cash_per_order|strategy\.margin_liquidation_price|strategy\.max_contracts_held_short|strategy\.max_contracts_held_long|syminfo\.shares_outstanding_float|syminfo\.shares_outstanding_total|barstate\.islastconfirmedhistory|earnings\.future_period_end_time|strategy\.max_contracts_held_all|syminfo\.target_price_estimates|strategy\.max_drawdown_percent|syminfo\.recommendations_total|alert\.freq_once_per_bar_close|label\.style_label_lower_right|label\.style_label_upper_right|chart\.right_visible_bar_time|strategy\.grossprofit_percent|strategy\.position_entry_name|syminfo\.recommendations_date|syminfo\.recommendations_hold|syminfo\.recommendations_sell|syminfo\.target_price_average|label\.style_label_lower_left|label\.style_label_upper_left|chart\.left_visible_bar_time|strategy\.openprofit_percent|strategy\.position_avg_price|syminfo\.recommendations_buy|syminfo\.target_price_median|plot\.style_stepline_diamond|strategy\.commission\.percent|session\.isfirstbar_regular|strategy\.grossloss_percent|strategy\.max_runup_percent|strategy\.netprofit_percent|strategy\.percent_of_equity|session\.islastbar_regular|strategy\.account_currency|syminfo\.target_price_date|syminfo\.target_price_high|dividends\.future_pay_date|strategy\.initial_capital|syminfo\.target_price_low|dividends\.future_ex_date|label\.style_label_center|label\.style_text_outline|label\.style_triangledown|strategy\.direction\.short|earnings\.future_revenue|alert\.freq_once_per_bar|dividends\.future_amount|label\.style_label_right|strategy\.direction\.long|strategy\.position_size|barmerge\.lookahead_off|label\.style_label_down|label\.style_label_left|label\.style_triangleup|line\.style_arrow_right|position\.bottom_center|position\.middle_center|strategy\.direction\.all|strategy\.closedtrades|strategy\.max_drawdown|barmerge\.lookahead_on|earnings\.standardized|font\.family_monospace|label\.style_arrowdown|line\.style_arrow_both|line\.style_arrow_left|plot\.style_steplinebr|position\.bottom_right|position\.middle_right|barstate\.isconfirmed|earnings\.future_time|session\.ispostmarket|strategy\.grossprofit|syminfo\.basecurrency|syminfo\.shareholders|timeframe\.isintraday|timeframe\.multiplier|adjustment\.dividends|label\.style_label_up|plot\.style_histogram|position\.bottom_left|position\.middle_left|barstate\.isrealtime|chart\.is_heikinashi|earnings\.future_eps|session\.ispremarket|strategy\.eventrades|strategy\.losstrades|strategy\.openprofit|strategy\.opentrades\.capital_held|strategy\.opentrades|syminfo\.description|timeframe\.isminutes|timeframe\.ismonthly|timeframe\.isseconds|dayofweek\.wednesday|display\.data_window|display\.price_scale|display\.status_line|font\.family_default|label\.style_arrowup|label\.style_diamond|plot\.style_stepline|position\.top_center|strategy\.oca\.cancel|strategy\.oca\.reduce|barstate\.ishistory|chart\.is_linebreak|session\.isfirstbar|strategy\.grossloss|strategy\.max_runup|strategy\.netprofit|strategy\.wintrades|syminfo\.pointvalue|syminfo\.pricescale|syminfo\.volumetype|timeframe\.isweekly|dayofweek\.saturday|dayofweek\.thursday|hline\.style_dashed|hline\.style_dotted|label\.style_circle|label\.style_square|label\.style_xcross|plot\.style_circles|plot\.style_columns|position\.top_right|shape\.triangledown|splits\.denominator|chart\.is_standard|session\.islastbar|syminfo\.employees|timeframe\.isdaily|adjustment\.splits|barmerge\.gaps_off|dayofweek\.tuesday|earnings\.estimate|hline\.style_solid|label\.style_cross|line\.style_dashed|line\.style_dotted|location\.abovebar|location\.absolute|location\.belowbar|plot\.style_areabr|plot\.style_linebr|position\.top_left|strategy\.oca\.none|text\.align_bottom|text\.align_center|barstate\.isfirst|session\.ismarket|syminfo\.currency|syminfo\.industry|syminfo\.tickerid|syminfo\.timezone|timeframe\.period|barmerge\.gaps_on|dayofweek\.friday|dayofweek\.monday|dayofweek\.sunday|label\.style_flag|label\.style_none|line\.style_solid|order\.descending|plot\.style_cross|session\.extended|shape\.triangleup|splits\.numerator|text\.align_right|barstate\.islast|strategy\.equity|syminfo\.country|syminfo\.minmove|syminfo\.mintick|syminfo\.session|time_tradingday|timeframe\.isdwm|adjustment\.none|dividends\.gross|earnings\.actual|location\.bottom|order\.ascending|plot\.style_area|plot\.style_line|session\.regular|shape\.arrowdown|shape\.labeldown|text\.align_left|barstate\.isnew|chart\.bg_color|chart\.fg_color|chart\.is_range|chart\.is_renko|last_bar_index|strategy\.short|syminfo\.prefix|syminfo\.sector|syminfo\.ticker|alert\.freq_all|format\.inherit|format\.mintick|format\.percent|strategy\.fixed|text\.align_top|text\.wrap_auto|text\.wrap_none|xloc\.bar_index|chart\.is_kagi|last_bar_time|strategy\.long|color\.fuchsia|currency\.NONE|currency\.USDT|dividends\.net|format\.volume|shape\.arrowup|shape\.diamond|shape\.labelup|strategy\.cash|xloc\.bar_time|yloc\.abovebar|yloc\.belowbar|chart\.is_pnf|linefill\.all|polyline\.all|syminfo\.root|syminfo\.type|color\.maroon|color\.orange|color\.purple|color\.silver|color\.yellow|currency\.AUD|currency\.BTC|currency\.CAD|currency\.CHF|currency\.ETH|currency\.EUR|currency\.GBP|currency\.HKD|currency\.INR|currency\.JPY|currency\.KRW|currency\.MYR|currency\.NOK|currency\.NZD|currency\.RUB|currency\.SEK|currency\.SGD|currency\.TRY|currency\.USD|currency\.ZAR|display\.none|display\.pane|extend\.right|format\.price|location\.top|shape\.circle|shape\.square|shape\.xcross|color\.black|color\.green|color\.olive|color\.white|display\.all|extend\.both|extend\.left|extend\.none|scale\.right|shape\.cross|size\.normal|dayofmonth|ta\.accdist|time_close|weekofyear|color\.aqua|color\.blue|color\.gray|color\.lime|color\.navy|color\.teal|scale\.left|scale\.none|shape\.flag|size\.large|size\.small|yloc\.price|bar_index|dayofweek|label\.all|table\.all|color\.red|math\.rphi|size\.auto|size\.huge|size\.tiny|line\.all|math\.phi|box\.all|ta\.vwap|ta\.wvad|timenow|math\.pi|minute|second|ta\.iii|ta\.nvi|ta\.obv|ta\.pvi|ta\.pvt|ta\.wad|volume|math\.e|close|hlcc4|month|ohlc4|ta\.tr|false|high|hlc3|hour|open|time|year|true|hl2|low|na)\b(?!\s*=\s*\w+)/,"support.variable"],[/[(|)|\[|\]]/,"paren"],[/[a-zA-Z_][a-zA-Z_0-9]*(?=\s*\()/,{token:"entity.name.method"}],[/\w+\b/,"variable.other"]],comments:[[/@[A-Za-z]+(\s*=\s*)?$/,{token:"comment.annotation",next:"@pop"}],[/@[A-Za-z]+(\s*=\s*)?/,{token:"comment.annotation"}],[/(?!\s*@[A-Za-z]+).+$/,{token:"comment",next:"@pop"}]],stringDouble:[[/[^\\\"]+/,"string"],[/\\./,"string.invalid"],[/\"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],stringSingle:[[/[^\\']+/,"string"],[/\\./,"string.invalid"],[/'/,{token:"string",bracket:"@close",next:"@pop"}]],template:[[/(@builtinTypes)/,{token:"support.type"}],[/(\((?:\s+))?((?!(?:chart\.point|linefill|polyline|continue|for\.\.\.in|matrix|series|simple|string|export|import|method|switch|array|color|const|float|label|table|break|varip|while|bool|line|else|type|box|int|map|and|for|not|var|as|by|if|in|or|to)\b)\b[\w.\d_$]+(?=[\[\]]*(?:\s+)(?:[\w\d_$]+\s*(?:\,|\))+\s*).+(?:\=\>|\→)))/,"entity.name.type"],[/\(|\)|\[|\]|\=|\>/,{token:"paren",next:"@pop"}],[/(\,)(\s+)/,["keyword.operator","source"]],[/(\,)/,{token:"keyword.operator"}],[/([\w.\d$]+)/,{token:"entity.name.type"}],[/(<|>)/,{token:"paren"}],[/\s(?=\w)|$/,{token:"source",next:"@pop"}]],property:[[/@punctuation/,{token:"punctuation.operator"}],[/(@builtinTypes)(?=\s*[(])/,{token:"support.method",next:"@pop"}],[/[a-zA-Z_][a-zA-Z_0-9]+(?=\s*\()/,{token:"entity.name.method",next:"@pop"}],[/[a-zA-Z0-9_]+/,{token:"variable.other.property",next:"@pop"}],[/@empty/,{token:"source",next:"@pop"}]],import:[[/\s+/,{token:"source"}],[/(@importName)(\s+)(as\b)(\s+)(@importAlias)/,[{token:"entity.name.module"},{token:"source"},{token:"keyword"},{token:"source"},{token:"entity.name.module.name",next:"@pop"}]],[/@importName/,{token:"entity.name.module",next:"@pop"}]]},builtinTypes:/chart\.point|linefill|polyline|matrix|series|simple|string|array|color|const|float|label|table|bool|line|box|int|map/,punctuation:/[.](?![.])/,importName:/[a-zA-Z\d\$_\-\.\u00a1-\uffff\/]+/,importAlias:/[a-zA-Z\d\_\u00a1\uffff\/]+/,empty:/^$/};var Ct;(function(a){a[a.None=0]="None",a[a.Indent=1]="Indent",a[a.IndentOutdent=2]="IndentOutdent",a[a.Outdent=3]="Outdent"})(Ct||(Ct={}));const on={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["(",")"],["[","]"]],folding:{markers:{start:/(\/\/#region)|(\/\/.*{($|\s))/,end:/(\/\/#endregion)|(\/\/.*}($|\s))/}},autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],onEnterRules:[{beforeText:/\)\s*=>\s*$/,action:{indentAction:Ct.Indent}},{beforeText:/if\s+.*\s*$/,action:{indentAction:Ct.Indent}},{beforeText:/else/,action:{indentAction:Ct.Indent}},{beforeText:/for\s+\S+\s*=\s*\S+\s+to\s+\S+(?:\s+by\s+\S+)?\s*$/,action:{indentAction:Ct.Indent}},{beforeText:/for\s+(?:\[\S+\s+\S+]|\S+)\s+in\s+\S+\s*$/,action:{indentAction:Ct.Indent}},{beforeText:/switch\s+.*\s*$/,action:{indentAction:Ct.Indent}},{beforeText:/while\s+.*\s*$/,action:{indentAction:Ct.Indent}},{beforeText:/type\s+\w+/,action:{indentAction:Ct.Indent}},{beforeText:/^\s*$/,action:{indentAction:Ct.Outdent}}]},I={"color-white":"#ffffff","color-black":"#000000","color-transparent":"#00000000","color-cold-gray-50":"#F8F9FD","color-cold-gray-100":"#F0F3FA","color-cold-gray-150":"#E0E3EB","color-cold-gray-200":"#D1D4DC","color-cold-gray-250":"#C1C4CD","color-cold-gray-300":"#B2B5BE","color-cold-gray-350":"#A3A6AF","color-cold-gray-400":"#9598A1","color-cold-gray-450":"#868993","color-cold-gray-500":"#787B86","color-cold-gray-550":"#6A6D78","color-cold-gray-600":"#5D606B","color-cold-gray-650":"#50535E","color-cold-gray-700":"#434651","color-cold-gray-750":"#363A45","color-cold-gray-800":"#2A2E39","color-cold-gray-850":"#1E222D","color-cold-gray-900":"#131722","color-cold-gray-950":"#0C0E15","color-ripe-red-50":"#FFEBEC","color-ripe-red-100":"#FCCBCD","color-ripe-red-200":"#FAA1A4","color-ripe-red-300":"#F77C80","color-ripe-red-400":"#F7525F","color-ripe-red-500":"#F23645","color-ripe-red-600":"#CC2F3C","color-ripe-red-700":"#B22833","color-ripe-red-800":"#991F29","color-ripe-red-900":"#801922","color-ripe-red-a100":"#FF8080","color-ripe-red-a200":"#FF5252","color-ripe-red-a400":"#FF3333","color-ripe-red-a600":"#CC2929","color-ripe-red-a700":"#802028","color-ripe-red-a800":"#4D191D","color-ripe-red-a900":"#331F20","color-tan-orange-50":"#FFF3E0","color-tan-orange-100":"#FFE0B2","color-tan-orange-200":"#FFCC80","color-tan-orange-300":"#ffb74d","color-tan-orange-400":"#FFA726","color-tan-orange-500":"#FF9800","color-tan-orange-600":"#FB8C00","color-tan-orange-700":"#F57C00","color-tan-orange-800":"#EF6C00","color-tan-orange-900":"#e65100","color-tan-orange-a200":"#ffab40","color-tan-orange-a400":"#FF9100","color-tan-orange-a600":"#CC7014","color-tan-orange-a700":"#8C541C","color-tan-orange-a800":"#593A1B","color-tan-orange-a900":"#33261A","color-iguana-green-100":"#C8E6C9","color-iguana-green-200":"#A5D6A7","color-iguana-green-300":"#81c784","color-iguana-green-400":"#66BB6A","color-iguana-green-500":"#4caf50","color-iguana-green-600":"#43a047","color-iguana-green-700":"#388e3c","color-iguana-green-800":"#2E7D32","color-iguana-green-900":"#1B5E20","color-iguana-green-a700":"#00c853","color-banana-yellow-100":"#FFF9C4","color-banana-yellow-200":"#FFF59D","color-banana-yellow-300":"#FFF176","color-banana-yellow-400":"#ffee58","color-banana-yellow-500":"#ffeb3b","color-banana-yellow-600":"#fdd835","color-banana-yellow-700":"#fbc02d","color-banana-yellow-800":"#f9a825","color-banana-yellow-900":"#F57F17","color-banana-yellow-a400":"#ffea00","color-banana-yellow-a700":"#EEDA01","color-tv-blue-50":"#E3EFFD","color-tv-blue-100":"#BBD9FB","color-tv-blue-200":"#90BFF9","color-tv-blue-300":"#5B9CF6","color-tv-blue-400":"#3179F5","color-tv-blue-500":"#2962FF","color-tv-blue-600":"#1E53E5","color-tv-blue-700":"#1848CC","color-tv-blue-800":"#143EB3","color-tv-blue-900":"#0C3299","color-tv-blue-a100":"#82b1ff","color-tv-blue-a200":"#448aff","color-tv-blue-a400":"#2979ff","color-tv-blue-a600":"#2962FF","color-tv-blue-a700":"#143A87","color-tv-blue-a800":"#142E61","color-tv-blue-a900":"#132042","color-deep-blue-50":"#EDE7F6","color-deep-blue-100":"#D1C4E9","color-deep-blue-200":"#B39DDB","color-deep-blue-300":"#9575cd","color-deep-blue-400":"#7e57c2","color-deep-blue-500":"#673ab7","color-deep-blue-700":"#512da8","color-deep-blue-800":"#4527A0","color-deep-blue-900":"#311B92","color-deep-blue-a100":"#b388ff","color-deep-blue-a200":"#7C4DFF","color-deep-blue-a400":"#651FFF","color-deep-blue-a700":"#6200EA","color-minty-green-50":"#DAF2EE","color-minty-green-100":"#ACE5DC","color-minty-green-200":"#70CCBD","color-minty-green-300":"#42BDA8","color-minty-green-400":"#22AB94","color-minty-green-500":"#089981","color-minty-green-600":"#06806B","color-minty-green-700":"#056656","color-minty-green-800":"#004D40","color-minty-green-900":"#00332A","color-minty-green-a400":"#2BD9BC","color-minty-green-a600":"#24B29B","color-minty-green-a700":"#1B7667","color-minty-green-a800":"#10443B","color-minty-green-a900":"#082621","color-grapes-purple-50":"#F3E5F5","color-grapes-purple-100":"#E1BEE7","color-grapes-purple-200":"#CE93D8","color-grapes-purple-300":"#ba68c8","color-grapes-purple-400":"#ab47bc","color-grapes-purple-500":"#9c27b0","color-grapes-purple-600":"#8e24aa","color-grapes-purple-700":"#7b1fa2","color-grapes-purple-800":"#6A1B9A","color-grapes-purple-900":"#4A148C","color-grapes-purple-a100":"#EA80FC","color-grapes-purple-a200":"#E040FB","color-grapes-purple-a400":"#D500F9","color-grapes-purple-a700":"#aa00ff","color-berry-pink-100":"#F8BBD0","color-berry-pink-200":"#f48fb1","color-berry-pink-300":"#f06292","color-berry-pink-400":"#ec407a","color-berry-pink-500":"#e91e63","color-berry-pink-600":"#D81B60","color-berry-pink-700":"#C2185B","color-berry-pink-800":"#AD1457","color-berry-pink-900":"#880E4F","color-berry-pink-a100":"#ff80ab","color-berry-pink-a200":"#ff4081","color-berry-pink-a400":"#f50057","color-sky-blue-100":"#B2EBF2","color-sky-blue-200":"#80DEEA","color-sky-blue-300":"#4dd0e1","color-sky-blue-400":"#26c6da","color-sky-blue-500":"#00bcd4","color-sky-blue-600":"#00acc1","color-sky-blue-700":"#0097A7","color-sky-blue-800":"#00838F","color-sky-blue-900":"#006064","color-sky-blue-a400":"#00e5ff","color-sky-blue-a700":"#00B8D4","color-deep-blue-600":"#5E35B1","color-forest-green-50":"#DAF2E6","color-forest-green-100":"#ACE5C9","color-forest-green-200":"#70CC9E","color-forest-green-300":"#42BD7F","color-forest-green-400":"#22AB67","color-forest-green-500":"#089950","color-forest-green-600":"#068043","color-forest-green-700":"#056636","color-forest-green-800":"#004D27","color-forest-green-900":"#1A3326","color-facebook":"#1877F2","color-deep-facebook":"#1564CA","color-twitter":"#1DA1F2","color-deep-twitter":"#188CD3","color-youtube":"#FF0000","color-linkedin":"#007BB5","color-seeking-alpha-brand":"#ff7200"};function Rt(a,n=1){return a+Math.round(255*Math.min(Math.max(n,0),1)).toString(16).toUpperCase().padStart(2,"0")}const ln={base:"vs",inherit:!0,rules:[{token:"comment",foreground:I["color-cold-gray-400"]},{token:"comment.annotation",fontStyle:"bold"},{token:"text",foreground:I["color-cold-gray-900"]},{token:"string",foreground:I["color-iguana-green-700"]},{token:"constant.numeric",foreground:I["color-banana-yellow-900"]},{token:"constant.language",foreground:I["color-ripe-red-a600"]},{token:"constant.other.color",foreground:I["color-ripe-red-a600"]},{token:"constant.other",foreground:I["color-ripe-red-a600"]},{token:"support.variable",foreground:I["color-ripe-red-a600"]},{token:"support.function",foreground:I["color-tv-blue-a600"]},{token:"support.type",foreground:I["color-minty-green-400"],fontStyle:"bold"},{token:"entity.name.type",foreground:I["color-minty-green-400"],fontStyle:"bold"},{token:"support.method",foreground:I["color-tv-blue-a600"]},{token:"keyword.equals",foreground:I["color-minty-green-400"]},{token:"keyword.operator",foreground:I["color-minty-green-400"]},{token:"keyword.other",foreground:I["color-minty-green-400"]},{token:"keyword",foreground:I["color-minty-green-400"]},{token:"variable.other",foreground:I["color-cold-gray-800"]},{token:"variable.other.property",foreground:I["color-cold-gray-800"]},{token:"paren",foreground:I["color-black"]},{token:"entity.name.function",foreground:I["color-tv-blue-900"]},{token:"entity.name.method",foreground:I["color-tv-blue-900"]},{token:"meta.function-call",foreground:I["color-grapes-purple-600"]},{token:"entity.name.module.name",foreground:I["color-grapes-purple-600"]},{token:"entity.name.module",foreground:I["color-tv-blue-a600"]},{token:"",background:I["color-white"]}],colors:{"editor.foreground":I["color-cold-gray-900"],"editor.background":"#00000000","editorLineNumber.foreground":I["color-cold-gray-400"],"editorLineNumber.activeForeground":I["color-cold-gray-700"],"editorHoverWidget.background":I["color-white"],"editorHoverWidget.statusBarBackground":I["color-cold-gray-150"],"editorHoverWidget.foreground":I["color-cold-gray-900"],"editorWidget.background":I["color-white"],"editorWidget.foreground":I["color-cold-gray-900"],"editorGutter.background":"#00000000","editor.foldBackground":Rt(I["color-cold-gray-200"],.5),"editor.lineHighlightBackground":I["color-tv-blue-50"],"editor.lineHighlightBorder":I["color-tv-blue-50"],"editor.rangeHighlightBackground":I["color-tv-blue-a800"],"editorBracketMatch.background":I["color-cold-gray-150"],"editor.selectionBackground":I["color-tv-blue-100"],"editor.selectionHighlightBackground":I["color-tv-blue-50"],"editor.findMatchBackground":I["color-tan-orange-100"],"editor.findMatchHighlightBackground":I["color-tan-orange-100"],"editor.findMatchBorder":I["color-tan-orange-500"],"list.foreground":I["color-cold-gray-900"],"list.hoverForeground":I["color-cold-gray-900"],"list.activeSelectionBackground":I["color-tv-blue-500"],"list.hoverBackground":I["color-tv-blue-50"],"list.focusHighlightForeground":I["color-tv-blue-100"],"list.inactiveSelectionBackground":I["color-tv-blue-500"],"keybindingLabel.background":I["color-white"],"keybindingLabel.foreground":I["color-cold-gray-900"],"keybindingLabel.border":I["color-cold-gray-150"],"input.foreground":I["color-cold-gray-900"],"textLink.foreground":I["color-tv-blue-500"],"textLink.activeForeground":I["color-tv-blue-600"],"peekViewEditor.matchHighlightBackground":I["color-tan-orange-100"],"peekViewResult.lineForeground":I["color-cold-gray-900"],"editorMarkerNavigationWarning.background":I["color-banana-yellow-800"],"inputValidation.warningBackground":I["color-banana-yellow-800"],"diffEditor.insertedTextBackground":Rt(I["color-forest-green-500"],.3),"diffEditor.insertedLineBackground":Rt(I["color-forest-green-500"],.15),"diffEditor.removedTextBackground":Rt(I["color-ripe-red-500"],.3),"diffEditor.removedLineBackground":Rt(I["color-ripe-red-500"],.15),"editorInlayHint.background":I["color-cold-gray-150"],"editorInlayHint.foreground":I["color-cold-gray-550"],"editorError.foreground":I["color-ripe-red-500"],"editorWarning.foreground":I["color-tan-orange-500"]}},cn={base:"vs-dark",inherit:!0,rules:[{token:"comment",foreground:I["color-cold-gray-500"]},{token:"comment.annotation",fontStyle:"bold"},{token:"text",foreground:I["color-white"]},{token:"string",foreground:I["color-iguana-green-700"]},{token:"constant.numeric",foreground:I["color-banana-yellow-900"]},{token:"constant.language",foreground:I["color-ripe-red-300"]},{token:"constant.other.color",foreground:I["color-ripe-red-300"]},{token:"constant.other",foreground:I["color-ripe-red-300"]},{token:"support.variable",foreground:I["color-ripe-red-300"]},{token:"support.function",foreground:I["color-tv-blue-300"]},{token:"support.method",foreground:I["color-tv-blue-300"]},{token:"support.type",foreground:I["color-minty-green-300"],fontStyle:"bold"},{token:"entity.name.type",foreground:I["color-minty-green-300"],fontStyle:"bold"},{token:"keyword.equals",foreground:I["color-minty-green-300"]},{token:"keyword.operator",foreground:I["color-minty-green-300"]},{token:"keyword.other",foreground:I["color-minty-green-300"]},{token:"keyword",foreground:I["color-minty-green-300"]},{token:"variable.other",foreground:I["color-cold-gray-200"]},{token:"variable.other.property",foreground:I["color-cold-gray-200"]},{token:"paren",foreground:I["color-white"]},{token:"entity.name.function",foreground:I["color-tv-blue-400"]},{token:"entity.name.method",foreground:I["color-tv-blue-400"]},{token:"meta.function-call",foreground:I["color-grapes-purple-300"]},{token:"entity.name.module.name",foreground:I["color-grapes-purple-300"]},{token:"entity.name.module",foreground:I["color-tv-blue-300"]},{token:"",background:I["color-cold-gray-900"]}],colors:{"editor.foreground":I["color-white"],"editor.background":I["color-cold-gray-900"],"editorLineNumber.foreground":I["color-cold-gray-500"],"editorLineNumber.activeForeground":I["color-cold-gray-300"],"editorWidget.background":I["color-cold-gray-850"],"editorHoverWidget.background":I["color-cold-gray-850"],"editorHoverWidget.foreground":I["color-cold-gray-300"],"editorHoverWidget.statusBarBackground":I["color-cold-gray-900"],"editorWidget.foreground":I["color-cold-gray-300"],"editorGutter.background":I["color-cold-gray-900"],"editor.foldBackground":Rt(I["color-cold-gray-700"],.5),"editor.lineHighlightBackground":I["color-tv-blue-a900"],"editor.lineHighlightBorder":I["color-tv-blue-a900"],"editor.rangeHighlightBackground":I["color-tv-blue-a800"],"editorBracketMatch.background":I["color-cold-gray-750"],"editor.selectionBackground":I["color-tv-blue-a800"],"editor.selectionHighlightBackground":I["color-cold-gray-800"],"list.foreground":I["color-cold-gray-350"],"list.hoverForeground":I["color-cold-gray-350"],"list.activeSelectionBackground":I["color-tv-blue-500"],"list.hoverBackground":I["color-tv-blue-900"],"list.focusHighlightForeground":I["color-tv-blue-300"],"list.inactiveSelectionBackground":I["color-tv-blue-500"],"keybindingLabel.background":I["color-cold-gray-800"],"keybindingLabel.foreground":I["color-cold-gray-300"],"keybindingLabel.border":I["color-cold-gray-700"],"input.foreground":I["color-cold-gray-350"],"textLink.foreground":I["color-tv-blue-500"],"textLink.activeForeground":I["color-tv-blue-600"],"peekViewEditor.matchHighlightBackground":I["color-tan-orange-a800"],"peekViewResult.lineForeground":I["color-cold-gray-350"],"diffEditor.insertedTextBackground":Rt(I["color-iguana-green-a700"],.3),"diffEditor.insertedLineBackground":Rt(I["color-iguana-green-a700"],.15),"diffEditor.removedTextBackground":Rt(I["color-ripe-red-a400"],.3),"diffEditor.removedLineBackground":Rt(I["color-ripe-red-a400"],.15),"editorInlayHint.background":I["color-cold-gray-800"],"editorInlayHint.foreground":I["color-cold-gray-400"],"editorError.foreground":I["color-ripe-red-500"],"editorWarning.foreground":I["color-tan-orange-700"]}},Nd=/(\\(?:[\\'"]))|(\\$)|("|$)|($)/g,Ld=/(\\(?:[\\'"]))|(\\$)|('|$)|($)/g,oo={"color.aqua":"#00BCD4","color.black":"#363A45","color.blue":"#2196F3","color.fuchsia":"#E040FB","color.gray":"#787B86","color.green":"#4CAF50","color.lime":"#00E676","color.maroon":"#880E4F","color.navy":"#311B92","color.olive":"#808000","color.orange":"#FF9800","color.purple":"#9C27B0","color.red":"#FF5252","color.silver":"#B2B5BE","color.teal":"#00897B","color.white":"#FFFFFF","color.yellow":"#FFEB3B"};class Pd{constructor(n){Object.defineProperty(this,"_formatter",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_isMac",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_getSignatureParams",{enumerable:!0,configurable:!0,writable:!0,value:(s=[],o)=>{const l=new Map,c=o.indexOf("(");for(let u=c+1,f=c;u<o.length;u++)o[u]!==","&&o[u]!==")"||(f++,l.set(o.slice(f,u),f),f=u+1);return s.map(({name:u="",displayType:f,desc:x})=>{const g=[],h=l.get(u),T=h+u.length;return g.push(this._formatter.paragraph(this._formatter.bold(u),this._formatter.italic(f||""))),x&&g.push(Array.isArray(x)?x.join(this._formatter.lineBreak):x),{label:[h,T],documentation:{value:g.join(this._formatter.lineBreak)}}})}}),this._formatter=_e,this._isMac=/(Mac|iPhone|iPod|iPad)/i.test(n)}getSignatureHelpValues(n,s){const o=this._getFuncItems(n);if(!(o!=null&&o.length))return null;const l=this._getSequentialSignatures(n,o),c=this._getActiveIndex(o,s);return{signatures:l,...c}}_getActiveIndex(n,s=[]){let o=0,l=-1;s.some(u=>!!u)||(l=s.length-1);const c=s.pop();if(c)for(const[u,f]of n.entries()){const{args:x}=f;if(x&&x.length){const g=x.findIndex(h=>h.name===c);if(g!=-1){l=g,o=u;break}}}return{activeParameter:l,activeSignature:o}}_getFuncItems(n){return lt.functions.get(n)||qt.userFuncs.get(n)||qt.methodFuncs.get(n)}_getSequentialSignatures(n,s){return s.map(o=>{const l=this._getSignatureLabel(n,o);return{label:l,documentation:this._getFormattedSignatureDocumentation(o),parameters:this._getSignatureParams(o.args,l)}})}_getSignatureLabel(n,s,o=!1){const l=[n];return o&&l.push("<type>"),s.args&&(l.push("("),l.push(s.args.map(({name:c})=>c).join(", ")),l.push(")")),l.join("")}_getFormattedSignatureDocumentation(n){const{desc:s}=n,o=[];s&&o.push(Array.isArray(s)?s.join(this._formatter.lineBreak):s);const l=`${this._formatter.code(this._isMac?"⌘":"Ctrl")} +
132
+ `)+S+`return __p
133
+ }`;var le=np(function(){return xe(m,G+"return "+S).apply(s,y)});if(le.source=S,Ci(le))throw le;return le}function ix(e){return we(e).toLowerCase()}function ox(e){return we(e).toUpperCase()}function lx(e,t,r){if(e=we(e),e&&(r||t===s))return yl(e);if(!e||!(t=ut(t)))return e;var i=Lt(e),p=Lt(t),m=_l(i,p),y=fl(i,p)+1;return _r(i,m,y).join("")}function cx(e,t,r){if(e=we(e),e&&(r||t===s))return e.slice(0,bl(e)+1);if(!e||!(t=ut(t)))return e;var i=Lt(e),p=fl(i,Lt(t))+1;return _r(i,0,p).join("")}function px(e,t,r){if(e=we(e),e&&(r||t===s))return e.replace(ks,"");if(!e||!(t=ut(t)))return e;var i=Lt(e),p=_l(i,Lt(t));return _r(i,p).join("")}function dx(e,t){var r=ie,i=gt;if(Se(t)){var p="separator"in t?t.separator:p;r="length"in t?oe(t.length):r,i="omission"in t?ut(t.omission):i}e=we(e);var m=e.length;if(Hr(e)){var y=Lt(e);m=y.length}if(r>=m)return e;var b=r-Wr(i);if(b<1)return i;var v=y?_r(y,0,b).join(""):e.slice(0,b);if(p===s)return v+i;if(y&&(b+=v.length-b),zi(p)){if(e.slice(b).search(p)){var C,z=v;for(p.global||(p=Wn(p.source,we(he.exec(p))+"g")),p.lastIndex=0;C=p.exec(z);)var S=C.index;v=v.slice(0,S===s?b:S)}}else if(e.indexOf(ut(p),b)!=b){var j=v.lastIndexOf(p);j>-1&&(v=v.slice(0,j))}return v+i}function mx(e){return e=we(e),e&&Ts.test(e)?e.replace(Gt,Bu):e}var ux=Jr(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),Ni=ic("toUpperCase");function ap(e,t,r){return e=we(e),t=r?s:t,t===s?Pu(e)?$u(e):Iu(e):e.match(t)||[]}var np=ce(function(e,t){try{return dt(e,s,t)}catch(r){return Ci(r)?r:new re(r)}}),yx=Zt(function(e,t){return wt(t,function(r){r=$t(r),Yt(e,r,Ai(e[r],e))}),e});function _x(e){var t=e==null?0:e.length,r=Y();return e=t?Ce(e,function(i){if(typeof i[1]!="function")throw new vt(u);return[r(i[0]),i[1]]}):[],ce(function(i){for(var p=-1;++p<t;){var m=e[p];if(dt(m[0],this,i))return dt(m[1],this,i)}})}function fx(e){return By(Dt(e,D))}function Li(e){return function(){return e}}function gx(e,t){return e==null||e!==e?t:e}var bx=lc(),xx=lc(!0);function nt(e){return e}function Pi(e){return Rl(typeof e=="function"?e:Dt(e,D))}function hx(e){return Bl(Dt(e,D))}function wx(e,t){return Ul(e,Dt(t,D))}var vx=ce(function(e,t){return function(r){return Ls(r,e,t)}}),Tx=ce(function(e,t){return function(r){return Ls(e,r,t)}});function Mi(e,t,r){var i=$e(t),p=La(t,i);r==null&&!(Se(t)&&(p.length||!i.length))&&(r=t,t=e,e=this,p=La(t,$e(t)));var m=!(Se(r)&&"chain"in r)||!!r.chain,y=er(e);return wt(p,function(b){var v=t[b];e[b]=v,y&&(e.prototype[b]=function(){var C=this.__chain__;if(m||C){var z=e(this.__wrapped__),S=z.__actions__=rt(this.__actions__);return S.push({func:v,args:arguments,thisArg:e}),z.__chain__=C,z}return v.apply(e,cr([this.value()],arguments))})}),e}function Dx(){return He._===this&&(He._=Vu),this}function Oi(){}function kx(e){return e=oe(e),ce(function(t){return Kl(t,e)})}var Ix=yi(Ce),Ax=yi(cl),qx=yi(Fn);function ip(e){return wi(e)?Bn($t(e)):s_(e)}function Cx(e){return function(t){return e==null?s:Ar(e,t)}}var zx=pc(),Sx=pc(!0);function Ri(){return[]}function Fi(){return!1}function Ex(){return{}}function Nx(){return""}function Lx(){return!0}function Px(e,t){if(e=oe(e),e<1||e>Me)return[];var r=te,i=Xe(e,te);t=Y(t),e-=te;for(var p=$n(i,t);++r<e;)t(r);return p}function Mx(e){return se(e)?Ce(e,$t):yt(e)?[e]:rt(Ic(we(e)))}function Ox(e){var t=++Gu;return we(e)+t}var Rx=Ba(function(e,t){return e+t},0),Fx=_i("ceil"),Bx=Ba(function(e,t){return e/t},1),Ux=_i("floor");function Kx(e){return e&&e.length?Na(e,nt,ei):s}function $x(e,t){return e&&e.length?Na(e,Y(t,2),ei):s}function jx(e){return ml(e,nt)}function Hx(e,t){return ml(e,Y(t,2))}function Wx(e){return e&&e.length?Na(e,nt,ai):s}function Gx(e,t){return e&&e.length?Na(e,Y(t,2),ai):s}var Xx=Ba(function(e,t){return e*t},1),Vx=_i("round"),Yx=Ba(function(e,t){return e-t},0);function Qx(e){return e&&e.length?Kn(e,nt):0}function Zx(e,t){return e&&e.length?Kn(e,Y(t,2)):0}return d.after=hg,d.ary=Oc,d.assign=ob,d.assignIn=Qc,d.assignInWith=Ja,d.assignWith=lb,d.at=cb,d.before=Rc,d.bind=Ai,d.bindAll=yx,d.bindKey=Fc,d.castArray=Eg,d.chain=Lc,d.chunk=B_,d.compact=U_,d.concat=K_,d.cond=_x,d.conforms=fx,d.constant=Li,d.countBy=Qf,d.create=pb,d.curry=Bc,d.curryRight=Uc,d.debounce=Kc,d.defaults=db,d.defaultsDeep=mb,d.defer=wg,d.delay=vg,d.difference=$_,d.differenceBy=j_,d.differenceWith=H_,d.drop=W_,d.dropRight=G_,d.dropRightWhile=X_,d.dropWhile=V_,d.fill=Y_,d.filter=Jf,d.flatMap=rg,d.flatMapDeep=sg,d.flatMapDepth=ag,d.flatten=zc,d.flattenDeep=Q_,d.flattenDepth=Z_,d.flip=Tg,d.flow=bx,d.flowRight=xx,d.fromPairs=J_,d.functions=xb,d.functionsIn=hb,d.groupBy=ng,d.initial=tf,d.intersection=rf,d.intersectionBy=sf,d.intersectionWith=af,d.invert=vb,d.invertBy=Tb,d.invokeMap=og,d.iteratee=Pi,d.keyBy=lg,d.keys=$e,d.keysIn=at,d.map=Ga,d.mapKeys=kb,d.mapValues=Ib,d.matches=hx,d.matchesProperty=wx,d.memoize=Va,d.merge=Ab,d.mergeWith=Zc,d.method=vx,d.methodOf=Tx,d.mixin=Mi,d.negate=Ya,d.nthArg=kx,d.omit=qb,d.omitBy=Cb,d.once=Dg,d.orderBy=cg,d.over=Ix,d.overArgs=kg,d.overEvery=Ax,d.overSome=qx,d.partial=qi,d.partialRight=$c,d.partition=pg,d.pick=zb,d.pickBy=Jc,d.property=ip,d.propertyOf=Cx,d.pull=cf,d.pullAll=Ec,d.pullAllBy=pf,d.pullAllWith=df,d.pullAt=mf,d.range=zx,d.rangeRight=Sx,d.rearg=Ig,d.reject=ug,d.remove=uf,d.rest=Ag,d.reverse=ki,d.sampleSize=_g,d.set=Eb,d.setWith=Nb,d.shuffle=fg,d.slice=yf,d.sortBy=xg,d.sortedUniq=wf,d.sortedUniqBy=vf,d.split=rx,d.spread=qg,d.tail=Tf,d.take=Df,d.takeRight=kf,d.takeRightWhile=If,d.takeWhile=Af,d.tap=Kf,d.throttle=Cg,d.thru=Wa,d.toArray=Xc,d.toPairs=ep,d.toPairsIn=tp,d.toPath=Mx,d.toPlainObject=Yc,d.transform=Lb,d.unary=zg,d.union=qf,d.unionBy=Cf,d.unionWith=zf,d.uniq=Sf,d.uniqBy=Ef,d.uniqWith=Nf,d.unset=Pb,d.unzip=Ii,d.unzipWith=Nc,d.update=Mb,d.updateWith=Ob,d.values=rs,d.valuesIn=Rb,d.without=Lf,d.words=ap,d.wrap=Sg,d.xor=Pf,d.xorBy=Mf,d.xorWith=Of,d.zip=Rf,d.zipObject=Ff,d.zipObjectDeep=Bf,d.zipWith=Uf,d.entries=ep,d.entriesIn=tp,d.extend=Qc,d.extendWith=Ja,Mi(d,d),d.add=Rx,d.attempt=np,d.camelCase=Kb,d.capitalize=rp,d.ceil=Fx,d.clamp=Fb,d.clone=Ng,d.cloneDeep=Pg,d.cloneDeepWith=Mg,d.cloneWith=Lg,d.conformsTo=Og,d.deburr=sp,d.defaultTo=gx,d.divide=Bx,d.endsWith=$b,d.eq=Mt,d.escape=jb,d.escapeRegExp=Hb,d.every=Zf,d.find=eg,d.findIndex=qc,d.findKey=ub,d.findLast=tg,d.findLastIndex=Cc,d.findLastKey=yb,d.floor=Ux,d.forEach=Pc,d.forEachRight=Mc,d.forIn=_b,d.forInRight=fb,d.forOwn=gb,d.forOwnRight=bb,d.get=Si,d.gt=Rg,d.gte=Fg,d.has=wb,d.hasIn=Ei,d.head=Sc,d.identity=nt,d.includes=ig,d.indexOf=ef,d.inRange=Bb,d.invoke=Db,d.isArguments=zr,d.isArray=se,d.isArrayBuffer=Bg,d.isArrayLike=st,d.isArrayLikeObject=Oe,d.isBoolean=Ug,d.isBuffer=fr,d.isDate=Kg,d.isElement=$g,d.isEmpty=jg,d.isEqual=Hg,d.isEqualWith=Wg,d.isError=Ci,d.isFinite=Gg,d.isFunction=er,d.isInteger=jc,d.isLength=Qa,d.isMap=Hc,d.isMatch=Xg,d.isMatchWith=Vg,d.isNaN=Yg,d.isNative=Qg,d.isNil=Jg,d.isNull=Zg,d.isNumber=Wc,d.isObject=Se,d.isObjectLike=Pe,d.isPlainObject=Bs,d.isRegExp=zi,d.isSafeInteger=eb,d.isSet=Gc,d.isString=Za,d.isSymbol=yt,d.isTypedArray=ts,d.isUndefined=tb,d.isWeakMap=rb,d.isWeakSet=sb,d.join=nf,d.kebabCase=Wb,d.last=It,d.lastIndexOf=of,d.lowerCase=Gb,d.lowerFirst=Xb,d.lt=ab,d.lte=nb,d.max=Kx,d.maxBy=$x,d.mean=jx,d.meanBy=Hx,d.min=Wx,d.minBy=Gx,d.stubArray=Ri,d.stubFalse=Fi,d.stubObject=Ex,d.stubString=Nx,d.stubTrue=Lx,d.multiply=Xx,d.nth=lf,d.noConflict=Dx,d.noop=Oi,d.now=Xa,d.pad=Vb,d.padEnd=Yb,d.padStart=Qb,d.parseInt=Zb,d.random=Ub,d.reduce=dg,d.reduceRight=mg,d.repeat=Jb,d.replace=ex,d.result=Sb,d.round=Vx,d.runInContext=w,d.sample=yg,d.size=gg,d.snakeCase=tx,d.some=bg,d.sortedIndex=_f,d.sortedIndexBy=ff,d.sortedIndexOf=gf,d.sortedLastIndex=bf,d.sortedLastIndexBy=xf,d.sortedLastIndexOf=hf,d.startCase=sx,d.startsWith=ax,d.subtract=Yx,d.sum=Qx,d.sumBy=Zx,d.template=nx,d.times=Px,d.toFinite=tr,d.toInteger=oe,d.toLength=Vc,d.toLower=ix,d.toNumber=At,d.toSafeInteger=ib,d.toString=we,d.toUpper=ox,d.trim=lx,d.trimEnd=cx,d.trimStart=px,d.truncate=dx,d.unescape=mx,d.uniqueId=Ox,d.upperCase=ux,d.upperFirst=Ni,d.each=Pc,d.eachRight=Mc,d.first=Sc,Mi(d,function(){var e={};return Ut(d,function(t,r){Te.call(d.prototype,r)||(e[r]=t)}),e}(),{chain:!1}),d.VERSION=o,wt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){d[e].placeholder=d}),wt(["drop","take"],function(e,t){ue.prototype[e]=function(r){r=r===s?1:Ue(oe(r),0);var i=this.__filtered__&&!t?new ue(this):this.clone();return i.__filtered__?i.__takeCount__=Xe(r,i.__takeCount__):i.__views__.push({size:Xe(r,te),type:e+(i.__dir__<0?"Right":"")}),i},ue.prototype[e+"Right"]=function(r){return this.reverse()[e](r).reverse()}}),wt(["filter","map","takeWhile"],function(e,t){var r=t+1,i=r==Fe||r==ge;ue.prototype[e]=function(p){var m=this.clone();return m.__iteratees__.push({iteratee:Y(p,3),type:r}),m.__filtered__=m.__filtered__||i,m}}),wt(["head","last"],function(e,t){var r="take"+(t?"Right":"");ue.prototype[e]=function(){return this[r](1).value()[0]}}),wt(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");ue.prototype[e]=function(){return this.__filtered__?new ue(this):this[r](1)}}),ue.prototype.compact=function(){return this.filter(nt)},ue.prototype.find=function(e){return this.filter(e).head()},ue.prototype.findLast=function(e){return this.reverse().find(e)},ue.prototype.invokeMap=ce(function(e,t){return typeof e=="function"?new ue(this):this.map(function(r){return Ls(r,e,t)})}),ue.prototype.reject=function(e){return this.filter(Ya(Y(e)))},ue.prototype.slice=function(e,t){e=oe(e);var r=this;return r.__filtered__&&(e>0||t<0)?new ue(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==s&&(t=oe(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},ue.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ue.prototype.toArray=function(){return this.take(te)},Ut(ue.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),p=d[i?"take"+(t=="last"?"Right":""):t],m=i||/^find/.test(t);p&&(d.prototype[t]=function(){var y=this.__wrapped__,b=i?[1]:arguments,v=y instanceof ue,C=b[0],z=v||se(y),S=function(de){var _e=p.apply(d,cr([de],b));return i&&j?_e[0]:_e};z&&r&&typeof C=="function"&&C.length!=1&&(v=z=!1);var j=this.__chain__,G=!!this.__actions__.length,Q=m&&!j,le=v&&!G;if(!m&&z){y=le?y:new ue(this);var Z=e.apply(y,b);return Z.__actions__.push({func:Wa,args:[S],thisArg:s}),new Tt(Z,j)}return Q&&le?e.apply(this,b):(Z=this.thru(S),Q?i?Z.value()[0]:Z.value():Z)})}),wt(["pop","push","shift","sort","splice","unshift"],function(e){var t=ba[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);d.prototype[e]=function(){var p=arguments;if(i&&!this.__chain__){var m=this.value();return t.apply(se(m)?m:[],p)}return this[r](function(y){return t.apply(se(y)?y:[],p)})}}),Ut(ue.prototype,function(e,t){var r=d[t];if(r){var i=r.name+"";Te.call(Yr,i)||(Yr[i]=[]),Yr[i].push({name:t,func:r})}}),Yr[Fa(s,ee).name]=[{name:"wrapper",func:s}],ue.prototype.clone=dy,ue.prototype.reverse=my,ue.prototype.value=uy,d.prototype.at=$f,d.prototype.chain=jf,d.prototype.commit=Hf,d.prototype.next=Wf,d.prototype.plant=Xf,d.prototype.reverse=Vf,d.prototype.toJSON=d.prototype.valueOf=d.prototype.value=Yf,d.prototype.first=d.prototype.head,As&&(d.prototype[As]=Gf),d},Gr=ju();vr?((vr.exports=Gr)._=Gr,Pn._=Gr):He._=Gr}).call(ss)}(Ws,Ws.exports);var io=Ws.exports;const Ee="tccScript",Nr={builtinFunctions:/strategy\.closedtrades\.max_drawdown_percent|strategy\.opentrades\.max_drawdown_percent|strategy\.risk\.max_intraday_filled_orders|strategy\.closedtrades\.max_runup_percent|array\.percentile_linear_interpolation|strategy\.closedtrades\.entry_bar_index|strategy\.opentrades\.max_runup_percent|strategy\.closedtrades\.exit_bar_index|strategy\.closedtrades\.profit_percent|strategy\.closedtrades\.entry_comment|strategy\.opentrades\.entry_bar_index|strategy\.closedtrades\.exit_comment|strategy\.closedtrades\.max_drawdown|strategy\.opentrades\.profit_percent|ta\.percentile_linear_interpolation|strategy\.closedtrades\.entry_price|strategy\.opentrades\.entry_comment|strategy\.closedtrades\.commission|strategy\.closedtrades\.entry_time|strategy\.closedtrades\.exit_price|strategy\.opentrades\.max_drawdown|strategy\.risk\.max_cons_loss_days|strategy\.closedtrades\.exit_time|strategy\.closedtrades\.max_runup|strategy\.opentrades\.entry_price|strategy\.risk\.max_intraday_loss|strategy\.risk\.max_position_size|table\.cell_set_text_font_family|strategy\.closedtrades\.entry_id|strategy\.opentrades\.commission|strategy\.opentrades\.entry_time|array\.binary_search_rightmost|array\.percentile_nearest_rank|strategy\.closedtrades\.exit_id|strategy\.opentrades\.max_runup|array\.binary_search_leftmost|strategy\.closedtrades\.profit|strategy\.opentrades\.entry_id|strategy\.risk\.allow_entry_in|strategy\.convert_to_account|box\.set_bottom_right_point|label\.set_text_font_family|strategy\.closedtrades\.size|strategy\.convert_to_symbol|strategy\.default_entry_qty|strategy\.opentrades\.profit|strategy\.risk\.max_drawdown|ta\.percentile_nearest_rank|table\.cell_set_text_halign|table\.cell_set_text_valign|request\.security_lower_tf|table\.cell_set_text_color|box\.set_text_font_family|strategy\.opentrades\.size|table\.cell_set_text_size|matrix\.is_antisymmetric|box\.set_top_left_point|chart\.point\.from_index|matrix\.is_antidiagonal|table\.cell_set_bgcolor|table\.cell_set_tooltip|table\.set_border_color|table\.set_border_width|timeframe\.from_seconds|chart\.point\.from_time|line\.set_second_point|math\.round_to_mintick|matrix\.elements_count|request\.currency_rate|ta\.pivot_point_levels|table\.cell_set_height|table\.set_frame_color|table\.set_frame_width|box\.set_border_color|box\.set_border_style|box\.set_border_width|line\.set_first_point|matrix\.is_stochastic|matrix\.is_triangular|table\.cell_set_width|timeframe\.in_seconds|array\.binary_search|box\.set_rightbottom|box\.set_text_halign|box\.set_text_valign|color\.from_gradient|label\.set_textalign|label\.set_textcolor|matrix\.eigenvectors|matrix\.is_symmetric|matrix\.swap_columns|strategy\.cancel_all|table\.cell_set_text|array\.new_linefill|array\.sort_indices|box\.set_text_color|linefill\.get_line1|linefill\.get_line2|linefill\.set_color|matrix\.eigenvalues|matrix\.is_diagonal|matrix\.is_identity|strategy\.close_all|table\.set_position|ticker\.pointfigure|array\.lastindexof|array\.percentrank|array\.standardize|box\.set_text_size|box\.set_text_wrap|label\.set_tooltip|matrix\.remove_col|matrix\.remove_row|request\.dividends|request\.financial|table\.merge_cells|table\.set_bgcolor|ticker\.heikinashi|array\.covariance|array\.new_string|chart\.point\.copy|matrix\.is_binary|matrix\.is_square|matrix\.submatrix|matrix\.swap_rows|matrix\.transpose|request\.earnings|request\.economic|request\.security|ticker\.linebreak|timeframe\.change|array\.new_color|array\.new_float|array\.new_label|array\.new_table|box\.set_bgcolor|box\.set_lefttop|chart\.point\.new|chart\.point\.now|input\.text_area|input\.timeframe|label\.set_color|label\.set_point|label\.set_style|line\.set_extend|linefill\.delete|polyline\.delete|str\.format_time|str\.replace_all|strategy\.cancel|ticker\.standard|alertcondition|array\.includes|array\.new_bool|array\.new_line|array\.variance|box\.get_bottom|box\.set_bottom|box\.set_extend|label\.get_text|label\.set_size|label\.set_text|label\.set_xloc|label\.set_yloc|line\.get_price|line\.set_color|line\.set_style|line\.set_width|math\.todegrees|math\.toradians|matrix\.add_col|matrix\.add_row|matrix\.columns|matrix\.is_zero|matrix\.reshape|matrix\.reverse|request\.quandl|request\.splits|str\.startswith|strategy\.close|strategy\.entry|strategy\.order|syminfo\.prefix|syminfo\.ticker|ta\.correlation|ta\.highestbars|ta\.percentrank|ticker\.inherit|array\.indexof|array\.new_box|array\.new_int|array\.reverse|array\.unshift|box\.get_right|box\.set_right|input\.session|line\.set_xloc|matrix\.concat|matrix\.median|max_bars_back|runtime\.error|str\.substring|strategy\.exit|ta\.crossunder|ta\.lowestbars|ta\.supertrend|ticker\.modify|array\.concat|array\.insert|array\.median|array\.remove|box\.get_left|box\.set_left|box\.set_text|input\.source|input\.string|input\.symbol|label\.delete|label\.set_xy|line\.set_xy1|line\.set_xy2|linefill\.new|map\.contains|matrix\.trace|polyline\.new|request\.seed|str\.contains|str\.endswith|str\.tonumber|str\.tostring|ta\.barssince|ta\.crossover|ta\.pivothigh|ta\.valuewhen|table\.delete|ticker\.renko|array\.clear|array\.every|array\.first|array\.range|array\.shift|array\.slice|array\.stdev|box\.get_top|box\.set_top|input\.color|input\.float|input\.price|label\.get_x|label\.get_y|label\.set_x|label\.set_y|line\.delete|line\.get_x1|line\.get_x2|line\.get_y1|line\.get_y2|line\.set_x1|line\.set_x2|line\.set_y1|line\.set_y2|log\.warning|map\.put_all|math\.random|matrix\.copy|matrix\.diff|matrix\.fill|matrix\.kron|matrix\.mode|matrix\.mult|matrix\.pinv|matrix\.rank|matrix\.rows|matrix\.sort|str\.replace|ta\.pivotlow|ta\.variance|table\.clear|ticker\.kagi|array\.copy|array\.fill|array\.from|array\.join|array\.last|array\.mode|array\.push|array\.size|array\.some|array\.sort|box\.delete|dayofmonth|input\.bool|input\.time|label\.copy|map\.remove|map\.values|math\.floor|math\.log10|math\.round|matrix\.avg|matrix\.col|matrix\.det|matrix\.get|matrix\.inv|matrix\.max|matrix\.min|matrix\.new|matrix\.pow|matrix\.row|matrix\.set|matrix\.sum|plotcandle|str\.format|str\.length|ta\.falling|ta\.highest|table\.cell|ticker\.new|time_close|weekofyear|array\.abs|array\.avg|array\.get|array\.max|array\.min|array\.new|array\.pop|array\.set|array\.sum|color\.new|color\.rgb|dayofweek|indicator|input\.int|label\.new|line\.copy|log\.error|map\.clear|math\.acos|math\.asin|math\.atan|math\.ceil|math\.sign|math\.sqrt|plotarrow|plotshape|str\.lower|str\.match|str\.split|str\.upper|ta\.change|ta\.linreg|ta\.lowest|ta\.median|ta\.rising|table\.new|timestamp|barcolor|box\.copy|line\.new|linefill|log\.info|map\.copy|map\.keys|map\.size|math\.abs|math\.avg|math\.cos|math\.exp|math\.log|math\.max|math\.min|math\.pow|math\.sin|math\.sum|math\.tan|plotchar|strategy|ta\.cross|ta\.range|ta\.stdev|ta\.stoch|bgcolor|box\.new|color\.b|color\.g|color\.r|color\.t|library|map\.get|map\.new|map\.put|plotbar|str\.pos|ta\.alma|ta\.macd|ta\.mode|ta\.swma|ta\.vwap|ta\.vwma|fixnan|minute|second|string|ta\.atr|ta\.bbw|ta\.cci|ta\.cmo|ta\.cog|ta\.cum|ta\.dev|ta\.dmi|ta\.ema|ta\.hma|ta\.kcw|ta\.max|ta\.mfi|ta\.min|ta\.mom|ta\.rma|ta\.roc|ta\.rsi|ta\.sar|ta\.sma|ta\.tsi|ta\.wma|ta\.wpr|alert|color|float|hline|input|label|month|ta\.bb|ta\.kc|ta\.tr|table|bool|fill|hour|line|plot|time|year|box|int|na|nz/,keywords:/continue|for\.\.\.in|export|import|method|switch|break|varip|while|else|type|and|for|not|var|as|by|if|in|or|to/,tokenizer:{root:[[/\/\/\s*(?=@)/,"comment","@comments"],[/\/\/.*(?!@).*/,"comment"],[/\'([^\'\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/\"/,{token:"string",bracket:"@open",next:"@stringDouble"}],[/type\s+[a-zA-Z]\w*/,"entity.name.type"],[/'/,{token:"string",bracket:"@open",next:"@stringSingle"}],[/(@builtinFunctions)(?=\s*\(|\s*<.*>)/,{token:"support.function",next:"@template"}],[/@punctuation/,{token:"punctuation.operator",next:"@property"}],[/(varip|var)\b(\s+)((?!(?:chart\.point|linefill|polyline|matrix|series|simple|string|array|color|const|float|label|table|bool|line|box|int|map|continue|for\.\.\.in|export|import|method|switch|break|varip|while|else|type|and|for|not|var|as|by|if|in|or|to)\b)[\w.\d_$]+)(\[\]|)(\s+)((?!(?:continue|for\.\.\.in|export|import|method|switch|break|varip|while|else|type|and|for|not|var|as|by|if|in|or|to)\b)[\w\d_$]+)/,[{token:"keyword"},{token:"source"},{token:"entity.name.type"},{token:"paren"},{token:"source"},{token:"variable.other"}]],[/\b(?:@builtinTypes)(?=(\s*)[\[|<|(]|(?=\s+(?=[^.=][\w\(]*))|\s*$)/,{token:"support.type",next:"@template"}],[/^(\s*)\b(?!(?:chart\.point|linefill|polyline|matrix|series|simple|string|array|color|const|float|label|table|bool|line|box|int|map|continue|for\.\.\.in|export|import|method|switch|break|varip|while|else|type|and|for|not|var|as|by|if|in|or|to)\b)([\w.\d_$]+)(\[\]|)(\s+)((?!(?:continue|for\.\.\.in|export|import|method|switch|break|varip|while|else|type|and|for|not|var|as|by|if|in|or|to)\b)[\w\d_$]+)(\s+)(\=)/,[{token:"source"},{token:"entity.name.type"},{token:"paren"},{token:"source"},{token:"variable.other"},{token:"source"},{token:"keyword.equals"}]],[/(\((?:\s+))?((?!(?:chart\.point|linefill|polyline|continue|for\.\.\.in|matrix|series|simple|string|export|import|method|switch|array|color|const|float|label|table|break|varip|while|bool|line|else|type|box|int|map|and|for|not|var|as|by|if|in|or|to)\b)\b[\w.\d_$]+(?=[\[\]]*(?:\s+)(?:[\w\d_$]+\s*(?:\,|\))+\s*).+(?:\=\>|\→)))/,"entity.name.type"],[/import(?=\s+@importName)/,{token:"keyword",next:"@import"}],[/import(?=\s+[a-zA-Z\d\$_\-\.\u00a1-\uffff\/]+)/,"keyword"],[/[+-]?\d+\.\d*([eE][\-+]?\d+)?(?!\w+)/,"constant.numeric.float"],[/[+-]?\.\d+([eE][\-+]?\d+)?(?!\w+)/,"constant.numeric.float"],[/([+-]?(\d+))(?!\w+)(?!\w+)/,"constant.numeric.integer"],[/(?:true|false)\b/,"constant.other.boolean"],[/#[0-9a-fA-F]{6,8}\b/,"constant.other.color"],[/\+=|\-=|\*=|\/=|%=|[\/%*+\-]|==|!=|<=|>=|=>|<|>|\?|\:=|\:|\,/,"keyword.operator"],[/\b(?:continue|for\.\.\.in|export|import|method|switch|break|varip|while|else|type|and|for|not|var|as|by|if|in|or|to)\b/,"keyword"],[/^[a-zA-Z_][a-zA-Z_0-9]+(?=\s*\()/,"entity.name.function"],[/[0-9]+\b/,"constant.numeric.integer"],[/=/,"keyword.equals"],[/\b(?:strategy\.commission\.cash_per_contract|strategy\.avg_winning_trade_percent|strategy\.avg_winning_trade|strategy\.avg_losing_trade_percent|strategy\.avg_losing_trade|syminfo\.recommendations_sell_strong|syminfo\.recommendations_buy_strong|strategy\.commission\.cash_per_order|strategy\.margin_liquidation_price|strategy\.max_contracts_held_short|strategy\.max_contracts_held_long|syminfo\.shares_outstanding_float|syminfo\.shares_outstanding_total|barstate\.islastconfirmedhistory|earnings\.future_period_end_time|strategy\.max_contracts_held_all|syminfo\.target_price_estimates|strategy\.max_drawdown_percent|syminfo\.recommendations_total|alert\.freq_once_per_bar_close|label\.style_label_lower_right|label\.style_label_upper_right|chart\.right_visible_bar_time|strategy\.grossprofit_percent|strategy\.position_entry_name|syminfo\.recommendations_date|syminfo\.recommendations_hold|syminfo\.recommendations_sell|syminfo\.target_price_average|label\.style_label_lower_left|label\.style_label_upper_left|chart\.left_visible_bar_time|strategy\.openprofit_percent|strategy\.position_avg_price|syminfo\.recommendations_buy|syminfo\.target_price_median|plot\.style_stepline_diamond|strategy\.commission\.percent|session\.isfirstbar_regular|strategy\.grossloss_percent|strategy\.max_runup_percent|strategy\.netprofit_percent|strategy\.percent_of_equity|session\.islastbar_regular|strategy\.account_currency|syminfo\.target_price_date|syminfo\.target_price_high|dividends\.future_pay_date|strategy\.initial_capital|syminfo\.target_price_low|dividends\.future_ex_date|label\.style_label_center|label\.style_text_outline|label\.style_triangledown|strategy\.direction\.short|earnings\.future_revenue|alert\.freq_once_per_bar|dividends\.future_amount|label\.style_label_right|strategy\.direction\.long|strategy\.position_size|barmerge\.lookahead_off|label\.style_label_down|label\.style_label_left|label\.style_triangleup|line\.style_arrow_right|position\.bottom_center|position\.middle_center|strategy\.direction\.all|strategy\.closedtrades|strategy\.max_drawdown|barmerge\.lookahead_on|earnings\.standardized|font\.family_monospace|label\.style_arrowdown|line\.style_arrow_both|line\.style_arrow_left|plot\.style_steplinebr|position\.bottom_right|position\.middle_right|barstate\.isconfirmed|earnings\.future_time|session\.ispostmarket|strategy\.grossprofit|syminfo\.basecurrency|syminfo\.shareholders|timeframe\.isintraday|timeframe\.multiplier|adjustment\.dividends|label\.style_label_up|plot\.style_histogram|position\.bottom_left|position\.middle_left|barstate\.isrealtime|chart\.is_heikinashi|earnings\.future_eps|session\.ispremarket|strategy\.eventrades|strategy\.losstrades|strategy\.openprofit|strategy\.opentrades\.capital_held|strategy\.opentrades|syminfo\.description|timeframe\.isminutes|timeframe\.ismonthly|timeframe\.isseconds|dayofweek\.wednesday|display\.data_window|display\.price_scale|display\.status_line|font\.family_default|label\.style_arrowup|label\.style_diamond|plot\.style_stepline|position\.top_center|strategy\.oca\.cancel|strategy\.oca\.reduce|barstate\.ishistory|chart\.is_linebreak|session\.isfirstbar|strategy\.grossloss|strategy\.max_runup|strategy\.netprofit|strategy\.wintrades|syminfo\.pointvalue|syminfo\.pricescale|syminfo\.volumetype|timeframe\.isweekly|dayofweek\.saturday|dayofweek\.thursday|hline\.style_dashed|hline\.style_dotted|label\.style_circle|label\.style_square|label\.style_xcross|plot\.style_circles|plot\.style_columns|position\.top_right|shape\.triangledown|splits\.denominator|chart\.is_standard|session\.islastbar|syminfo\.employees|timeframe\.isdaily|adjustment\.splits|barmerge\.gaps_off|dayofweek\.tuesday|earnings\.estimate|hline\.style_solid|label\.style_cross|line\.style_dashed|line\.style_dotted|location\.abovebar|location\.absolute|location\.belowbar|plot\.style_areabr|plot\.style_linebr|position\.top_left|strategy\.oca\.none|text\.align_bottom|text\.align_center|barstate\.isfirst|session\.ismarket|syminfo\.currency|syminfo\.industry|syminfo\.tickerid|syminfo\.timezone|timeframe\.period|barmerge\.gaps_on|dayofweek\.friday|dayofweek\.monday|dayofweek\.sunday|label\.style_flag|label\.style_none|line\.style_solid|order\.descending|plot\.style_cross|session\.extended|shape\.triangleup|splits\.numerator|text\.align_right|barstate\.islast|strategy\.equity|syminfo\.country|syminfo\.minmove|syminfo\.mintick|syminfo\.session|time_tradingday|timeframe\.isdwm|adjustment\.none|dividends\.gross|earnings\.actual|location\.bottom|order\.ascending|plot\.style_area|plot\.style_line|session\.regular|shape\.arrowdown|shape\.labeldown|text\.align_left|barstate\.isnew|chart\.bg_color|chart\.fg_color|chart\.is_range|chart\.is_renko|last_bar_index|strategy\.short|syminfo\.prefix|syminfo\.sector|syminfo\.ticker|alert\.freq_all|format\.inherit|format\.mintick|format\.percent|strategy\.fixed|text\.align_top|text\.wrap_auto|text\.wrap_none|xloc\.bar_index|chart\.is_kagi|last_bar_time|strategy\.long|color\.fuchsia|currency\.NONE|currency\.USDT|dividends\.net|format\.volume|shape\.arrowup|shape\.diamond|shape\.labelup|strategy\.cash|xloc\.bar_time|yloc\.abovebar|yloc\.belowbar|chart\.is_pnf|linefill\.all|polyline\.all|syminfo\.root|syminfo\.type|color\.maroon|color\.orange|color\.purple|color\.silver|color\.yellow|currency\.AUD|currency\.BTC|currency\.CAD|currency\.CHF|currency\.ETH|currency\.EUR|currency\.GBP|currency\.HKD|currency\.INR|currency\.JPY|currency\.KRW|currency\.MYR|currency\.NOK|currency\.NZD|currency\.RUB|currency\.SEK|currency\.SGD|currency\.TRY|currency\.USD|currency\.ZAR|display\.none|display\.pane|extend\.right|format\.price|location\.top|shape\.circle|shape\.square|shape\.xcross|color\.black|color\.green|color\.olive|color\.white|display\.all|extend\.both|extend\.left|extend\.none|scale\.right|shape\.cross|size\.normal|dayofmonth|ta\.accdist|time_close|weekofyear|color\.aqua|color\.blue|color\.gray|color\.lime|color\.navy|color\.teal|scale\.left|scale\.none|shape\.flag|size\.large|size\.small|yloc\.price|bar_index|dayofweek|label\.all|table\.all|color\.red|math\.rphi|size\.auto|size\.huge|size\.tiny|line\.all|math\.phi|box\.all|ta\.vwap|ta\.wvad|timenow|math\.pi|minute|second|ta\.iii|ta\.nvi|ta\.obv|ta\.pvi|ta\.pvt|ta\.wad|volume|math\.e|close|hlcc4|month|ohlc4|ta\.tr|false|high|hlc3|hour|open|time|year|true|hl2|low|na)\b(?!\s*=\s*\w+)/,"support.variable"],[/[(|)|\[|\]]/,"paren"],[/[a-zA-Z_][a-zA-Z_0-9]*(?=\s*\()/,{token:"entity.name.method"}],[/\w+\b/,"variable.other"]],comments:[[/@[A-Za-z]+(\s*=\s*)?$/,{token:"comment.annotation",next:"@pop"}],[/@[A-Za-z]+(\s*=\s*)?/,{token:"comment.annotation"}],[/(?!\s*@[A-Za-z]+).+$/,{token:"comment",next:"@pop"}]],stringDouble:[[/[^\\\"]+/,"string"],[/\\./,"string.invalid"],[/\"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],stringSingle:[[/[^\\']+/,"string"],[/\\./,"string.invalid"],[/'/,{token:"string",bracket:"@close",next:"@pop"}]],template:[[/(@builtinTypes)/,{token:"support.type"}],[/(\((?:\s+))?((?!(?:chart\.point|linefill|polyline|continue|for\.\.\.in|matrix|series|simple|string|export|import|method|switch|array|color|const|float|label|table|break|varip|while|bool|line|else|type|box|int|map|and|for|not|var|as|by|if|in|or|to)\b)\b[\w.\d_$]+(?=[\[\]]*(?:\s+)(?:[\w\d_$]+\s*(?:\,|\))+\s*).+(?:\=\>|\→)))/,"entity.name.type"],[/\(|\)|\[|\]|\=|\>/,{token:"paren",next:"@pop"}],[/(\,)(\s+)/,["keyword.operator","source"]],[/(\,)/,{token:"keyword.operator"}],[/([\w.\d$]+)/,{token:"entity.name.type"}],[/(<|>)/,{token:"paren"}],[/\s(?=\w)|$/,{token:"source",next:"@pop"}]],property:[[/@punctuation/,{token:"punctuation.operator"}],[/(@builtinTypes)(?=\s*[(])/,{token:"support.method",next:"@pop"}],[/[a-zA-Z_][a-zA-Z_0-9]+(?=\s*\()/,{token:"entity.name.method",next:"@pop"}],[/[a-zA-Z0-9_]+/,{token:"variable.other.property",next:"@pop"}],[/@empty/,{token:"source",next:"@pop"}]],import:[[/\s+/,{token:"source"}],[/(@importName)(\s+)(as\b)(\s+)(@importAlias)/,[{token:"entity.name.module"},{token:"source"},{token:"keyword"},{token:"source"},{token:"entity.name.module.name",next:"@pop"}]],[/@importName/,{token:"entity.name.module",next:"@pop"}]]},builtinTypes:/chart\.point|linefill|polyline|matrix|series|simple|string|array|color|const|float|label|table|bool|line|box|int|map/,punctuation:/[.](?![.])/,importName:/[a-zA-Z\d\$_\-\.\u00a1-\uffff\/]+/,importAlias:/[a-zA-Z\d\_\u00a1\uffff\/]+/,empty:/^$/};var Ct;(function(a){a[a.None=0]="None",a[a.Indent=1]="Indent",a[a.IndentOutdent=2]="IndentOutdent",a[a.Outdent=3]="Outdent"})(Ct||(Ct={}));const on={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["(",")"],["[","]"]],folding:{markers:{start:/(\/\/#region)|(\/\/.*{($|\s))/,end:/(\/\/#endregion)|(\/\/.*}($|\s))/}},autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],onEnterRules:[{beforeText:/\)\s*=>\s*$/,action:{indentAction:Ct.Indent}},{beforeText:/if\s+.*\s*$/,action:{indentAction:Ct.Indent}},{beforeText:/else/,action:{indentAction:Ct.Indent}},{beforeText:/for\s+\S+\s*=\s*\S+\s+to\s+\S+(?:\s+by\s+\S+)?\s*$/,action:{indentAction:Ct.Indent}},{beforeText:/for\s+(?:\[\S+\s+\S+]|\S+)\s+in\s+\S+\s*$/,action:{indentAction:Ct.Indent}},{beforeText:/switch\s+.*\s*$/,action:{indentAction:Ct.Indent}},{beforeText:/while\s+.*\s*$/,action:{indentAction:Ct.Indent}},{beforeText:/type\s+\w+/,action:{indentAction:Ct.Indent}},{beforeText:/^\s*$/,action:{indentAction:Ct.Outdent}}]},I={"color-white":"#ffffff","color-black":"#000000","color-transparent":"#00000000","color-cold-gray-50":"#F8F9FD","color-cold-gray-100":"#F0F3FA","color-cold-gray-150":"#E0E3EB","color-cold-gray-200":"#D1D4DC","color-cold-gray-250":"#C1C4CD","color-cold-gray-300":"#B2B5BE","color-cold-gray-350":"#A3A6AF","color-cold-gray-400":"#9598A1","color-cold-gray-450":"#868993","color-cold-gray-500":"#787B86","color-cold-gray-550":"#6A6D78","color-cold-gray-600":"#5D606B","color-cold-gray-650":"#50535E","color-cold-gray-700":"#434651","color-cold-gray-750":"#363A45","color-cold-gray-800":"#2A2E39","color-cold-gray-850":"#1E222D","color-cold-gray-900":"#131722","color-cold-gray-950":"#0C0E15","color-ripe-red-50":"#FFEBEC","color-ripe-red-100":"#FCCBCD","color-ripe-red-200":"#FAA1A4","color-ripe-red-300":"#F77C80","color-ripe-red-400":"#F7525F","color-ripe-red-500":"#F23645","color-ripe-red-600":"#CC2F3C","color-ripe-red-700":"#B22833","color-ripe-red-800":"#991F29","color-ripe-red-900":"#801922","color-ripe-red-a100":"#FF8080","color-ripe-red-a200":"#FF5252","color-ripe-red-a400":"#FF3333","color-ripe-red-a600":"#CC2929","color-ripe-red-a700":"#802028","color-ripe-red-a800":"#4D191D","color-ripe-red-a900":"#331F20","color-tan-orange-50":"#FFF3E0","color-tan-orange-100":"#FFE0B2","color-tan-orange-200":"#FFCC80","color-tan-orange-300":"#ffb74d","color-tan-orange-400":"#FFA726","color-tan-orange-500":"#FF9800","color-tan-orange-600":"#FB8C00","color-tan-orange-700":"#F57C00","color-tan-orange-800":"#EF6C00","color-tan-orange-900":"#e65100","color-tan-orange-a200":"#ffab40","color-tan-orange-a400":"#FF9100","color-tan-orange-a600":"#CC7014","color-tan-orange-a700":"#8C541C","color-tan-orange-a800":"#593A1B","color-tan-orange-a900":"#33261A","color-iguana-green-100":"#C8E6C9","color-iguana-green-200":"#A5D6A7","color-iguana-green-300":"#81c784","color-iguana-green-400":"#66BB6A","color-iguana-green-500":"#4caf50","color-iguana-green-600":"#43a047","color-iguana-green-700":"#388e3c","color-iguana-green-800":"#2E7D32","color-iguana-green-900":"#1B5E20","color-iguana-green-a700":"#00c853","color-banana-yellow-100":"#FFF9C4","color-banana-yellow-200":"#FFF59D","color-banana-yellow-300":"#FFF176","color-banana-yellow-400":"#ffee58","color-banana-yellow-500":"#ffeb3b","color-banana-yellow-600":"#fdd835","color-banana-yellow-700":"#fbc02d","color-banana-yellow-800":"#f9a825","color-banana-yellow-900":"#F57F17","color-banana-yellow-a400":"#ffea00","color-banana-yellow-a700":"#EEDA01","color-tv-blue-50":"#E3EFFD","color-tv-blue-100":"#BBD9FB","color-tv-blue-200":"#90BFF9","color-tv-blue-300":"#5B9CF6","color-tv-blue-400":"#3179F5","color-tv-blue-500":"#2962FF","color-tv-blue-600":"#1E53E5","color-tv-blue-700":"#1848CC","color-tv-blue-800":"#143EB3","color-tv-blue-900":"#0C3299","color-tv-blue-a100":"#82b1ff","color-tv-blue-a200":"#448aff","color-tv-blue-a400":"#2979ff","color-tv-blue-a600":"#2962FF","color-tv-blue-a700":"#143A87","color-tv-blue-a800":"#142E61","color-tv-blue-a900":"#132042","color-deep-blue-50":"#EDE7F6","color-deep-blue-100":"#D1C4E9","color-deep-blue-200":"#B39DDB","color-deep-blue-300":"#9575cd","color-deep-blue-400":"#7e57c2","color-deep-blue-500":"#673ab7","color-deep-blue-700":"#512da8","color-deep-blue-800":"#4527A0","color-deep-blue-900":"#311B92","color-deep-blue-a100":"#b388ff","color-deep-blue-a200":"#7C4DFF","color-deep-blue-a400":"#651FFF","color-deep-blue-a700":"#6200EA","color-minty-green-50":"#DAF2EE","color-minty-green-100":"#ACE5DC","color-minty-green-200":"#70CCBD","color-minty-green-300":"#42BDA8","color-minty-green-400":"#22AB94","color-minty-green-500":"#089981","color-minty-green-600":"#06806B","color-minty-green-700":"#056656","color-minty-green-800":"#004D40","color-minty-green-900":"#00332A","color-minty-green-a400":"#2BD9BC","color-minty-green-a600":"#24B29B","color-minty-green-a700":"#1B7667","color-minty-green-a800":"#10443B","color-minty-green-a900":"#082621","color-grapes-purple-50":"#F3E5F5","color-grapes-purple-100":"#E1BEE7","color-grapes-purple-200":"#CE93D8","color-grapes-purple-300":"#ba68c8","color-grapes-purple-400":"#ab47bc","color-grapes-purple-500":"#9c27b0","color-grapes-purple-600":"#8e24aa","color-grapes-purple-700":"#7b1fa2","color-grapes-purple-800":"#6A1B9A","color-grapes-purple-900":"#4A148C","color-grapes-purple-a100":"#EA80FC","color-grapes-purple-a200":"#E040FB","color-grapes-purple-a400":"#D500F9","color-grapes-purple-a700":"#aa00ff","color-berry-pink-100":"#F8BBD0","color-berry-pink-200":"#f48fb1","color-berry-pink-300":"#f06292","color-berry-pink-400":"#ec407a","color-berry-pink-500":"#e91e63","color-berry-pink-600":"#D81B60","color-berry-pink-700":"#C2185B","color-berry-pink-800":"#AD1457","color-berry-pink-900":"#880E4F","color-berry-pink-a100":"#ff80ab","color-berry-pink-a200":"#ff4081","color-berry-pink-a400":"#f50057","color-sky-blue-100":"#B2EBF2","color-sky-blue-200":"#80DEEA","color-sky-blue-300":"#4dd0e1","color-sky-blue-400":"#26c6da","color-sky-blue-500":"#00bcd4","color-sky-blue-600":"#00acc1","color-sky-blue-700":"#0097A7","color-sky-blue-800":"#00838F","color-sky-blue-900":"#006064","color-sky-blue-a400":"#00e5ff","color-sky-blue-a700":"#00B8D4","color-deep-blue-600":"#5E35B1","color-forest-green-50":"#DAF2E6","color-forest-green-100":"#ACE5C9","color-forest-green-200":"#70CC9E","color-forest-green-300":"#42BD7F","color-forest-green-400":"#22AB67","color-forest-green-500":"#089950","color-forest-green-600":"#068043","color-forest-green-700":"#056636","color-forest-green-800":"#004D27","color-forest-green-900":"#1A3326","color-facebook":"#1877F2","color-deep-facebook":"#1564CA","color-twitter":"#1DA1F2","color-deep-twitter":"#188CD3","color-youtube":"#FF0000","color-linkedin":"#007BB5","color-seeking-alpha-brand":"#ff7200"};function Rt(a,n=1){return a+Math.round(255*Math.min(Math.max(n,0),1)).toString(16).toUpperCase().padStart(2,"0")}const ln={base:"vs",inherit:!0,rules:[{token:"comment",foreground:I["color-cold-gray-400"]},{token:"comment.annotation",fontStyle:"bold"},{token:"text",foreground:I["color-cold-gray-900"]},{token:"string",foreground:I["color-iguana-green-700"]},{token:"constant.numeric",foreground:I["color-banana-yellow-900"]},{token:"constant.language",foreground:I["color-ripe-red-a600"]},{token:"constant.other.color",foreground:I["color-ripe-red-a600"]},{token:"constant.other",foreground:I["color-ripe-red-a600"]},{token:"support.variable",foreground:I["color-ripe-red-a600"]},{token:"support.function",foreground:I["color-tv-blue-a600"]},{token:"support.type",foreground:I["color-minty-green-400"],fontStyle:"bold"},{token:"entity.name.type",foreground:I["color-minty-green-400"],fontStyle:"bold"},{token:"support.method",foreground:I["color-tv-blue-a600"]},{token:"keyword.equals",foreground:I["color-minty-green-400"]},{token:"keyword.operator",foreground:I["color-minty-green-400"]},{token:"keyword.other",foreground:I["color-minty-green-400"]},{token:"keyword",foreground:I["color-minty-green-400"]},{token:"variable.other",foreground:I["color-cold-gray-800"]},{token:"variable.other.property",foreground:I["color-cold-gray-800"]},{token:"paren",foreground:I["color-black"]},{token:"entity.name.function",foreground:I["color-tv-blue-900"]},{token:"entity.name.method",foreground:I["color-tv-blue-900"]},{token:"meta.function-call",foreground:I["color-grapes-purple-600"]},{token:"entity.name.module.name",foreground:I["color-grapes-purple-600"]},{token:"entity.name.module",foreground:I["color-tv-blue-a600"]},{token:"",background:I["color-white"]}],colors:{"editor.foreground":I["color-cold-gray-900"],"editor.background":"#00000000","editorLineNumber.foreground":I["color-cold-gray-400"],"editorLineNumber.activeForeground":I["color-cold-gray-700"],"editorHoverWidget.background":I["color-white"],"editorHoverWidget.statusBarBackground":I["color-cold-gray-150"],"editorHoverWidget.foreground":I["color-cold-gray-900"],"editorWidget.background":I["color-white"],"editorWidget.foreground":I["color-cold-gray-900"],"editorGutter.background":"#00000000","editor.foldBackground":Rt(I["color-cold-gray-200"],.5),"editor.lineHighlightBackground":I["color-tv-blue-50"],"editor.lineHighlightBorder":I["color-tv-blue-50"],"editor.rangeHighlightBackground":I["color-tv-blue-a800"],"editorBracketMatch.background":I["color-cold-gray-150"],"editor.selectionBackground":I["color-tv-blue-100"],"editor.selectionHighlightBackground":I["color-tv-blue-50"],"editor.findMatchBackground":I["color-tan-orange-100"],"editor.findMatchHighlightBackground":I["color-tan-orange-100"],"editor.findMatchBorder":I["color-tan-orange-500"],"list.foreground":I["color-cold-gray-900"],"list.hoverForeground":I["color-cold-gray-900"],"list.activeSelectionBackground":I["color-tv-blue-500"],"list.hoverBackground":I["color-tv-blue-50"],"list.focusHighlightForeground":I["color-tv-blue-100"],"list.inactiveSelectionBackground":I["color-tv-blue-500"],"keybindingLabel.background":I["color-white"],"keybindingLabel.foreground":I["color-cold-gray-900"],"keybindingLabel.border":I["color-cold-gray-150"],"input.foreground":I["color-cold-gray-900"],"textLink.foreground":I["color-tv-blue-500"],"textLink.activeForeground":I["color-tv-blue-600"],"peekViewEditor.matchHighlightBackground":I["color-tan-orange-100"],"peekViewResult.lineForeground":I["color-cold-gray-900"],"editorMarkerNavigationWarning.background":I["color-banana-yellow-800"],"inputValidation.warningBackground":I["color-banana-yellow-800"],"diffEditor.insertedTextBackground":Rt(I["color-forest-green-500"],.3),"diffEditor.insertedLineBackground":Rt(I["color-forest-green-500"],.15),"diffEditor.removedTextBackground":Rt(I["color-ripe-red-500"],.3),"diffEditor.removedLineBackground":Rt(I["color-ripe-red-500"],.15),"editorInlayHint.background":I["color-cold-gray-150"],"editorInlayHint.foreground":I["color-cold-gray-550"],"editorError.foreground":I["color-ripe-red-500"],"editorWarning.foreground":I["color-tan-orange-500"]}},cn={base:"vs-dark",inherit:!0,rules:[{token:"comment",foreground:I["color-cold-gray-500"]},{token:"comment.annotation",fontStyle:"bold"},{token:"text",foreground:I["color-white"]},{token:"string",foreground:I["color-iguana-green-700"]},{token:"constant.numeric",foreground:I["color-banana-yellow-900"]},{token:"constant.language",foreground:I["color-ripe-red-300"]},{token:"constant.other.color",foreground:I["color-ripe-red-300"]},{token:"constant.other",foreground:I["color-ripe-red-300"]},{token:"support.variable",foreground:I["color-ripe-red-300"]},{token:"support.function",foreground:I["color-tv-blue-300"]},{token:"support.method",foreground:I["color-tv-blue-300"]},{token:"support.type",foreground:I["color-minty-green-300"],fontStyle:"bold"},{token:"entity.name.type",foreground:I["color-minty-green-300"],fontStyle:"bold"},{token:"keyword.equals",foreground:I["color-minty-green-300"]},{token:"keyword.operator",foreground:I["color-minty-green-300"]},{token:"keyword.other",foreground:I["color-minty-green-300"]},{token:"keyword",foreground:I["color-minty-green-300"]},{token:"variable.other",foreground:I["color-cold-gray-200"]},{token:"variable.other.property",foreground:I["color-cold-gray-200"]},{token:"paren",foreground:I["color-white"]},{token:"entity.name.function",foreground:I["color-tv-blue-400"]},{token:"entity.name.method",foreground:I["color-tv-blue-400"]},{token:"meta.function-call",foreground:I["color-grapes-purple-300"]},{token:"entity.name.module.name",foreground:I["color-grapes-purple-300"]},{token:"entity.name.module",foreground:I["color-tv-blue-300"]},{token:"",background:I["color-cold-gray-900"]}],colors:{"editor.foreground":I["color-white"],"editor.background":I["color-cold-gray-900"],"editorLineNumber.foreground":I["color-cold-gray-500"],"editorLineNumber.activeForeground":I["color-cold-gray-300"],"editorWidget.background":I["color-cold-gray-850"],"editorHoverWidget.background":I["color-cold-gray-850"],"editorHoverWidget.foreground":I["color-cold-gray-300"],"editorHoverWidget.statusBarBackground":I["color-cold-gray-900"],"editorWidget.foreground":I["color-cold-gray-300"],"editorGutter.background":I["color-cold-gray-900"],"editor.foldBackground":Rt(I["color-cold-gray-700"],.5),"editor.lineHighlightBackground":I["color-tv-blue-a900"],"editor.lineHighlightBorder":I["color-tv-blue-a900"],"editor.rangeHighlightBackground":I["color-tv-blue-a800"],"editorBracketMatch.background":I["color-cold-gray-750"],"editor.selectionBackground":I["color-tv-blue-a800"],"editor.selectionHighlightBackground":I["color-cold-gray-800"],"list.foreground":I["color-cold-gray-350"],"list.hoverForeground":I["color-cold-gray-350"],"list.activeSelectionBackground":I["color-tv-blue-500"],"list.hoverBackground":I["color-tv-blue-900"],"list.focusHighlightForeground":I["color-tv-blue-300"],"list.inactiveSelectionBackground":I["color-tv-blue-500"],"keybindingLabel.background":I["color-cold-gray-800"],"keybindingLabel.foreground":I["color-cold-gray-300"],"keybindingLabel.border":I["color-cold-gray-700"],"input.foreground":I["color-cold-gray-350"],"textLink.foreground":I["color-tv-blue-500"],"textLink.activeForeground":I["color-tv-blue-600"],"peekViewEditor.matchHighlightBackground":I["color-tan-orange-a800"],"peekViewResult.lineForeground":I["color-cold-gray-350"],"diffEditor.insertedTextBackground":Rt(I["color-iguana-green-a700"],.3),"diffEditor.insertedLineBackground":Rt(I["color-iguana-green-a700"],.15),"diffEditor.removedTextBackground":Rt(I["color-ripe-red-a400"],.3),"diffEditor.removedLineBackground":Rt(I["color-ripe-red-a400"],.15),"editorInlayHint.background":I["color-cold-gray-800"],"editorInlayHint.foreground":I["color-cold-gray-400"],"editorError.foreground":I["color-ripe-red-500"],"editorWarning.foreground":I["color-tan-orange-700"]}},Nd=/(\\(?:[\\'"]))|(\\$)|("|$)|($)/g,Ld=/(\\(?:[\\'"]))|(\\$)|('|$)|($)/g,oo={"color.aqua":"#00BCD4","color.black":"#363A45","color.blue":"#2196F3","color.fuchsia":"#E040FB","color.gray":"#787B86","color.green":"#4CAF50","color.lime":"#00E676","color.maroon":"#880E4F","color.navy":"#311B92","color.olive":"#808000","color.orange":"#FF9800","color.purple":"#9C27B0","color.red":"#FF5252","color.silver":"#B2B5BE","color.teal":"#00897B","color.white":"#FFFFFF","color.yellow":"#FFEB3B"};class Pd{constructor(n){Object.defineProperty(this,"_formatter",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_isMac",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_getSignatureParams",{enumerable:!0,configurable:!0,writable:!0,value:(s=[],o)=>{const l=new Map,c=o.indexOf("(");for(let u=c+1,f=c;u<o.length;u++)o[u]!==","&&o[u]!==")"||(f++,l.set(o.slice(f,u),f),f=u+1);return s.map(({name:u="",displayType:f,desc:x})=>{const g=[],h=l.get(u),D=h+u.length;return g.push(this._formatter.paragraph(this._formatter.bold(u),this._formatter.italic(f||""))),x&&g.push(Array.isArray(x)?x.join(this._formatter.lineBreak):x),{label:[h,D],documentation:{value:g.join(this._formatter.lineBreak)}}})}}),this._formatter=ye,this._isMac=/(Mac|iPhone|iPod|iPad)/i.test(n)}getSignatureHelpValues(n,s){const o=this._getFuncItems(n);if(!(o!=null&&o.length))return null;const l=this._getSequentialSignatures(n,o),c=this._getActiveIndex(o,s);return{signatures:l,...c}}_getActiveIndex(n,s=[]){let o=0,l=-1;s.some(u=>!!u)||(l=s.length-1);const c=s.pop();if(c)for(const[u,f]of n.entries()){const{args:x}=f;if(x&&x.length){const g=x.findIndex(h=>h.name===c);if(g!=-1){l=g,o=u;break}}}return{activeParameter:l,activeSignature:o}}_getFuncItems(n){return lt.functions.get(n)||qt.userFuncs.get(n)||qt.methodFuncs.get(n)}_getSequentialSignatures(n,s){return s.map(o=>{const l=this._getSignatureLabel(n,o);return{label:l,documentation:this._getFormattedSignatureDocumentation(o),parameters:this._getSignatureParams(o.args,l)}})}_getSignatureLabel(n,s,o=!1){const l=[n];return o&&l.push("<type>"),s.args&&(l.push("("),l.push(s.args.map(({name:c})=>c).join(", ")),l.push(")")),l.join("")}_getFormattedSignatureDocumentation(n){const{desc:s}=n,o=[];s&&o.push(Array.isArray(s)?s.join(this._formatter.lineBreak):s);const l=`${this._formatter.code(this._isMac?"⌘":"Ctrl")} +
134
134
  ${this._formatter.code("Shift")} +
135
- ${this._formatter.code("Space")}`;return o.push(this._formatter.lineBreak),o.push(this._formatter.italic(`${l} ${ve.toTriggerParameterHints}`)),{value:this._formatter.paragraph(...o)}}}const Md=new Pd(window.navigator.userAgent);class Od{constructor(){Object.defineProperty(this,"_colors",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._colors=oo}getDocumentColors(n){const s=[];return n.forEach(o=>{const{range:l}=o;let{matches:c}=o;c=c||[];const u=c[0]||"";let f=null;this._isHexToken(u)?f=this._hexToColor(u):this._isRgbColor(u)?f=this._rgbToColor(u):this._colors[u]?f=this._hexToColor(this._colors[u]):this._isColorExpression(u)&&c[1]&&c[6]&&(f=this._extractNewExpression(c[1],Number(c[6]))),f&&s.push({color:f,range:l})}),s}get _defultColorsRegStr(){return Object.keys(oo).reduce((n,s)=>`${n}|${s}`,"")}get colorMatchesRegStr(){const n=`#[0-9a-fA-F]{6,8}|(\\b(color.rgb\\s*\\((\\s*\\d+\\s*,\\s*){2}(\\s*\\d+\\s*,{0,1}){1,2}\\s*\\)${this._defultColorsRegStr}))`;return`color.new\\s*\\(\\s*(${n})\\s*,\\s*(\\d+)\\s*\\)|${n}`}getDocumentColorPresentations(n,{color:s,range:o}){const l=n.getValueInRange(o);if(this._isHexToken(l)||this._colors[l])return[{label:this._colorRgbRepresentation(s)},{label:this._colorHexRepresentation(s)}];if(this._isColorExpression(l)||this._isRgbColor(l)){const c=this._isColorExpression(l)?this._colorNewRepresentation(s):this._colorRgbRepresentation(s);if(!c)return[];const u=this._colorHexRepresentation(s);return[{label:c,textEdit:{text:c,range:o}},{label:u,textEdit:{text:u,range:o}}]}return null}_hexFromNumber(n){const s=this._denormalize(n).toString(16);return s.length===1?`0${s}`:s}_normalize(n){return n/255}_denormalize(n){return Math.round(255*n)}_normalizeAlpha(n){return(100-n)/100}_denormalizeAlpha(n){return 100-Math.round(100*n)}_extractNewExpression(n,s){let o=null;return this._isHexToken(n)?o=this._hexToColor(n):this._isRgbColor(n)?o=this._rgbToColor(n):this._colors[n]&&(o=this._hexToColor(this._colors[n])),o&&!Number.isNaN(s)?{...o,alpha:this._normalizeAlpha(s)}:null}_colorHexRepresentation(n){const s=this._hexFromNumber(n.red),o=this._hexFromNumber(n.green),l=this._hexFromNumber(n.blue),c=this._hexFromNumber(n.alpha);return`#${s}${o}${l}${n.alpha===1?"":c}`}_colorRgbRepresentation(n){const s=this._denormalize(n.red),o=this._denormalize(n.green),l=this._denormalize(n.blue),c=this._denormalizeAlpha(n.alpha),u=[s,o,l];return c>0&&u.push(c),`color.rgb(${u.join(", ")})`}_colorNewRepresentation(n){const s={...n,alpha:1};return`color.new(${this._colorHexRepresentation(s)}, ${this._denormalizeAlpha(n.alpha)})`}_hexToColor(n){const s=(n=this._isHexToken(n)?n.slice(1):n).length===3||n.length===4,o=s?`${n.slice(0,1)}${n.slice(0,1)}`:n.slice(0,2),l=s?`${n.slice(1,2)}${n.slice(1,2)}`:n.slice(2,4),c=s?`${n.slice(2,3)}${n.slice(2,3)}`:n.slice(4,6),u=(s?`${n.slice(3,4)}${n.slice(3,4)}`:n.slice(6,8))||"ff";return{red:this._normalize(parseInt(o,16)),green:this._normalize(parseInt(l,16)),blue:this._normalize(parseInt(c,16)),alpha:this._normalize(parseInt(u,16))}}_rgbToColor(n){const s=n.replace(/[^\d,]/g,"").split(","),o=this._normalize(Number(s[0])),l=this._normalize(Number(s[1])),c=this._normalize(Number(s[2])),u=this._normalizeAlpha(Number(s[3]))||1;return isNaN(o)||isNaN(l)||isNaN(c)?null:{red:o,green:l,blue:c,alpha:u}}_isHexToken(n){return n.charAt(0)==="#"}_isRgbColor(n){return n.startsWith("color.rgb")}_isColorExpression(n){return n.startsWith("color.new")}}const pn=new Od;q.VType=void 0,function(a){a.BOOL="bool",a.INT="int",a.FLOAT="float",a.ARRAY="array",a.BOX="box",a.CHART_POINT="chart.point",a.COLOR="color",a.CONST="const",a.LABEL="label",a.LINE="line",a.LINEFILL="linefill",a.MAP="map",a.MATRIX="matrix",a.POLYLINE="polyline",a.SERIES="series",a.SIMPLE="simple",a.STRING="string",a.TABLE="table",a.UNDETERMINED="undetermined type",a.INPUT="input",a.NA="na",a.VOID="void"}(q.VType||(q.VType={})),q.VRuleType=void 0,function(a){a.FlowStmt="FlowStmt",a.DeclareAssign="DeclareAssign",a.VarBlockStmt="VarBlockStmt",a.VarSingle="VarSingle",a.VarMultiple="VarMultiple",a.ParenthesizedExpression="ParenthesizedExpression",a.AdditiveExpression="AdditiveExpression",a.RelationalExpression="RelationalExpression",a.EqualityExpression="EqualityExpression",a.TernaryExpression="TernaryExpression",a.UnaryExpression="UnaryExpression",a.NotExpression="NotExpression",a.MemberIndexExpression="MemberIndexExpression",a.MethodExpression="MethodExpression",a.LogicalAndExpression="LogicalAndExpression",a.LogicalOrExpression="LogicalOrExpression",a.MultiplicativeExpression="MultiplicativeExpression",a.Brackethesized="Brackethesized",a.IfStatement="IfStatement",a.ForToStatement="ForToStatement",a.ForInStatement="ForInStatement",a.SwitchStatement="SwitchStatement",a.CaseClause="CaseClause",a.DefaultCaluse="DefaultCaluse",a.WhileStatement="WhileStatement",a.ImportElement="ImportElement",a.Literal="Literal",a.ArrowFunction="ArrowFunction",a.ArrowMethod="ArrowMethod",a.TypeStatement="TypeStatement",a.Name="Name",a.AgainAssign="AgainAssign"}(q.VRuleType||(q.VRuleType={})),q.VAdjustment=void 0,function(a){a.dividends="dividends",a.none="none",a.splits="splits"}(q.VAdjustment||(q.VAdjustment={})),q.VAlert=void 0,function(a){a.freqAll="freq_all",a.freqOncePerBar="freq_once_per_bar",a.freqOncePerBarClose="freq_once_per_bar_close"}(q.VAlert||(q.VAlert={})),q.VBarmergeGaps=void 0,function(a){a.gapsOff="gaps_off",a.gapsOn="gaps_on",a.lookaheadOff="lookahead_off",a.lookaheadOn="lookahead_on"}(q.VBarmergeGaps||(q.VBarmergeGaps={})),q.VPlotDisplay=void 0,function(a){a.all="all",a.dataWindow="data_window",a.none="none",a.pane="pane",a.priceScale="price_scale",a.statusLine="status_line"}(q.VPlotDisplay||(q.VPlotDisplay={})),q.VExtend=void 0,function(a){a.both="both",a.left="left",a.none="none",a.right="right"}(q.VExtend||(q.VExtend={})),q.VFormatType=void 0,function(a){a.inherit="inherit",a.mintick="mintick",a.percent="percent",a.price="price",a.volume="volume"}(q.VFormatType||(q.VFormatType={})),q.VHlineStyle=void 0,function(a){a.styleDashed="style_dashed",a.styleDotted="style_dotted",a.styleSolid="style_solid"}(q.VHlineStyle||(q.VHlineStyle={})),q.VLabelStyle=void 0,function(a){a.styleArrowdown="style_arrowdown",a.styleArrowup="style_arrowup",a.styleCircle="style_circle",a.styleCross="style_cross",a.styleDiamond="style_diamond",a.styleFlag="style_flag",a.styleLabelCenter="style_label_center",a.styleLabelDown="style_label_down",a.styleLabelLeft="style_label_left",a.styleLabelLowerLeft="style_label_lower_left",a.styleLabelLowerRight="style_label_lower_right",a.styleLabelRight="style_label_right",a.styleLabelUp="style_label_up",a.styleLabelUpperLeft="style_label_upper_left",a.styleLabelUpperRight="style_label_upper_right",a.styleNone="style_none",a.styleSquare="style_square",a.styleTextOutline="style_text_outline",a.styleTriangledown="style_triangledown",a.styleTriangleup="style_triangleup",a.styleXcross="style_xcross"}(q.VLabelStyle||(q.VLabelStyle={})),q.VLineStyle=void 0,function(a){a.styleArrowBoth="style_arrow_both",a.styleArrowLeft="style_arrow_left",a.styleArrowRight="style_arrow_right",a.styleDashed="style_dashed",a.styleDotted="style_dotted",a.styleSolid="style_solid"}(q.VLineStyle||(q.VLineStyle={})),q.VLocation=void 0,function(a){a.abovebar="abovebar",a.absolute="absolute",a.belowbar="belowbar",a.bottom="bottom",a.top="top"}(q.VLocation||(q.VLocation={})),q.VSortOrder=void 0,function(a){a.ascending="ascending",a.descending="descending"}(q.VSortOrder||(q.VSortOrder={})),q.VPlotStyle=void 0,function(a){a.styleArea="Area",a.styleAreabr="Area With Breaks",a.styleCircles="Circles",a.styleColumns="Columns",a.styleCross="Cross",a.styleHistogram="Histogram",a.styleLine="Line",a.styleLinebr="Line With Breaks",a.styleStepline="Step Line",a.styleSteplineDiamond="Step Line With Diamonds",a.styleSteplinebr="Step line with Breaks"}(q.VPlotStyle||(q.VPlotStyle={})),q.VPosition=void 0,function(a){a.bottomCenter="bottom_center",a.bottomLeft="bottom_left",a.bottomRight="bottom_right",a.middleCenter="middle_center",a.middleLeft="middle_left",a.middleRight="middle_right",a.topCenter="top_center",a.topLeft="top_left",a.topRight="top_right"}(q.VPosition||(q.VPosition={})),q.VScale=void 0,function(a){a.left="left",a.none="none",a.right="right"}(q.VScale||(q.VScale={})),q.VSession=void 0,function(a){a.extended="extended",a.regular="regular"}(q.VSession||(q.VSession={})),q.VShape=void 0,function(a){a.arrowdown="arrowdown",a.arrowup="arrowup",a.circle="circle",a.cross="cross",a.diamond="diamond",a.flag="flag",a.labeldown="labeldown",a.labelup="labelup",a.square="square",a.triangledown="triangledown",a.triangleup="triangleup",a.xcross="xcross"}(q.VShape||(q.VShape={})),q.VSize=void 0,function(a){a.auto="auto",a.huge="huge",a.large="large",a.normal="normal",a.small="small",a.tiny="tiny"}(q.VSize||(q.VSize={})),q.VFont=void 0,function(a){a.familyDefault="default",a.familyMonospace="monospace"}(q.VFont||(q.VFont={})),q.VStrategy=void 0,function(a){a.cash="cash",a.fixed="fixed",a.percentOfEquity="percent_of_equity"}(q.VStrategy||(q.VStrategy={})),q.VCommission=void 0,function(a){a.cashPerContract="cash_per_contract",a.cashPerOrder="cash_per_order",a.percent="percent"}(q.VCommission||(q.VCommission={})),q.VDirection=void 0,function(a){a.all="all",a.long="long",a.short="short"}(q.VDirection||(q.VDirection={})),q.VOca=void 0,function(a){a.cancel="cancel",a.none="none",a.reduce="reduce"}(q.VOca||(q.VOca={})),q.VText=void 0,function(a){a.alignBottom="align_bottom",a.alignCenter="align_center",a.alignLeft="align_left",a.alignRight="align_right",a.alignTop="align_top",a.wrapAuto="wrap_auto",a.wrapNone="wrap_none"}(q.VText||(q.VText={})),q.VXloc=void 0,function(a){a.bar_index="bar_index",a.bar_time="bar_time"}(q.VXloc||(q.VXloc={})),q.VYloc=void 0,function(a){a.abovebar="abovebar",a.belowbar="belowbar",a.price="price"}(q.VYloc||(q.VYloc={})),q.VEarnings=void 0,function(a){a.actual="actual",a.estimate="estimate",a.standardized="standardized"}(q.VEarnings||(q.VEarnings={})),q.VPivotType=void 0,function(a){a.traditional="Traditional",a.fibonacci="Fibonacci",a.woodie="Woodie",a.classic="Classic",a.dm="DM",a.camarilla="Camarilla"}(q.VPivotType||(q.VPivotType={})),q.VInputType=void 0,function(a){a.INT="int",a.BOOL="bool",a.TIME="time",a.COLOR="color",a.FLOAT="float",a.PRICE="price",a.SOURCE="source",a.STRING="string",a.SYMBOL="symbol",a.SESSION="session",a.TEXT_AREA="text_area",a.TIMEFRAME="timeframe"}(q.VInputType||(q.VInputType={}));var lo;(function(a){a.description="description",a.field="field",a.function="function",a.param="param",a.returns="returns",a.type="type",a.variable="variable"})(lo||(lo={})),q.VScriptType=void 0,function(a){a.library="library",a.indicator="indicator",a.strategy="strategy"}(q.VScriptType||(q.VScriptType={})),q.VType.SERIES,q.VType.SIMPLE,q.VType.INPUT,q.VType.CONST,q.VType.INT,q.VType.FLOAT,q.VType.BOOL,q.VType.COLOR,q.VType.STRING;const Rd={domReadOnly:!0,scrollBeyondLastLine:!1,readOnly:!0,minimap:{enabled:!1},scrollbar:{vertical:"hidden",horizontal:"hidden",alwaysConsumeMouseWheel:!1},contextmenu:!1},co={functions:[{name:"calcBB",desc:["Computes Bollinger Band values from an array of data."],args:[{name:"srcArray",desc:"(array<float>) The array where the queue is maintained.",required:!0,allowedTypeIDs:["float[]","int[]"],displayType:"float[]"},{name:"mult",required:!0,allowedTypeIDs:["series int","series float","simple int","simple float","input int","input float","const int","const float"],displayType:"series float"},{name:"calculate",required:!1,allowedTypeIDs:["series bool","simple bool","input bool","const bool"],displayType:"series bool"}],syntax:["calcBB(float[] srcArray, series float mult, series bool calculate) → [series float, series float, series float]"],hasMemberIndex:!1,pos:{lineNumber:10,column:14},isUser:!0,returnedTypes:["[series float, series float, series float]"],returns:["A tuple containing the basis, upper band, and lower band respectively."]},{name:"calcBB",args:[{name:"srcArray",required:!0,allowedTypeIDs:["float[]","int[]"],displayType:"float[]"},{name:"mult",required:!0,allowedTypeIDs:["series int","simple int","input int","const int"],displayType:"series int"},{name:"calculate",required:!1,allowedTypeIDs:["series bool","simple bool","input bool","const bool"],displayType:"series bool"}],syntax:["calcBB(float[] srcArray, series int mult, series bool calculate) → [series float, series float, series float]"],hasMemberIndex:!1,pos:{lineNumber:19,column:14},isUser:!0,returnedTypes:["[series float, series float, series float]"],index:1},{name:"Scanner.new",args:[{name:"enabled",required:!1,allowedTypeIDs:["series bool","simple bool","input bool","const bool"],displayType:"series bool"},{name:"ticker",required:!1,allowedTypeIDs:["series string","simple string","input string","const string"],displayType:"series string"},{name:"timeframe",required:!1,allowedTypeIDs:["series string","simple string","input string","const string"],displayType:"series string"}],returnedTypes:["Scanner"],pos:{lineNumber:30,column:12},syntax:["Scanner.new(series bool enabled, series string ticker, series string timeframe) → Scanner"]},{name:"Scanner.copy",args:[{name:"object",required:!0,allowedTypeIDs:["Scanner"],displayType:"Scanner"}],returnedTypes:["Scanner"],pos:{lineNumber:30,column:12},info:"The identifier of the object to be copied.",syntax:["Scanner.copy(Scanner object) → Scanner"]}],methods:[{name:"calcBB",args:[{name:"mult",required:!0,allowedTypeIDs:["series int","series float","simple int","simple float","input int","input float","const int","const float"],displayType:"series float"},{name:"calculate",required:!1,allowedTypeIDs:["series bool","simple bool","input bool","const bool"],displayType:"series bool"}],desc:["Computes Bollinger Band values from an array of data."],originalName:"array.calcBB",syntax:["calcBB(series float mult, series bool calculate) → [series float, series float, series float]"],returnedTypes:["[series float, series float, series float]"],hasMemberIndex:!1,pos:{lineNumber:10,column:14},thisType:["float[]"],returns:["A tuple containing the basis, upper band, and lower band respectively."]},{name:"calcBB",args:[{name:"mult",required:!0,allowedTypeIDs:["series int","simple int","input int","const int"],displayType:"series int"},{name:"calculate",required:!1,allowedTypeIDs:["series bool","simple bool","input bool","const bool"],displayType:"series bool"}],originalName:"array.calcBB",syntax:["calcBB(series int mult, series bool calculate) → [series float, series float, series float]"],returnedTypes:["[series float, series float, series float]"],hasMemberIndex:!1,pos:{lineNumber:19,column:14},thisType:["float[]"],index:1},{name:"Scanner.copy",args:[],returnedTypes:["Scanner"],thisType:["Scanner"],pos:{lineNumber:30,column:12},syntax:["Scanner.copy() → Scanner"]}],types:[{fields:[{name:"enabled",type:"series bool"},{name:"ticker",type:"series string"},{name:"timeframe",type:"series string"}],name:"Scanner",pos:{lineNumber:30,column:12}}],description:"Provides a tool to quickly output a label on the chart.",codeStr:'const $name={calcBB:({srcArray:a,mult:r,calculate:_=!0},e)=>{let v=$_var.getVarValue("mean",e+"_14_12","var")||$_var.setVarValue("mean",e+"_14_12",$_var.na,"var"),s=$_var.getVarValue("dev",e+"_14_13","var")||$_var.setVarValue("dev",e+"_14_13",$_var.na,"var");return _&&($_var.againAssignParse(v,a.avg(e+"_16_16")),v=a.avg(e+"_16_16"),$_var.setVarValue("mean",e+"_14_12",v,"var"),$_var.againAssignParse(s,a.stdev(e+"_17_16")*r),s=a.stdev(e+"_17_16")*r,$_var.setVarValue("dev",e+"_14_13",s,"var")),[v,$_var.add(v,s),$_var.sub(v,s)]},calcBB$1:({srcArray:a,mult:r,calculate:_=!0},e)=>{let v=$_var.getVarValue("mean",e+"_14_21","var")||$_var.setVarValue("mean",e+"_14_21",$_var.na,"var"),s=$_var.getVarValue("dev",e+"_14_22","var")||$_var.setVarValue("dev",e+"_14_22",$_var.na,"var");return _&&($_var.againAssignParse(v,a.avg(e+"_25_16")),v=a.avg(e+"_25_16"),$_var.setVarValue("mean",e+"_14_21",v,"var"),$_var.againAssignParse(s,a.stdev(e+"_26_16")*r),s=a.stdev(e+"_26_16")*r,$_var.setVarValue("dev",e+"_14_22",s,"var")),[v,$_var.add(v,s),$_var.sub(v,s)]},Scanner:$_var.getTypeInstance({enabled:void 0,ticker:void 0,timeframe:void 0},[])};'};class Fd{constructor(){Object.defineProperty(this,"_inlayHints",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_editor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_importCompleteLibrary",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_funcs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._inlayHints=new Map,this._importCompleteLibrary=new Map,this._funcs=new Map}get inlayHints(){return[...this._inlayHints.values()]}setEditor(n){this._editor=n}async setInlayHints(n){const{endLine:s,endColumn:o,name:l,libraryId:c,libraryName:u}=n;if(this._importCompleteLibrary.has(c)){const f=this._funcs.get(c);return((f==null?void 0:f.name)!==l||!l&&!this._inlayHints.has(c))&&(this._updateFuncNames(l||u,c),this._inlayHintsHandle(n)),this._importCompleteLibrary.get(c)}return this._importCompleteLibrary.set(c,co),this._inlayHints.set(c,{label:"载入中...",position:{column:o,lineNumber:s},paddingLeft:!0}),this.triggerInlayHints(),this._updateFuncNames(l||u,c),setTimeout(()=>{this._inlayHints.has(c)&&this._inlayHintsHandle(n)},2e3),co}deleteInlayHints(n){this._inlayHints.delete(n)}clearInlayHints(){this._inlayHints.clear()}triggerInlayHints(){this._editor&&this._editor.updateOptions({inlayHints:{fontFamily:String(Date.now())}})}_updateFuncNames(n,s){const o=this._importCompleteLibrary.get(s);if(!o)return;const l=o.functions.map(c=>`${n}.${c.name}`);this._funcs.set(s,{name:n,funcs:l}),this._updateMonarchTokens()}_setNoNameInlayHints(n){const{endLine:s,endColumn:o,libraryId:l,libraryName:c}=n;this._inlayHints.set(l,{label:`as ${c}`,position:{column:o,lineNumber:s},paddingLeft:!0})}_inlayHintsHandle(n){const{name:s,libraryId:o}=n;s?this._inlayHints.delete(o):this._setNoNameInlayHints(n),this.triggerInlayHints()}_updateMonarchTokens(){const n=[...this._funcs.values()].map(l=>l.funcs.join("|")),s=new RegExp("\\b("+n.join("|")+")(?=\\s*\\()"),o=[...Nr.tokenizer.root];o.splice(15,0,[s,"meta.function-call"]),Ae.languages.setMonarchTokensProvider(Se,{...Nr,tokenizer:{...Nr.tokenizer,root:o}})}}const Gs=new Fd;function Bd(a,n,s){var O;const o={startLineNumber:n.lineNumber,startColumn:1,endLineNumber:n.lineNumber,endColumn:n.column},l=a.getValueInRange(o);if(/^\/\/\s*@/.test(l))return{suggestions:qt.annotationSuggestions};if(s.triggerCharacter==="@")return{suggestions:[]};const c=l.match(/([\w.]+)$/)||[];if(!c.length)return{suggestions:[]};const u=(O=c[0])==null?void 0:O.match(/.*[^\w.]+([\w.]+)(?=\.)|([\w.]+)(?=\.)/),f=u?u[1]?u[1]:u[2]?u[2]:void 0:void 0,x=a.getWordUntilPosition(n),g=Er.parseCurrentInputFunc(l),h={startLineNumber:n.lineNumber,endLineNumber:n.lineNumber,startColumn:x.startColumn,endColumn:x.endColumn},T=a.getValueInRange({...h,startColumn:x.endColumn,endColumn:x.endColumn+1});qt.nextIsBracket=T==="(";let M=po(qt.getSuggestions(f)||[],h);if(c[0]==="."&&(M=[]),g&&!f&&!/=\s*\w+$/.test(l)){const B=po(qt.getArgSuggestions(g.funcName)||[],h);M=M.concat(B)}return{suggestions:M||[],dispose:()=>{}}}function Ud(a){if(a.kind!==1)return a;const{originInsertText:n}=a;return qt.nextIsBracket?a.insertText=n:a.insertText=n+qt.bracketsPostfix,a}function Kd(a,n){var o;const s=Er.parseLineContentFuncVar(n.column,n.lineNumber,a,n);if(s!=null&&s.libraryId)return{contents:[{value:Id(s)}]};if((o=s==null?void 0:s.docValue)!=null&&o.length){const l=Ad(s.docValue,s.index,s.isBuildIn);if(l)return{contents:[{value:l}]}}return{contents:[]}}function $d(a,n){var T,M;const s={startLineNumber:n.lineNumber,endLineNumber:n.lineNumber,startColumn:1,endColumn:n.column},o=a.getValueInRange(s),l=a.findMatches(String(Nd),s,!0,!1,null,!0),c=a.findMatches(String(Ld),s,!0,!1,null,!0),u=(T=l.pop())==null?void 0:T.matches,f=(M=c.pop())==null?void 0:M.matches;let x=!1;l.length%2===0?u&&u[0]==='"'&&(x=!0):u&&!u[0]&&(x=!0);let g=!1;c.length%2===0?f&&f[0]==="'"&&(g=!0):f&&!f[0]&&(g=!0);const h=Er.parseCurrentInputFuncAndArg(o,g,x);if(h){const{funcName:O,args:B}=h,P=Md.getSignatureHelpValues(O,B);if(P)return{value:P,dispose:()=>{}}}return null}function jd(a){let n=a.findMatches(pn.colorMatchesRegStr,!0,!0,!1,null,!0);return n=n.filter(o=>{const l=a.getValueInRange({...o.range,startColumn:0});return l.indexOf("//")===-1||l.indexOf("//")>o.range.endColumn}),pn.getDocumentColors(n)}function Hd(a,n){return pn.getDocumentColorPresentations(a,n)||[]}function Wd(a,n){const s=a.getModel(),o=Er.parseLineContentFuncVar(n.startColumn+1,n.startLineNumber,s);if(!o||o.isBuildIn||!o.docValue||!o.docValue[0].pos)return o!=null&&o.isBuildIn?o:void 0;const{lineNumber:l,column:c}=o.docValue[0].pos,u={startLineNumber:l,endLineNumber:l,startColumn:c,endColumn:c};a.revealRangeInCenterIfOutsideViewport(u),a.setSelection(u)}function Gd(a,n){return Er.parseLineContentFuncVar(n.column,n.lineNumber,a,n)?{uri:a.uri,range:{startLineNumber:n.lineNumber,endLineNumber:n.lineNumber,startColumn:n.column-1,endColumn:n.column-1}}:null}function po(a,n){return a.map(s=>(s.range=n,s))}function Xd(){return{hints:Gs.inlayHints,dispose:()=>{}}}var ds={},ms=lp;if(process.env.NODE_ENV==="production")ds.createRoot=ms.createRoot,ds.hydrateRoot=ms.hydrateRoot;else{var Xs=ms.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;ds.createRoot=function(a,n){Xs.usingClientEntryPoint=!0;try{return ms.createRoot(a,n)}finally{Xs.usingClientEntryPoint=!1}},ds.hydrateRoot=function(a,n,s){Xs.usingClientEntryPoint=!0;try{return ms.hydrateRoot(a,n,s)}finally{Xs.usingClientEntryPoint=!1}}}var Ge;(function(a){a.added="added",a.removed="removed",a.modified="modified"})(Ge||(Ge={}));const Vd=(a,n)=>{const{close:s,retracement:o}=a,[l,c]=R.useState("modified");return R.useImperativeHandle(n,()=>({updateType(u){c(u)}})),L.jsxs("div",{className:`content-popup content-${l}-popup`,children:[L.jsx("div",{className:`triangle-popup triangle-${l}-popup`}),L.jsxs("div",{className:`header-popup header-${l}-popup`,children:[L.jsx("div",{className:"title-popup",children:"Local working changes"}),L.jsx("div",{className:"actions-popup",children:L.jsx("div",{onClick:s,"data-role":"button",className:"button-popup","data-name":"button-close-diff",children:L.jsx("span",{className:"icon-popup",role:"img",children:L.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12",width:"12",height:"12",children:L.jsx("path",{stroke:"currentColor",strokeWidth:"1.2",d:"m1.5 1.5 9 9m0-9-9 9"})})})})})]}),L.jsx("div",{id:"diffEditorContainer",style:{height:"100%"}})]})},Yd=R.forwardRef(Vd);class Qd{constructor(n,s,o=!0){Object.defineProperty(this,"_domNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_top",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_content",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._id=n,this._domNode=document.createElement("div"),this._domNode.style.display="none",this._domNode.style.width=o?"calc(100% - 134px)":"calc(100% - 14px)",this._domNode.style.height="200px",s==null||s.onDidScrollChange(this.scrollChangeHandler.bind(this)),ds.createRoot(this._domNode).render(L.jsx(Yd,{ref:l=>this._content=l,close:()=>this._close(),retracement:this._retracement})),this._top=0}_close(){this._domNode.style.display="none"}_retracement(){}getId(){return this._id}getDomNode(){return this._domNode}getPosition(){return null}show(n,s,o){var l;this._top=s,(l=this._content)==null||l.updateType(o),this._domNode.style.top=`${n}px`,this._domNode.style.display="block"}hide(){this._domNode.style.display="none"}scrollChangeHandler(n){const s=n.scrollTop;this._domNode.style.top=`${this._top-s}px`}}function ar(){}ar.prototype={diff:function(n,s){var o,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c=l.callback;typeof l=="function"&&(c=l,l={}),this.options=l;var u=this;function f(A){return c?(setTimeout(function(){c(void 0,A)},0),!0):A}n=this.castInput(n),s=this.castInput(s),n=this.removeEmpty(this.tokenize(n)),s=this.removeEmpty(this.tokenize(s));var x=s.length,g=n.length,h=1,T=x+g;l.maxEditLength&&(T=Math.min(T,l.maxEditLength));var M=(o=l.timeout)!==null&&o!==void 0?o:1/0,O=Date.now()+M,B=[{oldPos:-1,lastComponent:void 0}],P=this.extractCommon(B[0],s,n,0);if(B[0].oldPos+1>=g&&P+1>=x)return f([{value:this.join(s),count:s.length}]);var X=-1/0,J=1/0;function G(){for(var A=Math.max(X,-h);A<=Math.min(J,h);A+=2){var k=void 0,U=B[A-1],j=B[A+1];U&&(B[A-1]=void 0);var ae=!1;if(j){var oe=j.oldPos-A;ae=j&&0<=oe&&oe<x}var ce=U&&U.oldPos+1<g;if(!ae&&!ce){B[A]=void 0;continue}if(!ce||ae&&U.oldPos+1<j.oldPos?k=u.addToPath(j,!0,void 0,0):k=u.addToPath(U,void 0,!0,1),P=u.extractCommon(k,s,n,A),k.oldPos+1>=g&&P+1>=x)return f(Zd(u,k.lastComponent,s,n,u.useLongestToken));B[A]=k,k.oldPos+1>=g&&(J=Math.min(J,A-1)),P+1>=x&&(X=Math.max(X,A+1))}h++}if(c)(function A(){setTimeout(function(){if(h>T||Date.now()>O)return c();G()||A()},0)})();else for(;h<=T&&Date.now()<=O;){var F=G();if(F)return F}},addToPath:function(n,s,o,l){var c=n.lastComponent;return c&&c.added===s&&c.removed===o?{oldPos:n.oldPos+l,lastComponent:{count:c.count+1,added:s,removed:o,previousComponent:c.previousComponent}}:{oldPos:n.oldPos+l,lastComponent:{count:1,added:s,removed:o,previousComponent:c}}},extractCommon:function(n,s,o,l){for(var c=s.length,u=o.length,f=n.oldPos,x=f-l,g=0;x+1<c&&f+1<u&&this.equals(s[x+1],o[f+1]);)x++,f++,g++;return g&&(n.lastComponent={count:g,previousComponent:n.lastComponent}),n.oldPos=f,x},equals:function(n,s){return this.options.comparator?this.options.comparator(n,s):n===s||this.options.ignoreCase&&n.toLowerCase()===s.toLowerCase()},removeEmpty:function(n){for(var s=[],o=0;o<n.length;o++)n[o]&&s.push(n[o]);return s},castInput:function(n){return n},tokenize:function(n){return n.split("")},join:function(n){return n.join("")}};function Zd(a,n,s,o,l){for(var c=[],u;n;)c.push(n),u=n.previousComponent,delete n.previousComponent,n=u;c.reverse();for(var f=0,x=c.length,g=0,h=0;f<x;f++){var T=c[f];if(T.removed){if(T.value=a.join(o.slice(h,h+T.count)),h+=T.count,f&&c[f-1].added){var O=c[f-1];c[f-1]=c[f],c[f]=O}}else{if(!T.added&&l){var M=s.slice(g,g+T.count);M=M.map(function(P,X){var J=o[h+X];return J.length>P.length?J:P}),T.value=a.join(M)}else T.value=a.join(s.slice(g,g+T.count));g+=T.count,T.added||(h+=T.count)}}var B=c[x-1];return x>1&&typeof B.value=="string"&&(B.added||B.removed)&&a.equals("",B.value)&&(c[x-2].value+=B.value,c.pop()),c}var mo=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,uo=/\S/,yo=new ar;yo.equals=function(a,n){return this.options.ignoreCase&&(a=a.toLowerCase(),n=n.toLowerCase()),a===n||this.options.ignoreWhitespace&&!uo.test(a)&&!uo.test(n)},yo.tokenize=function(a){for(var n=a.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),s=0;s<n.length-1;s++)!n[s+1]&&n[s+2]&&mo.test(n[s])&&mo.test(n[s+2])&&(n[s]+=n[s+2],n.splice(s+1,2),s--);return n};var dn=new ar;dn.tokenize=function(a){this.options.stripTrailingCr&&(a=a.replace(/\r\n/g,`
136
- `));var n=[],s=a.split(/(\n|\r\n)/);s[s.length-1]||s.pop();for(var o=0;o<s.length;o++){var l=s[o];o%2&&!this.options.newlineIsToken?n[n.length-1]+=l:(this.options.ignoreWhitespace&&(l=l.trim()),n.push(l))}return n};function Jd(a,n,s){return dn.diff(a,n,s)}var em=new ar;em.tokenize=function(a){return a.split(/(\S.+?[.!?])(?=\s+|$)/)};var tm=new ar;tm.tokenize=function(a){return a.split(/([{}:;,]|\s+)/)};function Vs(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Vs=function(n){return typeof n}:Vs=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Vs(a)}var rm=Object.prototype.toString,us=new ar;us.useLongestToken=!0,us.tokenize=dn.tokenize,us.castInput=function(a){var n=this.options,s=n.undefinedReplacement,o=n.stringifyReplacer,l=o===void 0?function(c,u){return typeof u>"u"?s:u}:o;return typeof a=="string"?a:JSON.stringify(mn(a,null,null,l),l," ")},us.equals=function(a,n){return ar.prototype.equals.call(us,a.replace(/,([\r\n])/g,"$1"),n.replace(/,([\r\n])/g,"$1"))};function mn(a,n,s,o,l){n=n||[],s=s||[],o&&(a=o(l,a));var c;for(c=0;c<n.length;c+=1)if(n[c]===a)return s[c];var u;if(rm.call(a)==="[object Array]"){for(n.push(a),u=new Array(a.length),s.push(u),c=0;c<a.length;c+=1)u[c]=mn(a[c],n,s,o,l);return n.pop(),s.pop(),u}if(a&&a.toJSON&&(a=a.toJSON()),Vs(a)==="object"&&a!==null){n.push(a),u={},s.push(u);var f=[],x;for(x in a)a.hasOwnProperty(x)&&f.push(x);for(f.sort(),c=0;c<f.length;c+=1)x=f[c],u[x]=mn(a[x],n,s,o,x);n.pop(),s.pop()}else u=a;return u}var un=new ar;un.tokenize=function(a){return a.slice()},un.join=un.removeEmpty=function(a){return a};class sm{constructor(n,s,o=""){Object.defineProperty(this,"_editor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_monaco",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_originalModel",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_oldDecorations",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_diffEditor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_diffPopupWidget",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_didChangeListener",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_onMouseDownListener",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._editor=n,this._monaco=s,this._originalModel=this._monaco.editor.createModel(o,Se),this._oldDecorations=[],this._init(),this._eventListening()}_init(){var n;this._changeEvent(),this._didChangeListener=(n=this._editor.getModel())==null?void 0:n.onDidChangeContent(()=>this._changeEvent())}update(n){var s,o;if(this._originalModel=this._monaco.editor.createModel(n,Se),n!==((s=this._editor.getModel())==null?void 0:s.getValue())){this._changeEvent();return}(o=this._editor.getModel())==null||o.deltaDecorations(this._oldDecorations,[]),this._oldDecorations=[]}dispose(){var n,s,o,l;this._diffPopupWidget&&(this._diffPopupWidget.hide(),this._editor.removeOverlayWidget(this._diffPopupWidget)),(n=this._didChangeListener)==null||n.dispose(),(s=this._onMouseDownListener)==null||s.dispose(),(o=this._editor.getModel())==null||o.deltaDecorations(this._oldDecorations,[]),this._oldDecorations=[],(l=this._diffEditor)==null||l.dispose(),this._diffEditor=void 0}_changesHandle(n){let s=0,o;const l=[];let c=0;for(const u of n){const{added:f,removed:x,count:g=1,value:h}=u;f?o&&o.removed?(s=this._changeHandle(l,s,c,g,Ge.modified),c=0,o=void 0):(o&&o.added&&(s=this._changeHandle(l,s,c,o.count||1,Ge.added),c=0),o=u):x?o&&o.added?(s=this._changeHandle(l,s,c,o.count||1,Ge.modified),c=0,o=void 0):(o&&o.removed&&this._addDecorationList(l,s,Ge.removed),o=u):/^\n+$/.test(h)?o&&(o.added||o.removed)?c=g:s+=g:(o&&o.added?(s=this._changeHandle(l,s,c,o.count||1,Ge.added),c=0,o=void 0):o&&o.removed&&(this._addDecorationList(l,s,Ge.removed),o=void 0),s+=g)}return o&&o.added?s=this._changeHandle(l,s,c,o.count||1,Ge.added):o&&o.removed&&this._addDecorationList(l,s,Ge.removed),l}_changeHandle(n,s,o,l,c){for(let u=1;u<=l;u++)this._addDecorationList(n,s+u,c);return s+=l+o,s}_addDecorationList(n,s,o){n.push({range:new this._monaco.Range(s,1,s,1),options:{isWholeLine:!0,linesDecorationsClassName:`line-${o} line-decoration_${o}`}})}_changeEvent(){var l,c;const n=Jd(this._originalModel.getValue(),((l=this._editor.getModel())==null?void 0:l.getValue())||""),s=this._changesHandle(n),o=((c=this._editor.getModel())==null?void 0:c.deltaDecorations(this._oldDecorations,s))||[];this._oldDecorations=o}_eventListening(){const n=new Qd("diff.popup.widget",this._editor);this._editor.addOverlayWidget(n),this._onMouseDownListener=this._editor.onMouseDown(s=>this._onMouseDownHandle(s)),this._diffPopupWidget=n}_onMouseDownHandle(n){var u,f,x,g,h,T;const s=(u=n.target.element)==null?void 0:u.classList,o=s==null?void 0:s.contains(`line-${Ge.added}`),l=s==null?void 0:s.contains(`line-${Ge.modified}`),c=s==null?void 0:s.contains(`line-${Ge.removed}`);if(o||l||c){const M=((x=(f=n==null?void 0:n.target)==null?void 0:f.position)==null?void 0:x.lineNumber)||0,O=((g=this._editor)==null?void 0:g.getTopForLineNumber(M+1))||0,B=((h=this._editor)==null?void 0:h.getScrollTop())||0,P=o?Ge.added:l?Ge.modified:Ge.removed;(T=this._diffPopupWidget)==null||T.show(O-B,O,P),this._diffEditor||(this._diffEditor=this._createDiffEditor()),this._diffEditor.setModel({original:this._originalModel,modified:this._editor.getModel()}),this._diffEditor.revealLineInCenter(M+1)}}_createDiffEditor(){return this._monaco.editor.createDiffEditor(document.getElementById("diffEditorContainer"),{renderSideBySide:!1,quickSuggestions:!1,suggestOnTriggerCharacters:!1,hover:{enabled:!1},parameterHints:{enabled:!1}})}}class am{constructor(n,s,o){Object.defineProperty(this,"_editor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_monaco",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_decorations",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_changPositionListener",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_originalScript",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_onActionTrigger",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_onLinkOpen",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._editor=n,this._monaco=s,this._onActionTrigger=o,this._init()}addLinkOpenFunc(n){this._onLinkOpen=n}updateActionTrigger(n){this._onActionTrigger=n}setModelMarkers(n){this._monaco.editor.setModelMarkers(this._editor.getModel(),"owner",n)}addDiffDecorations(){this._decorations||(this._decorations=new sm(this._editor,this._monaco,this._originalScript))}removeDiffDecorations(){var n;(n=this._decorations)==null||n.dispose(),this._decorations=void 0}setValue(n){this._editor.setValue(n),this._editor.setScrollTop(0)}setPosition(n){var s,o,l;(s=this._editor)==null||s.setPosition(n),(o=this._editor)==null||o.revealPositionInCenter(n),(l=this._editor)==null||l.focus()}setOriginalScript(n){var s;this._originalScript=n,(s=this._decorations)==null||s.update(n)}getEditorLayout(){var o;const n=this._editor.getContentHeight(),s=(o=this._editor.getModel())==null?void 0:o.getLineCount();return{contentHeight:n,lineCount:s}}setEditorLayout(n,s){var o,l;(l=this._editor)==null||l.layout({height:n,width:s||((o=this._editor)==null?void 0:o.getContainerDomNode().clientWidth)})}_init(){this._register(),this._setOptions(),this._addCommands(),this._addActions(),this._setCursorPosition()}_setCursorPosition(){const n=localStorage.getItem(nn);this._editor.setPosition(n?JSON.parse(n):{lineNumber:1,column:1}),this._editor.focus()}_register(){this._monaco.languages.register({id:Se}),this._monaco.languages.registerCompletionItemProvider(Se,{triggerCharacters:[".","@"],provideCompletionItems:Bd,resolveCompletionItem:Ud}),this._monaco.languages.registerHoverProvider(Se,{provideHover:Kd}),this._monaco.languages.registerSignatureHelpProvider(Se,{signatureHelpTriggerCharacters:["(",","],provideSignatureHelp:$d}),this._monaco.languages.registerColorProvider(Se,{provideColorPresentations:Hd,provideDocumentColors:jd}),this._monaco.editor.registerEditorOpener({openCodeEditor:(n,s,o)=>{const l=Wd(n,o);if(l){const{index:c,docValue:u}=l,{title:f,name:x}=u[c];let g="";switch(f){case ve.keywords:g="kw";break;case ve.functions:g="fun";break;case ve.variables:g="var";break;case ve.types:g="type";break;case ve.constants:g="const";break}this._onLinkOpen&&this._onLinkOpen(`${g}_${x}`,c)}return!0}}),this._monaco.editor.registerLinkOpener({open:n=>(this._onLinkOpen&&this._onLinkOpen(n.fragment),!0)}),this._monaco.languages.registerDefinitionProvider(Se,{provideDefinition:Gd}),this._monaco.languages.registerInlayHintsProvider(Se,{provideInlayHints:Xd})}_setOptions(){this._monaco.editor.defineTheme("vs-dark",cn),this._monaco.editor.defineTheme("vs",ln),this._monaco.languages.setMonarchTokensProvider(Se,Nr),this._monaco.languages.setLanguageConfiguration(Se,on)}_addCommands(){this._monaco.editor.addCommand({id:"tcc.editor.function",run:(n,s)=>{var o;if(qt.nextIsBracket){const l=this._editor.getPosition();l&&this._editor.setPosition(Object.assign(l,{column:l.column+1}))}(o=this._editor.getAction(s))==null||o.run()}})}_addActions(){this._editor.addAction({id:"tcc-save-script",label:"保存脚本",keybindings:[this._monaco.KeyMod.CtrlCmd|this._monaco.KeyCode.KeyS],contextMenuGroupId:"9_modification",contextMenuOrder:1,run:()=>{this._onActionTrigger&&this._onActionTrigger(q.Actions.Save)}}),this._editor.addAction({id:"tcc-find-replace-line",label:"寻找/替换",keybindings:[this._monaco.KeyMod.CtrlCmd|this._monaco.KeyCode.KeyF],contextMenuGroupId:"9_cutcopypaste",contextMenuOrder:5,run:()=>{this.openFind(),this._onActionTrigger&&this._onActionTrigger(q.Actions.Find)}}),this._editor.addAction({id:"tcc-trigger-console-script",label:"切换控制台",keybindings:[this._monaco.KeyMod.CtrlCmd|this._monaco.KeyCode.Backquote],contextMenuGroupId:"z_commands",contextMenuOrder:0,run:()=>{this._onActionTrigger&&this._onActionTrigger(q.Actions.TriggerConsole)}}),this._editor.addAction({id:"tcc-run-script",label:"运行脚本",keybindings:[this._monaco.KeyMod.CtrlCmd|this._monaco.KeyCode.Enter],run:()=>{this._onActionTrigger&&this._onActionTrigger(q.Actions.RunScript)}}),this._editor.addAction({id:"tcc-open-script",label:"打开脚本",keybindings:[this._monaco.KeyMod.CtrlCmd|this._monaco.KeyCode.KeyO],contextMenuGroupId:"9_modification",contextMenuOrder:2,run:()=>{this._onActionTrigger&&this._onActionTrigger(q.Actions.Open)}})}openFind(){this._editor.focus(),this._editor.trigger("click","actions.find",null)}gotoLine(){this._editor.focus(),this._editor.trigger("click","editor.action.gotoLine",null)}onChangeCursorPosition(n){this._changPositionListener&&this._changPositionListener.dispose();const s=localStorage.getItem(nn);n&&n(s?JSON.parse(s):{lineNumber:1,column:1}),this._changPositionListener=this._editor.onDidChangeCursorPosition(o=>{localStorage.setItem(nn,JSON.stringify(o.position)),n&&n(o.position)})}}/**
135
+ ${this._formatter.code("Space")}`;return o.push(this._formatter.lineBreak),o.push(this._formatter.italic(`${l} ${ve.toTriggerParameterHints}`)),{value:this._formatter.paragraph(...o)}}}const Md=new Pd(window.navigator.userAgent);class Od{constructor(){Object.defineProperty(this,"_colors",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._colors=oo}getDocumentColors(n){const s=[];return n.forEach(o=>{const{range:l}=o;let{matches:c}=o;c=c||[];const u=c[0]||"";let f=null;this._isHexToken(u)?f=this._hexToColor(u):this._isRgbColor(u)?f=this._rgbToColor(u):this._colors[u]?f=this._hexToColor(this._colors[u]):this._isColorExpression(u)&&c[1]&&c[6]&&(f=this._extractNewExpression(c[1],Number(c[6]))),f&&s.push({color:f,range:l})}),s}get _defultColorsRegStr(){return Object.keys(oo).reduce((n,s)=>`${n}|${s}`,"")}get colorMatchesRegStr(){const n=`#[0-9a-fA-F]{6,8}|(\\b(color.rgb\\s*\\((\\s*\\d+\\s*,\\s*){2}(\\s*\\d+\\s*,{0,1}){1,2}\\s*\\)${this._defultColorsRegStr}))`;return`color.new\\s*\\(\\s*(${n})\\s*,\\s*(\\d+)\\s*\\)|${n}`}getDocumentColorPresentations(n,{color:s,range:o}){const l=n.getValueInRange(o);if(this._isHexToken(l)||this._colors[l])return[{label:this._colorRgbRepresentation(s)},{label:this._colorHexRepresentation(s)}];if(this._isColorExpression(l)||this._isRgbColor(l)){const c=this._isColorExpression(l)?this._colorNewRepresentation(s):this._colorRgbRepresentation(s);if(!c)return[];const u=this._colorHexRepresentation(s);return[{label:c,textEdit:{text:c,range:o}},{label:u,textEdit:{text:u,range:o}}]}return null}_hexFromNumber(n){const s=this._denormalize(n).toString(16);return s.length===1?`0${s}`:s}_normalize(n){return n/255}_denormalize(n){return Math.round(255*n)}_normalizeAlpha(n){return(100-n)/100}_denormalizeAlpha(n){return 100-Math.round(100*n)}_extractNewExpression(n,s){let o=null;return this._isHexToken(n)?o=this._hexToColor(n):this._isRgbColor(n)?o=this._rgbToColor(n):this._colors[n]&&(o=this._hexToColor(this._colors[n])),o&&!Number.isNaN(s)?{...o,alpha:this._normalizeAlpha(s)}:null}_colorHexRepresentation(n){const s=this._hexFromNumber(n.red),o=this._hexFromNumber(n.green),l=this._hexFromNumber(n.blue),c=this._hexFromNumber(n.alpha);return`#${s}${o}${l}${n.alpha===1?"":c}`}_colorRgbRepresentation(n){const s=this._denormalize(n.red),o=this._denormalize(n.green),l=this._denormalize(n.blue),c=this._denormalizeAlpha(n.alpha),u=[s,o,l];return c>0&&u.push(c),`color.rgb(${u.join(", ")})`}_colorNewRepresentation(n){const s={...n,alpha:1};return`color.new(${this._colorHexRepresentation(s)}, ${this._denormalizeAlpha(n.alpha)})`}_hexToColor(n){const s=(n=this._isHexToken(n)?n.slice(1):n).length===3||n.length===4,o=s?`${n.slice(0,1)}${n.slice(0,1)}`:n.slice(0,2),l=s?`${n.slice(1,2)}${n.slice(1,2)}`:n.slice(2,4),c=s?`${n.slice(2,3)}${n.slice(2,3)}`:n.slice(4,6),u=(s?`${n.slice(3,4)}${n.slice(3,4)}`:n.slice(6,8))||"ff";return{red:this._normalize(parseInt(o,16)),green:this._normalize(parseInt(l,16)),blue:this._normalize(parseInt(c,16)),alpha:this._normalize(parseInt(u,16))}}_rgbToColor(n){const s=n.replace(/[^\d,]/g,"").split(","),o=this._normalize(Number(s[0])),l=this._normalize(Number(s[1])),c=this._normalize(Number(s[2])),u=this._normalizeAlpha(Number(s[3]))||1;return isNaN(o)||isNaN(l)||isNaN(c)?null:{red:o,green:l,blue:c,alpha:u}}_isHexToken(n){return n.charAt(0)==="#"}_isRgbColor(n){return n.startsWith("color.rgb")}_isColorExpression(n){return n.startsWith("color.new")}}const pn=new Od;A.VType=void 0,function(a){a.BOOL="bool",a.INT="int",a.FLOAT="float",a.ARRAY="array",a.BOX="box",a.CHART_POINT="chart.point",a.COLOR="color",a.CONST="const",a.LABEL="label",a.LINE="line",a.LINEFILL="linefill",a.MAP="map",a.MATRIX="matrix",a.POLYLINE="polyline",a.SERIES="series",a.SIMPLE="simple",a.STRING="string",a.TABLE="table",a.UNDETERMINED="undetermined type",a.INPUT="input",a.NA="na",a.VOID="void"}(A.VType||(A.VType={})),A.VRuleType=void 0,function(a){a.FlowStmt="FlowStmt",a.DeclareAssign="DeclareAssign",a.VarBlockStmt="VarBlockStmt",a.VarSingle="VarSingle",a.VarMultiple="VarMultiple",a.ParenthesizedExpression="ParenthesizedExpression",a.AdditiveExpression="AdditiveExpression",a.RelationalExpression="RelationalExpression",a.EqualityExpression="EqualityExpression",a.TernaryExpression="TernaryExpression",a.UnaryExpression="UnaryExpression",a.NotExpression="NotExpression",a.MemberIndexExpression="MemberIndexExpression",a.MethodExpression="MethodExpression",a.LogicalAndExpression="LogicalAndExpression",a.LogicalOrExpression="LogicalOrExpression",a.MultiplicativeExpression="MultiplicativeExpression",a.Brackethesized="Brackethesized",a.IfStatement="IfStatement",a.ForToStatement="ForToStatement",a.ForInStatement="ForInStatement",a.SwitchStatement="SwitchStatement",a.CaseClause="CaseClause",a.DefaultCaluse="DefaultCaluse",a.WhileStatement="WhileStatement",a.ImportElement="ImportElement",a.Literal="Literal",a.ArrowFunction="ArrowFunction",a.ArrowMethod="ArrowMethod",a.TypeStatement="TypeStatement",a.Name="Name",a.AgainAssign="AgainAssign"}(A.VRuleType||(A.VRuleType={})),A.VAdjustment=void 0,function(a){a.dividends="dividends",a.none="none",a.splits="splits"}(A.VAdjustment||(A.VAdjustment={})),A.VAlert=void 0,function(a){a.freqAll="freq_all",a.freqOncePerBar="freq_once_per_bar",a.freqOncePerBarClose="freq_once_per_bar_close"}(A.VAlert||(A.VAlert={})),A.VBarmergeGaps=void 0,function(a){a.gapsOff="gaps_off",a.gapsOn="gaps_on",a.lookaheadOff="lookahead_off",a.lookaheadOn="lookahead_on"}(A.VBarmergeGaps||(A.VBarmergeGaps={})),A.VPlotDisplay=void 0,function(a){a.all="all",a.dataWindow="data_window",a.none="none",a.pane="pane",a.priceScale="price_scale",a.statusLine="status_line"}(A.VPlotDisplay||(A.VPlotDisplay={})),A.VExtend=void 0,function(a){a.both="both",a.left="left",a.none="none",a.right="right"}(A.VExtend||(A.VExtend={})),A.VFormatType=void 0,function(a){a.inherit="inherit",a.mintick="mintick",a.percent="percent",a.price="price",a.volume="volume"}(A.VFormatType||(A.VFormatType={})),A.VHlineStyle=void 0,function(a){a.styleDashed="style_dashed",a.styleDotted="style_dotted",a.styleSolid="style_solid"}(A.VHlineStyle||(A.VHlineStyle={})),A.VLabelStyle=void 0,function(a){a.styleArrowdown="style_arrowdown",a.styleArrowup="style_arrowup",a.styleCircle="style_circle",a.styleCross="style_cross",a.styleDiamond="style_diamond",a.styleFlag="style_flag",a.styleLabelCenter="style_label_center",a.styleLabelDown="style_label_down",a.styleLabelLeft="style_label_left",a.styleLabelLowerLeft="style_label_lower_left",a.styleLabelLowerRight="style_label_lower_right",a.styleLabelRight="style_label_right",a.styleLabelUp="style_label_up",a.styleLabelUpperLeft="style_label_upper_left",a.styleLabelUpperRight="style_label_upper_right",a.styleNone="style_none",a.styleSquare="style_square",a.styleTextOutline="style_text_outline",a.styleTriangledown="style_triangledown",a.styleTriangleup="style_triangleup",a.styleXcross="style_xcross"}(A.VLabelStyle||(A.VLabelStyle={})),A.VLineStyle=void 0,function(a){a.styleArrowBoth="style_arrow_both",a.styleArrowLeft="style_arrow_left",a.styleArrowRight="style_arrow_right",a.styleDashed="style_dashed",a.styleDotted="style_dotted",a.styleSolid="style_solid"}(A.VLineStyle||(A.VLineStyle={})),A.VLocation=void 0,function(a){a.abovebar="abovebar",a.absolute="absolute",a.belowbar="belowbar",a.bottom="bottom",a.top="top"}(A.VLocation||(A.VLocation={})),A.VSortOrder=void 0,function(a){a.ascending="ascending",a.descending="descending"}(A.VSortOrder||(A.VSortOrder={})),A.VPlotStyle=void 0,function(a){a.styleArea="Area",a.styleAreabr="Area With Breaks",a.styleCircles="Circles",a.styleColumns="Columns",a.styleCross="Cross",a.styleHistogram="Histogram",a.styleLine="Line",a.styleLinebr="Line With Breaks",a.styleStepline="Step Line",a.styleSteplineDiamond="Step Line With Diamonds",a.styleSteplinebr="Step line with Breaks"}(A.VPlotStyle||(A.VPlotStyle={})),A.VPosition=void 0,function(a){a.bottomCenter="bottom_center",a.bottomLeft="bottom_left",a.bottomRight="bottom_right",a.middleCenter="middle_center",a.middleLeft="middle_left",a.middleRight="middle_right",a.topCenter="top_center",a.topLeft="top_left",a.topRight="top_right"}(A.VPosition||(A.VPosition={})),A.VScale=void 0,function(a){a.left="left",a.none="none",a.right="right"}(A.VScale||(A.VScale={})),A.VSession=void 0,function(a){a.extended="extended",a.regular="regular"}(A.VSession||(A.VSession={})),A.VShape=void 0,function(a){a.arrowdown="arrowdown",a.arrowup="arrowup",a.circle="circle",a.cross="cross",a.diamond="diamond",a.flag="flag",a.labeldown="labeldown",a.labelup="labelup",a.square="square",a.triangledown="triangledown",a.triangleup="triangleup",a.xcross="xcross"}(A.VShape||(A.VShape={})),A.VSize=void 0,function(a){a.auto="auto",a.huge="huge",a.large="large",a.normal="normal",a.small="small",a.tiny="tiny"}(A.VSize||(A.VSize={})),A.VFont=void 0,function(a){a.familyDefault="default",a.familyMonospace="monospace"}(A.VFont||(A.VFont={})),A.VStrategy=void 0,function(a){a.cash="cash",a.fixed="fixed",a.percentOfEquity="percent_of_equity"}(A.VStrategy||(A.VStrategy={})),A.VCommission=void 0,function(a){a.cashPerContract="cash_per_contract",a.cashPerOrder="cash_per_order",a.percent="percent"}(A.VCommission||(A.VCommission={})),A.VDirection=void 0,function(a){a.all="all",a.long="long",a.short="short"}(A.VDirection||(A.VDirection={})),A.VOca=void 0,function(a){a.cancel="cancel",a.none="none",a.reduce="reduce"}(A.VOca||(A.VOca={})),A.VText=void 0,function(a){a.alignBottom="align_bottom",a.alignCenter="align_center",a.alignLeft="align_left",a.alignRight="align_right",a.alignTop="align_top",a.wrapAuto="wrap_auto",a.wrapNone="wrap_none"}(A.VText||(A.VText={})),A.VXloc=void 0,function(a){a.bar_index="bar_index",a.bar_time="bar_time"}(A.VXloc||(A.VXloc={})),A.VYloc=void 0,function(a){a.abovebar="abovebar",a.belowbar="belowbar",a.price="price"}(A.VYloc||(A.VYloc={})),A.VEarnings=void 0,function(a){a.actual="actual",a.estimate="estimate",a.standardized="standardized"}(A.VEarnings||(A.VEarnings={})),A.VPivotType=void 0,function(a){a.traditional="Traditional",a.fibonacci="Fibonacci",a.woodie="Woodie",a.classic="Classic",a.dm="DM",a.camarilla="Camarilla"}(A.VPivotType||(A.VPivotType={})),A.VInputType=void 0,function(a){a.INT="int",a.BOOL="bool",a.TIME="time",a.COLOR="color",a.FLOAT="float",a.PRICE="price",a.SOURCE="source",a.STRING="string",a.SYMBOL="symbol",a.SESSION="session",a.TEXT_AREA="text_area",a.TIMEFRAME="timeframe"}(A.VInputType||(A.VInputType={}));var lo;(function(a){a.description="description",a.field="field",a.function="function",a.param="param",a.returns="returns",a.type="type",a.variable="variable"})(lo||(lo={})),A.VScriptType=void 0,function(a){a.library="library",a.indicator="indicator",a.strategy="strategy"}(A.VScriptType||(A.VScriptType={})),A.VType.SERIES,A.VType.SIMPLE,A.VType.INPUT,A.VType.CONST,A.VType.INT,A.VType.FLOAT,A.VType.BOOL,A.VType.COLOR,A.VType.STRING;const Rd={domReadOnly:!0,scrollBeyondLastLine:!1,readOnly:!0,minimap:{enabled:!1},scrollbar:{vertical:"hidden",horizontal:"hidden",alwaysConsumeMouseWheel:!1},contextmenu:!1},co={functions:[{name:"calcBB",desc:["Computes Bollinger Band values from an array of data."],args:[{name:"srcArray",desc:"(array<float>) The array where the queue is maintained.",required:!0,allowedTypeIDs:["float[]","int[]"],displayType:"float[]"},{name:"mult",required:!0,allowedTypeIDs:["series int","series float","simple int","simple float","input int","input float","const int","const float"],displayType:"series float"},{name:"calculate",required:!1,allowedTypeIDs:["series bool","simple bool","input bool","const bool"],displayType:"series bool"}],syntax:["calcBB(float[] srcArray, series float mult, series bool calculate) → [series float, series float, series float]"],hasMemberIndex:!1,pos:{lineNumber:10,column:14},isUser:!0,returnedTypes:["[series float, series float, series float]"],returns:["A tuple containing the basis, upper band, and lower band respectively."]},{name:"calcBB",args:[{name:"srcArray",required:!0,allowedTypeIDs:["float[]","int[]"],displayType:"float[]"},{name:"mult",required:!0,allowedTypeIDs:["series int","simple int","input int","const int"],displayType:"series int"},{name:"calculate",required:!1,allowedTypeIDs:["series bool","simple bool","input bool","const bool"],displayType:"series bool"}],syntax:["calcBB(float[] srcArray, series int mult, series bool calculate) → [series float, series float, series float]"],hasMemberIndex:!1,pos:{lineNumber:19,column:14},isUser:!0,returnedTypes:["[series float, series float, series float]"],index:1},{name:"Scanner.new",args:[{name:"enabled",required:!1,allowedTypeIDs:["series bool","simple bool","input bool","const bool"],displayType:"series bool"},{name:"ticker",required:!1,allowedTypeIDs:["series string","simple string","input string","const string"],displayType:"series string"},{name:"timeframe",required:!1,allowedTypeIDs:["series string","simple string","input string","const string"],displayType:"series string"}],returnedTypes:["Scanner"],pos:{lineNumber:30,column:12},syntax:["Scanner.new(series bool enabled, series string ticker, series string timeframe) → Scanner"]},{name:"Scanner.copy",args:[{name:"object",required:!0,allowedTypeIDs:["Scanner"],displayType:"Scanner"}],returnedTypes:["Scanner"],pos:{lineNumber:30,column:12},info:"The identifier of the object to be copied.",syntax:["Scanner.copy(Scanner object) → Scanner"]}],methods:[{name:"calcBB",args:[{name:"mult",required:!0,allowedTypeIDs:["series int","series float","simple int","simple float","input int","input float","const int","const float"],displayType:"series float"},{name:"calculate",required:!1,allowedTypeIDs:["series bool","simple bool","input bool","const bool"],displayType:"series bool"}],desc:["Computes Bollinger Band values from an array of data."],originalName:"array.calcBB",syntax:["calcBB(series float mult, series bool calculate) → [series float, series float, series float]"],returnedTypes:["[series float, series float, series float]"],hasMemberIndex:!1,pos:{lineNumber:10,column:14},thisType:["float[]"],returns:["A tuple containing the basis, upper band, and lower band respectively."]},{name:"calcBB",args:[{name:"mult",required:!0,allowedTypeIDs:["series int","simple int","input int","const int"],displayType:"series int"},{name:"calculate",required:!1,allowedTypeIDs:["series bool","simple bool","input bool","const bool"],displayType:"series bool"}],originalName:"array.calcBB",syntax:["calcBB(series int mult, series bool calculate) → [series float, series float, series float]"],returnedTypes:["[series float, series float, series float]"],hasMemberIndex:!1,pos:{lineNumber:19,column:14},thisType:["float[]"],index:1},{name:"Scanner.copy",args:[],returnedTypes:["Scanner"],thisType:["Scanner"],pos:{lineNumber:30,column:12},syntax:["Scanner.copy() → Scanner"]}],types:[{fields:[{name:"enabled",type:"series bool"},{name:"ticker",type:"series string"},{name:"timeframe",type:"series string"}],name:"Scanner",pos:{lineNumber:30,column:12}}],description:"Provides a tool to quickly output a label on the chart.",codeStr:'const $name={calcBB:({srcArray:a,mult:r,calculate:_=!0},e)=>{let v=$_var.getVarValue("mean",e+"_14_12","var")||$_var.setVarValue("mean",e+"_14_12",$_var.na,"var"),s=$_var.getVarValue("dev",e+"_14_13","var")||$_var.setVarValue("dev",e+"_14_13",$_var.na,"var");return _&&($_var.againAssignParse(v,a.avg(e+"_16_16")),v=a.avg(e+"_16_16"),$_var.setVarValue("mean",e+"_14_12",v,"var"),$_var.againAssignParse(s,a.stdev(e+"_17_16")*r),s=a.stdev(e+"_17_16")*r,$_var.setVarValue("dev",e+"_14_13",s,"var")),[v,$_var.add(v,s),$_var.sub(v,s)]},calcBB$1:({srcArray:a,mult:r,calculate:_=!0},e)=>{let v=$_var.getVarValue("mean",e+"_14_21","var")||$_var.setVarValue("mean",e+"_14_21",$_var.na,"var"),s=$_var.getVarValue("dev",e+"_14_22","var")||$_var.setVarValue("dev",e+"_14_22",$_var.na,"var");return _&&($_var.againAssignParse(v,a.avg(e+"_25_16")),v=a.avg(e+"_25_16"),$_var.setVarValue("mean",e+"_14_21",v,"var"),$_var.againAssignParse(s,a.stdev(e+"_26_16")*r),s=a.stdev(e+"_26_16")*r,$_var.setVarValue("dev",e+"_14_22",s,"var")),[v,$_var.add(v,s),$_var.sub(v,s)]},Scanner:$_var.getTypeInstance({enabled:void 0,ticker:void 0,timeframe:void 0},[])};'};class Fd{constructor(){Object.defineProperty(this,"_inlayHints",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_editor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_importCompleteLibrary",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_funcs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._inlayHints=new Map,this._importCompleteLibrary=new Map,this._funcs=new Map}get inlayHints(){return[...this._inlayHints.values()]}setEditor(n){this._editor=n}async setInlayHints(n){const{endLine:s,endColumn:o,name:l,libraryId:c,libraryName:u}=n;if(this._importCompleteLibrary.has(c)){const f=this._funcs.get(c);return((f==null?void 0:f.name)!==l||!l&&!this._inlayHints.has(c))&&(this._updateFuncNames(l||u,c),this._inlayHintsHandle(n)),this._importCompleteLibrary.get(c)}return this._importCompleteLibrary.set(c,co),this._inlayHints.set(c,{label:"载入中...",position:{column:o,lineNumber:s},paddingLeft:!0}),this.triggerInlayHints(),this._updateFuncNames(l||u,c),setTimeout(()=>{this._inlayHints.has(c)&&this._inlayHintsHandle(n)},2e3),co}deleteInlayHints(n){this._inlayHints.delete(n)}clearInlayHints(){this._inlayHints.clear()}triggerInlayHints(){this._editor&&this._editor.updateOptions({inlayHints:{fontFamily:String(Date.now())}})}_updateFuncNames(n,s){const o=this._importCompleteLibrary.get(s);if(!o)return;const l=o.functions.map(c=>`${n}.${c.name}`);this._funcs.set(s,{name:n,funcs:l}),this._updateMonarchTokens()}_setNoNameInlayHints(n){const{endLine:s,endColumn:o,libraryId:l,libraryName:c}=n;this._inlayHints.set(l,{label:`as ${c}`,position:{column:o,lineNumber:s},paddingLeft:!0})}_inlayHintsHandle(n){const{name:s,libraryId:o}=n;s?this._inlayHints.delete(o):this._setNoNameInlayHints(n),this.triggerInlayHints()}_updateMonarchTokens(){const n=[...this._funcs.values()].map(l=>l.funcs.join("|")),s=new RegExp("\\b("+n.join("|")+")(?=\\s*\\()"),o=[...Nr.tokenizer.root];o.splice(15,0,[s,"meta.function-call"]),qe.languages.setMonarchTokensProvider(Ee,{...Nr,tokenizer:{...Nr.tokenizer,root:o}})}}const Gs=new Fd;function Bd(a,n,s){var R;const o={startLineNumber:n.lineNumber,startColumn:1,endLineNumber:n.lineNumber,endColumn:n.column},l=a.getValueInRange(o);if(/^\/\/\s*@/.test(l))return{suggestions:qt.annotationSuggestions};if(s.triggerCharacter==="@")return{suggestions:[]};const c=l.match(/([\w.]+)$/)||[];if(!c.length)return{suggestions:[]};const u=(R=c[0])==null?void 0:R.match(/.*[^\w.]+([\w.]+)(?=\.)|([\w.]+)(?=\.)/),f=u?u[1]?u[1]:u[2]?u[2]:void 0:void 0,x=a.getWordUntilPosition(n),g=Er.parseCurrentInputFunc(l),h={startLineNumber:n.lineNumber,endLineNumber:n.lineNumber,startColumn:x.startColumn,endColumn:x.endColumn},D=a.getValueInRange({...h,startColumn:x.endColumn,endColumn:x.endColumn+1});qt.nextIsBracket=D==="(";let P=po(qt.getSuggestions(f)||[],h);if(c[0]==="."&&(P=[]),g&&!f&&!/=\s*\w+$/.test(l)){const U=po(qt.getArgSuggestions(g.funcName)||[],h);P=P.concat(U)}return{suggestions:P||[],dispose:()=>{}}}function Ud(a){if(a.kind!==1)return a;const{originInsertText:n}=a;return qt.nextIsBracket?a.insertText=n:a.insertText=n+qt.bracketsPostfix,a}function Kd(a,n){var o;const s=Er.parseLineContentFuncVar(n.column,n.lineNumber,a,n);if(s!=null&&s.libraryId)return{contents:[{value:Id(s)}]};if((o=s==null?void 0:s.docValue)!=null&&o.length){const l=Ad(s.docValue,s.index,s.isBuildIn);if(l)return{contents:[{value:l}]}}return{contents:[]}}function $d(a,n){var D,P;const s={startLineNumber:n.lineNumber,endLineNumber:n.lineNumber,startColumn:1,endColumn:n.column},o=a.getValueInRange(s),l=a.findMatches(String(Nd),s,!0,!1,null,!0),c=a.findMatches(String(Ld),s,!0,!1,null,!0),u=(D=l.pop())==null?void 0:D.matches,f=(P=c.pop())==null?void 0:P.matches;let x=!1;l.length%2===0?u&&u[0]==='"'&&(x=!0):u&&!u[0]&&(x=!0);let g=!1;c.length%2===0?f&&f[0]==="'"&&(g=!0):f&&!f[0]&&(g=!0);const h=Er.parseCurrentInputFuncAndArg(o,g,x);if(h){const{funcName:R,args:U}=h,L=Md.getSignatureHelpValues(R,U);if(L)return{value:L,dispose:()=>{}}}return null}function jd(a){let n=a.findMatches(pn.colorMatchesRegStr,!0,!0,!1,null,!0);return n=n.filter(o=>{const l=a.getValueInRange({...o.range,startColumn:0});return l.indexOf("//")===-1||l.indexOf("//")>o.range.endColumn}),pn.getDocumentColors(n)}function Hd(a,n){return pn.getDocumentColorPresentations(a,n)||[]}function Wd(a,n){const s=a.getModel(),o=Er.parseLineContentFuncVar(n.startColumn+1,n.startLineNumber,s);if(!o||o.isBuildIn||!o.docValue||!o.docValue[0].pos)return o!=null&&o.isBuildIn?o:void 0;const{lineNumber:l,column:c}=o.docValue[0].pos,u={startLineNumber:l,endLineNumber:l,startColumn:c,endColumn:c};a.revealRangeInCenterIfOutsideViewport(u),a.setSelection(u)}function Gd(a,n){return Er.parseLineContentFuncVar(n.column,n.lineNumber,a,n)?{uri:a.uri,range:{startLineNumber:n.lineNumber,endLineNumber:n.lineNumber,startColumn:n.column-1,endColumn:n.column-1}}:null}function po(a,n){return a.map(s=>(s.range=n,s))}function Xd(){return{hints:Gs.inlayHints,dispose:()=>{}}}var ds={},ms=lp;if(process.env.NODE_ENV==="production")ds.createRoot=ms.createRoot,ds.hydrateRoot=ms.hydrateRoot;else{var Xs=ms.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;ds.createRoot=function(a,n){Xs.usingClientEntryPoint=!0;try{return ms.createRoot(a,n)}finally{Xs.usingClientEntryPoint=!1}},ds.hydrateRoot=function(a,n,s){Xs.usingClientEntryPoint=!0;try{return ms.hydrateRoot(a,n,s)}finally{Xs.usingClientEntryPoint=!1}}}var Ge;(function(a){a.added="added",a.removed="removed",a.modified="modified"})(Ge||(Ge={}));const Vd=(a,n)=>{const{close:s,retracement:o}=a,[l,c]=F.useState("modified");return F.useImperativeHandle(n,()=>({updateType(u){c(u)}})),E.jsxs("div",{className:`content-popup content-${l}-popup`,children:[E.jsx("div",{className:`triangle-popup triangle-${l}-popup`}),E.jsxs("div",{className:`header-popup header-${l}-popup`,children:[E.jsx("div",{className:"title-popup",children:"Local working changes"}),E.jsx("div",{className:"actions-popup",children:E.jsx("div",{onClick:s,"data-role":"button",className:"button-popup","data-name":"button-close-diff",children:E.jsx("span",{className:"icon-popup",role:"img",children:E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12",width:"12",height:"12",children:E.jsx("path",{stroke:"currentColor",strokeWidth:"1.2",d:"m1.5 1.5 9 9m0-9-9 9"})})})})})]}),E.jsx("div",{id:"diffEditorContainer",style:{height:"100%"}})]})},Yd=F.forwardRef(Vd);class Qd{constructor(n,s,o=!0){Object.defineProperty(this,"_domNode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_top",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_content",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._id=n,this._domNode=document.createElement("div"),this._domNode.style.display="none",this._domNode.style.width=o?"calc(100% - 134px)":"calc(100% - 14px)",this._domNode.style.height="200px",s==null||s.onDidScrollChange(this.scrollChangeHandler.bind(this)),ds.createRoot(this._domNode).render(E.jsx(Yd,{ref:l=>this._content=l,close:()=>this._close(),retracement:this._retracement})),this._top=0}_close(){this._domNode.style.display="none"}_retracement(){}getId(){return this._id}getDomNode(){return this._domNode}getPosition(){return null}show(n,s,o){var l;this._top=s,(l=this._content)==null||l.updateType(o),this._domNode.style.top=`${n}px`,this._domNode.style.display="block"}hide(){this._domNode.style.display="none"}scrollChangeHandler(n){const s=n.scrollTop;this._domNode.style.top=`${this._top-s}px`}}function ar(){}ar.prototype={diff:function(n,s){var o,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c=l.callback;typeof l=="function"&&(c=l,l={}),this.options=l;var u=this;function f(O){return c?(setTimeout(function(){c(void 0,O)},0),!0):O}n=this.castInput(n),s=this.castInput(s),n=this.removeEmpty(this.tokenize(n)),s=this.removeEmpty(this.tokenize(s));var x=s.length,g=n.length,h=1,D=x+g;l.maxEditLength&&(D=Math.min(D,l.maxEditLength));var P=(o=l.timeout)!==null&&o!==void 0?o:1/0,R=Date.now()+P,U=[{oldPos:-1,lastComponent:void 0}],L=this.extractCommon(U[0],s,n,0);if(U[0].oldPos+1>=g&&L+1>=x)return f([{value:this.join(s),count:s.length}]);var X=-1/0,ee=1/0;function W(){for(var O=Math.max(X,-h);O<=Math.min(ee,h);O+=2){var T=void 0,M=U[O-1],K=U[O+1];M&&(U[O-1]=void 0);var ne=!1;if(K){var ae=K.oldPos-O;ne=K&&0<=ae&&ae<x}var ie=M&&M.oldPos+1<g;if(!ne&&!ie){U[O]=void 0;continue}if(!ie||ne&&M.oldPos+1<K.oldPos?T=u.addToPath(K,!0,void 0,0):T=u.addToPath(M,void 0,!0,1),L=u.extractCommon(T,s,n,O),T.oldPos+1>=g&&L+1>=x)return f(Zd(u,T.lastComponent,s,n,u.useLongestToken));U[O]=T,T.oldPos+1>=g&&(ee=Math.min(ee,O-1)),L+1>=x&&(X=Math.max(X,O+1))}h++}if(c)(function O(){setTimeout(function(){if(h>D||Date.now()>R)return c();W()||O()},0)})();else for(;h<=D&&Date.now()<=R;){var B=W();if(B)return B}},addToPath:function(n,s,o,l){var c=n.lastComponent;return c&&c.added===s&&c.removed===o?{oldPos:n.oldPos+l,lastComponent:{count:c.count+1,added:s,removed:o,previousComponent:c.previousComponent}}:{oldPos:n.oldPos+l,lastComponent:{count:1,added:s,removed:o,previousComponent:c}}},extractCommon:function(n,s,o,l){for(var c=s.length,u=o.length,f=n.oldPos,x=f-l,g=0;x+1<c&&f+1<u&&this.equals(s[x+1],o[f+1]);)x++,f++,g++;return g&&(n.lastComponent={count:g,previousComponent:n.lastComponent}),n.oldPos=f,x},equals:function(n,s){return this.options.comparator?this.options.comparator(n,s):n===s||this.options.ignoreCase&&n.toLowerCase()===s.toLowerCase()},removeEmpty:function(n){for(var s=[],o=0;o<n.length;o++)n[o]&&s.push(n[o]);return s},castInput:function(n){return n},tokenize:function(n){return n.split("")},join:function(n){return n.join("")}};function Zd(a,n,s,o,l){for(var c=[],u;n;)c.push(n),u=n.previousComponent,delete n.previousComponent,n=u;c.reverse();for(var f=0,x=c.length,g=0,h=0;f<x;f++){var D=c[f];if(D.removed){if(D.value=a.join(o.slice(h,h+D.count)),h+=D.count,f&&c[f-1].added){var R=c[f-1];c[f-1]=c[f],c[f]=R}}else{if(!D.added&&l){var P=s.slice(g,g+D.count);P=P.map(function(L,X){var ee=o[h+X];return ee.length>L.length?ee:L}),D.value=a.join(P)}else D.value=a.join(s.slice(g,g+D.count));g+=D.count,D.added||(h+=D.count)}}var U=c[x-1];return x>1&&typeof U.value=="string"&&(U.added||U.removed)&&a.equals("",U.value)&&(c[x-2].value+=U.value,c.pop()),c}var mo=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,uo=/\S/,yo=new ar;yo.equals=function(a,n){return this.options.ignoreCase&&(a=a.toLowerCase(),n=n.toLowerCase()),a===n||this.options.ignoreWhitespace&&!uo.test(a)&&!uo.test(n)},yo.tokenize=function(a){for(var n=a.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),s=0;s<n.length-1;s++)!n[s+1]&&n[s+2]&&mo.test(n[s])&&mo.test(n[s+2])&&(n[s]+=n[s+2],n.splice(s+1,2),s--);return n};var dn=new ar;dn.tokenize=function(a){this.options.stripTrailingCr&&(a=a.replace(/\r\n/g,`
136
+ `));var n=[],s=a.split(/(\n|\r\n)/);s[s.length-1]||s.pop();for(var o=0;o<s.length;o++){var l=s[o];o%2&&!this.options.newlineIsToken?n[n.length-1]+=l:(this.options.ignoreWhitespace&&(l=l.trim()),n.push(l))}return n};function Jd(a,n,s){return dn.diff(a,n,s)}var em=new ar;em.tokenize=function(a){return a.split(/(\S.+?[.!?])(?=\s+|$)/)};var tm=new ar;tm.tokenize=function(a){return a.split(/([{}:;,]|\s+)/)};function Vs(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Vs=function(n){return typeof n}:Vs=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Vs(a)}var rm=Object.prototype.toString,us=new ar;us.useLongestToken=!0,us.tokenize=dn.tokenize,us.castInput=function(a){var n=this.options,s=n.undefinedReplacement,o=n.stringifyReplacer,l=o===void 0?function(c,u){return typeof u>"u"?s:u}:o;return typeof a=="string"?a:JSON.stringify(mn(a,null,null,l),l," ")},us.equals=function(a,n){return ar.prototype.equals.call(us,a.replace(/,([\r\n])/g,"$1"),n.replace(/,([\r\n])/g,"$1"))};function mn(a,n,s,o,l){n=n||[],s=s||[],o&&(a=o(l,a));var c;for(c=0;c<n.length;c+=1)if(n[c]===a)return s[c];var u;if(rm.call(a)==="[object Array]"){for(n.push(a),u=new Array(a.length),s.push(u),c=0;c<a.length;c+=1)u[c]=mn(a[c],n,s,o,l);return n.pop(),s.pop(),u}if(a&&a.toJSON&&(a=a.toJSON()),Vs(a)==="object"&&a!==null){n.push(a),u={},s.push(u);var f=[],x;for(x in a)a.hasOwnProperty(x)&&f.push(x);for(f.sort(),c=0;c<f.length;c+=1)x=f[c],u[x]=mn(a[x],n,s,o,x);n.pop(),s.pop()}else u=a;return u}var un=new ar;un.tokenize=function(a){return a.slice()},un.join=un.removeEmpty=function(a){return a};class sm{constructor(n,s,o=""){Object.defineProperty(this,"_editor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_monaco",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_originalModel",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_oldDecorations",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_diffEditor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_diffPopupWidget",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_didChangeListener",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_onMouseDownListener",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._editor=n,this._monaco=s,this._originalModel=this._monaco.editor.createModel(o,Ee),this._oldDecorations=[],this._init(),this._eventListening()}_init(){var n;this._changeEvent(),this._didChangeListener=(n=this._editor.getModel())==null?void 0:n.onDidChangeContent(()=>this._changeEvent())}update(n){var s,o;if(this._originalModel=this._monaco.editor.createModel(n,Ee),n!==((s=this._editor.getModel())==null?void 0:s.getValue())){this._changeEvent();return}(o=this._editor.getModel())==null||o.deltaDecorations(this._oldDecorations,[]),this._oldDecorations=[]}dispose(){var n,s,o,l;this._diffPopupWidget&&(this._diffPopupWidget.hide(),this._editor.removeOverlayWidget(this._diffPopupWidget)),(n=this._didChangeListener)==null||n.dispose(),(s=this._onMouseDownListener)==null||s.dispose(),(o=this._editor.getModel())==null||o.deltaDecorations(this._oldDecorations,[]),this._oldDecorations=[],(l=this._diffEditor)==null||l.dispose(),this._diffEditor=void 0}_changesHandle(n){let s=0,o;const l=[];let c=0;for(const u of n){const{added:f,removed:x,count:g=1,value:h}=u;f?o&&o.removed?(s=this._changeHandle(l,s,c,g,Ge.modified),c=0,o=void 0):(o&&o.added&&(s=this._changeHandle(l,s,c,o.count||1,Ge.added),c=0),o=u):x?o&&o.added?(s=this._changeHandle(l,s,c,o.count||1,Ge.modified),c=0,o=void 0):(o&&o.removed&&this._addDecorationList(l,s,Ge.removed),o=u):/^\n+$/.test(h)?o&&(o.added||o.removed)?c=g:s+=g:(o&&o.added?(s=this._changeHandle(l,s,c,o.count||1,Ge.added),c=0,o=void 0):o&&o.removed&&(this._addDecorationList(l,s,Ge.removed),o=void 0),s+=g)}return o&&o.added?s=this._changeHandle(l,s,c,o.count||1,Ge.added):o&&o.removed&&this._addDecorationList(l,s,Ge.removed),l}_changeHandle(n,s,o,l,c){for(let u=1;u<=l;u++)this._addDecorationList(n,s+u,c);return s+=l+o,s}_addDecorationList(n,s,o){n.push({range:new this._monaco.Range(s,1,s,1),options:{isWholeLine:!0,linesDecorationsClassName:`line-${o} line-decoration_${o}`}})}_changeEvent(){var l,c;const n=Jd(this._originalModel.getValue(),((l=this._editor.getModel())==null?void 0:l.getValue())||""),s=this._changesHandle(n),o=((c=this._editor.getModel())==null?void 0:c.deltaDecorations(this._oldDecorations,s))||[];this._oldDecorations=o}_eventListening(){const n=new Qd("diff.popup.widget",this._editor);this._editor.addOverlayWidget(n),this._onMouseDownListener=this._editor.onMouseDown(s=>this._onMouseDownHandle(s)),this._diffPopupWidget=n}_onMouseDownHandle(n){var u,f,x,g,h,D;const s=(u=n.target.element)==null?void 0:u.classList,o=s==null?void 0:s.contains(`line-${Ge.added}`),l=s==null?void 0:s.contains(`line-${Ge.modified}`),c=s==null?void 0:s.contains(`line-${Ge.removed}`);if(o||l||c){const P=((x=(f=n==null?void 0:n.target)==null?void 0:f.position)==null?void 0:x.lineNumber)||0,R=((g=this._editor)==null?void 0:g.getTopForLineNumber(P+1))||0,U=((h=this._editor)==null?void 0:h.getScrollTop())||0,L=o?Ge.added:l?Ge.modified:Ge.removed;(D=this._diffPopupWidget)==null||D.show(R-U,R,L),this._diffEditor||(this._diffEditor=this._createDiffEditor()),this._diffEditor.setModel({original:this._originalModel,modified:this._editor.getModel()}),this._diffEditor.revealLineInCenter(P+1)}}_createDiffEditor(){return this._monaco.editor.createDiffEditor(document.getElementById("diffEditorContainer"),{renderSideBySide:!1,quickSuggestions:!1,suggestOnTriggerCharacters:!1,hover:{enabled:!1},parameterHints:{enabled:!1}})}}class am{constructor(n,s,o){Object.defineProperty(this,"_editor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_monaco",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_decorations",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_changPositionListener",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_originalScript",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_onActionTrigger",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_onLinkOpen",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._editor=n,this._monaco=s,this._onActionTrigger=o,this._init()}addLinkOpenFunc(n){this._onLinkOpen=n}updateActionTrigger(n){this._onActionTrigger=n}setModelMarkers(n){this._monaco.editor.setModelMarkers(this._editor.getModel(),"owner",n)}addDiffDecorations(){this._decorations||(this._decorations=new sm(this._editor,this._monaco,this._originalScript))}removeDiffDecorations(){var n;(n=this._decorations)==null||n.dispose(),this._decorations=void 0}setValue(n){this._editor.setValue(n),this._editor.setScrollTop(0)}setPosition(n){var s,o,l;(s=this._editor)==null||s.setPosition(n),(o=this._editor)==null||o.revealPositionInCenter(n),(l=this._editor)==null||l.focus()}setOriginalScript(n){var s;this._originalScript=n,(s=this._decorations)==null||s.update(n)}getEditorLayout(){var o;const n=this._editor.getContentHeight(),s=(o=this._editor.getModel())==null?void 0:o.getLineCount();return{contentHeight:n,lineCount:s}}setEditorLayout(n,s){var o,l;(l=this._editor)==null||l.layout({height:n,width:s||((o=this._editor)==null?void 0:o.getContainerDomNode().clientWidth)})}_init(){this._register(),this._setOptions(),this._addCommands(),this._addActions(),this._setCursorPosition()}_setCursorPosition(){const n=localStorage.getItem(nn);this._editor.setPosition(n?JSON.parse(n):{lineNumber:1,column:1}),this._editor.focus()}_register(){this._monaco.languages.register({id:Ee}),this._monaco.languages.registerCompletionItemProvider(Ee,{triggerCharacters:[".","@"],provideCompletionItems:Bd,resolveCompletionItem:Ud}),this._monaco.languages.registerHoverProvider(Ee,{provideHover:Kd}),this._monaco.languages.registerSignatureHelpProvider(Ee,{signatureHelpTriggerCharacters:["(",","],provideSignatureHelp:$d}),this._monaco.languages.registerColorProvider(Ee,{provideColorPresentations:Hd,provideDocumentColors:jd}),this._monaco.editor.registerEditorOpener({openCodeEditor:(n,s,o)=>{const l=Wd(n,o);if(l){const{index:c,docValue:u}=l,{title:f,name:x}=u[c];let g="";switch(f){case ve.keywords:g="kw";break;case ve.functions:g="fun";break;case ve.variables:g="var";break;case ve.types:g="type";break;case ve.constants:g="const";break}this._onLinkOpen&&this._onLinkOpen(`${g}_${x}`,c)}return!0}}),this._monaco.editor.registerLinkOpener({open:n=>(this._onLinkOpen&&this._onLinkOpen(n.fragment),!0)}),this._monaco.languages.registerDefinitionProvider(Ee,{provideDefinition:Gd}),this._monaco.languages.registerInlayHintsProvider(Ee,{provideInlayHints:Xd})}_setOptions(){this._monaco.editor.defineTheme("vs-dark",cn),this._monaco.editor.defineTheme("vs",ln),this._monaco.languages.setMonarchTokensProvider(Ee,Nr),this._monaco.languages.setLanguageConfiguration(Ee,on)}_addCommands(){this._monaco.editor.addCommand({id:"tcc.editor.function",run:(n,s)=>{var o;if(qt.nextIsBracket){const l=this._editor.getPosition();l&&this._editor.setPosition(Object.assign(l,{column:l.column+1}))}(o=this._editor.getAction(s))==null||o.run()}})}_addActions(){this._editor.addAction({id:"tcc-save-script",label:"保存脚本",keybindings:[this._monaco.KeyMod.CtrlCmd|this._monaco.KeyCode.KeyS],contextMenuGroupId:"9_modification",contextMenuOrder:1,run:()=>{this._onActionTrigger&&this._onActionTrigger(A.Actions.Save)}}),this._editor.addAction({id:"tcc-find-replace-line",label:"寻找/替换",keybindings:[this._monaco.KeyMod.CtrlCmd|this._monaco.KeyCode.KeyF],contextMenuGroupId:"9_cutcopypaste",contextMenuOrder:5,run:()=>{this.openFind(),this._onActionTrigger&&this._onActionTrigger(A.Actions.Find)}}),this._editor.addAction({id:"tcc-trigger-console-script",label:"切换控制台",keybindings:[this._monaco.KeyMod.CtrlCmd|this._monaco.KeyCode.Backquote],contextMenuGroupId:"z_commands",contextMenuOrder:0,run:()=>{this._onActionTrigger&&this._onActionTrigger(A.Actions.TriggerConsole)}}),this._editor.addAction({id:"tcc-run-script",label:"运行脚本",keybindings:[this._monaco.KeyMod.CtrlCmd|this._monaco.KeyCode.Enter],run:()=>{this._onActionTrigger&&this._onActionTrigger(A.Actions.RunScript)}}),this._editor.addAction({id:"tcc-open-script",label:"打开脚本",keybindings:[this._monaco.KeyMod.CtrlCmd|this._monaco.KeyCode.KeyO],contextMenuGroupId:"9_modification",contextMenuOrder:2,run:()=>{this._onActionTrigger&&this._onActionTrigger(A.Actions.Open)}})}openFind(){this._editor.focus(),this._editor.trigger("click","actions.find",null)}gotoLine(){this._editor.focus(),this._editor.trigger("click","editor.action.gotoLine",null)}onChangeCursorPosition(n){this._changPositionListener&&this._changPositionListener.dispose();const s=localStorage.getItem(nn);n&&n(s?JSON.parse(s):{lineNumber:1,column:1}),this._changPositionListener=this._editor.onDidChangeCursorPosition(o=>{localStorage.setItem(nn,JSON.stringify(o.position)),n&&n(o.position)})}}/**
137
137
  * @license
138
138
  * Copyright 2019 Google LLC
139
139
  * SPDX-License-Identifier: Apache-2.0
140
- */const _o=Symbol("Comlink.proxy"),nm=Symbol("Comlink.endpoint"),im=Symbol("Comlink.releaseProxy"),yn=Symbol("Comlink.finalizer"),Ys=Symbol("Comlink.thrown"),fo=a=>typeof a=="object"&&a!==null||typeof a=="function",om={canHandle:a=>fo(a)&&a[_o],serialize(a){const{port1:n,port2:s}=new MessageChannel;return bo(a,n),[s,[s]]},deserialize(a){return a.start(),_n(a)}},lm={canHandle:a=>fo(a)&&Ys in a,serialize({value:a}){let n;return a instanceof Error?n={isError:!0,value:{message:a.message,name:a.name,stack:a.stack}}:n={isError:!1,value:a},[n,[]]},deserialize(a){throw a.isError?Object.assign(new Error(a.value.message),a.value):a.value}},go=new Map([["proxy",om],["throw",lm]]);function cm(a,n){for(const s of a)if(n===s||s==="*"||s instanceof RegExp&&s.test(n))return!0;return!1}function bo(a,n=globalThis,s=["*"]){n.addEventListener("message",function o(l){if(!l||!l.data)return;if(!cm(s,l.origin)){console.warn(`Invalid origin '${l.origin}' for comlink proxy`);return}const{id:c,type:u,path:f}=Object.assign({path:[]},l.data),x=(l.data.argumentList||[]).map(gr);let g;try{const h=f.slice(0,-1).reduce((M,O)=>M[O],a),T=f.reduce((M,O)=>M[O],a);switch(u){case"GET":g=T;break;case"SET":h[f.slice(-1)[0]]=gr(l.data.value),g=!0;break;case"APPLY":g=T.apply(h,x);break;case"CONSTRUCT":{const M=new T(...x);g=gn(M)}break;case"ENDPOINT":{const{port1:M,port2:O}=new MessageChannel;bo(a,O),g=ym(M,[M])}break;case"RELEASE":g=void 0;break;default:return}}catch(h){g={value:h,[Ys]:0}}Promise.resolve(g).catch(h=>({value:h,[Ys]:0})).then(h=>{const[T,M]=ea(h);n.postMessage(Object.assign(Object.assign({},T),{id:c}),M),u==="RELEASE"&&(n.removeEventListener("message",o),xo(n),yn in a&&typeof a[yn]=="function"&&a[yn]())}).catch(h=>{const[T,M]=ea({value:new TypeError("Unserializable return value"),[Ys]:0});n.postMessage(Object.assign(Object.assign({},T),{id:c}),M)})}),n.start&&n.start()}function pm(a){return a.constructor.name==="MessagePort"}function xo(a){pm(a)&&a.close()}function _n(a,n){return fn(a,[],n)}function Qs(a){if(a)throw new Error("Proxy has been released and is not useable")}function ho(a){return Lr(a,{type:"RELEASE"}).then(()=>{xo(a)})}const Zs=new WeakMap,Js="FinalizationRegistry"in globalThis&&new FinalizationRegistry(a=>{const n=(Zs.get(a)||0)-1;Zs.set(a,n),n===0&&ho(a)});function dm(a,n){const s=(Zs.get(n)||0)+1;Zs.set(n,s),Js&&Js.register(a,n,a)}function mm(a){Js&&Js.unregister(a)}function fn(a,n=[],s=function(){}){let o=!1;const l=new Proxy(s,{get(c,u){if(Qs(o),u===im)return()=>{mm(l),ho(a),o=!0};if(u==="then"){if(n.length===0)return{then:()=>l};const f=Lr(a,{type:"GET",path:n.map(x=>x.toString())}).then(gr);return f.then.bind(f)}return fn(a,[...n,u])},set(c,u,f){Qs(o);const[x,g]=ea(f);return Lr(a,{type:"SET",path:[...n,u].map(h=>h.toString()),value:x},g).then(gr)},apply(c,u,f){Qs(o);const x=n[n.length-1];if(x===nm)return Lr(a,{type:"ENDPOINT"}).then(gr);if(x==="bind")return fn(a,n.slice(0,-1));const[g,h]=wo(f);return Lr(a,{type:"APPLY",path:n.map(T=>T.toString()),argumentList:g},h).then(gr)},construct(c,u){Qs(o);const[f,x]=wo(u);return Lr(a,{type:"CONSTRUCT",path:n.map(g=>g.toString()),argumentList:f},x).then(gr)}});return dm(l,a),l}function um(a){return Array.prototype.concat.apply([],a)}function wo(a){const n=a.map(ea);return[n.map(s=>s[0]),um(n.map(s=>s[1]))]}const vo=new WeakMap;function ym(a,n){return vo.set(a,n),a}function gn(a){return Object.assign(a,{[_o]:!0})}function ea(a){for(const[n,s]of go)if(s.canHandle(a)){const[o,l]=s.serialize(a);return[{type:"HANDLER",name:n,value:o},l]}return[{type:"RAW",value:a},vo.get(a)||[]]}function gr(a){switch(a.type){case"HANDLER":return go.get(a.name).deserialize(a.value);case"RAW":return a.value}}function Lr(a,n,s){return new Promise(o=>{const l=_m();a.addEventListener("message",function c(u){!u.data||!u.data.id||u.data.id!==l||(a.removeEventListener("message",c),o(u.data))}),a.start&&a.start(),a.postMessage(Object.assign({id:l},n),s)})}function _m(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}const To=new Worker(new URL(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/scriptsRunWorker-CR8yhfY4.js").href:new URL("assets/scriptsRunWorker-CR8yhfY4.js",typeof document>"u"?location.href:document.currentScript&&document.currentScript.src||document.baseURI).href),typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Us&&Us.src||new URL("trading-vue-editor.umd.cjs",document.baseURI).href),{type:"module",name:"Run TccScript Server"});To.onerror=a=>{console.error(a)};async function Do(a){return await Gs.setInlayHints(a)}const ko=_n(To),Io=_n(new Worker(new URL(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/parserTccWorker-DmsbBKf_.js").href:new URL("assets/parserTccWorker-DmsbBKf_.js",typeof document>"u"?location.href:document.currentScript&&document.currentScript.src||document.baseURI).href),typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Us&&Us.src||new URL("trading-vue-editor.umd.cjs",document.baseURI).href),{type:"module",name:"Parser TccScript Server"}));async function Ao(a,n=!1){const{functions:s,types:o,constants:l,variables:c,methods:u}=lt;return await Io.parseTcc(a,n,gn(Do),{functions:Object.fromEntries(s),methods:Object.fromEntries(u),types:Object.fromEntries(o),constants:Object.fromEntries(l),variables:Object.fromEntries(c)})}async function fm(a,n){const{functions:s,types:o,constants:l,variables:c,methods:u}=lt;return await Io.parseLibraryCode(a,n,gn(Do),{functions:Object.fromEntries(s),methods:Object.fromEntries(u),types:Object.fromEntries(o),constants:Object.fromEntries(l),variables:Object.fromEntries(c)})}async function qo(a,n,s=!0){return await ko.runScript(a,n,s)}async function gm(a){return await ko.removeScript(a)}function bm(a){return new Worker(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/editor.worker-CT5Cb1wO.js").href:new URL("assets/editor.worker-CT5Cb1wO.js",typeof document>"u"?location.href:document.currentScript&&document.currentScript.src||document.baseURI).href),{name:a==null?void 0:a.name})}self.MonacoEnvironment={getWorker(){return new bm({name:"Editor Worker"})}},sn.config({monaco:pp});let Co={};const xm=(a,n)=>{const{height:s,width:o,theme:l,options:c,hasDiff:u,readOnly:f,defaultValue:x,onChange:g,onLinkOpen:h,onDeclareConfigChange:T,onCursorPositionChange:M,onActionTrigger:O,onEditorDidMount:B}=a,P=R.useRef(null);R.useImperativeHandle(n,()=>({setOriginalScript(A){var k;(k=P.current)==null||k.setOriginalScript(A)},setScript(A){var k;(k=P.current)==null||k.setValue(A)},gotoLine(){var A;(A=P.current)==null||A.gotoLine()},getEditorLayout(){var A;return(A=P.current)==null?void 0:A.getEditorLayout()},setPosition(A,k){var U;(U=P.current)==null||U.setPosition({column:A,lineNumber:k})},setModelMarkers(A){var k;(k=P.current)==null||k.setModelMarkers(A)}})),R.useEffect(()=>{var A,k;u?(k=P.current)==null||k.addDiffDecorations():(A=P.current)==null||A.removeDiffDecorations()},[u]),R.useEffect(()=>{var A;(A=P.current)==null||A.updateActionTrigger(O)},[O]),R.useEffect(()=>{var A;h&&((A=P.current)==null||A.addLinkOpenFunc(h))},[h]);function X(A,k){var j,ae,oe;qt.initBuiltinsTrees(),Gs.setEditor(A),P.current=new am(A,k,O),h&&((j=P.current)==null||j.addLinkOpenFunc(h)),u&&((ae=P.current)==null||ae.addDiffDecorations()),zd(A),(oe=P.current)==null||oe.setEditorLayout(Number(s));const U=A.getValue();P.current.onChangeCursorPosition(M),g&&g(U),!f&&J(U),B&&B()}const J=R.useCallback(async A=>{var te;const k=Date.now(),{errors:U,functions:j,methods:ae,types:oe,variables:ce,overloadsFuncs:gt,imports:zt,preParserCode:Re}=await Ao(A),Fe=new Map(Object.entries(j)),V=new Map(Object.entries(ae)),be=new Map(Object.entries(oe)),Ee=new Map(Object.entries(ce)),Oe=new Map(Object.entries(zt));Er.setUserDefined({functions:Fe,methods:V,types:be,variables:Ee,imports:Oe},gt),qt.setUserDefind(Fe,be,Ee,V);const bt=U.map(pe=>({...pe,severity:pe.type||Ae.MarkerSeverity.Error}));if(f)return;try{if(!U.length&&Re){const pe=await qo(Re,{isPreParser:!0});io.isEqual(pe,Co)||(Co=pe,T&&T(pe))}}catch(pe){console.log(pe),U.push({message:pe.message,startLineNumber:0,endLineNumber:0,startColumn:0,endColumn:0})}(te=P.current)==null||te.setModelMarkers(bt);const St=Date.now();console.log((St-k)/1e3)},[T,f]),G=R.useMemo(()=>io.debounce(J,1500),[J]);function F(A){var k;if(f){J(A||"");return}Gs.clearInlayHints(),(k=P.current)==null||k.setModelMarkers([]),A!==void 0&&(g&&g(A),G(A))}return R.useEffect(()=>{const A=document.getElementsByClassName("tvue-script")[0],k=()=>{window.requestAnimationFrame(()=>{var ae;const j=A==null?void 0:A.getBoundingClientRect();(ae=P.current)==null||ae.setEditorLayout((j==null?void 0:j.height)||0,j==null?void 0:j.width)})},U=new ResizeObserver(k);return U.observe(A),()=>{U.unobserve(A),U.disconnect()}},[]),L.jsx(xd,{height:s,width:o||"100%",defaultLanguage:Se,defaultValue:x||`indicator("我的脚本")
140
+ */const _o=Symbol("Comlink.proxy"),nm=Symbol("Comlink.endpoint"),im=Symbol("Comlink.releaseProxy"),yn=Symbol("Comlink.finalizer"),Ys=Symbol("Comlink.thrown"),fo=a=>typeof a=="object"&&a!==null||typeof a=="function",om={canHandle:a=>fo(a)&&a[_o],serialize(a){const{port1:n,port2:s}=new MessageChannel;return bo(a,n),[s,[s]]},deserialize(a){return a.start(),_n(a)}},lm={canHandle:a=>fo(a)&&Ys in a,serialize({value:a}){let n;return a instanceof Error?n={isError:!0,value:{message:a.message,name:a.name,stack:a.stack}}:n={isError:!1,value:a},[n,[]]},deserialize(a){throw a.isError?Object.assign(new Error(a.value.message),a.value):a.value}},go=new Map([["proxy",om],["throw",lm]]);function cm(a,n){for(const s of a)if(n===s||s==="*"||s instanceof RegExp&&s.test(n))return!0;return!1}function bo(a,n=globalThis,s=["*"]){n.addEventListener("message",function o(l){if(!l||!l.data)return;if(!cm(s,l.origin)){console.warn(`Invalid origin '${l.origin}' for comlink proxy`);return}const{id:c,type:u,path:f}=Object.assign({path:[]},l.data),x=(l.data.argumentList||[]).map(gr);let g;try{const h=f.slice(0,-1).reduce((P,R)=>P[R],a),D=f.reduce((P,R)=>P[R],a);switch(u){case"GET":g=D;break;case"SET":h[f.slice(-1)[0]]=gr(l.data.value),g=!0;break;case"APPLY":g=D.apply(h,x);break;case"CONSTRUCT":{const P=new D(...x);g=gn(P)}break;case"ENDPOINT":{const{port1:P,port2:R}=new MessageChannel;bo(a,R),g=ym(P,[P])}break;case"RELEASE":g=void 0;break;default:return}}catch(h){g={value:h,[Ys]:0}}Promise.resolve(g).catch(h=>({value:h,[Ys]:0})).then(h=>{const[D,P]=ea(h);n.postMessage(Object.assign(Object.assign({},D),{id:c}),P),u==="RELEASE"&&(n.removeEventListener("message",o),xo(n),yn in a&&typeof a[yn]=="function"&&a[yn]())}).catch(h=>{const[D,P]=ea({value:new TypeError("Unserializable return value"),[Ys]:0});n.postMessage(Object.assign(Object.assign({},D),{id:c}),P)})}),n.start&&n.start()}function pm(a){return a.constructor.name==="MessagePort"}function xo(a){pm(a)&&a.close()}function _n(a,n){return fn(a,[],n)}function Qs(a){if(a)throw new Error("Proxy has been released and is not useable")}function ho(a){return Lr(a,{type:"RELEASE"}).then(()=>{xo(a)})}const Zs=new WeakMap,Js="FinalizationRegistry"in globalThis&&new FinalizationRegistry(a=>{const n=(Zs.get(a)||0)-1;Zs.set(a,n),n===0&&ho(a)});function dm(a,n){const s=(Zs.get(n)||0)+1;Zs.set(n,s),Js&&Js.register(a,n,a)}function mm(a){Js&&Js.unregister(a)}function fn(a,n=[],s=function(){}){let o=!1;const l=new Proxy(s,{get(c,u){if(Qs(o),u===im)return()=>{mm(l),ho(a),o=!0};if(u==="then"){if(n.length===0)return{then:()=>l};const f=Lr(a,{type:"GET",path:n.map(x=>x.toString())}).then(gr);return f.then.bind(f)}return fn(a,[...n,u])},set(c,u,f){Qs(o);const[x,g]=ea(f);return Lr(a,{type:"SET",path:[...n,u].map(h=>h.toString()),value:x},g).then(gr)},apply(c,u,f){Qs(o);const x=n[n.length-1];if(x===nm)return Lr(a,{type:"ENDPOINT"}).then(gr);if(x==="bind")return fn(a,n.slice(0,-1));const[g,h]=wo(f);return Lr(a,{type:"APPLY",path:n.map(D=>D.toString()),argumentList:g},h).then(gr)},construct(c,u){Qs(o);const[f,x]=wo(u);return Lr(a,{type:"CONSTRUCT",path:n.map(g=>g.toString()),argumentList:f},x).then(gr)}});return dm(l,a),l}function um(a){return Array.prototype.concat.apply([],a)}function wo(a){const n=a.map(ea);return[n.map(s=>s[0]),um(n.map(s=>s[1]))]}const vo=new WeakMap;function ym(a,n){return vo.set(a,n),a}function gn(a){return Object.assign(a,{[_o]:!0})}function ea(a){for(const[n,s]of go)if(s.canHandle(a)){const[o,l]=s.serialize(a);return[{type:"HANDLER",name:n,value:o},l]}return[{type:"RAW",value:a},vo.get(a)||[]]}function gr(a){switch(a.type){case"HANDLER":return go.get(a.name).deserialize(a.value);case"RAW":return a.value}}function Lr(a,n,s){return new Promise(o=>{const l=_m();a.addEventListener("message",function c(u){!u.data||!u.data.id||u.data.id!==l||(a.removeEventListener("message",c),o(u.data))}),a.start&&a.start(),a.postMessage(Object.assign({id:l},n),s)})}function _m(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}const To=new Worker(new URL(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/scriptsRunWorker-CR8yhfY4.js").href:new URL("assets/scriptsRunWorker-CR8yhfY4.js",typeof document>"u"?location.href:document.currentScript&&document.currentScript.src||document.baseURI).href),typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Us&&Us.src||new URL("trading-vue-editor.umd.cjs",document.baseURI).href),{type:"module",name:"Run TccScript Server"});To.onerror=a=>{console.error(a)};async function Do(a){return await Gs.setInlayHints(a)}const ko=_n(To),Io=_n(new Worker(new URL(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/parserTccWorker-DmsbBKf_.js").href:new URL("assets/parserTccWorker-DmsbBKf_.js",typeof document>"u"?location.href:document.currentScript&&document.currentScript.src||document.baseURI).href),typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Us&&Us.src||new URL("trading-vue-editor.umd.cjs",document.baseURI).href),{type:"module",name:"Parser TccScript Server"}));async function Ao(a,n=!1){const{functions:s,types:o,constants:l,variables:c,methods:u}=lt;return await Io.parseTcc(a,n,gn(Do),{functions:Object.fromEntries(s),methods:Object.fromEntries(u),types:Object.fromEntries(o),constants:Object.fromEntries(l),variables:Object.fromEntries(c)})}async function fm(a,n){const{functions:s,types:o,constants:l,variables:c,methods:u}=lt;return await Io.parseLibraryCode(a,n,gn(Do),{functions:Object.fromEntries(s),methods:Object.fromEntries(u),types:Object.fromEntries(o),constants:Object.fromEntries(l),variables:Object.fromEntries(c)})}async function qo(a,n,s=!0){return await ko.runScript(a,n,s)}async function gm(a){return await ko.removeScript(a)}function bm(a){return new Worker(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/editor.worker-CT5Cb1wO.js").href:new URL("assets/editor.worker-CT5Cb1wO.js",typeof document>"u"?location.href:document.currentScript&&document.currentScript.src||document.baseURI).href),{name:a==null?void 0:a.name})}self.MonacoEnvironment={getWorker(){return new bm({name:"Editor Worker"})}},sn.config({monaco:pp});let Co={};const xm=(a,n)=>{const{height:s,width:o,theme:l,options:c,hasDiff:u,readOnly:f,defaultValue:x,onChange:g,onLinkOpen:h,onDeclareConfigChange:D,onCursorPositionChange:P,onActionTrigger:R,onEditorDidMount:U}=a,L=F.useRef(null),X=F.useRef(null);F.useImperativeHandle(n,()=>({setOriginalScript(T){var M;(M=L.current)==null||M.setOriginalScript(T)},setScript(T){var M;(M=L.current)==null||M.setValue(T)},gotoLine(){var T;(T=L.current)==null||T.gotoLine()},getEditorLayout(){var T;return(T=L.current)==null?void 0:T.getEditorLayout()},setPosition(T,M){var K;(K=L.current)==null||K.setPosition({column:T,lineNumber:M})},setModelMarkers(T){var M;(M=L.current)==null||M.setModelMarkers(T)}})),F.useEffect(()=>{var T,M;u?(M=L.current)==null||M.addDiffDecorations():(T=L.current)==null||T.removeDiffDecorations()},[u]),F.useEffect(()=>{var T;(T=L.current)==null||T.updateActionTrigger(R)},[R]),F.useEffect(()=>{var T;h&&((T=L.current)==null||T.addLinkOpenFunc(h))},[h]);function ee(T,M){var ne,ae,ie;qt.initBuiltinsTrees(),Gs.setEditor(T),L.current=new am(T,M,R),h&&((ne=L.current)==null||ne.addLinkOpenFunc(h)),u&&((ae=L.current)==null||ae.addDiffDecorations()),zd(T),(ie=L.current)==null||ie.setEditorLayout(Number(s));const K=T.getValue();L.current.onChangeCursorPosition(P),g&&g(K),!f&&W(K),U&&U()}const W=F.useCallback(async T=>{var be;const M=Date.now(),{errors:K,functions:ne,methods:ae,types:ie,variables:gt,overloadsFuncs:zt,imports:Ke,preParserCode:Fe}=await Ao(T),V=new Map(Object.entries(ne)),ge=new Map(Object.entries(ae)),Ne=new Map(Object.entries(ie)),Me=new Map(Object.entries(gt)),bt=new Map(Object.entries(Ke));Er.setUserDefined({functions:V,methods:ge,types:Ne,variables:Me,imports:bt},zt),qt.setUserDefind(V,Ne,Me,ge);const St=K.map(De=>({...De,severity:De.type||qe.MarkerSeverity.Error}));if(f)return;try{if(!K.length&&Fe){const De=await qo(Fe,{isPreParser:!0});io.isEqual(De,Co)||(Co=De,D&&D(De))}}catch(De){console.log(De),K.push({message:De.message,startLineNumber:0,endLineNumber:0,startColumn:0,endColumn:0})}(be=L.current)==null||be.setModelMarkers(St);const te=Date.now();console.log((te-M)/1e3)},[D,f]),B=F.useMemo(()=>io.debounce(W,1500),[W]);function O(T){var M;if(f){W(T||"");return}Gs.clearInlayHints(),(M=L.current)==null||M.setModelMarkers([]),T!==void 0&&(g&&g(T),B(T))}return F.useEffect(()=>{const T=()=>{window.requestAnimationFrame(()=>{var ne,ae;const K=(ne=X.current)==null?void 0:ne.getBoundingClientRect();(ae=L.current)==null||ae.setEditorLayout((K==null?void 0:K.height)||0,K==null?void 0:K.width)})},M=new ResizeObserver(T);return X.current&&M.observe(X.current),()=>{X.current&&M.unobserve(X.current),M.disconnect()}},[]),E.jsx("div",{ref:X,children:E.jsx(xd,{height:s,width:o||"100%",defaultLanguage:Ee,defaultValue:x||`indicator("我的脚本")
141
141
  plot(close)
142
- `,theme:l||"vs-dark",className:`tvue-script ${l||"vs-dark"}`,options:{colorDecorators:!0,useShadowDOM:!1,matchOnWordStartOnly:!0,automaticLayout:!1,suggest:{filterGraceful:!0},fontSize:13,...f?Rd:{},readOnlyMessage:{value:"该脚本是只读的。它无法被编辑。"},...c},onMount:X,onChange:F})},hm=R.forwardRef(xm),wm=a=>{const{theme:n,modified:s,original:o,height:l,width:c,renderSideBySide:u=!0}=a,f=R.useCallback((x,g)=>{g.languages.register({id:Se}),g.editor.defineTheme("vs-dark",cn),g.editor.defineTheme("vs",ln),g.languages.setMonarchTokensProvider(Se,Nr),g.languages.setLanguageConfiguration(Se,on)},[]);return L.jsx(yd,{height:l||"90vh",width:c||"100%",theme:n||"vs-dark",options:{readOnly:!0,renderSideBySide:u,scrollBeyondLastLine:!1},language:Se,modified:s,original:o,onMount:f})};q.VMarkerSeverity=void 0,function(a){a[a.Hint=1]="Hint",a[a.Info=2]="Info",a[a.Warning=4]="Warning",a[a.Error=8]="Error"}(q.VMarkerSeverity||(q.VMarkerSeverity={}));var ta={},vm=function(){var a=document.getSelection();if(!a.rangeCount)return function(){};for(var n=document.activeElement,s=[],o=0;o<a.rangeCount;o++)s.push(a.getRangeAt(o));switch(n.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":n.blur();break;default:n=null;break}return a.removeAllRanges(),function(){a.type==="Caret"&&a.removeAllRanges(),a.rangeCount||s.forEach(function(l){a.addRange(l)}),n&&n.focus()}},Tm=vm,zo={"text/plain":"Text","text/html":"Url",default:"Text"},Dm="Copy to clipboard: #{key}, Enter";function km(a){var n=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return a.replace(/#{\s*key\s*}/g,n)}function Im(a,n){var s,o,l,c,u,f,x=!1;n||(n={}),s=n.debug||!1;try{l=Tm(),c=document.createRange(),u=document.getSelection(),f=document.createElement("span"),f.textContent=a,f.ariaHidden="true",f.style.all="unset",f.style.position="fixed",f.style.top=0,f.style.clip="rect(0, 0, 0, 0)",f.style.whiteSpace="pre",f.style.webkitUserSelect="text",f.style.MozUserSelect="text",f.style.msUserSelect="text",f.style.userSelect="text",f.addEventListener("copy",function(h){if(h.stopPropagation(),n.format)if(h.preventDefault(),typeof h.clipboardData>"u"){s&&console.warn("unable to use e.clipboardData"),s&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var T=zo[n.format]||zo.default;window.clipboardData.setData(T,a)}else h.clipboardData.clearData(),h.clipboardData.setData(n.format,a);n.onCopy&&(h.preventDefault(),n.onCopy(h.clipboardData))}),document.body.appendChild(f),c.selectNodeContents(f),u.addRange(c);var g=document.execCommand("copy");if(!g)throw new Error("copy command was unsuccessful");x=!0}catch(h){s&&console.error("unable to copy using execCommand: ",h),s&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(n.format||"text",a),n.onCopy&&n.onCopy(window.clipboardData),x=!0}catch(T){s&&console.error("unable to copy using clipboardData: ",T),s&&console.error("falling back to prompt"),o=km("message"in n?n.message:Dm),window.prompt(o,a)}}finally{u&&(typeof u.removeRange=="function"?u.removeRange(c):u.removeAllRanges()),f&&document.body.removeChild(f),l()}return x}var Am=Im;function bn(a){"@babel/helpers - typeof";return bn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},bn(a)}Object.defineProperty(ta,"__esModule",{value:!0}),ta.CopyToClipboard=void 0;var ra=So(R),qm=So(Am),Cm=["text","onCopy","options","children"];function So(a){return a&&a.__esModule?a:{default:a}}function Eo(a,n){var s=Object.keys(a);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(a);n&&(o=o.filter(function(l){return Object.getOwnPropertyDescriptor(a,l).enumerable})),s.push.apply(s,o)}return s}function No(a){for(var n=1;n<arguments.length;n++){var s=arguments[n]!=null?arguments[n]:{};n%2?Eo(Object(s),!0).forEach(function(o){hn(a,o,s[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(s)):Eo(Object(s)).forEach(function(o){Object.defineProperty(a,o,Object.getOwnPropertyDescriptor(s,o))})}return a}function zm(a,n){if(a==null)return{};var s=Sm(a,n),o,l;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(a);for(l=0;l<c.length;l++)o=c[l],!(n.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(a,o)&&(s[o]=a[o])}return s}function Sm(a,n){if(a==null)return{};var s={},o=Object.keys(a),l,c;for(c=0;c<o.length;c++)l=o[c],!(n.indexOf(l)>=0)&&(s[l]=a[l]);return s}function Em(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function")}function Lo(a,n){for(var s=0;s<n.length;s++){var o=n[s];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(a,o.key,o)}}function Nm(a,n,s){return n&&Lo(a.prototype,n),s&&Lo(a,s),Object.defineProperty(a,"prototype",{writable:!1}),a}function Lm(a,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(n&&n.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),n&&xn(a,n)}function xn(a,n){return xn=Object.setPrototypeOf||function(o,l){return o.__proto__=l,o},xn(a,n)}function Pm(a){var n=Om();return function(){var o=sa(a),l;if(n){var c=sa(this).constructor;l=Reflect.construct(o,arguments,c)}else l=o.apply(this,arguments);return Mm(this,l)}}function Mm(a,n){if(n&&(bn(n)==="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Po(a)}function Po(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function Om(){if(typeof Reflect>"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 sa(a){return sa=Object.setPrototypeOf?Object.getPrototypeOf:function(s){return s.__proto__||Object.getPrototypeOf(s)},sa(a)}function hn(a,n,s){return n in a?Object.defineProperty(a,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):a[n]=s,a}var Mo=function(a){Lm(s,a);var n=Pm(s);function s(){var o;Em(this,s);for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];return o=n.call.apply(n,[this].concat(c)),hn(Po(o),"onClick",function(f){var x=o.props,g=x.text,h=x.onCopy,T=x.children,M=x.options,O=ra.default.Children.only(T),B=(0,qm.default)(g,M);h&&h(g,B),O&&O.props&&typeof O.props.onClick=="function"&&O.props.onClick(f)}),o}return Nm(s,[{key:"render",value:function(){var l=this.props;l.text,l.onCopy,l.options;var c=l.children,u=zm(l,Cm),f=ra.default.Children.only(c);return ra.default.cloneElement(f,No(No({},u),{},{onClick:this.onClick}))}}]),s}(ra.default.PureComponent);ta.CopyToClipboard=Mo,hn(Mo,"defaultProps",{onCopy:void 0,options:void 0});var Rm=ta,wn=Rm.CopyToClipboard;wn.CopyToClipboard=wn;var Fm=wn;const vn=dp(Fm);async function Bm(a,n=0){const s=a[n];if(!s)return;const{name:o,args:l,type:c,desc:u,examples:f,remarks:x,seeAlso:g,syntax:h,detailedDesc:T,fields:M,returns:O}=s,B={name:o};if(a.length>1&&(B.overloads=`${a.length} overloads`),c&&(B.type=c),l&&(B.name=`${o}()`,B.args=l.map(P=>{const{name:X,desc:J,displayType:G}=P;return{label:`${X} (${G})`,desc:J&&br(J)}})),u&&(B.desc=u.map(P=>br(P))),f&&(B.originalExample=f.join(`
143
- `),B.examples=await Ae.editor.colorize(B.originalExample,Se,{tabSize:4})),T){B.detailedDesc=[];for(const P of T){const{desc:X,examples:J}=P;let G=X.map(k=>br(k)),F,A;J&&(A=J.join(`
144
- `),F=await Ae.editor.colorize(A,Se,{tabSize:4})),B.detailedDesc.push({desc:G,examples:F,originalExample:A})}}return O&&(B.returns=O.map(P=>br(P))),x&&(B.remarks=typeof x=="string"?[br(x)]:x.map(P=>br(P))),h&&(B.syntax=a.map(P=>{var X;return(X=P.syntax)==null?void 0:X[0]})),M&&(B.fields=M.map(P=>{const{name:X,desc:J,type:G}=P;return{label:`${X} (${G})`,desc:J&&br(J)}})),g&&(B.seeAlso=g.map(P=>Um(P))),B}function Um(a){const s=/\[([^\[\]]+)\]\(([^\(\)]+)\)/g.exec(a);if(s){const[o,l,c]=s;return{name:l,link:c}}}function br(a){const n=/\*\*([^\*]+)\*\*/g,s=/\`([^\`]+)\`/g,o=/\[([^\[\]]+)\]\(([^\(\)]+)\)/g;return a.replace(n,(l,c)=>`<strong>${c}</strong>`).replace(s,(l,c)=>`<code>${c}</code>`).replace(o,(l,c,u)=>`<a ${u.startsWith("#")?`data-name="${c}"`:'target="_blank"'} class="manual-content-text-link" href="${u}">${c}</a>`)}function Km(a){var o;const n=[],s=[];for(const l of ps){for(let c of no[l.key].sort()){if(ao.includes(c))continue;let u=c;l.prefix==="fun"&&(u=`${c}()`),u.includes(a)&&(u.startsWith(a)?n.unshift({label:u,group:l,key:`${l.prefix}_${c}`}):n.push({label:u,group:l,key:`${l.prefix}_${c}`}))}for(const[c,u]of lt[l.key])for(const f of u){const{name:x,args:g,type:h,desc:T,examples:M,remarks:O,seeAlso:B,syntax:P,detailedDesc:X,fields:J,returns:G}=f,F={label:x,group:l,key:`${l.prefix}_${x}`};if(l.prefix==="fun"&&(F.label=`${x}()`),F.label.includes(a))break;if(g){let A=!1;for(const k of g){const{name:U,desc:j,displayType:ae}=k;if(U.includes(a)||j!=null&&j.includes(a)||ae!=null&&ae.includes(a)){s.push(F),A=!0;break}}if(A)break}if(h&&h.includes(a)){s.push(F);break}if(T){let A=!1;for(const k of T)if(k.includes(a)){s.push(F),A=!0;break}if(A)break}if(M){let A=!1;for(const k of M)if(k.includes(a)){s.push(F),A=!0;break}if(A)break}if(O&&(typeof O=="string"?O:O.join(`
145
- `)).includes(a)){s.push(F);break}if(B){let A=!1;for(const k of B)if(k.includes(a)){s.push(F),A=!0;break}if(A)break}if(P){let A=!1;for(const k of P)if(k.includes(a)){s.push(F),A=!0;break}if(A)break}if(X){let A=!1;for(const k of X){const{desc:U,examples:j}=k;if(U.join(`
146
- `).includes(a)){s.push(F),A=!0;break}if((o=j==null?void 0:j.join(`
147
- `))!=null&&o.includes(a)){s.push(F),A=!0;break}}if(A)break}if(J){let A=!1;for(const k of J){const{name:U,desc:j,type:ae}=k;if(U.includes(a)||j!=null&&j.includes(a)||ae!=null&&ae.includes(a)){s.push(F),A=!0;break}}if(A)break}if(G){let A=!1;for(const k of G)if(k.includes(a)){s.push(F),A=!0;break}if(A)break}}}return{labelList:n,contentList:s}}const $m=a=>{var G;const{group:n,itemKey:s,onItemClick:o,currentIndex:l}=a,[c,u]=R.useState(),[f,x]=R.useState(0),[g,h]=R.useState("Copy code"),[T,M]=R.useState("Copy link");R.useEffect(()=>{O(l)},[s]);const O=F=>{const A=s.replace(`${n==null?void 0:n.prefix}_`,""),k=lt[n==null?void 0:n.key].get(A);x(F),k&&Bm(k,F).then(U=>{u(U)})},B=F=>{O(F)},P=F=>{var A,k;if(F.target.localName==="a"&&F.target.hash&&((k=(A=F.target)==null?void 0:A.dataset)!=null&&k.name)){F.preventDefault();const{hash:U}=F.target;o(U.replace("#",""))}},X=()=>{h("Copied"),setTimeout(()=>{h("Copy code")},1e3)},J=()=>{M("Link copied"),setTimeout(()=>{M("Copy link")},3e3)};return L.jsx("div",{onClick:P,id:`#${s}`,children:L.jsxs("div",{className:"manual-content-wrapper",children:[L.jsxs("div",{className:"manual-content-header",children:[L.jsxs("div",{children:[L.jsx("h3",{className:"manual-content-header-title",children:c==null?void 0:c.name}),!!(c!=null&&c.overloads)&&L.jsx("span",{className:"manual-content-header-overloads",children:c==null?void 0:c.overloads})]}),L.jsx(vn,{text:(c==null?void 0:c.name)||"",onCopy:J,children:L.jsx("div",{"data-tooltip":T,className:"manual-content-btn",children:L.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28",width:"28",height:"28",children:L.jsxs("g",{fill:"currentColor",children:[L.jsx("path",{fillRule:"nonzero",d:"M15.039 5.969l-.019-.019-2.828 2.828.707.707 2.474-2.474c1.367-1.367 3.582-1.367 4.949 0s1.367 3.582 0 4.949l-2.474 2.474.707.707 2.828-2.828-.019-.019c1.415-1.767 1.304-4.352-.334-5.99-1.638-1.638-4.224-1.749-5.99-.334zM5.97 15.038l-.019-.019 2.828-2.828.707.707-2.475 2.475c-1.367 1.367-1.367 3.582 0 4.949s3.582 1.367 4.949 0l2.474-2.474.707.707-2.828 2.828-.019-.019c-1.767 1.415-4.352 1.304-5.99-.334-1.638-1.638-1.749-4.224-.334-5.99z"}),L.jsx("path",{d:"M10.485 16.141l5.656-5.656.707.707-5.656 5.656z"})]})})})})]}),(G=c==null?void 0:c.desc)==null?void 0:G.map((F,A)=>L.jsx("div",{dangerouslySetInnerHTML:{__html:F},className:"manual-content-text"},A)),(c==null?void 0:c.type)&&L.jsxs(R.Fragment,{children:[L.jsx("div",{className:"manual-content-sub-title",children:"type"}),L.jsx("div",{className:"manual-content-text",children:c.type})]}),(c==null?void 0:c.syntax)&&L.jsxs(R.Fragment,{children:[L.jsxs("div",{className:"manual-content-sub-title",children:["Syntax ",!!(c!=null&&c.overloads)&&"& Overloads"]}),c.syntax.map((F,A)=>{var k;return(((k=c.syntax)==null?void 0:k.length)||0)>1?L.jsx("div",{onClick:()=>B(A),children:L.jsx("pre",{className:`manual-content-syntax with-overloads ${A===f?"selected":""}`,children:F})},A):L.jsx("pre",{className:"manual-content-syntax",children:F},A)})]}),(c==null?void 0:c.args)&&L.jsxs(R.Fragment,{children:[L.jsx("div",{className:"manual-content-sub-title",children:"arguments"}),c.args.map((F,A)=>L.jsxs("div",{className:"manual-content-text",children:[L.jsx("span",{className:"manual-content-args-label",children:F.label})," ",L.jsx("span",{dangerouslySetInnerHTML:{__html:F.desc||""}})]},A))]}),(c==null?void 0:c.fields)&&L.jsxs(R.Fragment,{children:[L.jsx("div",{className:"manual-content-sub-title",children:"fields"}),c.fields.map((F,A)=>L.jsxs("div",{className:"manual-content-text",children:[L.jsx("span",{className:"manual-content-args-label",children:F.label})," ",L.jsx("span",{dangerouslySetInnerHTML:{__html:F.desc||""}})]},A))]}),(c==null?void 0:c.examples)&&L.jsxs(R.Fragment,{children:[L.jsxs("div",{className:"manual-content-sub-title manual-content-example-header",children:[L.jsx("div",{children:L.jsx("span",{children:"example"})}),L.jsx(vn,{text:c.originalExample||"",onCopy:X,children:L.jsx("div",{"data-tooltip":g,className:"manual-content-btn manual-content-example-copy",children:L.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",fill:"none",children:L.jsx("path",{stroke:"currentColor",d:"M8 9.5H6.5a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1V20m-8-1.5h11a1 1 0 0 0 1-1v-11a1 1 0 0 0-1-1h-11a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1z"})})})})]}),L.jsx("pre",{className:"manual-content-example",children:L.jsx("code",{dangerouslySetInnerHTML:{__html:c.examples}})})]}),(c==null?void 0:c.detailedDesc)&&c.detailedDesc.map((F,A)=>L.jsxs(R.Fragment,{children:[F.desc.map((k,U)=>L.jsx("div",{className:"manual-content-text",dangerouslySetInnerHTML:{__html:k}},U)),L.jsxs("div",{className:"manual-content-sub-title manual-content-example-header",children:[L.jsx("div",{children:L.jsx("span",{children:"example"})}),L.jsx(vn,{text:F.originalExample||"",onCopy:X,children:L.jsx("div",{"data-tooltip":g,className:"manual-content-btn manual-content-example-copy",children:L.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",fill:"none",children:L.jsx("path",{stroke:"currentColor",d:"M8 9.5H6.5a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1V20m-8-1.5h11a1 1 0 0 0 1-1v-11a1 1 0 0 0-1-1h-11a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1z"})})})})]}),L.jsx("pre",{className:"manual-content-example",children:L.jsx("code",{dangerouslySetInnerHTML:{__html:F.examples||""}})})]},A)),(c==null?void 0:c.returns)&&L.jsxs(R.Fragment,{children:[L.jsx("div",{className:"manual-content-sub-title",children:"returns"}),c.returns.map((F,A)=>L.jsx("div",{className:"manual-content-text",dangerouslySetInnerHTML:{__html:F}},A))]}),(c==null?void 0:c.remarks)&&L.jsxs(R.Fragment,{children:[L.jsx("div",{className:"manual-content-sub-title",children:"remarks"}),c.remarks.map((F,A)=>L.jsx("div",{className:"manual-content-text",dangerouslySetInnerHTML:{__html:F}},A))]}),(c==null?void 0:c.seeAlso)&&L.jsxs(R.Fragment,{children:[L.jsx("div",{className:"manual-content-sub-title",children:"see Also"}),L.jsx("div",{className:"manual-content-see_also",children:c.seeAlso.map((F,A)=>L.jsx("a",{className:"manual-content-see_also-tag","data-name":F==null?void 0:F.name,href:F==null?void 0:F.link,children:F==null?void 0:F.name},A))})]})]})})};Ae.languages.register({id:Se}),Ae.editor.defineTheme("vs-dark",cn),Ae.editor.defineTheme("vs",ln),Ae.languages.setMonarchTokensProvider(Se,Nr),Ae.languages.setLanguageConfiguration(Se,on);const jm=({theme:a="vs-dark",currentKey:n,currentIndex:s=0})=>{const[o,l]=R.useState(ps[0]),[c,u]=R.useState(null),[f,x]=R.useState(0),[g,h]=R.useState(""),[T,M]=R.useState("var_bar_index"),O=R.useRef(null),B=R.useRef(null),P=k=>{k.key===(o==null?void 0:o.key)&&!(o!=null&&o.isHidden)?l({...k,isHidden:!0}):l(k)};R.useEffect(()=>{Ae.editor.setTheme(a)},[a]),R.useEffect(()=>{if(n){const[k]=n.split("_"),U=ps.find(j=>k===j.prefix);U&&(x(s),F(U,n))}},[n]);const X=(k,U)=>{var j;k!==T&&(U&&l(U),x(0),M(k),(j=B.current)==null||j.scrollTo({top:0}))},J=k=>{if(k.target.value.trim()==="")G();else{h(k.target.value);const U=Km(k.target.value);u(U)}},G=()=>{h(""),u(null),setTimeout(()=>{var k,U;(U=(k=O.current)==null?void 0:k.querySelector(`a[data-href="${T}"]`))==null||U.scrollIntoView(!0)},10)},F=(k,U)=>{var j;l(k),M(U),setTimeout(()=>{var ae,oe;(oe=(ae=O.current)==null?void 0:ae.querySelector(`a[data-href="${U}"]`))==null||oe.scrollIntoView(!0)},10),(j=B.current)==null||j.scrollTo({top:0})},A=k=>{const U=ps.find(j=>k.startsWith(j.prefix));U&&F(U,k)};return L.jsxs("div",{className:`${a} manual-warpper`,children:[L.jsxs("div",{className:"manual-left",children:[L.jsxs("div",{className:"manual-search",children:[L.jsx("span",{className:"manual-search-icon",children:L.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18",width:"18px",height:"18px",children:L.jsx("path",{fillRule:"evenodd",d:"M12.5 11h-.79l-.28-.27A6.47 6.47 0 0 0 13 6.5 6.5 6.5 0 1 0 6.5 13c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L17.49 16l-4.99-5zm-6 0C4.01 11 2 8.99 2 6.5S4.01 2 6.5 2 11 4.01 11 6.5 8.99 11 6.5 11z"})})}),L.jsx("input",{onChange:J,spellCheck:"false",value:g,className:"manual-search-input",autoComplete:"off",placeholder:"Search",type:"text"}),L.jsx("span",{onClick:G,className:`manual-search-clear ${g?"":"hide"}`,children:L.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 95.939 95.939",width:"9",height:"9",children:L.jsx("path",{d:"M62.82 47.97l32.53-32.534a2 2 0 0 0 0-2.828L83.332.586a2 2 0 0 0-2.827 0L47.97 33.12 15.435.587c-.75-.75-2.078-.75-2.828 0L.587 12.607a2 2 0 0 0 0 2.83L33.12 47.97.588 80.504a2 2 0 0 0 0 2.828l12.02 12.02a1.997 1.997 0 0 0 2.83 0L47.97 62.818l32.535 32.535a2 2 0 0 0 2.827 0l12.02-12.02c.78-.783.78-2.05 0-2.83L62.82 47.97z"})})})]}),L.jsx("div",{className:`manual-group-search-list manual-scroll ${g?"":"hide"}`,children:L.jsxs("div",{children:[c==null?void 0:c.labelList.map(k=>L.jsx("a",{onClick:U=>{U.preventDefault(),X(k.key,k.group)},className:`manual-group-body-item ${k.key===T?"manual-group-body-item-selected":""}`,"data-href":k.key,href:`#${k.key}`,children:k.label},`search_${k.key}`)),L.jsx("div",{className:"manual-content-separator"}),c==null?void 0:c.contentList.map(k=>L.jsx("a",{onClick:U=>{U.preventDefault(),X(k.key,k.group)},className:`manual-group-body-item ${k.key===T?"manual-group-body-item-selected":""}`,"data-href":k.key,href:`#${k.key}`,children:k.label},`search_${k.key}`))]})}),L.jsx("div",{className:`manual-group-list manual-scroll ${g?"hide":""}`,ref:O,children:ps.map(k=>{var U,j;return L.jsxs(R.Fragment,{children:[L.jsx("div",{onClick:()=>P(k),className:`manual-group-title ${k.key===(o==null?void 0:o.key)&&!(o!=null&&o.isHidden)?"active":""}`,children:k.title}),L.jsx("div",{className:`manual-group-body manual-scroll ${k.key!==(o==null?void 0:o.key)||o!=null&&o.isHidden?"hide":""}`,children:(j=(U=no[k.key])==null?void 0:U.sort().filter(ae=>!ao.includes(ae)))==null?void 0:j.map(ae=>{const oe=`${k.prefix}_${ae}`;return L.jsx("a",{onClick:ce=>{ce.preventDefault(),X(oe)},className:`manual-group-body-item ${oe===T?"manual-group-body-item-selected":""}`,"data-href":oe,href:`#${oe}`,children:`${ae}${k.prefix==="fun"?"()":""}`},oe)})})]},k.key)})})]}),L.jsx("div",{ref:B,className:"manual-right manual-scroll",children:L.jsx($m,{currentIndex:f,group:o,itemKey:T,onItemClick:A})})]})};q.ReferenceManual=jm,q.TradingVueDiffEditor=wm,q.TradingVueEditor=hm,q.parseLibrary=fm,q.parseTcc=Ao,q.removeScript=gm,q.scriptsRun=qo,Object.defineProperty(q,Symbol.toStringTag,{value:"Module"})});
142
+ `,theme:l||"vs-dark",className:`tvue-script ${l||"vs-dark"}`,options:{colorDecorators:!0,useShadowDOM:!1,matchOnWordStartOnly:!0,automaticLayout:!1,suggest:{filterGraceful:!0},fontSize:13,...f?Rd:{},readOnlyMessage:{value:"该脚本是只读的。它无法被编辑。"},...c},onMount:ee,onChange:O})})},hm=F.forwardRef(xm),wm=a=>{const{theme:n,modified:s,original:o,height:l,width:c,renderSideBySide:u=!0}=a,f=F.useCallback((x,g)=>{g.languages.register({id:Ee}),g.editor.defineTheme("vs-dark",cn),g.editor.defineTheme("vs",ln),g.languages.setMonarchTokensProvider(Ee,Nr),g.languages.setLanguageConfiguration(Ee,on)},[]);return E.jsx(yd,{height:l||"90vh",width:c||"100%",theme:n||"vs-dark",options:{readOnly:!0,renderSideBySide:u,scrollBeyondLastLine:!1},language:Ee,modified:s,original:o,onMount:f})};A.VMarkerSeverity=void 0,function(a){a[a.Hint=1]="Hint",a[a.Info=2]="Info",a[a.Warning=4]="Warning",a[a.Error=8]="Error"}(A.VMarkerSeverity||(A.VMarkerSeverity={}));var ta={},vm=function(){var a=document.getSelection();if(!a.rangeCount)return function(){};for(var n=document.activeElement,s=[],o=0;o<a.rangeCount;o++)s.push(a.getRangeAt(o));switch(n.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":n.blur();break;default:n=null;break}return a.removeAllRanges(),function(){a.type==="Caret"&&a.removeAllRanges(),a.rangeCount||s.forEach(function(l){a.addRange(l)}),n&&n.focus()}},Tm=vm,zo={"text/plain":"Text","text/html":"Url",default:"Text"},Dm="Copy to clipboard: #{key}, Enter";function km(a){var n=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return a.replace(/#{\s*key\s*}/g,n)}function Im(a,n){var s,o,l,c,u,f,x=!1;n||(n={}),s=n.debug||!1;try{l=Tm(),c=document.createRange(),u=document.getSelection(),f=document.createElement("span"),f.textContent=a,f.ariaHidden="true",f.style.all="unset",f.style.position="fixed",f.style.top=0,f.style.clip="rect(0, 0, 0, 0)",f.style.whiteSpace="pre",f.style.webkitUserSelect="text",f.style.MozUserSelect="text",f.style.msUserSelect="text",f.style.userSelect="text",f.addEventListener("copy",function(h){if(h.stopPropagation(),n.format)if(h.preventDefault(),typeof h.clipboardData>"u"){s&&console.warn("unable to use e.clipboardData"),s&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var D=zo[n.format]||zo.default;window.clipboardData.setData(D,a)}else h.clipboardData.clearData(),h.clipboardData.setData(n.format,a);n.onCopy&&(h.preventDefault(),n.onCopy(h.clipboardData))}),document.body.appendChild(f),c.selectNodeContents(f),u.addRange(c);var g=document.execCommand("copy");if(!g)throw new Error("copy command was unsuccessful");x=!0}catch(h){s&&console.error("unable to copy using execCommand: ",h),s&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(n.format||"text",a),n.onCopy&&n.onCopy(window.clipboardData),x=!0}catch(D){s&&console.error("unable to copy using clipboardData: ",D),s&&console.error("falling back to prompt"),o=km("message"in n?n.message:Dm),window.prompt(o,a)}}finally{u&&(typeof u.removeRange=="function"?u.removeRange(c):u.removeAllRanges()),f&&document.body.removeChild(f),l()}return x}var Am=Im;function bn(a){"@babel/helpers - typeof";return bn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},bn(a)}Object.defineProperty(ta,"__esModule",{value:!0}),ta.CopyToClipboard=void 0;var ra=So(F),qm=So(Am),Cm=["text","onCopy","options","children"];function So(a){return a&&a.__esModule?a:{default:a}}function Eo(a,n){var s=Object.keys(a);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(a);n&&(o=o.filter(function(l){return Object.getOwnPropertyDescriptor(a,l).enumerable})),s.push.apply(s,o)}return s}function No(a){for(var n=1;n<arguments.length;n++){var s=arguments[n]!=null?arguments[n]:{};n%2?Eo(Object(s),!0).forEach(function(o){hn(a,o,s[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(s)):Eo(Object(s)).forEach(function(o){Object.defineProperty(a,o,Object.getOwnPropertyDescriptor(s,o))})}return a}function zm(a,n){if(a==null)return{};var s=Sm(a,n),o,l;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(a);for(l=0;l<c.length;l++)o=c[l],!(n.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(a,o)&&(s[o]=a[o])}return s}function Sm(a,n){if(a==null)return{};var s={},o=Object.keys(a),l,c;for(c=0;c<o.length;c++)l=o[c],!(n.indexOf(l)>=0)&&(s[l]=a[l]);return s}function Em(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function")}function Lo(a,n){for(var s=0;s<n.length;s++){var o=n[s];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(a,o.key,o)}}function Nm(a,n,s){return n&&Lo(a.prototype,n),s&&Lo(a,s),Object.defineProperty(a,"prototype",{writable:!1}),a}function Lm(a,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(n&&n.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),n&&xn(a,n)}function xn(a,n){return xn=Object.setPrototypeOf||function(o,l){return o.__proto__=l,o},xn(a,n)}function Pm(a){var n=Om();return function(){var o=sa(a),l;if(n){var c=sa(this).constructor;l=Reflect.construct(o,arguments,c)}else l=o.apply(this,arguments);return Mm(this,l)}}function Mm(a,n){if(n&&(bn(n)==="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Po(a)}function Po(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function Om(){if(typeof Reflect>"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 sa(a){return sa=Object.setPrototypeOf?Object.getPrototypeOf:function(s){return s.__proto__||Object.getPrototypeOf(s)},sa(a)}function hn(a,n,s){return n in a?Object.defineProperty(a,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):a[n]=s,a}var Mo=function(a){Lm(s,a);var n=Pm(s);function s(){var o;Em(this,s);for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];return o=n.call.apply(n,[this].concat(c)),hn(Po(o),"onClick",function(f){var x=o.props,g=x.text,h=x.onCopy,D=x.children,P=x.options,R=ra.default.Children.only(D),U=(0,qm.default)(g,P);h&&h(g,U),R&&R.props&&typeof R.props.onClick=="function"&&R.props.onClick(f)}),o}return Nm(s,[{key:"render",value:function(){var l=this.props;l.text,l.onCopy,l.options;var c=l.children,u=zm(l,Cm),f=ra.default.Children.only(c);return ra.default.cloneElement(f,No(No({},u),{},{onClick:this.onClick}))}}]),s}(ra.default.PureComponent);ta.CopyToClipboard=Mo,hn(Mo,"defaultProps",{onCopy:void 0,options:void 0});var Rm=ta,wn=Rm.CopyToClipboard;wn.CopyToClipboard=wn;var Fm=wn;const vn=dp(Fm);async function Bm(a,n=0){const s=a[n];if(!s)return;const{name:o,args:l,type:c,desc:u,examples:f,remarks:x,seeAlso:g,syntax:h,detailedDesc:D,fields:P,returns:R}=s,U={name:o};if(a.length>1&&(U.overloads=`${a.length} overloads`),c&&(U.type=c),l&&(U.name=`${o}()`,U.args=l.map(L=>{const{name:X,desc:ee,displayType:W}=L;return{label:`${X} (${W})`,desc:ee&&br(ee)}})),u&&(U.desc=u.map(L=>br(L))),f&&(U.originalExample=f.join(`
143
+ `),U.examples=await qe.editor.colorize(U.originalExample,Ee,{tabSize:4})),D){U.detailedDesc=[];for(const L of D){const{desc:X,examples:ee}=L;let W=X.map(T=>br(T)),B,O;ee&&(O=ee.join(`
144
+ `),B=await qe.editor.colorize(O,Ee,{tabSize:4})),U.detailedDesc.push({desc:W,examples:B,originalExample:O})}}return R&&(U.returns=R.map(L=>br(L))),x&&(U.remarks=typeof x=="string"?[br(x)]:x.map(L=>br(L))),h&&(U.syntax=a.map(L=>{var X;return(X=L.syntax)==null?void 0:X[0]})),P&&(U.fields=P.map(L=>{const{name:X,desc:ee,type:W}=L;return{label:`${X} (${W})`,desc:ee&&br(ee)}})),g&&(U.seeAlso=g.map(L=>Um(L))),U}function Um(a){const s=/\[([^\[\]]+)\]\(([^\(\)]+)\)/g.exec(a);if(s){const[o,l,c]=s;return{name:l,link:c}}}function br(a){const n=/\*\*([^\*]+)\*\*/g,s=/\`([^\`]+)\`/g,o=/\[([^\[\]]+)\]\(([^\(\)]+)\)/g;return a.replace(n,(l,c)=>`<strong>${c}</strong>`).replace(s,(l,c)=>`<code>${c}</code>`).replace(o,(l,c,u)=>`<a ${u.startsWith("#")?`data-name="${c}"`:'target="_blank"'} class="manual-content-text-link" href="${u}">${c}</a>`)}function Km(a){var o;const n=[],s=[];for(const l of ps){for(let c of no[l.key].sort()){if(ao.includes(c))continue;let u=c;l.prefix==="fun"&&(u=`${c}()`),u.includes(a)&&(u.startsWith(a)?n.unshift({label:u,group:l,key:`${l.prefix}_${c}`}):n.push({label:u,group:l,key:`${l.prefix}_${c}`}))}for(const[c,u]of lt[l.key])for(const f of u){const{name:x,args:g,type:h,desc:D,examples:P,remarks:R,seeAlso:U,syntax:L,detailedDesc:X,fields:ee,returns:W}=f,B={label:x,group:l,key:`${l.prefix}_${x}`};if(l.prefix==="fun"&&(B.label=`${x}()`),B.label.includes(a))break;if(g){let O=!1;for(const T of g){const{name:M,desc:K,displayType:ne}=T;if(M.includes(a)||K!=null&&K.includes(a)||ne!=null&&ne.includes(a)){s.push(B),O=!0;break}}if(O)break}if(h&&h.includes(a)){s.push(B);break}if(D){let O=!1;for(const T of D)if(T.includes(a)){s.push(B),O=!0;break}if(O)break}if(P){let O=!1;for(const T of P)if(T.includes(a)){s.push(B),O=!0;break}if(O)break}if(R&&(typeof R=="string"?R:R.join(`
145
+ `)).includes(a)){s.push(B);break}if(U){let O=!1;for(const T of U)if(T.includes(a)){s.push(B),O=!0;break}if(O)break}if(L){let O=!1;for(const T of L)if(T.includes(a)){s.push(B),O=!0;break}if(O)break}if(X){let O=!1;for(const T of X){const{desc:M,examples:K}=T;if(M.join(`
146
+ `).includes(a)){s.push(B),O=!0;break}if((o=K==null?void 0:K.join(`
147
+ `))!=null&&o.includes(a)){s.push(B),O=!0;break}}if(O)break}if(ee){let O=!1;for(const T of ee){const{name:M,desc:K,type:ne}=T;if(M.includes(a)||K!=null&&K.includes(a)||ne!=null&&ne.includes(a)){s.push(B),O=!0;break}}if(O)break}if(W){let O=!1;for(const T of W)if(T.includes(a)){s.push(B),O=!0;break}if(O)break}}}return{labelList:n,contentList:s}}const $m=a=>{var W;const{group:n,itemKey:s,onItemClick:o,currentIndex:l}=a,[c,u]=F.useState(),[f,x]=F.useState(0),[g,h]=F.useState("Copy code"),[D,P]=F.useState("Copy link");F.useEffect(()=>{R(l)},[s]);const R=B=>{const O=s.replace(`${n==null?void 0:n.prefix}_`,""),T=lt[n==null?void 0:n.key].get(O);x(B),T&&Bm(T,B).then(M=>{u(M)})},U=B=>{R(B)},L=B=>{var O,T;if(B.target.localName==="a"&&B.target.hash&&((T=(O=B.target)==null?void 0:O.dataset)!=null&&T.name)){B.preventDefault();const{hash:M}=B.target;o(M.replace("#",""))}},X=()=>{h("Copied"),setTimeout(()=>{h("Copy code")},1e3)},ee=()=>{P("Link copied"),setTimeout(()=>{P("Copy link")},3e3)};return E.jsx("div",{onClick:L,id:`#${s}`,children:E.jsxs("div",{className:"manual-content-wrapper",children:[E.jsxs("div",{className:"manual-content-header",children:[E.jsxs("div",{children:[E.jsx("h3",{className:"manual-content-header-title",children:c==null?void 0:c.name}),!!(c!=null&&c.overloads)&&E.jsx("span",{className:"manual-content-header-overloads",children:c==null?void 0:c.overloads})]}),E.jsx(vn,{text:(c==null?void 0:c.name)||"",onCopy:ee,children:E.jsx("div",{"data-tooltip":D,className:"manual-content-btn",children:E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28",width:"28",height:"28",children:E.jsxs("g",{fill:"currentColor",children:[E.jsx("path",{fillRule:"nonzero",d:"M15.039 5.969l-.019-.019-2.828 2.828.707.707 2.474-2.474c1.367-1.367 3.582-1.367 4.949 0s1.367 3.582 0 4.949l-2.474 2.474.707.707 2.828-2.828-.019-.019c1.415-1.767 1.304-4.352-.334-5.99-1.638-1.638-4.224-1.749-5.99-.334zM5.97 15.038l-.019-.019 2.828-2.828.707.707-2.475 2.475c-1.367 1.367-1.367 3.582 0 4.949s3.582 1.367 4.949 0l2.474-2.474.707.707-2.828 2.828-.019-.019c-1.767 1.415-4.352 1.304-5.99-.334-1.638-1.638-1.749-4.224-.334-5.99z"}),E.jsx("path",{d:"M10.485 16.141l5.656-5.656.707.707-5.656 5.656z"})]})})})})]}),(W=c==null?void 0:c.desc)==null?void 0:W.map((B,O)=>E.jsx("div",{dangerouslySetInnerHTML:{__html:B},className:"manual-content-text"},O)),(c==null?void 0:c.type)&&E.jsxs(F.Fragment,{children:[E.jsx("div",{className:"manual-content-sub-title",children:"type"}),E.jsx("div",{className:"manual-content-text",children:c.type})]}),(c==null?void 0:c.syntax)&&E.jsxs(F.Fragment,{children:[E.jsxs("div",{className:"manual-content-sub-title",children:["Syntax ",!!(c!=null&&c.overloads)&&"& Overloads"]}),c.syntax.map((B,O)=>{var T;return(((T=c.syntax)==null?void 0:T.length)||0)>1?E.jsx("div",{onClick:()=>U(O),children:E.jsx("pre",{className:`manual-content-syntax with-overloads ${O===f?"selected":""}`,children:B})},O):E.jsx("pre",{className:"manual-content-syntax",children:B},O)})]}),(c==null?void 0:c.args)&&E.jsxs(F.Fragment,{children:[E.jsx("div",{className:"manual-content-sub-title",children:"arguments"}),c.args.map((B,O)=>E.jsxs("div",{className:"manual-content-text",children:[E.jsx("span",{className:"manual-content-args-label",children:B.label})," ",E.jsx("span",{dangerouslySetInnerHTML:{__html:B.desc||""}})]},O))]}),(c==null?void 0:c.fields)&&E.jsxs(F.Fragment,{children:[E.jsx("div",{className:"manual-content-sub-title",children:"fields"}),c.fields.map((B,O)=>E.jsxs("div",{className:"manual-content-text",children:[E.jsx("span",{className:"manual-content-args-label",children:B.label})," ",E.jsx("span",{dangerouslySetInnerHTML:{__html:B.desc||""}})]},O))]}),(c==null?void 0:c.examples)&&E.jsxs(F.Fragment,{children:[E.jsxs("div",{className:"manual-content-sub-title manual-content-example-header",children:[E.jsx("div",{children:E.jsx("span",{children:"example"})}),E.jsx(vn,{text:c.originalExample||"",onCopy:X,children:E.jsx("div",{"data-tooltip":g,className:"manual-content-btn manual-content-example-copy",children:E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",fill:"none",children:E.jsx("path",{stroke:"currentColor",d:"M8 9.5H6.5a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1V20m-8-1.5h11a1 1 0 0 0 1-1v-11a1 1 0 0 0-1-1h-11a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1z"})})})})]}),E.jsx("pre",{className:"manual-content-example",children:E.jsx("code",{dangerouslySetInnerHTML:{__html:c.examples}})})]}),(c==null?void 0:c.detailedDesc)&&c.detailedDesc.map((B,O)=>E.jsxs(F.Fragment,{children:[B.desc.map((T,M)=>E.jsx("div",{className:"manual-content-text",dangerouslySetInnerHTML:{__html:T}},M)),E.jsxs("div",{className:"manual-content-sub-title manual-content-example-header",children:[E.jsx("div",{children:E.jsx("span",{children:"example"})}),E.jsx(vn,{text:B.originalExample||"",onCopy:X,children:E.jsx("div",{"data-tooltip":g,className:"manual-content-btn manual-content-example-copy",children:E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",fill:"none",children:E.jsx("path",{stroke:"currentColor",d:"M8 9.5H6.5a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1V20m-8-1.5h11a1 1 0 0 0 1-1v-11a1 1 0 0 0-1-1h-11a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1z"})})})})]}),E.jsx("pre",{className:"manual-content-example",children:E.jsx("code",{dangerouslySetInnerHTML:{__html:B.examples||""}})})]},O)),(c==null?void 0:c.returns)&&E.jsxs(F.Fragment,{children:[E.jsx("div",{className:"manual-content-sub-title",children:"returns"}),c.returns.map((B,O)=>E.jsx("div",{className:"manual-content-text",dangerouslySetInnerHTML:{__html:B}},O))]}),(c==null?void 0:c.remarks)&&E.jsxs(F.Fragment,{children:[E.jsx("div",{className:"manual-content-sub-title",children:"remarks"}),c.remarks.map((B,O)=>E.jsx("div",{className:"manual-content-text",dangerouslySetInnerHTML:{__html:B}},O))]}),(c==null?void 0:c.seeAlso)&&E.jsxs(F.Fragment,{children:[E.jsx("div",{className:"manual-content-sub-title",children:"see Also"}),E.jsx("div",{className:"manual-content-see_also",children:c.seeAlso.map((B,O)=>E.jsx("a",{className:"manual-content-see_also-tag","data-name":B==null?void 0:B.name,href:B==null?void 0:B.link,children:B==null?void 0:B.name},O))})]})]})})};qe.languages.register({id:Ee}),qe.editor.defineTheme("vs-dark",cn),qe.editor.defineTheme("vs",ln),qe.languages.setMonarchTokensProvider(Ee,Nr),qe.languages.setLanguageConfiguration(Ee,on);const jm=({theme:a="vs-dark",currentKey:n,currentIndex:s=0})=>{const[o,l]=F.useState(ps[0]),[c,u]=F.useState(null),[f,x]=F.useState(0),[g,h]=F.useState(""),[D,P]=F.useState("var_bar_index"),R=F.useRef(null),U=F.useRef(null),L=T=>{T.key===(o==null?void 0:o.key)&&!(o!=null&&o.isHidden)?l({...T,isHidden:!0}):l(T)};F.useEffect(()=>{qe.editor.setTheme(a)},[a]),F.useEffect(()=>{if(n){const[T]=n.split("_"),M=ps.find(K=>T===K.prefix);M&&(x(s),B(M,n))}},[n]);const X=(T,M)=>{var K;T!==D&&(M&&l(M),x(0),P(T),(K=U.current)==null||K.scrollTo({top:0}))},ee=T=>{if(T.target.value.trim()==="")W();else{h(T.target.value);const M=Km(T.target.value);u(M)}},W=()=>{h(""),u(null),setTimeout(()=>{var T,M;(M=(T=R.current)==null?void 0:T.querySelector(`a[data-href="${D}"]`))==null||M.scrollIntoView(!0)},10)},B=(T,M)=>{var K;l(T),P(M),setTimeout(()=>{var ne,ae;(ae=(ne=R.current)==null?void 0:ne.querySelector(`a[data-href="${M}"]`))==null||ae.scrollIntoView(!0)},10),(K=U.current)==null||K.scrollTo({top:0})},O=T=>{const M=ps.find(K=>T.startsWith(K.prefix));M&&B(M,T)};return E.jsxs("div",{className:`${a} manual-warpper`,children:[E.jsxs("div",{className:"manual-left",children:[E.jsxs("div",{className:"manual-search",children:[E.jsx("span",{className:"manual-search-icon",children:E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18",width:"18px",height:"18px",children:E.jsx("path",{fillRule:"evenodd",d:"M12.5 11h-.79l-.28-.27A6.47 6.47 0 0 0 13 6.5 6.5 6.5 0 1 0 6.5 13c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L17.49 16l-4.99-5zm-6 0C4.01 11 2 8.99 2 6.5S4.01 2 6.5 2 11 4.01 11 6.5 8.99 11 6.5 11z"})})}),E.jsx("input",{onChange:ee,spellCheck:"false",value:g,className:"manual-search-input",autoComplete:"off",placeholder:"Search",type:"text"}),E.jsx("span",{onClick:W,className:`manual-search-clear ${g?"":"hide"}`,children:E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 95.939 95.939",width:"9",height:"9",children:E.jsx("path",{d:"M62.82 47.97l32.53-32.534a2 2 0 0 0 0-2.828L83.332.586a2 2 0 0 0-2.827 0L47.97 33.12 15.435.587c-.75-.75-2.078-.75-2.828 0L.587 12.607a2 2 0 0 0 0 2.83L33.12 47.97.588 80.504a2 2 0 0 0 0 2.828l12.02 12.02a1.997 1.997 0 0 0 2.83 0L47.97 62.818l32.535 32.535a2 2 0 0 0 2.827 0l12.02-12.02c.78-.783.78-2.05 0-2.83L62.82 47.97z"})})})]}),E.jsx("div",{className:`manual-group-search-list manual-scroll ${g?"":"hide"}`,children:E.jsxs("div",{children:[c==null?void 0:c.labelList.map(T=>E.jsx("a",{onClick:M=>{M.preventDefault(),X(T.key,T.group)},className:`manual-group-body-item ${T.key===D?"manual-group-body-item-selected":""}`,"data-href":T.key,href:`#${T.key}`,children:T.label},`search_${T.key}`)),E.jsx("div",{className:"manual-content-separator"}),c==null?void 0:c.contentList.map(T=>E.jsx("a",{onClick:M=>{M.preventDefault(),X(T.key,T.group)},className:`manual-group-body-item ${T.key===D?"manual-group-body-item-selected":""}`,"data-href":T.key,href:`#${T.key}`,children:T.label},`search_${T.key}`))]})}),E.jsx("div",{className:`manual-group-list manual-scroll ${g?"hide":""}`,ref:R,children:ps.map(T=>{var M,K;return E.jsxs(F.Fragment,{children:[E.jsx("div",{onClick:()=>L(T),className:`manual-group-title ${T.key===(o==null?void 0:o.key)&&!(o!=null&&o.isHidden)?"active":""}`,children:T.title}),E.jsx("div",{className:`manual-group-body manual-scroll ${T.key!==(o==null?void 0:o.key)||o!=null&&o.isHidden?"hide":""}`,children:(K=(M=no[T.key])==null?void 0:M.sort().filter(ne=>!ao.includes(ne)))==null?void 0:K.map(ne=>{const ae=`${T.prefix}_${ne}`;return E.jsx("a",{onClick:ie=>{ie.preventDefault(),X(ae)},className:`manual-group-body-item ${ae===D?"manual-group-body-item-selected":""}`,"data-href":ae,href:`#${ae}`,children:`${ne}${T.prefix==="fun"?"()":""}`},ae)})})]},T.key)})})]}),E.jsx("div",{ref:U,className:"manual-right manual-scroll",children:E.jsx($m,{currentIndex:f,group:o,itemKey:D,onItemClick:O})})]})};A.ReferenceManual=jm,A.TradingVueDiffEditor=wm,A.TradingVueEditor=hm,A.parseLibrary=fm,A.parseTcc=Ao,A.removeScript=gm,A.scriptsRun=qo,Object.defineProperty(A,Symbol.toStringTag,{value:"Module"})});