@guihz/trading-vue-editor-tes 0.0.48 → 0.0.50

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
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}.monaco-editor.vs-dark .quick-input-widget{background:#1e222d!important}.monaco-editor .monaco-inputbox:focus-within,.monaco-editor.vs-dark .monaco-inputbox:focus-within{border-color:#2962ff}.monaco-editor .quick-input-widget .monaco-inputbox{background-color:unset!important;border:unset!important}.monaco-editor .quick-input-widget .input:active,.monaco-editor .quick-input-widget .input:focus{border:2px solid #2962ff}.monaco-editor.vs-dark .quick-input-widget .input{background-color:#1e222d!important;color:#d1d4dc!important}.monaco-editor .monaco-inputbox .input{font-size:14px;line-height:18px;outline:none}.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}.monaco-editor .overflow-guard{overflow:hidden!important}section{display:block!important}.monaco-editor .find-widget .codicon.toggle:before{content:"";font-size:15px;transition:.3s ease-out}.monaco-editor .find-widget.replaceToggled{height:80px!important}.monaco-editor .find-widget{border-bottom-left-radius:6px;border-bottom-right-radius:6px;height:44px!important;width:450px!important;transition:.3s ease-out}.monaco-editor .find-widget.replaceToggled .find-part,.monaco-editor .find-widget.replaceToggled .replace-part{margin-left:17px}.monaco-editor .find-widget .codicon.toggle.codicon-find-expanded{height:77px}.monaco-editor .find-widget.replaceToggled .replace-part{margin-top:8px}.monaco-editor .find-widget .codicon.toggle{border-radius:4px;cursor:default;height:41px;left:2px;top:2px}.monaco-editor .find-widget .monaco-sash{display:none}.monaco-editor .find-widget .find-part{margin-top:8px}.monaco-editor .find-widget .monaco-findInput{width:255px}.monaco-editor .monaco-scrollable-element{--vscode-scrollbarSlider-background: #64646466;margin-bottom:-2px}.monaco-editor.vs-dark .find-widget .monaco-scrollable-element>.monaco-inputbox.idle{background-color:#1e222d!important}.monaco-editor.vs-dark .find-widget .monaco-scrollable-element>.monaco-inputbox.idle{border-color:#50535e!important}.monaco-editor .find-widget .monaco-scrollable-element>.monaco-inputbox.idle{background-color:#fff!important;border-color:#d1d4dc!important;border-radius:6px;height:28px}.monaco-editor.vs-dark .monaco-inputbox,.monaco-editor.vs-dark .monaco-inputbox.idle{border:2px solid #50535e}.monaco-editor .monaco-inputbox,.monaco-editor .monaco-inputbox.idle{border:2px solid #a3a6af;border-radius:4px;overflow:hidden}.monaco-editor .find-widget>.button.codicon-widget-close{top:10px}.monaco-editor .find-widget .codicon.toggle.codicon-find-expanded:before{transform:rotate(180deg)}.monaco-editor .find-widget .monaco-scrollable-element>.monaco-inputbox.idle .ibwrapper>textarea.input{padding-top:4px}.monaco-editor .monaco-inputbox .input{line-height:18px}.monaco-editor.vs-dark .find-widget .monaco-scrollable-element>.monaco-inputbox.synthetic-focus{border:1px solid #2962ff!important}.monaco-editor .find-widget .monaco-scrollable-element>.monaco-inputbox.synthetic-focus{border:1px solid #2962ff!important;outline-color:#0000}.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}.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}.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;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: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}.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}.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,j){typeof exports=="object"&&typeof module<"u"?j(exports,require("react"),require("monaco-editor"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","monaco-editor","react-dom"],j):(q=typeof globalThis<"u"?globalThis:q||self,j(q.vueEditor={},q.react,q["monaco-editor"],q["react-dom"]))})(this,function(q,j,Se,ru){"use strict";var Mi=document.createElement("style");Mi.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}.monaco-editor.vs-dark .quick-input-widget{background:#1e222d!important}.monaco-editor .monaco-inputbox:focus-within,.monaco-editor.vs-dark .monaco-inputbox:focus-within{border-color:#2962ff}.monaco-editor .quick-input-widget .monaco-inputbox{background-color:unset!important;border:unset!important}.monaco-editor .quick-input-widget .input:active,.monaco-editor .quick-input-widget .input:focus{border:2px solid #2962ff}.monaco-editor.vs-dark .quick-input-widget .input{background-color:#1e222d!important;color:#d1d4dc!important}.monaco-editor .monaco-inputbox .input{font-size:14px;line-height:18px;outline:none}.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}.monaco-editor .overflow-guard{overflow:hidden!important}section{display:block!important}.monaco-editor .find-widget .codicon.toggle:before{content:"";font-size:15px;transition:.3s ease-out}.monaco-editor .find-widget.replaceToggled{height:80px!important}.monaco-editor .find-widget{border-bottom-left-radius:6px;border-bottom-right-radius:6px;height:44px!important;width:450px!important;transition:.3s ease-out}.monaco-editor .find-widget.replaceToggled .find-part,.monaco-editor .find-widget.replaceToggled .replace-part{margin-left:17px}.monaco-editor .find-widget .codicon.toggle.codicon-find-expanded{height:77px}.monaco-editor .find-widget.replaceToggled .replace-part{margin-top:8px}.monaco-editor .find-widget .codicon.toggle{border-radius:4px;cursor:default;height:41px;left:2px;top:2px}.monaco-editor .find-widget .monaco-sash{display:none}.monaco-editor .find-widget .find-part{margin-top:8px}.monaco-editor .find-widget .monaco-findInput{width:255px}.monaco-editor .monaco-scrollable-element{--vscode-scrollbarSlider-background: #64646466;margin-bottom:-2px}.monaco-editor.vs-dark .find-widget .monaco-scrollable-element>.monaco-inputbox.idle{background-color:#1e222d!important}.monaco-editor.vs-dark .find-widget .monaco-scrollable-element>.monaco-inputbox.idle{border-color:#50535e!important}.monaco-editor .find-widget .monaco-scrollable-element>.monaco-inputbox.idle{background-color:#fff!important;border-color:#d1d4dc!important;border-radius:6px;height:28px}.monaco-editor.vs-dark .monaco-inputbox,.monaco-editor.vs-dark .monaco-inputbox.idle{border:2px solid #50535e}.monaco-editor .monaco-inputbox,.monaco-editor .monaco-inputbox.idle{border:2px solid #a3a6af;border-radius:4px;overflow:hidden}.monaco-editor .find-widget>.button.codicon-widget-close{top:10px}.monaco-editor .find-widget .codicon.toggle.codicon-find-expanded:before{transform:rotate(180deg)}.monaco-editor .find-widget .monaco-scrollable-element>.monaco-inputbox.idle .ibwrapper>textarea.input{padding-top:4px}.monaco-editor .monaco-inputbox .input{line-height:18px}.monaco-editor.vs-dark .find-widget .monaco-scrollable-element>.monaco-inputbox.synthetic-focus{border:1px solid #2962ff!important}.monaco-editor .find-widget .monaco-scrollable-element>.monaco-inputbox.synthetic-focus{border:1px solid #2962ff!important;outline-color:#0000}.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}.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}.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;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: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}.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}.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}
2
+ (function(q,M){typeof exports=="object"&&typeof module<"u"?M(exports,require("react"),require("monaco-editor"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","monaco-editor","react-dom"],M):(q=typeof globalThis<"u"?globalThis:q||self,M(q.vueEditor={},q.react,q["monaco-editor"],q["react-dom"]))})(this,function(q,M,Se,ru){"use strict";var Mi=document.createElement("style");Mi.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}.monaco-editor.vs-dark .quick-input-widget{background:#1e222d!important}.monaco-editor .monaco-inputbox:focus-within,.monaco-editor.vs-dark .monaco-inputbox:focus-within{border-color:#2962ff}.monaco-editor .quick-input-widget .monaco-inputbox{background-color:unset!important;border:unset!important}.monaco-editor .quick-input-widget .input:active,.monaco-editor .quick-input-widget .input:focus{border:2px solid #2962ff}.monaco-editor.vs-dark .quick-input-widget .input{background-color:#1e222d!important;color:#d1d4dc!important}.monaco-editor .monaco-inputbox .input{font-size:14px;line-height:18px;outline:none}.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}.monaco-editor .overflow-guard{overflow:hidden!important}section{display:block!important}.monaco-editor .find-widget .codicon.toggle:before{content:"";font-size:15px;transition:.3s ease-out}.monaco-editor .find-widget.replaceToggled{height:80px!important}.monaco-editor .find-widget{border-bottom-left-radius:6px;border-bottom-right-radius:6px;height:44px!important;width:450px!important;transition:.3s ease-out}.monaco-editor .find-widget.replaceToggled .find-part,.monaco-editor .find-widget.replaceToggled .replace-part{margin-left:17px}.monaco-editor .find-widget .codicon.toggle.codicon-find-expanded{height:77px}.monaco-editor .find-widget.replaceToggled .replace-part{margin-top:8px}.monaco-editor .find-widget .codicon.toggle{border-radius:4px;cursor:default;height:41px;left:2px;top:2px}.monaco-editor .find-widget .monaco-sash{display:none}.monaco-editor .find-widget .find-part{margin-top:8px}.monaco-editor .find-widget .monaco-findInput{width:255px}.monaco-editor .monaco-scrollable-element{--vscode-scrollbarSlider-background: #64646466;margin-bottom:-2px}.monaco-editor.vs-dark .find-widget .monaco-scrollable-element>.monaco-inputbox.idle{background-color:#1e222d!important}.monaco-editor.vs-dark .find-widget .monaco-scrollable-element>.monaco-inputbox.idle{border-color:#50535e!important}.monaco-editor .find-widget .monaco-scrollable-element>.monaco-inputbox.idle{background-color:#fff!important;border-color:#d1d4dc!important;border-radius:6px;height:28px}.monaco-editor.vs-dark .monaco-inputbox,.monaco-editor.vs-dark .monaco-inputbox.idle{border:2px solid #50535e}.monaco-editor .monaco-inputbox,.monaco-editor .monaco-inputbox.idle{border:2px solid #a3a6af;border-radius:4px;overflow:hidden}.monaco-editor .find-widget>.button.codicon-widget-close{top:10px}.monaco-editor .find-widget .codicon.toggle.codicon-find-expanded:before{transform:rotate(180deg)}.monaco-editor .find-widget .monaco-scrollable-element>.monaco-inputbox.idle .ibwrapper>textarea.input{padding-top:4px}.monaco-editor .monaco-inputbox .input{line-height:18px}.monaco-editor.vs-dark .find-widget .monaco-scrollable-element>.monaco-inputbox.synthetic-focus{border:1px solid #2962ff!important}.monaco-editor .find-widget .monaco-scrollable-element>.monaco-inputbox.synthetic-focus{border:1px solid #2962ff!important;outline-color:#0000}.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}.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}.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;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: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}.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}.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
3
  `,document.head.appendChild(Mi);var ja=typeof document<"u"?document.currentScript:null;function au(s){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const a in s)if(a!=="default"){const o=Object.getOwnPropertyDescriptor(s,a);Object.defineProperty(n,a,o.get?o:{enumerable:!0,get:()=>s[a]})}}return n.default=s,Object.freeze(n)}const su=au(Se);var Fi;(function(s){s.Comment="comment",s.Text="text",s.String="string",s.Paren="paren",s.StringInvalid="string.invalid",s.ConstantNumericInteger="constant.numeric.integer",s.ConstantNumericFloat="constant.numeric.float",s.ConstantLanguage="constant.language",s.ConstantLanguageBoolean="constant.other.boolean",s.ConstantOtherColor="constant.other.color",s.SupportVariable="support.variable",s.SupportType="support.type",s.Keyword="keyword",s.KeywordEquals="keyword.equals",s.KeywordOperator="keyword.operator",s.CustomType="entity.name.type",s.VariableOther="variable.other",s.Property="variable.other.property",s.SupportFunction="support.function",s.SupportMethod="support.method",s.ImportedFunction="meta.function-call",s.Function="entity.name.function",s.ImportName="entity.name.module",s.ImportAlias="entity.name.module.name",s.ExtensionMethod="entity.name.method",s.Annotation="comment.annotation",s.PunctuationOperator="punctuation.operator",s.Empty="empty",s.Source="source"})(Fi||(Fi={}));var _t;(function(s){s.Type="type",s.Returns="Returns",s.Syntax="Syntax",s.Remarks="Remarks",s.Fields="Fields",s.Description="Description",s.Example="Example"})(_t||(_t={})),q.Actions=void 0,function(s){s.Save="save",s.Find="find",s.TriggerConsole="trigger.console"}(q.Actions||(q.Actions={}));var ra=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function nu(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var Zs={exports:{}},aa={};/**
4
4
  * @license React
5
5
  * react-jsx-runtime.production.min.js
@@ -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 ji;function iu(){if(ji)return aa;ji=1;var s=j,n=Symbol.for("react.element"),a=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,u=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function m(h,b,g){var w,T={},L=null,M=null;g!==void 0&&(L=""+g),b.key!==void 0&&(L=""+b.key),b.ref!==void 0&&(M=b.ref);for(w in b)o.call(b,w)&&!c.hasOwnProperty(w)&&(T[w]=b[w]);if(h&&h.defaultProps)for(w in b=h.defaultProps,b)T[w]===void 0&&(T[w]=b[w]);return{$$typeof:n,type:h,key:L,ref:M,props:T,_owner:u.current}}return aa.Fragment=a,aa.jsx=m,aa.jsxs=m,aa}var sa={};/**
11
+ */var ji;function iu(){if(ji)return aa;ji=1;var s=M,n=Symbol.for("react.element"),a=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,u=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function m(h,b,g){var w,I={},R=null,L=null;g!==void 0&&(R=""+g),b.key!==void 0&&(R=""+b.key),b.ref!==void 0&&(L=b.ref);for(w in b)o.call(b,w)&&!c.hasOwnProperty(w)&&(I[w]=b[w]);if(h&&h.defaultProps)for(w in b=h.defaultProps,b)I[w]===void 0&&(I[w]=b[w]);return{$$typeof:n,type:h,key:R,ref:L,props:I,_owner:u.current}}return aa.Fragment=a,aa.jsx=m,aa.jsxs=m,aa}var sa={};/**
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 Bi;function ou(){return Bi||(Bi=1,process.env.NODE_ENV!=="production"&&function(){var s=j,n=Symbol.for("react.element"),a=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),h=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),w=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),L=Symbol.for("react.lazy"),M=Symbol.for("react.offscreen"),B=Symbol.iterator,P="@@iterator";function Y(y){if(y===null||typeof y!="object")return null;var N=B&&y[B]||y[P];return typeof N=="function"?N:null}var F=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function U(y){{for(var N=arguments.length,W=new Array(N>1?N-1:0),ee=1;ee<N;ee++)W[ee-1]=arguments[ee];R("error",y,W)}}function R(y,N,W){{var ee=F.ReactDebugCurrentFrame,me=ee.getStackAddendum();me!==""&&(N+="%s",W=W.concat([me]));var ge=W.map(function(ue){return String(ue)});ge.unshift("Warning: "+N),Function.prototype.apply.call(console[y],console,ge)}}var k=!1,E=!1,G=!1,V=!1,he=!1,_e;_e=Symbol.for("react.module.reference");function ce(y){return!!(typeof y=="string"||typeof y=="function"||y===o||y===c||he||y===u||y===g||y===w||V||y===M||k||E||G||typeof y=="object"&&y!==null&&(y.$$typeof===L||y.$$typeof===T||y.$$typeof===m||y.$$typeof===h||y.$$typeof===b||y.$$typeof===_e||y.getModuleId!==void 0))}function bt(y,N,W){var ee=y.displayName;if(ee)return ee;var me=N.displayName||N.name||"";return me!==""?W+"("+me+")":W}function St(y){return y.displayName||"Context"}function Me(y){if(y==null)return null;if(typeof y.tag=="number"&&U("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof y=="function")return y.displayName||y.name||null;if(typeof y=="string")return y;switch(y){case o:return"Fragment";case a:return"Portal";case c:return"Profiler";case u:return"StrictMode";case g:return"Suspense";case w:return"SuspenseList"}if(typeof y=="object")switch(y.$$typeof){case h:var N=y;return St(N)+".Consumer";case m:var W=y;return St(W._context)+".Provider";case b:return bt(y,y.render,"ForwardRef");case T:var ee=y.displayName||null;return ee!==null?ee:Me(y.type)||"Memo";case L:{var me=y,ge=me._payload,ue=me._init;try{return Me(ue(ge))}catch{return null}}}return null}var Fe=Object.assign,K=0,fe,Oe,Le,lt,je,te,Te;function We(){}We.__reactDisabledLog=!0;function Ht(){{if(K===0){fe=console.log,Oe=console.info,Le=console.warn,lt=console.error,je=console.group,te=console.groupCollapsed,Te=console.groupEnd;var y={configurable:!0,enumerable:!0,value:We,writable:!0};Object.defineProperties(console,{info:y,log:y,warn:y,error:y,group:y,groupCollapsed:y,groupEnd:y})}K++}}function Qe(){{if(K--,K===0){var y={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Fe({},y,{value:fe}),info:Fe({},y,{value:Oe}),warn:Fe({},y,{value:Le}),error:Fe({},y,{value:lt}),group:Fe({},y,{value:je}),groupCollapsed:Fe({},y,{value:te}),groupEnd:Fe({},y,{value:Te})})}K<0&&U("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var nr=F.ReactCurrentDispatcher,ma;function Ft(y,N,W){{if(ma===void 0)try{throw Error()}catch(me){var ee=me.stack.trim().match(/\n( *(at )?)/);ma=ee&&ee[1]||""}return`
20
- `+ma+y}}var $t=!1,Pr;{var Er=typeof WeakMap=="function"?WeakMap:Map;Pr=new Er}function br(y,N){if(!y||$t)return"";{var W=Pr.get(y);if(W!==void 0)return W}var ee;$t=!0;var me=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ge;ge=nr.current,nr.current=null,Ht();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(rt){ee=rt}Reflect.construct(y,[],ue)}else{try{ue.call()}catch(rt){ee=rt}y.call(ue.prototype)}}else{try{throw Error()}catch(rt){ee=rt}y()}}catch(rt){if(rt&&ee&&typeof rt.stack=="string"){for(var oe=rt.stack.split(`
19
+ */var Bi;function ou(){return Bi||(Bi=1,process.env.NODE_ENV!=="production"&&function(){var s=M,n=Symbol.for("react.element"),a=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),h=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),w=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),L=Symbol.for("react.offscreen"),j=Symbol.iterator,E="@@iterator";function V(y){if(y===null||typeof y!="object")return null;var O=j&&y[j]||y[E];return typeof O=="function"?O:null}var Q=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function G(y){{for(var O=arguments.length,B=new Array(O>1?O-1:0),ee=1;ee<O;ee++)B[ee-1]=arguments[ee];F("error",y,B)}}function F(y,O,B){{var ee=Q.ReactDebugCurrentFrame,fe=ee.getStackAddendum();fe!==""&&(O+="%s",B=B.concat([fe]));var ge=B.map(function(de){return String(de)});ge.unshift("Warning: "+O),Function.prototype.apply.call(console[y],console,ge)}}var T=!1,z=!1,H=!1,$=!1,ce=!1,ye;ye=Symbol.for("react.module.reference");function ue(y){return!!(typeof y=="string"||typeof y=="function"||y===o||y===c||ce||y===u||y===g||y===w||$||y===L||T||z||H||typeof y=="object"&&y!==null&&(y.$$typeof===R||y.$$typeof===I||y.$$typeof===m||y.$$typeof===h||y.$$typeof===b||y.$$typeof===ye||y.getModuleId!==void 0))}function bt(y,O,B){var ee=y.displayName;if(ee)return ee;var fe=O.displayName||O.name||"";return fe!==""?B+"("+fe+")":B}function St(y){return y.displayName||"Context"}function Me(y){if(y==null)return null;if(typeof y.tag=="number"&&G("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof y=="function")return y.displayName||y.name||null;if(typeof y=="string")return y;switch(y){case o:return"Fragment";case a:return"Portal";case c:return"Profiler";case u:return"StrictMode";case g:return"Suspense";case w:return"SuspenseList"}if(typeof y=="object")switch(y.$$typeof){case h:var O=y;return St(O)+".Consumer";case m:var B=y;return St(B._context)+".Provider";case b:return bt(y,y.render,"ForwardRef");case I:var ee=y.displayName||null;return ee!==null?ee:Me(y.type)||"Memo";case R:{var fe=y,ge=fe._payload,de=fe._init;try{return Me(de(ge))}catch{return null}}}return null}var Fe=Object.assign,Y=0,he,Oe,Le,lt,je,te,Te;function We(){}We.__reactDisabledLog=!0;function Ht(){{if(Y===0){he=console.log,Oe=console.info,Le=console.warn,lt=console.error,je=console.group,te=console.groupCollapsed,Te=console.groupEnd;var y={configurable:!0,enumerable:!0,value:We,writable:!0};Object.defineProperties(console,{info:y,log:y,warn:y,error:y,group:y,groupCollapsed:y,groupEnd:y})}Y++}}function Qe(){{if(Y--,Y===0){var y={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Fe({},y,{value:he}),info:Fe({},y,{value:Oe}),warn:Fe({},y,{value:Le}),error:Fe({},y,{value:lt}),group:Fe({},y,{value:je}),groupCollapsed:Fe({},y,{value:te}),groupEnd:Fe({},y,{value:Te})})}Y<0&&G("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var nr=Q.ReactCurrentDispatcher,ma;function Ft(y,O,B){{if(ma===void 0)try{throw Error()}catch(fe){var ee=fe.stack.trim().match(/\n( *(at )?)/);ma=ee&&ee[1]||""}return`
20
+ `+ma+y}}var $t=!1,Pr;{var Er=typeof WeakMap=="function"?WeakMap:Map;Pr=new Er}function br(y,O){if(!y||$t)return"";{var B=Pr.get(y);if(B!==void 0)return B}var ee;$t=!0;var fe=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ge;ge=nr.current,nr.current=null,Ht();try{if(O){var de=function(){throw Error()};if(Object.defineProperty(de.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(de,[])}catch(rt){ee=rt}Reflect.construct(y,[],de)}else{try{de.call()}catch(rt){ee=rt}y.call(de.prototype)}}else{try{throw Error()}catch(rt){ee=rt}y()}}catch(rt){if(rt&&ee&&typeof rt.stack=="string"){for(var oe=rt.stack.split(`
21
21
  `),$e=ee.stack.split(`
22
22
  `),qe=oe.length-1,ze=$e.length-1;qe>=1&&ze>=0&&oe[qe]!==$e[ze];)ze--;for(;qe>=1&&ze>=0;qe--,ze--)if(oe[qe]!==$e[ze]){if(qe!==1||ze!==1)do if(qe--,ze--,ze<0||oe[qe]!==$e[ze]){var tt=`
23
- `+oe[qe].replace(" at new "," at ");return y.displayName&&tt.includes("<anonymous>")&&(tt=tt.replace("<anonymous>",y.displayName)),typeof y=="function"&&Pr.set(y,tt),tt}while(qe>=1&&ze>=0);break}}}finally{$t=!1,nr.current=ge,Qe(),Error.prepareStackTrace=me}var Nt=y?y.displayName||y.name:"",ds=Nt?Ft(Nt):"";return typeof y=="function"&&Pr.set(y,ds),ds}function rs(y,N,W){return br(y,!1)}function ct(y){var N=y.prototype;return!!(N&&N.isReactComponent)}function jt(y,N,W){if(y==null)return"";if(typeof y=="function")return br(y,ct(y));if(typeof y=="string")return Ft(y);switch(y){case g:return Ft("Suspense");case w:return Ft("SuspenseList")}if(typeof y=="object")switch(y.$$typeof){case b:return rs(y.render);case T:return jt(y.type,N,W);case L:{var ee=y,me=ee._payload,ge=ee._init;try{return jt(ge(me),N,W)}catch{}}}return""}var Rr=Object.prototype.hasOwnProperty,xt={},fa=F.ReactDebugCurrentFrame;function Lr(y){if(y){var N=y._owner,W=jt(y.type,y._source,N?N.type:null);fa.setExtraStackFrame(W)}else fa.setExtraStackFrame(null)}function xr(y,N,W,ee,me){{var ge=Function.call.bind(Rr);for(var ue in y)if(ge(y,ue)){var oe=void 0;try{if(typeof y[ue]!="function"){var $e=Error((ee||"React class")+": "+W+" type `"+ue+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof y[ue]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw $e.name="Invariant Violation",$e}oe=y[ue](N,ue,ee,W,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(qe){oe=qe}oe&&!(oe instanceof Error)&&(Lr(me),U("%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",W,ue,typeof oe),Lr(null)),oe instanceof Error&&!(oe.message in xt)&&(xt[oe.message]=!0,Lr(me),U("Failed %s type: %s",W,oe.message),Lr(null))}}}var ut=Array.isArray;function Xt(y){return ut(y)}function Mr(y){{var N=typeof Symbol=="function"&&Symbol.toStringTag,W=N&&y[Symbol.toStringTag]||y.constructor.name||"Object";return W}}function wn(y){try{return ir(y),!1}catch{return!0}}function ir(y){return""+y}function as(y){if(wn(y))return U("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Mr(y)),ir(y)}var zt=F.ReactCurrentOwner,or={key:!0,ref:!0,__self:!0,__source:!0},Fr,jr,wr;wr={};function ya(y){if(Rr.call(y,"ref")){var N=Object.getOwnPropertyDescriptor(y,"ref").get;if(N&&N.isReactWarning)return!1}return y.ref!==void 0}function ha(y){if(Rr.call(y,"key")){var N=Object.getOwnPropertyDescriptor(y,"key").get;if(N&&N.isReactWarning)return!1}return y.key!==void 0}function _a(y,N){if(typeof y.ref=="string"&&zt.current&&N&&zt.current.stateNode!==N){var W=Me(zt.current.type);wr[W]||(U('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',Me(zt.current.type),y.ref),wr[W]=!0)}}function ga(y,N){{var W=function(){Fr||(Fr=!0,U("%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))};W.isReactWarning=!0,Object.defineProperty(y,"key",{get:W,configurable:!0})}}function ba(y,N){{var W=function(){jr||(jr=!0,U("%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))};W.isReactWarning=!0,Object.defineProperty(y,"ref",{get:W,configurable:!0})}}var xa=function(y,N,W,ee,me,ge,ue){var oe={$$typeof:n,type:y,key:N,ref:W,props:ue,_owner:ge};return oe._store={},Object.defineProperty(oe._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(oe,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ee}),Object.defineProperty(oe,"_source",{configurable:!1,enumerable:!1,writable:!1,value:me}),Object.freeze&&(Object.freeze(oe.props),Object.freeze(oe)),oe};function vn(y,N,W,ee,me){{var ge,ue={},oe=null,$e=null;W!==void 0&&(as(W),oe=""+W),ha(N)&&(as(N.key),oe=""+N.key),ya(N)&&($e=N.ref,_a(N,me));for(ge in N)Rr.call(N,ge)&&!or.hasOwnProperty(ge)&&(ue[ge]=N[ge]);if(y&&y.defaultProps){var qe=y.defaultProps;for(ge in qe)ue[ge]===void 0&&(ue[ge]=qe[ge])}if(oe||$e){var ze=typeof y=="function"?y.displayName||y.name||"Unknown":y;oe&&ga(ue,ze),$e&&ba(ue,ze)}return xa(y,oe,$e,me,ee,zt.current,ue)}}var wa=F.ReactCurrentOwner,ss=F.ReactDebugCurrentFrame;function Gt(y){if(y){var N=y._owner,W=jt(y.type,y._source,N?N.type:null);ss.setExtraStackFrame(W)}else ss.setExtraStackFrame(null)}var Br;Br=!1;function va(y){return typeof y=="object"&&y!==null&&y.$$typeof===n}function ns(){{if(wa.current){var y=Me(wa.current.type);if(y)return`
23
+ `+oe[qe].replace(" at new "," at ");return y.displayName&&tt.includes("<anonymous>")&&(tt=tt.replace("<anonymous>",y.displayName)),typeof y=="function"&&Pr.set(y,tt),tt}while(qe>=1&&ze>=0);break}}}finally{$t=!1,nr.current=ge,Qe(),Error.prepareStackTrace=fe}var Nt=y?y.displayName||y.name:"",ds=Nt?Ft(Nt):"";return typeof y=="function"&&Pr.set(y,ds),ds}function rs(y,O,B){return br(y,!1)}function ct(y){var O=y.prototype;return!!(O&&O.isReactComponent)}function jt(y,O,B){if(y==null)return"";if(typeof y=="function")return br(y,ct(y));if(typeof y=="string")return Ft(y);switch(y){case g:return Ft("Suspense");case w:return Ft("SuspenseList")}if(typeof y=="object")switch(y.$$typeof){case b:return rs(y.render);case I:return jt(y.type,O,B);case R:{var ee=y,fe=ee._payload,ge=ee._init;try{return jt(ge(fe),O,B)}catch{}}}return""}var Rr=Object.prototype.hasOwnProperty,xt={},fa=Q.ReactDebugCurrentFrame;function Lr(y){if(y){var O=y._owner,B=jt(y.type,y._source,O?O.type:null);fa.setExtraStackFrame(B)}else fa.setExtraStackFrame(null)}function xr(y,O,B,ee,fe){{var ge=Function.call.bind(Rr);for(var de in y)if(ge(y,de)){var oe=void 0;try{if(typeof y[de]!="function"){var $e=Error((ee||"React class")+": "+B+" type `"+de+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof y[de]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw $e.name="Invariant Violation",$e}oe=y[de](O,de,ee,B,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(qe){oe=qe}oe&&!(oe instanceof Error)&&(Lr(fe),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",B,de,typeof oe),Lr(null)),oe instanceof Error&&!(oe.message in xt)&&(xt[oe.message]=!0,Lr(fe),G("Failed %s type: %s",B,oe.message),Lr(null))}}}var ut=Array.isArray;function Xt(y){return ut(y)}function Mr(y){{var O=typeof Symbol=="function"&&Symbol.toStringTag,B=O&&y[Symbol.toStringTag]||y.constructor.name||"Object";return B}}function wn(y){try{return ir(y),!1}catch{return!0}}function ir(y){return""+y}function as(y){if(wn(y))return G("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Mr(y)),ir(y)}var zt=Q.ReactCurrentOwner,or={key:!0,ref:!0,__self:!0,__source:!0},Fr,jr,wr;wr={};function ya(y){if(Rr.call(y,"ref")){var O=Object.getOwnPropertyDescriptor(y,"ref").get;if(O&&O.isReactWarning)return!1}return y.ref!==void 0}function ha(y){if(Rr.call(y,"key")){var O=Object.getOwnPropertyDescriptor(y,"key").get;if(O&&O.isReactWarning)return!1}return y.key!==void 0}function _a(y,O){if(typeof y.ref=="string"&&zt.current&&O&&zt.current.stateNode!==O){var B=Me(zt.current.type);wr[B]||(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',Me(zt.current.type),y.ref),wr[B]=!0)}}function ga(y,O){{var B=function(){Fr||(Fr=!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)",O))};B.isReactWarning=!0,Object.defineProperty(y,"key",{get:B,configurable:!0})}}function ba(y,O){{var B=function(){jr||(jr=!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)",O))};B.isReactWarning=!0,Object.defineProperty(y,"ref",{get:B,configurable:!0})}}var xa=function(y,O,B,ee,fe,ge,de){var oe={$$typeof:n,type:y,key:O,ref:B,props:de,_owner:ge};return oe._store={},Object.defineProperty(oe._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(oe,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ee}),Object.defineProperty(oe,"_source",{configurable:!1,enumerable:!1,writable:!1,value:fe}),Object.freeze&&(Object.freeze(oe.props),Object.freeze(oe)),oe};function vn(y,O,B,ee,fe){{var ge,de={},oe=null,$e=null;B!==void 0&&(as(B),oe=""+B),ha(O)&&(as(O.key),oe=""+O.key),ya(O)&&($e=O.ref,_a(O,fe));for(ge in O)Rr.call(O,ge)&&!or.hasOwnProperty(ge)&&(de[ge]=O[ge]);if(y&&y.defaultProps){var qe=y.defaultProps;for(ge in qe)de[ge]===void 0&&(de[ge]=qe[ge])}if(oe||$e){var ze=typeof y=="function"?y.displayName||y.name||"Unknown":y;oe&&ga(de,ze),$e&&ba(de,ze)}return xa(y,oe,$e,fe,ee,zt.current,de)}}var wa=Q.ReactCurrentOwner,ss=Q.ReactDebugCurrentFrame;function Gt(y){if(y){var O=y._owner,B=jt(y.type,y._source,O?O.type:null);ss.setExtraStackFrame(B)}else ss.setExtraStackFrame(null)}var Br;Br=!1;function va(y){return typeof y=="object"&&y!==null&&y.$$typeof===n}function ns(){{if(wa.current){var y=Me(wa.current.type);if(y)return`
24
24
 
25
- Check the render method of \``+y+"`."}return""}}function Tn(y){{if(y!==void 0){var N=y.fileName.replace(/^.*[\\\/]/,""),W=y.lineNumber;return`
25
+ Check the render method of \``+y+"`."}return""}}function Tn(y){{if(y!==void 0){var O=y.fileName.replace(/^.*[\\\/]/,""),B=y.lineNumber;return`
26
26
 
27
- Check your code at `+N+":"+W+"."}return""}}var is={};function os(y){{var N=ns();if(!N){var W=typeof y=="string"?y:y.displayName||y.name;W&&(N=`
27
+ Check your code at `+O+":"+B+"."}return""}}var is={};function os(y){{var O=ns();if(!O){var B=typeof y=="string"?y:y.displayName||y.name;B&&(O=`
28
28
 
29
- Check the top-level render call using <`+W+">.")}return N}}function ls(y,N){{if(!y._store||y._store.validated||y.key!=null)return;y._store.validated=!0;var W=os(N);if(is[W])return;is[W]=!0;var ee="";y&&y._owner&&y._owner!==wa.current&&(ee=" It was passed a child from "+Me(y._owner.type)+"."),Gt(y),U('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',W,ee),Gt(null)}}function cs(y,N){{if(typeof y!="object")return;if(Xt(y))for(var W=0;W<y.length;W++){var ee=y[W];va(ee)&&ls(ee,N)}else if(va(y))y._store&&(y._store.validated=!0);else if(y){var me=Y(y);if(typeof me=="function"&&me!==y.entries)for(var ge=me.call(y),ue;!(ue=ge.next()).done;)va(ue.value)&&ls(ue.value,N)}}}function In(y){{var N=y.type;if(N==null||typeof N=="string")return;var W;if(typeof N=="function")W=N.propTypes;else if(typeof N=="object"&&(N.$$typeof===b||N.$$typeof===T))W=N.propTypes;else return;if(W){var ee=Me(N);xr(W,y.props,"prop",ee,y)}else if(N.PropTypes!==void 0&&!Br){Br=!0;var me=Me(N);U("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",me||"Unknown")}typeof N.getDefaultProps=="function"&&!N.getDefaultProps.isReactClassApproved&&U("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ta(y){{for(var N=Object.keys(y.props),W=0;W<N.length;W++){var ee=N[W];if(ee!=="children"&&ee!=="key"){Gt(y),U("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ee),Gt(null);break}}y.ref!==null&&(Gt(y),U("Invalid attribute `ref` supplied to `React.Fragment`."),Gt(null))}}function us(y,N,W,ee,me,ge){{var ue=ce(y);if(!ue){var oe="";(y===void 0||typeof y=="object"&&y!==null&&Object.keys(y).length===0)&&(oe+=" 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 $e=Tn(me);$e?oe+=$e:oe+=ns();var qe;y===null?qe="null":Xt(y)?qe="array":y!==void 0&&y.$$typeof===n?(qe="<"+(Me(y.type)||"Unknown")+" />",oe=" Did you accidentally export a JSX literal instead of a component?"):qe=typeof y,U("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",qe,oe)}var ze=vn(y,N,W,me,ge);if(ze==null)return ze;if(ue){var tt=N.children;if(tt!==void 0)if(ee)if(Xt(tt)){for(var Nt=0;Nt<tt.length;Nt++)cs(tt[Nt],y);Object.freeze&&Object.freeze(tt)}else U("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 cs(tt,y)}return y===o?Ta(ze):In(ze),ze}}function Ia(y,N,W){return us(y,N,W,!0)}function kn(y,N,W){return us(y,N,W,!1)}var Dn=kn,An=Ia;sa.Fragment=o,sa.jsx=Dn,sa.jsxs=An}()),sa}process.env.NODE_ENV==="production"?Zs.exports=iu():Zs.exports=ou();var O=Zs.exports;function lu(s,n,a){return n in s?Object.defineProperty(s,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):s[n]=a,s}function Ui(s,n){var a=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);n&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),a.push.apply(a,o)}return a}function Wi(s){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?arguments[n]:{};n%2?Ui(Object(a),!0).forEach(function(o){lu(s,o,a[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(a)):Ui(Object(a)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(a,o))})}return s}function cu(s,n){if(s==null)return{};var a={},o=Object.keys(s),u,c;for(c=0;c<o.length;c++)u=o[c],!(n.indexOf(u)>=0)&&(a[u]=s[u]);return a}function uu(s,n){if(s==null)return{};var a=cu(s,n),o,u;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(s);for(u=0;u<c.length;u++)o=c[u],!(n.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(s,o)&&(a[o]=s[o])}return a}function du(s,n){return pu(s)||mu(s,n)||fu(s,n)||yu()}function pu(s){if(Array.isArray(s))return s}function mu(s,n){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(s)))){var a=[],o=!0,u=!1,c=void 0;try{for(var m=s[Symbol.iterator](),h;!(o=(h=m.next()).done)&&(a.push(h.value),!(n&&a.length===n));o=!0);}catch(b){u=!0,c=b}finally{try{!o&&m.return!=null&&m.return()}finally{if(u)throw c}}return a}}function fu(s,n){if(s){if(typeof s=="string")return Hi(s,n);var a=Object.prototype.toString.call(s).slice(8,-1);if(a==="Object"&&s.constructor&&(a=s.constructor.name),a==="Map"||a==="Set")return Array.from(s);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Hi(s,n)}}function Hi(s,n){(n==null||n>s.length)&&(n=s.length);for(var a=0,o=new Array(n);a<n;a++)o[a]=s[a];return o}function yu(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
29
+ Check the top-level render call using <`+B+">.")}return O}}function ls(y,O){{if(!y._store||y._store.validated||y.key!=null)return;y._store.validated=!0;var B=os(O);if(is[B])return;is[B]=!0;var ee="";y&&y._owner&&y._owner!==wa.current&&(ee=" It was passed a child from "+Me(y._owner.type)+"."),Gt(y),G('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',B,ee),Gt(null)}}function cs(y,O){{if(typeof y!="object")return;if(Xt(y))for(var B=0;B<y.length;B++){var ee=y[B];va(ee)&&ls(ee,O)}else if(va(y))y._store&&(y._store.validated=!0);else if(y){var fe=V(y);if(typeof fe=="function"&&fe!==y.entries)for(var ge=fe.call(y),de;!(de=ge.next()).done;)va(de.value)&&ls(de.value,O)}}}function In(y){{var O=y.type;if(O==null||typeof O=="string")return;var B;if(typeof O=="function")B=O.propTypes;else if(typeof O=="object"&&(O.$$typeof===b||O.$$typeof===I))B=O.propTypes;else return;if(B){var ee=Me(O);xr(B,y.props,"prop",ee,y)}else if(O.PropTypes!==void 0&&!Br){Br=!0;var fe=Me(O);G("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",fe||"Unknown")}typeof O.getDefaultProps=="function"&&!O.getDefaultProps.isReactClassApproved&&G("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ta(y){{for(var O=Object.keys(y.props),B=0;B<O.length;B++){var ee=O[B];if(ee!=="children"&&ee!=="key"){Gt(y),G("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ee),Gt(null);break}}y.ref!==null&&(Gt(y),G("Invalid attribute `ref` supplied to `React.Fragment`."),Gt(null))}}function us(y,O,B,ee,fe,ge){{var de=ue(y);if(!de){var oe="";(y===void 0||typeof y=="object"&&y!==null&&Object.keys(y).length===0)&&(oe+=" 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 $e=Tn(fe);$e?oe+=$e:oe+=ns();var qe;y===null?qe="null":Xt(y)?qe="array":y!==void 0&&y.$$typeof===n?(qe="<"+(Me(y.type)||"Unknown")+" />",oe=" Did you accidentally export a JSX literal instead of a component?"):qe=typeof y,G("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",qe,oe)}var ze=vn(y,O,B,fe,ge);if(ze==null)return ze;if(de){var tt=O.children;if(tt!==void 0)if(ee)if(Xt(tt)){for(var Nt=0;Nt<tt.length;Nt++)cs(tt[Nt],y);Object.freeze&&Object.freeze(tt)}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 cs(tt,y)}return y===o?Ta(ze):In(ze),ze}}function Ia(y,O,B){return us(y,O,B,!0)}function kn(y,O,B){return us(y,O,B,!1)}var Dn=kn,An=Ia;sa.Fragment=o,sa.jsx=Dn,sa.jsxs=An}()),sa}process.env.NODE_ENV==="production"?Zs.exports=iu():Zs.exports=ou();var P=Zs.exports;function lu(s,n,a){return n in s?Object.defineProperty(s,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):s[n]=a,s}function Ui(s,n){var a=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);n&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),a.push.apply(a,o)}return a}function Wi(s){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?arguments[n]:{};n%2?Ui(Object(a),!0).forEach(function(o){lu(s,o,a[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(a)):Ui(Object(a)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(a,o))})}return s}function cu(s,n){if(s==null)return{};var a={},o=Object.keys(s),u,c;for(c=0;c<o.length;c++)u=o[c],!(n.indexOf(u)>=0)&&(a[u]=s[u]);return a}function uu(s,n){if(s==null)return{};var a=cu(s,n),o,u;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(s);for(u=0;u<c.length;u++)o=c[u],!(n.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(s,o)&&(a[o]=s[o])}return a}function du(s,n){return pu(s)||mu(s,n)||fu(s,n)||yu()}function pu(s){if(Array.isArray(s))return s}function mu(s,n){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(s)))){var a=[],o=!0,u=!1,c=void 0;try{for(var m=s[Symbol.iterator](),h;!(o=(h=m.next()).done)&&(a.push(h.value),!(n&&a.length===n));o=!0);}catch(b){u=!0,c=b}finally{try{!o&&m.return!=null&&m.return()}finally{if(u)throw c}}return a}}function fu(s,n){if(s){if(typeof s=="string")return Hi(s,n);var a=Object.prototype.toString.call(s).slice(8,-1);if(a==="Object"&&s.constructor&&(a=s.constructor.name),a==="Map"||a==="Set")return Array.from(s);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Hi(s,n)}}function Hi(s,n){(n==null||n>s.length)&&(n=s.length);for(var a=0,o=new Array(n);a<n;a++)o[a]=s[a];return o}function yu(){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 hu(s,n,a){return n in s?Object.defineProperty(s,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):s[n]=a,s}function $i(s,n){var a=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);n&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),a.push.apply(a,o)}return a}function Xi(s){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?arguments[n]:{};n%2?$i(Object(a),!0).forEach(function(o){hu(s,o,a[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(a)):$i(Object(a)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(a,o))})}return s}function _u(){for(var s=arguments.length,n=new Array(s),a=0;a<s;a++)n[a]=arguments[a];return function(o){return n.reduceRight(function(u,c){return c(u)},o)}}function na(s){return function n(){for(var a=this,o=arguments.length,u=new Array(o),c=0;c<o;c++)u[c]=arguments[c];return u.length>=s.length?s.apply(this,u):function(){for(var m=arguments.length,h=new Array(m),b=0;b<m;b++)h[b]=arguments[b];return n.apply(a,[].concat(u,h))}}}function Ba(s){return{}.toString.call(s).includes("Object")}function gu(s){return!Object.keys(s).length}function ia(s){return typeof s=="function"}function bu(s,n){return Object.prototype.hasOwnProperty.call(s,n)}function xu(s,n){return Ba(n)||ar("changeType"),Object.keys(n).some(function(a){return!bu(s,a)})&&ar("changeField"),n}function wu(s){ia(s)||ar("selectorType")}function vu(s){ia(s)||Ba(s)||ar("handlerType"),Ba(s)&&Object.values(s).some(function(n){return!ia(n)})&&ar("handlersType")}function Tu(s){s||ar("initialIsRequired"),Ba(s)||ar("initialType"),gu(s)&&ar("initialContent")}function Iu(s,n){throw new Error(s[n]||s.default)}var ku={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"},ar=na(Iu)(ku),Ua={changes:xu,selector:wu,handler:vu,initial:Tu};function Du(s){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Ua.initial(s),Ua.handler(n);var a={current:s},o=na(Cu)(a,n),u=na(qu)(a),c=na(Ua.changes)(s),m=na(Au)(a);function h(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(w){return w};return Ua.selector(g),g(a.current)}function b(g){_u(o,u,c,m)(g)}return[h,b]}function Au(s,n){return ia(n)?n(s.current):n}function qu(s,n){return s.current=Xi(Xi({},s.current),n),n}function Cu(s,n,a){return ia(n)?n(s.current):Object.keys(a).forEach(function(o){var u;return(u=n[o])===null||u===void 0?void 0:u.call(n,s.current[o])}),a}var Su={create:Du},zu={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs"}};function Nu(s){return function n(){for(var a=this,o=arguments.length,u=new Array(o),c=0;c<o;c++)u[c]=arguments[c];return u.length>=s.length?s.apply(this,u):function(){for(var m=arguments.length,h=new Array(m),b=0;b<m;b++)h[b]=arguments[b];return n.apply(a,[].concat(u,h))}}}function Ou(s){return{}.toString.call(s).includes("Object")}function Pu(s){return s||Vi("configIsRequired"),Ou(s)||Vi("configType"),s.urls?(Eu(),{paths:{vs:s.urls.monacoBase}}):s}function Eu(){console.warn(Gi.deprecation)}function Ru(s,n){throw new Error(s[n]||s.default)}var Gi={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
- `},Vi=Nu(Ru)(Gi),Lu={config:Pu},Mu=function(){for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return function(u){return a.reduceRight(function(c,m){return m(c)},u)}};function Yi(s,n){return Object.keys(n).forEach(function(a){n[a]instanceof Object&&s[a]&&Object.assign(n[a],Yi(s[a],n[a]))}),Wi(Wi({},s),n)}var Fu={type:"cancelation",msg:"operation is manually canceled"};function Js(s){var n=!1,a=new Promise(function(o,u){s.then(function(c){return n?u(Fu):o(c)}),s.catch(u)});return a.cancel=function(){return n=!0},a}var ju=Su.create({config:zu,isInitialized:!1,resolve:null,reject:null,monaco:null}),Ki=du(ju,2),oa=Ki[0],Wa=Ki[1];function Bu(s){var n=Lu.config(s),a=n.monaco,o=uu(n,["monaco"]);Wa(function(u){return{config:Yi(u.config,o),monaco:a}})}function Uu(){var s=oa(function(n){var a=n.monaco,o=n.isInitialized,u=n.resolve;return{monaco:a,isInitialized:o,resolve:u}});if(!s.isInitialized){if(Wa({isInitialized:!0}),s.monaco)return s.resolve(s.monaco),Js(en);if(window.monaco&&window.monaco.editor)return Qi(window.monaco),s.resolve(window.monaco),Js(en);Mu(Wu,$u)(Xu)}return Js(en)}function Wu(s){return document.body.appendChild(s)}function Hu(s){var n=document.createElement("script");return s&&(n.src=s),n}function $u(s){var n=oa(function(o){var u=o.config,c=o.reject;return{config:u,reject:c}}),a=Hu("".concat(n.config.paths.vs,"/loader.js"));return a.onload=function(){return s()},a.onerror=n.reject,a}function Xu(){var s=oa(function(a){var o=a.config,u=a.resolve,c=a.reject;return{config:o,resolve:u,reject:c}}),n=window.require;n.config(s.config),n(["vs/editor/editor.main"],function(a){Qi(a),s.resolve(a)},function(a){s.reject(a)})}function Qi(s){oa().monaco||Wa({monaco:s})}function Gu(){return oa(function(s){var n=s.monaco;return n})}var en=new Promise(function(s,n){return Wa({resolve:s,reject:n})}),tn={config:Bu,init:Uu,__getMonacoInstance:Gu},Vu={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},rn=Vu,Yu={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},Ku=Yu;function Qu({children:s}){return j.createElement("div",{style:Ku.container},s)}var Zu=Qu,Ju=Zu;function ed({width:s,height:n,isEditorReady:a,loading:o,_ref:u,className:c,wrapperProps:m}){return j.createElement("section",{style:{...rn.wrapper,width:s,height:n},...m},!a&&j.createElement(Ju,null,o),j.createElement("div",{ref:u,style:{...rn.fullWidth,...!a&&rn.hide},className:c}))}var td=ed,Zi=j.memo(td);function rd(s){j.useEffect(s,[])}var Ji=rd;function ad(s,n,a=!0){let o=j.useRef(!0);j.useEffect(o.current||!a?()=>{o.current=!1}:s,n)}var ot=ad;function la(){}function zr(s,n,a,o){return sd(s,o)||nd(s,n,a,o)}function sd(s,n){return s.editor.getModel(eo(s,n))}function nd(s,n,a,o){return s.editor.createModel(n,a,o?eo(s,o):void 0)}function eo(s,n){return s.Uri.parse(n)}function id({original:s,modified:n,language:a,originalLanguage:o,modifiedLanguage:u,originalModelPath:c,modifiedModelPath:m,keepCurrentOriginalModel:h=!1,keepCurrentModifiedModel:b=!1,theme:g="light",loading:w="Loading...",options:T={},height:L="100%",width:M="100%",className:B,wrapperProps:P={},beforeMount:Y=la,onMount:F=la}){let[U,R]=j.useState(!1),[k,E]=j.useState(!0),G=j.useRef(null),V=j.useRef(null),he=j.useRef(null),_e=j.useRef(F),ce=j.useRef(Y),bt=j.useRef(!1);Ji(()=>{let K=tn.init();return K.then(fe=>(V.current=fe)&&E(!1)).catch(fe=>(fe==null?void 0:fe.type)!=="cancelation"&&console.error("Monaco initialization: error:",fe)),()=>G.current?Fe():K.cancel()}),ot(()=>{if(G.current&&V.current){let K=G.current.getOriginalEditor(),fe=zr(V.current,s||"",o||a||"text",c||"");fe!==K.getModel()&&K.setModel(fe)}},[c],U),ot(()=>{if(G.current&&V.current){let K=G.current.getModifiedEditor(),fe=zr(V.current,n||"",u||a||"text",m||"");fe!==K.getModel()&&K.setModel(fe)}},[m],U),ot(()=>{let K=G.current.getModifiedEditor();K.getOption(V.current.editor.EditorOption.readOnly)?K.setValue(n||""):n!==K.getValue()&&(K.executeEdits("",[{range:K.getModel().getFullModelRange(),text:n||"",forceMoveMarkers:!0}]),K.pushUndoStop())},[n],U),ot(()=>{var K,fe;(fe=(K=G.current)==null?void 0:K.getModel())==null||fe.original.setValue(s||"")},[s],U),ot(()=>{let{original:K,modified:fe}=G.current.getModel();V.current.editor.setModelLanguage(K,o||a||"text"),V.current.editor.setModelLanguage(fe,u||a||"text")},[a,o,u],U),ot(()=>{var K;(K=V.current)==null||K.editor.setTheme(g)},[g],U),ot(()=>{var K;(K=G.current)==null||K.updateOptions(T)},[T],U);let St=j.useCallback(()=>{var Oe;if(!V.current)return;ce.current(V.current);let K=zr(V.current,s||"",o||a||"text",c||""),fe=zr(V.current,n||"",u||a||"text",m||"");(Oe=G.current)==null||Oe.setModel({original:K,modified:fe})},[a,n,u,s,o,c,m]),Me=j.useCallback(()=>{var K;!bt.current&&he.current&&(G.current=V.current.editor.createDiffEditor(he.current,{automaticLayout:!0,...T}),St(),(K=V.current)==null||K.editor.setTheme(g),R(!0),bt.current=!0)},[T,g,St]);j.useEffect(()=>{U&&_e.current(G.current,V.current)},[U]),j.useEffect(()=>{!k&&!U&&Me()},[k,U,Me]);function Fe(){var fe,Oe,Le,lt;let K=(fe=G.current)==null?void 0:fe.getModel();h||((Oe=K==null?void 0:K.original)==null||Oe.dispose()),b||((Le=K==null?void 0:K.modified)==null||Le.dispose()),(lt=G.current)==null||lt.dispose()}return j.createElement(Zi,{width:M,height:L,isEditorReady:U,loading:w,_ref:he,className:B,wrapperProps:P})}var od=id,ld=j.memo(od);function cd(s){let n=j.useRef();return j.useEffect(()=>{n.current=s},[s]),n.current}var ud=cd,Ha=new Map;function dd({defaultValue:s,defaultLanguage:n,defaultPath:a,value:o,language:u,path:c,theme:m="light",line:h,loading:b="Loading...",options:g={},overrideServices:w={},saveViewState:T=!0,keepCurrentModel:L=!1,width:M="100%",height:B="100%",className:P,wrapperProps:Y={},beforeMount:F=la,onMount:U=la,onChange:R,onValidate:k=la}){let[E,G]=j.useState(!1),[V,he]=j.useState(!0),_e=j.useRef(null),ce=j.useRef(null),bt=j.useRef(null),St=j.useRef(U),Me=j.useRef(F),Fe=j.useRef(),K=j.useRef(o),fe=ud(c),Oe=j.useRef(!1),Le=j.useRef(!1);Ji(()=>{let te=tn.init();return te.then(Te=>(_e.current=Te)&&he(!1)).catch(Te=>(Te==null?void 0:Te.type)!=="cancelation"&&console.error("Monaco initialization: error:",Te)),()=>ce.current?je():te.cancel()}),ot(()=>{var Te,We,Ht,Qe;let te=zr(_e.current,s||o||"",n||u||"",c||a||"");te!==((Te=ce.current)==null?void 0:Te.getModel())&&(T&&Ha.set(fe,(We=ce.current)==null?void 0:We.saveViewState()),(Ht=ce.current)==null||Ht.setModel(te),T&&((Qe=ce.current)==null||Qe.restoreViewState(Ha.get(c))))},[c],E),ot(()=>{var te;(te=ce.current)==null||te.updateOptions(g)},[g],E),ot(()=>{!ce.current||o===void 0||(ce.current.getOption(_e.current.editor.EditorOption.readOnly)?ce.current.setValue(o):o!==ce.current.getValue()&&(Le.current=!0,ce.current.executeEdits("",[{range:ce.current.getModel().getFullModelRange(),text:o,forceMoveMarkers:!0}]),ce.current.pushUndoStop(),Le.current=!1))},[o],E),ot(()=>{var Te,We;let te=(Te=ce.current)==null?void 0:Te.getModel();te&&u&&((We=_e.current)==null||We.editor.setModelLanguage(te,u))},[u],E),ot(()=>{var te;h!==void 0&&((te=ce.current)==null||te.revealLine(h))},[h],E),ot(()=>{var te;(te=_e.current)==null||te.editor.setTheme(m)},[m],E);let lt=j.useCallback(()=>{var te;if(!(!bt.current||!_e.current)&&!Oe.current){Me.current(_e.current);let Te=c||a,We=zr(_e.current,o||s||"",n||u||"",Te||"");ce.current=(te=_e.current)==null?void 0:te.editor.create(bt.current,{model:We,automaticLayout:!0,...g},w),T&&ce.current.restoreViewState(Ha.get(Te)),_e.current.editor.setTheme(m),h!==void 0&&ce.current.revealLine(h),G(!0),Oe.current=!0}},[s,n,a,o,u,c,g,w,T,m,h]);j.useEffect(()=>{E&&St.current(ce.current,_e.current)},[E]),j.useEffect(()=>{!V&&!E&&lt()},[V,E,lt]),K.current=o,j.useEffect(()=>{var te,Te;E&&R&&((te=Fe.current)==null||te.dispose(),Fe.current=(Te=ce.current)==null?void 0:Te.onDidChangeModelContent(We=>{Le.current||R(ce.current.getValue(),We)}))},[E,R]),j.useEffect(()=>{if(E){let te=_e.current.editor.onDidChangeMarkers(Te=>{var Ht;let We=(Ht=ce.current.getModel())==null?void 0:Ht.uri;if(We&&Te.find(Qe=>Qe.path===We.path)){let Qe=_e.current.editor.getModelMarkers({resource:We});k==null||k(Qe)}});return()=>{te==null||te.dispose()}}return()=>{}},[E,k]);function je(){var te,Te;(te=Fe.current)==null||te.dispose(),L?T&&Ha.set(c,ce.current.saveViewState()):(Te=ce.current.getModel())==null||Te.dispose(),ce.current.dispose()}return j.createElement(Zi,{width:M,height:B,isEditorReady:E,loading:b,_ref:bt,className:P,wrapperProps:Y})}var pd=dd,md=j.memo(pd);const to={keywords:[{name:"or",desc:["Logical OR. Applicable to boolean expressions."],syntax:["expr1 or expr2"],returns:["Boolean value, or series of boolean values."]},{name:"and",desc:["Logical AND. Applicable to boolean expressions."],syntax:["expr1 and expr2"],returns:["Boolean value, or series of boolean values."]},{name:"not",desc:["Logical negation (NOT). Applicable to boolean expressions."],syntax:["not expr1"],returns:["Boolean value, or series of boolean values."]},{name:"if",desc:["If statement defines what block of statements must be executed when conditions of the expression are satisfied.","To have access to and use the if statement, one should specify the version >= 2 of Pine Script® language in the very first line of code, for example: //@version=5","The 4th version of Pine Script® Language allows you to use “else if” syntax.","General code form:"],syntax:[`var_declarationX = if condition
39
+ `},Vi=Nu(Ru)(Gi),Lu={config:Pu},Mu=function(){for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return function(u){return a.reduceRight(function(c,m){return m(c)},u)}};function Yi(s,n){return Object.keys(n).forEach(function(a){n[a]instanceof Object&&s[a]&&Object.assign(n[a],Yi(s[a],n[a]))}),Wi(Wi({},s),n)}var Fu={type:"cancelation",msg:"operation is manually canceled"};function Js(s){var n=!1,a=new Promise(function(o,u){s.then(function(c){return n?u(Fu):o(c)}),s.catch(u)});return a.cancel=function(){return n=!0},a}var ju=Su.create({config:zu,isInitialized:!1,resolve:null,reject:null,monaco:null}),Ki=du(ju,2),oa=Ki[0],Wa=Ki[1];function Bu(s){var n=Lu.config(s),a=n.monaco,o=uu(n,["monaco"]);Wa(function(u){return{config:Yi(u.config,o),monaco:a}})}function Uu(){var s=oa(function(n){var a=n.monaco,o=n.isInitialized,u=n.resolve;return{monaco:a,isInitialized:o,resolve:u}});if(!s.isInitialized){if(Wa({isInitialized:!0}),s.monaco)return s.resolve(s.monaco),Js(en);if(window.monaco&&window.monaco.editor)return Qi(window.monaco),s.resolve(window.monaco),Js(en);Mu(Wu,$u)(Xu)}return Js(en)}function Wu(s){return document.body.appendChild(s)}function Hu(s){var n=document.createElement("script");return s&&(n.src=s),n}function $u(s){var n=oa(function(o){var u=o.config,c=o.reject;return{config:u,reject:c}}),a=Hu("".concat(n.config.paths.vs,"/loader.js"));return a.onload=function(){return s()},a.onerror=n.reject,a}function Xu(){var s=oa(function(a){var o=a.config,u=a.resolve,c=a.reject;return{config:o,resolve:u,reject:c}}),n=window.require;n.config(s.config),n(["vs/editor/editor.main"],function(a){Qi(a),s.resolve(a)},function(a){s.reject(a)})}function Qi(s){oa().monaco||Wa({monaco:s})}function Gu(){return oa(function(s){var n=s.monaco;return n})}var en=new Promise(function(s,n){return Wa({resolve:s,reject:n})}),tn={config:Bu,init:Uu,__getMonacoInstance:Gu},Vu={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},rn=Vu,Yu={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},Ku=Yu;function Qu({children:s}){return M.createElement("div",{style:Ku.container},s)}var Zu=Qu,Ju=Zu;function ed({width:s,height:n,isEditorReady:a,loading:o,_ref:u,className:c,wrapperProps:m}){return M.createElement("section",{style:{...rn.wrapper,width:s,height:n},...m},!a&&M.createElement(Ju,null,o),M.createElement("div",{ref:u,style:{...rn.fullWidth,...!a&&rn.hide},className:c}))}var td=ed,Zi=M.memo(td);function rd(s){M.useEffect(s,[])}var Ji=rd;function ad(s,n,a=!0){let o=M.useRef(!0);M.useEffect(o.current||!a?()=>{o.current=!1}:s,n)}var ot=ad;function la(){}function zr(s,n,a,o){return sd(s,o)||nd(s,n,a,o)}function sd(s,n){return s.editor.getModel(eo(s,n))}function nd(s,n,a,o){return s.editor.createModel(n,a,o?eo(s,o):void 0)}function eo(s,n){return s.Uri.parse(n)}function id({original:s,modified:n,language:a,originalLanguage:o,modifiedLanguage:u,originalModelPath:c,modifiedModelPath:m,keepCurrentOriginalModel:h=!1,keepCurrentModifiedModel:b=!1,theme:g="light",loading:w="Loading...",options:I={},height:R="100%",width:L="100%",className:j,wrapperProps:E={},beforeMount:V=la,onMount:Q=la}){let[G,F]=M.useState(!1),[T,z]=M.useState(!0),H=M.useRef(null),$=M.useRef(null),ce=M.useRef(null),ye=M.useRef(Q),ue=M.useRef(V),bt=M.useRef(!1);Ji(()=>{let Y=tn.init();return Y.then(he=>($.current=he)&&z(!1)).catch(he=>(he==null?void 0:he.type)!=="cancelation"&&console.error("Monaco initialization: error:",he)),()=>H.current?Fe():Y.cancel()}),ot(()=>{if(H.current&&$.current){let Y=H.current.getOriginalEditor(),he=zr($.current,s||"",o||a||"text",c||"");he!==Y.getModel()&&Y.setModel(he)}},[c],G),ot(()=>{if(H.current&&$.current){let Y=H.current.getModifiedEditor(),he=zr($.current,n||"",u||a||"text",m||"");he!==Y.getModel()&&Y.setModel(he)}},[m],G),ot(()=>{let Y=H.current.getModifiedEditor();Y.getOption($.current.editor.EditorOption.readOnly)?Y.setValue(n||""):n!==Y.getValue()&&(Y.executeEdits("",[{range:Y.getModel().getFullModelRange(),text:n||"",forceMoveMarkers:!0}]),Y.pushUndoStop())},[n],G),ot(()=>{var Y,he;(he=(Y=H.current)==null?void 0:Y.getModel())==null||he.original.setValue(s||"")},[s],G),ot(()=>{let{original:Y,modified:he}=H.current.getModel();$.current.editor.setModelLanguage(Y,o||a||"text"),$.current.editor.setModelLanguage(he,u||a||"text")},[a,o,u],G),ot(()=>{var Y;(Y=$.current)==null||Y.editor.setTheme(g)},[g],G),ot(()=>{var Y;(Y=H.current)==null||Y.updateOptions(I)},[I],G);let St=M.useCallback(()=>{var Oe;if(!$.current)return;ue.current($.current);let Y=zr($.current,s||"",o||a||"text",c||""),he=zr($.current,n||"",u||a||"text",m||"");(Oe=H.current)==null||Oe.setModel({original:Y,modified:he})},[a,n,u,s,o,c,m]),Me=M.useCallback(()=>{var Y;!bt.current&&ce.current&&(H.current=$.current.editor.createDiffEditor(ce.current,{automaticLayout:!0,...I}),St(),(Y=$.current)==null||Y.editor.setTheme(g),F(!0),bt.current=!0)},[I,g,St]);M.useEffect(()=>{G&&ye.current(H.current,$.current)},[G]),M.useEffect(()=>{!T&&!G&&Me()},[T,G,Me]);function Fe(){var he,Oe,Le,lt;let Y=(he=H.current)==null?void 0:he.getModel();h||((Oe=Y==null?void 0:Y.original)==null||Oe.dispose()),b||((Le=Y==null?void 0:Y.modified)==null||Le.dispose()),(lt=H.current)==null||lt.dispose()}return M.createElement(Zi,{width:L,height:R,isEditorReady:G,loading:w,_ref:ce,className:j,wrapperProps:E})}var od=id,ld=M.memo(od);function cd(s){let n=M.useRef();return M.useEffect(()=>{n.current=s},[s]),n.current}var ud=cd,Ha=new Map;function dd({defaultValue:s,defaultLanguage:n,defaultPath:a,value:o,language:u,path:c,theme:m="light",line:h,loading:b="Loading...",options:g={},overrideServices:w={},saveViewState:I=!0,keepCurrentModel:R=!1,width:L="100%",height:j="100%",className:E,wrapperProps:V={},beforeMount:Q=la,onMount:G=la,onChange:F,onValidate:T=la}){let[z,H]=M.useState(!1),[$,ce]=M.useState(!0),ye=M.useRef(null),ue=M.useRef(null),bt=M.useRef(null),St=M.useRef(G),Me=M.useRef(Q),Fe=M.useRef(),Y=M.useRef(o),he=ud(c),Oe=M.useRef(!1),Le=M.useRef(!1);Ji(()=>{let te=tn.init();return te.then(Te=>(ye.current=Te)&&ce(!1)).catch(Te=>(Te==null?void 0:Te.type)!=="cancelation"&&console.error("Monaco initialization: error:",Te)),()=>ue.current?je():te.cancel()}),ot(()=>{var Te,We,Ht,Qe;let te=zr(ye.current,s||o||"",n||u||"",c||a||"");te!==((Te=ue.current)==null?void 0:Te.getModel())&&(I&&Ha.set(he,(We=ue.current)==null?void 0:We.saveViewState()),(Ht=ue.current)==null||Ht.setModel(te),I&&((Qe=ue.current)==null||Qe.restoreViewState(Ha.get(c))))},[c],z),ot(()=>{var te;(te=ue.current)==null||te.updateOptions(g)},[g],z),ot(()=>{!ue.current||o===void 0||(ue.current.getOption(ye.current.editor.EditorOption.readOnly)?ue.current.setValue(o):o!==ue.current.getValue()&&(Le.current=!0,ue.current.executeEdits("",[{range:ue.current.getModel().getFullModelRange(),text:o,forceMoveMarkers:!0}]),ue.current.pushUndoStop(),Le.current=!1))},[o],z),ot(()=>{var Te,We;let te=(Te=ue.current)==null?void 0:Te.getModel();te&&u&&((We=ye.current)==null||We.editor.setModelLanguage(te,u))},[u],z),ot(()=>{var te;h!==void 0&&((te=ue.current)==null||te.revealLine(h))},[h],z),ot(()=>{var te;(te=ye.current)==null||te.editor.setTheme(m)},[m],z);let lt=M.useCallback(()=>{var te;if(!(!bt.current||!ye.current)&&!Oe.current){Me.current(ye.current);let Te=c||a,We=zr(ye.current,o||s||"",n||u||"",Te||"");ue.current=(te=ye.current)==null?void 0:te.editor.create(bt.current,{model:We,automaticLayout:!0,...g},w),I&&ue.current.restoreViewState(Ha.get(Te)),ye.current.editor.setTheme(m),h!==void 0&&ue.current.revealLine(h),H(!0),Oe.current=!0}},[s,n,a,o,u,c,g,w,I,m,h]);M.useEffect(()=>{z&&St.current(ue.current,ye.current)},[z]),M.useEffect(()=>{!$&&!z&&lt()},[$,z,lt]),Y.current=o,M.useEffect(()=>{var te,Te;z&&F&&((te=Fe.current)==null||te.dispose(),Fe.current=(Te=ue.current)==null?void 0:Te.onDidChangeModelContent(We=>{Le.current||F(ue.current.getValue(),We)}))},[z,F]),M.useEffect(()=>{if(z){let te=ye.current.editor.onDidChangeMarkers(Te=>{var Ht;let We=(Ht=ue.current.getModel())==null?void 0:Ht.uri;if(We&&Te.find(Qe=>Qe.path===We.path)){let Qe=ye.current.editor.getModelMarkers({resource:We});T==null||T(Qe)}});return()=>{te==null||te.dispose()}}return()=>{}},[z,T]);function je(){var te,Te;(te=Fe.current)==null||te.dispose(),R?I&&Ha.set(c,ue.current.saveViewState()):(Te=ue.current.getModel())==null||Te.dispose(),ue.current.dispose()}return M.createElement(Zi,{width:L,height:j,isEditorReady:z,loading:b,_ref:bt,className:E,wrapperProps:V})}var pd=dd,md=M.memo(pd);const to={keywords:[{name:"or",desc:["Logical OR. Applicable to boolean expressions."],syntax:["expr1 or expr2"],returns:["Boolean value, or series of boolean values."]},{name:"and",desc:["Logical AND. Applicable to boolean expressions."],syntax:["expr1 and expr2"],returns:["Boolean value, or series of boolean values."]},{name:"not",desc:["Logical negation (NOT). Applicable to boolean expressions."],syntax:["not expr1"],returns:["Boolean value, or series of boolean values."]},{name:"if",desc:["If statement defines what block of statements must be executed when conditions of the expression are satisfied.","To have access to and use the if statement, one should specify the version >= 2 of Pine Script® language in the very first line of code, for example: //@version=5","The 4th version of Pine Script® Language allows you to use “else if” syntax.","General code form:"],syntax:[`var_declarationX = if condition
40
40
  var_decl_then0
41
41
  var_decl_then1
42
42
 
@@ -102,44 +102,44 @@ else
102
102
 
103
103
  `}bold(n){return`**${n}**`}italic(n){return`*${n.replace(">","&gt;").replace("<","&lt;")}*`}pineCode(n){return`\`\`\`
104
104
  ${n}
105
- \`\`\``}code(n){return`\`${n}\``}paragraph(...n){return[this.paragraphBreak,...n,this.paragraphBreak].join(this.lineBreak)}link(n,a){return`[${n}](${a.href})`}}const xe=new bd;function xd(s,n=0,a=!0){const o=s[n];if(!o)return"";const u=/(Mac|iPhone|iPod|iPad)/i.test(window.navigator.userAgent),{name:c,title:m,desc:h,type:b,syntax:g,returns:w,remarks:T,fields:L}=o,M=[`${xe.bold(c)} (${m})`];if(s.length>1&&M.push(xe.italic(`+${s.length-1} overloads`)),M.push(xe.delimiter),h&&M.push(xe.paragraph(Array.isArray(h)?h.join(xe.lineBreak):h||"")),b&&M.push(xe.paragraph(xe.bold(_t.Type),xe.italic(b))),g&&g.length&&M.push(xe.paragraph(xe.bold(_t.Syntax),xe.pineCode(g.join(xe.lineBreak)))),w&&M.push(xe.paragraph(xe.bold(_t.Returns),xe.lineBreak,w.join(xe.lineBreak))),T&&T.length&&s.length<=1){let B="";typeof T=="string"?B=T:B=T.join(xe.lineBreak)||"",B.length<200&&M.push(xe.paragraph(xe.bold(_t.Remarks),xe.lineBreak,B))}if(L){const B=[];for(const P of L){const Y=P.desc?` - ${P.desc}`:"";B.push(`${P.name} (${P.type}) ${Y}`)}M.push(xe.paragraph(xe.bold(_t.Fields),xe.lineBreak,B.join(xe.paragraphBreak)))}return a&&M.push(xe.italic(`${xe.code(u?"⌘":"Ctrl")} + ${yd.clickOnKeywordForMoreHelp}`)),M.join(M.length===2?" ":xe.lineBreak)}const an="tcc_cursor_position",wd=["submenuitem.EditorContextPeek","editor.action.peekDefinition"];function vd(s){return s.replace(/<[^<>]+>/,"").replace(/(series|simple|const|input)\s+([\w\d.]+)/,"$2").replace(/\w[\w.\d]*\[\]/,"array")}function Td(s){const n=s.getContribution("editor.contrib.contextmenu"),a=n==null?void 0:n._getMenuActions;n._getMenuActions=function(){return a.apply(n,arguments).filter(function(u){return!wd.includes(u.id)})}}class Id{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=xe,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}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,a,o,u){this._initUserDefind();const c=this._mergeTreeSlices(this._generateTreeSlice(gt.methods,"method"),this._generateTreeSlice(u,"method"));this._getMethodNamespaceCache(c),this._userMethods=u,this._userTypes=a,this._userFunctions=n;const m=this._generateTreeSlice(n,"fun");this._userSuggestions=this._getAllUserCompletionItems(m,this._generateTreeSlice(a,"type"),this._generateTreeSlice(o,"var")),this._getUserFuncArgumentsCompletionItemsToCache(m)}_getAllUserCompletionItems(n,a,o){const u=this._getUserVariableCompletionItems(o),c=this._getTypeCompletionItems(a,!0),m=this._getFunctionCompletionItems(n,void 0,!0);return[...c,...m,...u,...this._userOutermostNsItems.values()]}_getAllCompletionItems(){const{variables:n,keywords:a,types:o,functions:u}=this._builtinSubtreeCache,c=this._getVariableCompletionItems(n),m=this._getKeywordCompletionItems(a),h=this._getTypeCompletionItems(o),b=this._getFunctionCompletionItems(u),g=this._getSnippetsCompletionsList();return[...c,...m,...h,...b,...this._outermostNsItems.values(),...g]}_getNodeKey(n,a){return`${a}_${n}`}_mergeTreeSlices(...n){const a=new Map;for(const o of n)for(const[u,c]of o){const m=a.get(u);m?a.set(u,{...m,children:this._mergeTreeSlices(c.children,m.children)}):a.set(u,c)}return a}_mergeCompletions(n,a){const o=this._namespaceCache.get(n);o?this._namespaceCache.set(n,[...o,...a]):this._namespaceCache.set(n,a)}_mergeUserCompletions(n,a){const o=this._userNamespaceCache.get(n);o?this._userNamespaceCache.set(n,[...o,...a]):this._userNamespaceCache.set(n,a)}_generateTreeSlice(n,a){const o=new Map;for(const[u,c]of n){const[m,...h]=u.split("."),b=h.length>0,g=o.get(this._getNodeKey(m,b?"ns":a));let w=new Map,T=c.map(M=>({...M,name:u})),L=this._getNodeKey(u,a);if(b&&a!=="type"){const M=new Map([[h.join("."),c]]);T=[{name:m,title:ve.namespace}],L=this._getNodeKey(m,"ns"),w=this._generateTreeSlice(M,a)}g&&(T=[{name:m,title:ve.namespace}],w=this._mergeTreeSlices(g.children,w)),o.set(L,{value:T,children:w})}return o}_getBuiltinsCacheFragment(){const{keywords:n,variables:a,constants:o,types:u,functions:c}=gt;return this._builtinSubtreeCache={keywords:this._generateTreeSlice(n,"key"),variables:this._mergeTreeSlices(this._generateTreeSlice(a,"var"),this._generateTreeSlice(o,"var")),types:this._generateTreeSlice(u,"type"),functions:this._generateTreeSlice(c,"fun")},this._builtinSubtreeCache}_getVariableCompletionItems(n,a){const o=[],u=[];for(const[c,m]of n){const{value:h,children:b}=m;if(c.startsWith("ns")){const g=this._getNamespaceCompletionItem(h[0]);if(a){u.push({...g});const T=`${a}.${g.label}`;g.label=T,g.insertText=T}const w=this._getVariableCompletionItems(b,g.label);a||this._outermostNsItems.set(c,g),o.push(...w)}else{const g=this._getVariableCompletionItem(h[0],a?3:2);if(a){u.push({...g});const{label:w}=g;g.label=`${a}.${w}`,g.insertText=`${a}.${g.insertText}`,g.filterText=`${w}\r`}o.push(g)}}return u.length&&a&&this._mergeCompletions(a,u),o}_setUserVariableSubItems(n,a){var g,w,T,L;let o=[];const u=vd(n.type||""),c=this._methodNamespaceCache.get(u),m=a?`${a}.${n.name}`:n.name;c&&(o=c.filter(M=>{var F;const B=`${u}.${M.label}`,P=gt.methods.get(B)||this._userMethods.get(B),Y=P==null?void 0:P.some(U=>!U.thisType||U.thisType[0].includes("<>")||U.thisType.includes(n.type||""));if(Y&&P){const U=this._getNamedArgumentsCompletionList(((F=P[0])==null?void 0:F.args)||[]),R=`${m}.${M.label}`;this._userFuncArgsCache.set(R,U),this._methodFuncs.set(R,P)}return Y}));const{types:h}=gt,b=((w=(g=this._userTypes.get(u))==null?void 0:g[0])==null?void 0:w.fields)||((L=(T=h.get(u))==null?void 0:T[0])==null?void 0:L.fields);if(b)for(const M of b){const B=M.name,P=M.type,Y=this._getInstanceTypeCompletionItemProp({name:B,type:P});this._setUserVariableSubItems({name:B,type:P},n.name),o.push({...Y})}o.length&&this._mergeUserCompletions(m,o)}_getUserVariableCompletionItems(n,a){const o=[],u=[];for(const[c,m]of n){const{value:h,children:b}=m;if(this._setUserVariableSubItems(h[0]),c.startsWith("ns")){const g=this._getNamespaceCompletionItem(h[0]);if(a){u.push({...g});const T=`${a}.${g.label}`;g.label=T,g.insertText=T}const w=this._getUserVariableCompletionItems(b,g.label);a||this._userOutermostNsItems.set(c,g),o.push(...w)}else{const g=this._getVariableCompletionItem(h[0],a?2:1,!1);if(a){u.push({...g});const{label:w}=g;g.label=`${a}.${w}`,g.insertText=`${a}.${g.insertText}`,g.filterText=`${w}\r`}o.push(g)}}return u.length&&a&&this._mergeUserCompletions(a,u),o}_getTypeCompletionItems(n,a=!1){const o=[];for(const[,u]of n){const{value:c}=u,m=a?this._getCustomTypeCompletionItem(c[0]):this._getTypeCompletionItem(c[0]);o.push(m)}return o}_getKeywordCompletionItems(n){const a=[];for(const[,o]of n){const{value:u}=o,c=this._getKeywordCompletionItem(u[0]);a.push(c)}return a}_getMethodNamespaceCache(n,a){const o=[];for(const[u,c]of n){const{value:m,children:h}=c;if(u.startsWith("ns")){const b=this._getNamespaceCompletionItem(m[0]);if(a){o.push({...b});const g=`${a}.${b.label}`;b.label=g,b.insertText=g}this._getMethodNamespaceCache(h,b.label)}else{const b=this._getFunctionCompletionItem(m[0],a?3:2);if(m.length>1&&(b.detail=`${b.detail} (+${m.length-1} overloads)`),a){o.push({...b});const{label:g}=b;b.label=`${a}.${g}`,b.insertText=`${a}.${b.insertText}`,b.filterText=`${g}\r`}}}a&&this._methodNamespaceCache.set(a,o)}_getFunctionCompletionItems(n,a,o=!1){const u=[],c=[];for(const[m,h]of n){const{value:b,children:g}=h;if(m.startsWith("ns")){const w=this._getNamespaceCompletionItem(b[0]);if(a){c.push({...w});const L=`${a}.${w.label}`;w.label=L,w.insertText=L}const T=this._getFunctionCompletionItems(g,w.label,o);a||(o?this._userOutermostNsItems.set(m,w):this._outermostNsItems.set(m,w)),u.push(...T)}else{const w=this._getFunctionCompletionItem(b[0],a?3:2,o);if(b.length>1&&(w.detail=`${w.detail} (+${b.length-1} overloads)`),a){c.push({...w});const{label:T}=w;w.label=`${a}.${T}`,w.insertText=`${a}.${w.insertText}`,w.filterText=`${T}\r`}u.push(w)}}return c.length&&a&&(o?this._mergeUserCompletions(a,c):this._mergeCompletions(a,c)),u}_getSnippetsCompletionsList(){return fd.map(n=>{const{label:a,kind:o,insertText:u}=n,c=a.charAt(0).toUpperCase()+a.substring(1),m={value:this._formatter.pineCode(u.replace(/\${\d:([^}]+)}|\${\d}/g,"$1"))};return{label:a,detail:`(${c} ${o})`,insertText:u,insertTextRules:Se.languages.CompletionItemInsertTextRule.InsertAsSnippet,sortText:`2_${a}`,kind:Se.languages.CompletionItemKind.Snippet,documentation:m}})}_getFuncArgumentsCompletionItemsToCache(n,a){for(const[o,u]of n){const{name:c}=u.value[0];if(o.startsWith("ns"))this._getFuncArgumentsCompletionItemsToCache(u.children,a?`${a}.${c}`:c);else{const m=new Map;u.value.reduce((g,w)=>{const T=w.args;return T&&T.length&&T.forEach(L=>{g.set(L.name,L)}),g},m);const h=this._getNamedArgumentsCompletionList([...m.values()]),b=a?`${a}.${c}`:c;this._funcArgsCache.set(b,h)}}}_getUserFuncArgumentsCompletionItemsToCache(n,a){for(const[o,u]of n){const{name:c}=u.value[0];if(o.startsWith("ns"))this._getUserFuncArgumentsCompletionItemsToCache(u.children,a?`${a}.${c}`:c);else{const m=new Map;u.value.reduce((g,w)=>{const T=w.args;return T&&T.length&&T.forEach(L=>{g.set(L.name,L)}),g},m);const h=this._getNamedArgumentsCompletionList([...m.values()]),b=a?`${a}.${c}`:c;this._userFuncArgsCache.set(b,h)}}}_getNamedArgumentsCompletionList(n){return n.map(a=>{const{name:o,desc:u,displayType:c}=a,m=`${o} = `,h=Array.isArray(u)?u.join(this._formatter.delimiter):u||"";return{label:m,documentation:{value:this._formatter.paragraph(this._formatter.bold(ve.Description),this._formatter.lineBreak,h)},insertText:m,detail:`(${ve.parameter}) ${ve.types} ${c}`,kind:Se.languages.CompletionItemKind.Text,sortText:`0_${m}`}})}_getVariableCompletionItem(n,a=2,o=!0){const u=this._extractExamples(n),c=this._extractDescription(n),m=[this._createDescriptionSection(c)];u.length?m.push(this._createExampleSection(u)):n.syntax&&n.syntax.length&&m.push(this._createSyntaxSection(n.syntax));const h={value:m.join(this._formatter.lineBreak)},b=o?ve.variables:ve.userDefinedVariable;return{documentation:h,label:n.name,insertText:n.name,kind:Se.languages.CompletionItemKind.Variable,sortText:`${a}_${n.name}`,detail:`(${b}) ${n.type}`}}_getKeywordCompletionItem(n,a=2){const o=this._extractExamples(n),u=this._extractDescription(n),c=[this._createDescriptionSection(u)];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:Se.languages.CompletionItemKind.Keyword,sortText:`${a}_${n.name}`,detail:`(${ve.keywords})`}}_getTypeCompletionItem(n){const a=this._extractDescription(n);return{documentation:{value:this._createDescriptionSection(a)},label:n.name,insertText:n.name,kind:Se.languages.CompletionItemKind.Keyword,sortText:`1_${n.name}`,detail:`(${ve.types})`}}_getCustomTypeCompletionItem(n){const a=this._extractDescription(n);return{documentation:{value:this._createDescriptionSection(a)},label:n.name,insertText:n.name,kind:Se.languages.CompletionItemKind.Keyword,sortText:`2_${n.name}`,detail:`(${ve.userDefinedType})`}}_getInstanceTypeCompletionItemProp(n){const a=this._extractDescription(n),o=[];return a&&o.push(this._formatter.paragraph(this._formatter.bold(_t.Description),this._formatter.lineBreak,a)),{documentation:{value:o.join(this._formatter.lineBreak)},label:n.name,insertText:n.name,kind:Se.languages.CompletionItemKind.Field,sortText:`2_${n.name}`,detail:`(${ve.field}) ${n.type}`}}_getFunctionCompletionItem(n,a=2,o=!0){var M;const u=n.returnedTypes&&n.returnedTypes[0]||n.syntax&&n.syntax[0]&&((M=n.syntax[0].split("→").pop())==null?void 0:M.trim()),c=this._extractExamples(n),m=this._extractDescription(n),h=[this._createDescriptionSection(m)];c.length?h.push(this._createExampleSection(c)):n.syntax&&n.syntax.length&&h.push(this._createSyntaxSection(n.syntax)),n.returns&&n.returns.length&&h.push(this._createReturnSection(n.returns));const b={value:h.join(this._formatter.lineBreak)},g=n.name,w=o?ve.functions:ve.userDefinedFunction,T=n.template,L=T?`${gd(g)}<\${1}>`:g;return{documentation:b,label:T?`${g.replace(/<.+>/,"")}<type>`:g,kind:Se.languages.CompletionItemKind.Function,sortText:`${a}_${g}`,insertTextRules:Se.languages.CompletionItemInsertTextRule.InsertAsSnippet,insertText:L+this.bracketsPostfix,originInsertText:L,detail:`(${w}) ${ve.returns} ${u}`,command:{id:"tcc.editor.function",title:"",arguments:[T?"editor.action.triggerSuggest":"editor.action.triggerParameterHints"]}}}_getNamespaceCompletionItem(n,a=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:`${a}_${n.name}`,kind:Se.languages.CompletionItemKind.Module}}_extractExamples(n){let a;return n.examples||n.detailedDesc&&((a=n.detailedDesc[0])===null||a===void 0?void 0:a.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(_t.Example),this._formatter.pineCode(n.join(this._formatter.lineBreak)))}_createSyntaxSection(n){return this._formatter.paragraph(this._formatter.bold(_t.Syntax),this._formatter.pineCode(n.join(this._formatter.lineBreak)))}_createReturnSection(n){return this._formatter.paragraph(this._formatter.bold(_t.Returns),this._formatter.lineBreak,n.join(this._formatter.lineBreak))}_createDescriptionSection(n){return!n||n.trim().length===0?"":this._formatter.paragraph(this._formatter.bold(_t.Description),this._formatter.lineBreak,n)}}const Lt=new Id;class kd{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,"_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._overloadsFuncs=[]}setUserDefined(n,a){const{functions:o,variables:u,types:c,methods:m}=n;o&&(this._userFunctions=o),u&&(this._userVariables=u),c&&(this._userTypes=c),m&&(this._userMethods=m),this._overloadsFuncs=a}parseLineContentFuncVar(n,a,o,u){let c=(o==null?void 0:o.getLineContent(a))||"";const m=c.indexOf("//");if(this._removeString(c).indexOf("//")!==-1&&m<=n)return;c=c+" ";const h=this._getVariablesDocVal(c,n,a);if(h){if(h.isBuildIn){const w=o==null?void 0:o.getWordAtPosition(u||new Se.Position(a,n));if(((o==null?void 0:o.getValueInRange({startLineNumber:a,startColumn:(w==null?void 0:w.endColumn)||0,endLineNumber:a,endColumn:((w==null?void 0:w.endColumn)||0)+2}))||"").trim().startsWith("="))return null}return h}const b=this._getFuncsDocVal(c,n,a);if(b)return b;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 w=this._matchContent(g,c,n);if(w){const T=this._getBuildInOther(w.name);if(T)return{docValue:T,isBuildIn:!0,index:0};{const L=this._getBuildInFunc(`${w.name}<type>`);if(L)return{docValue:L,isBuildIn:!0,index:0}}}}return null}_getBuildInFunc(n){return gt.functions.get(n)}_getBuildInMethod(n){return gt.methods.get(n)}_getBuildInOther(n){const{keywords:a,variables:o,constants:u,types:c}=gt;return a.get(n)||o.get(n)||u.get(n)||c.get(n)}parseCurrentInputFunc(n,a=!1,o=!1){let u=n.length-1,c=0,m=a,h=o;for(;u>=0;){const b=n.charAt(u);if(u-=1,/['"]/.test(b)){const g=b;if(b==="'"){if(m){m=!1;continue}}else if(h){h=!1;continue}for(;u>=0;){const w=n.charAt(u);if(u-=1,w===g)break}}if(!(m||h)&&(/\)/.test(b)&&(c+=1),/\(/.test(b))){if(c>0){c-=1;continue}let g="";for(;u>=0;){const w=n.charAt(u);if(u-=1,!(/\s/.test(w)&&!g)){if(/[^\w.]/.test(w))break;g=w+g}}if(g)return{funcName:g,startIndex:u+1}}}}parseCurrentInputFuncAndArg(n,a=!1,o=!1){const{funcName:u,startIndex:c}=this.parseCurrentInputFunc(n,a,o)||{};if(u&&typeof c=="number"){let m=n.slice(c+u.length).trim().slice(1),h=-1;if(a&&(h=m.lastIndexOf("'")),o){const w=m.lastIndexOf('"');(w!==-1&&w<h||h===-1)&&(h=w)}h!==-1&&(m=m.substring(0,h));const g=m.replace(/[\w.]+\(.*\)/g,"").split(",").map(w=>{const T=w.trim().split("=");return T.length<=1?"":T[0].trim()});return{funcName:u,args:g}}}_removeString(n){return n.replace(/\\"|\\'/g,"").replace(/"[^"]*"|'[^']*'/g,"")}_getVariablesDocVal(n,a,o){const u=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(u){const c=this._matchContent(u,n,a);if(c){const m={docValue:void 0,isBuildIn:!0,index:0},h=this._getBuildInOther(c.name);if(h)return m.docValue=h,m;const b=this._getUserVariablesDocVal(c.name,a,o);if(b)return Object.assign(m,{docValue:[b],isBuildIn:!1});const g=this._getUserTypesDocVal(c.name);if(g)return Object.assign(m,{docValue:g,isBuildIn:!1});const w=this._getTypesAndFileds(n,c.name,a,o);if(w&&typeof w!="string")return Object.assign(m,{docValue:[w],isBuildIn:!1})}}}_getUserVariablesDocVal(n,a,o){const m=[...this._userVariables.get(n)||[]].sort((h,b)=>(b.scope||0)-(h.scope||0)).find(h=>{const b=h.range;return((b==null?void 0:b.startColumn)||0)<=a&&((b==null?void 0:b.startLineNumber)||0)<=o&&((b==null?void 0:b.endLineNumber)||0)>=o});if(m)return m.title=ve.userDefinedVariable,m.type=this._arrayTypeTransform(m.type),m}_getUserTypesDocVal(n){const a=this._userTypes.get(n);if(a)return a[0].title=ve.userDefinedType,a}_getTypesAndFileds(n,a,o,u){var c,m;if(a.includes(".")){const h=a.split(".");let b=h[0],g,w=null,T=n.indexOf(a,o-a.length)+1,L=T+b.length-1;for(const M of h.slice(1)){if(!w){const B=T<=o&&L>=o,P=this._getUserVariablesDocVal(b,o,u);if(B&&P)return P;w=P==null?void 0:P.type}if(w){g=w,T=L+2,L=L+M.length+1;const B=this._userTypes.get(w)||gt.types.get(w),P=(m=(c=B==null?void 0:B[0])==null?void 0:c.fields)==null?void 0:m.find(Y=>Y.name===M);if(P&&T<=o&&L>=o)return{name:`${w}.${M}`,desc:P.desc,type:this._arrayTypeTransform(P.type),title:ve.field};w=P==null?void 0:P.type}else b=`${b}.${M}`,L=L+M.length+1}return g}}_getFuncsDocVal(n,a,o){const u=n.match(/[a-zA-Z_][a-zA-Z_0-9]*(\s*\.\s*[a-zA-Z_][a-zA-Z_0-9]*)*(?=\s*\()/g);if(u){const c=this._matchContent(u,n,a);if(c){const m={docValue:void 0,isBuildIn:!0,endIndex:c.endIndex,index:0},h=this._getBuildInFunc(c.name);if(h)return m.index=this._getOverloadsFuncIndex(h,a,c.name,o),Object.assign(m,{docValue:h});const b=this._getUserFuncsDocVal(c.name);if(b)return Object.assign(m,{docValue:b,isBuildIn:!1});const g=this._getUserVarFuncsDocVal(n,c.name,a,o);if(g)return Object.assign(m,{docValue:[g],isBuildIn:!1})}}}_getOverloadsFuncIndex(n,a,o,u){if(n.length>1){const c=this._overloadsFuncs.find(m=>m.name===o&&m.line===u&&m.startColumn<=a&&m.endColumn>=a);if(c)return c.index}return 0}_getUserFuncsDocVal(n){const a=this._userFunctions.get(n);if(a)return a[0].title=ve.userDefinedFunction,a}_getUserMethodsDocVal(n){const a=this._userMethods.get(n);if(a)return a[0].title=ve.userDefinedMethod,a}_getUserVarFuncsDocVal(n,a,o,u){var c;if(a.includes(".")){const m=a.split("."),h=this._getTypesAndFileds(n,a,o,u);if(typeof h=="string"){const g=`${this._arrayTypeTransform(h).replace(/<[^<>]+>/,"").replace(/(series|simple|const|input)\s+([\w\d.]+)/,"$2")}.${m.pop()}`,w=this._getBuildInMethod(g);if(w){const T=this._getOverloadsFuncIndex(w,o,g,u);return{...w[0],name:g,index:T}}return(c=this._getUserMethodsDocVal(g))==null?void 0:c[0]}else return h}}_arrayTypeTransform(n=""){return n.includes("[]")?`array<${n.replace("[]","")}>`:n}_matchContent(n,a,o){let u=0;for(const c of n){u=o-c.length;const m=a.indexOf(c,u);if(u=m+c.length,this._judgeVal(a,m,u)&&m+1<=o&&u>=o)return{name:c,endIndex:u}}}_judgeVal(n,a,o){const u=n.charAt(a-1),c=/[\w\d."']/;if(c.test(u))return!1;const m=n.charAt(o);return!c.test(m)}}const Nr=new kd;var $a={exports:{}};/**
105
+ \`\`\``}code(n){return`\`${n}\``}paragraph(...n){return[this.paragraphBreak,...n,this.paragraphBreak].join(this.lineBreak)}link(n,a){return`[${n}](${a.href})`}}const xe=new bd;function xd(s,n=0,a=!0){const o=s[n];if(!o)return"";const u=/(Mac|iPhone|iPod|iPad)/i.test(window.navigator.userAgent),{name:c,title:m,desc:h,type:b,syntax:g,returns:w,remarks:I,fields:R}=o,L=[`${xe.bold(c)} (${m})`];if(s.length>1&&L.push(xe.italic(`+${s.length-1} overloads`)),L.push(xe.delimiter),h&&L.push(xe.paragraph(Array.isArray(h)?h.join(xe.lineBreak):h||"")),b&&L.push(xe.paragraph(xe.bold(_t.Type),xe.italic(b))),g&&g.length&&L.push(xe.paragraph(xe.bold(_t.Syntax),xe.pineCode(g.join(xe.lineBreak)))),w&&L.push(xe.paragraph(xe.bold(_t.Returns),xe.lineBreak,w.join(xe.lineBreak))),I&&I.length&&s.length<=1){let j="";typeof I=="string"?j=I:j=I.join(xe.lineBreak)||"",j.length<200&&L.push(xe.paragraph(xe.bold(_t.Remarks),xe.lineBreak,j))}if(R){const j=[];for(const E of R){const V=E.desc?` - ${E.desc}`:"";j.push(`${E.name} (${E.type}) ${V}`)}L.push(xe.paragraph(xe.bold(_t.Fields),xe.lineBreak,j.join(xe.paragraphBreak)))}return a&&L.push(xe.italic(`${xe.code(u?"⌘":"Ctrl")} + ${yd.clickOnKeywordForMoreHelp}`)),L.join(L.length===2?" ":xe.lineBreak)}const an="tcc_cursor_position",wd=["submenuitem.EditorContextPeek","editor.action.peekDefinition"];function vd(s){return s.replace(/<[^<>]+>/,"").replace(/(series|simple|const|input)\s+([\w\d.]+)/,"$2").replace(/\w[\w.\d]*\[\]/,"array")}function Td(s){const n=s.getContribution("editor.contrib.contextmenu"),a=n==null?void 0:n._getMenuActions;n._getMenuActions=function(){return a.apply(n,arguments).filter(function(u){return!wd.includes(u.id)})}}class Id{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=xe,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}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,a,o,u){this._initUserDefind();const c=this._mergeTreeSlices(this._generateTreeSlice(gt.methods,"method"),this._generateTreeSlice(u,"method"));this._getMethodNamespaceCache(c),this._userMethods=u,this._userTypes=a,this._userFunctions=n;const m=this._generateTreeSlice(n,"fun");this._userSuggestions=this._getAllUserCompletionItems(m,this._generateTreeSlice(a,"type"),this._generateTreeSlice(o,"var")),this._getUserFuncArgumentsCompletionItemsToCache(m)}_getAllUserCompletionItems(n,a,o){const u=this._getUserVariableCompletionItems(o),c=this._getTypeCompletionItems(a,!0),m=this._getFunctionCompletionItems(n,void 0,!0);return[...c,...m,...u,...this._userOutermostNsItems.values()]}_getAllCompletionItems(){const{variables:n,keywords:a,types:o,functions:u}=this._builtinSubtreeCache,c=this._getVariableCompletionItems(n),m=this._getKeywordCompletionItems(a),h=this._getTypeCompletionItems(o),b=this._getFunctionCompletionItems(u),g=this._getSnippetsCompletionsList();return[...c,...m,...h,...b,...this._outermostNsItems.values(),...g]}_getNodeKey(n,a){return`${a}_${n}`}_mergeTreeSlices(...n){const a=new Map;for(const o of n)for(const[u,c]of o){const m=a.get(u);m?a.set(u,{...m,children:this._mergeTreeSlices(c.children,m.children)}):a.set(u,c)}return a}_mergeCompletions(n,a){const o=this._namespaceCache.get(n);o?this._namespaceCache.set(n,[...o,...a]):this._namespaceCache.set(n,a)}_mergeUserCompletions(n,a){const o=this._userNamespaceCache.get(n);o?this._userNamespaceCache.set(n,[...o,...a]):this._userNamespaceCache.set(n,a)}_generateTreeSlice(n,a){const o=new Map;for(const[u,c]of n){const[m,...h]=u.split("."),b=h.length>0,g=o.get(this._getNodeKey(m,b?"ns":a));let w=new Map,I=c.map(L=>({...L,name:u})),R=this._getNodeKey(u,a);if(b&&a!=="type"){const L=new Map([[h.join("."),c]]);I=[{name:m,title:ve.namespace}],R=this._getNodeKey(m,"ns"),w=this._generateTreeSlice(L,a)}g&&(I=[{name:m,title:ve.namespace}],w=this._mergeTreeSlices(g.children,w)),o.set(R,{value:I,children:w})}return o}_getBuiltinsCacheFragment(){const{keywords:n,variables:a,constants:o,types:u,functions:c}=gt;return this._builtinSubtreeCache={keywords:this._generateTreeSlice(n,"key"),variables:this._mergeTreeSlices(this._generateTreeSlice(a,"var"),this._generateTreeSlice(o,"var")),types:this._generateTreeSlice(u,"type"),functions:this._generateTreeSlice(c,"fun")},this._builtinSubtreeCache}_getVariableCompletionItems(n,a){const o=[],u=[];for(const[c,m]of n){const{value:h,children:b}=m;if(c.startsWith("ns")){const g=this._getNamespaceCompletionItem(h[0]);if(a){u.push({...g});const I=`${a}.${g.label}`;g.label=I,g.insertText=I}const w=this._getVariableCompletionItems(b,g.label);a||this._outermostNsItems.set(c,g),o.push(...w)}else{const g=this._getVariableCompletionItem(h[0],a?3:2);if(a){u.push({...g});const{label:w}=g;g.label=`${a}.${w}`,g.insertText=`${a}.${g.insertText}`,g.filterText=`${w}\r`}o.push(g)}}return u.length&&a&&this._mergeCompletions(a,u),o}_setUserVariableSubItems(n,a){var g,w,I,R;let o=[];const u=vd(n.type||""),c=this._methodNamespaceCache.get(u),m=a?`${a}.${n.name}`:n.name;c&&(o=c.filter(L=>{var Q;const j=`${u}.${L.label}`,E=gt.methods.get(j)||this._userMethods.get(j),V=E==null?void 0:E.some(G=>!G.thisType||G.thisType[0].includes("<>")||G.thisType.includes(n.type||""));if(V&&E){const G=this._getNamedArgumentsCompletionList(((Q=E[0])==null?void 0:Q.args)||[]),F=`${m}.${L.label}`;this._userFuncArgsCache.set(F,G),this._methodFuncs.set(F,E)}return V}));const{types:h}=gt,b=((w=(g=this._userTypes.get(u))==null?void 0:g[0])==null?void 0:w.fields)||((R=(I=h.get(u))==null?void 0:I[0])==null?void 0:R.fields);if(b)for(const L of b){const j=L.name,E=L.type,V=this._getInstanceTypeCompletionItemProp({name:j,type:E});this._setUserVariableSubItems({name:j,type:E},n.name),o.push({...V})}o.length&&this._mergeUserCompletions(m,o)}_getUserVariableCompletionItems(n,a){const o=[],u=[];for(const[c,m]of n){const{value:h,children:b}=m;if(this._setUserVariableSubItems(h[0]),c.startsWith("ns")){const g=this._getNamespaceCompletionItem(h[0]);if(a){u.push({...g});const I=`${a}.${g.label}`;g.label=I,g.insertText=I}const w=this._getUserVariableCompletionItems(b,g.label);a||this._userOutermostNsItems.set(c,g),o.push(...w)}else{const g=this._getVariableCompletionItem(h[0],a?2:1,!1);if(a){u.push({...g});const{label:w}=g;g.label=`${a}.${w}`,g.insertText=`${a}.${g.insertText}`,g.filterText=`${w}\r`}o.push(g)}}return u.length&&a&&this._mergeUserCompletions(a,u),o}_getTypeCompletionItems(n,a=!1){const o=[];for(const[,u]of n){const{value:c}=u,m=a?this._getCustomTypeCompletionItem(c[0]):this._getTypeCompletionItem(c[0]);o.push(m)}return o}_getKeywordCompletionItems(n){const a=[];for(const[,o]of n){const{value:u}=o,c=this._getKeywordCompletionItem(u[0]);a.push(c)}return a}_getMethodNamespaceCache(n,a){const o=[];for(const[u,c]of n){const{value:m,children:h}=c;if(u.startsWith("ns")){const b=this._getNamespaceCompletionItem(m[0]);if(a){o.push({...b});const g=`${a}.${b.label}`;b.label=g,b.insertText=g}this._getMethodNamespaceCache(h,b.label)}else{const b=this._getFunctionCompletionItem(m[0],a?3:2);if(m.length>1&&(b.detail=`${b.detail} (+${m.length-1} overloads)`),a){o.push({...b});const{label:g}=b;b.label=`${a}.${g}`,b.insertText=`${a}.${b.insertText}`,b.filterText=`${g}\r`}}}a&&this._methodNamespaceCache.set(a,o)}_getFunctionCompletionItems(n,a,o=!1){const u=[],c=[];for(const[m,h]of n){const{value:b,children:g}=h;if(m.startsWith("ns")){const w=this._getNamespaceCompletionItem(b[0]);if(a){c.push({...w});const R=`${a}.${w.label}`;w.label=R,w.insertText=R}const I=this._getFunctionCompletionItems(g,w.label,o);a||(o?this._userOutermostNsItems.set(m,w):this._outermostNsItems.set(m,w)),u.push(...I)}else{const w=this._getFunctionCompletionItem(b[0],a?3:2,o);if(b.length>1&&(w.detail=`${w.detail} (+${b.length-1} overloads)`),a){c.push({...w});const{label:I}=w;w.label=`${a}.${I}`,w.insertText=`${a}.${w.insertText}`,w.filterText=`${I}\r`}u.push(w)}}return c.length&&a&&(o?this._mergeUserCompletions(a,c):this._mergeCompletions(a,c)),u}_getSnippetsCompletionsList(){return fd.map(n=>{const{label:a,kind:o,insertText:u}=n,c=a.charAt(0).toUpperCase()+a.substring(1),m={value:this._formatter.pineCode(u.replace(/\${\d:([^}]+)}|\${\d}/g,"$1"))};return{label:a,detail:`(${c} ${o})`,insertText:u,insertTextRules:Se.languages.CompletionItemInsertTextRule.InsertAsSnippet,sortText:`2_${a}`,kind:Se.languages.CompletionItemKind.Snippet,documentation:m}})}_getFuncArgumentsCompletionItemsToCache(n,a){for(const[o,u]of n){const{name:c}=u.value[0];if(o.startsWith("ns"))this._getFuncArgumentsCompletionItemsToCache(u.children,a?`${a}.${c}`:c);else{const m=new Map;u.value.reduce((g,w)=>{const I=w.args;return I&&I.length&&I.forEach(R=>{g.set(R.name,R)}),g},m);const h=this._getNamedArgumentsCompletionList([...m.values()]),b=a?`${a}.${c}`:c;this._funcArgsCache.set(b,h)}}}_getUserFuncArgumentsCompletionItemsToCache(n,a){for(const[o,u]of n){const{name:c}=u.value[0];if(o.startsWith("ns"))this._getUserFuncArgumentsCompletionItemsToCache(u.children,a?`${a}.${c}`:c);else{const m=new Map;u.value.reduce((g,w)=>{const I=w.args;return I&&I.length&&I.forEach(R=>{g.set(R.name,R)}),g},m);const h=this._getNamedArgumentsCompletionList([...m.values()]),b=a?`${a}.${c}`:c;this._userFuncArgsCache.set(b,h)}}}_getNamedArgumentsCompletionList(n){return n.map(a=>{const{name:o,desc:u,displayType:c}=a,m=`${o} = `,h=Array.isArray(u)?u.join(this._formatter.delimiter):u||"";return{label:m,documentation:{value:this._formatter.paragraph(this._formatter.bold(ve.Description),this._formatter.lineBreak,h)},insertText:m,detail:`(${ve.parameter}) ${ve.types} ${c}`,kind:Se.languages.CompletionItemKind.Text,sortText:`0_${m}`}})}_getVariableCompletionItem(n,a=2,o=!0){const u=this._extractExamples(n),c=this._extractDescription(n),m=[this._createDescriptionSection(c)];u.length?m.push(this._createExampleSection(u)):n.syntax&&n.syntax.length&&m.push(this._createSyntaxSection(n.syntax));const h={value:m.join(this._formatter.lineBreak)},b=o?ve.variables:ve.userDefinedVariable;return{documentation:h,label:n.name,insertText:n.name,kind:Se.languages.CompletionItemKind.Variable,sortText:`${a}_${n.name}`,detail:`(${b}) ${n.type}`}}_getKeywordCompletionItem(n,a=2){const o=this._extractExamples(n),u=this._extractDescription(n),c=[this._createDescriptionSection(u)];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:Se.languages.CompletionItemKind.Keyword,sortText:`${a}_${n.name}`,detail:`(${ve.keywords})`}}_getTypeCompletionItem(n){const a=this._extractDescription(n);return{documentation:{value:this._createDescriptionSection(a)},label:n.name,insertText:n.name,kind:Se.languages.CompletionItemKind.Keyword,sortText:`1_${n.name}`,detail:`(${ve.types})`}}_getCustomTypeCompletionItem(n){const a=this._extractDescription(n);return{documentation:{value:this._createDescriptionSection(a)},label:n.name,insertText:n.name,kind:Se.languages.CompletionItemKind.Keyword,sortText:`2_${n.name}`,detail:`(${ve.userDefinedType})`}}_getInstanceTypeCompletionItemProp(n){const a=this._extractDescription(n),o=[];return a&&o.push(this._formatter.paragraph(this._formatter.bold(_t.Description),this._formatter.lineBreak,a)),{documentation:{value:o.join(this._formatter.lineBreak)},label:n.name,insertText:n.name,kind:Se.languages.CompletionItemKind.Field,sortText:`2_${n.name}`,detail:`(${ve.field}) ${n.type}`}}_getFunctionCompletionItem(n,a=2,o=!0){var L;const u=n.returnedTypes&&n.returnedTypes[0]||n.syntax&&n.syntax[0]&&((L=n.syntax[0].split("→").pop())==null?void 0:L.trim()),c=this._extractExamples(n),m=this._extractDescription(n),h=[this._createDescriptionSection(m)];c.length?h.push(this._createExampleSection(c)):n.syntax&&n.syntax.length&&h.push(this._createSyntaxSection(n.syntax)),n.returns&&n.returns.length&&h.push(this._createReturnSection(n.returns));const b={value:h.join(this._formatter.lineBreak)},g=n.name,w=o?ve.functions:ve.userDefinedFunction,I=n.template,R=I?`${gd(g)}<\${1}>`:g;return{documentation:b,label:I?`${g.replace(/<.+>/,"")}<type>`:g,kind:Se.languages.CompletionItemKind.Function,sortText:`${a}_${g}`,insertTextRules:Se.languages.CompletionItemInsertTextRule.InsertAsSnippet,insertText:R+this.bracketsPostfix,originInsertText:R,detail:`(${w}) ${ve.returns} ${u}`,command:{id:"tcc.editor.function",title:"",arguments:[I?"editor.action.triggerSuggest":"editor.action.triggerParameterHints"]}}}_getNamespaceCompletionItem(n,a=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:`${a}_${n.name}`,kind:Se.languages.CompletionItemKind.Module}}_extractExamples(n){let a;return n.examples||n.detailedDesc&&((a=n.detailedDesc[0])===null||a===void 0?void 0:a.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(_t.Example),this._formatter.pineCode(n.join(this._formatter.lineBreak)))}_createSyntaxSection(n){return this._formatter.paragraph(this._formatter.bold(_t.Syntax),this._formatter.pineCode(n.join(this._formatter.lineBreak)))}_createReturnSection(n){return this._formatter.paragraph(this._formatter.bold(_t.Returns),this._formatter.lineBreak,n.join(this._formatter.lineBreak))}_createDescriptionSection(n){return!n||n.trim().length===0?"":this._formatter.paragraph(this._formatter.bold(_t.Description),this._formatter.lineBreak,n)}}const Lt=new Id;class kd{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,"_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._overloadsFuncs=[]}setUserDefined(n,a){const{functions:o,variables:u,types:c,methods:m}=n;o&&(this._userFunctions=o),u&&(this._userVariables=u),c&&(this._userTypes=c),m&&(this._userMethods=m),this._overloadsFuncs=a}parseLineContentFuncVar(n,a,o,u){let c=(o==null?void 0:o.getLineContent(a))||"";const m=c.indexOf("//");if(this._removeString(c).indexOf("//")!==-1&&m<=n)return;c=c+" ";const h=this._getVariablesDocVal(c,n,a);if(h){if(h.isBuildIn){const w=o==null?void 0:o.getWordAtPosition(u||new Se.Position(a,n));if(((o==null?void 0:o.getValueInRange({startLineNumber:a,startColumn:(w==null?void 0:w.endColumn)||0,endLineNumber:a,endColumn:((w==null?void 0:w.endColumn)||0)+2}))||"").trim().startsWith("="))return null}return h}const b=this._getFuncsDocVal(c,n,a);if(b)return b;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 w=this._matchContent(g,c,n);if(w){const I=this._getBuildInOther(w.name);if(I)return{docValue:I,isBuildIn:!0,index:0};{const R=this._getBuildInFunc(`${w.name}<type>`);if(R)return{docValue:R,isBuildIn:!0,index:0}}}}return null}_getBuildInFunc(n){return gt.functions.get(n)}_getBuildInMethod(n){return gt.methods.get(n)}_getBuildInOther(n){const{keywords:a,variables:o,constants:u,types:c}=gt;return a.get(n)||o.get(n)||u.get(n)||c.get(n)}parseCurrentInputFunc(n,a=!1,o=!1){let u=n.length-1,c=0,m=a,h=o;for(;u>=0;){const b=n.charAt(u);if(u-=1,/['"]/.test(b)){const g=b;if(b==="'"){if(m){m=!1;continue}}else if(h){h=!1;continue}for(;u>=0;){const w=n.charAt(u);if(u-=1,w===g)break}}if(!(m||h)&&(/\)/.test(b)&&(c+=1),/\(/.test(b))){if(c>0){c-=1;continue}let g="";for(;u>=0;){const w=n.charAt(u);if(u-=1,!(/\s/.test(w)&&!g)){if(/[^\w.]/.test(w))break;g=w+g}}if(g)return{funcName:g,startIndex:u+1}}}}parseCurrentInputFuncAndArg(n,a=!1,o=!1){const{funcName:u,startIndex:c}=this.parseCurrentInputFunc(n,a,o)||{};if(u&&typeof c=="number"){let m=n.slice(c+u.length).trim().slice(1),h=-1;if(a&&(h=m.lastIndexOf("'")),o){const w=m.lastIndexOf('"');(w!==-1&&w<h||h===-1)&&(h=w)}h!==-1&&(m=m.substring(0,h));const g=m.replace(/[\w.]+\(.*\)/g,"").split(",").map(w=>{const I=w.trim().split("=");return I.length<=1?"":I[0].trim()});return{funcName:u,args:g}}}_removeString(n){return n.replace(/\\"|\\'/g,"").replace(/"[^"]*"|'[^']*'/g,"")}_getVariablesDocVal(n,a,o){const u=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(u){const c=this._matchContent(u,n,a);if(c){const m={docValue:void 0,isBuildIn:!0,index:0},h=this._getBuildInOther(c.name);if(h)return m.docValue=h,m;const b=this._getUserVariablesDocVal(c.name,a,o);if(b)return Object.assign(m,{docValue:[b],isBuildIn:!1});const g=this._getUserTypesDocVal(c.name);if(g)return Object.assign(m,{docValue:g,isBuildIn:!1});const w=this._getTypesAndFileds(n,c.name,a,o);if(w&&typeof w!="string")return Object.assign(m,{docValue:[w],isBuildIn:!1})}}}_getUserVariablesDocVal(n,a,o){const m=[...this._userVariables.get(n)||[]].sort((h,b)=>(b.scope||0)-(h.scope||0)).find(h=>{const b=h.range;return((b==null?void 0:b.startColumn)||0)<=a&&((b==null?void 0:b.startLineNumber)||0)<=o&&((b==null?void 0:b.endLineNumber)||0)>=o});if(m)return m.title=ve.userDefinedVariable,m.type=this._arrayTypeTransform(m.type),m}_getUserTypesDocVal(n){const a=this._userTypes.get(n);if(a)return a[0].title=ve.userDefinedType,a}_getTypesAndFileds(n,a,o,u){var c,m;if(a.includes(".")){const h=a.split(".");let b=h[0],g,w=null,I=n.indexOf(a,o-a.length)+1,R=I+b.length-1;for(const L of h.slice(1)){if(!w){const j=I<=o&&R>=o,E=this._getUserVariablesDocVal(b,o,u);if(j&&E)return E;w=E==null?void 0:E.type}if(w){g=w,I=R+2,R=R+L.length+1;const j=this._userTypes.get(w)||gt.types.get(w),E=(m=(c=j==null?void 0:j[0])==null?void 0:c.fields)==null?void 0:m.find(V=>V.name===L);if(E&&I<=o&&R>=o)return{name:`${w}.${L}`,desc:E.desc,type:this._arrayTypeTransform(E.type),title:ve.field};w=E==null?void 0:E.type}else b=`${b}.${L}`,R=R+L.length+1}return g}}_getFuncsDocVal(n,a,o){const u=n.match(/[a-zA-Z_][a-zA-Z_0-9]*(\s*\.\s*[a-zA-Z_][a-zA-Z_0-9]*)*(?=\s*\()/g);if(u){const c=this._matchContent(u,n,a);if(c){const m={docValue:void 0,isBuildIn:!0,endIndex:c.endIndex,index:0},h=this._getBuildInFunc(c.name);if(h)return m.index=this._getOverloadsFuncIndex(h,a,c.name,o),Object.assign(m,{docValue:h});const b=this._getUserFuncsDocVal(c.name);if(b)return Object.assign(m,{docValue:b,isBuildIn:!1});const g=this._getUserVarFuncsDocVal(n,c.name,a,o);if(g)return Object.assign(m,{docValue:[g],isBuildIn:!1})}}}_getOverloadsFuncIndex(n,a,o,u){if(n.length>1){const c=this._overloadsFuncs.find(m=>m.name===o&&m.line===u&&m.startColumn<=a&&m.endColumn>=a);if(c)return c.index}return 0}_getUserFuncsDocVal(n){const a=this._userFunctions.get(n);if(a)return a[0].title=ve.userDefinedFunction,a}_getUserMethodsDocVal(n){const a=this._userMethods.get(n);if(a)return a[0].title=ve.userDefinedMethod,a}_getUserVarFuncsDocVal(n,a,o,u){var c;if(a.includes(".")){const m=a.split("."),h=this._getTypesAndFileds(n,a,o,u);if(typeof h=="string"){const g=`${this._arrayTypeTransform(h).replace(/<[^<>]+>/,"").replace(/(series|simple|const|input)\s+([\w\d.]+)/,"$2")}.${m.pop()}`,w=this._getBuildInMethod(g);if(w){const I=this._getOverloadsFuncIndex(w,o,g,u);return{...w[0],name:g,index:I}}return(c=this._getUserMethodsDocVal(g))==null?void 0:c[0]}else return h}}_arrayTypeTransform(n=""){return n.includes("[]")?`array<${n.replace("[]","")}>`:n}_matchContent(n,a,o){let u=0;for(const c of n){u=o-c.length;const m=a.indexOf(c,u);if(u=m+c.length,this._judgeVal(a,m,u)&&m+1<=o&&u>=o)return{name:c,endIndex:u}}}_judgeVal(n,a,o){const u=n.charAt(a-1),c=/[\w\d."']/;if(c.test(u))return!1;const m=n.charAt(o);return!c.test(m)}}const Nr=new kd;var $a={exports:{}};/**
106
106
  * @license
107
107
  * Lodash <https://lodash.com/>
108
108
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
109
109
  * Released under MIT license <https://lodash.com/license>
110
110
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
111
111
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
112
- */$a.exports,function(s,n){(function(){var a,o="4.17.21",u=200,c="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",m="Expected a function",h="Invalid `variable` option passed into `_.template`",b="__lodash_hash_undefined__",g=500,w="__lodash_placeholder__",T=1,L=2,M=4,B=1,P=2,Y=1,F=2,U=4,R=8,k=16,E=32,G=64,V=128,he=256,_e=512,ce=30,bt="...",St=800,Me=16,Fe=1,K=2,fe=3,Oe=1/0,Le=9007199254740991,lt=17976931348623157e292,je=NaN,te=4294967295,Te=te-1,We=te>>>1,Ht=[["ary",V],["bind",Y],["bindKey",F],["curry",R],["curryRight",k],["flip",_e],["partial",E],["partialRight",G],["rearg",he]],Qe="[object Arguments]",nr="[object Array]",ma="[object AsyncFunction]",Ft="[object Boolean]",$t="[object Date]",Pr="[object DOMException]",Er="[object Error]",br="[object Function]",rs="[object GeneratorFunction]",ct="[object Map]",jt="[object Number]",Rr="[object Null]",xt="[object Object]",fa="[object Promise]",Lr="[object Proxy]",xr="[object RegExp]",ut="[object Set]",Xt="[object String]",Mr="[object Symbol]",wn="[object Undefined]",ir="[object WeakMap]",as="[object WeakSet]",zt="[object ArrayBuffer]",or="[object DataView]",Fr="[object Float32Array]",jr="[object Float64Array]",wr="[object Int8Array]",ya="[object Int16Array]",ha="[object Int32Array]",_a="[object Uint8Array]",ga="[object Uint8ClampedArray]",ba="[object Uint16Array]",xa="[object Uint32Array]",vn=/\b__p \+= '';/g,wa=/\b(__p \+=) '' \+/g,ss=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Gt=/&(?:amp|lt|gt|quot|#39);/g,Br=/[&<>"']/g,va=RegExp(Gt.source),ns=RegExp(Br.source),Tn=/<%-([\s\S]+?)%>/g,is=/<%([\s\S]+?)%>/g,os=/<%=([\s\S]+?)%>/g,ls=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,cs=/^\w*$/,In=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ta=/[\\^$.*+?()[\]{}|]/g,us=RegExp(Ta.source),Ia=/^\s+/,kn=/\s/,Dn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,An=/\{\n\/\* \[wrapped with (.+)\] \*/,y=/,? & /,N=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,W=/[()=,{}\[\]\/\s]/,ee=/\\(\\)?/g,me=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ge=/\w*$/,ue=/^[-+]0x[0-9a-f]+$/i,oe=/^0b[01]+$/i,$e=/^\[object .+?Constructor\]$/,qe=/^0o[0-7]+$/i,ze=/^(?:0|[1-9]\d*)$/,tt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Nt=/($^)/,ds=/['\n\r\u2028\u2029\\]/g,rt="\\ud800-\\udfff",Lp="\\u0300-\\u036f",Mp="\\ufe20-\\ufe2f",Fp="\\u20d0-\\u20ff",zo=Lp+Mp+Fp,No="\\u2700-\\u27bf",Oo="a-z\\xdf-\\xf6\\xf8-\\xff",jp="\\xac\\xb1\\xd7\\xf7",Bp="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Up="\\u2000-\\u206f",Wp=" \\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",Po="A-Z\\xc0-\\xd6\\xd8-\\xde",Eo="\\ufe0e\\ufe0f",Ro=jp+Bp+Up+Wp,qn="['’]",Hp="["+rt+"]",Lo="["+Ro+"]",ps="["+zo+"]",Mo="\\d+",$p="["+No+"]",Fo="["+Oo+"]",jo="[^"+rt+Ro+Mo+No+Oo+Po+"]",Cn="\\ud83c[\\udffb-\\udfff]",Xp="(?:"+ps+"|"+Cn+")",Bo="[^"+rt+"]",Sn="(?:\\ud83c[\\udde6-\\uddff]){2}",zn="[\\ud800-\\udbff][\\udc00-\\udfff]",Ur="["+Po+"]",Uo="\\u200d",Wo="(?:"+Fo+"|"+jo+")",Gp="(?:"+Ur+"|"+jo+")",Ho="(?:"+qn+"(?:d|ll|m|re|s|t|ve))?",$o="(?:"+qn+"(?:D|LL|M|RE|S|T|VE))?",Xo=Xp+"?",Go="["+Eo+"]?",Vp="(?:"+Uo+"(?:"+[Bo,Sn,zn].join("|")+")"+Go+Xo+")*",Yp="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Kp="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Vo=Go+Xo+Vp,Qp="(?:"+[$p,Sn,zn].join("|")+")"+Vo,Zp="(?:"+[Bo+ps+"?",ps,Sn,zn,Hp].join("|")+")",Jp=RegExp(qn,"g"),em=RegExp(ps,"g"),Nn=RegExp(Cn+"(?="+Cn+")|"+Zp+Vo,"g"),tm=RegExp([Ur+"?"+Fo+"+"+Ho+"(?="+[Lo,Ur,"$"].join("|")+")",Gp+"+"+$o+"(?="+[Lo,Ur+Wo,"$"].join("|")+")",Ur+"?"+Wo+"+"+Ho,Ur+"+"+$o,Kp,Yp,Mo,Qp].join("|"),"g"),rm=RegExp("["+Uo+rt+zo+Eo+"]"),am=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,sm=["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"],nm=-1,De={};De[Fr]=De[jr]=De[wr]=De[ya]=De[ha]=De[_a]=De[ga]=De[ba]=De[xa]=!0,De[Qe]=De[nr]=De[zt]=De[Ft]=De[or]=De[$t]=De[Er]=De[br]=De[ct]=De[jt]=De[xt]=De[xr]=De[ut]=De[Xt]=De[ir]=!1;var ke={};ke[Qe]=ke[nr]=ke[zt]=ke[or]=ke[Ft]=ke[$t]=ke[Fr]=ke[jr]=ke[wr]=ke[ya]=ke[ha]=ke[ct]=ke[jt]=ke[xt]=ke[xr]=ke[ut]=ke[Xt]=ke[Mr]=ke[_a]=ke[ga]=ke[ba]=ke[xa]=!0,ke[Er]=ke[br]=ke[ir]=!1;var im={À:"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"},om={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},lm={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},cm={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},um=parseFloat,dm=parseInt,Yo=typeof ra=="object"&&ra&&ra.Object===Object&&ra,pm=typeof self=="object"&&self&&self.Object===Object&&self,Xe=Yo||pm||Function("return this")(),On=n&&!n.nodeType&&n,vr=On&&!0&&s&&!s.nodeType&&s,Ko=vr&&vr.exports===On,Pn=Ko&&Yo.process,wt=function(){try{var x=vr&&vr.require&&vr.require("util").types;return x||Pn&&Pn.binding&&Pn.binding("util")}catch{}}(),Qo=wt&&wt.isArrayBuffer,Zo=wt&&wt.isDate,Jo=wt&&wt.isMap,el=wt&&wt.isRegExp,tl=wt&&wt.isSet,rl=wt&&wt.isTypedArray;function dt(x,A,I){switch(I.length){case 0:return x.call(A);case 1:return x.call(A,I[0]);case 2:return x.call(A,I[0],I[1]);case 3:return x.call(A,I[0],I[1],I[2])}return x.apply(A,I)}function mm(x,A,I,$){for(var re=-1,ye=x==null?0:x.length;++re<ye;){var Be=x[re];A($,Be,I(Be),x)}return $}function vt(x,A){for(var I=-1,$=x==null?0:x.length;++I<$&&A(x[I],I,x)!==!1;);return x}function fm(x,A){for(var I=x==null?0:x.length;I--&&A(x[I],I,x)!==!1;);return x}function al(x,A){for(var I=-1,$=x==null?0:x.length;++I<$;)if(!A(x[I],I,x))return!1;return!0}function lr(x,A){for(var I=-1,$=x==null?0:x.length,re=0,ye=[];++I<$;){var Be=x[I];A(Be,I,x)&&(ye[re++]=Be)}return ye}function ms(x,A){var I=x==null?0:x.length;return!!I&&Wr(x,A,0)>-1}function En(x,A,I){for(var $=-1,re=x==null?0:x.length;++$<re;)if(I(A,x[$]))return!0;return!1}function Ae(x,A){for(var I=-1,$=x==null?0:x.length,re=Array($);++I<$;)re[I]=A(x[I],I,x);return re}function cr(x,A){for(var I=-1,$=A.length,re=x.length;++I<$;)x[re+I]=A[I];return x}function Rn(x,A,I,$){var re=-1,ye=x==null?0:x.length;for($&&ye&&(I=x[++re]);++re<ye;)I=A(I,x[re],re,x);return I}function ym(x,A,I,$){var re=x==null?0:x.length;for($&&re&&(I=x[--re]);re--;)I=A(I,x[re],re,x);return I}function Ln(x,A){for(var I=-1,$=x==null?0:x.length;++I<$;)if(A(x[I],I,x))return!0;return!1}var hm=Mn("length");function _m(x){return x.split("")}function gm(x){return x.match(N)||[]}function sl(x,A,I){var $;return I(x,function(re,ye,Be){if(A(re,ye,Be))return $=ye,!1}),$}function fs(x,A,I,$){for(var re=x.length,ye=I+($?1:-1);$?ye--:++ye<re;)if(A(x[ye],ye,x))return ye;return-1}function Wr(x,A,I){return A===A?Sm(x,A,I):fs(x,nl,I)}function bm(x,A,I,$){for(var re=I-1,ye=x.length;++re<ye;)if($(x[re],A))return re;return-1}function nl(x){return x!==x}function il(x,A){var I=x==null?0:x.length;return I?jn(x,A)/I:je}function Mn(x){return function(A){return A==null?a:A[x]}}function Fn(x){return function(A){return x==null?a:x[A]}}function ol(x,A,I,$,re){return re(x,function(ye,Be,Ie){I=$?($=!1,ye):A(I,ye,Be,Ie)}),I}function xm(x,A){var I=x.length;for(x.sort(A);I--;)x[I]=x[I].value;return x}function jn(x,A){for(var I,$=-1,re=x.length;++$<re;){var ye=A(x[$]);ye!==a&&(I=I===a?ye:I+ye)}return I}function Bn(x,A){for(var I=-1,$=Array(x);++I<x;)$[I]=A(I);return $}function wm(x,A){return Ae(A,function(I){return[I,x[I]]})}function ll(x){return x&&x.slice(0,pl(x)+1).replace(Ia,"")}function pt(x){return function(A){return x(A)}}function Un(x,A){return Ae(A,function(I){return x[I]})}function ka(x,A){return x.has(A)}function cl(x,A){for(var I=-1,$=x.length;++I<$&&Wr(A,x[I],0)>-1;);return I}function ul(x,A){for(var I=x.length;I--&&Wr(A,x[I],0)>-1;);return I}function vm(x,A){for(var I=x.length,$=0;I--;)x[I]===A&&++$;return $}var Tm=Fn(im),Im=Fn(om);function km(x){return"\\"+cm[x]}function Dm(x,A){return x==null?a:x[A]}function Hr(x){return rm.test(x)}function Am(x){return am.test(x)}function qm(x){for(var A,I=[];!(A=x.next()).done;)I.push(A.value);return I}function Wn(x){var A=-1,I=Array(x.size);return x.forEach(function($,re){I[++A]=[re,$]}),I}function dl(x,A){return function(I){return x(A(I))}}function ur(x,A){for(var I=-1,$=x.length,re=0,ye=[];++I<$;){var Be=x[I];(Be===A||Be===w)&&(x[I]=w,ye[re++]=I)}return ye}function ys(x){var A=-1,I=Array(x.size);return x.forEach(function($){I[++A]=$}),I}function Cm(x){var A=-1,I=Array(x.size);return x.forEach(function($){I[++A]=[$,$]}),I}function Sm(x,A,I){for(var $=I-1,re=x.length;++$<re;)if(x[$]===A)return $;return-1}function zm(x,A,I){for(var $=I+1;$--;)if(x[$]===A)return $;return $}function $r(x){return Hr(x)?Om(x):hm(x)}function Ot(x){return Hr(x)?Pm(x):_m(x)}function pl(x){for(var A=x.length;A--&&kn.test(x.charAt(A)););return A}var Nm=Fn(lm);function Om(x){for(var A=Nn.lastIndex=0;Nn.test(x);)++A;return A}function Pm(x){return x.match(Nn)||[]}function Em(x){return x.match(tm)||[]}var Rm=function x(A){A=A==null?Xe:Xr.defaults(Xe.Object(),A,Xr.pick(Xe,sm));var I=A.Array,$=A.Date,re=A.Error,ye=A.Function,Be=A.Math,Ie=A.Object,Hn=A.RegExp,Lm=A.String,Tt=A.TypeError,hs=I.prototype,Mm=ye.prototype,Gr=Ie.prototype,_s=A["__core-js_shared__"],gs=Mm.toString,we=Gr.hasOwnProperty,Fm=0,ml=function(){var e=/[^.]+$/.exec(_s&&_s.keys&&_s.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),bs=Gr.toString,jm=gs.call(Ie),Bm=Xe._,Um=Hn("^"+gs.call(we).replace(Ta,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),xs=Ko?A.Buffer:a,dr=A.Symbol,ws=A.Uint8Array,fl=xs?xs.allocUnsafe:a,vs=dl(Ie.getPrototypeOf,Ie),yl=Ie.create,hl=Gr.propertyIsEnumerable,Ts=hs.splice,_l=dr?dr.isConcatSpreadable:a,Da=dr?dr.iterator:a,Tr=dr?dr.toStringTag:a,Is=function(){try{var e=qr(Ie,"defineProperty");return e({},"",{}),e}catch{}}(),Wm=A.clearTimeout!==Xe.clearTimeout&&A.clearTimeout,Hm=$&&$.now!==Xe.Date.now&&$.now,$m=A.setTimeout!==Xe.setTimeout&&A.setTimeout,ks=Be.ceil,Ds=Be.floor,$n=Ie.getOwnPropertySymbols,Xm=xs?xs.isBuffer:a,gl=A.isFinite,Gm=hs.join,Vm=dl(Ie.keys,Ie),Ue=Be.max,Ye=Be.min,Ym=$.now,Km=A.parseInt,bl=Be.random,Qm=hs.reverse,Xn=qr(A,"DataView"),Aa=qr(A,"Map"),Gn=qr(A,"Promise"),Vr=qr(A,"Set"),qa=qr(A,"WeakMap"),Ca=qr(Ie,"create"),As=qa&&new qa,Yr={},Zm=Cr(Xn),Jm=Cr(Aa),ef=Cr(Gn),tf=Cr(Vr),rf=Cr(qa),qs=dr?dr.prototype:a,Sa=qs?qs.valueOf:a,xl=qs?qs.toString:a;function d(e){if(Ne(e)&&!ae(e)&&!(e instanceof de)){if(e instanceof It)return e;if(we.call(e,"__wrapped__"))return wc(e)}return new It(e)}var Kr=function(){function e(){}return function(t){if(!Ce(t))return{};if(yl)return yl(t);e.prototype=t;var r=new e;return e.prototype=a,r}}();function Cs(){}function It(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=a}d.templateSettings={escape:Tn,evaluate:is,interpolate:os,variable:"",imports:{_:d}},d.prototype=Cs.prototype,d.prototype.constructor=d,It.prototype=Kr(Cs.prototype),It.prototype.constructor=It;function de(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=te,this.__views__=[]}function af(){var e=new de(this.__wrapped__);return e.__actions__=at(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=at(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=at(this.__views__),e}function sf(){if(this.__filtered__){var e=new de(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function nf(){var e=this.__wrapped__.value(),t=this.__dir__,r=ae(e),i=t<0,l=r?e.length:0,p=gy(0,l,this.__views__),f=p.start,_=p.end,v=_-f,C=i?_:f-1,S=this.__iteratees__,z=S.length,H=0,X=Ye(v,this.__takeCount__);if(!r||!i&&l==v&&X==v)return Hl(e,this.__actions__);var Z=[];e:for(;v--&&H<X;){C+=t;for(var ne=-1,J=e[C];++ne<z;){var le=S[ne],pe=le.iteratee,yt=le.type,et=pe(J);if(yt==K)J=et;else if(!et){if(yt==Fe)continue e;break e}}Z[H++]=J}return Z}de.prototype=Kr(Cs.prototype),de.prototype.constructor=de;function Ir(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 of(){this.__data__=Ca?Ca(null):{},this.size=0}function lf(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function cf(e){var t=this.__data__;if(Ca){var r=t[e];return r===b?a:r}return we.call(t,e)?t[e]:a}function uf(e){var t=this.__data__;return Ca?t[e]!==a:we.call(t,e)}function df(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ca&&t===a?b:t,this}Ir.prototype.clear=of,Ir.prototype.delete=lf,Ir.prototype.get=cf,Ir.prototype.has=uf,Ir.prototype.set=df;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 pf(){this.__data__=[],this.size=0}function mf(e){var t=this.__data__,r=Ss(t,e);if(r<0)return!1;var i=t.length-1;return r==i?t.pop():Ts.call(t,r,1),--this.size,!0}function ff(e){var t=this.__data__,r=Ss(t,e);return r<0?a:t[r][1]}function yf(e){return Ss(this.__data__,e)>-1}function hf(e,t){var r=this.__data__,i=Ss(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}Vt.prototype.clear=pf,Vt.prototype.delete=mf,Vt.prototype.get=ff,Vt.prototype.has=yf,Vt.prototype.set=hf;function Yt(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 _f(){this.size=0,this.__data__={hash:new Ir,map:new(Aa||Vt),string:new Ir}}function gf(e){var t=Us(this,e).delete(e);return this.size-=t?1:0,t}function bf(e){return Us(this,e).get(e)}function xf(e){return Us(this,e).has(e)}function wf(e,t){var r=Us(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}Yt.prototype.clear=_f,Yt.prototype.delete=gf,Yt.prototype.get=bf,Yt.prototype.has=xf,Yt.prototype.set=wf;function kr(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Yt;++t<r;)this.add(e[t])}function vf(e){return this.__data__.set(e,b),this}function Tf(e){return this.__data__.has(e)}kr.prototype.add=kr.prototype.push=vf,kr.prototype.has=Tf;function Pt(e){var t=this.__data__=new Vt(e);this.size=t.size}function If(){this.__data__=new Vt,this.size=0}function kf(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Df(e){return this.__data__.get(e)}function Af(e){return this.__data__.has(e)}function qf(e,t){var r=this.__data__;if(r instanceof Vt){var i=r.__data__;if(!Aa||i.length<u-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new Yt(i)}return r.set(e,t),this.size=r.size,this}Pt.prototype.clear=If,Pt.prototype.delete=kf,Pt.prototype.get=Df,Pt.prototype.has=Af,Pt.prototype.set=qf;function wl(e,t){var r=ae(e),i=!r&&Sr(e),l=!r&&!i&&hr(e),p=!r&&!i&&!l&&ea(e),f=r||i||l||p,_=f?Bn(e.length,Lm):[],v=_.length;for(var C in e)(t||we.call(e,C))&&!(f&&(C=="length"||l&&(C=="offset"||C=="parent")||p&&(C=="buffer"||C=="byteLength"||C=="byteOffset")||Jt(C,v)))&&_.push(C);return _}function vl(e){var t=e.length;return t?e[si(0,t-1)]:a}function Cf(e,t){return Ws(at(e),Dr(t,0,e.length))}function Sf(e){return Ws(at(e))}function Vn(e,t,r){(r!==a&&!Et(e[t],r)||r===a&&!(t in e))&&Kt(e,t,r)}function za(e,t,r){var i=e[t];(!(we.call(e,t)&&Et(i,r))||r===a&&!(t in e))&&Kt(e,t,r)}function Ss(e,t){for(var r=e.length;r--;)if(Et(e[r][0],t))return r;return-1}function zf(e,t,r,i){return pr(e,function(l,p,f){t(i,l,r(l),f)}),i}function Tl(e,t){return e&&Ut(t,He(t),e)}function Nf(e,t){return e&&Ut(t,nt(t),e)}function Kt(e,t,r){t=="__proto__"&&Is?Is(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Yn(e,t){for(var r=-1,i=t.length,l=I(i),p=e==null;++r<i;)l[r]=p?a:Ci(e,t[r]);return l}function Dr(e,t,r){return e===e&&(r!==a&&(e=e<=r?e:r),t!==a&&(e=e>=t?e:t)),e}function kt(e,t,r,i,l,p){var f,_=t&T,v=t&L,C=t&M;if(r&&(f=l?r(e,i,l,p):r(e)),f!==a)return f;if(!Ce(e))return e;var S=ae(e);if(S){if(f=xy(e),!_)return at(e,f)}else{var z=Ke(e),H=z==br||z==rs;if(hr(e))return Gl(e,_);if(z==xt||z==Qe||H&&!l){if(f=v||H?{}:pc(e),!_)return v?cy(e,Nf(f,e)):ly(e,Tl(f,e))}else{if(!ke[z])return l?e:{};f=wy(e,z,_)}}p||(p=new Pt);var X=p.get(e);if(X)return X;p.set(e,f),Bc(e)?e.forEach(function(J){f.add(kt(J,t,r,J,e,p))}):Fc(e)&&e.forEach(function(J,le){f.set(le,kt(J,t,r,le,e,p))});var Z=C?v?yi:fi:v?nt:He,ne=S?a:Z(e);return vt(ne||e,function(J,le){ne&&(le=J,J=e[le]),za(f,le,kt(J,t,r,le,e,p))}),f}function Of(e){var t=He(e);return function(r){return Il(r,e,t)}}function Il(e,t,r){var i=r.length;if(e==null)return!i;for(e=Ie(e);i--;){var l=r[i],p=t[l],f=e[l];if(f===a&&!(l in e)||!p(f))return!1}return!0}function kl(e,t,r){if(typeof e!="function")throw new Tt(m);return Ma(function(){e.apply(a,r)},t)}function Na(e,t,r,i){var l=-1,p=ms,f=!0,_=e.length,v=[],C=t.length;if(!_)return v;r&&(t=Ae(t,pt(r))),i?(p=En,f=!1):t.length>=u&&(p=ka,f=!1,t=new kr(t));e:for(;++l<_;){var S=e[l],z=r==null?S:r(S);if(S=i||S!==0?S:0,f&&z===z){for(var H=C;H--;)if(t[H]===z)continue e;v.push(S)}else p(t,z,i)||v.push(S)}return v}var pr=Zl(Bt),Dl=Zl(Qn,!0);function Pf(e,t){var r=!0;return pr(e,function(i,l,p){return r=!!t(i,l,p),r}),r}function zs(e,t,r){for(var i=-1,l=e.length;++i<l;){var p=e[i],f=t(p);if(f!=null&&(_===a?f===f&&!ft(f):r(f,_)))var _=f,v=p}return v}function Ef(e,t,r,i){var l=e.length;for(r=se(r),r<0&&(r=-r>l?0:l+r),i=i===a||i>l?l:se(i),i<0&&(i+=l),i=r>i?0:Wc(i);r<i;)e[r++]=t;return e}function Al(e,t){var r=[];return pr(e,function(i,l,p){t(i,l,p)&&r.push(i)}),r}function Ge(e,t,r,i,l){var p=-1,f=e.length;for(r||(r=Ty),l||(l=[]);++p<f;){var _=e[p];t>0&&r(_)?t>1?Ge(_,t-1,r,i,l):cr(l,_):i||(l[l.length]=_)}return l}var Kn=Jl(),ql=Jl(!0);function Bt(e,t){return e&&Kn(e,t,He)}function Qn(e,t){return e&&ql(e,t,He)}function Ns(e,t){return lr(t,function(r){return er(e[r])})}function Ar(e,t){t=fr(t,e);for(var r=0,i=t.length;e!=null&&r<i;)e=e[Wt(t[r++])];return r&&r==i?e:a}function Cl(e,t,r){var i=t(e);return ae(e)?i:cr(i,r(e))}function Ze(e){return e==null?e===a?wn:Rr:Tr&&Tr in Ie(e)?_y(e):Sy(e)}function Zn(e,t){return e>t}function Rf(e,t){return e!=null&&we.call(e,t)}function Lf(e,t){return e!=null&&t in Ie(e)}function Mf(e,t,r){return e>=Ye(t,r)&&e<Ue(t,r)}function Jn(e,t,r){for(var i=r?En:ms,l=e[0].length,p=e.length,f=p,_=I(p),v=1/0,C=[];f--;){var S=e[f];f&&t&&(S=Ae(S,pt(t))),v=Ye(S.length,v),_[f]=!r&&(t||l>=120&&S.length>=120)?new kr(f&&S):a}S=e[0];var z=-1,H=_[0];e:for(;++z<l&&C.length<v;){var X=S[z],Z=t?t(X):X;if(X=r||X!==0?X:0,!(H?ka(H,Z):i(C,Z,r))){for(f=p;--f;){var ne=_[f];if(!(ne?ka(ne,Z):i(e[f],Z,r)))continue e}H&&H.push(Z),C.push(X)}}return C}function Ff(e,t,r,i){return Bt(e,function(l,p,f){t(i,r(l),p,f)}),i}function Oa(e,t,r){t=fr(t,e),e=hc(e,t);var i=e==null?e:e[Wt(At(t))];return i==null?a:dt(i,e,r)}function Sl(e){return Ne(e)&&Ze(e)==Qe}function jf(e){return Ne(e)&&Ze(e)==zt}function Bf(e){return Ne(e)&&Ze(e)==$t}function Pa(e,t,r,i,l){return e===t?!0:e==null||t==null||!Ne(e)&&!Ne(t)?e!==e&&t!==t:Uf(e,t,r,i,Pa,l)}function Uf(e,t,r,i,l,p){var f=ae(e),_=ae(t),v=f?nr:Ke(e),C=_?nr:Ke(t);v=v==Qe?xt:v,C=C==Qe?xt:C;var S=v==xt,z=C==xt,H=v==C;if(H&&hr(e)){if(!hr(t))return!1;f=!0,S=!1}if(H&&!S)return p||(p=new Pt),f||ea(e)?cc(e,t,r,i,l,p):yy(e,t,v,r,i,l,p);if(!(r&B)){var X=S&&we.call(e,"__wrapped__"),Z=z&&we.call(t,"__wrapped__");if(X||Z){var ne=X?e.value():e,J=Z?t.value():t;return p||(p=new Pt),l(ne,J,r,i,p)}}return H?(p||(p=new Pt),hy(e,t,r,i,l,p)):!1}function Wf(e){return Ne(e)&&Ke(e)==ct}function ei(e,t,r,i){var l=r.length,p=l,f=!i;if(e==null)return!p;for(e=Ie(e);l--;){var _=r[l];if(f&&_[2]?_[1]!==e[_[0]]:!(_[0]in e))return!1}for(;++l<p;){_=r[l];var v=_[0],C=e[v],S=_[1];if(f&&_[2]){if(C===a&&!(v in e))return!1}else{var z=new Pt;if(i)var H=i(C,S,v,e,t,z);if(!(H===a?Pa(S,C,B|P,i,z):H))return!1}}return!0}function zl(e){if(!Ce(e)||ky(e))return!1;var t=er(e)?Um:$e;return t.test(Cr(e))}function Hf(e){return Ne(e)&&Ze(e)==xr}function $f(e){return Ne(e)&&Ke(e)==ut}function Xf(e){return Ne(e)&&Ys(e.length)&&!!De[Ze(e)]}function Nl(e){return typeof e=="function"?e:e==null?it:typeof e=="object"?ae(e)?El(e[0],e[1]):Pl(e):eu(e)}function ti(e){if(!La(e))return Vm(e);var t=[];for(var r in Ie(e))we.call(e,r)&&r!="constructor"&&t.push(r);return t}function Gf(e){if(!Ce(e))return Cy(e);var t=La(e),r=[];for(var i in e)i=="constructor"&&(t||!we.call(e,i))||r.push(i);return r}function ri(e,t){return e<t}function Ol(e,t){var r=-1,i=st(e)?I(e.length):[];return pr(e,function(l,p,f){i[++r]=t(l,p,f)}),i}function Pl(e){var t=_i(e);return t.length==1&&t[0][2]?fc(t[0][0],t[0][1]):function(r){return r===e||ei(r,e,t)}}function El(e,t){return bi(e)&&mc(t)?fc(Wt(e),t):function(r){var i=Ci(r,e);return i===a&&i===t?Si(r,e):Pa(t,i,B|P)}}function Os(e,t,r,i,l){e!==t&&Kn(t,function(p,f){if(l||(l=new Pt),Ce(p))Vf(e,t,f,r,Os,i,l);else{var _=i?i(wi(e,f),p,f+"",e,t,l):a;_===a&&(_=p),Vn(e,f,_)}},nt)}function Vf(e,t,r,i,l,p,f){var _=wi(e,r),v=wi(t,r),C=f.get(v);if(C){Vn(e,r,C);return}var S=p?p(_,v,r+"",e,t,f):a,z=S===a;if(z){var H=ae(v),X=!H&&hr(v),Z=!H&&!X&&ea(v);S=v,H||X||Z?ae(_)?S=_:Pe(_)?S=at(_):X?(z=!1,S=Gl(v,!0)):Z?(z=!1,S=Vl(v,!0)):S=[]:Fa(v)||Sr(v)?(S=_,Sr(_)?S=Hc(_):(!Ce(_)||er(_))&&(S=pc(v))):z=!1}z&&(f.set(v,S),l(S,v,i,p,f),f.delete(v)),Vn(e,r,S)}function Rl(e,t){var r=e.length;if(r)return t+=t<0?r:0,Jt(t,r)?e[t]:a}function Ll(e,t,r){t.length?t=Ae(t,function(p){return ae(p)?function(f){return Ar(f,p.length===1?p[0]:p)}:p}):t=[it];var i=-1;t=Ae(t,pt(Q()));var l=Ol(e,function(p,f,_){var v=Ae(t,function(C){return C(p)});return{criteria:v,index:++i,value:p}});return xm(l,function(p,f){return oy(p,f,r)})}function Yf(e,t){return Ml(e,t,function(r,i){return Si(e,i)})}function Ml(e,t,r){for(var i=-1,l=t.length,p={};++i<l;){var f=t[i],_=Ar(e,f);r(_,f)&&Ea(p,fr(f,e),_)}return p}function Kf(e){return function(t){return Ar(t,e)}}function ai(e,t,r,i){var l=i?bm:Wr,p=-1,f=t.length,_=e;for(e===t&&(t=at(t)),r&&(_=Ae(e,pt(r)));++p<f;)for(var v=0,C=t[p],S=r?r(C):C;(v=l(_,S,v,i))>-1;)_!==e&&Ts.call(_,v,1),Ts.call(e,v,1);return e}function Fl(e,t){for(var r=e?t.length:0,i=r-1;r--;){var l=t[r];if(r==i||l!==p){var p=l;Jt(l)?Ts.call(e,l,1):oi(e,l)}}return e}function si(e,t){return e+Ds(bl()*(t-e+1))}function Qf(e,t,r,i){for(var l=-1,p=Ue(ks((t-e)/(r||1)),0),f=I(p);p--;)f[i?p:++l]=e,e+=r;return f}function ni(e,t){var r="";if(!e||t<1||t>Le)return r;do t%2&&(r+=e),t=Ds(t/2),t&&(e+=e);while(t);return r}function ie(e,t){return vi(yc(e,t,it),e+"")}function Zf(e){return vl(ta(e))}function Jf(e,t){var r=ta(e);return Ws(r,Dr(t,0,r.length))}function Ea(e,t,r,i){if(!Ce(e))return e;t=fr(t,e);for(var l=-1,p=t.length,f=p-1,_=e;_!=null&&++l<p;){var v=Wt(t[l]),C=r;if(v==="__proto__"||v==="constructor"||v==="prototype")return e;if(l!=f){var S=_[v];C=i?i(S,v,_):a,C===a&&(C=Ce(S)?S:Jt(t[l+1])?[]:{})}za(_,v,C),_=_[v]}return e}var jl=As?function(e,t){return As.set(e,t),e}:it,ey=Is?function(e,t){return Is(e,"toString",{configurable:!0,enumerable:!1,value:Ni(t),writable:!0})}:it;function ty(e){return Ws(ta(e))}function Dt(e,t,r){var i=-1,l=e.length;t<0&&(t=-t>l?0:l+t),r=r>l?l:r,r<0&&(r+=l),l=t>r?0:r-t>>>0,t>>>=0;for(var p=I(l);++i<l;)p[i]=e[i+t];return p}function ry(e,t){var r;return pr(e,function(i,l,p){return r=t(i,l,p),!r}),!!r}function Ps(e,t,r){var i=0,l=e==null?i:e.length;if(typeof t=="number"&&t===t&&l<=We){for(;i<l;){var p=i+l>>>1,f=e[p];f!==null&&!ft(f)&&(r?f<=t:f<t)?i=p+1:l=p}return l}return ii(e,t,it,r)}function ii(e,t,r,i){var l=0,p=e==null?0:e.length;if(p===0)return 0;t=r(t);for(var f=t!==t,_=t===null,v=ft(t),C=t===a;l<p;){var S=Ds((l+p)/2),z=r(e[S]),H=z!==a,X=z===null,Z=z===z,ne=ft(z);if(f)var J=i||Z;else C?J=Z&&(i||H):_?J=Z&&H&&(i||!X):v?J=Z&&H&&!X&&(i||!ne):X||ne?J=!1:J=i?z<=t:z<t;J?l=S+1:p=S}return Ye(p,Te)}function Bl(e,t){for(var r=-1,i=e.length,l=0,p=[];++r<i;){var f=e[r],_=t?t(f):f;if(!r||!Et(_,v)){var v=_;p[l++]=f===0?0:f}}return p}function Ul(e){return typeof e=="number"?e:ft(e)?je:+e}function mt(e){if(typeof e=="string")return e;if(ae(e))return Ae(e,mt)+"";if(ft(e))return xl?xl.call(e):"";var t=e+"";return t=="0"&&1/e==-Oe?"-0":t}function mr(e,t,r){var i=-1,l=ms,p=e.length,f=!0,_=[],v=_;if(r)f=!1,l=En;else if(p>=u){var C=t?null:my(e);if(C)return ys(C);f=!1,l=ka,v=new kr}else v=t?[]:_;e:for(;++i<p;){var S=e[i],z=t?t(S):S;if(S=r||S!==0?S:0,f&&z===z){for(var H=v.length;H--;)if(v[H]===z)continue e;t&&v.push(z),_.push(S)}else l(v,z,r)||(v!==_&&v.push(z),_.push(S))}return _}function oi(e,t){return t=fr(t,e),e=hc(e,t),e==null||delete e[Wt(At(t))]}function Wl(e,t,r,i){return Ea(e,t,r(Ar(e,t)),i)}function Es(e,t,r,i){for(var l=e.length,p=i?l:-1;(i?p--:++p<l)&&t(e[p],p,e););return r?Dt(e,i?0:p,i?p+1:l):Dt(e,i?p+1:0,i?l:p)}function Hl(e,t){var r=e;return r instanceof de&&(r=r.value()),Rn(t,function(i,l){return l.func.apply(l.thisArg,cr([i],l.args))},r)}function li(e,t,r){var i=e.length;if(i<2)return i?mr(e[0]):[];for(var l=-1,p=I(i);++l<i;)for(var f=e[l],_=-1;++_<i;)_!=l&&(p[l]=Na(p[l]||f,e[_],t,r));return mr(Ge(p,1),t,r)}function $l(e,t,r){for(var i=-1,l=e.length,p=t.length,f={};++i<l;){var _=i<p?t[i]:a;r(f,e[i],_)}return f}function ci(e){return Pe(e)?e:[]}function ui(e){return typeof e=="function"?e:it}function fr(e,t){return ae(e)?e:bi(e,t)?[e]:xc(be(e))}var ay=ie;function yr(e,t,r){var i=e.length;return r=r===a?i:r,!t&&r>=i?e:Dt(e,t,r)}var Xl=Wm||function(e){return Xe.clearTimeout(e)};function Gl(e,t){if(t)return e.slice();var r=e.length,i=fl?fl(r):new e.constructor(r);return e.copy(i),i}function di(e){var t=new e.constructor(e.byteLength);return new ws(t).set(new ws(e)),t}function sy(e,t){var r=t?di(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function ny(e){var t=new e.constructor(e.source,ge.exec(e));return t.lastIndex=e.lastIndex,t}function iy(e){return Sa?Ie(Sa.call(e)):{}}function Vl(e,t){var r=t?di(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function Yl(e,t){if(e!==t){var r=e!==a,i=e===null,l=e===e,p=ft(e),f=t!==a,_=t===null,v=t===t,C=ft(t);if(!_&&!C&&!p&&e>t||p&&f&&v&&!_&&!C||i&&f&&v||!r&&v||!l)return 1;if(!i&&!p&&!C&&e<t||C&&r&&l&&!i&&!p||_&&r&&l||!f&&l||!v)return-1}return 0}function oy(e,t,r){for(var i=-1,l=e.criteria,p=t.criteria,f=l.length,_=r.length;++i<f;){var v=Yl(l[i],p[i]);if(v){if(i>=_)return v;var C=r[i];return v*(C=="desc"?-1:1)}}return e.index-t.index}function Kl(e,t,r,i){for(var l=-1,p=e.length,f=r.length,_=-1,v=t.length,C=Ue(p-f,0),S=I(v+C),z=!i;++_<v;)S[_]=t[_];for(;++l<f;)(z||l<p)&&(S[r[l]]=e[l]);for(;C--;)S[_++]=e[l++];return S}function Ql(e,t,r,i){for(var l=-1,p=e.length,f=-1,_=r.length,v=-1,C=t.length,S=Ue(p-_,0),z=I(S+C),H=!i;++l<S;)z[l]=e[l];for(var X=l;++v<C;)z[X+v]=t[v];for(;++f<_;)(H||l<p)&&(z[X+r[f]]=e[l++]);return z}function at(e,t){var r=-1,i=e.length;for(t||(t=I(i));++r<i;)t[r]=e[r];return t}function Ut(e,t,r,i){var l=!r;r||(r={});for(var p=-1,f=t.length;++p<f;){var _=t[p],v=i?i(r[_],e[_],_,r,e):a;v===a&&(v=e[_]),l?Kt(r,_,v):za(r,_,v)}return r}function ly(e,t){return Ut(e,gi(e),t)}function cy(e,t){return Ut(e,uc(e),t)}function Rs(e,t){return function(r,i){var l=ae(r)?mm:zf,p=t?t():{};return l(r,e,Q(i,2),p)}}function Qr(e){return ie(function(t,r){var i=-1,l=r.length,p=l>1?r[l-1]:a,f=l>2?r[2]:a;for(p=e.length>3&&typeof p=="function"?(l--,p):a,f&&Je(r[0],r[1],f)&&(p=l<3?a:p,l=1),t=Ie(t);++i<l;){var _=r[i];_&&e(t,_,i,p)}return t})}function Zl(e,t){return function(r,i){if(r==null)return r;if(!st(r))return e(r,i);for(var l=r.length,p=t?l:-1,f=Ie(r);(t?p--:++p<l)&&i(f[p],p,f)!==!1;);return r}}function Jl(e){return function(t,r,i){for(var l=-1,p=Ie(t),f=i(t),_=f.length;_--;){var v=f[e?_:++l];if(r(p[v],v,p)===!1)break}return t}}function uy(e,t,r){var i=t&Y,l=Ra(e);function p(){var f=this&&this!==Xe&&this instanceof p?l:e;return f.apply(i?r:this,arguments)}return p}function ec(e){return function(t){t=be(t);var r=Hr(t)?Ot(t):a,i=r?r[0]:t.charAt(0),l=r?yr(r,1).join(""):t.slice(1);return i[e]()+l}}function Zr(e){return function(t){return Rn(Zc(Qc(t).replace(Jp,"")),e,"")}}function Ra(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=Kr(e.prototype),i=e.apply(r,t);return Ce(i)?i:r}}function dy(e,t,r){var i=Ra(e);function l(){for(var p=arguments.length,f=I(p),_=p,v=Jr(l);_--;)f[_]=arguments[_];var C=p<3&&f[0]!==v&&f[p-1]!==v?[]:ur(f,v);if(p-=C.length,p<r)return nc(e,t,Ls,l.placeholder,a,f,C,a,a,r-p);var S=this&&this!==Xe&&this instanceof l?i:e;return dt(S,this,f)}return l}function tc(e){return function(t,r,i){var l=Ie(t);if(!st(t)){var p=Q(r,3);t=He(t),r=function(_){return p(l[_],_,l)}}var f=e(t,r,i);return f>-1?l[p?t[f]:f]:a}}function rc(e){return Zt(function(t){var r=t.length,i=r,l=It.prototype.thru;for(e&&t.reverse();i--;){var p=t[i];if(typeof p!="function")throw new Tt(m);if(l&&!f&&Bs(p)=="wrapper")var f=new It([],!0)}for(i=f?i:r;++i<r;){p=t[i];var _=Bs(p),v=_=="wrapper"?hi(p):a;v&&xi(v[0])&&v[1]==(V|R|E|he)&&!v[4].length&&v[9]==1?f=f[Bs(v[0])].apply(f,v[3]):f=p.length==1&&xi(p)?f[_]():f.thru(p)}return function(){var C=arguments,S=C[0];if(f&&C.length==1&&ae(S))return f.plant(S).value();for(var z=0,H=r?t[z].apply(this,C):S;++z<r;)H=t[z].call(this,H);return H}})}function Ls(e,t,r,i,l,p,f,_,v,C){var S=t&V,z=t&Y,H=t&F,X=t&(R|k),Z=t&_e,ne=H?a:Ra(e);function J(){for(var le=arguments.length,pe=I(le),yt=le;yt--;)pe[yt]=arguments[yt];if(X)var et=Jr(J),ht=vm(pe,et);if(i&&(pe=Kl(pe,i,l,X)),p&&(pe=Ql(pe,p,f,X)),le-=ht,X&&le<C){var Ee=ur(pe,et);return nc(e,t,Ls,J.placeholder,r,pe,Ee,_,v,C-le)}var Rt=z?r:this,rr=H?Rt[e]:e;return le=pe.length,_?pe=zy(pe,_):Z&&le>1&&pe.reverse(),S&&v<le&&(pe.length=v),this&&this!==Xe&&this instanceof J&&(rr=ne||Ra(rr)),rr.apply(Rt,pe)}return J}function ac(e,t){return function(r,i){return Ff(r,e,t(i),{})}}function Ms(e,t){return function(r,i){var l;if(r===a&&i===a)return t;if(r!==a&&(l=r),i!==a){if(l===a)return i;typeof r=="string"||typeof i=="string"?(r=mt(r),i=mt(i)):(r=Ul(r),i=Ul(i)),l=e(r,i)}return l}}function pi(e){return Zt(function(t){return t=Ae(t,pt(Q())),ie(function(r){var i=this;return e(t,function(l){return dt(l,i,r)})})})}function Fs(e,t){t=t===a?" ":mt(t);var r=t.length;if(r<2)return r?ni(t,e):t;var i=ni(t,ks(e/$r(t)));return Hr(t)?yr(Ot(i),0,e).join(""):i.slice(0,e)}function py(e,t,r,i){var l=t&Y,p=Ra(e);function f(){for(var _=-1,v=arguments.length,C=-1,S=i.length,z=I(S+v),H=this&&this!==Xe&&this instanceof f?p:e;++C<S;)z[C]=i[C];for(;v--;)z[C++]=arguments[++_];return dt(H,l?r:this,z)}return f}function sc(e){return function(t,r,i){return i&&typeof i!="number"&&Je(t,r,i)&&(r=i=a),t=tr(t),r===a?(r=t,t=0):r=tr(r),i=i===a?t<r?1:-1:tr(i),Qf(t,r,i,e)}}function js(e){return function(t,r){return typeof t=="string"&&typeof r=="string"||(t=qt(t),r=qt(r)),e(t,r)}}function nc(e,t,r,i,l,p,f,_,v,C){var S=t&R,z=S?f:a,H=S?a:f,X=S?p:a,Z=S?a:p;t|=S?E:G,t&=~(S?G:E),t&U||(t&=~(Y|F));var ne=[e,t,l,X,z,Z,H,_,v,C],J=r.apply(a,ne);return xi(e)&&_c(J,ne),J.placeholder=i,gc(J,e,t)}function mi(e){var t=Be[e];return function(r,i){if(r=qt(r),i=i==null?0:Ye(se(i),292),i&&gl(r)){var l=(be(r)+"e").split("e"),p=t(l[0]+"e"+(+l[1]+i));return l=(be(p)+"e").split("e"),+(l[0]+"e"+(+l[1]-i))}return t(r)}}var my=Vr&&1/ys(new Vr([,-0]))[1]==Oe?function(e){return new Vr(e)}:Ei;function ic(e){return function(t){var r=Ke(t);return r==ct?Wn(t):r==ut?Cm(t):wm(t,e(t))}}function Qt(e,t,r,i,l,p,f,_){var v=t&F;if(!v&&typeof e!="function")throw new Tt(m);var C=i?i.length:0;if(C||(t&=~(E|G),i=l=a),f=f===a?f:Ue(se(f),0),_=_===a?_:se(_),C-=l?l.length:0,t&G){var S=i,z=l;i=l=a}var H=v?a:hi(e),X=[e,t,r,i,l,S,z,p,f,_];if(H&&qy(X,H),e=X[0],t=X[1],r=X[2],i=X[3],l=X[4],_=X[9]=X[9]===a?v?0:e.length:Ue(X[9]-C,0),!_&&t&(R|k)&&(t&=~(R|k)),!t||t==Y)var Z=uy(e,t,r);else t==R||t==k?Z=dy(e,t,_):(t==E||t==(Y|E))&&!l.length?Z=py(e,t,r,i):Z=Ls.apply(a,X);var ne=H?jl:_c;return gc(ne(Z,X),e,t)}function oc(e,t,r,i){return e===a||Et(e,Gr[r])&&!we.call(i,r)?t:e}function lc(e,t,r,i,l,p){return Ce(e)&&Ce(t)&&(p.set(t,e),Os(e,t,a,lc,p),p.delete(t)),e}function fy(e){return Fa(e)?a:e}function cc(e,t,r,i,l,p){var f=r&B,_=e.length,v=t.length;if(_!=v&&!(f&&v>_))return!1;var C=p.get(e),S=p.get(t);if(C&&S)return C==t&&S==e;var z=-1,H=!0,X=r&P?new kr:a;for(p.set(e,t),p.set(t,e);++z<_;){var Z=e[z],ne=t[z];if(i)var J=f?i(ne,Z,z,t,e,p):i(Z,ne,z,e,t,p);if(J!==a){if(J)continue;H=!1;break}if(X){if(!Ln(t,function(le,pe){if(!ka(X,pe)&&(Z===le||l(Z,le,r,i,p)))return X.push(pe)})){H=!1;break}}else if(!(Z===ne||l(Z,ne,r,i,p))){H=!1;break}}return p.delete(e),p.delete(t),H}function yy(e,t,r,i,l,p,f){switch(r){case or:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case zt:return!(e.byteLength!=t.byteLength||!p(new ws(e),new ws(t)));case Ft:case $t:case jt:return Et(+e,+t);case Er:return e.name==t.name&&e.message==t.message;case xr:case Xt:return e==t+"";case ct:var _=Wn;case ut:var v=i&B;if(_||(_=ys),e.size!=t.size&&!v)return!1;var C=f.get(e);if(C)return C==t;i|=P,f.set(e,t);var S=cc(_(e),_(t),i,l,p,f);return f.delete(e),S;case Mr:if(Sa)return Sa.call(e)==Sa.call(t)}return!1}function hy(e,t,r,i,l,p){var f=r&B,_=fi(e),v=_.length,C=fi(t),S=C.length;if(v!=S&&!f)return!1;for(var z=v;z--;){var H=_[z];if(!(f?H in t:we.call(t,H)))return!1}var X=p.get(e),Z=p.get(t);if(X&&Z)return X==t&&Z==e;var ne=!0;p.set(e,t),p.set(t,e);for(var J=f;++z<v;){H=_[z];var le=e[H],pe=t[H];if(i)var yt=f?i(pe,le,H,t,e,p):i(le,pe,H,e,t,p);if(!(yt===a?le===pe||l(le,pe,r,i,p):yt)){ne=!1;break}J||(J=H=="constructor")}if(ne&&!J){var et=e.constructor,ht=t.constructor;et!=ht&&"constructor"in e&&"constructor"in t&&!(typeof et=="function"&&et instanceof et&&typeof ht=="function"&&ht instanceof ht)&&(ne=!1)}return p.delete(e),p.delete(t),ne}function Zt(e){return vi(yc(e,a,Ic),e+"")}function fi(e){return Cl(e,He,gi)}function yi(e){return Cl(e,nt,uc)}var hi=As?function(e){return As.get(e)}:Ei;function Bs(e){for(var t=e.name+"",r=Yr[t],i=we.call(Yr,t)?r.length:0;i--;){var l=r[i],p=l.func;if(p==null||p==e)return l.name}return t}function Jr(e){var t=we.call(d,"placeholder")?d:e;return t.placeholder}function Q(){var e=d.iteratee||Oi;return e=e===Oi?Nl:e,arguments.length?e(arguments[0],arguments[1]):e}function Us(e,t){var r=e.__data__;return Iy(t)?r[typeof t=="string"?"string":"hash"]:r.map}function _i(e){for(var t=He(e),r=t.length;r--;){var i=t[r],l=e[i];t[r]=[i,l,mc(l)]}return t}function qr(e,t){var r=Dm(e,t);return zl(r)?r:a}function _y(e){var t=we.call(e,Tr),r=e[Tr];try{e[Tr]=a;var i=!0}catch{}var l=bs.call(e);return i&&(t?e[Tr]=r:delete e[Tr]),l}var gi=$n?function(e){return e==null?[]:(e=Ie(e),lr($n(e),function(t){return hl.call(e,t)}))}:Ri,uc=$n?function(e){for(var t=[];e;)cr(t,gi(e)),e=vs(e);return t}:Ri,Ke=Ze;(Xn&&Ke(new Xn(new ArrayBuffer(1)))!=or||Aa&&Ke(new Aa)!=ct||Gn&&Ke(Gn.resolve())!=fa||Vr&&Ke(new Vr)!=ut||qa&&Ke(new qa)!=ir)&&(Ke=function(e){var t=Ze(e),r=t==xt?e.constructor:a,i=r?Cr(r):"";if(i)switch(i){case Zm:return or;case Jm:return ct;case ef:return fa;case tf:return ut;case rf:return ir}return t});function gy(e,t,r){for(var i=-1,l=r.length;++i<l;){var p=r[i],f=p.size;switch(p.type){case"drop":e+=f;break;case"dropRight":t-=f;break;case"take":t=Ye(t,e+f);break;case"takeRight":e=Ue(e,t-f);break}}return{start:e,end:t}}function by(e){var t=e.match(An);return t?t[1].split(y):[]}function dc(e,t,r){t=fr(t,e);for(var i=-1,l=t.length,p=!1;++i<l;){var f=Wt(t[i]);if(!(p=e!=null&&r(e,f)))break;e=e[f]}return p||++i!=l?p:(l=e==null?0:e.length,!!l&&Ys(l)&&Jt(f,l)&&(ae(e)||Sr(e)))}function xy(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&we.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function pc(e){return typeof e.constructor=="function"&&!La(e)?Kr(vs(e)):{}}function wy(e,t,r){var i=e.constructor;switch(t){case zt:return di(e);case Ft:case $t:return new i(+e);case or:return sy(e,r);case Fr:case jr:case wr:case ya:case ha:case _a:case ga:case ba:case xa:return Vl(e,r);case ct:return new i;case jt:case Xt:return new i(e);case xr:return ny(e);case ut:return new i;case Mr:return iy(e)}}function vy(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(Dn,`{
112
+ */$a.exports,function(s,n){(function(){var a,o="4.17.21",u=200,c="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",m="Expected a function",h="Invalid `variable` option passed into `_.template`",b="__lodash_hash_undefined__",g=500,w="__lodash_placeholder__",I=1,R=2,L=4,j=1,E=2,V=1,Q=2,G=4,F=8,T=16,z=32,H=64,$=128,ce=256,ye=512,ue=30,bt="...",St=800,Me=16,Fe=1,Y=2,he=3,Oe=1/0,Le=9007199254740991,lt=17976931348623157e292,je=NaN,te=4294967295,Te=te-1,We=te>>>1,Ht=[["ary",$],["bind",V],["bindKey",Q],["curry",F],["curryRight",T],["flip",ye],["partial",z],["partialRight",H],["rearg",ce]],Qe="[object Arguments]",nr="[object Array]",ma="[object AsyncFunction]",Ft="[object Boolean]",$t="[object Date]",Pr="[object DOMException]",Er="[object Error]",br="[object Function]",rs="[object GeneratorFunction]",ct="[object Map]",jt="[object Number]",Rr="[object Null]",xt="[object Object]",fa="[object Promise]",Lr="[object Proxy]",xr="[object RegExp]",ut="[object Set]",Xt="[object String]",Mr="[object Symbol]",wn="[object Undefined]",ir="[object WeakMap]",as="[object WeakSet]",zt="[object ArrayBuffer]",or="[object DataView]",Fr="[object Float32Array]",jr="[object Float64Array]",wr="[object Int8Array]",ya="[object Int16Array]",ha="[object Int32Array]",_a="[object Uint8Array]",ga="[object Uint8ClampedArray]",ba="[object Uint16Array]",xa="[object Uint32Array]",vn=/\b__p \+= '';/g,wa=/\b(__p \+=) '' \+/g,ss=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Gt=/&(?:amp|lt|gt|quot|#39);/g,Br=/[&<>"']/g,va=RegExp(Gt.source),ns=RegExp(Br.source),Tn=/<%-([\s\S]+?)%>/g,is=/<%([\s\S]+?)%>/g,os=/<%=([\s\S]+?)%>/g,ls=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,cs=/^\w*$/,In=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ta=/[\\^$.*+?()[\]{}|]/g,us=RegExp(Ta.source),Ia=/^\s+/,kn=/\s/,Dn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,An=/\{\n\/\* \[wrapped with (.+)\] \*/,y=/,? & /,O=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,B=/[()=,{}\[\]\/\s]/,ee=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ge=/\w*$/,de=/^[-+]0x[0-9a-f]+$/i,oe=/^0b[01]+$/i,$e=/^\[object .+?Constructor\]$/,qe=/^0o[0-7]+$/i,ze=/^(?:0|[1-9]\d*)$/,tt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Nt=/($^)/,ds=/['\n\r\u2028\u2029\\]/g,rt="\\ud800-\\udfff",Lp="\\u0300-\\u036f",Mp="\\ufe20-\\ufe2f",Fp="\\u20d0-\\u20ff",zo=Lp+Mp+Fp,No="\\u2700-\\u27bf",Oo="a-z\\xdf-\\xf6\\xf8-\\xff",jp="\\xac\\xb1\\xd7\\xf7",Bp="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Up="\\u2000-\\u206f",Wp=" \\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",Po="A-Z\\xc0-\\xd6\\xd8-\\xde",Eo="\\ufe0e\\ufe0f",Ro=jp+Bp+Up+Wp,qn="['’]",Hp="["+rt+"]",Lo="["+Ro+"]",ps="["+zo+"]",Mo="\\d+",$p="["+No+"]",Fo="["+Oo+"]",jo="[^"+rt+Ro+Mo+No+Oo+Po+"]",Cn="\\ud83c[\\udffb-\\udfff]",Xp="(?:"+ps+"|"+Cn+")",Bo="[^"+rt+"]",Sn="(?:\\ud83c[\\udde6-\\uddff]){2}",zn="[\\ud800-\\udbff][\\udc00-\\udfff]",Ur="["+Po+"]",Uo="\\u200d",Wo="(?:"+Fo+"|"+jo+")",Gp="(?:"+Ur+"|"+jo+")",Ho="(?:"+qn+"(?:d|ll|m|re|s|t|ve))?",$o="(?:"+qn+"(?:D|LL|M|RE|S|T|VE))?",Xo=Xp+"?",Go="["+Eo+"]?",Vp="(?:"+Uo+"(?:"+[Bo,Sn,zn].join("|")+")"+Go+Xo+")*",Yp="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Kp="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Vo=Go+Xo+Vp,Qp="(?:"+[$p,Sn,zn].join("|")+")"+Vo,Zp="(?:"+[Bo+ps+"?",ps,Sn,zn,Hp].join("|")+")",Jp=RegExp(qn,"g"),em=RegExp(ps,"g"),Nn=RegExp(Cn+"(?="+Cn+")|"+Zp+Vo,"g"),tm=RegExp([Ur+"?"+Fo+"+"+Ho+"(?="+[Lo,Ur,"$"].join("|")+")",Gp+"+"+$o+"(?="+[Lo,Ur+Wo,"$"].join("|")+")",Ur+"?"+Wo+"+"+Ho,Ur+"+"+$o,Kp,Yp,Mo,Qp].join("|"),"g"),rm=RegExp("["+Uo+rt+zo+Eo+"]"),am=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,sm=["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"],nm=-1,De={};De[Fr]=De[jr]=De[wr]=De[ya]=De[ha]=De[_a]=De[ga]=De[ba]=De[xa]=!0,De[Qe]=De[nr]=De[zt]=De[Ft]=De[or]=De[$t]=De[Er]=De[br]=De[ct]=De[jt]=De[xt]=De[xr]=De[ut]=De[Xt]=De[ir]=!1;var ke={};ke[Qe]=ke[nr]=ke[zt]=ke[or]=ke[Ft]=ke[$t]=ke[Fr]=ke[jr]=ke[wr]=ke[ya]=ke[ha]=ke[ct]=ke[jt]=ke[xt]=ke[xr]=ke[ut]=ke[Xt]=ke[Mr]=ke[_a]=ke[ga]=ke[ba]=ke[xa]=!0,ke[Er]=ke[br]=ke[ir]=!1;var im={À:"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"},om={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},lm={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},cm={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},um=parseFloat,dm=parseInt,Yo=typeof ra=="object"&&ra&&ra.Object===Object&&ra,pm=typeof self=="object"&&self&&self.Object===Object&&self,Xe=Yo||pm||Function("return this")(),On=n&&!n.nodeType&&n,vr=On&&!0&&s&&!s.nodeType&&s,Ko=vr&&vr.exports===On,Pn=Ko&&Yo.process,wt=function(){try{var x=vr&&vr.require&&vr.require("util").types;return x||Pn&&Pn.binding&&Pn.binding("util")}catch{}}(),Qo=wt&&wt.isArrayBuffer,Zo=wt&&wt.isDate,Jo=wt&&wt.isMap,el=wt&&wt.isRegExp,tl=wt&&wt.isSet,rl=wt&&wt.isTypedArray;function dt(x,A,k){switch(k.length){case 0:return x.call(A);case 1:return x.call(A,k[0]);case 2:return x.call(A,k[0],k[1]);case 3:return x.call(A,k[0],k[1],k[2])}return x.apply(A,k)}function mm(x,A,k,W){for(var re=-1,_e=x==null?0:x.length;++re<_e;){var Be=x[re];A(W,Be,k(Be),x)}return W}function vt(x,A){for(var k=-1,W=x==null?0:x.length;++k<W&&A(x[k],k,x)!==!1;);return x}function fm(x,A){for(var k=x==null?0:x.length;k--&&A(x[k],k,x)!==!1;);return x}function al(x,A){for(var k=-1,W=x==null?0:x.length;++k<W;)if(!A(x[k],k,x))return!1;return!0}function lr(x,A){for(var k=-1,W=x==null?0:x.length,re=0,_e=[];++k<W;){var Be=x[k];A(Be,k,x)&&(_e[re++]=Be)}return _e}function ms(x,A){var k=x==null?0:x.length;return!!k&&Wr(x,A,0)>-1}function En(x,A,k){for(var W=-1,re=x==null?0:x.length;++W<re;)if(k(A,x[W]))return!0;return!1}function Ae(x,A){for(var k=-1,W=x==null?0:x.length,re=Array(W);++k<W;)re[k]=A(x[k],k,x);return re}function cr(x,A){for(var k=-1,W=A.length,re=x.length;++k<W;)x[re+k]=A[k];return x}function Rn(x,A,k,W){var re=-1,_e=x==null?0:x.length;for(W&&_e&&(k=x[++re]);++re<_e;)k=A(k,x[re],re,x);return k}function ym(x,A,k,W){var re=x==null?0:x.length;for(W&&re&&(k=x[--re]);re--;)k=A(k,x[re],re,x);return k}function Ln(x,A){for(var k=-1,W=x==null?0:x.length;++k<W;)if(A(x[k],k,x))return!0;return!1}var hm=Mn("length");function _m(x){return x.split("")}function gm(x){return x.match(O)||[]}function sl(x,A,k){var W;return k(x,function(re,_e,Be){if(A(re,_e,Be))return W=_e,!1}),W}function fs(x,A,k,W){for(var re=x.length,_e=k+(W?1:-1);W?_e--:++_e<re;)if(A(x[_e],_e,x))return _e;return-1}function Wr(x,A,k){return A===A?Sm(x,A,k):fs(x,nl,k)}function bm(x,A,k,W){for(var re=k-1,_e=x.length;++re<_e;)if(W(x[re],A))return re;return-1}function nl(x){return x!==x}function il(x,A){var k=x==null?0:x.length;return k?jn(x,A)/k:je}function Mn(x){return function(A){return A==null?a:A[x]}}function Fn(x){return function(A){return x==null?a:x[A]}}function ol(x,A,k,W,re){return re(x,function(_e,Be,Ie){k=W?(W=!1,_e):A(k,_e,Be,Ie)}),k}function xm(x,A){var k=x.length;for(x.sort(A);k--;)x[k]=x[k].value;return x}function jn(x,A){for(var k,W=-1,re=x.length;++W<re;){var _e=A(x[W]);_e!==a&&(k=k===a?_e:k+_e)}return k}function Bn(x,A){for(var k=-1,W=Array(x);++k<x;)W[k]=A(k);return W}function wm(x,A){return Ae(A,function(k){return[k,x[k]]})}function ll(x){return x&&x.slice(0,pl(x)+1).replace(Ia,"")}function pt(x){return function(A){return x(A)}}function Un(x,A){return Ae(A,function(k){return x[k]})}function ka(x,A){return x.has(A)}function cl(x,A){for(var k=-1,W=x.length;++k<W&&Wr(A,x[k],0)>-1;);return k}function ul(x,A){for(var k=x.length;k--&&Wr(A,x[k],0)>-1;);return k}function vm(x,A){for(var k=x.length,W=0;k--;)x[k]===A&&++W;return W}var Tm=Fn(im),Im=Fn(om);function km(x){return"\\"+cm[x]}function Dm(x,A){return x==null?a:x[A]}function Hr(x){return rm.test(x)}function Am(x){return am.test(x)}function qm(x){for(var A,k=[];!(A=x.next()).done;)k.push(A.value);return k}function Wn(x){var A=-1,k=Array(x.size);return x.forEach(function(W,re){k[++A]=[re,W]}),k}function dl(x,A){return function(k){return x(A(k))}}function ur(x,A){for(var k=-1,W=x.length,re=0,_e=[];++k<W;){var Be=x[k];(Be===A||Be===w)&&(x[k]=w,_e[re++]=k)}return _e}function ys(x){var A=-1,k=Array(x.size);return x.forEach(function(W){k[++A]=W}),k}function Cm(x){var A=-1,k=Array(x.size);return x.forEach(function(W){k[++A]=[W,W]}),k}function Sm(x,A,k){for(var W=k-1,re=x.length;++W<re;)if(x[W]===A)return W;return-1}function zm(x,A,k){for(var W=k+1;W--;)if(x[W]===A)return W;return W}function $r(x){return Hr(x)?Om(x):hm(x)}function Ot(x){return Hr(x)?Pm(x):_m(x)}function pl(x){for(var A=x.length;A--&&kn.test(x.charAt(A)););return A}var Nm=Fn(lm);function Om(x){for(var A=Nn.lastIndex=0;Nn.test(x);)++A;return A}function Pm(x){return x.match(Nn)||[]}function Em(x){return x.match(tm)||[]}var Rm=function x(A){A=A==null?Xe:Xr.defaults(Xe.Object(),A,Xr.pick(Xe,sm));var k=A.Array,W=A.Date,re=A.Error,_e=A.Function,Be=A.Math,Ie=A.Object,Hn=A.RegExp,Lm=A.String,Tt=A.TypeError,hs=k.prototype,Mm=_e.prototype,Gr=Ie.prototype,_s=A["__core-js_shared__"],gs=Mm.toString,we=Gr.hasOwnProperty,Fm=0,ml=function(){var e=/[^.]+$/.exec(_s&&_s.keys&&_s.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),bs=Gr.toString,jm=gs.call(Ie),Bm=Xe._,Um=Hn("^"+gs.call(we).replace(Ta,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),xs=Ko?A.Buffer:a,dr=A.Symbol,ws=A.Uint8Array,fl=xs?xs.allocUnsafe:a,vs=dl(Ie.getPrototypeOf,Ie),yl=Ie.create,hl=Gr.propertyIsEnumerable,Ts=hs.splice,_l=dr?dr.isConcatSpreadable:a,Da=dr?dr.iterator:a,Tr=dr?dr.toStringTag:a,Is=function(){try{var e=qr(Ie,"defineProperty");return e({},"",{}),e}catch{}}(),Wm=A.clearTimeout!==Xe.clearTimeout&&A.clearTimeout,Hm=W&&W.now!==Xe.Date.now&&W.now,$m=A.setTimeout!==Xe.setTimeout&&A.setTimeout,ks=Be.ceil,Ds=Be.floor,$n=Ie.getOwnPropertySymbols,Xm=xs?xs.isBuffer:a,gl=A.isFinite,Gm=hs.join,Vm=dl(Ie.keys,Ie),Ue=Be.max,Ye=Be.min,Ym=W.now,Km=A.parseInt,bl=Be.random,Qm=hs.reverse,Xn=qr(A,"DataView"),Aa=qr(A,"Map"),Gn=qr(A,"Promise"),Vr=qr(A,"Set"),qa=qr(A,"WeakMap"),Ca=qr(Ie,"create"),As=qa&&new qa,Yr={},Zm=Cr(Xn),Jm=Cr(Aa),ef=Cr(Gn),tf=Cr(Vr),rf=Cr(qa),qs=dr?dr.prototype:a,Sa=qs?qs.valueOf:a,xl=qs?qs.toString:a;function d(e){if(Ne(e)&&!ae(e)&&!(e instanceof pe)){if(e instanceof It)return e;if(we.call(e,"__wrapped__"))return wc(e)}return new It(e)}var Kr=function(){function e(){}return function(t){if(!Ce(t))return{};if(yl)return yl(t);e.prototype=t;var r=new e;return e.prototype=a,r}}();function Cs(){}function It(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=a}d.templateSettings={escape:Tn,evaluate:is,interpolate:os,variable:"",imports:{_:d}},d.prototype=Cs.prototype,d.prototype.constructor=d,It.prototype=Kr(Cs.prototype),It.prototype.constructor=It;function pe(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=te,this.__views__=[]}function af(){var e=new pe(this.__wrapped__);return e.__actions__=at(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=at(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=at(this.__views__),e}function sf(){if(this.__filtered__){var e=new pe(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function nf(){var e=this.__wrapped__.value(),t=this.__dir__,r=ae(e),i=t<0,l=r?e.length:0,p=gy(0,l,this.__views__),f=p.start,_=p.end,v=_-f,C=i?_:f-1,S=this.__iteratees__,N=S.length,U=0,X=Ye(v,this.__takeCount__);if(!r||!i&&l==v&&X==v)return Hl(e,this.__actions__);var Z=[];e:for(;v--&&U<X;){C+=t;for(var ne=-1,J=e[C];++ne<N;){var le=S[ne],me=le.iteratee,yt=le.type,et=me(J);if(yt==Y)J=et;else if(!et){if(yt==Fe)continue e;break e}}Z[U++]=J}return Z}pe.prototype=Kr(Cs.prototype),pe.prototype.constructor=pe;function Ir(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 of(){this.__data__=Ca?Ca(null):{},this.size=0}function lf(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function cf(e){var t=this.__data__;if(Ca){var r=t[e];return r===b?a:r}return we.call(t,e)?t[e]:a}function uf(e){var t=this.__data__;return Ca?t[e]!==a:we.call(t,e)}function df(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ca&&t===a?b:t,this}Ir.prototype.clear=of,Ir.prototype.delete=lf,Ir.prototype.get=cf,Ir.prototype.has=uf,Ir.prototype.set=df;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 pf(){this.__data__=[],this.size=0}function mf(e){var t=this.__data__,r=Ss(t,e);if(r<0)return!1;var i=t.length-1;return r==i?t.pop():Ts.call(t,r,1),--this.size,!0}function ff(e){var t=this.__data__,r=Ss(t,e);return r<0?a:t[r][1]}function yf(e){return Ss(this.__data__,e)>-1}function hf(e,t){var r=this.__data__,i=Ss(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}Vt.prototype.clear=pf,Vt.prototype.delete=mf,Vt.prototype.get=ff,Vt.prototype.has=yf,Vt.prototype.set=hf;function Yt(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 _f(){this.size=0,this.__data__={hash:new Ir,map:new(Aa||Vt),string:new Ir}}function gf(e){var t=Us(this,e).delete(e);return this.size-=t?1:0,t}function bf(e){return Us(this,e).get(e)}function xf(e){return Us(this,e).has(e)}function wf(e,t){var r=Us(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}Yt.prototype.clear=_f,Yt.prototype.delete=gf,Yt.prototype.get=bf,Yt.prototype.has=xf,Yt.prototype.set=wf;function kr(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Yt;++t<r;)this.add(e[t])}function vf(e){return this.__data__.set(e,b),this}function Tf(e){return this.__data__.has(e)}kr.prototype.add=kr.prototype.push=vf,kr.prototype.has=Tf;function Pt(e){var t=this.__data__=new Vt(e);this.size=t.size}function If(){this.__data__=new Vt,this.size=0}function kf(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Df(e){return this.__data__.get(e)}function Af(e){return this.__data__.has(e)}function qf(e,t){var r=this.__data__;if(r instanceof Vt){var i=r.__data__;if(!Aa||i.length<u-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new Yt(i)}return r.set(e,t),this.size=r.size,this}Pt.prototype.clear=If,Pt.prototype.delete=kf,Pt.prototype.get=Df,Pt.prototype.has=Af,Pt.prototype.set=qf;function wl(e,t){var r=ae(e),i=!r&&Sr(e),l=!r&&!i&&hr(e),p=!r&&!i&&!l&&ea(e),f=r||i||l||p,_=f?Bn(e.length,Lm):[],v=_.length;for(var C in e)(t||we.call(e,C))&&!(f&&(C=="length"||l&&(C=="offset"||C=="parent")||p&&(C=="buffer"||C=="byteLength"||C=="byteOffset")||Jt(C,v)))&&_.push(C);return _}function vl(e){var t=e.length;return t?e[si(0,t-1)]:a}function Cf(e,t){return Ws(at(e),Dr(t,0,e.length))}function Sf(e){return Ws(at(e))}function Vn(e,t,r){(r!==a&&!Et(e[t],r)||r===a&&!(t in e))&&Kt(e,t,r)}function za(e,t,r){var i=e[t];(!(we.call(e,t)&&Et(i,r))||r===a&&!(t in e))&&Kt(e,t,r)}function Ss(e,t){for(var r=e.length;r--;)if(Et(e[r][0],t))return r;return-1}function zf(e,t,r,i){return pr(e,function(l,p,f){t(i,l,r(l),f)}),i}function Tl(e,t){return e&&Ut(t,He(t),e)}function Nf(e,t){return e&&Ut(t,nt(t),e)}function Kt(e,t,r){t=="__proto__"&&Is?Is(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Yn(e,t){for(var r=-1,i=t.length,l=k(i),p=e==null;++r<i;)l[r]=p?a:Ci(e,t[r]);return l}function Dr(e,t,r){return e===e&&(r!==a&&(e=e<=r?e:r),t!==a&&(e=e>=t?e:t)),e}function kt(e,t,r,i,l,p){var f,_=t&I,v=t&R,C=t&L;if(r&&(f=l?r(e,i,l,p):r(e)),f!==a)return f;if(!Ce(e))return e;var S=ae(e);if(S){if(f=xy(e),!_)return at(e,f)}else{var N=Ke(e),U=N==br||N==rs;if(hr(e))return Gl(e,_);if(N==xt||N==Qe||U&&!l){if(f=v||U?{}:pc(e),!_)return v?cy(e,Nf(f,e)):ly(e,Tl(f,e))}else{if(!ke[N])return l?e:{};f=wy(e,N,_)}}p||(p=new Pt);var X=p.get(e);if(X)return X;p.set(e,f),Bc(e)?e.forEach(function(J){f.add(kt(J,t,r,J,e,p))}):Fc(e)&&e.forEach(function(J,le){f.set(le,kt(J,t,r,le,e,p))});var Z=C?v?yi:fi:v?nt:He,ne=S?a:Z(e);return vt(ne||e,function(J,le){ne&&(le=J,J=e[le]),za(f,le,kt(J,t,r,le,e,p))}),f}function Of(e){var t=He(e);return function(r){return Il(r,e,t)}}function Il(e,t,r){var i=r.length;if(e==null)return!i;for(e=Ie(e);i--;){var l=r[i],p=t[l],f=e[l];if(f===a&&!(l in e)||!p(f))return!1}return!0}function kl(e,t,r){if(typeof e!="function")throw new Tt(m);return Ma(function(){e.apply(a,r)},t)}function Na(e,t,r,i){var l=-1,p=ms,f=!0,_=e.length,v=[],C=t.length;if(!_)return v;r&&(t=Ae(t,pt(r))),i?(p=En,f=!1):t.length>=u&&(p=ka,f=!1,t=new kr(t));e:for(;++l<_;){var S=e[l],N=r==null?S:r(S);if(S=i||S!==0?S:0,f&&N===N){for(var U=C;U--;)if(t[U]===N)continue e;v.push(S)}else p(t,N,i)||v.push(S)}return v}var pr=Zl(Bt),Dl=Zl(Qn,!0);function Pf(e,t){var r=!0;return pr(e,function(i,l,p){return r=!!t(i,l,p),r}),r}function zs(e,t,r){for(var i=-1,l=e.length;++i<l;){var p=e[i],f=t(p);if(f!=null&&(_===a?f===f&&!ft(f):r(f,_)))var _=f,v=p}return v}function Ef(e,t,r,i){var l=e.length;for(r=se(r),r<0&&(r=-r>l?0:l+r),i=i===a||i>l?l:se(i),i<0&&(i+=l),i=r>i?0:Wc(i);r<i;)e[r++]=t;return e}function Al(e,t){var r=[];return pr(e,function(i,l,p){t(i,l,p)&&r.push(i)}),r}function Ge(e,t,r,i,l){var p=-1,f=e.length;for(r||(r=Ty),l||(l=[]);++p<f;){var _=e[p];t>0&&r(_)?t>1?Ge(_,t-1,r,i,l):cr(l,_):i||(l[l.length]=_)}return l}var Kn=Jl(),ql=Jl(!0);function Bt(e,t){return e&&Kn(e,t,He)}function Qn(e,t){return e&&ql(e,t,He)}function Ns(e,t){return lr(t,function(r){return er(e[r])})}function Ar(e,t){t=fr(t,e);for(var r=0,i=t.length;e!=null&&r<i;)e=e[Wt(t[r++])];return r&&r==i?e:a}function Cl(e,t,r){var i=t(e);return ae(e)?i:cr(i,r(e))}function Ze(e){return e==null?e===a?wn:Rr:Tr&&Tr in Ie(e)?_y(e):Sy(e)}function Zn(e,t){return e>t}function Rf(e,t){return e!=null&&we.call(e,t)}function Lf(e,t){return e!=null&&t in Ie(e)}function Mf(e,t,r){return e>=Ye(t,r)&&e<Ue(t,r)}function Jn(e,t,r){for(var i=r?En:ms,l=e[0].length,p=e.length,f=p,_=k(p),v=1/0,C=[];f--;){var S=e[f];f&&t&&(S=Ae(S,pt(t))),v=Ye(S.length,v),_[f]=!r&&(t||l>=120&&S.length>=120)?new kr(f&&S):a}S=e[0];var N=-1,U=_[0];e:for(;++N<l&&C.length<v;){var X=S[N],Z=t?t(X):X;if(X=r||X!==0?X:0,!(U?ka(U,Z):i(C,Z,r))){for(f=p;--f;){var ne=_[f];if(!(ne?ka(ne,Z):i(e[f],Z,r)))continue e}U&&U.push(Z),C.push(X)}}return C}function Ff(e,t,r,i){return Bt(e,function(l,p,f){t(i,r(l),p,f)}),i}function Oa(e,t,r){t=fr(t,e),e=hc(e,t);var i=e==null?e:e[Wt(At(t))];return i==null?a:dt(i,e,r)}function Sl(e){return Ne(e)&&Ze(e)==Qe}function jf(e){return Ne(e)&&Ze(e)==zt}function Bf(e){return Ne(e)&&Ze(e)==$t}function Pa(e,t,r,i,l){return e===t?!0:e==null||t==null||!Ne(e)&&!Ne(t)?e!==e&&t!==t:Uf(e,t,r,i,Pa,l)}function Uf(e,t,r,i,l,p){var f=ae(e),_=ae(t),v=f?nr:Ke(e),C=_?nr:Ke(t);v=v==Qe?xt:v,C=C==Qe?xt:C;var S=v==xt,N=C==xt,U=v==C;if(U&&hr(e)){if(!hr(t))return!1;f=!0,S=!1}if(U&&!S)return p||(p=new Pt),f||ea(e)?cc(e,t,r,i,l,p):yy(e,t,v,r,i,l,p);if(!(r&j)){var X=S&&we.call(e,"__wrapped__"),Z=N&&we.call(t,"__wrapped__");if(X||Z){var ne=X?e.value():e,J=Z?t.value():t;return p||(p=new Pt),l(ne,J,r,i,p)}}return U?(p||(p=new Pt),hy(e,t,r,i,l,p)):!1}function Wf(e){return Ne(e)&&Ke(e)==ct}function ei(e,t,r,i){var l=r.length,p=l,f=!i;if(e==null)return!p;for(e=Ie(e);l--;){var _=r[l];if(f&&_[2]?_[1]!==e[_[0]]:!(_[0]in e))return!1}for(;++l<p;){_=r[l];var v=_[0],C=e[v],S=_[1];if(f&&_[2]){if(C===a&&!(v in e))return!1}else{var N=new Pt;if(i)var U=i(C,S,v,e,t,N);if(!(U===a?Pa(S,C,j|E,i,N):U))return!1}}return!0}function zl(e){if(!Ce(e)||ky(e))return!1;var t=er(e)?Um:$e;return t.test(Cr(e))}function Hf(e){return Ne(e)&&Ze(e)==xr}function $f(e){return Ne(e)&&Ke(e)==ut}function Xf(e){return Ne(e)&&Ys(e.length)&&!!De[Ze(e)]}function Nl(e){return typeof e=="function"?e:e==null?it:typeof e=="object"?ae(e)?El(e[0],e[1]):Pl(e):eu(e)}function ti(e){if(!La(e))return Vm(e);var t=[];for(var r in Ie(e))we.call(e,r)&&r!="constructor"&&t.push(r);return t}function Gf(e){if(!Ce(e))return Cy(e);var t=La(e),r=[];for(var i in e)i=="constructor"&&(t||!we.call(e,i))||r.push(i);return r}function ri(e,t){return e<t}function Ol(e,t){var r=-1,i=st(e)?k(e.length):[];return pr(e,function(l,p,f){i[++r]=t(l,p,f)}),i}function Pl(e){var t=_i(e);return t.length==1&&t[0][2]?fc(t[0][0],t[0][1]):function(r){return r===e||ei(r,e,t)}}function El(e,t){return bi(e)&&mc(t)?fc(Wt(e),t):function(r){var i=Ci(r,e);return i===a&&i===t?Si(r,e):Pa(t,i,j|E)}}function Os(e,t,r,i,l){e!==t&&Kn(t,function(p,f){if(l||(l=new Pt),Ce(p))Vf(e,t,f,r,Os,i,l);else{var _=i?i(wi(e,f),p,f+"",e,t,l):a;_===a&&(_=p),Vn(e,f,_)}},nt)}function Vf(e,t,r,i,l,p,f){var _=wi(e,r),v=wi(t,r),C=f.get(v);if(C){Vn(e,r,C);return}var S=p?p(_,v,r+"",e,t,f):a,N=S===a;if(N){var U=ae(v),X=!U&&hr(v),Z=!U&&!X&&ea(v);S=v,U||X||Z?ae(_)?S=_:Pe(_)?S=at(_):X?(N=!1,S=Gl(v,!0)):Z?(N=!1,S=Vl(v,!0)):S=[]:Fa(v)||Sr(v)?(S=_,Sr(_)?S=Hc(_):(!Ce(_)||er(_))&&(S=pc(v))):N=!1}N&&(f.set(v,S),l(S,v,i,p,f),f.delete(v)),Vn(e,r,S)}function Rl(e,t){var r=e.length;if(r)return t+=t<0?r:0,Jt(t,r)?e[t]:a}function Ll(e,t,r){t.length?t=Ae(t,function(p){return ae(p)?function(f){return Ar(f,p.length===1?p[0]:p)}:p}):t=[it];var i=-1;t=Ae(t,pt(K()));var l=Ol(e,function(p,f,_){var v=Ae(t,function(C){return C(p)});return{criteria:v,index:++i,value:p}});return xm(l,function(p,f){return oy(p,f,r)})}function Yf(e,t){return Ml(e,t,function(r,i){return Si(e,i)})}function Ml(e,t,r){for(var i=-1,l=t.length,p={};++i<l;){var f=t[i],_=Ar(e,f);r(_,f)&&Ea(p,fr(f,e),_)}return p}function Kf(e){return function(t){return Ar(t,e)}}function ai(e,t,r,i){var l=i?bm:Wr,p=-1,f=t.length,_=e;for(e===t&&(t=at(t)),r&&(_=Ae(e,pt(r)));++p<f;)for(var v=0,C=t[p],S=r?r(C):C;(v=l(_,S,v,i))>-1;)_!==e&&Ts.call(_,v,1),Ts.call(e,v,1);return e}function Fl(e,t){for(var r=e?t.length:0,i=r-1;r--;){var l=t[r];if(r==i||l!==p){var p=l;Jt(l)?Ts.call(e,l,1):oi(e,l)}}return e}function si(e,t){return e+Ds(bl()*(t-e+1))}function Qf(e,t,r,i){for(var l=-1,p=Ue(ks((t-e)/(r||1)),0),f=k(p);p--;)f[i?p:++l]=e,e+=r;return f}function ni(e,t){var r="";if(!e||t<1||t>Le)return r;do t%2&&(r+=e),t=Ds(t/2),t&&(e+=e);while(t);return r}function ie(e,t){return vi(yc(e,t,it),e+"")}function Zf(e){return vl(ta(e))}function Jf(e,t){var r=ta(e);return Ws(r,Dr(t,0,r.length))}function Ea(e,t,r,i){if(!Ce(e))return e;t=fr(t,e);for(var l=-1,p=t.length,f=p-1,_=e;_!=null&&++l<p;){var v=Wt(t[l]),C=r;if(v==="__proto__"||v==="constructor"||v==="prototype")return e;if(l!=f){var S=_[v];C=i?i(S,v,_):a,C===a&&(C=Ce(S)?S:Jt(t[l+1])?[]:{})}za(_,v,C),_=_[v]}return e}var jl=As?function(e,t){return As.set(e,t),e}:it,ey=Is?function(e,t){return Is(e,"toString",{configurable:!0,enumerable:!1,value:Ni(t),writable:!0})}:it;function ty(e){return Ws(ta(e))}function Dt(e,t,r){var i=-1,l=e.length;t<0&&(t=-t>l?0:l+t),r=r>l?l:r,r<0&&(r+=l),l=t>r?0:r-t>>>0,t>>>=0;for(var p=k(l);++i<l;)p[i]=e[i+t];return p}function ry(e,t){var r;return pr(e,function(i,l,p){return r=t(i,l,p),!r}),!!r}function Ps(e,t,r){var i=0,l=e==null?i:e.length;if(typeof t=="number"&&t===t&&l<=We){for(;i<l;){var p=i+l>>>1,f=e[p];f!==null&&!ft(f)&&(r?f<=t:f<t)?i=p+1:l=p}return l}return ii(e,t,it,r)}function ii(e,t,r,i){var l=0,p=e==null?0:e.length;if(p===0)return 0;t=r(t);for(var f=t!==t,_=t===null,v=ft(t),C=t===a;l<p;){var S=Ds((l+p)/2),N=r(e[S]),U=N!==a,X=N===null,Z=N===N,ne=ft(N);if(f)var J=i||Z;else C?J=Z&&(i||U):_?J=Z&&U&&(i||!X):v?J=Z&&U&&!X&&(i||!ne):X||ne?J=!1:J=i?N<=t:N<t;J?l=S+1:p=S}return Ye(p,Te)}function Bl(e,t){for(var r=-1,i=e.length,l=0,p=[];++r<i;){var f=e[r],_=t?t(f):f;if(!r||!Et(_,v)){var v=_;p[l++]=f===0?0:f}}return p}function Ul(e){return typeof e=="number"?e:ft(e)?je:+e}function mt(e){if(typeof e=="string")return e;if(ae(e))return Ae(e,mt)+"";if(ft(e))return xl?xl.call(e):"";var t=e+"";return t=="0"&&1/e==-Oe?"-0":t}function mr(e,t,r){var i=-1,l=ms,p=e.length,f=!0,_=[],v=_;if(r)f=!1,l=En;else if(p>=u){var C=t?null:my(e);if(C)return ys(C);f=!1,l=ka,v=new kr}else v=t?[]:_;e:for(;++i<p;){var S=e[i],N=t?t(S):S;if(S=r||S!==0?S:0,f&&N===N){for(var U=v.length;U--;)if(v[U]===N)continue e;t&&v.push(N),_.push(S)}else l(v,N,r)||(v!==_&&v.push(N),_.push(S))}return _}function oi(e,t){return t=fr(t,e),e=hc(e,t),e==null||delete e[Wt(At(t))]}function Wl(e,t,r,i){return Ea(e,t,r(Ar(e,t)),i)}function Es(e,t,r,i){for(var l=e.length,p=i?l:-1;(i?p--:++p<l)&&t(e[p],p,e););return r?Dt(e,i?0:p,i?p+1:l):Dt(e,i?p+1:0,i?l:p)}function Hl(e,t){var r=e;return r instanceof pe&&(r=r.value()),Rn(t,function(i,l){return l.func.apply(l.thisArg,cr([i],l.args))},r)}function li(e,t,r){var i=e.length;if(i<2)return i?mr(e[0]):[];for(var l=-1,p=k(i);++l<i;)for(var f=e[l],_=-1;++_<i;)_!=l&&(p[l]=Na(p[l]||f,e[_],t,r));return mr(Ge(p,1),t,r)}function $l(e,t,r){for(var i=-1,l=e.length,p=t.length,f={};++i<l;){var _=i<p?t[i]:a;r(f,e[i],_)}return f}function ci(e){return Pe(e)?e:[]}function ui(e){return typeof e=="function"?e:it}function fr(e,t){return ae(e)?e:bi(e,t)?[e]:xc(be(e))}var ay=ie;function yr(e,t,r){var i=e.length;return r=r===a?i:r,!t&&r>=i?e:Dt(e,t,r)}var Xl=Wm||function(e){return Xe.clearTimeout(e)};function Gl(e,t){if(t)return e.slice();var r=e.length,i=fl?fl(r):new e.constructor(r);return e.copy(i),i}function di(e){var t=new e.constructor(e.byteLength);return new ws(t).set(new ws(e)),t}function sy(e,t){var r=t?di(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function ny(e){var t=new e.constructor(e.source,ge.exec(e));return t.lastIndex=e.lastIndex,t}function iy(e){return Sa?Ie(Sa.call(e)):{}}function Vl(e,t){var r=t?di(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function Yl(e,t){if(e!==t){var r=e!==a,i=e===null,l=e===e,p=ft(e),f=t!==a,_=t===null,v=t===t,C=ft(t);if(!_&&!C&&!p&&e>t||p&&f&&v&&!_&&!C||i&&f&&v||!r&&v||!l)return 1;if(!i&&!p&&!C&&e<t||C&&r&&l&&!i&&!p||_&&r&&l||!f&&l||!v)return-1}return 0}function oy(e,t,r){for(var i=-1,l=e.criteria,p=t.criteria,f=l.length,_=r.length;++i<f;){var v=Yl(l[i],p[i]);if(v){if(i>=_)return v;var C=r[i];return v*(C=="desc"?-1:1)}}return e.index-t.index}function Kl(e,t,r,i){for(var l=-1,p=e.length,f=r.length,_=-1,v=t.length,C=Ue(p-f,0),S=k(v+C),N=!i;++_<v;)S[_]=t[_];for(;++l<f;)(N||l<p)&&(S[r[l]]=e[l]);for(;C--;)S[_++]=e[l++];return S}function Ql(e,t,r,i){for(var l=-1,p=e.length,f=-1,_=r.length,v=-1,C=t.length,S=Ue(p-_,0),N=k(S+C),U=!i;++l<S;)N[l]=e[l];for(var X=l;++v<C;)N[X+v]=t[v];for(;++f<_;)(U||l<p)&&(N[X+r[f]]=e[l++]);return N}function at(e,t){var r=-1,i=e.length;for(t||(t=k(i));++r<i;)t[r]=e[r];return t}function Ut(e,t,r,i){var l=!r;r||(r={});for(var p=-1,f=t.length;++p<f;){var _=t[p],v=i?i(r[_],e[_],_,r,e):a;v===a&&(v=e[_]),l?Kt(r,_,v):za(r,_,v)}return r}function ly(e,t){return Ut(e,gi(e),t)}function cy(e,t){return Ut(e,uc(e),t)}function Rs(e,t){return function(r,i){var l=ae(r)?mm:zf,p=t?t():{};return l(r,e,K(i,2),p)}}function Qr(e){return ie(function(t,r){var i=-1,l=r.length,p=l>1?r[l-1]:a,f=l>2?r[2]:a;for(p=e.length>3&&typeof p=="function"?(l--,p):a,f&&Je(r[0],r[1],f)&&(p=l<3?a:p,l=1),t=Ie(t);++i<l;){var _=r[i];_&&e(t,_,i,p)}return t})}function Zl(e,t){return function(r,i){if(r==null)return r;if(!st(r))return e(r,i);for(var l=r.length,p=t?l:-1,f=Ie(r);(t?p--:++p<l)&&i(f[p],p,f)!==!1;);return r}}function Jl(e){return function(t,r,i){for(var l=-1,p=Ie(t),f=i(t),_=f.length;_--;){var v=f[e?_:++l];if(r(p[v],v,p)===!1)break}return t}}function uy(e,t,r){var i=t&V,l=Ra(e);function p(){var f=this&&this!==Xe&&this instanceof p?l:e;return f.apply(i?r:this,arguments)}return p}function ec(e){return function(t){t=be(t);var r=Hr(t)?Ot(t):a,i=r?r[0]:t.charAt(0),l=r?yr(r,1).join(""):t.slice(1);return i[e]()+l}}function Zr(e){return function(t){return Rn(Zc(Qc(t).replace(Jp,"")),e,"")}}function Ra(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=Kr(e.prototype),i=e.apply(r,t);return Ce(i)?i:r}}function dy(e,t,r){var i=Ra(e);function l(){for(var p=arguments.length,f=k(p),_=p,v=Jr(l);_--;)f[_]=arguments[_];var C=p<3&&f[0]!==v&&f[p-1]!==v?[]:ur(f,v);if(p-=C.length,p<r)return nc(e,t,Ls,l.placeholder,a,f,C,a,a,r-p);var S=this&&this!==Xe&&this instanceof l?i:e;return dt(S,this,f)}return l}function tc(e){return function(t,r,i){var l=Ie(t);if(!st(t)){var p=K(r,3);t=He(t),r=function(_){return p(l[_],_,l)}}var f=e(t,r,i);return f>-1?l[p?t[f]:f]:a}}function rc(e){return Zt(function(t){var r=t.length,i=r,l=It.prototype.thru;for(e&&t.reverse();i--;){var p=t[i];if(typeof p!="function")throw new Tt(m);if(l&&!f&&Bs(p)=="wrapper")var f=new It([],!0)}for(i=f?i:r;++i<r;){p=t[i];var _=Bs(p),v=_=="wrapper"?hi(p):a;v&&xi(v[0])&&v[1]==($|F|z|ce)&&!v[4].length&&v[9]==1?f=f[Bs(v[0])].apply(f,v[3]):f=p.length==1&&xi(p)?f[_]():f.thru(p)}return function(){var C=arguments,S=C[0];if(f&&C.length==1&&ae(S))return f.plant(S).value();for(var N=0,U=r?t[N].apply(this,C):S;++N<r;)U=t[N].call(this,U);return U}})}function Ls(e,t,r,i,l,p,f,_,v,C){var S=t&$,N=t&V,U=t&Q,X=t&(F|T),Z=t&ye,ne=U?a:Ra(e);function J(){for(var le=arguments.length,me=k(le),yt=le;yt--;)me[yt]=arguments[yt];if(X)var et=Jr(J),ht=vm(me,et);if(i&&(me=Kl(me,i,l,X)),p&&(me=Ql(me,p,f,X)),le-=ht,X&&le<C){var Ee=ur(me,et);return nc(e,t,Ls,J.placeholder,r,me,Ee,_,v,C-le)}var Rt=N?r:this,rr=U?Rt[e]:e;return le=me.length,_?me=zy(me,_):Z&&le>1&&me.reverse(),S&&v<le&&(me.length=v),this&&this!==Xe&&this instanceof J&&(rr=ne||Ra(rr)),rr.apply(Rt,me)}return J}function ac(e,t){return function(r,i){return Ff(r,e,t(i),{})}}function Ms(e,t){return function(r,i){var l;if(r===a&&i===a)return t;if(r!==a&&(l=r),i!==a){if(l===a)return i;typeof r=="string"||typeof i=="string"?(r=mt(r),i=mt(i)):(r=Ul(r),i=Ul(i)),l=e(r,i)}return l}}function pi(e){return Zt(function(t){return t=Ae(t,pt(K())),ie(function(r){var i=this;return e(t,function(l){return dt(l,i,r)})})})}function Fs(e,t){t=t===a?" ":mt(t);var r=t.length;if(r<2)return r?ni(t,e):t;var i=ni(t,ks(e/$r(t)));return Hr(t)?yr(Ot(i),0,e).join(""):i.slice(0,e)}function py(e,t,r,i){var l=t&V,p=Ra(e);function f(){for(var _=-1,v=arguments.length,C=-1,S=i.length,N=k(S+v),U=this&&this!==Xe&&this instanceof f?p:e;++C<S;)N[C]=i[C];for(;v--;)N[C++]=arguments[++_];return dt(U,l?r:this,N)}return f}function sc(e){return function(t,r,i){return i&&typeof i!="number"&&Je(t,r,i)&&(r=i=a),t=tr(t),r===a?(r=t,t=0):r=tr(r),i=i===a?t<r?1:-1:tr(i),Qf(t,r,i,e)}}function js(e){return function(t,r){return typeof t=="string"&&typeof r=="string"||(t=qt(t),r=qt(r)),e(t,r)}}function nc(e,t,r,i,l,p,f,_,v,C){var S=t&F,N=S?f:a,U=S?a:f,X=S?p:a,Z=S?a:p;t|=S?z:H,t&=~(S?H:z),t&G||(t&=~(V|Q));var ne=[e,t,l,X,N,Z,U,_,v,C],J=r.apply(a,ne);return xi(e)&&_c(J,ne),J.placeholder=i,gc(J,e,t)}function mi(e){var t=Be[e];return function(r,i){if(r=qt(r),i=i==null?0:Ye(se(i),292),i&&gl(r)){var l=(be(r)+"e").split("e"),p=t(l[0]+"e"+(+l[1]+i));return l=(be(p)+"e").split("e"),+(l[0]+"e"+(+l[1]-i))}return t(r)}}var my=Vr&&1/ys(new Vr([,-0]))[1]==Oe?function(e){return new Vr(e)}:Ei;function ic(e){return function(t){var r=Ke(t);return r==ct?Wn(t):r==ut?Cm(t):wm(t,e(t))}}function Qt(e,t,r,i,l,p,f,_){var v=t&Q;if(!v&&typeof e!="function")throw new Tt(m);var C=i?i.length:0;if(C||(t&=~(z|H),i=l=a),f=f===a?f:Ue(se(f),0),_=_===a?_:se(_),C-=l?l.length:0,t&H){var S=i,N=l;i=l=a}var U=v?a:hi(e),X=[e,t,r,i,l,S,N,p,f,_];if(U&&qy(X,U),e=X[0],t=X[1],r=X[2],i=X[3],l=X[4],_=X[9]=X[9]===a?v?0:e.length:Ue(X[9]-C,0),!_&&t&(F|T)&&(t&=~(F|T)),!t||t==V)var Z=uy(e,t,r);else t==F||t==T?Z=dy(e,t,_):(t==z||t==(V|z))&&!l.length?Z=py(e,t,r,i):Z=Ls.apply(a,X);var ne=U?jl:_c;return gc(ne(Z,X),e,t)}function oc(e,t,r,i){return e===a||Et(e,Gr[r])&&!we.call(i,r)?t:e}function lc(e,t,r,i,l,p){return Ce(e)&&Ce(t)&&(p.set(t,e),Os(e,t,a,lc,p),p.delete(t)),e}function fy(e){return Fa(e)?a:e}function cc(e,t,r,i,l,p){var f=r&j,_=e.length,v=t.length;if(_!=v&&!(f&&v>_))return!1;var C=p.get(e),S=p.get(t);if(C&&S)return C==t&&S==e;var N=-1,U=!0,X=r&E?new kr:a;for(p.set(e,t),p.set(t,e);++N<_;){var Z=e[N],ne=t[N];if(i)var J=f?i(ne,Z,N,t,e,p):i(Z,ne,N,e,t,p);if(J!==a){if(J)continue;U=!1;break}if(X){if(!Ln(t,function(le,me){if(!ka(X,me)&&(Z===le||l(Z,le,r,i,p)))return X.push(me)})){U=!1;break}}else if(!(Z===ne||l(Z,ne,r,i,p))){U=!1;break}}return p.delete(e),p.delete(t),U}function yy(e,t,r,i,l,p,f){switch(r){case or:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case zt:return!(e.byteLength!=t.byteLength||!p(new ws(e),new ws(t)));case Ft:case $t:case jt:return Et(+e,+t);case Er:return e.name==t.name&&e.message==t.message;case xr:case Xt:return e==t+"";case ct:var _=Wn;case ut:var v=i&j;if(_||(_=ys),e.size!=t.size&&!v)return!1;var C=f.get(e);if(C)return C==t;i|=E,f.set(e,t);var S=cc(_(e),_(t),i,l,p,f);return f.delete(e),S;case Mr:if(Sa)return Sa.call(e)==Sa.call(t)}return!1}function hy(e,t,r,i,l,p){var f=r&j,_=fi(e),v=_.length,C=fi(t),S=C.length;if(v!=S&&!f)return!1;for(var N=v;N--;){var U=_[N];if(!(f?U in t:we.call(t,U)))return!1}var X=p.get(e),Z=p.get(t);if(X&&Z)return X==t&&Z==e;var ne=!0;p.set(e,t),p.set(t,e);for(var J=f;++N<v;){U=_[N];var le=e[U],me=t[U];if(i)var yt=f?i(me,le,U,t,e,p):i(le,me,U,e,t,p);if(!(yt===a?le===me||l(le,me,r,i,p):yt)){ne=!1;break}J||(J=U=="constructor")}if(ne&&!J){var et=e.constructor,ht=t.constructor;et!=ht&&"constructor"in e&&"constructor"in t&&!(typeof et=="function"&&et instanceof et&&typeof ht=="function"&&ht instanceof ht)&&(ne=!1)}return p.delete(e),p.delete(t),ne}function Zt(e){return vi(yc(e,a,Ic),e+"")}function fi(e){return Cl(e,He,gi)}function yi(e){return Cl(e,nt,uc)}var hi=As?function(e){return As.get(e)}:Ei;function Bs(e){for(var t=e.name+"",r=Yr[t],i=we.call(Yr,t)?r.length:0;i--;){var l=r[i],p=l.func;if(p==null||p==e)return l.name}return t}function Jr(e){var t=we.call(d,"placeholder")?d:e;return t.placeholder}function K(){var e=d.iteratee||Oi;return e=e===Oi?Nl:e,arguments.length?e(arguments[0],arguments[1]):e}function Us(e,t){var r=e.__data__;return Iy(t)?r[typeof t=="string"?"string":"hash"]:r.map}function _i(e){for(var t=He(e),r=t.length;r--;){var i=t[r],l=e[i];t[r]=[i,l,mc(l)]}return t}function qr(e,t){var r=Dm(e,t);return zl(r)?r:a}function _y(e){var t=we.call(e,Tr),r=e[Tr];try{e[Tr]=a;var i=!0}catch{}var l=bs.call(e);return i&&(t?e[Tr]=r:delete e[Tr]),l}var gi=$n?function(e){return e==null?[]:(e=Ie(e),lr($n(e),function(t){return hl.call(e,t)}))}:Ri,uc=$n?function(e){for(var t=[];e;)cr(t,gi(e)),e=vs(e);return t}:Ri,Ke=Ze;(Xn&&Ke(new Xn(new ArrayBuffer(1)))!=or||Aa&&Ke(new Aa)!=ct||Gn&&Ke(Gn.resolve())!=fa||Vr&&Ke(new Vr)!=ut||qa&&Ke(new qa)!=ir)&&(Ke=function(e){var t=Ze(e),r=t==xt?e.constructor:a,i=r?Cr(r):"";if(i)switch(i){case Zm:return or;case Jm:return ct;case ef:return fa;case tf:return ut;case rf:return ir}return t});function gy(e,t,r){for(var i=-1,l=r.length;++i<l;){var p=r[i],f=p.size;switch(p.type){case"drop":e+=f;break;case"dropRight":t-=f;break;case"take":t=Ye(t,e+f);break;case"takeRight":e=Ue(e,t-f);break}}return{start:e,end:t}}function by(e){var t=e.match(An);return t?t[1].split(y):[]}function dc(e,t,r){t=fr(t,e);for(var i=-1,l=t.length,p=!1;++i<l;){var f=Wt(t[i]);if(!(p=e!=null&&r(e,f)))break;e=e[f]}return p||++i!=l?p:(l=e==null?0:e.length,!!l&&Ys(l)&&Jt(f,l)&&(ae(e)||Sr(e)))}function xy(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&we.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function pc(e){return typeof e.constructor=="function"&&!La(e)?Kr(vs(e)):{}}function wy(e,t,r){var i=e.constructor;switch(t){case zt:return di(e);case Ft:case $t:return new i(+e);case or:return sy(e,r);case Fr:case jr:case wr:case ya:case ha:case _a:case ga:case ba:case xa:return Vl(e,r);case ct:return new i;case jt:case Xt:return new i(e);case xr:return ny(e);case ut:return new i;case Mr:return iy(e)}}function vy(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(Dn,`{
113
113
  /* [wrapped with `+t+`] */
114
- `)}function Ty(e){return ae(e)||Sr(e)||!!(_l&&e&&e[_l])}function Jt(e,t){var r=typeof e;return t=t??Le,!!t&&(r=="number"||r!="symbol"&&ze.test(e))&&e>-1&&e%1==0&&e<t}function Je(e,t,r){if(!Ce(r))return!1;var i=typeof t;return(i=="number"?st(r)&&Jt(t,r.length):i=="string"&&t in r)?Et(r[t],e):!1}function bi(e,t){if(ae(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||ft(e)?!0:cs.test(e)||!ls.test(e)||t!=null&&e in Ie(t)}function Iy(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function xi(e){var t=Bs(e),r=d[t];if(typeof r!="function"||!(t in de.prototype))return!1;if(e===r)return!0;var i=hi(r);return!!i&&e===i[0]}function ky(e){return!!ml&&ml in e}var Dy=_s?er:Li;function La(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Gr;return e===r}function mc(e){return e===e&&!Ce(e)}function fc(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==a||e in Ie(r))}}function Ay(e){var t=Gs(e,function(i){return r.size===g&&r.clear(),i}),r=t.cache;return t}function qy(e,t){var r=e[1],i=t[1],l=r|i,p=l<(Y|F|V),f=i==V&&r==R||i==V&&r==he&&e[7].length<=t[8]||i==(V|he)&&t[7].length<=t[8]&&r==R;if(!(p||f))return e;i&Y&&(e[2]=t[2],l|=r&Y?0:U);var _=t[3];if(_){var v=e[3];e[3]=v?Kl(v,_,t[4]):_,e[4]=v?ur(e[3],w):t[4]}return _=t[5],_&&(v=e[5],e[5]=v?Ql(v,_,t[6]):_,e[6]=v?ur(e[5],w):t[6]),_=t[7],_&&(e[7]=_),i&V&&(e[8]=e[8]==null?t[8]:Ye(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=l,e}function Cy(e){var t=[];if(e!=null)for(var r in Ie(e))t.push(r);return t}function Sy(e){return bs.call(e)}function yc(e,t,r){return t=Ue(t===a?e.length-1:t,0),function(){for(var i=arguments,l=-1,p=Ue(i.length-t,0),f=I(p);++l<p;)f[l]=i[t+l];l=-1;for(var _=I(t+1);++l<t;)_[l]=i[l];return _[t]=r(f),dt(e,this,_)}}function hc(e,t){return t.length<2?e:Ar(e,Dt(t,0,-1))}function zy(e,t){for(var r=e.length,i=Ye(t.length,r),l=at(e);i--;){var p=t[i];e[i]=Jt(p,r)?l[p]:a}return e}function wi(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var _c=bc(jl),Ma=$m||function(e,t){return Xe.setTimeout(e,t)},vi=bc(ey);function gc(e,t,r){var i=t+"";return vi(e,vy(i,Ny(by(i),r)))}function bc(e){var t=0,r=0;return function(){var i=Ym(),l=Me-(i-r);if(r=i,l>0){if(++t>=St)return arguments[0]}else t=0;return e.apply(a,arguments)}}function Ws(e,t){var r=-1,i=e.length,l=i-1;for(t=t===a?i:t;++r<t;){var p=si(r,l),f=e[p];e[p]=e[r],e[r]=f}return e.length=t,e}var xc=Ay(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(In,function(r,i,l,p){t.push(l?p.replace(ee,"$1"):i||r)}),t});function Wt(e){if(typeof e=="string"||ft(e))return e;var t=e+"";return t=="0"&&1/e==-Oe?"-0":t}function Cr(e){if(e!=null){try{return gs.call(e)}catch{}try{return e+""}catch{}}return""}function Ny(e,t){return vt(Ht,function(r){var i="_."+r[0];t&r[1]&&!ms(e,i)&&e.push(i)}),e.sort()}function wc(e){if(e instanceof de)return e.clone();var t=new It(e.__wrapped__,e.__chain__);return t.__actions__=at(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Oy(e,t,r){(r?Je(e,t,r):t===a)?t=1:t=Ue(se(t),0);var i=e==null?0:e.length;if(!i||t<1)return[];for(var l=0,p=0,f=I(ks(i/t));l<i;)f[p++]=Dt(e,l,l+=t);return f}function Py(e){for(var t=-1,r=e==null?0:e.length,i=0,l=[];++t<r;){var p=e[t];p&&(l[i++]=p)}return l}function Ey(){var e=arguments.length;if(!e)return[];for(var t=I(e-1),r=arguments[0],i=e;i--;)t[i-1]=arguments[i];return cr(ae(r)?at(r):[r],Ge(t,1))}var Ry=ie(function(e,t){return Pe(e)?Na(e,Ge(t,1,Pe,!0)):[]}),Ly=ie(function(e,t){var r=At(t);return Pe(r)&&(r=a),Pe(e)?Na(e,Ge(t,1,Pe,!0),Q(r,2)):[]}),My=ie(function(e,t){var r=At(t);return Pe(r)&&(r=a),Pe(e)?Na(e,Ge(t,1,Pe,!0),a,r):[]});function Fy(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===a?1:se(t),Dt(e,t<0?0:t,i)):[]}function jy(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===a?1:se(t),t=i-t,Dt(e,0,t<0?0:t)):[]}function By(e,t){return e&&e.length?Es(e,Q(t,3),!0,!0):[]}function Uy(e,t){return e&&e.length?Es(e,Q(t,3),!0):[]}function Wy(e,t,r,i){var l=e==null?0:e.length;return l?(r&&typeof r!="number"&&Je(e,t,r)&&(r=0,i=l),Ef(e,t,r,i)):[]}function vc(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var l=r==null?0:se(r);return l<0&&(l=Ue(i+l,0)),fs(e,Q(t,3),l)}function Tc(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var l=i-1;return r!==a&&(l=se(r),l=r<0?Ue(i+l,0):Ye(l,i-1)),fs(e,Q(t,3),l,!0)}function Ic(e){var t=e==null?0:e.length;return t?Ge(e,1):[]}function Hy(e){var t=e==null?0:e.length;return t?Ge(e,Oe):[]}function $y(e,t){var r=e==null?0:e.length;return r?(t=t===a?1:se(t),Ge(e,t)):[]}function Xy(e){for(var t=-1,r=e==null?0:e.length,i={};++t<r;){var l=e[t];i[l[0]]=l[1]}return i}function kc(e){return e&&e.length?e[0]:a}function Gy(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var l=r==null?0:se(r);return l<0&&(l=Ue(i+l,0)),Wr(e,t,l)}function Vy(e){var t=e==null?0:e.length;return t?Dt(e,0,-1):[]}var Yy=ie(function(e){var t=Ae(e,ci);return t.length&&t[0]===e[0]?Jn(t):[]}),Ky=ie(function(e){var t=At(e),r=Ae(e,ci);return t===At(r)?t=a:r.pop(),r.length&&r[0]===e[0]?Jn(r,Q(t,2)):[]}),Qy=ie(function(e){var t=At(e),r=Ae(e,ci);return t=typeof t=="function"?t:a,t&&r.pop(),r.length&&r[0]===e[0]?Jn(r,a,t):[]});function Zy(e,t){return e==null?"":Gm.call(e,t)}function At(e){var t=e==null?0:e.length;return t?e[t-1]:a}function Jy(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var l=i;return r!==a&&(l=se(r),l=l<0?Ue(i+l,0):Ye(l,i-1)),t===t?zm(e,t,l):fs(e,nl,l,!0)}function eh(e,t){return e&&e.length?Rl(e,se(t)):a}var th=ie(Dc);function Dc(e,t){return e&&e.length&&t&&t.length?ai(e,t):e}function rh(e,t,r){return e&&e.length&&t&&t.length?ai(e,t,Q(r,2)):e}function ah(e,t,r){return e&&e.length&&t&&t.length?ai(e,t,a,r):e}var sh=Zt(function(e,t){var r=e==null?0:e.length,i=Yn(e,t);return Fl(e,Ae(t,function(l){return Jt(l,r)?+l:l}).sort(Yl)),i});function nh(e,t){var r=[];if(!(e&&e.length))return r;var i=-1,l=[],p=e.length;for(t=Q(t,3);++i<p;){var f=e[i];t(f,i,e)&&(r.push(f),l.push(i))}return Fl(e,l),r}function Ti(e){return e==null?e:Qm.call(e)}function ih(e,t,r){var i=e==null?0:e.length;return i?(r&&typeof r!="number"&&Je(e,t,r)?(t=0,r=i):(t=t==null?0:se(t),r=r===a?i:se(r)),Dt(e,t,r)):[]}function oh(e,t){return Ps(e,t)}function lh(e,t,r){return ii(e,t,Q(r,2))}function ch(e,t){var r=e==null?0:e.length;if(r){var i=Ps(e,t);if(i<r&&Et(e[i],t))return i}return-1}function uh(e,t){return Ps(e,t,!0)}function dh(e,t,r){return ii(e,t,Q(r,2),!0)}function ph(e,t){var r=e==null?0:e.length;if(r){var i=Ps(e,t,!0)-1;if(Et(e[i],t))return i}return-1}function mh(e){return e&&e.length?Bl(e):[]}function fh(e,t){return e&&e.length?Bl(e,Q(t,2)):[]}function yh(e){var t=e==null?0:e.length;return t?Dt(e,1,t):[]}function hh(e,t,r){return e&&e.length?(t=r||t===a?1:se(t),Dt(e,0,t<0?0:t)):[]}function _h(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===a?1:se(t),t=i-t,Dt(e,t<0?0:t,i)):[]}function gh(e,t){return e&&e.length?Es(e,Q(t,3),!1,!0):[]}function bh(e,t){return e&&e.length?Es(e,Q(t,3)):[]}var xh=ie(function(e){return mr(Ge(e,1,Pe,!0))}),wh=ie(function(e){var t=At(e);return Pe(t)&&(t=a),mr(Ge(e,1,Pe,!0),Q(t,2))}),vh=ie(function(e){var t=At(e);return t=typeof t=="function"?t:a,mr(Ge(e,1,Pe,!0),a,t)});function Th(e){return e&&e.length?mr(e):[]}function Ih(e,t){return e&&e.length?mr(e,Q(t,2)):[]}function kh(e,t){return t=typeof t=="function"?t:a,e&&e.length?mr(e,a,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}),Bn(t,function(r){return Ae(e,Mn(r))})}function Ac(e,t){if(!(e&&e.length))return[];var r=Ii(e);return t==null?r:Ae(r,function(i){return dt(t,a,i)})}var Dh=ie(function(e,t){return Pe(e)?Na(e,t):[]}),Ah=ie(function(e){return li(lr(e,Pe))}),qh=ie(function(e){var t=At(e);return Pe(t)&&(t=a),li(lr(e,Pe),Q(t,2))}),Ch=ie(function(e){var t=At(e);return t=typeof t=="function"?t:a,li(lr(e,Pe),a,t)}),Sh=ie(Ii);function zh(e,t){return $l(e||[],t||[],za)}function Nh(e,t){return $l(e||[],t||[],Ea)}var Oh=ie(function(e){var t=e.length,r=t>1?e[t-1]:a;return r=typeof r=="function"?(e.pop(),r):a,Ac(e,r)});function qc(e){var t=d(e);return t.__chain__=!0,t}function Ph(e,t){return t(e),e}function Hs(e,t){return t(e)}var Eh=Zt(function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,l=function(p){return Yn(p,e)};return t>1||this.__actions__.length||!(i instanceof de)||!Jt(r)?this.thru(l):(i=i.slice(r,+r+(t?1:0)),i.__actions__.push({func:Hs,args:[l],thisArg:a}),new It(i,this.__chain__).thru(function(p){return t&&!p.length&&p.push(a),p}))});function Rh(){return qc(this)}function Lh(){return new It(this.value(),this.__chain__)}function Mh(){this.__values__===a&&(this.__values__=Uc(this.value()));var e=this.__index__>=this.__values__.length,t=e?a:this.__values__[this.__index__++];return{done:e,value:t}}function Fh(){return this}function jh(e){for(var t,r=this;r instanceof Cs;){var i=wc(r);i.__index__=0,i.__values__=a,t?l.__wrapped__=i:t=i;var l=i;r=r.__wrapped__}return l.__wrapped__=e,t}function Bh(){var e=this.__wrapped__;if(e instanceof de){var t=e;return this.__actions__.length&&(t=new de(this)),t=t.reverse(),t.__actions__.push({func:Hs,args:[Ti],thisArg:a}),new It(t,this.__chain__)}return this.thru(Ti)}function Uh(){return Hl(this.__wrapped__,this.__actions__)}var Wh=Rs(function(e,t,r){we.call(e,r)?++e[r]:Kt(e,r,1)});function Hh(e,t,r){var i=ae(e)?al:Pf;return r&&Je(e,t,r)&&(t=a),i(e,Q(t,3))}function $h(e,t){var r=ae(e)?lr:Al;return r(e,Q(t,3))}var Xh=tc(vc),Gh=tc(Tc);function Vh(e,t){return Ge($s(e,t),1)}function Yh(e,t){return Ge($s(e,t),Oe)}function Kh(e,t,r){return r=r===a?1:se(r),Ge($s(e,t),r)}function Cc(e,t){var r=ae(e)?vt:pr;return r(e,Q(t,3))}function Sc(e,t){var r=ae(e)?fm:Dl;return r(e,Q(t,3))}var Qh=Rs(function(e,t,r){we.call(e,r)?e[r].push(t):Kt(e,r,[t])});function Zh(e,t,r,i){e=st(e)?e:ta(e),r=r&&!i?se(r):0;var l=e.length;return r<0&&(r=Ue(l+r,0)),Ks(e)?r<=l&&e.indexOf(t,r)>-1:!!l&&Wr(e,t,r)>-1}var Jh=ie(function(e,t,r){var i=-1,l=typeof t=="function",p=st(e)?I(e.length):[];return pr(e,function(f){p[++i]=l?dt(t,f,r):Oa(f,t,r)}),p}),e_=Rs(function(e,t,r){Kt(e,r,t)});function $s(e,t){var r=ae(e)?Ae:Ol;return r(e,Q(t,3))}function t_(e,t,r,i){return e==null?[]:(ae(t)||(t=t==null?[]:[t]),r=i?a:r,ae(r)||(r=r==null?[]:[r]),Ll(e,t,r))}var r_=Rs(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});function a_(e,t,r){var i=ae(e)?Rn:ol,l=arguments.length<3;return i(e,Q(t,4),r,l,pr)}function s_(e,t,r){var i=ae(e)?ym:ol,l=arguments.length<3;return i(e,Q(t,4),r,l,Dl)}function n_(e,t){var r=ae(e)?lr:Al;return r(e,Vs(Q(t,3)))}function i_(e){var t=ae(e)?vl:Zf;return t(e)}function o_(e,t,r){(r?Je(e,t,r):t===a)?t=1:t=se(t);var i=ae(e)?Cf:Jf;return i(e,t)}function l_(e){var t=ae(e)?Sf:ty;return t(e)}function c_(e){if(e==null)return 0;if(st(e))return Ks(e)?$r(e):e.length;var t=Ke(e);return t==ct||t==ut?e.size:ti(e).length}function u_(e,t,r){var i=ae(e)?Ln:ry;return r&&Je(e,t,r)&&(t=a),i(e,Q(t,3))}var d_=ie(function(e,t){if(e==null)return[];var r=t.length;return r>1&&Je(e,t[0],t[1])?t=[]:r>2&&Je(t[0],t[1],t[2])&&(t=[t[0]]),Ll(e,Ge(t,1),[])}),Xs=Hm||function(){return Xe.Date.now()};function p_(e,t){if(typeof t!="function")throw new Tt(m);return e=se(e),function(){if(--e<1)return t.apply(this,arguments)}}function zc(e,t,r){return t=r?a:t,t=e&&t==null?e.length:t,Qt(e,V,a,a,a,a,t)}function Nc(e,t){var r;if(typeof t!="function")throw new Tt(m);return e=se(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=a),r}}var ki=ie(function(e,t,r){var i=Y;if(r.length){var l=ur(r,Jr(ki));i|=E}return Qt(e,i,t,r,l)}),Oc=ie(function(e,t,r){var i=Y|F;if(r.length){var l=ur(r,Jr(Oc));i|=E}return Qt(t,i,e,r,l)});function Pc(e,t,r){t=r?a:t;var i=Qt(e,R,a,a,a,a,a,t);return i.placeholder=Pc.placeholder,i}function Ec(e,t,r){t=r?a:t;var i=Qt(e,k,a,a,a,a,a,t);return i.placeholder=Ec.placeholder,i}function Rc(e,t,r){var i,l,p,f,_,v,C=0,S=!1,z=!1,H=!0;if(typeof e!="function")throw new Tt(m);t=qt(t)||0,Ce(r)&&(S=!!r.leading,z="maxWait"in r,p=z?Ue(qt(r.maxWait)||0,t):p,H="trailing"in r?!!r.trailing:H);function X(Ee){var Rt=i,rr=l;return i=l=a,C=Ee,f=e.apply(rr,Rt),f}function Z(Ee){return C=Ee,_=Ma(le,t),S?X(Ee):f}function ne(Ee){var Rt=Ee-v,rr=Ee-C,tu=t-Rt;return z?Ye(tu,p-rr):tu}function J(Ee){var Rt=Ee-v,rr=Ee-C;return v===a||Rt>=t||Rt<0||z&&rr>=p}function le(){var Ee=Xs();if(J(Ee))return pe(Ee);_=Ma(le,ne(Ee))}function pe(Ee){return _=a,H&&i?X(Ee):(i=l=a,f)}function yt(){_!==a&&Xl(_),C=0,i=v=l=_=a}function et(){return _===a?f:pe(Xs())}function ht(){var Ee=Xs(),Rt=J(Ee);if(i=arguments,l=this,v=Ee,Rt){if(_===a)return Z(v);if(z)return Xl(_),_=Ma(le,t),X(v)}return _===a&&(_=Ma(le,t)),f}return ht.cancel=yt,ht.flush=et,ht}var m_=ie(function(e,t){return kl(e,1,t)}),f_=ie(function(e,t,r){return kl(e,qt(t)||0,r)});function y_(e){return Qt(e,_e)}function Gs(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Tt(m);var r=function(){var i=arguments,l=t?t.apply(this,i):i[0],p=r.cache;if(p.has(l))return p.get(l);var f=e.apply(this,i);return r.cache=p.set(l,f)||p,f};return r.cache=new(Gs.Cache||Yt),r}Gs.Cache=Yt;function Vs(e){if(typeof e!="function")throw new Tt(m);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 h_(e){return Nc(2,e)}var __=ay(function(e,t){t=t.length==1&&ae(t[0])?Ae(t[0],pt(Q())):Ae(Ge(t,1),pt(Q()));var r=t.length;return ie(function(i){for(var l=-1,p=Ye(i.length,r);++l<p;)i[l]=t[l].call(this,i[l]);return dt(e,this,i)})}),Di=ie(function(e,t){var r=ur(t,Jr(Di));return Qt(e,E,a,t,r)}),Lc=ie(function(e,t){var r=ur(t,Jr(Lc));return Qt(e,G,a,t,r)}),g_=Zt(function(e,t){return Qt(e,he,a,a,a,t)});function b_(e,t){if(typeof e!="function")throw new Tt(m);return t=t===a?t:se(t),ie(e,t)}function x_(e,t){if(typeof e!="function")throw new Tt(m);return t=t==null?0:Ue(se(t),0),ie(function(r){var i=r[t],l=yr(r,0,t);return i&&cr(l,i),dt(e,this,l)})}function w_(e,t,r){var i=!0,l=!0;if(typeof e!="function")throw new Tt(m);return Ce(r)&&(i="leading"in r?!!r.leading:i,l="trailing"in r?!!r.trailing:l),Rc(e,t,{leading:i,maxWait:t,trailing:l})}function v_(e){return zc(e,1)}function T_(e,t){return Di(ui(t),e)}function I_(){if(!arguments.length)return[];var e=arguments[0];return ae(e)?e:[e]}function k_(e){return kt(e,M)}function D_(e,t){return t=typeof t=="function"?t:a,kt(e,M,t)}function A_(e){return kt(e,T|M)}function q_(e,t){return t=typeof t=="function"?t:a,kt(e,T|M,t)}function C_(e,t){return t==null||Il(e,t,He(t))}function Et(e,t){return e===t||e!==e&&t!==t}var S_=js(Zn),z_=js(function(e,t){return e>=t}),Sr=Sl(function(){return arguments}())?Sl:function(e){return Ne(e)&&we.call(e,"callee")&&!hl.call(e,"callee")},ae=I.isArray,N_=Qo?pt(Qo):jf;function st(e){return e!=null&&Ys(e.length)&&!er(e)}function Pe(e){return Ne(e)&&st(e)}function O_(e){return e===!0||e===!1||Ne(e)&&Ze(e)==Ft}var hr=Xm||Li,P_=Zo?pt(Zo):Bf;function E_(e){return Ne(e)&&e.nodeType===1&&!Fa(e)}function R_(e){if(e==null)return!0;if(st(e)&&(ae(e)||typeof e=="string"||typeof e.splice=="function"||hr(e)||ea(e)||Sr(e)))return!e.length;var t=Ke(e);if(t==ct||t==ut)return!e.size;if(La(e))return!ti(e).length;for(var r in e)if(we.call(e,r))return!1;return!0}function L_(e,t){return Pa(e,t)}function M_(e,t,r){r=typeof r=="function"?r:a;var i=r?r(e,t):a;return i===a?Pa(e,t,a,r):!!i}function Ai(e){if(!Ne(e))return!1;var t=Ze(e);return t==Er||t==Pr||typeof e.message=="string"&&typeof e.name=="string"&&!Fa(e)}function F_(e){return typeof e=="number"&&gl(e)}function er(e){if(!Ce(e))return!1;var t=Ze(e);return t==br||t==rs||t==ma||t==Lr}function Mc(e){return typeof e=="number"&&e==se(e)}function Ys(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Le}function Ce(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Ne(e){return e!=null&&typeof e=="object"}var Fc=Jo?pt(Jo):Wf;function j_(e,t){return e===t||ei(e,t,_i(t))}function B_(e,t,r){return r=typeof r=="function"?r:a,ei(e,t,_i(t),r)}function U_(e){return jc(e)&&e!=+e}function W_(e){if(Dy(e))throw new re(c);return zl(e)}function H_(e){return e===null}function $_(e){return e==null}function jc(e){return typeof e=="number"||Ne(e)&&Ze(e)==jt}function Fa(e){if(!Ne(e)||Ze(e)!=xt)return!1;var t=vs(e);if(t===null)return!0;var r=we.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&gs.call(r)==jm}var qi=el?pt(el):Hf;function X_(e){return Mc(e)&&e>=-Le&&e<=Le}var Bc=tl?pt(tl):$f;function Ks(e){return typeof e=="string"||!ae(e)&&Ne(e)&&Ze(e)==Xt}function ft(e){return typeof e=="symbol"||Ne(e)&&Ze(e)==Mr}var ea=rl?pt(rl):Xf;function G_(e){return e===a}function V_(e){return Ne(e)&&Ke(e)==ir}function Y_(e){return Ne(e)&&Ze(e)==as}var K_=js(ri),Q_=js(function(e,t){return e<=t});function Uc(e){if(!e)return[];if(st(e))return Ks(e)?Ot(e):at(e);if(Da&&e[Da])return qm(e[Da]());var t=Ke(e),r=t==ct?Wn:t==ut?ys:ta;return r(e)}function tr(e){if(!e)return e===0?e:0;if(e=qt(e),e===Oe||e===-Oe){var t=e<0?-1:1;return t*lt}return e===e?e:0}function se(e){var t=tr(e),r=t%1;return t===t?r?t-r:t:0}function Wc(e){return e?Dr(se(e),0,te):0}function qt(e){if(typeof e=="number")return e;if(ft(e))return je;if(Ce(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ce(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=ll(e);var r=oe.test(e);return r||qe.test(e)?dm(e.slice(2),r?2:8):ue.test(e)?je:+e}function Hc(e){return Ut(e,nt(e))}function Z_(e){return e?Dr(se(e),-Le,Le):e===0?e:0}function be(e){return e==null?"":mt(e)}var J_=Qr(function(e,t){if(La(t)||st(t)){Ut(t,He(t),e);return}for(var r in t)we.call(t,r)&&za(e,r,t[r])}),$c=Qr(function(e,t){Ut(t,nt(t),e)}),Qs=Qr(function(e,t,r,i){Ut(t,nt(t),e,i)}),eg=Qr(function(e,t,r,i){Ut(t,He(t),e,i)}),tg=Zt(Yn);function rg(e,t){var r=Kr(e);return t==null?r:Tl(r,t)}var ag=ie(function(e,t){e=Ie(e);var r=-1,i=t.length,l=i>2?t[2]:a;for(l&&Je(t[0],t[1],l)&&(i=1);++r<i;)for(var p=t[r],f=nt(p),_=-1,v=f.length;++_<v;){var C=f[_],S=e[C];(S===a||Et(S,Gr[C])&&!we.call(e,C))&&(e[C]=p[C])}return e}),sg=ie(function(e){return e.push(a,lc),dt(Xc,a,e)});function ng(e,t){return sl(e,Q(t,3),Bt)}function ig(e,t){return sl(e,Q(t,3),Qn)}function og(e,t){return e==null?e:Kn(e,Q(t,3),nt)}function lg(e,t){return e==null?e:ql(e,Q(t,3),nt)}function cg(e,t){return e&&Bt(e,Q(t,3))}function ug(e,t){return e&&Qn(e,Q(t,3))}function dg(e){return e==null?[]:Ns(e,He(e))}function pg(e){return e==null?[]:Ns(e,nt(e))}function Ci(e,t,r){var i=e==null?a:Ar(e,t);return i===a?r:i}function mg(e,t){return e!=null&&dc(e,t,Rf)}function Si(e,t){return e!=null&&dc(e,t,Lf)}var fg=ac(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=bs.call(t)),e[t]=r},Ni(it)),yg=ac(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=bs.call(t)),we.call(e,t)?e[t].push(r):e[t]=[r]},Q),hg=ie(Oa);function He(e){return st(e)?wl(e):ti(e)}function nt(e){return st(e)?wl(e,!0):Gf(e)}function _g(e,t){var r={};return t=Q(t,3),Bt(e,function(i,l,p){Kt(r,t(i,l,p),i)}),r}function gg(e,t){var r={};return t=Q(t,3),Bt(e,function(i,l,p){Kt(r,l,t(i,l,p))}),r}var bg=Qr(function(e,t,r){Os(e,t,r)}),Xc=Qr(function(e,t,r,i){Os(e,t,r,i)}),xg=Zt(function(e,t){var r={};if(e==null)return r;var i=!1;t=Ae(t,function(p){return p=fr(p,e),i||(i=p.length>1),p}),Ut(e,yi(e),r),i&&(r=kt(r,T|L|M,fy));for(var l=t.length;l--;)oi(r,t[l]);return r});function wg(e,t){return Gc(e,Vs(Q(t)))}var vg=Zt(function(e,t){return e==null?{}:Yf(e,t)});function Gc(e,t){if(e==null)return{};var r=Ae(yi(e),function(i){return[i]});return t=Q(t),Ml(e,r,function(i,l){return t(i,l[0])})}function Tg(e,t,r){t=fr(t,e);var i=-1,l=t.length;for(l||(l=1,e=a);++i<l;){var p=e==null?a:e[Wt(t[i])];p===a&&(i=l,p=r),e=er(p)?p.call(e):p}return e}function Ig(e,t,r){return e==null?e:Ea(e,t,r)}function kg(e,t,r,i){return i=typeof i=="function"?i:a,e==null?e:Ea(e,t,r,i)}var Vc=ic(He),Yc=ic(nt);function Dg(e,t,r){var i=ae(e),l=i||hr(e)||ea(e);if(t=Q(t,4),r==null){var p=e&&e.constructor;l?r=i?new p:[]:Ce(e)?r=er(p)?Kr(vs(e)):{}:r={}}return(l?vt:Bt)(e,function(f,_,v){return t(r,f,_,v)}),r}function Ag(e,t){return e==null?!0:oi(e,t)}function qg(e,t,r){return e==null?e:Wl(e,t,ui(r))}function Cg(e,t,r,i){return i=typeof i=="function"?i:a,e==null?e:Wl(e,t,ui(r),i)}function ta(e){return e==null?[]:Un(e,He(e))}function Sg(e){return e==null?[]:Un(e,nt(e))}function zg(e,t,r){return r===a&&(r=t,t=a),r!==a&&(r=qt(r),r=r===r?r:0),t!==a&&(t=qt(t),t=t===t?t:0),Dr(qt(e),t,r)}function Ng(e,t,r){return t=tr(t),r===a?(r=t,t=0):r=tr(r),e=qt(e),Mf(e,t,r)}function Og(e,t,r){if(r&&typeof r!="boolean"&&Je(e,t,r)&&(t=r=a),r===a&&(typeof t=="boolean"?(r=t,t=a):typeof e=="boolean"&&(r=e,e=a)),e===a&&t===a?(e=0,t=1):(e=tr(e),t===a?(t=e,e=0):t=tr(t)),e>t){var i=e;e=t,t=i}if(r||e%1||t%1){var l=bl();return Ye(e+l*(t-e+um("1e-"+((l+"").length-1))),t)}return si(e,t)}var Pg=Zr(function(e,t,r){return t=t.toLowerCase(),e+(r?Kc(t):t)});function Kc(e){return zi(be(e).toLowerCase())}function Qc(e){return e=be(e),e&&e.replace(tt,Tm).replace(em,"")}function Eg(e,t,r){e=be(e),t=mt(t);var i=e.length;r=r===a?i:Dr(se(r),0,i);var l=r;return r-=t.length,r>=0&&e.slice(r,l)==t}function Rg(e){return e=be(e),e&&ns.test(e)?e.replace(Br,Im):e}function Lg(e){return e=be(e),e&&us.test(e)?e.replace(Ta,"\\$&"):e}var Mg=Zr(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),Fg=Zr(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),jg=ec("toLowerCase");function Bg(e,t,r){e=be(e),t=se(t);var i=t?$r(e):0;if(!t||i>=t)return e;var l=(t-i)/2;return Fs(Ds(l),r)+e+Fs(ks(l),r)}function Ug(e,t,r){e=be(e),t=se(t);var i=t?$r(e):0;return t&&i<t?e+Fs(t-i,r):e}function Wg(e,t,r){e=be(e),t=se(t);var i=t?$r(e):0;return t&&i<t?Fs(t-i,r)+e:e}function Hg(e,t,r){return r||t==null?t=0:t&&(t=+t),Km(be(e).replace(Ia,""),t||0)}function $g(e,t,r){return(r?Je(e,t,r):t===a)?t=1:t=se(t),ni(be(e),t)}function Xg(){var e=arguments,t=be(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var Gg=Zr(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});function Vg(e,t,r){return r&&typeof r!="number"&&Je(e,t,r)&&(t=r=a),r=r===a?te:r>>>0,r?(e=be(e),e&&(typeof t=="string"||t!=null&&!qi(t))&&(t=mt(t),!t&&Hr(e))?yr(Ot(e),0,r):e.split(t,r)):[]}var Yg=Zr(function(e,t,r){return e+(r?" ":"")+zi(t)});function Kg(e,t,r){return e=be(e),r=r==null?0:Dr(se(r),0,e.length),t=mt(t),e.slice(r,r+t.length)==t}function Qg(e,t,r){var i=d.templateSettings;r&&Je(e,t,r)&&(t=a),e=be(e),t=Qs({},t,i,oc);var l=Qs({},t.imports,i.imports,oc),p=He(l),f=Un(l,p),_,v,C=0,S=t.interpolate||Nt,z="__p += '",H=Hn((t.escape||Nt).source+"|"+S.source+"|"+(S===os?me:Nt).source+"|"+(t.evaluate||Nt).source+"|$","g"),X="//# sourceURL="+(we.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++nm+"]")+`
115
- `;e.replace(H,function(J,le,pe,yt,et,ht){return pe||(pe=yt),z+=e.slice(C,ht).replace(ds,km),le&&(_=!0,z+=`' +
114
+ `)}function Ty(e){return ae(e)||Sr(e)||!!(_l&&e&&e[_l])}function Jt(e,t){var r=typeof e;return t=t??Le,!!t&&(r=="number"||r!="symbol"&&ze.test(e))&&e>-1&&e%1==0&&e<t}function Je(e,t,r){if(!Ce(r))return!1;var i=typeof t;return(i=="number"?st(r)&&Jt(t,r.length):i=="string"&&t in r)?Et(r[t],e):!1}function bi(e,t){if(ae(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||ft(e)?!0:cs.test(e)||!ls.test(e)||t!=null&&e in Ie(t)}function Iy(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function xi(e){var t=Bs(e),r=d[t];if(typeof r!="function"||!(t in pe.prototype))return!1;if(e===r)return!0;var i=hi(r);return!!i&&e===i[0]}function ky(e){return!!ml&&ml in e}var Dy=_s?er:Li;function La(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Gr;return e===r}function mc(e){return e===e&&!Ce(e)}function fc(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==a||e in Ie(r))}}function Ay(e){var t=Gs(e,function(i){return r.size===g&&r.clear(),i}),r=t.cache;return t}function qy(e,t){var r=e[1],i=t[1],l=r|i,p=l<(V|Q|$),f=i==$&&r==F||i==$&&r==ce&&e[7].length<=t[8]||i==($|ce)&&t[7].length<=t[8]&&r==F;if(!(p||f))return e;i&V&&(e[2]=t[2],l|=r&V?0:G);var _=t[3];if(_){var v=e[3];e[3]=v?Kl(v,_,t[4]):_,e[4]=v?ur(e[3],w):t[4]}return _=t[5],_&&(v=e[5],e[5]=v?Ql(v,_,t[6]):_,e[6]=v?ur(e[5],w):t[6]),_=t[7],_&&(e[7]=_),i&$&&(e[8]=e[8]==null?t[8]:Ye(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=l,e}function Cy(e){var t=[];if(e!=null)for(var r in Ie(e))t.push(r);return t}function Sy(e){return bs.call(e)}function yc(e,t,r){return t=Ue(t===a?e.length-1:t,0),function(){for(var i=arguments,l=-1,p=Ue(i.length-t,0),f=k(p);++l<p;)f[l]=i[t+l];l=-1;for(var _=k(t+1);++l<t;)_[l]=i[l];return _[t]=r(f),dt(e,this,_)}}function hc(e,t){return t.length<2?e:Ar(e,Dt(t,0,-1))}function zy(e,t){for(var r=e.length,i=Ye(t.length,r),l=at(e);i--;){var p=t[i];e[i]=Jt(p,r)?l[p]:a}return e}function wi(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var _c=bc(jl),Ma=$m||function(e,t){return Xe.setTimeout(e,t)},vi=bc(ey);function gc(e,t,r){var i=t+"";return vi(e,vy(i,Ny(by(i),r)))}function bc(e){var t=0,r=0;return function(){var i=Ym(),l=Me-(i-r);if(r=i,l>0){if(++t>=St)return arguments[0]}else t=0;return e.apply(a,arguments)}}function Ws(e,t){var r=-1,i=e.length,l=i-1;for(t=t===a?i:t;++r<t;){var p=si(r,l),f=e[p];e[p]=e[r],e[r]=f}return e.length=t,e}var xc=Ay(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(In,function(r,i,l,p){t.push(l?p.replace(ee,"$1"):i||r)}),t});function Wt(e){if(typeof e=="string"||ft(e))return e;var t=e+"";return t=="0"&&1/e==-Oe?"-0":t}function Cr(e){if(e!=null){try{return gs.call(e)}catch{}try{return e+""}catch{}}return""}function Ny(e,t){return vt(Ht,function(r){var i="_."+r[0];t&r[1]&&!ms(e,i)&&e.push(i)}),e.sort()}function wc(e){if(e instanceof pe)return e.clone();var t=new It(e.__wrapped__,e.__chain__);return t.__actions__=at(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Oy(e,t,r){(r?Je(e,t,r):t===a)?t=1:t=Ue(se(t),0);var i=e==null?0:e.length;if(!i||t<1)return[];for(var l=0,p=0,f=k(ks(i/t));l<i;)f[p++]=Dt(e,l,l+=t);return f}function Py(e){for(var t=-1,r=e==null?0:e.length,i=0,l=[];++t<r;){var p=e[t];p&&(l[i++]=p)}return l}function Ey(){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(ae(r)?at(r):[r],Ge(t,1))}var Ry=ie(function(e,t){return Pe(e)?Na(e,Ge(t,1,Pe,!0)):[]}),Ly=ie(function(e,t){var r=At(t);return Pe(r)&&(r=a),Pe(e)?Na(e,Ge(t,1,Pe,!0),K(r,2)):[]}),My=ie(function(e,t){var r=At(t);return Pe(r)&&(r=a),Pe(e)?Na(e,Ge(t,1,Pe,!0),a,r):[]});function Fy(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===a?1:se(t),Dt(e,t<0?0:t,i)):[]}function jy(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===a?1:se(t),t=i-t,Dt(e,0,t<0?0:t)):[]}function By(e,t){return e&&e.length?Es(e,K(t,3),!0,!0):[]}function Uy(e,t){return e&&e.length?Es(e,K(t,3),!0):[]}function Wy(e,t,r,i){var l=e==null?0:e.length;return l?(r&&typeof r!="number"&&Je(e,t,r)&&(r=0,i=l),Ef(e,t,r,i)):[]}function vc(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var l=r==null?0:se(r);return l<0&&(l=Ue(i+l,0)),fs(e,K(t,3),l)}function Tc(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var l=i-1;return r!==a&&(l=se(r),l=r<0?Ue(i+l,0):Ye(l,i-1)),fs(e,K(t,3),l,!0)}function Ic(e){var t=e==null?0:e.length;return t?Ge(e,1):[]}function Hy(e){var t=e==null?0:e.length;return t?Ge(e,Oe):[]}function $y(e,t){var r=e==null?0:e.length;return r?(t=t===a?1:se(t),Ge(e,t)):[]}function Xy(e){for(var t=-1,r=e==null?0:e.length,i={};++t<r;){var l=e[t];i[l[0]]=l[1]}return i}function kc(e){return e&&e.length?e[0]:a}function Gy(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var l=r==null?0:se(r);return l<0&&(l=Ue(i+l,0)),Wr(e,t,l)}function Vy(e){var t=e==null?0:e.length;return t?Dt(e,0,-1):[]}var Yy=ie(function(e){var t=Ae(e,ci);return t.length&&t[0]===e[0]?Jn(t):[]}),Ky=ie(function(e){var t=At(e),r=Ae(e,ci);return t===At(r)?t=a:r.pop(),r.length&&r[0]===e[0]?Jn(r,K(t,2)):[]}),Qy=ie(function(e){var t=At(e),r=Ae(e,ci);return t=typeof t=="function"?t:a,t&&r.pop(),r.length&&r[0]===e[0]?Jn(r,a,t):[]});function Zy(e,t){return e==null?"":Gm.call(e,t)}function At(e){var t=e==null?0:e.length;return t?e[t-1]:a}function Jy(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var l=i;return r!==a&&(l=se(r),l=l<0?Ue(i+l,0):Ye(l,i-1)),t===t?zm(e,t,l):fs(e,nl,l,!0)}function eh(e,t){return e&&e.length?Rl(e,se(t)):a}var th=ie(Dc);function Dc(e,t){return e&&e.length&&t&&t.length?ai(e,t):e}function rh(e,t,r){return e&&e.length&&t&&t.length?ai(e,t,K(r,2)):e}function ah(e,t,r){return e&&e.length&&t&&t.length?ai(e,t,a,r):e}var sh=Zt(function(e,t){var r=e==null?0:e.length,i=Yn(e,t);return Fl(e,Ae(t,function(l){return Jt(l,r)?+l:l}).sort(Yl)),i});function nh(e,t){var r=[];if(!(e&&e.length))return r;var i=-1,l=[],p=e.length;for(t=K(t,3);++i<p;){var f=e[i];t(f,i,e)&&(r.push(f),l.push(i))}return Fl(e,l),r}function Ti(e){return e==null?e:Qm.call(e)}function ih(e,t,r){var i=e==null?0:e.length;return i?(r&&typeof r!="number"&&Je(e,t,r)?(t=0,r=i):(t=t==null?0:se(t),r=r===a?i:se(r)),Dt(e,t,r)):[]}function oh(e,t){return Ps(e,t)}function lh(e,t,r){return ii(e,t,K(r,2))}function ch(e,t){var r=e==null?0:e.length;if(r){var i=Ps(e,t);if(i<r&&Et(e[i],t))return i}return-1}function uh(e,t){return Ps(e,t,!0)}function dh(e,t,r){return ii(e,t,K(r,2),!0)}function ph(e,t){var r=e==null?0:e.length;if(r){var i=Ps(e,t,!0)-1;if(Et(e[i],t))return i}return-1}function mh(e){return e&&e.length?Bl(e):[]}function fh(e,t){return e&&e.length?Bl(e,K(t,2)):[]}function yh(e){var t=e==null?0:e.length;return t?Dt(e,1,t):[]}function hh(e,t,r){return e&&e.length?(t=r||t===a?1:se(t),Dt(e,0,t<0?0:t)):[]}function _h(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===a?1:se(t),t=i-t,Dt(e,t<0?0:t,i)):[]}function gh(e,t){return e&&e.length?Es(e,K(t,3),!1,!0):[]}function bh(e,t){return e&&e.length?Es(e,K(t,3)):[]}var xh=ie(function(e){return mr(Ge(e,1,Pe,!0))}),wh=ie(function(e){var t=At(e);return Pe(t)&&(t=a),mr(Ge(e,1,Pe,!0),K(t,2))}),vh=ie(function(e){var t=At(e);return t=typeof t=="function"?t:a,mr(Ge(e,1,Pe,!0),a,t)});function Th(e){return e&&e.length?mr(e):[]}function Ih(e,t){return e&&e.length?mr(e,K(t,2)):[]}function kh(e,t){return t=typeof t=="function"?t:a,e&&e.length?mr(e,a,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}),Bn(t,function(r){return Ae(e,Mn(r))})}function Ac(e,t){if(!(e&&e.length))return[];var r=Ii(e);return t==null?r:Ae(r,function(i){return dt(t,a,i)})}var Dh=ie(function(e,t){return Pe(e)?Na(e,t):[]}),Ah=ie(function(e){return li(lr(e,Pe))}),qh=ie(function(e){var t=At(e);return Pe(t)&&(t=a),li(lr(e,Pe),K(t,2))}),Ch=ie(function(e){var t=At(e);return t=typeof t=="function"?t:a,li(lr(e,Pe),a,t)}),Sh=ie(Ii);function zh(e,t){return $l(e||[],t||[],za)}function Nh(e,t){return $l(e||[],t||[],Ea)}var Oh=ie(function(e){var t=e.length,r=t>1?e[t-1]:a;return r=typeof r=="function"?(e.pop(),r):a,Ac(e,r)});function qc(e){var t=d(e);return t.__chain__=!0,t}function Ph(e,t){return t(e),e}function Hs(e,t){return t(e)}var Eh=Zt(function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,l=function(p){return Yn(p,e)};return t>1||this.__actions__.length||!(i instanceof pe)||!Jt(r)?this.thru(l):(i=i.slice(r,+r+(t?1:0)),i.__actions__.push({func:Hs,args:[l],thisArg:a}),new It(i,this.__chain__).thru(function(p){return t&&!p.length&&p.push(a),p}))});function Rh(){return qc(this)}function Lh(){return new It(this.value(),this.__chain__)}function Mh(){this.__values__===a&&(this.__values__=Uc(this.value()));var e=this.__index__>=this.__values__.length,t=e?a:this.__values__[this.__index__++];return{done:e,value:t}}function Fh(){return this}function jh(e){for(var t,r=this;r instanceof Cs;){var i=wc(r);i.__index__=0,i.__values__=a,t?l.__wrapped__=i:t=i;var l=i;r=r.__wrapped__}return l.__wrapped__=e,t}function Bh(){var e=this.__wrapped__;if(e instanceof pe){var t=e;return this.__actions__.length&&(t=new pe(this)),t=t.reverse(),t.__actions__.push({func:Hs,args:[Ti],thisArg:a}),new It(t,this.__chain__)}return this.thru(Ti)}function Uh(){return Hl(this.__wrapped__,this.__actions__)}var Wh=Rs(function(e,t,r){we.call(e,r)?++e[r]:Kt(e,r,1)});function Hh(e,t,r){var i=ae(e)?al:Pf;return r&&Je(e,t,r)&&(t=a),i(e,K(t,3))}function $h(e,t){var r=ae(e)?lr:Al;return r(e,K(t,3))}var Xh=tc(vc),Gh=tc(Tc);function Vh(e,t){return Ge($s(e,t),1)}function Yh(e,t){return Ge($s(e,t),Oe)}function Kh(e,t,r){return r=r===a?1:se(r),Ge($s(e,t),r)}function Cc(e,t){var r=ae(e)?vt:pr;return r(e,K(t,3))}function Sc(e,t){var r=ae(e)?fm:Dl;return r(e,K(t,3))}var Qh=Rs(function(e,t,r){we.call(e,r)?e[r].push(t):Kt(e,r,[t])});function Zh(e,t,r,i){e=st(e)?e:ta(e),r=r&&!i?se(r):0;var l=e.length;return r<0&&(r=Ue(l+r,0)),Ks(e)?r<=l&&e.indexOf(t,r)>-1:!!l&&Wr(e,t,r)>-1}var Jh=ie(function(e,t,r){var i=-1,l=typeof t=="function",p=st(e)?k(e.length):[];return pr(e,function(f){p[++i]=l?dt(t,f,r):Oa(f,t,r)}),p}),e_=Rs(function(e,t,r){Kt(e,r,t)});function $s(e,t){var r=ae(e)?Ae:Ol;return r(e,K(t,3))}function t_(e,t,r,i){return e==null?[]:(ae(t)||(t=t==null?[]:[t]),r=i?a:r,ae(r)||(r=r==null?[]:[r]),Ll(e,t,r))}var r_=Rs(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});function a_(e,t,r){var i=ae(e)?Rn:ol,l=arguments.length<3;return i(e,K(t,4),r,l,pr)}function s_(e,t,r){var i=ae(e)?ym:ol,l=arguments.length<3;return i(e,K(t,4),r,l,Dl)}function n_(e,t){var r=ae(e)?lr:Al;return r(e,Vs(K(t,3)))}function i_(e){var t=ae(e)?vl:Zf;return t(e)}function o_(e,t,r){(r?Je(e,t,r):t===a)?t=1:t=se(t);var i=ae(e)?Cf:Jf;return i(e,t)}function l_(e){var t=ae(e)?Sf:ty;return t(e)}function c_(e){if(e==null)return 0;if(st(e))return Ks(e)?$r(e):e.length;var t=Ke(e);return t==ct||t==ut?e.size:ti(e).length}function u_(e,t,r){var i=ae(e)?Ln:ry;return r&&Je(e,t,r)&&(t=a),i(e,K(t,3))}var d_=ie(function(e,t){if(e==null)return[];var r=t.length;return r>1&&Je(e,t[0],t[1])?t=[]:r>2&&Je(t[0],t[1],t[2])&&(t=[t[0]]),Ll(e,Ge(t,1),[])}),Xs=Hm||function(){return Xe.Date.now()};function p_(e,t){if(typeof t!="function")throw new Tt(m);return e=se(e),function(){if(--e<1)return t.apply(this,arguments)}}function zc(e,t,r){return t=r?a:t,t=e&&t==null?e.length:t,Qt(e,$,a,a,a,a,t)}function Nc(e,t){var r;if(typeof t!="function")throw new Tt(m);return e=se(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=a),r}}var ki=ie(function(e,t,r){var i=V;if(r.length){var l=ur(r,Jr(ki));i|=z}return Qt(e,i,t,r,l)}),Oc=ie(function(e,t,r){var i=V|Q;if(r.length){var l=ur(r,Jr(Oc));i|=z}return Qt(t,i,e,r,l)});function Pc(e,t,r){t=r?a:t;var i=Qt(e,F,a,a,a,a,a,t);return i.placeholder=Pc.placeholder,i}function Ec(e,t,r){t=r?a:t;var i=Qt(e,T,a,a,a,a,a,t);return i.placeholder=Ec.placeholder,i}function Rc(e,t,r){var i,l,p,f,_,v,C=0,S=!1,N=!1,U=!0;if(typeof e!="function")throw new Tt(m);t=qt(t)||0,Ce(r)&&(S=!!r.leading,N="maxWait"in r,p=N?Ue(qt(r.maxWait)||0,t):p,U="trailing"in r?!!r.trailing:U);function X(Ee){var Rt=i,rr=l;return i=l=a,C=Ee,f=e.apply(rr,Rt),f}function Z(Ee){return C=Ee,_=Ma(le,t),S?X(Ee):f}function ne(Ee){var Rt=Ee-v,rr=Ee-C,tu=t-Rt;return N?Ye(tu,p-rr):tu}function J(Ee){var Rt=Ee-v,rr=Ee-C;return v===a||Rt>=t||Rt<0||N&&rr>=p}function le(){var Ee=Xs();if(J(Ee))return me(Ee);_=Ma(le,ne(Ee))}function me(Ee){return _=a,U&&i?X(Ee):(i=l=a,f)}function yt(){_!==a&&Xl(_),C=0,i=v=l=_=a}function et(){return _===a?f:me(Xs())}function ht(){var Ee=Xs(),Rt=J(Ee);if(i=arguments,l=this,v=Ee,Rt){if(_===a)return Z(v);if(N)return Xl(_),_=Ma(le,t),X(v)}return _===a&&(_=Ma(le,t)),f}return ht.cancel=yt,ht.flush=et,ht}var m_=ie(function(e,t){return kl(e,1,t)}),f_=ie(function(e,t,r){return kl(e,qt(t)||0,r)});function y_(e){return Qt(e,ye)}function Gs(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Tt(m);var r=function(){var i=arguments,l=t?t.apply(this,i):i[0],p=r.cache;if(p.has(l))return p.get(l);var f=e.apply(this,i);return r.cache=p.set(l,f)||p,f};return r.cache=new(Gs.Cache||Yt),r}Gs.Cache=Yt;function Vs(e){if(typeof e!="function")throw new Tt(m);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 h_(e){return Nc(2,e)}var __=ay(function(e,t){t=t.length==1&&ae(t[0])?Ae(t[0],pt(K())):Ae(Ge(t,1),pt(K()));var r=t.length;return ie(function(i){for(var l=-1,p=Ye(i.length,r);++l<p;)i[l]=t[l].call(this,i[l]);return dt(e,this,i)})}),Di=ie(function(e,t){var r=ur(t,Jr(Di));return Qt(e,z,a,t,r)}),Lc=ie(function(e,t){var r=ur(t,Jr(Lc));return Qt(e,H,a,t,r)}),g_=Zt(function(e,t){return Qt(e,ce,a,a,a,t)});function b_(e,t){if(typeof e!="function")throw new Tt(m);return t=t===a?t:se(t),ie(e,t)}function x_(e,t){if(typeof e!="function")throw new Tt(m);return t=t==null?0:Ue(se(t),0),ie(function(r){var i=r[t],l=yr(r,0,t);return i&&cr(l,i),dt(e,this,l)})}function w_(e,t,r){var i=!0,l=!0;if(typeof e!="function")throw new Tt(m);return Ce(r)&&(i="leading"in r?!!r.leading:i,l="trailing"in r?!!r.trailing:l),Rc(e,t,{leading:i,maxWait:t,trailing:l})}function v_(e){return zc(e,1)}function T_(e,t){return Di(ui(t),e)}function I_(){if(!arguments.length)return[];var e=arguments[0];return ae(e)?e:[e]}function k_(e){return kt(e,L)}function D_(e,t){return t=typeof t=="function"?t:a,kt(e,L,t)}function A_(e){return kt(e,I|L)}function q_(e,t){return t=typeof t=="function"?t:a,kt(e,I|L,t)}function C_(e,t){return t==null||Il(e,t,He(t))}function Et(e,t){return e===t||e!==e&&t!==t}var S_=js(Zn),z_=js(function(e,t){return e>=t}),Sr=Sl(function(){return arguments}())?Sl:function(e){return Ne(e)&&we.call(e,"callee")&&!hl.call(e,"callee")},ae=k.isArray,N_=Qo?pt(Qo):jf;function st(e){return e!=null&&Ys(e.length)&&!er(e)}function Pe(e){return Ne(e)&&st(e)}function O_(e){return e===!0||e===!1||Ne(e)&&Ze(e)==Ft}var hr=Xm||Li,P_=Zo?pt(Zo):Bf;function E_(e){return Ne(e)&&e.nodeType===1&&!Fa(e)}function R_(e){if(e==null)return!0;if(st(e)&&(ae(e)||typeof e=="string"||typeof e.splice=="function"||hr(e)||ea(e)||Sr(e)))return!e.length;var t=Ke(e);if(t==ct||t==ut)return!e.size;if(La(e))return!ti(e).length;for(var r in e)if(we.call(e,r))return!1;return!0}function L_(e,t){return Pa(e,t)}function M_(e,t,r){r=typeof r=="function"?r:a;var i=r?r(e,t):a;return i===a?Pa(e,t,a,r):!!i}function Ai(e){if(!Ne(e))return!1;var t=Ze(e);return t==Er||t==Pr||typeof e.message=="string"&&typeof e.name=="string"&&!Fa(e)}function F_(e){return typeof e=="number"&&gl(e)}function er(e){if(!Ce(e))return!1;var t=Ze(e);return t==br||t==rs||t==ma||t==Lr}function Mc(e){return typeof e=="number"&&e==se(e)}function Ys(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Le}function Ce(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Ne(e){return e!=null&&typeof e=="object"}var Fc=Jo?pt(Jo):Wf;function j_(e,t){return e===t||ei(e,t,_i(t))}function B_(e,t,r){return r=typeof r=="function"?r:a,ei(e,t,_i(t),r)}function U_(e){return jc(e)&&e!=+e}function W_(e){if(Dy(e))throw new re(c);return zl(e)}function H_(e){return e===null}function $_(e){return e==null}function jc(e){return typeof e=="number"||Ne(e)&&Ze(e)==jt}function Fa(e){if(!Ne(e)||Ze(e)!=xt)return!1;var t=vs(e);if(t===null)return!0;var r=we.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&gs.call(r)==jm}var qi=el?pt(el):Hf;function X_(e){return Mc(e)&&e>=-Le&&e<=Le}var Bc=tl?pt(tl):$f;function Ks(e){return typeof e=="string"||!ae(e)&&Ne(e)&&Ze(e)==Xt}function ft(e){return typeof e=="symbol"||Ne(e)&&Ze(e)==Mr}var ea=rl?pt(rl):Xf;function G_(e){return e===a}function V_(e){return Ne(e)&&Ke(e)==ir}function Y_(e){return Ne(e)&&Ze(e)==as}var K_=js(ri),Q_=js(function(e,t){return e<=t});function Uc(e){if(!e)return[];if(st(e))return Ks(e)?Ot(e):at(e);if(Da&&e[Da])return qm(e[Da]());var t=Ke(e),r=t==ct?Wn:t==ut?ys:ta;return r(e)}function tr(e){if(!e)return e===0?e:0;if(e=qt(e),e===Oe||e===-Oe){var t=e<0?-1:1;return t*lt}return e===e?e:0}function se(e){var t=tr(e),r=t%1;return t===t?r?t-r:t:0}function Wc(e){return e?Dr(se(e),0,te):0}function qt(e){if(typeof e=="number")return e;if(ft(e))return je;if(Ce(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ce(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=ll(e);var r=oe.test(e);return r||qe.test(e)?dm(e.slice(2),r?2:8):de.test(e)?je:+e}function Hc(e){return Ut(e,nt(e))}function Z_(e){return e?Dr(se(e),-Le,Le):e===0?e:0}function be(e){return e==null?"":mt(e)}var J_=Qr(function(e,t){if(La(t)||st(t)){Ut(t,He(t),e);return}for(var r in t)we.call(t,r)&&za(e,r,t[r])}),$c=Qr(function(e,t){Ut(t,nt(t),e)}),Qs=Qr(function(e,t,r,i){Ut(t,nt(t),e,i)}),eg=Qr(function(e,t,r,i){Ut(t,He(t),e,i)}),tg=Zt(Yn);function rg(e,t){var r=Kr(e);return t==null?r:Tl(r,t)}var ag=ie(function(e,t){e=Ie(e);var r=-1,i=t.length,l=i>2?t[2]:a;for(l&&Je(t[0],t[1],l)&&(i=1);++r<i;)for(var p=t[r],f=nt(p),_=-1,v=f.length;++_<v;){var C=f[_],S=e[C];(S===a||Et(S,Gr[C])&&!we.call(e,C))&&(e[C]=p[C])}return e}),sg=ie(function(e){return e.push(a,lc),dt(Xc,a,e)});function ng(e,t){return sl(e,K(t,3),Bt)}function ig(e,t){return sl(e,K(t,3),Qn)}function og(e,t){return e==null?e:Kn(e,K(t,3),nt)}function lg(e,t){return e==null?e:ql(e,K(t,3),nt)}function cg(e,t){return e&&Bt(e,K(t,3))}function ug(e,t){return e&&Qn(e,K(t,3))}function dg(e){return e==null?[]:Ns(e,He(e))}function pg(e){return e==null?[]:Ns(e,nt(e))}function Ci(e,t,r){var i=e==null?a:Ar(e,t);return i===a?r:i}function mg(e,t){return e!=null&&dc(e,t,Rf)}function Si(e,t){return e!=null&&dc(e,t,Lf)}var fg=ac(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=bs.call(t)),e[t]=r},Ni(it)),yg=ac(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=bs.call(t)),we.call(e,t)?e[t].push(r):e[t]=[r]},K),hg=ie(Oa);function He(e){return st(e)?wl(e):ti(e)}function nt(e){return st(e)?wl(e,!0):Gf(e)}function _g(e,t){var r={};return t=K(t,3),Bt(e,function(i,l,p){Kt(r,t(i,l,p),i)}),r}function gg(e,t){var r={};return t=K(t,3),Bt(e,function(i,l,p){Kt(r,l,t(i,l,p))}),r}var bg=Qr(function(e,t,r){Os(e,t,r)}),Xc=Qr(function(e,t,r,i){Os(e,t,r,i)}),xg=Zt(function(e,t){var r={};if(e==null)return r;var i=!1;t=Ae(t,function(p){return p=fr(p,e),i||(i=p.length>1),p}),Ut(e,yi(e),r),i&&(r=kt(r,I|R|L,fy));for(var l=t.length;l--;)oi(r,t[l]);return r});function wg(e,t){return Gc(e,Vs(K(t)))}var vg=Zt(function(e,t){return e==null?{}:Yf(e,t)});function Gc(e,t){if(e==null)return{};var r=Ae(yi(e),function(i){return[i]});return t=K(t),Ml(e,r,function(i,l){return t(i,l[0])})}function Tg(e,t,r){t=fr(t,e);var i=-1,l=t.length;for(l||(l=1,e=a);++i<l;){var p=e==null?a:e[Wt(t[i])];p===a&&(i=l,p=r),e=er(p)?p.call(e):p}return e}function Ig(e,t,r){return e==null?e:Ea(e,t,r)}function kg(e,t,r,i){return i=typeof i=="function"?i:a,e==null?e:Ea(e,t,r,i)}var Vc=ic(He),Yc=ic(nt);function Dg(e,t,r){var i=ae(e),l=i||hr(e)||ea(e);if(t=K(t,4),r==null){var p=e&&e.constructor;l?r=i?new p:[]:Ce(e)?r=er(p)?Kr(vs(e)):{}:r={}}return(l?vt:Bt)(e,function(f,_,v){return t(r,f,_,v)}),r}function Ag(e,t){return e==null?!0:oi(e,t)}function qg(e,t,r){return e==null?e:Wl(e,t,ui(r))}function Cg(e,t,r,i){return i=typeof i=="function"?i:a,e==null?e:Wl(e,t,ui(r),i)}function ta(e){return e==null?[]:Un(e,He(e))}function Sg(e){return e==null?[]:Un(e,nt(e))}function zg(e,t,r){return r===a&&(r=t,t=a),r!==a&&(r=qt(r),r=r===r?r:0),t!==a&&(t=qt(t),t=t===t?t:0),Dr(qt(e),t,r)}function Ng(e,t,r){return t=tr(t),r===a?(r=t,t=0):r=tr(r),e=qt(e),Mf(e,t,r)}function Og(e,t,r){if(r&&typeof r!="boolean"&&Je(e,t,r)&&(t=r=a),r===a&&(typeof t=="boolean"?(r=t,t=a):typeof e=="boolean"&&(r=e,e=a)),e===a&&t===a?(e=0,t=1):(e=tr(e),t===a?(t=e,e=0):t=tr(t)),e>t){var i=e;e=t,t=i}if(r||e%1||t%1){var l=bl();return Ye(e+l*(t-e+um("1e-"+((l+"").length-1))),t)}return si(e,t)}var Pg=Zr(function(e,t,r){return t=t.toLowerCase(),e+(r?Kc(t):t)});function Kc(e){return zi(be(e).toLowerCase())}function Qc(e){return e=be(e),e&&e.replace(tt,Tm).replace(em,"")}function Eg(e,t,r){e=be(e),t=mt(t);var i=e.length;r=r===a?i:Dr(se(r),0,i);var l=r;return r-=t.length,r>=0&&e.slice(r,l)==t}function Rg(e){return e=be(e),e&&ns.test(e)?e.replace(Br,Im):e}function Lg(e){return e=be(e),e&&us.test(e)?e.replace(Ta,"\\$&"):e}var Mg=Zr(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),Fg=Zr(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),jg=ec("toLowerCase");function Bg(e,t,r){e=be(e),t=se(t);var i=t?$r(e):0;if(!t||i>=t)return e;var l=(t-i)/2;return Fs(Ds(l),r)+e+Fs(ks(l),r)}function Ug(e,t,r){e=be(e),t=se(t);var i=t?$r(e):0;return t&&i<t?e+Fs(t-i,r):e}function Wg(e,t,r){e=be(e),t=se(t);var i=t?$r(e):0;return t&&i<t?Fs(t-i,r)+e:e}function Hg(e,t,r){return r||t==null?t=0:t&&(t=+t),Km(be(e).replace(Ia,""),t||0)}function $g(e,t,r){return(r?Je(e,t,r):t===a)?t=1:t=se(t),ni(be(e),t)}function Xg(){var e=arguments,t=be(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var Gg=Zr(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});function Vg(e,t,r){return r&&typeof r!="number"&&Je(e,t,r)&&(t=r=a),r=r===a?te:r>>>0,r?(e=be(e),e&&(typeof t=="string"||t!=null&&!qi(t))&&(t=mt(t),!t&&Hr(e))?yr(Ot(e),0,r):e.split(t,r)):[]}var Yg=Zr(function(e,t,r){return e+(r?" ":"")+zi(t)});function Kg(e,t,r){return e=be(e),r=r==null?0:Dr(se(r),0,e.length),t=mt(t),e.slice(r,r+t.length)==t}function Qg(e,t,r){var i=d.templateSettings;r&&Je(e,t,r)&&(t=a),e=be(e),t=Qs({},t,i,oc);var l=Qs({},t.imports,i.imports,oc),p=He(l),f=Un(l,p),_,v,C=0,S=t.interpolate||Nt,N="__p += '",U=Hn((t.escape||Nt).source+"|"+S.source+"|"+(S===os?fe:Nt).source+"|"+(t.evaluate||Nt).source+"|$","g"),X="//# sourceURL="+(we.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++nm+"]")+`
115
+ `;e.replace(U,function(J,le,me,yt,et,ht){return me||(me=yt),N+=e.slice(C,ht).replace(ds,km),le&&(_=!0,N+=`' +
116
116
  __e(`+le+`) +
117
- '`),et&&(v=!0,z+=`';
117
+ '`),et&&(v=!0,N+=`';
118
118
  `+et+`;
119
- __p += '`),pe&&(z+=`' +
120
- ((__t = (`+pe+`)) == null ? '' : __t) +
121
- '`),C=ht+J.length,J}),z+=`';
122
- `;var Z=we.call(t,"variable")&&t.variable;if(!Z)z=`with (obj) {
123
- `+z+`
119
+ __p += '`),me&&(N+=`' +
120
+ ((__t = (`+me+`)) == null ? '' : __t) +
121
+ '`),C=ht+J.length,J}),N+=`';
122
+ `;var Z=we.call(t,"variable")&&t.variable;if(!Z)N=`with (obj) {
123
+ `+N+`
124
124
  }
125
- `;else if(W.test(Z))throw new re(h);z=(v?z.replace(vn,""):z).replace(wa,"$1").replace(ss,"$1;"),z="function("+(Z||"obj")+`) {
125
+ `;else if(B.test(Z))throw new re(h);N=(v?N.replace(vn,""):N).replace(wa,"$1").replace(ss,"$1;"),N="function("+(Z||"obj")+`) {
126
126
  `+(Z?"":`obj || (obj = {});
127
127
  `)+"var __t, __p = ''"+(_?", __e = _.escape":"")+(v?`, __j = Array.prototype.join;
128
128
  function print() { __p += __j.call(arguments, '') }
129
129
  `:`;
130
- `)+z+`return __p
131
- }`;var ne=Jc(function(){return ye(p,X+"return "+z).apply(a,f)});if(ne.source=z,Ai(ne))throw ne;return ne}function Zg(e){return be(e).toLowerCase()}function Jg(e){return be(e).toUpperCase()}function eb(e,t,r){if(e=be(e),e&&(r||t===a))return ll(e);if(!e||!(t=mt(t)))return e;var i=Ot(e),l=Ot(t),p=cl(i,l),f=ul(i,l)+1;return yr(i,p,f).join("")}function tb(e,t,r){if(e=be(e),e&&(r||t===a))return e.slice(0,pl(e)+1);if(!e||!(t=mt(t)))return e;var i=Ot(e),l=ul(i,Ot(t))+1;return yr(i,0,l).join("")}function rb(e,t,r){if(e=be(e),e&&(r||t===a))return e.replace(Ia,"");if(!e||!(t=mt(t)))return e;var i=Ot(e),l=cl(i,Ot(t));return yr(i,l).join("")}function ab(e,t){var r=ce,i=bt;if(Ce(t)){var l="separator"in t?t.separator:l;r="length"in t?se(t.length):r,i="omission"in t?mt(t.omission):i}e=be(e);var p=e.length;if(Hr(e)){var f=Ot(e);p=f.length}if(r>=p)return e;var _=r-$r(i);if(_<1)return i;var v=f?yr(f,0,_).join(""):e.slice(0,_);if(l===a)return v+i;if(f&&(_+=v.length-_),qi(l)){if(e.slice(_).search(l)){var C,S=v;for(l.global||(l=Hn(l.source,be(ge.exec(l))+"g")),l.lastIndex=0;C=l.exec(S);)var z=C.index;v=v.slice(0,z===a?_:z)}}else if(e.indexOf(mt(l),_)!=_){var H=v.lastIndexOf(l);H>-1&&(v=v.slice(0,H))}return v+i}function sb(e){return e=be(e),e&&va.test(e)?e.replace(Gt,Nm):e}var nb=Zr(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),zi=ec("toUpperCase");function Zc(e,t,r){return e=be(e),t=r?a:t,t===a?Am(e)?Em(e):gm(e):e.match(t)||[]}var Jc=ie(function(e,t){try{return dt(e,a,t)}catch(r){return Ai(r)?r:new re(r)}}),ib=Zt(function(e,t){return vt(t,function(r){r=Wt(r),Kt(e,r,ki(e[r],e))}),e});function ob(e){var t=e==null?0:e.length,r=Q();return e=t?Ae(e,function(i){if(typeof i[1]!="function")throw new Tt(m);return[r(i[0]),i[1]]}):[],ie(function(i){for(var l=-1;++l<t;){var p=e[l];if(dt(p[0],this,i))return dt(p[1],this,i)}})}function lb(e){return Of(kt(e,T))}function Ni(e){return function(){return e}}function cb(e,t){return e==null||e!==e?t:e}var ub=rc(),db=rc(!0);function it(e){return e}function Oi(e){return Nl(typeof e=="function"?e:kt(e,T))}function pb(e){return Pl(kt(e,T))}function mb(e,t){return El(e,kt(t,T))}var fb=ie(function(e,t){return function(r){return Oa(r,e,t)}}),yb=ie(function(e,t){return function(r){return Oa(e,r,t)}});function Pi(e,t,r){var i=He(t),l=Ns(t,i);r==null&&!(Ce(t)&&(l.length||!i.length))&&(r=t,t=e,e=this,l=Ns(t,He(t)));var p=!(Ce(r)&&"chain"in r)||!!r.chain,f=er(e);return vt(l,function(_){var v=t[_];e[_]=v,f&&(e.prototype[_]=function(){var C=this.__chain__;if(p||C){var S=e(this.__wrapped__),z=S.__actions__=at(this.__actions__);return z.push({func:v,args:arguments,thisArg:e}),S.__chain__=C,S}return v.apply(e,cr([this.value()],arguments))})}),e}function hb(){return Xe._===this&&(Xe._=Bm),this}function Ei(){}function _b(e){return e=se(e),ie(function(t){return Rl(t,e)})}var gb=pi(Ae),bb=pi(al),xb=pi(Ln);function eu(e){return bi(e)?Mn(Wt(e)):Kf(e)}function wb(e){return function(t){return e==null?a:Ar(e,t)}}var vb=sc(),Tb=sc(!0);function Ri(){return[]}function Li(){return!1}function Ib(){return{}}function kb(){return""}function Db(){return!0}function Ab(e,t){if(e=se(e),e<1||e>Le)return[];var r=te,i=Ye(e,te);t=Q(t),e-=te;for(var l=Bn(i,t);++r<e;)t(r);return l}function qb(e){return ae(e)?Ae(e,Wt):ft(e)?[e]:at(xc(be(e)))}function Cb(e){var t=++Fm;return be(e)+t}var Sb=Ms(function(e,t){return e+t},0),zb=mi("ceil"),Nb=Ms(function(e,t){return e/t},1),Ob=mi("floor");function Pb(e){return e&&e.length?zs(e,it,Zn):a}function Eb(e,t){return e&&e.length?zs(e,Q(t,2),Zn):a}function Rb(e){return il(e,it)}function Lb(e,t){return il(e,Q(t,2))}function Mb(e){return e&&e.length?zs(e,it,ri):a}function Fb(e,t){return e&&e.length?zs(e,Q(t,2),ri):a}var jb=Ms(function(e,t){return e*t},1),Bb=mi("round"),Ub=Ms(function(e,t){return e-t},0);function Wb(e){return e&&e.length?jn(e,it):0}function Hb(e,t){return e&&e.length?jn(e,Q(t,2)):0}return d.after=p_,d.ary=zc,d.assign=J_,d.assignIn=$c,d.assignInWith=Qs,d.assignWith=eg,d.at=tg,d.before=Nc,d.bind=ki,d.bindAll=ib,d.bindKey=Oc,d.castArray=I_,d.chain=qc,d.chunk=Oy,d.compact=Py,d.concat=Ey,d.cond=ob,d.conforms=lb,d.constant=Ni,d.countBy=Wh,d.create=rg,d.curry=Pc,d.curryRight=Ec,d.debounce=Rc,d.defaults=ag,d.defaultsDeep=sg,d.defer=m_,d.delay=f_,d.difference=Ry,d.differenceBy=Ly,d.differenceWith=My,d.drop=Fy,d.dropRight=jy,d.dropRightWhile=By,d.dropWhile=Uy,d.fill=Wy,d.filter=$h,d.flatMap=Vh,d.flatMapDeep=Yh,d.flatMapDepth=Kh,d.flatten=Ic,d.flattenDeep=Hy,d.flattenDepth=$y,d.flip=y_,d.flow=ub,d.flowRight=db,d.fromPairs=Xy,d.functions=dg,d.functionsIn=pg,d.groupBy=Qh,d.initial=Vy,d.intersection=Yy,d.intersectionBy=Ky,d.intersectionWith=Qy,d.invert=fg,d.invertBy=yg,d.invokeMap=Jh,d.iteratee=Oi,d.keyBy=e_,d.keys=He,d.keysIn=nt,d.map=$s,d.mapKeys=_g,d.mapValues=gg,d.matches=pb,d.matchesProperty=mb,d.memoize=Gs,d.merge=bg,d.mergeWith=Xc,d.method=fb,d.methodOf=yb,d.mixin=Pi,d.negate=Vs,d.nthArg=_b,d.omit=xg,d.omitBy=wg,d.once=h_,d.orderBy=t_,d.over=gb,d.overArgs=__,d.overEvery=bb,d.overSome=xb,d.partial=Di,d.partialRight=Lc,d.partition=r_,d.pick=vg,d.pickBy=Gc,d.property=eu,d.propertyOf=wb,d.pull=th,d.pullAll=Dc,d.pullAllBy=rh,d.pullAllWith=ah,d.pullAt=sh,d.range=vb,d.rangeRight=Tb,d.rearg=g_,d.reject=n_,d.remove=nh,d.rest=b_,d.reverse=Ti,d.sampleSize=o_,d.set=Ig,d.setWith=kg,d.shuffle=l_,d.slice=ih,d.sortBy=d_,d.sortedUniq=mh,d.sortedUniqBy=fh,d.split=Vg,d.spread=x_,d.tail=yh,d.take=hh,d.takeRight=_h,d.takeRightWhile=gh,d.takeWhile=bh,d.tap=Ph,d.throttle=w_,d.thru=Hs,d.toArray=Uc,d.toPairs=Vc,d.toPairsIn=Yc,d.toPath=qb,d.toPlainObject=Hc,d.transform=Dg,d.unary=v_,d.union=xh,d.unionBy=wh,d.unionWith=vh,d.uniq=Th,d.uniqBy=Ih,d.uniqWith=kh,d.unset=Ag,d.unzip=Ii,d.unzipWith=Ac,d.update=qg,d.updateWith=Cg,d.values=ta,d.valuesIn=Sg,d.without=Dh,d.words=Zc,d.wrap=T_,d.xor=Ah,d.xorBy=qh,d.xorWith=Ch,d.zip=Sh,d.zipObject=zh,d.zipObjectDeep=Nh,d.zipWith=Oh,d.entries=Vc,d.entriesIn=Yc,d.extend=$c,d.extendWith=Qs,Pi(d,d),d.add=Sb,d.attempt=Jc,d.camelCase=Pg,d.capitalize=Kc,d.ceil=zb,d.clamp=zg,d.clone=k_,d.cloneDeep=A_,d.cloneDeepWith=q_,d.cloneWith=D_,d.conformsTo=C_,d.deburr=Qc,d.defaultTo=cb,d.divide=Nb,d.endsWith=Eg,d.eq=Et,d.escape=Rg,d.escapeRegExp=Lg,d.every=Hh,d.find=Xh,d.findIndex=vc,d.findKey=ng,d.findLast=Gh,d.findLastIndex=Tc,d.findLastKey=ig,d.floor=Ob,d.forEach=Cc,d.forEachRight=Sc,d.forIn=og,d.forInRight=lg,d.forOwn=cg,d.forOwnRight=ug,d.get=Ci,d.gt=S_,d.gte=z_,d.has=mg,d.hasIn=Si,d.head=kc,d.identity=it,d.includes=Zh,d.indexOf=Gy,d.inRange=Ng,d.invoke=hg,d.isArguments=Sr,d.isArray=ae,d.isArrayBuffer=N_,d.isArrayLike=st,d.isArrayLikeObject=Pe,d.isBoolean=O_,d.isBuffer=hr,d.isDate=P_,d.isElement=E_,d.isEmpty=R_,d.isEqual=L_,d.isEqualWith=M_,d.isError=Ai,d.isFinite=F_,d.isFunction=er,d.isInteger=Mc,d.isLength=Ys,d.isMap=Fc,d.isMatch=j_,d.isMatchWith=B_,d.isNaN=U_,d.isNative=W_,d.isNil=$_,d.isNull=H_,d.isNumber=jc,d.isObject=Ce,d.isObjectLike=Ne,d.isPlainObject=Fa,d.isRegExp=qi,d.isSafeInteger=X_,d.isSet=Bc,d.isString=Ks,d.isSymbol=ft,d.isTypedArray=ea,d.isUndefined=G_,d.isWeakMap=V_,d.isWeakSet=Y_,d.join=Zy,d.kebabCase=Mg,d.last=At,d.lastIndexOf=Jy,d.lowerCase=Fg,d.lowerFirst=jg,d.lt=K_,d.lte=Q_,d.max=Pb,d.maxBy=Eb,d.mean=Rb,d.meanBy=Lb,d.min=Mb,d.minBy=Fb,d.stubArray=Ri,d.stubFalse=Li,d.stubObject=Ib,d.stubString=kb,d.stubTrue=Db,d.multiply=jb,d.nth=eh,d.noConflict=hb,d.noop=Ei,d.now=Xs,d.pad=Bg,d.padEnd=Ug,d.padStart=Wg,d.parseInt=Hg,d.random=Og,d.reduce=a_,d.reduceRight=s_,d.repeat=$g,d.replace=Xg,d.result=Tg,d.round=Bb,d.runInContext=x,d.sample=i_,d.size=c_,d.snakeCase=Gg,d.some=u_,d.sortedIndex=oh,d.sortedIndexBy=lh,d.sortedIndexOf=ch,d.sortedLastIndex=uh,d.sortedLastIndexBy=dh,d.sortedLastIndexOf=ph,d.startCase=Yg,d.startsWith=Kg,d.subtract=Ub,d.sum=Wb,d.sumBy=Hb,d.template=Qg,d.times=Ab,d.toFinite=tr,d.toInteger=se,d.toLength=Wc,d.toLower=Zg,d.toNumber=qt,d.toSafeInteger=Z_,d.toString=be,d.toUpper=Jg,d.trim=eb,d.trimEnd=tb,d.trimStart=rb,d.truncate=ab,d.unescape=sb,d.uniqueId=Cb,d.upperCase=nb,d.upperFirst=zi,d.each=Cc,d.eachRight=Sc,d.first=kc,Pi(d,function(){var e={};return Bt(d,function(t,r){we.call(d.prototype,r)||(e[r]=t)}),e}(),{chain:!1}),d.VERSION=o,vt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){d[e].placeholder=d}),vt(["drop","take"],function(e,t){de.prototype[e]=function(r){r=r===a?1:Ue(se(r),0);var i=this.__filtered__&&!t?new de(this):this.clone();return i.__filtered__?i.__takeCount__=Ye(r,i.__takeCount__):i.__views__.push({size:Ye(r,te),type:e+(i.__dir__<0?"Right":"")}),i},de.prototype[e+"Right"]=function(r){return this.reverse()[e](r).reverse()}}),vt(["filter","map","takeWhile"],function(e,t){var r=t+1,i=r==Fe||r==fe;de.prototype[e]=function(l){var p=this.clone();return p.__iteratees__.push({iteratee:Q(l,3),type:r}),p.__filtered__=p.__filtered__||i,p}}),vt(["head","last"],function(e,t){var r="take"+(t?"Right":"");de.prototype[e]=function(){return this[r](1).value()[0]}}),vt(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");de.prototype[e]=function(){return this.__filtered__?new de(this):this[r](1)}}),de.prototype.compact=function(){return this.filter(it)},de.prototype.find=function(e){return this.filter(e).head()},de.prototype.findLast=function(e){return this.reverse().find(e)},de.prototype.invokeMap=ie(function(e,t){return typeof e=="function"?new de(this):this.map(function(r){return Oa(r,e,t)})}),de.prototype.reject=function(e){return this.filter(Vs(Q(e)))},de.prototype.slice=function(e,t){e=se(e);var r=this;return r.__filtered__&&(e>0||t<0)?new de(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==a&&(t=se(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},de.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},de.prototype.toArray=function(){return this.take(te)},Bt(de.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),l=d[i?"take"+(t=="last"?"Right":""):t],p=i||/^find/.test(t);l&&(d.prototype[t]=function(){var f=this.__wrapped__,_=i?[1]:arguments,v=f instanceof de,C=_[0],S=v||ae(f),z=function(le){var pe=l.apply(d,cr([le],_));return i&&H?pe[0]:pe};S&&r&&typeof C=="function"&&C.length!=1&&(v=S=!1);var H=this.__chain__,X=!!this.__actions__.length,Z=p&&!H,ne=v&&!X;if(!p&&S){f=ne?f:new de(this);var J=e.apply(f,_);return J.__actions__.push({func:Hs,args:[z],thisArg:a}),new It(J,H)}return Z&&ne?e.apply(this,_):(J=this.thru(z),Z?i?J.value()[0]:J.value():J)})}),vt(["pop","push","shift","sort","splice","unshift"],function(e){var t=hs[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);d.prototype[e]=function(){var l=arguments;if(i&&!this.__chain__){var p=this.value();return t.apply(ae(p)?p:[],l)}return this[r](function(f){return t.apply(ae(f)?f:[],l)})}}),Bt(de.prototype,function(e,t){var r=d[t];if(r){var i=r.name+"";we.call(Yr,i)||(Yr[i]=[]),Yr[i].push({name:t,func:r})}}),Yr[Ls(a,F).name]=[{name:"wrapper",func:a}],de.prototype.clone=af,de.prototype.reverse=sf,de.prototype.value=nf,d.prototype.at=Eh,d.prototype.chain=Rh,d.prototype.commit=Lh,d.prototype.next=Mh,d.prototype.plant=jh,d.prototype.reverse=Bh,d.prototype.toJSON=d.prototype.valueOf=d.prototype.value=Uh,d.prototype.first=d.prototype.head,Da&&(d.prototype[Da]=Fh),d},Xr=Rm();vr?((vr.exports=Xr)._=Xr,On._=Xr):Xe._=Xr}).call(ra)}($a,$a.exports);var so=$a.exports;const Re="tccScript",sn={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(s){s[s.None=0]="None",s[s.Indent=1]="Indent",s[s.IndentOutdent=2]="IndentOutdent",s[s.Outdent=3]="Outdent"})(Ct||(Ct={}));const nn={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}}]},D={"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 Mt(s,n=1){return s+Math.round(255*Math.min(Math.max(n,0),1)).toString(16).toUpperCase().padStart(2,"0")}const on={base:"vs",inherit:!0,rules:[{token:"comment",foreground:D["color-cold-gray-400"]},{token:"comment.annotation",fontStyle:"bold"},{token:"text",foreground:D["color-cold-gray-900"]},{token:"string",foreground:D["color-iguana-green-700"]},{token:"constant.numeric",foreground:D["color-banana-yellow-900"]},{token:"constant.language",foreground:D["color-ripe-red-a600"]},{token:"constant.other.color",foreground:D["color-ripe-red-a600"]},{token:"constant.other",foreground:D["color-ripe-red-a600"]},{token:"support.variable",foreground:D["color-ripe-red-a600"]},{token:"support.function",foreground:D["color-tv-blue-a600"]},{token:"support.type",foreground:D["color-minty-green-400"],fontStyle:"bold"},{token:"entity.name.type",foreground:D["color-minty-green-400"],fontStyle:"bold"},{token:"support.method",foreground:D["color-tv-blue-a600"]},{token:"keyword.equals",foreground:D["color-minty-green-400"]},{token:"keyword.operator",foreground:D["color-minty-green-400"]},{token:"keyword.other",foreground:D["color-minty-green-400"]},{token:"keyword",foreground:D["color-minty-green-400"]},{token:"variable.other",foreground:D["color-cold-gray-800"]},{token:"variable.other.property",foreground:D["color-cold-gray-800"]},{token:"paren",foreground:D["color-black"]},{token:"entity.name.function",foreground:D["color-tv-blue-900"]},{token:"entity.name.method",foreground:D["color-tv-blue-900"]},{token:"meta.function-call",foreground:D["color-grapes-purple-600"]},{token:"entity.name.module.name",foreground:D["color-grapes-purple-600"]},{token:"entity.name.module",foreground:D["color-tv-blue-a600"]},{token:"",background:D["color-white"]}],colors:{"editor.foreground":D["color-cold-gray-900"],"editor.background":"#00000000","editorLineNumber.foreground":D["color-cold-gray-400"],"editorLineNumber.activeForeground":D["color-cold-gray-700"],"editorHoverWidget.background":D["color-white"],"editorHoverWidget.statusBarBackground":D["color-cold-gray-150"],"editorHoverWidget.foreground":D["color-cold-gray-900"],"editorWidget.background":D["color-white"],"editorWidget.foreground":D["color-cold-gray-900"],"editorGutter.background":"#00000000","editor.foldBackground":Mt(D["color-cold-gray-200"],.5),"editor.lineHighlightBackground":D["color-tv-blue-50"],"editor.lineHighlightBorder":D["color-tv-blue-50"],"editor.rangeHighlightBackground":D["color-tv-blue-a800"],"editorBracketMatch.background":D["color-cold-gray-150"],"editor.selectionBackground":D["color-tv-blue-100"],"editor.selectionHighlightBackground":D["color-tv-blue-50"],"editor.findMatchBackground":D["color-tan-orange-100"],"editor.findMatchHighlightBackground":D["color-tan-orange-100"],"editor.findMatchBorder":D["color-tan-orange-500"],"list.foreground":D["color-cold-gray-900"],"list.hoverForeground":D["color-cold-gray-900"],"list.activeSelectionBackground":D["color-tv-blue-500"],"list.hoverBackground":D["color-tv-blue-50"],"list.focusHighlightForeground":D["color-tv-blue-100"],"list.inactiveSelectionBackground":D["color-tv-blue-500"],"keybindingLabel.background":D["color-white"],"keybindingLabel.foreground":D["color-cold-gray-900"],"keybindingLabel.border":D["color-cold-gray-150"],"input.foreground":D["color-cold-gray-900"],"textLink.foreground":D["color-tv-blue-500"],"textLink.activeForeground":D["color-tv-blue-600"],"peekViewEditor.matchHighlightBackground":D["color-tan-orange-100"],"peekViewResult.lineForeground":D["color-cold-gray-900"],"editorMarkerNavigationWarning.background":D["color-banana-yellow-800"],"inputValidation.warningBackground":D["color-banana-yellow-800"],"diffEditor.insertedTextBackground":Mt(D["color-forest-green-500"],.3),"diffEditor.insertedLineBackground":Mt(D["color-forest-green-500"],.15),"diffEditor.removedTextBackground":Mt(D["color-ripe-red-500"],.3),"diffEditor.removedLineBackground":Mt(D["color-ripe-red-500"],.15),"editorInlayHint.background":D["color-cold-gray-150"],"editorInlayHint.foreground":D["color-cold-gray-550"],"editorError.foreground":D["color-ripe-red-500"],"editorWarning.foreground":D["color-tan-orange-500"]}},ln={base:"vs-dark",inherit:!0,rules:[{token:"comment",foreground:D["color-cold-gray-500"]},{token:"comment.annotation",fontStyle:"bold"},{token:"text",foreground:D["color-white"]},{token:"string",foreground:D["color-iguana-green-700"]},{token:"constant.numeric",foreground:D["color-banana-yellow-900"]},{token:"constant.language",foreground:D["color-ripe-red-300"]},{token:"constant.other.color",foreground:D["color-ripe-red-300"]},{token:"constant.other",foreground:D["color-ripe-red-300"]},{token:"support.variable",foreground:D["color-ripe-red-300"]},{token:"support.function",foreground:D["color-tv-blue-300"]},{token:"support.method",foreground:D["color-tv-blue-300"]},{token:"support.type",foreground:D["color-minty-green-300"],fontStyle:"bold"},{token:"entity.name.type",foreground:D["color-minty-green-300"],fontStyle:"bold"},{token:"keyword.equals",foreground:D["color-minty-green-300"]},{token:"keyword.operator",foreground:D["color-minty-green-300"]},{token:"keyword.other",foreground:D["color-minty-green-300"]},{token:"keyword",foreground:D["color-minty-green-300"]},{token:"variable.other",foreground:D["color-cold-gray-200"]},{token:"variable.other.property",foreground:D["color-cold-gray-200"]},{token:"paren",foreground:D["color-white"]},{token:"entity.name.function",foreground:D["color-tv-blue-400"]},{token:"entity.name.method",foreground:D["color-tv-blue-400"]},{token:"meta.function-call",foreground:D["color-grapes-purple-300"]},{token:"entity.name.module.name",foreground:D["color-grapes-purple-300"]},{token:"entity.name.module",foreground:D["color-tv-blue-300"]},{token:"",background:D["color-cold-gray-900"]}],colors:{"editor.foreground":D["color-white"],"editor.background":D["color-cold-gray-900"],"editorLineNumber.foreground":D["color-cold-gray-500"],"editorLineNumber.activeForeground":D["color-cold-gray-300"],"editorWidget.background":D["color-cold-gray-850"],"editorHoverWidget.background":D["color-cold-gray-850"],"editorHoverWidget.foreground":D["color-cold-gray-300"],"editorHoverWidget.statusBarBackground":D["color-cold-gray-900"],"editorWidget.foreground":D["color-cold-gray-300"],"editorGutter.background":D["color-cold-gray-900"],"editor.foldBackground":Mt(D["color-cold-gray-700"],.5),"editor.lineHighlightBackground":D["color-tv-blue-a900"],"editor.lineHighlightBorder":D["color-tv-blue-a900"],"editor.rangeHighlightBackground":D["color-tv-blue-a800"],"editorBracketMatch.background":D["color-cold-gray-750"],"editor.selectionBackground":D["color-tv-blue-a800"],"editor.selectionHighlightBackground":D["color-cold-gray-800"],"list.foreground":D["color-cold-gray-350"],"list.hoverForeground":D["color-cold-gray-350"],"list.activeSelectionBackground":D["color-tv-blue-500"],"list.hoverBackground":D["color-tv-blue-900"],"list.focusHighlightForeground":D["color-tv-blue-300"],"list.inactiveSelectionBackground":D["color-tv-blue-500"],"keybindingLabel.background":D["color-cold-gray-800"],"keybindingLabel.foreground":D["color-cold-gray-300"],"keybindingLabel.border":D["color-cold-gray-700"],"input.foreground":D["color-cold-gray-350"],"textLink.foreground":D["color-tv-blue-500"],"textLink.activeForeground":D["color-tv-blue-600"],"peekViewEditor.matchHighlightBackground":D["color-tan-orange-a800"],"peekViewResult.lineForeground":D["color-cold-gray-350"],"diffEditor.insertedTextBackground":Mt(D["color-iguana-green-a700"],.3),"diffEditor.insertedLineBackground":Mt(D["color-iguana-green-a700"],.15),"diffEditor.removedTextBackground":Mt(D["color-ripe-red-a400"],.3),"diffEditor.removedLineBackground":Mt(D["color-ripe-red-a400"],.15),"editorInlayHint.background":D["color-cold-gray-800"],"editorInlayHint.foreground":D["color-cold-gray-400"],"editorError.foreground":D["color-ripe-red-500"],"editorWarning.foreground":D["color-tan-orange-700"]}},Dd=/(\\(?:[\\'"]))|(\\$)|("|$)|($)/g,Ad=/(\\(?:[\\'"]))|(\\$)|('|$)|($)/g,no={"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 qd{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:(a=[],o)=>{const u=new Map,c=o.indexOf("(");for(let m=c+1,h=c;m<o.length;m++)o[m]!==","&&o[m]!==")"||(h++,u.set(o.slice(h,m),h),h=m+1);return a.map(({name:m,displayType:h,desc:b})=>{const g=[],w=u.get(m),T=w+m.length;return g.push(this._formatter.paragraph(this._formatter.bold(m),this._formatter.italic(h||""))),b&&g.push(Array.isArray(b)?b.join(this._formatter.lineBreak):b),{label:[w,T],documentation:{value:g.join(this._formatter.lineBreak)}}})}}),this._formatter=xe,this._isMac=/(Mac|iPhone|iPod|iPad)/i.test(n)}getSignatureHelpValues(n,a){const o=this._getFuncItems(n);if(!(o!=null&&o.length))return null;const u=this._getSequentialSignatures(n,o),c=this._getActiveIndex(o,a);return{signatures:u,...c}}_getActiveIndex(n,a=[]){let o=0,u=-1;a.some(m=>!!m)||(u=a.length-1);const c=a.pop();if(c)for(const[m,h]of n.entries()){const{args:b}=h;if(b&&b.length){const g=b.findIndex(w=>w.name===c);if(g!=-1){u=g,o=m;break}}}return{activeParameter:u,activeSignature:o}}_getFuncItems(n){return gt.functions.get(n)||Lt.userFuncs.get(n)||Lt.methodFuncs.get(n)}_getSequentialSignatures(n,a){return a.map(o=>{const u=this._getSignatureLabel(n,o);return{label:u,documentation:this._getFormattedSignatureDocumentation(o),parameters:this._getSignatureParams(o.args,u)}})}_getSignatureLabel(n,a,o=!1){const u=[n];return o&&u.push("<type>"),a.args&&(u.push("("),u.push(a.args.map(({name:c})=>c).join(", ")),u.push(")")),u.join("")}_getFormattedSignatureDocumentation(n){const{desc:a}=n,o=[];a&&o.push(Array.isArray(a)?a.join(this._formatter.lineBreak):a);const u=`${this._formatter.code(this._isMac?"⌘":"Ctrl")} +
130
+ `)+N+`return __p
131
+ }`;var ne=Jc(function(){return _e(p,X+"return "+N).apply(a,f)});if(ne.source=N,Ai(ne))throw ne;return ne}function Zg(e){return be(e).toLowerCase()}function Jg(e){return be(e).toUpperCase()}function eb(e,t,r){if(e=be(e),e&&(r||t===a))return ll(e);if(!e||!(t=mt(t)))return e;var i=Ot(e),l=Ot(t),p=cl(i,l),f=ul(i,l)+1;return yr(i,p,f).join("")}function tb(e,t,r){if(e=be(e),e&&(r||t===a))return e.slice(0,pl(e)+1);if(!e||!(t=mt(t)))return e;var i=Ot(e),l=ul(i,Ot(t))+1;return yr(i,0,l).join("")}function rb(e,t,r){if(e=be(e),e&&(r||t===a))return e.replace(Ia,"");if(!e||!(t=mt(t)))return e;var i=Ot(e),l=cl(i,Ot(t));return yr(i,l).join("")}function ab(e,t){var r=ue,i=bt;if(Ce(t)){var l="separator"in t?t.separator:l;r="length"in t?se(t.length):r,i="omission"in t?mt(t.omission):i}e=be(e);var p=e.length;if(Hr(e)){var f=Ot(e);p=f.length}if(r>=p)return e;var _=r-$r(i);if(_<1)return i;var v=f?yr(f,0,_).join(""):e.slice(0,_);if(l===a)return v+i;if(f&&(_+=v.length-_),qi(l)){if(e.slice(_).search(l)){var C,S=v;for(l.global||(l=Hn(l.source,be(ge.exec(l))+"g")),l.lastIndex=0;C=l.exec(S);)var N=C.index;v=v.slice(0,N===a?_:N)}}else if(e.indexOf(mt(l),_)!=_){var U=v.lastIndexOf(l);U>-1&&(v=v.slice(0,U))}return v+i}function sb(e){return e=be(e),e&&va.test(e)?e.replace(Gt,Nm):e}var nb=Zr(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),zi=ec("toUpperCase");function Zc(e,t,r){return e=be(e),t=r?a:t,t===a?Am(e)?Em(e):gm(e):e.match(t)||[]}var Jc=ie(function(e,t){try{return dt(e,a,t)}catch(r){return Ai(r)?r:new re(r)}}),ib=Zt(function(e,t){return vt(t,function(r){r=Wt(r),Kt(e,r,ki(e[r],e))}),e});function ob(e){var t=e==null?0:e.length,r=K();return e=t?Ae(e,function(i){if(typeof i[1]!="function")throw new Tt(m);return[r(i[0]),i[1]]}):[],ie(function(i){for(var l=-1;++l<t;){var p=e[l];if(dt(p[0],this,i))return dt(p[1],this,i)}})}function lb(e){return Of(kt(e,I))}function Ni(e){return function(){return e}}function cb(e,t){return e==null||e!==e?t:e}var ub=rc(),db=rc(!0);function it(e){return e}function Oi(e){return Nl(typeof e=="function"?e:kt(e,I))}function pb(e){return Pl(kt(e,I))}function mb(e,t){return El(e,kt(t,I))}var fb=ie(function(e,t){return function(r){return Oa(r,e,t)}}),yb=ie(function(e,t){return function(r){return Oa(e,r,t)}});function Pi(e,t,r){var i=He(t),l=Ns(t,i);r==null&&!(Ce(t)&&(l.length||!i.length))&&(r=t,t=e,e=this,l=Ns(t,He(t)));var p=!(Ce(r)&&"chain"in r)||!!r.chain,f=er(e);return vt(l,function(_){var v=t[_];e[_]=v,f&&(e.prototype[_]=function(){var C=this.__chain__;if(p||C){var S=e(this.__wrapped__),N=S.__actions__=at(this.__actions__);return N.push({func:v,args:arguments,thisArg:e}),S.__chain__=C,S}return v.apply(e,cr([this.value()],arguments))})}),e}function hb(){return Xe._===this&&(Xe._=Bm),this}function Ei(){}function _b(e){return e=se(e),ie(function(t){return Rl(t,e)})}var gb=pi(Ae),bb=pi(al),xb=pi(Ln);function eu(e){return bi(e)?Mn(Wt(e)):Kf(e)}function wb(e){return function(t){return e==null?a:Ar(e,t)}}var vb=sc(),Tb=sc(!0);function Ri(){return[]}function Li(){return!1}function Ib(){return{}}function kb(){return""}function Db(){return!0}function Ab(e,t){if(e=se(e),e<1||e>Le)return[];var r=te,i=Ye(e,te);t=K(t),e-=te;for(var l=Bn(i,t);++r<e;)t(r);return l}function qb(e){return ae(e)?Ae(e,Wt):ft(e)?[e]:at(xc(be(e)))}function Cb(e){var t=++Fm;return be(e)+t}var Sb=Ms(function(e,t){return e+t},0),zb=mi("ceil"),Nb=Ms(function(e,t){return e/t},1),Ob=mi("floor");function Pb(e){return e&&e.length?zs(e,it,Zn):a}function Eb(e,t){return e&&e.length?zs(e,K(t,2),Zn):a}function Rb(e){return il(e,it)}function Lb(e,t){return il(e,K(t,2))}function Mb(e){return e&&e.length?zs(e,it,ri):a}function Fb(e,t){return e&&e.length?zs(e,K(t,2),ri):a}var jb=Ms(function(e,t){return e*t},1),Bb=mi("round"),Ub=Ms(function(e,t){return e-t},0);function Wb(e){return e&&e.length?jn(e,it):0}function Hb(e,t){return e&&e.length?jn(e,K(t,2)):0}return d.after=p_,d.ary=zc,d.assign=J_,d.assignIn=$c,d.assignInWith=Qs,d.assignWith=eg,d.at=tg,d.before=Nc,d.bind=ki,d.bindAll=ib,d.bindKey=Oc,d.castArray=I_,d.chain=qc,d.chunk=Oy,d.compact=Py,d.concat=Ey,d.cond=ob,d.conforms=lb,d.constant=Ni,d.countBy=Wh,d.create=rg,d.curry=Pc,d.curryRight=Ec,d.debounce=Rc,d.defaults=ag,d.defaultsDeep=sg,d.defer=m_,d.delay=f_,d.difference=Ry,d.differenceBy=Ly,d.differenceWith=My,d.drop=Fy,d.dropRight=jy,d.dropRightWhile=By,d.dropWhile=Uy,d.fill=Wy,d.filter=$h,d.flatMap=Vh,d.flatMapDeep=Yh,d.flatMapDepth=Kh,d.flatten=Ic,d.flattenDeep=Hy,d.flattenDepth=$y,d.flip=y_,d.flow=ub,d.flowRight=db,d.fromPairs=Xy,d.functions=dg,d.functionsIn=pg,d.groupBy=Qh,d.initial=Vy,d.intersection=Yy,d.intersectionBy=Ky,d.intersectionWith=Qy,d.invert=fg,d.invertBy=yg,d.invokeMap=Jh,d.iteratee=Oi,d.keyBy=e_,d.keys=He,d.keysIn=nt,d.map=$s,d.mapKeys=_g,d.mapValues=gg,d.matches=pb,d.matchesProperty=mb,d.memoize=Gs,d.merge=bg,d.mergeWith=Xc,d.method=fb,d.methodOf=yb,d.mixin=Pi,d.negate=Vs,d.nthArg=_b,d.omit=xg,d.omitBy=wg,d.once=h_,d.orderBy=t_,d.over=gb,d.overArgs=__,d.overEvery=bb,d.overSome=xb,d.partial=Di,d.partialRight=Lc,d.partition=r_,d.pick=vg,d.pickBy=Gc,d.property=eu,d.propertyOf=wb,d.pull=th,d.pullAll=Dc,d.pullAllBy=rh,d.pullAllWith=ah,d.pullAt=sh,d.range=vb,d.rangeRight=Tb,d.rearg=g_,d.reject=n_,d.remove=nh,d.rest=b_,d.reverse=Ti,d.sampleSize=o_,d.set=Ig,d.setWith=kg,d.shuffle=l_,d.slice=ih,d.sortBy=d_,d.sortedUniq=mh,d.sortedUniqBy=fh,d.split=Vg,d.spread=x_,d.tail=yh,d.take=hh,d.takeRight=_h,d.takeRightWhile=gh,d.takeWhile=bh,d.tap=Ph,d.throttle=w_,d.thru=Hs,d.toArray=Uc,d.toPairs=Vc,d.toPairsIn=Yc,d.toPath=qb,d.toPlainObject=Hc,d.transform=Dg,d.unary=v_,d.union=xh,d.unionBy=wh,d.unionWith=vh,d.uniq=Th,d.uniqBy=Ih,d.uniqWith=kh,d.unset=Ag,d.unzip=Ii,d.unzipWith=Ac,d.update=qg,d.updateWith=Cg,d.values=ta,d.valuesIn=Sg,d.without=Dh,d.words=Zc,d.wrap=T_,d.xor=Ah,d.xorBy=qh,d.xorWith=Ch,d.zip=Sh,d.zipObject=zh,d.zipObjectDeep=Nh,d.zipWith=Oh,d.entries=Vc,d.entriesIn=Yc,d.extend=$c,d.extendWith=Qs,Pi(d,d),d.add=Sb,d.attempt=Jc,d.camelCase=Pg,d.capitalize=Kc,d.ceil=zb,d.clamp=zg,d.clone=k_,d.cloneDeep=A_,d.cloneDeepWith=q_,d.cloneWith=D_,d.conformsTo=C_,d.deburr=Qc,d.defaultTo=cb,d.divide=Nb,d.endsWith=Eg,d.eq=Et,d.escape=Rg,d.escapeRegExp=Lg,d.every=Hh,d.find=Xh,d.findIndex=vc,d.findKey=ng,d.findLast=Gh,d.findLastIndex=Tc,d.findLastKey=ig,d.floor=Ob,d.forEach=Cc,d.forEachRight=Sc,d.forIn=og,d.forInRight=lg,d.forOwn=cg,d.forOwnRight=ug,d.get=Ci,d.gt=S_,d.gte=z_,d.has=mg,d.hasIn=Si,d.head=kc,d.identity=it,d.includes=Zh,d.indexOf=Gy,d.inRange=Ng,d.invoke=hg,d.isArguments=Sr,d.isArray=ae,d.isArrayBuffer=N_,d.isArrayLike=st,d.isArrayLikeObject=Pe,d.isBoolean=O_,d.isBuffer=hr,d.isDate=P_,d.isElement=E_,d.isEmpty=R_,d.isEqual=L_,d.isEqualWith=M_,d.isError=Ai,d.isFinite=F_,d.isFunction=er,d.isInteger=Mc,d.isLength=Ys,d.isMap=Fc,d.isMatch=j_,d.isMatchWith=B_,d.isNaN=U_,d.isNative=W_,d.isNil=$_,d.isNull=H_,d.isNumber=jc,d.isObject=Ce,d.isObjectLike=Ne,d.isPlainObject=Fa,d.isRegExp=qi,d.isSafeInteger=X_,d.isSet=Bc,d.isString=Ks,d.isSymbol=ft,d.isTypedArray=ea,d.isUndefined=G_,d.isWeakMap=V_,d.isWeakSet=Y_,d.join=Zy,d.kebabCase=Mg,d.last=At,d.lastIndexOf=Jy,d.lowerCase=Fg,d.lowerFirst=jg,d.lt=K_,d.lte=Q_,d.max=Pb,d.maxBy=Eb,d.mean=Rb,d.meanBy=Lb,d.min=Mb,d.minBy=Fb,d.stubArray=Ri,d.stubFalse=Li,d.stubObject=Ib,d.stubString=kb,d.stubTrue=Db,d.multiply=jb,d.nth=eh,d.noConflict=hb,d.noop=Ei,d.now=Xs,d.pad=Bg,d.padEnd=Ug,d.padStart=Wg,d.parseInt=Hg,d.random=Og,d.reduce=a_,d.reduceRight=s_,d.repeat=$g,d.replace=Xg,d.result=Tg,d.round=Bb,d.runInContext=x,d.sample=i_,d.size=c_,d.snakeCase=Gg,d.some=u_,d.sortedIndex=oh,d.sortedIndexBy=lh,d.sortedIndexOf=ch,d.sortedLastIndex=uh,d.sortedLastIndexBy=dh,d.sortedLastIndexOf=ph,d.startCase=Yg,d.startsWith=Kg,d.subtract=Ub,d.sum=Wb,d.sumBy=Hb,d.template=Qg,d.times=Ab,d.toFinite=tr,d.toInteger=se,d.toLength=Wc,d.toLower=Zg,d.toNumber=qt,d.toSafeInteger=Z_,d.toString=be,d.toUpper=Jg,d.trim=eb,d.trimEnd=tb,d.trimStart=rb,d.truncate=ab,d.unescape=sb,d.uniqueId=Cb,d.upperCase=nb,d.upperFirst=zi,d.each=Cc,d.eachRight=Sc,d.first=kc,Pi(d,function(){var e={};return Bt(d,function(t,r){we.call(d.prototype,r)||(e[r]=t)}),e}(),{chain:!1}),d.VERSION=o,vt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){d[e].placeholder=d}),vt(["drop","take"],function(e,t){pe.prototype[e]=function(r){r=r===a?1:Ue(se(r),0);var i=this.__filtered__&&!t?new pe(this):this.clone();return i.__filtered__?i.__takeCount__=Ye(r,i.__takeCount__):i.__views__.push({size:Ye(r,te),type:e+(i.__dir__<0?"Right":"")}),i},pe.prototype[e+"Right"]=function(r){return this.reverse()[e](r).reverse()}}),vt(["filter","map","takeWhile"],function(e,t){var r=t+1,i=r==Fe||r==he;pe.prototype[e]=function(l){var p=this.clone();return p.__iteratees__.push({iteratee:K(l,3),type:r}),p.__filtered__=p.__filtered__||i,p}}),vt(["head","last"],function(e,t){var r="take"+(t?"Right":"");pe.prototype[e]=function(){return this[r](1).value()[0]}}),vt(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");pe.prototype[e]=function(){return this.__filtered__?new pe(this):this[r](1)}}),pe.prototype.compact=function(){return this.filter(it)},pe.prototype.find=function(e){return this.filter(e).head()},pe.prototype.findLast=function(e){return this.reverse().find(e)},pe.prototype.invokeMap=ie(function(e,t){return typeof e=="function"?new pe(this):this.map(function(r){return Oa(r,e,t)})}),pe.prototype.reject=function(e){return this.filter(Vs(K(e)))},pe.prototype.slice=function(e,t){e=se(e);var r=this;return r.__filtered__&&(e>0||t<0)?new pe(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==a&&(t=se(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},pe.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},pe.prototype.toArray=function(){return this.take(te)},Bt(pe.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),l=d[i?"take"+(t=="last"?"Right":""):t],p=i||/^find/.test(t);l&&(d.prototype[t]=function(){var f=this.__wrapped__,_=i?[1]:arguments,v=f instanceof pe,C=_[0],S=v||ae(f),N=function(le){var me=l.apply(d,cr([le],_));return i&&U?me[0]:me};S&&r&&typeof C=="function"&&C.length!=1&&(v=S=!1);var U=this.__chain__,X=!!this.__actions__.length,Z=p&&!U,ne=v&&!X;if(!p&&S){f=ne?f:new pe(this);var J=e.apply(f,_);return J.__actions__.push({func:Hs,args:[N],thisArg:a}),new It(J,U)}return Z&&ne?e.apply(this,_):(J=this.thru(N),Z?i?J.value()[0]:J.value():J)})}),vt(["pop","push","shift","sort","splice","unshift"],function(e){var t=hs[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);d.prototype[e]=function(){var l=arguments;if(i&&!this.__chain__){var p=this.value();return t.apply(ae(p)?p:[],l)}return this[r](function(f){return t.apply(ae(f)?f:[],l)})}}),Bt(pe.prototype,function(e,t){var r=d[t];if(r){var i=r.name+"";we.call(Yr,i)||(Yr[i]=[]),Yr[i].push({name:t,func:r})}}),Yr[Ls(a,Q).name]=[{name:"wrapper",func:a}],pe.prototype.clone=af,pe.prototype.reverse=sf,pe.prototype.value=nf,d.prototype.at=Eh,d.prototype.chain=Rh,d.prototype.commit=Lh,d.prototype.next=Mh,d.prototype.plant=jh,d.prototype.reverse=Bh,d.prototype.toJSON=d.prototype.valueOf=d.prototype.value=Uh,d.prototype.first=d.prototype.head,Da&&(d.prototype[Da]=Fh),d},Xr=Rm();vr?((vr.exports=Xr)._=Xr,On._=Xr):Xe._=Xr}).call(ra)}($a,$a.exports);var so=$a.exports;const Re="tccScript",sn={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(s){s[s.None=0]="None",s[s.Indent=1]="Indent",s[s.IndentOutdent=2]="IndentOutdent",s[s.Outdent=3]="Outdent"})(Ct||(Ct={}));const nn={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}}]},D={"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 Mt(s,n=1){return s+Math.round(255*Math.min(Math.max(n,0),1)).toString(16).toUpperCase().padStart(2,"0")}const on={base:"vs",inherit:!0,rules:[{token:"comment",foreground:D["color-cold-gray-400"]},{token:"comment.annotation",fontStyle:"bold"},{token:"text",foreground:D["color-cold-gray-900"]},{token:"string",foreground:D["color-iguana-green-700"]},{token:"constant.numeric",foreground:D["color-banana-yellow-900"]},{token:"constant.language",foreground:D["color-ripe-red-a600"]},{token:"constant.other.color",foreground:D["color-ripe-red-a600"]},{token:"constant.other",foreground:D["color-ripe-red-a600"]},{token:"support.variable",foreground:D["color-ripe-red-a600"]},{token:"support.function",foreground:D["color-tv-blue-a600"]},{token:"support.type",foreground:D["color-minty-green-400"],fontStyle:"bold"},{token:"entity.name.type",foreground:D["color-minty-green-400"],fontStyle:"bold"},{token:"support.method",foreground:D["color-tv-blue-a600"]},{token:"keyword.equals",foreground:D["color-minty-green-400"]},{token:"keyword.operator",foreground:D["color-minty-green-400"]},{token:"keyword.other",foreground:D["color-minty-green-400"]},{token:"keyword",foreground:D["color-minty-green-400"]},{token:"variable.other",foreground:D["color-cold-gray-800"]},{token:"variable.other.property",foreground:D["color-cold-gray-800"]},{token:"paren",foreground:D["color-black"]},{token:"entity.name.function",foreground:D["color-tv-blue-900"]},{token:"entity.name.method",foreground:D["color-tv-blue-900"]},{token:"meta.function-call",foreground:D["color-grapes-purple-600"]},{token:"entity.name.module.name",foreground:D["color-grapes-purple-600"]},{token:"entity.name.module",foreground:D["color-tv-blue-a600"]},{token:"",background:D["color-white"]}],colors:{"editor.foreground":D["color-cold-gray-900"],"editor.background":"#00000000","editorLineNumber.foreground":D["color-cold-gray-400"],"editorLineNumber.activeForeground":D["color-cold-gray-700"],"editorHoverWidget.background":D["color-white"],"editorHoverWidget.statusBarBackground":D["color-cold-gray-150"],"editorHoverWidget.foreground":D["color-cold-gray-900"],"editorWidget.background":D["color-white"],"editorWidget.foreground":D["color-cold-gray-900"],"editorGutter.background":"#00000000","editor.foldBackground":Mt(D["color-cold-gray-200"],.5),"editor.lineHighlightBackground":D["color-tv-blue-50"],"editor.lineHighlightBorder":D["color-tv-blue-50"],"editor.rangeHighlightBackground":D["color-tv-blue-a800"],"editorBracketMatch.background":D["color-cold-gray-150"],"editor.selectionBackground":D["color-tv-blue-100"],"editor.selectionHighlightBackground":D["color-tv-blue-50"],"editor.findMatchBackground":D["color-tan-orange-100"],"editor.findMatchHighlightBackground":D["color-tan-orange-100"],"editor.findMatchBorder":D["color-tan-orange-500"],"list.foreground":D["color-cold-gray-900"],"list.hoverForeground":D["color-cold-gray-900"],"list.activeSelectionBackground":D["color-tv-blue-500"],"list.hoverBackground":D["color-tv-blue-50"],"list.focusHighlightForeground":D["color-tv-blue-100"],"list.inactiveSelectionBackground":D["color-tv-blue-500"],"keybindingLabel.background":D["color-white"],"keybindingLabel.foreground":D["color-cold-gray-900"],"keybindingLabel.border":D["color-cold-gray-150"],"input.foreground":D["color-cold-gray-900"],"textLink.foreground":D["color-tv-blue-500"],"textLink.activeForeground":D["color-tv-blue-600"],"peekViewEditor.matchHighlightBackground":D["color-tan-orange-100"],"peekViewResult.lineForeground":D["color-cold-gray-900"],"editorMarkerNavigationWarning.background":D["color-banana-yellow-800"],"inputValidation.warningBackground":D["color-banana-yellow-800"],"diffEditor.insertedTextBackground":Mt(D["color-forest-green-500"],.3),"diffEditor.insertedLineBackground":Mt(D["color-forest-green-500"],.15),"diffEditor.removedTextBackground":Mt(D["color-ripe-red-500"],.3),"diffEditor.removedLineBackground":Mt(D["color-ripe-red-500"],.15),"editorInlayHint.background":D["color-cold-gray-150"],"editorInlayHint.foreground":D["color-cold-gray-550"],"editorError.foreground":D["color-ripe-red-500"],"editorWarning.foreground":D["color-tan-orange-500"]}},ln={base:"vs-dark",inherit:!0,rules:[{token:"comment",foreground:D["color-cold-gray-500"]},{token:"comment.annotation",fontStyle:"bold"},{token:"text",foreground:D["color-white"]},{token:"string",foreground:D["color-iguana-green-700"]},{token:"constant.numeric",foreground:D["color-banana-yellow-900"]},{token:"constant.language",foreground:D["color-ripe-red-300"]},{token:"constant.other.color",foreground:D["color-ripe-red-300"]},{token:"constant.other",foreground:D["color-ripe-red-300"]},{token:"support.variable",foreground:D["color-ripe-red-300"]},{token:"support.function",foreground:D["color-tv-blue-300"]},{token:"support.method",foreground:D["color-tv-blue-300"]},{token:"support.type",foreground:D["color-minty-green-300"],fontStyle:"bold"},{token:"entity.name.type",foreground:D["color-minty-green-300"],fontStyle:"bold"},{token:"keyword.equals",foreground:D["color-minty-green-300"]},{token:"keyword.operator",foreground:D["color-minty-green-300"]},{token:"keyword.other",foreground:D["color-minty-green-300"]},{token:"keyword",foreground:D["color-minty-green-300"]},{token:"variable.other",foreground:D["color-cold-gray-200"]},{token:"variable.other.property",foreground:D["color-cold-gray-200"]},{token:"paren",foreground:D["color-white"]},{token:"entity.name.function",foreground:D["color-tv-blue-400"]},{token:"entity.name.method",foreground:D["color-tv-blue-400"]},{token:"meta.function-call",foreground:D["color-grapes-purple-300"]},{token:"entity.name.module.name",foreground:D["color-grapes-purple-300"]},{token:"entity.name.module",foreground:D["color-tv-blue-300"]},{token:"",background:D["color-cold-gray-900"]}],colors:{"editor.foreground":D["color-white"],"editor.background":D["color-cold-gray-900"],"editorLineNumber.foreground":D["color-cold-gray-500"],"editorLineNumber.activeForeground":D["color-cold-gray-300"],"editorWidget.background":D["color-cold-gray-850"],"editorHoverWidget.background":D["color-cold-gray-850"],"editorHoverWidget.foreground":D["color-cold-gray-300"],"editorHoverWidget.statusBarBackground":D["color-cold-gray-900"],"editorWidget.foreground":D["color-cold-gray-300"],"editorGutter.background":D["color-cold-gray-900"],"editor.foldBackground":Mt(D["color-cold-gray-700"],.5),"editor.lineHighlightBackground":D["color-tv-blue-a900"],"editor.lineHighlightBorder":D["color-tv-blue-a900"],"editor.rangeHighlightBackground":D["color-tv-blue-a800"],"editorBracketMatch.background":D["color-cold-gray-750"],"editor.selectionBackground":D["color-tv-blue-a800"],"editor.selectionHighlightBackground":D["color-cold-gray-800"],"list.foreground":D["color-cold-gray-350"],"list.hoverForeground":D["color-cold-gray-350"],"list.activeSelectionBackground":D["color-tv-blue-500"],"list.hoverBackground":D["color-tv-blue-900"],"list.focusHighlightForeground":D["color-tv-blue-300"],"list.inactiveSelectionBackground":D["color-tv-blue-500"],"keybindingLabel.background":D["color-cold-gray-800"],"keybindingLabel.foreground":D["color-cold-gray-300"],"keybindingLabel.border":D["color-cold-gray-700"],"input.foreground":D["color-cold-gray-350"],"textLink.foreground":D["color-tv-blue-500"],"textLink.activeForeground":D["color-tv-blue-600"],"peekViewEditor.matchHighlightBackground":D["color-tan-orange-a800"],"peekViewResult.lineForeground":D["color-cold-gray-350"],"diffEditor.insertedTextBackground":Mt(D["color-iguana-green-a700"],.3),"diffEditor.insertedLineBackground":Mt(D["color-iguana-green-a700"],.15),"diffEditor.removedTextBackground":Mt(D["color-ripe-red-a400"],.3),"diffEditor.removedLineBackground":Mt(D["color-ripe-red-a400"],.15),"editorInlayHint.background":D["color-cold-gray-800"],"editorInlayHint.foreground":D["color-cold-gray-400"],"editorError.foreground":D["color-ripe-red-500"],"editorWarning.foreground":D["color-tan-orange-700"]}},Dd=/(\\(?:[\\'"]))|(\\$)|("|$)|($)/g,Ad=/(\\(?:[\\'"]))|(\\$)|('|$)|($)/g,no={"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 qd{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:(a=[],o)=>{const u=new Map,c=o.indexOf("(");for(let m=c+1,h=c;m<o.length;m++)o[m]!==","&&o[m]!==")"||(h++,u.set(o.slice(h,m),h),h=m+1);return a.map(({name:m,displayType:h,desc:b})=>{const g=[],w=u.get(m),I=w+m.length;return g.push(this._formatter.paragraph(this._formatter.bold(m),this._formatter.italic(h||""))),b&&g.push(Array.isArray(b)?b.join(this._formatter.lineBreak):b),{label:[w,I],documentation:{value:g.join(this._formatter.lineBreak)}}})}}),this._formatter=xe,this._isMac=/(Mac|iPhone|iPod|iPad)/i.test(n)}getSignatureHelpValues(n,a){const o=this._getFuncItems(n);if(!(o!=null&&o.length))return null;const u=this._getSequentialSignatures(n,o),c=this._getActiveIndex(o,a);return{signatures:u,...c}}_getActiveIndex(n,a=[]){let o=0,u=-1;a.some(m=>!!m)||(u=a.length-1);const c=a.pop();if(c)for(const[m,h]of n.entries()){const{args:b}=h;if(b&&b.length){const g=b.findIndex(w=>w.name===c);if(g!=-1){u=g,o=m;break}}}return{activeParameter:u,activeSignature:o}}_getFuncItems(n){return gt.functions.get(n)||Lt.userFuncs.get(n)||Lt.methodFuncs.get(n)}_getSequentialSignatures(n,a){return a.map(o=>{const u=this._getSignatureLabel(n,o);return{label:u,documentation:this._getFormattedSignatureDocumentation(o),parameters:this._getSignatureParams(o.args,u)}})}_getSignatureLabel(n,a,o=!1){const u=[n];return o&&u.push("<type>"),a.args&&(u.push("("),u.push(a.args.map(({name:c})=>c).join(", ")),u.push(")")),u.join("")}_getFormattedSignatureDocumentation(n){const{desc:a}=n,o=[];a&&o.push(Array.isArray(a)?a.join(this._formatter.lineBreak):a);const u=`${this._formatter.code(this._isMac?"⌘":"Ctrl")} +
132
132
  ${this._formatter.code("Shift")} +
133
- ${this._formatter.code("Space")}`;return o.push(this._formatter.lineBreak),o.push(this._formatter.italic(`${u} ${ve.toTriggerParameterHints}`)),{value:this._formatter.paragraph(...o)}}}const Cd=new qd(window.navigator.userAgent);class Sd{constructor(){Object.defineProperty(this,"_colors",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._colors=no}getDocumentColors(n){const a=[];return n.forEach(o=>{const{range:u}=o;let{matches:c}=o;c=c||[];const m=c[0]||"";let h=null;this._isHexToken(m)?h=this._hexToColor(m):this._isRgbColor(m)?h=this._rgbToColor(m):this._colors[m]?h=this._hexToColor(this._colors[m]):this._isColorExpression(m)&&c[1]&&c[6]&&(h=this._extractNewExpression(c[1],Number(c[6]))),h&&a.push({color:h,range:u})}),a}get _defultColorsRegStr(){return Object.keys(no).reduce((n,a)=>`${n}|${a}`,"")}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:a,range:o}){const u=n.getValueInRange(o);if(this._isHexToken(u)||this._colors[u])return[{label:this._colorRgbRepresentation(a)},{label:this._colorHexRepresentation(a)}];if(this._isColorExpression(u)||this._isRgbColor(u)){const c=this._isColorExpression(u)?this._colorNewRepresentation(a):this._colorRgbRepresentation(a);if(!c)return[];const m=this._colorHexRepresentation(a);return[{label:c,textEdit:{text:c,range:o}},{label:m,textEdit:{text:m,range:o}}]}return null}_hexFromNumber(n){const a=this._denormalize(n).toString(16);return a.length===1?`0${a}`:a}_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,a){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(a)?{...o,alpha:this._normalizeAlpha(a)}:null}_colorHexRepresentation(n){const a=this._hexFromNumber(n.red),o=this._hexFromNumber(n.green),u=this._hexFromNumber(n.blue),c=this._hexFromNumber(n.alpha);return`#${a}${o}${u}${n.alpha===1?"":c}`}_colorRgbRepresentation(n){const a=this._denormalize(n.red),o=this._denormalize(n.green),u=this._denormalize(n.blue),c=this._denormalizeAlpha(n.alpha),m=[a,o,u];return c>0&&m.push(c),`color.rgb(${m.join(", ")})`}_colorNewRepresentation(n){const a={...n,alpha:1};return`color.new(${this._colorHexRepresentation(a)}, ${this._denormalizeAlpha(n.alpha)})`}_hexToColor(n){const a=(n=this._isHexToken(n)?n.slice(1):n).length===3||n.length===4,o=a?`${n.slice(0,1)}${n.slice(0,1)}`:n.slice(0,2),u=a?`${n.slice(1,2)}${n.slice(1,2)}`:n.slice(2,4),c=a?`${n.slice(2,3)}${n.slice(2,3)}`:n.slice(4,6),m=(a?`${n.slice(3,4)}${n.slice(3,4)}`:n.slice(6,8))||"ff";return{red:this._normalize(parseInt(o,16)),green:this._normalize(parseInt(u,16)),blue:this._normalize(parseInt(c,16)),alpha:this._normalize(parseInt(m,16))}}_rgbToColor(n){const a=n.replace(/[^\d,]/g,"").split(","),o=this._normalize(Number(a[0])),u=this._normalize(Number(a[1])),c=this._normalize(Number(a[2])),m=this._normalizeAlpha(Number(a[3]))||1;return isNaN(o)||isNaN(u)||isNaN(c)?null:{red:o,green:u,blue:c,alpha:m}}_isHexToken(n){return n.charAt(0)==="#"}_isRgbColor(n){return n.startsWith("color.rgb")}_isColorExpression(n){return n.startsWith("color.new")}}const cn=new Sd;function zd(s,n){var L;const a={startLineNumber:n.lineNumber,startColumn:1,endLineNumber:n.lineNumber,endColumn:n.column},o=s.getValueInRange(a),u=o.match(/([\w.]+)$/)||[],c=(L=u[0])==null?void 0:L.match(/.*[^\w.]+([\w.]+)(?=\.)|([\w.]+)(?=\.)/),m=c?c[1]?c[1]:c[2]?c[2]:void 0:void 0,h=s.getWordUntilPosition(n),b=Nr.parseCurrentInputFunc(o),g={startLineNumber:n.lineNumber,endLineNumber:n.lineNumber,startColumn:h.startColumn,endColumn:h.endColumn},w=s.getValueInRange({...g,startColumn:h.endColumn,endColumn:h.endColumn+1});Lt.nextIsBracket=w==="(";let T=io(Lt.getSuggestions(m)||[],g);if(u[0]==="."&&(T=[]),b&&!m&&!/=\s*\w+$/.test(o)){const M=io(Lt.getArgSuggestions(b.funcName)||[],g);T=T.concat(M)}return{suggestions:T||[]}}function Nd(s){if(s.kind!==1)return s;const{originInsertText:n}=s;return Lt.nextIsBracket?s.insertText=n:s.insertText=n+Lt.bracketsPostfix,s}function Od(s,n){const a=Nr.parseLineContentFuncVar(n.column,n.lineNumber,s,n);if(a&&a.docValue.length){const o=xd(a.docValue,a.index,a.isBuildIn);if(o)return{contents:[{value:o}]}}return{contents:[]}}function Pd(s,n){var T,L;const a={startLineNumber:n.lineNumber,endLineNumber:n.lineNumber,startColumn:1,endColumn:n.column},o=s.getValueInRange(a),u=s.findMatches(String(Dd),a,!0,!1,null,!0),c=s.findMatches(String(Ad),a,!0,!1,null,!0),m=(T=u.pop())==null?void 0:T.matches,h=(L=c.pop())==null?void 0:L.matches;let b=!1;u.length%2===0?m&&m[0]==='"'&&(b=!0):m&&!m[0]&&(b=!0);let g=!1;c.length%2===0?h&&h[0]==="'"&&(g=!0):h&&!h[0]&&(g=!0);const w=Nr.parseCurrentInputFuncAndArg(o,g,b);if(w){const{funcName:M,args:B}=w,P=Cd.getSignatureHelpValues(M,B);if(P)return{value:P,dispose:()=>{console.log("dispose")}}}return null}function Ed(s){let n=s.findMatches(cn.colorMatchesRegStr,!0,!0,!1,null,!0);return n=n.filter(o=>{const u=s.getValueInRange({...o.range,startColumn:0});return u.indexOf("//")===-1||u.indexOf("//")>o.range.endColumn}),cn.getDocumentColors(n)}function Rd(s,n){return cn.getDocumentColorPresentations(s,n)||[]}function Ld(s,n){const a=s.getModel(),o=Nr.parseLineContentFuncVar(n.startColumn+1,n.startLineNumber,a);if(!o||o.isBuildIn||!o.docValue||!o.docValue[0].pos)return o!=null&&o.isBuildIn?o:void 0;const{lineNumber:u,column:c}=o.docValue[0].pos,m={startLineNumber:u,endLineNumber:u,startColumn:c,endColumn:c};s.revealRangeInCenterIfOutsideViewport(m),s.setSelection(m)}function Md(s,n){return Nr.parseLineContentFuncVar(n.column,n.lineNumber,s,n)?{uri:s.uri,range:{startLineNumber:n.lineNumber,endLineNumber:n.lineNumber,startColumn:n.column-1,endColumn:n.column-1}}:null}function io(s,n){return s.map(a=>(a.range=n,a))}var ua={},da=ru;if(process.env.NODE_ENV==="production")ua.createRoot=da.createRoot,ua.hydrateRoot=da.hydrateRoot;else{var Xa=da.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;ua.createRoot=function(s,n){Xa.usingClientEntryPoint=!0;try{return da.createRoot(s,n)}finally{Xa.usingClientEntryPoint=!1}},ua.hydrateRoot=function(s,n,a){Xa.usingClientEntryPoint=!0;try{return da.hydrateRoot(s,n,a)}finally{Xa.usingClientEntryPoint=!1}}}var Ve;(function(s){s.added="added",s.removed="removed",s.modified="modified"})(Ve||(Ve={}));const Fd=(s,n)=>{const{close:a,retracement:o}=s,[u,c]=j.useState("modified");return j.useImperativeHandle(n,()=>({updateType(m){c(m)}})),O.jsxs("div",{className:`content-popup content-${u}-popup`,children:[O.jsx("div",{className:`triangle-popup triangle-${u}-popup`}),O.jsxs("div",{className:`header-popup header-${u}-popup`,children:[O.jsx("div",{className:"title-popup",children:"Local working changes"}),O.jsx("div",{className:"actions-popup",children:O.jsx("div",{onClick:a,"data-role":"button",className:"button-popup","data-name":"button-close-diff",children:O.jsx("span",{className:"icon-popup",role:"img",children:O.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12",width:"12",height:"12",children:O.jsx("path",{stroke:"currentColor",strokeWidth:"1.2",d:"m1.5 1.5 9 9m0-9-9 9"})})})})})]}),O.jsx("div",{id:"diffEditorContainer",style:{height:"100%"}})]})},jd=j.forwardRef(Fd);class Bd{constructor(n,a,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",a==null||a.onDidScrollChange(this.scrollChangeHandler.bind(this)),ua.createRoot(this._domNode).render(O.jsx(jd,{ref:u=>this._content=u,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,a,o){var u;this._top=a,(u=this._content)==null||u.updateType(o),this._domNode.style.top=`${n}px`,this._domNode.style.display="block"}hide(){this._domNode.style.display="none"}scrollChangeHandler(n){const a=n.scrollTop;this._domNode.style.top=`${this._top-a}px`}}function sr(){}sr.prototype={diff:function(n,a){var o,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c=u.callback;typeof u=="function"&&(c=u,u={}),this.options=u;var m=this;function h(k){return c?(setTimeout(function(){c(void 0,k)},0),!0):k}n=this.castInput(n),a=this.castInput(a),n=this.removeEmpty(this.tokenize(n)),a=this.removeEmpty(this.tokenize(a));var b=a.length,g=n.length,w=1,T=b+g;u.maxEditLength&&(T=Math.min(T,u.maxEditLength));var L=(o=u.timeout)!==null&&o!==void 0?o:1/0,M=Date.now()+L,B=[{oldPos:-1,lastComponent:void 0}],P=this.extractCommon(B[0],a,n,0);if(B[0].oldPos+1>=g&&P+1>=b)return h([{value:this.join(a),count:a.length}]);var Y=-1/0,F=1/0;function U(){for(var k=Math.max(Y,-w);k<=Math.min(F,w);k+=2){var E=void 0,G=B[k-1],V=B[k+1];G&&(B[k-1]=void 0);var he=!1;if(V){var _e=V.oldPos-k;he=V&&0<=_e&&_e<b}var ce=G&&G.oldPos+1<g;if(!he&&!ce){B[k]=void 0;continue}if(!ce||he&&G.oldPos+1<V.oldPos?E=m.addToPath(V,!0,void 0,0):E=m.addToPath(G,void 0,!0,1),P=m.extractCommon(E,a,n,k),E.oldPos+1>=g&&P+1>=b)return h(Ud(m,E.lastComponent,a,n,m.useLongestToken));B[k]=E,E.oldPos+1>=g&&(F=Math.min(F,k-1)),P+1>=b&&(Y=Math.max(Y,k+1))}w++}if(c)(function k(){setTimeout(function(){if(w>T||Date.now()>M)return c();U()||k()},0)})();else for(;w<=T&&Date.now()<=M;){var R=U();if(R)return R}},addToPath:function(n,a,o,u){var c=n.lastComponent;return c&&c.added===a&&c.removed===o?{oldPos:n.oldPos+u,lastComponent:{count:c.count+1,added:a,removed:o,previousComponent:c.previousComponent}}:{oldPos:n.oldPos+u,lastComponent:{count:1,added:a,removed:o,previousComponent:c}}},extractCommon:function(n,a,o,u){for(var c=a.length,m=o.length,h=n.oldPos,b=h-u,g=0;b+1<c&&h+1<m&&this.equals(a[b+1],o[h+1]);)b++,h++,g++;return g&&(n.lastComponent={count:g,previousComponent:n.lastComponent}),n.oldPos=h,b},equals:function(n,a){return this.options.comparator?this.options.comparator(n,a):n===a||this.options.ignoreCase&&n.toLowerCase()===a.toLowerCase()},removeEmpty:function(n){for(var a=[],o=0;o<n.length;o++)n[o]&&a.push(n[o]);return a},castInput:function(n){return n},tokenize:function(n){return n.split("")},join:function(n){return n.join("")}};function Ud(s,n,a,o,u){for(var c=[],m;n;)c.push(n),m=n.previousComponent,delete n.previousComponent,n=m;c.reverse();for(var h=0,b=c.length,g=0,w=0;h<b;h++){var T=c[h];if(T.removed){if(T.value=s.join(o.slice(w,w+T.count)),w+=T.count,h&&c[h-1].added){var M=c[h-1];c[h-1]=c[h],c[h]=M}}else{if(!T.added&&u){var L=a.slice(g,g+T.count);L=L.map(function(P,Y){var F=o[w+Y];return F.length>P.length?F:P}),T.value=s.join(L)}else T.value=s.join(a.slice(g,g+T.count));g+=T.count,T.added||(w+=T.count)}}var B=c[b-1];return b>1&&typeof B.value=="string"&&(B.added||B.removed)&&s.equals("",B.value)&&(c[b-2].value+=B.value,c.pop()),c}var oo=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,lo=/\S/,co=new sr;co.equals=function(s,n){return this.options.ignoreCase&&(s=s.toLowerCase(),n=n.toLowerCase()),s===n||this.options.ignoreWhitespace&&!lo.test(s)&&!lo.test(n)},co.tokenize=function(s){for(var n=s.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),a=0;a<n.length-1;a++)!n[a+1]&&n[a+2]&&oo.test(n[a])&&oo.test(n[a+2])&&(n[a]+=n[a+2],n.splice(a+1,2),a--);return n};var un=new sr;un.tokenize=function(s){this.options.stripTrailingCr&&(s=s.replace(/\r\n/g,`
134
- `));var n=[],a=s.split(/(\n|\r\n)/);a[a.length-1]||a.pop();for(var o=0;o<a.length;o++){var u=a[o];o%2&&!this.options.newlineIsToken?n[n.length-1]+=u:(this.options.ignoreWhitespace&&(u=u.trim()),n.push(u))}return n};function Wd(s,n,a){return un.diff(s,n,a)}var Hd=new sr;Hd.tokenize=function(s){return s.split(/(\S.+?[.!?])(?=\s+|$)/)};var $d=new sr;$d.tokenize=function(s){return s.split(/([{}:;,]|\s+)/)};function Ga(s){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ga=function(n){return typeof n}:Ga=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ga(s)}var Xd=Object.prototype.toString,pa=new sr;pa.useLongestToken=!0,pa.tokenize=un.tokenize,pa.castInput=function(s){var n=this.options,a=n.undefinedReplacement,o=n.stringifyReplacer,u=o===void 0?function(c,m){return typeof m>"u"?a:m}:o;return typeof s=="string"?s:JSON.stringify(dn(s,null,null,u),u," ")},pa.equals=function(s,n){return sr.prototype.equals.call(pa,s.replace(/,([\r\n])/g,"$1"),n.replace(/,([\r\n])/g,"$1"))};function dn(s,n,a,o,u){n=n||[],a=a||[],o&&(s=o(u,s));var c;for(c=0;c<n.length;c+=1)if(n[c]===s)return a[c];var m;if(Xd.call(s)==="[object Array]"){for(n.push(s),m=new Array(s.length),a.push(m),c=0;c<s.length;c+=1)m[c]=dn(s[c],n,a,o,u);return n.pop(),a.pop(),m}if(s&&s.toJSON&&(s=s.toJSON()),Ga(s)==="object"&&s!==null){n.push(s),m={},a.push(m);var h=[],b;for(b in s)s.hasOwnProperty(b)&&h.push(b);for(h.sort(),c=0;c<h.length;c+=1)b=h[c],m[b]=dn(s[b],n,a,o,b);n.pop(),a.pop()}else m=s;return m}var pn=new sr;pn.tokenize=function(s){return s.slice()},pn.join=pn.removeEmpty=function(s){return s};class Gd{constructor(n,a,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=a,this._originalModel=this._monaco.editor.createModel(o,Re),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 a,o;if(this._originalModel=this._monaco.editor.createModel(n,Re),n!==((a=this._editor.getModel())==null?void 0:a.getValue())){this._changeEvent();return}(o=this._editor.getModel())==null||o.deltaDecorations(this._oldDecorations,[]),this._oldDecorations=[]}dispose(){var n,a,o,u;this._diffPopupWidget&&(this._diffPopupWidget.hide(),this._editor.removeOverlayWidget(this._diffPopupWidget)),(n=this._didChangeListener)==null||n.dispose(),(a=this._onMouseDownListener)==null||a.dispose(),(o=this._editor.getModel())==null||o.deltaDecorations(this._oldDecorations,[]),this._oldDecorations=[],(u=this._diffEditor)==null||u.dispose(),this._diffEditor=void 0}_changesHandle(n){let a=0,o;const u=[];let c=0;for(const m of n){const{added:h,removed:b,count:g=1,value:w}=m;h?o&&o.removed?(a=this._changeHandle(u,a,c,g,Ve.modified),c=0,o=void 0):(o&&o.added&&(a=this._changeHandle(u,a,c,o.count||1,Ve.added),c=0),o=m):b?o&&o.added?(a=this._changeHandle(u,a,c,o.count||1,Ve.modified),c=0,o=void 0):(o&&o.removed&&this._addDecorationList(u,a,Ve.removed),o=m):/^\n+$/.test(w)?o&&(o.added||o.removed)?c=g:a+=g:(o&&o.added?(a=this._changeHandle(u,a,c,o.count||1,Ve.added),c=0,o=void 0):o&&o.removed&&(this._addDecorationList(u,a,Ve.removed),o=void 0),a+=g)}return o&&o.added?a=this._changeHandle(u,a,c,o.count||1,Ve.added):o&&o.removed&&this._addDecorationList(u,a,Ve.removed),u}_changeHandle(n,a,o,u,c){for(let m=1;m<=u;m++)this._addDecorationList(n,a+m,c);return a+=u+o,a}_addDecorationList(n,a,o){n.push({range:new this._monaco.Range(a,1,a,1),options:{isWholeLine:!0,linesDecorationsClassName:`line-${o} line-decoration_${o}`}})}_changeEvent(){var u,c;const n=Wd(this._originalModel.getValue(),((u=this._editor.getModel())==null?void 0:u.getValue())||""),a=this._changesHandle(n),o=((c=this._editor.getModel())==null?void 0:c.deltaDecorations(this._oldDecorations,a))||[];this._oldDecorations=o}_eventListening(){const n=new Bd("diff.popup.widget",this._editor);this._editor.addOverlayWidget(n),this._onMouseDownListener=this._editor.onMouseDown(a=>this._onMouseDownHandle(a)),this._diffPopupWidget=n}_onMouseDownHandle(n){var m,h,b,g,w,T;const a=(m=n.target.element)==null?void 0:m.classList,o=a==null?void 0:a.contains(`line-${Ve.added}`),u=a==null?void 0:a.contains(`line-${Ve.modified}`),c=a==null?void 0:a.contains(`line-${Ve.removed}`);if(o||u||c){const L=((b=(h=n==null?void 0:n.target)==null?void 0:h.position)==null?void 0:b.lineNumber)||0,M=((g=this._editor)==null?void 0:g.getTopForLineNumber(L+1))||0,B=((w=this._editor)==null?void 0:w.getScrollTop())||0,P=o?Ve.added:u?Ve.modified:Ve.removed;(T=this._diffPopupWidget)==null||T.show(M-B,M,P),this._diffEditor||(this._diffEditor=this._createDiffEditor()),this._diffEditor.setModel({original:this._originalModel,modified:this._editor.getModel()}),this._diffEditor.revealLineInCenter(L+1)}}_createDiffEditor(){return this._monaco.editor.createDiffEditor(document.getElementById("diffEditorContainer"),{renderSideBySide:!1,quickSuggestions:!1,suggestOnTriggerCharacters:!1,hover:{enabled:!1},parameterHints:{enabled:!1}})}}class Vd{constructor(n,a,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=a,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 Gd(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)}setPosition(n){var a,o,u;(a=this._editor)==null||a.setPosition(n),(o=this._editor)==null||o.revealPositionInCenter(n),(u=this._editor)==null||u.focus()}setOriginalScript(n){var a;this._originalScript=n,(a=this._decorations)==null||a.update(n)}getEditorLayout(){var o;const n=this._editor.getContentHeight(),a=(o=this._editor.getModel())==null?void 0:o.getLineCount();return{contentHeight:n,lineCount:a}}setEditorLayout(n){var a,o;(o=this._editor)==null||o.layout({height:n,width:(a=this._editor)==null?void 0:a.getContainerDomNode().clientWidth})}_init(){this._register(),this._setOptions(),this._addCommands(),this._addActions(),this._setCursorPosition()}_setCursorPosition(){const n=localStorage.getItem(an);this._editor.setPosition(n?JSON.parse(n):{lineNumber:1,column:1}),this._editor.focus()}_register(){this._monaco.languages.register({id:Re}),this._monaco.languages.registerCompletionItemProvider(Re,{triggerCharacters:["."],provideCompletionItems:zd,resolveCompletionItem:Nd}),this._monaco.languages.registerHoverProvider(Re,{provideHover:Od}),this._monaco.languages.registerSignatureHelpProvider(Re,{signatureHelpTriggerCharacters:["(",","],provideSignatureHelp:Pd}),this._monaco.languages.registerColorProvider(Re,{provideColorPresentations:Rd,provideDocumentColors:Ed}),this._monaco.editor.registerEditorOpener({openCodeEditor:(n,a,o)=>{const u=Ld(n,o);if(u){const{index:c,docValue:m}=u,{title:h,name:b}=m[c];let g="";switch(h){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}_${b}`,c)}return!0}}),this._monaco.editor.registerLinkOpener({open:n=>(this._onLinkOpen&&this._onLinkOpen(n.fragment),!0)}),this._monaco.languages.registerDefinitionProvider(Re,{provideDefinition:Md})}_setOptions(){this._monaco.editor.defineTheme("vs-dark",ln),this._monaco.editor.defineTheme("vs",on),this._monaco.languages.setMonarchTokensProvider(Re,sn),this._monaco.languages.setLanguageConfiguration(Re,nn)}_addCommands(){this._monaco.editor.addCommand({id:"tcc.editor.function",run:(n,a)=>{var o;if(Lt.nextIsBracket){const u=this._editor.getPosition();u&&this._editor.setPosition(Object.assign(u,{column:u.column+1}))}(o=this._editor.getAction(a))==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:"9_modification-c",contextMenuOrder:2,run:()=>{this._onActionTrigger&&this._onActionTrigger(q.Actions.TriggerConsole)}})}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 a=localStorage.getItem(an);n&&n(a?JSON.parse(a):{lineNumber:1,column:1}),this._changPositionListener=this._editor.onDidChangeCursorPosition(o=>{localStorage.setItem(an,JSON.stringify(o.position)),n&&n(o.position)})}}/**
133
+ ${this._formatter.code("Space")}`;return o.push(this._formatter.lineBreak),o.push(this._formatter.italic(`${u} ${ve.toTriggerParameterHints}`)),{value:this._formatter.paragraph(...o)}}}const Cd=new qd(window.navigator.userAgent);class Sd{constructor(){Object.defineProperty(this,"_colors",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._colors=no}getDocumentColors(n){const a=[];return n.forEach(o=>{const{range:u}=o;let{matches:c}=o;c=c||[];const m=c[0]||"";let h=null;this._isHexToken(m)?h=this._hexToColor(m):this._isRgbColor(m)?h=this._rgbToColor(m):this._colors[m]?h=this._hexToColor(this._colors[m]):this._isColorExpression(m)&&c[1]&&c[6]&&(h=this._extractNewExpression(c[1],Number(c[6]))),h&&a.push({color:h,range:u})}),a}get _defultColorsRegStr(){return Object.keys(no).reduce((n,a)=>`${n}|${a}`,"")}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:a,range:o}){const u=n.getValueInRange(o);if(this._isHexToken(u)||this._colors[u])return[{label:this._colorRgbRepresentation(a)},{label:this._colorHexRepresentation(a)}];if(this._isColorExpression(u)||this._isRgbColor(u)){const c=this._isColorExpression(u)?this._colorNewRepresentation(a):this._colorRgbRepresentation(a);if(!c)return[];const m=this._colorHexRepresentation(a);return[{label:c,textEdit:{text:c,range:o}},{label:m,textEdit:{text:m,range:o}}]}return null}_hexFromNumber(n){const a=this._denormalize(n).toString(16);return a.length===1?`0${a}`:a}_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,a){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(a)?{...o,alpha:this._normalizeAlpha(a)}:null}_colorHexRepresentation(n){const a=this._hexFromNumber(n.red),o=this._hexFromNumber(n.green),u=this._hexFromNumber(n.blue),c=this._hexFromNumber(n.alpha);return`#${a}${o}${u}${n.alpha===1?"":c}`}_colorRgbRepresentation(n){const a=this._denormalize(n.red),o=this._denormalize(n.green),u=this._denormalize(n.blue),c=this._denormalizeAlpha(n.alpha),m=[a,o,u];return c>0&&m.push(c),`color.rgb(${m.join(", ")})`}_colorNewRepresentation(n){const a={...n,alpha:1};return`color.new(${this._colorHexRepresentation(a)}, ${this._denormalizeAlpha(n.alpha)})`}_hexToColor(n){const a=(n=this._isHexToken(n)?n.slice(1):n).length===3||n.length===4,o=a?`${n.slice(0,1)}${n.slice(0,1)}`:n.slice(0,2),u=a?`${n.slice(1,2)}${n.slice(1,2)}`:n.slice(2,4),c=a?`${n.slice(2,3)}${n.slice(2,3)}`:n.slice(4,6),m=(a?`${n.slice(3,4)}${n.slice(3,4)}`:n.slice(6,8))||"ff";return{red:this._normalize(parseInt(o,16)),green:this._normalize(parseInt(u,16)),blue:this._normalize(parseInt(c,16)),alpha:this._normalize(parseInt(m,16))}}_rgbToColor(n){const a=n.replace(/[^\d,]/g,"").split(","),o=this._normalize(Number(a[0])),u=this._normalize(Number(a[1])),c=this._normalize(Number(a[2])),m=this._normalizeAlpha(Number(a[3]))||1;return isNaN(o)||isNaN(u)||isNaN(c)?null:{red:o,green:u,blue:c,alpha:m}}_isHexToken(n){return n.charAt(0)==="#"}_isRgbColor(n){return n.startsWith("color.rgb")}_isColorExpression(n){return n.startsWith("color.new")}}const cn=new Sd;function zd(s,n){var R;const a={startLineNumber:n.lineNumber,startColumn:1,endLineNumber:n.lineNumber,endColumn:n.column},o=s.getValueInRange(a),u=o.match(/([\w.]+)$/)||[],c=(R=u[0])==null?void 0:R.match(/.*[^\w.]+([\w.]+)(?=\.)|([\w.]+)(?=\.)/),m=c?c[1]?c[1]:c[2]?c[2]:void 0:void 0,h=s.getWordUntilPosition(n),b=Nr.parseCurrentInputFunc(o),g={startLineNumber:n.lineNumber,endLineNumber:n.lineNumber,startColumn:h.startColumn,endColumn:h.endColumn},w=s.getValueInRange({...g,startColumn:h.endColumn,endColumn:h.endColumn+1});Lt.nextIsBracket=w==="(";let I=io(Lt.getSuggestions(m)||[],g);if(u[0]==="."&&(I=[]),b&&!m&&!/=\s*\w+$/.test(o)){const L=io(Lt.getArgSuggestions(b.funcName)||[],g);I=I.concat(L)}return{suggestions:I||[]}}function Nd(s){if(s.kind!==1)return s;const{originInsertText:n}=s;return Lt.nextIsBracket?s.insertText=n:s.insertText=n+Lt.bracketsPostfix,s}function Od(s,n){const a=Nr.parseLineContentFuncVar(n.column,n.lineNumber,s,n);if(a&&a.docValue.length){const o=xd(a.docValue,a.index,a.isBuildIn);if(o)return{contents:[{value:o}]}}return{contents:[]}}function Pd(s,n){var I,R;const a={startLineNumber:n.lineNumber,endLineNumber:n.lineNumber,startColumn:1,endColumn:n.column},o=s.getValueInRange(a),u=s.findMatches(String(Dd),a,!0,!1,null,!0),c=s.findMatches(String(Ad),a,!0,!1,null,!0),m=(I=u.pop())==null?void 0:I.matches,h=(R=c.pop())==null?void 0:R.matches;let b=!1;u.length%2===0?m&&m[0]==='"'&&(b=!0):m&&!m[0]&&(b=!0);let g=!1;c.length%2===0?h&&h[0]==="'"&&(g=!0):h&&!h[0]&&(g=!0);const w=Nr.parseCurrentInputFuncAndArg(o,g,b);if(w){const{funcName:L,args:j}=w,E=Cd.getSignatureHelpValues(L,j);if(E)return{value:E,dispose:()=>{console.log("dispose")}}}return null}function Ed(s){let n=s.findMatches(cn.colorMatchesRegStr,!0,!0,!1,null,!0);return n=n.filter(o=>{const u=s.getValueInRange({...o.range,startColumn:0});return u.indexOf("//")===-1||u.indexOf("//")>o.range.endColumn}),cn.getDocumentColors(n)}function Rd(s,n){return cn.getDocumentColorPresentations(s,n)||[]}function Ld(s,n){const a=s.getModel(),o=Nr.parseLineContentFuncVar(n.startColumn+1,n.startLineNumber,a);if(!o||o.isBuildIn||!o.docValue||!o.docValue[0].pos)return o!=null&&o.isBuildIn?o:void 0;const{lineNumber:u,column:c}=o.docValue[0].pos,m={startLineNumber:u,endLineNumber:u,startColumn:c,endColumn:c};s.revealRangeInCenterIfOutsideViewport(m),s.setSelection(m)}function Md(s,n){return Nr.parseLineContentFuncVar(n.column,n.lineNumber,s,n)?{uri:s.uri,range:{startLineNumber:n.lineNumber,endLineNumber:n.lineNumber,startColumn:n.column-1,endColumn:n.column-1}}:null}function io(s,n){return s.map(a=>(a.range=n,a))}var ua={},da=ru;if(process.env.NODE_ENV==="production")ua.createRoot=da.createRoot,ua.hydrateRoot=da.hydrateRoot;else{var Xa=da.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;ua.createRoot=function(s,n){Xa.usingClientEntryPoint=!0;try{return da.createRoot(s,n)}finally{Xa.usingClientEntryPoint=!1}},ua.hydrateRoot=function(s,n,a){Xa.usingClientEntryPoint=!0;try{return da.hydrateRoot(s,n,a)}finally{Xa.usingClientEntryPoint=!1}}}var Ve;(function(s){s.added="added",s.removed="removed",s.modified="modified"})(Ve||(Ve={}));const Fd=(s,n)=>{const{close:a,retracement:o}=s,[u,c]=M.useState("modified");return M.useImperativeHandle(n,()=>({updateType(m){c(m)}})),P.jsxs("div",{className:`content-popup content-${u}-popup`,children:[P.jsx("div",{className:`triangle-popup triangle-${u}-popup`}),P.jsxs("div",{className:`header-popup header-${u}-popup`,children:[P.jsx("div",{className:"title-popup",children:"Local working changes"}),P.jsx("div",{className:"actions-popup",children:P.jsx("div",{onClick:a,"data-role":"button",className:"button-popup","data-name":"button-close-diff",children:P.jsx("span",{className:"icon-popup",role:"img",children:P.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12",width:"12",height:"12",children:P.jsx("path",{stroke:"currentColor",strokeWidth:"1.2",d:"m1.5 1.5 9 9m0-9-9 9"})})})})})]}),P.jsx("div",{id:"diffEditorContainer",style:{height:"100%"}})]})},jd=M.forwardRef(Fd);class Bd{constructor(n,a,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",a==null||a.onDidScrollChange(this.scrollChangeHandler.bind(this)),ua.createRoot(this._domNode).render(P.jsx(jd,{ref:u=>this._content=u,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,a,o){var u;this._top=a,(u=this._content)==null||u.updateType(o),this._domNode.style.top=`${n}px`,this._domNode.style.display="block"}hide(){this._domNode.style.display="none"}scrollChangeHandler(n){const a=n.scrollTop;this._domNode.style.top=`${this._top-a}px`}}function sr(){}sr.prototype={diff:function(n,a){var o,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c=u.callback;typeof u=="function"&&(c=u,u={}),this.options=u;var m=this;function h(T){return c?(setTimeout(function(){c(void 0,T)},0),!0):T}n=this.castInput(n),a=this.castInput(a),n=this.removeEmpty(this.tokenize(n)),a=this.removeEmpty(this.tokenize(a));var b=a.length,g=n.length,w=1,I=b+g;u.maxEditLength&&(I=Math.min(I,u.maxEditLength));var R=(o=u.timeout)!==null&&o!==void 0?o:1/0,L=Date.now()+R,j=[{oldPos:-1,lastComponent:void 0}],E=this.extractCommon(j[0],a,n,0);if(j[0].oldPos+1>=g&&E+1>=b)return h([{value:this.join(a),count:a.length}]);var V=-1/0,Q=1/0;function G(){for(var T=Math.max(V,-w);T<=Math.min(Q,w);T+=2){var z=void 0,H=j[T-1],$=j[T+1];H&&(j[T-1]=void 0);var ce=!1;if($){var ye=$.oldPos-T;ce=$&&0<=ye&&ye<b}var ue=H&&H.oldPos+1<g;if(!ce&&!ue){j[T]=void 0;continue}if(!ue||ce&&H.oldPos+1<$.oldPos?z=m.addToPath($,!0,void 0,0):z=m.addToPath(H,void 0,!0,1),E=m.extractCommon(z,a,n,T),z.oldPos+1>=g&&E+1>=b)return h(Ud(m,z.lastComponent,a,n,m.useLongestToken));j[T]=z,z.oldPos+1>=g&&(Q=Math.min(Q,T-1)),E+1>=b&&(V=Math.max(V,T+1))}w++}if(c)(function T(){setTimeout(function(){if(w>I||Date.now()>L)return c();G()||T()},0)})();else for(;w<=I&&Date.now()<=L;){var F=G();if(F)return F}},addToPath:function(n,a,o,u){var c=n.lastComponent;return c&&c.added===a&&c.removed===o?{oldPos:n.oldPos+u,lastComponent:{count:c.count+1,added:a,removed:o,previousComponent:c.previousComponent}}:{oldPos:n.oldPos+u,lastComponent:{count:1,added:a,removed:o,previousComponent:c}}},extractCommon:function(n,a,o,u){for(var c=a.length,m=o.length,h=n.oldPos,b=h-u,g=0;b+1<c&&h+1<m&&this.equals(a[b+1],o[h+1]);)b++,h++,g++;return g&&(n.lastComponent={count:g,previousComponent:n.lastComponent}),n.oldPos=h,b},equals:function(n,a){return this.options.comparator?this.options.comparator(n,a):n===a||this.options.ignoreCase&&n.toLowerCase()===a.toLowerCase()},removeEmpty:function(n){for(var a=[],o=0;o<n.length;o++)n[o]&&a.push(n[o]);return a},castInput:function(n){return n},tokenize:function(n){return n.split("")},join:function(n){return n.join("")}};function Ud(s,n,a,o,u){for(var c=[],m;n;)c.push(n),m=n.previousComponent,delete n.previousComponent,n=m;c.reverse();for(var h=0,b=c.length,g=0,w=0;h<b;h++){var I=c[h];if(I.removed){if(I.value=s.join(o.slice(w,w+I.count)),w+=I.count,h&&c[h-1].added){var L=c[h-1];c[h-1]=c[h],c[h]=L}}else{if(!I.added&&u){var R=a.slice(g,g+I.count);R=R.map(function(E,V){var Q=o[w+V];return Q.length>E.length?Q:E}),I.value=s.join(R)}else I.value=s.join(a.slice(g,g+I.count));g+=I.count,I.added||(w+=I.count)}}var j=c[b-1];return b>1&&typeof j.value=="string"&&(j.added||j.removed)&&s.equals("",j.value)&&(c[b-2].value+=j.value,c.pop()),c}var oo=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,lo=/\S/,co=new sr;co.equals=function(s,n){return this.options.ignoreCase&&(s=s.toLowerCase(),n=n.toLowerCase()),s===n||this.options.ignoreWhitespace&&!lo.test(s)&&!lo.test(n)},co.tokenize=function(s){for(var n=s.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),a=0;a<n.length-1;a++)!n[a+1]&&n[a+2]&&oo.test(n[a])&&oo.test(n[a+2])&&(n[a]+=n[a+2],n.splice(a+1,2),a--);return n};var un=new sr;un.tokenize=function(s){this.options.stripTrailingCr&&(s=s.replace(/\r\n/g,`
134
+ `));var n=[],a=s.split(/(\n|\r\n)/);a[a.length-1]||a.pop();for(var o=0;o<a.length;o++){var u=a[o];o%2&&!this.options.newlineIsToken?n[n.length-1]+=u:(this.options.ignoreWhitespace&&(u=u.trim()),n.push(u))}return n};function Wd(s,n,a){return un.diff(s,n,a)}var Hd=new sr;Hd.tokenize=function(s){return s.split(/(\S.+?[.!?])(?=\s+|$)/)};var $d=new sr;$d.tokenize=function(s){return s.split(/([{}:;,]|\s+)/)};function Ga(s){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ga=function(n){return typeof n}:Ga=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ga(s)}var Xd=Object.prototype.toString,pa=new sr;pa.useLongestToken=!0,pa.tokenize=un.tokenize,pa.castInput=function(s){var n=this.options,a=n.undefinedReplacement,o=n.stringifyReplacer,u=o===void 0?function(c,m){return typeof m>"u"?a:m}:o;return typeof s=="string"?s:JSON.stringify(dn(s,null,null,u),u," ")},pa.equals=function(s,n){return sr.prototype.equals.call(pa,s.replace(/,([\r\n])/g,"$1"),n.replace(/,([\r\n])/g,"$1"))};function dn(s,n,a,o,u){n=n||[],a=a||[],o&&(s=o(u,s));var c;for(c=0;c<n.length;c+=1)if(n[c]===s)return a[c];var m;if(Xd.call(s)==="[object Array]"){for(n.push(s),m=new Array(s.length),a.push(m),c=0;c<s.length;c+=1)m[c]=dn(s[c],n,a,o,u);return n.pop(),a.pop(),m}if(s&&s.toJSON&&(s=s.toJSON()),Ga(s)==="object"&&s!==null){n.push(s),m={},a.push(m);var h=[],b;for(b in s)s.hasOwnProperty(b)&&h.push(b);for(h.sort(),c=0;c<h.length;c+=1)b=h[c],m[b]=dn(s[b],n,a,o,b);n.pop(),a.pop()}else m=s;return m}var pn=new sr;pn.tokenize=function(s){return s.slice()},pn.join=pn.removeEmpty=function(s){return s};class Gd{constructor(n,a,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=a,this._originalModel=this._monaco.editor.createModel(o,Re),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 a,o;if(this._originalModel=this._monaco.editor.createModel(n,Re),n!==((a=this._editor.getModel())==null?void 0:a.getValue())){this._changeEvent();return}(o=this._editor.getModel())==null||o.deltaDecorations(this._oldDecorations,[]),this._oldDecorations=[]}dispose(){var n,a,o,u;this._diffPopupWidget&&(this._diffPopupWidget.hide(),this._editor.removeOverlayWidget(this._diffPopupWidget)),(n=this._didChangeListener)==null||n.dispose(),(a=this._onMouseDownListener)==null||a.dispose(),(o=this._editor.getModel())==null||o.deltaDecorations(this._oldDecorations,[]),this._oldDecorations=[],(u=this._diffEditor)==null||u.dispose(),this._diffEditor=void 0}_changesHandle(n){let a=0,o;const u=[];let c=0;for(const m of n){const{added:h,removed:b,count:g=1,value:w}=m;h?o&&o.removed?(a=this._changeHandle(u,a,c,g,Ve.modified),c=0,o=void 0):(o&&o.added&&(a=this._changeHandle(u,a,c,o.count||1,Ve.added),c=0),o=m):b?o&&o.added?(a=this._changeHandle(u,a,c,o.count||1,Ve.modified),c=0,o=void 0):(o&&o.removed&&this._addDecorationList(u,a,Ve.removed),o=m):/^\n+$/.test(w)?o&&(o.added||o.removed)?c=g:a+=g:(o&&o.added?(a=this._changeHandle(u,a,c,o.count||1,Ve.added),c=0,o=void 0):o&&o.removed&&(this._addDecorationList(u,a,Ve.removed),o=void 0),a+=g)}return o&&o.added?a=this._changeHandle(u,a,c,o.count||1,Ve.added):o&&o.removed&&this._addDecorationList(u,a,Ve.removed),u}_changeHandle(n,a,o,u,c){for(let m=1;m<=u;m++)this._addDecorationList(n,a+m,c);return a+=u+o,a}_addDecorationList(n,a,o){n.push({range:new this._monaco.Range(a,1,a,1),options:{isWholeLine:!0,linesDecorationsClassName:`line-${o} line-decoration_${o}`}})}_changeEvent(){var u,c;const n=Wd(this._originalModel.getValue(),((u=this._editor.getModel())==null?void 0:u.getValue())||""),a=this._changesHandle(n),o=((c=this._editor.getModel())==null?void 0:c.deltaDecorations(this._oldDecorations,a))||[];this._oldDecorations=o}_eventListening(){const n=new Bd("diff.popup.widget",this._editor);this._editor.addOverlayWidget(n),this._onMouseDownListener=this._editor.onMouseDown(a=>this._onMouseDownHandle(a)),this._diffPopupWidget=n}_onMouseDownHandle(n){var m,h,b,g,w,I;const a=(m=n.target.element)==null?void 0:m.classList,o=a==null?void 0:a.contains(`line-${Ve.added}`),u=a==null?void 0:a.contains(`line-${Ve.modified}`),c=a==null?void 0:a.contains(`line-${Ve.removed}`);if(o||u||c){const R=((b=(h=n==null?void 0:n.target)==null?void 0:h.position)==null?void 0:b.lineNumber)||0,L=((g=this._editor)==null?void 0:g.getTopForLineNumber(R+1))||0,j=((w=this._editor)==null?void 0:w.getScrollTop())||0,E=o?Ve.added:u?Ve.modified:Ve.removed;(I=this._diffPopupWidget)==null||I.show(L-j,L,E),this._diffEditor||(this._diffEditor=this._createDiffEditor()),this._diffEditor.setModel({original:this._originalModel,modified:this._editor.getModel()}),this._diffEditor.revealLineInCenter(R+1)}}_createDiffEditor(){return this._monaco.editor.createDiffEditor(document.getElementById("diffEditorContainer"),{renderSideBySide:!1,quickSuggestions:!1,suggestOnTriggerCharacters:!1,hover:{enabled:!1},parameterHints:{enabled:!1}})}}class Vd{constructor(n,a,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=a,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 Gd(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)}setPosition(n){var a,o,u;(a=this._editor)==null||a.setPosition(n),(o=this._editor)==null||o.revealPositionInCenter(n),(u=this._editor)==null||u.focus()}setOriginalScript(n){var a;this._originalScript=n,(a=this._decorations)==null||a.update(n)}getEditorLayout(){var o;const n=this._editor.getContentHeight(),a=(o=this._editor.getModel())==null?void 0:o.getLineCount();return{contentHeight:n,lineCount:a}}setEditorLayout(n){var a,o;(o=this._editor)==null||o.layout({height:n,width:(a=this._editor)==null?void 0:a.getContainerDomNode().clientWidth})}_init(){this._register(),this._setOptions(),this._addCommands(),this._addActions(),this._setCursorPosition()}_setCursorPosition(){const n=localStorage.getItem(an);this._editor.setPosition(n?JSON.parse(n):{lineNumber:1,column:1}),this._editor.focus()}_register(){this._monaco.languages.register({id:Re}),this._monaco.languages.registerCompletionItemProvider(Re,{triggerCharacters:["."],provideCompletionItems:zd,resolveCompletionItem:Nd}),this._monaco.languages.registerHoverProvider(Re,{provideHover:Od}),this._monaco.languages.registerSignatureHelpProvider(Re,{signatureHelpTriggerCharacters:["(",","],provideSignatureHelp:Pd}),this._monaco.languages.registerColorProvider(Re,{provideColorPresentations:Rd,provideDocumentColors:Ed}),this._monaco.editor.registerEditorOpener({openCodeEditor:(n,a,o)=>{const u=Ld(n,o);if(u){const{index:c,docValue:m}=u,{title:h,name:b}=m[c];let g="";switch(h){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}_${b}`,c)}return!0}}),this._monaco.editor.registerLinkOpener({open:n=>(this._onLinkOpen&&this._onLinkOpen(n.fragment),!0)}),this._monaco.languages.registerDefinitionProvider(Re,{provideDefinition:Md})}_setOptions(){this._monaco.editor.defineTheme("vs-dark",ln),this._monaco.editor.defineTheme("vs",on),this._monaco.languages.setMonarchTokensProvider(Re,sn),this._monaco.languages.setLanguageConfiguration(Re,nn)}_addCommands(){this._monaco.editor.addCommand({id:"tcc.editor.function",run:(n,a)=>{var o;if(Lt.nextIsBracket){const u=this._editor.getPosition();u&&this._editor.setPosition(Object.assign(u,{column:u.column+1}))}(o=this._editor.getAction(a))==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:"9_modification-c",contextMenuOrder:2,run:()=>{this._onActionTrigger&&this._onActionTrigger(q.Actions.TriggerConsole)}})}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 a=localStorage.getItem(an);n&&n(a?JSON.parse(a):{lineNumber:1,column:1}),this._changPositionListener=this._editor.onDidChangeCursorPosition(o=>{localStorage.setItem(an,JSON.stringify(o.position)),n&&n(o.position)})}}/**
135
135
  * @license
136
136
  * Copyright 2019 Google LLC
137
137
  * SPDX-License-Identifier: Apache-2.0
138
- */const uo=Symbol("Comlink.proxy"),Yd=Symbol("Comlink.endpoint"),Kd=Symbol("Comlink.releaseProxy"),mn=Symbol("Comlink.finalizer"),Va=Symbol("Comlink.thrown"),po=s=>typeof s=="object"&&s!==null||typeof s=="function",Qd={canHandle:s=>po(s)&&s[uo],serialize(s){const{port1:n,port2:a}=new MessageChannel;return fo(s,n),[a,[a]]},deserialize(s){return s.start(),fn(s)}},Zd={canHandle:s=>po(s)&&Va in s,serialize({value:s}){let n;return s instanceof Error?n={isError:!0,value:{message:s.message,name:s.name,stack:s.stack}}:n={isError:!1,value:s},[n,[]]},deserialize(s){throw s.isError?Object.assign(new Error(s.value.message),s.value):s.value}},mo=new Map([["proxy",Qd],["throw",Zd]]);function Jd(s,n){for(const a of s)if(n===a||a==="*"||a instanceof RegExp&&a.test(n))return!0;return!1}function fo(s,n=globalThis,a=["*"]){n.addEventListener("message",function o(u){if(!u||!u.data)return;if(!Jd(a,u.origin)){console.warn(`Invalid origin '${u.origin}' for comlink proxy`);return}const{id:c,type:m,path:h}=Object.assign({path:[]},u.data),b=(u.data.argumentList||[]).map(_r);let g;try{const w=h.slice(0,-1).reduce((L,M)=>L[M],s),T=h.reduce((L,M)=>L[M],s);switch(m){case"GET":g=T;break;case"SET":w[h.slice(-1)[0]]=_r(u.data.value),g=!0;break;case"APPLY":g=T.apply(w,b);break;case"CONSTRUCT":{const L=new T(...b);g=np(L)}break;case"ENDPOINT":{const{port1:L,port2:M}=new MessageChannel;fo(s,M),g=sp(L,[L])}break;case"RELEASE":g=void 0;break;default:return}}catch(w){g={value:w,[Va]:0}}Promise.resolve(g).catch(w=>({value:w,[Va]:0})).then(w=>{const[T,L]=Za(w);n.postMessage(Object.assign(Object.assign({},T),{id:c}),L),m==="RELEASE"&&(n.removeEventListener("message",o),yo(n),mn in s&&typeof s[mn]=="function"&&s[mn]())}).catch(w=>{const[T,L]=Za({value:new TypeError("Unserializable return value"),[Va]:0});n.postMessage(Object.assign(Object.assign({},T),{id:c}),L)})}),n.start&&n.start()}function ep(s){return s.constructor.name==="MessagePort"}function yo(s){ep(s)&&s.close()}function fn(s,n){return yn(s,[],n)}function Ya(s){if(s)throw new Error("Proxy has been released and is not useable")}function ho(s){return Or(s,{type:"RELEASE"}).then(()=>{yo(s)})}const Ka=new WeakMap,Qa="FinalizationRegistry"in globalThis&&new FinalizationRegistry(s=>{const n=(Ka.get(s)||0)-1;Ka.set(s,n),n===0&&ho(s)});function tp(s,n){const a=(Ka.get(n)||0)+1;Ka.set(n,a),Qa&&Qa.register(s,n,s)}function rp(s){Qa&&Qa.unregister(s)}function yn(s,n=[],a=function(){}){let o=!1;const u=new Proxy(a,{get(c,m){if(Ya(o),m===Kd)return()=>{rp(u),ho(s),o=!0};if(m==="then"){if(n.length===0)return{then:()=>u};const h=Or(s,{type:"GET",path:n.map(b=>b.toString())}).then(_r);return h.then.bind(h)}return yn(s,[...n,m])},set(c,m,h){Ya(o);const[b,g]=Za(h);return Or(s,{type:"SET",path:[...n,m].map(w=>w.toString()),value:b},g).then(_r)},apply(c,m,h){Ya(o);const b=n[n.length-1];if(b===Yd)return Or(s,{type:"ENDPOINT"}).then(_r);if(b==="bind")return yn(s,n.slice(0,-1));const[g,w]=_o(h);return Or(s,{type:"APPLY",path:n.map(T=>T.toString()),argumentList:g},w).then(_r)},construct(c,m){Ya(o);const[h,b]=_o(m);return Or(s,{type:"CONSTRUCT",path:n.map(g=>g.toString()),argumentList:h},b).then(_r)}});return tp(u,s),u}function ap(s){return Array.prototype.concat.apply([],s)}function _o(s){const n=s.map(Za);return[n.map(a=>a[0]),ap(n.map(a=>a[1]))]}const go=new WeakMap;function sp(s,n){return go.set(s,n),s}function np(s){return Object.assign(s,{[uo]:!0})}function Za(s){for(const[n,a]of mo)if(a.canHandle(s)){const[o,u]=a.serialize(s);return[{type:"HANDLER",name:n,value:o},u]}return[{type:"RAW",value:s},go.get(s)||[]]}function _r(s){switch(s.type){case"HANDLER":return mo.get(s.name).deserialize(s.value);case"RAW":return s.value}}function Or(s,n,a){return new Promise(o=>{const u=ip();s.addEventListener("message",function c(m){!m.data||!m.data.id||m.data.id!==u||(s.removeEventListener("message",c),o(m.data))}),s.start&&s.start(),s.postMessage(Object.assign({id:u},n),a)})}function ip(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}const bo=new Worker(new URL(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/scriptsRunWorker-DmNu2La0.js").href:new URL("assets/scriptsRunWorker-DmNu2La0.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:ja&&ja.src||new URL("trading-vue-editor.umd.cjs",document.baseURI).href),{type:"module",name:"Run TccScript Server"});bo.onerror=s=>{console.error(s)};const xo=fn(bo),op=fn(new Worker(new URL(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/parserTccWorker-CwSYSKEG.js").href:new URL("assets/parserTccWorker-CwSYSKEG.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:ja&&ja.src||new URL("trading-vue-editor.umd.cjs",document.baseURI).href),{type:"module",name:"Parser TccScript Server"}));async function wo(s,n=!1){const{functions:a,types:o,constants:u,variables:c,methods:m}=gt;return await op(s,n,{functions:Object.fromEntries(a),methods:Object.fromEntries(m),types:Object.fromEntries(o),constants:Object.fromEntries(u),variables:Object.fromEntries(c)})}async function vo(s,n,a=!0){return await xo.runScript(s,n,a)}async function lp(s){return await xo.removeScript(s)}function cp(s){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:s==null?void 0:s.name})}q.VType=void 0,function(s){s.BOOL="bool",s.INT="int",s.FLOAT="float",s.ARRAY="array",s.BOX="box",s.CHART_POINT="chart.point",s.COLOR="color",s.CONST="const",s.LABEL="label",s.LINE="line",s.LINEFILL="linefill",s.MAP="map",s.MATRIX="matrix",s.POLYLINE="polyline",s.SERIES="series",s.SIMPLE="simple",s.STRING="string",s.TABLE="table",s.UNDETERMINED="undetermined type",s.INPUT="input",s.NA="na",s.VOID="void"}(q.VType||(q.VType={})),q.VRuleType=void 0,function(s){s.FlowStmt="FlowStmt",s.DeclareAssign="DeclareAssign",s.VarBlockStmt="VarBlockStmt",s.VarSingle="VarSingle",s.VarMultiple="VarMultiple",s.ParenthesizedExpression="ParenthesizedExpression",s.AdditiveExpression="AdditiveExpression",s.RelationalExpression="RelationalExpression",s.EqualityExpression="EqualityExpression",s.TernaryExpression="TernaryExpression",s.UnaryExpression="UnaryExpression",s.NotExpression="NotExpression",s.MemberIndexExpression="MemberIndexExpression",s.MethodExpression="MethodExpression",s.LogicalAndExpression="LogicalAndExpression",s.LogicalOrExpression="LogicalOrExpression",s.MultiplicativeExpression="MultiplicativeExpression",s.Brackethesized="Brackethesized",s.IfStatement="IfStatement",s.ForToStatement="ForToStatement",s.ForInStatement="ForInStatement",s.SwitchStatement="SwitchStatement",s.CaseClause="CaseClause",s.DefaultCaluse="DefaultCaluse",s.WhileStatement="WhileStatement",s.ImportElement="ImportElement",s.Literal="Literal",s.ArrowFunction="ArrowFunction",s.ArrowMethod="ArrowMethod",s.TypeStatement="TypeStatement",s.Name="Name",s.AgainAssign="AgainAssign"}(q.VRuleType||(q.VRuleType={})),q.VAdjustment=void 0,function(s){s.dividends="dividends",s.none="none",s.splits="splits"}(q.VAdjustment||(q.VAdjustment={})),q.VAlert=void 0,function(s){s.freqAll="freq_all",s.freqOncePerBar="freq_once_per_bar",s.freqOncePerBarClose="freq_once_per_bar_close"}(q.VAlert||(q.VAlert={})),q.VBarmergeGaps=void 0,function(s){s.gapsOff="gaps_off",s.gapsOn="gaps_on",s.lookaheadOff="lookahead_off",s.lookaheadOn="lookahead_on"}(q.VBarmergeGaps||(q.VBarmergeGaps={})),q.VPlotDisplay=void 0,function(s){s.all="all",s.dataWindow="data_window",s.none="none",s.pane="pane",s.priceScale="price_scale",s.statusLine="status_line"}(q.VPlotDisplay||(q.VPlotDisplay={})),q.VExtend=void 0,function(s){s.both="both",s.left="left",s.none="none",s.right="right"}(q.VExtend||(q.VExtend={})),q.VFormatType=void 0,function(s){s.inherit="inherit",s.mintick="mintick",s.percent="percent",s.price="price",s.volume="volume"}(q.VFormatType||(q.VFormatType={})),q.VHlineStyle=void 0,function(s){s.styleDashed="style_dashed",s.styleDotted="style_dotted",s.styleSolid="style_solid"}(q.VHlineStyle||(q.VHlineStyle={})),q.VLabelStyle=void 0,function(s){s.styleArrowdown="style_arrowdown",s.styleArrowup="style_arrowup",s.styleCircle="style_circle",s.styleCross="style_cross",s.styleDiamond="style_diamond",s.styleFlag="style_flag",s.styleLabelCenter="style_label_center",s.styleLabelDown="style_label_down",s.styleLabelLeft="style_label_left",s.styleLabelLowerLeft="style_label_lower_left",s.styleLabelLowerRight="style_label_lower_right",s.styleLabelRight="style_label_right",s.styleLabelUp="style_label_up",s.styleLabelUpperLeft="style_label_upper_left",s.styleLabelUpperRight="style_label_upper_right",s.styleNone="style_none",s.styleSquare="style_square",s.styleTextOutline="style_text_outline",s.styleTriangledown="style_triangledown",s.styleTriangleup="style_triangleup",s.styleXcross="style_xcross"}(q.VLabelStyle||(q.VLabelStyle={})),q.VLineStyle=void 0,function(s){s.styleArrowBoth="style_arrow_both",s.styleArrowLeft="style_arrow_left",s.styleArrowRight="style_arrow_right",s.styleDashed="style_dashed",s.styleDotted="style_dotted",s.styleSolid="style_solid"}(q.VLineStyle||(q.VLineStyle={})),q.VLocation=void 0,function(s){s.abovebar="abovebar",s.absolute="absolute",s.belowbar="belowbar",s.bottom="bottom",s.top="top"}(q.VLocation||(q.VLocation={})),q.VSortOrder=void 0,function(s){s.ascending="ascending",s.descending="descending"}(q.VSortOrder||(q.VSortOrder={})),q.VPlotStyle=void 0,function(s){s.styleArea="Area",s.styleAreabr="Area With Breaks",s.styleCircles="Circles",s.styleColumns="Columns",s.styleCross="Cross",s.styleHistogram="Histogram",s.styleLine="Line",s.styleLinebr="Line With Breaks",s.styleStepline="Step Line",s.styleSteplineDiamond="Step Line With Diamonds",s.styleSteplinebr="Step line with Breaks"}(q.VPlotStyle||(q.VPlotStyle={})),q.VPosition=void 0,function(s){s.bottomCenter="bottom_center",s.bottomLeft="bottom_left",s.bottomRight="bottom_right",s.middleCenter="middle_center",s.middleLeft="middle_left",s.middleRight="middle_right",s.topCenter="top_center",s.topLeft="top_left",s.topRight="top_right"}(q.VPosition||(q.VPosition={})),q.VScale=void 0,function(s){s.left="left",s.none="none",s.right="right"}(q.VScale||(q.VScale={})),q.VSession=void 0,function(s){s.extended="extended",s.regular="regular"}(q.VSession||(q.VSession={})),q.VShape=void 0,function(s){s.arrowdown="arrowdown",s.arrowup="arrowup",s.circle="circle",s.cross="cross",s.diamond="diamond",s.flag="flag",s.labeldown="labeldown",s.labelup="labelup",s.square="square",s.triangledown="triangledown",s.triangleup="triangleup",s.xcross="xcross"}(q.VShape||(q.VShape={})),q.VSize=void 0,function(s){s.auto="auto",s.huge="huge",s.large="large",s.normal="normal",s.small="small",s.tiny="tiny"}(q.VSize||(q.VSize={})),q.VStrategy=void 0,function(s){s.cash="cash",s.fixed="fixed",s.percentOfEquity="percent_of_equity"}(q.VStrategy||(q.VStrategy={})),q.VCommission=void 0,function(s){s.cashPerContract="cash_per_contract",s.cashPerOrder="cash_per_order",s.percent="percent"}(q.VCommission||(q.VCommission={})),q.VDirection=void 0,function(s){s.all="all",s.long="long",s.short="short"}(q.VDirection||(q.VDirection={})),q.VOca=void 0,function(s){s.cancel="cancel",s.none="none",s.reduce="reduce"}(q.VOca||(q.VOca={})),q.VText=void 0,function(s){s.alignBottom="align_bottom",s.alignCenter="align_center",s.alignLeft="align_left",s.alignRight="align_right",s.alignTop="align_top",s.wrapAuto="wrap_auto",s.wrapNone="wrap_none"}(q.VText||(q.VText={})),q.VXloc=void 0,function(s){s.bar_index="bar_index",s.bar_time="bar_time"}(q.VXloc||(q.VXloc={})),q.VYloc=void 0,function(s){s.abovebar="abovebar",s.belowbar="belowbar",s.price="price"}(q.VYloc||(q.VYloc={})),q.VEarnings=void 0,function(s){s.actual="actual",s.estimate="estimate",s.standardized="standardized"}(q.VEarnings||(q.VEarnings={})),q.VPivotType=void 0,function(s){s.traditional="Traditional",s.fibonacci="Fibonacci",s.woodie="Woodie",s.classic="Classic",s.dm="DM",s.camarilla="Camarilla"}(q.VPivotType||(q.VPivotType={})),q.VInputType=void 0,function(s){s.INT="int",s.BOOL="bool",s.TIME="time",s.COLOR="color",s.FLOAT="float",s.PRICE="price",s.SOURCE="source",s.STRING="string",s.SYMBOL="symbol",s.SESSION="session",s.TEXT_AREA="text_area",s.TIMEFRAME="timeframe"}(q.VInputType||(q.VInputType={})),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 up={domReadOnly:!0,scrollBeyondLastLine:!1,readOnly:!0,minimap:{enabled:!1},scrollbar:{vertical:"hidden",horizontal:"hidden",alwaysConsumeMouseWheel:!1},contextmenu:!1};self.MonacoEnvironment={getWorker(){return new cp({name:"Editor Worker"})}},tn.config({monaco:su});let To={};const dp=(s,n)=>{const{height:a,width:o,theme:u,options:c,hasDiff:m,readOnly:h,defaultValue:b,onChange:g,onLinkOpen:w,onDeclareConfigChange:T,onCursorPositionChange:L,onActionTrigger:M,onEditorDidMount:B}=s,P=j.useRef(null);j.useImperativeHandle(n,()=>({setOriginalScript(k){var E;(E=P.current)==null||E.setOriginalScript(k)},setScript(k){var E;(E=P.current)==null||E.setValue(k)},gotoLine(){var k;(k=P.current)==null||k.gotoLine()},getEditorLayout(){var k;return(k=P.current)==null?void 0:k.getEditorLayout()},setPosition(k,E){var G;(G=P.current)==null||G.setPosition({column:k,lineNumber:E})},setModelMarkers(k){var E;(E=P.current)==null||E.setModelMarkers(k)}})),j.useEffect(()=>{var k,E;m?(E=P.current)==null||E.addDiffDecorations():(k=P.current)==null||k.removeDiffDecorations()},[m]),j.useEffect(()=>{var k;(k=P.current)==null||k.updateActionTrigger(M)},[M]),j.useEffect(()=>{var k;w&&((k=P.current)==null||k.addLinkOpenFunc(w))},[w]),j.useEffect(()=>{var k;a&&((k=P.current)==null||k.setEditorLayout(Number(a)))},[a,P.current]);function Y(k,E){var V,he,_e;Lt.initBuiltinsTrees(),P.current=new Vd(k,E,M),w&&((V=P.current)==null||V.addLinkOpenFunc(w)),m&&((he=P.current)==null||he.addDiffDecorations()),Td(k),(_e=P.current)==null||_e.setEditorLayout(Number(a));const G=k.getValue();P.current.onChangeCursorPosition(L),g&&g(G),!h&&F(G),B&&B()}const F=j.useCallback(async k=>{var lt;const E=Date.now(),{errors:G,functions:V,methods:he,types:_e,variables:ce,overloadsFuncs:bt,preParserCode:St}=await wo(k),Me=new Map(Object.entries(V)),Fe=new Map(Object.entries(he)),K=new Map(Object.entries(_e)),fe=new Map(Object.entries(ce));Nr.setUserDefined({functions:Me,methods:Fe,types:K,variables:fe},bt),Lt.setUserDefind(Me,K,fe,Fe);const Oe=G.map(je=>({...je,severity:je.type||Se.MarkerSeverity.Error}));if(h)return;try{if(!G.length){const je=await vo(St,{isPreParser:!0});so.isEqual(je,To)||(To=je,T&&T(je))}}catch(je){console.log(je,"==================error- Run TccScript Server"),G.push({message:`Runtime Error: ${je.message}`,startLineNumber:0,endLineNumber:0,startColumn:0,endColumn:0})}(lt=P.current)==null||lt.setModelMarkers(Oe);const Le=Date.now();console.log((Le-E)/1e3)},[T,h]),U=j.useMemo(()=>so.debounce(F,1e3),[F]);function R(k){var E;if(h){F(k||"");return}(E=P.current)==null||E.setModelMarkers([]),k!==void 0&&(g&&g(k),U(k))}return O.jsx(md,{height:a,width:o||"100%",defaultLanguage:Re,defaultValue:b||`indicator("我的脚本")
138
+ */const uo=Symbol("Comlink.proxy"),Yd=Symbol("Comlink.endpoint"),Kd=Symbol("Comlink.releaseProxy"),mn=Symbol("Comlink.finalizer"),Va=Symbol("Comlink.thrown"),po=s=>typeof s=="object"&&s!==null||typeof s=="function",Qd={canHandle:s=>po(s)&&s[uo],serialize(s){const{port1:n,port2:a}=new MessageChannel;return fo(s,n),[a,[a]]},deserialize(s){return s.start(),fn(s)}},Zd={canHandle:s=>po(s)&&Va in s,serialize({value:s}){let n;return s instanceof Error?n={isError:!0,value:{message:s.message,name:s.name,stack:s.stack}}:n={isError:!1,value:s},[n,[]]},deserialize(s){throw s.isError?Object.assign(new Error(s.value.message),s.value):s.value}},mo=new Map([["proxy",Qd],["throw",Zd]]);function Jd(s,n){for(const a of s)if(n===a||a==="*"||a instanceof RegExp&&a.test(n))return!0;return!1}function fo(s,n=globalThis,a=["*"]){n.addEventListener("message",function o(u){if(!u||!u.data)return;if(!Jd(a,u.origin)){console.warn(`Invalid origin '${u.origin}' for comlink proxy`);return}const{id:c,type:m,path:h}=Object.assign({path:[]},u.data),b=(u.data.argumentList||[]).map(_r);let g;try{const w=h.slice(0,-1).reduce((R,L)=>R[L],s),I=h.reduce((R,L)=>R[L],s);switch(m){case"GET":g=I;break;case"SET":w[h.slice(-1)[0]]=_r(u.data.value),g=!0;break;case"APPLY":g=I.apply(w,b);break;case"CONSTRUCT":{const R=new I(...b);g=np(R)}break;case"ENDPOINT":{const{port1:R,port2:L}=new MessageChannel;fo(s,L),g=sp(R,[R])}break;case"RELEASE":g=void 0;break;default:return}}catch(w){g={value:w,[Va]:0}}Promise.resolve(g).catch(w=>({value:w,[Va]:0})).then(w=>{const[I,R]=Za(w);n.postMessage(Object.assign(Object.assign({},I),{id:c}),R),m==="RELEASE"&&(n.removeEventListener("message",o),yo(n),mn in s&&typeof s[mn]=="function"&&s[mn]())}).catch(w=>{const[I,R]=Za({value:new TypeError("Unserializable return value"),[Va]:0});n.postMessage(Object.assign(Object.assign({},I),{id:c}),R)})}),n.start&&n.start()}function ep(s){return s.constructor.name==="MessagePort"}function yo(s){ep(s)&&s.close()}function fn(s,n){return yn(s,[],n)}function Ya(s){if(s)throw new Error("Proxy has been released and is not useable")}function ho(s){return Or(s,{type:"RELEASE"}).then(()=>{yo(s)})}const Ka=new WeakMap,Qa="FinalizationRegistry"in globalThis&&new FinalizationRegistry(s=>{const n=(Ka.get(s)||0)-1;Ka.set(s,n),n===0&&ho(s)});function tp(s,n){const a=(Ka.get(n)||0)+1;Ka.set(n,a),Qa&&Qa.register(s,n,s)}function rp(s){Qa&&Qa.unregister(s)}function yn(s,n=[],a=function(){}){let o=!1;const u=new Proxy(a,{get(c,m){if(Ya(o),m===Kd)return()=>{rp(u),ho(s),o=!0};if(m==="then"){if(n.length===0)return{then:()=>u};const h=Or(s,{type:"GET",path:n.map(b=>b.toString())}).then(_r);return h.then.bind(h)}return yn(s,[...n,m])},set(c,m,h){Ya(o);const[b,g]=Za(h);return Or(s,{type:"SET",path:[...n,m].map(w=>w.toString()),value:b},g).then(_r)},apply(c,m,h){Ya(o);const b=n[n.length-1];if(b===Yd)return Or(s,{type:"ENDPOINT"}).then(_r);if(b==="bind")return yn(s,n.slice(0,-1));const[g,w]=_o(h);return Or(s,{type:"APPLY",path:n.map(I=>I.toString()),argumentList:g},w).then(_r)},construct(c,m){Ya(o);const[h,b]=_o(m);return Or(s,{type:"CONSTRUCT",path:n.map(g=>g.toString()),argumentList:h},b).then(_r)}});return tp(u,s),u}function ap(s){return Array.prototype.concat.apply([],s)}function _o(s){const n=s.map(Za);return[n.map(a=>a[0]),ap(n.map(a=>a[1]))]}const go=new WeakMap;function sp(s,n){return go.set(s,n),s}function np(s){return Object.assign(s,{[uo]:!0})}function Za(s){for(const[n,a]of mo)if(a.canHandle(s)){const[o,u]=a.serialize(s);return[{type:"HANDLER",name:n,value:o},u]}return[{type:"RAW",value:s},go.get(s)||[]]}function _r(s){switch(s.type){case"HANDLER":return mo.get(s.name).deserialize(s.value);case"RAW":return s.value}}function Or(s,n,a){return new Promise(o=>{const u=ip();s.addEventListener("message",function c(m){!m.data||!m.data.id||m.data.id!==u||(s.removeEventListener("message",c),o(m.data))}),s.start&&s.start(),s.postMessage(Object.assign({id:u},n),a)})}function ip(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}const bo=new Worker(new URL(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/scriptsRunWorker-Bz0kV3Co.js").href:new URL("assets/scriptsRunWorker-Bz0kV3Co.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:ja&&ja.src||new URL("trading-vue-editor.umd.cjs",document.baseURI).href),{type:"module",name:"Run TccScript Server"});bo.onerror=s=>{console.error(s)};const xo=fn(bo),op=fn(new Worker(new URL(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/parserTccWorker-CSf0s1lk.js").href:new URL("assets/parserTccWorker-CSf0s1lk.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:ja&&ja.src||new URL("trading-vue-editor.umd.cjs",document.baseURI).href),{type:"module",name:"Parser TccScript Server"}));async function wo(s,n=!1){const{functions:a,types:o,constants:u,variables:c,methods:m}=gt;return await op(s,n,{functions:Object.fromEntries(a),methods:Object.fromEntries(m),types:Object.fromEntries(o),constants:Object.fromEntries(u),variables:Object.fromEntries(c)})}async function vo(s,n,a=!0){return await xo.runScript(s,n,a)}async function lp(s){return await xo.removeScript(s)}function cp(s){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:s==null?void 0:s.name})}q.VType=void 0,function(s){s.BOOL="bool",s.INT="int",s.FLOAT="float",s.ARRAY="array",s.BOX="box",s.CHART_POINT="chart.point",s.COLOR="color",s.CONST="const",s.LABEL="label",s.LINE="line",s.LINEFILL="linefill",s.MAP="map",s.MATRIX="matrix",s.POLYLINE="polyline",s.SERIES="series",s.SIMPLE="simple",s.STRING="string",s.TABLE="table",s.UNDETERMINED="undetermined type",s.INPUT="input",s.NA="na",s.VOID="void"}(q.VType||(q.VType={})),q.VRuleType=void 0,function(s){s.FlowStmt="FlowStmt",s.DeclareAssign="DeclareAssign",s.VarBlockStmt="VarBlockStmt",s.VarSingle="VarSingle",s.VarMultiple="VarMultiple",s.ParenthesizedExpression="ParenthesizedExpression",s.AdditiveExpression="AdditiveExpression",s.RelationalExpression="RelationalExpression",s.EqualityExpression="EqualityExpression",s.TernaryExpression="TernaryExpression",s.UnaryExpression="UnaryExpression",s.NotExpression="NotExpression",s.MemberIndexExpression="MemberIndexExpression",s.MethodExpression="MethodExpression",s.LogicalAndExpression="LogicalAndExpression",s.LogicalOrExpression="LogicalOrExpression",s.MultiplicativeExpression="MultiplicativeExpression",s.Brackethesized="Brackethesized",s.IfStatement="IfStatement",s.ForToStatement="ForToStatement",s.ForInStatement="ForInStatement",s.SwitchStatement="SwitchStatement",s.CaseClause="CaseClause",s.DefaultCaluse="DefaultCaluse",s.WhileStatement="WhileStatement",s.ImportElement="ImportElement",s.Literal="Literal",s.ArrowFunction="ArrowFunction",s.ArrowMethod="ArrowMethod",s.TypeStatement="TypeStatement",s.Name="Name",s.AgainAssign="AgainAssign"}(q.VRuleType||(q.VRuleType={})),q.VAdjustment=void 0,function(s){s.dividends="dividends",s.none="none",s.splits="splits"}(q.VAdjustment||(q.VAdjustment={})),q.VAlert=void 0,function(s){s.freqAll="freq_all",s.freqOncePerBar="freq_once_per_bar",s.freqOncePerBarClose="freq_once_per_bar_close"}(q.VAlert||(q.VAlert={})),q.VBarmergeGaps=void 0,function(s){s.gapsOff="gaps_off",s.gapsOn="gaps_on",s.lookaheadOff="lookahead_off",s.lookaheadOn="lookahead_on"}(q.VBarmergeGaps||(q.VBarmergeGaps={})),q.VPlotDisplay=void 0,function(s){s.all="all",s.dataWindow="data_window",s.none="none",s.pane="pane",s.priceScale="price_scale",s.statusLine="status_line"}(q.VPlotDisplay||(q.VPlotDisplay={})),q.VExtend=void 0,function(s){s.both="both",s.left="left",s.none="none",s.right="right"}(q.VExtend||(q.VExtend={})),q.VFormatType=void 0,function(s){s.inherit="inherit",s.mintick="mintick",s.percent="percent",s.price="price",s.volume="volume"}(q.VFormatType||(q.VFormatType={})),q.VHlineStyle=void 0,function(s){s.styleDashed="style_dashed",s.styleDotted="style_dotted",s.styleSolid="style_solid"}(q.VHlineStyle||(q.VHlineStyle={})),q.VLabelStyle=void 0,function(s){s.styleArrowdown="style_arrowdown",s.styleArrowup="style_arrowup",s.styleCircle="style_circle",s.styleCross="style_cross",s.styleDiamond="style_diamond",s.styleFlag="style_flag",s.styleLabelCenter="style_label_center",s.styleLabelDown="style_label_down",s.styleLabelLeft="style_label_left",s.styleLabelLowerLeft="style_label_lower_left",s.styleLabelLowerRight="style_label_lower_right",s.styleLabelRight="style_label_right",s.styleLabelUp="style_label_up",s.styleLabelUpperLeft="style_label_upper_left",s.styleLabelUpperRight="style_label_upper_right",s.styleNone="style_none",s.styleSquare="style_square",s.styleTextOutline="style_text_outline",s.styleTriangledown="style_triangledown",s.styleTriangleup="style_triangleup",s.styleXcross="style_xcross"}(q.VLabelStyle||(q.VLabelStyle={})),q.VLineStyle=void 0,function(s){s.styleArrowBoth="style_arrow_both",s.styleArrowLeft="style_arrow_left",s.styleArrowRight="style_arrow_right",s.styleDashed="style_dashed",s.styleDotted="style_dotted",s.styleSolid="style_solid"}(q.VLineStyle||(q.VLineStyle={})),q.VLocation=void 0,function(s){s.abovebar="abovebar",s.absolute="absolute",s.belowbar="belowbar",s.bottom="bottom",s.top="top"}(q.VLocation||(q.VLocation={})),q.VSortOrder=void 0,function(s){s.ascending="ascending",s.descending="descending"}(q.VSortOrder||(q.VSortOrder={})),q.VPlotStyle=void 0,function(s){s.styleArea="Area",s.styleAreabr="Area With Breaks",s.styleCircles="Circles",s.styleColumns="Columns",s.styleCross="Cross",s.styleHistogram="Histogram",s.styleLine="Line",s.styleLinebr="Line With Breaks",s.styleStepline="Step Line",s.styleSteplineDiamond="Step Line With Diamonds",s.styleSteplinebr="Step line with Breaks"}(q.VPlotStyle||(q.VPlotStyle={})),q.VPosition=void 0,function(s){s.bottomCenter="bottom_center",s.bottomLeft="bottom_left",s.bottomRight="bottom_right",s.middleCenter="middle_center",s.middleLeft="middle_left",s.middleRight="middle_right",s.topCenter="top_center",s.topLeft="top_left",s.topRight="top_right"}(q.VPosition||(q.VPosition={})),q.VScale=void 0,function(s){s.left="left",s.none="none",s.right="right"}(q.VScale||(q.VScale={})),q.VSession=void 0,function(s){s.extended="extended",s.regular="regular"}(q.VSession||(q.VSession={})),q.VShape=void 0,function(s){s.arrowdown="arrowdown",s.arrowup="arrowup",s.circle="circle",s.cross="cross",s.diamond="diamond",s.flag="flag",s.labeldown="labeldown",s.labelup="labelup",s.square="square",s.triangledown="triangledown",s.triangleup="triangleup",s.xcross="xcross"}(q.VShape||(q.VShape={})),q.VSize=void 0,function(s){s.auto="auto",s.huge="huge",s.large="large",s.normal="normal",s.small="small",s.tiny="tiny"}(q.VSize||(q.VSize={})),q.VStrategy=void 0,function(s){s.cash="cash",s.fixed="fixed",s.percentOfEquity="percent_of_equity"}(q.VStrategy||(q.VStrategy={})),q.VCommission=void 0,function(s){s.cashPerContract="cash_per_contract",s.cashPerOrder="cash_per_order",s.percent="percent"}(q.VCommission||(q.VCommission={})),q.VDirection=void 0,function(s){s.all="all",s.long="long",s.short="short"}(q.VDirection||(q.VDirection={})),q.VOca=void 0,function(s){s.cancel="cancel",s.none="none",s.reduce="reduce"}(q.VOca||(q.VOca={})),q.VText=void 0,function(s){s.alignBottom="align_bottom",s.alignCenter="align_center",s.alignLeft="align_left",s.alignRight="align_right",s.alignTop="align_top",s.wrapAuto="wrap_auto",s.wrapNone="wrap_none"}(q.VText||(q.VText={})),q.VXloc=void 0,function(s){s.bar_index="bar_index",s.bar_time="bar_time"}(q.VXloc||(q.VXloc={})),q.VYloc=void 0,function(s){s.abovebar="abovebar",s.belowbar="belowbar",s.price="price"}(q.VYloc||(q.VYloc={})),q.VEarnings=void 0,function(s){s.actual="actual",s.estimate="estimate",s.standardized="standardized"}(q.VEarnings||(q.VEarnings={})),q.VPivotType=void 0,function(s){s.traditional="Traditional",s.fibonacci="Fibonacci",s.woodie="Woodie",s.classic="Classic",s.dm="DM",s.camarilla="Camarilla"}(q.VPivotType||(q.VPivotType={})),q.VInputType=void 0,function(s){s.INT="int",s.BOOL="bool",s.TIME="time",s.COLOR="color",s.FLOAT="float",s.PRICE="price",s.SOURCE="source",s.STRING="string",s.SYMBOL="symbol",s.SESSION="session",s.TEXT_AREA="text_area",s.TIMEFRAME="timeframe"}(q.VInputType||(q.VInputType={})),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 up={domReadOnly:!0,scrollBeyondLastLine:!1,readOnly:!0,minimap:{enabled:!1},scrollbar:{vertical:"hidden",horizontal:"hidden",alwaysConsumeMouseWheel:!1},contextmenu:!1};self.MonacoEnvironment={getWorker(){return new cp({name:"Editor Worker"})}},tn.config({monaco:su});let To={};const dp=(s,n)=>{const{height:a,width:o,theme:u,options:c,hasDiff:m,readOnly:h,defaultValue:b,onChange:g,onLinkOpen:w,onDeclareConfigChange:I,onCursorPositionChange:R,onActionTrigger:L,onEditorDidMount:j}=s,E=M.useRef(null);M.useImperativeHandle(n,()=>({setOriginalScript(T){var z;(z=E.current)==null||z.setOriginalScript(T)},setScript(T){var z;(z=E.current)==null||z.setValue(T)},gotoLine(){var T;(T=E.current)==null||T.gotoLine()},getEditorLayout(){var T;return(T=E.current)==null?void 0:T.getEditorLayout()},setPosition(T,z){var H;(H=E.current)==null||H.setPosition({column:T,lineNumber:z})},setModelMarkers(T){var z;(z=E.current)==null||z.setModelMarkers(T)}})),M.useEffect(()=>{var T,z;m?(z=E.current)==null||z.addDiffDecorations():(T=E.current)==null||T.removeDiffDecorations()},[m]),M.useEffect(()=>{var T;(T=E.current)==null||T.updateActionTrigger(L)},[L]),M.useEffect(()=>{var T;w&&((T=E.current)==null||T.addLinkOpenFunc(w))},[w]),M.useEffect(()=>{var T;a&&((T=E.current)==null||T.setEditorLayout(Number(a)))},[a,E.current]);function V(T,z){var $,ce,ye;Lt.initBuiltinsTrees(),E.current=new Vd(T,z,L),w&&(($=E.current)==null||$.addLinkOpenFunc(w)),m&&((ce=E.current)==null||ce.addDiffDecorations()),Td(T),(ye=E.current)==null||ye.setEditorLayout(Number(a));const H=T.getValue();E.current.onChangeCursorPosition(R),g&&g(H),!h&&Q(H),j&&j()}const Q=M.useCallback(async T=>{var lt;const z=Date.now(),{errors:H,functions:$,methods:ce,types:ye,variables:ue,overloadsFuncs:bt,preParserCode:St}=await wo(T),Me=new Map(Object.entries($)),Fe=new Map(Object.entries(ce)),Y=new Map(Object.entries(ye)),he=new Map(Object.entries(ue));Nr.setUserDefined({functions:Me,methods:Fe,types:Y,variables:he},bt),Lt.setUserDefind(Me,Y,he,Fe);const Oe=H.map(je=>({...je,severity:je.type||Se.MarkerSeverity.Error}));if(h)return;try{if(!H.length){const je=await vo(St,{isPreParser:!0});so.isEqual(je,To)||(To=je,I&&I(je))}}catch(je){console.log(je,"==================error- Run TccScript Server"),H.push({message:`Runtime Error: ${je.message}`,startLineNumber:0,endLineNumber:0,startColumn:0,endColumn:0})}(lt=E.current)==null||lt.setModelMarkers(Oe);const Le=Date.now();console.log((Le-z)/1e3)},[I,h]),G=M.useMemo(()=>so.debounce(Q,1e3),[Q]);function F(T){var z;if(h){Q(T||"");return}(z=E.current)==null||z.setModelMarkers([]),T!==void 0&&(g&&g(T),G(T))}return P.jsx(md,{height:a,width:o||"100%",defaultLanguage:Re,defaultValue:b||`indicator("我的脚本")
139
139
  plot(close)
140
- `,theme:u||"vs-dark",className:u||"vs-dark",options:{colorDecorators:!0,matchOnWordStartOnly:!0,useShadowDOM:!1,suggest:{preview:!0,matchOnWordStartOnly:!0},fontSize:13,...h?up:{},readOnlyMessage:{value:"该脚本是只读的。它无法被编辑。"},...c},onMount:Y,onChange:R})},pp=j.forwardRef(dp),mp=s=>{const{theme:n,modified:a,original:o,height:u,width:c,renderSideBySide:m=!0}=s,h=j.useCallback((b,g)=>{g.languages.register({id:Re}),g.editor.defineTheme("vs-dark",ln),g.editor.defineTheme("vs",on),g.languages.setMonarchTokensProvider(Re,sn),g.languages.setLanguageConfiguration(Re,nn)},[]);return O.jsx(ld,{height:u||"90vh",width:c||"100%",theme:n||"vs-dark",options:{readOnly:!0,renderSideBySide:m,scrollBeyondLastLine:!1},language:Re,modified:a,original:o,onMount:h})};q.VMarkerSeverity=void 0,function(s){s[s.Hint=1]="Hint",s[s.Info=2]="Info",s[s.Warning=4]="Warning",s[s.Error=8]="Error"}(q.VMarkerSeverity||(q.VMarkerSeverity={}));var Ja={},fp=function(){var s=document.getSelection();if(!s.rangeCount)return function(){};for(var n=document.activeElement,a=[],o=0;o<s.rangeCount;o++)a.push(s.getRangeAt(o));switch(n.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":n.blur();break;default:n=null;break}return s.removeAllRanges(),function(){s.type==="Caret"&&s.removeAllRanges(),s.rangeCount||a.forEach(function(u){s.addRange(u)}),n&&n.focus()}},yp=fp,Io={"text/plain":"Text","text/html":"Url",default:"Text"},hp="Copy to clipboard: #{key}, Enter";function _p(s){var n=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return s.replace(/#{\s*key\s*}/g,n)}function gp(s,n){var a,o,u,c,m,h,b=!1;n||(n={}),a=n.debug||!1;try{u=yp(),c=document.createRange(),m=document.getSelection(),h=document.createElement("span"),h.textContent=s,h.ariaHidden="true",h.style.all="unset",h.style.position="fixed",h.style.top=0,h.style.clip="rect(0, 0, 0, 0)",h.style.whiteSpace="pre",h.style.webkitUserSelect="text",h.style.MozUserSelect="text",h.style.msUserSelect="text",h.style.userSelect="text",h.addEventListener("copy",function(w){if(w.stopPropagation(),n.format)if(w.preventDefault(),typeof w.clipboardData>"u"){a&&console.warn("unable to use e.clipboardData"),a&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var T=Io[n.format]||Io.default;window.clipboardData.setData(T,s)}else w.clipboardData.clearData(),w.clipboardData.setData(n.format,s);n.onCopy&&(w.preventDefault(),n.onCopy(w.clipboardData))}),document.body.appendChild(h),c.selectNodeContents(h),m.addRange(c);var g=document.execCommand("copy");if(!g)throw new Error("copy command was unsuccessful");b=!0}catch(w){a&&console.error("unable to copy using execCommand: ",w),a&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(n.format||"text",s),n.onCopy&&n.onCopy(window.clipboardData),b=!0}catch(T){a&&console.error("unable to copy using clipboardData: ",T),a&&console.error("falling back to prompt"),o=_p("message"in n?n.message:hp),window.prompt(o,s)}}finally{m&&(typeof m.removeRange=="function"?m.removeRange(c):m.removeAllRanges()),h&&document.body.removeChild(h),u()}return b}var bp=gp;function hn(s){"@babel/helpers - typeof";return hn=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},hn(s)}Object.defineProperty(Ja,"__esModule",{value:!0}),Ja.CopyToClipboard=void 0;var es=ko(j),xp=ko(bp),wp=["text","onCopy","options","children"];function ko(s){return s&&s.__esModule?s:{default:s}}function Do(s,n){var a=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);n&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),a.push.apply(a,o)}return a}function Ao(s){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?arguments[n]:{};n%2?Do(Object(a),!0).forEach(function(o){gn(s,o,a[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(a)):Do(Object(a)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(a,o))})}return s}function vp(s,n){if(s==null)return{};var a=Tp(s,n),o,u;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(s);for(u=0;u<c.length;u++)o=c[u],!(n.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(s,o)&&(a[o]=s[o])}return a}function Tp(s,n){if(s==null)return{};var a={},o=Object.keys(s),u,c;for(c=0;c<o.length;c++)u=o[c],!(n.indexOf(u)>=0)&&(a[u]=s[u]);return a}function Ip(s,n){if(!(s instanceof n))throw new TypeError("Cannot call a class as a function")}function qo(s,n){for(var a=0;a<n.length;a++){var o=n[a];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(s,o.key,o)}}function kp(s,n,a){return n&&qo(s.prototype,n),a&&qo(s,a),Object.defineProperty(s,"prototype",{writable:!1}),s}function Dp(s,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(n&&n.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),Object.defineProperty(s,"prototype",{writable:!1}),n&&_n(s,n)}function _n(s,n){return _n=Object.setPrototypeOf||function(o,u){return o.__proto__=u,o},_n(s,n)}function Ap(s){var n=Cp();return function(){var o=ts(s),u;if(n){var c=ts(this).constructor;u=Reflect.construct(o,arguments,c)}else u=o.apply(this,arguments);return qp(this,u)}}function qp(s,n){if(n&&(hn(n)==="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Co(s)}function Co(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function Cp(){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 ts(s){return ts=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)},ts(s)}function gn(s,n,a){return n in s?Object.defineProperty(s,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):s[n]=a,s}var So=function(s){Dp(a,s);var n=Ap(a);function a(){var o;Ip(this,a);for(var u=arguments.length,c=new Array(u),m=0;m<u;m++)c[m]=arguments[m];return o=n.call.apply(n,[this].concat(c)),gn(Co(o),"onClick",function(h){var b=o.props,g=b.text,w=b.onCopy,T=b.children,L=b.options,M=es.default.Children.only(T),B=(0,xp.default)(g,L);w&&w(g,B),M&&M.props&&typeof M.props.onClick=="function"&&M.props.onClick(h)}),o}return kp(a,[{key:"render",value:function(){var u=this.props;u.text,u.onCopy,u.options;var c=u.children,m=vp(u,wp),h=es.default.Children.only(c);return es.default.cloneElement(h,Ao(Ao({},m),{},{onClick:this.onClick}))}}]),a}(es.default.PureComponent);Ja.CopyToClipboard=So,gn(So,"defaultProps",{onCopy:void 0,options:void 0});var Sp=Ja,bn=Sp.CopyToClipboard;bn.CopyToClipboard=bn;var zp=bn;const xn=nu(zp);async function Np(s,n=0){const a=s[n];if(!a)return;const{name:o,args:u,type:c,desc:m,examples:h,remarks:b,seeAlso:g,syntax:w,detailedDesc:T,fields:L,returns:M}=a,B={name:o};if(s.length>1&&(B.overloads=`${s.length} overloads`),c&&(B.type=c),u&&(B.name=`${o}()`,B.args=u.map(P=>{const{name:Y,desc:F,displayType:U}=P;return{label:`${Y} (${U})`,desc:F&&gr(F)}})),m&&(B.desc=m.map(P=>gr(P))),h&&(B.originalExample=h.join(`
141
- `),B.examples=await Se.editor.colorize(B.originalExample,Re,{tabSize:4})),T){B.detailedDesc=[];for(const P of T){const{desc:Y,examples:F}=P;let U=Y.map(E=>gr(E)),R,k;F&&(k=F.join(`
142
- `),R=await Se.editor.colorize(k,Re,{tabSize:4})),B.detailedDesc.push({desc:U,examples:R,originalExample:k})}}return M&&(B.returns=M.map(P=>gr(P))),b&&(B.remarks=typeof b=="string"?[gr(b)]:b.map(P=>gr(P))),w&&(B.syntax=s.map(P=>{var Y;return(Y=P.syntax)==null?void 0:Y[0]})),L&&(B.fields=L.map(P=>{const{name:Y,desc:F,type:U}=P;return{label:`${Y} (${U})`,desc:F&&gr(F)}})),g&&(B.seeAlso=g.map(P=>Op(P))),B}function Op(s){const a=/\[([^\[\]]+)\]\(([^\(\)]+)\)/g.exec(s);if(a){const[o,u,c]=a;return{name:u,link:c}}}function gr(s){const n=/\*\*([^\*]+)\*\*/g,a=/\`([^\`]+)\`/g,o=/\[([^\[\]]+)\]\(([^\(\)]+)\)/g;return s.replace(n,(u,c)=>`<strong>${c}</strong>`).replace(a,(u,c)=>`<code>${c}</code>`).replace(o,(u,c,m)=>`<a ${m.startsWith("#")?`data-name="${c}"`:'target="_blank"'} class="manual-content-text-link" href="${m}">${c}</a>`)}function Pp(s){var o;const n=[],a=[];for(const u of ca){for(let c of ao[u.key].sort()){if(ro.includes(c))continue;let m=c;u.prefix==="fun"&&(m=`${c}()`),m.includes(s)&&(m.startsWith(s)?n.unshift({label:m,group:u,key:`${u.prefix}_${c}`}):n.push({label:m,group:u,key:`${u.prefix}_${c}`}))}for(const[c,m]of gt[u.key])for(const h of m){const{name:b,args:g,type:w,desc:T,examples:L,remarks:M,seeAlso:B,syntax:P,detailedDesc:Y,fields:F,returns:U}=h,R={label:b,group:u,key:`${u.prefix}_${b}`};if(u.prefix==="fun"&&(R.label=`${b}()`),R.label.includes(s))break;if(g){let k=!1;for(const E of g){const{name:G,desc:V,displayType:he}=E;if(G.includes(s)||V!=null&&V.includes(s)||he!=null&&he.includes(s)){a.push(R),k=!0;break}}if(k)break}if(w&&w.includes(s)){a.push(R);break}if(T){let k=!1;for(const E of T)if(E.includes(s)){a.push(R),k=!0;break}if(k)break}if(L){let k=!1;for(const E of L)if(E.includes(s)){a.push(R),k=!0;break}if(k)break}if(M&&(typeof M=="string"?M:M.join(`
143
- `)).includes(s)){a.push(R);break}if(B){let k=!1;for(const E of B)if(E.includes(s)){a.push(R),k=!0;break}if(k)break}if(P){let k=!1;for(const E of P)if(E.includes(s)){a.push(R),k=!0;break}if(k)break}if(Y){let k=!1;for(const E of Y){const{desc:G,examples:V}=E;if(G.join(`
144
- `).includes(s)){a.push(R),k=!0;break}if((o=V==null?void 0:V.join(`
145
- `))!=null&&o.includes(s)){a.push(R),k=!0;break}}if(k)break}if(F){let k=!1;for(const E of F){const{name:G,desc:V,type:he}=E;if(G.includes(s)||V!=null&&V.includes(s)||he!=null&&he.includes(s)){a.push(R),k=!0;break}}if(k)break}if(U){let k=!1;for(const E of U)if(E.includes(s)){a.push(R),k=!0;break}if(k)break}}}return{labelList:n,contentList:a}}const Ep=s=>{var U;const{group:n,itemKey:a,onItemClick:o,currentIndex:u}=s,[c,m]=j.useState(),[h,b]=j.useState(0),[g,w]=j.useState("Copy code"),[T,L]=j.useState("Copy link");j.useEffect(()=>{M(u)},[a]);const M=R=>{const k=a.replace(`${n==null?void 0:n.prefix}_`,""),E=gt[n==null?void 0:n.key].get(k);b(R),E&&Np(E,R).then(G=>{m(G)})},B=R=>{M(R)},P=R=>{var k,E;if(R.target.localName==="a"&&R.target.hash&&((E=(k=R.target)==null?void 0:k.dataset)!=null&&E.name)){R.preventDefault();const{hash:G}=R.target;o(G.replace("#",""))}},Y=()=>{w("Copied"),setTimeout(()=>{w("Copy code")},1e3)},F=()=>{L("Link copied"),setTimeout(()=>{L("Copy link")},3e3)};return O.jsx("div",{onClick:P,id:`#${a}`,children:O.jsxs("div",{className:"manual-content-wrapper",children:[O.jsxs("div",{className:"manual-content-header",children:[O.jsxs("div",{children:[O.jsx("h3",{className:"manual-content-header-title",children:c==null?void 0:c.name}),!!(c!=null&&c.overloads)&&O.jsx("span",{className:"manual-content-header-overloads",children:c==null?void 0:c.overloads})]}),O.jsx(xn,{text:(c==null?void 0:c.name)||"",onCopy:F,children:O.jsx("div",{"data-tooltip":T,className:"manual-content-btn",children:O.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28",width:"28",height:"28",children:O.jsxs("g",{fill:"currentColor",children:[O.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"}),O.jsx("path",{d:"M10.485 16.141l5.656-5.656.707.707-5.656 5.656z"})]})})})})]}),(U=c==null?void 0:c.desc)==null?void 0:U.map((R,k)=>O.jsx("div",{dangerouslySetInnerHTML:{__html:R},className:"manual-content-text"},k)),(c==null?void 0:c.type)&&O.jsxs(j.Fragment,{children:[O.jsx("div",{className:"manual-content-sub-title",children:"type"}),O.jsx("div",{className:"manual-content-text",children:c.type})]}),(c==null?void 0:c.syntax)&&O.jsxs(j.Fragment,{children:[O.jsxs("div",{className:"manual-content-sub-title",children:["Syntax ",!!(c!=null&&c.overloads)&&"& Overloads"]}),c.syntax.map((R,k)=>{var E;return(((E=c.syntax)==null?void 0:E.length)||0)>1?O.jsx("div",{onClick:()=>B(k),children:O.jsx("pre",{className:`manual-content-syntax with-overloads ${k===h?"selected":""}`,children:R})},k):O.jsx("pre",{className:"manual-content-syntax",children:R},k)})]}),(c==null?void 0:c.args)&&O.jsxs(j.Fragment,{children:[O.jsx("div",{className:"manual-content-sub-title",children:"arguments"}),c.args.map((R,k)=>O.jsxs("div",{className:"manual-content-text",children:[O.jsx("span",{className:"manual-content-args-label",children:R.label})," ",O.jsx("span",{dangerouslySetInnerHTML:{__html:R.desc||""}})]},k))]}),(c==null?void 0:c.fields)&&O.jsxs(j.Fragment,{children:[O.jsx("div",{className:"manual-content-sub-title",children:"fields"}),c.fields.map((R,k)=>O.jsxs("div",{className:"manual-content-text",children:[O.jsx("span",{className:"manual-content-args-label",children:R.label})," ",O.jsx("span",{dangerouslySetInnerHTML:{__html:R.desc||""}})]},k))]}),(c==null?void 0:c.examples)&&O.jsxs(j.Fragment,{children:[O.jsxs("div",{className:"manual-content-sub-title manual-content-example-header",children:[O.jsx("div",{children:O.jsx("span",{children:"example"})}),O.jsx(xn,{text:c.originalExample||"",onCopy:Y,children:O.jsx("div",{"data-tooltip":g,className:"manual-content-btn manual-content-example-copy",children:O.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",fill:"none",children:O.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"})})})})]}),O.jsx("pre",{className:"manual-content-example",children:O.jsx("code",{dangerouslySetInnerHTML:{__html:c.examples}})})]}),(c==null?void 0:c.detailedDesc)&&c.detailedDesc.map((R,k)=>O.jsxs(j.Fragment,{children:[R.desc.map((E,G)=>O.jsx("div",{className:"manual-content-text",dangerouslySetInnerHTML:{__html:E}},G)),O.jsxs("div",{className:"manual-content-sub-title manual-content-example-header",children:[O.jsx("div",{children:O.jsx("span",{children:"example"})}),O.jsx(xn,{text:R.originalExample||"",onCopy:Y,children:O.jsx("div",{"data-tooltip":g,className:"manual-content-btn manual-content-example-copy",children:O.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",fill:"none",children:O.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"})})})})]}),O.jsx("pre",{className:"manual-content-example",children:O.jsx("code",{dangerouslySetInnerHTML:{__html:R.examples||""}})})]},k)),(c==null?void 0:c.returns)&&O.jsxs(j.Fragment,{children:[O.jsx("div",{className:"manual-content-sub-title",children:"returns"}),c.returns.map((R,k)=>O.jsx("div",{className:"manual-content-text",dangerouslySetInnerHTML:{__html:R}},k))]}),(c==null?void 0:c.remarks)&&O.jsxs(j.Fragment,{children:[O.jsx("div",{className:"manual-content-sub-title",children:"remarks"}),c.remarks.map((R,k)=>O.jsx("div",{className:"manual-content-text",dangerouslySetInnerHTML:{__html:R}},k))]}),(c==null?void 0:c.seeAlso)&&O.jsxs(j.Fragment,{children:[O.jsx("div",{className:"manual-content-sub-title",children:"see Also"}),O.jsx("div",{className:"manual-content-see_also",children:c.seeAlso.map((R,k)=>O.jsx("a",{className:"manual-content-see_also-tag","data-name":R==null?void 0:R.name,href:R==null?void 0:R.link,children:R==null?void 0:R.name},k))})]})]})})};Se.languages.register({id:Re}),Se.editor.defineTheme("vs-dark",ln),Se.editor.defineTheme("vs",on),Se.languages.setMonarchTokensProvider(Re,sn),Se.languages.setLanguageConfiguration(Re,nn);const Rp=({theme:s="vs-dark",currentKey:n,currentIndex:a=0})=>{const[o,u]=j.useState(ca[0]),[c,m]=j.useState(null),[h,b]=j.useState(""),[g,w]=j.useState("var_bar_index"),T=j.useRef(null),L=F=>{F.key===(o==null?void 0:o.key)?u(null):u(F)};j.useEffect(()=>{Se.editor.setTheme(s)},[s]),j.useEffect(()=>{if(n){const[F]=n.split("_"),U=ca.find(R=>F===R.prefix);U&&P(U,n)}},[n]);const M=(F,U)=>{U&&u(U),w(F)},B=F=>{if(b(F.target.value),F.target.value.trim()==="")m(null);else{const U=Pp(F.target.value);m(U)}},P=(F,U)=>{u(F),w(U),setTimeout(()=>{var R,k;(k=(R=T.current)==null?void 0:R.querySelector(`a[data-href="${U}"]`))==null||k.scrollIntoView(!0)},10)},Y=F=>{const U=ca.find(R=>F.startsWith(R.prefix));U&&P(U,F)};return O.jsxs("div",{className:`${s} manual-warpper`,children:[O.jsxs("div",{className:"manual-left",children:[O.jsxs("div",{className:"manual-search",children:[O.jsx("span",{className:"manual-search-icon",children:O.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18",width:"18px",height:"18px",children:O.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"})})}),O.jsx("input",{onChange:B,spellCheck:"false",value:h,className:"manual-search-input",autoComplete:"off",placeholder:"Search",type:"text"}),O.jsx("span",{onClick:()=>b(""),className:`manual-search-clear ${h?"":"hide"}`,children:O.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 95.939 95.939",width:"9",height:"9",children:O.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"})})})]}),O.jsx("div",{className:`manual-group-search-list manual-scroll ${h?"":"hide"}`,children:O.jsxs("div",{children:[c==null?void 0:c.labelList.map(F=>O.jsx("a",{onClick:U=>{U.preventDefault(),M(F.key,F.group)},className:`manual-group-body-item ${F.key===g?"manual-group-body-item-selected":""}`,"data-href":F.key,href:`#${F.key}`,children:F.label},`search_${F.key}`)),O.jsx("div",{className:"manual-content-separator"}),c==null?void 0:c.contentList.map(F=>O.jsx("a",{onClick:U=>{U.preventDefault(),M(F.key,F.group)},className:`manual-group-body-item ${F.key===g?"manual-group-body-item-selected":""}`,"data-href":F.key,href:`#${F.key}`,children:F.label},`search_${F.key}`))]})}),O.jsx("div",{className:`manual-group-list manual-scroll ${h?"hide":""}`,ref:T,children:ca.map(F=>{var U,R;return O.jsxs(j.Fragment,{children:[O.jsx("div",{onClick:()=>L(F),className:`manual-group-title ${F.key===(o==null?void 0:o.key)?"active":""}`,children:F.title}),O.jsx("div",{className:`manual-group-body manual-scroll ${F.key!==(o==null?void 0:o.key)?"hide":""}`,children:(R=(U=ao[F.key])==null?void 0:U.sort().filter(k=>!ro.includes(k)))==null?void 0:R.map(k=>{const E=`${F.prefix}_${k}`;return O.jsx("a",{onClick:G=>{G.preventDefault(),M(E)},className:`manual-group-body-item ${E===g?"manual-group-body-item-selected":""}`,"data-href":E,href:`#${E}`,children:`${k}${F.prefix==="fun"?"()":""}`},E)})})]},F.key)})})]}),O.jsx("div",{className:"manual-right manual-scroll",children:O.jsx(Ep,{currentIndex:a,group:o,itemKey:g,onItemClick:Y})})]})};q.ReferenceManual=Rp,q.TradingVueDiffEditor=mp,q.TradingVueEditor=pp,q.parseTcc=wo,q.removeScript=lp,q.scriptsRun=vo,Object.defineProperty(q,Symbol.toStringTag,{value:"Module"})});
140
+ `,theme:u||"vs-dark",className:u||"vs-dark",options:{colorDecorators:!0,matchOnWordStartOnly:!0,useShadowDOM:!1,suggest:{preview:!0,matchOnWordStartOnly:!0},fontSize:13,...h?up:{},readOnlyMessage:{value:"该脚本是只读的。它无法被编辑。"},...c},onMount:V,onChange:F})},pp=M.forwardRef(dp),mp=s=>{const{theme:n,modified:a,original:o,height:u,width:c,renderSideBySide:m=!0}=s,h=M.useCallback((b,g)=>{g.languages.register({id:Re}),g.editor.defineTheme("vs-dark",ln),g.editor.defineTheme("vs",on),g.languages.setMonarchTokensProvider(Re,sn),g.languages.setLanguageConfiguration(Re,nn)},[]);return P.jsx(ld,{height:u||"90vh",width:c||"100%",theme:n||"vs-dark",options:{readOnly:!0,renderSideBySide:m,scrollBeyondLastLine:!1},language:Re,modified:a,original:o,onMount:h})};q.VMarkerSeverity=void 0,function(s){s[s.Hint=1]="Hint",s[s.Info=2]="Info",s[s.Warning=4]="Warning",s[s.Error=8]="Error"}(q.VMarkerSeverity||(q.VMarkerSeverity={}));var Ja={},fp=function(){var s=document.getSelection();if(!s.rangeCount)return function(){};for(var n=document.activeElement,a=[],o=0;o<s.rangeCount;o++)a.push(s.getRangeAt(o));switch(n.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":n.blur();break;default:n=null;break}return s.removeAllRanges(),function(){s.type==="Caret"&&s.removeAllRanges(),s.rangeCount||a.forEach(function(u){s.addRange(u)}),n&&n.focus()}},yp=fp,Io={"text/plain":"Text","text/html":"Url",default:"Text"},hp="Copy to clipboard: #{key}, Enter";function _p(s){var n=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return s.replace(/#{\s*key\s*}/g,n)}function gp(s,n){var a,o,u,c,m,h,b=!1;n||(n={}),a=n.debug||!1;try{u=yp(),c=document.createRange(),m=document.getSelection(),h=document.createElement("span"),h.textContent=s,h.ariaHidden="true",h.style.all="unset",h.style.position="fixed",h.style.top=0,h.style.clip="rect(0, 0, 0, 0)",h.style.whiteSpace="pre",h.style.webkitUserSelect="text",h.style.MozUserSelect="text",h.style.msUserSelect="text",h.style.userSelect="text",h.addEventListener("copy",function(w){if(w.stopPropagation(),n.format)if(w.preventDefault(),typeof w.clipboardData>"u"){a&&console.warn("unable to use e.clipboardData"),a&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var I=Io[n.format]||Io.default;window.clipboardData.setData(I,s)}else w.clipboardData.clearData(),w.clipboardData.setData(n.format,s);n.onCopy&&(w.preventDefault(),n.onCopy(w.clipboardData))}),document.body.appendChild(h),c.selectNodeContents(h),m.addRange(c);var g=document.execCommand("copy");if(!g)throw new Error("copy command was unsuccessful");b=!0}catch(w){a&&console.error("unable to copy using execCommand: ",w),a&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(n.format||"text",s),n.onCopy&&n.onCopy(window.clipboardData),b=!0}catch(I){a&&console.error("unable to copy using clipboardData: ",I),a&&console.error("falling back to prompt"),o=_p("message"in n?n.message:hp),window.prompt(o,s)}}finally{m&&(typeof m.removeRange=="function"?m.removeRange(c):m.removeAllRanges()),h&&document.body.removeChild(h),u()}return b}var bp=gp;function hn(s){"@babel/helpers - typeof";return hn=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},hn(s)}Object.defineProperty(Ja,"__esModule",{value:!0}),Ja.CopyToClipboard=void 0;var es=ko(M),xp=ko(bp),wp=["text","onCopy","options","children"];function ko(s){return s&&s.__esModule?s:{default:s}}function Do(s,n){var a=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);n&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),a.push.apply(a,o)}return a}function Ao(s){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?arguments[n]:{};n%2?Do(Object(a),!0).forEach(function(o){gn(s,o,a[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(a)):Do(Object(a)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(a,o))})}return s}function vp(s,n){if(s==null)return{};var a=Tp(s,n),o,u;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(s);for(u=0;u<c.length;u++)o=c[u],!(n.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(s,o)&&(a[o]=s[o])}return a}function Tp(s,n){if(s==null)return{};var a={},o=Object.keys(s),u,c;for(c=0;c<o.length;c++)u=o[c],!(n.indexOf(u)>=0)&&(a[u]=s[u]);return a}function Ip(s,n){if(!(s instanceof n))throw new TypeError("Cannot call a class as a function")}function qo(s,n){for(var a=0;a<n.length;a++){var o=n[a];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(s,o.key,o)}}function kp(s,n,a){return n&&qo(s.prototype,n),a&&qo(s,a),Object.defineProperty(s,"prototype",{writable:!1}),s}function Dp(s,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(n&&n.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),Object.defineProperty(s,"prototype",{writable:!1}),n&&_n(s,n)}function _n(s,n){return _n=Object.setPrototypeOf||function(o,u){return o.__proto__=u,o},_n(s,n)}function Ap(s){var n=Cp();return function(){var o=ts(s),u;if(n){var c=ts(this).constructor;u=Reflect.construct(o,arguments,c)}else u=o.apply(this,arguments);return qp(this,u)}}function qp(s,n){if(n&&(hn(n)==="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Co(s)}function Co(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function Cp(){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 ts(s){return ts=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)},ts(s)}function gn(s,n,a){return n in s?Object.defineProperty(s,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):s[n]=a,s}var So=function(s){Dp(a,s);var n=Ap(a);function a(){var o;Ip(this,a);for(var u=arguments.length,c=new Array(u),m=0;m<u;m++)c[m]=arguments[m];return o=n.call.apply(n,[this].concat(c)),gn(Co(o),"onClick",function(h){var b=o.props,g=b.text,w=b.onCopy,I=b.children,R=b.options,L=es.default.Children.only(I),j=(0,xp.default)(g,R);w&&w(g,j),L&&L.props&&typeof L.props.onClick=="function"&&L.props.onClick(h)}),o}return kp(a,[{key:"render",value:function(){var u=this.props;u.text,u.onCopy,u.options;var c=u.children,m=vp(u,wp),h=es.default.Children.only(c);return es.default.cloneElement(h,Ao(Ao({},m),{},{onClick:this.onClick}))}}]),a}(es.default.PureComponent);Ja.CopyToClipboard=So,gn(So,"defaultProps",{onCopy:void 0,options:void 0});var Sp=Ja,bn=Sp.CopyToClipboard;bn.CopyToClipboard=bn;var zp=bn;const xn=nu(zp);async function Np(s,n=0){const a=s[n];if(!a)return;const{name:o,args:u,type:c,desc:m,examples:h,remarks:b,seeAlso:g,syntax:w,detailedDesc:I,fields:R,returns:L}=a,j={name:o};if(s.length>1&&(j.overloads=`${s.length} overloads`),c&&(j.type=c),u&&(j.name=`${o}()`,j.args=u.map(E=>{const{name:V,desc:Q,displayType:G}=E;return{label:`${V} (${G})`,desc:Q&&gr(Q)}})),m&&(j.desc=m.map(E=>gr(E))),h&&(j.originalExample=h.join(`
141
+ `),j.examples=await Se.editor.colorize(j.originalExample,Re,{tabSize:4})),I){j.detailedDesc=[];for(const E of I){const{desc:V,examples:Q}=E;let G=V.map(z=>gr(z)),F,T;Q&&(T=Q.join(`
142
+ `),F=await Se.editor.colorize(T,Re,{tabSize:4})),j.detailedDesc.push({desc:G,examples:F,originalExample:T})}}return L&&(j.returns=L.map(E=>gr(E))),b&&(j.remarks=typeof b=="string"?[gr(b)]:b.map(E=>gr(E))),w&&(j.syntax=s.map(E=>{var V;return(V=E.syntax)==null?void 0:V[0]})),R&&(j.fields=R.map(E=>{const{name:V,desc:Q,type:G}=E;return{label:`${V} (${G})`,desc:Q&&gr(Q)}})),g&&(j.seeAlso=g.map(E=>Op(E))),j}function Op(s){const a=/\[([^\[\]]+)\]\(([^\(\)]+)\)/g.exec(s);if(a){const[o,u,c]=a;return{name:u,link:c}}}function gr(s){const n=/\*\*([^\*]+)\*\*/g,a=/\`([^\`]+)\`/g,o=/\[([^\[\]]+)\]\(([^\(\)]+)\)/g;return s.replace(n,(u,c)=>`<strong>${c}</strong>`).replace(a,(u,c)=>`<code>${c}</code>`).replace(o,(u,c,m)=>`<a ${m.startsWith("#")?`data-name="${c}"`:'target="_blank"'} class="manual-content-text-link" href="${m}">${c}</a>`)}function Pp(s){var o;const n=[],a=[];for(const u of ca){for(let c of ao[u.key].sort()){if(ro.includes(c))continue;let m=c;u.prefix==="fun"&&(m=`${c}()`),m.includes(s)&&(m.startsWith(s)?n.unshift({label:m,group:u,key:`${u.prefix}_${c}`}):n.push({label:m,group:u,key:`${u.prefix}_${c}`}))}for(const[c,m]of gt[u.key])for(const h of m){const{name:b,args:g,type:w,desc:I,examples:R,remarks:L,seeAlso:j,syntax:E,detailedDesc:V,fields:Q,returns:G}=h,F={label:b,group:u,key:`${u.prefix}_${b}`};if(u.prefix==="fun"&&(F.label=`${b}()`),F.label.includes(s))break;if(g){let T=!1;for(const z of g){const{name:H,desc:$,displayType:ce}=z;if(H.includes(s)||$!=null&&$.includes(s)||ce!=null&&ce.includes(s)){a.push(F),T=!0;break}}if(T)break}if(w&&w.includes(s)){a.push(F);break}if(I){let T=!1;for(const z of I)if(z.includes(s)){a.push(F),T=!0;break}if(T)break}if(R){let T=!1;for(const z of R)if(z.includes(s)){a.push(F),T=!0;break}if(T)break}if(L&&(typeof L=="string"?L:L.join(`
143
+ `)).includes(s)){a.push(F);break}if(j){let T=!1;for(const z of j)if(z.includes(s)){a.push(F),T=!0;break}if(T)break}if(E){let T=!1;for(const z of E)if(z.includes(s)){a.push(F),T=!0;break}if(T)break}if(V){let T=!1;for(const z of V){const{desc:H,examples:$}=z;if(H.join(`
144
+ `).includes(s)){a.push(F),T=!0;break}if((o=$==null?void 0:$.join(`
145
+ `))!=null&&o.includes(s)){a.push(F),T=!0;break}}if(T)break}if(Q){let T=!1;for(const z of Q){const{name:H,desc:$,type:ce}=z;if(H.includes(s)||$!=null&&$.includes(s)||ce!=null&&ce.includes(s)){a.push(F),T=!0;break}}if(T)break}if(G){let T=!1;for(const z of G)if(z.includes(s)){a.push(F),T=!0;break}if(T)break}}}return{labelList:n,contentList:a}}const Ep=s=>{var G;const{group:n,itemKey:a,onItemClick:o,currentIndex:u}=s,[c,m]=M.useState(),[h,b]=M.useState(0),[g,w]=M.useState("Copy code"),[I,R]=M.useState("Copy link");M.useEffect(()=>{L(u)},[a]);const L=F=>{const T=a.replace(`${n==null?void 0:n.prefix}_`,""),z=gt[n==null?void 0:n.key].get(T);b(F),z&&Np(z,F).then(H=>{m(H)})},j=F=>{L(F)},E=F=>{var T,z;if(F.target.localName==="a"&&F.target.hash&&((z=(T=F.target)==null?void 0:T.dataset)!=null&&z.name)){F.preventDefault();const{hash:H}=F.target;o(H.replace("#",""))}},V=()=>{w("Copied"),setTimeout(()=>{w("Copy code")},1e3)},Q=()=>{R("Link copied"),setTimeout(()=>{R("Copy link")},3e3)};return P.jsx("div",{onClick:E,id:`#${a}`,children:P.jsxs("div",{className:"manual-content-wrapper",children:[P.jsxs("div",{className:"manual-content-header",children:[P.jsxs("div",{children:[P.jsx("h3",{className:"manual-content-header-title",children:c==null?void 0:c.name}),!!(c!=null&&c.overloads)&&P.jsx("span",{className:"manual-content-header-overloads",children:c==null?void 0:c.overloads})]}),P.jsx(xn,{text:(c==null?void 0:c.name)||"",onCopy:Q,children:P.jsx("div",{"data-tooltip":I,className:"manual-content-btn",children:P.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28",width:"28",height:"28",children:P.jsxs("g",{fill:"currentColor",children:[P.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"}),P.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,T)=>P.jsx("div",{dangerouslySetInnerHTML:{__html:F},className:"manual-content-text"},T)),(c==null?void 0:c.type)&&P.jsxs(M.Fragment,{children:[P.jsx("div",{className:"manual-content-sub-title",children:"type"}),P.jsx("div",{className:"manual-content-text",children:c.type})]}),(c==null?void 0:c.syntax)&&P.jsxs(M.Fragment,{children:[P.jsxs("div",{className:"manual-content-sub-title",children:["Syntax ",!!(c!=null&&c.overloads)&&"& Overloads"]}),c.syntax.map((F,T)=>{var z;return(((z=c.syntax)==null?void 0:z.length)||0)>1?P.jsx("div",{onClick:()=>j(T),children:P.jsx("pre",{className:`manual-content-syntax with-overloads ${T===h?"selected":""}`,children:F})},T):P.jsx("pre",{className:"manual-content-syntax",children:F},T)})]}),(c==null?void 0:c.args)&&P.jsxs(M.Fragment,{children:[P.jsx("div",{className:"manual-content-sub-title",children:"arguments"}),c.args.map((F,T)=>P.jsxs("div",{className:"manual-content-text",children:[P.jsx("span",{className:"manual-content-args-label",children:F.label})," ",P.jsx("span",{dangerouslySetInnerHTML:{__html:F.desc||""}})]},T))]}),(c==null?void 0:c.fields)&&P.jsxs(M.Fragment,{children:[P.jsx("div",{className:"manual-content-sub-title",children:"fields"}),c.fields.map((F,T)=>P.jsxs("div",{className:"manual-content-text",children:[P.jsx("span",{className:"manual-content-args-label",children:F.label})," ",P.jsx("span",{dangerouslySetInnerHTML:{__html:F.desc||""}})]},T))]}),(c==null?void 0:c.examples)&&P.jsxs(M.Fragment,{children:[P.jsxs("div",{className:"manual-content-sub-title manual-content-example-header",children:[P.jsx("div",{children:P.jsx("span",{children:"example"})}),P.jsx(xn,{text:c.originalExample||"",onCopy:V,children:P.jsx("div",{"data-tooltip":g,className:"manual-content-btn manual-content-example-copy",children:P.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",fill:"none",children:P.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"})})})})]}),P.jsx("pre",{className:"manual-content-example",children:P.jsx("code",{dangerouslySetInnerHTML:{__html:c.examples}})})]}),(c==null?void 0:c.detailedDesc)&&c.detailedDesc.map((F,T)=>P.jsxs(M.Fragment,{children:[F.desc.map((z,H)=>P.jsx("div",{className:"manual-content-text",dangerouslySetInnerHTML:{__html:z}},H)),P.jsxs("div",{className:"manual-content-sub-title manual-content-example-header",children:[P.jsx("div",{children:P.jsx("span",{children:"example"})}),P.jsx(xn,{text:F.originalExample||"",onCopy:V,children:P.jsx("div",{"data-tooltip":g,className:"manual-content-btn manual-content-example-copy",children:P.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",fill:"none",children:P.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"})})})})]}),P.jsx("pre",{className:"manual-content-example",children:P.jsx("code",{dangerouslySetInnerHTML:{__html:F.examples||""}})})]},T)),(c==null?void 0:c.returns)&&P.jsxs(M.Fragment,{children:[P.jsx("div",{className:"manual-content-sub-title",children:"returns"}),c.returns.map((F,T)=>P.jsx("div",{className:"manual-content-text",dangerouslySetInnerHTML:{__html:F}},T))]}),(c==null?void 0:c.remarks)&&P.jsxs(M.Fragment,{children:[P.jsx("div",{className:"manual-content-sub-title",children:"remarks"}),c.remarks.map((F,T)=>P.jsx("div",{className:"manual-content-text",dangerouslySetInnerHTML:{__html:F}},T))]}),(c==null?void 0:c.seeAlso)&&P.jsxs(M.Fragment,{children:[P.jsx("div",{className:"manual-content-sub-title",children:"see Also"}),P.jsx("div",{className:"manual-content-see_also",children:c.seeAlso.map((F,T)=>P.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},T))})]})]})})};Se.languages.register({id:Re}),Se.editor.defineTheme("vs-dark",ln),Se.editor.defineTheme("vs",on),Se.languages.setMonarchTokensProvider(Re,sn),Se.languages.setLanguageConfiguration(Re,nn);const Rp=({theme:s="vs-dark",currentKey:n,currentIndex:a=0})=>{const[o,u]=M.useState(ca[0]),[c,m]=M.useState(null),[h,b]=M.useState(0),[g,w]=M.useState(""),[I,R]=M.useState("var_bar_index"),L=M.useRef(null),j=T=>{T.key===(o==null?void 0:o.key)?u(null):u(T)};M.useEffect(()=>{Se.editor.setTheme(s)},[s]),M.useEffect(()=>{if(n){const[T]=n.split("_"),z=ca.find(H=>T===H.prefix);z&&(b(a),G(z,n))}},[n]);const E=(T,z)=>{z&&u(z),b(0),R(T)},V=T=>{if(T.target.value.trim()==="")Q();else{w(T.target.value);const z=Pp(T.target.value);m(z)}},Q=()=>{w(""),m(null),setTimeout(()=>{var T,z;(z=(T=L.current)==null?void 0:T.querySelector(`a[data-href="${I}"]`))==null||z.scrollIntoView(!0)},10)},G=(T,z)=>{u(T),R(z),setTimeout(()=>{var H,$;($=(H=L.current)==null?void 0:H.querySelector(`a[data-href="${z}"]`))==null||$.scrollIntoView(!0)},10)},F=T=>{const z=ca.find(H=>T.startsWith(H.prefix));z&&G(z,T)};return P.jsxs("div",{className:`${s} manual-warpper`,children:[P.jsxs("div",{className:"manual-left",children:[P.jsxs("div",{className:"manual-search",children:[P.jsx("span",{className:"manual-search-icon",children:P.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18",width:"18px",height:"18px",children:P.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"})})}),P.jsx("input",{onChange:V,spellCheck:"false",value:g,className:"manual-search-input",autoComplete:"off",placeholder:"Search",type:"text"}),P.jsx("span",{onClick:Q,className:`manual-search-clear ${g?"":"hide"}`,children:P.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 95.939 95.939",width:"9",height:"9",children:P.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"})})})]}),P.jsx("div",{className:`manual-group-search-list manual-scroll ${g?"":"hide"}`,children:P.jsxs("div",{children:[c==null?void 0:c.labelList.map(T=>P.jsx("a",{onClick:z=>{z.preventDefault(),E(T.key,T.group)},className:`manual-group-body-item ${T.key===I?"manual-group-body-item-selected":""}`,"data-href":T.key,href:`#${T.key}`,children:T.label},`search_${T.key}`)),P.jsx("div",{className:"manual-content-separator"}),c==null?void 0:c.contentList.map(T=>P.jsx("a",{onClick:z=>{z.preventDefault(),E(T.key,T.group)},className:`manual-group-body-item ${T.key===I?"manual-group-body-item-selected":""}`,"data-href":T.key,href:`#${T.key}`,children:T.label},`search_${T.key}`))]})}),P.jsx("div",{className:`manual-group-list manual-scroll ${g?"hide":""}`,ref:L,children:ca.map(T=>{var z,H;return P.jsxs(M.Fragment,{children:[P.jsx("div",{onClick:()=>j(T),className:`manual-group-title ${T.key===(o==null?void 0:o.key)?"active":""}`,children:T.title}),P.jsx("div",{className:`manual-group-body manual-scroll ${T.key!==(o==null?void 0:o.key)?"hide":""}`,children:(H=(z=ao[T.key])==null?void 0:z.sort().filter($=>!ro.includes($)))==null?void 0:H.map($=>{const ce=`${T.prefix}_${$}`;return P.jsx("a",{onClick:ye=>{ye.preventDefault(),E(ce)},className:`manual-group-body-item ${ce===I?"manual-group-body-item-selected":""}`,"data-href":ce,href:`#${ce}`,children:`${$}${T.prefix==="fun"?"()":""}`},ce)})})]},T.key)})})]}),P.jsx("div",{className:"manual-right manual-scroll",children:P.jsx(Ep,{currentIndex:h,group:o,itemKey:I,onItemClick:F})})]})};q.ReferenceManual=Rp,q.TradingVueDiffEditor=mp,q.TradingVueEditor=pp,q.parseTcc=wo,q.removeScript=lp,q.scriptsRun=vo,Object.defineProperty(q,Symbol.toStringTag,{value:"Module"})});