@cursor/sdk 1.0.34 → 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.
Files changed (43) hide show
  1. package/dist/bundled/index.js +275 -274
  2. package/dist/bundled/sqlite.js +20 -20
  3. package/dist/cjs/{458.js → 478.js} +3 -3
  4. package/dist/cjs/856.js +1 -1
  5. package/dist/cjs/867.js +1 -0
  6. package/dist/cjs/agent/options.d.ts +6 -0
  7. package/dist/cjs/agent/options.d.ts.map +1 -1
  8. package/dist/cjs/agent/store/sdk-state-root.d.ts +3 -1
  9. package/dist/cjs/agent/store/sdk-state-root.d.ts.map +1 -1
  10. package/dist/cjs/custom-tools.d.ts +1 -1
  11. package/dist/cjs/custom-tools.d.ts.map +1 -1
  12. package/dist/cjs/executor-common.d.ts.map +1 -1
  13. package/dist/cjs/index.js +1 -1
  14. package/dist/cjs/local-executor.d.ts.map +1 -1
  15. package/dist/cjs/options.d.ts +6 -0
  16. package/dist/cjs/options.d.ts.map +1 -1
  17. package/dist/cjs/platform.d.ts.map +1 -1
  18. package/dist/cjs/sqlite.js +1 -1
  19. package/dist/cjs/store/sdk-state-root.d.ts +3 -1
  20. package/dist/cjs/store/sdk-state-root.d.ts.map +1 -1
  21. package/dist/esm/{458.js → 478.js} +3 -3
  22. package/dist/esm/856.js +1 -1
  23. package/dist/esm/867.js +1 -0
  24. package/dist/esm/agent/options.d.ts +6 -0
  25. package/dist/esm/agent/options.d.ts.map +1 -1
  26. package/dist/esm/agent/store/sdk-state-root.d.ts +3 -1
  27. package/dist/esm/agent/store/sdk-state-root.d.ts.map +1 -1
  28. package/dist/esm/custom-tools.d.ts +1 -1
  29. package/dist/esm/custom-tools.d.ts.map +1 -1
  30. package/dist/esm/executor-common.d.ts.map +1 -1
  31. package/dist/esm/index.js +1 -1
  32. package/dist/esm/local-executor.d.ts.map +1 -1
  33. package/dist/esm/options.d.ts +6 -0
  34. package/dist/esm/options.d.ts.map +1 -1
  35. package/dist/esm/platform.d.ts.map +1 -1
  36. package/dist/esm/sqlite.js +1 -1
  37. package/dist/esm/store/sdk-state-root.d.ts +3 -1
  38. package/dist/esm/store/sdk-state-root.d.ts.map +1 -1
  39. package/package.json +53 -54
  40. package/dist/cjs/479.js +0 -1
  41. package/dist/esm/479.js +0 -1
  42. /package/dist/cjs/{458.js.LICENSE.txt → 478.js.LICENSE.txt} +0 -0
  43. /package/dist/esm/{458.js.LICENSE.txt → 478.js.LICENSE.txt} +0 -0
@@ -1,43 +1,43 @@
1
1
  // @bun
