@opensumi/cli-engine 3.8.3-next-1742195033.0 → 3.8.3-next-1742203639.0
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.
- package/lib/browser/browser.js +7 -7
- package/lib/hosted/ext.process.js +1 -1
- package/package.json +10 -10
package/lib/browser/browser.js
CHANGED
|
@@ -31211,7 +31211,7 @@ and limitations under the License.
|
|
|
31211
31211
|
`)[0];let a,b=f.match(QUERY_WORD_REGEX)[0];switch(u){case 2:a=new RangeError(`Bad node name '${b}'`);break;case 3:a=new RangeError(`Bad field name '${b}'`);break;case 4:a=new RangeError(`Bad capture name @${b}`);break;case 5:a=new TypeError(`Bad pattern structure at offset ${E}: '${f}'...`),b="";break;default:a=new SyntaxError(`Bad syntax at offset ${E}: '${f}'...`),b=""}throw a.index=E,a.length=b.length,C._free(n),a}const o=C._ts_query_string_count(r),c=C._ts_query_capture_count(r),p=C._ts_query_pattern_count(r),v=new Array(c),m=new Array(o);for(let u=0;u<c;u++){const d=C._ts_query_capture_name_for_id(r,u,TRANSFER_BUFFER),E=getValue(TRANSFER_BUFFER,"i32");v[u]=UTF8ToString(d,E)}for(let u=0;u<o;u++){const d=C._ts_query_string_value_for_id(r,u,TRANSFER_BUFFER),E=getValue(TRANSFER_BUFFER,"i32");m[u]=UTF8ToString(d,E)}const _=new Array(p),s=new Array(p),g=new Array(p),l=new Array(p),h=new Array(p);for(let u=0;u<p;u++){const d=C._ts_query_predicates_for_pattern(r,u,TRANSFER_BUFFER),E=getValue(TRANSFER_BUFFER,"i32");l[u]=[],h[u]=[];const f=[];let a=d;for(let b=0;b<E;b++){const y=getValue(a,"i32");a+=SIZE_OF_INT;const A=getValue(a,"i32");if(a+=SIZE_OF_INT,y===PREDICATE_STEP_TYPE_CAPTURE)f.push({type:"capture",name:v[A]});else if(y===PREDICATE_STEP_TYPE_STRING)f.push({type:"string",value:m[A]});else if(f.length>0){if(f[0].type!=="string")throw new Error("Predicates must begin with a literal value");const S=f[0].value;let w,T=!0,D=!0;switch(S){case"any-not-eq?":case"not-eq?":T=!1;case"any-eq?":case"eq?":if(f.length!==3)throw new Error(`Wrong number of arguments to \`#${S}\` predicate. Expected 2, got ${f.length-1}`);if(f[1].type!=="capture")throw new Error(`First argument of \`#${S}\` predicate must be a capture. Got "${f[1].value}"`);if(D=!S.startsWith("any-"),f[2].type==="capture"){const R=f[1].name,P=f[2].name;h[u].push(k=>{const F=[],L=[];for(const j of k)j.name===R&&F.push(j.node),j.name===P&&L.push(j.node);const B=(j,W,U)=>U?j.text===W.text:j.text!==W.text;return D?F.every(j=>L.some(W=>B(j,W,T))):F.some(j=>L.some(W=>B(j,W,T)))})}else{w=f[1].name;const R=f[2].value,P=F=>F.text===R,k=F=>F.text!==R;h[u].push(F=>{const L=[];for(const j of F)j.name===w&&L.push(j.node);const B=T?P:k;return D?L.every(B):L.some(B)})}break;case"any-not-match?":case"not-match?":T=!1;case"any-match?":case"match?":if(f.length!==3)throw new Error(`Wrong number of arguments to \`#${S}\` predicate. Expected 2, got ${f.length-1}.`);if(f[1].type!=="capture")throw new Error(`First argument of \`#${S}\` predicate must be a capture. Got "${f[1].value}".`);if(f[2].type!=="string")throw new Error(`Second argument of \`#${S}\` predicate must be a string. Got @${f[2].value}.`);w=f[1].name;const I=new RegExp(f[2].value);D=!S.startsWith("any-"),h[u].push(R=>{const P=[];for(const F of R)F.name===w&&P.push(F.node.text);const k=(F,L)=>L?I.test(F):!I.test(F);return P.length===0?!T:D?P.every(F=>k(F,T)):P.some(F=>k(F,T))});break;case"set!":if(f.length<2||f.length>3)throw new Error(`Wrong number of arguments to \`#set!\` predicate. Expected 1 or 2. Got ${f.length-1}.`);if(f.some(R=>R.type!=="string"))throw new Error('Arguments to `#set!` predicate must be a strings.".');_[u]||(_[u]={}),_[u][f[1].value]=f[2]?f[2].value:null;break;case"is?":case"is-not?":if(f.length<2||f.length>3)throw new Error(`Wrong number of arguments to \`#${S}\` predicate. Expected 1 or 2. Got ${f.length-1}.`);if(f.some(R=>R.type!=="string"))throw new Error(`Arguments to \`#${S}\` predicate must be a strings.".`);const O=S==="is?"?s:g;O[u]||(O[u]={}),O[u][f[1].value]=f[2]?f[2].value:null;break;case"not-any-of?":T=!1;case"any-of?":if(f.length<2)throw new Error(`Wrong number of arguments to \`#${S}\` predicate. Expected at least 1. Got ${f.length-1}.`);if(f[1].type!=="capture")throw new Error(`First argument of \`#${S}\` predicate must be a capture. Got "${f[1].value}".`);for(let R=2;R<f.length;R++)if(f[R].type!=="string")throw new Error(`Arguments to \`#${S}\` predicate must be a strings.".`);w=f[1].name;const M=f.slice(2).map(R=>R.value);h[u].push(R=>{const P=[];for(const k of R)k.name===w&&P.push(k.node.text);return P.length===0?!T:P.every(k=>M.includes(k))===T});break;default:l[u].push({operator:S,operands:f.slice(1)})}f.length=0}}Object.freeze(_[u]),Object.freeze(s[u]),Object.freeze(g[u])}return C._free(n),new Query(INTERNAL,r,v,h,l,Object.freeze(_),Object.freeze(s),Object.freeze(g))}static load(t){let e;if(t instanceof Uint8Array)e=Promise.resolve(t);else{const n=t;if(typeof process<"u"&&process.versions&&process.versions.node){const r=__webpack_require__(83078);e=Promise.resolve(r.readFileSync(n))}else e=fetch(n).then(r=>r.arrayBuffer().then(o=>{if(r.ok)return new Uint8Array(o);{const c=new TextDecoder("utf-8").decode(o);throw new Error(`Language.load failed with status ${r.status}.
|
|
31212
31212
|
|
|
31213
31213
|
${c}`)}}))}return e.then(n=>loadWebAssemblyModule(n,{loadAsync:!0})).then(n=>{const r=Object.keys(n),o=r.find(p=>LANGUAGE_FUNCTION_REGEX.test(p)&&!p.includes("external_scanner_"));o||console.log(`Couldn't find language function in WASM file. Symbols:
|
|
31214
|
-
${JSON.stringify(r,null,2)}`);const c=n[o]();return new Language(INTERNAL,c)})}}class LookaheadIterable{constructor(t,e,n){assertInternal(t),this[0]=e,this.language=n}get currentTypeId(){return C._ts_lookahead_iterator_current_symbol(this[0])}get currentType(){return this.language.types[this.currentTypeId]||"ERROR"}delete(){C._ts_lookahead_iterator_delete(this[0]),this[0]=0}resetState(t){return C._ts_lookahead_iterator_reset_state(this[0],t)}reset(t,e){return!!C._ts_lookahead_iterator_reset(this[0],t[0],e)&&(this.language=t,!0)}[Symbol.iterator](){const t=this;return{next:()=>C._ts_lookahead_iterator_next(t[0])?{done:!1,value:t.currentType}:{done:!0,value:""}}}}class Query{constructor(t,e,n,r,o,c,p,v){assertInternal(t),this[0]=e,this.captureNames=n,this.textPredicates=r,this.predicates=o,this.setProperties=c,this.assertedProperties=p,this.refutedProperties=v,this.exceededMatchLimit=!1}delete(){C._ts_query_delete(this[0]),this[0]=0}matches(t,{startPosition:e=ZERO_POINT,endPosition:n=ZERO_POINT,startIndex:r=0,endIndex:o=0,matchLimit:c=4294967295,maxStartDepth:p=4294967295}={}){if(typeof c!="number")throw new Error("Arguments must be numbers");marshalNode(t),C._ts_query_matches_wasm(this[0],t.tree[0],e.row,e.column,n.row,n.column,r,o,c,p);const v=getValue(TRANSFER_BUFFER,"i32"),m=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),_=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),s=new Array(v);this.exceededMatchLimit=!!_;let g=0,l=m;for(let h=0;h<v;h++){const u=getValue(l,"i32");l+=SIZE_OF_INT;const d=getValue(l,"i32");l+=SIZE_OF_INT;const E=new Array(d);if(l=unmarshalCaptures(this,t.tree,l,E),this.textPredicates[u].every(f=>f(E))){s[g]={pattern:u,captures:E};const f=this.setProperties[u];f&&(s[g].setProperties=f);const a=this.assertedProperties[u];a&&(s[g].assertedProperties=a);const b=this.refutedProperties[u];b&&(s[g].refutedProperties=b),g++}}return s.length=g,C._free(m),s}captures(t,{startPosition:e=ZERO_POINT,endPosition:n=ZERO_POINT,startIndex:r=0,endIndex:o=0,matchLimit:c=4294967295,maxStartDepth:p=4294967295}={}){if(typeof c!="number")throw new Error("Arguments must be numbers");marshalNode(t),C._ts_query_captures_wasm(this[0],t.tree[0],e.row,e.column,n.row,n.column,r,o,c,p);const v=getValue(TRANSFER_BUFFER,"i32"),m=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),_=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),s=[];this.exceededMatchLimit=!!_;const g=[];let l=m;for(let h=0;h<v;h++){const u=getValue(l,"i32");l+=SIZE_OF_INT;const d=getValue(l,"i32");l+=SIZE_OF_INT;const E=getValue(l,"i32");if(l+=SIZE_OF_INT,g.length=d,l=unmarshalCaptures(this,t.tree,l,g),this.textPredicates[u].every(f=>f(g))){const f=g[E],a=this.setProperties[u];a&&(f.setProperties=a);const b=this.assertedProperties[u];b&&(f.assertedProperties=b);const y=this.refutedProperties[u];y&&(f.refutedProperties=y),s.push(f)}}return C._free(m),s}predicatesForPattern(t){return this.predicates[t]}disableCapture(t){const e=lengthBytesUTF8(t),n=C._malloc(e+1);stringToUTF8(t,n,e+1),C._ts_query_disable_capture(this[0],n,e),C._free(n)}didExceedMatchLimit(){return this.exceededMatchLimit}}function getText(x,t,e){const n=e-t;let r=x.textCallback(t,null,e);for(t+=r.length;t<e;){const o=x.textCallback(t,null,e);if(!(o&&o.length>0))break;t+=o.length,r+=o}return t>e&&(r=r.slice(0,n)),r}function unmarshalCaptures(x,t,e,n){for(let r=0,o=n.length;r<o;r++){const c=getValue(e,"i32"),p=unmarshalNode(t,e+=SIZE_OF_INT);e+=SIZE_OF_NODE,n[r]={name:x.captureNames[c],node:p}}return e}function assertInternal(x){if(x!==INTERNAL)throw new Error("Illegal constructor")}function isPoint(x){return x&&typeof x.row=="number"&&typeof x.column=="number"}function marshalNode(x){let t=TRANSFER_BUFFER;setValue(t,x.id,"i32"),t+=SIZE_OF_INT,setValue(t,x.startIndex,"i32"),t+=SIZE_OF_INT,setValue(t,x.startPosition.row,"i32"),t+=SIZE_OF_INT,setValue(t,x.startPosition.column,"i32"),t+=SIZE_OF_INT,setValue(t,x[0],"i32")}function unmarshalNode(x,t=TRANSFER_BUFFER){const e=getValue(t,"i32");if(e===0)return null;const n=getValue(t+=SIZE_OF_INT,"i32"),r=getValue(t+=SIZE_OF_INT,"i32"),o=getValue(t+=SIZE_OF_INT,"i32"),c=getValue(t+=SIZE_OF_INT,"i32"),p=new Node(INTERNAL,x);return p.id=e,p.startIndex=n,p.startPosition={row:r,column:o},p[0]=c,p}function marshalTreeCursor(x,t=TRANSFER_BUFFER){setValue(t+0*SIZE_OF_INT,x[0],"i32"),setValue(t+1*SIZE_OF_INT,x[1],"i32"),setValue(t+2*SIZE_OF_INT,x[2],"i32"),setValue(t+3*SIZE_OF_INT,x[3],"i32")}function unmarshalTreeCursor(x){x[0]=getValue(TRANSFER_BUFFER+0*SIZE_OF_INT,"i32"),x[1]=getValue(TRANSFER_BUFFER+1*SIZE_OF_INT,"i32"),x[2]=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),x[3]=getValue(TRANSFER_BUFFER+3*SIZE_OF_INT,"i32")}function marshalPoint(x,t){setValue(x,t.row,"i32"),setValue(x+SIZE_OF_INT,t.column,"i32")}function unmarshalPoint(x){return{row:getValue(x,"i32")>>>0,column:getValue(x+SIZE_OF_INT,"i32")>>>0}}function marshalRange(x,t){marshalPoint(x,t.startPosition),marshalPoint(x+=SIZE_OF_POINT,t.endPosition),setValue(x+=SIZE_OF_POINT,t.startIndex,"i32"),setValue(x+=SIZE_OF_INT,t.endIndex,"i32"),x+=SIZE_OF_INT}function unmarshalRange(x){const t={};return t.startPosition=unmarshalPoint(x),x+=SIZE_OF_POINT,t.endPosition=unmarshalPoint(x),x+=SIZE_OF_POINT,t.startIndex=getValue(x,"i32")>>>0,x+=SIZE_OF_INT,t.endIndex=getValue(x,"i32")>>>0,t}function marshalEdit(x){let t=TRANSFER_BUFFER;marshalPoint(t,x.startPosition),t+=SIZE_OF_POINT,marshalPoint(t,x.oldEndPosition),t+=SIZE_OF_POINT,marshalPoint(t,x.newEndPosition),t+=SIZE_OF_POINT,setValue(t,x.startIndex,"i32"),t+=SIZE_OF_INT,setValue(t,x.oldEndIndex,"i32"),t+=SIZE_OF_INT,setValue(t,x.newEndIndex,"i32"),t+=SIZE_OF_INT}for(const x of Object.getOwnPropertyNames(ParserImpl.prototype))Object.defineProperty(Parser.prototype,x,{value:ParserImpl.prototype[x],enumerable:!1,writable:!1});Parser.Language=Language,Module.onRuntimeInitialized=()=>{ParserImpl.init(),resolveInitPromise()}}))}}return Parser}();module.exports=TreeSitter},52730:(x,t,e)=>{"use strict";var n=e(80705),r=e(14834),o=e(28498),c=e(79818),p=e(69336),v=c("Object.prototype.toString"),m=e(51913)(),_=typeof globalThis>"u"?e.g:globalThis,s=r(),g=c("String.prototype.slice"),l=Object.getPrototypeOf,h=c("Array.prototype.indexOf",!0)||function(a,b){for(var y=0;y<a.length;y+=1)if(a[y]===b)return y;return-1},u={__proto__:null};m&&p&&l?n(s,function(f){var a=new _[f];if(Symbol.toStringTag in a){var b=l(a),y=p(b,Symbol.toStringTag);if(!y){var A=l(b);y=p(A,Symbol.toStringTag)}u["$"+f]=o(y.get)}}):n(s,function(f){var a=new _[f],b=a.slice||a.set;b&&(u["$"+f]=o(b))});var d=function(a){var b=!1;return n(u,function(y,A){if(!b)try{"$"+y(a)===A&&(b=g(A,1))}catch{}}),b},E=function(a){var b=!1;return n(u,function(y,A){if(!b)try{y(a),b=g(A,1)}catch{}}),b};x.exports=function(a){if(!a||typeof a!="object")return!1;if(!m){var b=g(v(a),8,-1);return h(s,b)>-1?b:b!=="Object"?!1:E(a)}return p?d(a):null}},97442:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ZodError=t.quotelessJson=t.ZodIssueCode=void 0;const n=e(94705);t.ZodIssueCode=n.util.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);const r=c=>JSON.stringify(c,null,2).replace(/"([^"]+)":/g,"$1:");t.quotelessJson=r;class o extends Error{get errors(){return this.issues}constructor(p){super(),this.issues=[],this.addIssue=m=>{this.issues=[...this.issues,m]},this.addIssues=(m=[])=>{this.issues=[...this.issues,...m]};const v=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,v):this.__proto__=v,this.name="ZodError",this.issues=p}format(p){const v=p||function(s){return s.message},m={_errors:[]},_=s=>{for(const g of s.issues)if(g.code==="invalid_union")g.unionErrors.map(_);else if(g.code==="invalid_return_type")_(g.returnTypeError);else if(g.code==="invalid_arguments")_(g.argumentsError);else if(g.path.length===0)m._errors.push(v(g));else{let l=m,h=0;for(;h<g.path.length;){const u=g.path[h];h===g.path.length-1?(l[u]=l[u]||{_errors:[]},l[u]._errors.push(v(g))):l[u]=l[u]||{_errors:[]},l=l[u],h++}}};return _(this),m}static assert(p){if(!(p instanceof o))throw new Error(`Not a ZodError: ${p}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,n.util.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(p=v=>v.message){const v={},m=[];for(const _ of this.issues)_.path.length>0?(v[_.path[0]]=v[_.path[0]]||[],v[_.path[0]].push(p(_))):m.push(p(_));return{formErrors:m,fieldErrors:v}}get formErrors(){return this.flatten()}}t.ZodError=o,o.create=c=>new o(c)},30548:function(x,t,e){"use strict";var n=this&&this.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};Object.defineProperty(t,"__esModule",{value:!0}),t.getErrorMap=t.setErrorMap=t.defaultErrorMap=void 0;const r=n(e(28412));t.defaultErrorMap=r.default;let o=r.default;function c(v){o=v}t.setErrorMap=c;function p(){return o}t.getErrorMap=p},86340:function(x,t,e){"use strict";var n=this&&this.__createBinding||(Object.create?function(o,c,p,v){v===void 0&&(v=p);var m=Object.getOwnPropertyDescriptor(c,p);(!m||("get"in m?!c.__esModule:m.writable||m.configurable))&&(m={enumerable:!0,get:function(){return c[p]}}),Object.defineProperty(o,v,m)}:function(o,c,p,v){v===void 0&&(v=p),o[v]=c[p]}),r=this&&this.__exportStar||function(o,c){for(var p in o)p!=="default"&&!Object.prototype.hasOwnProperty.call(c,p)&&n(c,o,p)};Object.defineProperty(t,"__esModule",{value:!0}),r(e(30548),t),r(e(66258),t),r(e(29201),t),r(e(94705),t),r(e(75226),t),r(e(97442),t)},15759:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.errorUtil=void 0;var e;(function(n){n.errToObj=r=>typeof r=="string"?{message:r}:r||{},n.toString=r=>typeof r=="string"?r:r?.message})(e||(t.errorUtil=e={}))},66258:function(x,t,e){"use strict";var n=this&&this.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(t,"__esModule",{value:!0}),t.isAsync=t.isValid=t.isDirty=t.isAborted=t.OK=t.DIRTY=t.INVALID=t.ParseStatus=t.addIssueToContext=t.EMPTY_PATH=t.makeIssue=void 0;const r=e(30548),o=n(e(28412)),c=u=>{const{data:d,path:E,errorMaps:f,issueData:a}=u,b=[...E,...a.path||[]],y={...a,path:b};if(a.message!==void 0)return{...a,path:b,message:a.message};let A="";const S=f.filter(w=>!!w).slice().reverse();for(const w of S)A=w(y,{data:d,defaultError:A}).message;return{...a,path:b,message:A}};t.makeIssue=c,t.EMPTY_PATH=[];function p(u,d){const E=(0,r.getErrorMap)(),f=(0,t.makeIssue)({issueData:d,data:u.data,path:u.path,errorMaps:[u.common.contextualErrorMap,u.schemaErrorMap,E,E===o.default?void 0:o.default].filter(a=>!!a)});u.common.issues.push(f)}t.addIssueToContext=p;class v{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(d,E){const f=[];for(const a of E){if(a.status==="aborted")return t.INVALID;a.status==="dirty"&&d.dirty(),f.push(a.value)}return{status:d.value,value:f}}static async mergeObjectAsync(d,E){const f=[];for(const a of E){const b=await a.key,y=await a.value;f.push({key:b,value:y})}return v.mergeObjectSync(d,f)}static mergeObjectSync(d,E){const f={};for(const a of E){const{key:b,value:y}=a;if(b.status==="aborted"||y.status==="aborted")return t.INVALID;b.status==="dirty"&&d.dirty(),y.status==="dirty"&&d.dirty(),b.value!=="__proto__"&&(typeof y.value<"u"||a.alwaysSet)&&(f[b.value]=y.value)}return{status:d.value,value:f}}}t.ParseStatus=v,t.INVALID=Object.freeze({status:"aborted"});const m=u=>({status:"dirty",value:u});t.DIRTY=m;const _=u=>({status:"valid",value:u});t.OK=_;const s=u=>u.status==="aborted";t.isAborted=s;const g=u=>u.status==="dirty";t.isDirty=g;const l=u=>u.status==="valid";t.isValid=l;const h=u=>typeof Promise<"u"&&u instanceof Promise;t.isAsync=h},29201:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},94705:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getParsedType=t.ZodParsedType=t.objectUtil=t.util=void 0;var e;(function(o){o.assertEqual=m=>m;function c(m){}o.assertIs=c;function p(m){throw new Error}o.assertNever=p,o.arrayToEnum=m=>{const _={};for(const s of m)_[s]=s;return _},o.getValidEnumValues=m=>{const _=o.objectKeys(m).filter(g=>typeof m[m[g]]!="number"),s={};for(const g of _)s[g]=m[g];return o.objectValues(s)},o.objectValues=m=>o.objectKeys(m).map(function(_){return m[_]}),o.objectKeys=typeof Object.keys=="function"?m=>Object.keys(m):m=>{const _=[];for(const s in m)Object.prototype.hasOwnProperty.call(m,s)&&_.push(s);return _},o.find=(m,_)=>{for(const s of m)if(_(s))return s},o.isInteger=typeof Number.isInteger=="function"?m=>Number.isInteger(m):m=>typeof m=="number"&&isFinite(m)&&Math.floor(m)===m;function v(m,_=" | "){return m.map(s=>typeof s=="string"?`'${s}'`:s).join(_)}o.joinValues=v,o.jsonStringifyReplacer=(m,_)=>typeof _=="bigint"?_.toString():_})(e||(t.util=e={}));var n;(function(o){o.mergeShapes=(c,p)=>({...c,...p})})(n||(t.objectUtil=n={})),t.ZodParsedType=e.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]);const r=o=>{switch(typeof o){case"undefined":return t.ZodParsedType.undefined;case"string":return t.ZodParsedType.string;case"number":return isNaN(o)?t.ZodParsedType.nan:t.ZodParsedType.number;case"boolean":return t.ZodParsedType.boolean;case"function":return t.ZodParsedType.function;case"bigint":return t.ZodParsedType.bigint;case"symbol":return t.ZodParsedType.symbol;case"object":return Array.isArray(o)?t.ZodParsedType.array:o===null?t.ZodParsedType.null:o.then&&typeof o.then=="function"&&o.catch&&typeof o.catch=="function"?t.ZodParsedType.promise:typeof Map<"u"&&o instanceof Map?t.ZodParsedType.map:typeof Set<"u"&&o instanceof Set?t.ZodParsedType.set:typeof Date<"u"&&o instanceof Date?t.ZodParsedType.date:t.ZodParsedType.object;default:return t.ZodParsedType.unknown}};t.getParsedType=r},75995:function(x,t,e){"use strict";var n=this&&this.__createBinding||(Object.create?function(v,m,_,s){s===void 0&&(s=_);var g=Object.getOwnPropertyDescriptor(m,_);(!g||("get"in g?!m.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return m[_]}}),Object.defineProperty(v,s,g)}:function(v,m,_,s){s===void 0&&(s=_),v[s]=m[_]}),r=this&&this.__setModuleDefault||(Object.create?function(v,m){Object.defineProperty(v,"default",{enumerable:!0,value:m})}:function(v,m){v.default=m}),o=this&&this.__importStar||function(v){if(v&&v.__esModule)return v;var m={};if(v!=null)for(var _ in v)_!=="default"&&Object.prototype.hasOwnProperty.call(v,_)&&n(m,v,_);return r(m,v),m},c=this&&this.__exportStar||function(v,m){for(var _ in v)_!=="default"&&!Object.prototype.hasOwnProperty.call(m,_)&&n(m,v,_)};Object.defineProperty(t,"__esModule",{value:!0}),t.z=void 0;const p=o(e(86340));t.z=p,c(e(86340),t),t.default=p},28412:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(94705),r=e(97442),o=(c,p)=>{let v;switch(c.code){case r.ZodIssueCode.invalid_type:c.received===n.ZodParsedType.undefined?v="Required":v=`Expected ${c.expected}, received ${c.received}`;break;case r.ZodIssueCode.invalid_literal:v=`Invalid literal value, expected ${JSON.stringify(c.expected,n.util.jsonStringifyReplacer)}`;break;case r.ZodIssueCode.unrecognized_keys:v=`Unrecognized key(s) in object: ${n.util.joinValues(c.keys,", ")}`;break;case r.ZodIssueCode.invalid_union:v="Invalid input";break;case r.ZodIssueCode.invalid_union_discriminator:v=`Invalid discriminator value. Expected ${n.util.joinValues(c.options)}`;break;case r.ZodIssueCode.invalid_enum_value:v=`Invalid enum value. Expected ${n.util.joinValues(c.options)}, received '${c.received}'`;break;case r.ZodIssueCode.invalid_arguments:v="Invalid function arguments";break;case r.ZodIssueCode.invalid_return_type:v="Invalid function return type";break;case r.ZodIssueCode.invalid_date:v="Invalid date";break;case r.ZodIssueCode.invalid_string:typeof c.validation=="object"?"includes"in c.validation?(v=`Invalid input: must include "${c.validation.includes}"`,typeof c.validation.position=="number"&&(v=`${v} at one or more positions greater than or equal to ${c.validation.position}`)):"startsWith"in c.validation?v=`Invalid input: must start with "${c.validation.startsWith}"`:"endsWith"in c.validation?v=`Invalid input: must end with "${c.validation.endsWith}"`:n.util.assertNever(c.validation):c.validation!=="regex"?v=`Invalid ${c.validation}`:v="Invalid";break;case r.ZodIssueCode.too_small:c.type==="array"?v=`Array must contain ${c.exact?"exactly":c.inclusive?"at least":"more than"} ${c.minimum} element(s)`:c.type==="string"?v=`String must contain ${c.exact?"exactly":c.inclusive?"at least":"over"} ${c.minimum} character(s)`:c.type==="number"?v=`Number must be ${c.exact?"exactly equal to ":c.inclusive?"greater than or equal to ":"greater than "}${c.minimum}`:c.type==="date"?v=`Date must be ${c.exact?"exactly equal to ":c.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(c.minimum))}`:v="Invalid input";break;case r.ZodIssueCode.too_big:c.type==="array"?v=`Array must contain ${c.exact?"exactly":c.inclusive?"at most":"less than"} ${c.maximum} element(s)`:c.type==="string"?v=`String must contain ${c.exact?"exactly":c.inclusive?"at most":"under"} ${c.maximum} character(s)`:c.type==="number"?v=`Number must be ${c.exact?"exactly":c.inclusive?"less than or equal to":"less than"} ${c.maximum}`:c.type==="bigint"?v=`BigInt must be ${c.exact?"exactly":c.inclusive?"less than or equal to":"less than"} ${c.maximum}`:c.type==="date"?v=`Date must be ${c.exact?"exactly":c.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(c.maximum))}`:v="Invalid input";break;case r.ZodIssueCode.custom:v="Invalid input";break;case r.ZodIssueCode.invalid_intersection_types:v="Intersection results could not be merged";break;case r.ZodIssueCode.not_multiple_of:v=`Number must be a multiple of ${c.multipleOf}`;break;case r.ZodIssueCode.not_finite:v="Number must be finite";break;default:v=p.defaultError,n.util.assertNever(c)}return{message:v}};t.default=o},75226:function(x,t,e){"use strict";var n=this&&this.__classPrivateFieldGet||function(nn,tt,Kt,qt){if(Kt==="a"&&!qt)throw new TypeError("Private accessor was defined without a getter");if(typeof tt=="function"?nn!==tt||!qt:!tt.has(nn))throw new TypeError("Cannot read private member from an object whose class did not declare it");return Kt==="m"?qt:Kt==="a"?qt.call(nn):qt?qt.value:tt.get(nn)},r=this&&this.__classPrivateFieldSet||function(nn,tt,Kt,qt,In){if(qt==="m")throw new TypeError("Private method is not writable");if(qt==="a"&&!In)throw new TypeError("Private accessor was defined without a setter");if(typeof tt=="function"?nn!==tt||!In:!tt.has(nn))throw new TypeError("Cannot write private member to an object whose class did not declare it");return qt==="a"?In.call(nn,Kt):In?In.value=Kt:tt.set(nn,Kt),Kt},o,c;Object.defineProperty(t,"__esModule",{value:!0}),t.boolean=t.bigint=t.array=t.any=t.coerce=t.ZodFirstPartyTypeKind=t.late=t.ZodSchema=t.Schema=t.custom=t.ZodReadonly=t.ZodPipeline=t.ZodBranded=t.BRAND=t.ZodNaN=t.ZodCatch=t.ZodDefault=t.ZodNullable=t.ZodOptional=t.ZodTransformer=t.ZodEffects=t.ZodPromise=t.ZodNativeEnum=t.ZodEnum=t.ZodLiteral=t.ZodLazy=t.ZodFunction=t.ZodSet=t.ZodMap=t.ZodRecord=t.ZodTuple=t.ZodIntersection=t.ZodDiscriminatedUnion=t.ZodUnion=t.ZodObject=t.ZodArray=t.ZodVoid=t.ZodNever=t.ZodUnknown=t.ZodAny=t.ZodNull=t.ZodUndefined=t.ZodSymbol=t.ZodDate=t.ZodBoolean=t.ZodBigInt=t.ZodNumber=t.ZodString=t.datetimeRegex=t.ZodType=void 0,t.NEVER=t.void=t.unknown=t.union=t.undefined=t.tuple=t.transformer=t.symbol=t.string=t.strictObject=t.set=t.record=t.promise=t.preprocess=t.pipeline=t.ostring=t.optional=t.onumber=t.oboolean=t.object=t.number=t.nullable=t.null=t.never=t.nativeEnum=t.nan=t.map=t.literal=t.lazy=t.intersection=t.instanceof=t.function=t.enum=t.effect=t.discriminatedUnion=t.date=void 0;const p=e(30548),v=e(15759),m=e(66258),_=e(94705),s=e(97442);class g{constructor(tt,Kt,qt,In){this._cachedPath=[],this.parent=tt,this.data=Kt,this._path=qt,this._key=In}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const l=(nn,tt)=>{if((0,m.isValid)(tt))return{success:!0,data:tt.value};if(!nn.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const Kt=new s.ZodError(nn.common.issues);return this._error=Kt,this._error}}};function h(nn){if(!nn)return{};const{errorMap:tt,invalid_type_error:Kt,required_error:qt,description:In}=nn;if(tt&&(Kt||qt))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return tt?{errorMap:tt,description:In}:{errorMap:(Bi,Mi)=>{var Xi,bi;const{message:Zi}=nn;return Bi.code==="invalid_enum_value"?{message:Zi??Mi.defaultError}:typeof Mi.data>"u"?{message:(Xi=Zi??qt)!==null&&Xi!==void 0?Xi:Mi.defaultError}:Bi.code!=="invalid_type"?{message:Mi.defaultError}:{message:(bi=Zi??Kt)!==null&&bi!==void 0?bi:Mi.defaultError}},description:In}}class u{get description(){return this._def.description}_getType(tt){return(0,_.getParsedType)(tt.data)}_getOrReturnCtx(tt,Kt){return Kt||{common:tt.parent.common,data:tt.data,parsedType:(0,_.getParsedType)(tt.data),schemaErrorMap:this._def.errorMap,path:tt.path,parent:tt.parent}}_processInputParams(tt){return{status:new m.ParseStatus,ctx:{common:tt.parent.common,data:tt.data,parsedType:(0,_.getParsedType)(tt.data),schemaErrorMap:this._def.errorMap,path:tt.path,parent:tt.parent}}}_parseSync(tt){const Kt=this._parse(tt);if((0,m.isAsync)(Kt))throw new Error("Synchronous parse encountered promise.");return Kt}_parseAsync(tt){const Kt=this._parse(tt);return Promise.resolve(Kt)}parse(tt,Kt){const qt=this.safeParse(tt,Kt);if(qt.success)return qt.data;throw qt.error}safeParse(tt,Kt){var qt;const In={common:{issues:[],async:(qt=Kt?.async)!==null&&qt!==void 0?qt:!1,contextualErrorMap:Kt?.errorMap},path:Kt?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:tt,parsedType:(0,_.getParsedType)(tt)},Un=this._parseSync({data:tt,path:In.path,parent:In});return l(In,Un)}"~validate"(tt){var Kt,qt;const In={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:tt,parsedType:(0,_.getParsedType)(tt)};if(!this["~standard"].async)try{const Un=this._parseSync({data:tt,path:[],parent:In});return(0,m.isValid)(Un)?{value:Un.value}:{issues:In.common.issues}}catch(Un){!((qt=(Kt=Un?.message)===null||Kt===void 0?void 0:Kt.toLowerCase())===null||qt===void 0)&&qt.includes("encountered")&&(this["~standard"].async=!0),In.common={issues:[],async:!0}}return this._parseAsync({data:tt,path:[],parent:In}).then(Un=>(0,m.isValid)(Un)?{value:Un.value}:{issues:In.common.issues})}async parseAsync(tt,Kt){const qt=await this.safeParseAsync(tt,Kt);if(qt.success)return qt.data;throw qt.error}async safeParseAsync(tt,Kt){const qt={common:{issues:[],contextualErrorMap:Kt?.errorMap,async:!0},path:Kt?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:tt,parsedType:(0,_.getParsedType)(tt)},In=this._parse({data:tt,path:qt.path,parent:qt}),Un=await((0,m.isAsync)(In)?In:Promise.resolve(In));return l(qt,Un)}refine(tt,Kt){const qt=In=>typeof Kt=="string"||typeof Kt>"u"?{message:Kt}:typeof Kt=="function"?Kt(In):Kt;return this._refinement((In,Un)=>{const Bi=tt(In),Mi=()=>Un.addIssue({code:s.ZodIssueCode.custom,...qt(In)});return typeof Promise<"u"&&Bi instanceof Promise?Bi.then(Xi=>Xi?!0:(Mi(),!1)):Bi?!0:(Mi(),!1)})}refinement(tt,Kt){return this._refinement((qt,In)=>tt(qt)?!0:(In.addIssue(typeof Kt=="function"?Kt(qt,In):Kt),!1))}_refinement(tt){return new Ge({schema:this,typeName:yt.ZodEffects,effect:{type:"refinement",refinement:tt}})}superRefine(tt){return this._refinement(tt)}constructor(tt){this.spa=this.safeParseAsync,this._def=tt,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:Kt=>this["~validate"](Kt)}}optional(){return Ke.create(this,this._def)}nullable(){return ft.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return be.create(this)}promise(){return Fe.create(this,this._def)}or(tt){return ge.create([this,tt],this._def)}and(tt){return we.create(this,tt,this._def)}transform(tt){return new Ge({...h(this._def),schema:this,typeName:yt.ZodEffects,effect:{type:"transform",transform:tt}})}default(tt){const Kt=typeof tt=="function"?tt:()=>tt;return new ot({...h(this._def),innerType:this,defaultValue:Kt,typeName:yt.ZodDefault})}brand(){return new At({typeName:yt.ZodBranded,type:this,...h(this._def)})}catch(tt){const Kt=typeof tt=="function"?tt:()=>tt;return new Mt({...h(this._def),innerType:this,catchValue:Kt,typeName:yt.ZodCatch})}describe(tt){const Kt=this.constructor;return new Kt({...this._def,description:tt})}pipe(tt){return rt.create(this,tt)}readonly(){return st.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}t.ZodType=u,t.Schema=u,t.ZodSchema=u;const d=/^c[^\s-]{8,}$/i,E=/^[0-9a-z]+$/,f=/^[0-9A-HJKMNP-TV-Z]{26}$/i,a=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,b=/^[a-z0-9_-]{21}$/i,y=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,A=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,S=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,w="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let T;const D=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,I=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,O=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,M=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,R=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,P=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,k="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",F=new RegExp(`^${k}$`);function L(nn){let tt="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return nn.precision?tt=`${tt}\\.\\d{${nn.precision}}`:nn.precision==null&&(tt=`${tt}(\\.\\d+)?`),tt}function B(nn){return new RegExp(`^${L(nn)}$`)}function j(nn){let tt=`${k}T${L(nn)}`;const Kt=[];return Kt.push(nn.local?"Z?":"Z"),nn.offset&&Kt.push("([+-]\\d{2}:?\\d{2})"),tt=`${tt}(${Kt.join("|")})`,new RegExp(`^${tt}$`)}t.datetimeRegex=j;function W(nn,tt){return!!((tt==="v4"||!tt)&&D.test(nn)||(tt==="v6"||!tt)&&O.test(nn))}function U(nn,tt){if(!y.test(nn))return!1;try{const[Kt]=nn.split("."),qt=Kt.replace(/-/g,"+").replace(/_/g,"/").padEnd(Kt.length+(4-Kt.length%4)%4,"="),In=JSON.parse(atob(qt));return!(typeof In!="object"||In===null||!In.typ||!In.alg||tt&&In.alg!==tt)}catch{return!1}}function X(nn,tt){return!!((tt==="v4"||!tt)&&I.test(nn)||(tt==="v6"||!tt)&&M.test(nn))}class V extends u{_parse(tt){if(this._def.coerce&&(tt.data=String(tt.data)),this._getType(tt)!==_.ZodParsedType.string){const Un=this._getOrReturnCtx(tt);return(0,m.addIssueToContext)(Un,{code:s.ZodIssueCode.invalid_type,expected:_.ZodParsedType.string,received:Un.parsedType}),m.INVALID}const qt=new m.ParseStatus;let In;for(const Un of this._def.checks)if(Un.kind==="min")tt.data.length<Un.value&&(In=this._getOrReturnCtx(tt,In),(0,m.addIssueToContext)(In,{code:s.ZodIssueCode.too_small,minimum:Un.value,type:"string",inclusive:!0,exact:!1,message:Un.message}),qt.dirty());else if(Un.kind==="max")tt.data.length>Un.value&&(In=this._getOrReturnCtx(tt,In),(0,m.addIssueToContext)(In,{code:s.ZodIssueCode.too_big,maximum:Un.value,type:"string",inclusive:!0,exact:!1,message:Un.message}),qt.dirty());else if(Un.kind==="length"){const Bi=tt.data.length>Un.value,Mi=tt.data.length<Un.value;(Bi||Mi)&&(In=this._getOrReturnCtx(tt,In),Bi?(0,m.addIssueToContext)(In,{code:s.ZodIssueCode.too_big,maximum:Un.value,type:"string",inclusive:!0,exact:!0,message:Un.message}):Mi&&(0,m.addIssueToContext)(In,{code:s.ZodIssueCode.too_small,minimum:Un.value,type:"string",inclusive:!0,exact:!0,message:Un.message}),qt.dirty())}else if(Un.kind==="email")S.test(tt.data)||(In=this._getOrReturnCtx(tt,In),(0,m.addIssueToContext)(In,{validation:"email",code:s.ZodIssueCode.invalid_string,message:Un.message}),qt.dirty());else if(Un.kind==="emoji")T||(T=new RegExp(w,"u")),T.test(tt.data)||(In=this._getOrReturnCtx(tt,In),(0,m.addIssueToContext)(In,{validation:"emoji",code:s.ZodIssueCode.invalid_string,message:Un.message}),qt.dirty());else if(Un.kind==="uuid")a.test(tt.data)||(In=this._getOrReturnCtx(tt,In),(0,m.addIssueToContext)(In,{validation:"uuid",code:s.ZodIssueCode.invalid_string,message:Un.message}),qt.dirty());else if(Un.kind==="nanoid")b.test(tt.data)||(In=this._getOrReturnCtx(tt,In),(0,m.addIssueToContext)(In,{validation:"nanoid",code:s.ZodIssueCode.invalid_string,message:Un.message}),qt.dirty());else if(Un.kind==="cuid")d.test(tt.data)||(In=this._getOrReturnCtx(tt,In),(0,m.addIssueToContext)(In,{validation:"cuid",code:s.ZodIssueCode.invalid_string,message:Un.message}),qt.dirty());else if(Un.kind==="cuid2")E.test(tt.data)||(In=this._getOrReturnCtx(tt,In),(0,m.addIssueToContext)(In,{validation:"cuid2",code:s.ZodIssueCode.invalid_string,message:Un.message}),qt.dirty());else if(Un.kind==="ulid")f.test(tt.data)||(In=this._getOrReturnCtx(tt,In),(0,m.addIssueToContext)(In,{validation:"ulid",code:s.ZodIssueCode.invalid_string,message:Un.message}),qt.dirty());else if(Un.kind==="url")try{new URL(tt.data)}catch{In=this._getOrReturnCtx(tt,In),(0,m.addIssueToContext)(In,{validation:"url",code:s.ZodIssueCode.invalid_string,message:Un.message}),qt.dirty()}else Un.kind==="regex"?(Un.regex.lastIndex=0,Un.regex.test(tt.data)||(In=this._getOrReturnCtx(tt,In),(0,m.addIssueToContext)(In,{validation:"regex",code:s.ZodIssueCode.invalid_string,message:Un.message}),qt.dirty())):Un.kind==="trim"?tt.data=tt.data.trim():Un.kind==="includes"?tt.data.includes(Un.value,Un.position)||(In=this._getOrReturnCtx(tt,In),(0,m.addIssueToContext)(In,{code:s.ZodIssueCode.invalid_string,validation:{includes:Un.value,position:Un.position},message:Un.message}),qt.dirty()):Un.kind==="toLowerCase"?tt.data=tt.data.toLowerCase():Un.kind==="toUpperCase"?tt.data=tt.data.toUpperCase():Un.kind==="startsWith"?tt.data.startsWith(Un.value)||(In=this._getOrReturnCtx(tt,In),(0,m.addIssueToContext)(In,{code:s.ZodIssueCode.invalid_string,validation:{startsWith:Un.value},message:Un.message}),qt.dirty()):Un.kind==="endsWith"?tt.data.endsWith(Un.value)||(In=this._getOrReturnCtx(tt,In),(0,m.addIssueToContext)(In,{code:s.ZodIssueCode.invalid_string,validation:{endsWith:Un.value},message:Un.message}),qt.dirty()):Un.kind==="datetime"?j(Un).test(tt.data)||(In=this._getOrReturnCtx(tt,In),(0,m.addIssueToContext)(In,{code:s.ZodIssueCode.invalid_string,validation:"datetime",message:Un.message}),qt.dirty()):Un.kind==="date"?F.test(tt.data)||(In=this._getOrReturnCtx(tt,In),(0,m.addIssueToContext)(In,{code:s.ZodIssueCode.invalid_string,validation:"date",message:Un.message}),qt.dirty()):Un.kind==="time"?B(Un).test(tt.data)||(In=this._getOrReturnCtx(tt,In),(0,m.addIssueToContext)(In,{code:s.ZodIssueCode.invalid_string,validation:"time",message:Un.message}),qt.dirty()):Un.kind==="duration"?A.test(tt.data)||(In=this._getOrReturnCtx(tt,In),(0,m.addIssueToContext)(In,{validation:"duration",code:s.ZodIssueCode.invalid_string,message:Un.message}),qt.dirty()):Un.kind==="ip"?W(tt.data,Un.version)||(In=this._getOrReturnCtx(tt,In),(0,m.addIssueToContext)(In,{validation:"ip",code:s.ZodIssueCode.invalid_string,message:Un.message}),qt.dirty()):Un.kind==="jwt"?U(tt.data,Un.alg)||(In=this._getOrReturnCtx(tt,In),(0,m.addIssueToContext)(In,{validation:"jwt",code:s.ZodIssueCode.invalid_string,message:Un.message}),qt.dirty()):Un.kind==="cidr"?X(tt.data,Un.version)||(In=this._getOrReturnCtx(tt,In),(0,m.addIssueToContext)(In,{validation:"cidr",code:s.ZodIssueCode.invalid_string,message:Un.message}),qt.dirty()):Un.kind==="base64"?R.test(tt.data)||(In=this._getOrReturnCtx(tt,In),(0,m.addIssueToContext)(In,{validation:"base64",code:s.ZodIssueCode.invalid_string,message:Un.message}),qt.dirty()):Un.kind==="base64url"?P.test(tt.data)||(In=this._getOrReturnCtx(tt,In),(0,m.addIssueToContext)(In,{validation:"base64url",code:s.ZodIssueCode.invalid_string,message:Un.message}),qt.dirty()):_.util.assertNever(Un);return{status:qt.value,value:tt.data}}_regex(tt,Kt,qt){return this.refinement(In=>tt.test(In),{validation:Kt,code:s.ZodIssueCode.invalid_string,...v.errorUtil.errToObj(qt)})}_addCheck(tt){return new V({...this._def,checks:[...this._def.checks,tt]})}email(tt){return this._addCheck({kind:"email",...v.errorUtil.errToObj(tt)})}url(tt){return this._addCheck({kind:"url",...v.errorUtil.errToObj(tt)})}emoji(tt){return this._addCheck({kind:"emoji",...v.errorUtil.errToObj(tt)})}uuid(tt){return this._addCheck({kind:"uuid",...v.errorUtil.errToObj(tt)})}nanoid(tt){return this._addCheck({kind:"nanoid",...v.errorUtil.errToObj(tt)})}cuid(tt){return this._addCheck({kind:"cuid",...v.errorUtil.errToObj(tt)})}cuid2(tt){return this._addCheck({kind:"cuid2",...v.errorUtil.errToObj(tt)})}ulid(tt){return this._addCheck({kind:"ulid",...v.errorUtil.errToObj(tt)})}base64(tt){return this._addCheck({kind:"base64",...v.errorUtil.errToObj(tt)})}base64url(tt){return this._addCheck({kind:"base64url",...v.errorUtil.errToObj(tt)})}jwt(tt){return this._addCheck({kind:"jwt",...v.errorUtil.errToObj(tt)})}ip(tt){return this._addCheck({kind:"ip",...v.errorUtil.errToObj(tt)})}cidr(tt){return this._addCheck({kind:"cidr",...v.errorUtil.errToObj(tt)})}datetime(tt){var Kt,qt;return typeof tt=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:tt}):this._addCheck({kind:"datetime",precision:typeof tt?.precision>"u"?null:tt?.precision,offset:(Kt=tt?.offset)!==null&&Kt!==void 0?Kt:!1,local:(qt=tt?.local)!==null&&qt!==void 0?qt:!1,...v.errorUtil.errToObj(tt?.message)})}date(tt){return this._addCheck({kind:"date",message:tt})}time(tt){return typeof tt=="string"?this._addCheck({kind:"time",precision:null,message:tt}):this._addCheck({kind:"time",precision:typeof tt?.precision>"u"?null:tt?.precision,...v.errorUtil.errToObj(tt?.message)})}duration(tt){return this._addCheck({kind:"duration",...v.errorUtil.errToObj(tt)})}regex(tt,Kt){return this._addCheck({kind:"regex",regex:tt,...v.errorUtil.errToObj(Kt)})}includes(tt,Kt){return this._addCheck({kind:"includes",value:tt,position:Kt?.position,...v.errorUtil.errToObj(Kt?.message)})}startsWith(tt,Kt){return this._addCheck({kind:"startsWith",value:tt,...v.errorUtil.errToObj(Kt)})}endsWith(tt,Kt){return this._addCheck({kind:"endsWith",value:tt,...v.errorUtil.errToObj(Kt)})}min(tt,Kt){return this._addCheck({kind:"min",value:tt,...v.errorUtil.errToObj(Kt)})}max(tt,Kt){return this._addCheck({kind:"max",value:tt,...v.errorUtil.errToObj(Kt)})}length(tt,Kt){return this._addCheck({kind:"length",value:tt,...v.errorUtil.errToObj(Kt)})}nonempty(tt){return this.min(1,v.errorUtil.errToObj(tt))}trim(){return new V({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new V({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new V({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(tt=>tt.kind==="datetime")}get isDate(){return!!this._def.checks.find(tt=>tt.kind==="date")}get isTime(){return!!this._def.checks.find(tt=>tt.kind==="time")}get isDuration(){return!!this._def.checks.find(tt=>tt.kind==="duration")}get isEmail(){return!!this._def.checks.find(tt=>tt.kind==="email")}get isURL(){return!!this._def.checks.find(tt=>tt.kind==="url")}get isEmoji(){return!!this._def.checks.find(tt=>tt.kind==="emoji")}get isUUID(){return!!this._def.checks.find(tt=>tt.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(tt=>tt.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(tt=>tt.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(tt=>tt.kind==="cuid2")}get isULID(){return!!this._def.checks.find(tt=>tt.kind==="ulid")}get isIP(){return!!this._def.checks.find(tt=>tt.kind==="ip")}get isCIDR(){return!!this._def.checks.find(tt=>tt.kind==="cidr")}get isBase64(){return!!this._def.checks.find(tt=>tt.kind==="base64")}get isBase64url(){return!!this._def.checks.find(tt=>tt.kind==="base64url")}get minLength(){let tt=null;for(const Kt of this._def.checks)Kt.kind==="min"&&(tt===null||Kt.value>tt)&&(tt=Kt.value);return tt}get maxLength(){let tt=null;for(const Kt of this._def.checks)Kt.kind==="max"&&(tt===null||Kt.value<tt)&&(tt=Kt.value);return tt}}t.ZodString=V,V.create=nn=>{var tt;return new V({checks:[],typeName:yt.ZodString,coerce:(tt=nn?.coerce)!==null&&tt!==void 0?tt:!1,...h(nn)})};function $(nn,tt){const Kt=(nn.toString().split(".")[1]||"").length,qt=(tt.toString().split(".")[1]||"").length,In=Kt>qt?Kt:qt,Un=parseInt(nn.toFixed(In).replace(".","")),Bi=parseInt(tt.toFixed(In).replace(".",""));return Un%Bi/Math.pow(10,In)}class Y extends u{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(tt){if(this._def.coerce&&(tt.data=Number(tt.data)),this._getType(tt)!==_.ZodParsedType.number){const Un=this._getOrReturnCtx(tt);return(0,m.addIssueToContext)(Un,{code:s.ZodIssueCode.invalid_type,expected:_.ZodParsedType.number,received:Un.parsedType}),m.INVALID}let qt;const In=new m.ParseStatus;for(const Un of this._def.checks)Un.kind==="int"?_.util.isInteger(tt.data)||(qt=this._getOrReturnCtx(tt,qt),(0,m.addIssueToContext)(qt,{code:s.ZodIssueCode.invalid_type,expected:"integer",received:"float",message:Un.message}),In.dirty()):Un.kind==="min"?(Un.inclusive?tt.data<Un.value:tt.data<=Un.value)&&(qt=this._getOrReturnCtx(tt,qt),(0,m.addIssueToContext)(qt,{code:s.ZodIssueCode.too_small,minimum:Un.value,type:"number",inclusive:Un.inclusive,exact:!1,message:Un.message}),In.dirty()):Un.kind==="max"?(Un.inclusive?tt.data>Un.value:tt.data>=Un.value)&&(qt=this._getOrReturnCtx(tt,qt),(0,m.addIssueToContext)(qt,{code:s.ZodIssueCode.too_big,maximum:Un.value,type:"number",inclusive:Un.inclusive,exact:!1,message:Un.message}),In.dirty()):Un.kind==="multipleOf"?$(tt.data,Un.value)!==0&&(qt=this._getOrReturnCtx(tt,qt),(0,m.addIssueToContext)(qt,{code:s.ZodIssueCode.not_multiple_of,multipleOf:Un.value,message:Un.message}),In.dirty()):Un.kind==="finite"?Number.isFinite(tt.data)||(qt=this._getOrReturnCtx(tt,qt),(0,m.addIssueToContext)(qt,{code:s.ZodIssueCode.not_finite,message:Un.message}),In.dirty()):_.util.assertNever(Un);return{status:In.value,value:tt.data}}gte(tt,Kt){return this.setLimit("min",tt,!0,v.errorUtil.toString(Kt))}gt(tt,Kt){return this.setLimit("min",tt,!1,v.errorUtil.toString(Kt))}lte(tt,Kt){return this.setLimit("max",tt,!0,v.errorUtil.toString(Kt))}lt(tt,Kt){return this.setLimit("max",tt,!1,v.errorUtil.toString(Kt))}setLimit(tt,Kt,qt,In){return new Y({...this._def,checks:[...this._def.checks,{kind:tt,value:Kt,inclusive:qt,message:v.errorUtil.toString(In)}]})}_addCheck(tt){return new Y({...this._def,checks:[...this._def.checks,tt]})}int(tt){return this._addCheck({kind:"int",message:v.errorUtil.toString(tt)})}positive(tt){return this._addCheck({kind:"min",value:0,inclusive:!1,message:v.errorUtil.toString(tt)})}negative(tt){return this._addCheck({kind:"max",value:0,inclusive:!1,message:v.errorUtil.toString(tt)})}nonpositive(tt){return this._addCheck({kind:"max",value:0,inclusive:!0,message:v.errorUtil.toString(tt)})}nonnegative(tt){return this._addCheck({kind:"min",value:0,inclusive:!0,message:v.errorUtil.toString(tt)})}multipleOf(tt,Kt){return this._addCheck({kind:"multipleOf",value:tt,message:v.errorUtil.toString(Kt)})}finite(tt){return this._addCheck({kind:"finite",message:v.errorUtil.toString(tt)})}safe(tt){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:v.errorUtil.toString(tt)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:v.errorUtil.toString(tt)})}get minValue(){let tt=null;for(const Kt of this._def.checks)Kt.kind==="min"&&(tt===null||Kt.value>tt)&&(tt=Kt.value);return tt}get maxValue(){let tt=null;for(const Kt of this._def.checks)Kt.kind==="max"&&(tt===null||Kt.value<tt)&&(tt=Kt.value);return tt}get isInt(){return!!this._def.checks.find(tt=>tt.kind==="int"||tt.kind==="multipleOf"&&_.util.isInteger(tt.value))}get isFinite(){let tt=null,Kt=null;for(const qt of this._def.checks){if(qt.kind==="finite"||qt.kind==="int"||qt.kind==="multipleOf")return!0;qt.kind==="min"?(Kt===null||qt.value>Kt)&&(Kt=qt.value):qt.kind==="max"&&(tt===null||qt.value<tt)&&(tt=qt.value)}return Number.isFinite(Kt)&&Number.isFinite(tt)}}t.ZodNumber=Y,Y.create=nn=>new Y({checks:[],typeName:yt.ZodNumber,coerce:nn?.coerce||!1,...h(nn)});class G extends u{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(tt){if(this._def.coerce)try{tt.data=BigInt(tt.data)}catch{return this._getInvalidInput(tt)}if(this._getType(tt)!==_.ZodParsedType.bigint)return this._getInvalidInput(tt);let qt;const In=new m.ParseStatus;for(const Un of this._def.checks)Un.kind==="min"?(Un.inclusive?tt.data<Un.value:tt.data<=Un.value)&&(qt=this._getOrReturnCtx(tt,qt),(0,m.addIssueToContext)(qt,{code:s.ZodIssueCode.too_small,type:"bigint",minimum:Un.value,inclusive:Un.inclusive,message:Un.message}),In.dirty()):Un.kind==="max"?(Un.inclusive?tt.data>Un.value:tt.data>=Un.value)&&(qt=this._getOrReturnCtx(tt,qt),(0,m.addIssueToContext)(qt,{code:s.ZodIssueCode.too_big,type:"bigint",maximum:Un.value,inclusive:Un.inclusive,message:Un.message}),In.dirty()):Un.kind==="multipleOf"?tt.data%Un.value!==BigInt(0)&&(qt=this._getOrReturnCtx(tt,qt),(0,m.addIssueToContext)(qt,{code:s.ZodIssueCode.not_multiple_of,multipleOf:Un.value,message:Un.message}),In.dirty()):_.util.assertNever(Un);return{status:In.value,value:tt.data}}_getInvalidInput(tt){const Kt=this._getOrReturnCtx(tt);return(0,m.addIssueToContext)(Kt,{code:s.ZodIssueCode.invalid_type,expected:_.ZodParsedType.bigint,received:Kt.parsedType}),m.INVALID}gte(tt,Kt){return this.setLimit("min",tt,!0,v.errorUtil.toString(Kt))}gt(tt,Kt){return this.setLimit("min",tt,!1,v.errorUtil.toString(Kt))}lte(tt,Kt){return this.setLimit("max",tt,!0,v.errorUtil.toString(Kt))}lt(tt,Kt){return this.setLimit("max",tt,!1,v.errorUtil.toString(Kt))}setLimit(tt,Kt,qt,In){return new G({...this._def,checks:[...this._def.checks,{kind:tt,value:Kt,inclusive:qt,message:v.errorUtil.toString(In)}]})}_addCheck(tt){return new G({...this._def,checks:[...this._def.checks,tt]})}positive(tt){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:v.errorUtil.toString(tt)})}negative(tt){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:v.errorUtil.toString(tt)})}nonpositive(tt){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:v.errorUtil.toString(tt)})}nonnegative(tt){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:v.errorUtil.toString(tt)})}multipleOf(tt,Kt){return this._addCheck({kind:"multipleOf",value:tt,message:v.errorUtil.toString(Kt)})}get minValue(){let tt=null;for(const Kt of this._def.checks)Kt.kind==="min"&&(tt===null||Kt.value>tt)&&(tt=Kt.value);return tt}get maxValue(){let tt=null;for(const Kt of this._def.checks)Kt.kind==="max"&&(tt===null||Kt.value<tt)&&(tt=Kt.value);return tt}}t.ZodBigInt=G,G.create=nn=>{var tt;return new G({checks:[],typeName:yt.ZodBigInt,coerce:(tt=nn?.coerce)!==null&&tt!==void 0?tt:!1,...h(nn)})};class H extends u{_parse(tt){if(this._def.coerce&&(tt.data=!!tt.data),this._getType(tt)!==_.ZodParsedType.boolean){const qt=this._getOrReturnCtx(tt);return(0,m.addIssueToContext)(qt,{code:s.ZodIssueCode.invalid_type,expected:_.ZodParsedType.boolean,received:qt.parsedType}),m.INVALID}return(0,m.OK)(tt.data)}}t.ZodBoolean=H,H.create=nn=>new H({typeName:yt.ZodBoolean,coerce:nn?.coerce||!1,...h(nn)});class K extends u{_parse(tt){if(this._def.coerce&&(tt.data=new Date(tt.data)),this._getType(tt)!==_.ZodParsedType.date){const Un=this._getOrReturnCtx(tt);return(0,m.addIssueToContext)(Un,{code:s.ZodIssueCode.invalid_type,expected:_.ZodParsedType.date,received:Un.parsedType}),m.INVALID}if(isNaN(tt.data.getTime())){const Un=this._getOrReturnCtx(tt);return(0,m.addIssueToContext)(Un,{code:s.ZodIssueCode.invalid_date}),m.INVALID}const qt=new m.ParseStatus;let In;for(const Un of this._def.checks)Un.kind==="min"?tt.data.getTime()<Un.value&&(In=this._getOrReturnCtx(tt,In),(0,m.addIssueToContext)(In,{code:s.ZodIssueCode.too_small,message:Un.message,inclusive:!0,exact:!1,minimum:Un.value,type:"date"}),qt.dirty()):Un.kind==="max"?tt.data.getTime()>Un.value&&(In=this._getOrReturnCtx(tt,In),(0,m.addIssueToContext)(In,{code:s.ZodIssueCode.too_big,message:Un.message,inclusive:!0,exact:!1,maximum:Un.value,type:"date"}),qt.dirty()):_.util.assertNever(Un);return{status:qt.value,value:new Date(tt.data.getTime())}}_addCheck(tt){return new K({...this._def,checks:[...this._def.checks,tt]})}min(tt,Kt){return this._addCheck({kind:"min",value:tt.getTime(),message:v.errorUtil.toString(Kt)})}max(tt,Kt){return this._addCheck({kind:"max",value:tt.getTime(),message:v.errorUtil.toString(Kt)})}get minDate(){let tt=null;for(const Kt of this._def.checks)Kt.kind==="min"&&(tt===null||Kt.value>tt)&&(tt=Kt.value);return tt!=null?new Date(tt):null}get maxDate(){let tt=null;for(const Kt of this._def.checks)Kt.kind==="max"&&(tt===null||Kt.value<tt)&&(tt=Kt.value);return tt!=null?new Date(tt):null}}t.ZodDate=K,K.create=nn=>new K({checks:[],coerce:nn?.coerce||!1,typeName:yt.ZodDate,...h(nn)});class Z extends u{_parse(tt){if(this._getType(tt)!==_.ZodParsedType.symbol){const qt=this._getOrReturnCtx(tt);return(0,m.addIssueToContext)(qt,{code:s.ZodIssueCode.invalid_type,expected:_.ZodParsedType.symbol,received:qt.parsedType}),m.INVALID}return(0,m.OK)(tt.data)}}t.ZodSymbol=Z,Z.create=nn=>new Z({typeName:yt.ZodSymbol,...h(nn)});class Q extends u{_parse(tt){if(this._getType(tt)!==_.ZodParsedType.undefined){const qt=this._getOrReturnCtx(tt);return(0,m.addIssueToContext)(qt,{code:s.ZodIssueCode.invalid_type,expected:_.ZodParsedType.undefined,received:qt.parsedType}),m.INVALID}return(0,m.OK)(tt.data)}}t.ZodUndefined=Q,Q.create=nn=>new Q({typeName:yt.ZodUndefined,...h(nn)});class oe extends u{_parse(tt){if(this._getType(tt)!==_.ZodParsedType.null){const qt=this._getOrReturnCtx(tt);return(0,m.addIssueToContext)(qt,{code:s.ZodIssueCode.invalid_type,expected:_.ZodParsedType.null,received:qt.parsedType}),m.INVALID}return(0,m.OK)(tt.data)}}t.ZodNull=oe,oe.create=nn=>new oe({typeName:yt.ZodNull,...h(nn)});class te extends u{constructor(){super(...arguments),this._any=!0}_parse(tt){return(0,m.OK)(tt.data)}}t.ZodAny=te,te.create=nn=>new te({typeName:yt.ZodAny,...h(nn)});class ue extends u{constructor(){super(...arguments),this._unknown=!0}_parse(tt){return(0,m.OK)(tt.data)}}t.ZodUnknown=ue,ue.create=nn=>new ue({typeName:yt.ZodUnknown,...h(nn)});class _e extends u{_parse(tt){const Kt=this._getOrReturnCtx(tt);return(0,m.addIssueToContext)(Kt,{code:s.ZodIssueCode.invalid_type,expected:_.ZodParsedType.never,received:Kt.parsedType}),m.INVALID}}t.ZodNever=_e,_e.create=nn=>new _e({typeName:yt.ZodNever,...h(nn)});class q extends u{_parse(tt){if(this._getType(tt)!==_.ZodParsedType.undefined){const qt=this._getOrReturnCtx(tt);return(0,m.addIssueToContext)(qt,{code:s.ZodIssueCode.invalid_type,expected:_.ZodParsedType.void,received:qt.parsedType}),m.INVALID}return(0,m.OK)(tt.data)}}t.ZodVoid=q,q.create=nn=>new q({typeName:yt.ZodVoid,...h(nn)});class be extends u{_parse(tt){const{ctx:Kt,status:qt}=this._processInputParams(tt),In=this._def;if(Kt.parsedType!==_.ZodParsedType.array)return(0,m.addIssueToContext)(Kt,{code:s.ZodIssueCode.invalid_type,expected:_.ZodParsedType.array,received:Kt.parsedType}),m.INVALID;if(In.exactLength!==null){const Bi=Kt.data.length>In.exactLength.value,Mi=Kt.data.length<In.exactLength.value;(Bi||Mi)&&((0,m.addIssueToContext)(Kt,{code:Bi?s.ZodIssueCode.too_big:s.ZodIssueCode.too_small,minimum:Mi?In.exactLength.value:void 0,maximum:Bi?In.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:In.exactLength.message}),qt.dirty())}if(In.minLength!==null&&Kt.data.length<In.minLength.value&&((0,m.addIssueToContext)(Kt,{code:s.ZodIssueCode.too_small,minimum:In.minLength.value,type:"array",inclusive:!0,exact:!1,message:In.minLength.message}),qt.dirty()),In.maxLength!==null&&Kt.data.length>In.maxLength.value&&((0,m.addIssueToContext)(Kt,{code:s.ZodIssueCode.too_big,maximum:In.maxLength.value,type:"array",inclusive:!0,exact:!1,message:In.maxLength.message}),qt.dirty()),Kt.common.async)return Promise.all([...Kt.data].map((Bi,Mi)=>In.type._parseAsync(new g(Kt,Bi,Kt.path,Mi)))).then(Bi=>m.ParseStatus.mergeArray(qt,Bi));const Un=[...Kt.data].map((Bi,Mi)=>In.type._parseSync(new g(Kt,Bi,Kt.path,Mi)));return m.ParseStatus.mergeArray(qt,Un)}get element(){return this._def.type}min(tt,Kt){return new be({...this._def,minLength:{value:tt,message:v.errorUtil.toString(Kt)}})}max(tt,Kt){return new be({...this._def,maxLength:{value:tt,message:v.errorUtil.toString(Kt)}})}length(tt,Kt){return new be({...this._def,exactLength:{value:tt,message:v.errorUtil.toString(Kt)}})}nonempty(tt){return this.min(1,tt)}}t.ZodArray=be,be.create=(nn,tt)=>new be({type:nn,minLength:null,maxLength:null,exactLength:null,typeName:yt.ZodArray,...h(tt)});function pe(nn){if(nn instanceof ie){const tt={};for(const Kt in nn.shape){const qt=nn.shape[Kt];tt[Kt]=Ke.create(pe(qt))}return new ie({...nn._def,shape:()=>tt})}else return nn instanceof be?new be({...nn._def,type:pe(nn.element)}):nn instanceof Ke?Ke.create(pe(nn.unwrap())):nn instanceof ft?ft.create(pe(nn.unwrap())):nn instanceof Ee?Ee.create(nn.items.map(tt=>pe(tt))):nn}class ie extends u{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const tt=this._def.shape(),Kt=_.util.objectKeys(tt);return this._cached={shape:tt,keys:Kt}}_parse(tt){if(this._getType(tt)!==_.ZodParsedType.object){const bi=this._getOrReturnCtx(tt);return(0,m.addIssueToContext)(bi,{code:s.ZodIssueCode.invalid_type,expected:_.ZodParsedType.object,received:bi.parsedType}),m.INVALID}const{status:qt,ctx:In}=this._processInputParams(tt),{shape:Un,keys:Bi}=this._getCached(),Mi=[];if(!(this._def.catchall instanceof _e&&this._def.unknownKeys==="strip"))for(const bi in In.data)Bi.includes(bi)||Mi.push(bi);const Xi=[];for(const bi of Bi){const Zi=Un[bi],to=In.data[bi];Xi.push({key:{status:"valid",value:bi},value:Zi._parse(new g(In,to,In.path,bi)),alwaysSet:bi in In.data})}if(this._def.catchall instanceof _e){const bi=this._def.unknownKeys;if(bi==="passthrough")for(const Zi of Mi)Xi.push({key:{status:"valid",value:Zi},value:{status:"valid",value:In.data[Zi]}});else if(bi==="strict")Mi.length>0&&((0,m.addIssueToContext)(In,{code:s.ZodIssueCode.unrecognized_keys,keys:Mi}),qt.dirty());else if(bi!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const bi=this._def.catchall;for(const Zi of Mi){const to=In.data[Zi];Xi.push({key:{status:"valid",value:Zi},value:bi._parse(new g(In,to,In.path,Zi)),alwaysSet:Zi in In.data})}}return In.common.async?Promise.resolve().then(async()=>{const bi=[];for(const Zi of Xi){const to=await Zi.key,uo=await Zi.value;bi.push({key:to,value:uo,alwaysSet:Zi.alwaysSet})}return bi}).then(bi=>m.ParseStatus.mergeObjectSync(qt,bi)):m.ParseStatus.mergeObjectSync(qt,Xi)}get shape(){return this._def.shape()}strict(tt){return v.errorUtil.errToObj,new ie({...this._def,unknownKeys:"strict",...tt!==void 0?{errorMap:(Kt,qt)=>{var In,Un,Bi,Mi;const Xi=(Bi=(Un=(In=this._def).errorMap)===null||Un===void 0?void 0:Un.call(In,Kt,qt).message)!==null&&Bi!==void 0?Bi:qt.defaultError;return Kt.code==="unrecognized_keys"?{message:(Mi=v.errorUtil.errToObj(tt).message)!==null&&Mi!==void 0?Mi:Xi}:{message:Xi}}}:{}})}strip(){return new ie({...this._def,unknownKeys:"strip"})}passthrough(){return new ie({...this._def,unknownKeys:"passthrough"})}extend(tt){return new ie({...this._def,shape:()=>({...this._def.shape(),...tt})})}merge(tt){return new ie({unknownKeys:tt._def.unknownKeys,catchall:tt._def.catchall,shape:()=>({...this._def.shape(),...tt._def.shape()}),typeName:yt.ZodObject})}setKey(tt,Kt){return this.augment({[tt]:Kt})}catchall(tt){return new ie({...this._def,catchall:tt})}pick(tt){const Kt={};return _.util.objectKeys(tt).forEach(qt=>{tt[qt]&&this.shape[qt]&&(Kt[qt]=this.shape[qt])}),new ie({...this._def,shape:()=>Kt})}omit(tt){const Kt={};return _.util.objectKeys(this.shape).forEach(qt=>{tt[qt]||(Kt[qt]=this.shape[qt])}),new ie({...this._def,shape:()=>Kt})}deepPartial(){return pe(this)}partial(tt){const Kt={};return _.util.objectKeys(this.shape).forEach(qt=>{const In=this.shape[qt];tt&&!tt[qt]?Kt[qt]=In:Kt[qt]=In.optional()}),new ie({...this._def,shape:()=>Kt})}required(tt){const Kt={};return _.util.objectKeys(this.shape).forEach(qt=>{if(tt&&!tt[qt])Kt[qt]=this.shape[qt];else{let Un=this.shape[qt];for(;Un instanceof Ke;)Un=Un._def.innerType;Kt[qt]=Un}}),new ie({...this._def,shape:()=>Kt})}keyof(){return he(_.util.objectKeys(this.shape))}}t.ZodObject=ie,ie.create=(nn,tt)=>new ie({shape:()=>nn,unknownKeys:"strip",catchall:_e.create(),typeName:yt.ZodObject,...h(tt)}),ie.strictCreate=(nn,tt)=>new ie({shape:()=>nn,unknownKeys:"strict",catchall:_e.create(),typeName:yt.ZodObject,...h(tt)}),ie.lazycreate=(nn,tt)=>new ie({shape:nn,unknownKeys:"strip",catchall:_e.create(),typeName:yt.ZodObject,...h(tt)});class ge extends u{_parse(tt){const{ctx:Kt}=this._processInputParams(tt),qt=this._def.options;function In(Un){for(const Mi of Un)if(Mi.result.status==="valid")return Mi.result;for(const Mi of Un)if(Mi.result.status==="dirty")return Kt.common.issues.push(...Mi.ctx.common.issues),Mi.result;const Bi=Un.map(Mi=>new s.ZodError(Mi.ctx.common.issues));return(0,m.addIssueToContext)(Kt,{code:s.ZodIssueCode.invalid_union,unionErrors:Bi}),m.INVALID}if(Kt.common.async)return Promise.all(qt.map(async Un=>{const Bi={...Kt,common:{...Kt.common,issues:[]},parent:null};return{result:await Un._parseAsync({data:Kt.data,path:Kt.path,parent:Bi}),ctx:Bi}})).then(In);{let Un;const Bi=[];for(const Xi of qt){const bi={...Kt,common:{...Kt.common,issues:[]},parent:null},Zi=Xi._parseSync({data:Kt.data,path:Kt.path,parent:bi});if(Zi.status==="valid")return Zi;Zi.status==="dirty"&&!Un&&(Un={result:Zi,ctx:bi}),bi.common.issues.length&&Bi.push(bi.common.issues)}if(Un)return Kt.common.issues.push(...Un.ctx.common.issues),Un.result;const Mi=Bi.map(Xi=>new s.ZodError(Xi));return(0,m.addIssueToContext)(Kt,{code:s.ZodIssueCode.invalid_union,unionErrors:Mi}),m.INVALID}}get options(){return this._def.options}}t.ZodUnion=ge,ge.create=(nn,tt)=>new ge({options:nn,typeName:yt.ZodUnion,...h(tt)});const Re=nn=>nn instanceof me?Re(nn.schema):nn instanceof Ge?Re(nn.innerType()):nn instanceof re?[nn.value]:nn instanceof Oe?nn.options:nn instanceof Se?_.util.objectValues(nn.enum):nn instanceof ot?Re(nn._def.innerType):nn instanceof Q?[void 0]:nn instanceof oe?[null]:nn instanceof Ke?[void 0,...Re(nn.unwrap())]:nn instanceof ft?[null,...Re(nn.unwrap())]:nn instanceof At||nn instanceof st?Re(nn.unwrap()):nn instanceof Mt?Re(nn._def.innerType):[];class Pe extends u{_parse(tt){const{ctx:Kt}=this._processInputParams(tt);if(Kt.parsedType!==_.ZodParsedType.object)return(0,m.addIssueToContext)(Kt,{code:s.ZodIssueCode.invalid_type,expected:_.ZodParsedType.object,received:Kt.parsedType}),m.INVALID;const qt=this.discriminator,In=Kt.data[qt],Un=this.optionsMap.get(In);return Un?Kt.common.async?Un._parseAsync({data:Kt.data,path:Kt.path,parent:Kt}):Un._parseSync({data:Kt.data,path:Kt.path,parent:Kt}):((0,m.addIssueToContext)(Kt,{code:s.ZodIssueCode.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[qt]}),m.INVALID)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(tt,Kt,qt){const In=new Map;for(const Un of Kt){const Bi=Re(Un.shape[tt]);if(!Bi.length)throw new Error(`A discriminator value for key \`${tt}\` could not be extracted from all schema options`);for(const Mi of Bi){if(In.has(Mi))throw new Error(`Discriminator property ${String(tt)} has duplicate value ${String(Mi)}`);In.set(Mi,Un)}}return new Pe({typeName:yt.ZodDiscriminatedUnion,discriminator:tt,options:Kt,optionsMap:In,...h(qt)})}}t.ZodDiscriminatedUnion=Pe;function Ae(nn,tt){const Kt=(0,_.getParsedType)(nn),qt=(0,_.getParsedType)(tt);if(nn===tt)return{valid:!0,data:nn};if(Kt===_.ZodParsedType.object&&qt===_.ZodParsedType.object){const In=_.util.objectKeys(tt),Un=_.util.objectKeys(nn).filter(Mi=>In.indexOf(Mi)!==-1),Bi={...nn,...tt};for(const Mi of Un){const Xi=Ae(nn[Mi],tt[Mi]);if(!Xi.valid)return{valid:!1};Bi[Mi]=Xi.data}return{valid:!0,data:Bi}}else if(Kt===_.ZodParsedType.array&&qt===_.ZodParsedType.array){if(nn.length!==tt.length)return{valid:!1};const In=[];for(let Un=0;Un<nn.length;Un++){const Bi=nn[Un],Mi=tt[Un],Xi=Ae(Bi,Mi);if(!Xi.valid)return{valid:!1};In.push(Xi.data)}return{valid:!0,data:In}}else return Kt===_.ZodParsedType.date&&qt===_.ZodParsedType.date&&+nn==+tt?{valid:!0,data:nn}:{valid:!1}}class we extends u{_parse(tt){const{status:Kt,ctx:qt}=this._processInputParams(tt),In=(Un,Bi)=>{if((0,m.isAborted)(Un)||(0,m.isAborted)(Bi))return m.INVALID;const Mi=Ae(Un.value,Bi.value);return Mi.valid?(((0,m.isDirty)(Un)||(0,m.isDirty)(Bi))&&Kt.dirty(),{status:Kt.value,value:Mi.data}):((0,m.addIssueToContext)(qt,{code:s.ZodIssueCode.invalid_intersection_types}),m.INVALID)};return qt.common.async?Promise.all([this._def.left._parseAsync({data:qt.data,path:qt.path,parent:qt}),this._def.right._parseAsync({data:qt.data,path:qt.path,parent:qt})]).then(([Un,Bi])=>In(Un,Bi)):In(this._def.left._parseSync({data:qt.data,path:qt.path,parent:qt}),this._def.right._parseSync({data:qt.data,path:qt.path,parent:qt}))}}t.ZodIntersection=we,we.create=(nn,tt,Kt)=>new we({left:nn,right:tt,typeName:yt.ZodIntersection,...h(Kt)});class Ee extends u{_parse(tt){const{status:Kt,ctx:qt}=this._processInputParams(tt);if(qt.parsedType!==_.ZodParsedType.array)return(0,m.addIssueToContext)(qt,{code:s.ZodIssueCode.invalid_type,expected:_.ZodParsedType.array,received:qt.parsedType}),m.INVALID;if(qt.data.length<this._def.items.length)return(0,m.addIssueToContext)(qt,{code:s.ZodIssueCode.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),m.INVALID;!this._def.rest&&qt.data.length>this._def.items.length&&((0,m.addIssueToContext)(qt,{code:s.ZodIssueCode.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Kt.dirty());const Un=[...qt.data].map((Bi,Mi)=>{const Xi=this._def.items[Mi]||this._def.rest;return Xi?Xi._parse(new g(qt,Bi,qt.path,Mi)):null}).filter(Bi=>!!Bi);return qt.common.async?Promise.all(Un).then(Bi=>m.ParseStatus.mergeArray(Kt,Bi)):m.ParseStatus.mergeArray(Kt,Un)}get items(){return this._def.items}rest(tt){return new Ee({...this._def,rest:tt})}}t.ZodTuple=Ee,Ee.create=(nn,tt)=>{if(!Array.isArray(nn))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Ee({items:nn,typeName:yt.ZodTuple,rest:null,...h(tt)})};class fe extends u{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(tt){const{status:Kt,ctx:qt}=this._processInputParams(tt);if(qt.parsedType!==_.ZodParsedType.object)return(0,m.addIssueToContext)(qt,{code:s.ZodIssueCode.invalid_type,expected:_.ZodParsedType.object,received:qt.parsedType}),m.INVALID;const In=[],Un=this._def.keyType,Bi=this._def.valueType;for(const Mi in qt.data)In.push({key:Un._parse(new g(qt,Mi,qt.path,Mi)),value:Bi._parse(new g(qt,qt.data[Mi],qt.path,Mi)),alwaysSet:Mi in qt.data});return qt.common.async?m.ParseStatus.mergeObjectAsync(Kt,In):m.ParseStatus.mergeObjectSync(Kt,In)}get element(){return this._def.valueType}static create(tt,Kt,qt){return Kt instanceof u?new fe({keyType:tt,valueType:Kt,typeName:yt.ZodRecord,...h(qt)}):new fe({keyType:V.create(),valueType:tt,typeName:yt.ZodRecord,...h(Kt)})}}t.ZodRecord=fe;class xe extends u{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(tt){const{status:Kt,ctx:qt}=this._processInputParams(tt);if(qt.parsedType!==_.ZodParsedType.map)return(0,m.addIssueToContext)(qt,{code:s.ZodIssueCode.invalid_type,expected:_.ZodParsedType.map,received:qt.parsedType}),m.INVALID;const In=this._def.keyType,Un=this._def.valueType,Bi=[...qt.data.entries()].map(([Mi,Xi],bi)=>({key:In._parse(new g(qt,Mi,qt.path,[bi,"key"])),value:Un._parse(new g(qt,Xi,qt.path,[bi,"value"]))}));if(qt.common.async){const Mi=new Map;return Promise.resolve().then(async()=>{for(const Xi of Bi){const bi=await Xi.key,Zi=await Xi.value;if(bi.status==="aborted"||Zi.status==="aborted")return m.INVALID;(bi.status==="dirty"||Zi.status==="dirty")&&Kt.dirty(),Mi.set(bi.value,Zi.value)}return{status:Kt.value,value:Mi}})}else{const Mi=new Map;for(const Xi of Bi){const bi=Xi.key,Zi=Xi.value;if(bi.status==="aborted"||Zi.status==="aborted")return m.INVALID;(bi.status==="dirty"||Zi.status==="dirty")&&Kt.dirty(),Mi.set(bi.value,Zi.value)}return{status:Kt.value,value:Mi}}}}t.ZodMap=xe,xe.create=(nn,tt,Kt)=>new xe({valueType:tt,keyType:nn,typeName:yt.ZodMap,...h(Kt)});class Ie extends u{_parse(tt){const{status:Kt,ctx:qt}=this._processInputParams(tt);if(qt.parsedType!==_.ZodParsedType.set)return(0,m.addIssueToContext)(qt,{code:s.ZodIssueCode.invalid_type,expected:_.ZodParsedType.set,received:qt.parsedType}),m.INVALID;const In=this._def;In.minSize!==null&&qt.data.size<In.minSize.value&&((0,m.addIssueToContext)(qt,{code:s.ZodIssueCode.too_small,minimum:In.minSize.value,type:"set",inclusive:!0,exact:!1,message:In.minSize.message}),Kt.dirty()),In.maxSize!==null&&qt.data.size>In.maxSize.value&&((0,m.addIssueToContext)(qt,{code:s.ZodIssueCode.too_big,maximum:In.maxSize.value,type:"set",inclusive:!0,exact:!1,message:In.maxSize.message}),Kt.dirty());const Un=this._def.valueType;function Bi(Xi){const bi=new Set;for(const Zi of Xi){if(Zi.status==="aborted")return m.INVALID;Zi.status==="dirty"&&Kt.dirty(),bi.add(Zi.value)}return{status:Kt.value,value:bi}}const Mi=[...qt.data.values()].map((Xi,bi)=>Un._parse(new g(qt,Xi,qt.path,bi)));return qt.common.async?Promise.all(Mi).then(Xi=>Bi(Xi)):Bi(Mi)}min(tt,Kt){return new Ie({...this._def,minSize:{value:tt,message:v.errorUtil.toString(Kt)}})}max(tt,Kt){return new Ie({...this._def,maxSize:{value:tt,message:v.errorUtil.toString(Kt)}})}size(tt,Kt){return this.min(tt,Kt).max(tt,Kt)}nonempty(tt){return this.min(1,tt)}}t.ZodSet=Ie,Ie.create=(nn,tt)=>new Ie({valueType:nn,minSize:null,maxSize:null,typeName:yt.ZodSet,...h(tt)});class Be extends u{constructor(){super(...arguments),this.validate=this.implement}_parse(tt){const{ctx:Kt}=this._processInputParams(tt);if(Kt.parsedType!==_.ZodParsedType.function)return(0,m.addIssueToContext)(Kt,{code:s.ZodIssueCode.invalid_type,expected:_.ZodParsedType.function,received:Kt.parsedType}),m.INVALID;function qt(Mi,Xi){return(0,m.makeIssue)({data:Mi,path:Kt.path,errorMaps:[Kt.common.contextualErrorMap,Kt.schemaErrorMap,(0,p.getErrorMap)(),p.defaultErrorMap].filter(bi=>!!bi),issueData:{code:s.ZodIssueCode.invalid_arguments,argumentsError:Xi}})}function In(Mi,Xi){return(0,m.makeIssue)({data:Mi,path:Kt.path,errorMaps:[Kt.common.contextualErrorMap,Kt.schemaErrorMap,(0,p.getErrorMap)(),p.defaultErrorMap].filter(bi=>!!bi),issueData:{code:s.ZodIssueCode.invalid_return_type,returnTypeError:Xi}})}const Un={errorMap:Kt.common.contextualErrorMap},Bi=Kt.data;if(this._def.returns instanceof Fe){const Mi=this;return(0,m.OK)(async function(...Xi){const bi=new s.ZodError([]),Zi=await Mi._def.args.parseAsync(Xi,Un).catch(Ao=>{throw bi.addIssue(qt(Xi,Ao)),bi}),to=await Reflect.apply(Bi,this,Zi);return await Mi._def.returns._def.type.parseAsync(to,Un).catch(Ao=>{throw bi.addIssue(In(to,Ao)),bi})})}else{const Mi=this;return(0,m.OK)(function(...Xi){const bi=Mi._def.args.safeParse(Xi,Un);if(!bi.success)throw new s.ZodError([qt(Xi,bi.error)]);const Zi=Reflect.apply(Bi,this,bi.data),to=Mi._def.returns.safeParse(Zi,Un);if(!to.success)throw new s.ZodError([In(Zi,to.error)]);return to.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...tt){return new Be({...this._def,args:Ee.create(tt).rest(ue.create())})}returns(tt){return new Be({...this._def,returns:tt})}implement(tt){return this.parse(tt)}strictImplement(tt){return this.parse(tt)}static create(tt,Kt,qt){return new Be({args:tt||Ee.create([]).rest(ue.create()),returns:Kt||ue.create(),typeName:yt.ZodFunction,...h(qt)})}}t.ZodFunction=Be;class me extends u{get schema(){return this._def.getter()}_parse(tt){const{ctx:Kt}=this._processInputParams(tt);return this._def.getter()._parse({data:Kt.data,path:Kt.path,parent:Kt})}}t.ZodLazy=me,me.create=(nn,tt)=>new me({getter:nn,typeName:yt.ZodLazy,...h(tt)});class re extends u{_parse(tt){if(tt.data!==this._def.value){const Kt=this._getOrReturnCtx(tt);return(0,m.addIssueToContext)(Kt,{received:Kt.data,code:s.ZodIssueCode.invalid_literal,expected:this._def.value}),m.INVALID}return{status:"valid",value:tt.data}}get value(){return this._def.value}}t.ZodLiteral=re,re.create=(nn,tt)=>new re({value:nn,typeName:yt.ZodLiteral,...h(tt)});function he(nn,tt){return new Oe({values:nn,typeName:yt.ZodEnum,...h(tt)})}class Oe extends u{constructor(){super(...arguments),o.set(this,void 0)}_parse(tt){if(typeof tt.data!="string"){const Kt=this._getOrReturnCtx(tt),qt=this._def.values;return(0,m.addIssueToContext)(Kt,{expected:_.util.joinValues(qt),received:Kt.parsedType,code:s.ZodIssueCode.invalid_type}),m.INVALID}if(n(this,o,"f")||r(this,o,new Set(this._def.values),"f"),!n(this,o,"f").has(tt.data)){const Kt=this._getOrReturnCtx(tt),qt=this._def.values;return(0,m.addIssueToContext)(Kt,{received:Kt.data,code:s.ZodIssueCode.invalid_enum_value,options:qt}),m.INVALID}return(0,m.OK)(tt.data)}get options(){return this._def.values}get enum(){const tt={};for(const Kt of this._def.values)tt[Kt]=Kt;return tt}get Values(){const tt={};for(const Kt of this._def.values)tt[Kt]=Kt;return tt}get Enum(){const tt={};for(const Kt of this._def.values)tt[Kt]=Kt;return tt}extract(tt,Kt=this._def){return Oe.create(tt,{...this._def,...Kt})}exclude(tt,Kt=this._def){return Oe.create(this.options.filter(qt=>!tt.includes(qt)),{...this._def,...Kt})}}t.ZodEnum=Oe,o=new WeakMap,Oe.create=he;class Se extends u{constructor(){super(...arguments),c.set(this,void 0)}_parse(tt){const Kt=_.util.getValidEnumValues(this._def.values),qt=this._getOrReturnCtx(tt);if(qt.parsedType!==_.ZodParsedType.string&&qt.parsedType!==_.ZodParsedType.number){const In=_.util.objectValues(Kt);return(0,m.addIssueToContext)(qt,{expected:_.util.joinValues(In),received:qt.parsedType,code:s.ZodIssueCode.invalid_type}),m.INVALID}if(n(this,c,"f")||r(this,c,new Set(_.util.getValidEnumValues(this._def.values)),"f"),!n(this,c,"f").has(tt.data)){const In=_.util.objectValues(Kt);return(0,m.addIssueToContext)(qt,{received:qt.data,code:s.ZodIssueCode.invalid_enum_value,options:In}),m.INVALID}return(0,m.OK)(tt.data)}get enum(){return this._def.values}}t.ZodNativeEnum=Se,c=new WeakMap,Se.create=(nn,tt)=>new Se({values:nn,typeName:yt.ZodNativeEnum,...h(tt)});class Fe extends u{unwrap(){return this._def.type}_parse(tt){const{ctx:Kt}=this._processInputParams(tt);if(Kt.parsedType!==_.ZodParsedType.promise&&Kt.common.async===!1)return(0,m.addIssueToContext)(Kt,{code:s.ZodIssueCode.invalid_type,expected:_.ZodParsedType.promise,received:Kt.parsedType}),m.INVALID;const qt=Kt.parsedType===_.ZodParsedType.promise?Kt.data:Promise.resolve(Kt.data);return(0,m.OK)(qt.then(In=>this._def.type.parseAsync(In,{path:Kt.path,errorMap:Kt.common.contextualErrorMap})))}}t.ZodPromise=Fe,Fe.create=(nn,tt)=>new Fe({type:nn,typeName:yt.ZodPromise,...h(tt)});class Ge extends u{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===yt.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(tt){const{status:Kt,ctx:qt}=this._processInputParams(tt),In=this._def.effect||null,Un={addIssue:Bi=>{(0,m.addIssueToContext)(qt,Bi),Bi.fatal?Kt.abort():Kt.dirty()},get path(){return qt.path}};if(Un.addIssue=Un.addIssue.bind(Un),In.type==="preprocess"){const Bi=In.transform(qt.data,Un);if(qt.common.async)return Promise.resolve(Bi).then(async Mi=>{if(Kt.value==="aborted")return m.INVALID;const Xi=await this._def.schema._parseAsync({data:Mi,path:qt.path,parent:qt});return Xi.status==="aborted"?m.INVALID:Xi.status==="dirty"||Kt.value==="dirty"?(0,m.DIRTY)(Xi.value):Xi});{if(Kt.value==="aborted")return m.INVALID;const Mi=this._def.schema._parseSync({data:Bi,path:qt.path,parent:qt});return Mi.status==="aborted"?m.INVALID:Mi.status==="dirty"||Kt.value==="dirty"?(0,m.DIRTY)(Mi.value):Mi}}if(In.type==="refinement"){const Bi=Mi=>{const Xi=In.refinement(Mi,Un);if(qt.common.async)return Promise.resolve(Xi);if(Xi instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return Mi};if(qt.common.async===!1){const Mi=this._def.schema._parseSync({data:qt.data,path:qt.path,parent:qt});return Mi.status==="aborted"?m.INVALID:(Mi.status==="dirty"&&Kt.dirty(),Bi(Mi.value),{status:Kt.value,value:Mi.value})}else return this._def.schema._parseAsync({data:qt.data,path:qt.path,parent:qt}).then(Mi=>Mi.status==="aborted"?m.INVALID:(Mi.status==="dirty"&&Kt.dirty(),Bi(Mi.value).then(()=>({status:Kt.value,value:Mi.value}))))}if(In.type==="transform")if(qt.common.async===!1){const Bi=this._def.schema._parseSync({data:qt.data,path:qt.path,parent:qt});if(!(0,m.isValid)(Bi))return Bi;const Mi=In.transform(Bi.value,Un);if(Mi instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:Kt.value,value:Mi}}else return this._def.schema._parseAsync({data:qt.data,path:qt.path,parent:qt}).then(Bi=>(0,m.isValid)(Bi)?Promise.resolve(In.transform(Bi.value,Un)).then(Mi=>({status:Kt.value,value:Mi})):Bi);_.util.assertNever(In)}}t.ZodEffects=Ge,t.ZodTransformer=Ge,Ge.create=(nn,tt,Kt)=>new Ge({schema:nn,typeName:yt.ZodEffects,effect:tt,...h(Kt)}),Ge.createWithPreprocess=(nn,tt,Kt)=>new Ge({schema:tt,effect:{type:"preprocess",transform:nn},typeName:yt.ZodEffects,...h(Kt)});class Ke extends u{_parse(tt){return this._getType(tt)===_.ZodParsedType.undefined?(0,m.OK)(void 0):this._def.innerType._parse(tt)}unwrap(){return this._def.innerType}}t.ZodOptional=Ke,Ke.create=(nn,tt)=>new Ke({innerType:nn,typeName:yt.ZodOptional,...h(tt)});class ft extends u{_parse(tt){return this._getType(tt)===_.ZodParsedType.null?(0,m.OK)(null):this._def.innerType._parse(tt)}unwrap(){return this._def.innerType}}t.ZodNullable=ft,ft.create=(nn,tt)=>new ft({innerType:nn,typeName:yt.ZodNullable,...h(tt)});class ot extends u{_parse(tt){const{ctx:Kt}=this._processInputParams(tt);let qt=Kt.data;return Kt.parsedType===_.ZodParsedType.undefined&&(qt=this._def.defaultValue()),this._def.innerType._parse({data:qt,path:Kt.path,parent:Kt})}removeDefault(){return this._def.innerType}}t.ZodDefault=ot,ot.create=(nn,tt)=>new ot({innerType:nn,typeName:yt.ZodDefault,defaultValue:typeof tt.default=="function"?tt.default:()=>tt.default,...h(tt)});class Mt extends u{_parse(tt){const{ctx:Kt}=this._processInputParams(tt),qt={...Kt,common:{...Kt.common,issues:[]}},In=this._def.innerType._parse({data:qt.data,path:qt.path,parent:{...qt}});return(0,m.isAsync)(In)?In.then(Un=>({status:"valid",value:Un.status==="valid"?Un.value:this._def.catchValue({get error(){return new s.ZodError(qt.common.issues)},input:qt.data})})):{status:"valid",value:In.status==="valid"?In.value:this._def.catchValue({get error(){return new s.ZodError(qt.common.issues)},input:qt.data})}}removeCatch(){return this._def.innerType}}t.ZodCatch=Mt,Mt.create=(nn,tt)=>new Mt({innerType:nn,typeName:yt.ZodCatch,catchValue:typeof tt.catch=="function"?tt.catch:()=>tt.catch,...h(tt)});class lt extends u{_parse(tt){if(this._getType(tt)!==_.ZodParsedType.nan){const qt=this._getOrReturnCtx(tt);return(0,m.addIssueToContext)(qt,{code:s.ZodIssueCode.invalid_type,expected:_.ZodParsedType.nan,received:qt.parsedType}),m.INVALID}return{status:"valid",value:tt.data}}}t.ZodNaN=lt,lt.create=nn=>new lt({typeName:yt.ZodNaN,...h(nn)}),t.BRAND=Symbol("zod_brand");class At extends u{_parse(tt){const{ctx:Kt}=this._processInputParams(tt),qt=Kt.data;return this._def.type._parse({data:qt,path:Kt.path,parent:Kt})}unwrap(){return this._def.type}}t.ZodBranded=At;class rt extends u{_parse(tt){const{status:Kt,ctx:qt}=this._processInputParams(tt);if(qt.common.async)return(async()=>{const Un=await this._def.in._parseAsync({data:qt.data,path:qt.path,parent:qt});return Un.status==="aborted"?m.INVALID:Un.status==="dirty"?(Kt.dirty(),(0,m.DIRTY)(Un.value)):this._def.out._parseAsync({data:Un.value,path:qt.path,parent:qt})})();{const In=this._def.in._parseSync({data:qt.data,path:qt.path,parent:qt});return In.status==="aborted"?m.INVALID:In.status==="dirty"?(Kt.dirty(),{status:"dirty",value:In.value}):this._def.out._parseSync({data:In.value,path:qt.path,parent:qt})}}static create(tt,Kt){return new rt({in:tt,out:Kt,typeName:yt.ZodPipeline})}}t.ZodPipeline=rt;class st extends u{_parse(tt){const Kt=this._def.innerType._parse(tt),qt=In=>((0,m.isValid)(In)&&(In.value=Object.freeze(In.value)),In);return(0,m.isAsync)(Kt)?Kt.then(In=>qt(In)):qt(Kt)}unwrap(){return this._def.innerType}}t.ZodReadonly=st,st.create=(nn,tt)=>new st({innerType:nn,typeName:yt.ZodReadonly,...h(tt)});function dt(nn,tt={},Kt){return nn?te.create().superRefine((qt,In)=>{var Un,Bi;if(!nn(qt)){const Mi=typeof tt=="function"?tt(qt):typeof tt=="string"?{message:tt}:tt,Xi=(Bi=(Un=Mi.fatal)!==null&&Un!==void 0?Un:Kt)!==null&&Bi!==void 0?Bi:!0,bi=typeof Mi=="string"?{message:Mi}:Mi;In.addIssue({code:"custom",...bi,fatal:Xi})}}):te.create()}t.custom=dt,t.late={object:ie.lazycreate};var yt;(function(nn){nn.ZodString="ZodString",nn.ZodNumber="ZodNumber",nn.ZodNaN="ZodNaN",nn.ZodBigInt="ZodBigInt",nn.ZodBoolean="ZodBoolean",nn.ZodDate="ZodDate",nn.ZodSymbol="ZodSymbol",nn.ZodUndefined="ZodUndefined",nn.ZodNull="ZodNull",nn.ZodAny="ZodAny",nn.ZodUnknown="ZodUnknown",nn.ZodNever="ZodNever",nn.ZodVoid="ZodVoid",nn.ZodArray="ZodArray",nn.ZodObject="ZodObject",nn.ZodUnion="ZodUnion",nn.ZodDiscriminatedUnion="ZodDiscriminatedUnion",nn.ZodIntersection="ZodIntersection",nn.ZodTuple="ZodTuple",nn.ZodRecord="ZodRecord",nn.ZodMap="ZodMap",nn.ZodSet="ZodSet",nn.ZodFunction="ZodFunction",nn.ZodLazy="ZodLazy",nn.ZodLiteral="ZodLiteral",nn.ZodEnum="ZodEnum",nn.ZodEffects="ZodEffects",nn.ZodNativeEnum="ZodNativeEnum",nn.ZodOptional="ZodOptional",nn.ZodNullable="ZodNullable",nn.ZodDefault="ZodDefault",nn.ZodCatch="ZodCatch",nn.ZodPromise="ZodPromise",nn.ZodBranded="ZodBranded",nn.ZodPipeline="ZodPipeline",nn.ZodReadonly="ZodReadonly"})(yt||(t.ZodFirstPartyTypeKind=yt={}));class jt{constructor(...tt){}}const _n=(nn,tt={message:`Input not instance of ${nn.name}`})=>dt(Kt=>Kt instanceof nn,tt);t.instanceof=_n;const Fn=V.create;t.string=Fn;const pi=Y.create;t.number=pi;const kn=lt.create;t.nan=kn;const cn=G.create;t.bigint=cn;const zn=H.create;t.boolean=zn;const mn=K.create;t.date=mn;const Ft=Z.create;t.symbol=Ft;const ct=Q.create;t.undefined=ct;const We=oe.create;t.null=We;const ze=te.create;t.any=ze;const Je=ue.create;t.unknown=Je;const Jt=_e.create;t.never=Jt;const An=q.create;t.void=An;const oi=be.create;t.array=oi;const si=ie.create;t.object=si;const xi=ie.strictCreate;t.strictObject=xi;const Ti=ge.create;t.union=Ti;const Vi=Pe.create;t.discriminatedUnion=Vi;const jn=we.create;t.intersection=jn;const wn=Ee.create;t.tuple=wn;const ni=fe.create;t.record=ni;const Ii=xe.create;t.map=Ii;const Ki=Ie.create;t.set=Ki;const Di=Be.create;t.function=Di;const un=me.create;t.lazy=un;const Yn=re.create;t.literal=Yn;const bn=Oe.create;t.enum=bn;const nt=Se.create;t.nativeEnum=nt;const Rt=Fe.create;t.promise=Rt;const bt=Ge.create;t.effect=bt,t.transformer=bt;const Ct=Ke.create;t.optional=Ct;const hn=ft.create;t.nullable=hn;const on=Ge.createWithPreprocess;t.preprocess=on;const Yt=rt.create;t.pipeline=Yt;const On=()=>Fn().optional();t.ostring=On;const Zn=()=>pi().optional();t.onumber=Zn;const ci=()=>zn().optional();t.oboolean=ci,t.coerce={string:nn=>V.create({...nn,coerce:!0}),number:nn=>Y.create({...nn,coerce:!0}),boolean:nn=>H.create({...nn,coerce:!0}),bigint:nn=>G.create({...nn,coerce:!0}),date:nn=>K.create({...nn,coerce:!0})},t.NEVER=m.INVALID},79682:(x,t,e)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ChromeDevtoolsContribution=void 0;const r=e(85608),o=e(76003),c=e(41869),p=e(65265),v=e(98295),m=e(27654);let _=n=class extends c.Disposable{constructor(){super(...arguments),this.lantencyHandler=g=>{const{command:l}=g.detail;l===p.DevtoolsLantencyCommand.Start?this.interval||this.startRTTInterval():l===p.DevtoolsLantencyCommand.Stop&&this.interval&&(clearInterval(this.interval),this.interval=void 0)}}initialize(){var g;this.appConfig.devtools&&(window.addEventListener(p.EDevtoolsEvent.Latency,this.lantencyHandler),this.addDispose(c.Disposable.create(()=>{window.removeEventListener(p.EDevtoolsEvent.Latency,this.lantencyHandler),this.interval&&(clearInterval(this.interval),this.interval=void 0)})),!((g=window.__OPENSUMI_DEVTOOLS_GLOBAL_HOOK__)===null||g===void 0)&&g.captureRPC&&(this.interval||this.startRTTInterval()))}startRTTInterval(){this.interval=setInterval(async()=>{const g=Date.now();await this.rttService.measure();const l=Date.now()-g;window.__OPENSUMI_DEVTOOLS_GLOBAL_HOOK__.captureRPC&&(window.__OPENSUMI_DEVTOOLS_GLOBAL_HOOK__.latency=l)},n.INTERVAL)}};t.ChromeDevtoolsContribution=_,_.INTERVAL=1e3,r.__decorate([(0,o.Autowired)(c.AppConfig),r.__metadata("design:type",Object)],_.prototype,"appConfig",void 0),r.__decorate([(0,o.Autowired)(m.ConnectionRTTBrowserServiceToken),r.__metadata("design:type",m.ConnectionRTTBrowserService)],_.prototype,"rttService",void 0),t.ChromeDevtoolsContribution=_=n=r.__decorate([(0,v.Domain)(c.ClientAppContribution)],_)},72915:(x,t,e)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionRTTContribution=void 0;const r=e(85608),o=e(76003),c=e(26542),p=e(92323),v=e(98295),m=e(27654),_={id:"connection.start.rtt",label:"%connection.start.rtt%",category:"%command.category.developerTools%"},s={id:"connection.stop.rtt",label:"%connection.stop.rtt%",category:"%command.category.developerTools%"},g={alignment:c.StatusBarAlignment.LEFT,priority:1/0-1};let l=n=class{registerCommands(u){u.registerCommand(_,{execute:()=>{this.interval||this.startRTTInterval()}}),u.registerCommand(s,{execute:()=>{this.interval&&(clearInterval(this.interval),this.statusBar&&(this.statusBar.dispose(),this.statusBar=void 0))}})}startRTTInterval(){this.interval=setInterval(async()=>{const u=Date.now();await this.rttService.measure();const E={text:`${Date.now()-u}ms`};if(this.statusBar)this.statusBar.update({...E,...g});else{const f=this.statusBarService.addElement("connection-rtt",{...E,...g});this.statusBar=f}},n.INTERVAL)}};t.ConnectionRTTContribution=l,l.INTERVAL=1e3,r.__decorate([(0,o.Autowired)(c.IStatusBarService),r.__metadata("design:type",Object)],l.prototype,"statusBarService",void 0),r.__decorate([(0,o.Autowired)(m.ConnectionRTTBrowserServiceToken),r.__metadata("design:type",m.ConnectionRTTBrowserService)],l.prototype,"rttService",void 0),t.ConnectionRTTContribution=l=n=r.__decorate([(0,v.Domain)(p.CommandContribution)],l)},27654:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionRTTBrowserService=t.ConnectionRTTBrowserServiceToken=void 0;const n=e(85608),r=e(76003),o=e(69452);t.ConnectionRTTBrowserServiceToken=Symbol("ConnectionRTTBrowserService");let c=class{async measure(){await this.connectionBackService.$measure()}};t.ConnectionRTTBrowserService=c,n.__decorate([(0,r.Autowired)(o.ConnectionBackServicePath),n.__metadata("design:type",Object)],c.prototype,"connectionBackService",void 0),t.ConnectionRTTBrowserService=c=n.__decorate([(0,r.Injectable)()],c)},17631:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileDropContribution=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(43718),p=e(69452);let v=class extends c.WithEventBus{onDidDropFile(_){this.dropService.onDidDropFile(_)}};t.FileDropContribution=v,n.__decorate([(0,r.Autowired)(p.IFileDropFrontendServiceToken),n.__metadata("design:type",Object)],v.prototype,"dropService",void 0),n.__decorate([(0,c.OnEvent)(c.FileTreeDropEvent),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[c.FileTreeDropEvent]),n.__metadata("design:returntype",void 0)],v.prototype,"onDidDropFile",null),t.FileDropContribution=v=n.__decorate([(0,r.Injectable)(),(0,o.Domain)(o.ClientAppContribution)],v)},22874:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileDropService=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(26542),p=e(43718),v=e(42933),{Path:m}=p.path,_=e(69452);let s=class extends p.WithEventBus{constructor(){super(...arguments),this.pending=new Set}onDidUploadFileStart(l){this.pending.add(l),this.createOrUpdateStatusBar()}onDidUploadFileEnd(l){this.pending.delete(l),this.createOrUpdateStatusBar()}createOrUpdateStatusBar(l){if(this.pending.size===0){this.uploadStatus&&(this.uploadStatus.dispose(),this.uploadStatus=void 0);return}const h="sumi-upload-file-status",u=(0,o.formatLocalize)("workbench.uploadingFiles",this.pending.size,l||"0 MB"),d={text:u,alignment:c.StatusBarAlignment.RIGHT,tooltip:u,iconClass:"kaitian-icon kticon-cloud-server"};this.uploadStatus?this.uploadStatus.update({id:h,...d}):this.uploadStatus=this.statusBarService.addElement(h,d)}onDidDropFile(l){var h;const{payload:{event:u,targetDir:d}}=l;if(!d||!(!((h=u.dataTransfer)===null||h===void 0)&&h.files)||u.dataTransfer.files.length===0)return;const E=u.dataTransfer.items;let f=0;const a=Date.now(),b=y=>{f+=y;const A=Date.now(),w=`${(f/((A-a)/1e3)/1024/1024).toFixed(2)} MB`;this.createOrUpdateStatusBar(w)};for(const y of E){const A=y.webkitGetAsEntry();this.processFilesEntry(d,A,b)}}async processFilesEntry(l,h,u){if(h.isFile)this.processFileEntry(h,l,u);else{const d=p.Uri.file(new m(l).join(h.fullPath).toString()).toString();await this.fs.createFolder(d),this.processDirEntry(h,l,u)}}toBinaryString(l){let h;const u=l.length;let d="";for(h=0;h<u;h+=1)d+=String.fromCharCode(l[h]);return d}async doUploadFile(l,h,u){var d;const E=new m(h).join(l.name).toString();this.onDidUploadFileStart(E.toString()),await this.fs.createFile(p.Uri.file(E.toString()).toString()),await this.dropService.$ensureFileExist(l.name,h);const f=l.stream().getReader();let a=await f.read();for(;!a.done;)await this.dropService.$writeStream(this.toBinaryString(a.value),l.name,h,a.done),u((d=a.value)===null||d===void 0?void 0:d.byteLength),a=await f.read();a.done&&this.onDidUploadFileEnd(E.toString())}processFileEntry(l,h,u){l.file(d=>{const E=new File([d],l.fullPath,{type:l.type});this.doUploadFile(E,h,u)},()=>{})}processDirEntry(l,h,u){l.createReader().readEntries(E=>{E.forEach(async f=>{this.processFilesEntry(h,f,u)})},()=>{})}};t.FileDropService=s,n.__decorate([(0,r.Autowired)(v.IFileServiceClient),n.__metadata("design:type",Object)],s.prototype,"fs",void 0),n.__decorate([(0,r.Autowired)(_.FileDropServicePath),n.__metadata("design:type",Object)],s.prototype,"dropService",void 0),n.__decorate([(0,r.Autowired)(c.IStatusBarService),n.__metadata("design:type",Object)],s.prototype,"statusBarService",void 0),t.FileDropService=s=n.__decorate([(0,r.Injectable)()],s)},79240:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileSearchContribution=t.FileSearchQuickCommandHandler=t.matchLineReg=t.quickGoToSymbol=t.quickFileOpen=void 0,t.getValidateInput=b;const n=e(85608),r=n.__importDefault(e(39050)),o=e(76003),c=e(41869),p=e(26542),v=e(43718),m=e(98295),_=e(54414),s=e(17459),g=e(84660),l=n.__importStar(e(20868)),h=e(97821),u=e(80490),d=e(51500),E=e(30981),f=200;t.quickFileOpen={id:"workbench.action.quickOpen",category:"File",label:"Open File..."},t.quickGoToSymbol={id:"workbench.action.gotoSymbol",category:"File",label:"Open File Symbol..."},t.matchLineReg=/^([^:#(]*)[:#(]?L?(\d+)?[:,]?(\d+)?\)?/;function a(T=""){const D=T.match(t.matchLineReg)||[];if(D.length<2)return;const I={line:Number(D[2]||0),start:Number(D[3]||0)};return new l.Range(I.line,I.start,I.line,I.start)}function b(T){return T.replace(t.matchLineReg,"$1")}let y=class extends h.QuickOpenBaseAction{constructor(){super({id:"file-search:splitToRight",tooltip:(0,c.localize)("quickOpen.openOnTheRightSide"),class:(0,c.getIcon)("embed")})}async run(D){await this.commandService.executeCommand(c.EDITOR_COMMANDS.OPEN_RESOURCE.id,D.getUri(),{preview:!1,split:_.EditorGroupSplitAction.Right,range:a(this.injector.get(S).currentLookFor),focus:!0})}};n.__decorate([(0,o.Autowired)(c.CommandService),n.__metadata("design:type",Object)],y.prototype,"commandService",void 0),n.__decorate([(0,o.Autowired)(o.INJECTOR_TOKEN),n.__metadata("design:type",o.Injector)],y.prototype,"injector",void 0),y=n.__decorate([(0,o.Injectable)(),n.__metadata("design:paramtypes",[])],y);let A=class{hasActions(){return!0}getActions(){return[this.fileSearchActionLeftRight]}getValidateInput(D){return b(D)}};n.__decorate([(0,o.Autowired)(),n.__metadata("design:type",y)],A.prototype,"fileSearchActionLeftRight",void 0),A=n.__decorate([(0,o.Injectable)()],A);let S=class{constructor(){this.cancelIndicator=new v.CancellationTokenSource,this.default=!0,this.prefix="...",this.description=(0,c.localize)("file-search.command.fileOpen.description"),this.prevEditorState={},this.currentLookFor=""}getModel(){return{onType:async(D,I)=>{this.cancelIndicator.cancel(),this.cancelIndicator=new v.CancellationTokenSource;const O=this.cancelIndicator.token,M=new Set;let R=[];D=D.trim().replace(/\s/g,""),this.currentLookFor=D;const P=b(D),k=this.reporterService.time(v.REPORT_NAME.QUICK_OPEN_MEASURE),F=await this.getRecentlyItems(M,P,O);if(D&&(this.logger.debug("lookFor",D,P),R=await this.getFindOutItems(M,P,O)),O.isCancellationRequested)return;const L=F.concat(R);I(L,L.length?this.fileSearchActionProvider:void 0),k.timeEnd(D.indexOf("@")>-1?"file-symbol":"file",{lookFor:D,stat:{recently:F.length,find:R.length}})}}}getOptions(){return{placeholder:(0,c.localize)("file-search.command.fileOpen.placeholder"),fuzzyMatchLabel:{enableSeparateSubstringMatching:!0},showItemsWithoutHighlight:!0,fuzzyMatchDescription:{enableSeparateSubstringMatching:!0},getPlaceholderItem:D=>new c.QuickOpenItem({label:(0,c.localize)(D.indexOf("@")>-1?"search.fileSymbolResults.notfound":"search.fileResults.notfound"),run:()=>!1})}}onClose(D){D&&this.prevEditorState.uri&&(this.workbenchEditorService.open(this.prevEditorState.uri,{range:this.prevEditorState.range}),this.prevEditorState={}),this.prevSelected=void 0,this.cancelIndicator.cancel()}onToggle(){this.cancelIndicator.cancel()}trySaveEditorState(){var D;if(this.workbenchEditorService.currentResource){let I={startColumn:1,startLineNumber:1,endColumn:1,endLineNumber:1};const O=(D=this.workbenchEditorService.currentEditor)===null||D===void 0?void 0:D.getSelections();if(O){const{selectionStartLineNumber:M,selectionStartColumn:R,positionLineNumber:P,positionColumn:k}=O[0];I=new l.Range(M,R,P,k)}this.prevEditorState={uri:this.workbenchEditorService.currentResource.uri,range:I}}}async getFindOutItems(D,I,O){var M;let R;if(I.indexOf("@")>-1){this.trySaveEditorState(),R=[];const[P,k]=I.split("@");let F;if(this.prevSelected)F=this.prevSelected.withoutFragment();else if(P){const L=await this.getQueryFiles(P,D,O);L.length&&(F=L[0].getUri())}else F=(M=this.workbenchEditorService.currentResource)===null||M===void 0?void 0:M.uri;if(F){const L=await this.documentSymbolStore.getDocumentSymbolAsync(F)||[],B=[];this.flattenSymbols({children:L},B),R=B.filter(W=>{const U=(0,E.matchesFuzzy)(k,W.name,!0)||[];return U&&(W.labelHighlights=U),U&&U.length}).map((W,U)=>{var X;return new c.QuickOpenItem({uri:F,label:W.name,iconClass:(0,c.getSymbolIcon)(W.kind),description:(X=W.parent)===null||X===void 0?void 0:X.name,labelHighlights:W.labelHighlights,groupLabel:U===0?(0,c.formatLocalize)("search.fileSymbolResults",B.length):"",showBorder:!1,run:V=>V===c.Mode.PREVIEW?(this.locateSymbol(F,W),!0):V===c.Mode.OPEN?(this.locateSymbol(F,W),!0):!1})})}else return[]}else if(R=await this.getQueryFiles(I,D,O),R[0]){const P=await this.getItems([R[0].getUri().codeUri.fsPath],{groupLabel:(0,c.localize)("search.fileResults"),showBorder:!0});R[0]=P[0]}return R}async getQueryFiles(D,I,O){const R=(await this.workspaceService.roots).map(F=>new c.URI(F.uri).codeUri.fsPath),P=await this.fileSearchService.find(D,{rootUris:R,fuzzyMatch:!0,limit:f,useGitIgnore:!0,noIgnoreParent:!0,excludePatterns:this.getPreferenceSearchExcludes()},O),k=await this.getItems(P.filter(F=>I.has(F)||O.isCancellationRequested?!1:(I.add(F),!0)),{});return k.sort(this.compareItems.bind(this)),k}async flattenSymbols(D,I){D.children.forEach(O=>{I.push(O),O.children&&this.flattenSymbols(O,I)})}async getRecentlyItems(D,I,O){const M=await this.recentFilesManager.getMostRecentlyOpenedFiles(!0)||[];return await this.getItems(M.filter(R=>{const P=new c.URI(R);return D.has(R)||!r.default.test(I,P.displayName)||O.isCancellationRequested?!1:(D.add(R),!0)}),{groupLabel:(0,c.localize)("search.historyMatches")})}async getItems(D,I){const O=[];for(const[M,R]of D.entries()){const P=c.URI.isUriString(R)?new c.URI(R):c.URI.file(R),k=`file-icon ${this.labelService.getIcon(P.withoutFragment())}`;let F="";const L=await this.workspaceService.asRelativePath(P.parent);L&&(this.workspaceService.isMultiRootWorkspaceOpened?F=`${new c.URI(L.root).displayName}${L.path?` \u30FB ${L.path}`:""}`:F=L.path||"");const B=new c.QuickOpenItem({uri:P,label:P.displayName,tooltip:R,iconClass:k,description:F,groupLabel:M===0?I.groupLabel:"",showBorder:D.length>0&&M===0?I.showBorder:!1,run:j=>(j===c.Mode.PREVIEW&&(this.prevSelected=P),j===c.Mode.OPEN?(this.openFile(P),!0):!1)});O.push(B)}return O}openFile(D){const I=D.codeUri.fsPath;let O=a(this.currentLookFor);(!O||!O.startLineNumber&&!O.startColumn)&&(O=a(D.fragment?"#"+D.fragment:I)),this.currentLookFor="",this.commandService.executeCommand(c.EDITOR_COMMANDS.OPEN_RESOURCE.id,D.withoutFragment(),{preview:!1,range:O,focus:!0})}locateSymbol(D,I){this.workbenchEditorService.open(D,{range:I.range,preview:!0})}compareItems(D,I,O="getLabel"){function M(j){return j.trim().toLowerCase()}const R=M(b(this.currentLookFor));function P(j){const W=r.default.match(R,j);return W===null?0:W.score}let k=D[O](),F=I[O]();typeof k!="string"&&(k=k.path.toString()),typeof F!="string"&&(F=F.path.toString()),k=M(k),F=M(F);const L=P(k),B=P(F);if(L===B){const j=k.indexOf(R),W=F.indexOf(R);return j===W?k.length!==F.length?k.length<F.length?-1:1:F.localeCompare(k)===0?O==="getUri"?0:this.compareItems(D,I,"getUri"):F.localeCompare(k):j-W}return B-L}getPreferenceSearchExcludes(){const D=[],I=this.preferenceService.get("files.exclude"),O=this.preferenceService.get("search.exclude"),M=Object.assign({},I,O);for(const R of Object.keys(M))M[R]&&D.push(R);return D}};t.FileSearchQuickCommandHandler=S,n.__decorate([(0,o.Autowired)(c.CommandService),n.__metadata("design:type",Object)],S.prototype,"commandService",void 0),n.__decorate([(0,o.Autowired)(g.FileSearchServicePath),n.__metadata("design:type",Object)],S.prototype,"fileSearchService",void 0),n.__decorate([(0,o.Autowired)(_.WorkbenchEditorService),n.__metadata("design:type",_.WorkbenchEditorService)],S.prototype,"workbenchEditorService",void 0),n.__decorate([(0,o.Autowired)(s.DocumentSymbolStore),n.__metadata("design:type",s.DocumentSymbolStore)],S.prototype,"documentSymbolStore",void 0),n.__decorate([(0,o.Autowired)(),n.__metadata("design:type",p.LabelService)],S.prototype,"labelService",void 0),n.__decorate([(0,o.Autowired)(d.IWorkspaceService),n.__metadata("design:type",Object)],S.prototype,"workspaceService",void 0),n.__decorate([(0,o.Autowired)(c.RecentFilesManager),n.__metadata("design:type",c.RecentFilesManager)],S.prototype,"recentFilesManager",void 0),n.__decorate([(0,o.Autowired)(c.ILogger),n.__metadata("design:type",Object)],S.prototype,"logger",void 0),n.__decorate([(0,o.Autowired)(),n.__metadata("design:type",A)],S.prototype,"fileSearchActionProvider",void 0),n.__decorate([(0,o.Autowired)(c.PreferenceService),n.__metadata("design:type",Object)],S.prototype,"preferenceService",void 0),n.__decorate([(0,o.Autowired)(v.IReporterService),n.__metadata("design:type",Object)],S.prototype,"reporterService",void 0),t.FileSearchQuickCommandHandler=S=n.__decorate([(0,o.Injectable)()],S);let w=class{registerQuickOpenHandlers(D){D.registerHandler(this.fileSearchQuickCommandHandler,{title:(0,c.localize)("quickopen.tab.file"),commandId:t.quickFileOpen.id,order:1})}registerCommands(D){D.registerCommand(t.quickFileOpen,{execute:()=>this.quickOpenService.open("...")}),D.registerCommand(t.quickGoToSymbol,{execute:()=>this.quickOpenService.open("...@")})}registerKeybindings(D){D.registerKeybinding({command:t.quickFileOpen.id,keybinding:"ctrlcmd+p"})}};t.FileSearchContribution=w,n.__decorate([(0,o.Autowired)(S),n.__metadata("design:type",S)],w.prototype,"fileSearchQuickCommandHandler",void 0),n.__decorate([(0,o.Autowired)(h.PrefixQuickOpenService),n.__metadata("design:type",Object)],w.prototype,"quickOpenService",void 0),t.FileSearchContribution=w=n.__decorate([(0,m.Domain)(v.CommandContribution,c.KeybindingContribution,u.QuickOpenContribution)],w)},73827:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClientAddonModule=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(69452),p=e(79682),v=e(72915),m=e(27654),_=e(17631),s=e(22874),g=e(79240),l=e(18256),h=e(7756),u=e(16426);let d=class extends o.BrowserModule{constructor(){super(...arguments),this.providers=[p.ChromeDevtoolsContribution,l.LanguageChangeHintContribution,g.FileSearchContribution,h.StatusBarContribution,u.ToolbarCustomizeContribution,_.FileDropContribution,v.ConnectionRTTContribution,{token:c.IFileDropFrontendServiceToken,useClass:s.FileDropService},{token:m.ConnectionRTTBrowserServiceToken,useClass:m.ConnectionRTTBrowserService}],this.backServices=[{servicePath:c.FileDropServicePath},{servicePath:c.ConnectionBackServicePath}]}};t.ClientAddonModule=d,t.ClientAddonModule=d=n.__decorate([(0,r.Injectable)()],d)},18256:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LanguageChangeHintContribution=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(72665);let p=class{onStart(){this.preferenceService.onSpecificPreferenceChange(o.GeneralSettingsId.Language,async m=>{(0,o.setLanguageId)(m.newValue),this.preferenceService.get("general.askReloadOnLanguageChange")&&await this.dialogService.info((0,o.localize)("preference.general.language.change.refresh.info","After changing the language, it should be restarted to take effect. Will it be refreshed immediately?"),[(0,o.localize)("preference.general.language.change.refresh.later","Later"),(0,o.localize)("preference.general.language.change.refresh.now","Now")])===(0,o.localize)("preference.general.language.change.refresh.now","Now")&&this.clientApp.fireOnReload()})}};t.LanguageChangeHintContribution=p,n.__decorate([(0,r.Autowired)(o.PreferenceService),n.__metadata("design:type",Object)],p.prototype,"preferenceService",void 0),n.__decorate([(0,r.Autowired)(o.IClientApp),n.__metadata("design:type",Object)],p.prototype,"clientApp",void 0),n.__decorate([(0,r.Autowired)(c.IDialogService),n.__metadata("design:type",Object)],p.prototype,"dialogService",void 0),t.LanguageChangeHintContribution=p=n.__decorate([(0,o.Domain)(o.ClientAppContribution)],p)},7756:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StatusBarContribution=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(43718);let p=class extends c.WithEventBus{onStart(){}handleBrowserConnectionOpen(){this.commandService.executeCommand("statusbar.changeBackgroundColor","var(--statusBar-background)"),this.logger.log("Browser connection open, change status bar background color")}handleBrowserConnectionClose(){this.commandService.executeCommand("statusbar.changeBackgroundColor","var(--kt-statusbar-offline-background)"),this.logger.log("Browser connection close, change status bar background color")}};t.StatusBarContribution=p,n.__decorate([(0,r.Autowired)(c.CommandService),n.__metadata("design:type",Object)],p.prototype,"commandService",void 0),n.__decorate([(0,r.Autowired)(c.ILogger),n.__metadata("design:type",Object)],p.prototype,"logger",void 0),n.__decorate([(0,c.OnEvent)(c.BrowserConnectionOpenEvent),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],p.prototype,"handleBrowserConnectionOpen",null),n.__decorate([(0,c.OnEvent)(c.BrowserConnectionCloseEvent),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],p.prototype,"handleBrowserConnectionClose",null),t.StatusBarContribution=p=n.__decorate([(0,c.Domain)(o.ClientAppContribution)],p)},16426:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ToolbarCustomizeContribution=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(93899),p=e(62132);let v=class{registerCommands(_){_.registerCommand({id:"toolbar.showCustomizePanel",label:"Show Toolbar Customization"},{execute:()=>{this.viewService.setVisible(!0)}})}registerComponent(_){_.register("addon/toolbar-customize",{id:"addon/toolbar-customize",component:p.ToolbarCustomizeComponent}),this.config.layoutConfig[o.SlotLocation.extra]||(this.config.layoutConfig[o.SlotLocation.extra]={modules:[]}),this.config.layoutConfig[o.SlotLocation.extra].modules.push("addon/toolbar-customize")}registerMenus(_){_.registerMenuItem(c.MenuId.KTToolbarLocationContext,{command:{id:"toolbar.showCustomizePanel",label:(0,o.localize)("toolbar.customize.menu")}})}};t.ToolbarCustomizeContribution=v,n.__decorate([(0,r.Autowired)(o.AppConfig),n.__metadata("design:type",Object)],v.prototype,"config",void 0),n.__decorate([(0,r.Autowired)(p.ToolbarCustomizeViewService),n.__metadata("design:type",p.ToolbarCustomizeViewService)],v.prototype,"viewService",void 0),t.ToolbarCustomizeContribution=v=n.__decorate([(0,o.Domain)(o.CommandContribution,o.ComponentContribution,c.MenuContribution)],v)},62132:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ToolbarCustomizeComponent=t.ToolbarCustomizeViewService=void 0;const n=e(85608),r=n.__importDefault(e(14041)),o=e(76003),c=e(97267),p=e(41869),v=n.__importDefault(e(18541));let m=class{bindSetVisibleHandle(g){this._setVisible=g}setVisible(g){this._setVisible(g)}async toggleActionVisibility(g,l,h){const u=this.preferenceService.getValid("toolbar.ignoreActions",{});if(u[g]||(u[g]=[]),!h)u[g].indexOf(l)===-1&&u[g].push(l);else{const E=u[g].indexOf(l);E!==-1&&u[g].splice(E,1)}const d=this.preferenceService.inspect("toolbar.ignoreActions").workspaceValue?p.PreferenceScope.Workspace:p.PreferenceScope.User;await this.preferenceService.set("toolbar.ignoreActions",u,d)}};t.ToolbarCustomizeViewService=m,n.__decorate([(0,o.Autowired)(p.PreferenceService),n.__metadata("design:type",Object)],m.prototype,"preferenceService",void 0),t.ToolbarCustomizeViewService=m=n.__decorate([(0,o.Injectable)()],m);const _=()=>{const[s,g]=r.default.useState(!1),l=(0,p.useInjectable)(m),h=(0,p.useInjectable)(p.IToolbarRegistry),u=(0,p.useInjectable)(p.PreferenceService);if(l.bindSetVisibleHandle(g),!s)return null;const d=h.getAllLocations(),E=u.get("toolbar.ignoreActions")||{};let f=u.get("toolbar.buttonDisplay","iconAndText");function a(b){const y=[{id:"_head"},...h.getActionGroups(b)||[],{id:"_tail"}],A=[],S=E[b]||[];return y.forEach((w,T)=>{const D=h.getToolbarActions({location:b,group:w.id});D&&D.actions.length>0&&(A.length>0&&A.push(r.default.createElement("div",{className:v.default["group-split"],key:"split-"+T})),D.actions.forEach((I,O)=>{var M;let R=S.indexOf(I.id)===-1;const P="action-toggle-"+I.id;A.push(r.default.createElement("div",{className:v.default["action-item"],key:O+"_"+I.id},r.default.createElement(c.CheckBox,{onChange:()=>{l.toggleActionVisibility(b,I.id,!R),R=!R},defaultChecked:R,id:P,label:(M=I.description)!==null&&M!==void 0?M:I.id})))}))}),A.length===0?null:r.default.createElement("div",{key:b,className:v.default["toolbar-customize-location"]},A)}return r.default.createElement("div",{className:v.default["toolbar-customize-overlay"]},r.default.createElement("div",{className:v.default["toolbar-customize"]},d.map(b=>a(b)),r.default.createElement("div",{className:v.default["button-display"]},r.default.createElement("div",null,(0,p.localize)("toolbar-customize.buttonDisplay.description")),r.default.createElement(c.Select,{options:[{label:(0,p.localize)("toolbar-customize.buttonDisplay.icon"),value:"icon"},{label:(0,p.localize)("toolbar-customize.buttonDisplay.iconAndText"),value:"iconAndText"}],value:f,onChange:b=>{const y=u.inspect("toolbar.buttonDisplay").workspaceValue?p.PreferenceScope.Workspace:p.PreferenceScope.User;u.set("toolbar.buttonDisplay",b,y),f=b},className:v.default["button-display-select"]})),r.default.createElement("div",{className:v.default["customize-complete"]},r.default.createElement(c.Button,{type:"primary",onClick:()=>g(!1)},(0,p.localize)("toolbar-customize.complete")))))};t.ToolbarCustomizeComponent=_},69452:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IConnectionBackService=t.ConnectionBackServicePath=t.IFileDropFrontendServiceToken=t.IFileDropServiceToken=t.FileDropServicePath=void 0,t.FileDropServicePath="FileDropServicePath",t.IFileDropServiceToken=Symbol("IFileDropService"),t.IFileDropFrontendServiceToken=Symbol("IFileDropFrontendService"),t.ConnectionBackServicePath="ConnectionBackServicePath",t.IConnectionBackService=Symbol("IConnectionBackService")},77659:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AINativeContextKey=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(50394);let p=class{get contextKeyService(){return this._contextKeyService}constructor(m){this._contextKeyService=this.globalContextKeyService.createScoped(m),this.inlineChatIsVisible=c.InlineChatIsVisible.bind(this._contextKeyService),this.inlineCompletionIsTrigger=c.InlineCompletionIsTrigger.bind(this._contextKeyService),this.inlineHintWidgetIsVisible=c.InlineHintWidgetIsVisible.bind(this._contextKeyService),this.inlineInputWidgetIsVisible=c.InlineInputWidgetIsVisible.bind(this._contextKeyService),this.inlineInputWidgetIsStreaming=c.InlineInputWidgetIsStreaming.bind(this._contextKeyService),this.inlineDiffPartialEditsIsVisible=c.InlineDiffPartialEditsIsVisible.bind(this._contextKeyService),this.codeEditsIsVisible=c.CodeEditsIsVisible.bind(this._contextKeyService)}};t.AINativeContextKey=p,n.__decorate([(0,r.Autowired)(o.IContextKeyService),n.__metadata("design:type",Object)],p.prototype,"globalContextKeyService",void 0),t.AINativeContextKey=p=n.__decorate([(0,r.Injectable)(),n.__param(0,(0,r.Optional)()),n.__metadata("design:paramtypes",[Object])],p)},32016:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AINativeBrowserContribution=t.INLINE_DIFF_MANAGER_WIDGET_ID=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(57925),p=e(50394),v=e(1149),m=e(97222),_=e(43718),s=e(82353),g=e(54414),l=e(57517),h=e(51553),u=e(63067),d=e(46507),E=e(97682),f=e(68415),a=e(96640),b=e(19413),y=e(61282),A=e(51081),S=e(59347),w=e(76154),T=e(79559),D=e(57232),I=e(72991),O=e(71863),M=e(7511),R=e(42911),P=e(72801),k=e(87817),F=e(4972),L=e(82983),B=e(73974),j=e(77633),W=e(51221),U=e(2281),X=e(31031),V=e(95608),$=e(38890),Y=e(77886),G=e(89060),H=e(74353),K=e(22169),Z=e(90058);t.INLINE_DIFF_MANAGER_WIDGET_ID="inline-diff-manager-widget";let Q=class{constructor(){this.registerFeature()}async initialize(){const{supportsChatAssistant:te}=this.aiNativeConfigService.capabilities;te&&(o.ComponentRegistryImpl.addLayoutModule(this.appConfig.layoutConfig,b.AI_CHAT_VIEW_ID,b.AI_CHAT_CONTAINER_ID),o.ComponentRegistryImpl.addLayoutModule(this.appConfig.layoutConfig,s.DESIGN_MENU_BAR_RIGHT,b.AI_CHAT_LOGO_AVATAR_ID),this.chatProxyService.registerDefaultAgent(),this.chatInternalService.init(),await this.chatManagerService.init())}registerEditorExtensionContribution(te){const{supportsInlineChat:ue,supportsInlineCompletion:_e,supportsProblemFix:q,supportsCodeAction:be}=this.aiNativeConfigService.capabilities;te($.InlineDiffController.ID,new a.SyncDescriptor($.InlineDiffController,[this.injector]),E.EditorContributionInstantiation.Lazy),be&&te(Z.SumiLightBulbWidget.ID,Z.SumiLightBulbWidget,E.EditorContributionInstantiation.Lazy),ue&&(te(W.InlineChatEditorController.ID,new a.SyncDescriptor(W.InlineChatEditorController,[this.injector]),E.EditorContributionInstantiation.BeforeFirstInteraction),this.inlineInputService.getInteractiveInputHandler()&&(te(Y.InlineHintController.ID,new a.SyncDescriptor(Y.InlineHintController,[this.injector]),E.EditorContributionInstantiation.AfterFirstRender),te(G.InlineInputController.ID,new a.SyncDescriptor(G.InlineInputController,[this.injector]),E.EditorContributionInstantiation.AfterFirstRender))),_e&&(te(M.IntelligentCompletionsController.ID,new a.SyncDescriptor(M.IntelligentCompletionsController,[this.injector]),E.EditorContributionInstantiation.Eager),te(I.InlineCompletionsController.ID,new a.SyncDescriptor(I.InlineCompletionsController,[this.injector]),E.EditorContributionInstantiation.AfterFirstRender)),q&&te(R.ProblemFixController.ID,new a.SyncDescriptor(R.ProblemFixController,[this.injector]),E.EditorContributionInstantiation.AfterFirstRender)}onReconnect(){const{supportsMCP:te}=this.aiNativeConfigService.capabilities;te&&this.initMCPServers()}onDidStart(){(0,_.runWhenIdle)(()=>{const{supportsRenameSuggestions:te,supportsInlineChat:ue,supportsMCP:_e,supportsCustomLLMSettings:q}=this.aiNativeConfigService.capabilities,be=this.preferenceService.getValid(o.AINativeSettingSectionsId.ChatVisibleType);be==="always"?this.commandService.executeCommand(c.AI_CHAT_VISIBLE.id,!0):be==="never"&&this.commandService.executeCommand(c.AI_CHAT_VISIBLE.id,!1),te&&this.renameSingleHandler.load(),ue&&this.codeActionSingleHandler.load(),q&&(this.preferenceService.onSpecificPreferenceChange(o.AINativeSettingSectionsId.LLMModelSelection,pe=>{const ie=this.getModelByName(pe.newValue),ge=ie?Object.keys(ie):[],Re=ge.length?ge[0]:"",Pe=this.preferenceSchemaProvider.getPreferenceProperty(o.AINativeSettingSectionsId.ModelID);this.preferenceSchemaProvider.setSchema({properties:{[o.AINativeSettingSectionsId.ModelID]:{...Pe,default:Re,defaultValue:Re,enum:ge.length?ge:void 0}}},!0),this.preferenceService.set(o.AINativeSettingSectionsId.ModelID,Re,pe.scope),this.preferenceSettings.setEnumLabels(o.AINativeSettingSectionsId.ModelID,ge.reduce((Ae,we)=>({...Ae,[we]:we}),{}))}),this.preferenceService.onSpecificPreferenceChange(o.AINativeSettingSectionsId.ModelID,pe=>{const ie=this.preferenceService.get(o.AINativeSettingSectionsId.LLMModelSelection);if(!ie)return;const ge=this.getModelByName(ie);ge&&ge[pe.newValue]&&(this.preferenceService.set(o.AINativeSettingSectionsId.MaxTokens,ge[pe.newValue].maxTokens,pe.scope),this.preferenceService.set(o.AINativeSettingSectionsId.ContextWindow,ge[pe.newValue].contextWindow,pe.scope))})),_e&&this.initMCPServers()})}initMCPServers(){var te;const ue=this.preferenceService.getValid(o.AINativeSettingSectionsId.MCPServers),_e=ue?.find(q=>q.name===b.BUILTIN_MCP_SERVER_NAME);if(this.sumiMCPServerBackendProxy.initBuiltinMCPServer((te=_e?.enabled)!==null&&te!==void 0?te:!0),ue&&ue.length>0){const q=ue.filter(be=>be.name!==b.BUILTIN_MCP_SERVER_NAME);q.length>0&&this.sumiMCPServerBackendProxy.initExternalMCPServers(q)}}getModelByName(te){switch(te){case"deepseek":return b.deepSeekModels;case"anthropic":return b.anthropicModels;case"openai":return b.openAiNativeModels;default:return}}registerFeature(){this.contributions.getContributions().forEach(te=>{var ue,_e,q,be,pe,ie,ge,Re,Pe;(ue=te.registerInlineChatFeature)===null||ue===void 0||ue.call(te,this.inlineChatFeatureRegistry),(_e=te.registerChatFeature)===null||_e===void 0||_e.call(te,this.chatFeatureRegistry),(q=te.registerResolveConflictFeature)===null||q===void 0||q.call(te,this.resolveConflictRegistry),(be=te.registerRenameProvider)===null||be===void 0||be.call(te,this.renameCandidatesProviderRegistry),(pe=te.registerChatRender)===null||pe===void 0||pe.call(te,this.chatRenderRegistry),(ie=te.registerTerminalProvider)===null||ie===void 0||ie.call(te,this.terminalProviderRegistry),(ge=te.registerIntelligentCompletionFeature)===null||ge===void 0||ge.call(te,this.intelligentCompletionsRegistry),(Re=te.registerProblemFixFeature)===null||Re===void 0||Re.call(te,this.problemFixProviderRegistry),(Pe=te.registerChatAgentPromptProvider)===null||Pe===void 0||Pe.call(te)}),this.mcpServerContributions.getContributions().forEach(te=>{te.registerMCPServer(this.mcpServerRegistry)})}registerSetting(te){te.registerSettingGroup({id:o.AI_NATIVE_SETTING_GROUP_ID,title:_.AI_NATIVE_SETTING_GROUP_TITLE,iconClass:(0,o.getIcon)("magic-wand")}),te.registerSettingSection(o.AI_NATIVE_SETTING_GROUP_ID,{title:(0,o.localize)("preference.ai.native.chat.title"),preferences:[{id:o.AINativeSettingSectionsId.ChatVisibleType,localized:"preference.ai.native.chat.visible.type"}]}),te.registerSettingSection(o.AI_NATIVE_SETTING_GROUP_ID,{title:(0,o.localize)("preference.ai.native.interface.quick.title"),preferences:[{id:o.AINativeSettingSectionsId.InterfaceQuickNavigationEnabled,localized:"preference.ai.native.interface.quick.navigation"}]}),this.aiNativeConfigService.capabilities.supportsInlineCompletion&&(te.registerSettingSection(o.AI_NATIVE_SETTING_GROUP_ID,{title:(0,o.localize)("preference.ai.native.intelligentCompletions.title"),preferences:[{id:o.AINativeSettingSectionsId.IntelligentCompletionsCacheEnabled,localized:"preference.ai.native.intelligentCompletions.cache.enabled"},{id:o.AINativeSettingSectionsId.IntelligentCompletionsDebounceTime,localized:"preference.ai.native.intelligentCompletions.debounceTime"},{id:o.AINativeSettingSectionsId.IntelligentCompletionsPromptEngineeringEnabled,localized:"preference.ai.native.intelligentCompletions.promptEngineering.enabled"},{id:o.AINativeSettingSectionsId.IntelligentCompletionsAlwaysVisible,localized:"preference.ai.native.intelligentCompletions.alwaysVisible"}]}),te.registerSettingSection(o.AI_NATIVE_SETTING_GROUP_ID,{title:(0,o.localize)("preference.ai.native.codeEdits.title"),preferences:[{id:o.AINativeSettingSectionsId.CodeEditsLintErrors,localized:"preference.ai.native.codeEdits.lintErrors"},{id:o.AINativeSettingSectionsId.CodeEditsLineChange,localized:"preference.ai.native.codeEdits.lineChange"},{id:o.AINativeSettingSectionsId.CodeEditsTyping,localized:"preference.ai.native.codeEdits.typing"},{id:o.AINativeSettingSectionsId.CodeEditsRenderType,localized:"preference.ai.native.codeEdits.renderType"},{id:o.AINativeSettingSectionsId.SystemPrompt,localized:"preference.ai.native.chat.system.prompt"}]})),this.aiNativeConfigService.capabilities.supportsCustomLLMSettings&&te.registerSettingSection(o.AI_NATIVE_SETTING_GROUP_ID,{title:(0,o.localize)("preference.ai.native.llm.apiSettings.title"),preferences:[{id:o.AINativeSettingSectionsId.LLMModelSelection,localized:"preference.ai.native.llm.model.selection"},{id:o.AINativeSettingSectionsId.ModelID,localized:"preference.ai.native.llm.model.id"},{id:o.AINativeSettingSectionsId.DeepseekApiKey,localized:"preference.ai.native.deepseek.apiKey"},{id:o.AINativeSettingSectionsId.AnthropicApiKey,localized:"preference.ai.native.anthropic.apiKey"},{id:o.AINativeSettingSectionsId.OpenaiApiKey,localized:"preference.ai.native.openai.apiKey"},{id:o.AINativeSettingSectionsId.OpenaiBaseURL,localized:"preference.ai.native.openai.baseURL"},{id:o.AINativeSettingSectionsId.MaxTokens,localized:"preference.ai.native.maxTokens"},{id:o.AINativeSettingSectionsId.ContextWindow,localized:"preference.ai.native.contextWindow"}]}),this.aiNativeConfigService.capabilities.supportsMCP&&te.registerSettingSection(o.AI_NATIVE_SETTING_GROUP_ID,{title:(0,o.localize)("preference.ai.native.mcp.settings.title"),preferences:[{id:o.AINativeSettingSectionsId.MCPServers,localized:"preference.ai.native.mcp.servers"}]}),this.aiNativeConfigService.capabilities.supportsInlineChat&&te.registerSettingSection(o.AI_NATIVE_SETTING_GROUP_ID,{title:(0,o.localize)("preference.ai.native.inlineChat.title"),preferences:[{id:o.AINativeSettingSectionsId.InlineChatAutoVisible,localized:"preference.ai.native.inlineChat.auto.visible"},{id:o.AINativeSettingSectionsId.InlineChatCodeActionEnabled,localized:"preference.ai.native.inlineChat.codeAction.enabled"},{id:o.AINativeSettingSectionsId.InlineDiffPreviewMode,localized:"preference.ai.native.inlineDiff.preview.mode"}]})}registerEditorFeature(te){te.registerEditorFeatureContribution({contribute:ue=>{const{monacoEditor:_e}=ue;return this.codeActionSingleHandler.mountEditor(ue.monacoEditor),_e.onDidScrollChange(()=>{this.ctxMenuRenderer.visible&&this.ctxMenuRenderer.hide(!0)})}})}registerEditorComponent(te){te.registerEditorSideWidget({id:t.INLINE_DIFF_MANAGER_WIDGET_ID,component:V.InlineDiffManager,displaysOnResource:ue=>{var _e;return!!(this.aiNativeConfigService.capabilities.supportsMCP&&(!((_e=this.applyService.getUriCodeBlocks(ue.uri))===null||_e===void 0)&&_e.filter(q=>q.status==="pending").length))}})}registerCommands(te){te.registerCommand(c.AI_INLINE_CHAT_VISIBLE,{execute:ue=>{this.aiInlineChatService._onInlineChatVisible.fire(ue)}}),te.registerCommand(c.AI_INLINE_CHAT_INTERACTIVE_INPUT_VISIBLE,{execute:async ue=>{var _e;if(!ue){this.inlineInputService.hide();return}this.commandService.executeCommand(c.AI_INLINE_CHAT_VISIBLE.id,!1);const q=this.workbenchEditorService.currentCodeEditor;if(!q)return;const be=q.monacoEditor.getPosition();if(!be)return;const pe=q.monacoEditor.getSelection();if(be?((_e=q.monacoEditor.getModel())===null||_e===void 0?void 0:_e.getLineLength(be.lineNumber))===0:!1){this.inlineInputService.visibleByPosition(be);return}if(pe&&!pe.isEmpty()){this.inlineInputService.visibleBySelection(pe);return}this.inlineInputService.visibleByNearestCodeBlock(be,q.monacoEditor)}}),te.registerCommand(c.AI_INLINE_CHAT_INTERACTIVE_INPUT_CANCEL,{execute:()=>{var ue;const _e=this.workbenchEditorService.currentCodeEditor;_e&&((ue=G.InlineInputController.get(_e.monacoEditor))===null||ue===void 0||ue.cancelToken())}}),te.registerCommand(c.AI_INLINE_COMPLETION_REPORTER,{execute:(ue,_e,q,be)=>{this.aiCompletionsService.report({sessionId:_e,accept:q,relationId:ue,code:be})}}),te.registerCommand(c.AI_CHAT_VISIBLE,{execute:ue=>{this.layoutService.toggleSlot(b.AI_CHAT_VIEW_ID,(0,_.isUndefined)(ue)?!0:ue)}}),te.registerCommand(c.AI_INLINE_COMPLETION_VISIBLE,{execute:async ue=>{ue||(this.aiCompletionsService.hideStatusBarItem(),this.aiInlineCompletionsProvider.setVisibleCompletion(!1),this.aiInlineCompletionsProvider.cancelRequest())}}),te.registerCommand(c.AI_INLINE_DIFF_PARTIAL_EDIT,{execute:ue=>{this.inlineStreamDiffService.launchAcceptDiscardPartialEdit(ue)}}),te.afterExecuteCommand(f.HideInlineCompletion.ID,()=>{this.commandService.executeCommand(c.AI_INLINE_COMPLETION_VISIBLE.id,!1)})}registerRenderer(te){this.designLayoutConfig.supportExternalChatPanel?te.registerSlotRenderer(b.AI_CHAT_VIEW_ID,F.AIChatTabRendererWithTab):te.registerSlotRenderer(b.AI_CHAT_VIEW_ID,F.AIChatTabRenderer),this.designLayoutConfig.useMergeRightWithLeftPanel&&(te.registerSlotRenderer(o.SlotLocation.left,F.AILeftTabRenderer),te.registerSlotRenderer(o.SlotLocation.right,F.AIRightTabRenderer))}registerComponent(te){te.register(b.AI_CHAT_CONTAINER_ID,[],{component:w.AIChatView,title:(0,o.localize)("aiNative.chat.ai.assistant.name"),iconClass:(0,o.getIcon)("magic-wand"),containerId:b.AI_CHAT_CONTAINER_ID}),te.register(b.AI_MENU_BAR_DEBUG_TOOLBAR,{id:b.AI_MENU_BAR_DEBUG_TOOLBAR,component:k.AIRunToolbar}),te.register(b.AI_CHAT_LOGO_AVATAR_ID,{id:b.AI_CHAT_LOGO_AVATAR_ID,component:L.AIChatLogoAvatar})}registerKeybindings(te){this.aiNativeConfigService.capabilities.supportsInlineChat&&(te.registerKeybinding({command:c.AI_INLINE_CHAT_VISIBLE.id,keybinding:"ctrlcmd+i",when:"editorTextFocus",args:!0,priority:0},o.KeybindingScope.USER),te.registerKeybinding({command:c.AI_INLINE_CHAT_VISIBLE.id,keybinding:"esc",args:!1,when:`editorFocus && ${p.InlineChatIsVisible.raw}`}),this.inlineInputService.getInteractiveInputHandler()&&(te.registerKeybinding({command:c.AI_INLINE_CHAT_INTERACTIVE_INPUT_VISIBLE.id,keybinding:this.aiNativeConfigService.inlineChat.inputKeybinding,args:!0,priority:0,when:`editorFocus && (${p.InlineChatIsVisible.raw} || inlineSuggestionVisible)`},o.KeybindingScope.USER),te.registerKeybinding({command:c.AI_INLINE_CHAT_INTERACTIVE_INPUT_VISIBLE.id,keybinding:"esc",args:!1,priority:0,when:`editorFocus && ${p.InlineInputWidgetIsVisible.raw}`}),te.registerKeybinding({command:c.AI_INLINE_CHAT_INTERACTIVE_INPUT_CANCEL.id,keybinding:"esc",priority:1,when:`editorFocus && ${p.InlineInputWidgetIsStreaming.raw}`}),te.registerKeybinding({command:c.AI_INLINE_CHAT_INTERACTIVE_INPUT_VISIBLE.id,keybinding:this.aiNativeConfigService.inlineChat.inputKeybinding,args:!0,priority:0,when:`editorFocus && ${p.InlineHintWidgetIsVisible.raw} && ${p.InlineChatIsVisible.not}`},o.KeybindingScope.USER))),te.registerKeybinding({command:c.AI_INLINE_DIFF_PARTIAL_EDIT.id,keybinding:"ctrl+y",args:!0,priority:100,when:`editorTextFocus && ${p.InlineDiffPartialEditsIsVisible.raw}`}),te.registerKeybinding({command:c.AI_INLINE_DIFF_PARTIAL_EDIT.id,keybinding:"ctrl+n",args:!1,priority:100,when:`editorTextFocus && ${p.InlineDiffPartialEditsIsVisible.raw}`})}};t.AINativeBrowserContribution=Q,n.__decorate([(0,r.Autowired)(o.AppConfig),n.__metadata("design:type",Object)],Q.prototype,"appConfig",void 0),n.__decorate([(0,r.Autowired)(r.INJECTOR_TOKEN),n.__metadata("design:type",r.Injector)],Q.prototype,"injector",void 0),n.__decorate([(0,r.Autowired)(m.IBrowserCtxMenu),n.__metadata("design:type",m.IBrowserCtxMenu)],Q.prototype,"ctxMenuRenderer",void 0),n.__decorate([(0,r.Autowired)(j.AINativeCoreContribution),n.__metadata("design:type",Object)],Q.prototype,"contributions",void 0),n.__decorate([(0,r.Autowired)(j.MCPServerContribution),n.__metadata("design:type",Object)],Q.prototype,"mcpServerContributions",void 0),n.__decorate([(0,r.Autowired)(j.TokenMCPServerRegistry),n.__metadata("design:type",Object)],Q.prototype,"mcpServerRegistry",void 0),n.__decorate([(0,r.Autowired)(_.InlineChatFeatureRegistryToken),n.__metadata("design:type",U.InlineChatFeatureRegistry)],Q.prototype,"inlineChatFeatureRegistry",void 0),n.__decorate([(0,r.Autowired)(_.ChatFeatureRegistryToken),n.__metadata("design:type",Object)],Q.prototype,"chatFeatureRegistry",void 0),n.__decorate([(0,r.Autowired)(_.ChatRenderRegistryToken),n.__metadata("design:type",Object)],Q.prototype,"chatRenderRegistry",void 0),n.__decorate([(0,r.Autowired)(_.ResolveConflictRegistryToken),n.__metadata("design:type",Object)],Q.prototype,"resolveConflictRegistry",void 0),n.__decorate([(0,r.Autowired)(_.RenameCandidatesProviderRegistryToken),n.__metadata("design:type",Object)],Q.prototype,"renameCandidatesProviderRegistry",void 0),n.__decorate([(0,r.Autowired)(_.TerminalRegistryToken),n.__metadata("design:type",Object)],Q.prototype,"terminalProviderRegistry",void 0),n.__decorate([(0,r.Autowired)(_.IntelligentCompletionsRegistryToken),n.__metadata("design:type",Object)],Q.prototype,"intelligentCompletionsRegistry",void 0),n.__decorate([(0,r.Autowired)(_.ProblemFixRegistryToken),n.__metadata("design:type",Object)],Q.prototype,"problemFixProviderRegistry",void 0),n.__decorate([(0,r.Autowired)(o.AINativeConfigService),n.__metadata("design:type",o.AINativeConfigService)],Q.prototype,"aiNativeConfigService",void 0),n.__decorate([(0,r.Autowired)(v.DesignLayoutConfig),n.__metadata("design:type",v.DesignLayoutConfig)],Q.prototype,"designLayoutConfig",void 0),n.__decorate([(0,r.Autowired)(O.AICompletionsService),n.__metadata("design:type",O.AICompletionsService)],Q.prototype,"aiCompletionsService",void 0),n.__decorate([(0,r.Autowired)(D.AIInlineCompletionsProvider),n.__metadata("design:type",D.AIInlineCompletionsProvider)],Q.prototype,"aiInlineCompletionsProvider",void 0),n.__decorate([(0,r.Autowired)(_.CommandService),n.__metadata("design:type",Object)],Q.prototype,"commandService",void 0),n.__decorate([(0,r.Autowired)(o.PreferenceSchemaProvider),n.__metadata("design:type",o.PreferenceSchemaProvider)],Q.prototype,"preferenceSchemaProvider",void 0),n.__decorate([(0,r.Autowired)(o.IPreferenceSettingsService),n.__metadata("design:type",Object)],Q.prototype,"preferenceSettings",void 0),n.__decorate([(0,r.Autowired)(o.PreferenceService),n.__metadata("design:type",Object)],Q.prototype,"preferenceService",void 0),n.__decorate([(0,r.Autowired)(u.IMainLayoutService),n.__metadata("design:type",Object)],Q.prototype,"layoutService",void 0),n.__decorate([(0,r.Autowired)(b.ChatProxyServiceToken),n.__metadata("design:type",A.ChatProxyService)],Q.prototype,"chatProxyService",void 0),n.__decorate([(0,r.Autowired)(o.IAIInlineChatService),n.__metadata("design:type",X.InlineChatService)],Q.prototype,"aiInlineChatService",void 0),n.__decorate([(0,r.Autowired)(H.InlineInputService),n.__metadata("design:type",H.InlineInputService)],Q.prototype,"inlineInputService",void 0),n.__decorate([(0,r.Autowired)(K.InlineStreamDiffService),n.__metadata("design:type",K.InlineStreamDiffService)],Q.prototype,"inlineStreamDiffService",void 0),n.__decorate([(0,r.Autowired)(P.RenameSingleHandler),n.__metadata("design:type",P.RenameSingleHandler)],Q.prototype,"renameSingleHandler",void 0),n.__decorate([(0,r.Autowired)(T.CodeActionSingleHandler),n.__metadata("design:type",T.CodeActionSingleHandler)],Q.prototype,"codeActionSingleHandler",void 0),n.__decorate([(0,r.Autowired)(b.SumiMCPServerProxyServicePath),n.__metadata("design:type",Object)],Q.prototype,"sumiMCPServerBackendProxy",void 0),n.__decorate([(0,r.Autowired)(g.WorkbenchEditorService),n.__metadata("design:type",h.WorkbenchEditorServiceImpl)],Q.prototype,"workbenchEditorService",void 0),n.__decorate([(0,r.Autowired)(b.IChatManagerService),n.__metadata("design:type",y.ChatManagerService)],Q.prototype,"chatManagerService",void 0),n.__decorate([(0,r.Autowired)(b.IChatInternalService),n.__metadata("design:type",S.ChatInternalService)],Q.prototype,"chatInternalService",void 0),n.__decorate([(0,r.Autowired)(B.BaseApplyService),n.__metadata("design:type",B.BaseApplyService)],Q.prototype,"applyService",void 0),t.AINativeBrowserContribution=Q=n.__decorate([(0,o.Domain)(o.ClientAppContribution,l.BrowserEditorContribution,o.CommandContribution,d.SettingContribution,o.KeybindingContribution,o.ComponentContribution,o.SlotRendererContribution,o.MonacoContribution),n.__metadata("design:paramtypes",[])],Q)},96366:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ApplyService=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(57517),p=e(19413),v=e(73974),m=e(51081);let _=class extends v.BaseApplyService{async doApply(g){const l=new o.URI(o.path.join(this.appConfig.workspaceDir,g.relativePath)),u=(await this.modelService.createModelReference(l)).instance.getMonacoModel().getValue();return{stream:await this.aiBackService.requestStream(`Merge all changes from the <update> snippet into the <code> below.
|
|
31214
|
+
${JSON.stringify(r,null,2)}`);const c=n[o]();return new Language(INTERNAL,c)})}}class LookaheadIterable{constructor(t,e,n){assertInternal(t),this[0]=e,this.language=n}get currentTypeId(){return C._ts_lookahead_iterator_current_symbol(this[0])}get currentType(){return this.language.types[this.currentTypeId]||"ERROR"}delete(){C._ts_lookahead_iterator_delete(this[0]),this[0]=0}resetState(t){return C._ts_lookahead_iterator_reset_state(this[0],t)}reset(t,e){return!!C._ts_lookahead_iterator_reset(this[0],t[0],e)&&(this.language=t,!0)}[Symbol.iterator](){const t=this;return{next:()=>C._ts_lookahead_iterator_next(t[0])?{done:!1,value:t.currentType}:{done:!0,value:""}}}}class Query{constructor(t,e,n,r,o,c,p,v){assertInternal(t),this[0]=e,this.captureNames=n,this.textPredicates=r,this.predicates=o,this.setProperties=c,this.assertedProperties=p,this.refutedProperties=v,this.exceededMatchLimit=!1}delete(){C._ts_query_delete(this[0]),this[0]=0}matches(t,{startPosition:e=ZERO_POINT,endPosition:n=ZERO_POINT,startIndex:r=0,endIndex:o=0,matchLimit:c=4294967295,maxStartDepth:p=4294967295}={}){if(typeof c!="number")throw new Error("Arguments must be numbers");marshalNode(t),C._ts_query_matches_wasm(this[0],t.tree[0],e.row,e.column,n.row,n.column,r,o,c,p);const v=getValue(TRANSFER_BUFFER,"i32"),m=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),_=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),s=new Array(v);this.exceededMatchLimit=!!_;let g=0,l=m;for(let h=0;h<v;h++){const u=getValue(l,"i32");l+=SIZE_OF_INT;const d=getValue(l,"i32");l+=SIZE_OF_INT;const E=new Array(d);if(l=unmarshalCaptures(this,t.tree,l,E),this.textPredicates[u].every(f=>f(E))){s[g]={pattern:u,captures:E};const f=this.setProperties[u];f&&(s[g].setProperties=f);const a=this.assertedProperties[u];a&&(s[g].assertedProperties=a);const b=this.refutedProperties[u];b&&(s[g].refutedProperties=b),g++}}return s.length=g,C._free(m),s}captures(t,{startPosition:e=ZERO_POINT,endPosition:n=ZERO_POINT,startIndex:r=0,endIndex:o=0,matchLimit:c=4294967295,maxStartDepth:p=4294967295}={}){if(typeof c!="number")throw new Error("Arguments must be numbers");marshalNode(t),C._ts_query_captures_wasm(this[0],t.tree[0],e.row,e.column,n.row,n.column,r,o,c,p);const v=getValue(TRANSFER_BUFFER,"i32"),m=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),_=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),s=[];this.exceededMatchLimit=!!_;const g=[];let l=m;for(let h=0;h<v;h++){const u=getValue(l,"i32");l+=SIZE_OF_INT;const d=getValue(l,"i32");l+=SIZE_OF_INT;const E=getValue(l,"i32");if(l+=SIZE_OF_INT,g.length=d,l=unmarshalCaptures(this,t.tree,l,g),this.textPredicates[u].every(f=>f(g))){const f=g[E],a=this.setProperties[u];a&&(f.setProperties=a);const b=this.assertedProperties[u];b&&(f.assertedProperties=b);const y=this.refutedProperties[u];y&&(f.refutedProperties=y),s.push(f)}}return C._free(m),s}predicatesForPattern(t){return this.predicates[t]}disableCapture(t){const e=lengthBytesUTF8(t),n=C._malloc(e+1);stringToUTF8(t,n,e+1),C._ts_query_disable_capture(this[0],n,e),C._free(n)}didExceedMatchLimit(){return this.exceededMatchLimit}}function getText(x,t,e){const n=e-t;let r=x.textCallback(t,null,e);for(t+=r.length;t<e;){const o=x.textCallback(t,null,e);if(!(o&&o.length>0))break;t+=o.length,r+=o}return t>e&&(r=r.slice(0,n)),r}function unmarshalCaptures(x,t,e,n){for(let r=0,o=n.length;r<o;r++){const c=getValue(e,"i32"),p=unmarshalNode(t,e+=SIZE_OF_INT);e+=SIZE_OF_NODE,n[r]={name:x.captureNames[c],node:p}}return e}function assertInternal(x){if(x!==INTERNAL)throw new Error("Illegal constructor")}function isPoint(x){return x&&typeof x.row=="number"&&typeof x.column=="number"}function marshalNode(x){let t=TRANSFER_BUFFER;setValue(t,x.id,"i32"),t+=SIZE_OF_INT,setValue(t,x.startIndex,"i32"),t+=SIZE_OF_INT,setValue(t,x.startPosition.row,"i32"),t+=SIZE_OF_INT,setValue(t,x.startPosition.column,"i32"),t+=SIZE_OF_INT,setValue(t,x[0],"i32")}function unmarshalNode(x,t=TRANSFER_BUFFER){const e=getValue(t,"i32");if(e===0)return null;const n=getValue(t+=SIZE_OF_INT,"i32"),r=getValue(t+=SIZE_OF_INT,"i32"),o=getValue(t+=SIZE_OF_INT,"i32"),c=getValue(t+=SIZE_OF_INT,"i32"),p=new Node(INTERNAL,x);return p.id=e,p.startIndex=n,p.startPosition={row:r,column:o},p[0]=c,p}function marshalTreeCursor(x,t=TRANSFER_BUFFER){setValue(t+0*SIZE_OF_INT,x[0],"i32"),setValue(t+1*SIZE_OF_INT,x[1],"i32"),setValue(t+2*SIZE_OF_INT,x[2],"i32"),setValue(t+3*SIZE_OF_INT,x[3],"i32")}function unmarshalTreeCursor(x){x[0]=getValue(TRANSFER_BUFFER+0*SIZE_OF_INT,"i32"),x[1]=getValue(TRANSFER_BUFFER+1*SIZE_OF_INT,"i32"),x[2]=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),x[3]=getValue(TRANSFER_BUFFER+3*SIZE_OF_INT,"i32")}function marshalPoint(x,t){setValue(x,t.row,"i32"),setValue(x+SIZE_OF_INT,t.column,"i32")}function unmarshalPoint(x){return{row:getValue(x,"i32")>>>0,column:getValue(x+SIZE_OF_INT,"i32")>>>0}}function marshalRange(x,t){marshalPoint(x,t.startPosition),marshalPoint(x+=SIZE_OF_POINT,t.endPosition),setValue(x+=SIZE_OF_POINT,t.startIndex,"i32"),setValue(x+=SIZE_OF_INT,t.endIndex,"i32"),x+=SIZE_OF_INT}function unmarshalRange(x){const t={};return t.startPosition=unmarshalPoint(x),x+=SIZE_OF_POINT,t.endPosition=unmarshalPoint(x),x+=SIZE_OF_POINT,t.startIndex=getValue(x,"i32")>>>0,x+=SIZE_OF_INT,t.endIndex=getValue(x,"i32")>>>0,t}function marshalEdit(x){let t=TRANSFER_BUFFER;marshalPoint(t,x.startPosition),t+=SIZE_OF_POINT,marshalPoint(t,x.oldEndPosition),t+=SIZE_OF_POINT,marshalPoint(t,x.newEndPosition),t+=SIZE_OF_POINT,setValue(t,x.startIndex,"i32"),t+=SIZE_OF_INT,setValue(t,x.oldEndIndex,"i32"),t+=SIZE_OF_INT,setValue(t,x.newEndIndex,"i32"),t+=SIZE_OF_INT}for(const x of Object.getOwnPropertyNames(ParserImpl.prototype))Object.defineProperty(Parser.prototype,x,{value:ParserImpl.prototype[x],enumerable:!1,writable:!1});Parser.Language=Language,Module.onRuntimeInitialized=()=>{ParserImpl.init(),resolveInitPromise()}}))}}return Parser}();module.exports=TreeSitter},52730:(x,t,e)=>{"use strict";var n=e(80705),r=e(14834),o=e(28498),c=e(79818),p=e(69336),v=c("Object.prototype.toString"),m=e(51913)(),_=typeof globalThis>"u"?e.g:globalThis,s=r(),g=c("String.prototype.slice"),l=Object.getPrototypeOf,h=c("Array.prototype.indexOf",!0)||function(a,b){for(var y=0;y<a.length;y+=1)if(a[y]===b)return y;return-1},u={__proto__:null};m&&p&&l?n(s,function(f){var a=new _[f];if(Symbol.toStringTag in a){var b=l(a),y=p(b,Symbol.toStringTag);if(!y){var A=l(b);y=p(A,Symbol.toStringTag)}u["$"+f]=o(y.get)}}):n(s,function(f){var a=new _[f],b=a.slice||a.set;b&&(u["$"+f]=o(b))});var d=function(a){var b=!1;return n(u,function(y,A){if(!b)try{"$"+y(a)===A&&(b=g(A,1))}catch{}}),b},E=function(a){var b=!1;return n(u,function(y,A){if(!b)try{y(a),b=g(A,1)}catch{}}),b};x.exports=function(a){if(!a||typeof a!="object")return!1;if(!m){var b=g(v(a),8,-1);return h(s,b)>-1?b:b!=="Object"?!1:E(a)}return p?d(a):null}},97442:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ZodError=t.quotelessJson=t.ZodIssueCode=void 0;const n=e(94705);t.ZodIssueCode=n.util.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);const r=c=>JSON.stringify(c,null,2).replace(/"([^"]+)":/g,"$1:");t.quotelessJson=r;class o extends Error{get errors(){return this.issues}constructor(p){super(),this.issues=[],this.addIssue=m=>{this.issues=[...this.issues,m]},this.addIssues=(m=[])=>{this.issues=[...this.issues,...m]};const v=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,v):this.__proto__=v,this.name="ZodError",this.issues=p}format(p){const v=p||function(s){return s.message},m={_errors:[]},_=s=>{for(const g of s.issues)if(g.code==="invalid_union")g.unionErrors.map(_);else if(g.code==="invalid_return_type")_(g.returnTypeError);else if(g.code==="invalid_arguments")_(g.argumentsError);else if(g.path.length===0)m._errors.push(v(g));else{let l=m,h=0;for(;h<g.path.length;){const u=g.path[h];h===g.path.length-1?(l[u]=l[u]||{_errors:[]},l[u]._errors.push(v(g))):l[u]=l[u]||{_errors:[]},l=l[u],h++}}};return _(this),m}static assert(p){if(!(p instanceof o))throw new Error(`Not a ZodError: ${p}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,n.util.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(p=v=>v.message){const v={},m=[];for(const _ of this.issues)_.path.length>0?(v[_.path[0]]=v[_.path[0]]||[],v[_.path[0]].push(p(_))):m.push(p(_));return{formErrors:m,fieldErrors:v}}get formErrors(){return this.flatten()}}t.ZodError=o,o.create=c=>new o(c)},30548:function(x,t,e){"use strict";var n=this&&this.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};Object.defineProperty(t,"__esModule",{value:!0}),t.getErrorMap=t.setErrorMap=t.defaultErrorMap=void 0;const r=n(e(28412));t.defaultErrorMap=r.default;let o=r.default;function c(v){o=v}t.setErrorMap=c;function p(){return o}t.getErrorMap=p},86340:function(x,t,e){"use strict";var n=this&&this.__createBinding||(Object.create?function(o,c,p,v){v===void 0&&(v=p);var m=Object.getOwnPropertyDescriptor(c,p);(!m||("get"in m?!c.__esModule:m.writable||m.configurable))&&(m={enumerable:!0,get:function(){return c[p]}}),Object.defineProperty(o,v,m)}:function(o,c,p,v){v===void 0&&(v=p),o[v]=c[p]}),r=this&&this.__exportStar||function(o,c){for(var p in o)p!=="default"&&!Object.prototype.hasOwnProperty.call(c,p)&&n(c,o,p)};Object.defineProperty(t,"__esModule",{value:!0}),r(e(30548),t),r(e(66258),t),r(e(29201),t),r(e(94705),t),r(e(75226),t),r(e(97442),t)},15759:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.errorUtil=void 0;var e;(function(n){n.errToObj=r=>typeof r=="string"?{message:r}:r||{},n.toString=r=>typeof r=="string"?r:r?.message})(e||(t.errorUtil=e={}))},66258:function(x,t,e){"use strict";var n=this&&this.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(t,"__esModule",{value:!0}),t.isAsync=t.isValid=t.isDirty=t.isAborted=t.OK=t.DIRTY=t.INVALID=t.ParseStatus=t.addIssueToContext=t.EMPTY_PATH=t.makeIssue=void 0;const r=e(30548),o=n(e(28412)),c=u=>{const{data:d,path:E,errorMaps:f,issueData:a}=u,b=[...E,...a.path||[]],y={...a,path:b};if(a.message!==void 0)return{...a,path:b,message:a.message};let A="";const S=f.filter(w=>!!w).slice().reverse();for(const w of S)A=w(y,{data:d,defaultError:A}).message;return{...a,path:b,message:A}};t.makeIssue=c,t.EMPTY_PATH=[];function p(u,d){const E=(0,r.getErrorMap)(),f=(0,t.makeIssue)({issueData:d,data:u.data,path:u.path,errorMaps:[u.common.contextualErrorMap,u.schemaErrorMap,E,E===o.default?void 0:o.default].filter(a=>!!a)});u.common.issues.push(f)}t.addIssueToContext=p;class v{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(d,E){const f=[];for(const a of E){if(a.status==="aborted")return t.INVALID;a.status==="dirty"&&d.dirty(),f.push(a.value)}return{status:d.value,value:f}}static async mergeObjectAsync(d,E){const f=[];for(const a of E){const b=await a.key,y=await a.value;f.push({key:b,value:y})}return v.mergeObjectSync(d,f)}static mergeObjectSync(d,E){const f={};for(const a of E){const{key:b,value:y}=a;if(b.status==="aborted"||y.status==="aborted")return t.INVALID;b.status==="dirty"&&d.dirty(),y.status==="dirty"&&d.dirty(),b.value!=="__proto__"&&(typeof y.value<"u"||a.alwaysSet)&&(f[b.value]=y.value)}return{status:d.value,value:f}}}t.ParseStatus=v,t.INVALID=Object.freeze({status:"aborted"});const m=u=>({status:"dirty",value:u});t.DIRTY=m;const _=u=>({status:"valid",value:u});t.OK=_;const s=u=>u.status==="aborted";t.isAborted=s;const g=u=>u.status==="dirty";t.isDirty=g;const l=u=>u.status==="valid";t.isValid=l;const h=u=>typeof Promise<"u"&&u instanceof Promise;t.isAsync=h},29201:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},94705:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getParsedType=t.ZodParsedType=t.objectUtil=t.util=void 0;var e;(function(o){o.assertEqual=m=>m;function c(m){}o.assertIs=c;function p(m){throw new Error}o.assertNever=p,o.arrayToEnum=m=>{const _={};for(const s of m)_[s]=s;return _},o.getValidEnumValues=m=>{const _=o.objectKeys(m).filter(g=>typeof m[m[g]]!="number"),s={};for(const g of _)s[g]=m[g];return o.objectValues(s)},o.objectValues=m=>o.objectKeys(m).map(function(_){return m[_]}),o.objectKeys=typeof Object.keys=="function"?m=>Object.keys(m):m=>{const _=[];for(const s in m)Object.prototype.hasOwnProperty.call(m,s)&&_.push(s);return _},o.find=(m,_)=>{for(const s of m)if(_(s))return s},o.isInteger=typeof Number.isInteger=="function"?m=>Number.isInteger(m):m=>typeof m=="number"&&isFinite(m)&&Math.floor(m)===m;function v(m,_=" | "){return m.map(s=>typeof s=="string"?`'${s}'`:s).join(_)}o.joinValues=v,o.jsonStringifyReplacer=(m,_)=>typeof _=="bigint"?_.toString():_})(e||(t.util=e={}));var n;(function(o){o.mergeShapes=(c,p)=>({...c,...p})})(n||(t.objectUtil=n={})),t.ZodParsedType=e.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]);const r=o=>{switch(typeof o){case"undefined":return t.ZodParsedType.undefined;case"string":return t.ZodParsedType.string;case"number":return isNaN(o)?t.ZodParsedType.nan:t.ZodParsedType.number;case"boolean":return t.ZodParsedType.boolean;case"function":return t.ZodParsedType.function;case"bigint":return t.ZodParsedType.bigint;case"symbol":return t.ZodParsedType.symbol;case"object":return Array.isArray(o)?t.ZodParsedType.array:o===null?t.ZodParsedType.null:o.then&&typeof o.then=="function"&&o.catch&&typeof o.catch=="function"?t.ZodParsedType.promise:typeof Map<"u"&&o instanceof Map?t.ZodParsedType.map:typeof Set<"u"&&o instanceof Set?t.ZodParsedType.set:typeof Date<"u"&&o instanceof Date?t.ZodParsedType.date:t.ZodParsedType.object;default:return t.ZodParsedType.unknown}};t.getParsedType=r},75995:function(x,t,e){"use strict";var n=this&&this.__createBinding||(Object.create?function(v,m,_,s){s===void 0&&(s=_);var g=Object.getOwnPropertyDescriptor(m,_);(!g||("get"in g?!m.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return m[_]}}),Object.defineProperty(v,s,g)}:function(v,m,_,s){s===void 0&&(s=_),v[s]=m[_]}),r=this&&this.__setModuleDefault||(Object.create?function(v,m){Object.defineProperty(v,"default",{enumerable:!0,value:m})}:function(v,m){v.default=m}),o=this&&this.__importStar||function(v){if(v&&v.__esModule)return v;var m={};if(v!=null)for(var _ in v)_!=="default"&&Object.prototype.hasOwnProperty.call(v,_)&&n(m,v,_);return r(m,v),m},c=this&&this.__exportStar||function(v,m){for(var _ in v)_!=="default"&&!Object.prototype.hasOwnProperty.call(m,_)&&n(m,v,_)};Object.defineProperty(t,"__esModule",{value:!0}),t.z=void 0;const p=o(e(86340));t.z=p,c(e(86340),t),t.default=p},28412:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(94705),r=e(97442),o=(c,p)=>{let v;switch(c.code){case r.ZodIssueCode.invalid_type:c.received===n.ZodParsedType.undefined?v="Required":v=`Expected ${c.expected}, received ${c.received}`;break;case r.ZodIssueCode.invalid_literal:v=`Invalid literal value, expected ${JSON.stringify(c.expected,n.util.jsonStringifyReplacer)}`;break;case r.ZodIssueCode.unrecognized_keys:v=`Unrecognized key(s) in object: ${n.util.joinValues(c.keys,", ")}`;break;case r.ZodIssueCode.invalid_union:v="Invalid input";break;case r.ZodIssueCode.invalid_union_discriminator:v=`Invalid discriminator value. Expected ${n.util.joinValues(c.options)}`;break;case r.ZodIssueCode.invalid_enum_value:v=`Invalid enum value. Expected ${n.util.joinValues(c.options)}, received '${c.received}'`;break;case r.ZodIssueCode.invalid_arguments:v="Invalid function arguments";break;case r.ZodIssueCode.invalid_return_type:v="Invalid function return type";break;case r.ZodIssueCode.invalid_date:v="Invalid date";break;case r.ZodIssueCode.invalid_string:typeof c.validation=="object"?"includes"in c.validation?(v=`Invalid input: must include "${c.validation.includes}"`,typeof c.validation.position=="number"&&(v=`${v} at one or more positions greater than or equal to ${c.validation.position}`)):"startsWith"in c.validation?v=`Invalid input: must start with "${c.validation.startsWith}"`:"endsWith"in c.validation?v=`Invalid input: must end with "${c.validation.endsWith}"`:n.util.assertNever(c.validation):c.validation!=="regex"?v=`Invalid ${c.validation}`:v="Invalid";break;case r.ZodIssueCode.too_small:c.type==="array"?v=`Array must contain ${c.exact?"exactly":c.inclusive?"at least":"more than"} ${c.minimum} element(s)`:c.type==="string"?v=`String must contain ${c.exact?"exactly":c.inclusive?"at least":"over"} ${c.minimum} character(s)`:c.type==="number"?v=`Number must be ${c.exact?"exactly equal to ":c.inclusive?"greater than or equal to ":"greater than "}${c.minimum}`:c.type==="date"?v=`Date must be ${c.exact?"exactly equal to ":c.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(c.minimum))}`:v="Invalid input";break;case r.ZodIssueCode.too_big:c.type==="array"?v=`Array must contain ${c.exact?"exactly":c.inclusive?"at most":"less than"} ${c.maximum} element(s)`:c.type==="string"?v=`String must contain ${c.exact?"exactly":c.inclusive?"at most":"under"} ${c.maximum} character(s)`:c.type==="number"?v=`Number must be ${c.exact?"exactly":c.inclusive?"less than or equal to":"less than"} ${c.maximum}`:c.type==="bigint"?v=`BigInt must be ${c.exact?"exactly":c.inclusive?"less than or equal to":"less than"} ${c.maximum}`:c.type==="date"?v=`Date must be ${c.exact?"exactly":c.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(c.maximum))}`:v="Invalid input";break;case r.ZodIssueCode.custom:v="Invalid input";break;case r.ZodIssueCode.invalid_intersection_types:v="Intersection results could not be merged";break;case r.ZodIssueCode.not_multiple_of:v=`Number must be a multiple of ${c.multipleOf}`;break;case r.ZodIssueCode.not_finite:v="Number must be finite";break;default:v=p.defaultError,n.util.assertNever(c)}return{message:v}};t.default=o},75226:function(x,t,e){"use strict";var n=this&&this.__classPrivateFieldGet||function(nn,tt,Kt,qt){if(Kt==="a"&&!qt)throw new TypeError("Private accessor was defined without a getter");if(typeof tt=="function"?nn!==tt||!qt:!tt.has(nn))throw new TypeError("Cannot read private member from an object whose class did not declare it");return Kt==="m"?qt:Kt==="a"?qt.call(nn):qt?qt.value:tt.get(nn)},r=this&&this.__classPrivateFieldSet||function(nn,tt,Kt,qt,In){if(qt==="m")throw new TypeError("Private method is not writable");if(qt==="a"&&!In)throw new TypeError("Private accessor was defined without a setter");if(typeof tt=="function"?nn!==tt||!In:!tt.has(nn))throw new TypeError("Cannot write private member to an object whose class did not declare it");return qt==="a"?In.call(nn,Kt):In?In.value=Kt:tt.set(nn,Kt),Kt},o,c;Object.defineProperty(t,"__esModule",{value:!0}),t.boolean=t.bigint=t.array=t.any=t.coerce=t.ZodFirstPartyTypeKind=t.late=t.ZodSchema=t.Schema=t.custom=t.ZodReadonly=t.ZodPipeline=t.ZodBranded=t.BRAND=t.ZodNaN=t.ZodCatch=t.ZodDefault=t.ZodNullable=t.ZodOptional=t.ZodTransformer=t.ZodEffects=t.ZodPromise=t.ZodNativeEnum=t.ZodEnum=t.ZodLiteral=t.ZodLazy=t.ZodFunction=t.ZodSet=t.ZodMap=t.ZodRecord=t.ZodTuple=t.ZodIntersection=t.ZodDiscriminatedUnion=t.ZodUnion=t.ZodObject=t.ZodArray=t.ZodVoid=t.ZodNever=t.ZodUnknown=t.ZodAny=t.ZodNull=t.ZodUndefined=t.ZodSymbol=t.ZodDate=t.ZodBoolean=t.ZodBigInt=t.ZodNumber=t.ZodString=t.datetimeRegex=t.ZodType=void 0,t.NEVER=t.void=t.unknown=t.union=t.undefined=t.tuple=t.transformer=t.symbol=t.string=t.strictObject=t.set=t.record=t.promise=t.preprocess=t.pipeline=t.ostring=t.optional=t.onumber=t.oboolean=t.object=t.number=t.nullable=t.null=t.never=t.nativeEnum=t.nan=t.map=t.literal=t.lazy=t.intersection=t.instanceof=t.function=t.enum=t.effect=t.discriminatedUnion=t.date=void 0;const p=e(30548),v=e(15759),m=e(66258),_=e(94705),s=e(97442);class g{constructor(tt,Kt,qt,In){this._cachedPath=[],this.parent=tt,this.data=Kt,this._path=qt,this._key=In}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const l=(nn,tt)=>{if((0,m.isValid)(tt))return{success:!0,data:tt.value};if(!nn.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const Kt=new s.ZodError(nn.common.issues);return this._error=Kt,this._error}}};function h(nn){if(!nn)return{};const{errorMap:tt,invalid_type_error:Kt,required_error:qt,description:In}=nn;if(tt&&(Kt||qt))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return tt?{errorMap:tt,description:In}:{errorMap:(Bi,Mi)=>{var Xi,bi;const{message:Zi}=nn;return Bi.code==="invalid_enum_value"?{message:Zi??Mi.defaultError}:typeof Mi.data>"u"?{message:(Xi=Zi??qt)!==null&&Xi!==void 0?Xi:Mi.defaultError}:Bi.code!=="invalid_type"?{message:Mi.defaultError}:{message:(bi=Zi??Kt)!==null&&bi!==void 0?bi:Mi.defaultError}},description:In}}class u{get description(){return this._def.description}_getType(tt){return(0,_.getParsedType)(tt.data)}_getOrReturnCtx(tt,Kt){return Kt||{common:tt.parent.common,data:tt.data,parsedType:(0,_.getParsedType)(tt.data),schemaErrorMap:this._def.errorMap,path:tt.path,parent:tt.parent}}_processInputParams(tt){return{status:new m.ParseStatus,ctx:{common:tt.parent.common,data:tt.data,parsedType:(0,_.getParsedType)(tt.data),schemaErrorMap:this._def.errorMap,path:tt.path,parent:tt.parent}}}_parseSync(tt){const Kt=this._parse(tt);if((0,m.isAsync)(Kt))throw new Error("Synchronous parse encountered promise.");return Kt}_parseAsync(tt){const Kt=this._parse(tt);return Promise.resolve(Kt)}parse(tt,Kt){const qt=this.safeParse(tt,Kt);if(qt.success)return qt.data;throw qt.error}safeParse(tt,Kt){var qt;const In={common:{issues:[],async:(qt=Kt?.async)!==null&&qt!==void 0?qt:!1,contextualErrorMap:Kt?.errorMap},path:Kt?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:tt,parsedType:(0,_.getParsedType)(tt)},Un=this._parseSync({data:tt,path:In.path,parent:In});return l(In,Un)}"~validate"(tt){var Kt,qt;const In={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:tt,parsedType:(0,_.getParsedType)(tt)};if(!this["~standard"].async)try{const Un=this._parseSync({data:tt,path:[],parent:In});return(0,m.isValid)(Un)?{value:Un.value}:{issues:In.common.issues}}catch(Un){!((qt=(Kt=Un?.message)===null||Kt===void 0?void 0:Kt.toLowerCase())===null||qt===void 0)&&qt.includes("encountered")&&(this["~standard"].async=!0),In.common={issues:[],async:!0}}return this._parseAsync({data:tt,path:[],parent:In}).then(Un=>(0,m.isValid)(Un)?{value:Un.value}:{issues:In.common.issues})}async parseAsync(tt,Kt){const qt=await this.safeParseAsync(tt,Kt);if(qt.success)return qt.data;throw qt.error}async safeParseAsync(tt,Kt){const qt={common:{issues:[],contextualErrorMap:Kt?.errorMap,async:!0},path:Kt?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:tt,parsedType:(0,_.getParsedType)(tt)},In=this._parse({data:tt,path:qt.path,parent:qt}),Un=await((0,m.isAsync)(In)?In:Promise.resolve(In));return l(qt,Un)}refine(tt,Kt){const qt=In=>typeof Kt=="string"||typeof Kt>"u"?{message:Kt}:typeof Kt=="function"?Kt(In):Kt;return this._refinement((In,Un)=>{const Bi=tt(In),Mi=()=>Un.addIssue({code:s.ZodIssueCode.custom,...qt(In)});return typeof Promise<"u"&&Bi instanceof Promise?Bi.then(Xi=>Xi?!0:(Mi(),!1)):Bi?!0:(Mi(),!1)})}refinement(tt,Kt){return this._refinement((qt,In)=>tt(qt)?!0:(In.addIssue(typeof Kt=="function"?Kt(qt,In):Kt),!1))}_refinement(tt){return new Ge({schema:this,typeName:yt.ZodEffects,effect:{type:"refinement",refinement:tt}})}superRefine(tt){return this._refinement(tt)}constructor(tt){this.spa=this.safeParseAsync,this._def=tt,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:Kt=>this["~validate"](Kt)}}optional(){return Ke.create(this,this._def)}nullable(){return ft.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return be.create(this)}promise(){return Fe.create(this,this._def)}or(tt){return ge.create([this,tt],this._def)}and(tt){return we.create(this,tt,this._def)}transform(tt){return new Ge({...h(this._def),schema:this,typeName:yt.ZodEffects,effect:{type:"transform",transform:tt}})}default(tt){const Kt=typeof tt=="function"?tt:()=>tt;return new ot({...h(this._def),innerType:this,defaultValue:Kt,typeName:yt.ZodDefault})}brand(){return new At({typeName:yt.ZodBranded,type:this,...h(this._def)})}catch(tt){const Kt=typeof tt=="function"?tt:()=>tt;return new Mt({...h(this._def),innerType:this,catchValue:Kt,typeName:yt.ZodCatch})}describe(tt){const Kt=this.constructor;return new Kt({...this._def,description:tt})}pipe(tt){return rt.create(this,tt)}readonly(){return st.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}t.ZodType=u,t.Schema=u,t.ZodSchema=u;const d=/^c[^\s-]{8,}$/i,E=/^[0-9a-z]+$/,f=/^[0-9A-HJKMNP-TV-Z]{26}$/i,a=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,b=/^[a-z0-9_-]{21}$/i,y=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,A=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,S=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,w="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let T;const D=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,I=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,O=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,M=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,R=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,P=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,k="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",F=new RegExp(`^${k}$`);function L(nn){let tt="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return nn.precision?tt=`${tt}\\.\\d{${nn.precision}}`:nn.precision==null&&(tt=`${tt}(\\.\\d+)?`),tt}function B(nn){return new RegExp(`^${L(nn)}$`)}function j(nn){let tt=`${k}T${L(nn)}`;const Kt=[];return Kt.push(nn.local?"Z?":"Z"),nn.offset&&Kt.push("([+-]\\d{2}:?\\d{2})"),tt=`${tt}(${Kt.join("|")})`,new RegExp(`^${tt}$`)}t.datetimeRegex=j;function W(nn,tt){return!!((tt==="v4"||!tt)&&D.test(nn)||(tt==="v6"||!tt)&&O.test(nn))}function U(nn,tt){if(!y.test(nn))return!1;try{const[Kt]=nn.split("."),qt=Kt.replace(/-/g,"+").replace(/_/g,"/").padEnd(Kt.length+(4-Kt.length%4)%4,"="),In=JSON.parse(atob(qt));return!(typeof In!="object"||In===null||!In.typ||!In.alg||tt&&In.alg!==tt)}catch{return!1}}function X(nn,tt){return!!((tt==="v4"||!tt)&&I.test(nn)||(tt==="v6"||!tt)&&M.test(nn))}class V extends u{_parse(tt){if(this._def.coerce&&(tt.data=String(tt.data)),this._getType(tt)!==_.ZodParsedType.string){const Un=this._getOrReturnCtx(tt);return(0,m.addIssueToContext)(Un,{code:s.ZodIssueCode.invalid_type,expected:_.ZodParsedType.string,received:Un.parsedType}),m.INVALID}const qt=new m.ParseStatus;let In;for(const Un of this._def.checks)if(Un.kind==="min")tt.data.length<Un.value&&(In=this._getOrReturnCtx(tt,In),(0,m.addIssueToContext)(In,{code:s.ZodIssueCode.too_small,minimum:Un.value,type:"string",inclusive:!0,exact:!1,message:Un.message}),qt.dirty());else if(Un.kind==="max")tt.data.length>Un.value&&(In=this._getOrReturnCtx(tt,In),(0,m.addIssueToContext)(In,{code:s.ZodIssueCode.too_big,maximum:Un.value,type:"string",inclusive:!0,exact:!1,message:Un.message}),qt.dirty());else if(Un.kind==="length"){const Bi=tt.data.length>Un.value,Mi=tt.data.length<Un.value;(Bi||Mi)&&(In=this._getOrReturnCtx(tt,In),Bi?(0,m.addIssueToContext)(In,{code:s.ZodIssueCode.too_big,maximum:Un.value,type:"string",inclusive:!0,exact:!0,message:Un.message}):Mi&&(0,m.addIssueToContext)(In,{code:s.ZodIssueCode.too_small,minimum:Un.value,type:"string",inclusive:!0,exact:!0,message:Un.message}),qt.dirty())}else if(Un.kind==="email")S.test(tt.data)||(In=this._getOrReturnCtx(tt,In),(0,m.addIssueToContext)(In,{validation:"email",code:s.ZodIssueCode.invalid_string,message:Un.message}),qt.dirty());else if(Un.kind==="emoji")T||(T=new RegExp(w,"u")),T.test(tt.data)||(In=this._getOrReturnCtx(tt,In),(0,m.addIssueToContext)(In,{validation:"emoji",code:s.ZodIssueCode.invalid_string,message:Un.message}),qt.dirty());else if(Un.kind==="uuid")a.test(tt.data)||(In=this._getOrReturnCtx(tt,In),(0,m.addIssueToContext)(In,{validation:"uuid",code:s.ZodIssueCode.invalid_string,message:Un.message}),qt.dirty());else if(Un.kind==="nanoid")b.test(tt.data)||(In=this._getOrReturnCtx(tt,In),(0,m.addIssueToContext)(In,{validation:"nanoid",code:s.ZodIssueCode.invalid_string,message:Un.message}),qt.dirty());else if(Un.kind==="cuid")d.test(tt.data)||(In=this._getOrReturnCtx(tt,In),(0,m.addIssueToContext)(In,{validation:"cuid",code:s.ZodIssueCode.invalid_string,message:Un.message}),qt.dirty());else if(Un.kind==="cuid2")E.test(tt.data)||(In=this._getOrReturnCtx(tt,In),(0,m.addIssueToContext)(In,{validation:"cuid2",code:s.ZodIssueCode.invalid_string,message:Un.message}),qt.dirty());else if(Un.kind==="ulid")f.test(tt.data)||(In=this._getOrReturnCtx(tt,In),(0,m.addIssueToContext)(In,{validation:"ulid",code:s.ZodIssueCode.invalid_string,message:Un.message}),qt.dirty());else if(Un.kind==="url")try{new URL(tt.data)}catch{In=this._getOrReturnCtx(tt,In),(0,m.addIssueToContext)(In,{validation:"url",code:s.ZodIssueCode.invalid_string,message:Un.message}),qt.dirty()}else Un.kind==="regex"?(Un.regex.lastIndex=0,Un.regex.test(tt.data)||(In=this._getOrReturnCtx(tt,In),(0,m.addIssueToContext)(In,{validation:"regex",code:s.ZodIssueCode.invalid_string,message:Un.message}),qt.dirty())):Un.kind==="trim"?tt.data=tt.data.trim():Un.kind==="includes"?tt.data.includes(Un.value,Un.position)||(In=this._getOrReturnCtx(tt,In),(0,m.addIssueToContext)(In,{code:s.ZodIssueCode.invalid_string,validation:{includes:Un.value,position:Un.position},message:Un.message}),qt.dirty()):Un.kind==="toLowerCase"?tt.data=tt.data.toLowerCase():Un.kind==="toUpperCase"?tt.data=tt.data.toUpperCase():Un.kind==="startsWith"?tt.data.startsWith(Un.value)||(In=this._getOrReturnCtx(tt,In),(0,m.addIssueToContext)(In,{code:s.ZodIssueCode.invalid_string,validation:{startsWith:Un.value},message:Un.message}),qt.dirty()):Un.kind==="endsWith"?tt.data.endsWith(Un.value)||(In=this._getOrReturnCtx(tt,In),(0,m.addIssueToContext)(In,{code:s.ZodIssueCode.invalid_string,validation:{endsWith:Un.value},message:Un.message}),qt.dirty()):Un.kind==="datetime"?j(Un).test(tt.data)||(In=this._getOrReturnCtx(tt,In),(0,m.addIssueToContext)(In,{code:s.ZodIssueCode.invalid_string,validation:"datetime",message:Un.message}),qt.dirty()):Un.kind==="date"?F.test(tt.data)||(In=this._getOrReturnCtx(tt,In),(0,m.addIssueToContext)(In,{code:s.ZodIssueCode.invalid_string,validation:"date",message:Un.message}),qt.dirty()):Un.kind==="time"?B(Un).test(tt.data)||(In=this._getOrReturnCtx(tt,In),(0,m.addIssueToContext)(In,{code:s.ZodIssueCode.invalid_string,validation:"time",message:Un.message}),qt.dirty()):Un.kind==="duration"?A.test(tt.data)||(In=this._getOrReturnCtx(tt,In),(0,m.addIssueToContext)(In,{validation:"duration",code:s.ZodIssueCode.invalid_string,message:Un.message}),qt.dirty()):Un.kind==="ip"?W(tt.data,Un.version)||(In=this._getOrReturnCtx(tt,In),(0,m.addIssueToContext)(In,{validation:"ip",code:s.ZodIssueCode.invalid_string,message:Un.message}),qt.dirty()):Un.kind==="jwt"?U(tt.data,Un.alg)||(In=this._getOrReturnCtx(tt,In),(0,m.addIssueToContext)(In,{validation:"jwt",code:s.ZodIssueCode.invalid_string,message:Un.message}),qt.dirty()):Un.kind==="cidr"?X(tt.data,Un.version)||(In=this._getOrReturnCtx(tt,In),(0,m.addIssueToContext)(In,{validation:"cidr",code:s.ZodIssueCode.invalid_string,message:Un.message}),qt.dirty()):Un.kind==="base64"?R.test(tt.data)||(In=this._getOrReturnCtx(tt,In),(0,m.addIssueToContext)(In,{validation:"base64",code:s.ZodIssueCode.invalid_string,message:Un.message}),qt.dirty()):Un.kind==="base64url"?P.test(tt.data)||(In=this._getOrReturnCtx(tt,In),(0,m.addIssueToContext)(In,{validation:"base64url",code:s.ZodIssueCode.invalid_string,message:Un.message}),qt.dirty()):_.util.assertNever(Un);return{status:qt.value,value:tt.data}}_regex(tt,Kt,qt){return this.refinement(In=>tt.test(In),{validation:Kt,code:s.ZodIssueCode.invalid_string,...v.errorUtil.errToObj(qt)})}_addCheck(tt){return new V({...this._def,checks:[...this._def.checks,tt]})}email(tt){return this._addCheck({kind:"email",...v.errorUtil.errToObj(tt)})}url(tt){return this._addCheck({kind:"url",...v.errorUtil.errToObj(tt)})}emoji(tt){return this._addCheck({kind:"emoji",...v.errorUtil.errToObj(tt)})}uuid(tt){return this._addCheck({kind:"uuid",...v.errorUtil.errToObj(tt)})}nanoid(tt){return this._addCheck({kind:"nanoid",...v.errorUtil.errToObj(tt)})}cuid(tt){return this._addCheck({kind:"cuid",...v.errorUtil.errToObj(tt)})}cuid2(tt){return this._addCheck({kind:"cuid2",...v.errorUtil.errToObj(tt)})}ulid(tt){return this._addCheck({kind:"ulid",...v.errorUtil.errToObj(tt)})}base64(tt){return this._addCheck({kind:"base64",...v.errorUtil.errToObj(tt)})}base64url(tt){return this._addCheck({kind:"base64url",...v.errorUtil.errToObj(tt)})}jwt(tt){return this._addCheck({kind:"jwt",...v.errorUtil.errToObj(tt)})}ip(tt){return this._addCheck({kind:"ip",...v.errorUtil.errToObj(tt)})}cidr(tt){return this._addCheck({kind:"cidr",...v.errorUtil.errToObj(tt)})}datetime(tt){var Kt,qt;return typeof tt=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:tt}):this._addCheck({kind:"datetime",precision:typeof tt?.precision>"u"?null:tt?.precision,offset:(Kt=tt?.offset)!==null&&Kt!==void 0?Kt:!1,local:(qt=tt?.local)!==null&&qt!==void 0?qt:!1,...v.errorUtil.errToObj(tt?.message)})}date(tt){return this._addCheck({kind:"date",message:tt})}time(tt){return typeof tt=="string"?this._addCheck({kind:"time",precision:null,message:tt}):this._addCheck({kind:"time",precision:typeof tt?.precision>"u"?null:tt?.precision,...v.errorUtil.errToObj(tt?.message)})}duration(tt){return this._addCheck({kind:"duration",...v.errorUtil.errToObj(tt)})}regex(tt,Kt){return this._addCheck({kind:"regex",regex:tt,...v.errorUtil.errToObj(Kt)})}includes(tt,Kt){return this._addCheck({kind:"includes",value:tt,position:Kt?.position,...v.errorUtil.errToObj(Kt?.message)})}startsWith(tt,Kt){return this._addCheck({kind:"startsWith",value:tt,...v.errorUtil.errToObj(Kt)})}endsWith(tt,Kt){return this._addCheck({kind:"endsWith",value:tt,...v.errorUtil.errToObj(Kt)})}min(tt,Kt){return this._addCheck({kind:"min",value:tt,...v.errorUtil.errToObj(Kt)})}max(tt,Kt){return this._addCheck({kind:"max",value:tt,...v.errorUtil.errToObj(Kt)})}length(tt,Kt){return this._addCheck({kind:"length",value:tt,...v.errorUtil.errToObj(Kt)})}nonempty(tt){return this.min(1,v.errorUtil.errToObj(tt))}trim(){return new V({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new V({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new V({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(tt=>tt.kind==="datetime")}get isDate(){return!!this._def.checks.find(tt=>tt.kind==="date")}get isTime(){return!!this._def.checks.find(tt=>tt.kind==="time")}get isDuration(){return!!this._def.checks.find(tt=>tt.kind==="duration")}get isEmail(){return!!this._def.checks.find(tt=>tt.kind==="email")}get isURL(){return!!this._def.checks.find(tt=>tt.kind==="url")}get isEmoji(){return!!this._def.checks.find(tt=>tt.kind==="emoji")}get isUUID(){return!!this._def.checks.find(tt=>tt.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(tt=>tt.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(tt=>tt.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(tt=>tt.kind==="cuid2")}get isULID(){return!!this._def.checks.find(tt=>tt.kind==="ulid")}get isIP(){return!!this._def.checks.find(tt=>tt.kind==="ip")}get isCIDR(){return!!this._def.checks.find(tt=>tt.kind==="cidr")}get isBase64(){return!!this._def.checks.find(tt=>tt.kind==="base64")}get isBase64url(){return!!this._def.checks.find(tt=>tt.kind==="base64url")}get minLength(){let tt=null;for(const Kt of this._def.checks)Kt.kind==="min"&&(tt===null||Kt.value>tt)&&(tt=Kt.value);return tt}get maxLength(){let tt=null;for(const Kt of this._def.checks)Kt.kind==="max"&&(tt===null||Kt.value<tt)&&(tt=Kt.value);return tt}}t.ZodString=V,V.create=nn=>{var tt;return new V({checks:[],typeName:yt.ZodString,coerce:(tt=nn?.coerce)!==null&&tt!==void 0?tt:!1,...h(nn)})};function $(nn,tt){const Kt=(nn.toString().split(".")[1]||"").length,qt=(tt.toString().split(".")[1]||"").length,In=Kt>qt?Kt:qt,Un=parseInt(nn.toFixed(In).replace(".","")),Bi=parseInt(tt.toFixed(In).replace(".",""));return Un%Bi/Math.pow(10,In)}class Y extends u{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(tt){if(this._def.coerce&&(tt.data=Number(tt.data)),this._getType(tt)!==_.ZodParsedType.number){const Un=this._getOrReturnCtx(tt);return(0,m.addIssueToContext)(Un,{code:s.ZodIssueCode.invalid_type,expected:_.ZodParsedType.number,received:Un.parsedType}),m.INVALID}let qt;const In=new m.ParseStatus;for(const Un of this._def.checks)Un.kind==="int"?_.util.isInteger(tt.data)||(qt=this._getOrReturnCtx(tt,qt),(0,m.addIssueToContext)(qt,{code:s.ZodIssueCode.invalid_type,expected:"integer",received:"float",message:Un.message}),In.dirty()):Un.kind==="min"?(Un.inclusive?tt.data<Un.value:tt.data<=Un.value)&&(qt=this._getOrReturnCtx(tt,qt),(0,m.addIssueToContext)(qt,{code:s.ZodIssueCode.too_small,minimum:Un.value,type:"number",inclusive:Un.inclusive,exact:!1,message:Un.message}),In.dirty()):Un.kind==="max"?(Un.inclusive?tt.data>Un.value:tt.data>=Un.value)&&(qt=this._getOrReturnCtx(tt,qt),(0,m.addIssueToContext)(qt,{code:s.ZodIssueCode.too_big,maximum:Un.value,type:"number",inclusive:Un.inclusive,exact:!1,message:Un.message}),In.dirty()):Un.kind==="multipleOf"?$(tt.data,Un.value)!==0&&(qt=this._getOrReturnCtx(tt,qt),(0,m.addIssueToContext)(qt,{code:s.ZodIssueCode.not_multiple_of,multipleOf:Un.value,message:Un.message}),In.dirty()):Un.kind==="finite"?Number.isFinite(tt.data)||(qt=this._getOrReturnCtx(tt,qt),(0,m.addIssueToContext)(qt,{code:s.ZodIssueCode.not_finite,message:Un.message}),In.dirty()):_.util.assertNever(Un);return{status:In.value,value:tt.data}}gte(tt,Kt){return this.setLimit("min",tt,!0,v.errorUtil.toString(Kt))}gt(tt,Kt){return this.setLimit("min",tt,!1,v.errorUtil.toString(Kt))}lte(tt,Kt){return this.setLimit("max",tt,!0,v.errorUtil.toString(Kt))}lt(tt,Kt){return this.setLimit("max",tt,!1,v.errorUtil.toString(Kt))}setLimit(tt,Kt,qt,In){return new Y({...this._def,checks:[...this._def.checks,{kind:tt,value:Kt,inclusive:qt,message:v.errorUtil.toString(In)}]})}_addCheck(tt){return new Y({...this._def,checks:[...this._def.checks,tt]})}int(tt){return this._addCheck({kind:"int",message:v.errorUtil.toString(tt)})}positive(tt){return this._addCheck({kind:"min",value:0,inclusive:!1,message:v.errorUtil.toString(tt)})}negative(tt){return this._addCheck({kind:"max",value:0,inclusive:!1,message:v.errorUtil.toString(tt)})}nonpositive(tt){return this._addCheck({kind:"max",value:0,inclusive:!0,message:v.errorUtil.toString(tt)})}nonnegative(tt){return this._addCheck({kind:"min",value:0,inclusive:!0,message:v.errorUtil.toString(tt)})}multipleOf(tt,Kt){return this._addCheck({kind:"multipleOf",value:tt,message:v.errorUtil.toString(Kt)})}finite(tt){return this._addCheck({kind:"finite",message:v.errorUtil.toString(tt)})}safe(tt){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:v.errorUtil.toString(tt)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:v.errorUtil.toString(tt)})}get minValue(){let tt=null;for(const Kt of this._def.checks)Kt.kind==="min"&&(tt===null||Kt.value>tt)&&(tt=Kt.value);return tt}get maxValue(){let tt=null;for(const Kt of this._def.checks)Kt.kind==="max"&&(tt===null||Kt.value<tt)&&(tt=Kt.value);return tt}get isInt(){return!!this._def.checks.find(tt=>tt.kind==="int"||tt.kind==="multipleOf"&&_.util.isInteger(tt.value))}get isFinite(){let tt=null,Kt=null;for(const qt of this._def.checks){if(qt.kind==="finite"||qt.kind==="int"||qt.kind==="multipleOf")return!0;qt.kind==="min"?(Kt===null||qt.value>Kt)&&(Kt=qt.value):qt.kind==="max"&&(tt===null||qt.value<tt)&&(tt=qt.value)}return Number.isFinite(Kt)&&Number.isFinite(tt)}}t.ZodNumber=Y,Y.create=nn=>new Y({checks:[],typeName:yt.ZodNumber,coerce:nn?.coerce||!1,...h(nn)});class G extends u{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(tt){if(this._def.coerce)try{tt.data=BigInt(tt.data)}catch{return this._getInvalidInput(tt)}if(this._getType(tt)!==_.ZodParsedType.bigint)return this._getInvalidInput(tt);let qt;const In=new m.ParseStatus;for(const Un of this._def.checks)Un.kind==="min"?(Un.inclusive?tt.data<Un.value:tt.data<=Un.value)&&(qt=this._getOrReturnCtx(tt,qt),(0,m.addIssueToContext)(qt,{code:s.ZodIssueCode.too_small,type:"bigint",minimum:Un.value,inclusive:Un.inclusive,message:Un.message}),In.dirty()):Un.kind==="max"?(Un.inclusive?tt.data>Un.value:tt.data>=Un.value)&&(qt=this._getOrReturnCtx(tt,qt),(0,m.addIssueToContext)(qt,{code:s.ZodIssueCode.too_big,type:"bigint",maximum:Un.value,inclusive:Un.inclusive,message:Un.message}),In.dirty()):Un.kind==="multipleOf"?tt.data%Un.value!==BigInt(0)&&(qt=this._getOrReturnCtx(tt,qt),(0,m.addIssueToContext)(qt,{code:s.ZodIssueCode.not_multiple_of,multipleOf:Un.value,message:Un.message}),In.dirty()):_.util.assertNever(Un);return{status:In.value,value:tt.data}}_getInvalidInput(tt){const Kt=this._getOrReturnCtx(tt);return(0,m.addIssueToContext)(Kt,{code:s.ZodIssueCode.invalid_type,expected:_.ZodParsedType.bigint,received:Kt.parsedType}),m.INVALID}gte(tt,Kt){return this.setLimit("min",tt,!0,v.errorUtil.toString(Kt))}gt(tt,Kt){return this.setLimit("min",tt,!1,v.errorUtil.toString(Kt))}lte(tt,Kt){return this.setLimit("max",tt,!0,v.errorUtil.toString(Kt))}lt(tt,Kt){return this.setLimit("max",tt,!1,v.errorUtil.toString(Kt))}setLimit(tt,Kt,qt,In){return new G({...this._def,checks:[...this._def.checks,{kind:tt,value:Kt,inclusive:qt,message:v.errorUtil.toString(In)}]})}_addCheck(tt){return new G({...this._def,checks:[...this._def.checks,tt]})}positive(tt){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:v.errorUtil.toString(tt)})}negative(tt){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:v.errorUtil.toString(tt)})}nonpositive(tt){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:v.errorUtil.toString(tt)})}nonnegative(tt){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:v.errorUtil.toString(tt)})}multipleOf(tt,Kt){return this._addCheck({kind:"multipleOf",value:tt,message:v.errorUtil.toString(Kt)})}get minValue(){let tt=null;for(const Kt of this._def.checks)Kt.kind==="min"&&(tt===null||Kt.value>tt)&&(tt=Kt.value);return tt}get maxValue(){let tt=null;for(const Kt of this._def.checks)Kt.kind==="max"&&(tt===null||Kt.value<tt)&&(tt=Kt.value);return tt}}t.ZodBigInt=G,G.create=nn=>{var tt;return new G({checks:[],typeName:yt.ZodBigInt,coerce:(tt=nn?.coerce)!==null&&tt!==void 0?tt:!1,...h(nn)})};class H extends u{_parse(tt){if(this._def.coerce&&(tt.data=!!tt.data),this._getType(tt)!==_.ZodParsedType.boolean){const qt=this._getOrReturnCtx(tt);return(0,m.addIssueToContext)(qt,{code:s.ZodIssueCode.invalid_type,expected:_.ZodParsedType.boolean,received:qt.parsedType}),m.INVALID}return(0,m.OK)(tt.data)}}t.ZodBoolean=H,H.create=nn=>new H({typeName:yt.ZodBoolean,coerce:nn?.coerce||!1,...h(nn)});class K extends u{_parse(tt){if(this._def.coerce&&(tt.data=new Date(tt.data)),this._getType(tt)!==_.ZodParsedType.date){const Un=this._getOrReturnCtx(tt);return(0,m.addIssueToContext)(Un,{code:s.ZodIssueCode.invalid_type,expected:_.ZodParsedType.date,received:Un.parsedType}),m.INVALID}if(isNaN(tt.data.getTime())){const Un=this._getOrReturnCtx(tt);return(0,m.addIssueToContext)(Un,{code:s.ZodIssueCode.invalid_date}),m.INVALID}const qt=new m.ParseStatus;let In;for(const Un of this._def.checks)Un.kind==="min"?tt.data.getTime()<Un.value&&(In=this._getOrReturnCtx(tt,In),(0,m.addIssueToContext)(In,{code:s.ZodIssueCode.too_small,message:Un.message,inclusive:!0,exact:!1,minimum:Un.value,type:"date"}),qt.dirty()):Un.kind==="max"?tt.data.getTime()>Un.value&&(In=this._getOrReturnCtx(tt,In),(0,m.addIssueToContext)(In,{code:s.ZodIssueCode.too_big,message:Un.message,inclusive:!0,exact:!1,maximum:Un.value,type:"date"}),qt.dirty()):_.util.assertNever(Un);return{status:qt.value,value:new Date(tt.data.getTime())}}_addCheck(tt){return new K({...this._def,checks:[...this._def.checks,tt]})}min(tt,Kt){return this._addCheck({kind:"min",value:tt.getTime(),message:v.errorUtil.toString(Kt)})}max(tt,Kt){return this._addCheck({kind:"max",value:tt.getTime(),message:v.errorUtil.toString(Kt)})}get minDate(){let tt=null;for(const Kt of this._def.checks)Kt.kind==="min"&&(tt===null||Kt.value>tt)&&(tt=Kt.value);return tt!=null?new Date(tt):null}get maxDate(){let tt=null;for(const Kt of this._def.checks)Kt.kind==="max"&&(tt===null||Kt.value<tt)&&(tt=Kt.value);return tt!=null?new Date(tt):null}}t.ZodDate=K,K.create=nn=>new K({checks:[],coerce:nn?.coerce||!1,typeName:yt.ZodDate,...h(nn)});class Z extends u{_parse(tt){if(this._getType(tt)!==_.ZodParsedType.symbol){const qt=this._getOrReturnCtx(tt);return(0,m.addIssueToContext)(qt,{code:s.ZodIssueCode.invalid_type,expected:_.ZodParsedType.symbol,received:qt.parsedType}),m.INVALID}return(0,m.OK)(tt.data)}}t.ZodSymbol=Z,Z.create=nn=>new Z({typeName:yt.ZodSymbol,...h(nn)});class Q extends u{_parse(tt){if(this._getType(tt)!==_.ZodParsedType.undefined){const qt=this._getOrReturnCtx(tt);return(0,m.addIssueToContext)(qt,{code:s.ZodIssueCode.invalid_type,expected:_.ZodParsedType.undefined,received:qt.parsedType}),m.INVALID}return(0,m.OK)(tt.data)}}t.ZodUndefined=Q,Q.create=nn=>new Q({typeName:yt.ZodUndefined,...h(nn)});class oe extends u{_parse(tt){if(this._getType(tt)!==_.ZodParsedType.null){const qt=this._getOrReturnCtx(tt);return(0,m.addIssueToContext)(qt,{code:s.ZodIssueCode.invalid_type,expected:_.ZodParsedType.null,received:qt.parsedType}),m.INVALID}return(0,m.OK)(tt.data)}}t.ZodNull=oe,oe.create=nn=>new oe({typeName:yt.ZodNull,...h(nn)});class te extends u{constructor(){super(...arguments),this._any=!0}_parse(tt){return(0,m.OK)(tt.data)}}t.ZodAny=te,te.create=nn=>new te({typeName:yt.ZodAny,...h(nn)});class ue extends u{constructor(){super(...arguments),this._unknown=!0}_parse(tt){return(0,m.OK)(tt.data)}}t.ZodUnknown=ue,ue.create=nn=>new ue({typeName:yt.ZodUnknown,...h(nn)});class _e extends u{_parse(tt){const Kt=this._getOrReturnCtx(tt);return(0,m.addIssueToContext)(Kt,{code:s.ZodIssueCode.invalid_type,expected:_.ZodParsedType.never,received:Kt.parsedType}),m.INVALID}}t.ZodNever=_e,_e.create=nn=>new _e({typeName:yt.ZodNever,...h(nn)});class q extends u{_parse(tt){if(this._getType(tt)!==_.ZodParsedType.undefined){const qt=this._getOrReturnCtx(tt);return(0,m.addIssueToContext)(qt,{code:s.ZodIssueCode.invalid_type,expected:_.ZodParsedType.void,received:qt.parsedType}),m.INVALID}return(0,m.OK)(tt.data)}}t.ZodVoid=q,q.create=nn=>new q({typeName:yt.ZodVoid,...h(nn)});class be extends u{_parse(tt){const{ctx:Kt,status:qt}=this._processInputParams(tt),In=this._def;if(Kt.parsedType!==_.ZodParsedType.array)return(0,m.addIssueToContext)(Kt,{code:s.ZodIssueCode.invalid_type,expected:_.ZodParsedType.array,received:Kt.parsedType}),m.INVALID;if(In.exactLength!==null){const Bi=Kt.data.length>In.exactLength.value,Mi=Kt.data.length<In.exactLength.value;(Bi||Mi)&&((0,m.addIssueToContext)(Kt,{code:Bi?s.ZodIssueCode.too_big:s.ZodIssueCode.too_small,minimum:Mi?In.exactLength.value:void 0,maximum:Bi?In.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:In.exactLength.message}),qt.dirty())}if(In.minLength!==null&&Kt.data.length<In.minLength.value&&((0,m.addIssueToContext)(Kt,{code:s.ZodIssueCode.too_small,minimum:In.minLength.value,type:"array",inclusive:!0,exact:!1,message:In.minLength.message}),qt.dirty()),In.maxLength!==null&&Kt.data.length>In.maxLength.value&&((0,m.addIssueToContext)(Kt,{code:s.ZodIssueCode.too_big,maximum:In.maxLength.value,type:"array",inclusive:!0,exact:!1,message:In.maxLength.message}),qt.dirty()),Kt.common.async)return Promise.all([...Kt.data].map((Bi,Mi)=>In.type._parseAsync(new g(Kt,Bi,Kt.path,Mi)))).then(Bi=>m.ParseStatus.mergeArray(qt,Bi));const Un=[...Kt.data].map((Bi,Mi)=>In.type._parseSync(new g(Kt,Bi,Kt.path,Mi)));return m.ParseStatus.mergeArray(qt,Un)}get element(){return this._def.type}min(tt,Kt){return new be({...this._def,minLength:{value:tt,message:v.errorUtil.toString(Kt)}})}max(tt,Kt){return new be({...this._def,maxLength:{value:tt,message:v.errorUtil.toString(Kt)}})}length(tt,Kt){return new be({...this._def,exactLength:{value:tt,message:v.errorUtil.toString(Kt)}})}nonempty(tt){return this.min(1,tt)}}t.ZodArray=be,be.create=(nn,tt)=>new be({type:nn,minLength:null,maxLength:null,exactLength:null,typeName:yt.ZodArray,...h(tt)});function pe(nn){if(nn instanceof ie){const tt={};for(const Kt in nn.shape){const qt=nn.shape[Kt];tt[Kt]=Ke.create(pe(qt))}return new ie({...nn._def,shape:()=>tt})}else return nn instanceof be?new be({...nn._def,type:pe(nn.element)}):nn instanceof Ke?Ke.create(pe(nn.unwrap())):nn instanceof ft?ft.create(pe(nn.unwrap())):nn instanceof Ee?Ee.create(nn.items.map(tt=>pe(tt))):nn}class ie extends u{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const tt=this._def.shape(),Kt=_.util.objectKeys(tt);return this._cached={shape:tt,keys:Kt}}_parse(tt){if(this._getType(tt)!==_.ZodParsedType.object){const bi=this._getOrReturnCtx(tt);return(0,m.addIssueToContext)(bi,{code:s.ZodIssueCode.invalid_type,expected:_.ZodParsedType.object,received:bi.parsedType}),m.INVALID}const{status:qt,ctx:In}=this._processInputParams(tt),{shape:Un,keys:Bi}=this._getCached(),Mi=[];if(!(this._def.catchall instanceof _e&&this._def.unknownKeys==="strip"))for(const bi in In.data)Bi.includes(bi)||Mi.push(bi);const Xi=[];for(const bi of Bi){const Zi=Un[bi],to=In.data[bi];Xi.push({key:{status:"valid",value:bi},value:Zi._parse(new g(In,to,In.path,bi)),alwaysSet:bi in In.data})}if(this._def.catchall instanceof _e){const bi=this._def.unknownKeys;if(bi==="passthrough")for(const Zi of Mi)Xi.push({key:{status:"valid",value:Zi},value:{status:"valid",value:In.data[Zi]}});else if(bi==="strict")Mi.length>0&&((0,m.addIssueToContext)(In,{code:s.ZodIssueCode.unrecognized_keys,keys:Mi}),qt.dirty());else if(bi!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const bi=this._def.catchall;for(const Zi of Mi){const to=In.data[Zi];Xi.push({key:{status:"valid",value:Zi},value:bi._parse(new g(In,to,In.path,Zi)),alwaysSet:Zi in In.data})}}return In.common.async?Promise.resolve().then(async()=>{const bi=[];for(const Zi of Xi){const to=await Zi.key,uo=await Zi.value;bi.push({key:to,value:uo,alwaysSet:Zi.alwaysSet})}return bi}).then(bi=>m.ParseStatus.mergeObjectSync(qt,bi)):m.ParseStatus.mergeObjectSync(qt,Xi)}get shape(){return this._def.shape()}strict(tt){return v.errorUtil.errToObj,new ie({...this._def,unknownKeys:"strict",...tt!==void 0?{errorMap:(Kt,qt)=>{var In,Un,Bi,Mi;const Xi=(Bi=(Un=(In=this._def).errorMap)===null||Un===void 0?void 0:Un.call(In,Kt,qt).message)!==null&&Bi!==void 0?Bi:qt.defaultError;return Kt.code==="unrecognized_keys"?{message:(Mi=v.errorUtil.errToObj(tt).message)!==null&&Mi!==void 0?Mi:Xi}:{message:Xi}}}:{}})}strip(){return new ie({...this._def,unknownKeys:"strip"})}passthrough(){return new ie({...this._def,unknownKeys:"passthrough"})}extend(tt){return new ie({...this._def,shape:()=>({...this._def.shape(),...tt})})}merge(tt){return new ie({unknownKeys:tt._def.unknownKeys,catchall:tt._def.catchall,shape:()=>({...this._def.shape(),...tt._def.shape()}),typeName:yt.ZodObject})}setKey(tt,Kt){return this.augment({[tt]:Kt})}catchall(tt){return new ie({...this._def,catchall:tt})}pick(tt){const Kt={};return _.util.objectKeys(tt).forEach(qt=>{tt[qt]&&this.shape[qt]&&(Kt[qt]=this.shape[qt])}),new ie({...this._def,shape:()=>Kt})}omit(tt){const Kt={};return _.util.objectKeys(this.shape).forEach(qt=>{tt[qt]||(Kt[qt]=this.shape[qt])}),new ie({...this._def,shape:()=>Kt})}deepPartial(){return pe(this)}partial(tt){const Kt={};return _.util.objectKeys(this.shape).forEach(qt=>{const In=this.shape[qt];tt&&!tt[qt]?Kt[qt]=In:Kt[qt]=In.optional()}),new ie({...this._def,shape:()=>Kt})}required(tt){const Kt={};return _.util.objectKeys(this.shape).forEach(qt=>{if(tt&&!tt[qt])Kt[qt]=this.shape[qt];else{let Un=this.shape[qt];for(;Un instanceof Ke;)Un=Un._def.innerType;Kt[qt]=Un}}),new ie({...this._def,shape:()=>Kt})}keyof(){return he(_.util.objectKeys(this.shape))}}t.ZodObject=ie,ie.create=(nn,tt)=>new ie({shape:()=>nn,unknownKeys:"strip",catchall:_e.create(),typeName:yt.ZodObject,...h(tt)}),ie.strictCreate=(nn,tt)=>new ie({shape:()=>nn,unknownKeys:"strict",catchall:_e.create(),typeName:yt.ZodObject,...h(tt)}),ie.lazycreate=(nn,tt)=>new ie({shape:nn,unknownKeys:"strip",catchall:_e.create(),typeName:yt.ZodObject,...h(tt)});class ge extends u{_parse(tt){const{ctx:Kt}=this._processInputParams(tt),qt=this._def.options;function In(Un){for(const Mi of Un)if(Mi.result.status==="valid")return Mi.result;for(const Mi of Un)if(Mi.result.status==="dirty")return Kt.common.issues.push(...Mi.ctx.common.issues),Mi.result;const Bi=Un.map(Mi=>new s.ZodError(Mi.ctx.common.issues));return(0,m.addIssueToContext)(Kt,{code:s.ZodIssueCode.invalid_union,unionErrors:Bi}),m.INVALID}if(Kt.common.async)return Promise.all(qt.map(async Un=>{const Bi={...Kt,common:{...Kt.common,issues:[]},parent:null};return{result:await Un._parseAsync({data:Kt.data,path:Kt.path,parent:Bi}),ctx:Bi}})).then(In);{let Un;const Bi=[];for(const Xi of qt){const bi={...Kt,common:{...Kt.common,issues:[]},parent:null},Zi=Xi._parseSync({data:Kt.data,path:Kt.path,parent:bi});if(Zi.status==="valid")return Zi;Zi.status==="dirty"&&!Un&&(Un={result:Zi,ctx:bi}),bi.common.issues.length&&Bi.push(bi.common.issues)}if(Un)return Kt.common.issues.push(...Un.ctx.common.issues),Un.result;const Mi=Bi.map(Xi=>new s.ZodError(Xi));return(0,m.addIssueToContext)(Kt,{code:s.ZodIssueCode.invalid_union,unionErrors:Mi}),m.INVALID}}get options(){return this._def.options}}t.ZodUnion=ge,ge.create=(nn,tt)=>new ge({options:nn,typeName:yt.ZodUnion,...h(tt)});const Re=nn=>nn instanceof me?Re(nn.schema):nn instanceof Ge?Re(nn.innerType()):nn instanceof re?[nn.value]:nn instanceof Oe?nn.options:nn instanceof Se?_.util.objectValues(nn.enum):nn instanceof ot?Re(nn._def.innerType):nn instanceof Q?[void 0]:nn instanceof oe?[null]:nn instanceof Ke?[void 0,...Re(nn.unwrap())]:nn instanceof ft?[null,...Re(nn.unwrap())]:nn instanceof At||nn instanceof st?Re(nn.unwrap()):nn instanceof Mt?Re(nn._def.innerType):[];class Pe extends u{_parse(tt){const{ctx:Kt}=this._processInputParams(tt);if(Kt.parsedType!==_.ZodParsedType.object)return(0,m.addIssueToContext)(Kt,{code:s.ZodIssueCode.invalid_type,expected:_.ZodParsedType.object,received:Kt.parsedType}),m.INVALID;const qt=this.discriminator,In=Kt.data[qt],Un=this.optionsMap.get(In);return Un?Kt.common.async?Un._parseAsync({data:Kt.data,path:Kt.path,parent:Kt}):Un._parseSync({data:Kt.data,path:Kt.path,parent:Kt}):((0,m.addIssueToContext)(Kt,{code:s.ZodIssueCode.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[qt]}),m.INVALID)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(tt,Kt,qt){const In=new Map;for(const Un of Kt){const Bi=Re(Un.shape[tt]);if(!Bi.length)throw new Error(`A discriminator value for key \`${tt}\` could not be extracted from all schema options`);for(const Mi of Bi){if(In.has(Mi))throw new Error(`Discriminator property ${String(tt)} has duplicate value ${String(Mi)}`);In.set(Mi,Un)}}return new Pe({typeName:yt.ZodDiscriminatedUnion,discriminator:tt,options:Kt,optionsMap:In,...h(qt)})}}t.ZodDiscriminatedUnion=Pe;function Ae(nn,tt){const Kt=(0,_.getParsedType)(nn),qt=(0,_.getParsedType)(tt);if(nn===tt)return{valid:!0,data:nn};if(Kt===_.ZodParsedType.object&&qt===_.ZodParsedType.object){const In=_.util.objectKeys(tt),Un=_.util.objectKeys(nn).filter(Mi=>In.indexOf(Mi)!==-1),Bi={...nn,...tt};for(const Mi of Un){const Xi=Ae(nn[Mi],tt[Mi]);if(!Xi.valid)return{valid:!1};Bi[Mi]=Xi.data}return{valid:!0,data:Bi}}else if(Kt===_.ZodParsedType.array&&qt===_.ZodParsedType.array){if(nn.length!==tt.length)return{valid:!1};const In=[];for(let Un=0;Un<nn.length;Un++){const Bi=nn[Un],Mi=tt[Un],Xi=Ae(Bi,Mi);if(!Xi.valid)return{valid:!1};In.push(Xi.data)}return{valid:!0,data:In}}else return Kt===_.ZodParsedType.date&&qt===_.ZodParsedType.date&&+nn==+tt?{valid:!0,data:nn}:{valid:!1}}class we extends u{_parse(tt){const{status:Kt,ctx:qt}=this._processInputParams(tt),In=(Un,Bi)=>{if((0,m.isAborted)(Un)||(0,m.isAborted)(Bi))return m.INVALID;const Mi=Ae(Un.value,Bi.value);return Mi.valid?(((0,m.isDirty)(Un)||(0,m.isDirty)(Bi))&&Kt.dirty(),{status:Kt.value,value:Mi.data}):((0,m.addIssueToContext)(qt,{code:s.ZodIssueCode.invalid_intersection_types}),m.INVALID)};return qt.common.async?Promise.all([this._def.left._parseAsync({data:qt.data,path:qt.path,parent:qt}),this._def.right._parseAsync({data:qt.data,path:qt.path,parent:qt})]).then(([Un,Bi])=>In(Un,Bi)):In(this._def.left._parseSync({data:qt.data,path:qt.path,parent:qt}),this._def.right._parseSync({data:qt.data,path:qt.path,parent:qt}))}}t.ZodIntersection=we,we.create=(nn,tt,Kt)=>new we({left:nn,right:tt,typeName:yt.ZodIntersection,...h(Kt)});class Ee extends u{_parse(tt){const{status:Kt,ctx:qt}=this._processInputParams(tt);if(qt.parsedType!==_.ZodParsedType.array)return(0,m.addIssueToContext)(qt,{code:s.ZodIssueCode.invalid_type,expected:_.ZodParsedType.array,received:qt.parsedType}),m.INVALID;if(qt.data.length<this._def.items.length)return(0,m.addIssueToContext)(qt,{code:s.ZodIssueCode.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),m.INVALID;!this._def.rest&&qt.data.length>this._def.items.length&&((0,m.addIssueToContext)(qt,{code:s.ZodIssueCode.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Kt.dirty());const Un=[...qt.data].map((Bi,Mi)=>{const Xi=this._def.items[Mi]||this._def.rest;return Xi?Xi._parse(new g(qt,Bi,qt.path,Mi)):null}).filter(Bi=>!!Bi);return qt.common.async?Promise.all(Un).then(Bi=>m.ParseStatus.mergeArray(Kt,Bi)):m.ParseStatus.mergeArray(Kt,Un)}get items(){return this._def.items}rest(tt){return new Ee({...this._def,rest:tt})}}t.ZodTuple=Ee,Ee.create=(nn,tt)=>{if(!Array.isArray(nn))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Ee({items:nn,typeName:yt.ZodTuple,rest:null,...h(tt)})};class fe extends u{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(tt){const{status:Kt,ctx:qt}=this._processInputParams(tt);if(qt.parsedType!==_.ZodParsedType.object)return(0,m.addIssueToContext)(qt,{code:s.ZodIssueCode.invalid_type,expected:_.ZodParsedType.object,received:qt.parsedType}),m.INVALID;const In=[],Un=this._def.keyType,Bi=this._def.valueType;for(const Mi in qt.data)In.push({key:Un._parse(new g(qt,Mi,qt.path,Mi)),value:Bi._parse(new g(qt,qt.data[Mi],qt.path,Mi)),alwaysSet:Mi in qt.data});return qt.common.async?m.ParseStatus.mergeObjectAsync(Kt,In):m.ParseStatus.mergeObjectSync(Kt,In)}get element(){return this._def.valueType}static create(tt,Kt,qt){return Kt instanceof u?new fe({keyType:tt,valueType:Kt,typeName:yt.ZodRecord,...h(qt)}):new fe({keyType:V.create(),valueType:tt,typeName:yt.ZodRecord,...h(Kt)})}}t.ZodRecord=fe;class xe extends u{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(tt){const{status:Kt,ctx:qt}=this._processInputParams(tt);if(qt.parsedType!==_.ZodParsedType.map)return(0,m.addIssueToContext)(qt,{code:s.ZodIssueCode.invalid_type,expected:_.ZodParsedType.map,received:qt.parsedType}),m.INVALID;const In=this._def.keyType,Un=this._def.valueType,Bi=[...qt.data.entries()].map(([Mi,Xi],bi)=>({key:In._parse(new g(qt,Mi,qt.path,[bi,"key"])),value:Un._parse(new g(qt,Xi,qt.path,[bi,"value"]))}));if(qt.common.async){const Mi=new Map;return Promise.resolve().then(async()=>{for(const Xi of Bi){const bi=await Xi.key,Zi=await Xi.value;if(bi.status==="aborted"||Zi.status==="aborted")return m.INVALID;(bi.status==="dirty"||Zi.status==="dirty")&&Kt.dirty(),Mi.set(bi.value,Zi.value)}return{status:Kt.value,value:Mi}})}else{const Mi=new Map;for(const Xi of Bi){const bi=Xi.key,Zi=Xi.value;if(bi.status==="aborted"||Zi.status==="aborted")return m.INVALID;(bi.status==="dirty"||Zi.status==="dirty")&&Kt.dirty(),Mi.set(bi.value,Zi.value)}return{status:Kt.value,value:Mi}}}}t.ZodMap=xe,xe.create=(nn,tt,Kt)=>new xe({valueType:tt,keyType:nn,typeName:yt.ZodMap,...h(Kt)});class Ie extends u{_parse(tt){const{status:Kt,ctx:qt}=this._processInputParams(tt);if(qt.parsedType!==_.ZodParsedType.set)return(0,m.addIssueToContext)(qt,{code:s.ZodIssueCode.invalid_type,expected:_.ZodParsedType.set,received:qt.parsedType}),m.INVALID;const In=this._def;In.minSize!==null&&qt.data.size<In.minSize.value&&((0,m.addIssueToContext)(qt,{code:s.ZodIssueCode.too_small,minimum:In.minSize.value,type:"set",inclusive:!0,exact:!1,message:In.minSize.message}),Kt.dirty()),In.maxSize!==null&&qt.data.size>In.maxSize.value&&((0,m.addIssueToContext)(qt,{code:s.ZodIssueCode.too_big,maximum:In.maxSize.value,type:"set",inclusive:!0,exact:!1,message:In.maxSize.message}),Kt.dirty());const Un=this._def.valueType;function Bi(Xi){const bi=new Set;for(const Zi of Xi){if(Zi.status==="aborted")return m.INVALID;Zi.status==="dirty"&&Kt.dirty(),bi.add(Zi.value)}return{status:Kt.value,value:bi}}const Mi=[...qt.data.values()].map((Xi,bi)=>Un._parse(new g(qt,Xi,qt.path,bi)));return qt.common.async?Promise.all(Mi).then(Xi=>Bi(Xi)):Bi(Mi)}min(tt,Kt){return new Ie({...this._def,minSize:{value:tt,message:v.errorUtil.toString(Kt)}})}max(tt,Kt){return new Ie({...this._def,maxSize:{value:tt,message:v.errorUtil.toString(Kt)}})}size(tt,Kt){return this.min(tt,Kt).max(tt,Kt)}nonempty(tt){return this.min(1,tt)}}t.ZodSet=Ie,Ie.create=(nn,tt)=>new Ie({valueType:nn,minSize:null,maxSize:null,typeName:yt.ZodSet,...h(tt)});class Be extends u{constructor(){super(...arguments),this.validate=this.implement}_parse(tt){const{ctx:Kt}=this._processInputParams(tt);if(Kt.parsedType!==_.ZodParsedType.function)return(0,m.addIssueToContext)(Kt,{code:s.ZodIssueCode.invalid_type,expected:_.ZodParsedType.function,received:Kt.parsedType}),m.INVALID;function qt(Mi,Xi){return(0,m.makeIssue)({data:Mi,path:Kt.path,errorMaps:[Kt.common.contextualErrorMap,Kt.schemaErrorMap,(0,p.getErrorMap)(),p.defaultErrorMap].filter(bi=>!!bi),issueData:{code:s.ZodIssueCode.invalid_arguments,argumentsError:Xi}})}function In(Mi,Xi){return(0,m.makeIssue)({data:Mi,path:Kt.path,errorMaps:[Kt.common.contextualErrorMap,Kt.schemaErrorMap,(0,p.getErrorMap)(),p.defaultErrorMap].filter(bi=>!!bi),issueData:{code:s.ZodIssueCode.invalid_return_type,returnTypeError:Xi}})}const Un={errorMap:Kt.common.contextualErrorMap},Bi=Kt.data;if(this._def.returns instanceof Fe){const Mi=this;return(0,m.OK)(async function(...Xi){const bi=new s.ZodError([]),Zi=await Mi._def.args.parseAsync(Xi,Un).catch(Ao=>{throw bi.addIssue(qt(Xi,Ao)),bi}),to=await Reflect.apply(Bi,this,Zi);return await Mi._def.returns._def.type.parseAsync(to,Un).catch(Ao=>{throw bi.addIssue(In(to,Ao)),bi})})}else{const Mi=this;return(0,m.OK)(function(...Xi){const bi=Mi._def.args.safeParse(Xi,Un);if(!bi.success)throw new s.ZodError([qt(Xi,bi.error)]);const Zi=Reflect.apply(Bi,this,bi.data),to=Mi._def.returns.safeParse(Zi,Un);if(!to.success)throw new s.ZodError([In(Zi,to.error)]);return to.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...tt){return new Be({...this._def,args:Ee.create(tt).rest(ue.create())})}returns(tt){return new Be({...this._def,returns:tt})}implement(tt){return this.parse(tt)}strictImplement(tt){return this.parse(tt)}static create(tt,Kt,qt){return new Be({args:tt||Ee.create([]).rest(ue.create()),returns:Kt||ue.create(),typeName:yt.ZodFunction,...h(qt)})}}t.ZodFunction=Be;class me extends u{get schema(){return this._def.getter()}_parse(tt){const{ctx:Kt}=this._processInputParams(tt);return this._def.getter()._parse({data:Kt.data,path:Kt.path,parent:Kt})}}t.ZodLazy=me,me.create=(nn,tt)=>new me({getter:nn,typeName:yt.ZodLazy,...h(tt)});class re extends u{_parse(tt){if(tt.data!==this._def.value){const Kt=this._getOrReturnCtx(tt);return(0,m.addIssueToContext)(Kt,{received:Kt.data,code:s.ZodIssueCode.invalid_literal,expected:this._def.value}),m.INVALID}return{status:"valid",value:tt.data}}get value(){return this._def.value}}t.ZodLiteral=re,re.create=(nn,tt)=>new re({value:nn,typeName:yt.ZodLiteral,...h(tt)});function he(nn,tt){return new Oe({values:nn,typeName:yt.ZodEnum,...h(tt)})}class Oe extends u{constructor(){super(...arguments),o.set(this,void 0)}_parse(tt){if(typeof tt.data!="string"){const Kt=this._getOrReturnCtx(tt),qt=this._def.values;return(0,m.addIssueToContext)(Kt,{expected:_.util.joinValues(qt),received:Kt.parsedType,code:s.ZodIssueCode.invalid_type}),m.INVALID}if(n(this,o,"f")||r(this,o,new Set(this._def.values),"f"),!n(this,o,"f").has(tt.data)){const Kt=this._getOrReturnCtx(tt),qt=this._def.values;return(0,m.addIssueToContext)(Kt,{received:Kt.data,code:s.ZodIssueCode.invalid_enum_value,options:qt}),m.INVALID}return(0,m.OK)(tt.data)}get options(){return this._def.values}get enum(){const tt={};for(const Kt of this._def.values)tt[Kt]=Kt;return tt}get Values(){const tt={};for(const Kt of this._def.values)tt[Kt]=Kt;return tt}get Enum(){const tt={};for(const Kt of this._def.values)tt[Kt]=Kt;return tt}extract(tt,Kt=this._def){return Oe.create(tt,{...this._def,...Kt})}exclude(tt,Kt=this._def){return Oe.create(this.options.filter(qt=>!tt.includes(qt)),{...this._def,...Kt})}}t.ZodEnum=Oe,o=new WeakMap,Oe.create=he;class Se extends u{constructor(){super(...arguments),c.set(this,void 0)}_parse(tt){const Kt=_.util.getValidEnumValues(this._def.values),qt=this._getOrReturnCtx(tt);if(qt.parsedType!==_.ZodParsedType.string&&qt.parsedType!==_.ZodParsedType.number){const In=_.util.objectValues(Kt);return(0,m.addIssueToContext)(qt,{expected:_.util.joinValues(In),received:qt.parsedType,code:s.ZodIssueCode.invalid_type}),m.INVALID}if(n(this,c,"f")||r(this,c,new Set(_.util.getValidEnumValues(this._def.values)),"f"),!n(this,c,"f").has(tt.data)){const In=_.util.objectValues(Kt);return(0,m.addIssueToContext)(qt,{received:qt.data,code:s.ZodIssueCode.invalid_enum_value,options:In}),m.INVALID}return(0,m.OK)(tt.data)}get enum(){return this._def.values}}t.ZodNativeEnum=Se,c=new WeakMap,Se.create=(nn,tt)=>new Se({values:nn,typeName:yt.ZodNativeEnum,...h(tt)});class Fe extends u{unwrap(){return this._def.type}_parse(tt){const{ctx:Kt}=this._processInputParams(tt);if(Kt.parsedType!==_.ZodParsedType.promise&&Kt.common.async===!1)return(0,m.addIssueToContext)(Kt,{code:s.ZodIssueCode.invalid_type,expected:_.ZodParsedType.promise,received:Kt.parsedType}),m.INVALID;const qt=Kt.parsedType===_.ZodParsedType.promise?Kt.data:Promise.resolve(Kt.data);return(0,m.OK)(qt.then(In=>this._def.type.parseAsync(In,{path:Kt.path,errorMap:Kt.common.contextualErrorMap})))}}t.ZodPromise=Fe,Fe.create=(nn,tt)=>new Fe({type:nn,typeName:yt.ZodPromise,...h(tt)});class Ge extends u{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===yt.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(tt){const{status:Kt,ctx:qt}=this._processInputParams(tt),In=this._def.effect||null,Un={addIssue:Bi=>{(0,m.addIssueToContext)(qt,Bi),Bi.fatal?Kt.abort():Kt.dirty()},get path(){return qt.path}};if(Un.addIssue=Un.addIssue.bind(Un),In.type==="preprocess"){const Bi=In.transform(qt.data,Un);if(qt.common.async)return Promise.resolve(Bi).then(async Mi=>{if(Kt.value==="aborted")return m.INVALID;const Xi=await this._def.schema._parseAsync({data:Mi,path:qt.path,parent:qt});return Xi.status==="aborted"?m.INVALID:Xi.status==="dirty"||Kt.value==="dirty"?(0,m.DIRTY)(Xi.value):Xi});{if(Kt.value==="aborted")return m.INVALID;const Mi=this._def.schema._parseSync({data:Bi,path:qt.path,parent:qt});return Mi.status==="aborted"?m.INVALID:Mi.status==="dirty"||Kt.value==="dirty"?(0,m.DIRTY)(Mi.value):Mi}}if(In.type==="refinement"){const Bi=Mi=>{const Xi=In.refinement(Mi,Un);if(qt.common.async)return Promise.resolve(Xi);if(Xi instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return Mi};if(qt.common.async===!1){const Mi=this._def.schema._parseSync({data:qt.data,path:qt.path,parent:qt});return Mi.status==="aborted"?m.INVALID:(Mi.status==="dirty"&&Kt.dirty(),Bi(Mi.value),{status:Kt.value,value:Mi.value})}else return this._def.schema._parseAsync({data:qt.data,path:qt.path,parent:qt}).then(Mi=>Mi.status==="aborted"?m.INVALID:(Mi.status==="dirty"&&Kt.dirty(),Bi(Mi.value).then(()=>({status:Kt.value,value:Mi.value}))))}if(In.type==="transform")if(qt.common.async===!1){const Bi=this._def.schema._parseSync({data:qt.data,path:qt.path,parent:qt});if(!(0,m.isValid)(Bi))return Bi;const Mi=In.transform(Bi.value,Un);if(Mi instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:Kt.value,value:Mi}}else return this._def.schema._parseAsync({data:qt.data,path:qt.path,parent:qt}).then(Bi=>(0,m.isValid)(Bi)?Promise.resolve(In.transform(Bi.value,Un)).then(Mi=>({status:Kt.value,value:Mi})):Bi);_.util.assertNever(In)}}t.ZodEffects=Ge,t.ZodTransformer=Ge,Ge.create=(nn,tt,Kt)=>new Ge({schema:nn,typeName:yt.ZodEffects,effect:tt,...h(Kt)}),Ge.createWithPreprocess=(nn,tt,Kt)=>new Ge({schema:tt,effect:{type:"preprocess",transform:nn},typeName:yt.ZodEffects,...h(Kt)});class Ke extends u{_parse(tt){return this._getType(tt)===_.ZodParsedType.undefined?(0,m.OK)(void 0):this._def.innerType._parse(tt)}unwrap(){return this._def.innerType}}t.ZodOptional=Ke,Ke.create=(nn,tt)=>new Ke({innerType:nn,typeName:yt.ZodOptional,...h(tt)});class ft extends u{_parse(tt){return this._getType(tt)===_.ZodParsedType.null?(0,m.OK)(null):this._def.innerType._parse(tt)}unwrap(){return this._def.innerType}}t.ZodNullable=ft,ft.create=(nn,tt)=>new ft({innerType:nn,typeName:yt.ZodNullable,...h(tt)});class ot extends u{_parse(tt){const{ctx:Kt}=this._processInputParams(tt);let qt=Kt.data;return Kt.parsedType===_.ZodParsedType.undefined&&(qt=this._def.defaultValue()),this._def.innerType._parse({data:qt,path:Kt.path,parent:Kt})}removeDefault(){return this._def.innerType}}t.ZodDefault=ot,ot.create=(nn,tt)=>new ot({innerType:nn,typeName:yt.ZodDefault,defaultValue:typeof tt.default=="function"?tt.default:()=>tt.default,...h(tt)});class Mt extends u{_parse(tt){const{ctx:Kt}=this._processInputParams(tt),qt={...Kt,common:{...Kt.common,issues:[]}},In=this._def.innerType._parse({data:qt.data,path:qt.path,parent:{...qt}});return(0,m.isAsync)(In)?In.then(Un=>({status:"valid",value:Un.status==="valid"?Un.value:this._def.catchValue({get error(){return new s.ZodError(qt.common.issues)},input:qt.data})})):{status:"valid",value:In.status==="valid"?In.value:this._def.catchValue({get error(){return new s.ZodError(qt.common.issues)},input:qt.data})}}removeCatch(){return this._def.innerType}}t.ZodCatch=Mt,Mt.create=(nn,tt)=>new Mt({innerType:nn,typeName:yt.ZodCatch,catchValue:typeof tt.catch=="function"?tt.catch:()=>tt.catch,...h(tt)});class lt extends u{_parse(tt){if(this._getType(tt)!==_.ZodParsedType.nan){const qt=this._getOrReturnCtx(tt);return(0,m.addIssueToContext)(qt,{code:s.ZodIssueCode.invalid_type,expected:_.ZodParsedType.nan,received:qt.parsedType}),m.INVALID}return{status:"valid",value:tt.data}}}t.ZodNaN=lt,lt.create=nn=>new lt({typeName:yt.ZodNaN,...h(nn)}),t.BRAND=Symbol("zod_brand");class At extends u{_parse(tt){const{ctx:Kt}=this._processInputParams(tt),qt=Kt.data;return this._def.type._parse({data:qt,path:Kt.path,parent:Kt})}unwrap(){return this._def.type}}t.ZodBranded=At;class rt extends u{_parse(tt){const{status:Kt,ctx:qt}=this._processInputParams(tt);if(qt.common.async)return(async()=>{const Un=await this._def.in._parseAsync({data:qt.data,path:qt.path,parent:qt});return Un.status==="aborted"?m.INVALID:Un.status==="dirty"?(Kt.dirty(),(0,m.DIRTY)(Un.value)):this._def.out._parseAsync({data:Un.value,path:qt.path,parent:qt})})();{const In=this._def.in._parseSync({data:qt.data,path:qt.path,parent:qt});return In.status==="aborted"?m.INVALID:In.status==="dirty"?(Kt.dirty(),{status:"dirty",value:In.value}):this._def.out._parseSync({data:In.value,path:qt.path,parent:qt})}}static create(tt,Kt){return new rt({in:tt,out:Kt,typeName:yt.ZodPipeline})}}t.ZodPipeline=rt;class st extends u{_parse(tt){const Kt=this._def.innerType._parse(tt),qt=In=>((0,m.isValid)(In)&&(In.value=Object.freeze(In.value)),In);return(0,m.isAsync)(Kt)?Kt.then(In=>qt(In)):qt(Kt)}unwrap(){return this._def.innerType}}t.ZodReadonly=st,st.create=(nn,tt)=>new st({innerType:nn,typeName:yt.ZodReadonly,...h(tt)});function dt(nn,tt={},Kt){return nn?te.create().superRefine((qt,In)=>{var Un,Bi;if(!nn(qt)){const Mi=typeof tt=="function"?tt(qt):typeof tt=="string"?{message:tt}:tt,Xi=(Bi=(Un=Mi.fatal)!==null&&Un!==void 0?Un:Kt)!==null&&Bi!==void 0?Bi:!0,bi=typeof Mi=="string"?{message:Mi}:Mi;In.addIssue({code:"custom",...bi,fatal:Xi})}}):te.create()}t.custom=dt,t.late={object:ie.lazycreate};var yt;(function(nn){nn.ZodString="ZodString",nn.ZodNumber="ZodNumber",nn.ZodNaN="ZodNaN",nn.ZodBigInt="ZodBigInt",nn.ZodBoolean="ZodBoolean",nn.ZodDate="ZodDate",nn.ZodSymbol="ZodSymbol",nn.ZodUndefined="ZodUndefined",nn.ZodNull="ZodNull",nn.ZodAny="ZodAny",nn.ZodUnknown="ZodUnknown",nn.ZodNever="ZodNever",nn.ZodVoid="ZodVoid",nn.ZodArray="ZodArray",nn.ZodObject="ZodObject",nn.ZodUnion="ZodUnion",nn.ZodDiscriminatedUnion="ZodDiscriminatedUnion",nn.ZodIntersection="ZodIntersection",nn.ZodTuple="ZodTuple",nn.ZodRecord="ZodRecord",nn.ZodMap="ZodMap",nn.ZodSet="ZodSet",nn.ZodFunction="ZodFunction",nn.ZodLazy="ZodLazy",nn.ZodLiteral="ZodLiteral",nn.ZodEnum="ZodEnum",nn.ZodEffects="ZodEffects",nn.ZodNativeEnum="ZodNativeEnum",nn.ZodOptional="ZodOptional",nn.ZodNullable="ZodNullable",nn.ZodDefault="ZodDefault",nn.ZodCatch="ZodCatch",nn.ZodPromise="ZodPromise",nn.ZodBranded="ZodBranded",nn.ZodPipeline="ZodPipeline",nn.ZodReadonly="ZodReadonly"})(yt||(t.ZodFirstPartyTypeKind=yt={}));class jt{constructor(...tt){}}const _n=(nn,tt={message:`Input not instance of ${nn.name}`})=>dt(Kt=>Kt instanceof nn,tt);t.instanceof=_n;const Fn=V.create;t.string=Fn;const pi=Y.create;t.number=pi;const kn=lt.create;t.nan=kn;const cn=G.create;t.bigint=cn;const zn=H.create;t.boolean=zn;const mn=K.create;t.date=mn;const Ft=Z.create;t.symbol=Ft;const ct=Q.create;t.undefined=ct;const We=oe.create;t.null=We;const ze=te.create;t.any=ze;const Je=ue.create;t.unknown=Je;const Jt=_e.create;t.never=Jt;const An=q.create;t.void=An;const oi=be.create;t.array=oi;const si=ie.create;t.object=si;const xi=ie.strictCreate;t.strictObject=xi;const Ti=ge.create;t.union=Ti;const Vi=Pe.create;t.discriminatedUnion=Vi;const jn=we.create;t.intersection=jn;const wn=Ee.create;t.tuple=wn;const ni=fe.create;t.record=ni;const Ii=xe.create;t.map=Ii;const Ki=Ie.create;t.set=Ki;const Di=Be.create;t.function=Di;const un=me.create;t.lazy=un;const Yn=re.create;t.literal=Yn;const bn=Oe.create;t.enum=bn;const nt=Se.create;t.nativeEnum=nt;const Rt=Fe.create;t.promise=Rt;const bt=Ge.create;t.effect=bt,t.transformer=bt;const Ct=Ke.create;t.optional=Ct;const hn=ft.create;t.nullable=hn;const on=Ge.createWithPreprocess;t.preprocess=on;const Yt=rt.create;t.pipeline=Yt;const On=()=>Fn().optional();t.ostring=On;const Zn=()=>pi().optional();t.onumber=Zn;const ci=()=>zn().optional();t.oboolean=ci,t.coerce={string:nn=>V.create({...nn,coerce:!0}),number:nn=>Y.create({...nn,coerce:!0}),boolean:nn=>H.create({...nn,coerce:!0}),bigint:nn=>G.create({...nn,coerce:!0}),date:nn=>K.create({...nn,coerce:!0})},t.NEVER=m.INVALID},79682:(x,t,e)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ChromeDevtoolsContribution=void 0;const r=e(85608),o=e(76003),c=e(41869),p=e(65265),v=e(98295),m=e(27654);let _=n=class extends c.Disposable{constructor(){super(...arguments),this.lantencyHandler=g=>{const{command:l}=g.detail;l===p.DevtoolsLantencyCommand.Start?this.interval||this.startRTTInterval():l===p.DevtoolsLantencyCommand.Stop&&this.interval&&(clearInterval(this.interval),this.interval=void 0)}}initialize(){var g;this.appConfig.devtools&&(window.addEventListener(p.EDevtoolsEvent.Latency,this.lantencyHandler),this.addDispose(c.Disposable.create(()=>{window.removeEventListener(p.EDevtoolsEvent.Latency,this.lantencyHandler),this.interval&&(clearInterval(this.interval),this.interval=void 0)})),!((g=window.__OPENSUMI_DEVTOOLS_GLOBAL_HOOK__)===null||g===void 0)&&g.captureRPC&&(this.interval||this.startRTTInterval()))}startRTTInterval(){this.interval=setInterval(async()=>{const g=Date.now();await this.rttService.measure();const l=Date.now()-g;window.__OPENSUMI_DEVTOOLS_GLOBAL_HOOK__.captureRPC&&(window.__OPENSUMI_DEVTOOLS_GLOBAL_HOOK__.latency=l)},n.INTERVAL)}};t.ChromeDevtoolsContribution=_,_.INTERVAL=1e3,r.__decorate([(0,o.Autowired)(c.AppConfig),r.__metadata("design:type",Object)],_.prototype,"appConfig",void 0),r.__decorate([(0,o.Autowired)(m.ConnectionRTTBrowserServiceToken),r.__metadata("design:type",m.ConnectionRTTBrowserService)],_.prototype,"rttService",void 0),t.ChromeDevtoolsContribution=_=n=r.__decorate([(0,v.Domain)(c.ClientAppContribution)],_)},72915:(x,t,e)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionRTTContribution=void 0;const r=e(85608),o=e(76003),c=e(26542),p=e(92323),v=e(98295),m=e(27654),_={id:"connection.start.rtt",label:"%connection.start.rtt%",category:"%command.category.developerTools%"},s={id:"connection.stop.rtt",label:"%connection.stop.rtt%",category:"%command.category.developerTools%"},g={alignment:c.StatusBarAlignment.LEFT,priority:1/0-1};let l=n=class{registerCommands(u){u.registerCommand(_,{execute:()=>{this.interval||this.startRTTInterval()}}),u.registerCommand(s,{execute:()=>{this.interval&&(clearInterval(this.interval),this.statusBar&&(this.statusBar.dispose(),this.statusBar=void 0))}})}startRTTInterval(){this.interval=setInterval(async()=>{const u=Date.now();await this.rttService.measure();const E={text:`${Date.now()-u}ms`};if(this.statusBar)this.statusBar.update({...E,...g});else{const f=this.statusBarService.addElement("connection-rtt",{...E,...g});this.statusBar=f}},n.INTERVAL)}};t.ConnectionRTTContribution=l,l.INTERVAL=1e3,r.__decorate([(0,o.Autowired)(c.IStatusBarService),r.__metadata("design:type",Object)],l.prototype,"statusBarService",void 0),r.__decorate([(0,o.Autowired)(m.ConnectionRTTBrowserServiceToken),r.__metadata("design:type",m.ConnectionRTTBrowserService)],l.prototype,"rttService",void 0),t.ConnectionRTTContribution=l=n=r.__decorate([(0,v.Domain)(p.CommandContribution)],l)},27654:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionRTTBrowserService=t.ConnectionRTTBrowserServiceToken=void 0;const n=e(85608),r=e(76003),o=e(69452);t.ConnectionRTTBrowserServiceToken=Symbol("ConnectionRTTBrowserService");let c=class{async measure(){await this.connectionBackService.$measure()}};t.ConnectionRTTBrowserService=c,n.__decorate([(0,r.Autowired)(o.ConnectionBackServicePath),n.__metadata("design:type",Object)],c.prototype,"connectionBackService",void 0),t.ConnectionRTTBrowserService=c=n.__decorate([(0,r.Injectable)()],c)},17631:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileDropContribution=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(43718),p=e(69452);let v=class extends c.WithEventBus{onDidDropFile(_){this.dropService.onDidDropFile(_)}};t.FileDropContribution=v,n.__decorate([(0,r.Autowired)(p.IFileDropFrontendServiceToken),n.__metadata("design:type",Object)],v.prototype,"dropService",void 0),n.__decorate([(0,c.OnEvent)(c.FileTreeDropEvent),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[c.FileTreeDropEvent]),n.__metadata("design:returntype",void 0)],v.prototype,"onDidDropFile",null),t.FileDropContribution=v=n.__decorate([(0,r.Injectable)(),(0,o.Domain)(o.ClientAppContribution)],v)},22874:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileDropService=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(26542),p=e(43718),v=e(42933),{Path:m}=p.path,_=e(69452);let s=class extends p.WithEventBus{constructor(){super(...arguments),this.pending=new Set}onDidUploadFileStart(l){this.pending.add(l),this.createOrUpdateStatusBar()}onDidUploadFileEnd(l){this.pending.delete(l),this.createOrUpdateStatusBar()}createOrUpdateStatusBar(l){if(this.pending.size===0){this.uploadStatus&&(this.uploadStatus.dispose(),this.uploadStatus=void 0);return}const h="sumi-upload-file-status",u=(0,o.formatLocalize)("workbench.uploadingFiles",this.pending.size,l||"0 MB"),d={text:u,alignment:c.StatusBarAlignment.RIGHT,tooltip:u,iconClass:"kaitian-icon kticon-cloud-server"};this.uploadStatus?this.uploadStatus.update({id:h,...d}):this.uploadStatus=this.statusBarService.addElement(h,d)}onDidDropFile(l){var h;const{payload:{event:u,targetDir:d}}=l;if(!d||!(!((h=u.dataTransfer)===null||h===void 0)&&h.files)||u.dataTransfer.files.length===0)return;const E=u.dataTransfer.items;let f=0;const a=Date.now(),b=y=>{f+=y;const A=Date.now(),w=`${(f/((A-a)/1e3)/1024/1024).toFixed(2)} MB`;this.createOrUpdateStatusBar(w)};for(const y of E){const A=y.webkitGetAsEntry();this.processFilesEntry(d,A,b)}}async processFilesEntry(l,h,u){if(h.isFile)this.processFileEntry(h,l,u);else{const d=p.Uri.file(new m(l).join(h.fullPath).toString()).toString();await this.fs.createFolder(d),this.processDirEntry(h,l,u)}}toBinaryString(l){let h;const u=l.length;let d="";for(h=0;h<u;h+=1)d+=String.fromCharCode(l[h]);return d}async doUploadFile(l,h,u){var d;const E=new m(h).join(l.name).toString();this.onDidUploadFileStart(E.toString()),await this.fs.createFile(p.Uri.file(E.toString()).toString()),await this.dropService.$ensureFileExist(l.name,h);const f=l.stream().getReader();let a=await f.read();for(;!a.done;)await this.dropService.$writeStream(this.toBinaryString(a.value),l.name,h,a.done),u((d=a.value)===null||d===void 0?void 0:d.byteLength),a=await f.read();a.done&&this.onDidUploadFileEnd(E.toString())}processFileEntry(l,h,u){l.file(d=>{const E=new File([d],l.fullPath,{type:l.type});this.doUploadFile(E,h,u)},()=>{})}processDirEntry(l,h,u){l.createReader().readEntries(E=>{E.forEach(async f=>{this.processFilesEntry(h,f,u)})},()=>{})}};t.FileDropService=s,n.__decorate([(0,r.Autowired)(v.IFileServiceClient),n.__metadata("design:type",Object)],s.prototype,"fs",void 0),n.__decorate([(0,r.Autowired)(_.FileDropServicePath),n.__metadata("design:type",Object)],s.prototype,"dropService",void 0),n.__decorate([(0,r.Autowired)(c.IStatusBarService),n.__metadata("design:type",Object)],s.prototype,"statusBarService",void 0),t.FileDropService=s=n.__decorate([(0,r.Injectable)()],s)},79240:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileSearchContribution=t.FileSearchQuickCommandHandler=t.matchLineReg=t.quickGoToSymbol=t.quickFileOpen=void 0,t.getValidateInput=b;const n=e(85608),r=n.__importDefault(e(39050)),o=e(76003),c=e(41869),p=e(26542),v=e(43718),m=e(98295),_=e(54414),s=e(17459),g=e(84660),l=n.__importStar(e(20868)),h=e(97821),u=e(80490),d=e(51500),E=e(30981),f=200;t.quickFileOpen={id:"workbench.action.quickOpen",category:"File",label:"Open File..."},t.quickGoToSymbol={id:"workbench.action.gotoSymbol",category:"File",label:"Open File Symbol..."},t.matchLineReg=/^([^:#(]*)[:#(]?L?(\d+)?[:,]?(\d+)?\)?/;function a(T=""){const D=T.match(t.matchLineReg)||[];if(D.length<2)return;const I={line:Number(D[2]||0),start:Number(D[3]||0)};return new l.Range(I.line,I.start,I.line,I.start)}function b(T){return T.replace(t.matchLineReg,"$1")}let y=class extends h.QuickOpenBaseAction{constructor(){super({id:"file-search:splitToRight",tooltip:(0,c.localize)("quickOpen.openOnTheRightSide"),class:(0,c.getIcon)("embed")})}async run(D){await this.commandService.executeCommand(c.EDITOR_COMMANDS.OPEN_RESOURCE.id,D.getUri(),{preview:!1,split:_.EditorGroupSplitAction.Right,range:a(this.injector.get(S).currentLookFor),focus:!0})}};n.__decorate([(0,o.Autowired)(c.CommandService),n.__metadata("design:type",Object)],y.prototype,"commandService",void 0),n.__decorate([(0,o.Autowired)(o.INJECTOR_TOKEN),n.__metadata("design:type",o.Injector)],y.prototype,"injector",void 0),y=n.__decorate([(0,o.Injectable)(),n.__metadata("design:paramtypes",[])],y);let A=class{hasActions(){return!0}getActions(){return[this.fileSearchActionLeftRight]}getValidateInput(D){return b(D)}};n.__decorate([(0,o.Autowired)(),n.__metadata("design:type",y)],A.prototype,"fileSearchActionLeftRight",void 0),A=n.__decorate([(0,o.Injectable)()],A);let S=class{constructor(){this.cancelIndicator=new v.CancellationTokenSource,this.default=!0,this.prefix="...",this.description=(0,c.localize)("file-search.command.fileOpen.description"),this.prevEditorState={},this.currentLookFor=""}getModel(){return{onType:async(D,I)=>{this.cancelIndicator.cancel(),this.cancelIndicator=new v.CancellationTokenSource;const O=this.cancelIndicator.token,M=new Set;let R=[];D=D.trim().replace(/\s/g,""),this.currentLookFor=D;const P=b(D),k=this.reporterService.time(v.REPORT_NAME.QUICK_OPEN_MEASURE),F=await this.getRecentlyItems(M,P,O);if(D&&(this.logger.debug("lookFor",D,P),R=await this.getFindOutItems(M,P,O)),O.isCancellationRequested)return;const L=F.concat(R);I(L,L.length?this.fileSearchActionProvider:void 0),k.timeEnd(D.indexOf("@")>-1?"file-symbol":"file",{lookFor:D,stat:{recently:F.length,find:R.length}})}}}getOptions(){return{placeholder:(0,c.localize)("file-search.command.fileOpen.placeholder"),fuzzyMatchLabel:{enableSeparateSubstringMatching:!0},showItemsWithoutHighlight:!0,fuzzyMatchDescription:{enableSeparateSubstringMatching:!0},getPlaceholderItem:D=>new c.QuickOpenItem({label:(0,c.localize)(D.indexOf("@")>-1?"search.fileSymbolResults.notfound":"search.fileResults.notfound"),run:()=>!1})}}onClose(D){D&&this.prevEditorState.uri&&(this.workbenchEditorService.open(this.prevEditorState.uri,{range:this.prevEditorState.range}),this.prevEditorState={}),this.prevSelected=void 0,this.cancelIndicator.cancel()}onToggle(){this.cancelIndicator.cancel()}trySaveEditorState(){var D;if(this.workbenchEditorService.currentResource){let I={startColumn:1,startLineNumber:1,endColumn:1,endLineNumber:1};const O=(D=this.workbenchEditorService.currentEditor)===null||D===void 0?void 0:D.getSelections();if(O){const{selectionStartLineNumber:M,selectionStartColumn:R,positionLineNumber:P,positionColumn:k}=O[0];I=new l.Range(M,R,P,k)}this.prevEditorState={uri:this.workbenchEditorService.currentResource.uri,range:I}}}async getFindOutItems(D,I,O){var M;let R;if(I.indexOf("@")>-1){this.trySaveEditorState(),R=[];const[P,k]=I.split("@");let F;if(this.prevSelected)F=this.prevSelected.withoutFragment();else if(P){const L=await this.getQueryFiles(P,D,O);L.length&&(F=L[0].getUri())}else F=(M=this.workbenchEditorService.currentResource)===null||M===void 0?void 0:M.uri;if(F){const L=await this.documentSymbolStore.getDocumentSymbolAsync(F)||[],B=[];this.flattenSymbols({children:L},B),R=B.filter(W=>{const U=(0,E.matchesFuzzy)(k,W.name,!0)||[];return U&&(W.labelHighlights=U),U&&U.length}).map((W,U)=>{var X;return new c.QuickOpenItem({uri:F,label:W.name,iconClass:(0,c.getSymbolIcon)(W.kind),description:(X=W.parent)===null||X===void 0?void 0:X.name,labelHighlights:W.labelHighlights,groupLabel:U===0?(0,c.formatLocalize)("search.fileSymbolResults",B.length):"",showBorder:!1,run:V=>V===c.Mode.PREVIEW?(this.locateSymbol(F,W),!0):V===c.Mode.OPEN?(this.locateSymbol(F,W),!0):!1})})}else return[]}else if(R=await this.getQueryFiles(I,D,O),R[0]){const P=await this.getItems([R[0].getUri().codeUri.fsPath],{groupLabel:(0,c.localize)("search.fileResults"),showBorder:!0});R[0]=P[0]}return R}async getQueryFiles(D,I,O){const R=(await this.workspaceService.roots).map(F=>new c.URI(F.uri).codeUri.fsPath),P=await this.fileSearchService.find(D,{rootUris:R,fuzzyMatch:!0,limit:f,useGitIgnore:!0,noIgnoreParent:!0,excludePatterns:this.getPreferenceSearchExcludes()},O),k=await this.getItems(P.filter(F=>I.has(F)||O.isCancellationRequested?!1:(I.add(F),!0)),{});return k.sort(this.compareItems.bind(this)),k}async flattenSymbols(D,I){D.children.forEach(O=>{I.push(O),O.children&&this.flattenSymbols(O,I)})}async getRecentlyItems(D,I,O){const M=await this.recentFilesManager.getMostRecentlyOpenedFiles(!0)||[];return await this.getItems(M.filter(R=>{const P=new c.URI(R);return D.has(R)||!r.default.test(I,P.displayName)||O.isCancellationRequested?!1:(D.add(R),!0)}),{groupLabel:(0,c.localize)("search.historyMatches")})}async getItems(D,I){const O=[];for(const[M,R]of D.entries()){const P=c.URI.isUriString(R)?new c.URI(R):c.URI.file(R),k=`file-icon ${this.labelService.getIcon(P.withoutFragment())}`;let F="";const L=await this.workspaceService.asRelativePath(P.parent);L&&(this.workspaceService.isMultiRootWorkspaceOpened?F=`${new c.URI(L.root).displayName}${L.path?` \u30FB ${L.path}`:""}`:F=L.path||"");const B=new c.QuickOpenItem({uri:P,label:P.displayName,tooltip:R,iconClass:k,description:F,groupLabel:M===0?I.groupLabel:"",showBorder:D.length>0&&M===0?I.showBorder:!1,run:j=>(j===c.Mode.PREVIEW&&(this.prevSelected=P),j===c.Mode.OPEN?(this.openFile(P),!0):!1)});O.push(B)}return O}openFile(D){const I=D.codeUri.fsPath;let O=a(this.currentLookFor);(!O||!O.startLineNumber&&!O.startColumn)&&(O=a(D.fragment?"#"+D.fragment:I)),this.currentLookFor="",this.commandService.executeCommand(c.EDITOR_COMMANDS.OPEN_RESOURCE.id,D.withoutFragment(),{preview:!1,range:O,focus:!0})}locateSymbol(D,I){this.workbenchEditorService.open(D,{range:I.range,preview:!0})}compareItems(D,I,O="getLabel"){function M(j){return j.trim().toLowerCase()}const R=M(b(this.currentLookFor));function P(j){const W=r.default.match(R,j);return W===null?0:W.score}let k=D[O](),F=I[O]();typeof k!="string"&&(k=k.path.toString()),typeof F!="string"&&(F=F.path.toString()),k=M(k),F=M(F);const L=P(k),B=P(F);if(L===B){const j=k.indexOf(R),W=F.indexOf(R);return j===W?k.length!==F.length?k.length<F.length?-1:1:F.localeCompare(k)===0?O==="getUri"?0:this.compareItems(D,I,"getUri"):F.localeCompare(k):j-W}return B-L}getPreferenceSearchExcludes(){const D=[],I=this.preferenceService.get("files.exclude"),O=this.preferenceService.get("search.exclude"),M=Object.assign({},I,O);for(const R of Object.keys(M))M[R]&&D.push(R);return D}};t.FileSearchQuickCommandHandler=S,n.__decorate([(0,o.Autowired)(c.CommandService),n.__metadata("design:type",Object)],S.prototype,"commandService",void 0),n.__decorate([(0,o.Autowired)(g.FileSearchServicePath),n.__metadata("design:type",Object)],S.prototype,"fileSearchService",void 0),n.__decorate([(0,o.Autowired)(_.WorkbenchEditorService),n.__metadata("design:type",_.WorkbenchEditorService)],S.prototype,"workbenchEditorService",void 0),n.__decorate([(0,o.Autowired)(s.DocumentSymbolStore),n.__metadata("design:type",s.DocumentSymbolStore)],S.prototype,"documentSymbolStore",void 0),n.__decorate([(0,o.Autowired)(),n.__metadata("design:type",p.LabelService)],S.prototype,"labelService",void 0),n.__decorate([(0,o.Autowired)(d.IWorkspaceService),n.__metadata("design:type",Object)],S.prototype,"workspaceService",void 0),n.__decorate([(0,o.Autowired)(c.RecentFilesManager),n.__metadata("design:type",c.RecentFilesManager)],S.prototype,"recentFilesManager",void 0),n.__decorate([(0,o.Autowired)(c.ILogger),n.__metadata("design:type",Object)],S.prototype,"logger",void 0),n.__decorate([(0,o.Autowired)(),n.__metadata("design:type",A)],S.prototype,"fileSearchActionProvider",void 0),n.__decorate([(0,o.Autowired)(c.PreferenceService),n.__metadata("design:type",Object)],S.prototype,"preferenceService",void 0),n.__decorate([(0,o.Autowired)(v.IReporterService),n.__metadata("design:type",Object)],S.prototype,"reporterService",void 0),t.FileSearchQuickCommandHandler=S=n.__decorate([(0,o.Injectable)()],S);let w=class{registerQuickOpenHandlers(D){D.registerHandler(this.fileSearchQuickCommandHandler,{title:(0,c.localize)("quickopen.tab.file"),commandId:t.quickFileOpen.id,order:1})}registerCommands(D){D.registerCommand(t.quickFileOpen,{execute:()=>this.quickOpenService.open("...")}),D.registerCommand(t.quickGoToSymbol,{execute:()=>this.quickOpenService.open("...@")})}registerKeybindings(D){D.registerKeybinding({command:t.quickFileOpen.id,keybinding:"ctrlcmd+p"})}};t.FileSearchContribution=w,n.__decorate([(0,o.Autowired)(S),n.__metadata("design:type",S)],w.prototype,"fileSearchQuickCommandHandler",void 0),n.__decorate([(0,o.Autowired)(h.PrefixQuickOpenService),n.__metadata("design:type",Object)],w.prototype,"quickOpenService",void 0),t.FileSearchContribution=w=n.__decorate([(0,m.Domain)(v.CommandContribution,c.KeybindingContribution,u.QuickOpenContribution)],w)},73827:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClientAddonModule=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(69452),p=e(79682),v=e(72915),m=e(27654),_=e(17631),s=e(22874),g=e(79240),l=e(18256),h=e(7756),u=e(16426);let d=class extends o.BrowserModule{constructor(){super(...arguments),this.providers=[p.ChromeDevtoolsContribution,l.LanguageChangeHintContribution,g.FileSearchContribution,h.StatusBarContribution,u.ToolbarCustomizeContribution,_.FileDropContribution,v.ConnectionRTTContribution,{token:c.IFileDropFrontendServiceToken,useClass:s.FileDropService},{token:m.ConnectionRTTBrowserServiceToken,useClass:m.ConnectionRTTBrowserService}],this.backServices=[{servicePath:c.FileDropServicePath},{servicePath:c.ConnectionBackServicePath}]}};t.ClientAddonModule=d,t.ClientAddonModule=d=n.__decorate([(0,r.Injectable)()],d)},18256:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LanguageChangeHintContribution=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(72665);let p=class{onStart(){this.preferenceService.onSpecificPreferenceChange(o.GeneralSettingsId.Language,async m=>{(0,o.setLanguageId)(m.newValue),this.preferenceService.get("general.askReloadOnLanguageChange")&&await this.dialogService.info((0,o.localize)("preference.general.language.change.refresh.info","After changing the language, it should be restarted to take effect. Will it be refreshed immediately?"),[(0,o.localize)("preference.general.language.change.refresh.later","Later"),(0,o.localize)("preference.general.language.change.refresh.now","Now")])===(0,o.localize)("preference.general.language.change.refresh.now","Now")&&this.clientApp.fireOnReload()})}};t.LanguageChangeHintContribution=p,n.__decorate([(0,r.Autowired)(o.PreferenceService),n.__metadata("design:type",Object)],p.prototype,"preferenceService",void 0),n.__decorate([(0,r.Autowired)(o.IClientApp),n.__metadata("design:type",Object)],p.prototype,"clientApp",void 0),n.__decorate([(0,r.Autowired)(c.IDialogService),n.__metadata("design:type",Object)],p.prototype,"dialogService",void 0),t.LanguageChangeHintContribution=p=n.__decorate([(0,o.Domain)(o.ClientAppContribution)],p)},7756:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StatusBarContribution=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(43718);let p=class extends c.WithEventBus{onStart(){}handleBrowserConnectionOpen(){this.commandService.executeCommand("statusbar.changeBackgroundColor","var(--statusBar-background)"),this.logger.log("Browser connection open, change status bar background color")}handleBrowserConnectionClose(){this.commandService.executeCommand("statusbar.changeBackgroundColor","var(--kt-statusbar-offline-background)"),this.logger.log("Browser connection close, change status bar background color")}};t.StatusBarContribution=p,n.__decorate([(0,r.Autowired)(c.CommandService),n.__metadata("design:type",Object)],p.prototype,"commandService",void 0),n.__decorate([(0,r.Autowired)(c.ILogger),n.__metadata("design:type",Object)],p.prototype,"logger",void 0),n.__decorate([(0,c.OnEvent)(c.BrowserConnectionOpenEvent),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],p.prototype,"handleBrowserConnectionOpen",null),n.__decorate([(0,c.OnEvent)(c.BrowserConnectionCloseEvent),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],p.prototype,"handleBrowserConnectionClose",null),t.StatusBarContribution=p=n.__decorate([(0,c.Domain)(o.ClientAppContribution)],p)},16426:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ToolbarCustomizeContribution=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(93899),p=e(62132);let v=class{registerCommands(_){_.registerCommand({id:"toolbar.showCustomizePanel",label:"Show Toolbar Customization"},{execute:()=>{this.viewService.setVisible(!0)}})}registerComponent(_){_.register("addon/toolbar-customize",{id:"addon/toolbar-customize",component:p.ToolbarCustomizeComponent}),this.config.layoutConfig[o.SlotLocation.extra]||(this.config.layoutConfig[o.SlotLocation.extra]={modules:[]}),this.config.layoutConfig[o.SlotLocation.extra].modules.push("addon/toolbar-customize")}registerMenus(_){_.registerMenuItem(c.MenuId.KTToolbarLocationContext,{command:{id:"toolbar.showCustomizePanel",label:(0,o.localize)("toolbar.customize.menu")}})}};t.ToolbarCustomizeContribution=v,n.__decorate([(0,r.Autowired)(o.AppConfig),n.__metadata("design:type",Object)],v.prototype,"config",void 0),n.__decorate([(0,r.Autowired)(p.ToolbarCustomizeViewService),n.__metadata("design:type",p.ToolbarCustomizeViewService)],v.prototype,"viewService",void 0),t.ToolbarCustomizeContribution=v=n.__decorate([(0,o.Domain)(o.CommandContribution,o.ComponentContribution,c.MenuContribution)],v)},62132:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ToolbarCustomizeComponent=t.ToolbarCustomizeViewService=void 0;const n=e(85608),r=n.__importDefault(e(14041)),o=e(76003),c=e(97267),p=e(41869),v=n.__importDefault(e(18541));let m=class{bindSetVisibleHandle(g){this._setVisible=g}setVisible(g){this._setVisible(g)}async toggleActionVisibility(g,l,h){const u=this.preferenceService.getValid("toolbar.ignoreActions",{});if(u[g]||(u[g]=[]),!h)u[g].indexOf(l)===-1&&u[g].push(l);else{const E=u[g].indexOf(l);E!==-1&&u[g].splice(E,1)}const d=this.preferenceService.inspect("toolbar.ignoreActions").workspaceValue?p.PreferenceScope.Workspace:p.PreferenceScope.User;await this.preferenceService.set("toolbar.ignoreActions",u,d)}};t.ToolbarCustomizeViewService=m,n.__decorate([(0,o.Autowired)(p.PreferenceService),n.__metadata("design:type",Object)],m.prototype,"preferenceService",void 0),t.ToolbarCustomizeViewService=m=n.__decorate([(0,o.Injectable)()],m);const _=()=>{const[s,g]=r.default.useState(!1),l=(0,p.useInjectable)(m),h=(0,p.useInjectable)(p.IToolbarRegistry),u=(0,p.useInjectable)(p.PreferenceService);if(l.bindSetVisibleHandle(g),!s)return null;const d=h.getAllLocations(),E=u.get("toolbar.ignoreActions")||{};let f=u.get("toolbar.buttonDisplay","iconAndText");function a(b){const y=[{id:"_head"},...h.getActionGroups(b)||[],{id:"_tail"}],A=[],S=E[b]||[];return y.forEach((w,T)=>{const D=h.getToolbarActions({location:b,group:w.id});D&&D.actions.length>0&&(A.length>0&&A.push(r.default.createElement("div",{className:v.default["group-split"],key:"split-"+T})),D.actions.forEach((I,O)=>{var M;let R=S.indexOf(I.id)===-1;const P="action-toggle-"+I.id;A.push(r.default.createElement("div",{className:v.default["action-item"],key:O+"_"+I.id},r.default.createElement(c.CheckBox,{onChange:()=>{l.toggleActionVisibility(b,I.id,!R),R=!R},defaultChecked:R,id:P,label:(M=I.description)!==null&&M!==void 0?M:I.id})))}))}),A.length===0?null:r.default.createElement("div",{key:b,className:v.default["toolbar-customize-location"]},A)}return r.default.createElement("div",{className:v.default["toolbar-customize-overlay"]},r.default.createElement("div",{className:v.default["toolbar-customize"]},d.map(b=>a(b)),r.default.createElement("div",{className:v.default["button-display"]},r.default.createElement("div",null,(0,p.localize)("toolbar-customize.buttonDisplay.description")),r.default.createElement(c.Select,{options:[{label:(0,p.localize)("toolbar-customize.buttonDisplay.icon"),value:"icon"},{label:(0,p.localize)("toolbar-customize.buttonDisplay.iconAndText"),value:"iconAndText"}],value:f,onChange:b=>{const y=u.inspect("toolbar.buttonDisplay").workspaceValue?p.PreferenceScope.Workspace:p.PreferenceScope.User;u.set("toolbar.buttonDisplay",b,y),f=b},className:v.default["button-display-select"]})),r.default.createElement("div",{className:v.default["customize-complete"]},r.default.createElement(c.Button,{type:"primary",onClick:()=>g(!1)},(0,p.localize)("toolbar-customize.complete")))))};t.ToolbarCustomizeComponent=_},69452:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IConnectionBackService=t.ConnectionBackServicePath=t.IFileDropFrontendServiceToken=t.IFileDropServiceToken=t.FileDropServicePath=void 0,t.FileDropServicePath="FileDropServicePath",t.IFileDropServiceToken=Symbol("IFileDropService"),t.IFileDropFrontendServiceToken=Symbol("IFileDropFrontendService"),t.ConnectionBackServicePath="ConnectionBackServicePath",t.IConnectionBackService=Symbol("IConnectionBackService")},77659:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AINativeContextKey=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(50394);let p=class{get contextKeyService(){return this._contextKeyService}constructor(m){this._contextKeyService=this.globalContextKeyService.createScoped(m),this.inlineChatIsVisible=c.InlineChatIsVisible.bind(this._contextKeyService),this.inlineCompletionIsTrigger=c.InlineCompletionIsTrigger.bind(this._contextKeyService),this.inlineHintWidgetIsVisible=c.InlineHintWidgetIsVisible.bind(this._contextKeyService),this.inlineInputWidgetIsVisible=c.InlineInputWidgetIsVisible.bind(this._contextKeyService),this.inlineInputWidgetIsStreaming=c.InlineInputWidgetIsStreaming.bind(this._contextKeyService),this.inlineDiffPartialEditsIsVisible=c.InlineDiffPartialEditsIsVisible.bind(this._contextKeyService),this.codeEditsIsVisible=c.CodeEditsIsVisible.bind(this._contextKeyService)}};t.AINativeContextKey=p,n.__decorate([(0,r.Autowired)(o.IContextKeyService),n.__metadata("design:type",Object)],p.prototype,"globalContextKeyService",void 0),t.AINativeContextKey=p=n.__decorate([(0,r.Injectable)(),n.__param(0,(0,r.Optional)()),n.__metadata("design:paramtypes",[Object])],p)},32016:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AINativeBrowserContribution=t.INLINE_DIFF_MANAGER_WIDGET_ID=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(57925),p=e(50394),v=e(1149),m=e(97222),_=e(43718),s=e(82353),g=e(54414),l=e(57517),h=e(51553),u=e(63067),d=e(46507),E=e(97682),f=e(68415),a=e(96640),b=e(19413),y=e(61282),A=e(51081),S=e(59347),w=e(76154),T=e(79559),D=e(57232),I=e(72991),O=e(71863),M=e(7511),R=e(42911),P=e(72801),k=e(87817),F=e(4972),L=e(82983),B=e(73974),j=e(77633),W=e(51221),U=e(2281),X=e(31031),V=e(95608),$=e(38890),Y=e(77886),G=e(89060),H=e(74353),K=e(22169),Z=e(90058);t.INLINE_DIFF_MANAGER_WIDGET_ID="inline-diff-manager-widget";let Q=class{constructor(){this.registerFeature()}async initialize(){const{supportsChatAssistant:te}=this.aiNativeConfigService.capabilities;te&&(o.ComponentRegistryImpl.addLayoutModule(this.appConfig.layoutConfig,b.AI_CHAT_VIEW_ID,b.AI_CHAT_CONTAINER_ID),o.ComponentRegistryImpl.addLayoutModule(this.appConfig.layoutConfig,s.DESIGN_MENU_BAR_RIGHT,b.AI_CHAT_LOGO_AVATAR_ID),this.chatProxyService.registerDefaultAgent(),this.chatInternalService.init(),await this.chatManagerService.init())}registerEditorExtensionContribution(te){const{supportsInlineChat:ue,supportsInlineCompletion:_e,supportsProblemFix:q,supportsCodeAction:be}=this.aiNativeConfigService.capabilities;te($.InlineDiffController.ID,new a.SyncDescriptor($.InlineDiffController,[this.injector]),E.EditorContributionInstantiation.Lazy),be&&te(Z.SumiLightBulbWidget.ID,Z.SumiLightBulbWidget,E.EditorContributionInstantiation.Lazy),ue&&(te(W.InlineChatEditorController.ID,new a.SyncDescriptor(W.InlineChatEditorController,[this.injector]),E.EditorContributionInstantiation.BeforeFirstInteraction),this.inlineInputService.getInteractiveInputHandler()&&(te(Y.InlineHintController.ID,new a.SyncDescriptor(Y.InlineHintController,[this.injector]),E.EditorContributionInstantiation.AfterFirstRender),te(G.InlineInputController.ID,new a.SyncDescriptor(G.InlineInputController,[this.injector]),E.EditorContributionInstantiation.AfterFirstRender))),_e&&(te(M.IntelligentCompletionsController.ID,new a.SyncDescriptor(M.IntelligentCompletionsController,[this.injector]),E.EditorContributionInstantiation.Eager),te(I.InlineCompletionsController.ID,new a.SyncDescriptor(I.InlineCompletionsController,[this.injector]),E.EditorContributionInstantiation.AfterFirstRender)),q&&te(R.ProblemFixController.ID,new a.SyncDescriptor(R.ProblemFixController,[this.injector]),E.EditorContributionInstantiation.AfterFirstRender)}onReconnect(){const{supportsMCP:te}=this.aiNativeConfigService.capabilities;te&&this.initMCPServers()}onDidStart(){(0,_.runWhenIdle)(()=>{const{supportsRenameSuggestions:te,supportsInlineChat:ue,supportsMCP:_e,supportsCustomLLMSettings:q}=this.aiNativeConfigService.capabilities,be=this.preferenceService.getValid(o.AINativeSettingSectionsId.ChatVisibleType);be==="always"?this.commandService.executeCommand(c.AI_CHAT_VISIBLE.id,!0):be==="never"&&this.commandService.executeCommand(c.AI_CHAT_VISIBLE.id,!1),te&&this.renameSingleHandler.load(),ue&&this.codeActionSingleHandler.load(),q&&(this.preferenceService.onSpecificPreferenceChange(o.AINativeSettingSectionsId.LLMModelSelection,pe=>{const ie=this.getModelByName(pe.newValue),ge=ie?Object.keys(ie):[],Re=ge.length?ge[0]:"",Pe=this.preferenceSchemaProvider.getPreferenceProperty(o.AINativeSettingSectionsId.ModelID);this.preferenceSchemaProvider.setSchema({properties:{[o.AINativeSettingSectionsId.ModelID]:{...Pe,default:Re,defaultValue:Re,enum:ge.length?ge:void 0}}},!0),this.preferenceService.set(o.AINativeSettingSectionsId.ModelID,Re,pe.scope),this.preferenceSettings.setEnumLabels(o.AINativeSettingSectionsId.ModelID,ge.reduce((Ae,we)=>({...Ae,[we]:we}),{}))}),this.preferenceService.onSpecificPreferenceChange(o.AINativeSettingSectionsId.ModelID,pe=>{const ie=this.preferenceService.get(o.AINativeSettingSectionsId.LLMModelSelection);if(!ie)return;const ge=this.getModelByName(ie);ge&&ge[pe.newValue]&&(this.preferenceService.set(o.AINativeSettingSectionsId.MaxTokens,ge[pe.newValue].maxTokens,pe.scope),this.preferenceService.set(o.AINativeSettingSectionsId.ContextWindow,ge[pe.newValue].contextWindow,pe.scope))})),_e&&this.initMCPServers()})}initMCPServers(){var te;const ue=this.preferenceService.getValid(o.AINativeSettingSectionsId.MCPServers),_e=ue?.find(q=>q.name===b.BUILTIN_MCP_SERVER_NAME);if(this.sumiMCPServerBackendProxy.$initBuiltinMCPServer((te=_e?.enabled)!==null&&te!==void 0?te:!0),ue&&ue.length>0){const q=ue.filter(be=>be.name!==b.BUILTIN_MCP_SERVER_NAME);q.length>0&&this.sumiMCPServerBackendProxy.$initExternalMCPServers(q)}}getModelByName(te){switch(te){case"deepseek":return b.deepSeekModels;case"anthropic":return b.anthropicModels;case"openai":return b.openAiNativeModels;default:return}}registerFeature(){this.contributions.getContributions().forEach(te=>{var ue,_e,q,be,pe,ie,ge,Re,Pe;(ue=te.registerInlineChatFeature)===null||ue===void 0||ue.call(te,this.inlineChatFeatureRegistry),(_e=te.registerChatFeature)===null||_e===void 0||_e.call(te,this.chatFeatureRegistry),(q=te.registerResolveConflictFeature)===null||q===void 0||q.call(te,this.resolveConflictRegistry),(be=te.registerRenameProvider)===null||be===void 0||be.call(te,this.renameCandidatesProviderRegistry),(pe=te.registerChatRender)===null||pe===void 0||pe.call(te,this.chatRenderRegistry),(ie=te.registerTerminalProvider)===null||ie===void 0||ie.call(te,this.terminalProviderRegistry),(ge=te.registerIntelligentCompletionFeature)===null||ge===void 0||ge.call(te,this.intelligentCompletionsRegistry),(Re=te.registerProblemFixFeature)===null||Re===void 0||Re.call(te,this.problemFixProviderRegistry),(Pe=te.registerChatAgentPromptProvider)===null||Pe===void 0||Pe.call(te)}),this.mcpServerContributions.getContributions().forEach(te=>{te.registerMCPServer(this.mcpServerRegistry)})}registerSetting(te){te.registerSettingGroup({id:o.AI_NATIVE_SETTING_GROUP_ID,title:_.AI_NATIVE_SETTING_GROUP_TITLE,iconClass:(0,o.getIcon)("magic-wand")}),te.registerSettingSection(o.AI_NATIVE_SETTING_GROUP_ID,{title:(0,o.localize)("preference.ai.native.chat.title"),preferences:[{id:o.AINativeSettingSectionsId.ChatVisibleType,localized:"preference.ai.native.chat.visible.type"}]}),te.registerSettingSection(o.AI_NATIVE_SETTING_GROUP_ID,{title:(0,o.localize)("preference.ai.native.interface.quick.title"),preferences:[{id:o.AINativeSettingSectionsId.InterfaceQuickNavigationEnabled,localized:"preference.ai.native.interface.quick.navigation"}]}),this.aiNativeConfigService.capabilities.supportsInlineCompletion&&(te.registerSettingSection(o.AI_NATIVE_SETTING_GROUP_ID,{title:(0,o.localize)("preference.ai.native.intelligentCompletions.title"),preferences:[{id:o.AINativeSettingSectionsId.IntelligentCompletionsCacheEnabled,localized:"preference.ai.native.intelligentCompletions.cache.enabled"},{id:o.AINativeSettingSectionsId.IntelligentCompletionsDebounceTime,localized:"preference.ai.native.intelligentCompletions.debounceTime"},{id:o.AINativeSettingSectionsId.IntelligentCompletionsPromptEngineeringEnabled,localized:"preference.ai.native.intelligentCompletions.promptEngineering.enabled"},{id:o.AINativeSettingSectionsId.IntelligentCompletionsAlwaysVisible,localized:"preference.ai.native.intelligentCompletions.alwaysVisible"}]}),te.registerSettingSection(o.AI_NATIVE_SETTING_GROUP_ID,{title:(0,o.localize)("preference.ai.native.codeEdits.title"),preferences:[{id:o.AINativeSettingSectionsId.CodeEditsLintErrors,localized:"preference.ai.native.codeEdits.lintErrors"},{id:o.AINativeSettingSectionsId.CodeEditsLineChange,localized:"preference.ai.native.codeEdits.lineChange"},{id:o.AINativeSettingSectionsId.CodeEditsTyping,localized:"preference.ai.native.codeEdits.typing"},{id:o.AINativeSettingSectionsId.CodeEditsRenderType,localized:"preference.ai.native.codeEdits.renderType"},{id:o.AINativeSettingSectionsId.SystemPrompt,localized:"preference.ai.native.chat.system.prompt"}]})),this.aiNativeConfigService.capabilities.supportsCustomLLMSettings&&te.registerSettingSection(o.AI_NATIVE_SETTING_GROUP_ID,{title:(0,o.localize)("preference.ai.native.llm.apiSettings.title"),preferences:[{id:o.AINativeSettingSectionsId.LLMModelSelection,localized:"preference.ai.native.llm.model.selection"},{id:o.AINativeSettingSectionsId.ModelID,localized:"preference.ai.native.llm.model.id"},{id:o.AINativeSettingSectionsId.DeepseekApiKey,localized:"preference.ai.native.deepseek.apiKey"},{id:o.AINativeSettingSectionsId.AnthropicApiKey,localized:"preference.ai.native.anthropic.apiKey"},{id:o.AINativeSettingSectionsId.OpenaiApiKey,localized:"preference.ai.native.openai.apiKey"},{id:o.AINativeSettingSectionsId.OpenaiBaseURL,localized:"preference.ai.native.openai.baseURL"},{id:o.AINativeSettingSectionsId.MaxTokens,localized:"preference.ai.native.maxTokens"},{id:o.AINativeSettingSectionsId.ContextWindow,localized:"preference.ai.native.contextWindow"}]}),this.aiNativeConfigService.capabilities.supportsMCP&&te.registerSettingSection(o.AI_NATIVE_SETTING_GROUP_ID,{title:(0,o.localize)("preference.ai.native.mcp.settings.title"),preferences:[{id:o.AINativeSettingSectionsId.MCPServers,localized:"preference.ai.native.mcp.servers"}]}),this.aiNativeConfigService.capabilities.supportsInlineChat&&te.registerSettingSection(o.AI_NATIVE_SETTING_GROUP_ID,{title:(0,o.localize)("preference.ai.native.inlineChat.title"),preferences:[{id:o.AINativeSettingSectionsId.InlineChatAutoVisible,localized:"preference.ai.native.inlineChat.auto.visible"},{id:o.AINativeSettingSectionsId.InlineChatCodeActionEnabled,localized:"preference.ai.native.inlineChat.codeAction.enabled"},{id:o.AINativeSettingSectionsId.InlineDiffPreviewMode,localized:"preference.ai.native.inlineDiff.preview.mode"}]})}registerEditorFeature(te){te.registerEditorFeatureContribution({contribute:ue=>{const{monacoEditor:_e}=ue;return this.codeActionSingleHandler.mountEditor(ue.monacoEditor),_e.onDidScrollChange(()=>{this.ctxMenuRenderer.visible&&this.ctxMenuRenderer.hide(!0)})}})}registerEditorComponent(te){te.registerEditorSideWidget({id:t.INLINE_DIFF_MANAGER_WIDGET_ID,component:V.InlineDiffManager,displaysOnResource:ue=>{var _e;return!!(this.aiNativeConfigService.capabilities.supportsMCP&&(!((_e=this.applyService.getUriCodeBlocks(ue.uri))===null||_e===void 0)&&_e.filter(q=>q.status==="pending").length))}})}registerCommands(te){te.registerCommand(c.AI_INLINE_CHAT_VISIBLE,{execute:ue=>{this.aiInlineChatService._onInlineChatVisible.fire(ue)}}),te.registerCommand(c.AI_INLINE_CHAT_INTERACTIVE_INPUT_VISIBLE,{execute:async ue=>{var _e;if(!ue){this.inlineInputService.hide();return}this.commandService.executeCommand(c.AI_INLINE_CHAT_VISIBLE.id,!1);const q=this.workbenchEditorService.currentCodeEditor;if(!q)return;const be=q.monacoEditor.getPosition();if(!be)return;const pe=q.monacoEditor.getSelection();if(be?((_e=q.monacoEditor.getModel())===null||_e===void 0?void 0:_e.getLineLength(be.lineNumber))===0:!1){this.inlineInputService.visibleByPosition(be);return}if(pe&&!pe.isEmpty()){this.inlineInputService.visibleBySelection(pe);return}this.inlineInputService.visibleByNearestCodeBlock(be,q.monacoEditor)}}),te.registerCommand(c.AI_INLINE_CHAT_INTERACTIVE_INPUT_CANCEL,{execute:()=>{var ue;const _e=this.workbenchEditorService.currentCodeEditor;_e&&((ue=G.InlineInputController.get(_e.monacoEditor))===null||ue===void 0||ue.cancelToken())}}),te.registerCommand(c.AI_INLINE_COMPLETION_REPORTER,{execute:(ue,_e,q,be)=>{this.aiCompletionsService.report({sessionId:_e,accept:q,relationId:ue,code:be})}}),te.registerCommand(c.AI_CHAT_VISIBLE,{execute:ue=>{this.layoutService.toggleSlot(b.AI_CHAT_VIEW_ID,(0,_.isUndefined)(ue)?!0:ue)}}),te.registerCommand(c.AI_INLINE_COMPLETION_VISIBLE,{execute:async ue=>{ue||(this.aiCompletionsService.hideStatusBarItem(),this.aiInlineCompletionsProvider.setVisibleCompletion(!1),this.aiInlineCompletionsProvider.cancelRequest())}}),te.registerCommand(c.AI_INLINE_DIFF_PARTIAL_EDIT,{execute:ue=>{this.inlineStreamDiffService.launchAcceptDiscardPartialEdit(ue)}}),te.afterExecuteCommand(f.HideInlineCompletion.ID,()=>{this.commandService.executeCommand(c.AI_INLINE_COMPLETION_VISIBLE.id,!1)})}registerRenderer(te){this.designLayoutConfig.supportExternalChatPanel?te.registerSlotRenderer(b.AI_CHAT_VIEW_ID,F.AIChatTabRendererWithTab):te.registerSlotRenderer(b.AI_CHAT_VIEW_ID,F.AIChatTabRenderer),this.designLayoutConfig.useMergeRightWithLeftPanel&&(te.registerSlotRenderer(o.SlotLocation.left,F.AILeftTabRenderer),te.registerSlotRenderer(o.SlotLocation.right,F.AIRightTabRenderer))}registerComponent(te){te.register(b.AI_CHAT_CONTAINER_ID,[],{component:w.AIChatView,title:(0,o.localize)("aiNative.chat.ai.assistant.name"),iconClass:(0,o.getIcon)("magic-wand"),containerId:b.AI_CHAT_CONTAINER_ID}),te.register(b.AI_MENU_BAR_DEBUG_TOOLBAR,{id:b.AI_MENU_BAR_DEBUG_TOOLBAR,component:k.AIRunToolbar}),te.register(b.AI_CHAT_LOGO_AVATAR_ID,{id:b.AI_CHAT_LOGO_AVATAR_ID,component:L.AIChatLogoAvatar})}registerKeybindings(te){this.aiNativeConfigService.capabilities.supportsInlineChat&&(te.registerKeybinding({command:c.AI_INLINE_CHAT_VISIBLE.id,keybinding:"ctrlcmd+i",when:"editorTextFocus",args:!0,priority:0},o.KeybindingScope.USER),te.registerKeybinding({command:c.AI_INLINE_CHAT_VISIBLE.id,keybinding:"esc",args:!1,when:`editorFocus && ${p.InlineChatIsVisible.raw}`}),this.inlineInputService.getInteractiveInputHandler()&&(te.registerKeybinding({command:c.AI_INLINE_CHAT_INTERACTIVE_INPUT_VISIBLE.id,keybinding:this.aiNativeConfigService.inlineChat.inputKeybinding,args:!0,priority:0,when:`editorFocus && (${p.InlineChatIsVisible.raw} || inlineSuggestionVisible)`},o.KeybindingScope.USER),te.registerKeybinding({command:c.AI_INLINE_CHAT_INTERACTIVE_INPUT_VISIBLE.id,keybinding:"esc",args:!1,priority:0,when:`editorFocus && ${p.InlineInputWidgetIsVisible.raw}`}),te.registerKeybinding({command:c.AI_INLINE_CHAT_INTERACTIVE_INPUT_CANCEL.id,keybinding:"esc",priority:1,when:`editorFocus && ${p.InlineInputWidgetIsStreaming.raw}`}),te.registerKeybinding({command:c.AI_INLINE_CHAT_INTERACTIVE_INPUT_VISIBLE.id,keybinding:this.aiNativeConfigService.inlineChat.inputKeybinding,args:!0,priority:0,when:`editorFocus && ${p.InlineHintWidgetIsVisible.raw} && ${p.InlineChatIsVisible.not}`},o.KeybindingScope.USER))),te.registerKeybinding({command:c.AI_INLINE_DIFF_PARTIAL_EDIT.id,keybinding:"ctrl+y",args:!0,priority:100,when:`editorTextFocus && ${p.InlineDiffPartialEditsIsVisible.raw}`}),te.registerKeybinding({command:c.AI_INLINE_DIFF_PARTIAL_EDIT.id,keybinding:"ctrl+n",args:!1,priority:100,when:`editorTextFocus && ${p.InlineDiffPartialEditsIsVisible.raw}`})}};t.AINativeBrowserContribution=Q,n.__decorate([(0,r.Autowired)(o.AppConfig),n.__metadata("design:type",Object)],Q.prototype,"appConfig",void 0),n.__decorate([(0,r.Autowired)(r.INJECTOR_TOKEN),n.__metadata("design:type",r.Injector)],Q.prototype,"injector",void 0),n.__decorate([(0,r.Autowired)(m.IBrowserCtxMenu),n.__metadata("design:type",m.IBrowserCtxMenu)],Q.prototype,"ctxMenuRenderer",void 0),n.__decorate([(0,r.Autowired)(j.AINativeCoreContribution),n.__metadata("design:type",Object)],Q.prototype,"contributions",void 0),n.__decorate([(0,r.Autowired)(j.MCPServerContribution),n.__metadata("design:type",Object)],Q.prototype,"mcpServerContributions",void 0),n.__decorate([(0,r.Autowired)(j.TokenMCPServerRegistry),n.__metadata("design:type",Object)],Q.prototype,"mcpServerRegistry",void 0),n.__decorate([(0,r.Autowired)(_.InlineChatFeatureRegistryToken),n.__metadata("design:type",U.InlineChatFeatureRegistry)],Q.prototype,"inlineChatFeatureRegistry",void 0),n.__decorate([(0,r.Autowired)(_.ChatFeatureRegistryToken),n.__metadata("design:type",Object)],Q.prototype,"chatFeatureRegistry",void 0),n.__decorate([(0,r.Autowired)(_.ChatRenderRegistryToken),n.__metadata("design:type",Object)],Q.prototype,"chatRenderRegistry",void 0),n.__decorate([(0,r.Autowired)(_.ResolveConflictRegistryToken),n.__metadata("design:type",Object)],Q.prototype,"resolveConflictRegistry",void 0),n.__decorate([(0,r.Autowired)(_.RenameCandidatesProviderRegistryToken),n.__metadata("design:type",Object)],Q.prototype,"renameCandidatesProviderRegistry",void 0),n.__decorate([(0,r.Autowired)(_.TerminalRegistryToken),n.__metadata("design:type",Object)],Q.prototype,"terminalProviderRegistry",void 0),n.__decorate([(0,r.Autowired)(_.IntelligentCompletionsRegistryToken),n.__metadata("design:type",Object)],Q.prototype,"intelligentCompletionsRegistry",void 0),n.__decorate([(0,r.Autowired)(_.ProblemFixRegistryToken),n.__metadata("design:type",Object)],Q.prototype,"problemFixProviderRegistry",void 0),n.__decorate([(0,r.Autowired)(o.AINativeConfigService),n.__metadata("design:type",o.AINativeConfigService)],Q.prototype,"aiNativeConfigService",void 0),n.__decorate([(0,r.Autowired)(v.DesignLayoutConfig),n.__metadata("design:type",v.DesignLayoutConfig)],Q.prototype,"designLayoutConfig",void 0),n.__decorate([(0,r.Autowired)(O.AICompletionsService),n.__metadata("design:type",O.AICompletionsService)],Q.prototype,"aiCompletionsService",void 0),n.__decorate([(0,r.Autowired)(D.AIInlineCompletionsProvider),n.__metadata("design:type",D.AIInlineCompletionsProvider)],Q.prototype,"aiInlineCompletionsProvider",void 0),n.__decorate([(0,r.Autowired)(_.CommandService),n.__metadata("design:type",Object)],Q.prototype,"commandService",void 0),n.__decorate([(0,r.Autowired)(o.PreferenceSchemaProvider),n.__metadata("design:type",o.PreferenceSchemaProvider)],Q.prototype,"preferenceSchemaProvider",void 0),n.__decorate([(0,r.Autowired)(o.IPreferenceSettingsService),n.__metadata("design:type",Object)],Q.prototype,"preferenceSettings",void 0),n.__decorate([(0,r.Autowired)(o.PreferenceService),n.__metadata("design:type",Object)],Q.prototype,"preferenceService",void 0),n.__decorate([(0,r.Autowired)(u.IMainLayoutService),n.__metadata("design:type",Object)],Q.prototype,"layoutService",void 0),n.__decorate([(0,r.Autowired)(b.ChatProxyServiceToken),n.__metadata("design:type",A.ChatProxyService)],Q.prototype,"chatProxyService",void 0),n.__decorate([(0,r.Autowired)(o.IAIInlineChatService),n.__metadata("design:type",X.InlineChatService)],Q.prototype,"aiInlineChatService",void 0),n.__decorate([(0,r.Autowired)(H.InlineInputService),n.__metadata("design:type",H.InlineInputService)],Q.prototype,"inlineInputService",void 0),n.__decorate([(0,r.Autowired)(K.InlineStreamDiffService),n.__metadata("design:type",K.InlineStreamDiffService)],Q.prototype,"inlineStreamDiffService",void 0),n.__decorate([(0,r.Autowired)(P.RenameSingleHandler),n.__metadata("design:type",P.RenameSingleHandler)],Q.prototype,"renameSingleHandler",void 0),n.__decorate([(0,r.Autowired)(T.CodeActionSingleHandler),n.__metadata("design:type",T.CodeActionSingleHandler)],Q.prototype,"codeActionSingleHandler",void 0),n.__decorate([(0,r.Autowired)(b.SumiMCPServerProxyServicePath),n.__metadata("design:type",Object)],Q.prototype,"sumiMCPServerBackendProxy",void 0),n.__decorate([(0,r.Autowired)(g.WorkbenchEditorService),n.__metadata("design:type",h.WorkbenchEditorServiceImpl)],Q.prototype,"workbenchEditorService",void 0),n.__decorate([(0,r.Autowired)(b.IChatManagerService),n.__metadata("design:type",y.ChatManagerService)],Q.prototype,"chatManagerService",void 0),n.__decorate([(0,r.Autowired)(b.IChatInternalService),n.__metadata("design:type",S.ChatInternalService)],Q.prototype,"chatInternalService",void 0),n.__decorate([(0,r.Autowired)(B.BaseApplyService),n.__metadata("design:type",B.BaseApplyService)],Q.prototype,"applyService",void 0),t.AINativeBrowserContribution=Q=n.__decorate([(0,o.Domain)(o.ClientAppContribution,l.BrowserEditorContribution,o.CommandContribution,d.SettingContribution,o.KeybindingContribution,o.ComponentContribution,o.SlotRendererContribution,o.MonacoContribution),n.__metadata("design:paramtypes",[])],Q)},96366:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ApplyService=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(57517),p=e(19413),v=e(73974),m=e(51081);let _=class extends v.BaseApplyService{async doApply(g){const l=new o.URI(o.path.join(this.appConfig.workspaceDir,g.relativePath)),u=(await this.modelService.createModelReference(l)).instance.getMonacoModel().getValue();return{stream:await this.aiBackService.requestStream(`Merge all changes from the <update> snippet into the <code> below.
|
|
31215
31215
|
- Preserve the code's structure, order, comments, and indentation exactly.
|
|
31216
31216
|
- Output only the updated code, enclosed within <updated-code> and </updated-code> tags.
|
|
31217
31217
|
- Do not include any additional text, explanations, placeholders, ellipses, or code fences.
|
|
@@ -31351,10 +31351,10 @@ ${f.slice(1).join(`
|
|
|
31351
31351
|
`).find(T=>T.startsWith("@@"));let A=0,S=0;if(y){const[,,,T,D]=y.match(/@@ -(\d+),(\d+) \+(\d+),(\d+) @@/);A=parseInt(T,10)-1,S=parseInt(D,10)-1}this.editorService.open(s.URI.file(s.path.join(this.appConfig.workspaceDir,a.relativePath)));const w=this.editorService.currentEditor;w&&w.setSelection(new _.Selection(A,0,S,0))}async processAll(a,b){var y;const A=b?(y=this.getUriCodeBlocks(b))===null||y===void 0?void 0:y.filter(D=>D.status==="pending"):this.getSessionCodeBlocks().filter(D=>D.status==="pending");if(!A?.length)throw new Error("No pending code block found");const S=b?[A[0].relativePath]:A.map(D=>D.relativePath).reduce((D,I)=>(D.includes(I)||D.push(I),D),[]),w=this.editorService.getAllOpenedUris(),T=S.filter(D=>!w.some(I=>I.codeUri.fsPath.endsWith(D))).map(D=>s.URI.file(s.path.join(this.appConfig.workspaceDir,D)));T.length&&await this.editorService.openUris(T),S.forEach(D=>{this.doProcess(a,D)}),A.forEach(D=>{D.status=a==="accept"?"success":"cancelled",this.updateCodeBlock(D)})}doProcess(a,b){var y,A;const S=(A=(y=this.activePreviewerMap.get(b))===null||y===void 0?void 0:y.getNode())===null||A===void 0?void 0:A.livePreviewDiffDecorationModel;if(!S)throw new Error("No active previewer found");a==="accept"?S.acceptUnProcessed():S.discardUnProcessed(),this.editorService.save(s.URI.file(s.path.join(this.appConfig.workspaceDir,b)))}listenPartialEdit(a,b){const y=new s.Deferred,A=a.uri.toString(),S=this.inlineDiffService.onPartialEdit(w=>{if(w.totalPartialEditCount===w.resolvedPartialEditCount&&w.uri.path===a.uri.path.toString()){if(w.acceptPartialEditCount>0){b.status="success";const T=a.getValue(),{diff:D,rangesFromDiffHunk:I}=this.getDiffResult(b.originalCode,T,b.relativePath),O=this.getDiagnosticInfos(a.uri.toString(),I);this.aiReporter.send({msgType:c.AIServiceType.Chat,actionType:c.ActionTypeEnum.Accept,actionSource:c.ActionSourceEnum.Chat,sessionId:this.chatInternalService.sessionModel.sessionId,isReceive:!0,isDrop:w.acceptPartialEditCount!==w.totalPartialEditCount,code:T,originCode:b.originalCode,message:JSON.stringify({diff:D,diagnosticInfos:O,instructions:b.instructions,codeEdit:b.codeEdit,partialEditCount:w.totalPartialEditCount,acceptPartialEditCount:w.acceptPartialEditCount,addedLinesCount:w.totalAddedLinesCount,deletedLinesCount:w.totalDeletedLinesCount})}),y.resolve({diff:D,diagnosticInfos:O})}else b.status="cancelled",y.resolve(),this.aiReporter.send({msgType:c.AIServiceType.Chat,actionType:c.ActionTypeEnum.Discard,actionSource:c.ActionSourceEnum.Chat,sessionId:this.chatInternalService.sessionModel.sessionId,isReceive:!1,isDrop:!0,originCode:b.originalCode,message:JSON.stringify({instructions:b.instructions,codeEdit:b.codeEdit})});this.editorListenerMap.disposeKey(A)}});return this.editorListenerMap.set(A,S),y.promise}getDiffResult(a,b,y){const A=(0,r.createPatch)(y,a,b).split(`
|
|
31352
31352
|
`).slice(4).join(`
|
|
31353
31353
|
`),S=A.split(`
|
|
31354
|
-
`).map(w=>{if(w.startsWith("@@")){const[,,,T,D]=w.match(/@@ -(\d+),(\d+) \+(\d+),(\d+) @@/);return new _.Range(parseInt(T,10),0,parseInt(T,10)+parseInt(D,10)-1,0)}return null}).filter(w=>w!==null);return{diff:A,rangesFromDiffHunk:S}}getDiagnosticInfos(a,b){return this.markerService.getManager().getMarkers({resource:a}).filter(A=>A.severity>=c.MarkerSeverity.Warning&&b.some(S=>S.containsPosition(new _.Position(A.startLineNumber,A.startColumn))))}}t.BaseApplyService=E,n.__decorate([(0,o.Autowired)(l.IChatInternalService),n.__metadata("design:type",h.ChatInternalService)],E.prototype,"chatInternalService",void 0),n.__decorate([(0,o.Autowired)(c.AppConfig),n.__metadata("design:type",Object)],E.prototype,"appConfig",void 0),n.__decorate([(0,o.Autowired)(p.WorkbenchEditorService),n.__metadata("design:type",p.WorkbenchEditorService)],E.prototype,"editorService",void 0),n.__decorate([(0,o.Autowired)(l.InlineDiffServiceToken),n.__metadata("design:type",Object)],E.prototype,"inlineDiffService",void 0),n.__decorate([(0,o.Autowired)(m.IMarkerService),n.__metadata("design:type",Object)],E.prototype,"markerService",void 0),n.__decorate([(0,o.Autowired)(v.IEditorDocumentModelService),n.__metadata("design:type",Object)],E.prototype,"editorDocumentModelService",void 0),n.__decorate([(0,o.Autowired)(c.IAIReporter),n.__metadata("design:type",Object)],E.prototype,"aiReporter",void 0),n.__decorate([(0,c.OnEvent)(v.EditorGroupCloseEvent),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[v.EditorGroupCloseEvent]),n.__metadata("design:returntype",void 0)],E.prototype,"onEditorGroupClose",null),n.__decorate([(0,c.OnEvent)(v.EditorGroupOpenEvent),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[v.EditorGroupOpenEvent]),n.__metadata("design:returntype",Promise)],E.prototype,"onEditorGroupOpen",null)},75279:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MCPConfigView=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),c=e(97267),p=e(41869),v=e(78132),m=e(43718),_=e(72665),s=e(19413),g=e(69820),l=e(45331),h=n.__importDefault(e(76599)),u=e(51750),d=()=>{const E=(0,p.useInjectable)(l.MCPServerProxyService),f=(0,p.useInjectable)(v.PreferenceService),a=(0,p.useInjectable)(_.IMessageService),b=(0,p.useInjectable)(s.SumiMCPServerProxyServicePath),y=(0,p.useInjectable)(p.ILogger),[A,S]=o.default.useState([]),[w,T]=o.default.useState(!1),[D,I]=o.default.useState(),[O,M]=o.default.useState(),R=(0,o.useCallback)(async()=>{const W=f.get(p.AINativeSettingSectionsId.MCPServers,[]),U=await E.$getServers(),X=U.find($=>$.name===s.BUILTIN_MCP_SERVER_NAME),V=W.map($=>{const Y=U.find(G=>G.name===$.name);return{...$,name:$.name,isStarted
|
|
31354
|
+
`).map(w=>{if(w.startsWith("@@")){const[,,,T,D]=w.match(/@@ -(\d+),(\d+) \+(\d+),(\d+) @@/);return new _.Range(parseInt(T,10),0,parseInt(T,10)+parseInt(D,10)-1,0)}return null}).filter(w=>w!==null);return{diff:A,rangesFromDiffHunk:S}}getDiagnosticInfos(a,b){return this.markerService.getManager().getMarkers({resource:a}).filter(A=>A.severity>=c.MarkerSeverity.Warning&&b.some(S=>S.containsPosition(new _.Position(A.startLineNumber,A.startColumn))))}}t.BaseApplyService=E,n.__decorate([(0,o.Autowired)(l.IChatInternalService),n.__metadata("design:type",h.ChatInternalService)],E.prototype,"chatInternalService",void 0),n.__decorate([(0,o.Autowired)(c.AppConfig),n.__metadata("design:type",Object)],E.prototype,"appConfig",void 0),n.__decorate([(0,o.Autowired)(p.WorkbenchEditorService),n.__metadata("design:type",p.WorkbenchEditorService)],E.prototype,"editorService",void 0),n.__decorate([(0,o.Autowired)(l.InlineDiffServiceToken),n.__metadata("design:type",Object)],E.prototype,"inlineDiffService",void 0),n.__decorate([(0,o.Autowired)(m.IMarkerService),n.__metadata("design:type",Object)],E.prototype,"markerService",void 0),n.__decorate([(0,o.Autowired)(v.IEditorDocumentModelService),n.__metadata("design:type",Object)],E.prototype,"editorDocumentModelService",void 0),n.__decorate([(0,o.Autowired)(c.IAIReporter),n.__metadata("design:type",Object)],E.prototype,"aiReporter",void 0),n.__decorate([(0,c.OnEvent)(v.EditorGroupCloseEvent),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[v.EditorGroupCloseEvent]),n.__metadata("design:returntype",void 0)],E.prototype,"onEditorGroupClose",null),n.__decorate([(0,c.OnEvent)(v.EditorGroupOpenEvent),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[v.EditorGroupOpenEvent]),n.__metadata("design:returntype",Promise)],E.prototype,"onEditorGroupOpen",null)},75279:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MCPConfigView=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),c=e(97267),p=e(41869),v=e(78132),m=e(43718),_=e(72665),s=e(19413),g=e(69820),l=e(45331),h=n.__importDefault(e(76599)),u=e(51750),d=()=>{const E=(0,p.useInjectable)(l.MCPServerProxyService),f=(0,p.useInjectable)(v.PreferenceService),a=(0,p.useInjectable)(_.IMessageService),b=(0,p.useInjectable)(s.SumiMCPServerProxyServicePath),y=(0,p.useInjectable)(p.ILogger),[A,S]=o.default.useState([]),[w,T]=o.default.useState(!1),[D,I]=o.default.useState(),[O,M]=o.default.useState(),R=(0,o.useCallback)(async()=>{const W=f.get(p.AINativeSettingSectionsId.MCPServers,[]),U=await E.$getServers(),X=U.find($=>$.name===s.BUILTIN_MCP_SERVER_NAME),V=W.map($=>{const Y=U.find(G=>G.name===$.name);return{...$,name:$.name,isStarted:Y?.isStarted,tools:Y?.tools}});X&&V.unshift(X),S(V)},[E]);o.default.useEffect(()=>{R();const W=E.onChangeMCPServers(()=>{R()});return()=>{W.dispose()}},[]);const P=(0,o.useCallback)(async(W,U)=>{try{M(W),U?await E.$startServer(W):await E.$stopServer(W);const X=f.get(p.AINativeSettingSectionsId.MCPServers,[]);let V=X;W===s.BUILTIN_MCP_SERVER_NAME?!X.some(Y=>Y.name===s.BUILTIN_MCP_SERVER_NAME)&&!U?V=[...X,{name:s.BUILTIN_MCP_SERVER_NAME,enabled:!1,command:"",type:g.MCP_SERVER_TYPE.STDIO}]:V=X.map(Y=>Y.name===s.BUILTIN_MCP_SERVER_NAME?{...Y,enabled:U}:Y):V=X.map($=>$.name===W?{...$,enabled:U}:$),await f.set(p.AINativeSettingSectionsId.MCPServers,V,m.PreferenceScope.User),await R(),M(void 0)}catch(X){const V=X.message||X;y.error(`Failed to ${U?"start":"stop"} server ${W}:`,V),a.error(V),M(void 0)}},[E,f,b,R]),k=(0,o.useCallback)(()=>{I(void 0),T(!0)},[D,w]),F=(0,o.useCallback)(W=>{const X=f.get(p.AINativeSettingSectionsId.MCPServers,[]).find(V=>V.name===W.name);X&&(I(X),T(!0))},[D,w]),L=(0,o.useCallback)(async W=>{const X=f.get(p.AINativeSettingSectionsId.MCPServers,[]).filter(V=>V.name!==W);b.$removeServer(W),await f.set(p.AINativeSettingSectionsId.MCPServers,X,m.PreferenceScope.User),await R()},[D,w]),B=(0,o.useCallback)(async W=>{const U=f.get(p.AINativeSettingSectionsId.MCPServers,[]),X=U.findIndex(V=>V.name===W.name);X>=0?U[X]=W:U.push(W),S(U),T(!1),await b.$addOrUpdateServer(W),await f.set(p.AINativeSettingSectionsId.MCPServers,U,m.PreferenceScope.User),await R()},[A,w,R]),j=(0,o.useCallback)(W=>{switch(W){case g.MCP_SERVER_TYPE.STDIO:return(0,m.localize)("ai.native.mcp.type.stdio");case g.MCP_SERVER_TYPE.SSE:return(0,m.localize)("ai.native.mcp.type.sse");case g.MCP_SERVER_TYPE.BUILTIN:return(0,m.localize)("ai.native.mcp.type.builtin");default:return W}},[]);return o.default.createElement("div",{className:h.default.container},o.default.createElement("div",{className:h.default.header},o.default.createElement("div",null,o.default.createElement("h2",{className:h.default.title},"MCP Servers"),o.default.createElement("p",{className:h.default.description},(0,m.localize)("ai.native.mcp.manage.connections"))),o.default.createElement("button",{className:h.default.addButton,onClick:k},"+ ",(0,m.localize)("ai.native.mcp.addMCPServer.title"))),o.default.createElement("div",{className:h.default.serversList},A.map(W=>o.default.createElement("div",{key:W.name,className:h.default.serverItem},o.default.createElement("div",{className:h.default.serverHeader},o.default.createElement("div",{className:h.default.serverTitleRow},o.default.createElement("h3",{className:h.default.serverName},W.name,o.default.createElement("span",{className:(0,r.default)(h.default.serverStatusIcon,W.isStarted?h.default.active:h.default.inactive)}))),o.default.createElement("div",{className:h.default.serverActions},o.default.createElement(c.Popover,{id:"mcp-server-action-popover",trigger:c.PopoverTriggerType.hover,content:W.isStarted?(0,m.localize)("ai.native.mcp.disable.title"):(0,m.localize)("ai.native.mcp.enable.title")},o.default.createElement(c.Button,{type:"default",className:(0,r.default)(h.default.serverActionButton,W.isStarted&&h.default.active),onClick:()=>P(W.name,!W.isStarted)},o.default.createElement("i",{className:`codicon ${O===W.name?"codicon-loading kt-icon-loading":W.isStarted?"codicon-check":"codicon-circle"}`}),o.default.createElement("span",null,(0,m.localize)(W.isStarted?"ai.native.mcp.enabled":"ai.native.mcp.disabled")))),W.name!==s.BUILTIN_MCP_SERVER_NAME&&o.default.createElement(c.Button,{type:"icon",iconClass:"codicon codicon-edit",className:h.default.iconButton,title:"Edit",onClick:()=>F(W)}),W.name!==s.BUILTIN_MCP_SERVER_NAME&&o.default.createElement(c.Button,{type:"icon",iconClass:"codicon codicon-trash",className:h.default.iconButton,title:"Delete",onClick:()=>L(W.name)}))),o.default.createElement("div",{className:h.default.serverDetail},W.type&&o.default.createElement("div",{className:h.default.detailRow},o.default.createElement("span",{className:h.default.detailLabel},"Type:"),o.default.createElement(c.Badge,{className:(0,r.default)(h.default.serverType,h.default.typeTag)},j(W.type)))),W.tools&&W.tools.length>0&&o.default.createElement("div",{className:h.default.serverDetail},o.default.createElement("div",{className:h.default.detailRow},o.default.createElement("span",{className:h.default.detailLabel},"Tools:"),o.default.createElement("span",{className:h.default.detailContent},W.tools.map((U,X)=>o.default.createElement(c.Badge,{key:X,className:h.default.toolTag,title:U.description},U.name))))),W.command&&o.default.createElement("div",{className:h.default.serverDetail},o.default.createElement("div",{className:h.default.detailRow},o.default.createElement("span",{className:h.default.detailLabel},"Command:"),o.default.createElement("span",{className:h.default.detailContent},W.command))),W.serverHost&&o.default.createElement("div",{className:h.default.serverDetail},o.default.createElement("div",{className:h.default.detailRow},o.default.createElement("span",{className:h.default.detailLabel},"Server Link:"),o.default.createElement("span",{className:(0,r.default)(h.default.detailContent,h.default.link)},W.serverHost)))))),o.default.createElement(u.MCPServerForm,{visible:w,initialData:D,servers:A,onSave:B,onCancel:()=>T(!1)}))};t.MCPConfigView=d},51750:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MCPServerForm=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),c=e(97267),p=e(48412),v=e(53017),m=e(41869),_=e(43718),s=e(72665),g=e(69820),l=n.__importDefault(e(83761)),h=({visible:u,initialData:d,onSave:E,onCancel:f,servers:a})=>{const[b,y]=(0,o.useState)(()=>({name:"",command:"",args:[],env:{},type:g.MCP_SERVER_TYPE.STDIO,...d})),A=(0,m.useInjectable)(s.IMessageService),[S,w]=(0,o.useState)(()=>{var B;return((B=d?.args)===null||B===void 0?void 0:B.join(" "))||""}),[T,D]=(0,o.useState)(()=>d?.env?Object.entries(d.env).map(([B,j])=>`${B}=${j}`).join(`
|
|
31355
31355
|
`):"");(0,o.useEffect)(()=>{var B;y({name:"",command:"",args:[],env:{},type:g.MCP_SERVER_TYPE.STDIO,...d}),w(((B=d?.args)===null||B===void 0?void 0:B.join(" "))||""),D(d?.env?Object.entries(d.env).map(([j,W])=>`${j}=${W}`).join(`
|
|
31356
31356
|
`):"")},[d]);const I=(0,o.useCallback)(B=>{var j,W;if(B.name.trim()==="")return A.error((0,_.localize)("ai.native.mcp.name.isRequired")),!1;if(!d&&a.some(X=>X.name.toLocaleLowerCase()===B.name.toLocaleLowerCase()))return A.error((0,_.formatLocalize)("ai.native.mcp.serverNameExists",B.name)),!1;if(B.type===g.MCP_SERVER_TYPE.SSE){const X=((j=B.serverHost)===null||j===void 0?void 0:j.trim())!=="";return X||A.error((0,_.localize)("ai.native.mcp.serverHost.isRequired")),X}const U=((W=B.command)===null||W===void 0?void 0:W.trim())!=="";return U||A.error((0,_.localize)("ai.native.mcp.command.isRequired")),U},[a,d]),O=(0,o.useCallback)(B=>{var j;if(B.preventDefault(),!I(b))return;const U={...b};if(b.type===g.MCP_SERVER_TYPE.SSE)U.serverHost=(j=U.serverHost)===null||j===void 0?void 0:j.trim();else{const X=S.split(" ").filter(Boolean),V=T.split(`
|
|
31357
|
-
`).filter(Boolean).reduce(($,Y)=>{const[G,H]=Y.split("=");return G&&H&&($[G.trim()]=H.trim()),$},{});U.args=X,U.env=V}y({...b,command:"",serverHost:"",args:[],env:{}}),E(U)},[b,S,T,E,I]),M=(0,o.useCallback)(B=>{y({...b,command:B.target.value})},[b,S]),R=(0,o.useCallback)(B=>{w(B.target.value)},[S]),P=(0,o.useCallback)(B=>{D(B.target.value)},[T]),k=(0,o.useCallback)(B=>{y({...b,serverHost:B.target.value})},[b]),F=(0,o.useCallback)(B=>{y({...b,type:B})},[b]),L=(0,o.useCallback)(()=>b?.type===g.MCP_SERVER_TYPE.STDIO?o.default.createElement(o.default.Fragment,null,o.default.createElement("div",{className:l.default.formItem},o.default.createElement("label",null,(0,_.localize)("ai.native.mcp.command")),o.default.createElement("input",{type:"text",value:b.command,onChange:M,placeholder:(0,_.localize)("ai.native.mcp.command.placeHolder"),required:!0})),o.default.createElement("div",{className:l.default.formItem},o.default.createElement("label",null,(0,_.localize)("ai.native.mcp.args")),o.default.createElement("textarea",{value:S,onChange:R,placeholder:(0,_.localize)("ai.native.mcp.args.placeHolder"),rows:3})),o.default.createElement("div",{className:l.default.formItem},o.default.createElement("label",null,(0,_.localize)("ai.native.mcp.env")),o.default.createElement("textarea",{value:T,onChange:P,placeholder:(0,_.localize)("ai.native.mcp.env.placeHolder"),rows:3}))):o.default.createElement(o.default.Fragment,null,o.default.createElement("div",{className:l.default.formItem},o.default.createElement("label",null,(0,_.localize)("ai.native.mcp.serverHost")),o.default.createElement("textarea",{value:b.serverHost,onChange:k,placeholder:(0,_.localize)("ai.native.mcp.serverHost.placeHolder"),rows:3}))),[b,S,T]);return o.default.createElement(v.Modal,{title:d?(0,_.localize)("ai.native.mcp.editMCPServer.title"):(0,_.localize)("ai.native.mcp.addMCPServer.title"),visible:u,onCancel:f,centered:!0,width:600,footer:null,style:{background:"var(--editor-background)"}},o.default.createElement("form",{className:l.default.form,onSubmit:B=>B.preventDefault()},o.default.createElement("div",{className:l.default.formRow},o.default.createElement("div",{className:(0,r.default)(l.default.formItem,l.default.formItemName)},o.default.createElement("label",null,(0,_.localize)("ai.native.mcp.name")),o.default.createElement("input",{type:"text",value:b.name,onChange:B=>y({...b,name:B.target.value}),placeholder:(0,_.localize)("ai.native.mcp.name.placeHolder"),required:!0})),o.default.createElement("div",{className:(0,r.default)(l.default.formItem,l.default.formItemType)},o.default.createElement("label",null,(0,_.localize)("ai.native.mcp.type")),o.default.createElement(c.Select,{size:"large",value:b.type,options:[{label:(0,_.localize)("ai.native.mcp.stdio"),value:g.MCP_SERVER_TYPE.STDIO},{label:(0,_.localize)("ai.native.mcp.sse"),value:g.MCP_SERVER_TYPE.SSE}],className:l.default.formItemSelect,onChange:F}))),L(),o.default.createElement("div",{className:l.default.formActions},o.default.createElement(p.Button,{onClick:f,type:"primary",className:l.default.secondaryButton},(0,_.localize)("ai.native.mcp.buttonCancel")),o.default.createElement(p.Button,{onClick:O,type:"primary"},d?(0,_.localize)("ai.native.mcp.buttonUpdate"):(0,_.localize)("ai.native.mcp.buttonSave")))))};t.MCPServerForm=h},27397:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MCPConfigCommandContribution=t.OPEN_MCP_CONFIG_COMMAND=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(43718),p=e(54414),v=e(5297);t.OPEN_MCP_CONFIG_COMMAND={id:"opensumi-mcp.openConfig",label:"Open MCP Configuration"};let m=class{registerCommands(s){s.registerCommand(t.OPEN_MCP_CONFIG_COMMAND,{execute:()=>{const g=new o.URI().withScheme(v.MCP_CONFIG_COMPONENTS_SCHEME_ID);this.editorService.open(g,{preview:!1,focus:!0})}})}};t.MCPConfigCommandContribution=m,n.__decorate([(0,r.Autowired)(p.WorkbenchEditorService),n.__metadata("design:type",p.WorkbenchEditorService)],m.prototype,"editorService",void 0),t.MCPConfigCommandContribution=m=n.__decorate([(0,c.Domain)(o.CommandContribution)],m)},5297:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MCPConfigContribution=t.MCP_CONFIG_COMPONENTS_SCHEME_ID=void 0;const n=e(85608),r=e(76003),o=e(26542),c=e(43718),p=e(82196),v=e(7443),m=e(10560),_=e(75279),s="opensumi-mcp-config-viewer";t.MCP_CONFIG_COMPONENTS_SCHEME_ID="mcp-config";let g=class{registerEditorComponent(h){h.registerEditorComponent({uid:s,scheme:t.MCP_CONFIG_COMPONENTS_SCHEME_ID,component:_.MCPConfigView,renderMode:p.EditorComponentRenderMode.ONE_PER_WORKBENCH}),h.registerEditorComponentResolver(t.MCP_CONFIG_COMPONENTS_SCHEME_ID,(u,d)=>{d.push({type:"component",componentId:s})})}registerResource(h){h.registerResourceProvider({scheme:t.MCP_CONFIG_COMPONENTS_SCHEME_ID,provideResource:async u=>{const{configType:d}=u.getParsedQuery();return{uri:u,name:"MCP Configuration",icon:"settings",metadata:{configType:d}}}})}};t.MCPConfigContribution=g,n.__decorate([(0,r.Autowired)(m.IWorkspaceService),n.__metadata("design:type",Object)],g.prototype,"workspaceService",void 0),n.__decorate([(0,r.Autowired)(v.IconService),n.__metadata("design:type",v.IconService)],g.prototype,"iconService",void 0),n.__decorate([(0,r.Autowired)(),n.__metadata("design:type",o.LabelService)],g.prototype,"labelService",void 0),t.MCPConfigContribution=g=n.__decorate([(0,c.Domain)(p.BrowserEditorContribution)],g)},45331:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MCPServerProxyService=void 0;const n=e(85608),r=e(48085),o=e(76003),c=e(41869),p=e(43718),v=e(19413),m=e(77633);let _=class{constructor(){this._onChangeMCPServers=new p.Emitter,this.onChangeMCPServers=this._onChangeMCPServers.event}$callMCPTool(g,l){return this.mcpServerRegistry.callMCPTool(g,l)}async $getBuiltinMCPTools(){const g=await this.mcpServerRegistry.getMCPTools().map(l=>({name:l.name,description:l.description,inputSchema:(0,r.zodToJsonSchema)(l.inputSchema),providerName:v.BUILTIN_MCP_SERVER_NAME}));return this.logger.log("SUMI MCP tools",g),g}async $updateMCPServers(){this._onChangeMCPServers.fire("update")}async getAllMCPTools(){return this.sumiMCPServerProxyService.getAllMCPTools()}async $getServers(){return this.sumiMCPServerProxyService.getServers()}async $startServer(g){await this.sumiMCPServerProxyService.startServer(g)}async $stopServer(g){await this.sumiMCPServerProxyService.stopServer(g)}};t.MCPServerProxyService=_,n.__decorate([(0,o.Autowired)(m.TokenMCPServerRegistry),n.__metadata("design:type",Object)],_.prototype,"mcpServerRegistry",void 0),n.__decorate([(0,o.Autowired)(c.ILogger),n.__metadata("design:type",Object)],_.prototype,"logger",void 0),n.__decorate([(0,o.Autowired)(v.SumiMCPServerProxyServicePath),n.__metadata("design:type",Object)],_.prototype,"sumiMCPServerProxyService",void 0),t.MCPServerProxyService=_=n.__decorate([(0,o.Injectable)()],_)},79502:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MCPServerRegistry=void 0;const n=e(85608),r=e(76003),o=e(43718),c=e(19413),p=e(98864);class v{constructor(s){this.logger=s}appendLine(s){this.logger.log(s)}}let m=class{constructor(){this.tools=[],this.toolComponents={}}get logger(){return new v(this.baseLogger)}set activeMessageInfo(s){this._activeMessageInfo=s}getMCPTool(s,g=c.BUILTIN_MCP_SERVER_NAME){return this.tools.find(l=>(0,p.getToolName)(l.name,g)===s)}registerMCPTool(s){this.tools.push(s)}registerToolComponent(s,g,l=c.BUILTIN_MCP_SERVER_NAME){this.toolComponents[(0,p.getToolName)(s,l)]=g}getToolComponent(s){return this.toolComponents[s]}getMCPTools(){return this.tools.sort((s,g)=>{var l,h;return((l=s.order)!==null&&l!==void 0?l:1/0)-((h=g.order)!==null&&h!==void 0?h:1/0)})}async callMCPTool(s,g){try{const l=this.tools.find(d=>d.name===s);if(!l)throw new Error(`MCP tool ${s} not found`);const h=g.toolCallId;g=l.inputSchema.parse(g);const u=await l.handler({...g,toolCallId:h},this.logger);return this.reportToolCall(s,g,u,h),u}catch(l){return console.error("callMCPTool error:",l),this.reportToolCall(s,g,l,g.toolCallId),{content:[{type:"text",text:`The tool ${s} failed to execute. Error: ${l}`}],isError:!0}}}reportToolCall(s,g,l,h){if(!this.tools.find(d=>d.name===s))throw new Error(`MCP tool ${s} not found`);this.aiReporter.send({msgType:o.AIServiceType.ToolCall,message:JSON.stringify({args:g,name:s,result:l}),messageId:this._activeMessageInfo.messageId,sessionId:this._activeMessageInfo.sessionId,relationId:h})}};t.MCPServerRegistry=m,n.__decorate([(0,r.Autowired)(o.ILogger),n.__metadata("design:type",Object)],m.prototype,"baseLogger",void 0),n.__decorate([(0,r.Autowired)(o.IAIReporter),n.__metadata("design:type",Object)],m.prototype,"aiReporter",void 0),t.MCPServerRegistry=m=n.__decorate([(0,r.Injectable)()],m)},30703:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MCPToolsDialog=void 0;const n=e(85608),r=n.__importStar(e(14041)),o=n.__importDefault(e(49783)),c=({tools:p})=>r.createElement("div",{className:o.default.mcp_tools_dialog},r.createElement("div",{className:o.default.dialog_title},"MCP Tools"),r.createElement("div",{className:o.default.tools_list},p.map(v=>r.createElement("div",{key:v.name,className:o.default.tool_item},r.createElement("div",{className:o.default.tool_name},v.name),r.createElement("div",{className:o.default.tool_description},v.description),v.providerName&&r.createElement("div",{className:o.default.tool_provider},"Provider: ",v.providerName)))));t.MCPToolsDialog=c},58260:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EditFileToolComponent=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),c=e(97267),p=e(41869),v=e(54414),m=e(14162),_=e(87822),s=e(16781),g=e(21967),l=e(56474),h=e(73974),u=n.__importDefault(e(51601)),d=E=>{var f,a,b;const{args:y,messageId:A,toolCallId:S}=E,[w,T]=(0,o.useState)("code"),D=(0,p.useInjectable)(p.LabelService),I=(0,p.useInjectable)(p.AppConfig),O=(0,p.useInjectable)(h.BaseApplyService),M=(0,p.useInjectable)(v.WorkbenchEditorService),{target_file:R="",code_edit:P,instructions:k}=y||{},F=p.path.join(I.workspaceDir,R),[L,B]=(0,o.useState)(O.getCodeBlock(S,A)),j=(0,o.useMemo)(()=>R?`file-icon ${D.getIcon(p.URI.file(F))}`:void 0,[R,F]),W=(0,o.useMemo)(()=>{if(!R)return;const X=s.StandaloneServices.get(_.IModelService),V=s.StandaloneServices.get(m.ILanguageService);return(0,p.detectModeId)(X,V,p.Uri.file(F))},[R,F]);(0,o.useEffect)(()=>{const X=O.onCodeBlockUpdate(V=>{V.toolCallId===S&&B({...V})});return()=>{X.dispose()}},[]);const U=X=>{X.stopPropagation(),T(w==="code"?"diff":"code")};return!y||!L?null:[k&&o.default.createElement("p",{key:"edit-file-tool-instructions"},k),o.default.createElement("div",{className:u.default["edit-file-tool"],key:"edit-file-tool"},o.default.createElement("div",{className:(0,r.default)(u.default["edit-file-tool-header"],{clickable:L.status==="pending"||L.status==="success"}),onClick:()=>{L.status==="pending"?M.open(p.URI.file(F)):L.status==="success"&&O.revealApplyPosition(L)}},o.default.createElement("div",{className:u.default.left},j&&o.default.createElement("span",{className:j}),o.default.createElement("span",{className:u.default["edit-file-tool-file-name"]},R),L.iterationCount>1&&o.default.createElement("span",{className:u.default["edit-file-tool-iteration-count"]},L.iterationCount,"/3"),o.default.createElement(g.ApplyStatus,{status:L.status,error:E.result})),o.default.createElement("div",{className:u.default.right},o.default.createElement(c.Popover,{title:"Show Code",id:"edit-file-tool-show-code"},o.default.createElement(c.Icon,{iconClass:"codicon codicon-file-code",onClick:U})),((f=L.applyResult)===null||f===void 0?void 0:f.diff)&&o.default.createElement(c.Popover,{title:"Show Diff",id:"edit-file-tool-show-diff"},o.default.createElement(c.Icon,{iconClass:"codicon codicon-diff-multiple",onClick:U})))),o.default.createElement(l.ChatMarkdown,{markdown:w==="code"?`\`\`\`${W||""}
|
|
31357
|
+
`).filter(Boolean).reduce(($,Y)=>{const[G,H]=Y.split("=");return G&&H&&($[G.trim()]=H.trim()),$},{});U.args=X,U.env=V}y({...b,command:"",serverHost:"",args:[],env:{}}),E(U)},[b,S,T,E,I]),M=(0,o.useCallback)(B=>{y({...b,command:B.target.value})},[b,S]),R=(0,o.useCallback)(B=>{w(B.target.value)},[S]),P=(0,o.useCallback)(B=>{D(B.target.value)},[T]),k=(0,o.useCallback)(B=>{y({...b,serverHost:B.target.value})},[b]),F=(0,o.useCallback)(B=>{y({...b,type:B,command:"",args:[],env:{},serverHost:""})},[b]),L=(0,o.useCallback)(()=>b?.type===g.MCP_SERVER_TYPE.STDIO?o.default.createElement(o.default.Fragment,null,o.default.createElement("div",{className:l.default.formItem},o.default.createElement("label",null,(0,_.localize)("ai.native.mcp.command")),o.default.createElement("input",{type:"text",value:b.command,onChange:M,placeholder:(0,_.localize)("ai.native.mcp.command.placeHolder"),required:!0})),o.default.createElement("div",{className:l.default.formItem},o.default.createElement("label",null,(0,_.localize)("ai.native.mcp.args")),o.default.createElement("textarea",{value:S,onChange:R,placeholder:(0,_.localize)("ai.native.mcp.args.placeHolder"),rows:3})),o.default.createElement("div",{className:l.default.formItem},o.default.createElement("label",null,(0,_.localize)("ai.native.mcp.env")),o.default.createElement("textarea",{value:T,onChange:P,placeholder:(0,_.localize)("ai.native.mcp.env.placeHolder"),rows:3}))):o.default.createElement(o.default.Fragment,null,o.default.createElement("div",{className:l.default.formItem},o.default.createElement("label",null,(0,_.localize)("ai.native.mcp.serverHost")),o.default.createElement("textarea",{value:b.serverHost,onChange:k,placeholder:(0,_.localize)("ai.native.mcp.serverHost.placeHolder"),rows:3}))),[b,S,T]);return o.default.createElement(v.Modal,{title:d?(0,_.localize)("ai.native.mcp.editMCPServer.title"):(0,_.localize)("ai.native.mcp.addMCPServer.title"),visible:u,onCancel:f,centered:!0,width:600,footer:null,style:{background:"var(--editor-background)"}},o.default.createElement("form",{className:l.default.form,onSubmit:B=>B.preventDefault()},o.default.createElement("div",{className:l.default.formRow},o.default.createElement("div",{className:(0,r.default)(l.default.formItem,l.default.formItemName)},o.default.createElement("label",null,(0,_.localize)("ai.native.mcp.name")),o.default.createElement("input",{type:"text",value:b.name,onChange:B=>y({...b,name:B.target.value}),placeholder:(0,_.localize)("ai.native.mcp.name.placeHolder"),required:!0})),o.default.createElement("div",{className:(0,r.default)(l.default.formItem,l.default.formItemType)},o.default.createElement("label",null,(0,_.localize)("ai.native.mcp.type")),o.default.createElement(c.Select,{size:"large",value:b.type,options:[{label:(0,_.localize)("ai.native.mcp.stdio"),value:g.MCP_SERVER_TYPE.STDIO},{label:(0,_.localize)("ai.native.mcp.sse"),value:g.MCP_SERVER_TYPE.SSE}],className:l.default.formItemSelect,onChange:F}))),L(),o.default.createElement("div",{className:l.default.formActions},o.default.createElement(p.Button,{onClick:f,type:"primary",className:l.default.secondaryButton},(0,_.localize)("ai.native.mcp.buttonCancel")),o.default.createElement(p.Button,{onClick:O,type:"primary"},d?(0,_.localize)("ai.native.mcp.buttonUpdate"):(0,_.localize)("ai.native.mcp.buttonSave")))))};t.MCPServerForm=h},27397:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MCPConfigCommandContribution=t.OPEN_MCP_CONFIG_COMMAND=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(43718),p=e(54414),v=e(5297);t.OPEN_MCP_CONFIG_COMMAND={id:"opensumi-mcp.openConfig",label:"Open MCP Configuration"};let m=class{registerCommands(s){s.registerCommand(t.OPEN_MCP_CONFIG_COMMAND,{execute:()=>{const g=new o.URI().withScheme(v.MCP_CONFIG_COMPONENTS_SCHEME_ID);this.editorService.open(g,{preview:!1,focus:!0})}})}};t.MCPConfigCommandContribution=m,n.__decorate([(0,r.Autowired)(p.WorkbenchEditorService),n.__metadata("design:type",p.WorkbenchEditorService)],m.prototype,"editorService",void 0),t.MCPConfigCommandContribution=m=n.__decorate([(0,c.Domain)(o.CommandContribution)],m)},5297:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MCPConfigContribution=t.MCP_CONFIG_COMPONENTS_SCHEME_ID=void 0;const n=e(85608),r=e(76003),o=e(97267),c=e(26542),p=e(43718),v=e(82196),m=e(7443),_=e(10560),s=e(75279),g="opensumi-mcp-config-viewer";t.MCP_CONFIG_COMPONENTS_SCHEME_ID="mcp-config";let l=class{registerEditorComponent(u){u.registerEditorComponent({uid:g,scheme:t.MCP_CONFIG_COMPONENTS_SCHEME_ID,component:s.MCPConfigView,renderMode:v.EditorComponentRenderMode.ONE_PER_WORKBENCH}),u.registerEditorComponentResolver(t.MCP_CONFIG_COMPONENTS_SCHEME_ID,(d,E)=>{E.push({type:"component",componentId:g})})}registerResource(u){u.registerResourceProvider({scheme:t.MCP_CONFIG_COMPONENTS_SCHEME_ID,provideResource:async d=>{const{configType:E}=d.getParsedQuery();return{uri:d,name:(0,p.localize)("ai.native.mcp.config.title"),icon:(0,o.getIcon)("mcp"),metadata:{configType:E}}}})}};t.MCPConfigContribution=l,n.__decorate([(0,r.Autowired)(_.IWorkspaceService),n.__metadata("design:type",Object)],l.prototype,"workspaceService",void 0),n.__decorate([(0,r.Autowired)(m.IconService),n.__metadata("design:type",m.IconService)],l.prototype,"iconService",void 0),n.__decorate([(0,r.Autowired)(),n.__metadata("design:type",c.LabelService)],l.prototype,"labelService",void 0),t.MCPConfigContribution=l=n.__decorate([(0,p.Domain)(v.BrowserEditorContribution)],l)},45331:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MCPServerProxyService=void 0;const n=e(85608),r=e(48085),o=e(76003),c=e(41869),p=e(43718),v=e(19413),m=e(77633);let _=class{constructor(){this._onChangeMCPServers=new p.Emitter,this.onChangeMCPServers=this._onChangeMCPServers.event}$callMCPTool(g,l){return this.mcpServerRegistry.callMCPTool(g,l)}async $getBuiltinMCPTools(){const g=await this.mcpServerRegistry.getMCPTools().map(l=>({name:l.name,description:l.description,inputSchema:(0,r.zodToJsonSchema)(l.inputSchema),providerName:v.BUILTIN_MCP_SERVER_NAME}));return this.logger.log("SUMI MCP tools",g),g}async $updateMCPServers(){this._onChangeMCPServers.fire("update")}async getAllMCPTools(){return this.sumiMCPServerProxyService.$getAllMCPTools()}async $getServers(){return this.sumiMCPServerProxyService.$getServers()}async $startServer(g){await this.sumiMCPServerProxyService.$startServer(g)}async $stopServer(g){await this.sumiMCPServerProxyService.$stopServer(g)}};t.MCPServerProxyService=_,n.__decorate([(0,o.Autowired)(m.TokenMCPServerRegistry),n.__metadata("design:type",Object)],_.prototype,"mcpServerRegistry",void 0),n.__decorate([(0,o.Autowired)(c.ILogger),n.__metadata("design:type",Object)],_.prototype,"logger",void 0),n.__decorate([(0,o.Autowired)(v.SumiMCPServerProxyServicePath),n.__metadata("design:type",Object)],_.prototype,"sumiMCPServerProxyService",void 0),t.MCPServerProxyService=_=n.__decorate([(0,o.Injectable)()],_)},79502:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MCPServerRegistry=void 0;const n=e(85608),r=e(76003),o=e(43718),c=e(19413),p=e(98864);class v{constructor(s){this.logger=s}appendLine(s){this.logger.log(s)}}let m=class{constructor(){this.tools=[],this.toolComponents={}}get logger(){return new v(this.baseLogger)}set activeMessageInfo(s){this._activeMessageInfo=s}getMCPTool(s,g=c.BUILTIN_MCP_SERVER_NAME){return this.tools.find(l=>(0,p.getToolName)(l.name,g)===s)}registerMCPTool(s){this.tools.push(s)}registerToolComponent(s,g,l=c.BUILTIN_MCP_SERVER_NAME){this.toolComponents[(0,p.getToolName)(s,l)]=g}getToolComponent(s){return this.toolComponents[s]}getMCPTools(){return this.tools.sort((s,g)=>{var l,h;return((l=s.order)!==null&&l!==void 0?l:1/0)-((h=g.order)!==null&&h!==void 0?h:1/0)})}async callMCPTool(s,g){try{const l=this.tools.find(d=>d.name===s);if(!l)throw new Error(`MCP tool ${s} not found`);const h=g.toolCallId;g=l.inputSchema.parse(g);const u=await l.handler({...g,toolCallId:h},this.logger);return this.reportToolCall(s,g,u,h),u}catch(l){return console.error("callMCPTool error:",l),this.reportToolCall(s,g,l,g.toolCallId),{content:[{type:"text",text:`The tool ${s} failed to execute. Error: ${l}`}],isError:!0}}}reportToolCall(s,g,l,h){if(!this.tools.find(d=>d.name===s))throw new Error(`MCP tool ${s} not found`);this.aiReporter.send({msgType:o.AIServiceType.ToolCall,message:JSON.stringify({args:g,name:s,result:l}),messageId:this._activeMessageInfo.messageId,sessionId:this._activeMessageInfo.sessionId,relationId:h})}};t.MCPServerRegistry=m,n.__decorate([(0,r.Autowired)(o.ILogger),n.__metadata("design:type",Object)],m.prototype,"baseLogger",void 0),n.__decorate([(0,r.Autowired)(o.IAIReporter),n.__metadata("design:type",Object)],m.prototype,"aiReporter",void 0),t.MCPServerRegistry=m=n.__decorate([(0,r.Injectable)()],m)},30703:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MCPToolsDialog=void 0;const n=e(85608),r=n.__importStar(e(14041)),o=n.__importDefault(e(49783)),c=({tools:p})=>r.createElement("div",{className:o.default.mcp_tools_dialog},r.createElement("div",{className:o.default.dialog_title},"MCP Tools"),r.createElement("div",{className:o.default.tools_list},p.map(v=>r.createElement("div",{key:v.name,className:o.default.tool_item},r.createElement("div",{className:o.default.tool_name},v.name),r.createElement("div",{className:o.default.tool_description},v.description),v.providerName&&r.createElement("div",{className:o.default.tool_provider},"Provider: ",v.providerName)))));t.MCPToolsDialog=c},58260:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EditFileToolComponent=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),c=e(97267),p=e(41869),v=e(54414),m=e(14162),_=e(87822),s=e(16781),g=e(21967),l=e(56474),h=e(73974),u=n.__importDefault(e(51601)),d=E=>{var f,a,b;const{args:y,messageId:A,toolCallId:S}=E,[w,T]=(0,o.useState)("code"),D=(0,p.useInjectable)(p.LabelService),I=(0,p.useInjectable)(p.AppConfig),O=(0,p.useInjectable)(h.BaseApplyService),M=(0,p.useInjectable)(v.WorkbenchEditorService),{target_file:R="",code_edit:P,instructions:k}=y||{},F=p.path.join(I.workspaceDir,R),[L,B]=(0,o.useState)(O.getCodeBlock(S,A)),j=(0,o.useMemo)(()=>R?`file-icon ${D.getIcon(p.URI.file(F))}`:void 0,[R,F]),W=(0,o.useMemo)(()=>{if(!R)return;const X=s.StandaloneServices.get(_.IModelService),V=s.StandaloneServices.get(m.ILanguageService);return(0,p.detectModeId)(X,V,p.Uri.file(F))},[R,F]);(0,o.useEffect)(()=>{const X=O.onCodeBlockUpdate(V=>{V.toolCallId===S&&B({...V})});return()=>{X.dispose()}},[]);const U=X=>{X.stopPropagation(),T(w==="code"?"diff":"code")};return!y||!L?null:[k&&o.default.createElement("p",{key:"edit-file-tool-instructions"},k),o.default.createElement("div",{className:u.default["edit-file-tool"],key:"edit-file-tool"},o.default.createElement("div",{className:(0,r.default)(u.default["edit-file-tool-header"],{clickable:L.status==="pending"||L.status==="success"}),onClick:()=>{L.status==="pending"?M.open(p.URI.file(F)):L.status==="success"&&O.revealApplyPosition(L)}},o.default.createElement("div",{className:u.default.left},j&&o.default.createElement("span",{className:j}),o.default.createElement("span",{className:u.default["edit-file-tool-file-name"]},R),L.iterationCount>1&&o.default.createElement("span",{className:u.default["edit-file-tool-iteration-count"]},L.iterationCount,"/3"),o.default.createElement(g.ApplyStatus,{status:L.status,error:E.result})),o.default.createElement("div",{className:u.default.right},o.default.createElement(c.Popover,{title:"Show Code",id:"edit-file-tool-show-code"},o.default.createElement(c.Icon,{iconClass:"codicon codicon-file-code",onClick:U})),((f=L.applyResult)===null||f===void 0?void 0:f.diff)&&o.default.createElement(c.Popover,{title:"Show Diff",id:"edit-file-tool-show-diff"},o.default.createElement(c.Icon,{iconClass:"codicon codicon-diff-multiple",onClick:U})))),o.default.createElement(l.ChatMarkdown,{markdown:w==="code"?`\`\`\`${W||""}
|
|
31358
31358
|
${P}
|
|
31359
31359
|
\`\`\``:`\`\`\`diff
|
|
31360
31360
|
${(a=L.applyResult)===null||a===void 0?void 0:a.diff}
|
|
@@ -31711,8 +31711,8 @@ Run with Automatic Debug Configurations
|
|
|
31711
31711
|
|
|
31712
31712
|
{1}
|
|
31713
31713
|
|
|
31714
|
-
Sign out of these features?`,"authentication.signOutMessageSimple":"Sign out of {0}?","authentication.useOtherAccount":"Sign in to another account","authentication.selectAccount":"The extension '{0}' wants to access a {1} account","authentication.getSessionPlaceholder":"Select an account for '{0}' to use or Esc to cancel","authentication.confirmAuthenticationAccess":"The extension '{0}' wants to access the {1} account '{2}'.","authentication.confirmLogin":"The extension '{0}' wants to sign in using {1}.","authentication.confirmReLogin":"The extension '{0}' wants to sign in again using {1}.","authentication.signInRequests":"Sign in to use {0} (1)","authentication.signOut":"Sign out {0}","authentication.noAccounts":"You are not signed in to any accounts","authentication.signedOut":"Successfully signed out.","refactoring-changes.ask.1.create":"Extension '{0}' wants to make refactoring changes with this file creation","refactoring-changes.ask.1.copy":"Extension '{0}' wants to make refactoring changes with this file copy","refactoring-changes.ask.1.move":"Extension '{0}' wants to make refactoring changes with this file move","refactoring-changes.ask.1.delete":"Extension '{0}' wants to make refactoring changes with this file deletion","refactoring-changes.ask.N.create":"{0} extensions want to make refactoring changes with this file creation","refactoring-changes.ask.N.copy":"{0} extensions want to make refactoring changes with this file copy","refactoring-changes.ask.N.move":"{0} extensions want to make refactoring changes with this file move","refactoring-changes.ask.N.delete":"{0} extensions want to make refactoring changes with this file deletion","refactoring-changes.msg.showPreview":"Show Preview","refactoring-changes.msg.skipChanges":"Skip Changes","keyboard.chooseKeyboardLayout":"Choose keyboard layout","keyboard.autoDetect.label":"Auto Detect","keyboard.autoDetect.description":"(Current: '{0} ')","keyboard.autoDetect.detail":"Try to detect the keyboard layout from browser information and pressed keys.","editor.toggleWordWrap":"Toggle Word Wrap","editor.suggest.details.visible":"Controls whether editor code completion expands details by default","view.component.renderedError":"View Component Rendering Exception","view.component.tryAgain":"Refresh","test.title":"Testing","test.result.runFinished":"Test run at {0}","test.task.unnamed":"Unnamed Task","test.results":"Test Results","menu.missing.command":"menuId {0} register command not exist: {1}","menu.missing.altCommand":"menuId {0} register altCommand not exist: {1}","menu.dupe.command":"menuId {0} register command({1}) is duplicated with alt({2})","command.category.developerTools":"Developer Tool","connection.start.rtt":"Measure Connection RTT","connection.stop.rtt":"Stop Connection RTT","debug.terminal.label":"Javascript Debug Terminal","debug.terminal.title":"Debug Process","output.channel.clear":"Clear Output Panel","workbench.action.tasks.runTask":"Run Task","workbench.action.tasks.reRunTask":"Rerun Last Task","workbench.action.tasks.restartTask":"Restart Running Task","workbench.action.tasks.terminate":"Terminate Task","workbench.action.tasks.showTasks":"Show Running Tasks","workbench.action.tasks.showLog":"Show Task Log","task.contribute":"Contribute","task.cannotFindTask":"Cannot find task for {0}. Press Enter key to return.","comment.reply.count":"{0} comments","comment.reply.lastReply":"Last reply from {0}","walkthroughs.welcome":"Welcome","walkthroughs.get.started":"Open the 'Getting Started' walkthrough","mergeEditor.reset":"Reset","mergeEditor.workbench.tab.name":"Merging: {0}","mergeEditor.conflict.action.apply.confirm.title":"The file has unresolved conflicts or changes, whether to apply and save the changes?","mergeEditor.conflict.action.apply.confirm.continue":"Continue Merge","mergeEditor.conflict.action.apply.confirm.complete":"Apply Changes","mergeEditor.action.button.apply":"Apply","mergeEditor.action.button.apply-and-stash":"Apply and Stash","mergeEditor.action.button.accept.left":"Accept Left","mergeEditor.action.button.accept.right":"Accept Right","mergeEditor.open.3way":"3-Way Editor","mergeEditor.conflict.prev":"Previous Conflict","mergeEditor.conflict.next":"Next Conflict","mergeEditor.conflict.ai.resolve.all":"AI Resolution","mergeEditor.conflict.ai.resolve.all.stop":"Stop All","mergeEditor.open.tradition":"Text Editor","aiNative.chat.ai.assistant.name":"AI Assistant","aiNative.chat.input.placeholder.default":"Ask anything, @ to mention","aiNative.chat.stop.immediately":"I don\u2019t think about it anymore. If you need anything, you can ask me anytime.","aiNative.chat.error.response":"There are too many people interacting with me at the moment. Please try again later. Thank you for your understanding and support.","aiNative.chat.code.insert":"Insert code","aiNative.chat.code.copy":"Copy code","aiNative.chat.code.copy.success":"Copied successfully","aiNative.chat.expand.unfullscreen":"unfullscreen","aiNative.chat.expand.fullescreen":"fullescreen","aiNative.chat.enter.send":"Send (Enter)","aiNative.chat.defaultContextFile":"Current File","aiNative.chat.defaultContextFolder":"Current Folder","aiNative.chat.thinking":"Deep Think","aiNative.chat.imageUpload":"Image
|
|
31715
|
-
your modifications. Are you sure to regenerate?`,"aiNative.resolve.conflict.message.not.processed.yet":"AI has processed conflicts at {0}, but conflicts at {1} have not yet been processed (still marked as yellow) and require manual processing.","aiNative.operate.discard.title":"Discard","aiNative.operate.afresh.title":"Afresh","aiNative.operate.stop.title":"Stop","aiNative.operate.close.title":"Close","aiNative.operate.clear.title":"Clear","aiNative.operate.tools.title":"MCP Tools","aiNative.operate.newChat.title":"New Chat","aiNative.operate.chatHistory.title":"Chat History","aiNative.operate.chatHistory.searchPlaceholder":"Search Chats...","aiNative.operate.chatHistory.edit":"Edit","aiNative.operate.chatHistory.delete":"Delete","aiNative.chat.welcome.loading.text":"Initializing...","aiNative.chat.ai.assistant.limit.message":"{0} earliest messages are dropped due to the input token limit","aiNative.inlineDiff.acceptAll":"Accept All","aiNative.inlineDiff.rejectAll":"Reject All","aiNative.inlineDiff.reveal":"Reveal In Chat","aiNative.inlineDiff.up":"Previous Change","aiNative.inlineDiff.down":"Next Change","aiNative.inlineDiff.right":"Next File","aiNative.inlineDiff.left":"Previous File","aiNative.inlineDiff.noMoreChangesUp":"No more changes above","aiNative.inlineDiff.noMoreChangesDown":"No more changes below","aiNative.chat.session.max":"You can only create {0} chats at a time","preference.ai.native.inlineChat.title":"Inline Chat","preference.ai.native.chat.title":"Chat","preference.ai.native.interface.quick.title":"Interface Quick Navigation","preference.ai.native.interface.quick.navigation":"Click the icon on the left side of the editor to quickly jump to the interface implementation.","preference.ai.native.interface.quick.navigation.hover":"Go to implementation","preference.ai.native.inlineChat.auto.visible":"Does Inline Chat automatically appear when code are selected?","preference.ai.native.inlineChat.codeAction.enabled":"Does Inline Chat related code actions automatically appear when code are selected?","preference.ai.native.chat.visible.type":"Control how the chat panel is displayed by default","preference.ai.native.inlineDiff.preview.mode":"Inline Diff preview mode","preference.ai.native.inlineDiff.preview.mode.sideBySide":"Displayed in the editor as left and right diff panels","preference.ai.native.inlineDiff.preview.mode.inlineLive":"Displayed in the editor through streaming rendering","preference.ai.native.intelligentCompletions.title":"Intelligent Completions","preference.ai.native.intelligentCompletions.promptEngineering.enabled":"Whether to enable prompt engineering, some LLM models may not perform well on prompt engineering.","preference.ai.native.intelligentCompletions.debounceTime":"Debounce time for intelligent completions","preference.ai.native.intelligentCompletions.cache.enabled":"Whether to enable cache for intelligent completions","preference.ai.native.intelligentCompletions.alwaysVisible":"Whether to always show intelligent completions","preference.ai.native.codeEdits.title":"Code Edits","preference.ai.native.codeEdits.lintErrors":"Whether to trigger intelligent rewriting when Lint Error occurs","preference.ai.native.codeEdits.lineChange":"Whether to trigger intelligent rewriting when the cursor line number changes","preference.ai.native.codeEdits.typing":"Whether to trigger intelligent rewriting when the content changes","preference.ai.native.codeEdits.renderType":"Code Edits Render Type","preference.ai.native.chat.system.prompt":"Default Chat System Prompt","workbench.quickOpen.preserveInput":"Controls whether the last typed input to Quick Open(include Command Palette) should be preserved.","webview.webviewTagUnavailable":"webview is unsupported on non-electron env, please use iframe instead","notebook.kernel.panel.empty":"No content found.","notebook.kernel.panel.title":"Running Terminals and Kernels","notebook.kernel.panel.opened.pages":"Opened Pages","notebook.kernel.panel.running.kernels":"Running Kernels","notebook.kernel.close.all.confirmation":"Are you sure you want to close all?","notebook.variable.panel.title":"Variable Inspector","notebook.variable.panel.unsupported":"The file format is not supported for variable inspection","notebook.variable.panel.refresh.success":"Variable refresh successful","notebook.variable.panel.refresh.error":"Variable refresh failed","notebook.variable.panel.search.placeholder":"Please enter the variable name to search","notebook.variable.panel.show.detail":"View details",...r.browserViews,...o.editorLocalizations,...c.enUS,"preference.ai.native.llm.apiSettings.title":"LLM API Settings","preference.ai.native.llm.model.id":"Model ID","preference.ai.native.deepseek.apiKey":"Deepseek API Key","preference.ai.native.deepseek.apiKey.description":"API key for Deepseek language model","preference.ai.native.anthropic.apiKey":"Anthropic API Key","preference.ai.native.anthropic.apiKey.description":"API key for Anthropic language model","preference.ai.native.openai.apiKey":"OpenAI API Key","preference.ai.native.openai.apiKey.description":"API key for OpenAI Compatible language model","preference.ai.native.openai.baseURL":"OpenAI Base URL","preference.ai.native.openai.baseURL.description":"Base URL for OpenAI Compatible language model","preference.ai.native.contextWindow":"Context Window","preference.ai.native.contextWindow.description":"The maximum number of tokens in the context window","preference.ai.native.maxTokens":"Maximum Output Tokens","preference.ai.native.maxTokens.description":"The maximum number of tokens in the output","preference.ai.native.mcp.settings.title":"MCP Server Settings","preference.ai.native.mcp.servers":"MCP Servers","preference.ai.native.mcp.servers.description":"Configure MCP (Model Context Protocol) servers","preference.ai.native.mcp.servers.name.description":"Name of the MCP server","preference.ai.native.mcp.servers.command.description":"Command to start the MCP server","preference.ai.native.mcp.servers.args.description":"Command line arguments for the MCP server","preference.ai.native.mcp.servers.env.description":"Environment variables for the MCP server","preference.ai.native.mcp.servers.type.description":"Type of the MCP server connection","preference.ai.native.mcp.servers.type.stdio":"Stdio connection","preference.ai.native.mcp.servers.type.sse":"SSE connection","ai.native.mcp.terminal.command":"Command","ai.native.mcp.terminal.output":"Output","ai.native.mcp.terminal.allow-question":"Allow the terminal to run the command?","ai.native.mcp.terminal.allow":"Allow","ai.native.mcp.terminal.deny":"Reject","ai.native.mcp.name":"Name:","ai.native.mcp.command":"Command:","ai.native.mcp.args":"Arguments:","ai.native.mcp.env":"Environment Variables:","ai.native.mcp.type":"Type:","ai.native.mcp.stdio":"Command","ai.native.mcp.sse":"SSE","ai.native.mcp.buttonSave":"Add","ai.native.mcp.buttonUpdate":"Update","ai.native.mcp.buttonCancel":"Cancel","ai.native.mcp.addMCPServer.title":"Add MCP Server","ai.native.mcp.editMCPServer.title":"Edit MCP Server","ai.native.mcp.serverHost.placeHolder":"URL to SSE endpoint","ai.native.mcp.command.placeHolder":"Command to execute","ai.native.mcp.args.placeHolder":"Arguments","ai.native.mcp.env.placeHolder":"KEY=value (one per line)","ai.native.mcp.name.placeHolder":"Server Name","ai.native.mcp.type.builtin":"Built-in","ai.native.mcp.type.sse":"SSE","ai.native.mcp.type.stdio":"Command","ai.native.mcp.serverNameExists":'Server name "{0}" already exists',"ai.native.mcp.name.isRequired":"Server name is required","ai.native.mcp.command.isRequired":"Command is required","ai.native.mcp.serverHost.isRequired":"SSE URL is required","ai.native.mcp.manage.connections":"Manage your MCP server connections","ai.native.mcp.enabled":"Enabled","ai.native.mcp.disabled":"Disabled","ai.native.mcp.enable.title":"Start this service","ai.native.mcp.disable.title":"Stop this service","ai.native.mcp.tool.arguments":"Arguments","ai.native.mcp.tool.results":"Result"}}},32581:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(43718),r=e(20741),o=e(61647);(0,n.registerLocalizationBundle)(o.localizationBundle),(0,n.registerLocalizationBundle)(r.localizationBundle)},36942:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.enUS=void 0,t.enUS={"merge-conflicts.merge.type.auto":"auto merged","merge-conflicts.merge.type.manual":"merged","merge-conflicts.conflicts.summary":"Total {0} conflicts ({1})","merge-conflicts.conflicts.all-resolved":"All resolved","merge-conflicts.conflicts.partial-resolved":"{0} conflicts resolved, {1} remaining","merge-conflicts.non-conflicts.summary":"Non-conflict changes {0} in total","merge-conflicts.non-conflicts.progress":"{0} non-conflict changes have been {1}","merge-conflicts.non-conflicts.from.left":"target branch: {0} places","merge-conflicts.non-conflicts.from.right":"source branch: {0} places","merge-conflicts.non-conflicts.from.base":"base branch: {0} places","merge-conflicts.merge.conflict.remain":"Unresolved conflicts {0} remaining"}},40028:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zhCN=void 0,t.zhCN={"merge-conflicts.merge.type.auto":"\u81EA\u52A8\u5408\u5E76","merge-conflicts.merge.type.manual":"\u5408\u5E76","merge-conflicts.conflicts.summary":"\u51B2\u7A81\u53D8\u66F4\u5171 {0} \u5904 ({1})","merge-conflicts.conflicts.all-resolved":"\u5DF2\u5168\u90E8\u89E3\u51B3","merge-conflicts.conflicts.partial-resolved":"\u5DF2\u89E3\u51B3 {0} \u5904, \u5269\u4F59 {1} \u5904","merge-conflicts.non-conflicts.summary":"\u975E\u51B2\u7A81\u53D8\u66F4\u5171 {0} \u5904","merge-conflicts.non-conflicts.progress":"{0} \u5904\u975E\u51B2\u7A81\u53D8\u66F4\u5DF2{1}","merge-conflicts.non-conflicts.from.left":"\u76EE\u6807\u5206\u652F: {0} \u5904","merge-conflicts.non-conflicts.from.right":"\u6765\u6E90\u5206\u652F: {0} \u5904","merge-conflicts.non-conflicts.from.base":"\u4E24\u8005: {0} \u5904","merge-conflicts.merge.conflict.remain":"\u5269\u4F59\u672A\u89E3\u51B3\u51B2\u7A81 {0} \u5904"}},61647:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.localizationBundle=void 0;const n=e(69734),r=e(21714),o=e(12651),c=e(40028);t.localizationBundle={languageId:n.LOCALE_TYPES.ZH_CN,languageName:"Chinese",localizedLanguageName:"\u4E2D\u6587(\u4E2D\u56FD)",contents:{ButtonAllow:"\u5141\u8BB8",ButtonOK:"\u786E\u5B9A",ButtonCancel:"\u53D6\u6D88","common.yes":"\u662F","common.no":"\u5426",extension:"\u63D2\u4EF6",editTtile:"\u7F16\u8F91","common.loading":"\u52A0\u8F7D\u4E2D...","tree.filter.placeholder":"\u8F93\u5165\u5173\u952E\u5B57\u6216\u8DEF\u5F84\u7B5B\u9009","file.new":"\u65B0\u5EFA\u6587\u4EF6","file.folder.new":"\u65B0\u5EFA\u6587\u4EF6\u5939","file.locate":"\u6587\u4EF6\u5B9A\u4F4D","file.save":"\u4FDD\u5B58\u6587\u4EF6","file.saveAll":"\u4FDD\u5B58\u5168\u90E8","file.autoSave":"\u81EA\u52A8\u4FDD\u5B58","file.open":"\u6253\u5F00\u6587\u4EF6","file.open.side":"\u4FA7\u8FB9\u680F\u6253\u5F00","file.open.type":"\u6253\u5F00\u65B9\u5F0F...","file.open.type.placeholder":'\u4E3A "{0}" \u9009\u62E9\u6253\u5F00\u65B9\u5F0F',"file.open.type.detail.active":"\u5F53\u524D","file.open.type.detail.and":"\u548C","file.open.type.detail.default":"\u9ED8\u8BA4","file.open.type.preference.default":'\u4E3A "{0}" \u914D\u7F6E\u9ED8\u8BA4\u7F16\u8F91\u5668...',"file.delete":"\u5220\u9664","file.rename":"\u91CD\u547D\u540D","file.compare":"\u4E0E\u7F16\u8F91\u5668\u4E2D\u7684\u6587\u4EF6\u6BD4\u8F83","file.close":"\u5173\u95ED\u6587\u4EF6","file.copy.path":"\u590D\u5236\u8DEF\u5F84","file.copy.relativepath":"\u590D\u5236\u76F8\u5BF9\u8DEF\u5F84","file.paste.file":"\u7C98\u8D34","file.copy.file":"\u590D\u5236","file.cut.file":"\u526A\u5207","file.move.existMessage":"\u8981\u7C98\u8D34\u7684\u6587\u4EF6\u540C\u65F6\u88AB\u5220\u9664\u6216\u79FB\u52A8\u3002\u65E0\u6CD5\u79FB\u52A8/\u590D\u5236\u3002\u6587\u4EF6\u5DF2\u5B58\u5728\u4E8E\u76EE\u6807\u4F4D\u7F6E\u3002","file.action.new.file":"\u65B0\u5EFA\u6587\u4EF6","file.action.new.folder":"\u65B0\u5EFA\u6587\u4EF6\u5939","file.action.refresh":"\u5237\u65B0\u6587\u4EF6","file.action.collapse":"\u5168\u90E8\u6298\u53E0","file.location":"\u5728\u6587\u4EF6\u6811\u4E2D\u5B9A\u4F4D","file.open.folder":"\u6253\u5F00\u6587\u4EF6\u5939","file.open.workspace":"\u4ECE\u6587\u4EF6\u6253\u5F00\u5DE5\u4F5C\u533A","file.confirm.delete":`### \u786E\u5B9A\u4ECE\u5DE5\u4F5C\u533A\u5220\u9664\u4E0B\u9762\u7684 {0} \u4E2A\u6587\u4EF6?
|
|
31714
|
+
Sign out of these features?`,"authentication.signOutMessageSimple":"Sign out of {0}?","authentication.useOtherAccount":"Sign in to another account","authentication.selectAccount":"The extension '{0}' wants to access a {1} account","authentication.getSessionPlaceholder":"Select an account for '{0}' to use or Esc to cancel","authentication.confirmAuthenticationAccess":"The extension '{0}' wants to access the {1} account '{2}'.","authentication.confirmLogin":"The extension '{0}' wants to sign in using {1}.","authentication.confirmReLogin":"The extension '{0}' wants to sign in again using {1}.","authentication.signInRequests":"Sign in to use {0} (1)","authentication.signOut":"Sign out {0}","authentication.noAccounts":"You are not signed in to any accounts","authentication.signedOut":"Successfully signed out.","refactoring-changes.ask.1.create":"Extension '{0}' wants to make refactoring changes with this file creation","refactoring-changes.ask.1.copy":"Extension '{0}' wants to make refactoring changes with this file copy","refactoring-changes.ask.1.move":"Extension '{0}' wants to make refactoring changes with this file move","refactoring-changes.ask.1.delete":"Extension '{0}' wants to make refactoring changes with this file deletion","refactoring-changes.ask.N.create":"{0} extensions want to make refactoring changes with this file creation","refactoring-changes.ask.N.copy":"{0} extensions want to make refactoring changes with this file copy","refactoring-changes.ask.N.move":"{0} extensions want to make refactoring changes with this file move","refactoring-changes.ask.N.delete":"{0} extensions want to make refactoring changes with this file deletion","refactoring-changes.msg.showPreview":"Show Preview","refactoring-changes.msg.skipChanges":"Skip Changes","keyboard.chooseKeyboardLayout":"Choose keyboard layout","keyboard.autoDetect.label":"Auto Detect","keyboard.autoDetect.description":"(Current: '{0} ')","keyboard.autoDetect.detail":"Try to detect the keyboard layout from browser information and pressed keys.","editor.toggleWordWrap":"Toggle Word Wrap","editor.suggest.details.visible":"Controls whether editor code completion expands details by default","view.component.renderedError":"View Component Rendering Exception","view.component.tryAgain":"Refresh","test.title":"Testing","test.result.runFinished":"Test run at {0}","test.task.unnamed":"Unnamed Task","test.results":"Test Results","menu.missing.command":"menuId {0} register command not exist: {1}","menu.missing.altCommand":"menuId {0} register altCommand not exist: {1}","menu.dupe.command":"menuId {0} register command({1}) is duplicated with alt({2})","command.category.developerTools":"Developer Tool","connection.start.rtt":"Measure Connection RTT","connection.stop.rtt":"Stop Connection RTT","debug.terminal.label":"Javascript Debug Terminal","debug.terminal.title":"Debug Process","output.channel.clear":"Clear Output Panel","workbench.action.tasks.runTask":"Run Task","workbench.action.tasks.reRunTask":"Rerun Last Task","workbench.action.tasks.restartTask":"Restart Running Task","workbench.action.tasks.terminate":"Terminate Task","workbench.action.tasks.showTasks":"Show Running Tasks","workbench.action.tasks.showLog":"Show Task Log","task.contribute":"Contribute","task.cannotFindTask":"Cannot find task for {0}. Press Enter key to return.","comment.reply.count":"{0} comments","comment.reply.lastReply":"Last reply from {0}","walkthroughs.welcome":"Welcome","walkthroughs.get.started":"Open the 'Getting Started' walkthrough","mergeEditor.reset":"Reset","mergeEditor.workbench.tab.name":"Merging: {0}","mergeEditor.conflict.action.apply.confirm.title":"The file has unresolved conflicts or changes, whether to apply and save the changes?","mergeEditor.conflict.action.apply.confirm.continue":"Continue Merge","mergeEditor.conflict.action.apply.confirm.complete":"Apply Changes","mergeEditor.action.button.apply":"Apply","mergeEditor.action.button.apply-and-stash":"Apply and Stash","mergeEditor.action.button.accept.left":"Accept Left","mergeEditor.action.button.accept.right":"Accept Right","mergeEditor.open.3way":"3-Way Editor","mergeEditor.conflict.prev":"Previous Conflict","mergeEditor.conflict.next":"Next Conflict","mergeEditor.conflict.ai.resolve.all":"AI Resolution","mergeEditor.conflict.ai.resolve.all.stop":"Stop All","mergeEditor.open.tradition":"Text Editor","aiNative.chat.ai.assistant.name":"AI Assistant","aiNative.chat.input.placeholder.default":"Ask anything, @ to mention","aiNative.chat.stop.immediately":"I don\u2019t think about it anymore. If you need anything, you can ask me anytime.","aiNative.chat.error.response":"There are too many people interacting with me at the moment. Please try again later. Thank you for your understanding and support.","aiNative.chat.code.insert":"Insert code","aiNative.chat.code.copy":"Copy code","aiNative.chat.code.copy.success":"Copied successfully","aiNative.chat.expand.unfullscreen":"unfullscreen","aiNative.chat.expand.fullescreen":"fullescreen","aiNative.chat.enter.send":"Send (Enter)","aiNative.chat.defaultContextFile":"Current File","aiNative.chat.defaultContextFolder":"Current Folder","aiNative.chat.thinking":"Deep Think","aiNative.chat.imageUpload":"Upload Image","aiNative.inline.chat.operate.chat.title":"Chat({0})","aiNative.inline.chat.operate.check.title":"Check","aiNative.inline.chat.operate.thumbsup.title":"Thumbs up","aiNative.inline.chat.operate.thumbsdown.title":"Thumbs down","aiNative.inline.chat.operate.loading.cancel":"Esc to cancel","aiNative.inline.chat.input.placeholder.default":"New code instructions...(\u2191\u2193 for history)","aiNative.inline.chat.generating.canceled":"Inline Chat Generating Canceled.","aiNative.inline.hint.widget.placeholder":"{0} to inline chat","aiNative.inline.problem.fix.title":"Fix with AI","aiNative.inline.diff.accept":"Accept","aiNative.inline.diff.reject":"Reject","aiNative.resolve.conflict.dialog.afresh":"Are you sure you want to regenerate?","aiNative.resolve.conflict.dialog.detection":`It is detected that you have made modifications. Regeneration will overwrite
|
|
31715
|
+
your modifications. Are you sure to regenerate?`,"aiNative.resolve.conflict.message.not.processed.yet":"AI has processed conflicts at {0}, but conflicts at {1} have not yet been processed (still marked as yellow) and require manual processing.","aiNative.operate.discard.title":"Discard","aiNative.operate.afresh.title":"Afresh","aiNative.operate.stop.title":"Stop","aiNative.operate.close.title":"Close","aiNative.operate.clear.title":"Clear","aiNative.operate.tools.title":"MCP Tools","aiNative.operate.newChat.title":"New Chat","aiNative.operate.chatHistory.title":"Chat History","aiNative.operate.chatHistory.searchPlaceholder":"Search Chats...","aiNative.operate.chatHistory.edit":"Edit","aiNative.operate.chatHistory.delete":"Delete","aiNative.chat.welcome.loading.text":"Initializing...","aiNative.chat.ai.assistant.limit.message":"{0} earliest messages are dropped due to the input token limit","aiNative.inlineDiff.acceptAll":"Accept All","aiNative.inlineDiff.rejectAll":"Reject All","aiNative.inlineDiff.reveal":"Reveal In Chat","aiNative.inlineDiff.up":"Previous Change","aiNative.inlineDiff.down":"Next Change","aiNative.inlineDiff.right":"Next File","aiNative.inlineDiff.left":"Previous File","aiNative.inlineDiff.noMoreChangesUp":"No more changes above","aiNative.inlineDiff.noMoreChangesDown":"No more changes below","aiNative.chat.session.max":"You can only create {0} chats at a time","preference.ai.native.inlineChat.title":"Inline Chat","preference.ai.native.chat.title":"Chat","preference.ai.native.interface.quick.title":"Interface Quick Navigation","preference.ai.native.interface.quick.navigation":"Click the icon on the left side of the editor to quickly jump to the interface implementation.","preference.ai.native.interface.quick.navigation.hover":"Go to implementation","preference.ai.native.inlineChat.auto.visible":"Does Inline Chat automatically appear when code are selected?","preference.ai.native.inlineChat.codeAction.enabled":"Does Inline Chat related code actions automatically appear when code are selected?","preference.ai.native.chat.visible.type":"Control how the chat panel is displayed by default","preference.ai.native.inlineDiff.preview.mode":"Inline Diff preview mode","preference.ai.native.inlineDiff.preview.mode.sideBySide":"Displayed in the editor as left and right diff panels","preference.ai.native.inlineDiff.preview.mode.inlineLive":"Displayed in the editor through streaming rendering","preference.ai.native.intelligentCompletions.title":"Intelligent Completions","preference.ai.native.intelligentCompletions.promptEngineering.enabled":"Whether to enable prompt engineering, some LLM models may not perform well on prompt engineering.","preference.ai.native.intelligentCompletions.debounceTime":"Debounce time for intelligent completions","preference.ai.native.intelligentCompletions.cache.enabled":"Whether to enable cache for intelligent completions","preference.ai.native.intelligentCompletions.alwaysVisible":"Whether to always show intelligent completions","preference.ai.native.codeEdits.title":"Code Edits","preference.ai.native.codeEdits.lintErrors":"Whether to trigger intelligent rewriting when Lint Error occurs","preference.ai.native.codeEdits.lineChange":"Whether to trigger intelligent rewriting when the cursor line number changes","preference.ai.native.codeEdits.typing":"Whether to trigger intelligent rewriting when the content changes","preference.ai.native.codeEdits.renderType":"Code Edits Render Type","preference.ai.native.chat.system.prompt":"Default Chat System Prompt","workbench.quickOpen.preserveInput":"Controls whether the last typed input to Quick Open(include Command Palette) should be preserved.","webview.webviewTagUnavailable":"webview is unsupported on non-electron env, please use iframe instead","notebook.kernel.panel.empty":"No content found.","notebook.kernel.panel.title":"Running Terminals and Kernels","notebook.kernel.panel.opened.pages":"Opened Pages","notebook.kernel.panel.running.kernels":"Running Kernels","notebook.kernel.close.all.confirmation":"Are you sure you want to close all?","notebook.variable.panel.title":"Variable Inspector","notebook.variable.panel.unsupported":"The file format is not supported for variable inspection","notebook.variable.panel.refresh.success":"Variable refresh successful","notebook.variable.panel.refresh.error":"Variable refresh failed","notebook.variable.panel.search.placeholder":"Please enter the variable name to search","notebook.variable.panel.show.detail":"View details",...r.browserViews,...o.editorLocalizations,...c.enUS,"preference.ai.native.llm.apiSettings.title":"LLM API Settings","preference.ai.native.llm.model.id":"Model ID","preference.ai.native.deepseek.apiKey":"Deepseek API Key","preference.ai.native.deepseek.apiKey.description":"API key for Deepseek language model","preference.ai.native.anthropic.apiKey":"Anthropic API Key","preference.ai.native.anthropic.apiKey.description":"API key for Anthropic language model","preference.ai.native.openai.apiKey":"OpenAI API Key","preference.ai.native.openai.apiKey.description":"API key for OpenAI Compatible language model","preference.ai.native.openai.baseURL":"OpenAI Base URL","preference.ai.native.openai.baseURL.description":"Base URL for OpenAI Compatible language model","preference.ai.native.contextWindow":"Context Window","preference.ai.native.contextWindow.description":"The maximum number of tokens in the context window","preference.ai.native.maxTokens":"Maximum Output Tokens","preference.ai.native.maxTokens.description":"The maximum number of tokens in the output","preference.ai.native.mcp.settings.title":"MCP Server Settings","preference.ai.native.mcp.servers":"MCP Servers","preference.ai.native.mcp.servers.description":"Configure MCP (Model Context Protocol) servers","preference.ai.native.mcp.servers.name.description":"Name of the MCP server","preference.ai.native.mcp.servers.command.description":"Command to start the MCP server","preference.ai.native.mcp.servers.args.description":"Command line arguments for the MCP server","preference.ai.native.mcp.servers.env.description":"Environment variables for the MCP server","preference.ai.native.mcp.servers.type.description":"Type of the MCP server connection","preference.ai.native.mcp.servers.type.stdio":"Stdio connection","preference.ai.native.mcp.servers.type.sse":"SSE connection","ai.native.mcp.terminal.command":"Command","ai.native.mcp.terminal.output":"Output","ai.native.mcp.terminal.allow-question":"Allow the terminal to run the command?","ai.native.mcp.terminal.allow":"Allow","ai.native.mcp.terminal.deny":"Reject","ai.native.mcp.name":"Name:","ai.native.mcp.command":"Command:","ai.native.mcp.args":"Arguments:","ai.native.mcp.env":"Environment Variables:","ai.native.mcp.type":"Type:","ai.native.mcp.stdio":"Command","ai.native.mcp.sse":"SSE","ai.native.mcp.buttonSave":"Add","ai.native.mcp.buttonUpdate":"Update","ai.native.mcp.buttonCancel":"Cancel","ai.native.mcp.addMCPServer.title":"Add MCP Server","ai.native.mcp.editMCPServer.title":"Edit MCP Server","ai.native.mcp.serverHost.placeHolder":"URL to SSE endpoint","ai.native.mcp.command.placeHolder":"Command to execute","ai.native.mcp.args.placeHolder":"Arguments","ai.native.mcp.env.placeHolder":"KEY=value (one per line)","ai.native.mcp.name.placeHolder":"Server Name","ai.native.mcp.type.builtin":"Built-in","ai.native.mcp.type.sse":"SSE","ai.native.mcp.type.stdio":"Command","ai.native.mcp.serverNameExists":'Server name "{0}" already exists',"ai.native.mcp.name.isRequired":"Server name is required","ai.native.mcp.command.isRequired":"Command is required","ai.native.mcp.serverHost.isRequired":"SSE URL is required","ai.native.mcp.manage.connections":"Manage your MCP server connections","ai.native.mcp.enabled":"Enabled","ai.native.mcp.disabled":"Disabled","ai.native.mcp.enable.title":"Start this service","ai.native.mcp.disable.title":"Stop this service","ai.native.mcp.config.title":"MCP Configuration","ai.native.mcp.tool.arguments":"Arguments","ai.native.mcp.tool.results":"Result"}}},32581:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(43718),r=e(20741),o=e(61647);(0,n.registerLocalizationBundle)(o.localizationBundle),(0,n.registerLocalizationBundle)(r.localizationBundle)},36942:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.enUS=void 0,t.enUS={"merge-conflicts.merge.type.auto":"auto merged","merge-conflicts.merge.type.manual":"merged","merge-conflicts.conflicts.summary":"Total {0} conflicts ({1})","merge-conflicts.conflicts.all-resolved":"All resolved","merge-conflicts.conflicts.partial-resolved":"{0} conflicts resolved, {1} remaining","merge-conflicts.non-conflicts.summary":"Non-conflict changes {0} in total","merge-conflicts.non-conflicts.progress":"{0} non-conflict changes have been {1}","merge-conflicts.non-conflicts.from.left":"target branch: {0} places","merge-conflicts.non-conflicts.from.right":"source branch: {0} places","merge-conflicts.non-conflicts.from.base":"base branch: {0} places","merge-conflicts.merge.conflict.remain":"Unresolved conflicts {0} remaining"}},40028:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zhCN=void 0,t.zhCN={"merge-conflicts.merge.type.auto":"\u81EA\u52A8\u5408\u5E76","merge-conflicts.merge.type.manual":"\u5408\u5E76","merge-conflicts.conflicts.summary":"\u51B2\u7A81\u53D8\u66F4\u5171 {0} \u5904 ({1})","merge-conflicts.conflicts.all-resolved":"\u5DF2\u5168\u90E8\u89E3\u51B3","merge-conflicts.conflicts.partial-resolved":"\u5DF2\u89E3\u51B3 {0} \u5904, \u5269\u4F59 {1} \u5904","merge-conflicts.non-conflicts.summary":"\u975E\u51B2\u7A81\u53D8\u66F4\u5171 {0} \u5904","merge-conflicts.non-conflicts.progress":"{0} \u5904\u975E\u51B2\u7A81\u53D8\u66F4\u5DF2{1}","merge-conflicts.non-conflicts.from.left":"\u76EE\u6807\u5206\u652F: {0} \u5904","merge-conflicts.non-conflicts.from.right":"\u6765\u6E90\u5206\u652F: {0} \u5904","merge-conflicts.non-conflicts.from.base":"\u4E24\u8005: {0} \u5904","merge-conflicts.merge.conflict.remain":"\u5269\u4F59\u672A\u89E3\u51B3\u51B2\u7A81 {0} \u5904"}},61647:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.localizationBundle=void 0;const n=e(69734),r=e(21714),o=e(12651),c=e(40028);t.localizationBundle={languageId:n.LOCALE_TYPES.ZH_CN,languageName:"Chinese",localizedLanguageName:"\u4E2D\u6587(\u4E2D\u56FD)",contents:{ButtonAllow:"\u5141\u8BB8",ButtonOK:"\u786E\u5B9A",ButtonCancel:"\u53D6\u6D88","common.yes":"\u662F","common.no":"\u5426",extension:"\u63D2\u4EF6",editTtile:"\u7F16\u8F91","common.loading":"\u52A0\u8F7D\u4E2D...","tree.filter.placeholder":"\u8F93\u5165\u5173\u952E\u5B57\u6216\u8DEF\u5F84\u7B5B\u9009","file.new":"\u65B0\u5EFA\u6587\u4EF6","file.folder.new":"\u65B0\u5EFA\u6587\u4EF6\u5939","file.locate":"\u6587\u4EF6\u5B9A\u4F4D","file.save":"\u4FDD\u5B58\u6587\u4EF6","file.saveAll":"\u4FDD\u5B58\u5168\u90E8","file.autoSave":"\u81EA\u52A8\u4FDD\u5B58","file.open":"\u6253\u5F00\u6587\u4EF6","file.open.side":"\u4FA7\u8FB9\u680F\u6253\u5F00","file.open.type":"\u6253\u5F00\u65B9\u5F0F...","file.open.type.placeholder":'\u4E3A "{0}" \u9009\u62E9\u6253\u5F00\u65B9\u5F0F',"file.open.type.detail.active":"\u5F53\u524D","file.open.type.detail.and":"\u548C","file.open.type.detail.default":"\u9ED8\u8BA4","file.open.type.preference.default":'\u4E3A "{0}" \u914D\u7F6E\u9ED8\u8BA4\u7F16\u8F91\u5668...',"file.delete":"\u5220\u9664","file.rename":"\u91CD\u547D\u540D","file.compare":"\u4E0E\u7F16\u8F91\u5668\u4E2D\u7684\u6587\u4EF6\u6BD4\u8F83","file.close":"\u5173\u95ED\u6587\u4EF6","file.copy.path":"\u590D\u5236\u8DEF\u5F84","file.copy.relativepath":"\u590D\u5236\u76F8\u5BF9\u8DEF\u5F84","file.paste.file":"\u7C98\u8D34","file.copy.file":"\u590D\u5236","file.cut.file":"\u526A\u5207","file.move.existMessage":"\u8981\u7C98\u8D34\u7684\u6587\u4EF6\u540C\u65F6\u88AB\u5220\u9664\u6216\u79FB\u52A8\u3002\u65E0\u6CD5\u79FB\u52A8/\u590D\u5236\u3002\u6587\u4EF6\u5DF2\u5B58\u5728\u4E8E\u76EE\u6807\u4F4D\u7F6E\u3002","file.action.new.file":"\u65B0\u5EFA\u6587\u4EF6","file.action.new.folder":"\u65B0\u5EFA\u6587\u4EF6\u5939","file.action.refresh":"\u5237\u65B0\u6587\u4EF6","file.action.collapse":"\u5168\u90E8\u6298\u53E0","file.location":"\u5728\u6587\u4EF6\u6811\u4E2D\u5B9A\u4F4D","file.open.folder":"\u6253\u5F00\u6587\u4EF6\u5939","file.open.workspace":"\u4ECE\u6587\u4EF6\u6253\u5F00\u5DE5\u4F5C\u533A","file.confirm.delete":`### \u786E\u5B9A\u4ECE\u5DE5\u4F5C\u533A\u5220\u9664\u4E0B\u9762\u7684 {0} \u4E2A\u6587\u4EF6?
|
|
31716
31716
|
{1}`,"file.confirm.deleteTips":"\u4F60\u53EF\u4EE5\u4ECE\u56DE\u6536\u7AD9\u8FD8\u539F\u6587\u4EF6","file.confirm.moveToTrash.ok":"\u79FB\u5165\u56DE\u6536\u7AD9","file.confirm.delete.ok":"\u5220\u9664","file.confirm.delete.cancel":"\u53D6\u6D88","file.confirm.move":"\u786E\u5B9A\u79FB\u52A8\u6587\u4EF6 {0} \u5230 {1} ?","file.confirm.move.ok":"\u79FB\u52A8","file.confirm.move.cancel":"\u53D6\u6D88","file.confirm.paste":"\u786E\u5B9A\u62F7\u8D1D\u6587\u4EF6 {0} \u5230 {1} ?","file.confirm.paste.ok":"\u62F7\u8D1D","file.confirm.paste.cancel":"\u53D6\u6D88","file.confirm.replace":"\u786E\u5B9A\u66FF\u6362{0}\u6587\u4EF6?","file.confirm.replace.ok":"\u66FF\u6362","file.confirm.replace.cancel":"\u53D6\u6D88","file.empty.defaultTitle":"\u65E0\u6253\u5F00\u7684\u6587\u4EF6\u5939","file.empty.defaultMessage":"\u5C1A\u672A\u6253\u5F00\u6587\u4EF6\u5939","file.workspace.defaultTip":"\u65E0\u6807\u9898\uFF08\u5DE5\u4F5C\u533A\uFF09","file.workspace.defaultWorkspaceTip":"{0}\uFF08\u5DE5\u4F5C\u533A\uFF09","file.empty.openFolder":"\u6253\u5F00\u6587\u4EF6\u5939","file.collapse":"\u5168\u90E8\u6298\u53E0","file.refresh":"\u5237\u65B0","file.search.folder":"\u5728\u6587\u4EF6\u5939\u4E2D\u67E5\u627E","file.focus.files":"\u5728\u8D44\u6E90\u7BA1\u7406\u5668\u4E2D\u805A\u7126\u6587\u4EF6","file.filetree.filter":"\u57FA\u4E8E\u5F53\u524D\u6587\u4EF6\u6811\u7B5B\u9009\u6587\u4EF6","file.filetree.openTerminalWithPath":"\u5728\u7EC8\u7AEF\u4E2D\u6253\u5F00","file.tooltip.symbolicLink":"\u7B26\u53F7\u94FE\u63A5","file.resource-deleted":"\uFF08\u5DF2\u5220\u9664\uFF09","file.revealInExplorer":"\u5728\u6587\u4EF6\u6811\u4E2D\u5B9A\u4F4D","menu-bar.title.file":"\u6587\u4EF6","menu-bar.title.edit":"\u7F16\u8F91","menu-bar.title.selection":"\u9009\u62E9","menu-bar.title.view":"\u89C6\u56FE","menu-bar.title.go":"\u524D\u5F80","menu-bar.title.debug":"\u8C03\u8BD5","menu-bar.title.terminal":"\u7EC8\u7AEF","menu-bar.title.window":"\u7A97\u53E3","menu-bar.title.help":"\u5E2E\u52A9","menu-bar.file.open":"\u6253\u5F00\u6587\u4EF6","menu-bar.file.save-as":"\u53E6\u5B58\u4E3A","menu-bar.file.save-all":"\u5168\u90E8\u4FDD\u5B58","menu-bar.view.quick.command":"\u547D\u4EE4\u9762\u677F","menu-bar.go.jumpToBracket":"\u8DF3\u8F6C\u5230\u62EC\u53F7","menu-bar.go.nextProblemInFiles":"\u4E0B\u4E00\u4E2A\u95EE\u9898","menu-bar.go.prevProblemInFiles":"\u4E0A\u4E00\u4E2A\u95EE\u9898","menu-bar.file.pref":"\u8BBE\u7F6E","menu-bar.mode.compact":"\u7D27\u51D1\u6A21\u5F0F",editor:"\u7F16\u8F91\u5668","editor.undo":"\u64A4\u9500","editor.redo":"\u91CD\u505A","editor.saveCurrent":"\u4FDD\u5B58\u5F53\u524D\u6587\u4EF6","editor.title.context.close":"\u5173\u95ED","editor.closeTab.title":"\u5173\u95ED ({0})","editor.closeCurrent":"\u5173\u95ED\u5F53\u524D\u7F16\u8F91\u7A97\u53E3","editor.openExternal":"\u4F7F\u7528\u5916\u90E8\u8F6F\u4EF6\u6253\u5F00","editor.cannotOpenBinary":"\u65E0\u6CD5\u5728\u7F16\u8F91\u5668\u4E2D\u5C55\u793A\u4E8C\u8FDB\u5236\u6587\u4EF6\u3002","editor.splitToLeft":"\u5411\u5DE6\u62C6\u5206","editor.splitToRight":"\u5411\u53F3\u62C6\u5206","editor.splitToTop":"\u5411\u4E0A\u62C6\u5206","editor.splitToBottom":"\u5411\u4E0B\u62C6\u5206","editor.closeAllInGroup":"\u5173\u95ED\u5168\u90E8","editor.closeSaved":"\u5173\u95ED\u5DF2\u4FDD\u5B58","editor.closeOtherEditors":"\u5173\u95ED\u5176\u4ED6","editor.closeToRight":"\u5173\u95ED\u5230\u53F3\u4FA7","editor.cannotSaveWithoutDirectory":"\u8BF7\u9009\u62E9\u8981\u4FDD\u5B58\u7684\u8DEF\u5F84","editor.failToOpen":"\u6253\u5F00\u6587\u4EF6 {0} \u5931\u8D25, \u8BF7\u786E\u8BA4\u6587\u4EF6\u662F\u5426\u5B58\u5728\u3002\u8BE6\u7EC6\u9519\u8BEF\u4FE1\u606F: {1}","editor.lineHeight":"\u884C\u9AD8","editor.lineHeight.description":`\u63A7\u5236\u884C\u9AD8\u3002
|
|
31717
31717
|
|
|
31718
31718
|
- \u4F7F\u7528 0 \u6839\u636E\u5B57\u53F7\u81EA\u52A8\u8BA1\u7B97\u884C\u9AD8\u3002
|
|
@@ -31732,8 +31732,8 @@ your modifications. Are you sure to regenerate?`,"aiNative.resolve.conflict.mess
|
|
|
31732
31732
|
|
|
31733
31733
|
{1}
|
|
31734
31734
|
|
|
31735
|
-
\u662F\u5426\u8981\u9000\u51FA?`,"authentication.signOutMessageSimple":"\u662F\u5426\u8981\u9000\u51FA {0}?","authentication.useOtherAccount":"\u4F7F\u7528\u5176\u4ED6\u8D26\u6237\u767B\u5F55","authentication.selectAccount":"\u6269\u5C55 '{0}' \u5C06\u8981\u8BBF\u95EE {1} \u8D26\u6237","authentication.getSessionPlaceholder":"\u9009\u62E9\u4E00\u4E2A\u8D26\u6237\u7ED9 '{0}' \u4F7F\u7528","authentication.confirmAuthenticationAccess":"\u6269\u5C55 '{0}' \u5C06\u8981\u4F7F\u7528 '{2}' \u8BBF\u95EE {1}","authentication.confirmLogin":"\u6269\u5C55 '{0}' \u5C06\u8981\u4F7F\u7528 {1} \u767B\u5F55","authentication.confirmReLogin":"\u6269\u5C55 '{0}' \u5C06\u8981\u4F7F\u7528 {1} \u518D\u6B21\u767B\u5F55","authentication.signInRequests":"\u767B\u5F55 {0}","authentication.signOut":"\u9000\u51FA {0}","authentication.noAccounts":"\u76EE\u524D\u6CA1\u6709\u767B\u5F55\u4EFB\u4F55\u8D26\u6237","authentication.signedOut":"\u6210\u529F\u9000\u51FA","refactoring-changes.ask.1.create":"\u6269\u5C55 '{0} ' \u5E0C\u671B\u901A\u8FC7\u65B0\u5EFA\u6B64\u6587\u4EF6\u6765\u8FDB\u884C\u91CD\u6784\u66F4\u6539","refactoring-changes.ask.1.copy":"\u6269\u5C55 '{0} ' \u5E0C\u671B\u901A\u8FC7\u590D\u5236\u6B64\u6587\u4EF6\u6765\u8FDB\u884C\u91CD\u6784\u66F4\u6539","refactoring-changes.ask.1.move":"\u6269\u5C55 '{0} ' \u5E0C\u671B\u901A\u8FC7\u79FB\u52A8\u6B64\u6587\u4EF6\u6765\u8FDB\u884C\u91CD\u6784\u66F4\u6539","refactoring-changes.ask.1.delete":"\u6269\u5C55 '{0} ' \u5E0C\u671B\u901A\u8FC7\u5220\u9664\u6B64\u6587\u4EF6\u6765\u8FDB\u884C\u91CD\u6784\u66F4\u6539","refactoring-changes.ask.N.create":"{0} \u4E2A\u63D2\u4EF6\u5E0C\u671B\u901A\u8FC7\u65B0\u5EFA\u6B64\u6587\u4EF6\u6765\u8FDB\u884C\u91CD\u6784\u66F4\u6539","refactoring-changes.ask.N.copy":"{0} \u4E2A\u63D2\u4EF6\u5E0C\u671B\u901A\u8FC7\u590D\u5236\u6B64\u6587\u4EF6\u6765\u8FDB\u884C\u91CD\u6784\u66F4\u6539","refactoring-changes.ask.N.move":"{0} \u4E2A\u63D2\u4EF6\u5E0C\u671B\u901A\u8FC7\u79FB\u52A8\u6B64\u6587\u4EF6\u6765\u8FDB\u884C\u91CD\u6784\u66F4\u6539","refactoring-changes.ask.N.delete":"{0} \u4E2A\u63D2\u4EF6\u5E0C\u671B\u901A\u8FC7\u5220\u9664\u6B64\u6587\u4EF6\u6765\u8FDB\u884C\u91CD\u6784\u66F4\u6539","refactoring-changes.msg.showPreview":"\u663E\u793A\u9884\u89C8","refactoring-changes.msg.skipChanges":"\u8DF3\u8FC7\u66F4\u6539","keyboard.chooseKeyboardLayout":"\u9009\u62E9\u5E03\u5C40\u6587\u4EF6\u914D\u7F6E","keyboard.autoDetect.label":"\u81EA\u52A8\u68C0\u6D4B","keyboard.autoDetect.description":"\uFF08\u5F53\u524D\uFF1A'{0} '\uFF09","keyboard.autoDetect.detail":"\u5C1D\u8BD5\u901A\u8FC7\u6D4F\u89C8\u5668\u53CA\u6309\u952E\u4FE1\u606F\u8FDB\u884C\u5E03\u5C40\u81EA\u52A8\u68C0\u6D4B","editor.configuration.suggest.filterGraceful":"\u63A7\u5236\u5BF9\u5EFA\u8BAE\u7684\u7B5B\u9009\u548C\u6392\u5E8F\u662F\u5426\u8003\u8651\u5C0F\u7684\u62FC\u5199\u9519\u8BEF\u3002","editor.configuration.suggest.insertMode":"\u63A7\u5236\u63A5\u53D7\u8865\u5168\u65F6\u662F\u5426\u8986\u76D6\u5355\u8BCD\u3002\u8BF7\u6CE8\u610F\uFF0C\u8FD9\u53D6\u51B3\u4E8E\u6269\u5C55\u9009\u62E9\u4F7F\u7528\u6B64\u529F\u80FD\u3002","editor.configuration.suggest.insertMode.insert":"\u63D2\u5165\u5EFA\u8BAE\u800C\u4E0D\u8986\u76D6\u5149\u6807\u53F3\u4FA7\u7684\u6587\u672C\u3002","editor.configuration.suggest.insertMode.replace":"\u63D2\u5165\u5EFA\u8BAE\u5E76\u8986\u76D6\u5149\u6807\u53F3\u4FA7\u7684\u6587\u672C\u3002","editor.configuration.suggest.localityBonus":"\u63A7\u5236\u6392\u5E8F\u65F6\u662F\u5426\u9996\u9009\u5149\u6807\u9644\u8FD1\u7684\u5B57\u8BCD\u3002","editor.configuration.suggest.maxVisibleSuggestions.dep":"\u6B64\u8BBE\u7F6E\u5DF2\u5F03\u7528\u3002\u73B0\u5728\u53EF\u4EE5\u8C03\u6574\u5EFA\u8BAE\u5C0F\u7EC4\u4EF6\u7684\u5927\u5C0F\u3002","editor.configuration.suggest.preview":"\u63A7\u5236\u662F\u5426\u5728\u7F16\u8F91\u5668\u4E2D\u9884\u89C8\u5EFA\u8BAE\u7ED3\u679C\u3002","editor.configuration.suggest.shareSuggestSelections":"\u63A7\u5236\u662F\u5426\u5728\u591A\u4E2A\u5DE5\u4F5C\u533A\u548C\u7A97\u53E3\u95F4\u5171\u4EAB\u8BB0\u5FC6\u7684\u5EFA\u8BAE\u9009\u9879(\u9700\u8981 `#editor.suggestSelection#`)\u3002","editor.configuration.suggest.showIcons":"\u63A7\u5236\u662F\u5426\u5728\u5EFA\u8BAE\u4E2D\u663E\u793A\u6216\u9690\u85CF\u56FE\u6807\u3002","editor.configuration.suggest.showInlineDetails":"\u63A7\u5236\u5EFA\u8BAE\u8BE6\u7EC6\u4FE1\u606F\u662F\u968F\u6807\u7B7E\u4E00\u8D77\u663E\u793A\u8FD8\u662F\u4EC5\u663E\u793A\u5728\u8BE6\u7EC6\u4FE1\u606F\u5C0F\u7EC4\u4EF6\u4E2D","editor.configuration.suggest.showStatusBar":"\u63A7\u5236\u5EFA\u8BAE\u5C0F\u90E8\u4EF6\u5E95\u90E8\u7684\u72B6\u6001\u680F\u7684\u53EF\u89C1\u6027\u3002","editor.configuration.suggest.snippetsPreventQuickSuggestions":"\u63A7\u5236\u6D3B\u52A8\u4EE3\u7801\u6BB5\u662F\u5426\u963B\u6B62\u5FEB\u901F\u5EFA\u8BAE\u3002","editor.configuration.suggestFontSize":"\u5EFA\u8BAE\u5C0F\u90E8\u4EF6\u7684\u5B57\u53F7\u3002\u5982\u679C\u8BBE\u7F6E\u4E3A `0`\uFF0C\u5219\u4F7F\u7528 `#editor.fontSize#` \u7684\u503C\u3002","editor.configuration.suggestLineHeight":"\u5EFA\u8BAE\u5C0F\u90E8\u4EF6\u7684\u884C\u9AD8\u3002\u5982\u679C\u8BBE\u7F6E\u4E3A `0`\uFF0C\u5219\u4F7F\u7528 `#editor.lineHeight#` \u7684\u503C\u3002\u6700\u5C0F\u503C\u4E3A 8\u3002","editor.configuration.suggestOnTriggerCharacters":"\u63A7\u5236\u5728\u952E\u5165\u89E6\u53D1\u5B57\u7B26\u540E\u662F\u5426\u81EA\u52A8\u663E\u793A\u5EFA\u8BAE\u3002","editor.configuration.acceptSuggestionOnEnterSmart":"\u4EC5\u5728\u5EFA\u8BAE\u505A\u51FA\u6587\u672C\u66F4\u6539\u65F6\uFF0C\u624D\u4F7F\u7528 `Enter` \u63A5\u53D7\u5EFA\u8BAE\u3002","editor.configuration.acceptSuggestionOnEnter":"\u63A7\u5236\u7F16\u8F91\u5668\u662F\u5426\u5E94\u8BE5\u5728 `Tab` \u952E\u4E4B\u5916\uFF0C\u8FD8\u4F7F\u7528 `Enter` \u952E\u6765\u63A5\u53D7\u5EFA\u8BAE\u3002\u8FD9\u6709\u52A9\u4E8E\u907F\u514D\u5728\u63D2\u5165\u65B0\u884C\u6216\u63A5\u53D7\u5EFA\u8BAE\u4E4B\u95F4\u7684\u6B67\u4E49\u3002","editor.configuration.acceptSuggestionOnCommitCharacter":"\u63A7\u5236\u662F\u5426\u5728\u4F7F\u7528\u63D0\u4EA4\u5B57\u7B26\u65F6\u63A5\u53D7\u5EFA\u8BAE\u3002\u4F8B\u5982\uFF0C\u5728 JavaScript \u4E2D\uFF0C\u5206\u53F7 (`;`) \u662F\u4E00\u4E2A\u63D0\u4EA4\u5B57\u7B26\uFF0C\u53EF\u4EE5\u63A5\u53D7\u4E00\u4E2A\u5EFA\u8BAE\u5E76\u952E\u5165\u8BE5\u5B57\u7B26\u3002","editor.configuration.snippetSuggestions.top":"\u5C06\u4EE3\u7801\u7247\u6BB5\u7684\u5EFA\u8BAE\u653E\u5728\u5176\u4ED6\u5EFA\u8BAE\u7684\u9876\u90E8\u3002","editor.configuration.snippetSuggestions.bottom":"\u5C06\u4EE3\u7801\u7247\u6BB5\u7684\u5EFA\u8BAE\u653E\u5728\u5176\u4ED6\u5EFA\u8BAE\u7684\u5E95\u90E8\u3002","editor.configuration.snippetSuggestions.inline":"\u5C06\u4EE3\u7801\u7247\u6BB5\u7684\u5EFA\u8BAE\u6DF7\u5408\u5728\u5176\u4ED6\u5EFA\u8BAE\u7684\u4E2D\u95F4\u3002","editor.configuration.snippetSuggestions.none":"\u4E0D\u5C55\u793A\u4EE3\u7801\u7247\u6BB5\u5EFA\u8BAE\u3002","editor.configuration.snippetSuggestions":"\u63A7\u5236\u4EE3\u7801\u7247\u6BB5\u662F\u5426\u4E0E\u5176\u4ED6\u5EFA\u8BAE\u4E00\u540C\u663E\u793A\u4EE5\u53CA\u5B83\u4EEC\u7684\u6392\u5E8F\u65B9\u5F0F\u3002","editor.configuration.wordBasedSuggestions":"\u63A7\u5236\u662F\u5426\u6839\u636E\u6587\u6863\u4E2D\u7684\u5B57\u8BCD\u8BA1\u7B97\u81EA\u52A8\u8865\u5168\u5217\u8868\u3002","editor.configuration.suggestSelection":"\u63A7\u5236\u5728\u5EFA\u8BAE\u5217\u8868\u4E2D\u5982\u4F55\u9884\u5148\u9009\u62E9\u5EFA\u8BAE\u3002","editor.configuration.suggestSelection.first":"\u59CB\u7EC8\u9009\u62E9\u7B2C\u4E00\u4E2A\u5EFA\u8BAE\u3002","editor.configuration.suggestSelection.recentlyUsed":"\u9009\u62E9\u6700\u8FD1\u7684\u5EFA\u8BAE\uFF0C\u9664\u975E\u8FDB\u4E00\u6B65\u952E\u5165\u9009\u62E9\u5176\u4ED6\u9879\u3002\u4F8B\u5982 `console. -> console.log`\uFF0C\u56E0\u4E3A\u6700\u8FD1\u8865\u5168\u8FC7 `log`\u3002","editor.configuration.suggestSelection.recentlyUsedByPrefix":"\u6839\u636E\u4E4B\u524D\u8865\u5168\u8FC7\u7684\u5EFA\u8BAE\u7684\u524D\u7F00\u6765\u8FDB\u884C\u9009\u62E9\u3002\u4F8B\u5982\uFF0C`co -> console`\u3001`con -> const`\u3002","editor.configuration.tabCompletion":"\u542F\u7528 Tab \u8865\u5168\u3002","editor.configuration.tabCompletion.off":"\u7981\u7528 Tab \u8865\u5168\u3002","editor.configuration.tabCompletion.on":"\u5728\u6309\u4E0B Tab \u952E\u65F6\u8FDB\u884C Tab \u8865\u5168\uFF0C\u5C06\u63D2\u5165\u6700\u4F73\u5339\u914D\u5EFA\u8BAE\u3002","editor.configuration.tabCompletion.onlySnippets":'\u5728\u524D\u7F00\u5339\u914D\u65F6\u8FDB\u884C Tab \u8865\u5168\u3002\u5728 "quickSuggestions" \u672A\u542F\u7528\u65F6\u4F53\u9A8C\u6700\u597D\u3002',"editor.configuration.editor.guides.bracketPairs":"\u63A7\u5236\u662F\u5426\u542F\u7528\u62EC\u53F7\u5BF9\u6307\u5357\u3002","editor.configuration.editor.guides.bracketPairsHorizontal":"\u63A7\u5236\u662F\u5426\u542F\u7528\u6C34\u5E73\u62EC\u53F7\u5BF9\u6307\u5357\u3002","editor.configuration.renderLineHighlight":"\u63A7\u5236\u7F16\u8F91\u5668\u7684\u5F53\u524D\u884C\u8FDB\u884C\u9AD8\u4EAE\u663E\u793A\u7684\u65B9\u5F0F\u3002","editor.configuration.renderLineHighlight.all":"\u540C\u65F6\u7A81\u51FA\u663E\u793A\u5BFC\u822A\u7EBF\u548C\u5F53\u524D\u884C\u3002","editor.configuration.renderLineHighlightOnlyWhenFocus":"\u63A7\u5236\u7F16\u8F91\u5668\u662F\u5426\u4EC5\u5728\u7126\u70B9\u5728\u7F16\u8F91\u5668\u65F6\u7A81\u51FA\u663E\u793A\u5F53\u524D\u884C\u3002","editor.configuration.codeLens":"\u63A7\u5236\u662F\u5426\u5728\u7F16\u8F91\u5668\u4E2D\u663E\u793A CodeLens\u3002","editor.configuration.suggest.showClasss":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u7C7B\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showColors":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u989C\u8272\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showConstants":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u5E38\u91CF\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showConstructors":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u6784\u9020\u51FD\u6570\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showCustomcolors":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u81EA\u5B9A\u4E49\u989C\u8272\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showDeprecated":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u5DF2\u542F\u7528\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showEnumMembers":'\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A "enumMember" \u5EFA\u8BAE\u3002',"editor.configuration.suggest.showEnums":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u679A\u4E3E\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showEvents":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u4E8B\u4EF6\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showFields":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u5B57\u6BB5\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showFiles":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u6587\u4EF6\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showFolders":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u6587\u4EF6\u5939\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showFunctions":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u51FD\u6570\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showInterfaces":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u63A5\u53E3\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showIssues":'\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A"\u95EE\u9898"\u5EFA\u8BAE\u3002',"editor.configuration.suggest.showKeywords":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u5173\u952E\u5B57\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showMethods":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u65B9\u6CD5\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showModules":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u6A21\u5757\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showOperators":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u64CD\u4F5C\u7B26\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showPropertys":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u5C5E\u6027\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showReferences":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u53C2\u8003\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showSnippets":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u7247\u6BB5\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showStructs":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u7ED3\u6784\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showTexts":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u6587\u672C\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showTypeParameters":'\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A "typeParameter" \u5EFA\u8BAE\u3002',"editor.configuration.suggest.showUnits":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u5355\u4F4D\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showUsers":'\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A"\u7528\u6237"\u5EFA\u8BAE\u3002',"editor.configuration.suggest.showValues":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u503C\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showVariables":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u53D8\u91CF\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.maxVisibleSuggestions":"\u63A7\u5236 IntelliSense \u5728\u663E\u793A\u6EDA\u52A8\u6761\u4E4B\u524D\u5C06\u663E\u793A\u7684\u5EFA\u8BAE\u6570\u91CF\uFF08\u6700\u591A 15 \u4E2A\uFF09\u3002","editor.configuration.suggest.details.visible":"\u63A7\u5236\u7F16\u8F91\u5668\u4EE3\u7801\u8865\u5168\u662F\u5426\u9ED8\u8BA4\u5C55\u5F00\u8BE6\u60C5\u4FE1\u606F","editor.configuration.suggest.filtered":"\u63A7\u5236\u662F\u5426\u5E94\u4ECE IntelliSense \u4E2D\u8FC7\u6EE4\u6389\u67D0\u4E9B\u5EFA\u8BAE\u7C7B\u578B\u3002\u53EF\u4EE5\u5728\u6B64\u5904\u627E\u5230\u4E00\u4EFD\u5EFA\u8BAE\u7C7B\u578B\u5217\u8868: https://code.visualstudio.com/docs/editor/intellisense#_types-of-completions.","editor.configuration.suggest.filtered.method":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `method` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.function":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `function` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.constructor":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `constructor` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.field":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `field` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.variable":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `variable` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.class":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `class` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.struct":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `struct` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.interface":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `interface` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.module":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `module` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.property":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `property` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.event":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `event` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.operator":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `operator` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.unit":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `unit` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.value":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `value` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.constant":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `constant` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.enum":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `enum` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.enumMember":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `enumMember` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.keyword":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `keyword` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.text":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `text` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.color":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `color` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.file":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `file` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.reference":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `reference` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.customcolor":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `customcolor` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.folder":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `folder` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.typeParameter":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `typeParameter` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.snippet":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `snippet` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.editor.gotoLocation.multiple":'\u63A7\u5236 "\u8F6C\u5230" \u547D\u4EE4\uFF08\u4F8B\u5982\u8F6C\u5230\u5B9A\u4E49\uFF09\u5728\u5B58\u5728\u591A\u4E2A\u76EE\u6807\u4F4D\u7F6E\u65F6\u7684\u884C\u4E3A\u3002',"editor.configuration.gotoLocation.multiple.peek":"\u5728\u901F\u89C8\u89C6\u56FE(Peek View)\u4E2D\u663E\u793A\u7ED3\u679C\u3002(\u9ED8\u8BA4)","editor.configuration.gotoLocation.multiple.gotoAndPeek":"\u8F6C\u5230\u4E3B\u7ED3\u679C\u5E76\u663E\u793A\u901F\u89C8\u89C6\u56FE(Peek View)\u3002","editor.configuration.gotoLocation.multiple.goto":"\u8F6C\u5230\u4E3B\u7ED3\u679C\uFF0C\u5E76\u5BF9\u5176\u4ED6\u7ED3\u679C\u542F\u7528\u65E0\u901F\u89C8\u5BFC\u822A","editor.configuration.experimental.stickyScroll.enabled":"\u5728\u7F16\u8F91\u5668\u9876\u90E8\u7684\u6EDA\u52A8\u8FC7\u7A0B\u4E2D\u663E\u793A\u5D4C\u5957\u7684\u5F53\u524D\u4F5C\u7528\u57DF\u3002","editor.configuration.maxTokenizationLineLength":"\u7531\u4E8E\u6027\u80FD\u539F\u56E0\uFF0C\u8D85\u8FC7\u8FD9\u4E2A\u957F\u5EA6\u7684\u884C\u5C06\u4E0D\u4F1A\u88AB\u6807\u8BC6\u3002","editor.configuration.codeActionsOnSave.organizeImports":"\u63A7\u5236\u662F\u5426\u5E94\u5728\u6587\u4EF6\u4FDD\u5B58\u65F6\u6574\u7406\u5BFC\u5165\uFF08Import\uFF09\u8BED\u53E5\u3002","editor.configuration.codeActionsOnSave.fixAll":"\u63A7\u5236\u662F\u5426\u5E94\u5728\u6587\u4EF6\u4FDD\u5B58\u65F6\u8FD0\u884C\u81EA\u52A8\u4FEE\u590D\u64CD\u4F5C\u3002","editor.configuration.codeActionsOnSave":"\u5728\u4FDD\u5B58\u65F6\u8FD0\u884C\u7684\u4EE3\u7801\u64CD\u4F5C\u7C7B\u578B","editor.configuration.codeActionsOnSaveTimeout":"\u5728\u6B64\u8D85\u65F6\u65F6\u95F4(\u6BEB\u79D2)\u4E4B\u540E\u4EE3\u7801\u64CD\u4F5C\u5C06\u88AB\u53D6\u6D88\u3002","editor.configuration.codeActionsOnSaveNotification":"\u4EE3\u7801\u64CD\u4F5C\u6267\u884C\u65F6\u662F\u5426\u5C55\u793A\u901A\u77E5\u4FE1\u606F","editor.configuration.quickSuggestionsDelay":"\u63A7\u5236\u663E\u793A\u667A\u80FD\u63D0\u793A\u7684\u5EF6\u8FDF\u65F6\u957F (\u6BEB\u79D2)\u3002","editor.configuration.tabSize":"\u63A7\u5236 Tab \u7F29\u8FDB\u7B49\u4E8E\u7684\u7A7A\u683C\u6570\u3002\u82E5\u542F\u7528 `#editor.detectIndentation#`\uFF0C\u8BE5\u8BBE\u7F6E\u53EF\u80FD\u4F1A\u88AB\u8986\u76D6","editor.configuration.fontWeight":'\u63A7\u5236\u5B57\u4F53\u7C97\u7EC6\uFF0C\u63A5\u6536 "normal" \u548C "bold" \u5173\u952E\u8BCD\u6216\u8005 1 \u5230 1000 \u6570\u503C\u3002',"editor.configuration.largeFileSize":"\u63A7\u5236\u8D85\u5927\u6587\u4EF6\u7684\u81EA\u5B9A\u4E49\u4F53\u79EF\u3002(\u5355\u4F4D\uFF1AB)","editor.configuration.preferredFormatter":"\u914D\u7F6E\u4F18\u5148\u4F7F\u7528\u7684\u683C\u5F0F\u5316\u5668\u3002","editor.configuration.wrapTab":"\u63A7\u5236\u5F53\u7F16\u8F91\u5668 Tab \u8D85\u8FC7\u53EF\u7528\u7A7A\u95F4\u65F6\uFF0C\u662F\u5426\u4F7F\u7528\u6362\u884C\u6765\u4EE3\u66FF\u6EDA\u52A8\u6A21\u5F0F\u3002","editor.configuration.enablePreviewFromCodeNavigation":"\u63A7\u5236\u5F53\u4EE3\u7801\u5BFC\u822A\u4ECE\u5176\u51FA\u53D1\u65F6\uFF0C\u7F16\u8F91\u5668\u662F\u5426\u4ECD\u5904\u4E8E\u9884\u89C8\u6A21\u5F0F\u3002","editor.configuration.formatOnSaveTimeout":"\u63A7\u5236\u4FDD\u5B58\u65F6\u683C\u5F0F\u5316\u7684\u8D85\u65F6\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09\u3002\u4EC5\u5F53 `#editor.formatOnSave#` \u542F\u7528\u65F6\u751F\u6548\u3002","editor.configuration.inlineSuggest.enabled":"\u63A7\u5236\u662F\u5426\u5728\u7F16\u8F91\u5668\u4E2D\u81EA\u52A8\u663E\u793A\u5185\u8054\u5EFA\u8BAE\u3002","editor.configuration.inlineSuggest.showToolbar":"\u63A7\u5236\u4F55\u65F6\u663E\u793A\u5185\u8054\u5EFA\u8BAE\u5DE5\u5177\u680F\u3002","editor.configuration.inlineSuggest.showToolbar.always":"\u6BCF\u5F53\u663E\u793A\u5185\u8054\u5EFA\u8BAE\u65F6\uFF0C\u5C31\u663E\u793A\u5185\u8054\u5EFA\u8BAE\u5DE5\u5177\u680F\u3002","editor.configuration.inlineSuggest.showToolbar.onHover":"\u5C06\u9F20\u6807\u60AC\u505C\u5728\u5185\u8054\u5EFA\u8BAE\u4E0A\u65F6\u663E\u793A\u5185\u8054\u5EFA\u8BAE\u5DE5\u5177\u680F\u3002","editor.configuration.inlineSuggest.showToolbar.never":"\u6C38\u4E0D\u663E\u793A\u5185\u8054\u5EFA\u8BAE\u5DE5\u5177\u680F\u3002","editor.configuration.hover.enabled":"\u63A7\u5236\u662F\u5426\u5728\u7F16\u8F91\u5668\u4E2D\u542F\u7528\u4EE3\u7801\u63D0\u793A\u3002","editor.configuration.hover.delay":"\u63A7\u5236\u4EE3\u7801\u63D0\u793A\u663E\u793A\u7684\u5EF6\u8FDF\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09\u3002","editor.configuration.hover.sticky":"\u63A7\u5236\u4EE3\u7801\u63D0\u793A\u662F\u5426\u5728\u9F20\u6807\u60AC\u505C\u65F6\u4FDD\u6301\u53EF\u89C1\u3002","editor.configuration.hover.hidingDelay":"\u63A7\u5236\u4EE3\u7801\u63D0\u793A\u9690\u85CF\u7684\u5EF6\u8FDF\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09\u3002\u9700\u8981 `editor.hover.sticky` \u8BBE\u7F6E\u4E3A true \u65F6\u751F\u6548\u3002","editor.configuration.hover.above":"\u4F18\u5148\u663E\u793A\u4EE3\u7801\u63D0\u793A\u5728\u884C\u4E0A\u65B9\uFF0C\u5982\u679C\u884C\u6709\u7A7A\u95F4\u3002","editor.configuration.autoSave":"\u63A7\u5236\u5982\u4F55\u81EA\u52A8\u4FDD\u5B58\u6587\u4EF6\u3002","editor.configuration.formatOnSave":"\u5728\u4FDD\u5B58\u65F6\u683C\u5F0F\u5316\u6587\u4EF6","editor.configuration.formatOnType":"\u63A7\u5236\u7F16\u8F91\u5668\u662F\u5728\u952E\u5165\u540E\u81EA\u52A8\u683C\u5F0F\u5316\u8BE5\u884C\u3002","editor.configuration.formatOnPaste":"\u63A7\u5236\u7F16\u8F91\u5668\u662F\u5426\u81EA\u52A8\u683C\u5F0F\u5316\u7C98\u8D34\u7684\u5185\u5BB9\u3002\u9700\u8981\u5F53\u524D\u6587\u4EF6\u6709\u4E00\u4E2A\u683C\u5F0F\u5316\u5DE5\u5177\u5E76\u4E14\u8BE5\u683C\u5F0F\u5316\u683C\u5C40\u5FC5\u987B\u80FD\u591F\u5728\u6587\u6863\u4E2D\u683C\u5F0F\u5316\u4E00\u4E2A\u8303\u56F4\u3002","editor.configuration.autoIndent":"\u63A7\u5236\u7F16\u8F91\u5668\u662F\u5426\u5E94\u8BE5\u5728\u7528\u6237\u952E\u5165\u3001\u7C98\u8D34\u6216\u79FB\u52A8\u884C\u65F6\u81EA\u52A8\u8C03\u6574\u7F29\u8FDB\u3002\u5FC5\u987B\u63D0\u4F9B\u5E26\u6709\u8BE5\u8BED\u8A00\u7F29\u8FDB\u89C4\u5219\u7684\u6269\u5C55\u3002","editor.configuration.autoSaveDelay":"\u63A7\u5236\u81EA\u52A8\u4FDD\u5B58\u7684\u5EF6\u8FDF\u65F6\u957F\uFF08\u6BEB\u79D2\uFF09\u3002\u4EC5\u5F53 `#editor.autoSave#` \u8BBE\u7F6E\u4E3A\u201C\u7F16\u8F91\u540E\u81EA\u52A8\u4FDD\u5B58\u201D\u65F6\u751F\u6548\u3002","editor.configuration.askIfDiff":"\u4FDD\u5B58\u6587\u4EF6\u65F6\u5982\u679C\u78C1\u76D8\u4E0A\u7684\u6587\u4EF6\u8F83\u65B0\uFF0C\u8FDB\u884C\u63D0\u793A\u624B\u52A8\u89E3\u51B3\u4FDD\u5B58\u51B2\u7A81\u3002","editor.configuration.forceReadOnly":"\u662F\u5426\u542F\u7528 \u53EA\u8BFB\u6A21\u5F0F","editor.configuration.bracketPairColorization.enabled":"\u63A7\u5236\u662F\u5426\u542F\u7528\u62EC\u53F7\u5BF9\u7740\u8272\u3002\u4F7F\u7528 \u201Cworkbench.colorCustomizations\u201D \u66FF\u4EE3\u62EC\u53F7\u7A81\u51FA\u663E\u793A\u989C\u8272\u3002","editor.configuration.guides.bracketPairs":"\u63A7\u5236\u662F\u5426\u542F\u7528\u62EC\u53F7\u5BF9\u6307\u5357\u3002","editor.configuration.mouseBackForwardToNavigate":"\u5141\u8BB8\u4F7F\u7528\u9F20\u6807\u6309\u94AE 4 \u548C 5 \u6765\u6267\u884C\u547D\u4EE4\u201CGo Back\u201D\u548C\u201CGo Forward\u201D\u3002","editor.configuration.previewMode":"\u4F7F\u7528\u9884\u89C8\u6A21\u5F0F\u6253\u5F00","editor.configuration.tokenColorCustomizations":"\u8986\u76D6\u5F53\u524D\u6240\u9009\u989C\u8272\u4E3B\u9898\u4E2D\u7684\u7F16\u8F91\u5668\u989C\u8272\u548C\u5B57\u4F53\u6837\u5F0F","editor.configuration.workbench.editorAssociations":'\u5C06 glob \u6A21\u5F0F\u914D\u7F6E\u5230\u7F16\u8F91\u5668(\u4F8B\u5982 `"*\u5341\u516D\u8FDB\u5236": "hexEditor.hexEdit"`)\u3002\u8FD9\u4E9B\u4F18\u5148\u987A\u5E8F\u9AD8\u4E8E\u9ED8\u8BA4\u884C\u4E3A\u3002',"editor.configuration.guides.indentation":"\u63A7\u5236\u7F16\u8F91\u5668\u662F\u5426\u663E\u793A\u7F29\u8FDB\u53C2\u8003\u7EBF\u3002","editor.configuration.guides.highlightActiveIndentation":"\u63A7\u5236\u662F\u5426\u7A81\u51FA\u663E\u793A\u7F16\u8F91\u5668\u4E2D\u6D3B\u52A8\u7684\u7F29\u8FDB\u53C2\u8003\u7EBF\u3002","editor.configuration.trimAutoWhitespace":"\u5220\u9664\u81EA\u52A8\u63D2\u5165\u7684\u5C3E\u968F\u7A7A\u767D\u7B26\u53F7\u3002","editor.configuration.unicodeHighlight.ambiguousCharacters":"\u63A7\u5236\u662F\u5426\u7A81\u51FA\u663E\u793A\u53EF\u80FD\u4E0E\u57FA\u672C ASCII \u5B57\u7B26\u6DF7\u6DC6\u7684\u5B57\u7B26\uFF0C\u4F46\u5F53\u524D\u7528\u6237\u533A\u57DF\u8BBE\u7F6E\u4E2D\u5E38\u89C1\u7684\u5B57\u7B26\u9664\u5916\u3002","editor.configuration.lightbulb.enabled":"\u5728\u7F16\u8F91\u5668\u4E2D\u542F\u7528\u4EE3\u7801\u64CD\u4F5C\u83DC\u5355\u3002","editor.configuration.lightbulb.enabled.off":"\u7981\u7528\u4EE3\u7801\u64CD\u4F5C\u83DC\u5355\u3002","editor.configuration.lightbulb.enabled.onCode":"\u5F53\u5149\u6807\u4E0E\u4EE3\u7801\u4E00\u8D77\u6392\u5217\u65F6\uFF0C\u663E\u793A\u4EE3\u7801\u64CD\u4F5C\u83DC\u5355\u3002","editor.configuration.lightbulb.enabled.on":"\u5F53\u5149\u6807\u4E0E\u4EE3\u7801\u4E00\u8D77\u6392\u5217\u6216\u5728\u7A7A\u7684\u884C\u65F6\uFF0C\u663E\u793A\u4EE3\u7801\u64CD\u4F5C\u83DC\u5355\u3002","diffEditor.configuration.renderSideBySide":"\u63A7\u5236\u5DEE\u5F02\u7F16\u8F91\u5668\u7684\u663E\u793A\u65B9\u5F0F\u3002","diffEditor.configuration.ignoreTrimWhitespace":"\u542F\u7528\u540E\uFF0C\u5DEE\u5F02\u7F16\u8F91\u5668\u7684\u524D\u5BFC\u548C\u5C3E\u968F\u7A7A\u767D\u5B57\u7B26\u5C06\u4F1A\u5FFD\u7565","diffEditor.action.toggleCollapseUnchangedRegions":"\u6298\u53E0\u672A\u66F4\u6539\u7684\u4EE3\u7801\u533A\u57DF","inlineSuggest.enabled":"\u63A7\u5236\u662F\u5426\u5728\u7F16\u8F91\u5668\u4E2D\u81EA\u52A8\u663E\u793A\u5185\u8054\u5EFA\u8BAE\u3002","view.component.renderedError":"\u89C6\u56FE\u7EC4\u4EF6\u6E32\u67D3\u5F02\u5E38","view.component.tryAgain":"\u91CD\u65B0\u52A0\u8F7D","test.title":"\u6D4B\u8BD5\u7BA1\u7406\u5668","test.result.runFinished":"\u6D4B\u8BD5\u8FD0\u884C\u5B8C\u6210\u4E8E {0}","test.task.unnamed":"\u672A\u547D\u540D\u4EFB\u52A1","test.results":"\u6D4B\u8BD5\u7ED3\u679C","menu.missing.command":"\u83DC\u5355{0} \u8981\u6267\u884C\u7684\u547D\u4EE4\u4E0D\u5B58\u5728\uFF1A{1}","menu.missing.altCommand":"\u83DC\u5355{0} \u8981\u6267\u884C\u7684\u547D\u4EE4(altCommand)\u4E0D\u5B58\u5728\uFF1A{1}","menu.dupe.command":"\u83DC\u5355{0} command({1}) \u548C alt({2}) \u6CE8\u518C\u91CD\u590D","command.category.developerTools":"\u5F00\u53D1\u4EBA\u5458\u5DE5\u5177","connection.start.rtt":"\u67E5\u770B\u901A\u4FE1\u5EF6\u8FDF","connection.stop.rtt":"\u5173\u95ED\u901A\u4FE1\u5EF6\u8FDF\u68C0\u67E5","debug.terminal.label":"\u521B\u5EFA Javascript Debug Terminal","debug.terminal.title":"\u8C03\u8BD5\u8FDB\u7A0B","workbench.action.tasks.runTask":"\u8FD0\u884C\u4EFB\u52A1","workbench.action.tasks.reRunTask":"\u6267\u884C\u4E0A\u6B21\u8FD0\u884C\u7684\u4EFB\u52A1","workbench.action.tasks.restartTask":"\u91CD\u65B0\u5F00\u59CB\u8FD0\u884C\u4E2D\u7684\u4EFB\u52A1","workbench.action.tasks.terminate":"\u7EC8\u6B62\u4EFB\u52A1","workbench.action.tasks.showTasks":"\u5C55\u793A\u4EFB\u52A1","workbench.action.tasks.showLog":"\u5C55\u793A\u4EFB\u52A1\u65E5\u5FD7","task.contribute":"\u8D21\u732E","task.cannotFindTask":"\u672A\u627E\u5230 {0} \u7684\u4EFB\u52A1\uFF0C\u6309\u56DE\u8F66\u952E\u8FD4\u56DE","comment.reply.count":"{0} \u4E2A\u8BC4\u8BBA","comment.reply.lastReply":"\u6700\u540E\u7531 {0} \u8BC4\u8BBA","walkthroughs.welcome":"\u6B22\u8FCE\u4F7F\u7528","walkthroughs.get.started":"\u6253\u5F00 `\u5165\u95E8` \u6F14\u793A","mergeEditor.reset":"\u91CD\u7F6E","mergeEditor.workbench.tab.name":"\u6B63\u5728\u5408\u5E76: {0}","mergeEditor.conflict.action.apply.confirm.title":"\u5F53\u524D\u6587\u4EF6\u8FD8\u6709\u672A\u5904\u7406\u7684\u51B2\u7A81\u6216\u53D8\u66F4\uFF0C\u662F\u5426\u5E94\u7528\u5E76\u4FDD\u5B58\u66F4\u6539\uFF1F","mergeEditor.conflict.action.apply.confirm.continue":"\u7EE7\u7EED\u5408\u5E76","mergeEditor.conflict.action.apply.confirm.complete":"\u786E\u8BA4\u4FDD\u5B58\u5E76\u66F4\u6539","mergeEditor.action.button.apply":"\u5E94\u7528\u66F4\u6539","mergeEditor.action.button.apply-and-stash":"\u5E94\u7528\u5E76\u6682\u5B58","mergeEditor.action.button.accept.left":"\u63A5\u53D7\u5DE6\u8FB9","mergeEditor.action.button.accept.right":"\u63A5\u53D7\u53F3\u8FB9","mergeEditor.open.3way":"3-way \u7F16\u8F91\u5668","mergeEditor.conflict.prev":"\u4E0A\u4E00\u5904\u51B2\u7A81","mergeEditor.conflict.next":"\u4E0B\u4E00\u5904\u51B2\u7A81","mergeEditor.conflict.ai.resolve.all":"AI \u89E3\u51B3","mergeEditor.conflict.ai.resolve.all.stop":"\u5168\u90E8\u505C\u6B62","mergeEditor.open.tradition":"\u6587\u672C\u7F16\u8F91\u5668","workbench.quickOpen.preserveInput":"\u662F\u5426\u5728 QuickOpen \u7684\u8F93\u5165\u6846\uFF08\u5305\u62EC\u547D\u4EE4\u9762\u677F\uFF09\u4E2D\u4FDD\u7559\u4E0A\u6B21\u8F93\u5165\u7684\u5185\u5BB9","aiNative.chat.ai.assistant.name":"AI \u7814\u53D1\u52A9\u624B","aiNative.chat.input.placeholder.default":"\u53EF\u4EE5\u95EE\u6211\u4EFB\u4F55\u95EE\u9898\uFF0C\u8F93\u5165 @ \u53EF\u5F15\u7528\u5185\u5BB9","aiNative.chat.stop.immediately":"\u6211\u5148\u4E0D\u60F3\u4E86\uFF0C\u6709\u9700\u8981\u53EF\u4EE5\u968F\u65F6\u95EE\u6211","aiNative.chat.error.response":"\u5F53\u524D\u4E0E\u6211\u4E92\u52A8\u7684\u4EBA\u592A\u591A\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\uFF0C\u611F\u8C22\u60A8\u7684\u7406\u89E3\u4E0E\u652F\u6301","aiNative.chat.code.insert":"\u63D2\u5165\u4EE3\u7801","aiNative.chat.code.copy":"\u590D\u5236\u4EE3\u7801","aiNative.chat.code.copy.success":"\u590D\u5236\u6210\u529F","aiNative.chat.expand.unfullscreen":"\u6536\u8D77","aiNative.chat.expand.fullescreen":"\u5C55\u5F00\u5168\u5C4F","aiNative.chat.enter.send":"Enter \u53D1\u9001","aiNative.chat.defaultContextFile":"\u5F53\u524D\u6587\u4EF6","aiNative.chat.defaultContextFolder":"\u5F53\u524D\u6587\u4EF6\u5939","aiNative.chat.thinking":"\u6DF1\u5EA6\u601D\u8003","aiNative.chat.imageUpload":"\u56FE\u7247\u4E0A\u4F20","aiNative.inline.chat.operate.chat.title":"Chat({0})","aiNative.inline.chat.operate.check.title":"\u91C7\u7EB3","aiNative.inline.chat.operate.thumbsup.title":"\u8D5E","aiNative.inline.chat.operate.thumbsdown.title":"\u8E29","aiNative.inline.chat.operate.loading.cancel":"\u6309 ESC \u53D6\u6D88","aiNative.inline.chat.input.placeholder.default":"\u8BF7\u8F93\u5165\u4F60\u7684\u610F\u56FE...(\u2191\u2193 \u5207\u6362\u5386\u53F2)","aiNative.inline.chat.generating.canceled":"Inline Chat \u5DF2\u505C\u6B62\u751F\u6210","aiNative.inline.hint.widget.placeholder":"\u6309 {0} \u5524\u8D77 Inline Chat","aiNative.inline.problem.fix.title":"AI \u4FEE\u590D","aiNative.inline.diff.accept":"\u91C7\u7EB3","aiNative.inline.diff.reject":"\u62D2\u7EDD","aiNative.resolve.conflict.dialog.afresh":"\u4F60\u786E\u5B9A\u8981\u91CD\u65B0\u751F\u6210\u5417\uFF1F","aiNative.resolve.conflict.dialog.detection":`\u68C0\u6D4B\u5230\u60A8\u5DF2\u505A\u4E86\u4FEE\u6539\uFF0C\u91CD\u65B0\u751F\u6210\u4F1A\u8986\u76D6\u6389
|
|
31736
|
-
\u60A8\u4FEE\u6539\u7684\u90E8\u5206\uFF0C\u662F\u5426\u786E\u8BA4\u8FDB\u884C\u91CD\u65B0\u751F\u6210\u3002`,"aiNative.resolve.conflict.message.not.processed.yet":"AI \u5DF2\u5904\u7406 {0} \u5904\u51B2\u7A81\uFF0C{1} \u5904\u51B2\u7A81\u6682\u672A\u5904\u7406\uFF08\u4ECD\u6807\u8BB0\u4E3A\u9EC4\u8272\u90E8\u5206\uFF09\uFF0C\u9700\u4EBA\u5DE5\u5904\u7406","aiNative.operate.discard.title":"\u4E22\u5F03","aiNative.operate.afresh.title":"\u91CD\u65B0\u751F\u6210","aiNative.operate.stop.title":"\u505C\u6B62","aiNative.operate.close.title":"\u5173\u95ED","aiNative.operate.clear.title":"\u6E05\u7A7A","aiNative.operate.tools.title":"MCP \u5DE5\u5177","aiNative.operate.newChat.title":"\u65B0\u5EFA\u804A\u5929","aiNative.operate.chatHistory.title":"\u804A\u5929\u5386\u53F2","aiNative.operate.chatHistory.searchPlaceholder":"\u8BF7\u641C\u7D22...","aiNative.operate.chatHistory.edit":"\u7F16\u8F91","aiNative.operate.chatHistory.delete":"\u5220\u9664","aiNative.chat.welcome.loading.text":"\u521D\u59CB\u5316\u4E2D...","aiNative.chat.ai.assistant.limit.message":"{0} \u6761\u6700\u65E9\u7684\u6D88\u606F\u56E0\u8F93\u5165 Tokens \u9650\u5236\u800C\u88AB\u4E22\u5F03","aiNative.inlineDiff.acceptAll":"\u63A5\u53D7\u5168\u90E8","aiNative.inlineDiff.rejectAll":"\u62D2\u7EDD\u5168\u90E8","aiNative.inlineDiff.reveal":"\u5728\u804A\u5929\u4E2D\u5C55\u793A","aiNative.inlineDiff.up":"\u4E0A\u4E00\u5904\u53D8\u66F4","aiNative.inlineDiff.down":"\u4E0B\u4E00\u5904\u53D8\u66F4","aiNative.inlineDiff.right":"\u4E0B\u4E00\u5904\u6587\u4EF6","aiNative.inlineDiff.left":"\u4E0A\u4E00\u5904\u6587\u4EF6","aiNative.inlineDiff.noMoreChangesUp":"\u9876\u90E8\u6CA1\u6709\u66F4\u591A\u53D8\u66F4\u4E86","aiNative.inlineDiff.noMoreChangesDown":"\u5E95\u90E8\u6CA1\u6709\u66F4\u591A\u53D8\u66F4\u4E86","aiNative.chat.session.max":"\u6700\u591A\u53EA\u80FD\u521B\u5EFA {0} \u4E2A\u804A\u5929","preference.ai.native.inlineChat.title":"Inline Chat","preference.ai.native.chat.title":"Chat","preference.ai.native.interface.quick.title":"\u63A5\u53E3\u5FEB\u901F\u8DF3\u8F6C","preference.ai.native.interface.quick.navigation":"\u70B9\u51FB\u7F16\u8F91\u5668\u5DE6\u4FA7\u56FE\u6807\u5FEB\u901F\u8DF3\u8F6C\u5230\u63A5\u53E3\u5B9E\u73B0","preference.ai.native.interface.quick.navigation.hover":"\u8DF3\u8F6C\u5230\u5B9E\u73B0","preference.ai.native.inlineChat.auto.visible":"\u662F\u5426\u5728\u9009\u4E2D\u4EE3\u7801\u7247\u6BB5\u65F6\u81EA\u52A8\u663E\u793A Inline Chat?","preference.ai.native.inlineChat.codeAction.enabled":"\u662F\u5426\u542F\u7528\u5728\u9009\u4E2D\u4EE3\u7801\u7247\u6BB5\u65F6\u663E\u793A Inline Chat \u76F8\u5173\u7684 Code Actions?","preference.ai.native.chat.visible.type":"\u63A7\u5236 Chat \u9762\u677F\u9ED8\u8BA4\u7684\u5C55\u793A\u65B9\u5F0F","preference.ai.native.inlineDiff.preview.mode":"Inline Diff \u7684\u9884\u89C8\u6A21\u5F0F","preference.ai.native.inlineDiff.preview.mode.sideBySide":"\u5728\u7F16\u8F91\u5668\u5F53\u4E2D\u4EE5\u5DE6\u53F3 diff \u9762\u677F\u7684\u65B9\u5F0F\u5C55\u793A","preference.ai.native.inlineDiff.preview.mode.inlineLive":"\u5728\u7F16\u8F91\u5668\u5F53\u4E2D\u4EE5\u6D41\u5F0F\u6E32\u67D3\u7684\u65B9\u5F0F\u5C55\u793A","preference.ai.native.intelligentCompletions.title":"\u667A\u80FD\u8865\u5168","preference.ai.native.intelligentCompletions.promptEngineering.enabled":"\u662F\u5426\u542F\u7528\u63D0\u793A\u8BCD\u5DE5\u7A0B\uFF0C\u4E00\u4E9B LLM \u6A21\u578B\u5728\u63D0\u793A\u8BCD\u5DE5\u7A0B\u4E0A\u53EF\u80FD\u8868\u73B0\u4E0D\u4F73\u3002","preference.ai.native.intelligentCompletions.debounceTime":"\u667A\u80FD\u8865\u5168\u7684\u5EF6\u8FDF\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09","preference.ai.native.intelligentCompletions.cache.enabled":"\u662F\u5426\u542F\u7528\u667A\u80FD\u8865\u5168\u7684\u7F13\u5B58","preference.ai.native.intelligentCompletions.alwaysVisible":"\u662F\u5426\u603B\u662F\u5C55\u793A\u667A\u80FD\u8865\u5168","preference.ai.native.codeEdits.title":"\u667A\u80FD\u6539\u5199","preference.ai.native.codeEdits.lintErrors":"\u662F\u5426\u5728\u53D1\u751F Lint Error \u65F6\u89E6\u53D1\u667A\u80FD\u6539\u5199","preference.ai.native.codeEdits.lineChange":"\u662F\u5426\u5728\u5149\u6807\u884C\u53F7\u53D1\u751F\u53D8\u5316\u65F6\u89E6\u53D1\u667A\u80FD\u6539\u5199","preference.ai.native.codeEdits.typing":"\u662F\u5426\u5728\u5185\u5BB9\u53D1\u751F\u53D8\u5316\u65F6\u89E6\u53D1\u667A\u80FD\u6539\u5199","preference.ai.native.codeEdits.renderType":"\u667A\u80FD\u6539\u5199\u6E32\u67D3\u65B9\u5F0F","preference.ai.native.chat.system.prompt":"\u9ED8\u8BA4\u804A\u5929\u7CFB\u7EDF\u63D0\u793A\u8BCD","webview.webviewTagUnavailable":"\u975E Electron \u73AF\u5883\u4E0D\u652F\u6301 webview \u6807\u7B7E\uFF0C\u8BF7\u4F7F\u7528 iframe \u6807\u7B7E","notebook.kernel.panel.empty":"\u6682\u65E0\u5185\u5BB9","notebook.kernel.panel.title":"\u8FD0\u884C\u7684\u7EC8\u7AEF\u548C\u5185\u6838","notebook.kernel.panel.opened.pages":"\u5DF2\u5F00\u542F\u7684\u6807\u7B7E\u9875","notebook.kernel.panel.running.kernels":"\u8FD0\u884C\u7684\u5185\u6838","notebook.kernel.close.all.confirmation":"\u4F60\u786E\u5B9A\u8981\u5173\u95ED\u5168\u90E8\u5417\uFF1F","notebook.variable.panel.title":"\u53D8\u91CF\u68C0\u67E5\u5668","notebook.variable.panel.unsupported":"\u8BE5\u6587\u4EF6\u683C\u5F0F\u6682\u4E0D\u652F\u6301\u53D8\u91CF\u68C0\u67E5","notebook.variable.panel.refresh.success":"\u53D8\u91CF\u5237\u65B0\u6210\u529F","notebook.variable.panel.refresh.error":"\u53D8\u91CF\u5237\u65B0\u5931\u8D25","notebook.variable.panel.search.placeholder":"\u8BF7\u8F93\u5165\u53D8\u91CF\u540D\u79F0\u641C\u7D22","notebook.variable.panel.show.detail":"\u67E5\u770B\u8BE6\u60C5",...r.browserViews,...o.editorLocalizations,...c.zhCN,"preference.ai.native.llm.apiSettings.title":"\u5927\u6A21\u578B API \u8BBE\u7F6E","preference.ai.native.llm.model.id":"\u6A21\u578B ID","preference.ai.native.deepseek.apiKey":"Deepseek API \u5BC6\u94A5","preference.ai.native.deepseek.apiKey.description":"Deepseek \u8BED\u8A00\u6A21\u578B\u7684 API \u5BC6\u94A5","preference.ai.native.anthropic.apiKey":"Anthropic API \u5BC6\u94A5","preference.ai.native.anthropic.apiKey.description":"Anthropic \u8BED\u8A00\u6A21\u578B\u7684 API \u5BC6\u94A5","preference.ai.native.openai.apiKey":"OpenAI API \u5BC6\u94A5","preference.ai.native.openai.apiKey.description":"OpenAI \u517C\u5BB9\u8BED\u8A00\u6A21\u578B\u7684 API \u5BC6\u94A5","preference.ai.native.openai.baseURL":"OpenAI Base URL","preference.ai.native.openai.baseURL.description":"OpenAI \u517C\u5BB9\u8BED\u8A00\u6A21\u578B\u7684 Base URL","preference.ai.native.contextWindow":"\u4E0A\u4E0B\u6587\u7A97\u53E3","preference.ai.native.contextWindow.description":"\u4E0A\u4E0B\u6587\u7A97\u53E3\u7684\u6700\u5927Token\u6570","preference.ai.native.maxTokens":"\u6700\u5927\u8F93\u51FA","preference.ai.native.maxTokens.description":"\u6700\u5927\u8F93\u51FAToken\u6570","preference.ai.native.mcp.settings.title":"MCP \u670D\u52A1\u5668\u8BBE\u7F6E","preference.ai.native.mcp.servers":"MCP \u670D\u52A1\u5668","preference.ai.native.mcp.servers.description":"\u914D\u7F6E MCP (Model Context Protocol) \u670D\u52A1\u5668","preference.ai.native.mcp.servers.name.description":"MCP \u670D\u52A1\u5668\u540D\u79F0","preference.ai.native.mcp.servers.command.description":"\u542F\u52A8 MCP \u670D\u52A1\u5668\u7684\u547D\u4EE4","preference.ai.native.mcp.servers.args.description":"MCP \u670D\u52A1\u5668\u7684\u547D\u4EE4\u884C\u53C2\u6570","preference.ai.native.mcp.servers.env.description":"MCP \u670D\u52A1\u5668\u7684\u73AF\u5883\u53D8\u91CF","preference.ai.native.mcp.servers.type.description":"MCP \u670D\u52A1\u5668\u8FDE\u63A5\u7C7B\u578B","preference.ai.native.mcp.servers.type.stdio":"Stdio \u8FDE\u63A5","preference.ai.native.mcp.servers.type.sse":"SSE \u8FDE\u63A5","ai.native.mcp.terminal.command":"\u547D\u4EE4","ai.native.mcp.terminal.output":"\u8F93\u51FA","ai.native.mcp.terminal.allow-question":"\u662F\u5426\u5141\u8BB8\u8FD0\u884C\u547D\u4EE4?","ai.native.mcp.terminal.allow":"\u5141\u8BB8","ai.native.mcp.terminal.deny":"\u62D2\u7EDD","ai.native.mcp.name":"\u540D\u79F0:","ai.native.mcp.command":"\u547D\u4EE4:","ai.native.mcp.args":"\u53C2\u6570:","ai.native.mcp.env":"\u73AF\u5883\u53D8\u91CF:","ai.native.mcp.type":"\u7C7B\u578B:","ai.native.mcp.stdio":"Command","ai.native.mcp.sse":"SSE","ai.native.mcp.buttonSave":"\u6DFB\u52A0","ai.native.mcp.buttonUpdate":"\u66F4\u65B0","ai.native.mcp.buttonCancel":"\u53D6\u6D88","ai.native.mcp.addMCPServer.title":"\u6DFB\u52A0 MCP \u670D\u52A1\u5668","ai.native.mcp.editMCPServer.title":"\u7F16\u8F91 MCP \u670D\u52A1\u5668","ai.native.mcp.serverHost.placeHolder":"\u8F93\u5165 SSE URL","ai.native.mcp.command.placeHolder":"\u8F93\u5165\u547D\u4EE4","ai.native.mcp.args.placeHolder":"\u8FD0\u884C\u53C2\u6570","ai.native.mcp.env.placeHolder":"KEY=value\uFF08\u6BCF\u884C\u4E00\u4E2A\uFF09","ai.native.mcp.name.placeHolder":"\u670D\u52A1\u5668\u540D\u79F0","ai.native.mcp.type.builtin":"\u5185\u7F6E","ai.native.mcp.type.sse":"SSE","ai.native.mcp.type.stdio":"\u547D\u4EE4","ai.native.mcp.serverNameExists":'\u670D\u52A1\u540D\u79F0 "{0}" \u5DF2\u5B58\u5728',"ai.native.mcp.name.isRequired":"\u670D\u52A1\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A","ai.native.mcp.command.isRequired":"\u547D\u4EE4\u4E0D\u80FD\u4E3A\u7A7A","ai.native.mcp.serverHost.isRequired":"SSE URL \u4E0D\u80FD\u4E3A\u7A7A","ai.native.mcp.manage.connections":"\u7BA1\u7406\u4F60\u7684 MCP \u670D\u52A1\u5668\u8FDE\u63A5","ai.native.mcp.enabled":"\u5DF2\u542F\u7528","ai.native.mcp.disabled":"\u5DF2\u7981\u7528","ai.native.mcp.enable.title":"\u542F\u52A8\u8BE5\u670D\u52A1","ai.native.mcp.disable.title":"\u505C\u6B62\u8BE5\u670D\u52A1","ai.native.mcp.tool.arguments":"\u53C2\u6570","ai.native.mcp.tool.results":"\u8FD4\u56DE"}}},10199:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),e(85608).__exportStar(e(32581),t)},21774:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KeymapsModule=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(25067),p=e(48644),v=e(85448);let m=class extends o.BrowserModule{constructor(){super(...arguments),this.providers=[{token:c.IKeymapService,useClass:v.KeymapService},p.KeymapsContribution]}};t.KeymapsModule=m,t.KeymapsModule=m=n.__decorate([(0,r.Injectable)()],m)},2312:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KeymapsParser=t.keymapsSchema=void 0;const n=e(85608),r=n.__importDefault(e(82174)),o=n.__importStar(e(23304)),c=e(76003);t.keymapsSchema={type:"array",items:{type:"object",properties:{key:{type:"string"},keybinding:{type:"string",deprecated:!0},command:{type:"string"},context:{type:"string"},when:{type:"string"},args:{}},required:["command"],optional:["key","keybinding","when","args"],additionalProperties:!1}};let p=class{constructor(){this.validate=new r.default({jsonPointers:!0}).compile(t.keymapsSchema)}parse(m,_){const s=o.stripComments(m),g=_?[]:void 0,l=o.parse(s,g);if(g&&_)for(const h of g)_.push(`${this.printParseErrorCode(h.error)} at ${h.offset} offset of ${h.length} length`);if(this.validate(l))return l;if(_&&this.validate.errors)for(const h of this.validate.errors)_.push(`${h.message} at ${h.dataPath}`);return[]}printParseErrorCode(m){return o.printParseErrorCode(m)}};t.KeymapsParser=p,t.KeymapsParser=p=n.__decorate([(0,c.Injectable)(),n.__metadata("design:paramtypes",[])],p)},48644:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KeymapsContribution=t.KEYMAP_COMMANDS=t.KeymapsContextMenu=t.KeymapsResourceProvider=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(93899),p=e(57517),v=e(42933),m=e(97821),_=e(25067),s=e(34879),g="keymaps-preview";let l=class extends o.WithEventBus{constructor(){super(),this.scheme=_.KEYMAPS_SCHEME}provideResource(f){return{supportsRevive:!0,name:(0,o.localize)("keymaps.tab.name"),icon:(0,o.getIcon)("setting"),uri:f}}provideResourceSubname(f,a){return null}async shouldCloseResource(f,a){return!0}};t.KeymapsResourceProvider=l,t.KeymapsResourceProvider=l=n.__decorate([(0,r.Injectable)(),n.__metadata("design:paramtypes",[])],l);var h;(function(E){E.KEYMAPS="2_keymaps"})(h||(t.KeymapsContextMenu=h={}));var u;(function(E){const f="keymaps";E.OPEN_SOURCE_FILE={id:"keymaps.open.source",label:"%keymaps.editorTitle.openSource%",category:f}})(u||(t.KEYMAP_COMMANDS=u={}));let d=class{registerCommands(f){f.registerCommand(o.COMMON_COMMANDS.OPEN_KEYMAPS,{isEnabled:()=>!0,execute:async()=>{await this.keymapService.open()}}),f.registerCommand(u.OPEN_SOURCE_FILE,{execute:async()=>{this.keymapService.openResource()}}),f.registerCommand(o.KEYBOARD_COMMANDS.CHOOSE_KEYBOARD_LAYOUT,{execute:()=>{this.chooseLayout()}})}registerMenus(f){f.registerMenuItem(c.MenuId.SettingsIconMenu,{command:o.COMMON_COMMANDS.OPEN_KEYMAPS.id,group:h.KEYMAPS}),f.registerMenuItem(c.MenuId.EditorTitle,{command:u.OPEN_SOURCE_FILE.id,iconClass:(0,o.getIcon)("open"),group:"navigation",order:4,when:`resourceScheme == ${_.KEYMAPS_SCHEME}`}),f.registerMenuItem(c.MenuId.EditorTitle,{command:o.COMMON_COMMANDS.OPEN_KEYMAPS.id,iconClass:(0,o.getIcon)("open"),group:"navigation",order:4,when:"resourceFilename =~ /keymaps.json/"})}registerKeybindings(f){f.registerKeybinding({command:o.COMMON_COMMANDS.OPEN_KEYMAPS.id,keybinding:"ctrlcmd+K ctrlcmd+S"})}onStart(){this.keymapService.init()}registerResource(f){f.registerResourceProvider(this.keymapsResourceProvider)}registerEditorComponent(f){f.registerEditorComponent({component:s.KeymapsView,uid:g,scheme:_.KEYMAPS_SCHEME}),f.registerEditorComponentResolver(_.KEYMAPS_SCHEME,(a,b,y)=>{y([{type:p.EditorOpenType.component,componentId:g}])})}async chooseLayout(){const f=this.layoutProvider.currentLayoutData,a={label:(0,o.localize)("keyboard.autoDetect.label"),description:f&&this.layoutProvider.currentLayoutSource!=="user-choice"?(0,o.formatLocalize)("keyboard.autoDetect.description",(0,o.getKeyboardLayoutId)(f.layout)):void 0,detail:(0,o.localize)("keyboard.autoDetect.detail"),value:"autodetect"},b=this.layoutProvider.allLayoutData.map(S=>this.toQuickPickValue(S,f===S));let y;y=[a,...b];const A=await this.quickPickService.show(y,{placeholder:"Choose a keyboard layout"});if(A)return this.layoutProvider.setLayoutData(A)}toQuickPickValue(f,a){return{label:(0,o.getKeyboardLayoutId)(f.layout),value:f}}};t.KeymapsContribution=d,n.__decorate([(0,r.Autowired)(m.QuickPickService),n.__metadata("design:type",Object)],d.prototype,"quickPickService",void 0),n.__decorate([(0,r.Autowired)(o.KeyboardNativeLayoutService),n.__metadata("design:type",Object)],d.prototype,"layoutProvider",void 0),n.__decorate([(0,r.Autowired)(v.IFileServiceClient),n.__metadata("design:type",Object)],d.prototype,"filesystem",void 0),n.__decorate([(0,r.Autowired)(l),n.__metadata("design:type",l)],d.prototype,"keymapsResourceProvider",void 0),n.__decorate([(0,r.Autowired)(_.IKeymapService),n.__metadata("design:type",Object)],d.prototype,"keymapService",void 0),t.KeymapsContribution=d=n.__decorate([(0,o.Domain)(o.CommandContribution,o.KeybindingContribution,o.ClientAppContribution,p.BrowserEditorContribution,c.MenuContribution)],d)},85448:(x,t,e)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.KeymapService=void 0;const r=e(85608),o=r.__importStar(e(39050)),c=e(76003),p=e(41869),v=e(68969),m=e(14951),_=e(25067),s=e(2312);let g=n=class{constructor(){this.keymapChangeEmitter=new p.Emitter,this.convertKeySequence=[],this.toUnregisterUserKeybindingMap=new Map,this.toRestoreDefaultKeybindingMap=new Map,this.searchDelayer=new p.ThrottledDelayer(n.DEFAULT_SEARCH_DELAY),this.disposableCollection=new p.DisposableCollection,this._whenReadyDeferred=new p.Deferred,this.fuzzyOptions={pre:"<match>",post:"</match>"},this.reconcileQueue=new p.Throttler,this.keybindings=[],this.updateKeybindings=()=>{this.currentSearchValue?this.doSearchKeybindings(this.currentSearchValue):(0,p.runWhenIdle)(()=>{this.keybindings=this.getKeybindingItems(),this.keymapChangeEmitter.fire(this.keybindings)})},this.setKeybinding=(h,u)=>this.progressService.withProgress({location:p.ProgressLocation.Notification},d=>new Promise((E,f)=>{d.report({message:(0,p.localize)("keymaps.keybinding.loading"),increment:0,total:100});const a=this.storeKeybindings||[];let b=!1;for(const y of a){const A={when:y.when,command:y.command,keybinding:y.key};if(y.command===u.command){b=!0,this.unregisterUserKeybinding(A);const S=this.toUniqueKey(h),w=this.toRestoreDefaultKeybindingMap.get(S);if(w){const T=this.toUniqueKey(u);this.toRestoreDefaultKeybindingMap.delete(S),this.toRestoreDefaultKeybindingMap.set(T,w)}y.key=u.keybinding,this.registerUserKeybinding({...A,priority:p.KeybindingWeight.WorkbenchContrib*100})}}if(!b){const y=this.keybindings.find(S=>S.id===u.command&&this.getRaw(S.when)===u.when);if(y&&y.keybinding){this.unregisterDefaultKeybinding({when:this.getRaw(y.when),command:y.id,keybinding:this.getRaw(y.keybinding)});const S=this.toUniqueKey(h),w=this.toRestoreDefaultKeybindingMap.get(S);if(w){const T=this.toUniqueKey(u);this.toRestoreDefaultKeybindingMap.delete(S),this.toRestoreDefaultKeybindingMap.set(T,w)}}const A={when:this.getWhen(u),command:u.command,key:u.keybinding};a.push(A),this.registerUserKeybinding(u)}return this.saveKeybinding(a).then(()=>{E(void 0),d.report({message:(0,p.localize)("keymaps.keybinding.success"),increment:99})}).catch(y=>{f(y),d.report({message:(0,p.localize)("keymaps.keybinding.fail"),increment:99})}).finally(()=>{setTimeout(()=>{d.report({increment:100})},3e3)})}),()=>{}),this.covert=h=>this.keybindingService.convert(h," "),this.clearCovert=()=>this.keybindingService.clearConvert(),this.resetKeybinding=async h=>{if(!this.resource)return;const d=this.storeKeybindings.filter(E=>E.command!==h.command);return this.unregisterUserKeybinding(h),this.restoreDefaultKeybinding(h),this.saveKeybinding(d)},this.fixed=async()=>{this.commandService.executeCommand(p.EDITOR_COMMANDS.OPEN_RESOURCE.id,new p.URI().withScheme(_.KEYMAPS_SCHEME),{preview:!1})},this.searchKeybindings=h=>{this.currentSearchValue=h,this.searchDelayer.isTriggered()||this.searchDelayer.cancel(),this.searchDelayer.trigger(async()=>{this.doSearchKeybindings(this.currentSearchValue)})},this.isSearching=!1,this.doSearchKeybindings=h=>{h?this.isSearching=!0:this.isSearching=!1;const u=this.getKeybindingItems(),d=[];u.forEach(E=>{const f=["id","command","keybinding","when","context","source"];let a=!1;for(const b of f){const y=E[b];if(y){const A=o.match(h,y,this.fuzzyOptions);if(A)E[b]=A.rendered,a=!0;else if(b==="keybinding"){const S=h.split("+"),w=y.split(" "),T=[0];let D=[];w.length>1?w.forEach(M=>{const R=M.split("+");T.push(R.length+T[-1]),D.push(...R)}):D=y.split("+"),T.shift();const I=[...D];let O=0;if(S.forEach(M=>{let R={rendered:"",score:0},P=-1;if(y){D.forEach(F=>{const L=o.match(M,F,this.fuzzyOptions);L&&L.score>R.score&&(R=L,P=I.indexOf(F))});const k=R.rendered;k&&(P>-1&&(I[P]=k),D.splice(P,1,""),O+=1)}}),O===S.length){if(T.length>0){const M="";I.forEach((R,P)=>{P===0?M.concat(R):T.indexOf(P)!==-1?M.concat(" "+R):M.concat("+"+R)}),E[b]=M}E[b]=I.join("+"),a=!0}}}}a&&d.push(E)}),this.keybindings=d,this.keymapChangeEmitter.fire(this.keybindings)},this.validateKeybinding=(h,u)=>{if(!u)return(0,p.localize)("keymaps.keybinding.require");try{const d={command:this.isSearching?this.getRaw(h.command):h.command,when:this.isSearching?this.getRaw(h.when):h.when,keybinding:this.isSearching?this.getRaw(u):u};return h.keybinding===u?" ":this.keybindingRegistry.validateKeybindingInScope(d)}catch(d){return d}},this.detectKeybindings=(h,u)=>{if(!u)return[];try{if(h.keybinding===u)return[];const d=this.keybindings.filter(E=>this.getRaw(E.keybinding)===u);if(d.length>0)return d.map(E=>{const f=this.commandRegistry.getCommand(this.getRaw(E.command)),a=this.storeKeybindings.find(b=>f&&b.command===f.id);return E.when=this.getRaw(E.when),E.keybinding=this.getRaw(E.keybinding),{id:f?f.id:this.getRaw(E.command),command:(f?f.label||f.id:E.command)||"",when:this.keybindingService.convertMonacoWhen(E.when),keybinding:this.getRaw(E.keybinding),source:a?this.getScope(p.KeybindingScope.USER):this.getScope(p.KeybindingScope.DEFAULT)}})}catch(d){this.logger.error(d)}return[]}}get onDidKeymapChanges(){return this.keymapChangeEmitter.event}get storeKeybindings(){return this._storeKeybindings&&this._storeKeybindings.map(h=>({...h,command:this.getValidateCommand(h.command),key:h.key||h.keybinding}))}set storeKeybindings(h){this._storeKeybindings=h}get whenReady(){return this._whenReadyDeferred.promise}async init(){await this.reconcile();const h=await this.filesystem.watchFileChanges(n.KEYMAP_FILE_URI);this.disposableCollection.push(h),h.onFilesChanged(()=>{this.reconcileQueue.queue(this.reconcile.bind(this))}),this._whenReadyDeferred.resolve()}async openResource(){if(!this.resource||!this.resource.uri)return;const h=await this.resource.uri;if(!h)return;if(!await this.filesystem.access(h)){const d=await this.filesystem.createFile(h),E=await this.filesystem.setContent(d,`{
|
|
31735
|
+
\u662F\u5426\u8981\u9000\u51FA?`,"authentication.signOutMessageSimple":"\u662F\u5426\u8981\u9000\u51FA {0}?","authentication.useOtherAccount":"\u4F7F\u7528\u5176\u4ED6\u8D26\u6237\u767B\u5F55","authentication.selectAccount":"\u6269\u5C55 '{0}' \u5C06\u8981\u8BBF\u95EE {1} \u8D26\u6237","authentication.getSessionPlaceholder":"\u9009\u62E9\u4E00\u4E2A\u8D26\u6237\u7ED9 '{0}' \u4F7F\u7528","authentication.confirmAuthenticationAccess":"\u6269\u5C55 '{0}' \u5C06\u8981\u4F7F\u7528 '{2}' \u8BBF\u95EE {1}","authentication.confirmLogin":"\u6269\u5C55 '{0}' \u5C06\u8981\u4F7F\u7528 {1} \u767B\u5F55","authentication.confirmReLogin":"\u6269\u5C55 '{0}' \u5C06\u8981\u4F7F\u7528 {1} \u518D\u6B21\u767B\u5F55","authentication.signInRequests":"\u767B\u5F55 {0}","authentication.signOut":"\u9000\u51FA {0}","authentication.noAccounts":"\u76EE\u524D\u6CA1\u6709\u767B\u5F55\u4EFB\u4F55\u8D26\u6237","authentication.signedOut":"\u6210\u529F\u9000\u51FA","refactoring-changes.ask.1.create":"\u6269\u5C55 '{0} ' \u5E0C\u671B\u901A\u8FC7\u65B0\u5EFA\u6B64\u6587\u4EF6\u6765\u8FDB\u884C\u91CD\u6784\u66F4\u6539","refactoring-changes.ask.1.copy":"\u6269\u5C55 '{0} ' \u5E0C\u671B\u901A\u8FC7\u590D\u5236\u6B64\u6587\u4EF6\u6765\u8FDB\u884C\u91CD\u6784\u66F4\u6539","refactoring-changes.ask.1.move":"\u6269\u5C55 '{0} ' \u5E0C\u671B\u901A\u8FC7\u79FB\u52A8\u6B64\u6587\u4EF6\u6765\u8FDB\u884C\u91CD\u6784\u66F4\u6539","refactoring-changes.ask.1.delete":"\u6269\u5C55 '{0} ' \u5E0C\u671B\u901A\u8FC7\u5220\u9664\u6B64\u6587\u4EF6\u6765\u8FDB\u884C\u91CD\u6784\u66F4\u6539","refactoring-changes.ask.N.create":"{0} \u4E2A\u63D2\u4EF6\u5E0C\u671B\u901A\u8FC7\u65B0\u5EFA\u6B64\u6587\u4EF6\u6765\u8FDB\u884C\u91CD\u6784\u66F4\u6539","refactoring-changes.ask.N.copy":"{0} \u4E2A\u63D2\u4EF6\u5E0C\u671B\u901A\u8FC7\u590D\u5236\u6B64\u6587\u4EF6\u6765\u8FDB\u884C\u91CD\u6784\u66F4\u6539","refactoring-changes.ask.N.move":"{0} \u4E2A\u63D2\u4EF6\u5E0C\u671B\u901A\u8FC7\u79FB\u52A8\u6B64\u6587\u4EF6\u6765\u8FDB\u884C\u91CD\u6784\u66F4\u6539","refactoring-changes.ask.N.delete":"{0} \u4E2A\u63D2\u4EF6\u5E0C\u671B\u901A\u8FC7\u5220\u9664\u6B64\u6587\u4EF6\u6765\u8FDB\u884C\u91CD\u6784\u66F4\u6539","refactoring-changes.msg.showPreview":"\u663E\u793A\u9884\u89C8","refactoring-changes.msg.skipChanges":"\u8DF3\u8FC7\u66F4\u6539","keyboard.chooseKeyboardLayout":"\u9009\u62E9\u5E03\u5C40\u6587\u4EF6\u914D\u7F6E","keyboard.autoDetect.label":"\u81EA\u52A8\u68C0\u6D4B","keyboard.autoDetect.description":"\uFF08\u5F53\u524D\uFF1A'{0} '\uFF09","keyboard.autoDetect.detail":"\u5C1D\u8BD5\u901A\u8FC7\u6D4F\u89C8\u5668\u53CA\u6309\u952E\u4FE1\u606F\u8FDB\u884C\u5E03\u5C40\u81EA\u52A8\u68C0\u6D4B","editor.configuration.suggest.filterGraceful":"\u63A7\u5236\u5BF9\u5EFA\u8BAE\u7684\u7B5B\u9009\u548C\u6392\u5E8F\u662F\u5426\u8003\u8651\u5C0F\u7684\u62FC\u5199\u9519\u8BEF\u3002","editor.configuration.suggest.insertMode":"\u63A7\u5236\u63A5\u53D7\u8865\u5168\u65F6\u662F\u5426\u8986\u76D6\u5355\u8BCD\u3002\u8BF7\u6CE8\u610F\uFF0C\u8FD9\u53D6\u51B3\u4E8E\u6269\u5C55\u9009\u62E9\u4F7F\u7528\u6B64\u529F\u80FD\u3002","editor.configuration.suggest.insertMode.insert":"\u63D2\u5165\u5EFA\u8BAE\u800C\u4E0D\u8986\u76D6\u5149\u6807\u53F3\u4FA7\u7684\u6587\u672C\u3002","editor.configuration.suggest.insertMode.replace":"\u63D2\u5165\u5EFA\u8BAE\u5E76\u8986\u76D6\u5149\u6807\u53F3\u4FA7\u7684\u6587\u672C\u3002","editor.configuration.suggest.localityBonus":"\u63A7\u5236\u6392\u5E8F\u65F6\u662F\u5426\u9996\u9009\u5149\u6807\u9644\u8FD1\u7684\u5B57\u8BCD\u3002","editor.configuration.suggest.maxVisibleSuggestions.dep":"\u6B64\u8BBE\u7F6E\u5DF2\u5F03\u7528\u3002\u73B0\u5728\u53EF\u4EE5\u8C03\u6574\u5EFA\u8BAE\u5C0F\u7EC4\u4EF6\u7684\u5927\u5C0F\u3002","editor.configuration.suggest.preview":"\u63A7\u5236\u662F\u5426\u5728\u7F16\u8F91\u5668\u4E2D\u9884\u89C8\u5EFA\u8BAE\u7ED3\u679C\u3002","editor.configuration.suggest.shareSuggestSelections":"\u63A7\u5236\u662F\u5426\u5728\u591A\u4E2A\u5DE5\u4F5C\u533A\u548C\u7A97\u53E3\u95F4\u5171\u4EAB\u8BB0\u5FC6\u7684\u5EFA\u8BAE\u9009\u9879(\u9700\u8981 `#editor.suggestSelection#`)\u3002","editor.configuration.suggest.showIcons":"\u63A7\u5236\u662F\u5426\u5728\u5EFA\u8BAE\u4E2D\u663E\u793A\u6216\u9690\u85CF\u56FE\u6807\u3002","editor.configuration.suggest.showInlineDetails":"\u63A7\u5236\u5EFA\u8BAE\u8BE6\u7EC6\u4FE1\u606F\u662F\u968F\u6807\u7B7E\u4E00\u8D77\u663E\u793A\u8FD8\u662F\u4EC5\u663E\u793A\u5728\u8BE6\u7EC6\u4FE1\u606F\u5C0F\u7EC4\u4EF6\u4E2D","editor.configuration.suggest.showStatusBar":"\u63A7\u5236\u5EFA\u8BAE\u5C0F\u90E8\u4EF6\u5E95\u90E8\u7684\u72B6\u6001\u680F\u7684\u53EF\u89C1\u6027\u3002","editor.configuration.suggest.snippetsPreventQuickSuggestions":"\u63A7\u5236\u6D3B\u52A8\u4EE3\u7801\u6BB5\u662F\u5426\u963B\u6B62\u5FEB\u901F\u5EFA\u8BAE\u3002","editor.configuration.suggestFontSize":"\u5EFA\u8BAE\u5C0F\u90E8\u4EF6\u7684\u5B57\u53F7\u3002\u5982\u679C\u8BBE\u7F6E\u4E3A `0`\uFF0C\u5219\u4F7F\u7528 `#editor.fontSize#` \u7684\u503C\u3002","editor.configuration.suggestLineHeight":"\u5EFA\u8BAE\u5C0F\u90E8\u4EF6\u7684\u884C\u9AD8\u3002\u5982\u679C\u8BBE\u7F6E\u4E3A `0`\uFF0C\u5219\u4F7F\u7528 `#editor.lineHeight#` \u7684\u503C\u3002\u6700\u5C0F\u503C\u4E3A 8\u3002","editor.configuration.suggestOnTriggerCharacters":"\u63A7\u5236\u5728\u952E\u5165\u89E6\u53D1\u5B57\u7B26\u540E\u662F\u5426\u81EA\u52A8\u663E\u793A\u5EFA\u8BAE\u3002","editor.configuration.acceptSuggestionOnEnterSmart":"\u4EC5\u5728\u5EFA\u8BAE\u505A\u51FA\u6587\u672C\u66F4\u6539\u65F6\uFF0C\u624D\u4F7F\u7528 `Enter` \u63A5\u53D7\u5EFA\u8BAE\u3002","editor.configuration.acceptSuggestionOnEnter":"\u63A7\u5236\u7F16\u8F91\u5668\u662F\u5426\u5E94\u8BE5\u5728 `Tab` \u952E\u4E4B\u5916\uFF0C\u8FD8\u4F7F\u7528 `Enter` \u952E\u6765\u63A5\u53D7\u5EFA\u8BAE\u3002\u8FD9\u6709\u52A9\u4E8E\u907F\u514D\u5728\u63D2\u5165\u65B0\u884C\u6216\u63A5\u53D7\u5EFA\u8BAE\u4E4B\u95F4\u7684\u6B67\u4E49\u3002","editor.configuration.acceptSuggestionOnCommitCharacter":"\u63A7\u5236\u662F\u5426\u5728\u4F7F\u7528\u63D0\u4EA4\u5B57\u7B26\u65F6\u63A5\u53D7\u5EFA\u8BAE\u3002\u4F8B\u5982\uFF0C\u5728 JavaScript \u4E2D\uFF0C\u5206\u53F7 (`;`) \u662F\u4E00\u4E2A\u63D0\u4EA4\u5B57\u7B26\uFF0C\u53EF\u4EE5\u63A5\u53D7\u4E00\u4E2A\u5EFA\u8BAE\u5E76\u952E\u5165\u8BE5\u5B57\u7B26\u3002","editor.configuration.snippetSuggestions.top":"\u5C06\u4EE3\u7801\u7247\u6BB5\u7684\u5EFA\u8BAE\u653E\u5728\u5176\u4ED6\u5EFA\u8BAE\u7684\u9876\u90E8\u3002","editor.configuration.snippetSuggestions.bottom":"\u5C06\u4EE3\u7801\u7247\u6BB5\u7684\u5EFA\u8BAE\u653E\u5728\u5176\u4ED6\u5EFA\u8BAE\u7684\u5E95\u90E8\u3002","editor.configuration.snippetSuggestions.inline":"\u5C06\u4EE3\u7801\u7247\u6BB5\u7684\u5EFA\u8BAE\u6DF7\u5408\u5728\u5176\u4ED6\u5EFA\u8BAE\u7684\u4E2D\u95F4\u3002","editor.configuration.snippetSuggestions.none":"\u4E0D\u5C55\u793A\u4EE3\u7801\u7247\u6BB5\u5EFA\u8BAE\u3002","editor.configuration.snippetSuggestions":"\u63A7\u5236\u4EE3\u7801\u7247\u6BB5\u662F\u5426\u4E0E\u5176\u4ED6\u5EFA\u8BAE\u4E00\u540C\u663E\u793A\u4EE5\u53CA\u5B83\u4EEC\u7684\u6392\u5E8F\u65B9\u5F0F\u3002","editor.configuration.wordBasedSuggestions":"\u63A7\u5236\u662F\u5426\u6839\u636E\u6587\u6863\u4E2D\u7684\u5B57\u8BCD\u8BA1\u7B97\u81EA\u52A8\u8865\u5168\u5217\u8868\u3002","editor.configuration.suggestSelection":"\u63A7\u5236\u5728\u5EFA\u8BAE\u5217\u8868\u4E2D\u5982\u4F55\u9884\u5148\u9009\u62E9\u5EFA\u8BAE\u3002","editor.configuration.suggestSelection.first":"\u59CB\u7EC8\u9009\u62E9\u7B2C\u4E00\u4E2A\u5EFA\u8BAE\u3002","editor.configuration.suggestSelection.recentlyUsed":"\u9009\u62E9\u6700\u8FD1\u7684\u5EFA\u8BAE\uFF0C\u9664\u975E\u8FDB\u4E00\u6B65\u952E\u5165\u9009\u62E9\u5176\u4ED6\u9879\u3002\u4F8B\u5982 `console. -> console.log`\uFF0C\u56E0\u4E3A\u6700\u8FD1\u8865\u5168\u8FC7 `log`\u3002","editor.configuration.suggestSelection.recentlyUsedByPrefix":"\u6839\u636E\u4E4B\u524D\u8865\u5168\u8FC7\u7684\u5EFA\u8BAE\u7684\u524D\u7F00\u6765\u8FDB\u884C\u9009\u62E9\u3002\u4F8B\u5982\uFF0C`co -> console`\u3001`con -> const`\u3002","editor.configuration.tabCompletion":"\u542F\u7528 Tab \u8865\u5168\u3002","editor.configuration.tabCompletion.off":"\u7981\u7528 Tab \u8865\u5168\u3002","editor.configuration.tabCompletion.on":"\u5728\u6309\u4E0B Tab \u952E\u65F6\u8FDB\u884C Tab \u8865\u5168\uFF0C\u5C06\u63D2\u5165\u6700\u4F73\u5339\u914D\u5EFA\u8BAE\u3002","editor.configuration.tabCompletion.onlySnippets":'\u5728\u524D\u7F00\u5339\u914D\u65F6\u8FDB\u884C Tab \u8865\u5168\u3002\u5728 "quickSuggestions" \u672A\u542F\u7528\u65F6\u4F53\u9A8C\u6700\u597D\u3002',"editor.configuration.editor.guides.bracketPairs":"\u63A7\u5236\u662F\u5426\u542F\u7528\u62EC\u53F7\u5BF9\u6307\u5357\u3002","editor.configuration.editor.guides.bracketPairsHorizontal":"\u63A7\u5236\u662F\u5426\u542F\u7528\u6C34\u5E73\u62EC\u53F7\u5BF9\u6307\u5357\u3002","editor.configuration.renderLineHighlight":"\u63A7\u5236\u7F16\u8F91\u5668\u7684\u5F53\u524D\u884C\u8FDB\u884C\u9AD8\u4EAE\u663E\u793A\u7684\u65B9\u5F0F\u3002","editor.configuration.renderLineHighlight.all":"\u540C\u65F6\u7A81\u51FA\u663E\u793A\u5BFC\u822A\u7EBF\u548C\u5F53\u524D\u884C\u3002","editor.configuration.renderLineHighlightOnlyWhenFocus":"\u63A7\u5236\u7F16\u8F91\u5668\u662F\u5426\u4EC5\u5728\u7126\u70B9\u5728\u7F16\u8F91\u5668\u65F6\u7A81\u51FA\u663E\u793A\u5F53\u524D\u884C\u3002","editor.configuration.codeLens":"\u63A7\u5236\u662F\u5426\u5728\u7F16\u8F91\u5668\u4E2D\u663E\u793A CodeLens\u3002","editor.configuration.suggest.showClasss":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u7C7B\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showColors":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u989C\u8272\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showConstants":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u5E38\u91CF\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showConstructors":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u6784\u9020\u51FD\u6570\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showCustomcolors":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u81EA\u5B9A\u4E49\u989C\u8272\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showDeprecated":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u5DF2\u542F\u7528\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showEnumMembers":'\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A "enumMember" \u5EFA\u8BAE\u3002',"editor.configuration.suggest.showEnums":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u679A\u4E3E\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showEvents":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u4E8B\u4EF6\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showFields":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u5B57\u6BB5\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showFiles":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u6587\u4EF6\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showFolders":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u6587\u4EF6\u5939\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showFunctions":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u51FD\u6570\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showInterfaces":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u63A5\u53E3\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showIssues":'\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A"\u95EE\u9898"\u5EFA\u8BAE\u3002',"editor.configuration.suggest.showKeywords":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u5173\u952E\u5B57\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showMethods":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u65B9\u6CD5\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showModules":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u6A21\u5757\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showOperators":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u64CD\u4F5C\u7B26\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showPropertys":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u5C5E\u6027\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showReferences":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u53C2\u8003\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showSnippets":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u7247\u6BB5\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showStructs":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u7ED3\u6784\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showTexts":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u6587\u672C\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showTypeParameters":'\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A "typeParameter" \u5EFA\u8BAE\u3002',"editor.configuration.suggest.showUnits":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u5355\u4F4D\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showUsers":'\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A"\u7528\u6237"\u5EFA\u8BAE\u3002',"editor.configuration.suggest.showValues":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u503C\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showVariables":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u53D8\u91CF\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.maxVisibleSuggestions":"\u63A7\u5236 IntelliSense \u5728\u663E\u793A\u6EDA\u52A8\u6761\u4E4B\u524D\u5C06\u663E\u793A\u7684\u5EFA\u8BAE\u6570\u91CF\uFF08\u6700\u591A 15 \u4E2A\uFF09\u3002","editor.configuration.suggest.details.visible":"\u63A7\u5236\u7F16\u8F91\u5668\u4EE3\u7801\u8865\u5168\u662F\u5426\u9ED8\u8BA4\u5C55\u5F00\u8BE6\u60C5\u4FE1\u606F","editor.configuration.suggest.filtered":"\u63A7\u5236\u662F\u5426\u5E94\u4ECE IntelliSense \u4E2D\u8FC7\u6EE4\u6389\u67D0\u4E9B\u5EFA\u8BAE\u7C7B\u578B\u3002\u53EF\u4EE5\u5728\u6B64\u5904\u627E\u5230\u4E00\u4EFD\u5EFA\u8BAE\u7C7B\u578B\u5217\u8868: https://code.visualstudio.com/docs/editor/intellisense#_types-of-completions.","editor.configuration.suggest.filtered.method":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `method` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.function":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `function` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.constructor":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `constructor` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.field":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `field` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.variable":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `variable` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.class":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `class` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.struct":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `struct` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.interface":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `interface` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.module":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `module` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.property":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `property` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.event":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `event` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.operator":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `operator` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.unit":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `unit` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.value":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `value` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.constant":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `constant` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.enum":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `enum` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.enumMember":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `enumMember` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.keyword":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `keyword` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.text":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `text` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.color":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `color` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.file":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `file` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.reference":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `reference` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.customcolor":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `customcolor` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.folder":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `folder` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.typeParameter":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `typeParameter` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.snippet":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `snippet` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.editor.gotoLocation.multiple":'\u63A7\u5236 "\u8F6C\u5230" \u547D\u4EE4\uFF08\u4F8B\u5982\u8F6C\u5230\u5B9A\u4E49\uFF09\u5728\u5B58\u5728\u591A\u4E2A\u76EE\u6807\u4F4D\u7F6E\u65F6\u7684\u884C\u4E3A\u3002',"editor.configuration.gotoLocation.multiple.peek":"\u5728\u901F\u89C8\u89C6\u56FE(Peek View)\u4E2D\u663E\u793A\u7ED3\u679C\u3002(\u9ED8\u8BA4)","editor.configuration.gotoLocation.multiple.gotoAndPeek":"\u8F6C\u5230\u4E3B\u7ED3\u679C\u5E76\u663E\u793A\u901F\u89C8\u89C6\u56FE(Peek View)\u3002","editor.configuration.gotoLocation.multiple.goto":"\u8F6C\u5230\u4E3B\u7ED3\u679C\uFF0C\u5E76\u5BF9\u5176\u4ED6\u7ED3\u679C\u542F\u7528\u65E0\u901F\u89C8\u5BFC\u822A","editor.configuration.experimental.stickyScroll.enabled":"\u5728\u7F16\u8F91\u5668\u9876\u90E8\u7684\u6EDA\u52A8\u8FC7\u7A0B\u4E2D\u663E\u793A\u5D4C\u5957\u7684\u5F53\u524D\u4F5C\u7528\u57DF\u3002","editor.configuration.maxTokenizationLineLength":"\u7531\u4E8E\u6027\u80FD\u539F\u56E0\uFF0C\u8D85\u8FC7\u8FD9\u4E2A\u957F\u5EA6\u7684\u884C\u5C06\u4E0D\u4F1A\u88AB\u6807\u8BC6\u3002","editor.configuration.codeActionsOnSave.organizeImports":"\u63A7\u5236\u662F\u5426\u5E94\u5728\u6587\u4EF6\u4FDD\u5B58\u65F6\u6574\u7406\u5BFC\u5165\uFF08Import\uFF09\u8BED\u53E5\u3002","editor.configuration.codeActionsOnSave.fixAll":"\u63A7\u5236\u662F\u5426\u5E94\u5728\u6587\u4EF6\u4FDD\u5B58\u65F6\u8FD0\u884C\u81EA\u52A8\u4FEE\u590D\u64CD\u4F5C\u3002","editor.configuration.codeActionsOnSave":"\u5728\u4FDD\u5B58\u65F6\u8FD0\u884C\u7684\u4EE3\u7801\u64CD\u4F5C\u7C7B\u578B","editor.configuration.codeActionsOnSaveTimeout":"\u5728\u6B64\u8D85\u65F6\u65F6\u95F4(\u6BEB\u79D2)\u4E4B\u540E\u4EE3\u7801\u64CD\u4F5C\u5C06\u88AB\u53D6\u6D88\u3002","editor.configuration.codeActionsOnSaveNotification":"\u4EE3\u7801\u64CD\u4F5C\u6267\u884C\u65F6\u662F\u5426\u5C55\u793A\u901A\u77E5\u4FE1\u606F","editor.configuration.quickSuggestionsDelay":"\u63A7\u5236\u663E\u793A\u667A\u80FD\u63D0\u793A\u7684\u5EF6\u8FDF\u65F6\u957F (\u6BEB\u79D2)\u3002","editor.configuration.tabSize":"\u63A7\u5236 Tab \u7F29\u8FDB\u7B49\u4E8E\u7684\u7A7A\u683C\u6570\u3002\u82E5\u542F\u7528 `#editor.detectIndentation#`\uFF0C\u8BE5\u8BBE\u7F6E\u53EF\u80FD\u4F1A\u88AB\u8986\u76D6","editor.configuration.fontWeight":'\u63A7\u5236\u5B57\u4F53\u7C97\u7EC6\uFF0C\u63A5\u6536 "normal" \u548C "bold" \u5173\u952E\u8BCD\u6216\u8005 1 \u5230 1000 \u6570\u503C\u3002',"editor.configuration.largeFileSize":"\u63A7\u5236\u8D85\u5927\u6587\u4EF6\u7684\u81EA\u5B9A\u4E49\u4F53\u79EF\u3002(\u5355\u4F4D\uFF1AB)","editor.configuration.preferredFormatter":"\u914D\u7F6E\u4F18\u5148\u4F7F\u7528\u7684\u683C\u5F0F\u5316\u5668\u3002","editor.configuration.wrapTab":"\u63A7\u5236\u5F53\u7F16\u8F91\u5668 Tab \u8D85\u8FC7\u53EF\u7528\u7A7A\u95F4\u65F6\uFF0C\u662F\u5426\u4F7F\u7528\u6362\u884C\u6765\u4EE3\u66FF\u6EDA\u52A8\u6A21\u5F0F\u3002","editor.configuration.enablePreviewFromCodeNavigation":"\u63A7\u5236\u5F53\u4EE3\u7801\u5BFC\u822A\u4ECE\u5176\u51FA\u53D1\u65F6\uFF0C\u7F16\u8F91\u5668\u662F\u5426\u4ECD\u5904\u4E8E\u9884\u89C8\u6A21\u5F0F\u3002","editor.configuration.formatOnSaveTimeout":"\u63A7\u5236\u4FDD\u5B58\u65F6\u683C\u5F0F\u5316\u7684\u8D85\u65F6\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09\u3002\u4EC5\u5F53 `#editor.formatOnSave#` \u542F\u7528\u65F6\u751F\u6548\u3002","editor.configuration.inlineSuggest.enabled":"\u63A7\u5236\u662F\u5426\u5728\u7F16\u8F91\u5668\u4E2D\u81EA\u52A8\u663E\u793A\u5185\u8054\u5EFA\u8BAE\u3002","editor.configuration.inlineSuggest.showToolbar":"\u63A7\u5236\u4F55\u65F6\u663E\u793A\u5185\u8054\u5EFA\u8BAE\u5DE5\u5177\u680F\u3002","editor.configuration.inlineSuggest.showToolbar.always":"\u6BCF\u5F53\u663E\u793A\u5185\u8054\u5EFA\u8BAE\u65F6\uFF0C\u5C31\u663E\u793A\u5185\u8054\u5EFA\u8BAE\u5DE5\u5177\u680F\u3002","editor.configuration.inlineSuggest.showToolbar.onHover":"\u5C06\u9F20\u6807\u60AC\u505C\u5728\u5185\u8054\u5EFA\u8BAE\u4E0A\u65F6\u663E\u793A\u5185\u8054\u5EFA\u8BAE\u5DE5\u5177\u680F\u3002","editor.configuration.inlineSuggest.showToolbar.never":"\u6C38\u4E0D\u663E\u793A\u5185\u8054\u5EFA\u8BAE\u5DE5\u5177\u680F\u3002","editor.configuration.hover.enabled":"\u63A7\u5236\u662F\u5426\u5728\u7F16\u8F91\u5668\u4E2D\u542F\u7528\u4EE3\u7801\u63D0\u793A\u3002","editor.configuration.hover.delay":"\u63A7\u5236\u4EE3\u7801\u63D0\u793A\u663E\u793A\u7684\u5EF6\u8FDF\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09\u3002","editor.configuration.hover.sticky":"\u63A7\u5236\u4EE3\u7801\u63D0\u793A\u662F\u5426\u5728\u9F20\u6807\u60AC\u505C\u65F6\u4FDD\u6301\u53EF\u89C1\u3002","editor.configuration.hover.hidingDelay":"\u63A7\u5236\u4EE3\u7801\u63D0\u793A\u9690\u85CF\u7684\u5EF6\u8FDF\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09\u3002\u9700\u8981 `editor.hover.sticky` \u8BBE\u7F6E\u4E3A true \u65F6\u751F\u6548\u3002","editor.configuration.hover.above":"\u4F18\u5148\u663E\u793A\u4EE3\u7801\u63D0\u793A\u5728\u884C\u4E0A\u65B9\uFF0C\u5982\u679C\u884C\u6709\u7A7A\u95F4\u3002","editor.configuration.autoSave":"\u63A7\u5236\u5982\u4F55\u81EA\u52A8\u4FDD\u5B58\u6587\u4EF6\u3002","editor.configuration.formatOnSave":"\u5728\u4FDD\u5B58\u65F6\u683C\u5F0F\u5316\u6587\u4EF6","editor.configuration.formatOnType":"\u63A7\u5236\u7F16\u8F91\u5668\u662F\u5728\u952E\u5165\u540E\u81EA\u52A8\u683C\u5F0F\u5316\u8BE5\u884C\u3002","editor.configuration.formatOnPaste":"\u63A7\u5236\u7F16\u8F91\u5668\u662F\u5426\u81EA\u52A8\u683C\u5F0F\u5316\u7C98\u8D34\u7684\u5185\u5BB9\u3002\u9700\u8981\u5F53\u524D\u6587\u4EF6\u6709\u4E00\u4E2A\u683C\u5F0F\u5316\u5DE5\u5177\u5E76\u4E14\u8BE5\u683C\u5F0F\u5316\u683C\u5C40\u5FC5\u987B\u80FD\u591F\u5728\u6587\u6863\u4E2D\u683C\u5F0F\u5316\u4E00\u4E2A\u8303\u56F4\u3002","editor.configuration.autoIndent":"\u63A7\u5236\u7F16\u8F91\u5668\u662F\u5426\u5E94\u8BE5\u5728\u7528\u6237\u952E\u5165\u3001\u7C98\u8D34\u6216\u79FB\u52A8\u884C\u65F6\u81EA\u52A8\u8C03\u6574\u7F29\u8FDB\u3002\u5FC5\u987B\u63D0\u4F9B\u5E26\u6709\u8BE5\u8BED\u8A00\u7F29\u8FDB\u89C4\u5219\u7684\u6269\u5C55\u3002","editor.configuration.autoSaveDelay":"\u63A7\u5236\u81EA\u52A8\u4FDD\u5B58\u7684\u5EF6\u8FDF\u65F6\u957F\uFF08\u6BEB\u79D2\uFF09\u3002\u4EC5\u5F53 `#editor.autoSave#` \u8BBE\u7F6E\u4E3A\u201C\u7F16\u8F91\u540E\u81EA\u52A8\u4FDD\u5B58\u201D\u65F6\u751F\u6548\u3002","editor.configuration.askIfDiff":"\u4FDD\u5B58\u6587\u4EF6\u65F6\u5982\u679C\u78C1\u76D8\u4E0A\u7684\u6587\u4EF6\u8F83\u65B0\uFF0C\u8FDB\u884C\u63D0\u793A\u624B\u52A8\u89E3\u51B3\u4FDD\u5B58\u51B2\u7A81\u3002","editor.configuration.forceReadOnly":"\u662F\u5426\u542F\u7528 \u53EA\u8BFB\u6A21\u5F0F","editor.configuration.bracketPairColorization.enabled":"\u63A7\u5236\u662F\u5426\u542F\u7528\u62EC\u53F7\u5BF9\u7740\u8272\u3002\u4F7F\u7528 \u201Cworkbench.colorCustomizations\u201D \u66FF\u4EE3\u62EC\u53F7\u7A81\u51FA\u663E\u793A\u989C\u8272\u3002","editor.configuration.guides.bracketPairs":"\u63A7\u5236\u662F\u5426\u542F\u7528\u62EC\u53F7\u5BF9\u6307\u5357\u3002","editor.configuration.mouseBackForwardToNavigate":"\u5141\u8BB8\u4F7F\u7528\u9F20\u6807\u6309\u94AE 4 \u548C 5 \u6765\u6267\u884C\u547D\u4EE4\u201CGo Back\u201D\u548C\u201CGo Forward\u201D\u3002","editor.configuration.previewMode":"\u4F7F\u7528\u9884\u89C8\u6A21\u5F0F\u6253\u5F00","editor.configuration.tokenColorCustomizations":"\u8986\u76D6\u5F53\u524D\u6240\u9009\u989C\u8272\u4E3B\u9898\u4E2D\u7684\u7F16\u8F91\u5668\u989C\u8272\u548C\u5B57\u4F53\u6837\u5F0F","editor.configuration.workbench.editorAssociations":'\u5C06 glob \u6A21\u5F0F\u914D\u7F6E\u5230\u7F16\u8F91\u5668(\u4F8B\u5982 `"*\u5341\u516D\u8FDB\u5236": "hexEditor.hexEdit"`)\u3002\u8FD9\u4E9B\u4F18\u5148\u987A\u5E8F\u9AD8\u4E8E\u9ED8\u8BA4\u884C\u4E3A\u3002',"editor.configuration.guides.indentation":"\u63A7\u5236\u7F16\u8F91\u5668\u662F\u5426\u663E\u793A\u7F29\u8FDB\u53C2\u8003\u7EBF\u3002","editor.configuration.guides.highlightActiveIndentation":"\u63A7\u5236\u662F\u5426\u7A81\u51FA\u663E\u793A\u7F16\u8F91\u5668\u4E2D\u6D3B\u52A8\u7684\u7F29\u8FDB\u53C2\u8003\u7EBF\u3002","editor.configuration.trimAutoWhitespace":"\u5220\u9664\u81EA\u52A8\u63D2\u5165\u7684\u5C3E\u968F\u7A7A\u767D\u7B26\u53F7\u3002","editor.configuration.unicodeHighlight.ambiguousCharacters":"\u63A7\u5236\u662F\u5426\u7A81\u51FA\u663E\u793A\u53EF\u80FD\u4E0E\u57FA\u672C ASCII \u5B57\u7B26\u6DF7\u6DC6\u7684\u5B57\u7B26\uFF0C\u4F46\u5F53\u524D\u7528\u6237\u533A\u57DF\u8BBE\u7F6E\u4E2D\u5E38\u89C1\u7684\u5B57\u7B26\u9664\u5916\u3002","editor.configuration.lightbulb.enabled":"\u5728\u7F16\u8F91\u5668\u4E2D\u542F\u7528\u4EE3\u7801\u64CD\u4F5C\u83DC\u5355\u3002","editor.configuration.lightbulb.enabled.off":"\u7981\u7528\u4EE3\u7801\u64CD\u4F5C\u83DC\u5355\u3002","editor.configuration.lightbulb.enabled.onCode":"\u5F53\u5149\u6807\u4E0E\u4EE3\u7801\u4E00\u8D77\u6392\u5217\u65F6\uFF0C\u663E\u793A\u4EE3\u7801\u64CD\u4F5C\u83DC\u5355\u3002","editor.configuration.lightbulb.enabled.on":"\u5F53\u5149\u6807\u4E0E\u4EE3\u7801\u4E00\u8D77\u6392\u5217\u6216\u5728\u7A7A\u7684\u884C\u65F6\uFF0C\u663E\u793A\u4EE3\u7801\u64CD\u4F5C\u83DC\u5355\u3002","diffEditor.configuration.renderSideBySide":"\u63A7\u5236\u5DEE\u5F02\u7F16\u8F91\u5668\u7684\u663E\u793A\u65B9\u5F0F\u3002","diffEditor.configuration.ignoreTrimWhitespace":"\u542F\u7528\u540E\uFF0C\u5DEE\u5F02\u7F16\u8F91\u5668\u7684\u524D\u5BFC\u548C\u5C3E\u968F\u7A7A\u767D\u5B57\u7B26\u5C06\u4F1A\u5FFD\u7565","diffEditor.action.toggleCollapseUnchangedRegions":"\u6298\u53E0\u672A\u66F4\u6539\u7684\u4EE3\u7801\u533A\u57DF","inlineSuggest.enabled":"\u63A7\u5236\u662F\u5426\u5728\u7F16\u8F91\u5668\u4E2D\u81EA\u52A8\u663E\u793A\u5185\u8054\u5EFA\u8BAE\u3002","view.component.renderedError":"\u89C6\u56FE\u7EC4\u4EF6\u6E32\u67D3\u5F02\u5E38","view.component.tryAgain":"\u91CD\u65B0\u52A0\u8F7D","test.title":"\u6D4B\u8BD5\u7BA1\u7406\u5668","test.result.runFinished":"\u6D4B\u8BD5\u8FD0\u884C\u5B8C\u6210\u4E8E {0}","test.task.unnamed":"\u672A\u547D\u540D\u4EFB\u52A1","test.results":"\u6D4B\u8BD5\u7ED3\u679C","menu.missing.command":"\u83DC\u5355{0} \u8981\u6267\u884C\u7684\u547D\u4EE4\u4E0D\u5B58\u5728\uFF1A{1}","menu.missing.altCommand":"\u83DC\u5355{0} \u8981\u6267\u884C\u7684\u547D\u4EE4(altCommand)\u4E0D\u5B58\u5728\uFF1A{1}","menu.dupe.command":"\u83DC\u5355{0} command({1}) \u548C alt({2}) \u6CE8\u518C\u91CD\u590D","command.category.developerTools":"\u5F00\u53D1\u4EBA\u5458\u5DE5\u5177","connection.start.rtt":"\u67E5\u770B\u901A\u4FE1\u5EF6\u8FDF","connection.stop.rtt":"\u5173\u95ED\u901A\u4FE1\u5EF6\u8FDF\u68C0\u67E5","debug.terminal.label":"\u521B\u5EFA Javascript Debug Terminal","debug.terminal.title":"\u8C03\u8BD5\u8FDB\u7A0B","workbench.action.tasks.runTask":"\u8FD0\u884C\u4EFB\u52A1","workbench.action.tasks.reRunTask":"\u6267\u884C\u4E0A\u6B21\u8FD0\u884C\u7684\u4EFB\u52A1","workbench.action.tasks.restartTask":"\u91CD\u65B0\u5F00\u59CB\u8FD0\u884C\u4E2D\u7684\u4EFB\u52A1","workbench.action.tasks.terminate":"\u7EC8\u6B62\u4EFB\u52A1","workbench.action.tasks.showTasks":"\u5C55\u793A\u4EFB\u52A1","workbench.action.tasks.showLog":"\u5C55\u793A\u4EFB\u52A1\u65E5\u5FD7","task.contribute":"\u8D21\u732E","task.cannotFindTask":"\u672A\u627E\u5230 {0} \u7684\u4EFB\u52A1\uFF0C\u6309\u56DE\u8F66\u952E\u8FD4\u56DE","comment.reply.count":"{0} \u4E2A\u8BC4\u8BBA","comment.reply.lastReply":"\u6700\u540E\u7531 {0} \u8BC4\u8BBA","walkthroughs.welcome":"\u6B22\u8FCE\u4F7F\u7528","walkthroughs.get.started":"\u6253\u5F00 `\u5165\u95E8` \u6F14\u793A","mergeEditor.reset":"\u91CD\u7F6E","mergeEditor.workbench.tab.name":"\u6B63\u5728\u5408\u5E76: {0}","mergeEditor.conflict.action.apply.confirm.title":"\u5F53\u524D\u6587\u4EF6\u8FD8\u6709\u672A\u5904\u7406\u7684\u51B2\u7A81\u6216\u53D8\u66F4\uFF0C\u662F\u5426\u5E94\u7528\u5E76\u4FDD\u5B58\u66F4\u6539\uFF1F","mergeEditor.conflict.action.apply.confirm.continue":"\u7EE7\u7EED\u5408\u5E76","mergeEditor.conflict.action.apply.confirm.complete":"\u786E\u8BA4\u4FDD\u5B58\u5E76\u66F4\u6539","mergeEditor.action.button.apply":"\u5E94\u7528\u66F4\u6539","mergeEditor.action.button.apply-and-stash":"\u5E94\u7528\u5E76\u6682\u5B58","mergeEditor.action.button.accept.left":"\u63A5\u53D7\u5DE6\u8FB9","mergeEditor.action.button.accept.right":"\u63A5\u53D7\u53F3\u8FB9","mergeEditor.open.3way":"3-way \u7F16\u8F91\u5668","mergeEditor.conflict.prev":"\u4E0A\u4E00\u5904\u51B2\u7A81","mergeEditor.conflict.next":"\u4E0B\u4E00\u5904\u51B2\u7A81","mergeEditor.conflict.ai.resolve.all":"AI \u89E3\u51B3","mergeEditor.conflict.ai.resolve.all.stop":"\u5168\u90E8\u505C\u6B62","mergeEditor.open.tradition":"\u6587\u672C\u7F16\u8F91\u5668","workbench.quickOpen.preserveInput":"\u662F\u5426\u5728 QuickOpen \u7684\u8F93\u5165\u6846\uFF08\u5305\u62EC\u547D\u4EE4\u9762\u677F\uFF09\u4E2D\u4FDD\u7559\u4E0A\u6B21\u8F93\u5165\u7684\u5185\u5BB9","aiNative.chat.ai.assistant.name":"AI \u7814\u53D1\u52A9\u624B","aiNative.chat.input.placeholder.default":"\u53EF\u4EE5\u95EE\u6211\u4EFB\u4F55\u95EE\u9898\uFF0C\u8F93\u5165 @ \u53EF\u5F15\u7528\u5185\u5BB9","aiNative.chat.stop.immediately":"\u6211\u5148\u4E0D\u60F3\u4E86\uFF0C\u6709\u9700\u8981\u53EF\u4EE5\u968F\u65F6\u95EE\u6211","aiNative.chat.error.response":"\u5F53\u524D\u4E0E\u6211\u4E92\u52A8\u7684\u4EBA\u592A\u591A\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\uFF0C\u611F\u8C22\u60A8\u7684\u7406\u89E3\u4E0E\u652F\u6301","aiNative.chat.code.insert":"\u63D2\u5165\u4EE3\u7801","aiNative.chat.code.copy":"\u590D\u5236\u4EE3\u7801","aiNative.chat.code.copy.success":"\u590D\u5236\u6210\u529F","aiNative.chat.expand.unfullscreen":"\u6536\u8D77","aiNative.chat.expand.fullescreen":"\u5C55\u5F00\u5168\u5C4F","aiNative.chat.enter.send":"Enter \u53D1\u9001","aiNative.chat.defaultContextFile":"\u5F53\u524D\u6587\u4EF6","aiNative.chat.defaultContextFolder":"\u5F53\u524D\u6587\u4EF6\u5939","aiNative.chat.thinking":"\u6DF1\u5EA6\u601D\u8003","aiNative.chat.imageUpload":"\u4E0A\u4F20\u56FE\u7247","aiNative.inline.chat.operate.chat.title":"Chat({0})","aiNative.inline.chat.operate.check.title":"\u91C7\u7EB3","aiNative.inline.chat.operate.thumbsup.title":"\u8D5E","aiNative.inline.chat.operate.thumbsdown.title":"\u8E29","aiNative.inline.chat.operate.loading.cancel":"\u6309 ESC \u53D6\u6D88","aiNative.inline.chat.input.placeholder.default":"\u8BF7\u8F93\u5165\u4F60\u7684\u610F\u56FE...(\u2191\u2193 \u5207\u6362\u5386\u53F2)","aiNative.inline.chat.generating.canceled":"Inline Chat \u5DF2\u505C\u6B62\u751F\u6210","aiNative.inline.hint.widget.placeholder":"\u6309 {0} \u5524\u8D77 Inline Chat","aiNative.inline.problem.fix.title":"AI \u4FEE\u590D","aiNative.inline.diff.accept":"\u91C7\u7EB3","aiNative.inline.diff.reject":"\u62D2\u7EDD","aiNative.resolve.conflict.dialog.afresh":"\u4F60\u786E\u5B9A\u8981\u91CD\u65B0\u751F\u6210\u5417\uFF1F","aiNative.resolve.conflict.dialog.detection":`\u68C0\u6D4B\u5230\u60A8\u5DF2\u505A\u4E86\u4FEE\u6539\uFF0C\u91CD\u65B0\u751F\u6210\u4F1A\u8986\u76D6\u6389
|
|
31736
|
+
\u60A8\u4FEE\u6539\u7684\u90E8\u5206\uFF0C\u662F\u5426\u786E\u8BA4\u8FDB\u884C\u91CD\u65B0\u751F\u6210\u3002`,"aiNative.resolve.conflict.message.not.processed.yet":"AI \u5DF2\u5904\u7406 {0} \u5904\u51B2\u7A81\uFF0C{1} \u5904\u51B2\u7A81\u6682\u672A\u5904\u7406\uFF08\u4ECD\u6807\u8BB0\u4E3A\u9EC4\u8272\u90E8\u5206\uFF09\uFF0C\u9700\u4EBA\u5DE5\u5904\u7406","aiNative.operate.discard.title":"\u4E22\u5F03","aiNative.operate.afresh.title":"\u91CD\u65B0\u751F\u6210","aiNative.operate.stop.title":"\u505C\u6B62","aiNative.operate.close.title":"\u5173\u95ED","aiNative.operate.clear.title":"\u6E05\u7A7A","aiNative.operate.tools.title":"MCP \u5DE5\u5177","aiNative.operate.newChat.title":"\u65B0\u5EFA\u804A\u5929","aiNative.operate.chatHistory.title":"\u804A\u5929\u5386\u53F2","aiNative.operate.chatHistory.searchPlaceholder":"\u8BF7\u641C\u7D22...","aiNative.operate.chatHistory.edit":"\u7F16\u8F91","aiNative.operate.chatHistory.delete":"\u5220\u9664","aiNative.chat.welcome.loading.text":"\u521D\u59CB\u5316\u4E2D...","aiNative.chat.ai.assistant.limit.message":"{0} \u6761\u6700\u65E9\u7684\u6D88\u606F\u56E0\u8F93\u5165 Tokens \u9650\u5236\u800C\u88AB\u4E22\u5F03","aiNative.inlineDiff.acceptAll":"\u63A5\u53D7\u5168\u90E8","aiNative.inlineDiff.rejectAll":"\u62D2\u7EDD\u5168\u90E8","aiNative.inlineDiff.reveal":"\u5728\u804A\u5929\u4E2D\u5C55\u793A","aiNative.inlineDiff.up":"\u4E0A\u4E00\u5904\u53D8\u66F4","aiNative.inlineDiff.down":"\u4E0B\u4E00\u5904\u53D8\u66F4","aiNative.inlineDiff.right":"\u4E0B\u4E00\u5904\u6587\u4EF6","aiNative.inlineDiff.left":"\u4E0A\u4E00\u5904\u6587\u4EF6","aiNative.inlineDiff.noMoreChangesUp":"\u9876\u90E8\u6CA1\u6709\u66F4\u591A\u53D8\u66F4\u4E86","aiNative.inlineDiff.noMoreChangesDown":"\u5E95\u90E8\u6CA1\u6709\u66F4\u591A\u53D8\u66F4\u4E86","aiNative.chat.session.max":"\u6700\u591A\u53EA\u80FD\u521B\u5EFA {0} \u4E2A\u804A\u5929","preference.ai.native.inlineChat.title":"Inline Chat","preference.ai.native.chat.title":"Chat","preference.ai.native.interface.quick.title":"\u63A5\u53E3\u5FEB\u901F\u8DF3\u8F6C","preference.ai.native.interface.quick.navigation":"\u70B9\u51FB\u7F16\u8F91\u5668\u5DE6\u4FA7\u56FE\u6807\u5FEB\u901F\u8DF3\u8F6C\u5230\u63A5\u53E3\u5B9E\u73B0","preference.ai.native.interface.quick.navigation.hover":"\u8DF3\u8F6C\u5230\u5B9E\u73B0","preference.ai.native.inlineChat.auto.visible":"\u662F\u5426\u5728\u9009\u4E2D\u4EE3\u7801\u7247\u6BB5\u65F6\u81EA\u52A8\u663E\u793A Inline Chat?","preference.ai.native.inlineChat.codeAction.enabled":"\u662F\u5426\u542F\u7528\u5728\u9009\u4E2D\u4EE3\u7801\u7247\u6BB5\u65F6\u663E\u793A Inline Chat \u76F8\u5173\u7684 Code Actions?","preference.ai.native.chat.visible.type":"\u63A7\u5236 Chat \u9762\u677F\u9ED8\u8BA4\u7684\u5C55\u793A\u65B9\u5F0F","preference.ai.native.inlineDiff.preview.mode":"Inline Diff \u7684\u9884\u89C8\u6A21\u5F0F","preference.ai.native.inlineDiff.preview.mode.sideBySide":"\u5728\u7F16\u8F91\u5668\u5F53\u4E2D\u4EE5\u5DE6\u53F3 diff \u9762\u677F\u7684\u65B9\u5F0F\u5C55\u793A","preference.ai.native.inlineDiff.preview.mode.inlineLive":"\u5728\u7F16\u8F91\u5668\u5F53\u4E2D\u4EE5\u6D41\u5F0F\u6E32\u67D3\u7684\u65B9\u5F0F\u5C55\u793A","preference.ai.native.intelligentCompletions.title":"\u667A\u80FD\u8865\u5168","preference.ai.native.intelligentCompletions.promptEngineering.enabled":"\u662F\u5426\u542F\u7528\u63D0\u793A\u8BCD\u5DE5\u7A0B\uFF0C\u4E00\u4E9B LLM \u6A21\u578B\u5728\u63D0\u793A\u8BCD\u5DE5\u7A0B\u4E0A\u53EF\u80FD\u8868\u73B0\u4E0D\u4F73\u3002","preference.ai.native.intelligentCompletions.debounceTime":"\u667A\u80FD\u8865\u5168\u7684\u5EF6\u8FDF\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09","preference.ai.native.intelligentCompletions.cache.enabled":"\u662F\u5426\u542F\u7528\u667A\u80FD\u8865\u5168\u7684\u7F13\u5B58","preference.ai.native.intelligentCompletions.alwaysVisible":"\u662F\u5426\u603B\u662F\u5C55\u793A\u667A\u80FD\u8865\u5168","preference.ai.native.codeEdits.title":"\u667A\u80FD\u6539\u5199","preference.ai.native.codeEdits.lintErrors":"\u662F\u5426\u5728\u53D1\u751F Lint Error \u65F6\u89E6\u53D1\u667A\u80FD\u6539\u5199","preference.ai.native.codeEdits.lineChange":"\u662F\u5426\u5728\u5149\u6807\u884C\u53F7\u53D1\u751F\u53D8\u5316\u65F6\u89E6\u53D1\u667A\u80FD\u6539\u5199","preference.ai.native.codeEdits.typing":"\u662F\u5426\u5728\u5185\u5BB9\u53D1\u751F\u53D8\u5316\u65F6\u89E6\u53D1\u667A\u80FD\u6539\u5199","preference.ai.native.codeEdits.renderType":"\u667A\u80FD\u6539\u5199\u6E32\u67D3\u65B9\u5F0F","preference.ai.native.chat.system.prompt":"\u9ED8\u8BA4\u804A\u5929\u7CFB\u7EDF\u63D0\u793A\u8BCD","webview.webviewTagUnavailable":"\u975E Electron \u73AF\u5883\u4E0D\u652F\u6301 webview \u6807\u7B7E\uFF0C\u8BF7\u4F7F\u7528 iframe \u6807\u7B7E","notebook.kernel.panel.empty":"\u6682\u65E0\u5185\u5BB9","notebook.kernel.panel.title":"\u8FD0\u884C\u7684\u7EC8\u7AEF\u548C\u5185\u6838","notebook.kernel.panel.opened.pages":"\u5DF2\u5F00\u542F\u7684\u6807\u7B7E\u9875","notebook.kernel.panel.running.kernels":"\u8FD0\u884C\u7684\u5185\u6838","notebook.kernel.close.all.confirmation":"\u4F60\u786E\u5B9A\u8981\u5173\u95ED\u5168\u90E8\u5417\uFF1F","notebook.variable.panel.title":"\u53D8\u91CF\u68C0\u67E5\u5668","notebook.variable.panel.unsupported":"\u8BE5\u6587\u4EF6\u683C\u5F0F\u6682\u4E0D\u652F\u6301\u53D8\u91CF\u68C0\u67E5","notebook.variable.panel.refresh.success":"\u53D8\u91CF\u5237\u65B0\u6210\u529F","notebook.variable.panel.refresh.error":"\u53D8\u91CF\u5237\u65B0\u5931\u8D25","notebook.variable.panel.search.placeholder":"\u8BF7\u8F93\u5165\u53D8\u91CF\u540D\u79F0\u641C\u7D22","notebook.variable.panel.show.detail":"\u67E5\u770B\u8BE6\u60C5",...r.browserViews,...o.editorLocalizations,...c.zhCN,"preference.ai.native.llm.apiSettings.title":"\u5927\u6A21\u578B API \u8BBE\u7F6E","preference.ai.native.llm.model.id":"\u6A21\u578B ID","preference.ai.native.deepseek.apiKey":"Deepseek API \u5BC6\u94A5","preference.ai.native.deepseek.apiKey.description":"Deepseek \u8BED\u8A00\u6A21\u578B\u7684 API \u5BC6\u94A5","preference.ai.native.anthropic.apiKey":"Anthropic API \u5BC6\u94A5","preference.ai.native.anthropic.apiKey.description":"Anthropic \u8BED\u8A00\u6A21\u578B\u7684 API \u5BC6\u94A5","preference.ai.native.openai.apiKey":"OpenAI API \u5BC6\u94A5","preference.ai.native.openai.apiKey.description":"OpenAI \u517C\u5BB9\u8BED\u8A00\u6A21\u578B\u7684 API \u5BC6\u94A5","preference.ai.native.openai.baseURL":"OpenAI Base URL","preference.ai.native.openai.baseURL.description":"OpenAI \u517C\u5BB9\u8BED\u8A00\u6A21\u578B\u7684 Base URL","preference.ai.native.contextWindow":"\u4E0A\u4E0B\u6587\u7A97\u53E3","preference.ai.native.contextWindow.description":"\u4E0A\u4E0B\u6587\u7A97\u53E3\u7684\u6700\u5927Token\u6570","preference.ai.native.maxTokens":"\u6700\u5927\u8F93\u51FA","preference.ai.native.maxTokens.description":"\u6700\u5927\u8F93\u51FAToken\u6570","preference.ai.native.mcp.settings.title":"MCP \u670D\u52A1\u5668\u8BBE\u7F6E","preference.ai.native.mcp.servers":"MCP \u670D\u52A1\u5668","preference.ai.native.mcp.servers.description":"\u914D\u7F6E MCP (Model Context Protocol) \u670D\u52A1\u5668","preference.ai.native.mcp.servers.name.description":"MCP \u670D\u52A1\u5668\u540D\u79F0","preference.ai.native.mcp.servers.command.description":"\u542F\u52A8 MCP \u670D\u52A1\u5668\u7684\u547D\u4EE4","preference.ai.native.mcp.servers.args.description":"MCP \u670D\u52A1\u5668\u7684\u547D\u4EE4\u884C\u53C2\u6570","preference.ai.native.mcp.servers.env.description":"MCP \u670D\u52A1\u5668\u7684\u73AF\u5883\u53D8\u91CF","preference.ai.native.mcp.servers.type.description":"MCP \u670D\u52A1\u5668\u8FDE\u63A5\u7C7B\u578B","preference.ai.native.mcp.servers.type.stdio":"Stdio \u8FDE\u63A5","preference.ai.native.mcp.servers.type.sse":"SSE \u8FDE\u63A5","ai.native.mcp.terminal.command":"\u547D\u4EE4","ai.native.mcp.terminal.output":"\u8F93\u51FA","ai.native.mcp.terminal.allow-question":"\u662F\u5426\u5141\u8BB8\u8FD0\u884C\u547D\u4EE4?","ai.native.mcp.terminal.allow":"\u5141\u8BB8","ai.native.mcp.terminal.deny":"\u62D2\u7EDD","ai.native.mcp.name":"\u540D\u79F0:","ai.native.mcp.command":"\u547D\u4EE4:","ai.native.mcp.args":"\u53C2\u6570:","ai.native.mcp.env":"\u73AF\u5883\u53D8\u91CF:","ai.native.mcp.type":"\u7C7B\u578B:","ai.native.mcp.stdio":"Command","ai.native.mcp.sse":"SSE","ai.native.mcp.buttonSave":"\u6DFB\u52A0","ai.native.mcp.buttonUpdate":"\u66F4\u65B0","ai.native.mcp.buttonCancel":"\u53D6\u6D88","ai.native.mcp.addMCPServer.title":"\u6DFB\u52A0 MCP \u670D\u52A1\u5668","ai.native.mcp.editMCPServer.title":"\u7F16\u8F91 MCP \u670D\u52A1\u5668","ai.native.mcp.serverHost.placeHolder":"\u8F93\u5165 SSE URL","ai.native.mcp.command.placeHolder":"\u8F93\u5165\u547D\u4EE4","ai.native.mcp.args.placeHolder":"\u8FD0\u884C\u53C2\u6570","ai.native.mcp.env.placeHolder":"KEY=value\uFF08\u6BCF\u884C\u4E00\u4E2A\uFF09","ai.native.mcp.name.placeHolder":"\u670D\u52A1\u5668\u540D\u79F0","ai.native.mcp.type.builtin":"\u5185\u7F6E","ai.native.mcp.type.sse":"SSE","ai.native.mcp.type.stdio":"\u547D\u4EE4","ai.native.mcp.serverNameExists":'\u670D\u52A1\u540D\u79F0 "{0}" \u5DF2\u5B58\u5728',"ai.native.mcp.name.isRequired":"\u670D\u52A1\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A","ai.native.mcp.command.isRequired":"\u547D\u4EE4\u4E0D\u80FD\u4E3A\u7A7A","ai.native.mcp.serverHost.isRequired":"SSE URL \u4E0D\u80FD\u4E3A\u7A7A","ai.native.mcp.manage.connections":"\u7BA1\u7406\u4F60\u7684 MCP \u670D\u52A1\u5668\u8FDE\u63A5","ai.native.mcp.enabled":"\u5DF2\u542F\u7528","ai.native.mcp.disabled":"\u5DF2\u7981\u7528","ai.native.mcp.enable.title":"\u542F\u52A8\u8BE5\u670D\u52A1","ai.native.mcp.disable.title":"\u505C\u6B62\u8BE5\u670D\u52A1","ai.native.mcp.config.title":"MCP \u914D\u7F6E","ai.native.mcp.tool.arguments":"\u53C2\u6570","ai.native.mcp.tool.results":"\u8FD4\u56DE"}}},10199:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),e(85608).__exportStar(e(32581),t)},21774:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KeymapsModule=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(25067),p=e(48644),v=e(85448);let m=class extends o.BrowserModule{constructor(){super(...arguments),this.providers=[{token:c.IKeymapService,useClass:v.KeymapService},p.KeymapsContribution]}};t.KeymapsModule=m,t.KeymapsModule=m=n.__decorate([(0,r.Injectable)()],m)},2312:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KeymapsParser=t.keymapsSchema=void 0;const n=e(85608),r=n.__importDefault(e(82174)),o=n.__importStar(e(23304)),c=e(76003);t.keymapsSchema={type:"array",items:{type:"object",properties:{key:{type:"string"},keybinding:{type:"string",deprecated:!0},command:{type:"string"},context:{type:"string"},when:{type:"string"},args:{}},required:["command"],optional:["key","keybinding","when","args"],additionalProperties:!1}};let p=class{constructor(){this.validate=new r.default({jsonPointers:!0}).compile(t.keymapsSchema)}parse(m,_){const s=o.stripComments(m),g=_?[]:void 0,l=o.parse(s,g);if(g&&_)for(const h of g)_.push(`${this.printParseErrorCode(h.error)} at ${h.offset} offset of ${h.length} length`);if(this.validate(l))return l;if(_&&this.validate.errors)for(const h of this.validate.errors)_.push(`${h.message} at ${h.dataPath}`);return[]}printParseErrorCode(m){return o.printParseErrorCode(m)}};t.KeymapsParser=p,t.KeymapsParser=p=n.__decorate([(0,c.Injectable)(),n.__metadata("design:paramtypes",[])],p)},48644:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KeymapsContribution=t.KEYMAP_COMMANDS=t.KeymapsContextMenu=t.KeymapsResourceProvider=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(93899),p=e(57517),v=e(42933),m=e(97821),_=e(25067),s=e(34879),g="keymaps-preview";let l=class extends o.WithEventBus{constructor(){super(),this.scheme=_.KEYMAPS_SCHEME}provideResource(f){return{supportsRevive:!0,name:(0,o.localize)("keymaps.tab.name"),icon:(0,o.getIcon)("setting"),uri:f}}provideResourceSubname(f,a){return null}async shouldCloseResource(f,a){return!0}};t.KeymapsResourceProvider=l,t.KeymapsResourceProvider=l=n.__decorate([(0,r.Injectable)(),n.__metadata("design:paramtypes",[])],l);var h;(function(E){E.KEYMAPS="2_keymaps"})(h||(t.KeymapsContextMenu=h={}));var u;(function(E){const f="keymaps";E.OPEN_SOURCE_FILE={id:"keymaps.open.source",label:"%keymaps.editorTitle.openSource%",category:f}})(u||(t.KEYMAP_COMMANDS=u={}));let d=class{registerCommands(f){f.registerCommand(o.COMMON_COMMANDS.OPEN_KEYMAPS,{isEnabled:()=>!0,execute:async()=>{await this.keymapService.open()}}),f.registerCommand(u.OPEN_SOURCE_FILE,{execute:async()=>{this.keymapService.openResource()}}),f.registerCommand(o.KEYBOARD_COMMANDS.CHOOSE_KEYBOARD_LAYOUT,{execute:()=>{this.chooseLayout()}})}registerMenus(f){f.registerMenuItem(c.MenuId.SettingsIconMenu,{command:o.COMMON_COMMANDS.OPEN_KEYMAPS.id,group:h.KEYMAPS}),f.registerMenuItem(c.MenuId.EditorTitle,{command:u.OPEN_SOURCE_FILE.id,iconClass:(0,o.getIcon)("open"),group:"navigation",order:4,when:`resourceScheme == ${_.KEYMAPS_SCHEME}`}),f.registerMenuItem(c.MenuId.EditorTitle,{command:o.COMMON_COMMANDS.OPEN_KEYMAPS.id,iconClass:(0,o.getIcon)("open"),group:"navigation",order:4,when:"resourceFilename =~ /keymaps.json/"})}registerKeybindings(f){f.registerKeybinding({command:o.COMMON_COMMANDS.OPEN_KEYMAPS.id,keybinding:"ctrlcmd+K ctrlcmd+S"})}onStart(){this.keymapService.init()}registerResource(f){f.registerResourceProvider(this.keymapsResourceProvider)}registerEditorComponent(f){f.registerEditorComponent({component:s.KeymapsView,uid:g,scheme:_.KEYMAPS_SCHEME}),f.registerEditorComponentResolver(_.KEYMAPS_SCHEME,(a,b,y)=>{y([{type:p.EditorOpenType.component,componentId:g}])})}async chooseLayout(){const f=this.layoutProvider.currentLayoutData,a={label:(0,o.localize)("keyboard.autoDetect.label"),description:f&&this.layoutProvider.currentLayoutSource!=="user-choice"?(0,o.formatLocalize)("keyboard.autoDetect.description",(0,o.getKeyboardLayoutId)(f.layout)):void 0,detail:(0,o.localize)("keyboard.autoDetect.detail"),value:"autodetect"},b=this.layoutProvider.allLayoutData.map(S=>this.toQuickPickValue(S,f===S));let y;y=[a,...b];const A=await this.quickPickService.show(y,{placeholder:"Choose a keyboard layout"});if(A)return this.layoutProvider.setLayoutData(A)}toQuickPickValue(f,a){return{label:(0,o.getKeyboardLayoutId)(f.layout),value:f}}};t.KeymapsContribution=d,n.__decorate([(0,r.Autowired)(m.QuickPickService),n.__metadata("design:type",Object)],d.prototype,"quickPickService",void 0),n.__decorate([(0,r.Autowired)(o.KeyboardNativeLayoutService),n.__metadata("design:type",Object)],d.prototype,"layoutProvider",void 0),n.__decorate([(0,r.Autowired)(v.IFileServiceClient),n.__metadata("design:type",Object)],d.prototype,"filesystem",void 0),n.__decorate([(0,r.Autowired)(l),n.__metadata("design:type",l)],d.prototype,"keymapsResourceProvider",void 0),n.__decorate([(0,r.Autowired)(_.IKeymapService),n.__metadata("design:type",Object)],d.prototype,"keymapService",void 0),t.KeymapsContribution=d=n.__decorate([(0,o.Domain)(o.CommandContribution,o.KeybindingContribution,o.ClientAppContribution,p.BrowserEditorContribution,c.MenuContribution)],d)},85448:(x,t,e)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.KeymapService=void 0;const r=e(85608),o=r.__importStar(e(39050)),c=e(76003),p=e(41869),v=e(68969),m=e(14951),_=e(25067),s=e(2312);let g=n=class{constructor(){this.keymapChangeEmitter=new p.Emitter,this.convertKeySequence=[],this.toUnregisterUserKeybindingMap=new Map,this.toRestoreDefaultKeybindingMap=new Map,this.searchDelayer=new p.ThrottledDelayer(n.DEFAULT_SEARCH_DELAY),this.disposableCollection=new p.DisposableCollection,this._whenReadyDeferred=new p.Deferred,this.fuzzyOptions={pre:"<match>",post:"</match>"},this.reconcileQueue=new p.Throttler,this.keybindings=[],this.updateKeybindings=()=>{this.currentSearchValue?this.doSearchKeybindings(this.currentSearchValue):(0,p.runWhenIdle)(()=>{this.keybindings=this.getKeybindingItems(),this.keymapChangeEmitter.fire(this.keybindings)})},this.setKeybinding=(h,u)=>this.progressService.withProgress({location:p.ProgressLocation.Notification},d=>new Promise((E,f)=>{d.report({message:(0,p.localize)("keymaps.keybinding.loading"),increment:0,total:100});const a=this.storeKeybindings||[];let b=!1;for(const y of a){const A={when:y.when,command:y.command,keybinding:y.key};if(y.command===u.command){b=!0,this.unregisterUserKeybinding(A);const S=this.toUniqueKey(h),w=this.toRestoreDefaultKeybindingMap.get(S);if(w){const T=this.toUniqueKey(u);this.toRestoreDefaultKeybindingMap.delete(S),this.toRestoreDefaultKeybindingMap.set(T,w)}y.key=u.keybinding,this.registerUserKeybinding({...A,priority:p.KeybindingWeight.WorkbenchContrib*100})}}if(!b){const y=this.keybindings.find(S=>S.id===u.command&&this.getRaw(S.when)===u.when);if(y&&y.keybinding){this.unregisterDefaultKeybinding({when:this.getRaw(y.when),command:y.id,keybinding:this.getRaw(y.keybinding)});const S=this.toUniqueKey(h),w=this.toRestoreDefaultKeybindingMap.get(S);if(w){const T=this.toUniqueKey(u);this.toRestoreDefaultKeybindingMap.delete(S),this.toRestoreDefaultKeybindingMap.set(T,w)}}const A={when:this.getWhen(u),command:u.command,key:u.keybinding};a.push(A),this.registerUserKeybinding(u)}return this.saveKeybinding(a).then(()=>{E(void 0),d.report({message:(0,p.localize)("keymaps.keybinding.success"),increment:99})}).catch(y=>{f(y),d.report({message:(0,p.localize)("keymaps.keybinding.fail"),increment:99})}).finally(()=>{setTimeout(()=>{d.report({increment:100})},3e3)})}),()=>{}),this.covert=h=>this.keybindingService.convert(h," "),this.clearCovert=()=>this.keybindingService.clearConvert(),this.resetKeybinding=async h=>{if(!this.resource)return;const d=this.storeKeybindings.filter(E=>E.command!==h.command);return this.unregisterUserKeybinding(h),this.restoreDefaultKeybinding(h),this.saveKeybinding(d)},this.fixed=async()=>{this.commandService.executeCommand(p.EDITOR_COMMANDS.OPEN_RESOURCE.id,new p.URI().withScheme(_.KEYMAPS_SCHEME),{preview:!1})},this.searchKeybindings=h=>{this.currentSearchValue=h,this.searchDelayer.isTriggered()||this.searchDelayer.cancel(),this.searchDelayer.trigger(async()=>{this.doSearchKeybindings(this.currentSearchValue)})},this.isSearching=!1,this.doSearchKeybindings=h=>{h?this.isSearching=!0:this.isSearching=!1;const u=this.getKeybindingItems(),d=[];u.forEach(E=>{const f=["id","command","keybinding","when","context","source"];let a=!1;for(const b of f){const y=E[b];if(y){const A=o.match(h,y,this.fuzzyOptions);if(A)E[b]=A.rendered,a=!0;else if(b==="keybinding"){const S=h.split("+"),w=y.split(" "),T=[0];let D=[];w.length>1?w.forEach(M=>{const R=M.split("+");T.push(R.length+T[-1]),D.push(...R)}):D=y.split("+"),T.shift();const I=[...D];let O=0;if(S.forEach(M=>{let R={rendered:"",score:0},P=-1;if(y){D.forEach(F=>{const L=o.match(M,F,this.fuzzyOptions);L&&L.score>R.score&&(R=L,P=I.indexOf(F))});const k=R.rendered;k&&(P>-1&&(I[P]=k),D.splice(P,1,""),O+=1)}}),O===S.length){if(T.length>0){const M="";I.forEach((R,P)=>{P===0?M.concat(R):T.indexOf(P)!==-1?M.concat(" "+R):M.concat("+"+R)}),E[b]=M}E[b]=I.join("+"),a=!0}}}}a&&d.push(E)}),this.keybindings=d,this.keymapChangeEmitter.fire(this.keybindings)},this.validateKeybinding=(h,u)=>{if(!u)return(0,p.localize)("keymaps.keybinding.require");try{const d={command:this.isSearching?this.getRaw(h.command):h.command,when:this.isSearching?this.getRaw(h.when):h.when,keybinding:this.isSearching?this.getRaw(u):u};return h.keybinding===u?" ":this.keybindingRegistry.validateKeybindingInScope(d)}catch(d){return d}},this.detectKeybindings=(h,u)=>{if(!u)return[];try{if(h.keybinding===u)return[];const d=this.keybindings.filter(E=>this.getRaw(E.keybinding)===u);if(d.length>0)return d.map(E=>{const f=this.commandRegistry.getCommand(this.getRaw(E.command)),a=this.storeKeybindings.find(b=>f&&b.command===f.id);return E.when=this.getRaw(E.when),E.keybinding=this.getRaw(E.keybinding),{id:f?f.id:this.getRaw(E.command),command:(f?f.label||f.id:E.command)||"",when:this.keybindingService.convertMonacoWhen(E.when),keybinding:this.getRaw(E.keybinding),source:a?this.getScope(p.KeybindingScope.USER):this.getScope(p.KeybindingScope.DEFAULT)}})}catch(d){this.logger.error(d)}return[]}}get onDidKeymapChanges(){return this.keymapChangeEmitter.event}get storeKeybindings(){return this._storeKeybindings&&this._storeKeybindings.map(h=>({...h,command:this.getValidateCommand(h.command),key:h.key||h.keybinding}))}set storeKeybindings(h){this._storeKeybindings=h}get whenReady(){return this._whenReadyDeferred.promise}async init(){await this.reconcile();const h=await this.filesystem.watchFileChanges(n.KEYMAP_FILE_URI);this.disposableCollection.push(h),h.onFilesChanged(()=>{this.reconcileQueue.queue(this.reconcile.bind(this))}),this._whenReadyDeferred.resolve()}async openResource(){if(!this.resource||!this.resource.uri)return;const h=await this.resource.uri;if(!h)return;if(!await this.filesystem.access(h)){const d=await this.filesystem.createFile(h),E=await this.filesystem.setContent(d,`{
|
|
31737
31737
|
}`);this.resource=E||void 0}h&&this.commandService.executeCommand(p.EDITOR_COMMANDS.OPEN_RESOURCE.id,new p.URI(h),{preview:!1})}disposeRegistedKeybinding(){for(const[,h]of this.toUnregisterUserKeybindingMap)h.dispose();for(const[,h]of this.toRestoreDefaultKeybindingMap)h.dispose()}dispose(){this.disposeRegistedKeybinding(),this.disposableCollection.dispose()}getValidateCommand(h){return h.replace(/^monaco.editor/,"editor")}async reconcile(h){const u=n.KEYMAP_FILE_URI.toString();this.resource=await this.filesystem.getFileStat(u),this.resource||(this.resource=await this.filesystem.createFile(u,{content:JSON.stringify([])}));const E=(h?h.slice(0):await this.parseKeybindings()).map(b=>({when:b.when,command:this.getValidateCommand(b.command),keybinding:b.key||b.keybinding})),f=[],a=[];this.disposeRegistedKeybinding(),E.forEach(b=>{b.command.startsWith("-")?a.push(b):f.push(b)}),f.map(b=>{this.unregisterDefaultKeybinding(b,!0),this.registerUserKeybinding(b)}),a.map(b=>{b.command=b.command.slice(1),this.unregisterDefaultKeybinding(b,!0)})}unregisterUserKeybinding(h){const u=this.toUniqueKey(h);if(this.toUnregisterUserKeybindingMap.has(u)){const d=this.toUnregisterUserKeybindingMap.get(u);d?.dispose(),this.toUnregisterUserKeybindingMap.delete(u)}}registerUserKeybinding(h){const u=this.toUniqueKey(h);this.toUnregisterUserKeybindingMap.set(u,this.keybindingRegistry.registerKeybinding(h,p.KeybindingScope.USER))}unregisterDefaultKeybinding(h,u=!1){if(u)this.keybindingRegistry.getKeybindingsForCommand(h.command).map(E=>{const f={...h,keybinding:E.keybinding};this.keybindingRegistry.unregisterKeybinding(f);const a=this.toUniqueKey(h);this.toRestoreDefaultKeybindingMap.set(a,p.Disposable.create(()=>{this.keybindingRegistry.registerKeybinding(f)}))});else{this.keybindingRegistry.unregisterKeybinding(h);const d=this.toUniqueKey(h);this.toRestoreDefaultKeybindingMap.set(d,p.Disposable.create(()=>{this.keybindingRegistry.registerKeybinding(h)}))}}restoreDefaultKeybinding(h){const u=this.toUniqueKey(h),d=this.toRestoreDefaultKeybindingMap.get(u);d&&(d?.dispose(),this.toRestoreDefaultKeybindingMap.delete(u))}toUniqueKey(h){return`${h.command}${h.when?`-${h.when}`:"-"}${h.keybinding?`-${h.keybinding}`:"-"}`}async parseKeybindings(){try{const h=await this.resource;if(!h)return[];const{content:u}=await this.filesystem.readFile(h.uri);this.storeKeybindings=this.parser.parse(u.toString())}catch(h){this.logger.warn(`ParseKeybindings fail: ${h.stack}`),this.storeKeybindings=[]}return this.storeKeybindings}async saveKeybinding(h){this.storeKeybindings=h,this.updateKeybindings(),this.resource||(this.resource=await this.filesystem.createFile(n.KEYMAP_FILE_URI.toString()));const u=await this.filesystem.setContent(this.resource,JSON.stringify(h,void 0,2));this.resource=u||void 0}async getKeybindings(){return this.storeKeybindings.map(h=>({command:h.command,keybinding:h.key,when:h.when,args:h.args}))}async open(){this.commandService.executeCommand(p.EDITOR_COMMANDS.OPEN_RESOURCE.id,new p.URI().withScheme(_.KEYMAPS_SCHEME),{preview:!0})}getWhen(h){return h?this.keybindingService.convertMonacoWhen(h.when):""}getScope(h){return h===p.KeybindingScope.DEFAULT?(0,p.localize)("keymaps.source.default"):h===p.KeybindingScope.USER?(0,p.localize)("keymaps.source.user"):h===p.KeybindingScope.WORKSPACE?(0,p.localize)("keymaps.source.workspace"):""}getKeybindingItems(){const h=this.commandRegistry.getCommands(),u=[];for(const y of h){const A=this.keybindingRegistry.getKeybindingsForCommand(y.id);!A||!A.length?y.label&&u.push({id:y.id,command:y.label,hasCommandLabel:!0}):A.forEach(S=>{let w;if(this.storeKeybindings){const T=this.storeKeybindings.find(D=>y&&D.command===y.id);w={id:y.id,command:y.label||y.id,keybinding:T?T.key:S?this.keybindingRegistry.acceleratorFor(S,"+").join(" "):"",when:T?this.getWhen(T):this.getWhen(A&&S),source:T?this.getScope(p.KeybindingScope.USER):this.getScope(p.KeybindingScope.DEFAULT),hasCommandLabel:!!y.label}}else w={id:y.id,command:y.label||y.id,keybinding:A&&S?this.keybindingRegistry.acceleratorFor(S,"+").join(" "):"",when:this.getWhen(A&&S),source:A&&S&&typeof S.scope<"u"?this.getScope(S.scope):"",hasCommandLabel:!!y.label};u.push(w)})}const d=u.sort((y,A)=>this.compareItem(y,A)),E=d.filter(y=>!!y.keybinding),f=d.filter(y=>!y.keybinding&&y.hasCommandLabel),a=E.filter(y=>y.hasCommandLabel),b=E.filter(y=>!y.hasCommandLabel);return[...a,...b,...f]}compareItem(h,u){return h&&u?h.source===u.source?h.command.toLowerCase().localeCompare(u.command.toLowerCase()):h.source===this.getScope(p.KeybindingScope.USER)?-1:1:0}getRaw(h){return h?h.replace(new RegExp(/<(\/)?match>/gi),""):""}};t.KeymapService=g,g.DEFAULT_SEARCH_DELAY=100,g.KEYMAP_FILE_URI=new p.URI().withScheme(p.Schemes.userStorage).withPath(_.KEYMAPS_FILE_NAME),r.__decorate([(0,c.Autowired)(p.KeybindingRegistry),r.__metadata("design:type",Object)],g.prototype,"keyBindingRegistry",void 0),r.__decorate([(0,c.Autowired)(s.KeymapsParser),r.__metadata("design:type",s.KeymapsParser)],g.prototype,"parser",void 0),r.__decorate([(0,c.Autowired)(p.CommandService),r.__metadata("design:type",Object)],g.prototype,"commandService",void 0),r.__decorate([(0,c.Autowired)(p.CommandRegistry),r.__metadata("design:type",Object)],g.prototype,"commandRegistry",void 0),r.__decorate([(0,c.Autowired)(p.KeybindingRegistry),r.__metadata("design:type",Object)],g.prototype,"keybindingRegistry",void 0),r.__decorate([(0,c.Autowired)(p.KeybindingService),r.__metadata("design:type",Object)],g.prototype,"keybindingService",void 0),r.__decorate([(0,c.Autowired)(m.IFileServiceClient),r.__metadata("design:type",Object)],g.prototype,"filesystem",void 0),r.__decorate([(0,c.Autowired)(p.ILogger),r.__metadata("design:type",Object)],g.prototype,"logger",void 0),r.__decorate([(0,c.Autowired)(v.IProgressService),r.__metadata("design:type",Object)],g.prototype,"progressService",void 0),t.KeymapService=g=n=r.__decorate([(0,c.Injectable)()],g)},34879:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KeymapsView=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),c=e(97267),p=e(41869),v=e(25067),m=n.__importDefault(e(78541)),_=()=>{const{keybindings:s,searchKeybindings:g,validateKeybinding:l,detectKeybindings:h,setKeybinding:u,resetKeybinding:d,getRaw:E,getScope:f,covert:a,clearCovert:b,fixed:y,onDidKeymapChanges:A,updateKeybindings:S}=(0,p.useInjectable)(v.IKeymapService),[w,T]=o.default.useState(!1),[D,I]=o.default.useState(""),[O,M]=o.default.useState(s),R=({data:X,index:V})=>{const{id:$,command:Y,when:G,source:H,keybinding:K}=X,[Z,Q]=o.default.useState(!1),[oe,te]=o.default.useState(K||""),[ue,_e]=o.default.useState(!1),[q,be]=o.default.useState(),[pe,ie]=o.default.useState([]),ge=()=>{ue||(y(),_e(!0)),b(),te(E(K)),Q(!0)},Re=Be=>{const me=l(X,Be);me?me!==" "?be({message:me,type:c.VALIDATE_TYPE.ERROR}):Q(!1):(u({command:E($),when:E(G)||"",keybinding:E(K)},{command:E($),when:E(G)||"",keybinding:Be}),Q(!1),b())},Pe=()=>{Q(!1)},Ae=Be=>{Be.stopPropagation(),Be.preventDefault();const{key:me}=p.KeyCode.createKeyCode(Be.nativeEvent),re=Be.nativeEvent.shiftKey||Be.nativeEvent.metaKey||Be.nativeEvent.altKey||Be.nativeEvent.ctrlKey;me&&p.Key.ENTER.keyCode===me.keyCode&&!re?oe&&Re(oe):te(a(Be.nativeEvent))},we=()=>{const Be=()=>{be(void 0),oe&&te(""),b()},me=re=>{re.stopPropagation(),re.preventDefault()};return o.default.createElement("div",{className:m.default.keybinding_optional_actions,onMouseDown:me},o.default.createElement("span",{className:(0,r.default)((0,p.getIcon)("close-circle-fill"),m.default.keybinding_optional_action),onClick:Be,title:(0,p.localize)("keymaps.action.clear")}))},Ee=()=>o.default.createElement("div",{className:m.default.keybinding_key_input_placeholder},"\u23CE"),fe=Be=>{const me=re=>{re.preventDefault(),ue||(y(),_e(!0)),d({command:E($),when:E(G)||"",keybinding:oe})};if(Be&&E(Be)===f(p.KeybindingScope.USER))return o.default.createElement("span",{className:(0,r.default)((0,p.getIcon)("rollback"),m.default.keybinding_inline_action),onClick:me,title:(0,p.localize)("keymaps.action.reset")})},xe=()=>{if(!q&&pe.length>0)return o.default.createElement("div",{className:m.default.keybinding_detective_messages},o.default.createElement("div",{className:m.default.keybinding_detective_messages_label},(0,p.formatLocalize)("keymaps.keybinding.duplicate",pe.length)),o.default.createElement("ul",{className:m.default.keybinding_detective_messages_container},pe.map((Be,me)=>o.default.createElement("li",{className:m.default.keybinding_detective_messages_item,key:`${Be.id}_${me}`,title:`${Be.command}-${Be.when}`},o.default.createElement("div",{className:m.default.title},(0,p.localize)("keymaps.header.command.title"),": ",E(Be.command)||"-"),o.default.createElement("div",{className:m.default.description},o.default.createElement("div",{style:{marginRight:4}},(0,p.localize)("keymaps.header.source.title"),": ",E(Be.source)||"-"),o.default.createElement("div",null,(0,p.localize)("keymaps.header.when.title"),": ",E(Be.when)||"\u2014"))))))},Ie=()=>{if(Z)return o.default.createElement("div",{className:m.default.keybinding_key_input_container},we(),o.default.createElement(c.ValidateInput,{placeholder:(0,p.localize)("keymaps.edit.placeholder"),validateMessage:q,className:m.default.keybinding_key_input,size:"small",autoFocus:!0,name:p.NO_KEYBINDING_NAME,value:oe,onKeyDown:Ae,onBlur:Pe}),Ee(),xe());{const Be=K?.split(" ");return o.default.createElement("div",{className:m.default.keybinding_key,title:E(K),onDoubleClick:ge},o.default.createElement("div",{className:m.default.keybinding_action,onClick:ge},o.default.createElement("span",{className:(0,r.default)(K?(0,p.getIcon)("edit"):(0,p.getIcon)("plus"),m.default.keybinding_inline_action),title:K?(0,p.localize)("keymaps.action.edit"):(0,p.localize)("keymaps.action.add")}),fe(H)),Be&&Be[0]?Be.map((me,re)=>{const he=me.split("+");return o.default.createElement("div",{className:m.default.keybinding_key_block,key:`${me}_${re}`},he.map((Oe,Se)=>o.default.createElement("div",{className:m.default.keybinding_key_item,key:`${Oe}_${Se}`,dangerouslySetInnerHTML:{__html:Oe||""}})))}):"\u2014")}};return(0,o.useEffect)(()=>{q&&be(void 0),ie(oe&&Z?h(X,oe):[])},[oe]),o.default.createElement("div",{className:(0,r.default)(m.default.keybinding_list_item,V%2===1&&m.default.odd)},o.default.createElement("div",{className:(0,r.default)(m.default.keybinding_list_item_box,m.default.keybinding_command)},o.default.createElement("div",{className:m.default.command_name,title:E(Y),dangerouslySetInnerHTML:{__html:Y}}),o.default.createElement("div",{className:(0,r.default)(m.default.limit_warp,m.default.command_id),title:E($),dangerouslySetInnerHTML:{__html:(0,p.formatLocalize)("keymaps.commandId.title",$)}})),o.default.createElement("div",{className:(0,r.default)(m.default.keybinding_list_item_box)},Ie()),o.default.createElement("div",{className:m.default.keybinding_list_item_box},o.default.createElement("div",{className:m.default.limit_warp,title:E(G||"\u2014"),dangerouslySetInnerHTML:{__html:G||"\u2014"}})),o.default.createElement("div",{className:m.default.keybinding_list_item_box},o.default.createElement("div",{title:E(H),dangerouslySetInnerHTML:{__html:H||""}})))},P=()=>{const X=()=>{T(!w)};return o.default.createElement("div",{className:m.default.search_inline_action},o.default.createElement("span",{className:(0,r.default)((0,p.getIcon)("keyboard"),m.default.search_inline_action_icon,w&&m.default.active),onClick:X}))},k=(0,o.useCallback)(X=>{I(X),g(X)},[D]),F=X=>{if(!w){const V=X.target&&X.target.value?X.target.value.toLocaleLowerCase():"";k(V)}},L=X=>{if(w){X.stopPropagation(),X.preventDefault();const{key:V}=p.KeyCode.createKeyCode(X.nativeEvent);if(V&&p.Key.ENTER.keyCode===V.keyCode)return;k(a(X.nativeEvent))}},B=()=>{D&&(I(""),g("")),b()},j=()=>o.default.createElement("div",{className:m.default.keybinding_optional_actions},o.default.createElement("span",{className:(0,r.default)((0,p.getIcon)("close-circle-fill"),m.default.keybinding_optional_action),onClick:B,title:(0,p.localize)("keymaps.action.reset")})),W=()=>o.default.createElement("div",{className:m.default.search_container},o.default.createElement(c.Input,{className:m.default.search_input,placeholder:(0,p.localize)(w?"keymaps.search.keyboard.placeholder":"keymaps.search.placeholder"),type:"text",value:D,name:p.NO_KEYBINDING_NAME,onChange:F,onKeyDown:L,addonBefore:P()}),j()),U=(0,o.useMemo)(()=>{const X=[{title:(0,p.localize)("keymaps.header.command.title"),classname:m.default.keybinding_header_item},{title:(0,p.localize)("keymaps.header.keybinding.title"),classname:m.default.keybinding_header_item},{title:(0,p.localize)("keymaps.header.when.title"),classname:m.default.keybinding_header_item},{title:(0,p.localize)("keymaps.header.source.title"),classname:m.default.keybinding_header_item}];return o.default.createElement("div",{className:m.default.keybinding_header},X.map((V,$)=>o.default.createElement("div",{className:V.classname,key:`${V.title}_${$}`},V.title)))},[]);return(0,o.useEffect)(()=>{const X=A(V=>{M(V)});return S(),()=>{X.dispose()}},[]),o.default.createElement("div",{className:m.default.keybinding_container},o.default.createElement("div",{className:m.default.keybinding_searchbar},W()),o.default.createElement("div",{className:m.default.keybinding_body},U,o.default.createElement("div",{className:m.default.keybinding_list},o.default.createElement(c.RecycleList,{itemHeight:40,data:O,template:R,className:m.default.keybinding_list_container}))))};t.KeymapsView=_},79312:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KEYMAPS_FILE_NAME=t.KEYMAPS_SCHEME=void 0,t.KEYMAPS_SCHEME="keymaps",t.KEYMAPS_FILE_NAME="keymaps.json"},25067:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(85608);n.__exportStar(e(79312),t),n.__exportStar(e(88811),t)},88811:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IKeymapService=void 0,t.IKeymapService=Symbol("IKeymapService")},83507:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LogModule=t.LogServiceClient=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(47548),p=e(49187);n.__exportStar(e(47548),t);var v=e(1700);Object.defineProperty(t,"LogServiceClient",{enumerable:!0,get:function(){return v.LogServiceClient}});let m=class extends o.BrowserModule{constructor(){super(...arguments),this.providers=[{token:c.ILoggerManagerClient,useClass:p.LoggerManagerClient}],this.backServices=[{servicePath:c.LogServiceForClientPath,clientToken:c.ILoggerManagerClient}]}};t.LogModule=m,t.LogModule=m=n.__decorate([(0,r.Injectable)()],m)},49187:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoggerManagerClient=void 0;const n=e(85608),r=e(76003),o=e(43718),c=e(47548),p=e(1700);let v=class{constructor(){this.logLevelChangeEmitter=new o.Emitter}getLogger(_,s){const g=new p.LogServiceClient(_);return g.setup(this.logServiceForClient,s),g}getBrowserLogger(_){return new p.LogServiceClient(_)}async getLogFolder(){return await this.logServiceForClient.getLogFolder()}async setGlobalLogLevel(_){return await this.logServiceForClient.setGlobalLogLevel(_)}async getGlobalLogLevel(){return await this.logServiceForClient.getGlobalLogLevel()}async dispose(){return this.logLevelChangeEmitter.dispose(),await this.logServiceForClient.disposeAll()}get onDidChangeLogLevel(){return this.logLevelChangeEmitter.event}onDidLogLevelChanged(_){this.logLevelChangeEmitter.fire(_)}};t.LoggerManagerClient=v,n.__decorate([(0,r.Autowired)(c.LogServiceForClientPath),n.__metadata("design:type",Object)],v.prototype,"logServiceForClient",void 0),t.LoggerManagerClient=v=n.__decorate([(0,r.Injectable)()],v)},1700:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LogServiceClient=void 0;const n=e(43718),r=e(47548);class o{constructor(p){this.level=r.LogLevel.Verbose,this.ready=new n.Deferred,this.namespace=p,this.debugLog=new r.DebugLog(p)}async setup(p,v){this.logServiceForClient=p,this.pid=v;const m=await this.logServiceForClient.getGlobalLogLevel();this.level=m,this.ready.resolve()}async getLevel(){return this.logServiceForClient?await this.logServiceForClient.getLevel(this.namespace):this.level}async setLevel(p){this.level=p,this.logServiceForClient&&await this.logServiceForClient.setLevel(this.namespace,p)}async verbose(...p){this.debugLog.verbose(...p),this.logServiceForClient&&await this.logServiceForClient.verbose(this.namespace,(0,r.format)(p),this.pid)}async debug(...p){this.debugLog.debug(...p),this.logServiceForClient&&(await this.ready.promise,!(this.level>r.LogLevel.Debug)&&await this.logServiceForClient.debug(this.namespace,(0,r.format)(p),this.pid))}async log(...p){this.debugLog.log(...p),this.logServiceForClient&&(await this.ready.promise,!(this.level>r.LogLevel.Info)&&await this.logServiceForClient.log(this.namespace,(0,r.format)(p),this.pid))}async warn(...p){this.debugLog.warn(...p),this.logServiceForClient&&(await this.ready.promise,!(this.level>r.LogLevel.Warning)&&await this.logServiceForClient.warn(this.namespace,(0,r.format)(p),this.pid))}async error(...p){this.debugLog.error(...p),this.logServiceForClient&&(await this.ready.promise,!(this.level>r.LogLevel.Error)&&await this.logServiceForClient.error(this.namespace,(0,r.format)(p),this.pid))}async critical(...p){this.debugLog.error(...p),this.logServiceForClient&&(await this.ready.promise,!(this.level>r.LogLevel.Critical)&&await this.logServiceForClient.critical(this.namespace,(0,r.format)(p),this.pid))}async dispose(){this.debugLog.destroy(),this.logServiceForClient&&await this.logServiceForClient.disposeLogger(this.namespace)}}t.LogServiceClient=o},47548:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(85608);n.__exportStar(e(4892),t),n.__exportStar(e(46196),t)},46196:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ILogServiceForClient=void 0,t.format=e,t.ILogServiceForClient=Symbol("LogServiceForClient");function e(n){let r="";for(let o=0;o<n.length;o++){let c=n[o];if(c instanceof Error){const p=Array.prototype.slice.call(arguments);p[0]=c.stack,c=e(p)}else if(typeof c=="object")try{c=JSON.stringify(c)}catch{}else if(typeof c=="symbol")try{c=c.toString()}catch{}r+=(o>0?" ":"")+c}return r}},73344:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),e(85608).__exportStar(e(47548),t)},9522:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AccordionServiceFactory=t.AccordionService=void 0;const n=e(85608),r=n.__importDefault(e(12784)),o=n.__importDefault(e(46343)),c=e(76003),p=e(41869),v=e(81878),m=e(71707),_=e(95416),s=e(93899),g=e(68969),l=e(28423),h=e(17793);let u=class extends p.WithEventBus{get views(){return this.viewsObservable.get()}get state(){return this.stateObservable.get()}constructor(E,f){super(),this.containerId=E,this.noRestore=f,this.forceRevealContextKeys=new Map,this.viewWhenContextkeys=new Set,this.appendedViewSet=new Set,this.viewsWithContextKey=new Set,this.viewsObservable=(0,l.observableValue)(this,[]),this.stateObservable=(0,l.observableValue)(this,{}),this.visibleViews=(0,l.derived)(this,a=>{const b=this.viewsObservable.read(a);return this.stateObservable.read(a),b.filter(y=>!this.getViewState(y.id).hidden)}),this.rendered=!1,this.menuId=`${s.MenuId.AccordionContext}/${this.containerId}`,this.toDispose=new Map,this.didChangeViewTitleEmitter=this.registerDispose(new p.Emitter),this.onDidChangeViewTitle=this.didChangeViewTitleEmitter.event,this.beforeAppendViewEmitter=this.registerDispose(new p.Emitter),this.onBeforeAppendViewEvent=this.beforeAppendViewEmitter.event,this.afterAppendViewEmitter=this.registerDispose(new p.Emitter),this.onAfterAppendViewEvent=this.afterAppendViewEmitter.event,this.afterDisposeViewEmitter=this.registerDispose(new p.Emitter),this.onAfterDisposeViewEvent=this.afterDisposeViewEmitter.event,this.doUpdateResize=(0,r.default)(()=>{var a,b;let y;if(Object.keys(this.state).forEach(A=>{this.state[A].hidden||this.state[A].collapsed||(y?(this.state[A].size||0)>(this.state[y].size||0)&&(y=A):y=A)}),y&&this.splitPanelService.isVisible&&this.expandedViews.length>1&&!((a=this.splitPanelService.rootNode)===null||a===void 0)&&a.clientHeight){const A=((b=this.splitPanelService.rootNode)===null||b===void 0?void 0:b.clientHeight)-this.getPanelFullHeight();if(A){const S=this.state;S[y].size+=A,(0,l.transaction)(w=>{this.stateObservable.set({...S},w)}),this.toggleOpen(y,!1)}}},16),this.storeState=()=>{this.noRestore||!this.rendered||this.layoutState.setState(_.LAYOUT_STATE.getContainerSpace(this.containerId),this.state)},this.handleSectionClick=(a,b,y)=>{this.doToggleOpen(a,b,y)},this.handleContextMenu=(a,b)=>{a.preventDefault();const y=this.ctxMenuService.createMenu({id:this.menuId,config:{args:[{viewId:b}]},contextKeyService:b?this.viewContextKeyRegistry.getContextKeyService(b):void 0}),A=y.getGroupedMenuNodes();y.dispose(),this.contextMenuRenderer.show({menuNodes:A[1],anchor:{x:a.clientX,y:a.clientY}})},this.addDispose((0,l.recomputeInitiallyAndOnChange)(this.visibleViews)),this.splitPanelService=this.splitPanelManager.getService(E),this.addDispose(this.splitPanelService),this.scopedCtxKeyService=this.contextKeyService.createScoped(),this.scopedCtxKeyService.createKey("triggerWithSection",!0),this.menuRegistry.registerMenuItem(this.menuId,{command:{id:this.registerGlobalToggleCommand(),label:(0,p.localize)("layout.view.hide","Hide")},group:"0_global",when:"triggerWithSection == true"}),this.viewContextKeyRegistry.afterContextKeyServiceRegistered(this.containerId,a=>{this.topViewKey=a.createKey("view",E),setTimeout(()=>{this.popViewKeyIfOnlyOneViewVisible()})}),this.addDispose(p.Event.debounce(this.contextKeyService.onDidChangeContext,(a,b)=>a||b.payload.affectsSome(this.viewWhenContextkeys),50)(a=>a&&this.handleContextKeyChange(),this)),this.splitPanelService.whenReady.then(()=>{this.listenWindowResize()})}updateViewTitle(E,f){const a=this.views.find(b=>b.id===E);a?(a.name=f,this.didChangeViewTitleEmitter.fire({id:E,title:f})):this.logger.error(`No target view \`${E}\` found, unable to update accordion title`)}updateViewDesciption(E,f){const a=this.views.find(b=>b.id===E);a?(a.description=f,this.didChangeViewTitleEmitter.fire({id:E,description:f})):this.logger.error(`No target view \`${E}\` found, unable to update accordion description`)}updateViewMessage(E,f){const a=this.views.find(b=>b.id===E);a?(a.message=f,this.didChangeViewTitleEmitter.fire({id:E,message:f})):this.logger.error(`No target view \`${E}\` found, unable to update accordion message`)}updateViewBadge(E,f){const a=this.views.find(b=>b.id===E);a?(a.badge=f,this.didChangeViewTitleEmitter.fire({id:E,badge:f})):this.logger.error(`No target view \`${E}\` found, unable to update accordion message`)}tryUpdateResize(){this.doUpdateResize()}restoreState(){if(this.noRestore)return;const E={};this.visibleViews.get().forEach(a=>E[a.id]={collapsed:!1,hidden:!1});const f=this.layoutState.getState(_.LAYOUT_STATE.getContainerSpace(this.containerId),E);(0,o.default)(f,E)||(0,l.transaction)(a=>{this.stateObservable.set({...f},a)}),this.popViewKeyIfOnlyOneViewVisible(),this.splitPanelService.whenReady.then(()=>{this.restoreSize(),this.rendered=!0})}restoreSize(){var E;let f=((E=this.splitPanelService.rootNode)===null||E===void 0?void 0:E.clientHeight)||0,a;if(this.visibleViews.get().forEach((b,y)=>{const A=this.state[b.id];A.collapsed?(this.setSize(y,0,!1,!0),f-=this.headerSize):!A.collapsed&&A.size&&(this.setSize(y,A.size,!1,!0),f-=A.size,a=y)}),a){const b=this.visibleViews.get()[a];this.setSize(a,this.state[b.id].size+f)}}initConfig(E){const{headerSize:f,minSize:a}=E;this.headerSize=f,this.minSize=a}registerContextService(E){let f=this.viewContextKeyRegistry.getContextKeyService(E);return f||(f=this.contextKeyService.createScoped(),f.createKey("view",E),this.viewContextKeyRegistry.registerContextKeyService(E,f)),f}getSectionToolbarMenu(E){const f=this.registerContextService(E),a=this.menuService.createMenu(s.MenuId.ViewTitle,f),b=this.views.find(y=>y.id===E);return b&&(b.titleMenu=a),a}updateView(E){(0,l.transaction)(f=>{const a=this.views;if(E.priority){const b=a.findIndex(y=>(y.priority||0)<(E.priority||0));a.splice(b===-1?a.length:b,0,E),this.viewsObservable.set([...a],f)}else this.viewsObservable.set([...a,E],f)})}appendView(E,f){if(this.appendedViewSet.has(E.id)&&!f)return;const a=new p.DisposableCollection;a.push(this.progressService.registerProgressIndicator(E.id));const b=this.views.findIndex(y=>y.id===E.id);if(b!==-1){(0,l.transaction)(y=>{const A=this.views;A[b]=Object.assign({},A[b],E),this.viewsObservable.set([...A],y)});return}if(E.when){this.viewsWithContextKey.add(E);const y=this.createRevealContextKey(E.id);if(this.fillKeysInWhenExpr(this.viewWhenContextkeys,E.when),!this.contextKeyService.match(E.when)&&!this.contextKeyService.match(y))return;this.appendedViewSet.add(E.id)}this.beforeAppendViewEmitter.fire(E.id),this.updateView(E),this.registerContextService(E.id),a.push(this.menuRegistry.registerMenuItem(this.menuId,{command:{id:this.registerVisibleToggleCommand(E.id,a),label:(E.name||E.id).toUpperCase()},group:"1_widgets"})),this.toDispose.set(E.id,a),this.popViewKeyIfOnlyOneViewVisible(),this.afterAppendViewEmitter.fire(E.id)}disposeView(E){const f=this.views.findIndex(b=>b.id===E);f>-1&&(0,l.transaction)(b=>{const y=this.views;y.splice(f,1),this.viewsObservable.set([...y],b)});const a=this.toDispose.get(E);a&&a.dispose(),this.appendedViewSet.delete(E),this.popViewKeyIfOnlyOneViewVisible(),this.afterDisposeViewEmitter.fire(E)}revealView(E){const f=this.forceRevealContextKeys.get(E);f&&f.key.set(!0)}disposeAll(){(0,l.transaction)(E=>{this.viewsObservable.set([],E)}),this.toDispose.forEach(E=>{E.dispose()})}onResize(E){if(E.payload.slotLocation&&this.state[E.payload.slotLocation]){const f=E.payload.slotLocation;p.fastdom.measureAtNextFrame(()=>{const a=document.getElementById(f);if(a){const b=this.state;b[f].size=a.clientHeight,(0,l.transaction)(y=>{this.stateObservable.set({...b},y)}),this.storeState()}})}}getPanelFullHeight(E){return Object.keys(this.state).filter(f=>this.views.find(a=>a.id===f)&&f!==E).reduce((f,a)=>f+(this.state[a].collapsed?this.headerSize:this.state[a].hidden?0:this.state[a].size),0)}listenWindowResize(){window.addEventListener("resize",this.doUpdateResize),this.addDispose({dispose:()=>window.removeEventListener("resize",this.doUpdateResize)})}createRevealContextKey(E){const f=`forceShow.${E}`;return this.forceRevealContextKeys.set(E,{when:`${f} == true`,key:this.contextKeyService.createKey(f,!1)}),this.viewWhenContextkeys.add(f),`${f} == true`}registerGlobalToggleCommand(){const E=`view-container.hide.${this.containerId}`;return this.commandRegistry.registerCommand({id:E},{execute:({viewId:f})=>{this.doToggleView(f)},isEnabled:()=>this.visibleViews.get().length>1}),E}registerVisibleToggleCommand(E,f){const a=`view-container.hide.${E}`;return f.push(this.commandRegistry.registerCommand({id:a},{execute:({forceShow:b}={})=>{this.doToggleView(E,b)},isToggled:()=>!this.getViewState(E).hidden,isEnabled:()=>this.getViewState(E).hidden||this.visibleViews.get().length>1})),a}doToggleView(E,f){const a=this.getViewState(E);let b;f===void 0?b=!a.hidden:b=!f,a.hidden=b,this.updateViewState(E,a),this.popViewKeyIfOnlyOneViewVisible(),this.storeState()}popViewKeyIfOnlyOneViewVisible(){if(!this.topViewKey)return;const E=this.visibleViews.get();E.length===1?this.topViewKey.set(E[0].id):this.topViewKey.reset()}toggleViewVisibility(E,f){this.doToggleView(E,f)}get expandedViews(){return this.views.filter(E=>{const f=this.state[E.id];return!f||f&&!f.hidden&&!f.collapsed})}toggleOpen(E,f){const a=this.visibleViews.get().findIndex(b=>b.id===E);a>-1&&this.doToggleOpen(E,f,a,!0)}getViewState(E){let f=this.state[E];const a=this.views.find(b=>b.id===E);return f||(this.updateViewState(E,{collapsed:a?.collapsed||!1,hidden:a?.hidden||!1}),f=this.state[E]),f}updateViewState(E,f){const a=this.state;a[E]=f,(0,l.transaction)(b=>{this.stateObservable.set({...a},b)})}doToggleOpen(E,f,a,b){var y;const A=this.getViewState(E);this.updateViewState(E,{...A,collapsed:f});const S=this.mainLayoutService.getContainer(this.containerId);if(((y=S?.options)===null||y===void 0?void 0:y.alignment)!=="horizontal"){let w;f?w=this.setSize(a,0,!1,b):w=this.setSize(a,this.expandedViews.length===1?this.getAvailableSize():A.size||this.minSize,!1,b);for(let T=this.visibleViews.get().length-1;T>a;T--)this.getViewState(this.visibleViews.get()[T].id).collapsed!==!0?w=this.setSize(T,w,!0,b):this.setSize(T,0,!1,b);for(let T=a-1;T>=0;T--)(this.state[this.visibleViews.get()[T].id]||{}).collapsed!==!0?w=this.setSize(T,w,!0,b):this.setSize(T,0,!1,b)}this.eventBus.fire(new h.ViewCollapseChangedEvent({viewId:E,collapsed:f}))}setSize(E,f,a,b){var y;const A=this.visibleViews.get()[E],S=(y=this.splitPanelService.rootNode)===null||y===void 0?void 0:y.clientHeight,w=this.splitPanelService.panels[E];if(!w)return 0;b||w.classList.add("resize-ease"),!f&&!a?(f=this.headerSize,w.classList.add(v.RESIZE_LOCK)):w.classList.remove(v.RESIZE_LOCK);const T=w.clientHeight,D=this.getViewState(A.id);let I=f;if(a&&(I=Math.max(T-f,this.minSize)),E===this.expandedViews.length-1&&(0,p.isDefined)(S))if(I+E*this.minSize>S)I-=I+E*this.minSize-S;else{const O=this.getPanelFullHeight(A.id);I+O<S&&(I+=S-(I+O))}if(this.rendered){let O;f===this.headerSize?O=T:O=I,O!==this.headerSize&&(D.size=O)}return this.storeState(),D.nextSize=I,b||setTimeout(()=>{w.classList.remove("resize-ease")},200),a?I-(T-f):f-T}getAvailableSize(){var E;const f=(E=this.splitPanelService.rootNode)===null||E===void 0?void 0:E.clientHeight;return f?f-(this.visibleViews.get().length-1)*this.headerSize:0}handleContextKeyChange(){Array.from(this.viewsWithContextKey.values()).forEach(E=>{this.contextKeyService.match(E.when)||this.contextKeyService.match(this.forceRevealContextKeys.get(E.id).when)?this.appendView(E):this.disposeView(E.id)})}fillKeysInWhenExpr(E,f){this.contextKeyService.getKeysInWhen(f).forEach(b=>{E.add(b)})}};t.AccordionService=u,n.__decorate([(0,c.Autowired)(),n.__metadata("design:type",m.SplitPanelManager)],u.prototype,"splitPanelManager",void 0),n.__decorate([(0,c.Autowired)(s.AbstractMenuService),n.__metadata("design:type",s.AbstractMenuService)],u.prototype,"menuService",void 0),n.__decorate([(0,c.Autowired)(s.AbstractContextMenuService),n.__metadata("design:type",s.AbstractContextMenuService)],u.prototype,"ctxMenuService",void 0),n.__decorate([(0,c.Autowired)(s.IMenuRegistry),n.__metadata("design:type",s.IMenuRegistry)],u.prototype,"menuRegistry",void 0),n.__decorate([(0,c.Autowired)(p.CommandRegistry),n.__metadata("design:type",Object)],u.prototype,"commandRegistry",void 0),n.__decorate([(0,c.Autowired)(s.ICtxMenuRenderer),n.__metadata("design:type",s.ICtxMenuRenderer)],u.prototype,"contextMenuRenderer",void 0),n.__decorate([(0,c.Autowired)(),n.__metadata("design:type",p.ViewContextKeyRegistry)],u.prototype,"viewContextKeyRegistry",void 0),n.__decorate([(0,c.Autowired)(h.IMainLayoutService),n.__metadata("design:type",Object)],u.prototype,"mainLayoutService",void 0),n.__decorate([(0,c.Autowired)(p.IContextKeyService),n.__metadata("design:type",Object)],u.prototype,"contextKeyService",void 0),n.__decorate([(0,c.Autowired)(_.LayoutState),n.__metadata("design:type",_.LayoutState)],u.prototype,"layoutState",void 0),n.__decorate([(0,c.Autowired)(g.IProgressService),n.__metadata("design:type",Object)],u.prototype,"progressService",void 0),n.__decorate([(0,c.Autowired)(p.ILogger),n.__metadata("design:type",Object)],u.prototype,"logger",void 0),n.__decorate([(0,p.OnEvent)(p.ResizeEvent),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[p.ResizeEvent]),n.__metadata("design:returntype",void 0)],u.prototype,"onResize",null),t.AccordionService=u=n.__decorate([(0,c.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[String,Boolean])],u),t.AccordionServiceFactory=Symbol("AccordionServiceFactory")},70936:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Panel=t.AccordionContainer=void 0;const r=e(85608).__importStar(e(14041)),o=e(41869),c=e(81878),p=e(1149),v=e(43718),m=e(9522),_=e(95867),s=({alignment:l="vertical",views:h,containerId:u,headerSize:d=24,minSize:E=120,className:f,noRestore:a,style:b})=>{const y=(0,o.useInjectable)(p.LayoutViewSizeConfig),A=(0,o.useInjectable)(m.AccordionServiceFactory)(u,a),S=(0,o.useAutorun)(A.visibleViews);(0,o.useAutorun)(A.stateObservable);const w=(0,r.useMemo)(()=>d||y.accordionHeaderSizeHeight,[d]);return r.default.useEffect(()=>{if(h.length)for(const T of h)A.appendView(T)},[h]),r.default.useEffect(()=>{A.initConfig({headerSize:w,minSize:E})},[]),r.default.createElement(c.SplitPanel,{className:f,style:b,headerSize:d,dynamicTarget:!0,id:u,resizeKeep:!1,direction:l==="horizontal"?"left-to-right":"top-to-bottom"},S.map((T,D)=>{const I=A.getViewState(T.id),O=T.titleMenu||A.getSectionToolbarMenu(T.id),{collapsed:M,nextSize:R}=I;return r.default.createElement(_.AccordionSection,{noHeader:S.length===1,onItemClick:()=>{A.handleSectionClick(T.id,!M,D)},onContextMenuHandler:A.handleContextMenu,alignment:l,header:T.name&&(0,v.replaceLocalizePlaceholder)(T.name)||T.id,viewId:T.id,key:T.id,message:T.message,description:T.description,badge:T.badge,title:T.name,expanded:!M,accordionService:A,index:D,headerSize:d,minSize:d,initialProps:T.initialProps,titleMenu:O,titleMenuContext:T.titleMenuContext,savedSize:M?d:R,flex:T.weight||1},T.component)}))};t.AccordionContainer=s,t.AccordionContainer.displayName="AccordionContainer";const g=({children:l})=>r.default.createElement("div",null,l);t.Panel=g,t.Panel.displayName="Panel"},95867:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AccordionSection=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importDefault(e(14041)),c=e(41869),p=e(25918),v=e(93899),m=e(68969),_=e(68974),s=e(69589),g=e(52416),l=n.__importDefault(e(81388)),h={tabIndex:0},u=({header:d,description:E,message:f,headerClass:a,onItemClick:b,noHeader:y,children:A,badge:S,headerSize:w,viewId:T,initialProps:D,titleMenu:I,titleMenuContext:O,expanded:M,accordionService:R,onContextMenuHandler:P,alignment:k})=>{const F=(0,c.useInjectable)(g.IIconService),L=(0,c.useDesignStyles)(l.default.actions_wrap,"actions_wrap"),B=(0,c.useDesignStyles)(l.default.kt_split_panel,"kt_split_panel"),j=(0,c.useDesignStyles)(l.default.kt_split_panel_header,"kt_split_panel_header"),W=(0,c.useDesignStyles)(l.default.kt_split_panel_body,"kt_split_panel_body"),U=(0,c.useDesignStyles)(l.default.section_badge,"section_badge"),X=o.default.useRef(null),[V,$]=o.default.useState({header:d,description:E,message:f,badge:S});o.default.useEffect(()=>{const te=R.onDidChangeViewTitle(({id:ue,title:_e,description:q,message:be,badge:pe})=>{let ie=!1;const ge={...V};T===ue&&_e&&_e!==V.header&&(ge.header=_e,ie=!0),T===ue&&pe!==V.badge&&(ge.badge=pe,ie=!0),T===ue&&q&&q!==V.description&&(ge.description=q,ie=!0),T===ue&&be&&be!==V.message&&(ge.message=be,ie=!0),ie&&$(ge)});return()=>{te.dispose()}},[]);const Y=o.default.useCallback(()=>{b()},[b]),G=o.default.useMemo(()=>({overflow:M?"auto":"hidden"}),[M]),H=(0,c.useViewState)(T,X,!0),Z=(0,c.useInjectable)(m.IProgressService).getIndicator(T),Q=A,oe=o.default.useMemo(()=>M?`${w}px`:k==="horizontal"?"100%":`${w}px`,[M,w,k]);return o.default.createElement("div",{className:B,"data-view-id":T,draggable:!1},!y&&o.default.createElement("div",{...h,className:(0,r.default)(j,a),onClick:Y,onContextMenu:te=>P(te,T),style:{height:oe,lineHeight:oe}},o.default.createElement("div",{className:l.default.label_wrap},o.default.createElement("i",{className:(0,r.default)((0,c.getIcon)("arrow-down"),l.default.arrow_icon,M?"":l.default.kt_mod_collapsed)}),o.default.createElement("div",{className:l.default.section_label,style:{lineHeight:w+"px"}},V.header),V.description&&o.default.createElement("div",{className:l.default.section_description,style:{lineHeight:w+"px"}},typeof V.description=="string"?(0,s.transformLabelWithCodicon)(V.description,{},F.fromString.bind(F)):V.description),V.badge&&o.default.createElement("div",{className:U},typeof V.badge=="string"?V.badge:V.badge.value)),M&&I&&o.default.createElement("div",{className:L},(0,v.isIMenu)(I)?o.default.createElement(p.InlineActionBar,{menus:I,context:O}):o.default.createElement(p.InlineMenuBar,{menus:I,context:O}))),o.default.createElement("div",{className:(0,r.default)([W,{[l.default.hide]:!M}]),style:G,ref:X},o.default.createElement(_.ProgressBar,{className:l.default.progressBar,progressModel:Z.progressModel}),o.default.createElement(c.ErrorBoundary,null,V.message&&o.default.createElement("div",{className:l.default.kt_split_panel_message},V.message),o.default.createElement(Q,{...D,viewState:{height:H.height-(V.message?22:0),width:H.width}}))))};t.AccordionSection=u},91527:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TitleBar=void 0;const n=e(85608),r=n.__importDefault(e(14041)),o=e(41869),c=e(752),p=n.__importDefault(e(81388));t.TitleBar=r.default.memo(v=>{const m=(0,o.useDesignStyles)(p.default.titlebar,"titlebar"),_=(0,o.useInjectable)(c.TabbarServiceFactory)(v.side),s=r.default.useCallback(l=>{v.containerId&&v.side&&_.handleDragStart(l,v.containerId)},[v.containerId,v.side,_]),g=r.default.useCallback(l=>{_.handleDragEnd(l)},[_]);return r.default.createElement("div",{className:m,style:{height:v.height}},!v.draggable&&r.default.createElement("h1",null,v.title),!!v.draggable&&r.default.createElement("h1",{draggable:!0,style:{cursor:"pointer"},onDragStart:s,onDragEnd:g},v.title),v.menubar||null)}),t.TitleBar.displayName="TitleBar"},25072:(x,t,e)=>{"use strict";var n;n={value:!0},t.s=void 0;const r=e(41869),o=e(17793);t.s={[r.SlotLocation.top]:{modules:["@opensumi/ide-menu-bar"]},[r.SlotLocation.action]:{modules:["@opensumi/ide-toolbar-action"]},[r.SlotLocation.left]:{modules:["@opensumi/ide-explorer","@opensumi/ide-search","@opensumi/ide-scm","@opensumi/ide-extension-manager","@opensumi/ide-debug","@opensumi/ide-notebook"]},[r.SlotLocation.right]:{modules:[o.DROP_RIGHT_CONTAINER]},[r.SlotLocation.main]:{modules:["@opensumi/ide-editor"]},[r.SlotLocation.bottom]:{modules:[o.DROP_BOTTOM_CONTAINER,"@opensumi/ide-terminal-next","@opensumi/ide-output","debug-console","@opensumi/ide-markers"]},[r.SlotLocation.statusBar]:{modules:["@opensumi/ide-status-bar"]},[r.SlotLocation.extra]:{modules:["breadcrumb-menu"]}}},45395:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BottomDropArea=t.RightDropArea=void 0;const n=e(85608),r=n.__importDefault(e(14041)),o=e(41869),c=e(17793),p=n.__importDefault(e(36623)),v=s=>{const{location:g}=s,l=(0,o.useInjectable)(c.IMainLayoutService),h=r.default.useCallback(u=>{var d;const E=(d=u.dataTransfer)===null||d===void 0?void 0:d.getData("containerId");l.moveContainerTo(E,g)},[l,g]);return r.default.createElement("div",{className:p.default.drop_area,onDrop:h,onDragOver:u=>{u.preventDefault()}},(0,o.localize)("main-layout.drop-area.tip"))},m=()=>r.default.createElement(v,{location:"right"});t.RightDropArea=m;const _=()=>r.default.createElement(v,{location:"bottom"});t.BottomDropArea=_},7480:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MainLayoutModule=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(17793),p=e(9522),v=e(22537),m=e(53576),_=e(752),s=e(58296);let g=class extends o.BrowserModule{constructor(){super(...arguments),this.providers=[m.MainLayoutModuleContribution,{token:c.IMainLayoutService,useClass:v.LayoutService},{token:c.IViewsRegistry,useClass:s.ViewsRegistry},{token:_.TabbarServiceFactory,useFactory:_.TabbarServiceFactoryFn},{token:p.AccordionServiceFactory,useFactory:h=>(u,d)=>h.get(c.IMainLayoutService).getAccordionService(u,d)}],this.contributionProvider=c.MainLayoutContribution}};t.MainLayoutModule=g,t.MainLayoutModule=g=n.__decorate([(0,r.Injectable)()],g)},5567:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AutoFocusedInput=void 0;const r=e(85608).__importStar(e(14041)),o=e(97267),c=e(48560),p=e(17793),v=({containerId:m,..._})=>{const s=(0,c.useInjectable)(p.IMainLayoutService),g=(0,r.useRef)(null),l=r.default.useCallback(()=>{g&&g.current&&queueMicrotask(()=>{var h;return(h=g.current)===null||h===void 0?void 0:h.focus()})},[g.current]);return(0,r.useEffect)(()=>{l();const h=s.getTabbarHandler(m),u=h?.onActivate(l);return()=>{u?.dispose()}},[s]),r.default.createElement(o.Input,{ref:g,..._})};t.AutoFocusedInput=v},22537:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LayoutService=void 0;const n=e(85608),r=n.__importDefault(e(12784)),o=e(76003),c=e(41869),p=e(81878),v=e(95416),m=e(93899),_=e(43718),s=e(52416),g=e(17793),l=e(9522),h=e(752),u=e(58999),d={[c.SlotLocation.left]:{currentId:void 0,size:void 0},[c.SlotLocation.right]:{currentId:"",size:void 0},[c.SlotLocation.bottom]:{currentId:void 0,size:void 0}};let E=class extends c.WithEventBus{constructor(){super(...arguments),this.handleMap=new Map,this.tabbarServices=new Map,this.accordionServices=new Map,this.pendingViewsMap=new Map,this.viewToContainerMap=new Map,this.disposableMap=new Map,this.state={},this.customViews=new Map,this.debug=(0,_.getDebugLogger)(),this.viewReady=new _.Deferred,this.restoreTabbarService=async a=>{var b;this.state=(0,p.fixLayout)(this.layoutState.getState(v.LAYOUT_STATE.MAIN,d));const{currentId:y,size:A}=this.state[a.location]||{};a.prevSize=A;let S=a.visibleContainers[0]&&a.visibleContainers[0].options.containerId;const w=this.appConfig.defaultPanels,T=w&&w[a.location];if(w&&T!==void 0)if(T)if(a.containersMap.has(T))S=T;else{const D=this.componentRegistry.getComponentRegistryInfo(T);D&&(!((b=this.appConfig.layoutConfig[a.location])===null||b===void 0)&&b.modules)&&~this.appConfig.layoutConfig[a.location].modules.indexOf(T)?S=D.options.containerId:this.logger.warn(`[defaultPanels] No \`${T}\` view found!`)}else S="";(0,_.isUndefined)(y)?(0,_.isUndefined)(S)?a.updateNextContainerId():a.updateCurrentContainerId(S):y&&!this.isDropContainer(y)?a.containersMap.has(y)?a.updateCurrentContainerId(y):this.findTabbarServiceByContainerId(y)?(this.moveContainerTo(y,a.location),a.updateCurrentContainerId(y)):(a.updateCurrentContainerId(S),a.updateNextContainerId(y)):(y===""||this.isDropContainer(y))&&a.updateCurrentContainerId("")},this.holdTabbarComponent=new Map,this.tabbarUpdateSet=new Set}didMount(){for(const[b,y]of this.pendingViewsMap.entries())y.forEach(({view:A,props:S})=>{this.collectViewComponent(A,b,S)});for(const b of this.contributions.getContributions())b.onDidRender&&b.onDidRender();const a=[];this.tabbarServices.forEach(b=>{c.slotRendererRegistry.isTabbar(b.location)&&b.containersMap.size>0&&a.push(b.viewReady.promise)}),Promise.all(a).then(()=>{this.viewReady.resolve()})}storeState(a,b){this.state[a.location]={currentId:b,size:a.prevSize},this.layoutState.setState(v.LAYOUT_STATE.MAIN,this.state)}onThemeChange(a){var b,y,A,S,w;const T=a.payload.theme;localStorage.setItem("theme",JSON.stringify({menuBarBackground:(b=T.getColor("kt.menubar.background"))===null||b===void 0?void 0:b.toString(),sideBarBackground:(y=T.getColor("sideBar.background"))===null||y===void 0?void 0:y.toString(),editorBackground:(A=T.getColor("editor.background"))===null||A===void 0?void 0:A.toString(),panelBackground:(S=T.getColor("panel.background"))===null||S===void 0?void 0:S.toString(),statusBarBackground:(w=T.getColor("statusBar.background"))===null||w===void 0?void 0:w.toString()}))}findTabbarServiceByContainerId(a){let b;for(const y of this.tabbarServices.values())if(y.containersMap.has(a)){b=y;break}return b}moveContainerTo(a,b){var y;const A=this.findTabbarServiceByContainerId(a);if(!A){this.logger.error(`cannot find container: ${a}`);return}const S=A.getContainer(a);if(!S){this.logger.error(`cannot find container: ${a}`);return}if(!(!((y=S.options)===null||y===void 0)&&y.draggable)){this.logger.warn(`container: ${a} is not draggable`);return}const w=this.getTabbarService(b);A.removeContainer(a),(!A.visibleContainers.length||A.currentContainerId.get()===a)&&this.toggleSlot(A.location,!1),w.dynamicAddContainer(a,S);const T=this.injector.get(u.TabBarHandler,[a,this.getTabbarService(w.location)]);this.handleMap.set(a,T)}showDropAreaForContainer(a){const b=this.findTabbarServiceByContainerId(a),y=this.tabbarServices.get("bottom"),A=this.tabbarServices.get("right");if(!b){this.logger.error(`cannot find container: ${a}`);return}b?.location==="right"&&y?.updateCurrentContainerId(g.DROP_BOTTOM_CONTAINER),b?.location==="bottom"&&A?.updateCurrentContainerId(g.DROP_RIGHT_CONTAINER)}hideDropArea(){const a=this.tabbarServices.get("bottom"),b=this.tabbarServices.get("right");a?.currentContainerId.get()===g.DROP_BOTTOM_CONTAINER&&a.updateCurrentContainerId(a.previousContainerId||""),b?.currentContainerId.get()===g.DROP_RIGHT_CONTAINER&&b.updateCurrentContainerId(b.previousContainerId||"")}isVisible(a){return!!this.getTabbarService(a).currentContainerId.get()}isViewVisible(a){const b=this.getTabbarHandler(a);if(!b||!b.isActivated())return!1;const y=b.accordionService.getViewState(a);return!y.collapsed&&!y.hidden}toggleSlot(a,b,y){var A;const S=this.getTabbarService(a);if(!S){this.debug.error(`Unable to switch panels because no TabbarService corresponding to \`${a}\` was found.`);return}b===!0?S.updateCurrentContainerId(this.findNonDropContainerId(S)):b===!1?S.updateCurrentContainerId(""):S.updateCurrentContainerId(S.currentContainerId.get()?"":this.findNonDropContainerId(S)),S.currentContainerId.get()&&y&&((A=S.resizeHandle)===null||A===void 0||A.setSize(y))}isDropContainer(a){return[g.DROP_BOTTOM_CONTAINER,g.DROP_RIGHT_CONTAINER].includes(a)}findNonDropContainerId(a){const b=a.currentContainerId.get();if(b&&!this.isDropContainer(b))return b;if(a.previousContainerId&&!this.isDropContainer(a.previousContainerId))return a.previousContainerId;for(const y of a.containersMap.keys())if(!this.isDropContainer(y))return y;return""}getTabbarService(a){const b=this.tabbarServices.get(a)||this.injector.get(h.TabbarService,[a]);if(!this.tabbarServices.get(a)){b.addDispose(b.onCurrentChange(({currentId:A})=>{if(this.storeState(b,A),this.eventBus.fire(new c.ExtensionActivateEvent({topic:"onView",data:A})),A&&g.SUPPORT_ACCORDION_LOCATION.has(b.location)){const S=this.getAccordionService(A);S?.tryUpdateResize(),S?.expandedViews.forEach(w=>{this.eventBus.fire(new c.ExtensionActivateEvent({topic:"onView",data:w.id}))})}})),b.viewReady.promise.then(()=>b.restoreState()).then(()=>this.restoreTabbarService(b)).catch(A=>{this.logger.error(`[TabbarService:${a}] restore state error`,A)});const y=(0,r.default)(()=>this.storeState(b,b.currentContainerId.get()),100);if(b.addDispose(b.onSizeChange(y)),a===c.SlotLocation.bottom){const A=(0,r.default)(()=>void this.bottomExpanded,100);b.addDispose(b.onSizeChange(()=>A))}this.tabbarServices.set(a,b)}return b}getAllAccordionService(){return this.accordionServices}getAccordionService(a,b){let y=this.accordionServices.get(a);return y||(y=this.injector.get(l.AccordionService,[a,b]),this.accordionServices.set(a,y)),y}getTabbarHandler(a){let b=this.doGetTabbarHandler(a);if(!b){const y=this.viewToContainerMap.get(a);y?b=this.doGetTabbarHandler(y||""):this.debug.warn(`${a} view tabbar not found.`)}return b}getContainer(a){for(const b of this.tabbarServices.values()){const y=b.getContainer(a);if(y)return y}}getExtraTopMenu(){return this.contextmenuService.createMenu({id:m.MenuId.ActivityBarTopExtra})}getExtraMenu(){return this.contextmenuService.createMenu({id:m.MenuId.ActivityBarExtra})}doGetTabbarHandler(a){let b=this.handleMap.get(a);if(!b){let y;for(const A of this.tabbarServices.values())if(A.getContainer(a)){y=A.location;break}y&&(b=this.injector.get(u.TabBarHandler,[a,this.getTabbarService(y)]),this.handleMap.set(a,b))}return b}collectTabbarComponent(a,b,y,A){if(A&&this.debug.warn("collectTabbarComponent api warning: Please move react component into options.component!"),b.hideIfEmpty&&!a.length&&!b.component){this.holdTabbarComponent.set(b.containerId,{views:a,options:b,side:y}),this.tabbarUpdateSet.has(b.containerId)&&this.tryUpdateTabbar(b.containerId);const w=this.getAccordionService(b.containerId);return w.addDispose(w.onBeforeAppendViewEvent(()=>{this.tryUpdateTabbar(b.containerId)})),w.addDispose(w.onAfterDisposeViewEvent(()=>{w.views.length===0&&(this.disposeContainer(b.containerId),this.holdTabbarComponent.set(b.containerId,{views:a,options:b,side:y}))})),b.containerId}return this.getTabbarService(y).registerContainer(b.containerId,{views:a,options:b}),a.forEach(w=>{this.viewToContainerMap.set(w.id,b.containerId)}),b.containerId}getViewAccordionService(a){const b=this.viewToContainerMap.get(a);if(b)return this.getAccordionService(b)}collectViewComponent(a,b,y={},A){this.customViews.set(a.id,a),this.viewToContainerMap.set(a.id,b);const S=this.getAccordionService(b);return y&&(a.initialProps=y),S.appendView(a,A?.isReplace),S.views.length===1&&(this.tabbarUpdateSet.add(b),this.tryUpdateTabbar(b)),A?.fromExtension&&this.disposableMap.set(a.id,this.commandRegistry.registerCommand({id:`${a.id}.focus`},{execute:async()=>(await this.ensureViewReady(a.id),this.commandService.executeCommand(`workbench.view.extension.${b}`,{forceShow:!0}))})),b}ensureViewReady(a){const b=this.viewToContainerMap.get(a),y=new _.Deferred,A=this.getAccordionService(b);return A.visibleViews.get().find(S=>S.id===a)?y.resolve():A.addDispose(A.onAfterAppendViewEvent(S=>{S===a&&y.resolve()})),y.promise}tryUpdateTabbar(a){const b=this.holdTabbarComponent.get(a);b&&(this.getTabbarService(b.side).registerContainer(a,{views:b.views,options:b.options}),this.tabbarUpdateSet.delete(a),this.holdTabbarComponent.delete(a))}replaceViewComponent(a,b){const y=this.viewToContainerMap.get(a.id);if(!y){this.debug.warn(`The container corresponding to \`${a.id}\` was not found, please check the incoming parameters!`);return}const A=this.customViews.get(a.id);A&&(a=Object.assign(A,a)),this.collectViewComponent(a,y,b,{isReplace:!0})}disposeViewComponent(a){const b=this.disposableMap.get(a);b&&b.dispose();const y=this.viewToContainerMap.get(a);if(!y){this.debug.warn(`The container corresponding to \`${a}\` was not found, please check the incoming parameters!`);return}this.getAccordionService(y).disposeView(a)}revealView(a){const b=this.viewToContainerMap.get(a);if(!b){this.debug.warn(`The container corresponding to \`${a}\` was not found, please check the incoming parameters!`);return}this.getAccordionService(b).revealView(a)}disposeContainer(a){let b;for(const y of this.tabbarServices.values())if(y.getContainer(a)){b=y.location;break}b?this.getTabbarService(b).disposeContainer(a):this.debug.warn(`The Tabbar to the \`${a}\` was not found.`)}expandBottom(a){const b=this.getTabbarService(c.SlotLocation.bottom);b.currentContainerId.get()||b.updateCurrentContainerId(b.currentContainerId.get()||b.previousContainerId||b.containersMap.keys().next().value),b.doExpand(a),this.contextKeyService.createKey("bottomFullExpanded",b.isExpanded)}get bottomExpanded(){const a=this.getTabbarService(c.SlotLocation.bottom);return this.contextKeyService.createKey("bottomFullExpanded",a.isExpanded),a.isExpanded}};t.LayoutService=E,n.__decorate([(0,o.Autowired)(o.INJECTOR_TOKEN),n.__metadata("design:type",o.Injector)],E.prototype,"injector",void 0),n.__decorate([(0,o.Autowired)(g.MainLayoutContribution),n.__metadata("design:type",Object)],E.prototype,"contributions",void 0),n.__decorate([(0,o.Autowired)(m.IMenuRegistry),n.__metadata("design:type",m.IMenuRegistry)],E.prototype,"menus",void 0),n.__decorate([(0,o.Autowired)(c.CommandRegistry),n.__metadata("design:type",Object)],E.prototype,"commandRegistry",void 0),n.__decorate([(0,o.Autowired)(c.CommandService),n.__metadata("design:type",Object)],E.prototype,"commandService",void 0),n.__decorate([(0,o.Autowired)(),n.__metadata("design:type",v.LayoutState)],E.prototype,"layoutState",void 0),n.__decorate([(0,o.Autowired)(c.AppConfig),n.__metadata("design:type",Object)],E.prototype,"appConfig",void 0),n.__decorate([(0,o.Autowired)(c.IContextKeyService),n.__metadata("design:type",Object)],E.prototype,"contextKeyService",void 0),n.__decorate([(0,o.Autowired)(c.ComponentRegistry),n.__metadata("design:type",Object)],E.prototype,"componentRegistry",void 0),n.__decorate([(0,o.Autowired)(c.ILogger),n.__metadata("design:type",Object)],E.prototype,"logger",void 0),n.__decorate([(0,o.Autowired)(m.AbstractMenuService),n.__metadata("design:type",m.AbstractMenuService)],E.prototype,"menuService",void 0),n.__decorate([(0,o.Autowired)(m.AbstractContextMenuService),n.__metadata("design:type",m.AbstractContextMenuService)],E.prototype,"contextmenuService",void 0),n.__decorate([(0,c.OnEvent)(s.ThemeChangedEvent),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[s.ThemeChangedEvent]),n.__metadata("design:returntype",void 0)],E.prototype,"onThemeChange",null),t.LayoutService=E=n.__decorate([(0,o.Injectable)()],E)},53576:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MainLayoutModuleContribution=t.RETRACT_BOTTOM_PANEL=t.EXPAND_BOTTOM_PANEL=t.IS_VISIBLE_RIGHT_PANEL_COMMAND=t.IS_VISIBLE_LEFT_PANEL_COMMAND=t.IS_VISIBLE_BOTTOM_PANEL_COMMAND=t.TOGGLE_BOTTOM_PANEL_COMMAND=t.SHOW_BOTTOM_PANEL_COMMAND=t.WORKBENCH_ACTION_CLOSEPANEL=t.HIDE_BOTTOM_PANEL_COMMAND=t.TOGGLE_RIGHT_PANEL_COMMAND=t.SHOW_RIGHT_PANEL_COMMAND=t.HIDE_RIGHT_PANEL_COMMAND=t.TOGGLE_LEFT_PANEL_COMMAND=t.SHOW_LEFT_PANEL_COMMAND=t.WORKBENCH_ACTION_CLOSESIDECAR=t.HIDE_LEFT_PANEL_COMMAND=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(30144),p=e(68456),v=e(95416),m=e(93899),_=e(43718),s=e(92323),g=e(17793),l=e(45395),h=e(68988),u=e(19951);t.HIDE_LEFT_PANEL_COMMAND={id:"main-layout.left-panel.hide",label:"%main-layout.left-panel.hide%"},t.WORKBENCH_ACTION_CLOSESIDECAR={id:"workbench.action.closeSidebar",label:"%main-layout.sidebar.hide%"},t.SHOW_LEFT_PANEL_COMMAND={id:"main-layout.left-panel.show",label:"%main-layout.left-panel.show%"},t.TOGGLE_LEFT_PANEL_COMMAND={id:"main-layout.left-panel.toggle",label:"%main-layout.left-panel.toggle%"},t.HIDE_RIGHT_PANEL_COMMAND={id:"main-layout.right-panel.hide",label:"%main-layout.right-panel.hide%"},t.SHOW_RIGHT_PANEL_COMMAND={id:"main-layout.right-panel.show",label:"%main-layout.right-panel.show%"},t.TOGGLE_RIGHT_PANEL_COMMAND={id:"main-layout.right-panel.toggle",label:"%main-layout.right-panel.toggle%"},t.HIDE_BOTTOM_PANEL_COMMAND={id:"main-layout.bottom-panel.hide",label:"%main-layout.bottom-panel.hide%"},t.WORKBENCH_ACTION_CLOSEPANEL={id:"workbench.action.closePanel",delegate:t.HIDE_BOTTOM_PANEL_COMMAND.id},t.SHOW_BOTTOM_PANEL_COMMAND={id:"main-layout.bottom-panel.show",label:"%main-layout.bottom-panel.show%"},t.TOGGLE_BOTTOM_PANEL_COMMAND={id:"main-layout.bottom-panel.toggle",iconClass:(0,o.getIcon)("minus"),label:"%layout.tabbar.toggle%"},t.IS_VISIBLE_BOTTOM_PANEL_COMMAND={id:"main-layout.bottom-panel.is-visible"},t.IS_VISIBLE_LEFT_PANEL_COMMAND={id:"main-layout.left-panel.is-visible"},t.IS_VISIBLE_RIGHT_PANEL_COMMAND={id:"main-layout.right-panel.is-visible"},t.EXPAND_BOTTOM_PANEL={id:"main-layout.bottom-panel.expand",label:"%layout.tabbar.expand%",iconClass:(0,o.getIcon)("expand")},t.RETRACT_BOTTOM_PANEL={id:"main-layout.bottom-panel.retract",label:"%layout.tabbar.retract%",iconClass:(0,o.getIcon)("shrink")};let d=class extends _.WithEventBus{async initialize(){await this.layoutState.initStorage();const f=this.contributionProvider.getContributions();for(const y of f)y.registerComponent&&y.registerComponent(this.componentRegistry);const a=this.rendererContributionProvider.getContributions();for(const y of a)y.registerRenderer&&y.registerRenderer(o.slotRendererRegistry);const b=this.toolBarContributionProvider.getContributions();for(const y of b)y.registerToolbarItems&&y.registerToolbarItems(this.toolBarRegistry)}registerComponent(f){f.register(g.DROP_RIGHT_CONTAINER,[],{component:l.RightDropArea,hideTab:!0,containerId:g.DROP_RIGHT_CONTAINER}),f.register(g.DROP_BOTTOM_CONTAINER,[],{component:l.BottomDropArea,hideTab:!0,containerId:g.DROP_BOTTOM_CONTAINER})}async onStart(){this.registerSideToggleKey()}async onDidStart(){this.mainLayoutService.didMount()}registerRenderer(f){f.registerSlotRenderer(o.SlotLocation.right,u.RightTabRenderer),f.registerSlotRenderer(o.SlotLocation.left,u.LeftTabRenderer),f.registerSlotRenderer(o.SlotLocation.bottom,u.BottomTabRenderer)}registerCommands(f){f.registerCommand(t.HIDE_LEFT_PANEL_COMMAND,{execute:()=>{this.mainLayoutService.toggleSlot(o.SlotLocation.left,!1)}}),f.registerCommand(t.SHOW_LEFT_PANEL_COMMAND,{execute:a=>{this.mainLayoutService.toggleSlot(o.SlotLocation.left,!0,a)}}),f.registerCommand(t.TOGGLE_LEFT_PANEL_COMMAND,{execute:(a,b)=>{this.mainLayoutService.toggleSlot(o.SlotLocation.left,a,b)}}),f.registerCommand(t.HIDE_RIGHT_PANEL_COMMAND,{execute:()=>{this.mainLayoutService.toggleSlot(o.SlotLocation.right,!1)}}),f.registerCommand(t.SHOW_RIGHT_PANEL_COMMAND,{execute:a=>{this.mainLayoutService.toggleSlot(o.SlotLocation.right,!0,a)}}),f.registerCommand(t.TOGGLE_RIGHT_PANEL_COMMAND,{execute:(a,b)=>{this.mainLayoutService.toggleSlot(o.SlotLocation.right,a,b)}}),f.registerCommand(t.WORKBENCH_ACTION_CLOSESIDECAR,{execute:()=>Promise.all([this.mainLayoutService.toggleSlot(o.SlotLocation.left,!1),this.mainLayoutService.toggleSlot(o.SlotLocation.right,!1)])}),f.registerCommand(t.SHOW_BOTTOM_PANEL_COMMAND,{execute:()=>{this.mainLayoutService.toggleSlot(o.SlotLocation.bottom,!0)}}),f.registerCommand(t.HIDE_BOTTOM_PANEL_COMMAND,{execute:()=>{this.mainLayoutService.toggleSlot(o.SlotLocation.bottom,!1)}}),f.registerCommand(t.WORKBENCH_ACTION_CLOSEPANEL),f.registerCommand(t.IS_VISIBLE_BOTTOM_PANEL_COMMAND,{execute:()=>this.mainLayoutService.getTabbarService("bottom").currentContainerId.get()!==""}),f.registerCommand(t.IS_VISIBLE_LEFT_PANEL_COMMAND,{execute:()=>this.mainLayoutService.isVisible(o.SlotLocation.left)}),f.registerCommand(t.IS_VISIBLE_RIGHT_PANEL_COMMAND,{execute:()=>this.mainLayoutService.isVisible(o.SlotLocation.left)}),f.registerCommand({id:"view.outward.right-panel.hide"},{execute:()=>{this.commandService.executeCommand("main-layout.right-panel.toggle",!1)}}),f.registerCommand({id:"view.outward.right-panel.show"},{execute:a=>{this.commandService.executeCommand("main-layout.right-panel.toggle",!0,a)}}),f.registerCommand({id:"view.outward.left-panel.hide"},{execute:()=>{this.commandService.executeCommand("main-layout.left-panel.toggle",!1)}}),f.registerCommand({id:"view.outward.left-panel.show"},{execute:a=>{this.commandService.executeCommand("main-layout.left-panel.toggle",!0,a)}}),f.registerCommand({id:o.LAYOUT_COMMANDS.MAXIMIZE_EDITOR.id},{execute:()=>{this.commandService.executeCommand(t.TOGGLE_RIGHT_PANEL_COMMAND.id,!1),this.commandService.executeCommand(t.TOGGLE_LEFT_PANEL_COMMAND.id,!1)}}),f.registerCommand(o.LAYOUT_COMMANDS.OPEN_VIEW,{execute:()=>{this.commandService.executeCommand(o.QUICK_OPEN_COMMANDS.OPEN_VIEW.id)}})}registerMenus(f){f.registerMenuItem(m.MenuId.ActivityBarExtra,{submenu:m.MenuId.SettingsIconMenu,iconClass:(0,o.getIcon)("setting"),label:(0,_.localize)("layout.tabbar.setting"),order:1,group:"navigation"}),Object.entries({[o.SlotLocation.left]:[c.EXPLORER_CONTAINER_ID,c.SEARCH_CONTAINER_ID,c.SCM_CONTAINER_ID,c.DEBUG_CONTAINER_ID,c.EXTENSION_CONTAINER_ID],[o.SlotLocation.bottom]:[c.MARKER_CONTAINER_ID,c.OUTPUT_CONTAINER_ID,c.DEBUG_CONSOLE_CONTAINER_ID,c.TERMINAL_CONTAINER_ID]}).forEach(([a,b],y)=>{const A=this.mainLayoutService.getTabbarService(a);A.viewReady.promise.then(()=>{b.forEach(S=>{var w,T;const D=A.getContainer(S);D&&f.registerMenuItem(m.MenuId.MenubarViewMenu,{command:{id:`container.toggle.${S}`,label:(T=(w=D.options)===null||w===void 0?void 0:w.title)!==null&&T!==void 0?T:S},group:`${3+y}_${a}`})})})}),f.registerMenuItem(m.MenuId.MenubarViewMenu,{command:t.TOGGLE_LEFT_PANEL_COMMAND,group:"5_panel"}),f.registerMenuItem(m.MenuId.MenubarViewMenu,{command:t.TOGGLE_RIGHT_PANEL_COMMAND,group:"5_panel"}),f.registerMenuItem(m.MenuId.MenubarViewMenu,{command:t.TOGGLE_BOTTOM_PANEL_COMMAND,group:"5_panel"}),f.registerMenuItem(m.MenuId.MenubarViewMenu,{command:t.EXPAND_BOTTOM_PANEL,group:"5_panel",when:"!bottomFullExpanded"}),f.registerMenuItem(m.MenuId.MenubarViewMenu,{command:t.RETRACT_BOTTOM_PANEL,group:"5_panel",when:"bottomFullExpanded"}),f.registerMenuItem(m.MenuId.MenubarViewMenu,{command:{id:o.EDITOR_COMMANDS.TOGGLE_WORD_WRAP.id,label:"%preference.editor.wordWrap%"},group:"6_capability",toggledWhen:"config.editor.wordWrap == on"})}registerSideToggleKey(){this.keybindingRegistry.registerKeybinding({keybinding:"ctrlcmd+b",command:t.TOGGLE_LEFT_PANEL_COMMAND.id}),this.keybindingRegistry.registerKeybinding({keybinding:"ctrlcmd+j",command:t.TOGGLE_BOTTOM_PANEL_COMMAND.id}),this.keybindingRegistry.registerKeybinding({keybinding:"ctrlcmd+shift+j",command:t.EXPAND_BOTTOM_PANEL.id,when:"!bottomFullExpanded"}),this.keybindingRegistry.registerKeybinding({keybinding:"ctrlcmd+shift+j",command:t.RETRACT_BOTTOM_PANEL.id,when:"bottomFullExpanded"})}registerQuickOpenHandlers(f){f.registerHandler(this.quickOpenViewHandler,{title:(0,_.localize)("layout.action.openView"),commandId:o.LAYOUT_COMMANDS.QUICK_OPEN_VIEW.id,order:5,hideTab:!0})}};t.MainLayoutModuleContribution=d,n.__decorate([(0,r.Autowired)(g.IMainLayoutService),n.__metadata("design:type",Object)],d.prototype,"mainLayoutService",void 0),n.__decorate([(0,r.Autowired)(o.IContextKeyService),n.__metadata("design:type",Object)],d.prototype,"contextKeyService",void 0),n.__decorate([(0,r.Autowired)(_.IEventBus),n.__metadata("design:type",Object)],d.prototype,"eventBus",void 0),n.__decorate([(0,r.Autowired)(p.ComponentContribution),n.__metadata("design:type",Object)],d.prototype,"contributionProvider",void 0),n.__decorate([(0,r.Autowired)(o.SlotRendererContribution),n.__metadata("design:type",Object)],d.prototype,"rendererContributionProvider",void 0),n.__decorate([(0,r.Autowired)(p.ComponentRegistry),n.__metadata("design:type",Object)],d.prototype,"componentRegistry",void 0),n.__decorate([(0,r.Autowired)(s.CommandService),n.__metadata("design:type",Object)],d.prototype,"commandService",void 0),n.__decorate([(0,r.Autowired)(),n.__metadata("design:type",v.LayoutState)],d.prototype,"layoutState",void 0),n.__decorate([(0,r.Autowired)(p.TabBarToolbarContribution),n.__metadata("design:type",Object)],d.prototype,"toolBarContributionProvider",void 0),n.__decorate([(0,r.Autowired)(),n.__metadata("design:type",p.ToolbarRegistry)],d.prototype,"toolBarRegistry",void 0),n.__decorate([(0,r.Autowired)(o.KeybindingRegistry),n.__metadata("design:type",Object)],d.prototype,"keybindingRegistry",void 0),n.__decorate([(0,r.Autowired)(h.ViewQuickOpenHandler),n.__metadata("design:type",h.ViewQuickOpenHandler)],d.prototype,"quickOpenViewHandler",void 0),t.MainLayoutModuleContribution=d=n.__decorate([(0,_.Domain)(s.CommandContribution,o.ClientAppContribution,o.SlotRendererContribution,m.MenuContribution,o.QuickOpenContribution,p.ComponentContribution)],d)},68988:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ViewQuickOpenItem=t.ContainerQuickOpenItem=t.ViewQuickOpenHandler=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(74404),p=e(17793);let v=class{constructor(){this.prefix="view ",this.description=(0,o.localize)("layout.action.openView")}getModel(){return{onType:(g,l)=>l(this.getViewQuickOpenItems())}}getViewQuickOpenItems(){var g;const l=this.layoutService.getAllAccordionService(),h=Array.from(l.keys());let u=[];u=u.concat(h.map((d,E)=>this.injector.get(m,[d,{groupLabel:E===0?(0,o.localize)("layout.openView.containerTitle"):"",showBorder:!1}])));for(const d of h){const E=(g=l.get(d))===null||g===void 0?void 0:g.views;if(E)for(let f=0,a=E.length;f<a;f++)u.push(this.injector.get(_,[d,E[f],{groupLabel:f===0?(0,o.formatLocalize)("layout.openView.viewTitle",String(d).toUpperCase()):"",showBorder:!1}]))}return u}getOptions(){return{}}onClose(){}};t.ViewQuickOpenHandler=v,n.__decorate([(0,r.Autowired)(c.PrefixQuickOpenService),n.__metadata("design:type",Object)],v.prototype,"quickOpenService",void 0),n.__decorate([(0,r.Autowired)(p.IMainLayoutService),n.__metadata("design:type",Object)],v.prototype,"layoutService",void 0),n.__decorate([(0,r.Autowired)(r.INJECTOR_TOKEN),n.__metadata("design:type",r.Injector)],v.prototype,"injector",void 0),t.ViewQuickOpenHandler=v=n.__decorate([(0,r.Injectable)()],v);let m=class extends c.QuickOpenItem{constructor(g,l){super(l),this.containerId=g,this.options=l}getLabel(){return String(this.containerId).toLocaleUpperCase()}isHidden(){return super.isHidden()}run(g){if(g!==c.Mode.OPEN)return!1;const l=this.layoutService.getTabbarHandler(this.containerId);return l?.activate(),!0}};t.ContainerQuickOpenItem=m,n.__decorate([(0,r.Autowired)(p.IMainLayoutService),n.__metadata("design:type",Object)],m.prototype,"layoutService",void 0),t.ContainerQuickOpenItem=m=n.__decorate([(0,r.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[Object,Object])],m);let _=class extends c.QuickOpenItem{constructor(g,l,h){super(h),this.containerId=g,this.view=l,this.options=h}getLabel(){var g;return(g=this.view.name)===null||g===void 0?void 0:g.toUpperCase()}isHidden(){return super.isHidden()}run(g){if(g!==c.Mode.OPEN)return!1;const l=this.layoutService.getTabbarHandler(this.containerId);return l&&(l.activate(),l.isCollapsed(this.view.id)&&l?.setCollapsed(this.view.id,!1)),!0}};t.ViewQuickOpenItem=_,n.__decorate([(0,r.Autowired)(p.IMainLayoutService),n.__metadata("design:type",Object)],_.prototype,"layoutService",void 0),t.ViewQuickOpenItem=_=n.__decorate([(0,r.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[String,Object,Object])],_)},58999:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TabBarHandler=void 0;const n=e(85608),r=e(76003),o=e(43718),c=e(17793),p=e(752);let v=class{constructor(_,s){this.containerId=_,this.tabbarService=s,this.onActivateEmitter=new o.Emitter,this.onActivate=this.onActivateEmitter.event,this.onInActivateEmitter=new o.Emitter,this.onInActivate=this.onInActivateEmitter.event,this.onCollapseEmitter=new o.Emitter,this.onCollapse=this.onCollapseEmitter.event,this.isVisible=!1,this.accordionService=this.layoutService.getAccordionService(this.containerId),s.currentContainerId.get()===this.containerId&&(this.onActivateEmitter.fire(),this.isVisible=!0),this.tabbarService.onCurrentChange(g=>{g.currentId===this.containerId?(this.onActivateEmitter.fire(),this.isVisible=!0):g.previousId===this.containerId&&(this.onInActivateEmitter.fire(),this.isVisible=!1)})}dispose(){this.tabbarService.containersMap.delete(this.containerId),this.tabbarService.disposeContainer(this.containerId)}disposeView(_){this.layoutService.disposeViewComponent(_)}activate(){this.tabbarService.updateCurrentContainerId(this.containerId)}deactivate(){this.tabbarService.updateCurrentContainerId("")}isActivated(){return this.tabbarService.currentContainerId.get()===this.containerId}show(){this.tabbarService.showContainer(this.containerId)}hide(){this.tabbarService.hideContainer(this.containerId)}setTitleComponent(_,s){const g=this.tabbarService.getContainer(this.containerId);g&&g.options&&(g.options.titleProps=s,g.options.titleComponent=_,g.fireChange(g))}setSize(_){this.layoutService.toggleSlot(this.tabbarService.location,!0,_+this.tabbarService.getBarSize())}setBadge(_){this.tabbarService.updateBadge(this.containerId,_)}getBadge(){return this.tabbarService.getContainer(this.containerId).options.badge}setIconClass(_){this.tabbarService.getContainer(this.containerId).options.iconClass=_}isCollapsed(_){return this.accordionService.getViewState(_).collapsed}setCollapsed(_,s){this.accordionService.toggleOpen(_,s)}toggleViews(_,s){for(const g of _){const l=this.accordionService.getViewState(g);this.accordionService.updateViewState(g,{...l,hidden:!s})}}updateViewTitle(_,s){this.accordionService.updateViewTitle(_,s)}updateViewDescription(_,s){this.accordionService.updateViewDesciption(_,s)}updateViewMessage(_,s){this.accordionService.updateViewMessage(_,s)}updateTitle(_){this.tabbarService.updateTitle(this.containerId,_)}setResizeLock(_){this.tabbarService.resizeHandle.lockSize(_)}};t.TabBarHandler=v,n.__decorate([(0,r.Autowired)(c.IMainLayoutService),n.__metadata("design:type",Object)],v.prototype,"layoutService",void 0),t.TabBarHandler=v=n.__decorate([(0,r.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[String,p.TabbarService])],v)},46245:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChatTabbarRenderer2=t.BottomTabbarRenderer=t.LeftTabbarRenderer=t.RightTabbarRenderer=t.TextElipses=t.IconElipses=t.TextTabView=t.IconTabView=t.TabbarViewBase=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),c=e(97267),p=e(41869),v=e(25918),m=e(25719),_=e(63373),s=e(68969),g=e(17793),l=e(19951),h=n.__importDefault(e(5330)),u=e(752);function d(I,O){return O>=I.length?[I,[]]:O<=1?[[],I]:[I.slice(0,O-1),I.slice(O-1)]}function E(I){return typeof I=="string"?parseInt(I,10)>99?"99+":I:typeof I=="object"&&I.value?I.value>99?"99+":I.value:""}const f=I=>{var O;const{TabView:M,MoreTabView:R,forbidCollapse:P,barSize:k=48,panelBorderSize:F=0,tabClassName:L,className:B,margin:j,tabSize:W,canHideTabbar:U,renderOtherVisibleContainers:X=()=>null,disableAutoAdjust:V}=I,{side:$,direction:Y,fullSize:G}=o.default.useContext(l.TabbarConfig),H=(0,p.useInjectable)(u.TabbarServiceFactory)($),K=(0,p.useDesignStyles)(h.default.tab_bar,"tab_bar"),Z=(0,p.useDesignStyles)(h.default.bar_content,"bar_content");o.default.useEffect(()=>{H.updateBarSize(k+F)},[]);const Q=(0,p.useAutorun)(H.currentContainerId),oe=(0,p.usePreference)("workbench.hideSlotTabBarWhenHidePanel",!1),te=U&&oe;te&&!Q&&((O=H.resizeHandle)===null||O===void 0||O.setSize(0));const ue=V?Number.MAX_SAFE_INTEGER:Math.floor(G-(j||0)/W),[_e,q]=d(H.visibleContainers.filter(pe=>{var ie;return!(!((ie=pe.options)===null||ie===void 0)&&ie.hideTab)}),ue);q.forEach(pe=>{H.updateTabInMoreKey(pe.options.containerId,!0)});const be=o.default.useCallback((pe,ie,ge,Re)=>{var Pe,Ae,we;const Ee=(Pe=pe.options)===null||Pe===void 0?void 0:Pe.containerId;if(!Ee||Re&&(!((we=(Ae=pe.options)===null||Ae===void 0?void 0:Ae.hideLocationTab)===null||we===void 0)&&we.includes(Re)))return null;ie.updateTabInMoreKey(Ee,!1);let fe;return o.default.createElement("li",{draggable:!0,onDragStart:xe=>{if(fe){const Ie=fe.cloneNode(!0);Ie.classList.add(h.default.dragging),L&&(0,p.addClassName)(Ie,L),document.body.appendChild(Ie),xe.persist(),requestAnimationFrame(()=>{xe.dataTransfer.setDragImage(Ie,0,0),document.body.removeChild(Ie)})}ie.handleDragStart(xe,Ee)},onDragOver:xe=>{xe.preventDefault(),fe&&fe.classList.add("on-drag-over")},onDragLeave:()=>{fe&&fe.classList.remove("on-drag-over")},onDrop:xe=>{fe&&fe.classList.remove("on-drag-over"),ie.handleDrop(xe,Ee)},onDragEnd:xe=>{ie.handleDragEnd(xe)},key:Ee,id:Ee,onContextMenu:xe=>ie.handleContextMenu(xe,Ee),onClick:xe=>ie.handleTabClick(xe,te||P),ref:xe=>fe=xe,className:(0,r.default)({active:ge===Ee},L)},o.default.createElement(M,{component:pe}))},[]);return o.default.createElement("div",{className:(0,r.default)([K,B])},o.default.createElement("div",{className:Z,style:{flexDirection:m.Layout.getTabbarDirection(Y)}},_e.map(pe=>be(pe,H,Q,$)),X({props:I,renderContainers:be}),q.length?o.default.createElement("li",{key:"tab-more",onClick:pe=>{var ie;return H.showMoreMenu(pe,_e[_e.length-1]&&((ie=_e[_e.length-1].options)===null||ie===void 0?void 0:ie.containerId))},className:L},o.default.createElement(R,null)):null))};t.TabbarViewBase=f;const a=({component:I})=>{var O,M,R;const P=(0,p.useInjectable)(s.IProgressService),k=(0,p.useInjectable)(p.KeybindingRegistry),F=(0,p.useDesignStyles)(h.default.icon_tab,"icon_tab"),[L,B]=o.default.useState(I),j=P.getIndicator(((O=L.options)===null||O===void 0?void 0:O.containerId)||""),W=(0,p.useAutorun)(j.progressModel.show),U=o.default.useMemo(()=>{const X=L.options;return X?.activateKeyBinding?`${X?.title} (${k.acceleratorForKeyString(X.activateKeyBinding,"+")})`:X?.title},[L]);return(0,o.useEffect)(()=>{const X=L.onChange(V=>{B({...V})});return()=>{X.dispose()}},[L]),o.default.createElement("div",{className:F},o.default.createElement("div",{className:(0,r.default)((M=L.options)===null||M===void 0?void 0:M.iconClass,"activity-icon"),title:U}),W?o.default.createElement(c.Badge,{className:h.default.tab_badge},o.default.createElement("span",{className:h.default.icon_wrapper},o.default.createElement(c.Icon,{icon:"time-circle"}))):((R=L.options)===null||R===void 0?void 0:R.badge)&&o.default.createElement(c.Badge,{className:h.default.tab_badge},E(L.options.badge)))};t.IconTabView=a;const b=({component:I})=>{var O,M,R;const[P,k]=o.default.useState(I);return(0,o.useEffect)(()=>{const F=P.onChange(L=>{k({...L})});return()=>{F.dispose()}},[P]),o.default.createElement("div",{className:h.default.text_tab},o.default.createElement("div",{className:h.default.bottom_tab_title},(M=(O=P.options)===null||O===void 0?void 0:O.title)===null||M===void 0?void 0:M.toUpperCase()),((R=P.options)===null||R===void 0?void 0:R.badge)&&o.default.createElement(c.Badge,{className:h.default.tab_badge},E(P.options.badge)))};t.TextTabView=b;const y=()=>{const I=(0,p.useDesignStyles)(h.default.icon_tab,"icon_tab");return o.default.createElement("div",{className:I},o.default.createElement("div",{className:(0,r.default)((0,p.getIcon)("ellipsis"),"activity-icon"),title:"extra tabs"}))};t.IconElipses=y;const A=()=>o.default.createElement("div",{className:h.default.text_tab},o.default.createElement("div",{className:h.default.bottom_tab_title},o.default.createElement("i",{className:(0,p.getIcon)("doubleright")})));t.TextElipses=A;const S=I=>{const{barSize:O=48,style:M}=I,{side:R}=o.default.useContext(l.TabbarConfig),P=(0,p.useInjectable)(u.TabbarServiceFactory)(R),k=(0,p.useDesignStyles)(h.default.right_tab_bar,"right_tab_bar"),F=(0,p.useDesignStyles)(h.default.right_tab,"right_tab");return o.default.createElement("div",{id:_.VIEW_CONTAINERS.RIGHT_TABBAR,className:k,style:M,onContextMenu:P.handleContextMenu},o.default.createElement(t.TabbarViewBase,{tabSize:48,MoreTabView:t.IconElipses,tabClassName:F,TabView:t.IconTabView,barSize:O,panelBorderSize:1}))};t.RightTabbarRenderer=S;const w=({renderOtherVisibleContainers:I,isRenderExtraTopMenus:O=!0,renderExtraMenus:M,tabbarViewProps:R})=>{const{side:P}=o.default.useContext(l.TabbarConfig),k=(0,p.useInjectable)(g.IMainLayoutService),F=(0,p.useInjectable)(u.TabbarServiceFactory)(P),L=o.default.useMemo(()=>k.getExtraTopMenu(),[k]),B=o.default.useMemo(()=>k.getExtraMenu(),[k]),j=(0,p.useDesignStyles)(h.default.left_tab_bar,"left_tab_bar"),W=(0,p.useDesignStyles)(h.default.left_tab,"left_tab");return o.default.createElement("div",{id:_.VIEW_CONTAINERS.LEFT_TABBAR,className:j,onContextMenu:F.handleContextMenu},O&&o.default.createElement(v.InlineMenuBar,{className:(0,r.default)(h.default.vertical_icons,h.default.extra_top_menus),menus:L}),o.default.createElement(t.TabbarViewBase,{tabSize:48,MoreTabView:t.IconElipses,className:h.default.left_tab_content,tabClassName:W,TabView:t.IconTabView,barSize:48,margin:90,panelBorderSize:1,renderOtherVisibleContainers:I,...R}),M||o.default.createElement(v.InlineMenuBar,{className:h.default.vertical_icons,menus:B}))};t.LeftTabbarRenderer=w;const T=()=>{const{side:I}=o.default.useContext(l.TabbarConfig),O=(0,p.useInjectable)(u.TabbarServiceFactory)(I),M=(0,p.useDesignStyles)(h.default.bottom_bar_container,"bottom_bar_container"),R=(0,p.useDesignStyles)(h.default.bottom_tab,"bottom_tab");return o.default.createElement("div",{id:_.VIEW_CONTAINERS.BOTTOM_TABBAR,onContextMenu:O.handleContextMenu,className:(0,r.default)(M,"next_bottom_bar")},o.default.createElement(t.TabbarViewBase,{tabSize:80,MoreTabView:t.TextElipses,tabClassName:R,TabView:t.TextTabView,barSize:24,panelBorderSize:1,canHideTabbar:!0}))};t.BottomTabbarRenderer=T;const D=I=>{const{barSize:O=32,style:M}=I,{side:R}=o.default.useContext(l.TabbarConfig),P=(0,p.useInjectable)(u.TabbarServiceFactory)(R);(0,o.useEffect)(()=>{P.setIsLatter(!0)},[P]);const k=(0,p.useDesignStyles)(h.default.ai_right_tab_bar,"ai_right_tab_bar"),F=(0,p.useDesignStyles)(h.default.ai_right_tab,"ai_right_tab");return o.default.createElement("div",{id:R,className:k,style:M,onContextMenu:P.handleContextMenu},o.default.createElement(t.TabbarViewBase,{tabSize:32,MoreTabView:t.IconElipses,tabClassName:F,TabView:t.IconTabView,barSize:O,panelBorderSize:1}))};t.ChatTabbarRenderer2=D},66368:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BottomTabPanelRenderer=t.LeftTabPanelRenderer=t.RightTabPanelRenderer=t.ContainerView=t.BaseTabPanelView=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),c=e(76003),p=e(41869),v=e(25918),m=e(1149),_=e(68969),s=e(68974),g=e(9522),l=e(70936),h=e(91527),u=e(19951),d=n.__importDefault(e(5330)),E=e(752),f=o.default.memo(({children:I})=>I,(I,O)=>!(I.visible||O.visible)),a={display:"block"},b={display:"none"},y=I=>{const{PanelView:O,panelSize:M,id:R,PanelViewProps:P}=I,{side:k}=o.default.useContext(u.TabbarConfig),F=(0,p.useInjectable)(p.AppConfig),L=F.panelSizes&&F.panelSizes[k],B=(0,p.useInjectable)(E.TabbarServiceFactory)(k),j=(0,p.useAutorun)(B.currentContainerId),W=(0,p.useDesignStyles)(d.default.tab_panel,"tab_panel"),U=(0,p.useDesignStyles)(d.default.tab_panel_hidden,"tab_panel_hidden");return o.default.useEffect(()=>{B.updatePanelSize(L||M||335)},[]),o.default.createElement("div",{id:R,className:(0,r.default)("kt-tab-panel",W,{[U]:!j})},B.visibleContainers.map(X=>{var V;const $=(V=X.options)===null||V===void 0?void 0:V.containerId;if(!$)return null;const Y=B.getTitleToolbarMenu($);return o.default.createElement("div",{key:$,className:(0,r.default)(d.default.panel_wrap,$),"data-viewlet-id":$,style:j===$?a:b,id:R},o.default.createElement(p.ErrorBoundary,null,o.default.createElement(f,{visible:j===$},o.default.createElement(O,{titleMenu:Y,side:k,component:X,...P}))))}))};t.BaseTabPanelView=y;const A=({component:I,titleMenu:O,side:M,renderContainerWrap:R,className:P,customTitleBar:k})=>{var F,L;const B=o.default.useRef(),j=o.default.useRef(null),W=(0,p.useInjectable)(p.AppConfig),{title:U,titleComponent:X,component:V,containerId:$,draggable:Y}=I.options||{},G=(0,p.useInjectable)(c.INJECTOR_TOKEN),H=(0,p.useInjectable)(m.LayoutViewSizeConfig),K=(0,o.useCallback)(ue=>{G.get(g.AccordionServiceFactory)($).handleContextMenu(ue)},[$]);if(!$)return null;const Q=(0,p.useInjectable)(_.IProgressService).getIndicator($);if(!Q)return null;const oe=(0,p.useViewState)(M,j),te=o.default.useCallback(ue=>R?R({children:ue}):ue,[R]);return o.default.createElement("div",{ref:j,className:(0,r.default)(d.default.view_container,P)},!!k&&k,!V&&o.default.createElement("div",{onContextMenu:K,className:d.default.panel_titlebar},U?o.default.createElement(h.TitleBar,{containerId:$,side:M,title:U,draggable:Y,height:H.panelTitleBarHeight,menubar:o.default.createElement(v.InlineActionBar,{menus:O})}):null,X&&o.default.createElement("div",{className:d.default.panel_component},o.default.createElement(p.ConfigProvider,{value:W},o.default.createElement(p.ComponentRenderer,{Component:X,initialProps:(F=I.options)===null||F===void 0?void 0:F.titleProps})))),o.default.createElement("div",{className:d.default.container_wrap,ref:ue=>B.current=ue},o.default.createElement(s.ProgressBar,{progressModel:Q.progressModel}),te(V?o.default.createElement(p.ConfigProvider,{value:W},o.default.createElement(p.ComponentRenderer,{initialProps:{viewState:oe,...(L=I.options)===null||L===void 0?void 0:L.initialProps},Component:V})):o.default.createElement(l.AccordionContainer,{views:I.views,minSize:I.options.miniSize,containerId:I.options.containerId}))))};t.ContainerView=A;const S=({component:I,titleMenu:O,side:M})=>{var R,P,k,F;const L=o.default.useRef(),B=o.default.useRef(null),j=(0,p.useInjectable)(p.AppConfig),W=(0,p.useInjectable)(E.TabbarServiceFactory)(M),U=(0,p.useDesignStyles)(d.default.panel_title_bar,"panel_title_bar"),X=(0,p.useDesignStyles)(d.default.panel_toolbar_container,"panel_toolbar_container"),V=(0,p.useViewState)(M,B),$=(0,p.useInjectable)(m.LayoutViewSizeConfig),Y=(0,p.useInjectable)(_.IProgressService),{component:G,containerId:H}=I.options||{},K=I.options&&I.options.titleComponent;if(!H)return null;const Z=Y.getIndicator(H);return Z?o.default.createElement("div",{ref:B,className:d.default.panel_container},o.default.createElement("div",{className:U,style:{height:$.panelTitleBarHeight}},o.default.createElement("h1",null,(P=(R=I.options)===null||R===void 0?void 0:R.title)===null||P===void 0?void 0:P.toUpperCase()),o.default.createElement("div",{className:d.default.title_component_container},K&&o.default.createElement(p.ComponentRenderer,{Component:K,initialProps:(k=I.options)===null||k===void 0?void 0:k.titleProps})),o.default.createElement("div",{className:X},O&&o.default.createElement(v.InlineActionBar,{menus:O}),o.default.createElement(v.InlineMenuBar,{menus:W.commonTitleMenu,moreAtFirst:!0}))),o.default.createElement("div",{className:d.default.container_wrap,ref:Q=>L.current=Q},o.default.createElement(s.ProgressBar,{progressModel:Z.progressModel}),G?o.default.createElement(p.ConfigProvider,{value:j},o.default.createElement(p.ComponentRenderer,{initialProps:{viewState:V,...(F=I.options)===null||F===void 0?void 0:F.initialProps},Component:G})):o.default.createElement(l.AccordionContainer,{views:I.views,alignment:"horizontal",minSize:I.options.miniSize,containerId:I.options.containerId}))):null},w=()=>o.default.createElement(t.BaseTabPanelView,{PanelView:t.ContainerView});t.RightTabPanelRenderer=w;const T=()=>o.default.createElement(t.BaseTabPanelView,{PanelView:t.ContainerView});t.LeftTabPanelRenderer=T;const D=()=>o.default.createElement(t.BaseTabPanelView,{PanelView:S,panelSize:280});t.BottomTabPanelRenderer=D},19951:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BottomTabRenderer=t.LeftTabRenderer=t.RightTabRenderer=t.TabRendererBase=t.TabbarConfig=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),c=e(41869),p=e(81878),v=e(25719),m=e(63373),_=e(46245),s=e(66368),g=n.__importDefault(e(5330)),l=e(752);t.TabbarConfig=(0,o.createContext)({side:c.SlotLocation.left,direction:"left-to-right",fullSize:0}),t.TabRendererBase=(0,o.memo)(({id:E,className:f,components:a,direction:b="left-to-right",TabbarView:y,side:A,TabpanelView:S})=>{const w=(0,c.useInjectable)(l.TabbarServiceFactory)(A),T=(0,c.useInjectable)(c.IEventBus),D=(0,o.useContext)(p.PanelContext),I=(0,o.useRef)(null),[O,M]=(0,o.useState)(0);(0,o.useLayoutEffect)(()=>{w.registerResizeHandle(D),a.forEach(P=>{w.registerContainer(P.options.containerId,P)}),w.updatePanelVisibility(),w.ensureViewReady()},[a]);const R=(0,o.useCallback)(()=>{I.current&&M(I.current[v.Layout.getDomSizeProperty(b)])},[]);return(0,o.useEffect)(()=>{c.fastdom.measure(()=>{R()});let P;T.onDirective(c.ResizeEvent.createDirective(A),()=>{P&&P.dispose(),P=c.fastdom.measureAtNextFrame(()=>{R()})})},[]),o.default.createElement("div",{ref:I,id:E,className:(0,r.default)(g.default.tab_container,f),style:{flexDirection:v.Layout.getFlexDirection(b)}},o.default.createElement(t.TabbarConfig.Provider,{value:{side:A,direction:b,fullSize:O}},o.default.createElement(y,null),o.default.createElement(S,null)))});const h=({className:E,components:f,tabbarView:a,tabpanelView:b})=>o.default.createElement(t.TabRendererBase,{side:c.SlotLocation.right,direction:"right-to-left",id:m.VIEW_CONTAINERS.RIGHT_TABBAR_PANEL,className:(0,r.default)(E,"right-slot"),components:f,TabbarView:a??_.RightTabbarRenderer,TabpanelView:b??s.RightTabPanelRenderer});t.RightTabRenderer=h;const u=({className:E,components:f,tabbarView:a})=>o.default.createElement(t.TabRendererBase,{side:c.SlotLocation.left,direction:"left-to-right",id:m.VIEW_CONTAINERS.LEFT_TABBAR_PANEL,className:(0,r.default)(E,"left-slot"),components:f,TabbarView:a??_.LeftTabbarRenderer,TabpanelView:s.LeftTabPanelRenderer});t.LeftTabRenderer=u;const d=({className:E,components:f,tabbarView:a})=>o.default.createElement(t.TabRendererBase,{side:c.SlotLocation.bottom,id:m.VIEW_CONTAINERS.BOTTOM_TABBAR_PANEL,direction:"bottom-to-top",className:(0,r.default)(E,"bottom-slot"),components:f,TabbarView:a??_.BottomTabbarRenderer,TabpanelView:s.BottomTabPanelRenderer});t.BottomTabRenderer=d},752:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TabbarService=t.TabbarServiceFactoryFn=t.TabbarServiceFactory=void 0;const n=e(85608),r=n.__importDefault(e(12784)),o=e(76003),c=e(41869),p=e(30144),v=e(95416),m=e(93899),_=e(68969),s=e(28423),g=e(17793),l=e(53576);t.TabbarServiceFactory=Symbol("TabbarServiceFactory");const h=f=>a=>f.get(g.IMainLayoutService).getTabbarService(a);t.TabbarServiceFactoryFn=h;const u={left:"view",right:"extendView",bottom:"panel"},d=void 0;let E=class extends c.WithEventBus{constructor(a){super(),this.location=a,this.doChangeViewEmitter=new c.Emitter,this.shouldChangeView=(0,s.observableFromEventOpts)({owner:this,equalsFn:()=>!1},this.doChangeViewEmitter.event,()=>{}),this.containerIdObs=(0,s.observableValue)(this,d),this.currentContainerId=(0,s.derivedOpts)({owner:this,equalsFn:()=>!1},b=>(this.shouldChangeView.read(b),this.containerIdObs.read(b))),this.nextContainerId="",this.useFirstContainerId=!1,this.previousContainerId=void 0,this.containersMap=new Map,this.viewReady=new c.Deferred,this.state=new Map,this.storedState={},this.accordionRestored=new Set,this.onCurrentChangeEmitter=new c.Emitter,this.onCurrentChange=this.onCurrentChangeEmitter.event,this.onSizeChangeEmitter=new c.Emitter,this.onSizeChange=this.onSizeChangeEmitter.event,this.menuId=`tabbar/${this.location}`,this.moreMenuId=`tabbar/${this.location}/more`,this.sortedContainers=[],this.disposableMap=new Map,this.tabInMoreKeyMap=new Map,this.shouldWaitForViewRender=!1,this.onDidRegisterContainerEmitter=new c.Emitter,this.isEmptyTabbar=!0,this.updatePanel=(0,r.default)(b=>{this.resizeHandle&&this.resizeHandle.hidePanel(b)},60),this._menuMap=new Map,this.setIsLatter(a===c.SlotLocation.right||a===c.SlotLocation.bottom),this.scopedCtxKeyService=this.contextKeyService.createScoped(),this.scopedCtxKeyService.createKey("triggerWithTab",!0),this.menuRegistry.registerMenuItem(this.menuId,{command:{id:this.registerGlobalToggleCommand(),label:(0,c.localize)("layout.tabbar.toggle")},group:"0_global",when:"triggerWithTab == true"}),this.activatedKey=this.contextKeyService.createKey((0,c.getTabbarCtxKey)(this.location),""),this.location==="bottom"&&(this.registerPanelCommands(),this.registerPanelMenus()),this.eventBus.onDirective(c.ResizeEvent.createDirective(this.location),()=>{this.onResize()})}get onDidRegisterContainer(){return this.onDidRegisterContainerEmitter.event}setIsLatter(a){this.isLatter=a}updateNextContainerId(a){(0,c.isUndefined)(a)?this.useFirstContainerId=!0:this.nextContainerId=a}updateCurrentContainerId(a){(0,s.transaction)(b=>{this.containerIdObs.set(a,b)})}updateBadge(a,b){const y=this.getContainer(a);y&&y.options&&(y.options.badge=b),y?.fireChange(y)}registerPanelCommands(){this.commandRegistry.registerCommand(l.EXPAND_BOTTOM_PANEL,{execute:()=>{this.layoutService.expandBottom(!0)}}),this.commandRegistry.registerCommand(l.RETRACT_BOTTOM_PANEL,{execute:()=>{this.layoutService.expandBottom(!1)}}),this.commandRegistry.registerCommand(l.TOGGLE_BOTTOM_PANEL_COMMAND,{execute:(a,b)=>{this.layoutService.toggleSlot(c.SlotLocation.bottom,a,b)}})}getContainerState(a){return this.state.get(a)}hideContainer(a){const b=this.state.get(a);b&&(b.hidden=!0)}showContainer(a){const b=this.state.get(a);b&&(b.hidden=!1)}updatePanelVisibility(a){a===void 0&&(a=this.containersMap.size>0),this.updatePanel(a)}ensureViewReady(){(0,c.isDefined)(this.barSize)&&(0,c.isDefined)(this.panelSize)?this.resolveViewReady():this.shouldWaitForViewRender=!0}updatePanelSize(a){this.panelSize=a,(0,c.isDefined)(this.barSize)&&this.shouldWaitForViewRender&&this.resolveViewReady()}updateBarSize(a){this.barSize=a,(0,c.isDefined)(this.panelSize)&&this.shouldWaitForViewRender&&this.resolveViewReady()}resolveViewReady(){this.isEmptyTabbar?c.Event.once(this.onDidRegisterContainer)(()=>{this.viewReady.resolve()}):this.viewReady.resolve()}getBarSize(){return this.barSize}updateTabInMoreKey(a,b){const y=this.tabInMoreKeyMap.get(a);y&&y.set(b)}get visibleContainers(){const a=[];return this.containersMap.forEach(b=>{const y=b.options&&this.state.get(b.options.containerId);(!y||!y.hidden)&&a.push(b)}),a.sort((b,y)=>this.getContainerState(b.options.containerId).priority-this.getContainerState(y.options.containerId).priority)}registerResizeHandle(a){const{setSize:b,setRelativeSize:y,getSize:A,getRelativeSize:S,lockSize:w,setMaxSize:T,hidePanel:D}=a;return this.resizeHandle={setSize:I=>b(I,this.isLatter),setRelativeSize:(I,O)=>y(I,O,this.isLatter),getSize:()=>A(this.isLatter),getRelativeSize:()=>S(this.isLatter),setMaxSize:I=>T(I,this.isLatter),lockSize:I=>w(I,this.isLatter),hidePanel:I=>D(I)},this.listenCurrentChange()}registerContainer(a,b){var y;if(this.containersMap.has(a))return;this.useFirstContainerId&&(this.useFirstContainerId=!1,this.updateCurrentContainerId(a)),this.nextContainerId===a&&this.updateCurrentContainerId(a);const A=new c.DisposableCollection,S=b.options||{containerId:a};b.options=S;const w=new c.Emitter;this.containersMap.set(a,{fireChange:D=>w.fire(D),onChange:w.event,views:b.views,options:S}),A.push({dispose:()=>{this.containersMap.delete(a),this.state.delete(a)}}),this.updatePanelVisibility(this.containersMap.size>0);let T=this.sortedContainers.findIndex(D=>{var I,O;return(((I=D.options)===null||I===void 0?void 0:I.priority)||1)<=(((O=b.options)===null||O===void 0?void 0:O.priority)||1)});T===-1&&(T=this.sortedContainers.length),this.sortedContainers.splice(T,0,b);for(let D=T;D<this.sortedContainers.length;D++){const O=(y=this.sortedContainers[D].options)===null||y===void 0?void 0:y.containerId;if(O){const M=this.storedState[O]||this.getContainerState(O)||{};this.state.set(O,{hidden:M.hidden,priority:D})}}A.push(this.registerSideEffects(b)),this.eventBus.fire(new g.TabBarRegistrationEvent({tabBarId:a})),a===this.currentContainerId.get()&&this.handleChange(a,""),this.viewContextKeyRegistry.registerContextKeyService(a,this.contextKeyService.createScoped()).createKey("view",a),this.isEmptyTabbar&&(this.isEmptyTabbar=!1),this.disposableMap.set(a,A),this.onDidRegisterContainerEmitter.fire(a)}registerSideEffects(a){var b;const y=new c.DisposableCollection;!((b=a.options)===null||b===void 0)&&b.hideTab||(y.push(this.registerHideMenu(a)),y.push(this.registerMoreMenu(a))),y.push(this.registerActivateKeyBinding(a,a.options.fromExtension));const A=this.contextKeyService.createKey(`workbench.${u[this.location]||"view"}.${a.options.containerId}`,!0);return y.push({dispose:()=>{A.set(!1)}}),y.push(this.progressService.registerProgressIndicator(a.options.containerId)),y.push(this.registerContainerPanelRelatedCommand(a)),y}registerContainerPanelRelatedCommand(a){var b,y,A,S,w;const T=new c.DisposableCollection,D=(b=a.options)===null||b===void 0?void 0:b.containerId;return T.push(this.commandRegistry.registerCommand({id:"container.show."+D,label:(0,c.formatLocalize)("view.command.show",(A=(y=a.options)===null||y===void 0?void 0:y.title)!==null&&A!==void 0?A:D),labelLocalized:(0,c.createFormatLocalizedStr)("view.command.show",(w=(S=a.options)===null||S===void 0?void 0:S.title)!==null&&w!==void 0?w:D),category:"View"},{execute:()=>{this.updateCurrentContainerId(D)}})),T.push(this.commandRegistry.registerCommand({id:"container.hide."+D},{execute:()=>{this.updateCurrentContainerId("")}})),T.push(this.commandRegistry.registerCommand({id:"container.toggle."+D},{execute:()=>{this.currentContainerId.get()===D?this.updateCurrentContainerId(""):this.updateCurrentContainerId(D)}})),T}registerHideMenu(a){const b=new c.DisposableCollection,y=a.options.containerId;return b.push(this.menuRegistry.registerMenuItem(this.menuId,{command:{id:this.registerVisibleToggleCommand(y,b),label:a.options.title||y},group:"1_widgets"})),b}registerMoreMenu(a){const b=new c.DisposableCollection,y=a.options.containerId,A=this.scopedCtxKeyService.createKey(this.getTabInMoreCtxKey(y),!1);return this.tabInMoreKeyMap.set(y,A),b.push({dispose:()=>this.tabInMoreKeyMap.delete(y)}),b.push(this.menuRegistry.registerMenuItem(this.moreMenuId,{command:{id:this.registerMoreToggleCommand(a,b),label:a.options.title||y},group:"inline",when:`${this.getTabInMoreCtxKey(y)} == true`,toggledWhen:`${(0,c.getTabbarCtxKey)(this.location)} == ${y}`,iconClass:a.options.iconClass})),b}disposeContainer(a){var b;const y=this.disposableMap.get(a);y&&y.dispose(),this.currentContainerId.get()===a&&this.updateCurrentContainerId(((b=this.visibleContainers[0].options)===null||b===void 0?void 0:b.containerId)||"")}updateTitle(a,b){const y=this.getContainer(a);y&&(y.options.title=b)}getContainer(a){return a?this.containersMap.get(a):void 0}getTitleToolbarMenu(a){const b=this._menuMap.get(a);if(b)return b;const y=this.menuService.createMenu(m.MenuId.ViewTitle,this.viewContextKeyRegistry.getContextKeyService(a));this._menuMap.set(a,y);const A=this.disposableMap.get(a),S=[y,(0,c.toDisposable)(()=>{this._menuMap.delete(a)})];return A?A.pushAll(S):this.addDispose(S),y}doExpand(a){if(this.resizeHandle){const{setRelativeSize:b}=this.resizeHandle;a?this.isLatter?b(0,1):b(1,0):b(2,1)}}get isExpanded(){if(this.resizeHandle){const{getRelativeSize:a}=this.resizeHandle,b=a().join(",");return this.isLatter?b==="0,1":b==="1,0"}return!1}handleTabClick(a,b){const y=a.currentTarget.id;y===this.currentContainerId.get()&&!b?this.updateCurrentContainerId(""):this.updateCurrentContainerId(y)}handleContextMenu(a,b){a.preventDefault(),a.stopPropagation();const y=this.menuService.createMenu(this.menuId,b?this.scopedCtxKeyService:this.contextKeyService),A=(0,m.generateCtxMenu)({menus:y,args:[{containerId:b}]});this.contextMenuRenderer.show({menuNodes:A[1],anchor:{x:a.clientX,y:a.clientY}})}showMoreMenu(a,b){const y=this.menuService.createMenu(this.moreMenuId,this.scopedCtxKeyService),A=(0,m.generateCtxMenu)({menus:y,args:[{lastContainerId:b}]});this.contextMenuRenderer.show({menuNodes:A[1],anchor:{x:a.clientX,y:a.clientY}})}handleDragStart(a,b){a.dataTransfer.setData("containerId",b),this.layoutService.showDropAreaForContainer(b)}handleDrop(a,b){if(a.dataTransfer.getData("containerId")){const y=a.dataTransfer.getData("containerId"),A=this.visibleContainers,S=A.findIndex(T=>y===T.options.containerId),w=A.findIndex(T=>b===T.options.containerId);this.doInsertTab(A,S,w),this.storeState()}}handleDragEnd(a){this.layoutService.hideDropArea()}restoreState(){this.storedState=this.layoutState.getState(v.LAYOUT_STATE.getTabbarSpace(this.location),{});for(const a of this.state.keys())this.storedState[a]&&this.state.set(a,this.storedState[a]);this.visibleContainers.forEach(a=>{g.SUPPORT_ACCORDION_LOCATION.has(this.location)&&this.tryRestoreAccordionSize(a.options.containerId)})}removeContainer(a){const b=this.disposableMap.get(a);b?.dispose(),this.updateCurrentContainerId(""),this.doChangeViewEmitter.fire()}dynamicAddContainer(a,b){this.registerContainer(a,b),this.updateCurrentContainerId(a),this.doChangeViewEmitter.fire()}doInsertTab(a,b,y){const A=this.getContainerState(a[y].options.containerId).priority,S=(T,D)=>{const I=this.getContainerState(a[T].options.containerId),O=this.getContainerState(a[D].options.containerId);I.priority=O.priority};let w;if(b>y)for(w=y;w<b;w++)S(w,w+1);else for(w=y;w>b;w--)S(w,w-1);this.getContainerState(a[w].options.containerId).priority=A,this.doChangeViewEmitter.fire()}storeState(){const a={};this.state.forEach((b,y)=>{a[y]=b}),this.layoutState.setState(v.LAYOUT_STATE.getTabbarSpace(this.location),a)}registerActivateKeyBinding(a,b){const y=a.options,A=y.containerId,S=b?`workbench.view.extension.${A}`:`workbench.view.${A}`,w=new c.DisposableCollection;return w.push(this.commandRegistry.registerCommand({id:S},{execute:({forceShow:T}={})=>{this.location==="bottom"&&!T?this.updateCurrentContainerId(this.currentContainerId.get()===A?"":A):this.updateCurrentContainerId(A)}})),y.activateKeyBinding&&w.push(this.keybindingRegistry.registerKeybinding({command:S,keybinding:y.activateKeyBinding})),w}registerGlobalToggleCommand(){const a=`activity.bar.toggle.${this.location}`;return this.commandRegistry.registerCommand({id:a},{execute:({containerId:b})=>{this.doToggleTab(b)},isEnabled:()=>this.visibleContainers.length>1}),a}registerVisibleToggleCommand(a,b){const y=`activity.bar.toggle.${a}`;return b.push(this.commandRegistry.registerCommand({id:y},{execute:({forceShow:A}={})=>{this.doToggleTab(a,A)},isToggled:()=>!this.getContainerState(a).hidden,isEnabled:()=>this.getContainerState(a).hidden||this.visibleContainers.length!==1})),y}registerMoreToggleCommand(a,b){const{options:y}=a,{containerId:A}=y,S=`activity.bar.activate.more.${A}`;return b.push(this.commandRegistry.registerCommand({id:S},{execute:({lastContainerId:w})=>{if(this.updateCurrentContainerId(A),w){const T=this.getContainerState(A),D=this.getContainerState(w),I=T.priority;T.priority=D.priority,D.priority=I,this.storeState()}}})),S}getTabInMoreCtxKey(a){return`${a}.isInMore`}registerPanelMenus(){this.menuRegistry.registerMenuItems((0,m.getTabbarCommonMenuId)("bottom"),[{command:l.EXPAND_BOTTOM_PANEL.id,group:"navigation",when:"!bottomFullExpanded",order:1},{command:l.RETRACT_BOTTOM_PANEL.id,group:"navigation",when:"bottomFullExpanded",order:1},{command:l.TOGGLE_BOTTOM_PANEL_COMMAND.id,group:"navigation",order:2}]),this.commonTitleMenu=this.ctxMenuService.createMenu({id:"tabbar/bottom/common"})}doToggleTab(a,b){const y=this.getContainerState(a);b===void 0?y.hidden=!y.hidden:y.hidden=!b,y.hidden&&this.currentContainerId.get()===a&&this.updateCurrentContainerId(this.visibleContainers[0].options.containerId),this.storeState()}shouldExpand(a){const b=this.getContainer(a);return b&&b.options&&b.options.expanded}onResize(){c.fastdom.measureAtNextFrame(()=>{if(!this.currentContainerId||!this.resizeHandle)return;const a=this.resizeHandle.getSize();a!==this.barSize&&!this.shouldExpand(this.currentContainerId.get())&&(this.prevSize=a,this.onSizeChangeEmitter.fire({size:a}))})}listenCurrentChange(){return(0,s.autorunDelta)(this.currentContainerId,({lastValue:a,newValue:b})=>{this.previousContainerId=a===d?"":a,this.handleChange(b,a)})}handleChange(a,b){var y;if(!this.resizeHandle)return;const{getSize:A,setSize:S,lockSize:w}=this.resizeHandle;this.onCurrentChangeEmitter.fire({previousId:b,currentId:a});const T=this.shouldExpand(a);if(this.shouldExpand(this.previousContainerId)||T)this.handleFullExpanded(a,T);else if(a){b&&a!==b&&(this.prevSize=A());const D=this.getContainer(a);S(this.prevSize||this.panelSize+this.barSize),w(!!(!((y=D?.options)===null||y===void 0)&&y.noResize)),this.activatedKey.set(a)}else S(this.barSize),w(!0)}tryRestoreAccordionSize(a){var b,y;if(this.accordionRestored.has(a))return;const A=this.containersMap.get(a);if((!A||!((b=A.options)===null||b===void 0)&&b.component)&&((y=A?.options)===null||y===void 0?void 0:y.containerId)!==p.SCM_CONTAINER_ID)return;this.layoutService.getAccordionService(a).restoreState(),this.accordionRestored.add(a)}handleFullExpanded(a,b){if(!this.resizeHandle)return;const{setRelativeSize:y,setSize:A}=this.resizeHandle;a?b?this.isLatter?y(0,1):y(1,0):A(this.prevSize||this.panelSize+this.barSize):A(this.barSize)}};t.TabbarService=E,n.__decorate([(0,o.Autowired)(m.AbstractMenuService),n.__metadata("design:type",m.AbstractMenuService)],E.prototype,"menuService",void 0),n.__decorate([(0,o.Autowired)(m.AbstractContextMenuService),n.__metadata("design:type",m.AbstractContextMenuService)],E.prototype,"ctxMenuService",void 0),n.__decorate([(0,o.Autowired)(m.IMenuRegistry),n.__metadata("design:type",m.IMenuRegistry)],E.prototype,"menuRegistry",void 0),n.__decorate([(0,o.Autowired)(c.CommandRegistry),n.__metadata("design:type",Object)],E.prototype,"commandRegistry",void 0),n.__decorate([(0,o.Autowired)(m.ICtxMenuRenderer),n.__metadata("design:type",m.ICtxMenuRenderer)],E.prototype,"contextMenuRenderer",void 0),n.__decorate([(0,o.Autowired)(c.KeybindingRegistry),n.__metadata("design:type",Object)],E.prototype,"keybindingRegistry",void 0),n.__decorate([(0,o.Autowired)(),n.__metadata("design:type",c.ViewContextKeyRegistry)],E.prototype,"viewContextKeyRegistry",void 0),n.__decorate([(0,o.Autowired)(c.IContextKeyService),n.__metadata("design:type",Object)],E.prototype,"contextKeyService",void 0),n.__decorate([(0,o.Autowired)(g.IMainLayoutService),n.__metadata("design:type",Object)],E.prototype,"layoutService",void 0),n.__decorate([(0,o.Autowired)(),n.__metadata("design:type",v.LayoutState)],E.prototype,"layoutState",void 0),n.__decorate([(0,o.Autowired)(_.IProgressService),n.__metadata("design:type",Object)],E.prototype,"progressService",void 0),t.TabbarService=E=n.__decorate([(0,o.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[String])],E)},58296:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ViewsRegistry=t.ViewsController=t.ViewContentGroups=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(43718),p=e(17793);var v;(function(g){g.Open="2_open",g.Debug="4_debug",g.SCM="5_scm",g.More="9_more"})(v||(t.ViewContentGroups=v={}));function m(g,l){var h,u,d,E;const f=(h=g.group)!==null&&h!==void 0?h:v.More,a=(u=l.group)!==null&&u!==void 0?u:v.More;return f!==a?f.localeCompare(a):((d=g.order)!==null&&d!==void 0?d:5)-((E=l.order)!==null&&E!==void 0?E:5)}let _=class{get contents(){const l=this.items.filter(h=>h.visible);return l.length===0&&this.defaultItem?[this.defaultItem.descriptor]:l.map(h=>h.descriptor)}constructor(l){this.id=l,this._onDidChange=new o.Emitter,this.onDidChange=this._onDidChange.event,this.items=[],this.disposables=[],this.contextKeyService.onDidChangeContext(this.onDidChangeContext,this,this.disposables),o.Event.filter(this.viewsRegistry.onDidChangeViewWelcomeContent,h=>h===this.id)(this.onDidChangeViewWelcomeContent,this,this.disposables),this.onDidChangeViewWelcomeContent()}onDidChangeViewWelcomeContent(){const l=this.viewsRegistry.getViewWelcomeContent(this.id);this.items=[];for(const h of l)if(h.when==="default")this.defaultItem={descriptor:h,visible:!0};else{const u=h.when?this.contextKeyService.match(h.when):!0;this.items.push({descriptor:h,visible:u})}this._onDidChange.fire()}onDidChangeContext(){let l=!1;for(const h of this.items){if(!h.descriptor.when||h.descriptor.when==="default")continue;const u=this.contextKeyService.match(h.descriptor.when);h.visible!==u&&(h.visible=u,l=!0)}l&&this._onDidChange.fire()}dispose(){this.disposables.forEach(l=>l.dispose()),this.disposables=[]}};t.ViewsController=_,n.__decorate([(0,r.Autowired)(o.IContextKeyService),n.__metadata("design:type",Object)],_.prototype,"contextKeyService",void 0),n.__decorate([(0,r.Autowired)(p.IViewsRegistry),n.__metadata("design:type",Object)],_.prototype,"viewsRegistry",void 0),t.ViewsController=_=n.__decorate([(0,r.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[String])],_);let s=class{constructor(){this.viewWelcomeContent=new c.SetMap,this._onDidChangeViewWelcomeContent=new o.Emitter,this.onDidChangeViewWelcomeContent=this._onDidChangeViewWelcomeContent.event}registerViewWelcomeContent(l,h){return this.viewWelcomeContent.add(l,h),this._onDidChangeViewWelcomeContent.fire(l),{dispose:()=>{this.viewWelcomeContent.delete(l,h),this._onDidChangeViewWelcomeContent.fire(l)}}}registerViewWelcomeContent2(l,h){const u=new Map;for(const[d,E]of h)this.viewWelcomeContent.add(l,E),u.set(d,(0,o.toDisposable)(()=>{this.viewWelcomeContent.delete(l,E),this._onDidChangeViewWelcomeContent.fire(l)}));return this._onDidChangeViewWelcomeContent.fire(l),u}getViewWelcomeContent(l){const h=[];return this.viewWelcomeContent.forEach(l,u=>h.push(u)),h.sort(m),h}};t.ViewsRegistry=s,t.ViewsRegistry=s=n.__decorate([(0,r.Injectable)()],s)},24429:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WelcomeView=t.CSSIcon=void 0,t.renderLabelWithIcons=l;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importDefault(e(14041)),c=e(48412),p=e(41869),v=e(43718),m=n.__importDefault(e(81388)),_=e(58296);var s;(function(d){d.iconNameSegment="[A-Za-z0-9]+",d.iconNameExpression="[A-Za-z0-9\\-]+",d.iconModifierExpression="~[A-Za-z]+"})(s||(t.CSSIcon=s={}));const g=new RegExp(`(\\\\)?\\$\\((${s.iconNameExpression}(?:${s.iconModifierExpression})?)\\)`,"g");function l(d){const E=new Array;let f,a=0,b=0;for(;(f=g.exec(d))!==null;){b=f.index||0,E.push(d.substring(a,b)),a=(f.index||0)+f[0].length;const[,y,A]=f;E.push(y?`$(${A})`:o.default.createElement("span",{className:(0,p.getExternalIcon)(A)}))}return a<d.length&&E.push(d.substring(a)),E}const h=d=>{const{contents:E}=d,[f,a]=o.default.useState(E.map(A=>A.precondition?!1:null)),b=(0,p.useInjectable)(p.IContextKeyService),y=(0,p.useInjectable)(p.IOpenerService);return o.default.useEffect(()=>{const A=E.map(w=>{if(w.precondition){const T=new Set;return w.precondition.keys().forEach(D=>T.add(D)),T}return null}),S=b.onDidChangeContext(w=>{A.forEach((T,D)=>{T&&w.payload.affectsSome(T)&&a(f.map((I,O)=>O===D?b.match(E[D].precondition):I))})});return()=>S.dispose()},[E]),E.length===0?null:o.default.createElement(o.default.Fragment,null,E.map(({content:A,precondition:S},w)=>{const T=A.split(`
|
|
31738
31738
|
`),D=[];for(let I of T){if(I=I.trim(),!I)continue;const O=(0,v.parseLinkedText)(I);if(O.nodes.length===1&&typeof O.nodes[0]!="string"){const M=O.nodes[0];D.push(o.default.createElement("div",{key:D.length,title:M.title,className:"button-container"},o.default.createElement(c.Button,{disabled:f[w]===!1,onClick:()=>y.open(M.href)},l(M.label))))}else{const M=O.nodes.map((R,P)=>typeof R=="string"?R:o.default.createElement("a",{key:P,className:(0,r.default)({disabled:R.href.startsWith("command:")&&f[w]===!1}),title:R.title,onClick:()=>y.open(R.href)},R.label));D.push(o.default.createElement("p",{key:D.length},M))}}return o.default.createElement(o.default.Fragment,{key:w},D)}))};function u(d,E){return d.viewId===E.viewId}t.WelcomeView=o.default.memo(d=>{const E=(0,p.useInjectable)(_.ViewsController,[d.viewId]),[f,a]=o.default.useState(E.contents);return o.default.useEffect(()=>{E.onDidChange(()=>{const b=E.contents;a(b)})},[]),f.length?o.default.createElement("div",{className:m.default.welcome},o.default.createElement(h,{contents:f})):null},u)},17793:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),e(85608).__exportStar(e(72260),t)},72260:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DROP_RIGHT_CONTAINER=t.DROP_BOTTOM_CONTAINER=t.SUPPORT_ACCORDION_LOCATION=t.ViewCollapseChangedEvent=t.IViewsRegistry=t.TabBarRegistrationEvent=t.MainLayoutContribution=t.IMainLayoutService=void 0;const n=e(41869);t.IMainLayoutService=Symbol("IMainLayoutService"),t.MainLayoutContribution=Symbol("MainLayoutContribution");class r extends n.BasicEvent{}t.TabBarRegistrationEvent=r,t.IViewsRegistry=Symbol("IViewsRegistry");class o extends n.BasicEvent{}t.ViewCollapseChangedEvent=o,t.SUPPORT_ACCORDION_LOCATION=new Set([n.SlotLocation.left,n.SlotLocation.right]),t.DROP_BOTTOM_CONTAINER="drop-bottom",t.DROP_RIGHT_CONTAINER="drop-right"},63067:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),e(85608).__exportStar(e(17793),t)},93835:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EmbeddedMarkdownEditorContribution=t.MARKDOWN_EDITOR_COMPONENT_ID=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(43718),p=e(57517),v=e(21066),m=e(81001);t.MARKDOWN_EDITOR_COMPONENT_ID="MARKDOWN_EDITOR_COMPONENT_ID";let _=class{registerEditorComponent(g){g.registerEditorComponent({uid:t.MARKDOWN_EDITOR_COMPONENT_ID,component:m.MarkdownEditorComponent,scheme:c.Schemes.file}),g.registerEditorComponentResolver(c.Schemes.file,(l,h)=>{l.uri.path.ext===".md"&&h.push({type:p.EditorOpenType.component,componentId:t.MARKDOWN_EDITOR_COMPONENT_ID,title:(0,c.localize)("editorOpenType.preview"),weight:this.preferenceService.get("application.preferMarkdownPreview")?10:-1})})}};t.EmbeddedMarkdownEditorContribution=_,n.__decorate([(0,r.Autowired)(v.IMarkdownService),n.__metadata("design:type",Object)],_.prototype,"markdownService",void 0),n.__decorate([(0,r.Autowired)(o.PreferenceService),n.__metadata("design:type",Object)],_.prototype,"preferenceService",void 0),t.EmbeddedMarkdownEditorContribution=_=n.__decorate([(0,c.Domain)(p.BrowserEditorContribution)],_)},81001:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MarkdownEditorComponent=void 0;const r=e(85608).__importDefault(e(14041)),o=e(41869),c=e(57517),p=e(21066),v=({resource:m})=>{let _=null;const s=(0,o.useInjectable)(p.IMarkdownService),g=(0,o.useInjectable)(c.IEditorDocumentModelService);return r.default.useEffect(()=>{if(_){const l=new o.Disposable,h=new o.CancellationTokenSource;return l.addDispose({dispose:()=>{h.cancel()}}),g.createModelReference(m.uri,"markdown-preview").then(u=>{if(h.token.isCancellationRequested){u&&u.dispose();return}const d=new o.Emitter;l.addDispose(d),l.addDispose(u.instance.getMonacoModel().onDidChangeContent(E=>{d.fire(u.instance.getText())})),_&&s.previewMarkdownInContainer(u.instance.getText(),_,h.token,void 0,d.event).then(E=>{l.addDispose(E)}),l.addDispose(u)}),()=>{l.dispose()}}}),r.default.createElement("div",{ref:l=>{_=l},style:{height:"100%"}})};t.MarkdownEditorComponent=v},31101:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MarkdownModule=t.Markdown=void 0;const n=e(85608),r=e(76003),o=e(41869),c=e(21066),p=e(89637);var v=e(6001);Object.defineProperty(t,"Markdown",{enumerable:!0,get:function(){return v.Markdown}});let m=class extends o.BrowserModule{constructor(){super(...arguments),this.providers=[{token:c.IMarkdownService,useClass:p.MarkdownServiceImpl}]}};t.MarkdownModule=m,t.MarkdownModule=m=n.__decorate([(0,r.Injectable)()],m)},86422:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.markdownCss=void 0,t.markdownCss=`
|
|
31739
31739
|
/*---------------------------------------------------------------------------------------------
|