@guihz/trading-vue-editor-tes 0.0.90 → 0.0.91

Sign up to get free protection for your applications and to get access to all the features.
@@ -77,4 +77,4 @@ ${Fl}`)}function oy(s,e,t){return(s>=0&&t?` ${Ml(s,e-1)}`:Ml(s,e)).padEnd(e)}fun
77
77
  * @license
78
78
  * Copyright 2019 Google LLC
79
79
  * SPDX-License-Identifier: Apache-2.0
80
- */const Th=Symbol("Comlink.proxy"),vw=Symbol("Comlink.endpoint"),gw=Symbol("Comlink.releaseProxy"),Uu=Symbol("Comlink.finalizer"),Mo=Symbol("Comlink.thrown"),Ih=s=>typeof s=="object"&&s!==null||typeof s=="function",mw={canHandle:s=>Ih(s)&&s[Th],serialize(s){const{port1:e,port2:t}=new MessageChannel;return Wu(s,e),[t,[t]]},deserialize(s){return s.start(),ww(s)}},xw={canHandle:s=>Ih(s)&&Mo in s,serialize({value:s}){let e;return s instanceof Error?e={isError:!0,value:{message:s.message,name:s.name,stack:s.stack}}:e={isError:!1,value:s},[e,[]]},deserialize(s){throw s.isError?Object.assign(new Error(s.value.message),s.value):s.value}},$h=new Map([["proxy",mw],["throw",xw]]);function yw(s,e){for(const t of s)if(e===t||t==="*"||t instanceof RegExp&&t.test(e))return!0;return!1}function Wu(s,e=globalThis,t=["*"]){e.addEventListener("message",function r(n){if(!n||!n.data)return;if(!yw(t,n.origin)){console.warn(`Invalid origin '${n.origin}' for comlink proxy`);return}const{id:i,type:a,path:u}=Object.assign({path:[]},n.data),l=(n.data.argumentList||[]).map(ui);let c;try{const h=u.slice(0,-1).reduce((p,v)=>p[v],s),d=u.reduce((p,v)=>p[v],s);switch(a){case"GET":c=d;break;case"SET":h[u.slice(-1)[0]]=ui(n.data.value),c=!0;break;case"APPLY":c=d.apply(h,l);break;case"CONSTRUCT":{const p=new d(...l);c=Fw(p)}break;case"ENDPOINT":{const{port1:p,port2:v}=new MessageChannel;Wu(s,v),c=Cw(p,[p])}break;case"RELEASE":c=void 0;break;default:return}}catch(h){c={value:h,[Mo]:0}}Promise.resolve(c).catch(h=>({value:h,[Mo]:0})).then(h=>{const[d,p]=To(h);e.postMessage(Object.assign(Object.assign({},d),{id:i}),p),a==="RELEASE"&&(e.removeEventListener("message",r),Rh(e),Uu in s&&typeof s[Uu]=="function"&&s[Uu]())}).catch(h=>{const[d,p]=To({value:new TypeError("Unserializable return value"),[Mo]:0});e.postMessage(Object.assign(Object.assign({},d),{id:i}),p)})}),e.start&&e.start()}function Dw(s){return s.constructor.name==="MessagePort"}function Rh(s){Dw(s)&&s.close()}function ww(s,e){return Hu(s,[],e)}function No(s){if(s)throw new Error("Proxy has been released and is not useable")}function Lh(s){return $i(s,{type:"RELEASE"}).then(()=>{Rh(s)})}const So=new WeakMap,Oo="FinalizationRegistry"in globalThis&&new FinalizationRegistry(s=>{const e=(So.get(s)||0)-1;So.set(s,e),e===0&&Lh(s)});function Ew(s,e){const t=(So.get(e)||0)+1;So.set(e,t),Oo&&Oo.register(s,e,s)}function bw(s){Oo&&Oo.unregister(s)}function Hu(s,e=[],t=function(){}){let r=!1;const n=new Proxy(t,{get(i,a){if(No(r),a===gw)return()=>{bw(n),Lh(s),r=!0};if(a==="then"){if(e.length===0)return{then:()=>n};const u=$i(s,{type:"GET",path:e.map(l=>l.toString())}).then(ui);return u.then.bind(u)}return Hu(s,[...e,a])},set(i,a,u){No(r);const[l,c]=To(u);return $i(s,{type:"SET",path:[...e,a].map(h=>h.toString()),value:l},c).then(ui)},apply(i,a,u){No(r);const l=e[e.length-1];if(l===vw)return $i(s,{type:"ENDPOINT"}).then(ui);if(l==="bind")return Hu(s,e.slice(0,-1));const[c,h]=Ph(u);return $i(s,{type:"APPLY",path:e.map(d=>d.toString()),argumentList:c},h).then(ui)},construct(i,a){No(r);const[u,l]=Ph(a);return $i(s,{type:"CONSTRUCT",path:e.map(c=>c.toString()),argumentList:u},l).then(ui)}});return Ew(n,s),n}function Aw(s){return Array.prototype.concat.apply([],s)}function Ph(s){const e=s.map(To);return[e.map(t=>t[0]),Aw(e.map(t=>t[1]))]}const kh=new WeakMap;function Cw(s,e){return kh.set(s,e),s}function Fw(s){return Object.assign(s,{[Th]:!0})}function To(s){for(const[e,t]of $h)if(t.canHandle(s)){const[r,n]=t.serialize(s);return[{type:"HANDLER",name:e,value:r},n]}return[{type:"RAW",value:s},kh.get(s)||[]]}function ui(s){switch(s.type){case"HANDLER":return $h.get(s.name).deserialize(s.value);case"RAW":return s.value}}function $i(s,e,t){return new Promise(r=>{const n=Bw();s.addEventListener("message",function i(a){!a.data||!a.data.id||a.data.id!==n||(s.removeEventListener("message",i),r(a.data))}),s.start&&s.start(),s.postMessage(Object.assign({id:n},e),t)})}function Bw(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}class Mw{constructor(){U(this,"_cache");this._cache=new Map}set(e,t){this._cache.set(e,t)}setValue(e,t,r){const n=this._cache.get(e)||{};n[t]=r,this._cache.set(e,n)}updateValue(e,t,r){const n=this._cache.get(e)||{};this._cache.set(e,Object.assign(n[t]||{},r))}get(e){return this._cache.get(e)}has(e){return this._cache.has(e)}delete(e){this._cache.delete(e)}clear(){this._cache.clear()}}function Nw(s,e,t){const{data:r,isPreParser:n,id:i="default",syminfo:a,interval:u,inputs:l}=e;self.workerStorage||(self.workerStorage=new Mw);let{builtInGather:c,buildinConstants:h,buildInFunctions:d,tradingvueFunc:p}=self.workerStorage.get(i)||{},v=[];if(t&&(c=new Oh,h=new Ul,d=new Zl((a==null?void 0:a.mintick)||1e-4,c,i),p=new Function("$_var","$_const","$_func",s),self.workerStorage.set(i,{builtInGather:c,buildinConstants:h,buildInFunctions:d,tradingvueFunc:p}),self.workerStorage.set(`request_${i}`,new Map)),n)p(c,h,d);else if(r&&r.length){const _=r.length-1;c.updateOptions({interval:u,mintick:(a==null?void 0:a.mintick)||1e-4}),d.updateOptions({inputs:l});for(const[y,m]of r.entries()){const{barindex:w}=m;!t&&w&&v.push(w),c.updateData(Object.assign(m,{barIndex:w||y,lastBarIndex:r[_].bar_index||_,lastBarTime:r[_].time})),d.update({barIndex:w||y}),p(c,h,d),d.endExecution();const D=d.errors;if(D.length&&D.some(A=>A.type===Ve.Error))return{status:1,errors:D}}}const x=d.errors;return x.length&&x.some(_=>_.type===Ve.Error)?{status:1,errors:x}:{status:0,options:{...d.options(v),id:i}}}function Sw(s){self==null||self.workerStorage.delete(s),self==null||self.workerStorage.delete(`inputs_${s}`)}Wu({runScript:Nw,removeScript:Sw})})();
80
+ */const Th=Symbol("Comlink.proxy"),vw=Symbol("Comlink.endpoint"),gw=Symbol("Comlink.releaseProxy"),Uu=Symbol("Comlink.finalizer"),Mo=Symbol("Comlink.thrown"),Ih=s=>typeof s=="object"&&s!==null||typeof s=="function",mw={canHandle:s=>Ih(s)&&s[Th],serialize(s){const{port1:e,port2:t}=new MessageChannel;return Wu(s,e),[t,[t]]},deserialize(s){return s.start(),ww(s)}},xw={canHandle:s=>Ih(s)&&Mo in s,serialize({value:s}){let e;return s instanceof Error?e={isError:!0,value:{message:s.message,name:s.name,stack:s.stack}}:e={isError:!1,value:s},[e,[]]},deserialize(s){throw s.isError?Object.assign(new Error(s.value.message),s.value):s.value}},$h=new Map([["proxy",mw],["throw",xw]]);function yw(s,e){for(const t of s)if(e===t||t==="*"||t instanceof RegExp&&t.test(e))return!0;return!1}function Wu(s,e=globalThis,t=["*"]){e.addEventListener("message",function r(n){if(!n||!n.data)return;if(!yw(t,n.origin)){console.warn(`Invalid origin '${n.origin}' for comlink proxy`);return}const{id:i,type:a,path:u}=Object.assign({path:[]},n.data),l=(n.data.argumentList||[]).map(ui);let c;try{const h=u.slice(0,-1).reduce((p,v)=>p[v],s),d=u.reduce((p,v)=>p[v],s);switch(a){case"GET":c=d;break;case"SET":h[u.slice(-1)[0]]=ui(n.data.value),c=!0;break;case"APPLY":c=d.apply(h,l);break;case"CONSTRUCT":{const p=new d(...l);c=Fw(p)}break;case"ENDPOINT":{const{port1:p,port2:v}=new MessageChannel;Wu(s,v),c=Cw(p,[p])}break;case"RELEASE":c=void 0;break;default:return}}catch(h){c={value:h,[Mo]:0}}Promise.resolve(c).catch(h=>({value:h,[Mo]:0})).then(h=>{const[d,p]=To(h);e.postMessage(Object.assign(Object.assign({},d),{id:i}),p),a==="RELEASE"&&(e.removeEventListener("message",r),Rh(e),Uu in s&&typeof s[Uu]=="function"&&s[Uu]())}).catch(h=>{const[d,p]=To({value:new TypeError("Unserializable return value"),[Mo]:0});e.postMessage(Object.assign(Object.assign({},d),{id:i}),p)})}),e.start&&e.start()}function Dw(s){return s.constructor.name==="MessagePort"}function Rh(s){Dw(s)&&s.close()}function ww(s,e){return Hu(s,[],e)}function No(s){if(s)throw new Error("Proxy has been released and is not useable")}function Lh(s){return $i(s,{type:"RELEASE"}).then(()=>{Rh(s)})}const So=new WeakMap,Oo="FinalizationRegistry"in globalThis&&new FinalizationRegistry(s=>{const e=(So.get(s)||0)-1;So.set(s,e),e===0&&Lh(s)});function Ew(s,e){const t=(So.get(e)||0)+1;So.set(e,t),Oo&&Oo.register(s,e,s)}function bw(s){Oo&&Oo.unregister(s)}function Hu(s,e=[],t=function(){}){let r=!1;const n=new Proxy(t,{get(i,a){if(No(r),a===gw)return()=>{bw(n),Lh(s),r=!0};if(a==="then"){if(e.length===0)return{then:()=>n};const u=$i(s,{type:"GET",path:e.map(l=>l.toString())}).then(ui);return u.then.bind(u)}return Hu(s,[...e,a])},set(i,a,u){No(r);const[l,c]=To(u);return $i(s,{type:"SET",path:[...e,a].map(h=>h.toString()),value:l},c).then(ui)},apply(i,a,u){No(r);const l=e[e.length-1];if(l===vw)return $i(s,{type:"ENDPOINT"}).then(ui);if(l==="bind")return Hu(s,e.slice(0,-1));const[c,h]=Ph(u);return $i(s,{type:"APPLY",path:e.map(d=>d.toString()),argumentList:c},h).then(ui)},construct(i,a){No(r);const[u,l]=Ph(a);return $i(s,{type:"CONSTRUCT",path:e.map(c=>c.toString()),argumentList:u},l).then(ui)}});return Ew(n,s),n}function Aw(s){return Array.prototype.concat.apply([],s)}function Ph(s){const e=s.map(To);return[e.map(t=>t[0]),Aw(e.map(t=>t[1]))]}const kh=new WeakMap;function Cw(s,e){return kh.set(s,e),s}function Fw(s){return Object.assign(s,{[Th]:!0})}function To(s){for(const[e,t]of $h)if(t.canHandle(s)){const[r,n]=t.serialize(s);return[{type:"HANDLER",name:e,value:r},n]}return[{type:"RAW",value:s},kh.get(s)||[]]}function ui(s){switch(s.type){case"HANDLER":return $h.get(s.name).deserialize(s.value);case"RAW":return s.value}}function $i(s,e,t){return new Promise(r=>{const n=Bw();s.addEventListener("message",function i(a){!a.data||!a.data.id||a.data.id!==n||(s.removeEventListener("message",i),r(a.data))}),s.start&&s.start(),s.postMessage(Object.assign({id:n},e),t)})}function Bw(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}class Mw{constructor(){U(this,"_cache");this._cache=new Map}set(e,t){this._cache.set(e,t)}setValue(e,t,r){const n=this._cache.get(e)||{};n[t]=r,this._cache.set(e,n)}updateValue(e,t,r){const n=this._cache.get(e)||{};this._cache.set(e,Object.assign(n[t]||{},r))}get(e){return this._cache.get(e)}has(e){return this._cache.has(e)}delete(e){this._cache.delete(e)}clear(){this._cache.clear()}}function Nw(s,e,t){const{data:r,isPreParser:n,id:i="default",syminfo:a,interval:u,inputs:l}=e;self.workerStorage||(self.workerStorage=new Mw);let{builtInGather:c,buildinConstants:h,buildInFunctions:d,tradingvueFunc:p}=self.workerStorage.get(i)||{},v=[];if(t&&(c=new Oh,h=new Ul,d=new Zl((a==null?void 0:a.mintick)||1e-4,c,i),p=new Function("$_var","$_const","$_func",s),self.workerStorage.set(i,{builtInGather:c,buildinConstants:h,buildInFunctions:d,tradingvueFunc:p}),self.workerStorage.set(`request_${i}`,new Map)),n)p(c,h,d);else if(r&&r.length){const _=r.length-1;c.updateOptions({interval:u,mintick:(a==null?void 0:a.mintick)||1e-4}),d.updateOptions({inputs:l});for(const[y,m]of r.entries()){const{barindex:w}=m;!t&&(w||w===0)&&v.push(w),c.updateData(Object.assign(m,{barIndex:w||y,lastBarIndex:r[_].bar_index||_,lastBarTime:r[_].time})),d.update({barIndex:w||y}),p(c,h,d),d.endExecution();const D=d.errors;if(D.length&&D.some(A=>A.type===Ve.Error))return{status:1,errors:D}}}const x=d.errors;return x.length&&x.some(_=>_.type===Ve.Error)?{status:1,errors:x}:{status:0,options:{...d.options(v),id:i}}}function Sw(s){self==null||self.workerStorage.delete(s),self==null||self.workerStorage.delete(`inputs_${s}`)}Wu({runScript:Nw,removeScript:Sw})})();
@@ -67198,7 +67198,7 @@ function ar(a, n, r) {
67198
67198
  function lh() {
67199
67199
  return new Array(4).fill(0).map(() => Math.floor(Math.random() * Number.MAX_SAFE_INTEGER).toString(16)).join("-");
67200
67200
  }
67201
- const Fp = new Worker(new URL("" + new URL("assets/scriptsRunWorker-DgG7s-vw.js", import.meta.url).href, import.meta.url), { type: "module", name: "Run TccScript Server" });
67201
+ const Fp = new Worker(new URL("" + new URL("assets/scriptsRunWorker-CKlzzQd0.js", import.meta.url).href, import.meta.url), { type: "module", name: "Run TccScript Server" });
67202
67202
  Fp.onerror = (a) => {
67203
67203
  console.error(a);
67204
67204
  };
@@ -137,7 +137,7 @@ function print() { __p += __j.call(arguments, '') }
137
137
  * @license
138
138
  * Copyright 2019 Google LLC
139
139
  * SPDX-License-Identifier: Apache-2.0
140
- */const _o=Symbol("Comlink.proxy"),nm=Symbol("Comlink.endpoint"),im=Symbol("Comlink.releaseProxy"),yn=Symbol("Comlink.finalizer"),Ys=Symbol("Comlink.thrown"),fo=a=>typeof a=="object"&&a!==null||typeof a=="function",om={canHandle:a=>fo(a)&&a[_o],serialize(a){const{port1:n,port2:s}=new MessageChannel;return bo(a,n),[s,[s]]},deserialize(a){return a.start(),_n(a)}},lm={canHandle:a=>fo(a)&&Ys in a,serialize({value:a}){let n;return a instanceof Error?n={isError:!0,value:{message:a.message,name:a.name,stack:a.stack}}:n={isError:!1,value:a},[n,[]]},deserialize(a){throw a.isError?Object.assign(new Error(a.value.message),a.value):a.value}},go=new Map([["proxy",om],["throw",lm]]);function cm(a,n){for(const s of a)if(n===s||s==="*"||s instanceof RegExp&&s.test(n))return!0;return!1}function bo(a,n=globalThis,s=["*"]){n.addEventListener("message",function o(l){if(!l||!l.data)return;if(!cm(s,l.origin)){console.warn(`Invalid origin '${l.origin}' for comlink proxy`);return}const{id:c,type:u,path:f}=Object.assign({path:[]},l.data),x=(l.data.argumentList||[]).map(gr);let g;try{const h=f.slice(0,-1).reduce((P,R)=>P[R],a),D=f.reduce((P,R)=>P[R],a);switch(u){case"GET":g=D;break;case"SET":h[f.slice(-1)[0]]=gr(l.data.value),g=!0;break;case"APPLY":g=D.apply(h,x);break;case"CONSTRUCT":{const P=new D(...x);g=gn(P)}break;case"ENDPOINT":{const{port1:P,port2:R}=new MessageChannel;bo(a,R),g=ym(P,[P])}break;case"RELEASE":g=void 0;break;default:return}}catch(h){g={value:h,[Ys]:0}}Promise.resolve(g).catch(h=>({value:h,[Ys]:0})).then(h=>{const[D,P]=ea(h);n.postMessage(Object.assign(Object.assign({},D),{id:c}),P),u==="RELEASE"&&(n.removeEventListener("message",o),xo(n),yn in a&&typeof a[yn]=="function"&&a[yn]())}).catch(h=>{const[D,P]=ea({value:new TypeError("Unserializable return value"),[Ys]:0});n.postMessage(Object.assign(Object.assign({},D),{id:c}),P)})}),n.start&&n.start()}function pm(a){return a.constructor.name==="MessagePort"}function xo(a){pm(a)&&a.close()}function _n(a,n){return fn(a,[],n)}function Qs(a){if(a)throw new Error("Proxy has been released and is not useable")}function ho(a){return Lr(a,{type:"RELEASE"}).then(()=>{xo(a)})}const Zs=new WeakMap,Js="FinalizationRegistry"in globalThis&&new FinalizationRegistry(a=>{const n=(Zs.get(a)||0)-1;Zs.set(a,n),n===0&&ho(a)});function dm(a,n){const s=(Zs.get(n)||0)+1;Zs.set(n,s),Js&&Js.register(a,n,a)}function mm(a){Js&&Js.unregister(a)}function fn(a,n=[],s=function(){}){let o=!1;const l=new Proxy(s,{get(c,u){if(Qs(o),u===im)return()=>{mm(l),ho(a),o=!0};if(u==="then"){if(n.length===0)return{then:()=>l};const f=Lr(a,{type:"GET",path:n.map(x=>x.toString())}).then(gr);return f.then.bind(f)}return fn(a,[...n,u])},set(c,u,f){Qs(o);const[x,g]=ea(f);return Lr(a,{type:"SET",path:[...n,u].map(h=>h.toString()),value:x},g).then(gr)},apply(c,u,f){Qs(o);const x=n[n.length-1];if(x===nm)return Lr(a,{type:"ENDPOINT"}).then(gr);if(x==="bind")return fn(a,n.slice(0,-1));const[g,h]=wo(f);return Lr(a,{type:"APPLY",path:n.map(D=>D.toString()),argumentList:g},h).then(gr)},construct(c,u){Qs(o);const[f,x]=wo(u);return Lr(a,{type:"CONSTRUCT",path:n.map(g=>g.toString()),argumentList:f},x).then(gr)}});return dm(l,a),l}function um(a){return Array.prototype.concat.apply([],a)}function wo(a){const n=a.map(ea);return[n.map(s=>s[0]),um(n.map(s=>s[1]))]}const vo=new WeakMap;function ym(a,n){return vo.set(a,n),a}function gn(a){return Object.assign(a,{[_o]:!0})}function ea(a){for(const[n,s]of go)if(s.canHandle(a)){const[o,l]=s.serialize(a);return[{type:"HANDLER",name:n,value:o},l]}return[{type:"RAW",value:a},vo.get(a)||[]]}function gr(a){switch(a.type){case"HANDLER":return go.get(a.name).deserialize(a.value);case"RAW":return a.value}}function Lr(a,n,s){return new Promise(o=>{const l=_m();a.addEventListener("message",function c(u){!u.data||!u.data.id||u.data.id!==l||(a.removeEventListener("message",c),o(u.data))}),a.start&&a.start(),a.postMessage(Object.assign({id:l},n),s)})}function _m(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}const To=new Worker(new URL(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/scriptsRunWorker-DgG7s-vw.js").href:new URL("assets/scriptsRunWorker-DgG7s-vw.js",typeof document>"u"?location.href:document.currentScript&&document.currentScript.src||document.baseURI).href),typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Us&&Us.src||new URL("trading-vue-editor.umd.cjs",document.baseURI).href),{type:"module",name:"Run TccScript Server"});To.onerror=a=>{console.error(a)};async function Do(a){return await Gs.setInlayHints(a)}const ko=_n(To),Io=_n(new Worker(new URL(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/parserTccWorker-BOpzDxKa.js").href:new URL("assets/parserTccWorker-BOpzDxKa.js",typeof document>"u"?location.href:document.currentScript&&document.currentScript.src||document.baseURI).href),typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Us&&Us.src||new URL("trading-vue-editor.umd.cjs",document.baseURI).href),{type:"module",name:"Parser TccScript Server"}));async function Ao(a,n=!1){const{functions:s,types:o,constants:l,variables:c,methods:u}=lt;return await Io.parseTcc(a,n,gn(Do),{functions:Object.fromEntries(s),methods:Object.fromEntries(u),types:Object.fromEntries(o),constants:Object.fromEntries(l),variables:Object.fromEntries(c)})}async function fm(a,n){const{functions:s,types:o,constants:l,variables:c,methods:u}=lt;return await Io.parseLibraryCode(a,n,gn(Do),{functions:Object.fromEntries(s),methods:Object.fromEntries(u),types:Object.fromEntries(o),constants:Object.fromEntries(l),variables:Object.fromEntries(c)})}async function qo(a,n,s=!0){return await ko.runScript(a,n,s)}async function gm(a){return await ko.removeScript(a)}function bm(a){return new Worker(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/editor.worker-CT5Cb1wO.js").href:new URL("assets/editor.worker-CT5Cb1wO.js",typeof document>"u"?location.href:document.currentScript&&document.currentScript.src||document.baseURI).href),{name:a==null?void 0:a.name})}self.MonacoEnvironment={getWorker(){return new bm({name:"Editor Worker"})}},sn.config({monaco:pp});let Co={};const xm=(a,n)=>{const{height:s,width:o,theme:l,options:c,hasDiff:u,readOnly:f,defaultValue:x,onChange:g,onLinkOpen:h,onDeclareConfigChange:D,onCursorPositionChange:P,onActionTrigger:R,onEditorDidMount:U}=a,L=F.useRef(null),X=F.useRef(null);F.useImperativeHandle(n,()=>({setOriginalScript(T){var M;(M=L.current)==null||M.setOriginalScript(T)},setScript(T){var M;(M=L.current)==null||M.setValue(T)},gotoLine(){var T;(T=L.current)==null||T.gotoLine()},getEditorLayout(){var T;return(T=L.current)==null?void 0:T.getEditorLayout()},setPosition(T,M){var K;(K=L.current)==null||K.setPosition({column:T,lineNumber:M})},setModelMarkers(T){var M;(M=L.current)==null||M.setModelMarkers(T)}})),F.useEffect(()=>{var T,M;u?(M=L.current)==null||M.addDiffDecorations():(T=L.current)==null||T.removeDiffDecorations()},[u]),F.useEffect(()=>{var T;(T=L.current)==null||T.updateActionTrigger(R)},[R]),F.useEffect(()=>{var T;h&&((T=L.current)==null||T.addLinkOpenFunc(h))},[h]);function ee(T,M){var ne,ae,ie;qt.initBuiltinsTrees(),Gs.setEditor(T),L.current=new am(T,M,R),h&&((ne=L.current)==null||ne.addLinkOpenFunc(h)),u&&((ae=L.current)==null||ae.addDiffDecorations()),zd(T),(ie=L.current)==null||ie.setEditorLayout(Number(s));const K=T.getValue();L.current.onChangeCursorPosition(P),g&&g(K),!f&&W(K),U&&U()}const W=F.useCallback(async T=>{var be;const M=Date.now(),{errors:K,functions:ne,methods:ae,types:ie,variables:gt,overloadsFuncs:zt,imports:Ke,preParserCode:Fe}=await Ao(T),V=new Map(Object.entries(ne)),ge=new Map(Object.entries(ae)),Ne=new Map(Object.entries(ie)),Me=new Map(Object.entries(gt)),bt=new Map(Object.entries(Ke));Er.setUserDefined({functions:V,methods:ge,types:Ne,variables:Me,imports:bt},zt),qt.setUserDefind(V,Ne,Me,ge);const St=K.map(De=>({...De,severity:De.type||qe.MarkerSeverity.Error}));if(f)return;try{if(!K.length&&Fe){const De=await qo(Fe,{isPreParser:!0});io.isEqual(De,Co)||(Co=De,D&&D(De))}}catch(De){console.log(De),K.push({message:De.message,startLineNumber:0,endLineNumber:0,startColumn:0,endColumn:0})}(be=L.current)==null||be.setModelMarkers(St);const te=Date.now();console.log((te-M)/1e3)},[D,f]),B=F.useMemo(()=>io.debounce(W,1500),[W]);function O(T){var M;if(f){W(T||"");return}Gs.clearInlayHints(),(M=L.current)==null||M.setModelMarkers([]),T!==void 0&&(g&&g(T),B(T))}return F.useEffect(()=>{const T=()=>{window.requestAnimationFrame(()=>{var ne,ae;const K=(ne=X.current)==null?void 0:ne.getBoundingClientRect();(ae=L.current)==null||ae.setEditorLayout((K==null?void 0:K.height)||0,K==null?void 0:K.width)})},M=new ResizeObserver(T);return X.current&&M.observe(X.current),()=>{X.current&&M.unobserve(X.current),M.disconnect()}},[]),E.jsx("div",{ref:X,children:E.jsx(xd,{height:s,width:o||"100%",defaultLanguage:Ee,defaultValue:x||`indicator("我的脚本")
140
+ */const _o=Symbol("Comlink.proxy"),nm=Symbol("Comlink.endpoint"),im=Symbol("Comlink.releaseProxy"),yn=Symbol("Comlink.finalizer"),Ys=Symbol("Comlink.thrown"),fo=a=>typeof a=="object"&&a!==null||typeof a=="function",om={canHandle:a=>fo(a)&&a[_o],serialize(a){const{port1:n,port2:s}=new MessageChannel;return bo(a,n),[s,[s]]},deserialize(a){return a.start(),_n(a)}},lm={canHandle:a=>fo(a)&&Ys in a,serialize({value:a}){let n;return a instanceof Error?n={isError:!0,value:{message:a.message,name:a.name,stack:a.stack}}:n={isError:!1,value:a},[n,[]]},deserialize(a){throw a.isError?Object.assign(new Error(a.value.message),a.value):a.value}},go=new Map([["proxy",om],["throw",lm]]);function cm(a,n){for(const s of a)if(n===s||s==="*"||s instanceof RegExp&&s.test(n))return!0;return!1}function bo(a,n=globalThis,s=["*"]){n.addEventListener("message",function o(l){if(!l||!l.data)return;if(!cm(s,l.origin)){console.warn(`Invalid origin '${l.origin}' for comlink proxy`);return}const{id:c,type:u,path:f}=Object.assign({path:[]},l.data),x=(l.data.argumentList||[]).map(gr);let g;try{const h=f.slice(0,-1).reduce((P,R)=>P[R],a),D=f.reduce((P,R)=>P[R],a);switch(u){case"GET":g=D;break;case"SET":h[f.slice(-1)[0]]=gr(l.data.value),g=!0;break;case"APPLY":g=D.apply(h,x);break;case"CONSTRUCT":{const P=new D(...x);g=gn(P)}break;case"ENDPOINT":{const{port1:P,port2:R}=new MessageChannel;bo(a,R),g=ym(P,[P])}break;case"RELEASE":g=void 0;break;default:return}}catch(h){g={value:h,[Ys]:0}}Promise.resolve(g).catch(h=>({value:h,[Ys]:0})).then(h=>{const[D,P]=ea(h);n.postMessage(Object.assign(Object.assign({},D),{id:c}),P),u==="RELEASE"&&(n.removeEventListener("message",o),xo(n),yn in a&&typeof a[yn]=="function"&&a[yn]())}).catch(h=>{const[D,P]=ea({value:new TypeError("Unserializable return value"),[Ys]:0});n.postMessage(Object.assign(Object.assign({},D),{id:c}),P)})}),n.start&&n.start()}function pm(a){return a.constructor.name==="MessagePort"}function xo(a){pm(a)&&a.close()}function _n(a,n){return fn(a,[],n)}function Qs(a){if(a)throw new Error("Proxy has been released and is not useable")}function ho(a){return Lr(a,{type:"RELEASE"}).then(()=>{xo(a)})}const Zs=new WeakMap,Js="FinalizationRegistry"in globalThis&&new FinalizationRegistry(a=>{const n=(Zs.get(a)||0)-1;Zs.set(a,n),n===0&&ho(a)});function dm(a,n){const s=(Zs.get(n)||0)+1;Zs.set(n,s),Js&&Js.register(a,n,a)}function mm(a){Js&&Js.unregister(a)}function fn(a,n=[],s=function(){}){let o=!1;const l=new Proxy(s,{get(c,u){if(Qs(o),u===im)return()=>{mm(l),ho(a),o=!0};if(u==="then"){if(n.length===0)return{then:()=>l};const f=Lr(a,{type:"GET",path:n.map(x=>x.toString())}).then(gr);return f.then.bind(f)}return fn(a,[...n,u])},set(c,u,f){Qs(o);const[x,g]=ea(f);return Lr(a,{type:"SET",path:[...n,u].map(h=>h.toString()),value:x},g).then(gr)},apply(c,u,f){Qs(o);const x=n[n.length-1];if(x===nm)return Lr(a,{type:"ENDPOINT"}).then(gr);if(x==="bind")return fn(a,n.slice(0,-1));const[g,h]=wo(f);return Lr(a,{type:"APPLY",path:n.map(D=>D.toString()),argumentList:g},h).then(gr)},construct(c,u){Qs(o);const[f,x]=wo(u);return Lr(a,{type:"CONSTRUCT",path:n.map(g=>g.toString()),argumentList:f},x).then(gr)}});return dm(l,a),l}function um(a){return Array.prototype.concat.apply([],a)}function wo(a){const n=a.map(ea);return[n.map(s=>s[0]),um(n.map(s=>s[1]))]}const vo=new WeakMap;function ym(a,n){return vo.set(a,n),a}function gn(a){return Object.assign(a,{[_o]:!0})}function ea(a){for(const[n,s]of go)if(s.canHandle(a)){const[o,l]=s.serialize(a);return[{type:"HANDLER",name:n,value:o},l]}return[{type:"RAW",value:a},vo.get(a)||[]]}function gr(a){switch(a.type){case"HANDLER":return go.get(a.name).deserialize(a.value);case"RAW":return a.value}}function Lr(a,n,s){return new Promise(o=>{const l=_m();a.addEventListener("message",function c(u){!u.data||!u.data.id||u.data.id!==l||(a.removeEventListener("message",c),o(u.data))}),a.start&&a.start(),a.postMessage(Object.assign({id:l},n),s)})}function _m(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}const To=new Worker(new URL(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/scriptsRunWorker-CKlzzQd0.js").href:new URL("assets/scriptsRunWorker-CKlzzQd0.js",typeof document>"u"?location.href:document.currentScript&&document.currentScript.src||document.baseURI).href),typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Us&&Us.src||new URL("trading-vue-editor.umd.cjs",document.baseURI).href),{type:"module",name:"Run TccScript Server"});To.onerror=a=>{console.error(a)};async function Do(a){return await Gs.setInlayHints(a)}const ko=_n(To),Io=_n(new Worker(new URL(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/parserTccWorker-BOpzDxKa.js").href:new URL("assets/parserTccWorker-BOpzDxKa.js",typeof document>"u"?location.href:document.currentScript&&document.currentScript.src||document.baseURI).href),typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Us&&Us.src||new URL("trading-vue-editor.umd.cjs",document.baseURI).href),{type:"module",name:"Parser TccScript Server"}));async function Ao(a,n=!1){const{functions:s,types:o,constants:l,variables:c,methods:u}=lt;return await Io.parseTcc(a,n,gn(Do),{functions:Object.fromEntries(s),methods:Object.fromEntries(u),types:Object.fromEntries(o),constants:Object.fromEntries(l),variables:Object.fromEntries(c)})}async function fm(a,n){const{functions:s,types:o,constants:l,variables:c,methods:u}=lt;return await Io.parseLibraryCode(a,n,gn(Do),{functions:Object.fromEntries(s),methods:Object.fromEntries(u),types:Object.fromEntries(o),constants:Object.fromEntries(l),variables:Object.fromEntries(c)})}async function qo(a,n,s=!0){return await ko.runScript(a,n,s)}async function gm(a){return await ko.removeScript(a)}function bm(a){return new Worker(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/editor.worker-CT5Cb1wO.js").href:new URL("assets/editor.worker-CT5Cb1wO.js",typeof document>"u"?location.href:document.currentScript&&document.currentScript.src||document.baseURI).href),{name:a==null?void 0:a.name})}self.MonacoEnvironment={getWorker(){return new bm({name:"Editor Worker"})}},sn.config({monaco:pp});let Co={};const xm=(a,n)=>{const{height:s,width:o,theme:l,options:c,hasDiff:u,readOnly:f,defaultValue:x,onChange:g,onLinkOpen:h,onDeclareConfigChange:D,onCursorPositionChange:P,onActionTrigger:R,onEditorDidMount:U}=a,L=F.useRef(null),X=F.useRef(null);F.useImperativeHandle(n,()=>({setOriginalScript(T){var M;(M=L.current)==null||M.setOriginalScript(T)},setScript(T){var M;(M=L.current)==null||M.setValue(T)},gotoLine(){var T;(T=L.current)==null||T.gotoLine()},getEditorLayout(){var T;return(T=L.current)==null?void 0:T.getEditorLayout()},setPosition(T,M){var K;(K=L.current)==null||K.setPosition({column:T,lineNumber:M})},setModelMarkers(T){var M;(M=L.current)==null||M.setModelMarkers(T)}})),F.useEffect(()=>{var T,M;u?(M=L.current)==null||M.addDiffDecorations():(T=L.current)==null||T.removeDiffDecorations()},[u]),F.useEffect(()=>{var T;(T=L.current)==null||T.updateActionTrigger(R)},[R]),F.useEffect(()=>{var T;h&&((T=L.current)==null||T.addLinkOpenFunc(h))},[h]);function ee(T,M){var ne,ae,ie;qt.initBuiltinsTrees(),Gs.setEditor(T),L.current=new am(T,M,R),h&&((ne=L.current)==null||ne.addLinkOpenFunc(h)),u&&((ae=L.current)==null||ae.addDiffDecorations()),zd(T),(ie=L.current)==null||ie.setEditorLayout(Number(s));const K=T.getValue();L.current.onChangeCursorPosition(P),g&&g(K),!f&&W(K),U&&U()}const W=F.useCallback(async T=>{var be;const M=Date.now(),{errors:K,functions:ne,methods:ae,types:ie,variables:gt,overloadsFuncs:zt,imports:Ke,preParserCode:Fe}=await Ao(T),V=new Map(Object.entries(ne)),ge=new Map(Object.entries(ae)),Ne=new Map(Object.entries(ie)),Me=new Map(Object.entries(gt)),bt=new Map(Object.entries(Ke));Er.setUserDefined({functions:V,methods:ge,types:Ne,variables:Me,imports:bt},zt),qt.setUserDefind(V,Ne,Me,ge);const St=K.map(De=>({...De,severity:De.type||qe.MarkerSeverity.Error}));if(f)return;try{if(!K.length&&Fe){const De=await qo(Fe,{isPreParser:!0});io.isEqual(De,Co)||(Co=De,D&&D(De))}}catch(De){console.log(De),K.push({message:De.message,startLineNumber:0,endLineNumber:0,startColumn:0,endColumn:0})}(be=L.current)==null||be.setModelMarkers(St);const te=Date.now();console.log((te-M)/1e3)},[D,f]),B=F.useMemo(()=>io.debounce(W,1500),[W]);function O(T){var M;if(f){W(T||"");return}Gs.clearInlayHints(),(M=L.current)==null||M.setModelMarkers([]),T!==void 0&&(g&&g(T),B(T))}return F.useEffect(()=>{const T=()=>{window.requestAnimationFrame(()=>{var ne,ae;const K=(ne=X.current)==null?void 0:ne.getBoundingClientRect();(ae=L.current)==null||ae.setEditorLayout((K==null?void 0:K.height)||0,K==null?void 0:K.width)})},M=new ResizeObserver(T);return X.current&&M.observe(X.current),()=>{X.current&&M.unobserve(X.current),M.disconnect()}},[]),E.jsx("div",{ref:X,children:E.jsx(xd,{height:s,width:o||"100%",defaultLanguage:Ee,defaultValue:x||`indicator("我的脚本")
141
141
  plot(close)
142
142
  `,theme:l||"vs-dark",className:`tvue-script ${l||"vs-dark"}`,options:{colorDecorators:!0,useShadowDOM:!1,matchOnWordStartOnly:!0,automaticLayout:!1,suggest:{filterGraceful:!0},fontSize:13,...f?Rd:{},readOnlyMessage:{value:"该脚本是只读的。它无法被编辑。"},...c},onMount:ee,onChange:O})})},hm=F.forwardRef(xm),wm=a=>{const{theme:n,modified:s,original:o,height:l,width:c,renderSideBySide:u=!0}=a,f=F.useCallback((x,g)=>{g.languages.register({id:Ee}),g.editor.defineTheme("vs-dark",cn),g.editor.defineTheme("vs",ln),g.languages.setMonarchTokensProvider(Ee,Nr),g.languages.setLanguageConfiguration(Ee,on)},[]);return E.jsx(yd,{height:l||"90vh",width:c||"100%",theme:n||"vs-dark",options:{readOnly:!0,renderSideBySide:u,scrollBeyondLastLine:!1},language:Ee,modified:s,original:o,onMount:f})};A.VMarkerSeverity=void 0,function(a){a[a.Hint=1]="Hint",a[a.Info=2]="Info",a[a.Warning=4]="Warning",a[a.Error=8]="Error"}(A.VMarkerSeverity||(A.VMarkerSeverity={}));var ta={},vm=function(){var a=document.getSelection();if(!a.rangeCount)return function(){};for(var n=document.activeElement,s=[],o=0;o<a.rangeCount;o++)s.push(a.getRangeAt(o));switch(n.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":n.blur();break;default:n=null;break}return a.removeAllRanges(),function(){a.type==="Caret"&&a.removeAllRanges(),a.rangeCount||s.forEach(function(l){a.addRange(l)}),n&&n.focus()}},Tm=vm,zo={"text/plain":"Text","text/html":"Url",default:"Text"},Dm="Copy to clipboard: #{key}, Enter";function km(a){var n=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return a.replace(/#{\s*key\s*}/g,n)}function Im(a,n){var s,o,l,c,u,f,x=!1;n||(n={}),s=n.debug||!1;try{l=Tm(),c=document.createRange(),u=document.getSelection(),f=document.createElement("span"),f.textContent=a,f.ariaHidden="true",f.style.all="unset",f.style.position="fixed",f.style.top=0,f.style.clip="rect(0, 0, 0, 0)",f.style.whiteSpace="pre",f.style.webkitUserSelect="text",f.style.MozUserSelect="text",f.style.msUserSelect="text",f.style.userSelect="text",f.addEventListener("copy",function(h){if(h.stopPropagation(),n.format)if(h.preventDefault(),typeof h.clipboardData>"u"){s&&console.warn("unable to use e.clipboardData"),s&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var D=zo[n.format]||zo.default;window.clipboardData.setData(D,a)}else h.clipboardData.clearData(),h.clipboardData.setData(n.format,a);n.onCopy&&(h.preventDefault(),n.onCopy(h.clipboardData))}),document.body.appendChild(f),c.selectNodeContents(f),u.addRange(c);var g=document.execCommand("copy");if(!g)throw new Error("copy command was unsuccessful");x=!0}catch(h){s&&console.error("unable to copy using execCommand: ",h),s&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(n.format||"text",a),n.onCopy&&n.onCopy(window.clipboardData),x=!0}catch(D){s&&console.error("unable to copy using clipboardData: ",D),s&&console.error("falling back to prompt"),o=km("message"in n?n.message:Dm),window.prompt(o,a)}}finally{u&&(typeof u.removeRange=="function"?u.removeRange(c):u.removeAllRanges()),f&&document.body.removeChild(f),l()}return x}var Am=Im;function bn(a){"@babel/helpers - typeof";return bn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},bn(a)}Object.defineProperty(ta,"__esModule",{value:!0}),ta.CopyToClipboard=void 0;var ra=So(F),qm=So(Am),Cm=["text","onCopy","options","children"];function So(a){return a&&a.__esModule?a:{default:a}}function Eo(a,n){var s=Object.keys(a);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(a);n&&(o=o.filter(function(l){return Object.getOwnPropertyDescriptor(a,l).enumerable})),s.push.apply(s,o)}return s}function No(a){for(var n=1;n<arguments.length;n++){var s=arguments[n]!=null?arguments[n]:{};n%2?Eo(Object(s),!0).forEach(function(o){hn(a,o,s[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(s)):Eo(Object(s)).forEach(function(o){Object.defineProperty(a,o,Object.getOwnPropertyDescriptor(s,o))})}return a}function zm(a,n){if(a==null)return{};var s=Sm(a,n),o,l;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(a);for(l=0;l<c.length;l++)o=c[l],!(n.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(a,o)&&(s[o]=a[o])}return s}function Sm(a,n){if(a==null)return{};var s={},o=Object.keys(a),l,c;for(c=0;c<o.length;c++)l=o[c],!(n.indexOf(l)>=0)&&(s[l]=a[l]);return s}function Em(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function")}function Lo(a,n){for(var s=0;s<n.length;s++){var o=n[s];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(a,o.key,o)}}function Nm(a,n,s){return n&&Lo(a.prototype,n),s&&Lo(a,s),Object.defineProperty(a,"prototype",{writable:!1}),a}function Lm(a,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(n&&n.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),n&&xn(a,n)}function xn(a,n){return xn=Object.setPrototypeOf||function(o,l){return o.__proto__=l,o},xn(a,n)}function Pm(a){var n=Om();return function(){var o=sa(a),l;if(n){var c=sa(this).constructor;l=Reflect.construct(o,arguments,c)}else l=o.apply(this,arguments);return Mm(this,l)}}function Mm(a,n){if(n&&(bn(n)==="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Po(a)}function Po(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function Om(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function sa(a){return sa=Object.setPrototypeOf?Object.getPrototypeOf:function(s){return s.__proto__||Object.getPrototypeOf(s)},sa(a)}function hn(a,n,s){return n in a?Object.defineProperty(a,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):a[n]=s,a}var Mo=function(a){Lm(s,a);var n=Pm(s);function s(){var o;Em(this,s);for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];return o=n.call.apply(n,[this].concat(c)),hn(Po(o),"onClick",function(f){var x=o.props,g=x.text,h=x.onCopy,D=x.children,P=x.options,R=ra.default.Children.only(D),U=(0,qm.default)(g,P);h&&h(g,U),R&&R.props&&typeof R.props.onClick=="function"&&R.props.onClick(f)}),o}return Nm(s,[{key:"render",value:function(){var l=this.props;l.text,l.onCopy,l.options;var c=l.children,u=zm(l,Cm),f=ra.default.Children.only(c);return ra.default.cloneElement(f,No(No({},u),{},{onClick:this.onClick}))}}]),s}(ra.default.PureComponent);ta.CopyToClipboard=Mo,hn(Mo,"defaultProps",{onCopy:void 0,options:void 0});var Rm=ta,wn=Rm.CopyToClipboard;wn.CopyToClipboard=wn;var Fm=wn;const vn=dp(Fm);async function Bm(a,n=0){const s=a[n];if(!s)return;const{name:o,args:l,type:c,desc:u,examples:f,remarks:x,seeAlso:g,syntax:h,detailedDesc:D,fields:P,returns:R}=s,U={name:o};if(a.length>1&&(U.overloads=`${a.length} overloads`),c&&(U.type=c),l&&(U.name=`${o}()`,U.args=l.map(L=>{const{name:X,desc:ee,displayType:W}=L;return{label:`${X} (${W})`,desc:ee&&br(ee)}})),u&&(U.desc=u.map(L=>br(L))),f&&(U.originalExample=f.join(`
143
143
  `),U.examples=await qe.editor.colorize(U.originalExample,Ee,{tabSize:4})),D){U.detailedDesc=[];for(const L of D){const{desc:X,examples:ee}=L;let W=X.map(T=>br(T)),B,O;ee&&(O=ee.join(`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@guihz/trading-vue-editor-tes",
3
- "version": "0.0.90",
3
+ "version": "0.0.91",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "lib"