2
- var ox=Object.create;var{getPrototypeOf:ex,defineProperty:CQ,getOwnPropertyNames:ZM}=Object;var $M=Object.prototype.hasOwnProperty;var yN=(Z,$,J)=>{J=Z!=null?ox(ex(Z)):{};let Y=$||!Z||!Z.__esModule?CQ(J,"default",{value:Z,enumerable:!0}):J;for(let X of ZM(Z))if(!$M.call(Y,X))CQ(Y,X,{get:()=>Z[X],enumerable:!0});return Y};var q=(Z,$)=>()=>($||Z(($={exports:{}}).exports,$),$.exports);var P6=(Z,$)=>{for(var J in $)CQ(Z,J,{get:$[J],enumerable:!0,configurable:!0,set:(Y)=>$[J]=()=>Y})};var U=(Z,$)=>()=>(Z&&($=Z(Z=0)),$);import{Message as JM}from"@bufbuild/protobuf";function N(Z,$,J){return Object.defineProperty(Z,$,{value:J,writable:!0,enumerable:!0,configurable:!0}),J}function mN(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 YM(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:mN(Z,Y,G.slice(f+1))});continue}let P=Object.assign({no:Q,name:W},mN(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 XM(Z){let $=Z[0],J=$.indexOf("|");return J===-1?$:$.slice(0,J)}function zM(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 KM(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=KM(z);Q=Y.map((O)=>O[1]),K=Q.map((O)=>L+O)}else K=Y.map((L)=>L[1]),Q=X===void 0?zM(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=U(()=>{B=class B extends JM{static get typeName(){let Z=this;return N(Z,"typeName",Z.$p()+XM(Z.$()))}static get fields(){let Z=this,$=Z.$(),J=Z.runtime,Y=()=>YM(J,$);return N(Z,"fields",J.util.newFieldList(Y))}}});import{Message as eu,proto3 as R}from"@bufbuild/protobuf";var dK="agent.v1.",P0,V6,TQ,jN,RQ,u8,K9,H9,Q9,q9,W9,N9,B9,F9,G9,L9,w9,D9;var _N=U(()=>{k();P0=class P0 extends B{static get runtime(){return N(this,"runtime",R)}static $p(){return dK}};V6=w(R,dK,"SubagentExecutionEnvironment",[[0,"UNSPECIFIED"],[1,"LOCAL"],[2,"CLOUD"]],1),TQ=w(R,dK,"SubagentBackgroundReason",[[0,"UNSPECIFIED"],[1,"AGENT_REQUEST"],[2,"USER_REQUEST"],[3,"QUEUED_FOLLOW_UP"]],1),jN=w(R,dK,"BackgroundTaskCompletionReason",[[0,"UNSPECIFIED"],[1,"TASK_FINISHED"],[2,"TASK_PROGRESS"],[3,"WORKER_REPARENTED"],[4,"WORKER_MESSAGE"],[5,"WORKER_NEEDS_ATTENTION"]],1),RQ=w(R,dK,"TaskMode",[[0,"UNSPECIFIED"],[1,"AGENT"],[2,"PLAN"]],1);u8=class u8 extends P0{constructor(Z){super();this.type={case:void 0},R.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 R.util.equals(u8,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 Yl,proto3 as U8}from"@bufbuild/protobuf";var kH="agent.v1.",fH,U9,I9,HM,_0,SN,gN;var EH=U(()=>{k();fH=class fH extends B{static get runtime(){return N(this,"runtime",U8)}static $p(){return kH}};U9=class U9 extends fH{constructor(Z){super();U8.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 U8.util.equals(U9,Z,$)}static $(){return["NetworkPolicyLoggingConfig|1 decision_log_path 9?|2 log_format 9?"]}};I9=class I9 extends fH{constructor(Z){super();this.deny=[],this.allow=[],U8.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 U8.util.equals(I9,Z,$)}static $(){return["NetworkPolicy|1 version 13?|2 default_action #0?|3 deny 9*|4 allow 9*|5 logging #1?",HM,U9]}};HM=w(U8,kH,"NetworkPolicy.DefaultAction",[[0,"UNSPECIFIED"],[1,"ALLOW"],[2,"DENY"]],1);_0=class _0 extends fH{constructor(Z){super();this.type=SN.UNSPECIFIED,this.additionalReadwritePaths=[],this.additionalReadonlyPaths=[],this.readBoundary=gN.UNSPECIFIED,this.additionalReadPaths=[],U8.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 U8.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*",SN,I9,gN]}};SN=w(U8,kH,"SandboxPolicy.Type",[[0,"UNSPECIFIED"],[1,"INSECURE_NONE"],[2,"WORKSPACE_READWRITE"],[3,"WORKSPACE_READONLY"]],1),gN=w(U8,kH,"SandboxPolicy.ReadBoundaryMode",[[0,"UNSPECIFIED"],[1,"SYSTEM"],[2,"WORKSPACE"]],1)});import{Message as Hl,proto3 as A8,protoInt64 as bN}from"@bufbuild/protobuf";var QM="agent.v1.",cK,l8,p8,q0,i0;var x6=U(()=>{k();cK=class cK extends B{static get runtime(){return N(this,"runtime",A8)}static $p(){return QM}};l8=class l8 extends cK{constructor(Z){super();A8.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 A8.util.equals(l8,Z,$)}static $(){return["Range|1 start #0|2 end #0",p8]}};p8=class p8 extends cK{constructor(Z){super();this.line=0,this.column=0,A8.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 A8.util.equals(p8,Z,$)}static $(){return["Position|1 line 13|2 column 13"]}};q0=class q0 extends cK{constructor(Z){super();this.filePath="",this.sizeBytes=bN.zero,this.lineCount=bN.zero,A8.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 A8.util.equals(q0,Z,$)}static $(){return["OutputLocation|1 file_path 9|2 size_bytes 3|3 line_count 3"]}};i0=class i0 extends cK{constructor(Z){super();this.requestId="",this.reason="",A8.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 A8.util.equals(i0,Z,$)}static $(){return["SmartModeApproval|1 request_id 9|2 reason 9"]}}});import{Message as Nl,proto3 as yQ}from"@bufbuild/protobuf";var qM="agent.v1.",dN,i8;var cN=U(()=>{k();dN=class dN extends B{static get runtime(){return N(this,"runtime",yQ)}static $p(){return qM}};i8=class i8 extends dN{constructor(Z){super();this.hookEventName="",this.content="",yQ.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 yQ.util.equals(i8,Z,$)}static $(){return["HookAdditionalContext|1 hook_event_name 9|2 content 9"]}}});import{Message as Ll,proto3 as C}from"@bufbuild/protobuf";var y9="agent.v1.",Z0,uN,WM,NM,O9,k9,f9,E9,P9,lN,V9,x9,M9,pN,M6,h6,h9,A9,v9,C9,T9,R9;var iN=U(()=>{EH();x6();k();Z0=class Z0 extends B{static get runtime(){return N(this,"runtime",C)}static $p(){return y9}};uN=w(C,y9,"TimeoutBehavior",[[0,"UNSPECIFIED"],[1,"CANCEL"],[2,"BACKGROUND"]],1),WM=w(C,y9,"ShellBackgroundReason",[[0,"UNSPECIFIED"],[1,"TIMEOUT"],[2,"USER_REQUEST"]],1),NM=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=lN.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,lN]}};lN=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=pN.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?",pN]}};pN=w(C,y9,"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=uN.UNSPECIFIED,this.closeStdin=!1,this.adminCommandDenylist=[],C.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 C.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?",O9,_0,uN,P9,x9,i0,M9]}};h6=class h6 extends Z0{constructor(Z){super();this.result={case:void 0},C.util.initPartial(Z,this)}static fromBinary(Z,$){return new h6().fromBinary(Z,$)}static fromJson(Z,$){return new h6().fromJson(Z,$)}static fromJsonString(Z,$){return new h6().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(h6,Z,$)}static $(){return["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,WM]}};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,NM]}};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 kl,proto3 as mQ}from"@bufbuild/protobuf";var BM="agent.v1.",nN,A6;var aN=U(()=>{iN();k();nN=class nN extends B{static get runtime(){return N(this,"runtime",mQ)}static $p(){return BM}};A6=class A6 extends nN{constructor(Z){super();mQ.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 mQ.util.equals(A6,Z,$)}static $(){return["ShellToolCall|1 args #0|2 result #1|3 description 9?",M6,h6]}}});import{Message as xl,proto3 as n,protoInt64 as FM}from"@bufbuild/protobuf";var GM="agent.v1.",I8,v6,C6,m9,j9,_9,S9,g9,b9,d9;var rN=U(()=>{k();I8=class I8 extends B{static get runtime(){return N(this,"runtime",n)}static $p(){return GM}};v6=class v6 extends I8{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"]}};C6=class C6 extends I8{constructor(Z){super();this.result={case:void 0},n.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 n.util.equals(C6,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 I8{constructor(Z){super();this.path="",this.deletedFile="",this.fileSize=FM.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 I8{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 I8{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 I8{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 I8{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 I8{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 I8{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 vl,proto3 as jQ}from"@bufbuild/protobuf";var LM="agent.v1.",sN,T6;var tN=U(()=>{rN();k();sN=class sN extends B{static get runtime(){return N(this,"runtime",jQ)}static $p(){return LM}};T6=class T6 extends sN{constructor(Z){super();jQ.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 jQ.util.equals(T6,Z,$)}static $(){return["DeleteToolCall|1 args #0|2 result #1",v6,C6]}}});import{Message as ml,proto3 as n0}from"@bufbuild/protobuf";var wM="agent.v1.",i9,c9,u9,l9,p9,R6;var oN=U(()=>{k();i9=class i9 extends B{static get runtime(){return N(this,"runtime",n0)}static $p(){return wM}};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"]}};R6=class R6 extends i9{constructor(Z){super();n0.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 n0.util.equals(R6,Z,$)}static $(){return["GlobToolCall|1 args #0|2 result #1",c9,u9]}}});import{Message as gl,proto3 as d}from"@bufbuild/protobuf";var DM="agent.v1.",S0,y6,m6,n9,a9,r9,s9,t9,o9,e9,Z7,$7;var eN=U(()=>{EH();k();S0=class S0 extends B{static get runtime(){return N(this,"runtime",d)}static $p(){return DM}};y6=class y6 extends S0{constructor(Z){super();this.pattern="",this.toolCallId="",d.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 d.util.equals(y6,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]}};m6=class m6 extends S0{constructor(Z){super();this.result={case:void 0},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["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 ll,proto3 as _Q}from"@bufbuild/protobuf";var UM="agent.v1.",ZB,j6;var $B=U(()=>{eN();k();ZB=class ZB extends B{static get runtime(){return N(this,"runtime",_Q)}static $p(){return UM}};j6=class j6 extends ZB{constructor(Z){super();_Q.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 _Q.util.equals(j6,Z,$)}static $(){return["GrepToolCall|1 args #0|2 result #1",y6,m6]}}});import{Message as rl,proto3 as V0}from"@bufbuild/protobuf";var YB="agent.v1.",_6,JB,J7,Y7,X7,z7,K7,v8;var SQ=U(()=>{k();_6=class _6 extends B{static get runtime(){return N(this,"runtime",V0)}static $p(){return YB}};JB=w(V0,YB,"CursorRuleSource",[[0,"UNSPECIFIED"],[1,"TEAM"],[2,"USER"]],1);J7=class J7 extends _6{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 _6{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 _6{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 _6{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 _6{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]}};v8=class v8 extends _6{constructor(Z){super();this.fullPath="",this.content="",this.source=JB.UNSPECIFIED,this.environments=[],this.disabledEnvironments=[],this.scopedTo=[],this.frontmatter="",V0.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 V0.util.equals(v8,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,JB]}}});import{Message as el,proto3 as C0}from"@bufbuild/protobuf";var IM="agent.v1.",g6,S6,H7,Q7,q7,W7,N7;var XB=U(()=>{SQ();k();g6=class g6 extends B{static get runtime(){return N(this,"runtime",C0)}static $p(){return IM}};S6=class S6 extends g6{constructor(Z){super();C0.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 C0.util.equals(S6,Z,$)}static $(){return["ReadToolCall|1 args #0|2 result #1",H7,Q7]}};H7=class H7 extends g6{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 g6{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 g6{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 g6{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,v8]}};N7=class N7 extends g6{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 Xp,proto3 as b,protoInt64 as zB}from"@bufbuild/protobuf";var KB="agent.v1.",g0,gQ,W0,b6,B7,F7,G7,L7,d6,w7,D7,U7,I7;var PH=U(()=>{k();g0=class g0 extends B{static get runtime(){return N(this,"runtime",b)}static $p(){return KB}};gQ=w(b,KB,"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=gQ.UNSPECIFIED,this.createdAt=zB.zero,this.updatedAt=zB.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*",gQ]}};b6=class b6 extends g0{constructor(Z){super();b.util.initPartial(Z,this)}static fromBinary(Z,$){return new b6().fromBinary(Z,$)}static fromJson(Z,$){return new b6().fromJson(Z,$)}static fromJsonString(Z,$){return new b6().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(b6,Z,$)}static $(){return["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"]}};d6=class d6 extends g0{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["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*",gQ]}};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",U7,I7]}};U7=class U7 extends g0{constructor(Z){super();this.todos=[],this.totalCount=0,b.util.initPartial(Z,this)}static fromBinary(Z,$){return new U7().fromBinary(Z,$)}static fromJson(Z,$){return new U7().fromJson(Z,$)}static fromJsonString(Z,$){return new U7().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(U7,Z,$)}static $(){return["ReadTodosSuccess|1 todos #0*|2 total_count 5",W0]}};I7=class I7 extends g0{constructor(Z){super();this.error="",b.util.initPartial(Z,this)}static fromBinary(Z,$){return new I7().fromBinary(Z,$)}static fromJson(Z,$){return new I7().fromJson(Z,$)}static fromJsonString(Z,$){return new I7().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(I7,Z,$)}static $(){return["ReadTodosError|1 error 9"]}}});import{Message as Qp,proto3 as a}from"@bufbuild/protobuf";var OM="agent.v1.",O8,O7,k7,f7,E7,P7,V7,x7,M7,c6;var HB=U(()=>{k();O8=class O8 extends B{static get runtime(){return N(this,"runtime",a)}static $p(){return OM}};O7=class O7 extends O8{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 O8{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 O8{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 O8{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 O8{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 O8{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 O8{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 O8{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?"]}};c6=class c6 extends O8{constructor(Z){super();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["EditToolCall|1 args #0|2 result #1",O7,k7]}}});import{Message as Bp,proto3 as u}from"@bufbuild/protobuf";var kM="agent.v1.",a0,u6,l6,h7,k8,A7,v7,C7,T7,R7,y7;var bQ=U(()=>{EH();k();a0=class a0 extends B{static get runtime(){return N(this,"runtime",u)}static $p(){return kM}};u6=class u6 extends a0{constructor(Z){super();this.path="",this.ignore=[],this.toolCallId="",u.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 u.util.equals(u6,Z,$)}static $(){return["LsArgs|1 path 9|2 ignore 9*|3 tool_call_id 9|4 sandbox_policy #0?|5 timeout_ms 13?",_0]}};l6=class l6 extends a0{constructor(Z){super();this.result={case:void 0},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["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",k8]}};k8=class k8 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 k8().fromBinary(Z,$)}static fromJson(Z,$){return new k8().fromJson(Z,$)}static fromJsonString(Z,$){return new k8().fromJsonString(Z,$)}static equals(Z,$){return u.util.equals(k8,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",k8,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",k8]}};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 Dp,proto3 as dQ}from"@bufbuild/protobuf";var fM="agent.v1.",QB,p6;var qB=U(()=>{bQ();k();QB=class QB extends B{static get runtime(){return N(this,"runtime",dQ)}static $p(){return fM}};p6=class p6 extends QB{constructor(Z){super();dQ.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 dQ.util.equals(p6,Z,$)}static $(){return["LsToolCall|1 args #0|2 result #1",u6,l6]}}});import{Message as fp,proto3 as EM}from"@bufbuild/protobuf";var PM="agent.v1.",cQ;var WB=U(()=>{k();cQ=w(EM,PM,"DiagnosticSeverity",[[0,"UNSPECIFIED"],[1,"ERROR"],[2,"WARNING"],[3,"INFORMATION"],[4,"HINT"]],1)});import{Message as xp,proto3 as $0}from"@bufbuild/protobuf";var VM="agent.v1.",C8,i6,m7,j7,_7,S7,g7,b7,d7;var NB=U(()=>{WB();x6();k();C8=class C8 extends B{static get runtime(){return N(this,"runtime",$0)}static $p(){return VM}};i6=class i6 extends C8{constructor(Z){super();$0.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 $0.util.equals(i6,Z,$)}static $(){return["ReadLintsToolCall|1 args #0|2 result #1",m7,j7]}};m7=class m7 extends C8{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 C8{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 C8{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 C8{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 C8{constructor(Z){super();this.severity=cQ.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",cQ,b7]}};b7=class b7 extends C8{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",p8]}};d7=class d7 extends C8{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 Tp,proto3 as h,protoInt64 as xM,Struct as MM,Value as hM}from"@bufbuild/protobuf";var AM="agent.v1.",c,n6,c7,u7,l7,p7,n8,a6,r6,s6,t6,o6,i7,n7,a7,r7,e6,ZZ,s7,t7,o7,e7;var uQ=U(()=>{x6();k();c=class c extends B{static get runtime(){return N(this,"runtime",h)}static $p(){return AM}};n6=class n6 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 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["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*",hM,i0,c7]}};c7=class c7 extends c{constructor(Z){super();this.path="",this.sha256="",this.sizeBytes=xM.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]}};n8=class n8 extends c{constructor(Z){super();this.body="",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["SystemReminder|1 body 9"]}};a6=class a6 extends c{constructor(Z){super();this.content=[],this.isError=!1,this.systemReminders=[],h.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 h.util.equals(a6,Z,$)}static $(){return["McpSuccess|1 content #0*|2 is_error 8|3 structured_content #1|4 system_reminders #2*",p7,MM,n8]}};r6=class r6 extends c{constructor(Z){super();this.reason="",this.isReadonly=!1,h.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 h.util.equals(r6,Z,$)}static $(){return["McpRejected|1 reason 9|2 is_readonly 8"]}};s6=class s6 extends c{constructor(Z){super();this.error="",this.isReadonly=!1,h.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 h.util.equals(s6,Z,$)}static $(){return["McpPermissionDenied|1 error 9|2 is_readonly 8"]}};t6=class t6 extends c{constructor(Z){super();h.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 h.util.equals(t6,Z,$)}static $(){return["ListMcpResourcesExecArgs|1 server 9?"]}};o6=class o6 extends c{constructor(Z){super();this.result={case:void 0},h.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 h.util.equals(o6,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"]}};e6=class e6 extends c{constructor(Z){super();this.server="",this.uri="",this.toolCallId="",h.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 h.util.equals(e6,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?",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 _p,proto3 as JZ}from"@bufbuild/protobuf";var vM="agent.v1.",VH,Z5,$5,$Z;var BB=U(()=>{uQ();k();VH=class VH extends B{static get runtime(){return N(this,"runtime",JZ)}static $p(){return vM}};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*",n8]}};$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",a6,Z5,r6,s6]}};$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?",n6,$5]}}});import{Message as cp,proto3 as N0}from"@bufbuild/protobuf";var CM="aiserver.v1.",a8,J5,YZ,XZ,zZ,Y5,X5,z5;var FB=U(()=>{k();a8=class a8 extends B{static get runtime(){return N(this,"runtime",N0)}static $p(){return CM}};J5=class J5 extends a8{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 a8{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 a8{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 a8{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 a8{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 a8{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 a8{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 sp,proto3 as lQ,protoInt64 as tp}from"@bufbuild/protobuf";var TM="aiserver.v1.",GB,KZ;var LB=U(()=>{FB();k();GB=class GB extends B{static get runtime(){return N(this,"runtime",lQ)}static $p(){return TM}};KZ=class KZ extends GB{constructor(Z){super();this.score=0,lQ.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 lQ.util.equals(KZ,Z,$)}static $(){return["CodeResult|1 code_block #0|2 score 2",zZ]}}});import{Message as Ji,proto3 as r0}from"@bufbuild/protobuf";var RM="agent.v1.",W5,HZ,K5,H5,Q5,q5;var wB=U(()=>{LB();k();W5=class W5 extends B{static get runtime(){return N(this,"runtime",r0)}static $p(){return RM}};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 Hi,proto3 as B0}from"@bufbuild/protobuf";var yM="agent.v1.",r8,QZ,N5,B5,qZ,F5,G5,WZ;var DB=U(()=>{PH();k();r8=class r8 extends B{static get runtime(){return N(this,"runtime",B0)}static $p(){return yM}};QZ=class QZ extends r8{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 r8{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 r8{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 r8{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 r8{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 r8{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 r8{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 Bi,proto3 as l}from"@bufbuild/protobuf";var mM="agent.v1.",s0,L5,w5,D5,U5,I5,O5,NZ,BZ,k5,f5;var UB=U(()=>{k();s0=class s0 extends B{static get runtime(){return N(this,"runtime",l)}static $p(){return mM}};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,U5,I5]}};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]}};U5=class U5 extends s0{constructor(Z){super();this.error="",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["WebSearchError|1 error 9"]}};I5=class I5 extends s0{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["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 wi,proto3 as uK}from"@bufbuild/protobuf";var jM="agent.v1.",pQ,FZ,GZ;var IB=U(()=>{uQ();k();pQ=class pQ extends B{static get runtime(){return N(this,"runtime",uK)}static $p(){return jM}};FZ=class FZ extends pQ{constructor(Z){super();uK.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 uK.util.equals(FZ,Z,$)}static $(){return["ListMcpResourcesToolCall|1 args #0|2 result #1",t6,o6]}};GZ=class GZ extends pQ{constructor(Z){super();uK.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 uK.util.equals(GZ,Z,$)}static $(){return["ReadMcpResourceToolCall|1 args #0|2 result #1",e6,ZZ]}}});import{Message as ki,proto3 as x0}from"@bufbuild/protobuf";var kB="agent.v1.",DZ,LZ,E5,P5,V5,wZ,OB,x5;var fB=U(()=>{k();DZ=class DZ extends B{static get runtime(){return N(this,"runtime",x0)}static $p(){return kB}};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=OB.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?",OB]}};OB=w(x0,kB,"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 _M="agent.v1.",t0,UZ,IZ,M5,h5,A5,s8,v5,C5,T5,R5;var EB=U(()=>{k();t0=class t0 extends B{static get runtime(){return N(this,"runtime",p)}static $p(){return _M}};UZ=class UZ extends t0{constructor(Z){super();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["AskQuestionToolCall|1 args #0|2 result #1",IZ,s8]}};IZ=class IZ extends t0{constructor(Z){super();this.title="",this.questions=[],this.runAsync=!1,this.asyncOriginalToolCallId="",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["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"]}};s8=class s8 extends t0{constructor(Z){super();this.result={case:void 0},p.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 p.util.equals(s8,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 Ai,proto3 as T8}from"@bufbuild/protobuf";var SM="agent.v1.",lK,OZ,kZ,y5,m5;var PB=U(()=>{k();lK=class lK extends B{static get runtime(){return N(this,"runtime",T8)}static $p(){return SM}};OZ=class OZ extends lK{constructor(Z){super();this.url="",this.toolCallId="",T8.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 T8.util.equals(OZ,Z,$)}static $(){return["FetchArgs|1 url 9|2 tool_call_id 9"]}};kZ=class kZ extends lK{constructor(Z){super();this.result={case:void 0},T8.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 T8.util.equals(kZ,Z,$)}static $(){return["FetchResult|1 success #0 result|2 error #1 result",y5,m5]}};y5=class y5 extends lK{constructor(Z){super();this.url="",this.content="",this.statusCode=0,this.contentType="",T8.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 T8.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 lK{constructor(Z){super();this.url="",this.error="",T8.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 T8.util.equals(m5,Z,$)}static $(){return["FetchError|1 url 9|2 error 9"]}}});import{Message as Ri,proto3 as iQ}from"@bufbuild/protobuf";var gM="agent.v1.",VB,fZ;var xB=U(()=>{PB();k();VB=class VB extends B{static get runtime(){return N(this,"runtime",iQ)}static $p(){return gM}};fZ=class fZ extends VB{constructor(Z){super();iQ.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 iQ.util.equals(fZ,Z,$)}static $(){return["FetchToolCall|1 args #0|2 result #1",OZ,kZ]}}});import{Message as Si,proto3 as r}from"@bufbuild/protobuf";var bM="agent.v1.",f8,j5,_5,S5,g5,b5,EZ,PZ,d5,c5;var MB=U(()=>{k();f8=class f8 extends B{static get runtime(){return N(this,"runtime",r)}static $p(){return bM}};j5=class j5 extends f8{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 f8{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 f8{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 f8{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 f8{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 f8{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 f8{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 f8{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 f8{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 ci,proto3 as J0}from"@bufbuild/protobuf";var dM="agent.v1.",R8,u5,l5,p5,i5,VZ,xZ,n5,a5;var hB=U(()=>{k();R8=class R8 extends B{static get runtime(){return N(this,"runtime",J0)}static $p(){return dM}};u5=class u5 extends R8{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 R8{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 R8{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 R8{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 R8{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 R8{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 R8{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 R8{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 ii,proto3 as F0,protoInt64 as cM}from"@bufbuild/protobuf";var nQ="agent.v1.",AZ,AB,uM,MZ,hZ,r5,s5,t5,o5;var vB=U(()=>{k();AZ=class AZ extends B{static get runtime(){return N(this,"runtime",F0)}static $p(){return nQ}};AB=w(F0,nQ,"RecordingMode",[[0,"UNSPECIFIED"],[1,"START_RECORDING"],[2,"SAVE_RECORDING"],[3,"DISCARD_RECORDING"]],1),uM=w(F0,nQ,"RequestedFilePathRejectedReason",[[0,"UNSPECIFIED"],[1,"SLASHES_NOT_ALLOWED"]],1);MZ=class MZ extends AZ{constructor(Z){super();this.mode=AB.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?",AB]}};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=cM.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?",uM]}};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 si,proto3 as aQ}from"@bufbuild/protobuf";var lM="agent.v1.",CB,vZ;var TB=U(()=>{vB();k();CB=class CB extends B{static get runtime(){return N(this,"runtime",aQ)}static $p(){return lM}};vZ=class vZ extends CB{constructor(Z){super();aQ.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 aQ.util.equals(vZ,Z,$)}static $(){return["RecordScreenToolCall|1 args #0|2 result #1",MZ,hZ]}}});import{Message as $n,proto3 as v}from"@bufbuild/protobuf";var xH="agent.v1.",s,t8,RB,yB,E8,e5,Z1,$1,J1,Y1,X1,z1,K1,H1,Q1,q1,W1,N1,B1,F1,G1,CZ;var mB=U(()=>{k();s=class s extends B{static get runtime(){return N(this,"runtime",v)}static $p(){return xH}};t8=w(v,xH,"MouseButton",[[0,"UNSPECIFIED"],[1,"LEFT"],[2,"RIGHT"],[3,"MIDDLE"],[4,"BACK"],[5,"FORWARD"]],1),RB=w(v,xH,"ScrollDirection",[[0,"UNSPECIFIED"],[1,"UP"],[2,"DOWN"],[3,"LEFT"],[4,"RIGHT"]],1),yB=w(v,xH,"KeyStroke",[[0,"UNSPECIFIED"],[1,"TAP"],[2,"DOWN"],[3,"UP"]],1);E8=class E8 extends s{constructor(Z){super();this.x=0,this.y=0,v.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 v.util.equals(E8,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",E8]}};J1=class J1 extends s{constructor(Z){super();this.button=t8.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?",E8,t8]}};Y1=class Y1 extends s{constructor(Z){super();this.button=t8.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",t8]}};X1=class X1 extends s{constructor(Z){super();this.button=t8.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",t8]}};z1=class z1 extends s{constructor(Z){super();this.path=[],this.button=t8.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?",E8,t8]}};K1=class K1 extends s{constructor(Z){super();this.direction=RB.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?",E8,RB]}};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=yB.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",yB]}};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?",E8]}};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 zn,proto3 as y8}from"@bufbuild/protobuf";var pM="agent.v1.",pK,TZ,RZ,L1,w1;var jB=U(()=>{k();pK=class pK extends B{static get runtime(){return N(this,"runtime",y8)}static $p(){return pM}};TZ=class TZ extends pK{constructor(Z){super();this.shellId=0,this.chars="",y8.util.initPartial(Z,this)}static fromBinary(Z,$){return new TZ().fromBinary(Z,$)}static fromJson(Z,$){return new TZ().fromJson(Z,$)}static fromJsonString(Z,$){return new TZ().fromJsonString(Z,$)}static equals(Z,$){return y8.util.equals(TZ,Z,$)}static $(){return["WriteShellStdinArgs|1 shell_id 13|2 chars 9"]}};RZ=class RZ extends pK{constructor(Z){super();this.result={case:void 0},y8.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 y8.util.equals(RZ,Z,$)}static $(){return["WriteShellStdinResult|1 success #0 result|2 error #1 result",L1,w1]}};L1=class L1 extends pK{constructor(Z){super();this.shellId=0,this.terminalFileLengthBeforeInputWritten=0,y8.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 y8.util.equals(L1,Z,$)}static $(){return["WriteShellStdinSuccess|1 shell_id 13|2 terminal_file_length_before_input_written 13"]}};w1=class w1 extends pK{constructor(Z){super();this.error="",y8.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 y8.util.equals(w1,Z,$)}static $(){return["WriteShellStdinError|1 error 9"]}}});import{Message as qn,proto3 as rQ}from"@bufbuild/protobuf";var iM="agent.v1.",_B,yZ;var SB=U(()=>{jB();k();_B=class _B extends B{static get runtime(){return N(this,"runtime",rQ)}static $p(){return iM}};yZ=class yZ extends _B{constructor(Z){super();rQ.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 rQ.util.equals(yZ,Z,$)}static $(){return["WriteShellStdinToolCall|1 args #0|2 result #1",TZ,RZ]}}});import{Message as Gn,proto3 as o0}from"@bufbuild/protobuf";var nM="agent.v1.",k1,D1,U1,I1,O1,mZ;var gB=U(()=>{k();k1=class k1 extends B{static get runtime(){return N(this,"runtime",o0)}static $p(){return nM}};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"]}};U1=class U1 extends k1{constructor(Z){super();this.result={case:void 0},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["ReflectResult|1 success #0 result|2 error #1 result",I1,O1]}};I1=class I1 extends k1{constructor(Z){super();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["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,U1]}}});import{Message as Un,proto3 as m8}from"@bufbuild/protobuf";var aM="agent.v1.",iK,jZ,o8,f1,_Z;var bB=U(()=>{k();iK=class iK extends B{static get runtime(){return N(this,"runtime",m8)}static $p(){return aM}};jZ=class jZ extends iK{constructor(Z){super();this.installCommand="",this.startCommand="",this.dockerfileContents="",m8.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 m8.util.equals(jZ,Z,$)}static $(){return["SetupVmEnvironmentArgs|2 install_command 9|3 start_command 9|4 dockerfile_contents 9"]}};o8=class o8 extends iK{constructor(Z){super();this.result={case:void 0},m8.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 m8.util.equals(o8,Z,$)}static $(){return["SetupVmEnvironmentResult|1 success #0 result",f1]}};f1=class f1 extends iK{constructor(Z){super();m8.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 m8.util.equals(f1,Z,$)}static $(){return["SetupVmEnvironmentSuccess"]}};_Z=class _Z extends iK{constructor(Z){super();m8.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 m8.util.equals(_Z,Z,$)}static $(){return["SetupVmEnvironmentToolCall|1 args #0|2 result #1",jZ,o8]}}});import{Message as fn,proto3 as e0}from"@bufbuild/protobuf";var rM="agent.v1.",M1,E1,P1,V1,x1,SZ;var dB=U(()=>{k();M1=class M1 extends B{static get runtime(){return N(this,"runtime",e0)}static $p(){return rM}};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 xn,proto3 as Z8}from"@bufbuild/protobuf";var sM="agent.v1.",T1,h1,A1,v1,C1,gZ;var cB=U(()=>{k();T1=class T1 extends B{static get runtime(){return N(this,"runtime",Z8)}static $p(){return sM}};h1=class h1 extends T1{constructor(Z){super();this.toolCallId="",Z8.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 Z8.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},Z8.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 Z8.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();Z8.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 Z8.util.equals(v1,Z,$)}static $(){return["StartGrindPlanningSuccess"]}};C1=class C1 extends T1{constructor(Z){super();this.error="",Z8.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 Z8.util.equals(C1,Z,$)}static $(){return["StartGrindPlanningError|1 error 9"]}};gZ=class gZ extends T1{constructor(Z){super();Z8.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 Z8.util.equals(gZ,Z,$)}static $(){return["StartGrindPlanningToolCall|1 args #0|2 result #1",h1,A1]}}});import{Message as vn,proto3 as t}from"@bufbuild/protobuf";var tM="agent.v1.",P8,R1,y1,m1,j1,_1,bZ,dZ,S1,g1;var uB=U(()=>{x6();k();P8=class P8 extends B{static get runtime(){return N(this,"runtime",t)}static $p(){return tM}};R1=class R1 extends P8{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 P8{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 P8{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 P8{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 P8{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 P8{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 P8{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 P8{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 P8{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 mn,proto3 as M0}from"@bufbuild/protobuf";var pB="agent.v1.",lZ,lB,cZ,b1,d1,c1,u1,uZ;var iB=U(()=>{k();lZ=class lZ extends B{static get runtime(){return N(this,"runtime",M0)}static $p(){return pB}};lB=w(M0,pB,"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=lB.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?",lB]}};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 gn,proto3 as $8}from"@bufbuild/protobuf";var oM="agent.v1.",a1,l1,p1,i1,n1,pZ;var nB=U(()=>{x6();k();a1=class a1 extends B{static get runtime(){return N(this,"runtime",$8)}static $p(){return oM}};l1=class l1 extends a1{constructor(Z){super();this.filePaths=[],this.commitHashes=[],$8.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 $8.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},$8.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 $8.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="",$8.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 $8.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="",$8.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 $8.util.equals(n1,Z,$)}static $(){return["AiAttributionError|1 error 9"]}};pZ=class pZ extends a1{constructor(Z){super();$8.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 $8.util.equals(pZ,Z,$)}static $(){return["AiAttributionToolCall|1 args #0|2 result #1",l1,p1]}}});import{Message as ln,proto3 as y,protoInt64 as eM}from"@bufbuild/protobuf";var rB="agent.v1.",G0,aB,r1,s1,t1,o1,e1,ZJ,$J,e8,JJ,YJ,XJ,zJ,KJ,iZ;var sB=U(()=>{k();G0=class G0 extends B{static get runtime(){return N(this,"runtime",y)}static $p(){return rB}};aB=w(y,rB,"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=eM.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=aB.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",aB]}};e8=class e8 extends G0{constructor(Z){super();this.result={case:void 0},y.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 y.util.equals(e8,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,e8]}}});import{Message as rn,proto3 as o}from"@bufbuild/protobuf";var Zh="agent.v1.",V8,HJ,QJ,qJ,WJ,NJ,nZ,aZ,BJ,FJ;var tB=U(()=>{k();V8=class V8 extends B{static get runtime(){return N(this,"runtime",o)}static $p(){return Zh}};HJ=class HJ extends V8{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 V8{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 V8{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 V8{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 V8{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 V8{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 V8{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 V8{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 V8{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 en,proto3 as L0,protoInt64 as MH}from"@bufbuild/protobuf";var $h="agent.v1.",Z6,GJ,rZ,sZ,LJ,wJ,DJ,tZ;var oB=U(()=>{k();Z6=class Z6 extends B{static get runtime(){return N(this,"runtime",L0)}static $p(){return $h}};GJ=class GJ extends Z6{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 Z6{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 Z6{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 Z6{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 Z6{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 Z6{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 Z6{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 Ya,proto3 as J8}from"@bufbuild/protobuf";var Jh="agent.v1.",fJ,UJ,IJ,OJ,kJ,oZ;var eB=U(()=>{k();fJ=class fJ extends B{static get runtime(){return N(this,"runtime",J8)}static $p(){return Jh}};UJ=class UJ extends fJ{constructor(Z){super();this.filePath="",J8.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 J8.util.equals(UJ,Z,$)}static $(){return["BlameByFilePathArgs|1 file_path 9|2 start_line 5?|3 end_line 5?"]}};IJ=class IJ extends fJ{constructor(Z){super();this.content="",J8.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 J8.util.equals(IJ,Z,$)}static $(){return["BlameByFilePathSuccess|1 content 9"]}};OJ=class OJ extends fJ{constructor(Z){super();this.errorMessage="",J8.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 J8.util.equals(OJ,Z,$)}static $(){return["BlameByFilePathError|1 error_message 9"]}};kJ=class kJ extends fJ{constructor(Z){super();this.result={case:void 0},J8.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 J8.util.equals(kJ,Z,$)}static $(){return["BlameByFilePathResult|1 success #0 result|2 error #1 result",IJ,OJ]}};oZ=class oZ extends fJ{constructor(Z){super();J8.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 J8.util.equals(oZ,Z,$)}static $(){return["BlameByFilePathToolCall|1 args #0|2 result #1",UJ,kJ]}}});import{Message as Ha,proto3 as Y8}from"@bufbuild/protobuf";var Yh="agent.v1.",MJ,EJ,PJ,VJ,xJ,eZ;var ZF=U(()=>{k();MJ=class MJ extends B{static get runtime(){return N(this,"runtime",Y8)}static $p(){return Yh}};EJ=class EJ extends MJ{constructor(Z){super();this.toolCallId="",Y8.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 Y8.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},Y8.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 Y8.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="",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["GetMcpToolsSuccess|1 content 9|2 output_file_path 9?"]}};xJ=class xJ extends MJ{constructor(Z){super();this.error="",Y8.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 Y8.util.equals(xJ,Z,$)}static $(){return["GetMcpToolsError|1 error 9"]}};eZ=class eZ extends MJ{constructor(Z){super();Y8.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 Y8.util.equals(eZ,Z,$)}static $(){return["GetMcpToolsToolCall|1 args #0|2 result #1",EJ,PJ]}}});import{Message as Na,proto3 as X8}from"@bufbuild/protobuf";var Xh="agent.v1.",TJ,hJ,AJ,vJ,CJ,Z$;var $F=U(()=>{k();TJ=class TJ extends B{static get runtime(){return N(this,"runtime",X8)}static $p(){return Xh}};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="",X8.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 X8.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="",X8.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 X8.util.equals(AJ,Z,$)}static $(){return["ReportBugSuccess|1 output 9"]}};vJ=class vJ extends TJ{constructor(Z){super();this.errorMessage="",X8.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 X8.util.equals(vJ,Z,$)}static $(){return["ReportBugError|1 error_message 9"]}};CJ=class CJ extends TJ{constructor(Z){super();this.result={case:void 0},X8.util.initPartial(Z,this)}static fromBinary(Z,$){return new CJ().fromBinary(Z,$)}static fromJson(Z,$){return new CJ().fromJson(Z,$)}static fromJsonString(Z,$){return new CJ().fromJsonString(Z,$)}static equals(Z,$){return X8.util.equals(CJ,Z,$)}static $(){return["ReportBugResult|1 success #0 result|2 error #1 result",AJ,vJ]}};Z$=class Z$ extends TJ{constructor(Z){super();X8.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 X8.util.equals(Z$,Z,$)}static $(){return["ReportBugToolCall|1 args #0|2 result #1",hJ,CJ]}}});import{Message as La,proto3 as z8}from"@bufbuild/protobuf";var zh="agent.v1.",_J,RJ,yJ,mJ,jJ,$$;var JF=U(()=>{k();_J=class _J extends B{static get runtime(){return N(this,"runtime",z8)}static $p(){return zh}};RJ=class RJ extends _J{constructor(Z){super();z8.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 z8.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,z8.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 z8.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="",z8.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 z8.util.equals(mJ,Z,$)}static $(){return["CommunicateUpdateError|1 error 9"]}};jJ=class jJ extends _J{constructor(Z){super();this.result={case:void 0},z8.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 z8.util.equals(jJ,Z,$)}static $(){return["CommunicateUpdateResult|1 success #0 result|2 error #1 result",yJ,mJ]}};$$=class $$ extends _J{constructor(Z){super();z8.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 z8.util.equals($$,Z,$)}static $(){return["CommunicateUpdateToolCall|1 args #0|2 result #1",RJ,jJ]}}});import{Message as Ia,proto3 as K8}from"@bufbuild/protobuf";var Kh="agent.v1.",cJ,SJ,gJ,bJ,dJ,J$;var YF=U(()=>{k();cJ=class cJ extends B{static get runtime(){return N(this,"runtime",K8)}static $p(){return Kh}};SJ=class SJ extends cJ{constructor(Z){super();K8.util.initPartial(Z,this)}static fromBinary(Z,$){return new SJ().fromBinary(Z,$)}static fromJson(Z,$){return new SJ().fromJson(Z,$)}static fromJsonString(Z,$){return new SJ().fromJsonString(Z,$)}static equals(Z,$){return K8.util.equals(SJ,Z,$)}static $(){return["SendFinalSummaryArgs|1 final_summary 9?"]}};gJ=class gJ extends cJ{constructor(Z){super();this.finalSummary="",K8.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 K8.util.equals(gJ,Z,$)}static $(){return["SendFinalSummarySuccess|1 final_summary 9"]}};bJ=class bJ extends cJ{constructor(Z){super();this.error="",K8.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 K8.util.equals(bJ,Z,$)}static $(){return["SendFinalSummaryError|1 error 9"]}};dJ=class dJ extends cJ{constructor(Z){super();this.result={case:void 0},K8.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 K8.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();K8.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 K8.util.equals(J$,Z,$)}static $(){return["SendFinalSummaryToolCall|1 args #0|2 result #1",SJ,dJ]}}});import{Message as Ea,proto3 as b0}from"@bufbuild/protobuf";var zF="agent.v1.",nJ,XF,uJ,lJ,pJ,iJ,Y$;var KF=U(()=>{k();nJ=class nJ extends B{static get runtime(){return N(this,"runtime",b0)}static $p(){return zF}};XF=w(b0,zF,"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=XF.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",XF]}};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 Ma,proto3 as z0}from"@bufbuild/protobuf";var QF="agent.v1.",J6,HF,aJ,rJ,X$,sJ,tJ,$6,z$;var qF=U(()=>{k();J6=class J6 extends B{static get runtime(){return N(this,"runtime",z0)}static $p(){return QF}};HF=w(z0,QF,"ReplaceEnvMode",[[0,"UNSPECIFIED"],[1,"CUSTOM"],[2,"CLEAN_SLATE"],[3,"DEFAULT"]],1);aJ=class aJ extends J6{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 J6{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 J6{constructor(Z){super();this.mode=HF.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,HF,aJ]}};sJ=class sJ extends J6{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 J6{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"]}};$6=class $6 extends J6{constructor(Z){super();this.result={case:void 0},z0.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 z0.util.equals($6,Z,$)}static $(){return["ReplaceEnvResult|1 success #0 result|2 failure #1 result",sJ,tJ]}};z$=class z$ extends J6{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$,$6]}}});import{Message as Ca,proto3 as H8}from"@bufbuild/protobuf";var Hh="agent.v1.",J3,oJ,eJ,Z3,$3,K$;var WF=U(()=>{k();J3=class J3 extends B{static get runtime(){return N(this,"runtime",H8)}static $p(){return Hh}};oJ=class oJ extends J3{constructor(Z){super();this.toolCallId="",this.prUrl="",this.addLabels=[],this.removeLabels=[],H8.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 H8.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},H8.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 H8.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="",H8.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 H8.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="",H8.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 H8.util.equals($3,Z,$)}static $(){return["EditPrLabelsError|1 error 9"]}};K$=class K$ extends J3{constructor(Z){super();H8.util.initPartial(Z,this)}static fromBinary(Z,$){return new K$().fromBinary(Z,$)}static fromJson(Z,$){return new K$().fromJson(Z,$)}static fromJsonString(Z,$){return new K$().fromJsonString(Z,$)}static equals(Z,$){return H8.util.equals(K$,Z,$)}static $(){return["EditPrLabelsToolCall|1 args #0|2 result #1",oJ,eJ]}}});import{Message as ma,proto3 as w0}from"@bufbuild/protobuf";var Qh="agent.v1.",Y6,Y3,X3,z3,K3,H3,Q3,H$;var NF=U(()=>{k();Y6=class Y6 extends B{static get runtime(){return N(this,"runtime",w0)}static $p(){return Qh}};Y3=class Y3 extends Y6{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 Y6{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 Y6{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 Y6{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 Y6{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 Y6{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 Y6{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 ga,proto3 as D0,protoInt64 as qh}from"@bufbuild/protobuf";var Wh="agent.v1.",X6,q3,W3,N3,B3,F3,G3,Q$;var BF=U(()=>{k();X6=class X6 extends B{static get runtime(){return N(this,"runtime",D0)}static $p(){return Wh}};q3=class q3 extends X6{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 X6{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 X6{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 X6{constructor(Z){super();this.timestamp=qh.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 X6{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 X6{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 X6{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 ua,proto3 as Q8}from"@bufbuild/protobuf";var Nh="agent.v1.",I3,L3,w3,D3,U3,q$;var FF=U(()=>{k();I3=class I3 extends B{static get runtime(){return N(this,"runtime",Q8)}static $p(){return Nh}};L3=class L3 extends I3{constructor(Z){super();this.bcIds=[],this.sources=[],this.statuses=[],this.includeTeamWide=!1,this.includeArchived=!1,this.includeTranscript=!1,this.activeSince="",Q8.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 Q8.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 I3{constructor(Z){super();this.result={case:void 0},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["FetchCloudAgentDataResult|1 success #0 result|2 error #1 result",D3,U3]}};D3=class D3 extends I3{constructor(Z){super();this.summary="",this.agentCount=0,this.writtenPaths=[],this.unavailableBcIds=[],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["FetchCloudAgentDataSuccess|1 summary 9|2 agent_count 5|3 written_paths 9*|4 unavailable_bc_ids 9*"]}};U3=class U3 extends I3{constructor(Z){super();this.error="",Q8.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 Q8.util.equals(U3,Z,$)}static $(){return["FetchCloudAgentDataError|1 error 9"]}};q$=class q$ extends I3{constructor(Z){super();Q8.util.initPartial(Z,this)}static fromBinary(Z,$){return new q$().fromBinary(Z,$)}static fromJson(Z,$){return new q$().fromJson(Z,$)}static fromJsonString(Z,$){return new q$().fromJsonString(Z,$)}static equals(Z,$){return Q8.util.equals(q$,Z,$)}static $(){return["FetchCloudAgentDataToolCall|1 args #0|2 result #1",L3,w3]}}});import{Message as na,proto3 as q8}from"@bufbuild/protobuf";var Bh="agent.v1.",P3,O3,k3,f3,E3,W$;var GF=U(()=>{k();P3=class P3 extends B{static get runtime(){return N(this,"runtime",q8)}static $p(){return Bh}};O3=class O3 extends P3{constructor(Z){super();this.message="",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["SendToUserArgs|1 message 9"]}};k3=class k3 extends P3{constructor(Z){super();q8.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 q8.util.equals(k3,Z,$)}static $(){return["SendToUserSuccess"]}};f3=class f3 extends P3{constructor(Z){super();this.error="",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["SendToUserError|1 error 9"]}};E3=class E3 extends P3{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["SendToUserResult|1 success #0 result|2 error #1 result",k3,f3]}};W$=class W$ extends P3{constructor(Z){super();q8.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 q8.util.equals(W$,Z,$)}static $(){return["SendToUserToolCall|1 args #0|2 result #1",O3,E3]}}});import{Message as ta,proto3 as sQ}from"@bufbuild/protobuf";var Fh="agent.v1.",LF,K0;var V3=U(()=>{k();LF=class LF extends B{static get runtime(){return N(this,"runtime",sQ)}static $p(){return Fh}};K0=class K0 extends LF{constructor(Z){super();this.truncated=!1,this.truncatedBy="",this.totalLines=0,this.outputLines=0,this.outputBytes=0,this.firstLineExceedsLimit=!1,this.lastLinePartial=!1,sQ.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 sQ.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 $r,proto3 as W8}from"@bufbuild/protobuf";var Gh="agent.v1.",v3,N$,x3,M3,h3,A3;var wF=U(()=>{V3();k();v3=class v3 extends B{static get runtime(){return N(this,"runtime",W8)}static $p(){return Gh}};N$=class N$ extends v3{constructor(Z){super();W8.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 W8.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="",W8.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 W8.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},W8.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 W8.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="",W8.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 W8.util.equals(h3,Z,$)}static $(){return["PiReadToolSuccess|1 output 9|2 truncation #0?",K0]}};A3=class A3 extends v3{constructor(Z){super();this.error="",W8.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 W8.util.equals(A3,Z,$)}static $(){return["PiReadToolError|1 error 9"]}}});import{Message as Kr,proto3 as N8}from"@bufbuild/protobuf";var Lh="agent.v1.",m3,B$,C3,T3,R3,y3;var DF=U(()=>{V3();k();m3=class m3 extends B{static get runtime(){return N(this,"runtime",N8)}static $p(){return Lh}};B$=class B$ extends m3{constructor(Z){super();N8.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 N8.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="",N8.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 N8.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},N8.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 N8.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="",N8.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 N8.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="",N8.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 N8.util.equals(y3,Z,$)}static $(){return["PiBashToolError|1 error 9|2 truncation #0?|3 full_output_path 9?",K0]}}});import{Message as Nr,proto3 as U0}from"@bufbuild/protobuf";var wh="agent.v1.",z6,j3,F$,_3,S3,g3,b3,d3;var UF=U(()=>{k();z6=class z6 extends B{static get runtime(){return N(this,"runtime",U0)}static $p(){return wh}};j3=class j3 extends z6{constructor(Z){super();this.oldText="",this.newText="",U0.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 U0.util.equals(j3,Z,$)}static $(){return["PiEditReplacement|1 old_text 9|2 new_text 9"]}};F$=class F$ extends z6{constructor(Z){super();U0.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 U0.util.equals(F$,Z,$)}static $(){return["PiEditToolCall|1 args #0|2 result #1",_3,S3]}};_3=class _3 extends z6{constructor(Z){super();this.path="",this.edits=[],U0.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 U0.util.equals(_3,Z,$)}static $(){return["PiEditToolArgs|1 path 9|2 edits #0*",j3]}};S3=class S3 extends z6{constructor(Z){super();this.result={case:void 0},U0.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 U0.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 z6{constructor(Z){super();this.output="",this.diff="",this.patch="",U0.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 U0.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 z6{constructor(Z){super();this.error="",U0.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 U0.util.equals(b3,Z,$)}static $(){return["PiEditToolError|1 error 9"]}};d3=class d3 extends z6{constructor(Z){super();this.reason="",U0.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 U0.util.equals(d3,Z,$)}static $(){return["PiEditToolRejected|1 reason 9"]}}});import{Message as Lr,proto3 as T0}from"@bufbuild/protobuf";var Dh="agent.v1.",L$,G$,c3,u3,l3,p3,i3;var IF=U(()=>{k();L$=class L$ extends B{static get runtime(){return N(this,"runtime",T0)}static $p(){return Dh}};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 Ir,proto3 as B8}from"@bufbuild/protobuf";var Uh="agent.v1.",t3,w$,n3,a3,r3,s3;var OF=U(()=>{V3();k();t3=class t3 extends B{static get runtime(){return N(this,"runtime",B8)}static $p(){return Uh}};w$=class w$ extends t3{constructor(Z){super();B8.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 B8.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="",B8.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 B8.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},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["PiGrepToolResult|1 success #0 result|2 error #1 result",r3,s3]}};r3=class r3 extends t3{constructor(Z){super();this.output="",this.linesTruncated=!1,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["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="",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["PiGrepToolError|1 error 9"]}}});import{Message as Pr,proto3 as F8}from"@bufbuild/protobuf";var Ih="agent.v1.",JY,D$,o3,e3,ZY,$Y;var kF=U(()=>{V3();k();JY=class JY extends B{static get runtime(){return N(this,"runtime",F8)}static $p(){return Ih}};D$=class D$ extends JY{constructor(Z){super();F8.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 F8.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="",F8.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 F8.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},F8.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 F8.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="",F8.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 F8.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="",F8.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 F8.util.equals($Y,Z,$)}static $(){return["PiFindToolError|1 error 9"]}}});import{Message as Ar,proto3 as G8}from"@bufbuild/protobuf";var Oh="agent.v1.",HY,U$,YY,XY,zY,KY;var fF=U(()=>{V3();k();HY=class HY extends B{static get runtime(){return N(this,"runtime",G8)}static $p(){return Oh}};U$=class U$ extends HY{constructor(Z){super();G8.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 G8.util.equals(U$,Z,$)}static $(){return["PiLsToolCall|1 args #0|2 result #1",YY,XY]}};YY=class YY extends HY{constructor(Z){super();G8.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 G8.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},G8.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 G8.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="",G8.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 G8.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="",G8.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 G8.util.equals(KY,Z,$)}static $(){return["PiLsToolError|1 error 9"]}}});import{Message as yr,proto3 as S}from"@bufbuild/protobuf";var kh="agent.v1.",R0,QY,qY,WY,NY,BY,FY,GY,I$,O$,LY,wY,DY;var EF=U(()=>{k();R0=class R0 extends B{static get runtime(){return N(this,"runtime",S)}static $p(){return kh}};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"]}};I$=class I$ extends R0{constructor(Z){super();S.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 S.util.equals(I$,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 Sr,proto3 as d0,protoInt64 as fh}from"@bufbuild/protobuf";var VF="agent.v1.",kY,PF,k$,f$,UY,IY,OY;var xF=U(()=>{k();kY=class kY extends B{static get runtime(){return N(this,"runtime",d0)}static $p(){return VF}};PF=w(d0,VF,"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",UY,OY]}};UY=class UY 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 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["ConversationSearchSuccess|1 hits #0*|2 truncated 8|3 partial 8|4 rebuilding 8",IY]}};IY=class IY extends kY{constructor(Z){super();this.conversationId="",this.title="",this.source=PF.UNSPECIFIED,this.updatedAtMs=fh.zero,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["ConversationSearchHit|1 conversation_id 9|2 title 9|3 source #0|4 updated_at_ms 3|5 snippet 9?",PF]}};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 cr,proto3 as tQ}from"@bufbuild/protobuf";var Eh="agent.v1.",MF,E$;var hF=U(()=>{xF();k();MF=class MF extends B{static get runtime(){return N(this,"runtime",tQ)}static $p(){return Eh}};E$=class E$ extends MF{constructor(Z){super();tQ.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 tQ.util.equals(E$,Z,$)}static $(){return["SearchConversationsToolCall|1 args #0|2 result #1",k$,f$]}}});import{Message as nr,proto3 as i}from"@bufbuild/protobuf";var AF="agent.v1.",x8,M$,fY,EY,P$,PY,V$,VY,xY,MY,x$;var vF=U(()=>{k();x8=class x8 extends B{static get runtime(){return N(this,"runtime",i)}static $p(){return AF}};M$=w(i,AF,"GoalStatus",[[0,"UNSPECIFIED"],[1,"ACTIVE"],[2,"PAUSED"],[3,"COMPLETE"],[4,"CLEARED"]],1);fY=class fY extends x8{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 x8{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 x8{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 x8{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 x8{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 x8{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 x8{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 x8{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 x8{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 tr,proto3 as x,protoInt64 as Ph}from"@bufbuild/protobuf";var CF="agent.v1.",_,Vh,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 TF=U(()=>{k();_=class _ extends B{static get runtime(){return N(this,"runtime",x)}static $p(){return CF}};Vh=w(x,CF,"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=Ph.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?",Vh]}};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 $s,proto3 as y0,protoInt64 as xh}from"@bufbuild/protobuf";var Mh="agent.v1.",y$,rY,sY,tY,oY,eY,R$;var RF=U(()=>{k();y$=class y$ extends B{static get runtime(){return N(this,"runtime",y0)}static $p(){return Mh}};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=xh.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 zs,proto3 as m}from"@bufbuild/protobuf";var oQ="agent.v1.",h0,yF,mF,ZX,$X,JX,YX,XX,zX,KX,m$,HX,QX,qX,WX,j$;var jF=U(()=>{k();h0=class h0 extends B{static get runtime(){return N(this,"runtime",m)}static $p(){return oQ}};yF=w(m,oQ,"WriteCanvasFailReason",[[0,"UNSPECIFIED"],[1,"TYPECHECK_FAILED"],[2,"COMPILE_FAILED"],[3,"TOO_LARGE"],[4,"UNAVAILABLE"],[5,"NOT_FOUND"],[6,"REFUSED"]],1),mF=w(m,oQ,"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=yF.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?",yF,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=mF.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?",mF]}};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 qs,proto3 as L8}from"@bufbuild/protobuf";var hh="agent.v1.",LX,NX,BX,FX,GX,_$;var _F=U(()=>{k();LX=class LX extends B{static get runtime(){return N(this,"runtime",L8)}static $p(){return hh}};NX=class NX extends LX{constructor(Z){super();this.prompt="",this.referenceImagePaths=[],L8.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 L8.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},L8.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 L8.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,L8.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 L8.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="",L8.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 L8.util.equals(GX,Z,$)}static $(){return["GenerateVideoError|1 error 9"]}};_$=class _$ extends LX{constructor(Z){super();L8.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 L8.util.equals(_$,Z,$)}static $(){return["GenerateVideoToolCall|1 args #0|2 result #1",NX,BX]}}});import{Message as Fs,proto3 as I0}from"@bufbuild/protobuf";var Ah="agent.v1.",K6,wX,DX,UX,IX,OX,kX,S$;var SF=U(()=>{k();K6=class K6 extends B{static get runtime(){return N(this,"runtime",I0)}static $p(){return Ah}};wX=class wX extends K6{constructor(Z){super();this.query="",this.allowedXHandles=[],this.excludedXHandles=[],I0.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 I0.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 K6{constructor(Z){super();this.result={case:void 0},I0.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 I0.util.equals(DX,Z,$)}static $(){return["XSearchResult|1 success #0 result|2 error #1 result|3 rejected #2 result",UX,OX,kX]}};UX=class UX extends K6{constructor(Z){super();this.answer="",this.citations=[],I0.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 I0.util.equals(UX,Z,$)}static $(){return["XSearchSuccess|1 answer 9|2 citations #0*",IX]}};IX=class IX extends K6{constructor(Z){super();this.url="",this.title="",I0.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 I0.util.equals(IX,Z,$)}static $(){return["XSearchCitation|1 url 9|2 title 9"]}};OX=class OX extends K6{constructor(Z){super();this.error="",I0.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 I0.util.equals(OX,Z,$)}static $(){return["XSearchError|1 error 9"]}};kX=class kX extends K6{constructor(Z){super();this.reason="",I0.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 I0.util.equals(kX,Z,$)}static $(){return["XSearchRejected|1 reason 9"]}};S$=class S$ extends K6{constructor(Z){super();I0.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 I0.util.equals(S$,Z,$)}static $(){return["XSearchToolCall|1 args #0|2 result #1",wX,DX]}}});import{Message as Ds,proto3 as eQ}from"@bufbuild/protobuf";var vh="agent.v1.",gF,g$;var bF=U(()=>{k();gF=class gF extends B{static get runtime(){return N(this,"runtime",eQ)}static $p(){return vh}};g$=class g$ extends gF{constructor(Z){super();this.fullPath="",this.content="",this.description="",this.environments=[],this.disabledEnvironments=[],this.disableModelInvocation=!1,this.globs=[],this.scopedTo=[],eQ.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 eQ.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*"]}}});import{Message as ks,proto3 as I,protoInt64 as dF}from"@bufbuild/protobuf";var uF="agent.v1.",M,cF,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,Uz;var lF=U(()=>{x6();bQ();SQ();bF();k();M=class M extends B{static get runtime(){return N(this,"runtime",I)}static $p(){return uF}};cF=w(I,uF,"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="",I.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 I.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),I.util.initPartial(Z,this)}static fromBinary(Z,$){return new EX().fromBinary(Z,$)}static fromJson(Z,$){return new EX().fromJson(Z,$)}static fromJsonString(Z,$){return new EX().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(EX,Z,$)}static $(){return["SelectedImage.BlobIdWithData|1 blob_id 12|2 data 12"]}};PX=class PX extends M{constructor(Z){super();this.width=0,this.height=0,I.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 I.util.equals(PX,Z,$)}static $(){return["SelectedImage.Dimension|1 width 5|2 height 5"]}};b$=class b$ extends M{constructor(Z){super();this.uploadId="",I.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 I.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="",I.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 I.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),I.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 I.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,I.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 I.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),I.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 I.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=dF.zero,this.refreshAfterUnixMs=dF.zero,this.conversationId="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new AX().fromBinary(Z,$)}static fromJson(Z,$){return new AX().fromJson(Z,$)}static fromJsonString(Z,$){return new AX().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(AX,Z,$)}static $(){return["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},I.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 I.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="",I.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 I.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="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new TX().fromBinary(Z,$)}static fromJson(Z,$){return new TX().fromJson(Z,$)}static fromJsonString(Z,$){return new TX().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(TX,Z,$)}static $(){return["SelectedCodeSelection|1 content 9|2 path 9|3 relative_path 9?|4 range #0",l8]}};RX=class RX extends M{constructor(Z){super();this.content="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new RX().fromBinary(Z,$)}static fromJson(Z,$){return new RX().fromJson(Z,$)}static fromJsonString(Z,$){return new RX().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(RX,Z,$)}static $(){return["SelectedTerminal|1 content 9|2 title 9?|3 path 9?"]}};yX=class yX extends M{constructor(Z){super();this.content="",I.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 I.util.equals(yX,Z,$)}static $(){return["SelectedTerminalSelection|1 content 9|2 title 9?|3 path 9?|4 range #0",l8]}};mX=class mX extends M{constructor(Z){super();this.path="",I.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 I.util.equals(mX,Z,$)}static $(){return["SelectedFolder|1 path 9|2 relative_path 9?|3 directory_tree #0",k8]}};jX=class jX extends M{constructor(Z){super();this.url="",this.uuid="",I.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 I.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();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["SelectedCursorRule|1 rule #0",v8]}};SX=class SX extends M{constructor(Z){super();this.content="",this.fullContentLengthCharCount=0,I.util.initPartial(Z,this)}static fromBinary(Z,$){return new SX().fromBinary(Z,$)}static fromJson(Z,$){return new SX().fromJson(Z,$)}static fromJsonString(Z,$){return new SX().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(SX,Z,$)}static $(){return["SelectedGitDiff|1 content 9|2 full_content_length_char_count 5"]}};gX=class gX extends M{constructor(Z){super();this.content="",this.fullContentLengthCharCount=0,I.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 I.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="",I.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 I.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="",I.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 I.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,I.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 I.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=cF.UNSPECIFIED,this.sourcePath="",this.snapshotToken="",I.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 I.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?",cF]}};lX=class lX extends M{constructor(Z){super();this.name="",this.content="",I.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 I.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="",I.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 I.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="",I.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 I.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="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new nX().fromBinary(Z,$)}static fromJson(Z,$){return new nX().fromJson(Z,$)}static fromJsonString(Z,$){return new nX().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(nX,Z,$)}static $(){return["RecentAgent|1 name 9|2 path 9|3 overview 9?"]}};aX=class aX extends M{constructor(Z){super();this.recentAgents=[],I.util.initPartial(Z,this)}static fromBinary(Z,$){return new aX().fromBinary(Z,$)}static fromJson(Z,$){return new aX().fromJson(Z,$)}static fromJsonString(Z,$){return new aX().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(aX,Z,$)}static $(){return["RecentAgentsContext|1 recent_agents #0*",nX]}};rX=class rX extends M{constructor(Z){super();I.util.initPartial(Z,this)}static fromBinary(Z,$){return new rX().fromBinary(Z,$)}static fromJson(Z,$){return new rX().fromJson(Z,$)}static fromJsonString(Z,$){return new rX().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(rX,Z,$)}static $(){return["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=[],I.util.initPartial(Z,this)}static fromBinary(Z,$){return new sX().fromBinary(Z,$)}static fromJson(Z,$){return new sX().fromJson(Z,$)}static fromJsonString(Z,$){return new sX().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(sX,Z,$)}static $(){return["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="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new tX().fromBinary(Z,$)}static fromJson(Z,$){return new tX().fromJson(Z,$)}static fromJsonString(Z,$){return new tX().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(tX,Z,$)}static $(){return["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="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new oX().fromBinary(Z,$)}static fromJson(Z,$){return new oX().fromJson(Z,$)}static fromJsonString(Z,$){return new oX().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(oX,Z,$)}static $(){return["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="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new eX().fromBinary(Z,$)}static fromJson(Z,$){return new eX().fromJson(Z,$)}static fromJsonString(Z,$){return new eX().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(eX,Z,$)}static $(){return["SelectedSubagent|1 name 9"]}};Zz=class Zz extends M{constructor(Z){super();this.browserId="",this.url="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Zz().fromBinary(Z,$)}static fromJson(Z,$){return new Zz().fromJson(Z,$)}static fromJsonString(Z,$){return new Zz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Zz,Z,$)}static $(){return["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=[],I.util.initPartial(Z,this)}static fromBinary(Z,$){return new $z().fromBinary(Z,$)}static fromJson(Z,$){return new $z().fromJson(Z,$)}static fromJsonString(Z,$){return new $z().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals($z,Z,$)}static $(){return["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();I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Jz().fromBinary(Z,$)}static fromJson(Z,$){return new Jz().fromJson(Z,$)}static fromJsonString(Z,$){return new Jz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Jz,Z,$)}static $(){return["SelectedAgenticGitActionCreateBranchParams"]}};Yz=class Yz extends M{constructor(Z){super();this.path="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Yz().fromBinary(Z,$)}static fromJson(Z,$){return new Yz().fromJson(Z,$)}static fromJsonString(Z,$){return new Yz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Yz,Z,$)}static $(){return["SelectedAgenticGitFileWithStatus|1 path 9|2 status 9?"]}};Xz=class Xz extends M{constructor(Z){super();this.filesToPush=[],I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Xz().fromBinary(Z,$)}static fromJson(Z,$){return new Xz().fromJson(Z,$)}static fromJsonString(Z,$){return new Xz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Xz,Z,$)}static $(){return["SelectedAgenticGitActionPushParams|1 files_to_push 9*|2 create_pr_draft 8?"]}};zz=class zz extends M{constructor(Z){super();I.util.initPartial(Z,this)}static fromBinary(Z,$){return new zz().fromBinary(Z,$)}static fromJson(Z,$){return new zz().fromJson(Z,$)}static fromJsonString(Z,$){return new zz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(zz,Z,$)}static $(){return["SelectedAgenticGitActionFixMergeConflictsParams|1 base_branch 9?|2 pr_url 9?"]}};Kz=class Kz extends M{constructor(Z){super();I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Kz().fromBinary(Z,$)}static fromJson(Z,$){return new Kz().fromJson(Z,$)}static fromJsonString(Z,$){return new Kz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Kz,Z,$)}static $(){return["SelectedAgenticGitActionBabysitPrInCloudParams|1 base_branch 9?"]}};Hz=class Hz extends M{constructor(Z){super();I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Hz().fromBinary(Z,$)}static fromJson(Z,$){return new Hz().fromJson(Z,$)}static fromJsonString(Z,$){return new Hz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Hz,Z,$)}static $(){return["SelectedAgenticGitActionUpdateBranchParams|1 base_branch 9?"]}};Qz=class Qz extends M{constructor(Z){super();this.remoteBranch="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Qz().fromBinary(Z,$)}static fromJson(Z,$){return new Qz().fromJson(Z,$)}static fromJsonString(Z,$){return new Qz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Qz,Z,$)}static $(){return["SelectedAgenticGitActionPullLocallyParams|1 remote_branch 9"]}};qz=class qz extends M{constructor(Z){super();this.params={case:void 0},I.util.initPartial(Z,this)}static fromBinary(Z,$){return new qz().fromBinary(Z,$)}static fromJson(Z,$){return new qz().fromJson(Z,$)}static fromJsonString(Z,$){return new qz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(qz,Z,$)}static $(){return["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();I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Wz().fromBinary(Z,$)}static fromJson(Z,$){return new Wz().fromJson(Z,$)}static fromJsonString(Z,$){return new Wz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Wz,Z,$)}static $(){return["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=[],I.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 I.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},I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Nz().fromBinary(Z,$)}static fromJson(Z,$){return new Nz().fromJson(Z,$)}static fromJsonString(Z,$){return new Nz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Nz,Z,$)}static $(){return["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="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Bz().fromBinary(Z,$)}static fromJson(Z,$){return new Bz().fromJson(Z,$)}static fromJsonString(Z,$){return new Bz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Bz,Z,$)}static $(){return["InvocationContext.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="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Fz().fromBinary(Z,$)}static fromJson(Z,$){return new Fz().fromJson(Z,$)}static fromJsonString(Z,$){return new Fz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Fz,Z,$)}static $(){return["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="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Gz().fromBinary(Z,$)}static fromJson(Z,$){return new Gz().fromJson(Z,$)}static fromJsonString(Z,$){return new Gz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Gz,Z,$)}static $(){return["InvocationContext.GithubPR|1 title 9|2 description 9|3 comments 9|4 ci_failures 9?"]}};Lz=class Lz extends M{constructor(Z){super();this.visibleFiles=[],this.recentlyViewedFiles=[],this.currentlyViewedPrs=[],I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Lz().fromBinary(Z,$)}static fromJson(Z,$){return new Lz().fromJson(Z,$)}static fromJsonString(Z,$){return new Lz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Lz,Z,$)}static $(){return["InvocationContext.IdeState|1 visible_files #0*|2 recently_viewed_files #0*|3 currently_viewed_prs #1*",wz,Uz]}};wz=class wz extends M{constructor(Z){super();this.path="",this.totalLines=0,I.util.initPartial(Z,this)}static fromBinary(Z,$){return new wz().fromBinary(Z,$)}static fromJson(Z,$){return new wz().fromJson(Z,$)}static fromJsonString(Z,$){return new wz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(wz,Z,$)}static $(){return["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="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Dz().fromBinary(Z,$)}static fromJson(Z,$){return new Dz().fromJson(Z,$)}static fromJsonString(Z,$){return new Dz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Dz,Z,$)}static $(){return["InvocationContext.IdeState.File.CursorPosition|1 line 5|2 text 9"]}};Uz=class Uz extends M{constructor(Z){super();this.number=0,this.url="",I.util.initPartial(Z,this)}static fromBinary(Z,$){return new Uz().fromBinary(Z,$)}static fromJson(Z,$){return new Uz().fromJson(Z,$)}static fromJsonString(Z,$){return new Uz().fromJsonString(Z,$)}static equals(Z,$){return I.util.equals(Uz,Z,$)}static $(){return["InvocationContext.IdeState.ViewedPullRequest|1 number 5|2 url 9|3 title 9?|4 folder_path 9?|5 summary_json 9?|6 description 9?"]}}});import{Message as bs,proto3 as F,protoInt64 as hH}from"@bufbuild/protobuf";var a$="agent.v1.",E,nK,pF,iF,nF,Ch,Th,Iz,c$,Oz,kz,fz,Ez,Pz,Vz,xz,Mz,hz,Az,vz,Cz,Tz,Rz,u$,yz,mz,jz,_z,Sz,j8,gz,bz,dz,cz,uz,lz,pz,iz,nz,az,rz,sz,tz,H6,oz,ez,ZK,Q6,q6,_8,$K,l$,JK,p$,W6,YK,XK,N6,zK,B6,KK,HK,QK,qK,WK,NK,i$,BK,FK,GK,LK,F6,G6,n$,L6,wK,DK,m0,UK,IK;var AH=U(()=>{_N();aN();tN();oN();$B();XB();PH();HB();qB();NB();BB();wB();DB();UB();IB();fB();EB();xB();MB();hB();TB();mB();SB();gB();bB();dB();cB();uB();iB();nB();sB();tB();oB();eB();ZF();$F();JF();YF();KF();qF();WF();NF();BF();FF();GF();wF();DF();UF();IF();OF();kF();fF();EF();hF();vF();TF();RF();jF();_F();SF();cN();lF();k();E=class E extends B{static get runtime(){return N(this,"runtime",F)}static $p(){return a$}};nK=w(F,a$,"AgentMode",[[0,"UNSPECIFIED"],[1,"AGENT"],[2,"ASK"],[3,"PLAN"],[4,"DEBUG"],[5,"TRIAGE"],[6,"PROJECT"],[7,"MULTITASK"],[8,"CUSTOM"]],1),pF=w(F,a$,"SubagentRunStatus",[[0,"UNSPECIFIED"],[1,"RUNNING"],[2,"BACKGROUNDED"],[3,"SUCCESS"],[4,"ERROR"],[5,"ABORTED"]],1),iF=w(F,a$,"SubagentDispatchTool",[[0,"UNSPECIFIED"],[1,"TASK"],[2,"CREATE_AGENT"],[3,"SEND_TO_AGENT"]],1),nF=w(F,a$,"CustomModeSource",[[0,"UNSPECIFIED"],[1,"AGENT_SKILL"],[2,"PLUGIN_SKILL"],[3,"REPO_SKILL"],[4,"MANAGED_SKILL"]],1),Ch=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),Th=w(F,a$,"SubscriptionSource",[[0,"UNSPECIFIED"],[1,"SLACK"],[2,"GITHUB"],[3,"LINEAR"],[4,"ORIGIN"]],1);Iz=class Iz extends E{constructor(Z){super();this.description="",this.prompt="",this.attachments=[],this.mode=RQ.UNSPECIFIED,this.respondingToMessageIds=[],this.environment=V6.UNSPECIFIED,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["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?",u8,RQ,V6,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=TQ.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?",j8,TQ]}};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?",Iz,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?",A6,T6,R6,j6,S6,b6,d6,c6,p6,i6,$Z,HZ,QZ,NZ,hz,FZ,GZ,LZ,UZ,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$,U$,I$,E$,V$,x$,h$,A$,v$,C$,T$,R$,m$,j$,_$,S$,i8]}};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$]}};j8=class j8 extends E{constructor(Z){super();this.message={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["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=V6.UNSPECIFIED,this.status=pF.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?",V6,pF,jN]}};dz=class dz extends E{constructor(Z){super();this.stepIndex=0,this.toolCallId="",this.tool=iF.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",iF]}};cz=class cz extends E{constructor(Z){super();this.id="",this.label="",this.source=nF.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?",nF]}};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=nK.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",nK,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*",UK]}};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"]}};H6=class H6 extends E{constructor(Z){super();this.text="",this.messageId="",this.mode=nK.UNSPECIFIED,this.conversationStateBlobId=new Uint8Array(0),this.hookAdditionalContexts=[],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["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$,nK,Ch,gz,az,oz,i8,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?",Th,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?"]}};Q6=class Q6 extends E{constructor(Z){super();this.command="",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["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"]}};_8=class _8 extends E{constructor(Z){super();this.turn={case:void 0},F.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 F.util.equals(_8,Z,$)}static $(){return["ConversationTurn|1 agent_conversation_turn #0 turn|2 shell_conversation_turn #1 turn",W6,N6]}};$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]}};W6=class W6 extends E{constructor(Z){super();this.steps=[],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["AgentConversationTurn|1 user_message #0|2 steps #1*|3 request_id 9?",H6,j8]}};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"]}};N6=class N6 extends E{constructor(Z){super();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["ShellConversationTurn|1 shell_command #0|2 shell_output #1",Q6,q6]}};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"]}};B6=class B6 extends E{constructor(Z){super();this.summary="",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["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?"]}};F6=class F6 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 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["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",_8,W0,i$,B6,$K,KK,BK,l$,G6,n$]}};G6=class G6 extends E{constructor(Z){super();this.step="",this.messageIndex=0,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["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?",G6]}};L6=class L6 extends E{constructor(Z){super();this.createdTimestampMs=hH.zero,this.lastUsedTimestampMs=hH.zero,this.environment=V6.UNSPECIFIED,F.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 F.util.equals(L6,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,u8,V6,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$,nK,FK,GK,L6,l$,DK,G6,n$,bz,JK,LK]}};UK=class UK extends E{constructor(Z){super();this.id=0,this.result={case:void 0},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["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,IK,PZ,WZ,o8,dZ,e8,aZ,xZ,$6,O$]}};IK=class IK extends E{constructor(Z){super();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["AskQuestionInteractionResponse|1 result #0",s8]}}});class OK{}var D=q((HG)=>{Object.defineProperty(HG,"__esModule",{value:!0});HG.createNotification=HG.nextNotification=HG.errorNotification=HG.COMPLETE_NOTIFICATION=HG.isObservable=HG.isArrayLike=HG.isPromise=HG.readableStreamLikeToAsyncGenerator=HG.isFunction=HG.getObservableInputType=HG.ObservableInputType=HG.subscribeToArray=HG.fromPromise=HG.fromArrayLike=HG.from=HG.reportUnhandledError=HG.Observable=HG.operate=HG.config=HG.Subscriber=HG.Subscription=HG.UnsubscriptionError=void 0;class aK 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"}}HG.UnsubscriptionError=aK;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 aK?Y.errors:[Y]}let{_finalizers:J}=this;if(J){this._finalizers=null;for(let Y of J)try{aF(Y)}catch(X){if(Z=Z??[],X instanceof aK)Z.push(...X.errors);else Z.push(X)}}if(Z)throw new aK(Z)}}add(Z){if(Z&&Z!==this)if(this.closed)aF(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)}}HG.Subscription=fK;if(typeof Symbol.dispose==="symbol")fK.prototype[Symbol.dispose]=fK.prototype.unsubscribe;function aF(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:jh(Z),this._nextOverride=$?.next??null,this._errorOverride=$?.error??null,this._completeOverride=$?.complete??null,this._onFinalize=$?.finalize??null,this._next=this._nextOverride?Rh:this._next,this._error=this._errorOverride?yh:this._error,this._complete=this._completeOverride?mh:this._complete,_h(Z))Z.add(this)}next(Z){if(this.isStopped)Zq(KG(Z),this);else this._next(Z)}error(Z){if(this.isStopped)Zq(zG(Z),this);else this.isStopped=!0,this._error(Z)}complete(){if(this.isStopped)Zq(HG.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()}}}HG.Subscriber=r$;HG.config={onUnhandledError:null,onStoppedNotification:null};function Rh(Z){try{this._nextOverride(Z)}catch($){this.destination.error($)}}function yh(Z){try{this._errorOverride(Z)}catch($){this.destination.error($)}finally{this.unsubscribe()}}function mh(){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){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 jh(Z){return new sF(!Z||k0(Z)?{next:Z??void 0}:Z)}function Zq(Z,$){let{onStoppedNotification:J}=HG.config;J&&setTimeout(()=>J(Z,$))}function _h(Z){return Z&&k0(Z.unsubscribe)&&k0(Z.add)}function Sh({destination:Z,...$}){return new r$(Z,$)}HG.operate=Sh;class S8{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(gh,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}}}}HG.Observable=S8;function gh(Z,$){return $(Z)}function kK(Z){setTimeout(()=>{let{onUnhandledError:$}=HG.config;if($)$(Z);else throw Z})}HG.reportUnhandledError=kK;function bh(Z){switch($G(Z)){case O0.Own:return Z;case O0.InteropObservable:return dh(Z);case O0.ArrayLike:return tF(Z);case O0.Promise:return oF(Z);case O0.AsyncIterable:return eF(Z);case O0.Iterable:return ch(Z);case O0.ReadableStreamLike:return uh(Z)}}HG.from=bh;function dh(Z){return new S8(($)=>{let J=Z[Symbol.observable??"@@observable"]();if(k0(J.subscribe))return J.subscribe($);throw TypeError("Provided object does not correctly implement Symbol.observable")})}function tF(Z){return new S8(($)=>{ZG(Z,$)})}HG.fromArrayLike=tF;function oF(Z){return new S8(($)=>{Z.then((J)=>{if(!$.closed)$.next(J),$.complete()},(J)=>$.error(J)).then(null,kK)})}HG.fromPromise=oF;function ch(Z){return new S8(($)=>{for(let J of Z)if($.next(J),$.closed)return;$.complete()})}function eF(Z){return new S8(($)=>{lh(Z,$).catch((J)=>$.error(J))})}function uh(Z){return eF(JG(Z))}async function lh(Z,$){for await(let J of Z)if($.next(J),$.closed)return;$.complete()}function ZG(Z,$){let J=Z.length;for(let Y=0;Y<J;Y++){if($.closed)return;$.next(Z[Y])}$.complete()}HG.subscribeToArray=ZG;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=HG.ObservableInputType||(HG.ObservableInputType={}));function $G(Z){if(Z instanceof S8)return O0.Own;if(nh(Z))return O0.InteropObservable;if(XG(Z))return O0.ArrayLike;if(YG(Z))return O0.Promise;if(ph(Z))return O0.AsyncIterable;if(ah(Z))return O0.Iterable;if(ih(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.`)}HG.getObservableInputType=$G;function k0(Z){return typeof Z==="function"}HG.isFunction=k0;function ph(Z){return Symbol.asyncIterator&&k0(Z?.[Symbol.asyncIterator])}async function*JG(Z){let $=Z.getReader();try{while(!0){let{value:J,done:Y}=await $.read();if(Y)return;yield J}}finally{$.releaseLock()}}HG.readableStreamLikeToAsyncGenerator=JG;function ih(Z){return k0(Z?.getReader)}function YG(Z){return k0(Z?.then)}HG.isPromise=YG;function nh(Z){return k0(Z[Symbol.observable??"@@observable"])}function ah(Z){return k0(Z?.[Symbol.iterator])}function XG(Z){return Z&&typeof Z.length==="number"&&!k0(Z)}HG.isArrayLike=XG;function rh(Z){return!!Z&&(Z instanceof S8||k0(Z.lift)&&k0(Z.subscribe))}HG.isObservable=rh;HG.COMPLETE_NOTIFICATION=(()=>vH("C",void 0,void 0))();function zG(Z){return vH("E",void 0,Z)}HG.errorNotification=zG;function KG(Z){return vH("N",Z,void 0)}HG.nextNotification=KG;function vH(Z,$,J){return{kind:Z,value:$,error:J}}HG.createNotification=vH});var NG=q((WG)=>{Object.defineProperty(WG,"__esModule",{value:!0});WG.performanceTimestampProvider=void 0;WG.performanceTimestampProvider={now(){return(WG.performanceTimestampProvider.delegate||performance).now()},delegate:void 0}});var Yq=q((BG)=>{Object.defineProperty(BG,"__esModule",{value:!0});BG.animationFrameProvider=void 0;var GA=D();BG.animationFrameProvider={schedule(Z){let $=requestAnimationFrame,J=cancelAnimationFrame,{delegate:Y}=BG.animationFrameProvider;if(Y)$=Y.requestAnimationFrame,J=Y.cancelAnimationFrame;let X=$((z)=>{J=void 0,Z(z)});return new GA.Subscription(()=>J?.(X))},requestAnimationFrame(...Z){let{delegate:$}=BG.animationFrameProvider;return($?.requestAnimationFrame||requestAnimationFrame)(...Z)},cancelAnimationFrame(...Z){let{delegate:$}=BG.animationFrameProvider;return($?.cancelAnimationFrame||cancelAnimationFrame)(...Z)},delegate:void 0}});var DG=q((LG)=>{Object.defineProperty(LG,"__esModule",{value:!0});LG.animationFrames=void 0;var LA=D(),wA=NG(),FG=Yq();function DA(Z){return Z?GG(Z):UA}LG.animationFrames=DA;function GG(Z){return new LA.Observable(($)=>{let J=Z||wA.performanceTimestampProvider,Y=J.now(),X=0,z=()=>{if(!$.closed)X=FG.animationFrameProvider.requestAnimationFrame((K)=>{X=0;let Q=J.now();$.next({timestamp:Z?Q:K,elapsed:Q-Y}),z()})};return z(),()=>{if(X)FG.animationFrameProvider.cancelAnimationFrame(X)}})}var UA=GG()});var H0=q((IG)=>{Object.defineProperty(IG,"__esModule",{value:!0});IG.Subject=void 0;var Xq=D();class UG extends Xq.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 Xq.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 Xq.Observable((Z)=>this.subscribe(Z))}}IG.Subject=UG});var PG=q((fG)=>{Object.defineProperty(fG,"__esModule",{value:!0});fG.BehaviorSubject=void 0;var IA=H0();class kG extends IA.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)}}fG.BehaviorSubject=kG});var CH=q((VG)=>{Object.defineProperty(VG,"__esModule",{value:!0});VG.dateTimestampProvider=void 0;VG.dateTimestampProvider={now(){return(VG.dateTimestampProvider.delegate||Date).now()},delegate:void 0}});var Kq=q((MG)=>{Object.defineProperty(MG,"__esModule",{value:!0});MG.ReplaySubject=void 0;var OA=H0(),kA=CH();class xG extends OA.Subject{_bufferSize;_windowTime;_timestampProvider;_buffer=[];_infiniteTimeWindow=!0;constructor(Z=1/0,$=1/0,J=kA.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)}}}MG.ReplaySubject=xG});var Hq=q((vG)=>{Object.defineProperty(vG,"__esModule",{value:!0});vG.AsyncSubject=void 0;var fA=H0();class AG extends fA.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()}}vG.AsyncSubject=AG});var mG=q((RG)=>{Object.defineProperty(RG,"__esModule",{value:!0});RG.Action=void 0;var EA=D();class TG extends EA.Subscription{constructor(Z,$){super()}schedule(Z,$=0){return this}}RG.Action=TG});var _G=q((jG)=>{Object.defineProperty(jG,"__esModule",{value:!0});jG.intervalProvider=void 0;jG.intervalProvider={setInterval(Z,$,...J){let{delegate:Y}=jG.intervalProvider;if(Y?.setInterval)return Y.setInterval(Z,$,...J);return setInterval(Z,$,...J)},clearInterval(Z){let{delegate:$}=jG.intervalProvider;return($?.clearInterval||clearInterval)(Z)},delegate:void 0}});var s$=q((SG)=>{Object.defineProperty(SG,"__esModule",{value:!0});SG.arrRemove=void 0;function PA(Z,$){if(Z){let J=Z.indexOf($);0<=J&&Z.splice(J,1)}}SG.arrRemove=PA});var EK=q((cG)=>{Object.defineProperty(cG,"__esModule",{value:!0});cG.AsyncAction=void 0;var VA=mG(),bG=_G(),xA=s$();class dG extends VA.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 bG.intervalProvider.setInterval(Z.flush.bind(Z,this),J)}recycleAsyncId(Z,$,J=0){if(J!=null&&this.delay===J&&this.pending===!1)return $;if($!=null)bG.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,xA.arrRemove)(J,this),Z!=null)this.id=this.recycleAsyncId($,Z,null);this.delay=null,super.unsubscribe()}}}cG.AsyncAction=dG});var nG=q((pG)=>{Object.defineProperty(pG,"__esModule",{value:!0});pG.TestTools=pG.Immediate=void 0;var MA=1,Qq,RH={};function lG(Z){if(Z in RH)return delete RH[Z],!0;return!1}pG.Immediate={setImmediate(Z){let $=MA++;if(RH[$]=!0,!Qq)Qq=Promise.resolve();return Qq.then(()=>lG($)&&Z()),$},clearImmediate(Z){lG(Z)}};pG.TestTools={pending(){return Object.keys(RH).length}}});var rG=q((aG)=>{Object.defineProperty(aG,"__esModule",{value:!0});aG.immediateProvider=void 0;var AA=nG(),{setImmediate:vA,clearImmediate:CA}=AA.Immediate;aG.immediateProvider={setImmediate(...Z){let{delegate:$}=aG.immediateProvider;return($?.setImmediate||vA)(...Z)},clearImmediate(Z){let{delegate:$}=aG.immediateProvider;return($?.clearImmediate||CA)(Z)},delegate:void 0}});var ZL=q((oG)=>{Object.defineProperty(oG,"__esModule",{value:!0});oG.AsapAction=void 0;var TA=EK(),sG=rG();class tG extends TA.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}}oG.AsapAction=tG});var Wq=q(($L)=>{Object.defineProperty($L,"__esModule",{value:!0});$L.Scheduler=void 0;var RA=CH();class qq{schedulerActionCtor;static now=RA.dateTimestampProvider.now;constructor(Z,$=qq.now){this.schedulerActionCtor=Z,this.now=$}now;schedule(Z,$=0,J){return new this.schedulerActionCtor(this,Z).schedule(J,$)}}$L.Scheduler=qq});var PK=q((zL)=>{Object.defineProperty(zL,"__esModule",{value:!0});zL.AsyncScheduler=void 0;var YL=Wq();class XL extends YL.Scheduler{actions=[];_active=!1;_scheduled;constructor(Z,$=YL.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}}}zL.AsyncScheduler=XL});var WL=q((QL)=>{Object.defineProperty(QL,"__esModule",{value:!0});QL.AsapScheduler=void 0;var yA=PK();class HL extends yA.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}}}QL.AsapScheduler=HL});var FL=q((NL)=>{Object.defineProperty(NL,"__esModule",{value:!0});NL.asapScheduler=void 0;var mA=ZL(),jA=WL();NL.asapScheduler=new jA.AsapScheduler(mA.AsapAction)});var A0=q((GL)=>{Object.defineProperty(GL,"__esModule",{value:!0});GL.asyncScheduler=void 0;var _A=EK(),SA=PK();GL.asyncScheduler=new SA.AsyncScheduler(_A.AsyncAction)});var IL=q((DL)=>{Object.defineProperty(DL,"__esModule",{value:!0});DL.QueueAction=void 0;var gA=EK();class wL extends gA.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}}DL.QueueAction=wL});var EL=q((kL)=>{Object.defineProperty(kL,"__esModule",{value:!0});kL.QueueScheduler=void 0;var bA=PK();class OL extends bA.AsyncScheduler{}kL.QueueScheduler=OL});var xL=q((PL)=>{Object.defineProperty(PL,"__esModule",{value:!0});PL.queueScheduler=void 0;var dA=IL(),cA=EL();PL.queueScheduler=new cA.QueueScheduler(dA.QueueAction)});var CL=q((AL)=>{Object.defineProperty(AL,"__esModule",{value:!0});AL.AnimationFrameAction=void 0;var uA=EK(),ML=Yq();class hL extends uA.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=ML.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!==$)ML.animationFrameProvider.cancelAnimationFrame($),Z._scheduled=void 0;return}}AL.AnimationFrameAction=hL});var mL=q((RL)=>{Object.defineProperty(RL,"__esModule",{value:!0});RL.AnimationFrameScheduler=void 0;var lA=PK();class TL extends lA.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}}}RL.AnimationFrameScheduler=TL});var SL=q((jL)=>{Object.defineProperty(jL,"__esModule",{value:!0});jL.animationFrameScheduler=void 0;var pA=CL(),iA=mL();jL.animationFrameScheduler=new iA.AnimationFrameScheduler(pA.AnimationFrameAction)});var cL=q((bL)=>{Object.defineProperty(bL,"__esModule",{value:!0});bL.VirtualAction=bL.VirtualTimeScheduler=void 0;var nA=EK(),aA=D(),rA=PK();class gL extends rA.AsyncScheduler{maxFrames;static frameTimeFactor=10;frame=0;index=-1;constructor(Z=sK,$=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}}}bL.VirtualTimeScheduler=gL;class sK extends nA.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 sK(this.scheduler,this.work);return this.add(J),J.schedule(Z,$)}else return aA.Subscription.EMPTY}requestAsyncId(Z,$,J=0){this.delay=Z.frame+J;let{actions:Y}=Z;return Y.push(this),Y.sort(sK.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}}bL.VirtualAction=sK});var Nq=q((uL)=>{Object.defineProperty(uL,"__esModule",{value:!0});uL.rx=void 0;var tA=D();function oA(Z,...$){return $.reduce(eA,(0,tA.from)(Z))}uL.rx=oA;function eA(Z,$){return $(Z)}});var Bq=q((pL)=>{Object.defineProperty(pL,"__esModule",{value:!0});pL.pipe=void 0;function Zv(...Z){return Z.length===1?Z[0]:($)=>Z.reduce($v,$)}pL.pipe=Zv;function $v(Z,$){return $(Z)}});var Y0=q((nL)=>{Object.defineProperty(nL,"__esModule",{value:!0});nL.noop=void 0;function Jv(){}nL.noop=Jv});var v0=q((rL)=>{Object.defineProperty(rL,"__esModule",{value:!0});rL.identity=void 0;function Yv(Z){return Z}rL.identity=Yv});var g8=q((oL)=>{Object.defineProperty(oL,"__esModule",{value:!0});oL.EmptyError=void 0;class tL extends Error{constructor(){super("no elements in sequence");this.name="EmptyError"}}oL.EmptyError=tL});var Jw=q((Zw)=>{Object.defineProperty(Zw,"__esModule",{value:!0});Zw.lastValueFrom=void 0;var Xv=g8();function zv(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 Xv.EmptyError)}})})}Zw.lastValueFrom=zv});var zw=q((Yw)=>{Object.defineProperty(Yw,"__esModule",{value:!0});Yw.firstValueFrom=void 0;var Kv=D(),Hv=g8();function Qv(Z,$){let J=typeof $==="object";return new Promise((Y,X)=>{let z=new Kv.Subscriber({next:(K)=>{Y(K),z.unsubscribe()},error:X,complete:()=>{if(J)Y($.defaultValue);else X(new Hv.EmptyError)}});Z.subscribe(z)})}Yw.firstValueFrom=Qv});var Fq=q((Hw)=>{Object.defineProperty(Hw,"__esModule",{value:!0});Hw.ArgumentOutOfRangeError=void 0;class Kw extends Error{constructor(){super("argument out of range");this.name="ArgumentOutOfRangeError"}}Hw.ArgumentOutOfRangeError=Kw});var Gq=q((Ww)=>{Object.defineProperty(Ww,"__esModule",{value:!0});Ww.NotFoundError=void 0;class qw extends Error{constructor(Z){super(Z);this.name="NotFoundError"}}Ww.NotFoundError=qw});var Lq=q((Fw)=>{Object.defineProperty(Fw,"__esModule",{value:!0});Fw.SequenceError=void 0;class Bw extends Error{constructor(Z){super(Z);this.name="SequenceError"}}Fw.SequenceError=Bw});var mH=q((Lw)=>{Object.defineProperty(Lw,"__esModule",{value:!0});Lw.isValidDate=void 0;function qv(Z){return Z instanceof Date&&!isNaN(Z)}Lw.isValidDate=qv});var c0=q((Dw)=>{Object.defineProperty(Dw,"__esModule",{value:!0});Dw.executeSchedule=void 0;function Wv(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}}Dw.executeSchedule=Wv});var jH=q((Iw)=>{Object.defineProperty(Iw,"__esModule",{value:!0});Iw.timeout=Iw.TimeoutError=void 0;var Nv=A0(),Bv=mH(),wq=D(),Fv=c0();class Dq extends Error{info;constructor(Z=null){super("Timeout has occurred");this.info=Z,this.name="TimeoutError"}}Iw.TimeoutError=Dq;function Gv(Z,$){let{first:J,each:Y,with:X=Lv,scheduler:z=$??Nv.asyncScheduler,meta:K=null}=(0,Bv.isValidDate)(Z)?{first:Z}:typeof Z==="number"?{each:Z}:Z;if(J==null&&Y==null)throw TypeError("No timeout provided.");return(Q)=>new wq.Observable((W)=>{let G,L,O=null,f=0,P=(V)=>{L=(0,Fv.executeSchedule)(W,z,()=>{try{G.unsubscribe(),(0,wq.from)(X({meta:K,lastValue:O,seen:f})).subscribe(W)}catch(T){W.error(T)}},V)};G=Q.subscribe((0,wq.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)})}Iw.timeout=Gv;function Lv(Z){throw new Dq(Z)}});var tK=q((kw)=>{Object.defineProperty(kw,"__esModule",{value:!0});kw.isScheduler=void 0;var Dv=D();function Uv(Z){return Z&&(0,Dv.isFunction)(Z.schedule)}kw.isScheduler=Uv});var VK=q((Pw)=>{Object.defineProperty(Pw,"__esModule",{value:!0});Pw.map=void 0;var Ew=D();function Iv(Z){return($)=>new Ew.Observable((J)=>{let Y=0;$.subscribe((0,Ew.operate)({destination:J,next:(X)=>{J.next(Z(X,Y++))}}))})}Pw.map=Iv});var xK=q((xw)=>{Object.defineProperty(xw,"__esModule",{value:!0});xw.mapOneOrManyArgs=void 0;var Ov=VK(),{isArray:kv}=Array;function fv(Z,$){return kv($)?Z(...$):Z($)}function Ev(Z){return(0,Ov.map)(($)=>fv(Z,$))}xw.mapOneOrManyArgs=Ev});var _H=q((Aw)=>{Object.defineProperty(Aw,"__esModule",{value:!0});Aw.observeOn=void 0;var Uq=c0(),hw=D();function Pv(Z,$=0){return(J)=>new hw.Observable((Y)=>{J.subscribe((0,hw.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(),$)}))})}Aw.observeOn=Pv});var SH=q((Cw)=>{Object.defineProperty(Cw,"__esModule",{value:!0});Cw.subscribeOn=void 0;var Vv=D();function xv(Z,$=0){return(J)=>new Vv.Observable((Y)=>{Y.add(Z.schedule(()=>J.subscribe(Y),$))})}Cw.subscribeOn=xv});var mw=q((Rw)=>{Object.defineProperty(Rw,"__esModule",{value:!0});Rw.scheduleObservable=void 0;var Mv=D(),hv=_H(),Av=SH();function vv(Z,$){return(0,Mv.from)(Z).pipe((0,Av.subscribeOn)($),(0,hv.observeOn)($))}Rw.scheduleObservable=vv});var Sw=q((jw)=>{Object.defineProperty(jw,"__esModule",{value:!0});jw.schedulePromise=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.schedulePromise=yv});var cw=q((bw)=>{Object.defineProperty(bw,"__esModule",{value:!0});bw.scheduleArray=void 0;var mv=D(),gw=c0();function jv(Z,$){return new mv.Observable((J)=>{let Y=0,X=()=>{if(Y===Z.length)J.complete();else J.next(Z[Y++]),(0,gw.executeSchedule)(J,$,X)};return(0,gw.executeSchedule)(J,$,X)})}bw.scheduleArray=jv});var iw=q((lw)=>{Object.defineProperty(lw,"__esModule",{value:!0});lw.iterator=lw.getSymbolIterator=void 0;function uw(){if(typeof Symbol!=="function"||!Symbol.iterator)return"@@iterator";return Symbol.iterator}lw.getSymbolIterator=uw;lw.iterator=uw()});var Iq=q((rw)=>{Object.defineProperty(rw,"__esModule",{value:!0});rw.scheduleIterable=void 0;var nw=D(),Sv=iw(),aw=c0();function gv(Z,$){return new nw.Observable((J)=>{let Y;return(0,aw.executeSchedule)(J,$,()=>{Y=Z[Sv.iterator](),(0,aw.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,nw.isFunction)(Y?.return)&&Y.return()})}rw.scheduleIterable=gv});var Oq=q((ow)=>{Object.defineProperty(ow,"__esModule",{value:!0});ow.scheduleAsyncIterable=void 0;var bv=D(),tw=c0();function dv(Z,$){if(!Z)throw Error("Iterable cannot be null");return new bv.Observable((J)=>{(0,tw.executeSchedule)(J,$,()=>{let Y=Z[Symbol.asyncIterator]();(0,tw.executeSchedule)(J,$,()=>{Y.next().then((X)=>{if(X.done)J.complete();else J.next(X.value)})},0,!0)})})}ow.scheduleAsyncIterable=dv});var JD=q((ZD)=>{Object.defineProperty(ZD,"__esModule",{value:!0});ZD.scheduleReadableStreamLike=void 0;var cv=D(),uv=Oq();function lv(Z,$){return(0,uv.scheduleAsyncIterable)((0,cv.readableStreamLikeToAsyncGenerator)(Z),$)}ZD.scheduleReadableStreamLike=lv});var oK=q((YD)=>{Object.defineProperty(YD,"__esModule",{value:!0});YD.scheduled=void 0;var pv=mw(),iv=Sw(),nv=cw(),av=Iq(),rv=Oq(),w6=D(),sv=JD();function tv(Z,$){switch((0,w6.getObservableInputType)(Z)){case w6.ObservableInputType.Own:case w6.ObservableInputType.InteropObservable:return(0,pv.scheduleObservable)(Z,$);case w6.ObservableInputType.Promise:return(0,iv.schedulePromise)(Z,$);case w6.ObservableInputType.ArrayLike:return(0,nv.scheduleArray)(Z,$);case w6.ObservableInputType.Iterable:return(0,av.scheduleIterable)(Z,$);case w6.ObservableInputType.AsyncIterable:return(0,rv.scheduleAsyncIterable)(Z,$);case w6.ObservableInputType.ReadableStreamLike:return(0,sv.scheduleReadableStreamLike)(Z,$)}}YD.scheduled=tv});var fq=q((zD)=>{Object.defineProperty(zD,"__esModule",{value:!0});zD.bindCallbackInternals=void 0;var ov=tK(),ev=D(),ZC=xK(),$C=Hq(),JC=oK();function kq(Z,$,J,Y){if(J)if((0,ov.isScheduler)(J))Y=J;else return function(...X){return(0,ZC.mapOneOrManyArgs)(J)(kq(Z,$,Y).apply(this,X))};if(Y)return function(...X){return(0,JC.scheduled)(kq(Z,$).apply(this,X),Y)};return function(...X){let z=new $C.AsyncSubject,K=!0;return new ev.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})}}zD.bindCallbackInternals=kq});var qD=q((HD)=>{Object.defineProperty(HD,"__esModule",{value:!0});HD.bindCallback=void 0;var YC=fq();function XC(Z,$,J){return(0,YC.bindCallbackInternals)(!1,Z,$,J)}HD.bindCallback=XC});var BD=q((WD)=>{Object.defineProperty(WD,"__esModule",{value:!0});WD.bindNodeCallback=void 0;var zC=fq();function KC(Z,$,J){return(0,zC.bindCallbackInternals)(!0,Z,$,J)}WD.bindNodeCallback=KC});var Eq=q((GD)=>{Object.defineProperty(GD,"__esModule",{value:!0});GD.arrayOrObject=GD.argsArgArrayOrObject=void 0;var{isArray:HC}=Array,{getPrototypeOf:QC,prototype:qC,keys:WC}=Object;function NC(Z){if(Z.length===1){let $=Z[0],J=FD($);if(J)return J}return{args:Z,keys:null}}GD.argsArgArrayOrObject=NC;function FD(Z){if(HC(Z))return{args:Z,keys:null};if(BC(Z)){let $=WC(Z);return{args:$.map((J)=>Z[J]),keys:$}}return null}GD.arrayOrObject=FD;function BC(Z){return Z&&typeof Z==="object"&&QC(Z)===qC}});var Pq=q((wD)=>{Object.defineProperty(wD,"__esModule",{value:!0});wD.createObject=void 0;function GC(Z,$){return Z.reduce((J,Y,X)=>(J[Y]=$[X],J),{})}wD.createObject=GC});var M8=q((UD)=>{Object.defineProperty(UD,"__esModule",{value:!0});UD.EMPTY=void 0;var LC=D();UD.EMPTY=new LC.Observable((Z)=>Z.complete())});var gH=q((fD)=>{Object.defineProperty(fD,"__esModule",{value:!0});fD.combineLatestInit=fD.combineLatest=void 0;var Vq=D(),wC=Eq(),OD=v0(),DC=Pq(),UC=M8();function IC(Z,$){let J=(0,wC.arrayOrObject)(Z);if(!J)throw TypeError("sources must be an array or object");let{args:Y,keys:X}=J;if(Y.length===0)return UC.EMPTY;return new Vq.Observable(kD(Y,X?(z)=>(0,DC.createObject)(X,z):$?(z)=>$(...z):OD.identity))}fD.combineLatest=IC;function kD(Z,$=OD.identity){return(J)=>{let{length:Y}=Z,X=Array(Y),z=Y,K=Y;for(let Q=0;Q<Y;Q++){let W=(0,Vq.from)(Z[Q]),G=!1;W.subscribe((0,Vq.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()}}))}}}fD.combineLatestInit=kD});var bH=q((PD)=>{Object.defineProperty(PD,"__esModule",{value:!0});PD.mergeInternals=void 0;var xq=D(),kC=c0();function fC(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,xq.from)(J(T,L++)).subscribe((0,xq.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,kC.executeSchedule)($,K,()=>V(X0));else V(X0)}f()}catch(X0){$.error(X0)}}}))};return Z.subscribe((0,xq.operate)({destination:$,next:P,complete:()=>{O=!0,f()}})),()=>{Q?.()}}PD.mergeInternals=fC});var t$=q((xD)=>{Object.defineProperty(xD,"__esModule",{value:!0});xD.mergeMap=void 0;var EC=D(),PC=bH();function VC(Z,$=1/0){return(J)=>new EC.Observable((Y)=>(0,PC.mergeInternals)(J,Y,Z,$))}xD.mergeMap=VC});var eK=q((hD)=>{Object.defineProperty(hD,"__esModule",{value:!0});hD.mergeAll=void 0;var xC=t$(),MC=v0();function hC(Z=1/0){return(0,xC.mergeMap)(MC.identity,Z)}hD.mergeAll=hC});var dH=q((vD)=>{Object.defineProperty(vD,"__esModule",{value:!0});vD.concatAll=void 0;var AC=eK();function vC(){return(0,AC.mergeAll)(1)}vD.concatAll=vC});var D6=q((TD)=>{Object.defineProperty(TD,"__esModule",{value:!0});TD.popNumber=TD.popScheduler=TD.popResultSelector=void 0;var CC=D(),TC=tK();function Mq(Z){return Z[Z.length-1]}function RC(Z){return(0,CC.isFunction)(Mq(Z))?Z.pop():void 0}TD.popResultSelector=RC;function yC(Z){return(0,TC.isScheduler)(Mq(Z))?Z.pop():void 0}TD.popScheduler=yC;function mC(Z,$){return typeof Mq(Z)==="number"?Z.pop():$}TD.popNumber=mC});var hq=q((yD)=>{Object.defineProperty(yD,"__esModule",{value:!0});yD.concat=void 0;var SC=D(),gC=dH(),bC=D6(),dC=oK();function cC(...Z){let $=(0,bC.popScheduler)(Z);return(0,gC.concatAll)()($?(0,dC.scheduled)(Z,$):(0,SC.from)(Z))}yD.concat=cC});var ZH=q((_D)=>{Object.defineProperty(_D,"__esModule",{value:!0});_D.defer=void 0;var jD=D();function uC(Z){return new jD.Observable(($)=>{(0,jD.from)(Z()).subscribe($)})}_D.defer=uC});var dD=q((gD)=>{Object.defineProperty(gD,"__esModule",{value:!0});gD.connectable=void 0;var lC=H0(),pC=D(),iC=ZH(),nC={connector:()=>new lC.Subject,resetOnDisconnect:!0};function aC(Z,$=nC){let J=null,{connector:Y,resetOnDisconnect:X=!0}=$,z=Y(),K=new pC.Observable((Q)=>{return z.subscribe(Q)});return K.connect=()=>{if(!J||J.closed){if(J=(0,iC.defer)(()=>Z).subscribe(z),X)J.add(()=>z=Y())}return J},K}gD.connectable=aC});var lD=q((cD)=>{Object.defineProperty(cD,"__esModule",{value:!0});cD.forkJoin=void 0;var Aq=D(),rC=Eq(),sC=D6(),tC=xK(),oC=Pq(),eC=g8();function ZT(...Z){let $=(0,sC.popResultSelector)(Z),{args:J,keys:Y}=(0,rC.argsArgArrayOrObject)(Z),X=new Aq.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,Aq.from)(J[L]).subscribe((0,Aq.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,oC.createObject)(Y,Q):Q),z.complete();else z.error(new eC.EmptyError)}}))}});return $?(0,tC.mapOneOrManyArgs)($)(X):X}cD.forkJoin=ZT});var oD=q((sD)=>{Object.defineProperty(sD,"__esModule",{value:!0});sD.fromEvent=void 0;var b8=D(),$T=xK(),JT=["addListener","removeListener"],YT=["addEventListener","removeEventListener"],XT=["on","off"];function iD(Z,$,J,Y){if((0,b8.isFunction)(J))Y=J,J=void 0;if(Y)return(0,$T.mapOneOrManyArgs)(Y)(iD(Z,$,J));let X=nD(Z)||aD(Z)||rD(Z);if(!X&&!(0,b8.isArrayLike)(Z))throw TypeError("Invalid event target");return new b8.Observable((z)=>{let K=(...Q)=>z.next(1<Q.length?Q:Q[0]);if(X)pD(K,z,Z,$,J);else for(let Q=0;Q<Z.length&&!z.closed;Q++){let W=Z[Q];pD(K,z,W,$,J)}})}sD.fromEvent=iD;function pD(Z,$,J,Y,X){let[z,K]=zT(J);if(!z||!K)throw TypeError("Invalid event target");J[z](Y,Z,X),$.add(()=>J[K](Y,Z,X))}function zT(Z){return rD(Z)?YT:nD(Z)?JT:aD(Z)?XT:[]}function nD(Z){return(0,b8.isFunction)(Z.addListener)&&(0,b8.isFunction)(Z.removeListener)}function aD(Z){return(0,b8.isFunction)(Z.on)&&(0,b8.isFunction)(Z.off)}function rD(Z){return(0,b8.isFunction)(Z.addEventListener)&&(0,b8.isFunction)(Z.removeEventListener)}});var Y2=q(($2)=>{Object.defineProperty($2,"__esModule",{value:!0});$2.fromEventPattern=void 0;var eD=D(),KT=xK();function Z2(Z,$,J){if(J)return(0,KT.mapOneOrManyArgs)(J)(Z2(Z,$));return new eD.Observable((Y)=>{let X=(...K)=>Y.next(K.length===1?K[0]:K),z=Z(X);return(0,eD.isFunction)($)?()=>$(X,z):void 0})}$2.fromEventPattern=Z2});var H2=q((z2)=>{Object.defineProperty(z2,"__esModule",{value:!0});z2.generate=void 0;var X2=v0(),HT=tK(),QT=ZH(),qT=Iq();function WT(Z,$,J,Y,X){let z,K;if(arguments.length===1)({initialState:K,condition:$,iterate:J,resultSelector:z=X2.identity,scheduler:X}=Z);else if(K=Z,!Y||(0,HT.isScheduler)(Y))z=X2.identity,X=Y;else z=Y;function*Q(){for(let W=K;!$||$(W);W=J(W))yield z(W)}return(0,QT.defer)(X?()=>(0,qT.scheduleIterable)(Q(),X):Q)}z2.generate=WT});var W2=q((Q2)=>{Object.defineProperty(Q2,"__esModule",{value:!0});Q2.iif=void 0;var NT=ZH();function BT(Z,$,J){return(0,NT.defer)(()=>Z()?$:J)}Q2.iif=BT});var U6=q((B2)=>{Object.defineProperty(B2,"__esModule",{value:!0});B2.timer=void 0;var FT=D(),GT=A0(),LT=tK(),wT=mH(),N2=c0();function DT(Z=0,$,J=GT.asyncScheduler){let Y=-1;if($!=null)if((0,LT.isScheduler)($))J=$;else Y=$;return new FT.Observable((X)=>{let z=(0,wT.isValidDate)(Z)?+Z-J.now():Z;if(z<0)z=0;let K=0;return(0,N2.executeSchedule)(X,J,()=>{if(X.next(K++),0<=Y)(0,N2.executeSchedule)(X,J,()=>{X.next(K++)},Y,!0);else X.complete()},z)})}B2.timer=DT});var vq=q((G2)=>{Object.defineProperty(G2,"__esModule",{value:!0});G2.interval=void 0;var UT=A0(),IT=U6();function OT(Z=0,$=UT.asyncScheduler){if(Z<0)Z=0;return(0,IT.timer)(Z,Z,$)}G2.interval=OT});var O2=q((U2)=>{Object.defineProperty(U2,"__esModule",{value:!0});U2.merge=void 0;var w2=D(),kT=eK(),fT=M8(),D2=D6(),ET=oK();function PT(...Z){let $=(0,D2.popScheduler)(Z),J=(0,D2.popNumber)(Z,1/0),Y=Z;return!Y.length?fT.EMPTY:Y.length===1?(0,w2.from)(Y[0]):(0,kT.mergeAll)(J)($?(0,ET.scheduled)(Y,$):(0,w2.from)(Y))}U2.merge=PT});var E2=q((k2)=>{Object.defineProperty(k2,"__esModule",{value:!0});k2.of=void 0;var VT=D();function xT(...Z){return(0,VT.fromArrayLike)(Z)}k2.of=xT});var $H=q((P2)=>{Object.defineProperty(P2,"__esModule",{value:!0});P2.argsOrArgArray=void 0;var{isArray:MT}=Array;function hT(Z){return Z.length===1&&MT(Z[0])?Z[0]:Z}P2.argsOrArgArray=hT});var Tq=q((M2)=>{Object.defineProperty(M2,"__esModule",{value:!0});M2.onErrorResumeNext=void 0;var Cq=D(),AT=$H(),x2=Y0();function vT(...Z){let $=(0,AT.argsOrArgArray)(Z);return new Cq.Observable((J)=>{let Y=0,X=()=>{if(Y<$.length){let z;try{z=(0,Cq.from)($[Y++])}catch(Q){X();return}let K=(0,Cq.operate)({destination:J,error:x2.noop,complete:x2.noop});z.subscribe(K),K.add(X)}else J.complete()};X()})}M2.onErrorResumeNext=vT});var C2=q((A2)=>{Object.defineProperty(A2,"__esModule",{value:!0});A2.not=void 0;function CT(Z,$){return(J,Y)=>!Z.call($,J,Y)}A2.not=CT});var cH=q((R2)=>{Object.defineProperty(R2,"__esModule",{value:!0});R2.filter=void 0;var T2=D();function TT(Z,$){return(J)=>new T2.Observable((Y)=>{let X=0;J.subscribe((0,T2.operate)({destination:Y,next:(z)=>Z.call($,z,X++)&&Y.next(z)}))})}R2.filter=TT});var g2=q((_2)=>{Object.defineProperty(_2,"__esModule",{value:!0});_2.partition=void 0;var RT=C2(),m2=cH(),j2=D();function yT(Z,$,J){return[(0,m2.filter)($,J)((0,j2.from)(Z)),(0,m2.filter)((0,RT.not)($,J))((0,j2.from)(Z))]}_2.partition=yT});var Rq=q((d2)=>{Object.defineProperty(d2,"__esModule",{value:!0});d2.raceInit=d2.race=void 0;var uH=D(),mT=$H();function jT(...Z){return Z=(0,mT.argsOrArgArray)(Z),Z.length===1?(0,uH.from)(Z[0]):new uH.Observable(b2(Z))}d2.race=jT;function b2(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)}})))}}d2.raceInit=b2});var i2=q((l2)=>{Object.defineProperty(l2,"__esModule",{value:!0});l2.range=void 0;var ST=D(),gT=M8(),u2=c0();function bT(Z,$,J){if($==null)$=Z,Z=0;if($<=0)return gT.EMPTY;let Y=$+Z;return new ST.Observable(J?(X)=>{let z=Z,K=()=>{if(z<Y){if(X.next(z++),!X.closed)(0,u2.executeSchedule)(X,J,K)}else X.complete()};(0,u2.executeSchedule)(X,J,K)}:(X)=>{let z=Z;while(z<Y&&!X.closed)X.next(z++);X.complete()})}l2.range=bT});var r2=q((n2)=>{Object.defineProperty(n2,"__esModule",{value:!0});n2.throwError=void 0;var dT=D();function cT(Z){return new dT.Observable(($)=>{$.error(Z())})}n2.throwError=cT});var e2=q((t2)=>{Object.defineProperty(t2,"__esModule",{value:!0});t2.using=void 0;var s2=D(),uT=M8();function lT(Z,$){return new s2.Observable((J)=>{let Y=Z(),X=$(Y);return(X?(0,s2.from)(X):uT.EMPTY).subscribe(J),()=>{if(Y)Y.unsubscribe()}})}t2.using=lT});var lH=q((ZU)=>{Object.defineProperty(ZU,"__esModule",{value:!0});ZU.zip=void 0;var yq=D(),pT=$H(),iT=M8(),nT=D6();function aT(...Z){let $=(0,nT.popResultSelector)(Z),J=(0,pT.argsOrArgArray)(Z);return J.length?new yq.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,yq.from)(J[K]).subscribe((0,yq.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}}):iT.EMPTY}ZU.zip=aT});var XU=q((JU)=>{Object.defineProperty(JU,"__esModule",{value:!0});JU.NEVER=void 0;var rT=D(),sT=Y0();JU.NEVER=new rT.Observable(sT.noop)});var KU=q((zU)=>{Object.defineProperty(zU,"__esModule",{value:!0})});var mq=q((HU)=>{Object.defineProperty(HU,"__esModule",{value:!0});HU.audit=void 0;var pH=D();function tT(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()}}))})}HU.audit=tT});var NU=q((qU)=>{Object.defineProperty(qU,"__esModule",{value:!0});qU.auditTime=void 0;var oT=A0(),eT=mq(),ZR=U6();function $R(Z,$=oT.asyncScheduler){return(0,eT.audit)(()=>(0,ZR.timer)(Z,$))}qU.auditTime=$R});var GU=q((BU)=>{Object.defineProperty(BU,"__esModule",{value:!0});BU.buffer=void 0;var iH=D(),JR=Y0();function YR(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:JR.noop})),$.subscribe((0,iH.operate)({destination:J,next:(X)=>Y.push(X),complete:()=>{J.next(Y),J.complete()}})),()=>{Y=null}})}BU.buffer=YR});var UU=q((wU)=>{Object.defineProperty(wU,"__esModule",{value:!0});wU.bufferCount=void 0;var LU=D(),XR=s$();function zR(Z,$=null){return $=$??Z,(J)=>new LU.Observable((Y)=>{let X=[],z=0;J.subscribe((0,LU.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,XR.arrRemove)(X,W),Y.next(W)},complete:()=>{for(let K of X)Y.next(K);Y.complete()},finalize:()=>{X=null}}))})}wU.bufferCount=zR});var fU=q((OU)=>{Object.defineProperty(OU,"__esModule",{value:!0});OU.bufferTime=void 0;var jq=D(),KR=s$(),HR=A0(),QR=D6(),IU=c0();function qR(Z,...$){let J=(0,QR.popScheduler)($)??HR.asyncScheduler,Y=$[0]??null,X=$[1]||1/0;return(z)=>new jq.Observable((K)=>{let Q=[],W=!1,G=(f)=>{let{buffer:P,subs:V}=f;V.unsubscribe(),(0,KR.arrRemove)(Q,f),K.next(P),W&&L()},L=()=>{if(Q){let f=new jq.Subscription;K.add(f);let V={buffer:[],subs:f};Q.push(V),(0,IU.executeSchedule)(f,J,()=>G(V),Z)}};if(Y!==null&&Y>=0)(0,IU.executeSchedule)(K,J,L,Y,!0);else W=!0;L();let O=(0,jq.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)})}OU.bufferTime=qR});var xU=q((PU)=>{Object.defineProperty(PU,"__esModule",{value:!0});PU.bufferToggle=void 0;var o$=D(),EU=Y0(),WR=s$();function NR(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,WR.arrRemove)(X,K),Y.next(K),Q.unsubscribe()};Q.add((0,o$.from)($(z)).subscribe((0,o$.operate)({destination:Y,next:W,complete:EU.noop})))},complete:EU.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()}}))})}PU.bufferToggle=NR});var AU=q((MU)=>{Object.defineProperty(MU,"__esModule",{value:!0});MU.bufferWhen=void 0;var nH=D(),BR=Y0();function FR(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:BR.noop}))};z(),$.subscribe((0,nH.operate)({destination:J,next:(K)=>Y?.push(K),complete:()=>{Y&&J.next(Y),J.complete()},finalize:()=>Y=X=null}))})}MU.bufferWhen=FR});var RU=q((CU)=>{Object.defineProperty(CU,"__esModule",{value:!0});CU.catchError=void 0;var _q=D();function vU(Z){return($)=>new _q.Observable((J)=>{let Y=null,X=!1,z;if(Y=$.subscribe((0,_q.operate)({destination:J,error:(K)=>{if(z=(0,_q.from)(Z(K,vU(Z)($))),Y)Y.unsubscribe(),Y=null,z.subscribe(J);else X=!0}})),X)Y.unsubscribe(),Y=null,z.subscribe(J)})}CU.catchError=vU});var Sq=q((yU)=>{Object.defineProperty(yU,"__esModule",{value:!0});yU.scanInternals=void 0;var GR=D();function LR(Z,$,J,Y,X,z,K){let Q=J,W=$,G=0;z.subscribe((0,GR.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}))}yU.scanInternals=LR});var MK=q((jU)=>{Object.defineProperty(jU,"__esModule",{value:!0});jU.reduce=void 0;var wR=Sq(),DR=D();function UR(Z,$){let J=arguments.length>=2;return(Y)=>new DR.Observable((X)=>(0,wR.scanInternals)(Z,$,J,!1,!0,Y,X))}jU.reduce=UR});var gq=q((SU)=>{Object.defineProperty(SU,"__esModule",{value:!0});SU.toArray=void 0;var IR=MK(),OR=D(),kR=(Z,$)=>(Z.push($),Z);function fR(){return(Z)=>new OR.Observable(($)=>{(0,IR.reduce)(kR,[])(Z).subscribe($)})}SU.toArray=fR});var bq=q((bU)=>{Object.defineProperty(bU,"__esModule",{value:!0});bU.joinAllInternals=void 0;var ER=v0(),PR=xK(),VR=Bq(),xR=t$(),MR=gq();function hR(Z,$){return(0,VR.pipe)((0,MR.toArray)(),(0,xR.mergeMap)((J)=>Z(J)),$?(0,PR.mapOneOrManyArgs)($):ER.identity)}bU.joinAllInternals=hR});var lU=q((cU)=>{Object.defineProperty(cU,"__esModule",{value:!0});cU.combineLatestAll=void 0;var AR=gH(),vR=bq();function CR(Z){return(0,vR.joinAllInternals)(AR.combineLatest,Z)}cU.combineLatestAll=CR});var nU=q((pU)=>{Object.defineProperty(pU,"__esModule",{value:!0});pU.combineLatestWith=void 0;var TR=gH(),RR=D();function yR(...Z){return($)=>new RR.Observable((J)=>(0,TR.combineLatestInit)([$,...Z])(J))}pU.combineLatestWith=yR});var dq=q((aU)=>{Object.defineProperty(aU,"__esModule",{value:!0});aU.concatMap=void 0;var mR=t$();function jR(Z){return(0,mR.mergeMap)(Z,1)}aU.concatMap=jR});var oU=q((sU)=>{Object.defineProperty(sU,"__esModule",{value:!0});sU.concatMapTo=void 0;var _R=dq();function SR(Z){return(0,_R.concatMap)(()=>Z)}sU.concatMapTo=SR});var JI=q((ZI)=>{Object.defineProperty(ZI,"__esModule",{value:!0});ZI.concatWith=void 0;var eU=D(),gR=dH();function bR(...Z){return($)=>new eU.Observable((J)=>{(0,gR.concatAll)()((0,eU.from)([$,...Z])).subscribe(J)})}ZI.concatWith=bR});var zI=q((YI)=>{Object.defineProperty(YI,"__esModule",{value:!0});YI.fromSubscribable=void 0;var dR=D();function cR(Z){return new dR.Observable(($)=>Z.subscribe($))}YI.fromSubscribable=cR});var qI=q((HI)=>{Object.defineProperty(HI,"__esModule",{value:!0});HI.connect=void 0;var KI=D(),uR=H0(),lR=zI(),pR={connector:()=>new uR.Subject};function iR(Z,$=pR){let{connector:J}=$;return(Y)=>new KI.Observable((X)=>{let z=J();(0,KI.from)(Z((0,lR.fromSubscribable)(z))).subscribe(X),X.add(Y.subscribe(z))})}HI.connect=iR});var BI=q((WI)=>{Object.defineProperty(WI,"__esModule",{value:!0});WI.count=void 0;var nR=MK();function aR(Z){return(0,nR.reduce)(($,J,Y)=>!Z||Z(J,Y)?$+1:$,0)}WI.count=aR});var LI=q((FI)=>{Object.defineProperty(FI,"__esModule",{value:!0});FI.debounce=void 0;var aH=D(),rR=Y0();function sR(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:rR.noop}),(0,aH.from)(Z(Q)).subscribe(z)},complete:()=>{K(),J.complete()},finalize:()=>{X=z=null}}))})}FI.debounce=sR});var II=q((DI)=>{Object.defineProperty(DI,"__esModule",{value:!0});DI.debounceTime=void 0;var tR=A0(),wI=D(),oR=c0();function eR(Z,$=tR.asyncScheduler){return(J)=>new wI.Observable((Y)=>{let X,z;J.subscribe((0,wI.operate)({destination:Y,next:(K)=>{X=K,z?.unsubscribe(),z=(0,oR.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}}))})}DI.debounceTime=eR});var EI=q((kI)=>{Object.defineProperty(kI,"__esModule",{value:!0});kI.defaultIfEmpty=void 0;var OI=D();function Zy(Z){return($)=>new OI.Observable((J)=>{let Y=!1;$.subscribe((0,OI.operate)({destination:J,next:(X)=>{Y=!0,J.next(X)},complete:()=>{if(!Y)J.next(Z);J.complete()}}))})}kI.defaultIfEmpty=Zy});var cq=q((VI)=>{Object.defineProperty(VI,"__esModule",{value:!0});VI.take=void 0;var $y=M8(),PI=D();function Jy(Z){return Z<=0?()=>$y.EMPTY:($)=>new PI.Observable((J)=>{let Y=0,X=(0,PI.operate)({destination:J,next:(z)=>{if(++Y<Z)J.next(z);else X.unsubscribe(),J.next(z),J.complete()}});$.subscribe(X)})}VI.take=Jy});var uq=q((hI)=>{Object.defineProperty(hI,"__esModule",{value:!0});hI.ignoreElements=void 0;var MI=D(),Yy=Y0();function Xy(){return(Z)=>new MI.Observable(($)=>{Z.subscribe((0,MI.operate)({destination:$,next:Yy.noop}))})}hI.ignoreElements=Xy});var pq=q((TI)=>{Object.defineProperty(TI,"__esModule",{value:!0});TI.delayWhen=void 0;var zy=hq(),vI=cq(),Ky=uq(),Hy=t$(),lq=Nq(),Qy=VK();function CI(Z,$){if($)return(J)=>(0,zy.concat)((0,lq.rx)($,(0,vI.take)(1),(0,Ky.ignoreElements)()),(0,lq.rx)(J,CI(Z)));return(0,Hy.mergeMap)((J,Y)=>(0,lq.rx)(Z(J,Y),(0,vI.take)(1),(0,Qy.map)(()=>J)))}TI.delayWhen=CI});var jI=q((yI)=>{Object.defineProperty(yI,"__esModule",{value:!0});yI.delay=void 0;var qy=A0(),Wy=pq(),Ny=U6();function By(Z,$=qy.asyncScheduler){let J=(0,Ny.timer)(Z,$);return(0,Wy.delayWhen)(()=>J)}yI.delay=By});var gI=q((_I)=>{Object.defineProperty(_I,"__esModule",{value:!0});_I.observeNotification=void 0;function Fy(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?.()}_I.observeNotification=Fy});var uI=q((dI)=>{Object.defineProperty(dI,"__esModule",{value:!0});dI.dematerialize=void 0;var Gy=gI(),bI=D();function Ly(){return(Z)=>new bI.Observable(($)=>{Z.subscribe((0,bI.operate)({destination:$,next:(J)=>(0,Gy.observeNotification)(J,$)}))})}dI.dematerialize=Ly});var iI=q((lI)=>{Object.defineProperty(lI,"__esModule",{value:!0});lI.distinct=void 0;var rH=D(),wy=Y0();function Dy(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:wy.noop}))})}lI.distinct=Dy});var iq=q((aI)=>{Object.defineProperty(aI,"__esModule",{value:!0});aI.distinctUntilChanged=void 0;var Uy=v0(),nI=D();function Iy(Z,$=Uy.identity){return Z=Z??Oy,(J)=>new nI.Observable((Y)=>{let X,z=!0;J.subscribe((0,nI.operate)({destination:Y,next:(K)=>{let Q=$(K);if(z||!Z(X,Q))z=!1,X=Q,Y.next(K)}}))})}aI.distinctUntilChanged=Iy;function Oy(Z,$){return Z===$}});var oI=q((sI)=>{Object.defineProperty(sI,"__esModule",{value:!0});sI.distinctUntilKeyChanged=void 0;var ky=iq();function fy(Z,$){return(0,ky.distinctUntilChanged)((J,Y)=>$?$(J[Z],Y[Z]):J[Z]===Y[Z])}sI.distinctUntilKeyChanged=fy});var YO=q(($O)=>{Object.defineProperty($O,"__esModule",{value:!0});$O.elementAt=void 0;var eI=Fq(),ZO=D();function Ey(Z,$){if(Z<0)throw new eI.ArgumentOutOfRangeError;let J=arguments.length>=2;return(Y)=>new ZO.Observable((X)=>{let z=0,K=(0,ZO.operate)({destination:X,next:(Q)=>{if(z++===Z)K.unsubscribe(),X.next(Q),X.complete()},complete:()=>{if(!J)X.error(new eI.ArgumentOutOfRangeError);else X.next($),X.complete()}});Y.subscribe(K)})}$O.elementAt=Ey});var KO=q((XO)=>{Object.defineProperty(XO,"__esModule",{value:!0});XO.endWith=void 0;var nq=D();function Py(...Z){return($)=>new nq.Observable((J)=>{$.subscribe((0,nq.operate)({destination:J,complete:()=>{(0,nq.subscribeToArray)(Z,J)}}))})}XO.endWith=Py});var WO=q((QO)=>{Object.defineProperty(QO,"__esModule",{value:!0});QO.every=void 0;var HO=D();function Vy(Z,$){return(J)=>new HO.Observable((Y)=>{let X=0;J.subscribe((0,HO.operate)({destination:Y,next:(z)=>{if(!Z.call($,z,X++,J))Y.next(!1),Y.complete()},complete:()=>{Y.next(!0),Y.complete()}}))})}QO.every=Vy});var aq=q((NO)=>{Object.defineProperty(NO,"__esModule",{value:!0});NO.exhaustMap=void 0;var sH=D();function xy(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()}}))})}NO.exhaustMap=xy});var LO=q((FO)=>{Object.defineProperty(FO,"__esModule",{value:!0});FO.exhaustAll=void 0;var My=aq(),hy=v0();function Ay(){return(0,My.exhaustMap)(hy.identity)}FO.exhaustAll=Ay});var UO=q((wO)=>{Object.defineProperty(wO,"__esModule",{value:!0});wO.expand=void 0;var vy=D(),Cy=bH();function Ty(Z,$=1/0,J){return $=($||0)<1?1/0:$,(Y)=>new vy.Observable((X)=>(0,Cy.mergeInternals)(Y,X,Z,$,void 0,!0,J))}wO.expand=Ty});var kO=q((IO)=>{Object.defineProperty(IO,"__esModule",{value:!0});IO.finalize=void 0;var Ry=D();function yy(Z){return($)=>new Ry.Observable((J)=>{$.subscribe(J),J.add(Z)})}IO.finalize=yy});var rq=q((PO)=>{Object.defineProperty(PO,"__esModule",{value:!0});PO.createFind=PO.find=void 0;var fO=D();function my(Z){return($)=>new fO.Observable((J)=>EO(Z,"value",$,J))}PO.find=my;function EO(Z,$,J,Y){let X=$==="index",z=0;J.subscribe((0,fO.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()}}))}PO.createFind=EO});var hO=q((xO)=>{Object.defineProperty(xO,"__esModule",{value:!0});xO.findIndex=void 0;var _y=D(),Sy=rq();function gy(Z){return($)=>new _y.Observable((J)=>(0,Sy.createFind)(Z,"index",$,J))}xO.findIndex=gy});var TO=q((vO)=>{Object.defineProperty(vO,"__esModule",{value:!0});vO.first=void 0;var AO=D(),by=g8();function dy(Z,$){let J=arguments.length>=2;return(Y)=>new AO.Observable((X)=>{let z=0,K=(0,AO.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 by.EmptyError)}});Y.subscribe(K)})}vO.first=dy});var mO=q((RO)=>{Object.defineProperty(RO,"__esModule",{value:!0});RO.groupBy=void 0;var JH=D(),cy=H0();function uy(Z,$,J,Y){return(X)=>new JH.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,JH.operate)({destination:z,next:(f)=>{try{let P=Z(f),V=Q.get(P);if(!V){Q.set(P,V=Y?Y():new cy.Subject);let T=O(P,V);if(z.next(T),J){let E0=(0,JH.operate)({destination:V,next:()=>{V.complete(),E0?.unsubscribe()},finalize:()=>Q.delete(P)});L.add((0,JH.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 JH.Observable((T)=>P.subscribe(T));return V.key=f,V}})}RO.groupBy=uy});var gO=q((_O)=>{Object.defineProperty(_O,"__esModule",{value:!0});_O.isEmpty=void 0;var jO=D();function ly(){return(Z)=>new jO.Observable(($)=>{Z.subscribe((0,jO.operate)({destination:$,next:()=>{$.next(!1),$.complete()},complete:()=>{$.next(!0),$.complete()}}))})}_O.isEmpty=ly});var uO=q((dO)=>{Object.defineProperty(dO,"__esModule",{value:!0});dO.last=void 0;var bO=D(),py=g8();function iy(Z,$){let J=arguments.length>=2;return(Y)=>new bO.Observable((X)=>{let z=0,K=!1,Q;Y.subscribe((0,bO.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 py.EmptyError)}}))})}dO.last=iy});var iO=q((lO)=>{Object.defineProperty(lO,"__esModule",{value:!0});lO.mapTo=void 0;var ny=VK();function ay(Z){return(0,ny.map)(()=>Z)}lO.mapTo=ay});var rO=q((nO)=>{Object.defineProperty(nO,"__esModule",{value:!0});nO.materialize=void 0;var YH=D();function ry(){return(Z)=>new YH.Observable(($)=>{Z.subscribe((0,YH.operate)({destination:$,next:(J)=>{$.next((0,YH.nextNotification)(J))},error:(J)=>{$.next((0,YH.errorNotification)(J)),$.complete()},complete:()=>{$.next(YH.COMPLETE_NOTIFICATION),$.complete()}}))})}nO.materialize=ry});var oO=q((sO)=>{Object.defineProperty(sO,"__esModule",{value:!0});sO.max=void 0;var sy=MK(),ty=D();function oy(Z){return(0,sy.reduce)((0,ty.isFunction)(Z)?($,J)=>Z($,J)>0?$:J:($,J)=>$>J?$:J)}sO.max=oy});var $k=q((eO)=>{Object.defineProperty(eO,"__esModule",{value:!0});eO.mergeMapTo=void 0;var ey=t$();function Zm(Z,$){return(0,ey.mergeMap)(()=>Z,$)}eO.mergeMapTo=Zm});var Xk=q((Jk)=>{Object.defineProperty(Jk,"__esModule",{value:!0});Jk.mergeScan=void 0;var $m=D(),Jm=bH();function Ym(Z,$,J=1/0){return(Y)=>new $m.Observable((X)=>{let z=$;return(0,Jm.mergeInternals)(Y,X,(K,Q)=>Z(z,K,Q),J,(K)=>{z=K},!1,void 0,()=>z=null)})}Jk.mergeScan=Ym});var Qk=q((Kk)=>{Object.defineProperty(Kk,"__esModule",{value:!0});Kk.mergeWith=void 0;var zk=D(),Xm=eK();function zm(...Z){return($)=>new zk.Observable((J)=>{(0,Xm.mergeAll)()((0,zk.from)([$,...Z])).subscribe(J)})}Kk.mergeWith=zm});var Nk=q((qk)=>{Object.defineProperty(qk,"__esModule",{value:!0});qk.min=void 0;var Km=MK(),Hm=D();function Qm(Z){return(0,Km.reduce)((0,Hm.isFunction)(Z)?($,J)=>Z($,J)<0?$:J:($,J)=>$<J?$:J)}qk.min=Qm});var Gk=q((Bk)=>{Object.defineProperty(Bk,"__esModule",{value:!0});Bk.onErrorResumeNextWith=void 0;var qm=$H(),Wm=Tq();function Nm(...Z){let $=(0,qm.argsOrArgArray)(Z);return(J)=>(0,Wm.onErrorResumeNext)(J,...$)}Bk.onErrorResumeNextWith=Nm});var Uk=q((wk)=>{Object.defineProperty(wk,"__esModule",{value:!0});wk.pairwise=void 0;var Lk=D();function Bm(){return(Z)=>new Lk.Observable(($)=>{let J,Y=!1;Z.subscribe((0,Lk.operate)({destination:$,next:(X)=>{let z=J;J=X,Y&&$.next([z,X]),Y=!0}}))})}wk.pairwise=Bm});var kk=q((Ik)=>{Object.defineProperty(Ik,"__esModule",{value:!0});Ik.raceWith=void 0;var Fm=Rq(),Gm=D(),Lm=v0();function wm(...Z){return!Z.length?Lm.identity:($)=>new Gm.Observable((J)=>{(0,Fm.raceInit)([$,...Z])(J)})}Ik.raceWith=wm});var Pk=q((fk)=>{Object.defineProperty(fk,"__esModule",{value:!0});fk.repeat=void 0;var tH=D(),Dm=M8(),Um=U6();function Im(Z){let $=1/0,J;if(Z!=null)if(typeof Z==="object")({count:$=1/0,delay:J}=Z);else $=Z;return $<=0?()=>Dm.EMPTY:(Y)=>new tH.Observable((X)=>{let z=0,K,Q=()=>{if(K?.unsubscribe(),K=null,J!=null){let G=typeof J==="number"?(0,Um.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()})}fk.repeat=Im});var Mk=q((Vk)=>{Object.defineProperty(Vk,"__esModule",{value:!0});Vk.repeatWhen=void 0;var oH=D(),Om=H0();function km(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 Om.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()})}Vk.repeatWhen=km});var vk=q((hk)=>{Object.defineProperty(hk,"__esModule",{value:!0});hk.retry=void 0;var eH=D(),fm=v0(),Em=U6();function Pm(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?fm.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,Em.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()})}hk.retry=Pm});var Rk=q((Ck)=>{Object.defineProperty(Ck,"__esModule",{value:!0});Ck.retryWhen=void 0;var ZQ=D(),Vm=H0();function xm(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 Vm.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()})}Ck.retryWhen=xm});var sq=q((yk)=>{Object.defineProperty(yk,"__esModule",{value:!0});yk.sample=void 0;var $Q=D(),Mm=Y0();function hm(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:Mm.noop}))})}yk.sample=hm});var Sk=q((jk)=>{Object.defineProperty(jk,"__esModule",{value:!0});jk.sampleTime=void 0;var Am=A0(),vm=sq(),Cm=vq();function Tm(Z,$=Am.asyncScheduler){return(0,vm.sample)((0,Cm.interval)(Z,$))}jk.sampleTime=Tm});var dk=q((gk)=>{Object.defineProperty(gk,"__esModule",{value:!0});gk.scan=void 0;var Rm=D(),ym=Sq();function mm(Z,$){let J=arguments.length>=2;return(Y)=>new Rm.Observable((X)=>(0,ym.scanInternals)(Z,$,J,!0,!1,Y,X))}gk.scan=mm});var pk=q((uk)=>{Object.defineProperty(uk,"__esModule",{value:!0});uk.sequenceEqual=void 0;var tq=D();function jm(Z,$=(J,Y)=>J===Y){return(J)=>new tq.Observable((Y)=>{let X=ck(),z=ck(),K=(W)=>{Y.next(W),Y.complete()},Q=(W,G)=>{let L=(0,tq.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,tq.from)(Z).subscribe(Q(z,X))})}uk.sequenceEqual=jm;function ck(){return{buffer:[],complete:!1}}});var eq=q((ik)=>{Object.defineProperty(ik,"__esModule",{value:!0});ik.share=void 0;var XH=D(),_m=H0();function Sm(Z={}){let{connector:$=()=>new _m.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 XH.Observable((T)=>{if(G++,!O&&!L)f();let E0=W=W??$();if(T.add(()=>{if(G--,G===0&&!O&&!L)Q=oq(V,X)}),E0.subscribe(T),!K&&G>0)K=new XH.Subscriber({next:(X0)=>E0.next(X0),error:(X0)=>{O=!0,f(),Q=oq(P,J,X0),E0.error(X0)},complete:()=>{L=!0,f(),Q=oq(P,Y),E0.complete()}}),(0,XH.from)(z).subscribe(K)})}}ik.share=Sm;function oq(Z,$,...J){if($===!0){Z();return}if($===!1)return;let Y=new XH.Subscriber({next:()=>{Y.unsubscribe(),Z()}});return(0,XH.from)($(...J)).subscribe(Y)}});var sk=q((ak)=>{Object.defineProperty(ak,"__esModule",{value:!0});ak.shareReplay=void 0;var gm=Kq(),bm=eq();function dm(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,bm.share)({connector:()=>new gm.ReplaySubject(Y,$,J),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:X})}ak.shareReplay=dm});var Zf=q((ok)=>{Object.defineProperty(ok,"__esModule",{value:!0});ok.single=void 0;var tk=D(),cm=g8(),um=Lq(),lm=Gq();function pm(Z){return($)=>new tk.Observable((J)=>{let Y=!1,X,z=!1,K=0;$.subscribe((0,tk.operate)({destination:J,next:(Q)=>{if(z=!0,!Z||Z(Q,K++,$))Y&&J.error(new um.SequenceError("Too many matching values")),Y=!0,X=Q},complete:()=>{if(Y)J.next(X),J.complete();else J.error(z?new lm.NotFoundError("No matching values"):new cm.EmptyError)}}))})}ok.single=pm});var Yf=q(($f)=>{Object.defineProperty($f,"__esModule",{value:!0});$f.skip=void 0;var im=cH();function nm(Z){return(0,im.filter)(($,J)=>Z<=J)}$f.skip=nm});var Hf=q((zf)=>{Object.defineProperty(zf,"__esModule",{value:!0});zf.skipLast=void 0;var am=v0(),Xf=D();function rm(Z){return Z<=0?am.identity:($)=>new Xf.Observable((J)=>{let Y=Array(Z),X=0;return $.subscribe((0,Xf.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}})}zf.skipLast=rm});var Wf=q((Qf)=>{Object.defineProperty(Qf,"__esModule",{value:!0});Qf.skipUntil=void 0;var JQ=D(),sm=Y0();function tm(Z){return($)=>new JQ.Observable((J)=>{let Y=!1,X=(0,JQ.operate)({destination:J,next:()=>{X?.unsubscribe(),Y=!0},complete:sm.noop});(0,JQ.from)(Z).subscribe(X),$.subscribe((0,JQ.operate)({destination:J,next:(z)=>Y&&J.next(z)}))})}Qf.skipUntil=tm});var Gf=q((Bf)=>{Object.defineProperty(Bf,"__esModule",{value:!0});Bf.skipWhile=void 0;var Nf=D();function om(Z){return($)=>new Nf.Observable((J)=>{let Y=!1,X=0;$.subscribe((0,Nf.operate)({destination:J,next:(z)=>(Y||(Y=!Z(z,X++)))&&J.next(z)}))})}Bf.skipWhile=om});var Df=q((Lf)=>{Object.defineProperty(Lf,"__esModule",{value:!0});Lf.startWith=void 0;var ZW=D();function em(...Z){return($)=>new ZW.Observable((J)=>{(0,ZW.subscribeToArray)(Z,(0,ZW.operate)({destination:J,complete:()=>$.subscribe(J)}))})}Lf.startWith=em});var zH=q((Uf)=>{Object.defineProperty(Uf,"__esModule",{value:!0});Uf.switchMap=void 0;var YQ=D();function Zj(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()}}))})}Uf.switchMap=Zj});var ff=q((Of)=>{Object.defineProperty(Of,"__esModule",{value:!0});Of.switchAll=void 0;var $j=zH(),Jj=v0();function Yj(){return(0,$j.switchMap)(Jj.identity)}Of.switchAll=Yj});var Vf=q((Ef)=>{Object.defineProperty(Ef,"__esModule",{value:!0});Ef.switchMapTo=void 0;var Xj=zH();function zj(Z){return(0,Xj.switchMap)(()=>Z)}Ef.switchMapTo=zj});var Af=q((Mf)=>{Object.defineProperty(Mf,"__esModule",{value:!0});Mf.switchScan=void 0;var Kj=zH(),xf=D();function Hj(Z,$){return(J)=>new xf.Observable((Y)=>{let X=$;return(0,Kj.switchMap)((z,K)=>Z(X,z,K))(J).subscribe((0,xf.operate)({destination:Y,next:(z)=>{X=z,Y.next(z)}})),()=>{X=null}})}Mf.switchScan=Hj});var Rf=q((Cf)=>{Object.defineProperty(Cf,"__esModule",{value:!0});Cf.takeLast=void 0;var Qj=M8(),vf=D();function qj(Z){return Z<=0?()=>Qj.EMPTY:($)=>new vf.Observable((J)=>{let Y=Array(Z),X=0;$.subscribe((0,vf.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}}))})}Cf.takeLast=qj});var jf=q((yf)=>{Object.defineProperty(yf,"__esModule",{value:!0});yf.takeUntil=void 0;var $W=D(),Wj=Y0();function Nj(Z){return($)=>new $W.Observable((J)=>{(0,$W.from)(Z).subscribe((0,$W.operate)({destination:J,next:()=>J.complete(),complete:Wj.noop})),!J.closed&&$.subscribe(J)})}yf.takeUntil=Nj});var bf=q((Sf)=>{Object.defineProperty(Sf,"__esModule",{value:!0});Sf.takeWhile=void 0;var _f=D();function Bj(Z,$=!1){return(J)=>new _f.Observable((Y)=>{let X=0,z=(0,_f.operate)({destination:Y,next:(K)=>{if(Z(K,X++))Y.next(K);else{if(z.unsubscribe(),$)Y.next(K);Y.complete()}}});J.subscribe(z)})}Sf.takeWhile=Bj});var uf=q((df)=>{Object.defineProperty(df,"__esModule",{value:!0});df.tap=void 0;var JW=D(),Fj=v0();function Gj(Z){let $=(0,JW.isFunction)(Z)?{next:Z}:Z;return $?(J)=>new JW.Observable((Y)=>{$.subscribe?.();let X=!0;J.subscribe((0,JW.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?.()}}))}):Fj.identity}df.tap=Gj});var YW=q((lf)=>{Object.defineProperty(lf,"__esModule",{value:!0});lf.throttle=void 0;var XQ=D();function Lj(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()}}))})}lf.throttle=Lj});var rf=q((nf)=>{Object.defineProperty(nf,"__esModule",{value:!0});nf.throttleTime=void 0;var wj=A0(),Dj=YW(),Uj=U6();function Ij(Z,$=wj.asyncScheduler,J){let Y=(0,Uj.timer)(Z,$);return(0,Dj.throttle)(()=>Y,J)}nf.throttleTime=Ij});var ef=q((tf)=>{Object.defineProperty(tf,"__esModule",{value:!0});tf.throwIfEmpty=void 0;var Oj=g8(),sf=D();function kj(Z=fj){return($)=>new sf.Observable((J)=>{let Y=!1;$.subscribe((0,sf.operate)({destination:J,next:(X)=>{Y=!0,J.next(X)},complete:()=>Y?J.complete():J.error(Z())}))})}tf.throwIfEmpty=kj;function fj(){return new Oj.EmptyError}});var YE=q(($E)=>{Object.defineProperty($E,"__esModule",{value:!0});$E.TimeInterval=$E.timeInterval=void 0;var Ej=A0(),ZE=D();function Pj(Z=Ej.asyncScheduler){return($)=>new ZE.Observable((J)=>{let Y=Z.now();$.subscribe((0,ZE.operate)({destination:J,next:(X)=>{let z=Z.now(),K=z-Y;Y=z,J.next(new XW(X,K))}}))})}$E.timeInterval=Pj;class XW{value;interval;constructor(Z,$){this.value=Z,this.interval=$}}$E.TimeInterval=XW});var KE=q((XE)=>{Object.defineProperty(XE,"__esModule",{value:!0});XE.timeoutWith=void 0;var xj=A0(),Mj=mH(),hj=jH();function Aj(Z,$,J){let Y,X,z;if(J=J??xj.asyncScheduler,(0,Mj.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,hj.timeout)({first:Y,each:X,scheduler:J,with:z})}XE.timeoutWith=Aj});var qE=q((HE)=>{Object.defineProperty(HE,"__esModule",{value:!0});HE.timestamp=void 0;var vj=CH(),Cj=VK();function Tj(Z=vj.dateTimestampProvider){return(0,Cj.map)(($)=>({value:$,timestamp:Z.now()}))}HE.timestamp=Tj});var FE=q((NE)=>{Object.defineProperty(NE,"__esModule",{value:!0});NE.window=void 0;var zQ=D(),WE=H0(),Rj=Y0();function yj(Z){return($)=>new zQ.Observable((J)=>{let Y=new WE.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 WE.Subject)},complete:Rj.noop,error:X})),()=>{Y?.unsubscribe(),Y=null}})}NE.window=yj});var UE=q((wE)=>{Object.defineProperty(wE,"__esModule",{value:!0});wE.windowCount=void 0;var GE=D(),LE=H0();function mj(Z,$=0){let J=$>0?$:Z;return(Y)=>new GE.Observable((X)=>{let z=[new LE.Subject],K=[],Q=0;X.next(z[0].asObservable()),Y.subscribe((0,GE.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 LE.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}}))})}wE.windowCount=mj});var fE=q((OE)=>{Object.defineProperty(OE,"__esModule",{value:!0});OE.windowTime=void 0;var jj=H0(),_j=A0(),zW=D(),Sj=s$(),gj=D6(),IE=c0();function bj(Z,...$){let J=(0,gj.popScheduler)($)??_j.asyncScheduler,Y=$[0]??null,X=$[1]||1/0;return(z)=>new zW.Observable((K)=>{let Q=[],W=!1,G=(P)=>{let{window:V,subs:T}=P;V.complete(),T.unsubscribe(),(0,Sj.arrRemove)(Q,P),W&&L()},L=()=>{if(Q){let P=new zW.Subscription;K.add(P);let V=new jj.Subject,T={window:V,subs:P,seen:0};Q.push(T),K.next(V.asObservable()),(0,IE.executeSchedule)(P,J,()=>G(T),Z)}};if(Y!==null&&Y>=0)(0,IE.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,zW.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}})}OE.windowTime=bj});var xE=q((PE)=>{Object.defineProperty(PE,"__esModule",{value:!0});PE.windowToggle=void 0;var e$=D(),dj=H0(),EE=Y0(),cj=s$();function uj(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 dj.Subject;X.push(Q);let W=new e$.Subscription,G=()=>{(0,cj.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:EE.noop})))},complete:EE.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()}}))})}PE.windowToggle=uj});var AE=q((ME)=>{Object.defineProperty(ME,"__esModule",{value:!0});ME.windowWhen=void 0;var KQ=D(),lj=H0(),pj=Y0();function ij(Z){return($)=>new KQ.Observable((J)=>{let Y,X,z=(Q)=>{Y.error(Q),J.error(Q)},K=()=>{X?.unsubscribe(),Y?.complete(),Y=new lj.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:pj.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}}))})}ME.windowWhen=ij});var TE=q((vE)=>{Object.defineProperty(vE,"__esModule",{value:!0});vE.withLatestFrom=void 0;var HQ=D(),nj=v0(),aj=Y0(),rj=D6();function sj(...Z){let $=(0,rj.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(nj.identity))&&(K=null)},complete:aj.noop}));J.subscribe((0,HQ.operate)({destination:Y,next:(W)=>{if(Q){let G=[W,...z];Y.next($?$(...G):G)}}}))})}vE.withLatestFrom=sj});var mE=q((RE)=>{Object.defineProperty(RE,"__esModule",{value:!0});RE.zipAll=void 0;var tj=lH(),oj=bq();function ej(Z){return(0,oj.joinAllInternals)(tj.zip,Z)}RE.zipAll=ej});var SE=q((jE)=>{Object.defineProperty(jE,"__esModule",{value:!0});jE.zipWith=void 0;var Z_=D(),$_=lH();function J_(...Z){return($)=>new Z_.Observable((J)=>{(0,$_.zip)($,...Z).subscribe(J)})}jE.zipWith=J_});var bE=q((H)=>{var Y_=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]}),X_=H&&H.__exportStar||function(Z,$){for(var J in Z)if(J!=="default"&&!Object.prototype.hasOwnProperty.call($,J))Y_($,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 I6=D();Object.defineProperty(H,"Observable",{enumerable:!0,get:function(){return I6.Observable}});Object.defineProperty(H,"from",{enumerable:!0,get:function(){return I6.from}});Object.defineProperty(H,"config",{enumerable:!0,get:function(){return I6.config}});Object.defineProperty(H,"Subscription",{enumerable:!0,get:function(){return I6.Subscription}});Object.defineProperty(H,"Subscriber",{enumerable:!0,get:function(){return I6.Subscriber}});Object.defineProperty(H,"operate",{enumerable:!0,get:function(){return I6.operate}});Object.defineProperty(H,"UnsubscriptionError",{enumerable:!0,get:function(){return I6.UnsubscriptionError}});Object.defineProperty(H,"isObservable",{enumerable:!0,get:function(){return I6.isObservable}});var z_=DG();Object.defineProperty(H,"animationFrames",{enumerable:!0,get:function(){return z_.animationFrames}});var K_=H0();Object.defineProperty(H,"Subject",{enumerable:!0,get:function(){return K_.Subject}});var H_=PG();Object.defineProperty(H,"BehaviorSubject",{enumerable:!0,get:function(){return H_.BehaviorSubject}});var Q_=Kq();Object.defineProperty(H,"ReplaySubject",{enumerable:!0,get:function(){return Q_.ReplaySubject}});var q_=Hq();Object.defineProperty(H,"AsyncSubject",{enumerable:!0,get:function(){return q_.AsyncSubject}});var W_=FL();Object.defineProperty(H,"asapScheduler",{enumerable:!0,get:function(){return W_.asapScheduler}});var N_=A0();Object.defineProperty(H,"asyncScheduler",{enumerable:!0,get:function(){return N_.asyncScheduler}});var B_=xL();Object.defineProperty(H,"queueScheduler",{enumerable:!0,get:function(){return B_.queueScheduler}});var F_=SL();Object.defineProperty(H,"animationFrameScheduler",{enumerable:!0,get:function(){return F_.animationFrameScheduler}});var gE=cL();Object.defineProperty(H,"VirtualTimeScheduler",{enumerable:!0,get:function(){return gE.VirtualTimeScheduler}});Object.defineProperty(H,"VirtualAction",{enumerable:!0,get:function(){return gE.VirtualAction}});var G_=Wq();Object.defineProperty(H,"Scheduler",{enumerable:!0,get:function(){return G_.Scheduler}});var L_=Nq();Object.defineProperty(H,"rx",{enumerable:!0,get:function(){return L_.rx}});var w_=Bq();Object.defineProperty(H,"pipe",{enumerable:!0,get:function(){return w_.pipe}});var D_=Y0();Object.defineProperty(H,"noop",{enumerable:!0,get:function(){return D_.noop}});var U_=v0();Object.defineProperty(H,"identity",{enumerable:!0,get:function(){return U_.identity}});var I_=Jw();Object.defineProperty(H,"lastValueFrom",{enumerable:!0,get:function(){return I_.lastValueFrom}});var O_=zw();Object.defineProperty(H,"firstValueFrom",{enumerable:!0,get:function(){return O_.firstValueFrom}});var k_=Fq();Object.defineProperty(H,"ArgumentOutOfRangeError",{enumerable:!0,get:function(){return k_.ArgumentOutOfRangeError}});var f_=g8();Object.defineProperty(H,"EmptyError",{enumerable:!0,get:function(){return f_.EmptyError}});var E_=Gq();Object.defineProperty(H,"NotFoundError",{enumerable:!0,get:function(){return E_.NotFoundError}});var P_=Lq();Object.defineProperty(H,"SequenceError",{enumerable:!0,get:function(){return P_.SequenceError}});var V_=jH();Object.defineProperty(H,"TimeoutError",{enumerable:!0,get:function(){return V_.TimeoutError}});var x_=qD();Object.defineProperty(H,"bindCallback",{enumerable:!0,get:function(){return x_.bindCallback}});var M_=BD();Object.defineProperty(H,"bindNodeCallback",{enumerable:!0,get:function(){return M_.bindNodeCallback}});var h_=gH();Object.defineProperty(H,"combineLatest",{enumerable:!0,get:function(){return h_.combineLatest}});var A_=hq();Object.defineProperty(H,"concat",{enumerable:!0,get:function(){return A_.concat}});var v_=dD();Object.defineProperty(H,"connectable",{enumerable:!0,get:function(){return v_.connectable}});var C_=ZH();Object.defineProperty(H,"defer",{enumerable:!0,get:function(){return C_.defer}});var T_=lD();Object.defineProperty(H,"forkJoin",{enumerable:!0,get:function(){return T_.forkJoin}});var R_=oD();Object.defineProperty(H,"fromEvent",{enumerable:!0,get:function(){return R_.fromEvent}});var y_=Y2();Object.defineProperty(H,"fromEventPattern",{enumerable:!0,get:function(){return y_.fromEventPattern}});var m_=H2();Object.defineProperty(H,"generate",{enumerable:!0,get:function(){return m_.generate}});var j_=W2();Object.defineProperty(H,"iif",{enumerable:!0,get:function(){return j_.iif}});var __=vq();Object.defineProperty(H,"interval",{enumerable:!0,get:function(){return __.interval}});var S_=O2();Object.defineProperty(H,"merge",{enumerable:!0,get:function(){return S_.merge}});var g_=E2();Object.defineProperty(H,"of",{enumerable:!0,get:function(){return g_.of}});var b_=Tq();Object.defineProperty(H,"onErrorResumeNext",{enumerable:!0,get:function(){return b_.onErrorResumeNext}});var d_=g2();Object.defineProperty(H,"partition",{enumerable:!0,get:function(){return d_.partition}});var c_=Rq();Object.defineProperty(H,"race",{enumerable:!0,get:function(){return c_.race}});var u_=i2();Object.defineProperty(H,"range",{enumerable:!0,get:function(){return u_.range}});var l_=r2();Object.defineProperty(H,"throwError",{enumerable:!0,get:function(){return l_.throwError}});var p_=U6();Object.defineProperty(H,"timer",{enumerable:!0,get:function(){return p_.timer}});var i_=e2();Object.defineProperty(H,"using",{enumerable:!0,get:function(){return i_.using}});var n_=lH();Object.defineProperty(H,"zip",{enumerable:!0,get:function(){return n_.zip}});var a_=oK();Object.defineProperty(H,"scheduled",{enumerable:!0,get:function(){return a_.scheduled}});var r_=M8();Object.defineProperty(H,"EMPTY",{enumerable:!0,get:function(){return r_.EMPTY}});var s_=XU();Object.defineProperty(H,"NEVER",{enumerable:!0,get:function(){return s_.NEVER}});X_(KU(),H);var t_=mq();Object.defineProperty(H,"audit",{enumerable:!0,get:function(){return t_.audit}});var o_=NU();Object.defineProperty(H,"auditTime",{enumerable:!0,get:function(){return o_.auditTime}});var e_=GU();Object.defineProperty(H,"buffer",{enumerable:!0,get:function(){return e_.buffer}});var ZS=UU();Object.defineProperty(H,"bufferCount",{enumerable:!0,get:function(){return ZS.bufferCount}});var $S=fU();Object.defineProperty(H,"bufferTime",{enumerable:!0,get:function(){return $S.bufferTime}});var JS=xU();Object.defineProperty(H,"bufferToggle",{enumerable:!0,get:function(){return JS.bufferToggle}});var YS=AU();Object.defineProperty(H,"bufferWhen",{enumerable:!0,get:function(){return YS.bufferWhen}});var XS=RU();Object.defineProperty(H,"catchError",{enumerable:!0,get:function(){return XS.catchError}});var zS=lU();Object.defineProperty(H,"combineLatestAll",{enumerable:!0,get:function(){return zS.combineLatestAll}});var KS=nU();Object.defineProperty(H,"combineLatestWith",{enumerable:!0,get:function(){return KS.combineLatestWith}});var HS=dH();Object.defineProperty(H,"concatAll",{enumerable:!0,get:function(){return HS.concatAll}});var QS=dq();Object.defineProperty(H,"concatMap",{enumerable:!0,get:function(){return QS.concatMap}});var qS=oU();Object.defineProperty(H,"concatMapTo",{enumerable:!0,get:function(){return qS.concatMapTo}});var WS=JI();Object.defineProperty(H,"concatWith",{enumerable:!0,get:function(){return WS.concatWith}});var NS=qI();Object.defineProperty(H,"connect",{enumerable:!0,get:function(){return NS.connect}});var BS=BI();Object.defineProperty(H,"count",{enumerable:!0,get:function(){return BS.count}});var FS=LI();Object.defineProperty(H,"debounce",{enumerable:!0,get:function(){return FS.debounce}});var GS=II();Object.defineProperty(H,"debounceTime",{enumerable:!0,get:function(){return GS.debounceTime}});var LS=EI();Object.defineProperty(H,"defaultIfEmpty",{enumerable:!0,get:function(){return LS.defaultIfEmpty}});var wS=jI();Object.defineProperty(H,"delay",{enumerable:!0,get:function(){return wS.delay}});var DS=pq();Object.defineProperty(H,"delayWhen",{enumerable:!0,get:function(){return DS.delayWhen}});var US=uI();Object.defineProperty(H,"dematerialize",{enumerable:!0,get:function(){return US.dematerialize}});var IS=iI();Object.defineProperty(H,"distinct",{enumerable:!0,get:function(){return IS.distinct}});var OS=iq();Object.defineProperty(H,"distinctUntilChanged",{enumerable:!0,get:function(){return OS.distinctUntilChanged}});var kS=oI();Object.defineProperty(H,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return kS.distinctUntilKeyChanged}});var fS=YO();Object.defineProperty(H,"elementAt",{enumerable:!0,get:function(){return fS.elementAt}});var ES=KO();Object.defineProperty(H,"endWith",{enumerable:!0,get:function(){return ES.endWith}});var PS=WO();Object.defineProperty(H,"every",{enumerable:!0,get:function(){return PS.every}});var VS=LO();Object.defineProperty(H,"exhaustAll",{enumerable:!0,get:function(){return VS.exhaustAll}});var xS=aq();Object.defineProperty(H,"exhaustMap",{enumerable:!0,get:function(){return xS.exhaustMap}});var MS=UO();Object.defineProperty(H,"expand",{enumerable:!0,get:function(){return MS.expand}});var hS=cH();Object.defineProperty(H,"filter",{enumerable:!0,get:function(){return hS.filter}});var AS=kO();Object.defineProperty(H,"finalize",{enumerable:!0,get:function(){return AS.finalize}});var vS=rq();Object.defineProperty(H,"find",{enumerable:!0,get:function(){return vS.find}});var CS=hO();Object.defineProperty(H,"findIndex",{enumerable:!0,get:function(){return CS.findIndex}});var TS=TO();Object.defineProperty(H,"first",{enumerable:!0,get:function(){return TS.first}});var RS=mO();Object.defineProperty(H,"groupBy",{enumerable:!0,get:function(){return RS.groupBy}});var yS=uq();Object.defineProperty(H,"ignoreElements",{enumerable:!0,get:function(){return yS.ignoreElements}});var mS=gO();Object.defineProperty(H,"isEmpty",{enumerable:!0,get:function(){return mS.isEmpty}});var jS=uO();Object.defineProperty(H,"last",{enumerable:!0,get:function(){return jS.last}});var _S=VK();Object.defineProperty(H,"map",{enumerable:!0,get:function(){return _S.map}});var SS=iO();Object.defineProperty(H,"mapTo",{enumerable:!0,get:function(){return SS.mapTo}});var gS=rO();Object.defineProperty(H,"materialize",{enumerable:!0,get:function(){return gS.materialize}});var bS=oO();Object.defineProperty(H,"max",{enumerable:!0,get:function(){return bS.max}});var dS=eK();Object.defineProperty(H,"mergeAll",{enumerable:!0,get:function(){return dS.mergeAll}});var cS=t$();Object.defineProperty(H,"mergeMap",{enumerable:!0,get:function(){return cS.mergeMap}});var uS=$k();Object.defineProperty(H,"mergeMapTo",{enumerable:!0,get:function(){return uS.mergeMapTo}});var lS=Xk();Object.defineProperty(H,"mergeScan",{enumerable:!0,get:function(){return lS.mergeScan}});var pS=Qk();Object.defineProperty(H,"mergeWith",{enumerable:!0,get:function(){return pS.mergeWith}});var iS=Nk();Object.defineProperty(H,"min",{enumerable:!0,get:function(){return iS.min}});var nS=_H();Object.defineProperty(H,"observeOn",{enumerable:!0,get:function(){return nS.observeOn}});var aS=Gk();Object.defineProperty(H,"onErrorResumeNextWith",{enumerable:!0,get:function(){return aS.onErrorResumeNextWith}});var rS=Uk();Object.defineProperty(H,"pairwise",{enumerable:!0,get:function(){return rS.pairwise}});var sS=kk();Object.defineProperty(H,"raceWith",{enumerable:!0,get:function(){return sS.raceWith}});var tS=MK();Object.defineProperty(H,"reduce",{enumerable:!0,get:function(){return tS.reduce}});var oS=Pk();Object.defineProperty(H,"repeat",{enumerable:!0,get:function(){return oS.repeat}});var eS=Mk();Object.defineProperty(H,"repeatWhen",{enumerable:!0,get:function(){return eS.repeatWhen}});var Zg=vk();Object.defineProperty(H,"retry",{enumerable:!0,get:function(){return Zg.retry}});var $g=Rk();Object.defineProperty(H,"retryWhen",{enumerable:!0,get:function(){return $g.retryWhen}});var Jg=sq();Object.defineProperty(H,"sample",{enumerable:!0,get:function(){return Jg.sample}});var Yg=Sk();Object.defineProperty(H,"sampleTime",{enumerable:!0,get:function(){return Yg.sampleTime}});var Xg=dk();Object.defineProperty(H,"scan",{enumerable:!0,get:function(){return Xg.scan}});var zg=pk();Object.defineProperty(H,"sequenceEqual",{enumerable:!0,get:function(){return zg.sequenceEqual}});var Kg=eq();Object.defineProperty(H,"share",{enumerable:!0,get:function(){return Kg.share}});var Hg=sk();Object.defineProperty(H,"shareReplay",{enumerable:!0,get:function(){return Hg.shareReplay}});var Qg=Zf();Object.defineProperty(H,"single",{enumerable:!0,get:function(){return Qg.single}});var qg=Yf();Object.defineProperty(H,"skip",{enumerable:!0,get:function(){return qg.skip}});var Wg=Hf();Object.defineProperty(H,"skipLast",{enumerable:!0,get:function(){return Wg.skipLast}});var Ng=Wf();Object.defineProperty(H,"skipUntil",{enumerable:!0,get:function(){return Ng.skipUntil}});var Bg=Gf();Object.defineProperty(H,"skipWhile",{enumerable:!0,get:function(){return Bg.skipWhile}});var Fg=Df();Object.defineProperty(H,"startWith",{enumerable:!0,get:function(){return Fg.startWith}});var Gg=SH();Object.defineProperty(H,"subscribeOn",{enumerable:!0,get:function(){return Gg.subscribeOn}});var Lg=ff();Object.defineProperty(H,"switchAll",{enumerable:!0,get:function(){return Lg.switchAll}});var wg=zH();Object.defineProperty(H,"switchMap",{enumerable:!0,get:function(){return wg.switchMap}});var Dg=Vf();Object.defineProperty(H,"switchMapTo",{enumerable:!0,get:function(){return Dg.switchMapTo}});var Ug=Af();Object.defineProperty(H,"switchScan",{enumerable:!0,get:function(){return Ug.switchScan}});var Ig=cq();Object.defineProperty(H,"take",{enumerable:!0,get:function(){return Ig.take}});var Og=Rf();Object.defineProperty(H,"takeLast",{enumerable:!0,get:function(){return Og.takeLast}});var kg=jf();Object.defineProperty(H,"takeUntil",{enumerable:!0,get:function(){return kg.takeUntil}});var fg=bf();Object.defineProperty(H,"takeWhile",{enumerable:!0,get:function(){return fg.takeWhile}});var Eg=uf();Object.defineProperty(H,"tap",{enumerable:!0,get:function(){return Eg.tap}});var Pg=YW();Object.defineProperty(H,"throttle",{enumerable:!0,get:function(){return Pg.throttle}});var Vg=rf();Object.defineProperty(H,"throttleTime",{enumerable:!0,get:function(){return Vg.throttleTime}});var xg=ef();Object.defineProperty(H,"throwIfEmpty",{enumerable:!0,get:function(){return xg.throwIfEmpty}});var Mg=YE();Object.defineProperty(H,"timeInterval",{enumerable:!0,get:function(){return Mg.timeInterval}});var hg=jH();Object.defineProperty(H,"timeout",{enumerable:!0,get:function(){return hg.timeout}});var Ag=KE();Object.defineProperty(H,"timeoutWith",{enumerable:!0,get:function(){return Ag.timeoutWith}});var vg=qE();Object.defineProperty(H,"timestamp",{enumerable:!0,get:function(){return vg.timestamp}});var Cg=gq();Object.defineProperty(H,"toArray",{enumerable:!0,get:function(){return Cg.toArray}});var Tg=FE();Object.defineProperty(H,"window",{enumerable:!0,get:function(){return Tg.window}});var Rg=UE();Object.defineProperty(H,"windowCount",{enumerable:!0,get:function(){return Rg.windowCount}});var yg=fE();Object.defineProperty(H,"windowTime",{enumerable:!0,get:function(){return yg.windowTime}});var mg=xE();Object.defineProperty(H,"windowToggle",{enumerable:!0,get:function(){return mg.windowToggle}});var jg=AE();Object.defineProperty(H,"windowWhen",{enumerable:!0,get:function(){return jg.windowWhen}});var _g=TE();Object.defineProperty(H,"withLatestFrom",{enumerable:!0,get:function(){return _g.withLatestFrom}});var Sg=mE();Object.defineProperty(H,"zipAll",{enumerable:!0,get:function(){return Sg.zipAll}});var gg=SE();Object.defineProperty(H,"zipWith",{enumerable:!0,get:function(){return gg.zipWith}})});async function KW(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 dE{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 cE=U(()=>{A=yN(bE(),1)});function uE(Z){return Z.replace(/[^a-zA-Z0-9]/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,"")}function HW(Z,$){let J=uE($);return`${Z}/.cursor/projects/${J}`}var KH=U(()=>{cE()});var iE=q((lE)=>{Object.defineProperty(lE,"__esModule",{value:!0});lE._globalThis=void 0;lE._globalThis=typeof globalThis==="object"?globalThis:global});var nE=q((Z9)=>{var bg=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]}),dg=Z9&&Z9.__exportStar||function(Z,$){for(var J in Z)if(J!=="default"&&!Object.prototype.hasOwnProperty.call($,J))bg($,Z,J)};Object.defineProperty(Z9,"__esModule",{value:!0});dg(iE(),Z9)});var aE=q(($9)=>{var cg=$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]}),ug=$9&&$9.__exportStar||function(Z,$){for(var J in Z)if(J!=="default"&&!Object.prototype.hasOwnProperty.call($,J))cg($,Z,J)};Object.defineProperty($9,"__esModule",{value:!0});ug(nE(),$9)});var QW=q((rE)=>{Object.defineProperty(rE,"__esModule",{value:!0});rE.VERSION=void 0;rE.VERSION="1.9.0"});var $P=q((eE)=>{Object.defineProperty(eE,"__esModule",{value:!0});eE.isCompatible=eE._makeCompatibilityCheck=void 0;var lg=QW(),tE=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function oE(Z){let $=new Set([Z]),J=new Set,Y=Z.match(tE);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(tE);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)}}eE._makeCompatibilityCheck=oE;eE.isCompatible=oE(lg.VERSION)});var J9=q((JP)=>{Object.defineProperty(JP,"__esModule",{value:!0});JP.unregisterGlobal=JP.getGlobal=JP.registerGlobal=void 0;var ig=aE(),hK=QW(),ng=$P(),ag=hK.VERSION.split(".")[0],HH=Symbol.for(`opentelemetry.js.api.${ag}`),QH=ig._globalThis;function rg(Z,$,J,Y=!1){var X;let z=QH[HH]=(X=QH[HH])!==null&&X!==void 0?X:{version:hK.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!==hK.VERSION){let K=Error(`@opentelemetry/api: Registration of version v${z.version} for ${Z} does not match previously registered API v${hK.VERSION}`);return J.error(K.stack||K.message),!1}return z[Z]=$,J.debug(`@opentelemetry/api: Registered a global for ${Z} v${hK.VERSION}.`),!0}JP.registerGlobal=rg;function sg(Z){var $,J;let Y=($=QH[HH])===null||$===void 0?void 0:$.version;if(!Y||!(0,ng.isCompatible)(Y))return;return(J=QH[HH])===null||J===void 0?void 0:J[Z]}JP.getGlobal=sg;function tg(Z,$){$.debug(`@opentelemetry/api: Unregistering a global for ${Z} v${hK.VERSION}.`);let J=QH[HH];if(J)delete J[Z]}JP.unregisterGlobal=tg});var HP=q((zP)=>{Object.defineProperty(zP,"__esModule",{value:!0});zP.DiagComponentLogger=void 0;var Zb=J9();class XP{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)}}zP.DiagComponentLogger=XP;function qH(Z,$,J){let Y=(0,Zb.getGlobal)("diag");if(!Y)return;return J.unshift($),Y[Z](...J)}});var QQ=q((QP)=>{Object.defineProperty(QP,"__esModule",{value:!0});QP.DiagLogLevel=void 0;var $b;(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"})($b=QP.DiagLogLevel||(QP.DiagLogLevel={}))});var NP=q((qP)=>{Object.defineProperty(qP,"__esModule",{value:!0});qP.createLogLevelDiagLogger=void 0;var d8=QQ();function Jb(Z,$){if(Z<d8.DiagLogLevel.NONE)Z=d8.DiagLogLevel.NONE;else if(Z>d8.DiagLogLevel.ALL)Z=d8.DiagLogLevel.ALL;$=$||{};function J(Y,X){let z=$[Y];if(typeof z==="function"&&Z>=X)return z.bind($);return function(){}}return{error:J("error",d8.DiagLogLevel.ERROR),warn:J("warn",d8.DiagLogLevel.WARN),info:J("info",d8.DiagLogLevel.INFO),debug:J("debug",d8.DiagLogLevel.DEBUG),verbose:J("verbose",d8.DiagLogLevel.VERBOSE)}}qP.createLogLevelDiagLogger=Jb});var Y9=q((FP)=>{Object.defineProperty(FP,"__esModule",{value:!0});FP.DiagAPI=void 0;var Yb=HP(),Xb=NP(),BP=QQ(),qQ=J9(),zb="diag";class WW{constructor(){function Z(Y){return function(...X){let z=(0,qQ.getGlobal)("diag");if(!z)return;return z[Y](...X)}}let $=this,J=(Y,X={logLevel:BP.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,qQ.getGlobal)("diag"),G=(0,Xb.createLogLevelDiagLogger)((K=X.logLevel)!==null&&K!==void 0?K:BP.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,qQ.registerGlobal)("diag",G,$,!0)};$.setLogger=J,$.disable=()=>{(0,qQ.unregisterGlobal)(zb,$)},$.createComponentLogger=(Y)=>{return new Yb.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 WW;return this._instance}}FP.DiagAPI=WW});var DP=q((LP)=>{Object.defineProperty(LP,"__esModule",{value:!0});LP.BaggageImpl=void 0;class AK{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 AK(this._entries);return J._entries.set(Z,$),J}removeEntry(Z){let $=new AK(this._entries);return $._entries.delete(Z),$}removeEntries(...Z){let $=new AK(this._entries);for(let J of Z)$._entries.delete(J);return $}clear(){return new AK}}LP.BaggageImpl=AK});var OP=q((UP)=>{Object.defineProperty(UP,"__esModule",{value:!0});UP.baggageEntryMetadataSymbol=void 0;UP.baggageEntryMetadataSymbol=Symbol("BaggageEntryMetadata")});var NW=q((kP)=>{Object.defineProperty(kP,"__esModule",{value:!0});kP.baggageEntryMetadataFromString=kP.createBaggage=void 0;var Kb=Y9(),Hb=DP(),Qb=OP(),qb=Kb.DiagAPI.instance();function Wb(Z={}){return new Hb.BaggageImpl(new Map(Object.entries(Z)))}kP.createBaggage=Wb;function Nb(Z){if(typeof Z!=="string")qb.error(`Cannot create baggage metadata from unknown type: ${typeof Z}`),Z="";return{__TYPE__:Qb.baggageEntryMetadataSymbol,toString(){return Z}}}kP.baggageEntryMetadataFromString=Nb});var WH=q((EP)=>{Object.defineProperty(EP,"__esModule",{value:!0});EP.ROOT_CONTEXT=EP.createContextKey=void 0;function Fb(Z){return Symbol.for(Z)}EP.createContextKey=Fb;class WQ{constructor(Z){let $=this;$._currentContext=Z?new Map(Z):new Map,$.getValue=(J)=>$._currentContext.get(J),$.setValue=(J,Y)=>{let X=new WQ($._currentContext);return X._currentContext.set(J,Y),X},$.deleteValue=(J)=>{let Y=new WQ($._currentContext);return Y._currentContext.delete(J),Y}}}EP.ROOT_CONTEXT=new WQ});var hP=q((xP)=>{Object.defineProperty(xP,"__esModule",{value:!0});xP.DiagConsoleLogger=void 0;var BW=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}];class VP{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;$<BW.length;$++)this[BW[$].n]=Z(BW[$].c)}}xP.DiagConsoleLogger=VP});var kW=q((AP)=>{Object.defineProperty(AP,"__esModule",{value:!0});AP.createNoopMeter=AP.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC=AP.NOOP_OBSERVABLE_GAUGE_METRIC=AP.NOOP_OBSERVABLE_COUNTER_METRIC=AP.NOOP_UP_DOWN_COUNTER_METRIC=AP.NOOP_HISTOGRAM_METRIC=AP.NOOP_GAUGE_METRIC=AP.NOOP_COUNTER_METRIC=AP.NOOP_METER=AP.NoopObservableUpDownCounterMetric=AP.NoopObservableGaugeMetric=AP.NoopObservableCounterMetric=AP.NoopObservableMetric=AP.NoopHistogramMetric=AP.NoopGaugeMetric=AP.NoopUpDownCounterMetric=AP.NoopCounterMetric=AP.NoopMetric=AP.NoopMeter=void 0;class FW{constructor(){}createGauge(Z,$){return AP.NOOP_GAUGE_METRIC}createHistogram(Z,$){return AP.NOOP_HISTOGRAM_METRIC}createCounter(Z,$){return AP.NOOP_COUNTER_METRIC}createUpDownCounter(Z,$){return AP.NOOP_UP_DOWN_COUNTER_METRIC}createObservableGauge(Z,$){return AP.NOOP_OBSERVABLE_GAUGE_METRIC}createObservableCounter(Z,$){return AP.NOOP_OBSERVABLE_COUNTER_METRIC}createObservableUpDownCounter(Z,$){return AP.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC}addBatchObservableCallback(Z,$){}removeBatchObservableCallback(Z){}}AP.NoopMeter=FW;class vK{}AP.NoopMetric=vK;class GW extends vK{add(Z,$){}}AP.NoopCounterMetric=GW;class LW extends vK{add(Z,$){}}AP.NoopUpDownCounterMetric=LW;class wW extends vK{record(Z,$){}}AP.NoopGaugeMetric=wW;class DW extends vK{record(Z,$){}}AP.NoopHistogramMetric=DW;class NH{addCallback(Z){}removeCallback(Z){}}AP.NoopObservableMetric=NH;class UW extends NH{}AP.NoopObservableCounterMetric=UW;class IW extends NH{}AP.NoopObservableGaugeMetric=IW;class OW extends NH{}AP.NoopObservableUpDownCounterMetric=OW;AP.NOOP_METER=new FW;AP.NOOP_COUNTER_METRIC=new GW;AP.NOOP_GAUGE_METRIC=new wW;AP.NOOP_HISTOGRAM_METRIC=new DW;AP.NOOP_UP_DOWN_COUNTER_METRIC=new LW;AP.NOOP_OBSERVABLE_COUNTER_METRIC=new UW;AP.NOOP_OBSERVABLE_GAUGE_METRIC=new IW;AP.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC=new OW;function Lb(){return AP.NOOP_METER}AP.createNoopMeter=Lb});var bP=q((gP)=>{Object.defineProperty(gP,"__esModule",{value:!0});gP.ValueType=void 0;var xb;(function(Z){Z[Z.INT=0]="INT",Z[Z.DOUBLE=1]="DOUBLE"})(xb=gP.ValueType||(gP.ValueType={}))});var EW=q((dP)=>{Object.defineProperty(dP,"__esModule",{value:!0});dP.defaultTextMapSetter=dP.defaultTextMapGetter=void 0;dP.defaultTextMapGetter={get(Z,$){if(Z==null)return;return Z[$]},keys(Z){if(Z==null)return[];return Object.keys(Z)}};dP.defaultTextMapSetter={set(Z,$,J){if(Z==null)return;Z[$]=J}}});var iP=q((lP)=>{Object.defineProperty(lP,"__esModule",{value:!0});lP.NoopContextManager=void 0;var hb=WH();class uP{active(){return hb.ROOT_CONTEXT}with(Z,$,J,...Y){return $.call(J,...Y)}bind(Z,$){return $}enable(){return this}disable(){return this}}lP.NoopContextManager=uP});var BH=q((aP)=>{Object.defineProperty(aP,"__esModule",{value:!0});aP.ContextAPI=void 0;var Ab=iP(),PW=J9(),nP=Y9(),VW="context",vb=new Ab.NoopContextManager;class xW{constructor(){}static getInstance(){if(!this._instance)this._instance=new xW;return this._instance}setGlobalContextManager(Z){return(0,PW.registerGlobal)(VW,Z,nP.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,PW.getGlobal)(VW)||vb}disable(){this._getContextManager().disable(),(0,PW.unregisterGlobal)(VW,nP.DiagAPI.instance())}}aP.ContextAPI=xW});var hW=q((sP)=>{Object.defineProperty(sP,"__esModule",{value:!0});sP.TraceFlags=void 0;var Cb;(function(Z){Z[Z.NONE=0]="NONE",Z[Z.SAMPLED=1]="SAMPLED"})(Cb=sP.TraceFlags||(sP.TraceFlags={}))});var NQ=q((tP)=>{Object.defineProperty(tP,"__esModule",{value:!0});tP.INVALID_SPAN_CONTEXT=tP.INVALID_TRACEID=tP.INVALID_SPANID=void 0;var Tb=hW();tP.INVALID_SPANID="0000000000000000";tP.INVALID_TRACEID="00000000000000000000000000000000";tP.INVALID_SPAN_CONTEXT={traceId:tP.INVALID_TRACEID,spanId:tP.INVALID_SPANID,traceFlags:Tb.TraceFlags.NONE}});var BQ=q((JV)=>{Object.defineProperty(JV,"__esModule",{value:!0});JV.NonRecordingSpan=void 0;var Rb=NQ();class $V{constructor(Z=Rb.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,$){}}JV.NonRecordingSpan=$V});var CW=q((zV)=>{Object.defineProperty(zV,"__esModule",{value:!0});zV.getSpanContext=zV.setSpanContext=zV.deleteSpan=zV.setSpan=zV.getActiveSpan=zV.getSpan=void 0;var yb=WH(),mb=BQ(),jb=BH(),AW=(0,yb.createContextKey)("OpenTelemetry Context Key SPAN");function vW(Z){return Z.getValue(AW)||void 0}zV.getSpan=vW;function _b(){return vW(jb.ContextAPI.getInstance().active())}zV.getActiveSpan=_b;function XV(Z,$){return Z.setValue(AW,$)}zV.setSpan=XV;function Sb(Z){return Z.deleteValue(AW)}zV.deleteSpan=Sb;function gb(Z,$){return XV(Z,new mb.NonRecordingSpan($))}zV.setSpanContext=gb;function bb(Z){var $;return($=vW(Z))===null||$===void 0?void 0:$.spanContext()}zV.getSpanContext=bb});var FQ=q((WV)=>{Object.defineProperty(WV,"__esModule",{value:!0});WV.wrapSpanContext=WV.isSpanContextValid=WV.isValidSpanId=WV.isValidTraceId=void 0;var HV=NQ(),ib=BQ(),nb=/^([0-9a-f]{32})$/i,ab=/^[0-9a-f]{16}$/i;function QV(Z){return nb.test(Z)&&Z!==HV.INVALID_TRACEID}WV.isValidTraceId=QV;function qV(Z){return ab.test(Z)&&Z!==HV.INVALID_SPANID}WV.isValidSpanId=qV;function rb(Z){return QV(Z.traceId)&&qV(Z.spanId)}WV.isSpanContextValid=rb;function sb(Z){return new ib.NonRecordingSpan(Z)}WV.wrapSpanContext=sb});var yW=q((GV)=>{Object.defineProperty(GV,"__esModule",{value:!0});GV.NoopTracer=void 0;var Zd=BH(),BV=CW(),TW=BQ(),$d=FQ(),RW=Zd.ContextAPI.getInstance();class FV{startSpan(Z,$,J=RW.active()){if(Boolean($===null||$===void 0?void 0:$.root))return new TW.NonRecordingSpan;let X=J&&(0,BV.getSpanContext)(J);if(Jd(X)&&(0,$d.isSpanContextValid)(X))return new TW.NonRecordingSpan(X);else return new TW.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:RW.active(),W=this.startSpan(Z,X,Q),G=(0,BV.setSpan)(Q,W);return RW.with(G,K,void 0,W)}}GV.NoopTracer=FV;function Jd(Z){return typeof Z==="object"&&typeof Z.spanId==="string"&&typeof Z.traceId==="string"&&typeof Z.traceFlags==="number"}});var mW=q((DV)=>{Object.defineProperty(DV,"__esModule",{value:!0});DV.ProxyTracer=void 0;var Yd=yW(),Xd=new Yd.NoopTracer;class wV{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 Xd;return this._delegate=Z,this._delegate}}DV.ProxyTracer=wV});var fV=q((OV)=>{Object.defineProperty(OV,"__esModule",{value:!0});OV.NoopTracerProvider=void 0;var zd=yW();class IV{getTracer(Z,$,J){return new zd.NoopTracer}}OV.NoopTracerProvider=IV});var jW=q((PV)=>{Object.defineProperty(PV,"__esModule",{value:!0});PV.ProxyTracerProvider=void 0;var Kd=mW(),Hd=fV(),Qd=new Hd.NoopTracerProvider;class EV{getTracer(Z,$,J){var Y;return(Y=this.getDelegateTracer(Z,$,J))!==null&&Y!==void 0?Y:new Kd.ProxyTracer(this,Z,$,J)}getDelegate(){var Z;return(Z=this._delegate)!==null&&Z!==void 0?Z:Qd}setDelegate(Z){this._delegate=Z}getDelegateTracer(Z,$,J){var Y;return(Y=this._delegate)===null||Y===void 0?void 0:Y.getTracer(Z,$,J)}}PV.ProxyTracerProvider=EV});var MV=q((xV)=>{Object.defineProperty(xV,"__esModule",{value:!0});xV.SamplingDecision=void 0;var qd;(function(Z){Z[Z.NOT_RECORD=0]="NOT_RECORD",Z[Z.RECORD=1]="RECORD",Z[Z.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(qd=xV.SamplingDecision||(xV.SamplingDecision={}))});var AV=q((hV)=>{Object.defineProperty(hV,"__esModule",{value:!0});hV.SpanKind=void 0;var Wd;(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"})(Wd=hV.SpanKind||(hV.SpanKind={}))});var CV=q((vV)=>{Object.defineProperty(vV,"__esModule",{value:!0});vV.SpanStatusCode=void 0;var Nd;(function(Z){Z[Z.UNSET=0]="UNSET",Z[Z.OK=1]="OK",Z[Z.ERROR=2]="ERROR"})(Nd=vV.SpanStatusCode||(vV.SpanStatusCode={}))});var yV=q((TV)=>{Object.defineProperty(TV,"__esModule",{value:!0});TV.validateValue=TV.validateKey=void 0;var bW="[_0-9a-z-*/]",Bd=`[a-z]${bW}{0,255}`,Fd=`[a-z0-9]${bW}{0,240}@[a-z]${bW}{0,13}`,Gd=new RegExp(`^(?:${Bd}|${Fd})$`),Ld=/^[ -~]{0,255}[!-~]$/,wd=/,|=/;function Dd(Z){return Gd.test(Z)}TV.validateKey=Dd;function Ud(Z){return Ld.test(Z)&&!wd.test(Z)}TV.validateValue=Ud});var dV=q((gV)=>{Object.defineProperty(gV,"__esModule",{value:!0});gV.TraceStateImpl=void 0;var mV=yV(),jV=32,Od=512,_V=",",SV="=";class dW{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($+SV+this.get($)),Z},[]).join(_V)}_parse(Z){if(Z.length>Od)return;if(this._internalState=Z.split(_V).reverse().reduce(($,J)=>{let Y=J.trim(),X=Y.indexOf(SV);if(X!==-1){let z=Y.slice(0,X),K=Y.slice(X+1,J.length);if((0,mV.validateKey)(z)&&(0,mV.validateValue)(K))$.set(z,K)}return $},new Map),this._internalState.size>jV)this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,jV))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let Z=new dW;return Z._internalState=new Map(this._internalState),Z}}gV.TraceStateImpl=dW});var lV=q((cV)=>{Object.defineProperty(cV,"__esModule",{value:!0});cV.createTraceState=void 0;var kd=dV();function fd(Z){return new kd.TraceStateImpl(Z)}cV.createTraceState=fd});var nV=q((pV)=>{Object.defineProperty(pV,"__esModule",{value:!0});pV.context=void 0;var Ed=BH();pV.context=Ed.ContextAPI.getInstance()});var sV=q((aV)=>{Object.defineProperty(aV,"__esModule",{value:!0});aV.diag=void 0;var Pd=Y9();aV.diag=Pd.DiagAPI.instance()});var eV=q((tV)=>{Object.defineProperty(tV,"__esModule",{value:!0});tV.NOOP_METER_PROVIDER=tV.NoopMeterProvider=void 0;var Vd=kW();class cW{getMeter(Z,$,J){return Vd.NOOP_METER}}tV.NoopMeterProvider=cW;tV.NOOP_METER_PROVIDER=new cW});var Y4=q(($4)=>{Object.defineProperty($4,"__esModule",{value:!0});$4.MetricsAPI=void 0;var Md=eV(),uW=J9(),Z4=Y9(),lW="metrics";class pW{constructor(){}static getInstance(){if(!this._instance)this._instance=new pW;return this._instance}setGlobalMeterProvider(Z){return(0,uW.registerGlobal)(lW,Z,Z4.DiagAPI.instance())}getMeterProvider(){return(0,uW.getGlobal)(lW)||Md.NOOP_METER_PROVIDER}getMeter(Z,$,J){return this.getMeterProvider().getMeter(Z,$,J)}disable(){(0,uW.unregisterGlobal)(lW,Z4.DiagAPI.instance())}}$4.MetricsAPI=pW});var K4=q((X4)=>{Object.defineProperty(X4,"__esModule",{value:!0});X4.metrics=void 0;var hd=Y4();X4.metrics=hd.MetricsAPI.getInstance()});var W4=q((Q4)=>{Object.defineProperty(Q4,"__esModule",{value:!0});Q4.NoopTextMapPropagator=void 0;class H4{inject(Z,$){}extract(Z,$){return Z}fields(){return[]}}Q4.NoopTextMapPropagator=H4});var G4=q((B4)=>{Object.defineProperty(B4,"__esModule",{value:!0});B4.deleteBaggage=B4.setBaggage=B4.getActiveBaggage=B4.getBaggage=void 0;var Ad=BH(),vd=WH(),iW=(0,vd.createContextKey)("OpenTelemetry Baggage Key");function N4(Z){return Z.getValue(iW)||void 0}B4.getBaggage=N4;function Cd(){return N4(Ad.ContextAPI.getInstance().active())}B4.getActiveBaggage=Cd;function Td(Z,$){return Z.setValue(iW,$)}B4.setBaggage=Td;function Rd(Z){return Z.deleteValue(iW)}B4.deleteBaggage=Rd});var I4=q((D4)=>{Object.defineProperty(D4,"__esModule",{value:!0});D4.PropagationAPI=void 0;var nW=J9(),_d=W4(),L4=EW(),GQ=G4(),Sd=NW(),w4=Y9(),aW="propagation",gd=new _d.NoopTextMapPropagator;class rW{constructor(){this.createBaggage=Sd.createBaggage,this.getBaggage=GQ.getBaggage,this.getActiveBaggage=GQ.getActiveBaggage,this.setBaggage=GQ.setBaggage,this.deleteBaggage=GQ.deleteBaggage}static getInstance(){if(!this._instance)this._instance=new rW;return this._instance}setGlobalPropagator(Z){return(0,nW.registerGlobal)(aW,Z,w4.DiagAPI.instance())}inject(Z,$,J=L4.defaultTextMapSetter){return this._getGlobalPropagator().inject(Z,$,J)}extract(Z,$,J=L4.defaultTextMapGetter){return this._getGlobalPropagator().extract(Z,$,J)}fields(){return this._getGlobalPropagator().fields()}disable(){(0,nW.unregisterGlobal)(aW,w4.DiagAPI.instance())}_getGlobalPropagator(){return(0,nW.getGlobal)(aW)||gd}}D4.PropagationAPI=rW});var f4=q((O4)=>{Object.defineProperty(O4,"__esModule",{value:!0});O4.propagation=void 0;var bd=I4();O4.propagation=bd.PropagationAPI.getInstance()});var h4=q((x4)=>{Object.defineProperty(x4,"__esModule",{value:!0});x4.TraceAPI=void 0;var sW=J9(),E4=jW(),P4=FQ(),CK=CW(),V4=Y9(),tW="trace";class oW{constructor(){this._proxyTracerProvider=new E4.ProxyTracerProvider,this.wrapSpanContext=P4.wrapSpanContext,this.isSpanContextValid=P4.isSpanContextValid,this.deleteSpan=CK.deleteSpan,this.getSpan=CK.getSpan,this.getActiveSpan=CK.getActiveSpan,this.getSpanContext=CK.getSpanContext,this.setSpan=CK.setSpan,this.setSpanContext=CK.setSpanContext}static getInstance(){if(!this._instance)this._instance=new oW;return this._instance}setGlobalTracerProvider(Z){let $=(0,sW.registerGlobal)(tW,this._proxyTracerProvider,V4.DiagAPI.instance());if($)this._proxyTracerProvider.setDelegate(Z);return $}getTracerProvider(){return(0,sW.getGlobal)(tW)||this._proxyTracerProvider}getTracer(Z,$){return this.getTracerProvider().getTracer(Z,$)}disable(){(0,sW.unregisterGlobal)(tW,V4.DiagAPI.instance()),this._proxyTracerProvider=new E4.ProxyTracerProvider}}x4.TraceAPI=oW});var C4=q((A4)=>{Object.defineProperty(A4,"__esModule",{value:!0});A4.trace=void 0;var dd=h4();A4.trace=dd.TraceAPI.getInstance()});var g4=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 cd=NW();Object.defineProperty(j,"baggageEntryMetadataFromString",{enumerable:!0,get:function(){return cd.baggageEntryMetadataFromString}});var T4=WH();Object.defineProperty(j,"createContextKey",{enumerable:!0,get:function(){return T4.createContextKey}});Object.defineProperty(j,"ROOT_CONTEXT",{enumerable:!0,get:function(){return T4.ROOT_CONTEXT}});var ud=hP();Object.defineProperty(j,"DiagConsoleLogger",{enumerable:!0,get:function(){return ud.DiagConsoleLogger}});var ld=QQ();Object.defineProperty(j,"DiagLogLevel",{enumerable:!0,get:function(){return ld.DiagLogLevel}});var pd=kW();Object.defineProperty(j,"createNoopMeter",{enumerable:!0,get:function(){return pd.createNoopMeter}});var id=bP();Object.defineProperty(j,"ValueType",{enumerable:!0,get:function(){return id.ValueType}});var R4=EW();Object.defineProperty(j,"defaultTextMapGetter",{enumerable:!0,get:function(){return R4.defaultTextMapGetter}});Object.defineProperty(j,"defaultTextMapSetter",{enumerable:!0,get:function(){return R4.defaultTextMapSetter}});var nd=mW();Object.defineProperty(j,"ProxyTracer",{enumerable:!0,get:function(){return nd.ProxyTracer}});var ad=jW();Object.defineProperty(j,"ProxyTracerProvider",{enumerable:!0,get:function(){return ad.ProxyTracerProvider}});var rd=MV();Object.defineProperty(j,"SamplingDecision",{enumerable:!0,get:function(){return rd.SamplingDecision}});var sd=AV();Object.defineProperty(j,"SpanKind",{enumerable:!0,get:function(){return sd.SpanKind}});var td=CV();Object.defineProperty(j,"SpanStatusCode",{enumerable:!0,get:function(){return td.SpanStatusCode}});var od=hW();Object.defineProperty(j,"TraceFlags",{enumerable:!0,get:function(){return od.TraceFlags}});var ed=lV();Object.defineProperty(j,"createTraceState",{enumerable:!0,get:function(){return ed.createTraceState}});var eW=FQ();Object.defineProperty(j,"isSpanContextValid",{enumerable:!0,get:function(){return eW.isSpanContextValid}});Object.defineProperty(j,"isValidTraceId",{enumerable:!0,get:function(){return eW.isValidTraceId}});Object.defineProperty(j,"isValidSpanId",{enumerable:!0,get:function(){return eW.isValidSpanId}});var ZN=NQ();Object.defineProperty(j,"INVALID_SPANID",{enumerable:!0,get:function(){return ZN.INVALID_SPANID}});Object.defineProperty(j,"INVALID_TRACEID",{enumerable:!0,get:function(){return ZN.INVALID_TRACEID}});Object.defineProperty(j,"INVALID_SPAN_CONTEXT",{enumerable:!0,get:function(){return ZN.INVALID_SPAN_CONTEXT}});var y4=nV();Object.defineProperty(j,"context",{enumerable:!0,get:function(){return y4.context}});var m4=sV();Object.defineProperty(j,"diag",{enumerable:!0,get:function(){return m4.diag}});var j4=K4();Object.defineProperty(j,"metrics",{enumerable:!0,get:function(){return j4.metrics}});var _4=f4();Object.defineProperty(j,"propagation",{enumerable:!0,get:function(){return _4.propagation}});var S4=C4();Object.defineProperty(j,"trace",{enumerable:!0,get:function(){return S4.trace}});j.default={context:y4.context,diag:m4.diag,metrics:j4.metrics,propagation:_4.propagation,trace:S4.trace}});function c4(Z){if(FH+Z>LQ.length)crypto.getRandomValues(LQ),FH=0;let $="",J=FH+Z;for(let Y=FH;Y<J;Y++)$+=Xc[LQ[Y]];return FH=J,$}function d4(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 u4{_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=c4(8),this._parentSpanId=Y,this._kind=$.kind||f0.SpanKind.INTERNAL,this._startTime=d4($.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=d4(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(b4)try{b4(J)}catch(Y){console.error("[browser-bridge] Error in collector callback",Y)}}isRecording(){return!this._ended}recordException(){return this}}class l4{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||Yc?.(Z)||Math.random()<Jc,z=c4(16);if(!Q)return f0.trace.wrapSpanContext({traceId:z,spanId:"",traceFlags:0});return new u4(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 zc{tracer=new l4;getTracer(){return this.tracer}}var f0,b4,GH,Jc=0.01,Yc,Xc,LQ,FH;var p4=U(()=>{f0=yN(g4(),1),Xc=Array.from({length:256},(Z,$)=>$.toString(16).padStart(2,"0")),LQ=new Uint8Array(1024),FH=LQ.length});function h8(Z,$){return{symbol:Z,defaultValue:$}}function $N(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=$N(this.signal);return[new O6(this,Z.signal),(J)=>Z.abort(J)]}withTimeout(Z){let $=$N(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=$N(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 c8(){return new O6}function Nc(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 Bc(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 Fc(Z){return{indent:" ".repeat(Z.indent??Kc),maxDepth:Z.maxDepth??Hc,maxEntries:Z.maxEntries??Qc,maxArrayLength:Z.maxArrayLength??qc,maxStringLength:Z.maxStringLength??Wc,includeTimestamp:Z.includeTimestamp??!0,includeContextPath:Z.includeContextPath??!0,inlineSerializer:Z.inlineSerializer}}function Gc(Z){return Z.toISOString().slice(11,23)}function i4(Z){return typeof Z==="object"&&Z!==null&&"getPath"in Z&&typeof Z.getPath==="function"}function JN(Z){if(typeof Z!=="object"||Z===null)return!1;return"message"in Z||"stack"in Z||"name"in Z||"cause"in Z}function Lc(Z){return typeof Z==="object"&&Z!==null&&Z.kind==="summary"&&typeof Z.summary==="string"}function wc(Z,$){if(Z.length<=$)return Z;return`${Z.slice(0,$)}...`}function Dc(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=Dc(Z,$,z,Y);if(Lc(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=wc(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(JN(Z))return a4(Z,$,J,Y,X,z);if(Array.isArray(Z))return n4(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 n4(Array.from(Z.values()),$,J,Y,X,z);return Ic(Z,$,J,Y,X,z)}function a4(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=k6(Z.cause,$,J,Y+1,X,z.concat("cause"));L=`${L} ${J.dim("cause=")}${O}`}return X.delete(K),L}function n4(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)=>k6(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 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,f])=>{let P=k6(O,$,J,Y+1,X,z.concat("<key>")),V=k6(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 Ic(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=k6(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 Oc(Z={}){let $=Fc(Z),J=Bc(Nc(Z.useColors)),Y=Z.console??console;return{log:(X,z)=>{let K=[];if($.includeTimestamp)K.push(J.dim(Gc(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&&i4(z.context)){let f=z.context.getPath();if(f.length>0)K.push(J.dim(`ctx=${f.join("/")}`))}let G=new WeakSet;if(!i4(z.context)&&z.context&&Object.keys(z.context).length>0){let f=k6(z.context,$,J,0,G,["context"]);K.push(`${J.dim("context=")}${f}`)}if(z.metadata&&Object.keys(z.metadata).length>0){let f=k6(z.metadata,$,J,0,G,["metadata"]);K.push(`${J.dim("meta=")}${f}`)}let L=[K.join(" ")];if(z.error!==void 0){let f=JN(z.error)?a4(z.error,$,J,0,G,["error"]):k6(z.error,$,J,0,G,["error"]);if(L[0]=`${L[0]} ${J.dim("error=")}${f}`,JN(z.error)&&typeof z.error.stack==="string"){let P=z.error.stack.split(`
5
- `).slice(1);for(let V of P){let T=V.trim();if(T)L.push(`${$.indent}${J.dim(T)}`)}}}let O=L.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 f=z.level;throw Error(`Unhandled log level: ${f}`)}}}}}function Pc(Z){return Z.get(Ec)}function u0(Z){function $(J,Y){let X=new Date;Pc(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 Kc=2,Hc=6,Qc=50,qc=40,Wc=200,kc,fc,Ec;var r4=U(()=>{w8();kc=Oc(),fc={log:(Z,$)=>kc.log(Z,$)},Ec=h8(Symbol("loggerBackend"),fc)});var BZ0,FZ0,GZ0,LZ0,wZ0;var s4=U(()=>{BZ0=h8(Symbol("otel.span"),void 0),FZ0=h8(Symbol("otel.root_span"),void 0),GZ0=h8(Symbol("otel.root_start_ms"),void 0),LZ0=h8(Symbol("otel.suppress_child_spans"),!1),wZ0=h8(Symbol("otel.inheritable_span_attributes"),{})});var w8=U(()=>{p4();r4();s4()});function wQ(Z){return Z.get(xc)}function f6(Z,$){let J={name:Z,type:"counter",description:$?.description,labelNames:$?.labelNames};return{increment:(Y,X,z)=>{wQ(Y).increment(Y,J,X??1,z)},record:(Y,X,z)=>{wQ(Y).record(Y,J,X,z)}}}function g(Z,$){let J={name:Z,type:"histogram",description:$?.description,labelNames:$?.labelNames};return{histogram:(Y,X,z)=>{wQ(Y).histogram(Y,J,X,z)},record:(Y,X,z)=>{wQ(Y).record(Y,J,X,z)}}}var Vc,xc;var X9=U(()=>{w8();Vc={record:()=>{},increment:()=>{},gauge:()=>{},histogram:()=>{}},xc=h8(Symbol("metricsBackend"),Vc)});class YN{serialize(Z){return hc.encode(Z)}deserialize(Z){return Mc.decode(Z)}getBlobType(){return{kind:"string"}}}class D8{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++)$+=Ac[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 Mc,hc,DQ,Ac;var TK=U(()=>{Mc=new TextDecoder,hc=new TextEncoder;DQ=new YN;Ac=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 TZ0,RZ0;var RK=U(()=>{X9();TK();TZ0=g("agent_kv.in_memory.get_blob.duration_ms",{description:"Duration of InMemoryBlobStore getBlob operations in milliseconds"}),RZ0=g("agent_kv.in_memory.set_blob.duration_ms",{description:"Duration of InMemoryBlobStore setBlob operations in milliseconds"})});function vc(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 IQ=U(()=>{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.${vc(Z)}`,$?.cause!==void 0?{cause:$.cause}:void 0);this.name="BlobNotFoundError",this.blobIdHexes=[...Z]}}});async function XN(Z,$,J){let Y={...$.subagentStates??{}},X=Object.entries($.subagentStateRefs??{});if(X.length===0)return Y;let z=await KW(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 Cc.warn(Z,"Subagent state ref blob not found; falling back to inline entry",{subagentId:W}),{kind:"fallback"}}try{return{kind:"loaded",subagentId:W,state:L6.fromBinary(L)}}catch(O){return{kind:"failed",error:O}}},{max:t4}),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 t4=8,Cc;var zN=U(()=>{w8();AH();KH();IQ();TK();Cc=u0("@anysphere/agent-kv:subagent-states")});import{z as e}from"zod";function Rc(){let Z=new Uint8Array(o4);return crypto.getRandomValues(Z),Q0(Z)}function e4(Z){return typeof Z==="string"&&Z.length===o4*2&&Tc.test(Z)}function yc(){if(KN===null)KN=e.object({agentId:e.string(),latestRootBlobId:e.custom((Z)=>Z instanceof Uint8Array,{message:"Expected Uint8Array"}),name:e.string(),createdAt:e.number(),mode:e.enum(HN),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 KN}function jc(Z){return mc.has(Z)}function Sc(Z){return _c.has(Z)}function gc(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 OQ{serialize(Z){let $=Q0(Z.latestRootBlobId);return DQ.serialize(JSON.stringify({...Z,latestRootBlobId:$}))}deserialize(Z){let $=JSON.parse(DQ.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"&&jc(z)?z:"default",Q=$.approvalMode,W=typeof Q==="string"&&Sc(Q)?Q:void 0,G=gc($.subagentInfo),L=e4($.blobEncryptionKey)?$.blobEncryptionKey:J.blobEncryptionKey;return yc().parse({...J,...$,mode:K,isRunEverything:X,approvalMode:W,latestRootBlobId:Y,subagentInfo:G,blobEncryptionKey:L})}getBlobType(){return{kind:"json"}}}async function $x(Z,$,J){let Y=new F6,X=[],z=$.turns;for(let Q of z){let W=await J.getBlob(Z,Q);if(!W)continue;let G=Zx.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=dc.deserialize(f),V=[];for(let E0 of O.steps){let X0=await J.getBlob(Z,E0);if(X0){let tx=cc.deserialize(X0);V.push(tx)}}let T=new W6({userMessage:P,steps:V});L=new _8({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=lc.deserialize(f),V=await J.getBlob(Z,O.shellOutput);if(!V)continue;let T=pc.deserialize(V),E0=new N6({shellCommand:P,shellOutput:T});L=new _8({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=bc.deserialize(W);K.push(G)}}if(Y.todos=K,$.summary){let Q=await J.getBlob(Z,$.summary);if(Q){let W=uc.deserialize(Q);Y.summary=W}}return Y}class UH{blobStore;metadataStore;conversationStateStructure;serde=new D8(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=Zx.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 $x(Z,$,this.blobStore)}async getFullConversationWithSubagents(Z){let $=this.conversationStateStructure,J=await this.deserializeConversationStateStructure(Z,$),Y={},X=await XN(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 HN,QN,o4=32,Tc,KN=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:Rc()}),mc,_c,bc,dc,cc,Zx,uc,lc,pc;var Jx=U(()=>{AH();PH();KH();RK();TK();zN();HN=["default","plan","debug","search"],QN=["allowlist","unrestricted","auto-review"],Tc=/^[0-9a-f]+$/;mc=new Set(HN);_c=new Set(QN);bc=new D8(W0),dc=new D8(H6),cc=new D8(j8),Zx=new D8(p$),uc=new D8(B6),lc=new D8(Q6),pc=new D8(q6)});var eZ0,Z$0,$$0,J$0,Y$0,X$0,z$0,K$0,H$0,Q$0;var Yx=U(()=>{w8();X9();RK();eZ0=u0("@anysphere/agent-kv"),Z$0=g("agent_kv.cached.get_blob.duration_ms",{description:"Duration of CachedBlobStore getBlob operations in milliseconds"}),$$0=g("agent_kv.cached.set_blob.duration_ms",{description:"Duration of CachedBlobStore setBlob operations in milliseconds"}),J$0=g("agent_kv.cached.flush.duration_ms",{description:"Duration of CachedBlobStore flush operations in milliseconds"}),Y$0=g("agent_kv.cached.cache_bytes",{description:"Resident bytes held in the CachedBlobStore in-memory cache, sampled on flush"}),X$0=f6("agent_kv.cached.get_blob.results",{description:"Number of CachedBlobStore getBlob operations by cache result type",labelNames:["cache_type"]}),z$0=f6("agent_kv.nearby.decrypt_errors",{description:"Number of nearby blob reads that found ciphertext but failed to decrypt it (wrong encryption key)"}),K$0=f6("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"}),H$0=g("agent_kv.encrypted.get_blob.duration_ms",{description:"Duration of EncryptedBlobStore getBlob operations in milliseconds"}),Q$0=g("agent_kv.encrypted.set_blob.duration_ms",{description:"Duration of EncryptedBlobStore setBlob operations in milliseconds"})});import{Message as B$0,proto3 as F$0}from"@bufbuild/protobuf";var Xx=()=>{};var f$0,E$0,P$0;var zx=U(()=>{w8();X9();Xx();RK();f$0=u0("ControlledKvManager"),E$0=g("agent_kv.controlled.get_blob.duration_ms",{description:"Duration of ControlledKvManager getBlob operations in milliseconds"}),P$0=g("agent_kv.controlled.set_blob.duration_ms",{description:"Duration of ControlledKvManager setBlob operations in milliseconds"})});var A$0,v$0,C$0,T$0;var BN=U(()=>{w8();X9();A$0=u0("@anysphere/agent-kv"),v$0=g("agent_kv.writethrough.get_blob.duration_ms",{description:"Duration of WritethroughBlobStore getBlob operations in milliseconds"}),C$0=g("agent_kv.writethrough.set_blob.duration_ms",{description:"Duration of WritethroughBlobStore setBlob operations in milliseconds"}),T$0=g("agent_kv.writethrough.flush.duration_ms",{description:"Duration of WritethroughBlobStore flush operations in milliseconds"})});var FN=U(()=>{BN()});var u$0,l$0,p$0,i$0;var Kx=U(()=>{w8();X9();IQ();RK();TK();FN();u$0=u0("@anysphere/agent-kv:reference"),l$0=f6("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"]}),p$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"]}),i$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 s$0,t$0,o$0,e$0,Z90,$90;var Hx=U(()=>{w8();X9();s$0=u0("RetryBlobStore"),t$0=f6("agent_kv.retry.retries",{description:"Number of RetryBlobStore retry attempts (one per re-issued operation, not counting the first try)",labelNames:["operation","outcome"]}),o$0=g("agent_kv.retry.get_blob.duration_ms",{description:"Duration of RetryBlobStore getBlob operations in milliseconds"}),e$0=g("agent_kv.retry.set_blob.duration_ms",{description:"Duration of RetryBlobStore setBlob operations in milliseconds"}),Z90=g("agent_kv.retry.set_blob_locally_only.duration_ms",{description:"Duration of RetryBlobStore setBlobLocallyOnly operations in milliseconds"}),$90=g("agent_kv.retry.flush.duration_ms",{description:"Duration of RetryBlobStore flush operations in milliseconds"})});var IH=U(()=>{Jx();IQ();RK();Yx();zx();Kx();Hx();TK();zN();FN();BN()});class Gx{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 Lx(){return new Gx}import{chmodSync as Lu,existsSync as wu,mkdirSync as Du}from"fs";function _K(Z){if(!wu(Z))Du(Z,{recursive:!0,mode:wx});try{Lu(Z,wx)}catch{}}var wx=448;var EN=()=>{};var PN;var Dx=U(()=>{PN=class PN extends Error{constructor(Z,$){super(Z,$);this.name="NoSqliteDriverError"}}});var Ix={};P6(Ix,{openBunSqliteDriver:()=>Iu});import{Database as Uu}from"bun:sqlite";class Ux{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 Ux(new Uu(Z,{create:!0}))}var Ox=()=>{};class VN{constructor(){throw Error("node:sqlite is not available in this runtime (the @cursor/sdk/bundled entry targets Bun, which uses bun:sqlite)")}}var fx={};P6(fx,{openNodeSqliteDriver:()=>Ou});class kx{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 Ou(Z){return new kx(new VN(Z))}var Ex=()=>{};function ku(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 fu(){return typeof globalThis.Bun<"u"}async function SK(Z){if(fu())return(await Promise.resolve().then(() => (Ox(),Ix))).openBunSqliteDriver(Z);let $;try{$=await Promise.resolve().then(() => (Ex(),fx))}catch(J){if(ku(J))throw new PN("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 xQ=U(()=>{Dx()});var Px={};P6(Px,{SQLiteBlobStoreWithMetadata:()=>MN});import{existsSync as Eu,mkdirSync as Pu,rmSync as Vu}from"fs";import{basename as xu,dirname as xN}from"path";var MQ,MN;var Vx=U(()=>{IH();KH();xQ();MQ=new OQ;MN=class MN 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 MN(Z);return await $.getDriver(),$}constructor(Z){super();this.dbPath=Z;let $=xu(xN(this.dbPath));this.metadata=DH($)}async getDriver(){if(this.driverPromise)return this.driverPromise;let $=(async()=>{let J=xN(this.dbPath);if(!Eu(J))Pu(J,{recursive:!0});let Y=await SK(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=l0($.value);this.metadata=MQ.deserialize(Y);return}let J=MQ.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 $=MQ.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=l0($.value);J=MQ.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=xN(this.dbPath);try{Vu(z,{recursive:!0,force:!0})}catch{}}}}});var hx={};P6(hx,{LocalAgentCheckpointStore:()=>Mx});import{createHash as Mu}from"crypto";import{rm as hu}from"fs/promises";import{join as hQ}from"path";class Mx{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(c8()),$.getConversationStateStructure()}async saveCheckpoint(Z,$){let{agentStore:J}=await this.getOrCreate(Z);return await J.handleCheckpoint(c8(),$),{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(c8()),$.getFullConversation(c8())}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=hQ(this.options.stateRoot,"agents",xx(Z));await hu(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 $=hQ(this.options.stateRoot,"agents"),J=hQ($,xx(Z));_K(this.options.stateRoot),_K($),_K(J);let{SQLiteBlobStoreWithMetadata:Y}=await Promise.resolve().then(() => (Vx(),Px)),X=await Y.initAndLoad(hQ(J,"store.db"));try{X.set("agentId",Z);let z=new UH(X,X);return await z.resetFromDb(c8()),{sqliteStore:X,agentStore:z}}catch(z){throw await X.dispose().catch(()=>{return}),z}}}function xx(Z){return`agent-${Mu("sha256").update(Z).digest("hex")}`}var Ax=U(()=>{IH();w8();EN()});import{randomUUID as Au}from"crypto";function vx(){return Au({disableEntropyCache:!0})}function Cx(){return`agent-${vx()}`}function hN(){return`run-${vx()}`}var Tx=()=>{};function OH(Z){return vu.has(Z)}var vu;var Rx=U(()=>{vu=new Set(["FINISHED","ERROR","CANCELLED","EXPIRED"])});var _x={};P6(_x,{SqliteAgentRunStore:()=>CN});import{dirname as Cu,join as Tu}from"path";function mx(Z){if(Z.length===0)return[];let $=[];for(let J=0;J<Z.length;J+=yx)$.push(Z.slice(J,J+yx));return $}function z9(){return new Date().toISOString()}function AQ(Z){return Z?new Date(Z):null}function bK(Z,$){if(!Z)return $;return JSON.parse(Z)}function gK(Z){return JSON.stringify(Z)}function E6(Z){return Z?gK(Z):null}function Ru(Z,$){if(Z===null)return null;if($===null)return{id:Z};return{id:Z,params:bK($,[])}}function AN(Z){let $=Z?.params;return $&&$.length>0?gK($):null}function vN(Z){return{agentId:Z.agent_id,workspaceRef:Z.workspace_ref,status:Z.status,activeRunId:Z.active_run_id,latestCheckpointRef:bK(Z.latest_checkpoint_ref_json,null),name:Z.name,createdAt:new Date(Z.created_at),updatedAt:new Date(Z.updated_at),metadata:bK(Z.metadata_json,{})}}function vQ(Z){return{runId:Z.run_id,requestId:Z.request_id,agentId:Z.agent_id,turnNumber:Z.turn_number,status:Z.status,model:Ru(Z.model,Z.model_params_json),startCheckpointRef:bK(Z.start_checkpoint_ref_json,null),latestCheckpointRef:bK(Z.latest_checkpoint_ref_json,null),errorCode:Z.error_code,usageRef:Z.usage_ref,usage:bK(Z.usage_json??null,null),result:Z.result,createdAt:new Date(Z.created_at),updatedAt:new Date(Z.updated_at),startedAt:AQ(Z.started_at),finishedAt:AQ(Z.finished_at),cancelledAt:AQ(Z.cancelled_at),expiredAt:AQ(Z.expired_at)}}function jx(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 CN{options;driverPromise;disposed=!1;static async open(Z){let $=new CN(Z);return await $.getDriver(),$}constructor(Z){this.options=Z}get stateRoot(){return this.options.stateRoot}get dbPath(){return Tu(this.options.stateRoot,"index.db")}async createAgent(Z){let $=await this.getDriver();return p0($,()=>{let J=Z.agentId??Cx(),Y=hN(),X=z9();$.run(`INSERT INTO agents (
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,gK(Z.metadata??{}),X,X]),$.run(`INSERT INTO runs (
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,AN(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 p0(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&&!OH(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=hN(),K=z9();J.run(`INSERT INTO runs (
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,AN($.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",gK({...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}=jx(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(vN),...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}=jx($),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(vQ),...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();p0(Y,()=>{let X=this.requireRunFromDb(Y,Z,$);if(OH(X.status))throw Error(`Cannot start terminal run ${$}`);let z=z9();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
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();p0(Y,()=>{this.requireRunFromDb(Y,Z,$);let X=z9();Y.run(`UPDATE runs
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
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 = ?`,[E6(J),X,Z])})}async markRunTerminal(Z,$,J){let Y=await this.getDriver();p0(Y,()=>{let X=this.requireRunFromDb(Y,Z,$);if(OH(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=z9(),K=J.usage!==void 0?J.usage:X.usage??null,Q=K===null||K===void 0?null:JSON.stringify(K);Y.run(`UPDATE runs
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();p0($,()=>{if(!this.getAgentFromDb($,Z))throw Error(`Agent ${Z} not found`);let Y=z9();$.run("UPDATE agents SET status = 'ARCHIVED', updated_at = ? WHERE agent_id = ?",[Y,Z])})}async unarchiveAgent(Z){let $=await this.getDriver();p0($,()=>{if(!this.getAgentFromDb($,Z))throw Error(`Agent ${Z} not found`);let Y=z9();$.run("UPDATE agents SET status = 'IDLE', updated_at = ? WHERE agent_id = ?",[Y,Z])})}async deleteAgent(Z){let $=await this.getDriver();p0($,()=>{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&&!OH(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();p0($,()=>{let J=this.getAgentFromDb($,Z.agentId),Y=Z.createdAt.toISOString(),X=Z.updatedAt.toISOString();if(J){$.run(`UPDATE agents SET
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,E6(Z.latestCheckpointRef),Z.name,gK(Z.metadata),X,Z.agentId]);return}$.run(`INSERT INTO agents (
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,E6(Z.latestCheckpointRef),Z.name,gK(Z.metadata),Y,X])})}async upsertRunRecord(Z){let $=await this.getDriver();p0($,()=>{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),L=[Z.requestId??null,Z.turnNumber,Z.status,Z.model?.id??null,AN(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
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 = ?`,[...L,Z.runId,Z.agentId]);return}$.run(`INSERT INTO runs (
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,...L.slice(0,1),Z.agentId,...L.slice(1,11),Y,...L.slice(11)])})}async listAllAgentRecords(){return(await this.getDriver()).all("SELECT * FROM agents",[]).map(vN)}async listAllRunRecords(Z){let $=await this.getDriver();if(Z&&Z.length>0){let Y=[];for(let X of mx(Z)){let z=X.map(()=>"?").join(", "),K=$.all(`SELECT * FROM runs WHERE agent_id IN (${z})`,[...X]);Y.push(...K.map(vQ))}return Y}return $.all("SELECT * FROM runs",[]).map(vQ)}async deleteRunRecordsForAgents(Z){if(Z.length===0)return;let $=await this.getDriver();p0($,()=>{for(let J of mx(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();p0($,()=>{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=Cu(this.dbPath);_K(J);let Y=await SK(this.dbPath);try{yu(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?vN(J):null}getRunFromDb(Z,$,J){let Y=Z.get("SELECT * FROM runs WHERE run_id = ? AND agent_id = ?",[J,$]);return Y?vQ(Y):null}requireRunFromDb(Z,$,J){let Y=this.getRunFromDb(Z,$,J);if(!Y)throw Error(`Run ${J} not found for agent ${$}`);return Y}}function p0(Z,$){Z.exec("BEGIN IMMEDIATE");try{let J=$();return Z.exec("COMMIT"),J}catch(J){try{Z.exec("ROLLBACK")}catch{}throw J}}function yu(Z){Z.exec(`PRAGMA journal_mode = WAL;
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 yx=100;var Sx=U(()=>{Tx();EN();xQ();Rx()});function gx(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 dx={};P6(dx,{SqliteRunEventStore:()=>TN});import{existsSync as mu,mkdirSync as ju}from"fs";import{dirname as _u,join as Su}from"path";function gu(){return new Date().toISOString()}function bx(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 TN{options;driverPromise;disposed=!1;static async open(Z){let $=new TN(Z);return await $.getDriver(),$}constructor(Z){this.options=Z}get dbPath(){return Su(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 *
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"),bx(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=gu();return $.run(`INSERT INTO run_events (
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=gx(Z.afterOffset),Y=Z.limit??100,X=$.all(`SELECT *
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(bx);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=_u(this.dbPath);if(!mu(J))ju(J,{recursive:!0});let Y=await SK(this.dbPath);try{bu(Y)}catch(X){throw Y.close(),X}return Y})().catch((J)=>{if(this.driverPromise===$)this.driverPromise=void 0;throw J});return this.driverPromise=$,$}}function bu(Z){if(Z.exec(`PRAGMA journal_mode = WAL;
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 cx=U(()=>{xQ()});var nx={};P6(nx,{createDefaultLocalRunEventStore:()=>px,createDefaultLocalRunEventNotifier:()=>ix,createDefaultLocalAgentStores:()=>du,createDefaultLocalAgentRunStore:()=>lx,createDefaultLocalAgentCheckpointStore:()=>ux});async function ux(Z){let{LocalAgentCheckpointStore:$}=await Promise.resolve().then(() => (Ax(),hx));return new $({stateRoot:Z.stateRoot})}async function lx(Z){let{SqliteAgentRunStore:$}=await Promise.resolve().then(() => (Sx(),_x));return $.open(Z)}async function px(Z){let{SqliteRunEventStore:$}=await Promise.resolve().then(() => (cx(),dx));return $.open(Z)}function ix(){return Lx()}async function du(Z){return{store:await lx(Z),checkpointStore:await ux(Z),eventStore:await px(Z),eventNotifier:ix()}}var ax=()=>{};IH();w8();function yK(Z){return{agentId:Z.agentId,cwd:Z.workspaceRef,status:sc(Z.status),activeRunId:Z.activeRunId??null,latestCheckpoint:Z.latestCheckpointRef?GN(Z.latestCheckpointRef):null,name:Z.name??null,createdAt:Z.createdAt.getTime(),updatedAt:Z.updatedAt.getTime(),sdkMetadata:Z.metadata}}function mK(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:oc(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?GN(Z.startCheckpointRef):null,latestCheckpointRef:Z.latestCheckpointRef?GN(Z.latestCheckpointRef):null}}function kQ(Z){return{agentId:Z.agentId,workspaceRef:Z.cwd,status:tc(Z.status),activeRunId:Z.activeRunId??null,latestCheckpointRef:Z.latestCheckpoint?LN(Z.latestCheckpoint):null,name:Z.name??null,createdAt:new Date(Z.createdAt),updatedAt:new Date(Z.updatedAt),metadata:Z.sdkMetadata??{}}}function fQ(Z){let $=ec(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?LN(Z.startCheckpointRef):null,latestCheckpointRef:Z.latestCheckpointRef?LN(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 GN(Z){return{schemaVersion:1,rootBlobId:Z.blobId}}function LN(Z){return{blobId:Z.rootBlobId,storeKind:"local-agent-store"}}function sc(Z){switch(Z){case"IDLE":return"idle";case"RUNNING":return"running";case"ERROR":return"error";case"ARCHIVED":return"archived"}}function tc(Z){switch(Z){case"idle":return"IDLE";case"running":return"RUNNING";case"error":return"ERROR";case"archived":return"ARCHIVED"}}function oc(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 ec(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"}}IH();AH();class IN{eventsByRunId=new Map;idempotencyKeys=new Map;async append(Z){let $=Z.idempotencyKey??null;if($){let K=this.idempotencyKeys.get(wN(Z.runId,$));if(K)return DN(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(wN(Z.runId,$),z);return DN(z)}async list(Z){let $=Nu(Z.afterOffset),J=Z.limit??100,Y=(this.eventsByRunId.get(Z.runId)??[]).filter((z)=>z.seq>$),X=Y.slice(0,J).map((z)=>DN(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(wN(J,X.idempotencyKey));this.eventsByRunId.delete(J)}}}function Qx(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 Xu(Z,$.filter)){let X=Z.get(J);if(X?.delete(Y),X&&X.size===0)Z.delete(J)}},list:async($)=>{let J=$?.filter,Y=Yu(Z,J);return kN(Y,J)}}}function ON(Z,$){if(!$?.agentIds?.length&&$?.cwd===void 0)return!0;if($.agentIds?.length&&!$.agentIds.includes(Z.agentId))return!1;if($.cwd!==void 0&&Z.cwd!==$.cwd)return!1;return!0}function qx(Z){let{agentRows:$}=Z;return{get:async({agentId:J})=>{let Y=$.get(J);return Y?structuredClone(Y):null},create:async({agent:J})=>{if($.has(J.agentId))throw Error(`Agent ${J.agentId} already exists`);return $.create(J),structuredClone($.get(J.agentId))},update:async({agent:J})=>{if(!$.has(J.agentId))throw Error(`Agent ${J.agentId} not found`);return $.set(J.agentId,J),structuredClone($.get(J.agentId))},delete:async({filter:J})=>{let Y=[...$.values()].filter((X)=>ON(X,J));if(Y.length===0)throw Error("No agents matched delete filter");for(let X of Y)$.delete(X.agentId)},list:async(J)=>fN([...$.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 $u{agentMap=new Map;runMap=new Map;checkpointBytes=new Map;runEvents=new IN;checkpoints=Qx(this.checkpointBytes);agents=qx({agentRows:Zu(this.agentMap)});runs={get:async({agentId:Z,runId:$})=>{let J=this.runMap.get(EQ(Z,$));return J?structuredClone(J):null},create:async({run:Z})=>{let $=EQ(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 $=EQ(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 Wx(this.runMap.values(),Z.filter))this.runMap.delete(EQ($.agentId,$.runId))},list:async(Z)=>{let $=Z?.filter,J=[...this.runMap.values()].filter((Y)=>jK(Y,$));return VQ(J,$)}}}class Ju{bundles=new Map;checkpointBytes=new Map;runEvents=new IN;checkpoints=Qx(this.checkpointBytes);agents=qx({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 Wx([...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)=>jK(Y,$));return VQ(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 PQ(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 Yu(Z,$){let J=[];for(let[Y,X]of Z)for(let z of X.keys())if(PQ({agentId:Y,blobId:z},$))J.push(z);return J}function Xu(Z,$){let J=[];for(let[Y,X]of Z)for(let z of X.keys())if(PQ({agentId:Y,blobId:z},$))J.push({agentId:Y,blobId:z});return J}function kN(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 jK(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 Wx(Z,$){return[...Z].filter((J)=>jK(J,$))}function fN(Z,$){let Y=[...$?.cwd===void 0?Z:Z.filter((W)=>W.cwd===$.cwd)].sort(zu),X=$?.limit??50,z=Y;if($?.cursor){let W=qu($.cursor);z=Y.filter((G)=>Hu(G,W))}let K=z.slice(0,X),Q=K.at(-1);return{items:K.map((W)=>structuredClone(W)),...z.length>X&&Q?{nextCursor:Nx({updatedAt:Q.updatedAt,agentId:Q.agentId})}:{}}}function VQ(Z,$){let J=[...Z].sort(Ku),Y=$?.limit??50,X=J;if($?.cursor){let Q=Wu($.cursor);X=J.filter((W)=>Qu(W,Q))}let z=X.slice(0,Y),K=z.at(-1);return{items:z.map((Q)=>structuredClone(Q)),...X.length>Y&&K?{nextCursor:Nx({turnNumber:K.turnNumber,runId:K.runId})}:{}}}function zu(Z,$){if($.updatedAt!==Z.updatedAt)return $.updatedAt-Z.updatedAt;return $.agentId.localeCompare(Z.agentId)}function Ku(Z,$){if(Z.turnNumber!==$.turnNumber)return Z.turnNumber-$.turnNumber;return Z.runId.localeCompare($.runId)}function Hu(Z,$){if(Z.updatedAt<$.updatedAt)return!0;if(Z.updatedAt>$.updatedAt)return!1;return Z.agentId<$.agentId}function Qu(Z,$){if(Z.turnNumber>$.turnNumber)return!0;if(Z.turnNumber<$.turnNumber)return!1;return Z.runId>$.runId}function Nx(Z){return Buffer.from(JSON.stringify(Z),"utf8").toString("base64url")}function qu(Z){let $=Bx(Z);if(typeof $.updatedAt!=="number"||typeof $.agentId!=="string")throw Error("Invalid agent list cursor");return{updatedAt:$.updatedAt,agentId:$.agentId}}function Wu(Z){let $=Bx(Z);if(typeof $.turnNumber!=="number"||typeof $.runId!=="string")throw Error("Invalid run list cursor");return{turnNumber:$.turnNumber,runId:$.runId}}function Bx(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 EQ(Z,$){return`${Z}:${$}`}function Nu(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 wN(Z,$){return`${Z}:${$}`}function DN(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),$}KH();import{createHash as Bu}from"crypto";import{homedir as Fu}from"os";import{join as Gu}from"path";function Fx(Z){let $=Bu("md5").update(Z).digest("hex");return Gu(HW(Fu(),Z),"sdk-agent-store",$)}function cu(Z){let $=new Uint8Array(Z.length);return $.set(Z),$}function rx(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 uu(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 sx(Z){return(await Z.listAllAgentRecords()).map((J)=>J.agentId)}function lu(Z){return{append:async($)=>{let J=await Z.appendRunEvent({runId:$.runId,eventType:$.eventType,payload:$.payload,payloadRef:$.payloadRef,idempotencyKey:$.idempotencyKey});return rx(J)},list:async($)=>{let J=await Z.listRunEvents({runId:$.runId,afterOffset:$.afterOffset??void 0,limit:$.limit});return{items:J.events.map(rx),...J.nextOffset!==void 0?{nextOffset:J.nextOffset}:{}}},delete:async($)=>{let J=$.filter.runIds??[];for(let Y of J)await Z.deleteRunEvents({runId:Y})}}}function pu(Z){let $=c8();return{get:async({agentId:J,blobId:Y})=>{let z=await(await Z.checkpointStore.getBlobStore(J)).getBlob($,l0(Y));return z?cu(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 sx(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 sx(Z.runStore),z=[];for(let K of X){let Q=await Z.checkpointStore.listCheckpointBlobIds(K);for(let W of Q)if(PQ({agentId:K,blobId:W},Y))z.push(W)}return kN(z,Y)}}}async function iu(Z,$){return(await Z.runStore.listAllRunRecords([$])).map((Y)=>Y.runId)}function nu(Z){return{get:async({agentId:$})=>{let J=await Z.runStore.getAgent($);return J?yK(J):null},create:async({agent:$})=>{if(await Z.runStore.getAgent($.agentId))throw Error(`Agent ${$.agentId} already exists`);await Z.runStore.upsertAgentRecord(kQ($));let Y=await Z.runStore.getAgent($.agentId);if(!Y)throw Error(`Failed to create agent ${$.agentId}`);return yK(Y)},update:async({agent:$})=>{if(!await Z.runStore.getAgent($.agentId))throw Error(`Agent ${$.agentId} not found`);await Z.runStore.upsertAgentRecord(kQ($));let Y=await Z.runStore.getAgent($.agentId);if(!Y)throw Error(`Failed to update agent ${$.agentId}`);return yK(Y)},delete:async({filter:$})=>{let J=(await Z.runStore.listAllAgentRecords()).map(yK).filter((Y)=>ON(Y,$));if(J.length===0)throw Error("No agents matched delete filter");for(let Y of J){let X=await iu(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(yK);return fN(J,$?.filter)}}}function au(Z){return{get:async({agentId:$,runId:J})=>{let Y=await Z.runStore.getRun($,J);return Y?mK(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(fQ($));let Y=await Z.runStore.getRun($.agentId,$.runId);if(!Y)throw Error(`Failed to create run ${$.runId} for agent ${$.agentId}`);return mK(Y)},update:async({run:$})=>{if(!await Z.runStore.getRun($.agentId,$.runId))throw Error(`Run ${$.runId} not found for agent ${$.agentId}`);await Z.runStore.upsertRunRecord(fQ($));let Y=await Z.runStore.getRun($.agentId,$.runId);if(!Y)throw Error(`Failed to update run ${$.runId} for agent ${$.agentId}`);return mK(Y)},delete:async($)=>{let J=$.filter,Y=J?.agentIds&&J.agentIds.length>0?J.agentIds:void 0,X=(await Z.runStore.listAllRunRecords(Y)).map(mK).filter((z)=>jK(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(mK).filter((z)=>jK(z,J));return VQ(X,J)}}}class RN{stateRoot;workspaceRef;agents;checkpoints;runs;runEvents;deps;static async open(Z){let $=Z.stateRoot??Fx(Z.workspaceRef),{createDefaultLocalAgentStores:J}=await Promise.resolve().then(() => (ax(),nx)),Y=await J({stateRoot:$,workspaceRef:Z.workspaceRef}),X=Y.store,z=Y.eventStore,K=Y.checkpointStore;return uu(X,K,z),new RN({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=nu(this.deps),this.checkpoints=pu(this.deps),this.runs=au(this.deps),this.runEvents=lu(Z.eventStore)}async dispose(){await Promise.all([this.deps.runStore.dispose(),this.deps.eventStore.dispose(),this.deps.checkpointStore.dispose()])}}export{RN 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};