@guihz/trading-vue-editor-tes 0.1.89 → 0.1.91

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9491,12 +9491,14 @@ Arguments: ` + Array.prototype.slice.call(r).join("") + `
9491
9491
  isFutures: !0
9492
9492
  };
9493
9493
  } else {
9494
- const o = vR(
9494
+ const s = vR(
9495
9495
  yR(
9496
9496
  n || ""
9497
9497
  ),
9498
9498
  e
9499
- ).split(",").map((p) => p.split("-")), [a] = o[0];
9499
+ );
9500
+ if (!s) return { offsetTime: 0 };
9501
+ const o = s.split(",").map((p) => p?.split("-")), [a] = o[0];
9500
9502
  let c = 0;
9501
9503
  if (a) {
9502
9504
  const p = String(a).substring(0, 2), b = String(a).substring(2), M = t0.tz(e).set("hour", Number(p)).set("minute", Number(b)).set("second", 0);
@@ -19008,7 +19008,7 @@ function yL() {
19008
19008
  }
19009
19009
  const eA = new Worker(new URL(
19010
19010
  /* @vite-ignore */
19011
- "" + new URL("assets/scriptsRunWorker-Bru3Cv1z.js", import.meta.url).href,
19011
+ "" + new URL("assets/scriptsRunWorker-92km7-7R.js", import.meta.url).href,
19012
19012
  import.meta.url
19013
19013
  ), { type: "module", name: "Run MineScript Server" });
19014
19014
  eA.onerror = (M) => {
@@ -104,7 +104,7 @@ function print() { __p += __j.call(arguments, '') }
104
104
  * @license
105
105
  * Copyright 2019 Google LLC
106
106
  * SPDX-License-Identifier: Apache-2.0
107
- */const Pd=Symbol("Comlink.proxy"),Hx=Symbol("Comlink.endpoint"),jx=Symbol("Comlink.releaseProxy"),A1=Symbol("Comlink.finalizer"),Xn=Symbol("Comlink.thrown"),Kd=e=>typeof e=="object"&&e!==null||typeof e=="function",$x={canHandle:e=>Kd(e)&&e[Pd],serialize(e){const{port1:t,port2:s}=new MessageChannel;return Hd(e,t),[s,[s]]},deserialize(e){return e.start(),v1(e)}},Gx={canHandle:e=>Kd(e)&&Xn in e,serialize({value:e}){let t;return e instanceof Error?t={isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:t={isError:!1,value:e},[t,[]]},deserialize(e){throw e.isError?Object.assign(new Error(e.value.message),e.value):e.value}},Ud=new Map([["proxy",$x],["throw",Gx]]);function Yx(e,t){for(const s of e)if(t===s||s==="*"||s instanceof RegExp&&s.test(t))return!0;return!1}function Hd(e,t=globalThis,s=["*"]){t.addEventListener("message",function a(o){if(!o||!o.data)return;if(!Yx(s,o.origin)){console.warn(`Invalid origin '${o.origin}' for comlink proxy`);return}const{id:i,type:c,path:p}=Object.assign({path:[]},o.data),u=(o.data.argumentList||[]).map(na);let d;try{const y=p.slice(0,-1).reduce((b,M)=>b[M],e),_=p.reduce((b,M)=>b[M],e);switch(c){case"GET":d=_;break;case"SET":y[p.slice(-1)[0]]=na(o.data.value),d=!0;break;case"APPLY":d=_.apply(y,u);break;case"CONSTRUCT":{const b=new _(...u);d=q1(b)}break;case"ENDPOINT":{const{port1:b,port2:M}=new MessageChannel;Hd(e,M),d=eh(b,[b])}break;case"RELEASE":d=void 0;break;default:return}}catch(y){d={value:y,[Xn]:0}}Promise.resolve(d).catch(y=>({value:y,[Xn]:0})).then(y=>{const[_,b]=Un(y);t.postMessage(Object.assign(Object.assign({},_),{id:i}),b),c==="RELEASE"&&(t.removeEventListener("message",a),jd(t),A1 in e&&typeof e[A1]=="function"&&e[A1]())}).catch(y=>{const[_,b]=Un({value:new TypeError("Unserializable return value"),[Xn]:0});t.postMessage(Object.assign(Object.assign({},_),{id:i}),b)})}),t.start&&t.start()}function Vx(e){return e.constructor.name==="MessagePort"}function jd(e){Vx(e)&&e.close()}function v1(e,t){const s=new Map;return e.addEventListener("message",function(o){const{data:i}=o;if(!i||!i.id)return;const c=s.get(i.id);if(c)try{c(i)}finally{s.delete(i.id)}}),T1(e,s,[],t)}function Fn(e){if(e)throw new Error("Proxy has been released and is not useable")}function $d(e){return Na(e,new Map,{type:"RELEASE"}).then(()=>{jd(e)})}const Pn=new WeakMap,Kn="FinalizationRegistry"in globalThis&&new FinalizationRegistry(e=>{const t=(Pn.get(e)||0)-1;Pn.set(e,t),t===0&&$d(e)});function Qx(e,t){const s=(Pn.get(t)||0)+1;Pn.set(t,s),Kn&&Kn.register(e,t,e)}function Zx(e){Kn&&Kn.unregister(e)}function T1(e,t,s=[],a=function(){}){let o=!1;const i=new Proxy(a,{get(c,p){if(Fn(o),p===jx)return()=>{Zx(i),$d(e),t.clear(),o=!0};if(p==="then"){if(s.length===0)return{then:()=>i};const u=Na(e,t,{type:"GET",path:s.map(d=>d.toString())}).then(na);return u.then.bind(u)}return T1(e,t,[...s,p])},set(c,p,u){Fn(o);const[d,y]=Un(u);return Na(e,t,{type:"SET",path:[...s,p].map(_=>_.toString()),value:d},y).then(na)},apply(c,p,u){Fn(o);const d=s[s.length-1];if(d===Hx)return Na(e,t,{type:"ENDPOINT"}).then(na);if(d==="bind")return T1(e,t,s.slice(0,-1));const[y,_]=Gd(u);return Na(e,t,{type:"APPLY",path:s.map(b=>b.toString()),argumentList:y},_).then(na)},construct(c,p){Fn(o);const[u,d]=Gd(p);return Na(e,t,{type:"CONSTRUCT",path:s.map(y=>y.toString()),argumentList:u},d).then(na)}});return Qx(i,e),i}function Jx(e){return Array.prototype.concat.apply([],e)}function Gd(e){const t=e.map(Un);return[t.map(s=>s[0]),Jx(t.map(s=>s[1]))]}const Yd=new WeakMap;function eh(e,t){return Yd.set(e,t),e}function q1(e){return Object.assign(e,{[Pd]:!0})}function Un(e){for(const[t,s]of Ud)if(s.canHandle(e)){const[a,o]=s.serialize(e);return[{type:"HANDLER",name:t,value:a},o]}return[{type:"RAW",value:e},Yd.get(e)||[]]}function na(e){switch(e.type){case"HANDLER":return Ud.get(e.name).deserialize(e.value);case"RAW":return e.value}}function Na(e,t,s,a){return new Promise(o=>{const i=th();t.set(i,o),e.start&&e.start(),e.postMessage(Object.assign({id:i},s),a)})}function th(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}const Vd=new Worker(new URL(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/scriptsRunWorker-Bru3Cv1z.js").href:new URL("assets/scriptsRunWorker-Bru3Cv1z.js",typeof document>"u"?location.href:document.currentScript&&document.currentScript.tagName.toUpperCase()==="SCRIPT"&&document.currentScript.src||document.baseURI).href),typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:ha&&ha.tagName.toUpperCase()==="SCRIPT"&&ha.src||new URL("trading-vue-editor.umd.packages.mjs",document.baseURI).href),{type:"module",name:"Run MineScript Server"});Vd.onerror=e=>{console.error(e)};async function Qd(e){return await Cn.setInlayHints(e)}const Zd=v1(Vd),Jd=v1(new Worker(new URL(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/parserTccWorker-DPs0GpcG.js").href:new URL("assets/parserTccWorker-DPs0GpcG.js",typeof document>"u"?location.href:document.currentScript&&document.currentScript.tagName.toUpperCase()==="SCRIPT"&&document.currentScript.src||document.baseURI).href),typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:ha&&ha.tagName.toUpperCase()==="SCRIPT"&&ha.src||new URL("trading-vue-editor.umd.packages.mjs",document.baseURI).href),{type:"module",name:"Parser MineScript Server"}));async function eu(e,t=!1,s=Us){const a=e.match(/\s*\/\/\s*@version\s*=\s*([0-9])/)?.[1];a&&(s=parseInt(a),s=s<3?3:s>6?6:s);const o=await kr(s);if(!o)return;const{functions:i,types:c,constants:p,variables:u,methods:d}=o.KEY_MAP_LIST;return await Jd.parseTcc(e,t,q1(Qd),{functions:Object.fromEntries(i),methods:Object.fromEntries(d),types:Object.fromEntries(c),constants:Object.fromEntries(p),variables:Object.fromEntries(u)},s)}async function sh(e,t){const s=e.match(/\s*\/\/\s*@version\s*=\s*([0-9])/)?.[1];let a=6;s&&(a=parseInt(s),a=a<5?5:a>6?6:a);const o=await kr(a);if(!o)return;const{functions:i,types:c,constants:p,variables:u,methods:d}=o.KEY_MAP_LIST;return await Jd.parseLibraryCode(e,t,q1(Qd),{functions:Object.fromEntries(i),methods:Object.fromEntries(d),types:Object.fromEntries(c),constants:Object.fromEntries(p),variables:Object.fromEntries(u)},a)}async function rh(e,t,s=!0,a=Us){return await Zd.runScript(e,t,s,a)}async function ah(e){return await Zd.removeScript(e)}function nh(e){return new Worker(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/editor.worker-DeRwRhH0.js").href:new URL("assets/editor.worker-DeRwRhH0.js",typeof document>"u"?location.href:document.currentScript&&document.currentScript.tagName.toUpperCase()==="SCRIPT"&&document.currentScript.src||document.baseURI).href),{type:"module",name:e?.name})}const{slice:oh,forEach:ih}=[];function lh(e){return ih.call(oh.call(arguments,1),t=>{if(t)for(const s in t)e[s]===void 0&&(e[s]=t[s])}),e}function ch(e){return typeof e!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(s=>s.test(e))}const tu=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,ph=function(e,t){const a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},o=encodeURIComponent(t);let i=`${e}=${o}`;if(a.maxAge>0){const c=a.maxAge-0;if(Number.isNaN(c))throw new Error("maxAge should be a Number");i+=`; Max-Age=${Math.floor(c)}`}if(a.domain){if(!tu.test(a.domain))throw new TypeError("option domain is invalid");i+=`; Domain=${a.domain}`}if(a.path){if(!tu.test(a.path))throw new TypeError("option path is invalid");i+=`; Path=${a.path}`}if(a.expires){if(typeof a.expires.toUTCString!="function")throw new TypeError("option expires is invalid");i+=`; Expires=${a.expires.toUTCString()}`}if(a.httpOnly&&(i+="; HttpOnly"),a.secure&&(i+="; Secure"),a.sameSite)switch(typeof a.sameSite=="string"?a.sameSite.toLowerCase():a.sameSite){case!0:i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"strict":i+="; SameSite=Strict";break;case"none":i+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return a.partitioned&&(i+="; Partitioned"),i},su={create(e,t,s,a){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};s&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+s*60*1e3)),a&&(o.domain=a),document.cookie=ph(e,t,o)},read(e){const t=`${e}=`,s=document.cookie.split(";");for(let a=0;a<s.length;a++){let o=s[a];for(;o.charAt(0)===" ";)o=o.substring(1,o.length);if(o.indexOf(t)===0)return o.substring(t.length,o.length)}return null},remove(e,t){this.create(e,"",-1,t)}};var dh={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&typeof document<"u")return su.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:s,cookieMinutes:a,cookieDomain:o,cookieOptions:i}=t;s&&typeof document<"u"&&su.create(s,e,a,o,i)}},uh={name:"querystring",lookup(e){let{lookupQuerystring:t}=e,s;if(typeof window<"u"){let{search:a}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(a=window.location.hash.substring(window.location.hash.indexOf("?")));const i=a.substring(1).split("&");for(let c=0;c<i.length;c++){const p=i[c].indexOf("=");p>0&&i[c].substring(0,p)===t&&(s=i[c].substring(p+1))}}return s}},mh={name:"hash",lookup(e){let{lookupHash:t,lookupFromHashIndex:s}=e,a;if(typeof window<"u"){const{hash:o}=window.location;if(o&&o.length>2){const i=o.substring(1);if(t){const c=i.split("&");for(let p=0;p<c.length;p++){const u=c[p].indexOf("=");u>0&&c[p].substring(0,u)===t&&(a=c[p].substring(u+1))}}if(a)return a;if(!a&&s>-1){const c=o.match(/\/([a-zA-Z-]*)/g);return Array.isArray(c)?c[typeof s=="number"?s:0]?.replace("/",""):void 0}}}return a}};let Ba=null;const ru=()=>{if(Ba!==null)return Ba;try{if(Ba=typeof window<"u"&&window.localStorage!==null,!Ba)return!1;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{Ba=!1}return Ba};var yh={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&ru())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:s}=t;s&&ru()&&window.localStorage.setItem(s,e)}};let Ca=null;const au=()=>{if(Ca!==null)return Ca;try{if(Ca=typeof window<"u"&&window.sessionStorage!==null,!Ca)return!1;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{Ca=!1}return Ca};var bh={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&au())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:s}=t;s&&au()&&window.sessionStorage.setItem(s,e)}},_h={name:"navigator",lookup(e){const t=[];if(typeof navigator<"u"){const{languages:s,userLanguage:a,language:o}=navigator;if(s)for(let i=0;i<s.length;i++)t.push(s[i]);a&&t.push(a),o&&t.push(o)}return t.length>0?t:void 0}},fh={name:"htmlTag",lookup(e){let{htmlTag:t}=e,s;const a=t||(typeof document<"u"?document.documentElement:null);return a&&typeof a.getAttribute=="function"&&(s=a.getAttribute("lang")),s}},gh={name:"path",lookup(e){let{lookupFromPathIndex:t}=e;if(typeof window>"u")return;const s=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(s)?s[typeof t=="number"?t:0]?.replace("/",""):void 0}},Mh={name:"subdomain",lookup(e){let{lookupFromSubdomainIndex:t}=e;const s=typeof t=="number"?t+1:1,a=typeof window<"u"&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(a)return a[s]}};let nu=!1;try{document.cookie,nu=!0}catch{}const ou=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];nu||ou.splice(1,1);const zh=()=>({order:ou,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e});class iu{constructor(t){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,s)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t,this.options=lh(s,this.options||{},zh()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=o=>o.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=a,this.addDetector(dh),this.addDetector(uh),this.addDetector(yh),this.addDetector(bh),this.addDetector(_h),this.addDetector(fh),this.addDetector(gh),this.addDetector(Mh),this.addDetector(mh)}addDetector(t){return this.detectors[t.name]=t,this}detect(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,s=[];return t.forEach(a=>{if(this.detectors[a]){let o=this.detectors[a].lookup(this.options);o&&typeof o=="string"&&(o=[o]),o&&(s=s.concat(o))}}),s=s.filter(a=>a!=null&&!ch(a)).map(a=>this.options.convertDetectedLanguage(a)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?s:s.length>0?s[0]:null}cacheUserLanguage(t){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;s&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||s.forEach(a=>{this.detectors[a]&&this.detectors[a].cacheUserLanguage(t,this.options)}))}}iu.type="languageDetector";const xh=(e,t,s,a)=>{const o=[s,{code:t,...a||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(o,"warn","react-i18next::",!0);oa(o[0])&&(o[0]=`react-i18next:: ${o[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...o):console?.warn&&console.warn(...o)},lu={},W1=(e,t,s,a)=>{oa(s)&&lu[s]||(oa(s)&&(lu[s]=new Date),xh(e,t,s,a))},cu=(e,t)=>()=>{if(e.isInitialized)t();else{const s=()=>{setTimeout(()=>{e.off("initialized",s)},0),t()};e.on("initialized",s)}},k1=(e,t,s)=>{e.loadNamespaces(t,cu(e,s))},pu=(e,t,s,a)=>{if(oa(s)&&(s=[s]),e.options.preload&&e.options.preload.indexOf(t)>-1)return k1(e,s,a);s.forEach(o=>{e.options.ns.indexOf(o)<0&&e.options.ns.push(o)}),e.loadLanguages(t,cu(e,a))},hh=(e,t,s={})=>!t.languages||!t.languages.length?(W1(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:s.lng,precheck:(a,o)=>{if(s.bindI18n&&s.bindI18n.indexOf("languageChanging")>-1&&a.services.backendConnector.backend&&a.isLanguageChangingTo&&!o(a.isLanguageChangingTo,e))return!1}}),oa=e=>typeof e=="string",Oh=e=>typeof e=="object"&&e!==null,wh=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Ah={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},vh=e=>Ah[e];let D1={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(wh,vh)};const Th=(e={})=>{D1={...D1,...e}},qh=()=>D1;let du;const Wh=e=>{du=e},kh=()=>du,Dh={type:"3rdParty",init(e){Th(e.options.react),Wh(e)}},Ih=U.createContext();class Rh{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(s=>{this.usedNamespaces[s]||(this.usedNamespaces[s]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const Lh=(e,t)=>{const s=U.useRef();return U.useEffect(()=>{s.current=e},[e,t]),s.current},uu=(e,t,s,a)=>e.getFixedT(t,s,a),Nh=(e,t,s,a)=>U.useCallback(uu(e,t,s,a),[e,t,s,a]),Ea=(e,t={})=>{const{i18n:s}=t,{i18n:a,defaultNS:o}=U.useContext(Ih)||{},i=s||a||kh();if(i&&!i.reportNamespaces&&(i.reportNamespaces=new Rh),!i){W1(i,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const O=(q,T)=>oa(T)?T:Oh(T)&&oa(T.defaultValue)?T.defaultValue:Array.isArray(q)?q[q.length-1]:q,k=[O,{},!1];return k.t=O,k.i18n={},k.ready=!1,k}i.options.react?.wait&&W1(i,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const c={...qh(),...i.options.react,...t},{useSuspense:p,keyPrefix:u}=c;let d=o||i.options?.defaultNS;d=oa(d)?[d]:d||["translation"],i.reportNamespaces.addUsedNamespaces?.(d);const y=(i.isInitialized||i.initializedStoreOnce)&&d.every(O=>hh(O,i,c)),_=Nh(i,t.lng||null,c.nsMode==="fallback"?d:d[0],u),b=()=>_,M=()=>uu(i,t.lng||null,c.nsMode==="fallback"?d:d[0],u),[x,v]=U.useState(b);let w=d.join();t.lng&&(w=`${t.lng}${w}`);const D=Lh(w),g=U.useRef(!0);U.useEffect(()=>{const{bindI18n:O,bindI18nStore:k}=c;g.current=!0,!y&&!p&&(t.lng?pu(i,t.lng,d,()=>{g.current&&v(M)}):k1(i,d,()=>{g.current&&v(M)})),y&&D&&D!==w&&g.current&&v(M);const q=()=>{g.current&&v(M)};return O&&i?.on(O,q),k&&i?.store.on(k,q),()=>{g.current=!1,i&&O&&O?.split(" ").forEach(T=>i.off(T,q)),k&&i&&k.split(" ").forEach(T=>i.store.off(T,q))}},[i,w]),U.useEffect(()=>{g.current&&y&&v(b)},[i,u,y]);const A=[x,i,y];if(A.t=x,A.i18n=i,A.ready=y,y||!y&&!p)return A;throw new Promise(O=>{t.lng?pu(i,t.lng,d,()=>O()):k1(i,d,()=>O())})},Bh={type:"type",syntax:"syntax",overloads:"overloads",arguments:"arguments",fields:"fields",example:"example",returns:"returns",remarks:"remarks","see also":"see also","Copy code":"Copy code","Copy link":"Copy link",Copied:"Copied","Link copied":"Link copied",variables:"Variables",constants:"Constants",functions:"Functions",keywords:"Keywords",types:"Types",operators:"Operators",annotations:"Annotations",search:"Search","Mine Script® v1 Reference Manual":"Mine Script® v{{version}} Reference Manual","This script is read-only. It cannot be edited.":"This script is read-only. It cannot be edited.","save script":"Save script","open script":"Open script","find/replace":"Find/Replace","toggle console":"Toggle console","open editor in new tab":"Open editor in new tab","open editor in new window":"Open editor in new window",keyword:"keyword","built-in function":"built-in function","built-in variable":"built-in variable","built-in method":"built-in method","built-in type":"built-in type",annotation:"annotation","built-in constant":"built-in constant",namespace:"namespace","user-defined variable":"user-defined variable","user-defined type":"user-defined type",field:"field",enum:"enum","user-defined method":"user-defined method","user-defined function":"user-defined function",parameter:"parameter","**Namespaces** are immutable terms that act as prefixes for groups of identifiers. A dot and another term always follow a namespace when naming Tcc functions, variables, and methods.":"**Namespaces** are immutable terms that act as prefixes for groups of identifiers. A dot and another term always follow a namespace when naming Mine functions, variables, and methods.","to trigger parameters hint":"to trigger parameters hint",library:"library","enum member":"enum member",Returns:"Returns",Syntax:"Syntax",Remarks:"Remarks",Fields:"Fields",Description:"Description",Example:"Example","Enum members":"Enum members",statement:"statement",loop:"loop","`click` on keyword for more help":"`click` on keyword for more help","new indicator":"New Indicator","new strategy":"New Strategy"},Ch={type:"类型",syntax:"语法",overloads:"重载",arguments:"参数",fields:"字段",example:"例子",returns:"返回值",remarks:"备注","see also":"另见","Copy code":"复制代码","Copy link":"复制链接",Copied:"已复制","Link copied":"链接已复制",variables:"内置变量",constants:"常量",functions:"函数",keywords:"关键词",types:"类型",operators:"运算符",annotations:"注释",search:"搜索","Mine Script® v1 Reference Manual":"Mine Script™ v{{version}} 参考手册","This script is read-only. It cannot be edited.":"该脚本是只读的。它无法被编辑。","save script":"保存脚本","open script":"打开脚本","find/replace":"寻找/替换","toggle console":"切换控制台","open editor in new tab":"在新标签页中打开","open editor in new window":"在新窗口中打开",keyword:"关键词","built-in function":"内置函数","built-in variable":"内置变量","built-in method":"内置方法","built-in type":"内置类型",annotation:"注释","built-in constant":"内置常量",namespace:"命名空间","user-defined variable":"用户自定义变量","user-defined type":"用户自定义类型",field:"字段",enum:"枚举","user-defined method":"用户自定义方法","user-defined function":"用户自定义函数",parameter:"参数","**Namespaces** are immutable terms that act as prefixes for groups of identifiers. A dot and another term always follow a namespace when naming Tcc functions, variables, and methods.":"命名空间是不可变的术语,充当标识符组的前缀。在命名Mine函数、变量和方法时,点和另一个术语始终遵循命名空间。","to trigger parameters hint":"触发参数提示",library:"脚本库","enum member":"枚举成员",Returns:"返回值",Syntax:"语法",Remarks:"备注",Fields:"字段",Description:"描述",Example:"例子","Enum members":"枚举成员",statement:"声明",loop:"循环","`click` on keyword for more help":"“点击”关键词以获得更多帮助","new indicator":"新建指标","new strategy":"新建策略"};lt.use(iu).use(Dh).init({debug:!1,fallbackLng:"zh",interpolation:{escapeValue:!1},resources:{en:{translation:Bh},zh:{translation:Ch}}}),self.MonacoEnvironment={getWorker(){return new nh({name:"Editor Worker"})}},Eo.config({paths:{vs:"https://www.tradingvue.com/vs"},"vs/nls":{availableLanguages:{"*":"zh-cn"}}});const Eh=(e,t)=>{const{height:s,width:a,theme:o,options:i,hasDiff:c,readOnly:p,defaultValue:u,language:d,onChange:y,onLinkOpen:_,onCursorPositionChange:b,onActionTrigger:M,onEditorDidMount:x,onVersionChange:v}=e,{t:w,i18n:D}=Ea(),g=U.useRef(null),A=U.useRef(null),O=U.useRef(!1),k=U.useRef(!1);U.useImperativeHandle(t,()=>({setOriginalScript(C){g.current?.setOriginalScript(C)},setScript(C){g.current?.setValue(C)},gotoLine(){g.current?.gotoLine()},getEditorLayout(){return g.current?.getEditorLayout()},setPosition(C,j){g.current?.setPosition({column:C,lineNumber:j})},setModelMarkers(C){k.current=!0,g.current?.setModelMarkers(C),setTimeout(()=>{k.current=!1},2e3)},focus(){g.current?.focus()}})),U.useEffect(()=>{c?g.current?.addDiffDecorations():g.current?.removeDiffDecorations()},[c]),U.useEffect(()=>{o&&pt.editor.setTheme(o)},[o]),U.useEffect(()=>{d&&D.changeLanguage(d)},[d]),U.useEffect(()=>{g.current?.updateActionTrigger(M)},[M]),U.useEffect(()=>{_&&g.current?.addLinkOpenFunc(_)},[_]);function q(C,j){Cn.setEditor(C,j),g.current=new Ux(C,j,M),_&&g.current?.addLinkOpenFunc(_),c&&g.current?.addDiffDecorations(),Sz(C),requestAnimationFrame(I);const X=C.getValue();g.current.onChangeCursorPosition(b),y&&y(X),!p&&T(X),x&&x()}const T=U.useCallback(async C=>{const j=g.current?.getVersion();v&&v(j||Us),O.current=!1;const{errors:X,functions:ae,methods:ee,types:pe,variables:be,overloadsFuncs:Z,imports:ye,enums:ge}=await eu(C,!1,j),P=new Map(Object.entries(ae)),se=new Map(Object.entries(ee)),oe=new Map(Object.entries(pe)),re=new Map(Object.entries(be)),Re=new Map(Object.entries(ye)),ve=new Map(Object.entries(ge));Dr.setUserDefined({functions:P,methods:se,types:oe,variables:re,imports:Re,enums:ve},Z),Rs.setUserDefind(P,oe,re,se,ve);const Te=X.map(he=>({...he,severity:he.type||pt.MarkerSeverity.Error}));p||!O.current&&!k.current&&Te.length&&g.current?.setModelMarkers(Te)},[p]),E=U.useMemo(()=>Kz.debounce(T,1500),[T]);function K(C){if(p){T(C||"");return}O.current=!0,Cn.clearInlayHints(),g.current?.setModelMarkers([]),C!==void 0&&(y&&y(C),E(C))}const I=U.useCallback(()=>{const C=A.current?.getBoundingClientRect();g.current?.setEditorLayout(C?.height||0,C?.width)},[]);return U.useEffect(()=>{const C=()=>{window.requestAnimationFrame(I)},j=new ResizeObserver(C);return A.current&&j.observe(A.current),()=>{A.current&&j.unobserve(A.current),j.disconnect(),g.current?.dispose()}},[]),N.jsx("div",{ref:A,children:N.jsx(g_,{height:s,width:a||"100%",defaultLanguage:ht,defaultValue:u||`//@version=6
107
+ */const Pd=Symbol("Comlink.proxy"),Hx=Symbol("Comlink.endpoint"),jx=Symbol("Comlink.releaseProxy"),A1=Symbol("Comlink.finalizer"),Xn=Symbol("Comlink.thrown"),Kd=e=>typeof e=="object"&&e!==null||typeof e=="function",$x={canHandle:e=>Kd(e)&&e[Pd],serialize(e){const{port1:t,port2:s}=new MessageChannel;return Hd(e,t),[s,[s]]},deserialize(e){return e.start(),v1(e)}},Gx={canHandle:e=>Kd(e)&&Xn in e,serialize({value:e}){let t;return e instanceof Error?t={isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:t={isError:!1,value:e},[t,[]]},deserialize(e){throw e.isError?Object.assign(new Error(e.value.message),e.value):e.value}},Ud=new Map([["proxy",$x],["throw",Gx]]);function Yx(e,t){for(const s of e)if(t===s||s==="*"||s instanceof RegExp&&s.test(t))return!0;return!1}function Hd(e,t=globalThis,s=["*"]){t.addEventListener("message",function a(o){if(!o||!o.data)return;if(!Yx(s,o.origin)){console.warn(`Invalid origin '${o.origin}' for comlink proxy`);return}const{id:i,type:c,path:p}=Object.assign({path:[]},o.data),u=(o.data.argumentList||[]).map(na);let d;try{const y=p.slice(0,-1).reduce((b,M)=>b[M],e),_=p.reduce((b,M)=>b[M],e);switch(c){case"GET":d=_;break;case"SET":y[p.slice(-1)[0]]=na(o.data.value),d=!0;break;case"APPLY":d=_.apply(y,u);break;case"CONSTRUCT":{const b=new _(...u);d=q1(b)}break;case"ENDPOINT":{const{port1:b,port2:M}=new MessageChannel;Hd(e,M),d=eh(b,[b])}break;case"RELEASE":d=void 0;break;default:return}}catch(y){d={value:y,[Xn]:0}}Promise.resolve(d).catch(y=>({value:y,[Xn]:0})).then(y=>{const[_,b]=Un(y);t.postMessage(Object.assign(Object.assign({},_),{id:i}),b),c==="RELEASE"&&(t.removeEventListener("message",a),jd(t),A1 in e&&typeof e[A1]=="function"&&e[A1]())}).catch(y=>{const[_,b]=Un({value:new TypeError("Unserializable return value"),[Xn]:0});t.postMessage(Object.assign(Object.assign({},_),{id:i}),b)})}),t.start&&t.start()}function Vx(e){return e.constructor.name==="MessagePort"}function jd(e){Vx(e)&&e.close()}function v1(e,t){const s=new Map;return e.addEventListener("message",function(o){const{data:i}=o;if(!i||!i.id)return;const c=s.get(i.id);if(c)try{c(i)}finally{s.delete(i.id)}}),T1(e,s,[],t)}function Fn(e){if(e)throw new Error("Proxy has been released and is not useable")}function $d(e){return Na(e,new Map,{type:"RELEASE"}).then(()=>{jd(e)})}const Pn=new WeakMap,Kn="FinalizationRegistry"in globalThis&&new FinalizationRegistry(e=>{const t=(Pn.get(e)||0)-1;Pn.set(e,t),t===0&&$d(e)});function Qx(e,t){const s=(Pn.get(t)||0)+1;Pn.set(t,s),Kn&&Kn.register(e,t,e)}function Zx(e){Kn&&Kn.unregister(e)}function T1(e,t,s=[],a=function(){}){let o=!1;const i=new Proxy(a,{get(c,p){if(Fn(o),p===jx)return()=>{Zx(i),$d(e),t.clear(),o=!0};if(p==="then"){if(s.length===0)return{then:()=>i};const u=Na(e,t,{type:"GET",path:s.map(d=>d.toString())}).then(na);return u.then.bind(u)}return T1(e,t,[...s,p])},set(c,p,u){Fn(o);const[d,y]=Un(u);return Na(e,t,{type:"SET",path:[...s,p].map(_=>_.toString()),value:d},y).then(na)},apply(c,p,u){Fn(o);const d=s[s.length-1];if(d===Hx)return Na(e,t,{type:"ENDPOINT"}).then(na);if(d==="bind")return T1(e,t,s.slice(0,-1));const[y,_]=Gd(u);return Na(e,t,{type:"APPLY",path:s.map(b=>b.toString()),argumentList:y},_).then(na)},construct(c,p){Fn(o);const[u,d]=Gd(p);return Na(e,t,{type:"CONSTRUCT",path:s.map(y=>y.toString()),argumentList:u},d).then(na)}});return Qx(i,e),i}function Jx(e){return Array.prototype.concat.apply([],e)}function Gd(e){const t=e.map(Un);return[t.map(s=>s[0]),Jx(t.map(s=>s[1]))]}const Yd=new WeakMap;function eh(e,t){return Yd.set(e,t),e}function q1(e){return Object.assign(e,{[Pd]:!0})}function Un(e){for(const[t,s]of Ud)if(s.canHandle(e)){const[a,o]=s.serialize(e);return[{type:"HANDLER",name:t,value:a},o]}return[{type:"RAW",value:e},Yd.get(e)||[]]}function na(e){switch(e.type){case"HANDLER":return Ud.get(e.name).deserialize(e.value);case"RAW":return e.value}}function Na(e,t,s,a){return new Promise(o=>{const i=th();t.set(i,o),e.start&&e.start(),e.postMessage(Object.assign({id:i},s),a)})}function th(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}const Vd=new Worker(new URL(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/scriptsRunWorker-92km7-7R.js").href:new URL("assets/scriptsRunWorker-92km7-7R.js",typeof document>"u"?location.href:document.currentScript&&document.currentScript.tagName.toUpperCase()==="SCRIPT"&&document.currentScript.src||document.baseURI).href),typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:ha&&ha.tagName.toUpperCase()==="SCRIPT"&&ha.src||new URL("trading-vue-editor.umd.packages.mjs",document.baseURI).href),{type:"module",name:"Run MineScript Server"});Vd.onerror=e=>{console.error(e)};async function Qd(e){return await Cn.setInlayHints(e)}const Zd=v1(Vd),Jd=v1(new Worker(new URL(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/parserTccWorker-DPs0GpcG.js").href:new URL("assets/parserTccWorker-DPs0GpcG.js",typeof document>"u"?location.href:document.currentScript&&document.currentScript.tagName.toUpperCase()==="SCRIPT"&&document.currentScript.src||document.baseURI).href),typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:ha&&ha.tagName.toUpperCase()==="SCRIPT"&&ha.src||new URL("trading-vue-editor.umd.packages.mjs",document.baseURI).href),{type:"module",name:"Parser MineScript Server"}));async function eu(e,t=!1,s=Us){const a=e.match(/\s*\/\/\s*@version\s*=\s*([0-9])/)?.[1];a&&(s=parseInt(a),s=s<3?3:s>6?6:s);const o=await kr(s);if(!o)return;const{functions:i,types:c,constants:p,variables:u,methods:d}=o.KEY_MAP_LIST;return await Jd.parseTcc(e,t,q1(Qd),{functions:Object.fromEntries(i),methods:Object.fromEntries(d),types:Object.fromEntries(c),constants:Object.fromEntries(p),variables:Object.fromEntries(u)},s)}async function sh(e,t){const s=e.match(/\s*\/\/\s*@version\s*=\s*([0-9])/)?.[1];let a=6;s&&(a=parseInt(s),a=a<5?5:a>6?6:a);const o=await kr(a);if(!o)return;const{functions:i,types:c,constants:p,variables:u,methods:d}=o.KEY_MAP_LIST;return await Jd.parseLibraryCode(e,t,q1(Qd),{functions:Object.fromEntries(i),methods:Object.fromEntries(d),types:Object.fromEntries(c),constants:Object.fromEntries(p),variables:Object.fromEntries(u)},a)}async function rh(e,t,s=!0,a=Us){return await Zd.runScript(e,t,s,a)}async function ah(e){return await Zd.removeScript(e)}function nh(e){return new Worker(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/editor.worker-DeRwRhH0.js").href:new URL("assets/editor.worker-DeRwRhH0.js",typeof document>"u"?location.href:document.currentScript&&document.currentScript.tagName.toUpperCase()==="SCRIPT"&&document.currentScript.src||document.baseURI).href),{type:"module",name:e?.name})}const{slice:oh,forEach:ih}=[];function lh(e){return ih.call(oh.call(arguments,1),t=>{if(t)for(const s in t)e[s]===void 0&&(e[s]=t[s])}),e}function ch(e){return typeof e!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(s=>s.test(e))}const tu=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,ph=function(e,t){const a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},o=encodeURIComponent(t);let i=`${e}=${o}`;if(a.maxAge>0){const c=a.maxAge-0;if(Number.isNaN(c))throw new Error("maxAge should be a Number");i+=`; Max-Age=${Math.floor(c)}`}if(a.domain){if(!tu.test(a.domain))throw new TypeError("option domain is invalid");i+=`; Domain=${a.domain}`}if(a.path){if(!tu.test(a.path))throw new TypeError("option path is invalid");i+=`; Path=${a.path}`}if(a.expires){if(typeof a.expires.toUTCString!="function")throw new TypeError("option expires is invalid");i+=`; Expires=${a.expires.toUTCString()}`}if(a.httpOnly&&(i+="; HttpOnly"),a.secure&&(i+="; Secure"),a.sameSite)switch(typeof a.sameSite=="string"?a.sameSite.toLowerCase():a.sameSite){case!0:i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"strict":i+="; SameSite=Strict";break;case"none":i+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return a.partitioned&&(i+="; Partitioned"),i},su={create(e,t,s,a){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};s&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+s*60*1e3)),a&&(o.domain=a),document.cookie=ph(e,t,o)},read(e){const t=`${e}=`,s=document.cookie.split(";");for(let a=0;a<s.length;a++){let o=s[a];for(;o.charAt(0)===" ";)o=o.substring(1,o.length);if(o.indexOf(t)===0)return o.substring(t.length,o.length)}return null},remove(e,t){this.create(e,"",-1,t)}};var dh={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&typeof document<"u")return su.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:s,cookieMinutes:a,cookieDomain:o,cookieOptions:i}=t;s&&typeof document<"u"&&su.create(s,e,a,o,i)}},uh={name:"querystring",lookup(e){let{lookupQuerystring:t}=e,s;if(typeof window<"u"){let{search:a}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(a=window.location.hash.substring(window.location.hash.indexOf("?")));const i=a.substring(1).split("&");for(let c=0;c<i.length;c++){const p=i[c].indexOf("=");p>0&&i[c].substring(0,p)===t&&(s=i[c].substring(p+1))}}return s}},mh={name:"hash",lookup(e){let{lookupHash:t,lookupFromHashIndex:s}=e,a;if(typeof window<"u"){const{hash:o}=window.location;if(o&&o.length>2){const i=o.substring(1);if(t){const c=i.split("&");for(let p=0;p<c.length;p++){const u=c[p].indexOf("=");u>0&&c[p].substring(0,u)===t&&(a=c[p].substring(u+1))}}if(a)return a;if(!a&&s>-1){const c=o.match(/\/([a-zA-Z-]*)/g);return Array.isArray(c)?c[typeof s=="number"?s:0]?.replace("/",""):void 0}}}return a}};let Ba=null;const ru=()=>{if(Ba!==null)return Ba;try{if(Ba=typeof window<"u"&&window.localStorage!==null,!Ba)return!1;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{Ba=!1}return Ba};var yh={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&ru())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:s}=t;s&&ru()&&window.localStorage.setItem(s,e)}};let Ca=null;const au=()=>{if(Ca!==null)return Ca;try{if(Ca=typeof window<"u"&&window.sessionStorage!==null,!Ca)return!1;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{Ca=!1}return Ca};var bh={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&au())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:s}=t;s&&au()&&window.sessionStorage.setItem(s,e)}},_h={name:"navigator",lookup(e){const t=[];if(typeof navigator<"u"){const{languages:s,userLanguage:a,language:o}=navigator;if(s)for(let i=0;i<s.length;i++)t.push(s[i]);a&&t.push(a),o&&t.push(o)}return t.length>0?t:void 0}},fh={name:"htmlTag",lookup(e){let{htmlTag:t}=e,s;const a=t||(typeof document<"u"?document.documentElement:null);return a&&typeof a.getAttribute=="function"&&(s=a.getAttribute("lang")),s}},gh={name:"path",lookup(e){let{lookupFromPathIndex:t}=e;if(typeof window>"u")return;const s=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(s)?s[typeof t=="number"?t:0]?.replace("/",""):void 0}},Mh={name:"subdomain",lookup(e){let{lookupFromSubdomainIndex:t}=e;const s=typeof t=="number"?t+1:1,a=typeof window<"u"&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(a)return a[s]}};let nu=!1;try{document.cookie,nu=!0}catch{}const ou=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];nu||ou.splice(1,1);const zh=()=>({order:ou,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e});class iu{constructor(t){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,s)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t,this.options=lh(s,this.options||{},zh()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=o=>o.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=a,this.addDetector(dh),this.addDetector(uh),this.addDetector(yh),this.addDetector(bh),this.addDetector(_h),this.addDetector(fh),this.addDetector(gh),this.addDetector(Mh),this.addDetector(mh)}addDetector(t){return this.detectors[t.name]=t,this}detect(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,s=[];return t.forEach(a=>{if(this.detectors[a]){let o=this.detectors[a].lookup(this.options);o&&typeof o=="string"&&(o=[o]),o&&(s=s.concat(o))}}),s=s.filter(a=>a!=null&&!ch(a)).map(a=>this.options.convertDetectedLanguage(a)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?s:s.length>0?s[0]:null}cacheUserLanguage(t){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;s&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||s.forEach(a=>{this.detectors[a]&&this.detectors[a].cacheUserLanguage(t,this.options)}))}}iu.type="languageDetector";const xh=(e,t,s,a)=>{const o=[s,{code:t,...a||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(o,"warn","react-i18next::",!0);oa(o[0])&&(o[0]=`react-i18next:: ${o[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...o):console?.warn&&console.warn(...o)},lu={},W1=(e,t,s,a)=>{oa(s)&&lu[s]||(oa(s)&&(lu[s]=new Date),xh(e,t,s,a))},cu=(e,t)=>()=>{if(e.isInitialized)t();else{const s=()=>{setTimeout(()=>{e.off("initialized",s)},0),t()};e.on("initialized",s)}},k1=(e,t,s)=>{e.loadNamespaces(t,cu(e,s))},pu=(e,t,s,a)=>{if(oa(s)&&(s=[s]),e.options.preload&&e.options.preload.indexOf(t)>-1)return k1(e,s,a);s.forEach(o=>{e.options.ns.indexOf(o)<0&&e.options.ns.push(o)}),e.loadLanguages(t,cu(e,a))},hh=(e,t,s={})=>!t.languages||!t.languages.length?(W1(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:s.lng,precheck:(a,o)=>{if(s.bindI18n&&s.bindI18n.indexOf("languageChanging")>-1&&a.services.backendConnector.backend&&a.isLanguageChangingTo&&!o(a.isLanguageChangingTo,e))return!1}}),oa=e=>typeof e=="string",Oh=e=>typeof e=="object"&&e!==null,wh=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Ah={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},vh=e=>Ah[e];let D1={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(wh,vh)};const Th=(e={})=>{D1={...D1,...e}},qh=()=>D1;let du;const Wh=e=>{du=e},kh=()=>du,Dh={type:"3rdParty",init(e){Th(e.options.react),Wh(e)}},Ih=U.createContext();class Rh{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(s=>{this.usedNamespaces[s]||(this.usedNamespaces[s]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const Lh=(e,t)=>{const s=U.useRef();return U.useEffect(()=>{s.current=e},[e,t]),s.current},uu=(e,t,s,a)=>e.getFixedT(t,s,a),Nh=(e,t,s,a)=>U.useCallback(uu(e,t,s,a),[e,t,s,a]),Ea=(e,t={})=>{const{i18n:s}=t,{i18n:a,defaultNS:o}=U.useContext(Ih)||{},i=s||a||kh();if(i&&!i.reportNamespaces&&(i.reportNamespaces=new Rh),!i){W1(i,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const O=(q,T)=>oa(T)?T:Oh(T)&&oa(T.defaultValue)?T.defaultValue:Array.isArray(q)?q[q.length-1]:q,k=[O,{},!1];return k.t=O,k.i18n={},k.ready=!1,k}i.options.react?.wait&&W1(i,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const c={...qh(),...i.options.react,...t},{useSuspense:p,keyPrefix:u}=c;let d=o||i.options?.defaultNS;d=oa(d)?[d]:d||["translation"],i.reportNamespaces.addUsedNamespaces?.(d);const y=(i.isInitialized||i.initializedStoreOnce)&&d.every(O=>hh(O,i,c)),_=Nh(i,t.lng||null,c.nsMode==="fallback"?d:d[0],u),b=()=>_,M=()=>uu(i,t.lng||null,c.nsMode==="fallback"?d:d[0],u),[x,v]=U.useState(b);let w=d.join();t.lng&&(w=`${t.lng}${w}`);const D=Lh(w),g=U.useRef(!0);U.useEffect(()=>{const{bindI18n:O,bindI18nStore:k}=c;g.current=!0,!y&&!p&&(t.lng?pu(i,t.lng,d,()=>{g.current&&v(M)}):k1(i,d,()=>{g.current&&v(M)})),y&&D&&D!==w&&g.current&&v(M);const q=()=>{g.current&&v(M)};return O&&i?.on(O,q),k&&i?.store.on(k,q),()=>{g.current=!1,i&&O&&O?.split(" ").forEach(T=>i.off(T,q)),k&&i&&k.split(" ").forEach(T=>i.store.off(T,q))}},[i,w]),U.useEffect(()=>{g.current&&y&&v(b)},[i,u,y]);const A=[x,i,y];if(A.t=x,A.i18n=i,A.ready=y,y||!y&&!p)return A;throw new Promise(O=>{t.lng?pu(i,t.lng,d,()=>O()):k1(i,d,()=>O())})},Bh={type:"type",syntax:"syntax",overloads:"overloads",arguments:"arguments",fields:"fields",example:"example",returns:"returns",remarks:"remarks","see also":"see also","Copy code":"Copy code","Copy link":"Copy link",Copied:"Copied","Link copied":"Link copied",variables:"Variables",constants:"Constants",functions:"Functions",keywords:"Keywords",types:"Types",operators:"Operators",annotations:"Annotations",search:"Search","Mine Script® v1 Reference Manual":"Mine Script® v{{version}} Reference Manual","This script is read-only. It cannot be edited.":"This script is read-only. It cannot be edited.","save script":"Save script","open script":"Open script","find/replace":"Find/Replace","toggle console":"Toggle console","open editor in new tab":"Open editor in new tab","open editor in new window":"Open editor in new window",keyword:"keyword","built-in function":"built-in function","built-in variable":"built-in variable","built-in method":"built-in method","built-in type":"built-in type",annotation:"annotation","built-in constant":"built-in constant",namespace:"namespace","user-defined variable":"user-defined variable","user-defined type":"user-defined type",field:"field",enum:"enum","user-defined method":"user-defined method","user-defined function":"user-defined function",parameter:"parameter","**Namespaces** are immutable terms that act as prefixes for groups of identifiers. A dot and another term always follow a namespace when naming Tcc functions, variables, and methods.":"**Namespaces** are immutable terms that act as prefixes for groups of identifiers. A dot and another term always follow a namespace when naming Mine functions, variables, and methods.","to trigger parameters hint":"to trigger parameters hint",library:"library","enum member":"enum member",Returns:"Returns",Syntax:"Syntax",Remarks:"Remarks",Fields:"Fields",Description:"Description",Example:"Example","Enum members":"Enum members",statement:"statement",loop:"loop","`click` on keyword for more help":"`click` on keyword for more help","new indicator":"New Indicator","new strategy":"New Strategy"},Ch={type:"类型",syntax:"语法",overloads:"重载",arguments:"参数",fields:"字段",example:"例子",returns:"返回值",remarks:"备注","see also":"另见","Copy code":"复制代码","Copy link":"复制链接",Copied:"已复制","Link copied":"链接已复制",variables:"内置变量",constants:"常量",functions:"函数",keywords:"关键词",types:"类型",operators:"运算符",annotations:"注释",search:"搜索","Mine Script® v1 Reference Manual":"Mine Script™ v{{version}} 参考手册","This script is read-only. It cannot be edited.":"该脚本是只读的。它无法被编辑。","save script":"保存脚本","open script":"打开脚本","find/replace":"寻找/替换","toggle console":"切换控制台","open editor in new tab":"在新标签页中打开","open editor in new window":"在新窗口中打开",keyword:"关键词","built-in function":"内置函数","built-in variable":"内置变量","built-in method":"内置方法","built-in type":"内置类型",annotation:"注释","built-in constant":"内置常量",namespace:"命名空间","user-defined variable":"用户自定义变量","user-defined type":"用户自定义类型",field:"字段",enum:"枚举","user-defined method":"用户自定义方法","user-defined function":"用户自定义函数",parameter:"参数","**Namespaces** are immutable terms that act as prefixes for groups of identifiers. A dot and another term always follow a namespace when naming Tcc functions, variables, and methods.":"命名空间是不可变的术语,充当标识符组的前缀。在命名Mine函数、变量和方法时,点和另一个术语始终遵循命名空间。","to trigger parameters hint":"触发参数提示",library:"脚本库","enum member":"枚举成员",Returns:"返回值",Syntax:"语法",Remarks:"备注",Fields:"字段",Description:"描述",Example:"例子","Enum members":"枚举成员",statement:"声明",loop:"循环","`click` on keyword for more help":"“点击”关键词以获得更多帮助","new indicator":"新建指标","new strategy":"新建策略"};lt.use(iu).use(Dh).init({debug:!1,fallbackLng:"zh",interpolation:{escapeValue:!1},resources:{en:{translation:Bh},zh:{translation:Ch}}}),self.MonacoEnvironment={getWorker(){return new nh({name:"Editor Worker"})}},Eo.config({paths:{vs:"https://www.tradingvue.com/vs"},"vs/nls":{availableLanguages:{"*":"zh-cn"}}});const Eh=(e,t)=>{const{height:s,width:a,theme:o,options:i,hasDiff:c,readOnly:p,defaultValue:u,language:d,onChange:y,onLinkOpen:_,onCursorPositionChange:b,onActionTrigger:M,onEditorDidMount:x,onVersionChange:v}=e,{t:w,i18n:D}=Ea(),g=U.useRef(null),A=U.useRef(null),O=U.useRef(!1),k=U.useRef(!1);U.useImperativeHandle(t,()=>({setOriginalScript(C){g.current?.setOriginalScript(C)},setScript(C){g.current?.setValue(C)},gotoLine(){g.current?.gotoLine()},getEditorLayout(){return g.current?.getEditorLayout()},setPosition(C,j){g.current?.setPosition({column:C,lineNumber:j})},setModelMarkers(C){k.current=!0,g.current?.setModelMarkers(C),setTimeout(()=>{k.current=!1},2e3)},focus(){g.current?.focus()}})),U.useEffect(()=>{c?g.current?.addDiffDecorations():g.current?.removeDiffDecorations()},[c]),U.useEffect(()=>{o&&pt.editor.setTheme(o)},[o]),U.useEffect(()=>{d&&D.changeLanguage(d)},[d]),U.useEffect(()=>{g.current?.updateActionTrigger(M)},[M]),U.useEffect(()=>{_&&g.current?.addLinkOpenFunc(_)},[_]);function q(C,j){Cn.setEditor(C,j),g.current=new Ux(C,j,M),_&&g.current?.addLinkOpenFunc(_),c&&g.current?.addDiffDecorations(),Sz(C),requestAnimationFrame(I);const X=C.getValue();g.current.onChangeCursorPosition(b),y&&y(X),!p&&T(X),x&&x()}const T=U.useCallback(async C=>{const j=g.current?.getVersion();v&&v(j||Us),O.current=!1;const{errors:X,functions:ae,methods:ee,types:pe,variables:be,overloadsFuncs:Z,imports:ye,enums:ge}=await eu(C,!1,j),P=new Map(Object.entries(ae)),se=new Map(Object.entries(ee)),oe=new Map(Object.entries(pe)),re=new Map(Object.entries(be)),Re=new Map(Object.entries(ye)),ve=new Map(Object.entries(ge));Dr.setUserDefined({functions:P,methods:se,types:oe,variables:re,imports:Re,enums:ve},Z),Rs.setUserDefind(P,oe,re,se,ve);const Te=X.map(he=>({...he,severity:he.type||pt.MarkerSeverity.Error}));p||!O.current&&!k.current&&Te.length&&g.current?.setModelMarkers(Te)},[p]),E=U.useMemo(()=>Kz.debounce(T,1500),[T]);function K(C){if(p){T(C||"");return}O.current=!0,Cn.clearInlayHints(),g.current?.setModelMarkers([]),C!==void 0&&(y&&y(C),E(C))}const I=U.useCallback(()=>{const C=A.current?.getBoundingClientRect();g.current?.setEditorLayout(C?.height||0,C?.width)},[]);return U.useEffect(()=>{const C=()=>{window.requestAnimationFrame(I)},j=new ResizeObserver(C);return A.current&&j.observe(A.current),()=>{A.current&&j.unobserve(A.current),j.disconnect(),g.current?.dispose()}},[]),N.jsx("div",{ref:A,children:N.jsx(g_,{height:s,width:a||"100%",defaultLanguage:ht,defaultValue:u||`//@version=6
108
108
  indicator("我的脚本")
109
109
  plot(close)
110
110
  `,theme:o||"vs-dark",className:`tvue-script ${o||"vs-dark"}`,options:{colorDecorators:!0,useShadowDOM:!1,matchOnWordStartOnly:!0,automaticLayout:!1,unicodeHighlight:{allowedCharacters:{" ":!0}},suggest:{filterGraceful:!0},stickyScroll:{enabled:!1},fontSize:13,...p?z_:{},readOnlyMessage:{value:w("This script is read-only. It cannot be edited.")},...i},onMount:q,onChange:K})})},Sh=U.forwardRef(Eh),Xh=e=>{const{theme:t,modified:s,original:a,height:o,width:i,renderSideBySide:c=!0,version:p=Us,onDidLayoutChange:u}=e,d=U.useCallback(async(y,_)=>{_.languages.register({id:ht}),_.editor.defineTheme("vs-dark",Ci),_.editor.defineTheme("vs",Bi);const b=await Rn(p);b&&(_.languages.setMonarchTokensProvider(ht,b.LANGUAGE_MONARCH_TOKENS),_.languages.setLanguageConfiguration(ht,b.CONFIGURATION)),u&&y.getModifiedEditor().onDidLayoutChange(M=>{u(M,y.getOriginalEditor().getLayoutInfo())})},[p]);return N.jsx(m_,{height:o||"90vh",width:i||"100%",theme:t||"vs-dark",options:{readOnly:!0,renderSideBySide:c,scrollBeyondLastLine:!1,renderSideBySideInlineBreakpoint:600,stickyScroll:{enabled:!1}},language:ht,modified:s,original:a,onMount:d})};var Hn={},Fh=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,s=[],a=0;a<e.rangeCount;a++)s.push(e.getRangeAt(a));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||s.forEach(function(o){e.addRange(o)}),t&&t.focus()}},Ph=Fh,mu={"text/plain":"Text","text/html":"Url",default:"Text"},Kh="Copy to clipboard: #{key}, Enter";function Uh(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function Hh(e,t){var s,a,o,i,c,p,u=!1;t||(t={}),s=t.debug||!1;try{o=Ph(),i=document.createRange(),c=document.getSelection(),p=document.createElement("span"),p.textContent=e,p.ariaHidden="true",p.style.all="unset",p.style.position="fixed",p.style.top=0,p.style.clip="rect(0, 0, 0, 0)",p.style.whiteSpace="pre",p.style.webkitUserSelect="text",p.style.MozUserSelect="text",p.style.msUserSelect="text",p.style.userSelect="text",p.addEventListener("copy",function(y){if(y.stopPropagation(),t.format)if(y.preventDefault(),typeof y.clipboardData>"u"){s&&console.warn("unable to use e.clipboardData"),s&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var _=mu[t.format]||mu.default;window.clipboardData.setData(_,e)}else y.clipboardData.clearData(),y.clipboardData.setData(t.format,e);t.onCopy&&(y.preventDefault(),t.onCopy(y.clipboardData))}),document.body.appendChild(p),i.selectNodeContents(p),c.addRange(i);var d=document.execCommand("copy");if(!d)throw new Error("copy command was unsuccessful");u=!0}catch(y){s&&console.error("unable to copy using execCommand: ",y),s&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(_){s&&console.error("unable to copy using clipboardData: ",_),s&&console.error("falling back to prompt"),a=Uh("message"in t?t.message:Kh),window.prompt(a,e)}}finally{c&&(typeof c.removeRange=="function"?c.removeRange(i):c.removeAllRanges()),p&&document.body.removeChild(p),o()}return u}var jh=Hh;Object.defineProperty(Hn,"__esModule",{value:!0}),Hn.CopyToClipboard=void 0;var $h=yu(jh),jn=yu(U),Gh=["text","onCopy","options","children"];function yu(e){return e&&e.__esModule?e:{default:e}}function Sa(e){"@babel/helpers - typeof";return Sa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sa(e)}function bu(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),s.push.apply(s,a)}return s}function _u(e){for(var t=1;t<arguments.length;t++){var s=arguments[t]!=null?arguments[t]:{};t%2?bu(Object(s),!0).forEach(function(a){R1(e,a,s[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):bu(Object(s)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(s,a))})}return e}function Yh(e,t){if(e==null)return{};var s,a,o=Vh(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)s=i[a],t.indexOf(s)===-1&&{}.propertyIsEnumerable.call(e,s)&&(o[s]=e[s])}return o}function Vh(e,t){if(e==null)return{};var s={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;s[a]=e[a]}return s}function Qh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zh(e,t){for(var s=0;s<t.length;s++){var a=t[s];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,gu(a.key),a)}}function Jh(e,t,s){return t&&Zh(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function e3(e,t,s){return t=$n(t),t3(e,fu()?Reflect.construct(t,s||[],$n(e).constructor):t.apply(e,s))}function t3(e,t){if(t&&(Sa(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return s3(e)}function s3(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(fu=function(){return!!e})()}function $n(e){return $n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},$n(e)}function r3(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&I1(e,t)}function I1(e,t){return I1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,a){return s.__proto__=a,s},I1(e,t)}function R1(e,t,s){return(t=gu(t))in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}function gu(e){var t=a3(e,"string");return Sa(t)=="symbol"?t:t+""}function a3(e,t){if(Sa(e)!="object"||!e)return e;var s=e[Symbol.toPrimitive];if(s!==void 0){var a=s.call(e,t);if(Sa(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var n3=Hn.CopyToClipboard=function(e){function t(){var s;Qh(this,t);for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return s=e3(this,t,[].concat(o)),R1(s,"onClick",function(c){var p=s.props,u=p.text,d=p.onCopy,y=p.children,_=p.options,b=jn.default.Children.only(y),M=(0,$h.default)(u,_);d&&d(u,M),b!=null&&b.props&&typeof b.props.onClick=="function"&&b.props.onClick(c)}),s}return r3(t,e),Jh(t,[{key:"render",value:function(){var a=this.props;a.text,a.onCopy,a.options;var o=a.children,i=Yh(a,Gh),c=jn.default.Children.only(o);return jn.default.cloneElement(c,_u(_u({},i),{},{onClick:this.onClick}))}}])}(jn.default.PureComponent);R1(n3,"defaultProps",{onCopy:void 0,options:void 0});var o3=Hn,L1=o3.CopyToClipboard;L1.CopyToClipboard=L1;var i3=L1;const Xa=ib(i3);pt.languages.register({id:ht}),pt.editor.defineTheme("vs-dark",Ci),pt.editor.defineTheme("vs",Bi);const Mu=[{label:"版本 v3",version:3},{label:"版本 v4",version:4},{label:"版本 v5",version:5},{label:"版本 v6",version:6}];async function N1(e){const t=await Rn(e);t&&(pt.languages.setMonarchTokensProvider(ht,t.LANGUAGE_MONARCH_TOKENS),pt.languages.setLanguageConfiguration(ht,t.CONFIGURATION))}async function zu(e,t,s){return t&&pt.editor.setTheme(t.includes("dark")?"vs-dark":"light"),s&&await N1(s),await pt.editor.colorize(e,ht,{tabSize:4})}async function B1(e,t=0){const s=e[t];if(!s)return;const{name:a,args:o,type:i,desc:c,examples:p,remarks:u,seeAlso:d,syntax:y,detailedDesc:_,fields:b,returns:M}=s,x={name:a,orirginalName:a};if(e.length>1&&(x.overloads=`${e.length} ${lt.t("overloads")}`),i&&(x.type=i),o&&(x.name=`${a}()`,x.args=o.map(v=>{const{name:w,desc:D,displayType:g}=v;return{label:`${w} (${g})`,desc:D&&ia(D)}})),c&&(x.desc=c.map(v=>ia(v))),p&&(x.originalExample=p.join(`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@guihz/trading-vue-editor-tes",
3
- "version": "0.1.89",
3
+ "version": "0.1.91",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "lib"