@cursor/sdk 1.3.0 → 1.3.1
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/dist/bundled/index.js +276 -276
- package/dist/bundled/sqlite.js +20 -20
- package/dist/cjs/305.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/sqlite.js +1 -1
- package/dist/esm/305.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/sqlite.js +1 -1
- package/package.json +6 -6
package/dist/bundled/sqlite.js
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
var iM=Object.create;var{getPrototypeOf:nM,defineProperty:HW,getOwnPropertyNames:rM}=Object;var aM=Object.prototype.hasOwnProperty;var DB=(Z,$,J)=>{J=Z!=null?iM(nM(Z)):{};let Y=$||!Z||!Z.__esModule?HW(J,"default",{value:Z,enumerable:!0}):J;for(let X of rM(Z))if(!aM.call(Y,X))HW(Y,X,{get:()=>Z[X],enumerable:!0});return Y};var W=(Z,$)=>()=>($||Z(($={exports:{}}).exports,$),$.exports);var I6=(Z,$)=>{for(var J in $)HW(Z,J,{get:$[J],enumerable:!0,configurable:!0,set:(Y)=>$[J]=()=>Y})};var O=(Z,$)=>()=>(Z&&($=Z(Z=0)),$);import{Message as sM}from"@bufbuild/protobuf";function F(Z,$,J){return Object.defineProperty(Z,$,{value:J,writable:!0,enumerable:!0,configurable:!0}),J}function wB(Z,$,J){if(J.charAt(0)!=="#")return{kind:"scalar",T:Number(J)};let Y=$[Number(J.slice(1))];return typeof Y==="function"?{kind:"message",T:Y}:{kind:"enum",T:Z.getEnumType(Y)}}function oM(Z){if(Z==="?")return{opt:!0};if(Z==="*")return{repeated:!0};return Z===void 0?tM:{oneof:Z}}function eM(Z,$){let[J,...Y]=$,X=J.split("|"),z=[];for(let K=1;K<X.length;K++){let H=X[K].split(" "),q,L=H[H.length-1];if(L!==void 0&&L.charAt(0)==="=")q=L.slice(1),H.pop();let D=Number(H[0]),E=H[1],P=H[2],M=H[3],V=P.charAt(P.length-1);if(V==="?"||V==="*")M=V,P=P.slice(0,-1);let y=P.indexOf(",");if(y!==-1){let a={no:D,name:E,kind:"map",K:Number(P.slice(0,y)),V:wB(Z,Y,P.slice(y+1))};if(q!==void 0)a.jsonName=q;z.push(a);continue}let Y0=Object.assign({no:D,name:E},wB(Z,Y,P),oM(M));if(q!==void 0)Y0.jsonName=q;z.push(Y0)}return z}function Zx(Z){let $=Z[0],J=$.indexOf("|");return J===-1?$:$.slice(0,J)}function $x(Z){return"$"in Z&&typeof Z.$==="function"&&"$p"in Z&&typeof Z.$p==="function"}function UB(Z){if(!$x(Z))throw TypeError(`${Z.name} has no compact message descriptor`);return Z}function Jx(Z,$){let J=(Z.charAt(0)+Z.slice(1).replace(/[A-Z]/g,(X)=>"_"+X)).toLowerCase()+"_",Y=[];for(let X of $){if(!X.toLowerCase().startsWith(J))return $.slice();let z=X.slice(J.length);if(z===""||/^[0-9]/.test(z))return $.slice();Y.push(z)}return Y}function Yx(Z){return(Z.charAt(0)+Z.slice(1).replace(/[A-Z]/g,($)=>"_"+$)).toUpperCase()+"_"}function w(Z,$,J,Y,X){let z=J.slice(J.lastIndexOf(".")+1),K,H;if(X===1){let D=Yx(z);H=Y.map((E)=>E[1]),K=H.map((E)=>D+E)}else K=Y.map((D)=>D[1]),H=X===void 0?Jx(z,K):X;let q={},L=[];for(let D=0;D<Y.length;D++){let E=Y[D][0];q[H[D]]=E,q[E]=H[D],L.push({no:E,name:K[D]})}return Z.util.setEnumType(q,$+J,L),q}var tM,G;var A=O(()=>{tM={};G=class G extends sM{static get typeName(){let Z=UB(this);return F(Z,"typeName",Z.$p()+Zx(Z.$()))}static get fields(){let Z=UB(this),$=Z.$(),J=Z.runtime,Y=()=>eM(J,$);return F(Z,"fields",J.util.newFieldList(Y))}}});import{Message as Gp,proto3 as m}from"@bufbuild/protobuf";var wQ="agent.v1.",E0,k6,WW,OB,qW,c8,q9,N9,B9,F9,G9,L9,D9,w9,U9,O9,I9,k9;var IB=O(()=>{A();E0=class E0 extends G{static get runtime(){return F(this,"runtime",m)}static $p(){return wQ}};k6=w(m,wQ,"SubagentExecutionEnvironment",[[0,"UNSPECIFIED"],[1,"LOCAL"],[2,"CLOUD"]],1),WW=w(m,wQ,"SubagentBackgroundReason",[[0,"UNSPECIFIED"],[1,"AGENT_REQUEST"],[2,"USER_REQUEST"],[3,"QUEUED_FOLLOW_UP"]],1),OB=w(m,wQ,"BackgroundTaskCompletionReason",[[0,"UNSPECIFIED"],[1,"TASK_FINISHED"],[2,"TASK_PROGRESS"],[3,"WORKER_REPARENTED"],[4,"WORKER_MESSAGE"],[5,"WORKER_NEEDS_ATTENTION"],[6,"PROJECT_SESSION_MESSAGE"]],1),qW=w(m,wQ,"TaskMode",[[0,"UNSPECIFIED"],[1,"AGENT"],[2,"PLAN"]],1);c8=class c8 extends E0{constructor(Z){super();this.type={case:void 0},m.util.initPartial(Z,this)}static fromBinary(Z,$){return new c8().fromBinary(Z,$)}static fromJson(Z,$){return new c8().fromJson(Z,$)}static fromJsonString(Z,$){return new c8().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(c8,Z,$)}static $(){return["SubagentType|1 unspecified #0 type|2 computer_use #1 type|3 custom #2 type|4 explore #3 type|5 media_review #4 type|6 bash #5 type|7 browser_use #6 type|8 shell #7 type|9 vm_setup_helper #8 type|10 debug #9 type|11 cursor_guide #10 type|12 watch_video #11 type",q9,N9,k9,B9,F9,G9,D9,L9,w9,U9,O9,I9]}};q9=class q9 extends E0{constructor(Z){super();m.util.initPartial(Z,this)}static fromBinary(Z,$){return new q9().fromBinary(Z,$)}static fromJson(Z,$){return new q9().fromJson(Z,$)}static fromJsonString(Z,$){return new q9().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(q9,Z,$)}static $(){return["SubagentTypeUnspecified"]}};N9=class N9 extends E0{constructor(Z){super();m.util.initPartial(Z,this)}static fromBinary(Z,$){return new N9().fromBinary(Z,$)}static fromJson(Z,$){return new N9().fromJson(Z,$)}static fromJsonString(Z,$){return new N9().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(N9,Z,$)}static $(){return["SubagentTypeComputerUse"]}};B9=class B9 extends E0{constructor(Z){super();m.util.initPartial(Z,this)}static fromBinary(Z,$){return new B9().fromBinary(Z,$)}static fromJson(Z,$){return new B9().fromJson(Z,$)}static fromJsonString(Z,$){return new B9().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(B9,Z,$)}static $(){return["SubagentTypeExplore"]}};F9=class F9 extends E0{constructor(Z){super();m.util.initPartial(Z,this)}static fromBinary(Z,$){return new F9().fromBinary(Z,$)}static fromJson(Z,$){return new F9().fromJson(Z,$)}static fromJsonString(Z,$){return new F9().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(F9,Z,$)}static $(){return["SubagentTypeMediaReview"]}};G9=class G9 extends E0{constructor(Z){super();m.util.initPartial(Z,this)}static fromBinary(Z,$){return new G9().fromBinary(Z,$)}static fromJson(Z,$){return new G9().fromJson(Z,$)}static fromJsonString(Z,$){return new G9().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(G9,Z,$)}static $(){return["SubagentTypeBash"]}};L9=class L9 extends E0{constructor(Z){super();m.util.initPartial(Z,this)}static fromBinary(Z,$){return new L9().fromBinary(Z,$)}static fromJson(Z,$){return new L9().fromJson(Z,$)}static fromJsonString(Z,$){return new L9().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(L9,Z,$)}static $(){return["SubagentTypeShell"]}};D9=class D9 extends E0{constructor(Z){super();m.util.initPartial(Z,this)}static fromBinary(Z,$){return new D9().fromBinary(Z,$)}static fromJson(Z,$){return new D9().fromJson(Z,$)}static fromJsonString(Z,$){return new D9().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(D9,Z,$)}static $(){return["SubagentTypeBrowserUse"]}};w9=class w9 extends E0{constructor(Z){super();m.util.initPartial(Z,this)}static fromBinary(Z,$){return new w9().fromBinary(Z,$)}static fromJson(Z,$){return new w9().fromJson(Z,$)}static fromJsonString(Z,$){return new w9().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(w9,Z,$)}static $(){return["SubagentTypeVmSetupHelper"]}};U9=class U9 extends E0{constructor(Z){super();m.util.initPartial(Z,this)}static fromBinary(Z,$){return new U9().fromBinary(Z,$)}static fromJson(Z,$){return new U9().fromJson(Z,$)}static fromJsonString(Z,$){return new U9().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(U9,Z,$)}static $(){return["SubagentTypeDebug"]}};O9=class O9 extends E0{constructor(Z){super();m.util.initPartial(Z,this)}static fromBinary(Z,$){return new O9().fromBinary(Z,$)}static fromJson(Z,$){return new O9().fromJson(Z,$)}static fromJsonString(Z,$){return new O9().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(O9,Z,$)}static $(){return["SubagentTypeCursorGuide"]}};I9=class I9 extends E0{constructor(Z){super();m.util.initPartial(Z,this)}static fromBinary(Z,$){return new I9().fromBinary(Z,$)}static fromJson(Z,$){return new I9().fromJson(Z,$)}static fromJsonString(Z,$){return new I9().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(I9,Z,$)}static $(){return["SubagentTypeWatchVideo"]}};k9=class k9 extends E0{constructor(Z){super();this.name="",m.util.initPartial(Z,this)}static fromBinary(Z,$){return new k9().fromBinary(Z,$)}static fromJson(Z,$){return new k9().fromJson(Z,$)}static fromJsonString(Z,$){return new k9().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(k9,Z,$)}static $(){return["SubagentTypeCustom|1 name 9"]}}});import{Message as Up,proto3 as N8}from"@bufbuild/protobuf";var sQ="agent.v1.",tQ,P9,E9,Xx,m0,kB,PB;var oQ=O(()=>{A();tQ=class tQ extends G{static get runtime(){return F(this,"runtime",N8)}static $p(){return sQ}};P9=class P9 extends tQ{constructor(Z){super();N8.util.initPartial(Z,this)}static fromBinary(Z,$){return new P9().fromBinary(Z,$)}static fromJson(Z,$){return new P9().fromJson(Z,$)}static fromJsonString(Z,$){return new P9().fromJsonString(Z,$)}static equals(Z,$){return N8.util.equals(P9,Z,$)}static $(){return["NetworkPolicyLoggingConfig|1 decision_log_path 9?|2 log_format 9?"]}};E9=class E9 extends tQ{constructor(Z){super();this.deny=[],this.allow=[],N8.util.initPartial(Z,this)}static fromBinary(Z,$){return new E9().fromBinary(Z,$)}static fromJson(Z,$){return new E9().fromJson(Z,$)}static fromJsonString(Z,$){return new E9().fromJsonString(Z,$)}static equals(Z,$){return N8.util.equals(E9,Z,$)}static $(){return["NetworkPolicy|1 version 13?|2 default_action #0?|3 deny 9*|4 allow 9*|5 logging #1?",Xx,P9]}};Xx=w(N8,sQ,"NetworkPolicy.DefaultAction",[[0,"UNSPECIFIED"],[1,"ALLOW"],[2,"DENY"]],1);m0=class m0 extends tQ{constructor(Z){super();this.type=kB.UNSPECIFIED,this.additionalReadwritePaths=[],this.additionalReadonlyPaths=[],this.readBoundary=PB.UNSPECIFIED,this.additionalReadPaths=[],N8.util.initPartial(Z,this)}static fromBinary(Z,$){return new m0().fromBinary(Z,$)}static fromJson(Z,$){return new m0().fromJson(Z,$)}static fromJsonString(Z,$){return new m0().fromJsonString(Z,$)}static equals(Z,$){return N8.util.equals(m0,Z,$)}static $(){return["SandboxPolicy|1 type #0|2 network_access 8?|3 additional_readwrite_paths 9*|4 additional_readonly_paths 9*|5 debug_output_dir 9?|7 disable_tmp_write 8?|8 allowlist_escalated 8?|9 enable_shared_build_cache 8?|10 network_policy #1?|11 network_policy_strict 8?|12 capture_denies 8?|13 skip_statsig_defaults 8?|14 read_boundary #2|15 additional_read_paths 9*|16 allow_user_override_read_paths 8?",kB,E9,PB]}};kB=w(N8,sQ,"SandboxPolicy.Type",[[0,"UNSPECIFIED"],[1,"INSECURE_NONE"],[2,"WORKSPACE_READWRITE"],[3,"WORKSPACE_READONLY"]],1),PB=w(N8,sQ,"SandboxPolicy.ReadBoundaryMode",[[0,"UNSPECIFIED"],[1,"SYSTEM"],[2,"WORKSPACE"]],1)});import{Message as Pp,proto3 as E8,protoInt64 as EB}from"@bufbuild/protobuf";var zx="agent.v1.",UQ,d8,u8,N0,i0;var P6=O(()=>{A();UQ=class UQ extends G{static get runtime(){return F(this,"runtime",E8)}static $p(){return zx}};d8=class d8 extends UQ{constructor(Z){super();E8.util.initPartial(Z,this)}static fromBinary(Z,$){return new d8().fromBinary(Z,$)}static fromJson(Z,$){return new d8().fromJson(Z,$)}static fromJsonString(Z,$){return new d8().fromJsonString(Z,$)}static equals(Z,$){return E8.util.equals(d8,Z,$)}static $(){return["Range|1 start #0|2 end #0",u8]}};u8=class u8 extends UQ{constructor(Z){super();this.line=0,this.column=0,E8.util.initPartial(Z,this)}static fromBinary(Z,$){return new u8().fromBinary(Z,$)}static fromJson(Z,$){return new u8().fromJson(Z,$)}static fromJsonString(Z,$){return new u8().fromJsonString(Z,$)}static equals(Z,$){return E8.util.equals(u8,Z,$)}static $(){return["Position|1 line 13|2 column 13"]}};N0=class N0 extends UQ{constructor(Z){super();this.filePath="",this.sizeBytes=EB.zero,this.lineCount=EB.zero,E8.util.initPartial(Z,this)}static fromBinary(Z,$){return new N0().fromBinary(Z,$)}static fromJson(Z,$){return new N0().fromJson(Z,$)}static fromJsonString(Z,$){return new N0().fromJsonString(Z,$)}static equals(Z,$){return E8.util.equals(N0,Z,$)}static $(){return["OutputLocation|1 file_path 9|2 size_bytes 3|3 line_count 3"]}};i0=class i0 extends UQ{constructor(Z){super();this.requestId="",this.reason="",E8.util.initPartial(Z,this)}static fromBinary(Z,$){return new i0().fromBinary(Z,$)}static fromJson(Z,$){return new i0().fromJson(Z,$)}static fromJsonString(Z,$){return new i0().fromJsonString(Z,$)}static equals(Z,$){return E8.util.equals(i0,Z,$)}static $(){return["SmartModeApproval|1 request_id 9|2 reason 9"]}}});import{Message as Ap,proto3 as NW}from"@bufbuild/protobuf";var Kx="agent.v1.",fB,l8;var VB=O(()=>{A();fB=class fB extends G{static get runtime(){return F(this,"runtime",NW)}static $p(){return Kx}};l8=class l8 extends fB{constructor(Z){super();this.hookEventName="",this.content="",NW.util.initPartial(Z,this)}static fromBinary(Z,$){return new l8().fromBinary(Z,$)}static fromJson(Z,$){return new l8().fromJson(Z,$)}static fromJsonString(Z,$){return new l8().fromJsonString(Z,$)}static equals(Z,$){return NW.util.equals(l8,Z,$)}static $(){return["HookAdditionalContext|1 hook_event_name 9|2 content 9"]}}});import{Message as Cp,proto3 as R,protoInt64 as Qx}from"@bufbuild/protobuf";var V6="agent.v1.",J0,AB,Hx,Wx,f9,V9,A9,M9,x9,MB,T9,C9,h9,xB,E6,f6,R9,TB,v9,y9,m9,j9,_9,S9;var CB=O(()=>{oQ();P6();A();J0=class J0 extends G{static get runtime(){return F(this,"runtime",R)}static $p(){return V6}};AB=w(R,V6,"TimeoutBehavior",[[0,"UNSPECIFIED"],[1,"CANCEL"],[2,"BACKGROUND"]],1),Hx=w(R,V6,"ShellBackgroundReason",[[0,"UNSPECIFIED"],[1,"TIMEOUT"],[2,"USER_REQUEST"]],1),Wx=w(R,V6,"ShellAbortReason",[[0,"UNSPECIFIED"],[1,"USER_ABORT"],[2,"TIMEOUT"]],1);f9=class f9 extends J0{constructor(Z){super();this.parsingFailed=!1,this.executableCommands=[],this.hasRedirects=!1,this.hasCommandSubstitution=!1,this.redirects=[],R.util.initPartial(Z,this)}static fromBinary(Z,$){return new f9().fromBinary(Z,$)}static fromJson(Z,$){return new f9().fromJson(Z,$)}static fromJsonString(Z,$){return new f9().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(f9,Z,$)}static $(){return["ShellCommandParsingResult|1 parsing_failed 8|2 executable_commands #0*|3 has_redirects 8|4 has_command_substitution 8|5 all_redirects_are_dev_null 8?|6 redirects #1*",A9,M9]}};V9=class V9 extends J0{constructor(Z){super();this.type="",this.value="",R.util.initPartial(Z,this)}static fromBinary(Z,$){return new V9().fromBinary(Z,$)}static fromJson(Z,$){return new V9().fromJson(Z,$)}static fromJsonString(Z,$){return new V9().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(V9,Z,$)}static $(){return["ShellCommandParsingResult.ExecutableCommandArg|1 type 9|2 value 9"]}};A9=class A9 extends J0{constructor(Z){super();this.name="",this.args=[],this.fullText="",R.util.initPartial(Z,this)}static fromBinary(Z,$){return new A9().fromBinary(Z,$)}static fromJson(Z,$){return new A9().fromJson(Z,$)}static fromJsonString(Z,$){return new A9().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(A9,Z,$)}static $(){return["ShellCommandParsingResult.ExecutableCommand|1 name 9|2 args #0*|3 full_text 9",V9]}};M9=class M9 extends J0{constructor(Z){super();this.operator="",this.destinationFds=[],this.targetNodeType="",R.util.initPartial(Z,this)}static fromBinary(Z,$){return new M9().fromBinary(Z,$)}static fromJson(Z,$){return new M9().fromJson(Z,$)}static fromJsonString(Z,$){return new M9().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(M9,Z,$)}static $(){return["ShellCommandParsingResult.Redirect|1 operator 9|2 destination_fds 13*|3 target_node_type 9|4 target_text 9?"]}};x9=class x9 extends J0{constructor(Z){super();this.commands=[],this.suggestedSandboxMode=MB.UNSPECIFIED,this.classificationFailed=!1,R.util.initPartial(Z,this)}static fromBinary(Z,$){return new x9().fromBinary(Z,$)}static fromJson(Z,$){return new x9().fromJson(Z,$)}static fromJsonString(Z,$){return new x9().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(x9,Z,$)}static $(){return["CommandClassifierResult|1 commands #0*|2 suggested_sandbox_mode #1|3 classification_failed 8",T9,MB]}};MB=w(R,V6,"CommandClassifierResult.SuggestedSandboxMode",[[0,"UNSPECIFIED"],[1,"SANDBOX"],[2,"NO_SANDBOX"],[3,"UNDETERMINED"]],1);T9=class T9 extends J0{constructor(Z){super();this.name="",this.arguments=[],this.subcommandTokens=[],R.util.initPartial(Z,this)}static fromBinary(Z,$){return new T9().fromBinary(Z,$)}static fromJson(Z,$){return new T9().fromJson(Z,$)}static fromJsonString(Z,$){return new T9().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(T9,Z,$)}static $(){return["CommandClassifierResult.ClassifiedCommand|1 name 9|2 arguments 9*|3 suggested_allowlist_entry 9?|4 subcommand_tokens 9*"]}};C9=class C9 extends J0{constructor(Z){super();this.pattern="",this.reason="",R.util.initPartial(Z,this)}static fromBinary(Z,$){return new C9().fromBinary(Z,$)}static fromJson(Z,$){return new C9().fromJson(Z,$)}static fromJsonString(Z,$){return new C9().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(C9,Z,$)}static $(){return["ShellOutputNotificationConfig|1 pattern 9|2 reason 9|3 debounce 1?|4 notification_limit 5?"]}};h9=class h9 extends J0{constructor(Z){super();this.kind=xB.UNSPECIFIED,R.util.initPartial(Z,this)}static fromBinary(Z,$){return new h9().fromBinary(Z,$)}static fromJson(Z,$){return new h9().fromJson(Z,$)}static fromJsonString(Z,$){return new h9().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(h9,Z,$)}static $(){return["ShellHookApprovalRequirement|1 kind #0|2 reason 9?",xB]}};xB=w(R,V6,"ShellHookApprovalRequirement.Kind",[[0,"UNSPECIFIED"],[1,"FORCE_PROMPT"]],1);E6=class E6 extends J0{constructor(Z){super();this.command="",this.workingDirectory="",this.timeout=0,this.toolCallId="",this.simpleCommands=[],this.hasInputRedirect=!1,this.hasOutputRedirect=!1,this.isBackground=!1,this.skipApproval=!1,this.timeoutBehavior=AB.UNSPECIFIED,this.closeStdin=!1,this.adminCommandDenylist=[],this.smartModeClassifierAllowed=!1,R.util.initPartial(Z,this)}static fromBinary(Z,$){return new E6().fromBinary(Z,$)}static fromJson(Z,$){return new E6().fromJson(Z,$)}static fromJsonString(Z,$){return new E6().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(E6,Z,$)}static $(){return["ShellArgs|1 command 9|2 working_directory 9|3 timeout 5|4 tool_call_id 9|5 simple_commands 9*|6 has_input_redirect 8|7 has_output_redirect 8|8 parsing_result #0|9 requested_sandbox_policy #1?|10 file_output_threshold_bytes 4?|11 is_background 8|12 skip_approval 8|13 timeout_behavior #2|14 hard_timeout 5?|15 description 9?|16 classifier_result #3?|17 close_stdin 8|18 output_notification #4?|19 smart_mode_approval #5?|20 hook_approval_requirement #6?|21 conversation_id 9?|22 admin_command_denylist 9*|23 request_id 9?|24 secret_scope_id 9?|25 smart_mode_classifier_allowed 8",f9,m0,AB,x9,C9,i0,h9]}};f6=class f6 extends J0{constructor(Z){super();this.result={case:void 0},R.util.initPartial(Z,this)}static fromBinary(Z,$){return new f6().fromBinary(Z,$)}static fromJson(Z,$){return new f6().fromJson(Z,$)}static fromJsonString(Z,$){return new f6().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(f6,Z,$)}static $(){return["ShellResult|1 success #0 result|2 failure #1 result|3 timeout #2 result|4 rejected #3 result|5 spawn_error #4 result|7 permission_denied #5 result|101 sandbox_policy #6?|102 is_background 8?|103 terminals_folder 9?|104 pid 13?",v9,y9,m9,j9,S9,_9,m0]}};R9=class R9 extends J0{constructor(Z){super();this.kind=TB.UNSPECIFIED,this.memoryLimitBytes=Qx.zero,R.util.initPartial(Z,this)}static fromBinary(Z,$){return new R9().fromBinary(Z,$)}static fromJson(Z,$){return new R9().fromJson(Z,$)}static fromJsonString(Z,$){return new R9().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(R9,Z,$)}static $(){return["ShellOomKill|1 kind #0|2 memory_limit_bytes 4",TB]}};TB=w(R,V6,"ShellOomKill.Kind",[[0,"UNSPECIFIED"],[1,"COMMAND_KILLED"],[2,"COMMAND_FAILED"],[3,"UNCONFIRMED"]],1);v9=class v9 extends J0{constructor(Z){super();this.command="",this.workingDirectory="",this.exitCode=0,this.signal="",this.stdout="",this.stderr="",this.executionTime=0,R.util.initPartial(Z,this)}static fromBinary(Z,$){return new v9().fromBinary(Z,$)}static fromJson(Z,$){return new v9().fromJson(Z,$)}static fromJsonString(Z,$){return new v9().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(v9,Z,$)}static $(){return["ShellSuccess|1 command 9|2 working_directory 9|3 exit_code 5|4 signal 9|5 stdout 9|6 stderr 9|7 execution_time 5|8 output_location #0?|9 shell_id 13?|10 interleaved_output 9?|11 pid 13?|12 ms_to_wait 5?|13 local_execution_time_ms 5?|14 background_reason #1?|15 output_head 9?|16 output_tail 9?|17 elided_chars 13?",N0,Hx]}};y9=class y9 extends J0{constructor(Z){super();this.command="",this.workingDirectory="",this.exitCode=0,this.signal="",this.stdout="",this.stderr="",this.executionTime=0,this.aborted=!1,R.util.initPartial(Z,this)}static fromBinary(Z,$){return new y9().fromBinary(Z,$)}static fromJson(Z,$){return new y9().fromJson(Z,$)}static fromJsonString(Z,$){return new y9().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(y9,Z,$)}static $(){return["ShellFailure|1 command 9|2 working_directory 9|3 exit_code 5|4 signal 9|5 stdout 9|6 stderr 9|7 execution_time 5|8 output_location #0?|9 interleaved_output 9?|10 abort_reason #1?|11 aborted 8|12 local_execution_time_ms 5?|13 output_head 9?|14 output_tail 9?|15 elided_chars 13?|16 oom_kill #2?",N0,Wx,R9]}};m9=class m9 extends J0{constructor(Z){super();this.command="",this.workingDirectory="",this.timeoutMs=0,R.util.initPartial(Z,this)}static fromBinary(Z,$){return new m9().fromBinary(Z,$)}static fromJson(Z,$){return new m9().fromJson(Z,$)}static fromJsonString(Z,$){return new m9().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(m9,Z,$)}static $(){return["ShellTimeout|1 command 9|2 working_directory 9|3 timeout_ms 5"]}};j9=class j9 extends J0{constructor(Z){super();this.command="",this.workingDirectory="",this.reason="",this.isReadonly=!1,R.util.initPartial(Z,this)}static fromBinary(Z,$){return new j9().fromBinary(Z,$)}static fromJson(Z,$){return new j9().fromJson(Z,$)}static fromJsonString(Z,$){return new j9().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(j9,Z,$)}static $(){return["ShellRejected|1 command 9|2 working_directory 9|3 reason 9|4 is_readonly 8"]}};_9=class _9 extends J0{constructor(Z){super();this.command="",this.workingDirectory="",this.error="",this.isReadonly=!1,R.util.initPartial(Z,this)}static fromBinary(Z,$){return new _9().fromBinary(Z,$)}static fromJson(Z,$){return new _9().fromJson(Z,$)}static fromJsonString(Z,$){return new _9().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(_9,Z,$)}static $(){return["ShellPermissionDenied|1 command 9|2 working_directory 9|3 error 9|4 is_readonly 8"]}};S9=class S9 extends J0{constructor(Z){super();this.command="",this.workingDirectory="",this.error="",R.util.initPartial(Z,this)}static fromBinary(Z,$){return new S9().fromBinary(Z,$)}static fromJson(Z,$){return new S9().fromJson(Z,$)}static fromJsonString(Z,$){return new S9().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(S9,Z,$)}static $(){return["ShellSpawnError|1 command 9|2 working_directory 9|3 error 9"]}}});import{Message as jp,proto3 as BW}from"@bufbuild/protobuf";var qx="agent.v1.",hB,A6;var RB=O(()=>{CB();A();hB=class hB extends G{static get runtime(){return F(this,"runtime",BW)}static $p(){return qx}};A6=class A6 extends hB{constructor(Z){super();BW.util.initPartial(Z,this)}static fromBinary(Z,$){return new A6().fromBinary(Z,$)}static fromJson(Z,$){return new A6().fromJson(Z,$)}static fromJsonString(Z,$){return new A6().fromJsonString(Z,$)}static equals(Z,$){return BW.util.equals(A6,Z,$)}static $(){return["ShellToolCall|1 args #0|2 result #1|3 description 9?",E6,f6]}}});import{Message as cp,proto3 as s,protoInt64 as Nx}from"@bufbuild/protobuf";var Bx="agent.v1.",B8,M6,x6,g9,b9,c9,d9,u9,l9,p9;var vB=O(()=>{A();B8=class B8 extends G{static get runtime(){return F(this,"runtime",s)}static $p(){return Bx}};M6=class M6 extends B8{constructor(Z){super();this.path="",this.toolCallId="",s.util.initPartial(Z,this)}static fromBinary(Z,$){return new M6().fromBinary(Z,$)}static fromJson(Z,$){return new M6().fromJson(Z,$)}static fromJsonString(Z,$){return new M6().fromJsonString(Z,$)}static equals(Z,$){return s.util.equals(M6,Z,$)}static $(){return["DeleteArgs|1 path 9|2 tool_call_id 9"]}};x6=class x6 extends B8{constructor(Z){super();this.result={case:void 0},s.util.initPartial(Z,this)}static fromBinary(Z,$){return new x6().fromBinary(Z,$)}static fromJson(Z,$){return new x6().fromJson(Z,$)}static fromJsonString(Z,$){return new x6().fromJsonString(Z,$)}static equals(Z,$){return s.util.equals(x6,Z,$)}static $(){return["DeleteResult|1 success #0 result|2 file_not_found #1 result|3 not_file #2 result|4 permission_denied #3 result|5 file_busy #4 result|6 rejected #5 result|7 error #6 result",g9,b9,c9,d9,u9,l9,p9]}};g9=class g9 extends B8{constructor(Z){super();this.path="",this.deletedFile="",this.fileSize=Nx.zero,this.prevContent="",s.util.initPartial(Z,this)}static fromBinary(Z,$){return new g9().fromBinary(Z,$)}static fromJson(Z,$){return new g9().fromJson(Z,$)}static fromJsonString(Z,$){return new g9().fromJsonString(Z,$)}static equals(Z,$){return s.util.equals(g9,Z,$)}static $(){return["DeleteSuccess|1 path 9|2 deleted_file 9|3 file_size 3|4 prev_content 9"]}};b9=class b9 extends B8{constructor(Z){super();this.path="",s.util.initPartial(Z,this)}static fromBinary(Z,$){return new b9().fromBinary(Z,$)}static fromJson(Z,$){return new b9().fromJson(Z,$)}static fromJsonString(Z,$){return new b9().fromJsonString(Z,$)}static equals(Z,$){return s.util.equals(b9,Z,$)}static $(){return["DeleteFileNotFound|1 path 9"]}};c9=class c9 extends B8{constructor(Z){super();this.path="",this.actualType="",s.util.initPartial(Z,this)}static fromBinary(Z,$){return new c9().fromBinary(Z,$)}static fromJson(Z,$){return new c9().fromJson(Z,$)}static fromJsonString(Z,$){return new c9().fromJsonString(Z,$)}static equals(Z,$){return s.util.equals(c9,Z,$)}static $(){return["DeleteNotFile|1 path 9|2 actual_type 9"]}};d9=class d9 extends B8{constructor(Z){super();this.path="",this.clientVisibleError="",this.isReadonly=!1,s.util.initPartial(Z,this)}static fromBinary(Z,$){return new d9().fromBinary(Z,$)}static fromJson(Z,$){return new d9().fromJson(Z,$)}static fromJsonString(Z,$){return new d9().fromJsonString(Z,$)}static equals(Z,$){return s.util.equals(d9,Z,$)}static $(){return["DeletePermissionDenied|1 path 9|2 client_visible_error 9|3 is_readonly 8"]}};u9=class u9 extends B8{constructor(Z){super();this.path="",s.util.initPartial(Z,this)}static fromBinary(Z,$){return new u9().fromBinary(Z,$)}static fromJson(Z,$){return new u9().fromJson(Z,$)}static fromJsonString(Z,$){return new u9().fromJsonString(Z,$)}static equals(Z,$){return s.util.equals(u9,Z,$)}static $(){return["DeleteFileBusy|1 path 9"]}};l9=class l9 extends B8{constructor(Z){super();this.path="",this.reason="",s.util.initPartial(Z,this)}static fromBinary(Z,$){return new l9().fromBinary(Z,$)}static fromJson(Z,$){return new l9().fromJson(Z,$)}static fromJsonString(Z,$){return new l9().fromJsonString(Z,$)}static equals(Z,$){return s.util.equals(l9,Z,$)}static $(){return["DeleteRejected|1 path 9|2 reason 9"]}};p9=class p9 extends B8{constructor(Z){super();this.path="",this.error="",s.util.initPartial(Z,this)}static fromBinary(Z,$){return new p9().fromBinary(Z,$)}static fromJson(Z,$){return new p9().fromJson(Z,$)}static fromJsonString(Z,$){return new p9().fromJsonString(Z,$)}static equals(Z,$){return s.util.equals(p9,Z,$)}static $(){return["DeleteError|1 path 9|2 error 9"]}}});import{Message as pp,proto3 as FW}from"@bufbuild/protobuf";var Fx="agent.v1.",yB,T6;var mB=O(()=>{vB();A();yB=class yB extends G{static get runtime(){return F(this,"runtime",FW)}static $p(){return Fx}};T6=class T6 extends yB{constructor(Z){super();FW.util.initPartial(Z,this)}static fromBinary(Z,$){return new T6().fromBinary(Z,$)}static fromJson(Z,$){return new T6().fromJson(Z,$)}static fromJsonString(Z,$){return new T6().fromJsonString(Z,$)}static equals(Z,$){return FW.util.equals(T6,Z,$)}static $(){return["DeleteToolCall|1 args #0|2 result #1",M6,x6]}}});import{Message as sp,proto3 as n0}from"@bufbuild/protobuf";var Gx="agent.v1.",s9,i9,n9,r9,a9,C6;var jB=O(()=>{A();s9=class s9 extends G{static get runtime(){return F(this,"runtime",n0)}static $p(){return Gx}};i9=class i9 extends s9{constructor(Z){super();this.globPattern="",n0.util.initPartial(Z,this)}static fromBinary(Z,$){return new i9().fromBinary(Z,$)}static fromJson(Z,$){return new i9().fromJson(Z,$)}static fromJsonString(Z,$){return new i9().fromJsonString(Z,$)}static equals(Z,$){return n0.util.equals(i9,Z,$)}static $(){return["GlobToolArgs|1 target_directory 9?|2 glob_pattern 9"]}};n9=class n9 extends s9{constructor(Z){super();this.result={case:void 0},n0.util.initPartial(Z,this)}static fromBinary(Z,$){return new n9().fromBinary(Z,$)}static fromJson(Z,$){return new n9().fromJson(Z,$)}static fromJsonString(Z,$){return new n9().fromJsonString(Z,$)}static equals(Z,$){return n0.util.equals(n9,Z,$)}static $(){return["GlobToolResult|1 success #0 result|2 error #1 result",a9,r9]}};r9=class r9 extends s9{constructor(Z){super();this.error="",n0.util.initPartial(Z,this)}static fromBinary(Z,$){return new r9().fromBinary(Z,$)}static fromJson(Z,$){return new r9().fromJson(Z,$)}static fromJsonString(Z,$){return new r9().fromJsonString(Z,$)}static equals(Z,$){return n0.util.equals(r9,Z,$)}static $(){return["GlobToolError|1 error 9"]}};a9=class a9 extends s9{constructor(Z){super();this.pattern="",this.path="",this.files=[],this.totalFiles=0,this.clientTruncated=!1,this.ripgrepTruncated=!1,n0.util.initPartial(Z,this)}static fromBinary(Z,$){return new a9().fromBinary(Z,$)}static fromJson(Z,$){return new a9().fromJson(Z,$)}static fromJsonString(Z,$){return new a9().fromJsonString(Z,$)}static equals(Z,$){return n0.util.equals(a9,Z,$)}static $(){return["GlobToolSuccess|1 pattern 9|2 path 9|3 files 9*|4 total_files 5|5 client_truncated 8|6 ripgrep_truncated 8"]}};C6=class C6 extends s9{constructor(Z){super();n0.util.initPartial(Z,this)}static fromBinary(Z,$){return new C6().fromBinary(Z,$)}static fromJson(Z,$){return new C6().fromJson(Z,$)}static fromJsonString(Z,$){return new C6().fromJsonString(Z,$)}static equals(Z,$){return n0.util.equals(C6,Z,$)}static $(){return["GlobToolCall|1 args #0|2 result #1",i9,n9]}}});import{Message as Zi,proto3 as c}from"@bufbuild/protobuf";var Lx="agent.v1.",j0,h6,R6,t9,o9,e9,Z7,$7,J7,Y7,X7,z7;var _B=O(()=>{oQ();A();j0=class j0 extends G{static get runtime(){return F(this,"runtime",c)}static $p(){return Lx}};h6=class h6 extends j0{constructor(Z){super();this.pattern="",this.toolCallId="",c.util.initPartial(Z,this)}static fromBinary(Z,$){return new h6().fromBinary(Z,$)}static fromJson(Z,$){return new h6().fromJson(Z,$)}static fromJsonString(Z,$){return new h6().fromJsonString(Z,$)}static equals(Z,$){return c.util.equals(h6,Z,$)}static $(){return["GrepArgs|1 pattern 9|2 path 9?|3 glob 9?|4 output_mode 9?|5 context_before 5?|6 context_after 5?|7 context 5?|8 case_insensitive 8?|9 type 9?|10 head_limit 5?|11 multiline 8?|12 sort 9?|13 sort_ascending 8?|14 tool_call_id 9|15 sandbox_policy #0?|16 offset 5?",m0]}};R6=class R6 extends j0{constructor(Z){super();this.result={case:void 0},c.util.initPartial(Z,this)}static fromBinary(Z,$){return new R6().fromBinary(Z,$)}static fromJson(Z,$){return new R6().fromJson(Z,$)}static fromJsonString(Z,$){return new R6().fromJsonString(Z,$)}static equals(Z,$){return c.util.equals(R6,Z,$)}static $(){return["GrepResult|1 success #0 result|2 error #1 result",o9,t9]}};t9=class t9 extends j0{constructor(Z){super();this.error="",c.util.initPartial(Z,this)}static fromBinary(Z,$){return new t9().fromBinary(Z,$)}static fromJson(Z,$){return new t9().fromJson(Z,$)}static fromJsonString(Z,$){return new t9().fromJsonString(Z,$)}static equals(Z,$){return c.util.equals(t9,Z,$)}static $(){return["GrepError|1 error 9"]}};o9=class o9 extends j0{constructor(Z){super();this.pattern="",this.path="",this.outputMode="",this.workspaceResults={},c.util.initPartial(Z,this)}static fromBinary(Z,$){return new o9().fromBinary(Z,$)}static fromJson(Z,$){return new o9().fromJson(Z,$)}static fromJsonString(Z,$){return new o9().fromJsonString(Z,$)}static equals(Z,$){return c.util.equals(o9,Z,$)}static $(){return["GrepSuccess|1 pattern 9|2 path 9|3 output_mode 9|4 workspace_results 9,#0|5 active_editor_result #0?",e9]}};e9=class e9 extends j0{constructor(Z){super();this.result={case:void 0},c.util.initPartial(Z,this)}static fromBinary(Z,$){return new e9().fromBinary(Z,$)}static fromJson(Z,$){return new e9().fromJson(Z,$)}static fromJsonString(Z,$){return new e9().fromJsonString(Z,$)}static equals(Z,$){return c.util.equals(e9,Z,$)}static $(){return["GrepUnionResult|1 count #0 result|2 files #1 result|3 content #2 result",Z7,J7,Y7]}};Z7=class Z7 extends j0{constructor(Z){super();this.counts=[],this.totalFiles=0,this.totalMatches=0,this.clientTruncated=!1,this.ripgrepTruncated=!1,c.util.initPartial(Z,this)}static fromBinary(Z,$){return new Z7().fromBinary(Z,$)}static fromJson(Z,$){return new Z7().fromJson(Z,$)}static fromJsonString(Z,$){return new Z7().fromJsonString(Z,$)}static equals(Z,$){return c.util.equals(Z7,Z,$)}static $(){return["GrepCountResult|1 counts #0*|2 total_files 5|3 total_matches 5|4 client_truncated 8|5 ripgrep_truncated 8|6 head_limit_applied 5?|7 offset_applied 5?",$7]}};$7=class $7 extends j0{constructor(Z){super();this.file="",this.count=0,c.util.initPartial(Z,this)}static fromBinary(Z,$){return new $7().fromBinary(Z,$)}static fromJson(Z,$){return new $7().fromJson(Z,$)}static fromJsonString(Z,$){return new $7().fromJsonString(Z,$)}static equals(Z,$){return c.util.equals($7,Z,$)}static $(){return["GrepFileCount|1 file 9|2 count 5"]}};J7=class J7 extends j0{constructor(Z){super();this.files=[],this.totalFiles=0,this.clientTruncated=!1,this.ripgrepTruncated=!1,c.util.initPartial(Z,this)}static fromBinary(Z,$){return new J7().fromBinary(Z,$)}static fromJson(Z,$){return new J7().fromJson(Z,$)}static fromJsonString(Z,$){return new J7().fromJsonString(Z,$)}static equals(Z,$){return c.util.equals(J7,Z,$)}static $(){return["GrepFilesResult|1 files 9*|2 total_files 5|3 client_truncated 8|4 ripgrep_truncated 8|5 head_limit_applied 5?|6 offset_applied 5?"]}};Y7=class Y7 extends j0{constructor(Z){super();this.matches=[],this.totalLines=0,this.totalMatchedLines=0,this.clientTruncated=!1,this.ripgrepTruncated=!1,c.util.initPartial(Z,this)}static fromBinary(Z,$){return new Y7().fromBinary(Z,$)}static fromJson(Z,$){return new Y7().fromJson(Z,$)}static fromJsonString(Z,$){return new Y7().fromJsonString(Z,$)}static equals(Z,$){return c.util.equals(Y7,Z,$)}static $(){return["GrepContentResult|1 matches #0*|2 total_lines 5|3 total_matched_lines 5|4 client_truncated 8|5 ripgrep_truncated 8|6 head_limit_applied 5?|7 offset_applied 5?",X7]}};X7=class X7 extends j0{constructor(Z){super();this.file="",this.matches=[],c.util.initPartial(Z,this)}static fromBinary(Z,$){return new X7().fromBinary(Z,$)}static fromJson(Z,$){return new X7().fromJson(Z,$)}static fromJsonString(Z,$){return new X7().fromJsonString(Z,$)}static equals(Z,$){return c.util.equals(X7,Z,$)}static $(){return["GrepFileMatch|1 file 9|2 matches #0*",z7]}};z7=class z7 extends j0{constructor(Z){super();this.lineNumber=0,this.content="",this.contentTruncated=!1,this.isContextLine=!1,c.util.initPartial(Z,this)}static fromBinary(Z,$){return new z7().fromBinary(Z,$)}static fromJson(Z,$){return new z7().fromJson(Z,$)}static fromJsonString(Z,$){return new z7().fromJsonString(Z,$)}static equals(Z,$){return c.util.equals(z7,Z,$)}static $(){return["GrepContentMatch|1 line_number 5|2 content 9|3 content_truncated 8|4 is_context_line 8"]}}});import{Message as zi,proto3 as GW}from"@bufbuild/protobuf";var Dx="agent.v1.",SB,v6;var gB=O(()=>{_B();A();SB=class SB extends G{static get runtime(){return F(this,"runtime",GW)}static $p(){return Dx}};v6=class v6 extends SB{constructor(Z){super();GW.util.initPartial(Z,this)}static fromBinary(Z,$){return new v6().fromBinary(Z,$)}static fromJson(Z,$){return new v6().fromJson(Z,$)}static fromJsonString(Z,$){return new v6().fromJsonString(Z,$)}static equals(Z,$){return GW.util.equals(v6,Z,$)}static $(){return["GrepToolCall|1 args #0|2 result #1",h6,R6]}}});import{Message as qi,proto3 as f0}from"@bufbuild/protobuf";var cB="agent.v1.",y6,bB,K7,Q7,H7,W7,q7,f8;var LW=O(()=>{A();y6=class y6 extends G{static get runtime(){return F(this,"runtime",f0)}static $p(){return cB}};bB=w(f0,cB,"CursorRuleSource",[[0,"UNSPECIFIED"],[1,"TEAM"],[2,"USER"]],1);K7=class K7 extends y6{constructor(Z){super();f0.util.initPartial(Z,this)}static fromBinary(Z,$){return new K7().fromBinary(Z,$)}static fromJson(Z,$){return new K7().fromJson(Z,$)}static fromJsonString(Z,$){return new K7().fromJsonString(Z,$)}static equals(Z,$){return f0.util.equals(K7,Z,$)}static $(){return["CursorRuleTypeGlobal"]}};Q7=class Q7 extends y6{constructor(Z){super();this.globs=[],f0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Q7().fromBinary(Z,$)}static fromJson(Z,$){return new Q7().fromJson(Z,$)}static fromJsonString(Z,$){return new Q7().fromJsonString(Z,$)}static equals(Z,$){return f0.util.equals(Q7,Z,$)}static $(){return["CursorRuleTypeFileGlobs|1 globs 9*"]}};H7=class H7 extends y6{constructor(Z){super();this.description="",f0.util.initPartial(Z,this)}static fromBinary(Z,$){return new H7().fromBinary(Z,$)}static fromJson(Z,$){return new H7().fromJson(Z,$)}static fromJsonString(Z,$){return new H7().fromJsonString(Z,$)}static equals(Z,$){return f0.util.equals(H7,Z,$)}static $(){return["CursorRuleTypeAgentFetched|1 description 9"]}};W7=class W7 extends y6{constructor(Z){super();f0.util.initPartial(Z,this)}static fromBinary(Z,$){return new W7().fromBinary(Z,$)}static fromJson(Z,$){return new W7().fromJson(Z,$)}static fromJsonString(Z,$){return new W7().fromJsonString(Z,$)}static equals(Z,$){return f0.util.equals(W7,Z,$)}static $(){return["CursorRuleTypeManuallyAttached"]}};q7=class q7 extends y6{constructor(Z){super();this.type={case:void 0},f0.util.initPartial(Z,this)}static fromBinary(Z,$){return new q7().fromBinary(Z,$)}static fromJson(Z,$){return new q7().fromJson(Z,$)}static fromJsonString(Z,$){return new q7().fromJsonString(Z,$)}static equals(Z,$){return f0.util.equals(q7,Z,$)}static $(){return["CursorRuleType|1 global #0 type|2 file_globbed #1 type|3 agent_fetched #2 type|4 manually_attached #3 type",K7,Q7,H7,W7]}};f8=class f8 extends y6{constructor(Z){super();this.fullPath="",this.content="",this.source=bB.UNSPECIFIED,this.environments=[],this.disabledEnvironments=[],this.scopedTo=[],this.frontmatter="",this.warnings=[],f0.util.initPartial(Z,this)}static fromBinary(Z,$){return new f8().fromBinary(Z,$)}static fromJson(Z,$){return new f8().fromJson(Z,$)}static fromJsonString(Z,$){return new f8().fromJsonString(Z,$)}static equals(Z,$){return f0.util.equals(f8,Z,$)}static $(){return["CursorRule|1 full_path 9|2 content 9|3 type #0|4 source #1|5 git_remote_origin 9?|6 parse_error 9?|7 environments 9*|8 disabled_environments 9*|9 plugin 9?|10 marketplace 9?|11 plugin_id 9?|12 marketplace_id 9?|13 scoped_to 9*|14 frontmatter 9|15 is_required 8?|16 warnings 9*|17 body_omitted 8?",q7,bB]}}});import{Message as Gi,proto3 as h0}from"@bufbuild/protobuf";var wx="agent.v1.",j6,m6,N7,B7,F7,G7,L7;var dB=O(()=>{LW();A();j6=class j6 extends G{static get runtime(){return F(this,"runtime",h0)}static $p(){return wx}};m6=class m6 extends j6{constructor(Z){super();h0.util.initPartial(Z,this)}static fromBinary(Z,$){return new m6().fromBinary(Z,$)}static fromJson(Z,$){return new m6().fromJson(Z,$)}static fromJsonString(Z,$){return new m6().fromJsonString(Z,$)}static equals(Z,$){return h0.util.equals(m6,Z,$)}static $(){return["ReadToolCall|1 args #0|2 result #1",N7,B7]}};N7=class N7 extends j6{constructor(Z){super();this.path="",h0.util.initPartial(Z,this)}static fromBinary(Z,$){return new N7().fromBinary(Z,$)}static fromJson(Z,$){return new N7().fromJson(Z,$)}static fromJsonString(Z,$){return new N7().fromJsonString(Z,$)}static equals(Z,$){return h0.util.equals(N7,Z,$)}static $(){return["ReadToolArgs|1 path 9|2 offset 5?|3 limit 5?|5 include_line_numbers 8?"]}};B7=class B7 extends j6{constructor(Z){super();this.result={case:void 0},h0.util.initPartial(Z,this)}static fromBinary(Z,$){return new B7().fromBinary(Z,$)}static fromJson(Z,$){return new B7().fromJson(Z,$)}static fromJsonString(Z,$){return new B7().fromJsonString(Z,$)}static equals(Z,$){return h0.util.equals(B7,Z,$)}static $(){return["ReadToolResult|1 success #0 result|2 error #1 result",G7,L7]}};F7=class F7 extends j6{constructor(Z){super();this.startLine=0,this.endLine=0,h0.util.initPartial(Z,this)}static fromBinary(Z,$){return new F7().fromBinary(Z,$)}static fromJson(Z,$){return new F7().fromJson(Z,$)}static fromJsonString(Z,$){return new F7().fromJsonString(Z,$)}static equals(Z,$){return h0.util.equals(F7,Z,$)}static $(){return["ReadRange|1 start_line 13|2 end_line 13"]}};G7=class G7 extends j6{constructor(Z){super();this.output={case:void 0},this.isEmpty=!1,this.exceededLimit=!1,this.totalLines=0,this.fileSize=0,this.path="",this.relatedCursorRulePaths=[],this.relatedCursorRules=[],h0.util.initPartial(Z,this)}static fromBinary(Z,$){return new G7().fromBinary(Z,$)}static fromJson(Z,$){return new G7().fromJson(Z,$)}static fromJsonString(Z,$){return new G7().fromJsonString(Z,$)}static equals(Z,$){return h0.util.equals(G7,Z,$)}static $(){return["ReadToolSuccess|1 content 9 output|6 data 12 output|9 data_blob_id 12 output|10 content_blob_id 12 output|2 is_empty 8|3 exceeded_limit 8|4 total_lines 13|5 file_size 13|7 path 9|8 read_range #0?|11 include_line_numbers 8?|12 related_cursor_rule_paths 9*|13 related_cursor_rules #1*",F7,f8]}};L7=class L7 extends j6{constructor(Z){super();this.errorMessage="",h0.util.initPartial(Z,this)}static fromBinary(Z,$){return new L7().fromBinary(Z,$)}static fromJson(Z,$){return new L7().fromJson(Z,$)}static fromJsonString(Z,$){return new L7().fromJsonString(Z,$)}static equals(Z,$){return h0.util.equals(L7,Z,$)}static $(){return["ReadToolError|1 error_message 9"]}}});import{Message as Oi,proto3 as b,protoInt64 as uB}from"@bufbuild/protobuf";var lB="agent.v1.",_0,DW,B0,_6,D7,w7,U7,O7,S6,I7,k7,P7,E7;var eQ=O(()=>{A();_0=class _0 extends G{static get runtime(){return F(this,"runtime",b)}static $p(){return lB}};DW=w(b,lB,"TodoStatus",[[0,"UNSPECIFIED"],[1,"PENDING"],[2,"IN_PROGRESS"],[3,"COMPLETED"],[4,"CANCELLED"]],1);B0=class B0 extends _0{constructor(Z){super();this.id="",this.content="",this.status=DW.UNSPECIFIED,this.createdAt=uB.zero,this.updatedAt=uB.zero,this.dependencies=[],b.util.initPartial(Z,this)}static fromBinary(Z,$){return new B0().fromBinary(Z,$)}static fromJson(Z,$){return new B0().fromJson(Z,$)}static fromJsonString(Z,$){return new B0().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(B0,Z,$)}static $(){return["TodoItem|1 id 9|2 content 9|3 status #0|4 created_at 3|5 updated_at 3|6 dependencies 9*",DW]}};_6=class _6 extends _0{constructor(Z){super();b.util.initPartial(Z,this)}static fromBinary(Z,$){return new _6().fromBinary(Z,$)}static fromJson(Z,$){return new _6().fromJson(Z,$)}static fromJsonString(Z,$){return new _6().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(_6,Z,$)}static $(){return["UpdateTodosToolCall|1 args #0|2 result #1",D7,w7]}};D7=class D7 extends _0{constructor(Z){super();this.todos=[],this.merge=!1,b.util.initPartial(Z,this)}static fromBinary(Z,$){return new D7().fromBinary(Z,$)}static fromJson(Z,$){return new D7().fromJson(Z,$)}static fromJsonString(Z,$){return new D7().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(D7,Z,$)}static $(){return["UpdateTodosArgs|1 todos #0*|2 merge 8",B0]}};w7=class w7 extends _0{constructor(Z){super();this.result={case:void 0},b.util.initPartial(Z,this)}static fromBinary(Z,$){return new w7().fromBinary(Z,$)}static fromJson(Z,$){return new w7().fromJson(Z,$)}static fromJsonString(Z,$){return new w7().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(w7,Z,$)}static $(){return["UpdateTodosResult|1 success #0 result|2 error #1 result",U7,O7]}};U7=class U7 extends _0{constructor(Z){super();this.todos=[],this.totalCount=0,this.wasMerge=!1,b.util.initPartial(Z,this)}static fromBinary(Z,$){return new U7().fromBinary(Z,$)}static fromJson(Z,$){return new U7().fromJson(Z,$)}static fromJsonString(Z,$){return new U7().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(U7,Z,$)}static $(){return["UpdateTodosSuccess|1 todos #0*|2 total_count 5|3 was_merge 8",B0]}};O7=class O7 extends _0{constructor(Z){super();this.error="",b.util.initPartial(Z,this)}static fromBinary(Z,$){return new O7().fromBinary(Z,$)}static fromJson(Z,$){return new O7().fromJson(Z,$)}static fromJsonString(Z,$){return new O7().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(O7,Z,$)}static $(){return["UpdateTodosError|1 error 9"]}};S6=class S6 extends _0{constructor(Z){super();b.util.initPartial(Z,this)}static fromBinary(Z,$){return new S6().fromBinary(Z,$)}static fromJson(Z,$){return new S6().fromJson(Z,$)}static fromJsonString(Z,$){return new S6().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(S6,Z,$)}static $(){return["ReadTodosToolCall|1 args #0|2 result #1",I7,k7]}};I7=class I7 extends _0{constructor(Z){super();this.statusFilter=[],this.idFilter=[],b.util.initPartial(Z,this)}static fromBinary(Z,$){return new I7().fromBinary(Z,$)}static fromJson(Z,$){return new I7().fromJson(Z,$)}static fromJsonString(Z,$){return new I7().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(I7,Z,$)}static $(){return["ReadTodosArgs|1 status_filter #0*|2 id_filter 9*",DW]}};k7=class k7 extends _0{constructor(Z){super();this.result={case:void 0},b.util.initPartial(Z,this)}static fromBinary(Z,$){return new k7().fromBinary(Z,$)}static fromJson(Z,$){return new k7().fromJson(Z,$)}static fromJsonString(Z,$){return new k7().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(k7,Z,$)}static $(){return["ReadTodosResult|1 success #0 result|2 error #1 result",P7,E7]}};P7=class P7 extends _0{constructor(Z){super();this.todos=[],this.totalCount=0,b.util.initPartial(Z,this)}static fromBinary(Z,$){return new P7().fromBinary(Z,$)}static fromJson(Z,$){return new P7().fromJson(Z,$)}static fromJsonString(Z,$){return new P7().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(P7,Z,$)}static $(){return["ReadTodosSuccess|1 todos #0*|2 total_count 5",B0]}};E7=class E7 extends _0{constructor(Z){super();this.error="",b.util.initPartial(Z,this)}static fromBinary(Z,$){return new E7().fromBinary(Z,$)}static fromJson(Z,$){return new E7().fromJson(Z,$)}static fromJsonString(Z,$){return new E7().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(E7,Z,$)}static $(){return["ReadTodosError|1 error 9"]}}});import{Message as Ei,proto3 as t}from"@bufbuild/protobuf";var Ux="agent.v1.",F8,f7,V7,A7,M7,x7,T7,C7,h7,g6;var pB=O(()=>{A();F8=class F8 extends G{static get runtime(){return F(this,"runtime",t)}static $p(){return Ux}};f7=class f7 extends F8{constructor(Z){super();this.path="",t.util.initPartial(Z,this)}static fromBinary(Z,$){return new f7().fromBinary(Z,$)}static fromJson(Z,$){return new f7().fromJson(Z,$)}static fromJsonString(Z,$){return new f7().fromJsonString(Z,$)}static equals(Z,$){return t.util.equals(f7,Z,$)}static $(){return["EditArgs|1 path 9|6 stream_content 9?"]}};V7=class V7 extends F8{constructor(Z){super();this.result={case:void 0},t.util.initPartial(Z,this)}static fromBinary(Z,$){return new V7().fromBinary(Z,$)}static fromJson(Z,$){return new V7().fromJson(Z,$)}static fromJsonString(Z,$){return new V7().fromJsonString(Z,$)}static equals(Z,$){return t.util.equals(V7,Z,$)}static $(){return["EditResult|1 success #0 result|2 file_not_found #1 result|3 read_permission_denied #2 result|4 write_permission_denied #3 result|6 rejected #4 result|7 error #5 result",A7,M7,x7,T7,C7,h7]}};A7=class A7 extends F8{constructor(Z){super();this.path="",this.afterFullFileContent="",t.util.initPartial(Z,this)}static fromBinary(Z,$){return new A7().fromBinary(Z,$)}static fromJson(Z,$){return new A7().fromJson(Z,$)}static fromJsonString(Z,$){return new A7().fromJsonString(Z,$)}static equals(Z,$){return t.util.equals(A7,Z,$)}static $(){return["EditSuccess|1 path 9|3 lines_added 5?|4 lines_removed 5?|5 diff_string 9?|6 before_full_file_content 9?|7 after_full_file_content 9|8 message 9?"]}};M7=class M7 extends F8{constructor(Z){super();this.path="",t.util.initPartial(Z,this)}static fromBinary(Z,$){return new M7().fromBinary(Z,$)}static fromJson(Z,$){return new M7().fromJson(Z,$)}static fromJsonString(Z,$){return new M7().fromJsonString(Z,$)}static equals(Z,$){return t.util.equals(M7,Z,$)}static $(){return["EditFileNotFound|1 path 9"]}};x7=class x7 extends F8{constructor(Z){super();this.path="",t.util.initPartial(Z,this)}static fromBinary(Z,$){return new x7().fromBinary(Z,$)}static fromJson(Z,$){return new x7().fromJson(Z,$)}static fromJsonString(Z,$){return new x7().fromJsonString(Z,$)}static equals(Z,$){return t.util.equals(x7,Z,$)}static $(){return["EditReadPermissionDenied|1 path 9"]}};T7=class T7 extends F8{constructor(Z){super();this.path="",this.error="",this.isReadonly=!1,t.util.initPartial(Z,this)}static fromBinary(Z,$){return new T7().fromBinary(Z,$)}static fromJson(Z,$){return new T7().fromJson(Z,$)}static fromJsonString(Z,$){return new T7().fromJsonString(Z,$)}static equals(Z,$){return t.util.equals(T7,Z,$)}static $(){return["EditWritePermissionDenied|1 path 9|2 error 9|3 is_readonly 8"]}};C7=class C7 extends F8{constructor(Z){super();this.path="",this.reason="",t.util.initPartial(Z,this)}static fromBinary(Z,$){return new C7().fromBinary(Z,$)}static fromJson(Z,$){return new C7().fromJson(Z,$)}static fromJsonString(Z,$){return new C7().fromJsonString(Z,$)}static equals(Z,$){return t.util.equals(C7,Z,$)}static $(){return["EditRejected|1 path 9|2 reason 9"]}};h7=class h7 extends F8{constructor(Z){super();this.path="",this.error="",t.util.initPartial(Z,this)}static fromBinary(Z,$){return new h7().fromBinary(Z,$)}static fromJson(Z,$){return new h7().fromJson(Z,$)}static fromJsonString(Z,$){return new h7().fromJsonString(Z,$)}static equals(Z,$){return t.util.equals(h7,Z,$)}static $(){return["EditError|1 path 9|2 error 9|5 model_visible_error 9?"]}};g6=class g6 extends F8{constructor(Z){super();t.util.initPartial(Z,this)}static fromBinary(Z,$){return new g6().fromBinary(Z,$)}static fromJson(Z,$){return new g6().fromJson(Z,$)}static fromJsonString(Z,$){return new g6().fromJsonString(Z,$)}static equals(Z,$){return t.util.equals(g6,Z,$)}static $(){return["EditToolCall|1 args #0|2 result #1",f7,V7]}}});import{Message as Mi,proto3 as p}from"@bufbuild/protobuf";var Ox="agent.v1.",r0,b6,c6,R7,G8,v7,y7,m7,j7,_7,S7;var wW=O(()=>{oQ();A();r0=class r0 extends G{static get runtime(){return F(this,"runtime",p)}static $p(){return Ox}};b6=class b6 extends r0{constructor(Z){super();this.path="",this.ignore=[],this.toolCallId="",p.util.initPartial(Z,this)}static fromBinary(Z,$){return new b6().fromBinary(Z,$)}static fromJson(Z,$){return new b6().fromJson(Z,$)}static fromJsonString(Z,$){return new b6().fromJsonString(Z,$)}static equals(Z,$){return p.util.equals(b6,Z,$)}static $(){return["LsArgs|1 path 9|2 ignore 9*|3 tool_call_id 9|4 sandbox_policy #0?|5 timeout_ms 13?",m0]}};c6=class c6 extends r0{constructor(Z){super();this.result={case:void 0},p.util.initPartial(Z,this)}static fromBinary(Z,$){return new c6().fromBinary(Z,$)}static fromJson(Z,$){return new c6().fromJson(Z,$)}static fromJsonString(Z,$){return new c6().fromJsonString(Z,$)}static equals(Z,$){return p.util.equals(c6,Z,$)}static $(){return["LsResult|1 success #0 result|2 error #1 result|3 rejected #2 result|4 timeout #3 result",R7,y7,m7,j7]}};R7=class R7 extends r0{constructor(Z){super();p.util.initPartial(Z,this)}static fromBinary(Z,$){return new R7().fromBinary(Z,$)}static fromJson(Z,$){return new R7().fromJson(Z,$)}static fromJsonString(Z,$){return new R7().fromJsonString(Z,$)}static equals(Z,$){return p.util.equals(R7,Z,$)}static $(){return["LsSuccess|1 directory_tree_root #0",G8]}};G8=class G8 extends r0{constructor(Z){super();this.absPath="",this.childrenDirs=[],this.childrenFiles=[],this.childrenWereProcessed=!1,this.fullSubtreeExtensionCounts={},this.numFiles=0,p.util.initPartial(Z,this)}static fromBinary(Z,$){return new G8().fromBinary(Z,$)}static fromJson(Z,$){return new G8().fromJson(Z,$)}static fromJsonString(Z,$){return new G8().fromJsonString(Z,$)}static equals(Z,$){return p.util.equals(G8,Z,$)}static $(){return["LsDirectoryTreeNode|1 abs_path 9|2 children_dirs #0*|3 children_files #1*|4 children_were_processed 8|5 full_subtree_extension_counts 9,5|6 num_files 5",G8,v7]}};v7=class v7 extends r0{constructor(Z){super();this.name="",p.util.initPartial(Z,this)}static fromBinary(Z,$){return new v7().fromBinary(Z,$)}static fromJson(Z,$){return new v7().fromJson(Z,$)}static fromJsonString(Z,$){return new v7().fromJsonString(Z,$)}static equals(Z,$){return p.util.equals(v7,Z,$)}static $(){return["LsDirectoryTreeNode.File|1 name 9|2 terminal_metadata #0?",_7]}};y7=class y7 extends r0{constructor(Z){super();this.path="",this.error="",p.util.initPartial(Z,this)}static fromBinary(Z,$){return new y7().fromBinary(Z,$)}static fromJson(Z,$){return new y7().fromJson(Z,$)}static fromJsonString(Z,$){return new y7().fromJsonString(Z,$)}static equals(Z,$){return p.util.equals(y7,Z,$)}static $(){return["LsError|1 path 9|2 error 9"]}};m7=class m7 extends r0{constructor(Z){super();this.path="",this.reason="",p.util.initPartial(Z,this)}static fromBinary(Z,$){return new m7().fromBinary(Z,$)}static fromJson(Z,$){return new m7().fromJson(Z,$)}static fromJsonString(Z,$){return new m7().fromJsonString(Z,$)}static equals(Z,$){return p.util.equals(m7,Z,$)}static $(){return["LsRejected|1 path 9|2 reason 9"]}};j7=class j7 extends r0{constructor(Z){super();p.util.initPartial(Z,this)}static fromBinary(Z,$){return new j7().fromBinary(Z,$)}static fromJson(Z,$){return new j7().fromJson(Z,$)}static fromJsonString(Z,$){return new j7().fromJsonString(Z,$)}static equals(Z,$){return p.util.equals(j7,Z,$)}static $(){return["LsTimeout|1 directory_tree_root #0",G8]}};_7=class _7 extends r0{constructor(Z){super();this.lastCommands=[],p.util.initPartial(Z,this)}static fromBinary(Z,$){return new _7().fromBinary(Z,$)}static fromJson(Z,$){return new _7().fromJson(Z,$)}static fromJsonString(Z,$){return new _7().fromJsonString(Z,$)}static equals(Z,$){return p.util.equals(_7,Z,$)}static $(){return["TerminalMetadata|1 cwd 9?|2 last_commands #0*|3 last_modified_ms 3?|4 current_command #0?",S7]}};S7=class S7 extends r0{constructor(Z){super();this.command="",p.util.initPartial(Z,this)}static fromBinary(Z,$){return new S7().fromBinary(Z,$)}static fromJson(Z,$){return new S7().fromJson(Z,$)}static fromJsonString(Z,$){return new S7().fromJsonString(Z,$)}static equals(Z,$){return p.util.equals(S7,Z,$)}static $(){return["TerminalMetadata.Command|1 command 9|2 exit_code 5?|3 timestamp_ms 3?|4 duration_ms 3?"]}}});import{Message as Ri,proto3 as UW}from"@bufbuild/protobuf";var Ix="agent.v1.",iB,d6;var nB=O(()=>{wW();A();iB=class iB extends G{static get runtime(){return F(this,"runtime",UW)}static $p(){return Ix}};d6=class d6 extends iB{constructor(Z){super();UW.util.initPartial(Z,this)}static fromBinary(Z,$){return new d6().fromBinary(Z,$)}static fromJson(Z,$){return new d6().fromJson(Z,$)}static fromJsonString(Z,$){return new d6().fromJsonString(Z,$)}static equals(Z,$){return UW.util.equals(d6,Z,$)}static $(){return["LsToolCall|1 args #0|2 result #1",b6,c6]}}});import{Message as _i,proto3 as kx}from"@bufbuild/protobuf";var Px="agent.v1.",OW;var rB=O(()=>{A();OW=w(kx,Px,"DiagnosticSeverity",[[0,"UNSPECIFIED"],[1,"ERROR"],[2,"WARNING"],[3,"INFORMATION"],[4,"HINT"]],1)});import{Message as ci,proto3 as X0}from"@bufbuild/protobuf";var Ex="agent.v1.",V8,u6,g7,b7,c7,d7,u7,l7,p7;var aB=O(()=>{rB();P6();A();V8=class V8 extends G{static get runtime(){return F(this,"runtime",X0)}static $p(){return Ex}};u6=class u6 extends V8{constructor(Z){super();X0.util.initPartial(Z,this)}static fromBinary(Z,$){return new u6().fromBinary(Z,$)}static fromJson(Z,$){return new u6().fromJson(Z,$)}static fromJsonString(Z,$){return new u6().fromJsonString(Z,$)}static equals(Z,$){return X0.util.equals(u6,Z,$)}static $(){return["ReadLintsToolCall|1 args #0|2 result #1",g7,b7]}};g7=class g7 extends V8{constructor(Z){super();this.paths=[],X0.util.initPartial(Z,this)}static fromBinary(Z,$){return new g7().fromBinary(Z,$)}static fromJson(Z,$){return new g7().fromJson(Z,$)}static fromJsonString(Z,$){return new g7().fromJsonString(Z,$)}static equals(Z,$){return X0.util.equals(g7,Z,$)}static $(){return["ReadLintsToolArgs|1 paths 9*"]}};b7=class b7 extends V8{constructor(Z){super();this.result={case:void 0},X0.util.initPartial(Z,this)}static fromBinary(Z,$){return new b7().fromBinary(Z,$)}static fromJson(Z,$){return new b7().fromJson(Z,$)}static fromJsonString(Z,$){return new b7().fromJsonString(Z,$)}static equals(Z,$){return X0.util.equals(b7,Z,$)}static $(){return["ReadLintsToolResult|1 success #0 result|2 error #1 result",c7,p7]}};c7=class c7 extends V8{constructor(Z){super();this.fileDiagnostics=[],this.totalFiles=0,this.totalDiagnostics=0,X0.util.initPartial(Z,this)}static fromBinary(Z,$){return new c7().fromBinary(Z,$)}static fromJson(Z,$){return new c7().fromJson(Z,$)}static fromJsonString(Z,$){return new c7().fromJsonString(Z,$)}static equals(Z,$){return X0.util.equals(c7,Z,$)}static $(){return["ReadLintsToolSuccess|1 file_diagnostics #0*|2 total_files 5|3 total_diagnostics 5",d7]}};d7=class d7 extends V8{constructor(Z){super();this.path="",this.diagnostics=[],this.diagnosticsCount=0,X0.util.initPartial(Z,this)}static fromBinary(Z,$){return new d7().fromBinary(Z,$)}static fromJson(Z,$){return new d7().fromJson(Z,$)}static fromJsonString(Z,$){return new d7().fromJsonString(Z,$)}static equals(Z,$){return X0.util.equals(d7,Z,$)}static $(){return["FileDiagnostics|1 path 9|2 diagnostics #0*|3 diagnostics_count 5",u7]}};u7=class u7 extends V8{constructor(Z){super();this.severity=OW.UNSPECIFIED,this.message="",this.source="",this.code="",this.isStale=!1,X0.util.initPartial(Z,this)}static fromBinary(Z,$){return new u7().fromBinary(Z,$)}static fromJson(Z,$){return new u7().fromJson(Z,$)}static fromJsonString(Z,$){return new u7().fromJsonString(Z,$)}static equals(Z,$){return X0.util.equals(u7,Z,$)}static $(){return["DiagnosticItem|1 severity #0|2 range #1|3 message 9|4 source 9|5 code 9|6 is_stale 8",OW,l7]}};l7=class l7 extends V8{constructor(Z){super();X0.util.initPartial(Z,this)}static fromBinary(Z,$){return new l7().fromBinary(Z,$)}static fromJson(Z,$){return new l7().fromJson(Z,$)}static fromJsonString(Z,$){return new l7().fromJsonString(Z,$)}static equals(Z,$){return X0.util.equals(l7,Z,$)}static $(){return["DiagnosticRange|1 start #0|2 end #0",u8]}};p7=class p7 extends V8{constructor(Z){super();this.errorMessage="",X0.util.initPartial(Z,this)}static fromBinary(Z,$){return new p7().fromBinary(Z,$)}static fromJson(Z,$){return new p7().fromJson(Z,$)}static fromJsonString(Z,$){return new p7().fromJsonString(Z,$)}static equals(Z,$){return X0.util.equals(p7,Z,$)}static $(){return["ReadLintsToolError|1 error_message 9"]}}});import{Message as ni,proto3 as C,protoInt64 as fx,Struct as Vx,Value as Ax}from"@bufbuild/protobuf";var Mx="agent.v1.",u,l6,i7,n7,r7,a7,p8,p6,i6,n6,r6,a6,s7,t7,o7,e7,s6,t6,Z1,$1,J1,Y1;var IW=O(()=>{P6();A();u=class u extends G{static get runtime(){return F(this,"runtime",C)}static $p(){return Mx}};l6=class l6 extends u{constructor(Z){super();this.name="",this.args={},this.toolCallId="",this.providerIdentifier="",this.toolName="",this.smartModeApprovalOnly=!1,this.skipApproval=!1,this.serverIdentifier="",this.symbolicPathArguments=[],this.argumentsRepaired=!1,C.util.initPartial(Z,this)}static fromBinary(Z,$){return new l6().fromBinary(Z,$)}static fromJson(Z,$){return new l6().fromJson(Z,$)}static fromJsonString(Z,$){return new l6().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(l6,Z,$)}static $(){return["McpArgs|1 name 9|2 args 9,#0|3 tool_call_id 9|4 provider_identifier 9|5 tool_name 9|6 smart_mode_approval #1?|7 smart_mode_approval_only 8|8 skip_approval 8|9 server_identifier 9|10 symbolic_path_arguments #2*|11 arguments_repaired 8",Ax,i0,i7]}};i7=class i7 extends u{constructor(Z){super();this.path="",this.sha256="",this.sizeBytes=fx.zero,C.util.initPartial(Z,this)}static fromBinary(Z,$){return new i7().fromBinary(Z,$)}static fromJson(Z,$){return new i7().fromJson(Z,$)}static fromJsonString(Z,$){return new i7().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(i7,Z,$)}static $(){return["McpSymbolicPathArgument|1 path 9|2 sha256 9|3 size_bytes 3"]}};n7=class n7 extends u{constructor(Z){super();this.text="",C.util.initPartial(Z,this)}static fromBinary(Z,$){return new n7().fromBinary(Z,$)}static fromJson(Z,$){return new n7().fromJson(Z,$)}static fromJsonString(Z,$){return new n7().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(n7,Z,$)}static $(){return["McpTextContent|1 text 9|2 output_location #0?",N0]}};r7=class r7 extends u{constructor(Z){super();this.data=new Uint8Array(0),this.mimeType="",C.util.initPartial(Z,this)}static fromBinary(Z,$){return new r7().fromBinary(Z,$)}static fromJson(Z,$){return new r7().fromJson(Z,$)}static fromJsonString(Z,$){return new r7().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(r7,Z,$)}static $(){return["McpImageContent|1 data 12|2 mime_type 9"]}};a7=class a7 extends u{constructor(Z){super();this.content={case:void 0},C.util.initPartial(Z,this)}static fromBinary(Z,$){return new a7().fromBinary(Z,$)}static fromJson(Z,$){return new a7().fromJson(Z,$)}static fromJsonString(Z,$){return new a7().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(a7,Z,$)}static $(){return["McpToolResultContentItem|1 text #0 content|2 image #1 content",n7,r7]}};p8=class p8 extends u{constructor(Z){super();this.body="",C.util.initPartial(Z,this)}static fromBinary(Z,$){return new p8().fromBinary(Z,$)}static fromJson(Z,$){return new p8().fromJson(Z,$)}static fromJsonString(Z,$){return new p8().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(p8,Z,$)}static $(){return["SystemReminder|1 body 9"]}};p6=class p6 extends u{constructor(Z){super();this.content=[],this.isError=!1,this.systemReminders=[],C.util.initPartial(Z,this)}static fromBinary(Z,$){return new p6().fromBinary(Z,$)}static fromJson(Z,$){return new p6().fromJson(Z,$)}static fromJsonString(Z,$){return new p6().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(p6,Z,$)}static $(){return["McpSuccess|1 content #0*|2 is_error 8|3 structured_content #1|4 system_reminders #2*|5 result_meta #1",a7,Vx,p8]}};i6=class i6 extends u{constructor(Z){super();this.reason="",this.isReadonly=!1,C.util.initPartial(Z,this)}static fromBinary(Z,$){return new i6().fromBinary(Z,$)}static fromJson(Z,$){return new i6().fromJson(Z,$)}static fromJsonString(Z,$){return new i6().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(i6,Z,$)}static $(){return["McpRejected|1 reason 9|2 is_readonly 8"]}};n6=class n6 extends u{constructor(Z){super();this.error="",this.isReadonly=!1,C.util.initPartial(Z,this)}static fromBinary(Z,$){return new n6().fromBinary(Z,$)}static fromJson(Z,$){return new n6().fromJson(Z,$)}static fromJsonString(Z,$){return new n6().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(n6,Z,$)}static $(){return["McpPermissionDenied|1 error 9|2 is_readonly 8"]}};r6=class r6 extends u{constructor(Z){super();C.util.initPartial(Z,this)}static fromBinary(Z,$){return new r6().fromBinary(Z,$)}static fromJson(Z,$){return new r6().fromJson(Z,$)}static fromJsonString(Z,$){return new r6().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(r6,Z,$)}static $(){return["ListMcpResourcesExecArgs|1 server 9?"]}};a6=class a6 extends u{constructor(Z){super();this.result={case:void 0},C.util.initPartial(Z,this)}static fromBinary(Z,$){return new a6().fromBinary(Z,$)}static fromJson(Z,$){return new a6().fromJson(Z,$)}static fromJsonString(Z,$){return new a6().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(a6,Z,$)}static $(){return["ListMcpResourcesExecResult|1 success #0 result|2 error #1 result|3 rejected #2 result",t7,o7,e7]}};s7=class s7 extends u{constructor(Z){super();this.uri="",this.server="",this.annotations={},C.util.initPartial(Z,this)}static fromBinary(Z,$){return new s7().fromBinary(Z,$)}static fromJson(Z,$){return new s7().fromJson(Z,$)}static fromJsonString(Z,$){return new s7().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(s7,Z,$)}static $(){return["ListMcpResourcesExecResult.McpResource|1 uri 9|2 name 9?|3 description 9?|4 mime_type 9?|5 server 9|6 annotations 9,9"]}};t7=class t7 extends u{constructor(Z){super();this.resources=[],C.util.initPartial(Z,this)}static fromBinary(Z,$){return new t7().fromBinary(Z,$)}static fromJson(Z,$){return new t7().fromJson(Z,$)}static fromJsonString(Z,$){return new t7().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(t7,Z,$)}static $(){return["ListMcpResourcesSuccess|1 resources #0*",s7]}};o7=class o7 extends u{constructor(Z){super();this.error="",C.util.initPartial(Z,this)}static fromBinary(Z,$){return new o7().fromBinary(Z,$)}static fromJson(Z,$){return new o7().fromJson(Z,$)}static fromJsonString(Z,$){return new o7().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(o7,Z,$)}static $(){return["ListMcpResourcesError|1 error 9"]}};e7=class e7 extends u{constructor(Z){super();this.reason="",C.util.initPartial(Z,this)}static fromBinary(Z,$){return new e7().fromBinary(Z,$)}static fromJson(Z,$){return new e7().fromJson(Z,$)}static fromJsonString(Z,$){return new e7().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(e7,Z,$)}static $(){return["ListMcpResourcesRejected|1 reason 9"]}};s6=class s6 extends u{constructor(Z){super();this.server="",this.uri="",this.toolCallId="",C.util.initPartial(Z,this)}static fromBinary(Z,$){return new s6().fromBinary(Z,$)}static fromJson(Z,$){return new s6().fromJson(Z,$)}static fromJsonString(Z,$){return new s6().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(s6,Z,$)}static $(){return["ReadMcpResourceExecArgs|1 server 9|2 uri 9|3 download_path 9?|4 tool_call_id 9|5 smart_mode_approval #0?",i0]}};t6=class t6 extends u{constructor(Z){super();this.result={case:void 0},C.util.initPartial(Z,this)}static fromBinary(Z,$){return new t6().fromBinary(Z,$)}static fromJson(Z,$){return new t6().fromJson(Z,$)}static fromJsonString(Z,$){return new t6().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(t6,Z,$)}static $(){return["ReadMcpResourceExecResult|1 success #0 result|2 error #1 result|3 rejected #2 result|4 not_found #3 result",Z1,$1,J1,Y1]}};Z1=class Z1 extends u{constructor(Z){super();this.uri="",this.content={case:void 0},this.annotations={},C.util.initPartial(Z,this)}static fromBinary(Z,$){return new Z1().fromBinary(Z,$)}static fromJson(Z,$){return new Z1().fromJson(Z,$)}static fromJsonString(Z,$){return new Z1().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(Z1,Z,$)}static $(){return["ReadMcpResourceSuccess|1 uri 9|2 name 9?|3 description 9?|4 mime_type 9?|5 text 9 content|6 blob 12 content|7 annotations 9,9|8 download_path 9?|9 output_location #0?|10 meta_json 9?",N0]}};$1=class $1 extends u{constructor(Z){super();this.uri="",this.error="",C.util.initPartial(Z,this)}static fromBinary(Z,$){return new $1().fromBinary(Z,$)}static fromJson(Z,$){return new $1().fromJson(Z,$)}static fromJsonString(Z,$){return new $1().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals($1,Z,$)}static $(){return["ReadMcpResourceError|1 uri 9|2 error 9"]}};J1=class J1 extends u{constructor(Z){super();this.uri="",this.reason="",C.util.initPartial(Z,this)}static fromBinary(Z,$){return new J1().fromBinary(Z,$)}static fromJson(Z,$){return new J1().fromJson(Z,$)}static fromJsonString(Z,$){return new J1().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(J1,Z,$)}static $(){return["ReadMcpResourceRejected|1 uri 9|2 reason 9"]}};Y1=class Y1 extends u{constructor(Z){super();this.uri="",C.util.initPartial(Z,this)}static fromBinary(Z,$){return new Y1().fromBinary(Z,$)}static fromJson(Z,$){return new Y1().fromJson(Z,$)}static fromJsonString(Z,$){return new Y1().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(Y1,Z,$)}static $(){return["ReadMcpResourceNotFound|1 uri 9"]}}});import{Message as oi,proto3 as e6}from"@bufbuild/protobuf";var xx="agent.v1.",ZH,X1,z1,o6;var sB=O(()=>{IW();A();ZH=class ZH extends G{static get runtime(){return F(this,"runtime",e6)}static $p(){return xx}};X1=class X1 extends ZH{constructor(Z){super();this.error="",this.readToolDefReminder="",this.systemReminders=[],e6.util.initPartial(Z,this)}static fromBinary(Z,$){return new X1().fromBinary(Z,$)}static fromJson(Z,$){return new X1().fromJson(Z,$)}static fromJsonString(Z,$){return new X1().fromJsonString(Z,$)}static equals(Z,$){return e6.util.equals(X1,Z,$)}static $(){return["McpToolError|1 error 9|2 read_tool_def_reminder 9|3 system_reminders #0*",p8]}};z1=class z1 extends ZH{constructor(Z){super();this.result={case:void 0},e6.util.initPartial(Z,this)}static fromBinary(Z,$){return new z1().fromBinary(Z,$)}static fromJson(Z,$){return new z1().fromJson(Z,$)}static fromJsonString(Z,$){return new z1().fromJsonString(Z,$)}static equals(Z,$){return e6.util.equals(z1,Z,$)}static $(){return["McpToolResult|1 success #0 result|2 error #1 result|3 rejected #2 result|4 permission_denied #3 result",p6,X1,i6,n6]}};o6=class o6 extends ZH{constructor(Z){super();e6.util.initPartial(Z,this)}static fromBinary(Z,$){return new o6().fromBinary(Z,$)}static fromJson(Z,$){return new o6().fromJson(Z,$)}static fromJsonString(Z,$){return new o6().fromJsonString(Z,$)}static equals(Z,$){return e6.util.equals(o6,Z,$)}static $(){return["McpToolCall|1 args #0|2 result #1|3 description 9?",l6,z1]}}});import{Message as Yn,proto3 as F0}from"@bufbuild/protobuf";var Tx="aiserver.v1.",i8,K1,ZZ,$Z,JZ,Q1,H1,W1;var tB=O(()=>{A();i8=class i8 extends G{static get runtime(){return F(this,"runtime",F0)}static $p(){return Tx}};K1=class K1 extends i8{constructor(Z){super();this.line=0,this.column=0,F0.util.initPartial(Z,this)}static fromBinary(Z,$){return new K1().fromBinary(Z,$)}static fromJson(Z,$){return new K1().fromJson(Z,$)}static fromJsonString(Z,$){return new K1().fromJsonString(Z,$)}static equals(Z,$){return F0.util.equals(K1,Z,$)}static $(){return["CursorPosition|1 line 5|2 column 5"]}};ZZ=class ZZ extends i8{constructor(Z){super();F0.util.initPartial(Z,this)}static fromBinary(Z,$){return new ZZ().fromBinary(Z,$)}static fromJson(Z,$){return new ZZ().fromJson(Z,$)}static fromJsonString(Z,$){return new ZZ().fromJsonString(Z,$)}static equals(Z,$){return F0.util.equals(ZZ,Z,$)}static $(){return["CursorRange|1 start_position #0|2 end_position #0",K1]}};$Z=class $Z extends i8{constructor(Z){super();this.text="",this.lineNumber=0,this.isSignature=!1,F0.util.initPartial(Z,this)}static fromBinary(Z,$){return new $Z().fromBinary(Z,$)}static fromJson(Z,$){return new $Z().fromJson(Z,$)}static fromJsonString(Z,$){return new $Z().fromJsonString(Z,$)}static equals(Z,$){return F0.util.equals($Z,Z,$)}static $(){return["DetailedLine|1 text 9|2 line_number 2|3 is_signature 8"]}};JZ=class JZ extends i8{constructor(Z){super();this.relativeWorkspacePath="",this.contents="",this.detailedLines=[],F0.util.initPartial(Z,this)}static fromBinary(Z,$){return new JZ().fromBinary(Z,$)}static fromJson(Z,$){return new JZ().fromJson(Z,$)}static fromJsonString(Z,$){return new JZ().fromJsonString(Z,$)}static equals(Z,$){return F0.util.equals(JZ,Z,$)}static $(){return["CodeBlock|1 relative_workspace_path 9|2 file_contents 9?|9 file_contents_length 5?|3 range #0|4 contents 9|5 signatures #1|6 override_contents 9?|7 original_contents 9?|8 detailed_lines #2*|10 file_git_context #3",ZZ,Q1,$Z,W1]}};Q1=class Q1 extends i8{constructor(Z){super();this.ranges=[],F0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Q1().fromBinary(Z,$)}static fromJson(Z,$){return new Q1().fromJson(Z,$)}static fromJsonString(Z,$){return new Q1().fromJsonString(Z,$)}static equals(Z,$){return F0.util.equals(Q1,Z,$)}static $(){return["CodeBlock.Signatures|1 ranges #0*",ZZ]}};H1=class H1 extends i8{constructor(Z){super();this.commit="",this.author="",this.date="",this.message="",F0.util.initPartial(Z,this)}static fromBinary(Z,$){return new H1().fromBinary(Z,$)}static fromJson(Z,$){return new H1().fromJson(Z,$)}static fromJsonString(Z,$){return new H1().fromJsonString(Z,$)}static equals(Z,$){return F0.util.equals(H1,Z,$)}static $(){return["GitCommit|1 commit 9|2 author 9|3 date 9|4 message 9"]}};W1=class W1 extends i8{constructor(Z){super();this.commits=[],F0.util.initPartial(Z,this)}static fromBinary(Z,$){return new W1().fromBinary(Z,$)}static fromJson(Z,$){return new W1().fromJson(Z,$)}static fromJsonString(Z,$){return new W1().fromJsonString(Z,$)}static equals(Z,$){return F0.util.equals(W1,Z,$)}static $(){return["FileGit|1 commits #0*",H1]}}});import{Message as Nn,proto3 as kW,protoInt64 as Bn}from"@bufbuild/protobuf";var Cx="aiserver.v1.",oB,YZ;var eB=O(()=>{tB();A();oB=class oB extends G{static get runtime(){return F(this,"runtime",kW)}static $p(){return Cx}};YZ=class YZ extends oB{constructor(Z){super();this.score=0,kW.util.initPartial(Z,this)}static fromBinary(Z,$){return new YZ().fromBinary(Z,$)}static fromJson(Z,$){return new YZ().fromJson(Z,$)}static fromJsonString(Z,$){return new YZ().fromJsonString(Z,$)}static equals(Z,$){return kW.util.equals(YZ,Z,$)}static $(){return["CodeResult|1 code_block #0|2 score 2",JZ]}}});import{Message as wn,proto3 as a0}from"@bufbuild/protobuf";var hx="agent.v1.",G1,XZ,q1,N1,B1,F1;var ZF=O(()=>{eB();A();G1=class G1 extends G{static get runtime(){return F(this,"runtime",a0)}static $p(){return hx}};XZ=class XZ extends G1{constructor(Z){super();a0.util.initPartial(Z,this)}static fromBinary(Z,$){return new XZ().fromBinary(Z,$)}static fromJson(Z,$){return new XZ().fromJson(Z,$)}static fromJsonString(Z,$){return new XZ().fromJsonString(Z,$)}static equals(Z,$){return a0.util.equals(XZ,Z,$)}static $(){return["SemSearchToolCall|1 args #0|2 result #1",q1,N1]}};q1=class q1 extends G1{constructor(Z){super();this.query="",this.targetDirectories=[],this.explanation="",a0.util.initPartial(Z,this)}static fromBinary(Z,$){return new q1().fromBinary(Z,$)}static fromJson(Z,$){return new q1().fromJson(Z,$)}static fromJsonString(Z,$){return new q1().fromJsonString(Z,$)}static equals(Z,$){return a0.util.equals(q1,Z,$)}static $(){return["SemSearchToolArgs|1 query 9|2 target_directories 9*|3 explanation 9"]}};N1=class N1 extends G1{constructor(Z){super();this.result={case:void 0},a0.util.initPartial(Z,this)}static fromBinary(Z,$){return new N1().fromBinary(Z,$)}static fromJson(Z,$){return new N1().fromJson(Z,$)}static fromJsonString(Z,$){return new N1().fromJsonString(Z,$)}static equals(Z,$){return a0.util.equals(N1,Z,$)}static $(){return["SemSearchToolResult|1 success #0 result|2 error #1 result",B1,F1]}};B1=class B1 extends G1{constructor(Z){super();this.results="",this.codeResults=[],a0.util.initPartial(Z,this)}static fromBinary(Z,$){return new B1().fromBinary(Z,$)}static fromJson(Z,$){return new B1().fromJson(Z,$)}static fromJsonString(Z,$){return new B1().fromJsonString(Z,$)}static equals(Z,$){return a0.util.equals(B1,Z,$)}static $(){return["SemSearchToolSuccess|1 results 9|2 code_results #0*",YZ]}};F1=class F1 extends G1{constructor(Z){super();this.errorMessage="",a0.util.initPartial(Z,this)}static fromBinary(Z,$){return new F1().fromBinary(Z,$)}static fromJson(Z,$){return new F1().fromJson(Z,$)}static fromJsonString(Z,$){return new F1().fromJsonString(Z,$)}static equals(Z,$){return a0.util.equals(F1,Z,$)}static $(){return["SemSearchToolError|1 error_message 9"]}}});import{Message as Pn,proto3 as G0}from"@bufbuild/protobuf";var Rx="agent.v1.",n8,zZ,L1,D1,KZ,w1,U1,QZ;var $F=O(()=>{eQ();A();n8=class n8 extends G{static get runtime(){return F(this,"runtime",G0)}static $p(){return Rx}};zZ=class zZ extends n8{constructor(Z){super();G0.util.initPartial(Z,this)}static fromBinary(Z,$){return new zZ().fromBinary(Z,$)}static fromJson(Z,$){return new zZ().fromJson(Z,$)}static fromJsonString(Z,$){return new zZ().fromJsonString(Z,$)}static equals(Z,$){return G0.util.equals(zZ,Z,$)}static $(){return["CreatePlanToolCall|1 args #0|2 result #1",D1,KZ]}};L1=class L1 extends n8{constructor(Z){super();this.name="",this.todos=[],G0.util.initPartial(Z,this)}static fromBinary(Z,$){return new L1().fromBinary(Z,$)}static fromJson(Z,$){return new L1().fromJson(Z,$)}static fromJsonString(Z,$){return new L1().fromJsonString(Z,$)}static equals(Z,$){return G0.util.equals(L1,Z,$)}static $(){return["Phase|1 name 9|2 todos #0*",B0]}};D1=class D1 extends n8{constructor(Z){super();this.plan="",this.todos=[],this.overview="",this.name="",this.isProject=!1,this.phases=[],G0.util.initPartial(Z,this)}static fromBinary(Z,$){return new D1().fromBinary(Z,$)}static fromJson(Z,$){return new D1().fromJson(Z,$)}static fromJsonString(Z,$){return new D1().fromJsonString(Z,$)}static equals(Z,$){return G0.util.equals(D1,Z,$)}static $(){return["CreatePlanArgs|1 plan 9|2 todos #0*|3 overview 9|4 name 9|5 is_project 8|6 phases #1*",B0,L1]}};KZ=class KZ extends n8{constructor(Z){super();this.result={case:void 0},this.planUri="",G0.util.initPartial(Z,this)}static fromBinary(Z,$){return new KZ().fromBinary(Z,$)}static fromJson(Z,$){return new KZ().fromJson(Z,$)}static fromJsonString(Z,$){return new KZ().fromJsonString(Z,$)}static equals(Z,$){return G0.util.equals(KZ,Z,$)}static $(){return["CreatePlanResult|1 success #0 result|2 error #1 result|3 plan_uri 9",w1,U1]}};w1=class w1 extends n8{constructor(Z){super();G0.util.initPartial(Z,this)}static fromBinary(Z,$){return new w1().fromBinary(Z,$)}static fromJson(Z,$){return new w1().fromJson(Z,$)}static fromJsonString(Z,$){return new w1().fromJsonString(Z,$)}static equals(Z,$){return G0.util.equals(w1,Z,$)}static $(){return["CreatePlanSuccess"]}};U1=class U1 extends n8{constructor(Z){super();this.error="",G0.util.initPartial(Z,this)}static fromBinary(Z,$){return new U1().fromBinary(Z,$)}static fromJson(Z,$){return new U1().fromJson(Z,$)}static fromJsonString(Z,$){return new U1().fromJsonString(Z,$)}static equals(Z,$){return G0.util.equals(U1,Z,$)}static $(){return["CreatePlanError|1 error 9"]}};QZ=class QZ extends n8{constructor(Z){super();G0.util.initPartial(Z,this)}static fromBinary(Z,$){return new QZ().fromBinary(Z,$)}static fromJson(Z,$){return new QZ().fromJson(Z,$)}static fromJsonString(Z,$){return new QZ().fromJsonString(Z,$)}static equals(Z,$){return G0.util.equals(QZ,Z,$)}static $(){return["CreatePlanRequestResponse|1 result #0",KZ]}}});import{Message as Mn,proto3 as i}from"@bufbuild/protobuf";var vx="agent.v1.",s0,O1,I1,k1,P1,E1,f1,HZ,WZ,V1,A1;var JF=O(()=>{A();s0=class s0 extends G{static get runtime(){return F(this,"runtime",i)}static $p(){return vx}};O1=class O1 extends s0{constructor(Z){super();this.searchTerm="",this.toolCallId="",i.util.initPartial(Z,this)}static fromBinary(Z,$){return new O1().fromBinary(Z,$)}static fromJson(Z,$){return new O1().fromJson(Z,$)}static fromJsonString(Z,$){return new O1().fromJsonString(Z,$)}static equals(Z,$){return i.util.equals(O1,Z,$)}static $(){return["WebSearchArgs|1 search_term 9|2 tool_call_id 9"]}};I1=class I1 extends s0{constructor(Z){super();this.result={case:void 0},i.util.initPartial(Z,this)}static fromBinary(Z,$){return new I1().fromBinary(Z,$)}static fromJson(Z,$){return new I1().fromJson(Z,$)}static fromJsonString(Z,$){return new I1().fromJsonString(Z,$)}static equals(Z,$){return i.util.equals(I1,Z,$)}static $(){return["WebSearchResult|1 success #0 result|2 error #1 result|3 rejected #2 result",k1,P1,E1]}};k1=class k1 extends s0{constructor(Z){super();this.references=[],i.util.initPartial(Z,this)}static fromBinary(Z,$){return new k1().fromBinary(Z,$)}static fromJson(Z,$){return new k1().fromJson(Z,$)}static fromJsonString(Z,$){return new k1().fromJsonString(Z,$)}static equals(Z,$){return i.util.equals(k1,Z,$)}static $(){return["WebSearchSuccess|1 references #0*",f1]}};P1=class P1 extends s0{constructor(Z){super();this.error="",i.util.initPartial(Z,this)}static fromBinary(Z,$){return new P1().fromBinary(Z,$)}static fromJson(Z,$){return new P1().fromJson(Z,$)}static fromJsonString(Z,$){return new P1().fromJsonString(Z,$)}static equals(Z,$){return i.util.equals(P1,Z,$)}static $(){return["WebSearchError|1 error 9"]}};E1=class E1 extends s0{constructor(Z){super();this.reason="",i.util.initPartial(Z,this)}static fromBinary(Z,$){return new E1().fromBinary(Z,$)}static fromJson(Z,$){return new E1().fromJson(Z,$)}static fromJsonString(Z,$){return new E1().fromJsonString(Z,$)}static equals(Z,$){return i.util.equals(E1,Z,$)}static $(){return["WebSearchRejected|1 reason 9"]}};f1=class f1 extends s0{constructor(Z){super();this.title="",this.url="",this.chunk="",i.util.initPartial(Z,this)}static fromBinary(Z,$){return new f1().fromBinary(Z,$)}static fromJson(Z,$){return new f1().fromJson(Z,$)}static fromJsonString(Z,$){return new f1().fromJsonString(Z,$)}static equals(Z,$){return i.util.equals(f1,Z,$)}static $(){return["WebSearchReference|1 title 9|2 url 9|3 chunk 9"]}};HZ=class HZ extends s0{constructor(Z){super();i.util.initPartial(Z,this)}static fromBinary(Z,$){return new HZ().fromBinary(Z,$)}static fromJson(Z,$){return new HZ().fromJson(Z,$)}static fromJsonString(Z,$){return new HZ().fromJsonString(Z,$)}static equals(Z,$){return i.util.equals(HZ,Z,$)}static $(){return["WebSearchToolCall|1 args #0|2 result #1",O1,I1]}};WZ=class WZ extends s0{constructor(Z){super();this.result={case:void 0},i.util.initPartial(Z,this)}static fromBinary(Z,$){return new WZ().fromBinary(Z,$)}static fromJson(Z,$){return new WZ().fromJson(Z,$)}static fromJsonString(Z,$){return new WZ().fromJsonString(Z,$)}static equals(Z,$){return i.util.equals(WZ,Z,$)}static $(){return["WebSearchRequestResponse|1 approved #0 result|2 rejected #1 result",V1,A1]}};V1=class V1 extends s0{constructor(Z){super();i.util.initPartial(Z,this)}static fromBinary(Z,$){return new V1().fromBinary(Z,$)}static fromJson(Z,$){return new V1().fromJson(Z,$)}static fromJsonString(Z,$){return new V1().fromJsonString(Z,$)}static equals(Z,$){return i.util.equals(V1,Z,$)}static $(){return["WebSearchRequestResponse.Approved"]}};A1=class A1 extends s0{constructor(Z){super();this.reason="",i.util.initPartial(Z,this)}static fromBinary(Z,$){return new A1().fromBinary(Z,$)}static fromJson(Z,$){return new A1().fromJson(Z,$)}static fromJsonString(Z,$){return new A1().fromJsonString(Z,$)}static equals(Z,$){return i.util.equals(A1,Z,$)}static $(){return["WebSearchRequestResponse.Rejected|1 reason 9"]}}});import{Message as hn,proto3 as OQ}from"@bufbuild/protobuf";var yx="agent.v1.",PW,qZ,NZ;var YF=O(()=>{IW();A();PW=class PW extends G{static get runtime(){return F(this,"runtime",OQ)}static $p(){return yx}};qZ=class qZ extends PW{constructor(Z){super();OQ.util.initPartial(Z,this)}static fromBinary(Z,$){return new qZ().fromBinary(Z,$)}static fromJson(Z,$){return new qZ().fromJson(Z,$)}static fromJsonString(Z,$){return new qZ().fromJsonString(Z,$)}static equals(Z,$){return OQ.util.equals(qZ,Z,$)}static $(){return["ListMcpResourcesToolCall|1 args #0|2 result #1",r6,a6]}};NZ=class NZ extends PW{constructor(Z){super();OQ.util.initPartial(Z,this)}static fromBinary(Z,$){return new NZ().fromBinary(Z,$)}static fromJson(Z,$){return new NZ().fromJson(Z,$)}static fromJsonString(Z,$){return new NZ().fromJsonString(Z,$)}static equals(Z,$){return OQ.util.equals(NZ,Z,$)}static $(){return["ReadMcpResourceToolCall|1 args #0|2 result #1",s6,t6]}}});import{Message as jn,proto3 as V0}from"@bufbuild/protobuf";var zF="agent.v1.",GZ,BZ,M1,x1,T1,FZ,XF,C1;var KF=O(()=>{A();GZ=class GZ extends G{static get runtime(){return F(this,"runtime",V0)}static $p(){return zF}};BZ=class BZ extends GZ{constructor(Z){super();V0.util.initPartial(Z,this)}static fromBinary(Z,$){return new BZ().fromBinary(Z,$)}static fromJson(Z,$){return new BZ().fromJson(Z,$)}static fromJsonString(Z,$){return new BZ().fromJsonString(Z,$)}static equals(Z,$){return V0.util.equals(BZ,Z,$)}static $(){return["ApplyAgentDiffToolCall|1 args #0|2 result #1",M1,x1]}};M1=class M1 extends GZ{constructor(Z){super();this.agentId="",V0.util.initPartial(Z,this)}static fromBinary(Z,$){return new M1().fromBinary(Z,$)}static fromJson(Z,$){return new M1().fromJson(Z,$)}static fromJsonString(Z,$){return new M1().fromJsonString(Z,$)}static equals(Z,$){return V0.util.equals(M1,Z,$)}static $(){return["ApplyAgentDiffArgs|1 agent_id 9"]}};x1=class x1 extends GZ{constructor(Z){super();this.result={case:void 0},V0.util.initPartial(Z,this)}static fromBinary(Z,$){return new x1().fromBinary(Z,$)}static fromJson(Z,$){return new x1().fromJson(Z,$)}static fromJsonString(Z,$){return new x1().fromJsonString(Z,$)}static equals(Z,$){return V0.util.equals(x1,Z,$)}static $(){return["ApplyAgentDiffResult|1 success #0 result|2 error #1 result",T1,C1]}};T1=class T1 extends GZ{constructor(Z){super();this.appliedChanges=[],V0.util.initPartial(Z,this)}static fromBinary(Z,$){return new T1().fromBinary(Z,$)}static fromJson(Z,$){return new T1().fromJson(Z,$)}static fromJsonString(Z,$){return new T1().fromJsonString(Z,$)}static equals(Z,$){return V0.util.equals(T1,Z,$)}static $(){return["ApplyAgentDiffSuccess|1 applied_changes #0*",FZ]}};FZ=class FZ extends GZ{constructor(Z){super();this.path="",this.changeType=XF.UNSPECIFIED,V0.util.initPartial(Z,this)}static fromBinary(Z,$){return new FZ().fromBinary(Z,$)}static fromJson(Z,$){return new FZ().fromJson(Z,$)}static fromJsonString(Z,$){return new FZ().fromJsonString(Z,$)}static equals(Z,$){return V0.util.equals(FZ,Z,$)}static $(){return["AppliedAgentChange|1 path 9|2 change_type #0|3 before_content 9?|4 after_content 9?|5 error 9?|6 message_for_model 9?",XF]}};XF=w(V0,zF,"AppliedAgentChange.ChangeType",[[0,"UNSPECIFIED"],[1,"CREATED"],[2,"MODIFIED"],[3,"DELETED"]],1);C1=class C1 extends GZ{constructor(Z){super();this.error="",this.appliedChanges=[],V0.util.initPartial(Z,this)}static fromBinary(Z,$){return new C1().fromBinary(Z,$)}static fromJson(Z,$){return new C1().fromJson(Z,$)}static fromJsonString(Z,$){return new C1().fromJsonString(Z,$)}static equals(Z,$){return V0.util.equals(C1,Z,$)}static $(){return["ApplyAgentDiffError|1 error 9|2 applied_changes #0*",FZ]}}});import{Message as bn,proto3 as n}from"@bufbuild/protobuf";var mx="agent.v1.",t0,LZ,DZ,h1,R1,v1,r8,y1,m1,j1,_1;var QF=O(()=>{A();t0=class t0 extends G{static get runtime(){return F(this,"runtime",n)}static $p(){return mx}};LZ=class LZ extends t0{constructor(Z){super();n.util.initPartial(Z,this)}static fromBinary(Z,$){return new LZ().fromBinary(Z,$)}static fromJson(Z,$){return new LZ().fromJson(Z,$)}static fromJsonString(Z,$){return new LZ().fromJsonString(Z,$)}static equals(Z,$){return n.util.equals(LZ,Z,$)}static $(){return["AskQuestionToolCall|1 args #0|2 result #1",DZ,r8]}};DZ=class DZ extends t0{constructor(Z){super();this.title="",this.questions=[],this.runAsync=!1,this.asyncOriginalToolCallId="",n.util.initPartial(Z,this)}static fromBinary(Z,$){return new DZ().fromBinary(Z,$)}static fromJson(Z,$){return new DZ().fromJson(Z,$)}static fromJsonString(Z,$){return new DZ().fromJsonString(Z,$)}static equals(Z,$){return n.util.equals(DZ,Z,$)}static $(){return["AskQuestionArgs|1 title 9|2 questions #0*|5 run_async 8|6 async_original_tool_call_id 9",h1]}};h1=class h1 extends t0{constructor(Z){super();this.id="",this.prompt="",this.options=[],this.allowMultiple=!1,n.util.initPartial(Z,this)}static fromBinary(Z,$){return new h1().fromBinary(Z,$)}static fromJson(Z,$){return new h1().fromJson(Z,$)}static fromJsonString(Z,$){return new h1().fromJsonString(Z,$)}static equals(Z,$){return n.util.equals(h1,Z,$)}static $(){return["AskQuestionArgs.Question|1 id 9|2 prompt 9|3 options #0*|4 allow_multiple 8|5 prompt_markdown 9?",R1]}};R1=class R1 extends t0{constructor(Z){super();this.id="",this.label="",n.util.initPartial(Z,this)}static fromBinary(Z,$){return new R1().fromBinary(Z,$)}static fromJson(Z,$){return new R1().fromJson(Z,$)}static fromJsonString(Z,$){return new R1().fromJsonString(Z,$)}static equals(Z,$){return n.util.equals(R1,Z,$)}static $(){return["AskQuestionArgs.Option|1 id 9|2 label 9"]}};v1=class v1 extends t0{constructor(Z){super();this.interactionId="",n.util.initPartial(Z,this)}static fromBinary(Z,$){return new v1().fromBinary(Z,$)}static fromJson(Z,$){return new v1().fromJson(Z,$)}static fromJsonString(Z,$){return new v1().fromJsonString(Z,$)}static equals(Z,$){return n.util.equals(v1,Z,$)}static $(){return["AskQuestionAsync|1 interaction_id 9"]}};r8=class r8 extends t0{constructor(Z){super();this.result={case:void 0},n.util.initPartial(Z,this)}static fromBinary(Z,$){return new r8().fromBinary(Z,$)}static fromJson(Z,$){return new r8().fromJson(Z,$)}static fromJsonString(Z,$){return new r8().fromJsonString(Z,$)}static equals(Z,$){return n.util.equals(r8,Z,$)}static $(){return["AskQuestionResult|1 success #0 result|2 error #1 result|3 rejected #2 result|4 async #3 result",y1,j1,_1,v1]}};y1=class y1 extends t0{constructor(Z){super();this.answers=[],n.util.initPartial(Z,this)}static fromBinary(Z,$){return new y1().fromBinary(Z,$)}static fromJson(Z,$){return new y1().fromJson(Z,$)}static fromJsonString(Z,$){return new y1().fromJsonString(Z,$)}static equals(Z,$){return n.util.equals(y1,Z,$)}static $(){return["AskQuestionSuccess|1 answers #0*",m1]}};m1=class m1 extends t0{constructor(Z){super();this.questionId="",this.selectedOptionIds=[],this.freeformText="",n.util.initPartial(Z,this)}static fromBinary(Z,$){return new m1().fromBinary(Z,$)}static fromJson(Z,$){return new m1().fromJson(Z,$)}static fromJsonString(Z,$){return new m1().fromJsonString(Z,$)}static equals(Z,$){return n.util.equals(m1,Z,$)}static $(){return["AskQuestionSuccess.Answer|1 question_id 9|2 selected_option_ids 9*|3 freeform_text 9"]}};j1=class j1 extends t0{constructor(Z){super();this.errorMessage="",n.util.initPartial(Z,this)}static fromBinary(Z,$){return new j1().fromBinary(Z,$)}static fromJson(Z,$){return new j1().fromJson(Z,$)}static fromJsonString(Z,$){return new j1().fromJsonString(Z,$)}static equals(Z,$){return n.util.equals(j1,Z,$)}static $(){return["AskQuestionError|1 error_message 9"]}};_1=class _1 extends t0{constructor(Z){super();this.reason="",n.util.initPartial(Z,this)}static fromBinary(Z,$){return new _1().fromBinary(Z,$)}static fromJson(Z,$){return new _1().fromJson(Z,$)}static fromJsonString(Z,$){return new _1().fromJsonString(Z,$)}static equals(Z,$){return n.util.equals(_1,Z,$)}static $(){return["AskQuestionRejected|1 reason 9"]}}});import{Message as ln,proto3 as A8}from"@bufbuild/protobuf";var jx="agent.v1.",IQ,wZ,UZ,S1,g1;var HF=O(()=>{A();IQ=class IQ extends G{static get runtime(){return F(this,"runtime",A8)}static $p(){return jx}};wZ=class wZ extends IQ{constructor(Z){super();this.url="",this.toolCallId="",A8.util.initPartial(Z,this)}static fromBinary(Z,$){return new wZ().fromBinary(Z,$)}static fromJson(Z,$){return new wZ().fromJson(Z,$)}static fromJsonString(Z,$){return new wZ().fromJsonString(Z,$)}static equals(Z,$){return A8.util.equals(wZ,Z,$)}static $(){return["FetchArgs|1 url 9|2 tool_call_id 9"]}};UZ=class UZ extends IQ{constructor(Z){super();this.result={case:void 0},A8.util.initPartial(Z,this)}static fromBinary(Z,$){return new UZ().fromBinary(Z,$)}static fromJson(Z,$){return new UZ().fromJson(Z,$)}static fromJsonString(Z,$){return new UZ().fromJsonString(Z,$)}static equals(Z,$){return A8.util.equals(UZ,Z,$)}static $(){return["FetchResult|1 success #0 result|2 error #1 result",S1,g1]}};S1=class S1 extends IQ{constructor(Z){super();this.url="",this.content="",this.statusCode=0,this.contentType="",A8.util.initPartial(Z,this)}static fromBinary(Z,$){return new S1().fromBinary(Z,$)}static fromJson(Z,$){return new S1().fromJson(Z,$)}static fromJsonString(Z,$){return new S1().fromJsonString(Z,$)}static equals(Z,$){return A8.util.equals(S1,Z,$)}static $(){return["FetchSuccess|1 url 9|2 content 9|3 status_code 5|4 content_type 9"]}};g1=class g1 extends IQ{constructor(Z){super();this.url="",this.error="",A8.util.initPartial(Z,this)}static fromBinary(Z,$){return new g1().fromBinary(Z,$)}static fromJson(Z,$){return new g1().fromJson(Z,$)}static fromJsonString(Z,$){return new g1().fromJsonString(Z,$)}static equals(Z,$){return A8.util.equals(g1,Z,$)}static $(){return["FetchError|1 url 9|2 error 9"]}}});import{Message as an,proto3 as EW}from"@bufbuild/protobuf";var _x="agent.v1.",WF,OZ;var qF=O(()=>{HF();A();WF=class WF extends G{static get runtime(){return F(this,"runtime",EW)}static $p(){return _x}};OZ=class OZ extends WF{constructor(Z){super();EW.util.initPartial(Z,this)}static fromBinary(Z,$){return new OZ().fromBinary(Z,$)}static fromJson(Z,$){return new OZ().fromJson(Z,$)}static fromJsonString(Z,$){return new OZ().fromJsonString(Z,$)}static equals(Z,$){return EW.util.equals(OZ,Z,$)}static $(){return["FetchToolCall|1 args #0|2 result #1",wZ,UZ]}}});import{Message as Zr,proto3 as o}from"@bufbuild/protobuf";var Sx="agent.v1.",L8,b1,c1,d1,u1,l1,IZ,kZ,p1,i1;var NF=O(()=>{A();L8=class L8 extends G{static get runtime(){return F(this,"runtime",o)}static $p(){return Sx}};b1=class b1 extends L8{constructor(Z){super();this.targetModeId="",this.toolCallId="",o.util.initPartial(Z,this)}static fromBinary(Z,$){return new b1().fromBinary(Z,$)}static fromJson(Z,$){return new b1().fromJson(Z,$)}static fromJsonString(Z,$){return new b1().fromJsonString(Z,$)}static equals(Z,$){return o.util.equals(b1,Z,$)}static $(){return["SwitchModeArgs|1 target_mode_id 9|2 explanation 9?|3 tool_call_id 9"]}};c1=class c1 extends L8{constructor(Z){super();this.result={case:void 0},o.util.initPartial(Z,this)}static fromBinary(Z,$){return new c1().fromBinary(Z,$)}static fromJson(Z,$){return new c1().fromJson(Z,$)}static fromJsonString(Z,$){return new c1().fromJsonString(Z,$)}static equals(Z,$){return o.util.equals(c1,Z,$)}static $(){return["SwitchModeResult|1 success #0 result|2 error #1 result|3 rejected #2 result",d1,u1,l1]}};d1=class d1 extends L8{constructor(Z){super();this.fromModeId="",this.toModeId="",o.util.initPartial(Z,this)}static fromBinary(Z,$){return new d1().fromBinary(Z,$)}static fromJson(Z,$){return new d1().fromJson(Z,$)}static fromJsonString(Z,$){return new d1().fromJsonString(Z,$)}static equals(Z,$){return o.util.equals(d1,Z,$)}static $(){return["SwitchModeSuccess|1 from_mode_id 9|2 to_mode_id 9"]}};u1=class u1 extends L8{constructor(Z){super();this.error="",o.util.initPartial(Z,this)}static fromBinary(Z,$){return new u1().fromBinary(Z,$)}static fromJson(Z,$){return new u1().fromJson(Z,$)}static fromJsonString(Z,$){return new u1().fromJsonString(Z,$)}static equals(Z,$){return o.util.equals(u1,Z,$)}static $(){return["SwitchModeError|1 error 9"]}};l1=class l1 extends L8{constructor(Z){super();this.reason="",o.util.initPartial(Z,this)}static fromBinary(Z,$){return new l1().fromBinary(Z,$)}static fromJson(Z,$){return new l1().fromJson(Z,$)}static fromJsonString(Z,$){return new l1().fromJsonString(Z,$)}static equals(Z,$){return o.util.equals(l1,Z,$)}static $(){return["SwitchModeRejected|1 reason 9"]}};IZ=class IZ extends L8{constructor(Z){super();o.util.initPartial(Z,this)}static fromBinary(Z,$){return new IZ().fromBinary(Z,$)}static fromJson(Z,$){return new IZ().fromJson(Z,$)}static fromJsonString(Z,$){return new IZ().fromJsonString(Z,$)}static equals(Z,$){return o.util.equals(IZ,Z,$)}static $(){return["SwitchModeToolCall|1 args #0|2 result #1",b1,c1]}};kZ=class kZ extends L8{constructor(Z){super();this.result={case:void 0},o.util.initPartial(Z,this)}static fromBinary(Z,$){return new kZ().fromBinary(Z,$)}static fromJson(Z,$){return new kZ().fromJson(Z,$)}static fromJsonString(Z,$){return new kZ().fromJsonString(Z,$)}static equals(Z,$){return o.util.equals(kZ,Z,$)}static $(){return["SwitchModeRequestResponse|1 approved #0 result|2 rejected #1 result",p1,i1]}};p1=class p1 extends L8{constructor(Z){super();o.util.initPartial(Z,this)}static fromBinary(Z,$){return new p1().fromBinary(Z,$)}static fromJson(Z,$){return new p1().fromJson(Z,$)}static fromJsonString(Z,$){return new p1().fromJsonString(Z,$)}static equals(Z,$){return o.util.equals(p1,Z,$)}static $(){return["SwitchModeRequestResponse.Approved"]}};i1=class i1 extends L8{constructor(Z){super();this.reason="",o.util.initPartial(Z,this)}static fromBinary(Z,$){return new i1().fromBinary(Z,$)}static fromJson(Z,$){return new i1().fromJson(Z,$)}static fromJsonString(Z,$){return new i1().fromJsonString(Z,$)}static equals(Z,$){return o.util.equals(i1,Z,$)}static $(){return["SwitchModeRequestResponse.Rejected|1 reason 9"]}}});import{Message as Xr,proto3 as z0}from"@bufbuild/protobuf";var gx="agent.v1.",M8,n1,r1,a1,s1,PZ,EZ,t1,o1;var BF=O(()=>{A();M8=class M8 extends G{static get runtime(){return F(this,"runtime",z0)}static $p(){return gx}};n1=class n1 extends M8{constructor(Z){super();this.description="",this.referenceImagePaths=[],z0.util.initPartial(Z,this)}static fromBinary(Z,$){return new n1().fromBinary(Z,$)}static fromJson(Z,$){return new n1().fromJson(Z,$)}static fromJsonString(Z,$){return new n1().fromJsonString(Z,$)}static equals(Z,$){return z0.util.equals(n1,Z,$)}static $(){return["GenerateImageArgs|1 description 9|2 file_path 9?|5 reference_image_paths 9*|6 aspect_ratio 9?"]}};r1=class r1 extends M8{constructor(Z){super();this.result={case:void 0},z0.util.initPartial(Z,this)}static fromBinary(Z,$){return new r1().fromBinary(Z,$)}static fromJson(Z,$){return new r1().fromJson(Z,$)}static fromJsonString(Z,$){return new r1().fromJsonString(Z,$)}static equals(Z,$){return z0.util.equals(r1,Z,$)}static $(){return["GenerateImageResult|1 success #0 result|2 error #1 result",a1,s1]}};a1=class a1 extends M8{constructor(Z){super();this.filePath="",this.imageData="",z0.util.initPartial(Z,this)}static fromBinary(Z,$){return new a1().fromBinary(Z,$)}static fromJson(Z,$){return new a1().fromJson(Z,$)}static fromJsonString(Z,$){return new a1().fromJsonString(Z,$)}static equals(Z,$){return z0.util.equals(a1,Z,$)}static $(){return["GenerateImageSuccess|1 file_path 9|2 image_data 9"]}};s1=class s1 extends M8{constructor(Z){super();this.error="",z0.util.initPartial(Z,this)}static fromBinary(Z,$){return new s1().fromBinary(Z,$)}static fromJson(Z,$){return new s1().fromJson(Z,$)}static fromJsonString(Z,$){return new s1().fromJsonString(Z,$)}static equals(Z,$){return z0.util.equals(s1,Z,$)}static $(){return["GenerateImageError|1 error 9"]}};PZ=class PZ extends M8{constructor(Z){super();z0.util.initPartial(Z,this)}static fromBinary(Z,$){return new PZ().fromBinary(Z,$)}static fromJson(Z,$){return new PZ().fromJson(Z,$)}static fromJsonString(Z,$){return new PZ().fromJsonString(Z,$)}static equals(Z,$){return z0.util.equals(PZ,Z,$)}static $(){return["GenerateImageToolCall|1 args #0|2 result #1",n1,r1]}};EZ=class EZ extends M8{constructor(Z){super();this.result={case:void 0},z0.util.initPartial(Z,this)}static fromBinary(Z,$){return new EZ().fromBinary(Z,$)}static fromJson(Z,$){return new EZ().fromJson(Z,$)}static fromJsonString(Z,$){return new EZ().fromJsonString(Z,$)}static equals(Z,$){return z0.util.equals(EZ,Z,$)}static $(){return["GenerateImageRequestResponse|1 approved #0 result|2 rejected #1 result",t1,o1]}};t1=class t1 extends M8{constructor(Z){super();this.description="",z0.util.initPartial(Z,this)}static fromBinary(Z,$){return new t1().fromBinary(Z,$)}static fromJson(Z,$){return new t1().fromJson(Z,$)}static fromJsonString(Z,$){return new t1().fromJsonString(Z,$)}static equals(Z,$){return z0.util.equals(t1,Z,$)}static $(){return["GenerateImageRequestResponse.Approved|1 description 9"]}};o1=class o1 extends M8{constructor(Z){super();this.reason="",z0.util.initPartial(Z,this)}static fromBinary(Z,$){return new o1().fromBinary(Z,$)}static fromJson(Z,$){return new o1().fromJson(Z,$)}static fromJsonString(Z,$){return new o1().fromJsonString(Z,$)}static equals(Z,$){return z0.util.equals(o1,Z,$)}static $(){return["GenerateImageRequestResponse.Rejected|1 reason 9"]}}});import{Message as Hr,proto3 as L0,protoInt64 as bx}from"@bufbuild/protobuf";var fW="agent.v1.",AZ,FF,cx,fZ,VZ,e1,Z5,$5,J5;var GF=O(()=>{A();AZ=class AZ extends G{static get runtime(){return F(this,"runtime",L0)}static $p(){return fW}};FF=w(L0,fW,"RecordingMode",[[0,"UNSPECIFIED"],[1,"START_RECORDING"],[2,"SAVE_RECORDING"],[3,"DISCARD_RECORDING"]],1),cx=w(L0,fW,"RequestedFilePathRejectedReason",[[0,"UNSPECIFIED"],[1,"SLASHES_NOT_ALLOWED"]],1);fZ=class fZ extends AZ{constructor(Z){super();this.mode=FF.UNSPECIFIED,this.toolCallId="",L0.util.initPartial(Z,this)}static fromBinary(Z,$){return new fZ().fromBinary(Z,$)}static fromJson(Z,$){return new fZ().fromJson(Z,$)}static fromJsonString(Z,$){return new fZ().fromJsonString(Z,$)}static equals(Z,$){return L0.util.equals(fZ,Z,$)}static $(){return["RecordScreenArgs|1 mode #0|2 tool_call_id 9|3 save_as_filename 9?",FF]}};VZ=class VZ extends AZ{constructor(Z){super();this.result={case:void 0},L0.util.initPartial(Z,this)}static fromBinary(Z,$){return new VZ().fromBinary(Z,$)}static fromJson(Z,$){return new VZ().fromJson(Z,$)}static fromJsonString(Z,$){return new VZ().fromJsonString(Z,$)}static equals(Z,$){return L0.util.equals(VZ,Z,$)}static $(){return["RecordScreenResult|1 start_success #0 result|2 save_success #1 result|3 discard_success #2 result|4 failure #3 result",e1,Z5,$5,J5]}};e1=class e1 extends AZ{constructor(Z){super();this.wasPriorRecordingCancelled=!1,this.wasSaveAsFilenameIgnored=!1,L0.util.initPartial(Z,this)}static fromBinary(Z,$){return new e1().fromBinary(Z,$)}static fromJson(Z,$){return new e1().fromJson(Z,$)}static fromJsonString(Z,$){return new e1().fromJsonString(Z,$)}static equals(Z,$){return L0.util.equals(e1,Z,$)}static $(){return["RecordScreenStartSuccess|1 was_prior_recording_cancelled 8|2 was_save_as_filename_ignored 8"]}};Z5=class Z5 extends AZ{constructor(Z){super();this.path="",this.recordingDurationMs=bx.zero,L0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Z5().fromBinary(Z,$)}static fromJson(Z,$){return new Z5().fromJson(Z,$)}static fromJsonString(Z,$){return new Z5().fromJsonString(Z,$)}static equals(Z,$){return L0.util.equals(Z5,Z,$)}static $(){return["RecordScreenSaveSuccess|1 path 9|2 recording_duration_ms 3|3 requested_file_path_rejected_reason #0?",cx]}};$5=class $5 extends AZ{constructor(Z){super();L0.util.initPartial(Z,this)}static fromBinary(Z,$){return new $5().fromBinary(Z,$)}static fromJson(Z,$){return new $5().fromJson(Z,$)}static fromJsonString(Z,$){return new $5().fromJsonString(Z,$)}static equals(Z,$){return L0.util.equals($5,Z,$)}static $(){return["RecordScreenDiscardSuccess"]}};J5=class J5 extends AZ{constructor(Z){super();this.error="",L0.util.initPartial(Z,this)}static fromBinary(Z,$){return new J5().fromBinary(Z,$)}static fromJson(Z,$){return new J5().fromJson(Z,$)}static fromJsonString(Z,$){return new J5().fromJsonString(Z,$)}static equals(Z,$){return L0.util.equals(J5,Z,$)}static $(){return["RecordScreenFailure|1 error 9"]}}});import{Message as Br,proto3 as VW}from"@bufbuild/protobuf";var dx="agent.v1.",LF,MZ;var DF=O(()=>{GF();A();LF=class LF extends G{static get runtime(){return F(this,"runtime",VW)}static $p(){return dx}};MZ=class MZ extends LF{constructor(Z){super();VW.util.initPartial(Z,this)}static fromBinary(Z,$){return new MZ().fromBinary(Z,$)}static fromJson(Z,$){return new MZ().fromJson(Z,$)}static fromJsonString(Z,$){return new MZ().fromJsonString(Z,$)}static equals(Z,$){return VW.util.equals(MZ,Z,$)}static $(){return["RecordScreenToolCall|1 args #0|2 result #1",fZ,VZ]}}});import{Message as wr,proto3 as T}from"@bufbuild/protobuf";var kQ="agent.v1.",l,a8,wF,UF,OF,D8,Y5,X5,z5,K5,Q5,H5,W5,q5,N5,B5,F5,G5,L5,D5,w5,U5,O5,xZ,I5,TZ;var IF=O(()=>{A();l=class l extends G{static get runtime(){return F(this,"runtime",T)}static $p(){return kQ}};a8=w(T,kQ,"MouseButton",[[0,"UNSPECIFIED"],[1,"LEFT"],[2,"RIGHT"],[3,"MIDDLE"],[4,"BACK"],[5,"FORWARD"]],1),wF=w(T,kQ,"ScrollDirection",[[0,"UNSPECIFIED"],[1,"UP"],[2,"DOWN"],[3,"LEFT"],[4,"RIGHT"]],1),UF=w(T,kQ,"KeyStroke",[[0,"UNSPECIFIED"],[1,"TAP"],[2,"DOWN"],[3,"UP"]],1),OF=w(T,kQ,"ComputerUseDriver",[[0,"UNSPECIFIED"],[1,"XDOTOOL"],[2,"NATIVE_X11"]],1);D8=class D8 extends l{constructor(Z){super();this.x=0,this.y=0,T.util.initPartial(Z,this)}static fromBinary(Z,$){return new D8().fromBinary(Z,$)}static fromJson(Z,$){return new D8().fromJson(Z,$)}static fromJsonString(Z,$){return new D8().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(D8,Z,$)}static $(){return["Coordinate|1 x 5|2 y 5"]}};Y5=class Y5 extends l{constructor(Z){super();this.toolCallId="",this.actions=[],T.util.initPartial(Z,this)}static fromBinary(Z,$){return new Y5().fromBinary(Z,$)}static fromJson(Z,$){return new Y5().fromJson(Z,$)}static fromJsonString(Z,$){return new Y5().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(Y5,Z,$)}static $(){return["ComputerUseArgs|1 tool_call_id 9|2 actions #0*|3 description 9?|4 bind_unmapped_characters 8?|5 desktop_lease_actor_id 9?|6 screenshot_settle_ms 5?|10 native_x11_driver #1?|11 mark_monitor_busy 8?|9 full_resolution_screenshot 8?|12 capture_name_prefix 9?|13 omit_inline_screenshot 8?",z5,X5]}};X5=class X5 extends l{constructor(Z){super();T.util.initPartial(Z,this)}static fromBinary(Z,$){return new X5().fromBinary(Z,$)}static fromJson(Z,$){return new X5().fromJson(Z,$)}static fromJsonString(Z,$){return new X5().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(X5,Z,$)}static $(){return["NativeX11Driver|1 typing_delay_ms 5?|2 allow_fallback 8?"]}};z5=class z5 extends l{constructor(Z){super();this.action={case:void 0},T.util.initPartial(Z,this)}static fromBinary(Z,$){return new z5().fromBinary(Z,$)}static fromJson(Z,$){return new z5().fromJson(Z,$)}static fromJsonString(Z,$){return new z5().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(z5,Z,$)}static $(){return["ComputerUseAction|1 mouse_move #0 action|2 click #1 action|3 mouse_down #2 action|4 mouse_up #3 action|5 drag #4 action|6 scroll #5 action|7 type #6 action|8 key #7 action|9 wait #8 action|10 screenshot #9 action|11 cursor_position #10 action",K5,Q5,H5,W5,q5,N5,B5,F5,G5,L5,D5]}};K5=class K5 extends l{constructor(Z){super();T.util.initPartial(Z,this)}static fromBinary(Z,$){return new K5().fromBinary(Z,$)}static fromJson(Z,$){return new K5().fromJson(Z,$)}static fromJsonString(Z,$){return new K5().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(K5,Z,$)}static $(){return["MouseMoveAction|1 coordinate #0",D8]}};Q5=class Q5 extends l{constructor(Z){super();this.button=a8.UNSPECIFIED,this.count=0,T.util.initPartial(Z,this)}static fromBinary(Z,$){return new Q5().fromBinary(Z,$)}static fromJson(Z,$){return new Q5().fromJson(Z,$)}static fromJsonString(Z,$){return new Q5().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(Q5,Z,$)}static $(){return["ClickAction|1 coordinate #0?|2 button #1|3 count 5|4 modifier_keys 9?",D8,a8]}};H5=class H5 extends l{constructor(Z){super();this.button=a8.UNSPECIFIED,T.util.initPartial(Z,this)}static fromBinary(Z,$){return new H5().fromBinary(Z,$)}static fromJson(Z,$){return new H5().fromJson(Z,$)}static fromJsonString(Z,$){return new H5().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(H5,Z,$)}static $(){return["MouseDownAction|1 button #0",a8]}};W5=class W5 extends l{constructor(Z){super();this.button=a8.UNSPECIFIED,T.util.initPartial(Z,this)}static fromBinary(Z,$){return new W5().fromBinary(Z,$)}static fromJson(Z,$){return new W5().fromJson(Z,$)}static fromJsonString(Z,$){return new W5().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(W5,Z,$)}static $(){return["MouseUpAction|1 button #0",a8]}};q5=class q5 extends l{constructor(Z){super();this.path=[],this.button=a8.UNSPECIFIED,T.util.initPartial(Z,this)}static fromBinary(Z,$){return new q5().fromBinary(Z,$)}static fromJson(Z,$){return new q5().fromJson(Z,$)}static fromJsonString(Z,$){return new q5().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(q5,Z,$)}static $(){return["DragAction|1 path #0*|2 button #1|3 modifier_keys 9?",D8,a8]}};N5=class N5 extends l{constructor(Z){super();this.direction=wF.UNSPECIFIED,this.amount=0,T.util.initPartial(Z,this)}static fromBinary(Z,$){return new N5().fromBinary(Z,$)}static fromJson(Z,$){return new N5().fromJson(Z,$)}static fromJsonString(Z,$){return new N5().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(N5,Z,$)}static $(){return["ScrollAction|1 coordinate #0?|2 direction #1|3 amount 5|4 modifier_keys 9?",D8,wF]}};B5=class B5 extends l{constructor(Z){super();this.text="",T.util.initPartial(Z,this)}static fromBinary(Z,$){return new B5().fromBinary(Z,$)}static fromJson(Z,$){return new B5().fromJson(Z,$)}static fromJsonString(Z,$){return new B5().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(B5,Z,$)}static $(){return["TypeAction|1 text 9"]}};F5=class F5 extends l{constructor(Z){super();this.key="",this.stroke=UF.UNSPECIFIED,T.util.initPartial(Z,this)}static fromBinary(Z,$){return new F5().fromBinary(Z,$)}static fromJson(Z,$){return new F5().fromJson(Z,$)}static fromJsonString(Z,$){return new F5().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(F5,Z,$)}static $(){return["KeyAction|1 key 9|2 hold_duration_ms 5?|3 stroke #0",UF]}};G5=class G5 extends l{constructor(Z){super();this.durationMs=0,T.util.initPartial(Z,this)}static fromBinary(Z,$){return new G5().fromBinary(Z,$)}static fromJson(Z,$){return new G5().fromJson(Z,$)}static fromJsonString(Z,$){return new G5().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(G5,Z,$)}static $(){return["WaitAction|1 duration_ms 5"]}};L5=class L5 extends l{constructor(Z){super();T.util.initPartial(Z,this)}static fromBinary(Z,$){return new L5().fromBinary(Z,$)}static fromJson(Z,$){return new L5().fromJson(Z,$)}static fromJsonString(Z,$){return new L5().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(L5,Z,$)}static $(){return["ScreenshotAction"]}};D5=class D5 extends l{constructor(Z){super();T.util.initPartial(Z,this)}static fromBinary(Z,$){return new D5().fromBinary(Z,$)}static fromJson(Z,$){return new D5().fromJson(Z,$)}static fromJsonString(Z,$){return new D5().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(D5,Z,$)}static $(){return["CursorPositionAction"]}};w5=class w5 extends l{constructor(Z){super();this.result={case:void 0},T.util.initPartial(Z,this)}static fromBinary(Z,$){return new w5().fromBinary(Z,$)}static fromJson(Z,$){return new w5().fromJson(Z,$)}static fromJsonString(Z,$){return new w5().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(w5,Z,$)}static $(){return["ComputerUseResult|1 success #0 result|2 error #1 result",U5,I5]}};U5=class U5 extends l{constructor(Z){super();this.actionCount=0,this.durationMs=0,this.typing=[],T.util.initPartial(Z,this)}static fromBinary(Z,$){return new U5().fromBinary(Z,$)}static fromJson(Z,$){return new U5().fromJson(Z,$)}static fromJsonString(Z,$){return new U5().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(U5,Z,$)}static $(){return["ComputerUseSuccess|1 action_count 5|2 duration_ms 5|3 screenshot 9?|4 log 9?|5 screenshot_path 9?|6 cursor_position #0?|7 settle_ms 5?|9 driver #1?|10 monitor_busy_marked 8?|11 full_resolution_screenshot #2?|12 typing #3*",D8,OF,O5,xZ]}};O5=class O5 extends l{constructor(Z){super();this.path="",this.sha256="",this.sizeBytes=0,this.width=0,this.height=0,T.util.initPartial(Z,this)}static fromBinary(Z,$){return new O5().fromBinary(Z,$)}static fromJson(Z,$){return new O5().fromJson(Z,$)}static fromJsonString(Z,$){return new O5().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(O5,Z,$)}static $(){return["ComputerUseFullResolutionScreenshot|1 path 9|2 sha256 9|3 size_bytes 13|4 width 5|5 height 5"]}};xZ=class xZ extends l{constructor(Z){super();this.method="",this.chars=0,this.atoms=0,this.typedAtoms=0,this.aborted=!1,T.util.initPartial(Z,this)}static fromBinary(Z,$){return new xZ().fromBinary(Z,$)}static fromJson(Z,$){return new xZ().fromJson(Z,$)}static fromJsonString(Z,$){return new xZ().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(xZ,Z,$)}static $(){return["ComputerUseTyping|1 method 9|2 chars 5|3 atoms 5|4 typed_atoms 5|5 aborted 8|6 check 9?|7 verified 5?|8 unchecked 9?|9 landing 9?"]}};I5=class I5 extends l{constructor(Z){super();this.error="",this.actionCount=0,this.durationMs=0,this.typing=[],T.util.initPartial(Z,this)}static fromBinary(Z,$){return new I5().fromBinary(Z,$)}static fromJson(Z,$){return new I5().fromJson(Z,$)}static fromJsonString(Z,$){return new I5().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(I5,Z,$)}static $(){return["ComputerUseError|1 error 9|2 action_count 5|3 duration_ms 5|4 log 9?|5 screenshot 9?|6 screenshot_path 9?|7 driver #0?|8 monitor_busy_marked 8?|9 typing #1*",OF,xZ]}};TZ=class TZ extends l{constructor(Z){super();T.util.initPartial(Z,this)}static fromBinary(Z,$){return new TZ().fromBinary(Z,$)}static fromJson(Z,$){return new TZ().fromJson(Z,$)}static fromJsonString(Z,$){return new TZ().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(TZ,Z,$)}static $(){return["ComputerUseToolCall|1 args #0|2 result #1",Y5,w5]}}});import{Message as kr,proto3 as x8}from"@bufbuild/protobuf";var ux="agent.v1.",PQ,CZ,hZ,k5,P5;var kF=O(()=>{A();PQ=class PQ extends G{static get runtime(){return F(this,"runtime",x8)}static $p(){return ux}};CZ=class CZ extends PQ{constructor(Z){super();this.shellId=0,this.chars="",x8.util.initPartial(Z,this)}static fromBinary(Z,$){return new CZ().fromBinary(Z,$)}static fromJson(Z,$){return new CZ().fromJson(Z,$)}static fromJsonString(Z,$){return new CZ().fromJsonString(Z,$)}static equals(Z,$){return x8.util.equals(CZ,Z,$)}static $(){return["WriteShellStdinArgs|1 shell_id 13|2 chars 9"]}};hZ=class hZ extends PQ{constructor(Z){super();this.result={case:void 0},x8.util.initPartial(Z,this)}static fromBinary(Z,$){return new hZ().fromBinary(Z,$)}static fromJson(Z,$){return new hZ().fromJson(Z,$)}static fromJsonString(Z,$){return new hZ().fromJsonString(Z,$)}static equals(Z,$){return x8.util.equals(hZ,Z,$)}static $(){return["WriteShellStdinResult|1 success #0 result|2 error #1 result",k5,P5]}};k5=class k5 extends PQ{constructor(Z){super();this.shellId=0,this.terminalFileLengthBeforeInputWritten=0,x8.util.initPartial(Z,this)}static fromBinary(Z,$){return new k5().fromBinary(Z,$)}static fromJson(Z,$){return new k5().fromJson(Z,$)}static fromJsonString(Z,$){return new k5().fromJsonString(Z,$)}static equals(Z,$){return x8.util.equals(k5,Z,$)}static $(){return["WriteShellStdinSuccess|1 shell_id 13|2 terminal_file_length_before_input_written 13"]}};P5=class P5 extends PQ{constructor(Z){super();this.error="",x8.util.initPartial(Z,this)}static fromBinary(Z,$){return new P5().fromBinary(Z,$)}static fromJson(Z,$){return new P5().fromJson(Z,$)}static fromJsonString(Z,$){return new P5().fromJsonString(Z,$)}static equals(Z,$){return x8.util.equals(P5,Z,$)}static $(){return["WriteShellStdinError|1 error 9"]}}});import{Message as Vr,proto3 as AW}from"@bufbuild/protobuf";var lx="agent.v1.",PF,RZ;var EF=O(()=>{kF();A();PF=class PF extends G{static get runtime(){return F(this,"runtime",AW)}static $p(){return lx}};RZ=class RZ extends PF{constructor(Z){super();AW.util.initPartial(Z,this)}static fromBinary(Z,$){return new RZ().fromBinary(Z,$)}static fromJson(Z,$){return new RZ().fromJson(Z,$)}static fromJsonString(Z,$){return new RZ().fromJsonString(Z,$)}static equals(Z,$){return AW.util.equals(RZ,Z,$)}static $(){return["WriteShellStdinToolCall|1 args #0|2 result #1",CZ,hZ]}}});import{Message as Cr,proto3 as o0}from"@bufbuild/protobuf";var px="agent.v1.",M5,E5,f5,V5,A5,vZ;var fF=O(()=>{A();M5=class M5 extends G{static get runtime(){return F(this,"runtime",o0)}static $p(){return px}};E5=class E5 extends M5{constructor(Z){super();this.unexpectedActionOutcomes="",this.relevantInstructions="",this.scenarioAnalysis="",this.criticalSynthesis="",this.nextSteps="",this.toolCallId="",o0.util.initPartial(Z,this)}static fromBinary(Z,$){return new E5().fromBinary(Z,$)}static fromJson(Z,$){return new E5().fromJson(Z,$)}static fromJsonString(Z,$){return new E5().fromJsonString(Z,$)}static equals(Z,$){return o0.util.equals(E5,Z,$)}static $(){return["ReflectArgs|1 unexpected_action_outcomes 9|2 relevant_instructions 9|3 scenario_analysis 9|4 critical_synthesis 9|5 next_steps 9|6 tool_call_id 9"]}};f5=class f5 extends M5{constructor(Z){super();this.result={case:void 0},o0.util.initPartial(Z,this)}static fromBinary(Z,$){return new f5().fromBinary(Z,$)}static fromJson(Z,$){return new f5().fromJson(Z,$)}static fromJsonString(Z,$){return new f5().fromJsonString(Z,$)}static equals(Z,$){return o0.util.equals(f5,Z,$)}static $(){return["ReflectResult|1 success #0 result|2 error #1 result",V5,A5]}};V5=class V5 extends M5{constructor(Z){super();o0.util.initPartial(Z,this)}static fromBinary(Z,$){return new V5().fromBinary(Z,$)}static fromJson(Z,$){return new V5().fromJson(Z,$)}static fromJsonString(Z,$){return new V5().fromJsonString(Z,$)}static equals(Z,$){return o0.util.equals(V5,Z,$)}static $(){return["ReflectSuccess"]}};A5=class A5 extends M5{constructor(Z){super();this.error="",o0.util.initPartial(Z,this)}static fromBinary(Z,$){return new A5().fromBinary(Z,$)}static fromJson(Z,$){return new A5().fromJson(Z,$)}static fromJsonString(Z,$){return new A5().fromJsonString(Z,$)}static equals(Z,$){return o0.util.equals(A5,Z,$)}static $(){return["ReflectError|1 error 9"]}};vZ=class vZ extends M5{constructor(Z){super();o0.util.initPartial(Z,this)}static fromBinary(Z,$){return new vZ().fromBinary(Z,$)}static fromJson(Z,$){return new vZ().fromJson(Z,$)}static fromJsonString(Z,$){return new vZ().fromJsonString(Z,$)}static equals(Z,$){return o0.util.equals(vZ,Z,$)}static $(){return["ReflectToolCall|1 args #0|2 result #1",E5,f5]}}});import{Message as yr,proto3 as T8}from"@bufbuild/protobuf";var ix="agent.v1.",EQ,yZ,s8,x5,mZ;var VF=O(()=>{A();EQ=class EQ extends G{static get runtime(){return F(this,"runtime",T8)}static $p(){return ix}};yZ=class yZ extends EQ{constructor(Z){super();this.installCommand="",this.startCommand="",this.dockerfileContents="",T8.util.initPartial(Z,this)}static fromBinary(Z,$){return new yZ().fromBinary(Z,$)}static fromJson(Z,$){return new yZ().fromJson(Z,$)}static fromJsonString(Z,$){return new yZ().fromJsonString(Z,$)}static equals(Z,$){return T8.util.equals(yZ,Z,$)}static $(){return["SetupVmEnvironmentArgs|2 install_command 9|3 start_command 9|4 dockerfile_contents 9"]}};s8=class s8 extends EQ{constructor(Z){super();this.result={case:void 0},T8.util.initPartial(Z,this)}static fromBinary(Z,$){return new s8().fromBinary(Z,$)}static fromJson(Z,$){return new s8().fromJson(Z,$)}static fromJsonString(Z,$){return new s8().fromJsonString(Z,$)}static equals(Z,$){return T8.util.equals(s8,Z,$)}static $(){return["SetupVmEnvironmentResult|1 success #0 result",x5]}};x5=class x5 extends EQ{constructor(Z){super();T8.util.initPartial(Z,this)}static fromBinary(Z,$){return new x5().fromBinary(Z,$)}static fromJson(Z,$){return new x5().fromJson(Z,$)}static fromJsonString(Z,$){return new x5().fromJsonString(Z,$)}static equals(Z,$){return T8.util.equals(x5,Z,$)}static $(){return["SetupVmEnvironmentSuccess"]}};mZ=class mZ extends EQ{constructor(Z){super();T8.util.initPartial(Z,this)}static fromBinary(Z,$){return new mZ().fromBinary(Z,$)}static fromJson(Z,$){return new mZ().fromJson(Z,$)}static fromJsonString(Z,$){return new mZ().fromJsonString(Z,$)}static equals(Z,$){return T8.util.equals(mZ,Z,$)}static $(){return["SetupVmEnvironmentToolCall|1 args #0|2 result #1",yZ,s8]}}});import{Message as Sr,proto3 as e0}from"@bufbuild/protobuf";var nx="agent.v1.",v5,T5,C5,h5,R5,jZ;var AF=O(()=>{A();v5=class v5 extends G{static get runtime(){return F(this,"runtime",e0)}static $p(){return nx}};T5=class T5 extends v5{constructor(Z){super();this.toolCallId="",e0.util.initPartial(Z,this)}static fromBinary(Z,$){return new T5().fromBinary(Z,$)}static fromJson(Z,$){return new T5().fromJson(Z,$)}static fromJsonString(Z,$){return new T5().fromJsonString(Z,$)}static equals(Z,$){return e0.util.equals(T5,Z,$)}static $(){return["StartGrindExecutionArgs|1 explanation 9?|2 tool_call_id 9"]}};C5=class C5 extends v5{constructor(Z){super();this.result={case:void 0},e0.util.initPartial(Z,this)}static fromBinary(Z,$){return new C5().fromBinary(Z,$)}static fromJson(Z,$){return new C5().fromJson(Z,$)}static fromJsonString(Z,$){return new C5().fromJsonString(Z,$)}static equals(Z,$){return e0.util.equals(C5,Z,$)}static $(){return["StartGrindExecutionResult|1 success #0 result|2 error #1 result",h5,R5]}};h5=class h5 extends v5{constructor(Z){super();e0.util.initPartial(Z,this)}static fromBinary(Z,$){return new h5().fromBinary(Z,$)}static fromJson(Z,$){return new h5().fromJson(Z,$)}static fromJsonString(Z,$){return new h5().fromJsonString(Z,$)}static equals(Z,$){return e0.util.equals(h5,Z,$)}static $(){return["StartGrindExecutionSuccess"]}};R5=class R5 extends v5{constructor(Z){super();this.error="",e0.util.initPartial(Z,this)}static fromBinary(Z,$){return new R5().fromBinary(Z,$)}static fromJson(Z,$){return new R5().fromJson(Z,$)}static fromJsonString(Z,$){return new R5().fromJsonString(Z,$)}static equals(Z,$){return e0.util.equals(R5,Z,$)}static $(){return["StartGrindExecutionError|1 error 9"]}};jZ=class jZ extends v5{constructor(Z){super();e0.util.initPartial(Z,this)}static fromBinary(Z,$){return new jZ().fromBinary(Z,$)}static fromJson(Z,$){return new jZ().fromJson(Z,$)}static fromJsonString(Z,$){return new jZ().fromJsonString(Z,$)}static equals(Z,$){return e0.util.equals(jZ,Z,$)}static $(){return["StartGrindExecutionToolCall|1 args #0|2 result #1",T5,C5]}}});import{Message as dr,proto3 as Z8}from"@bufbuild/protobuf";var rx="agent.v1.",S5,y5,m5,j5,_5,_Z;var MF=O(()=>{A();S5=class S5 extends G{static get runtime(){return F(this,"runtime",Z8)}static $p(){return rx}};y5=class y5 extends S5{constructor(Z){super();this.toolCallId="",Z8.util.initPartial(Z,this)}static fromBinary(Z,$){return new y5().fromBinary(Z,$)}static fromJson(Z,$){return new y5().fromJson(Z,$)}static fromJsonString(Z,$){return new y5().fromJsonString(Z,$)}static equals(Z,$){return Z8.util.equals(y5,Z,$)}static $(){return["StartGrindPlanningArgs|1 explanation 9?|2 tool_call_id 9"]}};m5=class m5 extends S5{constructor(Z){super();this.result={case:void 0},Z8.util.initPartial(Z,this)}static fromBinary(Z,$){return new m5().fromBinary(Z,$)}static fromJson(Z,$){return new m5().fromJson(Z,$)}static fromJsonString(Z,$){return new m5().fromJsonString(Z,$)}static equals(Z,$){return Z8.util.equals(m5,Z,$)}static $(){return["StartGrindPlanningResult|1 success #0 result|2 error #1 result",j5,_5]}};j5=class j5 extends S5{constructor(Z){super();Z8.util.initPartial(Z,this)}static fromBinary(Z,$){return new j5().fromBinary(Z,$)}static fromJson(Z,$){return new j5().fromJson(Z,$)}static fromJsonString(Z,$){return new j5().fromJsonString(Z,$)}static equals(Z,$){return Z8.util.equals(j5,Z,$)}static $(){return["StartGrindPlanningSuccess"]}};_5=class _5 extends S5{constructor(Z){super();this.error="",Z8.util.initPartial(Z,this)}static fromBinary(Z,$){return new _5().fromBinary(Z,$)}static fromJson(Z,$){return new _5().fromJson(Z,$)}static fromJsonString(Z,$){return new _5().fromJsonString(Z,$)}static equals(Z,$){return Z8.util.equals(_5,Z,$)}static $(){return["StartGrindPlanningError|1 error 9"]}};_Z=class _Z extends S5{constructor(Z){super();Z8.util.initPartial(Z,this)}static fromBinary(Z,$){return new _Z().fromBinary(Z,$)}static fromJson(Z,$){return new _Z().fromJson(Z,$)}static fromJsonString(Z,$){return new _Z().fromJsonString(Z,$)}static equals(Z,$){return Z8.util.equals(_Z,Z,$)}static $(){return["StartGrindPlanningToolCall|1 args #0|2 result #1",y5,m5]}}});import{Message as ir,proto3 as e}from"@bufbuild/protobuf";var ax="agent.v1.",w8,g5,b5,c5,d5,u5,SZ,gZ,l5,p5;var xF=O(()=>{P6();A();w8=class w8 extends G{static get runtime(){return F(this,"runtime",e)}static $p(){return ax}};g5=class g5 extends w8{constructor(Z){super();this.url="",this.toolCallId="",e.util.initPartial(Z,this)}static fromBinary(Z,$){return new g5().fromBinary(Z,$)}static fromJson(Z,$){return new g5().fromJson(Z,$)}static fromJsonString(Z,$){return new g5().fromJsonString(Z,$)}static equals(Z,$){return e.util.equals(g5,Z,$)}static $(){return["WebFetchArgs|1 url 9|2 tool_call_id 9"]}};b5=class b5 extends w8{constructor(Z){super();this.result={case:void 0},e.util.initPartial(Z,this)}static fromBinary(Z,$){return new b5().fromBinary(Z,$)}static fromJson(Z,$){return new b5().fromJson(Z,$)}static fromJsonString(Z,$){return new b5().fromJsonString(Z,$)}static equals(Z,$){return e.util.equals(b5,Z,$)}static $(){return["WebFetchResult|1 success #0 result|2 error #1 result|3 rejected #2 result",c5,d5,u5]}};c5=class c5 extends w8{constructor(Z){super();this.url="",this.markdown="",e.util.initPartial(Z,this)}static fromBinary(Z,$){return new c5().fromBinary(Z,$)}static fromJson(Z,$){return new c5().fromJson(Z,$)}static fromJsonString(Z,$){return new c5().fromJsonString(Z,$)}static equals(Z,$){return e.util.equals(c5,Z,$)}static $(){return["WebFetchSuccess|1 url 9|2 markdown 9|3 output_location #0?",N0]}};d5=class d5 extends w8{constructor(Z){super();this.url="",this.error="",e.util.initPartial(Z,this)}static fromBinary(Z,$){return new d5().fromBinary(Z,$)}static fromJson(Z,$){return new d5().fromJson(Z,$)}static fromJsonString(Z,$){return new d5().fromJsonString(Z,$)}static equals(Z,$){return e.util.equals(d5,Z,$)}static $(){return["WebFetchError|1 url 9|2 error 9"]}};u5=class u5 extends w8{constructor(Z){super();this.reason="",e.util.initPartial(Z,this)}static fromBinary(Z,$){return new u5().fromBinary(Z,$)}static fromJson(Z,$){return new u5().fromJson(Z,$)}static fromJsonString(Z,$){return new u5().fromJsonString(Z,$)}static equals(Z,$){return e.util.equals(u5,Z,$)}static $(){return["WebFetchRejected|1 reason 9"]}};SZ=class SZ extends w8{constructor(Z){super();e.util.initPartial(Z,this)}static fromBinary(Z,$){return new SZ().fromBinary(Z,$)}static fromJson(Z,$){return new SZ().fromJson(Z,$)}static fromJsonString(Z,$){return new SZ().fromJsonString(Z,$)}static equals(Z,$){return e.util.equals(SZ,Z,$)}static $(){return["WebFetchToolCall|1 args #0|2 result #1",g5,b5]}};gZ=class gZ extends w8{constructor(Z){super();this.result={case:void 0},e.util.initPartial(Z,this)}static fromBinary(Z,$){return new gZ().fromBinary(Z,$)}static fromJson(Z,$){return new gZ().fromJson(Z,$)}static fromJsonString(Z,$){return new gZ().fromJsonString(Z,$)}static equals(Z,$){return e.util.equals(gZ,Z,$)}static $(){return["WebFetchRequestResponse|1 approved #0 result|2 rejected #1 result",l5,p5]}};l5=class l5 extends w8{constructor(Z){super();e.util.initPartial(Z,this)}static fromBinary(Z,$){return new l5().fromBinary(Z,$)}static fromJson(Z,$){return new l5().fromJson(Z,$)}static fromJsonString(Z,$){return new l5().fromJsonString(Z,$)}static equals(Z,$){return e.util.equals(l5,Z,$)}static $(){return["WebFetchRequestResponse.Approved"]}};p5=class p5 extends w8{constructor(Z){super();this.reason="",e.util.initPartial(Z,this)}static fromBinary(Z,$){return new p5().fromBinary(Z,$)}static fromJson(Z,$){return new p5().fromJson(Z,$)}static fromJsonString(Z,$){return new p5().fromJsonString(Z,$)}static equals(Z,$){return e.util.equals(p5,Z,$)}static $(){return["WebFetchRequestResponse.Rejected|1 reason 9"]}}});import{Message as tr,proto3 as A0}from"@bufbuild/protobuf";var CF="agent.v1.",dZ,TF,bZ,i5,n5,r5,a5,cZ;var hF=O(()=>{A();dZ=class dZ extends G{static get runtime(){return F(this,"runtime",A0)}static $p(){return CF}};TF=w(A0,CF,"BugfixVerdict",[[0,"UNSPECIFIED"],[1,"FIXED"],[2,"FALSE_POSITIVE"],[3,"COULD_NOT_FIX"],[4,"RESOLVED_BY_OTHER_FIX"]],1);bZ=class bZ extends dZ{constructor(Z){super();this.bugId="",this.bugTitle="",this.verdict=TF.UNSPECIFIED,this.explanation="",A0.util.initPartial(Z,this)}static fromBinary(Z,$){return new bZ().fromBinary(Z,$)}static fromJson(Z,$){return new bZ().fromJson(Z,$)}static fromJsonString(Z,$){return new bZ().fromJsonString(Z,$)}static equals(Z,$){return A0.util.equals(bZ,Z,$)}static $(){return["BugfixResultItem|1 bug_id 9|2 bug_title 9|3 verdict #0|4 explanation 9|5 severity 9?",TF]}};i5=class i5 extends dZ{constructor(Z){super();this.summary="",this.results=[],A0.util.initPartial(Z,this)}static fromBinary(Z,$){return new i5().fromBinary(Z,$)}static fromJson(Z,$){return new i5().fromJson(Z,$)}static fromJsonString(Z,$){return new i5().fromJsonString(Z,$)}static equals(Z,$){return A0.util.equals(i5,Z,$)}static $(){return["ReportBugfixResultsArgs|1 summary 9|2 results #0*",bZ]}};n5=class n5 extends dZ{constructor(Z){super();this.results=[],A0.util.initPartial(Z,this)}static fromBinary(Z,$){return new n5().fromBinary(Z,$)}static fromJson(Z,$){return new n5().fromJson(Z,$)}static fromJsonString(Z,$){return new n5().fromJsonString(Z,$)}static equals(Z,$){return A0.util.equals(n5,Z,$)}static $(){return["ReportBugfixResultsSuccess|1 results #0*",bZ]}};r5=class r5 extends dZ{constructor(Z){super();this.error="",A0.util.initPartial(Z,this)}static fromBinary(Z,$){return new r5().fromBinary(Z,$)}static fromJson(Z,$){return new r5().fromJson(Z,$)}static fromJsonString(Z,$){return new r5().fromJsonString(Z,$)}static equals(Z,$){return A0.util.equals(r5,Z,$)}static $(){return["ReportBugfixResultsError|1 error 9"]}};a5=class a5 extends dZ{constructor(Z){super();this.result={case:void 0},A0.util.initPartial(Z,this)}static fromBinary(Z,$){return new a5().fromBinary(Z,$)}static fromJson(Z,$){return new a5().fromJson(Z,$)}static fromJsonString(Z,$){return new a5().fromJsonString(Z,$)}static equals(Z,$){return A0.util.equals(a5,Z,$)}static $(){return["ReportBugfixResultsResult|1 success #0 result|2 error #1 result",n5,r5]}};cZ=class cZ extends dZ{constructor(Z){super();A0.util.initPartial(Z,this)}static fromBinary(Z,$){return new cZ().fromBinary(Z,$)}static fromJson(Z,$){return new cZ().fromJson(Z,$)}static fromJsonString(Z,$){return new cZ().fromJsonString(Z,$)}static equals(Z,$){return A0.util.equals(cZ,Z,$)}static $(){return["ReportBugfixResultsToolCall|1 args #0|2 result #1",i5,a5]}}});import{Message as $a,proto3 as $8}from"@bufbuild/protobuf";var sx="agent.v1.",ZJ,s5,t5,o5,e5,uZ;var RF=O(()=>{P6();A();ZJ=class ZJ extends G{static get runtime(){return F(this,"runtime",$8)}static $p(){return sx}};s5=class s5 extends ZJ{constructor(Z){super();this.filePaths=[],this.commitHashes=[],$8.util.initPartial(Z,this)}static fromBinary(Z,$){return new s5().fromBinary(Z,$)}static fromJson(Z,$){return new s5().fromJson(Z,$)}static fromJsonString(Z,$){return new s5().fromJsonString(Z,$)}static equals(Z,$){return $8.util.equals(s5,Z,$)}static $(){return["AiAttributionArgs|5 file_paths 9*|2 start_line 5?|3 end_line 5?|6 commit_hashes 9*|7 output_mode 9?|9 max_commits 5?|10 include_line_ranges 8?"]}};t5=class t5 extends ZJ{constructor(Z){super();this.result={case:void 0},$8.util.initPartial(Z,this)}static fromBinary(Z,$){return new t5().fromBinary(Z,$)}static fromJson(Z,$){return new t5().fromJson(Z,$)}static fromJsonString(Z,$){return new t5().fromJsonString(Z,$)}static equals(Z,$){return $8.util.equals(t5,Z,$)}static $(){return["AiAttributionResult|1 success #0 result|2 error #1 result",o5,e5]}};o5=class o5 extends ZJ{constructor(Z){super();this.attributionText="",$8.util.initPartial(Z,this)}static fromBinary(Z,$){return new o5().fromBinary(Z,$)}static fromJson(Z,$){return new o5().fromJson(Z,$)}static fromJsonString(Z,$){return new o5().fromJsonString(Z,$)}static equals(Z,$){return $8.util.equals(o5,Z,$)}static $(){return["AiAttributionSuccess|1 attribution_text 9|2 output_location #0?",N0]}};e5=class e5 extends ZJ{constructor(Z){super();this.error="",$8.util.initPartial(Z,this)}static fromBinary(Z,$){return new e5().fromBinary(Z,$)}static fromJson(Z,$){return new e5().fromJson(Z,$)}static fromJsonString(Z,$){return new e5().fromJsonString(Z,$)}static equals(Z,$){return $8.util.equals(e5,Z,$)}static $(){return["AiAttributionError|1 error 9"]}};uZ=class uZ extends ZJ{constructor(Z){super();$8.util.initPartial(Z,this)}static fromBinary(Z,$){return new uZ().fromBinary(Z,$)}static fromJson(Z,$){return new uZ().fromJson(Z,$)}static fromJsonString(Z,$){return new uZ().fromJsonString(Z,$)}static equals(Z,$){return $8.util.equals(uZ,Z,$)}static $(){return["AiAttributionToolCall|1 args #0|2 result #1",s5,t5]}}});import{Message as Ka,proto3 as v,protoInt64 as tx}from"@bufbuild/protobuf";var $H="agent.v1.",Z0,vF,yF,mF,$J,JJ,YJ,XJ,zJ,KJ,QJ,HJ,WJ,qJ,t8,NJ,BJ,FJ,GJ,LJ,DJ,lZ;var jF=O(()=>{A();Z0=class Z0 extends G{static get runtime(){return F(this,"runtime",v)}static $p(){return $H}};vF=w(v,$H,"MergePrMode",[[0,"UNSPECIFIED"],[1,"MERGE"],[2,"AUTO"],[3,"DISABLE_AUTO"]],1),yF=w(v,$H,"MergePrMethod",[[0,"UNSPECIFIED"],[1,"MERGE"],[2,"SQUASH"]],1),mF=w(v,$H,"PullRequestStatus",[[0,"UNSPECIFIED"],[1,"OPEN"],[2,"CLOSED"]],1);$J=class $J extends Z0{constructor(Z){super();this.toolCallId="",this.action={case:void 0},v.util.initPartial(Z,this)}static fromBinary(Z,$){return new $J().fromBinary(Z,$)}static fromJson(Z,$){return new $J().fromJson(Z,$)}static fromJsonString(Z,$){return new $J().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals($J,Z,$)}static $(){return["PrManagementArgs|1 tool_call_id 9|2 create_pr #0 action|3 update_pr #1 action|4 post_comment #2 action|5 resolve_comment #3 action|6 get_ci_status #4 action|7 set_pr_status #5 action|8 merge_pr #6 action|9 list_prs #7 action|10 get_pr #8 action",JJ,YJ,XJ,zJ,KJ,QJ,HJ,WJ,qJ]}};JJ=class JJ extends Z0{constructor(Z){super();this.title="",this.body="",this.branchName="",this.addLabels=[],v.util.initPartial(Z,this)}static fromBinary(Z,$){return new JJ().fromBinary(Z,$)}static fromJson(Z,$){return new JJ().fromJson(Z,$)}static fromJsonString(Z,$){return new JJ().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(JJ,Z,$)}static $(){return["CreatePrAction|1 title 9|2 body 9|3 base_branch 9?|4 draft 8?|5 branch_name 9|6 add_labels 9*|7 repo_url 9?|8 skip_branch_prefix_check 8?|9 stack_on_pr_number 3?"]}};YJ=class YJ extends Z0{constructor(Z){super();this.addLabels=[],this.removeLabels=[],v.util.initPartial(Z,this)}static fromBinary(Z,$){return new YJ().fromBinary(Z,$)}static fromJson(Z,$){return new YJ().fromJson(Z,$)}static fromJsonString(Z,$){return new YJ().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(YJ,Z,$)}static $(){return["UpdatePrAction|1 pr_url 9?|2 title 9?|3 body 9?|4 base_branch 9?|5 branch_name 9?|6 add_labels 9*|7 remove_labels 9*|8 repo_url 9?|9 stack_on_pr_number 3?|10 clear_stack 8?|11 draft 8?"]}};XJ=class XJ extends Z0{constructor(Z){super();this.body="",v.util.initPartial(Z,this)}static fromBinary(Z,$){return new XJ().fromBinary(Z,$)}static fromJson(Z,$){return new XJ().fromJson(Z,$)}static fromJsonString(Z,$){return new XJ().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(XJ,Z,$)}static $(){return["PostCommentAction|1 pr_url 9?|2 branch_name 9?|3 body 9|4 repo_url 9?|5 in_reply_to 3?|6 path 9?|7 line 5?|8 start_line 5?|9 side 9?|10 reply_to_reference 9?"]}};zJ=class zJ extends Z0{constructor(Z){super();this.commentId=tx.zero,v.util.initPartial(Z,this)}static fromBinary(Z,$){return new zJ().fromBinary(Z,$)}static fromJson(Z,$){return new zJ().fromJson(Z,$)}static fromJsonString(Z,$){return new zJ().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(zJ,Z,$)}static $(){return["ResolveCommentAction|1 pr_url 9?|2 branch_name 9?|3 comment_id 3|4 repo_url 9?|5 comment_reference 9?"]}};KJ=class KJ extends Z0{constructor(Z){super();v.util.initPartial(Z,this)}static fromBinary(Z,$){return new KJ().fromBinary(Z,$)}static fromJson(Z,$){return new KJ().fromJson(Z,$)}static fromJsonString(Z,$){return new KJ().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(KJ,Z,$)}static $(){return["GetCiStatusAction|1 pr_url 9?|2 branch_name 9?|3 repo_url 9?"]}};QJ=class QJ extends Z0{constructor(Z){super();this.status=mF.UNSPECIFIED,v.util.initPartial(Z,this)}static fromBinary(Z,$){return new QJ().fromBinary(Z,$)}static fromJson(Z,$){return new QJ().fromJson(Z,$)}static fromJsonString(Z,$){return new QJ().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(QJ,Z,$)}static $(){return["SetPrStatusAction|1 pr_url 9?|2 branch_name 9?|3 repo_url 9?|4 status #0",mF]}};HJ=class HJ extends Z0{constructor(Z){super();this.mode=vF.UNSPECIFIED,this.method=yF.UNSPECIFIED,this.expectedMemberHeadShas={},this.downstack=!1,v.util.initPartial(Z,this)}static fromBinary(Z,$){return new HJ().fromBinary(Z,$)}static fromJson(Z,$){return new HJ().fromJson(Z,$)}static fromJsonString(Z,$){return new HJ().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(HJ,Z,$)}static $(){return["MergePrAction|1 pr_url 9?|2 branch_name 9?|3 repo_url 9?|4 mode #0|5 method #1|6 expected_head_sha 9?|7 expected_member_head_shas 9,9|8 downstack 8",vF,yF]}};WJ=class WJ extends Z0{constructor(Z){super();v.util.initPartial(Z,this)}static fromBinary(Z,$){return new WJ().fromBinary(Z,$)}static fromJson(Z,$){return new WJ().fromJson(Z,$)}static fromJsonString(Z,$){return new WJ().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(WJ,Z,$)}static $(){return["ListPrsArgs|1 limit 5?"]}};qJ=class qJ extends Z0{constructor(Z){super();this.prUrl="",v.util.initPartial(Z,this)}static fromBinary(Z,$){return new qJ().fromBinary(Z,$)}static fromJson(Z,$){return new qJ().fromJson(Z,$)}static fromJsonString(Z,$){return new qJ().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(qJ,Z,$)}static $(){return["GetPrArgs|1 pr_url 9"]}};t8=class t8 extends Z0{constructor(Z){super();this.result={case:void 0},v.util.initPartial(Z,this)}static fromBinary(Z,$){return new t8().fromBinary(Z,$)}static fromJson(Z,$){return new t8().fromJson(Z,$)}static fromJsonString(Z,$){return new t8().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(t8,Z,$)}static $(){return["PrManagementResult|1 success #0 result|2 error #1 result|3 rejected #2 result|4 registered #3 result|5 needs_confirmation #4 result|6 read #5 result",BJ,FJ,GJ,LJ,DJ,NJ]}};NJ=class NJ extends Z0{constructor(Z){super();this.message="",v.util.initPartial(Z,this)}static fromBinary(Z,$){return new NJ().fromBinary(Z,$)}static fromJson(Z,$){return new NJ().fromJson(Z,$)}static fromJsonString(Z,$){return new NJ().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(NJ,Z,$)}static $(){return["PrManagementRead|1 message 9"]}};BJ=class BJ extends Z0{constructor(Z){super();this.prUrl="",this.prNumber=0,this.message="",v.util.initPartial(Z,this)}static fromBinary(Z,$){return new BJ().fromBinary(Z,$)}static fromJson(Z,$){return new BJ().fromJson(Z,$)}static fromJsonString(Z,$){return new BJ().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(BJ,Z,$)}static $(){return["PrManagementSuccess|1 pr_url 9|2 pr_number 5|3 message 9"]}};FJ=class FJ extends Z0{constructor(Z){super();this.error="",v.util.initPartial(Z,this)}static fromBinary(Z,$){return new FJ().fromBinary(Z,$)}static fromJson(Z,$){return new FJ().fromJson(Z,$)}static fromJsonString(Z,$){return new FJ().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(FJ,Z,$)}static $(){return["PrManagementError|1 error 9"]}};GJ=class GJ extends Z0{constructor(Z){super();this.reason="",v.util.initPartial(Z,this)}static fromBinary(Z,$){return new GJ().fromBinary(Z,$)}static fromJson(Z,$){return new GJ().fromJson(Z,$)}static fromJsonString(Z,$){return new GJ().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(GJ,Z,$)}static $(){return["PrManagementRejected|1 reason 9"]}};LJ=class LJ extends Z0{constructor(Z){super();this.message="",this.title="",this.body="",this.branchName="",v.util.initPartial(Z,this)}static fromBinary(Z,$){return new LJ().fromBinary(Z,$)}static fromJson(Z,$){return new LJ().fromJson(Z,$)}static fromJsonString(Z,$){return new LJ().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(LJ,Z,$)}static $(){return["PrManagementRegistered|1 message 9|2 title 9|3 body 9|4 base_branch 9?|5 draft 8?|6 branch_name 9"]}};DJ=class DJ extends Z0{constructor(Z){super();this.message="",this.discoveredPrUrl="",this.discoveredPrNumber=0,this.discoveredPrTitle="",this.branchName="",v.util.initPartial(Z,this)}static fromBinary(Z,$){return new DJ().fromBinary(Z,$)}static fromJson(Z,$){return new DJ().fromJson(Z,$)}static fromJsonString(Z,$){return new DJ().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(DJ,Z,$)}static $(){return["PrManagementNeedsConfirmation|1 message 9|2 discovered_pr_url 9|3 discovered_pr_number 5|4 discovered_pr_title 9|5 branch_name 9"]}};lZ=class lZ extends Z0{constructor(Z){super();v.util.initPartial(Z,this)}static fromBinary(Z,$){return new lZ().fromBinary(Z,$)}static fromJson(Z,$){return new lZ().fromJson(Z,$)}static fromJsonString(Z,$){return new lZ().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(lZ,Z,$)}static $(){return["PrManagementToolCall|1 args #0|2 result #1",$J,t8]}}});import{Message as qa,proto3 as $0}from"@bufbuild/protobuf";var ox="agent.v1.",U8,wJ,UJ,OJ,IJ,kJ,pZ,iZ,PJ,EJ;var _F=O(()=>{A();U8=class U8 extends G{static get runtime(){return F(this,"runtime",$0)}static $p(){return ox}};wJ=class wJ extends U8{constructor(Z){super();this.serverIdentifier="",this.toolCallId="",$0.util.initPartial(Z,this)}static fromBinary(Z,$){return new wJ().fromBinary(Z,$)}static fromJson(Z,$){return new wJ().fromJson(Z,$)}static fromJsonString(Z,$){return new wJ().fromJsonString(Z,$)}static equals(Z,$){return $0.util.equals(wJ,Z,$)}static $(){return["McpAuthArgs|1 server_identifier 9|2 tool_call_id 9"]}};UJ=class UJ extends U8{constructor(Z){super();this.result={case:void 0},$0.util.initPartial(Z,this)}static fromBinary(Z,$){return new UJ().fromBinary(Z,$)}static fromJson(Z,$){return new UJ().fromJson(Z,$)}static fromJsonString(Z,$){return new UJ().fromJsonString(Z,$)}static equals(Z,$){return $0.util.equals(UJ,Z,$)}static $(){return["McpAuthResult|1 success #0 result|2 error #1 result|3 rejected #2 result",OJ,IJ,kJ]}};OJ=class OJ extends U8{constructor(Z){super();this.serverIdentifier="",$0.util.initPartial(Z,this)}static fromBinary(Z,$){return new OJ().fromBinary(Z,$)}static fromJson(Z,$){return new OJ().fromJson(Z,$)}static fromJsonString(Z,$){return new OJ().fromJsonString(Z,$)}static equals(Z,$){return $0.util.equals(OJ,Z,$)}static $(){return["McpAuthSuccess|1 server_identifier 9"]}};IJ=class IJ extends U8{constructor(Z){super();this.error="",$0.util.initPartial(Z,this)}static fromBinary(Z,$){return new IJ().fromBinary(Z,$)}static fromJson(Z,$){return new IJ().fromJson(Z,$)}static fromJsonString(Z,$){return new IJ().fromJsonString(Z,$)}static equals(Z,$){return $0.util.equals(IJ,Z,$)}static $(){return["McpAuthError|1 error 9"]}};kJ=class kJ extends U8{constructor(Z){super();this.reason="",$0.util.initPartial(Z,this)}static fromBinary(Z,$){return new kJ().fromBinary(Z,$)}static fromJson(Z,$){return new kJ().fromJson(Z,$)}static fromJsonString(Z,$){return new kJ().fromJsonString(Z,$)}static equals(Z,$){return $0.util.equals(kJ,Z,$)}static $(){return["McpAuthRejected|1 reason 9"]}};pZ=class pZ extends U8{constructor(Z){super();$0.util.initPartial(Z,this)}static fromBinary(Z,$){return new pZ().fromBinary(Z,$)}static fromJson(Z,$){return new pZ().fromJson(Z,$)}static fromJsonString(Z,$){return new pZ().fromJsonString(Z,$)}static equals(Z,$){return $0.util.equals(pZ,Z,$)}static $(){return["McpAuthToolCall|1 args #0|2 result #1",wJ,UJ]}};iZ=class iZ extends U8{constructor(Z){super();this.result={case:void 0},$0.util.initPartial(Z,this)}static fromBinary(Z,$){return new iZ().fromBinary(Z,$)}static fromJson(Z,$){return new iZ().fromJson(Z,$)}static fromJsonString(Z,$){return new iZ().fromJsonString(Z,$)}static equals(Z,$){return $0.util.equals(iZ,Z,$)}static $(){return["McpAuthRequestResponse|1 approved #0 result|2 rejected #1 result",PJ,EJ]}};PJ=class PJ extends U8{constructor(Z){super();$0.util.initPartial(Z,this)}static fromBinary(Z,$){return new PJ().fromBinary(Z,$)}static fromJson(Z,$){return new PJ().fromJson(Z,$)}static fromJsonString(Z,$){return new PJ().fromJsonString(Z,$)}static equals(Z,$){return $0.util.equals(PJ,Z,$)}static $(){return["McpAuthRequestResponse.Approved"]}};EJ=class EJ extends U8{constructor(Z){super();this.reason="",$0.util.initPartial(Z,this)}static fromBinary(Z,$){return new EJ().fromBinary(Z,$)}static fromJson(Z,$){return new EJ().fromJson(Z,$)}static fromJsonString(Z,$){return new EJ().fromJsonString(Z,$)}static equals(Z,$){return $0.util.equals(EJ,Z,$)}static $(){return["McpAuthRequestResponse.Rejected|1 reason 9"]}}});import{Message as Ga,proto3 as D0,protoInt64 as JH}from"@bufbuild/protobuf";var ex="agent.v1.",o8,fJ,nZ,rZ,VJ,AJ,MJ,aZ;var SF=O(()=>{A();o8=class o8 extends G{static get runtime(){return F(this,"runtime",D0)}static $p(){return ex}};fJ=class fJ extends o8{constructor(Z){super();this.taskId="",D0.util.initPartial(Z,this)}static fromBinary(Z,$){return new fJ().fromBinary(Z,$)}static fromJson(Z,$){return new fJ().fromJson(Z,$)}static fromJsonString(Z,$){return new fJ().fromJsonString(Z,$)}static equals(Z,$){return D0.util.equals(fJ,Z,$)}static $(){return["AwaitArgs|1 task_id 9|2 block_until_ms 13?|3 regex 9?"]}};nZ=class nZ extends o8{constructor(Z){super();this.taskId="",this.runtimeMs=JH.zero,this.outputFilePath="",this.outputLength=JH.zero,this.regexRequested=!1,D0.util.initPartial(Z,this)}static fromBinary(Z,$){return new nZ().fromBinary(Z,$)}static fromJson(Z,$){return new nZ().fromJson(Z,$)}static fromJsonString(Z,$){return new nZ().fromJsonString(Z,$)}static equals(Z,$){return D0.util.equals(nZ,Z,$)}static $(){return["AwaitTaskComplete|1 task_id 9|2 runtime_ms 4|3 output_file_path 9|4 output_length 4|5 regex_requested 8|6 regex_match 9?|7 exit_code 17?|8 wake_reason 9?"]}};rZ=class rZ extends o8{constructor(Z){super();this.taskId="",this.runtimeMs=JH.zero,this.outputFilePath="",this.outputLength=JH.zero,this.regexRequested=!1,D0.util.initPartial(Z,this)}static fromBinary(Z,$){return new rZ().fromBinary(Z,$)}static fromJson(Z,$){return new rZ().fromJson(Z,$)}static fromJsonString(Z,$){return new rZ().fromJsonString(Z,$)}static equals(Z,$){return D0.util.equals(rZ,Z,$)}static $(){return["AwaitTaskStillRunning|1 task_id 9|2 runtime_ms 4|3 output_file_path 9|4 output_length 4|5 regex_requested 8|6 regex_match 9?|7 wake_reason 9?"]}};VJ=class VJ extends o8{constructor(Z){super();this.error="",D0.util.initPartial(Z,this)}static fromBinary(Z,$){return new VJ().fromBinary(Z,$)}static fromJson(Z,$){return new VJ().fromJson(Z,$)}static fromJsonString(Z,$){return new VJ().fromJsonString(Z,$)}static equals(Z,$){return D0.util.equals(VJ,Z,$)}static $(){return["AwaitError|1 error 9"]}};AJ=class AJ extends o8{constructor(Z){super();this.awaitResult={case:void 0},D0.util.initPartial(Z,this)}static fromBinary(Z,$){return new AJ().fromBinary(Z,$)}static fromJson(Z,$){return new AJ().fromJson(Z,$)}static fromJsonString(Z,$){return new AJ().fromJsonString(Z,$)}static equals(Z,$){return D0.util.equals(AJ,Z,$)}static $(){return["AwaitSuccess|1 complete #0 await_result|2 still_running #1 await_result",nZ,rZ]}};MJ=class MJ extends o8{constructor(Z){super();this.result={case:void 0},D0.util.initPartial(Z,this)}static fromBinary(Z,$){return new MJ().fromBinary(Z,$)}static fromJson(Z,$){return new MJ().fromJson(Z,$)}static fromJsonString(Z,$){return new MJ().fromJsonString(Z,$)}static equals(Z,$){return D0.util.equals(MJ,Z,$)}static $(){return["AwaitResult|1 complete #0 result|2 still_running #1 result|3 error #2 result|4 success #3 result",nZ,rZ,VJ,AJ]}};aZ=class aZ extends o8{constructor(Z){super();D0.util.initPartial(Z,this)}static fromBinary(Z,$){return new aZ().fromBinary(Z,$)}static fromJson(Z,$){return new aZ().fromJson(Z,$)}static fromJsonString(Z,$){return new aZ().fromJsonString(Z,$)}static equals(Z,$){return D0.util.equals(aZ,Z,$)}static $(){return["AwaitToolCall|1 args #0|2 result #1",fJ,MJ]}}});import{Message as Ua,proto3 as J8}from"@bufbuild/protobuf";var ZT="agent.v1.",RJ,xJ,TJ,CJ,hJ,sZ;var gF=O(()=>{A();RJ=class RJ extends G{static get runtime(){return F(this,"runtime",J8)}static $p(){return ZT}};xJ=class xJ extends RJ{constructor(Z){super();this.filePath="",J8.util.initPartial(Z,this)}static fromBinary(Z,$){return new xJ().fromBinary(Z,$)}static fromJson(Z,$){return new xJ().fromJson(Z,$)}static fromJsonString(Z,$){return new xJ().fromJsonString(Z,$)}static equals(Z,$){return J8.util.equals(xJ,Z,$)}static $(){return["BlameByFilePathArgs|1 file_path 9|2 start_line 5?|3 end_line 5?"]}};TJ=class TJ extends RJ{constructor(Z){super();this.content="",J8.util.initPartial(Z,this)}static fromBinary(Z,$){return new TJ().fromBinary(Z,$)}static fromJson(Z,$){return new TJ().fromJson(Z,$)}static fromJsonString(Z,$){return new TJ().fromJsonString(Z,$)}static equals(Z,$){return J8.util.equals(TJ,Z,$)}static $(){return["BlameByFilePathSuccess|1 content 9"]}};CJ=class CJ extends RJ{constructor(Z){super();this.errorMessage="",J8.util.initPartial(Z,this)}static fromBinary(Z,$){return new CJ().fromBinary(Z,$)}static fromJson(Z,$){return new CJ().fromJson(Z,$)}static fromJsonString(Z,$){return new CJ().fromJsonString(Z,$)}static equals(Z,$){return J8.util.equals(CJ,Z,$)}static $(){return["BlameByFilePathError|1 error_message 9"]}};hJ=class hJ extends RJ{constructor(Z){super();this.result={case:void 0},J8.util.initPartial(Z,this)}static fromBinary(Z,$){return new hJ().fromBinary(Z,$)}static fromJson(Z,$){return new hJ().fromJson(Z,$)}static fromJsonString(Z,$){return new hJ().fromJsonString(Z,$)}static equals(Z,$){return J8.util.equals(hJ,Z,$)}static $(){return["BlameByFilePathResult|1 success #0 result|2 error #1 result",TJ,CJ]}};sZ=class sZ extends RJ{constructor(Z){super();J8.util.initPartial(Z,this)}static fromBinary(Z,$){return new sZ().fromBinary(Z,$)}static fromJson(Z,$){return new sZ().fromJson(Z,$)}static fromJsonString(Z,$){return new sZ().fromJsonString(Z,$)}static equals(Z,$){return J8.util.equals(sZ,Z,$)}static $(){return["BlameByFilePathToolCall|1 args #0|2 result #1",xJ,hJ]}}});import{Message as Pa,proto3 as Y8}from"@bufbuild/protobuf";var $T="agent.v1.",_J,vJ,yJ,mJ,jJ,tZ;var bF=O(()=>{A();_J=class _J extends G{static get runtime(){return F(this,"runtime",Y8)}static $p(){return $T}};vJ=class vJ extends _J{constructor(Z){super();this.toolCallId="",Y8.util.initPartial(Z,this)}static fromBinary(Z,$){return new vJ().fromBinary(Z,$)}static fromJson(Z,$){return new vJ().fromJson(Z,$)}static fromJsonString(Z,$){return new vJ().fromJsonString(Z,$)}static equals(Z,$){return Y8.util.equals(vJ,Z,$)}static $(){return["GetMcpToolsArgs|1 server 9?|2 tool_name 9?|3 pattern 9?|4 tool_call_id 9"]}};yJ=class yJ extends _J{constructor(Z){super();this.result={case:void 0},Y8.util.initPartial(Z,this)}static fromBinary(Z,$){return new yJ().fromBinary(Z,$)}static fromJson(Z,$){return new yJ().fromJson(Z,$)}static fromJsonString(Z,$){return new yJ().fromJsonString(Z,$)}static equals(Z,$){return Y8.util.equals(yJ,Z,$)}static $(){return["GetMcpToolsAgentResult|1 success #0 result|2 error #1 result",mJ,jJ]}};mJ=class mJ extends _J{constructor(Z){super();this.content="",Y8.util.initPartial(Z,this)}static fromBinary(Z,$){return new mJ().fromBinary(Z,$)}static fromJson(Z,$){return new mJ().fromJson(Z,$)}static fromJsonString(Z,$){return new mJ().fromJsonString(Z,$)}static equals(Z,$){return Y8.util.equals(mJ,Z,$)}static $(){return["GetMcpToolsSuccess|1 content 9|2 output_file_path 9?"]}};jJ=class jJ extends _J{constructor(Z){super();this.error="",Y8.util.initPartial(Z,this)}static fromBinary(Z,$){return new jJ().fromBinary(Z,$)}static fromJson(Z,$){return new jJ().fromJson(Z,$)}static fromJsonString(Z,$){return new jJ().fromJsonString(Z,$)}static equals(Z,$){return Y8.util.equals(jJ,Z,$)}static $(){return["GetMcpToolsError|1 error 9"]}};tZ=class tZ extends _J{constructor(Z){super();Y8.util.initPartial(Z,this)}static fromBinary(Z,$){return new tZ().fromBinary(Z,$)}static fromJson(Z,$){return new tZ().fromJson(Z,$)}static fromJsonString(Z,$){return new tZ().fromJsonString(Z,$)}static equals(Z,$){return Y8.util.equals(tZ,Z,$)}static $(){return["GetMcpToolsToolCall|1 args #0|2 result #1",vJ,yJ]}}});import{Message as Aa,proto3 as X8}from"@bufbuild/protobuf";var JT="agent.v1.",dJ,SJ,gJ,bJ,cJ,oZ;var cF=O(()=>{A();dJ=class dJ extends G{static get runtime(){return F(this,"runtime",X8)}static $p(){return JT}};SJ=class SJ extends dJ{constructor(Z){super();this.title="",this.file="",this.startLine=0,this.endLine=0,this.description="",this.severity="",this.category="",this.rationale="",X8.util.initPartial(Z,this)}static fromBinary(Z,$){return new SJ().fromBinary(Z,$)}static fromJson(Z,$){return new SJ().fromJson(Z,$)}static fromJsonString(Z,$){return new SJ().fromJsonString(Z,$)}static equals(Z,$){return X8.util.equals(SJ,Z,$)}static $(){return["ReportBugArgs|1 title 9|2 file 9|3 start_line 5|4 end_line 5|5 description 9|6 severity 9|7 category 9|8 rationale 9"]}};gJ=class gJ extends dJ{constructor(Z){super();this.output="",X8.util.initPartial(Z,this)}static fromBinary(Z,$){return new gJ().fromBinary(Z,$)}static fromJson(Z,$){return new gJ().fromJson(Z,$)}static fromJsonString(Z,$){return new gJ().fromJsonString(Z,$)}static equals(Z,$){return X8.util.equals(gJ,Z,$)}static $(){return["ReportBugSuccess|1 output 9"]}};bJ=class bJ extends dJ{constructor(Z){super();this.errorMessage="",X8.util.initPartial(Z,this)}static fromBinary(Z,$){return new bJ().fromBinary(Z,$)}static fromJson(Z,$){return new bJ().fromJson(Z,$)}static fromJsonString(Z,$){return new bJ().fromJsonString(Z,$)}static equals(Z,$){return X8.util.equals(bJ,Z,$)}static $(){return["ReportBugError|1 error_message 9"]}};cJ=class cJ extends dJ{constructor(Z){super();this.result={case:void 0},X8.util.initPartial(Z,this)}static fromBinary(Z,$){return new cJ().fromBinary(Z,$)}static fromJson(Z,$){return new cJ().fromJson(Z,$)}static fromJsonString(Z,$){return new cJ().fromJsonString(Z,$)}static equals(Z,$){return X8.util.equals(cJ,Z,$)}static $(){return["ReportBugResult|1 success #0 result|2 error #1 result",gJ,bJ]}};oZ=class oZ extends dJ{constructor(Z){super();X8.util.initPartial(Z,this)}static fromBinary(Z,$){return new oZ().fromBinary(Z,$)}static fromJson(Z,$){return new oZ().fromJson(Z,$)}static fromJsonString(Z,$){return new oZ().fromJsonString(Z,$)}static equals(Z,$){return X8.util.equals(oZ,Z,$)}static $(){return["ReportBugToolCall|1 args #0|2 result #1",SJ,cJ]}}});import{Message as Ca,proto3 as z8}from"@bufbuild/protobuf";var YT="agent.v1.",nJ,uJ,lJ,pJ,iJ,eZ;var dF=O(()=>{A();nJ=class nJ extends G{static get runtime(){return F(this,"runtime",z8)}static $p(){return YT}};uJ=class uJ extends nJ{constructor(Z){super();z8.util.initPartial(Z,this)}static fromBinary(Z,$){return new uJ().fromBinary(Z,$)}static fromJson(Z,$){return new uJ().fromJson(Z,$)}static fromJsonString(Z,$){return new uJ().fromJsonString(Z,$)}static equals(Z,$){return z8.util.equals(uJ,Z,$)}static $(){return["CommunicateUpdateArgs|1 current_step 9?|3 final_summary 9?|4 completed_subtitle 9?"]}};lJ=class lJ extends nJ{constructor(Z){super();this.currentStep="",this.messageIndex=0,z8.util.initPartial(Z,this)}static fromBinary(Z,$){return new lJ().fromBinary(Z,$)}static fromJson(Z,$){return new lJ().fromJson(Z,$)}static fromJsonString(Z,$){return new lJ().fromJsonString(Z,$)}static equals(Z,$){return z8.util.equals(lJ,Z,$)}static $(){return["CommunicateUpdateSuccess|1 current_step 9|3 message_index 13"]}};pJ=class pJ extends nJ{constructor(Z){super();this.error="",z8.util.initPartial(Z,this)}static fromBinary(Z,$){return new pJ().fromBinary(Z,$)}static fromJson(Z,$){return new pJ().fromJson(Z,$)}static fromJsonString(Z,$){return new pJ().fromJsonString(Z,$)}static equals(Z,$){return z8.util.equals(pJ,Z,$)}static $(){return["CommunicateUpdateError|1 error 9"]}};iJ=class iJ extends nJ{constructor(Z){super();this.result={case:void 0},z8.util.initPartial(Z,this)}static fromBinary(Z,$){return new iJ().fromBinary(Z,$)}static fromJson(Z,$){return new iJ().fromJson(Z,$)}static fromJsonString(Z,$){return new iJ().fromJsonString(Z,$)}static equals(Z,$){return z8.util.equals(iJ,Z,$)}static $(){return["CommunicateUpdateResult|1 success #0 result|2 error #1 result",lJ,pJ]}};eZ=class eZ extends nJ{constructor(Z){super();z8.util.initPartial(Z,this)}static fromBinary(Z,$){return new eZ().fromBinary(Z,$)}static fromJson(Z,$){return new eZ().fromJson(Z,$)}static fromJsonString(Z,$){return new eZ().fromJsonString(Z,$)}static equals(Z,$){return z8.util.equals(eZ,Z,$)}static $(){return["CommunicateUpdateToolCall|1 args #0|2 result #1",uJ,iJ]}}});import{Message as ya,proto3 as K8}from"@bufbuild/protobuf";var XT="agent.v1.",oJ,rJ,aJ,sJ,tJ,Z$;var uF=O(()=>{A();oJ=class oJ extends G{static get runtime(){return F(this,"runtime",K8)}static $p(){return XT}};rJ=class rJ extends oJ{constructor(Z){super();K8.util.initPartial(Z,this)}static fromBinary(Z,$){return new rJ().fromBinary(Z,$)}static fromJson(Z,$){return new rJ().fromJson(Z,$)}static fromJsonString(Z,$){return new rJ().fromJsonString(Z,$)}static equals(Z,$){return K8.util.equals(rJ,Z,$)}static $(){return["SendFinalSummaryArgs|1 final_summary 9?"]}};aJ=class aJ extends oJ{constructor(Z){super();this.finalSummary="",K8.util.initPartial(Z,this)}static fromBinary(Z,$){return new aJ().fromBinary(Z,$)}static fromJson(Z,$){return new aJ().fromJson(Z,$)}static fromJsonString(Z,$){return new aJ().fromJsonString(Z,$)}static equals(Z,$){return K8.util.equals(aJ,Z,$)}static $(){return["SendFinalSummarySuccess|1 final_summary 9"]}};sJ=class sJ extends oJ{constructor(Z){super();this.error="",K8.util.initPartial(Z,this)}static fromBinary(Z,$){return new sJ().fromBinary(Z,$)}static fromJson(Z,$){return new sJ().fromJson(Z,$)}static fromJsonString(Z,$){return new sJ().fromJsonString(Z,$)}static equals(Z,$){return K8.util.equals(sJ,Z,$)}static $(){return["SendFinalSummaryError|1 error 9"]}};tJ=class tJ extends oJ{constructor(Z){super();this.result={case:void 0},K8.util.initPartial(Z,this)}static fromBinary(Z,$){return new tJ().fromBinary(Z,$)}static fromJson(Z,$){return new tJ().fromJson(Z,$)}static fromJsonString(Z,$){return new tJ().fromJsonString(Z,$)}static equals(Z,$){return K8.util.equals(tJ,Z,$)}static $(){return["SendFinalSummaryResult|1 success #0 result|2 error #1 result",aJ,sJ]}};Z$=class Z$ extends oJ{constructor(Z){super();K8.util.initPartial(Z,this)}static fromBinary(Z,$){return new Z$().fromBinary(Z,$)}static fromJson(Z,$){return new Z$().fromJson(Z,$)}static fromJsonString(Z,$){return new Z$().fromJsonString(Z,$)}static equals(Z,$){return K8.util.equals(Z$,Z,$)}static $(){return["SendFinalSummaryToolCall|1 args #0|2 result #1",rJ,tJ]}}});import{Message as Sa,proto3 as H0}from"@bufbuild/protobuf";var pF="agent.v1.",Z6,lF,eJ,ZY,$$,$Y,JY,e8,J$;var iF=O(()=>{A();Z6=class Z6 extends G{static get runtime(){return F(this,"runtime",H0)}static $p(){return pF}};lF=w(H0,pF,"ReplaceEnvMode",[[0,"UNSPECIFIED"],[1,"CUSTOM"],[2,"CLEAN_SLATE"],[3,"DEFAULT"]],1);eJ=class eJ extends Z6{constructor(Z){super();this.repoUrl="",this.ref="",H0.util.initPartial(Z,this)}static fromBinary(Z,$){return new eJ().fromBinary(Z,$)}static fromJson(Z,$){return new eJ().fromJson(Z,$)}static fromJsonString(Z,$){return new eJ().fromJsonString(Z,$)}static equals(Z,$){return H0.util.equals(eJ,Z,$)}static $(){return["RepoCheckoutRefOverride|1 repo_url 9|2 ref 9"]}};ZY=class ZY extends Z6{constructor(Z){super();this.installScript="",this.dockerfileContents="",H0.util.initPartial(Z,this)}static fromBinary(Z,$){return new ZY().fromBinary(Z,$)}static fromJson(Z,$){return new ZY().fromJson(Z,$)}static fromJsonString(Z,$){return new ZY().fromJsonString(Z,$)}static equals(Z,$){return H0.util.equals(ZY,Z,$)}static $(){return["ReplaceEnvConfig|1 install_script 9|2 dockerfile_contents 9"]}};$$=class $$ extends Z6{constructor(Z){super();this.mode=lF.UNSPECIFIED,this.checkoutRefOverrides=[],H0.util.initPartial(Z,this)}static fromBinary(Z,$){return new $$().fromBinary(Z,$)}static fromJson(Z,$){return new $$().fromJson(Z,$)}static fromJsonString(Z,$){return new $$().fromJsonString(Z,$)}static equals(Z,$){return H0.util.equals($$,Z,$)}static $(){return["ReplaceEnvArgs|1 config #0|2 mode #1|3 checkout_ref_overrides #2*",ZY,lF,eJ]}};$Y=class $Y extends Z6{constructor(Z){super();this.setupLogs="",H0.util.initPartial(Z,this)}static fromBinary(Z,$){return new $Y().fromBinary(Z,$)}static fromJson(Z,$){return new $Y().fromJson(Z,$)}static fromJsonString(Z,$){return new $Y().fromJsonString(Z,$)}static equals(Z,$){return H0.util.equals($Y,Z,$)}static $(){return["ReplaceEnvSuccess|1 setup_logs 9"]}};JY=class JY extends Z6{constructor(Z){super();this.errorMessage="",this.setupLogs="",H0.util.initPartial(Z,this)}static fromBinary(Z,$){return new JY().fromBinary(Z,$)}static fromJson(Z,$){return new JY().fromJson(Z,$)}static fromJsonString(Z,$){return new JY().fromJsonString(Z,$)}static equals(Z,$){return H0.util.equals(JY,Z,$)}static $(){return["ReplaceEnvFailure|1 error_message 9|2 setup_logs 9"]}};e8=class e8 extends Z6{constructor(Z){super();this.result={case:void 0},H0.util.initPartial(Z,this)}static fromBinary(Z,$){return new e8().fromBinary(Z,$)}static fromJson(Z,$){return new e8().fromJson(Z,$)}static fromJsonString(Z,$){return new e8().fromJsonString(Z,$)}static equals(Z,$){return H0.util.equals(e8,Z,$)}static $(){return["ReplaceEnvResult|1 success #0 result|2 failure #1 result",$Y,JY]}};J$=class J$ extends Z6{constructor(Z){super();this.associatedPodKey="",H0.util.initPartial(Z,this)}static fromBinary(Z,$){return new J$().fromBinary(Z,$)}static fromJson(Z,$){return new J$().fromJson(Z,$)}static fromJsonString(Z,$){return new J$().fromJsonString(Z,$)}static equals(Z,$){return H0.util.equals(J$,Z,$)}static $(){return["ReplaceEnvToolCall|1 args #0|2 result #1|3 associated_pod_key 9",$$,e8]}}});import{Message as da,proto3 as Q8}from"@bufbuild/protobuf";var zT="agent.v1.",QY,YY,XY,zY,KY,Y$;var nF=O(()=>{A();QY=class QY extends G{static get runtime(){return F(this,"runtime",Q8)}static $p(){return zT}};YY=class YY extends QY{constructor(Z){super();this.toolCallId="",this.prUrl="",this.addLabels=[],this.removeLabels=[],Q8.util.initPartial(Z,this)}static fromBinary(Z,$){return new YY().fromBinary(Z,$)}static fromJson(Z,$){return new YY().fromJson(Z,$)}static fromJsonString(Z,$){return new YY().fromJsonString(Z,$)}static equals(Z,$){return Q8.util.equals(YY,Z,$)}static $(){return["EditPrLabelsArgs|1 tool_call_id 9|2 pr_url 9|4 add_labels 9*|5 remove_labels 9*"]}};XY=class XY extends QY{constructor(Z){super();this.result={case:void 0},Q8.util.initPartial(Z,this)}static fromBinary(Z,$){return new XY().fromBinary(Z,$)}static fromJson(Z,$){return new XY().fromJson(Z,$)}static fromJsonString(Z,$){return new XY().fromJsonString(Z,$)}static equals(Z,$){return Q8.util.equals(XY,Z,$)}static $(){return["EditPrLabelsResult|1 success #0 result|2 error #1 result",zY,KY]}};zY=class zY extends QY{constructor(Z){super();this.prUrl="",this.prNumber=0,this.message="",Q8.util.initPartial(Z,this)}static fromBinary(Z,$){return new zY().fromBinary(Z,$)}static fromJson(Z,$){return new zY().fromJson(Z,$)}static fromJsonString(Z,$){return new zY().fromJsonString(Z,$)}static equals(Z,$){return Q8.util.equals(zY,Z,$)}static $(){return["EditPrLabelsSuccess|1 pr_url 9|2 pr_number 5|3 message 9"]}};KY=class KY extends QY{constructor(Z){super();this.error="",Q8.util.initPartial(Z,this)}static fromBinary(Z,$){return new KY().fromBinary(Z,$)}static fromJson(Z,$){return new KY().fromJson(Z,$)}static fromJsonString(Z,$){return new KY().fromJsonString(Z,$)}static equals(Z,$){return Q8.util.equals(KY,Z,$)}static $(){return["EditPrLabelsError|1 error 9"]}};Y$=class Y$ extends QY{constructor(Z){super();Q8.util.initPartial(Z,this)}static fromBinary(Z,$){return new Y$().fromBinary(Z,$)}static fromJson(Z,$){return new Y$().fromJson(Z,$)}static fromJsonString(Z,$){return new Y$().fromJsonString(Z,$)}static equals(Z,$){return Q8.util.equals(Y$,Z,$)}static $(){return["EditPrLabelsToolCall|1 args #0|2 result #1",YY,XY]}}});import{Message as ia,proto3 as w0}from"@bufbuild/protobuf";var KT="agent.v1.",$6,HY,WY,qY,NY,BY,FY,X$;var rF=O(()=>{A();$6=class $6 extends G{static get runtime(){return F(this,"runtime",w0)}static $p(){return KT}};HY=class HY extends $6{constructor(Z){super();this.checkName="",this.tldr="",w0.util.initPartial(Z,this)}static fromBinary(Z,$){return new HY().fromBinary(Z,$)}static fromJson(Z,$){return new HY().fromJson(Z,$)}static fromJsonString(Z,$){return new HY().fromJsonString(Z,$)}static equals(Z,$){return w0.util.equals(HY,Z,$)}static $(){return["RecordCiInvestigationFinding|1 check_name 9|2 details_url 9?|3 tldr 9|4 root_cause 9?|5 failing_signal 9?|6 suggested_next_step 9?|7 diff_relation 9?|8 diff_relation_evidence 9?|9 flake_assessment 9?|10 flake_evidence 9?|11 rerun_available 8?|12 rerun_evidence 9?|13 recommended_action 9?|14 recommended_action_evidence 9?|15 confidence 9?"]}};WY=class WY extends $6{constructor(Z){super();this.summary="",this.themes=[],this.checkKeys=[],w0.util.initPartial(Z,this)}static fromBinary(Z,$){return new WY().fromBinary(Z,$)}static fromJson(Z,$){return new WY().fromJson(Z,$)}static fromJsonString(Z,$){return new WY().fromJsonString(Z,$)}static equals(Z,$){return w0.util.equals(WY,Z,$)}static $(){return["RecordCiInvestigationOverall|1 summary 9|2 themes 9*|3 recommended_action 9?|4 recommended_action_evidence 9?|5 check_keys 9*"]}};qY=class qY extends $6{constructor(Z){super();this.findings=[],this.toolCallId="",w0.util.initPartial(Z,this)}static fromBinary(Z,$){return new qY().fromBinary(Z,$)}static fromJson(Z,$){return new qY().fromJson(Z,$)}static fromJsonString(Z,$){return new qY().fromJsonString(Z,$)}static equals(Z,$){return w0.util.equals(qY,Z,$)}static $(){return["RecordCiInvestigationFindingsArgs|1 findings #0*|2 overall #1?|3 tool_call_id 9",HY,WY]}};NY=class NY extends $6{constructor(Z){super();this.message="",w0.util.initPartial(Z,this)}static fromBinary(Z,$){return new NY().fromBinary(Z,$)}static fromJson(Z,$){return new NY().fromJson(Z,$)}static fromJsonString(Z,$){return new NY().fromJsonString(Z,$)}static equals(Z,$){return w0.util.equals(NY,Z,$)}static $(){return["RecordCiInvestigationFindingsSuccess|1 message 9"]}};BY=class BY extends $6{constructor(Z){super();this.error="",w0.util.initPartial(Z,this)}static fromBinary(Z,$){return new BY().fromBinary(Z,$)}static fromJson(Z,$){return new BY().fromJson(Z,$)}static fromJsonString(Z,$){return new BY().fromJsonString(Z,$)}static equals(Z,$){return w0.util.equals(BY,Z,$)}static $(){return["RecordCiInvestigationFindingsError|1 error 9"]}};FY=class FY extends $6{constructor(Z){super();this.result={case:void 0},w0.util.initPartial(Z,this)}static fromBinary(Z,$){return new FY().fromBinary(Z,$)}static fromJson(Z,$){return new FY().fromJson(Z,$)}static fromJsonString(Z,$){return new FY().fromJsonString(Z,$)}static equals(Z,$){return w0.util.equals(FY,Z,$)}static $(){return["RecordCiInvestigationFindingsResult|1 success #0 result|2 error #1 result",NY,BY]}};X$=class X$ extends $6{constructor(Z){super();w0.util.initPartial(Z,this)}static fromBinary(Z,$){return new X$().fromBinary(Z,$)}static fromJson(Z,$){return new X$().fromJson(Z,$)}static fromJsonString(Z,$){return new X$().fromJsonString(Z,$)}static equals(Z,$){return w0.util.equals(X$,Z,$)}static $(){return["RecordCiInvestigationFindingsToolCall|1 args #0|2 result #1",qY,FY]}}});import{Message as sa,proto3 as U0,protoInt64 as QT}from"@bufbuild/protobuf";var HT="agent.v1.",J6,GY,LY,DY,wY,UY,OY,z$;var aF=O(()=>{A();J6=class J6 extends G{static get runtime(){return F(this,"runtime",U0)}static $p(){return HT}};GY=class GY extends J6{constructor(Z){super();this.content="",U0.util.initPartial(Z,this)}static fromBinary(Z,$){return new GY().fromBinary(Z,$)}static fromJson(Z,$){return new GY().fromJson(Z,$)}static fromJsonString(Z,$){return new GY().fromJsonString(Z,$)}static equals(Z,$){return U0.util.equals(GY,Z,$)}static $(){return["SendMessageText|1 content 9"]}};LY=class LY extends J6{constructor(Z){super();this.url="",U0.util.initPartial(Z,this)}static fromBinary(Z,$){return new LY().fromBinary(Z,$)}static fromJson(Z,$){return new LY().fromJson(Z,$)}static fromJsonString(Z,$){return new LY().fromJsonString(Z,$)}static equals(Z,$){return U0.util.equals(LY,Z,$)}static $(){return["SendMessageAttachment|1 url 9|2 alt 9?"]}};DY=class DY extends J6{constructor(Z){super();this.message={case:void 0},U0.util.initPartial(Z,this)}static fromBinary(Z,$){return new DY().fromBinary(Z,$)}static fromJson(Z,$){return new DY().fromJson(Z,$)}static fromJsonString(Z,$){return new DY().fromJsonString(Z,$)}static equals(Z,$){return U0.util.equals(DY,Z,$)}static $(){return["SendMessageArgs|1 text #0 message|2 attachment #1 message|3 reply_to 9?|4 replace_previous_message 8?",GY,LY]}};wY=class wY extends J6{constructor(Z){super();this.timestamp=QT.zero,this.messageId="",U0.util.initPartial(Z,this)}static fromBinary(Z,$){return new wY().fromBinary(Z,$)}static fromJson(Z,$){return new wY().fromJson(Z,$)}static fromJsonString(Z,$){return new wY().fromJsonString(Z,$)}static equals(Z,$){return U0.util.equals(wY,Z,$)}static $(){return["SendMessageSuccess|1 timestamp 4|2 message_id 9"]}};UY=class UY extends J6{constructor(Z){super();this.error="",U0.util.initPartial(Z,this)}static fromBinary(Z,$){return new UY().fromBinary(Z,$)}static fromJson(Z,$){return new UY().fromJson(Z,$)}static fromJsonString(Z,$){return new UY().fromJsonString(Z,$)}static equals(Z,$){return U0.util.equals(UY,Z,$)}static $(){return["SendMessageError|1 error 9"]}};OY=class OY extends J6{constructor(Z){super();this.result={case:void 0},U0.util.initPartial(Z,this)}static fromBinary(Z,$){return new OY().fromBinary(Z,$)}static fromJson(Z,$){return new OY().fromJson(Z,$)}static fromJsonString(Z,$){return new OY().fromJsonString(Z,$)}static equals(Z,$){return U0.util.equals(OY,Z,$)}static $(){return["SendMessageResult|1 success #0 result|2 error #1 result",wY,UY]}};z$=class z$ extends J6{constructor(Z){super();U0.util.initPartial(Z,this)}static fromBinary(Z,$){return new z$().fromBinary(Z,$)}static fromJson(Z,$){return new z$().fromJson(Z,$)}static fromJsonString(Z,$){return new z$().fromJsonString(Z,$)}static equals(Z,$){return U0.util.equals(z$,Z,$)}static $(){return["SendMessageToolCall|1 args #0|2 result #1",DY,OY]}}});import{Message as Zs,proto3 as H8}from"@bufbuild/protobuf";var WT="agent.v1.",fY,IY,kY,PY,EY,K$;var sF=O(()=>{A();fY=class fY extends G{static get runtime(){return F(this,"runtime",H8)}static $p(){return WT}};IY=class IY extends fY{constructor(Z){super();this.bcIds=[],this.sources=[],this.statuses=[],this.includeTeamWide=!1,this.includeArchived=!1,this.includeTranscript=!1,this.activeSince="",H8.util.initPartial(Z,this)}static fromBinary(Z,$){return new IY().fromBinary(Z,$)}static fromJson(Z,$){return new IY().fromJson(Z,$)}static fromJsonString(Z,$){return new IY().fromJsonString(Z,$)}static equals(Z,$){return H8.util.equals(IY,Z,$)}static $(){return["FetchCloudAgentDataArgs|4 bc_ids 9*|6 sources 9*|7 statuses 9*|8 include_team_wide 8|9 include_archived 8|10 limit 5?|12 include_transcript 8|13 active_since 9"]}};kY=class kY extends fY{constructor(Z){super();this.result={case:void 0},H8.util.initPartial(Z,this)}static fromBinary(Z,$){return new kY().fromBinary(Z,$)}static fromJson(Z,$){return new kY().fromJson(Z,$)}static fromJsonString(Z,$){return new kY().fromJsonString(Z,$)}static equals(Z,$){return H8.util.equals(kY,Z,$)}static $(){return["FetchCloudAgentDataResult|1 success #0 result|2 error #1 result",PY,EY]}};PY=class PY extends fY{constructor(Z){super();this.summary="",this.agentCount=0,this.writtenPaths=[],this.unavailableBcIds=[],H8.util.initPartial(Z,this)}static fromBinary(Z,$){return new PY().fromBinary(Z,$)}static fromJson(Z,$){return new PY().fromJson(Z,$)}static fromJsonString(Z,$){return new PY().fromJsonString(Z,$)}static equals(Z,$){return H8.util.equals(PY,Z,$)}static $(){return["FetchCloudAgentDataSuccess|1 summary 9|2 agent_count 5|3 written_paths 9*|4 unavailable_bc_ids 9*"]}};EY=class EY extends fY{constructor(Z){super();this.error="",H8.util.initPartial(Z,this)}static fromBinary(Z,$){return new EY().fromBinary(Z,$)}static fromJson(Z,$){return new EY().fromJson(Z,$)}static fromJsonString(Z,$){return new EY().fromJsonString(Z,$)}static equals(Z,$){return H8.util.equals(EY,Z,$)}static $(){return["FetchCloudAgentDataError|1 error 9"]}};K$=class K$ extends fY{constructor(Z){super();H8.util.initPartial(Z,this)}static fromBinary(Z,$){return new K$().fromBinary(Z,$)}static fromJson(Z,$){return new K$().fromJson(Z,$)}static fromJsonString(Z,$){return new K$().fromJsonString(Z,$)}static equals(Z,$){return H8.util.equals(K$,Z,$)}static $(){return["FetchCloudAgentDataToolCall|1 args #0|2 result #1",IY,kY]}}});import{Message as Xs,proto3 as W8}from"@bufbuild/protobuf";var qT="agent.v1.",TY,VY,AY,MY,xY,Q$;var tF=O(()=>{A();TY=class TY extends G{static get runtime(){return F(this,"runtime",W8)}static $p(){return qT}};VY=class VY extends TY{constructor(Z){super();this.message="",W8.util.initPartial(Z,this)}static fromBinary(Z,$){return new VY().fromBinary(Z,$)}static fromJson(Z,$){return new VY().fromJson(Z,$)}static fromJsonString(Z,$){return new VY().fromJsonString(Z,$)}static equals(Z,$){return W8.util.equals(VY,Z,$)}static $(){return["SendToUserArgs|1 message 9"]}};AY=class AY extends TY{constructor(Z){super();W8.util.initPartial(Z,this)}static fromBinary(Z,$){return new AY().fromBinary(Z,$)}static fromJson(Z,$){return new AY().fromJson(Z,$)}static fromJsonString(Z,$){return new AY().fromJsonString(Z,$)}static equals(Z,$){return W8.util.equals(AY,Z,$)}static $(){return["SendToUserSuccess"]}};MY=class MY extends TY{constructor(Z){super();this.error="",W8.util.initPartial(Z,this)}static fromBinary(Z,$){return new MY().fromBinary(Z,$)}static fromJson(Z,$){return new MY().fromJson(Z,$)}static fromJsonString(Z,$){return new MY().fromJsonString(Z,$)}static equals(Z,$){return W8.util.equals(MY,Z,$)}static $(){return["SendToUserError|1 error 9"]}};xY=class xY extends TY{constructor(Z){super();this.result={case:void 0},W8.util.initPartial(Z,this)}static fromBinary(Z,$){return new xY().fromBinary(Z,$)}static fromJson(Z,$){return new xY().fromJson(Z,$)}static fromJsonString(Z,$){return new xY().fromJsonString(Z,$)}static equals(Z,$){return W8.util.equals(xY,Z,$)}static $(){return["SendToUserResult|1 success #0 result|2 error #1 result",AY,MY]}};Q$=class Q$ extends TY{constructor(Z){super();W8.util.initPartial(Z,this)}static fromBinary(Z,$){return new Q$().fromBinary(Z,$)}static fromJson(Z,$){return new Q$().fromJson(Z,$)}static fromJsonString(Z,$){return new Q$().fromJsonString(Z,$)}static equals(Z,$){return W8.util.equals(Q$,Z,$)}static $(){return["SendToUserToolCall|1 args #0|2 result #1",VY,xY]}}});import{Message as Hs,proto3 as j}from"@bufbuild/protobuf";var NT="agent.v1.",W0,H$,CY,hY,RY,vY,yY,mY,jY,_Y,SY,W$,q$,gY,bY,cY;var oF=O(()=>{A();W0=class W0 extends G{static get runtime(){return F(this,"runtime",j)}static $p(){return NT}};H$=class H$ extends W0{constructor(Z){super();this.toolCallId="",this.target={case:void 0},j.util.initPartial(Z,this)}static fromBinary(Z,$){return new H$().fromBinary(Z,$)}static fromJson(Z,$){return new H$().fromJson(Z,$)}static fromJsonString(Z,$){return new H$().fromJsonString(Z,$)}static equals(Z,$){return j.util.equals(H$,Z,$)}static $(){return["ConnectScmArgs|1 tool_call_id 9|2 github #0 target|3 gitlab #1 target|4 bitbucket #2 target|5 azure_devops #3 target|6 reconnect 8?|7 repo_url 9?|8 instance_host 9?",vY,CY,hY,RY]}};CY=class CY extends W0{constructor(Z){super();j.util.initPartial(Z,this)}static fromBinary(Z,$){return new CY().fromBinary(Z,$)}static fromJson(Z,$){return new CY().fromJson(Z,$)}static fromJsonString(Z,$){return new CY().fromJsonString(Z,$)}static equals(Z,$){return j.util.equals(CY,Z,$)}static $(){return["ConnectScmGitlab|1 instance_id 9?"]}};hY=class hY extends W0{constructor(Z){super();j.util.initPartial(Z,this)}static fromBinary(Z,$){return new hY().fromBinary(Z,$)}static fromJson(Z,$){return new hY().fromJson(Z,$)}static fromJsonString(Z,$){return new hY().fromJsonString(Z,$)}static equals(Z,$){return j.util.equals(hY,Z,$)}static $(){return["ConnectScmBitbucket|1 instance_id 9?"]}};RY=class RY extends W0{constructor(Z){super();j.util.initPartial(Z,this)}static fromBinary(Z,$){return new RY().fromBinary(Z,$)}static fromJson(Z,$){return new RY().fromJson(Z,$)}static fromJsonString(Z,$){return new RY().fromJsonString(Z,$)}static equals(Z,$){return j.util.equals(RY,Z,$)}static $(){return["ConnectScmAzureDevops"]}};vY=class vY extends W0{constructor(Z){super();j.util.initPartial(Z,this)}static fromBinary(Z,$){return new vY().fromBinary(Z,$)}static fromJson(Z,$){return new vY().fromJson(Z,$)}static fromJsonString(Z,$){return new vY().fromJsonString(Z,$)}static equals(Z,$){return j.util.equals(vY,Z,$)}static $(){return["ConnectScmGithub|1 repository #0|2 ghe_application 9?",yY]}};yY=class yY extends W0{constructor(Z){super();this.owner="",this.repo="",j.util.initPartial(Z,this)}static fromBinary(Z,$){return new yY().fromBinary(Z,$)}static fromJson(Z,$){return new yY().fromJson(Z,$)}static fromJsonString(Z,$){return new yY().fromJsonString(Z,$)}static equals(Z,$){return j.util.equals(yY,Z,$)}static $(){return["ConnectScmGithubRepository|1 owner 9|2 repo 9"]}};mY=class mY extends W0{constructor(Z){super();this.result={case:void 0},j.util.initPartial(Z,this)}static fromBinary(Z,$){return new mY().fromBinary(Z,$)}static fromJson(Z,$){return new mY().fromJson(Z,$)}static fromJsonString(Z,$){return new mY().fromJsonString(Z,$)}static equals(Z,$){return j.util.equals(mY,Z,$)}static $(){return["ConnectScmResult|1 success #0 result|2 error #1 result|3 rejected #2 result|4 scm_target 9?",jY,_Y,SY]}};jY=class jY extends W0{constructor(Z){super();j.util.initPartial(Z,this)}static fromBinary(Z,$){return new jY().fromBinary(Z,$)}static fromJson(Z,$){return new jY().fromJson(Z,$)}static fromJsonString(Z,$){return new jY().fromJsonString(Z,$)}static equals(Z,$){return j.util.equals(jY,Z,$)}static $(){return["ConnectScmSuccess"]}};_Y=class _Y extends W0{constructor(Z){super();this.error="",j.util.initPartial(Z,this)}static fromBinary(Z,$){return new _Y().fromBinary(Z,$)}static fromJson(Z,$){return new _Y().fromJson(Z,$)}static fromJsonString(Z,$){return new _Y().fromJsonString(Z,$)}static equals(Z,$){return j.util.equals(_Y,Z,$)}static $(){return["ConnectScmError|1 error 9"]}};SY=class SY extends W0{constructor(Z){super();this.reason="",j.util.initPartial(Z,this)}static fromBinary(Z,$){return new SY().fromBinary(Z,$)}static fromJson(Z,$){return new SY().fromJson(Z,$)}static fromJsonString(Z,$){return new SY().fromJsonString(Z,$)}static equals(Z,$){return j.util.equals(SY,Z,$)}static $(){return["ConnectScmRejected|1 reason 9"]}};W$=class W$ extends W0{constructor(Z){super();j.util.initPartial(Z,this)}static fromBinary(Z,$){return new W$().fromBinary(Z,$)}static fromJson(Z,$){return new W$().fromJson(Z,$)}static fromJsonString(Z,$){return new W$().fromJsonString(Z,$)}static equals(Z,$){return j.util.equals(W$,Z,$)}static $(){return["ConnectScmToolCall|1 args #0|2 result #1",H$,mY]}};q$=class q$ extends W0{constructor(Z){super();this.result={case:void 0},j.util.initPartial(Z,this)}static fromBinary(Z,$){return new q$().fromBinary(Z,$)}static fromJson(Z,$){return new q$().fromJson(Z,$)}static fromJsonString(Z,$){return new q$().fromJsonString(Z,$)}static equals(Z,$){return j.util.equals(q$,Z,$)}static $(){return["ConnectScmRequestResponse|1 approved #0 result|2 rejected #1 result|3 failed #2 result",gY,bY,cY]}};gY=class gY extends W0{constructor(Z){super();j.util.initPartial(Z,this)}static fromBinary(Z,$){return new gY().fromBinary(Z,$)}static fromJson(Z,$){return new gY().fromJson(Z,$)}static fromJsonString(Z,$){return new gY().fromJsonString(Z,$)}static equals(Z,$){return j.util.equals(gY,Z,$)}static $(){return["ConnectScmRequestResponse.Approved|1 scm_target 9?"]}};bY=class bY extends W0{constructor(Z){super();this.reason="",j.util.initPartial(Z,this)}static fromBinary(Z,$){return new bY().fromBinary(Z,$)}static fromJson(Z,$){return new bY().fromJson(Z,$)}static fromJsonString(Z,$){return new bY().fromJsonString(Z,$)}static equals(Z,$){return j.util.equals(bY,Z,$)}static $(){return["ConnectScmRequestResponse.Rejected|1 reason 9|2 recorded_args #0?",H$]}};cY=class cY extends W0{constructor(Z){super();this.error="",j.util.initPartial(Z,this)}static fromBinary(Z,$){return new cY().fromBinary(Z,$)}static fromJson(Z,$){return new cY().fromJson(Z,$)}static fromJsonString(Z,$){return new cY().fromJsonString(Z,$)}static equals(Z,$){return j.util.equals(cY,Z,$)}static $(){return["ConnectScmRequestResponse.Failed|1 error 9"]}}});import{Message as Bs,proto3 as S0,protoInt64 as BT}from"@bufbuild/protobuf";var ZG="agent.v1.",pY,eF,N$,B$,dY,uY,lY;var $G=O(()=>{A();pY=class pY extends G{static get runtime(){return F(this,"runtime",S0)}static $p(){return ZG}};eF=w(S0,ZG,"ConversationSearchSource",[[0,"UNSPECIFIED"],[1,"LOCAL"],[2,"CLOUD_CACHE"]],1);N$=class N$ extends pY{constructor(Z){super();this.query="",this.toolCallId="",S0.util.initPartial(Z,this)}static fromBinary(Z,$){return new N$().fromBinary(Z,$)}static fromJson(Z,$){return new N$().fromJson(Z,$)}static fromJsonString(Z,$){return new N$().fromJsonString(Z,$)}static equals(Z,$){return S0.util.equals(N$,Z,$)}static $(){return["ConversationSearchArgs|1 query 9|2 tool_call_id 9|3 limit 5?"]}};B$=class B$ extends pY{constructor(Z){super();this.result={case:void 0},S0.util.initPartial(Z,this)}static fromBinary(Z,$){return new B$().fromBinary(Z,$)}static fromJson(Z,$){return new B$().fromJson(Z,$)}static fromJsonString(Z,$){return new B$().fromJsonString(Z,$)}static equals(Z,$){return S0.util.equals(B$,Z,$)}static $(){return["ConversationSearchResult|1 success #0 result|2 error #1 result",dY,lY]}};dY=class dY extends pY{constructor(Z){super();this.hits=[],this.truncated=!1,this.partial=!1,this.rebuilding=!1,S0.util.initPartial(Z,this)}static fromBinary(Z,$){return new dY().fromBinary(Z,$)}static fromJson(Z,$){return new dY().fromJson(Z,$)}static fromJsonString(Z,$){return new dY().fromJsonString(Z,$)}static equals(Z,$){return S0.util.equals(dY,Z,$)}static $(){return["ConversationSearchSuccess|1 hits #0*|2 truncated 8|3 partial 8|4 rebuilding 8",uY]}};uY=class uY extends pY{constructor(Z){super();this.conversationId="",this.title="",this.source=eF.UNSPECIFIED,this.updatedAtMs=BT.zero,S0.util.initPartial(Z,this)}static fromBinary(Z,$){return new uY().fromBinary(Z,$)}static fromJson(Z,$){return new uY().fromJson(Z,$)}static fromJsonString(Z,$){return new uY().fromJsonString(Z,$)}static equals(Z,$){return S0.util.equals(uY,Z,$)}static $(){return["ConversationSearchHit|1 conversation_id 9|2 title 9|3 source #0|4 updated_at_ms 3|5 snippet 9?",eF]}};lY=class lY extends pY{constructor(Z){super();this.error="",S0.util.initPartial(Z,this)}static fromBinary(Z,$){return new lY().fromBinary(Z,$)}static fromJson(Z,$){return new lY().fromJson(Z,$)}static fromJsonString(Z,$){return new lY().fromJsonString(Z,$)}static equals(Z,$){return S0.util.equals(lY,Z,$)}static $(){return["ConversationSearchError|1 error 9"]}}});import{Message as Ds,proto3 as MW}from"@bufbuild/protobuf";var FT="agent.v1.",JG,F$;var YG=O(()=>{$G();A();JG=class JG extends G{static get runtime(){return F(this,"runtime",MW)}static $p(){return FT}};F$=class F$ extends JG{constructor(Z){super();MW.util.initPartial(Z,this)}static fromBinary(Z,$){return new F$().fromBinary(Z,$)}static fromJson(Z,$){return new F$().fromJson(Z,$)}static fromJsonString(Z,$){return new F$().fromJsonString(Z,$)}static equals(Z,$){return MW.util.equals(F$,Z,$)}static $(){return["SearchConversationsToolCall|1 args #0|2 result #1",N$,B$]}}});import{Message as ks,proto3 as r}from"@bufbuild/protobuf";var XG="agent.v1.",O8,w$,iY,nY,G$,rY,L$,aY,sY,tY,D$;var zG=O(()=>{A();O8=class O8 extends G{static get runtime(){return F(this,"runtime",r)}static $p(){return XG}};w$=w(r,XG,"GoalStatus",[[0,"UNSPECIFIED"],[1,"ACTIVE"],[2,"PAUSED"],[3,"COMPLETE"],[4,"CLEARED"]],1);iY=class iY extends O8{constructor(Z){super();this.objective="",r.util.initPartial(Z,this)}static fromBinary(Z,$){return new iY().fromBinary(Z,$)}static fromJson(Z,$){return new iY().fromJson(Z,$)}static fromJsonString(Z,$){return new iY().fromJsonString(Z,$)}static equals(Z,$){return r.util.equals(iY,Z,$)}static $(){return["CreateGoalArgs|1 objective 9"]}};nY=class nY extends O8{constructor(Z){super();r.util.initPartial(Z,this)}static fromBinary(Z,$){return new nY().fromBinary(Z,$)}static fromJson(Z,$){return new nY().fromJson(Z,$)}static fromJsonString(Z,$){return new nY().fromJsonString(Z,$)}static equals(Z,$){return r.util.equals(nY,Z,$)}static $(){return["CreateGoalSuccess"]}};G$=class G$ extends O8{constructor(Z){super();this.error="",r.util.initPartial(Z,this)}static fromBinary(Z,$){return new G$().fromBinary(Z,$)}static fromJson(Z,$){return new G$().fromJson(Z,$)}static fromJsonString(Z,$){return new G$().fromJsonString(Z,$)}static equals(Z,$){return r.util.equals(G$,Z,$)}static $(){return["GoalError|1 error 9"]}};rY=class rY extends O8{constructor(Z){super();this.result={case:void 0},r.util.initPartial(Z,this)}static fromBinary(Z,$){return new rY().fromBinary(Z,$)}static fromJson(Z,$){return new rY().fromJson(Z,$)}static fromJsonString(Z,$){return new rY().fromJsonString(Z,$)}static equals(Z,$){return r.util.equals(rY,Z,$)}static $(){return["CreateGoalResult|1 success #0 result|2 error #1 result",nY,G$]}};L$=class L$ extends O8{constructor(Z){super();r.util.initPartial(Z,this)}static fromBinary(Z,$){return new L$().fromBinary(Z,$)}static fromJson(Z,$){return new L$().fromJson(Z,$)}static fromJsonString(Z,$){return new L$().fromJsonString(Z,$)}static equals(Z,$){return r.util.equals(L$,Z,$)}static $(){return["CreateGoalToolCall|1 args #0|2 result #1",iY,rY]}};aY=class aY extends O8{constructor(Z){super();this.status=w$.UNSPECIFIED,r.util.initPartial(Z,this)}static fromBinary(Z,$){return new aY().fromBinary(Z,$)}static fromJson(Z,$){return new aY().fromJson(Z,$)}static fromJsonString(Z,$){return new aY().fromJsonString(Z,$)}static equals(Z,$){return r.util.equals(aY,Z,$)}static $(){return["UpdateGoalArgs|1 status #0",w$]}};sY=class sY extends O8{constructor(Z){super();this.status=w$.UNSPECIFIED,r.util.initPartial(Z,this)}static fromBinary(Z,$){return new sY().fromBinary(Z,$)}static fromJson(Z,$){return new sY().fromJson(Z,$)}static fromJsonString(Z,$){return new sY().fromJsonString(Z,$)}static equals(Z,$){return r.util.equals(sY,Z,$)}static $(){return["UpdateGoalSuccess|1 status #0",w$]}};tY=class tY extends O8{constructor(Z){super();this.result={case:void 0},r.util.initPartial(Z,this)}static fromBinary(Z,$){return new tY().fromBinary(Z,$)}static fromJson(Z,$){return new tY().fromJson(Z,$)}static fromJsonString(Z,$){return new tY().fromJsonString(Z,$)}static equals(Z,$){return r.util.equals(tY,Z,$)}static $(){return["UpdateGoalResult|1 success #0 result|2 error #1 result",sY,G$]}};D$=class D$ extends O8{constructor(Z){super();r.util.initPartial(Z,this)}static fromBinary(Z,$){return new D$().fromBinary(Z,$)}static fromJson(Z,$){return new D$().fromJson(Z,$)}static fromJsonString(Z,$){return new D$().fromJsonString(Z,$)}static equals(Z,$){return r.util.equals(D$,Z,$)}static $(){return["UpdateGoalToolCall|1 args #0|2 result #1",aY,tY]}}});import{Message as Vs,proto3 as N,protoInt64 as C8}from"@bufbuild/protobuf";var xW="agent.v1.",k,QG,oY,eY,Z3,$3,J3,U$,Y3,X3,z3,KG,K3,Q3,O$,H3,W3,q3,N3,I$,B3,F3,G3,L3,k$,D3,w3,U3,O3,P$,I3,k3,P3,E3,E$,f3,V3,A3,M3,f$,x3,T3,C3,h3,V$,A$,M$,x$,R3,v3,y3,T$,C$,m3,j3,_3,S3,g3,h$,b3,c3,d3,u3,l3,p3,R$,i3,n3,r3,a3,s3,t3,o3,e3,ZX,v$,$X,JX,YX,XX,y$,zX,KX,QX,HX,WX,m$,qX,NX,BX,FX,GX,j$;var HG=O(()=>{A();k=class k extends G{static get runtime(){return F(this,"runtime",N)}static $p(){return xW}};QG=w(N,xW,"CreateAgentPlacementApprovalState",[[0,"UNSPECIFIED"],[1,"REQUIRED"],[2,"DENIED"]],1);oY=class oY extends k{constructor(Z){super();this.toolCallId="",this.agentIds=[],N.util.initPartial(Z,this)}static fromBinary(Z,$){return new oY().fromBinary(Z,$)}static fromJson(Z,$){return new oY().fromJson(Z,$)}static fromJsonString(Z,$){return new oY().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(oY,Z,$)}static $(){return["GetAgentStatusArgs|1 tool_call_id 9|2 agent_ids 9*"]}};eY=class eY extends k{constructor(Z){super();this.bcId="",this.name="",this.lifecycle="",this.turnInFlight=!1,this.lastTerminalTurnStatus="",this.prUrl="",this.lastActivityAtMs=C8.zero,N.util.initPartial(Z,this)}static fromBinary(Z,$){return new eY().fromBinary(Z,$)}static fromJson(Z,$){return new eY().fromJson(Z,$)}static fromJsonString(Z,$){return new eY().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(eY,Z,$)}static $(){return["GetAgentStatusWorker|1 bc_id 9|2 name 9|3 lifecycle 9|4 turn_in_flight 8|5 last_terminal_turn_status 9|6 pr_url 9|7 last_activity_at_ms 4"]}};Z3=class Z3 extends k{constructor(Z){super();this.workers=[],this.message="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new Z3().fromBinary(Z,$)}static fromJson(Z,$){return new Z3().fromJson(Z,$)}static fromJsonString(Z,$){return new Z3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(Z3,Z,$)}static $(){return["GetAgentStatusSuccess|1 workers #0*|2 message 9",eY]}};$3=class $3 extends k{constructor(Z){super();this.error="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new $3().fromBinary(Z,$)}static fromJson(Z,$){return new $3().fromJson(Z,$)}static fromJsonString(Z,$){return new $3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals($3,Z,$)}static $(){return["GetAgentStatusError|1 error 9"]}};J3=class J3 extends k{constructor(Z){super();this.result={case:void 0},N.util.initPartial(Z,this)}static fromBinary(Z,$){return new J3().fromBinary(Z,$)}static fromJson(Z,$){return new J3().fromJson(Z,$)}static fromJsonString(Z,$){return new J3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(J3,Z,$)}static $(){return["GetAgentStatusResult|1 success #0 result|2 error #1 result",Z3,$3]}};U$=class U$ extends k{constructor(Z){super();N.util.initPartial(Z,this)}static fromBinary(Z,$){return new U$().fromBinary(Z,$)}static fromJson(Z,$){return new U$().fromJson(Z,$)}static fromJsonString(Z,$){return new U$().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(U$,Z,$)}static $(){return["GetAgentStatusToolCall|1 args #0|2 result #1",oY,J3]}};Y3=class Y3 extends k{constructor(Z){super();this.toolCallId="",this.agentId="",this.message="",this.delivery="",this.title="",this.trackedTaskKeys=[],N.util.initPartial(Z,this)}static fromBinary(Z,$){return new Y3().fromBinary(Z,$)}static fromJson(Z,$){return new Y3().fromJson(Z,$)}static fromJsonString(Z,$){return new Y3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(Y3,Z,$)}static $(){return["SendToAgentArgs|1 tool_call_id 9|2 agent_id 9|3 message 9|4 delivery 9|5 title 9|6 model 9?|7 tracked_task_keys 9*"]}};X3=class X3 extends k{constructor(Z){super();this.workerBcId="",this.deliveredAs="",this.message="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new X3().fromBinary(Z,$)}static fromJson(Z,$){return new X3().fromJson(Z,$)}static fromJsonString(Z,$){return new X3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(X3,Z,$)}static $(){return["SendToAgentSuccess|1 worker_bc_id 9|2 delivered_as 9|3 message 9|4 recipient #0?",z3]}};z3=class z3 extends k{constructor(Z){super();this.kind=KG.UNSPECIFIED,this.id="",this.displayName="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new z3().fromBinary(Z,$)}static fromJson(Z,$){return new z3().fromJson(Z,$)}static fromJsonString(Z,$){return new z3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(z3,Z,$)}static $(){return["SendToAgentRecipient|1 kind #0|2 id 9|3 display_name 9",KG]}};KG=w(N,xW,"SendToAgentRecipient.Kind",[[0,"UNSPECIFIED"],[1,"MAIN_BOT"],[2,"PROJECT_SESSION"]],1);K3=class K3 extends k{constructor(Z){super();this.error="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new K3().fromBinary(Z,$)}static fromJson(Z,$){return new K3().fromJson(Z,$)}static fromJsonString(Z,$){return new K3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(K3,Z,$)}static $(){return["SendToAgentError|1 error 9"]}};Q3=class Q3 extends k{constructor(Z){super();this.result={case:void 0},N.util.initPartial(Z,this)}static fromBinary(Z,$){return new Q3().fromBinary(Z,$)}static fromJson(Z,$){return new Q3().fromJson(Z,$)}static fromJsonString(Z,$){return new Q3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(Q3,Z,$)}static $(){return["SendToAgentResult|1 success #0 result|2 error #1 result",X3,K3]}};O$=class O$ extends k{constructor(Z){super();N.util.initPartial(Z,this)}static fromBinary(Z,$){return new O$().fromBinary(Z,$)}static fromJson(Z,$){return new O$().fromJson(Z,$)}static fromJsonString(Z,$){return new O$().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(O$,Z,$)}static $(){return["SendToAgentToolCall|1 args #0|2 result #1",Y3,Q3]}};H3=class H3 extends k{constructor(Z){super();this.toolCallId="",this.agentId="",this.mode="",this.maxTurns=0,N.util.initPartial(Z,this)}static fromBinary(Z,$){return new H3().fromBinary(Z,$)}static fromJson(Z,$){return new H3().fromJson(Z,$)}static fromJsonString(Z,$){return new H3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(H3,Z,$)}static $(){return["ReadAgentTranscriptArgs|1 tool_call_id 9|2 agent_id 9|3 mode 9|4 max_turns 13"]}};W3=class W3 extends k{constructor(Z){super();this.transcript="",this.truncated=!1,N.util.initPartial(Z,this)}static fromBinary(Z,$){return new W3().fromBinary(Z,$)}static fromJson(Z,$){return new W3().fromJson(Z,$)}static fromJsonString(Z,$){return new W3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(W3,Z,$)}static $(){return["ReadAgentTranscriptSuccess|1 transcript 9|2 truncated 8"]}};q3=class q3 extends k{constructor(Z){super();this.error="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new q3().fromBinary(Z,$)}static fromJson(Z,$){return new q3().fromJson(Z,$)}static fromJsonString(Z,$){return new q3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(q3,Z,$)}static $(){return["ReadAgentTranscriptError|1 error 9"]}};N3=class N3 extends k{constructor(Z){super();this.result={case:void 0},N.util.initPartial(Z,this)}static fromBinary(Z,$){return new N3().fromBinary(Z,$)}static fromJson(Z,$){return new N3().fromJson(Z,$)}static fromJsonString(Z,$){return new N3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(N3,Z,$)}static $(){return["ReadAgentTranscriptResult|1 success #0 result|2 error #1 result",W3,q3]}};I$=class I$ extends k{constructor(Z){super();N.util.initPartial(Z,this)}static fromBinary(Z,$){return new I$().fromBinary(Z,$)}static fromJson(Z,$){return new I$().fromJson(Z,$)}static fromJsonString(Z,$){return new I$().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(I$,Z,$)}static $(){return["ReadAgentTranscriptToolCall|1 args #0|2 result #1",H3,N3]}};B3=class B3 extends k{constructor(Z){super();this.toolCallId="",this.prompt="",this.labels={},this.trackedTaskKeys=[],N.util.initPartial(Z,this)}static fromBinary(Z,$){return new B3().fromBinary(Z,$)}static fromJson(Z,$){return new B3().fromJson(Z,$)}static fromJsonString(Z,$){return new B3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(B3,Z,$)}static $(){return["CreateAgentArgs|1 tool_call_id 9|2 prompt 9|3 name 9?|4 model 9?|5 base_branch 9?|6 machine_type 9?|7 worker_id 9?|8 pool 9?|9 labels 9,9|10 environment_build_id 9?|11 environment_id 9?|12 repo_url 9?|13 tracked_task_keys 9*|14 fork_from 9?|15 fork_turns 13?"]}};F3=class F3 extends k{constructor(Z){super();this.agentId="",this.message="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new F3().fromBinary(Z,$)}static fromJson(Z,$){return new F3().fromJson(Z,$)}static fromJsonString(Z,$){return new F3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(F3,Z,$)}static $(){return["CreateAgentSuccess|1 agent_id 9|2 message 9"]}};G3=class G3 extends k{constructor(Z){super();this.error="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new G3().fromBinary(Z,$)}static fromJson(Z,$){return new G3().fromJson(Z,$)}static fromJsonString(Z,$){return new G3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(G3,Z,$)}static $(){return["CreateAgentError|1 error 9|2 placement_approval_state #0?",QG]}};L3=class L3 extends k{constructor(Z){super();this.result={case:void 0},N.util.initPartial(Z,this)}static fromBinary(Z,$){return new L3().fromBinary(Z,$)}static fromJson(Z,$){return new L3().fromJson(Z,$)}static fromJsonString(Z,$){return new L3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(L3,Z,$)}static $(){return["CreateAgentResult|1 success #0 result|2 error #1 result",F3,G3]}};k$=class k$ extends k{constructor(Z){super();N.util.initPartial(Z,this)}static fromBinary(Z,$){return new k$().fromBinary(Z,$)}static fromJson(Z,$){return new k$().fromJson(Z,$)}static fromJsonString(Z,$){return new k$().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(k$,Z,$)}static $(){return["CreateAgentToolCall|1 args #0|2 result #1",B3,L3]}};D3=class D3 extends k{constructor(Z){super();this.toolCallId="",this.prompt="",this.labels={},N.util.initPartial(Z,this)}static fromBinary(Z,$){return new D3().fromBinary(Z,$)}static fromJson(Z,$){return new D3().fromJson(Z,$)}static fromJsonString(Z,$){return new D3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(D3,Z,$)}static $(){return["CreateProjectArgs|1 tool_call_id 9|2 prompt 9|3 name 9?|4 model 9?|5 base_branch 9?|6 machine_type 9?|7 worker_id 9?|8 pool 9?|9 labels 9,9|10 environment_build_id 9?|11 environment_id 9?|12 repo_url 9?"]}};w3=class w3 extends k{constructor(Z){super();this.agentId="",this.message="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new w3().fromBinary(Z,$)}static fromJson(Z,$){return new w3().fromJson(Z,$)}static fromJsonString(Z,$){return new w3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(w3,Z,$)}static $(){return["CreateProjectSuccess|1 agent_id 9|2 message 9"]}};U3=class U3 extends k{constructor(Z){super();this.error="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new U3().fromBinary(Z,$)}static fromJson(Z,$){return new U3().fromJson(Z,$)}static fromJsonString(Z,$){return new U3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(U3,Z,$)}static $(){return["CreateProjectError|1 error 9|2 placement_approval_state #0?",QG]}};O3=class O3 extends k{constructor(Z){super();this.result={case:void 0},N.util.initPartial(Z,this)}static fromBinary(Z,$){return new O3().fromBinary(Z,$)}static fromJson(Z,$){return new O3().fromJson(Z,$)}static fromJsonString(Z,$){return new O3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(O3,Z,$)}static $(){return["CreateProjectResult|1 success #0 result|2 error #1 result",w3,U3]}};P$=class P$ extends k{constructor(Z){super();N.util.initPartial(Z,this)}static fromBinary(Z,$){return new P$().fromBinary(Z,$)}static fromJson(Z,$){return new P$().fromJson(Z,$)}static fromJsonString(Z,$){return new P$().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(P$,Z,$)}static $(){return["CreateProjectToolCall|1 args #0|2 result #1",D3,O3]}};I3=class I3 extends k{constructor(Z){super();this.toolCallId="",this.agentId="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new I3().fromBinary(Z,$)}static fromJson(Z,$){return new I3().fromJson(Z,$)}static fromJsonString(Z,$){return new I3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(I3,Z,$)}static $(){return["StartProjectUpdatesArgs|1 tool_call_id 9|2 agent_id 9"]}};k3=class k3 extends k{constructor(Z){super();this.agentId="",this.untilMs=C8.zero,this.wasOn=!1,this.message="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new k3().fromBinary(Z,$)}static fromJson(Z,$){return new k3().fromJson(Z,$)}static fromJsonString(Z,$){return new k3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(k3,Z,$)}static $(){return["StartProjectUpdatesSuccess|1 agent_id 9|2 until_ms 3|3 was_on 8|4 message 9"]}};P3=class P3 extends k{constructor(Z){super();this.error="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new P3().fromBinary(Z,$)}static fromJson(Z,$){return new P3().fromJson(Z,$)}static fromJsonString(Z,$){return new P3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(P3,Z,$)}static $(){return["StartProjectUpdatesError|1 error 9"]}};E3=class E3 extends k{constructor(Z){super();this.result={case:void 0},N.util.initPartial(Z,this)}static fromBinary(Z,$){return new E3().fromBinary(Z,$)}static fromJson(Z,$){return new E3().fromJson(Z,$)}static fromJsonString(Z,$){return new E3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(E3,Z,$)}static $(){return["StartProjectUpdatesResult|1 success #0 result|2 error #1 result",k3,P3]}};E$=class E$ extends k{constructor(Z){super();N.util.initPartial(Z,this)}static fromBinary(Z,$){return new E$().fromBinary(Z,$)}static fromJson(Z,$){return new E$().fromJson(Z,$)}static fromJsonString(Z,$){return new E$().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(E$,Z,$)}static $(){return["StartProjectUpdatesToolCall|1 args #0|2 result #1",I3,E3]}};f3=class f3 extends k{constructor(Z){super();this.toolCallId="",this.agentId="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new f3().fromBinary(Z,$)}static fromJson(Z,$){return new f3().fromJson(Z,$)}static fromJsonString(Z,$){return new f3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(f3,Z,$)}static $(){return["StopProjectUpdatesArgs|1 tool_call_id 9|2 agent_id 9"]}};V3=class V3 extends k{constructor(Z){super();this.agentId="",this.wasOn=!1,this.message="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new V3().fromBinary(Z,$)}static fromJson(Z,$){return new V3().fromJson(Z,$)}static fromJsonString(Z,$){return new V3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(V3,Z,$)}static $(){return["StopProjectUpdatesSuccess|1 agent_id 9|2 was_on 8|3 message 9"]}};A3=class A3 extends k{constructor(Z){super();this.error="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new A3().fromBinary(Z,$)}static fromJson(Z,$){return new A3().fromJson(Z,$)}static fromJsonString(Z,$){return new A3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(A3,Z,$)}static $(){return["StopProjectUpdatesError|1 error 9"]}};M3=class M3 extends k{constructor(Z){super();this.result={case:void 0},N.util.initPartial(Z,this)}static fromBinary(Z,$){return new M3().fromBinary(Z,$)}static fromJson(Z,$){return new M3().fromJson(Z,$)}static fromJsonString(Z,$){return new M3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(M3,Z,$)}static $(){return["StopProjectUpdatesResult|1 success #0 result|2 error #1 result",V3,A3]}};f$=class f$ extends k{constructor(Z){super();N.util.initPartial(Z,this)}static fromBinary(Z,$){return new f$().fromBinary(Z,$)}static fromJson(Z,$){return new f$().fromJson(Z,$)}static fromJsonString(Z,$){return new f$().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(f$,Z,$)}static $(){return["StopProjectUpdatesToolCall|1 args #0|2 result #1",f3,M3]}};x3=class x3 extends k{constructor(Z){super();this.toolCallId="",this.agentId="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new x3().fromBinary(Z,$)}static fromJson(Z,$){return new x3().fromJson(Z,$)}static fromJsonString(Z,$){return new x3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(x3,Z,$)}static $(){return["StopAgentArgs|1 tool_call_id 9|2 agent_id 9"]}};T3=class T3 extends k{constructor(Z){super();this.workerBcId="",this.message="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new T3().fromBinary(Z,$)}static fromJson(Z,$){return new T3().fromJson(Z,$)}static fromJsonString(Z,$){return new T3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(T3,Z,$)}static $(){return["StopAgentSuccess|1 worker_bc_id 9|2 message 9"]}};C3=class C3 extends k{constructor(Z){super();this.error="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new C3().fromBinary(Z,$)}static fromJson(Z,$){return new C3().fromJson(Z,$)}static fromJsonString(Z,$){return new C3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(C3,Z,$)}static $(){return["StopAgentError|1 error 9"]}};h3=class h3 extends k{constructor(Z){super();this.result={case:void 0},N.util.initPartial(Z,this)}static fromBinary(Z,$){return new h3().fromBinary(Z,$)}static fromJson(Z,$){return new h3().fromJson(Z,$)}static fromJsonString(Z,$){return new h3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(h3,Z,$)}static $(){return["StopAgentResult|1 success #0 result|2 error #1 result",T3,C3]}};V$=class V$ extends k{constructor(Z){super();N.util.initPartial(Z,this)}static fromBinary(Z,$){return new V$().fromBinary(Z,$)}static fromJson(Z,$){return new V$().fromJson(Z,$)}static fromJsonString(Z,$){return new V$().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(V$,Z,$)}static $(){return["StopAgentToolCall|1 args #0|2 result #1",x3,h3]}};A$=class A$ extends k{constructor(Z){super();this.path="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new A$().fromBinary(Z,$)}static fromJson(Z,$){return new A$().fromJson(Z,$)}static fromJsonString(Z,$){return new A$().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(A$,Z,$)}static $(){return["TrackedTaskDocumentInput|1 path 9|2 label 9?"]}};M$=class M$ extends k{constructor(Z){super();this.url="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new M$().fromBinary(Z,$)}static fromJson(Z,$){return new M$().fromJson(Z,$)}static fromJsonString(Z,$){return new M$().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(M$,Z,$)}static $(){return["TrackedTaskUrlInput|1 url 9|2 label 9?"]}};x$=class x$ extends k{constructor(Z){super();this.target={case:void 0},N.util.initPartial(Z,this)}static fromBinary(Z,$){return new x$().fromBinary(Z,$)}static fromJson(Z,$){return new x$().fromJson(Z,$)}static fromJsonString(Z,$){return new x$().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(x$,Z,$)}static $(){return["TrackedTaskLinkInput|1 agent_id 9 target|2 pr_url 9 target|3 document #0 target|4 url #1 target",A$,M$]}};R3=class R3 extends k{constructor(Z){super();this.url="",this.openedByAgentId="",this.countsForCompletion=!1,N.util.initPartial(Z,this)}static fromBinary(Z,$){return new R3().fromBinary(Z,$)}static fromJson(Z,$){return new R3().fromJson(Z,$)}static fromJsonString(Z,$){return new R3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(R3,Z,$)}static $(){return["TrackedTaskPrLinkView|1 url 9|2 opened_by_agent_id 9|3 counts_for_completion 8"]}};v3=class v3 extends k{constructor(Z){super();this.target={case:void 0},N.util.initPartial(Z,this)}static fromBinary(Z,$){return new v3().fromBinary(Z,$)}static fromJson(Z,$){return new v3().fromJson(Z,$)}static fromJsonString(Z,$){return new v3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(v3,Z,$)}static $(){return["TrackedTaskLinkView|1 agent_id 9 target|2 pr #0 target|3 document #1 target|4 url #2 target",R3,A$,M$]}};y3=class y3 extends k{constructor(Z){super();this.key="",this.title="",this.statusId="",this.statusLabel="",this.owner="",this.parentKey="",this.links=[],this.updatedAtMs=C8.zero,this.ownerSessionId="",this.version=C8.zero,this.tag="",this.internalNotes="",this.tags=[],N.util.initPartial(Z,this)}static fromBinary(Z,$){return new y3().fromBinary(Z,$)}static fromJson(Z,$){return new y3().fromJson(Z,$)}static fromJsonString(Z,$){return new y3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(y3,Z,$)}static $(){return["TrackedTaskView|1 key 9|2 title 9|3 status_id 9|4 status_label 9|5 owner 9|6 parent_key 9|7 links #0*|8 updated_at_ms 4|9 owner_session_id 9|10 version 4|11 tag 9|12 internal_notes 9|13 tags 9*",v3]}};T$=class T$ extends k{constructor(Z){super();this.id="",this.label="",this.category="",this.taskCount=0,N.util.initPartial(Z,this)}static fromBinary(Z,$){return new T$().fromBinary(Z,$)}static fromJson(Z,$){return new T$().fromJson(Z,$)}static fromJsonString(Z,$){return new T$().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(T$,Z,$)}static $(){return["TrackedTaskStatusView|1 id 9|2 label 9|3 category 9|4 task_count 13"]}};C$=class C$ extends k{constructor(Z){super();this.id="",this.label="",this.color="",this.taskCount=0,N.util.initPartial(Z,this)}static fromBinary(Z,$){return new C$().fromBinary(Z,$)}static fromJson(Z,$){return new C$().fromJson(Z,$)}static fromJsonString(Z,$){return new C$().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(C$,Z,$)}static $(){return["TrackedTaskTagView|1 id 9|2 label 9|3 color 9|4 task_count 13"]}};m3=class m3 extends k{constructor(Z){super();this.name="",this.sessionId="",this.isYou=!1,N.util.initPartial(Z,this)}static fromBinary(Z,$){return new m3().fromBinary(Z,$)}static fromJson(Z,$){return new m3().fromJson(Z,$)}static fromJsonString(Z,$){return new m3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(m3,Z,$)}static $(){return["TrackedTaskMemberView|1 name 9|2 session_id 9|3 is_you 8"]}};j3=class j3 extends k{constructor(Z){super();this.toolCallId="",this.keys=[],this.statusCategories=[],N.util.initPartial(Z,this)}static fromBinary(Z,$){return new j3().fromBinary(Z,$)}static fromJson(Z,$){return new j3().fromJson(Z,$)}static fromJsonString(Z,$){return new j3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(j3,Z,$)}static $(){return["ListTrackedTasksArgs|1 tool_call_id 9|2 keys 9*|3 status_categories 9*|4 owner 9?|5 linked_agent_id 9?|6 cursor 9?"]}};_3=class _3 extends k{constructor(Z){super();this.tasks=[],this.statuses=[],this.members=[],this.olderClosedCount=0,this.truncated=!1,this.matchingCount=0,this.message="",this.tags=[],this.nextCursor="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new _3().fromBinary(Z,$)}static fromJson(Z,$){return new _3().fromJson(Z,$)}static fromJsonString(Z,$){return new _3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(_3,Z,$)}static $(){return["ListTrackedTasksSuccess|1 tasks #0*|2 statuses #1*|3 members #2*|4 older_closed_count 13|5 truncated 8|6 matching_count 13|7 message 9|8 tags #3*|9 next_cursor 9",y3,T$,m3,C$]}};S3=class S3 extends k{constructor(Z){super();this.error="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new S3().fromBinary(Z,$)}static fromJson(Z,$){return new S3().fromJson(Z,$)}static fromJsonString(Z,$){return new S3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(S3,Z,$)}static $(){return["ListTrackedTasksError|1 error 9"]}};g3=class g3 extends k{constructor(Z){super();this.result={case:void 0},N.util.initPartial(Z,this)}static fromBinary(Z,$){return new g3().fromBinary(Z,$)}static fromJson(Z,$){return new g3().fromJson(Z,$)}static fromJsonString(Z,$){return new g3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(g3,Z,$)}static $(){return["ListTrackedTasksResult|1 success #0 result|2 error #1 result",_3,S3]}};h$=class h$ extends k{constructor(Z){super();N.util.initPartial(Z,this)}static fromBinary(Z,$){return new h$().fromBinary(Z,$)}static fromJson(Z,$){return new h$().fromJson(Z,$)}static fromJsonString(Z,$){return new h$().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(h$,Z,$)}static $(){return["ListTrackedTasksToolCall|1 args #0|2 result #1",j3,g3]}};b3=class b3 extends k{constructor(Z){super();this.title="",this.links=[],this.tags=[],N.util.initPartial(Z,this)}static fromBinary(Z,$){return new b3().fromBinary(Z,$)}static fromJson(Z,$){return new b3().fromJson(Z,$)}static fromJsonString(Z,$){return new b3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(b3,Z,$)}static $(){return["NewTrackedTask|1 client_ref 9?|2 title 9|3 status 9?|4 owner 9?|5 parent 9?|6 links #0*|7 tag 9?|8 internal_notes 9?|9 tags 9*",x$]}};c3=class c3 extends k{constructor(Z){super();this.toolCallId="",this.tasks=[],N.util.initPartial(Z,this)}static fromBinary(Z,$){return new c3().fromBinary(Z,$)}static fromJson(Z,$){return new c3().fromJson(Z,$)}static fromJsonString(Z,$){return new c3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(c3,Z,$)}static $(){return["CreateTrackedTasksArgs|1 tool_call_id 9|2 tasks #0*",b3]}};d3=class d3 extends k{constructor(Z){super();this.clientRef="",this.key="",this.version=C8.zero,N.util.initPartial(Z,this)}static fromBinary(Z,$){return new d3().fromBinary(Z,$)}static fromJson(Z,$){return new d3().fromJson(Z,$)}static fromJsonString(Z,$){return new d3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(d3,Z,$)}static $(){return["TrackedTaskCreated|1 client_ref 9|2 key 9|3 version 4"]}};u3=class u3 extends k{constructor(Z){super();this.created=[],this.message="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new u3().fromBinary(Z,$)}static fromJson(Z,$){return new u3().fromJson(Z,$)}static fromJsonString(Z,$){return new u3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(u3,Z,$)}static $(){return["CreateTrackedTasksSuccess|1 created #0*|2 message 9",d3]}};l3=class l3 extends k{constructor(Z){super();this.error="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new l3().fromBinary(Z,$)}static fromJson(Z,$){return new l3().fromJson(Z,$)}static fromJsonString(Z,$){return new l3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(l3,Z,$)}static $(){return["CreateTrackedTasksError|1 error 9"]}};p3=class p3 extends k{constructor(Z){super();this.result={case:void 0},N.util.initPartial(Z,this)}static fromBinary(Z,$){return new p3().fromBinary(Z,$)}static fromJson(Z,$){return new p3().fromJson(Z,$)}static fromJsonString(Z,$){return new p3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(p3,Z,$)}static $(){return["CreateTrackedTasksResult|1 success #0 result|2 error #1 result",u3,l3]}};R$=class R$ extends k{constructor(Z){super();N.util.initPartial(Z,this)}static fromBinary(Z,$){return new R$().fromBinary(Z,$)}static fromJson(Z,$){return new R$().fromJson(Z,$)}static fromJsonString(Z,$){return new R$().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(R$,Z,$)}static $(){return["CreateTrackedTasksToolCall|1 args #0|2 result #1",c3,p3]}};i3=class i3 extends k{constructor(Z){super();this.anchor={case:void 0},N.util.initPartial(Z,this)}static fromBinary(Z,$){return new i3().fromBinary(Z,$)}static fromJson(Z,$){return new i3().fromJson(Z,$)}static fromJsonString(Z,$){return new i3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(i3,Z,$)}static $(){return["TrackedTaskPosition|1 before_key 9 anchor|2 after_key 9 anchor"]}};n3=class n3 extends k{constructor(Z){super();this.key="",this.addLinks=[],this.removeLinks=[],this.version=C8.zero,N.util.initPartial(Z,this)}static fromBinary(Z,$){return new n3().fromBinary(Z,$)}static fromJson(Z,$){return new n3().fromJson(Z,$)}static fromJsonString(Z,$){return new n3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(n3,Z,$)}static $(){return["TrackedTaskUpdate|1 key 9|2 title 9?|3 status 9?|4 owner 9?|5 parent 9?|6 position #0?|7 add_links #1*|8 remove_links #1*|9 version 4|10 tag 9?|11 internal_notes 9?|12 tags #2?",i3,x$,r3]}};r3=class r3 extends k{constructor(Z){super();this.ids=[],N.util.initPartial(Z,this)}static fromBinary(Z,$){return new r3().fromBinary(Z,$)}static fromJson(Z,$){return new r3().fromJson(Z,$)}static fromJsonString(Z,$){return new r3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(r3,Z,$)}static $(){return["TrackedTaskTagIds|1 ids 9*"]}};a3=class a3 extends k{constructor(Z){super();this.toolCallId="",this.updates=[],N.util.initPartial(Z,this)}static fromBinary(Z,$){return new a3().fromBinary(Z,$)}static fromJson(Z,$){return new a3().fromJson(Z,$)}static fromJsonString(Z,$){return new a3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(a3,Z,$)}static $(){return["UpdateTrackedTasksArgs|1 tool_call_id 9|2 updates #0*",n3]}};s3=class s3 extends k{constructor(Z){super();this.key="",this.field="",this.currentValue="",this.changedBy="",this.changedAtMs=C8.zero,this.currentVersion=C8.zero,N.util.initPartial(Z,this)}static fromBinary(Z,$){return new s3().fromBinary(Z,$)}static fromJson(Z,$){return new s3().fromJson(Z,$)}static fromJsonString(Z,$){return new s3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(s3,Z,$)}static $(){return["TrackedTaskConflict|1 key 9|2 field 9|3 current_value 9|4 changed_by 9|5 changed_at_ms 4|6 current_version 4"]}};t3=class t3 extends k{constructor(Z){super();this.key="",this.version=C8.zero,this.title="",this.statusLabel="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new t3().fromBinary(Z,$)}static fromJson(Z,$){return new t3().fromJson(Z,$)}static fromJsonString(Z,$){return new t3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(t3,Z,$)}static $(){return["TrackedTaskUpdated|1 key 9|2 version 4|3 title 9|4 status_label 9"]}};o3=class o3 extends k{constructor(Z){super();this.updated=[],this.conflicts=[],this.message="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new o3().fromBinary(Z,$)}static fromJson(Z,$){return new o3().fromJson(Z,$)}static fromJsonString(Z,$){return new o3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(o3,Z,$)}static $(){return["UpdateTrackedTasksSuccess|1 updated #0*|2 conflicts #1*|3 message 9",t3,s3]}};e3=class e3 extends k{constructor(Z){super();this.error="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new e3().fromBinary(Z,$)}static fromJson(Z,$){return new e3().fromJson(Z,$)}static fromJsonString(Z,$){return new e3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(e3,Z,$)}static $(){return["UpdateTrackedTasksError|1 error 9"]}};ZX=class ZX extends k{constructor(Z){super();this.result={case:void 0},N.util.initPartial(Z,this)}static fromBinary(Z,$){return new ZX().fromBinary(Z,$)}static fromJson(Z,$){return new ZX().fromJson(Z,$)}static fromJsonString(Z,$){return new ZX().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(ZX,Z,$)}static $(){return["UpdateTrackedTasksResult|1 success #0 result|2 error #1 result",o3,e3]}};v$=class v$ extends k{constructor(Z){super();N.util.initPartial(Z,this)}static fromBinary(Z,$){return new v$().fromBinary(Z,$)}static fromJson(Z,$){return new v$().fromJson(Z,$)}static fromJsonString(Z,$){return new v$().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(v$,Z,$)}static $(){return["UpdateTrackedTasksToolCall|1 args #0|2 result #1",a3,ZX]}};$X=class $X extends k{constructor(Z){super();this.toolCallId="",this.keys=[],N.util.initPartial(Z,this)}static fromBinary(Z,$){return new $X().fromBinary(Z,$)}static fromJson(Z,$){return new $X().fromJson(Z,$)}static fromJsonString(Z,$){return new $X().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals($X,Z,$)}static $(){return["DeleteTrackedTasksArgs|1 tool_call_id 9|2 keys 9*"]}};JX=class JX extends k{constructor(Z){super();this.deletedKeys=[],this.unparentedKeys=[],this.message="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new JX().fromBinary(Z,$)}static fromJson(Z,$){return new JX().fromJson(Z,$)}static fromJsonString(Z,$){return new JX().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(JX,Z,$)}static $(){return["DeleteTrackedTasksSuccess|1 deleted_keys 9*|2 unparented_keys 9*|3 message 9"]}};YX=class YX extends k{constructor(Z){super();this.error="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new YX().fromBinary(Z,$)}static fromJson(Z,$){return new YX().fromJson(Z,$)}static fromJsonString(Z,$){return new YX().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(YX,Z,$)}static $(){return["DeleteTrackedTasksError|1 error 9"]}};XX=class XX extends k{constructor(Z){super();this.result={case:void 0},N.util.initPartial(Z,this)}static fromBinary(Z,$){return new XX().fromBinary(Z,$)}static fromJson(Z,$){return new XX().fromJson(Z,$)}static fromJsonString(Z,$){return new XX().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(XX,Z,$)}static $(){return["DeleteTrackedTasksResult|1 success #0 result|2 error #1 result",JX,YX]}};y$=class y$ extends k{constructor(Z){super();N.util.initPartial(Z,this)}static fromBinary(Z,$){return new y$().fromBinary(Z,$)}static fromJson(Z,$){return new y$().fromJson(Z,$)}static fromJsonString(Z,$){return new y$().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(y$,Z,$)}static $(){return["DeleteTrackedTasksToolCall|1 args #0|2 result #1",$X,XX]}};zX=class zX extends k{constructor(Z){super();this.label="",this.category="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new zX().fromBinary(Z,$)}static fromJson(Z,$){return new zX().fromJson(Z,$)}static fromJsonString(Z,$){return new zX().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(zX,Z,$)}static $(){return["TrackedTaskStatusInput|1 id 9?|2 label 9|3 icon 9?|4 category 9"]}};KX=class KX extends k{constructor(Z){super();this.toolCallId="",this.statuses=[],N.util.initPartial(Z,this)}static fromBinary(Z,$){return new KX().fromBinary(Z,$)}static fromJson(Z,$){return new KX().fromJson(Z,$)}static fromJsonString(Z,$){return new KX().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(KX,Z,$)}static $(){return["UpdateTrackedTaskStatusesArgs|1 tool_call_id 9|2 statuses #0*",zX]}};QX=class QX extends k{constructor(Z){super();this.statuses=[],this.message="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new QX().fromBinary(Z,$)}static fromJson(Z,$){return new QX().fromJson(Z,$)}static fromJsonString(Z,$){return new QX().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(QX,Z,$)}static $(){return["UpdateTrackedTaskStatusesSuccess|1 statuses #0*|2 message 9",T$]}};HX=class HX extends k{constructor(Z){super();this.error="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new HX().fromBinary(Z,$)}static fromJson(Z,$){return new HX().fromJson(Z,$)}static fromJsonString(Z,$){return new HX().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(HX,Z,$)}static $(){return["UpdateTrackedTaskStatusesError|1 error 9"]}};WX=class WX extends k{constructor(Z){super();this.result={case:void 0},N.util.initPartial(Z,this)}static fromBinary(Z,$){return new WX().fromBinary(Z,$)}static fromJson(Z,$){return new WX().fromJson(Z,$)}static fromJsonString(Z,$){return new WX().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(WX,Z,$)}static $(){return["UpdateTrackedTaskStatusesResult|1 success #0 result|2 error #1 result",QX,HX]}};m$=class m$ extends k{constructor(Z){super();N.util.initPartial(Z,this)}static fromBinary(Z,$){return new m$().fromBinary(Z,$)}static fromJson(Z,$){return new m$().fromJson(Z,$)}static fromJsonString(Z,$){return new m$().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(m$,Z,$)}static $(){return["UpdateTrackedTaskStatusesToolCall|1 args #0|2 result #1",KX,WX]}};qX=class qX extends k{constructor(Z){super();this.label="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new qX().fromBinary(Z,$)}static fromJson(Z,$){return new qX().fromJson(Z,$)}static fromJsonString(Z,$){return new qX().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(qX,Z,$)}static $(){return["TrackedTaskTagInput|1 id 9?|2 label 9|3 color 9?"]}};NX=class NX extends k{constructor(Z){super();this.toolCallId="",this.tags=[],N.util.initPartial(Z,this)}static fromBinary(Z,$){return new NX().fromBinary(Z,$)}static fromJson(Z,$){return new NX().fromJson(Z,$)}static fromJsonString(Z,$){return new NX().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(NX,Z,$)}static $(){return["UpdateTrackedTaskTagsArgs|1 tool_call_id 9|2 tags #0*",qX]}};BX=class BX extends k{constructor(Z){super();this.tags=[],this.message="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new BX().fromBinary(Z,$)}static fromJson(Z,$){return new BX().fromJson(Z,$)}static fromJsonString(Z,$){return new BX().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(BX,Z,$)}static $(){return["UpdateTrackedTaskTagsSuccess|1 tags #0*|2 message 9",C$]}};FX=class FX extends k{constructor(Z){super();this.error="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new FX().fromBinary(Z,$)}static fromJson(Z,$){return new FX().fromJson(Z,$)}static fromJsonString(Z,$){return new FX().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(FX,Z,$)}static $(){return["UpdateTrackedTaskTagsError|1 error 9"]}};GX=class GX extends k{constructor(Z){super();this.result={case:void 0},N.util.initPartial(Z,this)}static fromBinary(Z,$){return new GX().fromBinary(Z,$)}static fromJson(Z,$){return new GX().fromJson(Z,$)}static fromJsonString(Z,$){return new GX().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(GX,Z,$)}static $(){return["UpdateTrackedTaskTagsResult|1 success #0 result|2 error #1 result",BX,FX]}};j$=class j$ extends k{constructor(Z){super();N.util.initPartial(Z,this)}static fromBinary(Z,$){return new j$().fromBinary(Z,$)}static fromJson(Z,$){return new j$().fromJson(Z,$)}static fromJsonString(Z,$){return new j$().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(j$,Z,$)}static $(){return["UpdateTrackedTaskTagsToolCall|1 args #0|2 result #1",NX,GX]}}});import{Message as Ts,proto3 as _}from"@bufbuild/protobuf";var TW="agent.v1.",M0,WG,qG,LX,DX,wX,UX,OX,IX,kX,_$,PX,EX,fX,VX,S$;var NG=O(()=>{A();M0=class M0 extends G{static get runtime(){return F(this,"runtime",_)}static $p(){return TW}};WG=w(_,TW,"WriteCanvasFailReason",[[0,"UNSPECIFIED"],[1,"TYPECHECK_FAILED"],[2,"COMPILE_FAILED"],[3,"TOO_LARGE"],[4,"UNAVAILABLE"],[5,"NOT_FOUND"],[6,"REFUSED"]],1),qG=w(_,TW,"ReadCanvasFailReason",[[0,"UNSPECIFIED"],[1,"NOT_FOUND"],[2,"UNAVAILABLE"],[3,"REFUSED"],[4,"INVALID_REFERENCE"]],1);LX=class LX extends M0{constructor(Z){super();this.line=0,this.character=0,_.util.initPartial(Z,this)}static fromBinary(Z,$){return new LX().fromBinary(Z,$)}static fromJson(Z,$){return new LX().fromJson(Z,$)}static fromJsonString(Z,$){return new LX().fromJsonString(Z,$)}static equals(Z,$){return _.util.equals(LX,Z,$)}static $(){return["CloudCanvasToolDiagnosticPosition|1 line 5|2 character 5"]}};DX=class DX extends M0{constructor(Z){super();_.util.initPartial(Z,this)}static fromBinary(Z,$){return new DX().fromBinary(Z,$)}static fromJson(Z,$){return new DX().fromJson(Z,$)}static fromJsonString(Z,$){return new DX().fromJsonString(Z,$)}static equals(Z,$){return _.util.equals(DX,Z,$)}static $(){return["CloudCanvasToolDiagnosticRange|1 start #0|2 end #0",LX]}};wX=class wX extends M0{constructor(Z){super();this.message="",_.util.initPartial(Z,this)}static fromBinary(Z,$){return new wX().fromBinary(Z,$)}static fromJson(Z,$){return new wX().fromJson(Z,$)}static fromJsonString(Z,$){return new wX().fromJsonString(Z,$)}static equals(Z,$){return _.util.equals(wX,Z,$)}static $(){return["CloudCanvasToolDiagnostic|1 message 9|2 code 9?|3 severity 5?|4 range #0?",DX]}};UX=class UX extends M0{constructor(Z){super();this.contents="",_.util.initPartial(Z,this)}static fromBinary(Z,$){return new UX().fromBinary(Z,$)}static fromJson(Z,$){return new UX().fromJson(Z,$)}static fromJsonString(Z,$){return new UX().fromJsonString(Z,$)}static equals(Z,$){return _.util.equals(UX,Z,$)}static $(){return["WriteCanvasArgs|1 contents 9|2 canvas_id 9?|3 title 9?"]}};OX=class OX extends M0{constructor(Z){super();this.canvasId="",this.url="",_.util.initPartial(Z,this)}static fromBinary(Z,$){return new OX().fromBinary(Z,$)}static fromJson(Z,$){return new OX().fromJson(Z,$)}static fromJsonString(Z,$){return new OX().fromJsonString(Z,$)}static equals(Z,$){return _.util.equals(OX,Z,$)}static $(){return["WriteCanvasSuccess|1 canvas_id 9|2 title 9?|3 url 9|4 page_url 9?|5 audience_notice 9?"]}};IX=class IX extends M0{constructor(Z){super();this.reason=WG.UNSPECIFIED,this.diagnostics=[],_.util.initPartial(Z,this)}static fromBinary(Z,$){return new IX().fromBinary(Z,$)}static fromJson(Z,$){return new IX().fromJson(Z,$)}static fromJsonString(Z,$){return new IX().fromJsonString(Z,$)}static equals(Z,$){return _.util.equals(IX,Z,$)}static $(){return["WriteCanvasFailure|1 reason #0|2 diagnostics #1*|3 detail 9?",WG,wX]}};kX=class kX extends M0{constructor(Z){super();this.result={case:void 0},_.util.initPartial(Z,this)}static fromBinary(Z,$){return new kX().fromBinary(Z,$)}static fromJson(Z,$){return new kX().fromJson(Z,$)}static fromJsonString(Z,$){return new kX().fromJsonString(Z,$)}static equals(Z,$){return _.util.equals(kX,Z,$)}static $(){return["WriteCanvasResult|1 success #0 result|2 failure #1 result",OX,IX]}};_$=class _$ extends M0{constructor(Z){super();_.util.initPartial(Z,this)}static fromBinary(Z,$){return new _$().fromBinary(Z,$)}static fromJson(Z,$){return new _$().fromJson(Z,$)}static fromJsonString(Z,$){return new _$().fromJsonString(Z,$)}static equals(Z,$){return _.util.equals(_$,Z,$)}static $(){return["WriteCanvasToolCall|1 args #0|2 result #1",UX,kX]}};PX=class PX extends M0{constructor(Z){super();_.util.initPartial(Z,this)}static fromBinary(Z,$){return new PX().fromBinary(Z,$)}static fromJson(Z,$){return new PX().fromJson(Z,$)}static fromJsonString(Z,$){return new PX().fromJsonString(Z,$)}static equals(Z,$){return _.util.equals(PX,Z,$)}static $(){return["ReadCanvasArgs|1 canvas_id 9?|2 url 9?"]}};EX=class EX extends M0{constructor(Z){super();this.canvasId="",this.url="",this.source="",_.util.initPartial(Z,this)}static fromBinary(Z,$){return new EX().fromBinary(Z,$)}static fromJson(Z,$){return new EX().fromJson(Z,$)}static fromJsonString(Z,$){return new EX().fromJsonString(Z,$)}static equals(Z,$){return _.util.equals(EX,Z,$)}static $(){return["ReadCanvasSuccess|1 canvas_id 9|2 title 9?|3 url 9|4 source 9"]}};fX=class fX extends M0{constructor(Z){super();this.reason=qG.UNSPECIFIED,_.util.initPartial(Z,this)}static fromBinary(Z,$){return new fX().fromBinary(Z,$)}static fromJson(Z,$){return new fX().fromJson(Z,$)}static fromJsonString(Z,$){return new fX().fromJsonString(Z,$)}static equals(Z,$){return _.util.equals(fX,Z,$)}static $(){return["ReadCanvasFailure|1 reason #0|2 detail 9?",qG]}};VX=class VX extends M0{constructor(Z){super();this.result={case:void 0},_.util.initPartial(Z,this)}static fromBinary(Z,$){return new VX().fromBinary(Z,$)}static fromJson(Z,$){return new VX().fromJson(Z,$)}static fromJsonString(Z,$){return new VX().fromJsonString(Z,$)}static equals(Z,$){return _.util.equals(VX,Z,$)}static $(){return["ReadCanvasResult|1 success #0 result|2 failure #1 result",EX,fX]}};S$=class S$ extends M0{constructor(Z){super();_.util.initPartial(Z,this)}static fromBinary(Z,$){return new S$().fromBinary(Z,$)}static fromJson(Z,$){return new S$().fromJson(Z,$)}static fromJsonString(Z,$){return new S$().fromJsonString(Z,$)}static equals(Z,$){return _.util.equals(S$,Z,$)}static $(){return["ReadCanvasToolCall|1 args #0|2 result #1",PX,VX]}}});import{Message as vs,proto3 as R0}from"@bufbuild/protobuf";var GT="agent.v1.",b$,AX,MX,xX,TX,CX,g$;var BG=O(()=>{A();b$=class b$ extends G{static get runtime(){return F(this,"runtime",R0)}static $p(){return GT}};AX=class AX extends b${constructor(Z){super();this.prompt="",this.referenceImagePaths=[],this.keyframes=[],R0.util.initPartial(Z,this)}static fromBinary(Z,$){return new AX().fromBinary(Z,$)}static fromJson(Z,$){return new AX().fromJson(Z,$)}static fromJsonString(Z,$){return new AX().fromJsonString(Z,$)}static equals(Z,$){return R0.util.equals(AX,Z,$)}static $(){return["GenerateVideoArgs|1 prompt 9|2 file_path 9?|3 image_path 9?|4 reference_image_paths 9*|5 duration_seconds 13?|6 aspect_ratio 9?|7 resolution 9?|8 last_frame_path 9?|9 keyframes #0*",MX]}};MX=class MX extends b${constructor(Z){super();this.imagePath="",this.timestampSeconds=0,R0.util.initPartial(Z,this)}static fromBinary(Z,$){return new MX().fromBinary(Z,$)}static fromJson(Z,$){return new MX().fromJson(Z,$)}static fromJsonString(Z,$){return new MX().fromJsonString(Z,$)}static equals(Z,$){return R0.util.equals(MX,Z,$)}static $(){return["GenerateVideoKeyframe|1 image_path 9|2 timestamp_seconds 1"]}};xX=class xX extends b${constructor(Z){super();this.result={case:void 0},R0.util.initPartial(Z,this)}static fromBinary(Z,$){return new xX().fromBinary(Z,$)}static fromJson(Z,$){return new xX().fromJson(Z,$)}static fromJsonString(Z,$){return new xX().fromJsonString(Z,$)}static equals(Z,$){return R0.util.equals(xX,Z,$)}static $(){return["GenerateVideoResult|1 success #0 result|2 error #1 result",TX,CX]}};TX=class TX extends b${constructor(Z){super();this.filePath="",this.durationSeconds=0,R0.util.initPartial(Z,this)}static fromBinary(Z,$){return new TX().fromBinary(Z,$)}static fromJson(Z,$){return new TX().fromJson(Z,$)}static fromJsonString(Z,$){return new TX().fromJsonString(Z,$)}static equals(Z,$){return R0.util.equals(TX,Z,$)}static $(){return["GenerateVideoSuccess|1 file_path 9|2 duration_seconds 13"]}};CX=class CX extends b${constructor(Z){super();this.error="",R0.util.initPartial(Z,this)}static fromBinary(Z,$){return new CX().fromBinary(Z,$)}static fromJson(Z,$){return new CX().fromJson(Z,$)}static fromJsonString(Z,$){return new CX().fromJsonString(Z,$)}static equals(Z,$){return R0.util.equals(CX,Z,$)}static $(){return["GenerateVideoError|1 error 9"]}};g$=class g$ extends b${constructor(Z){super();R0.util.initPartial(Z,this)}static fromBinary(Z,$){return new g$().fromBinary(Z,$)}static fromJson(Z,$){return new g$().fromJson(Z,$)}static fromJsonString(Z,$){return new g$().fromJsonString(Z,$)}static equals(Z,$){return R0.util.equals(g$,Z,$)}static $(){return["GenerateVideoToolCall|1 args #0|2 result #1",AX,xX]}}});import{Message as _s,proto3 as O0}from"@bufbuild/protobuf";var LT="agent.v1.",Y6,hX,RX,vX,yX,mX,jX,c$;var FG=O(()=>{A();Y6=class Y6 extends G{static get runtime(){return F(this,"runtime",O0)}static $p(){return LT}};hX=class hX extends Y6{constructor(Z){super();this.query="",this.allowedXHandles=[],this.excludedXHandles=[],O0.util.initPartial(Z,this)}static fromBinary(Z,$){return new hX().fromBinary(Z,$)}static fromJson(Z,$){return new hX().fromJson(Z,$)}static fromJsonString(Z,$){return new hX().fromJsonString(Z,$)}static equals(Z,$){return O0.util.equals(hX,Z,$)}static $(){return["XSearchArgs|1 query 9|2 from_date 9?|3 to_date 9?|4 allowed_x_handles 9*|5 excluded_x_handles 9*"]}};RX=class RX extends Y6{constructor(Z){super();this.result={case:void 0},O0.util.initPartial(Z,this)}static fromBinary(Z,$){return new RX().fromBinary(Z,$)}static fromJson(Z,$){return new RX().fromJson(Z,$)}static fromJsonString(Z,$){return new RX().fromJsonString(Z,$)}static equals(Z,$){return O0.util.equals(RX,Z,$)}static $(){return["XSearchResult|1 success #0 result|2 error #1 result|3 rejected #2 result",vX,mX,jX]}};vX=class vX extends Y6{constructor(Z){super();this.answer="",this.citations=[],O0.util.initPartial(Z,this)}static fromBinary(Z,$){return new vX().fromBinary(Z,$)}static fromJson(Z,$){return new vX().fromJson(Z,$)}static fromJsonString(Z,$){return new vX().fromJsonString(Z,$)}static equals(Z,$){return O0.util.equals(vX,Z,$)}static $(){return["XSearchSuccess|1 answer 9|2 citations #0*",yX]}};yX=class yX extends Y6{constructor(Z){super();this.url="",this.title="",O0.util.initPartial(Z,this)}static fromBinary(Z,$){return new yX().fromBinary(Z,$)}static fromJson(Z,$){return new yX().fromJson(Z,$)}static fromJsonString(Z,$){return new yX().fromJsonString(Z,$)}static equals(Z,$){return O0.util.equals(yX,Z,$)}static $(){return["XSearchCitation|1 url 9|2 title 9"]}};mX=class mX extends Y6{constructor(Z){super();this.error="",O0.util.initPartial(Z,this)}static fromBinary(Z,$){return new mX().fromBinary(Z,$)}static fromJson(Z,$){return new mX().fromJson(Z,$)}static fromJsonString(Z,$){return new mX().fromJsonString(Z,$)}static equals(Z,$){return O0.util.equals(mX,Z,$)}static $(){return["XSearchError|1 error 9"]}};jX=class jX extends Y6{constructor(Z){super();this.reason="",O0.util.initPartial(Z,this)}static fromBinary(Z,$){return new jX().fromBinary(Z,$)}static fromJson(Z,$){return new jX().fromJson(Z,$)}static fromJsonString(Z,$){return new jX().fromJsonString(Z,$)}static equals(Z,$){return O0.util.equals(jX,Z,$)}static $(){return["XSearchRejected|1 reason 9"]}};c$=class c$ extends Y6{constructor(Z){super();O0.util.initPartial(Z,this)}static fromBinary(Z,$){return new c$().fromBinary(Z,$)}static fromJson(Z,$){return new c$().fromJson(Z,$)}static fromJsonString(Z,$){return new c$().fromJsonString(Z,$)}static equals(Z,$){return O0.util.equals(c$,Z,$)}static $(){return["XSearchToolCall|1 args #0|2 result #1",hX,RX]}}});import{Message as cs,proto3 as v0,protoInt64 as DT}from"@bufbuild/protobuf";var wT="agent.v1.",u$,_X,SX,gX,bX,cX,d$;var GG=O(()=>{A();u$=class u$ extends G{static get runtime(){return F(this,"runtime",v0)}static $p(){return wT}};_X=class _X extends u${constructor(Z){super();this.toolCallId="",v0.util.initPartial(Z,this)}static fromBinary(Z,$){return new _X().fromBinary(Z,$)}static fromJson(Z,$){return new _X().fromJson(Z,$)}static fromJsonString(Z,$){return new _X().fromJsonString(Z,$)}static equals(Z,$){return v0.util.equals(_X,Z,$)}static $(){return["GetPrCodeTourArgs|1 tool_call_id 9|2 revision_id 9?|3 section_id 9?|4 head_sha 9?|5 pr_url 9?"]}};SX=class SX extends u${constructor(Z){super();this.revisionId="",this.status="",this.headSha="",this.feedback="",this.updatedAtMs=DT.zero,this.isCurrent=!1,this.markdown="",this.source="",this.prUrl="",this.editedByBcId="",v0.util.initPartial(Z,this)}static fromBinary(Z,$){return new SX().fromBinary(Z,$)}static fromJson(Z,$){return new SX().fromJson(Z,$)}static fromJsonString(Z,$){return new SX().fromJsonString(Z,$)}static equals(Z,$){return v0.util.equals(SX,Z,$)}static $(){return["PrCodeTourRevisionSnapshot|1 revision_id 9|2 status 9|3 head_sha 9|4 feedback 9|5 updated_at_ms 3|6 is_current 8|7 markdown 9|8 source 9|9 pr_url 9|10 edited_by_bc_id 9"]}};gX=class gX extends u${constructor(Z){super();this.revisions=[],v0.util.initPartial(Z,this)}static fromBinary(Z,$){return new gX().fromBinary(Z,$)}static fromJson(Z,$){return new gX().fromJson(Z,$)}static fromJsonString(Z,$){return new gX().fromJsonString(Z,$)}static equals(Z,$){return v0.util.equals(gX,Z,$)}static $(){return["GetPrCodeTourSuccess|1 revisions #0*|2 section_id 9?",SX]}};bX=class bX extends u${constructor(Z){super();this.error="",v0.util.initPartial(Z,this)}static fromBinary(Z,$){return new bX().fromBinary(Z,$)}static fromJson(Z,$){return new bX().fromJson(Z,$)}static fromJsonString(Z,$){return new bX().fromJsonString(Z,$)}static equals(Z,$){return v0.util.equals(bX,Z,$)}static $(){return["GetPrCodeTourError|1 error 9"]}};cX=class cX extends u${constructor(Z){super();this.result={case:void 0},v0.util.initPartial(Z,this)}static fromBinary(Z,$){return new cX().fromBinary(Z,$)}static fromJson(Z,$){return new cX().fromJson(Z,$)}static fromJsonString(Z,$){return new cX().fromJsonString(Z,$)}static equals(Z,$){return v0.util.equals(cX,Z,$)}static $(){return["GetPrCodeTourResult|1 success #0 result|2 error #1 result",gX,bX]}};d$=class d$ extends u${constructor(Z){super();v0.util.initPartial(Z,this)}static fromBinary(Z,$){return new d$().fromBinary(Z,$)}static fromJson(Z,$){return new d$().fromJson(Z,$)}static fromJsonString(Z,$){return new d$().fromJsonString(Z,$)}static equals(Z,$){return v0.util.equals(d$,Z,$)}static $(){return["GetPrCodeTourToolCall|1 args #0|2 result #1",_X,cX]}}});import{Message as ps,proto3 as g0}from"@bufbuild/protobuf";var DG="agent.v1.",iX,LG,dX,uX,lX,pX,l$;var wG=O(()=>{A();iX=class iX extends G{static get runtime(){return F(this,"runtime",g0)}static $p(){return DG}};LG=w(g0,DG,"UpdatePrCodeTourExecutionMode",[[0,"UNSPECIFIED"],[1,"SERVER_SCHEDULED"],[2,"CLIENT_REQUIRED"],[3,"SKIPPED"],[4,"EDITED"]],1);dX=class dX extends iX{constructor(Z){super();this.feedback="",this.toolCallId="",this.scopeCommitHashes=[],g0.util.initPartial(Z,this)}static fromBinary(Z,$){return new dX().fromBinary(Z,$)}static fromJson(Z,$){return new dX().fromJson(Z,$)}static fromJsonString(Z,$){return new dX().fromJsonString(Z,$)}static equals(Z,$){return g0.util.equals(dX,Z,$)}static $(){return["UpdatePrCodeTourArgs|1 feedback 9|2 tool_call_id 9|3 base_sha 9?|4 head_sha 9?|5 source_revision_id 9?|6 revision_id 9?|7 markdown 9?|8 heading 9?|9 artifact_path 9?|10 artifact_alt 9?|11 scope_commit_hashes 9*|12 explicit_user_prompt 9?|13 pr_url 9?"]}};uX=class uX extends iX{constructor(Z){super();this.result={case:void 0},g0.util.initPartial(Z,this)}static fromBinary(Z,$){return new uX().fromBinary(Z,$)}static fromJson(Z,$){return new uX().fromJson(Z,$)}static fromJsonString(Z,$){return new uX().fromJsonString(Z,$)}static equals(Z,$){return g0.util.equals(uX,Z,$)}static $(){return["UpdatePrCodeTourResult|1 success #0 result|2 error #1 result",lX,pX]}};lX=class lX extends iX{constructor(Z){super();this.revisionId="",this.message="",this.executionMode=LG.UNSPECIFIED,g0.util.initPartial(Z,this)}static fromBinary(Z,$){return new lX().fromBinary(Z,$)}static fromJson(Z,$){return new lX().fromJson(Z,$)}static fromJsonString(Z,$){return new lX().fromJsonString(Z,$)}static equals(Z,$){return g0.util.equals(lX,Z,$)}static $(){return["UpdatePrCodeTourSuccess|1 revision_id 9|2 message 9|3 execution_mode #0",LG]}};pX=class pX extends iX{constructor(Z){super();this.error="",g0.util.initPartial(Z,this)}static fromBinary(Z,$){return new pX().fromBinary(Z,$)}static fromJson(Z,$){return new pX().fromJson(Z,$)}static fromJsonString(Z,$){return new pX().fromJsonString(Z,$)}static equals(Z,$){return g0.util.equals(pX,Z,$)}static $(){return["UpdatePrCodeTourError|1 error 9"]}};l$=class l$ extends iX{constructor(Z){super();g0.util.initPartial(Z,this)}static fromBinary(Z,$){return new l$().fromBinary(Z,$)}static fromJson(Z,$){return new l$().fromJson(Z,$)}static fromJsonString(Z,$){return new l$().fromJsonString(Z,$)}static equals(Z,$){return g0.util.equals(l$,Z,$)}static $(){return["UpdatePrCodeTourToolCall|1 args #0|2 result #1",dX,uX]}}});import{Message as as,proto3 as CW}from"@bufbuild/protobuf";var UT="agent.v1.",UG,p$;var OG=O(()=>{A();UG=class UG extends G{static get runtime(){return F(this,"runtime",CW)}static $p(){return UT}};p$=class p$ extends UG{constructor(Z){super();this.fullPath="",this.content="",this.description="",this.environments=[],this.disabledEnvironments=[],this.disableModelInvocation=!1,this.globs=[],this.scopedTo=[],this.argumentHint="",this.disableUserInvocation=!1,CW.util.initPartial(Z,this)}static fromBinary(Z,$){return new p$().fromBinary(Z,$)}static fromJson(Z,$){return new p$().fromJson(Z,$)}static fromJsonString(Z,$){return new p$().fromJsonString(Z,$)}static equals(Z,$){return CW.util.equals(p$,Z,$)}static $(){return["AgentSkill|1 full_path 9|2 content 9|3 description 9|4 parse_error 9?|5 environments 9*|6 disabled_environments 9*|7 git_remote_origin 9?|8 disable_model_invocation 8|9 plugin 9?|10 marketplace 9?|11 plugin_id 9?|12 marketplace_id 9?|13 globs 9*|14 scoped_to 9*|15 argument_hint 9|16 disable_user_invocation 8"]}}});import{Message as es,proto3 as I,protoInt64 as IG}from"@bufbuild/protobuf";var PG="agent.v1.",x,kG,nX,rX,aX,X6,sX,tX,oX,eX,Zz,$z,Jz,Yz,Xz,zz,Kz,Qz,Hz,Wz,qz,Nz,Bz,Fz,Gz,Lz,Dz,wz,Uz,Oz,Iz,kz,Pz,Ez,fz,Vz,Az,Mz,xz,Tz,Cz,hz,Rz,vz,yz,mz,i$,jz,_z,Sz,gz,bz,cz,dz,uz,lz;var EG=O(()=>{P6();wW();LW();OG();A();x=class x extends G{static get runtime(){return F(this,"runtime",I)}static $p(){return PG}};kG=w(I,PG,"SelectedPluginCapabilityType",[[0,"UNSPECIFIED"],[1,"COMMAND"],[2,"SKILL"],[3,"SUBAGENT"]],1);nX=class nX extends x{constructor(Z){super();this.dataOrBlobId={case:void 0},this.uuid="",this.path="",this.mimeType="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new nX().fromBinary(Z,$)}static fromJson(Z,$){return new nX().fromJson(Z,$)}static fromJsonString(Z,$){return new nX().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(nX,Z,$)}static $(){return["SelectedImage|1 blob_id 12 data_or_blob_id|8 data 12 data_or_blob_id|9 blob_id_with_data #0 data_or_blob_id|10 prompt_upload_ref #1 data_or_blob_id|2 uuid 9|3 path 9|4 dimension #2|7 mime_type 9",rX,X6,aX]}};rX=class rX extends x{constructor(Z){super();this.blobId=new Uint8Array(0),this.data=new Uint8Array(0),I.util.initPartial(Z,this)}static fromBinary(Z,$){return new rX().fromBinary(Z,$)}static fromJson(Z,$){return new rX().fromJson(Z,$)}static fromJsonString(Z,$){return new rX().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(rX,Z,$)}static $(){return["SelectedImage.BlobIdWithData|1 blob_id 12|2 data 12"]}};aX=class aX extends x{constructor(Z){super();this.width=0,this.height=0,I.util.initPartial(Z,this)}static fromBinary(Z,$){return new aX().fromBinary(Z,$)}static fromJson(Z,$){return new aX().fromJson(Z,$)}static fromJsonString(Z,$){return new aX().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(aX,Z,$)}static $(){return["SelectedImage.Dimension|1 width 5|2 height 5"]}};X6=class X6 extends x{constructor(Z){super();this.uploadId="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new X6().fromBinary(Z,$)}static fromJson(Z,$){return new X6().fromJson(Z,$)}static fromJsonString(Z,$){return new X6().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(X6,Z,$)}static $(){return["PromptUploadRef|1 upload_id 9"]}};sX=class sX extends x{constructor(Z){super();this.dataOrBlobId={case:void 0},this.uuid="",this.filename="",this.mimeType="",this.path="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new sX().fromBinary(Z,$)}static fromJson(Z,$){return new sX().fromJson(Z,$)}static fromJsonString(Z,$){return new sX().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(sX,Z,$)}static $(){return["SelectedDocument|1 blob_id 12 data_or_blob_id|8 data 12 data_or_blob_id|9 blob_id_with_data #0 data_or_blob_id|10 prompt_upload_ref #1 data_or_blob_id|2 uuid 9|3 filename 9|4 mime_type 9|7 path 9",tX,X6]}};tX=class tX extends x{constructor(Z){super();this.blobId=new Uint8Array(0),this.data=new Uint8Array(0),I.util.initPartial(Z,this)}static fromBinary(Z,$){return new tX().fromBinary(Z,$)}static fromJson(Z,$){return new tX().fromJson(Z,$)}static fromJsonString(Z,$){return new tX().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(tX,Z,$)}static $(){return["SelectedDocument.BlobIdWithData|1 blob_id 12|2 data 12"]}};oX=class oX extends x{constructor(Z){super();this.dataOrBlobId={case:void 0},this.uuid="",this.path="",this.mimeType="",this.filename="",this.materializeToFilesystem=!1,I.util.initPartial(Z,this)}static fromBinary(Z,$){return new oX().fromBinary(Z,$)}static fromJson(Z,$){return new oX().fromJson(Z,$)}static fromJsonString(Z,$){return new oX().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(oX,Z,$)}static $(){return["SelectedVideo|1 blob_id 12 data_or_blob_id|8 data 12 data_or_blob_id|9 blob_id_with_data #0 data_or_blob_id|11 signed_url #1 data_or_blob_id|13 prompt_upload_ref #2 data_or_blob_id|2 uuid 9|3 path 9|4 fps 2?|7 mime_type 9|10 filename 9|12 materialize_to_filesystem 8",eX,Zz,X6]}};eX=class eX extends x{constructor(Z){super();this.blobId=new Uint8Array(0),this.data=new Uint8Array(0),I.util.initPartial(Z,this)}static fromBinary(Z,$){return new eX().fromBinary(Z,$)}static fromJson(Z,$){return new eX().fromJson(Z,$)}static fromJsonString(Z,$){return new eX().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(eX,Z,$)}static $(){return["SelectedVideo.BlobIdWithData|1 blob_id 12|2 data 12"]}};Zz=class Zz extends x{constructor(Z){super();this.url="",this.key="",this.expiresAtUnixMs=IG.zero,this.refreshAfterUnixMs=IG.zero,this.conversationId="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Zz().fromBinary(Z,$)}static fromJson(Z,$){return new Zz().fromJson(Z,$)}static fromJsonString(Z,$){return new Zz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Zz,Z,$)}static $(){return["SelectedVideo.SignedUrl|1 url 9|2 key 9|3 expires_at_unix_ms 3|4 refresh_after_unix_ms 3|5 conversation_id 9"]}};$z=class $z extends x{constructor(Z){super();this.dataOrBlobId={case:void 0},I.util.initPartial(Z,this)}static fromBinary(Z,$){return new $z().fromBinary(Z,$)}static fromJson(Z,$){return new $z().fromJson(Z,$)}static fromJsonString(Z,$){return new $z().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals($z,Z,$)}static $(){return["ExtraContextEntry|1 data 9 data_or_blob_id|2 blob_id 12 data_or_blob_id"]}};Jz=class Jz extends x{constructor(Z){super();this.content="",this.path="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Jz().fromBinary(Z,$)}static fromJson(Z,$){return new Jz().fromJson(Z,$)}static fromJsonString(Z,$){return new Jz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Jz,Z,$)}static $(){return["SelectedFile|1 content 9|2 path 9|3 relative_path 9?"]}};Yz=class Yz extends x{constructor(Z){super();this.content="",this.path="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Yz().fromBinary(Z,$)}static fromJson(Z,$){return new Yz().fromJson(Z,$)}static fromJsonString(Z,$){return new Yz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Yz,Z,$)}static $(){return["SelectedCodeSelection|1 content 9|2 path 9|3 relative_path 9?|4 range #0",d8]}};Xz=class Xz extends x{constructor(Z){super();this.content="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Xz().fromBinary(Z,$)}static fromJson(Z,$){return new Xz().fromJson(Z,$)}static fromJsonString(Z,$){return new Xz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Xz,Z,$)}static $(){return["SelectedTerminal|1 content 9|2 title 9?|3 path 9?"]}};zz=class zz extends x{constructor(Z){super();this.content="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new zz().fromBinary(Z,$)}static fromJson(Z,$){return new zz().fromJson(Z,$)}static fromJsonString(Z,$){return new zz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(zz,Z,$)}static $(){return["SelectedTerminalSelection|1 content 9|2 title 9?|3 path 9?|4 range #0",d8]}};Kz=class Kz extends x{constructor(Z){super();this.path="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Kz().fromBinary(Z,$)}static fromJson(Z,$){return new Kz().fromJson(Z,$)}static fromJsonString(Z,$){return new Kz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Kz,Z,$)}static $(){return["SelectedFolder|1 path 9|2 relative_path 9?|3 directory_tree #0",G8]}};Qz=class Qz extends x{constructor(Z){super();this.url="",this.uuid="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Qz().fromBinary(Z,$)}static fromJson(Z,$){return new Qz().fromJson(Z,$)}static fromJsonString(Z,$){return new Qz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Qz,Z,$)}static $(){return["SelectedExternalLink|1 url 9|2 uuid 9|3 pdf_content 9?|4 is_pdf 8?|5 filename 9?|6 blob_id 12?"]}};Hz=class Hz extends x{constructor(Z){super();I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Hz().fromBinary(Z,$)}static fromJson(Z,$){return new Hz().fromJson(Z,$)}static fromJsonString(Z,$){return new Hz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Hz,Z,$)}static $(){return["SelectedCursorRule|1 rule #0",f8]}};Wz=class Wz extends x{constructor(Z){super();this.content="",this.fullContentLengthCharCount=0,I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Wz().fromBinary(Z,$)}static fromJson(Z,$){return new Wz().fromJson(Z,$)}static fromJsonString(Z,$){return new Wz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Wz,Z,$)}static $(){return["SelectedGitDiff|1 content 9|2 full_content_length_char_count 5"]}};qz=class qz extends x{constructor(Z){super();this.content="",this.fullContentLengthCharCount=0,I.util.initPartial(Z,this)}static fromBinary(Z,$){return new qz().fromBinary(Z,$)}static fromJson(Z,$){return new qz().fromJson(Z,$)}static fromJsonString(Z,$){return new qz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(qz,Z,$)}static $(){return["SelectedGitDiffFromBranchToMain|1 content 9|2 full_content_length_char_count 5"]}};Nz=class Nz extends x{constructor(Z){super();this.sha="",this.message="",this.diff="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Nz().fromBinary(Z,$)}static fromJson(Z,$){return new Nz().fromJson(Z,$)}static fromJsonString(Z,$){return new Nz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Nz,Z,$)}static $(){return["SelectedGitCommit|1 sha 9|2 message 9|3 description 9?|4 diff 9"]}};Bz=class Bz extends x{constructor(Z){super();this.number=0,this.url="",this.folderPath="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Bz().fromBinary(Z,$)}static fromJson(Z,$){return new Bz().fromJson(Z,$)}static fromJsonString(Z,$){return new Bz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Bz,Z,$)}static $(){return["SelectedPullRequest|1 number 5|2 url 9|3 title 9?|4 folder_path 9|5 summary_json 9?|6 description 9?|7 blob_id 12?"]}};Fz=class Fz extends x{constructor(Z){super();this.prUrl="",this.filePath="",this.startLine=0,this.endLine=0,I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Fz().fromBinary(Z,$)}static fromJson(Z,$){return new Fz().fromJson(Z,$)}static fromJsonString(Z,$){return new Fz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Fz,Z,$)}static $(){return["SelectedGitPRDiffSelection|1 pr_url 9|2 file_path 9|3 start_line 5|4 end_line 5|5 diff_content 9?|6 blob_id 12?"]}};Gz=class Gz extends x{constructor(Z){super();this.pluginId="",this.capabilityType=kG.UNSPECIFIED,this.sourcePath="",this.snapshotToken="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Gz().fromBinary(Z,$)}static fromJson(Z,$){return new Gz().fromJson(Z,$)}static fromJsonString(Z,$){return new Gz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Gz,Z,$)}static $(){return["SelectedPluginCapabilityRef|1 plugin_id 9|2 capability_type #0|3 source_path 9|4 snapshot_token 9|5 resolved_commit_sha 9?",kG]}};Lz=class Lz extends x{constructor(Z){super();this.name="",this.content="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Lz().fromBinary(Z,$)}static fromJson(Z,$){return new Lz().fromJson(Z,$)}static fromJsonString(Z,$){return new Lz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Lz,Z,$)}static $(){return["SelectedCursorCommand|1 name 9|2 content 9|3 plugin_capability #0?|4 full_path 9?|5 display_name 9?",Gz]}};Dz=class Dz extends x{constructor(Z){super();this.docId="",this.name="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Dz().fromBinary(Z,$)}static fromJson(Z,$){return new Dz().fromJson(Z,$)}static fromJsonString(Z,$){return new Dz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Dz,Z,$)}static $(){return["SelectedDocumentation|1 doc_id 9|2 name 9"]}};wz=class wz extends x{constructor(Z){super();this.agentId="",this.name="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new wz().fromBinary(Z,$)}static fromJson(Z,$){return new wz().fromJson(Z,$)}static fromJsonString(Z,$){return new wz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(wz,Z,$)}static $(){return["SelectedPastChat|1 agent_id 9|2 name 9"]}};Uz=class Uz extends x{constructor(Z){super();this.name="",this.path="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Uz().fromBinary(Z,$)}static fromJson(Z,$){return new Uz().fromJson(Z,$)}static fromJsonString(Z,$){return new Uz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Uz,Z,$)}static $(){return["RecentAgent|1 name 9|2 path 9|3 overview 9?"]}};Oz=class Oz extends x{constructor(Z){super();this.recentAgents=[],I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Oz().fromBinary(Z,$)}static fromJson(Z,$){return new Oz().fromJson(Z,$)}static fromJsonString(Z,$){return new Oz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Oz,Z,$)}static $(){return["RecentAgentsContext|1 recent_agents #0*",Uz]}};Iz=class Iz extends x{constructor(Z){super();I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Iz().fromBinary(Z,$)}static fromJson(Z,$){return new Iz().fromJson(Z,$)}static fromJsonString(Z,$){return new Iz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Iz,Z,$)}static $(){return["CallFrame|1 function_name 9?|2 url 9?|3 line_number 5?|4 column_number 5?"]}};kz=class kz extends x{constructor(Z){super();this.callFrames=[],I.util.initPartial(Z,this)}static fromBinary(Z,$){return new kz().fromBinary(Z,$)}static fromJson(Z,$){return new kz().fromJson(Z,$)}static fromJsonString(Z,$){return new kz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(kz,Z,$)}static $(){return["StackTrace|1 call_frames #0*|2 raw_stack_trace 9?",Iz]}};Pz=class Pz extends x{constructor(Z){super();this.message="",this.timestamp=0,this.level="",this.clientName="",this.sessionId="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Pz().fromBinary(Z,$)}static fromJson(Z,$){return new Pz().fromJson(Z,$)}static fromJsonString(Z,$){return new Pz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Pz,Z,$)}static $(){return["SelectedConsoleLog|1 message 9|2 timestamp 1|3 level 9|4 client_name 9|5 session_id 9|6 stack_trace #0?|7 object_data_json 9?",kz]}};Ez=class Ez extends x{constructor(Z){super();this.element="",this.xpath="",this.textContent="",this.extra="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Ez().fromBinary(Z,$)}static fromJson(Z,$){return new Ez().fromJson(Z,$)}static fromJsonString(Z,$){return new Ez().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Ez,Z,$)}static $(){return["SelectedUIElement|1 element 9|2 xpath 9|3 text_content 9|4 extra 9|5 component 9?|6 component_props_json 9?"]}};fz=class fz extends x{constructor(Z){super();this.name="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new fz().fromBinary(Z,$)}static fromJson(Z,$){return new fz().fromJson(Z,$)}static fromJsonString(Z,$){return new fz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(fz,Z,$)}static $(){return["SelectedSubagent|1 name 9"]}};Vz=class Vz extends x{constructor(Z){super();this.browserId="",this.url="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Vz().fromBinary(Z,$)}static fromJson(Z,$){return new Vz().fromJson(Z,$)}static fromJsonString(Z,$){return new Vz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Vz,Z,$)}static $(){return["SelectedBrowser|1 browser_id 9|2 url 9|3 page_title 9?"]}};Az=class Az extends x{constructor(Z){super();this.filesToCommit=[],this.filesToExcludeFromCommit=[],this.shouldStageAllChanges=!1,this.filesToCommitWithStatus=[],this.filesToExcludeFromCommitWithStatus=[],I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Az().fromBinary(Z,$)}static fromJson(Z,$){return new Az().fromJson(Z,$)}static fromJsonString(Z,$){return new Az().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Az,Z,$)}static $(){return["SelectedAgenticGitActionCommitParams|1 files_to_commit 9*|2 files_to_exclude_from_commit 9*|3 should_stage_all_changes 8|4 create_pr_draft 8?|5 files_to_commit_with_status #0*|6 files_to_exclude_from_commit_with_status #0*",xz]}};Mz=class Mz extends x{constructor(Z){super();I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Mz().fromBinary(Z,$)}static fromJson(Z,$){return new Mz().fromJson(Z,$)}static fromJsonString(Z,$){return new Mz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Mz,Z,$)}static $(){return["SelectedAgenticGitActionCreateBranchParams"]}};xz=class xz extends x{constructor(Z){super();this.path="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new xz().fromBinary(Z,$)}static fromJson(Z,$){return new xz().fromJson(Z,$)}static fromJsonString(Z,$){return new xz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(xz,Z,$)}static $(){return["SelectedAgenticGitFileWithStatus|1 path 9|2 status 9?"]}};Tz=class Tz extends x{constructor(Z){super();this.filesToPush=[],I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Tz().fromBinary(Z,$)}static fromJson(Z,$){return new Tz().fromJson(Z,$)}static fromJsonString(Z,$){return new Tz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Tz,Z,$)}static $(){return["SelectedAgenticGitActionPushParams|1 files_to_push 9*|2 create_pr_draft 8?"]}};Cz=class Cz extends x{constructor(Z){super();I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Cz().fromBinary(Z,$)}static fromJson(Z,$){return new Cz().fromJson(Z,$)}static fromJsonString(Z,$){return new Cz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Cz,Z,$)}static $(){return["SelectedAgenticGitActionFixMergeConflictsParams|1 base_branch 9?|2 pr_url 9?"]}};hz=class hz extends x{constructor(Z){super();I.util.initPartial(Z,this)}static fromBinary(Z,$){return new hz().fromBinary(Z,$)}static fromJson(Z,$){return new hz().fromJson(Z,$)}static fromJsonString(Z,$){return new hz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(hz,Z,$)}static $(){return["SelectedAgenticGitActionBabysitPrInCloudParams|1 base_branch 9?"]}};Rz=class Rz extends x{constructor(Z){super();I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Rz().fromBinary(Z,$)}static fromJson(Z,$){return new Rz().fromJson(Z,$)}static fromJsonString(Z,$){return new Rz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Rz,Z,$)}static $(){return["SelectedAgenticGitActionUpdateBranchParams|1 base_branch 9?"]}};vz=class vz extends x{constructor(Z){super();this.remoteBranch="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new vz().fromBinary(Z,$)}static fromJson(Z,$){return new vz().fromJson(Z,$)}static fromJsonString(Z,$){return new vz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(vz,Z,$)}static $(){return["SelectedAgenticGitActionPullLocallyParams|1 remote_branch 9"]}};yz=class yz extends x{constructor(Z){super();this.params={case:void 0},I.util.initPartial(Z,this)}static fromBinary(Z,$){return new yz().fromBinary(Z,$)}static fromJson(Z,$){return new yz().fromJson(Z,$)}static fromJsonString(Z,$){return new yz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(yz,Z,$)}static $(){return["SelectedAgenticGitAction|2 commit_params #0 params|6 commit_and_push_params #0 params|3 push_params #1 params|7 create_pr_params #1 params|8 create_pr_with_changes_params #0 params|4 fix_merge_conflicts_params #2 params|11 babysit_pr_in_cloud_params #3 params|14 apply_locally_params #4 params|15 checkout_branch_params #4 params|12 create_branch_and_commit_params #0 params|13 create_branch_commit_and_push_params #0 params|16 update_branch_params #5 params|17 create_branch_params #6 params|5 branch_context #7?|9 path_to_template_file 9?|10 path_to_template_dir 9?",Az,Tz,Cz,hz,vz,Rz,Mz,mz]}};mz=class mz extends x{constructor(Z){super();I.util.initPartial(Z,this)}static fromBinary(Z,$){return new mz().fromBinary(Z,$)}static fromJson(Z,$){return new mz().fromJson(Z,$)}static fromJsonString(Z,$){return new mz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(mz,Z,$)}static $(){return["SelectedGitBranchContext|1 current_branch 9?|2 base_branch 9?|3 agent_branch_prefix 9?"]}};i$=class i$ extends x{constructor(Z){super();this.selectedImages=[],this.extraContext=[],this.extraContextEntries=[],this.files=[],this.codeSelections=[],this.terminals=[],this.terminalSelections=[],this.folders=[],this.externalLinks=[],this.cursorRules=[],this.cursorCommands=[],this.documentations=[],this.uiElements=[],this.consoleLogs=[],this.gitCommits=[],this.pastChats=[],this.gitPrDiffSelections=[],this.selectedPullRequests=[],this.selectedSubagents=[],this.selectedVideos=[],this.selectedBrowsers=[],this.selectedDocuments=[],this.selectedSkills=[],I.util.initPartial(Z,this)}static fromBinary(Z,$){return new i$().fromBinary(Z,$)}static fromJson(Z,$){return new i$().fromJson(Z,$)}static fromJsonString(Z,$){return new i$().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(i$,Z,$)}static $(){return["SelectedContext|1 selected_images #0*|2 invocation_context #1?|3 extra_context 9*|16 extra_context_entries #2*|4 files #3*|5 code_selections #4*|6 terminals #5*|7 terminal_selections #6*|8 folders #7*|9 external_links #8*|10 cursor_rules #9*|18 git_diff #10?|11 git_diff_from_branch_to_main #11?|12 cursor_commands #12*|13 documentations #13*|14 ui_elements #14*|15 console_logs #15*|17 git_commits #16*|19 past_chats #17*|20 git_pr_diff_selections #18*|21 selected_pull_requests #19*|22 selected_subagents #20*|23 selected_videos #21*|24 selected_browsers #22*|25 selected_documents #23*|26 selected_skills #24*|27 recent_agents_context #25?|34 selected_agentic_git_action #26?",nX,jz,$z,Jz,Yz,Xz,zz,Kz,Qz,Hz,Wz,qz,Lz,Dz,Ez,Pz,Nz,wz,Fz,Bz,fz,oX,Vz,sX,p$,Oz,yz]}};jz=class jz extends x{constructor(Z){super();this.data={case:void 0},I.util.initPartial(Z,this)}static fromBinary(Z,$){return new jz().fromBinary(Z,$)}static fromJson(Z,$){return new jz().fromJson(Z,$)}static fromJsonString(Z,$){return new jz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(jz,Z,$)}static $(){return["InvocationContext|1 slack_thread #0 data|2 github_pr #1 data|3 ide_state #2 data|4 microsoft_teams_thread #3 data|10 blob_id 12 data",_z,gz,cz,Sz]}};_z=class _z extends x{constructor(Z){super();this.thread="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new _z().fromBinary(Z,$)}static fromJson(Z,$){return new _z().fromJson(Z,$)}static fromJsonString(Z,$){return new _z().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(_z,Z,$)}static $(){return["InvocationContext.SlackThread|1 thread 9|2 channel_name 9?|3 channel_purpose 9?|4 channel_topic 9?|5 sender_name 9?|6 sender_id 9?|7 sender_type 9?|8 is_directly_addressed 8?|9 message_permalink 9?"]}};Sz=class Sz extends x{constructor(Z){super();this.thread="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Sz().fromBinary(Z,$)}static fromJson(Z,$){return new Sz().fromJson(Z,$)}static fromJsonString(Z,$){return new Sz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Sz,Z,$)}static $(){return["InvocationContext.MicrosoftTeamsThread|1 thread 9|2 channel_name 9?|3 team_name 9?|4 channel_description 9?|5 team_description 9?"]}};gz=class gz extends x{constructor(Z){super();this.title="",this.description="",this.comments="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new gz().fromBinary(Z,$)}static fromJson(Z,$){return new gz().fromJson(Z,$)}static fromJsonString(Z,$){return new gz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(gz,Z,$)}static $(){return["InvocationContext.GithubPR|1 title 9|2 description 9|3 comments 9|4 ci_failures 9?|5 code_tour_view #0?",bz]}};bz=class bz extends x{constructor(Z){super();this.headSha="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new bz().fromBinary(Z,$)}static fromJson(Z,$){return new bz().fromJson(Z,$)}static fromJsonString(Z,$){return new bz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(bz,Z,$)}static $(){return["InvocationContext.GithubPR.CodeTourView|1 head_sha 9|2 current_revision_id 9?|3 visible_section_id 9?|4 visible_step_id 9?|5 path_scope_prefix 9?"]}};cz=class cz extends x{constructor(Z){super();this.visibleFiles=[],this.recentlyViewedFiles=[],this.currentlyViewedPrs=[],I.util.initPartial(Z,this)}static fromBinary(Z,$){return new cz().fromBinary(Z,$)}static fromJson(Z,$){return new cz().fromJson(Z,$)}static fromJsonString(Z,$){return new cz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(cz,Z,$)}static $(){return["InvocationContext.IdeState|1 visible_files #0*|2 recently_viewed_files #0*|3 currently_viewed_prs #1*",dz,lz]}};dz=class dz extends x{constructor(Z){super();this.path="",this.totalLines=0,I.util.initPartial(Z,this)}static fromBinary(Z,$){return new dz().fromBinary(Z,$)}static fromJson(Z,$){return new dz().fromJson(Z,$)}static fromJsonString(Z,$){return new dz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(dz,Z,$)}static $(){return["InvocationContext.IdeState.File|1 path 9|2 relative_path 9?|3 cursor_position #0?|4 total_lines 5|5 active_command 9?",uz]}};uz=class uz extends x{constructor(Z){super();this.line=0,this.text="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new uz().fromBinary(Z,$)}static fromJson(Z,$){return new uz().fromJson(Z,$)}static fromJsonString(Z,$){return new uz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(uz,Z,$)}static $(){return["InvocationContext.IdeState.File.CursorPosition|1 line 5|2 text 9"]}};lz=class lz extends x{constructor(Z){super();this.number=0,this.url="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new lz().fromBinary(Z,$)}static fromJson(Z,$){return new lz().fromJson(Z,$)}static fromJsonString(Z,$){return new lz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(lz,Z,$)}static $(){return["InvocationContext.IdeState.ViewedPullRequest|1 number 5|2 url 9|3 title 9?|4 folder_path 9?|5 summary_json 9?|6 description 9?"]}}});import{Message as Ot,proto3 as B,protoInt64 as YH}from"@bufbuild/protobuf";var I8="agent.v1.",f,fQ,fG,VG,AG,OT,IT,kT,pz,n$,iz,nz,rz,az,sz,tz,oz,ez,ZK,$K,JK,YK,XK,zK,r$,KK,QK,HK,WK,qK,h8,NK,BK,FK,GK,LK,DK,wK,UK,OK,IK,kK,PK,EK,R8,fK,VK,MG,AK,MK,z6,K6,v8,xK,a$,TK,Q6,H6,CK,hK,W6,RK,q6,vK,yK,mK,jK,_K,SK,s$,gK,bK,cK,dK,N6,B6,t$,y8,uK,lK,x0,pK,xG,iK,nK,rK;var VQ=O(()=>{IB();RB();mB();jB();gB();dB();eQ();pB();nB();aB();sB();ZF();$F();JF();YF();KF();QF();qF();NF();BF();DF();IF();EF();fF();VF();AF();MF();xF();hF();RF();jF();_F();SF();gF();bF();cF();dF();uF();iF();nF();rF();aF();sF();tF();oF();YG();zG();HG();NG();BG();FG();GG();wG();VB();EG();A();f=class f extends G{static get runtime(){return F(this,"runtime",B)}static $p(){return I8}};fQ=w(B,I8,"AgentMode",[[0,"UNSPECIFIED"],[1,"AGENT"],[2,"ASK"],[3,"PLAN"],[4,"DEBUG"],[5,"TRIAGE"],[7,"MULTITASK"],[8,"CUSTOM"]],1),fG=w(B,I8,"SubagentRunStatus",[[0,"UNSPECIFIED"],[1,"RUNNING"],[2,"BACKGROUNDED"],[3,"SUCCESS"],[4,"ERROR"],[5,"ABORTED"]],1),VG=w(B,I8,"SubagentDispatchTool",[[0,"UNSPECIFIED"],[1,"TASK"],[2,"CREATE_AGENT"],[3,"SEND_TO_AGENT"],[4,"CREATE_PROJECT"]],1),AG=w(B,I8,"CustomModeSource",[[0,"UNSPECIFIED"],[1,"AGENT_SKILL"],[2,"PLUGIN_SKILL"],[3,"REPO_SKILL"],[4,"MANAGED_SKILL"]],1),OT=w(B,I8,"SimulatedMsgReason",[[0,"UNSPECIFIED"],[1,"PLAN_EXECUTION"],[2,"COMMIT_REMINDER"],[3,"BACKGROUND_TASK_COMPLETION"],[4,"DIFF_TAB_COMMIT"],[5,"DIFF_TAB_COMMIT_AND_PUSH"],[6,"DIFF_TAB_PUSH"],[7,"DIFF_TAB_CREATE_PR"],[8,"DIFF_TAB_FIX_MERGE_CONFLICTS"],[9,"USER_SENT_TO_SUBAGENT"],[10,"USER_INTERRUPTED_SUBAGENT"],[11,"USER_QUEUED_TO_SUBAGENT"],[12,"BABYSIT_PR_IN_CLOUD"],[13,"CI_PANEL_INVESTIGATE_FAILURE"],[14,"MULTITASK"],[15,"BUILD_IN_PARALLEL"],[16,"MULTITASK_SPLIT_PRS"],[17,"APPLY_LOCALLY"],[18,"CHECKOUT_BRANCH"],[19,"DIFF_TAB_UPDATE_BRANCH"],[20,"PR_TAB_BUGBOT_FIX"],[22,"RUN_BUGBOT_REVIEW"],[23,"RUN_SECURITY_REVIEW"],[24,"FSD_APPLY_FINDING"],[25,"FSD_UNDO_FINDING"],[26,"FSD_START"],[27,"FSD_PR_INTERRUPT"],[28,"SUBSCRIPTION"],[29,"DIFF_TAB_CREATE_BRANCH"],[30,"AGENT_STORE_CONFLICT"],[31,"GOAL_CONTINUATION"],[32,"PROJECT_KICKOFF"],[33,"MARKDOWN_PROMPT_BUTTON"],[34,"USER_QUICK_ACTION"],[35,"INTERACTION_RESPONSE"]],1),IT=w(B,I8,"SubscriptionSource",[[0,"UNSPECIFIED"],[1,"SLACK"],[2,"GITHUB"],[3,"LINEAR"],[4,"ORIGIN"],[5,"FACTORY"]],1),kT=w(B,I8,"ReplyAudience",[[0,"UNSPECIFIED"],[1,"USER"],[2,"AGENT"]],1);pz=class pz extends f{constructor(Z){super();this.description="",this.prompt="",this.attachments=[],this.mode=qW.UNSPECIFIED,this.respondingToMessageIds=[],this.environment=k6.UNSPECIFIED,B.util.initPartial(Z,this)}static fromBinary(Z,$){return new pz().fromBinary(Z,$)}static fromJson(Z,$){return new pz().fromJson(Z,$)}static fromJsonString(Z,$){return new pz().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(pz,Z,$)}static $(){return["TaskArgs|1 description 9|2 prompt 9|3 subagent_type #0|4 model 9?|5 resume 9?|6 agent_id 9?|7 attachments 9*|8 mode #1|9 responding_to_message_ids 9*|10 environment #2|11 machine #3?",c8,qW,k6,n$]}};n$=class n$ extends f{constructor(Z){super();this.machine={case:void 0},B.util.initPartial(Z,this)}static fromBinary(Z,$){return new n$().fromBinary(Z,$)}static fromJson(Z,$){return new n$().fromJson(Z,$)}static fromJsonString(Z,$){return new n$().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(n$,Z,$)}static $(){return["TargetMachine|1 same_machine #0 machine|2 new_cloud_vm #1 machine|3 self_hosted_worker #2 machine|4 self_hosted_pool #3 machine",iz,nz,rz,az]}};iz=class iz extends f{constructor(Z){super();B.util.initPartial(Z,this)}static fromBinary(Z,$){return new iz().fromBinary(Z,$)}static fromJson(Z,$){return new iz().fromJson(Z,$)}static fromJsonString(Z,$){return new iz().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(iz,Z,$)}static $(){return["SameMachineTarget"]}};nz=class nz extends f{constructor(Z){super();B.util.initPartial(Z,this)}static fromBinary(Z,$){return new nz().fromBinary(Z,$)}static fromJson(Z,$){return new nz().fromJson(Z,$)}static fromJsonString(Z,$){return new nz().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(nz,Z,$)}static $(){return["NewCloudVmTarget|1 environment_build_id 9?|2 base_branch 9?"]}};rz=class rz extends f{constructor(Z){super();this.workerId="",B.util.initPartial(Z,this)}static fromBinary(Z,$){return new rz().fromBinary(Z,$)}static fromJson(Z,$){return new rz().fromJson(Z,$)}static fromJsonString(Z,$){return new rz().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(rz,Z,$)}static $(){return["SelfHostedWorkerTarget|1 worker_id 9"]}};az=class az extends f{constructor(Z){super();this.labels=[],B.util.initPartial(Z,this)}static fromBinary(Z,$){return new az().fromBinary(Z,$)}static fromJson(Z,$){return new az().fromJson(Z,$)}static fromJsonString(Z,$){return new az().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(az,Z,$)}static $(){return["SelfHostedPoolTarget|1 pool 9?|2 labels #0*",sz]}};sz=class sz extends f{constructor(Z){super();this.key="",this.value="",B.util.initPartial(Z,this)}static fromBinary(Z,$){return new sz().fromBinary(Z,$)}static fromJson(Z,$){return new sz().fromJson(Z,$)}static fromJsonString(Z,$){return new sz().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(sz,Z,$)}static $(){return["SelfHostedWorkerLabel|1 key 9|2 value 9"]}};tz=class tz extends f{constructor(Z){super();this.conversationSteps=[],this.isBackground=!1,this.backgroundReason=WW.UNSPECIFIED,B.util.initPartial(Z,this)}static fromBinary(Z,$){return new tz().fromBinary(Z,$)}static fromJson(Z,$){return new tz().fromJson(Z,$)}static fromJsonString(Z,$){return new tz().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(tz,Z,$)}static $(){return["TaskSuccess|1 conversation_steps #0*|2 agent_id 9?|3 is_background 8|4 duration_ms 4?|5 result_suffix 9?|6 background_reason #1|7 transcript_path 9?",h8,WW]}};oz=class oz extends f{constructor(Z){super();this.error="",B.util.initPartial(Z,this)}static fromBinary(Z,$){return new oz().fromBinary(Z,$)}static fromJson(Z,$){return new oz().fromJson(Z,$)}static fromJsonString(Z,$){return new oz().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(oz,Z,$)}static $(){return["TaskError|1 error 9"]}};ez=class ez extends f{constructor(Z){super();this.result={case:void 0},B.util.initPartial(Z,this)}static fromBinary(Z,$){return new ez().fromBinary(Z,$)}static fromJson(Z,$){return new ez().fromJson(Z,$)}static fromJsonString(Z,$){return new ez().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(ez,Z,$)}static $(){return["TaskResult|1 success #0 result|2 error #1 result",tz,oz]}};ZK=class ZK extends f{constructor(Z){super();B.util.initPartial(Z,this)}static fromBinary(Z,$){return new ZK().fromBinary(Z,$)}static fromJson(Z,$){return new ZK().fromJson(Z,$)}static fromJsonString(Z,$){return new ZK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(ZK,Z,$)}static $(){return["TaskToolCall|1 args #0|2 result #1|3 cloud_agent_bc_id 9?",pz,ez]}};$K=class $K extends f{constructor(Z){super();this.path="",this.branchName="",B.util.initPartial(Z,this)}static fromBinary(Z,$){return new $K().fromBinary(Z,$)}static fromJson(Z,$){return new $K().fromJson(Z,$)}static fromJsonString(Z,$){return new $K().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals($K,Z,$)}static $(){return["SetActiveBranchArgs|1 path 9|2 branch_name 9"]}};JK=class JK extends f{constructor(Z){super();B.util.initPartial(Z,this)}static fromBinary(Z,$){return new JK().fromBinary(Z,$)}static fromJson(Z,$){return new JK().fromJson(Z,$)}static fromJsonString(Z,$){return new JK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(JK,Z,$)}static $(){return["SetActiveBranchSuccess"]}};YK=class YK extends f{constructor(Z){super();this.error="",B.util.initPartial(Z,this)}static fromBinary(Z,$){return new YK().fromBinary(Z,$)}static fromJson(Z,$){return new YK().fromJson(Z,$)}static fromJsonString(Z,$){return new YK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(YK,Z,$)}static $(){return["SetActiveBranchError|1 error 9"]}};XK=class XK extends f{constructor(Z){super();this.result={case:void 0},B.util.initPartial(Z,this)}static fromBinary(Z,$){return new XK().fromBinary(Z,$)}static fromJson(Z,$){return new XK().fromJson(Z,$)}static fromJsonString(Z,$){return new XK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(XK,Z,$)}static $(){return["SetActiveBranchResult|1 success #0 result|2 error #1 result",JK,YK]}};zK=class zK extends f{constructor(Z){super();B.util.initPartial(Z,this)}static fromBinary(Z,$){return new zK().fromBinary(Z,$)}static fromJson(Z,$){return new zK().fromJson(Z,$)}static fromJsonString(Z,$){return new zK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(zK,Z,$)}static $(){return["SetActiveBranchToolCall|1 args #0|2 result #1",$K,XK]}};r$=class r$ extends f{constructor(Z){super();this.tool={case:void 0},this.hookAdditionalContexts=[],B.util.initPartial(Z,this)}static fromBinary(Z,$){return new r$().fromBinary(Z,$)}static fromJson(Z,$){return new r$().fromJson(Z,$)}static fromJsonString(Z,$){return new r$().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(r$,Z,$)}static $(){return["ToolCall|1 shell_tool_call #0 tool|3 delete_tool_call #1 tool|4 glob_tool_call #2 tool|5 grep_tool_call #3 tool|8 read_tool_call #4 tool|9 update_todos_tool_call #5 tool|10 read_todos_tool_call #6 tool|12 edit_tool_call #7 tool|13 ls_tool_call #8 tool|14 read_lints_tool_call #9 tool|15 mcp_tool_call #10 tool|16 sem_search_tool_call #11 tool|17 create_plan_tool_call #12 tool|18 web_search_tool_call #13 tool|19 task_tool_call #14 tool|20 list_mcp_resources_tool_call #15 tool|21 read_mcp_resource_tool_call #16 tool|22 apply_agent_diff_tool_call #17 tool|23 ask_question_tool_call #18 tool|24 fetch_tool_call #19 tool|25 switch_mode_tool_call #20 tool|28 generate_image_tool_call #21 tool|29 record_screen_tool_call #22 tool|30 computer_use_tool_call #23 tool|31 write_shell_stdin_tool_call #24 tool|32 reflect_tool_call #25 tool|33 setup_vm_environment_tool_call #26 tool|34 truncated_tool_call #27 tool|35 start_grind_execution_tool_call #28 tool|36 start_grind_planning_tool_call #29 tool|37 web_fetch_tool_call #30 tool|38 report_bugfix_results_tool_call #31 tool|39 ai_attribution_tool_call #32 tool|40 pr_management_tool_call #33 tool|41 mcp_auth_tool_call #34 tool|42 await_tool_call #35 tool|43 blame_by_file_path_tool_call #36 tool|44 get_mcp_tools_tool_call #37 tool|45 report_bug_tool_call #38 tool|46 set_active_branch_tool_call #39 tool|48 communicate_update_tool_call #40 tool|49 send_final_summary_tool_call #41 tool|51 replace_env_tool_call #42 tool|52 edit_pr_labels_tool_call #43 tool|53 record_ci_investigation_findings_tool_call #44 tool|55 send_message_tool_call #45 tool|56 fetch_cloud_agent_data_tool_call #46 tool|58 send_to_user_tool_call #47 tool|68 connect_scm_tool_call #48 tool|69 search_conversations_tool_call #49 tool|70 create_goal_tool_call #50 tool|71 update_goal_tool_call #51 tool|73 get_agent_status_tool_call #52 tool|74 send_to_agent_tool_call #53 tool|75 read_agent_transcript_tool_call #54 tool|76 create_agent_tool_call #55 tool|77 stop_agent_tool_call #56 tool|79 write_canvas_tool_call #57 tool|80 read_canvas_tool_call #58 tool|81 generate_video_tool_call #59 tool|82 x_search_tool_call #60 tool|83 get_origin_pr_code_tour_tool_call #61 tool|84 update_origin_pr_code_tour_tool_call #62 tool|85 list_tracked_tasks_tool_call #63 tool|86 create_tracked_tasks_tool_call #64 tool|87 update_tracked_tasks_tool_call #65 tool|88 delete_tracked_tasks_tool_call #66 tool|89 update_tracked_task_statuses_tool_call #67 tool|90 create_project_tool_call #68 tool|91 update_tracked_task_tags_tool_call #69 tool|93 stop_project_updates_tool_call #70 tool|94 start_project_updates_tool_call #71 tool|54 hook_additional_contexts #72*|57 tool_call_id 9?|59 started_at_ms 4?|60 completed_at_ms 4?",A6,T6,C6,v6,m6,_6,S6,g6,d6,u6,o6,XZ,zZ,HZ,ZK,qZ,NZ,BZ,LZ,OZ,IZ,PZ,MZ,TZ,RZ,vZ,mZ,qK,jZ,_Z,SZ,cZ,uZ,lZ,pZ,aZ,sZ,tZ,oZ,zK,eZ,Z$,J$,Y$,X$,z$,K$,Q$,W$,F$,L$,D$,U$,O$,I$,k$,V$,_$,S$,g$,c$,d$,l$,h$,R$,v$,y$,m$,P$,j$,f$,E$,l8]}};KK=class KK extends f{constructor(Z){super();B.util.initPartial(Z,this)}static fromBinary(Z,$){return new KK().fromBinary(Z,$)}static fromJson(Z,$){return new KK().fromJson(Z,$)}static fromJsonString(Z,$){return new KK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(KK,Z,$)}static $(){return["TruncatedToolCallArgs"]}};QK=class QK extends f{constructor(Z){super();B.util.initPartial(Z,this)}static fromBinary(Z,$){return new QK().fromBinary(Z,$)}static fromJson(Z,$){return new QK().fromJson(Z,$)}static fromJsonString(Z,$){return new QK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(QK,Z,$)}static $(){return["TruncatedToolCallSuccess"]}};HK=class HK extends f{constructor(Z){super();this.error="",B.util.initPartial(Z,this)}static fromBinary(Z,$){return new HK().fromBinary(Z,$)}static fromJson(Z,$){return new HK().fromJson(Z,$)}static fromJsonString(Z,$){return new HK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(HK,Z,$)}static $(){return["TruncatedToolCallError|1 error 9"]}};WK=class WK extends f{constructor(Z){super();this.result={case:void 0},B.util.initPartial(Z,this)}static fromBinary(Z,$){return new WK().fromBinary(Z,$)}static fromJson(Z,$){return new WK().fromJson(Z,$)}static fromJsonString(Z,$){return new WK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(WK,Z,$)}static $(){return["TruncatedToolCallResult|1 success #0 result|2 error #1 result",QK,HK]}};qK=class qK extends f{constructor(Z){super();this.originalStepBlobId=new Uint8Array(0),this.originalStepSizeBytes=0,B.util.initPartial(Z,this)}static fromBinary(Z,$){return new qK().fromBinary(Z,$)}static fromJson(Z,$){return new qK().fromJson(Z,$)}static fromJsonString(Z,$){return new qK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(qK,Z,$)}static $(){return["TruncatedToolCall|1 original_step_blob_id 12|2 args #0|3 result #1|4 original_step_size_bytes 13|5 preview #2",KK,WK,r$]}};h8=class h8 extends f{constructor(Z){super();this.message={case:void 0},B.util.initPartial(Z,this)}static fromBinary(Z,$){return new h8().fromBinary(Z,$)}static fromJson(Z,$){return new h8().fromJson(Z,$)}static fromJsonString(Z,$){return new h8().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(h8,Z,$)}static $(){return["ConversationStep|1 assistant_message #0 message|2 tool_call #1 message|3 thinking_message #2 message",AK,r$,MK]}};NK=class NK extends f{constructor(Z){super();B.util.initPartial(Z,this)}static fromBinary(Z,$){return new NK().fromBinary(Z,$)}static fromJson(Z,$){return new NK().fromJson(Z,$)}static fromJsonString(Z,$){return new NK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(NK,Z,$)}static $(){return["TriggeringUserInfo|1 auth_id 9?|2 user_id 5?|3 followup_id 9?"]}};BK=class BK extends f{constructor(Z){super();this.parentToolCallId="",this.environment=k6.UNSPECIFIED,this.status=fG.UNSPECIFIED,B.util.initPartial(Z,this)}static fromBinary(Z,$){return new BK().fromBinary(Z,$)}static fromJson(Z,$){return new BK().fromJson(Z,$)}static fromJsonString(Z,$){return new BK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(BK,Z,$)}static $(){return["SubagentRunState|1 parent_tool_call_id 9|2 subagent_id 9?|3 environment #0|4 status #1|5 title 9?|6 detail 9?|7 transcript_path 9?|8 output_path 9?|9 completed_timestamp_ms 4?|10 completion_reason #2?",k6,fG,OB]}};FK=class FK extends f{constructor(Z){super();this.stepIndex=0,this.toolCallId="",this.tool=VG.UNSPECIFIED,this.backgrounded=!1,B.util.initPartial(Z,this)}static fromBinary(Z,$){return new FK().fromBinary(Z,$)}static fromJson(Z,$){return new FK().fromJson(Z,$)}static fromJsonString(Z,$){return new FK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(FK,Z,$)}static $(){return["SubagentDispatchStep|1 step_index 13|2 tool_call_id 9|3 tool #0|4 backgrounded 8",VG]}};GK=class GK extends f{constructor(Z){super();this.id="",this.label="",this.source=AG.UNSPECIFIED,B.util.initPartial(Z,this)}static fromBinary(Z,$){return new GK().fromBinary(Z,$)}static fromJson(Z,$){return new GK().fromJson(Z,$)}static fromJsonString(Z,$){return new GK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(GK,Z,$)}static $(){return["SubmittedCustomMode|1 id 9|2 label 9|5 source #0|6 source_path 9?|7 source_hash 9?|10 managed_skill_id 9?|11 plugin_id 9?|12 plugin_snapshot_token 9?",AG]}};LK=class LK extends f{constructor(Z){super();this.id="",this.label="",B.util.initPartial(Z,this)}static fromBinary(Z,$){return new LK().fromBinary(Z,$)}static fromJson(Z,$){return new LK().fromJson(Z,$)}static fromJsonString(Z,$){return new LK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(LK,Z,$)}static $(){return["SubmittedExitedCustomMode|1 id 9|2 label 9"]}};DK=class DK extends f{constructor(Z){super();this.nextMode=fQ.UNSPECIFIED,B.util.initPartial(Z,this)}static fromBinary(Z,$){return new DK().fromBinary(Z,$)}static fromJson(Z,$){return new DK().fromJson(Z,$)}static fromJsonString(Z,$){return new DK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(DK,Z,$)}static $(){return["CustomModeExitIntent|1 next_mode #0|2 exited_mode #1",fQ,LK]}};wK=class wK extends f{constructor(Z){super();this.intent={case:void 0},B.util.initPartial(Z,this)}static fromBinary(Z,$){return new wK().fromBinary(Z,$)}static fromJson(Z,$){return new wK().fromJson(Z,$)}static fromJsonString(Z,$){return new wK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(wK,Z,$)}static $(){return["CustomModeIntent|1 enter #0 intent|2 exit #1 intent",GK,DK]}};UK=class UK extends f{constructor(Z){super();this.interactionId="",this.skippedQuestionIds=[],B.util.initPartial(Z,this)}static fromBinary(Z,$){return new UK().fromBinary(Z,$)}static fromJson(Z,$){return new UK().fromJson(Z,$)}static fromJsonString(Z,$){return new UK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(UK,Z,$)}static $(){return["InteractionResponseMetadata|1 interaction_id 9|2 response #0?|3 skipped_question_ids 9*",nK]}};OK=class OK extends f{constructor(Z){super();B.util.initPartial(Z,this)}static fromBinary(Z,$){return new OK().fromBinary(Z,$)}static fromJson(Z,$){return new OK().fromJson(Z,$)}static fromJsonString(Z,$){return new OK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(OK,Z,$)}static $(){return["SubscriptionEventDisplay|1 display_label 9?|2 resource_url 9?|3 subscription_id 9?"]}};IK=class IK extends f{constructor(Z){super();this.planId="",this.planTitle="",B.util.initPartial(Z,this)}static fromBinary(Z,$){return new IK().fromBinary(Z,$)}static fromJson(Z,$){return new IK().fromJson(Z,$)}static fromJsonString(Z,$){return new IK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(IK,Z,$)}static $(){return["ExecutePlanInfo|1 plan_id 9|2 plan_title 9"]}};kK=class kK extends f{constructor(Z){super();B.util.initPartial(Z,this)}static fromBinary(Z,$){return new kK().fromBinary(Z,$)}static fromJson(Z,$){return new kK().fromJson(Z,$)}static fromJsonString(Z,$){return new kK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(kK,Z,$)}static $(){return["ProjectDetails|1 name 9?|2 subagent #0?|3 side_chat #1?|4 init_description 9?",PK,EK]}};PK=class PK extends f{constructor(Z){super();B.util.initPartial(Z,this)}static fromBinary(Z,$){return new PK().fromBinary(Z,$)}static fromJson(Z,$){return new PK().fromJson(Z,$)}static fromJsonString(Z,$){return new PK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(PK,Z,$)}static $(){return["ProjectSubagentDetails|2 store_dir 9?"]}};EK=class EK extends f{constructor(Z){super();this.storeDir="",B.util.initPartial(Z,this)}static fromBinary(Z,$){return new EK().fromBinary(Z,$)}static fromJson(Z,$){return new EK().fromJson(Z,$)}static fromJsonString(Z,$){return new EK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(EK,Z,$)}static $(){return["ProjectSideChatDetails|1 store_dir 9"]}};R8=class R8 extends f{constructor(Z){super();this.text="",this.messageId="",this.mode=fQ.UNSPECIFIED,this.conversationStateBlobId=new Uint8Array(0),this.hookAdditionalContexts=[],B.util.initPartial(Z,this)}static fromBinary(Z,$){return new R8().fromBinary(Z,$)}static fromJson(Z,$){return new R8().fromJson(Z,$)}static fromJsonString(Z,$){return new R8().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(R8,Z,$)}static $(){return["UserMessage|1 text 9|2 message_id 9|3 selected_context #0?|4 mode #1|5 is_simulated_msg 8?|6 best_of_n_group_id 9?|7 try_use_best_of_n_promotion 8?|8 rich_text 9?|9 simulated_msg_reason #2?|10 conversation_state_blob_id 12|11 subagent_system_reminder 9?|13 triggering_user_info #3?|14 execute_plan_info #4?|15 simulated_message_metadata #5?|16 prompt_reference_id 9?|17 thread_id 9?|18 text_blob_id 12?|19 rich_text_blob_id 12?|21 hook_additional_contexts #6*|22 custom_mode_intent #7?|23 project_details #8?|24 turn_steer 8?|25 started_at_ms 4?|26 completed_at_ms 4?|27 sent_by_agent_id 9?|28 sent_by_voice_call 8?|29 sender #9?|30 forked_context 9?|31 reply_to 9?|32 reply_audience #10?|33 reply_to_tool_call_id 9?|34 during_voice_call 8?|35 inherits_voice_call 8?|36 voice_calls_read_utterances 8?|37 summarized_tool_call_id 9?|38 sender_time_zone 9?",i$,fQ,OT,NK,IK,fK,l8,wK,kK,VK,kT]}};fK=class fK extends f{constructor(Z){super();B.util.initPartial(Z,this)}static fromBinary(Z,$){return new fK().fromBinary(Z,$)}static fromJson(Z,$){return new fK().fromJson(Z,$)}static fromJsonString(Z,$){return new fK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(fK,Z,$)}static $(){return["UserMessage.SimulatedMessageMetadata|1 title 9?|2 task_id 9?|3 fsd_finding_action 9?|4 url 9?|5 subscription_source #0?|6 subscription_event_display #1?|7 interaction_response #2?|8 tool_call_id 9?",IT,OK,UK]}};VK=class VK extends f{constructor(Z){super();this.kind=MG.UNSPECIFIED,this.id="",this.displayName="",B.util.initPartial(Z,this)}static fromBinary(Z,$){return new VK().fromBinary(Z,$)}static fromJson(Z,$){return new VK().fromJson(Z,$)}static fromJsonString(Z,$){return new VK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(VK,Z,$)}static $(){return["MessageSender|1 kind #0|2 id 9|3 display_name 9",MG]}};MG=w(B,I8,"MessageSender.Kind",[[0,"UNSPECIFIED"],[1,"AGENT"],[2,"VOICE_CALL"],[3,"MAIN_BOT"],[4,"PROJECT"],[5,"PROJECT_SLACK"]],1);AK=class AK extends f{constructor(Z){super();this.text="",B.util.initPartial(Z,this)}static fromBinary(Z,$){return new AK().fromBinary(Z,$)}static fromJson(Z,$){return new AK().fromJson(Z,$)}static fromJsonString(Z,$){return new AK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(AK,Z,$)}static $(){return["AssistantMessage|1 text 9|2 started_at_ms 4?|3 completed_at_ms 4?"]}};MK=class MK extends f{constructor(Z){super();this.text="",this.durationMs=0,B.util.initPartial(Z,this)}static fromBinary(Z,$){return new MK().fromBinary(Z,$)}static fromJson(Z,$){return new MK().fromJson(Z,$)}static fromJsonString(Z,$){return new MK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(MK,Z,$)}static $(){return["ThinkingMessage|1 text 9|2 duration_ms 13|3 started_at_ms 4?|4 completed_at_ms 4?"]}};z6=class z6 extends f{constructor(Z){super();this.command="",B.util.initPartial(Z,this)}static fromBinary(Z,$){return new z6().fromBinary(Z,$)}static fromJson(Z,$){return new z6().fromJson(Z,$)}static fromJsonString(Z,$){return new z6().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(z6,Z,$)}static $(){return["ShellCommand|1 command 9"]}};K6=class K6 extends f{constructor(Z){super();this.stdout="",this.stderr="",this.exitCode=0,B.util.initPartial(Z,this)}static fromBinary(Z,$){return new K6().fromBinary(Z,$)}static fromJson(Z,$){return new K6().fromJson(Z,$)}static fromJsonString(Z,$){return new K6().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(K6,Z,$)}static $(){return["ShellOutput|1 stdout 9|2 stderr 9|3 exit_code 5"]}};v8=class v8 extends f{constructor(Z){super();this.turn={case:void 0},B.util.initPartial(Z,this)}static fromBinary(Z,$){return new v8().fromBinary(Z,$)}static fromJson(Z,$){return new v8().fromJson(Z,$)}static fromJsonString(Z,$){return new v8().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(v8,Z,$)}static $(){return["ConversationTurn|1 agent_conversation_turn #0 turn|2 shell_conversation_turn #1 turn",H6,W6]}};xK=class xK extends f{constructor(Z){super();this.plan="",B.util.initPartial(Z,this)}static fromBinary(Z,$){return new xK().fromBinary(Z,$)}static fromJson(Z,$){return new xK().fromJson(Z,$)}static fromJsonString(Z,$){return new xK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(xK,Z,$)}static $(){return["ConversationPlan|1 plan 9"]}};a$=class a$ extends f{constructor(Z){super();this.id="",this.path="",B.util.initPartial(Z,this)}static fromBinary(Z,$){return new a$().fromBinary(Z,$)}static fromJson(Z,$){return new a$().fromJson(Z,$)}static fromJsonString(Z,$){return new a$().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(a$,Z,$)}static $(){return["PlanRegistryEntry|1 id 9|2 path 9"]}};TK=class TK extends f{constructor(Z){super();this.conversationId="",this.goalId="",this.objective="",this.status=w$.UNSPECIFIED,this.idleContinuationsWithoutToolCalls=0,this.continuationCount=0,B.util.initPartial(Z,this)}static fromBinary(Z,$){return new TK().fromBinary(Z,$)}static fromJson(Z,$){return new TK().fromJson(Z,$)}static fromJsonString(Z,$){return new TK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(TK,Z,$)}static $(){return["GoalState|1 conversation_id 9|2 goal_id 9|3 objective 9|4 status #0|5 idle_continuations_without_tool_calls 13|6 active_duration_ms 4?|7 last_accrued_at_ms 4?|8 continuation_count 13|9 agent_session_id 9?|11 context_tokens_added 3?",w$]}};Q6=class Q6 extends f{constructor(Z){super();this.turn={case:void 0},B.util.initPartial(Z,this)}static fromBinary(Z,$){return new Q6().fromBinary(Z,$)}static fromJson(Z,$){return new Q6().fromJson(Z,$)}static fromJsonString(Z,$){return new Q6().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(Q6,Z,$)}static $(){return["ConversationTurnStructure|1 agent_conversation_turn #0 turn|2 shell_conversation_turn #1 turn",CK,RK]}};H6=class H6 extends f{constructor(Z){super();this.steps=[],B.util.initPartial(Z,this)}static fromBinary(Z,$){return new H6().fromBinary(Z,$)}static fromJson(Z,$){return new H6().fromJson(Z,$)}static fromJsonString(Z,$){return new H6().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(H6,Z,$)}static $(){return["AgentConversationTurn|1 user_message #0|2 steps #1*|3 request_id 9?",R8,h8]}};CK=class CK extends f{constructor(Z){super();this.userMessage=new Uint8Array(0),this.steps=[],this.sendMessageStepIndices=[],this.subagentDispatchSteps=[],this.dynamicToolNames=[],this.longReasoningReminderExposureLogged=!1,this.assistantTextStepIndices=[],this.appSecretsRequestStepIndices=[],this.preferenceChangeStepIndices=[],B.util.initPartial(Z,this)}static fromBinary(Z,$){return new CK().fromBinary(Z,$)}static fromJson(Z,$){return new CK().fromJson(Z,$)}static fromJsonString(Z,$){return new CK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(CK,Z,$)}static $(){return["AgentConversationTurnStructure|1 user_message 12|2 steps 12*|3 request_id 9?|4 encrypted_model 9?|5 dynamic_tool_count 13?|6 send_message_step_indices 13*|7 routed_model_display_name 9?|8 subagent_dispatch_steps #0*|9 dynamic_tool_names 9*|10 user_message_id 9?|11 long_reasoning_reminder #1?|12 long_reasoning_reminder_exposure_logged 8|13 assistant_text_step_indices 13*|14 assistant_text_steps_recorded 8?|15 app_secrets_request_step_indices 13*|16 preference_change_step_indices 13*",FK,hK]}};hK=class hK extends f{constructor(Z){super();this.remainingDelayCalls=0,B.util.initPartial(Z,this)}static fromBinary(Z,$){return new hK().fromBinary(Z,$)}static fromJson(Z,$){return new hK().fromJson(Z,$)}static fromJsonString(Z,$){return new hK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(hK,Z,$)}static $(){return["LongReasoningReminderState|1 remaining_delay_calls 13"]}};W6=class W6 extends f{constructor(Z){super();B.util.initPartial(Z,this)}static fromBinary(Z,$){return new W6().fromBinary(Z,$)}static fromJson(Z,$){return new W6().fromJson(Z,$)}static fromJsonString(Z,$){return new W6().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(W6,Z,$)}static $(){return["ShellConversationTurn|1 shell_command #0|2 shell_output #1",z6,K6]}};RK=class RK extends f{constructor(Z){super();this.shellCommand=new Uint8Array(0),this.shellOutput=new Uint8Array(0),B.util.initPartial(Z,this)}static fromBinary(Z,$){return new RK().fromBinary(Z,$)}static fromJson(Z,$){return new RK().fromJson(Z,$)}static fromJsonString(Z,$){return new RK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(RK,Z,$)}static $(){return["ShellConversationTurnStructure|1 shell_command 12|2 shell_output 12"]}};q6=class q6 extends f{constructor(Z){super();this.summary="",B.util.initPartial(Z,this)}static fromBinary(Z,$){return new q6().fromBinary(Z,$)}static fromJson(Z,$){return new q6().fromJson(Z,$)}static fromJsonString(Z,$){return new q6().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(q6,Z,$)}static $(){return["ConversationSummary|1 summary 9"]}};vK=class vK extends f{constructor(Z){super();this.summarizedMessages=[],this.summary="",this.windowTail=0,this.summaryMessage=new Uint8Array(0),B.util.initPartial(Z,this)}static fromBinary(Z,$){return new vK().fromBinary(Z,$)}static fromJson(Z,$){return new vK().fromJson(Z,$)}static fromJsonString(Z,$){return new vK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(vK,Z,$)}static $(){return["ConversationSummaryArchive|1 summarized_messages 12*|2 summary 9|3 window_tail 13|4 summary_message 12"]}};yK=class yK extends f{constructor(Z){super();this.id="",this.label="",this.estimatedTokens=0,B.util.initPartial(Z,this)}static fromBinary(Z,$){return new yK().fromBinary(Z,$)}static fromJson(Z,$){return new yK().fromJson(Z,$)}static fromJsonString(Z,$){return new yK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(yK,Z,$)}static $(){return["PromptTokenBreakdownCategory|1 id 9|2 label 9|3 estimated_tokens 13|4 character_count 13?"]}};mK=class mK extends f{constructor(Z){super();this.totalUsedTokens=0,this.maxTokens=0,this.categories=[],B.util.initPartial(Z,this)}static fromBinary(Z,$){return new mK().fromBinary(Z,$)}static fromJson(Z,$){return new mK().fromJson(Z,$)}static fromJsonString(Z,$){return new mK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(mK,Z,$)}static $(){return["PromptTokenBreakdownSnapshot|1 total_used_tokens 13|2 max_tokens 13|3 categories #0*",yK]}};jK=class jK extends f{constructor(Z){super();this.sourceType="",this.messageIndex=0,this.contentPath="",this.startOffset=0,this.endOffset=0,B.util.initPartial(Z,this)}static fromBinary(Z,$){return new jK().fromBinary(Z,$)}static fromJson(Z,$){return new jK().fromJson(Z,$)}static fromJsonString(Z,$){return new jK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(jK,Z,$)}static $(){return["PromptContextSourceRef|1 source_type 9|3 message_index 13|4 content_path 9|5 start_offset 13|6 end_offset 13"]}};_K=class _K extends f{constructor(Z){super();this.id="",this.kind="",this.label="",this.categoryId="",this.estimatedTokens=0,this.characterCount=0,this.contentAvailable=!1,B.util.initPartial(Z,this)}static fromBinary(Z,$){return new _K().fromBinary(Z,$)}static fromJson(Z,$){return new _K().fromJson(Z,$)}static fromJsonString(Z,$){return new _K().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(_K,Z,$)}static $(){return["PromptContextNode|1 id 9|2 parent_id 9?|3 kind 9|4 label 9|5 category_id 9|6 estimated_tokens 13|7 character_count 13|9 content_available 8|11 source #0?|12 inline_content 9?",jK]}};SK=class SK extends f{constructor(Z){super();this.schemaVersion=0,this.nodes=[],B.util.initPartial(Z,this)}static fromBinary(Z,$){return new SK().fromBinary(Z,$)}static fromJson(Z,$){return new SK().fromJson(Z,$)}static fromJsonString(Z,$){return new SK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(SK,Z,$)}static $(){return["PromptContextUsageTree|1 schema_version 13|2 nodes #0*",_K]}};s$=class s$ extends f{constructor(Z){super();this.usedTokens=0,this.maxTokens=0,B.util.initPartial(Z,this)}static fromBinary(Z,$){return new s$().fromBinary(Z,$)}static fromJson(Z,$){return new s$().fromJson(Z,$)}static fromJsonString(Z,$){return new s$().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(s$,Z,$)}static $(){return["ConversationTokenDetails|1 used_tokens 13|2 max_tokens 13|3 breakdown #0?|4 prompt_context_usage_tree #1?",mK,SK]}};gK=class gK extends f{constructor(Z){super();B.util.initPartial(Z,this)}static fromBinary(Z,$){return new gK().fromBinary(Z,$)}static fromJson(Z,$){return new gK().fromJson(Z,$)}static fromJsonString(Z,$){return new gK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(gK,Z,$)}static $(){return["FileState|1 content 9?|2 initial_content 9?"]}};bK=class bK extends f{constructor(Z){super();B.util.initPartial(Z,this)}static fromBinary(Z,$){return new bK().fromBinary(Z,$)}static fromJson(Z,$){return new bK().fromJson(Z,$)}static fromJsonString(Z,$){return new bK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(bK,Z,$)}static $(){return["FileStateStructure|1 content 12?|2 initial_content 12?"]}};cK=class cK extends f{constructor(Z){super();this.durationMs=YH.zero,this.timestampMs=YH.zero,B.util.initPartial(Z,this)}static fromBinary(Z,$){return new cK().fromBinary(Z,$)}static fromJson(Z,$){return new cK().fromJson(Z,$)}static fromJsonString(Z,$){return new cK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(cK,Z,$)}static $(){return["StepTiming|1 duration_ms 4|2 timestamp_ms 4"]}};dK=class dK extends f{constructor(Z){super();this.completedTurnCountCapped=0,B.util.initPartial(Z,this)}static fromBinary(Z,$){return new dK().fromBinary(Z,$)}static fromJson(Z,$){return new dK().fromJson(Z,$)}static fromJsonString(Z,$){return new dK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(dK,Z,$)}static $(){return["TurnTelemetryState|1 completed_turn_count_capped 13|2 last_completed_turn_timestamp_ms 4?"]}};N6=class N6 extends f{constructor(Z){super();this.rootPromptMessagesJson=[],this.turns=[],this.todos=[],this.pendingToolCalls=[],this.fileStates={},this.summaryArchives=[],this.plans={},this.communicateUpdateHistory=[],this.communicateUpdateStatesByParentToolCallId={},B.util.initPartial(Z,this)}static fromBinary(Z,$){return new N6().fromBinary(Z,$)}static fromJson(Z,$){return new N6().fromJson(Z,$)}static fromJsonString(Z,$){return new N6().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(N6,Z,$)}static $(){return["ConversationState|1 root_prompt_messages_json 9*|8 turns #0*|3 todos #1*|4 pending_tool_calls 9*|5 token_details #2|6 summary #3?|7 plan #4?|9 summary_archive #5?|10 file_states 9,#6|11 summary_archives #5*|12 plans 9,#7|13 communicate_update_history #8*|14 communicate_update_final_summary 9?|15 communicate_update_completed_subtitle 9?|16 communicate_update_states_by_parent_tool_call_id 9,#9",v8,B0,s$,q6,xK,vK,gK,a$,B6,t$]}};B6=class B6 extends f{constructor(Z){super();this.step="",this.messageIndex=0,B.util.initPartial(Z,this)}static fromBinary(Z,$){return new B6().fromBinary(Z,$)}static fromJson(Z,$){return new B6().fromJson(Z,$)}static fromJsonString(Z,$){return new B6().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(B6,Z,$)}static $(){return["CommunicateUpdateHistoryEntry|1 step 9|3 message_index 13"]}};t$=class t$ extends f{constructor(Z){super();this.history=[],B.util.initPartial(Z,this)}static fromBinary(Z,$){return new t$().fromBinary(Z,$)}static fromJson(Z,$){return new t$().fromJson(Z,$)}static fromJsonString(Z,$){return new t$().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(t$,Z,$)}static $(){return["CommunicateUpdateTurnState|1 history #0*|2 final_summary 9?|3 completed_subtitle 9?",B6]}};y8=class y8 extends f{constructor(Z){super();this.createdTimestampMs=YH.zero,this.lastUsedTimestampMs=YH.zero,this.environment=k6.UNSPECIFIED,B.util.initPartial(Z,this)}static fromBinary(Z,$){return new y8().fromBinary(Z,$)}static fromJson(Z,$){return new y8().fromJson(Z,$)}static fromJsonString(Z,$){return new y8().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(y8,Z,$)}static $(){return["SubagentPersistedState|1 conversation_state #0|2 created_timestamp_ms 4|3 last_used_timestamp_ms 4|4 subagent_type #1|5 model_id 9?|6 environment #2|7 cloud_subagent #3?|8 first_class_bc_id 9?|9 cloud_requested_environment_build_id 9?|10 machine #4?",x0,c8,k6,uK,n$]}};uK=class uK extends f{constructor(Z){super();this.bcId="",B.util.initPartial(Z,this)}static fromBinary(Z,$){return new uK().fromBinary(Z,$)}static fromJson(Z,$){return new uK().fromJson(Z,$)}static fromJsonString(Z,$){return new uK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(uK,Z,$)}static $(){return["CloudSubagentReference|1 bc_id 9|2 transcript_path 9?"]}};lK=class lK extends f{constructor(Z){super();this.repoPath="",this.branchName="",B.util.initPartial(Z,this)}static fromBinary(Z,$){return new lK().fromBinary(Z,$)}static fromJson(Z,$){return new lK().fromJson(Z,$)}static fromJsonString(Z,$){return new lK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(lK,Z,$)}static $(){return["TrackedGitRepo|1 repo_path 9|2 branch_name 9"]}};x0=class x0 extends f{constructor(Z){super();this.rootPromptMessagesJson=[],this.turns=[],this.todos=[],this.pendingToolCalls=[],this.previousWorkspaceUris=[],this.fileStates={},this.fileStatesV2={},this.summaryArchives=[],this.turnTimings=[],this.subagentStates={},this.selfSummaryCount=0,this.readPaths=[],this.plans={},this.trackedGitRepoBranches=[],this.communicateUpdateHistory=[],this.subagentThreads={},this.communicateUpdateStatesByParentToolCallId={},this.subagentRunsByParentToolCallId={},this.subagentStateRefs={},this.completedAskQuestionToolCallIds=[],this.durableSkillBlocks=[],this.recentUserMessageIds=[],this.mentionedAgentIds=[],this.voiceCallUtterances=[],this.voiceCallTimeTaskIds=[],this.writesVoiceCallUtterances=!1,B.util.initPartial(Z,this)}static fromBinary(Z,$){return new x0().fromBinary(Z,$)}static fromJson(Z,$){return new x0().fromJson(Z,$)}static fromJsonString(Z,$){return new x0().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(x0,Z,$)}static $(){return["ConversationStateStructure|1 root_prompt_messages_json 12*|8 turns 12*|3 todos 12*|4 pending_tool_calls 9*|5 token_details #0|6 summary 12?|7 plan 12?|9 previous_workspace_uris 9*|10 mode #1?|11 summary_archive 12?|12 file_states 9,12|15 file_states_v2 9,#2|13 summary_archives 12*|14 turn_timings #3*|16 subagent_states 9,#4|17 self_summary_count 13|18 read_paths 9*|19 active_branch_name 9?|20 plans 9,#5|21 tracked_git_repo_branches #6*|22 agent_type 9?|23 communicate_update_history #7*|24 subagent_threads 9,9|25 communicate_update_final_summary 9?|28 communicate_update_completed_subtitle 9?|29 communicate_update_states_by_parent_tool_call_id 9,#8|30 subagent_runs_by_parent_tool_call_id 9,#9|26 conversation_started_timestamp_ms 4?|27 conversation_started_time_zone 9?|31 subagent_state_refs 9,12|32 goal_state #10?|33 is_root_project_conversation 8?|34 completed_ask_question_tool_call_ids 9*|35 durable_skill_blocks 9*|36 durable_custom_mode_id 9?|37 message_count_at_last_compaction 13?|38 recent_user_message_ids 9*|39 recent_user_message_ids_older_turn_count 13?|40 turn_telemetry #11?|42 mentioned_agent_ids 9*|43 voice_call_utterances #12*|44 voice_call_pending_answer #13?|45 voice_call_time_task_ids 9*|46 writes_voice_call_utterances 8|47 voice_calls_read_utterances 8?|49 user_time_zone 9?|50 project_coordinator_system_section 9?|51 project_coordinator_system_section_communication_rules 8?",s$,fQ,bK,cK,y8,a$,lK,B6,t$,BK,TK,dK,pK,iK]}};pK=class pK extends f{constructor(Z){super();this.id="",this.kind=xG.UNSPECIFIED,this.text="",this.answersMessageIds=[],B.util.initPartial(Z,this)}static fromBinary(Z,$){return new pK().fromBinary(Z,$)}static fromJson(Z,$){return new pK().fromJson(Z,$)}static fromJsonString(Z,$){return new pK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(pK,Z,$)}static $(){return["VoiceCallUtterance|1 id 9|2 kind #0|3 text 9|4 answers_message_ids 9*",xG]}};xG=w(B,I8,"VoiceCallUtterance.Kind",[[0,"UNSPECIFIED"],[1,"SEND"],[2,"TERMINAL"]],1);iK=class iK extends f{constructor(Z){super();this.messageIds=[],this.readsUtterances=!1,this.endedOnSend=!1,B.util.initPartial(Z,this)}static fromBinary(Z,$){return new iK().fromBinary(Z,$)}static fromJson(Z,$){return new iK().fromJson(Z,$)}static fromJsonString(Z,$){return new iK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(iK,Z,$)}static $(){return["VoiceCallPendingAnswer|1 message_ids 9*|2 reads_utterances 8|3 ended_on_send 8"]}};nK=class nK extends f{constructor(Z){super();this.id=0,this.result={case:void 0},B.util.initPartial(Z,this)}static fromBinary(Z,$){return new nK().fromBinary(Z,$)}static fromJson(Z,$){return new nK().fromJson(Z,$)}static fromJsonString(Z,$){return new nK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(nK,Z,$)}static $(){return["InteractionResponse|1 id 13|2 web_search_request_response #0 result|3 ask_question_interaction_response #1 result|4 switch_mode_request_response #2 result|7 create_plan_request_response #3 result|8 setup_vm_environment_result #4 result|9 web_fetch_request_response #5 result|10 pr_management_result #6 result|11 mcp_auth_request_response #7 result|12 generate_image_request_response #8 result|13 replace_env_result #9 result|14 connect_scm_request_response #10 result",WZ,rK,kZ,QZ,s8,gZ,t8,iZ,EZ,e8,q$]}};rK=class rK extends f{constructor(Z){super();B.util.initPartial(Z,this)}static fromBinary(Z,$){return new rK().fromBinary(Z,$)}static fromJson(Z,$){return new rK().fromJson(Z,$)}static fromJsonString(Z,$){return new rK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(rK,Z,$)}static $(){return["AskQuestionInteractionResponse|1 result #0",r8]}}});var U=W((dG)=>{Object.defineProperty(dG,"__esModule",{value:!0});dG.createNotification=dG.nextNotification=dG.errorNotification=dG.COMPLETE_NOTIFICATION=dG.isObservable=dG.isArrayLike=dG.isPromise=dG.readableStreamLikeToAsyncGenerator=dG.isFunction=dG.getObservableInputType=dG.ObservableInputType=dG.subscribeToArray=dG.fromPromise=dG.fromArrayLike=dG.from=dG.reportUnhandledError=dG.Observable=dG.operate=dG.config=dG.Subscriber=dG.Subscription=dG.UnsubscriptionError=void 0;class AQ extends Error{errors;constructor(Z){super(Z?`${Z.length} errors occurred during unsubscription:
|
|
2
|
+
var rM=Object.create;var{getPrototypeOf:aM,defineProperty:WW,getOwnPropertyNames:sM}=Object;var tM=Object.prototype.hasOwnProperty;var wB=(Z,$,J)=>{J=Z!=null?rM(aM(Z)):{};let Y=$||!Z||!Z.__esModule?WW(J,"default",{value:Z,enumerable:!0}):J;for(let X of sM(Z))if(!tM.call(Y,X))WW(Y,X,{get:()=>Z[X],enumerable:!0});return Y};var W=(Z,$)=>()=>($||Z(($={exports:{}}).exports,$),$.exports);var I6=(Z,$)=>{for(var J in $)WW(Z,J,{get:$[J],enumerable:!0,configurable:!0,set:(Y)=>$[J]=()=>Y})};var O=(Z,$)=>()=>(Z&&($=Z(Z=0)),$);import{Message as oM}from"@bufbuild/protobuf";function F(Z,$,J){return Object.defineProperty(Z,$,{value:J,writable:!0,enumerable:!0,configurable:!0}),J}function UB(Z,$,J){if(J.charAt(0)!=="#")return{kind:"scalar",T:Number(J)};let Y=$[Number(J.slice(1))];return typeof Y==="function"?{kind:"message",T:Y}:{kind:"enum",T:Z.getEnumType(Y)}}function Zx(Z){if(Z==="?")return{opt:!0};if(Z==="*")return{repeated:!0};return Z===void 0?eM:{oneof:Z}}function $x(Z,$){let[J,...Y]=$,X=J.split("|"),z=[];for(let K=1;K<X.length;K++){let H=X[K].split(" "),q,L=H[H.length-1];if(L!==void 0&&L.charAt(0)==="=")q=L.slice(1),H.pop();let w=Number(H[0]),E=H[1],P=H[2],M=H[3],V=P.charAt(P.length-1);if(V==="?"||V==="*")M=V,P=P.slice(0,-1);let y=P.indexOf(",");if(y!==-1){let a={no:w,name:E,kind:"map",K:Number(P.slice(0,y)),V:UB(Z,Y,P.slice(y+1))};if(q!==void 0)a.jsonName=q;z.push(a);continue}let Y0=Object.assign({no:w,name:E},UB(Z,Y,P),Zx(M));if(q!==void 0)Y0.jsonName=q;z.push(Y0)}return z}function Jx(Z){let $=Z[0],J=$.indexOf("|");return J===-1?$:$.slice(0,J)}function Yx(Z){return"$"in Z&&typeof Z.$==="function"&&"$p"in Z&&typeof Z.$p==="function"}function OB(Z){if(!Yx(Z))throw TypeError(`${Z.name} has no compact message descriptor`);return Z}function Xx(Z,$){let J=(Z.charAt(0)+Z.slice(1).replace(/[A-Z]/g,(X)=>"_"+X)).toLowerCase()+"_",Y=[];for(let X of $){if(!X.toLowerCase().startsWith(J))return $.slice();let z=X.slice(J.length);if(z===""||/^[0-9]/.test(z))return $.slice();Y.push(z)}return Y}function zx(Z){return(Z.charAt(0)+Z.slice(1).replace(/[A-Z]/g,($)=>"_"+$)).toUpperCase()+"_"}function D(Z,$,J,Y,X){let z=J.slice(J.lastIndexOf(".")+1),K,H;if(X===1){let w=zx(z);H=Y.map((E)=>E[1]),K=H.map((E)=>w+E)}else K=Y.map((w)=>w[1]),H=X===void 0?Xx(z,K):X;let q={},L=[];for(let w=0;w<Y.length;w++){let E=Y[w][0];q[H[w]]=E,q[E]=H[w],L.push({no:E,name:K[w]})}return Z.util.setEnumType(q,$+J,L),q}var eM,G;var A=O(()=>{eM={};G=class G extends oM{static get typeName(){let Z=OB(this);return F(Z,"typeName",Z.$p()+Jx(Z.$()))}static get fields(){let Z=OB(this),$=Z.$(),J=Z.runtime,Y=()=>$x(J,$);return F(Z,"fields",J.util.newFieldList(Y))}}});import{Message as wp,proto3 as m}from"@bufbuild/protobuf";var UQ="agent.v1.",E0,k6,qW,IB,NW,c8,N9,B9,F9,G9,L9,D9,w9,U9,O9,I9,k9,P9;var kB=O(()=>{A();E0=class E0 extends G{static get runtime(){return F(this,"runtime",m)}static $p(){return UQ}};k6=D(m,UQ,"SubagentExecutionEnvironment",[[0,"UNSPECIFIED"],[1,"LOCAL"],[2,"CLOUD"]],1),qW=D(m,UQ,"SubagentBackgroundReason",[[0,"UNSPECIFIED"],[1,"AGENT_REQUEST"],[2,"USER_REQUEST"],[3,"QUEUED_FOLLOW_UP"]],1),IB=D(m,UQ,"BackgroundTaskCompletionReason",[[0,"UNSPECIFIED"],[1,"TASK_FINISHED"],[2,"TASK_PROGRESS"],[3,"WORKER_REPARENTED"],[4,"WORKER_MESSAGE"],[5,"WORKER_NEEDS_ATTENTION"],[6,"PROJECT_SESSION_MESSAGE"]],1),NW=D(m,UQ,"TaskMode",[[0,"UNSPECIFIED"],[1,"AGENT"],[2,"PLAN"]],1);c8=class c8 extends E0{constructor(Z){super();this.type={case:void 0},m.util.initPartial(Z,this)}static fromBinary(Z,$){return new c8().fromBinary(Z,$)}static fromJson(Z,$){return new c8().fromJson(Z,$)}static fromJsonString(Z,$){return new c8().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(c8,Z,$)}static $(){return["SubagentType|1 unspecified #0 type|2 computer_use #1 type|3 custom #2 type|4 explore #3 type|5 media_review #4 type|6 bash #5 type|7 browser_use #6 type|8 shell #7 type|9 vm_setup_helper #8 type|10 debug #9 type|11 cursor_guide #10 type|12 watch_video #11 type",N9,B9,P9,F9,G9,L9,w9,D9,U9,O9,I9,k9]}};N9=class N9 extends E0{constructor(Z){super();m.util.initPartial(Z,this)}static fromBinary(Z,$){return new N9().fromBinary(Z,$)}static fromJson(Z,$){return new N9().fromJson(Z,$)}static fromJsonString(Z,$){return new N9().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(N9,Z,$)}static $(){return["SubagentTypeUnspecified"]}};B9=class B9 extends E0{constructor(Z){super();m.util.initPartial(Z,this)}static fromBinary(Z,$){return new B9().fromBinary(Z,$)}static fromJson(Z,$){return new B9().fromJson(Z,$)}static fromJsonString(Z,$){return new B9().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(B9,Z,$)}static $(){return["SubagentTypeComputerUse"]}};F9=class F9 extends E0{constructor(Z){super();m.util.initPartial(Z,this)}static fromBinary(Z,$){return new F9().fromBinary(Z,$)}static fromJson(Z,$){return new F9().fromJson(Z,$)}static fromJsonString(Z,$){return new F9().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(F9,Z,$)}static $(){return["SubagentTypeExplore"]}};G9=class G9 extends E0{constructor(Z){super();m.util.initPartial(Z,this)}static fromBinary(Z,$){return new G9().fromBinary(Z,$)}static fromJson(Z,$){return new G9().fromJson(Z,$)}static fromJsonString(Z,$){return new G9().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(G9,Z,$)}static $(){return["SubagentTypeMediaReview"]}};L9=class L9 extends E0{constructor(Z){super();m.util.initPartial(Z,this)}static fromBinary(Z,$){return new L9().fromBinary(Z,$)}static fromJson(Z,$){return new L9().fromJson(Z,$)}static fromJsonString(Z,$){return new L9().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(L9,Z,$)}static $(){return["SubagentTypeBash"]}};D9=class D9 extends E0{constructor(Z){super();m.util.initPartial(Z,this)}static fromBinary(Z,$){return new D9().fromBinary(Z,$)}static fromJson(Z,$){return new D9().fromJson(Z,$)}static fromJsonString(Z,$){return new D9().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(D9,Z,$)}static $(){return["SubagentTypeShell"]}};w9=class w9 extends E0{constructor(Z){super();m.util.initPartial(Z,this)}static fromBinary(Z,$){return new w9().fromBinary(Z,$)}static fromJson(Z,$){return new w9().fromJson(Z,$)}static fromJsonString(Z,$){return new w9().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(w9,Z,$)}static $(){return["SubagentTypeBrowserUse"]}};U9=class U9 extends E0{constructor(Z){super();m.util.initPartial(Z,this)}static fromBinary(Z,$){return new U9().fromBinary(Z,$)}static fromJson(Z,$){return new U9().fromJson(Z,$)}static fromJsonString(Z,$){return new U9().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(U9,Z,$)}static $(){return["SubagentTypeVmSetupHelper"]}};O9=class O9 extends E0{constructor(Z){super();m.util.initPartial(Z,this)}static fromBinary(Z,$){return new O9().fromBinary(Z,$)}static fromJson(Z,$){return new O9().fromJson(Z,$)}static fromJsonString(Z,$){return new O9().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(O9,Z,$)}static $(){return["SubagentTypeDebug"]}};I9=class I9 extends E0{constructor(Z){super();m.util.initPartial(Z,this)}static fromBinary(Z,$){return new I9().fromBinary(Z,$)}static fromJson(Z,$){return new I9().fromJson(Z,$)}static fromJsonString(Z,$){return new I9().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(I9,Z,$)}static $(){return["SubagentTypeCursorGuide"]}};k9=class k9 extends E0{constructor(Z){super();m.util.initPartial(Z,this)}static fromBinary(Z,$){return new k9().fromBinary(Z,$)}static fromJson(Z,$){return new k9().fromJson(Z,$)}static fromJsonString(Z,$){return new k9().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(k9,Z,$)}static $(){return["SubagentTypeWatchVideo"]}};P9=class P9 extends E0{constructor(Z){super();this.name="",m.util.initPartial(Z,this)}static fromBinary(Z,$){return new P9().fromBinary(Z,$)}static fromJson(Z,$){return new P9().fromJson(Z,$)}static fromJsonString(Z,$){return new P9().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(P9,Z,$)}static $(){return["SubagentTypeCustom|1 name 9"]}}});import{Message as kp,proto3 as B8}from"@bufbuild/protobuf";var oQ="agent.v1.",eQ,E9,f9,Kx,m0,PB,EB;var ZH=O(()=>{A();eQ=class eQ extends G{static get runtime(){return F(this,"runtime",B8)}static $p(){return oQ}};E9=class E9 extends eQ{constructor(Z){super();B8.util.initPartial(Z,this)}static fromBinary(Z,$){return new E9().fromBinary(Z,$)}static fromJson(Z,$){return new E9().fromJson(Z,$)}static fromJsonString(Z,$){return new E9().fromJsonString(Z,$)}static equals(Z,$){return B8.util.equals(E9,Z,$)}static $(){return["NetworkPolicyLoggingConfig|1 decision_log_path 9?|2 log_format 9?"]}};f9=class f9 extends eQ{constructor(Z){super();this.deny=[],this.allow=[],B8.util.initPartial(Z,this)}static fromBinary(Z,$){return new f9().fromBinary(Z,$)}static fromJson(Z,$){return new f9().fromJson(Z,$)}static fromJsonString(Z,$){return new f9().fromJsonString(Z,$)}static equals(Z,$){return B8.util.equals(f9,Z,$)}static $(){return["NetworkPolicy|1 version 13?|2 default_action #0?|3 deny 9*|4 allow 9*|5 logging #1?",Kx,E9]}};Kx=D(B8,oQ,"NetworkPolicy.DefaultAction",[[0,"UNSPECIFIED"],[1,"ALLOW"],[2,"DENY"]],1);m0=class m0 extends eQ{constructor(Z){super();this.type=PB.UNSPECIFIED,this.additionalReadwritePaths=[],this.additionalReadonlyPaths=[],this.readBoundary=EB.UNSPECIFIED,this.additionalReadPaths=[],B8.util.initPartial(Z,this)}static fromBinary(Z,$){return new m0().fromBinary(Z,$)}static fromJson(Z,$){return new m0().fromJson(Z,$)}static fromJsonString(Z,$){return new m0().fromJsonString(Z,$)}static equals(Z,$){return B8.util.equals(m0,Z,$)}static $(){return["SandboxPolicy|1 type #0|2 network_access 8?|3 additional_readwrite_paths 9*|4 additional_readonly_paths 9*|5 debug_output_dir 9?|7 disable_tmp_write 8?|8 allowlist_escalated 8?|9 enable_shared_build_cache 8?|10 network_policy #1?|11 network_policy_strict 8?|12 capture_denies 8?|13 skip_statsig_defaults 8?|14 read_boundary #2|15 additional_read_paths 9*|16 allow_user_override_read_paths 8?",PB,f9,EB]}};PB=D(B8,oQ,"SandboxPolicy.Type",[[0,"UNSPECIFIED"],[1,"INSECURE_NONE"],[2,"WORKSPACE_READWRITE"],[3,"WORKSPACE_READONLY"]],1),EB=D(B8,oQ,"SandboxPolicy.ReadBoundaryMode",[[0,"UNSPECIFIED"],[1,"SYSTEM"],[2,"WORKSPACE"]],1)});import{Message as Vp,proto3 as E8,protoInt64 as fB}from"@bufbuild/protobuf";var Qx="agent.v1.",OQ,d8,u8,N0,n0;var P6=O(()=>{A();OQ=class OQ extends G{static get runtime(){return F(this,"runtime",E8)}static $p(){return Qx}};d8=class d8 extends OQ{constructor(Z){super();E8.util.initPartial(Z,this)}static fromBinary(Z,$){return new d8().fromBinary(Z,$)}static fromJson(Z,$){return new d8().fromJson(Z,$)}static fromJsonString(Z,$){return new d8().fromJsonString(Z,$)}static equals(Z,$){return E8.util.equals(d8,Z,$)}static $(){return["Range|1 start #0|2 end #0",u8]}};u8=class u8 extends OQ{constructor(Z){super();this.line=0,this.column=0,E8.util.initPartial(Z,this)}static fromBinary(Z,$){return new u8().fromBinary(Z,$)}static fromJson(Z,$){return new u8().fromJson(Z,$)}static fromJsonString(Z,$){return new u8().fromJsonString(Z,$)}static equals(Z,$){return E8.util.equals(u8,Z,$)}static $(){return["Position|1 line 13|2 column 13"]}};N0=class N0 extends OQ{constructor(Z){super();this.filePath="",this.sizeBytes=fB.zero,this.lineCount=fB.zero,E8.util.initPartial(Z,this)}static fromBinary(Z,$){return new N0().fromBinary(Z,$)}static fromJson(Z,$){return new N0().fromJson(Z,$)}static fromJsonString(Z,$){return new N0().fromJsonString(Z,$)}static equals(Z,$){return E8.util.equals(N0,Z,$)}static $(){return["OutputLocation|1 file_path 9|2 size_bytes 3|3 line_count 3"]}};n0=class n0 extends OQ{constructor(Z){super();this.requestId="",this.reason="",E8.util.initPartial(Z,this)}static fromBinary(Z,$){return new n0().fromBinary(Z,$)}static fromJson(Z,$){return new n0().fromJson(Z,$)}static fromJsonString(Z,$){return new n0().fromJsonString(Z,$)}static equals(Z,$){return E8.util.equals(n0,Z,$)}static $(){return["SmartModeApproval|1 request_id 9|2 reason 9"]}}});import{Message as Tp,proto3 as BW}from"@bufbuild/protobuf";var Hx="agent.v1.",VB,l8;var AB=O(()=>{A();VB=class VB extends G{static get runtime(){return F(this,"runtime",BW)}static $p(){return Hx}};l8=class l8 extends VB{constructor(Z){super();this.hookEventName="",this.content="",BW.util.initPartial(Z,this)}static fromBinary(Z,$){return new l8().fromBinary(Z,$)}static fromJson(Z,$){return new l8().fromJson(Z,$)}static fromJsonString(Z,$){return new l8().fromJsonString(Z,$)}static equals(Z,$){return BW.util.equals(l8,Z,$)}static $(){return["HookAdditionalContext|1 hook_event_name 9|2 content 9"]}}});import{Message as vp,proto3 as R,protoInt64 as Wx}from"@bufbuild/protobuf";var V6="agent.v1.",J0,MB,qx,Nx,V9,A9,M9,x9,T9,xB,C9,h9,R9,TB,E6,f6,v9,CB,y9,m9,j9,_9,S9,g9;var hB=O(()=>{ZH();P6();A();J0=class J0 extends G{static get runtime(){return F(this,"runtime",R)}static $p(){return V6}};MB=D(R,V6,"TimeoutBehavior",[[0,"UNSPECIFIED"],[1,"CANCEL"],[2,"BACKGROUND"]],1),qx=D(R,V6,"ShellBackgroundReason",[[0,"UNSPECIFIED"],[1,"TIMEOUT"],[2,"USER_REQUEST"]],1),Nx=D(R,V6,"ShellAbortReason",[[0,"UNSPECIFIED"],[1,"USER_ABORT"],[2,"TIMEOUT"]],1);V9=class V9 extends J0{constructor(Z){super();this.parsingFailed=!1,this.executableCommands=[],this.hasRedirects=!1,this.hasCommandSubstitution=!1,this.redirects=[],R.util.initPartial(Z,this)}static fromBinary(Z,$){return new V9().fromBinary(Z,$)}static fromJson(Z,$){return new V9().fromJson(Z,$)}static fromJsonString(Z,$){return new V9().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(V9,Z,$)}static $(){return["ShellCommandParsingResult|1 parsing_failed 8|2 executable_commands #0*|3 has_redirects 8|4 has_command_substitution 8|5 all_redirects_are_dev_null 8?|6 redirects #1*",M9,x9]}};A9=class A9 extends J0{constructor(Z){super();this.type="",this.value="",R.util.initPartial(Z,this)}static fromBinary(Z,$){return new A9().fromBinary(Z,$)}static fromJson(Z,$){return new A9().fromJson(Z,$)}static fromJsonString(Z,$){return new A9().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(A9,Z,$)}static $(){return["ShellCommandParsingResult.ExecutableCommandArg|1 type 9|2 value 9"]}};M9=class M9 extends J0{constructor(Z){super();this.name="",this.args=[],this.fullText="",R.util.initPartial(Z,this)}static fromBinary(Z,$){return new M9().fromBinary(Z,$)}static fromJson(Z,$){return new M9().fromJson(Z,$)}static fromJsonString(Z,$){return new M9().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(M9,Z,$)}static $(){return["ShellCommandParsingResult.ExecutableCommand|1 name 9|2 args #0*|3 full_text 9",A9]}};x9=class x9 extends J0{constructor(Z){super();this.operator="",this.destinationFds=[],this.targetNodeType="",R.util.initPartial(Z,this)}static fromBinary(Z,$){return new x9().fromBinary(Z,$)}static fromJson(Z,$){return new x9().fromJson(Z,$)}static fromJsonString(Z,$){return new x9().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(x9,Z,$)}static $(){return["ShellCommandParsingResult.Redirect|1 operator 9|2 destination_fds 13*|3 target_node_type 9|4 target_text 9?"]}};T9=class T9 extends J0{constructor(Z){super();this.commands=[],this.suggestedSandboxMode=xB.UNSPECIFIED,this.classificationFailed=!1,R.util.initPartial(Z,this)}static fromBinary(Z,$){return new T9().fromBinary(Z,$)}static fromJson(Z,$){return new T9().fromJson(Z,$)}static fromJsonString(Z,$){return new T9().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(T9,Z,$)}static $(){return["CommandClassifierResult|1 commands #0*|2 suggested_sandbox_mode #1|3 classification_failed 8",C9,xB]}};xB=D(R,V6,"CommandClassifierResult.SuggestedSandboxMode",[[0,"UNSPECIFIED"],[1,"SANDBOX"],[2,"NO_SANDBOX"],[3,"UNDETERMINED"]],1);C9=class C9 extends J0{constructor(Z){super();this.name="",this.arguments=[],this.subcommandTokens=[],R.util.initPartial(Z,this)}static fromBinary(Z,$){return new C9().fromBinary(Z,$)}static fromJson(Z,$){return new C9().fromJson(Z,$)}static fromJsonString(Z,$){return new C9().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(C9,Z,$)}static $(){return["CommandClassifierResult.ClassifiedCommand|1 name 9|2 arguments 9*|3 suggested_allowlist_entry 9?|4 subcommand_tokens 9*"]}};h9=class h9 extends J0{constructor(Z){super();this.pattern="",this.reason="",R.util.initPartial(Z,this)}static fromBinary(Z,$){return new h9().fromBinary(Z,$)}static fromJson(Z,$){return new h9().fromJson(Z,$)}static fromJsonString(Z,$){return new h9().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(h9,Z,$)}static $(){return["ShellOutputNotificationConfig|1 pattern 9|2 reason 9|3 debounce 1?|4 notification_limit 5?"]}};R9=class R9 extends J0{constructor(Z){super();this.kind=TB.UNSPECIFIED,R.util.initPartial(Z,this)}static fromBinary(Z,$){return new R9().fromBinary(Z,$)}static fromJson(Z,$){return new R9().fromJson(Z,$)}static fromJsonString(Z,$){return new R9().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(R9,Z,$)}static $(){return["ShellHookApprovalRequirement|1 kind #0|2 reason 9?",TB]}};TB=D(R,V6,"ShellHookApprovalRequirement.Kind",[[0,"UNSPECIFIED"],[1,"FORCE_PROMPT"]],1);E6=class E6 extends J0{constructor(Z){super();this.command="",this.workingDirectory="",this.timeout=0,this.toolCallId="",this.simpleCommands=[],this.hasInputRedirect=!1,this.hasOutputRedirect=!1,this.isBackground=!1,this.skipApproval=!1,this.timeoutBehavior=MB.UNSPECIFIED,this.closeStdin=!1,this.adminCommandDenylist=[],this.smartModeClassifierAllowed=!1,R.util.initPartial(Z,this)}static fromBinary(Z,$){return new E6().fromBinary(Z,$)}static fromJson(Z,$){return new E6().fromJson(Z,$)}static fromJsonString(Z,$){return new E6().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(E6,Z,$)}static $(){return["ShellArgs|1 command 9|2 working_directory 9|3 timeout 5|4 tool_call_id 9|5 simple_commands 9*|6 has_input_redirect 8|7 has_output_redirect 8|8 parsing_result #0|9 requested_sandbox_policy #1?|10 file_output_threshold_bytes 4?|11 is_background 8|12 skip_approval 8|13 timeout_behavior #2|14 hard_timeout 5?|15 description 9?|16 classifier_result #3?|17 close_stdin 8|18 output_notification #4?|19 smart_mode_approval #5?|20 hook_approval_requirement #6?|21 conversation_id 9?|22 admin_command_denylist 9*|23 request_id 9?|24 secret_scope_id 9?|25 smart_mode_classifier_allowed 8",V9,m0,MB,T9,h9,n0,R9]}};f6=class f6 extends J0{constructor(Z){super();this.result={case:void 0},R.util.initPartial(Z,this)}static fromBinary(Z,$){return new f6().fromBinary(Z,$)}static fromJson(Z,$){return new f6().fromJson(Z,$)}static fromJsonString(Z,$){return new f6().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(f6,Z,$)}static $(){return["ShellResult|1 success #0 result|2 failure #1 result|3 timeout #2 result|4 rejected #3 result|5 spawn_error #4 result|7 permission_denied #5 result|101 sandbox_policy #6?|102 is_background 8?|103 terminals_folder 9?|104 pid 13?",y9,m9,j9,_9,g9,S9,m0]}};v9=class v9 extends J0{constructor(Z){super();this.kind=CB.UNSPECIFIED,this.memoryLimitBytes=Wx.zero,R.util.initPartial(Z,this)}static fromBinary(Z,$){return new v9().fromBinary(Z,$)}static fromJson(Z,$){return new v9().fromJson(Z,$)}static fromJsonString(Z,$){return new v9().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(v9,Z,$)}static $(){return["ShellOomKill|1 kind #0|2 memory_limit_bytes 4",CB]}};CB=D(R,V6,"ShellOomKill.Kind",[[0,"UNSPECIFIED"],[1,"COMMAND_KILLED"],[2,"COMMAND_FAILED"],[3,"UNCONFIRMED"]],1);y9=class y9 extends J0{constructor(Z){super();this.command="",this.workingDirectory="",this.exitCode=0,this.signal="",this.stdout="",this.stderr="",this.executionTime=0,R.util.initPartial(Z,this)}static fromBinary(Z,$){return new y9().fromBinary(Z,$)}static fromJson(Z,$){return new y9().fromJson(Z,$)}static fromJsonString(Z,$){return new y9().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(y9,Z,$)}static $(){return["ShellSuccess|1 command 9|2 working_directory 9|3 exit_code 5|4 signal 9|5 stdout 9|6 stderr 9|7 execution_time 5|8 output_location #0?|9 shell_id 13?|10 interleaved_output 9?|11 pid 13?|12 ms_to_wait 5?|13 local_execution_time_ms 5?|14 background_reason #1?|15 output_head 9?|16 output_tail 9?|17 elided_chars 13?",N0,qx]}};m9=class m9 extends J0{constructor(Z){super();this.command="",this.workingDirectory="",this.exitCode=0,this.signal="",this.stdout="",this.stderr="",this.executionTime=0,this.aborted=!1,R.util.initPartial(Z,this)}static fromBinary(Z,$){return new m9().fromBinary(Z,$)}static fromJson(Z,$){return new m9().fromJson(Z,$)}static fromJsonString(Z,$){return new m9().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(m9,Z,$)}static $(){return["ShellFailure|1 command 9|2 working_directory 9|3 exit_code 5|4 signal 9|5 stdout 9|6 stderr 9|7 execution_time 5|8 output_location #0?|9 interleaved_output 9?|10 abort_reason #1?|11 aborted 8|12 local_execution_time_ms 5?|13 output_head 9?|14 output_tail 9?|15 elided_chars 13?|16 oom_kill #2?",N0,Nx,v9]}};j9=class j9 extends J0{constructor(Z){super();this.command="",this.workingDirectory="",this.timeoutMs=0,R.util.initPartial(Z,this)}static fromBinary(Z,$){return new j9().fromBinary(Z,$)}static fromJson(Z,$){return new j9().fromJson(Z,$)}static fromJsonString(Z,$){return new j9().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(j9,Z,$)}static $(){return["ShellTimeout|1 command 9|2 working_directory 9|3 timeout_ms 5"]}};_9=class _9 extends J0{constructor(Z){super();this.command="",this.workingDirectory="",this.reason="",this.isReadonly=!1,R.util.initPartial(Z,this)}static fromBinary(Z,$){return new _9().fromBinary(Z,$)}static fromJson(Z,$){return new _9().fromJson(Z,$)}static fromJsonString(Z,$){return new _9().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(_9,Z,$)}static $(){return["ShellRejected|1 command 9|2 working_directory 9|3 reason 9|4 is_readonly 8"]}};S9=class S9 extends J0{constructor(Z){super();this.command="",this.workingDirectory="",this.error="",this.isReadonly=!1,R.util.initPartial(Z,this)}static fromBinary(Z,$){return new S9().fromBinary(Z,$)}static fromJson(Z,$){return new S9().fromJson(Z,$)}static fromJsonString(Z,$){return new S9().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(S9,Z,$)}static $(){return["ShellPermissionDenied|1 command 9|2 working_directory 9|3 error 9|4 is_readonly 8"]}};g9=class g9 extends J0{constructor(Z){super();this.command="",this.workingDirectory="",this.error="",R.util.initPartial(Z,this)}static fromBinary(Z,$){return new g9().fromBinary(Z,$)}static fromJson(Z,$){return new g9().fromJson(Z,$)}static fromJsonString(Z,$){return new g9().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(g9,Z,$)}static $(){return["ShellSpawnError|1 command 9|2 working_directory 9|3 error 9"]}}});import{Message as gp,proto3 as FW}from"@bufbuild/protobuf";var Bx="agent.v1.",RB,A6;var vB=O(()=>{hB();A();RB=class RB extends G{static get runtime(){return F(this,"runtime",FW)}static $p(){return Bx}};A6=class A6 extends RB{constructor(Z){super();FW.util.initPartial(Z,this)}static fromBinary(Z,$){return new A6().fromBinary(Z,$)}static fromJson(Z,$){return new A6().fromJson(Z,$)}static fromJsonString(Z,$){return new A6().fromJsonString(Z,$)}static equals(Z,$){return FW.util.equals(A6,Z,$)}static $(){return["ShellToolCall|1 args #0|2 result #1|3 description 9?",E6,f6]}}});import{Message as lp,proto3 as s,protoInt64 as Fx}from"@bufbuild/protobuf";var Gx="agent.v1.",F8,M6,x6,b9,c9,d9,u9,l9,p9,i9;var yB=O(()=>{A();F8=class F8 extends G{static get runtime(){return F(this,"runtime",s)}static $p(){return Gx}};M6=class M6 extends F8{constructor(Z){super();this.path="",this.toolCallId="",s.util.initPartial(Z,this)}static fromBinary(Z,$){return new M6().fromBinary(Z,$)}static fromJson(Z,$){return new M6().fromJson(Z,$)}static fromJsonString(Z,$){return new M6().fromJsonString(Z,$)}static equals(Z,$){return s.util.equals(M6,Z,$)}static $(){return["DeleteArgs|1 path 9|2 tool_call_id 9"]}};x6=class x6 extends F8{constructor(Z){super();this.result={case:void 0},s.util.initPartial(Z,this)}static fromBinary(Z,$){return new x6().fromBinary(Z,$)}static fromJson(Z,$){return new x6().fromJson(Z,$)}static fromJsonString(Z,$){return new x6().fromJsonString(Z,$)}static equals(Z,$){return s.util.equals(x6,Z,$)}static $(){return["DeleteResult|1 success #0 result|2 file_not_found #1 result|3 not_file #2 result|4 permission_denied #3 result|5 file_busy #4 result|6 rejected #5 result|7 error #6 result",b9,c9,d9,u9,l9,p9,i9]}};b9=class b9 extends F8{constructor(Z){super();this.path="",this.deletedFile="",this.fileSize=Fx.zero,this.prevContent="",s.util.initPartial(Z,this)}static fromBinary(Z,$){return new b9().fromBinary(Z,$)}static fromJson(Z,$){return new b9().fromJson(Z,$)}static fromJsonString(Z,$){return new b9().fromJsonString(Z,$)}static equals(Z,$){return s.util.equals(b9,Z,$)}static $(){return["DeleteSuccess|1 path 9|2 deleted_file 9|3 file_size 3|4 prev_content 9"]}};c9=class c9 extends F8{constructor(Z){super();this.path="",s.util.initPartial(Z,this)}static fromBinary(Z,$){return new c9().fromBinary(Z,$)}static fromJson(Z,$){return new c9().fromJson(Z,$)}static fromJsonString(Z,$){return new c9().fromJsonString(Z,$)}static equals(Z,$){return s.util.equals(c9,Z,$)}static $(){return["DeleteFileNotFound|1 path 9"]}};d9=class d9 extends F8{constructor(Z){super();this.path="",this.actualType="",s.util.initPartial(Z,this)}static fromBinary(Z,$){return new d9().fromBinary(Z,$)}static fromJson(Z,$){return new d9().fromJson(Z,$)}static fromJsonString(Z,$){return new d9().fromJsonString(Z,$)}static equals(Z,$){return s.util.equals(d9,Z,$)}static $(){return["DeleteNotFile|1 path 9|2 actual_type 9"]}};u9=class u9 extends F8{constructor(Z){super();this.path="",this.clientVisibleError="",this.isReadonly=!1,s.util.initPartial(Z,this)}static fromBinary(Z,$){return new u9().fromBinary(Z,$)}static fromJson(Z,$){return new u9().fromJson(Z,$)}static fromJsonString(Z,$){return new u9().fromJsonString(Z,$)}static equals(Z,$){return s.util.equals(u9,Z,$)}static $(){return["DeletePermissionDenied|1 path 9|2 client_visible_error 9|3 is_readonly 8"]}};l9=class l9 extends F8{constructor(Z){super();this.path="",s.util.initPartial(Z,this)}static fromBinary(Z,$){return new l9().fromBinary(Z,$)}static fromJson(Z,$){return new l9().fromJson(Z,$)}static fromJsonString(Z,$){return new l9().fromJsonString(Z,$)}static equals(Z,$){return s.util.equals(l9,Z,$)}static $(){return["DeleteFileBusy|1 path 9"]}};p9=class p9 extends F8{constructor(Z){super();this.path="",this.reason="",s.util.initPartial(Z,this)}static fromBinary(Z,$){return new p9().fromBinary(Z,$)}static fromJson(Z,$){return new p9().fromJson(Z,$)}static fromJsonString(Z,$){return new p9().fromJsonString(Z,$)}static equals(Z,$){return s.util.equals(p9,Z,$)}static $(){return["DeleteRejected|1 path 9|2 reason 9"]}};i9=class i9 extends F8{constructor(Z){super();this.path="",this.error="",s.util.initPartial(Z,this)}static fromBinary(Z,$){return new i9().fromBinary(Z,$)}static fromJson(Z,$){return new i9().fromJson(Z,$)}static fromJsonString(Z,$){return new i9().fromJsonString(Z,$)}static equals(Z,$){return s.util.equals(i9,Z,$)}static $(){return["DeleteError|1 path 9|2 error 9"]}}});import{Message as rp,proto3 as GW}from"@bufbuild/protobuf";var Lx="agent.v1.",mB,T6;var jB=O(()=>{yB();A();mB=class mB extends G{static get runtime(){return F(this,"runtime",GW)}static $p(){return Lx}};T6=class T6 extends mB{constructor(Z){super();GW.util.initPartial(Z,this)}static fromBinary(Z,$){return new T6().fromBinary(Z,$)}static fromJson(Z,$){return new T6().fromJson(Z,$)}static fromJsonString(Z,$){return new T6().fromJsonString(Z,$)}static equals(Z,$){return GW.util.equals(T6,Z,$)}static $(){return["DeleteToolCall|1 args #0|2 result #1",M6,x6]}}});import{Message as ep,proto3 as r0}from"@bufbuild/protobuf";var Dx="agent.v1.",t9,n9,r9,a9,s9,C6;var _B=O(()=>{A();t9=class t9 extends G{static get runtime(){return F(this,"runtime",r0)}static $p(){return Dx}};n9=class n9 extends t9{constructor(Z){super();this.globPattern="",r0.util.initPartial(Z,this)}static fromBinary(Z,$){return new n9().fromBinary(Z,$)}static fromJson(Z,$){return new n9().fromJson(Z,$)}static fromJsonString(Z,$){return new n9().fromJsonString(Z,$)}static equals(Z,$){return r0.util.equals(n9,Z,$)}static $(){return["GlobToolArgs|1 target_directory 9?|2 glob_pattern 9"]}};r9=class r9 extends t9{constructor(Z){super();this.result={case:void 0},r0.util.initPartial(Z,this)}static fromBinary(Z,$){return new r9().fromBinary(Z,$)}static fromJson(Z,$){return new r9().fromJson(Z,$)}static fromJsonString(Z,$){return new r9().fromJsonString(Z,$)}static equals(Z,$){return r0.util.equals(r9,Z,$)}static $(){return["GlobToolResult|1 success #0 result|2 error #1 result",s9,a9]}};a9=class a9 extends t9{constructor(Z){super();this.error="",r0.util.initPartial(Z,this)}static fromBinary(Z,$){return new a9().fromBinary(Z,$)}static fromJson(Z,$){return new a9().fromJson(Z,$)}static fromJsonString(Z,$){return new a9().fromJsonString(Z,$)}static equals(Z,$){return r0.util.equals(a9,Z,$)}static $(){return["GlobToolError|1 error 9"]}};s9=class s9 extends t9{constructor(Z){super();this.pattern="",this.path="",this.files=[],this.totalFiles=0,this.clientTruncated=!1,this.ripgrepTruncated=!1,r0.util.initPartial(Z,this)}static fromBinary(Z,$){return new s9().fromBinary(Z,$)}static fromJson(Z,$){return new s9().fromJson(Z,$)}static fromJsonString(Z,$){return new s9().fromJsonString(Z,$)}static equals(Z,$){return r0.util.equals(s9,Z,$)}static $(){return["GlobToolSuccess|1 pattern 9|2 path 9|3 files 9*|4 total_files 5|5 client_truncated 8|6 ripgrep_truncated 8"]}};C6=class C6 extends t9{constructor(Z){super();r0.util.initPartial(Z,this)}static fromBinary(Z,$){return new C6().fromBinary(Z,$)}static fromJson(Z,$){return new C6().fromJson(Z,$)}static fromJsonString(Z,$){return new C6().fromJsonString(Z,$)}static equals(Z,$){return r0.util.equals(C6,Z,$)}static $(){return["GlobToolCall|1 args #0|2 result #1",n9,r9]}}});import{Message as Yi,proto3 as c}from"@bufbuild/protobuf";var wx="agent.v1.",j0,h6,R6,o9,e9,Z7,$7,J7,Y7,X7,z7,K7;var SB=O(()=>{ZH();A();j0=class j0 extends G{static get runtime(){return F(this,"runtime",c)}static $p(){return wx}};h6=class h6 extends j0{constructor(Z){super();this.pattern="",this.toolCallId="",c.util.initPartial(Z,this)}static fromBinary(Z,$){return new h6().fromBinary(Z,$)}static fromJson(Z,$){return new h6().fromJson(Z,$)}static fromJsonString(Z,$){return new h6().fromJsonString(Z,$)}static equals(Z,$){return c.util.equals(h6,Z,$)}static $(){return["GrepArgs|1 pattern 9|2 path 9?|3 glob 9?|4 output_mode 9?|5 context_before 5?|6 context_after 5?|7 context 5?|8 case_insensitive 8?|9 type 9?|10 head_limit 5?|11 multiline 8?|12 sort 9?|13 sort_ascending 8?|14 tool_call_id 9|15 sandbox_policy #0?|16 offset 5?",m0]}};R6=class R6 extends j0{constructor(Z){super();this.result={case:void 0},c.util.initPartial(Z,this)}static fromBinary(Z,$){return new R6().fromBinary(Z,$)}static fromJson(Z,$){return new R6().fromJson(Z,$)}static fromJsonString(Z,$){return new R6().fromJsonString(Z,$)}static equals(Z,$){return c.util.equals(R6,Z,$)}static $(){return["GrepResult|1 success #0 result|2 error #1 result",e9,o9]}};o9=class o9 extends j0{constructor(Z){super();this.error="",c.util.initPartial(Z,this)}static fromBinary(Z,$){return new o9().fromBinary(Z,$)}static fromJson(Z,$){return new o9().fromJson(Z,$)}static fromJsonString(Z,$){return new o9().fromJsonString(Z,$)}static equals(Z,$){return c.util.equals(o9,Z,$)}static $(){return["GrepError|1 error 9"]}};e9=class e9 extends j0{constructor(Z){super();this.pattern="",this.path="",this.outputMode="",this.workspaceResults={},c.util.initPartial(Z,this)}static fromBinary(Z,$){return new e9().fromBinary(Z,$)}static fromJson(Z,$){return new e9().fromJson(Z,$)}static fromJsonString(Z,$){return new e9().fromJsonString(Z,$)}static equals(Z,$){return c.util.equals(e9,Z,$)}static $(){return["GrepSuccess|1 pattern 9|2 path 9|3 output_mode 9|4 workspace_results 9,#0|5 active_editor_result #0?",Z7]}};Z7=class Z7 extends j0{constructor(Z){super();this.result={case:void 0},c.util.initPartial(Z,this)}static fromBinary(Z,$){return new Z7().fromBinary(Z,$)}static fromJson(Z,$){return new Z7().fromJson(Z,$)}static fromJsonString(Z,$){return new Z7().fromJsonString(Z,$)}static equals(Z,$){return c.util.equals(Z7,Z,$)}static $(){return["GrepUnionResult|1 count #0 result|2 files #1 result|3 content #2 result",$7,Y7,X7]}};$7=class $7 extends j0{constructor(Z){super();this.counts=[],this.totalFiles=0,this.totalMatches=0,this.clientTruncated=!1,this.ripgrepTruncated=!1,c.util.initPartial(Z,this)}static fromBinary(Z,$){return new $7().fromBinary(Z,$)}static fromJson(Z,$){return new $7().fromJson(Z,$)}static fromJsonString(Z,$){return new $7().fromJsonString(Z,$)}static equals(Z,$){return c.util.equals($7,Z,$)}static $(){return["GrepCountResult|1 counts #0*|2 total_files 5|3 total_matches 5|4 client_truncated 8|5 ripgrep_truncated 8|6 head_limit_applied 5?|7 offset_applied 5?",J7]}};J7=class J7 extends j0{constructor(Z){super();this.file="",this.count=0,c.util.initPartial(Z,this)}static fromBinary(Z,$){return new J7().fromBinary(Z,$)}static fromJson(Z,$){return new J7().fromJson(Z,$)}static fromJsonString(Z,$){return new J7().fromJsonString(Z,$)}static equals(Z,$){return c.util.equals(J7,Z,$)}static $(){return["GrepFileCount|1 file 9|2 count 5"]}};Y7=class Y7 extends j0{constructor(Z){super();this.files=[],this.totalFiles=0,this.clientTruncated=!1,this.ripgrepTruncated=!1,c.util.initPartial(Z,this)}static fromBinary(Z,$){return new Y7().fromBinary(Z,$)}static fromJson(Z,$){return new Y7().fromJson(Z,$)}static fromJsonString(Z,$){return new Y7().fromJsonString(Z,$)}static equals(Z,$){return c.util.equals(Y7,Z,$)}static $(){return["GrepFilesResult|1 files 9*|2 total_files 5|3 client_truncated 8|4 ripgrep_truncated 8|5 head_limit_applied 5?|6 offset_applied 5?"]}};X7=class X7 extends j0{constructor(Z){super();this.matches=[],this.totalLines=0,this.totalMatchedLines=0,this.clientTruncated=!1,this.ripgrepTruncated=!1,c.util.initPartial(Z,this)}static fromBinary(Z,$){return new X7().fromBinary(Z,$)}static fromJson(Z,$){return new X7().fromJson(Z,$)}static fromJsonString(Z,$){return new X7().fromJsonString(Z,$)}static equals(Z,$){return c.util.equals(X7,Z,$)}static $(){return["GrepContentResult|1 matches #0*|2 total_lines 5|3 total_matched_lines 5|4 client_truncated 8|5 ripgrep_truncated 8|6 head_limit_applied 5?|7 offset_applied 5?",z7]}};z7=class z7 extends j0{constructor(Z){super();this.file="",this.matches=[],c.util.initPartial(Z,this)}static fromBinary(Z,$){return new z7().fromBinary(Z,$)}static fromJson(Z,$){return new z7().fromJson(Z,$)}static fromJsonString(Z,$){return new z7().fromJsonString(Z,$)}static equals(Z,$){return c.util.equals(z7,Z,$)}static $(){return["GrepFileMatch|1 file 9|2 matches #0*",K7]}};K7=class K7 extends j0{constructor(Z){super();this.lineNumber=0,this.content="",this.contentTruncated=!1,this.isContextLine=!1,c.util.initPartial(Z,this)}static fromBinary(Z,$){return new K7().fromBinary(Z,$)}static fromJson(Z,$){return new K7().fromJson(Z,$)}static fromJsonString(Z,$){return new K7().fromJsonString(Z,$)}static equals(Z,$){return c.util.equals(K7,Z,$)}static $(){return["GrepContentMatch|1 line_number 5|2 content 9|3 content_truncated 8|4 is_context_line 8"]}}});import{Message as Hi,proto3 as LW}from"@bufbuild/protobuf";var Ux="agent.v1.",gB,v6;var bB=O(()=>{SB();A();gB=class gB extends G{static get runtime(){return F(this,"runtime",LW)}static $p(){return Ux}};v6=class v6 extends gB{constructor(Z){super();LW.util.initPartial(Z,this)}static fromBinary(Z,$){return new v6().fromBinary(Z,$)}static fromJson(Z,$){return new v6().fromJson(Z,$)}static fromJsonString(Z,$){return new v6().fromJsonString(Z,$)}static equals(Z,$){return LW.util.equals(v6,Z,$)}static $(){return["GrepToolCall|1 args #0|2 result #1",h6,R6]}}});import{Message as Fi,proto3 as f0}from"@bufbuild/protobuf";var dB="agent.v1.",y6,cB,Q7,H7,W7,q7,N7,f8;var DW=O(()=>{A();y6=class y6 extends G{static get runtime(){return F(this,"runtime",f0)}static $p(){return dB}};cB=D(f0,dB,"CursorRuleSource",[[0,"UNSPECIFIED"],[1,"TEAM"],[2,"USER"]],1);Q7=class Q7 extends y6{constructor(Z){super();f0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Q7().fromBinary(Z,$)}static fromJson(Z,$){return new Q7().fromJson(Z,$)}static fromJsonString(Z,$){return new Q7().fromJsonString(Z,$)}static equals(Z,$){return f0.util.equals(Q7,Z,$)}static $(){return["CursorRuleTypeGlobal"]}};H7=class H7 extends y6{constructor(Z){super();this.globs=[],f0.util.initPartial(Z,this)}static fromBinary(Z,$){return new H7().fromBinary(Z,$)}static fromJson(Z,$){return new H7().fromJson(Z,$)}static fromJsonString(Z,$){return new H7().fromJsonString(Z,$)}static equals(Z,$){return f0.util.equals(H7,Z,$)}static $(){return["CursorRuleTypeFileGlobs|1 globs 9*"]}};W7=class W7 extends y6{constructor(Z){super();this.description="",f0.util.initPartial(Z,this)}static fromBinary(Z,$){return new W7().fromBinary(Z,$)}static fromJson(Z,$){return new W7().fromJson(Z,$)}static fromJsonString(Z,$){return new W7().fromJsonString(Z,$)}static equals(Z,$){return f0.util.equals(W7,Z,$)}static $(){return["CursorRuleTypeAgentFetched|1 description 9"]}};q7=class q7 extends y6{constructor(Z){super();f0.util.initPartial(Z,this)}static fromBinary(Z,$){return new q7().fromBinary(Z,$)}static fromJson(Z,$){return new q7().fromJson(Z,$)}static fromJsonString(Z,$){return new q7().fromJsonString(Z,$)}static equals(Z,$){return f0.util.equals(q7,Z,$)}static $(){return["CursorRuleTypeManuallyAttached"]}};N7=class N7 extends y6{constructor(Z){super();this.type={case:void 0},f0.util.initPartial(Z,this)}static fromBinary(Z,$){return new N7().fromBinary(Z,$)}static fromJson(Z,$){return new N7().fromJson(Z,$)}static fromJsonString(Z,$){return new N7().fromJsonString(Z,$)}static equals(Z,$){return f0.util.equals(N7,Z,$)}static $(){return["CursorRuleType|1 global #0 type|2 file_globbed #1 type|3 agent_fetched #2 type|4 manually_attached #3 type",Q7,H7,W7,q7]}};f8=class f8 extends y6{constructor(Z){super();this.fullPath="",this.content="",this.source=cB.UNSPECIFIED,this.environments=[],this.disabledEnvironments=[],this.scopedTo=[],this.frontmatter="",this.warnings=[],f0.util.initPartial(Z,this)}static fromBinary(Z,$){return new f8().fromBinary(Z,$)}static fromJson(Z,$){return new f8().fromJson(Z,$)}static fromJsonString(Z,$){return new f8().fromJsonString(Z,$)}static equals(Z,$){return f0.util.equals(f8,Z,$)}static $(){return["CursorRule|1 full_path 9|2 content 9|3 type #0|4 source #1|5 git_remote_origin 9?|6 parse_error 9?|7 environments 9*|8 disabled_environments 9*|9 plugin 9?|10 marketplace 9?|11 plugin_id 9?|12 marketplace_id 9?|13 scoped_to 9*|14 frontmatter 9|15 is_required 8?|16 warnings 9*|17 body_omitted 8?",N7,cB]}}});import{Message as wi,proto3 as h0}from"@bufbuild/protobuf";var Ox="agent.v1.",j6,m6,B7,F7,G7,L7,D7;var uB=O(()=>{DW();A();j6=class j6 extends G{static get runtime(){return F(this,"runtime",h0)}static $p(){return Ox}};m6=class m6 extends j6{constructor(Z){super();h0.util.initPartial(Z,this)}static fromBinary(Z,$){return new m6().fromBinary(Z,$)}static fromJson(Z,$){return new m6().fromJson(Z,$)}static fromJsonString(Z,$){return new m6().fromJsonString(Z,$)}static equals(Z,$){return h0.util.equals(m6,Z,$)}static $(){return["ReadToolCall|1 args #0|2 result #1",B7,F7]}};B7=class B7 extends j6{constructor(Z){super();this.path="",h0.util.initPartial(Z,this)}static fromBinary(Z,$){return new B7().fromBinary(Z,$)}static fromJson(Z,$){return new B7().fromJson(Z,$)}static fromJsonString(Z,$){return new B7().fromJsonString(Z,$)}static equals(Z,$){return h0.util.equals(B7,Z,$)}static $(){return["ReadToolArgs|1 path 9|2 offset 5?|3 limit 5?|5 include_line_numbers 8?"]}};F7=class F7 extends j6{constructor(Z){super();this.result={case:void 0},h0.util.initPartial(Z,this)}static fromBinary(Z,$){return new F7().fromBinary(Z,$)}static fromJson(Z,$){return new F7().fromJson(Z,$)}static fromJsonString(Z,$){return new F7().fromJsonString(Z,$)}static equals(Z,$){return h0.util.equals(F7,Z,$)}static $(){return["ReadToolResult|1 success #0 result|2 error #1 result",L7,D7]}};G7=class G7 extends j6{constructor(Z){super();this.startLine=0,this.endLine=0,h0.util.initPartial(Z,this)}static fromBinary(Z,$){return new G7().fromBinary(Z,$)}static fromJson(Z,$){return new G7().fromJson(Z,$)}static fromJsonString(Z,$){return new G7().fromJsonString(Z,$)}static equals(Z,$){return h0.util.equals(G7,Z,$)}static $(){return["ReadRange|1 start_line 13|2 end_line 13"]}};L7=class L7 extends j6{constructor(Z){super();this.output={case:void 0},this.isEmpty=!1,this.exceededLimit=!1,this.totalLines=0,this.fileSize=0,this.path="",this.relatedCursorRulePaths=[],this.relatedCursorRules=[],h0.util.initPartial(Z,this)}static fromBinary(Z,$){return new L7().fromBinary(Z,$)}static fromJson(Z,$){return new L7().fromJson(Z,$)}static fromJsonString(Z,$){return new L7().fromJsonString(Z,$)}static equals(Z,$){return h0.util.equals(L7,Z,$)}static $(){return["ReadToolSuccess|1 content 9 output|6 data 12 output|9 data_blob_id 12 output|10 content_blob_id 12 output|2 is_empty 8|3 exceeded_limit 8|4 total_lines 13|5 file_size 13|7 path 9|8 read_range #0?|11 include_line_numbers 8?|12 related_cursor_rule_paths 9*|13 related_cursor_rules #1*",G7,f8]}};D7=class D7 extends j6{constructor(Z){super();this.errorMessage="",h0.util.initPartial(Z,this)}static fromBinary(Z,$){return new D7().fromBinary(Z,$)}static fromJson(Z,$){return new D7().fromJson(Z,$)}static fromJsonString(Z,$){return new D7().fromJsonString(Z,$)}static equals(Z,$){return h0.util.equals(D7,Z,$)}static $(){return["ReadToolError|1 error_message 9"]}}});import{Message as Pi,proto3 as b,protoInt64 as lB}from"@bufbuild/protobuf";var pB="agent.v1.",_0,wW,B0,_6,w7,U7,O7,I7,S6,k7,P7,E7,f7;var $H=O(()=>{A();_0=class _0 extends G{static get runtime(){return F(this,"runtime",b)}static $p(){return pB}};wW=D(b,pB,"TodoStatus",[[0,"UNSPECIFIED"],[1,"PENDING"],[2,"IN_PROGRESS"],[3,"COMPLETED"],[4,"CANCELLED"]],1);B0=class B0 extends _0{constructor(Z){super();this.id="",this.content="",this.status=wW.UNSPECIFIED,this.createdAt=lB.zero,this.updatedAt=lB.zero,this.dependencies=[],b.util.initPartial(Z,this)}static fromBinary(Z,$){return new B0().fromBinary(Z,$)}static fromJson(Z,$){return new B0().fromJson(Z,$)}static fromJsonString(Z,$){return new B0().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(B0,Z,$)}static $(){return["TodoItem|1 id 9|2 content 9|3 status #0|4 created_at 3|5 updated_at 3|6 dependencies 9*",wW]}};_6=class _6 extends _0{constructor(Z){super();b.util.initPartial(Z,this)}static fromBinary(Z,$){return new _6().fromBinary(Z,$)}static fromJson(Z,$){return new _6().fromJson(Z,$)}static fromJsonString(Z,$){return new _6().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(_6,Z,$)}static $(){return["UpdateTodosToolCall|1 args #0|2 result #1",w7,U7]}};w7=class w7 extends _0{constructor(Z){super();this.todos=[],this.merge=!1,b.util.initPartial(Z,this)}static fromBinary(Z,$){return new w7().fromBinary(Z,$)}static fromJson(Z,$){return new w7().fromJson(Z,$)}static fromJsonString(Z,$){return new w7().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(w7,Z,$)}static $(){return["UpdateTodosArgs|1 todos #0*|2 merge 8",B0]}};U7=class U7 extends _0{constructor(Z){super();this.result={case:void 0},b.util.initPartial(Z,this)}static fromBinary(Z,$){return new U7().fromBinary(Z,$)}static fromJson(Z,$){return new U7().fromJson(Z,$)}static fromJsonString(Z,$){return new U7().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(U7,Z,$)}static $(){return["UpdateTodosResult|1 success #0 result|2 error #1 result",O7,I7]}};O7=class O7 extends _0{constructor(Z){super();this.todos=[],this.totalCount=0,this.wasMerge=!1,b.util.initPartial(Z,this)}static fromBinary(Z,$){return new O7().fromBinary(Z,$)}static fromJson(Z,$){return new O7().fromJson(Z,$)}static fromJsonString(Z,$){return new O7().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(O7,Z,$)}static $(){return["UpdateTodosSuccess|1 todos #0*|2 total_count 5|3 was_merge 8",B0]}};I7=class I7 extends _0{constructor(Z){super();this.error="",b.util.initPartial(Z,this)}static fromBinary(Z,$){return new I7().fromBinary(Z,$)}static fromJson(Z,$){return new I7().fromJson(Z,$)}static fromJsonString(Z,$){return new I7().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(I7,Z,$)}static $(){return["UpdateTodosError|1 error 9"]}};S6=class S6 extends _0{constructor(Z){super();b.util.initPartial(Z,this)}static fromBinary(Z,$){return new S6().fromBinary(Z,$)}static fromJson(Z,$){return new S6().fromJson(Z,$)}static fromJsonString(Z,$){return new S6().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(S6,Z,$)}static $(){return["ReadTodosToolCall|1 args #0|2 result #1",k7,P7]}};k7=class k7 extends _0{constructor(Z){super();this.statusFilter=[],this.idFilter=[],b.util.initPartial(Z,this)}static fromBinary(Z,$){return new k7().fromBinary(Z,$)}static fromJson(Z,$){return new k7().fromJson(Z,$)}static fromJsonString(Z,$){return new k7().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(k7,Z,$)}static $(){return["ReadTodosArgs|1 status_filter #0*|2 id_filter 9*",wW]}};P7=class P7 extends _0{constructor(Z){super();this.result={case:void 0},b.util.initPartial(Z,this)}static fromBinary(Z,$){return new P7().fromBinary(Z,$)}static fromJson(Z,$){return new P7().fromJson(Z,$)}static fromJsonString(Z,$){return new P7().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(P7,Z,$)}static $(){return["ReadTodosResult|1 success #0 result|2 error #1 result",E7,f7]}};E7=class E7 extends _0{constructor(Z){super();this.todos=[],this.totalCount=0,b.util.initPartial(Z,this)}static fromBinary(Z,$){return new E7().fromBinary(Z,$)}static fromJson(Z,$){return new E7().fromJson(Z,$)}static fromJsonString(Z,$){return new E7().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(E7,Z,$)}static $(){return["ReadTodosSuccess|1 todos #0*|2 total_count 5",B0]}};f7=class f7 extends _0{constructor(Z){super();this.error="",b.util.initPartial(Z,this)}static fromBinary(Z,$){return new f7().fromBinary(Z,$)}static fromJson(Z,$){return new f7().fromJson(Z,$)}static fromJsonString(Z,$){return new f7().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(f7,Z,$)}static $(){return["ReadTodosError|1 error 9"]}}});import{Message as Ai,proto3 as t}from"@bufbuild/protobuf";var Ix="agent.v1.",G8,V7,A7,M7,x7,T7,C7,h7,R7,g6;var iB=O(()=>{A();G8=class G8 extends G{static get runtime(){return F(this,"runtime",t)}static $p(){return Ix}};V7=class V7 extends G8{constructor(Z){super();this.path="",t.util.initPartial(Z,this)}static fromBinary(Z,$){return new V7().fromBinary(Z,$)}static fromJson(Z,$){return new V7().fromJson(Z,$)}static fromJsonString(Z,$){return new V7().fromJsonString(Z,$)}static equals(Z,$){return t.util.equals(V7,Z,$)}static $(){return["EditArgs|1 path 9|6 stream_content 9?"]}};A7=class A7 extends G8{constructor(Z){super();this.result={case:void 0},t.util.initPartial(Z,this)}static fromBinary(Z,$){return new A7().fromBinary(Z,$)}static fromJson(Z,$){return new A7().fromJson(Z,$)}static fromJsonString(Z,$){return new A7().fromJsonString(Z,$)}static equals(Z,$){return t.util.equals(A7,Z,$)}static $(){return["EditResult|1 success #0 result|2 file_not_found #1 result|3 read_permission_denied #2 result|4 write_permission_denied #3 result|6 rejected #4 result|7 error #5 result",M7,x7,T7,C7,h7,R7]}};M7=class M7 extends G8{constructor(Z){super();this.path="",this.afterFullFileContent="",t.util.initPartial(Z,this)}static fromBinary(Z,$){return new M7().fromBinary(Z,$)}static fromJson(Z,$){return new M7().fromJson(Z,$)}static fromJsonString(Z,$){return new M7().fromJsonString(Z,$)}static equals(Z,$){return t.util.equals(M7,Z,$)}static $(){return["EditSuccess|1 path 9|3 lines_added 5?|4 lines_removed 5?|5 diff_string 9?|6 before_full_file_content 9?|7 after_full_file_content 9|8 message 9?"]}};x7=class x7 extends G8{constructor(Z){super();this.path="",t.util.initPartial(Z,this)}static fromBinary(Z,$){return new x7().fromBinary(Z,$)}static fromJson(Z,$){return new x7().fromJson(Z,$)}static fromJsonString(Z,$){return new x7().fromJsonString(Z,$)}static equals(Z,$){return t.util.equals(x7,Z,$)}static $(){return["EditFileNotFound|1 path 9"]}};T7=class T7 extends G8{constructor(Z){super();this.path="",t.util.initPartial(Z,this)}static fromBinary(Z,$){return new T7().fromBinary(Z,$)}static fromJson(Z,$){return new T7().fromJson(Z,$)}static fromJsonString(Z,$){return new T7().fromJsonString(Z,$)}static equals(Z,$){return t.util.equals(T7,Z,$)}static $(){return["EditReadPermissionDenied|1 path 9"]}};C7=class C7 extends G8{constructor(Z){super();this.path="",this.error="",this.isReadonly=!1,t.util.initPartial(Z,this)}static fromBinary(Z,$){return new C7().fromBinary(Z,$)}static fromJson(Z,$){return new C7().fromJson(Z,$)}static fromJsonString(Z,$){return new C7().fromJsonString(Z,$)}static equals(Z,$){return t.util.equals(C7,Z,$)}static $(){return["EditWritePermissionDenied|1 path 9|2 error 9|3 is_readonly 8"]}};h7=class h7 extends G8{constructor(Z){super();this.path="",this.reason="",t.util.initPartial(Z,this)}static fromBinary(Z,$){return new h7().fromBinary(Z,$)}static fromJson(Z,$){return new h7().fromJson(Z,$)}static fromJsonString(Z,$){return new h7().fromJsonString(Z,$)}static equals(Z,$){return t.util.equals(h7,Z,$)}static $(){return["EditRejected|1 path 9|2 reason 9"]}};R7=class R7 extends G8{constructor(Z){super();this.path="",this.error="",t.util.initPartial(Z,this)}static fromBinary(Z,$){return new R7().fromBinary(Z,$)}static fromJson(Z,$){return new R7().fromJson(Z,$)}static fromJsonString(Z,$){return new R7().fromJsonString(Z,$)}static equals(Z,$){return t.util.equals(R7,Z,$)}static $(){return["EditError|1 path 9|2 error 9|5 model_visible_error 9?"]}};g6=class g6 extends G8{constructor(Z){super();t.util.initPartial(Z,this)}static fromBinary(Z,$){return new g6().fromBinary(Z,$)}static fromJson(Z,$){return new g6().fromJson(Z,$)}static fromJsonString(Z,$){return new g6().fromJsonString(Z,$)}static equals(Z,$){return t.util.equals(g6,Z,$)}static $(){return["EditToolCall|1 args #0|2 result #1",V7,A7]}}});import{Message as Ci,proto3 as p}from"@bufbuild/protobuf";var kx="agent.v1.",a0,b6,c6,v7,L8,y7,m7,j7,_7,S7,g7;var UW=O(()=>{ZH();A();a0=class a0 extends G{static get runtime(){return F(this,"runtime",p)}static $p(){return kx}};b6=class b6 extends a0{constructor(Z){super();this.path="",this.ignore=[],this.toolCallId="",p.util.initPartial(Z,this)}static fromBinary(Z,$){return new b6().fromBinary(Z,$)}static fromJson(Z,$){return new b6().fromJson(Z,$)}static fromJsonString(Z,$){return new b6().fromJsonString(Z,$)}static equals(Z,$){return p.util.equals(b6,Z,$)}static $(){return["LsArgs|1 path 9|2 ignore 9*|3 tool_call_id 9|4 sandbox_policy #0?|5 timeout_ms 13?",m0]}};c6=class c6 extends a0{constructor(Z){super();this.result={case:void 0},p.util.initPartial(Z,this)}static fromBinary(Z,$){return new c6().fromBinary(Z,$)}static fromJson(Z,$){return new c6().fromJson(Z,$)}static fromJsonString(Z,$){return new c6().fromJsonString(Z,$)}static equals(Z,$){return p.util.equals(c6,Z,$)}static $(){return["LsResult|1 success #0 result|2 error #1 result|3 rejected #2 result|4 timeout #3 result",v7,m7,j7,_7]}};v7=class v7 extends a0{constructor(Z){super();p.util.initPartial(Z,this)}static fromBinary(Z,$){return new v7().fromBinary(Z,$)}static fromJson(Z,$){return new v7().fromJson(Z,$)}static fromJsonString(Z,$){return new v7().fromJsonString(Z,$)}static equals(Z,$){return p.util.equals(v7,Z,$)}static $(){return["LsSuccess|1 directory_tree_root #0",L8]}};L8=class L8 extends a0{constructor(Z){super();this.absPath="",this.childrenDirs=[],this.childrenFiles=[],this.childrenWereProcessed=!1,this.fullSubtreeExtensionCounts={},this.numFiles=0,p.util.initPartial(Z,this)}static fromBinary(Z,$){return new L8().fromBinary(Z,$)}static fromJson(Z,$){return new L8().fromJson(Z,$)}static fromJsonString(Z,$){return new L8().fromJsonString(Z,$)}static equals(Z,$){return p.util.equals(L8,Z,$)}static $(){return["LsDirectoryTreeNode|1 abs_path 9|2 children_dirs #0*|3 children_files #1*|4 children_were_processed 8|5 full_subtree_extension_counts 9,5|6 num_files 5",L8,y7]}};y7=class y7 extends a0{constructor(Z){super();this.name="",p.util.initPartial(Z,this)}static fromBinary(Z,$){return new y7().fromBinary(Z,$)}static fromJson(Z,$){return new y7().fromJson(Z,$)}static fromJsonString(Z,$){return new y7().fromJsonString(Z,$)}static equals(Z,$){return p.util.equals(y7,Z,$)}static $(){return["LsDirectoryTreeNode.File|1 name 9|2 terminal_metadata #0?",S7]}};m7=class m7 extends a0{constructor(Z){super();this.path="",this.error="",p.util.initPartial(Z,this)}static fromBinary(Z,$){return new m7().fromBinary(Z,$)}static fromJson(Z,$){return new m7().fromJson(Z,$)}static fromJsonString(Z,$){return new m7().fromJsonString(Z,$)}static equals(Z,$){return p.util.equals(m7,Z,$)}static $(){return["LsError|1 path 9|2 error 9"]}};j7=class j7 extends a0{constructor(Z){super();this.path="",this.reason="",p.util.initPartial(Z,this)}static fromBinary(Z,$){return new j7().fromBinary(Z,$)}static fromJson(Z,$){return new j7().fromJson(Z,$)}static fromJsonString(Z,$){return new j7().fromJsonString(Z,$)}static equals(Z,$){return p.util.equals(j7,Z,$)}static $(){return["LsRejected|1 path 9|2 reason 9"]}};_7=class _7 extends a0{constructor(Z){super();p.util.initPartial(Z,this)}static fromBinary(Z,$){return new _7().fromBinary(Z,$)}static fromJson(Z,$){return new _7().fromJson(Z,$)}static fromJsonString(Z,$){return new _7().fromJsonString(Z,$)}static equals(Z,$){return p.util.equals(_7,Z,$)}static $(){return["LsTimeout|1 directory_tree_root #0",L8]}};S7=class S7 extends a0{constructor(Z){super();this.lastCommands=[],p.util.initPartial(Z,this)}static fromBinary(Z,$){return new S7().fromBinary(Z,$)}static fromJson(Z,$){return new S7().fromJson(Z,$)}static fromJsonString(Z,$){return new S7().fromJsonString(Z,$)}static equals(Z,$){return p.util.equals(S7,Z,$)}static $(){return["TerminalMetadata|1 cwd 9?|2 last_commands #0*|3 last_modified_ms 3?|4 current_command #0?",g7]}};g7=class g7 extends a0{constructor(Z){super();this.command="",p.util.initPartial(Z,this)}static fromBinary(Z,$){return new g7().fromBinary(Z,$)}static fromJson(Z,$){return new g7().fromJson(Z,$)}static fromJsonString(Z,$){return new g7().fromJsonString(Z,$)}static equals(Z,$){return p.util.equals(g7,Z,$)}static $(){return["TerminalMetadata.Command|1 command 9|2 exit_code 5?|3 timestamp_ms 3?|4 duration_ms 3?"]}}});import{Message as mi,proto3 as OW}from"@bufbuild/protobuf";var Px="agent.v1.",nB,d6;var rB=O(()=>{UW();A();nB=class nB extends G{static get runtime(){return F(this,"runtime",OW)}static $p(){return Px}};d6=class d6 extends nB{constructor(Z){super();OW.util.initPartial(Z,this)}static fromBinary(Z,$){return new d6().fromBinary(Z,$)}static fromJson(Z,$){return new d6().fromJson(Z,$)}static fromJsonString(Z,$){return new d6().fromJsonString(Z,$)}static equals(Z,$){return OW.util.equals(d6,Z,$)}static $(){return["LsToolCall|1 args #0|2 result #1",b6,c6]}}});import{Message as bi,proto3 as Ex}from"@bufbuild/protobuf";var fx="agent.v1.",IW;var aB=O(()=>{A();IW=D(Ex,fx,"DiagnosticSeverity",[[0,"UNSPECIFIED"],[1,"ERROR"],[2,"WARNING"],[3,"INFORMATION"],[4,"HINT"]],1)});import{Message as li,proto3 as X0}from"@bufbuild/protobuf";var Vx="agent.v1.",V8,u6,b7,c7,d7,u7,l7,p7,i7;var sB=O(()=>{aB();P6();A();V8=class V8 extends G{static get runtime(){return F(this,"runtime",X0)}static $p(){return Vx}};u6=class u6 extends V8{constructor(Z){super();X0.util.initPartial(Z,this)}static fromBinary(Z,$){return new u6().fromBinary(Z,$)}static fromJson(Z,$){return new u6().fromJson(Z,$)}static fromJsonString(Z,$){return new u6().fromJsonString(Z,$)}static equals(Z,$){return X0.util.equals(u6,Z,$)}static $(){return["ReadLintsToolCall|1 args #0|2 result #1",b7,c7]}};b7=class b7 extends V8{constructor(Z){super();this.paths=[],X0.util.initPartial(Z,this)}static fromBinary(Z,$){return new b7().fromBinary(Z,$)}static fromJson(Z,$){return new b7().fromJson(Z,$)}static fromJsonString(Z,$){return new b7().fromJsonString(Z,$)}static equals(Z,$){return X0.util.equals(b7,Z,$)}static $(){return["ReadLintsToolArgs|1 paths 9*"]}};c7=class c7 extends V8{constructor(Z){super();this.result={case:void 0},X0.util.initPartial(Z,this)}static fromBinary(Z,$){return new c7().fromBinary(Z,$)}static fromJson(Z,$){return new c7().fromJson(Z,$)}static fromJsonString(Z,$){return new c7().fromJsonString(Z,$)}static equals(Z,$){return X0.util.equals(c7,Z,$)}static $(){return["ReadLintsToolResult|1 success #0 result|2 error #1 result",d7,i7]}};d7=class d7 extends V8{constructor(Z){super();this.fileDiagnostics=[],this.totalFiles=0,this.totalDiagnostics=0,X0.util.initPartial(Z,this)}static fromBinary(Z,$){return new d7().fromBinary(Z,$)}static fromJson(Z,$){return new d7().fromJson(Z,$)}static fromJsonString(Z,$){return new d7().fromJsonString(Z,$)}static equals(Z,$){return X0.util.equals(d7,Z,$)}static $(){return["ReadLintsToolSuccess|1 file_diagnostics #0*|2 total_files 5|3 total_diagnostics 5",u7]}};u7=class u7 extends V8{constructor(Z){super();this.path="",this.diagnostics=[],this.diagnosticsCount=0,X0.util.initPartial(Z,this)}static fromBinary(Z,$){return new u7().fromBinary(Z,$)}static fromJson(Z,$){return new u7().fromJson(Z,$)}static fromJsonString(Z,$){return new u7().fromJsonString(Z,$)}static equals(Z,$){return X0.util.equals(u7,Z,$)}static $(){return["FileDiagnostics|1 path 9|2 diagnostics #0*|3 diagnostics_count 5",l7]}};l7=class l7 extends V8{constructor(Z){super();this.severity=IW.UNSPECIFIED,this.message="",this.source="",this.code="",this.isStale=!1,X0.util.initPartial(Z,this)}static fromBinary(Z,$){return new l7().fromBinary(Z,$)}static fromJson(Z,$){return new l7().fromJson(Z,$)}static fromJsonString(Z,$){return new l7().fromJsonString(Z,$)}static equals(Z,$){return X0.util.equals(l7,Z,$)}static $(){return["DiagnosticItem|1 severity #0|2 range #1|3 message 9|4 source 9|5 code 9|6 is_stale 8",IW,p7]}};p7=class p7 extends V8{constructor(Z){super();X0.util.initPartial(Z,this)}static fromBinary(Z,$){return new p7().fromBinary(Z,$)}static fromJson(Z,$){return new p7().fromJson(Z,$)}static fromJsonString(Z,$){return new p7().fromJsonString(Z,$)}static equals(Z,$){return X0.util.equals(p7,Z,$)}static $(){return["DiagnosticRange|1 start #0|2 end #0",u8]}};i7=class i7 extends V8{constructor(Z){super();this.errorMessage="",X0.util.initPartial(Z,this)}static fromBinary(Z,$){return new i7().fromBinary(Z,$)}static fromJson(Z,$){return new i7().fromJson(Z,$)}static fromJsonString(Z,$){return new i7().fromJsonString(Z,$)}static equals(Z,$){return X0.util.equals(i7,Z,$)}static $(){return["ReadLintsToolError|1 error_message 9"]}}});import{Message as si,proto3 as C,protoInt64 as Ax,Struct as Mx,Value as xx}from"@bufbuild/protobuf";var Tx="agent.v1.",u,l6,n7,r7,a7,s7,p8,p6,i6,n6,r6,a6,t7,o7,e7,Z1,s6,t6,$1,J1,Y1,X1;var kW=O(()=>{P6();A();u=class u extends G{static get runtime(){return F(this,"runtime",C)}static $p(){return Tx}};l6=class l6 extends u{constructor(Z){super();this.name="",this.args={},this.toolCallId="",this.providerIdentifier="",this.toolName="",this.smartModeApprovalOnly=!1,this.skipApproval=!1,this.serverIdentifier="",this.symbolicPathArguments=[],this.argumentsRepaired=!1,C.util.initPartial(Z,this)}static fromBinary(Z,$){return new l6().fromBinary(Z,$)}static fromJson(Z,$){return new l6().fromJson(Z,$)}static fromJsonString(Z,$){return new l6().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(l6,Z,$)}static $(){return["McpArgs|1 name 9|2 args 9,#0|3 tool_call_id 9|4 provider_identifier 9|5 tool_name 9|6 smart_mode_approval #1?|7 smart_mode_approval_only 8|8 skip_approval 8|9 server_identifier 9|10 symbolic_path_arguments #2*|11 arguments_repaired 8",xx,n0,n7]}};n7=class n7 extends u{constructor(Z){super();this.path="",this.sha256="",this.sizeBytes=Ax.zero,C.util.initPartial(Z,this)}static fromBinary(Z,$){return new n7().fromBinary(Z,$)}static fromJson(Z,$){return new n7().fromJson(Z,$)}static fromJsonString(Z,$){return new n7().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(n7,Z,$)}static $(){return["McpSymbolicPathArgument|1 path 9|2 sha256 9|3 size_bytes 3"]}};r7=class r7 extends u{constructor(Z){super();this.text="",C.util.initPartial(Z,this)}static fromBinary(Z,$){return new r7().fromBinary(Z,$)}static fromJson(Z,$){return new r7().fromJson(Z,$)}static fromJsonString(Z,$){return new r7().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(r7,Z,$)}static $(){return["McpTextContent|1 text 9|2 output_location #0?",N0]}};a7=class a7 extends u{constructor(Z){super();this.data=new Uint8Array(0),this.mimeType="",C.util.initPartial(Z,this)}static fromBinary(Z,$){return new a7().fromBinary(Z,$)}static fromJson(Z,$){return new a7().fromJson(Z,$)}static fromJsonString(Z,$){return new a7().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(a7,Z,$)}static $(){return["McpImageContent|1 data 12|2 mime_type 9"]}};s7=class s7 extends u{constructor(Z){super();this.content={case:void 0},C.util.initPartial(Z,this)}static fromBinary(Z,$){return new s7().fromBinary(Z,$)}static fromJson(Z,$){return new s7().fromJson(Z,$)}static fromJsonString(Z,$){return new s7().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(s7,Z,$)}static $(){return["McpToolResultContentItem|1 text #0 content|2 image #1 content",r7,a7]}};p8=class p8 extends u{constructor(Z){super();this.body="",C.util.initPartial(Z,this)}static fromBinary(Z,$){return new p8().fromBinary(Z,$)}static fromJson(Z,$){return new p8().fromJson(Z,$)}static fromJsonString(Z,$){return new p8().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(p8,Z,$)}static $(){return["SystemReminder|1 body 9"]}};p6=class p6 extends u{constructor(Z){super();this.content=[],this.isError=!1,this.systemReminders=[],C.util.initPartial(Z,this)}static fromBinary(Z,$){return new p6().fromBinary(Z,$)}static fromJson(Z,$){return new p6().fromJson(Z,$)}static fromJsonString(Z,$){return new p6().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(p6,Z,$)}static $(){return["McpSuccess|1 content #0*|2 is_error 8|3 structured_content #1|4 system_reminders #2*|5 result_meta #1",s7,Mx,p8]}};i6=class i6 extends u{constructor(Z){super();this.reason="",this.isReadonly=!1,C.util.initPartial(Z,this)}static fromBinary(Z,$){return new i6().fromBinary(Z,$)}static fromJson(Z,$){return new i6().fromJson(Z,$)}static fromJsonString(Z,$){return new i6().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(i6,Z,$)}static $(){return["McpRejected|1 reason 9|2 is_readonly 8"]}};n6=class n6 extends u{constructor(Z){super();this.error="",this.isReadonly=!1,C.util.initPartial(Z,this)}static fromBinary(Z,$){return new n6().fromBinary(Z,$)}static fromJson(Z,$){return new n6().fromJson(Z,$)}static fromJsonString(Z,$){return new n6().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(n6,Z,$)}static $(){return["McpPermissionDenied|1 error 9|2 is_readonly 8"]}};r6=class r6 extends u{constructor(Z){super();C.util.initPartial(Z,this)}static fromBinary(Z,$){return new r6().fromBinary(Z,$)}static fromJson(Z,$){return new r6().fromJson(Z,$)}static fromJsonString(Z,$){return new r6().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(r6,Z,$)}static $(){return["ListMcpResourcesExecArgs|1 server 9?"]}};a6=class a6 extends u{constructor(Z){super();this.result={case:void 0},C.util.initPartial(Z,this)}static fromBinary(Z,$){return new a6().fromBinary(Z,$)}static fromJson(Z,$){return new a6().fromJson(Z,$)}static fromJsonString(Z,$){return new a6().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(a6,Z,$)}static $(){return["ListMcpResourcesExecResult|1 success #0 result|2 error #1 result|3 rejected #2 result",o7,e7,Z1]}};t7=class t7 extends u{constructor(Z){super();this.uri="",this.server="",this.annotations={},C.util.initPartial(Z,this)}static fromBinary(Z,$){return new t7().fromBinary(Z,$)}static fromJson(Z,$){return new t7().fromJson(Z,$)}static fromJsonString(Z,$){return new t7().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(t7,Z,$)}static $(){return["ListMcpResourcesExecResult.McpResource|1 uri 9|2 name 9?|3 description 9?|4 mime_type 9?|5 server 9|6 annotations 9,9"]}};o7=class o7 extends u{constructor(Z){super();this.resources=[],C.util.initPartial(Z,this)}static fromBinary(Z,$){return new o7().fromBinary(Z,$)}static fromJson(Z,$){return new o7().fromJson(Z,$)}static fromJsonString(Z,$){return new o7().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(o7,Z,$)}static $(){return["ListMcpResourcesSuccess|1 resources #0*",t7]}};e7=class e7 extends u{constructor(Z){super();this.error="",C.util.initPartial(Z,this)}static fromBinary(Z,$){return new e7().fromBinary(Z,$)}static fromJson(Z,$){return new e7().fromJson(Z,$)}static fromJsonString(Z,$){return new e7().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(e7,Z,$)}static $(){return["ListMcpResourcesError|1 error 9"]}};Z1=class Z1 extends u{constructor(Z){super();this.reason="",C.util.initPartial(Z,this)}static fromBinary(Z,$){return new Z1().fromBinary(Z,$)}static fromJson(Z,$){return new Z1().fromJson(Z,$)}static fromJsonString(Z,$){return new Z1().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(Z1,Z,$)}static $(){return["ListMcpResourcesRejected|1 reason 9"]}};s6=class s6 extends u{constructor(Z){super();this.server="",this.uri="",this.toolCallId="",C.util.initPartial(Z,this)}static fromBinary(Z,$){return new s6().fromBinary(Z,$)}static fromJson(Z,$){return new s6().fromJson(Z,$)}static fromJsonString(Z,$){return new s6().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(s6,Z,$)}static $(){return["ReadMcpResourceExecArgs|1 server 9|2 uri 9|3 download_path 9?|4 tool_call_id 9|5 smart_mode_approval #0?",n0]}};t6=class t6 extends u{constructor(Z){super();this.result={case:void 0},C.util.initPartial(Z,this)}static fromBinary(Z,$){return new t6().fromBinary(Z,$)}static fromJson(Z,$){return new t6().fromJson(Z,$)}static fromJsonString(Z,$){return new t6().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(t6,Z,$)}static $(){return["ReadMcpResourceExecResult|1 success #0 result|2 error #1 result|3 rejected #2 result|4 not_found #3 result",$1,J1,Y1,X1]}};$1=class $1 extends u{constructor(Z){super();this.uri="",this.content={case:void 0},this.annotations={},C.util.initPartial(Z,this)}static fromBinary(Z,$){return new $1().fromBinary(Z,$)}static fromJson(Z,$){return new $1().fromJson(Z,$)}static fromJsonString(Z,$){return new $1().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals($1,Z,$)}static $(){return["ReadMcpResourceSuccess|1 uri 9|2 name 9?|3 description 9?|4 mime_type 9?|5 text 9 content|6 blob 12 content|7 annotations 9,9|8 download_path 9?|9 output_location #0?|10 meta_json 9?",N0]}};J1=class J1 extends u{constructor(Z){super();this.uri="",this.error="",C.util.initPartial(Z,this)}static fromBinary(Z,$){return new J1().fromBinary(Z,$)}static fromJson(Z,$){return new J1().fromJson(Z,$)}static fromJsonString(Z,$){return new J1().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(J1,Z,$)}static $(){return["ReadMcpResourceError|1 uri 9|2 error 9"]}};Y1=class Y1 extends u{constructor(Z){super();this.uri="",this.reason="",C.util.initPartial(Z,this)}static fromBinary(Z,$){return new Y1().fromBinary(Z,$)}static fromJson(Z,$){return new Y1().fromJson(Z,$)}static fromJsonString(Z,$){return new Y1().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(Y1,Z,$)}static $(){return["ReadMcpResourceRejected|1 uri 9|2 reason 9"]}};X1=class X1 extends u{constructor(Z){super();this.uri="",C.util.initPartial(Z,this)}static fromBinary(Z,$){return new X1().fromBinary(Z,$)}static fromJson(Z,$){return new X1().fromJson(Z,$)}static fromJsonString(Z,$){return new X1().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(X1,Z,$)}static $(){return["ReadMcpResourceNotFound|1 uri 9"]}}});import{Message as $n,proto3 as e6}from"@bufbuild/protobuf";var Cx="agent.v1.",JH,z1,K1,o6;var tB=O(()=>{kW();A();JH=class JH extends G{static get runtime(){return F(this,"runtime",e6)}static $p(){return Cx}};z1=class z1 extends JH{constructor(Z){super();this.error="",this.readToolDefReminder="",this.systemReminders=[],e6.util.initPartial(Z,this)}static fromBinary(Z,$){return new z1().fromBinary(Z,$)}static fromJson(Z,$){return new z1().fromJson(Z,$)}static fromJsonString(Z,$){return new z1().fromJsonString(Z,$)}static equals(Z,$){return e6.util.equals(z1,Z,$)}static $(){return["McpToolError|1 error 9|2 read_tool_def_reminder 9|3 system_reminders #0*",p8]}};K1=class K1 extends JH{constructor(Z){super();this.result={case:void 0},e6.util.initPartial(Z,this)}static fromBinary(Z,$){return new K1().fromBinary(Z,$)}static fromJson(Z,$){return new K1().fromJson(Z,$)}static fromJsonString(Z,$){return new K1().fromJsonString(Z,$)}static equals(Z,$){return e6.util.equals(K1,Z,$)}static $(){return["McpToolResult|1 success #0 result|2 error #1 result|3 rejected #2 result|4 permission_denied #3 result",p6,z1,i6,n6]}};o6=class o6 extends JH{constructor(Z){super();e6.util.initPartial(Z,this)}static fromBinary(Z,$){return new o6().fromBinary(Z,$)}static fromJson(Z,$){return new o6().fromJson(Z,$)}static fromJsonString(Z,$){return new o6().fromJsonString(Z,$)}static equals(Z,$){return e6.util.equals(o6,Z,$)}static $(){return["McpToolCall|1 args #0|2 result #1|3 description 9?",l6,K1]}}});import{Message as Kn,proto3 as F0}from"@bufbuild/protobuf";var hx="aiserver.v1.",i8,Q1,ZZ,$Z,JZ,H1,W1,q1;var oB=O(()=>{A();i8=class i8 extends G{static get runtime(){return F(this,"runtime",F0)}static $p(){return hx}};Q1=class Q1 extends i8{constructor(Z){super();this.line=0,this.column=0,F0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Q1().fromBinary(Z,$)}static fromJson(Z,$){return new Q1().fromJson(Z,$)}static fromJsonString(Z,$){return new Q1().fromJsonString(Z,$)}static equals(Z,$){return F0.util.equals(Q1,Z,$)}static $(){return["CursorPosition|1 line 5|2 column 5"]}};ZZ=class ZZ extends i8{constructor(Z){super();F0.util.initPartial(Z,this)}static fromBinary(Z,$){return new ZZ().fromBinary(Z,$)}static fromJson(Z,$){return new ZZ().fromJson(Z,$)}static fromJsonString(Z,$){return new ZZ().fromJsonString(Z,$)}static equals(Z,$){return F0.util.equals(ZZ,Z,$)}static $(){return["CursorRange|1 start_position #0|2 end_position #0",Q1]}};$Z=class $Z extends i8{constructor(Z){super();this.text="",this.lineNumber=0,this.isSignature=!1,F0.util.initPartial(Z,this)}static fromBinary(Z,$){return new $Z().fromBinary(Z,$)}static fromJson(Z,$){return new $Z().fromJson(Z,$)}static fromJsonString(Z,$){return new $Z().fromJsonString(Z,$)}static equals(Z,$){return F0.util.equals($Z,Z,$)}static $(){return["DetailedLine|1 text 9|2 line_number 2|3 is_signature 8"]}};JZ=class JZ extends i8{constructor(Z){super();this.relativeWorkspacePath="",this.contents="",this.detailedLines=[],F0.util.initPartial(Z,this)}static fromBinary(Z,$){return new JZ().fromBinary(Z,$)}static fromJson(Z,$){return new JZ().fromJson(Z,$)}static fromJsonString(Z,$){return new JZ().fromJsonString(Z,$)}static equals(Z,$){return F0.util.equals(JZ,Z,$)}static $(){return["CodeBlock|1 relative_workspace_path 9|2 file_contents 9?|9 file_contents_length 5?|3 range #0|4 contents 9|5 signatures #1|6 override_contents 9?|7 original_contents 9?|8 detailed_lines #2*|10 file_git_context #3",ZZ,H1,$Z,q1]}};H1=class H1 extends i8{constructor(Z){super();this.ranges=[],F0.util.initPartial(Z,this)}static fromBinary(Z,$){return new H1().fromBinary(Z,$)}static fromJson(Z,$){return new H1().fromJson(Z,$)}static fromJsonString(Z,$){return new H1().fromJsonString(Z,$)}static equals(Z,$){return F0.util.equals(H1,Z,$)}static $(){return["CodeBlock.Signatures|1 ranges #0*",ZZ]}};W1=class W1 extends i8{constructor(Z){super();this.commit="",this.author="",this.date="",this.message="",F0.util.initPartial(Z,this)}static fromBinary(Z,$){return new W1().fromBinary(Z,$)}static fromJson(Z,$){return new W1().fromJson(Z,$)}static fromJsonString(Z,$){return new W1().fromJsonString(Z,$)}static equals(Z,$){return F0.util.equals(W1,Z,$)}static $(){return["GitCommit|1 commit 9|2 author 9|3 date 9|4 message 9"]}};q1=class q1 extends i8{constructor(Z){super();this.commits=[],F0.util.initPartial(Z,this)}static fromBinary(Z,$){return new q1().fromBinary(Z,$)}static fromJson(Z,$){return new q1().fromJson(Z,$)}static fromJsonString(Z,$){return new q1().fromJsonString(Z,$)}static equals(Z,$){return F0.util.equals(q1,Z,$)}static $(){return["FileGit|1 commits #0*",W1]}}});import{Message as Gn,proto3 as PW,protoInt64 as Ln}from"@bufbuild/protobuf";var Rx="aiserver.v1.",eB,YZ;var ZF=O(()=>{oB();A();eB=class eB extends G{static get runtime(){return F(this,"runtime",PW)}static $p(){return Rx}};YZ=class YZ extends eB{constructor(Z){super();this.score=0,PW.util.initPartial(Z,this)}static fromBinary(Z,$){return new YZ().fromBinary(Z,$)}static fromJson(Z,$){return new YZ().fromJson(Z,$)}static fromJsonString(Z,$){return new YZ().fromJsonString(Z,$)}static equals(Z,$){return PW.util.equals(YZ,Z,$)}static $(){return["CodeResult|1 code_block #0|2 score 2",JZ]}}});import{Message as In,proto3 as s0}from"@bufbuild/protobuf";var vx="agent.v1.",L1,XZ,N1,B1,F1,G1;var $F=O(()=>{ZF();A();L1=class L1 extends G{static get runtime(){return F(this,"runtime",s0)}static $p(){return vx}};XZ=class XZ extends L1{constructor(Z){super();s0.util.initPartial(Z,this)}static fromBinary(Z,$){return new XZ().fromBinary(Z,$)}static fromJson(Z,$){return new XZ().fromJson(Z,$)}static fromJsonString(Z,$){return new XZ().fromJsonString(Z,$)}static equals(Z,$){return s0.util.equals(XZ,Z,$)}static $(){return["SemSearchToolCall|1 args #0|2 result #1",N1,B1]}};N1=class N1 extends L1{constructor(Z){super();this.query="",this.targetDirectories=[],this.explanation="",s0.util.initPartial(Z,this)}static fromBinary(Z,$){return new N1().fromBinary(Z,$)}static fromJson(Z,$){return new N1().fromJson(Z,$)}static fromJsonString(Z,$){return new N1().fromJsonString(Z,$)}static equals(Z,$){return s0.util.equals(N1,Z,$)}static $(){return["SemSearchToolArgs|1 query 9|2 target_directories 9*|3 explanation 9"]}};B1=class B1 extends L1{constructor(Z){super();this.result={case:void 0},s0.util.initPartial(Z,this)}static fromBinary(Z,$){return new B1().fromBinary(Z,$)}static fromJson(Z,$){return new B1().fromJson(Z,$)}static fromJsonString(Z,$){return new B1().fromJsonString(Z,$)}static equals(Z,$){return s0.util.equals(B1,Z,$)}static $(){return["SemSearchToolResult|1 success #0 result|2 error #1 result",F1,G1]}};F1=class F1 extends L1{constructor(Z){super();this.results="",this.codeResults=[],s0.util.initPartial(Z,this)}static fromBinary(Z,$){return new F1().fromBinary(Z,$)}static fromJson(Z,$){return new F1().fromJson(Z,$)}static fromJsonString(Z,$){return new F1().fromJsonString(Z,$)}static equals(Z,$){return s0.util.equals(F1,Z,$)}static $(){return["SemSearchToolSuccess|1 results 9|2 code_results #0*",YZ]}};G1=class G1 extends L1{constructor(Z){super();this.errorMessage="",s0.util.initPartial(Z,this)}static fromBinary(Z,$){return new G1().fromBinary(Z,$)}static fromJson(Z,$){return new G1().fromJson(Z,$)}static fromJsonString(Z,$){return new G1().fromJsonString(Z,$)}static equals(Z,$){return s0.util.equals(G1,Z,$)}static $(){return["SemSearchToolError|1 error_message 9"]}}});import{Message as Vn,proto3 as G0}from"@bufbuild/protobuf";var yx="agent.v1.",n8,zZ,D1,w1,KZ,U1,O1,QZ;var JF=O(()=>{$H();A();n8=class n8 extends G{static get runtime(){return F(this,"runtime",G0)}static $p(){return yx}};zZ=class zZ extends n8{constructor(Z){super();G0.util.initPartial(Z,this)}static fromBinary(Z,$){return new zZ().fromBinary(Z,$)}static fromJson(Z,$){return new zZ().fromJson(Z,$)}static fromJsonString(Z,$){return new zZ().fromJsonString(Z,$)}static equals(Z,$){return G0.util.equals(zZ,Z,$)}static $(){return["CreatePlanToolCall|1 args #0|2 result #1",w1,KZ]}};D1=class D1 extends n8{constructor(Z){super();this.name="",this.todos=[],G0.util.initPartial(Z,this)}static fromBinary(Z,$){return new D1().fromBinary(Z,$)}static fromJson(Z,$){return new D1().fromJson(Z,$)}static fromJsonString(Z,$){return new D1().fromJsonString(Z,$)}static equals(Z,$){return G0.util.equals(D1,Z,$)}static $(){return["Phase|1 name 9|2 todos #0*",B0]}};w1=class w1 extends n8{constructor(Z){super();this.plan="",this.todos=[],this.overview="",this.name="",this.isProject=!1,this.phases=[],G0.util.initPartial(Z,this)}static fromBinary(Z,$){return new w1().fromBinary(Z,$)}static fromJson(Z,$){return new w1().fromJson(Z,$)}static fromJsonString(Z,$){return new w1().fromJsonString(Z,$)}static equals(Z,$){return G0.util.equals(w1,Z,$)}static $(){return["CreatePlanArgs|1 plan 9|2 todos #0*|3 overview 9|4 name 9|5 is_project 8|6 phases #1*",B0,D1]}};KZ=class KZ extends n8{constructor(Z){super();this.result={case:void 0},this.planUri="",G0.util.initPartial(Z,this)}static fromBinary(Z,$){return new KZ().fromBinary(Z,$)}static fromJson(Z,$){return new KZ().fromJson(Z,$)}static fromJsonString(Z,$){return new KZ().fromJsonString(Z,$)}static equals(Z,$){return G0.util.equals(KZ,Z,$)}static $(){return["CreatePlanResult|1 success #0 result|2 error #1 result|3 plan_uri 9",U1,O1]}};U1=class U1 extends n8{constructor(Z){super();G0.util.initPartial(Z,this)}static fromBinary(Z,$){return new U1().fromBinary(Z,$)}static fromJson(Z,$){return new U1().fromJson(Z,$)}static fromJsonString(Z,$){return new U1().fromJsonString(Z,$)}static equals(Z,$){return G0.util.equals(U1,Z,$)}static $(){return["CreatePlanSuccess"]}};O1=class O1 extends n8{constructor(Z){super();this.error="",G0.util.initPartial(Z,this)}static fromBinary(Z,$){return new O1().fromBinary(Z,$)}static fromJson(Z,$){return new O1().fromJson(Z,$)}static fromJsonString(Z,$){return new O1().fromJsonString(Z,$)}static equals(Z,$){return G0.util.equals(O1,Z,$)}static $(){return["CreatePlanError|1 error 9"]}};QZ=class QZ extends n8{constructor(Z){super();G0.util.initPartial(Z,this)}static fromBinary(Z,$){return new QZ().fromBinary(Z,$)}static fromJson(Z,$){return new QZ().fromJson(Z,$)}static fromJsonString(Z,$){return new QZ().fromJsonString(Z,$)}static equals(Z,$){return G0.util.equals(QZ,Z,$)}static $(){return["CreatePlanRequestResponse|1 result #0",KZ]}}});import{Message as Cn,proto3 as i}from"@bufbuild/protobuf";var mx="agent.v1.",t0,I1,k1,P1,E1,f1,V1,HZ,WZ,A1,M1;var YF=O(()=>{A();t0=class t0 extends G{static get runtime(){return F(this,"runtime",i)}static $p(){return mx}};I1=class I1 extends t0{constructor(Z){super();this.searchTerm="",this.toolCallId="",i.util.initPartial(Z,this)}static fromBinary(Z,$){return new I1().fromBinary(Z,$)}static fromJson(Z,$){return new I1().fromJson(Z,$)}static fromJsonString(Z,$){return new I1().fromJsonString(Z,$)}static equals(Z,$){return i.util.equals(I1,Z,$)}static $(){return["WebSearchArgs|1 search_term 9|2 tool_call_id 9"]}};k1=class k1 extends t0{constructor(Z){super();this.result={case:void 0},i.util.initPartial(Z,this)}static fromBinary(Z,$){return new k1().fromBinary(Z,$)}static fromJson(Z,$){return new k1().fromJson(Z,$)}static fromJsonString(Z,$){return new k1().fromJsonString(Z,$)}static equals(Z,$){return i.util.equals(k1,Z,$)}static $(){return["WebSearchResult|1 success #0 result|2 error #1 result|3 rejected #2 result",P1,E1,f1]}};P1=class P1 extends t0{constructor(Z){super();this.references=[],i.util.initPartial(Z,this)}static fromBinary(Z,$){return new P1().fromBinary(Z,$)}static fromJson(Z,$){return new P1().fromJson(Z,$)}static fromJsonString(Z,$){return new P1().fromJsonString(Z,$)}static equals(Z,$){return i.util.equals(P1,Z,$)}static $(){return["WebSearchSuccess|1 references #0*",V1]}};E1=class E1 extends t0{constructor(Z){super();this.error="",i.util.initPartial(Z,this)}static fromBinary(Z,$){return new E1().fromBinary(Z,$)}static fromJson(Z,$){return new E1().fromJson(Z,$)}static fromJsonString(Z,$){return new E1().fromJsonString(Z,$)}static equals(Z,$){return i.util.equals(E1,Z,$)}static $(){return["WebSearchError|1 error 9"]}};f1=class f1 extends t0{constructor(Z){super();this.reason="",i.util.initPartial(Z,this)}static fromBinary(Z,$){return new f1().fromBinary(Z,$)}static fromJson(Z,$){return new f1().fromJson(Z,$)}static fromJsonString(Z,$){return new f1().fromJsonString(Z,$)}static equals(Z,$){return i.util.equals(f1,Z,$)}static $(){return["WebSearchRejected|1 reason 9"]}};V1=class V1 extends t0{constructor(Z){super();this.title="",this.url="",this.chunk="",i.util.initPartial(Z,this)}static fromBinary(Z,$){return new V1().fromBinary(Z,$)}static fromJson(Z,$){return new V1().fromJson(Z,$)}static fromJsonString(Z,$){return new V1().fromJsonString(Z,$)}static equals(Z,$){return i.util.equals(V1,Z,$)}static $(){return["WebSearchReference|1 title 9|2 url 9|3 chunk 9"]}};HZ=class HZ extends t0{constructor(Z){super();i.util.initPartial(Z,this)}static fromBinary(Z,$){return new HZ().fromBinary(Z,$)}static fromJson(Z,$){return new HZ().fromJson(Z,$)}static fromJsonString(Z,$){return new HZ().fromJsonString(Z,$)}static equals(Z,$){return i.util.equals(HZ,Z,$)}static $(){return["WebSearchToolCall|1 args #0|2 result #1",I1,k1]}};WZ=class WZ extends t0{constructor(Z){super();this.result={case:void 0},i.util.initPartial(Z,this)}static fromBinary(Z,$){return new WZ().fromBinary(Z,$)}static fromJson(Z,$){return new WZ().fromJson(Z,$)}static fromJsonString(Z,$){return new WZ().fromJsonString(Z,$)}static equals(Z,$){return i.util.equals(WZ,Z,$)}static $(){return["WebSearchRequestResponse|1 approved #0 result|2 rejected #1 result",A1,M1]}};A1=class A1 extends t0{constructor(Z){super();i.util.initPartial(Z,this)}static fromBinary(Z,$){return new A1().fromBinary(Z,$)}static fromJson(Z,$){return new A1().fromJson(Z,$)}static fromJsonString(Z,$){return new A1().fromJsonString(Z,$)}static equals(Z,$){return i.util.equals(A1,Z,$)}static $(){return["WebSearchRequestResponse.Approved"]}};M1=class M1 extends t0{constructor(Z){super();this.reason="",i.util.initPartial(Z,this)}static fromBinary(Z,$){return new M1().fromBinary(Z,$)}static fromJson(Z,$){return new M1().fromJson(Z,$)}static fromJsonString(Z,$){return new M1().fromJsonString(Z,$)}static equals(Z,$){return i.util.equals(M1,Z,$)}static $(){return["WebSearchRequestResponse.Rejected|1 reason 9"]}}});import{Message as yn,proto3 as IQ}from"@bufbuild/protobuf";var jx="agent.v1.",EW,qZ,NZ;var XF=O(()=>{kW();A();EW=class EW extends G{static get runtime(){return F(this,"runtime",IQ)}static $p(){return jx}};qZ=class qZ extends EW{constructor(Z){super();IQ.util.initPartial(Z,this)}static fromBinary(Z,$){return new qZ().fromBinary(Z,$)}static fromJson(Z,$){return new qZ().fromJson(Z,$)}static fromJsonString(Z,$){return new qZ().fromJsonString(Z,$)}static equals(Z,$){return IQ.util.equals(qZ,Z,$)}static $(){return["ListMcpResourcesToolCall|1 args #0|2 result #1",r6,a6]}};NZ=class NZ extends EW{constructor(Z){super();IQ.util.initPartial(Z,this)}static fromBinary(Z,$){return new NZ().fromBinary(Z,$)}static fromJson(Z,$){return new NZ().fromJson(Z,$)}static fromJsonString(Z,$){return new NZ().fromJsonString(Z,$)}static equals(Z,$){return IQ.util.equals(NZ,Z,$)}static $(){return["ReadMcpResourceToolCall|1 args #0|2 result #1",s6,t6]}}});import{Message as gn,proto3 as V0}from"@bufbuild/protobuf";var KF="agent.v1.",GZ,BZ,x1,T1,C1,FZ,zF,h1;var QF=O(()=>{A();GZ=class GZ extends G{static get runtime(){return F(this,"runtime",V0)}static $p(){return KF}};BZ=class BZ extends GZ{constructor(Z){super();V0.util.initPartial(Z,this)}static fromBinary(Z,$){return new BZ().fromBinary(Z,$)}static fromJson(Z,$){return new BZ().fromJson(Z,$)}static fromJsonString(Z,$){return new BZ().fromJsonString(Z,$)}static equals(Z,$){return V0.util.equals(BZ,Z,$)}static $(){return["ApplyAgentDiffToolCall|1 args #0|2 result #1",x1,T1]}};x1=class x1 extends GZ{constructor(Z){super();this.agentId="",V0.util.initPartial(Z,this)}static fromBinary(Z,$){return new x1().fromBinary(Z,$)}static fromJson(Z,$){return new x1().fromJson(Z,$)}static fromJsonString(Z,$){return new x1().fromJsonString(Z,$)}static equals(Z,$){return V0.util.equals(x1,Z,$)}static $(){return["ApplyAgentDiffArgs|1 agent_id 9"]}};T1=class T1 extends GZ{constructor(Z){super();this.result={case:void 0},V0.util.initPartial(Z,this)}static fromBinary(Z,$){return new T1().fromBinary(Z,$)}static fromJson(Z,$){return new T1().fromJson(Z,$)}static fromJsonString(Z,$){return new T1().fromJsonString(Z,$)}static equals(Z,$){return V0.util.equals(T1,Z,$)}static $(){return["ApplyAgentDiffResult|1 success #0 result|2 error #1 result",C1,h1]}};C1=class C1 extends GZ{constructor(Z){super();this.appliedChanges=[],V0.util.initPartial(Z,this)}static fromBinary(Z,$){return new C1().fromBinary(Z,$)}static fromJson(Z,$){return new C1().fromJson(Z,$)}static fromJsonString(Z,$){return new C1().fromJsonString(Z,$)}static equals(Z,$){return V0.util.equals(C1,Z,$)}static $(){return["ApplyAgentDiffSuccess|1 applied_changes #0*",FZ]}};FZ=class FZ extends GZ{constructor(Z){super();this.path="",this.changeType=zF.UNSPECIFIED,V0.util.initPartial(Z,this)}static fromBinary(Z,$){return new FZ().fromBinary(Z,$)}static fromJson(Z,$){return new FZ().fromJson(Z,$)}static fromJsonString(Z,$){return new FZ().fromJsonString(Z,$)}static equals(Z,$){return V0.util.equals(FZ,Z,$)}static $(){return["AppliedAgentChange|1 path 9|2 change_type #0|3 before_content 9?|4 after_content 9?|5 error 9?|6 message_for_model 9?",zF]}};zF=D(V0,KF,"AppliedAgentChange.ChangeType",[[0,"UNSPECIFIED"],[1,"CREATED"],[2,"MODIFIED"],[3,"DELETED"]],1);h1=class h1 extends GZ{constructor(Z){super();this.error="",this.appliedChanges=[],V0.util.initPartial(Z,this)}static fromBinary(Z,$){return new h1().fromBinary(Z,$)}static fromJson(Z,$){return new h1().fromJson(Z,$)}static fromJsonString(Z,$){return new h1().fromJsonString(Z,$)}static equals(Z,$){return V0.util.equals(h1,Z,$)}static $(){return["ApplyAgentDiffError|1 error 9|2 applied_changes #0*",FZ]}}});import{Message as un,proto3 as n}from"@bufbuild/protobuf";var _x="agent.v1.",o0,LZ,DZ,R1,v1,y1,r8,m1,j1,_1,S1;var HF=O(()=>{A();o0=class o0 extends G{static get runtime(){return F(this,"runtime",n)}static $p(){return _x}};LZ=class LZ extends o0{constructor(Z){super();n.util.initPartial(Z,this)}static fromBinary(Z,$){return new LZ().fromBinary(Z,$)}static fromJson(Z,$){return new LZ().fromJson(Z,$)}static fromJsonString(Z,$){return new LZ().fromJsonString(Z,$)}static equals(Z,$){return n.util.equals(LZ,Z,$)}static $(){return["AskQuestionToolCall|1 args #0|2 result #1",DZ,r8]}};DZ=class DZ extends o0{constructor(Z){super();this.title="",this.questions=[],this.runAsync=!1,this.asyncOriginalToolCallId="",n.util.initPartial(Z,this)}static fromBinary(Z,$){return new DZ().fromBinary(Z,$)}static fromJson(Z,$){return new DZ().fromJson(Z,$)}static fromJsonString(Z,$){return new DZ().fromJsonString(Z,$)}static equals(Z,$){return n.util.equals(DZ,Z,$)}static $(){return["AskQuestionArgs|1 title 9|2 questions #0*|5 run_async 8|6 async_original_tool_call_id 9",R1]}};R1=class R1 extends o0{constructor(Z){super();this.id="",this.prompt="",this.options=[],this.allowMultiple=!1,n.util.initPartial(Z,this)}static fromBinary(Z,$){return new R1().fromBinary(Z,$)}static fromJson(Z,$){return new R1().fromJson(Z,$)}static fromJsonString(Z,$){return new R1().fromJsonString(Z,$)}static equals(Z,$){return n.util.equals(R1,Z,$)}static $(){return["AskQuestionArgs.Question|1 id 9|2 prompt 9|3 options #0*|4 allow_multiple 8|5 prompt_markdown 9?",v1]}};v1=class v1 extends o0{constructor(Z){super();this.id="",this.label="",n.util.initPartial(Z,this)}static fromBinary(Z,$){return new v1().fromBinary(Z,$)}static fromJson(Z,$){return new v1().fromJson(Z,$)}static fromJsonString(Z,$){return new v1().fromJsonString(Z,$)}static equals(Z,$){return n.util.equals(v1,Z,$)}static $(){return["AskQuestionArgs.Option|1 id 9|2 label 9"]}};y1=class y1 extends o0{constructor(Z){super();this.interactionId="",n.util.initPartial(Z,this)}static fromBinary(Z,$){return new y1().fromBinary(Z,$)}static fromJson(Z,$){return new y1().fromJson(Z,$)}static fromJsonString(Z,$){return new y1().fromJsonString(Z,$)}static equals(Z,$){return n.util.equals(y1,Z,$)}static $(){return["AskQuestionAsync|1 interaction_id 9"]}};r8=class r8 extends o0{constructor(Z){super();this.result={case:void 0},n.util.initPartial(Z,this)}static fromBinary(Z,$){return new r8().fromBinary(Z,$)}static fromJson(Z,$){return new r8().fromJson(Z,$)}static fromJsonString(Z,$){return new r8().fromJsonString(Z,$)}static equals(Z,$){return n.util.equals(r8,Z,$)}static $(){return["AskQuestionResult|1 success #0 result|2 error #1 result|3 rejected #2 result|4 async #3 result",m1,_1,S1,y1]}};m1=class m1 extends o0{constructor(Z){super();this.answers=[],n.util.initPartial(Z,this)}static fromBinary(Z,$){return new m1().fromBinary(Z,$)}static fromJson(Z,$){return new m1().fromJson(Z,$)}static fromJsonString(Z,$){return new m1().fromJsonString(Z,$)}static equals(Z,$){return n.util.equals(m1,Z,$)}static $(){return["AskQuestionSuccess|1 answers #0*",j1]}};j1=class j1 extends o0{constructor(Z){super();this.questionId="",this.selectedOptionIds=[],this.freeformText="",n.util.initPartial(Z,this)}static fromBinary(Z,$){return new j1().fromBinary(Z,$)}static fromJson(Z,$){return new j1().fromJson(Z,$)}static fromJsonString(Z,$){return new j1().fromJsonString(Z,$)}static equals(Z,$){return n.util.equals(j1,Z,$)}static $(){return["AskQuestionSuccess.Answer|1 question_id 9|2 selected_option_ids 9*|3 freeform_text 9"]}};_1=class _1 extends o0{constructor(Z){super();this.errorMessage="",n.util.initPartial(Z,this)}static fromBinary(Z,$){return new _1().fromBinary(Z,$)}static fromJson(Z,$){return new _1().fromJson(Z,$)}static fromJsonString(Z,$){return new _1().fromJsonString(Z,$)}static equals(Z,$){return n.util.equals(_1,Z,$)}static $(){return["AskQuestionError|1 error_message 9"]}};S1=class S1 extends o0{constructor(Z){super();this.reason="",n.util.initPartial(Z,this)}static fromBinary(Z,$){return new S1().fromBinary(Z,$)}static fromJson(Z,$){return new S1().fromJson(Z,$)}static fromJsonString(Z,$){return new S1().fromJsonString(Z,$)}static equals(Z,$){return n.util.equals(S1,Z,$)}static $(){return["AskQuestionRejected|1 reason 9"]}}});import{Message as rn,proto3 as A8}from"@bufbuild/protobuf";var Sx="agent.v1.",kQ,wZ,UZ,g1,b1;var WF=O(()=>{A();kQ=class kQ extends G{static get runtime(){return F(this,"runtime",A8)}static $p(){return Sx}};wZ=class wZ extends kQ{constructor(Z){super();this.url="",this.toolCallId="",A8.util.initPartial(Z,this)}static fromBinary(Z,$){return new wZ().fromBinary(Z,$)}static fromJson(Z,$){return new wZ().fromJson(Z,$)}static fromJsonString(Z,$){return new wZ().fromJsonString(Z,$)}static equals(Z,$){return A8.util.equals(wZ,Z,$)}static $(){return["FetchArgs|1 url 9|2 tool_call_id 9"]}};UZ=class UZ extends kQ{constructor(Z){super();this.result={case:void 0},A8.util.initPartial(Z,this)}static fromBinary(Z,$){return new UZ().fromBinary(Z,$)}static fromJson(Z,$){return new UZ().fromJson(Z,$)}static fromJsonString(Z,$){return new UZ().fromJsonString(Z,$)}static equals(Z,$){return A8.util.equals(UZ,Z,$)}static $(){return["FetchResult|1 success #0 result|2 error #1 result",g1,b1]}};g1=class g1 extends kQ{constructor(Z){super();this.url="",this.content="",this.statusCode=0,this.contentType="",A8.util.initPartial(Z,this)}static fromBinary(Z,$){return new g1().fromBinary(Z,$)}static fromJson(Z,$){return new g1().fromJson(Z,$)}static fromJsonString(Z,$){return new g1().fromJsonString(Z,$)}static equals(Z,$){return A8.util.equals(g1,Z,$)}static $(){return["FetchSuccess|1 url 9|2 content 9|3 status_code 5|4 content_type 9"]}};b1=class b1 extends kQ{constructor(Z){super();this.url="",this.error="",A8.util.initPartial(Z,this)}static fromBinary(Z,$){return new b1().fromBinary(Z,$)}static fromJson(Z,$){return new b1().fromJson(Z,$)}static fromJsonString(Z,$){return new b1().fromJsonString(Z,$)}static equals(Z,$){return A8.util.equals(b1,Z,$)}static $(){return["FetchError|1 url 9|2 error 9"]}}});import{Message as on,proto3 as fW}from"@bufbuild/protobuf";var gx="agent.v1.",qF,OZ;var NF=O(()=>{WF();A();qF=class qF extends G{static get runtime(){return F(this,"runtime",fW)}static $p(){return gx}};OZ=class OZ extends qF{constructor(Z){super();fW.util.initPartial(Z,this)}static fromBinary(Z,$){return new OZ().fromBinary(Z,$)}static fromJson(Z,$){return new OZ().fromJson(Z,$)}static fromJsonString(Z,$){return new OZ().fromJsonString(Z,$)}static equals(Z,$){return fW.util.equals(OZ,Z,$)}static $(){return["FetchToolCall|1 args #0|2 result #1",wZ,UZ]}}});import{Message as Yr,proto3 as o}from"@bufbuild/protobuf";var bx="agent.v1.",D8,c1,d1,u1,l1,p1,IZ,kZ,i1,n1;var BF=O(()=>{A();D8=class D8 extends G{static get runtime(){return F(this,"runtime",o)}static $p(){return bx}};c1=class c1 extends D8{constructor(Z){super();this.targetModeId="",this.toolCallId="",o.util.initPartial(Z,this)}static fromBinary(Z,$){return new c1().fromBinary(Z,$)}static fromJson(Z,$){return new c1().fromJson(Z,$)}static fromJsonString(Z,$){return new c1().fromJsonString(Z,$)}static equals(Z,$){return o.util.equals(c1,Z,$)}static $(){return["SwitchModeArgs|1 target_mode_id 9|2 explanation 9?|3 tool_call_id 9"]}};d1=class d1 extends D8{constructor(Z){super();this.result={case:void 0},o.util.initPartial(Z,this)}static fromBinary(Z,$){return new d1().fromBinary(Z,$)}static fromJson(Z,$){return new d1().fromJson(Z,$)}static fromJsonString(Z,$){return new d1().fromJsonString(Z,$)}static equals(Z,$){return o.util.equals(d1,Z,$)}static $(){return["SwitchModeResult|1 success #0 result|2 error #1 result|3 rejected #2 result",u1,l1,p1]}};u1=class u1 extends D8{constructor(Z){super();this.fromModeId="",this.toModeId="",o.util.initPartial(Z,this)}static fromBinary(Z,$){return new u1().fromBinary(Z,$)}static fromJson(Z,$){return new u1().fromJson(Z,$)}static fromJsonString(Z,$){return new u1().fromJsonString(Z,$)}static equals(Z,$){return o.util.equals(u1,Z,$)}static $(){return["SwitchModeSuccess|1 from_mode_id 9|2 to_mode_id 9"]}};l1=class l1 extends D8{constructor(Z){super();this.error="",o.util.initPartial(Z,this)}static fromBinary(Z,$){return new l1().fromBinary(Z,$)}static fromJson(Z,$){return new l1().fromJson(Z,$)}static fromJsonString(Z,$){return new l1().fromJsonString(Z,$)}static equals(Z,$){return o.util.equals(l1,Z,$)}static $(){return["SwitchModeError|1 error 9"]}};p1=class p1 extends D8{constructor(Z){super();this.reason="",o.util.initPartial(Z,this)}static fromBinary(Z,$){return new p1().fromBinary(Z,$)}static fromJson(Z,$){return new p1().fromJson(Z,$)}static fromJsonString(Z,$){return new p1().fromJsonString(Z,$)}static equals(Z,$){return o.util.equals(p1,Z,$)}static $(){return["SwitchModeRejected|1 reason 9"]}};IZ=class IZ extends D8{constructor(Z){super();o.util.initPartial(Z,this)}static fromBinary(Z,$){return new IZ().fromBinary(Z,$)}static fromJson(Z,$){return new IZ().fromJson(Z,$)}static fromJsonString(Z,$){return new IZ().fromJsonString(Z,$)}static equals(Z,$){return o.util.equals(IZ,Z,$)}static $(){return["SwitchModeToolCall|1 args #0|2 result #1",c1,d1]}};kZ=class kZ extends D8{constructor(Z){super();this.result={case:void 0},o.util.initPartial(Z,this)}static fromBinary(Z,$){return new kZ().fromBinary(Z,$)}static fromJson(Z,$){return new kZ().fromJson(Z,$)}static fromJsonString(Z,$){return new kZ().fromJsonString(Z,$)}static equals(Z,$){return o.util.equals(kZ,Z,$)}static $(){return["SwitchModeRequestResponse|1 approved #0 result|2 rejected #1 result",i1,n1]}};i1=class i1 extends D8{constructor(Z){super();o.util.initPartial(Z,this)}static fromBinary(Z,$){return new i1().fromBinary(Z,$)}static fromJson(Z,$){return new i1().fromJson(Z,$)}static fromJsonString(Z,$){return new i1().fromJsonString(Z,$)}static equals(Z,$){return o.util.equals(i1,Z,$)}static $(){return["SwitchModeRequestResponse.Approved"]}};n1=class n1 extends D8{constructor(Z){super();this.reason="",o.util.initPartial(Z,this)}static fromBinary(Z,$){return new n1().fromBinary(Z,$)}static fromJson(Z,$){return new n1().fromJson(Z,$)}static fromJsonString(Z,$){return new n1().fromJsonString(Z,$)}static equals(Z,$){return o.util.equals(n1,Z,$)}static $(){return["SwitchModeRequestResponse.Rejected|1 reason 9"]}}});import{Message as Qr,proto3 as z0}from"@bufbuild/protobuf";var cx="agent.v1.",M8,r1,a1,s1,t1,PZ,EZ,o1,e1;var FF=O(()=>{A();M8=class M8 extends G{static get runtime(){return F(this,"runtime",z0)}static $p(){return cx}};r1=class r1 extends M8{constructor(Z){super();this.description="",this.referenceImagePaths=[],z0.util.initPartial(Z,this)}static fromBinary(Z,$){return new r1().fromBinary(Z,$)}static fromJson(Z,$){return new r1().fromJson(Z,$)}static fromJsonString(Z,$){return new r1().fromJsonString(Z,$)}static equals(Z,$){return z0.util.equals(r1,Z,$)}static $(){return["GenerateImageArgs|1 description 9|2 file_path 9?|5 reference_image_paths 9*|6 aspect_ratio 9?"]}};a1=class a1 extends M8{constructor(Z){super();this.result={case:void 0},z0.util.initPartial(Z,this)}static fromBinary(Z,$){return new a1().fromBinary(Z,$)}static fromJson(Z,$){return new a1().fromJson(Z,$)}static fromJsonString(Z,$){return new a1().fromJsonString(Z,$)}static equals(Z,$){return z0.util.equals(a1,Z,$)}static $(){return["GenerateImageResult|1 success #0 result|2 error #1 result",s1,t1]}};s1=class s1 extends M8{constructor(Z){super();this.filePath="",this.imageData="",z0.util.initPartial(Z,this)}static fromBinary(Z,$){return new s1().fromBinary(Z,$)}static fromJson(Z,$){return new s1().fromJson(Z,$)}static fromJsonString(Z,$){return new s1().fromJsonString(Z,$)}static equals(Z,$){return z0.util.equals(s1,Z,$)}static $(){return["GenerateImageSuccess|1 file_path 9|2 image_data 9"]}};t1=class t1 extends M8{constructor(Z){super();this.error="",z0.util.initPartial(Z,this)}static fromBinary(Z,$){return new t1().fromBinary(Z,$)}static fromJson(Z,$){return new t1().fromJson(Z,$)}static fromJsonString(Z,$){return new t1().fromJsonString(Z,$)}static equals(Z,$){return z0.util.equals(t1,Z,$)}static $(){return["GenerateImageError|1 error 9"]}};PZ=class PZ extends M8{constructor(Z){super();z0.util.initPartial(Z,this)}static fromBinary(Z,$){return new PZ().fromBinary(Z,$)}static fromJson(Z,$){return new PZ().fromJson(Z,$)}static fromJsonString(Z,$){return new PZ().fromJsonString(Z,$)}static equals(Z,$){return z0.util.equals(PZ,Z,$)}static $(){return["GenerateImageToolCall|1 args #0|2 result #1",r1,a1]}};EZ=class EZ extends M8{constructor(Z){super();this.result={case:void 0},z0.util.initPartial(Z,this)}static fromBinary(Z,$){return new EZ().fromBinary(Z,$)}static fromJson(Z,$){return new EZ().fromJson(Z,$)}static fromJsonString(Z,$){return new EZ().fromJsonString(Z,$)}static equals(Z,$){return z0.util.equals(EZ,Z,$)}static $(){return["GenerateImageRequestResponse|1 approved #0 result|2 rejected #1 result",o1,e1]}};o1=class o1 extends M8{constructor(Z){super();this.description="",z0.util.initPartial(Z,this)}static fromBinary(Z,$){return new o1().fromBinary(Z,$)}static fromJson(Z,$){return new o1().fromJson(Z,$)}static fromJsonString(Z,$){return new o1().fromJsonString(Z,$)}static equals(Z,$){return z0.util.equals(o1,Z,$)}static $(){return["GenerateImageRequestResponse.Approved|1 description 9"]}};e1=class e1 extends M8{constructor(Z){super();this.reason="",z0.util.initPartial(Z,this)}static fromBinary(Z,$){return new e1().fromBinary(Z,$)}static fromJson(Z,$){return new e1().fromJson(Z,$)}static fromJsonString(Z,$){return new e1().fromJsonString(Z,$)}static equals(Z,$){return z0.util.equals(e1,Z,$)}static $(){return["GenerateImageRequestResponse.Rejected|1 reason 9"]}}});import{Message as Nr,proto3 as L0,protoInt64 as dx}from"@bufbuild/protobuf";var VW="agent.v1.",AZ,GF,ux,fZ,VZ,Z5,$5,J5,Y5;var LF=O(()=>{A();AZ=class AZ extends G{static get runtime(){return F(this,"runtime",L0)}static $p(){return VW}};GF=D(L0,VW,"RecordingMode",[[0,"UNSPECIFIED"],[1,"START_RECORDING"],[2,"SAVE_RECORDING"],[3,"DISCARD_RECORDING"]],1),ux=D(L0,VW,"RequestedFilePathRejectedReason",[[0,"UNSPECIFIED"],[1,"SLASHES_NOT_ALLOWED"]],1);fZ=class fZ extends AZ{constructor(Z){super();this.mode=GF.UNSPECIFIED,this.toolCallId="",L0.util.initPartial(Z,this)}static fromBinary(Z,$){return new fZ().fromBinary(Z,$)}static fromJson(Z,$){return new fZ().fromJson(Z,$)}static fromJsonString(Z,$){return new fZ().fromJsonString(Z,$)}static equals(Z,$){return L0.util.equals(fZ,Z,$)}static $(){return["RecordScreenArgs|1 mode #0|2 tool_call_id 9|3 save_as_filename 9?",GF]}};VZ=class VZ extends AZ{constructor(Z){super();this.result={case:void 0},L0.util.initPartial(Z,this)}static fromBinary(Z,$){return new VZ().fromBinary(Z,$)}static fromJson(Z,$){return new VZ().fromJson(Z,$)}static fromJsonString(Z,$){return new VZ().fromJsonString(Z,$)}static equals(Z,$){return L0.util.equals(VZ,Z,$)}static $(){return["RecordScreenResult|1 start_success #0 result|2 save_success #1 result|3 discard_success #2 result|4 failure #3 result",Z5,$5,J5,Y5]}};Z5=class Z5 extends AZ{constructor(Z){super();this.wasPriorRecordingCancelled=!1,this.wasSaveAsFilenameIgnored=!1,L0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Z5().fromBinary(Z,$)}static fromJson(Z,$){return new Z5().fromJson(Z,$)}static fromJsonString(Z,$){return new Z5().fromJsonString(Z,$)}static equals(Z,$){return L0.util.equals(Z5,Z,$)}static $(){return["RecordScreenStartSuccess|1 was_prior_recording_cancelled 8|2 was_save_as_filename_ignored 8"]}};$5=class $5 extends AZ{constructor(Z){super();this.path="",this.recordingDurationMs=dx.zero,L0.util.initPartial(Z,this)}static fromBinary(Z,$){return new $5().fromBinary(Z,$)}static fromJson(Z,$){return new $5().fromJson(Z,$)}static fromJsonString(Z,$){return new $5().fromJsonString(Z,$)}static equals(Z,$){return L0.util.equals($5,Z,$)}static $(){return["RecordScreenSaveSuccess|1 path 9|2 recording_duration_ms 3|3 requested_file_path_rejected_reason #0?",ux]}};J5=class J5 extends AZ{constructor(Z){super();L0.util.initPartial(Z,this)}static fromBinary(Z,$){return new J5().fromBinary(Z,$)}static fromJson(Z,$){return new J5().fromJson(Z,$)}static fromJsonString(Z,$){return new J5().fromJsonString(Z,$)}static equals(Z,$){return L0.util.equals(J5,Z,$)}static $(){return["RecordScreenDiscardSuccess"]}};Y5=class Y5 extends AZ{constructor(Z){super();this.error="",L0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Y5().fromBinary(Z,$)}static fromJson(Z,$){return new Y5().fromJson(Z,$)}static fromJsonString(Z,$){return new Y5().fromJsonString(Z,$)}static equals(Z,$){return L0.util.equals(Y5,Z,$)}static $(){return["RecordScreenFailure|1 error 9"]}}});import{Message as Lr,proto3 as AW}from"@bufbuild/protobuf";var lx="agent.v1.",DF,MZ;var wF=O(()=>{LF();A();DF=class DF extends G{static get runtime(){return F(this,"runtime",AW)}static $p(){return lx}};MZ=class MZ extends DF{constructor(Z){super();AW.util.initPartial(Z,this)}static fromBinary(Z,$){return new MZ().fromBinary(Z,$)}static fromJson(Z,$){return new MZ().fromJson(Z,$)}static fromJsonString(Z,$){return new MZ().fromJsonString(Z,$)}static equals(Z,$){return AW.util.equals(MZ,Z,$)}static $(){return["RecordScreenToolCall|1 args #0|2 result #1",fZ,VZ]}}});import{Message as Ir,proto3 as T}from"@bufbuild/protobuf";var PQ="agent.v1.",l,a8,UF,OF,IF,w8,X5,z5,K5,Q5,H5,W5,q5,N5,B5,F5,G5,L5,D5,w5,U5,O5,I5,xZ,k5,TZ;var kF=O(()=>{A();l=class l extends G{static get runtime(){return F(this,"runtime",T)}static $p(){return PQ}};a8=D(T,PQ,"MouseButton",[[0,"UNSPECIFIED"],[1,"LEFT"],[2,"RIGHT"],[3,"MIDDLE"],[4,"BACK"],[5,"FORWARD"]],1),UF=D(T,PQ,"ScrollDirection",[[0,"UNSPECIFIED"],[1,"UP"],[2,"DOWN"],[3,"LEFT"],[4,"RIGHT"]],1),OF=D(T,PQ,"KeyStroke",[[0,"UNSPECIFIED"],[1,"TAP"],[2,"DOWN"],[3,"UP"]],1),IF=D(T,PQ,"ComputerUseDriver",[[0,"UNSPECIFIED"],[1,"XDOTOOL"],[2,"NATIVE_X11"]],1);w8=class w8 extends l{constructor(Z){super();this.x=0,this.y=0,T.util.initPartial(Z,this)}static fromBinary(Z,$){return new w8().fromBinary(Z,$)}static fromJson(Z,$){return new w8().fromJson(Z,$)}static fromJsonString(Z,$){return new w8().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(w8,Z,$)}static $(){return["Coordinate|1 x 5|2 y 5"]}};X5=class X5 extends l{constructor(Z){super();this.toolCallId="",this.actions=[],T.util.initPartial(Z,this)}static fromBinary(Z,$){return new X5().fromBinary(Z,$)}static fromJson(Z,$){return new X5().fromJson(Z,$)}static fromJsonString(Z,$){return new X5().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(X5,Z,$)}static $(){return["ComputerUseArgs|1 tool_call_id 9|2 actions #0*|3 description 9?|4 bind_unmapped_characters 8?|5 desktop_lease_actor_id 9?|6 screenshot_settle_ms 5?|10 native_x11_driver #1?|11 mark_monitor_busy 8?|9 full_resolution_screenshot 8?|12 capture_name_prefix 9?|13 omit_inline_screenshot 8?",K5,z5]}};z5=class z5 extends l{constructor(Z){super();T.util.initPartial(Z,this)}static fromBinary(Z,$){return new z5().fromBinary(Z,$)}static fromJson(Z,$){return new z5().fromJson(Z,$)}static fromJsonString(Z,$){return new z5().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(z5,Z,$)}static $(){return["NativeX11Driver|1 typing_delay_ms 5?|2 allow_fallback 8?"]}};K5=class K5 extends l{constructor(Z){super();this.action={case:void 0},T.util.initPartial(Z,this)}static fromBinary(Z,$){return new K5().fromBinary(Z,$)}static fromJson(Z,$){return new K5().fromJson(Z,$)}static fromJsonString(Z,$){return new K5().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(K5,Z,$)}static $(){return["ComputerUseAction|1 mouse_move #0 action|2 click #1 action|3 mouse_down #2 action|4 mouse_up #3 action|5 drag #4 action|6 scroll #5 action|7 type #6 action|8 key #7 action|9 wait #8 action|10 screenshot #9 action|11 cursor_position #10 action",Q5,H5,W5,q5,N5,B5,F5,G5,L5,D5,w5]}};Q5=class Q5 extends l{constructor(Z){super();T.util.initPartial(Z,this)}static fromBinary(Z,$){return new Q5().fromBinary(Z,$)}static fromJson(Z,$){return new Q5().fromJson(Z,$)}static fromJsonString(Z,$){return new Q5().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(Q5,Z,$)}static $(){return["MouseMoveAction|1 coordinate #0",w8]}};H5=class H5 extends l{constructor(Z){super();this.button=a8.UNSPECIFIED,this.count=0,T.util.initPartial(Z,this)}static fromBinary(Z,$){return new H5().fromBinary(Z,$)}static fromJson(Z,$){return new H5().fromJson(Z,$)}static fromJsonString(Z,$){return new H5().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(H5,Z,$)}static $(){return["ClickAction|1 coordinate #0?|2 button #1|3 count 5|4 modifier_keys 9?",w8,a8]}};W5=class W5 extends l{constructor(Z){super();this.button=a8.UNSPECIFIED,T.util.initPartial(Z,this)}static fromBinary(Z,$){return new W5().fromBinary(Z,$)}static fromJson(Z,$){return new W5().fromJson(Z,$)}static fromJsonString(Z,$){return new W5().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(W5,Z,$)}static $(){return["MouseDownAction|1 button #0",a8]}};q5=class q5 extends l{constructor(Z){super();this.button=a8.UNSPECIFIED,T.util.initPartial(Z,this)}static fromBinary(Z,$){return new q5().fromBinary(Z,$)}static fromJson(Z,$){return new q5().fromJson(Z,$)}static fromJsonString(Z,$){return new q5().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(q5,Z,$)}static $(){return["MouseUpAction|1 button #0",a8]}};N5=class N5 extends l{constructor(Z){super();this.path=[],this.button=a8.UNSPECIFIED,T.util.initPartial(Z,this)}static fromBinary(Z,$){return new N5().fromBinary(Z,$)}static fromJson(Z,$){return new N5().fromJson(Z,$)}static fromJsonString(Z,$){return new N5().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(N5,Z,$)}static $(){return["DragAction|1 path #0*|2 button #1|3 modifier_keys 9?",w8,a8]}};B5=class B5 extends l{constructor(Z){super();this.direction=UF.UNSPECIFIED,this.amount=0,T.util.initPartial(Z,this)}static fromBinary(Z,$){return new B5().fromBinary(Z,$)}static fromJson(Z,$){return new B5().fromJson(Z,$)}static fromJsonString(Z,$){return new B5().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(B5,Z,$)}static $(){return["ScrollAction|1 coordinate #0?|2 direction #1|3 amount 5|4 modifier_keys 9?",w8,UF]}};F5=class F5 extends l{constructor(Z){super();this.text="",T.util.initPartial(Z,this)}static fromBinary(Z,$){return new F5().fromBinary(Z,$)}static fromJson(Z,$){return new F5().fromJson(Z,$)}static fromJsonString(Z,$){return new F5().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(F5,Z,$)}static $(){return["TypeAction|1 text 9"]}};G5=class G5 extends l{constructor(Z){super();this.key="",this.stroke=OF.UNSPECIFIED,T.util.initPartial(Z,this)}static fromBinary(Z,$){return new G5().fromBinary(Z,$)}static fromJson(Z,$){return new G5().fromJson(Z,$)}static fromJsonString(Z,$){return new G5().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(G5,Z,$)}static $(){return["KeyAction|1 key 9|2 hold_duration_ms 5?|3 stroke #0",OF]}};L5=class L5 extends l{constructor(Z){super();this.durationMs=0,T.util.initPartial(Z,this)}static fromBinary(Z,$){return new L5().fromBinary(Z,$)}static fromJson(Z,$){return new L5().fromJson(Z,$)}static fromJsonString(Z,$){return new L5().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(L5,Z,$)}static $(){return["WaitAction|1 duration_ms 5"]}};D5=class D5 extends l{constructor(Z){super();T.util.initPartial(Z,this)}static fromBinary(Z,$){return new D5().fromBinary(Z,$)}static fromJson(Z,$){return new D5().fromJson(Z,$)}static fromJsonString(Z,$){return new D5().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(D5,Z,$)}static $(){return["ScreenshotAction"]}};w5=class w5 extends l{constructor(Z){super();T.util.initPartial(Z,this)}static fromBinary(Z,$){return new w5().fromBinary(Z,$)}static fromJson(Z,$){return new w5().fromJson(Z,$)}static fromJsonString(Z,$){return new w5().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(w5,Z,$)}static $(){return["CursorPositionAction"]}};U5=class U5 extends l{constructor(Z){super();this.result={case:void 0},T.util.initPartial(Z,this)}static fromBinary(Z,$){return new U5().fromBinary(Z,$)}static fromJson(Z,$){return new U5().fromJson(Z,$)}static fromJsonString(Z,$){return new U5().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(U5,Z,$)}static $(){return["ComputerUseResult|1 success #0 result|2 error #1 result",O5,k5]}};O5=class O5 extends l{constructor(Z){super();this.actionCount=0,this.durationMs=0,this.typing=[],T.util.initPartial(Z,this)}static fromBinary(Z,$){return new O5().fromBinary(Z,$)}static fromJson(Z,$){return new O5().fromJson(Z,$)}static fromJsonString(Z,$){return new O5().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(O5,Z,$)}static $(){return["ComputerUseSuccess|1 action_count 5|2 duration_ms 5|3 screenshot 9?|4 log 9?|5 screenshot_path 9?|6 cursor_position #0?|7 settle_ms 5?|9 driver #1?|10 monitor_busy_marked 8?|11 full_resolution_screenshot #2?|12 typing #3*",w8,IF,I5,xZ]}};I5=class I5 extends l{constructor(Z){super();this.path="",this.sha256="",this.sizeBytes=0,this.width=0,this.height=0,T.util.initPartial(Z,this)}static fromBinary(Z,$){return new I5().fromBinary(Z,$)}static fromJson(Z,$){return new I5().fromJson(Z,$)}static fromJsonString(Z,$){return new I5().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(I5,Z,$)}static $(){return["ComputerUseFullResolutionScreenshot|1 path 9|2 sha256 9|3 size_bytes 13|4 width 5|5 height 5"]}};xZ=class xZ extends l{constructor(Z){super();this.method="",this.chars=0,this.atoms=0,this.typedAtoms=0,this.aborted=!1,T.util.initPartial(Z,this)}static fromBinary(Z,$){return new xZ().fromBinary(Z,$)}static fromJson(Z,$){return new xZ().fromJson(Z,$)}static fromJsonString(Z,$){return new xZ().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(xZ,Z,$)}static $(){return["ComputerUseTyping|1 method 9|2 chars 5|3 atoms 5|4 typed_atoms 5|5 aborted 8|6 check 9?|7 verified 5?|8 unchecked 9?|9 landing 9?"]}};k5=class k5 extends l{constructor(Z){super();this.error="",this.actionCount=0,this.durationMs=0,this.typing=[],T.util.initPartial(Z,this)}static fromBinary(Z,$){return new k5().fromBinary(Z,$)}static fromJson(Z,$){return new k5().fromJson(Z,$)}static fromJsonString(Z,$){return new k5().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(k5,Z,$)}static $(){return["ComputerUseError|1 error 9|2 action_count 5|3 duration_ms 5|4 log 9?|5 screenshot 9?|6 screenshot_path 9?|7 driver #0?|8 monitor_busy_marked 8?|9 typing #1*",IF,xZ]}};TZ=class TZ extends l{constructor(Z){super();T.util.initPartial(Z,this)}static fromBinary(Z,$){return new TZ().fromBinary(Z,$)}static fromJson(Z,$){return new TZ().fromJson(Z,$)}static fromJsonString(Z,$){return new TZ().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(TZ,Z,$)}static $(){return["ComputerUseToolCall|1 args #0|2 result #1",X5,U5]}}});import{Message as fr,proto3 as x8}from"@bufbuild/protobuf";var px="agent.v1.",EQ,CZ,hZ,P5,E5;var PF=O(()=>{A();EQ=class EQ extends G{static get runtime(){return F(this,"runtime",x8)}static $p(){return px}};CZ=class CZ extends EQ{constructor(Z){super();this.shellId=0,this.chars="",x8.util.initPartial(Z,this)}static fromBinary(Z,$){return new CZ().fromBinary(Z,$)}static fromJson(Z,$){return new CZ().fromJson(Z,$)}static fromJsonString(Z,$){return new CZ().fromJsonString(Z,$)}static equals(Z,$){return x8.util.equals(CZ,Z,$)}static $(){return["WriteShellStdinArgs|1 shell_id 13|2 chars 9"]}};hZ=class hZ extends EQ{constructor(Z){super();this.result={case:void 0},x8.util.initPartial(Z,this)}static fromBinary(Z,$){return new hZ().fromBinary(Z,$)}static fromJson(Z,$){return new hZ().fromJson(Z,$)}static fromJsonString(Z,$){return new hZ().fromJsonString(Z,$)}static equals(Z,$){return x8.util.equals(hZ,Z,$)}static $(){return["WriteShellStdinResult|1 success #0 result|2 error #1 result",P5,E5]}};P5=class P5 extends EQ{constructor(Z){super();this.shellId=0,this.terminalFileLengthBeforeInputWritten=0,x8.util.initPartial(Z,this)}static fromBinary(Z,$){return new P5().fromBinary(Z,$)}static fromJson(Z,$){return new P5().fromJson(Z,$)}static fromJsonString(Z,$){return new P5().fromJsonString(Z,$)}static equals(Z,$){return x8.util.equals(P5,Z,$)}static $(){return["WriteShellStdinSuccess|1 shell_id 13|2 terminal_file_length_before_input_written 13"]}};E5=class E5 extends EQ{constructor(Z){super();this.error="",x8.util.initPartial(Z,this)}static fromBinary(Z,$){return new E5().fromBinary(Z,$)}static fromJson(Z,$){return new E5().fromJson(Z,$)}static fromJsonString(Z,$){return new E5().fromJsonString(Z,$)}static equals(Z,$){return x8.util.equals(E5,Z,$)}static $(){return["WriteShellStdinError|1 error 9"]}}});import{Message as xr,proto3 as MW}from"@bufbuild/protobuf";var ix="agent.v1.",EF,RZ;var fF=O(()=>{PF();A();EF=class EF extends G{static get runtime(){return F(this,"runtime",MW)}static $p(){return ix}};RZ=class RZ extends EF{constructor(Z){super();MW.util.initPartial(Z,this)}static fromBinary(Z,$){return new RZ().fromBinary(Z,$)}static fromJson(Z,$){return new RZ().fromJson(Z,$)}static fromJsonString(Z,$){return new RZ().fromJsonString(Z,$)}static equals(Z,$){return MW.util.equals(RZ,Z,$)}static $(){return["WriteShellStdinToolCall|1 args #0|2 result #1",CZ,hZ]}}});import{Message as vr,proto3 as e0}from"@bufbuild/protobuf";var nx="agent.v1.",x5,f5,V5,A5,M5,vZ;var VF=O(()=>{A();x5=class x5 extends G{static get runtime(){return F(this,"runtime",e0)}static $p(){return nx}};f5=class f5 extends x5{constructor(Z){super();this.unexpectedActionOutcomes="",this.relevantInstructions="",this.scenarioAnalysis="",this.criticalSynthesis="",this.nextSteps="",this.toolCallId="",e0.util.initPartial(Z,this)}static fromBinary(Z,$){return new f5().fromBinary(Z,$)}static fromJson(Z,$){return new f5().fromJson(Z,$)}static fromJsonString(Z,$){return new f5().fromJsonString(Z,$)}static equals(Z,$){return e0.util.equals(f5,Z,$)}static $(){return["ReflectArgs|1 unexpected_action_outcomes 9|2 relevant_instructions 9|3 scenario_analysis 9|4 critical_synthesis 9|5 next_steps 9|6 tool_call_id 9"]}};V5=class V5 extends x5{constructor(Z){super();this.result={case:void 0},e0.util.initPartial(Z,this)}static fromBinary(Z,$){return new V5().fromBinary(Z,$)}static fromJson(Z,$){return new V5().fromJson(Z,$)}static fromJsonString(Z,$){return new V5().fromJsonString(Z,$)}static equals(Z,$){return e0.util.equals(V5,Z,$)}static $(){return["ReflectResult|1 success #0 result|2 error #1 result",A5,M5]}};A5=class A5 extends x5{constructor(Z){super();e0.util.initPartial(Z,this)}static fromBinary(Z,$){return new A5().fromBinary(Z,$)}static fromJson(Z,$){return new A5().fromJson(Z,$)}static fromJsonString(Z,$){return new A5().fromJsonString(Z,$)}static equals(Z,$){return e0.util.equals(A5,Z,$)}static $(){return["ReflectSuccess"]}};M5=class M5 extends x5{constructor(Z){super();this.error="",e0.util.initPartial(Z,this)}static fromBinary(Z,$){return new M5().fromBinary(Z,$)}static fromJson(Z,$){return new M5().fromJson(Z,$)}static fromJsonString(Z,$){return new M5().fromJsonString(Z,$)}static equals(Z,$){return e0.util.equals(M5,Z,$)}static $(){return["ReflectError|1 error 9"]}};vZ=class vZ extends x5{constructor(Z){super();e0.util.initPartial(Z,this)}static fromBinary(Z,$){return new vZ().fromBinary(Z,$)}static fromJson(Z,$){return new vZ().fromJson(Z,$)}static fromJsonString(Z,$){return new vZ().fromJsonString(Z,$)}static equals(Z,$){return e0.util.equals(vZ,Z,$)}static $(){return["ReflectToolCall|1 args #0|2 result #1",f5,V5]}}});import{Message as _r,proto3 as T8}from"@bufbuild/protobuf";var rx="agent.v1.",fQ,yZ,s8,T5,mZ;var AF=O(()=>{A();fQ=class fQ extends G{static get runtime(){return F(this,"runtime",T8)}static $p(){return rx}};yZ=class yZ extends fQ{constructor(Z){super();this.installCommand="",this.startCommand="",this.dockerfileContents="",T8.util.initPartial(Z,this)}static fromBinary(Z,$){return new yZ().fromBinary(Z,$)}static fromJson(Z,$){return new yZ().fromJson(Z,$)}static fromJsonString(Z,$){return new yZ().fromJsonString(Z,$)}static equals(Z,$){return T8.util.equals(yZ,Z,$)}static $(){return["SetupVmEnvironmentArgs|2 install_command 9|3 start_command 9|4 dockerfile_contents 9"]}};s8=class s8 extends fQ{constructor(Z){super();this.result={case:void 0},T8.util.initPartial(Z,this)}static fromBinary(Z,$){return new s8().fromBinary(Z,$)}static fromJson(Z,$){return new s8().fromJson(Z,$)}static fromJsonString(Z,$){return new s8().fromJsonString(Z,$)}static equals(Z,$){return T8.util.equals(s8,Z,$)}static $(){return["SetupVmEnvironmentResult|1 success #0 result",T5]}};T5=class T5 extends fQ{constructor(Z){super();T8.util.initPartial(Z,this)}static fromBinary(Z,$){return new T5().fromBinary(Z,$)}static fromJson(Z,$){return new T5().fromJson(Z,$)}static fromJsonString(Z,$){return new T5().fromJsonString(Z,$)}static equals(Z,$){return T8.util.equals(T5,Z,$)}static $(){return["SetupVmEnvironmentSuccess"]}};mZ=class mZ extends fQ{constructor(Z){super();T8.util.initPartial(Z,this)}static fromBinary(Z,$){return new mZ().fromBinary(Z,$)}static fromJson(Z,$){return new mZ().fromJson(Z,$)}static fromJsonString(Z,$){return new mZ().fromJsonString(Z,$)}static equals(Z,$){return T8.util.equals(mZ,Z,$)}static $(){return["SetupVmEnvironmentToolCall|1 args #0|2 result #1",yZ,s8]}}});import{Message as cr,proto3 as Z8}from"@bufbuild/protobuf";var ax="agent.v1.",y5,C5,h5,R5,v5,jZ;var MF=O(()=>{A();y5=class y5 extends G{static get runtime(){return F(this,"runtime",Z8)}static $p(){return ax}};C5=class C5 extends y5{constructor(Z){super();this.toolCallId="",Z8.util.initPartial(Z,this)}static fromBinary(Z,$){return new C5().fromBinary(Z,$)}static fromJson(Z,$){return new C5().fromJson(Z,$)}static fromJsonString(Z,$){return new C5().fromJsonString(Z,$)}static equals(Z,$){return Z8.util.equals(C5,Z,$)}static $(){return["StartGrindExecutionArgs|1 explanation 9?|2 tool_call_id 9"]}};h5=class h5 extends y5{constructor(Z){super();this.result={case:void 0},Z8.util.initPartial(Z,this)}static fromBinary(Z,$){return new h5().fromBinary(Z,$)}static fromJson(Z,$){return new h5().fromJson(Z,$)}static fromJsonString(Z,$){return new h5().fromJsonString(Z,$)}static equals(Z,$){return Z8.util.equals(h5,Z,$)}static $(){return["StartGrindExecutionResult|1 success #0 result|2 error #1 result",R5,v5]}};R5=class R5 extends y5{constructor(Z){super();Z8.util.initPartial(Z,this)}static fromBinary(Z,$){return new R5().fromBinary(Z,$)}static fromJson(Z,$){return new R5().fromJson(Z,$)}static fromJsonString(Z,$){return new R5().fromJsonString(Z,$)}static equals(Z,$){return Z8.util.equals(R5,Z,$)}static $(){return["StartGrindExecutionSuccess"]}};v5=class v5 extends y5{constructor(Z){super();this.error="",Z8.util.initPartial(Z,this)}static fromBinary(Z,$){return new v5().fromBinary(Z,$)}static fromJson(Z,$){return new v5().fromJson(Z,$)}static fromJsonString(Z,$){return new v5().fromJsonString(Z,$)}static equals(Z,$){return Z8.util.equals(v5,Z,$)}static $(){return["StartGrindExecutionError|1 error 9"]}};jZ=class jZ extends y5{constructor(Z){super();Z8.util.initPartial(Z,this)}static fromBinary(Z,$){return new jZ().fromBinary(Z,$)}static fromJson(Z,$){return new jZ().fromJson(Z,$)}static fromJsonString(Z,$){return new jZ().fromJsonString(Z,$)}static equals(Z,$){return Z8.util.equals(jZ,Z,$)}static $(){return["StartGrindExecutionToolCall|1 args #0|2 result #1",C5,h5]}}});import{Message as pr,proto3 as $8}from"@bufbuild/protobuf";var sx="agent.v1.",g5,m5,j5,_5,S5,_Z;var xF=O(()=>{A();g5=class g5 extends G{static get runtime(){return F(this,"runtime",$8)}static $p(){return sx}};m5=class m5 extends g5{constructor(Z){super();this.toolCallId="",$8.util.initPartial(Z,this)}static fromBinary(Z,$){return new m5().fromBinary(Z,$)}static fromJson(Z,$){return new m5().fromJson(Z,$)}static fromJsonString(Z,$){return new m5().fromJsonString(Z,$)}static equals(Z,$){return $8.util.equals(m5,Z,$)}static $(){return["StartGrindPlanningArgs|1 explanation 9?|2 tool_call_id 9"]}};j5=class j5 extends g5{constructor(Z){super();this.result={case:void 0},$8.util.initPartial(Z,this)}static fromBinary(Z,$){return new j5().fromBinary(Z,$)}static fromJson(Z,$){return new j5().fromJson(Z,$)}static fromJsonString(Z,$){return new j5().fromJsonString(Z,$)}static equals(Z,$){return $8.util.equals(j5,Z,$)}static $(){return["StartGrindPlanningResult|1 success #0 result|2 error #1 result",_5,S5]}};_5=class _5 extends g5{constructor(Z){super();$8.util.initPartial(Z,this)}static fromBinary(Z,$){return new _5().fromBinary(Z,$)}static fromJson(Z,$){return new _5().fromJson(Z,$)}static fromJsonString(Z,$){return new _5().fromJsonString(Z,$)}static equals(Z,$){return $8.util.equals(_5,Z,$)}static $(){return["StartGrindPlanningSuccess"]}};S5=class S5 extends g5{constructor(Z){super();this.error="",$8.util.initPartial(Z,this)}static fromBinary(Z,$){return new S5().fromBinary(Z,$)}static fromJson(Z,$){return new S5().fromJson(Z,$)}static fromJsonString(Z,$){return new S5().fromJsonString(Z,$)}static equals(Z,$){return $8.util.equals(S5,Z,$)}static $(){return["StartGrindPlanningError|1 error 9"]}};_Z=class _Z extends g5{constructor(Z){super();$8.util.initPartial(Z,this)}static fromBinary(Z,$){return new _Z().fromBinary(Z,$)}static fromJson(Z,$){return new _Z().fromJson(Z,$)}static fromJsonString(Z,$){return new _Z().fromJsonString(Z,$)}static equals(Z,$){return $8.util.equals(_Z,Z,$)}static $(){return["StartGrindPlanningToolCall|1 args #0|2 result #1",m5,j5]}}});import{Message as ar,proto3 as e}from"@bufbuild/protobuf";var tx="agent.v1.",U8,b5,c5,d5,u5,l5,SZ,gZ,p5,i5;var TF=O(()=>{P6();A();U8=class U8 extends G{static get runtime(){return F(this,"runtime",e)}static $p(){return tx}};b5=class b5 extends U8{constructor(Z){super();this.url="",this.toolCallId="",e.util.initPartial(Z,this)}static fromBinary(Z,$){return new b5().fromBinary(Z,$)}static fromJson(Z,$){return new b5().fromJson(Z,$)}static fromJsonString(Z,$){return new b5().fromJsonString(Z,$)}static equals(Z,$){return e.util.equals(b5,Z,$)}static $(){return["WebFetchArgs|1 url 9|2 tool_call_id 9"]}};c5=class c5 extends U8{constructor(Z){super();this.result={case:void 0},e.util.initPartial(Z,this)}static fromBinary(Z,$){return new c5().fromBinary(Z,$)}static fromJson(Z,$){return new c5().fromJson(Z,$)}static fromJsonString(Z,$){return new c5().fromJsonString(Z,$)}static equals(Z,$){return e.util.equals(c5,Z,$)}static $(){return["WebFetchResult|1 success #0 result|2 error #1 result|3 rejected #2 result",d5,u5,l5]}};d5=class d5 extends U8{constructor(Z){super();this.url="",this.markdown="",e.util.initPartial(Z,this)}static fromBinary(Z,$){return new d5().fromBinary(Z,$)}static fromJson(Z,$){return new d5().fromJson(Z,$)}static fromJsonString(Z,$){return new d5().fromJsonString(Z,$)}static equals(Z,$){return e.util.equals(d5,Z,$)}static $(){return["WebFetchSuccess|1 url 9|2 markdown 9|3 output_location #0?",N0]}};u5=class u5 extends U8{constructor(Z){super();this.url="",this.error="",e.util.initPartial(Z,this)}static fromBinary(Z,$){return new u5().fromBinary(Z,$)}static fromJson(Z,$){return new u5().fromJson(Z,$)}static fromJsonString(Z,$){return new u5().fromJsonString(Z,$)}static equals(Z,$){return e.util.equals(u5,Z,$)}static $(){return["WebFetchError|1 url 9|2 error 9"]}};l5=class l5 extends U8{constructor(Z){super();this.reason="",e.util.initPartial(Z,this)}static fromBinary(Z,$){return new l5().fromBinary(Z,$)}static fromJson(Z,$){return new l5().fromJson(Z,$)}static fromJsonString(Z,$){return new l5().fromJsonString(Z,$)}static equals(Z,$){return e.util.equals(l5,Z,$)}static $(){return["WebFetchRejected|1 reason 9"]}};SZ=class SZ extends U8{constructor(Z){super();e.util.initPartial(Z,this)}static fromBinary(Z,$){return new SZ().fromBinary(Z,$)}static fromJson(Z,$){return new SZ().fromJson(Z,$)}static fromJsonString(Z,$){return new SZ().fromJsonString(Z,$)}static equals(Z,$){return e.util.equals(SZ,Z,$)}static $(){return["WebFetchToolCall|1 args #0|2 result #1",b5,c5]}};gZ=class gZ extends U8{constructor(Z){super();this.result={case:void 0},e.util.initPartial(Z,this)}static fromBinary(Z,$){return new gZ().fromBinary(Z,$)}static fromJson(Z,$){return new gZ().fromJson(Z,$)}static fromJsonString(Z,$){return new gZ().fromJsonString(Z,$)}static equals(Z,$){return e.util.equals(gZ,Z,$)}static $(){return["WebFetchRequestResponse|1 approved #0 result|2 rejected #1 result",p5,i5]}};p5=class p5 extends U8{constructor(Z){super();e.util.initPartial(Z,this)}static fromBinary(Z,$){return new p5().fromBinary(Z,$)}static fromJson(Z,$){return new p5().fromJson(Z,$)}static fromJsonString(Z,$){return new p5().fromJsonString(Z,$)}static equals(Z,$){return e.util.equals(p5,Z,$)}static $(){return["WebFetchRequestResponse.Approved"]}};i5=class i5 extends U8{constructor(Z){super();this.reason="",e.util.initPartial(Z,this)}static fromBinary(Z,$){return new i5().fromBinary(Z,$)}static fromJson(Z,$){return new i5().fromJson(Z,$)}static fromJsonString(Z,$){return new i5().fromJsonString(Z,$)}static equals(Z,$){return e.util.equals(i5,Z,$)}static $(){return["WebFetchRequestResponse.Rejected|1 reason 9"]}}});import{Message as Za,proto3 as A0}from"@bufbuild/protobuf";var hF="agent.v1.",dZ,CF,bZ,n5,r5,a5,s5,cZ;var RF=O(()=>{A();dZ=class dZ extends G{static get runtime(){return F(this,"runtime",A0)}static $p(){return hF}};CF=D(A0,hF,"BugfixVerdict",[[0,"UNSPECIFIED"],[1,"FIXED"],[2,"FALSE_POSITIVE"],[3,"COULD_NOT_FIX"],[4,"RESOLVED_BY_OTHER_FIX"]],1);bZ=class bZ extends dZ{constructor(Z){super();this.bugId="",this.bugTitle="",this.verdict=CF.UNSPECIFIED,this.explanation="",A0.util.initPartial(Z,this)}static fromBinary(Z,$){return new bZ().fromBinary(Z,$)}static fromJson(Z,$){return new bZ().fromJson(Z,$)}static fromJsonString(Z,$){return new bZ().fromJsonString(Z,$)}static equals(Z,$){return A0.util.equals(bZ,Z,$)}static $(){return["BugfixResultItem|1 bug_id 9|2 bug_title 9|3 verdict #0|4 explanation 9|5 severity 9?",CF]}};n5=class n5 extends dZ{constructor(Z){super();this.summary="",this.results=[],A0.util.initPartial(Z,this)}static fromBinary(Z,$){return new n5().fromBinary(Z,$)}static fromJson(Z,$){return new n5().fromJson(Z,$)}static fromJsonString(Z,$){return new n5().fromJsonString(Z,$)}static equals(Z,$){return A0.util.equals(n5,Z,$)}static $(){return["ReportBugfixResultsArgs|1 summary 9|2 results #0*",bZ]}};r5=class r5 extends dZ{constructor(Z){super();this.results=[],A0.util.initPartial(Z,this)}static fromBinary(Z,$){return new r5().fromBinary(Z,$)}static fromJson(Z,$){return new r5().fromJson(Z,$)}static fromJsonString(Z,$){return new r5().fromJsonString(Z,$)}static equals(Z,$){return A0.util.equals(r5,Z,$)}static $(){return["ReportBugfixResultsSuccess|1 results #0*",bZ]}};a5=class a5 extends dZ{constructor(Z){super();this.error="",A0.util.initPartial(Z,this)}static fromBinary(Z,$){return new a5().fromBinary(Z,$)}static fromJson(Z,$){return new a5().fromJson(Z,$)}static fromJsonString(Z,$){return new a5().fromJsonString(Z,$)}static equals(Z,$){return A0.util.equals(a5,Z,$)}static $(){return["ReportBugfixResultsError|1 error 9"]}};s5=class s5 extends dZ{constructor(Z){super();this.result={case:void 0},A0.util.initPartial(Z,this)}static fromBinary(Z,$){return new s5().fromBinary(Z,$)}static fromJson(Z,$){return new s5().fromJson(Z,$)}static fromJsonString(Z,$){return new s5().fromJsonString(Z,$)}static equals(Z,$){return A0.util.equals(s5,Z,$)}static $(){return["ReportBugfixResultsResult|1 success #0 result|2 error #1 result",r5,a5]}};cZ=class cZ extends dZ{constructor(Z){super();A0.util.initPartial(Z,this)}static fromBinary(Z,$){return new cZ().fromBinary(Z,$)}static fromJson(Z,$){return new cZ().fromJson(Z,$)}static fromJsonString(Z,$){return new cZ().fromJsonString(Z,$)}static equals(Z,$){return A0.util.equals(cZ,Z,$)}static $(){return["ReportBugfixResultsToolCall|1 args #0|2 result #1",n5,s5]}}});import{Message as Xa,proto3 as J8}from"@bufbuild/protobuf";var ox="agent.v1.",$J,t5,o5,e5,ZJ,uZ;var vF=O(()=>{P6();A();$J=class $J extends G{static get runtime(){return F(this,"runtime",J8)}static $p(){return ox}};t5=class t5 extends $J{constructor(Z){super();this.filePaths=[],this.commitHashes=[],J8.util.initPartial(Z,this)}static fromBinary(Z,$){return new t5().fromBinary(Z,$)}static fromJson(Z,$){return new t5().fromJson(Z,$)}static fromJsonString(Z,$){return new t5().fromJsonString(Z,$)}static equals(Z,$){return J8.util.equals(t5,Z,$)}static $(){return["AiAttributionArgs|5 file_paths 9*|2 start_line 5?|3 end_line 5?|6 commit_hashes 9*|7 output_mode 9?|9 max_commits 5?|10 include_line_ranges 8?"]}};o5=class o5 extends $J{constructor(Z){super();this.result={case:void 0},J8.util.initPartial(Z,this)}static fromBinary(Z,$){return new o5().fromBinary(Z,$)}static fromJson(Z,$){return new o5().fromJson(Z,$)}static fromJsonString(Z,$){return new o5().fromJsonString(Z,$)}static equals(Z,$){return J8.util.equals(o5,Z,$)}static $(){return["AiAttributionResult|1 success #0 result|2 error #1 result",e5,ZJ]}};e5=class e5 extends $J{constructor(Z){super();this.attributionText="",J8.util.initPartial(Z,this)}static fromBinary(Z,$){return new e5().fromBinary(Z,$)}static fromJson(Z,$){return new e5().fromJson(Z,$)}static fromJsonString(Z,$){return new e5().fromJsonString(Z,$)}static equals(Z,$){return J8.util.equals(e5,Z,$)}static $(){return["AiAttributionSuccess|1 attribution_text 9|2 output_location #0?",N0]}};ZJ=class ZJ extends $J{constructor(Z){super();this.error="",J8.util.initPartial(Z,this)}static fromBinary(Z,$){return new ZJ().fromBinary(Z,$)}static fromJson(Z,$){return new ZJ().fromJson(Z,$)}static fromJsonString(Z,$){return new ZJ().fromJsonString(Z,$)}static equals(Z,$){return J8.util.equals(ZJ,Z,$)}static $(){return["AiAttributionError|1 error 9"]}};uZ=class uZ extends $J{constructor(Z){super();J8.util.initPartial(Z,this)}static fromBinary(Z,$){return new uZ().fromBinary(Z,$)}static fromJson(Z,$){return new uZ().fromJson(Z,$)}static fromJsonString(Z,$){return new uZ().fromJsonString(Z,$)}static equals(Z,$){return J8.util.equals(uZ,Z,$)}static $(){return["AiAttributionToolCall|1 args #0|2 result #1",t5,o5]}}});import{Message as Wa,proto3 as v,protoInt64 as ex}from"@bufbuild/protobuf";var YH="agent.v1.",Z0,yF,mF,jF,JJ,YJ,XJ,zJ,KJ,QJ,HJ,WJ,qJ,NJ,t8,BJ,FJ,GJ,LJ,DJ,wJ,lZ;var _F=O(()=>{A();Z0=class Z0 extends G{static get runtime(){return F(this,"runtime",v)}static $p(){return YH}};yF=D(v,YH,"MergePrMode",[[0,"UNSPECIFIED"],[1,"MERGE"],[2,"AUTO"],[3,"DISABLE_AUTO"]],1),mF=D(v,YH,"MergePrMethod",[[0,"UNSPECIFIED"],[1,"MERGE"],[2,"SQUASH"]],1),jF=D(v,YH,"PullRequestStatus",[[0,"UNSPECIFIED"],[1,"OPEN"],[2,"CLOSED"]],1);JJ=class JJ extends Z0{constructor(Z){super();this.toolCallId="",this.action={case:void 0},v.util.initPartial(Z,this)}static fromBinary(Z,$){return new JJ().fromBinary(Z,$)}static fromJson(Z,$){return new JJ().fromJson(Z,$)}static fromJsonString(Z,$){return new JJ().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(JJ,Z,$)}static $(){return["PrManagementArgs|1 tool_call_id 9|2 create_pr #0 action|3 update_pr #1 action|4 post_comment #2 action|5 resolve_comment #3 action|6 get_ci_status #4 action|7 set_pr_status #5 action|8 merge_pr #6 action|9 list_prs #7 action|10 get_pr #8 action",YJ,XJ,zJ,KJ,QJ,HJ,WJ,qJ,NJ]}};YJ=class YJ extends Z0{constructor(Z){super();this.title="",this.body="",this.branchName="",this.addLabels=[],v.util.initPartial(Z,this)}static fromBinary(Z,$){return new YJ().fromBinary(Z,$)}static fromJson(Z,$){return new YJ().fromJson(Z,$)}static fromJsonString(Z,$){return new YJ().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(YJ,Z,$)}static $(){return["CreatePrAction|1 title 9|2 body 9|3 base_branch 9?|4 draft 8?|5 branch_name 9|6 add_labels 9*|7 repo_url 9?|8 skip_branch_prefix_check 8?|9 stack_on_pr_number 3?"]}};XJ=class XJ extends Z0{constructor(Z){super();this.addLabels=[],this.removeLabels=[],v.util.initPartial(Z,this)}static fromBinary(Z,$){return new XJ().fromBinary(Z,$)}static fromJson(Z,$){return new XJ().fromJson(Z,$)}static fromJsonString(Z,$){return new XJ().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(XJ,Z,$)}static $(){return["UpdatePrAction|1 pr_url 9?|2 title 9?|3 body 9?|4 base_branch 9?|5 branch_name 9?|6 add_labels 9*|7 remove_labels 9*|8 repo_url 9?|9 stack_on_pr_number 3?|10 clear_stack 8?|11 draft 8?"]}};zJ=class zJ extends Z0{constructor(Z){super();this.body="",v.util.initPartial(Z,this)}static fromBinary(Z,$){return new zJ().fromBinary(Z,$)}static fromJson(Z,$){return new zJ().fromJson(Z,$)}static fromJsonString(Z,$){return new zJ().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(zJ,Z,$)}static $(){return["PostCommentAction|1 pr_url 9?|2 branch_name 9?|3 body 9|4 repo_url 9?|5 in_reply_to 3?|6 path 9?|7 line 5?|8 start_line 5?|9 side 9?|10 reply_to_reference 9?"]}};KJ=class KJ extends Z0{constructor(Z){super();this.commentId=ex.zero,v.util.initPartial(Z,this)}static fromBinary(Z,$){return new KJ().fromBinary(Z,$)}static fromJson(Z,$){return new KJ().fromJson(Z,$)}static fromJsonString(Z,$){return new KJ().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(KJ,Z,$)}static $(){return["ResolveCommentAction|1 pr_url 9?|2 branch_name 9?|3 comment_id 3|4 repo_url 9?|5 comment_reference 9?"]}};QJ=class QJ extends Z0{constructor(Z){super();v.util.initPartial(Z,this)}static fromBinary(Z,$){return new QJ().fromBinary(Z,$)}static fromJson(Z,$){return new QJ().fromJson(Z,$)}static fromJsonString(Z,$){return new QJ().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(QJ,Z,$)}static $(){return["GetCiStatusAction|1 pr_url 9?|2 branch_name 9?|3 repo_url 9?"]}};HJ=class HJ extends Z0{constructor(Z){super();this.status=jF.UNSPECIFIED,v.util.initPartial(Z,this)}static fromBinary(Z,$){return new HJ().fromBinary(Z,$)}static fromJson(Z,$){return new HJ().fromJson(Z,$)}static fromJsonString(Z,$){return new HJ().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(HJ,Z,$)}static $(){return["SetPrStatusAction|1 pr_url 9?|2 branch_name 9?|3 repo_url 9?|4 status #0",jF]}};WJ=class WJ extends Z0{constructor(Z){super();this.mode=yF.UNSPECIFIED,this.method=mF.UNSPECIFIED,this.expectedMemberHeadShas={},this.downstack=!1,v.util.initPartial(Z,this)}static fromBinary(Z,$){return new WJ().fromBinary(Z,$)}static fromJson(Z,$){return new WJ().fromJson(Z,$)}static fromJsonString(Z,$){return new WJ().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(WJ,Z,$)}static $(){return["MergePrAction|1 pr_url 9?|2 branch_name 9?|3 repo_url 9?|4 mode #0|5 method #1|6 expected_head_sha 9?|7 expected_member_head_shas 9,9|8 downstack 8",yF,mF]}};qJ=class qJ extends Z0{constructor(Z){super();v.util.initPartial(Z,this)}static fromBinary(Z,$){return new qJ().fromBinary(Z,$)}static fromJson(Z,$){return new qJ().fromJson(Z,$)}static fromJsonString(Z,$){return new qJ().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(qJ,Z,$)}static $(){return["ListPrsArgs|1 limit 5?"]}};NJ=class NJ extends Z0{constructor(Z){super();this.prUrl="",v.util.initPartial(Z,this)}static fromBinary(Z,$){return new NJ().fromBinary(Z,$)}static fromJson(Z,$){return new NJ().fromJson(Z,$)}static fromJsonString(Z,$){return new NJ().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(NJ,Z,$)}static $(){return["GetPrArgs|1 pr_url 9"]}};t8=class t8 extends Z0{constructor(Z){super();this.result={case:void 0},v.util.initPartial(Z,this)}static fromBinary(Z,$){return new t8().fromBinary(Z,$)}static fromJson(Z,$){return new t8().fromJson(Z,$)}static fromJsonString(Z,$){return new t8().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(t8,Z,$)}static $(){return["PrManagementResult|1 success #0 result|2 error #1 result|3 rejected #2 result|4 registered #3 result|5 needs_confirmation #4 result|6 read #5 result",FJ,GJ,LJ,DJ,wJ,BJ]}};BJ=class BJ extends Z0{constructor(Z){super();this.message="",v.util.initPartial(Z,this)}static fromBinary(Z,$){return new BJ().fromBinary(Z,$)}static fromJson(Z,$){return new BJ().fromJson(Z,$)}static fromJsonString(Z,$){return new BJ().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(BJ,Z,$)}static $(){return["PrManagementRead|1 message 9"]}};FJ=class FJ extends Z0{constructor(Z){super();this.prUrl="",this.prNumber=0,this.message="",v.util.initPartial(Z,this)}static fromBinary(Z,$){return new FJ().fromBinary(Z,$)}static fromJson(Z,$){return new FJ().fromJson(Z,$)}static fromJsonString(Z,$){return new FJ().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(FJ,Z,$)}static $(){return["PrManagementSuccess|1 pr_url 9|2 pr_number 5|3 message 9"]}};GJ=class GJ extends Z0{constructor(Z){super();this.error="",v.util.initPartial(Z,this)}static fromBinary(Z,$){return new GJ().fromBinary(Z,$)}static fromJson(Z,$){return new GJ().fromJson(Z,$)}static fromJsonString(Z,$){return new GJ().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(GJ,Z,$)}static $(){return["PrManagementError|1 error 9"]}};LJ=class LJ extends Z0{constructor(Z){super();this.reason="",v.util.initPartial(Z,this)}static fromBinary(Z,$){return new LJ().fromBinary(Z,$)}static fromJson(Z,$){return new LJ().fromJson(Z,$)}static fromJsonString(Z,$){return new LJ().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(LJ,Z,$)}static $(){return["PrManagementRejected|1 reason 9"]}};DJ=class DJ extends Z0{constructor(Z){super();this.message="",this.title="",this.body="",this.branchName="",v.util.initPartial(Z,this)}static fromBinary(Z,$){return new DJ().fromBinary(Z,$)}static fromJson(Z,$){return new DJ().fromJson(Z,$)}static fromJsonString(Z,$){return new DJ().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(DJ,Z,$)}static $(){return["PrManagementRegistered|1 message 9|2 title 9|3 body 9|4 base_branch 9?|5 draft 8?|6 branch_name 9"]}};wJ=class wJ extends Z0{constructor(Z){super();this.message="",this.discoveredPrUrl="",this.discoveredPrNumber=0,this.discoveredPrTitle="",this.branchName="",v.util.initPartial(Z,this)}static fromBinary(Z,$){return new wJ().fromBinary(Z,$)}static fromJson(Z,$){return new wJ().fromJson(Z,$)}static fromJsonString(Z,$){return new wJ().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(wJ,Z,$)}static $(){return["PrManagementNeedsConfirmation|1 message 9|2 discovered_pr_url 9|3 discovered_pr_number 5|4 discovered_pr_title 9|5 branch_name 9"]}};lZ=class lZ extends Z0{constructor(Z){super();v.util.initPartial(Z,this)}static fromBinary(Z,$){return new lZ().fromBinary(Z,$)}static fromJson(Z,$){return new lZ().fromJson(Z,$)}static fromJsonString(Z,$){return new lZ().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(lZ,Z,$)}static $(){return["PrManagementToolCall|1 args #0|2 result #1",JJ,t8]}}});import{Message as Fa,proto3 as $0}from"@bufbuild/protobuf";var ZT="agent.v1.",O8,UJ,OJ,IJ,kJ,PJ,pZ,iZ,EJ,fJ;var SF=O(()=>{A();O8=class O8 extends G{static get runtime(){return F(this,"runtime",$0)}static $p(){return ZT}};UJ=class UJ extends O8{constructor(Z){super();this.serverIdentifier="",this.toolCallId="",$0.util.initPartial(Z,this)}static fromBinary(Z,$){return new UJ().fromBinary(Z,$)}static fromJson(Z,$){return new UJ().fromJson(Z,$)}static fromJsonString(Z,$){return new UJ().fromJsonString(Z,$)}static equals(Z,$){return $0.util.equals(UJ,Z,$)}static $(){return["McpAuthArgs|1 server_identifier 9|2 tool_call_id 9"]}};OJ=class OJ extends O8{constructor(Z){super();this.result={case:void 0},$0.util.initPartial(Z,this)}static fromBinary(Z,$){return new OJ().fromBinary(Z,$)}static fromJson(Z,$){return new OJ().fromJson(Z,$)}static fromJsonString(Z,$){return new OJ().fromJsonString(Z,$)}static equals(Z,$){return $0.util.equals(OJ,Z,$)}static $(){return["McpAuthResult|1 success #0 result|2 error #1 result|3 rejected #2 result",IJ,kJ,PJ]}};IJ=class IJ extends O8{constructor(Z){super();this.serverIdentifier="",$0.util.initPartial(Z,this)}static fromBinary(Z,$){return new IJ().fromBinary(Z,$)}static fromJson(Z,$){return new IJ().fromJson(Z,$)}static fromJsonString(Z,$){return new IJ().fromJsonString(Z,$)}static equals(Z,$){return $0.util.equals(IJ,Z,$)}static $(){return["McpAuthSuccess|1 server_identifier 9"]}};kJ=class kJ extends O8{constructor(Z){super();this.error="",$0.util.initPartial(Z,this)}static fromBinary(Z,$){return new kJ().fromBinary(Z,$)}static fromJson(Z,$){return new kJ().fromJson(Z,$)}static fromJsonString(Z,$){return new kJ().fromJsonString(Z,$)}static equals(Z,$){return $0.util.equals(kJ,Z,$)}static $(){return["McpAuthError|1 error 9"]}};PJ=class PJ extends O8{constructor(Z){super();this.reason="",$0.util.initPartial(Z,this)}static fromBinary(Z,$){return new PJ().fromBinary(Z,$)}static fromJson(Z,$){return new PJ().fromJson(Z,$)}static fromJsonString(Z,$){return new PJ().fromJsonString(Z,$)}static equals(Z,$){return $0.util.equals(PJ,Z,$)}static $(){return["McpAuthRejected|1 reason 9"]}};pZ=class pZ extends O8{constructor(Z){super();$0.util.initPartial(Z,this)}static fromBinary(Z,$){return new pZ().fromBinary(Z,$)}static fromJson(Z,$){return new pZ().fromJson(Z,$)}static fromJsonString(Z,$){return new pZ().fromJsonString(Z,$)}static equals(Z,$){return $0.util.equals(pZ,Z,$)}static $(){return["McpAuthToolCall|1 args #0|2 result #1",UJ,OJ]}};iZ=class iZ extends O8{constructor(Z){super();this.result={case:void 0},$0.util.initPartial(Z,this)}static fromBinary(Z,$){return new iZ().fromBinary(Z,$)}static fromJson(Z,$){return new iZ().fromJson(Z,$)}static fromJsonString(Z,$){return new iZ().fromJsonString(Z,$)}static equals(Z,$){return $0.util.equals(iZ,Z,$)}static $(){return["McpAuthRequestResponse|1 approved #0 result|2 rejected #1 result",EJ,fJ]}};EJ=class EJ extends O8{constructor(Z){super();$0.util.initPartial(Z,this)}static fromBinary(Z,$){return new EJ().fromBinary(Z,$)}static fromJson(Z,$){return new EJ().fromJson(Z,$)}static fromJsonString(Z,$){return new EJ().fromJsonString(Z,$)}static equals(Z,$){return $0.util.equals(EJ,Z,$)}static $(){return["McpAuthRequestResponse.Approved"]}};fJ=class fJ extends O8{constructor(Z){super();this.reason="",$0.util.initPartial(Z,this)}static fromBinary(Z,$){return new fJ().fromBinary(Z,$)}static fromJson(Z,$){return new fJ().fromJson(Z,$)}static fromJsonString(Z,$){return new fJ().fromJsonString(Z,$)}static equals(Z,$){return $0.util.equals(fJ,Z,$)}static $(){return["McpAuthRequestResponse.Rejected|1 reason 9"]}}});import{Message as wa,proto3 as D0,protoInt64 as XH}from"@bufbuild/protobuf";var $T="agent.v1.",o8,VJ,nZ,rZ,AJ,MJ,xJ,aZ;var gF=O(()=>{A();o8=class o8 extends G{static get runtime(){return F(this,"runtime",D0)}static $p(){return $T}};VJ=class VJ extends o8{constructor(Z){super();this.taskId="",D0.util.initPartial(Z,this)}static fromBinary(Z,$){return new VJ().fromBinary(Z,$)}static fromJson(Z,$){return new VJ().fromJson(Z,$)}static fromJsonString(Z,$){return new VJ().fromJsonString(Z,$)}static equals(Z,$){return D0.util.equals(VJ,Z,$)}static $(){return["AwaitArgs|1 task_id 9|2 block_until_ms 13?|3 regex 9?"]}};nZ=class nZ extends o8{constructor(Z){super();this.taskId="",this.runtimeMs=XH.zero,this.outputFilePath="",this.outputLength=XH.zero,this.regexRequested=!1,D0.util.initPartial(Z,this)}static fromBinary(Z,$){return new nZ().fromBinary(Z,$)}static fromJson(Z,$){return new nZ().fromJson(Z,$)}static fromJsonString(Z,$){return new nZ().fromJsonString(Z,$)}static equals(Z,$){return D0.util.equals(nZ,Z,$)}static $(){return["AwaitTaskComplete|1 task_id 9|2 runtime_ms 4|3 output_file_path 9|4 output_length 4|5 regex_requested 8|6 regex_match 9?|7 exit_code 17?|8 wake_reason 9?"]}};rZ=class rZ extends o8{constructor(Z){super();this.taskId="",this.runtimeMs=XH.zero,this.outputFilePath="",this.outputLength=XH.zero,this.regexRequested=!1,D0.util.initPartial(Z,this)}static fromBinary(Z,$){return new rZ().fromBinary(Z,$)}static fromJson(Z,$){return new rZ().fromJson(Z,$)}static fromJsonString(Z,$){return new rZ().fromJsonString(Z,$)}static equals(Z,$){return D0.util.equals(rZ,Z,$)}static $(){return["AwaitTaskStillRunning|1 task_id 9|2 runtime_ms 4|3 output_file_path 9|4 output_length 4|5 regex_requested 8|6 regex_match 9?|7 wake_reason 9?"]}};AJ=class AJ extends o8{constructor(Z){super();this.error="",D0.util.initPartial(Z,this)}static fromBinary(Z,$){return new AJ().fromBinary(Z,$)}static fromJson(Z,$){return new AJ().fromJson(Z,$)}static fromJsonString(Z,$){return new AJ().fromJsonString(Z,$)}static equals(Z,$){return D0.util.equals(AJ,Z,$)}static $(){return["AwaitError|1 error 9"]}};MJ=class MJ extends o8{constructor(Z){super();this.awaitResult={case:void 0},D0.util.initPartial(Z,this)}static fromBinary(Z,$){return new MJ().fromBinary(Z,$)}static fromJson(Z,$){return new MJ().fromJson(Z,$)}static fromJsonString(Z,$){return new MJ().fromJsonString(Z,$)}static equals(Z,$){return D0.util.equals(MJ,Z,$)}static $(){return["AwaitSuccess|1 complete #0 await_result|2 still_running #1 await_result",nZ,rZ]}};xJ=class xJ extends o8{constructor(Z){super();this.result={case:void 0},D0.util.initPartial(Z,this)}static fromBinary(Z,$){return new xJ().fromBinary(Z,$)}static fromJson(Z,$){return new xJ().fromJson(Z,$)}static fromJsonString(Z,$){return new xJ().fromJsonString(Z,$)}static equals(Z,$){return D0.util.equals(xJ,Z,$)}static $(){return["AwaitResult|1 complete #0 result|2 still_running #1 result|3 error #2 result|4 success #3 result",nZ,rZ,AJ,MJ]}};aZ=class aZ extends o8{constructor(Z){super();D0.util.initPartial(Z,this)}static fromBinary(Z,$){return new aZ().fromBinary(Z,$)}static fromJson(Z,$){return new aZ().fromJson(Z,$)}static fromJsonString(Z,$){return new aZ().fromJsonString(Z,$)}static equals(Z,$){return D0.util.equals(aZ,Z,$)}static $(){return["AwaitToolCall|1 args #0|2 result #1",VJ,xJ]}}});import{Message as ka,proto3 as Y8}from"@bufbuild/protobuf";var JT="agent.v1.",vJ,TJ,CJ,hJ,RJ,sZ;var bF=O(()=>{A();vJ=class vJ extends G{static get runtime(){return F(this,"runtime",Y8)}static $p(){return JT}};TJ=class TJ extends vJ{constructor(Z){super();this.filePath="",Y8.util.initPartial(Z,this)}static fromBinary(Z,$){return new TJ().fromBinary(Z,$)}static fromJson(Z,$){return new TJ().fromJson(Z,$)}static fromJsonString(Z,$){return new TJ().fromJsonString(Z,$)}static equals(Z,$){return Y8.util.equals(TJ,Z,$)}static $(){return["BlameByFilePathArgs|1 file_path 9|2 start_line 5?|3 end_line 5?"]}};CJ=class CJ extends vJ{constructor(Z){super();this.content="",Y8.util.initPartial(Z,this)}static fromBinary(Z,$){return new CJ().fromBinary(Z,$)}static fromJson(Z,$){return new CJ().fromJson(Z,$)}static fromJsonString(Z,$){return new CJ().fromJsonString(Z,$)}static equals(Z,$){return Y8.util.equals(CJ,Z,$)}static $(){return["BlameByFilePathSuccess|1 content 9"]}};hJ=class hJ extends vJ{constructor(Z){super();this.errorMessage="",Y8.util.initPartial(Z,this)}static fromBinary(Z,$){return new hJ().fromBinary(Z,$)}static fromJson(Z,$){return new hJ().fromJson(Z,$)}static fromJsonString(Z,$){return new hJ().fromJsonString(Z,$)}static equals(Z,$){return Y8.util.equals(hJ,Z,$)}static $(){return["BlameByFilePathError|1 error_message 9"]}};RJ=class RJ extends vJ{constructor(Z){super();this.result={case:void 0},Y8.util.initPartial(Z,this)}static fromBinary(Z,$){return new RJ().fromBinary(Z,$)}static fromJson(Z,$){return new RJ().fromJson(Z,$)}static fromJsonString(Z,$){return new RJ().fromJsonString(Z,$)}static equals(Z,$){return Y8.util.equals(RJ,Z,$)}static $(){return["BlameByFilePathResult|1 success #0 result|2 error #1 result",CJ,hJ]}};sZ=class sZ extends vJ{constructor(Z){super();Y8.util.initPartial(Z,this)}static fromBinary(Z,$){return new sZ().fromBinary(Z,$)}static fromJson(Z,$){return new sZ().fromJson(Z,$)}static fromJsonString(Z,$){return new sZ().fromJsonString(Z,$)}static equals(Z,$){return Y8.util.equals(sZ,Z,$)}static $(){return["BlameByFilePathToolCall|1 args #0|2 result #1",TJ,RJ]}}});import{Message as Va,proto3 as X8}from"@bufbuild/protobuf";var YT="agent.v1.",SJ,yJ,mJ,jJ,_J,tZ;var cF=O(()=>{A();SJ=class SJ extends G{static get runtime(){return F(this,"runtime",X8)}static $p(){return YT}};yJ=class yJ extends SJ{constructor(Z){super();this.toolCallId="",X8.util.initPartial(Z,this)}static fromBinary(Z,$){return new yJ().fromBinary(Z,$)}static fromJson(Z,$){return new yJ().fromJson(Z,$)}static fromJsonString(Z,$){return new yJ().fromJsonString(Z,$)}static equals(Z,$){return X8.util.equals(yJ,Z,$)}static $(){return["GetMcpToolsArgs|1 server 9?|2 tool_name 9?|3 pattern 9?|4 tool_call_id 9"]}};mJ=class mJ extends SJ{constructor(Z){super();this.result={case:void 0},X8.util.initPartial(Z,this)}static fromBinary(Z,$){return new mJ().fromBinary(Z,$)}static fromJson(Z,$){return new mJ().fromJson(Z,$)}static fromJsonString(Z,$){return new mJ().fromJsonString(Z,$)}static equals(Z,$){return X8.util.equals(mJ,Z,$)}static $(){return["GetMcpToolsAgentResult|1 success #0 result|2 error #1 result",jJ,_J]}};jJ=class jJ extends SJ{constructor(Z){super();this.content="",X8.util.initPartial(Z,this)}static fromBinary(Z,$){return new jJ().fromBinary(Z,$)}static fromJson(Z,$){return new jJ().fromJson(Z,$)}static fromJsonString(Z,$){return new jJ().fromJsonString(Z,$)}static equals(Z,$){return X8.util.equals(jJ,Z,$)}static $(){return["GetMcpToolsSuccess|1 content 9|2 output_file_path 9?"]}};_J=class _J extends SJ{constructor(Z){super();this.error="",X8.util.initPartial(Z,this)}static fromBinary(Z,$){return new _J().fromBinary(Z,$)}static fromJson(Z,$){return new _J().fromJson(Z,$)}static fromJsonString(Z,$){return new _J().fromJsonString(Z,$)}static equals(Z,$){return X8.util.equals(_J,Z,$)}static $(){return["GetMcpToolsError|1 error 9"]}};tZ=class tZ extends SJ{constructor(Z){super();X8.util.initPartial(Z,this)}static fromBinary(Z,$){return new tZ().fromBinary(Z,$)}static fromJson(Z,$){return new tZ().fromJson(Z,$)}static fromJsonString(Z,$){return new tZ().fromJsonString(Z,$)}static equals(Z,$){return X8.util.equals(tZ,Z,$)}static $(){return["GetMcpToolsToolCall|1 args #0|2 result #1",yJ,mJ]}}});import{Message as Ta,proto3 as z8}from"@bufbuild/protobuf";var XT="agent.v1.",uJ,gJ,bJ,cJ,dJ,oZ;var dF=O(()=>{A();uJ=class uJ extends G{static get runtime(){return F(this,"runtime",z8)}static $p(){return XT}};gJ=class gJ extends uJ{constructor(Z){super();this.title="",this.file="",this.startLine=0,this.endLine=0,this.description="",this.severity="",this.category="",this.rationale="",z8.util.initPartial(Z,this)}static fromBinary(Z,$){return new gJ().fromBinary(Z,$)}static fromJson(Z,$){return new gJ().fromJson(Z,$)}static fromJsonString(Z,$){return new gJ().fromJsonString(Z,$)}static equals(Z,$){return z8.util.equals(gJ,Z,$)}static $(){return["ReportBugArgs|1 title 9|2 file 9|3 start_line 5|4 end_line 5|5 description 9|6 severity 9|7 category 9|8 rationale 9"]}};bJ=class bJ extends uJ{constructor(Z){super();this.output="",z8.util.initPartial(Z,this)}static fromBinary(Z,$){return new bJ().fromBinary(Z,$)}static fromJson(Z,$){return new bJ().fromJson(Z,$)}static fromJsonString(Z,$){return new bJ().fromJsonString(Z,$)}static equals(Z,$){return z8.util.equals(bJ,Z,$)}static $(){return["ReportBugSuccess|1 output 9"]}};cJ=class cJ extends uJ{constructor(Z){super();this.errorMessage="",z8.util.initPartial(Z,this)}static fromBinary(Z,$){return new cJ().fromBinary(Z,$)}static fromJson(Z,$){return new cJ().fromJson(Z,$)}static fromJsonString(Z,$){return new cJ().fromJsonString(Z,$)}static equals(Z,$){return z8.util.equals(cJ,Z,$)}static $(){return["ReportBugError|1 error_message 9"]}};dJ=class dJ extends uJ{constructor(Z){super();this.result={case:void 0},z8.util.initPartial(Z,this)}static fromBinary(Z,$){return new dJ().fromBinary(Z,$)}static fromJson(Z,$){return new dJ().fromJson(Z,$)}static fromJsonString(Z,$){return new dJ().fromJsonString(Z,$)}static equals(Z,$){return z8.util.equals(dJ,Z,$)}static $(){return["ReportBugResult|1 success #0 result|2 error #1 result",bJ,cJ]}};oZ=class oZ extends uJ{constructor(Z){super();z8.util.initPartial(Z,this)}static fromBinary(Z,$){return new oZ().fromBinary(Z,$)}static fromJson(Z,$){return new oZ().fromJson(Z,$)}static fromJsonString(Z,$){return new oZ().fromJsonString(Z,$)}static equals(Z,$){return z8.util.equals(oZ,Z,$)}static $(){return["ReportBugToolCall|1 args #0|2 result #1",gJ,dJ]}}});import{Message as va,proto3 as K8}from"@bufbuild/protobuf";var zT="agent.v1.",rJ,lJ,pJ,iJ,nJ,eZ;var uF=O(()=>{A();rJ=class rJ extends G{static get runtime(){return F(this,"runtime",K8)}static $p(){return zT}};lJ=class lJ extends rJ{constructor(Z){super();K8.util.initPartial(Z,this)}static fromBinary(Z,$){return new lJ().fromBinary(Z,$)}static fromJson(Z,$){return new lJ().fromJson(Z,$)}static fromJsonString(Z,$){return new lJ().fromJsonString(Z,$)}static equals(Z,$){return K8.util.equals(lJ,Z,$)}static $(){return["CommunicateUpdateArgs|1 current_step 9?|3 final_summary 9?|4 completed_subtitle 9?"]}};pJ=class pJ extends rJ{constructor(Z){super();this.currentStep="",this.messageIndex=0,K8.util.initPartial(Z,this)}static fromBinary(Z,$){return new pJ().fromBinary(Z,$)}static fromJson(Z,$){return new pJ().fromJson(Z,$)}static fromJsonString(Z,$){return new pJ().fromJsonString(Z,$)}static equals(Z,$){return K8.util.equals(pJ,Z,$)}static $(){return["CommunicateUpdateSuccess|1 current_step 9|3 message_index 13"]}};iJ=class iJ extends rJ{constructor(Z){super();this.error="",K8.util.initPartial(Z,this)}static fromBinary(Z,$){return new iJ().fromBinary(Z,$)}static fromJson(Z,$){return new iJ().fromJson(Z,$)}static fromJsonString(Z,$){return new iJ().fromJsonString(Z,$)}static equals(Z,$){return K8.util.equals(iJ,Z,$)}static $(){return["CommunicateUpdateError|1 error 9"]}};nJ=class nJ extends rJ{constructor(Z){super();this.result={case:void 0},K8.util.initPartial(Z,this)}static fromBinary(Z,$){return new nJ().fromBinary(Z,$)}static fromJson(Z,$){return new nJ().fromJson(Z,$)}static fromJsonString(Z,$){return new nJ().fromJsonString(Z,$)}static equals(Z,$){return K8.util.equals(nJ,Z,$)}static $(){return["CommunicateUpdateResult|1 success #0 result|2 error #1 result",pJ,iJ]}};eZ=class eZ extends rJ{constructor(Z){super();K8.util.initPartial(Z,this)}static fromBinary(Z,$){return new eZ().fromBinary(Z,$)}static fromJson(Z,$){return new eZ().fromJson(Z,$)}static fromJsonString(Z,$){return new eZ().fromJsonString(Z,$)}static equals(Z,$){return K8.util.equals(eZ,Z,$)}static $(){return["CommunicateUpdateToolCall|1 args #0|2 result #1",lJ,nJ]}}});import{Message as _a,proto3 as Q8}from"@bufbuild/protobuf";var KT="agent.v1.",eJ,aJ,sJ,tJ,oJ,Z$;var lF=O(()=>{A();eJ=class eJ extends G{static get runtime(){return F(this,"runtime",Q8)}static $p(){return KT}};aJ=class aJ extends eJ{constructor(Z){super();Q8.util.initPartial(Z,this)}static fromBinary(Z,$){return new aJ().fromBinary(Z,$)}static fromJson(Z,$){return new aJ().fromJson(Z,$)}static fromJsonString(Z,$){return new aJ().fromJsonString(Z,$)}static equals(Z,$){return Q8.util.equals(aJ,Z,$)}static $(){return["SendFinalSummaryArgs|1 final_summary 9?"]}};sJ=class sJ extends eJ{constructor(Z){super();this.finalSummary="",Q8.util.initPartial(Z,this)}static fromBinary(Z,$){return new sJ().fromBinary(Z,$)}static fromJson(Z,$){return new sJ().fromJson(Z,$)}static fromJsonString(Z,$){return new sJ().fromJsonString(Z,$)}static equals(Z,$){return Q8.util.equals(sJ,Z,$)}static $(){return["SendFinalSummarySuccess|1 final_summary 9"]}};tJ=class tJ extends eJ{constructor(Z){super();this.error="",Q8.util.initPartial(Z,this)}static fromBinary(Z,$){return new tJ().fromBinary(Z,$)}static fromJson(Z,$){return new tJ().fromJson(Z,$)}static fromJsonString(Z,$){return new tJ().fromJsonString(Z,$)}static equals(Z,$){return Q8.util.equals(tJ,Z,$)}static $(){return["SendFinalSummaryError|1 error 9"]}};oJ=class oJ extends eJ{constructor(Z){super();this.result={case:void 0},Q8.util.initPartial(Z,this)}static fromBinary(Z,$){return new oJ().fromBinary(Z,$)}static fromJson(Z,$){return new oJ().fromJson(Z,$)}static fromJsonString(Z,$){return new oJ().fromJsonString(Z,$)}static equals(Z,$){return Q8.util.equals(oJ,Z,$)}static $(){return["SendFinalSummaryResult|1 success #0 result|2 error #1 result",sJ,tJ]}};Z$=class Z$ extends eJ{constructor(Z){super();Q8.util.initPartial(Z,this)}static fromBinary(Z,$){return new Z$().fromBinary(Z,$)}static fromJson(Z,$){return new Z$().fromJson(Z,$)}static fromJsonString(Z,$){return new Z$().fromJsonString(Z,$)}static equals(Z,$){return Q8.util.equals(Z$,Z,$)}static $(){return["SendFinalSummaryToolCall|1 args #0|2 result #1",aJ,oJ]}}});import{Message as ca,proto3 as H0}from"@bufbuild/protobuf";var iF="agent.v1.",Z6,pF,ZY,$Y,$$,JY,YY,e8,J$;var nF=O(()=>{A();Z6=class Z6 extends G{static get runtime(){return F(this,"runtime",H0)}static $p(){return iF}};pF=D(H0,iF,"ReplaceEnvMode",[[0,"UNSPECIFIED"],[1,"CUSTOM"],[2,"CLEAN_SLATE"],[3,"DEFAULT"]],1);ZY=class ZY extends Z6{constructor(Z){super();this.repoUrl="",this.ref="",H0.util.initPartial(Z,this)}static fromBinary(Z,$){return new ZY().fromBinary(Z,$)}static fromJson(Z,$){return new ZY().fromJson(Z,$)}static fromJsonString(Z,$){return new ZY().fromJsonString(Z,$)}static equals(Z,$){return H0.util.equals(ZY,Z,$)}static $(){return["RepoCheckoutRefOverride|1 repo_url 9|2 ref 9"]}};$Y=class $Y extends Z6{constructor(Z){super();this.installScript="",this.dockerfileContents="",H0.util.initPartial(Z,this)}static fromBinary(Z,$){return new $Y().fromBinary(Z,$)}static fromJson(Z,$){return new $Y().fromJson(Z,$)}static fromJsonString(Z,$){return new $Y().fromJsonString(Z,$)}static equals(Z,$){return H0.util.equals($Y,Z,$)}static $(){return["ReplaceEnvConfig|1 install_script 9|2 dockerfile_contents 9"]}};$$=class $$ extends Z6{constructor(Z){super();this.mode=pF.UNSPECIFIED,this.checkoutRefOverrides=[],H0.util.initPartial(Z,this)}static fromBinary(Z,$){return new $$().fromBinary(Z,$)}static fromJson(Z,$){return new $$().fromJson(Z,$)}static fromJsonString(Z,$){return new $$().fromJsonString(Z,$)}static equals(Z,$){return H0.util.equals($$,Z,$)}static $(){return["ReplaceEnvArgs|1 config #0|2 mode #1|3 checkout_ref_overrides #2*",$Y,pF,ZY]}};JY=class JY extends Z6{constructor(Z){super();this.setupLogs="",H0.util.initPartial(Z,this)}static fromBinary(Z,$){return new JY().fromBinary(Z,$)}static fromJson(Z,$){return new JY().fromJson(Z,$)}static fromJsonString(Z,$){return new JY().fromJsonString(Z,$)}static equals(Z,$){return H0.util.equals(JY,Z,$)}static $(){return["ReplaceEnvSuccess|1 setup_logs 9"]}};YY=class YY extends Z6{constructor(Z){super();this.errorMessage="",this.setupLogs="",H0.util.initPartial(Z,this)}static fromBinary(Z,$){return new YY().fromBinary(Z,$)}static fromJson(Z,$){return new YY().fromJson(Z,$)}static fromJsonString(Z,$){return new YY().fromJsonString(Z,$)}static equals(Z,$){return H0.util.equals(YY,Z,$)}static $(){return["ReplaceEnvFailure|1 error_message 9|2 setup_logs 9"]}};e8=class e8 extends Z6{constructor(Z){super();this.result={case:void 0},H0.util.initPartial(Z,this)}static fromBinary(Z,$){return new e8().fromBinary(Z,$)}static fromJson(Z,$){return new e8().fromJson(Z,$)}static fromJsonString(Z,$){return new e8().fromJsonString(Z,$)}static equals(Z,$){return H0.util.equals(e8,Z,$)}static $(){return["ReplaceEnvResult|1 success #0 result|2 failure #1 result",JY,YY]}};J$=class J$ extends Z6{constructor(Z){super();this.associatedPodKey="",H0.util.initPartial(Z,this)}static fromBinary(Z,$){return new J$().fromBinary(Z,$)}static fromJson(Z,$){return new J$().fromJson(Z,$)}static fromJsonString(Z,$){return new J$().fromJsonString(Z,$)}static equals(Z,$){return H0.util.equals(J$,Z,$)}static $(){return["ReplaceEnvToolCall|1 args #0|2 result #1|3 associated_pod_key 9",$$,e8]}}});import{Message as pa,proto3 as H8}from"@bufbuild/protobuf";var QT="agent.v1.",HY,XY,zY,KY,QY,Y$;var rF=O(()=>{A();HY=class HY extends G{static get runtime(){return F(this,"runtime",H8)}static $p(){return QT}};XY=class XY extends HY{constructor(Z){super();this.toolCallId="",this.prUrl="",this.addLabels=[],this.removeLabels=[],H8.util.initPartial(Z,this)}static fromBinary(Z,$){return new XY().fromBinary(Z,$)}static fromJson(Z,$){return new XY().fromJson(Z,$)}static fromJsonString(Z,$){return new XY().fromJsonString(Z,$)}static equals(Z,$){return H8.util.equals(XY,Z,$)}static $(){return["EditPrLabelsArgs|1 tool_call_id 9|2 pr_url 9|4 add_labels 9*|5 remove_labels 9*"]}};zY=class zY extends HY{constructor(Z){super();this.result={case:void 0},H8.util.initPartial(Z,this)}static fromBinary(Z,$){return new zY().fromBinary(Z,$)}static fromJson(Z,$){return new zY().fromJson(Z,$)}static fromJsonString(Z,$){return new zY().fromJsonString(Z,$)}static equals(Z,$){return H8.util.equals(zY,Z,$)}static $(){return["EditPrLabelsResult|1 success #0 result|2 error #1 result",KY,QY]}};KY=class KY extends HY{constructor(Z){super();this.prUrl="",this.prNumber=0,this.message="",H8.util.initPartial(Z,this)}static fromBinary(Z,$){return new KY().fromBinary(Z,$)}static fromJson(Z,$){return new KY().fromJson(Z,$)}static fromJsonString(Z,$){return new KY().fromJsonString(Z,$)}static equals(Z,$){return H8.util.equals(KY,Z,$)}static $(){return["EditPrLabelsSuccess|1 pr_url 9|2 pr_number 5|3 message 9"]}};QY=class QY extends HY{constructor(Z){super();this.error="",H8.util.initPartial(Z,this)}static fromBinary(Z,$){return new QY().fromBinary(Z,$)}static fromJson(Z,$){return new QY().fromJson(Z,$)}static fromJsonString(Z,$){return new QY().fromJsonString(Z,$)}static equals(Z,$){return H8.util.equals(QY,Z,$)}static $(){return["EditPrLabelsError|1 error 9"]}};Y$=class Y$ extends HY{constructor(Z){super();H8.util.initPartial(Z,this)}static fromBinary(Z,$){return new Y$().fromBinary(Z,$)}static fromJson(Z,$){return new Y$().fromJson(Z,$)}static fromJsonString(Z,$){return new Y$().fromJsonString(Z,$)}static equals(Z,$){return H8.util.equals(Y$,Z,$)}static $(){return["EditPrLabelsToolCall|1 args #0|2 result #1",XY,zY]}}});import{Message as aa,proto3 as w0}from"@bufbuild/protobuf";var HT="agent.v1.",$6,WY,qY,NY,BY,FY,GY,X$;var aF=O(()=>{A();$6=class $6 extends G{static get runtime(){return F(this,"runtime",w0)}static $p(){return HT}};WY=class WY extends $6{constructor(Z){super();this.checkName="",this.tldr="",w0.util.initPartial(Z,this)}static fromBinary(Z,$){return new WY().fromBinary(Z,$)}static fromJson(Z,$){return new WY().fromJson(Z,$)}static fromJsonString(Z,$){return new WY().fromJsonString(Z,$)}static equals(Z,$){return w0.util.equals(WY,Z,$)}static $(){return["RecordCiInvestigationFinding|1 check_name 9|2 details_url 9?|3 tldr 9|4 root_cause 9?|5 failing_signal 9?|6 suggested_next_step 9?|7 diff_relation 9?|8 diff_relation_evidence 9?|9 flake_assessment 9?|10 flake_evidence 9?|11 rerun_available 8?|12 rerun_evidence 9?|13 recommended_action 9?|14 recommended_action_evidence 9?|15 confidence 9?"]}};qY=class qY extends $6{constructor(Z){super();this.summary="",this.themes=[],this.checkKeys=[],w0.util.initPartial(Z,this)}static fromBinary(Z,$){return new qY().fromBinary(Z,$)}static fromJson(Z,$){return new qY().fromJson(Z,$)}static fromJsonString(Z,$){return new qY().fromJsonString(Z,$)}static equals(Z,$){return w0.util.equals(qY,Z,$)}static $(){return["RecordCiInvestigationOverall|1 summary 9|2 themes 9*|3 recommended_action 9?|4 recommended_action_evidence 9?|5 check_keys 9*"]}};NY=class NY extends $6{constructor(Z){super();this.findings=[],this.toolCallId="",w0.util.initPartial(Z,this)}static fromBinary(Z,$){return new NY().fromBinary(Z,$)}static fromJson(Z,$){return new NY().fromJson(Z,$)}static fromJsonString(Z,$){return new NY().fromJsonString(Z,$)}static equals(Z,$){return w0.util.equals(NY,Z,$)}static $(){return["RecordCiInvestigationFindingsArgs|1 findings #0*|2 overall #1?|3 tool_call_id 9",WY,qY]}};BY=class BY extends $6{constructor(Z){super();this.message="",w0.util.initPartial(Z,this)}static fromBinary(Z,$){return new BY().fromBinary(Z,$)}static fromJson(Z,$){return new BY().fromJson(Z,$)}static fromJsonString(Z,$){return new BY().fromJsonString(Z,$)}static equals(Z,$){return w0.util.equals(BY,Z,$)}static $(){return["RecordCiInvestigationFindingsSuccess|1 message 9"]}};FY=class FY extends $6{constructor(Z){super();this.error="",w0.util.initPartial(Z,this)}static fromBinary(Z,$){return new FY().fromBinary(Z,$)}static fromJson(Z,$){return new FY().fromJson(Z,$)}static fromJsonString(Z,$){return new FY().fromJsonString(Z,$)}static equals(Z,$){return w0.util.equals(FY,Z,$)}static $(){return["RecordCiInvestigationFindingsError|1 error 9"]}};GY=class GY extends $6{constructor(Z){super();this.result={case:void 0},w0.util.initPartial(Z,this)}static fromBinary(Z,$){return new GY().fromBinary(Z,$)}static fromJson(Z,$){return new GY().fromJson(Z,$)}static fromJsonString(Z,$){return new GY().fromJsonString(Z,$)}static equals(Z,$){return w0.util.equals(GY,Z,$)}static $(){return["RecordCiInvestigationFindingsResult|1 success #0 result|2 error #1 result",BY,FY]}};X$=class X$ extends $6{constructor(Z){super();w0.util.initPartial(Z,this)}static fromBinary(Z,$){return new X$().fromBinary(Z,$)}static fromJson(Z,$){return new X$().fromJson(Z,$)}static fromJsonString(Z,$){return new X$().fromJsonString(Z,$)}static equals(Z,$){return w0.util.equals(X$,Z,$)}static $(){return["RecordCiInvestigationFindingsToolCall|1 args #0|2 result #1",NY,GY]}}});import{Message as ea,proto3 as U0,protoInt64 as WT}from"@bufbuild/protobuf";var qT="agent.v1.",J6,LY,DY,wY,UY,OY,IY,z$;var sF=O(()=>{A();J6=class J6 extends G{static get runtime(){return F(this,"runtime",U0)}static $p(){return qT}};LY=class LY extends J6{constructor(Z){super();this.content="",U0.util.initPartial(Z,this)}static fromBinary(Z,$){return new LY().fromBinary(Z,$)}static fromJson(Z,$){return new LY().fromJson(Z,$)}static fromJsonString(Z,$){return new LY().fromJsonString(Z,$)}static equals(Z,$){return U0.util.equals(LY,Z,$)}static $(){return["SendMessageText|1 content 9"]}};DY=class DY extends J6{constructor(Z){super();this.url="",U0.util.initPartial(Z,this)}static fromBinary(Z,$){return new DY().fromBinary(Z,$)}static fromJson(Z,$){return new DY().fromJson(Z,$)}static fromJsonString(Z,$){return new DY().fromJsonString(Z,$)}static equals(Z,$){return U0.util.equals(DY,Z,$)}static $(){return["SendMessageAttachment|1 url 9|2 alt 9?"]}};wY=class wY extends J6{constructor(Z){super();this.message={case:void 0},U0.util.initPartial(Z,this)}static fromBinary(Z,$){return new wY().fromBinary(Z,$)}static fromJson(Z,$){return new wY().fromJson(Z,$)}static fromJsonString(Z,$){return new wY().fromJsonString(Z,$)}static equals(Z,$){return U0.util.equals(wY,Z,$)}static $(){return["SendMessageArgs|1 text #0 message|2 attachment #1 message|3 reply_to 9?|4 replace_previous_message 8?",LY,DY]}};UY=class UY extends J6{constructor(Z){super();this.timestamp=WT.zero,this.messageId="",U0.util.initPartial(Z,this)}static fromBinary(Z,$){return new UY().fromBinary(Z,$)}static fromJson(Z,$){return new UY().fromJson(Z,$)}static fromJsonString(Z,$){return new UY().fromJsonString(Z,$)}static equals(Z,$){return U0.util.equals(UY,Z,$)}static $(){return["SendMessageSuccess|1 timestamp 4|2 message_id 9"]}};OY=class OY extends J6{constructor(Z){super();this.error="",U0.util.initPartial(Z,this)}static fromBinary(Z,$){return new OY().fromBinary(Z,$)}static fromJson(Z,$){return new OY().fromJson(Z,$)}static fromJsonString(Z,$){return new OY().fromJsonString(Z,$)}static equals(Z,$){return U0.util.equals(OY,Z,$)}static $(){return["SendMessageError|1 error 9"]}};IY=class IY extends J6{constructor(Z){super();this.result={case:void 0},U0.util.initPartial(Z,this)}static fromBinary(Z,$){return new IY().fromBinary(Z,$)}static fromJson(Z,$){return new IY().fromJson(Z,$)}static fromJsonString(Z,$){return new IY().fromJsonString(Z,$)}static equals(Z,$){return U0.util.equals(IY,Z,$)}static $(){return["SendMessageResult|1 success #0 result|2 error #1 result",UY,OY]}};z$=class z$ extends J6{constructor(Z){super();U0.util.initPartial(Z,this)}static fromBinary(Z,$){return new z$().fromBinary(Z,$)}static fromJson(Z,$){return new z$().fromJson(Z,$)}static fromJsonString(Z,$){return new z$().fromJsonString(Z,$)}static equals(Z,$){return U0.util.equals(z$,Z,$)}static $(){return["SendMessageToolCall|1 args #0|2 result #1",wY,IY]}}});import{Message as Ys,proto3 as W8}from"@bufbuild/protobuf";var NT="agent.v1.",VY,kY,PY,EY,fY,K$;var tF=O(()=>{A();VY=class VY extends G{static get runtime(){return F(this,"runtime",W8)}static $p(){return NT}};kY=class kY extends VY{constructor(Z){super();this.bcIds=[],this.sources=[],this.statuses=[],this.includeTeamWide=!1,this.includeArchived=!1,this.includeTranscript=!1,this.activeSince="",W8.util.initPartial(Z,this)}static fromBinary(Z,$){return new kY().fromBinary(Z,$)}static fromJson(Z,$){return new kY().fromJson(Z,$)}static fromJsonString(Z,$){return new kY().fromJsonString(Z,$)}static equals(Z,$){return W8.util.equals(kY,Z,$)}static $(){return["FetchCloudAgentDataArgs|4 bc_ids 9*|6 sources 9*|7 statuses 9*|8 include_team_wide 8|9 include_archived 8|10 limit 5?|12 include_transcript 8|13 active_since 9"]}};PY=class PY extends VY{constructor(Z){super();this.result={case:void 0},W8.util.initPartial(Z,this)}static fromBinary(Z,$){return new PY().fromBinary(Z,$)}static fromJson(Z,$){return new PY().fromJson(Z,$)}static fromJsonString(Z,$){return new PY().fromJsonString(Z,$)}static equals(Z,$){return W8.util.equals(PY,Z,$)}static $(){return["FetchCloudAgentDataResult|1 success #0 result|2 error #1 result",EY,fY]}};EY=class EY extends VY{constructor(Z){super();this.summary="",this.agentCount=0,this.writtenPaths=[],this.unavailableBcIds=[],W8.util.initPartial(Z,this)}static fromBinary(Z,$){return new EY().fromBinary(Z,$)}static fromJson(Z,$){return new EY().fromJson(Z,$)}static fromJsonString(Z,$){return new EY().fromJsonString(Z,$)}static equals(Z,$){return W8.util.equals(EY,Z,$)}static $(){return["FetchCloudAgentDataSuccess|1 summary 9|2 agent_count 5|3 written_paths 9*|4 unavailable_bc_ids 9*"]}};fY=class fY extends VY{constructor(Z){super();this.error="",W8.util.initPartial(Z,this)}static fromBinary(Z,$){return new fY().fromBinary(Z,$)}static fromJson(Z,$){return new fY().fromJson(Z,$)}static fromJsonString(Z,$){return new fY().fromJsonString(Z,$)}static equals(Z,$){return W8.util.equals(fY,Z,$)}static $(){return["FetchCloudAgentDataError|1 error 9"]}};K$=class K$ extends VY{constructor(Z){super();W8.util.initPartial(Z,this)}static fromBinary(Z,$){return new K$().fromBinary(Z,$)}static fromJson(Z,$){return new K$().fromJson(Z,$)}static fromJsonString(Z,$){return new K$().fromJsonString(Z,$)}static equals(Z,$){return W8.util.equals(K$,Z,$)}static $(){return["FetchCloudAgentDataToolCall|1 args #0|2 result #1",kY,PY]}}});import{Message as Qs,proto3 as q8}from"@bufbuild/protobuf";var BT="agent.v1.",CY,AY,MY,xY,TY,Q$;var oF=O(()=>{A();CY=class CY extends G{static get runtime(){return F(this,"runtime",q8)}static $p(){return BT}};AY=class AY extends CY{constructor(Z){super();this.message="",q8.util.initPartial(Z,this)}static fromBinary(Z,$){return new AY().fromBinary(Z,$)}static fromJson(Z,$){return new AY().fromJson(Z,$)}static fromJsonString(Z,$){return new AY().fromJsonString(Z,$)}static equals(Z,$){return q8.util.equals(AY,Z,$)}static $(){return["SendToUserArgs|1 message 9"]}};MY=class MY extends CY{constructor(Z){super();q8.util.initPartial(Z,this)}static fromBinary(Z,$){return new MY().fromBinary(Z,$)}static fromJson(Z,$){return new MY().fromJson(Z,$)}static fromJsonString(Z,$){return new MY().fromJsonString(Z,$)}static equals(Z,$){return q8.util.equals(MY,Z,$)}static $(){return["SendToUserSuccess"]}};xY=class xY extends CY{constructor(Z){super();this.error="",q8.util.initPartial(Z,this)}static fromBinary(Z,$){return new xY().fromBinary(Z,$)}static fromJson(Z,$){return new xY().fromJson(Z,$)}static fromJsonString(Z,$){return new xY().fromJsonString(Z,$)}static equals(Z,$){return q8.util.equals(xY,Z,$)}static $(){return["SendToUserError|1 error 9"]}};TY=class TY extends CY{constructor(Z){super();this.result={case:void 0},q8.util.initPartial(Z,this)}static fromBinary(Z,$){return new TY().fromBinary(Z,$)}static fromJson(Z,$){return new TY().fromJson(Z,$)}static fromJsonString(Z,$){return new TY().fromJsonString(Z,$)}static equals(Z,$){return q8.util.equals(TY,Z,$)}static $(){return["SendToUserResult|1 success #0 result|2 error #1 result",MY,xY]}};Q$=class Q$ extends CY{constructor(Z){super();q8.util.initPartial(Z,this)}static fromBinary(Z,$){return new Q$().fromBinary(Z,$)}static fromJson(Z,$){return new Q$().fromJson(Z,$)}static fromJsonString(Z,$){return new Q$().fromJsonString(Z,$)}static equals(Z,$){return q8.util.equals(Q$,Z,$)}static $(){return["SendToUserToolCall|1 args #0|2 result #1",AY,TY]}}});import{Message as Ns,proto3 as j}from"@bufbuild/protobuf";var FT="agent.v1.",W0,H$,hY,RY,vY,yY,mY,jY,_Y,SY,gY,W$,q$,bY,cY,dY;var eF=O(()=>{A();W0=class W0 extends G{static get runtime(){return F(this,"runtime",j)}static $p(){return FT}};H$=class H$ extends W0{constructor(Z){super();this.toolCallId="",this.target={case:void 0},j.util.initPartial(Z,this)}static fromBinary(Z,$){return new H$().fromBinary(Z,$)}static fromJson(Z,$){return new H$().fromJson(Z,$)}static fromJsonString(Z,$){return new H$().fromJsonString(Z,$)}static equals(Z,$){return j.util.equals(H$,Z,$)}static $(){return["ConnectScmArgs|1 tool_call_id 9|2 github #0 target|3 gitlab #1 target|4 bitbucket #2 target|5 azure_devops #3 target|6 reconnect 8?|7 repo_url 9?|8 instance_host 9?",yY,hY,RY,vY]}};hY=class hY extends W0{constructor(Z){super();j.util.initPartial(Z,this)}static fromBinary(Z,$){return new hY().fromBinary(Z,$)}static fromJson(Z,$){return new hY().fromJson(Z,$)}static fromJsonString(Z,$){return new hY().fromJsonString(Z,$)}static equals(Z,$){return j.util.equals(hY,Z,$)}static $(){return["ConnectScmGitlab|1 instance_id 9?"]}};RY=class RY extends W0{constructor(Z){super();j.util.initPartial(Z,this)}static fromBinary(Z,$){return new RY().fromBinary(Z,$)}static fromJson(Z,$){return new RY().fromJson(Z,$)}static fromJsonString(Z,$){return new RY().fromJsonString(Z,$)}static equals(Z,$){return j.util.equals(RY,Z,$)}static $(){return["ConnectScmBitbucket|1 instance_id 9?"]}};vY=class vY extends W0{constructor(Z){super();j.util.initPartial(Z,this)}static fromBinary(Z,$){return new vY().fromBinary(Z,$)}static fromJson(Z,$){return new vY().fromJson(Z,$)}static fromJsonString(Z,$){return new vY().fromJsonString(Z,$)}static equals(Z,$){return j.util.equals(vY,Z,$)}static $(){return["ConnectScmAzureDevops"]}};yY=class yY extends W0{constructor(Z){super();j.util.initPartial(Z,this)}static fromBinary(Z,$){return new yY().fromBinary(Z,$)}static fromJson(Z,$){return new yY().fromJson(Z,$)}static fromJsonString(Z,$){return new yY().fromJsonString(Z,$)}static equals(Z,$){return j.util.equals(yY,Z,$)}static $(){return["ConnectScmGithub|1 repository #0|2 ghe_application 9?",mY]}};mY=class mY extends W0{constructor(Z){super();this.owner="",this.repo="",j.util.initPartial(Z,this)}static fromBinary(Z,$){return new mY().fromBinary(Z,$)}static fromJson(Z,$){return new mY().fromJson(Z,$)}static fromJsonString(Z,$){return new mY().fromJsonString(Z,$)}static equals(Z,$){return j.util.equals(mY,Z,$)}static $(){return["ConnectScmGithubRepository|1 owner 9|2 repo 9"]}};jY=class jY extends W0{constructor(Z){super();this.result={case:void 0},j.util.initPartial(Z,this)}static fromBinary(Z,$){return new jY().fromBinary(Z,$)}static fromJson(Z,$){return new jY().fromJson(Z,$)}static fromJsonString(Z,$){return new jY().fromJsonString(Z,$)}static equals(Z,$){return j.util.equals(jY,Z,$)}static $(){return["ConnectScmResult|1 success #0 result|2 error #1 result|3 rejected #2 result|4 scm_target 9?",_Y,SY,gY]}};_Y=class _Y extends W0{constructor(Z){super();j.util.initPartial(Z,this)}static fromBinary(Z,$){return new _Y().fromBinary(Z,$)}static fromJson(Z,$){return new _Y().fromJson(Z,$)}static fromJsonString(Z,$){return new _Y().fromJsonString(Z,$)}static equals(Z,$){return j.util.equals(_Y,Z,$)}static $(){return["ConnectScmSuccess"]}};SY=class SY extends W0{constructor(Z){super();this.error="",j.util.initPartial(Z,this)}static fromBinary(Z,$){return new SY().fromBinary(Z,$)}static fromJson(Z,$){return new SY().fromJson(Z,$)}static fromJsonString(Z,$){return new SY().fromJsonString(Z,$)}static equals(Z,$){return j.util.equals(SY,Z,$)}static $(){return["ConnectScmError|1 error 9"]}};gY=class gY extends W0{constructor(Z){super();this.reason="",j.util.initPartial(Z,this)}static fromBinary(Z,$){return new gY().fromBinary(Z,$)}static fromJson(Z,$){return new gY().fromJson(Z,$)}static fromJsonString(Z,$){return new gY().fromJsonString(Z,$)}static equals(Z,$){return j.util.equals(gY,Z,$)}static $(){return["ConnectScmRejected|1 reason 9"]}};W$=class W$ extends W0{constructor(Z){super();j.util.initPartial(Z,this)}static fromBinary(Z,$){return new W$().fromBinary(Z,$)}static fromJson(Z,$){return new W$().fromJson(Z,$)}static fromJsonString(Z,$){return new W$().fromJsonString(Z,$)}static equals(Z,$){return j.util.equals(W$,Z,$)}static $(){return["ConnectScmToolCall|1 args #0|2 result #1",H$,jY]}};q$=class q$ extends W0{constructor(Z){super();this.result={case:void 0},j.util.initPartial(Z,this)}static fromBinary(Z,$){return new q$().fromBinary(Z,$)}static fromJson(Z,$){return new q$().fromJson(Z,$)}static fromJsonString(Z,$){return new q$().fromJsonString(Z,$)}static equals(Z,$){return j.util.equals(q$,Z,$)}static $(){return["ConnectScmRequestResponse|1 approved #0 result|2 rejected #1 result|3 failed #2 result",bY,cY,dY]}};bY=class bY extends W0{constructor(Z){super();j.util.initPartial(Z,this)}static fromBinary(Z,$){return new bY().fromBinary(Z,$)}static fromJson(Z,$){return new bY().fromJson(Z,$)}static fromJsonString(Z,$){return new bY().fromJsonString(Z,$)}static equals(Z,$){return j.util.equals(bY,Z,$)}static $(){return["ConnectScmRequestResponse.Approved|1 scm_target 9?"]}};cY=class cY extends W0{constructor(Z){super();this.reason="",j.util.initPartial(Z,this)}static fromBinary(Z,$){return new cY().fromBinary(Z,$)}static fromJson(Z,$){return new cY().fromJson(Z,$)}static fromJsonString(Z,$){return new cY().fromJsonString(Z,$)}static equals(Z,$){return j.util.equals(cY,Z,$)}static $(){return["ConnectScmRequestResponse.Rejected|1 reason 9|2 recorded_args #0?",H$]}};dY=class dY extends W0{constructor(Z){super();this.error="",j.util.initPartial(Z,this)}static fromBinary(Z,$){return new dY().fromBinary(Z,$)}static fromJson(Z,$){return new dY().fromJson(Z,$)}static fromJsonString(Z,$){return new dY().fromJsonString(Z,$)}static equals(Z,$){return j.util.equals(dY,Z,$)}static $(){return["ConnectScmRequestResponse.Failed|1 error 9"]}}});import{Message as Ls,proto3 as S0,protoInt64 as GT}from"@bufbuild/protobuf";var $G="agent.v1.",iY,ZG,N$,B$,uY,lY,pY;var JG=O(()=>{A();iY=class iY extends G{static get runtime(){return F(this,"runtime",S0)}static $p(){return $G}};ZG=D(S0,$G,"ConversationSearchSource",[[0,"UNSPECIFIED"],[1,"LOCAL"],[2,"CLOUD_CACHE"]],1);N$=class N$ extends iY{constructor(Z){super();this.query="",this.toolCallId="",S0.util.initPartial(Z,this)}static fromBinary(Z,$){return new N$().fromBinary(Z,$)}static fromJson(Z,$){return new N$().fromJson(Z,$)}static fromJsonString(Z,$){return new N$().fromJsonString(Z,$)}static equals(Z,$){return S0.util.equals(N$,Z,$)}static $(){return["ConversationSearchArgs|1 query 9|2 tool_call_id 9|3 limit 5?"]}};B$=class B$ extends iY{constructor(Z){super();this.result={case:void 0},S0.util.initPartial(Z,this)}static fromBinary(Z,$){return new B$().fromBinary(Z,$)}static fromJson(Z,$){return new B$().fromJson(Z,$)}static fromJsonString(Z,$){return new B$().fromJsonString(Z,$)}static equals(Z,$){return S0.util.equals(B$,Z,$)}static $(){return["ConversationSearchResult|1 success #0 result|2 error #1 result",uY,pY]}};uY=class uY extends iY{constructor(Z){super();this.hits=[],this.truncated=!1,this.partial=!1,this.rebuilding=!1,S0.util.initPartial(Z,this)}static fromBinary(Z,$){return new uY().fromBinary(Z,$)}static fromJson(Z,$){return new uY().fromJson(Z,$)}static fromJsonString(Z,$){return new uY().fromJsonString(Z,$)}static equals(Z,$){return S0.util.equals(uY,Z,$)}static $(){return["ConversationSearchSuccess|1 hits #0*|2 truncated 8|3 partial 8|4 rebuilding 8",lY]}};lY=class lY extends iY{constructor(Z){super();this.conversationId="",this.title="",this.source=ZG.UNSPECIFIED,this.updatedAtMs=GT.zero,S0.util.initPartial(Z,this)}static fromBinary(Z,$){return new lY().fromBinary(Z,$)}static fromJson(Z,$){return new lY().fromJson(Z,$)}static fromJsonString(Z,$){return new lY().fromJsonString(Z,$)}static equals(Z,$){return S0.util.equals(lY,Z,$)}static $(){return["ConversationSearchHit|1 conversation_id 9|2 title 9|3 source #0|4 updated_at_ms 3|5 snippet 9?",ZG]}};pY=class pY extends iY{constructor(Z){super();this.error="",S0.util.initPartial(Z,this)}static fromBinary(Z,$){return new pY().fromBinary(Z,$)}static fromJson(Z,$){return new pY().fromJson(Z,$)}static fromJsonString(Z,$){return new pY().fromJsonString(Z,$)}static equals(Z,$){return S0.util.equals(pY,Z,$)}static $(){return["ConversationSearchError|1 error 9"]}}});import{Message as Os,proto3 as xW}from"@bufbuild/protobuf";var LT="agent.v1.",YG,F$;var XG=O(()=>{JG();A();YG=class YG extends G{static get runtime(){return F(this,"runtime",xW)}static $p(){return LT}};F$=class F$ extends YG{constructor(Z){super();xW.util.initPartial(Z,this)}static fromBinary(Z,$){return new F$().fromBinary(Z,$)}static fromJson(Z,$){return new F$().fromJson(Z,$)}static fromJsonString(Z,$){return new F$().fromJsonString(Z,$)}static equals(Z,$){return xW.util.equals(F$,Z,$)}static $(){return["SearchConversationsToolCall|1 args #0|2 result #1",N$,B$]}}});import{Message as fs,proto3 as r}from"@bufbuild/protobuf";var zG="agent.v1.",I8,w$,nY,rY,G$,aY,L$,sY,tY,oY,D$;var KG=O(()=>{A();I8=class I8 extends G{static get runtime(){return F(this,"runtime",r)}static $p(){return zG}};w$=D(r,zG,"GoalStatus",[[0,"UNSPECIFIED"],[1,"ACTIVE"],[2,"PAUSED"],[3,"COMPLETE"],[4,"CLEARED"]],1);nY=class nY extends I8{constructor(Z){super();this.objective="",r.util.initPartial(Z,this)}static fromBinary(Z,$){return new nY().fromBinary(Z,$)}static fromJson(Z,$){return new nY().fromJson(Z,$)}static fromJsonString(Z,$){return new nY().fromJsonString(Z,$)}static equals(Z,$){return r.util.equals(nY,Z,$)}static $(){return["CreateGoalArgs|1 objective 9"]}};rY=class rY extends I8{constructor(Z){super();r.util.initPartial(Z,this)}static fromBinary(Z,$){return new rY().fromBinary(Z,$)}static fromJson(Z,$){return new rY().fromJson(Z,$)}static fromJsonString(Z,$){return new rY().fromJsonString(Z,$)}static equals(Z,$){return r.util.equals(rY,Z,$)}static $(){return["CreateGoalSuccess"]}};G$=class G$ extends I8{constructor(Z){super();this.error="",r.util.initPartial(Z,this)}static fromBinary(Z,$){return new G$().fromBinary(Z,$)}static fromJson(Z,$){return new G$().fromJson(Z,$)}static fromJsonString(Z,$){return new G$().fromJsonString(Z,$)}static equals(Z,$){return r.util.equals(G$,Z,$)}static $(){return["GoalError|1 error 9"]}};aY=class aY extends I8{constructor(Z){super();this.result={case:void 0},r.util.initPartial(Z,this)}static fromBinary(Z,$){return new aY().fromBinary(Z,$)}static fromJson(Z,$){return new aY().fromJson(Z,$)}static fromJsonString(Z,$){return new aY().fromJsonString(Z,$)}static equals(Z,$){return r.util.equals(aY,Z,$)}static $(){return["CreateGoalResult|1 success #0 result|2 error #1 result",rY,G$]}};L$=class L$ extends I8{constructor(Z){super();r.util.initPartial(Z,this)}static fromBinary(Z,$){return new L$().fromBinary(Z,$)}static fromJson(Z,$){return new L$().fromJson(Z,$)}static fromJsonString(Z,$){return new L$().fromJsonString(Z,$)}static equals(Z,$){return r.util.equals(L$,Z,$)}static $(){return["CreateGoalToolCall|1 args #0|2 result #1",nY,aY]}};sY=class sY extends I8{constructor(Z){super();this.status=w$.UNSPECIFIED,r.util.initPartial(Z,this)}static fromBinary(Z,$){return new sY().fromBinary(Z,$)}static fromJson(Z,$){return new sY().fromJson(Z,$)}static fromJsonString(Z,$){return new sY().fromJsonString(Z,$)}static equals(Z,$){return r.util.equals(sY,Z,$)}static $(){return["UpdateGoalArgs|1 status #0",w$]}};tY=class tY extends I8{constructor(Z){super();this.status=w$.UNSPECIFIED,r.util.initPartial(Z,this)}static fromBinary(Z,$){return new tY().fromBinary(Z,$)}static fromJson(Z,$){return new tY().fromJson(Z,$)}static fromJsonString(Z,$){return new tY().fromJsonString(Z,$)}static equals(Z,$){return r.util.equals(tY,Z,$)}static $(){return["UpdateGoalSuccess|1 status #0",w$]}};oY=class oY extends I8{constructor(Z){super();this.result={case:void 0},r.util.initPartial(Z,this)}static fromBinary(Z,$){return new oY().fromBinary(Z,$)}static fromJson(Z,$){return new oY().fromJson(Z,$)}static fromJsonString(Z,$){return new oY().fromJsonString(Z,$)}static equals(Z,$){return r.util.equals(oY,Z,$)}static $(){return["UpdateGoalResult|1 success #0 result|2 error #1 result",tY,G$]}};D$=class D$ extends I8{constructor(Z){super();r.util.initPartial(Z,this)}static fromBinary(Z,$){return new D$().fromBinary(Z,$)}static fromJson(Z,$){return new D$().fromJson(Z,$)}static fromJsonString(Z,$){return new D$().fromJsonString(Z,$)}static equals(Z,$){return r.util.equals(D$,Z,$)}static $(){return["UpdateGoalToolCall|1 args #0|2 result #1",sY,oY]}}});import{Message as xs,proto3 as N,protoInt64 as C8}from"@bufbuild/protobuf";var TW="agent.v1.",k,HG,eY,Z3,$3,J3,Y3,U$,X3,z3,K3,QG,Q3,H3,O$,W3,q3,N3,B3,I$,F3,G3,L3,D3,k$,w3,U3,O3,I3,P$,k3,P3,E3,f3,E$,V3,A3,M3,x3,f$,T3,C3,h3,R3,V$,A$,M$,x$,v3,y3,m3,T$,C$,j3,_3,S3,g3,b3,h$,c3,d3,u3,l3,p3,i3,R$,n3,r3,a3,s3,t3,o3,e3,ZX,$X,v$,JX,YX,XX,zX,y$,KX,QX,HX,WX,qX,m$,NX,BX,FX,GX,LX,j$;var WG=O(()=>{A();k=class k extends G{static get runtime(){return F(this,"runtime",N)}static $p(){return TW}};HG=D(N,TW,"CreateAgentPlacementApprovalState",[[0,"UNSPECIFIED"],[1,"REQUIRED"],[2,"DENIED"]],1);eY=class eY extends k{constructor(Z){super();this.toolCallId="",this.agentIds=[],N.util.initPartial(Z,this)}static fromBinary(Z,$){return new eY().fromBinary(Z,$)}static fromJson(Z,$){return new eY().fromJson(Z,$)}static fromJsonString(Z,$){return new eY().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(eY,Z,$)}static $(){return["GetAgentStatusArgs|1 tool_call_id 9|2 agent_ids 9*"]}};Z3=class Z3 extends k{constructor(Z){super();this.bcId="",this.name="",this.lifecycle="",this.turnInFlight=!1,this.lastTerminalTurnStatus="",this.prUrl="",this.lastActivityAtMs=C8.zero,N.util.initPartial(Z,this)}static fromBinary(Z,$){return new Z3().fromBinary(Z,$)}static fromJson(Z,$){return new Z3().fromJson(Z,$)}static fromJsonString(Z,$){return new Z3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(Z3,Z,$)}static $(){return["GetAgentStatusWorker|1 bc_id 9|2 name 9|3 lifecycle 9|4 turn_in_flight 8|5 last_terminal_turn_status 9|6 pr_url 9|7 last_activity_at_ms 4"]}};$3=class $3 extends k{constructor(Z){super();this.workers=[],this.message="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new $3().fromBinary(Z,$)}static fromJson(Z,$){return new $3().fromJson(Z,$)}static fromJsonString(Z,$){return new $3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals($3,Z,$)}static $(){return["GetAgentStatusSuccess|1 workers #0*|2 message 9",Z3]}};J3=class J3 extends k{constructor(Z){super();this.error="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new J3().fromBinary(Z,$)}static fromJson(Z,$){return new J3().fromJson(Z,$)}static fromJsonString(Z,$){return new J3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(J3,Z,$)}static $(){return["GetAgentStatusError|1 error 9"]}};Y3=class Y3 extends k{constructor(Z){super();this.result={case:void 0},N.util.initPartial(Z,this)}static fromBinary(Z,$){return new Y3().fromBinary(Z,$)}static fromJson(Z,$){return new Y3().fromJson(Z,$)}static fromJsonString(Z,$){return new Y3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(Y3,Z,$)}static $(){return["GetAgentStatusResult|1 success #0 result|2 error #1 result",$3,J3]}};U$=class U$ extends k{constructor(Z){super();N.util.initPartial(Z,this)}static fromBinary(Z,$){return new U$().fromBinary(Z,$)}static fromJson(Z,$){return new U$().fromJson(Z,$)}static fromJsonString(Z,$){return new U$().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(U$,Z,$)}static $(){return["GetAgentStatusToolCall|1 args #0|2 result #1",eY,Y3]}};X3=class X3 extends k{constructor(Z){super();this.toolCallId="",this.agentId="",this.message="",this.delivery="",this.title="",this.trackedTaskKeys=[],N.util.initPartial(Z,this)}static fromBinary(Z,$){return new X3().fromBinary(Z,$)}static fromJson(Z,$){return new X3().fromJson(Z,$)}static fromJsonString(Z,$){return new X3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(X3,Z,$)}static $(){return["SendToAgentArgs|1 tool_call_id 9|2 agent_id 9|3 message 9|4 delivery 9|5 title 9|6 model 9?|7 tracked_task_keys 9*"]}};z3=class z3 extends k{constructor(Z){super();this.workerBcId="",this.deliveredAs="",this.message="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new z3().fromBinary(Z,$)}static fromJson(Z,$){return new z3().fromJson(Z,$)}static fromJsonString(Z,$){return new z3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(z3,Z,$)}static $(){return["SendToAgentSuccess|1 worker_bc_id 9|2 delivered_as 9|3 message 9|4 recipient #0?",K3]}};K3=class K3 extends k{constructor(Z){super();this.kind=QG.UNSPECIFIED,this.id="",this.displayName="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new K3().fromBinary(Z,$)}static fromJson(Z,$){return new K3().fromJson(Z,$)}static fromJsonString(Z,$){return new K3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(K3,Z,$)}static $(){return["SendToAgentRecipient|1 kind #0|2 id 9|3 display_name 9",QG]}};QG=D(N,TW,"SendToAgentRecipient.Kind",[[0,"UNSPECIFIED"],[1,"MAIN_BOT"],[2,"PROJECT_SESSION"]],1);Q3=class Q3 extends k{constructor(Z){super();this.error="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new Q3().fromBinary(Z,$)}static fromJson(Z,$){return new Q3().fromJson(Z,$)}static fromJsonString(Z,$){return new Q3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(Q3,Z,$)}static $(){return["SendToAgentError|1 error 9"]}};H3=class H3 extends k{constructor(Z){super();this.result={case:void 0},N.util.initPartial(Z,this)}static fromBinary(Z,$){return new H3().fromBinary(Z,$)}static fromJson(Z,$){return new H3().fromJson(Z,$)}static fromJsonString(Z,$){return new H3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(H3,Z,$)}static $(){return["SendToAgentResult|1 success #0 result|2 error #1 result",z3,Q3]}};O$=class O$ extends k{constructor(Z){super();N.util.initPartial(Z,this)}static fromBinary(Z,$){return new O$().fromBinary(Z,$)}static fromJson(Z,$){return new O$().fromJson(Z,$)}static fromJsonString(Z,$){return new O$().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(O$,Z,$)}static $(){return["SendToAgentToolCall|1 args #0|2 result #1",X3,H3]}};W3=class W3 extends k{constructor(Z){super();this.toolCallId="",this.agentId="",this.mode="",this.maxTurns=0,N.util.initPartial(Z,this)}static fromBinary(Z,$){return new W3().fromBinary(Z,$)}static fromJson(Z,$){return new W3().fromJson(Z,$)}static fromJsonString(Z,$){return new W3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(W3,Z,$)}static $(){return["ReadAgentTranscriptArgs|1 tool_call_id 9|2 agent_id 9|3 mode 9|4 max_turns 13"]}};q3=class q3 extends k{constructor(Z){super();this.transcript="",this.truncated=!1,N.util.initPartial(Z,this)}static fromBinary(Z,$){return new q3().fromBinary(Z,$)}static fromJson(Z,$){return new q3().fromJson(Z,$)}static fromJsonString(Z,$){return new q3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(q3,Z,$)}static $(){return["ReadAgentTranscriptSuccess|1 transcript 9|2 truncated 8"]}};N3=class N3 extends k{constructor(Z){super();this.error="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new N3().fromBinary(Z,$)}static fromJson(Z,$){return new N3().fromJson(Z,$)}static fromJsonString(Z,$){return new N3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(N3,Z,$)}static $(){return["ReadAgentTranscriptError|1 error 9"]}};B3=class B3 extends k{constructor(Z){super();this.result={case:void 0},N.util.initPartial(Z,this)}static fromBinary(Z,$){return new B3().fromBinary(Z,$)}static fromJson(Z,$){return new B3().fromJson(Z,$)}static fromJsonString(Z,$){return new B3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(B3,Z,$)}static $(){return["ReadAgentTranscriptResult|1 success #0 result|2 error #1 result",q3,N3]}};I$=class I$ extends k{constructor(Z){super();N.util.initPartial(Z,this)}static fromBinary(Z,$){return new I$().fromBinary(Z,$)}static fromJson(Z,$){return new I$().fromJson(Z,$)}static fromJsonString(Z,$){return new I$().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(I$,Z,$)}static $(){return["ReadAgentTranscriptToolCall|1 args #0|2 result #1",W3,B3]}};F3=class F3 extends k{constructor(Z){super();this.toolCallId="",this.prompt="",this.labels={},this.trackedTaskKeys=[],N.util.initPartial(Z,this)}static fromBinary(Z,$){return new F3().fromBinary(Z,$)}static fromJson(Z,$){return new F3().fromJson(Z,$)}static fromJsonString(Z,$){return new F3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(F3,Z,$)}static $(){return["CreateAgentArgs|1 tool_call_id 9|2 prompt 9|3 name 9?|4 model 9?|5 base_branch 9?|6 machine_type 9?|7 worker_id 9?|8 pool 9?|9 labels 9,9|10 environment_build_id 9?|11 environment_id 9?|12 repo_url 9?|13 tracked_task_keys 9*|14 fork_from 9?|15 fork_turns 13?"]}};G3=class G3 extends k{constructor(Z){super();this.agentId="",this.message="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new G3().fromBinary(Z,$)}static fromJson(Z,$){return new G3().fromJson(Z,$)}static fromJsonString(Z,$){return new G3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(G3,Z,$)}static $(){return["CreateAgentSuccess|1 agent_id 9|2 message 9"]}};L3=class L3 extends k{constructor(Z){super();this.error="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new L3().fromBinary(Z,$)}static fromJson(Z,$){return new L3().fromJson(Z,$)}static fromJsonString(Z,$){return new L3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(L3,Z,$)}static $(){return["CreateAgentError|1 error 9|2 placement_approval_state #0?",HG]}};D3=class D3 extends k{constructor(Z){super();this.result={case:void 0},N.util.initPartial(Z,this)}static fromBinary(Z,$){return new D3().fromBinary(Z,$)}static fromJson(Z,$){return new D3().fromJson(Z,$)}static fromJsonString(Z,$){return new D3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(D3,Z,$)}static $(){return["CreateAgentResult|1 success #0 result|2 error #1 result",G3,L3]}};k$=class k$ extends k{constructor(Z){super();N.util.initPartial(Z,this)}static fromBinary(Z,$){return new k$().fromBinary(Z,$)}static fromJson(Z,$){return new k$().fromJson(Z,$)}static fromJsonString(Z,$){return new k$().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(k$,Z,$)}static $(){return["CreateAgentToolCall|1 args #0|2 result #1",F3,D3]}};w3=class w3 extends k{constructor(Z){super();this.toolCallId="",this.prompt="",this.labels={},N.util.initPartial(Z,this)}static fromBinary(Z,$){return new w3().fromBinary(Z,$)}static fromJson(Z,$){return new w3().fromJson(Z,$)}static fromJsonString(Z,$){return new w3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(w3,Z,$)}static $(){return["CreateProjectArgs|1 tool_call_id 9|2 prompt 9|3 name 9?|4 model 9?|5 base_branch 9?|6 machine_type 9?|7 worker_id 9?|8 pool 9?|9 labels 9,9|10 environment_build_id 9?|11 environment_id 9?|12 repo_url 9?"]}};U3=class U3 extends k{constructor(Z){super();this.agentId="",this.message="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new U3().fromBinary(Z,$)}static fromJson(Z,$){return new U3().fromJson(Z,$)}static fromJsonString(Z,$){return new U3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(U3,Z,$)}static $(){return["CreateProjectSuccess|1 agent_id 9|2 message 9"]}};O3=class O3 extends k{constructor(Z){super();this.error="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new O3().fromBinary(Z,$)}static fromJson(Z,$){return new O3().fromJson(Z,$)}static fromJsonString(Z,$){return new O3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(O3,Z,$)}static $(){return["CreateProjectError|1 error 9|2 placement_approval_state #0?",HG]}};I3=class I3 extends k{constructor(Z){super();this.result={case:void 0},N.util.initPartial(Z,this)}static fromBinary(Z,$){return new I3().fromBinary(Z,$)}static fromJson(Z,$){return new I3().fromJson(Z,$)}static fromJsonString(Z,$){return new I3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(I3,Z,$)}static $(){return["CreateProjectResult|1 success #0 result|2 error #1 result",U3,O3]}};P$=class P$ extends k{constructor(Z){super();N.util.initPartial(Z,this)}static fromBinary(Z,$){return new P$().fromBinary(Z,$)}static fromJson(Z,$){return new P$().fromJson(Z,$)}static fromJsonString(Z,$){return new P$().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(P$,Z,$)}static $(){return["CreateProjectToolCall|1 args #0|2 result #1",w3,I3]}};k3=class k3 extends k{constructor(Z){super();this.toolCallId="",this.agentId="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new k3().fromBinary(Z,$)}static fromJson(Z,$){return new k3().fromJson(Z,$)}static fromJsonString(Z,$){return new k3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(k3,Z,$)}static $(){return["StartProjectUpdatesArgs|1 tool_call_id 9|2 agent_id 9"]}};P3=class P3 extends k{constructor(Z){super();this.agentId="",this.untilMs=C8.zero,this.wasOn=!1,this.message="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new P3().fromBinary(Z,$)}static fromJson(Z,$){return new P3().fromJson(Z,$)}static fromJsonString(Z,$){return new P3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(P3,Z,$)}static $(){return["StartProjectUpdatesSuccess|1 agent_id 9|2 until_ms 3|3 was_on 8|4 message 9"]}};E3=class E3 extends k{constructor(Z){super();this.error="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new E3().fromBinary(Z,$)}static fromJson(Z,$){return new E3().fromJson(Z,$)}static fromJsonString(Z,$){return new E3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(E3,Z,$)}static $(){return["StartProjectUpdatesError|1 error 9"]}};f3=class f3 extends k{constructor(Z){super();this.result={case:void 0},N.util.initPartial(Z,this)}static fromBinary(Z,$){return new f3().fromBinary(Z,$)}static fromJson(Z,$){return new f3().fromJson(Z,$)}static fromJsonString(Z,$){return new f3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(f3,Z,$)}static $(){return["StartProjectUpdatesResult|1 success #0 result|2 error #1 result",P3,E3]}};E$=class E$ extends k{constructor(Z){super();N.util.initPartial(Z,this)}static fromBinary(Z,$){return new E$().fromBinary(Z,$)}static fromJson(Z,$){return new E$().fromJson(Z,$)}static fromJsonString(Z,$){return new E$().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(E$,Z,$)}static $(){return["StartProjectUpdatesToolCall|1 args #0|2 result #1",k3,f3]}};V3=class V3 extends k{constructor(Z){super();this.toolCallId="",this.agentId="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new V3().fromBinary(Z,$)}static fromJson(Z,$){return new V3().fromJson(Z,$)}static fromJsonString(Z,$){return new V3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(V3,Z,$)}static $(){return["StopProjectUpdatesArgs|1 tool_call_id 9|2 agent_id 9"]}};A3=class A3 extends k{constructor(Z){super();this.agentId="",this.wasOn=!1,this.message="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new A3().fromBinary(Z,$)}static fromJson(Z,$){return new A3().fromJson(Z,$)}static fromJsonString(Z,$){return new A3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(A3,Z,$)}static $(){return["StopProjectUpdatesSuccess|1 agent_id 9|2 was_on 8|3 message 9"]}};M3=class M3 extends k{constructor(Z){super();this.error="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new M3().fromBinary(Z,$)}static fromJson(Z,$){return new M3().fromJson(Z,$)}static fromJsonString(Z,$){return new M3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(M3,Z,$)}static $(){return["StopProjectUpdatesError|1 error 9"]}};x3=class x3 extends k{constructor(Z){super();this.result={case:void 0},N.util.initPartial(Z,this)}static fromBinary(Z,$){return new x3().fromBinary(Z,$)}static fromJson(Z,$){return new x3().fromJson(Z,$)}static fromJsonString(Z,$){return new x3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(x3,Z,$)}static $(){return["StopProjectUpdatesResult|1 success #0 result|2 error #1 result",A3,M3]}};f$=class f$ extends k{constructor(Z){super();N.util.initPartial(Z,this)}static fromBinary(Z,$){return new f$().fromBinary(Z,$)}static fromJson(Z,$){return new f$().fromJson(Z,$)}static fromJsonString(Z,$){return new f$().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(f$,Z,$)}static $(){return["StopProjectUpdatesToolCall|1 args #0|2 result #1",V3,x3]}};T3=class T3 extends k{constructor(Z){super();this.toolCallId="",this.agentId="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new T3().fromBinary(Z,$)}static fromJson(Z,$){return new T3().fromJson(Z,$)}static fromJsonString(Z,$){return new T3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(T3,Z,$)}static $(){return["StopAgentArgs|1 tool_call_id 9|2 agent_id 9"]}};C3=class C3 extends k{constructor(Z){super();this.workerBcId="",this.message="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new C3().fromBinary(Z,$)}static fromJson(Z,$){return new C3().fromJson(Z,$)}static fromJsonString(Z,$){return new C3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(C3,Z,$)}static $(){return["StopAgentSuccess|1 worker_bc_id 9|2 message 9"]}};h3=class h3 extends k{constructor(Z){super();this.error="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new h3().fromBinary(Z,$)}static fromJson(Z,$){return new h3().fromJson(Z,$)}static fromJsonString(Z,$){return new h3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(h3,Z,$)}static $(){return["StopAgentError|1 error 9"]}};R3=class R3 extends k{constructor(Z){super();this.result={case:void 0},N.util.initPartial(Z,this)}static fromBinary(Z,$){return new R3().fromBinary(Z,$)}static fromJson(Z,$){return new R3().fromJson(Z,$)}static fromJsonString(Z,$){return new R3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(R3,Z,$)}static $(){return["StopAgentResult|1 success #0 result|2 error #1 result",C3,h3]}};V$=class V$ extends k{constructor(Z){super();N.util.initPartial(Z,this)}static fromBinary(Z,$){return new V$().fromBinary(Z,$)}static fromJson(Z,$){return new V$().fromJson(Z,$)}static fromJsonString(Z,$){return new V$().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(V$,Z,$)}static $(){return["StopAgentToolCall|1 args #0|2 result #1",T3,R3]}};A$=class A$ extends k{constructor(Z){super();this.path="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new A$().fromBinary(Z,$)}static fromJson(Z,$){return new A$().fromJson(Z,$)}static fromJsonString(Z,$){return new A$().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(A$,Z,$)}static $(){return["TrackedTaskDocumentInput|1 path 9|2 label 9?"]}};M$=class M$ extends k{constructor(Z){super();this.url="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new M$().fromBinary(Z,$)}static fromJson(Z,$){return new M$().fromJson(Z,$)}static fromJsonString(Z,$){return new M$().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(M$,Z,$)}static $(){return["TrackedTaskUrlInput|1 url 9|2 label 9?"]}};x$=class x$ extends k{constructor(Z){super();this.target={case:void 0},N.util.initPartial(Z,this)}static fromBinary(Z,$){return new x$().fromBinary(Z,$)}static fromJson(Z,$){return new x$().fromJson(Z,$)}static fromJsonString(Z,$){return new x$().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(x$,Z,$)}static $(){return["TrackedTaskLinkInput|1 agent_id 9 target|2 pr_url 9 target|3 document #0 target|4 url #1 target",A$,M$]}};v3=class v3 extends k{constructor(Z){super();this.url="",this.openedByAgentId="",this.countsForCompletion=!1,N.util.initPartial(Z,this)}static fromBinary(Z,$){return new v3().fromBinary(Z,$)}static fromJson(Z,$){return new v3().fromJson(Z,$)}static fromJsonString(Z,$){return new v3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(v3,Z,$)}static $(){return["TrackedTaskPrLinkView|1 url 9|2 opened_by_agent_id 9|3 counts_for_completion 8"]}};y3=class y3 extends k{constructor(Z){super();this.target={case:void 0},N.util.initPartial(Z,this)}static fromBinary(Z,$){return new y3().fromBinary(Z,$)}static fromJson(Z,$){return new y3().fromJson(Z,$)}static fromJsonString(Z,$){return new y3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(y3,Z,$)}static $(){return["TrackedTaskLinkView|1 agent_id 9 target|2 pr #0 target|3 document #1 target|4 url #2 target",v3,A$,M$]}};m3=class m3 extends k{constructor(Z){super();this.key="",this.title="",this.statusId="",this.statusLabel="",this.owner="",this.parentKey="",this.links=[],this.updatedAtMs=C8.zero,this.ownerSessionId="",this.version=C8.zero,this.tag="",this.internalNotes="",this.tags=[],N.util.initPartial(Z,this)}static fromBinary(Z,$){return new m3().fromBinary(Z,$)}static fromJson(Z,$){return new m3().fromJson(Z,$)}static fromJsonString(Z,$){return new m3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(m3,Z,$)}static $(){return["TrackedTaskView|1 key 9|2 title 9|3 status_id 9|4 status_label 9|5 owner 9|6 parent_key 9|7 links #0*|8 updated_at_ms 4|9 owner_session_id 9|10 version 4|11 tag 9|12 internal_notes 9|13 tags 9*",y3]}};T$=class T$ extends k{constructor(Z){super();this.id="",this.label="",this.category="",this.taskCount=0,N.util.initPartial(Z,this)}static fromBinary(Z,$){return new T$().fromBinary(Z,$)}static fromJson(Z,$){return new T$().fromJson(Z,$)}static fromJsonString(Z,$){return new T$().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(T$,Z,$)}static $(){return["TrackedTaskStatusView|1 id 9|2 label 9|3 category 9|4 task_count 13"]}};C$=class C$ extends k{constructor(Z){super();this.id="",this.label="",this.color="",this.taskCount=0,N.util.initPartial(Z,this)}static fromBinary(Z,$){return new C$().fromBinary(Z,$)}static fromJson(Z,$){return new C$().fromJson(Z,$)}static fromJsonString(Z,$){return new C$().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(C$,Z,$)}static $(){return["TrackedTaskTagView|1 id 9|2 label 9|3 color 9|4 task_count 13"]}};j3=class j3 extends k{constructor(Z){super();this.name="",this.sessionId="",this.isYou=!1,N.util.initPartial(Z,this)}static fromBinary(Z,$){return new j3().fromBinary(Z,$)}static fromJson(Z,$){return new j3().fromJson(Z,$)}static fromJsonString(Z,$){return new j3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(j3,Z,$)}static $(){return["TrackedTaskMemberView|1 name 9|2 session_id 9|3 is_you 8"]}};_3=class _3 extends k{constructor(Z){super();this.toolCallId="",this.keys=[],this.statusCategories=[],N.util.initPartial(Z,this)}static fromBinary(Z,$){return new _3().fromBinary(Z,$)}static fromJson(Z,$){return new _3().fromJson(Z,$)}static fromJsonString(Z,$){return new _3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(_3,Z,$)}static $(){return["ListTrackedTasksArgs|1 tool_call_id 9|2 keys 9*|3 status_categories 9*|4 owner 9?|5 linked_agent_id 9?|6 cursor 9?"]}};S3=class S3 extends k{constructor(Z){super();this.tasks=[],this.statuses=[],this.members=[],this.olderClosedCount=0,this.truncated=!1,this.matchingCount=0,this.message="",this.tags=[],this.nextCursor="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new S3().fromBinary(Z,$)}static fromJson(Z,$){return new S3().fromJson(Z,$)}static fromJsonString(Z,$){return new S3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(S3,Z,$)}static $(){return["ListTrackedTasksSuccess|1 tasks #0*|2 statuses #1*|3 members #2*|4 older_closed_count 13|5 truncated 8|6 matching_count 13|7 message 9|8 tags #3*|9 next_cursor 9",m3,T$,j3,C$]}};g3=class g3 extends k{constructor(Z){super();this.error="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new g3().fromBinary(Z,$)}static fromJson(Z,$){return new g3().fromJson(Z,$)}static fromJsonString(Z,$){return new g3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(g3,Z,$)}static $(){return["ListTrackedTasksError|1 error 9"]}};b3=class b3 extends k{constructor(Z){super();this.result={case:void 0},N.util.initPartial(Z,this)}static fromBinary(Z,$){return new b3().fromBinary(Z,$)}static fromJson(Z,$){return new b3().fromJson(Z,$)}static fromJsonString(Z,$){return new b3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(b3,Z,$)}static $(){return["ListTrackedTasksResult|1 success #0 result|2 error #1 result",S3,g3]}};h$=class h$ extends k{constructor(Z){super();N.util.initPartial(Z,this)}static fromBinary(Z,$){return new h$().fromBinary(Z,$)}static fromJson(Z,$){return new h$().fromJson(Z,$)}static fromJsonString(Z,$){return new h$().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(h$,Z,$)}static $(){return["ListTrackedTasksToolCall|1 args #0|2 result #1",_3,b3]}};c3=class c3 extends k{constructor(Z){super();this.title="",this.links=[],this.tags=[],N.util.initPartial(Z,this)}static fromBinary(Z,$){return new c3().fromBinary(Z,$)}static fromJson(Z,$){return new c3().fromJson(Z,$)}static fromJsonString(Z,$){return new c3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(c3,Z,$)}static $(){return["NewTrackedTask|1 client_ref 9?|2 title 9|3 status 9?|4 owner 9?|5 parent 9?|6 links #0*|7 tag 9?|8 internal_notes 9?|9 tags 9*",x$]}};d3=class d3 extends k{constructor(Z){super();this.toolCallId="",this.tasks=[],N.util.initPartial(Z,this)}static fromBinary(Z,$){return new d3().fromBinary(Z,$)}static fromJson(Z,$){return new d3().fromJson(Z,$)}static fromJsonString(Z,$){return new d3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(d3,Z,$)}static $(){return["CreateTrackedTasksArgs|1 tool_call_id 9|2 tasks #0*",c3]}};u3=class u3 extends k{constructor(Z){super();this.clientRef="",this.key="",this.version=C8.zero,N.util.initPartial(Z,this)}static fromBinary(Z,$){return new u3().fromBinary(Z,$)}static fromJson(Z,$){return new u3().fromJson(Z,$)}static fromJsonString(Z,$){return new u3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(u3,Z,$)}static $(){return["TrackedTaskCreated|1 client_ref 9|2 key 9|3 version 4"]}};l3=class l3 extends k{constructor(Z){super();this.created=[],this.message="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new l3().fromBinary(Z,$)}static fromJson(Z,$){return new l3().fromJson(Z,$)}static fromJsonString(Z,$){return new l3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(l3,Z,$)}static $(){return["CreateTrackedTasksSuccess|1 created #0*|2 message 9",u3]}};p3=class p3 extends k{constructor(Z){super();this.error="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new p3().fromBinary(Z,$)}static fromJson(Z,$){return new p3().fromJson(Z,$)}static fromJsonString(Z,$){return new p3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(p3,Z,$)}static $(){return["CreateTrackedTasksError|1 error 9"]}};i3=class i3 extends k{constructor(Z){super();this.result={case:void 0},N.util.initPartial(Z,this)}static fromBinary(Z,$){return new i3().fromBinary(Z,$)}static fromJson(Z,$){return new i3().fromJson(Z,$)}static fromJsonString(Z,$){return new i3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(i3,Z,$)}static $(){return["CreateTrackedTasksResult|1 success #0 result|2 error #1 result",l3,p3]}};R$=class R$ extends k{constructor(Z){super();N.util.initPartial(Z,this)}static fromBinary(Z,$){return new R$().fromBinary(Z,$)}static fromJson(Z,$){return new R$().fromJson(Z,$)}static fromJsonString(Z,$){return new R$().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(R$,Z,$)}static $(){return["CreateTrackedTasksToolCall|1 args #0|2 result #1",d3,i3]}};n3=class n3 extends k{constructor(Z){super();this.anchor={case:void 0},N.util.initPartial(Z,this)}static fromBinary(Z,$){return new n3().fromBinary(Z,$)}static fromJson(Z,$){return new n3().fromJson(Z,$)}static fromJsonString(Z,$){return new n3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(n3,Z,$)}static $(){return["TrackedTaskPosition|1 before_key 9 anchor|2 after_key 9 anchor"]}};r3=class r3 extends k{constructor(Z){super();this.key="",this.addLinks=[],this.removeLinks=[],this.version=C8.zero,N.util.initPartial(Z,this)}static fromBinary(Z,$){return new r3().fromBinary(Z,$)}static fromJson(Z,$){return new r3().fromJson(Z,$)}static fromJsonString(Z,$){return new r3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(r3,Z,$)}static $(){return["TrackedTaskUpdate|1 key 9|2 title 9?|3 status 9?|4 owner 9?|5 parent 9?|6 position #0?|7 add_links #1*|8 remove_links #1*|9 version 4|10 tag 9?|11 internal_notes 9?|12 tags #2?",n3,x$,a3]}};a3=class a3 extends k{constructor(Z){super();this.ids=[],N.util.initPartial(Z,this)}static fromBinary(Z,$){return new a3().fromBinary(Z,$)}static fromJson(Z,$){return new a3().fromJson(Z,$)}static fromJsonString(Z,$){return new a3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(a3,Z,$)}static $(){return["TrackedTaskTagIds|1 ids 9*"]}};s3=class s3 extends k{constructor(Z){super();this.toolCallId="",this.updates=[],N.util.initPartial(Z,this)}static fromBinary(Z,$){return new s3().fromBinary(Z,$)}static fromJson(Z,$){return new s3().fromJson(Z,$)}static fromJsonString(Z,$){return new s3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(s3,Z,$)}static $(){return["UpdateTrackedTasksArgs|1 tool_call_id 9|2 updates #0*",r3]}};t3=class t3 extends k{constructor(Z){super();this.key="",this.field="",this.currentValue="",this.changedBy="",this.changedAtMs=C8.zero,this.currentVersion=C8.zero,N.util.initPartial(Z,this)}static fromBinary(Z,$){return new t3().fromBinary(Z,$)}static fromJson(Z,$){return new t3().fromJson(Z,$)}static fromJsonString(Z,$){return new t3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(t3,Z,$)}static $(){return["TrackedTaskConflict|1 key 9|2 field 9|3 current_value 9|4 changed_by 9|5 changed_at_ms 4|6 current_version 4"]}};o3=class o3 extends k{constructor(Z){super();this.key="",this.version=C8.zero,this.title="",this.statusLabel="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new o3().fromBinary(Z,$)}static fromJson(Z,$){return new o3().fromJson(Z,$)}static fromJsonString(Z,$){return new o3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(o3,Z,$)}static $(){return["TrackedTaskUpdated|1 key 9|2 version 4|3 title 9|4 status_label 9"]}};e3=class e3 extends k{constructor(Z){super();this.updated=[],this.conflicts=[],this.message="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new e3().fromBinary(Z,$)}static fromJson(Z,$){return new e3().fromJson(Z,$)}static fromJsonString(Z,$){return new e3().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(e3,Z,$)}static $(){return["UpdateTrackedTasksSuccess|1 updated #0*|2 conflicts #1*|3 message 9",o3,t3]}};ZX=class ZX extends k{constructor(Z){super();this.error="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new ZX().fromBinary(Z,$)}static fromJson(Z,$){return new ZX().fromJson(Z,$)}static fromJsonString(Z,$){return new ZX().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(ZX,Z,$)}static $(){return["UpdateTrackedTasksError|1 error 9"]}};$X=class $X extends k{constructor(Z){super();this.result={case:void 0},N.util.initPartial(Z,this)}static fromBinary(Z,$){return new $X().fromBinary(Z,$)}static fromJson(Z,$){return new $X().fromJson(Z,$)}static fromJsonString(Z,$){return new $X().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals($X,Z,$)}static $(){return["UpdateTrackedTasksResult|1 success #0 result|2 error #1 result",e3,ZX]}};v$=class v$ extends k{constructor(Z){super();N.util.initPartial(Z,this)}static fromBinary(Z,$){return new v$().fromBinary(Z,$)}static fromJson(Z,$){return new v$().fromJson(Z,$)}static fromJsonString(Z,$){return new v$().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(v$,Z,$)}static $(){return["UpdateTrackedTasksToolCall|1 args #0|2 result #1",s3,$X]}};JX=class JX extends k{constructor(Z){super();this.toolCallId="",this.keys=[],N.util.initPartial(Z,this)}static fromBinary(Z,$){return new JX().fromBinary(Z,$)}static fromJson(Z,$){return new JX().fromJson(Z,$)}static fromJsonString(Z,$){return new JX().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(JX,Z,$)}static $(){return["DeleteTrackedTasksArgs|1 tool_call_id 9|2 keys 9*"]}};YX=class YX extends k{constructor(Z){super();this.deletedKeys=[],this.unparentedKeys=[],this.message="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new YX().fromBinary(Z,$)}static fromJson(Z,$){return new YX().fromJson(Z,$)}static fromJsonString(Z,$){return new YX().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(YX,Z,$)}static $(){return["DeleteTrackedTasksSuccess|1 deleted_keys 9*|2 unparented_keys 9*|3 message 9"]}};XX=class XX extends k{constructor(Z){super();this.error="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new XX().fromBinary(Z,$)}static fromJson(Z,$){return new XX().fromJson(Z,$)}static fromJsonString(Z,$){return new XX().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(XX,Z,$)}static $(){return["DeleteTrackedTasksError|1 error 9"]}};zX=class zX extends k{constructor(Z){super();this.result={case:void 0},N.util.initPartial(Z,this)}static fromBinary(Z,$){return new zX().fromBinary(Z,$)}static fromJson(Z,$){return new zX().fromJson(Z,$)}static fromJsonString(Z,$){return new zX().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(zX,Z,$)}static $(){return["DeleteTrackedTasksResult|1 success #0 result|2 error #1 result",YX,XX]}};y$=class y$ extends k{constructor(Z){super();N.util.initPartial(Z,this)}static fromBinary(Z,$){return new y$().fromBinary(Z,$)}static fromJson(Z,$){return new y$().fromJson(Z,$)}static fromJsonString(Z,$){return new y$().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(y$,Z,$)}static $(){return["DeleteTrackedTasksToolCall|1 args #0|2 result #1",JX,zX]}};KX=class KX extends k{constructor(Z){super();this.label="",this.category="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new KX().fromBinary(Z,$)}static fromJson(Z,$){return new KX().fromJson(Z,$)}static fromJsonString(Z,$){return new KX().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(KX,Z,$)}static $(){return["TrackedTaskStatusInput|1 id 9?|2 label 9|3 icon 9?|4 category 9"]}};QX=class QX extends k{constructor(Z){super();this.toolCallId="",this.statuses=[],N.util.initPartial(Z,this)}static fromBinary(Z,$){return new QX().fromBinary(Z,$)}static fromJson(Z,$){return new QX().fromJson(Z,$)}static fromJsonString(Z,$){return new QX().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(QX,Z,$)}static $(){return["UpdateTrackedTaskStatusesArgs|1 tool_call_id 9|2 statuses #0*",KX]}};HX=class HX extends k{constructor(Z){super();this.statuses=[],this.message="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new HX().fromBinary(Z,$)}static fromJson(Z,$){return new HX().fromJson(Z,$)}static fromJsonString(Z,$){return new HX().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(HX,Z,$)}static $(){return["UpdateTrackedTaskStatusesSuccess|1 statuses #0*|2 message 9",T$]}};WX=class WX extends k{constructor(Z){super();this.error="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new WX().fromBinary(Z,$)}static fromJson(Z,$){return new WX().fromJson(Z,$)}static fromJsonString(Z,$){return new WX().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(WX,Z,$)}static $(){return["UpdateTrackedTaskStatusesError|1 error 9"]}};qX=class qX extends k{constructor(Z){super();this.result={case:void 0},N.util.initPartial(Z,this)}static fromBinary(Z,$){return new qX().fromBinary(Z,$)}static fromJson(Z,$){return new qX().fromJson(Z,$)}static fromJsonString(Z,$){return new qX().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(qX,Z,$)}static $(){return["UpdateTrackedTaskStatusesResult|1 success #0 result|2 error #1 result",HX,WX]}};m$=class m$ extends k{constructor(Z){super();N.util.initPartial(Z,this)}static fromBinary(Z,$){return new m$().fromBinary(Z,$)}static fromJson(Z,$){return new m$().fromJson(Z,$)}static fromJsonString(Z,$){return new m$().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(m$,Z,$)}static $(){return["UpdateTrackedTaskStatusesToolCall|1 args #0|2 result #1",QX,qX]}};NX=class NX extends k{constructor(Z){super();this.label="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new NX().fromBinary(Z,$)}static fromJson(Z,$){return new NX().fromJson(Z,$)}static fromJsonString(Z,$){return new NX().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(NX,Z,$)}static $(){return["TrackedTaskTagInput|1 id 9?|2 label 9|3 color 9?"]}};BX=class BX extends k{constructor(Z){super();this.toolCallId="",this.tags=[],N.util.initPartial(Z,this)}static fromBinary(Z,$){return new BX().fromBinary(Z,$)}static fromJson(Z,$){return new BX().fromJson(Z,$)}static fromJsonString(Z,$){return new BX().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(BX,Z,$)}static $(){return["UpdateTrackedTaskTagsArgs|1 tool_call_id 9|2 tags #0*",NX]}};FX=class FX extends k{constructor(Z){super();this.tags=[],this.message="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new FX().fromBinary(Z,$)}static fromJson(Z,$){return new FX().fromJson(Z,$)}static fromJsonString(Z,$){return new FX().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(FX,Z,$)}static $(){return["UpdateTrackedTaskTagsSuccess|1 tags #0*|2 message 9",C$]}};GX=class GX extends k{constructor(Z){super();this.error="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new GX().fromBinary(Z,$)}static fromJson(Z,$){return new GX().fromJson(Z,$)}static fromJsonString(Z,$){return new GX().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(GX,Z,$)}static $(){return["UpdateTrackedTaskTagsError|1 error 9"]}};LX=class LX extends k{constructor(Z){super();this.result={case:void 0},N.util.initPartial(Z,this)}static fromBinary(Z,$){return new LX().fromBinary(Z,$)}static fromJson(Z,$){return new LX().fromJson(Z,$)}static fromJsonString(Z,$){return new LX().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(LX,Z,$)}static $(){return["UpdateTrackedTaskTagsResult|1 success #0 result|2 error #1 result",FX,GX]}};j$=class j$ extends k{constructor(Z){super();N.util.initPartial(Z,this)}static fromBinary(Z,$){return new j$().fromBinary(Z,$)}static fromJson(Z,$){return new j$().fromJson(Z,$)}static fromJsonString(Z,$){return new j$().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(j$,Z,$)}static $(){return["UpdateTrackedTaskTagsToolCall|1 args #0|2 result #1",BX,LX]}}});import{Message as Rs,proto3 as _}from"@bufbuild/protobuf";var CW="agent.v1.",M0,qG,NG,DX,wX,UX,OX,IX,kX,PX,_$,EX,fX,VX,AX,S$;var BG=O(()=>{A();M0=class M0 extends G{static get runtime(){return F(this,"runtime",_)}static $p(){return CW}};qG=D(_,CW,"WriteCanvasFailReason",[[0,"UNSPECIFIED"],[1,"TYPECHECK_FAILED"],[2,"COMPILE_FAILED"],[3,"TOO_LARGE"],[4,"UNAVAILABLE"],[5,"NOT_FOUND"],[6,"REFUSED"]],1),NG=D(_,CW,"ReadCanvasFailReason",[[0,"UNSPECIFIED"],[1,"NOT_FOUND"],[2,"UNAVAILABLE"],[3,"REFUSED"],[4,"INVALID_REFERENCE"]],1);DX=class DX extends M0{constructor(Z){super();this.line=0,this.character=0,_.util.initPartial(Z,this)}static fromBinary(Z,$){return new DX().fromBinary(Z,$)}static fromJson(Z,$){return new DX().fromJson(Z,$)}static fromJsonString(Z,$){return new DX().fromJsonString(Z,$)}static equals(Z,$){return _.util.equals(DX,Z,$)}static $(){return["CloudCanvasToolDiagnosticPosition|1 line 5|2 character 5"]}};wX=class wX extends M0{constructor(Z){super();_.util.initPartial(Z,this)}static fromBinary(Z,$){return new wX().fromBinary(Z,$)}static fromJson(Z,$){return new wX().fromJson(Z,$)}static fromJsonString(Z,$){return new wX().fromJsonString(Z,$)}static equals(Z,$){return _.util.equals(wX,Z,$)}static $(){return["CloudCanvasToolDiagnosticRange|1 start #0|2 end #0",DX]}};UX=class UX extends M0{constructor(Z){super();this.message="",_.util.initPartial(Z,this)}static fromBinary(Z,$){return new UX().fromBinary(Z,$)}static fromJson(Z,$){return new UX().fromJson(Z,$)}static fromJsonString(Z,$){return new UX().fromJsonString(Z,$)}static equals(Z,$){return _.util.equals(UX,Z,$)}static $(){return["CloudCanvasToolDiagnostic|1 message 9|2 code 9?|3 severity 5?|4 range #0?",wX]}};OX=class OX extends M0{constructor(Z){super();this.contents="",_.util.initPartial(Z,this)}static fromBinary(Z,$){return new OX().fromBinary(Z,$)}static fromJson(Z,$){return new OX().fromJson(Z,$)}static fromJsonString(Z,$){return new OX().fromJsonString(Z,$)}static equals(Z,$){return _.util.equals(OX,Z,$)}static $(){return["WriteCanvasArgs|1 contents 9|2 canvas_id 9?|3 title 9?"]}};IX=class IX extends M0{constructor(Z){super();this.canvasId="",this.url="",_.util.initPartial(Z,this)}static fromBinary(Z,$){return new IX().fromBinary(Z,$)}static fromJson(Z,$){return new IX().fromJson(Z,$)}static fromJsonString(Z,$){return new IX().fromJsonString(Z,$)}static equals(Z,$){return _.util.equals(IX,Z,$)}static $(){return["WriteCanvasSuccess|1 canvas_id 9|2 title 9?|3 url 9|4 page_url 9?|5 audience_notice 9?"]}};kX=class kX extends M0{constructor(Z){super();this.reason=qG.UNSPECIFIED,this.diagnostics=[],_.util.initPartial(Z,this)}static fromBinary(Z,$){return new kX().fromBinary(Z,$)}static fromJson(Z,$){return new kX().fromJson(Z,$)}static fromJsonString(Z,$){return new kX().fromJsonString(Z,$)}static equals(Z,$){return _.util.equals(kX,Z,$)}static $(){return["WriteCanvasFailure|1 reason #0|2 diagnostics #1*|3 detail 9?",qG,UX]}};PX=class PX extends M0{constructor(Z){super();this.result={case:void 0},_.util.initPartial(Z,this)}static fromBinary(Z,$){return new PX().fromBinary(Z,$)}static fromJson(Z,$){return new PX().fromJson(Z,$)}static fromJsonString(Z,$){return new PX().fromJsonString(Z,$)}static equals(Z,$){return _.util.equals(PX,Z,$)}static $(){return["WriteCanvasResult|1 success #0 result|2 failure #1 result",IX,kX]}};_$=class _$ extends M0{constructor(Z){super();_.util.initPartial(Z,this)}static fromBinary(Z,$){return new _$().fromBinary(Z,$)}static fromJson(Z,$){return new _$().fromJson(Z,$)}static fromJsonString(Z,$){return new _$().fromJsonString(Z,$)}static equals(Z,$){return _.util.equals(_$,Z,$)}static $(){return["WriteCanvasToolCall|1 args #0|2 result #1",OX,PX]}};EX=class EX extends M0{constructor(Z){super();_.util.initPartial(Z,this)}static fromBinary(Z,$){return new EX().fromBinary(Z,$)}static fromJson(Z,$){return new EX().fromJson(Z,$)}static fromJsonString(Z,$){return new EX().fromJsonString(Z,$)}static equals(Z,$){return _.util.equals(EX,Z,$)}static $(){return["ReadCanvasArgs|1 canvas_id 9?|2 url 9?"]}};fX=class fX extends M0{constructor(Z){super();this.canvasId="",this.url="",this.source="",_.util.initPartial(Z,this)}static fromBinary(Z,$){return new fX().fromBinary(Z,$)}static fromJson(Z,$){return new fX().fromJson(Z,$)}static fromJsonString(Z,$){return new fX().fromJsonString(Z,$)}static equals(Z,$){return _.util.equals(fX,Z,$)}static $(){return["ReadCanvasSuccess|1 canvas_id 9|2 title 9?|3 url 9|4 source 9"]}};VX=class VX extends M0{constructor(Z){super();this.reason=NG.UNSPECIFIED,_.util.initPartial(Z,this)}static fromBinary(Z,$){return new VX().fromBinary(Z,$)}static fromJson(Z,$){return new VX().fromJson(Z,$)}static fromJsonString(Z,$){return new VX().fromJsonString(Z,$)}static equals(Z,$){return _.util.equals(VX,Z,$)}static $(){return["ReadCanvasFailure|1 reason #0|2 detail 9?",NG]}};AX=class AX extends M0{constructor(Z){super();this.result={case:void 0},_.util.initPartial(Z,this)}static fromBinary(Z,$){return new AX().fromBinary(Z,$)}static fromJson(Z,$){return new AX().fromJson(Z,$)}static fromJsonString(Z,$){return new AX().fromJsonString(Z,$)}static equals(Z,$){return _.util.equals(AX,Z,$)}static $(){return["ReadCanvasResult|1 success #0 result|2 failure #1 result",fX,VX]}};S$=class S$ extends M0{constructor(Z){super();_.util.initPartial(Z,this)}static fromBinary(Z,$){return new S$().fromBinary(Z,$)}static fromJson(Z,$){return new S$().fromJson(Z,$)}static fromJsonString(Z,$){return new S$().fromJsonString(Z,$)}static equals(Z,$){return _.util.equals(S$,Z,$)}static $(){return["ReadCanvasToolCall|1 args #0|2 result #1",EX,AX]}}});import{Message as js,proto3 as R0}from"@bufbuild/protobuf";var DT="agent.v1.",b$,MX,xX,TX,CX,hX,g$;var FG=O(()=>{A();b$=class b$ extends G{static get runtime(){return F(this,"runtime",R0)}static $p(){return DT}};MX=class MX extends b${constructor(Z){super();this.prompt="",this.referenceImagePaths=[],this.keyframes=[],R0.util.initPartial(Z,this)}static fromBinary(Z,$){return new MX().fromBinary(Z,$)}static fromJson(Z,$){return new MX().fromJson(Z,$)}static fromJsonString(Z,$){return new MX().fromJsonString(Z,$)}static equals(Z,$){return R0.util.equals(MX,Z,$)}static $(){return["GenerateVideoArgs|1 prompt 9|2 file_path 9?|3 image_path 9?|4 reference_image_paths 9*|5 duration_seconds 13?|6 aspect_ratio 9?|7 resolution 9?|8 last_frame_path 9?|9 keyframes #0*",xX]}};xX=class xX extends b${constructor(Z){super();this.imagePath="",this.timestampSeconds=0,R0.util.initPartial(Z,this)}static fromBinary(Z,$){return new xX().fromBinary(Z,$)}static fromJson(Z,$){return new xX().fromJson(Z,$)}static fromJsonString(Z,$){return new xX().fromJsonString(Z,$)}static equals(Z,$){return R0.util.equals(xX,Z,$)}static $(){return["GenerateVideoKeyframe|1 image_path 9|2 timestamp_seconds 1"]}};TX=class TX extends b${constructor(Z){super();this.result={case:void 0},R0.util.initPartial(Z,this)}static fromBinary(Z,$){return new TX().fromBinary(Z,$)}static fromJson(Z,$){return new TX().fromJson(Z,$)}static fromJsonString(Z,$){return new TX().fromJsonString(Z,$)}static equals(Z,$){return R0.util.equals(TX,Z,$)}static $(){return["GenerateVideoResult|1 success #0 result|2 error #1 result",CX,hX]}};CX=class CX extends b${constructor(Z){super();this.filePath="",this.durationSeconds=0,R0.util.initPartial(Z,this)}static fromBinary(Z,$){return new CX().fromBinary(Z,$)}static fromJson(Z,$){return new CX().fromJson(Z,$)}static fromJsonString(Z,$){return new CX().fromJsonString(Z,$)}static equals(Z,$){return R0.util.equals(CX,Z,$)}static $(){return["GenerateVideoSuccess|1 file_path 9|2 duration_seconds 13"]}};hX=class hX extends b${constructor(Z){super();this.error="",R0.util.initPartial(Z,this)}static fromBinary(Z,$){return new hX().fromBinary(Z,$)}static fromJson(Z,$){return new hX().fromJson(Z,$)}static fromJsonString(Z,$){return new hX().fromJsonString(Z,$)}static equals(Z,$){return R0.util.equals(hX,Z,$)}static $(){return["GenerateVideoError|1 error 9"]}};g$=class g$ extends b${constructor(Z){super();R0.util.initPartial(Z,this)}static fromBinary(Z,$){return new g$().fromBinary(Z,$)}static fromJson(Z,$){return new g$().fromJson(Z,$)}static fromJsonString(Z,$){return new g$().fromJsonString(Z,$)}static equals(Z,$){return R0.util.equals(g$,Z,$)}static $(){return["GenerateVideoToolCall|1 args #0|2 result #1",MX,TX]}}});import{Message as bs,proto3 as O0}from"@bufbuild/protobuf";var wT="agent.v1.",Y6,RX,vX,yX,mX,jX,_X,c$;var GG=O(()=>{A();Y6=class Y6 extends G{static get runtime(){return F(this,"runtime",O0)}static $p(){return wT}};RX=class RX extends Y6{constructor(Z){super();this.query="",this.allowedXHandles=[],this.excludedXHandles=[],O0.util.initPartial(Z,this)}static fromBinary(Z,$){return new RX().fromBinary(Z,$)}static fromJson(Z,$){return new RX().fromJson(Z,$)}static fromJsonString(Z,$){return new RX().fromJsonString(Z,$)}static equals(Z,$){return O0.util.equals(RX,Z,$)}static $(){return["XSearchArgs|1 query 9|2 from_date 9?|3 to_date 9?|4 allowed_x_handles 9*|5 excluded_x_handles 9*"]}};vX=class vX extends Y6{constructor(Z){super();this.result={case:void 0},O0.util.initPartial(Z,this)}static fromBinary(Z,$){return new vX().fromBinary(Z,$)}static fromJson(Z,$){return new vX().fromJson(Z,$)}static fromJsonString(Z,$){return new vX().fromJsonString(Z,$)}static equals(Z,$){return O0.util.equals(vX,Z,$)}static $(){return["XSearchResult|1 success #0 result|2 error #1 result|3 rejected #2 result",yX,jX,_X]}};yX=class yX extends Y6{constructor(Z){super();this.answer="",this.citations=[],O0.util.initPartial(Z,this)}static fromBinary(Z,$){return new yX().fromBinary(Z,$)}static fromJson(Z,$){return new yX().fromJson(Z,$)}static fromJsonString(Z,$){return new yX().fromJsonString(Z,$)}static equals(Z,$){return O0.util.equals(yX,Z,$)}static $(){return["XSearchSuccess|1 answer 9|2 citations #0*",mX]}};mX=class mX extends Y6{constructor(Z){super();this.url="",this.title="",O0.util.initPartial(Z,this)}static fromBinary(Z,$){return new mX().fromBinary(Z,$)}static fromJson(Z,$){return new mX().fromJson(Z,$)}static fromJsonString(Z,$){return new mX().fromJsonString(Z,$)}static equals(Z,$){return O0.util.equals(mX,Z,$)}static $(){return["XSearchCitation|1 url 9|2 title 9"]}};jX=class jX extends Y6{constructor(Z){super();this.error="",O0.util.initPartial(Z,this)}static fromBinary(Z,$){return new jX().fromBinary(Z,$)}static fromJson(Z,$){return new jX().fromJson(Z,$)}static fromJsonString(Z,$){return new jX().fromJsonString(Z,$)}static equals(Z,$){return O0.util.equals(jX,Z,$)}static $(){return["XSearchError|1 error 9"]}};_X=class _X extends Y6{constructor(Z){super();this.reason="",O0.util.initPartial(Z,this)}static fromBinary(Z,$){return new _X().fromBinary(Z,$)}static fromJson(Z,$){return new _X().fromJson(Z,$)}static fromJsonString(Z,$){return new _X().fromJsonString(Z,$)}static equals(Z,$){return O0.util.equals(_X,Z,$)}static $(){return["XSearchRejected|1 reason 9"]}};c$=class c$ extends Y6{constructor(Z){super();O0.util.initPartial(Z,this)}static fromBinary(Z,$){return new c$().fromBinary(Z,$)}static fromJson(Z,$){return new c$().fromJson(Z,$)}static fromJsonString(Z,$){return new c$().fromJsonString(Z,$)}static equals(Z,$){return O0.util.equals(c$,Z,$)}static $(){return["XSearchToolCall|1 args #0|2 result #1",RX,vX]}}});import{Message as ls,proto3 as v0,protoInt64 as UT}from"@bufbuild/protobuf";var OT="agent.v1.",u$,SX,gX,bX,cX,dX,d$;var LG=O(()=>{A();u$=class u$ extends G{static get runtime(){return F(this,"runtime",v0)}static $p(){return OT}};SX=class SX extends u${constructor(Z){super();this.toolCallId="",v0.util.initPartial(Z,this)}static fromBinary(Z,$){return new SX().fromBinary(Z,$)}static fromJson(Z,$){return new SX().fromJson(Z,$)}static fromJsonString(Z,$){return new SX().fromJsonString(Z,$)}static equals(Z,$){return v0.util.equals(SX,Z,$)}static $(){return["GetPrCodeTourArgs|1 tool_call_id 9|2 revision_id 9?|3 section_id 9?|4 head_sha 9?|5 pr_url 9?"]}};gX=class gX extends u${constructor(Z){super();this.revisionId="",this.status="",this.headSha="",this.feedback="",this.updatedAtMs=UT.zero,this.isCurrent=!1,this.markdown="",this.source="",this.prUrl="",this.editedByBcId="",v0.util.initPartial(Z,this)}static fromBinary(Z,$){return new gX().fromBinary(Z,$)}static fromJson(Z,$){return new gX().fromJson(Z,$)}static fromJsonString(Z,$){return new gX().fromJsonString(Z,$)}static equals(Z,$){return v0.util.equals(gX,Z,$)}static $(){return["PrCodeTourRevisionSnapshot|1 revision_id 9|2 status 9|3 head_sha 9|4 feedback 9|5 updated_at_ms 3|6 is_current 8|7 markdown 9|8 source 9|9 pr_url 9|10 edited_by_bc_id 9"]}};bX=class bX extends u${constructor(Z){super();this.revisions=[],v0.util.initPartial(Z,this)}static fromBinary(Z,$){return new bX().fromBinary(Z,$)}static fromJson(Z,$){return new bX().fromJson(Z,$)}static fromJsonString(Z,$){return new bX().fromJsonString(Z,$)}static equals(Z,$){return v0.util.equals(bX,Z,$)}static $(){return["GetPrCodeTourSuccess|1 revisions #0*|2 section_id 9?",gX]}};cX=class cX extends u${constructor(Z){super();this.error="",v0.util.initPartial(Z,this)}static fromBinary(Z,$){return new cX().fromBinary(Z,$)}static fromJson(Z,$){return new cX().fromJson(Z,$)}static fromJsonString(Z,$){return new cX().fromJsonString(Z,$)}static equals(Z,$){return v0.util.equals(cX,Z,$)}static $(){return["GetPrCodeTourError|1 error 9"]}};dX=class dX extends u${constructor(Z){super();this.result={case:void 0},v0.util.initPartial(Z,this)}static fromBinary(Z,$){return new dX().fromBinary(Z,$)}static fromJson(Z,$){return new dX().fromJson(Z,$)}static fromJsonString(Z,$){return new dX().fromJsonString(Z,$)}static equals(Z,$){return v0.util.equals(dX,Z,$)}static $(){return["GetPrCodeTourResult|1 success #0 result|2 error #1 result",bX,cX]}};d$=class d$ extends u${constructor(Z){super();v0.util.initPartial(Z,this)}static fromBinary(Z,$){return new d$().fromBinary(Z,$)}static fromJson(Z,$){return new d$().fromJson(Z,$)}static fromJsonString(Z,$){return new d$().fromJsonString(Z,$)}static equals(Z,$){return v0.util.equals(d$,Z,$)}static $(){return["GetPrCodeTourToolCall|1 args #0|2 result #1",SX,dX]}}});import{Message as rs,proto3 as g0}from"@bufbuild/protobuf";var wG="agent.v1.",nX,DG,uX,lX,pX,iX,l$;var UG=O(()=>{A();nX=class nX extends G{static get runtime(){return F(this,"runtime",g0)}static $p(){return wG}};DG=D(g0,wG,"UpdatePrCodeTourExecutionMode",[[0,"UNSPECIFIED"],[1,"SERVER_SCHEDULED"],[2,"CLIENT_REQUIRED"],[3,"SKIPPED"],[4,"EDITED"]],1);uX=class uX extends nX{constructor(Z){super();this.feedback="",this.toolCallId="",this.scopeCommitHashes=[],g0.util.initPartial(Z,this)}static fromBinary(Z,$){return new uX().fromBinary(Z,$)}static fromJson(Z,$){return new uX().fromJson(Z,$)}static fromJsonString(Z,$){return new uX().fromJsonString(Z,$)}static equals(Z,$){return g0.util.equals(uX,Z,$)}static $(){return["UpdatePrCodeTourArgs|1 feedback 9|2 tool_call_id 9|3 base_sha 9?|4 head_sha 9?|5 source_revision_id 9?|6 revision_id 9?|7 markdown 9?|8 heading 9?|9 artifact_path 9?|10 artifact_alt 9?|11 scope_commit_hashes 9*|12 explicit_user_prompt 9?|13 pr_url 9?"]}};lX=class lX extends nX{constructor(Z){super();this.result={case:void 0},g0.util.initPartial(Z,this)}static fromBinary(Z,$){return new lX().fromBinary(Z,$)}static fromJson(Z,$){return new lX().fromJson(Z,$)}static fromJsonString(Z,$){return new lX().fromJsonString(Z,$)}static equals(Z,$){return g0.util.equals(lX,Z,$)}static $(){return["UpdatePrCodeTourResult|1 success #0 result|2 error #1 result",pX,iX]}};pX=class pX extends nX{constructor(Z){super();this.revisionId="",this.message="",this.executionMode=DG.UNSPECIFIED,g0.util.initPartial(Z,this)}static fromBinary(Z,$){return new pX().fromBinary(Z,$)}static fromJson(Z,$){return new pX().fromJson(Z,$)}static fromJsonString(Z,$){return new pX().fromJsonString(Z,$)}static equals(Z,$){return g0.util.equals(pX,Z,$)}static $(){return["UpdatePrCodeTourSuccess|1 revision_id 9|2 message 9|3 execution_mode #0",DG]}};iX=class iX extends nX{constructor(Z){super();this.error="",g0.util.initPartial(Z,this)}static fromBinary(Z,$){return new iX().fromBinary(Z,$)}static fromJson(Z,$){return new iX().fromJson(Z,$)}static fromJsonString(Z,$){return new iX().fromJsonString(Z,$)}static equals(Z,$){return g0.util.equals(iX,Z,$)}static $(){return["UpdatePrCodeTourError|1 error 9"]}};l$=class l$ extends nX{constructor(Z){super();g0.util.initPartial(Z,this)}static fromBinary(Z,$){return new l$().fromBinary(Z,$)}static fromJson(Z,$){return new l$().fromJson(Z,$)}static fromJsonString(Z,$){return new l$().fromJsonString(Z,$)}static equals(Z,$){return g0.util.equals(l$,Z,$)}static $(){return["UpdatePrCodeTourToolCall|1 args #0|2 result #1",uX,lX]}}});import{Message as os,proto3 as hW}from"@bufbuild/protobuf";var IT="agent.v1.",OG,p$;var IG=O(()=>{A();OG=class OG extends G{static get runtime(){return F(this,"runtime",hW)}static $p(){return IT}};p$=class p$ extends OG{constructor(Z){super();this.fullPath="",this.content="",this.description="",this.environments=[],this.disabledEnvironments=[],this.disableModelInvocation=!1,this.globs=[],this.scopedTo=[],this.argumentHint="",this.disableUserInvocation=!1,hW.util.initPartial(Z,this)}static fromBinary(Z,$){return new p$().fromBinary(Z,$)}static fromJson(Z,$){return new p$().fromJson(Z,$)}static fromJsonString(Z,$){return new p$().fromJsonString(Z,$)}static equals(Z,$){return hW.util.equals(p$,Z,$)}static $(){return["AgentSkill|1 full_path 9|2 content 9|3 description 9|4 parse_error 9?|5 environments 9*|6 disabled_environments 9*|7 git_remote_origin 9?|8 disable_model_invocation 8|9 plugin 9?|10 marketplace 9?|11 plugin_id 9?|12 marketplace_id 9?|13 globs 9*|14 scoped_to 9*|15 argument_hint 9|16 disable_user_invocation 8"]}}});import{Message as Jt,proto3 as I,protoInt64 as kG}from"@bufbuild/protobuf";var EG="agent.v1.",x,PG,rX,aX,sX,X6,tX,oX,eX,Zz,$z,Jz,Yz,Xz,zz,Kz,Qz,Hz,Wz,qz,Nz,Bz,Fz,Gz,Lz,Dz,wz,Uz,Oz,Iz,kz,Pz,Ez,fz,Vz,Az,Mz,xz,Tz,Cz,hz,Rz,vz,yz,mz,jz,i$,_z,Sz,gz,bz,cz,dz,uz,lz,pz;var fG=O(()=>{P6();UW();DW();IG();A();x=class x extends G{static get runtime(){return F(this,"runtime",I)}static $p(){return EG}};PG=D(I,EG,"SelectedPluginCapabilityType",[[0,"UNSPECIFIED"],[1,"COMMAND"],[2,"SKILL"],[3,"SUBAGENT"]],1);rX=class rX extends x{constructor(Z){super();this.dataOrBlobId={case:void 0},this.uuid="",this.path="",this.mimeType="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new rX().fromBinary(Z,$)}static fromJson(Z,$){return new rX().fromJson(Z,$)}static fromJsonString(Z,$){return new rX().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(rX,Z,$)}static $(){return["SelectedImage|1 blob_id 12 data_or_blob_id|8 data 12 data_or_blob_id|9 blob_id_with_data #0 data_or_blob_id|10 prompt_upload_ref #1 data_or_blob_id|2 uuid 9|3 path 9|4 dimension #2|7 mime_type 9",aX,X6,sX]}};aX=class aX extends x{constructor(Z){super();this.blobId=new Uint8Array(0),this.data=new Uint8Array(0),I.util.initPartial(Z,this)}static fromBinary(Z,$){return new aX().fromBinary(Z,$)}static fromJson(Z,$){return new aX().fromJson(Z,$)}static fromJsonString(Z,$){return new aX().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(aX,Z,$)}static $(){return["SelectedImage.BlobIdWithData|1 blob_id 12|2 data 12"]}};sX=class sX extends x{constructor(Z){super();this.width=0,this.height=0,I.util.initPartial(Z,this)}static fromBinary(Z,$){return new sX().fromBinary(Z,$)}static fromJson(Z,$){return new sX().fromJson(Z,$)}static fromJsonString(Z,$){return new sX().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(sX,Z,$)}static $(){return["SelectedImage.Dimension|1 width 5|2 height 5"]}};X6=class X6 extends x{constructor(Z){super();this.uploadId="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new X6().fromBinary(Z,$)}static fromJson(Z,$){return new X6().fromJson(Z,$)}static fromJsonString(Z,$){return new X6().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(X6,Z,$)}static $(){return["PromptUploadRef|1 upload_id 9"]}};tX=class tX extends x{constructor(Z){super();this.dataOrBlobId={case:void 0},this.uuid="",this.filename="",this.mimeType="",this.path="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new tX().fromBinary(Z,$)}static fromJson(Z,$){return new tX().fromJson(Z,$)}static fromJsonString(Z,$){return new tX().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(tX,Z,$)}static $(){return["SelectedDocument|1 blob_id 12 data_or_blob_id|8 data 12 data_or_blob_id|9 blob_id_with_data #0 data_or_blob_id|10 prompt_upload_ref #1 data_or_blob_id|2 uuid 9|3 filename 9|4 mime_type 9|7 path 9",oX,X6]}};oX=class oX extends x{constructor(Z){super();this.blobId=new Uint8Array(0),this.data=new Uint8Array(0),I.util.initPartial(Z,this)}static fromBinary(Z,$){return new oX().fromBinary(Z,$)}static fromJson(Z,$){return new oX().fromJson(Z,$)}static fromJsonString(Z,$){return new oX().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(oX,Z,$)}static $(){return["SelectedDocument.BlobIdWithData|1 blob_id 12|2 data 12"]}};eX=class eX extends x{constructor(Z){super();this.dataOrBlobId={case:void 0},this.uuid="",this.path="",this.mimeType="",this.filename="",this.materializeToFilesystem=!1,I.util.initPartial(Z,this)}static fromBinary(Z,$){return new eX().fromBinary(Z,$)}static fromJson(Z,$){return new eX().fromJson(Z,$)}static fromJsonString(Z,$){return new eX().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(eX,Z,$)}static $(){return["SelectedVideo|1 blob_id 12 data_or_blob_id|8 data 12 data_or_blob_id|9 blob_id_with_data #0 data_or_blob_id|11 signed_url #1 data_or_blob_id|13 prompt_upload_ref #2 data_or_blob_id|2 uuid 9|3 path 9|4 fps 2?|7 mime_type 9|10 filename 9|12 materialize_to_filesystem 8",Zz,$z,X6]}};Zz=class Zz extends x{constructor(Z){super();this.blobId=new Uint8Array(0),this.data=new Uint8Array(0),I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Zz().fromBinary(Z,$)}static fromJson(Z,$){return new Zz().fromJson(Z,$)}static fromJsonString(Z,$){return new Zz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Zz,Z,$)}static $(){return["SelectedVideo.BlobIdWithData|1 blob_id 12|2 data 12"]}};$z=class $z extends x{constructor(Z){super();this.url="",this.key="",this.expiresAtUnixMs=kG.zero,this.refreshAfterUnixMs=kG.zero,this.conversationId="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new $z().fromBinary(Z,$)}static fromJson(Z,$){return new $z().fromJson(Z,$)}static fromJsonString(Z,$){return new $z().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals($z,Z,$)}static $(){return["SelectedVideo.SignedUrl|1 url 9|2 key 9|3 expires_at_unix_ms 3|4 refresh_after_unix_ms 3|5 conversation_id 9"]}};Jz=class Jz extends x{constructor(Z){super();this.dataOrBlobId={case:void 0},I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Jz().fromBinary(Z,$)}static fromJson(Z,$){return new Jz().fromJson(Z,$)}static fromJsonString(Z,$){return new Jz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Jz,Z,$)}static $(){return["ExtraContextEntry|1 data 9 data_or_blob_id|2 blob_id 12 data_or_blob_id"]}};Yz=class Yz extends x{constructor(Z){super();this.content="",this.path="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Yz().fromBinary(Z,$)}static fromJson(Z,$){return new Yz().fromJson(Z,$)}static fromJsonString(Z,$){return new Yz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Yz,Z,$)}static $(){return["SelectedFile|1 content 9|2 path 9|3 relative_path 9?"]}};Xz=class Xz extends x{constructor(Z){super();this.content="",this.path="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Xz().fromBinary(Z,$)}static fromJson(Z,$){return new Xz().fromJson(Z,$)}static fromJsonString(Z,$){return new Xz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Xz,Z,$)}static $(){return["SelectedCodeSelection|1 content 9|2 path 9|3 relative_path 9?|4 range #0",d8]}};zz=class zz extends x{constructor(Z){super();this.content="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new zz().fromBinary(Z,$)}static fromJson(Z,$){return new zz().fromJson(Z,$)}static fromJsonString(Z,$){return new zz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(zz,Z,$)}static $(){return["SelectedTerminal|1 content 9|2 title 9?|3 path 9?"]}};Kz=class Kz extends x{constructor(Z){super();this.content="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Kz().fromBinary(Z,$)}static fromJson(Z,$){return new Kz().fromJson(Z,$)}static fromJsonString(Z,$){return new Kz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Kz,Z,$)}static $(){return["SelectedTerminalSelection|1 content 9|2 title 9?|3 path 9?|4 range #0",d8]}};Qz=class Qz extends x{constructor(Z){super();this.path="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Qz().fromBinary(Z,$)}static fromJson(Z,$){return new Qz().fromJson(Z,$)}static fromJsonString(Z,$){return new Qz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Qz,Z,$)}static $(){return["SelectedFolder|1 path 9|2 relative_path 9?|3 directory_tree #0",L8]}};Hz=class Hz extends x{constructor(Z){super();this.url="",this.uuid="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Hz().fromBinary(Z,$)}static fromJson(Z,$){return new Hz().fromJson(Z,$)}static fromJsonString(Z,$){return new Hz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Hz,Z,$)}static $(){return["SelectedExternalLink|1 url 9|2 uuid 9|3 pdf_content 9?|4 is_pdf 8?|5 filename 9?|6 blob_id 12?"]}};Wz=class Wz extends x{constructor(Z){super();I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Wz().fromBinary(Z,$)}static fromJson(Z,$){return new Wz().fromJson(Z,$)}static fromJsonString(Z,$){return new Wz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Wz,Z,$)}static $(){return["SelectedCursorRule|1 rule #0",f8]}};qz=class qz extends x{constructor(Z){super();this.content="",this.fullContentLengthCharCount=0,I.util.initPartial(Z,this)}static fromBinary(Z,$){return new qz().fromBinary(Z,$)}static fromJson(Z,$){return new qz().fromJson(Z,$)}static fromJsonString(Z,$){return new qz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(qz,Z,$)}static $(){return["SelectedGitDiff|1 content 9|2 full_content_length_char_count 5"]}};Nz=class Nz extends x{constructor(Z){super();this.content="",this.fullContentLengthCharCount=0,I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Nz().fromBinary(Z,$)}static fromJson(Z,$){return new Nz().fromJson(Z,$)}static fromJsonString(Z,$){return new Nz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Nz,Z,$)}static $(){return["SelectedGitDiffFromBranchToMain|1 content 9|2 full_content_length_char_count 5"]}};Bz=class Bz extends x{constructor(Z){super();this.sha="",this.message="",this.diff="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Bz().fromBinary(Z,$)}static fromJson(Z,$){return new Bz().fromJson(Z,$)}static fromJsonString(Z,$){return new Bz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Bz,Z,$)}static $(){return["SelectedGitCommit|1 sha 9|2 message 9|3 description 9?|4 diff 9"]}};Fz=class Fz extends x{constructor(Z){super();this.number=0,this.url="",this.folderPath="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Fz().fromBinary(Z,$)}static fromJson(Z,$){return new Fz().fromJson(Z,$)}static fromJsonString(Z,$){return new Fz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Fz,Z,$)}static $(){return["SelectedPullRequest|1 number 5|2 url 9|3 title 9?|4 folder_path 9|5 summary_json 9?|6 description 9?|7 blob_id 12?"]}};Gz=class Gz extends x{constructor(Z){super();this.prUrl="",this.filePath="",this.startLine=0,this.endLine=0,I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Gz().fromBinary(Z,$)}static fromJson(Z,$){return new Gz().fromJson(Z,$)}static fromJsonString(Z,$){return new Gz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Gz,Z,$)}static $(){return["SelectedGitPRDiffSelection|1 pr_url 9|2 file_path 9|3 start_line 5|4 end_line 5|5 diff_content 9?|6 blob_id 12?"]}};Lz=class Lz extends x{constructor(Z){super();this.pluginId="",this.capabilityType=PG.UNSPECIFIED,this.sourcePath="",this.snapshotToken="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Lz().fromBinary(Z,$)}static fromJson(Z,$){return new Lz().fromJson(Z,$)}static fromJsonString(Z,$){return new Lz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Lz,Z,$)}static $(){return["SelectedPluginCapabilityRef|1 plugin_id 9|2 capability_type #0|3 source_path 9|4 snapshot_token 9|5 resolved_commit_sha 9?",PG]}};Dz=class Dz extends x{constructor(Z){super();this.name="",this.content="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Dz().fromBinary(Z,$)}static fromJson(Z,$){return new Dz().fromJson(Z,$)}static fromJsonString(Z,$){return new Dz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Dz,Z,$)}static $(){return["SelectedCursorCommand|1 name 9|2 content 9|3 plugin_capability #0?|4 full_path 9?|5 display_name 9?",Lz]}};wz=class wz extends x{constructor(Z){super();this.docId="",this.name="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new wz().fromBinary(Z,$)}static fromJson(Z,$){return new wz().fromJson(Z,$)}static fromJsonString(Z,$){return new wz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(wz,Z,$)}static $(){return["SelectedDocumentation|1 doc_id 9|2 name 9"]}};Uz=class Uz extends x{constructor(Z){super();this.agentId="",this.name="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Uz().fromBinary(Z,$)}static fromJson(Z,$){return new Uz().fromJson(Z,$)}static fromJsonString(Z,$){return new Uz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Uz,Z,$)}static $(){return["SelectedPastChat|1 agent_id 9|2 name 9"]}};Oz=class Oz extends x{constructor(Z){super();this.name="",this.path="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Oz().fromBinary(Z,$)}static fromJson(Z,$){return new Oz().fromJson(Z,$)}static fromJsonString(Z,$){return new Oz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Oz,Z,$)}static $(){return["RecentAgent|1 name 9|2 path 9|3 overview 9?"]}};Iz=class Iz extends x{constructor(Z){super();this.recentAgents=[],I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Iz().fromBinary(Z,$)}static fromJson(Z,$){return new Iz().fromJson(Z,$)}static fromJsonString(Z,$){return new Iz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Iz,Z,$)}static $(){return["RecentAgentsContext|1 recent_agents #0*",Oz]}};kz=class kz extends x{constructor(Z){super();I.util.initPartial(Z,this)}static fromBinary(Z,$){return new kz().fromBinary(Z,$)}static fromJson(Z,$){return new kz().fromJson(Z,$)}static fromJsonString(Z,$){return new kz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(kz,Z,$)}static $(){return["CallFrame|1 function_name 9?|2 url 9?|3 line_number 5?|4 column_number 5?"]}};Pz=class Pz extends x{constructor(Z){super();this.callFrames=[],I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Pz().fromBinary(Z,$)}static fromJson(Z,$){return new Pz().fromJson(Z,$)}static fromJsonString(Z,$){return new Pz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Pz,Z,$)}static $(){return["StackTrace|1 call_frames #0*|2 raw_stack_trace 9?",kz]}};Ez=class Ez extends x{constructor(Z){super();this.message="",this.timestamp=0,this.level="",this.clientName="",this.sessionId="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Ez().fromBinary(Z,$)}static fromJson(Z,$){return new Ez().fromJson(Z,$)}static fromJsonString(Z,$){return new Ez().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Ez,Z,$)}static $(){return["SelectedConsoleLog|1 message 9|2 timestamp 1|3 level 9|4 client_name 9|5 session_id 9|6 stack_trace #0?|7 object_data_json 9?",Pz]}};fz=class fz extends x{constructor(Z){super();this.element="",this.xpath="",this.textContent="",this.extra="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new fz().fromBinary(Z,$)}static fromJson(Z,$){return new fz().fromJson(Z,$)}static fromJsonString(Z,$){return new fz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(fz,Z,$)}static $(){return["SelectedUIElement|1 element 9|2 xpath 9|3 text_content 9|4 extra 9|5 component 9?|6 component_props_json 9?"]}};Vz=class Vz extends x{constructor(Z){super();this.name="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Vz().fromBinary(Z,$)}static fromJson(Z,$){return new Vz().fromJson(Z,$)}static fromJsonString(Z,$){return new Vz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Vz,Z,$)}static $(){return["SelectedSubagent|1 name 9"]}};Az=class Az extends x{constructor(Z){super();this.browserId="",this.url="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Az().fromBinary(Z,$)}static fromJson(Z,$){return new Az().fromJson(Z,$)}static fromJsonString(Z,$){return new Az().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Az,Z,$)}static $(){return["SelectedBrowser|1 browser_id 9|2 url 9|3 page_title 9?"]}};Mz=class Mz extends x{constructor(Z){super();this.filesToCommit=[],this.filesToExcludeFromCommit=[],this.shouldStageAllChanges=!1,this.filesToCommitWithStatus=[],this.filesToExcludeFromCommitWithStatus=[],I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Mz().fromBinary(Z,$)}static fromJson(Z,$){return new Mz().fromJson(Z,$)}static fromJsonString(Z,$){return new Mz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Mz,Z,$)}static $(){return["SelectedAgenticGitActionCommitParams|1 files_to_commit 9*|2 files_to_exclude_from_commit 9*|3 should_stage_all_changes 8|4 create_pr_draft 8?|5 files_to_commit_with_status #0*|6 files_to_exclude_from_commit_with_status #0*",Tz]}};xz=class xz extends x{constructor(Z){super();I.util.initPartial(Z,this)}static fromBinary(Z,$){return new xz().fromBinary(Z,$)}static fromJson(Z,$){return new xz().fromJson(Z,$)}static fromJsonString(Z,$){return new xz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(xz,Z,$)}static $(){return["SelectedAgenticGitActionCreateBranchParams"]}};Tz=class Tz extends x{constructor(Z){super();this.path="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Tz().fromBinary(Z,$)}static fromJson(Z,$){return new Tz().fromJson(Z,$)}static fromJsonString(Z,$){return new Tz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Tz,Z,$)}static $(){return["SelectedAgenticGitFileWithStatus|1 path 9|2 status 9?"]}};Cz=class Cz extends x{constructor(Z){super();this.filesToPush=[],I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Cz().fromBinary(Z,$)}static fromJson(Z,$){return new Cz().fromJson(Z,$)}static fromJsonString(Z,$){return new Cz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Cz,Z,$)}static $(){return["SelectedAgenticGitActionPushParams|1 files_to_push 9*|2 create_pr_draft 8?"]}};hz=class hz extends x{constructor(Z){super();I.util.initPartial(Z,this)}static fromBinary(Z,$){return new hz().fromBinary(Z,$)}static fromJson(Z,$){return new hz().fromJson(Z,$)}static fromJsonString(Z,$){return new hz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(hz,Z,$)}static $(){return["SelectedAgenticGitActionFixMergeConflictsParams|1 base_branch 9?|2 pr_url 9?"]}};Rz=class Rz extends x{constructor(Z){super();I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Rz().fromBinary(Z,$)}static fromJson(Z,$){return new Rz().fromJson(Z,$)}static fromJsonString(Z,$){return new Rz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Rz,Z,$)}static $(){return["SelectedAgenticGitActionBabysitPrInCloudParams|1 base_branch 9?"]}};vz=class vz extends x{constructor(Z){super();I.util.initPartial(Z,this)}static fromBinary(Z,$){return new vz().fromBinary(Z,$)}static fromJson(Z,$){return new vz().fromJson(Z,$)}static fromJsonString(Z,$){return new vz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(vz,Z,$)}static $(){return["SelectedAgenticGitActionUpdateBranchParams|1 base_branch 9?"]}};yz=class yz extends x{constructor(Z){super();this.remoteBranch="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new yz().fromBinary(Z,$)}static fromJson(Z,$){return new yz().fromJson(Z,$)}static fromJsonString(Z,$){return new yz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(yz,Z,$)}static $(){return["SelectedAgenticGitActionPullLocallyParams|1 remote_branch 9"]}};mz=class mz extends x{constructor(Z){super();this.params={case:void 0},I.util.initPartial(Z,this)}static fromBinary(Z,$){return new mz().fromBinary(Z,$)}static fromJson(Z,$){return new mz().fromJson(Z,$)}static fromJsonString(Z,$){return new mz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(mz,Z,$)}static $(){return["SelectedAgenticGitAction|2 commit_params #0 params|6 commit_and_push_params #0 params|3 push_params #1 params|7 create_pr_params #1 params|8 create_pr_with_changes_params #0 params|4 fix_merge_conflicts_params #2 params|11 babysit_pr_in_cloud_params #3 params|14 apply_locally_params #4 params|15 checkout_branch_params #4 params|12 create_branch_and_commit_params #0 params|13 create_branch_commit_and_push_params #0 params|16 update_branch_params #5 params|17 create_branch_params #6 params|5 branch_context #7?|9 path_to_template_file 9?|10 path_to_template_dir 9?",Mz,Cz,hz,Rz,yz,vz,xz,jz]}};jz=class jz extends x{constructor(Z){super();I.util.initPartial(Z,this)}static fromBinary(Z,$){return new jz().fromBinary(Z,$)}static fromJson(Z,$){return new jz().fromJson(Z,$)}static fromJsonString(Z,$){return new jz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(jz,Z,$)}static $(){return["SelectedGitBranchContext|1 current_branch 9?|2 base_branch 9?|3 agent_branch_prefix 9?"]}};i$=class i$ extends x{constructor(Z){super();this.selectedImages=[],this.extraContext=[],this.extraContextEntries=[],this.files=[],this.codeSelections=[],this.terminals=[],this.terminalSelections=[],this.folders=[],this.externalLinks=[],this.cursorRules=[],this.cursorCommands=[],this.documentations=[],this.uiElements=[],this.consoleLogs=[],this.gitCommits=[],this.pastChats=[],this.gitPrDiffSelections=[],this.selectedPullRequests=[],this.selectedSubagents=[],this.selectedVideos=[],this.selectedBrowsers=[],this.selectedDocuments=[],this.selectedSkills=[],I.util.initPartial(Z,this)}static fromBinary(Z,$){return new i$().fromBinary(Z,$)}static fromJson(Z,$){return new i$().fromJson(Z,$)}static fromJsonString(Z,$){return new i$().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(i$,Z,$)}static $(){return["SelectedContext|1 selected_images #0*|2 invocation_context #1?|3 extra_context 9*|16 extra_context_entries #2*|4 files #3*|5 code_selections #4*|6 terminals #5*|7 terminal_selections #6*|8 folders #7*|9 external_links #8*|10 cursor_rules #9*|18 git_diff #10?|11 git_diff_from_branch_to_main #11?|12 cursor_commands #12*|13 documentations #13*|14 ui_elements #14*|15 console_logs #15*|17 git_commits #16*|19 past_chats #17*|20 git_pr_diff_selections #18*|21 selected_pull_requests #19*|22 selected_subagents #20*|23 selected_videos #21*|24 selected_browsers #22*|25 selected_documents #23*|26 selected_skills #24*|27 recent_agents_context #25?|34 selected_agentic_git_action #26?",rX,_z,Jz,Yz,Xz,zz,Kz,Qz,Hz,Wz,qz,Nz,Dz,wz,fz,Ez,Bz,Uz,Gz,Fz,Vz,eX,Az,tX,p$,Iz,mz]}};_z=class _z extends x{constructor(Z){super();this.data={case:void 0},I.util.initPartial(Z,this)}static fromBinary(Z,$){return new _z().fromBinary(Z,$)}static fromJson(Z,$){return new _z().fromJson(Z,$)}static fromJsonString(Z,$){return new _z().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(_z,Z,$)}static $(){return["InvocationContext|1 slack_thread #0 data|2 github_pr #1 data|3 ide_state #2 data|4 microsoft_teams_thread #3 data|10 blob_id 12 data",Sz,bz,dz,gz]}};Sz=class Sz extends x{constructor(Z){super();this.thread="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Sz().fromBinary(Z,$)}static fromJson(Z,$){return new Sz().fromJson(Z,$)}static fromJsonString(Z,$){return new Sz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Sz,Z,$)}static $(){return["InvocationContext.SlackThread|1 thread 9|2 channel_name 9?|3 channel_purpose 9?|4 channel_topic 9?|5 sender_name 9?|6 sender_id 9?|7 sender_type 9?|8 is_directly_addressed 8?|9 message_permalink 9?"]}};gz=class gz extends x{constructor(Z){super();this.thread="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new gz().fromBinary(Z,$)}static fromJson(Z,$){return new gz().fromJson(Z,$)}static fromJsonString(Z,$){return new gz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(gz,Z,$)}static $(){return["InvocationContext.MicrosoftTeamsThread|1 thread 9|2 channel_name 9?|3 team_name 9?|4 channel_description 9?|5 team_description 9?"]}};bz=class bz extends x{constructor(Z){super();this.title="",this.description="",this.comments="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new bz().fromBinary(Z,$)}static fromJson(Z,$){return new bz().fromJson(Z,$)}static fromJsonString(Z,$){return new bz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(bz,Z,$)}static $(){return["InvocationContext.GithubPR|1 title 9|2 description 9|3 comments 9|4 ci_failures 9?|5 code_tour_view #0?",cz]}};cz=class cz extends x{constructor(Z){super();this.headSha="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new cz().fromBinary(Z,$)}static fromJson(Z,$){return new cz().fromJson(Z,$)}static fromJsonString(Z,$){return new cz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(cz,Z,$)}static $(){return["InvocationContext.GithubPR.CodeTourView|1 head_sha 9|2 current_revision_id 9?|3 visible_section_id 9?|4 visible_step_id 9?|5 path_scope_prefix 9?"]}};dz=class dz extends x{constructor(Z){super();this.visibleFiles=[],this.recentlyViewedFiles=[],this.currentlyViewedPrs=[],I.util.initPartial(Z,this)}static fromBinary(Z,$){return new dz().fromBinary(Z,$)}static fromJson(Z,$){return new dz().fromJson(Z,$)}static fromJsonString(Z,$){return new dz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(dz,Z,$)}static $(){return["InvocationContext.IdeState|1 visible_files #0*|2 recently_viewed_files #0*|3 currently_viewed_prs #1*",uz,pz]}};uz=class uz extends x{constructor(Z){super();this.path="",this.totalLines=0,I.util.initPartial(Z,this)}static fromBinary(Z,$){return new uz().fromBinary(Z,$)}static fromJson(Z,$){return new uz().fromJson(Z,$)}static fromJsonString(Z,$){return new uz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(uz,Z,$)}static $(){return["InvocationContext.IdeState.File|1 path 9|2 relative_path 9?|3 cursor_position #0?|4 total_lines 5|5 active_command 9?",lz]}};lz=class lz extends x{constructor(Z){super();this.line=0,this.text="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new lz().fromBinary(Z,$)}static fromJson(Z,$){return new lz().fromJson(Z,$)}static fromJsonString(Z,$){return new lz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(lz,Z,$)}static $(){return["InvocationContext.IdeState.File.CursorPosition|1 line 5|2 text 9"]}};pz=class pz extends x{constructor(Z){super();this.number=0,this.url="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new pz().fromBinary(Z,$)}static fromJson(Z,$){return new pz().fromJson(Z,$)}static fromJsonString(Z,$){return new pz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(pz,Z,$)}static $(){return["InvocationContext.IdeState.ViewedPullRequest|1 number 5|2 url 9|3 title 9?|4 folder_path 9?|5 summary_json 9?|6 description 9?"]}}});import{Message as Pt,proto3 as B,protoInt64 as VQ}from"@bufbuild/protobuf";var b0="agent.v1.",f,AQ,VG,AG,MG,kT,PT,ET,xG,fT,iz,n$,nz,rz,az,sz,tz,oz,ez,ZK,$K,JK,YK,XK,zK,KK,r$,QK,HK,WK,qK,NK,h8,BK,FK,GK,LK,DK,wK,UK,OK,IK,kK,PK,EK,fK,R8,VK,AK,TG,MK,xK,z6,K6,v8,TK,a$,CK,Q6,H6,hK,RK,W6,vK,q6,yK,mK,jK,_K,SK,gK,s$,bK,cK,dK,uK,t$,N6,B6,o$,y8,lK,pK,x0,iK,CG,nK,rK,aK;var MQ=O(()=>{kB();vB();jB();_B();bB();uB();$H();iB();rB();sB();tB();$F();JF();YF();XF();QF();HF();NF();BF();FF();wF();kF();fF();VF();AF();MF();xF();TF();RF();vF();_F();SF();gF();bF();cF();dF();uF();lF();nF();rF();aF();sF();tF();oF();eF();XG();KG();WG();BG();FG();GG();LG();UG();AB();fG();A();f=class f extends G{static get runtime(){return F(this,"runtime",B)}static $p(){return b0}};AQ=D(B,b0,"AgentMode",[[0,"UNSPECIFIED"],[1,"AGENT"],[2,"ASK"],[3,"PLAN"],[4,"DEBUG"],[5,"TRIAGE"],[7,"MULTITASK"],[8,"CUSTOM"]],1),VG=D(B,b0,"SubagentRunStatus",[[0,"UNSPECIFIED"],[1,"RUNNING"],[2,"BACKGROUNDED"],[3,"SUCCESS"],[4,"ERROR"],[5,"ABORTED"]],1),AG=D(B,b0,"SubagentDispatchTool",[[0,"UNSPECIFIED"],[1,"TASK"],[2,"CREATE_AGENT"],[3,"SEND_TO_AGENT"],[4,"CREATE_PROJECT"]],1),MG=D(B,b0,"CustomModeSource",[[0,"UNSPECIFIED"],[1,"AGENT_SKILL"],[2,"PLUGIN_SKILL"],[3,"REPO_SKILL"],[4,"MANAGED_SKILL"]],1),kT=D(B,b0,"SimulatedMsgReason",[[0,"UNSPECIFIED"],[1,"PLAN_EXECUTION"],[2,"COMMIT_REMINDER"],[3,"BACKGROUND_TASK_COMPLETION"],[4,"DIFF_TAB_COMMIT"],[5,"DIFF_TAB_COMMIT_AND_PUSH"],[6,"DIFF_TAB_PUSH"],[7,"DIFF_TAB_CREATE_PR"],[8,"DIFF_TAB_FIX_MERGE_CONFLICTS"],[9,"USER_SENT_TO_SUBAGENT"],[10,"USER_INTERRUPTED_SUBAGENT"],[11,"USER_QUEUED_TO_SUBAGENT"],[12,"BABYSIT_PR_IN_CLOUD"],[13,"CI_PANEL_INVESTIGATE_FAILURE"],[14,"MULTITASK"],[15,"BUILD_IN_PARALLEL"],[16,"MULTITASK_SPLIT_PRS"],[17,"APPLY_LOCALLY"],[18,"CHECKOUT_BRANCH"],[19,"DIFF_TAB_UPDATE_BRANCH"],[20,"PR_TAB_BUGBOT_FIX"],[22,"RUN_BUGBOT_REVIEW"],[23,"RUN_SECURITY_REVIEW"],[24,"FSD_APPLY_FINDING"],[25,"FSD_UNDO_FINDING"],[26,"FSD_START"],[27,"FSD_PR_INTERRUPT"],[28,"SUBSCRIPTION"],[29,"DIFF_TAB_CREATE_BRANCH"],[30,"AGENT_STORE_CONFLICT"],[31,"GOAL_CONTINUATION"],[32,"PROJECT_KICKOFF"],[33,"MARKDOWN_PROMPT_BUTTON"],[34,"USER_QUICK_ACTION"],[35,"INTERACTION_RESPONSE"]],1),PT=D(B,b0,"SubscriptionSource",[[0,"UNSPECIFIED"],[1,"SLACK"],[2,"GITHUB"],[3,"LINEAR"],[4,"ORIGIN"],[5,"FACTORY"]],1),ET=D(B,b0,"ReplyAudience",[[0,"UNSPECIFIED"],[1,"USER"],[2,"AGENT"]],1),xG=D(B,b0,"TurnRunStatus",[[0,"UNSPECIFIED"],[1,"RUNNING"],[2,"COMPLETED"],[3,"FAILED"],[4,"INTERRUPTED"]],1),fT=D(B,b0,"TurnInterruptReason",[[0,"UNSPECIFIED"],[1,"CANCELLED"],[2,"MAX_STEPS"]],1);iz=class iz extends f{constructor(Z){super();this.description="",this.prompt="",this.attachments=[],this.mode=NW.UNSPECIFIED,this.respondingToMessageIds=[],this.environment=k6.UNSPECIFIED,B.util.initPartial(Z,this)}static fromBinary(Z,$){return new iz().fromBinary(Z,$)}static fromJson(Z,$){return new iz().fromJson(Z,$)}static fromJsonString(Z,$){return new iz().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(iz,Z,$)}static $(){return["TaskArgs|1 description 9|2 prompt 9|3 subagent_type #0|4 model 9?|5 resume 9?|6 agent_id 9?|7 attachments 9*|8 mode #1|9 responding_to_message_ids 9*|10 environment #2|11 machine #3?",c8,NW,k6,n$]}};n$=class n$ extends f{constructor(Z){super();this.machine={case:void 0},B.util.initPartial(Z,this)}static fromBinary(Z,$){return new n$().fromBinary(Z,$)}static fromJson(Z,$){return new n$().fromJson(Z,$)}static fromJsonString(Z,$){return new n$().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(n$,Z,$)}static $(){return["TargetMachine|1 same_machine #0 machine|2 new_cloud_vm #1 machine|3 self_hosted_worker #2 machine|4 self_hosted_pool #3 machine",nz,rz,az,sz]}};nz=class nz extends f{constructor(Z){super();B.util.initPartial(Z,this)}static fromBinary(Z,$){return new nz().fromBinary(Z,$)}static fromJson(Z,$){return new nz().fromJson(Z,$)}static fromJsonString(Z,$){return new nz().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(nz,Z,$)}static $(){return["SameMachineTarget"]}};rz=class rz extends f{constructor(Z){super();B.util.initPartial(Z,this)}static fromBinary(Z,$){return new rz().fromBinary(Z,$)}static fromJson(Z,$){return new rz().fromJson(Z,$)}static fromJsonString(Z,$){return new rz().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(rz,Z,$)}static $(){return["NewCloudVmTarget|1 environment_build_id 9?|2 base_branch 9?"]}};az=class az extends f{constructor(Z){super();this.workerId="",B.util.initPartial(Z,this)}static fromBinary(Z,$){return new az().fromBinary(Z,$)}static fromJson(Z,$){return new az().fromJson(Z,$)}static fromJsonString(Z,$){return new az().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(az,Z,$)}static $(){return["SelfHostedWorkerTarget|1 worker_id 9"]}};sz=class sz extends f{constructor(Z){super();this.labels=[],B.util.initPartial(Z,this)}static fromBinary(Z,$){return new sz().fromBinary(Z,$)}static fromJson(Z,$){return new sz().fromJson(Z,$)}static fromJsonString(Z,$){return new sz().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(sz,Z,$)}static $(){return["SelfHostedPoolTarget|1 pool 9?|2 labels #0*",tz]}};tz=class tz extends f{constructor(Z){super();this.key="",this.value="",B.util.initPartial(Z,this)}static fromBinary(Z,$){return new tz().fromBinary(Z,$)}static fromJson(Z,$){return new tz().fromJson(Z,$)}static fromJsonString(Z,$){return new tz().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(tz,Z,$)}static $(){return["SelfHostedWorkerLabel|1 key 9|2 value 9"]}};oz=class oz extends f{constructor(Z){super();this.conversationSteps=[],this.isBackground=!1,this.backgroundReason=qW.UNSPECIFIED,B.util.initPartial(Z,this)}static fromBinary(Z,$){return new oz().fromBinary(Z,$)}static fromJson(Z,$){return new oz().fromJson(Z,$)}static fromJsonString(Z,$){return new oz().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(oz,Z,$)}static $(){return["TaskSuccess|1 conversation_steps #0*|2 agent_id 9?|3 is_background 8|4 duration_ms 4?|5 result_suffix 9?|6 background_reason #1|7 transcript_path 9?",h8,qW]}};ez=class ez extends f{constructor(Z){super();this.error="",B.util.initPartial(Z,this)}static fromBinary(Z,$){return new ez().fromBinary(Z,$)}static fromJson(Z,$){return new ez().fromJson(Z,$)}static fromJsonString(Z,$){return new ez().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(ez,Z,$)}static $(){return["TaskError|1 error 9"]}};ZK=class ZK extends f{constructor(Z){super();this.result={case:void 0},B.util.initPartial(Z,this)}static fromBinary(Z,$){return new ZK().fromBinary(Z,$)}static fromJson(Z,$){return new ZK().fromJson(Z,$)}static fromJsonString(Z,$){return new ZK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(ZK,Z,$)}static $(){return["TaskResult|1 success #0 result|2 error #1 result",oz,ez]}};$K=class $K extends f{constructor(Z){super();B.util.initPartial(Z,this)}static fromBinary(Z,$){return new $K().fromBinary(Z,$)}static fromJson(Z,$){return new $K().fromJson(Z,$)}static fromJsonString(Z,$){return new $K().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals($K,Z,$)}static $(){return["TaskToolCall|1 args #0|2 result #1|3 cloud_agent_bc_id 9?",iz,ZK]}};JK=class JK extends f{constructor(Z){super();this.path="",this.branchName="",B.util.initPartial(Z,this)}static fromBinary(Z,$){return new JK().fromBinary(Z,$)}static fromJson(Z,$){return new JK().fromJson(Z,$)}static fromJsonString(Z,$){return new JK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(JK,Z,$)}static $(){return["SetActiveBranchArgs|1 path 9|2 branch_name 9"]}};YK=class YK extends f{constructor(Z){super();B.util.initPartial(Z,this)}static fromBinary(Z,$){return new YK().fromBinary(Z,$)}static fromJson(Z,$){return new YK().fromJson(Z,$)}static fromJsonString(Z,$){return new YK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(YK,Z,$)}static $(){return["SetActiveBranchSuccess"]}};XK=class XK extends f{constructor(Z){super();this.error="",B.util.initPartial(Z,this)}static fromBinary(Z,$){return new XK().fromBinary(Z,$)}static fromJson(Z,$){return new XK().fromJson(Z,$)}static fromJsonString(Z,$){return new XK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(XK,Z,$)}static $(){return["SetActiveBranchError|1 error 9"]}};zK=class zK extends f{constructor(Z){super();this.result={case:void 0},B.util.initPartial(Z,this)}static fromBinary(Z,$){return new zK().fromBinary(Z,$)}static fromJson(Z,$){return new zK().fromJson(Z,$)}static fromJsonString(Z,$){return new zK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(zK,Z,$)}static $(){return["SetActiveBranchResult|1 success #0 result|2 error #1 result",YK,XK]}};KK=class KK extends f{constructor(Z){super();B.util.initPartial(Z,this)}static fromBinary(Z,$){return new KK().fromBinary(Z,$)}static fromJson(Z,$){return new KK().fromJson(Z,$)}static fromJsonString(Z,$){return new KK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(KK,Z,$)}static $(){return["SetActiveBranchToolCall|1 args #0|2 result #1",JK,zK]}};r$=class r$ extends f{constructor(Z){super();this.tool={case:void 0},this.hookAdditionalContexts=[],B.util.initPartial(Z,this)}static fromBinary(Z,$){return new r$().fromBinary(Z,$)}static fromJson(Z,$){return new r$().fromJson(Z,$)}static fromJsonString(Z,$){return new r$().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(r$,Z,$)}static $(){return["ToolCall|1 shell_tool_call #0 tool|3 delete_tool_call #1 tool|4 glob_tool_call #2 tool|5 grep_tool_call #3 tool|8 read_tool_call #4 tool|9 update_todos_tool_call #5 tool|10 read_todos_tool_call #6 tool|12 edit_tool_call #7 tool|13 ls_tool_call #8 tool|14 read_lints_tool_call #9 tool|15 mcp_tool_call #10 tool|16 sem_search_tool_call #11 tool|17 create_plan_tool_call #12 tool|18 web_search_tool_call #13 tool|19 task_tool_call #14 tool|20 list_mcp_resources_tool_call #15 tool|21 read_mcp_resource_tool_call #16 tool|22 apply_agent_diff_tool_call #17 tool|23 ask_question_tool_call #18 tool|24 fetch_tool_call #19 tool|25 switch_mode_tool_call #20 tool|28 generate_image_tool_call #21 tool|29 record_screen_tool_call #22 tool|30 computer_use_tool_call #23 tool|31 write_shell_stdin_tool_call #24 tool|32 reflect_tool_call #25 tool|33 setup_vm_environment_tool_call #26 tool|34 truncated_tool_call #27 tool|35 start_grind_execution_tool_call #28 tool|36 start_grind_planning_tool_call #29 tool|37 web_fetch_tool_call #30 tool|38 report_bugfix_results_tool_call #31 tool|39 ai_attribution_tool_call #32 tool|40 pr_management_tool_call #33 tool|41 mcp_auth_tool_call #34 tool|42 await_tool_call #35 tool|43 blame_by_file_path_tool_call #36 tool|44 get_mcp_tools_tool_call #37 tool|45 report_bug_tool_call #38 tool|46 set_active_branch_tool_call #39 tool|48 communicate_update_tool_call #40 tool|49 send_final_summary_tool_call #41 tool|51 replace_env_tool_call #42 tool|52 edit_pr_labels_tool_call #43 tool|53 record_ci_investigation_findings_tool_call #44 tool|55 send_message_tool_call #45 tool|56 fetch_cloud_agent_data_tool_call #46 tool|58 send_to_user_tool_call #47 tool|68 connect_scm_tool_call #48 tool|69 search_conversations_tool_call #49 tool|70 create_goal_tool_call #50 tool|71 update_goal_tool_call #51 tool|73 get_agent_status_tool_call #52 tool|74 send_to_agent_tool_call #53 tool|75 read_agent_transcript_tool_call #54 tool|76 create_agent_tool_call #55 tool|77 stop_agent_tool_call #56 tool|79 write_canvas_tool_call #57 tool|80 read_canvas_tool_call #58 tool|81 generate_video_tool_call #59 tool|82 x_search_tool_call #60 tool|83 get_origin_pr_code_tour_tool_call #61 tool|84 update_origin_pr_code_tour_tool_call #62 tool|85 list_tracked_tasks_tool_call #63 tool|86 create_tracked_tasks_tool_call #64 tool|87 update_tracked_tasks_tool_call #65 tool|88 delete_tracked_tasks_tool_call #66 tool|89 update_tracked_task_statuses_tool_call #67 tool|90 create_project_tool_call #68 tool|91 update_tracked_task_tags_tool_call #69 tool|93 stop_project_updates_tool_call #70 tool|94 start_project_updates_tool_call #71 tool|54 hook_additional_contexts #72*|57 tool_call_id 9?|59 started_at_ms 4?|60 completed_at_ms 4?",A6,T6,C6,v6,m6,_6,S6,g6,d6,u6,o6,XZ,zZ,HZ,$K,qZ,NZ,BZ,LZ,OZ,IZ,PZ,MZ,TZ,RZ,vZ,mZ,NK,jZ,_Z,SZ,cZ,uZ,lZ,pZ,aZ,sZ,tZ,oZ,KK,eZ,Z$,J$,Y$,X$,z$,K$,Q$,W$,F$,L$,D$,U$,O$,I$,k$,V$,_$,S$,g$,c$,d$,l$,h$,R$,v$,y$,m$,P$,j$,f$,E$,l8]}};QK=class QK extends f{constructor(Z){super();B.util.initPartial(Z,this)}static fromBinary(Z,$){return new QK().fromBinary(Z,$)}static fromJson(Z,$){return new QK().fromJson(Z,$)}static fromJsonString(Z,$){return new QK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(QK,Z,$)}static $(){return["TruncatedToolCallArgs"]}};HK=class HK extends f{constructor(Z){super();B.util.initPartial(Z,this)}static fromBinary(Z,$){return new HK().fromBinary(Z,$)}static fromJson(Z,$){return new HK().fromJson(Z,$)}static fromJsonString(Z,$){return new HK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(HK,Z,$)}static $(){return["TruncatedToolCallSuccess"]}};WK=class WK extends f{constructor(Z){super();this.error="",B.util.initPartial(Z,this)}static fromBinary(Z,$){return new WK().fromBinary(Z,$)}static fromJson(Z,$){return new WK().fromJson(Z,$)}static fromJsonString(Z,$){return new WK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(WK,Z,$)}static $(){return["TruncatedToolCallError|1 error 9"]}};qK=class qK extends f{constructor(Z){super();this.result={case:void 0},B.util.initPartial(Z,this)}static fromBinary(Z,$){return new qK().fromBinary(Z,$)}static fromJson(Z,$){return new qK().fromJson(Z,$)}static fromJsonString(Z,$){return new qK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(qK,Z,$)}static $(){return["TruncatedToolCallResult|1 success #0 result|2 error #1 result",HK,WK]}};NK=class NK extends f{constructor(Z){super();this.originalStepBlobId=new Uint8Array(0),this.originalStepSizeBytes=0,B.util.initPartial(Z,this)}static fromBinary(Z,$){return new NK().fromBinary(Z,$)}static fromJson(Z,$){return new NK().fromJson(Z,$)}static fromJsonString(Z,$){return new NK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(NK,Z,$)}static $(){return["TruncatedToolCall|1 original_step_blob_id 12|2 args #0|3 result #1|4 original_step_size_bytes 13|5 preview #2",QK,qK,r$]}};h8=class h8 extends f{constructor(Z){super();this.message={case:void 0},B.util.initPartial(Z,this)}static fromBinary(Z,$){return new h8().fromBinary(Z,$)}static fromJson(Z,$){return new h8().fromJson(Z,$)}static fromJsonString(Z,$){return new h8().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(h8,Z,$)}static $(){return["ConversationStep|1 assistant_message #0 message|2 tool_call #1 message|3 thinking_message #2 message",MK,r$,xK]}};BK=class BK extends f{constructor(Z){super();B.util.initPartial(Z,this)}static fromBinary(Z,$){return new BK().fromBinary(Z,$)}static fromJson(Z,$){return new BK().fromJson(Z,$)}static fromJsonString(Z,$){return new BK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(BK,Z,$)}static $(){return["TriggeringUserInfo|1 auth_id 9?|2 user_id 5?|3 followup_id 9?"]}};FK=class FK extends f{constructor(Z){super();this.parentToolCallId="",this.environment=k6.UNSPECIFIED,this.status=VG.UNSPECIFIED,B.util.initPartial(Z,this)}static fromBinary(Z,$){return new FK().fromBinary(Z,$)}static fromJson(Z,$){return new FK().fromJson(Z,$)}static fromJsonString(Z,$){return new FK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(FK,Z,$)}static $(){return["SubagentRunState|1 parent_tool_call_id 9|2 subagent_id 9?|3 environment #0|4 status #1|5 title 9?|6 detail 9?|7 transcript_path 9?|8 output_path 9?|9 completed_timestamp_ms 4?|10 completion_reason #2?",k6,VG,IB]}};GK=class GK extends f{constructor(Z){super();this.stepIndex=0,this.toolCallId="",this.tool=AG.UNSPECIFIED,this.backgrounded=!1,B.util.initPartial(Z,this)}static fromBinary(Z,$){return new GK().fromBinary(Z,$)}static fromJson(Z,$){return new GK().fromJson(Z,$)}static fromJsonString(Z,$){return new GK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(GK,Z,$)}static $(){return["SubagentDispatchStep|1 step_index 13|2 tool_call_id 9|3 tool #0|4 backgrounded 8",AG]}};LK=class LK extends f{constructor(Z){super();this.id="",this.label="",this.source=MG.UNSPECIFIED,B.util.initPartial(Z,this)}static fromBinary(Z,$){return new LK().fromBinary(Z,$)}static fromJson(Z,$){return new LK().fromJson(Z,$)}static fromJsonString(Z,$){return new LK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(LK,Z,$)}static $(){return["SubmittedCustomMode|1 id 9|2 label 9|5 source #0|6 source_path 9?|7 source_hash 9?|10 managed_skill_id 9?|11 plugin_id 9?|12 plugin_snapshot_token 9?",MG]}};DK=class DK extends f{constructor(Z){super();this.id="",this.label="",B.util.initPartial(Z,this)}static fromBinary(Z,$){return new DK().fromBinary(Z,$)}static fromJson(Z,$){return new DK().fromJson(Z,$)}static fromJsonString(Z,$){return new DK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(DK,Z,$)}static $(){return["SubmittedExitedCustomMode|1 id 9|2 label 9"]}};wK=class wK extends f{constructor(Z){super();this.nextMode=AQ.UNSPECIFIED,B.util.initPartial(Z,this)}static fromBinary(Z,$){return new wK().fromBinary(Z,$)}static fromJson(Z,$){return new wK().fromJson(Z,$)}static fromJsonString(Z,$){return new wK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(wK,Z,$)}static $(){return["CustomModeExitIntent|1 next_mode #0|2 exited_mode #1",AQ,DK]}};UK=class UK extends f{constructor(Z){super();this.intent={case:void 0},B.util.initPartial(Z,this)}static fromBinary(Z,$){return new UK().fromBinary(Z,$)}static fromJson(Z,$){return new UK().fromJson(Z,$)}static fromJsonString(Z,$){return new UK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(UK,Z,$)}static $(){return["CustomModeIntent|1 enter #0 intent|2 exit #1 intent",LK,wK]}};OK=class OK extends f{constructor(Z){super();this.interactionId="",this.skippedQuestionIds=[],B.util.initPartial(Z,this)}static fromBinary(Z,$){return new OK().fromBinary(Z,$)}static fromJson(Z,$){return new OK().fromJson(Z,$)}static fromJsonString(Z,$){return new OK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(OK,Z,$)}static $(){return["InteractionResponseMetadata|1 interaction_id 9|2 response #0?|3 skipped_question_ids 9*",rK]}};IK=class IK extends f{constructor(Z){super();B.util.initPartial(Z,this)}static fromBinary(Z,$){return new IK().fromBinary(Z,$)}static fromJson(Z,$){return new IK().fromJson(Z,$)}static fromJsonString(Z,$){return new IK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(IK,Z,$)}static $(){return["SubscriptionEventDisplay|1 display_label 9?|2 resource_url 9?|3 subscription_id 9?"]}};kK=class kK extends f{constructor(Z){super();this.planId="",this.planTitle="",B.util.initPartial(Z,this)}static fromBinary(Z,$){return new kK().fromBinary(Z,$)}static fromJson(Z,$){return new kK().fromJson(Z,$)}static fromJsonString(Z,$){return new kK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(kK,Z,$)}static $(){return["ExecutePlanInfo|1 plan_id 9|2 plan_title 9"]}};PK=class PK extends f{constructor(Z){super();B.util.initPartial(Z,this)}static fromBinary(Z,$){return new PK().fromBinary(Z,$)}static fromJson(Z,$){return new PK().fromJson(Z,$)}static fromJsonString(Z,$){return new PK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(PK,Z,$)}static $(){return["ProjectDetails|1 name 9?|2 subagent #0?|3 side_chat #1?|4 init_description 9?",EK,fK]}};EK=class EK extends f{constructor(Z){super();B.util.initPartial(Z,this)}static fromBinary(Z,$){return new EK().fromBinary(Z,$)}static fromJson(Z,$){return new EK().fromJson(Z,$)}static fromJsonString(Z,$){return new EK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(EK,Z,$)}static $(){return["ProjectSubagentDetails|2 store_dir 9?"]}};fK=class fK extends f{constructor(Z){super();this.storeDir="",B.util.initPartial(Z,this)}static fromBinary(Z,$){return new fK().fromBinary(Z,$)}static fromJson(Z,$){return new fK().fromJson(Z,$)}static fromJsonString(Z,$){return new fK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(fK,Z,$)}static $(){return["ProjectSideChatDetails|1 store_dir 9"]}};R8=class R8 extends f{constructor(Z){super();this.text="",this.messageId="",this.mode=AQ.UNSPECIFIED,this.conversationStateBlobId=new Uint8Array(0),this.hookAdditionalContexts=[],B.util.initPartial(Z,this)}static fromBinary(Z,$){return new R8().fromBinary(Z,$)}static fromJson(Z,$){return new R8().fromJson(Z,$)}static fromJsonString(Z,$){return new R8().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(R8,Z,$)}static $(){return["UserMessage|1 text 9|2 message_id 9|3 selected_context #0?|4 mode #1|5 is_simulated_msg 8?|6 best_of_n_group_id 9?|7 try_use_best_of_n_promotion 8?|8 rich_text 9?|9 simulated_msg_reason #2?|10 conversation_state_blob_id 12|11 subagent_system_reminder 9?|13 triggering_user_info #3?|14 execute_plan_info #4?|15 simulated_message_metadata #5?|16 prompt_reference_id 9?|17 thread_id 9?|18 text_blob_id 12?|19 rich_text_blob_id 12?|21 hook_additional_contexts #6*|22 custom_mode_intent #7?|23 project_details #8?|24 turn_steer 8?|25 started_at_ms 4?|26 completed_at_ms 4?|27 sent_by_agent_id 9?|28 sent_by_voice_call 8?|29 sender #9?|30 forked_context 9?|31 reply_to 9?|32 reply_audience #10?|33 reply_to_tool_call_id 9?|34 during_voice_call 8?|35 inherits_voice_call 8?|36 voice_calls_read_utterances 8?|37 summarized_tool_call_id 9?|38 sender_time_zone 9?",i$,AQ,kT,BK,kK,VK,l8,UK,PK,AK,ET]}};VK=class VK extends f{constructor(Z){super();B.util.initPartial(Z,this)}static fromBinary(Z,$){return new VK().fromBinary(Z,$)}static fromJson(Z,$){return new VK().fromJson(Z,$)}static fromJsonString(Z,$){return new VK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(VK,Z,$)}static $(){return["UserMessage.SimulatedMessageMetadata|1 title 9?|2 task_id 9?|3 fsd_finding_action 9?|4 url 9?|5 subscription_source #0?|6 subscription_event_display #1?|7 interaction_response #2?|8 tool_call_id 9?",PT,IK,OK]}};AK=class AK extends f{constructor(Z){super();this.kind=TG.UNSPECIFIED,this.id="",this.displayName="",B.util.initPartial(Z,this)}static fromBinary(Z,$){return new AK().fromBinary(Z,$)}static fromJson(Z,$){return new AK().fromJson(Z,$)}static fromJsonString(Z,$){return new AK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(AK,Z,$)}static $(){return["MessageSender|1 kind #0|2 id 9|3 display_name 9",TG]}};TG=D(B,b0,"MessageSender.Kind",[[0,"UNSPECIFIED"],[1,"AGENT"],[2,"VOICE_CALL"],[3,"MAIN_BOT"],[4,"PROJECT"],[5,"PROJECT_SLACK"]],1);MK=class MK extends f{constructor(Z){super();this.text="",B.util.initPartial(Z,this)}static fromBinary(Z,$){return new MK().fromBinary(Z,$)}static fromJson(Z,$){return new MK().fromJson(Z,$)}static fromJsonString(Z,$){return new MK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(MK,Z,$)}static $(){return["AssistantMessage|1 text 9|2 started_at_ms 4?|3 completed_at_ms 4?"]}};xK=class xK extends f{constructor(Z){super();this.text="",this.durationMs=0,B.util.initPartial(Z,this)}static fromBinary(Z,$){return new xK().fromBinary(Z,$)}static fromJson(Z,$){return new xK().fromJson(Z,$)}static fromJsonString(Z,$){return new xK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(xK,Z,$)}static $(){return["ThinkingMessage|1 text 9|2 duration_ms 13|3 started_at_ms 4?|4 completed_at_ms 4?"]}};z6=class z6 extends f{constructor(Z){super();this.command="",B.util.initPartial(Z,this)}static fromBinary(Z,$){return new z6().fromBinary(Z,$)}static fromJson(Z,$){return new z6().fromJson(Z,$)}static fromJsonString(Z,$){return new z6().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(z6,Z,$)}static $(){return["ShellCommand|1 command 9"]}};K6=class K6 extends f{constructor(Z){super();this.stdout="",this.stderr="",this.exitCode=0,B.util.initPartial(Z,this)}static fromBinary(Z,$){return new K6().fromBinary(Z,$)}static fromJson(Z,$){return new K6().fromJson(Z,$)}static fromJsonString(Z,$){return new K6().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(K6,Z,$)}static $(){return["ShellOutput|1 stdout 9|2 stderr 9|3 exit_code 5"]}};v8=class v8 extends f{constructor(Z){super();this.turn={case:void 0},B.util.initPartial(Z,this)}static fromBinary(Z,$){return new v8().fromBinary(Z,$)}static fromJson(Z,$){return new v8().fromJson(Z,$)}static fromJsonString(Z,$){return new v8().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(v8,Z,$)}static $(){return["ConversationTurn|1 agent_conversation_turn #0 turn|2 shell_conversation_turn #1 turn",H6,W6]}};TK=class TK extends f{constructor(Z){super();this.plan="",B.util.initPartial(Z,this)}static fromBinary(Z,$){return new TK().fromBinary(Z,$)}static fromJson(Z,$){return new TK().fromJson(Z,$)}static fromJsonString(Z,$){return new TK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(TK,Z,$)}static $(){return["ConversationPlan|1 plan 9"]}};a$=class a$ extends f{constructor(Z){super();this.id="",this.path="",B.util.initPartial(Z,this)}static fromBinary(Z,$){return new a$().fromBinary(Z,$)}static fromJson(Z,$){return new a$().fromJson(Z,$)}static fromJsonString(Z,$){return new a$().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(a$,Z,$)}static $(){return["PlanRegistryEntry|1 id 9|2 path 9"]}};CK=class CK extends f{constructor(Z){super();this.conversationId="",this.goalId="",this.objective="",this.status=w$.UNSPECIFIED,this.idleContinuationsWithoutToolCalls=0,this.continuationCount=0,B.util.initPartial(Z,this)}static fromBinary(Z,$){return new CK().fromBinary(Z,$)}static fromJson(Z,$){return new CK().fromJson(Z,$)}static fromJsonString(Z,$){return new CK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(CK,Z,$)}static $(){return["GoalState|1 conversation_id 9|2 goal_id 9|3 objective 9|4 status #0|5 idle_continuations_without_tool_calls 13|6 active_duration_ms 4?|7 last_accrued_at_ms 4?|8 continuation_count 13|9 agent_session_id 9?|11 context_tokens_added 3?",w$]}};Q6=class Q6 extends f{constructor(Z){super();this.turn={case:void 0},B.util.initPartial(Z,this)}static fromBinary(Z,$){return new Q6().fromBinary(Z,$)}static fromJson(Z,$){return new Q6().fromJson(Z,$)}static fromJsonString(Z,$){return new Q6().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(Q6,Z,$)}static $(){return["ConversationTurnStructure|1 agent_conversation_turn #0 turn|2 shell_conversation_turn #1 turn",hK,vK]}};H6=class H6 extends f{constructor(Z){super();this.steps=[],B.util.initPartial(Z,this)}static fromBinary(Z,$){return new H6().fromBinary(Z,$)}static fromJson(Z,$){return new H6().fromJson(Z,$)}static fromJsonString(Z,$){return new H6().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(H6,Z,$)}static $(){return["AgentConversationTurn|1 user_message #0|2 steps #1*|3 request_id 9?",R8,h8]}};hK=class hK extends f{constructor(Z){super();this.userMessage=new Uint8Array(0),this.steps=[],this.sendMessageStepIndices=[],this.subagentDispatchSteps=[],this.dynamicToolNames=[],this.longReasoningReminderExposureLogged=!1,this.assistantTextStepIndices=[],this.appSecretsRequestStepIndices=[],this.preferenceChangeStepIndices=[],B.util.initPartial(Z,this)}static fromBinary(Z,$){return new hK().fromBinary(Z,$)}static fromJson(Z,$){return new hK().fromJson(Z,$)}static fromJsonString(Z,$){return new hK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(hK,Z,$)}static $(){return["AgentConversationTurnStructure|1 user_message 12|2 steps 12*|3 request_id 9?|4 encrypted_model 9?|5 dynamic_tool_count 13?|6 send_message_step_indices 13*|7 routed_model_display_name 9?|8 subagent_dispatch_steps #0*|9 dynamic_tool_names 9*|10 user_message_id 9?|11 long_reasoning_reminder #1?|12 long_reasoning_reminder_exposure_logged 8|13 assistant_text_step_indices 13*|14 assistant_text_steps_recorded 8?|15 app_secrets_request_step_indices 13*|16 preference_change_step_indices 13*|17 run #2?",GK,RK,t$]}};RK=class RK extends f{constructor(Z){super();this.remainingDelayCalls=0,B.util.initPartial(Z,this)}static fromBinary(Z,$){return new RK().fromBinary(Z,$)}static fromJson(Z,$){return new RK().fromJson(Z,$)}static fromJsonString(Z,$){return new RK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(RK,Z,$)}static $(){return["LongReasoningReminderState|1 remaining_delay_calls 13"]}};W6=class W6 extends f{constructor(Z){super();B.util.initPartial(Z,this)}static fromBinary(Z,$){return new W6().fromBinary(Z,$)}static fromJson(Z,$){return new W6().fromJson(Z,$)}static fromJsonString(Z,$){return new W6().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(W6,Z,$)}static $(){return["ShellConversationTurn|1 shell_command #0|2 shell_output #1",z6,K6]}};vK=class vK extends f{constructor(Z){super();this.shellCommand=new Uint8Array(0),this.shellOutput=new Uint8Array(0),B.util.initPartial(Z,this)}static fromBinary(Z,$){return new vK().fromBinary(Z,$)}static fromJson(Z,$){return new vK().fromJson(Z,$)}static fromJsonString(Z,$){return new vK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(vK,Z,$)}static $(){return["ShellConversationTurnStructure|1 shell_command 12|2 shell_output 12"]}};q6=class q6 extends f{constructor(Z){super();this.summary="",B.util.initPartial(Z,this)}static fromBinary(Z,$){return new q6().fromBinary(Z,$)}static fromJson(Z,$){return new q6().fromJson(Z,$)}static fromJsonString(Z,$){return new q6().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(q6,Z,$)}static $(){return["ConversationSummary|1 summary 9"]}};yK=class yK extends f{constructor(Z){super();this.summarizedMessages=[],this.summary="",this.windowTail=0,this.summaryMessage=new Uint8Array(0),B.util.initPartial(Z,this)}static fromBinary(Z,$){return new yK().fromBinary(Z,$)}static fromJson(Z,$){return new yK().fromJson(Z,$)}static fromJsonString(Z,$){return new yK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(yK,Z,$)}static $(){return["ConversationSummaryArchive|1 summarized_messages 12*|2 summary 9|3 window_tail 13|4 summary_message 12"]}};mK=class mK extends f{constructor(Z){super();this.id="",this.label="",this.estimatedTokens=0,B.util.initPartial(Z,this)}static fromBinary(Z,$){return new mK().fromBinary(Z,$)}static fromJson(Z,$){return new mK().fromJson(Z,$)}static fromJsonString(Z,$){return new mK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(mK,Z,$)}static $(){return["PromptTokenBreakdownCategory|1 id 9|2 label 9|3 estimated_tokens 13|4 character_count 13?"]}};jK=class jK extends f{constructor(Z){super();this.totalUsedTokens=0,this.maxTokens=0,this.categories=[],B.util.initPartial(Z,this)}static fromBinary(Z,$){return new jK().fromBinary(Z,$)}static fromJson(Z,$){return new jK().fromJson(Z,$)}static fromJsonString(Z,$){return new jK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(jK,Z,$)}static $(){return["PromptTokenBreakdownSnapshot|1 total_used_tokens 13|2 max_tokens 13|3 categories #0*",mK]}};_K=class _K extends f{constructor(Z){super();this.sourceType="",this.messageIndex=0,this.contentPath="",this.startOffset=0,this.endOffset=0,B.util.initPartial(Z,this)}static fromBinary(Z,$){return new _K().fromBinary(Z,$)}static fromJson(Z,$){return new _K().fromJson(Z,$)}static fromJsonString(Z,$){return new _K().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(_K,Z,$)}static $(){return["PromptContextSourceRef|1 source_type 9|3 message_index 13|4 content_path 9|5 start_offset 13|6 end_offset 13"]}};SK=class SK extends f{constructor(Z){super();this.id="",this.kind="",this.label="",this.categoryId="",this.estimatedTokens=0,this.characterCount=0,this.contentAvailable=!1,B.util.initPartial(Z,this)}static fromBinary(Z,$){return new SK().fromBinary(Z,$)}static fromJson(Z,$){return new SK().fromJson(Z,$)}static fromJsonString(Z,$){return new SK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(SK,Z,$)}static $(){return["PromptContextNode|1 id 9|2 parent_id 9?|3 kind 9|4 label 9|5 category_id 9|6 estimated_tokens 13|7 character_count 13|9 content_available 8|11 source #0?|12 inline_content 9?",_K]}};gK=class gK extends f{constructor(Z){super();this.schemaVersion=0,this.nodes=[],B.util.initPartial(Z,this)}static fromBinary(Z,$){return new gK().fromBinary(Z,$)}static fromJson(Z,$){return new gK().fromJson(Z,$)}static fromJsonString(Z,$){return new gK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(gK,Z,$)}static $(){return["PromptContextUsageTree|1 schema_version 13|2 nodes #0*",SK]}};s$=class s$ extends f{constructor(Z){super();this.usedTokens=0,this.maxTokens=0,B.util.initPartial(Z,this)}static fromBinary(Z,$){return new s$().fromBinary(Z,$)}static fromJson(Z,$){return new s$().fromJson(Z,$)}static fromJsonString(Z,$){return new s$().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(s$,Z,$)}static $(){return["ConversationTokenDetails|1 used_tokens 13|2 max_tokens 13|3 breakdown #0?|4 prompt_context_usage_tree #1?",jK,gK]}};bK=class bK extends f{constructor(Z){super();B.util.initPartial(Z,this)}static fromBinary(Z,$){return new bK().fromBinary(Z,$)}static fromJson(Z,$){return new bK().fromJson(Z,$)}static fromJsonString(Z,$){return new bK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(bK,Z,$)}static $(){return["FileState|1 content 9?|2 initial_content 9?"]}};cK=class cK extends f{constructor(Z){super();B.util.initPartial(Z,this)}static fromBinary(Z,$){return new cK().fromBinary(Z,$)}static fromJson(Z,$){return new cK().fromJson(Z,$)}static fromJsonString(Z,$){return new cK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(cK,Z,$)}static $(){return["FileStateStructure|1 content 12?|2 initial_content 12?"]}};dK=class dK extends f{constructor(Z){super();this.durationMs=VQ.zero,this.timestampMs=VQ.zero,B.util.initPartial(Z,this)}static fromBinary(Z,$){return new dK().fromBinary(Z,$)}static fromJson(Z,$){return new dK().fromJson(Z,$)}static fromJsonString(Z,$){return new dK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(dK,Z,$)}static $(){return["StepTiming|1 duration_ms 4|2 timestamp_ms 4"]}};uK=class uK extends f{constructor(Z){super();this.completedTurnCountCapped=0,B.util.initPartial(Z,this)}static fromBinary(Z,$){return new uK().fromBinary(Z,$)}static fromJson(Z,$){return new uK().fromJson(Z,$)}static fromJsonString(Z,$){return new uK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(uK,Z,$)}static $(){return["TurnTelemetryState|1 completed_turn_count_capped 13|2 last_completed_turn_timestamp_ms 4?"]}};t$=class t$ extends f{constructor(Z){super();this.runId="",this.status=xG.UNSPECIFIED,this.startedAtMs=VQ.zero,this.attemptCount=0,B.util.initPartial(Z,this)}static fromBinary(Z,$){return new t$().fromBinary(Z,$)}static fromJson(Z,$){return new t$().fromJson(Z,$)}static fromJsonString(Z,$){return new t$().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(t$,Z,$)}static $(){return["TurnRunRecord|1 run_id 9|2 status #0|3 started_at_ms 4|4 finished_at_ms 4?|5 attempt_count 13|6 interrupt_reason #1?",xG,fT]}};N6=class N6 extends f{constructor(Z){super();this.rootPromptMessagesJson=[],this.turns=[],this.todos=[],this.pendingToolCalls=[],this.fileStates={},this.summaryArchives=[],this.plans={},this.communicateUpdateHistory=[],this.communicateUpdateStatesByParentToolCallId={},B.util.initPartial(Z,this)}static fromBinary(Z,$){return new N6().fromBinary(Z,$)}static fromJson(Z,$){return new N6().fromJson(Z,$)}static fromJsonString(Z,$){return new N6().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(N6,Z,$)}static $(){return["ConversationState|1 root_prompt_messages_json 9*|8 turns #0*|3 todos #1*|4 pending_tool_calls 9*|5 token_details #2|6 summary #3?|7 plan #4?|9 summary_archive #5?|10 file_states 9,#6|11 summary_archives #5*|12 plans 9,#7|13 communicate_update_history #8*|14 communicate_update_final_summary 9?|15 communicate_update_completed_subtitle 9?|16 communicate_update_states_by_parent_tool_call_id 9,#9",v8,B0,s$,q6,TK,yK,bK,a$,B6,o$]}};B6=class B6 extends f{constructor(Z){super();this.step="",this.messageIndex=0,B.util.initPartial(Z,this)}static fromBinary(Z,$){return new B6().fromBinary(Z,$)}static fromJson(Z,$){return new B6().fromJson(Z,$)}static fromJsonString(Z,$){return new B6().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(B6,Z,$)}static $(){return["CommunicateUpdateHistoryEntry|1 step 9|3 message_index 13"]}};o$=class o$ extends f{constructor(Z){super();this.history=[],B.util.initPartial(Z,this)}static fromBinary(Z,$){return new o$().fromBinary(Z,$)}static fromJson(Z,$){return new o$().fromJson(Z,$)}static fromJsonString(Z,$){return new o$().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(o$,Z,$)}static $(){return["CommunicateUpdateTurnState|1 history #0*|2 final_summary 9?|3 completed_subtitle 9?",B6]}};y8=class y8 extends f{constructor(Z){super();this.createdTimestampMs=VQ.zero,this.lastUsedTimestampMs=VQ.zero,this.environment=k6.UNSPECIFIED,B.util.initPartial(Z,this)}static fromBinary(Z,$){return new y8().fromBinary(Z,$)}static fromJson(Z,$){return new y8().fromJson(Z,$)}static fromJsonString(Z,$){return new y8().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(y8,Z,$)}static $(){return["SubagentPersistedState|1 conversation_state #0|2 created_timestamp_ms 4|3 last_used_timestamp_ms 4|4 subagent_type #1|5 model_id 9?|6 environment #2|7 cloud_subagent #3?|8 first_class_bc_id 9?|9 cloud_requested_environment_build_id 9?|10 machine #4?",x0,c8,k6,lK,n$]}};lK=class lK extends f{constructor(Z){super();this.bcId="",B.util.initPartial(Z,this)}static fromBinary(Z,$){return new lK().fromBinary(Z,$)}static fromJson(Z,$){return new lK().fromJson(Z,$)}static fromJsonString(Z,$){return new lK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(lK,Z,$)}static $(){return["CloudSubagentReference|1 bc_id 9|2 transcript_path 9?"]}};pK=class pK extends f{constructor(Z){super();this.repoPath="",this.branchName="",B.util.initPartial(Z,this)}static fromBinary(Z,$){return new pK().fromBinary(Z,$)}static fromJson(Z,$){return new pK().fromJson(Z,$)}static fromJsonString(Z,$){return new pK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(pK,Z,$)}static $(){return["TrackedGitRepo|1 repo_path 9|2 branch_name 9"]}};x0=class x0 extends f{constructor(Z){super();this.rootPromptMessagesJson=[],this.turns=[],this.todos=[],this.pendingToolCalls=[],this.previousWorkspaceUris=[],this.fileStates={},this.fileStatesV2={},this.summaryArchives=[],this.turnTimings=[],this.subagentStates={},this.selfSummaryCount=0,this.readPaths=[],this.plans={},this.trackedGitRepoBranches=[],this.communicateUpdateHistory=[],this.subagentThreads={},this.communicateUpdateStatesByParentToolCallId={},this.subagentRunsByParentToolCallId={},this.subagentStateRefs={},this.completedAskQuestionToolCallIds=[],this.durableSkillBlocks=[],this.recentUserMessageIds=[],this.mentionedAgentIds=[],this.voiceCallUtterances=[],this.voiceCallTimeTaskIds=[],this.writesVoiceCallUtterances=!1,B.util.initPartial(Z,this)}static fromBinary(Z,$){return new x0().fromBinary(Z,$)}static fromJson(Z,$){return new x0().fromJson(Z,$)}static fromJsonString(Z,$){return new x0().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(x0,Z,$)}static $(){return["ConversationStateStructure|1 root_prompt_messages_json 12*|8 turns 12*|3 todos 12*|4 pending_tool_calls 9*|5 token_details #0|6 summary 12?|7 plan 12?|9 previous_workspace_uris 9*|10 mode #1?|11 summary_archive 12?|12 file_states 9,12|15 file_states_v2 9,#2|13 summary_archives 12*|14 turn_timings #3*|16 subagent_states 9,#4|17 self_summary_count 13|18 read_paths 9*|19 active_branch_name 9?|20 plans 9,#5|21 tracked_git_repo_branches #6*|22 agent_type 9?|23 communicate_update_history #7*|24 subagent_threads 9,9|25 communicate_update_final_summary 9?|28 communicate_update_completed_subtitle 9?|29 communicate_update_states_by_parent_tool_call_id 9,#8|30 subagent_runs_by_parent_tool_call_id 9,#9|26 conversation_started_timestamp_ms 4?|27 conversation_started_time_zone 9?|31 subagent_state_refs 9,12|32 goal_state #10?|33 is_root_project_conversation 8?|34 completed_ask_question_tool_call_ids 9*|35 durable_skill_blocks 9*|36 durable_custom_mode_id 9?|37 message_count_at_last_compaction 13?|38 recent_user_message_ids 9*|39 recent_user_message_ids_older_turn_count 13?|40 turn_telemetry #11?|42 mentioned_agent_ids 9*|43 voice_call_utterances #12*|44 voice_call_pending_answer #13?|45 voice_call_time_task_ids 9*|46 writes_voice_call_utterances 8|47 voice_calls_read_utterances 8?|49 user_time_zone 9?|50 project_coordinator_system_section 9?|51 project_coordinator_system_section_communication_rules 8?|52 last_run #14?",s$,AQ,cK,dK,y8,a$,pK,B6,o$,FK,CK,uK,iK,nK,t$]}};iK=class iK extends f{constructor(Z){super();this.id="",this.kind=CG.UNSPECIFIED,this.text="",this.answersMessageIds=[],B.util.initPartial(Z,this)}static fromBinary(Z,$){return new iK().fromBinary(Z,$)}static fromJson(Z,$){return new iK().fromJson(Z,$)}static fromJsonString(Z,$){return new iK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(iK,Z,$)}static $(){return["VoiceCallUtterance|1 id 9|2 kind #0|3 text 9|4 answers_message_ids 9*",CG]}};CG=D(B,b0,"VoiceCallUtterance.Kind",[[0,"UNSPECIFIED"],[1,"SEND"],[2,"TERMINAL"]],1);nK=class nK extends f{constructor(Z){super();this.messageIds=[],this.readsUtterances=!1,this.endedOnSend=!1,B.util.initPartial(Z,this)}static fromBinary(Z,$){return new nK().fromBinary(Z,$)}static fromJson(Z,$){return new nK().fromJson(Z,$)}static fromJsonString(Z,$){return new nK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(nK,Z,$)}static $(){return["VoiceCallPendingAnswer|1 message_ids 9*|2 reads_utterances 8|3 ended_on_send 8"]}};rK=class rK extends f{constructor(Z){super();this.id=0,this.result={case:void 0},B.util.initPartial(Z,this)}static fromBinary(Z,$){return new rK().fromBinary(Z,$)}static fromJson(Z,$){return new rK().fromJson(Z,$)}static fromJsonString(Z,$){return new rK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(rK,Z,$)}static $(){return["InteractionResponse|1 id 13|2 web_search_request_response #0 result|3 ask_question_interaction_response #1 result|4 switch_mode_request_response #2 result|7 create_plan_request_response #3 result|8 setup_vm_environment_result #4 result|9 web_fetch_request_response #5 result|10 pr_management_result #6 result|11 mcp_auth_request_response #7 result|12 generate_image_request_response #8 result|13 replace_env_result #9 result|14 connect_scm_request_response #10 result",WZ,aK,kZ,QZ,s8,gZ,t8,iZ,EZ,e8,q$]}};aK=class aK extends f{constructor(Z){super();B.util.initPartial(Z,this)}static fromBinary(Z,$){return new aK().fromBinary(Z,$)}static fromJson(Z,$){return new aK().fromJson(Z,$)}static fromJsonString(Z,$){return new aK().fromJsonString(Z,$)}static equals(Z,$){return B.util.equals(aK,Z,$)}static $(){return["AskQuestionInteractionResponse|1 result #0",r8]}}});var U=W((lG)=>{Object.defineProperty(lG,"__esModule",{value:!0});lG.createNotification=lG.nextNotification=lG.errorNotification=lG.COMPLETE_NOTIFICATION=lG.isObservable=lG.isArrayLike=lG.isPromise=lG.readableStreamLikeToAsyncGenerator=lG.isFunction=lG.getObservableInputType=lG.ObservableInputType=lG.subscribeToArray=lG.fromPromise=lG.fromArrayLike=lG.from=lG.reportUnhandledError=lG.Observable=lG.operate=lG.config=lG.Subscriber=lG.Subscription=lG.UnsubscriptionError=void 0;class xQ extends Error{errors;constructor(Z){super(Z?`${Z.length} errors occurred during unsubscription:
|
|
3
3
|
${Z.map(($,J)=>`${J+1}) ${$.toString()}`).join(`
|
|
4
|
-
`)}`:"");this.errors=Z,this.name="UnsubscriptionError"}}dG.UnsubscriptionError=AQ;class sK{initialTeardown;static EMPTY=(()=>{let Z=new sK;return Z.closed=!0,Z})();closed=!1;_finalizers=null;constructor(Z){this.initialTeardown=Z}unsubscribe(){let Z;if(!this.closed){this.closed=!0;let{initialTeardown:$}=this;if(k0($))try{$()}catch(Y){Z=Y instanceof AQ?Y.errors:[Y]}let{_finalizers:J}=this;if(J){this._finalizers=null;for(let Y of J)try{TG(Y)}catch(X){if(Z=Z??[],X instanceof AQ)Z.push(...X.errors);else Z.push(X)}}if(Z)throw new AQ(Z)}}add(Z){if(Z&&Z!==this)if(this.closed)TG(Z);else{if(Z&&"add"in Z)Z.add(()=>{this.remove(Z)});this._finalizers??=new Set,this._finalizers.add(Z)}}remove(Z){this._finalizers?.delete(Z)}}dG.Subscription=sK;if(typeof Symbol.dispose==="symbol")sK.prototype[Symbol.dispose]=sK.prototype.unsubscribe;function TG(Z){if(k0(Z))Z();else Z.unsubscribe()}class o$ extends sK{isStopped=!1;destination;_nextOverride=null;_errorOverride=null;_completeOverride=null;_onFinalize=null;constructor(Z,$){super();if(this.destination=Z instanceof o$?Z:VT(Z),this._nextOverride=$?.next??null,this._errorOverride=$?.error??null,this._completeOverride=$?.complete??null,this._onFinalize=$?.finalize??null,this._next=this._nextOverride?PT:this._next,this._error=this._errorOverride?ET:this._error,this._complete=this._completeOverride?fT:this._complete,AT(Z))Z.add(this)}next(Z){if(this.isStopped)hW(cG(Z),this);else this._next(Z)}error(Z){if(this.isStopped)hW(bG(Z),this);else this.isStopped=!0,this._error(Z)}complete(){if(this.isStopped)hW(dG.COMPLETE_NOTIFICATION,this);else this.isStopped=!0,this._complete()}unsubscribe(){if(!this.closed)this.isStopped=!0,super.unsubscribe(),this._onFinalize?.()}_next(Z){this.destination.next(Z)}_error(Z){try{this.destination.error(Z)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}dG.Subscriber=o$;dG.config={onUnhandledError:null,onStoppedNotification:null};function PT(Z){try{this._nextOverride(Z)}catch($){this.destination.error($)}}function ET(Z){try{this._errorOverride(Z)}catch($){this.destination.error($)}finally{this.unsubscribe()}}function fT(){try{this._completeOverride()}catch(Z){this.destination.error(Z)}finally{this.unsubscribe()}}class hG{partialObserver;constructor(Z){this.partialObserver=Z}next(Z){let{partialObserver:$}=this;if($.next)try{$.next(Z)}catch(J){aK(J)}}error(Z){let{partialObserver:$}=this;if($.error)try{$.error(Z)}catch(J){aK(J)}else aK(Z)}complete(){let{partialObserver:Z}=this;if(Z.complete)try{Z.complete()}catch($){aK($)}}}function VT(Z){return new hG(!Z||k0(Z)?{next:Z??void 0}:Z)}function hW(Z,$){let{onStoppedNotification:J}=dG.config;J&&setTimeout(()=>J(Z,$))}function AT(Z){return Z&&k0(Z.unsubscribe)&&k0(Z.add)}function MT({destination:Z,...$}){return new o$(Z,$)}dG.operate=MT;class m8{constructor(Z){if(Z)this._subscribe=Z}subscribe(Z){let $=Z instanceof o$?Z:new o$(Z);return $.add(this._trySubscribe($)),$}_trySubscribe(Z){try{return this._subscribe(Z)}catch($){Z.error($)}}forEach(Z){return new Promise(($,J)=>{let Y=new o$({next:(X)=>{try{Z(X)}catch(z){J(z),Y.unsubscribe()}},error:J,complete:$});this.subscribe(Y)})}_subscribe(Z){return}[Symbol.observable??"@@observable"](){return this}pipe(...Z){return Z.reduce(xT,this)}[Symbol.asyncIterator](){let Z,$=!1,J,Y=!1,X=[],z=[],K=(q)=>{$=!0,J=q;while(z.length){let[L,D]=z.shift();D(q)}},H=()=>{Y=!0;while(z.length){let[q]=z.shift();q({value:void 0,done:!0})}};return{next:()=>{if(!Z)Z=this.subscribe({next:(q)=>{if(z.length){let[L]=z.shift();L({value:q,done:!1})}else X.push(q)},error:K,complete:H});if(X.length)return Promise.resolve({value:X.shift(),done:!1});if(Y)return Promise.resolve({value:void 0,done:!0});if($)return Promise.reject(J);return new Promise((q,L)=>{z.push([q,L])})},throw:(q)=>{return Z?.unsubscribe(),K(q),Promise.reject(q)},return:()=>{return Z?.unsubscribe(),H(),Promise.resolve({value:void 0,done:!0})},[Symbol.asyncIterator](){return this}}}}dG.Observable=m8;function xT(Z,$){return $(Z)}function aK(Z){setTimeout(()=>{let{onUnhandledError:$}=dG.config;if($)$(Z);else throw Z})}dG.reportUnhandledError=aK;function TT(Z){switch(jG(Z)){case I0.Own:return Z;case I0.InteropObservable:return CT(Z);case I0.ArrayLike:return RG(Z);case I0.Promise:return vG(Z);case I0.AsyncIterable:return yG(Z);case I0.Iterable:return hT(Z);case I0.ReadableStreamLike:return RT(Z)}}dG.from=TT;function CT(Z){return new m8(($)=>{let J=Z[Symbol.observable??"@@observable"]();if(k0(J.subscribe))return J.subscribe($);throw TypeError("Provided object does not correctly implement Symbol.observable")})}function RG(Z){return new m8(($)=>{mG(Z,$)})}dG.fromArrayLike=RG;function vG(Z){return new m8(($)=>{Z.then((J)=>{if(!$.closed)$.next(J),$.complete()},(J)=>$.error(J)).then(null,aK)})}dG.fromPromise=vG;function hT(Z){return new m8(($)=>{for(let J of Z)if($.next(J),$.closed)return;$.complete()})}function yG(Z){return new m8(($)=>{vT(Z,$).catch((J)=>$.error(J))})}function RT(Z){return yG(_G(Z))}async function vT(Z,$){for await(let J of Z)if($.next(J),$.closed)return;$.complete()}function mG(Z,$){let J=Z.length;for(let Y=0;Y<J;Y++){if($.closed)return;$.next(Z[Y])}$.complete()}dG.subscribeToArray=mG;var I0;(function(Z){Z[Z.Own=0]="Own",Z[Z.InteropObservable=1]="InteropObservable",Z[Z.ArrayLike=2]="ArrayLike",Z[Z.Promise=3]="Promise",Z[Z.AsyncIterable=4]="AsyncIterable",Z[Z.Iterable=5]="Iterable",Z[Z.ReadableStreamLike=6]="ReadableStreamLike"})(I0=dG.ObservableInputType||(dG.ObservableInputType={}));function jG(Z){if(Z instanceof m8)return I0.Own;if(jT(Z))return I0.InteropObservable;if(gG(Z))return I0.ArrayLike;if(SG(Z))return I0.Promise;if(yT(Z))return I0.AsyncIterable;if(_T(Z))return I0.Iterable;if(mT(Z))return I0.ReadableStreamLike;throw TypeError(`You provided ${Z!==null&&typeof Z==="object"?"an invalid object":`'${Z}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}dG.getObservableInputType=jG;function k0(Z){return typeof Z==="function"}dG.isFunction=k0;function yT(Z){return Symbol.asyncIterator&&k0(Z?.[Symbol.asyncIterator])}async function*_G(Z){let $=Z.getReader();try{while(!0){let{value:J,done:Y}=await $.read();if(Y)return;yield J}}finally{$.releaseLock()}}dG.readableStreamLikeToAsyncGenerator=_G;function mT(Z){return k0(Z?.getReader)}function SG(Z){return k0(Z?.then)}dG.isPromise=SG;function jT(Z){return k0(Z[Symbol.observable??"@@observable"])}function _T(Z){return k0(Z?.[Symbol.iterator])}function gG(Z){return Z&&typeof Z.length==="number"&&!k0(Z)}dG.isArrayLike=gG;function ST(Z){return!!Z&&(Z instanceof m8||k0(Z.lift)&&k0(Z.subscribe))}dG.isObservable=ST;dG.COMPLETE_NOTIFICATION=(()=>XH("C",void 0,void 0))();function bG(Z){return XH("E",void 0,Z)}dG.errorNotification=bG;function cG(Z){return XH("N",Z,void 0)}dG.nextNotification=cG;function XH(Z,$,J){return{kind:Z,value:$,error:J}}dG.createNotification=XH});var iG=W((pG)=>{Object.defineProperty(pG,"__esModule",{value:!0});pG.performanceTimestampProvider=void 0;pG.performanceTimestampProvider={now(){return(pG.performanceTimestampProvider.delegate||performance).now()},delegate:void 0}});var yW=W((nG)=>{Object.defineProperty(nG,"__esModule",{value:!0});nG.animationFrameProvider=void 0;var YC=U();nG.animationFrameProvider={schedule(Z){let $=requestAnimationFrame,J=cancelAnimationFrame,{delegate:Y}=nG.animationFrameProvider;if(Y)$=Y.requestAnimationFrame,J=Y.cancelAnimationFrame;let X=$((z)=>{J=void 0,Z(z)});return new YC.Subscription(()=>J?.(X))},requestAnimationFrame(...Z){let{delegate:$}=nG.animationFrameProvider;return($?.requestAnimationFrame||requestAnimationFrame)(...Z)},cancelAnimationFrame(...Z){let{delegate:$}=nG.animationFrameProvider;return($?.cancelAnimationFrame||cancelAnimationFrame)(...Z)},delegate:void 0}});var oG=W((sG)=>{Object.defineProperty(sG,"__esModule",{value:!0});sG.animationFrames=void 0;var XC=U(),zC=iG(),rG=yW();function KC(Z){return Z?aG(Z):QC}sG.animationFrames=KC;function aG(Z){return new XC.Observable(($)=>{let J=Z||zC.performanceTimestampProvider,Y=J.now(),X=0,z=()=>{if(!$.closed)X=rG.animationFrameProvider.requestAnimationFrame((K)=>{X=0;let H=J.now();$.next({timestamp:Z?H:K,elapsed:H-Y}),z()})};return z(),()=>{if(X)rG.animationFrameProvider.cancelAnimationFrame(X)}})}var QC=aG()});var q0=W((ZL)=>{Object.defineProperty(ZL,"__esModule",{value:!0});ZL.Subject=void 0;var mW=U();class eG extends mW.Observable{_closed=!1;get closed(){return this._closed}_observerCounter=0;currentObservers=new Map;observerSnapshot;get observers(){return this.observerSnapshot??=Array.from(this.currentObservers.values())}hasError=!1;thrownError=null;constructor(){super()}_clearObservers(){this.currentObservers.clear(),this.observerSnapshot=void 0}next(Z){if(!this._closed){let{observers:$}=this,J=$.length;for(let Y=0;Y<J;Y++)$[Y].next(Z)}}error(Z){if(!this._closed){this.hasError=this._closed=!0,this.thrownError=Z;let{observers:$}=this,J=$.length;for(let Y=0;Y<J;Y++)$[Y].error(Z);this._clearObservers()}}complete(){if(!this._closed){this._closed=!0;let{observers:Z}=this,$=Z.length;for(let J=0;J<$;J++)Z[J].complete();this._clearObservers()}}unsubscribe(){this._closed=!0,this._clearObservers()}get observed(){return this.currentObservers.size>0}_subscribe(Z){return this._checkFinalizedStatuses(Z),this._innerSubscribe(Z)}_innerSubscribe(Z){if(this.hasError||this._closed)return mW.Subscription.EMPTY;let{currentObservers:$}=this,J=this._observerCounter++;return $.set(J,Z),this.observerSnapshot=void 0,Z.add(()=>{$.delete(J),this.observerSnapshot=void 0}),Z}_checkFinalizedStatuses(Z){let{hasError:$,thrownError:J,_closed:Y}=this;if($)Z.error(J);else if(Y)Z.complete()}asObservable(){return new mW.Observable((Z)=>this.subscribe(Z))}}ZL.Subject=eG});var zL=W((YL)=>{Object.defineProperty(YL,"__esModule",{value:!0});YL.BehaviorSubject=void 0;var HC=q0();class JL extends HC.Subject{_value;constructor(Z){super();this._value=Z}get value(){return this.getValue()}_subscribe(Z){let $=super._subscribe(Z);return!$.closed&&Z.next(this._value),$}getValue(){let{hasError:Z,thrownError:$,_value:J}=this;if(Z)throw $;return J}next(Z){super.next(this._value=Z)}}YL.BehaviorSubject=JL});var zH=W((KL)=>{Object.defineProperty(KL,"__esModule",{value:!0});KL.dateTimestampProvider=void 0;KL.dateTimestampProvider={now(){return(KL.dateTimestampProvider.delegate||Date).now()},delegate:void 0}});var _W=W((HL)=>{Object.defineProperty(HL,"__esModule",{value:!0});HL.ReplaySubject=void 0;var WC=q0(),qC=zH();class QL extends WC.Subject{_bufferSize;_windowTime;_timestampProvider;_buffer=[];_infiniteTimeWindow=!0;constructor(Z=1/0,$=1/0,J=qC.dateTimestampProvider){super();this._bufferSize=Z,this._windowTime=$,this._timestampProvider=J,this._infiniteTimeWindow=$===1/0,this._bufferSize=Math.max(1,Z),this._windowTime=Math.max(1,$)}next(Z){let{_closed:$,_buffer:J,_infiniteTimeWindow:Y,_timestampProvider:X,_windowTime:z}=this;if(!$)J.push(Z),!Y&&J.push(X.now()+z);this._trimBuffer(),super.next(Z)}_subscribe(Z){this._trimBuffer();let $=this._innerSubscribe(Z),{_infiniteTimeWindow:J,_buffer:Y}=this,X=Y.slice();for(let z=0;z<X.length&&!Z.closed;z+=J?1:2)Z.next(X[z]);return this._checkFinalizedStatuses(Z),$}_trimBuffer(){let{_bufferSize:Z,_timestampProvider:$,_buffer:J,_infiniteTimeWindow:Y}=this,X=(Y?1:2)*Z;if(Z<1/0&&X<J.length&&J.splice(0,J.length-X),!Y){let z=$.now(),K=0;for(let H=1;H<J.length&&J[H]<=z;H+=2)K=H;K&&J.splice(0,K+1)}}}HL.ReplaySubject=QL});var SW=W((NL)=>{Object.defineProperty(NL,"__esModule",{value:!0});NL.AsyncSubject=void 0;var NC=q0();class qL extends NC.Subject{_value=null;_hasValue=!1;_isComplete=!1;_checkFinalizedStatuses(Z){let{hasError:$,_hasValue:J,_value:Y,thrownError:X,_closed:z,_isComplete:K}=this;if($)Z.error(X);else if(z||K)J&&Z.next(Y),Z.complete()}next(Z){if(!this._closed)this._value=Z,this._hasValue=!0}complete(){let{_hasValue:Z,_value:$,_isComplete:J}=this;if(!J)this._isComplete=!0,Z&&super.next($),super.complete()}}NL.AsyncSubject=qL});var DL=W((GL)=>{Object.defineProperty(GL,"__esModule",{value:!0});GL.Action=void 0;var BC=U();class FL extends BC.Subscription{constructor(Z,$){super()}schedule(Z,$=0){return this}}GL.Action=FL});var UL=W((wL)=>{Object.defineProperty(wL,"__esModule",{value:!0});wL.intervalProvider=void 0;wL.intervalProvider={setInterval(Z,$,...J){let{delegate:Y}=wL.intervalProvider;if(Y?.setInterval)return Y.setInterval(Z,$,...J);return setInterval(Z,$,...J)},clearInterval(Z){let{delegate:$}=wL.intervalProvider;return($?.clearInterval||clearInterval)(Z)},delegate:void 0}});var e$=W((OL)=>{Object.defineProperty(OL,"__esModule",{value:!0});OL.arrRemove=void 0;function FC(Z,$){if(Z){let J=Z.indexOf($);0<=J&&Z.splice(J,1)}}OL.arrRemove=FC});var tK=W((EL)=>{Object.defineProperty(EL,"__esModule",{value:!0});EL.AsyncAction=void 0;var GC=DL(),kL=UL(),LC=e$();class PL extends GC.Action{scheduler;work;id;state;delay;pending=!1;constructor(Z,$){super(Z,$);this.scheduler=Z,this.work=$}schedule(Z,$=0){if(this.closed)return this;this.state=Z;let J=this.id,Y=this.scheduler;if(J!=null)this.id=this.recycleAsyncId(Y,J,$);return this.pending=!0,this.delay=$,this.id=this.id??this.requestAsyncId(Y,this.id,$),this}requestAsyncId(Z,$,J=0){return kL.intervalProvider.setInterval(Z.flush.bind(Z,this),J)}recycleAsyncId(Z,$,J=0){if(J!=null&&this.delay===J&&this.pending===!1)return $;if($!=null)kL.intervalProvider.clearInterval($);return}execute(Z,$){if(this.closed)return Error("executing a cancelled action");this.pending=!1;let J=this._execute(Z,$);if(J)return J;else if(this.pending===!1&&this.id!=null)this.id=this.recycleAsyncId(this.scheduler,this.id,null)}_execute(Z,$){let J=!1,Y;try{this.work(Z)}catch(X){J=!0,Y=X?X:Error("Scheduled action threw falsy error")}if(J)return this.unsubscribe(),Y}unsubscribe(){if(!this.closed){let{id:Z,scheduler:$}=this,{actions:J}=$;if(this.work=this.state=this.scheduler=null,this.pending=!1,(0,LC.arrRemove)(J,this),Z!=null)this.id=this.recycleAsyncId($,Z,null);this.delay=null,super.unsubscribe()}}}EL.AsyncAction=PL});var xL=W((AL)=>{Object.defineProperty(AL,"__esModule",{value:!0});AL.TestTools=AL.Immediate=void 0;var DC=1,gW,QH={};function VL(Z){if(Z in QH)return delete QH[Z],!0;return!1}AL.Immediate={setImmediate(Z){let $=DC++;if(QH[$]=!0,!gW)gW=Promise.resolve();return gW.then(()=>VL($)&&Z()),$},clearImmediate(Z){VL(Z)}};AL.TestTools={pending(){return Object.keys(QH).length}}});var CL=W((TL)=>{Object.defineProperty(TL,"__esModule",{value:!0});TL.immediateProvider=void 0;var UC=xL(),{setImmediate:OC,clearImmediate:IC}=UC.Immediate;TL.immediateProvider={setImmediate(...Z){let{delegate:$}=TL.immediateProvider;return($?.setImmediate||OC)(...Z)},clearImmediate(Z){let{delegate:$}=TL.immediateProvider;return($?.clearImmediate||IC)(Z)},delegate:void 0}});var mL=W((vL)=>{Object.defineProperty(vL,"__esModule",{value:!0});vL.AsapAction=void 0;var kC=tK(),hL=CL();class RL extends kC.AsyncAction{scheduler;work;constructor(Z,$){super(Z,$);this.scheduler=Z,this.work=$}requestAsyncId(Z,$,J=0){if(J!==null&&J>0)return super.requestAsyncId(Z,$,J);return Z.actions.push(this),Z._scheduled||(Z._scheduled=hL.immediateProvider.setImmediate(Z.flush.bind(Z,void 0)))}recycleAsyncId(Z,$,J=0){if(J!=null?J>0:this.delay>0)return super.recycleAsyncId(Z,$,J);let{actions:Y}=Z;if($!=null&&Y[Y.length-1]?.id!==$){if(hL.immediateProvider.clearImmediate($),Z._scheduled===$)Z._scheduled=void 0}return}}vL.AsapAction=RL});var cW=W((jL)=>{Object.defineProperty(jL,"__esModule",{value:!0});jL.Scheduler=void 0;var PC=zH();class bW{schedulerActionCtor;static now=PC.dateTimestampProvider.now;constructor(Z,$=bW.now){this.schedulerActionCtor=Z,this.now=$}now;schedule(Z,$=0,J){return new this.schedulerActionCtor(this,Z).schedule(J,$)}}jL.Scheduler=bW});var oK=W((bL)=>{Object.defineProperty(bL,"__esModule",{value:!0});bL.AsyncScheduler=void 0;var SL=cW();class gL extends SL.Scheduler{actions=[];_active=!1;_scheduled;constructor(Z,$=SL.Scheduler.now){super(Z,$)}flush(Z){let{actions:$}=this;if(this._active){$.push(Z);return}let J;this._active=!0;do if(J=Z.execute(Z.state,Z.delay))break;while(Z=$.shift());if(this._active=!1,J){while(Z=$.shift())Z.unsubscribe();throw J}}}bL.AsyncScheduler=gL});var pL=W((uL)=>{Object.defineProperty(uL,"__esModule",{value:!0});uL.AsapScheduler=void 0;var EC=oK();class dL extends EC.AsyncScheduler{flush(Z){this._active=!0;let $=this._scheduled;this._scheduled=void 0;let{actions:J}=this,Y;Z=Z||J.shift();do if(Y=Z.execute(Z.state,Z.delay))break;while((Z=J[0])&&Z.id===$&&J.shift());if(this._active=!1,Y){while((Z=J[0])&&Z.id===$&&J.shift())Z.unsubscribe();throw Y}}}uL.AsapScheduler=dL});var rL=W((iL)=>{Object.defineProperty(iL,"__esModule",{value:!0});iL.asapScheduler=void 0;var fC=mL(),VC=pL();iL.asapScheduler=new VC.AsapScheduler(fC.AsapAction)});var T0=W((aL)=>{Object.defineProperty(aL,"__esModule",{value:!0});aL.asyncScheduler=void 0;var AC=tK(),MC=oK();aL.asyncScheduler=new MC.AsyncScheduler(AC.AsyncAction)});var ZD=W((oL)=>{Object.defineProperty(oL,"__esModule",{value:!0});oL.QueueAction=void 0;var xC=tK();class tL extends xC.AsyncAction{scheduler;work;constructor(Z,$){super(Z,$);this.scheduler=Z,this.work=$}schedule(Z,$=0){if($>0)return super.schedule(Z,$);return this.delay=$,this.state=Z,this.scheduler.flush(this),this}execute(Z,$){return $>0||this.closed?super.execute(Z,$):this._execute(Z,$)}requestAsyncId(Z,$,J=0){if(J!=null&&J>0||J==null&&this.delay>0)return super.requestAsyncId(Z,$,J);return Z.flush(this),0}}oL.QueueAction=tL});var XD=W((JD)=>{Object.defineProperty(JD,"__esModule",{value:!0});JD.QueueScheduler=void 0;var TC=oK();class $D extends TC.AsyncScheduler{}JD.QueueScheduler=$D});var QD=W((zD)=>{Object.defineProperty(zD,"__esModule",{value:!0});zD.queueScheduler=void 0;var CC=ZD(),hC=XD();zD.queueScheduler=new hC.QueueScheduler(CC.QueueAction)});var BD=W((qD)=>{Object.defineProperty(qD,"__esModule",{value:!0});qD.AnimationFrameAction=void 0;var RC=tK(),HD=yW();class WD extends RC.AsyncAction{scheduler;work;constructor(Z,$){super(Z,$);this.scheduler=Z,this.work=$}requestAsyncId(Z,$,J=0){if(J!==null&&J>0)return super.requestAsyncId(Z,$,J);return Z.actions.push(this),Z._scheduled||(Z._scheduled=HD.animationFrameProvider.requestAnimationFrame(()=>Z.flush(void 0)))}recycleAsyncId(Z,$,J=0){if(J!=null?J>0:this.delay>0)return super.recycleAsyncId(Z,$,J);let{actions:Y}=Z;if($!=null&&Y[Y.length-1]?.id!==$)HD.animationFrameProvider.cancelAnimationFrame($),Z._scheduled=void 0;return}}qD.AnimationFrameAction=WD});var DD=W((GD)=>{Object.defineProperty(GD,"__esModule",{value:!0});GD.AnimationFrameScheduler=void 0;var vC=oK();class FD extends vC.AsyncScheduler{flush(Z){this._active=!0;let $=this._scheduled;this._scheduled=void 0;let{actions:J}=this,Y;Z=Z||J.shift();do if(Y=Z.execute(Z.state,Z.delay))break;while((Z=J[0])&&Z.id===$&&J.shift());if(this._active=!1,Y){while((Z=J[0])&&Z.id===$&&J.shift())Z.unsubscribe();throw Y}}}GD.AnimationFrameScheduler=FD});var OD=W((wD)=>{Object.defineProperty(wD,"__esModule",{value:!0});wD.animationFrameScheduler=void 0;var yC=BD(),mC=DD();wD.animationFrameScheduler=new mC.AnimationFrameScheduler(yC.AnimationFrameAction)});var ED=W((kD)=>{Object.defineProperty(kD,"__esModule",{value:!0});kD.VirtualAction=kD.VirtualTimeScheduler=void 0;var jC=tK(),_C=U(),SC=oK();class ID extends SC.AsyncScheduler{maxFrames;static frameTimeFactor=10;frame=0;index=-1;constructor(Z=xQ,$=1/0){super(Z,()=>this.frame);this.maxFrames=$}flush(){let{actions:Z,maxFrames:$}=this,J,Y;while((Y=Z[0])&&Y.delay<=$)if(Z.shift(),this.frame=Y.delay,J=Y.execute(Y.state,Y.delay))break;if(J){while(Y=Z.shift())Y.unsubscribe();throw J}}}kD.VirtualTimeScheduler=ID;class xQ extends jC.AsyncAction{scheduler;work;index;active=!0;constructor(Z,$,J=Z.index+=1){super(Z,$);this.scheduler=Z,this.work=$,this.index=J,this.index=Z.index=J}schedule(Z,$=0){if(Number.isFinite($)){if(!this.id)return super.schedule(Z,$);this.active=!1;let J=new xQ(this.scheduler,this.work);return this.add(J),J.schedule(Z,$)}else return _C.Subscription.EMPTY}requestAsyncId(Z,$,J=0){this.delay=Z.frame+J;let{actions:Y}=Z;return Y.push(this),Y.sort(xQ.sortActions),1}recycleAsyncId(Z,$,J=0){return}_execute(Z,$){if(this.active===!0)return super._execute(Z,$)}static sortActions(Z,$){if(Z.delay===$.delay)if(Z.index===$.index)return 0;else if(Z.index>$.index)return 1;else return-1;else if(Z.delay>$.delay)return 1;else return-1}}kD.VirtualAction=xQ});var dW=W((fD)=>{Object.defineProperty(fD,"__esModule",{value:!0});fD.rx=void 0;var bC=U();function cC(Z,...$){return $.reduce(dC,(0,bC.from)(Z))}fD.rx=cC;function dC(Z,$){return $(Z)}});var uW=W((AD)=>{Object.defineProperty(AD,"__esModule",{value:!0});AD.pipe=void 0;function uC(...Z){return Z.length===1?Z[0]:($)=>Z.reduce(lC,$)}AD.pipe=uC;function lC(Z,$){return $(Z)}});var K0=W((xD)=>{Object.defineProperty(xD,"__esModule",{value:!0});xD.noop=void 0;function pC(){}xD.noop=pC});var C0=W((CD)=>{Object.defineProperty(CD,"__esModule",{value:!0});CD.identity=void 0;function iC(Z){return Z}CD.identity=iC});var j8=W((vD)=>{Object.defineProperty(vD,"__esModule",{value:!0});vD.EmptyError=void 0;class RD extends Error{constructor(){super("no elements in sequence");this.name="EmptyError"}}vD.EmptyError=RD});var _D=W((mD)=>{Object.defineProperty(mD,"__esModule",{value:!0});mD.lastValueFrom=void 0;var nC=j8();function rC(Z,$){let J=typeof $==="object";return new Promise((Y,X)=>{let z=!1,K;Z.subscribe({next:(H)=>{K=H,z=!0},error:X,complete:()=>{if(z)Y(K);else if(J)Y($.defaultValue);else X(new nC.EmptyError)}})})}mD.lastValueFrom=rC});var bD=W((SD)=>{Object.defineProperty(SD,"__esModule",{value:!0});SD.firstValueFrom=void 0;var aC=U(),sC=j8();function tC(Z,$){let J=typeof $==="object";return new Promise((Y,X)=>{let z=new aC.Subscriber({next:(K)=>{Y(K),z.unsubscribe()},error:X,complete:()=>{if(J)Y($.defaultValue);else X(new sC.EmptyError)}});Z.subscribe(z)})}SD.firstValueFrom=tC});var lW=W((dD)=>{Object.defineProperty(dD,"__esModule",{value:!0});dD.ArgumentOutOfRangeError=void 0;class cD extends Error{constructor(){super("argument out of range");this.name="ArgumentOutOfRangeError"}}dD.ArgumentOutOfRangeError=cD});var pW=W((pD)=>{Object.defineProperty(pD,"__esModule",{value:!0});pD.NotFoundError=void 0;class lD extends Error{constructor(Z){super(Z);this.name="NotFoundError"}}pD.NotFoundError=lD});var iW=W((rD)=>{Object.defineProperty(rD,"__esModule",{value:!0});rD.SequenceError=void 0;class nD extends Error{constructor(Z){super(Z);this.name="SequenceError"}}rD.SequenceError=nD});var WH=W((sD)=>{Object.defineProperty(sD,"__esModule",{value:!0});sD.isValidDate=void 0;function oC(Z){return Z instanceof Date&&!isNaN(Z)}sD.isValidDate=oC});var b0=W((oD)=>{Object.defineProperty(oD,"__esModule",{value:!0});oD.executeSchedule=void 0;function eC(Z,$,J,Y=0,X=!1){if(!Z.closed){let z=$.schedule(function(){if(J(),X)Z.add(this.schedule(null,Y));else this.unsubscribe()},Y);if(Z.add(z),!X)return z}}oD.executeSchedule=eC});var qH=W((Zw)=>{Object.defineProperty(Zw,"__esModule",{value:!0});Zw.timeout=Zw.TimeoutError=void 0;var Zh=T0(),$h=WH(),nW=U(),Jh=b0();class rW extends Error{info;constructor(Z=null){super("Timeout has occurred");this.info=Z,this.name="TimeoutError"}}Zw.TimeoutError=rW;function Yh(Z,$){let{first:J,each:Y,with:X=Xh,scheduler:z=$??Zh.asyncScheduler,meta:K=null}=(0,$h.isValidDate)(Z)?{first:Z}:typeof Z==="number"?{each:Z}:Z;if(J==null&&Y==null)throw TypeError("No timeout provided.");return(H)=>new nW.Observable((q)=>{let L,D,E=null,P=0,M=(V)=>{D=(0,Jh.executeSchedule)(q,z,()=>{try{L.unsubscribe(),(0,nW.from)(X({meta:K,lastValue:E,seen:P})).subscribe(q)}catch(y){q.error(y)}},V)};L=H.subscribe((0,nW.operate)({destination:q,next:(V)=>{D?.unsubscribe(),P++,q.next(E=V),Y>0&&M(Y)},finalize:()=>{D?.unsubscribe(),E=null}})),!P&&M(J!=null?typeof J==="number"?J:+J-z.now():Y)})}Zw.timeout=Yh;function Xh(Z){throw new rW(Z)}});var TQ=W((Jw)=>{Object.defineProperty(Jw,"__esModule",{value:!0});Jw.isScheduler=void 0;var Kh=U();function Qh(Z){return Z&&(0,Kh.isFunction)(Z.schedule)}Jw.isScheduler=Qh});var eK=W((zw)=>{Object.defineProperty(zw,"__esModule",{value:!0});zw.map=void 0;var Xw=U();function Hh(Z){return($)=>new Xw.Observable((J)=>{let Y=0;$.subscribe((0,Xw.operate)({destination:J,next:(X)=>{J.next(Z(X,Y++))}}))})}zw.map=Hh});var ZQ=W((Qw)=>{Object.defineProperty(Qw,"__esModule",{value:!0});Qw.mapOneOrManyArgs=void 0;var Wh=eK(),{isArray:qh}=Array;function Nh(Z,$){return qh($)?Z(...$):Z($)}function Bh(Z){return(0,Wh.map)(($)=>Nh(Z,$))}Qw.mapOneOrManyArgs=Bh});var NH=W((qw)=>{Object.defineProperty(qw,"__esModule",{value:!0});qw.observeOn=void 0;var aW=b0(),Ww=U();function Fh(Z,$=0){return(J)=>new Ww.Observable((Y)=>{J.subscribe((0,Ww.operate)({destination:Y,next:(X)=>(0,aW.executeSchedule)(Y,Z,()=>Y.next(X),$),error:(X)=>(0,aW.executeSchedule)(Y,Z,()=>Y.error(X),$),complete:()=>(0,aW.executeSchedule)(Y,Z,()=>Y.complete(),$)}))})}qw.observeOn=Fh});var BH=W((Bw)=>{Object.defineProperty(Bw,"__esModule",{value:!0});Bw.subscribeOn=void 0;var Gh=U();function Lh(Z,$=0){return(J)=>new Gh.Observable((Y)=>{Y.add(Z.schedule(()=>J.subscribe(Y),$))})}Bw.subscribeOn=Lh});var Dw=W((Gw)=>{Object.defineProperty(Gw,"__esModule",{value:!0});Gw.scheduleObservable=void 0;var Dh=U(),wh=NH(),Uh=BH();function Oh(Z,$){return(0,Dh.from)(Z).pipe((0,Uh.subscribeOn)($),(0,wh.observeOn)($))}Gw.scheduleObservable=Oh});var Ow=W((ww)=>{Object.defineProperty(ww,"__esModule",{value:!0});ww.schedulePromise=void 0;var Ih=U(),kh=NH(),Ph=BH();function Eh(Z,$){return(0,Ih.from)(Z).pipe((0,Ph.subscribeOn)($),(0,kh.observeOn)($))}ww.schedulePromise=Eh});var Ew=W((kw)=>{Object.defineProperty(kw,"__esModule",{value:!0});kw.scheduleArray=void 0;var fh=U(),Iw=b0();function Vh(Z,$){return new fh.Observable((J)=>{let Y=0,X=()=>{if(Y===Z.length)J.complete();else J.next(Z[Y++]),(0,Iw.executeSchedule)(J,$,X)};return(0,Iw.executeSchedule)(J,$,X)})}kw.scheduleArray=Vh});var Mw=W((Vw)=>{Object.defineProperty(Vw,"__esModule",{value:!0});Vw.iterator=Vw.getSymbolIterator=void 0;function fw(){if(typeof Symbol!=="function"||!Symbol.iterator)return"@@iterator";return Symbol.iterator}Vw.getSymbolIterator=fw;Vw.iterator=fw()});var sW=W((Cw)=>{Object.defineProperty(Cw,"__esModule",{value:!0});Cw.scheduleIterable=void 0;var xw=U(),Mh=Mw(),Tw=b0();function xh(Z,$){return new xw.Observable((J)=>{let Y;return(0,Tw.executeSchedule)(J,$,()=>{Y=Z[Mh.iterator](),(0,Tw.executeSchedule)(J,$,()=>{let X,z;try{({value:X,done:z}=Y.next())}catch(K){J.error(K);return}if(z)J.complete();else J.next(X)},0,!0)}),()=>(0,xw.isFunction)(Y?.return)&&Y.return()})}Cw.scheduleIterable=xh});var tW=W((vw)=>{Object.defineProperty(vw,"__esModule",{value:!0});vw.scheduleAsyncIterable=void 0;var Th=U(),Rw=b0();function Ch(Z,$){if(!Z)throw Error("Iterable cannot be null");return new Th.Observable((J)=>{(0,Rw.executeSchedule)(J,$,()=>{let Y=Z[Symbol.asyncIterator]();(0,Rw.executeSchedule)(J,$,()=>{Y.next().then((X)=>{if(X.done)J.complete();else J.next(X.value)})},0,!0)})})}vw.scheduleAsyncIterable=Ch});var _w=W((mw)=>{Object.defineProperty(mw,"__esModule",{value:!0});mw.scheduleReadableStreamLike=void 0;var hh=U(),Rh=tW();function vh(Z,$){return(0,Rh.scheduleAsyncIterable)((0,hh.readableStreamLikeToAsyncGenerator)(Z),$)}mw.scheduleReadableStreamLike=vh});var CQ=W((Sw)=>{Object.defineProperty(Sw,"__esModule",{value:!0});Sw.scheduled=void 0;var yh=Dw(),mh=Ow(),jh=Ew(),_h=sW(),Sh=tW(),F6=U(),gh=_w();function bh(Z,$){switch((0,F6.getObservableInputType)(Z)){case F6.ObservableInputType.Own:case F6.ObservableInputType.InteropObservable:return(0,yh.scheduleObservable)(Z,$);case F6.ObservableInputType.Promise:return(0,mh.schedulePromise)(Z,$);case F6.ObservableInputType.ArrayLike:return(0,jh.scheduleArray)(Z,$);case F6.ObservableInputType.Iterable:return(0,_h.scheduleIterable)(Z,$);case F6.ObservableInputType.AsyncIterable:return(0,Sh.scheduleAsyncIterable)(Z,$);case F6.ObservableInputType.ReadableStreamLike:return(0,gh.scheduleReadableStreamLike)(Z,$)}}Sw.scheduled=bh});var eW=W((bw)=>{Object.defineProperty(bw,"__esModule",{value:!0});bw.bindCallbackInternals=void 0;var ch=TQ(),dh=U(),uh=ZQ(),lh=SW(),ph=CQ();function oW(Z,$,J,Y){if(J)if((0,ch.isScheduler)(J))Y=J;else return function(...X){return(0,uh.mapOneOrManyArgs)(J)(oW(Z,$,Y).apply(this,X))};if(Y)return function(...X){return(0,ph.scheduled)(oW(Z,$).apply(this,X),Y)};return function(...X){let z=new lh.AsyncSubject,K=!0;return new dh.Observable((H)=>{let q=z.subscribe(H);if(K){K=!1;let L=!1,D=!1;if($.apply(this,[...X,(...E)=>{if(Z){let P=E.shift();if(P!=null){z.error(P);return}}if(z.next(1<E.length?E:E[0]),D=!0,L)z.complete()}]),D)z.complete();L=!0}return q})}}bw.bindCallbackInternals=oW});var lw=W((dw)=>{Object.defineProperty(dw,"__esModule",{value:!0});dw.bindCallback=void 0;var ih=eW();function nh(Z,$,J){return(0,ih.bindCallbackInternals)(!1,Z,$,J)}dw.bindCallback=nh});var nw=W((pw)=>{Object.defineProperty(pw,"__esModule",{value:!0});pw.bindNodeCallback=void 0;var rh=eW();function ah(Z,$,J){return(0,rh.bindCallbackInternals)(!0,Z,$,J)}pw.bindNodeCallback=ah});var Zq=W((aw)=>{Object.defineProperty(aw,"__esModule",{value:!0});aw.arrayOrObject=aw.argsArgArrayOrObject=void 0;var{isArray:sh}=Array,{getPrototypeOf:th,prototype:oh,keys:eh}=Object;function ZR(Z){if(Z.length===1){let $=Z[0],J=rw($);if(J)return J}return{args:Z,keys:null}}aw.argsArgArrayOrObject=ZR;function rw(Z){if(sh(Z))return{args:Z,keys:null};if($R(Z)){let $=eh(Z);return{args:$.map((J)=>Z[J]),keys:$}}return null}aw.arrayOrObject=rw;function $R(Z){return Z&&typeof Z==="object"&&th(Z)===oh}});var $q=W((tw)=>{Object.defineProperty(tw,"__esModule",{value:!0});tw.createObject=void 0;function YR(Z,$){return Z.reduce((J,Y,X)=>(J[Y]=$[X],J),{})}tw.createObject=YR});var k8=W((ew)=>{Object.defineProperty(ew,"__esModule",{value:!0});ew.EMPTY=void 0;var XR=U();ew.EMPTY=new XR.Observable((Z)=>Z.complete())});var FH=W((Y2)=>{Object.defineProperty(Y2,"__esModule",{value:!0});Y2.combineLatestInit=Y2.combineLatest=void 0;var Jq=U(),zR=Zq(),$2=C0(),KR=$q(),QR=k8();function HR(Z,$){let J=(0,zR.arrayOrObject)(Z);if(!J)throw TypeError("sources must be an array or object");let{args:Y,keys:X}=J;if(Y.length===0)return QR.EMPTY;return new Jq.Observable(J2(Y,X?(z)=>(0,KR.createObject)(X,z):$?(z)=>$(...z):$2.identity))}Y2.combineLatest=HR;function J2(Z,$=$2.identity){return(J)=>{let{length:Y}=Z,X=Array(Y),z=Y,K=Y;for(let H=0;H<Y;H++){let q=(0,Jq.from)(Z[H]),L=!1;q.subscribe((0,Jq.operate)({destination:J,next:(D)=>{if(X[H]=D,!L)L=!0,K--;if(!K)J.next($(Array.from(X)))},complete:()=>{if(!--z)J.complete()}}))}}}Y2.combineLatestInit=J2});var GH=W((z2)=>{Object.defineProperty(z2,"__esModule",{value:!0});z2.mergeInternals=void 0;var Yq=U(),qR=b0();function NR(Z,$,J,Y,X,z,K,H){let q=[],L=0,D=0,E=!1,P=()=>{if(E&&!q.length&&!L)$.complete()},M=(y)=>L<Y?V(y):q.push(y),V=(y)=>{z&&$.next(y),L++;let Y0=!1;(0,Yq.from)(J(y,D++)).subscribe((0,Yq.operate)({destination:$,next:(a)=>{if(X?.(a),z)M(a);else $.next(a)},complete:()=>{Y0=!0},finalize:()=>{if(Y0)try{L--;while(q.length&&L<Y){let a=q.shift();if(K)(0,qR.executeSchedule)($,K,()=>V(a));else V(a)}P()}catch(a){$.error(a)}}}))};return Z.subscribe((0,Yq.operate)({destination:$,next:M,complete:()=>{E=!0,P()}})),()=>{H?.()}}z2.mergeInternals=NR});var Z9=W((Q2)=>{Object.defineProperty(Q2,"__esModule",{value:!0});Q2.mergeMap=void 0;var BR=U(),FR=GH();function GR(Z,$=1/0){return(J)=>new BR.Observable((Y)=>(0,FR.mergeInternals)(J,Y,Z,$))}Q2.mergeMap=GR});var hQ=W((W2)=>{Object.defineProperty(W2,"__esModule",{value:!0});W2.mergeAll=void 0;var LR=Z9(),DR=C0();function wR(Z=1/0){return(0,LR.mergeMap)(DR.identity,Z)}W2.mergeAll=wR});var LH=W((N2)=>{Object.defineProperty(N2,"__esModule",{value:!0});N2.concatAll=void 0;var UR=hQ();function OR(){return(0,UR.mergeAll)(1)}N2.concatAll=OR});var G6=W((F2)=>{Object.defineProperty(F2,"__esModule",{value:!0});F2.popNumber=F2.popScheduler=F2.popResultSelector=void 0;var IR=U(),kR=TQ();function Xq(Z){return Z[Z.length-1]}function PR(Z){return(0,IR.isFunction)(Xq(Z))?Z.pop():void 0}F2.popResultSelector=PR;function ER(Z){return(0,kR.isScheduler)(Xq(Z))?Z.pop():void 0}F2.popScheduler=ER;function fR(Z,$){return typeof Xq(Z)==="number"?Z.pop():$}F2.popNumber=fR});var zq=W((L2)=>{Object.defineProperty(L2,"__esModule",{value:!0});L2.concat=void 0;var MR=U(),xR=LH(),TR=G6(),CR=CQ();function hR(...Z){let $=(0,TR.popScheduler)(Z);return(0,xR.concatAll)()($?(0,CR.scheduled)(Z,$):(0,MR.from)(Z))}L2.concat=hR});var RQ=W((U2)=>{Object.defineProperty(U2,"__esModule",{value:!0});U2.defer=void 0;var w2=U();function RR(Z){return new w2.Observable(($)=>{(0,w2.from)(Z()).subscribe($)})}U2.defer=RR});var P2=W((I2)=>{Object.defineProperty(I2,"__esModule",{value:!0});I2.connectable=void 0;var vR=q0(),yR=U(),mR=RQ(),jR={connector:()=>new vR.Subject,resetOnDisconnect:!0};function _R(Z,$=jR){let J=null,{connector:Y,resetOnDisconnect:X=!0}=$,z=Y(),K=new yR.Observable((H)=>{return z.subscribe(H)});return K.connect=()=>{if(!J||J.closed){if(J=(0,mR.defer)(()=>Z).subscribe(z),X)J.add(()=>z=Y())}return J},K}I2.connectable=_R});var V2=W((E2)=>{Object.defineProperty(E2,"__esModule",{value:!0});E2.forkJoin=void 0;var Kq=U(),SR=Zq(),gR=G6(),bR=ZQ(),cR=$q(),dR=j8();function uR(...Z){let $=(0,gR.popResultSelector)(Z),{args:J,keys:Y}=(0,SR.argsArgArrayOrObject)(Z),X=new Kq.Observable((z)=>{let{length:K}=J;if(!K){z.complete();return}let H=Array(K),q=K,L=K;for(let D=0;D<K;D++){let E=!1;(0,Kq.from)(J[D]).subscribe((0,Kq.operate)({destination:z,next:(P)=>{if(!E)E=!0,L--;H[D]=P},complete:()=>q--,finalize:()=>{if(!q||!E)if(L===0)z.next(Y?(0,cR.createObject)(Y,H):H),z.complete();else z.error(new dR.EmptyError)}}))}});return $?(0,bR.mapOneOrManyArgs)($)(X):X}E2.forkJoin=uR});var v2=W((h2)=>{Object.defineProperty(h2,"__esModule",{value:!0});h2.fromEvent=void 0;var _8=U(),lR=ZQ(),pR=["addListener","removeListener"],iR=["addEventListener","removeEventListener"],nR=["on","off"];function M2(Z,$,J,Y){if((0,_8.isFunction)(J))Y=J,J=void 0;if(Y)return(0,lR.mapOneOrManyArgs)(Y)(M2(Z,$,J));let X=x2(Z)||T2(Z)||C2(Z);if(!X&&!(0,_8.isArrayLike)(Z))throw TypeError("Invalid event target");return new _8.Observable((z)=>{let K=(...H)=>z.next(1<H.length?H:H[0]);if(X)A2(K,z,Z,$,J);else for(let H=0;H<Z.length&&!z.closed;H++){let q=Z[H];A2(K,z,q,$,J)}})}h2.fromEvent=M2;function A2(Z,$,J,Y,X){let[z,K]=rR(J);if(!z||!K)throw TypeError("Invalid event target");J[z](Y,Z,X),$.add(()=>J[K](Y,Z,X))}function rR(Z){return C2(Z)?iR:x2(Z)?pR:T2(Z)?nR:[]}function x2(Z){return(0,_8.isFunction)(Z.addListener)&&(0,_8.isFunction)(Z.removeListener)}function T2(Z){return(0,_8.isFunction)(Z.on)&&(0,_8.isFunction)(Z.off)}function C2(Z){return(0,_8.isFunction)(Z.addEventListener)&&(0,_8.isFunction)(Z.removeEventListener)}});var S2=W((j2)=>{Object.defineProperty(j2,"__esModule",{value:!0});j2.fromEventPattern=void 0;var y2=U(),aR=ZQ();function m2(Z,$,J){if(J)return(0,aR.mapOneOrManyArgs)(J)(m2(Z,$));return new y2.Observable((Y)=>{let X=(...K)=>Y.next(K.length===1?K[0]:K),z=Z(X);return(0,y2.isFunction)($)?()=>$(X,z):void 0})}j2.fromEventPattern=m2});var d2=W((b2)=>{Object.defineProperty(b2,"__esModule",{value:!0});b2.generate=void 0;var g2=C0(),sR=TQ(),tR=RQ(),oR=sW();function eR(Z,$,J,Y,X){let z,K;if(arguments.length===1)({initialState:K,condition:$,iterate:J,resultSelector:z=g2.identity,scheduler:X}=Z);else if(K=Z,!Y||(0,sR.isScheduler)(Y))z=g2.identity,X=Y;else z=Y;function*H(){for(let q=K;!$||$(q);q=J(q))yield z(q)}return(0,tR.defer)(X?()=>(0,oR.scheduleIterable)(H(),X):H)}b2.generate=eR});var p2=W((u2)=>{Object.defineProperty(u2,"__esModule",{value:!0});u2.iif=void 0;var Zv=RQ();function $v(Z,$,J){return(0,Zv.defer)(()=>Z()?$:J)}u2.iif=$v});var L6=W((n2)=>{Object.defineProperty(n2,"__esModule",{value:!0});n2.timer=void 0;var Jv=U(),Yv=T0(),Xv=TQ(),zv=WH(),i2=b0();function Kv(Z=0,$,J=Yv.asyncScheduler){let Y=-1;if($!=null)if((0,Xv.isScheduler)($))J=$;else Y=$;return new Jv.Observable((X)=>{let z=(0,zv.isValidDate)(Z)?+Z-J.now():Z;if(z<0)z=0;let K=0;return(0,i2.executeSchedule)(X,J,()=>{if(X.next(K++),0<=Y)(0,i2.executeSchedule)(X,J,()=>{X.next(K++)},Y,!0);else X.complete()},z)})}n2.timer=Kv});var Qq=W((a2)=>{Object.defineProperty(a2,"__esModule",{value:!0});a2.interval=void 0;var Qv=T0(),Hv=L6();function Wv(Z=0,$=Qv.asyncScheduler){if(Z<0)Z=0;return(0,Hv.timer)(Z,Z,$)}a2.interval=Wv});var $U=W((e2)=>{Object.defineProperty(e2,"__esModule",{value:!0});e2.merge=void 0;var t2=U(),qv=hQ(),Nv=k8(),o2=G6(),Bv=CQ();function Fv(...Z){let $=(0,o2.popScheduler)(Z),J=(0,o2.popNumber)(Z,1/0),Y=Z;return!Y.length?Nv.EMPTY:Y.length===1?(0,t2.from)(Y[0]):(0,qv.mergeAll)(J)($?(0,Bv.scheduled)(Y,$):(0,t2.from)(Y))}e2.merge=Fv});var XU=W((JU)=>{Object.defineProperty(JU,"__esModule",{value:!0});JU.of=void 0;var Gv=U();function Lv(...Z){return(0,Gv.fromArrayLike)(Z)}JU.of=Lv});var vQ=W((zU)=>{Object.defineProperty(zU,"__esModule",{value:!0});zU.argsOrArgArray=void 0;var{isArray:Dv}=Array;function wv(Z){return Z.length===1&&Dv(Z[0])?Z[0]:Z}zU.argsOrArgArray=wv});var Wq=W((HU)=>{Object.defineProperty(HU,"__esModule",{value:!0});HU.onErrorResumeNext=void 0;var Hq=U(),Uv=vQ(),QU=K0();function Ov(...Z){let $=(0,Uv.argsOrArgArray)(Z);return new Hq.Observable((J)=>{let Y=0,X=()=>{if(Y<$.length){let z;try{z=(0,Hq.from)($[Y++])}catch(H){X();return}let K=(0,Hq.operate)({destination:J,error:QU.noop,complete:QU.noop});z.subscribe(K),K.add(X)}else J.complete()};X()})}HU.onErrorResumeNext=Ov});var BU=W((qU)=>{Object.defineProperty(qU,"__esModule",{value:!0});qU.not=void 0;function Iv(Z,$){return(J,Y)=>!Z.call($,J,Y)}qU.not=Iv});var DH=W((GU)=>{Object.defineProperty(GU,"__esModule",{value:!0});GU.filter=void 0;var FU=U();function kv(Z,$){return(J)=>new FU.Observable((Y)=>{let X=0;J.subscribe((0,FU.operate)({destination:Y,next:(z)=>Z.call($,z,X++)&&Y.next(z)}))})}GU.filter=kv});var IU=W((UU)=>{Object.defineProperty(UU,"__esModule",{value:!0});UU.partition=void 0;var Pv=BU(),DU=DH(),wU=U();function Ev(Z,$,J){return[(0,DU.filter)($,J)((0,wU.from)(Z)),(0,DU.filter)((0,Pv.not)($,J))((0,wU.from)(Z))]}UU.partition=Ev});var qq=W((PU)=>{Object.defineProperty(PU,"__esModule",{value:!0});PU.raceInit=PU.race=void 0;var wH=U(),fv=vQ();function Vv(...Z){return Z=(0,fv.argsOrArgArray)(Z),Z.length===1?(0,wH.from)(Z[0]):new wH.Observable(kU(Z))}PU.race=Vv;function kU(Z){return($)=>{let J=[];for(let Y=0;J&&!$.closed&&Y<Z.length;Y++)J.push((0,wH.from)(Z[Y]).subscribe((0,wH.operate)({destination:$,next:(X)=>{if(J){for(let z=0;z<J.length;z++)z!==Y&&J[z].unsubscribe();J=null}$.next(X)}})))}}PU.raceInit=kU});var MU=W((VU)=>{Object.defineProperty(VU,"__esModule",{value:!0});VU.range=void 0;var Mv=U(),xv=k8(),fU=b0();function Tv(Z,$,J){if($==null)$=Z,Z=0;if($<=0)return xv.EMPTY;let Y=$+Z;return new Mv.Observable(J?(X)=>{let z=Z,K=()=>{if(z<Y){if(X.next(z++),!X.closed)(0,fU.executeSchedule)(X,J,K)}else X.complete()};(0,fU.executeSchedule)(X,J,K)}:(X)=>{let z=Z;while(z<Y&&!X.closed)X.next(z++);X.complete()})}VU.range=Tv});var CU=W((xU)=>{Object.defineProperty(xU,"__esModule",{value:!0});xU.throwError=void 0;var Cv=U();function hv(Z){return new Cv.Observable(($)=>{$.error(Z())})}xU.throwError=hv});var yU=W((RU)=>{Object.defineProperty(RU,"__esModule",{value:!0});RU.using=void 0;var hU=U(),Rv=k8();function vv(Z,$){return new hU.Observable((J)=>{let Y=Z(),X=$(Y);return(X?(0,hU.from)(X):Rv.EMPTY).subscribe(J),()=>{if(Y)Y.unsubscribe()}})}RU.using=vv});var UH=W((mU)=>{Object.defineProperty(mU,"__esModule",{value:!0});mU.zip=void 0;var Nq=U(),yv=vQ(),mv=k8(),jv=G6();function _v(...Z){let $=(0,jv.popResultSelector)(Z),J=(0,yv.argsOrArgArray)(Z);return J.length?new Nq.Observable((Y)=>{let X=J.map(()=>[]),z=J.map(()=>!1);Y.add(()=>{X=z=null});for(let K=0;!Y.closed&&K<J.length;K++)(0,Nq.from)(J[K]).subscribe((0,Nq.operate)({destination:Y,next:(H)=>{if(X[K].push(H),X.every((q)=>q.length)){let q=X.map((L)=>L.shift());if(Y.next($?$(...q):q),X.some((L,D)=>!L.length&&z[D]))Y.complete()}},complete:()=>{z[K]=!0,!X[K].length&&Y.complete()}}));return()=>{X=z=null}}):mv.EMPTY}mU.zip=_v});var gU=W((_U)=>{Object.defineProperty(_U,"__esModule",{value:!0});_U.NEVER=void 0;var Sv=U(),gv=K0();_U.NEVER=new Sv.Observable(gv.noop)});var cU=W((bU)=>{Object.defineProperty(bU,"__esModule",{value:!0})});var Bq=W((dU)=>{Object.defineProperty(dU,"__esModule",{value:!0});dU.audit=void 0;var OH=U();function bv(Z){return($)=>new OH.Observable((J)=>{let Y=!1,X=null,z=null,K=!1,H=()=>{if(z?.unsubscribe(),z=null,Y){Y=!1;let L=X;X=null,J.next(L)}K&&J.complete()},q=()=>{z=null,K&&J.complete()};$.subscribe((0,OH.operate)({destination:J,next:(L)=>{if(Y=!0,X=L,!z)(0,OH.from)(Z(L)).subscribe(z=(0,OH.operate)({destination:J,next:H,complete:q}))},complete:()=>{K=!0,(!Y||!z||z.closed)&&J.complete()}}))})}dU.audit=bv});var iU=W((lU)=>{Object.defineProperty(lU,"__esModule",{value:!0});lU.auditTime=void 0;var cv=T0(),dv=Bq(),uv=L6();function lv(Z,$=cv.asyncScheduler){return(0,dv.audit)(()=>(0,uv.timer)(Z,$))}lU.auditTime=lv});var aU=W((nU)=>{Object.defineProperty(nU,"__esModule",{value:!0});nU.buffer=void 0;var IH=U(),pv=K0();function iv(Z){return($)=>new IH.Observable((J)=>{let Y=[];return(0,IH.from)(Z).subscribe((0,IH.operate)({destination:J,next:()=>{let X=Y;Y=[],J.next(X)},complete:pv.noop})),$.subscribe((0,IH.operate)({destination:J,next:(X)=>Y.push(X),complete:()=>{J.next(Y),J.complete()}})),()=>{Y=null}})}nU.buffer=iv});var eU=W((tU)=>{Object.defineProperty(tU,"__esModule",{value:!0});tU.bufferCount=void 0;var sU=U(),nv=e$();function rv(Z,$=null){return $=$??Z,(J)=>new sU.Observable((Y)=>{let X=[],z=0;J.subscribe((0,sU.operate)({destination:Y,next:(K)=>{let H=null;if(z++%$===0)X.push([]);for(let q of X)if(q.push(K),Z<=q.length)H=H??[],H.push(q);if(H)for(let q of H)(0,nv.arrRemove)(X,q),Y.next(q)},complete:()=>{for(let K of X)Y.next(K);Y.complete()},finalize:()=>{X=null}}))})}tU.bufferCount=rv});var YO=W(($O)=>{Object.defineProperty($O,"__esModule",{value:!0});$O.bufferTime=void 0;var Fq=U(),av=e$(),sv=T0(),tv=G6(),ZO=b0();function ov(Z,...$){let J=(0,tv.popScheduler)($)??sv.asyncScheduler,Y=$[0]??null,X=$[1]||1/0;return(z)=>new Fq.Observable((K)=>{let H=[],q=!1,L=(P)=>{let{buffer:M,subs:V}=P;V.unsubscribe(),(0,av.arrRemove)(H,P),K.next(M),q&&D()},D=()=>{if(H){let P=new Fq.Subscription;K.add(P);let V={buffer:[],subs:P};H.push(V),(0,ZO.executeSchedule)(P,J,()=>L(V),Z)}};if(Y!==null&&Y>=0)(0,ZO.executeSchedule)(K,J,D,Y,!0);else q=!0;D();let E=(0,Fq.operate)({destination:K,next:(P)=>{let M=H.slice();for(let V of M){let{buffer:y}=V;y.push(P),X<=y.length&&L(V)}},complete:()=>{while(H?.length)K.next(H.shift().buffer);E?.unsubscribe(),K.complete(),K.unsubscribe()},finalize:()=>H=null});z.subscribe(E)})}$O.bufferTime=ov});var QO=W((zO)=>{Object.defineProperty(zO,"__esModule",{value:!0});zO.bufferToggle=void 0;var $9=U(),XO=K0(),ev=e$();function Zy(Z,$){return(J)=>new $9.Observable((Y)=>{let X=[];(0,$9.from)(Z).subscribe((0,$9.operate)({destination:Y,next:(z)=>{let K=[];X.push(K);let H=new $9.Subscription,q=()=>{(0,ev.arrRemove)(X,K),Y.next(K),H.unsubscribe()};H.add((0,$9.from)($(z)).subscribe((0,$9.operate)({destination:Y,next:q,complete:XO.noop})))},complete:XO.noop})),J.subscribe((0,$9.operate)({destination:Y,next:(z)=>{for(let K of X)K.push(z)},complete:()=>{while(X.length>0)Y.next(X.shift());Y.complete()}}))})}zO.bufferToggle=Zy});var qO=W((HO)=>{Object.defineProperty(HO,"__esModule",{value:!0});HO.bufferWhen=void 0;var kH=U(),$y=K0();function Jy(Z){return($)=>new kH.Observable((J)=>{let Y=null,X=null,z=()=>{X?.unsubscribe();let K=Y;Y=[],K&&J.next(K),(0,kH.from)(Z()).subscribe(X=(0,kH.operate)({destination:J,next:z,complete:$y.noop}))};z(),$.subscribe((0,kH.operate)({destination:J,next:(K)=>Y?.push(K),complete:()=>{Y&&J.next(Y),J.complete()},finalize:()=>Y=X=null}))})}HO.bufferWhen=Jy});var GO=W((BO)=>{Object.defineProperty(BO,"__esModule",{value:!0});BO.catchError=void 0;var Gq=U();function NO(Z){return($)=>new Gq.Observable((J)=>{let Y=null,X=!1,z;if(Y=$.subscribe((0,Gq.operate)({destination:J,error:(K)=>{if(z=(0,Gq.from)(Z(K,NO(Z)($))),Y)Y.unsubscribe(),Y=null,z.subscribe(J);else X=!0}})),X)Y.unsubscribe(),Y=null,z.subscribe(J)})}BO.catchError=NO});var Lq=W((LO)=>{Object.defineProperty(LO,"__esModule",{value:!0});LO.scanInternals=void 0;var Yy=U();function Xy(Z,$,J,Y,X,z,K){let H=J,q=$,L=0;z.subscribe((0,Yy.operate)({destination:K,next:(D)=>{let E=L++;q=H?Z(q,D,E):(H=!0,D),Y&&K.next(q)},complete:X?()=>{H&&K.next(q),K.complete()}:void 0}))}LO.scanInternals=Xy});var $Q=W((wO)=>{Object.defineProperty(wO,"__esModule",{value:!0});wO.reduce=void 0;var zy=Lq(),Ky=U();function Qy(Z,$){let J=arguments.length>=2;return(Y)=>new Ky.Observable((X)=>(0,zy.scanInternals)(Z,$,J,!1,!0,Y,X))}wO.reduce=Qy});var Dq=W((OO)=>{Object.defineProperty(OO,"__esModule",{value:!0});OO.toArray=void 0;var Hy=$Q(),Wy=U(),qy=(Z,$)=>(Z.push($),Z);function Ny(){return(Z)=>new Wy.Observable(($)=>{(0,Hy.reduce)(qy,[])(Z).subscribe($)})}OO.toArray=Ny});var wq=W((kO)=>{Object.defineProperty(kO,"__esModule",{value:!0});kO.joinAllInternals=void 0;var By=C0(),Fy=ZQ(),Gy=uW(),Ly=Z9(),Dy=Dq();function wy(Z,$){return(0,Gy.pipe)((0,Dy.toArray)(),(0,Ly.mergeMap)((J)=>Z(J)),$?(0,Fy.mapOneOrManyArgs)($):By.identity)}kO.joinAllInternals=wy});var VO=W((EO)=>{Object.defineProperty(EO,"__esModule",{value:!0});EO.combineLatestAll=void 0;var Uy=FH(),Oy=wq();function Iy(Z){return(0,Oy.joinAllInternals)(Uy.combineLatest,Z)}EO.combineLatestAll=Iy});var xO=W((AO)=>{Object.defineProperty(AO,"__esModule",{value:!0});AO.combineLatestWith=void 0;var ky=FH(),Py=U();function Ey(...Z){return($)=>new Py.Observable((J)=>(0,ky.combineLatestInit)([$,...Z])(J))}AO.combineLatestWith=Ey});var Uq=W((TO)=>{Object.defineProperty(TO,"__esModule",{value:!0});TO.concatMap=void 0;var fy=Z9();function Vy(Z){return(0,fy.mergeMap)(Z,1)}TO.concatMap=Vy});var vO=W((hO)=>{Object.defineProperty(hO,"__esModule",{value:!0});hO.concatMapTo=void 0;var Ay=Uq();function My(Z){return(0,Ay.concatMap)(()=>Z)}hO.concatMapTo=My});var _O=W((mO)=>{Object.defineProperty(mO,"__esModule",{value:!0});mO.concatWith=void 0;var yO=U(),xy=LH();function Ty(...Z){return($)=>new yO.Observable((J)=>{(0,xy.concatAll)()((0,yO.from)([$,...Z])).subscribe(J)})}mO.concatWith=Ty});var bO=W((SO)=>{Object.defineProperty(SO,"__esModule",{value:!0});SO.fromSubscribable=void 0;var Cy=U();function hy(Z){return new Cy.Observable(($)=>Z.subscribe($))}SO.fromSubscribable=hy});var lO=W((dO)=>{Object.defineProperty(dO,"__esModule",{value:!0});dO.connect=void 0;var cO=U(),Ry=q0(),vy=bO(),yy={connector:()=>new Ry.Subject};function my(Z,$=yy){let{connector:J}=$;return(Y)=>new cO.Observable((X)=>{let z=J();(0,cO.from)(Z((0,vy.fromSubscribable)(z))).subscribe(X),X.add(Y.subscribe(z))})}dO.connect=my});var nO=W((pO)=>{Object.defineProperty(pO,"__esModule",{value:!0});pO.count=void 0;var jy=$Q();function _y(Z){return(0,jy.reduce)(($,J,Y)=>!Z||Z(J,Y)?$+1:$,0)}pO.count=_y});var sO=W((rO)=>{Object.defineProperty(rO,"__esModule",{value:!0});rO.debounce=void 0;var PH=U(),Sy=K0();function gy(Z){return($)=>new PH.Observable((J)=>{let Y=!1,X=null,z=null,K=()=>{if(z?.unsubscribe(),z=null,Y){Y=!1;let H=X;X=null,J.next(H)}};$.subscribe((0,PH.operate)({destination:J,next:(H)=>{z?.unsubscribe(),Y=!0,X=H,z=(0,PH.operate)({destination:J,next:K,complete:Sy.noop}),(0,PH.from)(Z(H)).subscribe(z)},complete:()=>{K(),J.complete()},finalize:()=>{X=z=null}}))})}rO.debounce=gy});var ZI=W((oO)=>{Object.defineProperty(oO,"__esModule",{value:!0});oO.debounceTime=void 0;var by=T0(),tO=U(),cy=b0();function dy(Z,$=by.asyncScheduler){return(J)=>new tO.Observable((Y)=>{let X,z;J.subscribe((0,tO.operate)({destination:Y,next:(K)=>{X=K,z?.unsubscribe(),z=(0,cy.executeSchedule)(Y,$,()=>{z=void 0;let H=X;X=null,Y.next(H)},Z)},complete:()=>{if(z)Y.next(X);Y.complete()},finalize:()=>{X=z=null}}))})}oO.debounceTime=dy});var XI=W((JI)=>{Object.defineProperty(JI,"__esModule",{value:!0});JI.defaultIfEmpty=void 0;var $I=U();function uy(Z){return($)=>new $I.Observable((J)=>{let Y=!1;$.subscribe((0,$I.operate)({destination:J,next:(X)=>{Y=!0,J.next(X)},complete:()=>{if(!Y)J.next(Z);J.complete()}}))})}JI.defaultIfEmpty=uy});var Oq=W((KI)=>{Object.defineProperty(KI,"__esModule",{value:!0});KI.take=void 0;var ly=k8(),zI=U();function py(Z){return Z<=0?()=>ly.EMPTY:($)=>new zI.Observable((J)=>{let Y=0,X=(0,zI.operate)({destination:J,next:(z)=>{if(++Y<Z)J.next(z);else X.unsubscribe(),J.next(z),J.complete()}});$.subscribe(X)})}KI.take=py});var Iq=W((WI)=>{Object.defineProperty(WI,"__esModule",{value:!0});WI.ignoreElements=void 0;var HI=U(),iy=K0();function ny(){return(Z)=>new HI.Observable(($)=>{Z.subscribe((0,HI.operate)({destination:$,next:iy.noop}))})}WI.ignoreElements=ny});var Pq=W((FI)=>{Object.defineProperty(FI,"__esModule",{value:!0});FI.delayWhen=void 0;var ry=zq(),NI=Oq(),ay=Iq(),sy=Z9(),kq=dW(),ty=eK();function BI(Z,$){if($)return(J)=>(0,ry.concat)((0,kq.rx)($,(0,NI.take)(1),(0,ay.ignoreElements)()),(0,kq.rx)(J,BI(Z)));return(0,sy.mergeMap)((J,Y)=>(0,kq.rx)(Z(J,Y),(0,NI.take)(1),(0,ty.map)(()=>J)))}FI.delayWhen=BI});var wI=W((LI)=>{Object.defineProperty(LI,"__esModule",{value:!0});LI.delay=void 0;var oy=T0(),ey=Pq(),Zm=L6();function $m(Z,$=oy.asyncScheduler){let J=(0,Zm.timer)(Z,$);return(0,ey.delayWhen)(()=>J)}LI.delay=$m});var II=W((UI)=>{Object.defineProperty(UI,"__esModule",{value:!0});UI.observeNotification=void 0;function Jm(Z,$){let{kind:J,value:Y,error:X}=Z;if(typeof J!=="string")throw TypeError('Invalid notification, missing "kind"');J==="N"?$.next?.(Y):J==="E"?$.error?.(X):$.complete?.()}UI.observeNotification=Jm});var fI=W((PI)=>{Object.defineProperty(PI,"__esModule",{value:!0});PI.dematerialize=void 0;var Ym=II(),kI=U();function Xm(){return(Z)=>new kI.Observable(($)=>{Z.subscribe((0,kI.operate)({destination:$,next:(J)=>(0,Ym.observeNotification)(J,$)}))})}PI.dematerialize=Xm});var MI=W((VI)=>{Object.defineProperty(VI,"__esModule",{value:!0});VI.distinct=void 0;var EH=U(),zm=K0();function Km(Z,$){return(J)=>new EH.Observable((Y)=>{let X=new Set;J.subscribe((0,EH.operate)({destination:Y,next:(z)=>{let K=Z?Z(z):z;if(!X.has(K))X.add(K),Y.next(z)}})),$&&(0,EH.from)($).subscribe((0,EH.operate)({destination:Y,next:()=>X.clear(),complete:zm.noop}))})}VI.distinct=Km});var Eq=W((TI)=>{Object.defineProperty(TI,"__esModule",{value:!0});TI.distinctUntilChanged=void 0;var Qm=C0(),xI=U();function Hm(Z,$=Qm.identity){return Z=Z??Wm,(J)=>new xI.Observable((Y)=>{let X,z=!0;J.subscribe((0,xI.operate)({destination:Y,next:(K)=>{let H=$(K);if(z||!Z(X,H))z=!1,X=H,Y.next(K)}}))})}TI.distinctUntilChanged=Hm;function Wm(Z,$){return Z===$}});var vI=W((hI)=>{Object.defineProperty(hI,"__esModule",{value:!0});hI.distinctUntilKeyChanged=void 0;var qm=Eq();function Nm(Z,$){return(0,qm.distinctUntilChanged)((J,Y)=>$?$(J[Z],Y[Z]):J[Z]===Y[Z])}hI.distinctUntilKeyChanged=Nm});var SI=W((jI)=>{Object.defineProperty(jI,"__esModule",{value:!0});jI.elementAt=void 0;var yI=lW(),mI=U();function Bm(Z,$){if(Z<0)throw new yI.ArgumentOutOfRangeError;let J=arguments.length>=2;return(Y)=>new mI.Observable((X)=>{let z=0,K=(0,mI.operate)({destination:X,next:(H)=>{if(z++===Z)K.unsubscribe(),X.next(H),X.complete()},complete:()=>{if(!J)X.error(new yI.ArgumentOutOfRangeError);else X.next($),X.complete()}});Y.subscribe(K)})}jI.elementAt=Bm});var cI=W((gI)=>{Object.defineProperty(gI,"__esModule",{value:!0});gI.endWith=void 0;var fq=U();function Fm(...Z){return($)=>new fq.Observable((J)=>{$.subscribe((0,fq.operate)({destination:J,complete:()=>{(0,fq.subscribeToArray)(Z,J)}}))})}gI.endWith=Fm});var pI=W((uI)=>{Object.defineProperty(uI,"__esModule",{value:!0});uI.every=void 0;var dI=U();function Gm(Z,$){return(J)=>new dI.Observable((Y)=>{let X=0;J.subscribe((0,dI.operate)({destination:Y,next:(z)=>{if(!Z.call($,z,X++,J))Y.next(!1),Y.complete()},complete:()=>{Y.next(!0),Y.complete()}}))})}uI.every=Gm});var Vq=W((iI)=>{Object.defineProperty(iI,"__esModule",{value:!0});iI.exhaustMap=void 0;var fH=U();function Lm(Z){return($)=>new fH.Observable((J)=>{let Y=0,X=null,z=!1;$.subscribe((0,fH.operate)({destination:J,next:(K)=>{if(!X)X=(0,fH.operate)({destination:J,complete:()=>{X=null,z&&J.complete()}}),(0,fH.from)(Z(K,Y++)).subscribe(X)},complete:()=>{z=!0,!X&&J.complete()}}))})}iI.exhaustMap=Lm});var sI=W((rI)=>{Object.defineProperty(rI,"__esModule",{value:!0});rI.exhaustAll=void 0;var Dm=Vq(),wm=C0();function Um(){return(0,Dm.exhaustMap)(wm.identity)}rI.exhaustAll=Um});var eI=W((tI)=>{Object.defineProperty(tI,"__esModule",{value:!0});tI.expand=void 0;var Om=U(),Im=GH();function km(Z,$=1/0,J){return $=($||0)<1?1/0:$,(Y)=>new Om.Observable((X)=>(0,Im.mergeInternals)(Y,X,Z,$,void 0,!0,J))}tI.expand=km});var Jk=W((Zk)=>{Object.defineProperty(Zk,"__esModule",{value:!0});Zk.finalize=void 0;var Pm=U();function Em(Z){return($)=>new Pm.Observable((J)=>{$.subscribe(J),J.add(Z)})}Zk.finalize=Em});var Aq=W((zk)=>{Object.defineProperty(zk,"__esModule",{value:!0});zk.createFind=zk.find=void 0;var Yk=U();function fm(Z){return($)=>new Yk.Observable((J)=>Xk(Z,"value",$,J))}zk.find=fm;function Xk(Z,$,J,Y){let X=$==="index",z=0;J.subscribe((0,Yk.operate)({destination:Y,next:(K)=>{let H=z++;if(Z(K,H,J))Y.next(X?H:K),Y.complete()},complete:()=>{Y.next(X?-1:void 0),Y.complete()}}))}zk.createFind=Xk});var Wk=W((Qk)=>{Object.defineProperty(Qk,"__esModule",{value:!0});Qk.findIndex=void 0;var Am=U(),Mm=Aq();function xm(Z){return($)=>new Am.Observable((J)=>(0,Mm.createFind)(Z,"index",$,J))}Qk.findIndex=xm});var Fk=W((Nk)=>{Object.defineProperty(Nk,"__esModule",{value:!0});Nk.first=void 0;var qk=U(),Tm=j8();function Cm(Z,$){let J=arguments.length>=2;return(Y)=>new qk.Observable((X)=>{let z=0,K=(0,qk.operate)({destination:X,next:(H)=>{if(Z?Z(H,z++,Y):!0)K.unsubscribe(),X.next(H),X.complete()},complete:()=>{if(J)X.next($),X.complete();else X.error(new Tm.EmptyError)}});Y.subscribe(K)})}Nk.first=Cm});var Dk=W((Gk)=>{Object.defineProperty(Gk,"__esModule",{value:!0});Gk.groupBy=void 0;var yQ=U(),hm=q0();function Rm(Z,$,J,Y){return(X)=>new yQ.Observable((z)=>{let K;if(!$||typeof $==="function")K=$;else({duration:J,element:K,connector:Y}=$);let H=new Map,q=(P)=>{H.forEach(P),P(z)},L=(P)=>q((M)=>M.error(P)),D=(0,yQ.operate)({destination:z,next:(P)=>{try{let M=Z(P),V=H.get(M);if(!V){H.set(M,V=Y?Y():new hm.Subject);let y=E(M,V);if(z.next(y),J){let Y0=(0,yQ.operate)({destination:V,next:()=>{V.complete(),Y0?.unsubscribe()},finalize:()=>H.delete(M)});D.add((0,yQ.from)(J(y)).subscribe(Y0))}}V.next(K?K(P):P)}catch(M){L(M)}},error:L,complete:()=>q((P)=>P.complete()),finalize:()=>H.clear()});X.subscribe(D);function E(P,M){let V=new yQ.Observable((y)=>M.subscribe(y));return V.key=P,V}})}Gk.groupBy=Rm});var Ik=W((Uk)=>{Object.defineProperty(Uk,"__esModule",{value:!0});Uk.isEmpty=void 0;var wk=U();function vm(){return(Z)=>new wk.Observable(($)=>{Z.subscribe((0,wk.operate)({destination:$,next:()=>{$.next(!1),$.complete()},complete:()=>{$.next(!0),$.complete()}}))})}Uk.isEmpty=vm});var fk=W((Pk)=>{Object.defineProperty(Pk,"__esModule",{value:!0});Pk.last=void 0;var kk=U(),ym=j8();function mm(Z,$){let J=arguments.length>=2;return(Y)=>new kk.Observable((X)=>{let z=0,K=!1,H;Y.subscribe((0,kk.operate)({destination:X,next(q){if(!Z||Z(q,z++,Y))K=!0,H=q},complete(){if(K)X.next(H),X.complete();else if(J)X.next($),X.complete();else X.error(new ym.EmptyError)}}))})}Pk.last=mm});var Mk=W((Vk)=>{Object.defineProperty(Vk,"__esModule",{value:!0});Vk.mapTo=void 0;var jm=eK();function _m(Z){return(0,jm.map)(()=>Z)}Vk.mapTo=_m});var Ck=W((xk)=>{Object.defineProperty(xk,"__esModule",{value:!0});xk.materialize=void 0;var mQ=U();function Sm(){return(Z)=>new mQ.Observable(($)=>{Z.subscribe((0,mQ.operate)({destination:$,next:(J)=>{$.next((0,mQ.nextNotification)(J))},error:(J)=>{$.next((0,mQ.errorNotification)(J)),$.complete()},complete:()=>{$.next(mQ.COMPLETE_NOTIFICATION),$.complete()}}))})}xk.materialize=Sm});var vk=W((hk)=>{Object.defineProperty(hk,"__esModule",{value:!0});hk.max=void 0;var gm=$Q(),bm=U();function cm(Z){return(0,gm.reduce)((0,bm.isFunction)(Z)?($,J)=>Z($,J)>0?$:J:($,J)=>$>J?$:J)}hk.max=cm});var jk=W((yk)=>{Object.defineProperty(yk,"__esModule",{value:!0});yk.mergeMapTo=void 0;var dm=Z9();function um(Z,$){return(0,dm.mergeMap)(()=>Z,$)}yk.mergeMapTo=um});var gk=W((_k)=>{Object.defineProperty(_k,"__esModule",{value:!0});_k.mergeScan=void 0;var lm=U(),pm=GH();function im(Z,$,J=1/0){return(Y)=>new lm.Observable((X)=>{let z=$;return(0,pm.mergeInternals)(Y,X,(K,H)=>Z(z,K,H),J,(K)=>{z=K},!1,void 0,()=>z=null)})}_k.mergeScan=im});var uk=W((ck)=>{Object.defineProperty(ck,"__esModule",{value:!0});ck.mergeWith=void 0;var bk=U(),nm=hQ();function rm(...Z){return($)=>new bk.Observable((J)=>{(0,nm.mergeAll)()((0,bk.from)([$,...Z])).subscribe(J)})}ck.mergeWith=rm});var ik=W((lk)=>{Object.defineProperty(lk,"__esModule",{value:!0});lk.min=void 0;var am=$Q(),sm=U();function tm(Z){return(0,am.reduce)((0,sm.isFunction)(Z)?($,J)=>Z($,J)<0?$:J:($,J)=>$<J?$:J)}lk.min=tm});var ak=W((nk)=>{Object.defineProperty(nk,"__esModule",{value:!0});nk.onErrorResumeNextWith=void 0;var om=vQ(),em=Wq();function Zj(...Z){let $=(0,om.argsOrArgArray)(Z);return(J)=>(0,em.onErrorResumeNext)(J,...$)}nk.onErrorResumeNextWith=Zj});var ek=W((tk)=>{Object.defineProperty(tk,"__esModule",{value:!0});tk.pairwise=void 0;var sk=U();function $j(){return(Z)=>new sk.Observable(($)=>{let J,Y=!1;Z.subscribe((0,sk.operate)({destination:$,next:(X)=>{let z=J;J=X,Y&&$.next([z,X]),Y=!0}}))})}tk.pairwise=$j});var JP=W((ZP)=>{Object.defineProperty(ZP,"__esModule",{value:!0});ZP.raceWith=void 0;var Jj=qq(),Yj=U(),Xj=C0();function zj(...Z){return!Z.length?Xj.identity:($)=>new Yj.Observable((J)=>{(0,Jj.raceInit)([$,...Z])(J)})}ZP.raceWith=zj});var zP=W((YP)=>{Object.defineProperty(YP,"__esModule",{value:!0});YP.repeat=void 0;var VH=U(),Kj=k8(),Qj=L6();function Hj(Z){let $=1/0,J;if(Z!=null)if(typeof Z==="object")({count:$=1/0,delay:J}=Z);else $=Z;return $<=0?()=>Kj.EMPTY:(Y)=>new VH.Observable((X)=>{let z=0,K,H=()=>{if(K?.unsubscribe(),K=null,J!=null){let L=typeof J==="number"?(0,Qj.timer)(J):(0,VH.from)(J(z)),D=(0,VH.operate)({destination:X,next:()=>{D.unsubscribe(),q()}});L.subscribe(D)}else q()},q=()=>{let L=!1;if(K=Y.subscribe((0,VH.operate)({destination:X,complete:()=>{if(++z<$)if(K)H();else L=!0;else X.complete()}})),L)H()};q()})}YP.repeat=Hj});var HP=W((KP)=>{Object.defineProperty(KP,"__esModule",{value:!0});KP.repeatWhen=void 0;var AH=U(),Wj=q0();function qj(Z){return($)=>new AH.Observable((J)=>{let Y,X=!1,z,K=!1,H=!1,q=()=>H&&K&&(J.complete(),!0),L=()=>{if(!z)z=new Wj.Subject,(0,AH.from)(Z(z)).subscribe((0,AH.operate)({destination:J,next:()=>{if(Y)D();else X=!0},complete:()=>{K=!0,q()}}));return z},D=()=>{if(H=!1,Y=$.subscribe((0,AH.operate)({destination:J,complete:()=>{H=!0,!q()&&L().next()}})),X)Y.unsubscribe(),Y=null,X=!1,D()};D()})}KP.repeatWhen=qj});var NP=W((WP)=>{Object.defineProperty(WP,"__esModule",{value:!0});WP.retry=void 0;var MH=U(),Nj=C0(),Bj=L6();function Fj(Z=1/0){let $;if(Z&&typeof Z==="object")$=Z;else $={count:Z};let{count:J=1/0,delay:Y,resetOnSuccess:X=!1}=$;return J<=0?Nj.identity:(z)=>new MH.Observable((K)=>{let H=0,q,L=()=>{let D=!1;if(q=z.subscribe((0,MH.operate)({destination:K,next:(E)=>{if(X)H=0;K.next(E)},error:(E)=>{if(H++<J){let P=()=>{if(q)q.unsubscribe(),q=null,L();else D=!0};if(Y!=null){let M=typeof Y==="number"?(0,Bj.timer)(Y):(0,MH.from)(Y(E,H)),V=(0,MH.operate)({destination:K,next:()=>{V.unsubscribe(),P()},complete:()=>{K.complete()}});M.subscribe(V)}else P()}else K.error(E)}})),D)q.unsubscribe(),q=null,L()};L()})}WP.retry=Fj});var GP=W((BP)=>{Object.defineProperty(BP,"__esModule",{value:!0});BP.retryWhen=void 0;var xH=U(),Gj=q0();function Lj(Z){return($)=>new xH.Observable((J)=>{let Y,X=!1,z,K=()=>{if(Y=$.subscribe((0,xH.operate)({destination:J,error:(H)=>{if(!z)z=new Gj.Subject,(0,xH.from)(Z(z)).subscribe((0,xH.operate)({destination:J,next:()=>Y?K():X=!0}));if(z)z.next(H)}})),X)Y.unsubscribe(),Y=null,X=!1,K()};K()})}BP.retryWhen=Lj});var Mq=W((LP)=>{Object.defineProperty(LP,"__esModule",{value:!0});LP.sample=void 0;var TH=U(),Dj=K0();function wj(Z){return($)=>new TH.Observable((J)=>{let Y=!1,X=null;$.subscribe((0,TH.operate)({destination:J,next:(z)=>{Y=!0,X=z}})),(0,TH.from)(Z).subscribe((0,TH.operate)({destination:J,next:()=>{if(Y){Y=!1;let z=X;X=null,J.next(z)}},complete:Dj.noop}))})}LP.sample=wj});var OP=W((wP)=>{Object.defineProperty(wP,"__esModule",{value:!0});wP.sampleTime=void 0;var Uj=T0(),Oj=Mq(),Ij=Qq();function kj(Z,$=Uj.asyncScheduler){return(0,Oj.sample)((0,Ij.interval)(Z,$))}wP.sampleTime=kj});var PP=W((IP)=>{Object.defineProperty(IP,"__esModule",{value:!0});IP.scan=void 0;var Pj=U(),Ej=Lq();function fj(Z,$){let J=arguments.length>=2;return(Y)=>new Pj.Observable((X)=>(0,Ej.scanInternals)(Z,$,J,!0,!1,Y,X))}IP.scan=fj});var AP=W((fP)=>{Object.defineProperty(fP,"__esModule",{value:!0});fP.sequenceEqual=void 0;var xq=U();function Vj(Z,$=(J,Y)=>J===Y){return(J)=>new xq.Observable((Y)=>{let X=EP(),z=EP(),K=(q)=>{Y.next(q),Y.complete()},H=(q,L)=>{let D=(0,xq.operate)({destination:Y,next:(E)=>{let{buffer:P,complete:M}=L;if(P.length===0)M?K(!1):q.buffer.push(E);else!$(E,P.shift())&&K(!1)},complete:()=>{q.complete=!0;let{complete:E,buffer:P}=L;E&&K(P.length===0),D?.unsubscribe()}});return D};J.subscribe(H(X,z)),(0,xq.from)(Z).subscribe(H(z,X))})}fP.sequenceEqual=Vj;function EP(){return{buffer:[],complete:!1}}});var Cq=W((MP)=>{Object.defineProperty(MP,"__esModule",{value:!0});MP.share=void 0;var jQ=U(),Aj=q0();function Mj(Z={}){let{connector:$=()=>new Aj.Subject,resetOnError:J=!0,resetOnComplete:Y=!0,resetOnRefCountZero:X=!0}=Z;return(z)=>{let K,H,q,L=0,D=!1,E=!1,P=()=>{H?.unsubscribe(),H=void 0},M=()=>{P(),K=q=void 0,D=E=!1},V=()=>{let y=K;M(),y?.unsubscribe()};return new jQ.Observable((y)=>{if(L++,!E&&!D)P();let Y0=q=q??$();if(y.add(()=>{if(L--,L===0&&!E&&!D)H=Tq(V,X)}),Y0.subscribe(y),!K&&L>0)K=new jQ.Subscriber({next:(a)=>Y0.next(a),error:(a)=>{E=!0,P(),H=Tq(M,J,a),Y0.error(a)},complete:()=>{D=!0,P(),H=Tq(M,Y),Y0.complete()}}),(0,jQ.from)(z).subscribe(K)})}}MP.share=Mj;function Tq(Z,$,...J){if($===!0){Z();return}if($===!1)return;let Y=new jQ.Subscriber({next:()=>{Y.unsubscribe(),Z()}});return(0,jQ.from)($(...J)).subscribe(Y)}});var hP=W((TP)=>{Object.defineProperty(TP,"__esModule",{value:!0});TP.shareReplay=void 0;var xj=_W(),Tj=Cq();function Cj(Z,$,J){let Y,X=!1;if(Z&&typeof Z==="object")({bufferSize:Y=1/0,windowTime:$=1/0,refCount:X=!1,scheduler:J}=Z);else Y=Z??1/0;return(0,Tj.share)({connector:()=>new xj.ReplaySubject(Y,$,J),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:X})}TP.shareReplay=Cj});var mP=W((vP)=>{Object.defineProperty(vP,"__esModule",{value:!0});vP.single=void 0;var RP=U(),hj=j8(),Rj=iW(),vj=pW();function yj(Z){return($)=>new RP.Observable((J)=>{let Y=!1,X,z=!1,K=0;$.subscribe((0,RP.operate)({destination:J,next:(H)=>{if(z=!0,!Z||Z(H,K++,$))Y&&J.error(new Rj.SequenceError("Too many matching values")),Y=!0,X=H},complete:()=>{if(Y)J.next(X),J.complete();else J.error(z?new vj.NotFoundError("No matching values"):new hj.EmptyError)}}))})}vP.single=yj});var SP=W((jP)=>{Object.defineProperty(jP,"__esModule",{value:!0});jP.skip=void 0;var mj=DH();function jj(Z){return(0,mj.filter)(($,J)=>Z<=J)}jP.skip=jj});var dP=W((bP)=>{Object.defineProperty(bP,"__esModule",{value:!0});bP.skipLast=void 0;var _j=C0(),gP=U();function Sj(Z){return Z<=0?_j.identity:($)=>new gP.Observable((J)=>{let Y=Array(Z),X=0;return $.subscribe((0,gP.operate)({destination:J,next:(z)=>{let K=X++;if(K<Z)Y[K]=z;else{let H=K%Z,q=Y[H];Y[H]=z,J.next(q)}}})),()=>{Y=null}})}bP.skipLast=Sj});var pP=W((uP)=>{Object.defineProperty(uP,"__esModule",{value:!0});uP.skipUntil=void 0;var CH=U(),gj=K0();function bj(Z){return($)=>new CH.Observable((J)=>{let Y=!1,X=(0,CH.operate)({destination:J,next:()=>{X?.unsubscribe(),Y=!0},complete:gj.noop});(0,CH.from)(Z).subscribe(X),$.subscribe((0,CH.operate)({destination:J,next:(z)=>Y&&J.next(z)}))})}uP.skipUntil=bj});var aP=W((nP)=>{Object.defineProperty(nP,"__esModule",{value:!0});nP.skipWhile=void 0;var iP=U();function cj(Z){return($)=>new iP.Observable((J)=>{let Y=!1,X=0;$.subscribe((0,iP.operate)({destination:J,next:(z)=>(Y||(Y=!Z(z,X++)))&&J.next(z)}))})}nP.skipWhile=cj});var oP=W((sP)=>{Object.defineProperty(sP,"__esModule",{value:!0});sP.startWith=void 0;var hq=U();function dj(...Z){return($)=>new hq.Observable((J)=>{(0,hq.subscribeToArray)(Z,(0,hq.operate)({destination:J,complete:()=>$.subscribe(J)}))})}sP.startWith=dj});var _Q=W((eP)=>{Object.defineProperty(eP,"__esModule",{value:!0});eP.switchMap=void 0;var hH=U();function uj(Z){return($)=>new hH.Observable((J)=>{let Y=null,X=0,z=!1,K=()=>z&&!Y&&J.complete();$.subscribe((0,hH.operate)({destination:J,next:(H)=>{Y?.unsubscribe();let q=X++;(0,hH.from)(Z(H,q)).subscribe(Y=(0,hH.operate)({destination:J,complete:()=>{Y=null,K()}}))},complete:()=>{z=!0,K()}}))})}eP.switchMap=uj});var YE=W(($E)=>{Object.defineProperty($E,"__esModule",{value:!0});$E.switchAll=void 0;var lj=_Q(),pj=C0();function ij(){return(0,lj.switchMap)(pj.identity)}$E.switchAll=ij});var KE=W((XE)=>{Object.defineProperty(XE,"__esModule",{value:!0});XE.switchMapTo=void 0;var nj=_Q();function rj(Z){return(0,nj.switchMap)(()=>Z)}XE.switchMapTo=rj});var qE=W((HE)=>{Object.defineProperty(HE,"__esModule",{value:!0});HE.switchScan=void 0;var aj=_Q(),QE=U();function sj(Z,$){return(J)=>new QE.Observable((Y)=>{let X=$;return(0,aj.switchMap)((z,K)=>Z(X,z,K))(J).subscribe((0,QE.operate)({destination:Y,next:(z)=>{X=z,Y.next(z)}})),()=>{X=null}})}HE.switchScan=sj});var GE=W((BE)=>{Object.defineProperty(BE,"__esModule",{value:!0});BE.takeLast=void 0;var tj=k8(),NE=U();function oj(Z){return Z<=0?()=>tj.EMPTY:($)=>new NE.Observable((J)=>{let Y=Array(Z),X=0;$.subscribe((0,NE.operate)({destination:J,next:(z)=>{Y[X++%Z]=z},complete:()=>{let z=Z<=X?X:0,K=Math.min(Z,X);for(let H=0;H<K;H++)J.next(Y[(z+H)%Z]);J.complete()},finalize:()=>{Y=null}}))})}BE.takeLast=oj});var wE=W((LE)=>{Object.defineProperty(LE,"__esModule",{value:!0});LE.takeUntil=void 0;var Rq=U(),ej=K0();function Z_(Z){return($)=>new Rq.Observable((J)=>{(0,Rq.from)(Z).subscribe((0,Rq.operate)({destination:J,next:()=>J.complete(),complete:ej.noop})),!J.closed&&$.subscribe(J)})}LE.takeUntil=Z_});var kE=W((OE)=>{Object.defineProperty(OE,"__esModule",{value:!0});OE.takeWhile=void 0;var UE=U();function $_(Z,$=!1){return(J)=>new UE.Observable((Y)=>{let X=0,z=(0,UE.operate)({destination:Y,next:(K)=>{if(Z(K,X++))Y.next(K);else{if(z.unsubscribe(),$)Y.next(K);Y.complete()}}});J.subscribe(z)})}OE.takeWhile=$_});var fE=W((PE)=>{Object.defineProperty(PE,"__esModule",{value:!0});PE.tap=void 0;var vq=U(),J_=C0();function Y_(Z){let $=(0,vq.isFunction)(Z)?{next:Z}:Z;return $?(J)=>new vq.Observable((Y)=>{$.subscribe?.();let X=!0;J.subscribe((0,vq.operate)({destination:Y,next:(z)=>{$.next?.(z),Y.next(z)},error:(z)=>{X=!1,$.error?.(z),Y.error(z)},complete:()=>{X=!1,$.complete?.(),Y.complete()},finalize:()=>{if(X)$.unsubscribe?.();$.finalize?.()}}))}):J_.identity}PE.tap=Y_});var yq=W((VE)=>{Object.defineProperty(VE,"__esModule",{value:!0});VE.throttle=void 0;var RH=U();function X_(Z,$){return(J)=>new RH.Observable((Y)=>{let{leading:X=!0,trailing:z=!1}=$??{},K=!1,H=null,q=null,L=!1,D=()=>{if(q?.unsubscribe(),q=null,z)M(),L&&Y.complete()},E=()=>{q=null,L&&Y.complete()},P=(V)=>q=(0,RH.from)(Z(V)).subscribe((0,RH.operate)({destination:Y,next:D,complete:E})),M=()=>{if(K){K=!1;let V=H;H=null,Y.next(V),!L&&P(V)}};J.subscribe((0,RH.operate)({destination:Y,next:(V)=>{K=!0,H=V,!(q&&!q.closed)&&(X?M():P(V))},complete:()=>{L=!0,!(z&&K&&q&&!q.closed)&&Y.complete()}}))})}VE.throttle=X_});var TE=W((ME)=>{Object.defineProperty(ME,"__esModule",{value:!0});ME.throttleTime=void 0;var z_=T0(),K_=yq(),Q_=L6();function H_(Z,$=z_.asyncScheduler,J){let Y=(0,Q_.timer)(Z,$);return(0,K_.throttle)(()=>Y,J)}ME.throttleTime=H_});var vE=W((hE)=>{Object.defineProperty(hE,"__esModule",{value:!0});hE.throwIfEmpty=void 0;var W_=j8(),CE=U();function q_(Z=N_){return($)=>new CE.Observable((J)=>{let Y=!1;$.subscribe((0,CE.operate)({destination:J,next:(X)=>{Y=!0,J.next(X)},complete:()=>Y?J.complete():J.error(Z())}))})}hE.throwIfEmpty=q_;function N_(){return new W_.EmptyError}});var _E=W((mE)=>{Object.defineProperty(mE,"__esModule",{value:!0});mE.TimeInterval=mE.timeInterval=void 0;var B_=T0(),yE=U();function F_(Z=B_.asyncScheduler){return($)=>new yE.Observable((J)=>{let Y=Z.now();$.subscribe((0,yE.operate)({destination:J,next:(X)=>{let z=Z.now(),K=z-Y;Y=z,J.next(new mq(X,K))}}))})}mE.timeInterval=F_;class mq{value;interval;constructor(Z,$){this.value=Z,this.interval=$}}mE.TimeInterval=mq});var bE=W((SE)=>{Object.defineProperty(SE,"__esModule",{value:!0});SE.timeoutWith=void 0;var L_=T0(),D_=WH(),w_=qH();function U_(Z,$,J){let Y,X,z;if(J=J??L_.asyncScheduler,(0,D_.isValidDate)(Z))Y=Z;else if(typeof Z==="number")X=Z;if($)z=()=>$;else throw TypeError("No observable provided to switch to");if(Y==null&&X==null)throw TypeError("No timeout provided.");return(0,w_.timeout)({first:Y,each:X,scheduler:J,with:z})}SE.timeoutWith=U_});var uE=W((cE)=>{Object.defineProperty(cE,"__esModule",{value:!0});cE.timestamp=void 0;var O_=zH(),I_=eK();function k_(Z=O_.dateTimestampProvider){return(0,I_.map)(($)=>({value:$,timestamp:Z.now()}))}cE.timestamp=k_});var nE=W((pE)=>{Object.defineProperty(pE,"__esModule",{value:!0});pE.window=void 0;var vH=U(),lE=q0(),P_=K0();function E_(Z){return($)=>new vH.Observable((J)=>{let Y=new lE.Subject;J.next(Y.asObservable());let X=(z)=>{Y.error(z),J.error(z)};return $.subscribe((0,vH.operate)({destination:J,next:(z)=>Y?.next(z),complete:()=>{Y.complete(),J.complete()},error:X})),(0,vH.from)(Z).subscribe((0,vH.operate)({destination:J,next:()=>{Y.complete(),J.next(Y=new lE.Subject)},complete:P_.noop,error:X})),()=>{Y?.unsubscribe(),Y=null}})}pE.window=E_});var oE=W((sE)=>{Object.defineProperty(sE,"__esModule",{value:!0});sE.windowCount=void 0;var rE=U(),aE=q0();function f_(Z,$=0){let J=$>0?$:Z;return(Y)=>new rE.Observable((X)=>{let z=[new aE.Subject],K=[],H=0;X.next(z[0].asObservable()),Y.subscribe((0,rE.operate)({destination:X,next:(q)=>{for(let D of z)D.next(q);let L=H-Z+1;if(L>=0&&L%J===0)z.shift().complete();if(++H%J===0){let D=new aE.Subject;z.push(D),X.next(D.asObservable())}},error:(q)=>{while(z.length>0)z.shift().error(q);X.error(q)},complete:()=>{while(z.length>0)z.shift().complete();X.complete()},finalize:()=>{K=null,z=null}}))})}sE.windowCount=f_});var Jf=W((Zf)=>{Object.defineProperty(Zf,"__esModule",{value:!0});Zf.windowTime=void 0;var V_=q0(),A_=T0(),jq=U(),M_=e$(),x_=G6(),eE=b0();function T_(Z,...$){let J=(0,x_.popScheduler)($)??A_.asyncScheduler,Y=$[0]??null,X=$[1]||1/0;return(z)=>new jq.Observable((K)=>{let H=[],q=!1,L=(M)=>{let{window:V,subs:y}=M;V.complete(),y.unsubscribe(),(0,M_.arrRemove)(H,M),q&&D()},D=()=>{if(H){let M=new jq.Subscription;K.add(M);let V=new V_.Subject,y={window:V,subs:M,seen:0};H.push(y),K.next(V.asObservable()),(0,eE.executeSchedule)(M,J,()=>L(y),Z)}};if(Y!==null&&Y>=0)(0,eE.executeSchedule)(K,J,D,Y,!0);else q=!0;D();let E=(M)=>H.slice().forEach(M),P=(M)=>{E(({window:V})=>M(V)),M(K),K.unsubscribe()};return z.subscribe((0,jq.operate)({destination:K,next:(M)=>{E((V)=>{V.window.next(M),X<=++V.seen&&L(V)})},error:(M)=>P((V)=>V.error(M)),complete:()=>P((M)=>M.complete())})),()=>{H=null}})}Zf.windowTime=T_});var Kf=W((Xf)=>{Object.defineProperty(Xf,"__esModule",{value:!0});Xf.windowToggle=void 0;var J9=U(),C_=q0(),Yf=K0(),h_=e$();function R_(Z,$){return(J)=>new J9.Observable((Y)=>{let X=[],z=(K)=>{while(0<X.length)X.shift().error(K);Y.error(K)};(0,J9.from)(Z).subscribe((0,J9.operate)({destination:Y,next:(K)=>{let H=new C_.Subject;X.push(H);let q=new J9.Subscription,L=()=>{(0,h_.arrRemove)(X,H),H.complete(),q.unsubscribe()},D;try{D=(0,J9.from)($(K))}catch(E){z(E);return}Y.next(H),q.add(D.subscribe((0,J9.operate)({destination:Y,next:L,error:z,complete:Yf.noop})))},complete:Yf.noop})),J.subscribe((0,J9.operate)({destination:Y,next:(K)=>{let H=X.slice();for(let q of H)q.next(K)},error:z,complete:()=>{while(0<X.length)X.shift().complete();Y.complete()},finalize:()=>{while(0<X.length)X.shift().unsubscribe()}}))})}Xf.windowToggle=R_});var Wf=W((Qf)=>{Object.defineProperty(Qf,"__esModule",{value:!0});Qf.windowWhen=void 0;var yH=U(),v_=q0(),y_=K0();function m_(Z){return($)=>new yH.Observable((J)=>{let Y,X,z=(H)=>{Y.error(H),J.error(H)},K=()=>{X?.unsubscribe(),Y?.complete(),Y=new v_.Subject,J.next(Y.asObservable());let H;try{H=(0,yH.from)(Z())}catch(q){z(q);return}H.subscribe(X=(0,yH.operate)({destination:J,next:K,error:z,complete:y_.noop}))};K(),$.subscribe((0,yH.operate)({destination:J,next:(H)=>Y.next(H),error:z,complete:()=>{Y.complete(),J.complete()},finalize:()=>{X?.unsubscribe(),Y=null}}))})}Qf.windowWhen=m_});var Bf=W((qf)=>{Object.defineProperty(qf,"__esModule",{value:!0});qf.withLatestFrom=void 0;var mH=U(),j_=C0(),__=K0(),S_=G6();function g_(...Z){let $=(0,S_.popResultSelector)(Z);return(J)=>new mH.Observable((Y)=>{let X=Z.length,z=Array(X),K=Z.map(()=>!1),H=!1;for(let q=0;q<X;q++)(0,mH.from)(Z[q]).subscribe((0,mH.operate)({destination:Y,next:(L)=>{if(z[q]=L,!H&&!K[q])K[q]=!0,(H=K.every(j_.identity))&&(K=null)},complete:__.noop}));J.subscribe((0,mH.operate)({destination:Y,next:(q)=>{if(H){let L=[q,...z];Y.next($?$(...L):L)}}}))})}qf.withLatestFrom=g_});var Lf=W((Ff)=>{Object.defineProperty(Ff,"__esModule",{value:!0});Ff.zipAll=void 0;var b_=UH(),c_=wq();function d_(Z){return(0,c_.joinAllInternals)(b_.zip,Z)}Ff.zipAll=d_});var Uf=W((Df)=>{Object.defineProperty(Df,"__esModule",{value:!0});Df.zipWith=void 0;var u_=U(),l_=UH();function p_(...Z){return($)=>new u_.Observable((J)=>{(0,l_.zip)($,...Z).subscribe(J)})}Df.zipWith=p_});var If=W((Q)=>{var i_=Q&&Q.__createBinding||(Object.create?function(Z,$,J,Y){if(Y===void 0)Y=J;var X=Object.getOwnPropertyDescriptor($,J);if(!X||("get"in X?!$.__esModule:X.writable||X.configurable))X={enumerable:!0,get:function(){return $[J]}};Object.defineProperty(Z,Y,X)}:function(Z,$,J,Y){if(Y===void 0)Y=J;Z[Y]=$[J]}),n_=Q&&Q.__exportStar||function(Z,$){for(var J in Z)if(J!=="default"&&!Object.prototype.hasOwnProperty.call($,J))i_($,Z,J)};Object.defineProperty(Q,"__esModule",{value:!0});Q.throwError=Q.range=Q.race=Q.partition=Q.onErrorResumeNext=Q.of=Q.merge=Q.interval=Q.iif=Q.generate=Q.fromEventPattern=Q.fromEvent=Q.forkJoin=Q.defer=Q.connectable=Q.concat=Q.combineLatest=Q.bindNodeCallback=Q.bindCallback=Q.TimeoutError=Q.SequenceError=Q.NotFoundError=Q.EmptyError=Q.ArgumentOutOfRangeError=Q.firstValueFrom=Q.lastValueFrom=Q.identity=Q.noop=Q.pipe=Q.rx=Q.Scheduler=Q.VirtualAction=Q.VirtualTimeScheduler=Q.animationFrameScheduler=Q.queueScheduler=Q.asyncScheduler=Q.asapScheduler=Q.AsyncSubject=Q.ReplaySubject=Q.BehaviorSubject=Q.Subject=Q.animationFrames=Q.isObservable=Q.UnsubscriptionError=Q.operate=Q.Subscriber=Q.Subscription=Q.config=Q.from=Q.Observable=void 0;Q.max=Q.materialize=Q.mapTo=Q.map=Q.last=Q.isEmpty=Q.ignoreElements=Q.groupBy=Q.first=Q.findIndex=Q.find=Q.finalize=Q.filter=Q.expand=Q.exhaustMap=Q.exhaustAll=Q.every=Q.endWith=Q.elementAt=Q.distinctUntilKeyChanged=Q.distinctUntilChanged=Q.distinct=Q.dematerialize=Q.delayWhen=Q.delay=Q.defaultIfEmpty=Q.debounceTime=Q.debounce=Q.count=Q.connect=Q.concatWith=Q.concatMapTo=Q.concatMap=Q.concatAll=Q.combineLatestWith=Q.combineLatestAll=Q.catchError=Q.bufferWhen=Q.bufferToggle=Q.bufferTime=Q.bufferCount=Q.buffer=Q.auditTime=Q.audit=Q.NEVER=Q.EMPTY=Q.scheduled=Q.zip=Q.using=Q.timer=void 0;Q.windowWhen=Q.windowToggle=Q.windowTime=Q.windowCount=Q.window=Q.toArray=Q.timestamp=Q.timeoutWith=Q.timeout=Q.timeInterval=Q.throwIfEmpty=Q.throttleTime=Q.throttle=Q.tap=Q.takeWhile=Q.takeUntil=Q.takeLast=Q.take=Q.switchScan=Q.switchMapTo=Q.switchMap=Q.switchAll=Q.subscribeOn=Q.startWith=Q.skipWhile=Q.skipUntil=Q.skipLast=Q.skip=Q.single=Q.shareReplay=Q.share=Q.sequenceEqual=Q.scan=Q.sampleTime=Q.sample=Q.retryWhen=Q.retry=Q.repeatWhen=Q.repeat=Q.reduce=Q.raceWith=Q.pairwise=Q.onErrorResumeNextWith=Q.observeOn=Q.min=Q.mergeWith=Q.mergeScan=Q.mergeMapTo=Q.mergeMap=Q.mergeAll=void 0;Q.zipWith=Q.zipAll=Q.withLatestFrom=void 0;var D6=U();Object.defineProperty(Q,"Observable",{enumerable:!0,get:function(){return D6.Observable}});Object.defineProperty(Q,"from",{enumerable:!0,get:function(){return D6.from}});Object.defineProperty(Q,"config",{enumerable:!0,get:function(){return D6.config}});Object.defineProperty(Q,"Subscription",{enumerable:!0,get:function(){return D6.Subscription}});Object.defineProperty(Q,"Subscriber",{enumerable:!0,get:function(){return D6.Subscriber}});Object.defineProperty(Q,"operate",{enumerable:!0,get:function(){return D6.operate}});Object.defineProperty(Q,"UnsubscriptionError",{enumerable:!0,get:function(){return D6.UnsubscriptionError}});Object.defineProperty(Q,"isObservable",{enumerable:!0,get:function(){return D6.isObservable}});var r_=oG();Object.defineProperty(Q,"animationFrames",{enumerable:!0,get:function(){return r_.animationFrames}});var a_=q0();Object.defineProperty(Q,"Subject",{enumerable:!0,get:function(){return a_.Subject}});var s_=zL();Object.defineProperty(Q,"BehaviorSubject",{enumerable:!0,get:function(){return s_.BehaviorSubject}});var t_=_W();Object.defineProperty(Q,"ReplaySubject",{enumerable:!0,get:function(){return t_.ReplaySubject}});var o_=SW();Object.defineProperty(Q,"AsyncSubject",{enumerable:!0,get:function(){return o_.AsyncSubject}});var e_=rL();Object.defineProperty(Q,"asapScheduler",{enumerable:!0,get:function(){return e_.asapScheduler}});var ZS=T0();Object.defineProperty(Q,"asyncScheduler",{enumerable:!0,get:function(){return ZS.asyncScheduler}});var $S=QD();Object.defineProperty(Q,"queueScheduler",{enumerable:!0,get:function(){return $S.queueScheduler}});var JS=OD();Object.defineProperty(Q,"animationFrameScheduler",{enumerable:!0,get:function(){return JS.animationFrameScheduler}});var Of=ED();Object.defineProperty(Q,"VirtualTimeScheduler",{enumerable:!0,get:function(){return Of.VirtualTimeScheduler}});Object.defineProperty(Q,"VirtualAction",{enumerable:!0,get:function(){return Of.VirtualAction}});var YS=cW();Object.defineProperty(Q,"Scheduler",{enumerable:!0,get:function(){return YS.Scheduler}});var XS=dW();Object.defineProperty(Q,"rx",{enumerable:!0,get:function(){return XS.rx}});var zS=uW();Object.defineProperty(Q,"pipe",{enumerable:!0,get:function(){return zS.pipe}});var KS=K0();Object.defineProperty(Q,"noop",{enumerable:!0,get:function(){return KS.noop}});var QS=C0();Object.defineProperty(Q,"identity",{enumerable:!0,get:function(){return QS.identity}});var HS=_D();Object.defineProperty(Q,"lastValueFrom",{enumerable:!0,get:function(){return HS.lastValueFrom}});var WS=bD();Object.defineProperty(Q,"firstValueFrom",{enumerable:!0,get:function(){return WS.firstValueFrom}});var qS=lW();Object.defineProperty(Q,"ArgumentOutOfRangeError",{enumerable:!0,get:function(){return qS.ArgumentOutOfRangeError}});var NS=j8();Object.defineProperty(Q,"EmptyError",{enumerable:!0,get:function(){return NS.EmptyError}});var BS=pW();Object.defineProperty(Q,"NotFoundError",{enumerable:!0,get:function(){return BS.NotFoundError}});var FS=iW();Object.defineProperty(Q,"SequenceError",{enumerable:!0,get:function(){return FS.SequenceError}});var GS=qH();Object.defineProperty(Q,"TimeoutError",{enumerable:!0,get:function(){return GS.TimeoutError}});var LS=lw();Object.defineProperty(Q,"bindCallback",{enumerable:!0,get:function(){return LS.bindCallback}});var DS=nw();Object.defineProperty(Q,"bindNodeCallback",{enumerable:!0,get:function(){return DS.bindNodeCallback}});var wS=FH();Object.defineProperty(Q,"combineLatest",{enumerable:!0,get:function(){return wS.combineLatest}});var US=zq();Object.defineProperty(Q,"concat",{enumerable:!0,get:function(){return US.concat}});var OS=P2();Object.defineProperty(Q,"connectable",{enumerable:!0,get:function(){return OS.connectable}});var IS=RQ();Object.defineProperty(Q,"defer",{enumerable:!0,get:function(){return IS.defer}});var kS=V2();Object.defineProperty(Q,"forkJoin",{enumerable:!0,get:function(){return kS.forkJoin}});var PS=v2();Object.defineProperty(Q,"fromEvent",{enumerable:!0,get:function(){return PS.fromEvent}});var ES=S2();Object.defineProperty(Q,"fromEventPattern",{enumerable:!0,get:function(){return ES.fromEventPattern}});var fS=d2();Object.defineProperty(Q,"generate",{enumerable:!0,get:function(){return fS.generate}});var VS=p2();Object.defineProperty(Q,"iif",{enumerable:!0,get:function(){return VS.iif}});var AS=Qq();Object.defineProperty(Q,"interval",{enumerable:!0,get:function(){return AS.interval}});var MS=$U();Object.defineProperty(Q,"merge",{enumerable:!0,get:function(){return MS.merge}});var xS=XU();Object.defineProperty(Q,"of",{enumerable:!0,get:function(){return xS.of}});var TS=Wq();Object.defineProperty(Q,"onErrorResumeNext",{enumerable:!0,get:function(){return TS.onErrorResumeNext}});var CS=IU();Object.defineProperty(Q,"partition",{enumerable:!0,get:function(){return CS.partition}});var hS=qq();Object.defineProperty(Q,"race",{enumerable:!0,get:function(){return hS.race}});var RS=MU();Object.defineProperty(Q,"range",{enumerable:!0,get:function(){return RS.range}});var vS=CU();Object.defineProperty(Q,"throwError",{enumerable:!0,get:function(){return vS.throwError}});var yS=L6();Object.defineProperty(Q,"timer",{enumerable:!0,get:function(){return yS.timer}});var mS=yU();Object.defineProperty(Q,"using",{enumerable:!0,get:function(){return mS.using}});var jS=UH();Object.defineProperty(Q,"zip",{enumerable:!0,get:function(){return jS.zip}});var _S=CQ();Object.defineProperty(Q,"scheduled",{enumerable:!0,get:function(){return _S.scheduled}});var SS=k8();Object.defineProperty(Q,"EMPTY",{enumerable:!0,get:function(){return SS.EMPTY}});var gS=gU();Object.defineProperty(Q,"NEVER",{enumerable:!0,get:function(){return gS.NEVER}});n_(cU(),Q);var bS=Bq();Object.defineProperty(Q,"audit",{enumerable:!0,get:function(){return bS.audit}});var cS=iU();Object.defineProperty(Q,"auditTime",{enumerable:!0,get:function(){return cS.auditTime}});var dS=aU();Object.defineProperty(Q,"buffer",{enumerable:!0,get:function(){return dS.buffer}});var uS=eU();Object.defineProperty(Q,"bufferCount",{enumerable:!0,get:function(){return uS.bufferCount}});var lS=YO();Object.defineProperty(Q,"bufferTime",{enumerable:!0,get:function(){return lS.bufferTime}});var pS=QO();Object.defineProperty(Q,"bufferToggle",{enumerable:!0,get:function(){return pS.bufferToggle}});var iS=qO();Object.defineProperty(Q,"bufferWhen",{enumerable:!0,get:function(){return iS.bufferWhen}});var nS=GO();Object.defineProperty(Q,"catchError",{enumerable:!0,get:function(){return nS.catchError}});var rS=VO();Object.defineProperty(Q,"combineLatestAll",{enumerable:!0,get:function(){return rS.combineLatestAll}});var aS=xO();Object.defineProperty(Q,"combineLatestWith",{enumerable:!0,get:function(){return aS.combineLatestWith}});var sS=LH();Object.defineProperty(Q,"concatAll",{enumerable:!0,get:function(){return sS.concatAll}});var tS=Uq();Object.defineProperty(Q,"concatMap",{enumerable:!0,get:function(){return tS.concatMap}});var oS=vO();Object.defineProperty(Q,"concatMapTo",{enumerable:!0,get:function(){return oS.concatMapTo}});var eS=_O();Object.defineProperty(Q,"concatWith",{enumerable:!0,get:function(){return eS.concatWith}});var Zg=lO();Object.defineProperty(Q,"connect",{enumerable:!0,get:function(){return Zg.connect}});var $g=nO();Object.defineProperty(Q,"count",{enumerable:!0,get:function(){return $g.count}});var Jg=sO();Object.defineProperty(Q,"debounce",{enumerable:!0,get:function(){return Jg.debounce}});var Yg=ZI();Object.defineProperty(Q,"debounceTime",{enumerable:!0,get:function(){return Yg.debounceTime}});var Xg=XI();Object.defineProperty(Q,"defaultIfEmpty",{enumerable:!0,get:function(){return Xg.defaultIfEmpty}});var zg=wI();Object.defineProperty(Q,"delay",{enumerable:!0,get:function(){return zg.delay}});var Kg=Pq();Object.defineProperty(Q,"delayWhen",{enumerable:!0,get:function(){return Kg.delayWhen}});var Qg=fI();Object.defineProperty(Q,"dematerialize",{enumerable:!0,get:function(){return Qg.dematerialize}});var Hg=MI();Object.defineProperty(Q,"distinct",{enumerable:!0,get:function(){return Hg.distinct}});var Wg=Eq();Object.defineProperty(Q,"distinctUntilChanged",{enumerable:!0,get:function(){return Wg.distinctUntilChanged}});var qg=vI();Object.defineProperty(Q,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return qg.distinctUntilKeyChanged}});var Ng=SI();Object.defineProperty(Q,"elementAt",{enumerable:!0,get:function(){return Ng.elementAt}});var Bg=cI();Object.defineProperty(Q,"endWith",{enumerable:!0,get:function(){return Bg.endWith}});var Fg=pI();Object.defineProperty(Q,"every",{enumerable:!0,get:function(){return Fg.every}});var Gg=sI();Object.defineProperty(Q,"exhaustAll",{enumerable:!0,get:function(){return Gg.exhaustAll}});var Lg=Vq();Object.defineProperty(Q,"exhaustMap",{enumerable:!0,get:function(){return Lg.exhaustMap}});var Dg=eI();Object.defineProperty(Q,"expand",{enumerable:!0,get:function(){return Dg.expand}});var wg=DH();Object.defineProperty(Q,"filter",{enumerable:!0,get:function(){return wg.filter}});var Ug=Jk();Object.defineProperty(Q,"finalize",{enumerable:!0,get:function(){return Ug.finalize}});var Og=Aq();Object.defineProperty(Q,"find",{enumerable:!0,get:function(){return Og.find}});var Ig=Wk();Object.defineProperty(Q,"findIndex",{enumerable:!0,get:function(){return Ig.findIndex}});var kg=Fk();Object.defineProperty(Q,"first",{enumerable:!0,get:function(){return kg.first}});var Pg=Dk();Object.defineProperty(Q,"groupBy",{enumerable:!0,get:function(){return Pg.groupBy}});var Eg=Iq();Object.defineProperty(Q,"ignoreElements",{enumerable:!0,get:function(){return Eg.ignoreElements}});var fg=Ik();Object.defineProperty(Q,"isEmpty",{enumerable:!0,get:function(){return fg.isEmpty}});var Vg=fk();Object.defineProperty(Q,"last",{enumerable:!0,get:function(){return Vg.last}});var Ag=eK();Object.defineProperty(Q,"map",{enumerable:!0,get:function(){return Ag.map}});var Mg=Mk();Object.defineProperty(Q,"mapTo",{enumerable:!0,get:function(){return Mg.mapTo}});var xg=Ck();Object.defineProperty(Q,"materialize",{enumerable:!0,get:function(){return xg.materialize}});var Tg=vk();Object.defineProperty(Q,"max",{enumerable:!0,get:function(){return Tg.max}});var Cg=hQ();Object.defineProperty(Q,"mergeAll",{enumerable:!0,get:function(){return Cg.mergeAll}});var hg=Z9();Object.defineProperty(Q,"mergeMap",{enumerable:!0,get:function(){return hg.mergeMap}});var Rg=jk();Object.defineProperty(Q,"mergeMapTo",{enumerable:!0,get:function(){return Rg.mergeMapTo}});var vg=gk();Object.defineProperty(Q,"mergeScan",{enumerable:!0,get:function(){return vg.mergeScan}});var yg=uk();Object.defineProperty(Q,"mergeWith",{enumerable:!0,get:function(){return yg.mergeWith}});var mg=ik();Object.defineProperty(Q,"min",{enumerable:!0,get:function(){return mg.min}});var jg=NH();Object.defineProperty(Q,"observeOn",{enumerable:!0,get:function(){return jg.observeOn}});var _g=ak();Object.defineProperty(Q,"onErrorResumeNextWith",{enumerable:!0,get:function(){return _g.onErrorResumeNextWith}});var Sg=ek();Object.defineProperty(Q,"pairwise",{enumerable:!0,get:function(){return Sg.pairwise}});var gg=JP();Object.defineProperty(Q,"raceWith",{enumerable:!0,get:function(){return gg.raceWith}});var bg=$Q();Object.defineProperty(Q,"reduce",{enumerable:!0,get:function(){return bg.reduce}});var cg=zP();Object.defineProperty(Q,"repeat",{enumerable:!0,get:function(){return cg.repeat}});var dg=HP();Object.defineProperty(Q,"repeatWhen",{enumerable:!0,get:function(){return dg.repeatWhen}});var ug=NP();Object.defineProperty(Q,"retry",{enumerable:!0,get:function(){return ug.retry}});var lg=GP();Object.defineProperty(Q,"retryWhen",{enumerable:!0,get:function(){return lg.retryWhen}});var pg=Mq();Object.defineProperty(Q,"sample",{enumerable:!0,get:function(){return pg.sample}});var ig=OP();Object.defineProperty(Q,"sampleTime",{enumerable:!0,get:function(){return ig.sampleTime}});var ng=PP();Object.defineProperty(Q,"scan",{enumerable:!0,get:function(){return ng.scan}});var rg=AP();Object.defineProperty(Q,"sequenceEqual",{enumerable:!0,get:function(){return rg.sequenceEqual}});var ag=Cq();Object.defineProperty(Q,"share",{enumerable:!0,get:function(){return ag.share}});var sg=hP();Object.defineProperty(Q,"shareReplay",{enumerable:!0,get:function(){return sg.shareReplay}});var tg=mP();Object.defineProperty(Q,"single",{enumerable:!0,get:function(){return tg.single}});var og=SP();Object.defineProperty(Q,"skip",{enumerable:!0,get:function(){return og.skip}});var eg=dP();Object.defineProperty(Q,"skipLast",{enumerable:!0,get:function(){return eg.skipLast}});var Zb=pP();Object.defineProperty(Q,"skipUntil",{enumerable:!0,get:function(){return Zb.skipUntil}});var $b=aP();Object.defineProperty(Q,"skipWhile",{enumerable:!0,get:function(){return $b.skipWhile}});var Jb=oP();Object.defineProperty(Q,"startWith",{enumerable:!0,get:function(){return Jb.startWith}});var Yb=BH();Object.defineProperty(Q,"subscribeOn",{enumerable:!0,get:function(){return Yb.subscribeOn}});var Xb=YE();Object.defineProperty(Q,"switchAll",{enumerable:!0,get:function(){return Xb.switchAll}});var zb=_Q();Object.defineProperty(Q,"switchMap",{enumerable:!0,get:function(){return zb.switchMap}});var Kb=KE();Object.defineProperty(Q,"switchMapTo",{enumerable:!0,get:function(){return Kb.switchMapTo}});var Qb=qE();Object.defineProperty(Q,"switchScan",{enumerable:!0,get:function(){return Qb.switchScan}});var Hb=Oq();Object.defineProperty(Q,"take",{enumerable:!0,get:function(){return Hb.take}});var Wb=GE();Object.defineProperty(Q,"takeLast",{enumerable:!0,get:function(){return Wb.takeLast}});var qb=wE();Object.defineProperty(Q,"takeUntil",{enumerable:!0,get:function(){return qb.takeUntil}});var Nb=kE();Object.defineProperty(Q,"takeWhile",{enumerable:!0,get:function(){return Nb.takeWhile}});var Bb=fE();Object.defineProperty(Q,"tap",{enumerable:!0,get:function(){return Bb.tap}});var Fb=yq();Object.defineProperty(Q,"throttle",{enumerable:!0,get:function(){return Fb.throttle}});var Gb=TE();Object.defineProperty(Q,"throttleTime",{enumerable:!0,get:function(){return Gb.throttleTime}});var Lb=vE();Object.defineProperty(Q,"throwIfEmpty",{enumerable:!0,get:function(){return Lb.throwIfEmpty}});var Db=_E();Object.defineProperty(Q,"timeInterval",{enumerable:!0,get:function(){return Db.timeInterval}});var wb=qH();Object.defineProperty(Q,"timeout",{enumerable:!0,get:function(){return wb.timeout}});var Ub=bE();Object.defineProperty(Q,"timeoutWith",{enumerable:!0,get:function(){return Ub.timeoutWith}});var Ob=uE();Object.defineProperty(Q,"timestamp",{enumerable:!0,get:function(){return Ob.timestamp}});var Ib=Dq();Object.defineProperty(Q,"toArray",{enumerable:!0,get:function(){return Ib.toArray}});var kb=nE();Object.defineProperty(Q,"window",{enumerable:!0,get:function(){return kb.window}});var Pb=oE();Object.defineProperty(Q,"windowCount",{enumerable:!0,get:function(){return Pb.windowCount}});var Eb=Jf();Object.defineProperty(Q,"windowTime",{enumerable:!0,get:function(){return Eb.windowTime}});var fb=Kf();Object.defineProperty(Q,"windowToggle",{enumerable:!0,get:function(){return fb.windowToggle}});var Vb=Wf();Object.defineProperty(Q,"windowWhen",{enumerable:!0,get:function(){return Vb.windowWhen}});var Ab=Bf();Object.defineProperty(Q,"withLatestFrom",{enumerable:!0,get:function(){return Ab.withLatestFrom}});var Mb=Lf();Object.defineProperty(Q,"zipAll",{enumerable:!0,get:function(){return Mb.zipAll}});var xb=Uf();Object.defineProperty(Q,"zipWith",{enumerable:!0,get:function(){return xb.zipWith}})});async function _q(Z,$,J){let{max:Y=4}=J??{},X=(K)=>h.defer(()=>h.from($(Z[K])).pipe(h.map((H)=>({idx:K,v:H})))),z=h.from(Z.map((K,H)=>H)).pipe(h.map(X),h.mergeAll(Y),h.reduce((K,H)=>{return K[H.idx]=H.v,K},[]));return h.firstValueFrom(z)}class kf{opQueue=new h.Subject;opResultStream;nextOperation=1;dispose;constructor(Z){let{max:$=4}=Z??{};this.opResultStream=this.opQueue.pipe(h.mergeAll($),h.share()),this.dispose=this.opResultStream.subscribe()}enqueue(Z){let $=this.nextOperation++,J=h.defer(()=>h.from(Z()).pipe(h.map((X)=>({id:$,result:X})),h.catchError((X)=>h.of({id:$,error:X})))),Y=h.firstValueFrom(this.opResultStream.pipe(h.filter((X)=>X.id===$))).then((X)=>{if(X.error)return Promise.reject(X.error);else return Promise.resolve(X.result)});return this.opQueue.next(J),Y}enqueueList(Z,$){if(Z.length===0)return Promise.resolve(new Map);return h.firstValueFrom(h.from(Z).pipe(h.mergeMap((J)=>this.enqueue(()=>$(J)).then((Y)=>({key:J,value:Y}))),h.reduce((J,Y)=>{return J.set(Y.key,Y.value),J},new Map)))}close(){this.opQueue.complete();let Z=h.lastValueFrom(this.opResultStream.pipe(h.materialize(),h.map(()=>{return})));return this.dispose.unsubscribe(),Z}}var h;var Pf=O(()=>{h=DB(If(),1)});class JQ{}import{randomUUID as Tb}from"crypto";import{closeSync as Cb,openSync as hb,readSync as Rb}from"fs";function yb(Z){if(Ef)return;try{if(YQ===void 0)YQ=hb(vb,"r");let $=Buffer.alloc(Z),J=0;while(J<Z){let Y=Rb(YQ,$,J,Z-J,null);if(Y<=0)return;J+=Y}return $}catch{if(Ef=!0,YQ!==void 0){try{Cb(YQ)}catch{}YQ=void 0}return}}function mb(Z){let $=Z[6]??0,J=Z[8]??0;Z[6]=$&15|64,Z[8]=J&63|128;let Y=Z.toString("hex");return`${Y.slice(0,8)}-${Y.slice(8,12)}-${Y.slice(12,16)}-${Y.slice(16,20)}-${Y.slice(20)}`}function jH(){let Z=yb(16);if(Z===void 0)return Tb({disableEntropyCache:!0});return mb(Z)}var vb="/dev/urandom",YQ,Ef=!1;var ff=()=>{};function Vf(Z){return Z.replace(/[^a-zA-Z0-9]/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,"")}function jb(Z){return/^[A-Za-z]:[\\/]/.test(Z)||Z.startsWith("\\\\")||Z.startsWith("//")}function _b(Z,...$){if(!jb(Z))return[Z.replace(/\/+$/,""),...$].join("/");let Y=Z.replace(/\//g,"\\").replace(/\\+$/,""),X=$.map((z)=>z.replace(/\//g,"\\"));if(Y.length===0)return["","",...X].join("\\");return[Y,...X].join("\\")}function Sq(Z,$){return _b(Z,".cursor","projects",Vf($))}var XQ=O(()=>{Pf();ff()});var xf=W((Af)=>{Object.defineProperty(Af,"__esModule",{value:!0});Af._globalThis=void 0;Af._globalThis=typeof globalThis==="object"?globalThis:global});var Tf=W((Y9)=>{var Sb=Y9&&Y9.__createBinding||(Object.create?function(Z,$,J,Y){if(Y===void 0)Y=J;Object.defineProperty(Z,Y,{enumerable:!0,get:function(){return $[J]}})}:function(Z,$,J,Y){if(Y===void 0)Y=J;Z[Y]=$[J]}),gb=Y9&&Y9.__exportStar||function(Z,$){for(var J in Z)if(J!=="default"&&!Object.prototype.hasOwnProperty.call($,J))Sb($,Z,J)};Object.defineProperty(Y9,"__esModule",{value:!0});gb(xf(),Y9)});var Cf=W((X9)=>{var bb=X9&&X9.__createBinding||(Object.create?function(Z,$,J,Y){if(Y===void 0)Y=J;Object.defineProperty(Z,Y,{enumerable:!0,get:function(){return $[J]}})}:function(Z,$,J,Y){if(Y===void 0)Y=J;Z[Y]=$[J]}),cb=X9&&X9.__exportStar||function(Z,$){for(var J in Z)if(J!=="default"&&!Object.prototype.hasOwnProperty.call($,J))bb($,Z,J)};Object.defineProperty(X9,"__esModule",{value:!0});cb(Tf(),X9)});var gq=W((hf)=>{Object.defineProperty(hf,"__esModule",{value:!0});hf.VERSION=void 0;hf.VERSION="1.9.0"});var _f=W((mf)=>{Object.defineProperty(mf,"__esModule",{value:!0});mf.isCompatible=mf._makeCompatibilityCheck=void 0;var db=gq(),vf=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function yf(Z){let $=new Set([Z]),J=new Set,Y=Z.match(vf);if(!Y)return()=>!1;let X={major:+Y[1],minor:+Y[2],patch:+Y[3],prerelease:Y[4]};if(X.prerelease!=null)return function(q){return q===Z};function z(H){return J.add(H),!1}function K(H){return $.add(H),!0}return function(q){if($.has(q))return!0;if(J.has(q))return!1;let L=q.match(vf);if(!L)return z(q);let D={major:+L[1],minor:+L[2],patch:+L[3],prerelease:L[4]};if(D.prerelease!=null)return z(q);if(X.major!==D.major)return z(q);if(X.major===0){if(X.minor===D.minor&&X.patch<=D.patch)return K(q);return z(q)}if(X.minor<=D.minor)return K(q);return z(q)}}mf._makeCompatibilityCheck=yf;mf.isCompatible=yf(db.VERSION)});var z9=W((Sf)=>{Object.defineProperty(Sf,"__esModule",{value:!0});Sf.unregisterGlobal=Sf.getGlobal=Sf.registerGlobal=void 0;var lb=Cf(),zQ=gq(),pb=_f(),ib=zQ.VERSION.split(".")[0],SQ=Symbol.for(`opentelemetry.js.api.${ib}`),gQ=lb._globalThis;function nb(Z,$,J,Y=!1){var X;let z=gQ[SQ]=(X=gQ[SQ])!==null&&X!==void 0?X:{version:zQ.VERSION};if(!Y&&z[Z]){let K=Error(`@opentelemetry/api: Attempted duplicate registration of API: ${Z}`);return J.error(K.stack||K.message),!1}if(z.version!==zQ.VERSION){let K=Error(`@opentelemetry/api: Registration of version v${z.version} for ${Z} does not match previously registered API v${zQ.VERSION}`);return J.error(K.stack||K.message),!1}return z[Z]=$,J.debug(`@opentelemetry/api: Registered a global for ${Z} v${zQ.VERSION}.`),!0}Sf.registerGlobal=nb;function rb(Z){var $,J;let Y=($=gQ[SQ])===null||$===void 0?void 0:$.version;if(!Y||!(0,pb.isCompatible)(Y))return;return(J=gQ[SQ])===null||J===void 0?void 0:J[Z]}Sf.getGlobal=rb;function ab(Z,$){$.debug(`@opentelemetry/api: Unregistering a global for ${Z} v${zQ.VERSION}.`);let J=gQ[SQ];if(J)delete J[Z]}Sf.unregisterGlobal=ab});var uf=W((cf)=>{Object.defineProperty(cf,"__esModule",{value:!0});cf.DiagComponentLogger=void 0;var ob=z9();class bf{constructor(Z){this._namespace=Z.namespace||"DiagComponentLogger"}debug(...Z){return bQ("debug",this._namespace,Z)}error(...Z){return bQ("error",this._namespace,Z)}info(...Z){return bQ("info",this._namespace,Z)}warn(...Z){return bQ("warn",this._namespace,Z)}verbose(...Z){return bQ("verbose",this._namespace,Z)}}cf.DiagComponentLogger=bf;function bQ(Z,$,J){let Y=(0,ob.getGlobal)("diag");if(!Y)return;return J.unshift($),Y[Z](...J)}});var _H=W((lf)=>{Object.defineProperty(lf,"__esModule",{value:!0});lf.DiagLogLevel=void 0;var eb;(function(Z){Z[Z.NONE=0]="NONE",Z[Z.ERROR=30]="ERROR",Z[Z.WARN=50]="WARN",Z[Z.INFO=60]="INFO",Z[Z.DEBUG=70]="DEBUG",Z[Z.VERBOSE=80]="VERBOSE",Z[Z.ALL=9999]="ALL"})(eb=lf.DiagLogLevel||(lf.DiagLogLevel={}))});var rf=W((pf)=>{Object.defineProperty(pf,"__esModule",{value:!0});pf.createLogLevelDiagLogger=void 0;var S8=_H();function Zc(Z,$){if(Z<S8.DiagLogLevel.NONE)Z=S8.DiagLogLevel.NONE;else if(Z>S8.DiagLogLevel.ALL)Z=S8.DiagLogLevel.ALL;$=$||{};function J(Y,X){let z=$[Y];if(typeof z==="function"&&Z>=X)return z.bind($);return function(){}}return{error:J("error",S8.DiagLogLevel.ERROR),warn:J("warn",S8.DiagLogLevel.WARN),info:J("info",S8.DiagLogLevel.INFO),debug:J("debug",S8.DiagLogLevel.DEBUG),verbose:J("verbose",S8.DiagLogLevel.VERBOSE)}}pf.createLogLevelDiagLogger=Zc});var K9=W((sf)=>{Object.defineProperty(sf,"__esModule",{value:!0});sf.DiagAPI=void 0;var $c=uf(),Jc=rf(),af=_H(),SH=z9(),Yc="diag";class cq{constructor(){function Z(Y){return function(...X){let z=(0,SH.getGlobal)("diag");if(!z)return;return z[Y](...X)}}let $=this,J=(Y,X={logLevel:af.DiagLogLevel.INFO})=>{var z,K,H;if(Y===$){let D=Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return $.error((z=D.stack)!==null&&z!==void 0?z:D.message),!1}if(typeof X==="number")X={logLevel:X};let q=(0,SH.getGlobal)("diag"),L=(0,Jc.createLogLevelDiagLogger)((K=X.logLevel)!==null&&K!==void 0?K:af.DiagLogLevel.INFO,Y);if(q&&!X.suppressOverrideMessage){let D=(H=Error().stack)!==null&&H!==void 0?H:"<failed to generate stacktrace>";q.warn(`Current logger will be overwritten from ${D}`),L.warn(`Current logger will overwrite one already registered from ${D}`)}return(0,SH.registerGlobal)("diag",L,$,!0)};$.setLogger=J,$.disable=()=>{(0,SH.unregisterGlobal)(Yc,$)},$.createComponentLogger=(Y)=>{return new $c.DiagComponentLogger(Y)},$.verbose=Z("verbose"),$.debug=Z("debug"),$.info=Z("info"),$.warn=Z("warn"),$.error=Z("error")}static instance(){if(!this._instance)this._instance=new cq;return this._instance}}sf.DiagAPI=cq});var ZV=W((of)=>{Object.defineProperty(of,"__esModule",{value:!0});of.BaggageImpl=void 0;class KQ{constructor(Z){this._entries=Z?new Map(Z):new Map}getEntry(Z){let $=this._entries.get(Z);if(!$)return;return Object.assign({},$)}getAllEntries(){return Array.from(this._entries.entries()).map(([Z,$])=>[Z,$])}setEntry(Z,$){let J=new KQ(this._entries);return J._entries.set(Z,$),J}removeEntry(Z){let $=new KQ(this._entries);return $._entries.delete(Z),$}removeEntries(...Z){let $=new KQ(this._entries);for(let J of Z)$._entries.delete(J);return $}clear(){return new KQ}}of.BaggageImpl=KQ});var YV=W(($V)=>{Object.defineProperty($V,"__esModule",{value:!0});$V.baggageEntryMetadataSymbol=void 0;$V.baggageEntryMetadataSymbol=Symbol("BaggageEntryMetadata")});var dq=W((XV)=>{Object.defineProperty(XV,"__esModule",{value:!0});XV.baggageEntryMetadataFromString=XV.createBaggage=void 0;var Xc=K9(),zc=ZV(),Kc=YV(),Qc=Xc.DiagAPI.instance();function Hc(Z={}){return new zc.BaggageImpl(new Map(Object.entries(Z)))}XV.createBaggage=Hc;function Wc(Z){if(typeof Z!=="string")Qc.error(`Cannot create baggage metadata from unknown type: ${typeof Z}`),Z="";return{__TYPE__:Kc.baggageEntryMetadataSymbol,toString(){return Z}}}XV.baggageEntryMetadataFromString=Wc});var cQ=W((KV)=>{Object.defineProperty(KV,"__esModule",{value:!0});KV.ROOT_CONTEXT=KV.createContextKey=void 0;function Nc(Z){return Symbol.for(Z)}KV.createContextKey=Nc;class gH{constructor(Z){let $=this;$._currentContext=Z?new Map(Z):new Map,$.getValue=(J)=>$._currentContext.get(J),$.setValue=(J,Y)=>{let X=new gH($._currentContext);return X._currentContext.set(J,Y),X},$.deleteValue=(J)=>{let Y=new gH($._currentContext);return Y._currentContext.delete(J),Y}}}KV.ROOT_CONTEXT=new gH});var NV=W((WV)=>{Object.defineProperty(WV,"__esModule",{value:!0});WV.DiagConsoleLogger=void 0;var uq=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}];class HV{constructor(){function Z($){return function(...J){if(console){let Y=console[$];if(typeof Y!=="function")Y=console.log;if(typeof Y==="function")return Y.apply(console,J)}}}for(let $=0;$<uq.length;$++)this[uq[$].n]=Z(uq[$].c)}}WV.DiagConsoleLogger=HV});var oq=W((BV)=>{Object.defineProperty(BV,"__esModule",{value:!0});BV.createNoopMeter=BV.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC=BV.NOOP_OBSERVABLE_GAUGE_METRIC=BV.NOOP_OBSERVABLE_COUNTER_METRIC=BV.NOOP_UP_DOWN_COUNTER_METRIC=BV.NOOP_HISTOGRAM_METRIC=BV.NOOP_GAUGE_METRIC=BV.NOOP_COUNTER_METRIC=BV.NOOP_METER=BV.NoopObservableUpDownCounterMetric=BV.NoopObservableGaugeMetric=BV.NoopObservableCounterMetric=BV.NoopObservableMetric=BV.NoopHistogramMetric=BV.NoopGaugeMetric=BV.NoopUpDownCounterMetric=BV.NoopCounterMetric=BV.NoopMetric=BV.NoopMeter=void 0;class lq{constructor(){}createGauge(Z,$){return BV.NOOP_GAUGE_METRIC}createHistogram(Z,$){return BV.NOOP_HISTOGRAM_METRIC}createCounter(Z,$){return BV.NOOP_COUNTER_METRIC}createUpDownCounter(Z,$){return BV.NOOP_UP_DOWN_COUNTER_METRIC}createObservableGauge(Z,$){return BV.NOOP_OBSERVABLE_GAUGE_METRIC}createObservableCounter(Z,$){return BV.NOOP_OBSERVABLE_COUNTER_METRIC}createObservableUpDownCounter(Z,$){return BV.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC}addBatchObservableCallback(Z,$){}removeBatchObservableCallback(Z){}}BV.NoopMeter=lq;class QQ{}BV.NoopMetric=QQ;class pq extends QQ{add(Z,$){}}BV.NoopCounterMetric=pq;class iq extends QQ{add(Z,$){}}BV.NoopUpDownCounterMetric=iq;class nq extends QQ{record(Z,$){}}BV.NoopGaugeMetric=nq;class rq extends QQ{record(Z,$){}}BV.NoopHistogramMetric=rq;class dQ{addCallback(Z){}removeCallback(Z){}}BV.NoopObservableMetric=dQ;class aq extends dQ{}BV.NoopObservableCounterMetric=aq;class sq extends dQ{}BV.NoopObservableGaugeMetric=sq;class tq extends dQ{}BV.NoopObservableUpDownCounterMetric=tq;BV.NOOP_METER=new lq;BV.NOOP_COUNTER_METRIC=new pq;BV.NOOP_GAUGE_METRIC=new nq;BV.NOOP_HISTOGRAM_METRIC=new rq;BV.NOOP_UP_DOWN_COUNTER_METRIC=new iq;BV.NOOP_OBSERVABLE_COUNTER_METRIC=new aq;BV.NOOP_OBSERVABLE_GAUGE_METRIC=new sq;BV.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC=new tq;function Fc(){return BV.NOOP_METER}BV.createNoopMeter=Fc});var EV=W((PV)=>{Object.defineProperty(PV,"__esModule",{value:!0});PV.ValueType=void 0;var fc;(function(Z){Z[Z.INT=0]="INT",Z[Z.DOUBLE=1]="DOUBLE"})(fc=PV.ValueType||(PV.ValueType={}))});var ZN=W((fV)=>{Object.defineProperty(fV,"__esModule",{value:!0});fV.defaultTextMapSetter=fV.defaultTextMapGetter=void 0;fV.defaultTextMapGetter={get(Z,$){if(Z==null)return;return Z[$]},keys(Z){if(Z==null)return[];return Object.keys(Z)}};fV.defaultTextMapSetter={set(Z,$,J){if(Z==null)return;Z[$]=J}}});var TV=W((MV)=>{Object.defineProperty(MV,"__esModule",{value:!0});MV.NoopContextManager=void 0;var Ac=cQ();class AV{active(){return Ac.ROOT_CONTEXT}with(Z,$,J,...Y){return $.call(J,...Y)}bind(Z,$){return $}enable(){return this}disable(){return this}}MV.NoopContextManager=AV});var uQ=W((hV)=>{Object.defineProperty(hV,"__esModule",{value:!0});hV.ContextAPI=void 0;var Mc=TV(),$N=z9(),CV=K9(),JN="context",xc=new Mc.NoopContextManager;class YN{constructor(){}static getInstance(){if(!this._instance)this._instance=new YN;return this._instance}setGlobalContextManager(Z){return(0,$N.registerGlobal)(JN,Z,CV.DiagAPI.instance())}active(){return this._getContextManager().active()}with(Z,$,J,...Y){return this._getContextManager().with(Z,$,J,...Y)}bind(Z,$){return this._getContextManager().bind(Z,$)}_getContextManager(){return(0,$N.getGlobal)(JN)||xc}disable(){this._getContextManager().disable(),(0,$N.unregisterGlobal)(JN,CV.DiagAPI.instance())}}hV.ContextAPI=YN});var zN=W((vV)=>{Object.defineProperty(vV,"__esModule",{value:!0});vV.TraceFlags=void 0;var Tc;(function(Z){Z[Z.NONE=0]="NONE",Z[Z.SAMPLED=1]="SAMPLED"})(Tc=vV.TraceFlags||(vV.TraceFlags={}))});var bH=W((yV)=>{Object.defineProperty(yV,"__esModule",{value:!0});yV.INVALID_SPAN_CONTEXT=yV.INVALID_TRACEID=yV.INVALID_SPANID=void 0;var Cc=zN();yV.INVALID_SPANID="0000000000000000";yV.INVALID_TRACEID="00000000000000000000000000000000";yV.INVALID_SPAN_CONTEXT={traceId:yV.INVALID_TRACEID,spanId:yV.INVALID_SPANID,traceFlags:Cc.TraceFlags.NONE}});var cH=W((gV)=>{Object.defineProperty(gV,"__esModule",{value:!0});gV.NonRecordingSpan=void 0;var hc=bH();class SV{constructor(Z=hc.INVALID_SPAN_CONTEXT){this._spanContext=Z}spanContext(){return this._spanContext}setAttribute(Z,$){return this}setAttributes(Z){return this}addEvent(Z,$){return this}addLink(Z){return this}addLinks(Z){return this}setStatus(Z){return this}updateName(Z){return this}end(Z){}isRecording(){return!1}recordException(Z,$){}}gV.NonRecordingSpan=SV});var HN=W((dV)=>{Object.defineProperty(dV,"__esModule",{value:!0});dV.getSpanContext=dV.setSpanContext=dV.deleteSpan=dV.setSpan=dV.getActiveSpan=dV.getSpan=void 0;var Rc=cQ(),vc=cH(),yc=uQ(),KN=(0,Rc.createContextKey)("OpenTelemetry Context Key SPAN");function QN(Z){return Z.getValue(KN)||void 0}dV.getSpan=QN;function mc(){return QN(yc.ContextAPI.getInstance().active())}dV.getActiveSpan=mc;function cV(Z,$){return Z.setValue(KN,$)}dV.setSpan=cV;function jc(Z){return Z.deleteValue(KN)}dV.deleteSpan=jc;function _c(Z,$){return cV(Z,new vc.NonRecordingSpan($))}dV.setSpanContext=_c;function Sc(Z){var $;return($=QN(Z))===null||$===void 0?void 0:$.spanContext()}dV.getSpanContext=Sc});var dH=W((nV)=>{Object.defineProperty(nV,"__esModule",{value:!0});nV.wrapSpanContext=nV.isSpanContextValid=nV.isValidSpanId=nV.isValidTraceId=void 0;var lV=bH(),lc=cH(),pc=/^([0-9a-f]{32})$/i,ic=/^[0-9a-f]{16}$/i;function pV(Z){return pc.test(Z)&&Z!==lV.INVALID_TRACEID}nV.isValidTraceId=pV;function iV(Z){return ic.test(Z)&&Z!==lV.INVALID_SPANID}nV.isValidSpanId=iV;function nc(Z){return pV(Z.traceId)&&iV(Z.spanId)}nV.isSpanContextValid=nc;function rc(Z){return new lc.NonRecordingSpan(Z)}nV.wrapSpanContext=rc});var NN=W((tV)=>{Object.defineProperty(tV,"__esModule",{value:!0});tV.NoopTracer=void 0;var oc=uQ(),aV=HN(),WN=cH(),ec=dH(),qN=oc.ContextAPI.getInstance();class sV{startSpan(Z,$,J=qN.active()){if(Boolean($===null||$===void 0?void 0:$.root))return new WN.NonRecordingSpan;let X=J&&(0,aV.getSpanContext)(J);if(Zd(X)&&(0,ec.isSpanContextValid)(X))return new WN.NonRecordingSpan(X);else return new WN.NonRecordingSpan}startActiveSpan(Z,$,J,Y){let X,z,K;if(arguments.length<2)return;else if(arguments.length===2)K=$;else if(arguments.length===3)X=$,K=J;else X=$,z=J,K=Y;let H=z!==null&&z!==void 0?z:qN.active(),q=this.startSpan(Z,X,H),L=(0,aV.setSpan)(H,q);return qN.with(L,K,void 0,q)}}tV.NoopTracer=sV;function Zd(Z){return typeof Z==="object"&&typeof Z.spanId==="string"&&typeof Z.traceId==="string"&&typeof Z.traceFlags==="number"}});var BN=W((Z4)=>{Object.defineProperty(Z4,"__esModule",{value:!0});Z4.ProxyTracer=void 0;var $d=NN(),Jd=new $d.NoopTracer;class eV{constructor(Z,$,J,Y){this._provider=Z,this.name=$,this.version=J,this.options=Y}startSpan(Z,$,J){return this._getTracer().startSpan(Z,$,J)}startActiveSpan(Z,$,J,Y){let X=this._getTracer();return Reflect.apply(X.startActiveSpan,X,arguments)}_getTracer(){if(this._delegate)return this._delegate;let Z=this._provider.getDelegateTracer(this.name,this.version,this.options);if(!Z)return Jd;return this._delegate=Z,this._delegate}}Z4.ProxyTracer=eV});var z4=W((Y4)=>{Object.defineProperty(Y4,"__esModule",{value:!0});Y4.NoopTracerProvider=void 0;var Yd=NN();class J4{getTracer(Z,$,J){return new Yd.NoopTracer}}Y4.NoopTracerProvider=J4});var FN=W((Q4)=>{Object.defineProperty(Q4,"__esModule",{value:!0});Q4.ProxyTracerProvider=void 0;var Xd=BN(),zd=z4(),Kd=new zd.NoopTracerProvider;class K4{getTracer(Z,$,J){var Y;return(Y=this.getDelegateTracer(Z,$,J))!==null&&Y!==void 0?Y:new Xd.ProxyTracer(this,Z,$,J)}getDelegate(){var Z;return(Z=this._delegate)!==null&&Z!==void 0?Z:Kd}setDelegate(Z){this._delegate=Z}getDelegateTracer(Z,$,J){var Y;return(Y=this._delegate)===null||Y===void 0?void 0:Y.getTracer(Z,$,J)}}Q4.ProxyTracerProvider=K4});var q4=W((W4)=>{Object.defineProperty(W4,"__esModule",{value:!0});W4.SamplingDecision=void 0;var Qd;(function(Z){Z[Z.NOT_RECORD=0]="NOT_RECORD",Z[Z.RECORD=1]="RECORD",Z[Z.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(Qd=W4.SamplingDecision||(W4.SamplingDecision={}))});var B4=W((N4)=>{Object.defineProperty(N4,"__esModule",{value:!0});N4.SpanKind=void 0;var Hd;(function(Z){Z[Z.INTERNAL=0]="INTERNAL",Z[Z.SERVER=1]="SERVER",Z[Z.CLIENT=2]="CLIENT",Z[Z.PRODUCER=3]="PRODUCER",Z[Z.CONSUMER=4]="CONSUMER"})(Hd=N4.SpanKind||(N4.SpanKind={}))});var G4=W((F4)=>{Object.defineProperty(F4,"__esModule",{value:!0});F4.SpanStatusCode=void 0;var Wd;(function(Z){Z[Z.UNSET=0]="UNSET",Z[Z.OK=1]="OK",Z[Z.ERROR=2]="ERROR"})(Wd=F4.SpanStatusCode||(F4.SpanStatusCode={}))});var w4=W((L4)=>{Object.defineProperty(L4,"__esModule",{value:!0});L4.validateValue=L4.validateKey=void 0;var wN="[_0-9a-z-*/]",qd=`[a-z]${wN}{0,255}`,Nd=`[a-z0-9]${wN}{0,240}@[a-z]${wN}{0,13}`,Bd=new RegExp(`^(?:${qd}|${Nd})$`),Fd=/^[ -~]{0,255}[!-~]$/,Gd=/,|=/;function Ld(Z){return Bd.test(Z)}L4.validateKey=Ld;function Dd(Z){return Fd.test(Z)&&!Gd.test(Z)}L4.validateValue=Dd});var f4=W((P4)=>{Object.defineProperty(P4,"__esModule",{value:!0});P4.TraceStateImpl=void 0;var U4=w4(),O4=32,Ud=512,I4=",",k4="=";class UN{constructor(Z){if(this._internalState=new Map,Z)this._parse(Z)}set(Z,$){let J=this._clone();if(J._internalState.has(Z))J._internalState.delete(Z);return J._internalState.set(Z,$),J}unset(Z){let $=this._clone();return $._internalState.delete(Z),$}get(Z){return this._internalState.get(Z)}serialize(){return this._keys().reduce((Z,$)=>{return Z.push($+k4+this.get($)),Z},[]).join(I4)}_parse(Z){if(Z.length>Ud)return;if(this._internalState=Z.split(I4).reverse().reduce(($,J)=>{let Y=J.trim(),X=Y.indexOf(k4);if(X!==-1){let z=Y.slice(0,X),K=Y.slice(X+1,J.length);if((0,U4.validateKey)(z)&&(0,U4.validateValue)(K))$.set(z,K)}return $},new Map),this._internalState.size>O4)this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,O4))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let Z=new UN;return Z._internalState=new Map(this._internalState),Z}}P4.TraceStateImpl=UN});var M4=W((V4)=>{Object.defineProperty(V4,"__esModule",{value:!0});V4.createTraceState=void 0;var Od=f4();function Id(Z){return new Od.TraceStateImpl(Z)}V4.createTraceState=Id});var C4=W((x4)=>{Object.defineProperty(x4,"__esModule",{value:!0});x4.context=void 0;var kd=uQ();x4.context=kd.ContextAPI.getInstance()});var v4=W((h4)=>{Object.defineProperty(h4,"__esModule",{value:!0});h4.diag=void 0;var Pd=K9();h4.diag=Pd.DiagAPI.instance()});var j4=W((y4)=>{Object.defineProperty(y4,"__esModule",{value:!0});y4.NOOP_METER_PROVIDER=y4.NoopMeterProvider=void 0;var Ed=oq();class ON{getMeter(Z,$,J){return Ed.NOOP_METER}}y4.NoopMeterProvider=ON;y4.NOOP_METER_PROVIDER=new ON});var b4=W((S4)=>{Object.defineProperty(S4,"__esModule",{value:!0});S4.MetricsAPI=void 0;var Vd=j4(),IN=z9(),_4=K9(),kN="metrics";class PN{constructor(){}static getInstance(){if(!this._instance)this._instance=new PN;return this._instance}setGlobalMeterProvider(Z){return(0,IN.registerGlobal)(kN,Z,_4.DiagAPI.instance())}getMeterProvider(){return(0,IN.getGlobal)(kN)||Vd.NOOP_METER_PROVIDER}getMeter(Z,$,J){return this.getMeterProvider().getMeter(Z,$,J)}disable(){(0,IN.unregisterGlobal)(kN,_4.DiagAPI.instance())}}S4.MetricsAPI=PN});var u4=W((c4)=>{Object.defineProperty(c4,"__esModule",{value:!0});c4.metrics=void 0;var Ad=b4();c4.metrics=Ad.MetricsAPI.getInstance()});var n4=W((p4)=>{Object.defineProperty(p4,"__esModule",{value:!0});p4.NoopTextMapPropagator=void 0;class l4{inject(Z,$){}extract(Z,$){return Z}fields(){return[]}}p4.NoopTextMapPropagator=l4});var t4=W((a4)=>{Object.defineProperty(a4,"__esModule",{value:!0});a4.deleteBaggage=a4.setBaggage=a4.getActiveBaggage=a4.getBaggage=void 0;var Md=uQ(),xd=cQ(),EN=(0,xd.createContextKey)("OpenTelemetry Baggage Key");function r4(Z){return Z.getValue(EN)||void 0}a4.getBaggage=r4;function Td(){return r4(Md.ContextAPI.getInstance().active())}a4.getActiveBaggage=Td;function Cd(Z,$){return Z.setValue(EN,$)}a4.setBaggage=Cd;function hd(Z){return Z.deleteValue(EN)}a4.deleteBaggage=hd});var JA=W((ZA)=>{Object.defineProperty(ZA,"__esModule",{value:!0});ZA.PropagationAPI=void 0;var fN=z9(),md=n4(),o4=ZN(),uH=t4(),jd=dq(),e4=K9(),VN="propagation",_d=new md.NoopTextMapPropagator;class AN{constructor(){this.createBaggage=jd.createBaggage,this.getBaggage=uH.getBaggage,this.getActiveBaggage=uH.getActiveBaggage,this.setBaggage=uH.setBaggage,this.deleteBaggage=uH.deleteBaggage}static getInstance(){if(!this._instance)this._instance=new AN;return this._instance}setGlobalPropagator(Z){return(0,fN.registerGlobal)(VN,Z,e4.DiagAPI.instance())}inject(Z,$,J=o4.defaultTextMapSetter){return this._getGlobalPropagator().inject(Z,$,J)}extract(Z,$,J=o4.defaultTextMapGetter){return this._getGlobalPropagator().extract(Z,$,J)}fields(){return this._getGlobalPropagator().fields()}disable(){(0,fN.unregisterGlobal)(VN,e4.DiagAPI.instance())}_getGlobalPropagator(){return(0,fN.getGlobal)(VN)||_d}}ZA.PropagationAPI=AN});var zA=W((YA)=>{Object.defineProperty(YA,"__esModule",{value:!0});YA.propagation=void 0;var Sd=JA();YA.propagation=Sd.PropagationAPI.getInstance()});var NA=W((WA)=>{Object.defineProperty(WA,"__esModule",{value:!0});WA.TraceAPI=void 0;var MN=z9(),KA=FN(),QA=dH(),HQ=HN(),HA=K9(),xN="trace";class TN{constructor(){this._proxyTracerProvider=new KA.ProxyTracerProvider,this.wrapSpanContext=QA.wrapSpanContext,this.isSpanContextValid=QA.isSpanContextValid,this.deleteSpan=HQ.deleteSpan,this.getSpan=HQ.getSpan,this.getActiveSpan=HQ.getActiveSpan,this.getSpanContext=HQ.getSpanContext,this.setSpan=HQ.setSpan,this.setSpanContext=HQ.setSpanContext}static getInstance(){if(!this._instance)this._instance=new TN;return this._instance}setGlobalTracerProvider(Z){let $=(0,MN.registerGlobal)(xN,this._proxyTracerProvider,HA.DiagAPI.instance());if($)this._proxyTracerProvider.setDelegate(Z);return $}getTracerProvider(){return(0,MN.getGlobal)(xN)||this._proxyTracerProvider}getTracer(Z,$){return this.getTracerProvider().getTracer(Z,$)}disable(){(0,MN.unregisterGlobal)(xN,HA.DiagAPI.instance()),this._proxyTracerProvider=new KA.ProxyTracerProvider}}WA.TraceAPI=TN});var GA=W((BA)=>{Object.defineProperty(BA,"__esModule",{value:!0});BA.trace=void 0;var gd=NA();BA.trace=gd.TraceAPI.getInstance()});var PA=W((S)=>{Object.defineProperty(S,"__esModule",{value:!0});S.trace=S.propagation=S.metrics=S.diag=S.context=S.INVALID_SPAN_CONTEXT=S.INVALID_TRACEID=S.INVALID_SPANID=S.isValidSpanId=S.isValidTraceId=S.isSpanContextValid=S.createTraceState=S.TraceFlags=S.SpanStatusCode=S.SpanKind=S.SamplingDecision=S.ProxyTracerProvider=S.ProxyTracer=S.defaultTextMapSetter=S.defaultTextMapGetter=S.ValueType=S.createNoopMeter=S.DiagLogLevel=S.DiagConsoleLogger=S.ROOT_CONTEXT=S.createContextKey=S.baggageEntryMetadataFromString=void 0;var bd=dq();Object.defineProperty(S,"baggageEntryMetadataFromString",{enumerable:!0,get:function(){return bd.baggageEntryMetadataFromString}});var LA=cQ();Object.defineProperty(S,"createContextKey",{enumerable:!0,get:function(){return LA.createContextKey}});Object.defineProperty(S,"ROOT_CONTEXT",{enumerable:!0,get:function(){return LA.ROOT_CONTEXT}});var cd=NV();Object.defineProperty(S,"DiagConsoleLogger",{enumerable:!0,get:function(){return cd.DiagConsoleLogger}});var dd=_H();Object.defineProperty(S,"DiagLogLevel",{enumerable:!0,get:function(){return dd.DiagLogLevel}});var ud=oq();Object.defineProperty(S,"createNoopMeter",{enumerable:!0,get:function(){return ud.createNoopMeter}});var ld=EV();Object.defineProperty(S,"ValueType",{enumerable:!0,get:function(){return ld.ValueType}});var DA=ZN();Object.defineProperty(S,"defaultTextMapGetter",{enumerable:!0,get:function(){return DA.defaultTextMapGetter}});Object.defineProperty(S,"defaultTextMapSetter",{enumerable:!0,get:function(){return DA.defaultTextMapSetter}});var pd=BN();Object.defineProperty(S,"ProxyTracer",{enumerable:!0,get:function(){return pd.ProxyTracer}});var id=FN();Object.defineProperty(S,"ProxyTracerProvider",{enumerable:!0,get:function(){return id.ProxyTracerProvider}});var nd=q4();Object.defineProperty(S,"SamplingDecision",{enumerable:!0,get:function(){return nd.SamplingDecision}});var rd=B4();Object.defineProperty(S,"SpanKind",{enumerable:!0,get:function(){return rd.SpanKind}});var ad=G4();Object.defineProperty(S,"SpanStatusCode",{enumerable:!0,get:function(){return ad.SpanStatusCode}});var sd=zN();Object.defineProperty(S,"TraceFlags",{enumerable:!0,get:function(){return sd.TraceFlags}});var td=M4();Object.defineProperty(S,"createTraceState",{enumerable:!0,get:function(){return td.createTraceState}});var CN=dH();Object.defineProperty(S,"isSpanContextValid",{enumerable:!0,get:function(){return CN.isSpanContextValid}});Object.defineProperty(S,"isValidTraceId",{enumerable:!0,get:function(){return CN.isValidTraceId}});Object.defineProperty(S,"isValidSpanId",{enumerable:!0,get:function(){return CN.isValidSpanId}});var hN=bH();Object.defineProperty(S,"INVALID_SPANID",{enumerable:!0,get:function(){return hN.INVALID_SPANID}});Object.defineProperty(S,"INVALID_TRACEID",{enumerable:!0,get:function(){return hN.INVALID_TRACEID}});Object.defineProperty(S,"INVALID_SPAN_CONTEXT",{enumerable:!0,get:function(){return hN.INVALID_SPAN_CONTEXT}});var wA=C4();Object.defineProperty(S,"context",{enumerable:!0,get:function(){return wA.context}});var UA=v4();Object.defineProperty(S,"diag",{enumerable:!0,get:function(){return UA.diag}});var OA=u4();Object.defineProperty(S,"metrics",{enumerable:!0,get:function(){return OA.metrics}});var IA=zA();Object.defineProperty(S,"propagation",{enumerable:!0,get:function(){return IA.propagation}});var kA=GA();Object.defineProperty(S,"trace",{enumerable:!0,get:function(){return kA.trace}});S.default={context:wA.context,diag:UA.diag,metrics:OA.metrics,propagation:IA.propagation,trace:kA.trace}});function VA(Z){if(lQ+Z>lH.length)crypto.getRandomValues(lH),lQ=0;let $="",J=lQ+Z;for(let Y=lQ;Y<J;Y++)$+=Ju[lH[Y]];return lQ=J,$}function fA(Z,$){if(Z===void 0)return $;if(typeof Z==="number")return Z;if(Z instanceof Date)return Z.getTime();let[J,Y]=Z;return J*1000+Y/1e6}class AA{_traceId;_spanId;_parentSpanId;_name;_startTime;_endTime;_attributes={};_status={code:P0.SpanStatusCode.UNSET};_kind;_ended=!1;constructor(Z,$,J,Y){if(this._name=Z,this._traceId=J,this._spanId=VA(8),this._parentSpanId=Y,this._kind=$.kind||P0.SpanKind.INTERNAL,this._startTime=fA($.startTime,Date.now()),$.attributes)for(let[X,z]of Object.entries($.attributes))this._attributes[X]=String(z);try{pQ?.spanStarted({traceId:this._traceId,spanId:this._spanId,parentSpanId:this._parentSpanId,name:this._name,startTime:this._startTime,attributes:{...this._attributes},flags:1,kind:this._kind,links:[]})}catch{}}notifySpanUpdated(){try{pQ?.spanUpdated({traceId:this._traceId,spanId:this._spanId,parentSpanId:this._parentSpanId,name:this._name,startTime:this._startTime,attributes:{...this._attributes},flags:1,kind:this._kind,links:[]})}catch{}}spanContext(){return{traceId:this._traceId,spanId:this._spanId,traceFlags:1,isRemote:!1}}setAttribute(Z,$){if(!this._ended)this._attributes[Z]=String($),this.notifySpanUpdated();return this}setAttributes(Z){if(!this._ended){for(let[$,J]of Object.entries(Z))this._attributes[$]=String(J);this.notifySpanUpdated()}return this}addEvent(){return this}addLink(){return this}addLinks(){return this}setStatus(Z){if(!this._ended)this._status=Z;return this}updateName(Z){if(!this._ended)this._name=Z,this.notifySpanUpdated();return this}end(Z){if(this._ended)return;this._ended=!0,this._endTime=fA(Z,Date.now());let $=this._endTime,J={traceId:this._traceId,spanId:this._spanId,parentSpanId:this._parentSpanId,name:this._name,startTime:this._startTime,endTime:$,attributes:{...this._attributes},error:this._status.code===P0.SpanStatusCode.ERROR,flags:1,kind:this._kind,statusCode:this._status.code,statusMessage:this._status.message,links:[]};try{pQ?.spanEnded(J)}catch{}if(EA)try{EA(J)}catch(Y){console.error("[browser-bridge] Error in collector callback",Y)}}isRecording(){return!this._ended}recordException(){return this}}class MA{startSpan(Z,$,J){let Y=J||P0.context.active(),X=P0.trace.getSpanContext(Y),z,K,H;if(X?.traceId)z=X.traceId,K=X.spanId,H=(X.traceFlags&1)===1||pQ!==void 0;else H=pQ!==void 0||$u?.(Z)||Math.random()<Zu,z=VA(16);if(!H)return P0.trace.wrapSpanContext({traceId:z,spanId:"",traceFlags:0});return new AA(Z,$||{},z,K)}startActiveSpan(Z,...$){let J={},Y,X;if($.length===1)X=$[0];else if($.length===2)J=$[0],X=$[1];else J=$[0],Y=$[1],X=$[2];let z=this.startSpan(Z,J,Y),K=P0.trace.setSpan(Y||P0.context.active(),z);return P0.context.with(K,()=>{try{let H=X(z);if(H&&typeof H.then==="function")return H.then((q)=>{return z.end(),q},(q)=>{throw z.setStatus({code:P0.SpanStatusCode.ERROR,message:q?.message}),z.end(),q});return z.end(),H}catch(H){throw z.setStatus({code:P0.SpanStatusCode.ERROR,message:H?.message}),z.end(),H}})}}class Yu{tracer=new MA;getTracer(){return this.tracer}}var P0,EA,pQ,Zu=0.01,$u,Ju,lH,lQ;var xA=O(()=>{P0=DB(PA(),1),Ju=Array.from({length:256},(Z,$)=>$.toString(16).padStart(2,"0")),lH=new Uint8Array(1024),lQ=lH.length});function c0(Z,$){return{symbol:Z,defaultValue:$}}function pH(Z){let $=new AbortController;if(Z.aborted)return $.abort(Z.reason),{signal:$.signal,abort(Y){$.abort(Y)},unlink(){}};let J=()=>$.abort(Z.reason);return Z.addEventListener("abort",J,{once:!0}),{signal:$.signal,abort(Y){Z.removeEventListener("abort",J),$.abort(Y)},unlink(){Z.removeEventListener("abort",J)}}}class g8{values;signal;parent;name;constructor(Z,$,J,Y){if(this.parent=Z,this.values=J||new Map,this.name=Y,$)this.signal=$;else if(Z)this.signal=Z.signal;else this.signal=new AbortController().signal}get canceled(){return this.signal.aborted}get reason(){return this.signal.reason}get(Z){if(this.values.has(Z.symbol))return this.values.get(Z.symbol);if(this.parent)return this.parent.get(Z);return Z.defaultValue}with(Z,$){let J=new Map(this.values);return J.set(Z.symbol,$),new g8(this,void 0,J)}withCancel(){let Z=pH(this.signal);return[new g8(this,Z.signal),(J)=>Z.abort(J)]}withUnlinkableCancel(){let Z=pH(this.signal);return[new g8(this,Z.signal),(J)=>Z.abort(J),()=>Z.unlink()]}withTimeout(Z){let $=pH(this.signal),J=new g8(this,$.signal),Y=setTimeout(()=>{$.abort(Error("context deadline exceeded"))},Z);return $.signal.addEventListener("abort",()=>{clearTimeout(Y)},{once:!0}),J}withDeadline(Z){let $=Z.getTime()-Date.now();if($<=0){let J=pH(this.signal);return J.abort(Error("context deadline exceeded")),new g8(this,J.signal)}return this.withTimeout($)}withTimeoutAndCancel(Z){let[$,J]=this.withCancel();return[$.withTimeout(Z),J]}withName(Z){return new g8(this,void 0,void 0,Z)}withDetached(){return new g8(this,new AbortController().signal)}getParent(){return this.parent}getPath(){let Z=[],$=this;while($){if($.name)Z.unshift($.name);$=$.getParent()}return Z}}function b8(){return new g8}function Wu(Z){if(typeof Z==="boolean")return Z;if(typeof process>"u")return!1;let $=process.env??{};if("NO_COLOR"in $)return!1;if($.TERM==="dumb")return!1;let J=$.FORCE_COLOR;if(J==="1"||J==="true")return!0;if(J==="0")return!1;return process.stdout?.isTTY??!1}function qu(Z){let J=(M)=>(V)=>Z?`\x1B[${M.join(";")}m${V}\x1B[0m`:V,Y=J([2]),X=J([90]),z=J([31]),K=J([32]),H=J([33]),q=J([34]),L=J([35]),D=J([36]),E=J([1]),P=J([1,31]);return{dim:Y,gray:X,red:z,green:K,yellow:H,blue:q,magenta:L,cyan:D,bold:E,level:(M,V)=>{switch(M){case"debug":return L(V);case"info":return q(V);case"warn":return H(V);case"error":return P(V);default:return M}}}}function Nu(Z){return{indent:" ".repeat(Z.indent??Xu),maxDepth:Z.maxDepth??zu,maxEntries:Z.maxEntries??Ku,maxArrayLength:Z.maxArrayLength??Qu,maxStringLength:Z.maxStringLength??Hu,includeTimestamp:Z.includeTimestamp??!0,includeContextPath:Z.includeContextPath??!0,inlineSerializer:Z.inlineSerializer}}function Bu(Z){return Z.toISOString().slice(11,23)}function TA(Z){return typeof Z==="object"&&Z!==null&&"getPath"in Z&&typeof Z.getPath==="function"}function RN(Z){if(typeof Z!=="object"||Z===null)return!1;return"message"in Z||"stack"in Z||"name"in Z||"cause"in Z}function Fu(Z){return typeof Z==="object"&&Z!==null&&"kind"in Z&&Z.kind==="summary"&&"summary"in Z&&typeof Z.summary==="string"}function Gu(Z,$){if(Z.length<=$)return Z;return`${Z.slice(0,$)}...`}function Lu(Z,$,J,Y){if(!$.inlineSerializer)return Z;try{let X=$.inlineSerializer(Z,{path:J,depth:Y});return X===void 0?Z:X}catch{return Z}}function w6(Z,$,J,Y,X,z){let K=Lu(Z,$,z,Y);if(Fu(K))return J.dim(`<${K.summary}>`);if(Z=K,Z===null)return J.gray("null");if(Z===void 0)return J.gray("undefined");if(typeof Z==="string"){let H=Gu(Z,$.maxStringLength);return J.green(JSON.stringify(H))}if(typeof Z==="number")return J.yellow(String(Z));if(typeof Z==="boolean")return J.magenta(String(Z));if(typeof Z==="bigint")return J.yellow(`${Z}n`);if(typeof Z==="symbol")return J.cyan(Z.toString());if(typeof Z==="function"){let H=Z.name?` ${Z.name}`:"";return J.dim(`[Function${H}]`)}if(Z instanceof Date){let H=Number.isNaN(Z.getTime())?"Invalid Date":Z.toISOString();return J.green(H)}if(Z instanceof RegExp)return J.cyan(Z.toString());if(RN(Z))return hA(Z,$,J,Y,X,z);if(Array.isArray(Z))return CA(Z,$,J,Y,X,z);if(typeof ArrayBuffer<"u"&&Z instanceof ArrayBuffer)return J.dim(`ArrayBuffer(${Z.byteLength})`);if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView==="function"&&ArrayBuffer.isView(Z)){let H=Z,q=H.constructor?.name??"TypedArray";return J.dim(`${q}(${H.byteLength})`)}if(Z instanceof Map)return Du(Z,$,J,Y,X,z);if(Z instanceof Set)return CA(Array.from(Z.values()),$,J,Y,X,z);return typeof Z==="object"?wu(Z,$,J,Y,X,z):J.dim(`[${typeof Z}]`)}function hA(Z,$,J,Y,X,z){if(X.has(Z))return J.dim("[Circular]");X.add(Z);let K=typeof Z.name==="string"?Z.name:"Error",H=typeof Z.message==="string"?Z.message:"",q=H?`${K}: ${H}`:K,L=J.red(q);if("cause"in Z&&Z.cause!==void 0){let D=w6(Z.cause,$,J,Y+1,X,z.concat("cause"));L=`${L} ${J.dim("cause=")}${D}`}return X.delete(Z),L}function CA(Z,$,J,Y,X,z){if(Y>=$.maxDepth)return J.dim(`[Array(${Z.length})]`);if(X.has(Z))return J.dim("[Circular]");if(X.add(Z),Z.length===0){let D=J.dim("[]");return X.delete(Z),D}let K=Math.min(Z.length,$.maxArrayLength),H=Z.slice(0,K).map((D,E)=>w6(D,$,J,Y+1,X,z.concat(E)));if(Z.length>K)H.push(J.dim(`... ${Z.length-K} more`));let q=J.dim(", "),L=`${J.dim("[")}${H.join(q)}${J.dim("]")}`;return X.delete(Z),L}function Du(Z,$,J,Y,X,z){if(Y>=$.maxDepth)return J.dim(`Map(${Z.size})`);if(X.has(Z))return J.dim("[Circular]");X.add(Z);let K=Array.from(Z.entries()),H=Math.min(K.length,$.maxEntries),q=K.slice(0,H).map(([E,P])=>{let M=w6(E,$,J,Y+1,X,z.concat("<key>")),V=w6(P,$,J,Y+1,X,z.concat(String(E)));return`${M} ${J.dim("=>")} ${V}`});if(K.length>H)q.push(J.dim(`... ${K.length-H} more`));let L=J.dim(", "),D=`${J.dim("Map{")}${q.join(L)}${J.dim("}")}`;return X.delete(Z),D}function wu(Z,$,J,Y,X,z){if(Y>=$.maxDepth){let E=Z?.constructor?.name??"Object";return J.dim(`[${E}]`)}if(X.has(Z))return J.dim("[Circular]");X.add(Z);let K=Object.entries(Z);if(K.length===0){let E=J.dim("{}");return X.delete(Z),E}let H=Math.min(K.length,$.maxEntries),q=K.slice(0,H).map(([E,P])=>{let M=w6(P,$,J,Y+1,X,z.concat(E));return`${J.cyan(E)}: ${M}`});if(K.length>H)q.push(J.dim(`... ${K.length-H} more`));let L=J.dim(", "),D=`${J.dim("{")}${q.join(L)}${J.dim("}")}`;return X.delete(Z),D}function Uu(Z={}){let $=Nu(Z),J=qu(Wu(Z.useColors)),Y=Z.console??console;return{log:(X,z)=>{let K=[];if($.includeTimestamp)K.push(J.dim(Bu(z.timestamp)));let H=z.level.toUpperCase().padEnd(5);K.push(J.level(z.level,H));let q=z.level==="error"?J.bold(z.message):z.message;if(K.push(q),$.includeContextPath&&TA(z.context)){let P=z.context.getPath();if(P.length>0)K.push(J.dim(`ctx=${P.join("/")}`))}let L=new WeakSet;if(!TA(z.context)&&z.context&&Object.keys(z.context).length>0){let P=w6(z.context,$,J,0,L,["context"]);K.push(`${J.dim("context=")}${P}`)}if(z.metadata&&Object.keys(z.metadata).length>0){let P=w6(z.metadata,$,J,0,L,["metadata"]);K.push(`${J.dim("meta=")}${P}`)}let D=[K.join(" ")];if(z.error!==void 0){let P=RN(z.error)?hA(z.error,$,J,0,L,["error"]):w6(z.error,$,J,0,L,["error"]);if(D[0]=`${D[0]} ${J.dim("error=")}${P}`,RN(z.error)&&typeof z.error.stack==="string"){let M=z.error.stack.split(`
|
|
5
|
-
`).slice(1);for(let V of M){let y=V.trim();if(y)
|
|
6
|
-
`);switch(z.level){case"debug":case"info":Y.log(E);break;case"warn":Y.warn(E);break;case"error":Y.error(E);break;default:{let P=z.level;throw Error(`Unhandled log level: ${String(P)}`)}}}}}function Pu(Z){return Z.get(ku)}function d0(Z){function $(J,Y){let X=new Date;Pu(J).log(J,{...Y,timestamp:X,logger:Z})}return{debug:(J,Y,X)=>{$(J,{level:"debug",message:Y,context:J,metadata:X})},info:(J,Y,X)=>{$(J,{level:"info",message:Y,context:J,metadata:X})},warn:(J,Y,X)=>{$(J,{level:"warn",message:Y,context:J,metadata:X})},error:(J,Y,X,z)=>{$(J,{level:"error",message:Y,context:J,error:X,metadata:z})}}}var Xu=2,zu=6,Ku=50,Qu=40,Hu=200,Ou,Iu,ku;var RA=O(()=>{u0();Ou=Uu(),Iu={log:(Z,$)=>Ou.log(Z,$)},ku=c0(Symbol("loggerBackend"),Iu)});var dZ0,uZ0,lZ0,pZ0,iZ0;var vA=O(()=>{dZ0=c0(Symbol("otel.span"),void 0),uZ0=c0(Symbol("otel.root_span"),void 0),lZ0=c0(Symbol("otel.root_start_ms"),void 0),pZ0=c0(Symbol("otel.suppress_child_spans"),!1),iZ0=c0(Symbol("otel.inheritable_span_attributes"),{})});var u0=O(()=>{xA();RA();vA()});function iH(Z){return Z.get(fu)}function P8(Z,$){let J={name:Z,type:"counter",description:$?.description,labelNames:$?.labelNames};return{increment:(Y,X,z)=>{iH(Y).increment(Y,J,X??1,z)},record:(Y,X,z)=>{iH(Y).record(Y,J,X,z)}}}function g(Z,$){let J={name:Z,type:"histogram",description:$?.description,labelNames:$?.labelNames};return{histogram:(Y,X,z)=>{iH(Y).histogram(Y,J,X,z)},record:(Y,X,z)=>{iH(Y).record(Y,J,X,z)}}}var Eu,fu;var U6=O(()=>{u0();Eu={record:()=>{},increment:()=>{},gauge:()=>{},histogram:()=>{}},fu=c0(Symbol("metricsBackend"),Eu)});class vN{serialize(Z){return Au.encode(Z)}deserialize(Z){return Vu.decode(Z)}getBlobType(){return{kind:"string"}}}class q8{proto;constructor(Z){this.proto=Z}serialize(Z){return Z.toBinary()}deserialize(Z){return this.proto.fromBinary(Z)}getBlobType(){return{kind:"proto",typeName:this.proto.typeName}}}function Q0(Z){if(typeof Buffer<"u")return Buffer.from(Z).toString("hex");let $="";for(let J=0;J<Z.length;J++)$+=Mu[Z[J]];return $}function Cu(Z){if(!xu.test(Z))return;try{let $=new Uint8Array(Z.length/2);if(Buffer.from($.buffer,$.byteOffset,$.byteLength).write(Z,"hex")===$.length)return $}catch{}return}function l0(Z){let $=Z.trim().toLowerCase();if($.length%2!==0)throw Error("Invalid hex string length");if($.length>=Tu&&typeof Buffer<"u"){let Y=Cu($);if(Y!==void 0)return Y}let J=new Uint8Array($.length/2);for(let Y=0;Y<$.length;Y+=2)J[Y/2]=parseInt($.slice(Y,Y+2),16);return J}var Vu,Au,nH,Mu,xu,Tu=64;var Q9=O(()=>{Vu=new TextDecoder,Au=new TextEncoder;nH=new vN;Mu=Array.from({length:256},(Z,$)=>$.toString(16).padStart(2,"0"));xu=/^[0-9a-f]*$/});function rH(Z){let $=Z.buffer;if($ instanceof ArrayBuffer)return new Uint8Array($,Z.byteOffset,Z.byteLength);return new Uint8Array(Z)}async function WQ(Z){let $=await crypto.subtle.digest("SHA-256",rH(Z));return new Uint8Array($)}var H$0,W$0;var H9=O(()=>{U6();Q9();H$0=g("agent_kv.in_memory.get_blob.duration_ms",{description:"Duration of InMemoryBlobStore getBlob operations in milliseconds"}),W$0=g("agent_kv.in_memory.set_blob.duration_ms",{description:"Duration of InMemoryBlobStore setBlob operations in milliseconds"})});function mA(Z,$){hu.warn(Z,"Subagent state ref blob not found; restoring without its transcript",$),Ru.increment(Z,1,{reader:$.reader,fallback:$.fallback})}async function yN(Z,$,J){let Y={...$.subagentStates??{}},X=Object.entries($.subagentStateRefs??{});if(X.length===0)return Y;let z=await _q(X,async([H,q])=>{let L=await J.getBlob(Z,q);if(L===void 0)return{kind:"missing",subagentId:H,blobIdHex:Q0(q)};try{return{kind:"loaded",subagentId:H,state:y8.fromBinary(L)}}catch(D){return{kind:"failed",error:D}}},{max:yA}),K=z.find((H)=>H.kind==="failed");if(K!==void 0&&K.kind==="failed")throw K.error;for(let H of z)if(H.kind==="loaded")Y[H.subagentId]=H.state;else if(H.kind==="missing"){let q=Y[H.subagentId]!==void 0;mA(Z,{reader:"resolve",fallback:q?"inline":"dropped",subagentId:H.subagentId,blobIdHex:H.blobIdHex})}return Y}var yA=8,hu,Ru;var mN=O(()=>{u0();U6();VQ();XQ();Q9();hu=d0("@anysphere/agent-kv:subagent-states"),Ru=P8("agent_kv.subagent_state_ref.missing_blob",{description:"Subagent state refs whose blob was missing, counted per read until a checkpoint rewrites the ref. fallback=inline kept the entry saved beside the ref (usually a transcript-free summary), dropped omitted the subagent, superseded kept a newer in-memory state.",labelNames:["reader","fallback"]})});import*as d from"zod/v4";function yu(){let Z=new Uint8Array(jA);return crypto.getRandomValues(Z),Q0(Z)}function _A(Z){return typeof Z==="string"&&Z.length===jA*2&&vu.test(Z)}function mu(){if(jN===null)jN=d.object({agentId:d.string(),latestRootBlobId:d.custom((Z)=>Z instanceof Uint8Array,{error:"Expected Uint8Array"}),name:d.string(),createdAt:d.number(),mode:d.enum(_N),isRunEverything:d.boolean(),approvalMode:d.enum(SN).optional(),lastUsedModel:d.string().optional(),lastDebugServerPort:d.number().int().positive().optional(),currentPlanUri:d.string().optional(),subagentInfo:d.object({parentAgentId:d.string().min(1),rootParentAgentId:d.string().min(1),toolCallId:d.string().min(1),typeName:d.string().min(1)}).optional(),blobEncryptionKey:d.string().optional()});return jN}function _u(Z){return ju.has(Z)}function gu(Z){return Su.has(Z)}function bu(Z){return typeof Z==="object"&&Z!==null}function aH(Z,$){let J=bu(Z)&&$ in Z?Z[$]:void 0;return typeof J==="string"&&J.length>0?J:void 0}function cu(Z){if(!Z||typeof Z!=="object")return;let $=aH(Z,"parentAgentId"),J=aH(Z,"rootParentAgentId"),Y=aH(Z,"toolCallId"),X=aH(Z,"typeName");if($===void 0||J===void 0||Y===void 0||X===void 0)return;return{parentAgentId:$,rootParentAgentId:J,toolCallId:Y,typeName:X}}class sH{serialize(Z){let $=Q0(Z.latestRootBlobId);return nH.serialize(JSON.stringify({...Z,latestRootBlobId:$}))}deserialize(Z){let $=JSON.parse(nH.deserialize(Z)),J=iQ($.agentId),Y=typeof $.latestRootBlobId==="string"?l0($.latestRootBlobId):J.latestRootBlobId,X=$.isRunEverything===!0,z=$.mode;if(z==="auto-run")z="default",X=!0;let K=typeof z==="string"&&_u(z)?z:"default",H=$.approvalMode,q=typeof H==="string"&&gu(H)?H:void 0,L=cu($.subagentInfo),D=_A($.blobEncryptionKey)?$.blobEncryptionKey:J.blobEncryptionKey;return mu().parse({...J,...$,mode:K,isRunEverything:X,approvalMode:q,latestRootBlobId:Y,subagentInfo:L,blobEncryptionKey:D})}getBlobType(){return{kind:"json"}}}async function gA(Z,$,J){let Y=new N6,X=[],z=$.turns;for(let H of z){let q=await J.getBlob(Z,H);if(!q)continue;let L=SA.deserialize(q),D;switch(L.turn.case){case"agentConversationTurn":{let E=L.turn.value,P=await J.getBlob(Z,E.userMessage);if(!P)continue;let M=uu.deserialize(P),V=[];for(let Y0 of E.steps){let a=await J.getBlob(Z,Y0);if(a){let pM=lu.deserialize(a);V.push(pM)}}let y=new H6({userMessage:M,steps:V});D=new v8({turn:{case:"agentConversationTurn",value:y}});break}case"shellConversationTurn":{let E=L.turn.value,P=await J.getBlob(Z,E.shellCommand);if(!P)continue;let M=iu.deserialize(P),V=await J.getBlob(Z,E.shellOutput);if(!V)continue;let y=nu.deserialize(V),Y0=new W6({shellCommand:M,shellOutput:y});D=new v8({turn:{case:"shellConversationTurn",value:Y0}});break}}if(!D)continue;X.push(D)}Y.turns=X;let K=[];for(let H of $.todos){let q=await J.getBlob(Z,H);if(q){let L=du.deserialize(q);K.push(L)}}if(Y.todos=K,$.summary){let H=await J.getBlob(Z,$.summary);if(H){let q=pu.deserialize(H);Y.summary=q}}return Y}class nQ{blobStore;metadataStore;conversationStateStructure;serde=new q8(x0);fixedRootBlobId;constructor(Z,$,J={}){this.blobStore=Z;this.metadataStore=$;this.conversationStateStructure=new x0,this.fixedRootBlobId=J.fixedRootBlobId}subscribeToMetadata(Z,$){return this.metadataStore.subscribe(Z,()=>{$(this.metadataStore.get(Z))})}setMetadata(Z,$){this.metadataStore.set(Z,$)}getMetadata(Z){return this.metadataStore.get(Z)}getId(){return this.getMetadata("agentId")}getBlobStore(){return this.blobStore}getConversationStateStructure(){return this.conversationStateStructure}async getLastRequestIdFromConversation(Z){let $=this.conversationStateStructure.turns;if($.length===0)return null;for(let J=$.length-1;J>=0;J--){let Y=$[J],X=await this.blobStore.getBlob(Z,Y);if(!X)continue;let z=SA.deserialize(X);if(z.turn.case==="agentConversationTurn")return z.turn.value.requestId??null}return null}async getFullConversation(Z){return this.deserializeConversationStateStructure(Z,this.conversationStateStructure)}async deserializeConversationStateStructure(Z,$){return gA(Z,$,this.blobStore)}async getFullConversationWithSubagents(Z){let $=this.conversationStateStructure,J=await this.deserializeConversationStateStructure(Z,$),Y={},X=await yN(Z,$,this.blobStore);for(let[z,K]of Object.entries(X))if(K.conversationState){let H=await this.deserializeConversationStateStructure(Z,K.conversationState);Y[z]={conversationState:H,createdTimestampMs:K.createdTimestampMs,lastUsedTimestampMs:K.lastUsedTimestampMs,subagentType:K.subagentType}}return{conversationState:J,subagentStates:Y}}getLatestCheckpoint(){return this.getConversationStateStructure()}async handleCheckpoint(Z,$){let J=this.serde.serialize($),Y=this.fixedRootBlobId??await WQ(J);await this.blobStore.setBlob(Z,Y,J),this.setMetadata("latestRootBlobId",Y),this.conversationStateStructure=$}async resetFromDb(Z){await this.tryResetFromDb(Z)}async tryResetFromDb(Z){try{let $=this.getMetadata("latestRootBlobId");if(!$||$.length===0)return this.conversationStateStructure=new x0,!1;let J=await this.blobStore.getBlob(Z,$);if(!J)return this.conversationStateStructure=new x0,!1;let Y=this.serde.deserialize(J);return this.conversationStateStructure=Y,!0}catch($){return this.conversationStateStructure=new x0,!1}}async dispose(){if(this.blobStore instanceof JQ)await this.blobStore.dispose()}}var _N,SN,jA=32,vu,jN=null,iQ=(Z)=>({agentId:Z??crypto.randomUUID(),latestRootBlobId:new Uint8Array,name:"New Agent",mode:"default",isRunEverything:!1,approvalMode:void 0,createdAt:Date.now(),lastUsedModel:void 0,lastDebugServerPort:void 0,currentPlanUri:void 0,subagentInfo:void 0,blobEncryptionKey:yu()}),ju,Su,du,uu,lu,SA,pu,iu,nu;var bA=O(()=>{VQ();eQ();XQ();H9();Q9();mN();_N=["default","plan","debug","search"],SN=["allowlist","unrestricted","auto-review"],vu=/^[0-9a-f]+$/;ju=new Set(_N);Su=new Set(SN);du=new q8(B0),uu=new q8(R8),lu=new q8(h8),SA=new q8(Q6),pu=new q8(q6),iu=new q8(z6),nu=new q8(K6)});var cA=O(()=>{VQ();H9();Q9()});var ru;var gN=O(()=>{u0();ru=c0(Symbol("blob-read-kind"),void 0)});var bN=()=>{};var y$0,m$0,j$0,_$0,S$0,g$0,b$0,c$0,d$0,u$0;var dA=O(()=>{u0();U6();H9();y$0=d0("@anysphere/agent-kv"),m$0=g("agent_kv.cached.get_blob.duration_ms",{description:"Duration of CachedBlobStore getBlob operations in milliseconds"}),j$0=g("agent_kv.cached.set_blob.duration_ms",{description:"Duration of CachedBlobStore setBlob operations in milliseconds"}),_$0=g("agent_kv.cached.flush.duration_ms",{description:"Duration of CachedBlobStore flush operations in milliseconds"}),S$0=g("agent_kv.cached.cache_bytes",{description:"Resident bytes held in the CachedBlobStore in-memory cache, sampled on flush"}),g$0=P8("agent_kv.cached.get_blob.results",{description:"Number of CachedBlobStore getBlob operations by cache result type",labelNames:["cache_type"]}),b$0=P8("agent_kv.nearby.decrypt_errors",{description:"Number of nearby blob reads that found ciphertext but failed to decrypt it (wrong encryption key)"}),c$0=P8("agent_kv.nearby.decrypt_fallback_success",{description:"Number of nearby blob reads where the primary encryption key failed but the fallback key decrypted the blob"}),d$0=g("agent_kv.encrypted.get_blob.duration_ms",{description:"Duration of EncryptedBlobStore getBlob operations in milliseconds"}),u$0=g("agent_kv.encrypted.set_blob.duration_ms",{description:"Duration of EncryptedBlobStore setBlob operations in milliseconds"})});import{Message as n$0,proto3 as r$0}from"@bufbuild/protobuf";var uA=()=>{};var Y90,X90,z90;var lA=O(()=>{u0();U6();uA();H9();Y90=d0("ControlledKvManager"),X90=g("agent_kv.controlled.get_blob.duration_ms",{description:"Duration of ControlledKvManager getBlob operations in milliseconds"}),z90=g("agent_kv.controlled.set_blob.duration_ms",{description:"Duration of ControlledKvManager setBlob operations in milliseconds"})});var q90,N90,B90,F90;var lN=O(()=>{u0();U6();q90=d0("@anysphere/agent-kv"),N90=g("agent_kv.writethrough.get_blob.duration_ms",{description:"Duration of WritethroughBlobStore getBlob operations in milliseconds"}),B90=g("agent_kv.writethrough.set_blob.duration_ms",{description:"Duration of WritethroughBlobStore setBlob operations in milliseconds"}),F90=g("agent_kv.writethrough.flush.duration_ms",{description:"Duration of WritethroughBlobStore flush operations in milliseconds"})});var pN=O(()=>{lN()});var V90,A90,M90,x90;var pA=O(()=>{u0();U6();bN();gN();H9();Q9();pN();V90=d0("@anysphere/agent-kv:reference"),A90=P8("agent_kv.lazy_reference.cache_miss",{description:"Number of large or slow LazyReference cache misses that require loading and deserializing a blob",labelNames:["blob_type"]}),M90=g("agent_kv.lazy_reference.deserialize_bytes",{description:"Blob byte size loaded on a large or slow LazyReference deserialize cache miss",labelNames:["blob_type"]}),x90=g("agent_kv.lazy_reference.deserialize_ms",{description:"Time spent deserializing a blob on a large or slow LazyReference cache miss",labelNames:["blob_type"]})});var R90,v90,y90,m90,j90,_90;var iA=O(()=>{u0();U6();R90=d0("RetryBlobStore"),v90=P8("agent_kv.retry.retries",{description:"Number of RetryBlobStore retry attempts (one per re-issued operation, not counting the first try)",labelNames:["operation","outcome"]}),y90=g("agent_kv.retry.get_blob.duration_ms",{description:"Duration of RetryBlobStore getBlob operations in milliseconds"}),m90=g("agent_kv.retry.set_blob.duration_ms",{description:"Duration of RetryBlobStore setBlob operations in milliseconds"}),j90=g("agent_kv.retry.set_blob_locally_only.duration_ms",{description:"Duration of RetryBlobStore setBlobLocallyOnly operations in milliseconds"}),_90=g("agent_kv.retry.flush.duration_ms",{description:"Duration of RetryBlobStore flush operations in milliseconds"})});var rQ=O(()=>{bA();cA();gN();bN();H9();dA();lA();pA();iA();Q9();mN();pN();lN()});function YB(){return{value:void 0,done:!0}}class ZM{subscribersByRun=new Map;async publishRunEventAppended(Z){let $=this.subscribersByRun.get(Z.runId);if(!$)return;for(let J of $){if(J.closed)continue;let Y=J.waiters.shift();if(Y)Y({value:Z,done:!1});else J.queue.push(Z)}}subscribeRunEvents(Z){let $={closed:!1,queue:[],waiters:[]},J=this.subscribersByRun.get(Z.runId)??new Set;J.add($),this.subscribersByRun.set(Z.runId,J);let Y=Z.signal,X=()=>{if(Y?.removeEventListener("abort",X),$.closed)return;if($.closed=!0,J.delete($),J.size===0)this.subscribersByRun.delete(Z.runId);while($.waiters.length>0)$.waiters.shift()?.(YB())};if(Y?.aborted)X();else Y?.addEventListener("abort",X,{once:!0});return{[Symbol.asyncIterator]:()=>({next:async()=>{let z=$.queue.shift();if(z)return{value:z,done:!1};if($.closed||Y?.aborted)return X(),YB();return new Promise((K)=>{$.waiters.push(K)})},return:async()=>{return X(),YB()}})}}}function $M(){return new ZM}import{chmodSync as Pl,existsSync as El,mkdirSync as fl}from"fs";function FQ(Z){if(!El(Z))fl(Z,{recursive:!0,mode:JM});try{Pl(Z,JM)}catch{}}var JM=448;var XB=()=>{};import{AsyncLocalStorage as Vl}from"async_hooks";function YM(){return xl.getStore()??Ml}var Al,Ml,xl,XM;var zM=O(()=>{Al={warn:console.warn.bind(console),error:console.error.bind(console)},Ml=Al,xl=new Vl;XM={warn(...Z){YM().warn(...Z)},error(...Z){YM().error(...Z)}}});var zB;var KM=O(()=>{zB=class zB extends Error{constructor(Z,$){super(Z,$);this.name="NoSqliteDriverError"}}});import{win32 as QM}from"path";function qM(Z,$=process.platform){if($!=="win32")return Z;let J=QM.resolve(Z);if(!(Z.length+WM>HM||J.length+WM>HM))return Z;return QM.toNamespacedPath(J)}var HM=259,WM=8;var NM=()=>{};var FM={};I6(FM,{openBunSqliteDriver:()=>Cl});import{Database as Tl}from"bun:sqlite";class BM{db;statements=new Map;constructor(Z){this.db=Z}exec(Z){this.db.run(Z)}run(Z,$=[]){let{changes:J}=this.prepare(Z).run(...$);return{changes:J}}get(Z,$=[]){return this.prepare(Z).get(...$)??void 0}all(Z,$=[]){return this.prepare(Z).all(...$)}close(){this.statements.clear(),this.db.close()}prepare(Z){let $=this.statements.get(Z);if(!$)$=this.db.prepare(Z),this.statements.set(Z,$);return $}}function Cl(Z){return new BM(new Tl(Z,{create:!0}))}var GM=()=>{};class KB{constructor(){throw Error("node:sqlite is not available in this runtime (the @cursor/sdk/bundled entry targets Bun, which uses bun:sqlite)")}}var DM={};I6(DM,{openNodeSqliteDriver:()=>hl});class LM{db;statements=new Map;constructor(Z){this.db=Z}exec(Z){this.db.exec(Z)}run(Z,$=[]){let J=this.prepare(Z).run(...$);return{changes:Number(J.changes)}}get(Z,$=[]){return this.prepare(Z).get(...$)}all(Z,$=[]){return this.prepare(Z).all(...$)}close(){this.statements.clear(),this.db.close()}prepare(Z){let $=this.statements.get(Z);if(!$)$=this.db.prepare(Z),this.statements.set(Z,$);return $}}function hl(Z){return new LM(new KB(Z))}var wM=()=>{};function Rl(Z){if((typeof Z==="object"&&Z!==null&&"code"in Z&&typeof Z.code==="string"?Z.code:void 0)==="ERR_UNKNOWN_BUILTIN_MODULE")return!0;return(Z instanceof Error?Z.message.toLowerCase():String(Z).toLowerCase()).includes("node:sqlite")}function vl(){return"Bun"in globalThis}async function GQ(Z){let $=qM(Z);if(vl())return(await Promise.resolve().then(() => (GM(),FM))).openBunSqliteDriver($);let J;try{J=await Promise.resolve().then(() => (wM(),DM))}catch(Y){if(Rl(Y))throw new zB("node:sqlite is not available in this runtime. The default local agent store requires Node >= 22.13 (or another runtime that implements node:sqlite). Configure a JsonlLocalAgentStore instead.",{cause:Y});throw Y}return J.openNodeSqliteDriver($)}var JW=O(()=>{KM();NM()});var OM={};I6(OM,{subscribeLocalStoreDegradation:()=>gl,isLocalStoreOpenFailure:()=>XW,SQLiteBlobStoreWithMetadata:()=>WB,LOCAL_STORE_OPEN_FAILURE_WARNING:()=>HB});import{existsSync as yl,mkdirSync as ml,rmSync as jl}from"fs";import{basename as _l,dirname as QB}from"path";function XW(Z){let $=new Set,J=Z;while(J!==void 0&&J!==null&&!$.has(J)){if($.add(J),typeof J!=="object")return typeof J==="string"&&J.toLowerCase().includes(UM);let Y=J;if(Y.code==="SQLITE_CANTOPEN")return!0;if(Y.code==="ERR_SQLITE_ERROR"&&typeof Y.errcode==="number"&&(Y.errcode&255)===Sl)return!0;if(typeof Y.message==="string"&&Y.message.toLowerCase().includes(UM))return!0;J=Y.cause}return!1}function gl(Z,$){let J=Z;if(typeof J.onLocalStoreDegraded!=="function")return()=>{};return J.onLocalStoreDegraded($)}var YW,HB="Local agent storage could not open its database, so this run is continuing in memory. Its checkpoint may be unavailable after the process exits.",Sl=14,UM="unable to open database file",WB;var IM=O(()=>{rQ();XQ();zM();JW();YW=new sH;WB=class WB extends JQ{dbPath;driverPromise;driver;openDriver;openDisabled=!1;memoryBlobs=new Map;deletedBlobIds=new Set;degradationWarning;degradationListeners=new Set;metadata;listeners={agentId:new Set,latestRootBlobId:new Set,name:new Set,createdAt:new Set,mode:new Set,isRunEverything:new Set,approvalMode:new Set,lastUsedModel:new Set,lastDebugServerPort:new Set,currentPlanUri:new Set,subagentInfo:new Set};persistScheduled=!1;isDisposing=!1;disposePromise;static async initAndLoad(Z){let $=new WB(Z);return await $.getDriver(),$}constructor(Z,$){super();this.dbPath=Z;this.openDriver=$?.openDriver??GQ;let J=_l(QB(this.dbPath));this.metadata=iQ(J)}onLocalStoreDegraded(Z){if(this.degradationListeners.add(Z),this.degradationWarning!==void 0)this.notifyDegradationListener(Z,this.degradationWarning);return()=>{this.degradationListeners.delete(Z)}}async getDriver(){if(this.openDisabled)return;if(this.driver)return this.driver;if(!this.driverPromise){let $=(async()=>{let J=QB(this.dbPath);if(!yl(J))ml(J,{recursive:!0});let Y=await this.openDriver(this.dbPath);try{this.initializeDriver(Y)}catch(X){throw Y.close(),X}return this.driver=Y,Y})().catch((J)=>{if(this.driverPromise===$)this.driverPromise=void 0;throw J});this.driverPromise=$}try{return await this.driverPromise}catch(Z){if(XW(Z)){this.openDisabled=!0,this.degrade(Z);return}throw Z}}degrade(Z){if(this.degradationWarning!==void 0)return;this.degradationWarning=HB,XM.warn(HB,Z instanceof Error?Z.message:String(Z));for(let $ of this.degradationListeners)this.notifyDegradationListener($,this.degradationWarning)}notifyDegradationListener(Z,$){try{Z($)}catch{}}rememberBlob(Z,$){this.memoryBlobs.set(Z,Uint8Array.from($))}readRememberedBlob(Z){let $=this.memoryBlobs.get(Z);return $===void 0?void 0:Uint8Array.from($)}async withDriver(Z,$){try{let J=await this.getDriver();if(!J)return Z();return $(J)}catch(J){if(!XW(J))throw J;return this.degrade(J),Z()}}initializeDriver(Z){Z.exec(`PRAGMA journal_mode = WAL;
|
|
4
|
+
`)}`:"");this.errors=Z,this.name="UnsubscriptionError"}}lG.UnsubscriptionError=xQ;class tK{initialTeardown;static EMPTY=(()=>{let Z=new tK;return Z.closed=!0,Z})();closed=!1;_finalizers=null;constructor(Z){this.initialTeardown=Z}unsubscribe(){let Z;if(!this.closed){this.closed=!0;let{initialTeardown:$}=this;if(k0($))try{$()}catch(Y){Z=Y instanceof xQ?Y.errors:[Y]}let{_finalizers:J}=this;if(J){this._finalizers=null;for(let Y of J)try{hG(Y)}catch(X){if(Z=Z??[],X instanceof xQ)Z.push(...X.errors);else Z.push(X)}}if(Z)throw new xQ(Z)}}add(Z){if(Z&&Z!==this)if(this.closed)hG(Z);else{if(Z&&"add"in Z)Z.add(()=>{this.remove(Z)});this._finalizers??=new Set,this._finalizers.add(Z)}}remove(Z){this._finalizers?.delete(Z)}}lG.Subscription=tK;if(typeof Symbol.dispose==="symbol")tK.prototype[Symbol.dispose]=tK.prototype.unsubscribe;function hG(Z){if(k0(Z))Z();else Z.unsubscribe()}class e$ extends tK{isStopped=!1;destination;_nextOverride=null;_errorOverride=null;_completeOverride=null;_onFinalize=null;constructor(Z,$){super();if(this.destination=Z instanceof e$?Z:xT(Z),this._nextOverride=$?.next??null,this._errorOverride=$?.error??null,this._completeOverride=$?.complete??null,this._onFinalize=$?.finalize??null,this._next=this._nextOverride?VT:this._next,this._error=this._errorOverride?AT:this._error,this._complete=this._completeOverride?MT:this._complete,TT(Z))Z.add(this)}next(Z){if(this.isStopped)RW(uG(Z),this);else this._next(Z)}error(Z){if(this.isStopped)RW(dG(Z),this);else this.isStopped=!0,this._error(Z)}complete(){if(this.isStopped)RW(lG.COMPLETE_NOTIFICATION,this);else this.isStopped=!0,this._complete()}unsubscribe(){if(!this.closed)this.isStopped=!0,super.unsubscribe(),this._onFinalize?.()}_next(Z){this.destination.next(Z)}_error(Z){try{this.destination.error(Z)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}lG.Subscriber=e$;lG.config={onUnhandledError:null,onStoppedNotification:null};function VT(Z){try{this._nextOverride(Z)}catch($){this.destination.error($)}}function AT(Z){try{this._errorOverride(Z)}catch($){this.destination.error($)}finally{this.unsubscribe()}}function MT(){try{this._completeOverride()}catch(Z){this.destination.error(Z)}finally{this.unsubscribe()}}class vG{partialObserver;constructor(Z){this.partialObserver=Z}next(Z){let{partialObserver:$}=this;if($.next)try{$.next(Z)}catch(J){sK(J)}}error(Z){let{partialObserver:$}=this;if($.error)try{$.error(Z)}catch(J){sK(J)}else sK(Z)}complete(){let{partialObserver:Z}=this;if(Z.complete)try{Z.complete()}catch($){sK($)}}}function xT(Z){return new vG(!Z||k0(Z)?{next:Z??void 0}:Z)}function RW(Z,$){let{onStoppedNotification:J}=lG.config;J&&setTimeout(()=>J(Z,$))}function TT(Z){return Z&&k0(Z.unsubscribe)&&k0(Z.add)}function CT({destination:Z,...$}){return new e$(Z,$)}lG.operate=CT;class m8{constructor(Z){if(Z)this._subscribe=Z}subscribe(Z){let $=Z instanceof e$?Z:new e$(Z);return $.add(this._trySubscribe($)),$}_trySubscribe(Z){try{return this._subscribe(Z)}catch($){Z.error($)}}forEach(Z){return new Promise(($,J)=>{let Y=new e$({next:(X)=>{try{Z(X)}catch(z){J(z),Y.unsubscribe()}},error:J,complete:$});this.subscribe(Y)})}_subscribe(Z){return}[Symbol.observable??"@@observable"](){return this}pipe(...Z){return Z.reduce(hT,this)}[Symbol.asyncIterator](){let Z,$=!1,J,Y=!1,X=[],z=[],K=(q)=>{$=!0,J=q;while(z.length){let[L,w]=z.shift();w(q)}},H=()=>{Y=!0;while(z.length){let[q]=z.shift();q({value:void 0,done:!0})}};return{next:()=>{if(!Z)Z=this.subscribe({next:(q)=>{if(z.length){let[L]=z.shift();L({value:q,done:!1})}else X.push(q)},error:K,complete:H});if(X.length)return Promise.resolve({value:X.shift(),done:!1});if(Y)return Promise.resolve({value:void 0,done:!0});if($)return Promise.reject(J);return new Promise((q,L)=>{z.push([q,L])})},throw:(q)=>{return Z?.unsubscribe(),K(q),Promise.reject(q)},return:()=>{return Z?.unsubscribe(),H(),Promise.resolve({value:void 0,done:!0})},[Symbol.asyncIterator](){return this}}}}lG.Observable=m8;function hT(Z,$){return $(Z)}function sK(Z){setTimeout(()=>{let{onUnhandledError:$}=lG.config;if($)$(Z);else throw Z})}lG.reportUnhandledError=sK;function RT(Z){switch(SG(Z)){case I0.Own:return Z;case I0.InteropObservable:return vT(Z);case I0.ArrayLike:return yG(Z);case I0.Promise:return mG(Z);case I0.AsyncIterable:return jG(Z);case I0.Iterable:return yT(Z);case I0.ReadableStreamLike:return mT(Z)}}lG.from=RT;function vT(Z){return new m8(($)=>{let J=Z[Symbol.observable??"@@observable"]();if(k0(J.subscribe))return J.subscribe($);throw TypeError("Provided object does not correctly implement Symbol.observable")})}function yG(Z){return new m8(($)=>{_G(Z,$)})}lG.fromArrayLike=yG;function mG(Z){return new m8(($)=>{Z.then((J)=>{if(!$.closed)$.next(J),$.complete()},(J)=>$.error(J)).then(null,sK)})}lG.fromPromise=mG;function yT(Z){return new m8(($)=>{for(let J of Z)if($.next(J),$.closed)return;$.complete()})}function jG(Z){return new m8(($)=>{jT(Z,$).catch((J)=>$.error(J))})}function mT(Z){return jG(gG(Z))}async function jT(Z,$){for await(let J of Z)if($.next(J),$.closed)return;$.complete()}function _G(Z,$){let J=Z.length;for(let Y=0;Y<J;Y++){if($.closed)return;$.next(Z[Y])}$.complete()}lG.subscribeToArray=_G;var I0;(function(Z){Z[Z.Own=0]="Own",Z[Z.InteropObservable=1]="InteropObservable",Z[Z.ArrayLike=2]="ArrayLike",Z[Z.Promise=3]="Promise",Z[Z.AsyncIterable=4]="AsyncIterable",Z[Z.Iterable=5]="Iterable",Z[Z.ReadableStreamLike=6]="ReadableStreamLike"})(I0=lG.ObservableInputType||(lG.ObservableInputType={}));function SG(Z){if(Z instanceof m8)return I0.Own;if(gT(Z))return I0.InteropObservable;if(cG(Z))return I0.ArrayLike;if(bG(Z))return I0.Promise;if(_T(Z))return I0.AsyncIterable;if(bT(Z))return I0.Iterable;if(ST(Z))return I0.ReadableStreamLike;throw TypeError(`You provided ${Z!==null&&typeof Z==="object"?"an invalid object":`'${Z}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}lG.getObservableInputType=SG;function k0(Z){return typeof Z==="function"}lG.isFunction=k0;function _T(Z){return Symbol.asyncIterator&&k0(Z?.[Symbol.asyncIterator])}async function*gG(Z){let $=Z.getReader();try{while(!0){let{value:J,done:Y}=await $.read();if(Y)return;yield J}}finally{$.releaseLock()}}lG.readableStreamLikeToAsyncGenerator=gG;function ST(Z){return k0(Z?.getReader)}function bG(Z){return k0(Z?.then)}lG.isPromise=bG;function gT(Z){return k0(Z[Symbol.observable??"@@observable"])}function bT(Z){return k0(Z?.[Symbol.iterator])}function cG(Z){return Z&&typeof Z.length==="number"&&!k0(Z)}lG.isArrayLike=cG;function cT(Z){return!!Z&&(Z instanceof m8||k0(Z.lift)&&k0(Z.subscribe))}lG.isObservable=cT;lG.COMPLETE_NOTIFICATION=(()=>zH("C",void 0,void 0))();function dG(Z){return zH("E",void 0,Z)}lG.errorNotification=dG;function uG(Z){return zH("N",Z,void 0)}lG.nextNotification=uG;function zH(Z,$,J){return{kind:Z,value:$,error:J}}lG.createNotification=zH});var rG=W((nG)=>{Object.defineProperty(nG,"__esModule",{value:!0});nG.performanceTimestampProvider=void 0;nG.performanceTimestampProvider={now(){return(nG.performanceTimestampProvider.delegate||performance).now()},delegate:void 0}});var mW=W((aG)=>{Object.defineProperty(aG,"__esModule",{value:!0});aG.animationFrameProvider=void 0;var KC=U();aG.animationFrameProvider={schedule(Z){let $=requestAnimationFrame,J=cancelAnimationFrame,{delegate:Y}=aG.animationFrameProvider;if(Y)$=Y.requestAnimationFrame,J=Y.cancelAnimationFrame;let X=$((z)=>{J=void 0,Z(z)});return new KC.Subscription(()=>J?.(X))},requestAnimationFrame(...Z){let{delegate:$}=aG.animationFrameProvider;return($?.requestAnimationFrame||requestAnimationFrame)(...Z)},cancelAnimationFrame(...Z){let{delegate:$}=aG.animationFrameProvider;return($?.cancelAnimationFrame||cancelAnimationFrame)(...Z)},delegate:void 0}});var ZL=W((oG)=>{Object.defineProperty(oG,"__esModule",{value:!0});oG.animationFrames=void 0;var QC=U(),HC=rG(),sG=mW();function WC(Z){return Z?tG(Z):qC}oG.animationFrames=WC;function tG(Z){return new QC.Observable(($)=>{let J=Z||HC.performanceTimestampProvider,Y=J.now(),X=0,z=()=>{if(!$.closed)X=sG.animationFrameProvider.requestAnimationFrame((K)=>{X=0;let H=J.now();$.next({timestamp:Z?H:K,elapsed:H-Y}),z()})};return z(),()=>{if(X)sG.animationFrameProvider.cancelAnimationFrame(X)}})}var qC=tG()});var q0=W((JL)=>{Object.defineProperty(JL,"__esModule",{value:!0});JL.Subject=void 0;var jW=U();class $L extends jW.Observable{_closed=!1;get closed(){return this._closed}_observerCounter=0;currentObservers=new Map;observerSnapshot;get observers(){return this.observerSnapshot??=Array.from(this.currentObservers.values())}hasError=!1;thrownError=null;constructor(){super()}_clearObservers(){this.currentObservers.clear(),this.observerSnapshot=void 0}next(Z){if(!this._closed){let{observers:$}=this,J=$.length;for(let Y=0;Y<J;Y++)$[Y].next(Z)}}error(Z){if(!this._closed){this.hasError=this._closed=!0,this.thrownError=Z;let{observers:$}=this,J=$.length;for(let Y=0;Y<J;Y++)$[Y].error(Z);this._clearObservers()}}complete(){if(!this._closed){this._closed=!0;let{observers:Z}=this,$=Z.length;for(let J=0;J<$;J++)Z[J].complete();this._clearObservers()}}unsubscribe(){this._closed=!0,this._clearObservers()}get observed(){return this.currentObservers.size>0}_subscribe(Z){return this._checkFinalizedStatuses(Z),this._innerSubscribe(Z)}_innerSubscribe(Z){if(this.hasError||this._closed)return jW.Subscription.EMPTY;let{currentObservers:$}=this,J=this._observerCounter++;return $.set(J,Z),this.observerSnapshot=void 0,Z.add(()=>{$.delete(J),this.observerSnapshot=void 0}),Z}_checkFinalizedStatuses(Z){let{hasError:$,thrownError:J,_closed:Y}=this;if($)Z.error(J);else if(Y)Z.complete()}asObservable(){return new jW.Observable((Z)=>this.subscribe(Z))}}JL.Subject=$L});var QL=W((zL)=>{Object.defineProperty(zL,"__esModule",{value:!0});zL.BehaviorSubject=void 0;var NC=q0();class XL extends NC.Subject{_value;constructor(Z){super();this._value=Z}get value(){return this.getValue()}_subscribe(Z){let $=super._subscribe(Z);return!$.closed&&Z.next(this._value),$}getValue(){let{hasError:Z,thrownError:$,_value:J}=this;if(Z)throw $;return J}next(Z){super.next(this._value=Z)}}zL.BehaviorSubject=XL});var KH=W((HL)=>{Object.defineProperty(HL,"__esModule",{value:!0});HL.dateTimestampProvider=void 0;HL.dateTimestampProvider={now(){return(HL.dateTimestampProvider.delegate||Date).now()},delegate:void 0}});var SW=W((qL)=>{Object.defineProperty(qL,"__esModule",{value:!0});qL.ReplaySubject=void 0;var BC=q0(),FC=KH();class WL extends BC.Subject{_bufferSize;_windowTime;_timestampProvider;_buffer=[];_infiniteTimeWindow=!0;constructor(Z=1/0,$=1/0,J=FC.dateTimestampProvider){super();this._bufferSize=Z,this._windowTime=$,this._timestampProvider=J,this._infiniteTimeWindow=$===1/0,this._bufferSize=Math.max(1,Z),this._windowTime=Math.max(1,$)}next(Z){let{_closed:$,_buffer:J,_infiniteTimeWindow:Y,_timestampProvider:X,_windowTime:z}=this;if(!$)J.push(Z),!Y&&J.push(X.now()+z);this._trimBuffer(),super.next(Z)}_subscribe(Z){this._trimBuffer();let $=this._innerSubscribe(Z),{_infiniteTimeWindow:J,_buffer:Y}=this,X=Y.slice();for(let z=0;z<X.length&&!Z.closed;z+=J?1:2)Z.next(X[z]);return this._checkFinalizedStatuses(Z),$}_trimBuffer(){let{_bufferSize:Z,_timestampProvider:$,_buffer:J,_infiniteTimeWindow:Y}=this,X=(Y?1:2)*Z;if(Z<1/0&&X<J.length&&J.splice(0,J.length-X),!Y){let z=$.now(),K=0;for(let H=1;H<J.length&&J[H]<=z;H+=2)K=H;K&&J.splice(0,K+1)}}}qL.ReplaySubject=WL});var gW=W((FL)=>{Object.defineProperty(FL,"__esModule",{value:!0});FL.AsyncSubject=void 0;var GC=q0();class BL extends GC.Subject{_value=null;_hasValue=!1;_isComplete=!1;_checkFinalizedStatuses(Z){let{hasError:$,_hasValue:J,_value:Y,thrownError:X,_closed:z,_isComplete:K}=this;if($)Z.error(X);else if(z||K)J&&Z.next(Y),Z.complete()}next(Z){if(!this._closed)this._value=Z,this._hasValue=!0}complete(){let{_hasValue:Z,_value:$,_isComplete:J}=this;if(!J)this._isComplete=!0,Z&&super.next($),super.complete()}}FL.AsyncSubject=BL});var UL=W((DL)=>{Object.defineProperty(DL,"__esModule",{value:!0});DL.Action=void 0;var LC=U();class LL extends LC.Subscription{constructor(Z,$){super()}schedule(Z,$=0){return this}}DL.Action=LL});var IL=W((OL)=>{Object.defineProperty(OL,"__esModule",{value:!0});OL.intervalProvider=void 0;OL.intervalProvider={setInterval(Z,$,...J){let{delegate:Y}=OL.intervalProvider;if(Y?.setInterval)return Y.setInterval(Z,$,...J);return setInterval(Z,$,...J)},clearInterval(Z){let{delegate:$}=OL.intervalProvider;return($?.clearInterval||clearInterval)(Z)},delegate:void 0}});var Z9=W((kL)=>{Object.defineProperty(kL,"__esModule",{value:!0});kL.arrRemove=void 0;function DC(Z,$){if(Z){let J=Z.indexOf($);0<=J&&Z.splice(J,1)}}kL.arrRemove=DC});var oK=W((VL)=>{Object.defineProperty(VL,"__esModule",{value:!0});VL.AsyncAction=void 0;var wC=UL(),EL=IL(),UC=Z9();class fL extends wC.Action{scheduler;work;id;state;delay;pending=!1;constructor(Z,$){super(Z,$);this.scheduler=Z,this.work=$}schedule(Z,$=0){if(this.closed)return this;this.state=Z;let J=this.id,Y=this.scheduler;if(J!=null)this.id=this.recycleAsyncId(Y,J,$);return this.pending=!0,this.delay=$,this.id=this.id??this.requestAsyncId(Y,this.id,$),this}requestAsyncId(Z,$,J=0){return EL.intervalProvider.setInterval(Z.flush.bind(Z,this),J)}recycleAsyncId(Z,$,J=0){if(J!=null&&this.delay===J&&this.pending===!1)return $;if($!=null)EL.intervalProvider.clearInterval($);return}execute(Z,$){if(this.closed)return Error("executing a cancelled action");this.pending=!1;let J=this._execute(Z,$);if(J)return J;else if(this.pending===!1&&this.id!=null)this.id=this.recycleAsyncId(this.scheduler,this.id,null)}_execute(Z,$){let J=!1,Y;try{this.work(Z)}catch(X){J=!0,Y=X?X:Error("Scheduled action threw falsy error")}if(J)return this.unsubscribe(),Y}unsubscribe(){if(!this.closed){let{id:Z,scheduler:$}=this,{actions:J}=$;if(this.work=this.state=this.scheduler=null,this.pending=!1,(0,UC.arrRemove)(J,this),Z!=null)this.id=this.recycleAsyncId($,Z,null);this.delay=null,super.unsubscribe()}}}VL.AsyncAction=fL});var CL=W((xL)=>{Object.defineProperty(xL,"__esModule",{value:!0});xL.TestTools=xL.Immediate=void 0;var OC=1,bW,HH={};function ML(Z){if(Z in HH)return delete HH[Z],!0;return!1}xL.Immediate={setImmediate(Z){let $=OC++;if(HH[$]=!0,!bW)bW=Promise.resolve();return bW.then(()=>ML($)&&Z()),$},clearImmediate(Z){ML(Z)}};xL.TestTools={pending(){return Object.keys(HH).length}}});var RL=W((hL)=>{Object.defineProperty(hL,"__esModule",{value:!0});hL.immediateProvider=void 0;var kC=CL(),{setImmediate:PC,clearImmediate:EC}=kC.Immediate;hL.immediateProvider={setImmediate(...Z){let{delegate:$}=hL.immediateProvider;return($?.setImmediate||PC)(...Z)},clearImmediate(Z){let{delegate:$}=hL.immediateProvider;return($?.clearImmediate||EC)(Z)},delegate:void 0}});var _L=W((mL)=>{Object.defineProperty(mL,"__esModule",{value:!0});mL.AsapAction=void 0;var fC=oK(),vL=RL();class yL extends fC.AsyncAction{scheduler;work;constructor(Z,$){super(Z,$);this.scheduler=Z,this.work=$}requestAsyncId(Z,$,J=0){if(J!==null&&J>0)return super.requestAsyncId(Z,$,J);return Z.actions.push(this),Z._scheduled||(Z._scheduled=vL.immediateProvider.setImmediate(Z.flush.bind(Z,void 0)))}recycleAsyncId(Z,$,J=0){if(J!=null?J>0:this.delay>0)return super.recycleAsyncId(Z,$,J);let{actions:Y}=Z;if($!=null&&Y[Y.length-1]?.id!==$){if(vL.immediateProvider.clearImmediate($),Z._scheduled===$)Z._scheduled=void 0}return}}mL.AsapAction=yL});var dW=W((SL)=>{Object.defineProperty(SL,"__esModule",{value:!0});SL.Scheduler=void 0;var VC=KH();class cW{schedulerActionCtor;static now=VC.dateTimestampProvider.now;constructor(Z,$=cW.now){this.schedulerActionCtor=Z,this.now=$}now;schedule(Z,$=0,J){return new this.schedulerActionCtor(this,Z).schedule(J,$)}}SL.Scheduler=cW});var eK=W((dL)=>{Object.defineProperty(dL,"__esModule",{value:!0});dL.AsyncScheduler=void 0;var bL=dW();class cL extends bL.Scheduler{actions=[];_active=!1;_scheduled;constructor(Z,$=bL.Scheduler.now){super(Z,$)}flush(Z){let{actions:$}=this;if(this._active){$.push(Z);return}let J;this._active=!0;do if(J=Z.execute(Z.state,Z.delay))break;while(Z=$.shift());if(this._active=!1,J){while(Z=$.shift())Z.unsubscribe();throw J}}}dL.AsyncScheduler=cL});var nL=W((pL)=>{Object.defineProperty(pL,"__esModule",{value:!0});pL.AsapScheduler=void 0;var AC=eK();class lL extends AC.AsyncScheduler{flush(Z){this._active=!0;let $=this._scheduled;this._scheduled=void 0;let{actions:J}=this,Y;Z=Z||J.shift();do if(Y=Z.execute(Z.state,Z.delay))break;while((Z=J[0])&&Z.id===$&&J.shift());if(this._active=!1,Y){while((Z=J[0])&&Z.id===$&&J.shift())Z.unsubscribe();throw Y}}}pL.AsapScheduler=lL});var sL=W((rL)=>{Object.defineProperty(rL,"__esModule",{value:!0});rL.asapScheduler=void 0;var MC=_L(),xC=nL();rL.asapScheduler=new xC.AsapScheduler(MC.AsapAction)});var T0=W((tL)=>{Object.defineProperty(tL,"__esModule",{value:!0});tL.asyncScheduler=void 0;var TC=oK(),CC=eK();tL.asyncScheduler=new CC.AsyncScheduler(TC.AsyncAction)});var JD=W((ZD)=>{Object.defineProperty(ZD,"__esModule",{value:!0});ZD.QueueAction=void 0;var hC=oK();class eL extends hC.AsyncAction{scheduler;work;constructor(Z,$){super(Z,$);this.scheduler=Z,this.work=$}schedule(Z,$=0){if($>0)return super.schedule(Z,$);return this.delay=$,this.state=Z,this.scheduler.flush(this),this}execute(Z,$){return $>0||this.closed?super.execute(Z,$):this._execute(Z,$)}requestAsyncId(Z,$,J=0){if(J!=null&&J>0||J==null&&this.delay>0)return super.requestAsyncId(Z,$,J);return Z.flush(this),0}}ZD.QueueAction=eL});var KD=W((XD)=>{Object.defineProperty(XD,"__esModule",{value:!0});XD.QueueScheduler=void 0;var RC=eK();class YD extends RC.AsyncScheduler{}XD.QueueScheduler=YD});var WD=W((QD)=>{Object.defineProperty(QD,"__esModule",{value:!0});QD.queueScheduler=void 0;var vC=JD(),yC=KD();QD.queueScheduler=new yC.QueueScheduler(vC.QueueAction)});var GD=W((BD)=>{Object.defineProperty(BD,"__esModule",{value:!0});BD.AnimationFrameAction=void 0;var mC=oK(),qD=mW();class ND extends mC.AsyncAction{scheduler;work;constructor(Z,$){super(Z,$);this.scheduler=Z,this.work=$}requestAsyncId(Z,$,J=0){if(J!==null&&J>0)return super.requestAsyncId(Z,$,J);return Z.actions.push(this),Z._scheduled||(Z._scheduled=qD.animationFrameProvider.requestAnimationFrame(()=>Z.flush(void 0)))}recycleAsyncId(Z,$,J=0){if(J!=null?J>0:this.delay>0)return super.recycleAsyncId(Z,$,J);let{actions:Y}=Z;if($!=null&&Y[Y.length-1]?.id!==$)qD.animationFrameProvider.cancelAnimationFrame($),Z._scheduled=void 0;return}}BD.AnimationFrameAction=ND});var UD=W((DD)=>{Object.defineProperty(DD,"__esModule",{value:!0});DD.AnimationFrameScheduler=void 0;var jC=eK();class LD extends jC.AsyncScheduler{flush(Z){this._active=!0;let $=this._scheduled;this._scheduled=void 0;let{actions:J}=this,Y;Z=Z||J.shift();do if(Y=Z.execute(Z.state,Z.delay))break;while((Z=J[0])&&Z.id===$&&J.shift());if(this._active=!1,Y){while((Z=J[0])&&Z.id===$&&J.shift())Z.unsubscribe();throw Y}}}DD.AnimationFrameScheduler=LD});var kD=W((OD)=>{Object.defineProperty(OD,"__esModule",{value:!0});OD.animationFrameScheduler=void 0;var _C=GD(),SC=UD();OD.animationFrameScheduler=new SC.AnimationFrameScheduler(_C.AnimationFrameAction)});var VD=W((ED)=>{Object.defineProperty(ED,"__esModule",{value:!0});ED.VirtualAction=ED.VirtualTimeScheduler=void 0;var gC=oK(),bC=U(),cC=eK();class PD extends cC.AsyncScheduler{maxFrames;static frameTimeFactor=10;frame=0;index=-1;constructor(Z=CQ,$=1/0){super(Z,()=>this.frame);this.maxFrames=$}flush(){let{actions:Z,maxFrames:$}=this,J,Y;while((Y=Z[0])&&Y.delay<=$)if(Z.shift(),this.frame=Y.delay,J=Y.execute(Y.state,Y.delay))break;if(J){while(Y=Z.shift())Y.unsubscribe();throw J}}}ED.VirtualTimeScheduler=PD;class CQ extends gC.AsyncAction{scheduler;work;index;active=!0;constructor(Z,$,J=Z.index+=1){super(Z,$);this.scheduler=Z,this.work=$,this.index=J,this.index=Z.index=J}schedule(Z,$=0){if(Number.isFinite($)){if(!this.id)return super.schedule(Z,$);this.active=!1;let J=new CQ(this.scheduler,this.work);return this.add(J),J.schedule(Z,$)}else return bC.Subscription.EMPTY}requestAsyncId(Z,$,J=0){this.delay=Z.frame+J;let{actions:Y}=Z;return Y.push(this),Y.sort(CQ.sortActions),1}recycleAsyncId(Z,$,J=0){return}_execute(Z,$){if(this.active===!0)return super._execute(Z,$)}static sortActions(Z,$){if(Z.delay===$.delay)if(Z.index===$.index)return 0;else if(Z.index>$.index)return 1;else return-1;else if(Z.delay>$.delay)return 1;else return-1}}ED.VirtualAction=CQ});var uW=W((AD)=>{Object.defineProperty(AD,"__esModule",{value:!0});AD.rx=void 0;var uC=U();function lC(Z,...$){return $.reduce(pC,(0,uC.from)(Z))}AD.rx=lC;function pC(Z,$){return $(Z)}});var lW=W((xD)=>{Object.defineProperty(xD,"__esModule",{value:!0});xD.pipe=void 0;function iC(...Z){return Z.length===1?Z[0]:($)=>Z.reduce(nC,$)}xD.pipe=iC;function nC(Z,$){return $(Z)}});var K0=W((CD)=>{Object.defineProperty(CD,"__esModule",{value:!0});CD.noop=void 0;function rC(){}CD.noop=rC});var C0=W((RD)=>{Object.defineProperty(RD,"__esModule",{value:!0});RD.identity=void 0;function aC(Z){return Z}RD.identity=aC});var j8=W((mD)=>{Object.defineProperty(mD,"__esModule",{value:!0});mD.EmptyError=void 0;class yD extends Error{constructor(){super("no elements in sequence");this.name="EmptyError"}}mD.EmptyError=yD});var gD=W((_D)=>{Object.defineProperty(_D,"__esModule",{value:!0});_D.lastValueFrom=void 0;var sC=j8();function tC(Z,$){let J=typeof $==="object";return new Promise((Y,X)=>{let z=!1,K;Z.subscribe({next:(H)=>{K=H,z=!0},error:X,complete:()=>{if(z)Y(K);else if(J)Y($.defaultValue);else X(new sC.EmptyError)}})})}_D.lastValueFrom=tC});var dD=W((bD)=>{Object.defineProperty(bD,"__esModule",{value:!0});bD.firstValueFrom=void 0;var oC=U(),eC=j8();function Zh(Z,$){let J=typeof $==="object";return new Promise((Y,X)=>{let z=new oC.Subscriber({next:(K)=>{Y(K),z.unsubscribe()},error:X,complete:()=>{if(J)Y($.defaultValue);else X(new eC.EmptyError)}});Z.subscribe(z)})}bD.firstValueFrom=Zh});var pW=W((lD)=>{Object.defineProperty(lD,"__esModule",{value:!0});lD.ArgumentOutOfRangeError=void 0;class uD extends Error{constructor(){super("argument out of range");this.name="ArgumentOutOfRangeError"}}lD.ArgumentOutOfRangeError=uD});var iW=W((nD)=>{Object.defineProperty(nD,"__esModule",{value:!0});nD.NotFoundError=void 0;class iD extends Error{constructor(Z){super(Z);this.name="NotFoundError"}}nD.NotFoundError=iD});var nW=W((sD)=>{Object.defineProperty(sD,"__esModule",{value:!0});sD.SequenceError=void 0;class aD extends Error{constructor(Z){super(Z);this.name="SequenceError"}}sD.SequenceError=aD});var qH=W((oD)=>{Object.defineProperty(oD,"__esModule",{value:!0});oD.isValidDate=void 0;function $h(Z){return Z instanceof Date&&!isNaN(Z)}oD.isValidDate=$h});var c0=W((Zw)=>{Object.defineProperty(Zw,"__esModule",{value:!0});Zw.executeSchedule=void 0;function Jh(Z,$,J,Y=0,X=!1){if(!Z.closed){let z=$.schedule(function(){if(J(),X)Z.add(this.schedule(null,Y));else this.unsubscribe()},Y);if(Z.add(z),!X)return z}}Zw.executeSchedule=Jh});var NH=W((Jw)=>{Object.defineProperty(Jw,"__esModule",{value:!0});Jw.timeout=Jw.TimeoutError=void 0;var Yh=T0(),Xh=qH(),rW=U(),zh=c0();class aW extends Error{info;constructor(Z=null){super("Timeout has occurred");this.info=Z,this.name="TimeoutError"}}Jw.TimeoutError=aW;function Kh(Z,$){let{first:J,each:Y,with:X=Qh,scheduler:z=$??Yh.asyncScheduler,meta:K=null}=(0,Xh.isValidDate)(Z)?{first:Z}:typeof Z==="number"?{each:Z}:Z;if(J==null&&Y==null)throw TypeError("No timeout provided.");return(H)=>new rW.Observable((q)=>{let L,w,E=null,P=0,M=(V)=>{w=(0,zh.executeSchedule)(q,z,()=>{try{L.unsubscribe(),(0,rW.from)(X({meta:K,lastValue:E,seen:P})).subscribe(q)}catch(y){q.error(y)}},V)};L=H.subscribe((0,rW.operate)({destination:q,next:(V)=>{w?.unsubscribe(),P++,q.next(E=V),Y>0&&M(Y)},finalize:()=>{w?.unsubscribe(),E=null}})),!P&&M(J!=null?typeof J==="number"?J:+J-z.now():Y)})}Jw.timeout=Kh;function Qh(Z){throw new aW(Z)}});var hQ=W((Xw)=>{Object.defineProperty(Xw,"__esModule",{value:!0});Xw.isScheduler=void 0;var Wh=U();function qh(Z){return Z&&(0,Wh.isFunction)(Z.schedule)}Xw.isScheduler=qh});var ZQ=W((Qw)=>{Object.defineProperty(Qw,"__esModule",{value:!0});Qw.map=void 0;var Kw=U();function Nh(Z){return($)=>new Kw.Observable((J)=>{let Y=0;$.subscribe((0,Kw.operate)({destination:J,next:(X)=>{J.next(Z(X,Y++))}}))})}Qw.map=Nh});var $Q=W((Ww)=>{Object.defineProperty(Ww,"__esModule",{value:!0});Ww.mapOneOrManyArgs=void 0;var Bh=ZQ(),{isArray:Fh}=Array;function Gh(Z,$){return Fh($)?Z(...$):Z($)}function Lh(Z){return(0,Bh.map)(($)=>Gh(Z,$))}Ww.mapOneOrManyArgs=Lh});var BH=W((Bw)=>{Object.defineProperty(Bw,"__esModule",{value:!0});Bw.observeOn=void 0;var sW=c0(),Nw=U();function Dh(Z,$=0){return(J)=>new Nw.Observable((Y)=>{J.subscribe((0,Nw.operate)({destination:Y,next:(X)=>(0,sW.executeSchedule)(Y,Z,()=>Y.next(X),$),error:(X)=>(0,sW.executeSchedule)(Y,Z,()=>Y.error(X),$),complete:()=>(0,sW.executeSchedule)(Y,Z,()=>Y.complete(),$)}))})}Bw.observeOn=Dh});var FH=W((Gw)=>{Object.defineProperty(Gw,"__esModule",{value:!0});Gw.subscribeOn=void 0;var wh=U();function Uh(Z,$=0){return(J)=>new wh.Observable((Y)=>{Y.add(Z.schedule(()=>J.subscribe(Y),$))})}Gw.subscribeOn=Uh});var Uw=W((Dw)=>{Object.defineProperty(Dw,"__esModule",{value:!0});Dw.scheduleObservable=void 0;var Oh=U(),Ih=BH(),kh=FH();function Ph(Z,$){return(0,Oh.from)(Z).pipe((0,kh.subscribeOn)($),(0,Ih.observeOn)($))}Dw.scheduleObservable=Ph});var kw=W((Ow)=>{Object.defineProperty(Ow,"__esModule",{value:!0});Ow.schedulePromise=void 0;var Eh=U(),fh=BH(),Vh=FH();function Ah(Z,$){return(0,Eh.from)(Z).pipe((0,Vh.subscribeOn)($),(0,fh.observeOn)($))}Ow.schedulePromise=Ah});var Vw=W((Ew)=>{Object.defineProperty(Ew,"__esModule",{value:!0});Ew.scheduleArray=void 0;var Mh=U(),Pw=c0();function xh(Z,$){return new Mh.Observable((J)=>{let Y=0,X=()=>{if(Y===Z.length)J.complete();else J.next(Z[Y++]),(0,Pw.executeSchedule)(J,$,X)};return(0,Pw.executeSchedule)(J,$,X)})}Ew.scheduleArray=xh});var Tw=W((Mw)=>{Object.defineProperty(Mw,"__esModule",{value:!0});Mw.iterator=Mw.getSymbolIterator=void 0;function Aw(){if(typeof Symbol!=="function"||!Symbol.iterator)return"@@iterator";return Symbol.iterator}Mw.getSymbolIterator=Aw;Mw.iterator=Aw()});var tW=W((Rw)=>{Object.defineProperty(Rw,"__esModule",{value:!0});Rw.scheduleIterable=void 0;var Cw=U(),Ch=Tw(),hw=c0();function hh(Z,$){return new Cw.Observable((J)=>{let Y;return(0,hw.executeSchedule)(J,$,()=>{Y=Z[Ch.iterator](),(0,hw.executeSchedule)(J,$,()=>{let X,z;try{({value:X,done:z}=Y.next())}catch(K){J.error(K);return}if(z)J.complete();else J.next(X)},0,!0)}),()=>(0,Cw.isFunction)(Y?.return)&&Y.return()})}Rw.scheduleIterable=hh});var oW=W((mw)=>{Object.defineProperty(mw,"__esModule",{value:!0});mw.scheduleAsyncIterable=void 0;var Rh=U(),yw=c0();function vh(Z,$){if(!Z)throw Error("Iterable cannot be null");return new Rh.Observable((J)=>{(0,yw.executeSchedule)(J,$,()=>{let Y=Z[Symbol.asyncIterator]();(0,yw.executeSchedule)(J,$,()=>{Y.next().then((X)=>{if(X.done)J.complete();else J.next(X.value)})},0,!0)})})}mw.scheduleAsyncIterable=vh});var gw=W((_w)=>{Object.defineProperty(_w,"__esModule",{value:!0});_w.scheduleReadableStreamLike=void 0;var yh=U(),mh=oW();function jh(Z,$){return(0,mh.scheduleAsyncIterable)((0,yh.readableStreamLikeToAsyncGenerator)(Z),$)}_w.scheduleReadableStreamLike=jh});var RQ=W((bw)=>{Object.defineProperty(bw,"__esModule",{value:!0});bw.scheduled=void 0;var _h=Uw(),Sh=kw(),gh=Vw(),bh=tW(),ch=oW(),F6=U(),dh=gw();function uh(Z,$){switch((0,F6.getObservableInputType)(Z)){case F6.ObservableInputType.Own:case F6.ObservableInputType.InteropObservable:return(0,_h.scheduleObservable)(Z,$);case F6.ObservableInputType.Promise:return(0,Sh.schedulePromise)(Z,$);case F6.ObservableInputType.ArrayLike:return(0,gh.scheduleArray)(Z,$);case F6.ObservableInputType.Iterable:return(0,bh.scheduleIterable)(Z,$);case F6.ObservableInputType.AsyncIterable:return(0,ch.scheduleAsyncIterable)(Z,$);case F6.ObservableInputType.ReadableStreamLike:return(0,dh.scheduleReadableStreamLike)(Z,$)}}bw.scheduled=uh});var Zq=W((dw)=>{Object.defineProperty(dw,"__esModule",{value:!0});dw.bindCallbackInternals=void 0;var lh=hQ(),ph=U(),ih=$Q(),nh=gW(),rh=RQ();function eW(Z,$,J,Y){if(J)if((0,lh.isScheduler)(J))Y=J;else return function(...X){return(0,ih.mapOneOrManyArgs)(J)(eW(Z,$,Y).apply(this,X))};if(Y)return function(...X){return(0,rh.scheduled)(eW(Z,$).apply(this,X),Y)};return function(...X){let z=new nh.AsyncSubject,K=!0;return new ph.Observable((H)=>{let q=z.subscribe(H);if(K){K=!1;let L=!1,w=!1;if($.apply(this,[...X,(...E)=>{if(Z){let P=E.shift();if(P!=null){z.error(P);return}}if(z.next(1<E.length?E:E[0]),w=!0,L)z.complete()}]),w)z.complete();L=!0}return q})}}dw.bindCallbackInternals=eW});var iw=W((lw)=>{Object.defineProperty(lw,"__esModule",{value:!0});lw.bindCallback=void 0;var ah=Zq();function sh(Z,$,J){return(0,ah.bindCallbackInternals)(!1,Z,$,J)}lw.bindCallback=sh});var aw=W((nw)=>{Object.defineProperty(nw,"__esModule",{value:!0});nw.bindNodeCallback=void 0;var th=Zq();function oh(Z,$,J){return(0,th.bindCallbackInternals)(!0,Z,$,J)}nw.bindNodeCallback=oh});var $q=W((tw)=>{Object.defineProperty(tw,"__esModule",{value:!0});tw.arrayOrObject=tw.argsArgArrayOrObject=void 0;var{isArray:eh}=Array,{getPrototypeOf:ZR,prototype:$R,keys:JR}=Object;function YR(Z){if(Z.length===1){let $=Z[0],J=sw($);if(J)return J}return{args:Z,keys:null}}tw.argsArgArrayOrObject=YR;function sw(Z){if(eh(Z))return{args:Z,keys:null};if(XR(Z)){let $=JR(Z);return{args:$.map((J)=>Z[J]),keys:$}}return null}tw.arrayOrObject=sw;function XR(Z){return Z&&typeof Z==="object"&&ZR(Z)===$R}});var Jq=W((ew)=>{Object.defineProperty(ew,"__esModule",{value:!0});ew.createObject=void 0;function KR(Z,$){return Z.reduce((J,Y,X)=>(J[Y]=$[X],J),{})}ew.createObject=KR});var k8=W(($2)=>{Object.defineProperty($2,"__esModule",{value:!0});$2.EMPTY=void 0;var QR=U();$2.EMPTY=new QR.Observable((Z)=>Z.complete())});var GH=W((z2)=>{Object.defineProperty(z2,"__esModule",{value:!0});z2.combineLatestInit=z2.combineLatest=void 0;var Yq=U(),HR=$q(),Y2=C0(),WR=Jq(),qR=k8();function NR(Z,$){let J=(0,HR.arrayOrObject)(Z);if(!J)throw TypeError("sources must be an array or object");let{args:Y,keys:X}=J;if(Y.length===0)return qR.EMPTY;return new Yq.Observable(X2(Y,X?(z)=>(0,WR.createObject)(X,z):$?(z)=>$(...z):Y2.identity))}z2.combineLatest=NR;function X2(Z,$=Y2.identity){return(J)=>{let{length:Y}=Z,X=Array(Y),z=Y,K=Y;for(let H=0;H<Y;H++){let q=(0,Yq.from)(Z[H]),L=!1;q.subscribe((0,Yq.operate)({destination:J,next:(w)=>{if(X[H]=w,!L)L=!0,K--;if(!K)J.next($(Array.from(X)))},complete:()=>{if(!--z)J.complete()}}))}}}z2.combineLatestInit=X2});var LH=W((Q2)=>{Object.defineProperty(Q2,"__esModule",{value:!0});Q2.mergeInternals=void 0;var Xq=U(),FR=c0();function GR(Z,$,J,Y,X,z,K,H){let q=[],L=0,w=0,E=!1,P=()=>{if(E&&!q.length&&!L)$.complete()},M=(y)=>L<Y?V(y):q.push(y),V=(y)=>{z&&$.next(y),L++;let Y0=!1;(0,Xq.from)(J(y,w++)).subscribe((0,Xq.operate)({destination:$,next:(a)=>{if(X?.(a),z)M(a);else $.next(a)},complete:()=>{Y0=!0},finalize:()=>{if(Y0)try{L--;while(q.length&&L<Y){let a=q.shift();if(K)(0,FR.executeSchedule)($,K,()=>V(a));else V(a)}P()}catch(a){$.error(a)}}}))};return Z.subscribe((0,Xq.operate)({destination:$,next:M,complete:()=>{E=!0,P()}})),()=>{H?.()}}Q2.mergeInternals=GR});var $9=W((W2)=>{Object.defineProperty(W2,"__esModule",{value:!0});W2.mergeMap=void 0;var LR=U(),DR=LH();function wR(Z,$=1/0){return(J)=>new LR.Observable((Y)=>(0,DR.mergeInternals)(J,Y,Z,$))}W2.mergeMap=wR});var vQ=W((N2)=>{Object.defineProperty(N2,"__esModule",{value:!0});N2.mergeAll=void 0;var UR=$9(),OR=C0();function IR(Z=1/0){return(0,UR.mergeMap)(OR.identity,Z)}N2.mergeAll=IR});var DH=W((F2)=>{Object.defineProperty(F2,"__esModule",{value:!0});F2.concatAll=void 0;var kR=vQ();function PR(){return(0,kR.mergeAll)(1)}F2.concatAll=PR});var G6=W((L2)=>{Object.defineProperty(L2,"__esModule",{value:!0});L2.popNumber=L2.popScheduler=L2.popResultSelector=void 0;var ER=U(),fR=hQ();function zq(Z){return Z[Z.length-1]}function VR(Z){return(0,ER.isFunction)(zq(Z))?Z.pop():void 0}L2.popResultSelector=VR;function AR(Z){return(0,fR.isScheduler)(zq(Z))?Z.pop():void 0}L2.popScheduler=AR;function MR(Z,$){return typeof zq(Z)==="number"?Z.pop():$}L2.popNumber=MR});var Kq=W((w2)=>{Object.defineProperty(w2,"__esModule",{value:!0});w2.concat=void 0;var CR=U(),hR=DH(),RR=G6(),vR=RQ();function yR(...Z){let $=(0,RR.popScheduler)(Z);return(0,hR.concatAll)()($?(0,vR.scheduled)(Z,$):(0,CR.from)(Z))}w2.concat=yR});var yQ=W((I2)=>{Object.defineProperty(I2,"__esModule",{value:!0});I2.defer=void 0;var O2=U();function mR(Z){return new O2.Observable(($)=>{(0,O2.from)(Z()).subscribe($)})}I2.defer=mR});var f2=W((P2)=>{Object.defineProperty(P2,"__esModule",{value:!0});P2.connectable=void 0;var jR=q0(),_R=U(),SR=yQ(),gR={connector:()=>new jR.Subject,resetOnDisconnect:!0};function bR(Z,$=gR){let J=null,{connector:Y,resetOnDisconnect:X=!0}=$,z=Y(),K=new _R.Observable((H)=>{return z.subscribe(H)});return K.connect=()=>{if(!J||J.closed){if(J=(0,SR.defer)(()=>Z).subscribe(z),X)J.add(()=>z=Y())}return J},K}P2.connectable=bR});var M2=W((V2)=>{Object.defineProperty(V2,"__esModule",{value:!0});V2.forkJoin=void 0;var Qq=U(),cR=$q(),dR=G6(),uR=$Q(),lR=Jq(),pR=j8();function iR(...Z){let $=(0,dR.popResultSelector)(Z),{args:J,keys:Y}=(0,cR.argsArgArrayOrObject)(Z),X=new Qq.Observable((z)=>{let{length:K}=J;if(!K){z.complete();return}let H=Array(K),q=K,L=K;for(let w=0;w<K;w++){let E=!1;(0,Qq.from)(J[w]).subscribe((0,Qq.operate)({destination:z,next:(P)=>{if(!E)E=!0,L--;H[w]=P},complete:()=>q--,finalize:()=>{if(!q||!E)if(L===0)z.next(Y?(0,lR.createObject)(Y,H):H),z.complete();else z.error(new pR.EmptyError)}}))}});return $?(0,uR.mapOneOrManyArgs)($)(X):X}V2.forkJoin=iR});var m2=W((v2)=>{Object.defineProperty(v2,"__esModule",{value:!0});v2.fromEvent=void 0;var _8=U(),nR=$Q(),rR=["addListener","removeListener"],aR=["addEventListener","removeEventListener"],sR=["on","off"];function T2(Z,$,J,Y){if((0,_8.isFunction)(J))Y=J,J=void 0;if(Y)return(0,nR.mapOneOrManyArgs)(Y)(T2(Z,$,J));let X=C2(Z)||h2(Z)||R2(Z);if(!X&&!(0,_8.isArrayLike)(Z))throw TypeError("Invalid event target");return new _8.Observable((z)=>{let K=(...H)=>z.next(1<H.length?H:H[0]);if(X)x2(K,z,Z,$,J);else for(let H=0;H<Z.length&&!z.closed;H++){let q=Z[H];x2(K,z,q,$,J)}})}v2.fromEvent=T2;function x2(Z,$,J,Y,X){let[z,K]=tR(J);if(!z||!K)throw TypeError("Invalid event target");J[z](Y,Z,X),$.add(()=>J[K](Y,Z,X))}function tR(Z){return R2(Z)?aR:C2(Z)?rR:h2(Z)?sR:[]}function C2(Z){return(0,_8.isFunction)(Z.addListener)&&(0,_8.isFunction)(Z.removeListener)}function h2(Z){return(0,_8.isFunction)(Z.on)&&(0,_8.isFunction)(Z.off)}function R2(Z){return(0,_8.isFunction)(Z.addEventListener)&&(0,_8.isFunction)(Z.removeEventListener)}});var b2=W((S2)=>{Object.defineProperty(S2,"__esModule",{value:!0});S2.fromEventPattern=void 0;var j2=U(),oR=$Q();function _2(Z,$,J){if(J)return(0,oR.mapOneOrManyArgs)(J)(_2(Z,$));return new j2.Observable((Y)=>{let X=(...K)=>Y.next(K.length===1?K[0]:K),z=Z(X);return(0,j2.isFunction)($)?()=>$(X,z):void 0})}S2.fromEventPattern=_2});var l2=W((d2)=>{Object.defineProperty(d2,"__esModule",{value:!0});d2.generate=void 0;var c2=C0(),eR=hQ(),Zv=yQ(),$v=tW();function Jv(Z,$,J,Y,X){let z,K;if(arguments.length===1)({initialState:K,condition:$,iterate:J,resultSelector:z=c2.identity,scheduler:X}=Z);else if(K=Z,!Y||(0,eR.isScheduler)(Y))z=c2.identity,X=Y;else z=Y;function*H(){for(let q=K;!$||$(q);q=J(q))yield z(q)}return(0,Zv.defer)(X?()=>(0,$v.scheduleIterable)(H(),X):H)}d2.generate=Jv});var n2=W((p2)=>{Object.defineProperty(p2,"__esModule",{value:!0});p2.iif=void 0;var Yv=yQ();function Xv(Z,$,J){return(0,Yv.defer)(()=>Z()?$:J)}p2.iif=Xv});var L6=W((a2)=>{Object.defineProperty(a2,"__esModule",{value:!0});a2.timer=void 0;var zv=U(),Kv=T0(),Qv=hQ(),Hv=qH(),r2=c0();function Wv(Z=0,$,J=Kv.asyncScheduler){let Y=-1;if($!=null)if((0,Qv.isScheduler)($))J=$;else Y=$;return new zv.Observable((X)=>{let z=(0,Hv.isValidDate)(Z)?+Z-J.now():Z;if(z<0)z=0;let K=0;return(0,r2.executeSchedule)(X,J,()=>{if(X.next(K++),0<=Y)(0,r2.executeSchedule)(X,J,()=>{X.next(K++)},Y,!0);else X.complete()},z)})}a2.timer=Wv});var Hq=W((t2)=>{Object.defineProperty(t2,"__esModule",{value:!0});t2.interval=void 0;var qv=T0(),Nv=L6();function Bv(Z=0,$=qv.asyncScheduler){if(Z<0)Z=0;return(0,Nv.timer)(Z,Z,$)}t2.interval=Bv});var YU=W(($U)=>{Object.defineProperty($U,"__esModule",{value:!0});$U.merge=void 0;var e2=U(),Fv=vQ(),Gv=k8(),ZU=G6(),Lv=RQ();function Dv(...Z){let $=(0,ZU.popScheduler)(Z),J=(0,ZU.popNumber)(Z,1/0),Y=Z;return!Y.length?Gv.EMPTY:Y.length===1?(0,e2.from)(Y[0]):(0,Fv.mergeAll)(J)($?(0,Lv.scheduled)(Y,$):(0,e2.from)(Y))}$U.merge=Dv});var KU=W((XU)=>{Object.defineProperty(XU,"__esModule",{value:!0});XU.of=void 0;var wv=U();function Uv(...Z){return(0,wv.fromArrayLike)(Z)}XU.of=Uv});var mQ=W((QU)=>{Object.defineProperty(QU,"__esModule",{value:!0});QU.argsOrArgArray=void 0;var{isArray:Ov}=Array;function Iv(Z){return Z.length===1&&Ov(Z[0])?Z[0]:Z}QU.argsOrArgArray=Iv});var qq=W((qU)=>{Object.defineProperty(qU,"__esModule",{value:!0});qU.onErrorResumeNext=void 0;var Wq=U(),kv=mQ(),WU=K0();function Pv(...Z){let $=(0,kv.argsOrArgArray)(Z);return new Wq.Observable((J)=>{let Y=0,X=()=>{if(Y<$.length){let z;try{z=(0,Wq.from)($[Y++])}catch(H){X();return}let K=(0,Wq.operate)({destination:J,error:WU.noop,complete:WU.noop});z.subscribe(K),K.add(X)}else J.complete()};X()})}qU.onErrorResumeNext=Pv});var GU=W((BU)=>{Object.defineProperty(BU,"__esModule",{value:!0});BU.not=void 0;function Ev(Z,$){return(J,Y)=>!Z.call($,J,Y)}BU.not=Ev});var wH=W((DU)=>{Object.defineProperty(DU,"__esModule",{value:!0});DU.filter=void 0;var LU=U();function fv(Z,$){return(J)=>new LU.Observable((Y)=>{let X=0;J.subscribe((0,LU.operate)({destination:Y,next:(z)=>Z.call($,z,X++)&&Y.next(z)}))})}DU.filter=fv});var PU=W((IU)=>{Object.defineProperty(IU,"__esModule",{value:!0});IU.partition=void 0;var Vv=GU(),UU=wH(),OU=U();function Av(Z,$,J){return[(0,UU.filter)($,J)((0,OU.from)(Z)),(0,UU.filter)((0,Vv.not)($,J))((0,OU.from)(Z))]}IU.partition=Av});var Nq=W((fU)=>{Object.defineProperty(fU,"__esModule",{value:!0});fU.raceInit=fU.race=void 0;var UH=U(),Mv=mQ();function xv(...Z){return Z=(0,Mv.argsOrArgArray)(Z),Z.length===1?(0,UH.from)(Z[0]):new UH.Observable(EU(Z))}fU.race=xv;function EU(Z){return($)=>{let J=[];for(let Y=0;J&&!$.closed&&Y<Z.length;Y++)J.push((0,UH.from)(Z[Y]).subscribe((0,UH.operate)({destination:$,next:(X)=>{if(J){for(let z=0;z<J.length;z++)z!==Y&&J[z].unsubscribe();J=null}$.next(X)}})))}}fU.raceInit=EU});var TU=W((MU)=>{Object.defineProperty(MU,"__esModule",{value:!0});MU.range=void 0;var Cv=U(),hv=k8(),AU=c0();function Rv(Z,$,J){if($==null)$=Z,Z=0;if($<=0)return hv.EMPTY;let Y=$+Z;return new Cv.Observable(J?(X)=>{let z=Z,K=()=>{if(z<Y){if(X.next(z++),!X.closed)(0,AU.executeSchedule)(X,J,K)}else X.complete()};(0,AU.executeSchedule)(X,J,K)}:(X)=>{let z=Z;while(z<Y&&!X.closed)X.next(z++);X.complete()})}MU.range=Rv});var RU=W((CU)=>{Object.defineProperty(CU,"__esModule",{value:!0});CU.throwError=void 0;var vv=U();function yv(Z){return new vv.Observable(($)=>{$.error(Z())})}CU.throwError=yv});var jU=W((yU)=>{Object.defineProperty(yU,"__esModule",{value:!0});yU.using=void 0;var vU=U(),mv=k8();function jv(Z,$){return new vU.Observable((J)=>{let Y=Z(),X=$(Y);return(X?(0,vU.from)(X):mv.EMPTY).subscribe(J),()=>{if(Y)Y.unsubscribe()}})}yU.using=jv});var OH=W((_U)=>{Object.defineProperty(_U,"__esModule",{value:!0});_U.zip=void 0;var Bq=U(),_v=mQ(),Sv=k8(),gv=G6();function bv(...Z){let $=(0,gv.popResultSelector)(Z),J=(0,_v.argsOrArgArray)(Z);return J.length?new Bq.Observable((Y)=>{let X=J.map(()=>[]),z=J.map(()=>!1);Y.add(()=>{X=z=null});for(let K=0;!Y.closed&&K<J.length;K++)(0,Bq.from)(J[K]).subscribe((0,Bq.operate)({destination:Y,next:(H)=>{if(X[K].push(H),X.every((q)=>q.length)){let q=X.map((L)=>L.shift());if(Y.next($?$(...q):q),X.some((L,w)=>!L.length&&z[w]))Y.complete()}},complete:()=>{z[K]=!0,!X[K].length&&Y.complete()}}));return()=>{X=z=null}}):Sv.EMPTY}_U.zip=bv});var cU=W((gU)=>{Object.defineProperty(gU,"__esModule",{value:!0});gU.NEVER=void 0;var cv=U(),dv=K0();gU.NEVER=new cv.Observable(dv.noop)});var uU=W((dU)=>{Object.defineProperty(dU,"__esModule",{value:!0})});var Fq=W((lU)=>{Object.defineProperty(lU,"__esModule",{value:!0});lU.audit=void 0;var IH=U();function uv(Z){return($)=>new IH.Observable((J)=>{let Y=!1,X=null,z=null,K=!1,H=()=>{if(z?.unsubscribe(),z=null,Y){Y=!1;let L=X;X=null,J.next(L)}K&&J.complete()},q=()=>{z=null,K&&J.complete()};$.subscribe((0,IH.operate)({destination:J,next:(L)=>{if(Y=!0,X=L,!z)(0,IH.from)(Z(L)).subscribe(z=(0,IH.operate)({destination:J,next:H,complete:q}))},complete:()=>{K=!0,(!Y||!z||z.closed)&&J.complete()}}))})}lU.audit=uv});var rU=W((iU)=>{Object.defineProperty(iU,"__esModule",{value:!0});iU.auditTime=void 0;var lv=T0(),pv=Fq(),iv=L6();function nv(Z,$=lv.asyncScheduler){return(0,pv.audit)(()=>(0,iv.timer)(Z,$))}iU.auditTime=nv});var tU=W((aU)=>{Object.defineProperty(aU,"__esModule",{value:!0});aU.buffer=void 0;var kH=U(),rv=K0();function av(Z){return($)=>new kH.Observable((J)=>{let Y=[];return(0,kH.from)(Z).subscribe((0,kH.operate)({destination:J,next:()=>{let X=Y;Y=[],J.next(X)},complete:rv.noop})),$.subscribe((0,kH.operate)({destination:J,next:(X)=>Y.push(X),complete:()=>{J.next(Y),J.complete()}})),()=>{Y=null}})}aU.buffer=av});var $O=W((eU)=>{Object.defineProperty(eU,"__esModule",{value:!0});eU.bufferCount=void 0;var oU=U(),sv=Z9();function tv(Z,$=null){return $=$??Z,(J)=>new oU.Observable((Y)=>{let X=[],z=0;J.subscribe((0,oU.operate)({destination:Y,next:(K)=>{let H=null;if(z++%$===0)X.push([]);for(let q of X)if(q.push(K),Z<=q.length)H=H??[],H.push(q);if(H)for(let q of H)(0,sv.arrRemove)(X,q),Y.next(q)},complete:()=>{for(let K of X)Y.next(K);Y.complete()},finalize:()=>{X=null}}))})}eU.bufferCount=tv});var zO=W((YO)=>{Object.defineProperty(YO,"__esModule",{value:!0});YO.bufferTime=void 0;var Gq=U(),ov=Z9(),ev=T0(),Zy=G6(),JO=c0();function $y(Z,...$){let J=(0,Zy.popScheduler)($)??ev.asyncScheduler,Y=$[0]??null,X=$[1]||1/0;return(z)=>new Gq.Observable((K)=>{let H=[],q=!1,L=(P)=>{let{buffer:M,subs:V}=P;V.unsubscribe(),(0,ov.arrRemove)(H,P),K.next(M),q&&w()},w=()=>{if(H){let P=new Gq.Subscription;K.add(P);let V={buffer:[],subs:P};H.push(V),(0,JO.executeSchedule)(P,J,()=>L(V),Z)}};if(Y!==null&&Y>=0)(0,JO.executeSchedule)(K,J,w,Y,!0);else q=!0;w();let E=(0,Gq.operate)({destination:K,next:(P)=>{let M=H.slice();for(let V of M){let{buffer:y}=V;y.push(P),X<=y.length&&L(V)}},complete:()=>{while(H?.length)K.next(H.shift().buffer);E?.unsubscribe(),K.complete(),K.unsubscribe()},finalize:()=>H=null});z.subscribe(E)})}YO.bufferTime=$y});var WO=W((QO)=>{Object.defineProperty(QO,"__esModule",{value:!0});QO.bufferToggle=void 0;var J9=U(),KO=K0(),Jy=Z9();function Yy(Z,$){return(J)=>new J9.Observable((Y)=>{let X=[];(0,J9.from)(Z).subscribe((0,J9.operate)({destination:Y,next:(z)=>{let K=[];X.push(K);let H=new J9.Subscription,q=()=>{(0,Jy.arrRemove)(X,K),Y.next(K),H.unsubscribe()};H.add((0,J9.from)($(z)).subscribe((0,J9.operate)({destination:Y,next:q,complete:KO.noop})))},complete:KO.noop})),J.subscribe((0,J9.operate)({destination:Y,next:(z)=>{for(let K of X)K.push(z)},complete:()=>{while(X.length>0)Y.next(X.shift());Y.complete()}}))})}QO.bufferToggle=Yy});var BO=W((qO)=>{Object.defineProperty(qO,"__esModule",{value:!0});qO.bufferWhen=void 0;var PH=U(),Xy=K0();function zy(Z){return($)=>new PH.Observable((J)=>{let Y=null,X=null,z=()=>{X?.unsubscribe();let K=Y;Y=[],K&&J.next(K),(0,PH.from)(Z()).subscribe(X=(0,PH.operate)({destination:J,next:z,complete:Xy.noop}))};z(),$.subscribe((0,PH.operate)({destination:J,next:(K)=>Y?.push(K),complete:()=>{Y&&J.next(Y),J.complete()},finalize:()=>Y=X=null}))})}qO.bufferWhen=zy});var DO=W((GO)=>{Object.defineProperty(GO,"__esModule",{value:!0});GO.catchError=void 0;var Lq=U();function FO(Z){return($)=>new Lq.Observable((J)=>{let Y=null,X=!1,z;if(Y=$.subscribe((0,Lq.operate)({destination:J,error:(K)=>{if(z=(0,Lq.from)(Z(K,FO(Z)($))),Y)Y.unsubscribe(),Y=null,z.subscribe(J);else X=!0}})),X)Y.unsubscribe(),Y=null,z.subscribe(J)})}GO.catchError=FO});var Dq=W((wO)=>{Object.defineProperty(wO,"__esModule",{value:!0});wO.scanInternals=void 0;var Ky=U();function Qy(Z,$,J,Y,X,z,K){let H=J,q=$,L=0;z.subscribe((0,Ky.operate)({destination:K,next:(w)=>{let E=L++;q=H?Z(q,w,E):(H=!0,w),Y&&K.next(q)},complete:X?()=>{H&&K.next(q),K.complete()}:void 0}))}wO.scanInternals=Qy});var JQ=W((OO)=>{Object.defineProperty(OO,"__esModule",{value:!0});OO.reduce=void 0;var Hy=Dq(),Wy=U();function qy(Z,$){let J=arguments.length>=2;return(Y)=>new Wy.Observable((X)=>(0,Hy.scanInternals)(Z,$,J,!1,!0,Y,X))}OO.reduce=qy});var wq=W((kO)=>{Object.defineProperty(kO,"__esModule",{value:!0});kO.toArray=void 0;var Ny=JQ(),By=U(),Fy=(Z,$)=>(Z.push($),Z);function Gy(){return(Z)=>new By.Observable(($)=>{(0,Ny.reduce)(Fy,[])(Z).subscribe($)})}kO.toArray=Gy});var Uq=W((EO)=>{Object.defineProperty(EO,"__esModule",{value:!0});EO.joinAllInternals=void 0;var Ly=C0(),Dy=$Q(),wy=lW(),Uy=$9(),Oy=wq();function Iy(Z,$){return(0,wy.pipe)((0,Oy.toArray)(),(0,Uy.mergeMap)((J)=>Z(J)),$?(0,Dy.mapOneOrManyArgs)($):Ly.identity)}EO.joinAllInternals=Iy});var MO=W((VO)=>{Object.defineProperty(VO,"__esModule",{value:!0});VO.combineLatestAll=void 0;var ky=GH(),Py=Uq();function Ey(Z){return(0,Py.joinAllInternals)(ky.combineLatest,Z)}VO.combineLatestAll=Ey});var CO=W((xO)=>{Object.defineProperty(xO,"__esModule",{value:!0});xO.combineLatestWith=void 0;var fy=GH(),Vy=U();function Ay(...Z){return($)=>new Vy.Observable((J)=>(0,fy.combineLatestInit)([$,...Z])(J))}xO.combineLatestWith=Ay});var Oq=W((hO)=>{Object.defineProperty(hO,"__esModule",{value:!0});hO.concatMap=void 0;var My=$9();function xy(Z){return(0,My.mergeMap)(Z,1)}hO.concatMap=xy});var mO=W((vO)=>{Object.defineProperty(vO,"__esModule",{value:!0});vO.concatMapTo=void 0;var Ty=Oq();function Cy(Z){return(0,Ty.concatMap)(()=>Z)}vO.concatMapTo=Cy});var gO=W((_O)=>{Object.defineProperty(_O,"__esModule",{value:!0});_O.concatWith=void 0;var jO=U(),hy=DH();function Ry(...Z){return($)=>new jO.Observable((J)=>{(0,hy.concatAll)()((0,jO.from)([$,...Z])).subscribe(J)})}_O.concatWith=Ry});var dO=W((bO)=>{Object.defineProperty(bO,"__esModule",{value:!0});bO.fromSubscribable=void 0;var vy=U();function yy(Z){return new vy.Observable(($)=>Z.subscribe($))}bO.fromSubscribable=yy});var iO=W((lO)=>{Object.defineProperty(lO,"__esModule",{value:!0});lO.connect=void 0;var uO=U(),my=q0(),jy=dO(),_y={connector:()=>new my.Subject};function Sy(Z,$=_y){let{connector:J}=$;return(Y)=>new uO.Observable((X)=>{let z=J();(0,uO.from)(Z((0,jy.fromSubscribable)(z))).subscribe(X),X.add(Y.subscribe(z))})}lO.connect=Sy});var aO=W((nO)=>{Object.defineProperty(nO,"__esModule",{value:!0});nO.count=void 0;var gy=JQ();function by(Z){return(0,gy.reduce)(($,J,Y)=>!Z||Z(J,Y)?$+1:$,0)}nO.count=by});var oO=W((sO)=>{Object.defineProperty(sO,"__esModule",{value:!0});sO.debounce=void 0;var EH=U(),cy=K0();function dy(Z){return($)=>new EH.Observable((J)=>{let Y=!1,X=null,z=null,K=()=>{if(z?.unsubscribe(),z=null,Y){Y=!1;let H=X;X=null,J.next(H)}};$.subscribe((0,EH.operate)({destination:J,next:(H)=>{z?.unsubscribe(),Y=!0,X=H,z=(0,EH.operate)({destination:J,next:K,complete:cy.noop}),(0,EH.from)(Z(H)).subscribe(z)},complete:()=>{K(),J.complete()},finalize:()=>{X=z=null}}))})}sO.debounce=dy});var JI=W((ZI)=>{Object.defineProperty(ZI,"__esModule",{value:!0});ZI.debounceTime=void 0;var uy=T0(),eO=U(),ly=c0();function py(Z,$=uy.asyncScheduler){return(J)=>new eO.Observable((Y)=>{let X,z;J.subscribe((0,eO.operate)({destination:Y,next:(K)=>{X=K,z?.unsubscribe(),z=(0,ly.executeSchedule)(Y,$,()=>{z=void 0;let H=X;X=null,Y.next(H)},Z)},complete:()=>{if(z)Y.next(X);Y.complete()},finalize:()=>{X=z=null}}))})}ZI.debounceTime=py});var KI=W((XI)=>{Object.defineProperty(XI,"__esModule",{value:!0});XI.defaultIfEmpty=void 0;var YI=U();function iy(Z){return($)=>new YI.Observable((J)=>{let Y=!1;$.subscribe((0,YI.operate)({destination:J,next:(X)=>{Y=!0,J.next(X)},complete:()=>{if(!Y)J.next(Z);J.complete()}}))})}XI.defaultIfEmpty=iy});var Iq=W((HI)=>{Object.defineProperty(HI,"__esModule",{value:!0});HI.take=void 0;var ny=k8(),QI=U();function ry(Z){return Z<=0?()=>ny.EMPTY:($)=>new QI.Observable((J)=>{let Y=0,X=(0,QI.operate)({destination:J,next:(z)=>{if(++Y<Z)J.next(z);else X.unsubscribe(),J.next(z),J.complete()}});$.subscribe(X)})}HI.take=ry});var kq=W((NI)=>{Object.defineProperty(NI,"__esModule",{value:!0});NI.ignoreElements=void 0;var qI=U(),ay=K0();function sy(){return(Z)=>new qI.Observable(($)=>{Z.subscribe((0,qI.operate)({destination:$,next:ay.noop}))})}NI.ignoreElements=sy});var Eq=W((LI)=>{Object.defineProperty(LI,"__esModule",{value:!0});LI.delayWhen=void 0;var ty=Kq(),FI=Iq(),oy=kq(),ey=$9(),Pq=uW(),Zm=ZQ();function GI(Z,$){if($)return(J)=>(0,ty.concat)((0,Pq.rx)($,(0,FI.take)(1),(0,oy.ignoreElements)()),(0,Pq.rx)(J,GI(Z)));return(0,ey.mergeMap)((J,Y)=>(0,Pq.rx)(Z(J,Y),(0,FI.take)(1),(0,Zm.map)(()=>J)))}LI.delayWhen=GI});var OI=W((wI)=>{Object.defineProperty(wI,"__esModule",{value:!0});wI.delay=void 0;var $m=T0(),Jm=Eq(),Ym=L6();function Xm(Z,$=$m.asyncScheduler){let J=(0,Ym.timer)(Z,$);return(0,Jm.delayWhen)(()=>J)}wI.delay=Xm});var PI=W((II)=>{Object.defineProperty(II,"__esModule",{value:!0});II.observeNotification=void 0;function zm(Z,$){let{kind:J,value:Y,error:X}=Z;if(typeof J!=="string")throw TypeError('Invalid notification, missing "kind"');J==="N"?$.next?.(Y):J==="E"?$.error?.(X):$.complete?.()}II.observeNotification=zm});var AI=W((fI)=>{Object.defineProperty(fI,"__esModule",{value:!0});fI.dematerialize=void 0;var Km=PI(),EI=U();function Qm(){return(Z)=>new EI.Observable(($)=>{Z.subscribe((0,EI.operate)({destination:$,next:(J)=>(0,Km.observeNotification)(J,$)}))})}fI.dematerialize=Qm});var TI=W((MI)=>{Object.defineProperty(MI,"__esModule",{value:!0});MI.distinct=void 0;var fH=U(),Hm=K0();function Wm(Z,$){return(J)=>new fH.Observable((Y)=>{let X=new Set;J.subscribe((0,fH.operate)({destination:Y,next:(z)=>{let K=Z?Z(z):z;if(!X.has(K))X.add(K),Y.next(z)}})),$&&(0,fH.from)($).subscribe((0,fH.operate)({destination:Y,next:()=>X.clear(),complete:Hm.noop}))})}MI.distinct=Wm});var fq=W((hI)=>{Object.defineProperty(hI,"__esModule",{value:!0});hI.distinctUntilChanged=void 0;var qm=C0(),CI=U();function Nm(Z,$=qm.identity){return Z=Z??Bm,(J)=>new CI.Observable((Y)=>{let X,z=!0;J.subscribe((0,CI.operate)({destination:Y,next:(K)=>{let H=$(K);if(z||!Z(X,H))z=!1,X=H,Y.next(K)}}))})}hI.distinctUntilChanged=Nm;function Bm(Z,$){return Z===$}});var mI=W((vI)=>{Object.defineProperty(vI,"__esModule",{value:!0});vI.distinctUntilKeyChanged=void 0;var Fm=fq();function Gm(Z,$){return(0,Fm.distinctUntilChanged)((J,Y)=>$?$(J[Z],Y[Z]):J[Z]===Y[Z])}vI.distinctUntilKeyChanged=Gm});var bI=W((SI)=>{Object.defineProperty(SI,"__esModule",{value:!0});SI.elementAt=void 0;var jI=pW(),_I=U();function Lm(Z,$){if(Z<0)throw new jI.ArgumentOutOfRangeError;let J=arguments.length>=2;return(Y)=>new _I.Observable((X)=>{let z=0,K=(0,_I.operate)({destination:X,next:(H)=>{if(z++===Z)K.unsubscribe(),X.next(H),X.complete()},complete:()=>{if(!J)X.error(new jI.ArgumentOutOfRangeError);else X.next($),X.complete()}});Y.subscribe(K)})}SI.elementAt=Lm});var uI=W((cI)=>{Object.defineProperty(cI,"__esModule",{value:!0});cI.endWith=void 0;var Vq=U();function Dm(...Z){return($)=>new Vq.Observable((J)=>{$.subscribe((0,Vq.operate)({destination:J,complete:()=>{(0,Vq.subscribeToArray)(Z,J)}}))})}cI.endWith=Dm});var nI=W((pI)=>{Object.defineProperty(pI,"__esModule",{value:!0});pI.every=void 0;var lI=U();function wm(Z,$){return(J)=>new lI.Observable((Y)=>{let X=0;J.subscribe((0,lI.operate)({destination:Y,next:(z)=>{if(!Z.call($,z,X++,J))Y.next(!1),Y.complete()},complete:()=>{Y.next(!0),Y.complete()}}))})}pI.every=wm});var Aq=W((rI)=>{Object.defineProperty(rI,"__esModule",{value:!0});rI.exhaustMap=void 0;var VH=U();function Um(Z){return($)=>new VH.Observable((J)=>{let Y=0,X=null,z=!1;$.subscribe((0,VH.operate)({destination:J,next:(K)=>{if(!X)X=(0,VH.operate)({destination:J,complete:()=>{X=null,z&&J.complete()}}),(0,VH.from)(Z(K,Y++)).subscribe(X)},complete:()=>{z=!0,!X&&J.complete()}}))})}rI.exhaustMap=Um});var oI=W((sI)=>{Object.defineProperty(sI,"__esModule",{value:!0});sI.exhaustAll=void 0;var Om=Aq(),Im=C0();function km(){return(0,Om.exhaustMap)(Im.identity)}sI.exhaustAll=km});var $k=W((eI)=>{Object.defineProperty(eI,"__esModule",{value:!0});eI.expand=void 0;var Pm=U(),Em=LH();function fm(Z,$=1/0,J){return $=($||0)<1?1/0:$,(Y)=>new Pm.Observable((X)=>(0,Em.mergeInternals)(Y,X,Z,$,void 0,!0,J))}eI.expand=fm});var Xk=W((Jk)=>{Object.defineProperty(Jk,"__esModule",{value:!0});Jk.finalize=void 0;var Vm=U();function Am(Z){return($)=>new Vm.Observable((J)=>{$.subscribe(J),J.add(Z)})}Jk.finalize=Am});var Mq=W((Qk)=>{Object.defineProperty(Qk,"__esModule",{value:!0});Qk.createFind=Qk.find=void 0;var zk=U();function Mm(Z){return($)=>new zk.Observable((J)=>Kk(Z,"value",$,J))}Qk.find=Mm;function Kk(Z,$,J,Y){let X=$==="index",z=0;J.subscribe((0,zk.operate)({destination:Y,next:(K)=>{let H=z++;if(Z(K,H,J))Y.next(X?H:K),Y.complete()},complete:()=>{Y.next(X?-1:void 0),Y.complete()}}))}Qk.createFind=Kk});var Nk=W((Wk)=>{Object.defineProperty(Wk,"__esModule",{value:!0});Wk.findIndex=void 0;var Tm=U(),Cm=Mq();function hm(Z){return($)=>new Tm.Observable((J)=>(0,Cm.createFind)(Z,"index",$,J))}Wk.findIndex=hm});var Lk=W((Fk)=>{Object.defineProperty(Fk,"__esModule",{value:!0});Fk.first=void 0;var Bk=U(),Rm=j8();function vm(Z,$){let J=arguments.length>=2;return(Y)=>new Bk.Observable((X)=>{let z=0,K=(0,Bk.operate)({destination:X,next:(H)=>{if(Z?Z(H,z++,Y):!0)K.unsubscribe(),X.next(H),X.complete()},complete:()=>{if(J)X.next($),X.complete();else X.error(new Rm.EmptyError)}});Y.subscribe(K)})}Fk.first=vm});var Uk=W((Dk)=>{Object.defineProperty(Dk,"__esModule",{value:!0});Dk.groupBy=void 0;var jQ=U(),ym=q0();function mm(Z,$,J,Y){return(X)=>new jQ.Observable((z)=>{let K;if(!$||typeof $==="function")K=$;else({duration:J,element:K,connector:Y}=$);let H=new Map,q=(P)=>{H.forEach(P),P(z)},L=(P)=>q((M)=>M.error(P)),w=(0,jQ.operate)({destination:z,next:(P)=>{try{let M=Z(P),V=H.get(M);if(!V){H.set(M,V=Y?Y():new ym.Subject);let y=E(M,V);if(z.next(y),J){let Y0=(0,jQ.operate)({destination:V,next:()=>{V.complete(),Y0?.unsubscribe()},finalize:()=>H.delete(M)});w.add((0,jQ.from)(J(y)).subscribe(Y0))}}V.next(K?K(P):P)}catch(M){L(M)}},error:L,complete:()=>q((P)=>P.complete()),finalize:()=>H.clear()});X.subscribe(w);function E(P,M){let V=new jQ.Observable((y)=>M.subscribe(y));return V.key=P,V}})}Dk.groupBy=mm});var Pk=W((Ik)=>{Object.defineProperty(Ik,"__esModule",{value:!0});Ik.isEmpty=void 0;var Ok=U();function jm(){return(Z)=>new Ok.Observable(($)=>{Z.subscribe((0,Ok.operate)({destination:$,next:()=>{$.next(!1),$.complete()},complete:()=>{$.next(!0),$.complete()}}))})}Ik.isEmpty=jm});var Ak=W((fk)=>{Object.defineProperty(fk,"__esModule",{value:!0});fk.last=void 0;var Ek=U(),_m=j8();function Sm(Z,$){let J=arguments.length>=2;return(Y)=>new Ek.Observable((X)=>{let z=0,K=!1,H;Y.subscribe((0,Ek.operate)({destination:X,next(q){if(!Z||Z(q,z++,Y))K=!0,H=q},complete(){if(K)X.next(H),X.complete();else if(J)X.next($),X.complete();else X.error(new _m.EmptyError)}}))})}fk.last=Sm});var Tk=W((Mk)=>{Object.defineProperty(Mk,"__esModule",{value:!0});Mk.mapTo=void 0;var gm=ZQ();function bm(Z){return(0,gm.map)(()=>Z)}Mk.mapTo=bm});var Rk=W((Ck)=>{Object.defineProperty(Ck,"__esModule",{value:!0});Ck.materialize=void 0;var _Q=U();function cm(){return(Z)=>new _Q.Observable(($)=>{Z.subscribe((0,_Q.operate)({destination:$,next:(J)=>{$.next((0,_Q.nextNotification)(J))},error:(J)=>{$.next((0,_Q.errorNotification)(J)),$.complete()},complete:()=>{$.next(_Q.COMPLETE_NOTIFICATION),$.complete()}}))})}Ck.materialize=cm});var mk=W((vk)=>{Object.defineProperty(vk,"__esModule",{value:!0});vk.max=void 0;var dm=JQ(),um=U();function lm(Z){return(0,dm.reduce)((0,um.isFunction)(Z)?($,J)=>Z($,J)>0?$:J:($,J)=>$>J?$:J)}vk.max=lm});var Sk=W((jk)=>{Object.defineProperty(jk,"__esModule",{value:!0});jk.mergeMapTo=void 0;var pm=$9();function im(Z,$){return(0,pm.mergeMap)(()=>Z,$)}jk.mergeMapTo=im});var ck=W((gk)=>{Object.defineProperty(gk,"__esModule",{value:!0});gk.mergeScan=void 0;var nm=U(),rm=LH();function am(Z,$,J=1/0){return(Y)=>new nm.Observable((X)=>{let z=$;return(0,rm.mergeInternals)(Y,X,(K,H)=>Z(z,K,H),J,(K)=>{z=K},!1,void 0,()=>z=null)})}gk.mergeScan=am});var pk=W((uk)=>{Object.defineProperty(uk,"__esModule",{value:!0});uk.mergeWith=void 0;var dk=U(),sm=vQ();function tm(...Z){return($)=>new dk.Observable((J)=>{(0,sm.mergeAll)()((0,dk.from)([$,...Z])).subscribe(J)})}uk.mergeWith=tm});var rk=W((ik)=>{Object.defineProperty(ik,"__esModule",{value:!0});ik.min=void 0;var om=JQ(),em=U();function Zj(Z){return(0,om.reduce)((0,em.isFunction)(Z)?($,J)=>Z($,J)<0?$:J:($,J)=>$<J?$:J)}ik.min=Zj});var tk=W((ak)=>{Object.defineProperty(ak,"__esModule",{value:!0});ak.onErrorResumeNextWith=void 0;var $j=mQ(),Jj=qq();function Yj(...Z){let $=(0,$j.argsOrArgArray)(Z);return(J)=>(0,Jj.onErrorResumeNext)(J,...$)}ak.onErrorResumeNextWith=Yj});var $P=W((ek)=>{Object.defineProperty(ek,"__esModule",{value:!0});ek.pairwise=void 0;var ok=U();function Xj(){return(Z)=>new ok.Observable(($)=>{let J,Y=!1;Z.subscribe((0,ok.operate)({destination:$,next:(X)=>{let z=J;J=X,Y&&$.next([z,X]),Y=!0}}))})}ek.pairwise=Xj});var XP=W((JP)=>{Object.defineProperty(JP,"__esModule",{value:!0});JP.raceWith=void 0;var zj=Nq(),Kj=U(),Qj=C0();function Hj(...Z){return!Z.length?Qj.identity:($)=>new Kj.Observable((J)=>{(0,zj.raceInit)([$,...Z])(J)})}JP.raceWith=Hj});var QP=W((zP)=>{Object.defineProperty(zP,"__esModule",{value:!0});zP.repeat=void 0;var AH=U(),Wj=k8(),qj=L6();function Nj(Z){let $=1/0,J;if(Z!=null)if(typeof Z==="object")({count:$=1/0,delay:J}=Z);else $=Z;return $<=0?()=>Wj.EMPTY:(Y)=>new AH.Observable((X)=>{let z=0,K,H=()=>{if(K?.unsubscribe(),K=null,J!=null){let L=typeof J==="number"?(0,qj.timer)(J):(0,AH.from)(J(z)),w=(0,AH.operate)({destination:X,next:()=>{w.unsubscribe(),q()}});L.subscribe(w)}else q()},q=()=>{let L=!1;if(K=Y.subscribe((0,AH.operate)({destination:X,complete:()=>{if(++z<$)if(K)H();else L=!0;else X.complete()}})),L)H()};q()})}zP.repeat=Nj});var qP=W((HP)=>{Object.defineProperty(HP,"__esModule",{value:!0});HP.repeatWhen=void 0;var MH=U(),Bj=q0();function Fj(Z){return($)=>new MH.Observable((J)=>{let Y,X=!1,z,K=!1,H=!1,q=()=>H&&K&&(J.complete(),!0),L=()=>{if(!z)z=new Bj.Subject,(0,MH.from)(Z(z)).subscribe((0,MH.operate)({destination:J,next:()=>{if(Y)w();else X=!0},complete:()=>{K=!0,q()}}));return z},w=()=>{if(H=!1,Y=$.subscribe((0,MH.operate)({destination:J,complete:()=>{H=!0,!q()&&L().next()}})),X)Y.unsubscribe(),Y=null,X=!1,w()};w()})}HP.repeatWhen=Fj});var FP=W((NP)=>{Object.defineProperty(NP,"__esModule",{value:!0});NP.retry=void 0;var xH=U(),Gj=C0(),Lj=L6();function Dj(Z=1/0){let $;if(Z&&typeof Z==="object")$=Z;else $={count:Z};let{count:J=1/0,delay:Y,resetOnSuccess:X=!1}=$;return J<=0?Gj.identity:(z)=>new xH.Observable((K)=>{let H=0,q,L=()=>{let w=!1;if(q=z.subscribe((0,xH.operate)({destination:K,next:(E)=>{if(X)H=0;K.next(E)},error:(E)=>{if(H++<J){let P=()=>{if(q)q.unsubscribe(),q=null,L();else w=!0};if(Y!=null){let M=typeof Y==="number"?(0,Lj.timer)(Y):(0,xH.from)(Y(E,H)),V=(0,xH.operate)({destination:K,next:()=>{V.unsubscribe(),P()},complete:()=>{K.complete()}});M.subscribe(V)}else P()}else K.error(E)}})),w)q.unsubscribe(),q=null,L()};L()})}NP.retry=Dj});var DP=W((GP)=>{Object.defineProperty(GP,"__esModule",{value:!0});GP.retryWhen=void 0;var TH=U(),wj=q0();function Uj(Z){return($)=>new TH.Observable((J)=>{let Y,X=!1,z,K=()=>{if(Y=$.subscribe((0,TH.operate)({destination:J,error:(H)=>{if(!z)z=new wj.Subject,(0,TH.from)(Z(z)).subscribe((0,TH.operate)({destination:J,next:()=>Y?K():X=!0}));if(z)z.next(H)}})),X)Y.unsubscribe(),Y=null,X=!1,K()};K()})}GP.retryWhen=Uj});var xq=W((wP)=>{Object.defineProperty(wP,"__esModule",{value:!0});wP.sample=void 0;var CH=U(),Oj=K0();function Ij(Z){return($)=>new CH.Observable((J)=>{let Y=!1,X=null;$.subscribe((0,CH.operate)({destination:J,next:(z)=>{Y=!0,X=z}})),(0,CH.from)(Z).subscribe((0,CH.operate)({destination:J,next:()=>{if(Y){Y=!1;let z=X;X=null,J.next(z)}},complete:Oj.noop}))})}wP.sample=Ij});var kP=W((OP)=>{Object.defineProperty(OP,"__esModule",{value:!0});OP.sampleTime=void 0;var kj=T0(),Pj=xq(),Ej=Hq();function fj(Z,$=kj.asyncScheduler){return(0,Pj.sample)((0,Ej.interval)(Z,$))}OP.sampleTime=fj});var fP=W((PP)=>{Object.defineProperty(PP,"__esModule",{value:!0});PP.scan=void 0;var Vj=U(),Aj=Dq();function Mj(Z,$){let J=arguments.length>=2;return(Y)=>new Vj.Observable((X)=>(0,Aj.scanInternals)(Z,$,J,!0,!1,Y,X))}PP.scan=Mj});var xP=W((AP)=>{Object.defineProperty(AP,"__esModule",{value:!0});AP.sequenceEqual=void 0;var Tq=U();function xj(Z,$=(J,Y)=>J===Y){return(J)=>new Tq.Observable((Y)=>{let X=VP(),z=VP(),K=(q)=>{Y.next(q),Y.complete()},H=(q,L)=>{let w=(0,Tq.operate)({destination:Y,next:(E)=>{let{buffer:P,complete:M}=L;if(P.length===0)M?K(!1):q.buffer.push(E);else!$(E,P.shift())&&K(!1)},complete:()=>{q.complete=!0;let{complete:E,buffer:P}=L;E&&K(P.length===0),w?.unsubscribe()}});return w};J.subscribe(H(X,z)),(0,Tq.from)(Z).subscribe(H(z,X))})}AP.sequenceEqual=xj;function VP(){return{buffer:[],complete:!1}}});var hq=W((TP)=>{Object.defineProperty(TP,"__esModule",{value:!0});TP.share=void 0;var SQ=U(),Tj=q0();function Cj(Z={}){let{connector:$=()=>new Tj.Subject,resetOnError:J=!0,resetOnComplete:Y=!0,resetOnRefCountZero:X=!0}=Z;return(z)=>{let K,H,q,L=0,w=!1,E=!1,P=()=>{H?.unsubscribe(),H=void 0},M=()=>{P(),K=q=void 0,w=E=!1},V=()=>{let y=K;M(),y?.unsubscribe()};return new SQ.Observable((y)=>{if(L++,!E&&!w)P();let Y0=q=q??$();if(y.add(()=>{if(L--,L===0&&!E&&!w)H=Cq(V,X)}),Y0.subscribe(y),!K&&L>0)K=new SQ.Subscriber({next:(a)=>Y0.next(a),error:(a)=>{E=!0,P(),H=Cq(M,J,a),Y0.error(a)},complete:()=>{w=!0,P(),H=Cq(M,Y),Y0.complete()}}),(0,SQ.from)(z).subscribe(K)})}}TP.share=Cj;function Cq(Z,$,...J){if($===!0){Z();return}if($===!1)return;let Y=new SQ.Subscriber({next:()=>{Y.unsubscribe(),Z()}});return(0,SQ.from)($(...J)).subscribe(Y)}});var vP=W((hP)=>{Object.defineProperty(hP,"__esModule",{value:!0});hP.shareReplay=void 0;var hj=SW(),Rj=hq();function vj(Z,$,J){let Y,X=!1;if(Z&&typeof Z==="object")({bufferSize:Y=1/0,windowTime:$=1/0,refCount:X=!1,scheduler:J}=Z);else Y=Z??1/0;return(0,Rj.share)({connector:()=>new hj.ReplaySubject(Y,$,J),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:X})}hP.shareReplay=vj});var _P=W((mP)=>{Object.defineProperty(mP,"__esModule",{value:!0});mP.single=void 0;var yP=U(),yj=j8(),mj=nW(),jj=iW();function _j(Z){return($)=>new yP.Observable((J)=>{let Y=!1,X,z=!1,K=0;$.subscribe((0,yP.operate)({destination:J,next:(H)=>{if(z=!0,!Z||Z(H,K++,$))Y&&J.error(new mj.SequenceError("Too many matching values")),Y=!0,X=H},complete:()=>{if(Y)J.next(X),J.complete();else J.error(z?new jj.NotFoundError("No matching values"):new yj.EmptyError)}}))})}mP.single=_j});var bP=W((SP)=>{Object.defineProperty(SP,"__esModule",{value:!0});SP.skip=void 0;var Sj=wH();function gj(Z){return(0,Sj.filter)(($,J)=>Z<=J)}SP.skip=gj});var lP=W((dP)=>{Object.defineProperty(dP,"__esModule",{value:!0});dP.skipLast=void 0;var bj=C0(),cP=U();function cj(Z){return Z<=0?bj.identity:($)=>new cP.Observable((J)=>{let Y=Array(Z),X=0;return $.subscribe((0,cP.operate)({destination:J,next:(z)=>{let K=X++;if(K<Z)Y[K]=z;else{let H=K%Z,q=Y[H];Y[H]=z,J.next(q)}}})),()=>{Y=null}})}dP.skipLast=cj});var nP=W((pP)=>{Object.defineProperty(pP,"__esModule",{value:!0});pP.skipUntil=void 0;var hH=U(),dj=K0();function uj(Z){return($)=>new hH.Observable((J)=>{let Y=!1,X=(0,hH.operate)({destination:J,next:()=>{X?.unsubscribe(),Y=!0},complete:dj.noop});(0,hH.from)(Z).subscribe(X),$.subscribe((0,hH.operate)({destination:J,next:(z)=>Y&&J.next(z)}))})}pP.skipUntil=uj});var tP=W((aP)=>{Object.defineProperty(aP,"__esModule",{value:!0});aP.skipWhile=void 0;var rP=U();function lj(Z){return($)=>new rP.Observable((J)=>{let Y=!1,X=0;$.subscribe((0,rP.operate)({destination:J,next:(z)=>(Y||(Y=!Z(z,X++)))&&J.next(z)}))})}aP.skipWhile=lj});var ZE=W((oP)=>{Object.defineProperty(oP,"__esModule",{value:!0});oP.startWith=void 0;var Rq=U();function pj(...Z){return($)=>new Rq.Observable((J)=>{(0,Rq.subscribeToArray)(Z,(0,Rq.operate)({destination:J,complete:()=>$.subscribe(J)}))})}oP.startWith=pj});var gQ=W(($E)=>{Object.defineProperty($E,"__esModule",{value:!0});$E.switchMap=void 0;var RH=U();function ij(Z){return($)=>new RH.Observable((J)=>{let Y=null,X=0,z=!1,K=()=>z&&!Y&&J.complete();$.subscribe((0,RH.operate)({destination:J,next:(H)=>{Y?.unsubscribe();let q=X++;(0,RH.from)(Z(H,q)).subscribe(Y=(0,RH.operate)({destination:J,complete:()=>{Y=null,K()}}))},complete:()=>{z=!0,K()}}))})}$E.switchMap=ij});var zE=W((YE)=>{Object.defineProperty(YE,"__esModule",{value:!0});YE.switchAll=void 0;var nj=gQ(),rj=C0();function aj(){return(0,nj.switchMap)(rj.identity)}YE.switchAll=aj});var HE=W((KE)=>{Object.defineProperty(KE,"__esModule",{value:!0});KE.switchMapTo=void 0;var sj=gQ();function tj(Z){return(0,sj.switchMap)(()=>Z)}KE.switchMapTo=tj});var BE=W((qE)=>{Object.defineProperty(qE,"__esModule",{value:!0});qE.switchScan=void 0;var oj=gQ(),WE=U();function ej(Z,$){return(J)=>new WE.Observable((Y)=>{let X=$;return(0,oj.switchMap)((z,K)=>Z(X,z,K))(J).subscribe((0,WE.operate)({destination:Y,next:(z)=>{X=z,Y.next(z)}})),()=>{X=null}})}qE.switchScan=ej});var DE=W((GE)=>{Object.defineProperty(GE,"__esModule",{value:!0});GE.takeLast=void 0;var Z_=k8(),FE=U();function $_(Z){return Z<=0?()=>Z_.EMPTY:($)=>new FE.Observable((J)=>{let Y=Array(Z),X=0;$.subscribe((0,FE.operate)({destination:J,next:(z)=>{Y[X++%Z]=z},complete:()=>{let z=Z<=X?X:0,K=Math.min(Z,X);for(let H=0;H<K;H++)J.next(Y[(z+H)%Z]);J.complete()},finalize:()=>{Y=null}}))})}GE.takeLast=$_});var OE=W((wE)=>{Object.defineProperty(wE,"__esModule",{value:!0});wE.takeUntil=void 0;var vq=U(),J_=K0();function Y_(Z){return($)=>new vq.Observable((J)=>{(0,vq.from)(Z).subscribe((0,vq.operate)({destination:J,next:()=>J.complete(),complete:J_.noop})),!J.closed&&$.subscribe(J)})}wE.takeUntil=Y_});var EE=W((kE)=>{Object.defineProperty(kE,"__esModule",{value:!0});kE.takeWhile=void 0;var IE=U();function X_(Z,$=!1){return(J)=>new IE.Observable((Y)=>{let X=0,z=(0,IE.operate)({destination:Y,next:(K)=>{if(Z(K,X++))Y.next(K);else{if(z.unsubscribe(),$)Y.next(K);Y.complete()}}});J.subscribe(z)})}kE.takeWhile=X_});var AE=W((fE)=>{Object.defineProperty(fE,"__esModule",{value:!0});fE.tap=void 0;var yq=U(),z_=C0();function K_(Z){let $=(0,yq.isFunction)(Z)?{next:Z}:Z;return $?(J)=>new yq.Observable((Y)=>{$.subscribe?.();let X=!0;J.subscribe((0,yq.operate)({destination:Y,next:(z)=>{$.next?.(z),Y.next(z)},error:(z)=>{X=!1,$.error?.(z),Y.error(z)},complete:()=>{X=!1,$.complete?.(),Y.complete()},finalize:()=>{if(X)$.unsubscribe?.();$.finalize?.()}}))}):z_.identity}fE.tap=K_});var mq=W((ME)=>{Object.defineProperty(ME,"__esModule",{value:!0});ME.throttle=void 0;var vH=U();function Q_(Z,$){return(J)=>new vH.Observable((Y)=>{let{leading:X=!0,trailing:z=!1}=$??{},K=!1,H=null,q=null,L=!1,w=()=>{if(q?.unsubscribe(),q=null,z)M(),L&&Y.complete()},E=()=>{q=null,L&&Y.complete()},P=(V)=>q=(0,vH.from)(Z(V)).subscribe((0,vH.operate)({destination:Y,next:w,complete:E})),M=()=>{if(K){K=!1;let V=H;H=null,Y.next(V),!L&&P(V)}};J.subscribe((0,vH.operate)({destination:Y,next:(V)=>{K=!0,H=V,!(q&&!q.closed)&&(X?M():P(V))},complete:()=>{L=!0,!(z&&K&&q&&!q.closed)&&Y.complete()}}))})}ME.throttle=Q_});var hE=W((TE)=>{Object.defineProperty(TE,"__esModule",{value:!0});TE.throttleTime=void 0;var H_=T0(),W_=mq(),q_=L6();function N_(Z,$=H_.asyncScheduler,J){let Y=(0,q_.timer)(Z,$);return(0,W_.throttle)(()=>Y,J)}TE.throttleTime=N_});var mE=W((vE)=>{Object.defineProperty(vE,"__esModule",{value:!0});vE.throwIfEmpty=void 0;var B_=j8(),RE=U();function F_(Z=G_){return($)=>new RE.Observable((J)=>{let Y=!1;$.subscribe((0,RE.operate)({destination:J,next:(X)=>{Y=!0,J.next(X)},complete:()=>Y?J.complete():J.error(Z())}))})}vE.throwIfEmpty=F_;function G_(){return new B_.EmptyError}});var gE=W((_E)=>{Object.defineProperty(_E,"__esModule",{value:!0});_E.TimeInterval=_E.timeInterval=void 0;var L_=T0(),jE=U();function D_(Z=L_.asyncScheduler){return($)=>new jE.Observable((J)=>{let Y=Z.now();$.subscribe((0,jE.operate)({destination:J,next:(X)=>{let z=Z.now(),K=z-Y;Y=z,J.next(new jq(X,K))}}))})}_E.timeInterval=D_;class jq{value;interval;constructor(Z,$){this.value=Z,this.interval=$}}_E.TimeInterval=jq});var dE=W((bE)=>{Object.defineProperty(bE,"__esModule",{value:!0});bE.timeoutWith=void 0;var U_=T0(),O_=qH(),I_=NH();function k_(Z,$,J){let Y,X,z;if(J=J??U_.asyncScheduler,(0,O_.isValidDate)(Z))Y=Z;else if(typeof Z==="number")X=Z;if($)z=()=>$;else throw TypeError("No observable provided to switch to");if(Y==null&&X==null)throw TypeError("No timeout provided.");return(0,I_.timeout)({first:Y,each:X,scheduler:J,with:z})}bE.timeoutWith=k_});var pE=W((uE)=>{Object.defineProperty(uE,"__esModule",{value:!0});uE.timestamp=void 0;var P_=KH(),E_=ZQ();function f_(Z=P_.dateTimestampProvider){return(0,E_.map)(($)=>({value:$,timestamp:Z.now()}))}uE.timestamp=f_});var aE=W((nE)=>{Object.defineProperty(nE,"__esModule",{value:!0});nE.window=void 0;var yH=U(),iE=q0(),V_=K0();function A_(Z){return($)=>new yH.Observable((J)=>{let Y=new iE.Subject;J.next(Y.asObservable());let X=(z)=>{Y.error(z),J.error(z)};return $.subscribe((0,yH.operate)({destination:J,next:(z)=>Y?.next(z),complete:()=>{Y.complete(),J.complete()},error:X})),(0,yH.from)(Z).subscribe((0,yH.operate)({destination:J,next:()=>{Y.complete(),J.next(Y=new iE.Subject)},complete:V_.noop,error:X})),()=>{Y?.unsubscribe(),Y=null}})}nE.window=A_});var Zf=W((oE)=>{Object.defineProperty(oE,"__esModule",{value:!0});oE.windowCount=void 0;var sE=U(),tE=q0();function M_(Z,$=0){let J=$>0?$:Z;return(Y)=>new sE.Observable((X)=>{let z=[new tE.Subject],K=[],H=0;X.next(z[0].asObservable()),Y.subscribe((0,sE.operate)({destination:X,next:(q)=>{for(let w of z)w.next(q);let L=H-Z+1;if(L>=0&&L%J===0)z.shift().complete();if(++H%J===0){let w=new tE.Subject;z.push(w),X.next(w.asObservable())}},error:(q)=>{while(z.length>0)z.shift().error(q);X.error(q)},complete:()=>{while(z.length>0)z.shift().complete();X.complete()},finalize:()=>{K=null,z=null}}))})}oE.windowCount=M_});var Xf=W((Jf)=>{Object.defineProperty(Jf,"__esModule",{value:!0});Jf.windowTime=void 0;var x_=q0(),T_=T0(),_q=U(),C_=Z9(),h_=G6(),$f=c0();function R_(Z,...$){let J=(0,h_.popScheduler)($)??T_.asyncScheduler,Y=$[0]??null,X=$[1]||1/0;return(z)=>new _q.Observable((K)=>{let H=[],q=!1,L=(M)=>{let{window:V,subs:y}=M;V.complete(),y.unsubscribe(),(0,C_.arrRemove)(H,M),q&&w()},w=()=>{if(H){let M=new _q.Subscription;K.add(M);let V=new x_.Subject,y={window:V,subs:M,seen:0};H.push(y),K.next(V.asObservable()),(0,$f.executeSchedule)(M,J,()=>L(y),Z)}};if(Y!==null&&Y>=0)(0,$f.executeSchedule)(K,J,w,Y,!0);else q=!0;w();let E=(M)=>H.slice().forEach(M),P=(M)=>{E(({window:V})=>M(V)),M(K),K.unsubscribe()};return z.subscribe((0,_q.operate)({destination:K,next:(M)=>{E((V)=>{V.window.next(M),X<=++V.seen&&L(V)})},error:(M)=>P((V)=>V.error(M)),complete:()=>P((M)=>M.complete())})),()=>{H=null}})}Jf.windowTime=R_});var Hf=W((Kf)=>{Object.defineProperty(Kf,"__esModule",{value:!0});Kf.windowToggle=void 0;var Y9=U(),v_=q0(),zf=K0(),y_=Z9();function m_(Z,$){return(J)=>new Y9.Observable((Y)=>{let X=[],z=(K)=>{while(0<X.length)X.shift().error(K);Y.error(K)};(0,Y9.from)(Z).subscribe((0,Y9.operate)({destination:Y,next:(K)=>{let H=new v_.Subject;X.push(H);let q=new Y9.Subscription,L=()=>{(0,y_.arrRemove)(X,H),H.complete(),q.unsubscribe()},w;try{w=(0,Y9.from)($(K))}catch(E){z(E);return}Y.next(H),q.add(w.subscribe((0,Y9.operate)({destination:Y,next:L,error:z,complete:zf.noop})))},complete:zf.noop})),J.subscribe((0,Y9.operate)({destination:Y,next:(K)=>{let H=X.slice();for(let q of H)q.next(K)},error:z,complete:()=>{while(0<X.length)X.shift().complete();Y.complete()},finalize:()=>{while(0<X.length)X.shift().unsubscribe()}}))})}Kf.windowToggle=m_});var Nf=W((Wf)=>{Object.defineProperty(Wf,"__esModule",{value:!0});Wf.windowWhen=void 0;var mH=U(),j_=q0(),__=K0();function S_(Z){return($)=>new mH.Observable((J)=>{let Y,X,z=(H)=>{Y.error(H),J.error(H)},K=()=>{X?.unsubscribe(),Y?.complete(),Y=new j_.Subject,J.next(Y.asObservable());let H;try{H=(0,mH.from)(Z())}catch(q){z(q);return}H.subscribe(X=(0,mH.operate)({destination:J,next:K,error:z,complete:__.noop}))};K(),$.subscribe((0,mH.operate)({destination:J,next:(H)=>Y.next(H),error:z,complete:()=>{Y.complete(),J.complete()},finalize:()=>{X?.unsubscribe(),Y=null}}))})}Wf.windowWhen=S_});var Gf=W((Bf)=>{Object.defineProperty(Bf,"__esModule",{value:!0});Bf.withLatestFrom=void 0;var jH=U(),g_=C0(),b_=K0(),c_=G6();function d_(...Z){let $=(0,c_.popResultSelector)(Z);return(J)=>new jH.Observable((Y)=>{let X=Z.length,z=Array(X),K=Z.map(()=>!1),H=!1;for(let q=0;q<X;q++)(0,jH.from)(Z[q]).subscribe((0,jH.operate)({destination:Y,next:(L)=>{if(z[q]=L,!H&&!K[q])K[q]=!0,(H=K.every(g_.identity))&&(K=null)},complete:b_.noop}));J.subscribe((0,jH.operate)({destination:Y,next:(q)=>{if(H){let L=[q,...z];Y.next($?$(...L):L)}}}))})}Bf.withLatestFrom=d_});var wf=W((Lf)=>{Object.defineProperty(Lf,"__esModule",{value:!0});Lf.zipAll=void 0;var u_=OH(),l_=Uq();function p_(Z){return(0,l_.joinAllInternals)(u_.zip,Z)}Lf.zipAll=p_});var If=W((Uf)=>{Object.defineProperty(Uf,"__esModule",{value:!0});Uf.zipWith=void 0;var i_=U(),n_=OH();function r_(...Z){return($)=>new i_.Observable((J)=>{(0,n_.zip)($,...Z).subscribe(J)})}Uf.zipWith=r_});var Pf=W((Q)=>{var a_=Q&&Q.__createBinding||(Object.create?function(Z,$,J,Y){if(Y===void 0)Y=J;var X=Object.getOwnPropertyDescriptor($,J);if(!X||("get"in X?!$.__esModule:X.writable||X.configurable))X={enumerable:!0,get:function(){return $[J]}};Object.defineProperty(Z,Y,X)}:function(Z,$,J,Y){if(Y===void 0)Y=J;Z[Y]=$[J]}),s_=Q&&Q.__exportStar||function(Z,$){for(var J in Z)if(J!=="default"&&!Object.prototype.hasOwnProperty.call($,J))a_($,Z,J)};Object.defineProperty(Q,"__esModule",{value:!0});Q.throwError=Q.range=Q.race=Q.partition=Q.onErrorResumeNext=Q.of=Q.merge=Q.interval=Q.iif=Q.generate=Q.fromEventPattern=Q.fromEvent=Q.forkJoin=Q.defer=Q.connectable=Q.concat=Q.combineLatest=Q.bindNodeCallback=Q.bindCallback=Q.TimeoutError=Q.SequenceError=Q.NotFoundError=Q.EmptyError=Q.ArgumentOutOfRangeError=Q.firstValueFrom=Q.lastValueFrom=Q.identity=Q.noop=Q.pipe=Q.rx=Q.Scheduler=Q.VirtualAction=Q.VirtualTimeScheduler=Q.animationFrameScheduler=Q.queueScheduler=Q.asyncScheduler=Q.asapScheduler=Q.AsyncSubject=Q.ReplaySubject=Q.BehaviorSubject=Q.Subject=Q.animationFrames=Q.isObservable=Q.UnsubscriptionError=Q.operate=Q.Subscriber=Q.Subscription=Q.config=Q.from=Q.Observable=void 0;Q.max=Q.materialize=Q.mapTo=Q.map=Q.last=Q.isEmpty=Q.ignoreElements=Q.groupBy=Q.first=Q.findIndex=Q.find=Q.finalize=Q.filter=Q.expand=Q.exhaustMap=Q.exhaustAll=Q.every=Q.endWith=Q.elementAt=Q.distinctUntilKeyChanged=Q.distinctUntilChanged=Q.distinct=Q.dematerialize=Q.delayWhen=Q.delay=Q.defaultIfEmpty=Q.debounceTime=Q.debounce=Q.count=Q.connect=Q.concatWith=Q.concatMapTo=Q.concatMap=Q.concatAll=Q.combineLatestWith=Q.combineLatestAll=Q.catchError=Q.bufferWhen=Q.bufferToggle=Q.bufferTime=Q.bufferCount=Q.buffer=Q.auditTime=Q.audit=Q.NEVER=Q.EMPTY=Q.scheduled=Q.zip=Q.using=Q.timer=void 0;Q.windowWhen=Q.windowToggle=Q.windowTime=Q.windowCount=Q.window=Q.toArray=Q.timestamp=Q.timeoutWith=Q.timeout=Q.timeInterval=Q.throwIfEmpty=Q.throttleTime=Q.throttle=Q.tap=Q.takeWhile=Q.takeUntil=Q.takeLast=Q.take=Q.switchScan=Q.switchMapTo=Q.switchMap=Q.switchAll=Q.subscribeOn=Q.startWith=Q.skipWhile=Q.skipUntil=Q.skipLast=Q.skip=Q.single=Q.shareReplay=Q.share=Q.sequenceEqual=Q.scan=Q.sampleTime=Q.sample=Q.retryWhen=Q.retry=Q.repeatWhen=Q.repeat=Q.reduce=Q.raceWith=Q.pairwise=Q.onErrorResumeNextWith=Q.observeOn=Q.min=Q.mergeWith=Q.mergeScan=Q.mergeMapTo=Q.mergeMap=Q.mergeAll=void 0;Q.zipWith=Q.zipAll=Q.withLatestFrom=void 0;var D6=U();Object.defineProperty(Q,"Observable",{enumerable:!0,get:function(){return D6.Observable}});Object.defineProperty(Q,"from",{enumerable:!0,get:function(){return D6.from}});Object.defineProperty(Q,"config",{enumerable:!0,get:function(){return D6.config}});Object.defineProperty(Q,"Subscription",{enumerable:!0,get:function(){return D6.Subscription}});Object.defineProperty(Q,"Subscriber",{enumerable:!0,get:function(){return D6.Subscriber}});Object.defineProperty(Q,"operate",{enumerable:!0,get:function(){return D6.operate}});Object.defineProperty(Q,"UnsubscriptionError",{enumerable:!0,get:function(){return D6.UnsubscriptionError}});Object.defineProperty(Q,"isObservable",{enumerable:!0,get:function(){return D6.isObservable}});var t_=ZL();Object.defineProperty(Q,"animationFrames",{enumerable:!0,get:function(){return t_.animationFrames}});var o_=q0();Object.defineProperty(Q,"Subject",{enumerable:!0,get:function(){return o_.Subject}});var e_=QL();Object.defineProperty(Q,"BehaviorSubject",{enumerable:!0,get:function(){return e_.BehaviorSubject}});var ZS=SW();Object.defineProperty(Q,"ReplaySubject",{enumerable:!0,get:function(){return ZS.ReplaySubject}});var $S=gW();Object.defineProperty(Q,"AsyncSubject",{enumerable:!0,get:function(){return $S.AsyncSubject}});var JS=sL();Object.defineProperty(Q,"asapScheduler",{enumerable:!0,get:function(){return JS.asapScheduler}});var YS=T0();Object.defineProperty(Q,"asyncScheduler",{enumerable:!0,get:function(){return YS.asyncScheduler}});var XS=WD();Object.defineProperty(Q,"queueScheduler",{enumerable:!0,get:function(){return XS.queueScheduler}});var zS=kD();Object.defineProperty(Q,"animationFrameScheduler",{enumerable:!0,get:function(){return zS.animationFrameScheduler}});var kf=VD();Object.defineProperty(Q,"VirtualTimeScheduler",{enumerable:!0,get:function(){return kf.VirtualTimeScheduler}});Object.defineProperty(Q,"VirtualAction",{enumerable:!0,get:function(){return kf.VirtualAction}});var KS=dW();Object.defineProperty(Q,"Scheduler",{enumerable:!0,get:function(){return KS.Scheduler}});var QS=uW();Object.defineProperty(Q,"rx",{enumerable:!0,get:function(){return QS.rx}});var HS=lW();Object.defineProperty(Q,"pipe",{enumerable:!0,get:function(){return HS.pipe}});var WS=K0();Object.defineProperty(Q,"noop",{enumerable:!0,get:function(){return WS.noop}});var qS=C0();Object.defineProperty(Q,"identity",{enumerable:!0,get:function(){return qS.identity}});var NS=gD();Object.defineProperty(Q,"lastValueFrom",{enumerable:!0,get:function(){return NS.lastValueFrom}});var BS=dD();Object.defineProperty(Q,"firstValueFrom",{enumerable:!0,get:function(){return BS.firstValueFrom}});var FS=pW();Object.defineProperty(Q,"ArgumentOutOfRangeError",{enumerable:!0,get:function(){return FS.ArgumentOutOfRangeError}});var GS=j8();Object.defineProperty(Q,"EmptyError",{enumerable:!0,get:function(){return GS.EmptyError}});var LS=iW();Object.defineProperty(Q,"NotFoundError",{enumerable:!0,get:function(){return LS.NotFoundError}});var DS=nW();Object.defineProperty(Q,"SequenceError",{enumerable:!0,get:function(){return DS.SequenceError}});var wS=NH();Object.defineProperty(Q,"TimeoutError",{enumerable:!0,get:function(){return wS.TimeoutError}});var US=iw();Object.defineProperty(Q,"bindCallback",{enumerable:!0,get:function(){return US.bindCallback}});var OS=aw();Object.defineProperty(Q,"bindNodeCallback",{enumerable:!0,get:function(){return OS.bindNodeCallback}});var IS=GH();Object.defineProperty(Q,"combineLatest",{enumerable:!0,get:function(){return IS.combineLatest}});var kS=Kq();Object.defineProperty(Q,"concat",{enumerable:!0,get:function(){return kS.concat}});var PS=f2();Object.defineProperty(Q,"connectable",{enumerable:!0,get:function(){return PS.connectable}});var ES=yQ();Object.defineProperty(Q,"defer",{enumerable:!0,get:function(){return ES.defer}});var fS=M2();Object.defineProperty(Q,"forkJoin",{enumerable:!0,get:function(){return fS.forkJoin}});var VS=m2();Object.defineProperty(Q,"fromEvent",{enumerable:!0,get:function(){return VS.fromEvent}});var AS=b2();Object.defineProperty(Q,"fromEventPattern",{enumerable:!0,get:function(){return AS.fromEventPattern}});var MS=l2();Object.defineProperty(Q,"generate",{enumerable:!0,get:function(){return MS.generate}});var xS=n2();Object.defineProperty(Q,"iif",{enumerable:!0,get:function(){return xS.iif}});var TS=Hq();Object.defineProperty(Q,"interval",{enumerable:!0,get:function(){return TS.interval}});var CS=YU();Object.defineProperty(Q,"merge",{enumerable:!0,get:function(){return CS.merge}});var hS=KU();Object.defineProperty(Q,"of",{enumerable:!0,get:function(){return hS.of}});var RS=qq();Object.defineProperty(Q,"onErrorResumeNext",{enumerable:!0,get:function(){return RS.onErrorResumeNext}});var vS=PU();Object.defineProperty(Q,"partition",{enumerable:!0,get:function(){return vS.partition}});var yS=Nq();Object.defineProperty(Q,"race",{enumerable:!0,get:function(){return yS.race}});var mS=TU();Object.defineProperty(Q,"range",{enumerable:!0,get:function(){return mS.range}});var jS=RU();Object.defineProperty(Q,"throwError",{enumerable:!0,get:function(){return jS.throwError}});var _S=L6();Object.defineProperty(Q,"timer",{enumerable:!0,get:function(){return _S.timer}});var SS=jU();Object.defineProperty(Q,"using",{enumerable:!0,get:function(){return SS.using}});var gS=OH();Object.defineProperty(Q,"zip",{enumerable:!0,get:function(){return gS.zip}});var bS=RQ();Object.defineProperty(Q,"scheduled",{enumerable:!0,get:function(){return bS.scheduled}});var cS=k8();Object.defineProperty(Q,"EMPTY",{enumerable:!0,get:function(){return cS.EMPTY}});var dS=cU();Object.defineProperty(Q,"NEVER",{enumerable:!0,get:function(){return dS.NEVER}});s_(uU(),Q);var uS=Fq();Object.defineProperty(Q,"audit",{enumerable:!0,get:function(){return uS.audit}});var lS=rU();Object.defineProperty(Q,"auditTime",{enumerable:!0,get:function(){return lS.auditTime}});var pS=tU();Object.defineProperty(Q,"buffer",{enumerable:!0,get:function(){return pS.buffer}});var iS=$O();Object.defineProperty(Q,"bufferCount",{enumerable:!0,get:function(){return iS.bufferCount}});var nS=zO();Object.defineProperty(Q,"bufferTime",{enumerable:!0,get:function(){return nS.bufferTime}});var rS=WO();Object.defineProperty(Q,"bufferToggle",{enumerable:!0,get:function(){return rS.bufferToggle}});var aS=BO();Object.defineProperty(Q,"bufferWhen",{enumerable:!0,get:function(){return aS.bufferWhen}});var sS=DO();Object.defineProperty(Q,"catchError",{enumerable:!0,get:function(){return sS.catchError}});var tS=MO();Object.defineProperty(Q,"combineLatestAll",{enumerable:!0,get:function(){return tS.combineLatestAll}});var oS=CO();Object.defineProperty(Q,"combineLatestWith",{enumerable:!0,get:function(){return oS.combineLatestWith}});var eS=DH();Object.defineProperty(Q,"concatAll",{enumerable:!0,get:function(){return eS.concatAll}});var Zg=Oq();Object.defineProperty(Q,"concatMap",{enumerable:!0,get:function(){return Zg.concatMap}});var $g=mO();Object.defineProperty(Q,"concatMapTo",{enumerable:!0,get:function(){return $g.concatMapTo}});var Jg=gO();Object.defineProperty(Q,"concatWith",{enumerable:!0,get:function(){return Jg.concatWith}});var Yg=iO();Object.defineProperty(Q,"connect",{enumerable:!0,get:function(){return Yg.connect}});var Xg=aO();Object.defineProperty(Q,"count",{enumerable:!0,get:function(){return Xg.count}});var zg=oO();Object.defineProperty(Q,"debounce",{enumerable:!0,get:function(){return zg.debounce}});var Kg=JI();Object.defineProperty(Q,"debounceTime",{enumerable:!0,get:function(){return Kg.debounceTime}});var Qg=KI();Object.defineProperty(Q,"defaultIfEmpty",{enumerable:!0,get:function(){return Qg.defaultIfEmpty}});var Hg=OI();Object.defineProperty(Q,"delay",{enumerable:!0,get:function(){return Hg.delay}});var Wg=Eq();Object.defineProperty(Q,"delayWhen",{enumerable:!0,get:function(){return Wg.delayWhen}});var qg=AI();Object.defineProperty(Q,"dematerialize",{enumerable:!0,get:function(){return qg.dematerialize}});var Ng=TI();Object.defineProperty(Q,"distinct",{enumerable:!0,get:function(){return Ng.distinct}});var Bg=fq();Object.defineProperty(Q,"distinctUntilChanged",{enumerable:!0,get:function(){return Bg.distinctUntilChanged}});var Fg=mI();Object.defineProperty(Q,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return Fg.distinctUntilKeyChanged}});var Gg=bI();Object.defineProperty(Q,"elementAt",{enumerable:!0,get:function(){return Gg.elementAt}});var Lg=uI();Object.defineProperty(Q,"endWith",{enumerable:!0,get:function(){return Lg.endWith}});var Dg=nI();Object.defineProperty(Q,"every",{enumerable:!0,get:function(){return Dg.every}});var wg=oI();Object.defineProperty(Q,"exhaustAll",{enumerable:!0,get:function(){return wg.exhaustAll}});var Ug=Aq();Object.defineProperty(Q,"exhaustMap",{enumerable:!0,get:function(){return Ug.exhaustMap}});var Og=$k();Object.defineProperty(Q,"expand",{enumerable:!0,get:function(){return Og.expand}});var Ig=wH();Object.defineProperty(Q,"filter",{enumerable:!0,get:function(){return Ig.filter}});var kg=Xk();Object.defineProperty(Q,"finalize",{enumerable:!0,get:function(){return kg.finalize}});var Pg=Mq();Object.defineProperty(Q,"find",{enumerable:!0,get:function(){return Pg.find}});var Eg=Nk();Object.defineProperty(Q,"findIndex",{enumerable:!0,get:function(){return Eg.findIndex}});var fg=Lk();Object.defineProperty(Q,"first",{enumerable:!0,get:function(){return fg.first}});var Vg=Uk();Object.defineProperty(Q,"groupBy",{enumerable:!0,get:function(){return Vg.groupBy}});var Ag=kq();Object.defineProperty(Q,"ignoreElements",{enumerable:!0,get:function(){return Ag.ignoreElements}});var Mg=Pk();Object.defineProperty(Q,"isEmpty",{enumerable:!0,get:function(){return Mg.isEmpty}});var xg=Ak();Object.defineProperty(Q,"last",{enumerable:!0,get:function(){return xg.last}});var Tg=ZQ();Object.defineProperty(Q,"map",{enumerable:!0,get:function(){return Tg.map}});var Cg=Tk();Object.defineProperty(Q,"mapTo",{enumerable:!0,get:function(){return Cg.mapTo}});var hg=Rk();Object.defineProperty(Q,"materialize",{enumerable:!0,get:function(){return hg.materialize}});var Rg=mk();Object.defineProperty(Q,"max",{enumerable:!0,get:function(){return Rg.max}});var vg=vQ();Object.defineProperty(Q,"mergeAll",{enumerable:!0,get:function(){return vg.mergeAll}});var yg=$9();Object.defineProperty(Q,"mergeMap",{enumerable:!0,get:function(){return yg.mergeMap}});var mg=Sk();Object.defineProperty(Q,"mergeMapTo",{enumerable:!0,get:function(){return mg.mergeMapTo}});var jg=ck();Object.defineProperty(Q,"mergeScan",{enumerable:!0,get:function(){return jg.mergeScan}});var _g=pk();Object.defineProperty(Q,"mergeWith",{enumerable:!0,get:function(){return _g.mergeWith}});var Sg=rk();Object.defineProperty(Q,"min",{enumerable:!0,get:function(){return Sg.min}});var gg=BH();Object.defineProperty(Q,"observeOn",{enumerable:!0,get:function(){return gg.observeOn}});var bg=tk();Object.defineProperty(Q,"onErrorResumeNextWith",{enumerable:!0,get:function(){return bg.onErrorResumeNextWith}});var cg=$P();Object.defineProperty(Q,"pairwise",{enumerable:!0,get:function(){return cg.pairwise}});var dg=XP();Object.defineProperty(Q,"raceWith",{enumerable:!0,get:function(){return dg.raceWith}});var ug=JQ();Object.defineProperty(Q,"reduce",{enumerable:!0,get:function(){return ug.reduce}});var lg=QP();Object.defineProperty(Q,"repeat",{enumerable:!0,get:function(){return lg.repeat}});var pg=qP();Object.defineProperty(Q,"repeatWhen",{enumerable:!0,get:function(){return pg.repeatWhen}});var ig=FP();Object.defineProperty(Q,"retry",{enumerable:!0,get:function(){return ig.retry}});var ng=DP();Object.defineProperty(Q,"retryWhen",{enumerable:!0,get:function(){return ng.retryWhen}});var rg=xq();Object.defineProperty(Q,"sample",{enumerable:!0,get:function(){return rg.sample}});var ag=kP();Object.defineProperty(Q,"sampleTime",{enumerable:!0,get:function(){return ag.sampleTime}});var sg=fP();Object.defineProperty(Q,"scan",{enumerable:!0,get:function(){return sg.scan}});var tg=xP();Object.defineProperty(Q,"sequenceEqual",{enumerable:!0,get:function(){return tg.sequenceEqual}});var og=hq();Object.defineProperty(Q,"share",{enumerable:!0,get:function(){return og.share}});var eg=vP();Object.defineProperty(Q,"shareReplay",{enumerable:!0,get:function(){return eg.shareReplay}});var Zb=_P();Object.defineProperty(Q,"single",{enumerable:!0,get:function(){return Zb.single}});var $b=bP();Object.defineProperty(Q,"skip",{enumerable:!0,get:function(){return $b.skip}});var Jb=lP();Object.defineProperty(Q,"skipLast",{enumerable:!0,get:function(){return Jb.skipLast}});var Yb=nP();Object.defineProperty(Q,"skipUntil",{enumerable:!0,get:function(){return Yb.skipUntil}});var Xb=tP();Object.defineProperty(Q,"skipWhile",{enumerable:!0,get:function(){return Xb.skipWhile}});var zb=ZE();Object.defineProperty(Q,"startWith",{enumerable:!0,get:function(){return zb.startWith}});var Kb=FH();Object.defineProperty(Q,"subscribeOn",{enumerable:!0,get:function(){return Kb.subscribeOn}});var Qb=zE();Object.defineProperty(Q,"switchAll",{enumerable:!0,get:function(){return Qb.switchAll}});var Hb=gQ();Object.defineProperty(Q,"switchMap",{enumerable:!0,get:function(){return Hb.switchMap}});var Wb=HE();Object.defineProperty(Q,"switchMapTo",{enumerable:!0,get:function(){return Wb.switchMapTo}});var qb=BE();Object.defineProperty(Q,"switchScan",{enumerable:!0,get:function(){return qb.switchScan}});var Nb=Iq();Object.defineProperty(Q,"take",{enumerable:!0,get:function(){return Nb.take}});var Bb=DE();Object.defineProperty(Q,"takeLast",{enumerable:!0,get:function(){return Bb.takeLast}});var Fb=OE();Object.defineProperty(Q,"takeUntil",{enumerable:!0,get:function(){return Fb.takeUntil}});var Gb=EE();Object.defineProperty(Q,"takeWhile",{enumerable:!0,get:function(){return Gb.takeWhile}});var Lb=AE();Object.defineProperty(Q,"tap",{enumerable:!0,get:function(){return Lb.tap}});var Db=mq();Object.defineProperty(Q,"throttle",{enumerable:!0,get:function(){return Db.throttle}});var wb=hE();Object.defineProperty(Q,"throttleTime",{enumerable:!0,get:function(){return wb.throttleTime}});var Ub=mE();Object.defineProperty(Q,"throwIfEmpty",{enumerable:!0,get:function(){return Ub.throwIfEmpty}});var Ob=gE();Object.defineProperty(Q,"timeInterval",{enumerable:!0,get:function(){return Ob.timeInterval}});var Ib=NH();Object.defineProperty(Q,"timeout",{enumerable:!0,get:function(){return Ib.timeout}});var kb=dE();Object.defineProperty(Q,"timeoutWith",{enumerable:!0,get:function(){return kb.timeoutWith}});var Pb=pE();Object.defineProperty(Q,"timestamp",{enumerable:!0,get:function(){return Pb.timestamp}});var Eb=wq();Object.defineProperty(Q,"toArray",{enumerable:!0,get:function(){return Eb.toArray}});var fb=aE();Object.defineProperty(Q,"window",{enumerable:!0,get:function(){return fb.window}});var Vb=Zf();Object.defineProperty(Q,"windowCount",{enumerable:!0,get:function(){return Vb.windowCount}});var Ab=Xf();Object.defineProperty(Q,"windowTime",{enumerable:!0,get:function(){return Ab.windowTime}});var Mb=Hf();Object.defineProperty(Q,"windowToggle",{enumerable:!0,get:function(){return Mb.windowToggle}});var xb=Nf();Object.defineProperty(Q,"windowWhen",{enumerable:!0,get:function(){return xb.windowWhen}});var Tb=Gf();Object.defineProperty(Q,"withLatestFrom",{enumerable:!0,get:function(){return Tb.withLatestFrom}});var Cb=wf();Object.defineProperty(Q,"zipAll",{enumerable:!0,get:function(){return Cb.zipAll}});var hb=If();Object.defineProperty(Q,"zipWith",{enumerable:!0,get:function(){return hb.zipWith}})});async function Sq(Z,$,J){let{max:Y=4}=J??{},X=(K)=>h.defer(()=>h.from($(Z[K])).pipe(h.map((H)=>({idx:K,v:H})))),z=h.from(Z.map((K,H)=>H)).pipe(h.map(X),h.mergeAll(Y),h.reduce((K,H)=>{return K[H.idx]=H.v,K},[]));return h.firstValueFrom(z)}class Ef{opQueue=new h.Subject;opResultStream;nextOperation=1;dispose;constructor(Z){let{max:$=4}=Z??{};this.opResultStream=this.opQueue.pipe(h.mergeAll($),h.share()),this.dispose=this.opResultStream.subscribe()}enqueue(Z){let $=this.nextOperation++,J=h.defer(()=>h.from(Z()).pipe(h.map((X)=>({id:$,result:X})),h.catchError((X)=>h.of({id:$,error:X})))),Y=h.firstValueFrom(this.opResultStream.pipe(h.filter((X)=>X.id===$))).then((X)=>{if(X.error)return Promise.reject(X.error);else return Promise.resolve(X.result)});return this.opQueue.next(J),Y}enqueueList(Z,$){if(Z.length===0)return Promise.resolve(new Map);return h.firstValueFrom(h.from(Z).pipe(h.mergeMap((J)=>this.enqueue(()=>$(J)).then((Y)=>({key:J,value:Y}))),h.reduce((J,Y)=>{return J.set(Y.key,Y.value),J},new Map)))}close(){this.opQueue.complete();let Z=h.lastValueFrom(this.opResultStream.pipe(h.materialize(),h.map(()=>{return})));return this.dispose.unsubscribe(),Z}}var h;var ff=O(()=>{h=wB(Pf(),1)});class YQ{}import{randomUUID as Rb}from"crypto";import{closeSync as vb,openSync as yb,readSync as mb}from"fs";function _b(Z){if(Vf)return;try{if(XQ===void 0)XQ=yb(jb,"r");let $=Buffer.alloc(Z),J=0;while(J<Z){let Y=mb(XQ,$,J,Z-J,null);if(Y<=0)return;J+=Y}return $}catch{if(Vf=!0,XQ!==void 0){try{vb(XQ)}catch{}XQ=void 0}return}}function Sb(Z){let $=Z[6]??0,J=Z[8]??0;Z[6]=$&15|64,Z[8]=J&63|128;let Y=Z.toString("hex");return`${Y.slice(0,8)}-${Y.slice(8,12)}-${Y.slice(12,16)}-${Y.slice(16,20)}-${Y.slice(20)}`}function _H(){let Z=_b(16);if(Z===void 0)return Rb({disableEntropyCache:!0});return Sb(Z)}var jb="/dev/urandom",XQ,Vf=!1;var Af=()=>{};function Mf(Z){return Z.replace(/[^a-zA-Z0-9]/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,"")}function gb(Z){return/^[A-Za-z]:[\\/]/.test(Z)||Z.startsWith("\\\\")||Z.startsWith("//")}function bb(Z,...$){if(!gb(Z))return[Z.replace(/\/+$/,""),...$].join("/");let Y=Z.replace(/\//g,"\\").replace(/\\+$/,""),X=$.map((z)=>z.replace(/\//g,"\\"));if(Y.length===0)return["","",...X].join("\\");return[Y,...X].join("\\")}function gq(Z,$){return bb(Z,".cursor","projects",Mf($))}var zQ=O(()=>{ff();Af()});var Cf=W((xf)=>{Object.defineProperty(xf,"__esModule",{value:!0});xf._globalThis=void 0;xf._globalThis=typeof globalThis==="object"?globalThis:global});var hf=W((X9)=>{var cb=X9&&X9.__createBinding||(Object.create?function(Z,$,J,Y){if(Y===void 0)Y=J;Object.defineProperty(Z,Y,{enumerable:!0,get:function(){return $[J]}})}:function(Z,$,J,Y){if(Y===void 0)Y=J;Z[Y]=$[J]}),db=X9&&X9.__exportStar||function(Z,$){for(var J in Z)if(J!=="default"&&!Object.prototype.hasOwnProperty.call($,J))cb($,Z,J)};Object.defineProperty(X9,"__esModule",{value:!0});db(Cf(),X9)});var Rf=W((z9)=>{var ub=z9&&z9.__createBinding||(Object.create?function(Z,$,J,Y){if(Y===void 0)Y=J;Object.defineProperty(Z,Y,{enumerable:!0,get:function(){return $[J]}})}:function(Z,$,J,Y){if(Y===void 0)Y=J;Z[Y]=$[J]}),lb=z9&&z9.__exportStar||function(Z,$){for(var J in Z)if(J!=="default"&&!Object.prototype.hasOwnProperty.call($,J))ub($,Z,J)};Object.defineProperty(z9,"__esModule",{value:!0});lb(hf(),z9)});var bq=W((vf)=>{Object.defineProperty(vf,"__esModule",{value:!0});vf.VERSION=void 0;vf.VERSION="1.9.0"});var gf=W((_f)=>{Object.defineProperty(_f,"__esModule",{value:!0});_f.isCompatible=_f._makeCompatibilityCheck=void 0;var pb=bq(),mf=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function jf(Z){let $=new Set([Z]),J=new Set,Y=Z.match(mf);if(!Y)return()=>!1;let X={major:+Y[1],minor:+Y[2],patch:+Y[3],prerelease:Y[4]};if(X.prerelease!=null)return function(q){return q===Z};function z(H){return J.add(H),!1}function K(H){return $.add(H),!0}return function(q){if($.has(q))return!0;if(J.has(q))return!1;let L=q.match(mf);if(!L)return z(q);let w={major:+L[1],minor:+L[2],patch:+L[3],prerelease:L[4]};if(w.prerelease!=null)return z(q);if(X.major!==w.major)return z(q);if(X.major===0){if(X.minor===w.minor&&X.patch<=w.patch)return K(q);return z(q)}if(X.minor<=w.minor)return K(q);return z(q)}}_f._makeCompatibilityCheck=jf;_f.isCompatible=jf(pb.VERSION)});var K9=W((bf)=>{Object.defineProperty(bf,"__esModule",{value:!0});bf.unregisterGlobal=bf.getGlobal=bf.registerGlobal=void 0;var nb=Rf(),KQ=bq(),rb=gf(),ab=KQ.VERSION.split(".")[0],bQ=Symbol.for(`opentelemetry.js.api.${ab}`),cQ=nb._globalThis;function sb(Z,$,J,Y=!1){var X;let z=cQ[bQ]=(X=cQ[bQ])!==null&&X!==void 0?X:{version:KQ.VERSION};if(!Y&&z[Z]){let K=Error(`@opentelemetry/api: Attempted duplicate registration of API: ${Z}`);return J.error(K.stack||K.message),!1}if(z.version!==KQ.VERSION){let K=Error(`@opentelemetry/api: Registration of version v${z.version} for ${Z} does not match previously registered API v${KQ.VERSION}`);return J.error(K.stack||K.message),!1}return z[Z]=$,J.debug(`@opentelemetry/api: Registered a global for ${Z} v${KQ.VERSION}.`),!0}bf.registerGlobal=sb;function tb(Z){var $,J;let Y=($=cQ[bQ])===null||$===void 0?void 0:$.version;if(!Y||!(0,rb.isCompatible)(Y))return;return(J=cQ[bQ])===null||J===void 0?void 0:J[Z]}bf.getGlobal=tb;function ob(Z,$){$.debug(`@opentelemetry/api: Unregistering a global for ${Z} v${KQ.VERSION}.`);let J=cQ[bQ];if(J)delete J[Z]}bf.unregisterGlobal=ob});var pf=W((uf)=>{Object.defineProperty(uf,"__esModule",{value:!0});uf.DiagComponentLogger=void 0;var $c=K9();class df{constructor(Z){this._namespace=Z.namespace||"DiagComponentLogger"}debug(...Z){return dQ("debug",this._namespace,Z)}error(...Z){return dQ("error",this._namespace,Z)}info(...Z){return dQ("info",this._namespace,Z)}warn(...Z){return dQ("warn",this._namespace,Z)}verbose(...Z){return dQ("verbose",this._namespace,Z)}}uf.DiagComponentLogger=df;function dQ(Z,$,J){let Y=(0,$c.getGlobal)("diag");if(!Y)return;return J.unshift($),Y[Z](...J)}});var SH=W((nf)=>{Object.defineProperty(nf,"__esModule",{value:!0});nf.DiagLogLevel=void 0;var Jc;(function(Z){Z[Z.NONE=0]="NONE",Z[Z.ERROR=30]="ERROR",Z[Z.WARN=50]="WARN",Z[Z.INFO=60]="INFO",Z[Z.DEBUG=70]="DEBUG",Z[Z.VERBOSE=80]="VERBOSE",Z[Z.ALL=9999]="ALL"})(Jc=nf.DiagLogLevel||(nf.DiagLogLevel={}))});var sf=W((rf)=>{Object.defineProperty(rf,"__esModule",{value:!0});rf.createLogLevelDiagLogger=void 0;var S8=SH();function Yc(Z,$){if(Z<S8.DiagLogLevel.NONE)Z=S8.DiagLogLevel.NONE;else if(Z>S8.DiagLogLevel.ALL)Z=S8.DiagLogLevel.ALL;$=$||{};function J(Y,X){let z=$[Y];if(typeof z==="function"&&Z>=X)return z.bind($);return function(){}}return{error:J("error",S8.DiagLogLevel.ERROR),warn:J("warn",S8.DiagLogLevel.WARN),info:J("info",S8.DiagLogLevel.INFO),debug:J("debug",S8.DiagLogLevel.DEBUG),verbose:J("verbose",S8.DiagLogLevel.VERBOSE)}}rf.createLogLevelDiagLogger=Yc});var Q9=W((of)=>{Object.defineProperty(of,"__esModule",{value:!0});of.DiagAPI=void 0;var Xc=pf(),zc=sf(),tf=SH(),gH=K9(),Kc="diag";class dq{constructor(){function Z(Y){return function(...X){let z=(0,gH.getGlobal)("diag");if(!z)return;return z[Y](...X)}}let $=this,J=(Y,X={logLevel:tf.DiagLogLevel.INFO})=>{var z,K,H;if(Y===$){let w=Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return $.error((z=w.stack)!==null&&z!==void 0?z:w.message),!1}if(typeof X==="number")X={logLevel:X};let q=(0,gH.getGlobal)("diag"),L=(0,zc.createLogLevelDiagLogger)((K=X.logLevel)!==null&&K!==void 0?K:tf.DiagLogLevel.INFO,Y);if(q&&!X.suppressOverrideMessage){let w=(H=Error().stack)!==null&&H!==void 0?H:"<failed to generate stacktrace>";q.warn(`Current logger will be overwritten from ${w}`),L.warn(`Current logger will overwrite one already registered from ${w}`)}return(0,gH.registerGlobal)("diag",L,$,!0)};$.setLogger=J,$.disable=()=>{(0,gH.unregisterGlobal)(Kc,$)},$.createComponentLogger=(Y)=>{return new Xc.DiagComponentLogger(Y)},$.verbose=Z("verbose"),$.debug=Z("debug"),$.info=Z("info"),$.warn=Z("warn"),$.error=Z("error")}static instance(){if(!this._instance)this._instance=new dq;return this._instance}}of.DiagAPI=dq});var JV=W((ZV)=>{Object.defineProperty(ZV,"__esModule",{value:!0});ZV.BaggageImpl=void 0;class QQ{constructor(Z){this._entries=Z?new Map(Z):new Map}getEntry(Z){let $=this._entries.get(Z);if(!$)return;return Object.assign({},$)}getAllEntries(){return Array.from(this._entries.entries()).map(([Z,$])=>[Z,$])}setEntry(Z,$){let J=new QQ(this._entries);return J._entries.set(Z,$),J}removeEntry(Z){let $=new QQ(this._entries);return $._entries.delete(Z),$}removeEntries(...Z){let $=new QQ(this._entries);for(let J of Z)$._entries.delete(J);return $}clear(){return new QQ}}ZV.BaggageImpl=QQ});var zV=W((YV)=>{Object.defineProperty(YV,"__esModule",{value:!0});YV.baggageEntryMetadataSymbol=void 0;YV.baggageEntryMetadataSymbol=Symbol("BaggageEntryMetadata")});var uq=W((KV)=>{Object.defineProperty(KV,"__esModule",{value:!0});KV.baggageEntryMetadataFromString=KV.createBaggage=void 0;var Qc=Q9(),Hc=JV(),Wc=zV(),qc=Qc.DiagAPI.instance();function Nc(Z={}){return new Hc.BaggageImpl(new Map(Object.entries(Z)))}KV.createBaggage=Nc;function Bc(Z){if(typeof Z!=="string")qc.error(`Cannot create baggage metadata from unknown type: ${typeof Z}`),Z="";return{__TYPE__:Wc.baggageEntryMetadataSymbol,toString(){return Z}}}KV.baggageEntryMetadataFromString=Bc});var uQ=W((HV)=>{Object.defineProperty(HV,"__esModule",{value:!0});HV.ROOT_CONTEXT=HV.createContextKey=void 0;function Gc(Z){return Symbol.for(Z)}HV.createContextKey=Gc;class bH{constructor(Z){let $=this;$._currentContext=Z?new Map(Z):new Map,$.getValue=(J)=>$._currentContext.get(J),$.setValue=(J,Y)=>{let X=new bH($._currentContext);return X._currentContext.set(J,Y),X},$.deleteValue=(J)=>{let Y=new bH($._currentContext);return Y._currentContext.delete(J),Y}}}HV.ROOT_CONTEXT=new bH});var FV=W((NV)=>{Object.defineProperty(NV,"__esModule",{value:!0});NV.DiagConsoleLogger=void 0;var lq=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}];class qV{constructor(){function Z($){return function(...J){if(console){let Y=console[$];if(typeof Y!=="function")Y=console.log;if(typeof Y==="function")return Y.apply(console,J)}}}for(let $=0;$<lq.length;$++)this[lq[$].n]=Z(lq[$].c)}}NV.DiagConsoleLogger=qV});var eq=W((GV)=>{Object.defineProperty(GV,"__esModule",{value:!0});GV.createNoopMeter=GV.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC=GV.NOOP_OBSERVABLE_GAUGE_METRIC=GV.NOOP_OBSERVABLE_COUNTER_METRIC=GV.NOOP_UP_DOWN_COUNTER_METRIC=GV.NOOP_HISTOGRAM_METRIC=GV.NOOP_GAUGE_METRIC=GV.NOOP_COUNTER_METRIC=GV.NOOP_METER=GV.NoopObservableUpDownCounterMetric=GV.NoopObservableGaugeMetric=GV.NoopObservableCounterMetric=GV.NoopObservableMetric=GV.NoopHistogramMetric=GV.NoopGaugeMetric=GV.NoopUpDownCounterMetric=GV.NoopCounterMetric=GV.NoopMetric=GV.NoopMeter=void 0;class pq{constructor(){}createGauge(Z,$){return GV.NOOP_GAUGE_METRIC}createHistogram(Z,$){return GV.NOOP_HISTOGRAM_METRIC}createCounter(Z,$){return GV.NOOP_COUNTER_METRIC}createUpDownCounter(Z,$){return GV.NOOP_UP_DOWN_COUNTER_METRIC}createObservableGauge(Z,$){return GV.NOOP_OBSERVABLE_GAUGE_METRIC}createObservableCounter(Z,$){return GV.NOOP_OBSERVABLE_COUNTER_METRIC}createObservableUpDownCounter(Z,$){return GV.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC}addBatchObservableCallback(Z,$){}removeBatchObservableCallback(Z){}}GV.NoopMeter=pq;class HQ{}GV.NoopMetric=HQ;class iq extends HQ{add(Z,$){}}GV.NoopCounterMetric=iq;class nq extends HQ{add(Z,$){}}GV.NoopUpDownCounterMetric=nq;class rq extends HQ{record(Z,$){}}GV.NoopGaugeMetric=rq;class aq extends HQ{record(Z,$){}}GV.NoopHistogramMetric=aq;class lQ{addCallback(Z){}removeCallback(Z){}}GV.NoopObservableMetric=lQ;class sq extends lQ{}GV.NoopObservableCounterMetric=sq;class tq extends lQ{}GV.NoopObservableGaugeMetric=tq;class oq extends lQ{}GV.NoopObservableUpDownCounterMetric=oq;GV.NOOP_METER=new pq;GV.NOOP_COUNTER_METRIC=new iq;GV.NOOP_GAUGE_METRIC=new rq;GV.NOOP_HISTOGRAM_METRIC=new aq;GV.NOOP_UP_DOWN_COUNTER_METRIC=new nq;GV.NOOP_OBSERVABLE_COUNTER_METRIC=new sq;GV.NOOP_OBSERVABLE_GAUGE_METRIC=new tq;GV.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC=new oq;function Dc(){return GV.NOOP_METER}GV.createNoopMeter=Dc});var VV=W((fV)=>{Object.defineProperty(fV,"__esModule",{value:!0});fV.ValueType=void 0;var Mc;(function(Z){Z[Z.INT=0]="INT",Z[Z.DOUBLE=1]="DOUBLE"})(Mc=fV.ValueType||(fV.ValueType={}))});var $N=W((AV)=>{Object.defineProperty(AV,"__esModule",{value:!0});AV.defaultTextMapSetter=AV.defaultTextMapGetter=void 0;AV.defaultTextMapGetter={get(Z,$){if(Z==null)return;return Z[$]},keys(Z){if(Z==null)return[];return Object.keys(Z)}};AV.defaultTextMapSetter={set(Z,$,J){if(Z==null)return;Z[$]=J}}});var hV=W((TV)=>{Object.defineProperty(TV,"__esModule",{value:!0});TV.NoopContextManager=void 0;var Tc=uQ();class xV{active(){return Tc.ROOT_CONTEXT}with(Z,$,J,...Y){return $.call(J,...Y)}bind(Z,$){return $}enable(){return this}disable(){return this}}TV.NoopContextManager=xV});var pQ=W((vV)=>{Object.defineProperty(vV,"__esModule",{value:!0});vV.ContextAPI=void 0;var Cc=hV(),JN=K9(),RV=Q9(),YN="context",hc=new Cc.NoopContextManager;class XN{constructor(){}static getInstance(){if(!this._instance)this._instance=new XN;return this._instance}setGlobalContextManager(Z){return(0,JN.registerGlobal)(YN,Z,RV.DiagAPI.instance())}active(){return this._getContextManager().active()}with(Z,$,J,...Y){return this._getContextManager().with(Z,$,J,...Y)}bind(Z,$){return this._getContextManager().bind(Z,$)}_getContextManager(){return(0,JN.getGlobal)(YN)||hc}disable(){this._getContextManager().disable(),(0,JN.unregisterGlobal)(YN,RV.DiagAPI.instance())}}vV.ContextAPI=XN});var KN=W((mV)=>{Object.defineProperty(mV,"__esModule",{value:!0});mV.TraceFlags=void 0;var Rc;(function(Z){Z[Z.NONE=0]="NONE",Z[Z.SAMPLED=1]="SAMPLED"})(Rc=mV.TraceFlags||(mV.TraceFlags={}))});var cH=W((jV)=>{Object.defineProperty(jV,"__esModule",{value:!0});jV.INVALID_SPAN_CONTEXT=jV.INVALID_TRACEID=jV.INVALID_SPANID=void 0;var vc=KN();jV.INVALID_SPANID="0000000000000000";jV.INVALID_TRACEID="00000000000000000000000000000000";jV.INVALID_SPAN_CONTEXT={traceId:jV.INVALID_TRACEID,spanId:jV.INVALID_SPANID,traceFlags:vc.TraceFlags.NONE}});var dH=W((cV)=>{Object.defineProperty(cV,"__esModule",{value:!0});cV.NonRecordingSpan=void 0;var yc=cH();class bV{constructor(Z=yc.INVALID_SPAN_CONTEXT){this._spanContext=Z}spanContext(){return this._spanContext}setAttribute(Z,$){return this}setAttributes(Z){return this}addEvent(Z,$){return this}addLink(Z){return this}addLinks(Z){return this}setStatus(Z){return this}updateName(Z){return this}end(Z){}isRecording(){return!1}recordException(Z,$){}}cV.NonRecordingSpan=bV});var WN=W((lV)=>{Object.defineProperty(lV,"__esModule",{value:!0});lV.getSpanContext=lV.setSpanContext=lV.deleteSpan=lV.setSpan=lV.getActiveSpan=lV.getSpan=void 0;var mc=uQ(),jc=dH(),_c=pQ(),QN=(0,mc.createContextKey)("OpenTelemetry Context Key SPAN");function HN(Z){return Z.getValue(QN)||void 0}lV.getSpan=HN;function Sc(){return HN(_c.ContextAPI.getInstance().active())}lV.getActiveSpan=Sc;function uV(Z,$){return Z.setValue(QN,$)}lV.setSpan=uV;function gc(Z){return Z.deleteValue(QN)}lV.deleteSpan=gc;function bc(Z,$){return uV(Z,new jc.NonRecordingSpan($))}lV.setSpanContext=bc;function cc(Z){var $;return($=HN(Z))===null||$===void 0?void 0:$.spanContext()}lV.getSpanContext=cc});var uH=W((aV)=>{Object.defineProperty(aV,"__esModule",{value:!0});aV.wrapSpanContext=aV.isSpanContextValid=aV.isValidSpanId=aV.isValidTraceId=void 0;var iV=cH(),nc=dH(),rc=/^([0-9a-f]{32})$/i,ac=/^[0-9a-f]{16}$/i;function nV(Z){return rc.test(Z)&&Z!==iV.INVALID_TRACEID}aV.isValidTraceId=nV;function rV(Z){return ac.test(Z)&&Z!==iV.INVALID_SPANID}aV.isValidSpanId=rV;function sc(Z){return nV(Z.traceId)&&rV(Z.spanId)}aV.isSpanContextValid=sc;function tc(Z){return new nc.NonRecordingSpan(Z)}aV.wrapSpanContext=tc});var BN=W((eV)=>{Object.defineProperty(eV,"__esModule",{value:!0});eV.NoopTracer=void 0;var $d=pQ(),tV=WN(),qN=dH(),Jd=uH(),NN=$d.ContextAPI.getInstance();class oV{startSpan(Z,$,J=NN.active()){if(Boolean($===null||$===void 0?void 0:$.root))return new qN.NonRecordingSpan;let X=J&&(0,tV.getSpanContext)(J);if(Yd(X)&&(0,Jd.isSpanContextValid)(X))return new qN.NonRecordingSpan(X);else return new qN.NonRecordingSpan}startActiveSpan(Z,$,J,Y){let X,z,K;if(arguments.length<2)return;else if(arguments.length===2)K=$;else if(arguments.length===3)X=$,K=J;else X=$,z=J,K=Y;let H=z!==null&&z!==void 0?z:NN.active(),q=this.startSpan(Z,X,H),L=(0,tV.setSpan)(H,q);return NN.with(L,K,void 0,q)}}eV.NoopTracer=oV;function Yd(Z){return typeof Z==="object"&&typeof Z.spanId==="string"&&typeof Z.traceId==="string"&&typeof Z.traceFlags==="number"}});var FN=W((J4)=>{Object.defineProperty(J4,"__esModule",{value:!0});J4.ProxyTracer=void 0;var Xd=BN(),zd=new Xd.NoopTracer;class $4{constructor(Z,$,J,Y){this._provider=Z,this.name=$,this.version=J,this.options=Y}startSpan(Z,$,J){return this._getTracer().startSpan(Z,$,J)}startActiveSpan(Z,$,J,Y){let X=this._getTracer();return Reflect.apply(X.startActiveSpan,X,arguments)}_getTracer(){if(this._delegate)return this._delegate;let Z=this._provider.getDelegateTracer(this.name,this.version,this.options);if(!Z)return zd;return this._delegate=Z,this._delegate}}J4.ProxyTracer=$4});var Q4=W((z4)=>{Object.defineProperty(z4,"__esModule",{value:!0});z4.NoopTracerProvider=void 0;var Kd=BN();class X4{getTracer(Z,$,J){return new Kd.NoopTracer}}z4.NoopTracerProvider=X4});var GN=W((W4)=>{Object.defineProperty(W4,"__esModule",{value:!0});W4.ProxyTracerProvider=void 0;var Qd=FN(),Hd=Q4(),Wd=new Hd.NoopTracerProvider;class H4{getTracer(Z,$,J){var Y;return(Y=this.getDelegateTracer(Z,$,J))!==null&&Y!==void 0?Y:new Qd.ProxyTracer(this,Z,$,J)}getDelegate(){var Z;return(Z=this._delegate)!==null&&Z!==void 0?Z:Wd}setDelegate(Z){this._delegate=Z}getDelegateTracer(Z,$,J){var Y;return(Y=this._delegate)===null||Y===void 0?void 0:Y.getTracer(Z,$,J)}}W4.ProxyTracerProvider=H4});var B4=W((N4)=>{Object.defineProperty(N4,"__esModule",{value:!0});N4.SamplingDecision=void 0;var qd;(function(Z){Z[Z.NOT_RECORD=0]="NOT_RECORD",Z[Z.RECORD=1]="RECORD",Z[Z.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(qd=N4.SamplingDecision||(N4.SamplingDecision={}))});var G4=W((F4)=>{Object.defineProperty(F4,"__esModule",{value:!0});F4.SpanKind=void 0;var Nd;(function(Z){Z[Z.INTERNAL=0]="INTERNAL",Z[Z.SERVER=1]="SERVER",Z[Z.CLIENT=2]="CLIENT",Z[Z.PRODUCER=3]="PRODUCER",Z[Z.CONSUMER=4]="CONSUMER"})(Nd=F4.SpanKind||(F4.SpanKind={}))});var D4=W((L4)=>{Object.defineProperty(L4,"__esModule",{value:!0});L4.SpanStatusCode=void 0;var Bd;(function(Z){Z[Z.UNSET=0]="UNSET",Z[Z.OK=1]="OK",Z[Z.ERROR=2]="ERROR"})(Bd=L4.SpanStatusCode||(L4.SpanStatusCode={}))});var O4=W((w4)=>{Object.defineProperty(w4,"__esModule",{value:!0});w4.validateValue=w4.validateKey=void 0;var UN="[_0-9a-z-*/]",Fd=`[a-z]${UN}{0,255}`,Gd=`[a-z0-9]${UN}{0,240}@[a-z]${UN}{0,13}`,Ld=new RegExp(`^(?:${Fd}|${Gd})$`),Dd=/^[ -~]{0,255}[!-~]$/,wd=/,|=/;function Ud(Z){return Ld.test(Z)}w4.validateKey=Ud;function Od(Z){return Dd.test(Z)&&!wd.test(Z)}w4.validateValue=Od});var A4=W((f4)=>{Object.defineProperty(f4,"__esModule",{value:!0});f4.TraceStateImpl=void 0;var I4=O4(),k4=32,kd=512,P4=",",E4="=";class ON{constructor(Z){if(this._internalState=new Map,Z)this._parse(Z)}set(Z,$){let J=this._clone();if(J._internalState.has(Z))J._internalState.delete(Z);return J._internalState.set(Z,$),J}unset(Z){let $=this._clone();return $._internalState.delete(Z),$}get(Z){return this._internalState.get(Z)}serialize(){return this._keys().reduce((Z,$)=>{return Z.push($+E4+this.get($)),Z},[]).join(P4)}_parse(Z){if(Z.length>kd)return;if(this._internalState=Z.split(P4).reverse().reduce(($,J)=>{let Y=J.trim(),X=Y.indexOf(E4);if(X!==-1){let z=Y.slice(0,X),K=Y.slice(X+1,J.length);if((0,I4.validateKey)(z)&&(0,I4.validateValue)(K))$.set(z,K)}return $},new Map),this._internalState.size>k4)this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,k4))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let Z=new ON;return Z._internalState=new Map(this._internalState),Z}}f4.TraceStateImpl=ON});var T4=W((M4)=>{Object.defineProperty(M4,"__esModule",{value:!0});M4.createTraceState=void 0;var Pd=A4();function Ed(Z){return new Pd.TraceStateImpl(Z)}M4.createTraceState=Ed});var R4=W((C4)=>{Object.defineProperty(C4,"__esModule",{value:!0});C4.context=void 0;var fd=pQ();C4.context=fd.ContextAPI.getInstance()});var m4=W((v4)=>{Object.defineProperty(v4,"__esModule",{value:!0});v4.diag=void 0;var Vd=Q9();v4.diag=Vd.DiagAPI.instance()});var S4=W((j4)=>{Object.defineProperty(j4,"__esModule",{value:!0});j4.NOOP_METER_PROVIDER=j4.NoopMeterProvider=void 0;var Ad=eq();class IN{getMeter(Z,$,J){return Ad.NOOP_METER}}j4.NoopMeterProvider=IN;j4.NOOP_METER_PROVIDER=new IN});var d4=W((b4)=>{Object.defineProperty(b4,"__esModule",{value:!0});b4.MetricsAPI=void 0;var xd=S4(),kN=K9(),g4=Q9(),PN="metrics";class EN{constructor(){}static getInstance(){if(!this._instance)this._instance=new EN;return this._instance}setGlobalMeterProvider(Z){return(0,kN.registerGlobal)(PN,Z,g4.DiagAPI.instance())}getMeterProvider(){return(0,kN.getGlobal)(PN)||xd.NOOP_METER_PROVIDER}getMeter(Z,$,J){return this.getMeterProvider().getMeter(Z,$,J)}disable(){(0,kN.unregisterGlobal)(PN,g4.DiagAPI.instance())}}b4.MetricsAPI=EN});var p4=W((u4)=>{Object.defineProperty(u4,"__esModule",{value:!0});u4.metrics=void 0;var Td=d4();u4.metrics=Td.MetricsAPI.getInstance()});var a4=W((n4)=>{Object.defineProperty(n4,"__esModule",{value:!0});n4.NoopTextMapPropagator=void 0;class i4{inject(Z,$){}extract(Z,$){return Z}fields(){return[]}}n4.NoopTextMapPropagator=i4});var e4=W((t4)=>{Object.defineProperty(t4,"__esModule",{value:!0});t4.deleteBaggage=t4.setBaggage=t4.getActiveBaggage=t4.getBaggage=void 0;var Cd=pQ(),hd=uQ(),fN=(0,hd.createContextKey)("OpenTelemetry Baggage Key");function s4(Z){return Z.getValue(fN)||void 0}t4.getBaggage=s4;function Rd(){return s4(Cd.ContextAPI.getInstance().active())}t4.getActiveBaggage=Rd;function vd(Z,$){return Z.setValue(fN,$)}t4.setBaggage=vd;function yd(Z){return Z.deleteValue(fN)}t4.deleteBaggage=yd});var XA=W((JA)=>{Object.defineProperty(JA,"__esModule",{value:!0});JA.PropagationAPI=void 0;var VN=K9(),Sd=a4(),ZA=$N(),lH=e4(),gd=uq(),$A=Q9(),AN="propagation",bd=new Sd.NoopTextMapPropagator;class MN{constructor(){this.createBaggage=gd.createBaggage,this.getBaggage=lH.getBaggage,this.getActiveBaggage=lH.getActiveBaggage,this.setBaggage=lH.setBaggage,this.deleteBaggage=lH.deleteBaggage}static getInstance(){if(!this._instance)this._instance=new MN;return this._instance}setGlobalPropagator(Z){return(0,VN.registerGlobal)(AN,Z,$A.DiagAPI.instance())}inject(Z,$,J=ZA.defaultTextMapSetter){return this._getGlobalPropagator().inject(Z,$,J)}extract(Z,$,J=ZA.defaultTextMapGetter){return this._getGlobalPropagator().extract(Z,$,J)}fields(){return this._getGlobalPropagator().fields()}disable(){(0,VN.unregisterGlobal)(AN,$A.DiagAPI.instance())}_getGlobalPropagator(){return(0,VN.getGlobal)(AN)||bd}}JA.PropagationAPI=MN});var QA=W((zA)=>{Object.defineProperty(zA,"__esModule",{value:!0});zA.propagation=void 0;var cd=XA();zA.propagation=cd.PropagationAPI.getInstance()});var FA=W((NA)=>{Object.defineProperty(NA,"__esModule",{value:!0});NA.TraceAPI=void 0;var xN=K9(),HA=GN(),WA=uH(),WQ=WN(),qA=Q9(),TN="trace";class CN{constructor(){this._proxyTracerProvider=new HA.ProxyTracerProvider,this.wrapSpanContext=WA.wrapSpanContext,this.isSpanContextValid=WA.isSpanContextValid,this.deleteSpan=WQ.deleteSpan,this.getSpan=WQ.getSpan,this.getActiveSpan=WQ.getActiveSpan,this.getSpanContext=WQ.getSpanContext,this.setSpan=WQ.setSpan,this.setSpanContext=WQ.setSpanContext}static getInstance(){if(!this._instance)this._instance=new CN;return this._instance}setGlobalTracerProvider(Z){let $=(0,xN.registerGlobal)(TN,this._proxyTracerProvider,qA.DiagAPI.instance());if($)this._proxyTracerProvider.setDelegate(Z);return $}getTracerProvider(){return(0,xN.getGlobal)(TN)||this._proxyTracerProvider}getTracer(Z,$){return this.getTracerProvider().getTracer(Z,$)}disable(){(0,xN.unregisterGlobal)(TN,qA.DiagAPI.instance()),this._proxyTracerProvider=new HA.ProxyTracerProvider}}NA.TraceAPI=CN});var DA=W((GA)=>{Object.defineProperty(GA,"__esModule",{value:!0});GA.trace=void 0;var dd=FA();GA.trace=dd.TraceAPI.getInstance()});var fA=W((S)=>{Object.defineProperty(S,"__esModule",{value:!0});S.trace=S.propagation=S.metrics=S.diag=S.context=S.INVALID_SPAN_CONTEXT=S.INVALID_TRACEID=S.INVALID_SPANID=S.isValidSpanId=S.isValidTraceId=S.isSpanContextValid=S.createTraceState=S.TraceFlags=S.SpanStatusCode=S.SpanKind=S.SamplingDecision=S.ProxyTracerProvider=S.ProxyTracer=S.defaultTextMapSetter=S.defaultTextMapGetter=S.ValueType=S.createNoopMeter=S.DiagLogLevel=S.DiagConsoleLogger=S.ROOT_CONTEXT=S.createContextKey=S.baggageEntryMetadataFromString=void 0;var ud=uq();Object.defineProperty(S,"baggageEntryMetadataFromString",{enumerable:!0,get:function(){return ud.baggageEntryMetadataFromString}});var wA=uQ();Object.defineProperty(S,"createContextKey",{enumerable:!0,get:function(){return wA.createContextKey}});Object.defineProperty(S,"ROOT_CONTEXT",{enumerable:!0,get:function(){return wA.ROOT_CONTEXT}});var ld=FV();Object.defineProperty(S,"DiagConsoleLogger",{enumerable:!0,get:function(){return ld.DiagConsoleLogger}});var pd=SH();Object.defineProperty(S,"DiagLogLevel",{enumerable:!0,get:function(){return pd.DiagLogLevel}});var id=eq();Object.defineProperty(S,"createNoopMeter",{enumerable:!0,get:function(){return id.createNoopMeter}});var nd=VV();Object.defineProperty(S,"ValueType",{enumerable:!0,get:function(){return nd.ValueType}});var UA=$N();Object.defineProperty(S,"defaultTextMapGetter",{enumerable:!0,get:function(){return UA.defaultTextMapGetter}});Object.defineProperty(S,"defaultTextMapSetter",{enumerable:!0,get:function(){return UA.defaultTextMapSetter}});var rd=FN();Object.defineProperty(S,"ProxyTracer",{enumerable:!0,get:function(){return rd.ProxyTracer}});var ad=GN();Object.defineProperty(S,"ProxyTracerProvider",{enumerable:!0,get:function(){return ad.ProxyTracerProvider}});var sd=B4();Object.defineProperty(S,"SamplingDecision",{enumerable:!0,get:function(){return sd.SamplingDecision}});var td=G4();Object.defineProperty(S,"SpanKind",{enumerable:!0,get:function(){return td.SpanKind}});var od=D4();Object.defineProperty(S,"SpanStatusCode",{enumerable:!0,get:function(){return od.SpanStatusCode}});var ed=KN();Object.defineProperty(S,"TraceFlags",{enumerable:!0,get:function(){return ed.TraceFlags}});var Zu=T4();Object.defineProperty(S,"createTraceState",{enumerable:!0,get:function(){return Zu.createTraceState}});var hN=uH();Object.defineProperty(S,"isSpanContextValid",{enumerable:!0,get:function(){return hN.isSpanContextValid}});Object.defineProperty(S,"isValidTraceId",{enumerable:!0,get:function(){return hN.isValidTraceId}});Object.defineProperty(S,"isValidSpanId",{enumerable:!0,get:function(){return hN.isValidSpanId}});var RN=cH();Object.defineProperty(S,"INVALID_SPANID",{enumerable:!0,get:function(){return RN.INVALID_SPANID}});Object.defineProperty(S,"INVALID_TRACEID",{enumerable:!0,get:function(){return RN.INVALID_TRACEID}});Object.defineProperty(S,"INVALID_SPAN_CONTEXT",{enumerable:!0,get:function(){return RN.INVALID_SPAN_CONTEXT}});var OA=R4();Object.defineProperty(S,"context",{enumerable:!0,get:function(){return OA.context}});var IA=m4();Object.defineProperty(S,"diag",{enumerable:!0,get:function(){return IA.diag}});var kA=p4();Object.defineProperty(S,"metrics",{enumerable:!0,get:function(){return kA.metrics}});var PA=QA();Object.defineProperty(S,"propagation",{enumerable:!0,get:function(){return PA.propagation}});var EA=DA();Object.defineProperty(S,"trace",{enumerable:!0,get:function(){return EA.trace}});S.default={context:OA.context,diag:IA.diag,metrics:kA.metrics,propagation:PA.propagation,trace:EA.trace}});function MA(Z){if(iQ+Z>pH.length)crypto.getRandomValues(pH),iQ=0;let $="",J=iQ+Z;for(let Y=iQ;Y<J;Y++)$+=zu[pH[Y]];return iQ=J,$}function AA(Z,$){if(Z===void 0)return $;if(typeof Z==="number")return Z;if(Z instanceof Date)return Z.getTime();let[J,Y]=Z;return J*1000+Y/1e6}class xA{_traceId;_spanId;_parentSpanId;_name;_startTime;_endTime;_attributes={};_status={code:P0.SpanStatusCode.UNSET};_kind;_ended=!1;constructor(Z,$,J,Y){if(this._name=Z,this._traceId=J,this._spanId=MA(8),this._parentSpanId=Y,this._kind=$.kind||P0.SpanKind.INTERNAL,this._startTime=AA($.startTime,Date.now()),$.attributes)for(let[X,z]of Object.entries($.attributes))this._attributes[X]=String(z);try{nQ?.spanStarted({traceId:this._traceId,spanId:this._spanId,parentSpanId:this._parentSpanId,name:this._name,startTime:this._startTime,attributes:{...this._attributes},flags:1,kind:this._kind,links:[]})}catch{}}notifySpanUpdated(){try{nQ?.spanUpdated({traceId:this._traceId,spanId:this._spanId,parentSpanId:this._parentSpanId,name:this._name,startTime:this._startTime,attributes:{...this._attributes},flags:1,kind:this._kind,links:[]})}catch{}}spanContext(){return{traceId:this._traceId,spanId:this._spanId,traceFlags:1,isRemote:!1}}setAttribute(Z,$){if(!this._ended)this._attributes[Z]=String($),this.notifySpanUpdated();return this}setAttributes(Z){if(!this._ended){for(let[$,J]of Object.entries(Z))this._attributes[$]=String(J);this.notifySpanUpdated()}return this}addEvent(){return this}addLink(){return this}addLinks(){return this}setStatus(Z){if(!this._ended)this._status=Z;return this}updateName(Z){if(!this._ended)this._name=Z,this.notifySpanUpdated();return this}end(Z){if(this._ended)return;this._ended=!0,this._endTime=AA(Z,Date.now());let $=this._endTime,J={traceId:this._traceId,spanId:this._spanId,parentSpanId:this._parentSpanId,name:this._name,startTime:this._startTime,endTime:$,attributes:{...this._attributes},error:this._status.code===P0.SpanStatusCode.ERROR,flags:1,kind:this._kind,statusCode:this._status.code,statusMessage:this._status.message,links:[]};try{nQ?.spanEnded(J)}catch{}if(VA)try{VA(J)}catch(Y){console.error("[browser-bridge] Error in collector callback",Y)}}isRecording(){return!this._ended}recordException(){return this}}class TA{startSpan(Z,$,J){let Y=J||P0.context.active(),X=P0.trace.getSpanContext(Y),z,K,H;if(X?.traceId)z=X.traceId,K=X.spanId,H=(X.traceFlags&1)===1||nQ!==void 0;else H=nQ!==void 0||Xu?.(Z)||Math.random()<Yu,z=MA(16);if(!H)return P0.trace.wrapSpanContext({traceId:z,spanId:"",traceFlags:0});return new xA(Z,$||{},z,K)}startActiveSpan(Z,...$){let J={},Y,X;if($.length===1)X=$[0];else if($.length===2)J=$[0],X=$[1];else J=$[0],Y=$[1],X=$[2];let z=this.startSpan(Z,J,Y),K=P0.trace.setSpan(Y||P0.context.active(),z);return P0.context.with(K,()=>{try{let H=X(z);if(H&&typeof H.then==="function")return H.then((q)=>{return z.end(),q},(q)=>{throw z.setStatus({code:P0.SpanStatusCode.ERROR,message:q?.message}),z.end(),q});return z.end(),H}catch(H){throw z.setStatus({code:P0.SpanStatusCode.ERROR,message:H?.message}),z.end(),H}})}}class Ku{tracer=new TA;getTracer(){return this.tracer}}var P0,VA,nQ,Yu=0.01,Xu,zu,pH,iQ;var CA=O(()=>{P0=wB(fA(),1),zu=Array.from({length:256},(Z,$)=>$.toString(16).padStart(2,"0")),pH=new Uint8Array(1024),iQ=pH.length});function d0(Z,$){return{symbol:Z,defaultValue:$}}function iH(Z){let $=new AbortController;if(Z.aborted)return $.abort(Z.reason),{signal:$.signal,abort(Y){$.abort(Y)},unlink(){}};let J=()=>$.abort(Z.reason);return Z.addEventListener("abort",J,{once:!0}),{signal:$.signal,abort(Y){Z.removeEventListener("abort",J),$.abort(Y)},unlink(){Z.removeEventListener("abort",J)}}}class g8{values;signal;parent;name;constructor(Z,$,J,Y){if(this.parent=Z,this.values=J||new Map,this.name=Y,$)this.signal=$;else if(Z)this.signal=Z.signal;else this.signal=new AbortController().signal}get canceled(){return this.signal.aborted}get reason(){return this.signal.reason}get(Z){if(this.values.has(Z.symbol))return this.values.get(Z.symbol);if(this.parent)return this.parent.get(Z);return Z.defaultValue}with(Z,$){let J=new Map(this.values);return J.set(Z.symbol,$),new g8(this,void 0,J)}withCancel(){let Z=iH(this.signal);return[new g8(this,Z.signal),(J)=>Z.abort(J)]}withUnlinkableCancel(){let Z=iH(this.signal);return[new g8(this,Z.signal),(J)=>Z.abort(J),()=>Z.unlink()]}withTimeout(Z){let $=iH(this.signal),J=new g8(this,$.signal),Y=setTimeout(()=>{$.abort(Error("context deadline exceeded"))},Z);return $.signal.addEventListener("abort",()=>{clearTimeout(Y)},{once:!0}),J}withDeadline(Z){let $=Z.getTime()-Date.now();if($<=0){let J=iH(this.signal);return J.abort(Error("context deadline exceeded")),new g8(this,J.signal)}return this.withTimeout($)}withTimeoutAndCancel(Z){let[$,J]=this.withCancel();return[$.withTimeout(Z),J]}withName(Z){return new g8(this,void 0,void 0,Z)}withDetached(){return new g8(this,new AbortController().signal)}getParent(){return this.parent}getPath(){let Z=[],$=this;while($){if($.name)Z.unshift($.name);$=$.getParent()}return Z}}function b8(){return new g8}function Bu(Z){if(typeof Z==="boolean")return Z;if(typeof process>"u")return!1;let $=process.env??{};if("NO_COLOR"in $)return!1;if($.TERM==="dumb")return!1;let J=$.FORCE_COLOR;if(J==="1"||J==="true")return!0;if(J==="0")return!1;return process.stdout?.isTTY??!1}function Fu(Z){let J=(M)=>(V)=>Z?`\x1B[${M.join(";")}m${V}\x1B[0m`:V,Y=J([2]),X=J([90]),z=J([31]),K=J([32]),H=J([33]),q=J([34]),L=J([35]),w=J([36]),E=J([1]),P=J([1,31]);return{dim:Y,gray:X,red:z,green:K,yellow:H,blue:q,magenta:L,cyan:w,bold:E,level:(M,V)=>{switch(M){case"debug":return L(V);case"info":return q(V);case"warn":return H(V);case"error":return P(V);default:return M}}}}function Gu(Z){return{indent:" ".repeat(Z.indent??Qu),maxDepth:Z.maxDepth??Hu,maxEntries:Z.maxEntries??Wu,maxArrayLength:Z.maxArrayLength??qu,maxStringLength:Z.maxStringLength??Nu,includeTimestamp:Z.includeTimestamp??!0,includeContextPath:Z.includeContextPath??!0,inlineSerializer:Z.inlineSerializer}}function Lu(Z){return Z.toISOString().slice(11,23)}function hA(Z){return typeof Z==="object"&&Z!==null&&"getPath"in Z&&typeof Z.getPath==="function"}function vN(Z){if(typeof Z!=="object"||Z===null)return!1;return"message"in Z||"stack"in Z||"name"in Z||"cause"in Z}function Du(Z){return typeof Z==="object"&&Z!==null&&"kind"in Z&&Z.kind==="summary"&&"summary"in Z&&typeof Z.summary==="string"}function wu(Z,$){if(Z.length<=$)return Z;return`${Z.slice(0,$)}...`}function Uu(Z,$,J,Y){if(!$.inlineSerializer)return Z;try{let X=$.inlineSerializer(Z,{path:J,depth:Y});return X===void 0?Z:X}catch{return Z}}function w6(Z,$,J,Y,X,z){let K=Uu(Z,$,z,Y);if(Du(K))return J.dim(`<${K.summary}>`);if(Z=K,Z===null)return J.gray("null");if(Z===void 0)return J.gray("undefined");if(typeof Z==="string"){let H=wu(Z,$.maxStringLength);return J.green(JSON.stringify(H))}if(typeof Z==="number")return J.yellow(String(Z));if(typeof Z==="boolean")return J.magenta(String(Z));if(typeof Z==="bigint")return J.yellow(`${Z}n`);if(typeof Z==="symbol")return J.cyan(Z.toString());if(typeof Z==="function"){let H=Z.name?` ${Z.name}`:"";return J.dim(`[Function${H}]`)}if(Z instanceof Date){let H=Number.isNaN(Z.getTime())?"Invalid Date":Z.toISOString();return J.green(H)}if(Z instanceof RegExp)return J.cyan(Z.toString());if(vN(Z))return vA(Z,$,J,Y,X,z);if(Array.isArray(Z))return RA(Z,$,J,Y,X,z);if(typeof ArrayBuffer<"u"&&Z instanceof ArrayBuffer)return J.dim(`ArrayBuffer(${Z.byteLength})`);if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView==="function"&&ArrayBuffer.isView(Z)){let H=Z,q=H.constructor?.name??"TypedArray";return J.dim(`${q}(${H.byteLength})`)}if(Z instanceof Map)return Ou(Z,$,J,Y,X,z);if(Z instanceof Set)return RA(Array.from(Z.values()),$,J,Y,X,z);return typeof Z==="object"?Iu(Z,$,J,Y,X,z):J.dim(`[${typeof Z}]`)}function vA(Z,$,J,Y,X,z){if(X.has(Z))return J.dim("[Circular]");X.add(Z);let K=typeof Z.name==="string"?Z.name:"Error",H=typeof Z.message==="string"?Z.message:"",q=H?`${K}: ${H}`:K,L=J.red(q);if("cause"in Z&&Z.cause!==void 0){let w=w6(Z.cause,$,J,Y+1,X,z.concat("cause"));L=`${L} ${J.dim("cause=")}${w}`}return X.delete(Z),L}function RA(Z,$,J,Y,X,z){if(Y>=$.maxDepth)return J.dim(`[Array(${Z.length})]`);if(X.has(Z))return J.dim("[Circular]");if(X.add(Z),Z.length===0){let w=J.dim("[]");return X.delete(Z),w}let K=Math.min(Z.length,$.maxArrayLength),H=Z.slice(0,K).map((w,E)=>w6(w,$,J,Y+1,X,z.concat(E)));if(Z.length>K)H.push(J.dim(`... ${Z.length-K} more`));let q=J.dim(", "),L=`${J.dim("[")}${H.join(q)}${J.dim("]")}`;return X.delete(Z),L}function Ou(Z,$,J,Y,X,z){if(Y>=$.maxDepth)return J.dim(`Map(${Z.size})`);if(X.has(Z))return J.dim("[Circular]");X.add(Z);let K=Array.from(Z.entries()),H=Math.min(K.length,$.maxEntries),q=K.slice(0,H).map(([E,P])=>{let M=w6(E,$,J,Y+1,X,z.concat("<key>")),V=w6(P,$,J,Y+1,X,z.concat(String(E)));return`${M} ${J.dim("=>")} ${V}`});if(K.length>H)q.push(J.dim(`... ${K.length-H} more`));let L=J.dim(", "),w=`${J.dim("Map{")}${q.join(L)}${J.dim("}")}`;return X.delete(Z),w}function Iu(Z,$,J,Y,X,z){if(Y>=$.maxDepth){let E=Z?.constructor?.name??"Object";return J.dim(`[${E}]`)}if(X.has(Z))return J.dim("[Circular]");X.add(Z);let K=Object.entries(Z);if(K.length===0){let E=J.dim("{}");return X.delete(Z),E}let H=Math.min(K.length,$.maxEntries),q=K.slice(0,H).map(([E,P])=>{let M=w6(P,$,J,Y+1,X,z.concat(E));return`${J.cyan(E)}: ${M}`});if(K.length>H)q.push(J.dim(`... ${K.length-H} more`));let L=J.dim(", "),w=`${J.dim("{")}${q.join(L)}${J.dim("}")}`;return X.delete(Z),w}function ku(Z={}){let $=Gu(Z),J=Fu(Bu(Z.useColors)),Y=Z.console??console;return{log:(X,z)=>{let K=[];if($.includeTimestamp)K.push(J.dim(Lu(z.timestamp)));let H=z.level.toUpperCase().padEnd(5);K.push(J.level(z.level,H));let q=z.level==="error"?J.bold(z.message):z.message;if(K.push(q),$.includeContextPath&&hA(z.context)){let P=z.context.getPath();if(P.length>0)K.push(J.dim(`ctx=${P.join("/")}`))}let L=new WeakSet;if(!hA(z.context)&&z.context&&Object.keys(z.context).length>0){let P=w6(z.context,$,J,0,L,["context"]);K.push(`${J.dim("context=")}${P}`)}if(z.metadata&&Object.keys(z.metadata).length>0){let P=w6(z.metadata,$,J,0,L,["metadata"]);K.push(`${J.dim("meta=")}${P}`)}let w=[K.join(" ")];if(z.error!==void 0){let P=vN(z.error)?vA(z.error,$,J,0,L,["error"]):w6(z.error,$,J,0,L,["error"]);if(w[0]=`${w[0]} ${J.dim("error=")}${P}`,vN(z.error)&&typeof z.error.stack==="string"){let M=z.error.stack.split(`
|
|
5
|
+
`).slice(1);for(let V of M){let y=V.trim();if(y)w.push(`${$.indent}${J.dim(y)}`)}}}let E=w.join(`
|
|
6
|
+
`);switch(z.level){case"debug":case"info":Y.log(E);break;case"warn":Y.warn(E);break;case"error":Y.error(E);break;default:{let P=z.level;throw Error(`Unhandled log level: ${String(P)}`)}}}}}function Vu(Z){return Z.get(fu)}function u0(Z){function $(J,Y){let X=new Date;Vu(J).log(J,{...Y,timestamp:X,logger:Z})}return{debug:(J,Y,X)=>{$(J,{level:"debug",message:Y,context:J,metadata:X})},info:(J,Y,X)=>{$(J,{level:"info",message:Y,context:J,metadata:X})},warn:(J,Y,X)=>{$(J,{level:"warn",message:Y,context:J,metadata:X})},error:(J,Y,X,z)=>{$(J,{level:"error",message:Y,context:J,error:X,metadata:z})}}}var Qu=2,Hu=6,Wu=50,qu=40,Nu=200,Pu,Eu,fu;var yA=O(()=>{l0();Pu=ku(),Eu={log:(Z,$)=>Pu.log(Z,$)},fu=d0(Symbol("loggerBackend"),Eu)});var pZ0,iZ0,nZ0,rZ0,aZ0;var mA=O(()=>{pZ0=d0(Symbol("otel.span"),void 0),iZ0=d0(Symbol("otel.root_span"),void 0),nZ0=d0(Symbol("otel.root_start_ms"),void 0),rZ0=d0(Symbol("otel.suppress_child_spans"),!1),aZ0=d0(Symbol("otel.inheritable_span_attributes"),{})});var l0=O(()=>{CA();yA();mA()});function nH(Z){return Z.get(Mu)}function P8(Z,$){let J={name:Z,type:"counter",description:$?.description,labelNames:$?.labelNames};return{increment:(Y,X,z)=>{nH(Y).increment(Y,J,X??1,z)},record:(Y,X,z)=>{nH(Y).record(Y,J,X,z)}}}function g(Z,$){let J={name:Z,type:"histogram",description:$?.description,labelNames:$?.labelNames};return{histogram:(Y,X,z)=>{nH(Y).histogram(Y,J,X,z)},record:(Y,X,z)=>{nH(Y).record(Y,J,X,z)}}}var Au,Mu;var U6=O(()=>{l0();Au={record:()=>{},increment:()=>{},gauge:()=>{},histogram:()=>{}},Mu=d0(Symbol("metricsBackend"),Au)});class yN{serialize(Z){return Tu.encode(Z)}deserialize(Z){return xu.decode(Z)}getBlobType(){return{kind:"string"}}}class N8{proto;constructor(Z){this.proto=Z}serialize(Z){return Z.toBinary()}deserialize(Z){return this.proto.fromBinary(Z)}getBlobType(){return{kind:"proto",typeName:this.proto.typeName}}}function Q0(Z){if(typeof Buffer<"u")return Buffer.from(Z).toString("hex");let $="";for(let J=0;J<Z.length;J++)$+=Cu[Z[J]];return $}function vu(Z){if(!hu.test(Z))return;try{let $=new Uint8Array(Z.length/2);if(Buffer.from($.buffer,$.byteOffset,$.byteLength).write(Z,"hex")===$.length)return $}catch{}return}function p0(Z){let $=Z.trim().toLowerCase();if($.length%2!==0)throw Error("Invalid hex string length");if($.length>=Ru&&typeof Buffer<"u"){let Y=vu($);if(Y!==void 0)return Y}let J=new Uint8Array($.length/2);for(let Y=0;Y<$.length;Y+=2)J[Y/2]=parseInt($.slice(Y,Y+2),16);return J}var xu,Tu,rH,Cu,hu,Ru=64;var H9=O(()=>{xu=new TextDecoder,Tu=new TextEncoder;rH=new yN;Cu=Array.from({length:256},(Z,$)=>$.toString(16).padStart(2,"0"));hu=/^[0-9a-f]*$/});function aH(Z){let $=Z.buffer;if($ instanceof ArrayBuffer)return new Uint8Array($,Z.byteOffset,Z.byteLength);return new Uint8Array(Z)}async function qQ(Z){let $=await crypto.subtle.digest("SHA-256",aH(Z));return new Uint8Array($)}var N$0,B$0;var W9=O(()=>{U6();H9();N$0=g("agent_kv.in_memory.get_blob.duration_ms",{description:"Duration of InMemoryBlobStore getBlob operations in milliseconds"}),B$0=g("agent_kv.in_memory.set_blob.duration_ms",{description:"Duration of InMemoryBlobStore setBlob operations in milliseconds"})});function _A(Z,$){yu.warn(Z,"Subagent state ref blob not found; restoring without its transcript",$),mu.increment(Z,1,{reader:$.reader,fallback:$.fallback})}async function mN(Z,$,J){let Y={...$.subagentStates??{}},X=Object.entries($.subagentStateRefs??{});if(X.length===0)return Y;let z=await Sq(X,async([H,q])=>{let L=await J.getBlob(Z,q);if(L===void 0)return{kind:"missing",subagentId:H,blobIdHex:Q0(q)};try{return{kind:"loaded",subagentId:H,state:y8.fromBinary(L)}}catch(w){return{kind:"failed",error:w}}},{max:jA}),K=z.find((H)=>H.kind==="failed");if(K!==void 0&&K.kind==="failed")throw K.error;for(let H of z)if(H.kind==="loaded")Y[H.subagentId]=H.state;else if(H.kind==="missing"){let q=Y[H.subagentId]!==void 0;_A(Z,{reader:"resolve",fallback:q?"inline":"dropped",subagentId:H.subagentId,blobIdHex:H.blobIdHex})}return Y}var jA=8,yu,mu;var jN=O(()=>{l0();U6();MQ();zQ();H9();yu=u0("@anysphere/agent-kv:subagent-states"),mu=P8("agent_kv.subagent_state_ref.missing_blob",{description:"Subagent state refs whose blob was missing, counted per read until a checkpoint rewrites the ref. fallback=inline kept the entry saved beside the ref (usually a transcript-free summary), dropped omitted the subagent, superseded kept a newer in-memory state.",labelNames:["reader","fallback"]})});import*as d from"zod/v4";function _u(){let Z=new Uint8Array(SA);return crypto.getRandomValues(Z),Q0(Z)}function gA(Z){return typeof Z==="string"&&Z.length===SA*2&&ju.test(Z)}function Su(){if(_N===null)_N=d.object({agentId:d.string(),latestRootBlobId:d.custom((Z)=>Z instanceof Uint8Array,{error:"Expected Uint8Array"}),name:d.string(),createdAt:d.number(),mode:d.enum(SN),isRunEverything:d.boolean(),approvalMode:d.enum(gN).optional(),lastUsedModel:d.string().optional(),lastDebugServerPort:d.number().int().positive().optional(),currentPlanUri:d.string().optional(),subagentInfo:d.object({parentAgentId:d.string().min(1),rootParentAgentId:d.string().min(1),toolCallId:d.string().min(1),typeName:d.string().min(1)}).optional(),blobEncryptionKey:d.string().optional()});return _N}function bu(Z){return gu.has(Z)}function du(Z){return cu.has(Z)}function uu(Z){return typeof Z==="object"&&Z!==null}function sH(Z,$){let J=uu(Z)&&$ in Z?Z[$]:void 0;return typeof J==="string"&&J.length>0?J:void 0}function lu(Z){if(!Z||typeof Z!=="object")return;let $=sH(Z,"parentAgentId"),J=sH(Z,"rootParentAgentId"),Y=sH(Z,"toolCallId"),X=sH(Z,"typeName");if($===void 0||J===void 0||Y===void 0||X===void 0)return;return{parentAgentId:$,rootParentAgentId:J,toolCallId:Y,typeName:X}}class tH{serialize(Z){let $=Q0(Z.latestRootBlobId);return rH.serialize(JSON.stringify({...Z,latestRootBlobId:$}))}deserialize(Z){let $=JSON.parse(rH.deserialize(Z)),J=rQ($.agentId),Y=typeof $.latestRootBlobId==="string"?p0($.latestRootBlobId):J.latestRootBlobId,X=$.isRunEverything===!0,z=$.mode;if(z==="auto-run")z="default",X=!0;let K=typeof z==="string"&&bu(z)?z:"default",H=$.approvalMode,q=typeof H==="string"&&du(H)?H:void 0,L=lu($.subagentInfo),w=gA($.blobEncryptionKey)?$.blobEncryptionKey:J.blobEncryptionKey;return Su().parse({...J,...$,mode:K,isRunEverything:X,approvalMode:q,latestRootBlobId:Y,subagentInfo:L,blobEncryptionKey:w})}getBlobType(){return{kind:"json"}}}async function cA(Z,$,J){let Y=new N6,X=[],z=$.turns;for(let H of z){let q=await J.getBlob(Z,H);if(!q)continue;let L=bA.deserialize(q),w;switch(L.turn.case){case"agentConversationTurn":{let E=L.turn.value,P=await J.getBlob(Z,E.userMessage);if(!P)continue;let M=iu.deserialize(P),V=[];for(let Y0 of E.steps){let a=await J.getBlob(Z,Y0);if(a){let nM=nu.deserialize(a);V.push(nM)}}let y=new H6({userMessage:M,steps:V});w=new v8({turn:{case:"agentConversationTurn",value:y}});break}case"shellConversationTurn":{let E=L.turn.value,P=await J.getBlob(Z,E.shellCommand);if(!P)continue;let M=au.deserialize(P),V=await J.getBlob(Z,E.shellOutput);if(!V)continue;let y=su.deserialize(V),Y0=new W6({shellCommand:M,shellOutput:y});w=new v8({turn:{case:"shellConversationTurn",value:Y0}});break}}if(!w)continue;X.push(w)}Y.turns=X;let K=[];for(let H of $.todos){let q=await J.getBlob(Z,H);if(q){let L=pu.deserialize(q);K.push(L)}}if(Y.todos=K,$.summary){let H=await J.getBlob(Z,$.summary);if(H){let q=ru.deserialize(H);Y.summary=q}}return Y}class aQ{blobStore;metadataStore;conversationStateStructure;serde=new N8(x0);fixedRootBlobId;constructor(Z,$,J={}){this.blobStore=Z;this.metadataStore=$;this.conversationStateStructure=new x0,this.fixedRootBlobId=J.fixedRootBlobId}subscribeToMetadata(Z,$){return this.metadataStore.subscribe(Z,()=>{$(this.metadataStore.get(Z))})}setMetadata(Z,$){this.metadataStore.set(Z,$)}getMetadata(Z){return this.metadataStore.get(Z)}getId(){return this.getMetadata("agentId")}getBlobStore(){return this.blobStore}getConversationStateStructure(){return this.conversationStateStructure}async getLastRequestIdFromConversation(Z){let $=this.conversationStateStructure.turns;if($.length===0)return null;for(let J=$.length-1;J>=0;J--){let Y=$[J],X=await this.blobStore.getBlob(Z,Y);if(!X)continue;let z=bA.deserialize(X);if(z.turn.case==="agentConversationTurn")return z.turn.value.requestId??null}return null}async getFullConversation(Z){return this.deserializeConversationStateStructure(Z,this.conversationStateStructure)}async deserializeConversationStateStructure(Z,$){return cA(Z,$,this.blobStore)}async getFullConversationWithSubagents(Z){let $=this.conversationStateStructure,J=await this.deserializeConversationStateStructure(Z,$),Y={},X=await mN(Z,$,this.blobStore);for(let[z,K]of Object.entries(X))if(K.conversationState){let H=await this.deserializeConversationStateStructure(Z,K.conversationState);Y[z]={conversationState:H,createdTimestampMs:K.createdTimestampMs,lastUsedTimestampMs:K.lastUsedTimestampMs,subagentType:K.subagentType}}return{conversationState:J,subagentStates:Y}}getLatestCheckpoint(){return this.getConversationStateStructure()}async handleCheckpoint(Z,$){let J=this.serde.serialize($),Y=this.fixedRootBlobId??await qQ(J);await this.blobStore.setBlob(Z,Y,J),this.setMetadata("latestRootBlobId",Y),this.conversationStateStructure=$}async resetFromDb(Z){await this.tryResetFromDb(Z)}async tryResetFromDb(Z){try{let $=this.getMetadata("latestRootBlobId");if(!$||$.length===0)return this.conversationStateStructure=new x0,!1;let J=await this.blobStore.getBlob(Z,$);if(!J)return this.conversationStateStructure=new x0,!1;let Y=this.serde.deserialize(J);return this.conversationStateStructure=Y,!0}catch($){return this.conversationStateStructure=new x0,!1}}async dispose(){if(this.blobStore instanceof YQ)await this.blobStore.dispose()}}var SN,gN,SA=32,ju,_N=null,rQ=(Z)=>({agentId:Z??crypto.randomUUID(),latestRootBlobId:new Uint8Array,name:"New Agent",mode:"default",isRunEverything:!1,approvalMode:void 0,createdAt:Date.now(),lastUsedModel:void 0,lastDebugServerPort:void 0,currentPlanUri:void 0,subagentInfo:void 0,blobEncryptionKey:_u()}),gu,cu,pu,iu,nu,bA,ru,au,su;var dA=O(()=>{MQ();$H();zQ();W9();H9();jN();SN=["default","plan","debug","search"],gN=["allowlist","unrestricted","auto-review"],ju=/^[0-9a-f]+$/;gu=new Set(SN);cu=new Set(gN);pu=new N8(B0),iu=new N8(R8),nu=new N8(h8),bA=new N8(Q6),ru=new N8(q6),au=new N8(z6),su=new N8(K6)});var uA=O(()=>{MQ();W9();H9()});var tu;var bN=O(()=>{l0();tu=d0(Symbol("blob-read-kind"),void 0)});var cN=()=>{};var _$0,S$0,g$0,b$0,c$0,d$0,u$0,l$0,p$0,i$0;var lA=O(()=>{l0();U6();W9();_$0=u0("@anysphere/agent-kv"),S$0=g("agent_kv.cached.get_blob.duration_ms",{description:"Duration of CachedBlobStore getBlob operations in milliseconds"}),g$0=g("agent_kv.cached.set_blob.duration_ms",{description:"Duration of CachedBlobStore setBlob operations in milliseconds"}),b$0=g("agent_kv.cached.flush.duration_ms",{description:"Duration of CachedBlobStore flush operations in milliseconds"}),c$0=g("agent_kv.cached.cache_bytes",{description:"Resident bytes held in the CachedBlobStore in-memory cache, sampled on flush"}),d$0=P8("agent_kv.cached.get_blob.results",{description:"Number of CachedBlobStore getBlob operations by cache result type",labelNames:["cache_type"]}),u$0=P8("agent_kv.nearby.decrypt_errors",{description:"Number of nearby blob reads that found ciphertext but failed to decrypt it (wrong encryption key)"}),l$0=P8("agent_kv.nearby.decrypt_fallback_success",{description:"Number of nearby blob reads where the primary encryption key failed but the fallback key decrypted the blob"}),p$0=g("agent_kv.encrypted.get_blob.duration_ms",{description:"Duration of EncryptedBlobStore getBlob operations in milliseconds"}),i$0=g("agent_kv.encrypted.set_blob.duration_ms",{description:"Duration of EncryptedBlobStore setBlob operations in milliseconds"})});import{Message as s$0,proto3 as t$0}from"@bufbuild/protobuf";var pA=()=>{};var K90,Q90,H90;var iA=O(()=>{l0();U6();pA();W9();K90=u0("ControlledKvManager"),Q90=g("agent_kv.controlled.get_blob.duration_ms",{description:"Duration of ControlledKvManager getBlob operations in milliseconds"}),H90=g("agent_kv.controlled.set_blob.duration_ms",{description:"Duration of ControlledKvManager setBlob operations in milliseconds"})});var F90,G90,L90,D90;var pN=O(()=>{l0();U6();F90=u0("@anysphere/agent-kv"),G90=g("agent_kv.writethrough.get_blob.duration_ms",{description:"Duration of WritethroughBlobStore getBlob operations in milliseconds"}),L90=g("agent_kv.writethrough.set_blob.duration_ms",{description:"Duration of WritethroughBlobStore setBlob operations in milliseconds"}),D90=g("agent_kv.writethrough.flush.duration_ms",{description:"Duration of WritethroughBlobStore flush operations in milliseconds"})});var iN=O(()=>{pN()});var x90,T90,C90,h90;var nA=O(()=>{l0();U6();cN();bN();W9();H9();iN();x90=u0("@anysphere/agent-kv:reference"),T90=P8("agent_kv.lazy_reference.cache_miss",{description:"Number of large or slow LazyReference cache misses that require loading and deserializing a blob",labelNames:["blob_type"]}),C90=g("agent_kv.lazy_reference.deserialize_bytes",{description:"Blob byte size loaded on a large or slow LazyReference deserialize cache miss",labelNames:["blob_type"]}),h90=g("agent_kv.lazy_reference.deserialize_ms",{description:"Time spent deserializing a blob on a large or slow LazyReference cache miss",labelNames:["blob_type"]})});var m90,j90,_90,S90,g90,b90;var rA=O(()=>{l0();U6();m90=u0("RetryBlobStore"),j90=P8("agent_kv.retry.retries",{description:"Number of RetryBlobStore retry attempts (one per re-issued operation, not counting the first try)",labelNames:["operation","outcome"]}),_90=g("agent_kv.retry.get_blob.duration_ms",{description:"Duration of RetryBlobStore getBlob operations in milliseconds"}),S90=g("agent_kv.retry.set_blob.duration_ms",{description:"Duration of RetryBlobStore setBlob operations in milliseconds"}),g90=g("agent_kv.retry.set_blob_locally_only.duration_ms",{description:"Duration of RetryBlobStore setBlobLocallyOnly operations in milliseconds"}),b90=g("agent_kv.retry.flush.duration_ms",{description:"Duration of RetryBlobStore flush operations in milliseconds"})});var sQ=O(()=>{dA();uA();bN();cN();W9();lA();iA();nA();rA();H9();jN();iN();pN()});function XB(){return{value:void 0,done:!0}}class JM{subscribersByRun=new Map;async publishRunEventAppended(Z){let $=this.subscribersByRun.get(Z.runId);if(!$)return;for(let J of $){if(J.closed)continue;let Y=J.waiters.shift();if(Y)Y({value:Z,done:!1});else J.queue.push(Z)}}subscribeRunEvents(Z){let $={closed:!1,queue:[],waiters:[]},J=this.subscribersByRun.get(Z.runId)??new Set;J.add($),this.subscribersByRun.set(Z.runId,J);let Y=Z.signal,X=()=>{if(Y?.removeEventListener("abort",X),$.closed)return;if($.closed=!0,J.delete($),J.size===0)this.subscribersByRun.delete(Z.runId);while($.waiters.length>0)$.waiters.shift()?.(XB())};if(Y?.aborted)X();else Y?.addEventListener("abort",X,{once:!0});return{[Symbol.asyncIterator]:()=>({next:async()=>{let z=$.queue.shift();if(z)return{value:z,done:!1};if($.closed||Y?.aborted)return X(),XB();return new Promise((K)=>{$.waiters.push(K)})},return:async()=>{return X(),XB()}})}}}function YM(){return new JM}import{chmodSync as Vl,existsSync as Al,mkdirSync as Ml}from"fs";function GQ(Z){if(!Al(Z))Ml(Z,{recursive:!0,mode:XM});try{Vl(Z,XM)}catch{}}var XM=448;var zB=()=>{};import{AsyncLocalStorage as xl}from"async_hooks";function zM(){return hl.getStore()??Cl}var Tl,Cl,hl,KM;var QM=O(()=>{Tl={warn:console.warn.bind(console),error:console.error.bind(console)},Cl=Tl,hl=new xl;KM={warn(...Z){zM().warn(...Z)},error(...Z){zM().error(...Z)}}});var KB;var HM=O(()=>{KB=class KB extends Error{constructor(Z,$){super(Z,$);this.name="NoSqliteDriverError"}}});import{win32 as WM}from"path";function BM(Z,$=process.platform){if($!=="win32")return Z;let J=WM.resolve(Z);if(!(Z.length+NM>qM||J.length+NM>qM))return Z;return WM.toNamespacedPath(J)}var qM=259,NM=8;var FM=()=>{};var LM={};I6(LM,{openBunSqliteDriver:()=>vl});import{Database as Rl}from"bun:sqlite";class GM{db;statements=new Map;constructor(Z){this.db=Z}exec(Z){this.db.run(Z)}run(Z,$=[]){let{changes:J}=this.prepare(Z).run(...$);return{changes:J}}get(Z,$=[]){return this.prepare(Z).get(...$)??void 0}all(Z,$=[]){return this.prepare(Z).all(...$)}close(){this.statements.clear(),this.db.close()}prepare(Z){let $=this.statements.get(Z);if(!$)$=this.db.prepare(Z),this.statements.set(Z,$);return $}}function vl(Z){return new GM(new Rl(Z,{create:!0}))}var DM=()=>{};class QB{constructor(){throw Error("node:sqlite is not available in this runtime (the @cursor/sdk/bundled entry targets Bun, which uses bun:sqlite)")}}var UM={};I6(UM,{openNodeSqliteDriver:()=>yl});class wM{db;statements=new Map;constructor(Z){this.db=Z}exec(Z){this.db.exec(Z)}run(Z,$=[]){let J=this.prepare(Z).run(...$);return{changes:Number(J.changes)}}get(Z,$=[]){return this.prepare(Z).get(...$)}all(Z,$=[]){return this.prepare(Z).all(...$)}close(){this.statements.clear(),this.db.close()}prepare(Z){let $=this.statements.get(Z);if(!$)$=this.db.prepare(Z),this.statements.set(Z,$);return $}}function yl(Z){return new wM(new QB(Z))}var OM=()=>{};function ml(Z){if((typeof Z==="object"&&Z!==null&&"code"in Z&&typeof Z.code==="string"?Z.code:void 0)==="ERR_UNKNOWN_BUILTIN_MODULE")return!0;return(Z instanceof Error?Z.message.toLowerCase():String(Z).toLowerCase()).includes("node:sqlite")}function jl(){return"Bun"in globalThis}async function LQ(Z){let $=BM(Z);if(jl())return(await Promise.resolve().then(() => (DM(),LM))).openBunSqliteDriver($);let J;try{J=await Promise.resolve().then(() => (OM(),UM))}catch(Y){if(ml(Y))throw new KB("node:sqlite is not available in this runtime. The default local agent store requires Node >= 22.13 (or another runtime that implements node:sqlite). Configure a JsonlLocalAgentStore instead.",{cause:Y});throw Y}return J.openNodeSqliteDriver($)}var YW=O(()=>{HM();FM()});var kM={};I6(kM,{subscribeLocalStoreDegradation:()=>dl,isLocalStoreOpenFailure:()=>zW,SQLiteBlobStoreWithMetadata:()=>qB,LOCAL_STORE_OPEN_FAILURE_WARNING:()=>WB});import{existsSync as _l,mkdirSync as Sl,rmSync as gl}from"fs";import{basename as bl,dirname as HB}from"path";function zW(Z){let $=new Set,J=Z;while(J!==void 0&&J!==null&&!$.has(J)){if($.add(J),typeof J!=="object")return typeof J==="string"&&J.toLowerCase().includes(IM);let Y=J;if(Y.code==="SQLITE_CANTOPEN")return!0;if(Y.code==="ERR_SQLITE_ERROR"&&typeof Y.errcode==="number"&&(Y.errcode&255)===cl)return!0;if(typeof Y.message==="string"&&Y.message.toLowerCase().includes(IM))return!0;J=Y.cause}return!1}function dl(Z,$){let J=Z;if(typeof J.onLocalStoreDegraded!=="function")return()=>{};return J.onLocalStoreDegraded($)}var XW,WB="Local agent storage could not open its database, so this run is continuing in memory. Its checkpoint may be unavailable after the process exits.",cl=14,IM="unable to open database file",qB;var PM=O(()=>{sQ();zQ();QM();YW();XW=new tH;qB=class qB extends YQ{dbPath;driverPromise;driver;openDriver;openDisabled=!1;memoryBlobs=new Map;deletedBlobIds=new Set;degradationWarning;degradationListeners=new Set;metadata;listeners={agentId:new Set,latestRootBlobId:new Set,name:new Set,createdAt:new Set,mode:new Set,isRunEverything:new Set,approvalMode:new Set,lastUsedModel:new Set,lastDebugServerPort:new Set,currentPlanUri:new Set,subagentInfo:new Set};persistScheduled=!1;isDisposing=!1;disposePromise;static async initAndLoad(Z){let $=new qB(Z);return await $.getDriver(),$}constructor(Z,$){super();this.dbPath=Z;this.openDriver=$?.openDriver??LQ;let J=bl(HB(this.dbPath));this.metadata=rQ(J)}onLocalStoreDegraded(Z){if(this.degradationListeners.add(Z),this.degradationWarning!==void 0)this.notifyDegradationListener(Z,this.degradationWarning);return()=>{this.degradationListeners.delete(Z)}}async getDriver(){if(this.openDisabled)return;if(this.driver)return this.driver;if(!this.driverPromise){let $=(async()=>{let J=HB(this.dbPath);if(!_l(J))Sl(J,{recursive:!0});let Y=await this.openDriver(this.dbPath);try{this.initializeDriver(Y)}catch(X){throw Y.close(),X}return this.driver=Y,Y})().catch((J)=>{if(this.driverPromise===$)this.driverPromise=void 0;throw J});this.driverPromise=$}try{return await this.driverPromise}catch(Z){if(zW(Z)){this.openDisabled=!0,this.degrade(Z);return}throw Z}}degrade(Z){if(this.degradationWarning!==void 0)return;this.degradationWarning=WB,KM.warn(WB,Z instanceof Error?Z.message:String(Z));for(let $ of this.degradationListeners)this.notifyDegradationListener($,this.degradationWarning)}notifyDegradationListener(Z,$){try{Z($)}catch{}}rememberBlob(Z,$){this.memoryBlobs.set(Z,Uint8Array.from($))}readRememberedBlob(Z){let $=this.memoryBlobs.get(Z);return $===void 0?void 0:Uint8Array.from($)}async withDriver(Z,$){try{let J=await this.getDriver();if(!J)return Z();return $(J)}catch(J){if(!zW(J))throw J;return this.degrade(J),Z()}}initializeDriver(Z){Z.exec(`PRAGMA journal_mode = WAL;
|
|
7
7
|
PRAGMA synchronous = NORMAL;
|
|
8
8
|
PRAGMA busy_timeout = 5000;
|
|
9
9
|
PRAGMA user_version = 1;
|
|
10
10
|
CREATE TABLE IF NOT EXISTS blobs (id TEXT PRIMARY KEY, data BLOB);
|
|
11
|
-
CREATE TABLE IF NOT EXISTS meta (key TEXT PRIMARY KEY, value TEXT);`);let $=Z.get("SELECT value FROM meta WHERE key = ?",["0"]);if($?.value){let Y=
|
|
11
|
+
CREATE TABLE IF NOT EXISTS meta (key TEXT PRIMARY KEY, value TEXT);`);let $=Z.get("SELECT value FROM meta WHERE key = ?",["0"]);if($?.value){let Y=p0($.value);this.metadata=XW.deserialize(Y);return}let J=XW.serialize(this.metadata);Z.run("INSERT OR REPLACE INTO meta (key, value) VALUES (?, ?)",["0",Q0(J)])}async getBlob(Z,$){if(this.isDisposing)return;let J=Q0($);if(this.deletedBlobIds.has(J))return;let Y=this.readRememberedBlob(J);if(Y!==void 0)return Y;return this.withDriver(()=>{return},(X)=>{let z=X.get("SELECT data FROM blobs WHERE id = ?",[J]);return z?.data==null?void 0:new Uint8Array(z.data)})}async listBlobIds(){if(this.isDisposing)return[];let Z=new Set(this.memoryBlobs.keys()),$=await this.withDriver(()=>[],(J)=>J.all("SELECT id FROM blobs ORDER BY id ASC").map((Y)=>Y.id));for(let J of $)Z.add(J);return[...Z].filter((J)=>!this.deletedBlobIds.has(J)).sort()}async deleteBlob(Z){if(this.isDisposing)return;this.memoryBlobs.delete(Z),await this.withDriver(()=>{this.deletedBlobIds.add(Z)},($)=>{$.run("DELETE FROM blobs WHERE id = ?",[Z]),this.deletedBlobIds.delete(Z)})}async setBlob(Z,$,J){if(this.isDisposing)return;let Y=Q0($);await this.withDriver(()=>{this.deletedBlobIds.delete(Y),this.rememberBlob(Y,J)},(X)=>{X.run("INSERT OR REPLACE INTO blobs (id, data) VALUES (?, ?)",[Y,Buffer.from(J)]),this.memoryBlobs.delete(Y),this.deletedBlobIds.delete(Y)})}async setBlobLocallyOnly(Z,$,J){return Promise.resolve()}async flush(Z){return Promise.resolve()}get(Z){return this.metadata[Z]}valuesEqual(Z,$,J){if(Z==="latestRootBlobId"){if(!($ instanceof Uint8Array)||!(J instanceof Uint8Array))return $===J;let Y=$,X=J;if(Y===X)return!0;if(!Y||!X)return!1;if(Y.length!==X.length)return!1;for(let z=0;z<Y.length;z++)if(Y[z]!==X[z])return!1;return!0}return $===J}schedulePersist(){if(this.isDisposing||!this.driver)return;if(this.persistScheduled)return;this.persistScheduled=!0,queueMicrotask(()=>{if(this.persistScheduled=!1,this.isDisposing||!this.driver)return;this.persistMetadata()})}set(Z,$){let J=this.metadata[Z];if(this.valuesEqual(Z,J,$))return;if(this.metadata={...this.metadata,[Z]:$},this.driver)this.schedulePersist();let Y=this.listeners[Z];if(Y&&Y.size>0)queueMicrotask(()=>{Y.forEach((X)=>{X()})})}persistMetadata(){let Z=this.driver;if(!Z)return;let $=XW.serialize(this.metadata);try{Z.run("INSERT OR REPLACE INTO meta (key, value) VALUES (?, ?)",["0",Q0($)])}catch(J){if(!zW(J))throw J;this.degrade(J)}}subscribe(Z,$){let J=this.listeners[Z];if(J)return J.add($),()=>J.delete($);return()=>{}}async dispose(){if(this.disposePromise)return this.disposePromise;if(!this.driverPromise)return;return this.disposePromise=this.cleanup().then(()=>{this.driverPromise=void 0,this.driver=void 0}),this.disposePromise}async cleanup(){if(!this.driverPromise)return;let Z=await this.driverPromise.catch(()=>{return});if(!Z){this.driverPromise=void 0,this.driver=void 0;return}this.persistScheduled=!1,this.persistMetadata(),this.isDisposing=!0;let $=Z.get("SELECT value FROM meta WHERE key = ?",["0"]),J=0;if($?.value){let z=p0($.value);J=XW.deserialize(z).latestRootBlobId.length}let X=Z.get("SELECT COUNT(*) AS count FROM blobs")?.count??0;if(Z.close(),J===0&&X===0){this.driverPromise=void 0,this.driver=void 0;let z=HB(this.dbPath);try{gl(z,{recursive:!0,force:!0})}catch{}}}}});var VM={};I6(VM,{LocalAgentCheckpointStore:()=>fM});import{createHash as ul}from"crypto";import{rm as ll}from"fs/promises";import{join as KW}from"path";class fM{options;stores=new Map;constructor(Z){this.options=Z}async loadLatest(Z){let{agentStore:$}=await this.getOrCreate(Z),J=$.getMetadata("latestRootBlobId");if(!J||J.length===0)return null;return await $.resetFromDb(b8()),$.getConversationStateStructure()}async saveCheckpoint(Z,$){let{agentStore:J}=await this.getOrCreate(Z);return await J.handleCheckpoint(b8(),$),{blobId:Q0(J.getMetadata("latestRootBlobId")),storeKind:"local-sqlite"}}async getBlobStore(Z){return(await this.getOrCreate(Z)).sqliteStore}async listCheckpointBlobIds(Z){let{sqliteStore:$}=await this.getOrCreate(Z);return $.listBlobIds()}async getFullConversation(Z){let{agentStore:$}=await this.getOrCreate(Z);return await $.resetFromDb(b8()),$.getFullConversation(b8())}async dispose(){let Z=[...this.stores.values()];this.stores.clear();let $=await Promise.allSettled(Z);await Promise.all($.filter((J)=>J.status==="fulfilled").map((J)=>J.value.sqliteStore.dispose()))}async deleteAgent(Z){let $=this.stores.get(Z);if($){this.stores.delete(Z);let Y=await $.catch(()=>{return});if(Y)await Y.sqliteStore.dispose().catch(()=>{return})}let J=KW(this.options.stateRoot,"agents",EM(Z));await ll(J,{recursive:!0,force:!0})}async getOrCreate(Z){let $=this.stores.get(Z);if($)return $;let J;return J=this.createEntry(Z).catch((Y)=>{if(this.stores.get(Z)===J)this.stores.delete(Z);throw Y}),this.stores.set(Z,J),J}async createEntry(Z){let $=KW(this.options.stateRoot,"agents"),J=KW($,EM(Z));GQ(this.options.stateRoot),GQ($),GQ(J);let{SQLiteBlobStoreWithMetadata:Y}=await Promise.resolve().then(() => (PM(),kM)),X=await Y.initAndLoad(KW(J,"store.db"));try{X.set("agentId",Z);let z=new aQ(X,X);return await z.resetFromDb(b8()),{sqliteStore:X,agentStore:z}}catch(z){throw await X.dispose().catch(()=>{return}),z}}}function EM(Z){return`agent-${ul("sha256").update(Z).digest("hex")}`}var AM=O(()=>{sQ();l0();zB()});function MM(){return`agent-${_H()}`}function NB(){return`run-${_H()}`}var xM=O(()=>{zQ()});function tQ(Z){return pl.has(Z)}var pl;var TM=O(()=>{pl=new Set(["FINISHED","ERROR","CANCELLED","EXPIRED"])});var vM={};I6(vM,{SqliteAgentRunStore:()=>GB});import{dirname as il,join as nl}from"path";function hM(Z){if(Z.length===0)return[];let $=[];for(let J=0;J<Z.length;J+=CM)$.push(Z.slice(J,J+CM));return $}function q9(){return new Date().toISOString()}function QW(Z){return Z?new Date(Z):null}function wQ(Z,$){if(!Z)return $;return JSON.parse(Z)}function DQ(Z){return JSON.stringify(Z)}function O6(Z){return Z?DQ(Z):null}function rl(Z,$){if(Z===null)return null;if($===null)return{id:Z};return{id:Z,params:wQ($,[])}}function BB(Z){let $=Z?.params;return $&&$.length>0?DQ($):null}function FB(Z){return{agentId:Z.agent_id,workspaceRef:Z.workspace_ref,status:Z.status,activeRunId:Z.active_run_id,latestCheckpointRef:wQ(Z.latest_checkpoint_ref_json,null),name:Z.name,createdAt:new Date(Z.created_at),updatedAt:new Date(Z.updated_at),metadata:wQ(Z.metadata_json,{})}}function HW(Z){return{runId:Z.run_id,requestId:Z.request_id,agentId:Z.agent_id,turnNumber:Z.turn_number,status:Z.status,model:rl(Z.model,Z.model_params_json),startCheckpointRef:wQ(Z.start_checkpoint_ref_json,null),latestCheckpointRef:wQ(Z.latest_checkpoint_ref_json,null),errorCode:Z.error_code,usageRef:Z.usage_ref,usage:wQ(Z.usage_json??null,null),result:Z.result,createdAt:new Date(Z.created_at),updatedAt:new Date(Z.updated_at),startedAt:QW(Z.started_at),finishedAt:QW(Z.finished_at),cancelledAt:QW(Z.cancelled_at),expiredAt:QW(Z.expired_at)}}function RM(Z){let $=Z?.limit??50,J=Z?.cursor?Number.parseInt(Z.cursor,10):0,Y=Number.isFinite(J)&&J>0?J:0;return{limit:$,offset:Y}}class GB{options;driverPromise;disposed=!1;static async open(Z){let $=new GB(Z);return await $.getDriver(),$}constructor(Z){this.options=Z}get stateRoot(){return this.options.stateRoot}get dbPath(){return nl(this.options.stateRoot,"index.db")}async createAgent(Z){let $=await this.getDriver();return i0($,()=>{let J=Z.agentId??MM(),Y=NB(),X=q9();$.run(`INSERT INTO agents (
|
|
12
12
|
agent_id, workspace_ref, status, active_run_id,
|
|
13
13
|
latest_checkpoint_ref_json, name,
|
|
14
14
|
metadata_json, created_at, updated_at
|
|
15
|
-
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)`,[J,Z.workspaceRef,"IDLE",Y,null,Z.name??null,
|
|
15
|
+
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)`,[J,Z.workspaceRef,"IDLE",Y,null,Z.name??null,DQ(Z.metadata??{}),X,X]),$.run(`INSERT INTO runs (
|
|
16
16
|
run_id, request_id, agent_id, turn_number, status, model, model_params_json,
|
|
17
17
|
start_checkpoint_ref_json, latest_checkpoint_ref_json,
|
|
18
18
|
error_code, usage_ref, usage_json, result,
|
|
19
19
|
created_at, updated_at, started_at, finished_at,
|
|
20
20
|
cancelled_at, expired_at
|
|
21
|
-
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`,[Y,Z.requestId??null,J,1,"QUEUED",Z.model?.id??null,
|
|
21
|
+
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`,[Y,Z.requestId??null,J,1,"QUEUED",Z.model?.id??null,BB(Z.model),null,null,null,null,null,null,X,X,null,null,null,null]);let z=this.getAgentFromDb($,J),K=this.getRunFromDb($,J,Y);if(!z||!K)throw Error(`Failed to create agent ${J}`);return{agent:z,run:K}})}async createFollowUpRun(Z,$){let J=await this.getDriver();return i0(J,()=>{let Y=this.getAgentFromDb(J,Z);if(!Y)throw Error(`Agent ${Z} not found`);if(Y.status==="ARCHIVED")throw Error(`Cannot create follow-up run on archived agent ${Z}. Unarchive it first.`);if(Y.activeRunId){let q=this.getRunFromDb(J,Z,Y.activeRunId);if(q&&!tQ(q.status))throw Error(`Agent ${Z} already has active run`)}let X=J.get("SELECT COUNT(*) as count FROM runs WHERE agent_id = ?",[Z]),z=NB(),K=q9();J.run(`INSERT INTO runs (
|
|
22
22
|
run_id, request_id, agent_id, turn_number, status, model, model_params_json,
|
|
23
23
|
start_checkpoint_ref_json, latest_checkpoint_ref_json,
|
|
24
24
|
error_code, usage_ref, usage_json, result,
|
|
25
25
|
created_at, updated_at, started_at, finished_at,
|
|
26
26
|
cancelled_at, expired_at
|
|
27
|
-
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`,[z,$.requestId??null,Z,(X?.count??0)+1,"QUEUED",$.model?.id??null,
|
|
27
|
+
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`,[z,$.requestId??null,Z,(X?.count??0)+1,"QUEUED",$.model?.id??null,BB($.model),O6(Y.latestCheckpointRef),Y.latestCheckpointRef?O6(Y.latestCheckpointRef):null,null,null,null,null,K,K,null,null,null,null]),J.run("UPDATE agents SET active_run_id = ?, status = ?, metadata_json = ?, updated_at = ? WHERE agent_id = ?",[z,"IDLE",DQ({...Y.metadata,...$.metadata}),K,Z]);let H=this.getRunFromDb(J,Z,z);if(!H)throw Error(`Failed to create run ${z}`);return H})}async listAgents(Z){let $=await this.getDriver(),{limit:J,offset:Y}=RM(Z),X=$.all("SELECT * FROM agents ORDER BY updated_at DESC LIMIT ? OFFSET ?",[J+1,Y]),z=X.slice(0,J),K=X.length>J?String(Y+J):void 0;return{items:z.map(FB),...K?{nextCursor:K}:{}}}async getAgent(Z){let $=await this.getDriver();return this.getAgentFromDb($,Z)}async listRuns(Z,$){let J=await this.getDriver(),{limit:Y,offset:X}=RM($),z=J.all("SELECT * FROM runs WHERE agent_id = ? ORDER BY turn_number ASC LIMIT ? OFFSET ?",[Z,Y+1,X]),K=z.slice(0,Y),H=z.length>Y?String(X+Y):void 0;return{items:K.map(HW),...H?{nextCursor:H}:{}}}async getRun(Z,$){let J=await this.getDriver();return this.getRunFromDb(J,Z,$)}async markRunStarting(Z,$,J){let Y=await this.getDriver();i0(Y,()=>{let X=this.requireRunFromDb(Y,Z,$);if(tQ(X.status))throw Error(`Cannot start terminal run ${$}`);let z=q9();Y.run("UPDATE runs SET request_id = COALESCE(?, request_id), status = ?, started_at = COALESCE(started_at, ?), updated_at = ? WHERE run_id = ? AND agent_id = ?",[J?.requestId??null,"RUNNING",z,z,$,Z]),Y.run(`UPDATE agents
|
|
28
28
|
SET active_run_id = ?,
|
|
29
29
|
status = CASE
|
|
30
30
|
WHEN status = 'ARCHIVED' THEN status
|
|
31
31
|
ELSE 'RUNNING'
|
|
32
32
|
END,
|
|
33
33
|
updated_at = ?
|
|
34
|
-
WHERE agent_id = ?`,[$,z,Z])})}async patchCheckpoint(Z,$,J){let Y=await this.getDriver();
|
|
34
|
+
WHERE agent_id = ?`,[$,z,Z])})}async patchCheckpoint(Z,$,J){let Y=await this.getDriver();i0(Y,()=>{this.requireRunFromDb(Y,Z,$);let X=q9();Y.run(`UPDATE runs
|
|
35
35
|
SET latest_checkpoint_ref_json = ?,
|
|
36
36
|
updated_at = ?
|
|
37
37
|
WHERE run_id = ? AND agent_id = ?`,[O6(J),X,$,Z]),Y.run(`UPDATE agents
|
|
38
38
|
SET latest_checkpoint_ref_json = ?,
|
|
39
39
|
updated_at = ?
|
|
40
|
-
WHERE agent_id = ?`,[O6(J),X,Z])})}async markRunTerminal(Z,$,J){let Y=await this.getDriver();
|
|
40
|
+
WHERE agent_id = ?`,[O6(J),X,Z])})}async markRunTerminal(Z,$,J){let Y=await this.getDriver();i0(Y,()=>{let X=this.requireRunFromDb(Y,Z,$);if(tQ(X.status)){if(J.usage!==void 0&&(X.usage===null||X.usage===void 0)){let q=J.usage===null?null:JSON.stringify(J.usage);Y.run("UPDATE runs SET usage_json = ? WHERE run_id = ? AND agent_id = ?",[q,$,Z])}return}let z=q9(),K=J.usage!==void 0?J.usage:X.usage??null,H=K===null||K===void 0?null:JSON.stringify(K);Y.run(`UPDATE runs
|
|
41
41
|
SET status = ?,
|
|
42
42
|
error_code = COALESCE(?, error_code),
|
|
43
43
|
usage_ref = COALESCE(?, usage_ref),
|
|
@@ -55,7 +55,7 @@ ${Z.map(($,J)=>`${J+1}) ${$.toString()}`).join(`
|
|
|
55
55
|
ELSE 'IDLE'
|
|
56
56
|
END,
|
|
57
57
|
updated_at = ?
|
|
58
|
-
WHERE agent_id = ?`,[J.status,z,Z])})}async cancelRun(Z,$){await this.markRunTerminal(Z,$,{status:"CANCELLED"})}async archiveAgent(Z){let $=await this.getDriver();
|
|
58
|
+
WHERE agent_id = ?`,[J.status,z,Z])})}async cancelRun(Z,$){await this.markRunTerminal(Z,$,{status:"CANCELLED"})}async archiveAgent(Z){let $=await this.getDriver();i0($,()=>{if(!this.getAgentFromDb($,Z))throw Error(`Agent ${Z} not found`);let Y=q9();$.run("UPDATE agents SET status = 'ARCHIVED', updated_at = ? WHERE agent_id = ?",[Y,Z])})}async unarchiveAgent(Z){let $=await this.getDriver();i0($,()=>{if(!this.getAgentFromDb($,Z))throw Error(`Agent ${Z} not found`);let Y=q9();$.run("UPDATE agents SET status = 'IDLE', updated_at = ? WHERE agent_id = ?",[Y,Z])})}async deleteAgent(Z){let $=await this.getDriver();i0($,()=>{let J=this.getAgentFromDb($,Z);if(!J)throw Error(`Agent ${Z} not found`);if(J.activeRunId){let Y=this.getRunFromDb($,Z,J.activeRunId);if(Y&&!tQ(Y.status))throw Error(`Cannot delete agent ${Z}: active run ${J.activeRunId} is not terminal. Call run.cancel() first.`)}$.run("DELETE FROM runs WHERE agent_id = ?",[Z]),$.run("DELETE FROM agents WHERE agent_id = ?",[Z])})}async upsertAgentRecord(Z){let $=await this.getDriver();i0($,()=>{let J=this.getAgentFromDb($,Z.agentId),Y=Z.createdAt.toISOString(),X=Z.updatedAt.toISOString();if(J){$.run(`UPDATE agents SET
|
|
59
59
|
workspace_ref = ?,
|
|
60
60
|
status = ?,
|
|
61
61
|
active_run_id = ?,
|
|
@@ -63,11 +63,11 @@ ${Z.map(($,J)=>`${J+1}) ${$.toString()}`).join(`
|
|
|
63
63
|
name = ?,
|
|
64
64
|
metadata_json = ?,
|
|
65
65
|
updated_at = ?
|
|
66
|
-
WHERE agent_id = ?`,[Z.workspaceRef,Z.status,Z.activeRunId,O6(Z.latestCheckpointRef),Z.name,
|
|
66
|
+
WHERE agent_id = ?`,[Z.workspaceRef,Z.status,Z.activeRunId,O6(Z.latestCheckpointRef),Z.name,DQ(Z.metadata),X,Z.agentId]);return}$.run(`INSERT INTO agents (
|
|
67
67
|
agent_id, workspace_ref, status, active_run_id,
|
|
68
68
|
latest_checkpoint_ref_json, name,
|
|
69
69
|
metadata_json, created_at, updated_at
|
|
70
|
-
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)`,[Z.agentId,Z.workspaceRef,Z.status,Z.activeRunId,O6(Z.latestCheckpointRef),Z.name,
|
|
70
|
+
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)`,[Z.agentId,Z.workspaceRef,Z.status,Z.activeRunId,O6(Z.latestCheckpointRef),Z.name,DQ(Z.metadata),Y,X])})}async upsertRunRecord(Z){let $=await this.getDriver();i0($,()=>{let J=this.getRunFromDb($,Z.agentId,Z.runId),Y=Z.createdAt.toISOString(),X=Z.updatedAt.toISOString(),z=Z.startedAt?.toISOString()??null,K=Z.finishedAt?.toISOString()??null,H=Z.cancelledAt?.toISOString()??null,q=Z.expiredAt?.toISOString()??null,L=Z.usage===null||Z.usage===void 0?null:JSON.stringify(Z.usage),w=[Z.requestId??null,Z.turnNumber,Z.status,Z.model?.id??null,BB(Z.model),O6(Z.startCheckpointRef),O6(Z.latestCheckpointRef),Z.errorCode,Z.usageRef,L,Z.result,X,z,K,H,q];if(J){$.run(`UPDATE runs SET
|
|
71
71
|
request_id = ?,
|
|
72
72
|
turn_number = ?,
|
|
73
73
|
status = ?,
|
|
@@ -84,13 +84,13 @@ ${Z.map(($,J)=>`${J+1}) ${$.toString()}`).join(`
|
|
|
84
84
|
finished_at = ?,
|
|
85
85
|
cancelled_at = ?,
|
|
86
86
|
expired_at = ?
|
|
87
|
-
WHERE run_id = ? AND agent_id = ?`,[...
|
|
87
|
+
WHERE run_id = ? AND agent_id = ?`,[...w,Z.runId,Z.agentId]);return}$.run(`INSERT INTO runs (
|
|
88
88
|
run_id, request_id, agent_id, turn_number, status, model, model_params_json,
|
|
89
89
|
start_checkpoint_ref_json, latest_checkpoint_ref_json,
|
|
90
90
|
error_code, usage_ref, usage_json, result,
|
|
91
91
|
created_at, updated_at, started_at, finished_at,
|
|
92
92
|
cancelled_at, expired_at
|
|
93
|
-
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`,[Z.runId,...
|
|
93
|
+
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`,[Z.runId,...w.slice(0,1),Z.agentId,...w.slice(1,11),Y,...w.slice(11)])})}async listAllAgentRecords(){return(await this.getDriver()).all("SELECT * FROM agents",[]).map(FB)}async listAllRunRecords(Z){let $=await this.getDriver();if(Z&&Z.length>0){let Y=[];for(let X of hM(Z)){let z=X.map(()=>"?").join(", "),K=$.all(`SELECT * FROM runs WHERE agent_id IN (${z})`,[...X]);Y.push(...K.map(HW))}return Y}return $.all("SELECT * FROM runs",[]).map(HW)}async deleteRunRecordsForAgents(Z){if(Z.length===0)return;let $=await this.getDriver();i0($,()=>{for(let J of hM(Z)){let Y=J.map(()=>"?").join(", ");$.run(`DELETE FROM runs WHERE agent_id IN (${Y})`,[...J])}})}async deleteRunRecordsByKeys(Z){if(Z.length===0)return;let $=await this.getDriver();i0($,()=>{for(let{agentId:J,runId:Y}of Z)$.run("DELETE FROM runs WHERE agent_id = ? AND run_id = ?",[J,Y])})}async dispose(){if(this.disposed=!0,!this.driverPromise)return;let Z=await this.driverPromise.catch(()=>{return});if(Z)Z.close();this.driverPromise=void 0}async getDriver(){if(this.disposed)throw Error("SqliteAgentRunStore has been disposed");if(this.driverPromise)return this.driverPromise;let $=(async()=>{let J=il(this.dbPath);GQ(J);let Y=await LQ(this.dbPath);try{al(Y)}catch(X){throw Y.close(),X}return Y})().catch((J)=>{if(this.driverPromise===$)this.driverPromise=void 0;throw J});return this.driverPromise=$,$}getAgentFromDb(Z,$){let J=Z.get("SELECT * FROM agents WHERE agent_id = ?",[$]);return J?FB(J):null}getRunFromDb(Z,$,J){let Y=Z.get("SELECT * FROM runs WHERE run_id = ? AND agent_id = ?",[J,$]);return Y?HW(Y):null}requireRunFromDb(Z,$,J){let Y=this.getRunFromDb(Z,$,J);if(!Y)throw Error(`Run ${J} not found for agent ${$}`);return Y}}function i0(Z,$){Z.exec("BEGIN IMMEDIATE");try{let J=$();return Z.exec("COMMIT"),J}catch(J){try{Z.exec("ROLLBACK")}catch{}throw J}}function al(Z){Z.exec(`PRAGMA journal_mode = WAL;
|
|
94
94
|
PRAGMA synchronous = NORMAL;
|
|
95
95
|
PRAGMA busy_timeout = 5000;
|
|
96
96
|
PRAGMA foreign_keys = ON;
|
|
@@ -126,16 +126,16 @@ ${Z.map(($,J)=>`${J+1}) ${$.toString()}`).join(`
|
|
|
126
126
|
cancelled_at TEXT,
|
|
127
127
|
expired_at TEXT,
|
|
128
128
|
UNIQUE(agent_id, turn_number)
|
|
129
|
-
);`);let $=Z.all("PRAGMA table_info(runs)");if(!$.some((J)=>J.name==="request_id"))Z.exec("ALTER TABLE runs ADD COLUMN request_id TEXT");if(!$.some((J)=>J.name==="model_params_json"))Z.exec("ALTER TABLE runs ADD COLUMN model_params_json TEXT");if(!$.some((J)=>J.name==="result"))Z.exec("ALTER TABLE runs ADD COLUMN result TEXT");if(!$.some((J)=>J.name==="usage_json"))Z.exec("ALTER TABLE runs ADD COLUMN usage_json TEXT")}var
|
|
129
|
+
);`);let $=Z.all("PRAGMA table_info(runs)");if(!$.some((J)=>J.name==="request_id"))Z.exec("ALTER TABLE runs ADD COLUMN request_id TEXT");if(!$.some((J)=>J.name==="model_params_json"))Z.exec("ALTER TABLE runs ADD COLUMN model_params_json TEXT");if(!$.some((J)=>J.name==="result"))Z.exec("ALTER TABLE runs ADD COLUMN result TEXT");if(!$.some((J)=>J.name==="usage_json"))Z.exec("ALTER TABLE runs ADD COLUMN usage_json TEXT")}var CM=100;var yM=O(()=>{xM();zB();YW();TM()});function mM(Z){if(!Z)return 0;if(!/^\d+$/.test(Z))throw Error(`Invalid run event offset ${Z}`);let $=Number.parseInt(Z,10);if(!Number.isFinite($)||$<0)throw Error(`Invalid run event offset ${Z}`);return $}var _M={};I6(_M,{SqliteRunEventStore:()=>LB});import{existsSync as sl,mkdirSync as tl}from"fs";import{dirname as ol,join as el}from"path";function Zp(){return new Date().toISOString()}function jM(Z){return{runId:Z.run_id,seq:Z.seq,offset:Z.offset,eventType:Z.event_type,payload:Z.payload_json?JSON.parse(Z.payload_json):null,payloadRef:Z.payload_ref,idempotencyKey:Z.idempotency_key,createdAt:new Date(Z.created_at)}}class LB{options;driverPromise;disposed=!1;static async open(Z){let $=new LB(Z);return await $.getDriver(),$}constructor(Z){this.options=Z}get dbPath(){return el(this.options.stateRoot,"index.db")}async appendRunEvent(Z){let $=await this.getDriver();$.exec("BEGIN IMMEDIATE");try{let J=Z.idempotencyKey??null;if(J){let H=$.get(`SELECT *
|
|
130
130
|
FROM run_events
|
|
131
131
|
WHERE run_id = ? AND idempotency_key = ?
|
|
132
|
-
LIMIT 1`,[Z.runId,J]);if(H)return $.exec("COMMIT"),
|
|
132
|
+
LIMIT 1`,[Z.runId,J]);if(H)return $.exec("COMMIT"),jM(H)}let X=($.get("SELECT MAX(seq) as max_seq FROM run_events WHERE run_id = ?",[Z.runId])?.max_seq??0)+1,z=String(X),K=Zp();return $.run(`INSERT INTO run_events (
|
|
133
133
|
run_id, seq, offset, event_type, payload_json, payload_ref, idempotency_key, created_at
|
|
134
|
-
) VALUES (?, ?, ?, ?, ?, ?, ?, ?)`,[Z.runId,X,z,Z.eventType,JSON.stringify(Z.payload??null),Z.payloadRef??null,J,K]),$.exec("COMMIT"),{runId:Z.runId,seq:X,offset:z,eventType:Z.eventType,payload:Z.payload??null,payloadRef:Z.payloadRef??null,idempotencyKey:J,createdAt:new Date(K)}}catch(J){try{$.exec("ROLLBACK")}catch{}throw J}}async listRunEvents(Z){let $=await this.getDriver(),J=
|
|
134
|
+
) VALUES (?, ?, ?, ?, ?, ?, ?, ?)`,[Z.runId,X,z,Z.eventType,JSON.stringify(Z.payload??null),Z.payloadRef??null,J,K]),$.exec("COMMIT"),{runId:Z.runId,seq:X,offset:z,eventType:Z.eventType,payload:Z.payload??null,payloadRef:Z.payloadRef??null,idempotencyKey:J,createdAt:new Date(K)}}catch(J){try{$.exec("ROLLBACK")}catch{}throw J}}async listRunEvents(Z){let $=await this.getDriver(),J=mM(Z.afterOffset),Y=Z.limit??100,X=$.all(`SELECT *
|
|
135
135
|
FROM run_events
|
|
136
136
|
WHERE run_id = ? AND seq > ?
|
|
137
137
|
ORDER BY seq ASC
|
|
138
|
-
LIMIT ?`,[Z.runId,J,Y+1]),z=X.length>Y,K=X.slice(0,Y).map(
|
|
138
|
+
LIMIT ?`,[Z.runId,J,Y+1]),z=X.length>Y,K=X.slice(0,Y).map(jM);return{events:K,...z&&K.length>0?{nextOffset:K[K.length-1]?.offset}:{}}}async deleteRunEvents(Z){(await this.getDriver()).run("DELETE FROM run_events WHERE run_id = ?",[Z.runId])}async dispose(){if(this.disposed=!0,!this.driverPromise)return;let Z=await this.driverPromise.catch(()=>{return});if(Z)Z.close();this.driverPromise=void 0}async getDriver(){if(this.disposed)throw Error("SqliteRunEventStore has been disposed");if(this.driverPromise)return this.driverPromise;let $=(async()=>{let J=ol(this.dbPath);if(!sl(J))tl(J,{recursive:!0});let Y=await LQ(this.dbPath);try{$p(Y)}catch(X){throw Y.close(),X}return Y})().catch((J)=>{if(this.driverPromise===$)this.driverPromise=void 0;throw J});return this.driverPromise=$,$}}function $p(Z){if(Z.exec(`PRAGMA journal_mode = WAL;
|
|
139
139
|
PRAGMA synchronous = NORMAL;
|
|
140
140
|
PRAGMA busy_timeout = 5000;
|
|
141
141
|
PRAGMA foreign_keys = ON;
|
|
@@ -152,4 +152,4 @@ ${Z.map(($,J)=>`${J+1}) ${$.toString()}`).join(`
|
|
|
152
152
|
UNIQUE(run_id, offset)
|
|
153
153
|
);`),!Z.all("PRAGMA table_info(run_events)").some((J)=>J.name==="idempotency_key"))Z.exec("ALTER TABLE run_events ADD COLUMN idempotency_key TEXT");Z.exec(`CREATE UNIQUE INDEX IF NOT EXISTS run_events_idempotency_key_idx
|
|
154
154
|
ON run_events (run_id, idempotency_key)
|
|
155
|
-
WHERE idempotency_key IS NOT NULL`)}var jM=O(()=>{JW()});var cM={};I6(cM,{createDefaultLocalRunEventStore:()=>gM,createDefaultLocalRunEventNotifier:()=>bM,createDefaultLocalAgentStores:()=>el,createDefaultLocalAgentRunStore:()=>SM,createDefaultLocalAgentCheckpointStore:()=>_M});async function _M(Z){let{LocalAgentCheckpointStore:$}=await Promise.resolve().then(() => (fM(),EM));return new $({stateRoot:Z.stateRoot})}async function SM(Z){let{SqliteAgentRunStore:$}=await Promise.resolve().then(() => (RM(),hM));return $.open(Z)}async function gM(Z){let{SqliteRunEventStore:$}=await Promise.resolve().then(() => (jM(),mM));return $.open(Z)}function bM(){return $M()}async function el(Z){return{store:await SM(Z),checkpointStore:await _M(Z),eventStore:await gM(Z),eventNotifier:bM()}}var dM=()=>{};rQ();u0();function qQ(Z){return{agentId:Z.agentId,cwd:Z.workspaceRef,status:$l(Z.status),activeRunId:Z.activeRunId??null,latestCheckpoint:Z.latestCheckpointRef?iN(Z.latestCheckpointRef):null,name:Z.name??null,createdAt:Z.createdAt.getTime(),updatedAt:Z.updatedAt.getTime(),sdkMetadata:Z.metadata}}function NQ(Z){let $=Z.finishedAt?.getTime()??Z.cancelledAt?.getTime()??Z.expiredAt?.getTime()??null;return{runId:Z.runId,requestId:Z.requestId??null,agentId:Z.agentId,turnNumber:Z.turnNumber,status:Yl(Z.status),model:Z.model??null,result:Z.result??null,error:Z.errorCode??null,usageRef:Z.usageRef??null,usage:Z.usage??null,createdAt:Z.createdAt.getTime(),updatedAt:Z.updatedAt.getTime(),startedAt:Z.startedAt?.getTime()??null,endedAt:$,startCheckpointRef:Z.startCheckpointRef?iN(Z.startCheckpointRef):null,latestCheckpointRef:Z.latestCheckpointRef?iN(Z.latestCheckpointRef):null}}function tH(Z){return{agentId:Z.agentId,workspaceRef:Z.cwd,status:Jl(Z.status),activeRunId:Z.activeRunId??null,latestCheckpointRef:Z.latestCheckpoint?nN(Z.latestCheckpoint):null,name:Z.name??null,createdAt:new Date(Z.createdAt),updatedAt:new Date(Z.updatedAt),metadata:Z.sdkMetadata??{}}}function oH(Z){let $=Xl(Z.status),J=Z.endedAt?new Date(Z.endedAt):null;return{runId:Z.runId,requestId:Z.requestId??null,agentId:Z.agentId,turnNumber:Z.turnNumber,status:$,model:Z.model??null,startCheckpointRef:Z.startCheckpointRef?nN(Z.startCheckpointRef):null,latestCheckpointRef:Z.latestCheckpointRef?nN(Z.latestCheckpointRef):null,errorCode:Z.error??null,result:Z.result??null,usageRef:Z.usageRef??null,usage:Z.usage??null,createdAt:new Date(Z.createdAt),updatedAt:new Date(Z.updatedAt),startedAt:Z.startedAt?new Date(Z.startedAt):null,finishedAt:$==="FINISHED"?J:null,cancelledAt:$==="CANCELLED"?J:null,expiredAt:$==="EXPIRED"?J:null}}function iN(Z){return{schemaVersion:1,rootBlobId:Z.blobId}}function nN(Z){return{blobId:Z.rootBlobId,storeKind:"local-agent-store"}}function $l(Z){switch(Z){case"IDLE":return"idle";case"RUNNING":return"running";case"ERROR":return"error";case"ARCHIVED":return"archived";default:throw Error("unexpected agent lifecycle status")}}function Jl(Z){switch(Z){case"idle":return"IDLE";case"running":return"RUNNING";case"error":return"ERROR";case"archived":return"ARCHIVED";default:throw Error("unexpected local agent status")}}function Yl(Z){switch(Z){case"QUEUED":return"queued";case"CREATING":return"running";case"RUNNING":return"running";case"FINISHED":return"finished";case"ERROR":return"error";case"CANCELLED":return"cancelled";case"EXPIRED":return"expired";default:throw Error("unexpected run lifecycle status")}}function Xl(Z){switch(Z){case"queued":return"QUEUED";case"running":return"RUNNING";case"finished":return"FINISHED";case"error":return"ERROR";case"cancelled":return"CANCELLED";case"expired":return"EXPIRED";default:throw Error("unexpected local run status")}}rQ();VQ();class tN{eventsByRunId=new Map;idempotencyKeys=new Map;async append(Z){let $=Z.idempotencyKey??null;if($){let K=this.idempotencyKeys.get(rN(Z.runId,$));if(K)return aN(K)}let J=this.eventsByRunId.get(Z.runId)??[],X=(J.at(-1)?.seq??0)+1,z={runId:Z.runId,seq:X,offset:String(X),eventType:Z.eventType,payload:Z.payload??null,payloadRef:Z.payloadRef??null,idempotencyKey:$,createdAt:Date.now()};if(J.push(z),this.eventsByRunId.set(Z.runId,J),$)this.idempotencyKeys.set(rN(Z.runId,$),z);return aN(z)}async list(Z){let $=wl(Z.afterOffset),J=Z.limit??100,Y=(this.eventsByRunId.get(Z.runId)??[]).filter((z)=>z.seq>$),X=Y.slice(0,J).map((z)=>aN(z));return{items:X,...Y.length>X.length&&X.length>0?{nextOffset:X.at(-1)?.offset}:{}}}async delete(Z){let $=Z.filter.runIds&&Z.filter.runIds.length>0?Z.filter.runIds:[...this.eventsByRunId.keys()];for(let J of $){let Y=this.eventsByRunId.get(J);if(!Y)continue;for(let X of Y)if(X.idempotencyKey)this.idempotencyKeys.delete(rN(J,X.idempotencyKey));this.eventsByRunId.delete(J)}}}function nA(Z){return{get:async({agentId:$,blobId:J})=>{let Y=Z.get($)?.get(J);return Y?sN(Y):null},create:async({agentId:$,blobId:J,data:Y})=>{let X=Z.get($);if(X?.has(J))throw Error(`Checkpoint blob ${J} already exists for agent ${$}`);if(!X)X=new Map,Z.set($,X);X.set(J,sN(Y))},update:async({agentId:$,blobId:J,data:Y})=>{let X=Z.get($);if(!X?.has(J))throw Error(`Checkpoint blob ${J} not found for agent ${$}`);X.set(J,sN(Y))},delete:async($)=>{for(let{agentId:J,blobId:Y}of Wl(Z,$.filter)){let X=Z.get(J);if(X?.delete(Y),X&&X.size===0)Z.delete(J)}},list:async($)=>{let J=$?.filter,Y=Hl(Z,J);return eN(Y,J)}}}function oN(Z,$){if(!$?.agentIds?.length&&$?.cwd===void 0)return!0;if($.agentIds?.length&&!$.agentIds.includes(Z.agentId))return!1;if($.cwd!==void 0&&Z.cwd!==$.cwd)return!1;return!0}function rA(Z){let{agentRows:$}=Z;return{get:async({agentId:J})=>{let Y=$.get(J);return Y?structuredClone(Y):null},create:async({agent:J})=>{if($.has(J.agentId))throw Error(`Agent ${J.agentId} already exists`);return $.create(J),structuredClone($.get(J.agentId))},update:async({agent:J})=>{if(!$.has(J.agentId))throw Error(`Agent ${J.agentId} not found`);return $.set(J.agentId,J),structuredClone($.get(J.agentId))},delete:async({filter:J})=>{let Y=[...$.values()].filter((X)=>oN(X,J));if(Y.length===0)throw Error("No agents matched delete filter");for(let X of Y)$.delete(X.agentId)},list:async(J)=>ZB([...$.values()],J?.filter)}}function zl(Z){return{get:($)=>Z.get($),create:($)=>{Z.set($.agentId,structuredClone($))},set:($,J)=>{Z.set($,structuredClone(J))},delete:($)=>{Z.delete($)},has:($)=>Z.has($),values:()=>Z.values()}}class Kl{agentMap=new Map;runMap=new Map;checkpointBytes=new Map;runEvents=new tN;checkpoints=nA(this.checkpointBytes);agents=rA({agentRows:zl(this.agentMap)});runs={get:async({agentId:Z,runId:$})=>{let J=this.runMap.get(eH(Z,$));return J?structuredClone(J):null},create:async({run:Z})=>{let $=eH(Z.agentId,Z.runId);if(this.runMap.has($))throw Error(`Run ${Z.runId} already exists for agent ${Z.agentId}`);return this.runMap.set($,structuredClone(Z)),structuredClone(this.runMap.get($))},update:async({run:Z})=>{let $=eH(Z.agentId,Z.runId);if(!this.runMap.has($))throw Error(`Run ${Z.runId} not found for agent ${Z.agentId}`);return this.runMap.set($,structuredClone(Z)),structuredClone(this.runMap.get($))},delete:async(Z)=>{for(let $ of aA(this.runMap.values(),Z.filter))this.runMap.delete(eH($.agentId,$.runId))},list:async(Z)=>{let $=Z?.filter,J=[...this.runMap.values()].filter((Y)=>BQ(Y,$));return $W(J,$)}}}class Ql{bundles=new Map;checkpointBytes=new Map;runEvents=new tN;checkpoints=nA(this.checkpointBytes);agents=rA({agentRows:{get:(Z)=>this.bundles.get(Z)?.agent,create:(Z)=>{this.bundles.set(Z.agentId,{agent:structuredClone(Z),runs:new Map})},set:(Z,$)=>{let J=this.bundles.get(Z);if(!J)throw Error(`Agent ${Z} not found`);this.bundles.set(Z,{agent:structuredClone($),runs:J.runs})},delete:(Z)=>{this.bundles.delete(Z)},has:(Z)=>this.bundles.has(Z),values:()=>[...this.bundles.values()].map((Z)=>Z.agent)}});runs={get:async({agentId:Z,runId:$})=>{let J=this.bundles.get(Z)?.runs.get($);return J?structuredClone(J):null},create:async({run:Z})=>{let $=this.requireBundle(Z.agentId);if($.runs.has(Z.runId))throw Error(`Run ${Z.runId} already exists for agent ${Z.agentId}`);let J=structuredClone(Z);return $.runs.set(Z.runId,J),structuredClone(J)},update:async({run:Z})=>{let $=this.bundles.get(Z.agentId);if(!$?.runs.has(Z.runId))throw Error(`Run ${Z.runId} not found for agent ${Z.agentId}`);let J=structuredClone(Z);return $.runs.set(Z.runId,J),structuredClone(J)},delete:async(Z)=>{for(let $ of aA([...this.bundles.values()].flatMap((J)=>[...J.runs.values()]),Z.filter))this.bundles.get($.agentId)?.runs.delete($.runId)},list:async(Z)=>{let $=Z?.filter,J=[...this.bundles.values()].flatMap((Y)=>[...Y.runs.values()]).filter((Y)=>BQ(Y,$));return $W(J,$)}};requireBundle(Z){let $=this.bundles.get(Z);if($)return $;let J={agent:{agentId:Z,cwd:"",status:"idle",createdAt:Date.now(),updatedAt:Date.now()},runs:new Map};return this.bundles.set(Z,J),J}}function ZW(Z,$){if(!$?.agentIds?.length&&!$?.blobIds?.length)return!0;if($.agentIds?.length&&!$.agentIds.includes(Z.agentId))return!1;if($.blobIds?.length&&!$.blobIds.includes(Z.blobId))return!1;return!0}function Hl(Z,$){let J=[];for(let[Y,X]of Z)for(let z of X.keys())if(ZW({agentId:Y,blobId:z},$))J.push(z);return J}function Wl(Z,$){let J=[];for(let[Y,X]of Z)for(let z of X.keys())if(ZW({agentId:Y,blobId:z},$))J.push({agentId:Y,blobId:z});return J}function eN(Z,$){let J=[...Z].sort((H,q)=>H.localeCompare(q)),Y=$?.limit??50,X=J;if($?.cursor)X=J.filter((H)=>H>$.cursor);let z=X.slice(0,Y),K=z.at(-1);return{items:z,...X.length>Y&&K?{nextCursor:K}:{}}}function BQ(Z,$){if(!$?.agentIds?.length&&!$?.runIds?.length)return!0;if($.agentIds?.length&&!$.agentIds.includes(Z.agentId))return!1;if($.runIds?.length&&!$.runIds.includes(Z.runId))return!1;return!0}function aA(Z,$){return[...Z].filter((J)=>BQ(J,$))}function ZB(Z,$){let Y=[...$?.cwd===void 0?Z:Z.filter((q)=>q.cwd===$.cwd)].sort(ql),X=$?.limit??50,z=Y;if($?.cursor){let q=Gl($.cursor);z=Y.filter((L)=>Bl(L,q))}let K=z.slice(0,X),H=K.at(-1);return{items:K.map((q)=>structuredClone(q)),...z.length>X&&H?{nextCursor:sA({updatedAt:H.updatedAt,agentId:H.agentId})}:{}}}function $W(Z,$){let J=[...Z].sort(Nl),Y=$?.limit??50,X=J;if($?.cursor){let H=Ll($.cursor);X=J.filter((q)=>Fl(q,H))}let z=X.slice(0,Y),K=z.at(-1);return{items:z.map((H)=>structuredClone(H)),...X.length>Y&&K?{nextCursor:sA({turnNumber:K.turnNumber,runId:K.runId})}:{}}}function ql(Z,$){if($.updatedAt!==Z.updatedAt)return $.updatedAt-Z.updatedAt;return $.agentId.localeCompare(Z.agentId)}function Nl(Z,$){if(Z.turnNumber!==$.turnNumber)return Z.turnNumber-$.turnNumber;return Z.runId.localeCompare($.runId)}function Bl(Z,$){if(Z.updatedAt<$.updatedAt)return!0;if(Z.updatedAt>$.updatedAt)return!1;return Z.agentId<$.agentId}function Fl(Z,$){if(Z.turnNumber>$.turnNumber)return!0;if(Z.turnNumber<$.turnNumber)return!1;return Z.runId>$.runId}function sA(Z){return Buffer.from(JSON.stringify(Z),"utf8").toString("base64url")}function Gl(Z){let $=tA(Z);if(typeof $.updatedAt!=="number"||typeof $.agentId!=="string")throw Error("Invalid agent list cursor");return{updatedAt:$.updatedAt,agentId:$.agentId}}function Ll(Z){let $=tA(Z);if(typeof $.turnNumber!=="number"||typeof $.runId!=="string")throw Error("Invalid run list cursor");return{turnNumber:$.turnNumber,runId:$.runId}}function Dl(Z){return typeof Z==="object"&&Z!==null&&!Array.isArray(Z)}function tA(Z){try{let $=JSON.parse(Buffer.from(Z,"base64url").toString("utf8"));if(Dl($))return $}catch{}throw Error("Invalid list cursor")}function eH(Z,$){return`${Z}:${$}`}function wl(Z){if(!Z)return 0;if(!/^\d+$/.test(Z))throw Error(`Invalid run event offset ${Z}`);let $=Number.parseInt(Z,10);if(!Number.isFinite($)||$<0)throw Error(`Invalid run event offset ${Z}`);return $}function rN(Z,$){return`${Z}:${$}`}function aN(Z){return{...Z,payload:Z.payload!==null&&typeof Z.payload==="object"?structuredClone(Z.payload):Z.payload}}function sN(Z){let $=new Uint8Array(Z.length);return $.set(Z),$}XQ();import{createHash as oA}from"crypto";import{existsSync as $B,renameSync as Ul}from"fs";import{homedir as Ol}from"os";import{join as JB}from"path";function eA(Z){let $=JB(Sq(Ol(),Z),"sdk-agent-store"),J=JB($,oA("sha256").update(Z).digest("hex"));if($B(J))return J;let Y=Il(Z);if(Y===void 0)return J;let X=JB($,Y);if(!$B(X))return J;try{return Ul(X,J),J}catch{return $B(X)?X:J}}function Il(Z){try{return oA("md5").update(Z).digest("hex")}catch($){if(kl($))return;throw $}}function kl(Z){if(!(Z instanceof Error))return!1;return Z.code==="ERR_OSSL_EVP_UNSUPPORTED"||Z.message==="Digest method not supported"}function Zp(Z){let $=new Uint8Array(Z.length);return $.set(Z),$}function uM(Z){return{runId:Z.runId,seq:Z.seq,offset:Z.offset,eventType:Z.eventType,payload:Z.payload??null,payloadRef:Z.payloadRef??null,idempotencyKey:Z.idempotencyKey??null,createdAt:Z.createdAt.getTime()}}function $p(Z){return typeof Z==="object"&&Z!==null&&"upsertAgentRecord"in Z&&typeof Z.upsertAgentRecord==="function"&&"listAllAgentRecords"in Z&&typeof Z.listAllAgentRecords==="function"}function Jp(Z){return typeof Z==="object"&&Z!==null&&"appendRunEvent"in Z&&typeof Z.appendRunEvent==="function"}function Yp(Z){return typeof Z==="object"&&Z!==null&&"listCheckpointBlobIds"in Z&&typeof Z.listCheckpointBlobIds==="function"&&"getBlobStore"in Z&&typeof Z.getBlobStore==="function"}function Xp(Z){return typeof Z==="object"&&Z!==null&&"deleteBlob"in Z&&typeof Z.deleteBlob==="function"}async function lM(Z){return(await Z.listAllAgentRecords()).map((J)=>J.agentId)}function zp(Z){return{append:async($)=>{let J=await Z.appendRunEvent({runId:$.runId,eventType:$.eventType,payload:$.payload,payloadRef:$.payloadRef,idempotencyKey:$.idempotencyKey});return uM(J)},list:async($)=>{let J=await Z.listRunEvents({runId:$.runId,afterOffset:$.afterOffset??void 0,limit:$.limit});return{items:J.events.map(uM),...J.nextOffset!==void 0?{nextOffset:J.nextOffset}:{}}},delete:async($)=>{let J=$.filter.runIds??[];for(let Y of J)await Z.deleteRunEvents({runId:Y})}}}function Kp(Z){let $=b8();return{get:async({agentId:J,blobId:Y})=>{let z=await(await Z.checkpointStore.getBlobStore(J)).getBlob($,l0(Y));return z?Zp(z):null},create:async({agentId:J,blobId:Y,data:X})=>{let z=await Z.checkpointStore.getBlobStore(J);if(await z.getBlob($,l0(Y)))throw Error(`Checkpoint blob ${Y} already exists for agent ${J}`);await z.setBlob($,l0(Y),X)},update:async({agentId:J,blobId:Y,data:X})=>{let z=await Z.checkpointStore.getBlobStore(J);if(!await z.getBlob($,l0(Y)))throw Error(`Checkpoint blob ${Y} not found for agent ${J}`);await z.setBlob($,l0(Y),X)},delete:async(J)=>{let Y=J.filter.agentIds&&J.filter.agentIds.length>0?J.filter.agentIds:await lM(Z.runStore),X=J.filter.blobIds;for(let z of Y){if(X?.length){let K=await Z.checkpointStore.getBlobStore(z);if(!Xp(K))throw Error("SqliteLocalAgentStore requires a sqlite blob store");for(let H of X)await K.deleteBlob(H);continue}await Z.checkpointStore.deleteAgent(z)}},list:async(J)=>{let Y=J?.filter,X=Y?.agentIds&&Y.agentIds.length>0?Y.agentIds:await lM(Z.runStore),z=[];for(let K of X){let H=await Z.checkpointStore.listCheckpointBlobIds(K);for(let q of H)if(ZW({agentId:K,blobId:q},Y))z.push(q)}return eN(z,Y)}}}async function Qp(Z,$){return(await Z.runStore.listAllRunRecords([$])).map((Y)=>Y.runId)}function Hp(Z){return{get:async({agentId:$})=>{let J=await Z.runStore.getAgent($);return J?qQ(J):null},create:async({agent:$})=>{if(await Z.runStore.getAgent($.agentId))throw Error(`Agent ${$.agentId} already exists`);await Z.runStore.upsertAgentRecord(tH($));let Y=await Z.runStore.getAgent($.agentId);if(!Y)throw Error(`Failed to create agent ${$.agentId}`);return qQ(Y)},update:async({agent:$})=>{if(!await Z.runStore.getAgent($.agentId))throw Error(`Agent ${$.agentId} not found`);await Z.runStore.upsertAgentRecord(tH($));let Y=await Z.runStore.getAgent($.agentId);if(!Y)throw Error(`Failed to update agent ${$.agentId}`);return qQ(Y)},delete:async({filter:$})=>{let J=(await Z.runStore.listAllAgentRecords()).map(qQ).filter((Y)=>oN(Y,$));if(J.length===0)throw Error("No agents matched delete filter");for(let Y of J){let X=await Qp(Z,Y.agentId);for(let z of X)await Z.eventStore.deleteRunEvents({runId:z});await Z.checkpointStore.deleteAgent(Y.agentId),await Z.runStore.deleteAgent(Y.agentId)}},list:async($)=>{let J=(await Z.runStore.listAllAgentRecords()).map(qQ);return ZB(J,$?.filter)}}}function Wp(Z){return{get:async({agentId:$,runId:J})=>{let Y=await Z.runStore.getRun($,J);return Y?NQ(Y):null},create:async({run:$})=>{if(await Z.runStore.getRun($.agentId,$.runId))throw Error(`Run ${$.runId} already exists for agent ${$.agentId}`);await Z.runStore.upsertRunRecord(oH($));let Y=await Z.runStore.getRun($.agentId,$.runId);if(!Y)throw Error(`Failed to create run ${$.runId} for agent ${$.agentId}`);return NQ(Y)},update:async({run:$})=>{if(!await Z.runStore.getRun($.agentId,$.runId))throw Error(`Run ${$.runId} not found for agent ${$.agentId}`);await Z.runStore.upsertRunRecord(oH($));let Y=await Z.runStore.getRun($.agentId,$.runId);if(!Y)throw Error(`Failed to update run ${$.runId} for agent ${$.agentId}`);return NQ(Y)},delete:async($)=>{let J=$.filter,Y=J?.agentIds&&J.agentIds.length>0?J.agentIds:void 0,X=(await Z.runStore.listAllRunRecords(Y)).map(NQ).filter((z)=>BQ(z,J));if(X.length===0)return;for(let z of X)await Z.eventStore.deleteRunEvents({runId:z.runId});await Z.runStore.deleteRunRecordsByKeys(X.map((z)=>({agentId:z.agentId,runId:z.runId})))},list:async($)=>{let J=$?.filter,X=(await Z.runStore.listAllRunRecords(J?.agentIds)).map(NQ).filter((z)=>BQ(z,J));return $W(X,J)}}}class LB{stateRoot;workspaceRef;agents;checkpoints;runs;runEvents;deps;static async open(Z){let $=Z.stateRoot??eA(Z.workspaceRef),{createDefaultLocalAgentStores:J}=await Promise.resolve().then(() => (dM(),cM)),Y=await J({stateRoot:$,workspaceRef:Z.workspaceRef}),X=Y.store,z=Y.eventStore,K=Y.checkpointStore;if(!$p(X))throw Error("SqliteLocalAgentStore requires SqliteAgentRunStore from local runtime");if(!Jp(z))throw Error("SqliteLocalAgentStore requires SqliteRunEventStore from local runtime");if(!Yp(K))throw Error("SqliteLocalAgentStore requires LocalAgentCheckpointStore from local runtime");return new LB({stateRoot:$,workspaceRef:Z.workspaceRef,runStore:X,checkpointStore:K,eventStore:z})}constructor(Z){this.stateRoot=Z.stateRoot,this.workspaceRef=Z.workspaceRef,this.deps={runStore:Z.runStore,checkpointStore:Z.checkpointStore,eventStore:Z.eventStore},this.agents=Hp(this.deps),this.checkpoints=Kp(this.deps),this.runs=Wp(this.deps),this.runEvents=zp(Z.eventStore)}async dispose(){await Promise.all([this.deps.runStore.dispose(),this.deps.eventStore.dispose(),this.deps.checkpointStore.dispose()])}}export{LB as SqliteLocalAgentStore};
|
|
155
|
+
WHERE idempotency_key IS NOT NULL`)}var SM=O(()=>{YW()});var uM={};I6(uM,{createDefaultLocalRunEventStore:()=>cM,createDefaultLocalRunEventNotifier:()=>dM,createDefaultLocalAgentStores:()=>Jp,createDefaultLocalAgentRunStore:()=>bM,createDefaultLocalAgentCheckpointStore:()=>gM});async function gM(Z){let{LocalAgentCheckpointStore:$}=await Promise.resolve().then(() => (AM(),VM));return new $({stateRoot:Z.stateRoot})}async function bM(Z){let{SqliteAgentRunStore:$}=await Promise.resolve().then(() => (yM(),vM));return $.open(Z)}async function cM(Z){let{SqliteRunEventStore:$}=await Promise.resolve().then(() => (SM(),_M));return $.open(Z)}function dM(){return YM()}async function Jp(Z){return{store:await bM(Z),checkpointStore:await gM(Z),eventStore:await cM(Z),eventNotifier:dM()}}var lM=()=>{};sQ();l0();function NQ(Z){return{agentId:Z.agentId,cwd:Z.workspaceRef,status:Xl(Z.status),activeRunId:Z.activeRunId??null,latestCheckpoint:Z.latestCheckpointRef?nN(Z.latestCheckpointRef):null,name:Z.name??null,createdAt:Z.createdAt.getTime(),updatedAt:Z.updatedAt.getTime(),sdkMetadata:Z.metadata}}function BQ(Z){let $=Z.finishedAt?.getTime()??Z.cancelledAt?.getTime()??Z.expiredAt?.getTime()??null;return{runId:Z.runId,requestId:Z.requestId??null,agentId:Z.agentId,turnNumber:Z.turnNumber,status:Kl(Z.status),model:Z.model??null,result:Z.result??null,error:Z.errorCode??null,usageRef:Z.usageRef??null,usage:Z.usage??null,createdAt:Z.createdAt.getTime(),updatedAt:Z.updatedAt.getTime(),startedAt:Z.startedAt?.getTime()??null,endedAt:$,startCheckpointRef:Z.startCheckpointRef?nN(Z.startCheckpointRef):null,latestCheckpointRef:Z.latestCheckpointRef?nN(Z.latestCheckpointRef):null}}function oH(Z){return{agentId:Z.agentId,workspaceRef:Z.cwd,status:zl(Z.status),activeRunId:Z.activeRunId??null,latestCheckpointRef:Z.latestCheckpoint?rN(Z.latestCheckpoint):null,name:Z.name??null,createdAt:new Date(Z.createdAt),updatedAt:new Date(Z.updatedAt),metadata:Z.sdkMetadata??{}}}function eH(Z){let $=Ql(Z.status),J=Z.endedAt?new Date(Z.endedAt):null;return{runId:Z.runId,requestId:Z.requestId??null,agentId:Z.agentId,turnNumber:Z.turnNumber,status:$,model:Z.model??null,startCheckpointRef:Z.startCheckpointRef?rN(Z.startCheckpointRef):null,latestCheckpointRef:Z.latestCheckpointRef?rN(Z.latestCheckpointRef):null,errorCode:Z.error??null,result:Z.result??null,usageRef:Z.usageRef??null,usage:Z.usage??null,createdAt:new Date(Z.createdAt),updatedAt:new Date(Z.updatedAt),startedAt:Z.startedAt?new Date(Z.startedAt):null,finishedAt:$==="FINISHED"?J:null,cancelledAt:$==="CANCELLED"?J:null,expiredAt:$==="EXPIRED"?J:null}}function nN(Z){return{schemaVersion:1,rootBlobId:Z.blobId}}function rN(Z){return{blobId:Z.rootBlobId,storeKind:"local-agent-store"}}function Xl(Z){switch(Z){case"IDLE":return"idle";case"RUNNING":return"running";case"ERROR":return"error";case"ARCHIVED":return"archived";default:throw Error("unexpected agent lifecycle status")}}function zl(Z){switch(Z){case"idle":return"IDLE";case"running":return"RUNNING";case"error":return"ERROR";case"archived":return"ARCHIVED";default:throw Error("unexpected local agent status")}}function Kl(Z){switch(Z){case"QUEUED":return"queued";case"CREATING":return"running";case"RUNNING":return"running";case"FINISHED":return"finished";case"ERROR":return"error";case"CANCELLED":return"cancelled";case"EXPIRED":return"expired";default:throw Error("unexpected run lifecycle status")}}function Ql(Z){switch(Z){case"queued":return"QUEUED";case"running":return"RUNNING";case"finished":return"FINISHED";case"error":return"ERROR";case"cancelled":return"CANCELLED";case"expired":return"EXPIRED";default:throw Error("unexpected local run status")}}sQ();MQ();class oN{eventsByRunId=new Map;idempotencyKeys=new Map;async append(Z){let $=Z.idempotencyKey??null;if($){let K=this.idempotencyKeys.get(aN(Z.runId,$));if(K)return sN(K)}let J=this.eventsByRunId.get(Z.runId)??[],X=(J.at(-1)?.seq??0)+1,z={runId:Z.runId,seq:X,offset:String(X),eventType:Z.eventType,payload:Z.payload??null,payloadRef:Z.payloadRef??null,idempotencyKey:$,createdAt:Date.now()};if(J.push(z),this.eventsByRunId.set(Z.runId,J),$)this.idempotencyKeys.set(aN(Z.runId,$),z);return sN(z)}async list(Z){let $=Il(Z.afterOffset),J=Z.limit??100,Y=(this.eventsByRunId.get(Z.runId)??[]).filter((z)=>z.seq>$),X=Y.slice(0,J).map((z)=>sN(z));return{items:X,...Y.length>X.length&&X.length>0?{nextOffset:X.at(-1)?.offset}:{}}}async delete(Z){let $=Z.filter.runIds&&Z.filter.runIds.length>0?Z.filter.runIds:[...this.eventsByRunId.keys()];for(let J of $){let Y=this.eventsByRunId.get(J);if(!Y)continue;for(let X of Y)if(X.idempotencyKey)this.idempotencyKeys.delete(aN(J,X.idempotencyKey));this.eventsByRunId.delete(J)}}}function aA(Z){return{get:async({agentId:$,blobId:J})=>{let Y=Z.get($)?.get(J);return Y?tN(Y):null},create:async({agentId:$,blobId:J,data:Y})=>{let X=Z.get($);if(X?.has(J))throw Error(`Checkpoint blob ${J} already exists for agent ${$}`);if(!X)X=new Map,Z.set($,X);X.set(J,tN(Y))},update:async({agentId:$,blobId:J,data:Y})=>{let X=Z.get($);if(!X?.has(J))throw Error(`Checkpoint blob ${J} not found for agent ${$}`);X.set(J,tN(Y))},delete:async($)=>{for(let{agentId:J,blobId:Y}of Bl(Z,$.filter)){let X=Z.get(J);if(X?.delete(Y),X&&X.size===0)Z.delete(J)}},list:async($)=>{let J=$?.filter,Y=Nl(Z,J);return ZB(Y,J)}}}function eN(Z,$){if(!$?.agentIds?.length&&$?.cwd===void 0)return!0;if($.agentIds?.length&&!$.agentIds.includes(Z.agentId))return!1;if($.cwd!==void 0&&Z.cwd!==$.cwd)return!1;return!0}function sA(Z){let{agentRows:$}=Z;return{get:async({agentId:J})=>{let Y=$.get(J);return Y?structuredClone(Y):null},create:async({agent:J})=>{if($.has(J.agentId))throw Error(`Agent ${J.agentId} already exists`);return $.create(J),structuredClone($.get(J.agentId))},update:async({agent:J})=>{if(!$.has(J.agentId))throw Error(`Agent ${J.agentId} not found`);return $.set(J.agentId,J),structuredClone($.get(J.agentId))},delete:async({filter:J})=>{let Y=[...$.values()].filter((X)=>eN(X,J));if(Y.length===0)throw Error("No agents matched delete filter");for(let X of Y)$.delete(X.agentId)},list:async(J)=>$B([...$.values()],J?.filter)}}function Hl(Z){return{get:($)=>Z.get($),create:($)=>{Z.set($.agentId,structuredClone($))},set:($,J)=>{Z.set($,structuredClone(J))},delete:($)=>{Z.delete($)},has:($)=>Z.has($),values:()=>Z.values()}}class Wl{agentMap=new Map;runMap=new Map;checkpointBytes=new Map;runEvents=new oN;checkpoints=aA(this.checkpointBytes);agents=sA({agentRows:Hl(this.agentMap)});runs={get:async({agentId:Z,runId:$})=>{let J=this.runMap.get(ZW(Z,$));return J?structuredClone(J):null},create:async({run:Z})=>{let $=ZW(Z.agentId,Z.runId);if(this.runMap.has($))throw Error(`Run ${Z.runId} already exists for agent ${Z.agentId}`);return this.runMap.set($,structuredClone(Z)),structuredClone(this.runMap.get($))},update:async({run:Z})=>{let $=ZW(Z.agentId,Z.runId);if(!this.runMap.has($))throw Error(`Run ${Z.runId} not found for agent ${Z.agentId}`);return this.runMap.set($,structuredClone(Z)),structuredClone(this.runMap.get($))},delete:async(Z)=>{for(let $ of tA(this.runMap.values(),Z.filter))this.runMap.delete(ZW($.agentId,$.runId))},list:async(Z)=>{let $=Z?.filter,J=[...this.runMap.values()].filter((Y)=>FQ(Y,$));return JW(J,$)}}}class ql{bundles=new Map;checkpointBytes=new Map;runEvents=new oN;checkpoints=aA(this.checkpointBytes);agents=sA({agentRows:{get:(Z)=>this.bundles.get(Z)?.agent,create:(Z)=>{this.bundles.set(Z.agentId,{agent:structuredClone(Z),runs:new Map})},set:(Z,$)=>{let J=this.bundles.get(Z);if(!J)throw Error(`Agent ${Z} not found`);this.bundles.set(Z,{agent:structuredClone($),runs:J.runs})},delete:(Z)=>{this.bundles.delete(Z)},has:(Z)=>this.bundles.has(Z),values:()=>[...this.bundles.values()].map((Z)=>Z.agent)}});runs={get:async({agentId:Z,runId:$})=>{let J=this.bundles.get(Z)?.runs.get($);return J?structuredClone(J):null},create:async({run:Z})=>{let $=this.requireBundle(Z.agentId);if($.runs.has(Z.runId))throw Error(`Run ${Z.runId} already exists for agent ${Z.agentId}`);let J=structuredClone(Z);return $.runs.set(Z.runId,J),structuredClone(J)},update:async({run:Z})=>{let $=this.bundles.get(Z.agentId);if(!$?.runs.has(Z.runId))throw Error(`Run ${Z.runId} not found for agent ${Z.agentId}`);let J=structuredClone(Z);return $.runs.set(Z.runId,J),structuredClone(J)},delete:async(Z)=>{for(let $ of tA([...this.bundles.values()].flatMap((J)=>[...J.runs.values()]),Z.filter))this.bundles.get($.agentId)?.runs.delete($.runId)},list:async(Z)=>{let $=Z?.filter,J=[...this.bundles.values()].flatMap((Y)=>[...Y.runs.values()]).filter((Y)=>FQ(Y,$));return JW(J,$)}};requireBundle(Z){let $=this.bundles.get(Z);if($)return $;let J={agent:{agentId:Z,cwd:"",status:"idle",createdAt:Date.now(),updatedAt:Date.now()},runs:new Map};return this.bundles.set(Z,J),J}}function $W(Z,$){if(!$?.agentIds?.length&&!$?.blobIds?.length)return!0;if($.agentIds?.length&&!$.agentIds.includes(Z.agentId))return!1;if($.blobIds?.length&&!$.blobIds.includes(Z.blobId))return!1;return!0}function Nl(Z,$){let J=[];for(let[Y,X]of Z)for(let z of X.keys())if($W({agentId:Y,blobId:z},$))J.push(z);return J}function Bl(Z,$){let J=[];for(let[Y,X]of Z)for(let z of X.keys())if($W({agentId:Y,blobId:z},$))J.push({agentId:Y,blobId:z});return J}function ZB(Z,$){let J=[...Z].sort((H,q)=>H.localeCompare(q)),Y=$?.limit??50,X=J;if($?.cursor)X=J.filter((H)=>H>$.cursor);let z=X.slice(0,Y),K=z.at(-1);return{items:z,...X.length>Y&&K?{nextCursor:K}:{}}}function FQ(Z,$){if(!$?.agentIds?.length&&!$?.runIds?.length)return!0;if($.agentIds?.length&&!$.agentIds.includes(Z.agentId))return!1;if($.runIds?.length&&!$.runIds.includes(Z.runId))return!1;return!0}function tA(Z,$){return[...Z].filter((J)=>FQ(J,$))}function $B(Z,$){let Y=[...$?.cwd===void 0?Z:Z.filter((q)=>q.cwd===$.cwd)].sort(Fl),X=$?.limit??50,z=Y;if($?.cursor){let q=wl($.cursor);z=Y.filter((L)=>Ll(L,q))}let K=z.slice(0,X),H=K.at(-1);return{items:K.map((q)=>structuredClone(q)),...z.length>X&&H?{nextCursor:oA({updatedAt:H.updatedAt,agentId:H.agentId})}:{}}}function JW(Z,$){let J=[...Z].sort(Gl),Y=$?.limit??50,X=J;if($?.cursor){let H=Ul($.cursor);X=J.filter((q)=>Dl(q,H))}let z=X.slice(0,Y),K=z.at(-1);return{items:z.map((H)=>structuredClone(H)),...X.length>Y&&K?{nextCursor:oA({turnNumber:K.turnNumber,runId:K.runId})}:{}}}function Fl(Z,$){if($.updatedAt!==Z.updatedAt)return $.updatedAt-Z.updatedAt;return $.agentId.localeCompare(Z.agentId)}function Gl(Z,$){if(Z.turnNumber!==$.turnNumber)return Z.turnNumber-$.turnNumber;return Z.runId.localeCompare($.runId)}function Ll(Z,$){if(Z.updatedAt<$.updatedAt)return!0;if(Z.updatedAt>$.updatedAt)return!1;return Z.agentId<$.agentId}function Dl(Z,$){if(Z.turnNumber>$.turnNumber)return!0;if(Z.turnNumber<$.turnNumber)return!1;return Z.runId>$.runId}function oA(Z){return Buffer.from(JSON.stringify(Z),"utf8").toString("base64url")}function wl(Z){let $=eA(Z);if(typeof $.updatedAt!=="number"||typeof $.agentId!=="string")throw Error("Invalid agent list cursor");return{updatedAt:$.updatedAt,agentId:$.agentId}}function Ul(Z){let $=eA(Z);if(typeof $.turnNumber!=="number"||typeof $.runId!=="string")throw Error("Invalid run list cursor");return{turnNumber:$.turnNumber,runId:$.runId}}function Ol(Z){return typeof Z==="object"&&Z!==null&&!Array.isArray(Z)}function eA(Z){try{let $=JSON.parse(Buffer.from(Z,"base64url").toString("utf8"));if(Ol($))return $}catch{}throw Error("Invalid list cursor")}function ZW(Z,$){return`${Z}:${$}`}function Il(Z){if(!Z)return 0;if(!/^\d+$/.test(Z))throw Error(`Invalid run event offset ${Z}`);let $=Number.parseInt(Z,10);if(!Number.isFinite($)||$<0)throw Error(`Invalid run event offset ${Z}`);return $}function aN(Z,$){return`${Z}:${$}`}function sN(Z){return{...Z,payload:Z.payload!==null&&typeof Z.payload==="object"?structuredClone(Z.payload):Z.payload}}function tN(Z){let $=new Uint8Array(Z.length);return $.set(Z),$}zQ();import{createHash as ZM}from"crypto";import{existsSync as JB,renameSync as kl}from"fs";import{homedir as Pl}from"os";import{join as YB}from"path";function $M(Z){let $=YB(gq(Pl(),Z),"sdk-agent-store"),J=YB($,ZM("sha256").update(Z).digest("hex"));if(JB(J))return J;let Y=El(Z);if(Y===void 0)return J;let X=YB($,Y);if(!JB(X))return J;try{return kl(X,J),J}catch{return JB(X)?X:J}}function El(Z){try{return ZM("md5").update(Z).digest("hex")}catch($){if(fl($))return;throw $}}function fl(Z){if(!(Z instanceof Error))return!1;return Z.code==="ERR_OSSL_EVP_UNSUPPORTED"||Z.message==="Digest method not supported"}function Yp(Z){let $=new Uint8Array(Z.length);return $.set(Z),$}function pM(Z){return{runId:Z.runId,seq:Z.seq,offset:Z.offset,eventType:Z.eventType,payload:Z.payload??null,payloadRef:Z.payloadRef??null,idempotencyKey:Z.idempotencyKey??null,createdAt:Z.createdAt.getTime()}}function Xp(Z){return typeof Z==="object"&&Z!==null&&"upsertAgentRecord"in Z&&typeof Z.upsertAgentRecord==="function"&&"listAllAgentRecords"in Z&&typeof Z.listAllAgentRecords==="function"}function zp(Z){return typeof Z==="object"&&Z!==null&&"appendRunEvent"in Z&&typeof Z.appendRunEvent==="function"}function Kp(Z){return typeof Z==="object"&&Z!==null&&"listCheckpointBlobIds"in Z&&typeof Z.listCheckpointBlobIds==="function"&&"getBlobStore"in Z&&typeof Z.getBlobStore==="function"}function Qp(Z){return typeof Z==="object"&&Z!==null&&"deleteBlob"in Z&&typeof Z.deleteBlob==="function"}async function iM(Z){return(await Z.listAllAgentRecords()).map((J)=>J.agentId)}function Hp(Z){return{append:async($)=>{let J=await Z.appendRunEvent({runId:$.runId,eventType:$.eventType,payload:$.payload,payloadRef:$.payloadRef,idempotencyKey:$.idempotencyKey});return pM(J)},list:async($)=>{let J=await Z.listRunEvents({runId:$.runId,afterOffset:$.afterOffset??void 0,limit:$.limit});return{items:J.events.map(pM),...J.nextOffset!==void 0?{nextOffset:J.nextOffset}:{}}},delete:async($)=>{let J=$.filter.runIds??[];for(let Y of J)await Z.deleteRunEvents({runId:Y})}}}function Wp(Z){let $=b8();return{get:async({agentId:J,blobId:Y})=>{let z=await(await Z.checkpointStore.getBlobStore(J)).getBlob($,p0(Y));return z?Yp(z):null},create:async({agentId:J,blobId:Y,data:X})=>{let z=await Z.checkpointStore.getBlobStore(J);if(await z.getBlob($,p0(Y)))throw Error(`Checkpoint blob ${Y} already exists for agent ${J}`);await z.setBlob($,p0(Y),X)},update:async({agentId:J,blobId:Y,data:X})=>{let z=await Z.checkpointStore.getBlobStore(J);if(!await z.getBlob($,p0(Y)))throw Error(`Checkpoint blob ${Y} not found for agent ${J}`);await z.setBlob($,p0(Y),X)},delete:async(J)=>{let Y=J.filter.agentIds&&J.filter.agentIds.length>0?J.filter.agentIds:await iM(Z.runStore),X=J.filter.blobIds;for(let z of Y){if(X?.length){let K=await Z.checkpointStore.getBlobStore(z);if(!Qp(K))throw Error("SqliteLocalAgentStore requires a sqlite blob store");for(let H of X)await K.deleteBlob(H);continue}await Z.checkpointStore.deleteAgent(z)}},list:async(J)=>{let Y=J?.filter,X=Y?.agentIds&&Y.agentIds.length>0?Y.agentIds:await iM(Z.runStore),z=[];for(let K of X){let H=await Z.checkpointStore.listCheckpointBlobIds(K);for(let q of H)if($W({agentId:K,blobId:q},Y))z.push(q)}return ZB(z,Y)}}}async function qp(Z,$){return(await Z.runStore.listAllRunRecords([$])).map((Y)=>Y.runId)}function Np(Z){return{get:async({agentId:$})=>{let J=await Z.runStore.getAgent($);return J?NQ(J):null},create:async({agent:$})=>{if(await Z.runStore.getAgent($.agentId))throw Error(`Agent ${$.agentId} already exists`);await Z.runStore.upsertAgentRecord(oH($));let Y=await Z.runStore.getAgent($.agentId);if(!Y)throw Error(`Failed to create agent ${$.agentId}`);return NQ(Y)},update:async({agent:$})=>{if(!await Z.runStore.getAgent($.agentId))throw Error(`Agent ${$.agentId} not found`);await Z.runStore.upsertAgentRecord(oH($));let Y=await Z.runStore.getAgent($.agentId);if(!Y)throw Error(`Failed to update agent ${$.agentId}`);return NQ(Y)},delete:async({filter:$})=>{let J=(await Z.runStore.listAllAgentRecords()).map(NQ).filter((Y)=>eN(Y,$));if(J.length===0)throw Error("No agents matched delete filter");for(let Y of J){let X=await qp(Z,Y.agentId);for(let z of X)await Z.eventStore.deleteRunEvents({runId:z});await Z.checkpointStore.deleteAgent(Y.agentId),await Z.runStore.deleteAgent(Y.agentId)}},list:async($)=>{let J=(await Z.runStore.listAllAgentRecords()).map(NQ);return $B(J,$?.filter)}}}function Bp(Z){return{get:async({agentId:$,runId:J})=>{let Y=await Z.runStore.getRun($,J);return Y?BQ(Y):null},create:async({run:$})=>{if(await Z.runStore.getRun($.agentId,$.runId))throw Error(`Run ${$.runId} already exists for agent ${$.agentId}`);await Z.runStore.upsertRunRecord(eH($));let Y=await Z.runStore.getRun($.agentId,$.runId);if(!Y)throw Error(`Failed to create run ${$.runId} for agent ${$.agentId}`);return BQ(Y)},update:async({run:$})=>{if(!await Z.runStore.getRun($.agentId,$.runId))throw Error(`Run ${$.runId} not found for agent ${$.agentId}`);await Z.runStore.upsertRunRecord(eH($));let Y=await Z.runStore.getRun($.agentId,$.runId);if(!Y)throw Error(`Failed to update run ${$.runId} for agent ${$.agentId}`);return BQ(Y)},delete:async($)=>{let J=$.filter,Y=J?.agentIds&&J.agentIds.length>0?J.agentIds:void 0,X=(await Z.runStore.listAllRunRecords(Y)).map(BQ).filter((z)=>FQ(z,J));if(X.length===0)return;for(let z of X)await Z.eventStore.deleteRunEvents({runId:z.runId});await Z.runStore.deleteRunRecordsByKeys(X.map((z)=>({agentId:z.agentId,runId:z.runId})))},list:async($)=>{let J=$?.filter,X=(await Z.runStore.listAllRunRecords(J?.agentIds)).map(BQ).filter((z)=>FQ(z,J));return JW(X,J)}}}class DB{stateRoot;workspaceRef;agents;checkpoints;runs;runEvents;deps;static async open(Z){let $=Z.stateRoot??$M(Z.workspaceRef),{createDefaultLocalAgentStores:J}=await Promise.resolve().then(() => (lM(),uM)),Y=await J({stateRoot:$,workspaceRef:Z.workspaceRef}),X=Y.store,z=Y.eventStore,K=Y.checkpointStore;if(!Xp(X))throw Error("SqliteLocalAgentStore requires SqliteAgentRunStore from local runtime");if(!zp(z))throw Error("SqliteLocalAgentStore requires SqliteRunEventStore from local runtime");if(!Kp(K))throw Error("SqliteLocalAgentStore requires LocalAgentCheckpointStore from local runtime");return new DB({stateRoot:$,workspaceRef:Z.workspaceRef,runStore:X,checkpointStore:K,eventStore:z})}constructor(Z){this.stateRoot=Z.stateRoot,this.workspaceRef=Z.workspaceRef,this.deps={runStore:Z.runStore,checkpointStore:Z.checkpointStore,eventStore:Z.eventStore},this.agents=Np(this.deps),this.checkpoints=Wp(this.deps),this.runs=Bp(this.deps),this.runEvents=Hp(Z.eventStore)}async dispose(){await Promise.all([this.deps.runStore.dispose(),this.deps.eventStore.dispose(),this.deps.checkpointStore.dispose()])}}export{DB as SqliteLocalAgentStore};
|