@cursor/sdk 1.0.35 → 1.0.36
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 +266 -266
- package/dist/bundled/sqlite.js +21 -21
- package/dist/cjs/{458.js → 478.js} +3 -3
- package/dist/cjs/856.js +1 -1
- package/dist/cjs/867.js +1 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/sqlite.js +1 -1
- package/dist/esm/{458.js → 478.js} +3 -3
- package/dist/esm/856.js +1 -1
- package/dist/esm/867.js +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/sqlite.js +1 -1
- package/package.json +14 -14
- package/dist/cjs/689.js +0 -1
- package/dist/esm/689.js +0 -1
- /package/dist/cjs/{458.js.LICENSE.txt → 478.js.LICENSE.txt} +0 -0
- /package/dist/esm/{458.js.LICENSE.txt → 478.js.LICENSE.txt} +0 -0
package/dist/bundled/sqlite.js
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
var JM=Object.create;var{getPrototypeOf:YM,defineProperty:TQ,getOwnPropertyNames:XM}=Object;var zM=Object.prototype.hasOwnProperty;var _N=(Z,$,J)=>{J=Z!=null?JM(YM(Z)):{};let Y=$||!Z||!Z.__esModule?TQ(J,"default",{value:Z,enumerable:!0}):J;for(let X of XM(Z))if(!zM.call(Y,X))TQ(Y,X,{get:()=>Z[X],enumerable:!0});return Y};var q=(Z,$)=>()=>($||Z(($={exports:{}}).exports,$),$.exports);var P8=(Z,$)=>{for(var J in $)TQ(Z,J,{get:$[J],enumerable:!0,configurable:!0,set:(Y)=>$[J]=()=>Y})};var I=(Z,$)=>()=>(Z&&($=Z(Z=0)),$);import{Message as KM}from"@bufbuild/protobuf";function N(Z,$,J){return Object.defineProperty(Z,$,{value:J,writable:!0,enumerable:!0,configurable:!0}),J}function SN(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 HM(Z,$){let J=$[0].split("|"),Y=$.slice(1),X=[];for(let z=1;z<J.length;z++){let K=J[z].split(" "),Q=Number(K[0]),W=K[1],G=K[2],L=K[3],O=G.charAt(G.length-1);if(O==="?"||O==="*")L=O,G=G.slice(0,-1);let f=G.indexOf(",");if(f!==-1){X.push({no:Q,name:W,kind:"map",K:Number(G.slice(0,f)),V:SN(Z,Y,G.slice(f+1))});continue}let P=Object.assign({no:Q,name:W},SN(Z,Y,G));if(L==="?")P.opt=!0;else if(L==="*")P.repeated=!0;else if(L!==void 0)P.oneof=L;X.push(P)}return X}function QM(Z){let $=Z[0],J=$.indexOf("|");return J===-1?$:$.slice(0,J)}function qM(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 WM(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,Q;if(X===1){let L=WM(z);Q=Y.map((O)=>O[1]),K=Q.map((O)=>L+O)}else K=Y.map((L)=>L[1]),Q=X===void 0?qM(z,K):X;let W={},G=[];for(let L=0;L<Y.length;L++){let O=Y[L][0];W[Q[L]]=O,W[O]=Q[L],G.push({no:O,name:K[L]})}return Z.util.setEnumType(W,$+J,G),W}var B;var k=I(()=>{B=class B extends KM{static get typeName(){let Z=this;return N(Z,"typeName",Z.$p()+QM(Z.$()))}static get fields(){let Z=this,$=Z.$(),J=Z.runtime,Y=()=>HM(J,$);return N(Z,"fields",J.util.newFieldList(Y))}}});import{Message as Xl,proto3 as R}from"@bufbuild/protobuf";var cK="agent.v1.",P0,V8,RQ,gN,yQ,u6,K9,H9,Q9,q9,W9,N9,B9,F9,G9,L9,w9,D9;var bN=I(()=>{k();P0=class P0 extends B{static get runtime(){return N(this,"runtime",R)}static $p(){return cK}};V8=w(R,cK,"SubagentExecutionEnvironment",[[0,"UNSPECIFIED"],[1,"LOCAL"],[2,"CLOUD"]],1),RQ=w(R,cK,"SubagentBackgroundReason",[[0,"UNSPECIFIED"],[1,"AGENT_REQUEST"],[2,"USER_REQUEST"],[3,"QUEUED_FOLLOW_UP"]],1),gN=w(R,cK,"BackgroundTaskCompletionReason",[[0,"UNSPECIFIED"],[1,"TASK_FINISHED"],[2,"TASK_PROGRESS"],[3,"WORKER_REPARENTED"],[4,"WORKER_MESSAGE"],[5,"WORKER_NEEDS_ATTENTION"]],1),yQ=w(R,cK,"TaskMode",[[0,"UNSPECIFIED"],[1,"AGENT"],[2,"PLAN"]],1);u6=class u6 extends P0{constructor(Z){super();this.type={case:void 0},R.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 R.util.equals(u6,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",K9,H9,D9,Q9,q9,W9,B9,N9,F9,G9,L9,w9]}};K9=class K9 extends P0{constructor(Z){super();R.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 R.util.equals(K9,Z,$)}static $(){return["SubagentTypeUnspecified"]}};H9=class H9 extends P0{constructor(Z){super();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["SubagentTypeComputerUse"]}};Q9=class Q9 extends P0{constructor(Z){super();R.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 R.util.equals(Q9,Z,$)}static $(){return["SubagentTypeExplore"]}};q9=class q9 extends P0{constructor(Z){super();R.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 R.util.equals(q9,Z,$)}static $(){return["SubagentTypeMediaReview"]}};W9=class W9 extends P0{constructor(Z){super();R.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 R.util.equals(W9,Z,$)}static $(){return["SubagentTypeBash"]}};N9=class N9 extends P0{constructor(Z){super();R.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 R.util.equals(N9,Z,$)}static $(){return["SubagentTypeShell"]}};B9=class B9 extends P0{constructor(Z){super();R.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 R.util.equals(B9,Z,$)}static $(){return["SubagentTypeBrowserUse"]}};F9=class F9 extends P0{constructor(Z){super();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["SubagentTypeVmSetupHelper"]}};G9=class G9 extends P0{constructor(Z){super();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["SubagentTypeDebug"]}};L9=class L9 extends P0{constructor(Z){super();R.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 R.util.equals(L9,Z,$)}static $(){return["SubagentTypeCursorGuide"]}};w9=class w9 extends P0{constructor(Z){super();R.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 R.util.equals(w9,Z,$)}static $(){return["SubagentTypeWatchVideo"]}};D9=class D9 extends P0{constructor(Z){super();this.name="",R.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 R.util.equals(D9,Z,$)}static $(){return["SubagentTypeCustom|1 name 9"]}}});import{Message as Ql,proto3 as I6}from"@bufbuild/protobuf";var kH="agent.v1.",fH,I9,U9,NM,_0,dN,cN;var EH=I(()=>{k();fH=class fH extends B{static get runtime(){return N(this,"runtime",I6)}static $p(){return kH}};I9=class I9 extends fH{constructor(Z){super();I6.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 I6.util.equals(I9,Z,$)}static $(){return["NetworkPolicyLoggingConfig|1 decision_log_path 9?|2 log_format 9?"]}};U9=class U9 extends fH{constructor(Z){super();this.deny=[],this.allow=[],I6.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 I6.util.equals(U9,Z,$)}static $(){return["NetworkPolicy|1 version 13?|2 default_action #0?|3 deny 9*|4 allow 9*|5 logging #1?",NM,I9]}};NM=w(I6,kH,"NetworkPolicy.DefaultAction",[[0,"UNSPECIFIED"],[1,"ALLOW"],[2,"DENY"]],1);_0=class _0 extends fH{constructor(Z){super();this.type=dN.UNSPECIFIED,this.additionalReadwritePaths=[],this.additionalReadonlyPaths=[],this.readBoundary=cN.UNSPECIFIED,this.additionalReadPaths=[],I6.util.initPartial(Z,this)}static fromBinary(Z,$){return new _0().fromBinary(Z,$)}static fromJson(Z,$){return new _0().fromJson(Z,$)}static fromJsonString(Z,$){return new _0().fromJsonString(Z,$)}static equals(Z,$){return I6.util.equals(_0,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*",dN,U9,cN]}};dN=w(I6,kH,"SandboxPolicy.Type",[[0,"UNSPECIFIED"],[1,"INSECURE_NONE"],[2,"WORKSPACE_READWRITE"],[3,"WORKSPACE_READONLY"]],1),cN=w(I6,kH,"SandboxPolicy.ReadBoundaryMode",[[0,"UNSPECIFIED"],[1,"SYSTEM"],[2,"WORKSPACE"]],1)});import{Message as Bl,proto3 as A6,protoInt64 as uN}from"@bufbuild/protobuf";var BM="agent.v1.",uK,l6,p6,q0,i0;var x8=I(()=>{k();uK=class uK extends B{static get runtime(){return N(this,"runtime",A6)}static $p(){return BM}};l6=class l6 extends uK{constructor(Z){super();A6.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 A6.util.equals(l6,Z,$)}static $(){return["Range|1 start #0|2 end #0",p6]}};p6=class p6 extends uK{constructor(Z){super();this.line=0,this.column=0,A6.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 A6.util.equals(p6,Z,$)}static $(){return["Position|1 line 13|2 column 13"]}};q0=class q0 extends uK{constructor(Z){super();this.filePath="",this.sizeBytes=uN.zero,this.lineCount=uN.zero,A6.util.initPartial(Z,this)}static fromBinary(Z,$){return new q0().fromBinary(Z,$)}static fromJson(Z,$){return new q0().fromJson(Z,$)}static fromJsonString(Z,$){return new q0().fromJsonString(Z,$)}static equals(Z,$){return A6.util.equals(q0,Z,$)}static $(){return["OutputLocation|1 file_path 9|2 size_bytes 3|3 line_count 3"]}};i0=class i0 extends uK{constructor(Z){super();this.requestId="",this.reason="",A6.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 A6.util.equals(i0,Z,$)}static $(){return["SmartModeApproval|1 request_id 9|2 reason 9"]}}});import{Message as wl,proto3 as mQ}from"@bufbuild/protobuf";var FM="agent.v1.",lN,i6;var pN=I(()=>{k();lN=class lN extends B{static get runtime(){return N(this,"runtime",mQ)}static $p(){return FM}};i6=class i6 extends lN{constructor(Z){super();this.hookEventName="",this.content="",mQ.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 mQ.util.equals(i6,Z,$)}static $(){return["HookAdditionalContext|1 hook_event_name 9|2 content 9"]}}});import{Message as Ol,proto3 as C}from"@bufbuild/protobuf";var y9="agent.v1.",Z0,iN,GM,LM,O9,k9,f9,E9,P9,nN,V9,x9,M9,aN,M8,h8,h9,A9,v9,C9,T9,R9;var rN=I(()=>{EH();x8();k();Z0=class Z0 extends B{static get runtime(){return N(this,"runtime",C)}static $p(){return y9}};iN=w(C,y9,"TimeoutBehavior",[[0,"UNSPECIFIED"],[1,"CANCEL"],[2,"BACKGROUND"]],1),GM=w(C,y9,"ShellBackgroundReason",[[0,"UNSPECIFIED"],[1,"TIMEOUT"],[2,"USER_REQUEST"]],1),LM=w(C,y9,"ShellAbortReason",[[0,"UNSPECIFIED"],[1,"USER_ABORT"],[2,"TIMEOUT"]],1);O9=class O9 extends Z0{constructor(Z){super();this.parsingFailed=!1,this.executableCommands=[],this.hasRedirects=!1,this.hasCommandSubstitution=!1,this.redirects=[],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["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*",f9,E9]}};k9=class k9 extends Z0{constructor(Z){super();this.type="",this.value="",C.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 C.util.equals(k9,Z,$)}static $(){return["ShellCommandParsingResult.ExecutableCommandArg|1 type 9|2 value 9"]}};f9=class f9 extends Z0{constructor(Z){super();this.name="",this.args=[],this.fullText="",C.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 C.util.equals(f9,Z,$)}static $(){return["ShellCommandParsingResult.ExecutableCommand|1 name 9|2 args #0*|3 full_text 9",k9]}};E9=class E9 extends Z0{constructor(Z){super();this.operator="",this.destinationFds=[],this.targetNodeType="",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["ShellCommandParsingResult.Redirect|1 operator 9|2 destination_fds 13*|3 target_node_type 9|4 target_text 9?"]}};P9=class P9 extends Z0{constructor(Z){super();this.commands=[],this.suggestedSandboxMode=nN.UNSPECIFIED,this.classificationFailed=!1,C.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 C.util.equals(P9,Z,$)}static $(){return["CommandClassifierResult|1 commands #0*|2 suggested_sandbox_mode #1|3 classification_failed 8",V9,nN]}};nN=w(C,y9,"CommandClassifierResult.SuggestedSandboxMode",[[0,"UNSPECIFIED"],[1,"SANDBOX"],[2,"NO_SANDBOX"],[3,"UNDETERMINED"]],1);V9=class V9 extends Z0{constructor(Z){super();this.name="",this.arguments=[],this.subcommandTokens=[],C.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 C.util.equals(V9,Z,$)}static $(){return["CommandClassifierResult.ClassifiedCommand|1 name 9|2 arguments 9*|3 suggested_allowlist_entry 9?|4 subcommand_tokens 9*"]}};x9=class x9 extends Z0{constructor(Z){super();this.pattern="",this.reason="",C.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 C.util.equals(x9,Z,$)}static $(){return["ShellOutputNotificationConfig|1 pattern 9|2 reason 9|3 debounce 1?|4 notification_limit 5?"]}};M9=class M9 extends Z0{constructor(Z){super();this.kind=aN.UNSPECIFIED,C.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 C.util.equals(M9,Z,$)}static $(){return["ShellHookApprovalRequirement|1 kind #0|2 reason 9?",aN]}};aN=w(C,y9,"ShellHookApprovalRequirement.Kind",[[0,"UNSPECIFIED"],[1,"FORCE_PROMPT"]],1);M8=class M8 extends Z0{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=iN.UNSPECIFIED,this.closeStdin=!1,this.adminCommandDenylist=[],C.util.initPartial(Z,this)}static fromBinary(Z,$){return new M8().fromBinary(Z,$)}static fromJson(Z,$){return new M8().fromJson(Z,$)}static fromJsonString(Z,$){return new M8().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(M8,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?",O9,_0,iN,P9,x9,i0,M9]}};h8=class h8 extends Z0{constructor(Z){super();this.result={case:void 0},C.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 C.util.equals(h8,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?",h9,A9,v9,C9,R9,T9,_0]}};h9=class h9 extends Z0{constructor(Z){super();this.command="",this.workingDirectory="",this.exitCode=0,this.signal="",this.stdout="",this.stderr="",this.executionTime=0,C.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 C.util.equals(h9,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?",q0,GM]}};A9=class A9 extends Z0{constructor(Z){super();this.command="",this.workingDirectory="",this.exitCode=0,this.signal="",this.stdout="",this.stderr="",this.executionTime=0,this.aborted=!1,C.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 C.util.equals(A9,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?",q0,LM]}};v9=class v9 extends Z0{constructor(Z){super();this.command="",this.workingDirectory="",this.timeoutMs=0,C.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 C.util.equals(v9,Z,$)}static $(){return["ShellTimeout|1 command 9|2 working_directory 9|3 timeout_ms 5"]}};C9=class C9 extends Z0{constructor(Z){super();this.command="",this.workingDirectory="",this.reason="",this.isReadonly=!1,C.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 C.util.equals(C9,Z,$)}static $(){return["ShellRejected|1 command 9|2 working_directory 9|3 reason 9|4 is_readonly 8"]}};T9=class T9 extends Z0{constructor(Z){super();this.command="",this.workingDirectory="",this.error="",this.isReadonly=!1,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["ShellPermissionDenied|1 command 9|2 working_directory 9|3 error 9|4 is_readonly 8"]}};R9=class R9 extends Z0{constructor(Z){super();this.command="",this.workingDirectory="",this.error="",C.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 C.util.equals(R9,Z,$)}static $(){return["ShellSpawnError|1 command 9|2 working_directory 9|3 error 9"]}}});import{Message as xl,proto3 as jQ}from"@bufbuild/protobuf";var wM="agent.v1.",sN,A8;var tN=I(()=>{rN();k();sN=class sN extends B{static get runtime(){return N(this,"runtime",jQ)}static $p(){return wM}};A8=class A8 extends sN{constructor(Z){super();jQ.util.initPartial(Z,this)}static fromBinary(Z,$){return new A8().fromBinary(Z,$)}static fromJson(Z,$){return new A8().fromJson(Z,$)}static fromJsonString(Z,$){return new A8().fromJsonString(Z,$)}static equals(Z,$){return jQ.util.equals(A8,Z,$)}static $(){return["ShellToolCall|1 args #0|2 result #1|3 description 9?",M8,h8]}}});import{Message as Cl,proto3 as n,protoInt64 as DM}from"@bufbuild/protobuf";var IM="agent.v1.",U6,v8,C8,m9,j9,_9,S9,g9,b9,d9;var oN=I(()=>{k();U6=class U6 extends B{static get runtime(){return N(this,"runtime",n)}static $p(){return IM}};v8=class v8 extends U6{constructor(Z){super();this.path="",this.toolCallId="",n.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 n.util.equals(v8,Z,$)}static $(){return["DeleteArgs|1 path 9|2 tool_call_id 9"]}};C8=class C8 extends U6{constructor(Z){super();this.result={case:void 0},n.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 n.util.equals(C8,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",m9,j9,_9,S9,g9,b9,d9]}};m9=class m9 extends U6{constructor(Z){super();this.path="",this.deletedFile="",this.fileSize=DM.zero,this.prevContent="",n.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 n.util.equals(m9,Z,$)}static $(){return["DeleteSuccess|1 path 9|2 deleted_file 9|3 file_size 3|4 prev_content 9"]}};j9=class j9 extends U6{constructor(Z){super();this.path="",n.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 n.util.equals(j9,Z,$)}static $(){return["DeleteFileNotFound|1 path 9"]}};_9=class _9 extends U6{constructor(Z){super();this.path="",this.actualType="",n.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 n.util.equals(_9,Z,$)}static $(){return["DeleteNotFile|1 path 9|2 actual_type 9"]}};S9=class S9 extends U6{constructor(Z){super();this.path="",this.clientVisibleError="",this.isReadonly=!1,n.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 n.util.equals(S9,Z,$)}static $(){return["DeletePermissionDenied|1 path 9|2 client_visible_error 9|3 is_readonly 8"]}};g9=class g9 extends U6{constructor(Z){super();this.path="",n.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 n.util.equals(g9,Z,$)}static $(){return["DeleteFileBusy|1 path 9"]}};b9=class b9 extends U6{constructor(Z){super();this.path="",this.reason="",n.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 n.util.equals(b9,Z,$)}static $(){return["DeleteRejected|1 path 9|2 reason 9"]}};d9=class d9 extends U6{constructor(Z){super();this.path="",this.error="",n.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 n.util.equals(d9,Z,$)}static $(){return["DeleteError|1 path 9|2 error 9"]}}});import{Message as ml,proto3 as _Q}from"@bufbuild/protobuf";var UM="agent.v1.",eN,T8;var ZB=I(()=>{oN();k();eN=class eN extends B{static get runtime(){return N(this,"runtime",_Q)}static $p(){return UM}};T8=class T8 extends eN{constructor(Z){super();_Q.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 _Q.util.equals(T8,Z,$)}static $(){return["DeleteToolCall|1 args #0|2 result #1",v8,C8]}}});import{Message as bl,proto3 as n0}from"@bufbuild/protobuf";var OM="agent.v1.",i9,c9,u9,l9,p9,R8;var $B=I(()=>{k();i9=class i9 extends B{static get runtime(){return N(this,"runtime",n0)}static $p(){return OM}};c9=class c9 extends i9{constructor(Z){super();this.globPattern="",n0.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 n0.util.equals(c9,Z,$)}static $(){return["GlobToolArgs|1 target_directory 9?|2 glob_pattern 9"]}};u9=class u9 extends i9{constructor(Z){super();this.result={case:void 0},n0.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 n0.util.equals(u9,Z,$)}static $(){return["GlobToolResult|1 success #0 result|2 error #1 result",p9,l9]}};l9=class l9 extends i9{constructor(Z){super();this.error="",n0.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 n0.util.equals(l9,Z,$)}static $(){return["GlobToolError|1 error 9"]}};p9=class p9 extends i9{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 p9().fromBinary(Z,$)}static fromJson(Z,$){return new p9().fromJson(Z,$)}static fromJsonString(Z,$){return new p9().fromJsonString(Z,$)}static equals(Z,$){return n0.util.equals(p9,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"]}};R8=class R8 extends i9{constructor(Z){super();n0.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 n0.util.equals(R8,Z,$)}static $(){return["GlobToolCall|1 args #0|2 result #1",c9,u9]}}});import{Message as ll,proto3 as d}from"@bufbuild/protobuf";var kM="agent.v1.",S0,y8,m8,n9,a9,r9,s9,t9,o9,e9,Z7,$7;var JB=I(()=>{EH();k();S0=class S0 extends B{static get runtime(){return N(this,"runtime",d)}static $p(){return kM}};y8=class y8 extends S0{constructor(Z){super();this.pattern="",this.toolCallId="",d.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 d.util.equals(y8,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?",_0]}};m8=class m8 extends S0{constructor(Z){super();this.result={case:void 0},d.util.initPartial(Z,this)}static fromBinary(Z,$){return new m8().fromBinary(Z,$)}static fromJson(Z,$){return new m8().fromJson(Z,$)}static fromJsonString(Z,$){return new m8().fromJsonString(Z,$)}static equals(Z,$){return d.util.equals(m8,Z,$)}static $(){return["GrepResult|1 success #0 result|2 error #1 result",a9,n9]}};n9=class n9 extends S0{constructor(Z){super();this.error="",d.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 d.util.equals(n9,Z,$)}static $(){return["GrepError|1 error 9"]}};a9=class a9 extends S0{constructor(Z){super();this.pattern="",this.path="",this.outputMode="",this.workspaceResults={},d.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 d.util.equals(a9,Z,$)}static $(){return["GrepSuccess|1 pattern 9|2 path 9|3 output_mode 9|4 workspace_results 9,#0|5 active_editor_result #0?",r9]}};r9=class r9 extends S0{constructor(Z){super();this.result={case:void 0},d.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 d.util.equals(r9,Z,$)}static $(){return["GrepUnionResult|1 count #0 result|2 files #1 result|3 content #2 result",s9,o9,e9]}};s9=class s9 extends S0{constructor(Z){super();this.counts=[],this.totalFiles=0,this.totalMatches=0,this.clientTruncated=!1,this.ripgrepTruncated=!1,d.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 d.util.equals(s9,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?",t9]}};t9=class t9 extends S0{constructor(Z){super();this.file="",this.count=0,d.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 d.util.equals(t9,Z,$)}static $(){return["GrepFileCount|1 file 9|2 count 5"]}};o9=class o9 extends S0{constructor(Z){super();this.files=[],this.totalFiles=0,this.clientTruncated=!1,this.ripgrepTruncated=!1,d.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 d.util.equals(o9,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?"]}};e9=class e9 extends S0{constructor(Z){super();this.matches=[],this.totalLines=0,this.totalMatchedLines=0,this.clientTruncated=!1,this.ripgrepTruncated=!1,d.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 d.util.equals(e9,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 S0{constructor(Z){super();this.file="",this.matches=[],d.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 d.util.equals(Z7,Z,$)}static $(){return["GrepFileMatch|1 file 9|2 matches #0*",$7]}};$7=class $7 extends S0{constructor(Z){super();this.lineNumber=0,this.content="",this.contentTruncated=!1,this.isContextLine=!1,d.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 d.util.equals($7,Z,$)}static $(){return["GrepContentMatch|1 line_number 5|2 content 9|3 content_truncated 8|4 is_context_line 8"]}}});import{Message as rl,proto3 as SQ}from"@bufbuild/protobuf";var fM="agent.v1.",YB,j8;var XB=I(()=>{JB();k();YB=class YB extends B{static get runtime(){return N(this,"runtime",SQ)}static $p(){return fM}};j8=class j8 extends YB{constructor(Z){super();SQ.util.initPartial(Z,this)}static fromBinary(Z,$){return new j8().fromBinary(Z,$)}static fromJson(Z,$){return new j8().fromJson(Z,$)}static fromJsonString(Z,$){return new j8().fromJsonString(Z,$)}static equals(Z,$){return SQ.util.equals(j8,Z,$)}static $(){return["GrepToolCall|1 args #0|2 result #1",y8,m8]}}});import{Message as Zp,proto3 as V0}from"@bufbuild/protobuf";var KB="agent.v1.",_8,zB,J7,Y7,X7,z7,K7,v6;var gQ=I(()=>{k();_8=class _8 extends B{static get runtime(){return N(this,"runtime",V0)}static $p(){return KB}};zB=w(V0,KB,"CursorRuleSource",[[0,"UNSPECIFIED"],[1,"TEAM"],[2,"USER"]],1);J7=class J7 extends _8{constructor(Z){super();V0.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 V0.util.equals(J7,Z,$)}static $(){return["CursorRuleTypeGlobal"]}};Y7=class Y7 extends _8{constructor(Z){super();this.globs=[],V0.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 V0.util.equals(Y7,Z,$)}static $(){return["CursorRuleTypeFileGlobs|1 globs 9*"]}};X7=class X7 extends _8{constructor(Z){super();this.description="",V0.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 V0.util.equals(X7,Z,$)}static $(){return["CursorRuleTypeAgentFetched|1 description 9"]}};z7=class z7 extends _8{constructor(Z){super();V0.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 V0.util.equals(z7,Z,$)}static $(){return["CursorRuleTypeManuallyAttached"]}};K7=class K7 extends _8{constructor(Z){super();this.type={case:void 0},V0.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 V0.util.equals(K7,Z,$)}static $(){return["CursorRuleType|1 global #0 type|2 file_globbed #1 type|3 agent_fetched #2 type|4 manually_attached #3 type",J7,Y7,X7,z7]}};v6=class v6 extends _8{constructor(Z){super();this.fullPath="",this.content="",this.source=zB.UNSPECIFIED,this.environments=[],this.disabledEnvironments=[],this.scopedTo=[],this.frontmatter="",V0.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 V0.util.equals(v6,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?",K7,zB]}}});import{Message as Xp,proto3 as C0}from"@bufbuild/protobuf";var EM="agent.v1.",g8,S8,H7,Q7,q7,W7,N7;var HB=I(()=>{gQ();k();g8=class g8 extends B{static get runtime(){return N(this,"runtime",C0)}static $p(){return EM}};S8=class S8 extends g8{constructor(Z){super();C0.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 C0.util.equals(S8,Z,$)}static $(){return["ReadToolCall|1 args #0|2 result #1",H7,Q7]}};H7=class H7 extends g8{constructor(Z){super();this.path="",C0.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 C0.util.equals(H7,Z,$)}static $(){return["ReadToolArgs|1 path 9|2 offset 5?|3 limit 5?|5 include_line_numbers 8?"]}};Q7=class Q7 extends g8{constructor(Z){super();this.result={case:void 0},C0.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 C0.util.equals(Q7,Z,$)}static $(){return["ReadToolResult|1 success #0 result|2 error #1 result",W7,N7]}};q7=class q7 extends g8{constructor(Z){super();this.startLine=0,this.endLine=0,C0.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 C0.util.equals(q7,Z,$)}static $(){return["ReadRange|1 start_line 13|2 end_line 13"]}};W7=class W7 extends g8{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=[],C0.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 C0.util.equals(W7,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*",q7,v6]}};N7=class N7 extends g8{constructor(Z){super();this.errorMessage="",C0.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 C0.util.equals(N7,Z,$)}static $(){return["ReadToolError|1 error_message 9"]}}});import{Message as qp,proto3 as b,protoInt64 as QB}from"@bufbuild/protobuf";var qB="agent.v1.",g0,bQ,W0,b8,B7,F7,G7,L7,d8,w7,D7,I7,U7;var PH=I(()=>{k();g0=class g0 extends B{static get runtime(){return N(this,"runtime",b)}static $p(){return qB}};bQ=w(b,qB,"TodoStatus",[[0,"UNSPECIFIED"],[1,"PENDING"],[2,"IN_PROGRESS"],[3,"COMPLETED"],[4,"CANCELLED"]],1);W0=class W0 extends g0{constructor(Z){super();this.id="",this.content="",this.status=bQ.UNSPECIFIED,this.createdAt=QB.zero,this.updatedAt=QB.zero,this.dependencies=[],b.util.initPartial(Z,this)}static fromBinary(Z,$){return new W0().fromBinary(Z,$)}static fromJson(Z,$){return new W0().fromJson(Z,$)}static fromJsonString(Z,$){return new W0().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(W0,Z,$)}static $(){return["TodoItem|1 id 9|2 content 9|3 status #0|4 created_at 3|5 updated_at 3|6 dependencies 9*",bQ]}};b8=class b8 extends g0{constructor(Z){super();b.util.initPartial(Z,this)}static fromBinary(Z,$){return new b8().fromBinary(Z,$)}static fromJson(Z,$){return new b8().fromJson(Z,$)}static fromJsonString(Z,$){return new b8().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(b8,Z,$)}static $(){return["UpdateTodosToolCall|1 args #0|2 result #1",B7,F7]}};B7=class B7 extends g0{constructor(Z){super();this.todos=[],this.merge=!1,b.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 b.util.equals(B7,Z,$)}static $(){return["UpdateTodosArgs|1 todos #0*|2 merge 8",W0]}};F7=class F7 extends g0{constructor(Z){super();this.result={case:void 0},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["UpdateTodosResult|1 success #0 result|2 error #1 result",G7,L7]}};G7=class G7 extends g0{constructor(Z){super();this.todos=[],this.totalCount=0,this.wasMerge=!1,b.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 b.util.equals(G7,Z,$)}static $(){return["UpdateTodosSuccess|1 todos #0*|2 total_count 5|3 was_merge 8",W0]}};L7=class L7 extends g0{constructor(Z){super();this.error="",b.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 b.util.equals(L7,Z,$)}static $(){return["UpdateTodosError|1 error 9"]}};d8=class d8 extends g0{constructor(Z){super();b.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 b.util.equals(d8,Z,$)}static $(){return["ReadTodosToolCall|1 args #0|2 result #1",w7,D7]}};w7=class w7 extends g0{constructor(Z){super();this.statusFilter=[],this.idFilter=[],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["ReadTodosArgs|1 status_filter #0*|2 id_filter 9*",bQ]}};D7=class D7 extends g0{constructor(Z){super();this.result={case:void 0},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["ReadTodosResult|1 success #0 result|2 error #1 result",I7,U7]}};I7=class I7 extends g0{constructor(Z){super();this.todos=[],this.totalCount=0,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["ReadTodosSuccess|1 todos #0*|2 total_count 5",W0]}};U7=class U7 extends g0{constructor(Z){super();this.error="",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["ReadTodosError|1 error 9"]}}});import{Message as Fp,proto3 as a}from"@bufbuild/protobuf";var PM="agent.v1.",O6,O7,k7,f7,E7,P7,V7,x7,M7,c8;var WB=I(()=>{k();O6=class O6 extends B{static get runtime(){return N(this,"runtime",a)}static $p(){return PM}};O7=class O7 extends O6{constructor(Z){super();this.path="",a.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 a.util.equals(O7,Z,$)}static $(){return["EditArgs|1 path 9|6 stream_content 9?"]}};k7=class k7 extends O6{constructor(Z){super();this.result={case:void 0},a.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 a.util.equals(k7,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",f7,E7,P7,V7,x7,M7]}};f7=class f7 extends O6{constructor(Z){super();this.path="",this.afterFullFileContent="",a.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 a.util.equals(f7,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?"]}};E7=class E7 extends O6{constructor(Z){super();this.path="",a.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 a.util.equals(E7,Z,$)}static $(){return["EditFileNotFound|1 path 9"]}};P7=class P7 extends O6{constructor(Z){super();this.path="",a.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 a.util.equals(P7,Z,$)}static $(){return["EditReadPermissionDenied|1 path 9"]}};V7=class V7 extends O6{constructor(Z){super();this.path="",this.error="",this.isReadonly=!1,a.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 a.util.equals(V7,Z,$)}static $(){return["EditWritePermissionDenied|1 path 9|2 error 9|3 is_readonly 8"]}};x7=class x7 extends O6{constructor(Z){super();this.path="",this.reason="",a.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 a.util.equals(x7,Z,$)}static $(){return["EditRejected|1 path 9|2 reason 9"]}};M7=class M7 extends O6{constructor(Z){super();this.path="",this.error="",a.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 a.util.equals(M7,Z,$)}static $(){return["EditError|1 path 9|2 error 9|5 model_visible_error 9?"]}};c8=class c8 extends O6{constructor(Z){super();a.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 a.util.equals(c8,Z,$)}static $(){return["EditToolCall|1 args #0|2 result #1",O7,k7]}}});import{Message as Dp,proto3 as u}from"@bufbuild/protobuf";var VM="agent.v1.",a0,u8,l8,h7,k6,A7,v7,C7,T7,R7,y7;var dQ=I(()=>{EH();k();a0=class a0 extends B{static get runtime(){return N(this,"runtime",u)}static $p(){return VM}};u8=class u8 extends a0{constructor(Z){super();this.path="",this.ignore=[],this.toolCallId="",u.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 u.util.equals(u8,Z,$)}static $(){return["LsArgs|1 path 9|2 ignore 9*|3 tool_call_id 9|4 sandbox_policy #0?|5 timeout_ms 13?",_0]}};l8=class l8 extends a0{constructor(Z){super();this.result={case:void 0},u.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 u.util.equals(l8,Z,$)}static $(){return["LsResult|1 success #0 result|2 error #1 result|3 rejected #2 result|4 timeout #3 result",h7,v7,C7,T7]}};h7=class h7 extends a0{constructor(Z){super();u.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 u.util.equals(h7,Z,$)}static $(){return["LsSuccess|1 directory_tree_root #0",k6]}};k6=class k6 extends a0{constructor(Z){super();this.absPath="",this.childrenDirs=[],this.childrenFiles=[],this.childrenWereProcessed=!1,this.fullSubtreeExtensionCounts={},this.numFiles=0,u.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 u.util.equals(k6,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",k6,A7]}};A7=class A7 extends a0{constructor(Z){super();this.name="",u.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 u.util.equals(A7,Z,$)}static $(){return["LsDirectoryTreeNode.File|1 name 9|2 terminal_metadata #0?",R7]}};v7=class v7 extends a0{constructor(Z){super();this.path="",this.error="",u.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 u.util.equals(v7,Z,$)}static $(){return["LsError|1 path 9|2 error 9"]}};C7=class C7 extends a0{constructor(Z){super();this.path="",this.reason="",u.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 u.util.equals(C7,Z,$)}static $(){return["LsRejected|1 path 9|2 reason 9"]}};T7=class T7 extends a0{constructor(Z){super();u.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 u.util.equals(T7,Z,$)}static $(){return["LsTimeout|1 directory_tree_root #0",k6]}};R7=class R7 extends a0{constructor(Z){super();this.lastCommands=[],u.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 u.util.equals(R7,Z,$)}static $(){return["TerminalMetadata|1 cwd 9?|2 last_commands #0*|3 last_modified_ms 3?|4 current_command #0?",y7]}};y7=class y7 extends a0{constructor(Z){super();this.command="",u.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 u.util.equals(y7,Z,$)}static $(){return["TerminalMetadata.Command|1 command 9|2 exit_code 5?|3 timestamp_ms 3?|4 duration_ms 3?"]}}});import{Message as fp,proto3 as cQ}from"@bufbuild/protobuf";var xM="agent.v1.",NB,p8;var BB=I(()=>{dQ();k();NB=class NB extends B{static get runtime(){return N(this,"runtime",cQ)}static $p(){return xM}};p8=class p8 extends NB{constructor(Z){super();cQ.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 cQ.util.equals(p8,Z,$)}static $(){return["LsToolCall|1 args #0|2 result #1",u8,l8]}}});import{Message as Mp,proto3 as MM}from"@bufbuild/protobuf";var hM="agent.v1.",uQ;var FB=I(()=>{k();uQ=w(MM,hM,"DiagnosticSeverity",[[0,"UNSPECIFIED"],[1,"ERROR"],[2,"WARNING"],[3,"INFORMATION"],[4,"HINT"]],1)});import{Message as Cp,proto3 as $0}from"@bufbuild/protobuf";var AM="agent.v1.",C6,i8,m7,j7,_7,S7,g7,b7,d7;var GB=I(()=>{FB();x8();k();C6=class C6 extends B{static get runtime(){return N(this,"runtime",$0)}static $p(){return AM}};i8=class i8 extends C6{constructor(Z){super();$0.util.initPartial(Z,this)}static fromBinary(Z,$){return new i8().fromBinary(Z,$)}static fromJson(Z,$){return new i8().fromJson(Z,$)}static fromJsonString(Z,$){return new i8().fromJsonString(Z,$)}static equals(Z,$){return $0.util.equals(i8,Z,$)}static $(){return["ReadLintsToolCall|1 args #0|2 result #1",m7,j7]}};m7=class m7 extends C6{constructor(Z){super();this.paths=[],$0.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 $0.util.equals(m7,Z,$)}static $(){return["ReadLintsToolArgs|1 paths 9*"]}};j7=class j7 extends C6{constructor(Z){super();this.result={case:void 0},$0.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 $0.util.equals(j7,Z,$)}static $(){return["ReadLintsToolResult|1 success #0 result|2 error #1 result",_7,d7]}};_7=class _7 extends C6{constructor(Z){super();this.fileDiagnostics=[],this.totalFiles=0,this.totalDiagnostics=0,$0.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 $0.util.equals(_7,Z,$)}static $(){return["ReadLintsToolSuccess|1 file_diagnostics #0*|2 total_files 5|3 total_diagnostics 5",S7]}};S7=class S7 extends C6{constructor(Z){super();this.path="",this.diagnostics=[],this.diagnosticsCount=0,$0.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 $0.util.equals(S7,Z,$)}static $(){return["FileDiagnostics|1 path 9|2 diagnostics #0*|3 diagnostics_count 5",g7]}};g7=class g7 extends C6{constructor(Z){super();this.severity=uQ.UNSPECIFIED,this.message="",this.source="",this.code="",this.isStale=!1,$0.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 $0.util.equals(g7,Z,$)}static $(){return["DiagnosticItem|1 severity #0|2 range #1|3 message 9|4 source 9|5 code 9|6 is_stale 8",uQ,b7]}};b7=class b7 extends C6{constructor(Z){super();$0.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 $0.util.equals(b7,Z,$)}static $(){return["DiagnosticRange|1 start #0|2 end #0",p6]}};d7=class d7 extends C6{constructor(Z){super();this.errorMessage="",$0.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 $0.util.equals(d7,Z,$)}static $(){return["ReadLintsToolError|1 error_message 9"]}}});import{Message as _p,proto3 as h,protoInt64 as vM,Struct as CM,Value as TM}from"@bufbuild/protobuf";var RM="agent.v1.",c,n8,c7,u7,l7,p7,n6,a8,r8,s8,t8,o8,i7,n7,a7,r7,e8,ZZ,s7,t7,o7,e7;var lQ=I(()=>{x8();k();c=class c extends B{static get runtime(){return N(this,"runtime",h)}static $p(){return RM}};n8=class n8 extends c{constructor(Z){super();this.name="",this.args={},this.toolCallId="",this.providerIdentifier="",this.toolName="",this.smartModeApprovalOnly=!1,this.skipApproval=!1,this.serverIdentifier="",this.symbolicPathArguments=[],h.util.initPartial(Z,this)}static fromBinary(Z,$){return new n8().fromBinary(Z,$)}static fromJson(Z,$){return new n8().fromJson(Z,$)}static fromJsonString(Z,$){return new n8().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(n8,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*",TM,i0,c7]}};c7=class c7 extends c{constructor(Z){super();this.path="",this.sha256="",this.sizeBytes=vM.zero,h.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 h.util.equals(c7,Z,$)}static $(){return["McpSymbolicPathArgument|1 path 9|2 sha256 9|3 size_bytes 3"]}};u7=class u7 extends c{constructor(Z){super();this.text="",h.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 h.util.equals(u7,Z,$)}static $(){return["McpTextContent|1 text 9|2 output_location #0?",q0]}};l7=class l7 extends c{constructor(Z){super();this.data=new Uint8Array(0),this.mimeType="",h.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 h.util.equals(l7,Z,$)}static $(){return["McpImageContent|1 data 12|2 mime_type 9"]}};p7=class p7 extends c{constructor(Z){super();this.content={case:void 0},h.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 h.util.equals(p7,Z,$)}static $(){return["McpToolResultContentItem|1 text #0 content|2 image #1 content",u7,l7]}};n6=class n6 extends c{constructor(Z){super();this.body="",h.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 h.util.equals(n6,Z,$)}static $(){return["SystemReminder|1 body 9"]}};a8=class a8 extends c{constructor(Z){super();this.content=[],this.isError=!1,this.systemReminders=[],h.util.initPartial(Z,this)}static fromBinary(Z,$){return new a8().fromBinary(Z,$)}static fromJson(Z,$){return new a8().fromJson(Z,$)}static fromJsonString(Z,$){return new a8().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(a8,Z,$)}static $(){return["McpSuccess|1 content #0*|2 is_error 8|3 structured_content #1|4 system_reminders #2*",p7,CM,n6]}};r8=class r8 extends c{constructor(Z){super();this.reason="",this.isReadonly=!1,h.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 h.util.equals(r8,Z,$)}static $(){return["McpRejected|1 reason 9|2 is_readonly 8"]}};s8=class s8 extends c{constructor(Z){super();this.error="",this.isReadonly=!1,h.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 h.util.equals(s8,Z,$)}static $(){return["McpPermissionDenied|1 error 9|2 is_readonly 8"]}};t8=class t8 extends c{constructor(Z){super();h.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 h.util.equals(t8,Z,$)}static $(){return["ListMcpResourcesExecArgs|1 server 9?"]}};o8=class o8 extends c{constructor(Z){super();this.result={case:void 0},h.util.initPartial(Z,this)}static fromBinary(Z,$){return new o8().fromBinary(Z,$)}static fromJson(Z,$){return new o8().fromJson(Z,$)}static fromJsonString(Z,$){return new o8().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(o8,Z,$)}static $(){return["ListMcpResourcesExecResult|1 success #0 result|2 error #1 result|3 rejected #2 result",n7,a7,r7]}};i7=class i7 extends c{constructor(Z){super();this.uri="",this.server="",this.annotations={},h.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 h.util.equals(i7,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"]}};n7=class n7 extends c{constructor(Z){super();this.resources=[],h.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 h.util.equals(n7,Z,$)}static $(){return["ListMcpResourcesSuccess|1 resources #0*",i7]}};a7=class a7 extends c{constructor(Z){super();this.error="",h.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 h.util.equals(a7,Z,$)}static $(){return["ListMcpResourcesError|1 error 9"]}};r7=class r7 extends c{constructor(Z){super();this.reason="",h.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 h.util.equals(r7,Z,$)}static $(){return["ListMcpResourcesRejected|1 reason 9"]}};e8=class e8 extends c{constructor(Z){super();this.server="",this.uri="",this.toolCallId="",h.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 h.util.equals(e8,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]}};ZZ=class ZZ extends c{constructor(Z){super();this.result={case:void 0},h.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 h.util.equals(ZZ,Z,$)}static $(){return["ReadMcpResourceExecResult|1 success #0 result|2 error #1 result|3 rejected #2 result|4 not_found #3 result",s7,t7,o7,e7]}};s7=class s7 extends c{constructor(Z){super();this.uri="",this.content={case:void 0},this.annotations={},h.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 h.util.equals(s7,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?",q0]}};t7=class t7 extends c{constructor(Z){super();this.uri="",this.error="",h.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 h.util.equals(t7,Z,$)}static $(){return["ReadMcpResourceError|1 uri 9|2 error 9"]}};o7=class o7 extends c{constructor(Z){super();this.uri="",this.reason="",h.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 h.util.equals(o7,Z,$)}static $(){return["ReadMcpResourceRejected|1 uri 9|2 reason 9"]}};e7=class e7 extends c{constructor(Z){super();this.uri="",h.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 h.util.equals(e7,Z,$)}static $(){return["ReadMcpResourceNotFound|1 uri 9"]}}});import{Message as cp,proto3 as JZ}from"@bufbuild/protobuf";var yM="agent.v1.",VH,Z5,$5,$Z;var LB=I(()=>{lQ();k();VH=class VH extends B{static get runtime(){return N(this,"runtime",JZ)}static $p(){return yM}};Z5=class Z5 extends VH{constructor(Z){super();this.error="",this.readToolDefReminder="",this.systemReminders=[],JZ.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 JZ.util.equals(Z5,Z,$)}static $(){return["McpToolError|1 error 9|2 read_tool_def_reminder 9|3 system_reminders #0*",n6]}};$5=class $5 extends VH{constructor(Z){super();this.result={case:void 0},JZ.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 JZ.util.equals($5,Z,$)}static $(){return["McpToolResult|1 success #0 result|2 error #1 result|3 rejected #2 result|4 permission_denied #3 result",a8,Z5,r8,s8]}};$Z=class $Z extends VH{constructor(Z){super();JZ.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 JZ.util.equals($Z,Z,$)}static $(){return["McpToolCall|1 args #0|2 result #1|3 description 9?",n8,$5]}}});import{Message as np,proto3 as N0}from"@bufbuild/protobuf";var mM="aiserver.v1.",a6,J5,YZ,XZ,zZ,Y5,X5,z5;var wB=I(()=>{k();a6=class a6 extends B{static get runtime(){return N(this,"runtime",N0)}static $p(){return mM}};J5=class J5 extends a6{constructor(Z){super();this.line=0,this.column=0,N0.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 N0.util.equals(J5,Z,$)}static $(){return["CursorPosition|1 line 5|2 column 5"]}};YZ=class YZ extends a6{constructor(Z){super();N0.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 N0.util.equals(YZ,Z,$)}static $(){return["CursorRange|1 start_position #0|2 end_position #0",J5]}};XZ=class XZ extends a6{constructor(Z){super();this.text="",this.lineNumber=0,this.isSignature=!1,N0.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 N0.util.equals(XZ,Z,$)}static $(){return["DetailedLine|1 text 9|2 line_number 2|3 is_signature 8"]}};zZ=class zZ extends a6{constructor(Z){super();this.relativeWorkspacePath="",this.contents="",this.detailedLines=[],N0.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 N0.util.equals(zZ,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",YZ,Y5,XZ,z5]}};Y5=class Y5 extends a6{constructor(Z){super();this.ranges=[],N0.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 N0.util.equals(Y5,Z,$)}static $(){return["CodeBlock.Signatures|1 ranges #0*",YZ]}};X5=class X5 extends a6{constructor(Z){super();this.commit="",this.author="",this.date="",this.message="",N0.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 N0.util.equals(X5,Z,$)}static $(){return["GitCommit|1 commit 9|2 author 9|3 date 9|4 message 9"]}};z5=class z5 extends a6{constructor(Z){super();this.commits=[],N0.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 N0.util.equals(z5,Z,$)}static $(){return["FileGit|1 commits #0*",X5]}}});import{Message as $i,proto3 as pQ,protoInt64 as Ji}from"@bufbuild/protobuf";var jM="aiserver.v1.",DB,KZ;var IB=I(()=>{wB();k();DB=class DB extends B{static get runtime(){return N(this,"runtime",pQ)}static $p(){return jM}};KZ=class KZ extends DB{constructor(Z){super();this.score=0,pQ.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 pQ.util.equals(KZ,Z,$)}static $(){return["CodeResult|1 code_block #0|2 score 2",zZ]}}});import{Message as Hi,proto3 as r0}from"@bufbuild/protobuf";var _M="agent.v1.",W5,HZ,K5,H5,Q5,q5;var UB=I(()=>{IB();k();W5=class W5 extends B{static get runtime(){return N(this,"runtime",r0)}static $p(){return _M}};HZ=class HZ extends W5{constructor(Z){super();r0.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 r0.util.equals(HZ,Z,$)}static $(){return["SemSearchToolCall|1 args #0|2 result #1",K5,H5]}};K5=class K5 extends W5{constructor(Z){super();this.query="",this.targetDirectories=[],this.explanation="",r0.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 r0.util.equals(K5,Z,$)}static $(){return["SemSearchToolArgs|1 query 9|2 target_directories 9*|3 explanation 9"]}};H5=class H5 extends W5{constructor(Z){super();this.result={case:void 0},r0.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 r0.util.equals(H5,Z,$)}static $(){return["SemSearchToolResult|1 success #0 result|2 error #1 result",Q5,q5]}};Q5=class Q5 extends W5{constructor(Z){super();this.results="",this.codeResults=[],r0.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 r0.util.equals(Q5,Z,$)}static $(){return["SemSearchToolSuccess|1 results 9|2 code_results #0*",KZ]}};q5=class q5 extends W5{constructor(Z){super();this.errorMessage="",r0.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 r0.util.equals(q5,Z,$)}static $(){return["SemSearchToolError|1 error_message 9"]}}});import{Message as Bi,proto3 as B0}from"@bufbuild/protobuf";var SM="agent.v1.",r6,QZ,N5,B5,qZ,F5,G5,WZ;var OB=I(()=>{PH();k();r6=class r6 extends B{static get runtime(){return N(this,"runtime",B0)}static $p(){return SM}};QZ=class QZ extends r6{constructor(Z){super();B0.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 B0.util.equals(QZ,Z,$)}static $(){return["CreatePlanToolCall|1 args #0|2 result #1",B5,qZ]}};N5=class N5 extends r6{constructor(Z){super();this.name="",this.todos=[],B0.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 B0.util.equals(N5,Z,$)}static $(){return["Phase|1 name 9|2 todos #0*",W0]}};B5=class B5 extends r6{constructor(Z){super();this.plan="",this.todos=[],this.overview="",this.name="",this.isProject=!1,this.phases=[],B0.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 B0.util.equals(B5,Z,$)}static $(){return["CreatePlanArgs|1 plan 9|2 todos #0*|3 overview 9|4 name 9|5 is_project 8|6 phases #1*",W0,N5]}};qZ=class qZ extends r6{constructor(Z){super();this.result={case:void 0},this.planUri="",B0.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 B0.util.equals(qZ,Z,$)}static $(){return["CreatePlanResult|1 success #0 result|2 error #1 result|3 plan_uri 9",F5,G5]}};F5=class F5 extends r6{constructor(Z){super();B0.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 B0.util.equals(F5,Z,$)}static $(){return["CreatePlanSuccess"]}};G5=class G5 extends r6{constructor(Z){super();this.error="",B0.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 B0.util.equals(G5,Z,$)}static $(){return["CreatePlanError|1 error 9"]}};WZ=class WZ extends r6{constructor(Z){super();B0.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 B0.util.equals(WZ,Z,$)}static $(){return["CreatePlanRequestResponse|1 result #0",qZ]}}});import{Message as Di,proto3 as l}from"@bufbuild/protobuf";var gM="agent.v1.",s0,L5,w5,D5,I5,U5,O5,NZ,BZ,k5,f5;var kB=I(()=>{k();s0=class s0 extends B{static get runtime(){return N(this,"runtime",l)}static $p(){return gM}};L5=class L5 extends s0{constructor(Z){super();this.searchTerm="",this.toolCallId="",l.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 l.util.equals(L5,Z,$)}static $(){return["WebSearchArgs|1 search_term 9|2 tool_call_id 9"]}};w5=class w5 extends s0{constructor(Z){super();this.result={case:void 0},l.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 l.util.equals(w5,Z,$)}static $(){return["WebSearchResult|1 success #0 result|2 error #1 result|3 rejected #2 result",D5,I5,U5]}};D5=class D5 extends s0{constructor(Z){super();this.references=[],l.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 l.util.equals(D5,Z,$)}static $(){return["WebSearchSuccess|1 references #0*",O5]}};I5=class I5 extends s0{constructor(Z){super();this.error="",l.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 l.util.equals(I5,Z,$)}static $(){return["WebSearchError|1 error 9"]}};U5=class U5 extends s0{constructor(Z){super();this.reason="",l.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 l.util.equals(U5,Z,$)}static $(){return["WebSearchRejected|1 reason 9"]}};O5=class O5 extends s0{constructor(Z){super();this.title="",this.url="",this.chunk="",l.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 l.util.equals(O5,Z,$)}static $(){return["WebSearchReference|1 title 9|2 url 9|3 chunk 9"]}};NZ=class NZ extends s0{constructor(Z){super();l.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 l.util.equals(NZ,Z,$)}static $(){return["WebSearchToolCall|1 args #0|2 result #1",L5,w5]}};BZ=class BZ extends s0{constructor(Z){super();this.result={case:void 0},l.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 l.util.equals(BZ,Z,$)}static $(){return["WebSearchRequestResponse|1 approved #0 result|2 rejected #1 result",k5,f5]}};k5=class k5 extends s0{constructor(Z){super();l.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 l.util.equals(k5,Z,$)}static $(){return["WebSearchRequestResponse.Approved"]}};f5=class f5 extends s0{constructor(Z){super();this.reason="",l.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 l.util.equals(f5,Z,$)}static $(){return["WebSearchRequestResponse.Rejected|1 reason 9"]}}});import{Message as ki,proto3 as lK}from"@bufbuild/protobuf";var bM="agent.v1.",iQ,FZ,GZ;var fB=I(()=>{lQ();k();iQ=class iQ extends B{static get runtime(){return N(this,"runtime",lK)}static $p(){return bM}};FZ=class FZ extends iQ{constructor(Z){super();lK.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 lK.util.equals(FZ,Z,$)}static $(){return["ListMcpResourcesToolCall|1 args #0|2 result #1",t8,o8]}};GZ=class GZ extends iQ{constructor(Z){super();lK.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 lK.util.equals(GZ,Z,$)}static $(){return["ReadMcpResourceToolCall|1 args #0|2 result #1",e8,ZZ]}}});import{Message as xi,proto3 as x0}from"@bufbuild/protobuf";var PB="agent.v1.",DZ,LZ,E5,P5,V5,wZ,EB,x5;var VB=I(()=>{k();DZ=class DZ extends B{static get runtime(){return N(this,"runtime",x0)}static $p(){return PB}};LZ=class LZ extends DZ{constructor(Z){super();x0.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 x0.util.equals(LZ,Z,$)}static $(){return["ApplyAgentDiffToolCall|1 args #0|2 result #1",E5,P5]}};E5=class E5 extends DZ{constructor(Z){super();this.agentId="",x0.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 x0.util.equals(E5,Z,$)}static $(){return["ApplyAgentDiffArgs|1 agent_id 9"]}};P5=class P5 extends DZ{constructor(Z){super();this.result={case:void 0},x0.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 x0.util.equals(P5,Z,$)}static $(){return["ApplyAgentDiffResult|1 success #0 result|2 error #1 result",V5,x5]}};V5=class V5 extends DZ{constructor(Z){super();this.appliedChanges=[],x0.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 x0.util.equals(V5,Z,$)}static $(){return["ApplyAgentDiffSuccess|1 applied_changes #0*",wZ]}};wZ=class wZ extends DZ{constructor(Z){super();this.path="",this.changeType=EB.UNSPECIFIED,x0.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 x0.util.equals(wZ,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?",EB]}};EB=w(x0,PB,"AppliedAgentChange.ChangeType",[[0,"UNSPECIFIED"],[1,"CREATED"],[2,"MODIFIED"],[3,"DELETED"]],1);x5=class x5 extends DZ{constructor(Z){super();this.error="",this.appliedChanges=[],x0.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 x0.util.equals(x5,Z,$)}static $(){return["ApplyAgentDiffError|1 error 9|2 applied_changes #0*",wZ]}}});import{Message as vi,proto3 as p}from"@bufbuild/protobuf";var dM="agent.v1.",t0,IZ,UZ,M5,h5,A5,s6,v5,C5,T5,R5;var xB=I(()=>{k();t0=class t0 extends B{static get runtime(){return N(this,"runtime",p)}static $p(){return dM}};IZ=class IZ extends t0{constructor(Z){super();p.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 p.util.equals(IZ,Z,$)}static $(){return["AskQuestionToolCall|1 args #0|2 result #1",UZ,s6]}};UZ=class UZ extends t0{constructor(Z){super();this.title="",this.questions=[],this.runAsync=!1,this.asyncOriginalToolCallId="",p.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 p.util.equals(UZ,Z,$)}static $(){return["AskQuestionArgs|1 title 9|2 questions #0*|5 run_async 8|6 async_original_tool_call_id 9",M5]}};M5=class M5 extends t0{constructor(Z){super();this.id="",this.prompt="",this.options=[],this.allowMultiple=!1,p.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 p.util.equals(M5,Z,$)}static $(){return["AskQuestionArgs.Question|1 id 9|2 prompt 9|3 options #0*|4 allow_multiple 8",h5]}};h5=class h5 extends t0{constructor(Z){super();this.id="",this.label="",p.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 p.util.equals(h5,Z,$)}static $(){return["AskQuestionArgs.Option|1 id 9|2 label 9"]}};A5=class A5 extends t0{constructor(Z){super();this.interactionId="",p.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 p.util.equals(A5,Z,$)}static $(){return["AskQuestionAsync|1 interaction_id 9"]}};s6=class s6 extends t0{constructor(Z){super();this.result={case:void 0},p.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 p.util.equals(s6,Z,$)}static $(){return["AskQuestionResult|1 success #0 result|2 error #1 result|3 rejected #2 result|4 async #3 result",v5,T5,R5,A5]}};v5=class v5 extends t0{constructor(Z){super();this.answers=[],p.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 p.util.equals(v5,Z,$)}static $(){return["AskQuestionSuccess|1 answers #0*",C5]}};C5=class C5 extends t0{constructor(Z){super();this.questionId="",this.selectedOptionIds=[],this.freeformText="",p.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 p.util.equals(C5,Z,$)}static $(){return["AskQuestionSuccess.Answer|1 question_id 9|2 selected_option_ids 9*|3 freeform_text 9"]}};T5=class T5 extends t0{constructor(Z){super();this.errorMessage="",p.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 p.util.equals(T5,Z,$)}static $(){return["AskQuestionError|1 error_message 9"]}};R5=class R5 extends t0{constructor(Z){super();this.reason="",p.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 p.util.equals(R5,Z,$)}static $(){return["AskQuestionRejected|1 reason 9"]}}});import{Message as yi,proto3 as T6}from"@bufbuild/protobuf";var cM="agent.v1.",pK,OZ,kZ,y5,m5;var MB=I(()=>{k();pK=class pK extends B{static get runtime(){return N(this,"runtime",T6)}static $p(){return cM}};OZ=class OZ extends pK{constructor(Z){super();this.url="",this.toolCallId="",T6.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 T6.util.equals(OZ,Z,$)}static $(){return["FetchArgs|1 url 9|2 tool_call_id 9"]}};kZ=class kZ extends pK{constructor(Z){super();this.result={case:void 0},T6.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 T6.util.equals(kZ,Z,$)}static $(){return["FetchResult|1 success #0 result|2 error #1 result",y5,m5]}};y5=class y5 extends pK{constructor(Z){super();this.url="",this.content="",this.statusCode=0,this.contentType="",T6.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 T6.util.equals(y5,Z,$)}static $(){return["FetchSuccess|1 url 9|2 content 9|3 status_code 5|4 content_type 9"]}};m5=class m5 extends pK{constructor(Z){super();this.url="",this.error="",T6.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 T6.util.equals(m5,Z,$)}static $(){return["FetchError|1 url 9|2 error 9"]}}});import{Message as Si,proto3 as nQ}from"@bufbuild/protobuf";var uM="agent.v1.",hB,fZ;var AB=I(()=>{MB();k();hB=class hB extends B{static get runtime(){return N(this,"runtime",nQ)}static $p(){return uM}};fZ=class fZ extends hB{constructor(Z){super();nQ.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 nQ.util.equals(fZ,Z,$)}static $(){return["FetchToolCall|1 args #0|2 result #1",OZ,kZ]}}});import{Message as ui,proto3 as r}from"@bufbuild/protobuf";var lM="agent.v1.",f6,j5,_5,S5,g5,b5,EZ,PZ,d5,c5;var vB=I(()=>{k();f6=class f6 extends B{static get runtime(){return N(this,"runtime",r)}static $p(){return lM}};j5=class j5 extends f6{constructor(Z){super();this.targetModeId="",this.toolCallId="",r.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 r.util.equals(j5,Z,$)}static $(){return["SwitchModeArgs|1 target_mode_id 9|2 explanation 9?|3 tool_call_id 9"]}};_5=class _5 extends f6{constructor(Z){super();this.result={case:void 0},r.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 r.util.equals(_5,Z,$)}static $(){return["SwitchModeResult|1 success #0 result|2 error #1 result|3 rejected #2 result",S5,g5,b5]}};S5=class S5 extends f6{constructor(Z){super();this.fromModeId="",this.toModeId="",r.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 r.util.equals(S5,Z,$)}static $(){return["SwitchModeSuccess|1 from_mode_id 9|2 to_mode_id 9"]}};g5=class g5 extends f6{constructor(Z){super();this.error="",r.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 r.util.equals(g5,Z,$)}static $(){return["SwitchModeError|1 error 9"]}};b5=class b5 extends f6{constructor(Z){super();this.reason="",r.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 r.util.equals(b5,Z,$)}static $(){return["SwitchModeRejected|1 reason 9"]}};EZ=class EZ extends f6{constructor(Z){super();r.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 r.util.equals(EZ,Z,$)}static $(){return["SwitchModeToolCall|1 args #0|2 result #1",j5,_5]}};PZ=class PZ extends f6{constructor(Z){super();this.result={case:void 0},r.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 r.util.equals(PZ,Z,$)}static $(){return["SwitchModeRequestResponse|1 approved #0 result|2 rejected #1 result",d5,c5]}};d5=class d5 extends f6{constructor(Z){super();r.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 r.util.equals(d5,Z,$)}static $(){return["SwitchModeRequestResponse.Approved"]}};c5=class c5 extends f6{constructor(Z){super();this.reason="",r.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 r.util.equals(c5,Z,$)}static $(){return["SwitchModeRequestResponse.Rejected|1 reason 9"]}}});import{Message as ni,proto3 as J0}from"@bufbuild/protobuf";var pM="agent.v1.",R6,u5,l5,p5,i5,VZ,xZ,n5,a5;var CB=I(()=>{k();R6=class R6 extends B{static get runtime(){return N(this,"runtime",J0)}static $p(){return pM}};u5=class u5 extends R6{constructor(Z){super();this.description="",this.referenceImagePaths=[],J0.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 J0.util.equals(u5,Z,$)}static $(){return["GenerateImageArgs|1 description 9|2 file_path 9?|5 reference_image_paths 9*|6 aspect_ratio 9?"]}};l5=class l5 extends R6{constructor(Z){super();this.result={case:void 0},J0.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 J0.util.equals(l5,Z,$)}static $(){return["GenerateImageResult|1 success #0 result|2 error #1 result",p5,i5]}};p5=class p5 extends R6{constructor(Z){super();this.filePath="",this.imageData="",J0.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 J0.util.equals(p5,Z,$)}static $(){return["GenerateImageSuccess|1 file_path 9|2 image_data 9"]}};i5=class i5 extends R6{constructor(Z){super();this.error="",J0.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 J0.util.equals(i5,Z,$)}static $(){return["GenerateImageError|1 error 9"]}};VZ=class VZ extends R6{constructor(Z){super();J0.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 J0.util.equals(VZ,Z,$)}static $(){return["GenerateImageToolCall|1 args #0|2 result #1",u5,l5]}};xZ=class xZ extends R6{constructor(Z){super();this.result={case:void 0},J0.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 J0.util.equals(xZ,Z,$)}static $(){return["GenerateImageRequestResponse|1 approved #0 result|2 rejected #1 result",n5,a5]}};n5=class n5 extends R6{constructor(Z){super();this.description="",J0.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 J0.util.equals(n5,Z,$)}static $(){return["GenerateImageRequestResponse.Approved|1 description 9"]}};a5=class a5 extends R6{constructor(Z){super();this.reason="",J0.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 J0.util.equals(a5,Z,$)}static $(){return["GenerateImageRequestResponse.Rejected|1 reason 9"]}}});import{Message as ti,proto3 as F0,protoInt64 as iM}from"@bufbuild/protobuf";var aQ="agent.v1.",AZ,TB,nM,MZ,hZ,r5,s5,t5,o5;var RB=I(()=>{k();AZ=class AZ extends B{static get runtime(){return N(this,"runtime",F0)}static $p(){return aQ}};TB=w(F0,aQ,"RecordingMode",[[0,"UNSPECIFIED"],[1,"START_RECORDING"],[2,"SAVE_RECORDING"],[3,"DISCARD_RECORDING"]],1),nM=w(F0,aQ,"RequestedFilePathRejectedReason",[[0,"UNSPECIFIED"],[1,"SLASHES_NOT_ALLOWED"]],1);MZ=class MZ extends AZ{constructor(Z){super();this.mode=TB.UNSPECIFIED,this.toolCallId="",F0.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 F0.util.equals(MZ,Z,$)}static $(){return["RecordScreenArgs|1 mode #0|2 tool_call_id 9|3 save_as_filename 9?",TB]}};hZ=class hZ extends AZ{constructor(Z){super();this.result={case:void 0},F0.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 F0.util.equals(hZ,Z,$)}static $(){return["RecordScreenResult|1 start_success #0 result|2 save_success #1 result|3 discard_success #2 result|4 failure #3 result",r5,s5,t5,o5]}};r5=class r5 extends AZ{constructor(Z){super();this.wasPriorRecordingCancelled=!1,this.wasSaveAsFilenameIgnored=!1,F0.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 F0.util.equals(r5,Z,$)}static $(){return["RecordScreenStartSuccess|1 was_prior_recording_cancelled 8|2 was_save_as_filename_ignored 8"]}};s5=class s5 extends AZ{constructor(Z){super();this.path="",this.recordingDurationMs=iM.zero,F0.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 F0.util.equals(s5,Z,$)}static $(){return["RecordScreenSaveSuccess|1 path 9|2 recording_duration_ms 3|3 requested_file_path_rejected_reason #0?",nM]}};t5=class t5 extends AZ{constructor(Z){super();F0.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 F0.util.equals(t5,Z,$)}static $(){return["RecordScreenDiscardSuccess"]}};o5=class o5 extends AZ{constructor(Z){super();this.error="",F0.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 F0.util.equals(o5,Z,$)}static $(){return["RecordScreenFailure|1 error 9"]}}});import{Message as $n,proto3 as rQ}from"@bufbuild/protobuf";var aM="agent.v1.",yB,vZ;var mB=I(()=>{RB();k();yB=class yB extends B{static get runtime(){return N(this,"runtime",rQ)}static $p(){return aM}};vZ=class vZ extends yB{constructor(Z){super();rQ.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 rQ.util.equals(vZ,Z,$)}static $(){return["RecordScreenToolCall|1 args #0|2 result #1",MZ,hZ]}}});import{Message as Kn,proto3 as v}from"@bufbuild/protobuf";var xH="agent.v1.",s,t6,jB,_B,E6,e5,Z1,$1,J1,Y1,X1,z1,K1,H1,Q1,q1,W1,N1,B1,F1,G1,CZ;var SB=I(()=>{k();s=class s extends B{static get runtime(){return N(this,"runtime",v)}static $p(){return xH}};t6=w(v,xH,"MouseButton",[[0,"UNSPECIFIED"],[1,"LEFT"],[2,"RIGHT"],[3,"MIDDLE"],[4,"BACK"],[5,"FORWARD"]],1),jB=w(v,xH,"ScrollDirection",[[0,"UNSPECIFIED"],[1,"UP"],[2,"DOWN"],[3,"LEFT"],[4,"RIGHT"]],1),_B=w(v,xH,"KeyStroke",[[0,"UNSPECIFIED"],[1,"TAP"],[2,"DOWN"],[3,"UP"]],1);E6=class E6 extends s{constructor(Z){super();this.x=0,this.y=0,v.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 v.util.equals(E6,Z,$)}static $(){return["Coordinate|1 x 5|2 y 5"]}};e5=class e5 extends s{constructor(Z){super();this.toolCallId="",this.actions=[],v.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 v.util.equals(e5,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?",Z1]}};Z1=class Z1 extends s{constructor(Z){super();this.action={case:void 0},v.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 v.util.equals(Z1,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",$1,J1,Y1,X1,z1,K1,H1,Q1,q1,W1,N1]}};$1=class $1 extends s{constructor(Z){super();v.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 v.util.equals($1,Z,$)}static $(){return["MouseMoveAction|1 coordinate #0",E6]}};J1=class J1 extends s{constructor(Z){super();this.button=t6.UNSPECIFIED,this.count=0,v.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 v.util.equals(J1,Z,$)}static $(){return["ClickAction|1 coordinate #0?|2 button #1|3 count 5|4 modifier_keys 9?",E6,t6]}};Y1=class Y1 extends s{constructor(Z){super();this.button=t6.UNSPECIFIED,v.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 v.util.equals(Y1,Z,$)}static $(){return["MouseDownAction|1 button #0",t6]}};X1=class X1 extends s{constructor(Z){super();this.button=t6.UNSPECIFIED,v.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 v.util.equals(X1,Z,$)}static $(){return["MouseUpAction|1 button #0",t6]}};z1=class z1 extends s{constructor(Z){super();this.path=[],this.button=t6.UNSPECIFIED,v.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 v.util.equals(z1,Z,$)}static $(){return["DragAction|1 path #0*|2 button #1|3 modifier_keys 9?",E6,t6]}};K1=class K1 extends s{constructor(Z){super();this.direction=jB.UNSPECIFIED,this.amount=0,v.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 v.util.equals(K1,Z,$)}static $(){return["ScrollAction|1 coordinate #0?|2 direction #1|3 amount 5|4 modifier_keys 9?",E6,jB]}};H1=class H1 extends s{constructor(Z){super();this.text="",v.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 v.util.equals(H1,Z,$)}static $(){return["TypeAction|1 text 9"]}};Q1=class Q1 extends s{constructor(Z){super();this.key="",this.stroke=_B.UNSPECIFIED,v.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 v.util.equals(Q1,Z,$)}static $(){return["KeyAction|1 key 9|2 hold_duration_ms 5?|3 stroke #0",_B]}};q1=class q1 extends s{constructor(Z){super();this.durationMs=0,v.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 v.util.equals(q1,Z,$)}static $(){return["WaitAction|1 duration_ms 5"]}};W1=class W1 extends s{constructor(Z){super();v.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 v.util.equals(W1,Z,$)}static $(){return["ScreenshotAction"]}};N1=class N1 extends s{constructor(Z){super();v.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 v.util.equals(N1,Z,$)}static $(){return["CursorPositionAction"]}};B1=class B1 extends s{constructor(Z){super();this.result={case:void 0},v.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 v.util.equals(B1,Z,$)}static $(){return["ComputerUseResult|1 success #0 result|2 error #1 result",F1,G1]}};F1=class F1 extends s{constructor(Z){super();this.actionCount=0,this.durationMs=0,v.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 v.util.equals(F1,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?",E6]}};G1=class G1 extends s{constructor(Z){super();this.error="",this.actionCount=0,this.durationMs=0,v.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 v.util.equals(G1,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?"]}};CZ=class CZ extends s{constructor(Z){super();v.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 v.util.equals(CZ,Z,$)}static $(){return["ComputerUseToolCall|1 args #0|2 result #1",e5,B1]}}});import{Message as Wn,proto3 as y6}from"@bufbuild/protobuf";var rM="agent.v1.",iK,TZ,RZ,L1,w1;var gB=I(()=>{k();iK=class iK extends B{static get runtime(){return N(this,"runtime",y6)}static $p(){return rM}};TZ=class TZ extends iK{constructor(Z){super();this.shellId=0,this.chars="",y6.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 y6.util.equals(TZ,Z,$)}static $(){return["WriteShellStdinArgs|1 shell_id 13|2 chars 9"]}};RZ=class RZ extends iK{constructor(Z){super();this.result={case:void 0},y6.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 y6.util.equals(RZ,Z,$)}static $(){return["WriteShellStdinResult|1 success #0 result|2 error #1 result",L1,w1]}};L1=class L1 extends iK{constructor(Z){super();this.shellId=0,this.terminalFileLengthBeforeInputWritten=0,y6.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 y6.util.equals(L1,Z,$)}static $(){return["WriteShellStdinSuccess|1 shell_id 13|2 terminal_file_length_before_input_written 13"]}};w1=class w1 extends iK{constructor(Z){super();this.error="",y6.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 y6.util.equals(w1,Z,$)}static $(){return["WriteShellStdinError|1 error 9"]}}});import{Message as Gn,proto3 as sQ}from"@bufbuild/protobuf";var sM="agent.v1.",bB,yZ;var dB=I(()=>{gB();k();bB=class bB extends B{static get runtime(){return N(this,"runtime",sQ)}static $p(){return sM}};yZ=class yZ extends bB{constructor(Z){super();sQ.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 sQ.util.equals(yZ,Z,$)}static $(){return["WriteShellStdinToolCall|1 args #0|2 result #1",TZ,RZ]}}});import{Message as Un,proto3 as o0}from"@bufbuild/protobuf";var tM="agent.v1.",k1,D1,I1,U1,O1,mZ;var cB=I(()=>{k();k1=class k1 extends B{static get runtime(){return N(this,"runtime",o0)}static $p(){return tM}};D1=class D1 extends k1{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 D1().fromBinary(Z,$)}static fromJson(Z,$){return new D1().fromJson(Z,$)}static fromJsonString(Z,$){return new D1().fromJsonString(Z,$)}static equals(Z,$){return o0.util.equals(D1,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"]}};I1=class I1 extends k1{constructor(Z){super();this.result={case:void 0},o0.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 o0.util.equals(I1,Z,$)}static $(){return["ReflectResult|1 success #0 result|2 error #1 result",U1,O1]}};U1=class U1 extends k1{constructor(Z){super();o0.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 o0.util.equals(U1,Z,$)}static $(){return["ReflectSuccess"]}};O1=class O1 extends k1{constructor(Z){super();this.error="",o0.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 o0.util.equals(O1,Z,$)}static $(){return["ReflectError|1 error 9"]}};mZ=class mZ extends k1{constructor(Z){super();o0.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 o0.util.equals(mZ,Z,$)}static $(){return["ReflectToolCall|1 args #0|2 result #1",D1,I1]}}});import{Message as En,proto3 as m6}from"@bufbuild/protobuf";var oM="agent.v1.",nK,jZ,o6,f1,_Z;var uB=I(()=>{k();nK=class nK extends B{static get runtime(){return N(this,"runtime",m6)}static $p(){return oM}};jZ=class jZ extends nK{constructor(Z){super();this.installCommand="",this.startCommand="",this.dockerfileContents="",m6.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 m6.util.equals(jZ,Z,$)}static $(){return["SetupVmEnvironmentArgs|2 install_command 9|3 start_command 9|4 dockerfile_contents 9"]}};o6=class o6 extends nK{constructor(Z){super();this.result={case:void 0},m6.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 m6.util.equals(o6,Z,$)}static $(){return["SetupVmEnvironmentResult|1 success #0 result",f1]}};f1=class f1 extends nK{constructor(Z){super();m6.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 m6.util.equals(f1,Z,$)}static $(){return["SetupVmEnvironmentSuccess"]}};_Z=class _Z extends nK{constructor(Z){super();m6.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 m6.util.equals(_Z,Z,$)}static $(){return["SetupVmEnvironmentToolCall|1 args #0|2 result #1",jZ,o6]}}});import{Message as Mn,proto3 as e0}from"@bufbuild/protobuf";var eM="agent.v1.",M1,E1,P1,V1,x1,SZ;var lB=I(()=>{k();M1=class M1 extends B{static get runtime(){return N(this,"runtime",e0)}static $p(){return eM}};E1=class E1 extends M1{constructor(Z){super();this.toolCallId="",e0.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 e0.util.equals(E1,Z,$)}static $(){return["StartGrindExecutionArgs|1 explanation 9?|2 tool_call_id 9"]}};P1=class P1 extends M1{constructor(Z){super();this.result={case:void 0},e0.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 e0.util.equals(P1,Z,$)}static $(){return["StartGrindExecutionResult|1 success #0 result|2 error #1 result",V1,x1]}};V1=class V1 extends M1{constructor(Z){super();e0.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 e0.util.equals(V1,Z,$)}static $(){return["StartGrindExecutionSuccess"]}};x1=class x1 extends M1{constructor(Z){super();this.error="",e0.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 e0.util.equals(x1,Z,$)}static $(){return["StartGrindExecutionError|1 error 9"]}};SZ=class SZ extends M1{constructor(Z){super();e0.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 e0.util.equals(SZ,Z,$)}static $(){return["StartGrindExecutionToolCall|1 args #0|2 result #1",E1,P1]}}});import{Message as Cn,proto3 as Z6}from"@bufbuild/protobuf";var Zh="agent.v1.",T1,h1,A1,v1,C1,gZ;var pB=I(()=>{k();T1=class T1 extends B{static get runtime(){return N(this,"runtime",Z6)}static $p(){return Zh}};h1=class h1 extends T1{constructor(Z){super();this.toolCallId="",Z6.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 Z6.util.equals(h1,Z,$)}static $(){return["StartGrindPlanningArgs|1 explanation 9?|2 tool_call_id 9"]}};A1=class A1 extends T1{constructor(Z){super();this.result={case:void 0},Z6.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 Z6.util.equals(A1,Z,$)}static $(){return["StartGrindPlanningResult|1 success #0 result|2 error #1 result",v1,C1]}};v1=class v1 extends T1{constructor(Z){super();Z6.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 Z6.util.equals(v1,Z,$)}static $(){return["StartGrindPlanningSuccess"]}};C1=class C1 extends T1{constructor(Z){super();this.error="",Z6.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 Z6.util.equals(C1,Z,$)}static $(){return["StartGrindPlanningError|1 error 9"]}};gZ=class gZ extends T1{constructor(Z){super();Z6.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 Z6.util.equals(gZ,Z,$)}static $(){return["StartGrindPlanningToolCall|1 args #0|2 result #1",h1,A1]}}});import{Message as mn,proto3 as t}from"@bufbuild/protobuf";var $h="agent.v1.",P6,R1,y1,m1,j1,_1,bZ,dZ,S1,g1;var iB=I(()=>{x8();k();P6=class P6 extends B{static get runtime(){return N(this,"runtime",t)}static $p(){return $h}};R1=class R1 extends P6{constructor(Z){super();this.url="",this.toolCallId="",t.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 t.util.equals(R1,Z,$)}static $(){return["WebFetchArgs|1 url 9|2 tool_call_id 9"]}};y1=class y1 extends P6{constructor(Z){super();this.result={case:void 0},t.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 t.util.equals(y1,Z,$)}static $(){return["WebFetchResult|1 success #0 result|2 error #1 result|3 rejected #2 result",m1,j1,_1]}};m1=class m1 extends P6{constructor(Z){super();this.url="",this.markdown="",t.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 t.util.equals(m1,Z,$)}static $(){return["WebFetchSuccess|1 url 9|2 markdown 9|3 output_location #0?",q0]}};j1=class j1 extends P6{constructor(Z){super();this.url="",this.error="",t.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 t.util.equals(j1,Z,$)}static $(){return["WebFetchError|1 url 9|2 error 9"]}};_1=class _1 extends P6{constructor(Z){super();this.reason="",t.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 t.util.equals(_1,Z,$)}static $(){return["WebFetchRejected|1 reason 9"]}};bZ=class bZ extends P6{constructor(Z){super();t.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 t.util.equals(bZ,Z,$)}static $(){return["WebFetchToolCall|1 args #0|2 result #1",R1,y1]}};dZ=class dZ extends P6{constructor(Z){super();this.result={case:void 0},t.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 t.util.equals(dZ,Z,$)}static $(){return["WebFetchRequestResponse|1 approved #0 result|2 rejected #1 result",S1,g1]}};S1=class S1 extends P6{constructor(Z){super();t.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 t.util.equals(S1,Z,$)}static $(){return["WebFetchRequestResponse.Approved"]}};g1=class g1 extends P6{constructor(Z){super();this.reason="",t.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 t.util.equals(g1,Z,$)}static $(){return["WebFetchRequestResponse.Rejected|1 reason 9"]}}});import{Message as bn,proto3 as M0}from"@bufbuild/protobuf";var aB="agent.v1.",lZ,nB,cZ,b1,d1,c1,u1,uZ;var rB=I(()=>{k();lZ=class lZ extends B{static get runtime(){return N(this,"runtime",M0)}static $p(){return aB}};nB=w(M0,aB,"BugfixVerdict",[[0,"UNSPECIFIED"],[1,"FIXED"],[2,"FALSE_POSITIVE"],[3,"COULD_NOT_FIX"],[4,"RESOLVED_BY_OTHER_FIX"]],1);cZ=class cZ extends lZ{constructor(Z){super();this.bugId="",this.bugTitle="",this.verdict=nB.UNSPECIFIED,this.explanation="",M0.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 M0.util.equals(cZ,Z,$)}static $(){return["BugfixResultItem|1 bug_id 9|2 bug_title 9|3 verdict #0|4 explanation 9|5 severity 9?",nB]}};b1=class b1 extends lZ{constructor(Z){super();this.summary="",this.results=[],M0.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 M0.util.equals(b1,Z,$)}static $(){return["ReportBugfixResultsArgs|1 summary 9|2 results #0*",cZ]}};d1=class d1 extends lZ{constructor(Z){super();this.results=[],M0.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 M0.util.equals(d1,Z,$)}static $(){return["ReportBugfixResultsSuccess|1 results #0*",cZ]}};c1=class c1 extends lZ{constructor(Z){super();this.error="",M0.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 M0.util.equals(c1,Z,$)}static $(){return["ReportBugfixResultsError|1 error 9"]}};u1=class u1 extends lZ{constructor(Z){super();this.result={case:void 0},M0.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 M0.util.equals(u1,Z,$)}static $(){return["ReportBugfixResultsResult|1 success #0 result|2 error #1 result",d1,c1]}};uZ=class uZ extends lZ{constructor(Z){super();M0.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 M0.util.equals(uZ,Z,$)}static $(){return["ReportBugfixResultsToolCall|1 args #0|2 result #1",b1,u1]}}});import{Message as ln,proto3 as $6}from"@bufbuild/protobuf";var Jh="agent.v1.",a1,l1,p1,i1,n1,pZ;var sB=I(()=>{x8();k();a1=class a1 extends B{static get runtime(){return N(this,"runtime",$6)}static $p(){return Jh}};l1=class l1 extends a1{constructor(Z){super();this.filePaths=[],this.commitHashes=[],$6.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 $6.util.equals(l1,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?"]}};p1=class p1 extends a1{constructor(Z){super();this.result={case:void 0},$6.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 $6.util.equals(p1,Z,$)}static $(){return["AiAttributionResult|1 success #0 result|2 error #1 result",i1,n1]}};i1=class i1 extends a1{constructor(Z){super();this.attributionText="",$6.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 $6.util.equals(i1,Z,$)}static $(){return["AiAttributionSuccess|1 attribution_text 9|2 output_location #0?",q0]}};n1=class n1 extends a1{constructor(Z){super();this.error="",$6.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 $6.util.equals(n1,Z,$)}static $(){return["AiAttributionError|1 error 9"]}};pZ=class pZ extends a1{constructor(Z){super();$6.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 $6.util.equals(pZ,Z,$)}static $(){return["AiAttributionToolCall|1 args #0|2 result #1",l1,p1]}}});import{Message as sn,proto3 as y,protoInt64 as Yh}from"@bufbuild/protobuf";var oB="agent.v1.",G0,tB,r1,s1,t1,o1,e1,ZJ,$J,e6,JJ,YJ,XJ,zJ,KJ,iZ;var eB=I(()=>{k();G0=class G0 extends B{static get runtime(){return N(this,"runtime",y)}static $p(){return oB}};tB=w(y,oB,"PullRequestStatus",[[0,"UNSPECIFIED"],[1,"OPEN"],[2,"CLOSED"]],1);r1=class r1 extends G0{constructor(Z){super();this.toolCallId="",this.action={case:void 0},y.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 y.util.equals(r1,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",s1,t1,o1,e1,ZJ,$J]}};s1=class s1 extends G0{constructor(Z){super();this.title="",this.body="",this.branchName="",this.addLabels=[],y.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 y.util.equals(s1,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?"]}};t1=class t1 extends G0{constructor(Z){super();this.addLabels=[],this.removeLabels=[],y.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 y.util.equals(t1,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?"]}};o1=class o1 extends G0{constructor(Z){super();this.body="",y.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 y.util.equals(o1,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?"]}};e1=class e1 extends G0{constructor(Z){super();this.commentId=Yh.zero,y.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 y.util.equals(e1,Z,$)}static $(){return["ResolveCommentAction|1 pr_url 9?|2 branch_name 9?|3 comment_id 3|4 repo_url 9?|5 comment_reference 9?"]}};ZJ=class ZJ extends G0{constructor(Z){super();y.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 y.util.equals(ZJ,Z,$)}static $(){return["GetCiStatusAction|1 pr_url 9?|2 branch_name 9?|3 repo_url 9?"]}};$J=class $J extends G0{constructor(Z){super();this.status=tB.UNSPECIFIED,y.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 y.util.equals($J,Z,$)}static $(){return["SetPrStatusAction|1 pr_url 9?|2 branch_name 9?|3 repo_url 9?|4 status #0",tB]}};e6=class e6 extends G0{constructor(Z){super();this.result={case:void 0},y.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 y.util.equals(e6,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",JJ,YJ,XJ,zJ,KJ]}};JJ=class JJ extends G0{constructor(Z){super();this.prUrl="",this.prNumber=0,this.message="",y.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 y.util.equals(JJ,Z,$)}static $(){return["PrManagementSuccess|1 pr_url 9|2 pr_number 5|3 message 9"]}};YJ=class YJ extends G0{constructor(Z){super();this.error="",y.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 y.util.equals(YJ,Z,$)}static $(){return["PrManagementError|1 error 9"]}};XJ=class XJ extends G0{constructor(Z){super();this.reason="",y.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 y.util.equals(XJ,Z,$)}static $(){return["PrManagementRejected|1 reason 9"]}};zJ=class zJ extends G0{constructor(Z){super();this.message="",this.title="",this.body="",this.branchName="",y.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 y.util.equals(zJ,Z,$)}static $(){return["PrManagementRegistered|1 message 9|2 title 9|3 body 9|4 base_branch 9?|5 draft 8?|6 branch_name 9"]}};KJ=class KJ extends G0{constructor(Z){super();this.message="",this.discoveredPrUrl="",this.discoveredPrNumber=0,this.discoveredPrTitle="",this.branchName="",y.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 y.util.equals(KJ,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"]}};iZ=class iZ extends G0{constructor(Z){super();y.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 y.util.equals(iZ,Z,$)}static $(){return["PrManagementToolCall|1 args #0|2 result #1",r1,e6]}}});import{Message as Za,proto3 as o}from"@bufbuild/protobuf";var Xh="agent.v1.",V6,HJ,QJ,qJ,WJ,NJ,nZ,aZ,BJ,FJ;var ZF=I(()=>{k();V6=class V6 extends B{static get runtime(){return N(this,"runtime",o)}static $p(){return Xh}};HJ=class HJ extends V6{constructor(Z){super();this.serverIdentifier="",this.toolCallId="",o.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 o.util.equals(HJ,Z,$)}static $(){return["McpAuthArgs|1 server_identifier 9|2 tool_call_id 9"]}};QJ=class QJ extends V6{constructor(Z){super();this.result={case:void 0},o.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 o.util.equals(QJ,Z,$)}static $(){return["McpAuthResult|1 success #0 result|2 error #1 result|3 rejected #2 result",qJ,WJ,NJ]}};qJ=class qJ extends V6{constructor(Z){super();this.serverIdentifier="",o.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 o.util.equals(qJ,Z,$)}static $(){return["McpAuthSuccess|1 server_identifier 9"]}};WJ=class WJ extends V6{constructor(Z){super();this.error="",o.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 o.util.equals(WJ,Z,$)}static $(){return["McpAuthError|1 error 9"]}};NJ=class NJ extends V6{constructor(Z){super();this.reason="",o.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 o.util.equals(NJ,Z,$)}static $(){return["McpAuthRejected|1 reason 9"]}};nZ=class nZ extends V6{constructor(Z){super();o.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 o.util.equals(nZ,Z,$)}static $(){return["McpAuthToolCall|1 args #0|2 result #1",HJ,QJ]}};aZ=class aZ extends V6{constructor(Z){super();this.result={case:void 0},o.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 o.util.equals(aZ,Z,$)}static $(){return["McpAuthRequestResponse|1 approved #0 result|2 rejected #1 result",BJ,FJ]}};BJ=class BJ extends V6{constructor(Z){super();o.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 o.util.equals(BJ,Z,$)}static $(){return["McpAuthRequestResponse.Approved"]}};FJ=class FJ extends V6{constructor(Z){super();this.reason="",o.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 o.util.equals(FJ,Z,$)}static $(){return["McpAuthRequestResponse.Rejected|1 reason 9"]}}});import{Message as Xa,proto3 as L0,protoInt64 as MH}from"@bufbuild/protobuf";var zh="agent.v1.",Z8,GJ,rZ,sZ,LJ,wJ,DJ,tZ;var $F=I(()=>{k();Z8=class Z8 extends B{static get runtime(){return N(this,"runtime",L0)}static $p(){return zh}};GJ=class GJ extends Z8{constructor(Z){super();this.taskId="",L0.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 L0.util.equals(GJ,Z,$)}static $(){return["AwaitArgs|1 task_id 9|2 block_until_ms 13?|3 regex 9?"]}};rZ=class rZ extends Z8{constructor(Z){super();this.taskId="",this.runtimeMs=MH.zero,this.outputFilePath="",this.outputLength=MH.zero,this.regexRequested=!1,L0.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 L0.util.equals(rZ,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?"]}};sZ=class sZ extends Z8{constructor(Z){super();this.taskId="",this.runtimeMs=MH.zero,this.outputFilePath="",this.outputLength=MH.zero,this.regexRequested=!1,L0.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 L0.util.equals(sZ,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?"]}};LJ=class LJ extends Z8{constructor(Z){super();this.error="",L0.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 L0.util.equals(LJ,Z,$)}static $(){return["AwaitError|1 error 9"]}};wJ=class wJ extends Z8{constructor(Z){super();this.awaitResult={case:void 0},L0.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 L0.util.equals(wJ,Z,$)}static $(){return["AwaitSuccess|1 complete #0 await_result|2 still_running #1 await_result",rZ,sZ]}};DJ=class DJ extends Z8{constructor(Z){super();this.result={case:void 0},L0.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 L0.util.equals(DJ,Z,$)}static $(){return["AwaitResult|1 complete #0 result|2 still_running #1 result|3 error #2 result|4 success #3 result",rZ,sZ,LJ,wJ]}};tZ=class tZ extends Z8{constructor(Z){super();L0.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 L0.util.equals(tZ,Z,$)}static $(){return["AwaitToolCall|1 args #0|2 result #1",GJ,DJ]}}});import{Message as Qa,proto3 as J6}from"@bufbuild/protobuf";var Kh="agent.v1.",fJ,IJ,UJ,OJ,kJ,oZ;var JF=I(()=>{k();fJ=class fJ extends B{static get runtime(){return N(this,"runtime",J6)}static $p(){return Kh}};IJ=class IJ extends fJ{constructor(Z){super();this.filePath="",J6.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 J6.util.equals(IJ,Z,$)}static $(){return["BlameByFilePathArgs|1 file_path 9|2 start_line 5?|3 end_line 5?"]}};UJ=class UJ extends fJ{constructor(Z){super();this.content="",J6.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 J6.util.equals(UJ,Z,$)}static $(){return["BlameByFilePathSuccess|1 content 9"]}};OJ=class OJ extends fJ{constructor(Z){super();this.errorMessage="",J6.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 J6.util.equals(OJ,Z,$)}static $(){return["BlameByFilePathError|1 error_message 9"]}};kJ=class kJ extends fJ{constructor(Z){super();this.result={case:void 0},J6.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 J6.util.equals(kJ,Z,$)}static $(){return["BlameByFilePathResult|1 success #0 result|2 error #1 result",UJ,OJ]}};oZ=class oZ extends fJ{constructor(Z){super();J6.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 J6.util.equals(oZ,Z,$)}static $(){return["BlameByFilePathToolCall|1 args #0|2 result #1",IJ,kJ]}}});import{Message as Ba,proto3 as Y6}from"@bufbuild/protobuf";var Hh="agent.v1.",MJ,EJ,PJ,VJ,xJ,eZ;var YF=I(()=>{k();MJ=class MJ extends B{static get runtime(){return N(this,"runtime",Y6)}static $p(){return Hh}};EJ=class EJ extends MJ{constructor(Z){super();this.toolCallId="",Y6.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 Y6.util.equals(EJ,Z,$)}static $(){return["GetMcpToolsArgs|1 server 9?|2 tool_name 9?|3 pattern 9?|4 tool_call_id 9"]}};PJ=class PJ extends MJ{constructor(Z){super();this.result={case:void 0},Y6.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 Y6.util.equals(PJ,Z,$)}static $(){return["GetMcpToolsAgentResult|1 success #0 result|2 error #1 result",VJ,xJ]}};VJ=class VJ extends MJ{constructor(Z){super();this.content="",Y6.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 Y6.util.equals(VJ,Z,$)}static $(){return["GetMcpToolsSuccess|1 content 9|2 output_file_path 9?"]}};xJ=class xJ extends MJ{constructor(Z){super();this.error="",Y6.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 Y6.util.equals(xJ,Z,$)}static $(){return["GetMcpToolsError|1 error 9"]}};eZ=class eZ extends MJ{constructor(Z){super();Y6.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 Y6.util.equals(eZ,Z,$)}static $(){return["GetMcpToolsToolCall|1 args #0|2 result #1",EJ,PJ]}}});import{Message as wa,proto3 as X6}from"@bufbuild/protobuf";var Qh="agent.v1.",TJ,hJ,AJ,vJ,CJ,Z$;var XF=I(()=>{k();TJ=class TJ extends B{static get runtime(){return N(this,"runtime",X6)}static $p(){return Qh}};hJ=class hJ extends TJ{constructor(Z){super();this.title="",this.file="",this.startLine=0,this.endLine=0,this.description="",this.severity="",this.category="",this.rationale="",X6.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 X6.util.equals(hJ,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"]}};AJ=class AJ extends TJ{constructor(Z){super();this.output="",X6.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 X6.util.equals(AJ,Z,$)}static $(){return["ReportBugSuccess|1 output 9"]}};vJ=class vJ extends TJ{constructor(Z){super();this.errorMessage="",X6.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 X6.util.equals(vJ,Z,$)}static $(){return["ReportBugError|1 error_message 9"]}};CJ=class CJ extends TJ{constructor(Z){super();this.result={case:void 0},X6.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 X6.util.equals(CJ,Z,$)}static $(){return["ReportBugResult|1 success #0 result|2 error #1 result",AJ,vJ]}};Z$=class Z$ extends TJ{constructor(Z){super();X6.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 X6.util.equals(Z$,Z,$)}static $(){return["ReportBugToolCall|1 args #0|2 result #1",hJ,CJ]}}});import{Message as Oa,proto3 as z6}from"@bufbuild/protobuf";var qh="agent.v1.",_J,RJ,yJ,mJ,jJ,$$;var zF=I(()=>{k();_J=class _J extends B{static get runtime(){return N(this,"runtime",z6)}static $p(){return qh}};RJ=class RJ extends _J{constructor(Z){super();z6.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 z6.util.equals(RJ,Z,$)}static $(){return["CommunicateUpdateArgs|1 current_step 9?|3 final_summary 9?|4 completed_subtitle 9?"]}};yJ=class yJ extends _J{constructor(Z){super();this.currentStep="",this.messageIndex=0,z6.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 z6.util.equals(yJ,Z,$)}static $(){return["CommunicateUpdateSuccess|1 current_step 9|3 message_index 13"]}};mJ=class mJ extends _J{constructor(Z){super();this.error="",z6.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 z6.util.equals(mJ,Z,$)}static $(){return["CommunicateUpdateError|1 error 9"]}};jJ=class jJ extends _J{constructor(Z){super();this.result={case:void 0},z6.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 z6.util.equals(jJ,Z,$)}static $(){return["CommunicateUpdateResult|1 success #0 result|2 error #1 result",yJ,mJ]}};$$=class $$ extends _J{constructor(Z){super();z6.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 z6.util.equals($$,Z,$)}static $(){return["CommunicateUpdateToolCall|1 args #0|2 result #1",RJ,jJ]}}});import{Message as Pa,proto3 as K6}from"@bufbuild/protobuf";var Wh="agent.v1.",cJ,SJ,gJ,bJ,dJ,J$;var KF=I(()=>{k();cJ=class cJ extends B{static get runtime(){return N(this,"runtime",K6)}static $p(){return Wh}};SJ=class SJ extends cJ{constructor(Z){super();K6.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 K6.util.equals(SJ,Z,$)}static $(){return["SendFinalSummaryArgs|1 final_summary 9?"]}};gJ=class gJ extends cJ{constructor(Z){super();this.finalSummary="",K6.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 K6.util.equals(gJ,Z,$)}static $(){return["SendFinalSummarySuccess|1 final_summary 9"]}};bJ=class bJ extends cJ{constructor(Z){super();this.error="",K6.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 K6.util.equals(bJ,Z,$)}static $(){return["SendFinalSummaryError|1 error 9"]}};dJ=class dJ extends cJ{constructor(Z){super();this.result={case:void 0},K6.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 K6.util.equals(dJ,Z,$)}static $(){return["SendFinalSummaryResult|1 success #0 result|2 error #1 result",gJ,bJ]}};J$=class J$ extends cJ{constructor(Z){super();K6.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 K6.util.equals(J$,Z,$)}static $(){return["SendFinalSummaryToolCall|1 args #0|2 result #1",SJ,dJ]}}});import{Message as ha,proto3 as b0}from"@bufbuild/protobuf";var QF="agent.v1.",nJ,HF,uJ,lJ,pJ,iJ,Y$;var qF=I(()=>{k();nJ=class nJ extends B{static get runtime(){return N(this,"runtime",b0)}static $p(){return QF}};HF=w(b0,QF,"UpdatePrCodeTourExecutionMode",[[0,"UNSPECIFIED"],[1,"SERVER_SCHEDULED"],[2,"CLIENT_REQUIRED"],[3,"SKIPPED"],[4,"EDITED"]],1);uJ=class uJ extends nJ{constructor(Z){super();this.feedback="",this.toolCallId="",this.scopeCommitHashes=[],b0.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 b0.util.equals(uJ,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?"]}};lJ=class lJ extends nJ{constructor(Z){super();this.result={case:void 0},b0.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 b0.util.equals(lJ,Z,$)}static $(){return["UpdatePrCodeTourResult|1 success #0 result|2 error #1 result",pJ,iJ]}};pJ=class pJ extends nJ{constructor(Z){super();this.revisionId="",this.message="",this.executionMode=HF.UNSPECIFIED,b0.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 b0.util.equals(pJ,Z,$)}static $(){return["UpdatePrCodeTourSuccess|1 revision_id 9|2 message 9|3 execution_mode #0",HF]}};iJ=class iJ extends nJ{constructor(Z){super();this.error="",b0.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 b0.util.equals(iJ,Z,$)}static $(){return["UpdatePrCodeTourError|1 error 9"]}};Y$=class Y$ extends nJ{constructor(Z){super();b0.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 b0.util.equals(Y$,Z,$)}static $(){return["UpdatePrCodeTourToolCall|1 args #0|2 result #1",uJ,lJ]}}});import{Message as Ta,proto3 as z0}from"@bufbuild/protobuf";var NF="agent.v1.",J8,WF,aJ,rJ,X$,sJ,tJ,$8,z$;var BF=I(()=>{k();J8=class J8 extends B{static get runtime(){return N(this,"runtime",z0)}static $p(){return NF}};WF=w(z0,NF,"ReplaceEnvMode",[[0,"UNSPECIFIED"],[1,"CUSTOM"],[2,"CLEAN_SLATE"],[3,"DEFAULT"]],1);aJ=class aJ extends J8{constructor(Z){super();this.repoUrl="",this.ref="",z0.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 z0.util.equals(aJ,Z,$)}static $(){return["RepoCheckoutRefOverride|1 repo_url 9|2 ref 9"]}};rJ=class rJ extends J8{constructor(Z){super();this.installScript="",this.dockerfileContents="",z0.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 z0.util.equals(rJ,Z,$)}static $(){return["ReplaceEnvConfig|1 install_script 9|2 dockerfile_contents 9"]}};X$=class X$ extends J8{constructor(Z){super();this.mode=WF.UNSPECIFIED,this.checkoutRefOverrides=[],z0.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 z0.util.equals(X$,Z,$)}static $(){return["ReplaceEnvArgs|1 config #0|2 mode #1|3 checkout_ref_overrides #2*",rJ,WF,aJ]}};sJ=class sJ extends J8{constructor(Z){super();this.setupLogs="",z0.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 z0.util.equals(sJ,Z,$)}static $(){return["ReplaceEnvSuccess|1 setup_logs 9"]}};tJ=class tJ extends J8{constructor(Z){super();this.errorMessage="",this.setupLogs="",z0.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 z0.util.equals(tJ,Z,$)}static $(){return["ReplaceEnvFailure|1 error_message 9|2 setup_logs 9"]}};$8=class $8 extends J8{constructor(Z){super();this.result={case:void 0},z0.util.initPartial(Z,this)}static fromBinary(Z,$){return new $8().fromBinary(Z,$)}static fromJson(Z,$){return new $8().fromJson(Z,$)}static fromJsonString(Z,$){return new $8().fromJsonString(Z,$)}static equals(Z,$){return z0.util.equals($8,Z,$)}static $(){return["ReplaceEnvResult|1 success #0 result|2 failure #1 result",sJ,tJ]}};z$=class z$ extends J8{constructor(Z){super();this.associatedPodKey="",z0.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 z0.util.equals(z$,Z,$)}static $(){return["ReplaceEnvToolCall|1 args #0|2 result #1|3 associated_pod_key 9",X$,$8]}}});import{Message as ja,proto3 as H6}from"@bufbuild/protobuf";var Nh="agent.v1.",J3,oJ,eJ,Z3,$3,K$;var FF=I(()=>{k();J3=class J3 extends B{static get runtime(){return N(this,"runtime",H6)}static $p(){return Nh}};oJ=class oJ extends J3{constructor(Z){super();this.toolCallId="",this.prUrl="",this.addLabels=[],this.removeLabels=[],H6.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 H6.util.equals(oJ,Z,$)}static $(){return["EditPrLabelsArgs|1 tool_call_id 9|2 pr_url 9|4 add_labels 9*|5 remove_labels 9*"]}};eJ=class eJ extends J3{constructor(Z){super();this.result={case:void 0},H6.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 H6.util.equals(eJ,Z,$)}static $(){return["EditPrLabelsResult|1 success #0 result|2 error #1 result",Z3,$3]}};Z3=class Z3 extends J3{constructor(Z){super();this.prUrl="",this.prNumber=0,this.message="",H6.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 H6.util.equals(Z3,Z,$)}static $(){return["EditPrLabelsSuccess|1 pr_url 9|2 pr_number 5|3 message 9"]}};$3=class $3 extends J3{constructor(Z){super();this.error="",H6.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 H6.util.equals($3,Z,$)}static $(){return["EditPrLabelsError|1 error 9"]}};K$=class K$ extends J3{constructor(Z){super();H6.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 H6.util.equals(K$,Z,$)}static $(){return["EditPrLabelsToolCall|1 args #0|2 result #1",oJ,eJ]}}});import{Message as ba,proto3 as w0}from"@bufbuild/protobuf";var Bh="agent.v1.",Y8,Y3,X3,z3,K3,H3,Q3,H$;var GF=I(()=>{k();Y8=class Y8 extends B{static get runtime(){return N(this,"runtime",w0)}static $p(){return Bh}};Y3=class Y3 extends Y8{constructor(Z){super();this.checkName="",this.tldr="",w0.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 w0.util.equals(Y3,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?"]}};X3=class X3 extends Y8{constructor(Z){super();this.summary="",this.themes=[],this.checkKeys=[],w0.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 w0.util.equals(X3,Z,$)}static $(){return["RecordCiInvestigationOverall|1 summary 9|2 themes 9*|3 recommended_action 9?|4 recommended_action_evidence 9?|5 check_keys 9*"]}};z3=class z3 extends Y8{constructor(Z){super();this.findings=[],this.toolCallId="",w0.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 w0.util.equals(z3,Z,$)}static $(){return["RecordCiInvestigationFindingsArgs|1 findings #0*|2 overall #1?|3 tool_call_id 9",Y3,X3]}};K3=class K3 extends Y8{constructor(Z){super();this.message="",w0.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 w0.util.equals(K3,Z,$)}static $(){return["RecordCiInvestigationFindingsSuccess|1 message 9"]}};H3=class H3 extends Y8{constructor(Z){super();this.error="",w0.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 w0.util.equals(H3,Z,$)}static $(){return["RecordCiInvestigationFindingsError|1 error 9"]}};Q3=class Q3 extends Y8{constructor(Z){super();this.result={case:void 0},w0.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 w0.util.equals(Q3,Z,$)}static $(){return["RecordCiInvestigationFindingsResult|1 success #0 result|2 error #1 result",K3,H3]}};H$=class H$ extends Y8{constructor(Z){super();w0.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 w0.util.equals(H$,Z,$)}static $(){return["RecordCiInvestigationFindingsToolCall|1 args #0|2 result #1",z3,Q3]}}});import{Message as la,proto3 as D0,protoInt64 as Fh}from"@bufbuild/protobuf";var Gh="agent.v1.",X8,q3,W3,N3,B3,F3,G3,Q$;var LF=I(()=>{k();X8=class X8 extends B{static get runtime(){return N(this,"runtime",D0)}static $p(){return Gh}};q3=class q3 extends X8{constructor(Z){super();this.content="",D0.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 D0.util.equals(q3,Z,$)}static $(){return["SendMessageText|1 content 9"]}};W3=class W3 extends X8{constructor(Z){super();this.url="",D0.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 D0.util.equals(W3,Z,$)}static $(){return["SendMessageAttachment|1 url 9|2 alt 9?"]}};N3=class N3 extends X8{constructor(Z){super();this.message={case:void 0},D0.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 D0.util.equals(N3,Z,$)}static $(){return["SendMessageArgs|1 text #0 message|2 attachment #1 message",q3,W3]}};B3=class B3 extends X8{constructor(Z){super();this.timestamp=Fh.zero,this.messageId="",D0.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 D0.util.equals(B3,Z,$)}static $(){return["SendMessageSuccess|1 timestamp 4|2 message_id 9"]}};F3=class F3 extends X8{constructor(Z){super();this.error="",D0.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 D0.util.equals(F3,Z,$)}static $(){return["SendMessageError|1 error 9"]}};G3=class G3 extends X8{constructor(Z){super();this.result={case:void 0},D0.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 D0.util.equals(G3,Z,$)}static $(){return["SendMessageResult|1 success #0 result|2 error #1 result",B3,F3]}};Q$=class Q$ extends X8{constructor(Z){super();D0.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 D0.util.equals(Q$,Z,$)}static $(){return["SendMessageToolCall|1 args #0|2 result #1",N3,G3]}}});import{Message as aa,proto3 as Q6}from"@bufbuild/protobuf";var Lh="agent.v1.",U3,L3,w3,D3,I3,q$;var wF=I(()=>{k();U3=class U3 extends B{static get runtime(){return N(this,"runtime",Q6)}static $p(){return Lh}};L3=class L3 extends U3{constructor(Z){super();this.bcIds=[],this.sources=[],this.statuses=[],this.includeTeamWide=!1,this.includeArchived=!1,this.includeTranscript=!1,this.activeSince="",Q6.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 Q6.util.equals(L3,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"]}};w3=class w3 extends U3{constructor(Z){super();this.result={case:void 0},Q6.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 Q6.util.equals(w3,Z,$)}static $(){return["FetchCloudAgentDataResult|1 success #0 result|2 error #1 result",D3,I3]}};D3=class D3 extends U3{constructor(Z){super();this.summary="",this.agentCount=0,this.writtenPaths=[],this.unavailableBcIds=[],Q6.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 Q6.util.equals(D3,Z,$)}static $(){return["FetchCloudAgentDataSuccess|1 summary 9|2 agent_count 5|3 written_paths 9*|4 unavailable_bc_ids 9*"]}};I3=class I3 extends U3{constructor(Z){super();this.error="",Q6.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 Q6.util.equals(I3,Z,$)}static $(){return["FetchCloudAgentDataError|1 error 9"]}};q$=class q$ extends U3{constructor(Z){super();Q6.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 Q6.util.equals(q$,Z,$)}static $(){return["FetchCloudAgentDataToolCall|1 args #0|2 result #1",L3,w3]}}});import{Message as oa,proto3 as q6}from"@bufbuild/protobuf";var wh="agent.v1.",P3,O3,k3,f3,E3,W$;var DF=I(()=>{k();P3=class P3 extends B{static get runtime(){return N(this,"runtime",q6)}static $p(){return wh}};O3=class O3 extends P3{constructor(Z){super();this.message="",q6.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 q6.util.equals(O3,Z,$)}static $(){return["SendToUserArgs|1 message 9"]}};k3=class k3 extends P3{constructor(Z){super();q6.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 q6.util.equals(k3,Z,$)}static $(){return["SendToUserSuccess"]}};f3=class f3 extends P3{constructor(Z){super();this.error="",q6.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 q6.util.equals(f3,Z,$)}static $(){return["SendToUserError|1 error 9"]}};E3=class E3 extends P3{constructor(Z){super();this.result={case:void 0},q6.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 q6.util.equals(E3,Z,$)}static $(){return["SendToUserResult|1 success #0 result|2 error #1 result",k3,f3]}};W$=class W$ extends P3{constructor(Z){super();q6.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 q6.util.equals(W$,Z,$)}static $(){return["SendToUserToolCall|1 args #0|2 result #1",O3,E3]}}});import{Message as Jr,proto3 as tQ}from"@bufbuild/protobuf";var Dh="agent.v1.",IF,K0;var V3=I(()=>{k();IF=class IF extends B{static get runtime(){return N(this,"runtime",tQ)}static $p(){return Dh}};K0=class K0 extends IF{constructor(Z){super();this.truncated=!1,this.truncatedBy="",this.totalLines=0,this.outputLines=0,this.outputBytes=0,this.firstLineExceedsLimit=!1,this.lastLinePartial=!1,tQ.util.initPartial(Z,this)}static fromBinary(Z,$){return new K0().fromBinary(Z,$)}static fromJson(Z,$){return new K0().fromJson(Z,$)}static fromJsonString(Z,$){return new K0().fromJsonString(Z,$)}static equals(Z,$){return tQ.util.equals(K0,Z,$)}static $(){return["PiTruncation|1 truncated 8|2 truncated_by 9|3 total_lines 13|4 output_lines 13|5 output_bytes 13|6 max_lines 13?|7 max_bytes 13?|8 first_line_exceeds_limit 8|9 last_line_partial 8"]}}});import{Message as Kr,proto3 as W6}from"@bufbuild/protobuf";var Ih="agent.v1.",v3,N$,x3,M3,h3,A3;var UF=I(()=>{V3();k();v3=class v3 extends B{static get runtime(){return N(this,"runtime",W6)}static $p(){return Ih}};N$=class N$ extends v3{constructor(Z){super();W6.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 W6.util.equals(N$,Z,$)}static $(){return["PiReadToolCall|1 args #0|2 result #1",x3,M3]}};x3=class x3 extends v3{constructor(Z){super();this.path="",W6.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 W6.util.equals(x3,Z,$)}static $(){return["PiReadToolArgs|1 path 9|2 offset 5?|3 limit 5?"]}};M3=class M3 extends v3{constructor(Z){super();this.result={case:void 0},W6.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 W6.util.equals(M3,Z,$)}static $(){return["PiReadToolResult|1 success #0 result|2 error #1 result",h3,A3]}};h3=class h3 extends v3{constructor(Z){super();this.output="",W6.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 W6.util.equals(h3,Z,$)}static $(){return["PiReadToolSuccess|1 output 9|2 truncation #0?",K0]}};A3=class A3 extends v3{constructor(Z){super();this.error="",W6.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 W6.util.equals(A3,Z,$)}static $(){return["PiReadToolError|1 error 9"]}}});import{Message as Nr,proto3 as N6}from"@bufbuild/protobuf";var Uh="agent.v1.",m3,B$,C3,T3,R3,y3;var OF=I(()=>{V3();k();m3=class m3 extends B{static get runtime(){return N(this,"runtime",N6)}static $p(){return Uh}};B$=class B$ extends m3{constructor(Z){super();N6.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 N6.util.equals(B$,Z,$)}static $(){return["PiBashToolCall|1 args #0|2 result #1",C3,T3]}};C3=class C3 extends m3{constructor(Z){super();this.command="",N6.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 N6.util.equals(C3,Z,$)}static $(){return["PiBashToolArgs|1 command 9|2 timeout 1?"]}};T3=class T3 extends m3{constructor(Z){super();this.result={case:void 0},N6.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 N6.util.equals(T3,Z,$)}static $(){return["PiBashToolResult|1 success #0 result|2 error #1 result",R3,y3]}};R3=class R3 extends m3{constructor(Z){super();this.output="",N6.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 N6.util.equals(R3,Z,$)}static $(){return["PiBashToolSuccess|1 output 9|2 truncation #0?|3 full_output_path 9?",K0]}};y3=class y3 extends m3{constructor(Z){super();this.error="",N6.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 N6.util.equals(y3,Z,$)}static $(){return["PiBashToolError|1 error 9|2 truncation #0?|3 full_output_path 9?",K0]}}});import{Message as wr,proto3 as I0}from"@bufbuild/protobuf";var Oh="agent.v1.",z8,j3,F$,_3,S3,g3,b3,d3;var kF=I(()=>{k();z8=class z8 extends B{static get runtime(){return N(this,"runtime",I0)}static $p(){return Oh}};j3=class j3 extends z8{constructor(Z){super();this.oldText="",this.newText="",I0.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 I0.util.equals(j3,Z,$)}static $(){return["PiEditReplacement|1 old_text 9|2 new_text 9"]}};F$=class F$ extends z8{constructor(Z){super();I0.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 I0.util.equals(F$,Z,$)}static $(){return["PiEditToolCall|1 args #0|2 result #1",_3,S3]}};_3=class _3 extends z8{constructor(Z){super();this.path="",this.edits=[],I0.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 I0.util.equals(_3,Z,$)}static $(){return["PiEditToolArgs|1 path 9|2 edits #0*",j3]}};S3=class S3 extends z8{constructor(Z){super();this.result={case:void 0},I0.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 I0.util.equals(S3,Z,$)}static $(){return["PiEditToolResult|1 success #0 result|2 error #1 result|3 rejected #2 result",g3,b3,d3]}};g3=class g3 extends z8{constructor(Z){super();this.output="",this.diff="",this.patch="",I0.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 I0.util.equals(g3,Z,$)}static $(){return["PiEditToolSuccess|1 output 9|2 diff 9|3 patch 9|4 first_changed_line 13?"]}};b3=class b3 extends z8{constructor(Z){super();this.error="",I0.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 I0.util.equals(b3,Z,$)}static $(){return["PiEditToolError|1 error 9"]}};d3=class d3 extends z8{constructor(Z){super();this.reason="",I0.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 I0.util.equals(d3,Z,$)}static $(){return["PiEditToolRejected|1 reason 9"]}}});import{Message as Or,proto3 as T0}from"@bufbuild/protobuf";var kh="agent.v1.",L$,G$,c3,u3,l3,p3,i3;var fF=I(()=>{k();L$=class L$ extends B{static get runtime(){return N(this,"runtime",T0)}static $p(){return kh}};G$=class G$ extends L${constructor(Z){super();T0.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 T0.util.equals(G$,Z,$)}static $(){return["PiWriteToolCall|1 args #0|2 result #1",c3,u3]}};c3=class c3 extends L${constructor(Z){super();this.path="",this.content="",T0.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 T0.util.equals(c3,Z,$)}static $(){return["PiWriteToolArgs|1 path 9|2 content 9"]}};u3=class u3 extends L${constructor(Z){super();this.result={case:void 0},T0.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 T0.util.equals(u3,Z,$)}static $(){return["PiWriteToolResult|1 success #0 result|2 error #1 result|3 rejected #2 result",l3,p3,i3]}};l3=class l3 extends L${constructor(Z){super();this.output="",T0.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 T0.util.equals(l3,Z,$)}static $(){return["PiWriteToolSuccess|1 output 9"]}};p3=class p3 extends L${constructor(Z){super();this.error="",T0.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 T0.util.equals(p3,Z,$)}static $(){return["PiWriteToolError|1 error 9"]}};i3=class i3 extends L${constructor(Z){super();this.reason="",T0.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 T0.util.equals(i3,Z,$)}static $(){return["PiWriteToolRejected|1 reason 9"]}}});import{Message as Pr,proto3 as B6}from"@bufbuild/protobuf";var fh="agent.v1.",t3,w$,n3,a3,r3,s3;var EF=I(()=>{V3();k();t3=class t3 extends B{static get runtime(){return N(this,"runtime",B6)}static $p(){return fh}};w$=class w$ extends t3{constructor(Z){super();B6.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 B6.util.equals(w$,Z,$)}static $(){return["PiGrepToolCall|1 args #0|2 result #1",n3,a3]}};n3=class n3 extends t3{constructor(Z){super();this.pattern="",B6.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 B6.util.equals(n3,Z,$)}static $(){return["PiGrepToolArgs|1 pattern 9|2 path 9?|3 glob 9?|4 ignore_case 8?|5 literal 8?|6 context 5?|7 limit 5?"]}};a3=class a3 extends t3{constructor(Z){super();this.result={case:void 0},B6.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 B6.util.equals(a3,Z,$)}static $(){return["PiGrepToolResult|1 success #0 result|2 error #1 result",r3,s3]}};r3=class r3 extends t3{constructor(Z){super();this.output="",this.linesTruncated=!1,B6.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 B6.util.equals(r3,Z,$)}static $(){return["PiGrepToolSuccess|1 output 9|2 truncation #0?|3 match_limit_reached 13?|4 lines_truncated 8",K0]}};s3=class s3 extends t3{constructor(Z){super();this.error="",B6.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 B6.util.equals(s3,Z,$)}static $(){return["PiGrepToolError|1 error 9"]}}});import{Message as Ar,proto3 as F6}from"@bufbuild/protobuf";var Eh="agent.v1.",JY,D$,o3,e3,ZY,$Y;var PF=I(()=>{V3();k();JY=class JY extends B{static get runtime(){return N(this,"runtime",F6)}static $p(){return Eh}};D$=class D$ extends JY{constructor(Z){super();F6.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 F6.util.equals(D$,Z,$)}static $(){return["PiFindToolCall|1 args #0|2 result #1",o3,e3]}};o3=class o3 extends JY{constructor(Z){super();this.pattern="",F6.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 F6.util.equals(o3,Z,$)}static $(){return["PiFindToolArgs|1 pattern 9|2 path 9?|3 limit 5?"]}};e3=class e3 extends JY{constructor(Z){super();this.result={case:void 0},F6.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 F6.util.equals(e3,Z,$)}static $(){return["PiFindToolResult|1 success #0 result|2 error #1 result",ZY,$Y]}};ZY=class ZY extends JY{constructor(Z){super();this.output="",F6.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 F6.util.equals(ZY,Z,$)}static $(){return["PiFindToolSuccess|1 output 9|2 truncation #0?|3 result_limit_reached 13?",K0]}};$Y=class $Y extends JY{constructor(Z){super();this.error="",F6.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 F6.util.equals($Y,Z,$)}static $(){return["PiFindToolError|1 error 9"]}}});import{Message as yr,proto3 as G6}from"@bufbuild/protobuf";var Ph="agent.v1.",HY,I$,YY,XY,zY,KY;var VF=I(()=>{V3();k();HY=class HY extends B{static get runtime(){return N(this,"runtime",G6)}static $p(){return Ph}};I$=class I$ extends HY{constructor(Z){super();G6.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 G6.util.equals(I$,Z,$)}static $(){return["PiLsToolCall|1 args #0|2 result #1",YY,XY]}};YY=class YY extends HY{constructor(Z){super();G6.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 G6.util.equals(YY,Z,$)}static $(){return["PiLsToolArgs|1 path 9?|2 limit 5?"]}};XY=class XY extends HY{constructor(Z){super();this.result={case:void 0},G6.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 G6.util.equals(XY,Z,$)}static $(){return["PiLsToolResult|1 success #0 result|2 error #1 result",zY,KY]}};zY=class zY extends HY{constructor(Z){super();this.output="",G6.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 G6.util.equals(zY,Z,$)}static $(){return["PiLsToolSuccess|1 output 9|2 truncation #0?|3 entry_limit_reached 13?",K0]}};KY=class KY extends HY{constructor(Z){super();this.error="",G6.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 G6.util.equals(KY,Z,$)}static $(){return["PiLsToolError|1 error 9"]}}});import{Message as gr,proto3 as S}from"@bufbuild/protobuf";var Vh="agent.v1.",R0,QY,qY,WY,NY,BY,FY,GY,U$,O$,LY,wY,DY;var xF=I(()=>{k();R0=class R0 extends B{static get runtime(){return N(this,"runtime",S)}static $p(){return Vh}};QY=class QY extends R0{constructor(Z){super();this.toolCallId="",this.target={case:void 0},S.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 S.util.equals(QY,Z,$)}static $(){return["ConnectScmArgs|1 tool_call_id 9|2 github #0 target",qY]}};qY=class qY extends R0{constructor(Z){super();S.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 S.util.equals(qY,Z,$)}static $(){return["ConnectScmGithub|1 repository #0|2 ghe_application 9?",WY]}};WY=class WY extends R0{constructor(Z){super();this.owner="",this.repo="",S.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 S.util.equals(WY,Z,$)}static $(){return["ConnectScmGithubRepository|1 owner 9|2 repo 9"]}};NY=class NY extends R0{constructor(Z){super();this.result={case:void 0},S.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 S.util.equals(NY,Z,$)}static $(){return["ConnectScmResult|1 success #0 result|2 error #1 result|3 rejected #2 result",BY,FY,GY]}};BY=class BY extends R0{constructor(Z){super();S.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 S.util.equals(BY,Z,$)}static $(){return["ConnectScmSuccess"]}};FY=class FY extends R0{constructor(Z){super();this.error="",S.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 S.util.equals(FY,Z,$)}static $(){return["ConnectScmError|1 error 9"]}};GY=class GY extends R0{constructor(Z){super();this.reason="",S.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 S.util.equals(GY,Z,$)}static $(){return["ConnectScmRejected|1 reason 9"]}};U$=class U$ extends R0{constructor(Z){super();S.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 S.util.equals(U$,Z,$)}static $(){return["ConnectScmToolCall|1 args #0|2 result #1",QY,NY]}};O$=class O$ extends R0{constructor(Z){super();this.result={case:void 0},S.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 S.util.equals(O$,Z,$)}static $(){return["ConnectScmRequestResponse|1 approved #0 result|2 rejected #1 result|3 failed #2 result",LY,wY,DY]}};LY=class LY extends R0{constructor(Z){super();S.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 S.util.equals(LY,Z,$)}static $(){return["ConnectScmRequestResponse.Approved"]}};wY=class wY extends R0{constructor(Z){super();this.reason="",S.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 S.util.equals(wY,Z,$)}static $(){return["ConnectScmRequestResponse.Rejected|1 reason 9"]}};DY=class DY extends R0{constructor(Z){super();this.error="",S.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 S.util.equals(DY,Z,$)}static $(){return["ConnectScmRequestResponse.Failed|1 error 9"]}}});import{Message as ur,proto3 as d0,protoInt64 as xh}from"@bufbuild/protobuf";var hF="agent.v1.",kY,MF,k$,f$,IY,UY,OY;var AF=I(()=>{k();kY=class kY extends B{static get runtime(){return N(this,"runtime",d0)}static $p(){return hF}};MF=w(d0,hF,"ConversationSearchSource",[[0,"UNSPECIFIED"],[1,"LOCAL"],[2,"CLOUD_CACHE"]],1);k$=class k$ extends kY{constructor(Z){super();this.query="",this.toolCallId="",d0.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 d0.util.equals(k$,Z,$)}static $(){return["ConversationSearchArgs|1 query 9|2 tool_call_id 9|3 limit 5?"]}};f$=class f$ extends kY{constructor(Z){super();this.result={case:void 0},d0.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 d0.util.equals(f$,Z,$)}static $(){return["ConversationSearchResult|1 success #0 result|2 error #1 result",IY,OY]}};IY=class IY extends kY{constructor(Z){super();this.hits=[],this.truncated=!1,this.partial=!1,this.rebuilding=!1,d0.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 d0.util.equals(IY,Z,$)}static $(){return["ConversationSearchSuccess|1 hits #0*|2 truncated 8|3 partial 8|4 rebuilding 8",UY]}};UY=class UY extends kY{constructor(Z){super();this.conversationId="",this.title="",this.source=MF.UNSPECIFIED,this.updatedAtMs=xh.zero,d0.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 d0.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?",MF]}};OY=class OY extends kY{constructor(Z){super();this.error="",d0.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 d0.util.equals(OY,Z,$)}static $(){return["ConversationSearchError|1 error 9"]}}});import{Message as nr,proto3 as oQ}from"@bufbuild/protobuf";var Mh="agent.v1.",vF,E$;var CF=I(()=>{AF();k();vF=class vF extends B{static get runtime(){return N(this,"runtime",oQ)}static $p(){return Mh}};E$=class E$ extends vF{constructor(Z){super();oQ.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 oQ.util.equals(E$,Z,$)}static $(){return["SearchConversationsToolCall|1 args #0|2 result #1",k$,f$]}}});import{Message as or,proto3 as i}from"@bufbuild/protobuf";var TF="agent.v1.",x6,M$,fY,EY,P$,PY,V$,VY,xY,MY,x$;var RF=I(()=>{k();x6=class x6 extends B{static get runtime(){return N(this,"runtime",i)}static $p(){return TF}};M$=w(i,TF,"GoalStatus",[[0,"UNSPECIFIED"],[1,"ACTIVE"],[2,"PAUSED"],[3,"COMPLETE"],[4,"CLEARED"]],1);fY=class fY extends x6{constructor(Z){super();this.objective="",i.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 i.util.equals(fY,Z,$)}static $(){return["CreateGoalArgs|1 objective 9"]}};EY=class EY extends x6{constructor(Z){super();i.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 i.util.equals(EY,Z,$)}static $(){return["CreateGoalSuccess"]}};P$=class P$ extends x6{constructor(Z){super();this.error="",i.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 i.util.equals(P$,Z,$)}static $(){return["GoalError|1 error 9"]}};PY=class PY extends x6{constructor(Z){super();this.result={case:void 0},i.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 i.util.equals(PY,Z,$)}static $(){return["CreateGoalResult|1 success #0 result|2 error #1 result",EY,P$]}};V$=class V$ extends x6{constructor(Z){super();i.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 i.util.equals(V$,Z,$)}static $(){return["CreateGoalToolCall|1 args #0|2 result #1",fY,PY]}};VY=class VY extends x6{constructor(Z){super();this.status=M$.UNSPECIFIED,i.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 i.util.equals(VY,Z,$)}static $(){return["UpdateGoalArgs|1 status #0",M$]}};xY=class xY extends x6{constructor(Z){super();this.status=M$.UNSPECIFIED,i.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 i.util.equals(xY,Z,$)}static $(){return["UpdateGoalSuccess|1 status #0",M$]}};MY=class MY extends x6{constructor(Z){super();this.result={case:void 0},i.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 i.util.equals(MY,Z,$)}static $(){return["UpdateGoalResult|1 success #0 result|2 error #1 result",xY,P$]}};x$=class x$ extends x6{constructor(Z){super();i.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 i.util.equals(x$,Z,$)}static $(){return["UpdateGoalToolCall|1 args #0|2 result #1",VY,MY]}}});import{Message as Js,proto3 as x,protoInt64 as hh}from"@bufbuild/protobuf";var yF="agent.v1.",_,Ah,hY,AY,vY,CY,TY,h$,RY,yY,mY,jY,A$,_Y,SY,gY,bY,v$,dY,cY,uY,lY,C$,pY,iY,nY,aY,T$;var mF=I(()=>{k();_=class _ extends B{static get runtime(){return N(this,"runtime",x)}static $p(){return yF}};Ah=w(x,yF,"CreateAgentPlacementApprovalState",[[0,"UNSPECIFIED"],[1,"REQUIRED"],[2,"DENIED"]],1);hY=class hY extends _{constructor(Z){super();this.toolCallId="",this.agentIds=[],x.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 x.util.equals(hY,Z,$)}static $(){return["GetAgentStatusArgs|1 tool_call_id 9|2 agent_ids 9*"]}};AY=class AY extends _{constructor(Z){super();this.bcId="",this.name="",this.lifecycle="",this.turnInFlight=!1,this.lastTerminalTurnStatus="",this.prUrl="",this.lastActivityAtMs=hh.zero,x.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 x.util.equals(AY,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"]}};vY=class vY extends _{constructor(Z){super();this.workers=[],this.message="",x.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 x.util.equals(vY,Z,$)}static $(){return["GetAgentStatusSuccess|1 workers #0*|2 message 9",AY]}};CY=class CY extends _{constructor(Z){super();this.error="",x.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 x.util.equals(CY,Z,$)}static $(){return["GetAgentStatusError|1 error 9"]}};TY=class TY extends _{constructor(Z){super();this.result={case:void 0},x.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 x.util.equals(TY,Z,$)}static $(){return["GetAgentStatusResult|1 success #0 result|2 error #1 result",vY,CY]}};h$=class h$ extends _{constructor(Z){super();x.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 x.util.equals(h$,Z,$)}static $(){return["GetAgentStatusToolCall|1 args #0|2 result #1",hY,TY]}};RY=class RY extends _{constructor(Z){super();this.toolCallId="",this.agentId="",this.message="",this.delivery="",this.title="",x.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 x.util.equals(RY,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?"]}};yY=class yY extends _{constructor(Z){super();this.workerBcId="",this.deliveredAs="",this.message="",x.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 x.util.equals(yY,Z,$)}static $(){return["SendToAgentSuccess|1 worker_bc_id 9|2 delivered_as 9|3 message 9"]}};mY=class mY extends _{constructor(Z){super();this.error="",x.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 x.util.equals(mY,Z,$)}static $(){return["SendToAgentError|1 error 9"]}};jY=class jY extends _{constructor(Z){super();this.result={case:void 0},x.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 x.util.equals(jY,Z,$)}static $(){return["SendToAgentResult|1 success #0 result|2 error #1 result",yY,mY]}};A$=class A$ extends _{constructor(Z){super();x.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 x.util.equals(A$,Z,$)}static $(){return["SendToAgentToolCall|1 args #0|2 result #1",RY,jY]}};_Y=class _Y extends _{constructor(Z){super();this.toolCallId="",this.agentId="",this.mode="",this.maxTurns=0,x.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 x.util.equals(_Y,Z,$)}static $(){return["ReadAgentTranscriptArgs|1 tool_call_id 9|2 agent_id 9|3 mode 9|4 max_turns 13"]}};SY=class SY extends _{constructor(Z){super();this.transcript="",this.truncated=!1,x.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 x.util.equals(SY,Z,$)}static $(){return["ReadAgentTranscriptSuccess|1 transcript 9|2 truncated 8"]}};gY=class gY extends _{constructor(Z){super();this.error="",x.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 x.util.equals(gY,Z,$)}static $(){return["ReadAgentTranscriptError|1 error 9"]}};bY=class bY extends _{constructor(Z){super();this.result={case:void 0},x.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 x.util.equals(bY,Z,$)}static $(){return["ReadAgentTranscriptResult|1 success #0 result|2 error #1 result",SY,gY]}};v$=class v$ extends _{constructor(Z){super();x.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 x.util.equals(v$,Z,$)}static $(){return["ReadAgentTranscriptToolCall|1 args #0|2 result #1",_Y,bY]}};dY=class dY extends _{constructor(Z){super();this.toolCallId="",this.prompt="",this.labels={},x.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 x.util.equals(dY,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?"]}};cY=class cY extends _{constructor(Z){super();this.agentId="",this.message="",x.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 x.util.equals(cY,Z,$)}static $(){return["CreateAgentSuccess|1 agent_id 9|2 message 9"]}};uY=class uY extends _{constructor(Z){super();this.error="",x.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 x.util.equals(uY,Z,$)}static $(){return["CreateAgentError|1 error 9|2 placement_approval_state #0?",Ah]}};lY=class lY extends _{constructor(Z){super();this.result={case:void 0},x.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 x.util.equals(lY,Z,$)}static $(){return["CreateAgentResult|1 success #0 result|2 error #1 result",cY,uY]}};C$=class C$ extends _{constructor(Z){super();x.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 x.util.equals(C$,Z,$)}static $(){return["CreateAgentToolCall|1 args #0|2 result #1",dY,lY]}};pY=class pY extends _{constructor(Z){super();this.toolCallId="",this.agentId="",x.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 x.util.equals(pY,Z,$)}static $(){return["StopAgentArgs|1 tool_call_id 9|2 agent_id 9"]}};iY=class iY extends _{constructor(Z){super();this.workerBcId="",this.message="",x.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 x.util.equals(iY,Z,$)}static $(){return["StopAgentSuccess|1 worker_bc_id 9|2 message 9"]}};nY=class nY extends _{constructor(Z){super();this.error="",x.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 x.util.equals(nY,Z,$)}static $(){return["StopAgentError|1 error 9"]}};aY=class aY extends _{constructor(Z){super();this.result={case:void 0},x.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 x.util.equals(aY,Z,$)}static $(){return["StopAgentResult|1 success #0 result|2 error #1 result",iY,nY]}};T$=class T$ extends _{constructor(Z){super();x.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 x.util.equals(T$,Z,$)}static $(){return["StopAgentToolCall|1 args #0|2 result #1",pY,aY]}}});import{Message as Ks,proto3 as y0,protoInt64 as vh}from"@bufbuild/protobuf";var Ch="agent.v1.",y$,rY,sY,tY,oY,eY,R$;var jF=I(()=>{k();y$=class y$ extends B{static get runtime(){return N(this,"runtime",y0)}static $p(){return Ch}};rY=class rY extends y${constructor(Z){super();this.toolCallId="",y0.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 y0.util.equals(rY,Z,$)}static $(){return["GetPrCodeTourArgs|1 tool_call_id 9|2 revision_id 9?"]}};sY=class sY extends y${constructor(Z){super();this.revisionId="",this.status="",this.headSha="",this.feedback="",this.updatedAtMs=vh.zero,this.isCurrent=!1,this.markdown="",y0.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 y0.util.equals(sY,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"]}};tY=class tY extends y${constructor(Z){super();this.revisions=[],y0.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 y0.util.equals(tY,Z,$)}static $(){return["GetPrCodeTourSuccess|1 revisions #0*",sY]}};oY=class oY extends y${constructor(Z){super();this.error="",y0.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 y0.util.equals(oY,Z,$)}static $(){return["GetPrCodeTourError|1 error 9"]}};eY=class eY extends y${constructor(Z){super();this.result={case:void 0},y0.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 y0.util.equals(eY,Z,$)}static $(){return["GetPrCodeTourResult|1 success #0 result|2 error #1 result",tY,oY]}};R$=class R$ extends y${constructor(Z){super();y0.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 y0.util.equals(R$,Z,$)}static $(){return["GetPrCodeTourToolCall|1 args #0|2 result #1",rY,eY]}}});import{Message as Ws,proto3 as m}from"@bufbuild/protobuf";var eQ="agent.v1.",h0,_F,SF,ZX,$X,JX,YX,XX,zX,KX,m$,HX,QX,qX,WX,j$;var gF=I(()=>{k();h0=class h0 extends B{static get runtime(){return N(this,"runtime",m)}static $p(){return eQ}};_F=w(m,eQ,"WriteCanvasFailReason",[[0,"UNSPECIFIED"],[1,"TYPECHECK_FAILED"],[2,"COMPILE_FAILED"],[3,"TOO_LARGE"],[4,"UNAVAILABLE"],[5,"NOT_FOUND"],[6,"REFUSED"]],1),SF=w(m,eQ,"ReadCanvasFailReason",[[0,"UNSPECIFIED"],[1,"NOT_FOUND"],[2,"UNAVAILABLE"],[3,"REFUSED"],[4,"INVALID_REFERENCE"]],1);ZX=class ZX extends h0{constructor(Z){super();this.line=0,this.character=0,m.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 m.util.equals(ZX,Z,$)}static $(){return["CloudCanvasToolDiagnosticPosition|1 line 5|2 character 5"]}};$X=class $X extends h0{constructor(Z){super();m.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 m.util.equals($X,Z,$)}static $(){return["CloudCanvasToolDiagnosticRange|1 start #0|2 end #0",ZX]}};JX=class JX extends h0{constructor(Z){super();this.message="",m.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 m.util.equals(JX,Z,$)}static $(){return["CloudCanvasToolDiagnostic|1 message 9|2 code 9?|3 severity 5?|4 range #0?",$X]}};YX=class YX extends h0{constructor(Z){super();this.contents="",m.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 m.util.equals(YX,Z,$)}static $(){return["WriteCanvasArgs|1 contents 9|2 canvas_id 9?|3 title 9?"]}};XX=class XX extends h0{constructor(Z){super();this.canvasId="",this.url="",m.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 m.util.equals(XX,Z,$)}static $(){return["WriteCanvasSuccess|1 canvas_id 9|2 title 9?|3 url 9"]}};zX=class zX extends h0{constructor(Z){super();this.reason=_F.UNSPECIFIED,this.diagnostics=[],m.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 m.util.equals(zX,Z,$)}static $(){return["WriteCanvasFailure|1 reason #0|2 diagnostics #1*|3 detail 9?",_F,JX]}};KX=class KX extends h0{constructor(Z){super();this.result={case:void 0},m.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 m.util.equals(KX,Z,$)}static $(){return["WriteCanvasResult|1 success #0 result|2 failure #1 result",XX,zX]}};m$=class m$ extends h0{constructor(Z){super();m.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 m.util.equals(m$,Z,$)}static $(){return["WriteCanvasToolCall|1 args #0|2 result #1",YX,KX]}};HX=class HX extends h0{constructor(Z){super();m.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 m.util.equals(HX,Z,$)}static $(){return["ReadCanvasArgs|1 canvas_id 9?|2 url 9?"]}};QX=class QX extends h0{constructor(Z){super();this.canvasId="",this.url="",this.source="",m.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 m.util.equals(QX,Z,$)}static $(){return["ReadCanvasSuccess|1 canvas_id 9|2 title 9?|3 url 9|4 source 9"]}};qX=class qX extends h0{constructor(Z){super();this.reason=SF.UNSPECIFIED,m.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 m.util.equals(qX,Z,$)}static $(){return["ReadCanvasFailure|1 reason #0|2 detail 9?",SF]}};WX=class WX extends h0{constructor(Z){super();this.result={case:void 0},m.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 m.util.equals(WX,Z,$)}static $(){return["ReadCanvasResult|1 success #0 result|2 failure #1 result",QX,qX]}};j$=class j$ extends h0{constructor(Z){super();m.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 m.util.equals(j$,Z,$)}static $(){return["ReadCanvasToolCall|1 args #0|2 result #1",HX,WX]}}});import{Message as Gs,proto3 as L6}from"@bufbuild/protobuf";var Th="agent.v1.",LX,NX,BX,FX,GX,_$;var bF=I(()=>{k();LX=class LX extends B{static get runtime(){return N(this,"runtime",L6)}static $p(){return Th}};NX=class NX extends LX{constructor(Z){super();this.prompt="",this.referenceImagePaths=[],L6.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 L6.util.equals(NX,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?"]}};BX=class BX extends LX{constructor(Z){super();this.result={case:void 0},L6.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 L6.util.equals(BX,Z,$)}static $(){return["GenerateVideoResult|1 success #0 result|2 error #1 result",FX,GX]}};FX=class FX extends LX{constructor(Z){super();this.filePath="",this.durationSeconds=0,L6.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 L6.util.equals(FX,Z,$)}static $(){return["GenerateVideoSuccess|1 file_path 9|2 duration_seconds 13"]}};GX=class GX extends LX{constructor(Z){super();this.error="",L6.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 L6.util.equals(GX,Z,$)}static $(){return["GenerateVideoError|1 error 9"]}};_$=class _$ extends LX{constructor(Z){super();L6.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 L6.util.equals(_$,Z,$)}static $(){return["GenerateVideoToolCall|1 args #0|2 result #1",NX,BX]}}});import{Message as Is,proto3 as U0}from"@bufbuild/protobuf";var Rh="agent.v1.",K8,wX,DX,IX,UX,OX,kX,S$;var dF=I(()=>{k();K8=class K8 extends B{static get runtime(){return N(this,"runtime",U0)}static $p(){return Rh}};wX=class wX extends K8{constructor(Z){super();this.query="",this.allowedXHandles=[],this.excludedXHandles=[],U0.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 U0.util.equals(wX,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*"]}};DX=class DX extends K8{constructor(Z){super();this.result={case:void 0},U0.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 U0.util.equals(DX,Z,$)}static $(){return["XSearchResult|1 success #0 result|2 error #1 result|3 rejected #2 result",IX,OX,kX]}};IX=class IX extends K8{constructor(Z){super();this.answer="",this.citations=[],U0.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 U0.util.equals(IX,Z,$)}static $(){return["XSearchSuccess|1 answer 9|2 citations #0*",UX]}};UX=class UX extends K8{constructor(Z){super();this.url="",this.title="",U0.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 U0.util.equals(UX,Z,$)}static $(){return["XSearchCitation|1 url 9|2 title 9"]}};OX=class OX extends K8{constructor(Z){super();this.error="",U0.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 U0.util.equals(OX,Z,$)}static $(){return["XSearchError|1 error 9"]}};kX=class kX extends K8{constructor(Z){super();this.reason="",U0.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 U0.util.equals(kX,Z,$)}static $(){return["XSearchRejected|1 reason 9"]}};S$=class S$ extends K8{constructor(Z){super();U0.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 U0.util.equals(S$,Z,$)}static $(){return["XSearchToolCall|1 args #0|2 result #1",wX,DX]}}});import{Message as fs,proto3 as Zq}from"@bufbuild/protobuf";var yh="agent.v1.",cF,g$;var uF=I(()=>{k();cF=class cF extends B{static get runtime(){return N(this,"runtime",Zq)}static $p(){return yh}};g$=class g$ extends cF{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,Zq.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 Zq.util.equals(g$,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 xs,proto3 as U,protoInt64 as lF}from"@bufbuild/protobuf";var iF="agent.v1.",M,pF,fX,EX,PX,b$,VX,xX,MX,hX,AX,vX,CX,TX,RX,yX,mX,jX,_X,SX,gX,bX,dX,cX,uX,lX,pX,iX,nX,aX,rX,sX,tX,oX,eX,Zz,$z,Jz,Yz,Xz,zz,Kz,Hz,Qz,qz,Wz,d$,Nz,Bz,Fz,Gz,Lz,wz,Dz,Iz;var nF=I(()=>{x8();dQ();gQ();uF();k();M=class M extends B{static get runtime(){return N(this,"runtime",U)}static $p(){return iF}};pF=w(U,iF,"SelectedPluginCapabilityType",[[0,"UNSPECIFIED"],[1,"COMMAND"],[2,"SKILL"],[3,"SUBAGENT"]],1);fX=class fX extends M{constructor(Z){super();this.dataOrBlobId={case:void 0},this.uuid="",this.path="",this.mimeType="",U.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 U.util.equals(fX,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",EX,b$,PX]}};EX=class EX extends M{constructor(Z){super();this.blobId=new Uint8Array(0),this.data=new Uint8Array(0),U.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 U.util.equals(EX,Z,$)}static $(){return["SelectedImage.BlobIdWithData|1 blob_id 12|2 data 12"]}};PX=class PX extends M{constructor(Z){super();this.width=0,this.height=0,U.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 U.util.equals(PX,Z,$)}static $(){return["SelectedImage.Dimension|1 width 5|2 height 5"]}};b$=class b$ extends M{constructor(Z){super();this.uploadId="",U.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 U.util.equals(b$,Z,$)}static $(){return["PromptUploadRef|1 upload_id 9"]}};VX=class VX extends M{constructor(Z){super();this.dataOrBlobId={case:void 0},this.uuid="",this.filename="",this.mimeType="",this.path="",U.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 U.util.equals(VX,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",xX,b$]}};xX=class xX extends M{constructor(Z){super();this.blobId=new Uint8Array(0),this.data=new Uint8Array(0),U.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 U.util.equals(xX,Z,$)}static $(){return["SelectedDocument.BlobIdWithData|1 blob_id 12|2 data 12"]}};MX=class MX extends M{constructor(Z){super();this.dataOrBlobId={case:void 0},this.uuid="",this.path="",this.mimeType="",this.filename="",this.materializeToFilesystem=!1,U.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 U.util.equals(MX,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|2 uuid 9|3 path 9|4 fps 2?|7 mime_type 9|10 filename 9|12 materialize_to_filesystem 8",hX,AX]}};hX=class hX extends M{constructor(Z){super();this.blobId=new Uint8Array(0),this.data=new Uint8Array(0),U.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 U.util.equals(hX,Z,$)}static $(){return["SelectedVideo.BlobIdWithData|1 blob_id 12|2 data 12"]}};AX=class AX extends M{constructor(Z){super();this.url="",this.key="",this.expiresAtUnixMs=lF.zero,this.refreshAfterUnixMs=lF.zero,this.conversationId="",U.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 U.util.equals(AX,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"]}};vX=class vX extends M{constructor(Z){super();this.dataOrBlobId={case:void 0},U.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 U.util.equals(vX,Z,$)}static $(){return["ExtraContextEntry|1 data 9 data_or_blob_id|2 blob_id 12 data_or_blob_id"]}};CX=class CX extends M{constructor(Z){super();this.content="",this.path="",U.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 U.util.equals(CX,Z,$)}static $(){return["SelectedFile|1 content 9|2 path 9|3 relative_path 9?"]}};TX=class TX extends M{constructor(Z){super();this.content="",this.path="",U.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 U.util.equals(TX,Z,$)}static $(){return["SelectedCodeSelection|1 content 9|2 path 9|3 relative_path 9?|4 range #0",l6]}};RX=class RX extends M{constructor(Z){super();this.content="",U.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 U.util.equals(RX,Z,$)}static $(){return["SelectedTerminal|1 content 9|2 title 9?|3 path 9?"]}};yX=class yX extends M{constructor(Z){super();this.content="",U.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 U.util.equals(yX,Z,$)}static $(){return["SelectedTerminalSelection|1 content 9|2 title 9?|3 path 9?|4 range #0",l6]}};mX=class mX extends M{constructor(Z){super();this.path="",U.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 U.util.equals(mX,Z,$)}static $(){return["SelectedFolder|1 path 9|2 relative_path 9?|3 directory_tree #0",k6]}};jX=class jX extends M{constructor(Z){super();this.url="",this.uuid="",U.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 U.util.equals(jX,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?"]}};_X=class _X extends M{constructor(Z){super();U.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 U.util.equals(_X,Z,$)}static $(){return["SelectedCursorRule|1 rule #0",v6]}};SX=class SX extends M{constructor(Z){super();this.content="",this.fullContentLengthCharCount=0,U.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 U.util.equals(SX,Z,$)}static $(){return["SelectedGitDiff|1 content 9|2 full_content_length_char_count 5"]}};gX=class gX extends M{constructor(Z){super();this.content="",this.fullContentLengthCharCount=0,U.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 U.util.equals(gX,Z,$)}static $(){return["SelectedGitDiffFromBranchToMain|1 content 9|2 full_content_length_char_count 5"]}};bX=class bX extends M{constructor(Z){super();this.sha="",this.message="",this.diff="",U.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 U.util.equals(bX,Z,$)}static $(){return["SelectedGitCommit|1 sha 9|2 message 9|3 description 9?|4 diff 9"]}};dX=class dX extends M{constructor(Z){super();this.number=0,this.url="",this.folderPath="",U.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 U.util.equals(dX,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?"]}};cX=class cX extends M{constructor(Z){super();this.prUrl="",this.filePath="",this.startLine=0,this.endLine=0,U.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 U.util.equals(cX,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?"]}};uX=class uX extends M{constructor(Z){super();this.pluginId="",this.capabilityType=pF.UNSPECIFIED,this.sourcePath="",this.snapshotToken="",U.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 U.util.equals(uX,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?",pF]}};lX=class lX extends M{constructor(Z){super();this.name="",this.content="",U.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 U.util.equals(lX,Z,$)}static $(){return["SelectedCursorCommand|1 name 9|2 content 9|3 plugin_capability #0?|4 full_path 9?|5 display_name 9?",uX]}};pX=class pX extends M{constructor(Z){super();this.docId="",this.name="",U.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 U.util.equals(pX,Z,$)}static $(){return["SelectedDocumentation|1 doc_id 9|2 name 9"]}};iX=class iX extends M{constructor(Z){super();this.agentId="",this.name="",U.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 U.util.equals(iX,Z,$)}static $(){return["SelectedPastChat|1 agent_id 9|2 name 9"]}};nX=class nX extends M{constructor(Z){super();this.name="",this.path="",U.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 U.util.equals(nX,Z,$)}static $(){return["RecentAgent|1 name 9|2 path 9|3 overview 9?"]}};aX=class aX extends M{constructor(Z){super();this.recentAgents=[],U.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 U.util.equals(aX,Z,$)}static $(){return["RecentAgentsContext|1 recent_agents #0*",nX]}};rX=class rX extends M{constructor(Z){super();U.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 U.util.equals(rX,Z,$)}static $(){return["CallFrame|1 function_name 9?|2 url 9?|3 line_number 5?|4 column_number 5?"]}};sX=class sX extends M{constructor(Z){super();this.callFrames=[],U.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 U.util.equals(sX,Z,$)}static $(){return["StackTrace|1 call_frames #0*|2 raw_stack_trace 9?",rX]}};tX=class tX extends M{constructor(Z){super();this.message="",this.timestamp=0,this.level="",this.clientName="",this.sessionId="",U.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 U.util.equals(tX,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?",sX]}};oX=class oX extends M{constructor(Z){super();this.element="",this.xpath="",this.textContent="",this.extra="",U.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 U.util.equals(oX,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?"]}};eX=class eX extends M{constructor(Z){super();this.name="",U.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 U.util.equals(eX,Z,$)}static $(){return["SelectedSubagent|1 name 9"]}};Zz=class Zz extends M{constructor(Z){super();this.browserId="",this.url="",U.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 U.util.equals(Zz,Z,$)}static $(){return["SelectedBrowser|1 browser_id 9|2 url 9|3 page_title 9?"]}};$z=class $z extends M{constructor(Z){super();this.filesToCommit=[],this.filesToExcludeFromCommit=[],this.shouldStageAllChanges=!1,this.filesToCommitWithStatus=[],this.filesToExcludeFromCommitWithStatus=[],U.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 U.util.equals($z,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*",Yz]}};Jz=class Jz extends M{constructor(Z){super();U.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 U.util.equals(Jz,Z,$)}static $(){return["SelectedAgenticGitActionCreateBranchParams"]}};Yz=class Yz extends M{constructor(Z){super();this.path="",U.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 U.util.equals(Yz,Z,$)}static $(){return["SelectedAgenticGitFileWithStatus|1 path 9|2 status 9?"]}};Xz=class Xz extends M{constructor(Z){super();this.filesToPush=[],U.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 U.util.equals(Xz,Z,$)}static $(){return["SelectedAgenticGitActionPushParams|1 files_to_push 9*|2 create_pr_draft 8?"]}};zz=class zz extends M{constructor(Z){super();U.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 U.util.equals(zz,Z,$)}static $(){return["SelectedAgenticGitActionFixMergeConflictsParams|1 base_branch 9?|2 pr_url 9?"]}};Kz=class Kz extends M{constructor(Z){super();U.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 U.util.equals(Kz,Z,$)}static $(){return["SelectedAgenticGitActionBabysitPrInCloudParams|1 base_branch 9?"]}};Hz=class Hz extends M{constructor(Z){super();U.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 U.util.equals(Hz,Z,$)}static $(){return["SelectedAgenticGitActionUpdateBranchParams|1 base_branch 9?"]}};Qz=class Qz extends M{constructor(Z){super();this.remoteBranch="",U.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 U.util.equals(Qz,Z,$)}static $(){return["SelectedAgenticGitActionPullLocallyParams|1 remote_branch 9"]}};qz=class qz extends M{constructor(Z){super();this.params={case:void 0},U.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 U.util.equals(qz,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?",$z,Xz,zz,Kz,Qz,Hz,Jz,Wz]}};Wz=class Wz extends M{constructor(Z){super();U.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 U.util.equals(Wz,Z,$)}static $(){return["SelectedGitBranchContext|1 current_branch 9?|2 base_branch 9?|3 agent_branch_prefix 9?"]}};d$=class d$ extends M{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=[],U.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 U.util.equals(d$,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?",fX,Nz,vX,CX,TX,RX,yX,mX,jX,_X,SX,gX,lX,pX,oX,tX,bX,iX,cX,dX,eX,MX,Zz,VX,g$,aX,qz]}};Nz=class Nz extends M{constructor(Z){super();this.data={case:void 0},U.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 U.util.equals(Nz,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",Bz,Gz,Lz,Fz]}};Bz=class Bz extends M{constructor(Z){super();this.thread="",U.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 U.util.equals(Bz,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?"]}};Fz=class Fz extends M{constructor(Z){super();this.thread="",U.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 U.util.equals(Fz,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 M{constructor(Z){super();this.title="",this.description="",this.comments="",U.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 U.util.equals(Gz,Z,$)}static $(){return["InvocationContext.GithubPR|1 title 9|2 description 9|3 comments 9|4 ci_failures 9?"]}};Lz=class Lz extends M{constructor(Z){super();this.visibleFiles=[],this.recentlyViewedFiles=[],this.currentlyViewedPrs=[],U.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 U.util.equals(Lz,Z,$)}static $(){return["InvocationContext.IdeState|1 visible_files #0*|2 recently_viewed_files #0*|3 currently_viewed_prs #1*",wz,Iz]}};wz=class wz extends M{constructor(Z){super();this.path="",this.totalLines=0,U.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 U.util.equals(wz,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?",Dz]}};Dz=class Dz extends M{constructor(Z){super();this.line=0,this.text="",U.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 U.util.equals(Dz,Z,$)}static $(){return["InvocationContext.IdeState.File.CursorPosition|1 line 5|2 text 9"]}};Iz=class Iz extends M{constructor(Z){super();this.number=0,this.url="",U.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 U.util.equals(Iz,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 ps,proto3 as F,protoInt64 as hH}from"@bufbuild/protobuf";var a$="agent.v1.",E,aK,aF,rF,sF,mh,jh,Uz,c$,Oz,kz,fz,Ez,Pz,Vz,xz,Mz,hz,Az,vz,Cz,Tz,Rz,u$,yz,mz,jz,_z,Sz,j6,gz,bz,dz,cz,uz,lz,pz,iz,nz,az,rz,sz,tz,H8,oz,ez,ZK,Q8,q8,_6,$K,l$,JK,p$,W8,YK,XK,N8,zK,B8,KK,HK,QK,qK,WK,NK,i$,BK,FK,GK,LK,F8,G8,n$,L8,wK,DK,m0,IK,UK;var AH=I(()=>{bN();tN();ZB();$B();XB();HB();PH();WB();BB();GB();LB();UB();OB();kB();fB();VB();xB();AB();vB();CB();mB();SB();dB();cB();uB();lB();pB();iB();rB();sB();eB();ZF();$F();JF();YF();XF();zF();KF();qF();BF();FF();GF();LF();wF();DF();UF();OF();kF();fF();EF();PF();VF();xF();CF();RF();mF();jF();gF();bF();dF();pN();nF();k();E=class E extends B{static get runtime(){return N(this,"runtime",F)}static $p(){return a$}};aK=w(F,a$,"AgentMode",[[0,"UNSPECIFIED"],[1,"AGENT"],[2,"ASK"],[3,"PLAN"],[4,"DEBUG"],[5,"TRIAGE"],[7,"MULTITASK"],[8,"CUSTOM"]],1),aF=w(F,a$,"SubagentRunStatus",[[0,"UNSPECIFIED"],[1,"RUNNING"],[2,"BACKGROUNDED"],[3,"SUCCESS"],[4,"ERROR"],[5,"ABORTED"]],1),rF=w(F,a$,"SubagentDispatchTool",[[0,"UNSPECIFIED"],[1,"TASK"],[2,"CREATE_AGENT"],[3,"SEND_TO_AGENT"]],1),sF=w(F,a$,"CustomModeSource",[[0,"UNSPECIFIED"],[1,"AGENT_SKILL"],[2,"PLUGIN_SKILL"],[3,"REPO_SKILL"],[4,"MANAGED_SKILL"]],1),mh=w(F,a$,"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),jh=w(F,a$,"SubscriptionSource",[[0,"UNSPECIFIED"],[1,"SLACK"],[2,"GITHUB"],[3,"LINEAR"],[4,"ORIGIN"],[5,"FACTORY"]],1);Uz=class Uz extends E{constructor(Z){super();this.description="",this.prompt="",this.attachments=[],this.mode=yQ.UNSPECIFIED,this.respondingToMessageIds=[],this.environment=V8.UNSPECIFIED,F.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 F.util.equals(Uz,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?",u6,yQ,V8,c$]}};c$=class c$ extends E{constructor(Z){super();this.machine={case:void 0},F.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 F.util.equals(c$,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",Oz,kz,fz,Ez]}};Oz=class Oz extends E{constructor(Z){super();F.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 F.util.equals(Oz,Z,$)}static $(){return["SameMachineTarget"]}};kz=class kz extends E{constructor(Z){super();F.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 F.util.equals(kz,Z,$)}static $(){return["NewCloudVmTarget|1 environment_build_id 9?|2 base_branch 9?"]}};fz=class fz extends E{constructor(Z){super();this.workerId="",F.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 F.util.equals(fz,Z,$)}static $(){return["SelfHostedWorkerTarget|1 worker_id 9"]}};Ez=class Ez extends E{constructor(Z){super();this.labels=[],F.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 F.util.equals(Ez,Z,$)}static $(){return["SelfHostedPoolTarget|1 pool 9?|2 labels #0*",Pz]}};Pz=class Pz extends E{constructor(Z){super();this.key="",this.value="",F.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 F.util.equals(Pz,Z,$)}static $(){return["SelfHostedWorkerLabel|1 key 9|2 value 9"]}};Vz=class Vz extends E{constructor(Z){super();this.conversationSteps=[],this.isBackground=!1,this.backgroundReason=RQ.UNSPECIFIED,F.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 F.util.equals(Vz,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?",j6,RQ]}};xz=class xz extends E{constructor(Z){super();this.error="",F.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 F.util.equals(xz,Z,$)}static $(){return["TaskError|1 error 9"]}};Mz=class Mz extends E{constructor(Z){super();this.result={case:void 0},F.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 F.util.equals(Mz,Z,$)}static $(){return["TaskResult|1 success #0 result|2 error #1 result",Vz,xz]}};hz=class hz extends E{constructor(Z){super();F.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 F.util.equals(hz,Z,$)}static $(){return["TaskToolCall|1 args #0|2 result #1|3 cloud_agent_bc_id 9?",Uz,Mz]}};Az=class Az extends E{constructor(Z){super();this.path="",this.branchName="",F.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 F.util.equals(Az,Z,$)}static $(){return["SetActiveBranchArgs|1 path 9|2 branch_name 9"]}};vz=class vz extends E{constructor(Z){super();F.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 F.util.equals(vz,Z,$)}static $(){return["SetActiveBranchSuccess"]}};Cz=class Cz extends E{constructor(Z){super();this.error="",F.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 F.util.equals(Cz,Z,$)}static $(){return["SetActiveBranchError|1 error 9"]}};Tz=class Tz extends E{constructor(Z){super();this.result={case:void 0},F.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 F.util.equals(Tz,Z,$)}static $(){return["SetActiveBranchResult|1 success #0 result|2 error #1 result",vz,Cz]}};Rz=class Rz extends E{constructor(Z){super();F.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 F.util.equals(Rz,Z,$)}static $(){return["SetActiveBranchToolCall|1 args #0|2 result #1",Az,Tz]}};u$=class u$ extends E{constructor(Z){super();this.tool={case:void 0},this.hookAdditionalContexts=[],F.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 F.util.equals(u$,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|50 update_pr_code_tour_tool_call #42 tool|51 replace_env_tool_call #43 tool|52 edit_pr_labels_tool_call #44 tool|53 record_ci_investigation_findings_tool_call #45 tool|55 send_message_tool_call #46 tool|56 fetch_cloud_agent_data_tool_call #47 tool|58 send_to_user_tool_call #48 tool|61 pi_read_tool_call #49 tool|62 pi_bash_tool_call #50 tool|63 pi_edit_tool_call #51 tool|64 pi_write_tool_call #52 tool|65 pi_grep_tool_call #53 tool|66 pi_find_tool_call #54 tool|67 pi_ls_tool_call #55 tool|68 connect_scm_tool_call #56 tool|69 search_conversations_tool_call #57 tool|70 create_goal_tool_call #58 tool|71 update_goal_tool_call #59 tool|73 get_agent_status_tool_call #60 tool|74 send_to_agent_tool_call #61 tool|75 read_agent_transcript_tool_call #62 tool|76 create_agent_tool_call #63 tool|77 stop_agent_tool_call #64 tool|78 get_pr_code_tour_tool_call #65 tool|79 write_canvas_tool_call #66 tool|80 read_canvas_tool_call #67 tool|81 generate_video_tool_call #68 tool|82 x_search_tool_call #69 tool|54 hook_additional_contexts #70*|57 tool_call_id 9?|59 started_at_ms 4?|60 completed_at_ms 4?",A8,T8,R8,j8,S8,b8,d8,c8,p8,i8,$Z,HZ,QZ,NZ,hz,FZ,GZ,LZ,IZ,fZ,EZ,VZ,vZ,CZ,yZ,mZ,_Z,Sz,SZ,gZ,bZ,uZ,pZ,iZ,nZ,tZ,oZ,eZ,Z$,Rz,$$,J$,Y$,z$,K$,H$,Q$,q$,W$,N$,B$,F$,G$,w$,D$,I$,U$,E$,V$,x$,h$,A$,v$,C$,T$,R$,m$,j$,_$,S$,i6]}};yz=class yz extends E{constructor(Z){super();F.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 F.util.equals(yz,Z,$)}static $(){return["TruncatedToolCallArgs"]}};mz=class mz extends E{constructor(Z){super();F.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 F.util.equals(mz,Z,$)}static $(){return["TruncatedToolCallSuccess"]}};jz=class jz extends E{constructor(Z){super();this.error="",F.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 F.util.equals(jz,Z,$)}static $(){return["TruncatedToolCallError|1 error 9"]}};_z=class _z extends E{constructor(Z){super();this.result={case:void 0},F.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 F.util.equals(_z,Z,$)}static $(){return["TruncatedToolCallResult|1 success #0 result|2 error #1 result",mz,jz]}};Sz=class Sz extends E{constructor(Z){super();this.originalStepBlobId=new Uint8Array(0),this.originalStepSizeBytes=0,F.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 F.util.equals(Sz,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",yz,_z,u$]}};j6=class j6 extends E{constructor(Z){super();this.message={case:void 0},F.util.initPartial(Z,this)}static fromBinary(Z,$){return new j6().fromBinary(Z,$)}static fromJson(Z,$){return new j6().fromJson(Z,$)}static fromJsonString(Z,$){return new j6().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(j6,Z,$)}static $(){return["ConversationStep|1 assistant_message #0 message|2 tool_call #1 message|3 thinking_message #2 message",ez,u$,ZK]}};gz=class gz extends E{constructor(Z){super();F.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 F.util.equals(gz,Z,$)}static $(){return["TriggeringUserInfo|1 auth_id 9?|2 user_id 5?"]}};bz=class bz extends E{constructor(Z){super();this.parentToolCallId="",this.environment=V8.UNSPECIFIED,this.status=aF.UNSPECIFIED,F.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 F.util.equals(bz,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?",V8,aF,gN]}};dz=class dz extends E{constructor(Z){super();this.stepIndex=0,this.toolCallId="",this.tool=rF.UNSPECIFIED,this.backgrounded=!1,F.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 F.util.equals(dz,Z,$)}static $(){return["SubagentDispatchStep|1 step_index 13|2 tool_call_id 9|3 tool #0|4 backgrounded 8",rF]}};cz=class cz extends E{constructor(Z){super();this.id="",this.label="",this.source=sF.UNSPECIFIED,F.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 F.util.equals(cz,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?",sF]}};uz=class uz extends E{constructor(Z){super();this.id="",this.label="",F.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 F.util.equals(uz,Z,$)}static $(){return["SubmittedExitedCustomMode|1 id 9|2 label 9"]}};lz=class lz extends E{constructor(Z){super();this.nextMode=aK.UNSPECIFIED,F.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 F.util.equals(lz,Z,$)}static $(){return["CustomModeExitIntent|1 next_mode #0|2 exited_mode #1",aK,uz]}};pz=class pz extends E{constructor(Z){super();this.intent={case:void 0},F.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 F.util.equals(pz,Z,$)}static $(){return["CustomModeIntent|1 enter #0 intent|2 exit #1 intent",cz,lz]}};iz=class iz extends E{constructor(Z){super();this.interactionId="",this.skippedQuestionIds=[],F.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 F.util.equals(iz,Z,$)}static $(){return["InteractionResponseMetadata|1 interaction_id 9|2 response #0?|3 skipped_question_ids 9*",IK]}};nz=class nz extends E{constructor(Z){super();F.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 F.util.equals(nz,Z,$)}static $(){return["SubscriptionEventDisplay|1 display_label 9?|2 resource_url 9?|3 subscription_id 9?"]}};az=class az extends E{constructor(Z){super();this.planId="",this.planTitle="",F.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 F.util.equals(az,Z,$)}static $(){return["ExecutePlanInfo|1 plan_id 9|2 plan_title 9"]}};rz=class rz extends E{constructor(Z){super();F.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 F.util.equals(rz,Z,$)}static $(){return["ProjectDetails|1 name 9?|2 subagent #0?|3 side_chat #1?|4 init_description 9?",sz,tz]}};sz=class sz extends E{constructor(Z){super();F.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 F.util.equals(sz,Z,$)}static $(){return["ProjectSubagentDetails|2 store_dir 9?"]}};tz=class tz extends E{constructor(Z){super();this.storeDir="",F.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 F.util.equals(tz,Z,$)}static $(){return["ProjectSideChatDetails|1 store_dir 9"]}};H8=class H8 extends E{constructor(Z){super();this.text="",this.messageId="",this.mode=aK.UNSPECIFIED,this.conversationStateBlobId=new Uint8Array(0),this.hookAdditionalContexts=[],F.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 F.util.equals(H8,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?",d$,aK,mh,gz,az,oz,i6,pz,rz]}};oz=class oz extends E{constructor(Z){super();F.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 F.util.equals(oz,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?",jh,nz,iz]}};ez=class ez extends E{constructor(Z){super();this.text="",F.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 F.util.equals(ez,Z,$)}static $(){return["AssistantMessage|1 text 9|2 started_at_ms 4?|3 completed_at_ms 4?"]}};ZK=class ZK extends E{constructor(Z){super();this.text="",this.durationMs=0,F.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 F.util.equals(ZK,Z,$)}static $(){return["ThinkingMessage|1 text 9|2 duration_ms 13|3 started_at_ms 4?|4 completed_at_ms 4?"]}};Q8=class Q8 extends E{constructor(Z){super();this.command="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new Q8().fromBinary(Z,$)}static fromJson(Z,$){return new Q8().fromJson(Z,$)}static fromJsonString(Z,$){return new Q8().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(Q8,Z,$)}static $(){return["ShellCommand|1 command 9"]}};q8=class q8 extends E{constructor(Z){super();this.stdout="",this.stderr="",this.exitCode=0,F.util.initPartial(Z,this)}static fromBinary(Z,$){return new q8().fromBinary(Z,$)}static fromJson(Z,$){return new q8().fromJson(Z,$)}static fromJsonString(Z,$){return new q8().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(q8,Z,$)}static $(){return["ShellOutput|1 stdout 9|2 stderr 9|3 exit_code 5"]}};_6=class _6 extends E{constructor(Z){super();this.turn={case:void 0},F.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 F.util.equals(_6,Z,$)}static $(){return["ConversationTurn|1 agent_conversation_turn #0 turn|2 shell_conversation_turn #1 turn",W8,N8]}};$K=class $K extends E{constructor(Z){super();this.plan="",F.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 F.util.equals($K,Z,$)}static $(){return["ConversationPlan|1 plan 9"]}};l$=class l$ extends E{constructor(Z){super();this.id="",this.path="",F.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 F.util.equals(l$,Z,$)}static $(){return["PlanRegistryEntry|1 id 9|2 path 9"]}};JK=class JK extends E{constructor(Z){super();this.conversationId="",this.goalId="",this.objective="",this.status=M$.UNSPECIFIED,this.idleContinuationsWithoutToolCalls=0,this.continuationCount=0,F.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 F.util.equals(JK,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?",M$]}};p$=class p$ extends E{constructor(Z){super();this.turn={case:void 0},F.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 F.util.equals(p$,Z,$)}static $(){return["ConversationTurnStructure|1 agent_conversation_turn #0 turn|2 shell_conversation_turn #1 turn",YK,zK]}};W8=class W8 extends E{constructor(Z){super();this.steps=[],F.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 F.util.equals(W8,Z,$)}static $(){return["AgentConversationTurn|1 user_message #0|2 steps #1*|3 request_id 9?",H8,j6]}};YK=class YK extends E{constructor(Z){super();this.userMessage=new Uint8Array(0),this.steps=[],this.sendMessageStepIndices=[],this.subagentDispatchSteps=[],this.dynamicToolNames=[],this.longReasoningReminderExposureLogged=!1,F.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 F.util.equals(YK,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",dz,XK]}};XK=class XK extends E{constructor(Z){super();this.remainingDelayCalls=0,F.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 F.util.equals(XK,Z,$)}static $(){return["LongReasoningReminderState|1 remaining_delay_calls 13"]}};N8=class N8 extends E{constructor(Z){super();F.util.initPartial(Z,this)}static fromBinary(Z,$){return new N8().fromBinary(Z,$)}static fromJson(Z,$){return new N8().fromJson(Z,$)}static fromJsonString(Z,$){return new N8().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(N8,Z,$)}static $(){return["ShellConversationTurn|1 shell_command #0|2 shell_output #1",Q8,q8]}};zK=class zK extends E{constructor(Z){super();this.shellCommand=new Uint8Array(0),this.shellOutput=new Uint8Array(0),F.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 F.util.equals(zK,Z,$)}static $(){return["ShellConversationTurnStructure|1 shell_command 12|2 shell_output 12"]}};B8=class B8 extends E{constructor(Z){super();this.summary="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new B8().fromBinary(Z,$)}static fromJson(Z,$){return new B8().fromJson(Z,$)}static fromJsonString(Z,$){return new B8().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(B8,Z,$)}static $(){return["ConversationSummary|1 summary 9"]}};KK=class KK extends E{constructor(Z){super();this.summarizedMessages=[],this.summary="",this.windowTail=0,this.summaryMessage=new Uint8Array(0),F.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 F.util.equals(KK,Z,$)}static $(){return["ConversationSummaryArchive|1 summarized_messages 12*|2 summary 9|3 window_tail 13|4 summary_message 12"]}};HK=class HK extends E{constructor(Z){super();this.id="",this.label="",this.estimatedTokens=0,F.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 F.util.equals(HK,Z,$)}static $(){return["PromptTokenBreakdownCategory|1 id 9|2 label 9|3 estimated_tokens 13|4 character_count 13?"]}};QK=class QK extends E{constructor(Z){super();this.totalUsedTokens=0,this.maxTokens=0,this.categories=[],F.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 F.util.equals(QK,Z,$)}static $(){return["PromptTokenBreakdownSnapshot|1 total_used_tokens 13|2 max_tokens 13|3 categories #0*",HK]}};qK=class qK extends E{constructor(Z){super();this.sourceType="",this.messageIndex=0,this.contentPath="",this.startOffset=0,this.endOffset=0,F.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 F.util.equals(qK,Z,$)}static $(){return["PromptContextSourceRef|1 source_type 9|3 message_index 13|4 content_path 9|5 start_offset 13|6 end_offset 13"]}};WK=class WK extends E{constructor(Z){super();this.id="",this.kind="",this.label="",this.categoryId="",this.estimatedTokens=0,this.characterCount=0,this.contentAvailable=!1,F.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 F.util.equals(WK,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?",qK]}};NK=class NK extends E{constructor(Z){super();this.schemaVersion=0,this.nodes=[],F.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 F.util.equals(NK,Z,$)}static $(){return["PromptContextUsageTree|1 schema_version 13|2 nodes #0*",WK]}};i$=class i$ extends E{constructor(Z){super();this.usedTokens=0,this.maxTokens=0,F.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 F.util.equals(i$,Z,$)}static $(){return["ConversationTokenDetails|1 used_tokens 13|2 max_tokens 13|3 breakdown #0?|4 prompt_context_usage_tree #1?|5 prompt_context_usage_snapshot_blob_id 12?",QK,NK]}};BK=class BK extends E{constructor(Z){super();F.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 F.util.equals(BK,Z,$)}static $(){return["FileState|1 content 9?|2 initial_content 9?"]}};FK=class FK extends E{constructor(Z){super();F.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 F.util.equals(FK,Z,$)}static $(){return["FileStateStructure|1 content 12?|2 initial_content 12?"]}};GK=class GK extends E{constructor(Z){super();this.durationMs=hH.zero,this.timestampMs=hH.zero,F.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 F.util.equals(GK,Z,$)}static $(){return["StepTiming|1 duration_ms 4|2 timestamp_ms 4"]}};LK=class LK extends E{constructor(Z){super();this.completedTurnCountCapped=0,F.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 F.util.equals(LK,Z,$)}static $(){return["TurnTelemetryState|1 completed_turn_count_capped 13|2 last_completed_turn_timestamp_ms 4?"]}};F8=class F8 extends E{constructor(Z){super();this.rootPromptMessagesJson=[],this.turns=[],this.todos=[],this.pendingToolCalls=[],this.fileStates={},this.summaryArchives=[],this.plans={},this.communicateUpdateHistory=[],this.communicateUpdateStatesByParentToolCallId={},F.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 F.util.equals(F8,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",_6,W0,i$,B8,$K,KK,BK,l$,G8,n$]}};G8=class G8 extends E{constructor(Z){super();this.step="",this.messageIndex=0,F.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 F.util.equals(G8,Z,$)}static $(){return["CommunicateUpdateHistoryEntry|1 step 9|3 message_index 13"]}};n$=class n$ extends E{constructor(Z){super();this.history=[],F.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 F.util.equals(n$,Z,$)}static $(){return["CommunicateUpdateTurnState|1 history #0*|2 final_summary 9?|3 completed_subtitle 9?",G8]}};L8=class L8 extends E{constructor(Z){super();this.createdTimestampMs=hH.zero,this.lastUsedTimestampMs=hH.zero,this.environment=V8.UNSPECIFIED,F.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 F.util.equals(L8,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?",m0,u6,V8,wK,c$]}};wK=class wK extends E{constructor(Z){super();this.bcId="",F.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 F.util.equals(wK,Z,$)}static $(){return["CloudSubagentReference|1 bc_id 9|2 transcript_path 9?"]}};DK=class DK extends E{constructor(Z){super();this.repoPath="",this.branchName="",F.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 F.util.equals(DK,Z,$)}static $(){return["TrackedGitRepo|1 repo_path 9|2 branch_name 9"]}};m0=class m0 extends E{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=[],F.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 F.util.equals(m0,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?",i$,aK,FK,GK,L8,l$,DK,G8,n$,bz,JK,LK]}};IK=class IK extends E{constructor(Z){super();this.id=0,this.result={case:void 0},F.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 F.util.equals(IK,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",BZ,UK,PZ,WZ,o6,dZ,e6,aZ,xZ,$8,O$]}};UK=class UK extends E{constructor(Z){super();F.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 F.util.equals(UK,Z,$)}static $(){return["AskQuestionInteractionResponse|1 result #0",s6]}}});class OK{}var D=q((WG)=>{Object.defineProperty(WG,"__esModule",{value:!0});WG.createNotification=WG.nextNotification=WG.errorNotification=WG.COMPLETE_NOTIFICATION=WG.isObservable=WG.isArrayLike=WG.isPromise=WG.readableStreamLikeToAsyncGenerator=WG.isFunction=WG.getObservableInputType=WG.ObservableInputType=WG.subscribeToArray=WG.fromPromise=WG.fromArrayLike=WG.from=WG.reportUnhandledError=WG.Observable=WG.operate=WG.config=WG.Subscriber=WG.Subscription=WG.UnsubscriptionError=void 0;class rK extends Error{errors;constructor(Z){super(Z?`${Z.length} errors occurred during unsubscription:
|
|
2
|
+
var ux=Object.create;var{getPrototypeOf:lx,defineProperty:IQ,getOwnPropertyNames:px}=Object;var ix=Object.prototype.hasOwnProperty;var fN=(Z,$,J)=>{J=Z!=null?ux(lx(Z)):{};let Y=$||!Z||!Z.__esModule?IQ(J,"default",{value:Z,enumerable:!0}):J;for(let X of px(Z))if(!ix.call(Y,X))IQ(Y,X,{get:()=>Z[X],enumerable:!0});return Y};var q=(Z,$)=>()=>($||Z(($={exports:{}}).exports,$),$.exports);var f6=(Z,$)=>{for(var J in $)IQ(Z,J,{get:$[J],enumerable:!0,configurable:!0,set:(Y)=>$[J]=()=>Y})};var I=(Z,$)=>()=>(Z&&($=Z(Z=0)),$);import{Message as nx}from"@bufbuild/protobuf";function N(Z,$,J){return Object.defineProperty(Z,$,{value:J,writable:!0,enumerable:!0,configurable:!0}),J}function VN(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 ax(Z,$){let J=$[0].split("|"),Y=$.slice(1),X=[];for(let z=1;z<J.length;z++){let K=J[z].split(" "),Q=Number(K[0]),W=K[1],G=K[2],U=K[3],O=G.charAt(G.length-1);if(O==="?"||O==="*")U=O,G=G.slice(0,-1);let k=G.indexOf(",");if(k!==-1){X.push({no:Q,name:W,kind:"map",K:Number(G.slice(0,k)),V:VN(Z,Y,G.slice(k+1))});continue}let f=Object.assign({no:Q,name:W},VN(Z,Y,G));if(U==="?")f.opt=!0;else if(U==="*")f.repeated=!0;else if(U!==void 0)f.oneof=U;X.push(f)}return X}function rx(Z){let $=Z[0],J=$.indexOf("|");return J===-1?$:$.slice(0,J)}function sx(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 tx(Z){return(Z.charAt(0)+Z.slice(1).replace(/[A-Z]/g,($)=>"_"+$)).toUpperCase()+"_"}function L(Z,$,J,Y,X){let z=J.slice(J.lastIndexOf(".")+1),K,Q;if(X===1){let U=tx(z);Q=Y.map((O)=>O[1]),K=Q.map((O)=>U+O)}else K=Y.map((U)=>U[1]),Q=X===void 0?sx(z,K):X;let W={},G=[];for(let U=0;U<Y.length;U++){let O=Y[U][0];W[Q[U]]=O,W[O]=Q[U],G.push({no:O,name:K[U]})}return Z.util.setEnumType(W,$+J,G),W}var B;var P=I(()=>{B=class B extends nx{static get typeName(){let Z=this;return N(Z,"typeName",Z.$p()+rx(Z.$()))}static get fields(){let Z=this,$=Z.$(),J=Z.runtime,Y=()=>ax(J,$);return N(Z,"fields",J.util.newFieldList(Y))}}});import{Message as tu,proto3 as R}from"@bufbuild/protobuf";var AK="agent.v1.",f0,V6,wQ,xN,OQ,c8,J9,Y9,X9,z9,K9,H9,Q9,q9,W9,N9,B9,F9;var MN=I(()=>{P();f0=class f0 extends B{static get runtime(){return N(this,"runtime",R)}static $p(){return AK}};V6=L(R,AK,"SubagentExecutionEnvironment",[[0,"UNSPECIFIED"],[1,"LOCAL"],[2,"CLOUD"]],1),wQ=L(R,AK,"SubagentBackgroundReason",[[0,"UNSPECIFIED"],[1,"AGENT_REQUEST"],[2,"USER_REQUEST"],[3,"QUEUED_FOLLOW_UP"]],1),xN=L(R,AK,"BackgroundTaskCompletionReason",[[0,"UNSPECIFIED"],[1,"TASK_FINISHED"],[2,"TASK_PROGRESS"],[3,"WORKER_REPARENTED"],[4,"WORKER_MESSAGE"],[5,"WORKER_NEEDS_ATTENTION"]],1),OQ=L(R,AK,"TaskMode",[[0,"UNSPECIFIED"],[1,"AGENT"],[2,"PLAN"]],1);c8=class c8 extends f0{constructor(Z){super();this.type={case:void 0},R.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 R.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",J9,Y9,F9,X9,z9,K9,Q9,H9,q9,W9,N9,B9]}};J9=class J9 extends f0{constructor(Z){super();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["SubagentTypeUnspecified"]}};Y9=class Y9 extends f0{constructor(Z){super();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["SubagentTypeComputerUse"]}};X9=class X9 extends f0{constructor(Z){super();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["SubagentTypeExplore"]}};z9=class z9 extends f0{constructor(Z){super();R.util.initPartial(Z,this)}static fromBinary(Z,$){return new z9().fromBinary(Z,$)}static fromJson(Z,$){return new z9().fromJson(Z,$)}static fromJsonString(Z,$){return new z9().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(z9,Z,$)}static $(){return["SubagentTypeMediaReview"]}};K9=class K9 extends f0{constructor(Z){super();R.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 R.util.equals(K9,Z,$)}static $(){return["SubagentTypeBash"]}};H9=class H9 extends f0{constructor(Z){super();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["SubagentTypeShell"]}};Q9=class Q9 extends f0{constructor(Z){super();R.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 R.util.equals(Q9,Z,$)}static $(){return["SubagentTypeBrowserUse"]}};q9=class q9 extends f0{constructor(Z){super();R.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 R.util.equals(q9,Z,$)}static $(){return["SubagentTypeVmSetupHelper"]}};W9=class W9 extends f0{constructor(Z){super();R.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 R.util.equals(W9,Z,$)}static $(){return["SubagentTypeDebug"]}};N9=class N9 extends f0{constructor(Z){super();R.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 R.util.equals(N9,Z,$)}static $(){return["SubagentTypeCursorGuide"]}};B9=class B9 extends f0{constructor(Z){super();R.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 R.util.equals(B9,Z,$)}static $(){return["SubagentTypeWatchVideo"]}};F9=class F9 extends f0{constructor(Z){super();this.name="",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["SubagentTypeCustom|1 name 9"]}}});import{Message as $l,proto3 as L8}from"@bufbuild/protobuf";var QH="agent.v1.",qH,G9,U9,ox,j0,CN,hN;var WH=I(()=>{P();qH=class qH extends B{static get runtime(){return N(this,"runtime",L8)}static $p(){return QH}};G9=class G9 extends qH{constructor(Z){super();L8.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 L8.util.equals(G9,Z,$)}static $(){return["NetworkPolicyLoggingConfig|1 decision_log_path 9?|2 log_format 9?"]}};U9=class U9 extends qH{constructor(Z){super();this.deny=[],this.allow=[],L8.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 L8.util.equals(U9,Z,$)}static $(){return["NetworkPolicy|1 version 13?|2 default_action #0?|3 deny 9*|4 allow 9*|5 logging #1?",ox,G9]}};ox=L(L8,QH,"NetworkPolicy.DefaultAction",[[0,"UNSPECIFIED"],[1,"ALLOW"],[2,"DENY"]],1);j0=class j0 extends qH{constructor(Z){super();this.type=CN.UNSPECIFIED,this.additionalReadwritePaths=[],this.additionalReadonlyPaths=[],this.readBoundary=hN.UNSPECIFIED,this.additionalReadPaths=[],L8.util.initPartial(Z,this)}static fromBinary(Z,$){return new j0().fromBinary(Z,$)}static fromJson(Z,$){return new j0().fromJson(Z,$)}static fromJsonString(Z,$){return new j0().fromJsonString(Z,$)}static equals(Z,$){return L8.util.equals(j0,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*",CN,U9,hN]}};CN=L(L8,QH,"SandboxPolicy.Type",[[0,"UNSPECIFIED"],[1,"INSECURE_NONE"],[2,"WORKSPACE_READWRITE"],[3,"WORKSPACE_READONLY"]],1),hN=L(L8,QH,"SandboxPolicy.ReadBoundaryMode",[[0,"UNSPECIFIED"],[1,"SYSTEM"],[2,"WORKSPACE"]],1)});import{Message as zl,proto3 as C8,protoInt64 as AN}from"@bufbuild/protobuf";var ex="agent.v1.",vK,u8,l8,q0,l0;var x6=I(()=>{P();vK=class vK extends B{static get runtime(){return N(this,"runtime",C8)}static $p(){return ex}};u8=class u8 extends vK{constructor(Z){super();C8.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 C8.util.equals(u8,Z,$)}static $(){return["Range|1 start #0|2 end #0",l8]}};l8=class l8 extends vK{constructor(Z){super();this.line=0,this.column=0,C8.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 C8.util.equals(l8,Z,$)}static $(){return["Position|1 line 13|2 column 13"]}};q0=class q0 extends vK{constructor(Z){super();this.filePath="",this.sizeBytes=AN.zero,this.lineCount=AN.zero,C8.util.initPartial(Z,this)}static fromBinary(Z,$){return new q0().fromBinary(Z,$)}static fromJson(Z,$){return new q0().fromJson(Z,$)}static fromJsonString(Z,$){return new q0().fromJsonString(Z,$)}static equals(Z,$){return C8.util.equals(q0,Z,$)}static $(){return["OutputLocation|1 file_path 9|2 size_bytes 3|3 line_count 3"]}};l0=class l0 extends vK{constructor(Z){super();this.requestId="",this.reason="",C8.util.initPartial(Z,this)}static fromBinary(Z,$){return new l0().fromBinary(Z,$)}static fromJson(Z,$){return new l0().fromJson(Z,$)}static fromJsonString(Z,$){return new l0().fromJsonString(Z,$)}static equals(Z,$){return C8.util.equals(l0,Z,$)}static $(){return["SmartModeApproval|1 request_id 9|2 reason 9"]}}});import{Message as ql,proto3 as kQ}from"@bufbuild/protobuf";var ZM="agent.v1.",vN,p8;var TN=I(()=>{P();vN=class vN extends B{static get runtime(){return N(this,"runtime",kQ)}static $p(){return ZM}};p8=class p8 extends vN{constructor(Z){super();this.hookEventName="",this.content="",kQ.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 kQ.util.equals(p8,Z,$)}static $(){return["HookAdditionalContext|1 hook_event_name 9|2 content 9"]}}});import{Message as Fl,proto3 as A,protoInt64 as $M}from"@bufbuild/protobuf";var h6="agent.v1.",Z0,RN,JM,YM,L9,D9,I9,w9,O9,yN,k9,P9,E9,mN,M6,C6,f9,jN,V9,x9,M9,C9,h9,A9;var _N=I(()=>{WH();x6();P();Z0=class Z0 extends B{static get runtime(){return N(this,"runtime",A)}static $p(){return h6}};RN=L(A,h6,"TimeoutBehavior",[[0,"UNSPECIFIED"],[1,"CANCEL"],[2,"BACKGROUND"]],1),JM=L(A,h6,"ShellBackgroundReason",[[0,"UNSPECIFIED"],[1,"TIMEOUT"],[2,"USER_REQUEST"]],1),YM=L(A,h6,"ShellAbortReason",[[0,"UNSPECIFIED"],[1,"USER_ABORT"],[2,"TIMEOUT"]],1);L9=class L9 extends Z0{constructor(Z){super();this.parsingFailed=!1,this.executableCommands=[],this.hasRedirects=!1,this.hasCommandSubstitution=!1,this.redirects=[],A.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 A.util.equals(L9,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*",I9,w9]}};D9=class D9 extends Z0{constructor(Z){super();this.type="",this.value="",A.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 A.util.equals(D9,Z,$)}static $(){return["ShellCommandParsingResult.ExecutableCommandArg|1 type 9|2 value 9"]}};I9=class I9 extends Z0{constructor(Z){super();this.name="",this.args=[],this.fullText="",A.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 A.util.equals(I9,Z,$)}static $(){return["ShellCommandParsingResult.ExecutableCommand|1 name 9|2 args #0*|3 full_text 9",D9]}};w9=class w9 extends Z0{constructor(Z){super();this.operator="",this.destinationFds=[],this.targetNodeType="",A.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 A.util.equals(w9,Z,$)}static $(){return["ShellCommandParsingResult.Redirect|1 operator 9|2 destination_fds 13*|3 target_node_type 9|4 target_text 9?"]}};O9=class O9 extends Z0{constructor(Z){super();this.commands=[],this.suggestedSandboxMode=yN.UNSPECIFIED,this.classificationFailed=!1,A.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 A.util.equals(O9,Z,$)}static $(){return["CommandClassifierResult|1 commands #0*|2 suggested_sandbox_mode #1|3 classification_failed 8",k9,yN]}};yN=L(A,h6,"CommandClassifierResult.SuggestedSandboxMode",[[0,"UNSPECIFIED"],[1,"SANDBOX"],[2,"NO_SANDBOX"],[3,"UNDETERMINED"]],1);k9=class k9 extends Z0{constructor(Z){super();this.name="",this.arguments=[],this.subcommandTokens=[],A.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 A.util.equals(k9,Z,$)}static $(){return["CommandClassifierResult.ClassifiedCommand|1 name 9|2 arguments 9*|3 suggested_allowlist_entry 9?|4 subcommand_tokens 9*"]}};P9=class P9 extends Z0{constructor(Z){super();this.pattern="",this.reason="",A.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 A.util.equals(P9,Z,$)}static $(){return["ShellOutputNotificationConfig|1 pattern 9|2 reason 9|3 debounce 1?|4 notification_limit 5?"]}};E9=class E9 extends Z0{constructor(Z){super();this.kind=mN.UNSPECIFIED,A.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 A.util.equals(E9,Z,$)}static $(){return["ShellHookApprovalRequirement|1 kind #0|2 reason 9?",mN]}};mN=L(A,h6,"ShellHookApprovalRequirement.Kind",[[0,"UNSPECIFIED"],[1,"FORCE_PROMPT"]],1);M6=class M6 extends Z0{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=RN.UNSPECIFIED,this.closeStdin=!1,this.adminCommandDenylist=[],A.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 A.util.equals(M6,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?",L9,j0,RN,O9,P9,l0,E9]}};C6=class C6 extends Z0{constructor(Z){super();this.result={case:void 0},A.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 A.util.equals(C6,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,x9,M9,C9,A9,h9,j0]}};f9=class f9 extends Z0{constructor(Z){super();this.kind=jN.UNSPECIFIED,this.memoryLimitBytes=$M.zero,A.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 A.util.equals(f9,Z,$)}static $(){return["ShellOomKill|1 kind #0|2 memory_limit_bytes 4",jN]}};jN=L(A,h6,"ShellOomKill.Kind",[[0,"UNSPECIFIED"],[1,"COMMAND_KILLED"],[2,"COMMAND_FAILED"],[3,"UNCONFIRMED"]],1);V9=class V9 extends Z0{constructor(Z){super();this.command="",this.workingDirectory="",this.exitCode=0,this.signal="",this.stdout="",this.stderr="",this.executionTime=0,A.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 A.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?",q0,JM]}};x9=class x9 extends Z0{constructor(Z){super();this.command="",this.workingDirectory="",this.exitCode=0,this.signal="",this.stdout="",this.stderr="",this.executionTime=0,this.aborted=!1,A.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 A.util.equals(x9,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?",q0,YM,f9]}};M9=class M9 extends Z0{constructor(Z){super();this.command="",this.workingDirectory="",this.timeoutMs=0,A.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 A.util.equals(M9,Z,$)}static $(){return["ShellTimeout|1 command 9|2 working_directory 9|3 timeout_ms 5"]}};C9=class C9 extends Z0{constructor(Z){super();this.command="",this.workingDirectory="",this.reason="",this.isReadonly=!1,A.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 A.util.equals(C9,Z,$)}static $(){return["ShellRejected|1 command 9|2 working_directory 9|3 reason 9|4 is_readonly 8"]}};h9=class h9 extends Z0{constructor(Z){super();this.command="",this.workingDirectory="",this.error="",this.isReadonly=!1,A.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 A.util.equals(h9,Z,$)}static $(){return["ShellPermissionDenied|1 command 9|2 working_directory 9|3 error 9|4 is_readonly 8"]}};A9=class A9 extends Z0{constructor(Z){super();this.command="",this.workingDirectory="",this.error="",A.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 A.util.equals(A9,Z,$)}static $(){return["ShellSpawnError|1 command 9|2 working_directory 9|3 error 9"]}}});import{Message as wl,proto3 as PQ}from"@bufbuild/protobuf";var XM="agent.v1.",SN,A6;var gN=I(()=>{_N();P();SN=class SN extends B{static get runtime(){return N(this,"runtime",PQ)}static $p(){return XM}};A6=class A6 extends SN{constructor(Z){super();PQ.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 PQ.util.equals(A6,Z,$)}static $(){return["ShellToolCall|1 args #0|2 result #1|3 description 9?",M6,C6]}}});import{Message as fl,proto3 as n,protoInt64 as zM}from"@bufbuild/protobuf";var KM="agent.v1.",D8,v6,T6,v9,T9,R9,y9,m9,j9,_9;var bN=I(()=>{P();D8=class D8 extends B{static get runtime(){return N(this,"runtime",n)}static $p(){return KM}};v6=class v6 extends D8{constructor(Z){super();this.path="",this.toolCallId="",n.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 n.util.equals(v6,Z,$)}static $(){return["DeleteArgs|1 path 9|2 tool_call_id 9"]}};T6=class T6 extends D8{constructor(Z){super();this.result={case:void 0},n.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 n.util.equals(T6,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",v9,T9,R9,y9,m9,j9,_9]}};v9=class v9 extends D8{constructor(Z){super();this.path="",this.deletedFile="",this.fileSize=zM.zero,this.prevContent="",n.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 n.util.equals(v9,Z,$)}static $(){return["DeleteSuccess|1 path 9|2 deleted_file 9|3 file_size 3|4 prev_content 9"]}};T9=class T9 extends D8{constructor(Z){super();this.path="",n.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 n.util.equals(T9,Z,$)}static $(){return["DeleteFileNotFound|1 path 9"]}};R9=class R9 extends D8{constructor(Z){super();this.path="",this.actualType="",n.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 n.util.equals(R9,Z,$)}static $(){return["DeleteNotFile|1 path 9|2 actual_type 9"]}};y9=class y9 extends D8{constructor(Z){super();this.path="",this.clientVisibleError="",this.isReadonly=!1,n.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 n.util.equals(y9,Z,$)}static $(){return["DeletePermissionDenied|1 path 9|2 client_visible_error 9|3 is_readonly 8"]}};m9=class m9 extends D8{constructor(Z){super();this.path="",n.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 n.util.equals(m9,Z,$)}static $(){return["DeleteFileBusy|1 path 9"]}};j9=class j9 extends D8{constructor(Z){super();this.path="",this.reason="",n.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 n.util.equals(j9,Z,$)}static $(){return["DeleteRejected|1 path 9|2 reason 9"]}};_9=class _9 extends D8{constructor(Z){super();this.path="",this.error="",n.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 n.util.equals(_9,Z,$)}static $(){return["DeleteError|1 path 9|2 error 9"]}}});import{Message as Cl,proto3 as EQ}from"@bufbuild/protobuf";var HM="agent.v1.",dN,R6;var cN=I(()=>{bN();P();dN=class dN extends B{static get runtime(){return N(this,"runtime",EQ)}static $p(){return HM}};R6=class R6 extends dN{constructor(Z){super();EQ.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 EQ.util.equals(R6,Z,$)}static $(){return["DeleteToolCall|1 args #0|2 result #1",v6,T6]}}});import{Message as Rl,proto3 as p0}from"@bufbuild/protobuf";var QM="agent.v1.",c9,S9,g9,b9,d9,y6;var uN=I(()=>{P();c9=class c9 extends B{static get runtime(){return N(this,"runtime",p0)}static $p(){return QM}};S9=class S9 extends c9{constructor(Z){super();this.globPattern="",p0.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 p0.util.equals(S9,Z,$)}static $(){return["GlobToolArgs|1 target_directory 9?|2 glob_pattern 9"]}};g9=class g9 extends c9{constructor(Z){super();this.result={case:void 0},p0.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 p0.util.equals(g9,Z,$)}static $(){return["GlobToolResult|1 success #0 result|2 error #1 result",d9,b9]}};b9=class b9 extends c9{constructor(Z){super();this.error="",p0.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 p0.util.equals(b9,Z,$)}static $(){return["GlobToolError|1 error 9"]}};d9=class d9 extends c9{constructor(Z){super();this.pattern="",this.path="",this.files=[],this.totalFiles=0,this.clientTruncated=!1,this.ripgrepTruncated=!1,p0.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 p0.util.equals(d9,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"]}};y6=class y6 extends c9{constructor(Z){super();p0.util.initPartial(Z,this)}static fromBinary(Z,$){return new y6().fromBinary(Z,$)}static fromJson(Z,$){return new y6().fromJson(Z,$)}static fromJsonString(Z,$){return new y6().fromJsonString(Z,$)}static equals(Z,$){return p0.util.equals(y6,Z,$)}static $(){return["GlobToolCall|1 args #0|2 result #1",S9,g9]}}});import{Message as _l,proto3 as d}from"@bufbuild/protobuf";var qM="agent.v1.",_0,m6,j6,u9,l9,p9,i9,n9,a9,r9,s9,t9;var lN=I(()=>{WH();P();_0=class _0 extends B{static get runtime(){return N(this,"runtime",d)}static $p(){return qM}};m6=class m6 extends _0{constructor(Z){super();this.pattern="",this.toolCallId="",d.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 d.util.equals(m6,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?",j0]}};j6=class j6 extends _0{constructor(Z){super();this.result={case:void 0},d.util.initPartial(Z,this)}static fromBinary(Z,$){return new j6().fromBinary(Z,$)}static fromJson(Z,$){return new j6().fromJson(Z,$)}static fromJsonString(Z,$){return new j6().fromJsonString(Z,$)}static equals(Z,$){return d.util.equals(j6,Z,$)}static $(){return["GrepResult|1 success #0 result|2 error #1 result",l9,u9]}};u9=class u9 extends _0{constructor(Z){super();this.error="",d.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 d.util.equals(u9,Z,$)}static $(){return["GrepError|1 error 9"]}};l9=class l9 extends _0{constructor(Z){super();this.pattern="",this.path="",this.outputMode="",this.workspaceResults={},d.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 d.util.equals(l9,Z,$)}static $(){return["GrepSuccess|1 pattern 9|2 path 9|3 output_mode 9|4 workspace_results 9,#0|5 active_editor_result #0?",p9]}};p9=class p9 extends _0{constructor(Z){super();this.result={case:void 0},d.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 d.util.equals(p9,Z,$)}static $(){return["GrepUnionResult|1 count #0 result|2 files #1 result|3 content #2 result",i9,a9,r9]}};i9=class i9 extends _0{constructor(Z){super();this.counts=[],this.totalFiles=0,this.totalMatches=0,this.clientTruncated=!1,this.ripgrepTruncated=!1,d.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 d.util.equals(i9,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?",n9]}};n9=class n9 extends _0{constructor(Z){super();this.file="",this.count=0,d.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 d.util.equals(n9,Z,$)}static $(){return["GrepFileCount|1 file 9|2 count 5"]}};a9=class a9 extends _0{constructor(Z){super();this.files=[],this.totalFiles=0,this.clientTruncated=!1,this.ripgrepTruncated=!1,d.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 d.util.equals(a9,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?"]}};r9=class r9 extends _0{constructor(Z){super();this.matches=[],this.totalLines=0,this.totalMatchedLines=0,this.clientTruncated=!1,this.ripgrepTruncated=!1,d.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 d.util.equals(r9,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?",s9]}};s9=class s9 extends _0{constructor(Z){super();this.file="",this.matches=[],d.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 d.util.equals(s9,Z,$)}static $(){return["GrepFileMatch|1 file 9|2 matches #0*",t9]}};t9=class t9 extends _0{constructor(Z){super();this.lineNumber=0,this.content="",this.contentTruncated=!1,this.isContextLine=!1,d.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 d.util.equals(t9,Z,$)}static $(){return["GrepContentMatch|1 line_number 5|2 content 9|3 content_truncated 8|4 is_context_line 8"]}}});import{Message as cl,proto3 as fQ}from"@bufbuild/protobuf";var WM="agent.v1.",pN,_6;var iN=I(()=>{lN();P();pN=class pN extends B{static get runtime(){return N(this,"runtime",fQ)}static $p(){return WM}};_6=class _6 extends pN{constructor(Z){super();fQ.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 fQ.util.equals(_6,Z,$)}static $(){return["GrepToolCall|1 args #0|2 result #1",m6,j6]}}});import{Message as nl,proto3 as V0}from"@bufbuild/protobuf";var aN="agent.v1.",S6,nN,o9,e9,Z7,$7,J7,h8;var VQ=I(()=>{P();S6=class S6 extends B{static get runtime(){return N(this,"runtime",V0)}static $p(){return aN}};nN=L(V0,aN,"CursorRuleSource",[[0,"UNSPECIFIED"],[1,"TEAM"],[2,"USER"]],1);o9=class o9 extends S6{constructor(Z){super();V0.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 V0.util.equals(o9,Z,$)}static $(){return["CursorRuleTypeGlobal"]}};e9=class e9 extends S6{constructor(Z){super();this.globs=[],V0.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 V0.util.equals(e9,Z,$)}static $(){return["CursorRuleTypeFileGlobs|1 globs 9*"]}};Z7=class Z7 extends S6{constructor(Z){super();this.description="",V0.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 V0.util.equals(Z7,Z,$)}static $(){return["CursorRuleTypeAgentFetched|1 description 9"]}};$7=class $7 extends S6{constructor(Z){super();V0.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 V0.util.equals($7,Z,$)}static $(){return["CursorRuleTypeManuallyAttached"]}};J7=class J7 extends S6{constructor(Z){super();this.type={case:void 0},V0.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 V0.util.equals(J7,Z,$)}static $(){return["CursorRuleType|1 global #0 type|2 file_globbed #1 type|3 agent_fetched #2 type|4 manually_attached #3 type",o9,e9,Z7,$7]}};h8=class h8 extends S6{constructor(Z){super();this.fullPath="",this.content="",this.source=nN.UNSPECIFIED,this.environments=[],this.disabledEnvironments=[],this.scopedTo=[],this.frontmatter="",V0.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 V0.util.equals(h8,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?",J7,nN]}}});import{Message as tl,proto3 as v0}from"@bufbuild/protobuf";var NM="agent.v1.",b6,g6,Y7,X7,z7,K7,H7;var rN=I(()=>{VQ();P();b6=class b6 extends B{static get runtime(){return N(this,"runtime",v0)}static $p(){return NM}};g6=class g6 extends b6{constructor(Z){super();v0.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 v0.util.equals(g6,Z,$)}static $(){return["ReadToolCall|1 args #0|2 result #1",Y7,X7]}};Y7=class Y7 extends b6{constructor(Z){super();this.path="",v0.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 v0.util.equals(Y7,Z,$)}static $(){return["ReadToolArgs|1 path 9|2 offset 5?|3 limit 5?|5 include_line_numbers 8?"]}};X7=class X7 extends b6{constructor(Z){super();this.result={case:void 0},v0.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 v0.util.equals(X7,Z,$)}static $(){return["ReadToolResult|1 success #0 result|2 error #1 result",K7,H7]}};z7=class z7 extends b6{constructor(Z){super();this.startLine=0,this.endLine=0,v0.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 v0.util.equals(z7,Z,$)}static $(){return["ReadRange|1 start_line 13|2 end_line 13"]}};K7=class K7 extends b6{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=[],v0.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 v0.util.equals(K7,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*",z7,h8]}};H7=class H7 extends b6{constructor(Z){super();this.errorMessage="",v0.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 v0.util.equals(H7,Z,$)}static $(){return["ReadToolError|1 error_message 9"]}}});import{Message as Jp,proto3 as b,protoInt64 as sN}from"@bufbuild/protobuf";var tN="agent.v1.",S0,xQ,W0,d6,Q7,q7,W7,N7,c6,B7,F7,G7,U7;var NH=I(()=>{P();S0=class S0 extends B{static get runtime(){return N(this,"runtime",b)}static $p(){return tN}};xQ=L(b,tN,"TodoStatus",[[0,"UNSPECIFIED"],[1,"PENDING"],[2,"IN_PROGRESS"],[3,"COMPLETED"],[4,"CANCELLED"]],1);W0=class W0 extends S0{constructor(Z){super();this.id="",this.content="",this.status=xQ.UNSPECIFIED,this.createdAt=sN.zero,this.updatedAt=sN.zero,this.dependencies=[],b.util.initPartial(Z,this)}static fromBinary(Z,$){return new W0().fromBinary(Z,$)}static fromJson(Z,$){return new W0().fromJson(Z,$)}static fromJsonString(Z,$){return new W0().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(W0,Z,$)}static $(){return["TodoItem|1 id 9|2 content 9|3 status #0|4 created_at 3|5 updated_at 3|6 dependencies 9*",xQ]}};d6=class d6 extends S0{constructor(Z){super();b.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 b.util.equals(d6,Z,$)}static $(){return["UpdateTodosToolCall|1 args #0|2 result #1",Q7,q7]}};Q7=class Q7 extends S0{constructor(Z){super();this.todos=[],this.merge=!1,b.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 b.util.equals(Q7,Z,$)}static $(){return["UpdateTodosArgs|1 todos #0*|2 merge 8",W0]}};q7=class q7 extends S0{constructor(Z){super();this.result={case:void 0},b.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 b.util.equals(q7,Z,$)}static $(){return["UpdateTodosResult|1 success #0 result|2 error #1 result",W7,N7]}};W7=class W7 extends S0{constructor(Z){super();this.todos=[],this.totalCount=0,this.wasMerge=!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["UpdateTodosSuccess|1 todos #0*|2 total_count 5|3 was_merge 8",W0]}};N7=class N7 extends S0{constructor(Z){super();this.error="",b.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 b.util.equals(N7,Z,$)}static $(){return["UpdateTodosError|1 error 9"]}};c6=class c6 extends S0{constructor(Z){super();b.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 b.util.equals(c6,Z,$)}static $(){return["ReadTodosToolCall|1 args #0|2 result #1",B7,F7]}};B7=class B7 extends S0{constructor(Z){super();this.statusFilter=[],this.idFilter=[],b.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 b.util.equals(B7,Z,$)}static $(){return["ReadTodosArgs|1 status_filter #0*|2 id_filter 9*",xQ]}};F7=class F7 extends S0{constructor(Z){super();this.result={case:void 0},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["ReadTodosResult|1 success #0 result|2 error #1 result",G7,U7]}};G7=class G7 extends S0{constructor(Z){super();this.todos=[],this.totalCount=0,b.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 b.util.equals(G7,Z,$)}static $(){return["ReadTodosSuccess|1 todos #0*|2 total_count 5",W0]}};U7=class U7 extends S0{constructor(Z){super();this.error="",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["ReadTodosError|1 error 9"]}}});import{Message as Kp,proto3 as a}from"@bufbuild/protobuf";var BM="agent.v1.",I8,L7,D7,I7,w7,O7,k7,P7,E7,u6;var oN=I(()=>{P();I8=class I8 extends B{static get runtime(){return N(this,"runtime",a)}static $p(){return BM}};L7=class L7 extends I8{constructor(Z){super();this.path="",a.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 a.util.equals(L7,Z,$)}static $(){return["EditArgs|1 path 9|6 stream_content 9?"]}};D7=class D7 extends I8{constructor(Z){super();this.result={case:void 0},a.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 a.util.equals(D7,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",I7,w7,O7,k7,P7,E7]}};I7=class I7 extends I8{constructor(Z){super();this.path="",this.afterFullFileContent="",a.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 a.util.equals(I7,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?"]}};w7=class w7 extends I8{constructor(Z){super();this.path="",a.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 a.util.equals(w7,Z,$)}static $(){return["EditFileNotFound|1 path 9"]}};O7=class O7 extends I8{constructor(Z){super();this.path="",a.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 a.util.equals(O7,Z,$)}static $(){return["EditReadPermissionDenied|1 path 9"]}};k7=class k7 extends I8{constructor(Z){super();this.path="",this.error="",this.isReadonly=!1,a.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 a.util.equals(k7,Z,$)}static $(){return["EditWritePermissionDenied|1 path 9|2 error 9|3 is_readonly 8"]}};P7=class P7 extends I8{constructor(Z){super();this.path="",this.reason="",a.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 a.util.equals(P7,Z,$)}static $(){return["EditRejected|1 path 9|2 reason 9"]}};E7=class E7 extends I8{constructor(Z){super();this.path="",this.error="",a.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 a.util.equals(E7,Z,$)}static $(){return["EditError|1 path 9|2 error 9|5 model_visible_error 9?"]}};u6=class u6 extends I8{constructor(Z){super();a.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 a.util.equals(u6,Z,$)}static $(){return["EditToolCall|1 args #0|2 result #1",L7,D7]}}});import{Message as Wp,proto3 as u}from"@bufbuild/protobuf";var FM="agent.v1.",i0,l6,p6,f7,w8,V7,x7,M7,C7,h7,A7;var MQ=I(()=>{WH();P();i0=class i0 extends B{static get runtime(){return N(this,"runtime",u)}static $p(){return FM}};l6=class l6 extends i0{constructor(Z){super();this.path="",this.ignore=[],this.toolCallId="",u.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 u.util.equals(l6,Z,$)}static $(){return["LsArgs|1 path 9|2 ignore 9*|3 tool_call_id 9|4 sandbox_policy #0?|5 timeout_ms 13?",j0]}};p6=class p6 extends i0{constructor(Z){super();this.result={case:void 0},u.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 u.util.equals(p6,Z,$)}static $(){return["LsResult|1 success #0 result|2 error #1 result|3 rejected #2 result|4 timeout #3 result",f7,x7,M7,C7]}};f7=class f7 extends i0{constructor(Z){super();u.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 u.util.equals(f7,Z,$)}static $(){return["LsSuccess|1 directory_tree_root #0",w8]}};w8=class w8 extends i0{constructor(Z){super();this.absPath="",this.childrenDirs=[],this.childrenFiles=[],this.childrenWereProcessed=!1,this.fullSubtreeExtensionCounts={},this.numFiles=0,u.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 u.util.equals(w8,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",w8,V7]}};V7=class V7 extends i0{constructor(Z){super();this.name="",u.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 u.util.equals(V7,Z,$)}static $(){return["LsDirectoryTreeNode.File|1 name 9|2 terminal_metadata #0?",h7]}};x7=class x7 extends i0{constructor(Z){super();this.path="",this.error="",u.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 u.util.equals(x7,Z,$)}static $(){return["LsError|1 path 9|2 error 9"]}};M7=class M7 extends i0{constructor(Z){super();this.path="",this.reason="",u.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 u.util.equals(M7,Z,$)}static $(){return["LsRejected|1 path 9|2 reason 9"]}};C7=class C7 extends i0{constructor(Z){super();u.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 u.util.equals(C7,Z,$)}static $(){return["LsTimeout|1 directory_tree_root #0",w8]}};h7=class h7 extends i0{constructor(Z){super();this.lastCommands=[],u.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 u.util.equals(h7,Z,$)}static $(){return["TerminalMetadata|1 cwd 9?|2 last_commands #0*|3 last_modified_ms 3?|4 current_command #0?",A7]}};A7=class A7 extends i0{constructor(Z){super();this.command="",u.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 u.util.equals(A7,Z,$)}static $(){return["TerminalMetadata.Command|1 command 9|2 exit_code 5?|3 timestamp_ms 3?|4 duration_ms 3?"]}}});import{Message as Up,proto3 as CQ}from"@bufbuild/protobuf";var GM="agent.v1.",eN,i6;var ZB=I(()=>{MQ();P();eN=class eN extends B{static get runtime(){return N(this,"runtime",CQ)}static $p(){return GM}};i6=class i6 extends eN{constructor(Z){super();CQ.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 CQ.util.equals(i6,Z,$)}static $(){return["LsToolCall|1 args #0|2 result #1",l6,p6]}}});import{Message as Op,proto3 as UM}from"@bufbuild/protobuf";var LM="agent.v1.",hQ;var $B=I(()=>{P();hQ=L(UM,LM,"DiagnosticSeverity",[[0,"UNSPECIFIED"],[1,"ERROR"],[2,"WARNING"],[3,"INFORMATION"],[4,"HINT"]],1)});import{Message as fp,proto3 as $0}from"@bufbuild/protobuf";var DM="agent.v1.",A8,n6,v7,T7,R7,y7,m7,j7,_7;var JB=I(()=>{$B();x6();P();A8=class A8 extends B{static get runtime(){return N(this,"runtime",$0)}static $p(){return DM}};n6=class n6 extends A8{constructor(Z){super();$0.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 $0.util.equals(n6,Z,$)}static $(){return["ReadLintsToolCall|1 args #0|2 result #1",v7,T7]}};v7=class v7 extends A8{constructor(Z){super();this.paths=[],$0.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 $0.util.equals(v7,Z,$)}static $(){return["ReadLintsToolArgs|1 paths 9*"]}};T7=class T7 extends A8{constructor(Z){super();this.result={case:void 0},$0.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 $0.util.equals(T7,Z,$)}static $(){return["ReadLintsToolResult|1 success #0 result|2 error #1 result",R7,_7]}};R7=class R7 extends A8{constructor(Z){super();this.fileDiagnostics=[],this.totalFiles=0,this.totalDiagnostics=0,$0.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 $0.util.equals(R7,Z,$)}static $(){return["ReadLintsToolSuccess|1 file_diagnostics #0*|2 total_files 5|3 total_diagnostics 5",y7]}};y7=class y7 extends A8{constructor(Z){super();this.path="",this.diagnostics=[],this.diagnosticsCount=0,$0.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 $0.util.equals(y7,Z,$)}static $(){return["FileDiagnostics|1 path 9|2 diagnostics #0*|3 diagnostics_count 5",m7]}};m7=class m7 extends A8{constructor(Z){super();this.severity=hQ.UNSPECIFIED,this.message="",this.source="",this.code="",this.isStale=!1,$0.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 $0.util.equals(m7,Z,$)}static $(){return["DiagnosticItem|1 severity #0|2 range #1|3 message 9|4 source 9|5 code 9|6 is_stale 8",hQ,j7]}};j7=class j7 extends A8{constructor(Z){super();$0.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 $0.util.equals(j7,Z,$)}static $(){return["DiagnosticRange|1 start #0|2 end #0",l8]}};_7=class _7 extends A8{constructor(Z){super();this.errorMessage="",$0.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 $0.util.equals(_7,Z,$)}static $(){return["ReadLintsToolError|1 error_message 9"]}}});import{Message as Ap,proto3 as C,protoInt64 as IM,Struct as wM,Value as OM}from"@bufbuild/protobuf";var kM="agent.v1.",c,a6,S7,g7,b7,d7,i8,r6,s6,t6,o6,e6,c7,u7,l7,p7,ZZ,$Z,i7,n7,a7,r7;var AQ=I(()=>{x6();P();c=class c extends B{static get runtime(){return N(this,"runtime",C)}static $p(){return kM}};a6=class a6 extends c{constructor(Z){super();this.name="",this.args={},this.toolCallId="",this.providerIdentifier="",this.toolName="",this.smartModeApprovalOnly=!1,this.skipApproval=!1,this.serverIdentifier="",this.symbolicPathArguments=[],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["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*",OM,l0,S7]}};S7=class S7 extends c{constructor(Z){super();this.path="",this.sha256="",this.sizeBytes=IM.zero,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["McpSymbolicPathArgument|1 path 9|2 sha256 9|3 size_bytes 3"]}};g7=class g7 extends c{constructor(Z){super();this.text="",C.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 C.util.equals(g7,Z,$)}static $(){return["McpTextContent|1 text 9|2 output_location #0?",q0]}};b7=class b7 extends c{constructor(Z){super();this.data=new Uint8Array(0),this.mimeType="",C.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 C.util.equals(b7,Z,$)}static $(){return["McpImageContent|1 data 12|2 mime_type 9"]}};d7=class d7 extends c{constructor(Z){super();this.content={case:void 0},C.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 C.util.equals(d7,Z,$)}static $(){return["McpToolResultContentItem|1 text #0 content|2 image #1 content",g7,b7]}};i8=class i8 extends c{constructor(Z){super();this.body="",C.util.initPartial(Z,this)}static fromBinary(Z,$){return new i8().fromBinary(Z,$)}static fromJson(Z,$){return new i8().fromJson(Z,$)}static fromJsonString(Z,$){return new i8().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(i8,Z,$)}static $(){return["SystemReminder|1 body 9"]}};r6=class r6 extends c{constructor(Z){super();this.content=[],this.isError=!1,this.systemReminders=[],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["McpSuccess|1 content #0*|2 is_error 8|3 structured_content #1|4 system_reminders #2*",d7,wM,i8]}};s6=class s6 extends c{constructor(Z){super();this.reason="",this.isReadonly=!1,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["McpRejected|1 reason 9|2 is_readonly 8"]}};t6=class t6 extends c{constructor(Z){super();this.error="",this.isReadonly=!1,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["McpPermissionDenied|1 error 9|2 is_readonly 8"]}};o6=class o6 extends c{constructor(Z){super();C.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 C.util.equals(o6,Z,$)}static $(){return["ListMcpResourcesExecArgs|1 server 9?"]}};e6=class e6 extends c{constructor(Z){super();this.result={case:void 0},C.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 C.util.equals(e6,Z,$)}static $(){return["ListMcpResourcesExecResult|1 success #0 result|2 error #1 result|3 rejected #2 result",u7,l7,p7]}};c7=class c7 extends c{constructor(Z){super();this.uri="",this.server="",this.annotations={},C.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 C.util.equals(c7,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"]}};u7=class u7 extends c{constructor(Z){super();this.resources=[],C.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 C.util.equals(u7,Z,$)}static $(){return["ListMcpResourcesSuccess|1 resources #0*",c7]}};l7=class l7 extends c{constructor(Z){super();this.error="",C.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 C.util.equals(l7,Z,$)}static $(){return["ListMcpResourcesError|1 error 9"]}};p7=class p7 extends c{constructor(Z){super();this.reason="",C.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 C.util.equals(p7,Z,$)}static $(){return["ListMcpResourcesRejected|1 reason 9"]}};ZZ=class ZZ extends c{constructor(Z){super();this.server="",this.uri="",this.toolCallId="",C.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 C.util.equals(ZZ,Z,$)}static $(){return["ReadMcpResourceExecArgs|1 server 9|2 uri 9|3 download_path 9?|4 tool_call_id 9|5 smart_mode_approval #0?",l0]}};$Z=class $Z extends c{constructor(Z){super();this.result={case:void 0},C.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 C.util.equals($Z,Z,$)}static $(){return["ReadMcpResourceExecResult|1 success #0 result|2 error #1 result|3 rejected #2 result|4 not_found #3 result",i7,n7,a7,r7]}};i7=class i7 extends c{constructor(Z){super();this.uri="",this.content={case:void 0},this.annotations={},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["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?",q0]}};n7=class n7 extends c{constructor(Z){super();this.uri="",this.error="",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["ReadMcpResourceError|1 uri 9|2 error 9"]}};a7=class a7 extends c{constructor(Z){super();this.uri="",this.reason="",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["ReadMcpResourceRejected|1 uri 9|2 reason 9"]}};r7=class r7 extends c{constructor(Z){super();this.uri="",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["ReadMcpResourceNotFound|1 uri 9"]}}});import{Message as mp,proto3 as YZ}from"@bufbuild/protobuf";var PM="agent.v1.",BH,s7,t7,JZ;var YB=I(()=>{AQ();P();BH=class BH extends B{static get runtime(){return N(this,"runtime",YZ)}static $p(){return PM}};s7=class s7 extends BH{constructor(Z){super();this.error="",this.readToolDefReminder="",this.systemReminders=[],YZ.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 YZ.util.equals(s7,Z,$)}static $(){return["McpToolError|1 error 9|2 read_tool_def_reminder 9|3 system_reminders #0*",i8]}};t7=class t7 extends BH{constructor(Z){super();this.result={case:void 0},YZ.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 YZ.util.equals(t7,Z,$)}static $(){return["McpToolResult|1 success #0 result|2 error #1 result|3 rejected #2 result|4 permission_denied #3 result",r6,s7,s6,t6]}};JZ=class JZ extends BH{constructor(Z){super();YZ.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 YZ.util.equals(JZ,Z,$)}static $(){return["McpToolCall|1 args #0|2 result #1|3 description 9?",a6,t7]}}});import{Message as bp,proto3 as N0}from"@bufbuild/protobuf";var EM="aiserver.v1.",n8,o7,XZ,zZ,KZ,e7,Z5,$5;var XB=I(()=>{P();n8=class n8 extends B{static get runtime(){return N(this,"runtime",N0)}static $p(){return EM}};o7=class o7 extends n8{constructor(Z){super();this.line=0,this.column=0,N0.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 N0.util.equals(o7,Z,$)}static $(){return["CursorPosition|1 line 5|2 column 5"]}};XZ=class XZ extends n8{constructor(Z){super();N0.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 N0.util.equals(XZ,Z,$)}static $(){return["CursorRange|1 start_position #0|2 end_position #0",o7]}};zZ=class zZ extends n8{constructor(Z){super();this.text="",this.lineNumber=0,this.isSignature=!1,N0.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 N0.util.equals(zZ,Z,$)}static $(){return["DetailedLine|1 text 9|2 line_number 2|3 is_signature 8"]}};KZ=class KZ extends n8{constructor(Z){super();this.relativeWorkspacePath="",this.contents="",this.detailedLines=[],N0.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 N0.util.equals(KZ,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",XZ,e7,zZ,$5]}};e7=class e7 extends n8{constructor(Z){super();this.ranges=[],N0.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 N0.util.equals(e7,Z,$)}static $(){return["CodeBlock.Signatures|1 ranges #0*",XZ]}};Z5=class Z5 extends n8{constructor(Z){super();this.commit="",this.author="",this.date="",this.message="",N0.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 N0.util.equals(Z5,Z,$)}static $(){return["GitCommit|1 commit 9|2 author 9|3 date 9|4 message 9"]}};$5=class $5 extends n8{constructor(Z){super();this.commits=[],N0.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 N0.util.equals($5,Z,$)}static $(){return["FileGit|1 commits #0*",Z5]}}});import{Message as ap,proto3 as vQ,protoInt64 as rp}from"@bufbuild/protobuf";var fM="aiserver.v1.",zB,HZ;var KB=I(()=>{XB();P();zB=class zB extends B{static get runtime(){return N(this,"runtime",vQ)}static $p(){return fM}};HZ=class HZ extends zB{constructor(Z){super();this.score=0,vQ.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 vQ.util.equals(HZ,Z,$)}static $(){return["CodeResult|1 code_block #0|2 score 2",KZ]}}});import{Message as Zi,proto3 as n0}from"@bufbuild/protobuf";var VM="agent.v1.",K5,QZ,J5,Y5,X5,z5;var HB=I(()=>{KB();P();K5=class K5 extends B{static get runtime(){return N(this,"runtime",n0)}static $p(){return VM}};QZ=class QZ extends K5{constructor(Z){super();n0.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 n0.util.equals(QZ,Z,$)}static $(){return["SemSearchToolCall|1 args #0|2 result #1",J5,Y5]}};J5=class J5 extends K5{constructor(Z){super();this.query="",this.targetDirectories=[],this.explanation="",n0.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 n0.util.equals(J5,Z,$)}static $(){return["SemSearchToolArgs|1 query 9|2 target_directories 9*|3 explanation 9"]}};Y5=class Y5 extends K5{constructor(Z){super();this.result={case:void 0},n0.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 n0.util.equals(Y5,Z,$)}static $(){return["SemSearchToolResult|1 success #0 result|2 error #1 result",X5,z5]}};X5=class X5 extends K5{constructor(Z){super();this.results="",this.codeResults=[],n0.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 n0.util.equals(X5,Z,$)}static $(){return["SemSearchToolSuccess|1 results 9|2 code_results #0*",HZ]}};z5=class z5 extends K5{constructor(Z){super();this.errorMessage="",n0.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 n0.util.equals(z5,Z,$)}static $(){return["SemSearchToolError|1 error_message 9"]}}});import{Message as zi,proto3 as B0}from"@bufbuild/protobuf";var xM="agent.v1.",a8,qZ,H5,Q5,WZ,q5,W5,NZ;var QB=I(()=>{NH();P();a8=class a8 extends B{static get runtime(){return N(this,"runtime",B0)}static $p(){return xM}};qZ=class qZ extends a8{constructor(Z){super();B0.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 B0.util.equals(qZ,Z,$)}static $(){return["CreatePlanToolCall|1 args #0|2 result #1",Q5,WZ]}};H5=class H5 extends a8{constructor(Z){super();this.name="",this.todos=[],B0.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 B0.util.equals(H5,Z,$)}static $(){return["Phase|1 name 9|2 todos #0*",W0]}};Q5=class Q5 extends a8{constructor(Z){super();this.plan="",this.todos=[],this.overview="",this.name="",this.isProject=!1,this.phases=[],B0.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 B0.util.equals(Q5,Z,$)}static $(){return["CreatePlanArgs|1 plan 9|2 todos #0*|3 overview 9|4 name 9|5 is_project 8|6 phases #1*",W0,H5]}};WZ=class WZ extends a8{constructor(Z){super();this.result={case:void 0},this.planUri="",B0.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 B0.util.equals(WZ,Z,$)}static $(){return["CreatePlanResult|1 success #0 result|2 error #1 result|3 plan_uri 9",q5,W5]}};q5=class q5 extends a8{constructor(Z){super();B0.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 B0.util.equals(q5,Z,$)}static $(){return["CreatePlanSuccess"]}};W5=class W5 extends a8{constructor(Z){super();this.error="",B0.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 B0.util.equals(W5,Z,$)}static $(){return["CreatePlanError|1 error 9"]}};NZ=class NZ extends a8{constructor(Z){super();B0.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 B0.util.equals(NZ,Z,$)}static $(){return["CreatePlanRequestResponse|1 result #0",WZ]}}});import{Message as Wi,proto3 as l}from"@bufbuild/protobuf";var MM="agent.v1.",a0,N5,B5,F5,G5,U5,L5,BZ,FZ,D5,I5;var qB=I(()=>{P();a0=class a0 extends B{static get runtime(){return N(this,"runtime",l)}static $p(){return MM}};N5=class N5 extends a0{constructor(Z){super();this.searchTerm="",this.toolCallId="",l.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 l.util.equals(N5,Z,$)}static $(){return["WebSearchArgs|1 search_term 9|2 tool_call_id 9"]}};B5=class B5 extends a0{constructor(Z){super();this.result={case:void 0},l.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 l.util.equals(B5,Z,$)}static $(){return["WebSearchResult|1 success #0 result|2 error #1 result|3 rejected #2 result",F5,G5,U5]}};F5=class F5 extends a0{constructor(Z){super();this.references=[],l.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 l.util.equals(F5,Z,$)}static $(){return["WebSearchSuccess|1 references #0*",L5]}};G5=class G5 extends a0{constructor(Z){super();this.error="",l.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 l.util.equals(G5,Z,$)}static $(){return["WebSearchError|1 error 9"]}};U5=class U5 extends a0{constructor(Z){super();this.reason="",l.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 l.util.equals(U5,Z,$)}static $(){return["WebSearchRejected|1 reason 9"]}};L5=class L5 extends a0{constructor(Z){super();this.title="",this.url="",this.chunk="",l.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 l.util.equals(L5,Z,$)}static $(){return["WebSearchReference|1 title 9|2 url 9|3 chunk 9"]}};BZ=class BZ extends a0{constructor(Z){super();l.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 l.util.equals(BZ,Z,$)}static $(){return["WebSearchToolCall|1 args #0|2 result #1",N5,B5]}};FZ=class FZ extends a0{constructor(Z){super();this.result={case:void 0},l.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 l.util.equals(FZ,Z,$)}static $(){return["WebSearchRequestResponse|1 approved #0 result|2 rejected #1 result",D5,I5]}};D5=class D5 extends a0{constructor(Z){super();l.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 l.util.equals(D5,Z,$)}static $(){return["WebSearchRequestResponse.Approved"]}};I5=class I5 extends a0{constructor(Z){super();this.reason="",l.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 l.util.equals(I5,Z,$)}static $(){return["WebSearchRequestResponse.Rejected|1 reason 9"]}}});import{Message as Gi,proto3 as TK}from"@bufbuild/protobuf";var CM="agent.v1.",TQ,GZ,UZ;var WB=I(()=>{AQ();P();TQ=class TQ extends B{static get runtime(){return N(this,"runtime",TK)}static $p(){return CM}};GZ=class GZ extends TQ{constructor(Z){super();TK.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 TK.util.equals(GZ,Z,$)}static $(){return["ListMcpResourcesToolCall|1 args #0|2 result #1",o6,e6]}};UZ=class UZ extends TQ{constructor(Z){super();TK.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 TK.util.equals(UZ,Z,$)}static $(){return["ReadMcpResourceToolCall|1 args #0|2 result #1",ZZ,$Z]}}});import{Message as wi,proto3 as x0}from"@bufbuild/protobuf";var BB="agent.v1.",IZ,LZ,w5,O5,k5,DZ,NB,P5;var FB=I(()=>{P();IZ=class IZ extends B{static get runtime(){return N(this,"runtime",x0)}static $p(){return BB}};LZ=class LZ extends IZ{constructor(Z){super();x0.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 x0.util.equals(LZ,Z,$)}static $(){return["ApplyAgentDiffToolCall|1 args #0|2 result #1",w5,O5]}};w5=class w5 extends IZ{constructor(Z){super();this.agentId="",x0.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 x0.util.equals(w5,Z,$)}static $(){return["ApplyAgentDiffArgs|1 agent_id 9"]}};O5=class O5 extends IZ{constructor(Z){super();this.result={case:void 0},x0.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 x0.util.equals(O5,Z,$)}static $(){return["ApplyAgentDiffResult|1 success #0 result|2 error #1 result",k5,P5]}};k5=class k5 extends IZ{constructor(Z){super();this.appliedChanges=[],x0.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 x0.util.equals(k5,Z,$)}static $(){return["ApplyAgentDiffSuccess|1 applied_changes #0*",DZ]}};DZ=class DZ extends IZ{constructor(Z){super();this.path="",this.changeType=NB.UNSPECIFIED,x0.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 x0.util.equals(DZ,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?",NB]}};NB=L(x0,BB,"AppliedAgentChange.ChangeType",[[0,"UNSPECIFIED"],[1,"CREATED"],[2,"MODIFIED"],[3,"DELETED"]],1);P5=class P5 extends IZ{constructor(Z){super();this.error="",this.appliedChanges=[],x0.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 x0.util.equals(P5,Z,$)}static $(){return["ApplyAgentDiffError|1 error 9|2 applied_changes #0*",DZ]}}});import{Message as Ei,proto3 as p}from"@bufbuild/protobuf";var hM="agent.v1.",r0,wZ,OZ,E5,f5,V5,r8,x5,M5,C5,h5;var GB=I(()=>{P();r0=class r0 extends B{static get runtime(){return N(this,"runtime",p)}static $p(){return hM}};wZ=class wZ extends r0{constructor(Z){super();p.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 p.util.equals(wZ,Z,$)}static $(){return["AskQuestionToolCall|1 args #0|2 result #1",OZ,r8]}};OZ=class OZ extends r0{constructor(Z){super();this.title="",this.questions=[],this.runAsync=!1,this.asyncOriginalToolCallId="",p.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 p.util.equals(OZ,Z,$)}static $(){return["AskQuestionArgs|1 title 9|2 questions #0*|5 run_async 8|6 async_original_tool_call_id 9",E5]}};E5=class E5 extends r0{constructor(Z){super();this.id="",this.prompt="",this.options=[],this.allowMultiple=!1,p.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 p.util.equals(E5,Z,$)}static $(){return["AskQuestionArgs.Question|1 id 9|2 prompt 9|3 options #0*|4 allow_multiple 8",f5]}};f5=class f5 extends r0{constructor(Z){super();this.id="",this.label="",p.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 p.util.equals(f5,Z,$)}static $(){return["AskQuestionArgs.Option|1 id 9|2 label 9"]}};V5=class V5 extends r0{constructor(Z){super();this.interactionId="",p.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 p.util.equals(V5,Z,$)}static $(){return["AskQuestionAsync|1 interaction_id 9"]}};r8=class r8 extends r0{constructor(Z){super();this.result={case:void 0},p.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 p.util.equals(r8,Z,$)}static $(){return["AskQuestionResult|1 success #0 result|2 error #1 result|3 rejected #2 result|4 async #3 result",x5,C5,h5,V5]}};x5=class x5 extends r0{constructor(Z){super();this.answers=[],p.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 p.util.equals(x5,Z,$)}static $(){return["AskQuestionSuccess|1 answers #0*",M5]}};M5=class M5 extends r0{constructor(Z){super();this.questionId="",this.selectedOptionIds=[],this.freeformText="",p.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 p.util.equals(M5,Z,$)}static $(){return["AskQuestionSuccess.Answer|1 question_id 9|2 selected_option_ids 9*|3 freeform_text 9"]}};C5=class C5 extends r0{constructor(Z){super();this.errorMessage="",p.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 p.util.equals(C5,Z,$)}static $(){return["AskQuestionError|1 error_message 9"]}};h5=class h5 extends r0{constructor(Z){super();this.reason="",p.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 p.util.equals(h5,Z,$)}static $(){return["AskQuestionRejected|1 reason 9"]}}});import{Message as Mi,proto3 as v8}from"@bufbuild/protobuf";var AM="agent.v1.",RK,kZ,PZ,A5,v5;var UB=I(()=>{P();RK=class RK extends B{static get runtime(){return N(this,"runtime",v8)}static $p(){return AM}};kZ=class kZ extends RK{constructor(Z){super();this.url="",this.toolCallId="",v8.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 v8.util.equals(kZ,Z,$)}static $(){return["FetchArgs|1 url 9|2 tool_call_id 9"]}};PZ=class PZ extends RK{constructor(Z){super();this.result={case:void 0},v8.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 v8.util.equals(PZ,Z,$)}static $(){return["FetchResult|1 success #0 result|2 error #1 result",A5,v5]}};A5=class A5 extends RK{constructor(Z){super();this.url="",this.content="",this.statusCode=0,this.contentType="",v8.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 v8.util.equals(A5,Z,$)}static $(){return["FetchSuccess|1 url 9|2 content 9|3 status_code 5|4 content_type 9"]}};v5=class v5 extends RK{constructor(Z){super();this.url="",this.error="",v8.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 v8.util.equals(v5,Z,$)}static $(){return["FetchError|1 url 9|2 error 9"]}}});import{Message as vi,proto3 as RQ}from"@bufbuild/protobuf";var vM="agent.v1.",LB,EZ;var DB=I(()=>{UB();P();LB=class LB extends B{static get runtime(){return N(this,"runtime",RQ)}static $p(){return vM}};EZ=class EZ extends LB{constructor(Z){super();RQ.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 RQ.util.equals(EZ,Z,$)}static $(){return["FetchToolCall|1 args #0|2 result #1",kZ,PZ]}}});import{Message as ji,proto3 as r}from"@bufbuild/protobuf";var TM="agent.v1.",O8,T5,R5,y5,m5,j5,fZ,VZ,_5,S5;var IB=I(()=>{P();O8=class O8 extends B{static get runtime(){return N(this,"runtime",r)}static $p(){return TM}};T5=class T5 extends O8{constructor(Z){super();this.targetModeId="",this.toolCallId="",r.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 r.util.equals(T5,Z,$)}static $(){return["SwitchModeArgs|1 target_mode_id 9|2 explanation 9?|3 tool_call_id 9"]}};R5=class R5 extends O8{constructor(Z){super();this.result={case:void 0},r.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 r.util.equals(R5,Z,$)}static $(){return["SwitchModeResult|1 success #0 result|2 error #1 result|3 rejected #2 result",y5,m5,j5]}};y5=class y5 extends O8{constructor(Z){super();this.fromModeId="",this.toModeId="",r.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 r.util.equals(y5,Z,$)}static $(){return["SwitchModeSuccess|1 from_mode_id 9|2 to_mode_id 9"]}};m5=class m5 extends O8{constructor(Z){super();this.error="",r.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 r.util.equals(m5,Z,$)}static $(){return["SwitchModeError|1 error 9"]}};j5=class j5 extends O8{constructor(Z){super();this.reason="",r.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 r.util.equals(j5,Z,$)}static $(){return["SwitchModeRejected|1 reason 9"]}};fZ=class fZ extends O8{constructor(Z){super();r.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 r.util.equals(fZ,Z,$)}static $(){return["SwitchModeToolCall|1 args #0|2 result #1",T5,R5]}};VZ=class VZ extends O8{constructor(Z){super();this.result={case:void 0},r.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 r.util.equals(VZ,Z,$)}static $(){return["SwitchModeRequestResponse|1 approved #0 result|2 rejected #1 result",_5,S5]}};_5=class _5 extends O8{constructor(Z){super();r.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 r.util.equals(_5,Z,$)}static $(){return["SwitchModeRequestResponse.Approved"]}};S5=class S5 extends O8{constructor(Z){super();this.reason="",r.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 r.util.equals(S5,Z,$)}static $(){return["SwitchModeRequestResponse.Rejected|1 reason 9"]}}});import{Message as bi,proto3 as J0}from"@bufbuild/protobuf";var RM="agent.v1.",T8,g5,b5,d5,c5,xZ,MZ,u5,l5;var wB=I(()=>{P();T8=class T8 extends B{static get runtime(){return N(this,"runtime",J0)}static $p(){return RM}};g5=class g5 extends T8{constructor(Z){super();this.description="",this.referenceImagePaths=[],J0.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 J0.util.equals(g5,Z,$)}static $(){return["GenerateImageArgs|1 description 9|2 file_path 9?|5 reference_image_paths 9*|6 aspect_ratio 9?"]}};b5=class b5 extends T8{constructor(Z){super();this.result={case:void 0},J0.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 J0.util.equals(b5,Z,$)}static $(){return["GenerateImageResult|1 success #0 result|2 error #1 result",d5,c5]}};d5=class d5 extends T8{constructor(Z){super();this.filePath="",this.imageData="",J0.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 J0.util.equals(d5,Z,$)}static $(){return["GenerateImageSuccess|1 file_path 9|2 image_data 9"]}};c5=class c5 extends T8{constructor(Z){super();this.error="",J0.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 J0.util.equals(c5,Z,$)}static $(){return["GenerateImageError|1 error 9"]}};xZ=class xZ extends T8{constructor(Z){super();J0.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 J0.util.equals(xZ,Z,$)}static $(){return["GenerateImageToolCall|1 args #0|2 result #1",g5,b5]}};MZ=class MZ extends T8{constructor(Z){super();this.result={case:void 0},J0.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 J0.util.equals(MZ,Z,$)}static $(){return["GenerateImageRequestResponse|1 approved #0 result|2 rejected #1 result",u5,l5]}};u5=class u5 extends T8{constructor(Z){super();this.description="",J0.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 J0.util.equals(u5,Z,$)}static $(){return["GenerateImageRequestResponse.Approved|1 description 9"]}};l5=class l5 extends T8{constructor(Z){super();this.reason="",J0.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 J0.util.equals(l5,Z,$)}static $(){return["GenerateImageRequestResponse.Rejected|1 reason 9"]}}});import{Message as li,proto3 as F0,protoInt64 as yM}from"@bufbuild/protobuf";var yQ="agent.v1.",AZ,OB,mM,CZ,hZ,p5,i5,n5,a5;var kB=I(()=>{P();AZ=class AZ extends B{static get runtime(){return N(this,"runtime",F0)}static $p(){return yQ}};OB=L(F0,yQ,"RecordingMode",[[0,"UNSPECIFIED"],[1,"START_RECORDING"],[2,"SAVE_RECORDING"],[3,"DISCARD_RECORDING"]],1),mM=L(F0,yQ,"RequestedFilePathRejectedReason",[[0,"UNSPECIFIED"],[1,"SLASHES_NOT_ALLOWED"]],1);CZ=class CZ extends AZ{constructor(Z){super();this.mode=OB.UNSPECIFIED,this.toolCallId="",F0.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 F0.util.equals(CZ,Z,$)}static $(){return["RecordScreenArgs|1 mode #0|2 tool_call_id 9|3 save_as_filename 9?",OB]}};hZ=class hZ extends AZ{constructor(Z){super();this.result={case:void 0},F0.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 F0.util.equals(hZ,Z,$)}static $(){return["RecordScreenResult|1 start_success #0 result|2 save_success #1 result|3 discard_success #2 result|4 failure #3 result",p5,i5,n5,a5]}};p5=class p5 extends AZ{constructor(Z){super();this.wasPriorRecordingCancelled=!1,this.wasSaveAsFilenameIgnored=!1,F0.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 F0.util.equals(p5,Z,$)}static $(){return["RecordScreenStartSuccess|1 was_prior_recording_cancelled 8|2 was_save_as_filename_ignored 8"]}};i5=class i5 extends AZ{constructor(Z){super();this.path="",this.recordingDurationMs=yM.zero,F0.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 F0.util.equals(i5,Z,$)}static $(){return["RecordScreenSaveSuccess|1 path 9|2 recording_duration_ms 3|3 requested_file_path_rejected_reason #0?",mM]}};n5=class n5 extends AZ{constructor(Z){super();F0.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 F0.util.equals(n5,Z,$)}static $(){return["RecordScreenDiscardSuccess"]}};a5=class a5 extends AZ{constructor(Z){super();this.error="",F0.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 F0.util.equals(a5,Z,$)}static $(){return["RecordScreenFailure|1 error 9"]}}});import{Message as ai,proto3 as mQ}from"@bufbuild/protobuf";var jM="agent.v1.",PB,vZ;var EB=I(()=>{kB();P();PB=class PB extends B{static get runtime(){return N(this,"runtime",mQ)}static $p(){return jM}};vZ=class vZ extends PB{constructor(Z){super();mQ.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 mQ.util.equals(vZ,Z,$)}static $(){return["RecordScreenToolCall|1 args #0|2 result #1",CZ,hZ]}}});import{Message as ei,proto3 as v}from"@bufbuild/protobuf";var FH="agent.v1.",s,s8,fB,VB,k8,r5,s5,t5,o5,e5,Z1,$1,J1,Y1,X1,z1,K1,H1,Q1,q1,W1,TZ;var xB=I(()=>{P();s=class s extends B{static get runtime(){return N(this,"runtime",v)}static $p(){return FH}};s8=L(v,FH,"MouseButton",[[0,"UNSPECIFIED"],[1,"LEFT"],[2,"RIGHT"],[3,"MIDDLE"],[4,"BACK"],[5,"FORWARD"]],1),fB=L(v,FH,"ScrollDirection",[[0,"UNSPECIFIED"],[1,"UP"],[2,"DOWN"],[3,"LEFT"],[4,"RIGHT"]],1),VB=L(v,FH,"KeyStroke",[[0,"UNSPECIFIED"],[1,"TAP"],[2,"DOWN"],[3,"UP"]],1);k8=class k8 extends s{constructor(Z){super();this.x=0,this.y=0,v.util.initPartial(Z,this)}static fromBinary(Z,$){return new k8().fromBinary(Z,$)}static fromJson(Z,$){return new k8().fromJson(Z,$)}static fromJsonString(Z,$){return new k8().fromJsonString(Z,$)}static equals(Z,$){return v.util.equals(k8,Z,$)}static $(){return["Coordinate|1 x 5|2 y 5"]}};r5=class r5 extends s{constructor(Z){super();this.toolCallId="",this.actions=[],v.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 v.util.equals(r5,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?",s5]}};s5=class s5 extends s{constructor(Z){super();this.action={case:void 0},v.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 v.util.equals(s5,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",t5,o5,e5,Z1,$1,J1,Y1,X1,z1,K1,H1]}};t5=class t5 extends s{constructor(Z){super();v.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 v.util.equals(t5,Z,$)}static $(){return["MouseMoveAction|1 coordinate #0",k8]}};o5=class o5 extends s{constructor(Z){super();this.button=s8.UNSPECIFIED,this.count=0,v.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 v.util.equals(o5,Z,$)}static $(){return["ClickAction|1 coordinate #0?|2 button #1|3 count 5|4 modifier_keys 9?",k8,s8]}};e5=class e5 extends s{constructor(Z){super();this.button=s8.UNSPECIFIED,v.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 v.util.equals(e5,Z,$)}static $(){return["MouseDownAction|1 button #0",s8]}};Z1=class Z1 extends s{constructor(Z){super();this.button=s8.UNSPECIFIED,v.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 v.util.equals(Z1,Z,$)}static $(){return["MouseUpAction|1 button #0",s8]}};$1=class $1 extends s{constructor(Z){super();this.path=[],this.button=s8.UNSPECIFIED,v.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 v.util.equals($1,Z,$)}static $(){return["DragAction|1 path #0*|2 button #1|3 modifier_keys 9?",k8,s8]}};J1=class J1 extends s{constructor(Z){super();this.direction=fB.UNSPECIFIED,this.amount=0,v.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 v.util.equals(J1,Z,$)}static $(){return["ScrollAction|1 coordinate #0?|2 direction #1|3 amount 5|4 modifier_keys 9?",k8,fB]}};Y1=class Y1 extends s{constructor(Z){super();this.text="",v.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 v.util.equals(Y1,Z,$)}static $(){return["TypeAction|1 text 9"]}};X1=class X1 extends s{constructor(Z){super();this.key="",this.stroke=VB.UNSPECIFIED,v.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 v.util.equals(X1,Z,$)}static $(){return["KeyAction|1 key 9|2 hold_duration_ms 5?|3 stroke #0",VB]}};z1=class z1 extends s{constructor(Z){super();this.durationMs=0,v.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 v.util.equals(z1,Z,$)}static $(){return["WaitAction|1 duration_ms 5"]}};K1=class K1 extends s{constructor(Z){super();v.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 v.util.equals(K1,Z,$)}static $(){return["ScreenshotAction"]}};H1=class H1 extends s{constructor(Z){super();v.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 v.util.equals(H1,Z,$)}static $(){return["CursorPositionAction"]}};Q1=class Q1 extends s{constructor(Z){super();this.result={case:void 0},v.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 v.util.equals(Q1,Z,$)}static $(){return["ComputerUseResult|1 success #0 result|2 error #1 result",q1,W1]}};q1=class q1 extends s{constructor(Z){super();this.actionCount=0,this.durationMs=0,v.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 v.util.equals(q1,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?",k8]}};W1=class W1 extends s{constructor(Z){super();this.error="",this.actionCount=0,this.durationMs=0,v.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 v.util.equals(W1,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?"]}};TZ=class TZ extends s{constructor(Z){super();v.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 v.util.equals(TZ,Z,$)}static $(){return["ComputerUseToolCall|1 args #0|2 result #1",r5,Q1]}}});import{Message as Yn,proto3 as R8}from"@bufbuild/protobuf";var _M="agent.v1.",yK,RZ,yZ,N1,B1;var MB=I(()=>{P();yK=class yK extends B{static get runtime(){return N(this,"runtime",R8)}static $p(){return _M}};RZ=class RZ extends yK{constructor(Z){super();this.shellId=0,this.chars="",R8.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 R8.util.equals(RZ,Z,$)}static $(){return["WriteShellStdinArgs|1 shell_id 13|2 chars 9"]}};yZ=class yZ extends yK{constructor(Z){super();this.result={case:void 0},R8.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 R8.util.equals(yZ,Z,$)}static $(){return["WriteShellStdinResult|1 success #0 result|2 error #1 result",N1,B1]}};N1=class N1 extends yK{constructor(Z){super();this.shellId=0,this.terminalFileLengthBeforeInputWritten=0,R8.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 R8.util.equals(N1,Z,$)}static $(){return["WriteShellStdinSuccess|1 shell_id 13|2 terminal_file_length_before_input_written 13"]}};B1=class B1 extends yK{constructor(Z){super();this.error="",R8.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 R8.util.equals(B1,Z,$)}static $(){return["WriteShellStdinError|1 error 9"]}}});import{Message as Hn,proto3 as jQ}from"@bufbuild/protobuf";var SM="agent.v1.",CB,mZ;var hB=I(()=>{MB();P();CB=class CB extends B{static get runtime(){return N(this,"runtime",jQ)}static $p(){return SM}};mZ=class mZ extends CB{constructor(Z){super();jQ.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 jQ.util.equals(mZ,Z,$)}static $(){return["WriteShellStdinToolCall|1 args #0|2 result #1",RZ,yZ]}}});import{Message as Bn,proto3 as s0}from"@bufbuild/protobuf";var gM="agent.v1.",D1,F1,G1,U1,L1,jZ;var AB=I(()=>{P();D1=class D1 extends B{static get runtime(){return N(this,"runtime",s0)}static $p(){return gM}};F1=class F1 extends D1{constructor(Z){super();this.unexpectedActionOutcomes="",this.relevantInstructions="",this.scenarioAnalysis="",this.criticalSynthesis="",this.nextSteps="",this.toolCallId="",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["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"]}};G1=class G1 extends D1{constructor(Z){super();this.result={case:void 0},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["ReflectResult|1 success #0 result|2 error #1 result",U1,L1]}};U1=class U1 extends D1{constructor(Z){super();s0.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 s0.util.equals(U1,Z,$)}static $(){return["ReflectSuccess"]}};L1=class L1 extends D1{constructor(Z){super();this.error="",s0.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 s0.util.equals(L1,Z,$)}static $(){return["ReflectError|1 error 9"]}};jZ=class jZ extends D1{constructor(Z){super();s0.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 s0.util.equals(jZ,Z,$)}static $(){return["ReflectToolCall|1 args #0|2 result #1",F1,G1]}}});import{Message as Ln,proto3 as y8}from"@bufbuild/protobuf";var bM="agent.v1.",mK,_Z,t8,I1,SZ;var vB=I(()=>{P();mK=class mK extends B{static get runtime(){return N(this,"runtime",y8)}static $p(){return bM}};_Z=class _Z extends mK{constructor(Z){super();this.installCommand="",this.startCommand="",this.dockerfileContents="",y8.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 y8.util.equals(_Z,Z,$)}static $(){return["SetupVmEnvironmentArgs|2 install_command 9|3 start_command 9|4 dockerfile_contents 9"]}};t8=class t8 extends mK{constructor(Z){super();this.result={case:void 0},y8.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 y8.util.equals(t8,Z,$)}static $(){return["SetupVmEnvironmentResult|1 success #0 result",I1]}};I1=class I1 extends mK{constructor(Z){super();y8.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 y8.util.equals(I1,Z,$)}static $(){return["SetupVmEnvironmentSuccess"]}};SZ=class SZ extends mK{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["SetupVmEnvironmentToolCall|1 args #0|2 result #1",_Z,t8]}}});import{Message as On,proto3 as t0}from"@bufbuild/protobuf";var dM="agent.v1.",E1,w1,O1,k1,P1,gZ;var TB=I(()=>{P();E1=class E1 extends B{static get runtime(){return N(this,"runtime",t0)}static $p(){return dM}};w1=class w1 extends E1{constructor(Z){super();this.toolCallId="",t0.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 t0.util.equals(w1,Z,$)}static $(){return["StartGrindExecutionArgs|1 explanation 9?|2 tool_call_id 9"]}};O1=class O1 extends E1{constructor(Z){super();this.result={case:void 0},t0.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 t0.util.equals(O1,Z,$)}static $(){return["StartGrindExecutionResult|1 success #0 result|2 error #1 result",k1,P1]}};k1=class k1 extends E1{constructor(Z){super();t0.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 t0.util.equals(k1,Z,$)}static $(){return["StartGrindExecutionSuccess"]}};P1=class P1 extends E1{constructor(Z){super();this.error="",t0.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 t0.util.equals(P1,Z,$)}static $(){return["StartGrindExecutionError|1 error 9"]}};gZ=class gZ extends E1{constructor(Z){super();t0.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 t0.util.equals(gZ,Z,$)}static $(){return["StartGrindExecutionToolCall|1 args #0|2 result #1",w1,O1]}}});import{Message as fn,proto3 as o0}from"@bufbuild/protobuf";var cM="agent.v1.",C1,f1,V1,x1,M1,bZ;var RB=I(()=>{P();C1=class C1 extends B{static get runtime(){return N(this,"runtime",o0)}static $p(){return cM}};f1=class f1 extends C1{constructor(Z){super();this.toolCallId="",o0.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 o0.util.equals(f1,Z,$)}static $(){return["StartGrindPlanningArgs|1 explanation 9?|2 tool_call_id 9"]}};V1=class V1 extends C1{constructor(Z){super();this.result={case:void 0},o0.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 o0.util.equals(V1,Z,$)}static $(){return["StartGrindPlanningResult|1 success #0 result|2 error #1 result",x1,M1]}};x1=class x1 extends C1{constructor(Z){super();o0.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 o0.util.equals(x1,Z,$)}static $(){return["StartGrindPlanningSuccess"]}};M1=class M1 extends C1{constructor(Z){super();this.error="",o0.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 o0.util.equals(M1,Z,$)}static $(){return["StartGrindPlanningError|1 error 9"]}};bZ=class bZ extends C1{constructor(Z){super();o0.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 o0.util.equals(bZ,Z,$)}static $(){return["StartGrindPlanningToolCall|1 args #0|2 result #1",f1,V1]}}});import{Message as Cn,proto3 as t}from"@bufbuild/protobuf";var uM="agent.v1.",P8,h1,A1,v1,T1,R1,dZ,cZ,y1,m1;var yB=I(()=>{x6();P();P8=class P8 extends B{static get runtime(){return N(this,"runtime",t)}static $p(){return uM}};h1=class h1 extends P8{constructor(Z){super();this.url="",this.toolCallId="",t.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 t.util.equals(h1,Z,$)}static $(){return["WebFetchArgs|1 url 9|2 tool_call_id 9"]}};A1=class A1 extends P8{constructor(Z){super();this.result={case:void 0},t.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 t.util.equals(A1,Z,$)}static $(){return["WebFetchResult|1 success #0 result|2 error #1 result|3 rejected #2 result",v1,T1,R1]}};v1=class v1 extends P8{constructor(Z){super();this.url="",this.markdown="",t.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 t.util.equals(v1,Z,$)}static $(){return["WebFetchSuccess|1 url 9|2 markdown 9|3 output_location #0?",q0]}};T1=class T1 extends P8{constructor(Z){super();this.url="",this.error="",t.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 t.util.equals(T1,Z,$)}static $(){return["WebFetchError|1 url 9|2 error 9"]}};R1=class R1 extends P8{constructor(Z){super();this.reason="",t.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 t.util.equals(R1,Z,$)}static $(){return["WebFetchRejected|1 reason 9"]}};dZ=class dZ extends P8{constructor(Z){super();t.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 t.util.equals(dZ,Z,$)}static $(){return["WebFetchToolCall|1 args #0|2 result #1",h1,A1]}};cZ=class cZ extends P8{constructor(Z){super();this.result={case:void 0},t.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 t.util.equals(cZ,Z,$)}static $(){return["WebFetchRequestResponse|1 approved #0 result|2 rejected #1 result",y1,m1]}};y1=class y1 extends P8{constructor(Z){super();t.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 t.util.equals(y1,Z,$)}static $(){return["WebFetchRequestResponse.Approved"]}};m1=class m1 extends P8{constructor(Z){super();this.reason="",t.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 t.util.equals(m1,Z,$)}static $(){return["WebFetchRequestResponse.Rejected|1 reason 9"]}}});import{Message as Rn,proto3 as M0}from"@bufbuild/protobuf";var jB="agent.v1.",pZ,mB,uZ,j1,_1,S1,g1,lZ;var _B=I(()=>{P();pZ=class pZ extends B{static get runtime(){return N(this,"runtime",M0)}static $p(){return jB}};mB=L(M0,jB,"BugfixVerdict",[[0,"UNSPECIFIED"],[1,"FIXED"],[2,"FALSE_POSITIVE"],[3,"COULD_NOT_FIX"],[4,"RESOLVED_BY_OTHER_FIX"]],1);uZ=class uZ extends pZ{constructor(Z){super();this.bugId="",this.bugTitle="",this.verdict=mB.UNSPECIFIED,this.explanation="",M0.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 M0.util.equals(uZ,Z,$)}static $(){return["BugfixResultItem|1 bug_id 9|2 bug_title 9|3 verdict #0|4 explanation 9|5 severity 9?",mB]}};j1=class j1 extends pZ{constructor(Z){super();this.summary="",this.results=[],M0.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 M0.util.equals(j1,Z,$)}static $(){return["ReportBugfixResultsArgs|1 summary 9|2 results #0*",uZ]}};_1=class _1 extends pZ{constructor(Z){super();this.results=[],M0.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 M0.util.equals(_1,Z,$)}static $(){return["ReportBugfixResultsSuccess|1 results #0*",uZ]}};S1=class S1 extends pZ{constructor(Z){super();this.error="",M0.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 M0.util.equals(S1,Z,$)}static $(){return["ReportBugfixResultsError|1 error 9"]}};g1=class g1 extends pZ{constructor(Z){super();this.result={case:void 0},M0.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 M0.util.equals(g1,Z,$)}static $(){return["ReportBugfixResultsResult|1 success #0 result|2 error #1 result",_1,S1]}};lZ=class lZ extends pZ{constructor(Z){super();M0.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 M0.util.equals(lZ,Z,$)}static $(){return["ReportBugfixResultsToolCall|1 args #0|2 result #1",j1,g1]}}});import{Message as _n,proto3 as e0}from"@bufbuild/protobuf";var lM="agent.v1.",l1,b1,d1,c1,u1,iZ;var SB=I(()=>{x6();P();l1=class l1 extends B{static get runtime(){return N(this,"runtime",e0)}static $p(){return lM}};b1=class b1 extends l1{constructor(Z){super();this.filePaths=[],this.commitHashes=[],e0.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 e0.util.equals(b1,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?"]}};d1=class d1 extends l1{constructor(Z){super();this.result={case:void 0},e0.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 e0.util.equals(d1,Z,$)}static $(){return["AiAttributionResult|1 success #0 result|2 error #1 result",c1,u1]}};c1=class c1 extends l1{constructor(Z){super();this.attributionText="",e0.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 e0.util.equals(c1,Z,$)}static $(){return["AiAttributionSuccess|1 attribution_text 9|2 output_location #0?",q0]}};u1=class u1 extends l1{constructor(Z){super();this.error="",e0.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 e0.util.equals(u1,Z,$)}static $(){return["AiAttributionError|1 error 9"]}};iZ=class iZ extends l1{constructor(Z){super();e0.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 e0.util.equals(iZ,Z,$)}static $(){return["AiAttributionToolCall|1 args #0|2 result #1",b1,d1]}}});import{Message as cn,proto3 as y,protoInt64 as pM}from"@bufbuild/protobuf";var bB="agent.v1.",G0,gB,p1,i1,n1,a1,r1,s1,t1,o8,o1,e1,ZJ,$J,JJ,nZ;var dB=I(()=>{P();G0=class G0 extends B{static get runtime(){return N(this,"runtime",y)}static $p(){return bB}};gB=L(y,bB,"PullRequestStatus",[[0,"UNSPECIFIED"],[1,"OPEN"],[2,"CLOSED"]],1);p1=class p1 extends G0{constructor(Z){super();this.toolCallId="",this.action={case:void 0},y.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 y.util.equals(p1,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",i1,n1,a1,r1,s1,t1]}};i1=class i1 extends G0{constructor(Z){super();this.title="",this.body="",this.branchName="",this.addLabels=[],y.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 y.util.equals(i1,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?"]}};n1=class n1 extends G0{constructor(Z){super();this.addLabels=[],this.removeLabels=[],y.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 y.util.equals(n1,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?"]}};a1=class a1 extends G0{constructor(Z){super();this.body="",y.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 y.util.equals(a1,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?"]}};r1=class r1 extends G0{constructor(Z){super();this.commentId=pM.zero,y.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 y.util.equals(r1,Z,$)}static $(){return["ResolveCommentAction|1 pr_url 9?|2 branch_name 9?|3 comment_id 3|4 repo_url 9?|5 comment_reference 9?"]}};s1=class s1 extends G0{constructor(Z){super();y.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 y.util.equals(s1,Z,$)}static $(){return["GetCiStatusAction|1 pr_url 9?|2 branch_name 9?|3 repo_url 9?"]}};t1=class t1 extends G0{constructor(Z){super();this.status=gB.UNSPECIFIED,y.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 y.util.equals(t1,Z,$)}static $(){return["SetPrStatusAction|1 pr_url 9?|2 branch_name 9?|3 repo_url 9?|4 status #0",gB]}};o8=class o8 extends G0{constructor(Z){super();this.result={case:void 0},y.util.initPartial(Z,this)}static fromBinary(Z,$){return new o8().fromBinary(Z,$)}static fromJson(Z,$){return new o8().fromJson(Z,$)}static fromJsonString(Z,$){return new o8().fromJsonString(Z,$)}static equals(Z,$){return y.util.equals(o8,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",o1,e1,ZJ,$J,JJ]}};o1=class o1 extends G0{constructor(Z){super();this.prUrl="",this.prNumber=0,this.message="",y.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 y.util.equals(o1,Z,$)}static $(){return["PrManagementSuccess|1 pr_url 9|2 pr_number 5|3 message 9"]}};e1=class e1 extends G0{constructor(Z){super();this.error="",y.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 y.util.equals(e1,Z,$)}static $(){return["PrManagementError|1 error 9"]}};ZJ=class ZJ extends G0{constructor(Z){super();this.reason="",y.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 y.util.equals(ZJ,Z,$)}static $(){return["PrManagementRejected|1 reason 9"]}};$J=class $J extends G0{constructor(Z){super();this.message="",this.title="",this.body="",this.branchName="",y.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 y.util.equals($J,Z,$)}static $(){return["PrManagementRegistered|1 message 9|2 title 9|3 body 9|4 base_branch 9?|5 draft 8?|6 branch_name 9"]}};JJ=class JJ extends G0{constructor(Z){super();this.message="",this.discoveredPrUrl="",this.discoveredPrNumber=0,this.discoveredPrTitle="",this.branchName="",y.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 y.util.equals(JJ,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"]}};nZ=class nZ extends G0{constructor(Z){super();y.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 y.util.equals(nZ,Z,$)}static $(){return["PrManagementToolCall|1 args #0|2 result #1",p1,o8]}}});import{Message as nn,proto3 as o}from"@bufbuild/protobuf";var iM="agent.v1.",E8,YJ,XJ,zJ,KJ,HJ,aZ,rZ,QJ,qJ;var cB=I(()=>{P();E8=class E8 extends B{static get runtime(){return N(this,"runtime",o)}static $p(){return iM}};YJ=class YJ extends E8{constructor(Z){super();this.serverIdentifier="",this.toolCallId="",o.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 o.util.equals(YJ,Z,$)}static $(){return["McpAuthArgs|1 server_identifier 9|2 tool_call_id 9"]}};XJ=class XJ extends E8{constructor(Z){super();this.result={case:void 0},o.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 o.util.equals(XJ,Z,$)}static $(){return["McpAuthResult|1 success #0 result|2 error #1 result|3 rejected #2 result",zJ,KJ,HJ]}};zJ=class zJ extends E8{constructor(Z){super();this.serverIdentifier="",o.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 o.util.equals(zJ,Z,$)}static $(){return["McpAuthSuccess|1 server_identifier 9"]}};KJ=class KJ extends E8{constructor(Z){super();this.error="",o.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 o.util.equals(KJ,Z,$)}static $(){return["McpAuthError|1 error 9"]}};HJ=class HJ extends E8{constructor(Z){super();this.reason="",o.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 o.util.equals(HJ,Z,$)}static $(){return["McpAuthRejected|1 reason 9"]}};aZ=class aZ extends E8{constructor(Z){super();o.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 o.util.equals(aZ,Z,$)}static $(){return["McpAuthToolCall|1 args #0|2 result #1",YJ,XJ]}};rZ=class rZ extends E8{constructor(Z){super();this.result={case:void 0},o.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 o.util.equals(rZ,Z,$)}static $(){return["McpAuthRequestResponse|1 approved #0 result|2 rejected #1 result",QJ,qJ]}};QJ=class QJ extends E8{constructor(Z){super();o.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 o.util.equals(QJ,Z,$)}static $(){return["McpAuthRequestResponse.Approved"]}};qJ=class qJ extends E8{constructor(Z){super();this.reason="",o.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 o.util.equals(qJ,Z,$)}static $(){return["McpAuthRequestResponse.Rejected|1 reason 9"]}}});import{Message as tn,proto3 as U0,protoInt64 as GH}from"@bufbuild/protobuf";var nM="agent.v1.",e8,WJ,sZ,tZ,NJ,BJ,FJ,oZ;var uB=I(()=>{P();e8=class e8 extends B{static get runtime(){return N(this,"runtime",U0)}static $p(){return nM}};WJ=class WJ extends e8{constructor(Z){super();this.taskId="",U0.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 U0.util.equals(WJ,Z,$)}static $(){return["AwaitArgs|1 task_id 9|2 block_until_ms 13?|3 regex 9?"]}};sZ=class sZ extends e8{constructor(Z){super();this.taskId="",this.runtimeMs=GH.zero,this.outputFilePath="",this.outputLength=GH.zero,this.regexRequested=!1,U0.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 U0.util.equals(sZ,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?"]}};tZ=class tZ extends e8{constructor(Z){super();this.taskId="",this.runtimeMs=GH.zero,this.outputFilePath="",this.outputLength=GH.zero,this.regexRequested=!1,U0.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 U0.util.equals(tZ,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?"]}};NJ=class NJ extends e8{constructor(Z){super();this.error="",U0.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 U0.util.equals(NJ,Z,$)}static $(){return["AwaitError|1 error 9"]}};BJ=class BJ extends e8{constructor(Z){super();this.awaitResult={case:void 0},U0.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 U0.util.equals(BJ,Z,$)}static $(){return["AwaitSuccess|1 complete #0 await_result|2 still_running #1 await_result",sZ,tZ]}};FJ=class FJ extends e8{constructor(Z){super();this.result={case:void 0},U0.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 U0.util.equals(FJ,Z,$)}static $(){return["AwaitResult|1 complete #0 result|2 still_running #1 result|3 error #2 result|4 success #3 result",sZ,tZ,NJ,BJ]}};oZ=class oZ extends e8{constructor(Z){super();U0.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 U0.util.equals(oZ,Z,$)}static $(){return["AwaitToolCall|1 args #0|2 result #1",WJ,FJ]}}});import{Message as $a,proto3 as Z8}from"@bufbuild/protobuf";var aM="agent.v1.",IJ,GJ,UJ,LJ,DJ,eZ;var lB=I(()=>{P();IJ=class IJ extends B{static get runtime(){return N(this,"runtime",Z8)}static $p(){return aM}};GJ=class GJ extends IJ{constructor(Z){super();this.filePath="",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["BlameByFilePathArgs|1 file_path 9|2 start_line 5?|3 end_line 5?"]}};UJ=class UJ extends IJ{constructor(Z){super();this.content="",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["BlameByFilePathSuccess|1 content 9"]}};LJ=class LJ extends IJ{constructor(Z){super();this.errorMessage="",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["BlameByFilePathError|1 error_message 9"]}};DJ=class DJ extends IJ{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["BlameByFilePathResult|1 success #0 result|2 error #1 result",UJ,LJ]}};eZ=class eZ extends IJ{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["BlameByFilePathToolCall|1 args #0|2 result #1",GJ,DJ]}}});import{Message as za,proto3 as $8}from"@bufbuild/protobuf";var rM="agent.v1.",EJ,wJ,OJ,kJ,PJ,Z$;var pB=I(()=>{P();EJ=class EJ extends B{static get runtime(){return N(this,"runtime",$8)}static $p(){return rM}};wJ=class wJ extends EJ{constructor(Z){super();this.toolCallId="",$8.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 $8.util.equals(wJ,Z,$)}static $(){return["GetMcpToolsArgs|1 server 9?|2 tool_name 9?|3 pattern 9?|4 tool_call_id 9"]}};OJ=class OJ extends EJ{constructor(Z){super();this.result={case:void 0},$8.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 $8.util.equals(OJ,Z,$)}static $(){return["GetMcpToolsAgentResult|1 success #0 result|2 error #1 result",kJ,PJ]}};kJ=class kJ extends EJ{constructor(Z){super();this.content="",$8.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 $8.util.equals(kJ,Z,$)}static $(){return["GetMcpToolsSuccess|1 content 9|2 output_file_path 9?"]}};PJ=class PJ extends EJ{constructor(Z){super();this.error="",$8.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 $8.util.equals(PJ,Z,$)}static $(){return["GetMcpToolsError|1 error 9"]}};Z$=class Z$ extends EJ{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["GetMcpToolsToolCall|1 args #0|2 result #1",wJ,OJ]}}});import{Message as qa,proto3 as J8}from"@bufbuild/protobuf";var sM="agent.v1.",CJ,fJ,VJ,xJ,MJ,$$;var iB=I(()=>{P();CJ=class CJ extends B{static get runtime(){return N(this,"runtime",J8)}static $p(){return sM}};fJ=class fJ extends CJ{constructor(Z){super();this.title="",this.file="",this.startLine=0,this.endLine=0,this.description="",this.severity="",this.category="",this.rationale="",J8.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 J8.util.equals(fJ,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"]}};VJ=class VJ extends CJ{constructor(Z){super();this.output="",J8.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 J8.util.equals(VJ,Z,$)}static $(){return["ReportBugSuccess|1 output 9"]}};xJ=class xJ extends CJ{constructor(Z){super();this.errorMessage="",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["ReportBugError|1 error_message 9"]}};MJ=class MJ extends CJ{constructor(Z){super();this.result={case:void 0},J8.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 J8.util.equals(MJ,Z,$)}static $(){return["ReportBugResult|1 success #0 result|2 error #1 result",VJ,xJ]}};$$=class $$ extends CJ{constructor(Z){super();J8.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 J8.util.equals($$,Z,$)}static $(){return["ReportBugToolCall|1 args #0|2 result #1",fJ,MJ]}}});import{Message as Fa,proto3 as Y8}from"@bufbuild/protobuf";var tM="agent.v1.",RJ,hJ,AJ,vJ,TJ,J$;var nB=I(()=>{P();RJ=class RJ extends B{static get runtime(){return N(this,"runtime",Y8)}static $p(){return tM}};hJ=class hJ extends RJ{constructor(Z){super();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["CommunicateUpdateArgs|1 current_step 9?|3 final_summary 9?|4 completed_subtitle 9?"]}};AJ=class AJ extends RJ{constructor(Z){super();this.currentStep="",this.messageIndex=0,Y8.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 Y8.util.equals(AJ,Z,$)}static $(){return["CommunicateUpdateSuccess|1 current_step 9|3 message_index 13"]}};vJ=class vJ extends RJ{constructor(Z){super();this.error="",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["CommunicateUpdateError|1 error 9"]}};TJ=class TJ extends RJ{constructor(Z){super();this.result={case:void 0},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["CommunicateUpdateResult|1 success #0 result|2 error #1 result",AJ,vJ]}};J$=class J$ extends RJ{constructor(Z){super();Y8.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 Y8.util.equals(J$,Z,$)}static $(){return["CommunicateUpdateToolCall|1 args #0|2 result #1",hJ,TJ]}}});import{Message as Da,proto3 as X8}from"@bufbuild/protobuf";var oM="agent.v1.",SJ,yJ,mJ,jJ,_J,Y$;var aB=I(()=>{P();SJ=class SJ extends B{static get runtime(){return N(this,"runtime",X8)}static $p(){return oM}};yJ=class yJ extends SJ{constructor(Z){super();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["SendFinalSummaryArgs|1 final_summary 9?"]}};mJ=class mJ extends SJ{constructor(Z){super();this.finalSummary="",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["SendFinalSummarySuccess|1 final_summary 9"]}};jJ=class jJ extends SJ{constructor(Z){super();this.error="",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["SendFinalSummaryError|1 error 9"]}};_J=class _J extends SJ{constructor(Z){super();this.result={case:void 0},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["SendFinalSummaryResult|1 success #0 result|2 error #1 result",mJ,jJ]}};Y$=class Y$ extends SJ{constructor(Z){super();X8.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 X8.util.equals(Y$,Z,$)}static $(){return["SendFinalSummaryToolCall|1 args #0|2 result #1",yJ,_J]}}});import{Message as ka,proto3 as z0}from"@bufbuild/protobuf";var sB="agent.v1.",$6,rB,gJ,bJ,X$,dJ,cJ,Z6,z$;var tB=I(()=>{P();$6=class $6 extends B{static get runtime(){return N(this,"runtime",z0)}static $p(){return sB}};rB=L(z0,sB,"ReplaceEnvMode",[[0,"UNSPECIFIED"],[1,"CUSTOM"],[2,"CLEAN_SLATE"],[3,"DEFAULT"]],1);gJ=class gJ extends $6{constructor(Z){super();this.repoUrl="",this.ref="",z0.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 z0.util.equals(gJ,Z,$)}static $(){return["RepoCheckoutRefOverride|1 repo_url 9|2 ref 9"]}};bJ=class bJ extends $6{constructor(Z){super();this.installScript="",this.dockerfileContents="",z0.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 z0.util.equals(bJ,Z,$)}static $(){return["ReplaceEnvConfig|1 install_script 9|2 dockerfile_contents 9"]}};X$=class X$ extends $6{constructor(Z){super();this.mode=rB.UNSPECIFIED,this.checkoutRefOverrides=[],z0.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 z0.util.equals(X$,Z,$)}static $(){return["ReplaceEnvArgs|1 config #0|2 mode #1|3 checkout_ref_overrides #2*",bJ,rB,gJ]}};dJ=class dJ extends $6{constructor(Z){super();this.setupLogs="",z0.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 z0.util.equals(dJ,Z,$)}static $(){return["ReplaceEnvSuccess|1 setup_logs 9"]}};cJ=class cJ extends $6{constructor(Z){super();this.errorMessage="",this.setupLogs="",z0.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 z0.util.equals(cJ,Z,$)}static $(){return["ReplaceEnvFailure|1 error_message 9|2 setup_logs 9"]}};Z6=class Z6 extends $6{constructor(Z){super();this.result={case:void 0},z0.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 z0.util.equals(Z6,Z,$)}static $(){return["ReplaceEnvResult|1 success #0 result|2 failure #1 result",dJ,cJ]}};z$=class z$ extends $6{constructor(Z){super();this.associatedPodKey="",z0.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 z0.util.equals(z$,Z,$)}static $(){return["ReplaceEnvToolCall|1 args #0|2 result #1|3 associated_pod_key 9",X$,Z6]}}});import{Message as Va,proto3 as z8}from"@bufbuild/protobuf";var eM="agent.v1.",nJ,uJ,lJ,pJ,iJ,K$;var oB=I(()=>{P();nJ=class nJ extends B{static get runtime(){return N(this,"runtime",z8)}static $p(){return eM}};uJ=class uJ extends nJ{constructor(Z){super();this.toolCallId="",this.prUrl="",this.addLabels=[],this.removeLabels=[],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["EditPrLabelsArgs|1 tool_call_id 9|2 pr_url 9|4 add_labels 9*|5 remove_labels 9*"]}};lJ=class lJ extends nJ{constructor(Z){super();this.result={case:void 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["EditPrLabelsResult|1 success #0 result|2 error #1 result",pJ,iJ]}};pJ=class pJ extends nJ{constructor(Z){super();this.prUrl="",this.prNumber=0,this.message="",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["EditPrLabelsSuccess|1 pr_url 9|2 pr_number 5|3 message 9"]}};iJ=class iJ extends nJ{constructor(Z){super();this.error="",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["EditPrLabelsError|1 error 9"]}};K$=class K$ extends nJ{constructor(Z){super();z8.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 z8.util.equals(K$,Z,$)}static $(){return["EditPrLabelsToolCall|1 args #0|2 result #1",uJ,lJ]}}});import{Message as ha,proto3 as L0}from"@bufbuild/protobuf";var ZC="agent.v1.",J6,aJ,rJ,sJ,tJ,oJ,eJ,H$;var eB=I(()=>{P();J6=class J6 extends B{static get runtime(){return N(this,"runtime",L0)}static $p(){return ZC}};aJ=class aJ extends J6{constructor(Z){super();this.checkName="",this.tldr="",L0.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 L0.util.equals(aJ,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?"]}};rJ=class rJ extends J6{constructor(Z){super();this.summary="",this.themes=[],this.checkKeys=[],L0.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 L0.util.equals(rJ,Z,$)}static $(){return["RecordCiInvestigationOverall|1 summary 9|2 themes 9*|3 recommended_action 9?|4 recommended_action_evidence 9?|5 check_keys 9*"]}};sJ=class sJ extends J6{constructor(Z){super();this.findings=[],this.toolCallId="",L0.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 L0.util.equals(sJ,Z,$)}static $(){return["RecordCiInvestigationFindingsArgs|1 findings #0*|2 overall #1?|3 tool_call_id 9",aJ,rJ]}};tJ=class tJ extends J6{constructor(Z){super();this.message="",L0.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 L0.util.equals(tJ,Z,$)}static $(){return["RecordCiInvestigationFindingsSuccess|1 message 9"]}};oJ=class oJ extends J6{constructor(Z){super();this.error="",L0.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 L0.util.equals(oJ,Z,$)}static $(){return["RecordCiInvestigationFindingsError|1 error 9"]}};eJ=class eJ extends J6{constructor(Z){super();this.result={case:void 0},L0.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 L0.util.equals(eJ,Z,$)}static $(){return["RecordCiInvestigationFindingsResult|1 success #0 result|2 error #1 result",tJ,oJ]}};H$=class H$ extends J6{constructor(Z){super();L0.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 L0.util.equals(H$,Z,$)}static $(){return["RecordCiInvestigationFindingsToolCall|1 args #0|2 result #1",sJ,eJ]}}});import{Message as Ra,proto3 as D0,protoInt64 as $C}from"@bufbuild/protobuf";var JC="agent.v1.",Y6,Z3,$3,J3,Y3,X3,z3,Q$;var ZF=I(()=>{P();Y6=class Y6 extends B{static get runtime(){return N(this,"runtime",D0)}static $p(){return JC}};Z3=class Z3 extends Y6{constructor(Z){super();this.content="",D0.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 D0.util.equals(Z3,Z,$)}static $(){return["SendMessageText|1 content 9"]}};$3=class $3 extends Y6{constructor(Z){super();this.url="",D0.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 D0.util.equals($3,Z,$)}static $(){return["SendMessageAttachment|1 url 9|2 alt 9?"]}};J3=class J3 extends Y6{constructor(Z){super();this.message={case:void 0},D0.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 D0.util.equals(J3,Z,$)}static $(){return["SendMessageArgs|1 text #0 message|2 attachment #1 message",Z3,$3]}};Y3=class Y3 extends Y6{constructor(Z){super();this.timestamp=$C.zero,this.messageId="",D0.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 D0.util.equals(Y3,Z,$)}static $(){return["SendMessageSuccess|1 timestamp 4|2 message_id 9"]}};X3=class X3 extends Y6{constructor(Z){super();this.error="",D0.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 D0.util.equals(X3,Z,$)}static $(){return["SendMessageError|1 error 9"]}};z3=class z3 extends Y6{constructor(Z){super();this.result={case:void 0},D0.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 D0.util.equals(z3,Z,$)}static $(){return["SendMessageResult|1 success #0 result|2 error #1 result",Y3,X3]}};Q$=class Q$ extends Y6{constructor(Z){super();D0.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 D0.util.equals(Q$,Z,$)}static $(){return["SendMessageToolCall|1 args #0|2 result #1",J3,z3]}}});import{Message as _a,proto3 as K8}from"@bufbuild/protobuf";var YC="agent.v1.",W3,K3,H3,Q3,q3,q$;var $F=I(()=>{P();W3=class W3 extends B{static get runtime(){return N(this,"runtime",K8)}static $p(){return YC}};K3=class K3 extends W3{constructor(Z){super();this.bcIds=[],this.sources=[],this.statuses=[],this.includeTeamWide=!1,this.includeArchived=!1,this.includeTranscript=!1,this.activeSince="",K8.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 K8.util.equals(K3,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"]}};H3=class H3 extends W3{constructor(Z){super();this.result={case:void 0},K8.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 K8.util.equals(H3,Z,$)}static $(){return["FetchCloudAgentDataResult|1 success #0 result|2 error #1 result",Q3,q3]}};Q3=class Q3 extends W3{constructor(Z){super();this.summary="",this.agentCount=0,this.writtenPaths=[],this.unavailableBcIds=[],K8.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 K8.util.equals(Q3,Z,$)}static $(){return["FetchCloudAgentDataSuccess|1 summary 9|2 agent_count 5|3 written_paths 9*|4 unavailable_bc_ids 9*"]}};q3=class q3 extends W3{constructor(Z){super();this.error="",K8.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 K8.util.equals(q3,Z,$)}static $(){return["FetchCloudAgentDataError|1 error 9"]}};q$=class q$ extends W3{constructor(Z){super();K8.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 K8.util.equals(q$,Z,$)}static $(){return["FetchCloudAgentDataToolCall|1 args #0|2 result #1",K3,H3]}}});import{Message as da,proto3 as H8}from"@bufbuild/protobuf";var XC="agent.v1.",U3,N3,B3,F3,G3,W$;var JF=I(()=>{P();U3=class U3 extends B{static get runtime(){return N(this,"runtime",H8)}static $p(){return XC}};N3=class N3 extends U3{constructor(Z){super();this.message="",H8.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 H8.util.equals(N3,Z,$)}static $(){return["SendToUserArgs|1 message 9"]}};B3=class B3 extends U3{constructor(Z){super();H8.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 H8.util.equals(B3,Z,$)}static $(){return["SendToUserSuccess"]}};F3=class F3 extends U3{constructor(Z){super();this.error="",H8.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 H8.util.equals(F3,Z,$)}static $(){return["SendToUserError|1 error 9"]}};G3=class G3 extends U3{constructor(Z){super();this.result={case:void 0},H8.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 H8.util.equals(G3,Z,$)}static $(){return["SendToUserResult|1 success #0 result|2 error #1 result",B3,F3]}};W$=class W$ extends U3{constructor(Z){super();H8.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 H8.util.equals(W$,Z,$)}static $(){return["SendToUserToolCall|1 args #0|2 result #1",N3,G3]}}});import{Message as pa,proto3 as _Q}from"@bufbuild/protobuf";var zC="agent.v1.",YF,K0;var L3=I(()=>{P();YF=class YF extends B{static get runtime(){return N(this,"runtime",_Q)}static $p(){return zC}};K0=class K0 extends YF{constructor(Z){super();this.truncated=!1,this.truncatedBy="",this.totalLines=0,this.outputLines=0,this.outputBytes=0,this.firstLineExceedsLimit=!1,this.lastLinePartial=!1,_Q.util.initPartial(Z,this)}static fromBinary(Z,$){return new K0().fromBinary(Z,$)}static fromJson(Z,$){return new K0().fromJson(Z,$)}static fromJsonString(Z,$){return new K0().fromJsonString(Z,$)}static equals(Z,$){return _Q.util.equals(K0,Z,$)}static $(){return["PiTruncation|1 truncated 8|2 truncated_by 9|3 total_lines 13|4 output_lines 13|5 output_bytes 13|6 max_lines 13?|7 max_bytes 13?|8 first_line_exceeds_limit 8|9 last_line_partial 8"]}}});import{Message as ra,proto3 as Q8}from"@bufbuild/protobuf";var KC="agent.v1.",k3,N$,D3,I3,w3,O3;var XF=I(()=>{L3();P();k3=class k3 extends B{static get runtime(){return N(this,"runtime",Q8)}static $p(){return KC}};N$=class N$ extends k3{constructor(Z){super();Q8.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 Q8.util.equals(N$,Z,$)}static $(){return["PiReadToolCall|1 args #0|2 result #1",D3,I3]}};D3=class D3 extends k3{constructor(Z){super();this.path="",Q8.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 Q8.util.equals(D3,Z,$)}static $(){return["PiReadToolArgs|1 path 9|2 offset 5?|3 limit 5?"]}};I3=class I3 extends k3{constructor(Z){super();this.result={case:void 0},Q8.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 Q8.util.equals(I3,Z,$)}static $(){return["PiReadToolResult|1 success #0 result|2 error #1 result",w3,O3]}};w3=class w3 extends k3{constructor(Z){super();this.output="",Q8.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 Q8.util.equals(w3,Z,$)}static $(){return["PiReadToolSuccess|1 output 9|2 truncation #0?",K0]}};O3=class O3 extends k3{constructor(Z){super();this.error="",Q8.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 Q8.util.equals(O3,Z,$)}static $(){return["PiReadToolError|1 error 9"]}}});import{Message as Zr,proto3 as q8}from"@bufbuild/protobuf";var HC="agent.v1.",x3,B$,P3,E3,f3,V3;var zF=I(()=>{L3();P();x3=class x3 extends B{static get runtime(){return N(this,"runtime",q8)}static $p(){return HC}};B$=class B$ extends x3{constructor(Z){super();q8.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 q8.util.equals(B$,Z,$)}static $(){return["PiBashToolCall|1 args #0|2 result #1",P3,E3]}};P3=class P3 extends x3{constructor(Z){super();this.command="",q8.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 q8.util.equals(P3,Z,$)}static $(){return["PiBashToolArgs|1 command 9|2 timeout 1?"]}};E3=class E3 extends x3{constructor(Z){super();this.result={case:void 0},q8.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 q8.util.equals(E3,Z,$)}static $(){return["PiBashToolResult|1 success #0 result|2 error #1 result",f3,V3]}};f3=class f3 extends x3{constructor(Z){super();this.output="",q8.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 q8.util.equals(f3,Z,$)}static $(){return["PiBashToolSuccess|1 output 9|2 truncation #0?|3 full_output_path 9?",K0]}};V3=class V3 extends x3{constructor(Z){super();this.error="",q8.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 q8.util.equals(V3,Z,$)}static $(){return["PiBashToolError|1 error 9|2 truncation #0?|3 full_output_path 9?",K0]}}});import{Message as zr,proto3 as I0}from"@bufbuild/protobuf";var QC="agent.v1.",X6,M3,F$,C3,h3,A3,v3,T3;var KF=I(()=>{P();X6=class X6 extends B{static get runtime(){return N(this,"runtime",I0)}static $p(){return QC}};M3=class M3 extends X6{constructor(Z){super();this.oldText="",this.newText="",I0.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 I0.util.equals(M3,Z,$)}static $(){return["PiEditReplacement|1 old_text 9|2 new_text 9"]}};F$=class F$ extends X6{constructor(Z){super();I0.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 I0.util.equals(F$,Z,$)}static $(){return["PiEditToolCall|1 args #0|2 result #1",C3,h3]}};C3=class C3 extends X6{constructor(Z){super();this.path="",this.edits=[],I0.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 I0.util.equals(C3,Z,$)}static $(){return["PiEditToolArgs|1 path 9|2 edits #0*",M3]}};h3=class h3 extends X6{constructor(Z){super();this.result={case:void 0},I0.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 I0.util.equals(h3,Z,$)}static $(){return["PiEditToolResult|1 success #0 result|2 error #1 result|3 rejected #2 result",A3,v3,T3]}};A3=class A3 extends X6{constructor(Z){super();this.output="",this.diff="",this.patch="",I0.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 I0.util.equals(A3,Z,$)}static $(){return["PiEditToolSuccess|1 output 9|2 diff 9|3 patch 9|4 first_changed_line 13?"]}};v3=class v3 extends X6{constructor(Z){super();this.error="",I0.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 I0.util.equals(v3,Z,$)}static $(){return["PiEditToolError|1 error 9"]}};T3=class T3 extends X6{constructor(Z){super();this.reason="",I0.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 I0.util.equals(T3,Z,$)}static $(){return["PiEditToolRejected|1 reason 9"]}}});import{Message as qr,proto3 as T0}from"@bufbuild/protobuf";var qC="agent.v1.",U$,G$,R3,y3,m3,j3,_3;var HF=I(()=>{P();U$=class U$ extends B{static get runtime(){return N(this,"runtime",T0)}static $p(){return qC}};G$=class G$ extends U${constructor(Z){super();T0.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 T0.util.equals(G$,Z,$)}static $(){return["PiWriteToolCall|1 args #0|2 result #1",R3,y3]}};R3=class R3 extends U${constructor(Z){super();this.path="",this.content="",T0.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 T0.util.equals(R3,Z,$)}static $(){return["PiWriteToolArgs|1 path 9|2 content 9"]}};y3=class y3 extends U${constructor(Z){super();this.result={case:void 0},T0.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 T0.util.equals(y3,Z,$)}static $(){return["PiWriteToolResult|1 success #0 result|2 error #1 result|3 rejected #2 result",m3,j3,_3]}};m3=class m3 extends U${constructor(Z){super();this.output="",T0.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 T0.util.equals(m3,Z,$)}static $(){return["PiWriteToolSuccess|1 output 9"]}};j3=class j3 extends U${constructor(Z){super();this.error="",T0.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 T0.util.equals(j3,Z,$)}static $(){return["PiWriteToolError|1 error 9"]}};_3=class _3 extends U${constructor(Z){super();this.reason="",T0.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 T0.util.equals(_3,Z,$)}static $(){return["PiWriteToolRejected|1 reason 9"]}}});import{Message as Fr,proto3 as W8}from"@bufbuild/protobuf";var WC="agent.v1.",c3,L$,S3,g3,b3,d3;var QF=I(()=>{L3();P();c3=class c3 extends B{static get runtime(){return N(this,"runtime",W8)}static $p(){return WC}};L$=class L$ extends c3{constructor(Z){super();W8.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 W8.util.equals(L$,Z,$)}static $(){return["PiGrepToolCall|1 args #0|2 result #1",S3,g3]}};S3=class S3 extends c3{constructor(Z){super();this.pattern="",W8.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 W8.util.equals(S3,Z,$)}static $(){return["PiGrepToolArgs|1 pattern 9|2 path 9?|3 glob 9?|4 ignore_case 8?|5 literal 8?|6 context 5?|7 limit 5?"]}};g3=class g3 extends c3{constructor(Z){super();this.result={case:void 0},W8.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 W8.util.equals(g3,Z,$)}static $(){return["PiGrepToolResult|1 success #0 result|2 error #1 result",b3,d3]}};b3=class b3 extends c3{constructor(Z){super();this.output="",this.linesTruncated=!1,W8.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 W8.util.equals(b3,Z,$)}static $(){return["PiGrepToolSuccess|1 output 9|2 truncation #0?|3 match_limit_reached 13?|4 lines_truncated 8",K0]}};d3=class d3 extends c3{constructor(Z){super();this.error="",W8.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 W8.util.equals(d3,Z,$)}static $(){return["PiGrepToolError|1 error 9"]}}});import{Message as Ir,proto3 as N8}from"@bufbuild/protobuf";var NC="agent.v1.",n3,D$,u3,l3,p3,i3;var qF=I(()=>{L3();P();n3=class n3 extends B{static get runtime(){return N(this,"runtime",N8)}static $p(){return NC}};D$=class D$ extends n3{constructor(Z){super();N8.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 N8.util.equals(D$,Z,$)}static $(){return["PiFindToolCall|1 args #0|2 result #1",u3,l3]}};u3=class u3 extends n3{constructor(Z){super();this.pattern="",N8.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 N8.util.equals(u3,Z,$)}static $(){return["PiFindToolArgs|1 pattern 9|2 path 9?|3 limit 5?"]}};l3=class l3 extends n3{constructor(Z){super();this.result={case:void 0},N8.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 N8.util.equals(l3,Z,$)}static $(){return["PiFindToolResult|1 success #0 result|2 error #1 result",p3,i3]}};p3=class p3 extends n3{constructor(Z){super();this.output="",N8.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 N8.util.equals(p3,Z,$)}static $(){return["PiFindToolSuccess|1 output 9|2 truncation #0?|3 result_limit_reached 13?",K0]}};i3=class i3 extends n3{constructor(Z){super();this.error="",N8.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 N8.util.equals(i3,Z,$)}static $(){return["PiFindToolError|1 error 9"]}}});import{Message as Er,proto3 as B8}from"@bufbuild/protobuf";var BC="agent.v1.",o3,I$,a3,r3,s3,t3;var WF=I(()=>{L3();P();o3=class o3 extends B{static get runtime(){return N(this,"runtime",B8)}static $p(){return BC}};I$=class I$ extends o3{constructor(Z){super();B8.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 B8.util.equals(I$,Z,$)}static $(){return["PiLsToolCall|1 args #0|2 result #1",a3,r3]}};a3=class a3 extends o3{constructor(Z){super();B8.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 B8.util.equals(a3,Z,$)}static $(){return["PiLsToolArgs|1 path 9?|2 limit 5?"]}};r3=class r3 extends o3{constructor(Z){super();this.result={case:void 0},B8.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 B8.util.equals(r3,Z,$)}static $(){return["PiLsToolResult|1 success #0 result|2 error #1 result",s3,t3]}};s3=class s3 extends o3{constructor(Z){super();this.output="",B8.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 B8.util.equals(s3,Z,$)}static $(){return["PiLsToolSuccess|1 output 9|2 truncation #0?|3 entry_limit_reached 13?",K0]}};t3=class t3 extends o3{constructor(Z){super();this.error="",B8.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 B8.util.equals(t3,Z,$)}static $(){return["PiLsToolError|1 error 9"]}}});import{Message as Cr,proto3 as S}from"@bufbuild/protobuf";var FC="agent.v1.",R0,e3,ZY,$Y,JY,YY,XY,zY,w$,O$,KY,HY,QY;var NF=I(()=>{P();R0=class R0 extends B{static get runtime(){return N(this,"runtime",S)}static $p(){return FC}};e3=class e3 extends R0{constructor(Z){super();this.toolCallId="",this.target={case:void 0},S.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 S.util.equals(e3,Z,$)}static $(){return["ConnectScmArgs|1 tool_call_id 9|2 github #0 target",ZY]}};ZY=class ZY extends R0{constructor(Z){super();S.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 S.util.equals(ZY,Z,$)}static $(){return["ConnectScmGithub|1 repository #0|2 ghe_application 9?",$Y]}};$Y=class $Y extends R0{constructor(Z){super();this.owner="",this.repo="",S.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 S.util.equals($Y,Z,$)}static $(){return["ConnectScmGithubRepository|1 owner 9|2 repo 9"]}};JY=class JY extends R0{constructor(Z){super();this.result={case:void 0},S.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 S.util.equals(JY,Z,$)}static $(){return["ConnectScmResult|1 success #0 result|2 error #1 result|3 rejected #2 result",YY,XY,zY]}};YY=class YY extends R0{constructor(Z){super();S.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 S.util.equals(YY,Z,$)}static $(){return["ConnectScmSuccess"]}};XY=class XY extends R0{constructor(Z){super();this.error="",S.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 S.util.equals(XY,Z,$)}static $(){return["ConnectScmError|1 error 9"]}};zY=class zY extends R0{constructor(Z){super();this.reason="",S.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 S.util.equals(zY,Z,$)}static $(){return["ConnectScmRejected|1 reason 9"]}};w$=class w$ extends R0{constructor(Z){super();S.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 S.util.equals(w$,Z,$)}static $(){return["ConnectScmToolCall|1 args #0|2 result #1",e3,JY]}};O$=class O$ extends R0{constructor(Z){super();this.result={case:void 0},S.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 S.util.equals(O$,Z,$)}static $(){return["ConnectScmRequestResponse|1 approved #0 result|2 rejected #1 result|3 failed #2 result",KY,HY,QY]}};KY=class KY extends R0{constructor(Z){super();S.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 S.util.equals(KY,Z,$)}static $(){return["ConnectScmRequestResponse.Approved"]}};HY=class HY extends R0{constructor(Z){super();this.reason="",S.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 S.util.equals(HY,Z,$)}static $(){return["ConnectScmRequestResponse.Rejected|1 reason 9"]}};QY=class QY extends R0{constructor(Z){super();this.error="",S.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 S.util.equals(QY,Z,$)}static $(){return["ConnectScmRequestResponse.Failed|1 error 9"]}}});import{Message as Tr,proto3 as g0,protoInt64 as GC}from"@bufbuild/protobuf";var FF="agent.v1.",BY,BF,k$,P$,qY,WY,NY;var GF=I(()=>{P();BY=class BY extends B{static get runtime(){return N(this,"runtime",g0)}static $p(){return FF}};BF=L(g0,FF,"ConversationSearchSource",[[0,"UNSPECIFIED"],[1,"LOCAL"],[2,"CLOUD_CACHE"]],1);k$=class k$ extends BY{constructor(Z){super();this.query="",this.toolCallId="",g0.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 g0.util.equals(k$,Z,$)}static $(){return["ConversationSearchArgs|1 query 9|2 tool_call_id 9|3 limit 5?"]}};P$=class P$ extends BY{constructor(Z){super();this.result={case:void 0},g0.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 g0.util.equals(P$,Z,$)}static $(){return["ConversationSearchResult|1 success #0 result|2 error #1 result",qY,NY]}};qY=class qY extends BY{constructor(Z){super();this.hits=[],this.truncated=!1,this.partial=!1,this.rebuilding=!1,g0.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 g0.util.equals(qY,Z,$)}static $(){return["ConversationSearchSuccess|1 hits #0*|2 truncated 8|3 partial 8|4 rebuilding 8",WY]}};WY=class WY extends BY{constructor(Z){super();this.conversationId="",this.title="",this.source=BF.UNSPECIFIED,this.updatedAtMs=GC.zero,g0.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 g0.util.equals(WY,Z,$)}static $(){return["ConversationSearchHit|1 conversation_id 9|2 title 9|3 source #0|4 updated_at_ms 3|5 snippet 9?",BF]}};NY=class NY extends BY{constructor(Z){super();this.error="",g0.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 g0.util.equals(NY,Z,$)}static $(){return["ConversationSearchError|1 error 9"]}}});import{Message as jr,proto3 as SQ}from"@bufbuild/protobuf";var UC="agent.v1.",UF,E$;var LF=I(()=>{GF();P();UF=class UF extends B{static get runtime(){return N(this,"runtime",SQ)}static $p(){return UC}};E$=class E$ extends UF{constructor(Z){super();SQ.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 SQ.util.equals(E$,Z,$)}static $(){return["SearchConversationsToolCall|1 args #0|2 result #1",k$,P$]}}});import{Message as dr,proto3 as i}from"@bufbuild/protobuf";var DF="agent.v1.",f8,M$,FY,GY,f$,UY,V$,LY,DY,IY,x$;var IF=I(()=>{P();f8=class f8 extends B{static get runtime(){return N(this,"runtime",i)}static $p(){return DF}};M$=L(i,DF,"GoalStatus",[[0,"UNSPECIFIED"],[1,"ACTIVE"],[2,"PAUSED"],[3,"COMPLETE"],[4,"CLEARED"]],1);FY=class FY extends f8{constructor(Z){super();this.objective="",i.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 i.util.equals(FY,Z,$)}static $(){return["CreateGoalArgs|1 objective 9"]}};GY=class GY extends f8{constructor(Z){super();i.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 i.util.equals(GY,Z,$)}static $(){return["CreateGoalSuccess"]}};f$=class f$ extends f8{constructor(Z){super();this.error="",i.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 i.util.equals(f$,Z,$)}static $(){return["GoalError|1 error 9"]}};UY=class UY extends f8{constructor(Z){super();this.result={case:void 0},i.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 i.util.equals(UY,Z,$)}static $(){return["CreateGoalResult|1 success #0 result|2 error #1 result",GY,f$]}};V$=class V$ extends f8{constructor(Z){super();i.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 i.util.equals(V$,Z,$)}static $(){return["CreateGoalToolCall|1 args #0|2 result #1",FY,UY]}};LY=class LY extends f8{constructor(Z){super();this.status=M$.UNSPECIFIED,i.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 i.util.equals(LY,Z,$)}static $(){return["UpdateGoalArgs|1 status #0",M$]}};DY=class DY extends f8{constructor(Z){super();this.status=M$.UNSPECIFIED,i.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 i.util.equals(DY,Z,$)}static $(){return["UpdateGoalSuccess|1 status #0",M$]}};IY=class IY extends f8{constructor(Z){super();this.result={case:void 0},i.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 i.util.equals(IY,Z,$)}static $(){return["UpdateGoalResult|1 success #0 result|2 error #1 result",DY,f$]}};x$=class x$ extends f8{constructor(Z){super();i.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 i.util.equals(x$,Z,$)}static $(){return["UpdateGoalToolCall|1 args #0|2 result #1",LY,IY]}}});import{Message as pr,proto3 as x,protoInt64 as LC}from"@bufbuild/protobuf";var wF="agent.v1.",_,DC,wY,OY,kY,PY,EY,C$,fY,VY,xY,MY,h$,CY,hY,AY,vY,A$,TY,RY,yY,mY,v$,jY,_Y,SY,gY,T$;var OF=I(()=>{P();_=class _ extends B{static get runtime(){return N(this,"runtime",x)}static $p(){return wF}};DC=L(x,wF,"CreateAgentPlacementApprovalState",[[0,"UNSPECIFIED"],[1,"REQUIRED"],[2,"DENIED"]],1);wY=class wY extends _{constructor(Z){super();this.toolCallId="",this.agentIds=[],x.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 x.util.equals(wY,Z,$)}static $(){return["GetAgentStatusArgs|1 tool_call_id 9|2 agent_ids 9*"]}};OY=class OY extends _{constructor(Z){super();this.bcId="",this.name="",this.lifecycle="",this.turnInFlight=!1,this.lastTerminalTurnStatus="",this.prUrl="",this.lastActivityAtMs=LC.zero,x.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 x.util.equals(OY,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"]}};kY=class kY extends _{constructor(Z){super();this.workers=[],this.message="",x.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 x.util.equals(kY,Z,$)}static $(){return["GetAgentStatusSuccess|1 workers #0*|2 message 9",OY]}};PY=class PY extends _{constructor(Z){super();this.error="",x.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 x.util.equals(PY,Z,$)}static $(){return["GetAgentStatusError|1 error 9"]}};EY=class EY extends _{constructor(Z){super();this.result={case:void 0},x.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 x.util.equals(EY,Z,$)}static $(){return["GetAgentStatusResult|1 success #0 result|2 error #1 result",kY,PY]}};C$=class C$ extends _{constructor(Z){super();x.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 x.util.equals(C$,Z,$)}static $(){return["GetAgentStatusToolCall|1 args #0|2 result #1",wY,EY]}};fY=class fY extends _{constructor(Z){super();this.toolCallId="",this.agentId="",this.message="",this.delivery="",this.title="",x.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 x.util.equals(fY,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?"]}};VY=class VY extends _{constructor(Z){super();this.workerBcId="",this.deliveredAs="",this.message="",x.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 x.util.equals(VY,Z,$)}static $(){return["SendToAgentSuccess|1 worker_bc_id 9|2 delivered_as 9|3 message 9"]}};xY=class xY extends _{constructor(Z){super();this.error="",x.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 x.util.equals(xY,Z,$)}static $(){return["SendToAgentError|1 error 9"]}};MY=class MY extends _{constructor(Z){super();this.result={case:void 0},x.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 x.util.equals(MY,Z,$)}static $(){return["SendToAgentResult|1 success #0 result|2 error #1 result",VY,xY]}};h$=class h$ extends _{constructor(Z){super();x.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 x.util.equals(h$,Z,$)}static $(){return["SendToAgentToolCall|1 args #0|2 result #1",fY,MY]}};CY=class CY extends _{constructor(Z){super();this.toolCallId="",this.agentId="",this.mode="",this.maxTurns=0,x.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 x.util.equals(CY,Z,$)}static $(){return["ReadAgentTranscriptArgs|1 tool_call_id 9|2 agent_id 9|3 mode 9|4 max_turns 13"]}};hY=class hY extends _{constructor(Z){super();this.transcript="",this.truncated=!1,x.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 x.util.equals(hY,Z,$)}static $(){return["ReadAgentTranscriptSuccess|1 transcript 9|2 truncated 8"]}};AY=class AY extends _{constructor(Z){super();this.error="",x.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 x.util.equals(AY,Z,$)}static $(){return["ReadAgentTranscriptError|1 error 9"]}};vY=class vY extends _{constructor(Z){super();this.result={case:void 0},x.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 x.util.equals(vY,Z,$)}static $(){return["ReadAgentTranscriptResult|1 success #0 result|2 error #1 result",hY,AY]}};A$=class A$ extends _{constructor(Z){super();x.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 x.util.equals(A$,Z,$)}static $(){return["ReadAgentTranscriptToolCall|1 args #0|2 result #1",CY,vY]}};TY=class TY extends _{constructor(Z){super();this.toolCallId="",this.prompt="",this.labels={},x.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 x.util.equals(TY,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?"]}};RY=class RY extends _{constructor(Z){super();this.agentId="",this.message="",x.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 x.util.equals(RY,Z,$)}static $(){return["CreateAgentSuccess|1 agent_id 9|2 message 9"]}};yY=class yY extends _{constructor(Z){super();this.error="",x.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 x.util.equals(yY,Z,$)}static $(){return["CreateAgentError|1 error 9|2 placement_approval_state #0?",DC]}};mY=class mY extends _{constructor(Z){super();this.result={case:void 0},x.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 x.util.equals(mY,Z,$)}static $(){return["CreateAgentResult|1 success #0 result|2 error #1 result",RY,yY]}};v$=class v$ extends _{constructor(Z){super();x.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 x.util.equals(v$,Z,$)}static $(){return["CreateAgentToolCall|1 args #0|2 result #1",TY,mY]}};jY=class jY extends _{constructor(Z){super();this.toolCallId="",this.agentId="",x.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 x.util.equals(jY,Z,$)}static $(){return["StopAgentArgs|1 tool_call_id 9|2 agent_id 9"]}};_Y=class _Y extends _{constructor(Z){super();this.workerBcId="",this.message="",x.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 x.util.equals(_Y,Z,$)}static $(){return["StopAgentSuccess|1 worker_bc_id 9|2 message 9"]}};SY=class SY extends _{constructor(Z){super();this.error="",x.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 x.util.equals(SY,Z,$)}static $(){return["StopAgentError|1 error 9"]}};gY=class gY extends _{constructor(Z){super();this.result={case:void 0},x.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 x.util.equals(gY,Z,$)}static $(){return["StopAgentResult|1 success #0 result|2 error #1 result",_Y,SY]}};T$=class T$ extends _{constructor(Z){super();x.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 x.util.equals(T$,Z,$)}static $(){return["StopAgentToolCall|1 args #0|2 result #1",jY,gY]}}});import{Message as rr,proto3 as m}from"@bufbuild/protobuf";var gQ="agent.v1.",C0,kF,PF,bY,dY,cY,uY,lY,pY,iY,R$,nY,aY,rY,sY,y$;var EF=I(()=>{P();C0=class C0 extends B{static get runtime(){return N(this,"runtime",m)}static $p(){return gQ}};kF=L(m,gQ,"WriteCanvasFailReason",[[0,"UNSPECIFIED"],[1,"TYPECHECK_FAILED"],[2,"COMPILE_FAILED"],[3,"TOO_LARGE"],[4,"UNAVAILABLE"],[5,"NOT_FOUND"],[6,"REFUSED"]],1),PF=L(m,gQ,"ReadCanvasFailReason",[[0,"UNSPECIFIED"],[1,"NOT_FOUND"],[2,"UNAVAILABLE"],[3,"REFUSED"],[4,"INVALID_REFERENCE"]],1);bY=class bY extends C0{constructor(Z){super();this.line=0,this.character=0,m.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 m.util.equals(bY,Z,$)}static $(){return["CloudCanvasToolDiagnosticPosition|1 line 5|2 character 5"]}};dY=class dY extends C0{constructor(Z){super();m.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 m.util.equals(dY,Z,$)}static $(){return["CloudCanvasToolDiagnosticRange|1 start #0|2 end #0",bY]}};cY=class cY extends C0{constructor(Z){super();this.message="",m.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 m.util.equals(cY,Z,$)}static $(){return["CloudCanvasToolDiagnostic|1 message 9|2 code 9?|3 severity 5?|4 range #0?",dY]}};uY=class uY extends C0{constructor(Z){super();this.contents="",m.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 m.util.equals(uY,Z,$)}static $(){return["WriteCanvasArgs|1 contents 9|2 canvas_id 9?|3 title 9?"]}};lY=class lY extends C0{constructor(Z){super();this.canvasId="",this.url="",m.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 m.util.equals(lY,Z,$)}static $(){return["WriteCanvasSuccess|1 canvas_id 9|2 title 9?|3 url 9"]}};pY=class pY extends C0{constructor(Z){super();this.reason=kF.UNSPECIFIED,this.diagnostics=[],m.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 m.util.equals(pY,Z,$)}static $(){return["WriteCanvasFailure|1 reason #0|2 diagnostics #1*|3 detail 9?",kF,cY]}};iY=class iY extends C0{constructor(Z){super();this.result={case:void 0},m.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 m.util.equals(iY,Z,$)}static $(){return["WriteCanvasResult|1 success #0 result|2 failure #1 result",lY,pY]}};R$=class R$ extends C0{constructor(Z){super();m.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 m.util.equals(R$,Z,$)}static $(){return["WriteCanvasToolCall|1 args #0|2 result #1",uY,iY]}};nY=class nY extends C0{constructor(Z){super();m.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 m.util.equals(nY,Z,$)}static $(){return["ReadCanvasArgs|1 canvas_id 9?|2 url 9?"]}};aY=class aY extends C0{constructor(Z){super();this.canvasId="",this.url="",this.source="",m.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 m.util.equals(aY,Z,$)}static $(){return["ReadCanvasSuccess|1 canvas_id 9|2 title 9?|3 url 9|4 source 9"]}};rY=class rY extends C0{constructor(Z){super();this.reason=PF.UNSPECIFIED,m.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 m.util.equals(rY,Z,$)}static $(){return["ReadCanvasFailure|1 reason #0|2 detail 9?",PF]}};sY=class sY extends C0{constructor(Z){super();this.result={case:void 0},m.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 m.util.equals(sY,Z,$)}static $(){return["ReadCanvasResult|1 success #0 result|2 failure #1 result",aY,rY]}};y$=class y$ extends C0{constructor(Z){super();m.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 m.util.equals(y$,Z,$)}static $(){return["ReadCanvasToolCall|1 args #0|2 result #1",nY,sY]}}});import{Message as er,proto3 as F8}from"@bufbuild/protobuf";var IC="agent.v1.",$X,tY,oY,eY,ZX,m$;var fF=I(()=>{P();$X=class $X extends B{static get runtime(){return N(this,"runtime",F8)}static $p(){return IC}};tY=class tY extends $X{constructor(Z){super();this.prompt="",this.referenceImagePaths=[],F8.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 F8.util.equals(tY,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?"]}};oY=class oY extends $X{constructor(Z){super();this.result={case:void 0},F8.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 F8.util.equals(oY,Z,$)}static $(){return["GenerateVideoResult|1 success #0 result|2 error #1 result",eY,ZX]}};eY=class eY extends $X{constructor(Z){super();this.filePath="",this.durationSeconds=0,F8.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 F8.util.equals(eY,Z,$)}static $(){return["GenerateVideoSuccess|1 file_path 9|2 duration_seconds 13"]}};ZX=class ZX extends $X{constructor(Z){super();this.error="",F8.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 F8.util.equals(ZX,Z,$)}static $(){return["GenerateVideoError|1 error 9"]}};m$=class m$ extends $X{constructor(Z){super();F8.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 F8.util.equals(m$,Z,$)}static $(){return["GenerateVideoToolCall|1 args #0|2 result #1",tY,oY]}}});import{Message as Ys,proto3 as w0}from"@bufbuild/protobuf";var wC="agent.v1.",z6,JX,YX,XX,zX,KX,HX,j$;var VF=I(()=>{P();z6=class z6 extends B{static get runtime(){return N(this,"runtime",w0)}static $p(){return wC}};JX=class JX extends z6{constructor(Z){super();this.query="",this.allowedXHandles=[],this.excludedXHandles=[],w0.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 w0.util.equals(JX,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*"]}};YX=class YX extends z6{constructor(Z){super();this.result={case:void 0},w0.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 w0.util.equals(YX,Z,$)}static $(){return["XSearchResult|1 success #0 result|2 error #1 result|3 rejected #2 result",XX,KX,HX]}};XX=class XX extends z6{constructor(Z){super();this.answer="",this.citations=[],w0.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 w0.util.equals(XX,Z,$)}static $(){return["XSearchSuccess|1 answer 9|2 citations #0*",zX]}};zX=class zX extends z6{constructor(Z){super();this.url="",this.title="",w0.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 w0.util.equals(zX,Z,$)}static $(){return["XSearchCitation|1 url 9|2 title 9"]}};KX=class KX extends z6{constructor(Z){super();this.error="",w0.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 w0.util.equals(KX,Z,$)}static $(){return["XSearchError|1 error 9"]}};HX=class HX extends z6{constructor(Z){super();this.reason="",w0.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 w0.util.equals(HX,Z,$)}static $(){return["XSearchRejected|1 reason 9"]}};j$=class j$ extends z6{constructor(Z){super();w0.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 w0.util.equals(j$,Z,$)}static $(){return["XSearchToolCall|1 args #0|2 result #1",JX,YX]}}});import{Message as Hs,proto3 as bQ}from"@bufbuild/protobuf";var OC="agent.v1.",xF,_$;var MF=I(()=>{P();xF=class xF extends B{static get runtime(){return N(this,"runtime",bQ)}static $p(){return OC}};_$=class _$ extends xF{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,bQ.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 bQ.util.equals(_$,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 Ns,proto3 as w,protoInt64 as CF}from"@bufbuild/protobuf";var AF="agent.v1.",M,hF,QX,qX,WX,S$,NX,BX,FX,GX,UX,LX,DX,IX,wX,OX,kX,PX,EX,fX,VX,xX,MX,CX,hX,AX,vX,TX,RX,yX,mX,jX,_X,SX,gX,bX,dX,cX,uX,lX,pX,iX,nX,aX,rX,sX,g$,tX,oX,eX,Zz,$z,Jz,Yz,Xz;var vF=I(()=>{x6();MQ();VQ();MF();P();M=class M extends B{static get runtime(){return N(this,"runtime",w)}static $p(){return AF}};hF=L(w,AF,"SelectedPluginCapabilityType",[[0,"UNSPECIFIED"],[1,"COMMAND"],[2,"SKILL"],[3,"SUBAGENT"]],1);QX=class QX extends M{constructor(Z){super();this.dataOrBlobId={case:void 0},this.uuid="",this.path="",this.mimeType="",w.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 w.util.equals(QX,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",qX,S$,WX]}};qX=class qX extends M{constructor(Z){super();this.blobId=new Uint8Array(0),this.data=new Uint8Array(0),w.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 w.util.equals(qX,Z,$)}static $(){return["SelectedImage.BlobIdWithData|1 blob_id 12|2 data 12"]}};WX=class WX extends M{constructor(Z){super();this.width=0,this.height=0,w.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 w.util.equals(WX,Z,$)}static $(){return["SelectedImage.Dimension|1 width 5|2 height 5"]}};S$=class S$ extends M{constructor(Z){super();this.uploadId="",w.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 w.util.equals(S$,Z,$)}static $(){return["PromptUploadRef|1 upload_id 9"]}};NX=class NX extends M{constructor(Z){super();this.dataOrBlobId={case:void 0},this.uuid="",this.filename="",this.mimeType="",this.path="",w.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 w.util.equals(NX,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",BX,S$]}};BX=class BX extends M{constructor(Z){super();this.blobId=new Uint8Array(0),this.data=new Uint8Array(0),w.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 w.util.equals(BX,Z,$)}static $(){return["SelectedDocument.BlobIdWithData|1 blob_id 12|2 data 12"]}};FX=class FX extends M{constructor(Z){super();this.dataOrBlobId={case:void 0},this.uuid="",this.path="",this.mimeType="",this.filename="",this.materializeToFilesystem=!1,w.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 w.util.equals(FX,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|2 uuid 9|3 path 9|4 fps 2?|7 mime_type 9|10 filename 9|12 materialize_to_filesystem 8",GX,UX]}};GX=class GX extends M{constructor(Z){super();this.blobId=new Uint8Array(0),this.data=new Uint8Array(0),w.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 w.util.equals(GX,Z,$)}static $(){return["SelectedVideo.BlobIdWithData|1 blob_id 12|2 data 12"]}};UX=class UX extends M{constructor(Z){super();this.url="",this.key="",this.expiresAtUnixMs=CF.zero,this.refreshAfterUnixMs=CF.zero,this.conversationId="",w.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 w.util.equals(UX,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"]}};LX=class LX extends M{constructor(Z){super();this.dataOrBlobId={case:void 0},w.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 w.util.equals(LX,Z,$)}static $(){return["ExtraContextEntry|1 data 9 data_or_blob_id|2 blob_id 12 data_or_blob_id"]}};DX=class DX extends M{constructor(Z){super();this.content="",this.path="",w.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 w.util.equals(DX,Z,$)}static $(){return["SelectedFile|1 content 9|2 path 9|3 relative_path 9?"]}};IX=class IX extends M{constructor(Z){super();this.content="",this.path="",w.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 w.util.equals(IX,Z,$)}static $(){return["SelectedCodeSelection|1 content 9|2 path 9|3 relative_path 9?|4 range #0",u8]}};wX=class wX extends M{constructor(Z){super();this.content="",w.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 w.util.equals(wX,Z,$)}static $(){return["SelectedTerminal|1 content 9|2 title 9?|3 path 9?"]}};OX=class OX extends M{constructor(Z){super();this.content="",w.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 w.util.equals(OX,Z,$)}static $(){return["SelectedTerminalSelection|1 content 9|2 title 9?|3 path 9?|4 range #0",u8]}};kX=class kX extends M{constructor(Z){super();this.path="",w.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 w.util.equals(kX,Z,$)}static $(){return["SelectedFolder|1 path 9|2 relative_path 9?|3 directory_tree #0",w8]}};PX=class PX extends M{constructor(Z){super();this.url="",this.uuid="",w.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 w.util.equals(PX,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?"]}};EX=class EX extends M{constructor(Z){super();w.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 w.util.equals(EX,Z,$)}static $(){return["SelectedCursorRule|1 rule #0",h8]}};fX=class fX extends M{constructor(Z){super();this.content="",this.fullContentLengthCharCount=0,w.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 w.util.equals(fX,Z,$)}static $(){return["SelectedGitDiff|1 content 9|2 full_content_length_char_count 5"]}};VX=class VX extends M{constructor(Z){super();this.content="",this.fullContentLengthCharCount=0,w.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 w.util.equals(VX,Z,$)}static $(){return["SelectedGitDiffFromBranchToMain|1 content 9|2 full_content_length_char_count 5"]}};xX=class xX extends M{constructor(Z){super();this.sha="",this.message="",this.diff="",w.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 w.util.equals(xX,Z,$)}static $(){return["SelectedGitCommit|1 sha 9|2 message 9|3 description 9?|4 diff 9"]}};MX=class MX extends M{constructor(Z){super();this.number=0,this.url="",this.folderPath="",w.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 w.util.equals(MX,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?"]}};CX=class CX extends M{constructor(Z){super();this.prUrl="",this.filePath="",this.startLine=0,this.endLine=0,w.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 w.util.equals(CX,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?"]}};hX=class hX extends M{constructor(Z){super();this.pluginId="",this.capabilityType=hF.UNSPECIFIED,this.sourcePath="",this.snapshotToken="",w.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 w.util.equals(hX,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?",hF]}};AX=class AX extends M{constructor(Z){super();this.name="",this.content="",w.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 w.util.equals(AX,Z,$)}static $(){return["SelectedCursorCommand|1 name 9|2 content 9|3 plugin_capability #0?|4 full_path 9?|5 display_name 9?",hX]}};vX=class vX extends M{constructor(Z){super();this.docId="",this.name="",w.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 w.util.equals(vX,Z,$)}static $(){return["SelectedDocumentation|1 doc_id 9|2 name 9"]}};TX=class TX extends M{constructor(Z){super();this.agentId="",this.name="",w.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 w.util.equals(TX,Z,$)}static $(){return["SelectedPastChat|1 agent_id 9|2 name 9"]}};RX=class RX extends M{constructor(Z){super();this.name="",this.path="",w.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 w.util.equals(RX,Z,$)}static $(){return["RecentAgent|1 name 9|2 path 9|3 overview 9?"]}};yX=class yX extends M{constructor(Z){super();this.recentAgents=[],w.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 w.util.equals(yX,Z,$)}static $(){return["RecentAgentsContext|1 recent_agents #0*",RX]}};mX=class mX extends M{constructor(Z){super();w.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 w.util.equals(mX,Z,$)}static $(){return["CallFrame|1 function_name 9?|2 url 9?|3 line_number 5?|4 column_number 5?"]}};jX=class jX extends M{constructor(Z){super();this.callFrames=[],w.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 w.util.equals(jX,Z,$)}static $(){return["StackTrace|1 call_frames #0*|2 raw_stack_trace 9?",mX]}};_X=class _X extends M{constructor(Z){super();this.message="",this.timestamp=0,this.level="",this.clientName="",this.sessionId="",w.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 w.util.equals(_X,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?",jX]}};SX=class SX extends M{constructor(Z){super();this.element="",this.xpath="",this.textContent="",this.extra="",w.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 w.util.equals(SX,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?"]}};gX=class gX extends M{constructor(Z){super();this.name="",w.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 w.util.equals(gX,Z,$)}static $(){return["SelectedSubagent|1 name 9"]}};bX=class bX extends M{constructor(Z){super();this.browserId="",this.url="",w.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 w.util.equals(bX,Z,$)}static $(){return["SelectedBrowser|1 browser_id 9|2 url 9|3 page_title 9?"]}};dX=class dX extends M{constructor(Z){super();this.filesToCommit=[],this.filesToExcludeFromCommit=[],this.shouldStageAllChanges=!1,this.filesToCommitWithStatus=[],this.filesToExcludeFromCommitWithStatus=[],w.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 w.util.equals(dX,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*",uX]}};cX=class cX extends M{constructor(Z){super();w.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 w.util.equals(cX,Z,$)}static $(){return["SelectedAgenticGitActionCreateBranchParams"]}};uX=class uX extends M{constructor(Z){super();this.path="",w.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 w.util.equals(uX,Z,$)}static $(){return["SelectedAgenticGitFileWithStatus|1 path 9|2 status 9?"]}};lX=class lX extends M{constructor(Z){super();this.filesToPush=[],w.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 w.util.equals(lX,Z,$)}static $(){return["SelectedAgenticGitActionPushParams|1 files_to_push 9*|2 create_pr_draft 8?"]}};pX=class pX extends M{constructor(Z){super();w.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 w.util.equals(pX,Z,$)}static $(){return["SelectedAgenticGitActionFixMergeConflictsParams|1 base_branch 9?|2 pr_url 9?"]}};iX=class iX extends M{constructor(Z){super();w.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 w.util.equals(iX,Z,$)}static $(){return["SelectedAgenticGitActionBabysitPrInCloudParams|1 base_branch 9?"]}};nX=class nX extends M{constructor(Z){super();w.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 w.util.equals(nX,Z,$)}static $(){return["SelectedAgenticGitActionUpdateBranchParams|1 base_branch 9?"]}};aX=class aX extends M{constructor(Z){super();this.remoteBranch="",w.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 w.util.equals(aX,Z,$)}static $(){return["SelectedAgenticGitActionPullLocallyParams|1 remote_branch 9"]}};rX=class rX extends M{constructor(Z){super();this.params={case:void 0},w.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 w.util.equals(rX,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?",dX,lX,pX,iX,aX,nX,cX,sX]}};sX=class sX extends M{constructor(Z){super();w.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 w.util.equals(sX,Z,$)}static $(){return["SelectedGitBranchContext|1 current_branch 9?|2 base_branch 9?|3 agent_branch_prefix 9?"]}};g$=class g$ extends M{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=[],w.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 w.util.equals(g$,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?",QX,tX,LX,DX,IX,wX,OX,kX,PX,EX,fX,VX,AX,vX,SX,_X,xX,TX,CX,MX,gX,FX,bX,NX,_$,yX,rX]}};tX=class tX extends M{constructor(Z){super();this.data={case:void 0},w.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 w.util.equals(tX,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",oX,Zz,$z,eX]}};oX=class oX extends M{constructor(Z){super();this.thread="",w.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 w.util.equals(oX,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?"]}};eX=class eX extends M{constructor(Z){super();this.thread="",w.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 w.util.equals(eX,Z,$)}static $(){return["InvocationContext.MicrosoftTeamsThread|1 thread 9|2 channel_name 9?|3 team_name 9?|4 channel_description 9?|5 team_description 9?"]}};Zz=class Zz extends M{constructor(Z){super();this.title="",this.description="",this.comments="",w.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 w.util.equals(Zz,Z,$)}static $(){return["InvocationContext.GithubPR|1 title 9|2 description 9|3 comments 9|4 ci_failures 9?"]}};$z=class $z extends M{constructor(Z){super();this.visibleFiles=[],this.recentlyViewedFiles=[],this.currentlyViewedPrs=[],w.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 w.util.equals($z,Z,$)}static $(){return["InvocationContext.IdeState|1 visible_files #0*|2 recently_viewed_files #0*|3 currently_viewed_prs #1*",Jz,Xz]}};Jz=class Jz extends M{constructor(Z){super();this.path="",this.totalLines=0,w.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 w.util.equals(Jz,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?",Yz]}};Yz=class Yz extends M{constructor(Z){super();this.line=0,this.text="",w.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 w.util.equals(Yz,Z,$)}static $(){return["InvocationContext.IdeState.File.CursorPosition|1 line 5|2 text 9"]}};Xz=class Xz extends M{constructor(Z){super();this.number=0,this.url="",w.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 w.util.equals(Xz,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 As,proto3 as F,protoInt64 as UH}from"@bufbuild/protobuf";var U6="agent.v1.",E,jK,TF,RF,yF,kC,PC,zz,b$,Kz,Hz,Qz,qz,Wz,Nz,Bz,Fz,Gz,Uz,Lz,Dz,Iz,wz,d$,Oz,kz,Pz,Ez,fz,m8,Vz,xz,Mz,Cz,hz,Az,vz,Tz,Rz,yz,mz,jz,_z,K6,Sz,gz,mF,bz,dz,H6,Q6,j8,cz,c$,uz,u$,q6,lz,pz,W6,iz,N6,nz,az,rz,sz,tz,oz,l$,ez,ZK,$K,JK,B6,F6,p$,G6,YK,XK,y0,zK,KK;var LH=I(()=>{MN();gN();cN();uN();iN();rN();NH();oN();ZB();JB();YB();HB();QB();qB();WB();FB();GB();DB();IB();wB();EB();xB();hB();AB();vB();TB();RB();yB();_B();SB();dB();cB();uB();lB();pB();iB();nB();aB();tB();oB();eB();ZF();$F();JF();XF();zF();KF();HF();QF();qF();WF();NF();LF();IF();OF();EF();fF();VF();TN();vF();P();E=class E extends B{static get runtime(){return N(this,"runtime",F)}static $p(){return U6}};jK=L(F,U6,"AgentMode",[[0,"UNSPECIFIED"],[1,"AGENT"],[2,"ASK"],[3,"PLAN"],[4,"DEBUG"],[5,"TRIAGE"],[7,"MULTITASK"],[8,"CUSTOM"]],1),TF=L(F,U6,"SubagentRunStatus",[[0,"UNSPECIFIED"],[1,"RUNNING"],[2,"BACKGROUNDED"],[3,"SUCCESS"],[4,"ERROR"],[5,"ABORTED"]],1),RF=L(F,U6,"SubagentDispatchTool",[[0,"UNSPECIFIED"],[1,"TASK"],[2,"CREATE_AGENT"],[3,"SEND_TO_AGENT"]],1),yF=L(F,U6,"CustomModeSource",[[0,"UNSPECIFIED"],[1,"AGENT_SKILL"],[2,"PLUGIN_SKILL"],[3,"REPO_SKILL"],[4,"MANAGED_SKILL"]],1),kC=L(F,U6,"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),PC=L(F,U6,"SubscriptionSource",[[0,"UNSPECIFIED"],[1,"SLACK"],[2,"GITHUB"],[3,"LINEAR"],[4,"ORIGIN"],[5,"FACTORY"]],1);zz=class zz extends E{constructor(Z){super();this.description="",this.prompt="",this.attachments=[],this.mode=OQ.UNSPECIFIED,this.respondingToMessageIds=[],this.environment=V6.UNSPECIFIED,F.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 F.util.equals(zz,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,OQ,V6,b$]}};b$=class b$ extends E{constructor(Z){super();this.machine={case:void 0},F.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 F.util.equals(b$,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",Kz,Hz,Qz,qz]}};Kz=class Kz extends E{constructor(Z){super();F.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 F.util.equals(Kz,Z,$)}static $(){return["SameMachineTarget"]}};Hz=class Hz extends E{constructor(Z){super();F.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 F.util.equals(Hz,Z,$)}static $(){return["NewCloudVmTarget|1 environment_build_id 9?|2 base_branch 9?"]}};Qz=class Qz extends E{constructor(Z){super();this.workerId="",F.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 F.util.equals(Qz,Z,$)}static $(){return["SelfHostedWorkerTarget|1 worker_id 9"]}};qz=class qz extends E{constructor(Z){super();this.labels=[],F.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 F.util.equals(qz,Z,$)}static $(){return["SelfHostedPoolTarget|1 pool 9?|2 labels #0*",Wz]}};Wz=class Wz extends E{constructor(Z){super();this.key="",this.value="",F.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 F.util.equals(Wz,Z,$)}static $(){return["SelfHostedWorkerLabel|1 key 9|2 value 9"]}};Nz=class Nz extends E{constructor(Z){super();this.conversationSteps=[],this.isBackground=!1,this.backgroundReason=wQ.UNSPECIFIED,F.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 F.util.equals(Nz,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?",m8,wQ]}};Bz=class Bz extends E{constructor(Z){super();this.error="",F.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 F.util.equals(Bz,Z,$)}static $(){return["TaskError|1 error 9"]}};Fz=class Fz extends E{constructor(Z){super();this.result={case:void 0},F.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 F.util.equals(Fz,Z,$)}static $(){return["TaskResult|1 success #0 result|2 error #1 result",Nz,Bz]}};Gz=class Gz extends E{constructor(Z){super();F.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 F.util.equals(Gz,Z,$)}static $(){return["TaskToolCall|1 args #0|2 result #1|3 cloud_agent_bc_id 9?",zz,Fz]}};Uz=class Uz extends E{constructor(Z){super();this.path="",this.branchName="",F.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 F.util.equals(Uz,Z,$)}static $(){return["SetActiveBranchArgs|1 path 9|2 branch_name 9"]}};Lz=class Lz extends E{constructor(Z){super();F.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 F.util.equals(Lz,Z,$)}static $(){return["SetActiveBranchSuccess"]}};Dz=class Dz extends E{constructor(Z){super();this.error="",F.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 F.util.equals(Dz,Z,$)}static $(){return["SetActiveBranchError|1 error 9"]}};Iz=class Iz extends E{constructor(Z){super();this.result={case:void 0},F.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 F.util.equals(Iz,Z,$)}static $(){return["SetActiveBranchResult|1 success #0 result|2 error #1 result",Lz,Dz]}};wz=class wz extends E{constructor(Z){super();F.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 F.util.equals(wz,Z,$)}static $(){return["SetActiveBranchToolCall|1 args #0|2 result #1",Uz,Iz]}};d$=class d$ extends E{constructor(Z){super();this.tool={case:void 0},this.hookAdditionalContexts=[],F.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 F.util.equals(d$,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|61 pi_read_tool_call #48 tool|62 pi_bash_tool_call #49 tool|63 pi_edit_tool_call #50 tool|64 pi_write_tool_call #51 tool|65 pi_grep_tool_call #52 tool|66 pi_find_tool_call #53 tool|67 pi_ls_tool_call #54 tool|68 connect_scm_tool_call #55 tool|69 search_conversations_tool_call #56 tool|70 create_goal_tool_call #57 tool|71 update_goal_tool_call #58 tool|73 get_agent_status_tool_call #59 tool|74 send_to_agent_tool_call #60 tool|75 read_agent_transcript_tool_call #61 tool|76 create_agent_tool_call #62 tool|77 stop_agent_tool_call #63 tool|79 write_canvas_tool_call #64 tool|80 read_canvas_tool_call #65 tool|81 generate_video_tool_call #66 tool|82 x_search_tool_call #67 tool|54 hook_additional_contexts #68*|57 tool_call_id 9?|59 started_at_ms 4?|60 completed_at_ms 4?",A6,R6,y6,_6,g6,d6,c6,u6,i6,n6,JZ,QZ,qZ,BZ,Gz,GZ,UZ,LZ,wZ,EZ,fZ,xZ,vZ,TZ,mZ,jZ,SZ,fz,gZ,bZ,dZ,lZ,iZ,nZ,aZ,oZ,eZ,Z$,$$,wz,J$,Y$,z$,K$,H$,Q$,q$,W$,N$,B$,F$,G$,L$,D$,I$,w$,E$,V$,x$,C$,h$,A$,v$,T$,R$,y$,m$,j$,p8]}};Oz=class Oz extends E{constructor(Z){super();F.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 F.util.equals(Oz,Z,$)}static $(){return["TruncatedToolCallArgs"]}};kz=class kz extends E{constructor(Z){super();F.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 F.util.equals(kz,Z,$)}static $(){return["TruncatedToolCallSuccess"]}};Pz=class Pz extends E{constructor(Z){super();this.error="",F.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 F.util.equals(Pz,Z,$)}static $(){return["TruncatedToolCallError|1 error 9"]}};Ez=class Ez extends E{constructor(Z){super();this.result={case:void 0},F.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 F.util.equals(Ez,Z,$)}static $(){return["TruncatedToolCallResult|1 success #0 result|2 error #1 result",kz,Pz]}};fz=class fz extends E{constructor(Z){super();this.originalStepBlobId=new Uint8Array(0),this.originalStepSizeBytes=0,F.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 F.util.equals(fz,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",Oz,Ez,d$]}};m8=class m8 extends E{constructor(Z){super();this.message={case:void 0},F.util.initPartial(Z,this)}static fromBinary(Z,$){return new m8().fromBinary(Z,$)}static fromJson(Z,$){return new m8().fromJson(Z,$)}static fromJsonString(Z,$){return new m8().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(m8,Z,$)}static $(){return["ConversationStep|1 assistant_message #0 message|2 tool_call #1 message|3 thinking_message #2 message",bz,d$,dz]}};Vz=class Vz extends E{constructor(Z){super();F.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 F.util.equals(Vz,Z,$)}static $(){return["TriggeringUserInfo|1 auth_id 9?|2 user_id 5?"]}};xz=class xz extends E{constructor(Z){super();this.parentToolCallId="",this.environment=V6.UNSPECIFIED,this.status=TF.UNSPECIFIED,F.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 F.util.equals(xz,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?",V6,TF,xN]}};Mz=class Mz extends E{constructor(Z){super();this.stepIndex=0,this.toolCallId="",this.tool=RF.UNSPECIFIED,this.backgrounded=!1,F.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 F.util.equals(Mz,Z,$)}static $(){return["SubagentDispatchStep|1 step_index 13|2 tool_call_id 9|3 tool #0|4 backgrounded 8",RF]}};Cz=class Cz extends E{constructor(Z){super();this.id="",this.label="",this.source=yF.UNSPECIFIED,F.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 F.util.equals(Cz,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?",yF]}};hz=class hz extends E{constructor(Z){super();this.id="",this.label="",F.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 F.util.equals(hz,Z,$)}static $(){return["SubmittedExitedCustomMode|1 id 9|2 label 9"]}};Az=class Az extends E{constructor(Z){super();this.nextMode=jK.UNSPECIFIED,F.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 F.util.equals(Az,Z,$)}static $(){return["CustomModeExitIntent|1 next_mode #0|2 exited_mode #1",jK,hz]}};vz=class vz extends E{constructor(Z){super();this.intent={case:void 0},F.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 F.util.equals(vz,Z,$)}static $(){return["CustomModeIntent|1 enter #0 intent|2 exit #1 intent",Cz,Az]}};Tz=class Tz extends E{constructor(Z){super();this.interactionId="",this.skippedQuestionIds=[],F.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 F.util.equals(Tz,Z,$)}static $(){return["InteractionResponseMetadata|1 interaction_id 9|2 response #0?|3 skipped_question_ids 9*",zK]}};Rz=class Rz extends E{constructor(Z){super();F.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 F.util.equals(Rz,Z,$)}static $(){return["SubscriptionEventDisplay|1 display_label 9?|2 resource_url 9?|3 subscription_id 9?"]}};yz=class yz extends E{constructor(Z){super();this.planId="",this.planTitle="",F.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 F.util.equals(yz,Z,$)}static $(){return["ExecutePlanInfo|1 plan_id 9|2 plan_title 9"]}};mz=class mz extends E{constructor(Z){super();F.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 F.util.equals(mz,Z,$)}static $(){return["ProjectDetails|1 name 9?|2 subagent #0?|3 side_chat #1?|4 init_description 9?",jz,_z]}};jz=class jz extends E{constructor(Z){super();F.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 F.util.equals(jz,Z,$)}static $(){return["ProjectSubagentDetails|2 store_dir 9?"]}};_z=class _z extends E{constructor(Z){super();this.storeDir="",F.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 F.util.equals(_z,Z,$)}static $(){return["ProjectSideChatDetails|1 store_dir 9"]}};K6=class K6 extends E{constructor(Z){super();this.text="",this.messageId="",this.mode=jK.UNSPECIFIED,this.conversationStateBlobId=new Uint8Array(0),this.hookAdditionalContexts=[],F.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 F.util.equals(K6,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?",g$,jK,kC,Vz,yz,Sz,p8,vz,mz,gz]}};Sz=class Sz extends E{constructor(Z){super();F.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 F.util.equals(Sz,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?",PC,Rz,Tz]}};gz=class gz extends E{constructor(Z){super();this.kind=mF.UNSPECIFIED,this.id="",this.displayName="",F.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 F.util.equals(gz,Z,$)}static $(){return["MessageSender|1 kind #0|2 id 9|3 display_name 9",mF]}};mF=L(F,U6,"MessageSender.Kind",[[0,"UNSPECIFIED"],[1,"AGENT"],[2,"VOICE_CALL"],[3,"MAIN_BOT"],[4,"PROJECT"]],1);bz=class bz extends E{constructor(Z){super();this.text="",F.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 F.util.equals(bz,Z,$)}static $(){return["AssistantMessage|1 text 9|2 started_at_ms 4?|3 completed_at_ms 4?"]}};dz=class dz extends E{constructor(Z){super();this.text="",this.durationMs=0,F.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 F.util.equals(dz,Z,$)}static $(){return["ThinkingMessage|1 text 9|2 duration_ms 13|3 started_at_ms 4?|4 completed_at_ms 4?"]}};H6=class H6 extends E{constructor(Z){super();this.command="",F.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 F.util.equals(H6,Z,$)}static $(){return["ShellCommand|1 command 9"]}};Q6=class Q6 extends E{constructor(Z){super();this.stdout="",this.stderr="",this.exitCode=0,F.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 F.util.equals(Q6,Z,$)}static $(){return["ShellOutput|1 stdout 9|2 stderr 9|3 exit_code 5"]}};j8=class j8 extends E{constructor(Z){super();this.turn={case:void 0},F.util.initPartial(Z,this)}static fromBinary(Z,$){return new j8().fromBinary(Z,$)}static fromJson(Z,$){return new j8().fromJson(Z,$)}static fromJsonString(Z,$){return new j8().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(j8,Z,$)}static $(){return["ConversationTurn|1 agent_conversation_turn #0 turn|2 shell_conversation_turn #1 turn",q6,W6]}};cz=class cz extends E{constructor(Z){super();this.plan="",F.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 F.util.equals(cz,Z,$)}static $(){return["ConversationPlan|1 plan 9"]}};c$=class c$ extends E{constructor(Z){super();this.id="",this.path="",F.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 F.util.equals(c$,Z,$)}static $(){return["PlanRegistryEntry|1 id 9|2 path 9"]}};uz=class uz extends E{constructor(Z){super();this.conversationId="",this.goalId="",this.objective="",this.status=M$.UNSPECIFIED,this.idleContinuationsWithoutToolCalls=0,this.continuationCount=0,F.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 F.util.equals(uz,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?",M$]}};u$=class u$ extends E{constructor(Z){super();this.turn={case:void 0},F.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 F.util.equals(u$,Z,$)}static $(){return["ConversationTurnStructure|1 agent_conversation_turn #0 turn|2 shell_conversation_turn #1 turn",lz,iz]}};q6=class q6 extends E{constructor(Z){super();this.steps=[],F.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 F.util.equals(q6,Z,$)}static $(){return["AgentConversationTurn|1 user_message #0|2 steps #1*|3 request_id 9?",K6,m8]}};lz=class lz extends E{constructor(Z){super();this.userMessage=new Uint8Array(0),this.steps=[],this.sendMessageStepIndices=[],this.subagentDispatchSteps=[],this.dynamicToolNames=[],this.longReasoningReminderExposureLogged=!1,F.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 F.util.equals(lz,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",Mz,pz]}};pz=class pz extends E{constructor(Z){super();this.remainingDelayCalls=0,F.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 F.util.equals(pz,Z,$)}static $(){return["LongReasoningReminderState|1 remaining_delay_calls 13"]}};W6=class W6 extends E{constructor(Z){super();F.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 F.util.equals(W6,Z,$)}static $(){return["ShellConversationTurn|1 shell_command #0|2 shell_output #1",H6,Q6]}};iz=class iz extends E{constructor(Z){super();this.shellCommand=new Uint8Array(0),this.shellOutput=new Uint8Array(0),F.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 F.util.equals(iz,Z,$)}static $(){return["ShellConversationTurnStructure|1 shell_command 12|2 shell_output 12"]}};N6=class N6 extends E{constructor(Z){super();this.summary="",F.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 F.util.equals(N6,Z,$)}static $(){return["ConversationSummary|1 summary 9"]}};nz=class nz extends E{constructor(Z){super();this.summarizedMessages=[],this.summary="",this.windowTail=0,this.summaryMessage=new Uint8Array(0),F.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 F.util.equals(nz,Z,$)}static $(){return["ConversationSummaryArchive|1 summarized_messages 12*|2 summary 9|3 window_tail 13|4 summary_message 12"]}};az=class az extends E{constructor(Z){super();this.id="",this.label="",this.estimatedTokens=0,F.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 F.util.equals(az,Z,$)}static $(){return["PromptTokenBreakdownCategory|1 id 9|2 label 9|3 estimated_tokens 13|4 character_count 13?"]}};rz=class rz extends E{constructor(Z){super();this.totalUsedTokens=0,this.maxTokens=0,this.categories=[],F.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 F.util.equals(rz,Z,$)}static $(){return["PromptTokenBreakdownSnapshot|1 total_used_tokens 13|2 max_tokens 13|3 categories #0*",az]}};sz=class sz extends E{constructor(Z){super();this.sourceType="",this.messageIndex=0,this.contentPath="",this.startOffset=0,this.endOffset=0,F.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 F.util.equals(sz,Z,$)}static $(){return["PromptContextSourceRef|1 source_type 9|3 message_index 13|4 content_path 9|5 start_offset 13|6 end_offset 13"]}};tz=class tz extends E{constructor(Z){super();this.id="",this.kind="",this.label="",this.categoryId="",this.estimatedTokens=0,this.characterCount=0,this.contentAvailable=!1,F.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 F.util.equals(tz,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?",sz]}};oz=class oz extends E{constructor(Z){super();this.schemaVersion=0,this.nodes=[],F.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 F.util.equals(oz,Z,$)}static $(){return["PromptContextUsageTree|1 schema_version 13|2 nodes #0*",tz]}};l$=class l$ extends E{constructor(Z){super();this.usedTokens=0,this.maxTokens=0,F.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 F.util.equals(l$,Z,$)}static $(){return["ConversationTokenDetails|1 used_tokens 13|2 max_tokens 13|3 breakdown #0?|4 prompt_context_usage_tree #1?|5 prompt_context_usage_snapshot_blob_id 12?",rz,oz]}};ez=class ez extends E{constructor(Z){super();F.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 F.util.equals(ez,Z,$)}static $(){return["FileState|1 content 9?|2 initial_content 9?"]}};ZK=class ZK extends E{constructor(Z){super();F.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 F.util.equals(ZK,Z,$)}static $(){return["FileStateStructure|1 content 12?|2 initial_content 12?"]}};$K=class $K extends E{constructor(Z){super();this.durationMs=UH.zero,this.timestampMs=UH.zero,F.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 F.util.equals($K,Z,$)}static $(){return["StepTiming|1 duration_ms 4|2 timestamp_ms 4"]}};JK=class JK extends E{constructor(Z){super();this.completedTurnCountCapped=0,F.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 F.util.equals(JK,Z,$)}static $(){return["TurnTelemetryState|1 completed_turn_count_capped 13|2 last_completed_turn_timestamp_ms 4?"]}};B6=class B6 extends E{constructor(Z){super();this.rootPromptMessagesJson=[],this.turns=[],this.todos=[],this.pendingToolCalls=[],this.fileStates={},this.summaryArchives=[],this.plans={},this.communicateUpdateHistory=[],this.communicateUpdateStatesByParentToolCallId={},F.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 F.util.equals(B6,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",j8,W0,l$,N6,cz,nz,ez,c$,F6,p$]}};F6=class F6 extends E{constructor(Z){super();this.step="",this.messageIndex=0,F.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 F.util.equals(F6,Z,$)}static $(){return["CommunicateUpdateHistoryEntry|1 step 9|3 message_index 13"]}};p$=class p$ extends E{constructor(Z){super();this.history=[],F.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 F.util.equals(p$,Z,$)}static $(){return["CommunicateUpdateTurnState|1 history #0*|2 final_summary 9?|3 completed_subtitle 9?",F6]}};G6=class G6 extends E{constructor(Z){super();this.createdTimestampMs=UH.zero,this.lastUsedTimestampMs=UH.zero,this.environment=V6.UNSPECIFIED,F.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 F.util.equals(G6,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?",y0,c8,V6,YK,b$]}};YK=class YK extends E{constructor(Z){super();this.bcId="",F.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 F.util.equals(YK,Z,$)}static $(){return["CloudSubagentReference|1 bc_id 9|2 transcript_path 9?"]}};XK=class XK extends E{constructor(Z){super();this.repoPath="",this.branchName="",F.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 F.util.equals(XK,Z,$)}static $(){return["TrackedGitRepo|1 repo_path 9|2 branch_name 9"]}};y0=class y0 extends E{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=[],F.util.initPartial(Z,this)}static fromBinary(Z,$){return new y0().fromBinary(Z,$)}static fromJson(Z,$){return new y0().fromJson(Z,$)}static fromJsonString(Z,$){return new y0().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(y0,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?",l$,jK,ZK,$K,G6,c$,XK,F6,p$,xz,uz,JK]}};zK=class zK extends E{constructor(Z){super();this.id=0,this.result={case:void 0},F.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 F.util.equals(zK,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",FZ,KK,VZ,NZ,t8,cZ,o8,rZ,MZ,Z6,O$]}};KK=class KK extends E{constructor(Z){super();F.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 F.util.equals(KK,Z,$)}static $(){return["AskQuestionInteractionResponse|1 result #0",r8]}}});class HK{}var D=q((rF)=>{Object.defineProperty(rF,"__esModule",{value:!0});rF.createNotification=rF.nextNotification=rF.errorNotification=rF.COMPLETE_NOTIFICATION=rF.isObservable=rF.isArrayLike=rF.isPromise=rF.readableStreamLikeToAsyncGenerator=rF.isFunction=rF.getObservableInputType=rF.ObservableInputType=rF.subscribeToArray=rF.fromPromise=rF.fromArrayLike=rF.from=rF.reportUnhandledError=rF.Observable=rF.operate=rF.config=rF.Subscriber=rF.Subscription=rF.UnsubscriptionError=void 0;class _K 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"}}WG.UnsubscriptionError=rK;class fK{initialTeardown;static EMPTY=(()=>{let Z=new fK;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 rK?Y.errors:[Y]}let{_finalizers:J}=this;if(J){this._finalizers=null;for(let Y of J)try{tF(Y)}catch(X){if(Z=Z??[],X instanceof rK)Z.push(...X.errors);else Z.push(X)}}if(Z)throw new rK(Z)}}add(Z){if(Z&&Z!==this)if(this.closed)tF(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)}}WG.Subscription=fK;if(typeof Symbol.dispose==="symbol")fK.prototype[Symbol.dispose]=fK.prototype.unsubscribe;function tF(Z){if(k0(Z))Z();else Z.unsubscribe()}class r$ extends fK{isStopped=!1;destination;_nextOverride=null;_errorOverride=null;_completeOverride=null;_onFinalize=null;constructor(Z,$){super();if(this.destination=Z instanceof r$?Z:bh(Z),this._nextOverride=$?.next??null,this._errorOverride=$?.error??null,this._completeOverride=$?.complete??null,this._onFinalize=$?.finalize??null,this._next=this._nextOverride?_h:this._next,this._error=this._errorOverride?Sh:this._error,this._complete=this._completeOverride?gh:this._complete,dh(Z))Z.add(this)}next(Z){if(this.isStopped)$q(qG(Z),this);else this._next(Z)}error(Z){if(this.isStopped)$q(QG(Z),this);else this.isStopped=!0,this._error(Z)}complete(){if(this.isStopped)$q(WG.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()}}}WG.Subscriber=r$;WG.config={onUnhandledError:null,onStoppedNotification:null};function _h(Z){try{this._nextOverride(Z)}catch($){this.destination.error($)}}function Sh(Z){try{this._errorOverride(Z)}catch($){this.destination.error($)}finally{this.unsubscribe()}}function gh(){try{this._completeOverride()}catch(Z){this.destination.error(Z)}finally{this.unsubscribe()}}class eF{partialObserver;constructor(Z){this.partialObserver=Z}next(Z){let{partialObserver:$}=this;if($.next)try{$.next(Z)}catch(J){kK(J)}}error(Z){let{partialObserver:$}=this;if($.error)try{$.error(Z)}catch(J){kK(J)}else kK(Z)}complete(){let{partialObserver:Z}=this;if(Z.complete)try{Z.complete()}catch($){kK($)}}}function bh(Z){return new eF(!Z||k0(Z)?{next:Z??void 0}:Z)}function $q(Z,$){let{onStoppedNotification:J}=WG.config;J&&setTimeout(()=>J(Z,$))}function dh(Z){return Z&&k0(Z.unsubscribe)&&k0(Z.add)}function ch({destination:Z,...$}){return new r$(Z,$)}WG.operate=ch;class S6{constructor(Z){if(Z)this._subscribe=Z}subscribe(Z){let $=Z instanceof r$?Z:new r$(Z);return $.add(this._trySubscribe($)),$}_trySubscribe(Z){try{return this._subscribe(Z)}catch($){Z.error($)}}forEach(Z){return new Promise(($,J)=>{let Y=new r$({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(uh,this)}[Symbol.asyncIterator](){let Z,$=!1,J,Y=!1,X=[],z=[],K=(W)=>{$=!0,J=W;while(z.length){let[G,L]=z.shift();L(W)}},Q=()=>{Y=!0;while(z.length){let[W]=z.shift();W({value:void 0,done:!0})}};return{next:()=>{if(!Z)Z=this.subscribe({next:(W)=>{if(z.length){let[G]=z.shift();G({value:W,done:!1})}else X.push(W)},error:K,complete:Q});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((W,G)=>{z.push([W,G])})},throw:(W)=>{return Z?.unsubscribe(),K(W),Promise.reject(W)},return:()=>{return Z?.unsubscribe(),Q(),Promise.resolve({value:void 0,done:!0})},[Symbol.asyncIterator](){return this}}}}WG.Observable=S6;function uh(Z,$){return $(Z)}function kK(Z){setTimeout(()=>{let{onUnhandledError:$}=WG.config;if($)$(Z);else throw Z})}WG.reportUnhandledError=kK;function lh(Z){switch(XG(Z)){case O0.Own:return Z;case O0.InteropObservable:return ph(Z);case O0.ArrayLike:return ZG(Z);case O0.Promise:return $G(Z);case O0.AsyncIterable:return JG(Z);case O0.Iterable:return ih(Z);case O0.ReadableStreamLike:return nh(Z)}}WG.from=lh;function ph(Z){return new S6(($)=>{let J=Z[Symbol.observable??"@@observable"]();if(k0(J.subscribe))return J.subscribe($);throw TypeError("Provided object does not correctly implement Symbol.observable")})}function ZG(Z){return new S6(($)=>{YG(Z,$)})}WG.fromArrayLike=ZG;function $G(Z){return new S6(($)=>{Z.then((J)=>{if(!$.closed)$.next(J),$.complete()},(J)=>$.error(J)).then(null,kK)})}WG.fromPromise=$G;function ih(Z){return new S6(($)=>{for(let J of Z)if($.next(J),$.closed)return;$.complete()})}function JG(Z){return new S6(($)=>{ah(Z,$).catch((J)=>$.error(J))})}function nh(Z){return JG(zG(Z))}async function ah(Z,$){for await(let J of Z)if($.next(J),$.closed)return;$.complete()}function YG(Z,$){let J=Z.length;for(let Y=0;Y<J;Y++){if($.closed)return;$.next(Z[Y])}$.complete()}WG.subscribeToArray=YG;var O0;(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"})(O0=WG.ObservableInputType||(WG.ObservableInputType={}));function XG(Z){if(Z instanceof S6)return O0.Own;if(th(Z))return O0.InteropObservable;if(HG(Z))return O0.ArrayLike;if(KG(Z))return O0.Promise;if(rh(Z))return O0.AsyncIterable;if(oh(Z))return O0.Iterable;if(sh(Z))return O0.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.`)}WG.getObservableInputType=XG;function k0(Z){return typeof Z==="function"}WG.isFunction=k0;function rh(Z){return Symbol.asyncIterator&&k0(Z?.[Symbol.asyncIterator])}async function*zG(Z){let $=Z.getReader();try{while(!0){let{value:J,done:Y}=await $.read();if(Y)return;yield J}}finally{$.releaseLock()}}WG.readableStreamLikeToAsyncGenerator=zG;function sh(Z){return k0(Z?.getReader)}function KG(Z){return k0(Z?.then)}WG.isPromise=KG;function th(Z){return k0(Z[Symbol.observable??"@@observable"])}function oh(Z){return k0(Z?.[Symbol.iterator])}function HG(Z){return Z&&typeof Z.length==="number"&&!k0(Z)}WG.isArrayLike=HG;function eh(Z){return!!Z&&(Z instanceof S6||k0(Z.lift)&&k0(Z.subscribe))}WG.isObservable=eh;WG.COMPLETE_NOTIFICATION=(()=>vH("C",void 0,void 0))();function QG(Z){return vH("E",void 0,Z)}WG.errorNotification=QG;function qG(Z){return vH("N",Z,void 0)}WG.nextNotification=qG;function vH(Z,$,J){return{kind:Z,value:$,error:J}}WG.createNotification=vH});var GG=q((FG)=>{Object.defineProperty(FG,"__esModule",{value:!0});FG.performanceTimestampProvider=void 0;FG.performanceTimestampProvider={now(){return(FG.performanceTimestampProvider.delegate||performance).now()},delegate:void 0}});var Xq=q((LG)=>{Object.defineProperty(LG,"__esModule",{value:!0});LG.animationFrameProvider=void 0;var IA=D();LG.animationFrameProvider={schedule(Z){let $=requestAnimationFrame,J=cancelAnimationFrame,{delegate:Y}=LG.animationFrameProvider;if(Y)$=Y.requestAnimationFrame,J=Y.cancelAnimationFrame;let X=$((z)=>{J=void 0,Z(z)});return new IA.Subscription(()=>J?.(X))},requestAnimationFrame(...Z){let{delegate:$}=LG.animationFrameProvider;return($?.requestAnimationFrame||requestAnimationFrame)(...Z)},cancelAnimationFrame(...Z){let{delegate:$}=LG.animationFrameProvider;return($?.cancelAnimationFrame||cancelAnimationFrame)(...Z)},delegate:void 0}});var OG=q((IG)=>{Object.defineProperty(IG,"__esModule",{value:!0});IG.animationFrames=void 0;var UA=D(),OA=GG(),wG=Xq();function kA(Z){return Z?DG(Z):fA}IG.animationFrames=kA;function DG(Z){return new UA.Observable(($)=>{let J=Z||OA.performanceTimestampProvider,Y=J.now(),X=0,z=()=>{if(!$.closed)X=wG.animationFrameProvider.requestAnimationFrame((K)=>{X=0;let Q=J.now();$.next({timestamp:Z?Q:K,elapsed:Q-Y}),z()})};return z(),()=>{if(X)wG.animationFrameProvider.cancelAnimationFrame(X)}})}var fA=DG()});var H0=q((fG)=>{Object.defineProperty(fG,"__esModule",{value:!0});fG.Subject=void 0;var zq=D();class kG extends zq.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 zq.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 zq.Observable((Z)=>this.subscribe(Z))}}fG.Subject=kG});var MG=q((VG)=>{Object.defineProperty(VG,"__esModule",{value:!0});VG.BehaviorSubject=void 0;var EA=H0();class PG extends EA.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)}}VG.BehaviorSubject=PG});var CH=q((hG)=>{Object.defineProperty(hG,"__esModule",{value:!0});hG.dateTimestampProvider=void 0;hG.dateTimestampProvider={now(){return(hG.dateTimestampProvider.delegate||Date).now()},delegate:void 0}});var Hq=q((vG)=>{Object.defineProperty(vG,"__esModule",{value:!0});vG.ReplaySubject=void 0;var PA=H0(),VA=CH();class AG extends PA.Subject{_bufferSize;_windowTime;_timestampProvider;_buffer=[];_infiniteTimeWindow=!0;constructor(Z=1/0,$=1/0,J=VA.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 Q=1;Q<J.length&&J[Q]<=z;Q+=2)K=Q;K&&J.splice(0,K+1)}}}vG.ReplaySubject=AG});var Qq=q((RG)=>{Object.defineProperty(RG,"__esModule",{value:!0});RG.AsyncSubject=void 0;var xA=H0();class TG extends xA.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()}}RG.AsyncSubject=TG});var SG=q((jG)=>{Object.defineProperty(jG,"__esModule",{value:!0});jG.Action=void 0;var MA=D();class mG extends MA.Subscription{constructor(Z,$){super()}schedule(Z,$=0){return this}}jG.Action=mG});var bG=q((gG)=>{Object.defineProperty(gG,"__esModule",{value:!0});gG.intervalProvider=void 0;gG.intervalProvider={setInterval(Z,$,...J){let{delegate:Y}=gG.intervalProvider;if(Y?.setInterval)return Y.setInterval(Z,$,...J);return setInterval(Z,$,...J)},clearInterval(Z){let{delegate:$}=gG.intervalProvider;return($?.clearInterval||clearInterval)(Z)},delegate:void 0}});var s$=q((dG)=>{Object.defineProperty(dG,"__esModule",{value:!0});dG.arrRemove=void 0;function hA(Z,$){if(Z){let J=Z.indexOf($);0<=J&&Z.splice(J,1)}}dG.arrRemove=hA});var EK=q((pG)=>{Object.defineProperty(pG,"__esModule",{value:!0});pG.AsyncAction=void 0;var AA=SG(),uG=bG(),vA=s$();class lG extends AA.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 uG.intervalProvider.setInterval(Z.flush.bind(Z,this),J)}recycleAsyncId(Z,$,J=0){if(J!=null&&this.delay===J&&this.pending===!1)return $;if($!=null)uG.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,vA.arrRemove)(J,this),Z!=null)this.id=this.recycleAsyncId($,Z,null);this.delay=null,super.unsubscribe()}}}pG.AsyncAction=lG});var sG=q((aG)=>{Object.defineProperty(aG,"__esModule",{value:!0});aG.TestTools=aG.Immediate=void 0;var CA=1,qq,RH={};function nG(Z){if(Z in RH)return delete RH[Z],!0;return!1}aG.Immediate={setImmediate(Z){let $=CA++;if(RH[$]=!0,!qq)qq=Promise.resolve();return qq.then(()=>nG($)&&Z()),$},clearImmediate(Z){nG(Z)}};aG.TestTools={pending(){return Object.keys(RH).length}}});var oG=q((tG)=>{Object.defineProperty(tG,"__esModule",{value:!0});tG.immediateProvider=void 0;var RA=sG(),{setImmediate:yA,clearImmediate:mA}=RA.Immediate;tG.immediateProvider={setImmediate(...Z){let{delegate:$}=tG.immediateProvider;return($?.setImmediate||yA)(...Z)},clearImmediate(Z){let{delegate:$}=tG.immediateProvider;return($?.clearImmediate||mA)(Z)},delegate:void 0}});var YL=q(($L)=>{Object.defineProperty($L,"__esModule",{value:!0});$L.AsapAction=void 0;var jA=EK(),eG=oG();class ZL extends jA.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=eG.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(eG.immediateProvider.clearImmediate($),Z._scheduled===$)Z._scheduled=void 0}return}}$L.AsapAction=ZL});var Nq=q((XL)=>{Object.defineProperty(XL,"__esModule",{value:!0});XL.Scheduler=void 0;var _A=CH();class Wq{schedulerActionCtor;static now=_A.dateTimestampProvider.now;constructor(Z,$=Wq.now){this.schedulerActionCtor=Z,this.now=$}now;schedule(Z,$=0,J){return new this.schedulerActionCtor(this,Z).schedule(J,$)}}XL.Scheduler=Wq});var PK=q((QL)=>{Object.defineProperty(QL,"__esModule",{value:!0});QL.AsyncScheduler=void 0;var KL=Nq();class HL extends KL.Scheduler{actions=[];_active=!1;_scheduled;constructor(Z,$=KL.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}}}QL.AsyncScheduler=HL});var FL=q((NL)=>{Object.defineProperty(NL,"__esModule",{value:!0});NL.AsapScheduler=void 0;var SA=PK();class WL extends SA.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}}}NL.AsapScheduler=WL});var wL=q((GL)=>{Object.defineProperty(GL,"__esModule",{value:!0});GL.asapScheduler=void 0;var gA=YL(),bA=FL();GL.asapScheduler=new bA.AsapScheduler(gA.AsapAction)});var A0=q((DL)=>{Object.defineProperty(DL,"__esModule",{value:!0});DL.asyncScheduler=void 0;var dA=EK(),cA=PK();DL.asyncScheduler=new cA.AsyncScheduler(dA.AsyncAction)});var fL=q((OL)=>{Object.defineProperty(OL,"__esModule",{value:!0});OL.QueueAction=void 0;var uA=EK();class UL extends uA.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=UL});var xL=q((PL)=>{Object.defineProperty(PL,"__esModule",{value:!0});PL.QueueScheduler=void 0;var lA=PK();class EL extends lA.AsyncScheduler{}PL.QueueScheduler=EL});var AL=q((ML)=>{Object.defineProperty(ML,"__esModule",{value:!0});ML.queueScheduler=void 0;var pA=fL(),iA=xL();ML.queueScheduler=new iA.QueueScheduler(pA.QueueAction)});var yL=q((TL)=>{Object.defineProperty(TL,"__esModule",{value:!0});TL.AnimationFrameAction=void 0;var nA=EK(),vL=Xq();class CL extends nA.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.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!==$)vL.animationFrameProvider.cancelAnimationFrame($),Z._scheduled=void 0;return}}TL.AnimationFrameAction=CL});var SL=q((jL)=>{Object.defineProperty(jL,"__esModule",{value:!0});jL.AnimationFrameScheduler=void 0;var aA=PK();class mL extends aA.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}}}jL.AnimationFrameScheduler=mL});var dL=q((gL)=>{Object.defineProperty(gL,"__esModule",{value:!0});gL.animationFrameScheduler=void 0;var rA=yL(),sA=SL();gL.animationFrameScheduler=new sA.AnimationFrameScheduler(rA.AnimationFrameAction)});var pL=q((uL)=>{Object.defineProperty(uL,"__esModule",{value:!0});uL.VirtualAction=uL.VirtualTimeScheduler=void 0;var tA=EK(),oA=D(),eA=PK();class cL extends eA.AsyncScheduler{maxFrames;static frameTimeFactor=10;frame=0;index=-1;constructor(Z=tK,$=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}}}uL.VirtualTimeScheduler=cL;class tK extends tA.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 tK(this.scheduler,this.work);return this.add(J),J.schedule(Z,$)}else return oA.Subscription.EMPTY}requestAsyncId(Z,$,J=0){this.delay=Z.frame+J;let{actions:Y}=Z;return Y.push(this),Y.sort(tK.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}}uL.VirtualAction=tK});var Bq=q((iL)=>{Object.defineProperty(iL,"__esModule",{value:!0});iL.rx=void 0;var $v=D();function Jv(Z,...$){return $.reduce(Yv,(0,$v.from)(Z))}iL.rx=Jv;function Yv(Z,$){return $(Z)}});var Fq=q((aL)=>{Object.defineProperty(aL,"__esModule",{value:!0});aL.pipe=void 0;function Xv(...Z){return Z.length===1?Z[0]:($)=>Z.reduce(zv,$)}aL.pipe=Xv;function zv(Z,$){return $(Z)}});var Y0=q((sL)=>{Object.defineProperty(sL,"__esModule",{value:!0});sL.noop=void 0;function Kv(){}sL.noop=Kv});var v0=q((oL)=>{Object.defineProperty(oL,"__esModule",{value:!0});oL.identity=void 0;function Hv(Z){return Z}oL.identity=Hv});var g6=q(($w)=>{Object.defineProperty($w,"__esModule",{value:!0});$w.EmptyError=void 0;class Zw extends Error{constructor(){super("no elements in sequence");this.name="EmptyError"}}$w.EmptyError=Zw});var zw=q((Yw)=>{Object.defineProperty(Yw,"__esModule",{value:!0});Yw.lastValueFrom=void 0;var Qv=g6();function qv(Z,$){let J=typeof $==="object";return new Promise((Y,X)=>{let z=!1,K;Z.subscribe({next:(Q)=>{K=Q,z=!0},error:X,complete:()=>{if(z)Y(K);else if(J)Y($.defaultValue);else X(new Qv.EmptyError)}})})}Yw.lastValueFrom=qv});var Qw=q((Kw)=>{Object.defineProperty(Kw,"__esModule",{value:!0});Kw.firstValueFrom=void 0;var Wv=D(),Nv=g6();function Bv(Z,$){let J=typeof $==="object";return new Promise((Y,X)=>{let z=new Wv.Subscriber({next:(K)=>{Y(K),z.unsubscribe()},error:X,complete:()=>{if(J)Y($.defaultValue);else X(new Nv.EmptyError)}});Z.subscribe(z)})}Kw.firstValueFrom=Bv});var Gq=q((Ww)=>{Object.defineProperty(Ww,"__esModule",{value:!0});Ww.ArgumentOutOfRangeError=void 0;class qw extends Error{constructor(){super("argument out of range");this.name="ArgumentOutOfRangeError"}}Ww.ArgumentOutOfRangeError=qw});var Lq=q((Fw)=>{Object.defineProperty(Fw,"__esModule",{value:!0});Fw.NotFoundError=void 0;class Bw extends Error{constructor(Z){super(Z);this.name="NotFoundError"}}Fw.NotFoundError=Bw});var wq=q((ww)=>{Object.defineProperty(ww,"__esModule",{value:!0});ww.SequenceError=void 0;class Lw extends Error{constructor(Z){super(Z);this.name="SequenceError"}}ww.SequenceError=Lw});var mH=q((Iw)=>{Object.defineProperty(Iw,"__esModule",{value:!0});Iw.isValidDate=void 0;function Fv(Z){return Z instanceof Date&&!isNaN(Z)}Iw.isValidDate=Fv});var c0=q((Ow)=>{Object.defineProperty(Ow,"__esModule",{value:!0});Ow.executeSchedule=void 0;function Gv(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}}Ow.executeSchedule=Gv});var jH=q((fw)=>{Object.defineProperty(fw,"__esModule",{value:!0});fw.timeout=fw.TimeoutError=void 0;var Lv=A0(),wv=mH(),Dq=D(),Dv=c0();class Iq extends Error{info;constructor(Z=null){super("Timeout has occurred");this.info=Z,this.name="TimeoutError"}}fw.TimeoutError=Iq;function Iv(Z,$){let{first:J,each:Y,with:X=Uv,scheduler:z=$??Lv.asyncScheduler,meta:K=null}=(0,wv.isValidDate)(Z)?{first:Z}:typeof Z==="number"?{each:Z}:Z;if(J==null&&Y==null)throw TypeError("No timeout provided.");return(Q)=>new Dq.Observable((W)=>{let G,L,O=null,f=0,P=(V)=>{L=(0,Dv.executeSchedule)(W,z,()=>{try{G.unsubscribe(),(0,Dq.from)(X({meta:K,lastValue:O,seen:f})).subscribe(W)}catch(T){W.error(T)}},V)};G=Q.subscribe((0,Dq.operate)({destination:W,next:(V)=>{L?.unsubscribe(),f++,W.next(O=V),Y>0&&P(Y)},finalize:()=>{L?.unsubscribe(),O=null}})),!f&&P(J!=null?typeof J==="number"?J:+J-z.now():Y)})}fw.timeout=Iv;function Uv(Z){throw new Iq(Z)}});var oK=q((Pw)=>{Object.defineProperty(Pw,"__esModule",{value:!0});Pw.isScheduler=void 0;var kv=D();function fv(Z){return Z&&(0,kv.isFunction)(Z.schedule)}Pw.isScheduler=fv});var VK=q((Mw)=>{Object.defineProperty(Mw,"__esModule",{value:!0});Mw.map=void 0;var xw=D();function Ev(Z){return($)=>new xw.Observable((J)=>{let Y=0;$.subscribe((0,xw.operate)({destination:J,next:(X)=>{J.next(Z(X,Y++))}}))})}Mw.map=Ev});var xK=q((Aw)=>{Object.defineProperty(Aw,"__esModule",{value:!0});Aw.mapOneOrManyArgs=void 0;var Pv=VK(),{isArray:Vv}=Array;function xv(Z,$){return Vv($)?Z(...$):Z($)}function Mv(Z){return(0,Pv.map)(($)=>xv(Z,$))}Aw.mapOneOrManyArgs=Mv});var _H=q((Tw)=>{Object.defineProperty(Tw,"__esModule",{value:!0});Tw.observeOn=void 0;var Uq=c0(),Cw=D();function hv(Z,$=0){return(J)=>new Cw.Observable((Y)=>{J.subscribe((0,Cw.operate)({destination:Y,next:(X)=>(0,Uq.executeSchedule)(Y,Z,()=>Y.next(X),$),error:(X)=>(0,Uq.executeSchedule)(Y,Z,()=>Y.error(X),$),complete:()=>(0,Uq.executeSchedule)(Y,Z,()=>Y.complete(),$)}))})}Tw.observeOn=hv});var SH=q((yw)=>{Object.defineProperty(yw,"__esModule",{value:!0});yw.subscribeOn=void 0;var Av=D();function vv(Z,$=0){return(J)=>new Av.Observable((Y)=>{Y.add(Z.schedule(()=>J.subscribe(Y),$))})}yw.subscribeOn=vv});var Sw=q((jw)=>{Object.defineProperty(jw,"__esModule",{value:!0});jw.scheduleObservable=void 0;var Cv=D(),Tv=_H(),Rv=SH();function yv(Z,$){return(0,Cv.from)(Z).pipe((0,Rv.subscribeOn)($),(0,Tv.observeOn)($))}jw.scheduleObservable=yv});var dw=q((gw)=>{Object.defineProperty(gw,"__esModule",{value:!0});gw.schedulePromise=void 0;var mv=D(),jv=_H(),_v=SH();function Sv(Z,$){return(0,mv.from)(Z).pipe((0,_v.subscribeOn)($),(0,jv.observeOn)($))}gw.schedulePromise=Sv});var pw=q((uw)=>{Object.defineProperty(uw,"__esModule",{value:!0});uw.scheduleArray=void 0;var gv=D(),cw=c0();function bv(Z,$){return new gv.Observable((J)=>{let Y=0,X=()=>{if(Y===Z.length)J.complete();else J.next(Z[Y++]),(0,cw.executeSchedule)(J,$,X)};return(0,cw.executeSchedule)(J,$,X)})}uw.scheduleArray=bv});var rw=q((nw)=>{Object.defineProperty(nw,"__esModule",{value:!0});nw.iterator=nw.getSymbolIterator=void 0;function iw(){if(typeof Symbol!=="function"||!Symbol.iterator)return"@@iterator";return Symbol.iterator}nw.getSymbolIterator=iw;nw.iterator=iw()});var Oq=q((ow)=>{Object.defineProperty(ow,"__esModule",{value:!0});ow.scheduleIterable=void 0;var sw=D(),cv=rw(),tw=c0();function uv(Z,$){return new sw.Observable((J)=>{let Y;return(0,tw.executeSchedule)(J,$,()=>{Y=Z[cv.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,sw.isFunction)(Y?.return)&&Y.return()})}ow.scheduleIterable=uv});var kq=q(($D)=>{Object.defineProperty($D,"__esModule",{value:!0});$D.scheduleAsyncIterable=void 0;var lv=D(),ZD=c0();function pv(Z,$){if(!Z)throw Error("Iterable cannot be null");return new lv.Observable((J)=>{(0,ZD.executeSchedule)(J,$,()=>{let Y=Z[Symbol.asyncIterator]();(0,ZD.executeSchedule)(J,$,()=>{Y.next().then((X)=>{if(X.done)J.complete();else J.next(X.value)})},0,!0)})})}$D.scheduleAsyncIterable=pv});var zD=q((YD)=>{Object.defineProperty(YD,"__esModule",{value:!0});YD.scheduleReadableStreamLike=void 0;var iv=D(),nv=kq();function av(Z,$){return(0,nv.scheduleAsyncIterable)((0,iv.readableStreamLikeToAsyncGenerator)(Z),$)}YD.scheduleReadableStreamLike=av});var eK=q((KD)=>{Object.defineProperty(KD,"__esModule",{value:!0});KD.scheduled=void 0;var rv=Sw(),sv=dw(),tv=pw(),ov=Oq(),ev=kq(),w8=D(),ZC=zD();function $C(Z,$){switch((0,w8.getObservableInputType)(Z)){case w8.ObservableInputType.Own:case w8.ObservableInputType.InteropObservable:return(0,rv.scheduleObservable)(Z,$);case w8.ObservableInputType.Promise:return(0,sv.schedulePromise)(Z,$);case w8.ObservableInputType.ArrayLike:return(0,tv.scheduleArray)(Z,$);case w8.ObservableInputType.Iterable:return(0,ov.scheduleIterable)(Z,$);case w8.ObservableInputType.AsyncIterable:return(0,ev.scheduleAsyncIterable)(Z,$);case w8.ObservableInputType.ReadableStreamLike:return(0,ZC.scheduleReadableStreamLike)(Z,$)}}KD.scheduled=$C});var Eq=q((QD)=>{Object.defineProperty(QD,"__esModule",{value:!0});QD.bindCallbackInternals=void 0;var JC=oK(),YC=D(),XC=xK(),zC=Qq(),KC=eK();function fq(Z,$,J,Y){if(J)if((0,JC.isScheduler)(J))Y=J;else return function(...X){return(0,XC.mapOneOrManyArgs)(J)(fq(Z,$,Y).apply(this,X))};if(Y)return function(...X){return(0,KC.scheduled)(fq(Z,$).apply(this,X),Y)};return function(...X){let z=new zC.AsyncSubject,K=!0;return new YC.Observable((Q)=>{let W=z.subscribe(Q);if(K){K=!1;let G=!1,L=!1;if($.apply(this,[...X,(...O)=>{if(Z){let f=O.shift();if(f!=null){z.error(f);return}}if(z.next(1<O.length?O:O[0]),L=!0,G)z.complete()}]),L)z.complete();G=!0}return W})}}QD.bindCallbackInternals=fq});var BD=q((WD)=>{Object.defineProperty(WD,"__esModule",{value:!0});WD.bindCallback=void 0;var HC=Eq();function QC(Z,$,J){return(0,HC.bindCallbackInternals)(!1,Z,$,J)}WD.bindCallback=QC});var LD=q((FD)=>{Object.defineProperty(FD,"__esModule",{value:!0});FD.bindNodeCallback=void 0;var qC=Eq();function WC(Z,$,J){return(0,qC.bindCallbackInternals)(!0,Z,$,J)}FD.bindNodeCallback=WC});var Pq=q((DD)=>{Object.defineProperty(DD,"__esModule",{value:!0});DD.arrayOrObject=DD.argsArgArrayOrObject=void 0;var{isArray:NC}=Array,{getPrototypeOf:BC,prototype:FC,keys:GC}=Object;function LC(Z){if(Z.length===1){let $=Z[0],J=wD($);if(J)return J}return{args:Z,keys:null}}DD.argsArgArrayOrObject=LC;function wD(Z){if(NC(Z))return{args:Z,keys:null};if(wC(Z)){let $=GC(Z);return{args:$.map((J)=>Z[J]),keys:$}}return null}DD.arrayOrObject=wD;function wC(Z){return Z&&typeof Z==="object"&&BC(Z)===FC}});var Vq=q((UD)=>{Object.defineProperty(UD,"__esModule",{value:!0});UD.createObject=void 0;function IC(Z,$){return Z.reduce((J,Y,X)=>(J[Y]=$[X],J),{})}UD.createObject=IC});var M6=q((kD)=>{Object.defineProperty(kD,"__esModule",{value:!0});kD.EMPTY=void 0;var UC=D();kD.EMPTY=new UC.Observable((Z)=>Z.complete())});var gH=q((VD)=>{Object.defineProperty(VD,"__esModule",{value:!0});VD.combineLatestInit=VD.combineLatest=void 0;var xq=D(),OC=Pq(),ED=v0(),kC=Vq(),fC=M6();function EC(Z,$){let J=(0,OC.arrayOrObject)(Z);if(!J)throw TypeError("sources must be an array or object");let{args:Y,keys:X}=J;if(Y.length===0)return fC.EMPTY;return new xq.Observable(PD(Y,X?(z)=>(0,kC.createObject)(X,z):$?(z)=>$(...z):ED.identity))}VD.combineLatest=EC;function PD(Z,$=ED.identity){return(J)=>{let{length:Y}=Z,X=Array(Y),z=Y,K=Y;for(let Q=0;Q<Y;Q++){let W=(0,xq.from)(Z[Q]),G=!1;W.subscribe((0,xq.operate)({destination:J,next:(L)=>{if(X[Q]=L,!G)G=!0,K--;if(!K)J.next($(Array.from(X)))},complete:()=>{if(!--z)J.complete()}}))}}}VD.combineLatestInit=PD});var bH=q((MD)=>{Object.defineProperty(MD,"__esModule",{value:!0});MD.mergeInternals=void 0;var Mq=D(),VC=c0();function xC(Z,$,J,Y,X,z,K,Q){let W=[],G=0,L=0,O=!1,f=()=>{if(O&&!W.length&&!G)$.complete()},P=(T)=>G<Y?V(T):W.push(T),V=(T)=>{z&&$.next(T),G++;let E0=!1;(0,Mq.from)(J(T,L++)).subscribe((0,Mq.operate)({destination:$,next:(X0)=>{if(X?.(X0),z)P(X0);else $.next(X0)},complete:()=>{E0=!0},finalize:()=>{if(E0)try{G--;while(W.length&&G<Y){let X0=W.shift();if(K)(0,VC.executeSchedule)($,K,()=>V(X0));else V(X0)}f()}catch(X0){$.error(X0)}}}))};return Z.subscribe((0,Mq.operate)({destination:$,next:P,complete:()=>{O=!0,f()}})),()=>{Q?.()}}MD.mergeInternals=xC});var t$=q((AD)=>{Object.defineProperty(AD,"__esModule",{value:!0});AD.mergeMap=void 0;var MC=D(),hC=bH();function AC(Z,$=1/0){return(J)=>new MC.Observable((Y)=>(0,hC.mergeInternals)(J,Y,Z,$))}AD.mergeMap=AC});var ZH=q((CD)=>{Object.defineProperty(CD,"__esModule",{value:!0});CD.mergeAll=void 0;var vC=t$(),CC=v0();function TC(Z=1/0){return(0,vC.mergeMap)(CC.identity,Z)}CD.mergeAll=TC});var dH=q((RD)=>{Object.defineProperty(RD,"__esModule",{value:!0});RD.concatAll=void 0;var RC=ZH();function yC(){return(0,RC.mergeAll)(1)}RD.concatAll=yC});var D8=q((mD)=>{Object.defineProperty(mD,"__esModule",{value:!0});mD.popNumber=mD.popScheduler=mD.popResultSelector=void 0;var mC=D(),jC=oK();function hq(Z){return Z[Z.length-1]}function _C(Z){return(0,mC.isFunction)(hq(Z))?Z.pop():void 0}mD.popResultSelector=_C;function SC(Z){return(0,jC.isScheduler)(hq(Z))?Z.pop():void 0}mD.popScheduler=SC;function gC(Z,$){return typeof hq(Z)==="number"?Z.pop():$}mD.popNumber=gC});var Aq=q((_D)=>{Object.defineProperty(_D,"__esModule",{value:!0});_D.concat=void 0;var cC=D(),uC=dH(),lC=D8(),pC=eK();function iC(...Z){let $=(0,lC.popScheduler)(Z);return(0,uC.concatAll)()($?(0,pC.scheduled)(Z,$):(0,cC.from)(Z))}_D.concat=iC});var $H=q((bD)=>{Object.defineProperty(bD,"__esModule",{value:!0});bD.defer=void 0;var gD=D();function nC(Z){return new gD.Observable(($)=>{(0,gD.from)(Z()).subscribe($)})}bD.defer=nC});var lD=q((cD)=>{Object.defineProperty(cD,"__esModule",{value:!0});cD.connectable=void 0;var aC=H0(),rC=D(),sC=$H(),tC={connector:()=>new aC.Subject,resetOnDisconnect:!0};function oC(Z,$=tC){let J=null,{connector:Y,resetOnDisconnect:X=!0}=$,z=Y(),K=new rC.Observable((Q)=>{return z.subscribe(Q)});return K.connect=()=>{if(!J||J.closed){if(J=(0,sC.defer)(()=>Z).subscribe(z),X)J.add(()=>z=Y())}return J},K}cD.connectable=oC});var nD=q((pD)=>{Object.defineProperty(pD,"__esModule",{value:!0});pD.forkJoin=void 0;var vq=D(),eC=Pq(),ZT=D8(),$T=xK(),JT=Vq(),YT=g6();function XT(...Z){let $=(0,ZT.popResultSelector)(Z),{args:J,keys:Y}=(0,eC.argsArgArrayOrObject)(Z),X=new vq.Observable((z)=>{let{length:K}=J;if(!K){z.complete();return}let Q=Array(K),W=K,G=K;for(let L=0;L<K;L++){let O=!1;(0,vq.from)(J[L]).subscribe((0,vq.operate)({destination:z,next:(f)=>{if(!O)O=!0,G--;Q[L]=f},complete:()=>W--,finalize:()=>{if(!W||!O)if(G===0)z.next(Y?(0,JT.createObject)(Y,Q):Q),z.complete();else z.error(new YT.EmptyError)}}))}});return $?(0,$T.mapOneOrManyArgs)($)(X):X}pD.forkJoin=XT});var $2=q((eD)=>{Object.defineProperty(eD,"__esModule",{value:!0});eD.fromEvent=void 0;var b6=D(),zT=xK(),KT=["addListener","removeListener"],HT=["addEventListener","removeEventListener"],QT=["on","off"];function rD(Z,$,J,Y){if((0,b6.isFunction)(J))Y=J,J=void 0;if(Y)return(0,zT.mapOneOrManyArgs)(Y)(rD(Z,$,J));let X=sD(Z)||tD(Z)||oD(Z);if(!X&&!(0,b6.isArrayLike)(Z))throw TypeError("Invalid event target");return new b6.Observable((z)=>{let K=(...Q)=>z.next(1<Q.length?Q:Q[0]);if(X)aD(K,z,Z,$,J);else for(let Q=0;Q<Z.length&&!z.closed;Q++){let W=Z[Q];aD(K,z,W,$,J)}})}eD.fromEvent=rD;function aD(Z,$,J,Y,X){let[z,K]=qT(J);if(!z||!K)throw TypeError("Invalid event target");J[z](Y,Z,X),$.add(()=>J[K](Y,Z,X))}function qT(Z){return oD(Z)?HT:sD(Z)?KT:tD(Z)?QT:[]}function sD(Z){return(0,b6.isFunction)(Z.addListener)&&(0,b6.isFunction)(Z.removeListener)}function tD(Z){return(0,b6.isFunction)(Z.on)&&(0,b6.isFunction)(Z.off)}function oD(Z){return(0,b6.isFunction)(Z.addEventListener)&&(0,b6.isFunction)(Z.removeEventListener)}});var K2=q((X2)=>{Object.defineProperty(X2,"__esModule",{value:!0});X2.fromEventPattern=void 0;var J2=D(),WT=xK();function Y2(Z,$,J){if(J)return(0,WT.mapOneOrManyArgs)(J)(Y2(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})}X2.fromEventPattern=Y2});var W2=q((Q2)=>{Object.defineProperty(Q2,"__esModule",{value:!0});Q2.generate=void 0;var H2=v0(),NT=oK(),BT=$H(),FT=Oq();function GT(Z,$,J,Y,X){let z,K;if(arguments.length===1)({initialState:K,condition:$,iterate:J,resultSelector:z=H2.identity,scheduler:X}=Z);else if(K=Z,!Y||(0,NT.isScheduler)(Y))z=H2.identity,X=Y;else z=Y;function*Q(){for(let W=K;!$||$(W);W=J(W))yield z(W)}return(0,BT.defer)(X?()=>(0,FT.scheduleIterable)(Q(),X):Q)}Q2.generate=GT});var F2=q((N2)=>{Object.defineProperty(N2,"__esModule",{value:!0});N2.iif=void 0;var LT=$H();function wT(Z,$,J){return(0,LT.defer)(()=>Z()?$:J)}N2.iif=wT});var I8=q((L2)=>{Object.defineProperty(L2,"__esModule",{value:!0});L2.timer=void 0;var DT=D(),IT=A0(),UT=oK(),OT=mH(),G2=c0();function kT(Z=0,$,J=IT.asyncScheduler){let Y=-1;if($!=null)if((0,UT.isScheduler)($))J=$;else Y=$;return new DT.Observable((X)=>{let z=(0,OT.isValidDate)(Z)?+Z-J.now():Z;if(z<0)z=0;let K=0;return(0,G2.executeSchedule)(X,J,()=>{if(X.next(K++),0<=Y)(0,G2.executeSchedule)(X,J,()=>{X.next(K++)},Y,!0);else X.complete()},z)})}L2.timer=kT});var Cq=q((D2)=>{Object.defineProperty(D2,"__esModule",{value:!0});D2.interval=void 0;var fT=A0(),ET=I8();function PT(Z=0,$=fT.asyncScheduler){if(Z<0)Z=0;return(0,ET.timer)(Z,Z,$)}D2.interval=PT});var E2=q((k2)=>{Object.defineProperty(k2,"__esModule",{value:!0});k2.merge=void 0;var U2=D(),VT=ZH(),xT=M6(),O2=D8(),MT=eK();function hT(...Z){let $=(0,O2.popScheduler)(Z),J=(0,O2.popNumber)(Z,1/0),Y=Z;return!Y.length?xT.EMPTY:Y.length===1?(0,U2.from)(Y[0]):(0,VT.mergeAll)(J)($?(0,MT.scheduled)(Y,$):(0,U2.from)(Y))}k2.merge=hT});var x2=q((P2)=>{Object.defineProperty(P2,"__esModule",{value:!0});P2.of=void 0;var AT=D();function vT(...Z){return(0,AT.fromArrayLike)(Z)}P2.of=vT});var JH=q((M2)=>{Object.defineProperty(M2,"__esModule",{value:!0});M2.argsOrArgArray=void 0;var{isArray:CT}=Array;function TT(Z){return Z.length===1&&CT(Z[0])?Z[0]:Z}M2.argsOrArgArray=TT});var Rq=q((v2)=>{Object.defineProperty(v2,"__esModule",{value:!0});v2.onErrorResumeNext=void 0;var Tq=D(),RT=JH(),A2=Y0();function yT(...Z){let $=(0,RT.argsOrArgArray)(Z);return new Tq.Observable((J)=>{let Y=0,X=()=>{if(Y<$.length){let z;try{z=(0,Tq.from)($[Y++])}catch(Q){X();return}let K=(0,Tq.operate)({destination:J,error:A2.noop,complete:A2.noop});z.subscribe(K),K.add(X)}else J.complete()};X()})}v2.onErrorResumeNext=yT});var y2=q((T2)=>{Object.defineProperty(T2,"__esModule",{value:!0});T2.not=void 0;function mT(Z,$){return(J,Y)=>!Z.call($,J,Y)}T2.not=mT});var cH=q((j2)=>{Object.defineProperty(j2,"__esModule",{value:!0});j2.filter=void 0;var m2=D();function jT(Z,$){return(J)=>new m2.Observable((Y)=>{let X=0;J.subscribe((0,m2.operate)({destination:Y,next:(z)=>Z.call($,z,X++)&&Y.next(z)}))})}j2.filter=jT});var c2=q((b2)=>{Object.defineProperty(b2,"__esModule",{value:!0});b2.partition=void 0;var _T=y2(),S2=cH(),g2=D();function ST(Z,$,J){return[(0,S2.filter)($,J)((0,g2.from)(Z)),(0,S2.filter)((0,_T.not)($,J))((0,g2.from)(Z))]}b2.partition=ST});var yq=q((l2)=>{Object.defineProperty(l2,"__esModule",{value:!0});l2.raceInit=l2.race=void 0;var uH=D(),gT=JH();function bT(...Z){return Z=(0,gT.argsOrArgArray)(Z),Z.length===1?(0,uH.from)(Z[0]):new uH.Observable(u2(Z))}l2.race=bT;function u2(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)}})))}}l2.raceInit=u2});var r2=q((n2)=>{Object.defineProperty(n2,"__esModule",{value:!0});n2.range=void 0;var cT=D(),uT=M6(),i2=c0();function lT(Z,$,J){if($==null)$=Z,Z=0;if($<=0)return uT.EMPTY;let Y=$+Z;return new cT.Observable(J?(X)=>{let z=Z,K=()=>{if(z<Y){if(X.next(z++),!X.closed)(0,i2.executeSchedule)(X,J,K)}else X.complete()};(0,i2.executeSchedule)(X,J,K)}:(X)=>{let z=Z;while(z<Y&&!X.closed)X.next(z++);X.complete()})}n2.range=lT});var o2=q((s2)=>{Object.defineProperty(s2,"__esModule",{value:!0});s2.throwError=void 0;var pT=D();function iT(Z){return new pT.Observable(($)=>{$.error(Z())})}s2.throwError=iT});var JI=q((ZI)=>{Object.defineProperty(ZI,"__esModule",{value:!0});ZI.using=void 0;var e2=D(),nT=M6();function aT(Z,$){return new e2.Observable((J)=>{let Y=Z(),X=$(Y);return(X?(0,e2.from)(X):nT.EMPTY).subscribe(J),()=>{if(Y)Y.unsubscribe()}})}ZI.using=aT});var lH=q((YI)=>{Object.defineProperty(YI,"__esModule",{value:!0});YI.zip=void 0;var mq=D(),rT=JH(),sT=M6(),tT=D8();function oT(...Z){let $=(0,tT.popResultSelector)(Z),J=(0,rT.argsOrArgArray)(Z);return J.length?new mq.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,mq.from)(J[K]).subscribe((0,mq.operate)({destination:Y,next:(Q)=>{if(X[K].push(Q),X.every((W)=>W.length)){let W=X.map((G)=>G.shift());if(Y.next($?$(...W):W),X.some((G,L)=>!G.length&&z[L]))Y.complete()}},complete:()=>{z[K]=!0,!X[K].length&&Y.complete()}}));return()=>{X=z=null}}):sT.EMPTY}YI.zip=oT});var HI=q((zI)=>{Object.defineProperty(zI,"__esModule",{value:!0});zI.NEVER=void 0;var eT=D(),ZR=Y0();zI.NEVER=new eT.Observable(ZR.noop)});var qI=q((QI)=>{Object.defineProperty(QI,"__esModule",{value:!0})});var jq=q((WI)=>{Object.defineProperty(WI,"__esModule",{value:!0});WI.audit=void 0;var pH=D();function $R(Z){return($)=>new pH.Observable((J)=>{let Y=!1,X=null,z=null,K=!1,Q=()=>{if(z?.unsubscribe(),z=null,Y){Y=!1;let G=X;X=null,J.next(G)}K&&J.complete()},W=()=>{z=null,K&&J.complete()};$.subscribe((0,pH.operate)({destination:J,next:(G)=>{if(Y=!0,X=G,!z)(0,pH.from)(Z(G)).subscribe(z=(0,pH.operate)({destination:J,next:Q,complete:W}))},complete:()=>{K=!0,(!Y||!z||z.closed)&&J.complete()}}))})}WI.audit=$R});var GI=q((BI)=>{Object.defineProperty(BI,"__esModule",{value:!0});BI.auditTime=void 0;var JR=A0(),YR=jq(),XR=I8();function zR(Z,$=JR.asyncScheduler){return(0,YR.audit)(()=>(0,XR.timer)(Z,$))}BI.auditTime=zR});var DI=q((LI)=>{Object.defineProperty(LI,"__esModule",{value:!0});LI.buffer=void 0;var iH=D(),KR=Y0();function HR(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:KR.noop})),$.subscribe((0,iH.operate)({destination:J,next:(X)=>Y.push(X),complete:()=>{J.next(Y),J.complete()}})),()=>{Y=null}})}LI.buffer=HR});var kI=q((UI)=>{Object.defineProperty(UI,"__esModule",{value:!0});UI.bufferCount=void 0;var II=D(),QR=s$();function qR(Z,$=null){return $=$??Z,(J)=>new II.Observable((Y)=>{let X=[],z=0;J.subscribe((0,II.operate)({destination:Y,next:(K)=>{let Q=null;if(z++%$===0)X.push([]);for(let W of X)if(W.push(K),Z<=W.length)Q=Q??[],Q.push(W);if(Q)for(let W of Q)(0,QR.arrRemove)(X,W),Y.next(W)},complete:()=>{for(let K of X)Y.next(K);Y.complete()},finalize:()=>{X=null}}))})}UI.bufferCount=qR});var VI=q((EI)=>{Object.defineProperty(EI,"__esModule",{value:!0});EI.bufferTime=void 0;var _q=D(),WR=s$(),NR=A0(),BR=D8(),fI=c0();function FR(Z,...$){let J=(0,BR.popScheduler)($)??NR.asyncScheduler,Y=$[0]??null,X=$[1]||1/0;return(z)=>new _q.Observable((K)=>{let Q=[],W=!1,G=(f)=>{let{buffer:P,subs:V}=f;V.unsubscribe(),(0,WR.arrRemove)(Q,f),K.next(P),W&&L()},L=()=>{if(Q){let f=new _q.Subscription;K.add(f);let V={buffer:[],subs:f};Q.push(V),(0,fI.executeSchedule)(f,J,()=>G(V),Z)}};if(Y!==null&&Y>=0)(0,fI.executeSchedule)(K,J,L,Y,!0);else W=!0;L();let O=(0,_q.operate)({destination:K,next:(f)=>{let P=Q.slice();for(let V of P){let{buffer:T}=V;T.push(f),X<=T.length&&G(V)}},complete:()=>{while(Q?.length)K.next(Q.shift().buffer);O?.unsubscribe(),K.complete(),K.unsubscribe()},finalize:()=>Q=null});z.subscribe(O)})}EI.bufferTime=FR});var AI=q((MI)=>{Object.defineProperty(MI,"__esModule",{value:!0});MI.bufferToggle=void 0;var o$=D(),xI=Y0(),GR=s$();function LR(Z,$){return(J)=>new o$.Observable((Y)=>{let X=[];(0,o$.from)(Z).subscribe((0,o$.operate)({destination:Y,next:(z)=>{let K=[];X.push(K);let Q=new o$.Subscription,W=()=>{(0,GR.arrRemove)(X,K),Y.next(K),Q.unsubscribe()};Q.add((0,o$.from)($(z)).subscribe((0,o$.operate)({destination:Y,next:W,complete:xI.noop})))},complete:xI.noop})),J.subscribe((0,o$.operate)({destination:Y,next:(z)=>{for(let K of X)K.push(z)},complete:()=>{while(X.length>0)Y.next(X.shift());Y.complete()}}))})}MI.bufferToggle=LR});var TI=q((vI)=>{Object.defineProperty(vI,"__esModule",{value:!0});vI.bufferWhen=void 0;var nH=D(),wR=Y0();function DR(Z){return($)=>new nH.Observable((J)=>{let Y=null,X=null,z=()=>{X?.unsubscribe();let K=Y;Y=[],K&&J.next(K),(0,nH.from)(Z()).subscribe(X=(0,nH.operate)({destination:J,next:z,complete:wR.noop}))};z(),$.subscribe((0,nH.operate)({destination:J,next:(K)=>Y?.push(K),complete:()=>{Y&&J.next(Y),J.complete()},finalize:()=>Y=X=null}))})}vI.bufferWhen=DR});var jI=q((yI)=>{Object.defineProperty(yI,"__esModule",{value:!0});yI.catchError=void 0;var Sq=D();function RI(Z){return($)=>new Sq.Observable((J)=>{let Y=null,X=!1,z;if(Y=$.subscribe((0,Sq.operate)({destination:J,error:(K)=>{if(z=(0,Sq.from)(Z(K,RI(Z)($))),Y)Y.unsubscribe(),Y=null,z.subscribe(J);else X=!0}})),X)Y.unsubscribe(),Y=null,z.subscribe(J)})}yI.catchError=RI});var gq=q((_I)=>{Object.defineProperty(_I,"__esModule",{value:!0});_I.scanInternals=void 0;var IR=D();function UR(Z,$,J,Y,X,z,K){let Q=J,W=$,G=0;z.subscribe((0,IR.operate)({destination:K,next:(L)=>{let O=G++;W=Q?Z(W,L,O):(Q=!0,L),Y&&K.next(W)},complete:X?()=>{Q&&K.next(W),K.complete()}:void 0}))}_I.scanInternals=UR});var MK=q((gI)=>{Object.defineProperty(gI,"__esModule",{value:!0});gI.reduce=void 0;var OR=gq(),kR=D();function fR(Z,$){let J=arguments.length>=2;return(Y)=>new kR.Observable((X)=>(0,OR.scanInternals)(Z,$,J,!1,!0,Y,X))}gI.reduce=fR});var bq=q((dI)=>{Object.defineProperty(dI,"__esModule",{value:!0});dI.toArray=void 0;var ER=MK(),PR=D(),VR=(Z,$)=>(Z.push($),Z);function xR(){return(Z)=>new PR.Observable(($)=>{(0,ER.reduce)(VR,[])(Z).subscribe($)})}dI.toArray=xR});var dq=q((uI)=>{Object.defineProperty(uI,"__esModule",{value:!0});uI.joinAllInternals=void 0;var MR=v0(),hR=xK(),AR=Fq(),vR=t$(),CR=bq();function TR(Z,$){return(0,AR.pipe)((0,CR.toArray)(),(0,vR.mergeMap)((J)=>Z(J)),$?(0,hR.mapOneOrManyArgs)($):MR.identity)}uI.joinAllInternals=TR});var nI=q((pI)=>{Object.defineProperty(pI,"__esModule",{value:!0});pI.combineLatestAll=void 0;var RR=gH(),yR=dq();function mR(Z){return(0,yR.joinAllInternals)(RR.combineLatest,Z)}pI.combineLatestAll=mR});var sI=q((aI)=>{Object.defineProperty(aI,"__esModule",{value:!0});aI.combineLatestWith=void 0;var jR=gH(),_R=D();function SR(...Z){return($)=>new _R.Observable((J)=>(0,jR.combineLatestInit)([$,...Z])(J))}aI.combineLatestWith=SR});var cq=q((tI)=>{Object.defineProperty(tI,"__esModule",{value:!0});tI.concatMap=void 0;var gR=t$();function bR(Z){return(0,gR.mergeMap)(Z,1)}tI.concatMap=bR});var $U=q((eI)=>{Object.defineProperty(eI,"__esModule",{value:!0});eI.concatMapTo=void 0;var dR=cq();function cR(Z){return(0,dR.concatMap)(()=>Z)}eI.concatMapTo=cR});var zU=q((YU)=>{Object.defineProperty(YU,"__esModule",{value:!0});YU.concatWith=void 0;var JU=D(),uR=dH();function lR(...Z){return($)=>new JU.Observable((J)=>{(0,uR.concatAll)()((0,JU.from)([$,...Z])).subscribe(J)})}YU.concatWith=lR});var QU=q((KU)=>{Object.defineProperty(KU,"__esModule",{value:!0});KU.fromSubscribable=void 0;var pR=D();function iR(Z){return new pR.Observable(($)=>Z.subscribe($))}KU.fromSubscribable=iR});var BU=q((WU)=>{Object.defineProperty(WU,"__esModule",{value:!0});WU.connect=void 0;var qU=D(),nR=H0(),aR=QU(),rR={connector:()=>new nR.Subject};function sR(Z,$=rR){let{connector:J}=$;return(Y)=>new qU.Observable((X)=>{let z=J();(0,qU.from)(Z((0,aR.fromSubscribable)(z))).subscribe(X),X.add(Y.subscribe(z))})}WU.connect=sR});var LU=q((FU)=>{Object.defineProperty(FU,"__esModule",{value:!0});FU.count=void 0;var tR=MK();function oR(Z){return(0,tR.reduce)(($,J,Y)=>!Z||Z(J,Y)?$+1:$,0)}FU.count=oR});var IU=q((wU)=>{Object.defineProperty(wU,"__esModule",{value:!0});wU.debounce=void 0;var aH=D(),eR=Y0();function Zy(Z){return($)=>new aH.Observable((J)=>{let Y=!1,X=null,z=null,K=()=>{if(z?.unsubscribe(),z=null,Y){Y=!1;let Q=X;X=null,J.next(Q)}};$.subscribe((0,aH.operate)({destination:J,next:(Q)=>{z?.unsubscribe(),Y=!0,X=Q,z=(0,aH.operate)({destination:J,next:K,complete:eR.noop}),(0,aH.from)(Z(Q)).subscribe(z)},complete:()=>{K(),J.complete()},finalize:()=>{X=z=null}}))})}wU.debounce=Zy});var fU=q((OU)=>{Object.defineProperty(OU,"__esModule",{value:!0});OU.debounceTime=void 0;var $y=A0(),UU=D(),Jy=c0();function Yy(Z,$=$y.asyncScheduler){return(J)=>new UU.Observable((Y)=>{let X,z;J.subscribe((0,UU.operate)({destination:Y,next:(K)=>{X=K,z?.unsubscribe(),z=(0,Jy.executeSchedule)(Y,$,()=>{z=void 0;let Q=X;X=null,Y.next(Q)},Z)},complete:()=>{if(z)Y.next(X);Y.complete()},finalize:()=>{X=z=null}}))})}OU.debounceTime=Yy});var xU=q((PU)=>{Object.defineProperty(PU,"__esModule",{value:!0});PU.defaultIfEmpty=void 0;var EU=D();function Xy(Z){return($)=>new EU.Observable((J)=>{let Y=!1;$.subscribe((0,EU.operate)({destination:J,next:(X)=>{Y=!0,J.next(X)},complete:()=>{if(!Y)J.next(Z);J.complete()}}))})}PU.defaultIfEmpty=Xy});var uq=q((hU)=>{Object.defineProperty(hU,"__esModule",{value:!0});hU.take=void 0;var zy=M6(),MU=D();function Ky(Z){return Z<=0?()=>zy.EMPTY:($)=>new MU.Observable((J)=>{let Y=0,X=(0,MU.operate)({destination:J,next:(z)=>{if(++Y<Z)J.next(z);else X.unsubscribe(),J.next(z),J.complete()}});$.subscribe(X)})}hU.take=Ky});var lq=q((CU)=>{Object.defineProperty(CU,"__esModule",{value:!0});CU.ignoreElements=void 0;var vU=D(),Hy=Y0();function Qy(){return(Z)=>new vU.Observable(($)=>{Z.subscribe((0,vU.operate)({destination:$,next:Hy.noop}))})}CU.ignoreElements=Qy});var iq=q((mU)=>{Object.defineProperty(mU,"__esModule",{value:!0});mU.delayWhen=void 0;var qy=Aq(),RU=uq(),Wy=lq(),Ny=t$(),pq=Bq(),By=VK();function yU(Z,$){if($)return(J)=>(0,qy.concat)((0,pq.rx)($,(0,RU.take)(1),(0,Wy.ignoreElements)()),(0,pq.rx)(J,yU(Z)));return(0,Ny.mergeMap)((J,Y)=>(0,pq.rx)(Z(J,Y),(0,RU.take)(1),(0,By.map)(()=>J)))}mU.delayWhen=yU});var gU=q((_U)=>{Object.defineProperty(_U,"__esModule",{value:!0});_U.delay=void 0;var Fy=A0(),Gy=iq(),Ly=I8();function wy(Z,$=Fy.asyncScheduler){let J=(0,Ly.timer)(Z,$);return(0,Gy.delayWhen)(()=>J)}_U.delay=wy});var cU=q((bU)=>{Object.defineProperty(bU,"__esModule",{value:!0});bU.observeNotification=void 0;function Dy(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?.()}bU.observeNotification=Dy});var iU=q((lU)=>{Object.defineProperty(lU,"__esModule",{value:!0});lU.dematerialize=void 0;var Iy=cU(),uU=D();function Uy(){return(Z)=>new uU.Observable(($)=>{Z.subscribe((0,uU.operate)({destination:$,next:(J)=>(0,Iy.observeNotification)(J,$)}))})}lU.dematerialize=Uy});var rU=q((nU)=>{Object.defineProperty(nU,"__esModule",{value:!0});nU.distinct=void 0;var rH=D(),Oy=Y0();function ky(Z,$){return(J)=>new rH.Observable((Y)=>{let X=new Set;J.subscribe((0,rH.operate)({destination:Y,next:(z)=>{let K=Z?Z(z):z;if(!X.has(K))X.add(K),Y.next(z)}})),$&&(0,rH.from)($).subscribe((0,rH.operate)({destination:Y,next:()=>X.clear(),complete:Oy.noop}))})}nU.distinct=ky});var nq=q((tU)=>{Object.defineProperty(tU,"__esModule",{value:!0});tU.distinctUntilChanged=void 0;var fy=v0(),sU=D();function Ey(Z,$=fy.identity){return Z=Z??Py,(J)=>new sU.Observable((Y)=>{let X,z=!0;J.subscribe((0,sU.operate)({destination:Y,next:(K)=>{let Q=$(K);if(z||!Z(X,Q))z=!1,X=Q,Y.next(K)}}))})}tU.distinctUntilChanged=Ey;function Py(Z,$){return Z===$}});var $O=q((eU)=>{Object.defineProperty(eU,"__esModule",{value:!0});eU.distinctUntilKeyChanged=void 0;var Vy=nq();function xy(Z,$){return(0,Vy.distinctUntilChanged)((J,Y)=>$?$(J[Z],Y[Z]):J[Z]===Y[Z])}eU.distinctUntilKeyChanged=xy});var KO=q((XO)=>{Object.defineProperty(XO,"__esModule",{value:!0});XO.elementAt=void 0;var JO=Gq(),YO=D();function My(Z,$){if(Z<0)throw new JO.ArgumentOutOfRangeError;let J=arguments.length>=2;return(Y)=>new YO.Observable((X)=>{let z=0,K=(0,YO.operate)({destination:X,next:(Q)=>{if(z++===Z)K.unsubscribe(),X.next(Q),X.complete()},complete:()=>{if(!J)X.error(new JO.ArgumentOutOfRangeError);else X.next($),X.complete()}});Y.subscribe(K)})}XO.elementAt=My});var qO=q((HO)=>{Object.defineProperty(HO,"__esModule",{value:!0});HO.endWith=void 0;var aq=D();function hy(...Z){return($)=>new aq.Observable((J)=>{$.subscribe((0,aq.operate)({destination:J,complete:()=>{(0,aq.subscribeToArray)(Z,J)}}))})}HO.endWith=hy});var FO=q((NO)=>{Object.defineProperty(NO,"__esModule",{value:!0});NO.every=void 0;var WO=D();function Ay(Z,$){return(J)=>new WO.Observable((Y)=>{let X=0;J.subscribe((0,WO.operate)({destination:Y,next:(z)=>{if(!Z.call($,z,X++,J))Y.next(!1),Y.complete()},complete:()=>{Y.next(!0),Y.complete()}}))})}NO.every=Ay});var rq=q((GO)=>{Object.defineProperty(GO,"__esModule",{value:!0});GO.exhaustMap=void 0;var sH=D();function vy(Z){return($)=>new sH.Observable((J)=>{let Y=0,X=null,z=!1;$.subscribe((0,sH.operate)({destination:J,next:(K)=>{if(!X)X=(0,sH.operate)({destination:J,complete:()=>{X=null,z&&J.complete()}}),(0,sH.from)(Z(K,Y++)).subscribe(X)},complete:()=>{z=!0,!X&&J.complete()}}))})}GO.exhaustMap=vy});var IO=q((wO)=>{Object.defineProperty(wO,"__esModule",{value:!0});wO.exhaustAll=void 0;var Cy=rq(),Ty=v0();function Ry(){return(0,Cy.exhaustMap)(Ty.identity)}wO.exhaustAll=Ry});var kO=q((UO)=>{Object.defineProperty(UO,"__esModule",{value:!0});UO.expand=void 0;var yy=D(),my=bH();function jy(Z,$=1/0,J){return $=($||0)<1?1/0:$,(Y)=>new yy.Observable((X)=>(0,my.mergeInternals)(Y,X,Z,$,void 0,!0,J))}UO.expand=jy});var PO=q((fO)=>{Object.defineProperty(fO,"__esModule",{value:!0});fO.finalize=void 0;var _y=D();function Sy(Z){return($)=>new _y.Observable((J)=>{$.subscribe(J),J.add(Z)})}fO.finalize=Sy});var sq=q((MO)=>{Object.defineProperty(MO,"__esModule",{value:!0});MO.createFind=MO.find=void 0;var VO=D();function gy(Z){return($)=>new VO.Observable((J)=>xO(Z,"value",$,J))}MO.find=gy;function xO(Z,$,J,Y){let X=$==="index",z=0;J.subscribe((0,VO.operate)({destination:Y,next:(K)=>{let Q=z++;if(Z(K,Q,J))Y.next(X?Q:K),Y.complete()},complete:()=>{Y.next(X?-1:void 0),Y.complete()}}))}MO.createFind=xO});var CO=q((AO)=>{Object.defineProperty(AO,"__esModule",{value:!0});AO.findIndex=void 0;var dy=D(),cy=sq();function uy(Z){return($)=>new dy.Observable((J)=>(0,cy.createFind)(Z,"index",$,J))}AO.findIndex=uy});var mO=q((RO)=>{Object.defineProperty(RO,"__esModule",{value:!0});RO.first=void 0;var TO=D(),ly=g6();function py(Z,$){let J=arguments.length>=2;return(Y)=>new TO.Observable((X)=>{let z=0,K=(0,TO.operate)({destination:X,next:(Q)=>{if(Z?Z(Q,z++,Y):!0)K.unsubscribe(),X.next(Q),X.complete()},complete:()=>{if(J)X.next($),X.complete();else X.error(new ly.EmptyError)}});Y.subscribe(K)})}RO.first=py});var SO=q((jO)=>{Object.defineProperty(jO,"__esModule",{value:!0});jO.groupBy=void 0;var YH=D(),iy=H0();function ny(Z,$,J,Y){return(X)=>new YH.Observable((z)=>{let K;if(!$||typeof $==="function")K=$;else({duration:J,element:K,connector:Y}=$);let Q=new Map,W=(f)=>{Q.forEach(f),f(z)},G=(f)=>W((P)=>P.error(f)),L=(0,YH.operate)({destination:z,next:(f)=>{try{let P=Z(f),V=Q.get(P);if(!V){Q.set(P,V=Y?Y():new iy.Subject);let T=O(P,V);if(z.next(T),J){let E0=(0,YH.operate)({destination:V,next:()=>{V.complete(),E0?.unsubscribe()},finalize:()=>Q.delete(P)});L.add((0,YH.from)(J(T)).subscribe(E0))}}V.next(K?K(f):f)}catch(P){G(P)}},error:G,complete:()=>W((f)=>f.complete()),finalize:()=>Q.clear()});X.subscribe(L);function O(f,P){let V=new YH.Observable((T)=>P.subscribe(T));return V.key=f,V}})}jO.groupBy=ny});var cO=q((bO)=>{Object.defineProperty(bO,"__esModule",{value:!0});bO.isEmpty=void 0;var gO=D();function ay(){return(Z)=>new gO.Observable(($)=>{Z.subscribe((0,gO.operate)({destination:$,next:()=>{$.next(!1),$.complete()},complete:()=>{$.next(!0),$.complete()}}))})}bO.isEmpty=ay});var iO=q((lO)=>{Object.defineProperty(lO,"__esModule",{value:!0});lO.last=void 0;var uO=D(),ry=g6();function sy(Z,$){let J=arguments.length>=2;return(Y)=>new uO.Observable((X)=>{let z=0,K=!1,Q;Y.subscribe((0,uO.operate)({destination:X,next(W){if(!Z||Z(W,z++,Y))K=!0,Q=W},complete(){if(K)X.next(Q),X.complete();else if(J)X.next($),X.complete();else X.error(new ry.EmptyError)}}))})}lO.last=sy});var rO=q((nO)=>{Object.defineProperty(nO,"__esModule",{value:!0});nO.mapTo=void 0;var ty=VK();function oy(Z){return(0,ty.map)(()=>Z)}nO.mapTo=oy});var oO=q((sO)=>{Object.defineProperty(sO,"__esModule",{value:!0});sO.materialize=void 0;var XH=D();function ey(){return(Z)=>new XH.Observable(($)=>{Z.subscribe((0,XH.operate)({destination:$,next:(J)=>{$.next((0,XH.nextNotification)(J))},error:(J)=>{$.next((0,XH.errorNotification)(J)),$.complete()},complete:()=>{$.next(XH.COMPLETE_NOTIFICATION),$.complete()}}))})}sO.materialize=ey});var $k=q((eO)=>{Object.defineProperty(eO,"__esModule",{value:!0});eO.max=void 0;var Zm=MK(),$m=D();function Jm(Z){return(0,Zm.reduce)((0,$m.isFunction)(Z)?($,J)=>Z($,J)>0?$:J:($,J)=>$>J?$:J)}eO.max=Jm});var Xk=q((Jk)=>{Object.defineProperty(Jk,"__esModule",{value:!0});Jk.mergeMapTo=void 0;var Ym=t$();function Xm(Z,$){return(0,Ym.mergeMap)(()=>Z,$)}Jk.mergeMapTo=Xm});var Hk=q((zk)=>{Object.defineProperty(zk,"__esModule",{value:!0});zk.mergeScan=void 0;var zm=D(),Km=bH();function Hm(Z,$,J=1/0){return(Y)=>new zm.Observable((X)=>{let z=$;return(0,Km.mergeInternals)(Y,X,(K,Q)=>Z(z,K,Q),J,(K)=>{z=K},!1,void 0,()=>z=null)})}zk.mergeScan=Hm});var Nk=q((qk)=>{Object.defineProperty(qk,"__esModule",{value:!0});qk.mergeWith=void 0;var Qk=D(),Qm=ZH();function qm(...Z){return($)=>new Qk.Observable((J)=>{(0,Qm.mergeAll)()((0,Qk.from)([$,...Z])).subscribe(J)})}qk.mergeWith=qm});var Gk=q((Bk)=>{Object.defineProperty(Bk,"__esModule",{value:!0});Bk.min=void 0;var Wm=MK(),Nm=D();function Bm(Z){return(0,Wm.reduce)((0,Nm.isFunction)(Z)?($,J)=>Z($,J)<0?$:J:($,J)=>$<J?$:J)}Bk.min=Bm});var Dk=q((Lk)=>{Object.defineProperty(Lk,"__esModule",{value:!0});Lk.onErrorResumeNextWith=void 0;var Fm=JH(),Gm=Rq();function Lm(...Z){let $=(0,Fm.argsOrArgArray)(Z);return(J)=>(0,Gm.onErrorResumeNext)(J,...$)}Lk.onErrorResumeNextWith=Lm});var kk=q((Uk)=>{Object.defineProperty(Uk,"__esModule",{value:!0});Uk.pairwise=void 0;var Ik=D();function wm(){return(Z)=>new Ik.Observable(($)=>{let J,Y=!1;Z.subscribe((0,Ik.operate)({destination:$,next:(X)=>{let z=J;J=X,Y&&$.next([z,X]),Y=!0}}))})}Uk.pairwise=wm});var Pk=q((fk)=>{Object.defineProperty(fk,"__esModule",{value:!0});fk.raceWith=void 0;var Dm=yq(),Im=D(),Um=v0();function Om(...Z){return!Z.length?Um.identity:($)=>new Im.Observable((J)=>{(0,Dm.raceInit)([$,...Z])(J)})}fk.raceWith=Om});var Mk=q((Vk)=>{Object.defineProperty(Vk,"__esModule",{value:!0});Vk.repeat=void 0;var tH=D(),km=M6(),fm=I8();function Em(Z){let $=1/0,J;if(Z!=null)if(typeof Z==="object")({count:$=1/0,delay:J}=Z);else $=Z;return $<=0?()=>km.EMPTY:(Y)=>new tH.Observable((X)=>{let z=0,K,Q=()=>{if(K?.unsubscribe(),K=null,J!=null){let G=typeof J==="number"?(0,fm.timer)(J):(0,tH.from)(J(z)),L=(0,tH.operate)({destination:X,next:()=>{L.unsubscribe(),W()}});G.subscribe(L)}else W()},W=()=>{let G=!1;if(K=Y.subscribe((0,tH.operate)({destination:X,complete:()=>{if(++z<$)if(K)Q();else G=!0;else X.complete()}})),G)Q()};W()})}Vk.repeat=Em});var vk=q((hk)=>{Object.defineProperty(hk,"__esModule",{value:!0});hk.repeatWhen=void 0;var oH=D(),Pm=H0();function Vm(Z){return($)=>new oH.Observable((J)=>{let Y,X=!1,z,K=!1,Q=!1,W=()=>Q&&K&&(J.complete(),!0),G=()=>{if(!z)z=new Pm.Subject,(0,oH.from)(Z(z)).subscribe((0,oH.operate)({destination:J,next:()=>{if(Y)L();else X=!0},complete:()=>{K=!0,W()}}));return z},L=()=>{if(Q=!1,Y=$.subscribe((0,oH.operate)({destination:J,complete:()=>{Q=!0,!W()&&G().next()}})),X)Y.unsubscribe(),Y=null,X=!1,L()};L()})}hk.repeatWhen=Vm});var Rk=q((Ck)=>{Object.defineProperty(Ck,"__esModule",{value:!0});Ck.retry=void 0;var eH=D(),xm=v0(),Mm=I8();function hm(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?xm.identity:(z)=>new eH.Observable((K)=>{let Q=0,W,G=()=>{let L=!1;if(W=z.subscribe((0,eH.operate)({destination:K,next:(O)=>{if(X)Q=0;K.next(O)},error:(O)=>{if(Q++<J){let f=()=>{if(W)W.unsubscribe(),W=null,G();else L=!0};if(Y!=null){let P=typeof Y==="number"?(0,Mm.timer)(Y):(0,eH.from)(Y(O,Q)),V=(0,eH.operate)({destination:K,next:()=>{V.unsubscribe(),f()},complete:()=>{K.complete()}});P.subscribe(V)}else f()}else K.error(O)}})),L)W.unsubscribe(),W=null,G()};G()})}Ck.retry=hm});var jk=q((yk)=>{Object.defineProperty(yk,"__esModule",{value:!0});yk.retryWhen=void 0;var ZQ=D(),Am=H0();function vm(Z){return($)=>new ZQ.Observable((J)=>{let Y,X=!1,z,K=()=>{if(Y=$.subscribe((0,ZQ.operate)({destination:J,error:(Q)=>{if(!z)z=new Am.Subject,(0,ZQ.from)(Z(z)).subscribe((0,ZQ.operate)({destination:J,next:()=>Y?K():X=!0}));if(z)z.next(Q)}})),X)Y.unsubscribe(),Y=null,X=!1,K()};K()})}yk.retryWhen=vm});var tq=q((_k)=>{Object.defineProperty(_k,"__esModule",{value:!0});_k.sample=void 0;var $Q=D(),Cm=Y0();function Tm(Z){return($)=>new $Q.Observable((J)=>{let Y=!1,X=null;$.subscribe((0,$Q.operate)({destination:J,next:(z)=>{Y=!0,X=z}})),(0,$Q.from)(Z).subscribe((0,$Q.operate)({destination:J,next:()=>{if(Y){Y=!1;let z=X;X=null,J.next(z)}},complete:Cm.noop}))})}_k.sample=Tm});var dk=q((gk)=>{Object.defineProperty(gk,"__esModule",{value:!0});gk.sampleTime=void 0;var Rm=A0(),ym=tq(),mm=Cq();function jm(Z,$=Rm.asyncScheduler){return(0,ym.sample)((0,mm.interval)(Z,$))}gk.sampleTime=jm});var lk=q((ck)=>{Object.defineProperty(ck,"__esModule",{value:!0});ck.scan=void 0;var _m=D(),Sm=gq();function gm(Z,$){let J=arguments.length>=2;return(Y)=>new _m.Observable((X)=>(0,Sm.scanInternals)(Z,$,J,!0,!1,Y,X))}ck.scan=gm});var ak=q((ik)=>{Object.defineProperty(ik,"__esModule",{value:!0});ik.sequenceEqual=void 0;var oq=D();function bm(Z,$=(J,Y)=>J===Y){return(J)=>new oq.Observable((Y)=>{let X=pk(),z=pk(),K=(W)=>{Y.next(W),Y.complete()},Q=(W,G)=>{let L=(0,oq.operate)({destination:Y,next:(O)=>{let{buffer:f,complete:P}=G;if(f.length===0)P?K(!1):W.buffer.push(O);else!$(O,f.shift())&&K(!1)},complete:()=>{W.complete=!0;let{complete:O,buffer:f}=G;O&&K(f.length===0),L?.unsubscribe()}});return L};J.subscribe(Q(X,z)),(0,oq.from)(Z).subscribe(Q(z,X))})}ik.sequenceEqual=bm;function pk(){return{buffer:[],complete:!1}}});var ZW=q((rk)=>{Object.defineProperty(rk,"__esModule",{value:!0});rk.share=void 0;var zH=D(),dm=H0();function cm(Z={}){let{connector:$=()=>new dm.Subject,resetOnError:J=!0,resetOnComplete:Y=!0,resetOnRefCountZero:X=!0}=Z;return(z)=>{let K,Q,W,G=0,L=!1,O=!1,f=()=>{Q?.unsubscribe(),Q=void 0},P=()=>{f(),K=W=void 0,L=O=!1},V=()=>{let T=K;P(),T?.unsubscribe()};return new zH.Observable((T)=>{if(G++,!O&&!L)f();let E0=W=W??$();if(T.add(()=>{if(G--,G===0&&!O&&!L)Q=eq(V,X)}),E0.subscribe(T),!K&&G>0)K=new zH.Subscriber({next:(X0)=>E0.next(X0),error:(X0)=>{O=!0,f(),Q=eq(P,J,X0),E0.error(X0)},complete:()=>{L=!0,f(),Q=eq(P,Y),E0.complete()}}),(0,zH.from)(z).subscribe(K)})}}rk.share=cm;function eq(Z,$,...J){if($===!0){Z();return}if($===!1)return;let Y=new zH.Subscriber({next:()=>{Y.unsubscribe(),Z()}});return(0,zH.from)($(...J)).subscribe(Y)}});var ek=q((tk)=>{Object.defineProperty(tk,"__esModule",{value:!0});tk.shareReplay=void 0;var um=Hq(),lm=ZW();function pm(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,lm.share)({connector:()=>new um.ReplaySubject(Y,$,J),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:X})}tk.shareReplay=pm});var Yf=q(($f)=>{Object.defineProperty($f,"__esModule",{value:!0});$f.single=void 0;var Zf=D(),im=g6(),nm=wq(),am=Lq();function rm(Z){return($)=>new Zf.Observable((J)=>{let Y=!1,X,z=!1,K=0;$.subscribe((0,Zf.operate)({destination:J,next:(Q)=>{if(z=!0,!Z||Z(Q,K++,$))Y&&J.error(new nm.SequenceError("Too many matching values")),Y=!0,X=Q},complete:()=>{if(Y)J.next(X),J.complete();else J.error(z?new am.NotFoundError("No matching values"):new im.EmptyError)}}))})}$f.single=rm});var Kf=q((Xf)=>{Object.defineProperty(Xf,"__esModule",{value:!0});Xf.skip=void 0;var sm=cH();function tm(Z){return(0,sm.filter)(($,J)=>Z<=J)}Xf.skip=tm});var Wf=q((Qf)=>{Object.defineProperty(Qf,"__esModule",{value:!0});Qf.skipLast=void 0;var om=v0(),Hf=D();function em(Z){return Z<=0?om.identity:($)=>new Hf.Observable((J)=>{let Y=Array(Z),X=0;return $.subscribe((0,Hf.operate)({destination:J,next:(z)=>{let K=X++;if(K<Z)Y[K]=z;else{let Q=K%Z,W=Y[Q];Y[Q]=z,J.next(W)}}})),()=>{Y=null}})}Qf.skipLast=em});var Ff=q((Nf)=>{Object.defineProperty(Nf,"__esModule",{value:!0});Nf.skipUntil=void 0;var JQ=D(),Zj=Y0();function $j(Z){return($)=>new JQ.Observable((J)=>{let Y=!1,X=(0,JQ.operate)({destination:J,next:()=>{X?.unsubscribe(),Y=!0},complete:Zj.noop});(0,JQ.from)(Z).subscribe(X),$.subscribe((0,JQ.operate)({destination:J,next:(z)=>Y&&J.next(z)}))})}Nf.skipUntil=$j});var Df=q((Lf)=>{Object.defineProperty(Lf,"__esModule",{value:!0});Lf.skipWhile=void 0;var Gf=D();function Jj(Z){return($)=>new Gf.Observable((J)=>{let Y=!1,X=0;$.subscribe((0,Gf.operate)({destination:J,next:(z)=>(Y||(Y=!Z(z,X++)))&&J.next(z)}))})}Lf.skipWhile=Jj});var Of=q((If)=>{Object.defineProperty(If,"__esModule",{value:!0});If.startWith=void 0;var $W=D();function Yj(...Z){return($)=>new $W.Observable((J)=>{(0,$W.subscribeToArray)(Z,(0,$W.operate)({destination:J,complete:()=>$.subscribe(J)}))})}If.startWith=Yj});var KH=q((kf)=>{Object.defineProperty(kf,"__esModule",{value:!0});kf.switchMap=void 0;var YQ=D();function Xj(Z){return($)=>new YQ.Observable((J)=>{let Y=null,X=0,z=!1,K=()=>z&&!Y&&J.complete();$.subscribe((0,YQ.operate)({destination:J,next:(Q)=>{Y?.unsubscribe();let W=X++;(0,YQ.from)(Z(Q,W)).subscribe(Y=(0,YQ.operate)({destination:J,complete:()=>{Y=null,K()}}))},complete:()=>{z=!0,K()}}))})}kf.switchMap=Xj});var Vf=q((Ef)=>{Object.defineProperty(Ef,"__esModule",{value:!0});Ef.switchAll=void 0;var zj=KH(),Kj=v0();function Hj(){return(0,zj.switchMap)(Kj.identity)}Ef.switchAll=Hj});var hf=q((xf)=>{Object.defineProperty(xf,"__esModule",{value:!0});xf.switchMapTo=void 0;var Qj=KH();function qj(Z){return(0,Qj.switchMap)(()=>Z)}xf.switchMapTo=qj});var Tf=q((vf)=>{Object.defineProperty(vf,"__esModule",{value:!0});vf.switchScan=void 0;var Wj=KH(),Af=D();function Nj(Z,$){return(J)=>new Af.Observable((Y)=>{let X=$;return(0,Wj.switchMap)((z,K)=>Z(X,z,K))(J).subscribe((0,Af.operate)({destination:Y,next:(z)=>{X=z,Y.next(z)}})),()=>{X=null}})}vf.switchScan=Nj});var jf=q((yf)=>{Object.defineProperty(yf,"__esModule",{value:!0});yf.takeLast=void 0;var Bj=M6(),Rf=D();function Fj(Z){return Z<=0?()=>Bj.EMPTY:($)=>new Rf.Observable((J)=>{let Y=Array(Z),X=0;$.subscribe((0,Rf.operate)({destination:J,next:(z)=>{Y[X++%Z]=z},complete:()=>{let z=Z<=X?X:0,K=Math.min(Z,X);for(let Q=0;Q<K;Q++)J.next(Y[(z+Q)%Z]);J.complete()},finalize:()=>{Y=null}}))})}yf.takeLast=Fj});var gf=q((_f)=>{Object.defineProperty(_f,"__esModule",{value:!0});_f.takeUntil=void 0;var JW=D(),Gj=Y0();function Lj(Z){return($)=>new JW.Observable((J)=>{(0,JW.from)(Z).subscribe((0,JW.operate)({destination:J,next:()=>J.complete(),complete:Gj.noop})),!J.closed&&$.subscribe(J)})}_f.takeUntil=Lj});var uf=q((df)=>{Object.defineProperty(df,"__esModule",{value:!0});df.takeWhile=void 0;var bf=D();function wj(Z,$=!1){return(J)=>new bf.Observable((Y)=>{let X=0,z=(0,bf.operate)({destination:Y,next:(K)=>{if(Z(K,X++))Y.next(K);else{if(z.unsubscribe(),$)Y.next(K);Y.complete()}}});J.subscribe(z)})}df.takeWhile=wj});var nf=q((lf)=>{Object.defineProperty(lf,"__esModule",{value:!0});lf.tap=void 0;var YW=D(),Dj=v0();function Ij(Z){let $=(0,YW.isFunction)(Z)?{next:Z}:Z;return $?(J)=>new YW.Observable((Y)=>{$.subscribe?.();let X=!0;J.subscribe((0,YW.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?.()}}))}):Dj.identity}lf.tap=Ij});var XW=q((af)=>{Object.defineProperty(af,"__esModule",{value:!0});af.throttle=void 0;var XQ=D();function Uj(Z,$){return(J)=>new XQ.Observable((Y)=>{let{leading:X=!0,trailing:z=!1}=$??{},K=!1,Q=null,W=null,G=!1,L=()=>{if(W?.unsubscribe(),W=null,z)P(),G&&Y.complete()},O=()=>{W=null,G&&Y.complete()},f=(V)=>W=(0,XQ.from)(Z(V)).subscribe((0,XQ.operate)({destination:Y,next:L,complete:O})),P=()=>{if(K){K=!1;let V=Q;Q=null,Y.next(V),!G&&f(V)}};J.subscribe((0,XQ.operate)({destination:Y,next:(V)=>{K=!0,Q=V,!(W&&!W.closed)&&(X?P():f(V))},complete:()=>{G=!0,!(z&&K&&W&&!W.closed)&&Y.complete()}}))})}af.throttle=Uj});var of=q((sf)=>{Object.defineProperty(sf,"__esModule",{value:!0});sf.throttleTime=void 0;var Oj=A0(),kj=XW(),fj=I8();function Ej(Z,$=Oj.asyncScheduler,J){let Y=(0,fj.timer)(Z,$);return(0,kj.throttle)(()=>Y,J)}sf.throttleTime=Ej});var JE=q((ZE)=>{Object.defineProperty(ZE,"__esModule",{value:!0});ZE.throwIfEmpty=void 0;var Pj=g6(),ef=D();function Vj(Z=xj){return($)=>new ef.Observable((J)=>{let Y=!1;$.subscribe((0,ef.operate)({destination:J,next:(X)=>{Y=!0,J.next(X)},complete:()=>Y?J.complete():J.error(Z())}))})}ZE.throwIfEmpty=Vj;function xj(){return new Pj.EmptyError}});var KE=q((XE)=>{Object.defineProperty(XE,"__esModule",{value:!0});XE.TimeInterval=XE.timeInterval=void 0;var Mj=A0(),YE=D();function hj(Z=Mj.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 zW(X,K))}}))})}XE.timeInterval=hj;class zW{value;interval;constructor(Z,$){this.value=Z,this.interval=$}}XE.TimeInterval=zW});var qE=q((HE)=>{Object.defineProperty(HE,"__esModule",{value:!0});HE.timeoutWith=void 0;var vj=A0(),Cj=mH(),Tj=jH();function Rj(Z,$,J){let Y,X,z;if(J=J??vj.asyncScheduler,(0,Cj.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,Tj.timeout)({first:Y,each:X,scheduler:J,with:z})}HE.timeoutWith=Rj});var BE=q((WE)=>{Object.defineProperty(WE,"__esModule",{value:!0});WE.timestamp=void 0;var yj=CH(),mj=VK();function jj(Z=yj.dateTimestampProvider){return(0,mj.map)(($)=>({value:$,timestamp:Z.now()}))}WE.timestamp=jj});var wE=q((GE)=>{Object.defineProperty(GE,"__esModule",{value:!0});GE.window=void 0;var zQ=D(),FE=H0(),_j=Y0();function Sj(Z){return($)=>new zQ.Observable((J)=>{let Y=new FE.Subject;J.next(Y.asObservable());let X=(z)=>{Y.error(z),J.error(z)};return $.subscribe((0,zQ.operate)({destination:J,next:(z)=>Y?.next(z),complete:()=>{Y.complete(),J.complete()},error:X})),(0,zQ.from)(Z).subscribe((0,zQ.operate)({destination:J,next:()=>{Y.complete(),J.next(Y=new FE.Subject)},complete:_j.noop,error:X})),()=>{Y?.unsubscribe(),Y=null}})}GE.window=Sj});var kE=q((UE)=>{Object.defineProperty(UE,"__esModule",{value:!0});UE.windowCount=void 0;var DE=D(),IE=H0();function gj(Z,$=0){let J=$>0?$:Z;return(Y)=>new DE.Observable((X)=>{let z=[new IE.Subject],K=[],Q=0;X.next(z[0].asObservable()),Y.subscribe((0,DE.operate)({destination:X,next:(W)=>{for(let L of z)L.next(W);let G=Q-Z+1;if(G>=0&&G%J===0)z.shift().complete();if(++Q%J===0){let L=new IE.Subject;z.push(L),X.next(L.asObservable())}},error:(W)=>{while(z.length>0)z.shift().error(W);X.error(W)},complete:()=>{while(z.length>0)z.shift().complete();X.complete()},finalize:()=>{K=null,z=null}}))})}UE.windowCount=gj});var VE=q((EE)=>{Object.defineProperty(EE,"__esModule",{value:!0});EE.windowTime=void 0;var bj=H0(),dj=A0(),KW=D(),cj=s$(),uj=D8(),fE=c0();function lj(Z,...$){let J=(0,uj.popScheduler)($)??dj.asyncScheduler,Y=$[0]??null,X=$[1]||1/0;return(z)=>new KW.Observable((K)=>{let Q=[],W=!1,G=(P)=>{let{window:V,subs:T}=P;V.complete(),T.unsubscribe(),(0,cj.arrRemove)(Q,P),W&&L()},L=()=>{if(Q){let P=new KW.Subscription;K.add(P);let V=new bj.Subject,T={window:V,subs:P,seen:0};Q.push(T),K.next(V.asObservable()),(0,fE.executeSchedule)(P,J,()=>G(T),Z)}};if(Y!==null&&Y>=0)(0,fE.executeSchedule)(K,J,L,Y,!0);else W=!0;L();let O=(P)=>Q.slice().forEach(P),f=(P)=>{O(({window:V})=>P(V)),P(K),K.unsubscribe()};return z.subscribe((0,KW.operate)({destination:K,next:(P)=>{O((V)=>{V.window.next(P),X<=++V.seen&&G(V)})},error:(P)=>f((V)=>V.error(P)),complete:()=>f((P)=>P.complete())})),()=>{Q=null}})}EE.windowTime=lj});var AE=q((ME)=>{Object.defineProperty(ME,"__esModule",{value:!0});ME.windowToggle=void 0;var e$=D(),pj=H0(),xE=Y0(),ij=s$();function nj(Z,$){return(J)=>new e$.Observable((Y)=>{let X=[],z=(K)=>{while(0<X.length)X.shift().error(K);Y.error(K)};(0,e$.from)(Z).subscribe((0,e$.operate)({destination:Y,next:(K)=>{let Q=new pj.Subject;X.push(Q);let W=new e$.Subscription,G=()=>{(0,ij.arrRemove)(X,Q),Q.complete(),W.unsubscribe()},L;try{L=(0,e$.from)($(K))}catch(O){z(O);return}Y.next(Q),W.add(L.subscribe((0,e$.operate)({destination:Y,next:G,error:z,complete:xE.noop})))},complete:xE.noop})),J.subscribe((0,e$.operate)({destination:Y,next:(K)=>{let Q=X.slice();for(let W of Q)W.next(K)},error:z,complete:()=>{while(0<X.length)X.shift().complete();Y.complete()},finalize:()=>{while(0<X.length)X.shift().unsubscribe()}}))})}ME.windowToggle=nj});var TE=q((vE)=>{Object.defineProperty(vE,"__esModule",{value:!0});vE.windowWhen=void 0;var KQ=D(),aj=H0(),rj=Y0();function sj(Z){return($)=>new KQ.Observable((J)=>{let Y,X,z=(Q)=>{Y.error(Q),J.error(Q)},K=()=>{X?.unsubscribe(),Y?.complete(),Y=new aj.Subject,J.next(Y.asObservable());let Q;try{Q=(0,KQ.from)(Z())}catch(W){z(W);return}Q.subscribe(X=(0,KQ.operate)({destination:J,next:K,error:z,complete:rj.noop}))};K(),$.subscribe((0,KQ.operate)({destination:J,next:(Q)=>Y.next(Q),error:z,complete:()=>{Y.complete(),J.complete()},finalize:()=>{X?.unsubscribe(),Y=null}}))})}vE.windowWhen=sj});var mE=q((RE)=>{Object.defineProperty(RE,"__esModule",{value:!0});RE.withLatestFrom=void 0;var HQ=D(),tj=v0(),oj=Y0(),ej=D8();function Z_(...Z){let $=(0,ej.popResultSelector)(Z);return(J)=>new HQ.Observable((Y)=>{let X=Z.length,z=Array(X),K=Z.map(()=>!1),Q=!1;for(let W=0;W<X;W++)(0,HQ.from)(Z[W]).subscribe((0,HQ.operate)({destination:Y,next:(G)=>{if(z[W]=G,!Q&&!K[W])K[W]=!0,(Q=K.every(tj.identity))&&(K=null)},complete:oj.noop}));J.subscribe((0,HQ.operate)({destination:Y,next:(W)=>{if(Q){let G=[W,...z];Y.next($?$(...G):G)}}}))})}RE.withLatestFrom=Z_});var SE=q((jE)=>{Object.defineProperty(jE,"__esModule",{value:!0});jE.zipAll=void 0;var $_=lH(),J_=dq();function Y_(Z){return(0,J_.joinAllInternals)($_.zip,Z)}jE.zipAll=Y_});var dE=q((gE)=>{Object.defineProperty(gE,"__esModule",{value:!0});gE.zipWith=void 0;var X_=D(),z_=lH();function K_(...Z){return($)=>new X_.Observable((J)=>{(0,z_.zip)($,...Z).subscribe(J)})}gE.zipWith=K_});var uE=q((H)=>{var H_=H&&H.__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]}),Q_=H&&H.__exportStar||function(Z,$){for(var J in Z)if(J!=="default"&&!Object.prototype.hasOwnProperty.call($,J))H_($,Z,J)};Object.defineProperty(H,"__esModule",{value:!0});H.throwError=H.range=H.race=H.partition=H.onErrorResumeNext=H.of=H.merge=H.interval=H.iif=H.generate=H.fromEventPattern=H.fromEvent=H.forkJoin=H.defer=H.connectable=H.concat=H.combineLatest=H.bindNodeCallback=H.bindCallback=H.TimeoutError=H.SequenceError=H.NotFoundError=H.EmptyError=H.ArgumentOutOfRangeError=H.firstValueFrom=H.lastValueFrom=H.identity=H.noop=H.pipe=H.rx=H.Scheduler=H.VirtualAction=H.VirtualTimeScheduler=H.animationFrameScheduler=H.queueScheduler=H.asyncScheduler=H.asapScheduler=H.AsyncSubject=H.ReplaySubject=H.BehaviorSubject=H.Subject=H.animationFrames=H.isObservable=H.UnsubscriptionError=H.operate=H.Subscriber=H.Subscription=H.config=H.from=H.Observable=void 0;H.max=H.materialize=H.mapTo=H.map=H.last=H.isEmpty=H.ignoreElements=H.groupBy=H.first=H.findIndex=H.find=H.finalize=H.filter=H.expand=H.exhaustMap=H.exhaustAll=H.every=H.endWith=H.elementAt=H.distinctUntilKeyChanged=H.distinctUntilChanged=H.distinct=H.dematerialize=H.delayWhen=H.delay=H.defaultIfEmpty=H.debounceTime=H.debounce=H.count=H.connect=H.concatWith=H.concatMapTo=H.concatMap=H.concatAll=H.combineLatestWith=H.combineLatestAll=H.catchError=H.bufferWhen=H.bufferToggle=H.bufferTime=H.bufferCount=H.buffer=H.auditTime=H.audit=H.NEVER=H.EMPTY=H.scheduled=H.zip=H.using=H.timer=void 0;H.windowWhen=H.windowToggle=H.windowTime=H.windowCount=H.window=H.toArray=H.timestamp=H.timeoutWith=H.timeout=H.timeInterval=H.throwIfEmpty=H.throttleTime=H.throttle=H.tap=H.takeWhile=H.takeUntil=H.takeLast=H.take=H.switchScan=H.switchMapTo=H.switchMap=H.switchAll=H.subscribeOn=H.startWith=H.skipWhile=H.skipUntil=H.skipLast=H.skip=H.single=H.shareReplay=H.share=H.sequenceEqual=H.scan=H.sampleTime=H.sample=H.retryWhen=H.retry=H.repeatWhen=H.repeat=H.reduce=H.raceWith=H.pairwise=H.onErrorResumeNextWith=H.observeOn=H.min=H.mergeWith=H.mergeScan=H.mergeMapTo=H.mergeMap=H.mergeAll=void 0;H.zipWith=H.zipAll=H.withLatestFrom=void 0;var U8=D();Object.defineProperty(H,"Observable",{enumerable:!0,get:function(){return U8.Observable}});Object.defineProperty(H,"from",{enumerable:!0,get:function(){return U8.from}});Object.defineProperty(H,"config",{enumerable:!0,get:function(){return U8.config}});Object.defineProperty(H,"Subscription",{enumerable:!0,get:function(){return U8.Subscription}});Object.defineProperty(H,"Subscriber",{enumerable:!0,get:function(){return U8.Subscriber}});Object.defineProperty(H,"operate",{enumerable:!0,get:function(){return U8.operate}});Object.defineProperty(H,"UnsubscriptionError",{enumerable:!0,get:function(){return U8.UnsubscriptionError}});Object.defineProperty(H,"isObservable",{enumerable:!0,get:function(){return U8.isObservable}});var q_=OG();Object.defineProperty(H,"animationFrames",{enumerable:!0,get:function(){return q_.animationFrames}});var W_=H0();Object.defineProperty(H,"Subject",{enumerable:!0,get:function(){return W_.Subject}});var N_=MG();Object.defineProperty(H,"BehaviorSubject",{enumerable:!0,get:function(){return N_.BehaviorSubject}});var B_=Hq();Object.defineProperty(H,"ReplaySubject",{enumerable:!0,get:function(){return B_.ReplaySubject}});var F_=Qq();Object.defineProperty(H,"AsyncSubject",{enumerable:!0,get:function(){return F_.AsyncSubject}});var G_=wL();Object.defineProperty(H,"asapScheduler",{enumerable:!0,get:function(){return G_.asapScheduler}});var L_=A0();Object.defineProperty(H,"asyncScheduler",{enumerable:!0,get:function(){return L_.asyncScheduler}});var w_=AL();Object.defineProperty(H,"queueScheduler",{enumerable:!0,get:function(){return w_.queueScheduler}});var D_=dL();Object.defineProperty(H,"animationFrameScheduler",{enumerable:!0,get:function(){return D_.animationFrameScheduler}});var cE=pL();Object.defineProperty(H,"VirtualTimeScheduler",{enumerable:!0,get:function(){return cE.VirtualTimeScheduler}});Object.defineProperty(H,"VirtualAction",{enumerable:!0,get:function(){return cE.VirtualAction}});var I_=Nq();Object.defineProperty(H,"Scheduler",{enumerable:!0,get:function(){return I_.Scheduler}});var U_=Bq();Object.defineProperty(H,"rx",{enumerable:!0,get:function(){return U_.rx}});var O_=Fq();Object.defineProperty(H,"pipe",{enumerable:!0,get:function(){return O_.pipe}});var k_=Y0();Object.defineProperty(H,"noop",{enumerable:!0,get:function(){return k_.noop}});var f_=v0();Object.defineProperty(H,"identity",{enumerable:!0,get:function(){return f_.identity}});var E_=zw();Object.defineProperty(H,"lastValueFrom",{enumerable:!0,get:function(){return E_.lastValueFrom}});var P_=Qw();Object.defineProperty(H,"firstValueFrom",{enumerable:!0,get:function(){return P_.firstValueFrom}});var V_=Gq();Object.defineProperty(H,"ArgumentOutOfRangeError",{enumerable:!0,get:function(){return V_.ArgumentOutOfRangeError}});var x_=g6();Object.defineProperty(H,"EmptyError",{enumerable:!0,get:function(){return x_.EmptyError}});var M_=Lq();Object.defineProperty(H,"NotFoundError",{enumerable:!0,get:function(){return M_.NotFoundError}});var h_=wq();Object.defineProperty(H,"SequenceError",{enumerable:!0,get:function(){return h_.SequenceError}});var A_=jH();Object.defineProperty(H,"TimeoutError",{enumerable:!0,get:function(){return A_.TimeoutError}});var v_=BD();Object.defineProperty(H,"bindCallback",{enumerable:!0,get:function(){return v_.bindCallback}});var C_=LD();Object.defineProperty(H,"bindNodeCallback",{enumerable:!0,get:function(){return C_.bindNodeCallback}});var T_=gH();Object.defineProperty(H,"combineLatest",{enumerable:!0,get:function(){return T_.combineLatest}});var R_=Aq();Object.defineProperty(H,"concat",{enumerable:!0,get:function(){return R_.concat}});var y_=lD();Object.defineProperty(H,"connectable",{enumerable:!0,get:function(){return y_.connectable}});var m_=$H();Object.defineProperty(H,"defer",{enumerable:!0,get:function(){return m_.defer}});var j_=nD();Object.defineProperty(H,"forkJoin",{enumerable:!0,get:function(){return j_.forkJoin}});var __=$2();Object.defineProperty(H,"fromEvent",{enumerable:!0,get:function(){return __.fromEvent}});var S_=K2();Object.defineProperty(H,"fromEventPattern",{enumerable:!0,get:function(){return S_.fromEventPattern}});var g_=W2();Object.defineProperty(H,"generate",{enumerable:!0,get:function(){return g_.generate}});var b_=F2();Object.defineProperty(H,"iif",{enumerable:!0,get:function(){return b_.iif}});var d_=Cq();Object.defineProperty(H,"interval",{enumerable:!0,get:function(){return d_.interval}});var c_=E2();Object.defineProperty(H,"merge",{enumerable:!0,get:function(){return c_.merge}});var u_=x2();Object.defineProperty(H,"of",{enumerable:!0,get:function(){return u_.of}});var l_=Rq();Object.defineProperty(H,"onErrorResumeNext",{enumerable:!0,get:function(){return l_.onErrorResumeNext}});var p_=c2();Object.defineProperty(H,"partition",{enumerable:!0,get:function(){return p_.partition}});var i_=yq();Object.defineProperty(H,"race",{enumerable:!0,get:function(){return i_.race}});var n_=r2();Object.defineProperty(H,"range",{enumerable:!0,get:function(){return n_.range}});var a_=o2();Object.defineProperty(H,"throwError",{enumerable:!0,get:function(){return a_.throwError}});var r_=I8();Object.defineProperty(H,"timer",{enumerable:!0,get:function(){return r_.timer}});var s_=JI();Object.defineProperty(H,"using",{enumerable:!0,get:function(){return s_.using}});var t_=lH();Object.defineProperty(H,"zip",{enumerable:!0,get:function(){return t_.zip}});var o_=eK();Object.defineProperty(H,"scheduled",{enumerable:!0,get:function(){return o_.scheduled}});var e_=M6();Object.defineProperty(H,"EMPTY",{enumerable:!0,get:function(){return e_.EMPTY}});var ZS=HI();Object.defineProperty(H,"NEVER",{enumerable:!0,get:function(){return ZS.NEVER}});Q_(qI(),H);var $S=jq();Object.defineProperty(H,"audit",{enumerable:!0,get:function(){return $S.audit}});var JS=GI();Object.defineProperty(H,"auditTime",{enumerable:!0,get:function(){return JS.auditTime}});var YS=DI();Object.defineProperty(H,"buffer",{enumerable:!0,get:function(){return YS.buffer}});var XS=kI();Object.defineProperty(H,"bufferCount",{enumerable:!0,get:function(){return XS.bufferCount}});var zS=VI();Object.defineProperty(H,"bufferTime",{enumerable:!0,get:function(){return zS.bufferTime}});var KS=AI();Object.defineProperty(H,"bufferToggle",{enumerable:!0,get:function(){return KS.bufferToggle}});var HS=TI();Object.defineProperty(H,"bufferWhen",{enumerable:!0,get:function(){return HS.bufferWhen}});var QS=jI();Object.defineProperty(H,"catchError",{enumerable:!0,get:function(){return QS.catchError}});var qS=nI();Object.defineProperty(H,"combineLatestAll",{enumerable:!0,get:function(){return qS.combineLatestAll}});var WS=sI();Object.defineProperty(H,"combineLatestWith",{enumerable:!0,get:function(){return WS.combineLatestWith}});var NS=dH();Object.defineProperty(H,"concatAll",{enumerable:!0,get:function(){return NS.concatAll}});var BS=cq();Object.defineProperty(H,"concatMap",{enumerable:!0,get:function(){return BS.concatMap}});var FS=$U();Object.defineProperty(H,"concatMapTo",{enumerable:!0,get:function(){return FS.concatMapTo}});var GS=zU();Object.defineProperty(H,"concatWith",{enumerable:!0,get:function(){return GS.concatWith}});var LS=BU();Object.defineProperty(H,"connect",{enumerable:!0,get:function(){return LS.connect}});var wS=LU();Object.defineProperty(H,"count",{enumerable:!0,get:function(){return wS.count}});var DS=IU();Object.defineProperty(H,"debounce",{enumerable:!0,get:function(){return DS.debounce}});var IS=fU();Object.defineProperty(H,"debounceTime",{enumerable:!0,get:function(){return IS.debounceTime}});var US=xU();Object.defineProperty(H,"defaultIfEmpty",{enumerable:!0,get:function(){return US.defaultIfEmpty}});var OS=gU();Object.defineProperty(H,"delay",{enumerable:!0,get:function(){return OS.delay}});var kS=iq();Object.defineProperty(H,"delayWhen",{enumerable:!0,get:function(){return kS.delayWhen}});var fS=iU();Object.defineProperty(H,"dematerialize",{enumerable:!0,get:function(){return fS.dematerialize}});var ES=rU();Object.defineProperty(H,"distinct",{enumerable:!0,get:function(){return ES.distinct}});var PS=nq();Object.defineProperty(H,"distinctUntilChanged",{enumerable:!0,get:function(){return PS.distinctUntilChanged}});var VS=$O();Object.defineProperty(H,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return VS.distinctUntilKeyChanged}});var xS=KO();Object.defineProperty(H,"elementAt",{enumerable:!0,get:function(){return xS.elementAt}});var MS=qO();Object.defineProperty(H,"endWith",{enumerable:!0,get:function(){return MS.endWith}});var hS=FO();Object.defineProperty(H,"every",{enumerable:!0,get:function(){return hS.every}});var AS=IO();Object.defineProperty(H,"exhaustAll",{enumerable:!0,get:function(){return AS.exhaustAll}});var vS=rq();Object.defineProperty(H,"exhaustMap",{enumerable:!0,get:function(){return vS.exhaustMap}});var CS=kO();Object.defineProperty(H,"expand",{enumerable:!0,get:function(){return CS.expand}});var TS=cH();Object.defineProperty(H,"filter",{enumerable:!0,get:function(){return TS.filter}});var RS=PO();Object.defineProperty(H,"finalize",{enumerable:!0,get:function(){return RS.finalize}});var yS=sq();Object.defineProperty(H,"find",{enumerable:!0,get:function(){return yS.find}});var mS=CO();Object.defineProperty(H,"findIndex",{enumerable:!0,get:function(){return mS.findIndex}});var jS=mO();Object.defineProperty(H,"first",{enumerable:!0,get:function(){return jS.first}});var _S=SO();Object.defineProperty(H,"groupBy",{enumerable:!0,get:function(){return _S.groupBy}});var SS=lq();Object.defineProperty(H,"ignoreElements",{enumerable:!0,get:function(){return SS.ignoreElements}});var gS=cO();Object.defineProperty(H,"isEmpty",{enumerable:!0,get:function(){return gS.isEmpty}});var bS=iO();Object.defineProperty(H,"last",{enumerable:!0,get:function(){return bS.last}});var dS=VK();Object.defineProperty(H,"map",{enumerable:!0,get:function(){return dS.map}});var cS=rO();Object.defineProperty(H,"mapTo",{enumerable:!0,get:function(){return cS.mapTo}});var uS=oO();Object.defineProperty(H,"materialize",{enumerable:!0,get:function(){return uS.materialize}});var lS=$k();Object.defineProperty(H,"max",{enumerable:!0,get:function(){return lS.max}});var pS=ZH();Object.defineProperty(H,"mergeAll",{enumerable:!0,get:function(){return pS.mergeAll}});var iS=t$();Object.defineProperty(H,"mergeMap",{enumerable:!0,get:function(){return iS.mergeMap}});var nS=Xk();Object.defineProperty(H,"mergeMapTo",{enumerable:!0,get:function(){return nS.mergeMapTo}});var aS=Hk();Object.defineProperty(H,"mergeScan",{enumerable:!0,get:function(){return aS.mergeScan}});var rS=Nk();Object.defineProperty(H,"mergeWith",{enumerable:!0,get:function(){return rS.mergeWith}});var sS=Gk();Object.defineProperty(H,"min",{enumerable:!0,get:function(){return sS.min}});var tS=_H();Object.defineProperty(H,"observeOn",{enumerable:!0,get:function(){return tS.observeOn}});var oS=Dk();Object.defineProperty(H,"onErrorResumeNextWith",{enumerable:!0,get:function(){return oS.onErrorResumeNextWith}});var eS=kk();Object.defineProperty(H,"pairwise",{enumerable:!0,get:function(){return eS.pairwise}});var Zg=Pk();Object.defineProperty(H,"raceWith",{enumerable:!0,get:function(){return Zg.raceWith}});var $g=MK();Object.defineProperty(H,"reduce",{enumerable:!0,get:function(){return $g.reduce}});var Jg=Mk();Object.defineProperty(H,"repeat",{enumerable:!0,get:function(){return Jg.repeat}});var Yg=vk();Object.defineProperty(H,"repeatWhen",{enumerable:!0,get:function(){return Yg.repeatWhen}});var Xg=Rk();Object.defineProperty(H,"retry",{enumerable:!0,get:function(){return Xg.retry}});var zg=jk();Object.defineProperty(H,"retryWhen",{enumerable:!0,get:function(){return zg.retryWhen}});var Kg=tq();Object.defineProperty(H,"sample",{enumerable:!0,get:function(){return Kg.sample}});var Hg=dk();Object.defineProperty(H,"sampleTime",{enumerable:!0,get:function(){return Hg.sampleTime}});var Qg=lk();Object.defineProperty(H,"scan",{enumerable:!0,get:function(){return Qg.scan}});var qg=ak();Object.defineProperty(H,"sequenceEqual",{enumerable:!0,get:function(){return qg.sequenceEqual}});var Wg=ZW();Object.defineProperty(H,"share",{enumerable:!0,get:function(){return Wg.share}});var Ng=ek();Object.defineProperty(H,"shareReplay",{enumerable:!0,get:function(){return Ng.shareReplay}});var Bg=Yf();Object.defineProperty(H,"single",{enumerable:!0,get:function(){return Bg.single}});var Fg=Kf();Object.defineProperty(H,"skip",{enumerable:!0,get:function(){return Fg.skip}});var Gg=Wf();Object.defineProperty(H,"skipLast",{enumerable:!0,get:function(){return Gg.skipLast}});var Lg=Ff();Object.defineProperty(H,"skipUntil",{enumerable:!0,get:function(){return Lg.skipUntil}});var wg=Df();Object.defineProperty(H,"skipWhile",{enumerable:!0,get:function(){return wg.skipWhile}});var Dg=Of();Object.defineProperty(H,"startWith",{enumerable:!0,get:function(){return Dg.startWith}});var Ig=SH();Object.defineProperty(H,"subscribeOn",{enumerable:!0,get:function(){return Ig.subscribeOn}});var Ug=Vf();Object.defineProperty(H,"switchAll",{enumerable:!0,get:function(){return Ug.switchAll}});var Og=KH();Object.defineProperty(H,"switchMap",{enumerable:!0,get:function(){return Og.switchMap}});var kg=hf();Object.defineProperty(H,"switchMapTo",{enumerable:!0,get:function(){return kg.switchMapTo}});var fg=Tf();Object.defineProperty(H,"switchScan",{enumerable:!0,get:function(){return fg.switchScan}});var Eg=uq();Object.defineProperty(H,"take",{enumerable:!0,get:function(){return Eg.take}});var Pg=jf();Object.defineProperty(H,"takeLast",{enumerable:!0,get:function(){return Pg.takeLast}});var Vg=gf();Object.defineProperty(H,"takeUntil",{enumerable:!0,get:function(){return Vg.takeUntil}});var xg=uf();Object.defineProperty(H,"takeWhile",{enumerable:!0,get:function(){return xg.takeWhile}});var Mg=nf();Object.defineProperty(H,"tap",{enumerable:!0,get:function(){return Mg.tap}});var hg=XW();Object.defineProperty(H,"throttle",{enumerable:!0,get:function(){return hg.throttle}});var Ag=of();Object.defineProperty(H,"throttleTime",{enumerable:!0,get:function(){return Ag.throttleTime}});var vg=JE();Object.defineProperty(H,"throwIfEmpty",{enumerable:!0,get:function(){return vg.throwIfEmpty}});var Cg=KE();Object.defineProperty(H,"timeInterval",{enumerable:!0,get:function(){return Cg.timeInterval}});var Tg=jH();Object.defineProperty(H,"timeout",{enumerable:!0,get:function(){return Tg.timeout}});var Rg=qE();Object.defineProperty(H,"timeoutWith",{enumerable:!0,get:function(){return Rg.timeoutWith}});var yg=BE();Object.defineProperty(H,"timestamp",{enumerable:!0,get:function(){return yg.timestamp}});var mg=bq();Object.defineProperty(H,"toArray",{enumerable:!0,get:function(){return mg.toArray}});var jg=wE();Object.defineProperty(H,"window",{enumerable:!0,get:function(){return jg.window}});var _g=kE();Object.defineProperty(H,"windowCount",{enumerable:!0,get:function(){return _g.windowCount}});var Sg=VE();Object.defineProperty(H,"windowTime",{enumerable:!0,get:function(){return Sg.windowTime}});var gg=AE();Object.defineProperty(H,"windowToggle",{enumerable:!0,get:function(){return gg.windowToggle}});var bg=TE();Object.defineProperty(H,"windowWhen",{enumerable:!0,get:function(){return bg.windowWhen}});var dg=mE();Object.defineProperty(H,"withLatestFrom",{enumerable:!0,get:function(){return dg.withLatestFrom}});var cg=SE();Object.defineProperty(H,"zipAll",{enumerable:!0,get:function(){return cg.zipAll}});var ug=dE();Object.defineProperty(H,"zipWith",{enumerable:!0,get:function(){return ug.zipWith}})});async function HW(Z,$,J){let{max:Y=4}=J??{},X=(K)=>A.defer(()=>A.from($(Z[K])).pipe(A.map((Q)=>({idx:K,v:Q})))),z=A.from(Z.map((K,Q)=>Q)).pipe(A.map(X),A.mergeAll(Y),A.reduce((K,Q)=>{return K[Q.idx]=Q.v,K},[]));return A.firstValueFrom(z)}class lE{opQueue=new A.Subject;opResultStream;nextOperation=1;dispose;constructor(Z){let{max:$=4}=Z??{};this.opResultStream=this.opQueue.pipe(A.mergeAll($),A.share()),this.dispose=this.opResultStream.subscribe()}enqueue(Z){let $=this.nextOperation++,J=A.defer(()=>A.from(Z()).pipe(A.map((X)=>({id:$,result:X})),A.catchError((X)=>A.of({id:$,error:X})))),Y=A.firstValueFrom(this.opResultStream.pipe(A.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 A.firstValueFrom(A.from(Z).pipe(A.mergeMap((J)=>this.enqueue(()=>$(J)).then((Y)=>({key:J,value:Y}))),A.reduce((J,Y)=>{return J.set(Y.key,Y.value),J},new Map)))}close(){this.opQueue.complete();let Z=A.lastValueFrom(this.opResultStream.pipe(A.materialize(),A.map(()=>{return})));return this.dispose.unsubscribe(),Z}}var A;var pE=I(()=>{A=_N(uE(),1)});import{randomUUID as lg}from"crypto";function QQ(){return lg({disableEntropyCache:!0})}var iE=()=>{};function nE(Z){return Z.replace(/[^a-zA-Z0-9]/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,"")}function QW(Z,$){let J=nE($);return`${Z}/.cursor/projects/${J}`}var hK=I(()=>{pE();iE()});var sE=q((aE)=>{Object.defineProperty(aE,"__esModule",{value:!0});aE._globalThis=void 0;aE._globalThis=typeof globalThis==="object"?globalThis:global});var tE=q((Z9)=>{var pg=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]}),ig=Z9&&Z9.__exportStar||function(Z,$){for(var J in Z)if(J!=="default"&&!Object.prototype.hasOwnProperty.call($,J))pg($,Z,J)};Object.defineProperty(Z9,"__esModule",{value:!0});ig(sE(),Z9)});var oE=q(($9)=>{var ng=$9&&$9.__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]}),ag=$9&&$9.__exportStar||function(Z,$){for(var J in Z)if(J!=="default"&&!Object.prototype.hasOwnProperty.call($,J))ng($,Z,J)};Object.defineProperty($9,"__esModule",{value:!0});ag(tE(),$9)});var qW=q((eE)=>{Object.defineProperty(eE,"__esModule",{value:!0});eE.VERSION=void 0;eE.VERSION="1.9.0"});var zP=q((YP)=>{Object.defineProperty(YP,"__esModule",{value:!0});YP.isCompatible=YP._makeCompatibilityCheck=void 0;var rg=qW(),$P=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function JP(Z){let $=new Set([Z]),J=new Set,Y=Z.match($P);if(!Y)return()=>!1;let X={major:+Y[1],minor:+Y[2],patch:+Y[3],prerelease:Y[4]};if(X.prerelease!=null)return function(W){return W===Z};function z(Q){return J.add(Q),!1}function K(Q){return $.add(Q),!0}return function(W){if($.has(W))return!0;if(J.has(W))return!1;let G=W.match($P);if(!G)return z(W);let L={major:+G[1],minor:+G[2],patch:+G[3],prerelease:G[4]};if(L.prerelease!=null)return z(W);if(X.major!==L.major)return z(W);if(X.major===0){if(X.minor===L.minor&&X.patch<=L.patch)return K(W);return z(W)}if(X.minor<=L.minor)return K(W);return z(W)}}YP._makeCompatibilityCheck=JP;YP.isCompatible=JP(rg.VERSION)});var J9=q((KP)=>{Object.defineProperty(KP,"__esModule",{value:!0});KP.unregisterGlobal=KP.getGlobal=KP.registerGlobal=void 0;var tg=oE(),AK=qW(),og=zP(),eg=AK.VERSION.split(".")[0],HH=Symbol.for(`opentelemetry.js.api.${eg}`),QH=tg._globalThis;function Zb(Z,$,J,Y=!1){var X;let z=QH[HH]=(X=QH[HH])!==null&&X!==void 0?X:{version:AK.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!==AK.VERSION){let K=Error(`@opentelemetry/api: Registration of version v${z.version} for ${Z} does not match previously registered API v${AK.VERSION}`);return J.error(K.stack||K.message),!1}return z[Z]=$,J.debug(`@opentelemetry/api: Registered a global for ${Z} v${AK.VERSION}.`),!0}KP.registerGlobal=Zb;function $b(Z){var $,J;let Y=($=QH[HH])===null||$===void 0?void 0:$.version;if(!Y||!(0,og.isCompatible)(Y))return;return(J=QH[HH])===null||J===void 0?void 0:J[Z]}KP.getGlobal=$b;function Jb(Z,$){$.debug(`@opentelemetry/api: Unregistering a global for ${Z} v${AK.VERSION}.`);let J=QH[HH];if(J)delete J[Z]}KP.unregisterGlobal=Jb});var NP=q((qP)=>{Object.defineProperty(qP,"__esModule",{value:!0});qP.DiagComponentLogger=void 0;var zb=J9();class QP{constructor(Z){this._namespace=Z.namespace||"DiagComponentLogger"}debug(...Z){return qH("debug",this._namespace,Z)}error(...Z){return qH("error",this._namespace,Z)}info(...Z){return qH("info",this._namespace,Z)}warn(...Z){return qH("warn",this._namespace,Z)}verbose(...Z){return qH("verbose",this._namespace,Z)}}qP.DiagComponentLogger=QP;function qH(Z,$,J){let Y=(0,zb.getGlobal)("diag");if(!Y)return;return J.unshift($),Y[Z](...J)}});var qQ=q((BP)=>{Object.defineProperty(BP,"__esModule",{value:!0});BP.DiagLogLevel=void 0;var Kb;(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"})(Kb=BP.DiagLogLevel||(BP.DiagLogLevel={}))});var LP=q((FP)=>{Object.defineProperty(FP,"__esModule",{value:!0});FP.createLogLevelDiagLogger=void 0;var d6=qQ();function Hb(Z,$){if(Z<d6.DiagLogLevel.NONE)Z=d6.DiagLogLevel.NONE;else if(Z>d6.DiagLogLevel.ALL)Z=d6.DiagLogLevel.ALL;$=$||{};function J(Y,X){let z=$[Y];if(typeof z==="function"&&Z>=X)return z.bind($);return function(){}}return{error:J("error",d6.DiagLogLevel.ERROR),warn:J("warn",d6.DiagLogLevel.WARN),info:J("info",d6.DiagLogLevel.INFO),debug:J("debug",d6.DiagLogLevel.DEBUG),verbose:J("verbose",d6.DiagLogLevel.VERBOSE)}}FP.createLogLevelDiagLogger=Hb});var Y9=q((DP)=>{Object.defineProperty(DP,"__esModule",{value:!0});DP.DiagAPI=void 0;var Qb=NP(),qb=LP(),wP=qQ(),WQ=J9(),Wb="diag";class NW{constructor(){function Z(Y){return function(...X){let z=(0,WQ.getGlobal)("diag");if(!z)return;return z[Y](...X)}}let $=this,J=(Y,X={logLevel:wP.DiagLogLevel.INFO})=>{var z,K,Q;if(Y===$){let L=Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return $.error((z=L.stack)!==null&&z!==void 0?z:L.message),!1}if(typeof X==="number")X={logLevel:X};let W=(0,WQ.getGlobal)("diag"),G=(0,qb.createLogLevelDiagLogger)((K=X.logLevel)!==null&&K!==void 0?K:wP.DiagLogLevel.INFO,Y);if(W&&!X.suppressOverrideMessage){let L=(Q=Error().stack)!==null&&Q!==void 0?Q:"<failed to generate stacktrace>";W.warn(`Current logger will be overwritten from ${L}`),G.warn(`Current logger will overwrite one already registered from ${L}`)}return(0,WQ.registerGlobal)("diag",G,$,!0)};$.setLogger=J,$.disable=()=>{(0,WQ.unregisterGlobal)(Wb,$)},$.createComponentLogger=(Y)=>{return new Qb.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 NW;return this._instance}}DP.DiagAPI=NW});var kP=q((UP)=>{Object.defineProperty(UP,"__esModule",{value:!0});UP.BaggageImpl=void 0;class vK{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 vK(this._entries);return J._entries.set(Z,$),J}removeEntry(Z){let $=new vK(this._entries);return $._entries.delete(Z),$}removeEntries(...Z){let $=new vK(this._entries);for(let J of Z)$._entries.delete(J);return $}clear(){return new vK}}UP.BaggageImpl=vK});var PP=q((fP)=>{Object.defineProperty(fP,"__esModule",{value:!0});fP.baggageEntryMetadataSymbol=void 0;fP.baggageEntryMetadataSymbol=Symbol("BaggageEntryMetadata")});var BW=q((VP)=>{Object.defineProperty(VP,"__esModule",{value:!0});VP.baggageEntryMetadataFromString=VP.createBaggage=void 0;var Nb=Y9(),Bb=kP(),Fb=PP(),Gb=Nb.DiagAPI.instance();function Lb(Z={}){return new Bb.BaggageImpl(new Map(Object.entries(Z)))}VP.createBaggage=Lb;function wb(Z){if(typeof Z!=="string")Gb.error(`Cannot create baggage metadata from unknown type: ${typeof Z}`),Z="";return{__TYPE__:Fb.baggageEntryMetadataSymbol,toString(){return Z}}}VP.baggageEntryMetadataFromString=wb});var WH=q((MP)=>{Object.defineProperty(MP,"__esModule",{value:!0});MP.ROOT_CONTEXT=MP.createContextKey=void 0;function Ib(Z){return Symbol.for(Z)}MP.createContextKey=Ib;class NQ{constructor(Z){let $=this;$._currentContext=Z?new Map(Z):new Map,$.getValue=(J)=>$._currentContext.get(J),$.setValue=(J,Y)=>{let X=new NQ($._currentContext);return X._currentContext.set(J,Y),X},$.deleteValue=(J)=>{let Y=new NQ($._currentContext);return Y._currentContext.delete(J),Y}}}MP.ROOT_CONTEXT=new NQ});var TP=q((vP)=>{Object.defineProperty(vP,"__esModule",{value:!0});vP.DiagConsoleLogger=void 0;var FW=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}];class AP{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;$<FW.length;$++)this[FW[$].n]=Z(FW[$].c)}}vP.DiagConsoleLogger=AP});var fW=q((RP)=>{Object.defineProperty(RP,"__esModule",{value:!0});RP.createNoopMeter=RP.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC=RP.NOOP_OBSERVABLE_GAUGE_METRIC=RP.NOOP_OBSERVABLE_COUNTER_METRIC=RP.NOOP_UP_DOWN_COUNTER_METRIC=RP.NOOP_HISTOGRAM_METRIC=RP.NOOP_GAUGE_METRIC=RP.NOOP_COUNTER_METRIC=RP.NOOP_METER=RP.NoopObservableUpDownCounterMetric=RP.NoopObservableGaugeMetric=RP.NoopObservableCounterMetric=RP.NoopObservableMetric=RP.NoopHistogramMetric=RP.NoopGaugeMetric=RP.NoopUpDownCounterMetric=RP.NoopCounterMetric=RP.NoopMetric=RP.NoopMeter=void 0;class GW{constructor(){}createGauge(Z,$){return RP.NOOP_GAUGE_METRIC}createHistogram(Z,$){return RP.NOOP_HISTOGRAM_METRIC}createCounter(Z,$){return RP.NOOP_COUNTER_METRIC}createUpDownCounter(Z,$){return RP.NOOP_UP_DOWN_COUNTER_METRIC}createObservableGauge(Z,$){return RP.NOOP_OBSERVABLE_GAUGE_METRIC}createObservableCounter(Z,$){return RP.NOOP_OBSERVABLE_COUNTER_METRIC}createObservableUpDownCounter(Z,$){return RP.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC}addBatchObservableCallback(Z,$){}removeBatchObservableCallback(Z){}}RP.NoopMeter=GW;class CK{}RP.NoopMetric=CK;class LW extends CK{add(Z,$){}}RP.NoopCounterMetric=LW;class wW extends CK{add(Z,$){}}RP.NoopUpDownCounterMetric=wW;class DW extends CK{record(Z,$){}}RP.NoopGaugeMetric=DW;class IW extends CK{record(Z,$){}}RP.NoopHistogramMetric=IW;class NH{addCallback(Z){}removeCallback(Z){}}RP.NoopObservableMetric=NH;class UW extends NH{}RP.NoopObservableCounterMetric=UW;class OW extends NH{}RP.NoopObservableGaugeMetric=OW;class kW extends NH{}RP.NoopObservableUpDownCounterMetric=kW;RP.NOOP_METER=new GW;RP.NOOP_COUNTER_METRIC=new LW;RP.NOOP_GAUGE_METRIC=new DW;RP.NOOP_HISTOGRAM_METRIC=new IW;RP.NOOP_UP_DOWN_COUNTER_METRIC=new wW;RP.NOOP_OBSERVABLE_COUNTER_METRIC=new UW;RP.NOOP_OBSERVABLE_GAUGE_METRIC=new OW;RP.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC=new kW;function Ob(){return RP.NOOP_METER}RP.createNoopMeter=Ob});var lP=q((uP)=>{Object.defineProperty(uP,"__esModule",{value:!0});uP.ValueType=void 0;var Cb;(function(Z){Z[Z.INT=0]="INT",Z[Z.DOUBLE=1]="DOUBLE"})(Cb=uP.ValueType||(uP.ValueType={}))});var PW=q((pP)=>{Object.defineProperty(pP,"__esModule",{value:!0});pP.defaultTextMapSetter=pP.defaultTextMapGetter=void 0;pP.defaultTextMapGetter={get(Z,$){if(Z==null)return;return Z[$]},keys(Z){if(Z==null)return[];return Object.keys(Z)}};pP.defaultTextMapSetter={set(Z,$,J){if(Z==null)return;Z[$]=J}}});var sP=q((aP)=>{Object.defineProperty(aP,"__esModule",{value:!0});aP.NoopContextManager=void 0;var Rb=WH();class nP{active(){return Rb.ROOT_CONTEXT}with(Z,$,J,...Y){return $.call(J,...Y)}bind(Z,$){return $}enable(){return this}disable(){return this}}aP.NoopContextManager=nP});var BH=q((oP)=>{Object.defineProperty(oP,"__esModule",{value:!0});oP.ContextAPI=void 0;var yb=sP(),VW=J9(),tP=Y9(),xW="context",mb=new yb.NoopContextManager;class MW{constructor(){}static getInstance(){if(!this._instance)this._instance=new MW;return this._instance}setGlobalContextManager(Z){return(0,VW.registerGlobal)(xW,Z,tP.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,VW.getGlobal)(xW)||mb}disable(){this._getContextManager().disable(),(0,VW.unregisterGlobal)(xW,tP.DiagAPI.instance())}}oP.ContextAPI=MW});var AW=q((ZV)=>{Object.defineProperty(ZV,"__esModule",{value:!0});ZV.TraceFlags=void 0;var jb;(function(Z){Z[Z.NONE=0]="NONE",Z[Z.SAMPLED=1]="SAMPLED"})(jb=ZV.TraceFlags||(ZV.TraceFlags={}))});var BQ=q(($V)=>{Object.defineProperty($V,"__esModule",{value:!0});$V.INVALID_SPAN_CONTEXT=$V.INVALID_TRACEID=$V.INVALID_SPANID=void 0;var _b=AW();$V.INVALID_SPANID="0000000000000000";$V.INVALID_TRACEID="00000000000000000000000000000000";$V.INVALID_SPAN_CONTEXT={traceId:$V.INVALID_TRACEID,spanId:$V.INVALID_SPANID,traceFlags:_b.TraceFlags.NONE}});var FQ=q((KV)=>{Object.defineProperty(KV,"__esModule",{value:!0});KV.NonRecordingSpan=void 0;var Sb=BQ();class zV{constructor(Z=Sb.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,$){}}KV.NonRecordingSpan=zV});var TW=q((qV)=>{Object.defineProperty(qV,"__esModule",{value:!0});qV.getSpanContext=qV.setSpanContext=qV.deleteSpan=qV.setSpan=qV.getActiveSpan=qV.getSpan=void 0;var gb=WH(),bb=FQ(),db=BH(),vW=(0,gb.createContextKey)("OpenTelemetry Context Key SPAN");function CW(Z){return Z.getValue(vW)||void 0}qV.getSpan=CW;function cb(){return CW(db.ContextAPI.getInstance().active())}qV.getActiveSpan=cb;function QV(Z,$){return Z.setValue(vW,$)}qV.setSpan=QV;function ub(Z){return Z.deleteValue(vW)}qV.deleteSpan=ub;function lb(Z,$){return QV(Z,new bb.NonRecordingSpan($))}qV.setSpanContext=lb;function pb(Z){var $;return($=CW(Z))===null||$===void 0?void 0:$.spanContext()}qV.getSpanContext=pb});var GQ=q((GV)=>{Object.defineProperty(GV,"__esModule",{value:!0});GV.wrapSpanContext=GV.isSpanContextValid=GV.isValidSpanId=GV.isValidTraceId=void 0;var NV=BQ(),tb=FQ(),ob=/^([0-9a-f]{32})$/i,eb=/^[0-9a-f]{16}$/i;function BV(Z){return ob.test(Z)&&Z!==NV.INVALID_TRACEID}GV.isValidTraceId=BV;function FV(Z){return eb.test(Z)&&Z!==NV.INVALID_SPANID}GV.isValidSpanId=FV;function Zd(Z){return BV(Z.traceId)&&FV(Z.spanId)}GV.isSpanContextValid=Zd;function $d(Z){return new tb.NonRecordingSpan(Z)}GV.wrapSpanContext=$d});var mW=q((IV)=>{Object.defineProperty(IV,"__esModule",{value:!0});IV.NoopTracer=void 0;var zd=BH(),wV=TW(),RW=FQ(),Kd=GQ(),yW=zd.ContextAPI.getInstance();class DV{startSpan(Z,$,J=yW.active()){if(Boolean($===null||$===void 0?void 0:$.root))return new RW.NonRecordingSpan;let X=J&&(0,wV.getSpanContext)(J);if(Hd(X)&&(0,Kd.isSpanContextValid)(X))return new RW.NonRecordingSpan(X);else return new RW.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 Q=z!==null&&z!==void 0?z:yW.active(),W=this.startSpan(Z,X,Q),G=(0,wV.setSpan)(Q,W);return yW.with(G,K,void 0,W)}}IV.NoopTracer=DV;function Hd(Z){return typeof Z==="object"&&typeof Z.spanId==="string"&&typeof Z.traceId==="string"&&typeof Z.traceFlags==="number"}});var jW=q((kV)=>{Object.defineProperty(kV,"__esModule",{value:!0});kV.ProxyTracer=void 0;var Qd=mW(),qd=new Qd.NoopTracer;class OV{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 qd;return this._delegate=Z,this._delegate}}kV.ProxyTracer=OV});var xV=q((PV)=>{Object.defineProperty(PV,"__esModule",{value:!0});PV.NoopTracerProvider=void 0;var Wd=mW();class EV{getTracer(Z,$,J){return new Wd.NoopTracer}}PV.NoopTracerProvider=EV});var _W=q((hV)=>{Object.defineProperty(hV,"__esModule",{value:!0});hV.ProxyTracerProvider=void 0;var Nd=jW(),Bd=xV(),Fd=new Bd.NoopTracerProvider;class MV{getTracer(Z,$,J){var Y;return(Y=this.getDelegateTracer(Z,$,J))!==null&&Y!==void 0?Y:new Nd.ProxyTracer(this,Z,$,J)}getDelegate(){var Z;return(Z=this._delegate)!==null&&Z!==void 0?Z:Fd}setDelegate(Z){this._delegate=Z}getDelegateTracer(Z,$,J){var Y;return(Y=this._delegate)===null||Y===void 0?void 0:Y.getTracer(Z,$,J)}}hV.ProxyTracerProvider=MV});var CV=q((vV)=>{Object.defineProperty(vV,"__esModule",{value:!0});vV.SamplingDecision=void 0;var Gd;(function(Z){Z[Z.NOT_RECORD=0]="NOT_RECORD",Z[Z.RECORD=1]="RECORD",Z[Z.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(Gd=vV.SamplingDecision||(vV.SamplingDecision={}))});var RV=q((TV)=>{Object.defineProperty(TV,"__esModule",{value:!0});TV.SpanKind=void 0;var Ld;(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"})(Ld=TV.SpanKind||(TV.SpanKind={}))});var mV=q((yV)=>{Object.defineProperty(yV,"__esModule",{value:!0});yV.SpanStatusCode=void 0;var wd;(function(Z){Z[Z.UNSET=0]="UNSET",Z[Z.OK=1]="OK",Z[Z.ERROR=2]="ERROR"})(wd=yV.SpanStatusCode||(yV.SpanStatusCode={}))});var SV=q((jV)=>{Object.defineProperty(jV,"__esModule",{value:!0});jV.validateValue=jV.validateKey=void 0;var dW="[_0-9a-z-*/]",Dd=`[a-z]${dW}{0,255}`,Id=`[a-z0-9]${dW}{0,240}@[a-z]${dW}{0,13}`,Ud=new RegExp(`^(?:${Dd}|${Id})$`),Od=/^[ -~]{0,255}[!-~]$/,kd=/,|=/;function fd(Z){return Ud.test(Z)}jV.validateKey=fd;function Ed(Z){return Od.test(Z)&&!kd.test(Z)}jV.validateValue=Ed});var pV=q((uV)=>{Object.defineProperty(uV,"__esModule",{value:!0});uV.TraceStateImpl=void 0;var gV=SV(),bV=32,Vd=512,dV=",",cV="=";class cW{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($+cV+this.get($)),Z},[]).join(dV)}_parse(Z){if(Z.length>Vd)return;if(this._internalState=Z.split(dV).reverse().reduce(($,J)=>{let Y=J.trim(),X=Y.indexOf(cV);if(X!==-1){let z=Y.slice(0,X),K=Y.slice(X+1,J.length);if((0,gV.validateKey)(z)&&(0,gV.validateValue)(K))$.set(z,K)}return $},new Map),this._internalState.size>bV)this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,bV))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let Z=new cW;return Z._internalState=new Map(this._internalState),Z}}uV.TraceStateImpl=cW});var aV=q((iV)=>{Object.defineProperty(iV,"__esModule",{value:!0});iV.createTraceState=void 0;var xd=pV();function Md(Z){return new xd.TraceStateImpl(Z)}iV.createTraceState=Md});var tV=q((rV)=>{Object.defineProperty(rV,"__esModule",{value:!0});rV.context=void 0;var hd=BH();rV.context=hd.ContextAPI.getInstance()});var Z4=q((oV)=>{Object.defineProperty(oV,"__esModule",{value:!0});oV.diag=void 0;var Ad=Y9();oV.diag=Ad.DiagAPI.instance()});var Y4=q(($4)=>{Object.defineProperty($4,"__esModule",{value:!0});$4.NOOP_METER_PROVIDER=$4.NoopMeterProvider=void 0;var vd=fW();class uW{getMeter(Z,$,J){return vd.NOOP_METER}}$4.NoopMeterProvider=uW;$4.NOOP_METER_PROVIDER=new uW});var H4=q((z4)=>{Object.defineProperty(z4,"__esModule",{value:!0});z4.MetricsAPI=void 0;var Td=Y4(),lW=J9(),X4=Y9(),pW="metrics";class iW{constructor(){}static getInstance(){if(!this._instance)this._instance=new iW;return this._instance}setGlobalMeterProvider(Z){return(0,lW.registerGlobal)(pW,Z,X4.DiagAPI.instance())}getMeterProvider(){return(0,lW.getGlobal)(pW)||Td.NOOP_METER_PROVIDER}getMeter(Z,$,J){return this.getMeterProvider().getMeter(Z,$,J)}disable(){(0,lW.unregisterGlobal)(pW,X4.DiagAPI.instance())}}z4.MetricsAPI=iW});var W4=q((Q4)=>{Object.defineProperty(Q4,"__esModule",{value:!0});Q4.metrics=void 0;var Rd=H4();Q4.metrics=Rd.MetricsAPI.getInstance()});var G4=q((B4)=>{Object.defineProperty(B4,"__esModule",{value:!0});B4.NoopTextMapPropagator=void 0;class N4{inject(Z,$){}extract(Z,$){return Z}fields(){return[]}}B4.NoopTextMapPropagator=N4});var I4=q((w4)=>{Object.defineProperty(w4,"__esModule",{value:!0});w4.deleteBaggage=w4.setBaggage=w4.getActiveBaggage=w4.getBaggage=void 0;var yd=BH(),md=WH(),nW=(0,md.createContextKey)("OpenTelemetry Baggage Key");function L4(Z){return Z.getValue(nW)||void 0}w4.getBaggage=L4;function jd(){return L4(yd.ContextAPI.getInstance().active())}w4.getActiveBaggage=jd;function _d(Z,$){return Z.setValue(nW,$)}w4.setBaggage=_d;function Sd(Z){return Z.deleteValue(nW)}w4.deleteBaggage=Sd});var E4=q((k4)=>{Object.defineProperty(k4,"__esModule",{value:!0});k4.PropagationAPI=void 0;var aW=J9(),cd=G4(),U4=PW(),LQ=I4(),ud=BW(),O4=Y9(),rW="propagation",ld=new cd.NoopTextMapPropagator;class sW{constructor(){this.createBaggage=ud.createBaggage,this.getBaggage=LQ.getBaggage,this.getActiveBaggage=LQ.getActiveBaggage,this.setBaggage=LQ.setBaggage,this.deleteBaggage=LQ.deleteBaggage}static getInstance(){if(!this._instance)this._instance=new sW;return this._instance}setGlobalPropagator(Z){return(0,aW.registerGlobal)(rW,Z,O4.DiagAPI.instance())}inject(Z,$,J=U4.defaultTextMapSetter){return this._getGlobalPropagator().inject(Z,$,J)}extract(Z,$,J=U4.defaultTextMapGetter){return this._getGlobalPropagator().extract(Z,$,J)}fields(){return this._getGlobalPropagator().fields()}disable(){(0,aW.unregisterGlobal)(rW,O4.DiagAPI.instance())}_getGlobalPropagator(){return(0,aW.getGlobal)(rW)||ld}}k4.PropagationAPI=sW});var x4=q((P4)=>{Object.defineProperty(P4,"__esModule",{value:!0});P4.propagation=void 0;var pd=E4();P4.propagation=pd.PropagationAPI.getInstance()});var T4=q((v4)=>{Object.defineProperty(v4,"__esModule",{value:!0});v4.TraceAPI=void 0;var tW=J9(),M4=_W(),h4=GQ(),TK=TW(),A4=Y9(),oW="trace";class eW{constructor(){this._proxyTracerProvider=new M4.ProxyTracerProvider,this.wrapSpanContext=h4.wrapSpanContext,this.isSpanContextValid=h4.isSpanContextValid,this.deleteSpan=TK.deleteSpan,this.getSpan=TK.getSpan,this.getActiveSpan=TK.getActiveSpan,this.getSpanContext=TK.getSpanContext,this.setSpan=TK.setSpan,this.setSpanContext=TK.setSpanContext}static getInstance(){if(!this._instance)this._instance=new eW;return this._instance}setGlobalTracerProvider(Z){let $=(0,tW.registerGlobal)(oW,this._proxyTracerProvider,A4.DiagAPI.instance());if($)this._proxyTracerProvider.setDelegate(Z);return $}getTracerProvider(){return(0,tW.getGlobal)(oW)||this._proxyTracerProvider}getTracer(Z,$){return this.getTracerProvider().getTracer(Z,$)}disable(){(0,tW.unregisterGlobal)(oW,A4.DiagAPI.instance()),this._proxyTracerProvider=new M4.ProxyTracerProvider}}v4.TraceAPI=eW});var m4=q((R4)=>{Object.defineProperty(R4,"__esModule",{value:!0});R4.trace=void 0;var id=T4();R4.trace=id.TraceAPI.getInstance()});var u4=q((j)=>{Object.defineProperty(j,"__esModule",{value:!0});j.trace=j.propagation=j.metrics=j.diag=j.context=j.INVALID_SPAN_CONTEXT=j.INVALID_TRACEID=j.INVALID_SPANID=j.isValidSpanId=j.isValidTraceId=j.isSpanContextValid=j.createTraceState=j.TraceFlags=j.SpanStatusCode=j.SpanKind=j.SamplingDecision=j.ProxyTracerProvider=j.ProxyTracer=j.defaultTextMapSetter=j.defaultTextMapGetter=j.ValueType=j.createNoopMeter=j.DiagLogLevel=j.DiagConsoleLogger=j.ROOT_CONTEXT=j.createContextKey=j.baggageEntryMetadataFromString=void 0;var nd=BW();Object.defineProperty(j,"baggageEntryMetadataFromString",{enumerable:!0,get:function(){return nd.baggageEntryMetadataFromString}});var j4=WH();Object.defineProperty(j,"createContextKey",{enumerable:!0,get:function(){return j4.createContextKey}});Object.defineProperty(j,"ROOT_CONTEXT",{enumerable:!0,get:function(){return j4.ROOT_CONTEXT}});var ad=TP();Object.defineProperty(j,"DiagConsoleLogger",{enumerable:!0,get:function(){return ad.DiagConsoleLogger}});var rd=qQ();Object.defineProperty(j,"DiagLogLevel",{enumerable:!0,get:function(){return rd.DiagLogLevel}});var sd=fW();Object.defineProperty(j,"createNoopMeter",{enumerable:!0,get:function(){return sd.createNoopMeter}});var td=lP();Object.defineProperty(j,"ValueType",{enumerable:!0,get:function(){return td.ValueType}});var _4=PW();Object.defineProperty(j,"defaultTextMapGetter",{enumerable:!0,get:function(){return _4.defaultTextMapGetter}});Object.defineProperty(j,"defaultTextMapSetter",{enumerable:!0,get:function(){return _4.defaultTextMapSetter}});var od=jW();Object.defineProperty(j,"ProxyTracer",{enumerable:!0,get:function(){return od.ProxyTracer}});var ed=_W();Object.defineProperty(j,"ProxyTracerProvider",{enumerable:!0,get:function(){return ed.ProxyTracerProvider}});var Zc=CV();Object.defineProperty(j,"SamplingDecision",{enumerable:!0,get:function(){return Zc.SamplingDecision}});var $c=RV();Object.defineProperty(j,"SpanKind",{enumerable:!0,get:function(){return $c.SpanKind}});var Jc=mV();Object.defineProperty(j,"SpanStatusCode",{enumerable:!0,get:function(){return Jc.SpanStatusCode}});var Yc=AW();Object.defineProperty(j,"TraceFlags",{enumerable:!0,get:function(){return Yc.TraceFlags}});var Xc=aV();Object.defineProperty(j,"createTraceState",{enumerable:!0,get:function(){return Xc.createTraceState}});var ZN=GQ();Object.defineProperty(j,"isSpanContextValid",{enumerable:!0,get:function(){return ZN.isSpanContextValid}});Object.defineProperty(j,"isValidTraceId",{enumerable:!0,get:function(){return ZN.isValidTraceId}});Object.defineProperty(j,"isValidSpanId",{enumerable:!0,get:function(){return ZN.isValidSpanId}});var $N=BQ();Object.defineProperty(j,"INVALID_SPANID",{enumerable:!0,get:function(){return $N.INVALID_SPANID}});Object.defineProperty(j,"INVALID_TRACEID",{enumerable:!0,get:function(){return $N.INVALID_TRACEID}});Object.defineProperty(j,"INVALID_SPAN_CONTEXT",{enumerable:!0,get:function(){return $N.INVALID_SPAN_CONTEXT}});var S4=tV();Object.defineProperty(j,"context",{enumerable:!0,get:function(){return S4.context}});var g4=Z4();Object.defineProperty(j,"diag",{enumerable:!0,get:function(){return g4.diag}});var b4=W4();Object.defineProperty(j,"metrics",{enumerable:!0,get:function(){return b4.metrics}});var d4=x4();Object.defineProperty(j,"propagation",{enumerable:!0,get:function(){return d4.propagation}});var c4=m4();Object.defineProperty(j,"trace",{enumerable:!0,get:function(){return c4.trace}});j.default={context:S4.context,diag:g4.diag,metrics:b4.metrics,propagation:d4.propagation,trace:c4.trace}});function i4(Z){if(FH+Z>wQ.length)crypto.getRandomValues(wQ),FH=0;let $="",J=FH+Z;for(let Y=FH;Y<J;Y++)$+=qc[wQ[Y]];return FH=J,$}function p4(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 n4{_traceId;_spanId;_parentSpanId;_name;_startTime;_endTime;_attributes={};_status={code:f0.SpanStatusCode.UNSET};_kind;_ended=!1;constructor(Z,$,J,Y){if(this._name=Z,this._traceId=J,this._spanId=i4(8),this._parentSpanId=Y,this._kind=$.kind||f0.SpanKind.INTERNAL,this._startTime=p4($.startTime,Date.now()),$.attributes)for(let[X,z]of Object.entries($.attributes))this._attributes[X]=String(z);try{GH?.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{GH?.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=p4(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===f0.SpanStatusCode.ERROR,flags:1,kind:this._kind,statusCode:this._status.code,statusMessage:this._status.message,links:[]};try{GH?.spanEnded(J)}catch{}if(l4)try{l4(J)}catch(Y){console.error("[browser-bridge] Error in collector callback",Y)}}isRecording(){return!this._ended}recordException(){return this}}class a4{startSpan(Z,$,J){let Y=J||f0.context.active(),X=f0.trace.getSpanContext(Y),z,K,Q;if(X?.traceId)z=X.traceId,K=X.spanId,Q=(X.traceFlags&1)===1||GH!==void 0;else Q=GH!==void 0||Qc?.(Z)||Math.random()<Hc,z=i4(16);if(!Q)return f0.trace.wrapSpanContext({traceId:z,spanId:"",traceFlags:0});return new n4(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=f0.trace.setSpan(Y||f0.context.active(),z);return f0.context.with(K,()=>{try{let Q=X(z);if(Q&&typeof Q.then==="function")return Q.then((W)=>{return z.end(),W},(W)=>{throw z.setStatus({code:f0.SpanStatusCode.ERROR,message:W?.message}),z.end(),W});return z.end(),Q}catch(Q){throw z.setStatus({code:f0.SpanStatusCode.ERROR,message:Q?.message}),z.end(),Q}})}}class Wc{tracer=new a4;getTracer(){return this.tracer}}var f0,l4,GH,Hc=0.01,Qc,qc,wQ,FH;var r4=I(()=>{f0=_N(u4(),1),qc=Array.from({length:256},(Z,$)=>$.toString(16).padStart(2,"0")),wQ=new Uint8Array(1024),FH=wQ.length});function h6(Z,$){return{symbol:Z,defaultValue:$}}function JN(Z){let $=new AbortController;if(Z.aborted)return $.abort(Z.reason),$;let J=()=>$.abort(Z.reason);return Z.addEventListener("abort",J,{once:!0}),{signal:$.signal,abort(Y){Z.removeEventListener("abort",J),$.abort(Y)}}}class O8{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 O8(this,void 0,J)}withCancel(){let Z=JN(this.signal);return[new O8(this,Z.signal),(J)=>Z.abort(J)]}withTimeout(Z){let $=JN(this.signal),J=new O8(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=JN(this.signal);return J.abort(Error("context deadline exceeded")),new O8(this,J.signal)}return this.withTimeout($)}withTimeoutAndCancel(Z){let[$,J]=this.withCancel();return[$.withTimeout(Z),J]}withName(Z){return new O8(this,void 0,void 0,Z)}withDetached(){return new O8(this,new AbortController().signal)}getParent(){return this.parent}getPath(){let Z=[],$=this;while($){if($.name)Z.unshift($.name);$=$.getParent()}return Z}}function c6(){return new O8}function wc(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 Boolean(process.stdout?.isTTY)}function Dc(Z){let J=(P)=>(V)=>Z?`\x1B[${P.join(";")}m${V}\x1B[0m`:V,Y=J([2]),X=J([90]),z=J([31]),K=J([32]),Q=J([33]),W=J([34]),G=J([35]),L=J([36]),O=J([1]),f=J([1,31]);return{dim:Y,gray:X,red:z,green:K,yellow:Q,blue:W,magenta:G,cyan:L,bold:O,level:(P,V)=>{switch(P){case"debug":return G(V);case"info":return W(V);case"warn":return Q(V);case"error":return f(V);default:return P}}}}function Ic(Z){return{indent:" ".repeat(Z.indent??Nc),maxDepth:Z.maxDepth??Bc,maxEntries:Z.maxEntries??Fc,maxArrayLength:Z.maxArrayLength??Gc,maxStringLength:Z.maxStringLength??Lc,includeTimestamp:Z.includeTimestamp??!0,includeContextPath:Z.includeContextPath??!0,inlineSerializer:Z.inlineSerializer}}function Uc(Z){return Z.toISOString().slice(11,23)}function s4(Z){return typeof Z==="object"&&Z!==null&&"getPath"in Z&&typeof Z.getPath==="function"}function YN(Z){if(typeof Z!=="object"||Z===null)return!1;return"message"in Z||"stack"in Z||"name"in Z||"cause"in Z}function Oc(Z){return typeof Z==="object"&&Z!==null&&Z.kind==="summary"&&typeof Z.summary==="string"}function kc(Z,$){if(Z.length<=$)return Z;return`${Z.slice(0,$)}...`}function fc(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 k8(Z,$,J,Y,X,z){let K=fc(Z,$,z,Y);if(Oc(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 Q=kc(Z,$.maxStringLength);return J.green(JSON.stringify(Q))}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 Q=Z.name?` ${Z.name}`:"";return J.dim(`[Function${Q}]`)}if(Z instanceof Date){let Q=Number.isNaN(Z.getTime())?"Invalid Date":Z.toISOString();return J.green(Q)}if(Z instanceof RegExp)return J.cyan(Z.toString());if(YN(Z))return o4(Z,$,J,Y,X,z);if(Array.isArray(Z))return t4(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 Q=Z,W=Q.constructor?.name??"TypedArray";return J.dim(`${W}(${Q.byteLength})`)}if(Z instanceof Map)return Ec(Z,$,J,Y,X,z);if(Z instanceof Set)return t4(Array.from(Z.values()),$,J,Y,X,z);return Pc(Z,$,J,Y,X,z)}function o4(Z,$,J,Y,X,z){let K=Z;if(X.has(K))return J.dim("[Circular]");X.add(K);let Q=typeof Z.name==="string"?Z.name:"Error",W=typeof Z.message==="string"?Z.message:"",G=W?`${Q}: ${W}`:Q,L=J.red(G);if("cause"in Z&&Z.cause!==void 0){let O=k8(Z.cause,$,J,Y+1,X,z.concat("cause"));L=`${L} ${J.dim("cause=")}${O}`}return X.delete(K),L}function t4(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 L=J.dim("[]");return X.delete(Z),L}let K=Math.min(Z.length,$.maxArrayLength),Q=Z.slice(0,K).map((L,O)=>k8(L,$,J,Y+1,X,z.concat(O)));if(Z.length>K)Q.push(J.dim(`... ${Z.length-K} more`));let W=J.dim(", "),G=`${J.dim("[")}${Q.join(W)}${J.dim("]")}`;return X.delete(Z),G}function Ec(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()),Q=Math.min(K.length,$.maxEntries),W=K.slice(0,Q).map(([O,f])=>{let P=k8(O,$,J,Y+1,X,z.concat("<key>")),V=k8(f,$,J,Y+1,X,z.concat(String(O)));return`${P} ${J.dim("=>")} ${V}`});if(K.length>Q)W.push(J.dim(`... ${K.length-Q} more`));let G=J.dim(", "),L=`${J.dim("Map{")}${W.join(G)}${J.dim("}")}`;return X.delete(Z),L}function Pc(Z,$,J,Y,X,z){if(Y>=$.maxDepth){let O=Z?.constructor?.name??"Object";return J.dim(`[${O}]`)}if(X.has(Z))return J.dim("[Circular]");X.add(Z);let K=Object.entries(Z);if(K.length===0){let O=J.dim("{}");return X.delete(Z),O}let Q=Math.min(K.length,$.maxEntries),W=K.slice(0,Q).map(([O,f])=>{let P=k8(f,$,J,Y+1,X,z.concat(O));return`${J.cyan(O)}: ${P}`});if(K.length>Q)W.push(J.dim(`... ${K.length-Q} more`));let G=J.dim(", "),L=`${J.dim("{")}${W.join(G)}${J.dim("}")}`;return X.delete(Z),L}function Vc(Z={}){let $=Ic(Z),J=Dc(wc(Z.useColors)),Y=Z.console??console;return{log:(X,z)=>{let K=[];if($.includeTimestamp)K.push(J.dim(Uc(z.timestamp)));let Q=z.level.toUpperCase().padEnd(5);K.push(J.level(z.level,Q));let W=z.level==="error"?J.bold(z.message):z.message;if(K.push(W),$.includeContextPath&&s4(z.context)){let f=z.context.getPath();if(f.length>0)K.push(J.dim(`ctx=${f.join("/")}`))}let G=new WeakSet;if(!s4(z.context)&&z.context&&Object.keys(z.context).length>0){let f=k8(z.context,$,J,0,G,["context"]);K.push(`${J.dim("context=")}${f}`)}if(z.metadata&&Object.keys(z.metadata).length>0){let f=k8(z.metadata,$,J,0,G,["metadata"]);K.push(`${J.dim("meta=")}${f}`)}let L=[K.join(" ")];if(z.error!==void 0){let f=YN(z.error)?o4(z.error,$,J,0,G,["error"]):k8(z.error,$,J,0,G,["error"]);if(L[0]=`${L[0]} ${J.dim("error=")}${f}`,YN(z.error)&&typeof z.error.stack==="string"){let P=z.error.stack.split(`
|
|
5
|
-
`).slice(1);for(let V of
|
|
6
|
-
`);switch(z.level){case"debug":case"info":Y.log(O);break;case"warn":Y.warn(O);break;case"error":Y.error(O);break;default:{let f=z.level;throw Error(`Unhandled log level: ${f}`)}}}}}function Ac(Z){return Z.get(hc)}function u0(Z){function $(J,Y){let X=new Date;Ac(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 Nc=2,Bc=6,Fc=50,Gc=40,Lc=200,xc,Mc,hc;var e4=I(()=>{w6();xc=Vc(),Mc={log:(Z,$)=>xc.log(Z,$)},hc=h6(Symbol("loggerBackend"),Mc)});var OZ0,kZ0,fZ0,EZ0,PZ0;var Zx=I(()=>{OZ0=h6(Symbol("otel.span"),void 0),kZ0=h6(Symbol("otel.root_span"),void 0),fZ0=h6(Symbol("otel.root_start_ms"),void 0),EZ0=h6(Symbol("otel.suppress_child_spans"),!1),PZ0=h6(Symbol("otel.inheritable_span_attributes"),{})});var w6=I(()=>{r4();e4();Zx()});function DQ(Z){return Z.get(Cc)}function f8(Z,$){let J={name:Z,type:"counter",description:$?.description,labelNames:$?.labelNames};return{increment:(Y,X,z)=>{DQ(Y).increment(Y,J,X??1,z)},record:(Y,X,z)=>{DQ(Y).record(Y,J,X,z)}}}function g(Z,$){let J={name:Z,type:"histogram",description:$?.description,labelNames:$?.labelNames};return{histogram:(Y,X,z)=>{DQ(Y).histogram(Y,J,X,z)},record:(Y,X,z)=>{DQ(Y).record(Y,J,X,z)}}}var vc,Cc;var X9=I(()=>{w6();vc={record:()=>{},increment:()=>{},gauge:()=>{},histogram:()=>{}},Cc=h6(Symbol("metricsBackend"),vc)});class XN{serialize(Z){return Rc.encode(Z)}deserialize(Z){return Tc.decode(Z)}getBlobType(){return{kind:"string"}}}class D6{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++)$+=yc[Z[J]];return $}function l0(Z){let $=Z.trim().toLowerCase();if($.length%2!==0)throw Error("Invalid hex string length");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 Tc,Rc,IQ,yc;var RK=I(()=>{Tc=new TextDecoder,Rc=new TextEncoder;IQ=new XN;yc=Array.from({length:256},(Z,$)=>$.toString(16).padStart(2,"0"))});function UQ(Z){let $=Z.buffer;if(typeof SharedArrayBuffer<"u"&&$ instanceof SharedArrayBuffer)return new Uint8Array(Z);return new Uint8Array($,Z.byteOffset,Z.byteLength)}async function LH(Z){let $=await crypto.subtle.digest("SHA-256",UQ(Z));return new Uint8Array($)}var bZ0,dZ0;var yK=I(()=>{X9();RK();bZ0=g("agent_kv.in_memory.get_blob.duration_ms",{description:"Duration of InMemoryBlobStore getBlob operations in milliseconds"}),dZ0=g("agent_kv.in_memory.set_blob.duration_ms",{description:"Duration of InMemoryBlobStore setBlob operations in milliseconds"})});function mc(Z){if(Z.length===0)return"";let $=Z.slice(0,3).map((Y)=>Y.slice(0,12));return` (${Z.length===1?`missing blob ${$[0]}`:`${Z.length} missing blobs: ${$.join(", ")}${Z.length>$.length?", \u2026":""}`})`}var wH;var OQ=I(()=>{wH=class wH extends Error{isUsageError=!0;isBlobNotFound=!0;blobIdHexes;constructor(Z,$){super(`This conversation's data is missing and can't be restored. Start a new chat to continue.${mc(Z)}`,$?.cause!==void 0?{cause:$.cause}:void 0);this.name="BlobNotFoundError",this.blobIdHexes=[...Z]}}});async function zN(Z,$,J){let Y={...$.subagentStates??{}},X=Object.entries($.subagentStateRefs??{});if(X.length===0)return Y;let z=await HW(X,async([W,G])=>{let L=await J.getBlob(Z,G);if(L===void 0){if(Y[W]===void 0)return{kind:"missing",blobIdHex:Q0(G)};return jc.warn(Z,"Subagent state ref blob not found; falling back to inline entry",{subagentId:W}),{kind:"fallback"}}try{return{kind:"loaded",subagentId:W,state:L8.fromBinary(L)}}catch(O){return{kind:"failed",error:O}}},{max:$x}),K=z.flatMap((W)=>W.kind==="missing"?[W.blobIdHex]:[]);if(K.length>0)throw new wH(K);let Q=z.find((W)=>W.kind==="failed");if(Q!==void 0&&Q.kind==="failed")throw Q.error;for(let W of z)if(W.kind==="loaded")Y[W.subagentId]=W.state;return Y}var $x=8,jc;var KN=I(()=>{w6();AH();hK();OQ();RK();jc=u0("@anysphere/agent-kv:subagent-states")});import{z as e}from"zod";function Sc(){let Z=new Uint8Array(Jx);return crypto.getRandomValues(Z),Q0(Z)}function Yx(Z){return typeof Z==="string"&&Z.length===Jx*2&&_c.test(Z)}function gc(){if(HN===null)HN=e.object({agentId:e.string(),latestRootBlobId:e.custom((Z)=>Z instanceof Uint8Array,{message:"Expected Uint8Array"}),name:e.string(),createdAt:e.number(),mode:e.enum(QN),isRunEverything:e.boolean(),approvalMode:e.enum(qN).optional(),lastUsedModel:e.string().optional(),lastDebugServerPort:e.number().int().positive().optional(),currentPlanUri:e.string().optional(),subagentInfo:e.union([e.object({parentAgentId:e.string().min(1),rootParentAgentId:e.string().min(1),toolCallId:e.string().min(1),typeName:e.string().min(1)}),e.undefined()]),blobEncryptionKey:e.string().optional()});return HN}function dc(Z){return bc.has(Z)}function uc(Z){return cc.has(Z)}function lc(Z){if(!Z||typeof Z!=="object")return;let $=Z;if(typeof $.parentAgentId!=="string"||$.parentAgentId.length===0||typeof $.rootParentAgentId!=="string"||$.rootParentAgentId.length===0||typeof $.toolCallId!=="string"||$.toolCallId.length===0||typeof $.typeName!=="string"||$.typeName.length===0)return;return{parentAgentId:$.parentAgentId,rootParentAgentId:$.rootParentAgentId,toolCallId:$.toolCallId,typeName:$.typeName}}class kQ{serialize(Z){let $=Q0(Z.latestRootBlobId);return IQ.serialize(JSON.stringify({...Z,latestRootBlobId:$}))}deserialize(Z){let $=JSON.parse(IQ.deserialize(Z)),J=DH($.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"&&dc(z)?z:"default",Q=$.approvalMode,W=typeof Q==="string"&&uc(Q)?Q:void 0,G=lc($.subagentInfo),L=Yx($.blobEncryptionKey)?$.blobEncryptionKey:J.blobEncryptionKey;return gc().parse({...J,...$,mode:K,isRunEverything:X,approvalMode:W,latestRootBlobId:Y,subagentInfo:G,blobEncryptionKey:L})}getBlobType(){return{kind:"json"}}}async function zx(Z,$,J){let Y=new F8,X=[],z=$.turns;for(let Q of z){let W=await J.getBlob(Z,Q);if(!W)continue;let G=Xx.deserialize(W),L;switch(G.turn.case){case"agentConversationTurn":{let O=G.turn.value,f=await J.getBlob(Z,O.userMessage);if(!f)continue;let P=ic.deserialize(f),V=[];for(let E0 of O.steps){let X0=await J.getBlob(Z,E0);if(X0){let $M=nc.deserialize(X0);V.push($M)}}let T=new W8({userMessage:P,steps:V});L=new _6({turn:{case:"agentConversationTurn",value:T}});break}case"shellConversationTurn":{let O=G.turn.value,f=await J.getBlob(Z,O.shellCommand);if(!f)continue;let P=rc.deserialize(f),V=await J.getBlob(Z,O.shellOutput);if(!V)continue;let T=sc.deserialize(V),E0=new N8({shellCommand:P,shellOutput:T});L=new _6({turn:{case:"shellConversationTurn",value:E0}});break}}if(!L)continue;X.push(L)}Y.turns=X;let K=[];for(let Q of $.todos){let W=await J.getBlob(Z,Q);if(W){let G=pc.deserialize(W);K.push(G)}}if(Y.todos=K,$.summary){let Q=await J.getBlob(Z,$.summary);if(Q){let W=ac.deserialize(Q);Y.summary=W}}return Y}class IH{blobStore;metadataStore;conversationStateStructure;serde=new D6(m0);fixedRootBlobId;constructor(Z,$,J={}){this.blobStore=Z;this.metadataStore=$;this.conversationStateStructure=new m0,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=Xx.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 zx(Z,$,this.blobStore)}async getFullConversationWithSubagents(Z){let $=this.conversationStateStructure,J=await this.deserializeConversationStateStructure(Z,$),Y={},X=await zN(Z,$,this.blobStore);for(let[z,K]of Object.entries(X))if(K.conversationState){let Q=await this.deserializeConversationStateStructure(Z,K.conversationState);Y[z]={conversationState:Q,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 LH(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 m0,!1;let J=await this.blobStore.getBlob(Z,$);if(!J)return this.conversationStateStructure=new m0,!1;let Y=this.serde.deserialize(J);return this.conversationStateStructure=Y,!0}catch($){return this.conversationStateStructure=new m0,!1}}async dispose(){if(this.blobStore instanceof OK)await this.blobStore.dispose()}}var QN,qN,Jx=32,_c,HN=null,DH=(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:Sc()}),bc,cc,pc,ic,nc,Xx,ac,rc,sc;var Kx=I(()=>{AH();PH();hK();yK();RK();KN();QN=["default","plan","debug","search"],qN=["allowlist","unrestricted","auto-review"],_c=/^[0-9a-f]+$/;bc=new Set(QN);cc=new Set(qN);pc=new D6(W0),ic=new D6(H8),nc=new D6(j6),Xx=new D6(p$),ac=new D6(B8),rc=new D6(Q8),sc=new D6(q8)});var H$0,Q$0,q$0,W$0,N$0,B$0,F$0,G$0,L$0,w$0;var Hx=I(()=>{w6();X9();yK();H$0=u0("@anysphere/agent-kv"),Q$0=g("agent_kv.cached.get_blob.duration_ms",{description:"Duration of CachedBlobStore getBlob operations in milliseconds"}),q$0=g("agent_kv.cached.set_blob.duration_ms",{description:"Duration of CachedBlobStore setBlob operations in milliseconds"}),W$0=g("agent_kv.cached.flush.duration_ms",{description:"Duration of CachedBlobStore flush operations in milliseconds"}),N$0=g("agent_kv.cached.cache_bytes",{description:"Resident bytes held in the CachedBlobStore in-memory cache, sampled on flush"}),B$0=f8("agent_kv.cached.get_blob.results",{description:"Number of CachedBlobStore getBlob operations by cache result type",labelNames:["cache_type"]}),F$0=f8("agent_kv.nearby.decrypt_errors",{description:"Number of nearby blob reads that found ciphertext but failed to decrypt it (wrong encryption key)"}),G$0=f8("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"}),L$0=g("agent_kv.encrypted.get_blob.duration_ms",{description:"Duration of EncryptedBlobStore getBlob operations in milliseconds"}),w$0=g("agent_kv.encrypted.set_blob.duration_ms",{description:"Duration of EncryptedBlobStore setBlob operations in milliseconds"})});import{Message as O$0,proto3 as k$0}from"@bufbuild/protobuf";var Qx=()=>{};var v$0,C$0,T$0;var qx=I(()=>{w6();X9();Qx();yK();v$0=u0("ControlledKvManager"),C$0=g("agent_kv.controlled.get_blob.duration_ms",{description:"Duration of ControlledKvManager getBlob operations in milliseconds"}),T$0=g("agent_kv.controlled.set_blob.duration_ms",{description:"Duration of ControlledKvManager setBlob operations in milliseconds"})});var _$0,S$0,g$0,b$0;var FN=I(()=>{w6();X9();_$0=u0("@anysphere/agent-kv"),S$0=g("agent_kv.writethrough.get_blob.duration_ms",{description:"Duration of WritethroughBlobStore getBlob operations in milliseconds"}),g$0=g("agent_kv.writethrough.set_blob.duration_ms",{description:"Duration of WritethroughBlobStore setBlob operations in milliseconds"}),b$0=g("agent_kv.writethrough.flush.duration_ms",{description:"Duration of WritethroughBlobStore flush operations in milliseconds"})});var GN=I(()=>{FN()});var t$0,o$0,e$0,Z90;var Wx=I(()=>{w6();X9();OQ();yK();RK();GN();t$0=u0("@anysphere/agent-kv:reference"),o$0=f8("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"]}),e$0=g("agent_kv.lazy_reference.deserialize_bytes",{description:"Blob byte size loaded on a large or slow LazyReference deserialize cache miss",labelNames:["blob_type"]}),Z90=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 X90,z90,K90,H90,Q90,q90;var Nx=I(()=>{w6();X9();X90=u0("RetryBlobStore"),z90=f8("agent_kv.retry.retries",{description:"Number of RetryBlobStore retry attempts (one per re-issued operation, not counting the first try)",labelNames:["operation","outcome"]}),K90=g("agent_kv.retry.get_blob.duration_ms",{description:"Duration of RetryBlobStore getBlob operations in milliseconds"}),H90=g("agent_kv.retry.set_blob.duration_ms",{description:"Duration of RetryBlobStore setBlob operations in milliseconds"}),Q90=g("agent_kv.retry.set_blob_locally_only.duration_ms",{description:"Duration of RetryBlobStore setBlobLocallyOnly operations in milliseconds"}),q90=g("agent_kv.retry.flush.duration_ms",{description:"Duration of RetryBlobStore flush operations in milliseconds"})});var UH=I(()=>{Kx();OQ();yK();Hx();qx();Wx();Nx();RK();KN();GN();FN()});class Ux{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()?.({value:void 0,done:!0})};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(),{value:void 0,done:!0};return new Promise((K)=>{$.waiters.push(K)})},return:async()=>{return X(),{value:void 0,done:!0}}})}}}function Ox(){return new Ux}import{chmodSync as ku,existsSync as fu,mkdirSync as Eu}from"fs";function SK(Z){if(!fu(Z))Eu(Z,{recursive:!0,mode:kx});try{ku(Z,kx)}catch{}}var kx=448;var xN=()=>{};var MN;var fx=I(()=>{MN=class MN extends Error{constructor(Z,$){super(Z,$);this.name="NoSqliteDriverError"}}});var Px={};P8(Px,{openBunSqliteDriver:()=>Vu});import{Database as Pu}from"bun:sqlite";class Ex{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:Number(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 Vu(Z){return new Ex(new Pu(Z,{create:!0}))}var Vx=()=>{};class hN{constructor(){throw Error("node:sqlite is not available in this runtime (the @cursor/sdk/bundled entry targets Bun, which uses bun:sqlite)")}}var Mx={};P8(Mx,{openNodeSqliteDriver:()=>xu});class xx{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 xu(Z){return new xx(new hN(Z))}var hx=()=>{};function Mu(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 hu(){return typeof globalThis.Bun<"u"}async function gK(Z){if(hu())return(await Promise.resolve().then(() => (Vx(),Px))).openBunSqliteDriver(Z);let $;try{$=await Promise.resolve().then(() => (hx(),Mx))}catch(J){if(Mu(J))throw new MN("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:J});throw J}return $.openNodeSqliteDriver(Z)}var MQ=I(()=>{fx()});var Ax={};P8(Ax,{SQLiteBlobStoreWithMetadata:()=>vN});import{existsSync as Au,mkdirSync as vu,rmSync as Cu}from"fs";import{basename as Tu,dirname as AN}from"path";var hQ,vN;var vx=I(()=>{UH();hK();MQ();hQ=new kQ;vN=class vN extends OK{dbPath;driverPromise;driver;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 vN(Z);return await $.getDriver(),$}constructor(Z){super();this.dbPath=Z;let $=Tu(AN(this.dbPath));this.metadata=DH($)}async getDriver(){if(this.driverPromise)return this.driverPromise;let $=(async()=>{let J=AN(this.dbPath);if(!Au(J))vu(J,{recursive:!0});let Y=await gK(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});return this.driverPromise=$,$}initializeDriver(Z){Z.exec(`PRAGMA journal_mode = WAL;
|
|
4
|
+
`)}`:"");this.errors=Z,this.name="UnsubscriptionError"}}rF.UnsubscriptionError=_K;class qK{initialTeardown;static EMPTY=(()=>{let Z=new qK;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 _K?Y.errors:[Y]}let{_finalizers:J}=this;if(J){this._finalizers=null;for(let Y of J)try{jF(Y)}catch(X){if(Z=Z??[],X instanceof _K)Z.push(...X.errors);else Z.push(X)}}if(Z)throw new _K(Z)}}add(Z){if(Z&&Z!==this)if(this.closed)jF(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)}}rF.Subscription=qK;if(typeof Symbol.dispose==="symbol")qK.prototype[Symbol.dispose]=qK.prototype.unsubscribe;function jF(Z){if(k0(Z))Z();else Z.unsubscribe()}class i$ extends qK{isStopped=!1;destination;_nextOverride=null;_errorOverride=null;_completeOverride=null;_onFinalize=null;constructor(Z,$){super();if(this.destination=Z instanceof i$?Z:xC(Z),this._nextOverride=$?.next??null,this._errorOverride=$?.error??null,this._completeOverride=$?.complete??null,this._onFinalize=$?.finalize??null,this._next=this._nextOverride?EC:this._next,this._error=this._errorOverride?fC:this._error,this._complete=this._completeOverride?VC:this._complete,MC(Z))Z.add(this)}next(Z){if(this.isStopped)dQ(aF(Z),this);else this._next(Z)}error(Z){if(this.isStopped)dQ(nF(Z),this);else this.isStopped=!0,this._error(Z)}complete(){if(this.isStopped)dQ(rF.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()}}}rF.Subscriber=i$;rF.config={onUnhandledError:null,onStoppedNotification:null};function EC(Z){try{this._nextOverride(Z)}catch($){this.destination.error($)}}function fC(Z){try{this._errorOverride(Z)}catch($){this.destination.error($)}finally{this.unsubscribe()}}function VC(){try{this._completeOverride()}catch(Z){this.destination.error(Z)}finally{this.unsubscribe()}}class SF{partialObserver;constructor(Z){this.partialObserver=Z}next(Z){let{partialObserver:$}=this;if($.next)try{$.next(Z)}catch(J){QK(J)}}error(Z){let{partialObserver:$}=this;if($.error)try{$.error(Z)}catch(J){QK(J)}else QK(Z)}complete(){let{partialObserver:Z}=this;if(Z.complete)try{Z.complete()}catch($){QK($)}}}function xC(Z){return new SF(!Z||k0(Z)?{next:Z??void 0}:Z)}function dQ(Z,$){let{onStoppedNotification:J}=rF.config;J&&setTimeout(()=>J(Z,$))}function MC(Z){return Z&&k0(Z.unsubscribe)&&k0(Z.add)}function CC({destination:Z,...$}){return new i$(Z,$)}rF.operate=CC;class _8{constructor(Z){if(Z)this._subscribe=Z}subscribe(Z){let $=Z instanceof i$?Z:new i$(Z);return $.add(this._trySubscribe($)),$}_trySubscribe(Z){try{return this._subscribe(Z)}catch($){Z.error($)}}forEach(Z){return new Promise(($,J)=>{let Y=new i$({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(hC,this)}[Symbol.asyncIterator](){let Z,$=!1,J,Y=!1,X=[],z=[],K=(W)=>{$=!0,J=W;while(z.length){let[G,U]=z.shift();U(W)}},Q=()=>{Y=!0;while(z.length){let[W]=z.shift();W({value:void 0,done:!0})}};return{next:()=>{if(!Z)Z=this.subscribe({next:(W)=>{if(z.length){let[G]=z.shift();G({value:W,done:!1})}else X.push(W)},error:K,complete:Q});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((W,G)=>{z.push([W,G])})},throw:(W)=>{return Z?.unsubscribe(),K(W),Promise.reject(W)},return:()=>{return Z?.unsubscribe(),Q(),Promise.resolve({value:void 0,done:!0})},[Symbol.asyncIterator](){return this}}}}rF.Observable=_8;function hC(Z,$){return $(Z)}function QK(Z){setTimeout(()=>{let{onUnhandledError:$}=rF.config;if($)$(Z);else throw Z})}rF.reportUnhandledError=QK;function AC(Z){switch(uF(Z)){case O0.Own:return Z;case O0.InteropObservable:return vC(Z);case O0.ArrayLike:return gF(Z);case O0.Promise:return bF(Z);case O0.AsyncIterable:return dF(Z);case O0.Iterable:return TC(Z);case O0.ReadableStreamLike:return RC(Z)}}rF.from=AC;function vC(Z){return new _8(($)=>{let J=Z[Symbol.observable??"@@observable"]();if(k0(J.subscribe))return J.subscribe($);throw TypeError("Provided object does not correctly implement Symbol.observable")})}function gF(Z){return new _8(($)=>{cF(Z,$)})}rF.fromArrayLike=gF;function bF(Z){return new _8(($)=>{Z.then((J)=>{if(!$.closed)$.next(J),$.complete()},(J)=>$.error(J)).then(null,QK)})}rF.fromPromise=bF;function TC(Z){return new _8(($)=>{for(let J of Z)if($.next(J),$.closed)return;$.complete()})}function dF(Z){return new _8(($)=>{yC(Z,$).catch((J)=>$.error(J))})}function RC(Z){return dF(lF(Z))}async function yC(Z,$){for await(let J of Z)if($.next(J),$.closed)return;$.complete()}function cF(Z,$){let J=Z.length;for(let Y=0;Y<J;Y++){if($.closed)return;$.next(Z[Y])}$.complete()}rF.subscribeToArray=cF;var O0;(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"})(O0=rF.ObservableInputType||(rF.ObservableInputType={}));function uF(Z){if(Z instanceof _8)return O0.Own;if(_C(Z))return O0.InteropObservable;if(iF(Z))return O0.ArrayLike;if(pF(Z))return O0.Promise;if(mC(Z))return O0.AsyncIterable;if(SC(Z))return O0.Iterable;if(jC(Z))return O0.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.`)}rF.getObservableInputType=uF;function k0(Z){return typeof Z==="function"}rF.isFunction=k0;function mC(Z){return Symbol.asyncIterator&&k0(Z?.[Symbol.asyncIterator])}async function*lF(Z){let $=Z.getReader();try{while(!0){let{value:J,done:Y}=await $.read();if(Y)return;yield J}}finally{$.releaseLock()}}rF.readableStreamLikeToAsyncGenerator=lF;function jC(Z){return k0(Z?.getReader)}function pF(Z){return k0(Z?.then)}rF.isPromise=pF;function _C(Z){return k0(Z[Symbol.observable??"@@observable"])}function SC(Z){return k0(Z?.[Symbol.iterator])}function iF(Z){return Z&&typeof Z.length==="number"&&!k0(Z)}rF.isArrayLike=iF;function gC(Z){return!!Z&&(Z instanceof _8||k0(Z.lift)&&k0(Z.subscribe))}rF.isObservable=gC;rF.COMPLETE_NOTIFICATION=(()=>DH("C",void 0,void 0))();function nF(Z){return DH("E",void 0,Z)}rF.errorNotification=nF;function aF(Z){return DH("N",Z,void 0)}rF.nextNotification=aF;function DH(Z,$,J){return{kind:Z,value:$,error:J}}rF.createNotification=DH});var eF=q((oF)=>{Object.defineProperty(oF,"__esModule",{value:!0});oF.performanceTimestampProvider=void 0;oF.performanceTimestampProvider={now(){return(oF.performanceTimestampProvider.delegate||performance).now()},delegate:void 0}});var lQ=q((ZG)=>{Object.defineProperty(ZG,"__esModule",{value:!0});ZG.animationFrameProvider=void 0;var Xh=D();ZG.animationFrameProvider={schedule(Z){let $=requestAnimationFrame,J=cancelAnimationFrame,{delegate:Y}=ZG.animationFrameProvider;if(Y)$=Y.requestAnimationFrame,J=Y.cancelAnimationFrame;let X=$((z)=>{J=void 0,Z(z)});return new Xh.Subscription(()=>J?.(X))},requestAnimationFrame(...Z){let{delegate:$}=ZG.animationFrameProvider;return($?.requestAnimationFrame||requestAnimationFrame)(...Z)},cancelAnimationFrame(...Z){let{delegate:$}=ZG.animationFrameProvider;return($?.cancelAnimationFrame||cancelAnimationFrame)(...Z)},delegate:void 0}});var zG=q((YG)=>{Object.defineProperty(YG,"__esModule",{value:!0});YG.animationFrames=void 0;var zh=D(),Kh=eF(),$G=lQ();function Hh(Z){return Z?JG(Z):Qh}YG.animationFrames=Hh;function JG(Z){return new zh.Observable(($)=>{let J=Z||Kh.performanceTimestampProvider,Y=J.now(),X=0,z=()=>{if(!$.closed)X=$G.animationFrameProvider.requestAnimationFrame((K)=>{X=0;let Q=J.now();$.next({timestamp:Z?Q:K,elapsed:Q-Y}),z()})};return z(),()=>{if(X)$G.animationFrameProvider.cancelAnimationFrame(X)}})}var Qh=JG()});var H0=q((HG)=>{Object.defineProperty(HG,"__esModule",{value:!0});HG.Subject=void 0;var pQ=D();class KG extends pQ.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 pQ.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 pQ.Observable((Z)=>this.subscribe(Z))}}HG.Subject=KG});var BG=q((WG)=>{Object.defineProperty(WG,"__esModule",{value:!0});WG.BehaviorSubject=void 0;var qh=H0();class qG extends qh.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)}}WG.BehaviorSubject=qG});var IH=q((FG)=>{Object.defineProperty(FG,"__esModule",{value:!0});FG.dateTimestampProvider=void 0;FG.dateTimestampProvider={now(){return(FG.dateTimestampProvider.delegate||Date).now()},delegate:void 0}});var nQ=q((UG)=>{Object.defineProperty(UG,"__esModule",{value:!0});UG.ReplaySubject=void 0;var Wh=H0(),Nh=IH();class GG extends Wh.Subject{_bufferSize;_windowTime;_timestampProvider;_buffer=[];_infiniteTimeWindow=!0;constructor(Z=1/0,$=1/0,J=Nh.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 Q=1;Q<J.length&&J[Q]<=z;Q+=2)K=Q;K&&J.splice(0,K+1)}}}UG.ReplaySubject=GG});var aQ=q((IG)=>{Object.defineProperty(IG,"__esModule",{value:!0});IG.AsyncSubject=void 0;var Bh=H0();class DG extends Bh.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()}}IG.AsyncSubject=DG});var EG=q((kG)=>{Object.defineProperty(kG,"__esModule",{value:!0});kG.Action=void 0;var Fh=D();class OG extends Fh.Subscription{constructor(Z,$){super()}schedule(Z,$=0){return this}}kG.Action=OG});var VG=q((fG)=>{Object.defineProperty(fG,"__esModule",{value:!0});fG.intervalProvider=void 0;fG.intervalProvider={setInterval(Z,$,...J){let{delegate:Y}=fG.intervalProvider;if(Y?.setInterval)return Y.setInterval(Z,$,...J);return setInterval(Z,$,...J)},clearInterval(Z){let{delegate:$}=fG.intervalProvider;return($?.clearInterval||clearInterval)(Z)},delegate:void 0}});var n$=q((xG)=>{Object.defineProperty(xG,"__esModule",{value:!0});xG.arrRemove=void 0;function Gh(Z,$){if(Z){let J=Z.indexOf($);0<=J&&Z.splice(J,1)}}xG.arrRemove=Gh});var WK=q((AG)=>{Object.defineProperty(AG,"__esModule",{value:!0});AG.AsyncAction=void 0;var Uh=EG(),CG=VG(),Lh=n$();class hG extends Uh.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 CG.intervalProvider.setInterval(Z.flush.bind(Z,this),J)}recycleAsyncId(Z,$,J=0){if(J!=null&&this.delay===J&&this.pending===!1)return $;if($!=null)CG.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,Lh.arrRemove)(J,this),Z!=null)this.id=this.recycleAsyncId($,Z,null);this.delay=null,super.unsubscribe()}}}AG.AsyncAction=hG});var mG=q((RG)=>{Object.defineProperty(RG,"__esModule",{value:!0});RG.TestTools=RG.Immediate=void 0;var Dh=1,rQ,OH={};function TG(Z){if(Z in OH)return delete OH[Z],!0;return!1}RG.Immediate={setImmediate(Z){let $=Dh++;if(OH[$]=!0,!rQ)rQ=Promise.resolve();return rQ.then(()=>TG($)&&Z()),$},clearImmediate(Z){TG(Z)}};RG.TestTools={pending(){return Object.keys(OH).length}}});var _G=q((jG)=>{Object.defineProperty(jG,"__esModule",{value:!0});jG.immediateProvider=void 0;var wh=mG(),{setImmediate:Oh,clearImmediate:kh}=wh.Immediate;jG.immediateProvider={setImmediate(...Z){let{delegate:$}=jG.immediateProvider;return($?.setImmediate||Oh)(...Z)},clearImmediate(Z){let{delegate:$}=jG.immediateProvider;return($?.clearImmediate||kh)(Z)},delegate:void 0}});var cG=q((bG)=>{Object.defineProperty(bG,"__esModule",{value:!0});bG.AsapAction=void 0;var Ph=WK(),SG=_G();class gG extends Ph.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=SG.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(SG.immediateProvider.clearImmediate($),Z._scheduled===$)Z._scheduled=void 0}return}}bG.AsapAction=gG});var tQ=q((uG)=>{Object.defineProperty(uG,"__esModule",{value:!0});uG.Scheduler=void 0;var Eh=IH();class sQ{schedulerActionCtor;static now=Eh.dateTimestampProvider.now;constructor(Z,$=sQ.now){this.schedulerActionCtor=Z,this.now=$}now;schedule(Z,$=0,J){return new this.schedulerActionCtor(this,Z).schedule(J,$)}}uG.Scheduler=sQ});var NK=q((nG)=>{Object.defineProperty(nG,"__esModule",{value:!0});nG.AsyncScheduler=void 0;var pG=tQ();class iG extends pG.Scheduler{actions=[];_active=!1;_scheduled;constructor(Z,$=pG.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}}}nG.AsyncScheduler=iG});var oG=q((sG)=>{Object.defineProperty(sG,"__esModule",{value:!0});sG.AsapScheduler=void 0;var fh=NK();class rG extends fh.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}}}sG.AsapScheduler=rG});var $U=q((eG)=>{Object.defineProperty(eG,"__esModule",{value:!0});eG.asapScheduler=void 0;var Vh=cG(),xh=oG();eG.asapScheduler=new xh.AsapScheduler(Vh.AsapAction)});var h0=q((JU)=>{Object.defineProperty(JU,"__esModule",{value:!0});JU.asyncScheduler=void 0;var Mh=WK(),Ch=NK();JU.asyncScheduler=new Ch.AsyncScheduler(Mh.AsyncAction)});var HU=q((zU)=>{Object.defineProperty(zU,"__esModule",{value:!0});zU.QueueAction=void 0;var hh=WK();class XU extends hh.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}}zU.QueueAction=XU});var NU=q((qU)=>{Object.defineProperty(qU,"__esModule",{value:!0});qU.QueueScheduler=void 0;var Ah=NK();class QU extends Ah.AsyncScheduler{}qU.QueueScheduler=QU});var GU=q((BU)=>{Object.defineProperty(BU,"__esModule",{value:!0});BU.queueScheduler=void 0;var vh=HU(),Th=NU();BU.queueScheduler=new Th.QueueScheduler(vh.QueueAction)});var wU=q((DU)=>{Object.defineProperty(DU,"__esModule",{value:!0});DU.AnimationFrameAction=void 0;var Rh=WK(),UU=lQ();class LU extends Rh.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=UU.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!==$)UU.animationFrameProvider.cancelAnimationFrame($),Z._scheduled=void 0;return}}DU.AnimationFrameAction=LU});var EU=q((kU)=>{Object.defineProperty(kU,"__esModule",{value:!0});kU.AnimationFrameScheduler=void 0;var yh=NK();class OU extends yh.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}}}kU.AnimationFrameScheduler=OU});var xU=q((fU)=>{Object.defineProperty(fU,"__esModule",{value:!0});fU.animationFrameScheduler=void 0;var mh=wU(),jh=EU();fU.animationFrameScheduler=new jh.AnimationFrameScheduler(mh.AnimationFrameAction)});var AU=q((CU)=>{Object.defineProperty(CU,"__esModule",{value:!0});CU.VirtualAction=CU.VirtualTimeScheduler=void 0;var _h=WK(),Sh=D(),gh=NK();class MU extends gh.AsyncScheduler{maxFrames;static frameTimeFactor=10;frame=0;index=-1;constructor(Z=gK,$=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}}}CU.VirtualTimeScheduler=MU;class gK extends _h.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 gK(this.scheduler,this.work);return this.add(J),J.schedule(Z,$)}else return Sh.Subscription.EMPTY}requestAsyncId(Z,$,J=0){this.delay=Z.frame+J;let{actions:Y}=Z;return Y.push(this),Y.sort(gK.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}}CU.VirtualAction=gK});var oQ=q((vU)=>{Object.defineProperty(vU,"__esModule",{value:!0});vU.rx=void 0;var dh=D();function ch(Z,...$){return $.reduce(uh,(0,dh.from)(Z))}vU.rx=ch;function uh(Z,$){return $(Z)}});var eQ=q((RU)=>{Object.defineProperty(RU,"__esModule",{value:!0});RU.pipe=void 0;function lh(...Z){return Z.length===1?Z[0]:($)=>Z.reduce(ph,$)}RU.pipe=lh;function ph(Z,$){return $(Z)}});var Y0=q((mU)=>{Object.defineProperty(mU,"__esModule",{value:!0});mU.noop=void 0;function ih(){}mU.noop=ih});var A0=q((_U)=>{Object.defineProperty(_U,"__esModule",{value:!0});_U.identity=void 0;function nh(Z){return Z}_U.identity=nh});var S8=q((bU)=>{Object.defineProperty(bU,"__esModule",{value:!0});bU.EmptyError=void 0;class gU extends Error{constructor(){super("no elements in sequence");this.name="EmptyError"}}bU.EmptyError=gU});var lU=q((cU)=>{Object.defineProperty(cU,"__esModule",{value:!0});cU.lastValueFrom=void 0;var ah=S8();function rh(Z,$){let J=typeof $==="object";return new Promise((Y,X)=>{let z=!1,K;Z.subscribe({next:(Q)=>{K=Q,z=!0},error:X,complete:()=>{if(z)Y(K);else if(J)Y($.defaultValue);else X(new ah.EmptyError)}})})}cU.lastValueFrom=rh});var nU=q((pU)=>{Object.defineProperty(pU,"__esModule",{value:!0});pU.firstValueFrom=void 0;var sh=D(),th=S8();function oh(Z,$){let J=typeof $==="object";return new Promise((Y,X)=>{let z=new sh.Subscriber({next:(K)=>{Y(K),z.unsubscribe()},error:X,complete:()=>{if(J)Y($.defaultValue);else X(new th.EmptyError)}});Z.subscribe(z)})}pU.firstValueFrom=oh});var Zq=q((rU)=>{Object.defineProperty(rU,"__esModule",{value:!0});rU.ArgumentOutOfRangeError=void 0;class aU extends Error{constructor(){super("argument out of range");this.name="ArgumentOutOfRangeError"}}rU.ArgumentOutOfRangeError=aU});var $q=q((oU)=>{Object.defineProperty(oU,"__esModule",{value:!0});oU.NotFoundError=void 0;class tU extends Error{constructor(Z){super(Z);this.name="NotFoundError"}}oU.NotFoundError=tU});var Jq=q(($L)=>{Object.defineProperty($L,"__esModule",{value:!0});$L.SequenceError=void 0;class ZL extends Error{constructor(Z){super(Z);this.name="SequenceError"}}$L.SequenceError=ZL});var PH=q((YL)=>{Object.defineProperty(YL,"__esModule",{value:!0});YL.isValidDate=void 0;function eh(Z){return Z instanceof Date&&!isNaN(Z)}YL.isValidDate=eh});var b0=q((zL)=>{Object.defineProperty(zL,"__esModule",{value:!0});zL.executeSchedule=void 0;function ZA(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}}zL.executeSchedule=ZA});var EH=q((HL)=>{Object.defineProperty(HL,"__esModule",{value:!0});HL.timeout=HL.TimeoutError=void 0;var $A=h0(),JA=PH(),Yq=D(),YA=b0();class Xq extends Error{info;constructor(Z=null){super("Timeout has occurred");this.info=Z,this.name="TimeoutError"}}HL.TimeoutError=Xq;function XA(Z,$){let{first:J,each:Y,with:X=zA,scheduler:z=$??$A.asyncScheduler,meta:K=null}=(0,JA.isValidDate)(Z)?{first:Z}:typeof Z==="number"?{each:Z}:Z;if(J==null&&Y==null)throw TypeError("No timeout provided.");return(Q)=>new Yq.Observable((W)=>{let G,U,O=null,k=0,f=(V)=>{U=(0,YA.executeSchedule)(W,z,()=>{try{G.unsubscribe(),(0,Yq.from)(X({meta:K,lastValue:O,seen:k})).subscribe(W)}catch(T){W.error(T)}},V)};G=Q.subscribe((0,Yq.operate)({destination:W,next:(V)=>{U?.unsubscribe(),k++,W.next(O=V),Y>0&&f(Y)},finalize:()=>{U?.unsubscribe(),O=null}})),!k&&f(J!=null?typeof J==="number"?J:+J-z.now():Y)})}HL.timeout=XA;function zA(Z){throw new Xq(Z)}});var bK=q((qL)=>{Object.defineProperty(qL,"__esModule",{value:!0});qL.isScheduler=void 0;var HA=D();function QA(Z){return Z&&(0,HA.isFunction)(Z.schedule)}qL.isScheduler=QA});var BK=q((BL)=>{Object.defineProperty(BL,"__esModule",{value:!0});BL.map=void 0;var NL=D();function qA(Z){return($)=>new NL.Observable((J)=>{let Y=0;$.subscribe((0,NL.operate)({destination:J,next:(X)=>{J.next(Z(X,Y++))}}))})}BL.map=qA});var FK=q((GL)=>{Object.defineProperty(GL,"__esModule",{value:!0});GL.mapOneOrManyArgs=void 0;var WA=BK(),{isArray:NA}=Array;function BA(Z,$){return NA($)?Z(...$):Z($)}function FA(Z){return(0,WA.map)(($)=>BA(Z,$))}GL.mapOneOrManyArgs=FA});var fH=q((DL)=>{Object.defineProperty(DL,"__esModule",{value:!0});DL.observeOn=void 0;var zq=b0(),LL=D();function GA(Z,$=0){return(J)=>new LL.Observable((Y)=>{J.subscribe((0,LL.operate)({destination:Y,next:(X)=>(0,zq.executeSchedule)(Y,Z,()=>Y.next(X),$),error:(X)=>(0,zq.executeSchedule)(Y,Z,()=>Y.error(X),$),complete:()=>(0,zq.executeSchedule)(Y,Z,()=>Y.complete(),$)}))})}DL.observeOn=GA});var VH=q((wL)=>{Object.defineProperty(wL,"__esModule",{value:!0});wL.subscribeOn=void 0;var UA=D();function LA(Z,$=0){return(J)=>new UA.Observable((Y)=>{Y.add(Z.schedule(()=>J.subscribe(Y),$))})}wL.subscribeOn=LA});var EL=q((kL)=>{Object.defineProperty(kL,"__esModule",{value:!0});kL.scheduleObservable=void 0;var DA=D(),IA=fH(),wA=VH();function OA(Z,$){return(0,DA.from)(Z).pipe((0,wA.subscribeOn)($),(0,IA.observeOn)($))}kL.scheduleObservable=OA});var xL=q((fL)=>{Object.defineProperty(fL,"__esModule",{value:!0});fL.schedulePromise=void 0;var kA=D(),PA=fH(),EA=VH();function fA(Z,$){return(0,kA.from)(Z).pipe((0,EA.subscribeOn)($),(0,PA.observeOn)($))}fL.schedulePromise=fA});var AL=q((CL)=>{Object.defineProperty(CL,"__esModule",{value:!0});CL.scheduleArray=void 0;var VA=D(),ML=b0();function xA(Z,$){return new VA.Observable((J)=>{let Y=0,X=()=>{if(Y===Z.length)J.complete();else J.next(Z[Y++]),(0,ML.executeSchedule)(J,$,X)};return(0,ML.executeSchedule)(J,$,X)})}CL.scheduleArray=xA});var yL=q((TL)=>{Object.defineProperty(TL,"__esModule",{value:!0});TL.iterator=TL.getSymbolIterator=void 0;function vL(){if(typeof Symbol!=="function"||!Symbol.iterator)return"@@iterator";return Symbol.iterator}TL.getSymbolIterator=vL;TL.iterator=vL()});var Kq=q((_L)=>{Object.defineProperty(_L,"__esModule",{value:!0});_L.scheduleIterable=void 0;var mL=D(),CA=yL(),jL=b0();function hA(Z,$){return new mL.Observable((J)=>{let Y;return(0,jL.executeSchedule)(J,$,()=>{Y=Z[CA.iterator](),(0,jL.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,mL.isFunction)(Y?.return)&&Y.return()})}_L.scheduleIterable=hA});var Hq=q((bL)=>{Object.defineProperty(bL,"__esModule",{value:!0});bL.scheduleAsyncIterable=void 0;var AA=D(),gL=b0();function vA(Z,$){if(!Z)throw Error("Iterable cannot be null");return new AA.Observable((J)=>{(0,gL.executeSchedule)(J,$,()=>{let Y=Z[Symbol.asyncIterator]();(0,gL.executeSchedule)(J,$,()=>{Y.next().then((X)=>{if(X.done)J.complete();else J.next(X.value)})},0,!0)})})}bL.scheduleAsyncIterable=vA});var lL=q((cL)=>{Object.defineProperty(cL,"__esModule",{value:!0});cL.scheduleReadableStreamLike=void 0;var TA=D(),RA=Hq();function yA(Z,$){return(0,RA.scheduleAsyncIterable)((0,TA.readableStreamLikeToAsyncGenerator)(Z),$)}cL.scheduleReadableStreamLike=yA});var dK=q((pL)=>{Object.defineProperty(pL,"__esModule",{value:!0});pL.scheduled=void 0;var mA=EL(),jA=xL(),_A=AL(),SA=Kq(),gA=Hq(),L6=D(),bA=lL();function dA(Z,$){switch((0,L6.getObservableInputType)(Z)){case L6.ObservableInputType.Own:case L6.ObservableInputType.InteropObservable:return(0,mA.scheduleObservable)(Z,$);case L6.ObservableInputType.Promise:return(0,jA.schedulePromise)(Z,$);case L6.ObservableInputType.ArrayLike:return(0,_A.scheduleArray)(Z,$);case L6.ObservableInputType.Iterable:return(0,SA.scheduleIterable)(Z,$);case L6.ObservableInputType.AsyncIterable:return(0,gA.scheduleAsyncIterable)(Z,$);case L6.ObservableInputType.ReadableStreamLike:return(0,bA.scheduleReadableStreamLike)(Z,$)}}pL.scheduled=dA});var qq=q((nL)=>{Object.defineProperty(nL,"__esModule",{value:!0});nL.bindCallbackInternals=void 0;var cA=bK(),uA=D(),lA=FK(),pA=aQ(),iA=dK();function Qq(Z,$,J,Y){if(J)if((0,cA.isScheduler)(J))Y=J;else return function(...X){return(0,lA.mapOneOrManyArgs)(J)(Qq(Z,$,Y).apply(this,X))};if(Y)return function(...X){return(0,iA.scheduled)(Qq(Z,$).apply(this,X),Y)};return function(...X){let z=new pA.AsyncSubject,K=!0;return new uA.Observable((Q)=>{let W=z.subscribe(Q);if(K){K=!1;let G=!1,U=!1;if($.apply(this,[...X,(...O)=>{if(Z){let k=O.shift();if(k!=null){z.error(k);return}}if(z.next(1<O.length?O:O[0]),U=!0,G)z.complete()}]),U)z.complete();G=!0}return W})}}nL.bindCallbackInternals=Qq});var tL=q((rL)=>{Object.defineProperty(rL,"__esModule",{value:!0});rL.bindCallback=void 0;var nA=qq();function aA(Z,$,J){return(0,nA.bindCallbackInternals)(!1,Z,$,J)}rL.bindCallback=aA});var ZD=q((oL)=>{Object.defineProperty(oL,"__esModule",{value:!0});oL.bindNodeCallback=void 0;var rA=qq();function sA(Z,$,J){return(0,rA.bindCallbackInternals)(!0,Z,$,J)}oL.bindNodeCallback=sA});var Wq=q((JD)=>{Object.defineProperty(JD,"__esModule",{value:!0});JD.arrayOrObject=JD.argsArgArrayOrObject=void 0;var{isArray:tA}=Array,{getPrototypeOf:oA,prototype:eA,keys:Zv}=Object;function $v(Z){if(Z.length===1){let $=Z[0],J=$D($);if(J)return J}return{args:Z,keys:null}}JD.argsArgArrayOrObject=$v;function $D(Z){if(tA(Z))return{args:Z,keys:null};if(Jv(Z)){let $=Zv(Z);return{args:$.map((J)=>Z[J]),keys:$}}return null}JD.arrayOrObject=$D;function Jv(Z){return Z&&typeof Z==="object"&&oA(Z)===eA}});var Nq=q((XD)=>{Object.defineProperty(XD,"__esModule",{value:!0});XD.createObject=void 0;function Xv(Z,$){return Z.reduce((J,Y,X)=>(J[Y]=$[X],J),{})}XD.createObject=Xv});var V8=q((KD)=>{Object.defineProperty(KD,"__esModule",{value:!0});KD.EMPTY=void 0;var zv=D();KD.EMPTY=new zv.Observable((Z)=>Z.complete())});var xH=q((WD)=>{Object.defineProperty(WD,"__esModule",{value:!0});WD.combineLatestInit=WD.combineLatest=void 0;var Bq=D(),Kv=Wq(),QD=A0(),Hv=Nq(),Qv=V8();function qv(Z,$){let J=(0,Kv.arrayOrObject)(Z);if(!J)throw TypeError("sources must be an array or object");let{args:Y,keys:X}=J;if(Y.length===0)return Qv.EMPTY;return new Bq.Observable(qD(Y,X?(z)=>(0,Hv.createObject)(X,z):$?(z)=>$(...z):QD.identity))}WD.combineLatest=qv;function qD(Z,$=QD.identity){return(J)=>{let{length:Y}=Z,X=Array(Y),z=Y,K=Y;for(let Q=0;Q<Y;Q++){let W=(0,Bq.from)(Z[Q]),G=!1;W.subscribe((0,Bq.operate)({destination:J,next:(U)=>{if(X[Q]=U,!G)G=!0,K--;if(!K)J.next($(Array.from(X)))},complete:()=>{if(!--z)J.complete()}}))}}}WD.combineLatestInit=qD});var MH=q((BD)=>{Object.defineProperty(BD,"__esModule",{value:!0});BD.mergeInternals=void 0;var Fq=D(),Nv=b0();function Bv(Z,$,J,Y,X,z,K,Q){let W=[],G=0,U=0,O=!1,k=()=>{if(O&&!W.length&&!G)$.complete()},f=(T)=>G<Y?V(T):W.push(T),V=(T)=>{z&&$.next(T),G++;let E0=!1;(0,Fq.from)(J(T,U++)).subscribe((0,Fq.operate)({destination:$,next:(X0)=>{if(X?.(X0),z)f(X0);else $.next(X0)},complete:()=>{E0=!0},finalize:()=>{if(E0)try{G--;while(W.length&&G<Y){let X0=W.shift();if(K)(0,Nv.executeSchedule)($,K,()=>V(X0));else V(X0)}k()}catch(X0){$.error(X0)}}}))};return Z.subscribe((0,Fq.operate)({destination:$,next:f,complete:()=>{O=!0,k()}})),()=>{Q?.()}}BD.mergeInternals=Bv});var a$=q((GD)=>{Object.defineProperty(GD,"__esModule",{value:!0});GD.mergeMap=void 0;var Fv=D(),Gv=MH();function Uv(Z,$=1/0){return(J)=>new Fv.Observable((Y)=>(0,Gv.mergeInternals)(J,Y,Z,$))}GD.mergeMap=Uv});var cK=q((LD)=>{Object.defineProperty(LD,"__esModule",{value:!0});LD.mergeAll=void 0;var Lv=a$(),Dv=A0();function Iv(Z=1/0){return(0,Lv.mergeMap)(Dv.identity,Z)}LD.mergeAll=Iv});var CH=q((ID)=>{Object.defineProperty(ID,"__esModule",{value:!0});ID.concatAll=void 0;var wv=cK();function Ov(){return(0,wv.mergeAll)(1)}ID.concatAll=Ov});var D6=q((OD)=>{Object.defineProperty(OD,"__esModule",{value:!0});OD.popNumber=OD.popScheduler=OD.popResultSelector=void 0;var kv=D(),Pv=bK();function Gq(Z){return Z[Z.length-1]}function Ev(Z){return(0,kv.isFunction)(Gq(Z))?Z.pop():void 0}OD.popResultSelector=Ev;function fv(Z){return(0,Pv.isScheduler)(Gq(Z))?Z.pop():void 0}OD.popScheduler=fv;function Vv(Z,$){return typeof Gq(Z)==="number"?Z.pop():$}OD.popNumber=Vv});var Uq=q((PD)=>{Object.defineProperty(PD,"__esModule",{value:!0});PD.concat=void 0;var Cv=D(),hv=CH(),Av=D6(),vv=dK();function Tv(...Z){let $=(0,Av.popScheduler)(Z);return(0,hv.concatAll)()($?(0,vv.scheduled)(Z,$):(0,Cv.from)(Z))}PD.concat=Tv});var uK=q((VD)=>{Object.defineProperty(VD,"__esModule",{value:!0});VD.defer=void 0;var fD=D();function Rv(Z){return new fD.Observable(($)=>{(0,fD.from)(Z()).subscribe($)})}VD.defer=Rv});var hD=q((MD)=>{Object.defineProperty(MD,"__esModule",{value:!0});MD.connectable=void 0;var yv=H0(),mv=D(),jv=uK(),_v={connector:()=>new yv.Subject,resetOnDisconnect:!0};function Sv(Z,$=_v){let J=null,{connector:Y,resetOnDisconnect:X=!0}=$,z=Y(),K=new mv.Observable((Q)=>{return z.subscribe(Q)});return K.connect=()=>{if(!J||J.closed){if(J=(0,jv.defer)(()=>Z).subscribe(z),X)J.add(()=>z=Y())}return J},K}MD.connectable=Sv});var TD=q((AD)=>{Object.defineProperty(AD,"__esModule",{value:!0});AD.forkJoin=void 0;var Lq=D(),gv=Wq(),bv=D6(),dv=FK(),cv=Nq(),uv=S8();function lv(...Z){let $=(0,bv.popResultSelector)(Z),{args:J,keys:Y}=(0,gv.argsArgArrayOrObject)(Z),X=new Lq.Observable((z)=>{let{length:K}=J;if(!K){z.complete();return}let Q=Array(K),W=K,G=K;for(let U=0;U<K;U++){let O=!1;(0,Lq.from)(J[U]).subscribe((0,Lq.operate)({destination:z,next:(k)=>{if(!O)O=!0,G--;Q[U]=k},complete:()=>W--,finalize:()=>{if(!W||!O)if(G===0)z.next(Y?(0,cv.createObject)(Y,Q):Q),z.complete();else z.error(new uv.EmptyError)}}))}});return $?(0,dv.mapOneOrManyArgs)($)(X):X}AD.forkJoin=lv});var bD=q((SD)=>{Object.defineProperty(SD,"__esModule",{value:!0});SD.fromEvent=void 0;var g8=D(),pv=FK(),iv=["addListener","removeListener"],nv=["addEventListener","removeEventListener"],av=["on","off"];function yD(Z,$,J,Y){if((0,g8.isFunction)(J))Y=J,J=void 0;if(Y)return(0,pv.mapOneOrManyArgs)(Y)(yD(Z,$,J));let X=mD(Z)||jD(Z)||_D(Z);if(!X&&!(0,g8.isArrayLike)(Z))throw TypeError("Invalid event target");return new g8.Observable((z)=>{let K=(...Q)=>z.next(1<Q.length?Q:Q[0]);if(X)RD(K,z,Z,$,J);else for(let Q=0;Q<Z.length&&!z.closed;Q++){let W=Z[Q];RD(K,z,W,$,J)}})}SD.fromEvent=yD;function RD(Z,$,J,Y,X){let[z,K]=rv(J);if(!z||!K)throw TypeError("Invalid event target");J[z](Y,Z,X),$.add(()=>J[K](Y,Z,X))}function rv(Z){return _D(Z)?nv:mD(Z)?iv:jD(Z)?av:[]}function mD(Z){return(0,g8.isFunction)(Z.addListener)&&(0,g8.isFunction)(Z.removeListener)}function jD(Z){return(0,g8.isFunction)(Z.on)&&(0,g8.isFunction)(Z.off)}function _D(Z){return(0,g8.isFunction)(Z.addEventListener)&&(0,g8.isFunction)(Z.removeEventListener)}});var pD=q((uD)=>{Object.defineProperty(uD,"__esModule",{value:!0});uD.fromEventPattern=void 0;var dD=D(),sv=FK();function cD(Z,$,J){if(J)return(0,sv.mapOneOrManyArgs)(J)(cD(Z,$));return new dD.Observable((Y)=>{let X=(...K)=>Y.next(K.length===1?K[0]:K),z=Z(X);return(0,dD.isFunction)($)?()=>$(X,z):void 0})}uD.fromEventPattern=cD});var rD=q((nD)=>{Object.defineProperty(nD,"__esModule",{value:!0});nD.generate=void 0;var iD=A0(),tv=bK(),ov=uK(),ev=Kq();function ZT(Z,$,J,Y,X){let z,K;if(arguments.length===1)({initialState:K,condition:$,iterate:J,resultSelector:z=iD.identity,scheduler:X}=Z);else if(K=Z,!Y||(0,tv.isScheduler)(Y))z=iD.identity,X=Y;else z=Y;function*Q(){for(let W=K;!$||$(W);W=J(W))yield z(W)}return(0,ov.defer)(X?()=>(0,ev.scheduleIterable)(Q(),X):Q)}nD.generate=ZT});var oD=q((sD)=>{Object.defineProperty(sD,"__esModule",{value:!0});sD.iif=void 0;var $T=uK();function JT(Z,$,J){return(0,$T.defer)(()=>Z()?$:J)}sD.iif=JT});var I6=q((Z2)=>{Object.defineProperty(Z2,"__esModule",{value:!0});Z2.timer=void 0;var YT=D(),XT=h0(),zT=bK(),KT=PH(),eD=b0();function HT(Z=0,$,J=XT.asyncScheduler){let Y=-1;if($!=null)if((0,zT.isScheduler)($))J=$;else Y=$;return new YT.Observable((X)=>{let z=(0,KT.isValidDate)(Z)?+Z-J.now():Z;if(z<0)z=0;let K=0;return(0,eD.executeSchedule)(X,J,()=>{if(X.next(K++),0<=Y)(0,eD.executeSchedule)(X,J,()=>{X.next(K++)},Y,!0);else X.complete()},z)})}Z2.timer=HT});var Dq=q((J2)=>{Object.defineProperty(J2,"__esModule",{value:!0});J2.interval=void 0;var QT=h0(),qT=I6();function WT(Z=0,$=QT.asyncScheduler){if(Z<0)Z=0;return(0,qT.timer)(Z,Z,$)}J2.interval=WT});var Q2=q((K2)=>{Object.defineProperty(K2,"__esModule",{value:!0});K2.merge=void 0;var X2=D(),NT=cK(),BT=V8(),z2=D6(),FT=dK();function GT(...Z){let $=(0,z2.popScheduler)(Z),J=(0,z2.popNumber)(Z,1/0),Y=Z;return!Y.length?BT.EMPTY:Y.length===1?(0,X2.from)(Y[0]):(0,NT.mergeAll)(J)($?(0,FT.scheduled)(Y,$):(0,X2.from)(Y))}K2.merge=GT});var N2=q((q2)=>{Object.defineProperty(q2,"__esModule",{value:!0});q2.of=void 0;var UT=D();function LT(...Z){return(0,UT.fromArrayLike)(Z)}q2.of=LT});var lK=q((B2)=>{Object.defineProperty(B2,"__esModule",{value:!0});B2.argsOrArgArray=void 0;var{isArray:DT}=Array;function IT(Z){return Z.length===1&&DT(Z[0])?Z[0]:Z}B2.argsOrArgArray=IT});var wq=q((U2)=>{Object.defineProperty(U2,"__esModule",{value:!0});U2.onErrorResumeNext=void 0;var Iq=D(),wT=lK(),G2=Y0();function OT(...Z){let $=(0,wT.argsOrArgArray)(Z);return new Iq.Observable((J)=>{let Y=0,X=()=>{if(Y<$.length){let z;try{z=(0,Iq.from)($[Y++])}catch(Q){X();return}let K=(0,Iq.operate)({destination:J,error:G2.noop,complete:G2.noop});z.subscribe(K),K.add(X)}else J.complete()};X()})}U2.onErrorResumeNext=OT});var w2=q((D2)=>{Object.defineProperty(D2,"__esModule",{value:!0});D2.not=void 0;function kT(Z,$){return(J,Y)=>!Z.call($,J,Y)}D2.not=kT});var hH=q((k2)=>{Object.defineProperty(k2,"__esModule",{value:!0});k2.filter=void 0;var O2=D();function PT(Z,$){return(J)=>new O2.Observable((Y)=>{let X=0;J.subscribe((0,O2.operate)({destination:Y,next:(z)=>Z.call($,z,X++)&&Y.next(z)}))})}k2.filter=PT});var M2=q((V2)=>{Object.defineProperty(V2,"__esModule",{value:!0});V2.partition=void 0;var ET=w2(),E2=hH(),f2=D();function fT(Z,$,J){return[(0,E2.filter)($,J)((0,f2.from)(Z)),(0,E2.filter)((0,ET.not)($,J))((0,f2.from)(Z))]}V2.partition=fT});var Oq=q((h2)=>{Object.defineProperty(h2,"__esModule",{value:!0});h2.raceInit=h2.race=void 0;var AH=D(),VT=lK();function xT(...Z){return Z=(0,VT.argsOrArgArray)(Z),Z.length===1?(0,AH.from)(Z[0]):new AH.Observable(C2(Z))}h2.race=xT;function C2(Z){return($)=>{let J=[];for(let Y=0;J&&!$.closed&&Y<Z.length;Y++)J.push((0,AH.from)(Z[Y]).subscribe((0,AH.operate)({destination:$,next:(X)=>{if(J){for(let z=0;z<J.length;z++)z!==Y&&J[z].unsubscribe();J=null}$.next(X)}})))}}h2.raceInit=C2});var y2=q((T2)=>{Object.defineProperty(T2,"__esModule",{value:!0});T2.range=void 0;var CT=D(),hT=V8(),v2=b0();function AT(Z,$,J){if($==null)$=Z,Z=0;if($<=0)return hT.EMPTY;let Y=$+Z;return new CT.Observable(J?(X)=>{let z=Z,K=()=>{if(z<Y){if(X.next(z++),!X.closed)(0,v2.executeSchedule)(X,J,K)}else X.complete()};(0,v2.executeSchedule)(X,J,K)}:(X)=>{let z=Z;while(z<Y&&!X.closed)X.next(z++);X.complete()})}T2.range=AT});var _2=q((m2)=>{Object.defineProperty(m2,"__esModule",{value:!0});m2.throwError=void 0;var vT=D();function TT(Z){return new vT.Observable(($)=>{$.error(Z())})}m2.throwError=TT});var d2=q((g2)=>{Object.defineProperty(g2,"__esModule",{value:!0});g2.using=void 0;var S2=D(),RT=V8();function yT(Z,$){return new S2.Observable((J)=>{let Y=Z(),X=$(Y);return(X?(0,S2.from)(X):RT.EMPTY).subscribe(J),()=>{if(Y)Y.unsubscribe()}})}g2.using=yT});var vH=q((c2)=>{Object.defineProperty(c2,"__esModule",{value:!0});c2.zip=void 0;var kq=D(),mT=lK(),jT=V8(),_T=D6();function ST(...Z){let $=(0,_T.popResultSelector)(Z),J=(0,mT.argsOrArgArray)(Z);return J.length?new kq.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,kq.from)(J[K]).subscribe((0,kq.operate)({destination:Y,next:(Q)=>{if(X[K].push(Q),X.every((W)=>W.length)){let W=X.map((G)=>G.shift());if(Y.next($?$(...W):W),X.some((G,U)=>!G.length&&z[U]))Y.complete()}},complete:()=>{z[K]=!0,!X[K].length&&Y.complete()}}));return()=>{X=z=null}}):jT.EMPTY}c2.zip=ST});var i2=q((l2)=>{Object.defineProperty(l2,"__esModule",{value:!0});l2.NEVER=void 0;var gT=D(),bT=Y0();l2.NEVER=new gT.Observable(bT.noop)});var a2=q((n2)=>{Object.defineProperty(n2,"__esModule",{value:!0})});var Pq=q((r2)=>{Object.defineProperty(r2,"__esModule",{value:!0});r2.audit=void 0;var TH=D();function dT(Z){return($)=>new TH.Observable((J)=>{let Y=!1,X=null,z=null,K=!1,Q=()=>{if(z?.unsubscribe(),z=null,Y){Y=!1;let G=X;X=null,J.next(G)}K&&J.complete()},W=()=>{z=null,K&&J.complete()};$.subscribe((0,TH.operate)({destination:J,next:(G)=>{if(Y=!0,X=G,!z)(0,TH.from)(Z(G)).subscribe(z=(0,TH.operate)({destination:J,next:Q,complete:W}))},complete:()=>{K=!0,(!Y||!z||z.closed)&&J.complete()}}))})}r2.audit=dT});var e2=q((t2)=>{Object.defineProperty(t2,"__esModule",{value:!0});t2.auditTime=void 0;var cT=h0(),uT=Pq(),lT=I6();function pT(Z,$=cT.asyncScheduler){return(0,uT.audit)(()=>(0,lT.timer)(Z,$))}t2.auditTime=pT});var JI=q((ZI)=>{Object.defineProperty(ZI,"__esModule",{value:!0});ZI.buffer=void 0;var RH=D(),iT=Y0();function nT(Z){return($)=>new RH.Observable((J)=>{let Y=[];return(0,RH.from)(Z).subscribe((0,RH.operate)({destination:J,next:()=>{let X=Y;Y=[],J.next(X)},complete:iT.noop})),$.subscribe((0,RH.operate)({destination:J,next:(X)=>Y.push(X),complete:()=>{J.next(Y),J.complete()}})),()=>{Y=null}})}ZI.buffer=nT});var KI=q((XI)=>{Object.defineProperty(XI,"__esModule",{value:!0});XI.bufferCount=void 0;var YI=D(),aT=n$();function rT(Z,$=null){return $=$??Z,(J)=>new YI.Observable((Y)=>{let X=[],z=0;J.subscribe((0,YI.operate)({destination:Y,next:(K)=>{let Q=null;if(z++%$===0)X.push([]);for(let W of X)if(W.push(K),Z<=W.length)Q=Q??[],Q.push(W);if(Q)for(let W of Q)(0,aT.arrRemove)(X,W),Y.next(W)},complete:()=>{for(let K of X)Y.next(K);Y.complete()},finalize:()=>{X=null}}))})}XI.bufferCount=rT});var WI=q((QI)=>{Object.defineProperty(QI,"__esModule",{value:!0});QI.bufferTime=void 0;var Eq=D(),sT=n$(),tT=h0(),oT=D6(),HI=b0();function eT(Z,...$){let J=(0,oT.popScheduler)($)??tT.asyncScheduler,Y=$[0]??null,X=$[1]||1/0;return(z)=>new Eq.Observable((K)=>{let Q=[],W=!1,G=(k)=>{let{buffer:f,subs:V}=k;V.unsubscribe(),(0,sT.arrRemove)(Q,k),K.next(f),W&&U()},U=()=>{if(Q){let k=new Eq.Subscription;K.add(k);let V={buffer:[],subs:k};Q.push(V),(0,HI.executeSchedule)(k,J,()=>G(V),Z)}};if(Y!==null&&Y>=0)(0,HI.executeSchedule)(K,J,U,Y,!0);else W=!0;U();let O=(0,Eq.operate)({destination:K,next:(k)=>{let f=Q.slice();for(let V of f){let{buffer:T}=V;T.push(k),X<=T.length&&G(V)}},complete:()=>{while(Q?.length)K.next(Q.shift().buffer);O?.unsubscribe(),K.complete(),K.unsubscribe()},finalize:()=>Q=null});z.subscribe(O)})}QI.bufferTime=eT});var GI=q((BI)=>{Object.defineProperty(BI,"__esModule",{value:!0});BI.bufferToggle=void 0;var r$=D(),NI=Y0(),ZR=n$();function $R(Z,$){return(J)=>new r$.Observable((Y)=>{let X=[];(0,r$.from)(Z).subscribe((0,r$.operate)({destination:Y,next:(z)=>{let K=[];X.push(K);let Q=new r$.Subscription,W=()=>{(0,ZR.arrRemove)(X,K),Y.next(K),Q.unsubscribe()};Q.add((0,r$.from)($(z)).subscribe((0,r$.operate)({destination:Y,next:W,complete:NI.noop})))},complete:NI.noop})),J.subscribe((0,r$.operate)({destination:Y,next:(z)=>{for(let K of X)K.push(z)},complete:()=>{while(X.length>0)Y.next(X.shift());Y.complete()}}))})}BI.bufferToggle=$R});var DI=q((UI)=>{Object.defineProperty(UI,"__esModule",{value:!0});UI.bufferWhen=void 0;var yH=D(),JR=Y0();function YR(Z){return($)=>new yH.Observable((J)=>{let Y=null,X=null,z=()=>{X?.unsubscribe();let K=Y;Y=[],K&&J.next(K),(0,yH.from)(Z()).subscribe(X=(0,yH.operate)({destination:J,next:z,complete:JR.noop}))};z(),$.subscribe((0,yH.operate)({destination:J,next:(K)=>Y?.push(K),complete:()=>{Y&&J.next(Y),J.complete()},finalize:()=>Y=X=null}))})}UI.bufferWhen=YR});var kI=q((wI)=>{Object.defineProperty(wI,"__esModule",{value:!0});wI.catchError=void 0;var fq=D();function II(Z){return($)=>new fq.Observable((J)=>{let Y=null,X=!1,z;if(Y=$.subscribe((0,fq.operate)({destination:J,error:(K)=>{if(z=(0,fq.from)(Z(K,II(Z)($))),Y)Y.unsubscribe(),Y=null,z.subscribe(J);else X=!0}})),X)Y.unsubscribe(),Y=null,z.subscribe(J)})}wI.catchError=II});var Vq=q((PI)=>{Object.defineProperty(PI,"__esModule",{value:!0});PI.scanInternals=void 0;var XR=D();function zR(Z,$,J,Y,X,z,K){let Q=J,W=$,G=0;z.subscribe((0,XR.operate)({destination:K,next:(U)=>{let O=G++;W=Q?Z(W,U,O):(Q=!0,U),Y&&K.next(W)},complete:X?()=>{Q&&K.next(W),K.complete()}:void 0}))}PI.scanInternals=zR});var GK=q((fI)=>{Object.defineProperty(fI,"__esModule",{value:!0});fI.reduce=void 0;var KR=Vq(),HR=D();function QR(Z,$){let J=arguments.length>=2;return(Y)=>new HR.Observable((X)=>(0,KR.scanInternals)(Z,$,J,!1,!0,Y,X))}fI.reduce=QR});var xq=q((xI)=>{Object.defineProperty(xI,"__esModule",{value:!0});xI.toArray=void 0;var qR=GK(),WR=D(),NR=(Z,$)=>(Z.push($),Z);function BR(){return(Z)=>new WR.Observable(($)=>{(0,qR.reduce)(NR,[])(Z).subscribe($)})}xI.toArray=BR});var Mq=q((CI)=>{Object.defineProperty(CI,"__esModule",{value:!0});CI.joinAllInternals=void 0;var FR=A0(),GR=FK(),UR=eQ(),LR=a$(),DR=xq();function IR(Z,$){return(0,UR.pipe)((0,DR.toArray)(),(0,LR.mergeMap)((J)=>Z(J)),$?(0,GR.mapOneOrManyArgs)($):FR.identity)}CI.joinAllInternals=IR});var TI=q((AI)=>{Object.defineProperty(AI,"__esModule",{value:!0});AI.combineLatestAll=void 0;var wR=xH(),OR=Mq();function kR(Z){return(0,OR.joinAllInternals)(wR.combineLatest,Z)}AI.combineLatestAll=kR});var mI=q((RI)=>{Object.defineProperty(RI,"__esModule",{value:!0});RI.combineLatestWith=void 0;var PR=xH(),ER=D();function fR(...Z){return($)=>new ER.Observable((J)=>(0,PR.combineLatestInit)([$,...Z])(J))}RI.combineLatestWith=fR});var Cq=q((jI)=>{Object.defineProperty(jI,"__esModule",{value:!0});jI.concatMap=void 0;var VR=a$();function xR(Z){return(0,VR.mergeMap)(Z,1)}jI.concatMap=xR});var bI=q((SI)=>{Object.defineProperty(SI,"__esModule",{value:!0});SI.concatMapTo=void 0;var MR=Cq();function CR(Z){return(0,MR.concatMap)(()=>Z)}SI.concatMapTo=CR});var lI=q((cI)=>{Object.defineProperty(cI,"__esModule",{value:!0});cI.concatWith=void 0;var dI=D(),hR=CH();function AR(...Z){return($)=>new dI.Observable((J)=>{(0,hR.concatAll)()((0,dI.from)([$,...Z])).subscribe(J)})}cI.concatWith=AR});var nI=q((pI)=>{Object.defineProperty(pI,"__esModule",{value:!0});pI.fromSubscribable=void 0;var vR=D();function TR(Z){return new vR.Observable(($)=>Z.subscribe($))}pI.fromSubscribable=TR});var tI=q((rI)=>{Object.defineProperty(rI,"__esModule",{value:!0});rI.connect=void 0;var aI=D(),RR=H0(),yR=nI(),mR={connector:()=>new RR.Subject};function jR(Z,$=mR){let{connector:J}=$;return(Y)=>new aI.Observable((X)=>{let z=J();(0,aI.from)(Z((0,yR.fromSubscribable)(z))).subscribe(X),X.add(Y.subscribe(z))})}rI.connect=jR});var Zw=q((oI)=>{Object.defineProperty(oI,"__esModule",{value:!0});oI.count=void 0;var _R=GK();function SR(Z){return(0,_R.reduce)(($,J,Y)=>!Z||Z(J,Y)?$+1:$,0)}oI.count=SR});var Yw=q(($w)=>{Object.defineProperty($w,"__esModule",{value:!0});$w.debounce=void 0;var mH=D(),gR=Y0();function bR(Z){return($)=>new mH.Observable((J)=>{let Y=!1,X=null,z=null,K=()=>{if(z?.unsubscribe(),z=null,Y){Y=!1;let Q=X;X=null,J.next(Q)}};$.subscribe((0,mH.operate)({destination:J,next:(Q)=>{z?.unsubscribe(),Y=!0,X=Q,z=(0,mH.operate)({destination:J,next:K,complete:gR.noop}),(0,mH.from)(Z(Q)).subscribe(z)},complete:()=>{K(),J.complete()},finalize:()=>{X=z=null}}))})}$w.debounce=bR});var Hw=q((zw)=>{Object.defineProperty(zw,"__esModule",{value:!0});zw.debounceTime=void 0;var dR=h0(),Xw=D(),cR=b0();function uR(Z,$=dR.asyncScheduler){return(J)=>new Xw.Observable((Y)=>{let X,z;J.subscribe((0,Xw.operate)({destination:Y,next:(K)=>{X=K,z?.unsubscribe(),z=(0,cR.executeSchedule)(Y,$,()=>{z=void 0;let Q=X;X=null,Y.next(Q)},Z)},complete:()=>{if(z)Y.next(X);Y.complete()},finalize:()=>{X=z=null}}))})}zw.debounceTime=uR});var Nw=q((qw)=>{Object.defineProperty(qw,"__esModule",{value:!0});qw.defaultIfEmpty=void 0;var Qw=D();function lR(Z){return($)=>new Qw.Observable((J)=>{let Y=!1;$.subscribe((0,Qw.operate)({destination:J,next:(X)=>{Y=!0,J.next(X)},complete:()=>{if(!Y)J.next(Z);J.complete()}}))})}qw.defaultIfEmpty=lR});var hq=q((Fw)=>{Object.defineProperty(Fw,"__esModule",{value:!0});Fw.take=void 0;var pR=V8(),Bw=D();function iR(Z){return Z<=0?()=>pR.EMPTY:($)=>new Bw.Observable((J)=>{let Y=0,X=(0,Bw.operate)({destination:J,next:(z)=>{if(++Y<Z)J.next(z);else X.unsubscribe(),J.next(z),J.complete()}});$.subscribe(X)})}Fw.take=iR});var Aq=q((Lw)=>{Object.defineProperty(Lw,"__esModule",{value:!0});Lw.ignoreElements=void 0;var Uw=D(),nR=Y0();function aR(){return(Z)=>new Uw.Observable(($)=>{Z.subscribe((0,Uw.operate)({destination:$,next:nR.noop}))})}Lw.ignoreElements=aR});var Tq=q((Ow)=>{Object.defineProperty(Ow,"__esModule",{value:!0});Ow.delayWhen=void 0;var rR=Uq(),Iw=hq(),sR=Aq(),tR=a$(),vq=oQ(),oR=BK();function ww(Z,$){if($)return(J)=>(0,rR.concat)((0,vq.rx)($,(0,Iw.take)(1),(0,sR.ignoreElements)()),(0,vq.rx)(J,ww(Z)));return(0,tR.mergeMap)((J,Y)=>(0,vq.rx)(Z(J,Y),(0,Iw.take)(1),(0,oR.map)(()=>J)))}Ow.delayWhen=ww});var fw=q((Pw)=>{Object.defineProperty(Pw,"__esModule",{value:!0});Pw.delay=void 0;var eR=h0(),Zy=Tq(),$y=I6();function Jy(Z,$=eR.asyncScheduler){let J=(0,$y.timer)(Z,$);return(0,Zy.delayWhen)(()=>J)}Pw.delay=Jy});var Mw=q((Vw)=>{Object.defineProperty(Vw,"__esModule",{value:!0});Vw.observeNotification=void 0;function Yy(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?.()}Vw.observeNotification=Yy});var vw=q((hw)=>{Object.defineProperty(hw,"__esModule",{value:!0});hw.dematerialize=void 0;var Xy=Mw(),Cw=D();function zy(){return(Z)=>new Cw.Observable(($)=>{Z.subscribe((0,Cw.operate)({destination:$,next:(J)=>(0,Xy.observeNotification)(J,$)}))})}hw.dematerialize=zy});var yw=q((Tw)=>{Object.defineProperty(Tw,"__esModule",{value:!0});Tw.distinct=void 0;var jH=D(),Ky=Y0();function Hy(Z,$){return(J)=>new jH.Observable((Y)=>{let X=new Set;J.subscribe((0,jH.operate)({destination:Y,next:(z)=>{let K=Z?Z(z):z;if(!X.has(K))X.add(K),Y.next(z)}})),$&&(0,jH.from)($).subscribe((0,jH.operate)({destination:Y,next:()=>X.clear(),complete:Ky.noop}))})}Tw.distinct=Hy});var Rq=q((jw)=>{Object.defineProperty(jw,"__esModule",{value:!0});jw.distinctUntilChanged=void 0;var Qy=A0(),mw=D();function qy(Z,$=Qy.identity){return Z=Z??Wy,(J)=>new mw.Observable((Y)=>{let X,z=!0;J.subscribe((0,mw.operate)({destination:Y,next:(K)=>{let Q=$(K);if(z||!Z(X,Q))z=!1,X=Q,Y.next(K)}}))})}jw.distinctUntilChanged=qy;function Wy(Z,$){return Z===$}});var bw=q((Sw)=>{Object.defineProperty(Sw,"__esModule",{value:!0});Sw.distinctUntilKeyChanged=void 0;var Ny=Rq();function By(Z,$){return(0,Ny.distinctUntilChanged)((J,Y)=>$?$(J[Z],Y[Z]):J[Z]===Y[Z])}Sw.distinctUntilKeyChanged=By});var pw=q((uw)=>{Object.defineProperty(uw,"__esModule",{value:!0});uw.elementAt=void 0;var dw=Zq(),cw=D();function Fy(Z,$){if(Z<0)throw new dw.ArgumentOutOfRangeError;let J=arguments.length>=2;return(Y)=>new cw.Observable((X)=>{let z=0,K=(0,cw.operate)({destination:X,next:(Q)=>{if(z++===Z)K.unsubscribe(),X.next(Q),X.complete()},complete:()=>{if(!J)X.error(new dw.ArgumentOutOfRangeError);else X.next($),X.complete()}});Y.subscribe(K)})}uw.elementAt=Fy});var aw=q((iw)=>{Object.defineProperty(iw,"__esModule",{value:!0});iw.endWith=void 0;var yq=D();function Gy(...Z){return($)=>new yq.Observable((J)=>{$.subscribe((0,yq.operate)({destination:J,complete:()=>{(0,yq.subscribeToArray)(Z,J)}}))})}iw.endWith=Gy});var ow=q((sw)=>{Object.defineProperty(sw,"__esModule",{value:!0});sw.every=void 0;var rw=D();function Uy(Z,$){return(J)=>new rw.Observable((Y)=>{let X=0;J.subscribe((0,rw.operate)({destination:Y,next:(z)=>{if(!Z.call($,z,X++,J))Y.next(!1),Y.complete()},complete:()=>{Y.next(!0),Y.complete()}}))})}sw.every=Uy});var mq=q((ew)=>{Object.defineProperty(ew,"__esModule",{value:!0});ew.exhaustMap=void 0;var _H=D();function Ly(Z){return($)=>new _H.Observable((J)=>{let Y=0,X=null,z=!1;$.subscribe((0,_H.operate)({destination:J,next:(K)=>{if(!X)X=(0,_H.operate)({destination:J,complete:()=>{X=null,z&&J.complete()}}),(0,_H.from)(Z(K,Y++)).subscribe(X)},complete:()=>{z=!0,!X&&J.complete()}}))})}ew.exhaustMap=Ly});var YO=q(($O)=>{Object.defineProperty($O,"__esModule",{value:!0});$O.exhaustAll=void 0;var Dy=mq(),Iy=A0();function wy(){return(0,Dy.exhaustMap)(Iy.identity)}$O.exhaustAll=wy});var KO=q((XO)=>{Object.defineProperty(XO,"__esModule",{value:!0});XO.expand=void 0;var Oy=D(),ky=MH();function Py(Z,$=1/0,J){return $=($||0)<1?1/0:$,(Y)=>new Oy.Observable((X)=>(0,ky.mergeInternals)(Y,X,Z,$,void 0,!0,J))}XO.expand=Py});var qO=q((HO)=>{Object.defineProperty(HO,"__esModule",{value:!0});HO.finalize=void 0;var Ey=D();function fy(Z){return($)=>new Ey.Observable((J)=>{$.subscribe(J),J.add(Z)})}HO.finalize=fy});var jq=q((BO)=>{Object.defineProperty(BO,"__esModule",{value:!0});BO.createFind=BO.find=void 0;var WO=D();function Vy(Z){return($)=>new WO.Observable((J)=>NO(Z,"value",$,J))}BO.find=Vy;function NO(Z,$,J,Y){let X=$==="index",z=0;J.subscribe((0,WO.operate)({destination:Y,next:(K)=>{let Q=z++;if(Z(K,Q,J))Y.next(X?Q:K),Y.complete()},complete:()=>{Y.next(X?-1:void 0),Y.complete()}}))}BO.createFind=NO});var LO=q((GO)=>{Object.defineProperty(GO,"__esModule",{value:!0});GO.findIndex=void 0;var My=D(),Cy=jq();function hy(Z){return($)=>new My.Observable((J)=>(0,Cy.createFind)(Z,"index",$,J))}GO.findIndex=hy});var OO=q((IO)=>{Object.defineProperty(IO,"__esModule",{value:!0});IO.first=void 0;var DO=D(),Ay=S8();function vy(Z,$){let J=arguments.length>=2;return(Y)=>new DO.Observable((X)=>{let z=0,K=(0,DO.operate)({destination:X,next:(Q)=>{if(Z?Z(Q,z++,Y):!0)K.unsubscribe(),X.next(Q),X.complete()},complete:()=>{if(J)X.next($),X.complete();else X.error(new Ay.EmptyError)}});Y.subscribe(K)})}IO.first=vy});var EO=q((kO)=>{Object.defineProperty(kO,"__esModule",{value:!0});kO.groupBy=void 0;var pK=D(),Ty=H0();function Ry(Z,$,J,Y){return(X)=>new pK.Observable((z)=>{let K;if(!$||typeof $==="function")K=$;else({duration:J,element:K,connector:Y}=$);let Q=new Map,W=(k)=>{Q.forEach(k),k(z)},G=(k)=>W((f)=>f.error(k)),U=(0,pK.operate)({destination:z,next:(k)=>{try{let f=Z(k),V=Q.get(f);if(!V){Q.set(f,V=Y?Y():new Ty.Subject);let T=O(f,V);if(z.next(T),J){let E0=(0,pK.operate)({destination:V,next:()=>{V.complete(),E0?.unsubscribe()},finalize:()=>Q.delete(f)});U.add((0,pK.from)(J(T)).subscribe(E0))}}V.next(K?K(k):k)}catch(f){G(f)}},error:G,complete:()=>W((k)=>k.complete()),finalize:()=>Q.clear()});X.subscribe(U);function O(k,f){let V=new pK.Observable((T)=>f.subscribe(T));return V.key=k,V}})}kO.groupBy=Ry});var MO=q((VO)=>{Object.defineProperty(VO,"__esModule",{value:!0});VO.isEmpty=void 0;var fO=D();function yy(){return(Z)=>new fO.Observable(($)=>{Z.subscribe((0,fO.operate)({destination:$,next:()=>{$.next(!1),$.complete()},complete:()=>{$.next(!0),$.complete()}}))})}VO.isEmpty=yy});var vO=q((hO)=>{Object.defineProperty(hO,"__esModule",{value:!0});hO.last=void 0;var CO=D(),my=S8();function jy(Z,$){let J=arguments.length>=2;return(Y)=>new CO.Observable((X)=>{let z=0,K=!1,Q;Y.subscribe((0,CO.operate)({destination:X,next(W){if(!Z||Z(W,z++,Y))K=!0,Q=W},complete(){if(K)X.next(Q),X.complete();else if(J)X.next($),X.complete();else X.error(new my.EmptyError)}}))})}hO.last=jy});var yO=q((TO)=>{Object.defineProperty(TO,"__esModule",{value:!0});TO.mapTo=void 0;var _y=BK();function Sy(Z){return(0,_y.map)(()=>Z)}TO.mapTo=Sy});var _O=q((mO)=>{Object.defineProperty(mO,"__esModule",{value:!0});mO.materialize=void 0;var iK=D();function gy(){return(Z)=>new iK.Observable(($)=>{Z.subscribe((0,iK.operate)({destination:$,next:(J)=>{$.next((0,iK.nextNotification)(J))},error:(J)=>{$.next((0,iK.errorNotification)(J)),$.complete()},complete:()=>{$.next(iK.COMPLETE_NOTIFICATION),$.complete()}}))})}mO.materialize=gy});var bO=q((SO)=>{Object.defineProperty(SO,"__esModule",{value:!0});SO.max=void 0;var by=GK(),dy=D();function cy(Z){return(0,by.reduce)((0,dy.isFunction)(Z)?($,J)=>Z($,J)>0?$:J:($,J)=>$>J?$:J)}SO.max=cy});var uO=q((dO)=>{Object.defineProperty(dO,"__esModule",{value:!0});dO.mergeMapTo=void 0;var uy=a$();function ly(Z,$){return(0,uy.mergeMap)(()=>Z,$)}dO.mergeMapTo=ly});var iO=q((lO)=>{Object.defineProperty(lO,"__esModule",{value:!0});lO.mergeScan=void 0;var py=D(),iy=MH();function ny(Z,$,J=1/0){return(Y)=>new py.Observable((X)=>{let z=$;return(0,iy.mergeInternals)(Y,X,(K,Q)=>Z(z,K,Q),J,(K)=>{z=K},!1,void 0,()=>z=null)})}lO.mergeScan=ny});var sO=q((aO)=>{Object.defineProperty(aO,"__esModule",{value:!0});aO.mergeWith=void 0;var nO=D(),ay=cK();function ry(...Z){return($)=>new nO.Observable((J)=>{(0,ay.mergeAll)()((0,nO.from)([$,...Z])).subscribe(J)})}aO.mergeWith=ry});var eO=q((tO)=>{Object.defineProperty(tO,"__esModule",{value:!0});tO.min=void 0;var sy=GK(),ty=D();function oy(Z){return(0,sy.reduce)((0,ty.isFunction)(Z)?($,J)=>Z($,J)<0?$:J:($,J)=>$<J?$:J)}tO.min=oy});var Jk=q((Zk)=>{Object.defineProperty(Zk,"__esModule",{value:!0});Zk.onErrorResumeNextWith=void 0;var ey=lK(),Zm=wq();function $m(...Z){let $=(0,ey.argsOrArgArray)(Z);return(J)=>(0,Zm.onErrorResumeNext)(J,...$)}Zk.onErrorResumeNextWith=$m});var Kk=q((Xk)=>{Object.defineProperty(Xk,"__esModule",{value:!0});Xk.pairwise=void 0;var Yk=D();function Jm(){return(Z)=>new Yk.Observable(($)=>{let J,Y=!1;Z.subscribe((0,Yk.operate)({destination:$,next:(X)=>{let z=J;J=X,Y&&$.next([z,X]),Y=!0}}))})}Xk.pairwise=Jm});var qk=q((Hk)=>{Object.defineProperty(Hk,"__esModule",{value:!0});Hk.raceWith=void 0;var Ym=Oq(),Xm=D(),zm=A0();function Km(...Z){return!Z.length?zm.identity:($)=>new Xm.Observable((J)=>{(0,Ym.raceInit)([$,...Z])(J)})}Hk.raceWith=Km});var Bk=q((Wk)=>{Object.defineProperty(Wk,"__esModule",{value:!0});Wk.repeat=void 0;var SH=D(),Hm=V8(),Qm=I6();function qm(Z){let $=1/0,J;if(Z!=null)if(typeof Z==="object")({count:$=1/0,delay:J}=Z);else $=Z;return $<=0?()=>Hm.EMPTY:(Y)=>new SH.Observable((X)=>{let z=0,K,Q=()=>{if(K?.unsubscribe(),K=null,J!=null){let G=typeof J==="number"?(0,Qm.timer)(J):(0,SH.from)(J(z)),U=(0,SH.operate)({destination:X,next:()=>{U.unsubscribe(),W()}});G.subscribe(U)}else W()},W=()=>{let G=!1;if(K=Y.subscribe((0,SH.operate)({destination:X,complete:()=>{if(++z<$)if(K)Q();else G=!0;else X.complete()}})),G)Q()};W()})}Wk.repeat=qm});var Uk=q((Fk)=>{Object.defineProperty(Fk,"__esModule",{value:!0});Fk.repeatWhen=void 0;var gH=D(),Wm=H0();function Nm(Z){return($)=>new gH.Observable((J)=>{let Y,X=!1,z,K=!1,Q=!1,W=()=>Q&&K&&(J.complete(),!0),G=()=>{if(!z)z=new Wm.Subject,(0,gH.from)(Z(z)).subscribe((0,gH.operate)({destination:J,next:()=>{if(Y)U();else X=!0},complete:()=>{K=!0,W()}}));return z},U=()=>{if(Q=!1,Y=$.subscribe((0,gH.operate)({destination:J,complete:()=>{Q=!0,!W()&&G().next()}})),X)Y.unsubscribe(),Y=null,X=!1,U()};U()})}Fk.repeatWhen=Nm});var Ik=q((Lk)=>{Object.defineProperty(Lk,"__esModule",{value:!0});Lk.retry=void 0;var bH=D(),Bm=A0(),Fm=I6();function Gm(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?Bm.identity:(z)=>new bH.Observable((K)=>{let Q=0,W,G=()=>{let U=!1;if(W=z.subscribe((0,bH.operate)({destination:K,next:(O)=>{if(X)Q=0;K.next(O)},error:(O)=>{if(Q++<J){let k=()=>{if(W)W.unsubscribe(),W=null,G();else U=!0};if(Y!=null){let f=typeof Y==="number"?(0,Fm.timer)(Y):(0,bH.from)(Y(O,Q)),V=(0,bH.operate)({destination:K,next:()=>{V.unsubscribe(),k()},complete:()=>{K.complete()}});f.subscribe(V)}else k()}else K.error(O)}})),U)W.unsubscribe(),W=null,G()};G()})}Lk.retry=Gm});var kk=q((wk)=>{Object.defineProperty(wk,"__esModule",{value:!0});wk.retryWhen=void 0;var dH=D(),Um=H0();function Lm(Z){return($)=>new dH.Observable((J)=>{let Y,X=!1,z,K=()=>{if(Y=$.subscribe((0,dH.operate)({destination:J,error:(Q)=>{if(!z)z=new Um.Subject,(0,dH.from)(Z(z)).subscribe((0,dH.operate)({destination:J,next:()=>Y?K():X=!0}));if(z)z.next(Q)}})),X)Y.unsubscribe(),Y=null,X=!1,K()};K()})}wk.retryWhen=Lm});var _q=q((Pk)=>{Object.defineProperty(Pk,"__esModule",{value:!0});Pk.sample=void 0;var cH=D(),Dm=Y0();function Im(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:Dm.noop}))})}Pk.sample=Im});var xk=q((fk)=>{Object.defineProperty(fk,"__esModule",{value:!0});fk.sampleTime=void 0;var wm=h0(),Om=_q(),km=Dq();function Pm(Z,$=wm.asyncScheduler){return(0,Om.sample)((0,km.interval)(Z,$))}fk.sampleTime=Pm});var hk=q((Mk)=>{Object.defineProperty(Mk,"__esModule",{value:!0});Mk.scan=void 0;var Em=D(),fm=Vq();function Vm(Z,$){let J=arguments.length>=2;return(Y)=>new Em.Observable((X)=>(0,fm.scanInternals)(Z,$,J,!0,!1,Y,X))}Mk.scan=Vm});var Rk=q((vk)=>{Object.defineProperty(vk,"__esModule",{value:!0});vk.sequenceEqual=void 0;var Sq=D();function xm(Z,$=(J,Y)=>J===Y){return(J)=>new Sq.Observable((Y)=>{let X=Ak(),z=Ak(),K=(W)=>{Y.next(W),Y.complete()},Q=(W,G)=>{let U=(0,Sq.operate)({destination:Y,next:(O)=>{let{buffer:k,complete:f}=G;if(k.length===0)f?K(!1):W.buffer.push(O);else!$(O,k.shift())&&K(!1)},complete:()=>{W.complete=!0;let{complete:O,buffer:k}=G;O&&K(k.length===0),U?.unsubscribe()}});return U};J.subscribe(Q(X,z)),(0,Sq.from)(Z).subscribe(Q(z,X))})}vk.sequenceEqual=xm;function Ak(){return{buffer:[],complete:!1}}});var bq=q((yk)=>{Object.defineProperty(yk,"__esModule",{value:!0});yk.share=void 0;var nK=D(),Mm=H0();function Cm(Z={}){let{connector:$=()=>new Mm.Subject,resetOnError:J=!0,resetOnComplete:Y=!0,resetOnRefCountZero:X=!0}=Z;return(z)=>{let K,Q,W,G=0,U=!1,O=!1,k=()=>{Q?.unsubscribe(),Q=void 0},f=()=>{k(),K=W=void 0,U=O=!1},V=()=>{let T=K;f(),T?.unsubscribe()};return new nK.Observable((T)=>{if(G++,!O&&!U)k();let E0=W=W??$();if(T.add(()=>{if(G--,G===0&&!O&&!U)Q=gq(V,X)}),E0.subscribe(T),!K&&G>0)K=new nK.Subscriber({next:(X0)=>E0.next(X0),error:(X0)=>{O=!0,k(),Q=gq(f,J,X0),E0.error(X0)},complete:()=>{U=!0,k(),Q=gq(f,Y),E0.complete()}}),(0,nK.from)(z).subscribe(K)})}}yk.share=Cm;function gq(Z,$,...J){if($===!0){Z();return}if($===!1)return;let Y=new nK.Subscriber({next:()=>{Y.unsubscribe(),Z()}});return(0,nK.from)($(...J)).subscribe(Y)}});var Sk=q((jk)=>{Object.defineProperty(jk,"__esModule",{value:!0});jk.shareReplay=void 0;var hm=nQ(),Am=bq();function vm(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,Am.share)({connector:()=>new hm.ReplaySubject(Y,$,J),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:X})}jk.shareReplay=vm});var ck=q((bk)=>{Object.defineProperty(bk,"__esModule",{value:!0});bk.single=void 0;var gk=D(),Tm=S8(),Rm=Jq(),ym=$q();function mm(Z){return($)=>new gk.Observable((J)=>{let Y=!1,X,z=!1,K=0;$.subscribe((0,gk.operate)({destination:J,next:(Q)=>{if(z=!0,!Z||Z(Q,K++,$))Y&&J.error(new Rm.SequenceError("Too many matching values")),Y=!0,X=Q},complete:()=>{if(Y)J.next(X),J.complete();else J.error(z?new ym.NotFoundError("No matching values"):new Tm.EmptyError)}}))})}bk.single=mm});var pk=q((uk)=>{Object.defineProperty(uk,"__esModule",{value:!0});uk.skip=void 0;var jm=hH();function _m(Z){return(0,jm.filter)(($,J)=>Z<=J)}uk.skip=_m});var rk=q((nk)=>{Object.defineProperty(nk,"__esModule",{value:!0});nk.skipLast=void 0;var Sm=A0(),ik=D();function gm(Z){return Z<=0?Sm.identity:($)=>new ik.Observable((J)=>{let Y=Array(Z),X=0;return $.subscribe((0,ik.operate)({destination:J,next:(z)=>{let K=X++;if(K<Z)Y[K]=z;else{let Q=K%Z,W=Y[Q];Y[Q]=z,J.next(W)}}})),()=>{Y=null}})}nk.skipLast=gm});var ok=q((sk)=>{Object.defineProperty(sk,"__esModule",{value:!0});sk.skipUntil=void 0;var uH=D(),bm=Y0();function dm(Z){return($)=>new uH.Observable((J)=>{let Y=!1,X=(0,uH.operate)({destination:J,next:()=>{X?.unsubscribe(),Y=!0},complete:bm.noop});(0,uH.from)(Z).subscribe(X),$.subscribe((0,uH.operate)({destination:J,next:(z)=>Y&&J.next(z)}))})}sk.skipUntil=dm});var JP=q((ZP)=>{Object.defineProperty(ZP,"__esModule",{value:!0});ZP.skipWhile=void 0;var ek=D();function cm(Z){return($)=>new ek.Observable((J)=>{let Y=!1,X=0;$.subscribe((0,ek.operate)({destination:J,next:(z)=>(Y||(Y=!Z(z,X++)))&&J.next(z)}))})}ZP.skipWhile=cm});var zP=q((YP)=>{Object.defineProperty(YP,"__esModule",{value:!0});YP.startWith=void 0;var dq=D();function um(...Z){return($)=>new dq.Observable((J)=>{(0,dq.subscribeToArray)(Z,(0,dq.operate)({destination:J,complete:()=>$.subscribe(J)}))})}YP.startWith=um});var aK=q((KP)=>{Object.defineProperty(KP,"__esModule",{value:!0});KP.switchMap=void 0;var lH=D();function lm(Z){return($)=>new lH.Observable((J)=>{let Y=null,X=0,z=!1,K=()=>z&&!Y&&J.complete();$.subscribe((0,lH.operate)({destination:J,next:(Q)=>{Y?.unsubscribe();let W=X++;(0,lH.from)(Z(Q,W)).subscribe(Y=(0,lH.operate)({destination:J,complete:()=>{Y=null,K()}}))},complete:()=>{z=!0,K()}}))})}KP.switchMap=lm});var WP=q((QP)=>{Object.defineProperty(QP,"__esModule",{value:!0});QP.switchAll=void 0;var pm=aK(),im=A0();function nm(){return(0,pm.switchMap)(im.identity)}QP.switchAll=nm});var FP=q((NP)=>{Object.defineProperty(NP,"__esModule",{value:!0});NP.switchMapTo=void 0;var am=aK();function rm(Z){return(0,am.switchMap)(()=>Z)}NP.switchMapTo=rm});var DP=q((UP)=>{Object.defineProperty(UP,"__esModule",{value:!0});UP.switchScan=void 0;var sm=aK(),GP=D();function tm(Z,$){return(J)=>new GP.Observable((Y)=>{let X=$;return(0,sm.switchMap)((z,K)=>Z(X,z,K))(J).subscribe((0,GP.operate)({destination:Y,next:(z)=>{X=z,Y.next(z)}})),()=>{X=null}})}UP.switchScan=tm});var kP=q((wP)=>{Object.defineProperty(wP,"__esModule",{value:!0});wP.takeLast=void 0;var om=V8(),IP=D();function em(Z){return Z<=0?()=>om.EMPTY:($)=>new IP.Observable((J)=>{let Y=Array(Z),X=0;$.subscribe((0,IP.operate)({destination:J,next:(z)=>{Y[X++%Z]=z},complete:()=>{let z=Z<=X?X:0,K=Math.min(Z,X);for(let Q=0;Q<K;Q++)J.next(Y[(z+Q)%Z]);J.complete()},finalize:()=>{Y=null}}))})}wP.takeLast=em});var fP=q((PP)=>{Object.defineProperty(PP,"__esModule",{value:!0});PP.takeUntil=void 0;var cq=D(),Zj=Y0();function $j(Z){return($)=>new cq.Observable((J)=>{(0,cq.from)(Z).subscribe((0,cq.operate)({destination:J,next:()=>J.complete(),complete:Zj.noop})),!J.closed&&$.subscribe(J)})}PP.takeUntil=$j});var CP=q((xP)=>{Object.defineProperty(xP,"__esModule",{value:!0});xP.takeWhile=void 0;var VP=D();function Jj(Z,$=!1){return(J)=>new VP.Observable((Y)=>{let X=0,z=(0,VP.operate)({destination:Y,next:(K)=>{if(Z(K,X++))Y.next(K);else{if(z.unsubscribe(),$)Y.next(K);Y.complete()}}});J.subscribe(z)})}xP.takeWhile=Jj});var vP=q((hP)=>{Object.defineProperty(hP,"__esModule",{value:!0});hP.tap=void 0;var uq=D(),Yj=A0();function Xj(Z){let $=(0,uq.isFunction)(Z)?{next:Z}:Z;return $?(J)=>new uq.Observable((Y)=>{$.subscribe?.();let X=!0;J.subscribe((0,uq.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?.()}}))}):Yj.identity}hP.tap=Xj});var lq=q((TP)=>{Object.defineProperty(TP,"__esModule",{value:!0});TP.throttle=void 0;var pH=D();function zj(Z,$){return(J)=>new pH.Observable((Y)=>{let{leading:X=!0,trailing:z=!1}=$??{},K=!1,Q=null,W=null,G=!1,U=()=>{if(W?.unsubscribe(),W=null,z)f(),G&&Y.complete()},O=()=>{W=null,G&&Y.complete()},k=(V)=>W=(0,pH.from)(Z(V)).subscribe((0,pH.operate)({destination:Y,next:U,complete:O})),f=()=>{if(K){K=!1;let V=Q;Q=null,Y.next(V),!G&&k(V)}};J.subscribe((0,pH.operate)({destination:Y,next:(V)=>{K=!0,Q=V,!(W&&!W.closed)&&(X?f():k(V))},complete:()=>{G=!0,!(z&&K&&W&&!W.closed)&&Y.complete()}}))})}TP.throttle=zj});var jP=q((yP)=>{Object.defineProperty(yP,"__esModule",{value:!0});yP.throttleTime=void 0;var Kj=h0(),Hj=lq(),Qj=I6();function qj(Z,$=Kj.asyncScheduler,J){let Y=(0,Qj.timer)(Z,$);return(0,Hj.throttle)(()=>Y,J)}yP.throttleTime=qj});var bP=q((SP)=>{Object.defineProperty(SP,"__esModule",{value:!0});SP.throwIfEmpty=void 0;var Wj=S8(),_P=D();function Nj(Z=Bj){return($)=>new _P.Observable((J)=>{let Y=!1;$.subscribe((0,_P.operate)({destination:J,next:(X)=>{Y=!0,J.next(X)},complete:()=>Y?J.complete():J.error(Z())}))})}SP.throwIfEmpty=Nj;function Bj(){return new Wj.EmptyError}});var lP=q((cP)=>{Object.defineProperty(cP,"__esModule",{value:!0});cP.TimeInterval=cP.timeInterval=void 0;var Fj=h0(),dP=D();function Gj(Z=Fj.asyncScheduler){return($)=>new dP.Observable((J)=>{let Y=Z.now();$.subscribe((0,dP.operate)({destination:J,next:(X)=>{let z=Z.now(),K=z-Y;Y=z,J.next(new pq(X,K))}}))})}cP.timeInterval=Gj;class pq{value;interval;constructor(Z,$){this.value=Z,this.interval=$}}cP.TimeInterval=pq});var nP=q((pP)=>{Object.defineProperty(pP,"__esModule",{value:!0});pP.timeoutWith=void 0;var Lj=h0(),Dj=PH(),Ij=EH();function wj(Z,$,J){let Y,X,z;if(J=J??Lj.asyncScheduler,(0,Dj.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,Ij.timeout)({first:Y,each:X,scheduler:J,with:z})}pP.timeoutWith=wj});var sP=q((aP)=>{Object.defineProperty(aP,"__esModule",{value:!0});aP.timestamp=void 0;var Oj=IH(),kj=BK();function Pj(Z=Oj.dateTimestampProvider){return(0,kj.map)(($)=>({value:$,timestamp:Z.now()}))}aP.timestamp=Pj});var ZE=q((oP)=>{Object.defineProperty(oP,"__esModule",{value:!0});oP.window=void 0;var iH=D(),tP=H0(),Ej=Y0();function fj(Z){return($)=>new iH.Observable((J)=>{let Y=new tP.Subject;J.next(Y.asObservable());let X=(z)=>{Y.error(z),J.error(z)};return $.subscribe((0,iH.operate)({destination:J,next:(z)=>Y?.next(z),complete:()=>{Y.complete(),J.complete()},error:X})),(0,iH.from)(Z).subscribe((0,iH.operate)({destination:J,next:()=>{Y.complete(),J.next(Y=new tP.Subject)},complete:Ej.noop,error:X})),()=>{Y?.unsubscribe(),Y=null}})}oP.window=fj});var zE=q((YE)=>{Object.defineProperty(YE,"__esModule",{value:!0});YE.windowCount=void 0;var $E=D(),JE=H0();function Vj(Z,$=0){let J=$>0?$:Z;return(Y)=>new $E.Observable((X)=>{let z=[new JE.Subject],K=[],Q=0;X.next(z[0].asObservable()),Y.subscribe((0,$E.operate)({destination:X,next:(W)=>{for(let U of z)U.next(W);let G=Q-Z+1;if(G>=0&&G%J===0)z.shift().complete();if(++Q%J===0){let U=new JE.Subject;z.push(U),X.next(U.asObservable())}},error:(W)=>{while(z.length>0)z.shift().error(W);X.error(W)},complete:()=>{while(z.length>0)z.shift().complete();X.complete()},finalize:()=>{K=null,z=null}}))})}YE.windowCount=Vj});var qE=q((HE)=>{Object.defineProperty(HE,"__esModule",{value:!0});HE.windowTime=void 0;var xj=H0(),Mj=h0(),iq=D(),Cj=n$(),hj=D6(),KE=b0();function Aj(Z,...$){let J=(0,hj.popScheduler)($)??Mj.asyncScheduler,Y=$[0]??null,X=$[1]||1/0;return(z)=>new iq.Observable((K)=>{let Q=[],W=!1,G=(f)=>{let{window:V,subs:T}=f;V.complete(),T.unsubscribe(),(0,Cj.arrRemove)(Q,f),W&&U()},U=()=>{if(Q){let f=new iq.Subscription;K.add(f);let V=new xj.Subject,T={window:V,subs:f,seen:0};Q.push(T),K.next(V.asObservable()),(0,KE.executeSchedule)(f,J,()=>G(T),Z)}};if(Y!==null&&Y>=0)(0,KE.executeSchedule)(K,J,U,Y,!0);else W=!0;U();let O=(f)=>Q.slice().forEach(f),k=(f)=>{O(({window:V})=>f(V)),f(K),K.unsubscribe()};return z.subscribe((0,iq.operate)({destination:K,next:(f)=>{O((V)=>{V.window.next(f),X<=++V.seen&&G(V)})},error:(f)=>k((V)=>V.error(f)),complete:()=>k((f)=>f.complete())})),()=>{Q=null}})}HE.windowTime=Aj});var FE=q((NE)=>{Object.defineProperty(NE,"__esModule",{value:!0});NE.windowToggle=void 0;var s$=D(),vj=H0(),WE=Y0(),Tj=n$();function Rj(Z,$){return(J)=>new s$.Observable((Y)=>{let X=[],z=(K)=>{while(0<X.length)X.shift().error(K);Y.error(K)};(0,s$.from)(Z).subscribe((0,s$.operate)({destination:Y,next:(K)=>{let Q=new vj.Subject;X.push(Q);let W=new s$.Subscription,G=()=>{(0,Tj.arrRemove)(X,Q),Q.complete(),W.unsubscribe()},U;try{U=(0,s$.from)($(K))}catch(O){z(O);return}Y.next(Q),W.add(U.subscribe((0,s$.operate)({destination:Y,next:G,error:z,complete:WE.noop})))},complete:WE.noop})),J.subscribe((0,s$.operate)({destination:Y,next:(K)=>{let Q=X.slice();for(let W of Q)W.next(K)},error:z,complete:()=>{while(0<X.length)X.shift().complete();Y.complete()},finalize:()=>{while(0<X.length)X.shift().unsubscribe()}}))})}NE.windowToggle=Rj});var LE=q((GE)=>{Object.defineProperty(GE,"__esModule",{value:!0});GE.windowWhen=void 0;var nH=D(),yj=H0(),mj=Y0();function jj(Z){return($)=>new nH.Observable((J)=>{let Y,X,z=(Q)=>{Y.error(Q),J.error(Q)},K=()=>{X?.unsubscribe(),Y?.complete(),Y=new yj.Subject,J.next(Y.asObservable());let Q;try{Q=(0,nH.from)(Z())}catch(W){z(W);return}Q.subscribe(X=(0,nH.operate)({destination:J,next:K,error:z,complete:mj.noop}))};K(),$.subscribe((0,nH.operate)({destination:J,next:(Q)=>Y.next(Q),error:z,complete:()=>{Y.complete(),J.complete()},finalize:()=>{X?.unsubscribe(),Y=null}}))})}GE.windowWhen=jj});var wE=q((DE)=>{Object.defineProperty(DE,"__esModule",{value:!0});DE.withLatestFrom=void 0;var aH=D(),_j=A0(),Sj=Y0(),gj=D6();function bj(...Z){let $=(0,gj.popResultSelector)(Z);return(J)=>new aH.Observable((Y)=>{let X=Z.length,z=Array(X),K=Z.map(()=>!1),Q=!1;for(let W=0;W<X;W++)(0,aH.from)(Z[W]).subscribe((0,aH.operate)({destination:Y,next:(G)=>{if(z[W]=G,!Q&&!K[W])K[W]=!0,(Q=K.every(_j.identity))&&(K=null)},complete:Sj.noop}));J.subscribe((0,aH.operate)({destination:Y,next:(W)=>{if(Q){let G=[W,...z];Y.next($?$(...G):G)}}}))})}DE.withLatestFrom=bj});var PE=q((OE)=>{Object.defineProperty(OE,"__esModule",{value:!0});OE.zipAll=void 0;var dj=vH(),cj=Mq();function uj(Z){return(0,cj.joinAllInternals)(dj.zip,Z)}OE.zipAll=uj});var VE=q((EE)=>{Object.defineProperty(EE,"__esModule",{value:!0});EE.zipWith=void 0;var lj=D(),pj=vH();function ij(...Z){return($)=>new lj.Observable((J)=>{(0,pj.zip)($,...Z).subscribe(J)})}EE.zipWith=ij});var ME=q((H)=>{var nj=H&&H.__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]}),aj=H&&H.__exportStar||function(Z,$){for(var J in Z)if(J!=="default"&&!Object.prototype.hasOwnProperty.call($,J))nj($,Z,J)};Object.defineProperty(H,"__esModule",{value:!0});H.throwError=H.range=H.race=H.partition=H.onErrorResumeNext=H.of=H.merge=H.interval=H.iif=H.generate=H.fromEventPattern=H.fromEvent=H.forkJoin=H.defer=H.connectable=H.concat=H.combineLatest=H.bindNodeCallback=H.bindCallback=H.TimeoutError=H.SequenceError=H.NotFoundError=H.EmptyError=H.ArgumentOutOfRangeError=H.firstValueFrom=H.lastValueFrom=H.identity=H.noop=H.pipe=H.rx=H.Scheduler=H.VirtualAction=H.VirtualTimeScheduler=H.animationFrameScheduler=H.queueScheduler=H.asyncScheduler=H.asapScheduler=H.AsyncSubject=H.ReplaySubject=H.BehaviorSubject=H.Subject=H.animationFrames=H.isObservable=H.UnsubscriptionError=H.operate=H.Subscriber=H.Subscription=H.config=H.from=H.Observable=void 0;H.max=H.materialize=H.mapTo=H.map=H.last=H.isEmpty=H.ignoreElements=H.groupBy=H.first=H.findIndex=H.find=H.finalize=H.filter=H.expand=H.exhaustMap=H.exhaustAll=H.every=H.endWith=H.elementAt=H.distinctUntilKeyChanged=H.distinctUntilChanged=H.distinct=H.dematerialize=H.delayWhen=H.delay=H.defaultIfEmpty=H.debounceTime=H.debounce=H.count=H.connect=H.concatWith=H.concatMapTo=H.concatMap=H.concatAll=H.combineLatestWith=H.combineLatestAll=H.catchError=H.bufferWhen=H.bufferToggle=H.bufferTime=H.bufferCount=H.buffer=H.auditTime=H.audit=H.NEVER=H.EMPTY=H.scheduled=H.zip=H.using=H.timer=void 0;H.windowWhen=H.windowToggle=H.windowTime=H.windowCount=H.window=H.toArray=H.timestamp=H.timeoutWith=H.timeout=H.timeInterval=H.throwIfEmpty=H.throttleTime=H.throttle=H.tap=H.takeWhile=H.takeUntil=H.takeLast=H.take=H.switchScan=H.switchMapTo=H.switchMap=H.switchAll=H.subscribeOn=H.startWith=H.skipWhile=H.skipUntil=H.skipLast=H.skip=H.single=H.shareReplay=H.share=H.sequenceEqual=H.scan=H.sampleTime=H.sample=H.retryWhen=H.retry=H.repeatWhen=H.repeat=H.reduce=H.raceWith=H.pairwise=H.onErrorResumeNextWith=H.observeOn=H.min=H.mergeWith=H.mergeScan=H.mergeMapTo=H.mergeMap=H.mergeAll=void 0;H.zipWith=H.zipAll=H.withLatestFrom=void 0;var w6=D();Object.defineProperty(H,"Observable",{enumerable:!0,get:function(){return w6.Observable}});Object.defineProperty(H,"from",{enumerable:!0,get:function(){return w6.from}});Object.defineProperty(H,"config",{enumerable:!0,get:function(){return w6.config}});Object.defineProperty(H,"Subscription",{enumerable:!0,get:function(){return w6.Subscription}});Object.defineProperty(H,"Subscriber",{enumerable:!0,get:function(){return w6.Subscriber}});Object.defineProperty(H,"operate",{enumerable:!0,get:function(){return w6.operate}});Object.defineProperty(H,"UnsubscriptionError",{enumerable:!0,get:function(){return w6.UnsubscriptionError}});Object.defineProperty(H,"isObservable",{enumerable:!0,get:function(){return w6.isObservable}});var rj=zG();Object.defineProperty(H,"animationFrames",{enumerable:!0,get:function(){return rj.animationFrames}});var sj=H0();Object.defineProperty(H,"Subject",{enumerable:!0,get:function(){return sj.Subject}});var tj=BG();Object.defineProperty(H,"BehaviorSubject",{enumerable:!0,get:function(){return tj.BehaviorSubject}});var oj=nQ();Object.defineProperty(H,"ReplaySubject",{enumerable:!0,get:function(){return oj.ReplaySubject}});var ej=aQ();Object.defineProperty(H,"AsyncSubject",{enumerable:!0,get:function(){return ej.AsyncSubject}});var Z_=$U();Object.defineProperty(H,"asapScheduler",{enumerable:!0,get:function(){return Z_.asapScheduler}});var $_=h0();Object.defineProperty(H,"asyncScheduler",{enumerable:!0,get:function(){return $_.asyncScheduler}});var J_=GU();Object.defineProperty(H,"queueScheduler",{enumerable:!0,get:function(){return J_.queueScheduler}});var Y_=xU();Object.defineProperty(H,"animationFrameScheduler",{enumerable:!0,get:function(){return Y_.animationFrameScheduler}});var xE=AU();Object.defineProperty(H,"VirtualTimeScheduler",{enumerable:!0,get:function(){return xE.VirtualTimeScheduler}});Object.defineProperty(H,"VirtualAction",{enumerable:!0,get:function(){return xE.VirtualAction}});var X_=tQ();Object.defineProperty(H,"Scheduler",{enumerable:!0,get:function(){return X_.Scheduler}});var z_=oQ();Object.defineProperty(H,"rx",{enumerable:!0,get:function(){return z_.rx}});var K_=eQ();Object.defineProperty(H,"pipe",{enumerable:!0,get:function(){return K_.pipe}});var H_=Y0();Object.defineProperty(H,"noop",{enumerable:!0,get:function(){return H_.noop}});var Q_=A0();Object.defineProperty(H,"identity",{enumerable:!0,get:function(){return Q_.identity}});var q_=lU();Object.defineProperty(H,"lastValueFrom",{enumerable:!0,get:function(){return q_.lastValueFrom}});var W_=nU();Object.defineProperty(H,"firstValueFrom",{enumerable:!0,get:function(){return W_.firstValueFrom}});var N_=Zq();Object.defineProperty(H,"ArgumentOutOfRangeError",{enumerable:!0,get:function(){return N_.ArgumentOutOfRangeError}});var B_=S8();Object.defineProperty(H,"EmptyError",{enumerable:!0,get:function(){return B_.EmptyError}});var F_=$q();Object.defineProperty(H,"NotFoundError",{enumerable:!0,get:function(){return F_.NotFoundError}});var G_=Jq();Object.defineProperty(H,"SequenceError",{enumerable:!0,get:function(){return G_.SequenceError}});var U_=EH();Object.defineProperty(H,"TimeoutError",{enumerable:!0,get:function(){return U_.TimeoutError}});var L_=tL();Object.defineProperty(H,"bindCallback",{enumerable:!0,get:function(){return L_.bindCallback}});var D_=ZD();Object.defineProperty(H,"bindNodeCallback",{enumerable:!0,get:function(){return D_.bindNodeCallback}});var I_=xH();Object.defineProperty(H,"combineLatest",{enumerable:!0,get:function(){return I_.combineLatest}});var w_=Uq();Object.defineProperty(H,"concat",{enumerable:!0,get:function(){return w_.concat}});var O_=hD();Object.defineProperty(H,"connectable",{enumerable:!0,get:function(){return O_.connectable}});var k_=uK();Object.defineProperty(H,"defer",{enumerable:!0,get:function(){return k_.defer}});var P_=TD();Object.defineProperty(H,"forkJoin",{enumerable:!0,get:function(){return P_.forkJoin}});var E_=bD();Object.defineProperty(H,"fromEvent",{enumerable:!0,get:function(){return E_.fromEvent}});var f_=pD();Object.defineProperty(H,"fromEventPattern",{enumerable:!0,get:function(){return f_.fromEventPattern}});var V_=rD();Object.defineProperty(H,"generate",{enumerable:!0,get:function(){return V_.generate}});var x_=oD();Object.defineProperty(H,"iif",{enumerable:!0,get:function(){return x_.iif}});var M_=Dq();Object.defineProperty(H,"interval",{enumerable:!0,get:function(){return M_.interval}});var C_=Q2();Object.defineProperty(H,"merge",{enumerable:!0,get:function(){return C_.merge}});var h_=N2();Object.defineProperty(H,"of",{enumerable:!0,get:function(){return h_.of}});var A_=wq();Object.defineProperty(H,"onErrorResumeNext",{enumerable:!0,get:function(){return A_.onErrorResumeNext}});var v_=M2();Object.defineProperty(H,"partition",{enumerable:!0,get:function(){return v_.partition}});var T_=Oq();Object.defineProperty(H,"race",{enumerable:!0,get:function(){return T_.race}});var R_=y2();Object.defineProperty(H,"range",{enumerable:!0,get:function(){return R_.range}});var y_=_2();Object.defineProperty(H,"throwError",{enumerable:!0,get:function(){return y_.throwError}});var m_=I6();Object.defineProperty(H,"timer",{enumerable:!0,get:function(){return m_.timer}});var j_=d2();Object.defineProperty(H,"using",{enumerable:!0,get:function(){return j_.using}});var __=vH();Object.defineProperty(H,"zip",{enumerable:!0,get:function(){return __.zip}});var S_=dK();Object.defineProperty(H,"scheduled",{enumerable:!0,get:function(){return S_.scheduled}});var g_=V8();Object.defineProperty(H,"EMPTY",{enumerable:!0,get:function(){return g_.EMPTY}});var b_=i2();Object.defineProperty(H,"NEVER",{enumerable:!0,get:function(){return b_.NEVER}});aj(a2(),H);var d_=Pq();Object.defineProperty(H,"audit",{enumerable:!0,get:function(){return d_.audit}});var c_=e2();Object.defineProperty(H,"auditTime",{enumerable:!0,get:function(){return c_.auditTime}});var u_=JI();Object.defineProperty(H,"buffer",{enumerable:!0,get:function(){return u_.buffer}});var l_=KI();Object.defineProperty(H,"bufferCount",{enumerable:!0,get:function(){return l_.bufferCount}});var p_=WI();Object.defineProperty(H,"bufferTime",{enumerable:!0,get:function(){return p_.bufferTime}});var i_=GI();Object.defineProperty(H,"bufferToggle",{enumerable:!0,get:function(){return i_.bufferToggle}});var n_=DI();Object.defineProperty(H,"bufferWhen",{enumerable:!0,get:function(){return n_.bufferWhen}});var a_=kI();Object.defineProperty(H,"catchError",{enumerable:!0,get:function(){return a_.catchError}});var r_=TI();Object.defineProperty(H,"combineLatestAll",{enumerable:!0,get:function(){return r_.combineLatestAll}});var s_=mI();Object.defineProperty(H,"combineLatestWith",{enumerable:!0,get:function(){return s_.combineLatestWith}});var t_=CH();Object.defineProperty(H,"concatAll",{enumerable:!0,get:function(){return t_.concatAll}});var o_=Cq();Object.defineProperty(H,"concatMap",{enumerable:!0,get:function(){return o_.concatMap}});var e_=bI();Object.defineProperty(H,"concatMapTo",{enumerable:!0,get:function(){return e_.concatMapTo}});var ZS=lI();Object.defineProperty(H,"concatWith",{enumerable:!0,get:function(){return ZS.concatWith}});var $S=tI();Object.defineProperty(H,"connect",{enumerable:!0,get:function(){return $S.connect}});var JS=Zw();Object.defineProperty(H,"count",{enumerable:!0,get:function(){return JS.count}});var YS=Yw();Object.defineProperty(H,"debounce",{enumerable:!0,get:function(){return YS.debounce}});var XS=Hw();Object.defineProperty(H,"debounceTime",{enumerable:!0,get:function(){return XS.debounceTime}});var zS=Nw();Object.defineProperty(H,"defaultIfEmpty",{enumerable:!0,get:function(){return zS.defaultIfEmpty}});var KS=fw();Object.defineProperty(H,"delay",{enumerable:!0,get:function(){return KS.delay}});var HS=Tq();Object.defineProperty(H,"delayWhen",{enumerable:!0,get:function(){return HS.delayWhen}});var QS=vw();Object.defineProperty(H,"dematerialize",{enumerable:!0,get:function(){return QS.dematerialize}});var qS=yw();Object.defineProperty(H,"distinct",{enumerable:!0,get:function(){return qS.distinct}});var WS=Rq();Object.defineProperty(H,"distinctUntilChanged",{enumerable:!0,get:function(){return WS.distinctUntilChanged}});var NS=bw();Object.defineProperty(H,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return NS.distinctUntilKeyChanged}});var BS=pw();Object.defineProperty(H,"elementAt",{enumerable:!0,get:function(){return BS.elementAt}});var FS=aw();Object.defineProperty(H,"endWith",{enumerable:!0,get:function(){return FS.endWith}});var GS=ow();Object.defineProperty(H,"every",{enumerable:!0,get:function(){return GS.every}});var US=YO();Object.defineProperty(H,"exhaustAll",{enumerable:!0,get:function(){return US.exhaustAll}});var LS=mq();Object.defineProperty(H,"exhaustMap",{enumerable:!0,get:function(){return LS.exhaustMap}});var DS=KO();Object.defineProperty(H,"expand",{enumerable:!0,get:function(){return DS.expand}});var IS=hH();Object.defineProperty(H,"filter",{enumerable:!0,get:function(){return IS.filter}});var wS=qO();Object.defineProperty(H,"finalize",{enumerable:!0,get:function(){return wS.finalize}});var OS=jq();Object.defineProperty(H,"find",{enumerable:!0,get:function(){return OS.find}});var kS=LO();Object.defineProperty(H,"findIndex",{enumerable:!0,get:function(){return kS.findIndex}});var PS=OO();Object.defineProperty(H,"first",{enumerable:!0,get:function(){return PS.first}});var ES=EO();Object.defineProperty(H,"groupBy",{enumerable:!0,get:function(){return ES.groupBy}});var fS=Aq();Object.defineProperty(H,"ignoreElements",{enumerable:!0,get:function(){return fS.ignoreElements}});var VS=MO();Object.defineProperty(H,"isEmpty",{enumerable:!0,get:function(){return VS.isEmpty}});var xS=vO();Object.defineProperty(H,"last",{enumerable:!0,get:function(){return xS.last}});var MS=BK();Object.defineProperty(H,"map",{enumerable:!0,get:function(){return MS.map}});var CS=yO();Object.defineProperty(H,"mapTo",{enumerable:!0,get:function(){return CS.mapTo}});var hS=_O();Object.defineProperty(H,"materialize",{enumerable:!0,get:function(){return hS.materialize}});var AS=bO();Object.defineProperty(H,"max",{enumerable:!0,get:function(){return AS.max}});var vS=cK();Object.defineProperty(H,"mergeAll",{enumerable:!0,get:function(){return vS.mergeAll}});var TS=a$();Object.defineProperty(H,"mergeMap",{enumerable:!0,get:function(){return TS.mergeMap}});var RS=uO();Object.defineProperty(H,"mergeMapTo",{enumerable:!0,get:function(){return RS.mergeMapTo}});var yS=iO();Object.defineProperty(H,"mergeScan",{enumerable:!0,get:function(){return yS.mergeScan}});var mS=sO();Object.defineProperty(H,"mergeWith",{enumerable:!0,get:function(){return mS.mergeWith}});var jS=eO();Object.defineProperty(H,"min",{enumerable:!0,get:function(){return jS.min}});var _S=fH();Object.defineProperty(H,"observeOn",{enumerable:!0,get:function(){return _S.observeOn}});var SS=Jk();Object.defineProperty(H,"onErrorResumeNextWith",{enumerable:!0,get:function(){return SS.onErrorResumeNextWith}});var gS=Kk();Object.defineProperty(H,"pairwise",{enumerable:!0,get:function(){return gS.pairwise}});var bS=qk();Object.defineProperty(H,"raceWith",{enumerable:!0,get:function(){return bS.raceWith}});var dS=GK();Object.defineProperty(H,"reduce",{enumerable:!0,get:function(){return dS.reduce}});var cS=Bk();Object.defineProperty(H,"repeat",{enumerable:!0,get:function(){return cS.repeat}});var uS=Uk();Object.defineProperty(H,"repeatWhen",{enumerable:!0,get:function(){return uS.repeatWhen}});var lS=Ik();Object.defineProperty(H,"retry",{enumerable:!0,get:function(){return lS.retry}});var pS=kk();Object.defineProperty(H,"retryWhen",{enumerable:!0,get:function(){return pS.retryWhen}});var iS=_q();Object.defineProperty(H,"sample",{enumerable:!0,get:function(){return iS.sample}});var nS=xk();Object.defineProperty(H,"sampleTime",{enumerable:!0,get:function(){return nS.sampleTime}});var aS=hk();Object.defineProperty(H,"scan",{enumerable:!0,get:function(){return aS.scan}});var rS=Rk();Object.defineProperty(H,"sequenceEqual",{enumerable:!0,get:function(){return rS.sequenceEqual}});var sS=bq();Object.defineProperty(H,"share",{enumerable:!0,get:function(){return sS.share}});var tS=Sk();Object.defineProperty(H,"shareReplay",{enumerable:!0,get:function(){return tS.shareReplay}});var oS=ck();Object.defineProperty(H,"single",{enumerable:!0,get:function(){return oS.single}});var eS=pk();Object.defineProperty(H,"skip",{enumerable:!0,get:function(){return eS.skip}});var Zg=rk();Object.defineProperty(H,"skipLast",{enumerable:!0,get:function(){return Zg.skipLast}});var $g=ok();Object.defineProperty(H,"skipUntil",{enumerable:!0,get:function(){return $g.skipUntil}});var Jg=JP();Object.defineProperty(H,"skipWhile",{enumerable:!0,get:function(){return Jg.skipWhile}});var Yg=zP();Object.defineProperty(H,"startWith",{enumerable:!0,get:function(){return Yg.startWith}});var Xg=VH();Object.defineProperty(H,"subscribeOn",{enumerable:!0,get:function(){return Xg.subscribeOn}});var zg=WP();Object.defineProperty(H,"switchAll",{enumerable:!0,get:function(){return zg.switchAll}});var Kg=aK();Object.defineProperty(H,"switchMap",{enumerable:!0,get:function(){return Kg.switchMap}});var Hg=FP();Object.defineProperty(H,"switchMapTo",{enumerable:!0,get:function(){return Hg.switchMapTo}});var Qg=DP();Object.defineProperty(H,"switchScan",{enumerable:!0,get:function(){return Qg.switchScan}});var qg=hq();Object.defineProperty(H,"take",{enumerable:!0,get:function(){return qg.take}});var Wg=kP();Object.defineProperty(H,"takeLast",{enumerable:!0,get:function(){return Wg.takeLast}});var Ng=fP();Object.defineProperty(H,"takeUntil",{enumerable:!0,get:function(){return Ng.takeUntil}});var Bg=CP();Object.defineProperty(H,"takeWhile",{enumerable:!0,get:function(){return Bg.takeWhile}});var Fg=vP();Object.defineProperty(H,"tap",{enumerable:!0,get:function(){return Fg.tap}});var Gg=lq();Object.defineProperty(H,"throttle",{enumerable:!0,get:function(){return Gg.throttle}});var Ug=jP();Object.defineProperty(H,"throttleTime",{enumerable:!0,get:function(){return Ug.throttleTime}});var Lg=bP();Object.defineProperty(H,"throwIfEmpty",{enumerable:!0,get:function(){return Lg.throwIfEmpty}});var Dg=lP();Object.defineProperty(H,"timeInterval",{enumerable:!0,get:function(){return Dg.timeInterval}});var Ig=EH();Object.defineProperty(H,"timeout",{enumerable:!0,get:function(){return Ig.timeout}});var wg=nP();Object.defineProperty(H,"timeoutWith",{enumerable:!0,get:function(){return wg.timeoutWith}});var Og=sP();Object.defineProperty(H,"timestamp",{enumerable:!0,get:function(){return Og.timestamp}});var kg=xq();Object.defineProperty(H,"toArray",{enumerable:!0,get:function(){return kg.toArray}});var Pg=ZE();Object.defineProperty(H,"window",{enumerable:!0,get:function(){return Pg.window}});var Eg=zE();Object.defineProperty(H,"windowCount",{enumerable:!0,get:function(){return Eg.windowCount}});var fg=qE();Object.defineProperty(H,"windowTime",{enumerable:!0,get:function(){return fg.windowTime}});var Vg=FE();Object.defineProperty(H,"windowToggle",{enumerable:!0,get:function(){return Vg.windowToggle}});var xg=LE();Object.defineProperty(H,"windowWhen",{enumerable:!0,get:function(){return xg.windowWhen}});var Mg=wE();Object.defineProperty(H,"withLatestFrom",{enumerable:!0,get:function(){return Mg.withLatestFrom}});var Cg=PE();Object.defineProperty(H,"zipAll",{enumerable:!0,get:function(){return Cg.zipAll}});var hg=VE();Object.defineProperty(H,"zipWith",{enumerable:!0,get:function(){return hg.zipWith}})});async function nq(Z,$,J){let{max:Y=4}=J??{},X=(K)=>h.defer(()=>h.from($(Z[K])).pipe(h.map((Q)=>({idx:K,v:Q})))),z=h.from(Z.map((K,Q)=>Q)).pipe(h.map(X),h.mergeAll(Y),h.reduce((K,Q)=>{return K[Q.idx]=Q.v,K},[]));return h.firstValueFrom(z)}class CE{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 hE=I(()=>{h=fN(ME(),1)});import{randomUUID as Ag}from"crypto";import{closeSync as vg,openSync as Tg,readSync as Rg}from"fs";function mg(Z){if(AE)return;try{if(UK===void 0)UK=Tg(yg,"r");let $=Buffer.alloc(Z),J=0;while(J<Z){let Y=Rg(UK,$,J,Z-J,null);if(Y<=0)return;J+=Y}return $}catch{if(AE=!0,UK!==void 0){try{vg(UK)}catch{}UK=void 0}return}}function jg(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 rH(){let Z=mg(16);if(Z===void 0)return Ag({disableEntropyCache:!0});return jg(Z)}var yg="/dev/urandom",UK,AE=!1;var vE=()=>{};function TE(Z){return Z.replace(/[^a-zA-Z0-9]/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,"")}function aq(Z,$){let J=TE($);return`${Z}/.cursor/projects/${J}`}var LK=I(()=>{hE();vE()});var mE=q((RE)=>{Object.defineProperty(RE,"__esModule",{value:!0});RE._globalThis=void 0;RE._globalThis=typeof globalThis==="object"?globalThis:global});var jE=q((t$)=>{var _g=t$&&t$.__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]}),Sg=t$&&t$.__exportStar||function(Z,$){for(var J in Z)if(J!=="default"&&!Object.prototype.hasOwnProperty.call($,J))_g($,Z,J)};Object.defineProperty(t$,"__esModule",{value:!0});Sg(mE(),t$)});var _E=q((o$)=>{var gg=o$&&o$.__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]}),bg=o$&&o$.__exportStar||function(Z,$){for(var J in Z)if(J!=="default"&&!Object.prototype.hasOwnProperty.call($,J))gg($,Z,J)};Object.defineProperty(o$,"__esModule",{value:!0});bg(jE(),o$)});var rq=q((SE)=>{Object.defineProperty(SE,"__esModule",{value:!0});SE.VERSION=void 0;SE.VERSION="1.9.0"});var lE=q((cE)=>{Object.defineProperty(cE,"__esModule",{value:!0});cE.isCompatible=cE._makeCompatibilityCheck=void 0;var dg=rq(),bE=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function dE(Z){let $=new Set([Z]),J=new Set,Y=Z.match(bE);if(!Y)return()=>!1;let X={major:+Y[1],minor:+Y[2],patch:+Y[3],prerelease:Y[4]};if(X.prerelease!=null)return function(W){return W===Z};function z(Q){return J.add(Q),!1}function K(Q){return $.add(Q),!0}return function(W){if($.has(W))return!0;if(J.has(W))return!1;let G=W.match(bE);if(!G)return z(W);let U={major:+G[1],minor:+G[2],patch:+G[3],prerelease:G[4]};if(U.prerelease!=null)return z(W);if(X.major!==U.major)return z(W);if(X.major===0){if(X.minor===U.minor&&X.patch<=U.patch)return K(W);return z(W)}if(X.minor<=U.minor)return K(W);return z(W)}}cE._makeCompatibilityCheck=dE;cE.isCompatible=dE(dg.VERSION)});var e$=q((pE)=>{Object.defineProperty(pE,"__esModule",{value:!0});pE.unregisterGlobal=pE.getGlobal=pE.registerGlobal=void 0;var ug=_E(),DK=rq(),lg=lE(),pg=DK.VERSION.split(".")[0],rK=Symbol.for(`opentelemetry.js.api.${pg}`),sK=ug._globalThis;function ig(Z,$,J,Y=!1){var X;let z=sK[rK]=(X=sK[rK])!==null&&X!==void 0?X:{version:DK.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!==DK.VERSION){let K=Error(`@opentelemetry/api: Registration of version v${z.version} for ${Z} does not match previously registered API v${DK.VERSION}`);return J.error(K.stack||K.message),!1}return z[Z]=$,J.debug(`@opentelemetry/api: Registered a global for ${Z} v${DK.VERSION}.`),!0}pE.registerGlobal=ig;function ng(Z){var $,J;let Y=($=sK[rK])===null||$===void 0?void 0:$.version;if(!Y||!(0,lg.isCompatible)(Y))return;return(J=sK[rK])===null||J===void 0?void 0:J[Z]}pE.getGlobal=ng;function ag(Z,$){$.debug(`@opentelemetry/api: Unregistering a global for ${Z} v${DK.VERSION}.`);let J=sK[rK];if(J)delete J[Z]}pE.unregisterGlobal=ag});var sE=q((aE)=>{Object.defineProperty(aE,"__esModule",{value:!0});aE.DiagComponentLogger=void 0;var tg=e$();class nE{constructor(Z){this._namespace=Z.namespace||"DiagComponentLogger"}debug(...Z){return tK("debug",this._namespace,Z)}error(...Z){return tK("error",this._namespace,Z)}info(...Z){return tK("info",this._namespace,Z)}warn(...Z){return tK("warn",this._namespace,Z)}verbose(...Z){return tK("verbose",this._namespace,Z)}}aE.DiagComponentLogger=nE;function tK(Z,$,J){let Y=(0,tg.getGlobal)("diag");if(!Y)return;return J.unshift($),Y[Z](...J)}});var sH=q((tE)=>{Object.defineProperty(tE,"__esModule",{value:!0});tE.DiagLogLevel=void 0;var og;(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"})(og=tE.DiagLogLevel||(tE.DiagLogLevel={}))});var Zf=q((oE)=>{Object.defineProperty(oE,"__esModule",{value:!0});oE.createLogLevelDiagLogger=void 0;var b8=sH();function eg(Z,$){if(Z<b8.DiagLogLevel.NONE)Z=b8.DiagLogLevel.NONE;else if(Z>b8.DiagLogLevel.ALL)Z=b8.DiagLogLevel.ALL;$=$||{};function J(Y,X){let z=$[Y];if(typeof z==="function"&&Z>=X)return z.bind($);return function(){}}return{error:J("error",b8.DiagLogLevel.ERROR),warn:J("warn",b8.DiagLogLevel.WARN),info:J("info",b8.DiagLogLevel.INFO),debug:J("debug",b8.DiagLogLevel.DEBUG),verbose:J("verbose",b8.DiagLogLevel.VERBOSE)}}oE.createLogLevelDiagLogger=eg});var Z9=q((Jf)=>{Object.defineProperty(Jf,"__esModule",{value:!0});Jf.DiagAPI=void 0;var Zb=sE(),$b=Zf(),$f=sH(),tH=e$(),Jb="diag";class tq{constructor(){function Z(Y){return function(...X){let z=(0,tH.getGlobal)("diag");if(!z)return;return z[Y](...X)}}let $=this,J=(Y,X={logLevel:$f.DiagLogLevel.INFO})=>{var z,K,Q;if(Y===$){let U=Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return $.error((z=U.stack)!==null&&z!==void 0?z:U.message),!1}if(typeof X==="number")X={logLevel:X};let W=(0,tH.getGlobal)("diag"),G=(0,$b.createLogLevelDiagLogger)((K=X.logLevel)!==null&&K!==void 0?K:$f.DiagLogLevel.INFO,Y);if(W&&!X.suppressOverrideMessage){let U=(Q=Error().stack)!==null&&Q!==void 0?Q:"<failed to generate stacktrace>";W.warn(`Current logger will be overwritten from ${U}`),G.warn(`Current logger will overwrite one already registered from ${U}`)}return(0,tH.registerGlobal)("diag",G,$,!0)};$.setLogger=J,$.disable=()=>{(0,tH.unregisterGlobal)(Jb,$)},$.createComponentLogger=(Y)=>{return new Zb.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 tq;return this._instance}}Jf.DiagAPI=tq});var Kf=q((Xf)=>{Object.defineProperty(Xf,"__esModule",{value:!0});Xf.BaggageImpl=void 0;class IK{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 IK(this._entries);return J._entries.set(Z,$),J}removeEntry(Z){let $=new IK(this._entries);return $._entries.delete(Z),$}removeEntries(...Z){let $=new IK(this._entries);for(let J of Z)$._entries.delete(J);return $}clear(){return new IK}}Xf.BaggageImpl=IK});var qf=q((Hf)=>{Object.defineProperty(Hf,"__esModule",{value:!0});Hf.baggageEntryMetadataSymbol=void 0;Hf.baggageEntryMetadataSymbol=Symbol("BaggageEntryMetadata")});var oq=q((Wf)=>{Object.defineProperty(Wf,"__esModule",{value:!0});Wf.baggageEntryMetadataFromString=Wf.createBaggage=void 0;var Yb=Z9(),Xb=Kf(),zb=qf(),Kb=Yb.DiagAPI.instance();function Hb(Z={}){return new Xb.BaggageImpl(new Map(Object.entries(Z)))}Wf.createBaggage=Hb;function Qb(Z){if(typeof Z!=="string")Kb.error(`Cannot create baggage metadata from unknown type: ${typeof Z}`),Z="";return{__TYPE__:zb.baggageEntryMetadataSymbol,toString(){return Z}}}Wf.baggageEntryMetadataFromString=Qb});var oK=q((Bf)=>{Object.defineProperty(Bf,"__esModule",{value:!0});Bf.ROOT_CONTEXT=Bf.createContextKey=void 0;function Wb(Z){return Symbol.for(Z)}Bf.createContextKey=Wb;class oH{constructor(Z){let $=this;$._currentContext=Z?new Map(Z):new Map,$.getValue=(J)=>$._currentContext.get(J),$.setValue=(J,Y)=>{let X=new oH($._currentContext);return X._currentContext.set(J,Y),X},$.deleteValue=(J)=>{let Y=new oH($._currentContext);return Y._currentContext.delete(J),Y}}}Bf.ROOT_CONTEXT=new oH});var Df=q((Uf)=>{Object.defineProperty(Uf,"__esModule",{value:!0});Uf.DiagConsoleLogger=void 0;var eq=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}];class Gf{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;$<eq.length;$++)this[eq[$].n]=Z(eq[$].c)}}Uf.DiagConsoleLogger=Gf});var QW=q((If)=>{Object.defineProperty(If,"__esModule",{value:!0});If.createNoopMeter=If.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC=If.NOOP_OBSERVABLE_GAUGE_METRIC=If.NOOP_OBSERVABLE_COUNTER_METRIC=If.NOOP_UP_DOWN_COUNTER_METRIC=If.NOOP_HISTOGRAM_METRIC=If.NOOP_GAUGE_METRIC=If.NOOP_COUNTER_METRIC=If.NOOP_METER=If.NoopObservableUpDownCounterMetric=If.NoopObservableGaugeMetric=If.NoopObservableCounterMetric=If.NoopObservableMetric=If.NoopHistogramMetric=If.NoopGaugeMetric=If.NoopUpDownCounterMetric=If.NoopCounterMetric=If.NoopMetric=If.NoopMeter=void 0;class ZW{constructor(){}createGauge(Z,$){return If.NOOP_GAUGE_METRIC}createHistogram(Z,$){return If.NOOP_HISTOGRAM_METRIC}createCounter(Z,$){return If.NOOP_COUNTER_METRIC}createUpDownCounter(Z,$){return If.NOOP_UP_DOWN_COUNTER_METRIC}createObservableGauge(Z,$){return If.NOOP_OBSERVABLE_GAUGE_METRIC}createObservableCounter(Z,$){return If.NOOP_OBSERVABLE_COUNTER_METRIC}createObservableUpDownCounter(Z,$){return If.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC}addBatchObservableCallback(Z,$){}removeBatchObservableCallback(Z){}}If.NoopMeter=ZW;class wK{}If.NoopMetric=wK;class $W extends wK{add(Z,$){}}If.NoopCounterMetric=$W;class JW extends wK{add(Z,$){}}If.NoopUpDownCounterMetric=JW;class YW extends wK{record(Z,$){}}If.NoopGaugeMetric=YW;class XW extends wK{record(Z,$){}}If.NoopHistogramMetric=XW;class eK{addCallback(Z){}removeCallback(Z){}}If.NoopObservableMetric=eK;class zW extends eK{}If.NoopObservableCounterMetric=zW;class KW extends eK{}If.NoopObservableGaugeMetric=KW;class HW extends eK{}If.NoopObservableUpDownCounterMetric=HW;If.NOOP_METER=new ZW;If.NOOP_COUNTER_METRIC=new $W;If.NOOP_GAUGE_METRIC=new YW;If.NOOP_HISTOGRAM_METRIC=new XW;If.NOOP_UP_DOWN_COUNTER_METRIC=new JW;If.NOOP_OBSERVABLE_COUNTER_METRIC=new zW;If.NOOP_OBSERVABLE_GAUGE_METRIC=new KW;If.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC=new HW;function Bb(){return If.NOOP_METER}If.createNoopMeter=Bb});var hf=q((Cf)=>{Object.defineProperty(Cf,"__esModule",{value:!0});Cf.ValueType=void 0;var Eb;(function(Z){Z[Z.INT=0]="INT",Z[Z.DOUBLE=1]="DOUBLE"})(Eb=Cf.ValueType||(Cf.ValueType={}))});var WW=q((Af)=>{Object.defineProperty(Af,"__esModule",{value:!0});Af.defaultTextMapSetter=Af.defaultTextMapGetter=void 0;Af.defaultTextMapGetter={get(Z,$){if(Z==null)return;return Z[$]},keys(Z){if(Z==null)return[];return Object.keys(Z)}};Af.defaultTextMapSetter={set(Z,$,J){if(Z==null)return;Z[$]=J}}});var mf=q((Rf)=>{Object.defineProperty(Rf,"__esModule",{value:!0});Rf.NoopContextManager=void 0;var Vb=oK();class Tf{active(){return Vb.ROOT_CONTEXT}with(Z,$,J,...Y){return $.call(J,...Y)}bind(Z,$){return $}enable(){return this}disable(){return this}}Rf.NoopContextManager=Tf});var ZH=q((_f)=>{Object.defineProperty(_f,"__esModule",{value:!0});_f.ContextAPI=void 0;var xb=mf(),NW=e$(),jf=Z9(),BW="context",Mb=new xb.NoopContextManager;class FW{constructor(){}static getInstance(){if(!this._instance)this._instance=new FW;return this._instance}setGlobalContextManager(Z){return(0,NW.registerGlobal)(BW,Z,jf.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,NW.getGlobal)(BW)||Mb}disable(){this._getContextManager().disable(),(0,NW.unregisterGlobal)(BW,jf.DiagAPI.instance())}}_f.ContextAPI=FW});var UW=q((gf)=>{Object.defineProperty(gf,"__esModule",{value:!0});gf.TraceFlags=void 0;var Cb;(function(Z){Z[Z.NONE=0]="NONE",Z[Z.SAMPLED=1]="SAMPLED"})(Cb=gf.TraceFlags||(gf.TraceFlags={}))});var eH=q((bf)=>{Object.defineProperty(bf,"__esModule",{value:!0});bf.INVALID_SPAN_CONTEXT=bf.INVALID_TRACEID=bf.INVALID_SPANID=void 0;var hb=UW();bf.INVALID_SPANID="0000000000000000";bf.INVALID_TRACEID="00000000000000000000000000000000";bf.INVALID_SPAN_CONTEXT={traceId:bf.INVALID_TRACEID,spanId:bf.INVALID_SPANID,traceFlags:hb.TraceFlags.NONE}});var ZQ=q((pf)=>{Object.defineProperty(pf,"__esModule",{value:!0});pf.NonRecordingSpan=void 0;var Ab=eH();class lf{constructor(Z=Ab.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,$){}}pf.NonRecordingSpan=lf});var IW=q((rf)=>{Object.defineProperty(rf,"__esModule",{value:!0});rf.getSpanContext=rf.setSpanContext=rf.deleteSpan=rf.setSpan=rf.getActiveSpan=rf.getSpan=void 0;var vb=oK(),Tb=ZQ(),Rb=ZH(),LW=(0,vb.createContextKey)("OpenTelemetry Context Key SPAN");function DW(Z){return Z.getValue(LW)||void 0}rf.getSpan=DW;function yb(){return DW(Rb.ContextAPI.getInstance().active())}rf.getActiveSpan=yb;function af(Z,$){return Z.setValue(LW,$)}rf.setSpan=af;function mb(Z){return Z.deleteValue(LW)}rf.deleteSpan=mb;function jb(Z,$){return af(Z,new Tb.NonRecordingSpan($))}rf.setSpanContext=jb;function _b(Z){var $;return($=DW(Z))===null||$===void 0?void 0:$.spanContext()}rf.getSpanContext=_b});var $Q=q((ZV)=>{Object.defineProperty(ZV,"__esModule",{value:!0});ZV.wrapSpanContext=ZV.isSpanContextValid=ZV.isValidSpanId=ZV.isValidTraceId=void 0;var tf=eH(),ub=ZQ(),lb=/^([0-9a-f]{32})$/i,pb=/^[0-9a-f]{16}$/i;function of(Z){return lb.test(Z)&&Z!==tf.INVALID_TRACEID}ZV.isValidTraceId=of;function ef(Z){return pb.test(Z)&&Z!==tf.INVALID_SPANID}ZV.isValidSpanId=ef;function ib(Z){return of(Z.traceId)&&ef(Z.spanId)}ZV.isSpanContextValid=ib;function nb(Z){return new ub.NonRecordingSpan(Z)}ZV.wrapSpanContext=nb});var kW=q((XV)=>{Object.defineProperty(XV,"__esModule",{value:!0});XV.NoopTracer=void 0;var tb=ZH(),JV=IW(),wW=ZQ(),ob=$Q(),OW=tb.ContextAPI.getInstance();class YV{startSpan(Z,$,J=OW.active()){if(Boolean($===null||$===void 0?void 0:$.root))return new wW.NonRecordingSpan;let X=J&&(0,JV.getSpanContext)(J);if(eb(X)&&(0,ob.isSpanContextValid)(X))return new wW.NonRecordingSpan(X);else return new wW.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 Q=z!==null&&z!==void 0?z:OW.active(),W=this.startSpan(Z,X,Q),G=(0,JV.setSpan)(Q,W);return OW.with(G,K,void 0,W)}}XV.NoopTracer=YV;function eb(Z){return typeof Z==="object"&&typeof Z.spanId==="string"&&typeof Z.traceId==="string"&&typeof Z.traceFlags==="number"}});var PW=q((HV)=>{Object.defineProperty(HV,"__esModule",{value:!0});HV.ProxyTracer=void 0;var Zd=kW(),$d=new Zd.NoopTracer;class KV{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 $d;return this._delegate=Z,this._delegate}}HV.ProxyTracer=KV});var BV=q((WV)=>{Object.defineProperty(WV,"__esModule",{value:!0});WV.NoopTracerProvider=void 0;var Jd=kW();class qV{getTracer(Z,$,J){return new Jd.NoopTracer}}WV.NoopTracerProvider=qV});var EW=q((GV)=>{Object.defineProperty(GV,"__esModule",{value:!0});GV.ProxyTracerProvider=void 0;var Yd=PW(),Xd=BV(),zd=new Xd.NoopTracerProvider;class FV{getTracer(Z,$,J){var Y;return(Y=this.getDelegateTracer(Z,$,J))!==null&&Y!==void 0?Y:new Yd.ProxyTracer(this,Z,$,J)}getDelegate(){var Z;return(Z=this._delegate)!==null&&Z!==void 0?Z:zd}setDelegate(Z){this._delegate=Z}getDelegateTracer(Z,$,J){var Y;return(Y=this._delegate)===null||Y===void 0?void 0:Y.getTracer(Z,$,J)}}GV.ProxyTracerProvider=FV});var DV=q((LV)=>{Object.defineProperty(LV,"__esModule",{value:!0});LV.SamplingDecision=void 0;var Kd;(function(Z){Z[Z.NOT_RECORD=0]="NOT_RECORD",Z[Z.RECORD=1]="RECORD",Z[Z.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(Kd=LV.SamplingDecision||(LV.SamplingDecision={}))});var wV=q((IV)=>{Object.defineProperty(IV,"__esModule",{value:!0});IV.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=IV.SpanKind||(IV.SpanKind={}))});var kV=q((OV)=>{Object.defineProperty(OV,"__esModule",{value:!0});OV.SpanStatusCode=void 0;var Qd;(function(Z){Z[Z.UNSET=0]="UNSET",Z[Z.OK=1]="OK",Z[Z.ERROR=2]="ERROR"})(Qd=OV.SpanStatusCode||(OV.SpanStatusCode={}))});var fV=q((PV)=>{Object.defineProperty(PV,"__esModule",{value:!0});PV.validateValue=PV.validateKey=void 0;var MW="[_0-9a-z-*/]",qd=`[a-z]${MW}{0,255}`,Wd=`[a-z0-9]${MW}{0,240}@[a-z]${MW}{0,13}`,Nd=new RegExp(`^(?:${qd}|${Wd})$`),Bd=/^[ -~]{0,255}[!-~]$/,Fd=/,|=/;function Gd(Z){return Nd.test(Z)}PV.validateKey=Gd;function Ud(Z){return Bd.test(Z)&&!Fd.test(Z)}PV.validateValue=Ud});var vV=q((hV)=>{Object.defineProperty(hV,"__esModule",{value:!0});hV.TraceStateImpl=void 0;var VV=fV(),xV=32,Dd=512,MV=",",CV="=";class CW{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($+CV+this.get($)),Z},[]).join(MV)}_parse(Z){if(Z.length>Dd)return;if(this._internalState=Z.split(MV).reverse().reduce(($,J)=>{let Y=J.trim(),X=Y.indexOf(CV);if(X!==-1){let z=Y.slice(0,X),K=Y.slice(X+1,J.length);if((0,VV.validateKey)(z)&&(0,VV.validateValue)(K))$.set(z,K)}return $},new Map),this._internalState.size>xV)this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,xV))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let Z=new CW;return Z._internalState=new Map(this._internalState),Z}}hV.TraceStateImpl=CW});var yV=q((TV)=>{Object.defineProperty(TV,"__esModule",{value:!0});TV.createTraceState=void 0;var Id=vV();function wd(Z){return new Id.TraceStateImpl(Z)}TV.createTraceState=wd});var _V=q((mV)=>{Object.defineProperty(mV,"__esModule",{value:!0});mV.context=void 0;var Od=ZH();mV.context=Od.ContextAPI.getInstance()});var bV=q((SV)=>{Object.defineProperty(SV,"__esModule",{value:!0});SV.diag=void 0;var kd=Z9();SV.diag=kd.DiagAPI.instance()});var uV=q((dV)=>{Object.defineProperty(dV,"__esModule",{value:!0});dV.NOOP_METER_PROVIDER=dV.NoopMeterProvider=void 0;var Pd=QW();class hW{getMeter(Z,$,J){return Pd.NOOP_METER}}dV.NoopMeterProvider=hW;dV.NOOP_METER_PROVIDER=new hW});var nV=q((pV)=>{Object.defineProperty(pV,"__esModule",{value:!0});pV.MetricsAPI=void 0;var fd=uV(),AW=e$(),lV=Z9(),vW="metrics";class TW{constructor(){}static getInstance(){if(!this._instance)this._instance=new TW;return this._instance}setGlobalMeterProvider(Z){return(0,AW.registerGlobal)(vW,Z,lV.DiagAPI.instance())}getMeterProvider(){return(0,AW.getGlobal)(vW)||fd.NOOP_METER_PROVIDER}getMeter(Z,$,J){return this.getMeterProvider().getMeter(Z,$,J)}disable(){(0,AW.unregisterGlobal)(vW,lV.DiagAPI.instance())}}pV.MetricsAPI=TW});var sV=q((aV)=>{Object.defineProperty(aV,"__esModule",{value:!0});aV.metrics=void 0;var Vd=nV();aV.metrics=Vd.MetricsAPI.getInstance()});var Z4=q((oV)=>{Object.defineProperty(oV,"__esModule",{value:!0});oV.NoopTextMapPropagator=void 0;class tV{inject(Z,$){}extract(Z,$){return Z}fields(){return[]}}oV.NoopTextMapPropagator=tV});var X4=q((J4)=>{Object.defineProperty(J4,"__esModule",{value:!0});J4.deleteBaggage=J4.setBaggage=J4.getActiveBaggage=J4.getBaggage=void 0;var xd=ZH(),Md=oK(),RW=(0,Md.createContextKey)("OpenTelemetry Baggage Key");function $4(Z){return Z.getValue(RW)||void 0}J4.getBaggage=$4;function Cd(){return $4(xd.ContextAPI.getInstance().active())}J4.getActiveBaggage=Cd;function hd(Z,$){return Z.setValue(RW,$)}J4.setBaggage=hd;function Ad(Z){return Z.deleteValue(RW)}J4.deleteBaggage=Ad});var q4=q((H4)=>{Object.defineProperty(H4,"__esModule",{value:!0});H4.PropagationAPI=void 0;var yW=e$(),yd=Z4(),z4=WW(),JQ=X4(),md=oq(),K4=Z9(),mW="propagation",jd=new yd.NoopTextMapPropagator;class jW{constructor(){this.createBaggage=md.createBaggage,this.getBaggage=JQ.getBaggage,this.getActiveBaggage=JQ.getActiveBaggage,this.setBaggage=JQ.setBaggage,this.deleteBaggage=JQ.deleteBaggage}static getInstance(){if(!this._instance)this._instance=new jW;return this._instance}setGlobalPropagator(Z){return(0,yW.registerGlobal)(mW,Z,K4.DiagAPI.instance())}inject(Z,$,J=z4.defaultTextMapSetter){return this._getGlobalPropagator().inject(Z,$,J)}extract(Z,$,J=z4.defaultTextMapGetter){return this._getGlobalPropagator().extract(Z,$,J)}fields(){return this._getGlobalPropagator().fields()}disable(){(0,yW.unregisterGlobal)(mW,K4.DiagAPI.instance())}_getGlobalPropagator(){return(0,yW.getGlobal)(mW)||jd}}H4.PropagationAPI=jW});var B4=q((W4)=>{Object.defineProperty(W4,"__esModule",{value:!0});W4.propagation=void 0;var _d=q4();W4.propagation=_d.PropagationAPI.getInstance()});var I4=q((L4)=>{Object.defineProperty(L4,"__esModule",{value:!0});L4.TraceAPI=void 0;var _W=e$(),F4=EW(),G4=$Q(),OK=IW(),U4=Z9(),SW="trace";class gW{constructor(){this._proxyTracerProvider=new F4.ProxyTracerProvider,this.wrapSpanContext=G4.wrapSpanContext,this.isSpanContextValid=G4.isSpanContextValid,this.deleteSpan=OK.deleteSpan,this.getSpan=OK.getSpan,this.getActiveSpan=OK.getActiveSpan,this.getSpanContext=OK.getSpanContext,this.setSpan=OK.setSpan,this.setSpanContext=OK.setSpanContext}static getInstance(){if(!this._instance)this._instance=new gW;return this._instance}setGlobalTracerProvider(Z){let $=(0,_W.registerGlobal)(SW,this._proxyTracerProvider,U4.DiagAPI.instance());if($)this._proxyTracerProvider.setDelegate(Z);return $}getTracerProvider(){return(0,_W.getGlobal)(SW)||this._proxyTracerProvider}getTracer(Z,$){return this.getTracerProvider().getTracer(Z,$)}disable(){(0,_W.unregisterGlobal)(SW,U4.DiagAPI.instance()),this._proxyTracerProvider=new F4.ProxyTracerProvider}}L4.TraceAPI=gW});var k4=q((w4)=>{Object.defineProperty(w4,"__esModule",{value:!0});w4.trace=void 0;var Sd=I4();w4.trace=Sd.TraceAPI.getInstance()});var h4=q((j)=>{Object.defineProperty(j,"__esModule",{value:!0});j.trace=j.propagation=j.metrics=j.diag=j.context=j.INVALID_SPAN_CONTEXT=j.INVALID_TRACEID=j.INVALID_SPANID=j.isValidSpanId=j.isValidTraceId=j.isSpanContextValid=j.createTraceState=j.TraceFlags=j.SpanStatusCode=j.SpanKind=j.SamplingDecision=j.ProxyTracerProvider=j.ProxyTracer=j.defaultTextMapSetter=j.defaultTextMapGetter=j.ValueType=j.createNoopMeter=j.DiagLogLevel=j.DiagConsoleLogger=j.ROOT_CONTEXT=j.createContextKey=j.baggageEntryMetadataFromString=void 0;var gd=oq();Object.defineProperty(j,"baggageEntryMetadataFromString",{enumerable:!0,get:function(){return gd.baggageEntryMetadataFromString}});var P4=oK();Object.defineProperty(j,"createContextKey",{enumerable:!0,get:function(){return P4.createContextKey}});Object.defineProperty(j,"ROOT_CONTEXT",{enumerable:!0,get:function(){return P4.ROOT_CONTEXT}});var bd=Df();Object.defineProperty(j,"DiagConsoleLogger",{enumerable:!0,get:function(){return bd.DiagConsoleLogger}});var dd=sH();Object.defineProperty(j,"DiagLogLevel",{enumerable:!0,get:function(){return dd.DiagLogLevel}});var cd=QW();Object.defineProperty(j,"createNoopMeter",{enumerable:!0,get:function(){return cd.createNoopMeter}});var ud=hf();Object.defineProperty(j,"ValueType",{enumerable:!0,get:function(){return ud.ValueType}});var E4=WW();Object.defineProperty(j,"defaultTextMapGetter",{enumerable:!0,get:function(){return E4.defaultTextMapGetter}});Object.defineProperty(j,"defaultTextMapSetter",{enumerable:!0,get:function(){return E4.defaultTextMapSetter}});var ld=PW();Object.defineProperty(j,"ProxyTracer",{enumerable:!0,get:function(){return ld.ProxyTracer}});var pd=EW();Object.defineProperty(j,"ProxyTracerProvider",{enumerable:!0,get:function(){return pd.ProxyTracerProvider}});var id=DV();Object.defineProperty(j,"SamplingDecision",{enumerable:!0,get:function(){return id.SamplingDecision}});var nd=wV();Object.defineProperty(j,"SpanKind",{enumerable:!0,get:function(){return nd.SpanKind}});var ad=kV();Object.defineProperty(j,"SpanStatusCode",{enumerable:!0,get:function(){return ad.SpanStatusCode}});var rd=UW();Object.defineProperty(j,"TraceFlags",{enumerable:!0,get:function(){return rd.TraceFlags}});var sd=yV();Object.defineProperty(j,"createTraceState",{enumerable:!0,get:function(){return sd.createTraceState}});var bW=$Q();Object.defineProperty(j,"isSpanContextValid",{enumerable:!0,get:function(){return bW.isSpanContextValid}});Object.defineProperty(j,"isValidTraceId",{enumerable:!0,get:function(){return bW.isValidTraceId}});Object.defineProperty(j,"isValidSpanId",{enumerable:!0,get:function(){return bW.isValidSpanId}});var dW=eH();Object.defineProperty(j,"INVALID_SPANID",{enumerable:!0,get:function(){return dW.INVALID_SPANID}});Object.defineProperty(j,"INVALID_TRACEID",{enumerable:!0,get:function(){return dW.INVALID_TRACEID}});Object.defineProperty(j,"INVALID_SPAN_CONTEXT",{enumerable:!0,get:function(){return dW.INVALID_SPAN_CONTEXT}});var f4=_V();Object.defineProperty(j,"context",{enumerable:!0,get:function(){return f4.context}});var V4=bV();Object.defineProperty(j,"diag",{enumerable:!0,get:function(){return V4.diag}});var x4=sV();Object.defineProperty(j,"metrics",{enumerable:!0,get:function(){return x4.metrics}});var M4=B4();Object.defineProperty(j,"propagation",{enumerable:!0,get:function(){return M4.propagation}});var C4=k4();Object.defineProperty(j,"trace",{enumerable:!0,get:function(){return C4.trace}});j.default={context:f4.context,diag:V4.diag,metrics:x4.metrics,propagation:M4.propagation,trace:C4.trace}});function T4(Z){if($H+Z>YQ.length)crypto.getRandomValues(YQ),$H=0;let $="",J=$H+Z;for(let Y=$H;Y<J;Y++)$+=$c[YQ[Y]];return $H=J,$}function v4(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 R4{_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=T4(8),this._parentSpanId=Y,this._kind=$.kind||P0.SpanKind.INTERNAL,this._startTime=v4($.startTime,Date.now()),$.attributes)for(let[X,z]of Object.entries($.attributes))this._attributes[X]=String(z);try{JH?.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{JH?.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=v4(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{JH?.spanEnded(J)}catch{}if(A4)try{A4(J)}catch(Y){console.error("[browser-bridge] Error in collector callback",Y)}}isRecording(){return!this._ended}recordException(){return this}}class y4{startSpan(Z,$,J){let Y=J||P0.context.active(),X=P0.trace.getSpanContext(Y),z,K,Q;if(X?.traceId)z=X.traceId,K=X.spanId,Q=(X.traceFlags&1)===1||JH!==void 0;else Q=JH!==void 0||Zc?.(Z)||Math.random()<ed,z=T4(16);if(!Q)return P0.trace.wrapSpanContext({traceId:z,spanId:"",traceFlags:0});return new R4(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 Q=X(z);if(Q&&typeof Q.then==="function")return Q.then((W)=>{return z.end(),W},(W)=>{throw z.setStatus({code:P0.SpanStatusCode.ERROR,message:W?.message}),z.end(),W});return z.end(),Q}catch(Q){throw z.setStatus({code:P0.SpanStatusCode.ERROR,message:Q?.message}),z.end(),Q}})}}class Jc{tracer=new y4;getTracer(){return this.tracer}}var P0,A4,JH,ed=0.01,Zc,$c,YQ,$H;var m4=I(()=>{P0=fN(h4(),1),$c=Array.from({length:256},(Z,$)=>$.toString(16).padStart(2,"0")),YQ=new Uint8Array(1024),$H=YQ.length});function x8(Z,$){return{symbol:Z,defaultValue:$}}function cW(Z){let $=new AbortController;if(Z.aborted)return $.abort(Z.reason),$;let J=()=>$.abort(Z.reason);return Z.addEventListener("abort",J,{once:!0}),{signal:$.signal,abort(Y){Z.removeEventListener("abort",J),$.abort(Y)}}}class O6{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 O6(this,void 0,J)}withCancel(){let Z=cW(this.signal);return[new O6(this,Z.signal),(J)=>Z.abort(J)]}withTimeout(Z){let $=cW(this.signal),J=new O6(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=cW(this.signal);return J.abort(Error("context deadline exceeded")),new O6(this,J.signal)}return this.withTimeout($)}withTimeoutAndCancel(Z){let[$,J]=this.withCancel();return[$.withTimeout(Z),J]}withName(Z){return new O6(this,void 0,void 0,Z)}withDetached(){return new O6(this,new AbortController().signal)}getParent(){return this.parent}getPath(){let Z=[],$=this;while($){if($.name)Z.unshift($.name);$=$.getParent()}return Z}}function d8(){return new O6}function Qc(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 Boolean(process.stdout?.isTTY)}function qc(Z){let J=(f)=>(V)=>Z?`\x1B[${f.join(";")}m${V}\x1B[0m`:V,Y=J([2]),X=J([90]),z=J([31]),K=J([32]),Q=J([33]),W=J([34]),G=J([35]),U=J([36]),O=J([1]),k=J([1,31]);return{dim:Y,gray:X,red:z,green:K,yellow:Q,blue:W,magenta:G,cyan:U,bold:O,level:(f,V)=>{switch(f){case"debug":return G(V);case"info":return W(V);case"warn":return Q(V);case"error":return k(V);default:return f}}}}function Wc(Z){return{indent:" ".repeat(Z.indent??Yc),maxDepth:Z.maxDepth??Xc,maxEntries:Z.maxEntries??zc,maxArrayLength:Z.maxArrayLength??Kc,maxStringLength:Z.maxStringLength??Hc,includeTimestamp:Z.includeTimestamp??!0,includeContextPath:Z.includeContextPath??!0,inlineSerializer:Z.inlineSerializer}}function Nc(Z){return Z.toISOString().slice(11,23)}function j4(Z){return typeof Z==="object"&&Z!==null&&"getPath"in Z&&typeof Z.getPath==="function"}function uW(Z){if(typeof Z!=="object"||Z===null)return!1;return"message"in Z||"stack"in Z||"name"in Z||"cause"in Z}function Bc(Z){return typeof Z==="object"&&Z!==null&&Z.kind==="summary"&&typeof Z.summary==="string"}function Fc(Z,$){if(Z.length<=$)return Z;return`${Z.slice(0,$)}...`}function Gc(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 k6(Z,$,J,Y,X,z){let K=Gc(Z,$,z,Y);if(Bc(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 Q=Fc(Z,$.maxStringLength);return J.green(JSON.stringify(Q))}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 Q=Z.name?` ${Z.name}`:"";return J.dim(`[Function${Q}]`)}if(Z instanceof Date){let Q=Number.isNaN(Z.getTime())?"Invalid Date":Z.toISOString();return J.green(Q)}if(Z instanceof RegExp)return J.cyan(Z.toString());if(uW(Z))return S4(Z,$,J,Y,X,z);if(Array.isArray(Z))return _4(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 Q=Z,W=Q.constructor?.name??"TypedArray";return J.dim(`${W}(${Q.byteLength})`)}if(Z instanceof Map)return Uc(Z,$,J,Y,X,z);if(Z instanceof Set)return _4(Array.from(Z.values()),$,J,Y,X,z);return Lc(Z,$,J,Y,X,z)}function S4(Z,$,J,Y,X,z){let K=Z;if(X.has(K))return J.dim("[Circular]");X.add(K);let Q=typeof Z.name==="string"?Z.name:"Error",W=typeof Z.message==="string"?Z.message:"",G=W?`${Q}: ${W}`:Q,U=J.red(G);if("cause"in Z&&Z.cause!==void 0){let O=k6(Z.cause,$,J,Y+1,X,z.concat("cause"));U=`${U} ${J.dim("cause=")}${O}`}return X.delete(K),U}function _4(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 U=J.dim("[]");return X.delete(Z),U}let K=Math.min(Z.length,$.maxArrayLength),Q=Z.slice(0,K).map((U,O)=>k6(U,$,J,Y+1,X,z.concat(O)));if(Z.length>K)Q.push(J.dim(`... ${Z.length-K} more`));let W=J.dim(", "),G=`${J.dim("[")}${Q.join(W)}${J.dim("]")}`;return X.delete(Z),G}function Uc(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()),Q=Math.min(K.length,$.maxEntries),W=K.slice(0,Q).map(([O,k])=>{let f=k6(O,$,J,Y+1,X,z.concat("<key>")),V=k6(k,$,J,Y+1,X,z.concat(String(O)));return`${f} ${J.dim("=>")} ${V}`});if(K.length>Q)W.push(J.dim(`... ${K.length-Q} more`));let G=J.dim(", "),U=`${J.dim("Map{")}${W.join(G)}${J.dim("}")}`;return X.delete(Z),U}function Lc(Z,$,J,Y,X,z){if(Y>=$.maxDepth){let O=Z?.constructor?.name??"Object";return J.dim(`[${O}]`)}if(X.has(Z))return J.dim("[Circular]");X.add(Z);let K=Object.entries(Z);if(K.length===0){let O=J.dim("{}");return X.delete(Z),O}let Q=Math.min(K.length,$.maxEntries),W=K.slice(0,Q).map(([O,k])=>{let f=k6(k,$,J,Y+1,X,z.concat(O));return`${J.cyan(O)}: ${f}`});if(K.length>Q)W.push(J.dim(`... ${K.length-Q} more`));let G=J.dim(", "),U=`${J.dim("{")}${W.join(G)}${J.dim("}")}`;return X.delete(Z),U}function Dc(Z={}){let $=Wc(Z),J=qc(Qc(Z.useColors)),Y=Z.console??console;return{log:(X,z)=>{let K=[];if($.includeTimestamp)K.push(J.dim(Nc(z.timestamp)));let Q=z.level.toUpperCase().padEnd(5);K.push(J.level(z.level,Q));let W=z.level==="error"?J.bold(z.message):z.message;if(K.push(W),$.includeContextPath&&j4(z.context)){let k=z.context.getPath();if(k.length>0)K.push(J.dim(`ctx=${k.join("/")}`))}let G=new WeakSet;if(!j4(z.context)&&z.context&&Object.keys(z.context).length>0){let k=k6(z.context,$,J,0,G,["context"]);K.push(`${J.dim("context=")}${k}`)}if(z.metadata&&Object.keys(z.metadata).length>0){let k=k6(z.metadata,$,J,0,G,["metadata"]);K.push(`${J.dim("meta=")}${k}`)}let U=[K.join(" ")];if(z.error!==void 0){let k=uW(z.error)?S4(z.error,$,J,0,G,["error"]):k6(z.error,$,J,0,G,["error"]);if(U[0]=`${U[0]} ${J.dim("error=")}${k}`,uW(z.error)&&typeof z.error.stack==="string"){let f=z.error.stack.split(`
|
|
5
|
+
`).slice(1);for(let V of f){let T=V.trim();if(T)U.push(`${$.indent}${J.dim(T)}`)}}}let O=U.join(`
|
|
6
|
+
`);switch(z.level){case"debug":case"info":Y.log(O);break;case"warn":Y.warn(O);break;case"error":Y.error(O);break;default:{let k=z.level;throw Error(`Unhandled log level: ${k}`)}}}}}function kc(Z){return Z.get(Oc)}function d0(Z){function $(J,Y){let X=new Date;kc(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 Yc=2,Xc=6,zc=50,Kc=40,Hc=200,Ic,wc,Oc;var g4=I(()=>{G8();Ic=Dc(),wc={log:(Z,$)=>Ic.log(Z,$)},Oc=x8(Symbol("loggerBackend"),wc)});var XZ0,zZ0,KZ0,HZ0,QZ0;var b4=I(()=>{XZ0=x8(Symbol("otel.span"),void 0),zZ0=x8(Symbol("otel.root_span"),void 0),KZ0=x8(Symbol("otel.root_start_ms"),void 0),HZ0=x8(Symbol("otel.suppress_child_spans"),!1),QZ0=x8(Symbol("otel.inheritable_span_attributes"),{})});var G8=I(()=>{m4();g4();b4()});function XQ(Z){return Z.get(Ec)}function M8(Z,$){let J={name:Z,type:"counter",description:$?.description,labelNames:$?.labelNames};return{increment:(Y,X,z)=>{XQ(Y).increment(Y,J,X??1,z)},record:(Y,X,z)=>{XQ(Y).record(Y,J,X,z)}}}function g(Z,$){let J={name:Z,type:"histogram",description:$?.description,labelNames:$?.labelNames};return{histogram:(Y,X,z)=>{XQ(Y).histogram(Y,J,X,z)},record:(Y,X,z)=>{XQ(Y).record(Y,J,X,z)}}}var Pc,Ec;var P6=I(()=>{G8();Pc={record:()=>{},increment:()=>{},gauge:()=>{},histogram:()=>{}},Ec=x8(Symbol("metricsBackend"),Pc)});class lW{serialize(Z){return Vc.encode(Z)}deserialize(Z){return fc.decode(Z)}getBlobType(){return{kind:"string"}}}class U8{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++)$+=xc[Z[J]];return $}function c0(Z){let $=Z.trim().toLowerCase();if($.length%2!==0)throw Error("Invalid hex string length");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 fc,Vc,zQ,xc;var kK=I(()=>{fc=new TextDecoder,Vc=new TextEncoder;zQ=new lW;xc=Array.from({length:256},(Z,$)=>$.toString(16).padStart(2,"0"))});function KQ(Z){let $=Z.buffer;if(typeof SharedArrayBuffer<"u"&&$ instanceof SharedArrayBuffer)return new Uint8Array(Z);return new Uint8Array($,Z.byteOffset,Z.byteLength)}async function YH(Z){let $=await crypto.subtle.digest("SHA-256",KQ(Z));return new Uint8Array($)}var fZ0,VZ0;var PK=I(()=>{P6();kK();fZ0=g("agent_kv.in_memory.get_blob.duration_ms",{description:"Duration of InMemoryBlobStore getBlob operations in milliseconds"}),VZ0=g("agent_kv.in_memory.set_blob.duration_ms",{description:"Duration of InMemoryBlobStore setBlob operations in milliseconds"})});function c4(Z,$){Mc.warn(Z,"Subagent state ref blob not found; restoring without its transcript",$),Cc.increment(Z,1,{reader:$.reader,fallback:$.fallback})}async function pW(Z,$,J){let Y={...$.subagentStates??{}},X=Object.entries($.subagentStateRefs??{});if(X.length===0)return Y;let z=await nq(X,async([Q,W])=>{let G=await J.getBlob(Z,W);if(G===void 0)return{kind:"missing",subagentId:Q,blobIdHex:Q0(W)};try{return{kind:"loaded",subagentId:Q,state:G6.fromBinary(G)}}catch(U){return{kind:"failed",error:U}}},{max:d4}),K=z.find((Q)=>Q.kind==="failed");if(K!==void 0&&K.kind==="failed")throw K.error;for(let Q of z)if(Q.kind==="loaded")Y[Q.subagentId]=Q.state;else if(Q.kind==="missing"){let W=Y[Q.subagentId]!==void 0;c4(Z,{reader:"resolve",fallback:W?"inline":"dropped",subagentId:Q.subagentId,blobIdHex:Q.blobIdHex})}return Y}var d4=8,Mc,Cc;var iW=I(()=>{G8();P6();LH();LK();kK();Mc=d0("@anysphere/agent-kv:subagent-states"),Cc=M8("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{z as e}from"zod";function Ac(){let Z=new Uint8Array(u4);return crypto.getRandomValues(Z),Q0(Z)}function l4(Z){return typeof Z==="string"&&Z.length===u4*2&&hc.test(Z)}function vc(){if(nW===null)nW=e.object({agentId:e.string(),latestRootBlobId:e.custom((Z)=>Z instanceof Uint8Array,{message:"Expected Uint8Array"}),name:e.string(),createdAt:e.number(),mode:e.enum(aW),isRunEverything:e.boolean(),approvalMode:e.enum(rW).optional(),lastUsedModel:e.string().optional(),lastDebugServerPort:e.number().int().positive().optional(),currentPlanUri:e.string().optional(),subagentInfo:e.union([e.object({parentAgentId:e.string().min(1),rootParentAgentId:e.string().min(1),toolCallId:e.string().min(1),typeName:e.string().min(1)}),e.undefined()]),blobEncryptionKey:e.string().optional()});return nW}function Rc(Z){return Tc.has(Z)}function mc(Z){return yc.has(Z)}function jc(Z){if(!Z||typeof Z!=="object")return;let $=Z;if(typeof $.parentAgentId!=="string"||$.parentAgentId.length===0||typeof $.rootParentAgentId!=="string"||$.rootParentAgentId.length===0||typeof $.toolCallId!=="string"||$.toolCallId.length===0||typeof $.typeName!=="string"||$.typeName.length===0)return;return{parentAgentId:$.parentAgentId,rootParentAgentId:$.rootParentAgentId,toolCallId:$.toolCallId,typeName:$.typeName}}class HQ{serialize(Z){let $=Q0(Z.latestRootBlobId);return zQ.serialize(JSON.stringify({...Z,latestRootBlobId:$}))}deserialize(Z){let $=JSON.parse(zQ.deserialize(Z)),J=XH($.agentId),Y=typeof $.latestRootBlobId==="string"?c0($.latestRootBlobId):J.latestRootBlobId,X=$.isRunEverything===!0,z=$.mode;if(z==="auto-run")z="default",X=!0;let K=typeof z==="string"&&Rc(z)?z:"default",Q=$.approvalMode,W=typeof Q==="string"&&mc(Q)?Q:void 0,G=jc($.subagentInfo),U=l4($.blobEncryptionKey)?$.blobEncryptionKey:J.blobEncryptionKey;return vc().parse({...J,...$,mode:K,isRunEverything:X,approvalMode:W,latestRootBlobId:Y,subagentInfo:G,blobEncryptionKey:U})}getBlobType(){return{kind:"json"}}}async function i4(Z,$,J){let Y=new B6,X=[],z=$.turns;for(let Q of z){let W=await J.getBlob(Z,Q);if(!W)continue;let G=p4.deserialize(W),U;switch(G.turn.case){case"agentConversationTurn":{let O=G.turn.value,k=await J.getBlob(Z,O.userMessage);if(!k)continue;let f=Sc.deserialize(k),V=[];for(let E0 of O.steps){let X0=await J.getBlob(Z,E0);if(X0){let cx=gc.deserialize(X0);V.push(cx)}}let T=new q6({userMessage:f,steps:V});U=new j8({turn:{case:"agentConversationTurn",value:T}});break}case"shellConversationTurn":{let O=G.turn.value,k=await J.getBlob(Z,O.shellCommand);if(!k)continue;let f=dc.deserialize(k),V=await J.getBlob(Z,O.shellOutput);if(!V)continue;let T=cc.deserialize(V),E0=new W6({shellCommand:f,shellOutput:T});U=new j8({turn:{case:"shellConversationTurn",value:E0}});break}}if(!U)continue;X.push(U)}Y.turns=X;let K=[];for(let Q of $.todos){let W=await J.getBlob(Z,Q);if(W){let G=_c.deserialize(W);K.push(G)}}if(Y.todos=K,$.summary){let Q=await J.getBlob(Z,$.summary);if(Q){let W=bc.deserialize(Q);Y.summary=W}}return Y}class zH{blobStore;metadataStore;conversationStateStructure;serde=new U8(y0);fixedRootBlobId;constructor(Z,$,J={}){this.blobStore=Z;this.metadataStore=$;this.conversationStateStructure=new y0,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=p4.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 i4(Z,$,this.blobStore)}async getFullConversationWithSubagents(Z){let $=this.conversationStateStructure,J=await this.deserializeConversationStateStructure(Z,$),Y={},X=await pW(Z,$,this.blobStore);for(let[z,K]of Object.entries(X))if(K.conversationState){let Q=await this.deserializeConversationStateStructure(Z,K.conversationState);Y[z]={conversationState:Q,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 YH(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 y0,!1;let J=await this.blobStore.getBlob(Z,$);if(!J)return this.conversationStateStructure=new y0,!1;let Y=this.serde.deserialize(J);return this.conversationStateStructure=Y,!0}catch($){return this.conversationStateStructure=new y0,!1}}async dispose(){if(this.blobStore instanceof HK)await this.blobStore.dispose()}}var aW,rW,u4=32,hc,nW=null,XH=(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:Ac()}),Tc,yc,_c,Sc,gc,p4,bc,dc,cc;var n4=I(()=>{LH();NH();LK();PK();kK();iW();aW=["default","plan","debug","search"],rW=["allowlist","unrestricted","auto-review"],hc=/^[0-9a-f]+$/;Tc=new Set(aW);yc=new Set(rW);_c=new U8(W0),Sc=new U8(K6),gc=new U8(m8),p4=new U8(u$),bc=new U8(N6),dc=new U8(H6),cc=new U8(Q6)});var sW=()=>{};var pZ0,iZ0,nZ0,aZ0,rZ0,sZ0,tZ0,oZ0,eZ0,Z$0;var a4=I(()=>{G8();P6();PK();pZ0=d0("@anysphere/agent-kv"),iZ0=g("agent_kv.cached.get_blob.duration_ms",{description:"Duration of CachedBlobStore getBlob operations in milliseconds"}),nZ0=g("agent_kv.cached.set_blob.duration_ms",{description:"Duration of CachedBlobStore setBlob operations in milliseconds"}),aZ0=g("agent_kv.cached.flush.duration_ms",{description:"Duration of CachedBlobStore flush operations in milliseconds"}),rZ0=g("agent_kv.cached.cache_bytes",{description:"Resident bytes held in the CachedBlobStore in-memory cache, sampled on flush"}),sZ0=M8("agent_kv.cached.get_blob.results",{description:"Number of CachedBlobStore getBlob operations by cache result type",labelNames:["cache_type"]}),tZ0=M8("agent_kv.nearby.decrypt_errors",{description:"Number of nearby blob reads that found ciphertext but failed to decrypt it (wrong encryption key)"}),oZ0=M8("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"}),eZ0=g("agent_kv.encrypted.get_blob.duration_ms",{description:"Duration of EncryptedBlobStore getBlob operations in milliseconds"}),Z$0=g("agent_kv.encrypted.set_blob.duration_ms",{description:"Duration of EncryptedBlobStore setBlob operations in milliseconds"})});import{Message as X$0,proto3 as z$0}from"@bufbuild/protobuf";var r4=()=>{};var G$0,U$0,L$0;var s4=I(()=>{G8();P6();r4();PK();G$0=d0("ControlledKvManager"),U$0=g("agent_kv.controlled.get_blob.duration_ms",{description:"Duration of ControlledKvManager getBlob operations in milliseconds"}),L$0=g("agent_kv.controlled.set_blob.duration_ms",{description:"Duration of ControlledKvManager setBlob operations in milliseconds"})});var k$0,P$0,E$0,f$0;var ZN=I(()=>{G8();P6();k$0=d0("@anysphere/agent-kv"),P$0=g("agent_kv.writethrough.get_blob.duration_ms",{description:"Duration of WritethroughBlobStore getBlob operations in milliseconds"}),E$0=g("agent_kv.writethrough.set_blob.duration_ms",{description:"Duration of WritethroughBlobStore setBlob operations in milliseconds"}),f$0=g("agent_kv.writethrough.flush.duration_ms",{description:"Duration of WritethroughBlobStore flush operations in milliseconds"})});var $N=I(()=>{ZN()});var m$0,j$0,_$0,S$0;var t4=I(()=>{G8();P6();sW();PK();kK();$N();m$0=d0("@anysphere/agent-kv:reference"),j$0=M8("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"]}),_$0=g("agent_kv.lazy_reference.deserialize_bytes",{description:"Blob byte size loaded on a large or slow LazyReference deserialize cache miss",labelNames:["blob_type"]}),S$0=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 c$0,u$0,l$0,p$0,i$0,n$0;var o4=I(()=>{G8();P6();c$0=d0("RetryBlobStore"),u$0=M8("agent_kv.retry.retries",{description:"Number of RetryBlobStore retry attempts (one per re-issued operation, not counting the first try)",labelNames:["operation","outcome"]}),l$0=g("agent_kv.retry.get_blob.duration_ms",{description:"Duration of RetryBlobStore getBlob operations in milliseconds"}),p$0=g("agent_kv.retry.set_blob.duration_ms",{description:"Duration of RetryBlobStore setBlob operations in milliseconds"}),i$0=g("agent_kv.retry.set_blob_locally_only.duration_ms",{description:"Duration of RetryBlobStore setBlobLocallyOnly operations in milliseconds"}),n$0=g("agent_kv.retry.flush.duration_ms",{description:"Duration of RetryBlobStore flush operations in milliseconds"})});var KH=I(()=>{n4();sW();PK();a4();s4();t4();o4();kK();iW();$N();ZN()});class Kx{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()?.({value:void 0,done:!0})};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(),{value:void 0,done:!0};return new Promise((K)=>{$.waiters.push(K)})},return:async()=>{return X(),{value:void 0,done:!0}}})}}}function Hx(){return new Kx}import{chmodSync as Gu,existsSync as Uu,mkdirSync as Lu}from"fs";function xK(Z){if(!Uu(Z))Lu(Z,{recursive:!0,mode:Qx});try{Gu(Z,Qx)}catch{}}var Qx=448;var FN=()=>{};var GN;var qx=I(()=>{GN=class GN extends Error{constructor(Z,$){super(Z,$);this.name="NoSqliteDriverError"}}});var Nx={};f6(Nx,{openBunSqliteDriver:()=>Iu});import{Database as Du}from"bun:sqlite";class Wx{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:Number(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 Iu(Z){return new Wx(new Du(Z,{create:!0}))}var Bx=()=>{};class UN{constructor(){throw Error("node:sqlite is not available in this runtime (the @cursor/sdk/bundled entry targets Bun, which uses bun:sqlite)")}}var Gx={};f6(Gx,{openNodeSqliteDriver:()=>wu});class Fx{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 wu(Z){return new Fx(new UN(Z))}var Ux=()=>{};function Ou(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 ku(){return typeof globalThis.Bun<"u"}async function MK(Z){if(ku())return(await Promise.resolve().then(() => (Bx(),Nx))).openBunSqliteDriver(Z);let $;try{$=await Promise.resolve().then(() => (Ux(),Gx))}catch(J){if(Ou(J))throw new GN("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:J});throw J}return $.openNodeSqliteDriver(Z)}var FQ=I(()=>{qx()});var Lx={};f6(Lx,{SQLiteBlobStoreWithMetadata:()=>DN});import{existsSync as Pu,mkdirSync as Eu,rmSync as fu}from"fs";import{basename as Vu,dirname as LN}from"path";var GQ,DN;var Dx=I(()=>{KH();LK();FQ();GQ=new HQ;DN=class DN extends HK{dbPath;driverPromise;driver;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 DN(Z);return await $.getDriver(),$}constructor(Z){super();this.dbPath=Z;let $=Vu(LN(this.dbPath));this.metadata=XH($)}async getDriver(){if(this.driverPromise)return this.driverPromise;let $=(async()=>{let J=LN(this.dbPath);if(!Pu(J))Eu(J,{recursive:!0});let Y=await MK(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});return this.driverPromise=$,$}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=c0($.value);this.metadata=GQ.deserialize(Y);return}let J=GQ.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($),X=(await this.getDriver()).get("SELECT data FROM blobs WHERE id = ?",[J]);return X?.data==null?void 0:new Uint8Array(X.data)}async listBlobIds(){if(this.isDisposing)return[];return(await this.getDriver()).all("SELECT id FROM blobs ORDER BY id ASC").map((J)=>J.id)}async deleteBlob(Z){if(this.isDisposing)return;(await this.getDriver()).run("DELETE FROM blobs WHERE id = ?",[Z])}async setBlob(Z,$,J){if(this.isDisposing)return;let Y=Q0($),X=Buffer.from(J);(await this.getDriver()).run("INSERT OR REPLACE INTO blobs (id, data) VALUES (?, ?)",[Y,X])}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"){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 $=GQ.serialize(this.metadata);Z.run("INSERT OR REPLACE INTO meta (key, value) VALUES (?, ?)",["0",Q0($)])}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=c0($.value);J=GQ.deserialize(z).latestRootBlobId.length}let Y=Z.get("SELECT COUNT(*) AS count FROM blobs"),X=Number(Y?.count??0);if(Z.close(),J===0&&X===0){this.driverPromise=void 0,this.driver=void 0;let z=LN(this.dbPath);try{fu(z,{recursive:!0,force:!0})}catch{}}}}});var Ox={};f6(Ox,{LocalAgentCheckpointStore:()=>wx});import{createHash as xu}from"crypto";import{rm as Mu}from"fs/promises";import{join as UQ}from"path";class wx{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(d8()),$.getConversationStateStructure()}async saveCheckpoint(Z,$){let{agentStore:J}=await this.getOrCreate(Z);return await J.handleCheckpoint(d8(),$),{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(d8()),$.getFullConversation(d8())}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=UQ(this.options.stateRoot,"agents",Ix(Z));await Mu(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 $=UQ(this.options.stateRoot,"agents"),J=UQ($,Ix(Z));xK(this.options.stateRoot),xK($),xK(J);let{SQLiteBlobStoreWithMetadata:Y}=await Promise.resolve().then(() => (Dx(),Lx)),X=await Y.initAndLoad(UQ(J,"store.db"));try{X.set("agentId",Z);let z=new zH(X,X);return await z.resetFromDb(d8()),{sqliteStore:X,agentStore:z}}catch(z){throw await X.dispose().catch(()=>{return}),z}}}function Ix(Z){return`agent-${xu("sha256").update(Z).digest("hex")}`}var kx=I(()=>{KH();G8();FN()});function Px(){return`agent-${rH()}`}function IN(){return`run-${rH()}`}var Ex=I(()=>{LK()});function HH(Z){return Cu.has(Z)}var Cu;var fx=I(()=>{Cu=new Set(["FINISHED","ERROR","CANCELLED","EXPIRED"])});var Cx={};f6(Cx,{SqliteAgentRunStore:()=>kN});import{dirname as hu,join as Au}from"path";function xx(Z){if(Z.length===0)return[];let $=[];for(let J=0;J<Z.length;J+=Vx)$.push(Z.slice(J,J+Vx));return $}function $9(){return new Date().toISOString()}function LQ(Z){return Z?new Date(Z):null}function hK(Z,$){if(!Z)return $;return JSON.parse(Z)}function CK(Z){return JSON.stringify(Z)}function E6(Z){return Z?CK(Z):null}function vu(Z,$){if(Z===null)return null;if($===null)return{id:Z};return{id:Z,params:hK($,[])}}function wN(Z){let $=Z?.params;return $&&$.length>0?CK($):null}function ON(Z){return{agentId:Z.agent_id,workspaceRef:Z.workspace_ref,status:Z.status,activeRunId:Z.active_run_id,latestCheckpointRef:hK(Z.latest_checkpoint_ref_json,null),name:Z.name,createdAt:new Date(Z.created_at),updatedAt:new Date(Z.updated_at),metadata:hK(Z.metadata_json,{})}}function DQ(Z){return{runId:Z.run_id,requestId:Z.request_id,agentId:Z.agent_id,turnNumber:Z.turn_number,status:Z.status,model:vu(Z.model,Z.model_params_json),startCheckpointRef:hK(Z.start_checkpoint_ref_json,null),latestCheckpointRef:hK(Z.latest_checkpoint_ref_json,null),errorCode:Z.error_code,usageRef:Z.usage_ref,usage:hK(Z.usage_json??null,null),result:Z.result,createdAt:new Date(Z.created_at),updatedAt:new Date(Z.updated_at),startedAt:LQ(Z.started_at),finishedAt:LQ(Z.finished_at),cancelledAt:LQ(Z.cancelled_at),expiredAt:LQ(Z.expired_at)}}function Mx(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 kN{options;driverPromise;disposed=!1;static async open(Z){let $=new kN(Z);return await $.getDriver(),$}constructor(Z){this.options=Z}get stateRoot(){return this.options.stateRoot}get dbPath(){return Au(this.options.stateRoot,"index.db")}async createAgent(Z){let $=await this.getDriver();return u0($,()=>{let J=Z.agentId??Px(),Y=IN(),X=$9();$.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,CK(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,wN(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 u0(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 W=this.getRunFromDb(J,Z,Y.activeRunId);if(W&&!HH(W.status))throw Error(`Agent ${Z} already has active run`)}let X=J.get("SELECT COUNT(*) as count FROM runs WHERE agent_id = ?",[Z]),z=IN(),K=$9();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,wN($.model),E6(Y.latestCheckpointRef),Y.latestCheckpointRef?E6(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",CK({...Y.metadata,...$.metadata}),K,Z]);let Q=this.getRunFromDb(J,Z,z);if(!Q)throw Error(`Failed to create run ${z}`);return Q})}async listAgents(Z){let $=await this.getDriver(),{limit:J,offset:Y}=Mx(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(ON),...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}=Mx($),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),Q=z.length>Y?String(X+Y):void 0;return{items:K.map(DQ),...Q?{nextCursor:Q}:{}}}async getRun(Z,$){let J=await this.getDriver();return this.getRunFromDb(J,Z,$)}async markRunStarting(Z,$,J){let Y=await this.getDriver();u0(Y,()=>{let X=this.requireRunFromDb(Y,Z,$);if(HH(X.status))throw Error(`Cannot start terminal run ${$}`);let z=$9();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();u0(Y,()=>{this.requireRunFromDb(Y,Z,$);let X=$9();Y.run(`UPDATE runs
|
|
35
35
|
SET latest_checkpoint_ref_json = ?,
|
|
36
36
|
updated_at = ?
|
|
37
|
-
WHERE run_id = ? AND agent_id = ?`,[
|
|
37
|
+
WHERE run_id = ? AND agent_id = ?`,[E6(J),X,$,Z]),Y.run(`UPDATE agents
|
|
38
38
|
SET latest_checkpoint_ref_json = ?,
|
|
39
39
|
updated_at = ?
|
|
40
|
-
WHERE agent_id = ?`,[
|
|
40
|
+
WHERE agent_id = ?`,[E6(J),X,Z])})}async markRunTerminal(Z,$,J){let Y=await this.getDriver();u0(Y,()=>{let X=this.requireRunFromDb(Y,Z,$);if(HH(X.status)){if(J.usage!==void 0&&(X.usage===null||X.usage===void 0)){let W=J.usage===null?null:JSON.stringify(J.usage);Y.run("UPDATE runs SET usage_json = ? WHERE run_id = ? AND agent_id = ?",[W,$,Z])}return}let z=$9(),K=J.usage!==void 0?J.usage:X.usage??null,Q=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();u0($,()=>{if(!this.getAgentFromDb($,Z))throw Error(`Agent ${Z} not found`);let Y=$9();$.run("UPDATE agents SET status = 'ARCHIVED', updated_at = ? WHERE agent_id = ?",[Y,Z])})}async unarchiveAgent(Z){let $=await this.getDriver();u0($,()=>{if(!this.getAgentFromDb($,Z))throw Error(`Agent ${Z} not found`);let Y=$9();$.run("UPDATE agents SET status = 'IDLE', updated_at = ? WHERE agent_id = ?",[Y,Z])})}async deleteAgent(Z){let $=await this.getDriver();u0($,()=>{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&&!HH(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();u0($,()=>{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,
|
|
66
|
+
WHERE agent_id = ?`,[Z.workspaceRef,Z.status,Z.activeRunId,E6(Z.latestCheckpointRef),Z.name,CK(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,
|
|
70
|
+
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)`,[Z.agentId,Z.workspaceRef,Z.status,Z.activeRunId,E6(Z.latestCheckpointRef),Z.name,CK(Z.metadata),Y,X])})}async upsertRunRecord(Z){let $=await this.getDriver();u0($,()=>{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,Q=Z.cancelledAt?.toISOString()??null,W=Z.expiredAt?.toISOString()??null,G=Z.usage===null||Z.usage===void 0?null:JSON.stringify(Z.usage),U=[Z.requestId??null,Z.turnNumber,Z.status,Z.model?.id??null,wN(Z.model),E6(Z.startCheckpointRef),E6(Z.latestCheckpointRef),Z.errorCode,Z.usageRef,G,Z.result,X,z,K,Q,W];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 = ?`,[...U,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,...U.slice(0,1),Z.agentId,...U.slice(1,11),Y,...U.slice(11)])})}async listAllAgentRecords(){return(await this.getDriver()).all("SELECT * FROM agents",[]).map(ON)}async listAllRunRecords(Z){let $=await this.getDriver();if(Z&&Z.length>0){let Y=[];for(let X of xx(Z)){let z=X.map(()=>"?").join(", "),K=$.all(`SELECT * FROM runs WHERE agent_id IN (${z})`,[...X]);Y.push(...K.map(DQ))}return Y}return $.all("SELECT * FROM runs",[]).map(DQ)}async deleteRunRecordsForAgents(Z){if(Z.length===0)return;let $=await this.getDriver();u0($,()=>{for(let J of xx(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();u0($,()=>{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=hu(this.dbPath);xK(J);let Y=await MK(this.dbPath);try{Tu(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?ON(J):null}getRunFromDb(Z,$,J){let Y=Z.get("SELECT * FROM runs WHERE run_id = ? AND agent_id = ?",[J,$]);return Y?DQ(Y):null}requireRunFromDb(Z,$,J){let Y=this.getRunFromDb(Z,$,J);if(!Y)throw Error(`Run ${J} not found for agent ${$}`);return Y}}function u0(Z,$){Z.exec("BEGIN IMMEDIATE");try{let J=$();return Z.exec("COMMIT"),J}catch(J){try{Z.exec("ROLLBACK")}catch{}throw J}}function Tu(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 Vx=100;var hx=I(()=>{Ex();FN();FQ();fx()});function Ax(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 Tx={};f6(Tx,{SqliteRunEventStore:()=>PN});import{existsSync as Ru,mkdirSync as yu}from"fs";import{dirname as mu,join as ju}from"path";function _u(){return new Date().toISOString()}function vx(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 PN{options;driverPromise;disposed=!1;static async open(Z){let $=new PN(Z);return await $.getDriver(),$}constructor(Z){this.options=Z}get dbPath(){return ju(this.options.stateRoot,"index.db")}async appendRunEvent(Z){let $=await this.getDriver();$.exec("BEGIN IMMEDIATE");try{let J=Z.idempotencyKey??null;if(J){let Q=$.get(`SELECT *
|
|
130
130
|
FROM run_events
|
|
131
131
|
WHERE run_id = ? AND idempotency_key = ?
|
|
132
|
-
LIMIT 1`,[Z.runId,J]);if(Q)return $.exec("COMMIT"),
|
|
132
|
+
LIMIT 1`,[Z.runId,J]);if(Q)return $.exec("COMMIT"),vx(Q)}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=_u();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=Ax(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(vx);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=mu(this.dbPath);if(!Ru(J))yu(J,{recursive:!0});let Y=await MK(this.dbPath);try{Su(Y)}catch(X){throw Y.close(),X}return Y})().catch((J)=>{if(this.driverPromise===$)this.driverPromise=void 0;throw J});return this.driverPromise=$,$}}function Su(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 ix=I(()=>{MQ()});var tx={};P8(tx,{createDefaultLocalRunEventStore:()=>rx,createDefaultLocalRunEventNotifier:()=>sx,createDefaultLocalAgentStores:()=>iu,createDefaultLocalAgentRunStore:()=>ax,createDefaultLocalAgentCheckpointStore:()=>nx});async function nx(Z){let{LocalAgentCheckpointStore:$}=await Promise.resolve().then(() => (yx(),Rx));return new $({stateRoot:Z.stateRoot})}async function ax(Z){let{SqliteAgentRunStore:$}=await Promise.resolve().then(() => (cx(),dx));return $.open(Z)}async function rx(Z){let{SqliteRunEventStore:$}=await Promise.resolve().then(() => (ix(),px));return $.open(Z)}function sx(){return Ox()}async function iu(Z){return{store:await ax(Z),checkpointStore:await nx(Z),eventStore:await rx(Z),eventNotifier:sx()}}var ox=()=>{};UH();w6();function mK(Z){return{agentId:Z.agentId,cwd:Z.workspaceRef,status:$u(Z.status),activeRunId:Z.activeRunId??null,latestCheckpoint:Z.latestCheckpointRef?LN(Z.latestCheckpointRef):null,name:Z.name??null,createdAt:Z.createdAt.getTime(),updatedAt:Z.updatedAt.getTime(),sdkMetadata:Z.metadata}}function jK(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:Yu(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?LN(Z.startCheckpointRef):null,latestCheckpointRef:Z.latestCheckpointRef?LN(Z.latestCheckpointRef):null}}function fQ(Z){return{agentId:Z.agentId,workspaceRef:Z.cwd,status:Ju(Z.status),activeRunId:Z.activeRunId??null,latestCheckpointRef:Z.latestCheckpoint?wN(Z.latestCheckpoint):null,name:Z.name??null,createdAt:new Date(Z.createdAt),updatedAt:new Date(Z.updatedAt),metadata:Z.sdkMetadata??{}}}function EQ(Z){let $=Xu(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?wN(Z.startCheckpointRef):null,latestCheckpointRef:Z.latestCheckpointRef?wN(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 LN(Z){return{schemaVersion:1,rootBlobId:Z.blobId}}function wN(Z){return{blobId:Z.rootBlobId,storeKind:"local-agent-store"}}function $u(Z){switch(Z){case"IDLE":return"idle";case"RUNNING":return"running";case"ERROR":return"error";case"ARCHIVED":return"archived"}}function Ju(Z){switch(Z){case"idle":return"IDLE";case"running":return"RUNNING";case"error":return"ERROR";case"archived":return"ARCHIVED"}}function Yu(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"}}function Xu(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"}}UH();AH();class ON{eventsByRunId=new Map;idempotencyKeys=new Map;async append(Z){let $=Z.idempotencyKey??null;if($){let K=this.idempotencyKeys.get(DN(Z.runId,$));if(K)return IN(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(DN(Z.runId,$),z);return IN(z)}async list(Z){let $=wu(Z.afterOffset),J=Z.limit??100,Y=(this.eventsByRunId.get(Z.runId)??[]).filter((z)=>z.seq>$),X=Y.slice(0,J).map((z)=>IN(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(DN(J,X.idempotencyKey));this.eventsByRunId.delete(J)}}}function Bx(Z){return{get:async({agentId:$,blobId:J})=>{let Y=Z.get($)?.get(J);return Y?UN(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,UN(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,UN(Y))},delete:async($)=>{for(let{agentId:J,blobId:Y}of qu(Z,$.filter)){let X=Z.get(J);if(X?.delete(Y),X&&X.size===0)Z.delete(J)}},list:async($)=>{let J=$?.filter,Y=Qu(Z,J);return fN(Y,J)}}}function kN(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 Fx(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)=>kN(X,J));if(Y.length===0)throw Error("No agents matched delete filter");for(let X of Y)$.delete(X.agentId)},list:async(J)=>EN([...$.values()],J?.filter)}}function zu(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 Ku{agentMap=new Map;runMap=new Map;checkpointBytes=new Map;runEvents=new ON;checkpoints=Bx(this.checkpointBytes);agents=Fx({agentRows:zu(this.agentMap)});runs={get:async({agentId:Z,runId:$})=>{let J=this.runMap.get(PQ(Z,$));return J?structuredClone(J):null},create:async({run:Z})=>{let $=PQ(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 $=PQ(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 Gx(this.runMap.values(),Z.filter))this.runMap.delete(PQ($.agentId,$.runId))},list:async(Z)=>{let $=Z?.filter,J=[...this.runMap.values()].filter((Y)=>_K(Y,$));return xQ(J,$)}}}class Hu{bundles=new Map;checkpointBytes=new Map;runEvents=new ON;checkpoints=Bx(this.checkpointBytes);agents=Fx({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 Gx([...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)=>_K(Y,$));return xQ(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 VQ(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 Qu(Z,$){let J=[];for(let[Y,X]of Z)for(let z of X.keys())if(VQ({agentId:Y,blobId:z},$))J.push(z);return J}function qu(Z,$){let J=[];for(let[Y,X]of Z)for(let z of X.keys())if(VQ({agentId:Y,blobId:z},$))J.push({agentId:Y,blobId:z});return J}function fN(Z,$){let J=[...Z].sort((Q,W)=>Q.localeCompare(W)),Y=$?.limit??50,X=J;if($?.cursor)X=J.filter((Q)=>Q>$.cursor);let z=X.slice(0,Y),K=z.at(-1);return{items:z,...X.length>Y&&K?{nextCursor:K}:{}}}function _K(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 Gx(Z,$){return[...Z].filter((J)=>_K(J,$))}function EN(Z,$){let Y=[...$?.cwd===void 0?Z:Z.filter((W)=>W.cwd===$.cwd)].sort(Wu),X=$?.limit??50,z=Y;if($?.cursor){let W=Gu($.cursor);z=Y.filter((G)=>Bu(G,W))}let K=z.slice(0,X),Q=K.at(-1);return{items:K.map((W)=>structuredClone(W)),...z.length>X&&Q?{nextCursor:Lx({updatedAt:Q.updatedAt,agentId:Q.agentId})}:{}}}function xQ(Z,$){let J=[...Z].sort(Nu),Y=$?.limit??50,X=J;if($?.cursor){let Q=Lu($.cursor);X=J.filter((W)=>Fu(W,Q))}let z=X.slice(0,Y),K=z.at(-1);return{items:z.map((Q)=>structuredClone(Q)),...X.length>Y&&K?{nextCursor:Lx({turnNumber:K.turnNumber,runId:K.runId})}:{}}}function Wu(Z,$){if($.updatedAt!==Z.updatedAt)return $.updatedAt-Z.updatedAt;return $.agentId.localeCompare(Z.agentId)}function Nu(Z,$){if(Z.turnNumber!==$.turnNumber)return Z.turnNumber-$.turnNumber;return Z.runId.localeCompare($.runId)}function Bu(Z,$){if(Z.updatedAt<$.updatedAt)return!0;if(Z.updatedAt>$.updatedAt)return!1;return Z.agentId<$.agentId}function Fu(Z,$){if(Z.turnNumber>$.turnNumber)return!0;if(Z.turnNumber<$.turnNumber)return!1;return Z.runId>$.runId}function Lx(Z){return Buffer.from(JSON.stringify(Z),"utf8").toString("base64url")}function Gu(Z){let $=wx(Z);if(typeof $.updatedAt!=="number"||typeof $.agentId!=="string")throw Error("Invalid agent list cursor");return{updatedAt:$.updatedAt,agentId:$.agentId}}function Lu(Z){let $=wx(Z);if(typeof $.turnNumber!=="number"||typeof $.runId!=="string")throw Error("Invalid run list cursor");return{turnNumber:$.turnNumber,runId:$.runId}}function wx(Z){try{let $=JSON.parse(Buffer.from(Z,"base64url").toString("utf8"));if(typeof $==="object"&&$!==null&&!Array.isArray($))return $}catch{}throw Error("Invalid list cursor")}function PQ(Z,$){return`${Z}:${$}`}function wu(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 DN(Z,$){return`${Z}:${$}`}function IN(Z){return{...Z,payload:Z.payload!==null&&typeof Z.payload==="object"?structuredClone(Z.payload):Z.payload}}function UN(Z){let $=new Uint8Array(Z.length);return $.set(Z),$}hK();import{createHash as Dx}from"crypto";import{existsSync as PN,renameSync as Du}from"fs";import{homedir as Iu}from"os";import{join as VN}from"path";function Ix(Z){let $=VN(QW(Iu(),Z),"sdk-agent-store"),J=VN($,Dx("sha256").update(Z).digest("hex"));if(PN(J))return J;let Y=Uu(Z);if(Y===void 0)return J;let X=VN($,Y);if(!PN(X))return J;try{return Du(X,J),J}catch{return PN(X)?X:J}}function Uu(Z){try{return Dx("md5").update(Z).digest("hex")}catch($){if(Ou($))return;throw $}}function Ou(Z){if(!(Z instanceof Error))return!1;return Z.code==="ERR_OSSL_EVP_UNSUPPORTED"||Z.message==="Digest method not supported"}function nu(Z){let $=new Uint8Array(Z.length);return $.set(Z),$}function ex(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 au(Z,$,J){if(typeof Z.upsertAgentRecord!=="function")throw Error("SqliteLocalAgentStore requires SqliteAgentRunStore from local runtime");if(typeof J.appendRunEvent!=="function")throw Error("SqliteLocalAgentStore requires SqliteRunEventStore from local runtime");if(typeof $.listCheckpointBlobIds!=="function")throw Error("SqliteLocalAgentStore requires LocalAgentCheckpointStore from local runtime")}async function ZM(Z){return(await Z.listAllAgentRecords()).map((J)=>J.agentId)}function ru(Z){return{append:async($)=>{let J=await Z.appendRunEvent({runId:$.runId,eventType:$.eventType,payload:$.payload,payloadRef:$.payloadRef,idempotencyKey:$.idempotencyKey});return ex(J)},list:async($)=>{let J=await Z.listRunEvents({runId:$.runId,afterOffset:$.afterOffset??void 0,limit:$.limit});return{items:J.events.map(ex),...J.nextOffset!==void 0?{nextOffset:J.nextOffset}:{}}},delete:async($)=>{let J=$.filter.runIds??[];for(let Y of J)await Z.deleteRunEvents({runId:Y})}}}function su(Z){let $=c6();return{get:async({agentId:J,blobId:Y})=>{let z=await(await Z.checkpointStore.getBlobStore(J)).getBlob($,l0(Y));return z?nu(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 ZM(Z.runStore),X=J.filter.blobIds;for(let z of Y){if(X?.length){let K=await Z.checkpointStore.getBlobStore(z);for(let Q of X)await K.deleteBlob(Q);continue}await Z.checkpointStore.deleteAgent(z)}},list:async(J)=>{let Y=J?.filter,X=Y?.agentIds&&Y.agentIds.length>0?Y.agentIds:await ZM(Z.runStore),z=[];for(let K of X){let Q=await Z.checkpointStore.listCheckpointBlobIds(K);for(let W of Q)if(VQ({agentId:K,blobId:W},Y))z.push(W)}return fN(z,Y)}}}async function tu(Z,$){return(await Z.runStore.listAllRunRecords([$])).map((Y)=>Y.runId)}function ou(Z){return{get:async({agentId:$})=>{let J=await Z.runStore.getAgent($);return J?mK(J):null},create:async({agent:$})=>{if(await Z.runStore.getAgent($.agentId))throw Error(`Agent ${$.agentId} already exists`);await Z.runStore.upsertAgentRecord(fQ($));let Y=await Z.runStore.getAgent($.agentId);if(!Y)throw Error(`Failed to create agent ${$.agentId}`);return mK(Y)},update:async({agent:$})=>{if(!await Z.runStore.getAgent($.agentId))throw Error(`Agent ${$.agentId} not found`);await Z.runStore.upsertAgentRecord(fQ($));let Y=await Z.runStore.getAgent($.agentId);if(!Y)throw Error(`Failed to update agent ${$.agentId}`);return mK(Y)},delete:async({filter:$})=>{let J=(await Z.runStore.listAllAgentRecords()).map(mK).filter((Y)=>kN(Y,$));if(J.length===0)throw Error("No agents matched delete filter");for(let Y of J){let X=await tu(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(mK);return EN(J,$?.filter)}}}function eu(Z){return{get:async({agentId:$,runId:J})=>{let Y=await Z.runStore.getRun($,J);return Y?jK(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(EQ($));let Y=await Z.runStore.getRun($.agentId,$.runId);if(!Y)throw Error(`Failed to create run ${$.runId} for agent ${$.agentId}`);return jK(Y)},update:async({run:$})=>{if(!await Z.runStore.getRun($.agentId,$.runId))throw Error(`Run ${$.runId} not found for agent ${$.agentId}`);await Z.runStore.upsertRunRecord(EQ($));let Y=await Z.runStore.getRun($.agentId,$.runId);if(!Y)throw Error(`Failed to update run ${$.runId} for agent ${$.agentId}`);return jK(Y)},delete:async($)=>{let J=$.filter,Y=J?.agentIds&&J.agentIds.length>0?J.agentIds:void 0,X=(await Z.runStore.listAllRunRecords(Y)).map(jK).filter((z)=>_K(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(jK).filter((z)=>_K(z,J));return xQ(X,J)}}}class jN{stateRoot;workspaceRef;agents;checkpoints;runs;runEvents;deps;static async open(Z){let $=Z.stateRoot??Ix(Z.workspaceRef),{createDefaultLocalAgentStores:J}=await Promise.resolve().then(() => (ox(),tx)),Y=await J({stateRoot:$,workspaceRef:Z.workspaceRef}),X=Y.store,z=Y.eventStore,K=Y.checkpointStore;return au(X,K,z),new jN({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=ou(this.deps),this.checkpoints=su(this.deps),this.runs=eu(this.deps),this.runEvents=ru(Z.eventStore)}async dispose(){await Promise.all([this.deps.runStore.dispose(),this.deps.eventStore.dispose(),this.deps.checkpointStore.dispose()])}}export{jN as SqliteLocalAgentStore};
|
|
155
|
+
WHERE idempotency_key IS NOT NULL`)}var Rx=I(()=>{FQ()});var Sx={};f6(Sx,{createDefaultLocalRunEventStore:()=>jx,createDefaultLocalRunEventNotifier:()=>_x,createDefaultLocalAgentStores:()=>gu,createDefaultLocalAgentRunStore:()=>mx,createDefaultLocalAgentCheckpointStore:()=>yx});async function yx(Z){let{LocalAgentCheckpointStore:$}=await Promise.resolve().then(() => (kx(),Ox));return new $({stateRoot:Z.stateRoot})}async function mx(Z){let{SqliteAgentRunStore:$}=await Promise.resolve().then(() => (hx(),Cx));return $.open(Z)}async function jx(Z){let{SqliteRunEventStore:$}=await Promise.resolve().then(() => (Rx(),Tx));return $.open(Z)}function _x(){return Hx()}async function gu(Z){return{store:await mx(Z),checkpointStore:await yx(Z),eventStore:await jx(Z),eventNotifier:_x()}}var gx=()=>{};KH();G8();function EK(Z){return{agentId:Z.agentId,cwd:Z.workspaceRef,status:ac(Z.status),activeRunId:Z.activeRunId??null,latestCheckpoint:Z.latestCheckpointRef?JN(Z.latestCheckpointRef):null,name:Z.name??null,createdAt:Z.createdAt.getTime(),updatedAt:Z.updatedAt.getTime(),sdkMetadata:Z.metadata}}function fK(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:sc(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?JN(Z.startCheckpointRef):null,latestCheckpointRef:Z.latestCheckpointRef?JN(Z.latestCheckpointRef):null}}function QQ(Z){return{agentId:Z.agentId,workspaceRef:Z.cwd,status:rc(Z.status),activeRunId:Z.activeRunId??null,latestCheckpointRef:Z.latestCheckpoint?YN(Z.latestCheckpoint):null,name:Z.name??null,createdAt:new Date(Z.createdAt),updatedAt:new Date(Z.updatedAt),metadata:Z.sdkMetadata??{}}}function qQ(Z){let $=tc(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?YN(Z.startCheckpointRef):null,latestCheckpointRef:Z.latestCheckpointRef?YN(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 JN(Z){return{schemaVersion:1,rootBlobId:Z.blobId}}function YN(Z){return{blobId:Z.rootBlobId,storeKind:"local-agent-store"}}function ac(Z){switch(Z){case"IDLE":return"idle";case"RUNNING":return"running";case"ERROR":return"error";case"ARCHIVED":return"archived"}}function rc(Z){switch(Z){case"idle":return"IDLE";case"running":return"RUNNING";case"error":return"ERROR";case"archived":return"ARCHIVED"}}function sc(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"}}function tc(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"}}KH();LH();class HN{eventsByRunId=new Map;idempotencyKeys=new Map;async append(Z){let $=Z.idempotencyKey??null;if($){let K=this.idempotencyKeys.get(XN(Z.runId,$));if(K)return zN(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(XN(Z.runId,$),z);return zN(z)}async list(Z){let $=qu(Z.afterOffset),J=Z.limit??100,Y=(this.eventsByRunId.get(Z.runId)??[]).filter((z)=>z.seq>$),X=Y.slice(0,J).map((z)=>zN(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(XN(J,X.idempotencyKey));this.eventsByRunId.delete(J)}}}function e4(Z){return{get:async({agentId:$,blobId:J})=>{let Y=Z.get($)?.get(J);return Y?KN(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,KN(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,KN(Y))},delete:async($)=>{for(let{agentId:J,blobId:Y}of Ju(Z,$.filter)){let X=Z.get(J);if(X?.delete(Y),X&&X.size===0)Z.delete(J)}},list:async($)=>{let J=$?.filter,Y=$u(Z,J);return qN(Y,J)}}}function QN(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 Zx(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)=>QN(X,J));if(Y.length===0)throw Error("No agents matched delete filter");for(let X of Y)$.delete(X.agentId)},list:async(J)=>WN([...$.values()],J?.filter)}}function oc(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 ec{agentMap=new Map;runMap=new Map;checkpointBytes=new Map;runEvents=new HN;checkpoints=e4(this.checkpointBytes);agents=Zx({agentRows:oc(this.agentMap)});runs={get:async({agentId:Z,runId:$})=>{let J=this.runMap.get(WQ(Z,$));return J?structuredClone(J):null},create:async({run:Z})=>{let $=WQ(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 $=WQ(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 $x(this.runMap.values(),Z.filter))this.runMap.delete(WQ($.agentId,$.runId))},list:async(Z)=>{let $=Z?.filter,J=[...this.runMap.values()].filter((Y)=>VK(Y,$));return BQ(J,$)}}}class Zu{bundles=new Map;checkpointBytes=new Map;runEvents=new HN;checkpoints=e4(this.checkpointBytes);agents=Zx({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 $x([...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)=>VK(Y,$));return BQ(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 NQ(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 $u(Z,$){let J=[];for(let[Y,X]of Z)for(let z of X.keys())if(NQ({agentId:Y,blobId:z},$))J.push(z);return J}function Ju(Z,$){let J=[];for(let[Y,X]of Z)for(let z of X.keys())if(NQ({agentId:Y,blobId:z},$))J.push({agentId:Y,blobId:z});return J}function qN(Z,$){let J=[...Z].sort((Q,W)=>Q.localeCompare(W)),Y=$?.limit??50,X=J;if($?.cursor)X=J.filter((Q)=>Q>$.cursor);let z=X.slice(0,Y),K=z.at(-1);return{items:z,...X.length>Y&&K?{nextCursor:K}:{}}}function VK(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 $x(Z,$){return[...Z].filter((J)=>VK(J,$))}function WN(Z,$){let Y=[...$?.cwd===void 0?Z:Z.filter((W)=>W.cwd===$.cwd)].sort(Yu),X=$?.limit??50,z=Y;if($?.cursor){let W=Hu($.cursor);z=Y.filter((G)=>zu(G,W))}let K=z.slice(0,X),Q=K.at(-1);return{items:K.map((W)=>structuredClone(W)),...z.length>X&&Q?{nextCursor:Jx({updatedAt:Q.updatedAt,agentId:Q.agentId})}:{}}}function BQ(Z,$){let J=[...Z].sort(Xu),Y=$?.limit??50,X=J;if($?.cursor){let Q=Qu($.cursor);X=J.filter((W)=>Ku(W,Q))}let z=X.slice(0,Y),K=z.at(-1);return{items:z.map((Q)=>structuredClone(Q)),...X.length>Y&&K?{nextCursor:Jx({turnNumber:K.turnNumber,runId:K.runId})}:{}}}function Yu(Z,$){if($.updatedAt!==Z.updatedAt)return $.updatedAt-Z.updatedAt;return $.agentId.localeCompare(Z.agentId)}function Xu(Z,$){if(Z.turnNumber!==$.turnNumber)return Z.turnNumber-$.turnNumber;return Z.runId.localeCompare($.runId)}function zu(Z,$){if(Z.updatedAt<$.updatedAt)return!0;if(Z.updatedAt>$.updatedAt)return!1;return Z.agentId<$.agentId}function Ku(Z,$){if(Z.turnNumber>$.turnNumber)return!0;if(Z.turnNumber<$.turnNumber)return!1;return Z.runId>$.runId}function Jx(Z){return Buffer.from(JSON.stringify(Z),"utf8").toString("base64url")}function Hu(Z){let $=Yx(Z);if(typeof $.updatedAt!=="number"||typeof $.agentId!=="string")throw Error("Invalid agent list cursor");return{updatedAt:$.updatedAt,agentId:$.agentId}}function Qu(Z){let $=Yx(Z);if(typeof $.turnNumber!=="number"||typeof $.runId!=="string")throw Error("Invalid run list cursor");return{turnNumber:$.turnNumber,runId:$.runId}}function Yx(Z){try{let $=JSON.parse(Buffer.from(Z,"base64url").toString("utf8"));if(typeof $==="object"&&$!==null&&!Array.isArray($))return $}catch{}throw Error("Invalid list cursor")}function WQ(Z,$){return`${Z}:${$}`}function qu(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 XN(Z,$){return`${Z}:${$}`}function zN(Z){return{...Z,payload:Z.payload!==null&&typeof Z.payload==="object"?structuredClone(Z.payload):Z.payload}}function KN(Z){let $=new Uint8Array(Z.length);return $.set(Z),$}LK();import{createHash as Xx}from"crypto";import{existsSync as NN,renameSync as Wu}from"fs";import{homedir as Nu}from"os";import{join as BN}from"path";function zx(Z){let $=BN(aq(Nu(),Z),"sdk-agent-store"),J=BN($,Xx("sha256").update(Z).digest("hex"));if(NN(J))return J;let Y=Bu(Z);if(Y===void 0)return J;let X=BN($,Y);if(!NN(X))return J;try{return Wu(X,J),J}catch{return NN(X)?X:J}}function Bu(Z){try{return Xx("md5").update(Z).digest("hex")}catch($){if(Fu($))return;throw $}}function Fu(Z){if(!(Z instanceof Error))return!1;return Z.code==="ERR_OSSL_EVP_UNSUPPORTED"||Z.message==="Digest method not supported"}function bu(Z){let $=new Uint8Array(Z.length);return $.set(Z),$}function bx(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 du(Z,$,J){if(typeof Z.upsertAgentRecord!=="function")throw Error("SqliteLocalAgentStore requires SqliteAgentRunStore from local runtime");if(typeof J.appendRunEvent!=="function")throw Error("SqliteLocalAgentStore requires SqliteRunEventStore from local runtime");if(typeof $.listCheckpointBlobIds!=="function")throw Error("SqliteLocalAgentStore requires LocalAgentCheckpointStore from local runtime")}async function dx(Z){return(await Z.listAllAgentRecords()).map((J)=>J.agentId)}function cu(Z){return{append:async($)=>{let J=await Z.appendRunEvent({runId:$.runId,eventType:$.eventType,payload:$.payload,payloadRef:$.payloadRef,idempotencyKey:$.idempotencyKey});return bx(J)},list:async($)=>{let J=await Z.listRunEvents({runId:$.runId,afterOffset:$.afterOffset??void 0,limit:$.limit});return{items:J.events.map(bx),...J.nextOffset!==void 0?{nextOffset:J.nextOffset}:{}}},delete:async($)=>{let J=$.filter.runIds??[];for(let Y of J)await Z.deleteRunEvents({runId:Y})}}}function uu(Z){let $=d8();return{get:async({agentId:J,blobId:Y})=>{let z=await(await Z.checkpointStore.getBlobStore(J)).getBlob($,c0(Y));return z?bu(z):null},create:async({agentId:J,blobId:Y,data:X})=>{let z=await Z.checkpointStore.getBlobStore(J);if(await z.getBlob($,c0(Y)))throw Error(`Checkpoint blob ${Y} already exists for agent ${J}`);await z.setBlob($,c0(Y),X)},update:async({agentId:J,blobId:Y,data:X})=>{let z=await Z.checkpointStore.getBlobStore(J);if(!await z.getBlob($,c0(Y)))throw Error(`Checkpoint blob ${Y} not found for agent ${J}`);await z.setBlob($,c0(Y),X)},delete:async(J)=>{let Y=J.filter.agentIds&&J.filter.agentIds.length>0?J.filter.agentIds:await dx(Z.runStore),X=J.filter.blobIds;for(let z of Y){if(X?.length){let K=await Z.checkpointStore.getBlobStore(z);for(let Q of X)await K.deleteBlob(Q);continue}await Z.checkpointStore.deleteAgent(z)}},list:async(J)=>{let Y=J?.filter,X=Y?.agentIds&&Y.agentIds.length>0?Y.agentIds:await dx(Z.runStore),z=[];for(let K of X){let Q=await Z.checkpointStore.listCheckpointBlobIds(K);for(let W of Q)if(NQ({agentId:K,blobId:W},Y))z.push(W)}return qN(z,Y)}}}async function lu(Z,$){return(await Z.runStore.listAllRunRecords([$])).map((Y)=>Y.runId)}function pu(Z){return{get:async({agentId:$})=>{let J=await Z.runStore.getAgent($);return J?EK(J):null},create:async({agent:$})=>{if(await Z.runStore.getAgent($.agentId))throw Error(`Agent ${$.agentId} already exists`);await Z.runStore.upsertAgentRecord(QQ($));let Y=await Z.runStore.getAgent($.agentId);if(!Y)throw Error(`Failed to create agent ${$.agentId}`);return EK(Y)},update:async({agent:$})=>{if(!await Z.runStore.getAgent($.agentId))throw Error(`Agent ${$.agentId} not found`);await Z.runStore.upsertAgentRecord(QQ($));let Y=await Z.runStore.getAgent($.agentId);if(!Y)throw Error(`Failed to update agent ${$.agentId}`);return EK(Y)},delete:async({filter:$})=>{let J=(await Z.runStore.listAllAgentRecords()).map(EK).filter((Y)=>QN(Y,$));if(J.length===0)throw Error("No agents matched delete filter");for(let Y of J){let X=await lu(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(EK);return WN(J,$?.filter)}}}function iu(Z){return{get:async({agentId:$,runId:J})=>{let Y=await Z.runStore.getRun($,J);return Y?fK(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(qQ($));let Y=await Z.runStore.getRun($.agentId,$.runId);if(!Y)throw Error(`Failed to create run ${$.runId} for agent ${$.agentId}`);return fK(Y)},update:async({run:$})=>{if(!await Z.runStore.getRun($.agentId,$.runId))throw Error(`Run ${$.runId} not found for agent ${$.agentId}`);await Z.runStore.upsertRunRecord(qQ($));let Y=await Z.runStore.getRun($.agentId,$.runId);if(!Y)throw Error(`Failed to update run ${$.runId} for agent ${$.agentId}`);return fK(Y)},delete:async($)=>{let J=$.filter,Y=J?.agentIds&&J.agentIds.length>0?J.agentIds:void 0,X=(await Z.runStore.listAllRunRecords(Y)).map(fK).filter((z)=>VK(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(fK).filter((z)=>VK(z,J));return BQ(X,J)}}}class EN{stateRoot;workspaceRef;agents;checkpoints;runs;runEvents;deps;static async open(Z){let $=Z.stateRoot??zx(Z.workspaceRef),{createDefaultLocalAgentStores:J}=await Promise.resolve().then(() => (gx(),Sx)),Y=await J({stateRoot:$,workspaceRef:Z.workspaceRef}),X=Y.store,z=Y.eventStore,K=Y.checkpointStore;return du(X,K,z),new EN({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=pu(this.deps),this.checkpoints=uu(this.deps),this.runs=iu(this.deps),this.runEvents=cu(Z.eventStore)}async dispose(){await Promise.all([this.deps.runStore.dispose(),this.deps.eventStore.dispose(),this.deps.checkpointStore.dispose()])}}export{EN as SqliteLocalAgentStore};
|